var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC 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.dev/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). */ /* Copyright 2015-present Dan Abramov SPDX-License-Identifier: MIT */ 'use strict';var J="playerfallback;startsWith;split;reverse;call;T;fromCharCode;length;;Z;path;scheme;Zs;eu;/initplayback;slice;1969-12-31T22:30:33.000-01:30;:;splice;sp;join;url;eM;1970-01-01T07:30:14.000+07:30;=;rr;L;push;/videoplayback;\\.a1\\.googlevideo\\.com$;pow;1969-12-31T22:45:05.000-01:15;mn;www.youtube.com;1;prototype;set;])'\";rr?[1-9].*\\.c\\.youtube\\.com$;get;://;s;//;&;1970-01-01T10:00:03.000+10:00;now;cmo=;assign;---;KE;clone;D;toString;%3D;indexOf;fvip;cmo=td;a1.googlevideo.com;/api/manifest;/file/index.m3u8;match;local;unshift;r;n;Untrusted URL;\\.googlevideo\\.com$;forEach;file;index.m3u8;yF;pop;replace;K;cmo=pf;http://local;https://local;,;1969-12-31T13:15:46.000-10:45;fallback_count;/;youtube.player.web_20251209_02_RC00;signatureCipher;1969-12-31T12:30:24.000-11:30;redirector.googlevideo.com;?;0B35MqXLCIozp8BseD-_w8_;Y7;1970-01-01T08:15:05.000+08:15;undefined;cmo;jn".split(";"), E3,xU,qm,y$,U3,oC,Lo,YU,bp,g7,eG,W01,Fa,aC,XXa,T7l,$m1,Y3C,Q$,kll,ma,VW,hG,yW,rI1,cI$,xI,RA,DmC,oA,N70,UJ,boa,dc,nU3,tG,K5,S31,YI,kI,e5C,uaG,z5U,ZM,Zoa,sCa,aA,F05,a1G,GZ,Glo,pX7,Jn,B7l,xS,l1U,QCm,M5,vU1,Pp1,mA0,V$$,dZ,W8,O5o,hnG,H8,rZ,wHC,Ig,e5,uX,zx,sm,Fp,Lap,ag,iX,Gx,JGp,EI3,Qg,qJU,mg,O0,JV,C2,E0,qi,M$X,fM1,Mi,xp,f2,xAI,RnI,oIp,gIU,UAa,oj,gX,U0,dX,tV,WM,XC,Wa3,Tp,Yp,kp,rX,cM,Ni,bx,XH3,n2,Sv,ev,TcI,$Ao,YJl,ux,Zi,s0,aj,ix,p2,BM,SJX,IMU,enI,uha,lx,zno,Q1,vM,PM,Z5C,mD,sA1,aMG,w4,jn,CK,qy,My,pH7,GZp, Pz0,QAG,ox,g4,WI,hol,yn7,w8C,HI,$c,jga,T3,Ny,Rx,Ix,LAX,uN,en,xc,Jn0,z3,Fm,Zm,CXa,iN,ES$,pK,BI,lN,QS,vI,PI,m4,OS,hQ,JQ,CF,M5m,MN,fE0,Ro0,x57,oSa,ES,gS3,AQ,US,db,U5X,tQ,d53,t5m,KF,KAm,TZ$,X4,H9C,WAl,Hu,YmC,TI,$i,kxa,Yi,rn3,ki,D5G,cnU,NZI,NN,Sm5,b9U,IE5,bw,nF,eo1,upU,zoG,SL,Ir,Z90,i9p,eL,Gxo,p83,PX3,sS,vSo,BZa,Vvo,wM0,ar,GI,Q5,lw,yVo,vu,Pu,mp,Vp,wV,yp,Lk,q0l,J9,Mv0,EV,fk,R3l,A9,dV,Kk,WN,HN,t9,opG,XY,To,UV,$X,YX,gp3,kX,cN,Ui3,Dc,NY,b5,Kgp,FY,WgU,sV,Zc,St,diG,tvI,XMI,pk,H27,$ip,Y0G,kpm,BN,l5,Qp,rV3,mR, Ov,hU,wy,cV7,NXa,jq,b2I,JU,L4,uC0,C4,Ev,z3o,sj0,ai5,f4,qc,i2a,xd,Rs,os,Mc,AU,gy,dy,Uv,HS,Gpl,tU,WS,kd,pMp,ry,BXo,cS,D2,Sq,Is,eq,Nc,n4,br,zS,liX,Z2,FV,as,vp$,ir,Px0,GS,XV,p4,lr,Vnm,QI,vS,mx,Vd,OA,hz,wB,yd,oy,gB,UA,Az,dB,tz,Kx,Wi,Xf,Hi,OKo,wI1,$w,yk7,jx0,LDX,kw,rB,N0,CNp,Ec5,q2C,nx,fmp,So,Rbp,Iy,eo,u9,ocG,zj,gco,Zp,Ak5,Uyl,sA,dym,Ff,ay,i9,tn7,px,Bi,WDC,vi,T4U,KD1,Pi,Vu,O9,k37,$y0,wP,ju,rk$,DyI,N4a,L6,JE,C6,E9,q_,M_,f6,S2l,Imm,eb7,zb7,sx7,FDl,am7,Rq,oq,iKG,gP,G3C,pIU,vc0,U9,PNG,mN7,VL5,OFC,heC,tE,wup, WG,jrU,TU,$T,JQ1,kT,rP,cG,CwG,EiX,bR,n6,Iq,eu,MLl,fl$,xNo,aq,FA,s9,Rea,oip,gio,iR,GU,p6,UNa,PG,mE,tLp,K4I,W4G,V0,Ok,Xu$,HFX,hg,Tbm,$N$,YSl,kIo,LT,y0,Jg,CT,Ek,rQG,cQa,DN1,qf,Mf,Nbl,xl,bF$,nio,SSa,Rd,Il$,od,gj,eeC,u4l,zep,ZFo,srU,F4l,dj,tg,KT,Xv,GIC,HV,T6,pu$,iFG,WV,Bba,$l,Yl,kl,cV,rj,ll7,Qra,vi7,DL,mY3,Nf,OkG,hw3,wNU,y9o,jQl,Lp$,J9l,C57,SV,Id,eV,qVX,EXa,Mt1,fco,z6,xYl,ZL,Rwm,oXa,sk,Fv,ad,gXG,iA,G6,A90,pT,BV,lA,Q0,vV,PV,mM,V6,UYa,dY5,tt3,KpI,ON,Wpp,HkC,XNI,wv,y6,$Y$,TVa,r90,NV1,DY7,jh,bkI,nXC,SV1,ewo, IcI,uYp,LU,zw5,Zkl,CU,sQ5,Fpa,acC,ikX,EN,Go5,qh,pNo,Mh,fU,lc7,xe,QQI,RI,oI,vX$,P5p,gv,UN,Vq5,dv,mc7,O4C,h6p,wSG,jsX,ta,LRU,Xs,HF,Crl,EdI,f2$,xcl,Ti,$e,Nh,b1,nU,Sh,II,eh,u1,zi,Zk,sN,Fs,AUU,gdo,UcI,tqo,dco,WRp,odX,KRC,R6p,aI,i1,H4o,Ty3,$cp,l1,Q6,vF,Gi,kS$,PF,XSa,cUl,Dc1,rUp,mo,VQ,Ow,hH,Ny1,Yvo,b4o,wD,nd5,SvX,I2X,e6m,uV7,ssC,FRm,a2U,i4G,yQ,j_,GS3,pS0,Qs0,vdl,Lb,Cb,m05,Ew,JH,Oxl,Vo0,hD1,wiU,yzl,MQ,fb,jyl,Lxm,JzC,C9p,Ewl,qAo,Mo5,fpI,x0C,RD$,Rh,oh,gD,AH,Uw,dD,ow$,U0X,d0l,toX,Wxa,KxG,XiI,W6,H6,Hx7,TBp,$0l, Tb,$r,Yr,kr,rD,De,NQ,YA1,nb,rz3,Ih,czp,D07,e_,u8,zb,FR,Ze,NBa,nw7,ah,xT,ZKX,l8,SA1,IpC,QQ,eDl,B6,zDX,uf5,pb,v6,P6,Zx$,sy7,Fx1,app,m3,ix7,Vc,Az0,gwG,hP,ww,jX,Lt,BBo,JP,Ct,q1,lpU,QyG,M1,O6p,gw,P9G,Vul,Rb,xx,tP,Kt,h1p,HU,wG1,T0,$x,yEU,L50,CRI,N1,nt,fV5,x_C,R1X,SX,U_p,cU,q91,tu1,AEm,oT$,gTC,K5G,d_5,eX,ZA,s7,XGG,H6o,TPG,$_5,Y90,FJ,kUI,ig,rE0,NPU,b6X,G0,S9l,e1C,IV3,uAo,BU,vU,Oe,wq,yq,jb,LC,JD,sqG,F5I,aV5,CC,Ee,hD,qO,MO,fC,qQ,xs,i6a,o4,BP0,gq,AD,Qq5,lV3,vTX,PRl,mf0,Ue,VVa,OTl,hfC,dq,tD,yg3,Jg3,CAl,KC,xf0, MVa,RfC,ol3,gla,W3,AgC,ElI,XI,H3,UfX,fL5,TG,dfU,$s,KEa,WEm,XV1,HTX,TjC,ks,$fI,Yk0,k63,rgG,Njo,cga,rq,c3,Dn,NO,bL,nC,Sb,I4,bT3,uL,eb,nl1,Zn,efI,zG,uv5,zfI,iTp,ZTG,sdI,FEX,aL0,se,G6U,pV5,a4,BjG,iL,GG,pC,B3,lL,Qq,mh3,lLa,Vx,PA5,hK,jB,vl7,mw,v3,Qd0,P3,JK,OUa,Eg,CZ,hCp,wFX,ya$,fZ,xa,ow,JaI,Rw,AK,C1X,Ug,jI$,MhC,fk3,xhl,KZ,WA,X0,RCG,HA,TV,$a,Ya,oeo,ka,r_,cA,gea,Og,AaU,Dz,Uh$,LE7,th5,KM3,WMX,XFo,Tvp,dhX,$ha,NX,bY,YNX,ki3,Dhp,bUG,ne0,SB,Iw,SNp,us0,ZU7,eB,zV,sI5,FM3,ak7,Gi5,pFI,iUo,sg,vem,QI0,F0,iY,mQ0,aw, V_U,pZ,Ob1,BA,Qx,vA,htI,w6o,yn,yH7,LY,jh5,Lo0,oM,JH7,ErI,gO,qwo,M_3,grC,fel,tY,KY,WD,HD,TO,KoG,Woa,$N,YN,kN,Hb0,DD,TD1,$Qp,Na,kbo,nY,SF,IM,eF,rHI,uQ,ZD,sM,FQ,aM,iQ,cH$,DQ5,ND0,pY,BD,lQ,Qn,vD,PD,bbX,nrC,Swa,Ie3,etU,uR7,mP,ztp,Le,Zba,shX,Fop,Jx,En,q7,M7,R8,o8,gS,ibG,dS,tx,Tg,GbI,p65,$F,BD$,le0,kF,wU5,yP$,jbU,rS,L3p,JP5,q7l,DC,fAo,MX0,x1G,RjG,ne,Sk,oxa,I8,ek,uj,zg,ZC,sn,Fi,a8,ij,Gg,pe,Bh,lj,QC,gxo,APU,mT,Ox,U1m,j6,LJ,J6,Tl,CJ,qB,MB,W3X,fJ,x4,Rv,HtG,XU0,d1U,A6,gt,k0$,Ux,$4,Y4,H7,k4,rt,cPl,DH,nxm,Nw$, bt0,IAa,sb7,ej3,zj1,ZtX,rPa,bB,NB,aA3,S6,Iv,e6,itp,av,G0$,iB,Gm,pJ,lB,v7,P7,pU$,mB,VJ,lAo,w3,jU,Lp,J8,Cp,Eb,q2,M2,fp,xk,vxp,R$,A8,g3,mOo,w3m,OC5,hG3,yDo,j4X,JDG,CLm,Lzm,qem,t8,Kp,HZ,MbG,fn$,XS,Tv,RGG,osI,dO$,UOI,r3,cZ,DN,N2,bF,KzC,Wzl,ZN,sb,X30,HCU,TqX,Gv,pp,BZ,$OX,YeI,rDX,DOm,vZ,NqC,VE,PZ,w1,yE,L3,q9,M9,f3,xB,oe,g1,Ud,eGp,uIa,tJ,zGX,ZC3,WE,s4o,Fz7,XX,HE,anm,iC7,p35,$B,r1,lno,Q47,YB,vs$,PL7,VB$,mXl,bC,Bq7,ha3,wAm,zN,er,yKC,jw$,Zt,sd,LwX,JK$,iC,CYI,Eao,qg3,MB3,PE,fzC,xXC,Ra0,oao,gaU,AK7,UXX,dX5,Va, tB7,hi,Ww1,XA5,HZa,T_C,$X1,wM,Ei,kVa,DXU,qC,N_a,na$,Yg$,SgU,Izl,eaG,rK7,cK5,ya,jM,Cn,bZ3,Ji,Ln,u0o,zaI,ZZ7,swm,FwG,azC,lzl,iZp,RS,oS,Ai,PYG,OY$,VF0,gM,ti,hp0,XE,wDm,jMa,k5,yY1,xaI,LqC,MFp,NC,RpG,AYp,bu,Dv,oNm,gN7,Uaa,SM,tFp,Kq7,Wqp,XDm,HYp,TO3,$a7,dao,kOm,rY7,cYm,NOU,Da7,nNU,z5,SM0,Zv,IDa,si,epX,uQa,iu,G5,ZYC,zpI,pn,Fq5,iYX,aDG,GOl,lDp,pD$,y4,Jc,LM,QMG,j8,CM,EL,qH,MH,vNo,x7,Vk3,m7C,go,oH,UL,tc,KM,Ws,Oem,Xk,TF,hAm,Y7,yxa,ro,cs,j8U,LPX,Jxl,CjU,DB,b_,EFl,nM,S8,IH,Mk5,e8,u_,fC3,ZB,aH,Fk,sL,i_,GF,oFX, KP3,Xh0,tk1,d7p,WPC,l_,Ps,Yn5,HeG,TS3,$7m,RA0,ICa,CD,Sn$,zAU,nF0,Bs,EZ,h1,LD,eAX,VZ,AxG,gF1,U70,vs,be7,xL,pho,oz,A1,lCG,Q8p,UZ,vF5,PjG,mBl,OJU,hi7,KD,y6X,Wj,jv5,LTl,CB0,E4l,qxa,Hj,M6G,xBa,TK,RiG,$L,YL,r$,t6C,TtI,nD,Yx7,c6X,Iz,Nt5,bJ$,n4o,Bj,Sxm,IHI,GK,maG,az,pD,iJ,eJ,OD,wN,hh,jO,Jh,uMX,Cy,qP,MP,ziC,ZJm,Rl,FTo,aHG,iJC,Gm$,UD,p7U,Btm,lHa,dN,QvI,v4p,PB0,th,m2m,VU0,Ky,Opm,hyI,Xu,wZC,y83,j$p,Hn,TY,$0,LBG,J8$,CFX,Eko,qbC,MUm,fNU,cn,Du,NP,x23,bc,RyI,SO,gk5,okU,eO,uc,zY,Zu,A8G,sD,Fu,U2m,d2a,al,ic,XZp,tUa, WB$,KB5,GY,py,Bn,HpI,T3a,$2I,lc,kv5,D2X,c80,Qh,vn,Pn,mi,VM,hR,wr,yM,jm,LX,JR,N3C,bp5,nk7,CX,ER,M6,xW,ey$,IN0,oR,uSo,gr,AR,UR,dr,tR,Xn,H5,Th,$W,kW,rr,c5,Db,s$U,N6,bE,nX,FBG,em,aNX,GvG,zh,pZ3,Zb,sR,Q$U,vk3,PFa,Vr0,hQp,B5,wE5,QM,lE,Lm5,JJ1,CC5,P5,mH,qdC,OB,hX,w5,ys,ftX,jY,LP,JX,x9$,CP,Mrm,EB,qg,oB7,RQG,Mg,fP,xo,Ra,g5,AJI,U90,UB,d5,KP,Wy,d9o,tX,Wm0,XEl,H3C,T1X,$9$,Yd3,kN$,Hy,Xo,Km1,D93,TM,b35,nBC,cy,Sd7,Yo,ko,Itm,DY,uXl,Z3I,Ng,bP,se1,nP,ato,SY,ltl,eY,B1U,i3X,pEC,GNa,uP,zM,ZY,sB,Fo,aa,iP,pP,PCU,Ono,Qs, hIp,PrI,vy,Py,wb0,Ldp,Vy,yy,O4,wH,E5G,hZ,qip,Cu3,JiX,MM7,jN,fvI,xCp,Ai7,LG,CG,dCC,E4,qq,Mq,fG,tMa,KdU,Ri,oi,gH,WdI,Xba,U4,Wv,X3,Hv,Tk,$y,Yy,ky,rH,cv,D$,Nq,bo,nG,SN,Hn7,TMC,Ii,eN,uo,zk,Z$,s4,$CI,Yi$,F3,pG,ciG,DCa,Bv,lo,OG,bnU,y_,jH,n5$,Cq,Sia,eIo,Iva,uE3,zIm,Znm,sS3,FdX,avX,G5a,in3,pb5,QSp,PuC,lv3,mH1,V80,hYX,qS,MS,ycU,wsI,fq,xv,RG,LQU,oG,gL,A4,C_1,E7C,UG,Jcl,dL,fBG,t4,Kq,Wl,Xb,Hl,TQ,$v,Yv,kv,rL,cl,Dr,NS,bv,nq,SH,IG,eH,uv,zQ,Zr,sG,Fb,aG,iv,GQ,pq,Bl,lv,Q_,vl,Pl,mG,Vi,Os,h0,w6,yi,j0,LQ,J0,CQ,Es,qz,Mz, fQ,xA,RX,oX,g6,A0,Us,d6,t0,KQ,W9,XN,H9,TJ,$A,YA,kA,r6,c9,Df,Nz,bf,nQ,S0,IX,e0,zJ,Zf,RY3,FN,v,aX,uf,GJ,pQ,B9,g7p,Qi,UH5,lf,dH$,P9,t8a,Vt,v9,OP,hC,w2,JC,WQ1,Xsm,HMo,ToI,$Ho,YL$,xZ,AC,ccX,DHo,NoC,bM7,KQU,n70,LR,SL$,IBm,tC,Tu,KR,EP,eYm,CR,UP,Wd,$Z,zYI,MW,fR,Hd,Xq,ZM$,YZ,kZ,r2,cd,sHa,D5,NW,bI,nR,Sp,FQl,aB0,GFC,ps7,uI,zu,lB7,Xa,mb5,ODp,wj5,dma,sP,jzX,Lr1,Bd,J1X,lI,Qt,vd,Pd,m8,VH,CJI,qZo,MJm,ELa,faI,xb$,yH,jZ,JL,EE,qK,MK,RgG,fj,oLC,xV,RU,Lj,AL,UE,d0,tL,gLX,g0,Ub0,Kj,db0,tJ0,Wo,Krl,XU,Ho,Wra,Xjp,T8,HDa,T$l, $V,$bX,YZ1,kKp,YV,kV,r0,r17,c1C,co,DQ,NK,Db$,bk,nj,SZ,IU,N$3,eZ,uk,bDC,z8,nLI,ZQ,SZ3,IaU,eg1,uw5,zgU,ZD5,sE,sz0,Fr5,aap,FU,iD0,aU,GKo,ik,pjX,G8,B$p,la0,pj,Po,Qz1,mF,VK,Oa,hM,vL0,PJ5,yK,L$,JM,mPU,C$,Ea,M3,VO7,f$,xH,OyX,oc,yhI,L7I,Jh7,jlo,Ua,tM,dk,K$,Cca,qD0,E0a,gk,MOm,fuU,xPU,RkX,AM,UPX,dPp,tOX,Ah$,g0a,o0I,K7m,Wg,hkU,W7G,wnU,XnC,HyG,YDX,TNC,Xy,$P7,kY$,DP1,rh5,chI,byX,NN3,n0p,SD0,TA,IuC,zkG,eko,Zy0,uul,slU,F7m,auG,iym,GY1,pnp,BNl,lu1,Ql3,v01,Pc7,m63,$H,Vmo,OXU,hR$,yR1,rk,YH,b6,n$,jRX,Sc,LiG,ec,u6,JR1, CE5,ac,EWX,GA,p$,Bg,D6,l6,QK,qR7,vg,Pg,mu,MmC,V8,Ot,hT,wG,y8,j7,JT,CS,Et,qv,Mv,fb3,x63,RR7,RT,fS,oT,gG,oWU,AT,Ut,dG,gWo,AR5,tT,Wm,X7,Hm,TP,$_,k_,rG,DI,cm,d67,tm5,Ki$,WiX,X5a,HXU,bd,$6a,S7,YR3,IT,zP,kh0,rRI,cRl,D6p,ZI,F7,id,aT,pS,Nra,bXo,GP,nWU,SRo,Q8,Ibo,vm,unG,mK,Vz,ZXa,zRU,sRG,Fi$,ab0,hO,wR,yz,iX0,Ghm,p53,Bra,lb0,QR5,vW1,PEo,mga,VYp,JO,C7,OPU,h85,EW,qM,wya,MM,f7,R1,yX5,o1,gR,AO,ja1,UW,LH7,dR,JX0,tO,CP3,Eom,K7,qBI,MY5,fYa,Wr,X1,Hr,Td,xgX,R8C,$n,Yn,kn,oop,rR,cr,Dq,NM,bm,goa,AXp,n7,Sa,UgU,I1,ea,um, zd,iMp,dg3,tYI,Zq,KH0,WH0,XyG,sW,F1,a1,im,Gd,p7,Br,lm,Qz,vr,Pr,HPl,T5$,jW,Lm,YBm,JB,LG1,jXC,SR,J0C,Cf1,EAC,Iu,y0a,eR,qsG,uy,Nv,M01,ffG,VNX,xz7,zy,hL,ep,VY,R4m,oAo,sU,si7,Gf,gAm,J5,CL,h5,OU,sl,KWG,TL3,ws,u3p,Irl,A0$,kk3,Xv5,FB,GQl,bi,dzI,Uzp,f$7,WW7,t00,eUG,z$0,ZGX,DqC,dSo,A4p,UqI,oya,EyU,CoI,yZa,xSG,HGo,NLo,S4C,I$3,yY,bqG,ovo,WGI,KGo,au,iy,whG,Gy,d2,qW,kF3,jp,X9G,pL,BO,ly,HQ3,PO,mf,VO,hr,wC,T61,O_,yO,je,$zU,Lr,r0U,kJm,Ys5,Cr,Dz1,N63,E_,qU,MU,fr,xm,R6,o6,gC,IfG,U_,e43,Ar,uNl,z43,nAp,SsX,ZQo,dC,tr, sX3,FGp,Kr,afo,Wp,GJm,iQU,B6a,QX0,ORG,hX3,VpC,j2X,JCa,CIX,Ym,km,EZ$,qPm,rC,cp,MpC,f5p,xWm,RX7,NU,oZa,gZ7,nr,Se,UWa,dW5,tpl,XdU,ee,Z7,Fe,HR7,a6,ie,rC0,DWl,cC0,zXa,QO,bR3,F9G,SP5,mV,$W1,pr,N20,kup,YP5,T27,Pp,Bp,vp,ht,GuX,y9,j1,LH,Jt,CH,EF,q$,pd3,B2$,M$,fH,R3,Q2I,vZ5,xK,PIC,OjI,hx3,o3,wo7,UF,yL1,dI,KH,jUG,tt,WK,L8U,HK,Ckp,EVl,$K,YK,N$,MZ1,rI,bO,S1,fQa,e1,DS,nH,xK1,uO,Rx$,zw,oVU,kK,cK,qEp,I3,ZS,gVa,ALC,sF,UKp,F$,a3,iO,Gw,dKl,BK,pH,lO,Q9,tZ5,K83,vK,PK,mt,VA,Oz,hs,W87,wi,yA,Xol,HjI,js,Lu,Js,$KU,T0G,Cu, YE$,k8m,rL3,Ez,cLm,DK$,N00,bj7,nV7,qT,MT,fu,xQ,SE3,IQ1,exp,o_,uUm,gi,As,zx0,Zja,Uz,sU0,F8G,pom,B0$,aQ0,ijC,G8a,ts,Ku,Wt,Xt,lQa,QUX,PkC,vVU,O$m,$Q,wg5,jcI,yM0,DW,ct,JMU,C6G,EHa,NT,qaG,nu,Ss,McC,x3l,Rh5,es,sz,U3o,ZRp,le,tcI,KF7,WF0,Xga,H$a,GX,uq,iq,G$,kA7,rM1,cM1,pu,nHp,D31,Nk0,I6X,ehm,Bt,Sa5,uym,lq,QA,vt,zhI,Z$I,Pt,m$,sc$,VT,FFm,a63,OY,Ft,jd,pgC,s23,nZa,LO,Jv,EY,qZ,MZ,fO,xq,CO,g8,l6C,UY,vHl,d8,mv$,P60,Qcl,V70,WP,yTU,OS3,wm7,hF$,X9,HP,jT0,Lu1,Cd$,T7,iRX,$q,qtl,fIo,V9,xvG,RF5,I5U,uqo,E_G,kq,r8,Dj,o_a, g_a,ATX,UvU,dvm,t70,Ku$,WuX,Xmo,HSC,Yt7,$v1,kP7,rT$,cTU,NZ,DvI,Sd,NG3,bS0,n_$,It,St5,eFG,IIl,hW,Vl,wK,jC,LI,KO,JW,u7o,GP5,o2,Oh,qs,QTa,PdX,at,oV,F9,gK,dK,Vap,O71,mS,tW,j1I,KI,WB,LKG,JO3,Cmm,EnU,XG,qWG,Ma3,HB,fq3,AO5,gnX,xMG,on7,RV0,Tr,UM3,$C,dMo,taC,WK3,XrC,H7$,TRo,cO3,DT,Ns,b7m,b7,nI,SWa,Iq$,u17,Z7G,s17,i7C,GdX,prG,BRm,vn5,PmG,VWp,OmU,hB0,wqp,jBI,Cil,qla,eC,u7,zr,ZT,MW3,xR0,RBl,Ql,XqU,URX,dR$,TgI,vB,$RI,kf3,Yl3,rB7,mY,hq,cBm,PB,wU,yG,DRX,Ng3,Sl5,ur$,qx,Zma,Cd,nE3,vEa,fd,Aq,tq,Pi1,mw7,VR$,HC,X2,ku, rU,OLo,wOX,y5o,cC,Yu,ju0,J5l,CyX,qUp,b2,Eh5,MRo,fXU,S2,RPI,I5,ohl,Jq,$u,FOo,bma,pqo,F2,T_,LeG,QG,Uf,PC,mv,YU$,r5p,kyG,dU,Kd,c5X,Oc,hF,Nsl,wm,yj,bL0,SC,Ls,Nx,hP$,Cs,tRl,Ec,eBo,yB$,eVG,qE,SUC,IX1,fs,ePm,Bso,pOm,Qu$,vhl,o0,AF,Uc,gm,tF,Ks,PyC,Wz,Ve3,XK,hcl,$8,Orp,k8,rm,Lfp,Emp,q_U,bb,MeG,xU$,ps,lb,Qj,RcI,m2,om5,VF,Oj,jy,Lc,Jj,Cc,Ej,gmU,qo,Mo,teX,fc,x1,Kf5,Wf0,RE,oE,Xpa,Hr$,TC7,dd,tj,W1,$U5,H1,rrX,cra,Y_7,DUI,NCo,br5,k1,$1,Tq,nma,Y1,rd,S_X,c1,I7U,DP,ec$,ueC,zc5,bK,nc,Zr0,s6U,Sy,a7o,FfC,IE,ey,uK,GXG,pp0, zq,BC1,l77,ZP,vmI,Q60,sj,Pe5,FZ,V1G,m$0,OH3,aE,iK,h20,yta,j37,Gq,pc,B1,LVa,CO$,lK,EKC,ms,qFm,v1,V7,O6,hm,x$X,oKm,M1l,R23,gKo,fS1,At5,U$G,w9,d$0,KV$,HHl,$$U,TIa,ML,qL,oK,g9,U6,rtG,d9,tm,K8,NI$,X8,bHI,D$7,Hc,ISU,Tz,Yj,e2p,kj,u$7,ABl,WO5,z25,s3o,ZHl,FVG,r9,cc,D0,NL,aS5,pK7,S4,IK,e4,BI$,bl,lSI,Q31,vKl,mTC,ul,Cqa,RTa,aK,oQU,j4,AsG,UT3,dTp,ts5,Gz,Ktp,p8,Bc,Wt7,ll,XtG,Pc,Hul,TiU,mc,Vv,$Tl,Yzm,k$l,rs3,OX,vc,cs7,hN,Ni0,bu$,nQ3,Sz5,wa,IW1,eTa,utU,yv,Zuo,jw,Fta,s_U,ptU,qp,iul,zT$,Lw,Mp,Bi7,Q_1,vQC,lWo,Pqa,fw, xz,RP,oP,AN,mZl,UX,Vdo,da,Kw,jtm,JvX,C0p,Eqa,T9,qY0,yv0,Md$,WY,fja,Rz3,tN,Xd,hz$,wP1,HY,oq1,gqX,L$U,OOo,kz,Av$,ra,UZC,dZ1,cY,DO,Np,td$,ba,XPI,K$$,W$$,nw,HO7,Sw,IP,ew,ua,T8a,$Z5,YY7,z9,rva,cva,ZO,DZC,sX,Fd,N8X,bOC,nq5,SY3,IjI,ez3,F$p,zzI,WV7,aP,iO1,ZO1,stp,u9G,pw,Qtl,G9,ia,aj5,P0o,lja,B8m,pP$,G7G,la,msX,y7,Qv,vY,PY,VCU,mh,OI$,Vb,hd1,xj,wBp,OC,Jm,E6,t1G,jx,J3,jV1,Ch,qj,Lh,yb,Mj,h3,yW5,wA,fh,LS1,EX,G$$,L8,x3,EC,JWm,C75,ECp,RW,qh0,MCl,fTo,xsa,Rdl,xZ$,F8,UC,dA,oW,AWa,nKm,SF1,t3,Kh,Us0,ds$,tCa,WL,WSC,Xx, XB3,TK3,HL,rA,$sC,Y3,nh,krX,Yhm,Ds$,cW$,rW0,Sx,NKp,IW,bIG,ShG,nC3,ex,DTU,ITo,uU,zC,ed0,Zw,zdG,ZIX,sVX,FSU,sC,uGl,Fx,GwG,aW,Gr1,iU,iIo,GC,pBp,iHI,n8,BKC,ph,lU,P73,vC0,wT,jS,yL,hOo,LE,Ju,wCI,yq1,j5m,LYU,JqX,C21,Euo,Ep,qf0,M20,fJG,MF,BL,RO1,ouU,CE,Aq1,xx$,qF,Ux$,fE,KYp,t2a,xG,RF,XC0,gT,dxm,Au,oF,WYa,tu,dT,rqX,k_I,cqp,YfI,Dx0,NUG,Hdp,TUG,bd$,nu1,KE,eO7,u2X,IJG,Sf$,W2,s5G,X6,FYC,zO3,Zd7,aJ3,H2,ido,G_7,lJU,BU7,pCl,Ts,Q57,vu5,$G,P2o,mE3,OsI,YG,kG,hv7,wz7,yFX,rT,j0p,c2,Lv5,JFX,Cbo,E8l,qcG,M3p,fZl,xE3,RvX, g8G,AFX,nE,SS,u4,t3C,eS,Kvp,Wv7,zs,Xza,Tm7,Hsa,kca,rFo,DEp,Yc1,cFX,Zg,aF,F6,$Eo,n8U,Sco,bso,IZl,evo,uKI,zvU,Zs7,JN,s07,Fvp,aZp,isX,pza,Up,bU,Bm$,moC,Q00,VyG,PbG,vqo,i4,lZI,v8X,f8,C8,yj$,L25,jEo,JjU,E1$,qja,Nmo,Nj,Gs,k3,hMm,Myp,w10,fP5,$3,xo0,RMl,HI0,$xa,cL,pE,B2,l4,o1$,QL,g11,Aj5,Uom,dol,tyU,K2G,X1m,Hco,kq5,Td$,YjX,rj$,P2,bc0,DoU,Nd0,eM7,uZl,zMU,m_,Zc7,v2,sEX,IPU,cjp,VU,F2X,$oo,aPI,Or,Gq5,ic7,Bdo,lPC,QE3,p1m,wQ,mLU,PKU,hWl,O85,V4m,wcC,ymm,yU,jK1,jl,Jmp,Cl1,Lsa,q6p,f05,xLo,ULU,oj3,gj1,Amo,dLI,t45, Ksl,Xc5,Ws0,H87,T93,Ll,$LC,Y6U,rm5,kzI,cml,DLl,b8l,nj1,eW3,S6G,u8l,zW1,Z81,N9C,sKI,I0G,Cl,Fsa,a03,i8G,Gza,qt,l0a,B9l,QKp,vj3,Pll,Ow7,mp$,yNG,Mt,Vw5,jPC,Lco,fl,JNp,RJ,oJ,xP,gQ,CaG,Ab,Mwa,qX0,xp3,Ruo,oz5,gz5,ANC,fOU,UpX,Ur,dp$,EzI,dEU,Er,Kca,Wc7,XYa,Hwl,Tap,$pp,YX5,rNp,tb,cNl,k9I,Dpl,Nal,bwC,nzl,euU,IO3,SX3,udX,Wf,U6C,zup,Zwl,XW,sPU,Fcl,T4,G93,pYX,YP,Bam,lO5,$P,iw0,kP,Hf,aO1,Dx,rQ,QP0,Nt,cf,Vxl,wLG,jW0,J3I,Pap,y37,CUU,mjo,E3o,qC7,Mx0,IJ,bn,RZa,o3l,fw$,Sl,A3$,Uj3,hZ7,Oh7,g3G,dj7,Lho,xj$,vzp,el,un,z4, tx$,Zx,YC3,Hh3,kCp,TA1,WhX,r3X,KhU,NAU,c3a,sr,bh1,XL0,SCG,eZo,zZ$,Zho,sWl,ihC,Bf,GCU,Fhm,pl,lwX,QW5,VB,guC,FW,v3I,PUI,OE7,hLX,mF7,yuI,BAG,aJ,vf,Jup,C43,EGC,qpC,GcC,QU,MS5,xFp,fgX,oG3,RLo,uxC,Au0,gG7,Pf,ln,UFa,hw,dF$,tSU,Kb3,Wb5,X27,O$,aw0,HE$,Ocl,nl,TT7,wh,$FU,Yp3,ksm,rum,cup,yB,j9,bE1,Lf,nG0,Sp$,DFp,NTo,Jw,zLX,eLa,u60,ZE1,sF5,Cf,Fbl,agU,iEC,E$,GsG,BTo,lgl,QF3,qJ,p2$,MJ,ff,vGG,P45,mtp,VlG,Ol5,hH0,wfU,oL,xD,RL,yb3,gh,jJX,L_m,Jbp,Cnm,qr3,EPC,Ww,fxa,xt5,Mla,RHI,XD,oP$,Hw,gPp,TL,Ab0,dt1,TQ5,tl1,W_C,Xf0, K_U,Ut5,HlC,$t5,Yr7,k4U,rbm,cbX,DtC,YD,NQI,cw,kD,blX,D8,NJ,Sr0,IxU,nf,S9,eHa,bW,zHI,uW7,IL,sJa,ZlI,uW,zL,Z8,ilI,F_G,ax$,s$,G40,QJ3,BQ3,pfC,lx$,FD,Pn1,hK7,ww0,aL,yw0,mJl,jL$,iW,V9I,CWI,GL,pf,ED$,q$U,M9l,f8C,xJl,lW,oDl,UJm,dJG,t9a,vw,gDp,WUX,QB,Pw,m1,RK3,AwG,V2,XwG,ThI,$JI,kLC,Y$C,rwC,Nh1,jf,wJ,J_,y2,DJ3,cwX,Lz,bfp,Cz,nD$,S$a,I8$,Ey,q8,eK5,uDp,zKl,Zf3,sLl,FU$,a8U,pwC,ifC,Bha,l8o,m8o,VfI,L1l,W_,EY1,f33,Xl,Mfm,qy$,y_7,jZ$,OzI,hqa,J_U,H_,TR,oY5,zc,wp1,gYX,YY,rJ,A_7,U8X,Kz,CT3,K1G,W1I,X_0,D3,c_,uT,TJl, $8p,Yym,zR,kR0,c_X,r_$,D8U,Z3,sy,NJI,Sy7,I37,aZ,nYC,eq1,ulC,bzo,pz,zq3,Zzm,GR,sZp,F13,a33,iz0,p_7,GRC,QZa,vY$,BJo,mDa,Vjo,l3U,Q2,v_,O_7,LJ5,P_,hlI,wko,jn7,ylI,JlC,E6I,CsC,q51,mJ,MjX,f_p,xDX,RlI,o63,AlX,UDU,tjG,dDl,KJp,WJ0,Xkl,H_G,Tel,Y5X,O5,Vk,g6G,hl,kn7,rlU,$D1,I_3,S5U,el$,uOU,snC,Z_C,zl7,FJ3,a_$,we,yk,i_l,Gn3,pka,Be0,Qna,v60,L_,Ps5,jj,C_,l_X,E5,mGX,Vgm,OB5,h7U,wW$,qD,y2l,jOI,C37,MD,EJ5,J23,f_,x6,Rn,Mg5,fhX,xG$,qH1,oJG,R7G,gJ1,on,A27,UGC,tga,XW$,dGo,Kjm,ge,HB3,$G1,YHm,r2p,c2G,Al,U5,DG0,TF7,nJI,bBp, NFG,de,tl,Ih0,SHm,K_,Wk,XO,e7l,Hk,ujp,z7G,ZB$,sO5,Tn,Fj$,$6,ahU,Y6,iB0,k6,re,pW5,GeU,BFo,ck,QOp,D_,ND,P31,Oip,hS1,vJC,weG,LkC,Jfl,Ct$,jka,yfo,qOm,ER0,ME3,RSC,Sj,gRl,oRo,fG0,xIX,Af0,UIX,In,ej,dIp,tEp,KkI,Wko,Xe$,Hi3,$I5,YOp,SOU,cfC,DI1,kEI,eS$,an,Gn,Fk$,aG1,ls,iip,Qk,GEU,uLU,FO,p_,BYm,lG3,Pk,vR3,mlm,Pt0,mj,Bk,s5,Qkl,vk,zSU,peG,Oao,us,VN,hs3,wxX,is,Zip,OH,h2,ySa,wF,jma,yN,LLU,JS7,E9l,qu$,Ch1,jg,LB,J2,MQ3,fyG,xl5,o9$,g9I,UlC,ASp,dlX,EH,CB,Rsp,tQI,WL7,KLX,qG,MG,Xxo,Tz7,$l$,fB,Hap,xJ,RO,Yua,kW1,cSU,oO, rSa,DlG,Nz7,ba0,A2,UH,Iy3,es$,n93,Sup,u_o,dF,t2,Za7,zs1,smp,ayX,FLG,ia7,WW,pxm,GWl,BzI,HW,lyU,v9U,Qm5,$J,Ph$,mr$,VD5,h0X,wTp,y7I,OA$,joI,L65,J7m,CZa,EOa,qQ$,MD$,fFm,xro,R0m,gOC,A7p,Ur3,cW,dr5,tD5,K6a,XTU,YQ$,Tu1,kBa,W6o,b3,HAo,NG,$r5,Sg,c77,r7a,eg,IO,nO5,SQ5,IF3,e0C,RW7,ZAa,z0m,ze,sH,Zh,ug5,Fj,aO,Ge,F6a,pB,mna,EbU,qoU,BW,Lb3,MP3,Wc,kw3,ctX,l3,QN,QF,fRU,xn$,P1,Am,TC,REI,obp,Ap$,gbG,Una,dn0,tPG,KNo,X0o,HNX,Tpl,$nl,WNG,nbp,So0,IR1,bNG,eEm,zEl,sYG,FNp,aR0,OO,ZNG,uTI,YoC,hf,p0l,Bpo,GDl,iNp,vbI,QY5,Cw, PDm,VA0,hrU,wY,w$l,Dn5,mk,mV0,ydl,j9C,LlU,kDm,cpo,aW7,Dw,VV,Jdl,jE,Egl,qqX,MA5,yV,C$3,OWo,xVI,AdG,Jf,UVC,dV0,ogU,EO,tAC,KlI,fKm,Wlo,gg1,X$U,qI,Ci,HWo,$V5,Txo,Li,k1I,MI,pL$,rd7,Nxp,DVm,nga,Sq5,bWX,xR,fi,er1,u5o,zra,ZW0,Rk,s9C,Flp,vg3,p$G,BxG,iW0,aKG,Af,wJp,OVp,Y8,gY,tf,Ki,j7$,LyI,XL,Q9l,YR,CGl,$R,We,qT0,MIp,fs3,VI$,ce,NI,RJC,lK7,Jo1,He,UO,o2$,SE,E2G,g2$,Aoo,Ik,eE,Uk7,TE,hJo,dko,tIo,DG,Ky7,kR,Wy$,rY,Tc,XJI,TEU,ut,zE,$kl,YTG,kH7,ni,bt,ro7,cdp,coX,G10,DkX,NE7,bVm,n23,ZG,sO,eJa,ZVI,Fya,Is7,v2C,PGp,m4X, Vz0,O0I,hNo,wQ7,jpI,yyp,LC3,FL,ak,GE,Jym,CS$,E$5,Bm,qI3,pi,MzI,Be,f9I,lt,QV,I2,x4$,qw,arp,RNl,pm,o$G,e7,ud,g$0,ZX,AyX,U4p,d4a,Mw,vo$,tzo,KC1,WC1,ve,H0I,TfC,Pe,VX,Ou,$4m,ryC,cyX,hS,D4I,YI1,NfI,kaI,b0p,n$5,SIX,I9U,wz,uP7,A11,Cj,Pm,zNl,Z03,OW,eNo,oU,spG,FCm,a97,yX,wk,GaG,jQ,pQ$,La,JS,mL,BfU,l9m,QpG,Ca,Eu,v$a,ql,Ml,PSU,fa,muC,x9,Rm,Vil,O1I,eRX,om,h_p,y$$,w47,gz,AS,jf3,Uu,Lnm,J$G,CMp,Ef3,qK3,Mim,xum,tS,f4U,R_5,of0,gfX,A$m,Kno,Uua,dup,ti0,X4X,TWU,$ua,YK$,H1C,Ka,kTl,r$p,c$o,Dua,NWa,X_,b1l,Hx,TW,$9,nfp,SKC, e_3,uFU,z_o,Z1$,FnX,sfU,a4$,Y9,k9,p4I,i1I,GT0,rz,BW$,l4$,cx,Dy,Qf1,Nl,vfo,bh,PM$,na,SQ,meG,Im,eQ,VTC,Ov$,uh,zW,h9U,Zy,wR5,yA1,GW,pa,jDU,LIC,JA3,q8C,EM5,Bx,MTp,fdl,xe7,B50,CHa,oMa,gMp,Ue$,K07,Ho0,Gl,s3; E3=function(m,V,O){if(m-6>>4<1&&(m+3&22)>=14){y$(26,V);var h=decodeURIComponent(V[J[39]](J[32])||J[8])[J[2]](J[77]);var w=V[J[10]]===J[28]&&h[J[7]]>1&&!!h[1]}if(((m^3)&11)>=4&&m>>1<12){y$(27,V);if(h=V[J[9]][J[64]]||null)h=mmG[0](h),V[J[36]](J[64],h);w=[]}m-6<<2=m&&(this[J[26]]=V,this[J[5]]=O===void 0?!1:O,this[J[51]]=this[J[10]]=this[J[11]]=J[8],this[J[9]]={},this[J[21]]=J[8]);if((m-1|23)=m){h=64;for(var y=[];++h-y[J[7]]-32;){switch(h){case 91:h=44;continue;case 123:h=65;break; case 65:h-=18;continue;case 58:h=96;continue;case 46:h=95}y[J[27]](String[J[6]](h))}w=y}if((m|88)==m){h=V[J[2]](J[43]);y={};for(var L=0;L9&&(((0,V[43])(V[79],V[new Date(J[16])/1E3]),(0,V[43])(V[3], V[26]),V[53])(V[33],(0,V[66])(),V[8]),(0,V[43])(V[45],V[33]),1)||(0,V[23])((0,V[1])(V[33]),V[21],V[new Date(J[83])/1E3],V[30])*((0,V[60])(V[24],V[11]),V[53])(V[33],(0,V[86])(),V[8])}catch(x){(0,V[53])(V[13],(0,V[73])(),V[8])}f=[]}(m>>2&13)==1&&(f=V[J[26]]?V[J[26]][J[1]](J[61]):V[J[11]]===J[61]);((m^57)&16)<9&&m-9>=-89&&(f=O(h,w,y,L,C,E));m-2<<2>=m&&(m-9^32)>4)){y$(30,V);var h=g.RC(V[J[9]],VGa)}(m&60)==m&&(h=V!==null);if((m-9^23)>=m&&(m-8^11)>2&13)==4&&O[J[18]](O[J[7]],0,V);if((m|56)==m)for(O=(O%V[J[7]]+V[J[7]])%V[J[7]];O--;)V[J[62]](V[J[71]]());return h}; y$=function(m,V,O){if((m&43)==m){(0,V[53])(V[13],(0,V[58])(),V[8]);(0,V[60])(V[33],V[32]);(0,V[71])((0,V[43])(V[35],V[19])>>(0,V[53])(V[33],(0,V[58])(),V[75]),V[43],(0,V[60])(V[26],V[46]),V[25],V[26]);var h=[]}if(m-9>>3==2&&V[J[26]])var w=g7(2,V);(m^55)&7||(V=(V%O[J[7]]+O[J[7]])%O[J[7]],O[J[18]](V,1));return h}; U3=function(m,V){if(((m|3)&13)==1){y$(25,V);var O=V[J[51]]}if((m|40)==m)a:{var h=V[J[2]](J[8]),w=[-439007636,1520823897,-1208559992,1356008044,1115629344,-1791673613,-74618318,OoC,-1671671688,365950250,h5$,-1582761284,function(y,L,C){var E=L[J[7]];y[J[67]](function(q,M,f){this[J[27]](f[M]=L[(L[J[54]](q)-L[J[54]](this[M])+M+E--)%L[J[7]]])},C[J[2]](J[8]))}, wX5,631313364,1890177975,-1051549919,89343161,-1850068334,438081798,361350789,-1960913927,yI7,-1461102202,2140564311,jCa,-1850068334,-1473581558,J[37],1068848455,-922715560,h,-1516669750,L0I,-387710409,JIl,1631028204,Cp5,null,1630778238,h,EU0,-598403182,function(y,L){L=(L%y[J[7]]+y[J[7]])%y[J[7]];y[J[18]](-L)[J[3]]()[J[67]](function(C){y[J[62]](C)})}, /(})(([{\\\]]];))/,null,472604042,1727351619,896706303,/(})(([{\\\]]];))/,-2107689559,h,202471983,q3X,null,-397604203,J[45],-43229137,375118314,548003045,123916864,-325686133,1630778238,MG0,f10,xmU,699523954,1753587427,1319635153,1419381340,-2007469667,-549901408,-1226589396,1605237093,-549901408,R5$,J[71],-1032569830,oU$,gU7,544091036,-517884084,873217911,1937966382,-1516669750,AI5];w[38]=w;w[45]=w;w[54]=w;if(typeof Ump===J[89])O=V;else{try{w=xU(1,w)}catch(y){O=J[86]+V;break a}O=h[J[20]](J[8])}}if((m^ 23)>>4<2&&m+3>>4>=0){h=64;for(w=[];++h-w[J[7]]-32;)switch(h){case 46:h=95;default:w[J[27]](String[J[6]](h));case 94:case 95:case 96:break;case 123:h-=76;case 92:case 93:continue;case 58:h=44;case 91:}O=w}return O}; oC=function(m,V,O){if((m-6^20)>=m&&(m-1^19)1&&C[1]){y=h[J[9]];var E=y[J[72]](/^[^.]*/,J[8]);g.tI(h,(y[J[54]](J[25])===0?J[25]:J[63])+L+J[48]+C[1]+E);h=new g.WX(h[J[52]]());h[J[36]](J[79],J[34]);w=h}else O?(h=V[J[50]](),h[J[36]](J[79],J[34]),w=h):(L=h[J[9]][J[60]](J[29]),h[J[9]][J[60]](J[66])? (g.tI(h,J[84]),y=h[J[52]]()):h[J[9]][J[60]](J[38])?(g.tI(h,J[33]),y=h[J[52]]()):(h=dma(y),Xa(h)&&(y=h)),h=new g.WX(y),h[J[36]](J[74],J[34]),L&&h[J[36]](J[56],J[57]),w=h)}if(!(m+1>>4))for(h=V[J[7]];h;)V[J[27]](V[J[18]](--h,1)[0]);(m^79)&14||(V=(V%O[J[7]]+O[J[7]])%O[J[7]],h=O[0],O[0]=O[V],O[V]=h,w=[V]);if((m|56)==m){h=64;for(y=[];++h-y[J[7]]-32;){switch(h){case 58:h-=14;case 91:case 92:case 93:continue;case 123:h=47;case 94:case 95:case 96:continue;case 46:h=95}y[J[27]](String[J[6]](h))}w=y}return w}; Lo=function(m,V,O,h,w,y){if(!(m-6>>3)){var L=V[O],C=L[J[54]](J[24]);C>0?g7(1,h,L[J[15]](0,C),L[J[15]](C+1)):L&&(h[L]=J[8]);var E=[]}if((m>>2&15)==1){L=V[J[2]](J[80]);C=0;L[0]||C++;for(var q={};C>2&15||(V[50]!=-9&&((0,V[70])(V[58],V[77])*(0,V[37])(V[78])&(0,V[68])((0,V[80])(V[67],V[27]),V[40],V[85],V[78]),J[34])||(0,V[68])(((0,V[4])(V[65]),V[70])(V[78],V[15])!==(0,V[39])(V[67],(0,V[34])(),V[83]),V[49],V[1],V[67]),(V[79]!=-5||((0,V[62])(((((0,V[39])(V[67], (0,V[19])(),V[83]),(0,V[70])(V[65],V[14]),V[39])(V[58],(0,V[26])(),V[83]),V[49])(V[38],V[58]),V[49])(V[35],V[81]),(0,V[4])(V[65]),V[68],(0,V[49])(V[22],V[67]),V[49],V[84],V[67]),0))&&(0,V[62])((0,V[16])((0,V[68])((0,V[37])(V[58]),V[70],V[81],V[33]),V[80],(0,V[52])(V[30],V[84]),V[0],V[70],V[8]),(0,V[80])((0,V[52])(V[65],V[84]),V[O[J[30]](8,new h(J[88])/1E3)*157+-5144494],V[84],V[37]),V[14],(0,V[52])(V[68],V[27]),V[52],V[41],V[27]),V[54]==-4&&((0,V[81])(V[55],V[27]),1)||(0,V[16])(V[13],V[80]),V[47]!= -9&&(V[74]==10||((0,V[52])(V[15],V[11])+(((0,V[36])(V[24]),V[36])(V[27])&(0,V[4])(V[22],V[61])),null))&&(((0,V[13])(V[new h(J[78])/1E3],V[81]),V[21])(V[74],V[11]),(0,V[13])(V[82],V[67]),V[4])(V[53],V[61]),V[78]!=10&&(0,V[33])(V[60],V[61])>(0,V[1])(V[16],V[74]),(V[38]!==8||((((((0,V[71])((0,V[14])(V[61],(0,V[19])(),V[56]),V[69],V[61],V[12]),V[4])(V[10],V[67]),V[48])((0,V[4])(V[65],V[74]),V[4],(0,V[new h(J[23])/1E3])(V[81],(0,V[19])(),V[36]),V[29],V[74]),V[49])(V[72]),V[14])(V[72],(0,V[27])(),V[56]), J[8]))&&(0,V[75])(((0,V[33])(V[76],V[58]),V[21])(V[58],V[25]),(0,V[1])(V[24]),V[31],V[53],(0,V[72])(V[42],V[19]),(0,V[23])((0,V[1])(V[13]),V[72],V[37],V[26]),(0,V[72])(V[18],V[19]),V[24],(0,V[73])(),V[75]),E=[]);(m+4&15)==2&&(E=O(h,w,y));return E}; YU=function(m,V,O,h,w,y,L,C,E,q){if(m+3>=18&&m-2<26){var M=V[J[54]](J[80],12),f=V[J[54]](J[80],M+1);M>0&&f>0?(O[J[10]]=V[J[15]](0,f),V=V[J[15]](f+1)):(O[J[10]]=V,V=J[8]);var x=[V]}m+5>>4||(M=V[J[2]](J[8]),HX[J[13]](M,42),HX[J[49]](M,2),HX[J[13]](M,70),HX[J[91]](M,75),x=M[J[20]](J[8]));m+5>>1=m&&(x=h(w,y,L,C,E,q));m-6>>3==3&&(f=g.d(V,tGo)||V[J[82]],M={Zs:!1,Y7:J[8],eM:J[8],s:J[8]},f?(f=Tl(f),M[J[12]]=!0,M[J[87]]=f[J[21]],M[J[22]]=f[J[19]],M[J[41]]=f[J[41]],x=M):x=M);return x}; bp=function(m,V,O,h,w,y,L,C,E,q,M,f,x){var R;m-6>>4||O[J[7]]==0||(V=(V%O[J[7]]+O[J[7]])%O[J[7]],O[J[18]](0,1,O[J[18]](V,1,O[0])[0]));(m<<1&15)==2&&(R=V(y,L,C));(m^2)&14||(R=h(w,y,L,C,E,q,M,f,x));return R}; g7=function(m,V,O,h,w,y,L){if(!((m^64)>>3)){for(var C=64,E=[];++C-E[J[7]]-32;)switch(C){case 58:C=96;continue;case 91:C=44;break;case 65:C=47;continue;case 46:C=153;case 123:C-=58;default:E[J[27]](String[J[6]](C))}var q=E}(m-1&3)==2&&(q=O(w,y,L));if((m&42)==m){if(!(Xa(V[J[26]])||V[J[26]][J[1]](J[61])||V[J[26]][J[1]](J[76])||V[J[26]][J[1]](J[75])))throw new g.no(J[65],V[J[26]]);C=g.IC(V[J[26]]);V[J[11]]=C[J[73]];V[J[51]]=C[J[9]]+(C[J[51]]!=null?J[17]+C[J[51]]:J[8]);E=C[J[26]];E[J[1]](J[28])?(V[J[10]]= J[28],E=E[J[15]](14)):E[J[1]](J[14])?(V[J[10]]=J[14],E=E[J[15]](13)):E[J[1]](J[58])?(E=YU(15,E,V),E=E[0]):(V[J[10]]=E,E=J[8]);var M=V[J[9]];V[J[9]]=Lo(4,E);Object[J[47]](V[J[9]],E3(90,C[J[5]][J[52]]()));Object[J[47]](V[J[9]],M);V[J[9]][J[68]]===J[69]&&(delete V[J[9]][J[68]],V[J[10]]+=J[59]);V[J[26]]=J[8];V[J[21]]=J[8];V[J[5]]&&(C=E3(8,V));q=[]}(m<<2&6)>=2&&m-6<21&&(O===J[90]&&((C=h[J[54]](J[24]))>=0?(O=J[46]+h[J[15]](0,C),h=h[J[15]](C+1)):(C=h[J[54]](J[53]))>=0&&(O=J[46]+h[J[15]](0,C),h=h[J[15]](C+ 3))),V[O]=h);return q}; eG=function(m){return function(){return K07[m].apply(this,arguments)}}; g.up=function(m,V){return K07[m]=V}; W01=function(m){m=["object"==typeof globalThis&&globalThis,m,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var V=0;V=this.length))return this[m]}; S31=function(m,V,O){m instanceof String&&(m=String(m));for(var h=m.length-1;h>=0;h--){var w=m[h];if(V.call(O,w,h,m))return{La:h,WL:w}}return{La:-1,WL:void 0}}; g.TZ=function(m,V,O){m=m.split(".");O=O||g.WH;for(var h;m.length&&(h=m.shift());)m.length||V===void 0?O[h]&&O[h]!==Object.prototype[h]?O=O[h]:O=O[h]={}:O[h]=V}; YI=function(m,V){var O=g.$I("CLOSURE_FLAGS");m=O&&O[m];return m!=null?m:V}; g.$I=function(m,V){m=m.split(".");V=V||g.WH;for(var O=0;O2){var h=Array.prototype.slice.call(arguments,2);return function(){var w=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(w,h);return m.apply(V,w)}}return function(){return m.apply(V,arguments)}}; g.IA=function(m,V,O){g.IA=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?e5C:uaG;return g.IA.apply(null,arguments)}; g.e$=function(m,V){var O=Array.prototype.slice.call(arguments,1);return function(){var h=O.slice();h.push.apply(h,arguments);return m.apply(this,h)}}; g.uz=function(){return Date.now()}; z5U=function(m){g.TZ("yt.abuse.playerAttLoaderRun",m)}; ZM=function(m){return m}; g.Fh=function(m,V){function O(){} O.prototype=V.prototype;m.jW=V.prototype;m.prototype=new O;m.prototype.constructor=m;m.ji=function(h,w,y){for(var L=Array(arguments.length-2),C=2;C=0;--O)O in h&&V.call(void 0,h[O],O,m)}; g.p5=function(m,V,O){V=GZ(m,V,O);return V<0?null:typeof m==="string"?m.charAt(V):m[V]}; GZ=function(m,V,O){for(var h=m.length,w=typeof m==="string"?m.split(""):m,y=0;y=0;h--)if(h in w&&V.call(O,w[h],h,m))return h;return-1}; g.vH=function(m,V){return io5(m,V)>=0}; Glo=function(m){if(!Array.isArray(m))for(var V=m.length-1;V>=0;V--)delete m[V];m.length=0}; g.Om=function(m,V){V=io5(m,V);var O;(O=V>=0)&&g.Vg(m,V);return O}; g.Vg=function(m,V){return Array.prototype.splice.call(m,V,1).length==1}; g.hn=function(m,V){V=GZ(m,V);V>=0&&g.Vg(m,V)}; pX7=function(m,V){var O=0;a1G(m,function(h,w){V.call(void 0,h,w,m)&&g.Vg(m,w)&&O++})}; g.wZ=function(m){return Array.prototype.concat.apply([],arguments)}; g.j5=function(m){var V=m.length;if(V>0){for(var O=Array(V),h=0;h>>1),E=void 0;O?E=V.call(void 0,m[C],C,m):E=V(h,m[C]);E>0?w=C+1:(y=C,L=!E)}return L?w:-w-1}; g.Rg=function(m,V){m.sort(V||M5)}; QCm=function(m,V){var O=M5;g.Rg(m,function(h,w){return O(V(h),V(w))})}; g.og=function(m,V,O){if(!g.cH(m)||!g.cH(V)||m.length!=V.length)return!1;var h=m.length;O=O||vU1;for(var w=0;wV?1:m0&&(V[w]=h)},m); return V}; JGp=function(m){m=Gx(m);var V=[];g.Mm(m,function(O,h){h in Object.prototype||typeof O!="undefined"&&V.push([h,":",O].join(""))}); return V}; EI3=function(m){Fp(m,"od",CzX);Fp(m,"opac",lX).Z=!0;Fp(m,"sbeos",lX).Z=!0;Fp(m,"prf",lX).Z=!0;Fp(m,"mwt",lX).Z=!0;Fp(m,"iogeo",lX)}; Qg=function(m,V){return m.lastIndexOf(V,0)==0}; qJU=function(m,V){var O=m.length-V.length;return O>=0&&m.indexOf(V,O)==O}; g.v8=function(m){return/^[\s\xa0]*$/.test(m)}; g.P8=function(m,V){return m.indexOf(V)!=-1}; mg=function(m,V){return g.P8(m.toLowerCase(),V.toLowerCase())}; g.hV=function(m,V){var O=0;m=V1(String(m)).split(".");V=V1(String(V)).split(".");for(var h=Math.max(m.length,V.length),w=0;O==0&&wV?1:0}; g.wX=function(){var m=g.WH.navigator;return m&&(m=m.userAgent)?m:""}; JV=function(m){if(!y1&&!jv||!L2)return!1;for(var V=0;V0:!1}; qi=function(){return E0()?!1:C2("Opera")}; M$X=function(){return E0()?!1:C2("Trident")||C2("MSIE")}; fM1=function(){return E0()?JV("Microsoft Edge"):C2("Edg/")}; Mi=function(){return C2("Firefox")||C2("FxiOS")}; xp=function(){return C2("Safari")&&!(f2()||(E0()?0:C2("Coast"))||qi()||(E0()?0:C2("Edge"))||fM1()||(E0()?JV("Opera"):C2("OPR"))||Mi()||C2("Silk")||C2("Android"))}; f2=function(){return E0()?JV("Chromium"):(C2("Chrome")||C2("CriOS"))&&!(E0()?0:C2("Edge"))||C2("Silk")}; xAI=function(){return C2("Android")&&!(f2()||Mi()||qi()||C2("Silk"))}; RnI=function(m){var V={};m.forEach(function(O){V[O[0]]=O[1]}); return function(O){return V[O.find(function(h){return h in V})]||""}}; oIp=function(m){var V=g.wX();if(m==="Internet Explorer"){if(M$X())if((m=/rv: *([\d\.]*)/.exec(V))&&m[1])V=m[1];else{m="";var O=/MSIE +([\d\.]+)/.exec(V);if(O&&O[1])if(V=/Trident\/(\d.\d)/.exec(V),O[1]=="7.0")if(V&&V[1])switch(V[1]){case "4.0":m="8.0";break;case "5.0":m="9.0";break;case "6.0":m="10.0";break;case "7.0":m="11.0"}else m="7.0";else m=O[1];V=m}else V="";return V}var h=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");O=[];for(var w;w=h.exec(V);)O.push([w[1],w[2],w[3]||void 0]); V=RnI(O);switch(m){case "Opera":if(qi())return V(["Version","Opera"]);if(E0()?JV("Opera"):C2("OPR"))return V(["OPR"]);break;case "Microsoft Edge":if(E0()?0:C2("Edge"))return V(["Edge"]);if(fM1())return V(["Edg"]);break;case "Chromium":if(f2())return V(["Chrome","CriOS","HeadlessChrome"])}return m==="Firefox"&&Mi()||m==="Safari"&&xp()||m==="Android Browser"&&xAI()||m==="Silk"&&C2("Silk")?(V=O[2])&&V[1]||"":""}; gIU=function(m){if(E0()&&m!=="Silk"){var V=L2.brands.find(function(O){return O.brand===m}); if(!V||!V.version)return NaN;V=V.version.split(".")}else{V=oIp(m);if(V==="")return NaN;V=V.split(".")}return V.length===0?NaN:Number(V[0])}; UAa=function(){var m=null;if(!AGa)return m;try{var V=function(O){return O}; m=AGa.createPolicy("goog#html",{createHTML:V,createScript:V,createScriptURL:V})}catch(O){}return m}; oj=function(){Rj===void 0&&(Rj=UAa());return Rj}; gX=function(m){this.Z=m}; var jCa=function(m,V){return qm[J[4]](this,25,m,V)}; U0=function(m){var V=oj();m=V?V.createScriptURL(m):m;return new gX(m)}; dX=function(m){if(m instanceof gX)return m.Z;throw Error("");}; tV=function(m){this.Z=m}; g.K2=function(m){if(m instanceof tV)return m.Z;throw Error("");}; WM=function(m){this.o8=m}; XC=function(m){return new WM(function(V){return V.substr(0,m.length+1).toLowerCase()===m+":"})}; g.HM=function(m,V){V=V===void 0?dAa:V;a:if(V=V===void 0?dAa:V,!(m instanceof tV)){for(var O=0;O4);w++)V[Zi(m[w])]||(O+="\nInner error "+h++ +": ",m[w].stack&&m[w].stack.indexOf(m[w].toString())==0||(O+=typeof m[w]==="string"?m[w]:m[w].message+"\n"),O+=ux(m[w],V));w")!=-1&&(m=m.replace(DA1,">")),m.indexOf('"')!=-1&&(m=m.replace(Nc5,""")),m.indexOf("'")!=-1&&(m=m.replace(b5o,"'")),m.indexOf("\x00")!=-1&&(m=m.replace(nIG,"�")));return m}; g.Gp=function(m){return m==null?"":String(m)}; p2=function(m){for(var V=0,O=0;O>>0;return V}; BM=function(m){var V=Number(m);return V==0&&g.v8(m)?NaN:V}; SJX=function(m){return String(m).replace(/\-([a-z])/g,function(V,O){return O.toUpperCase()})}; IMU=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; enI=function(m){return m.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(V,O,h){return O+h.toUpperCase()})}; uha=function(m){var V=1;m=m.split(":");for(var O=[];V>0&&m.length;)O.push(m.shift()),V--;m.length&&O.push(m.join(":"));return O}; lx=function(){return y1||jv?!!L2&&!!L2.platform:!1}; zno=function(){return lx()?L2.platform==="Android":C2("Android")}; Q1=function(){return C2("iPhone")&&!C2("iPod")&&!C2("iPad")}; vM=function(){return Q1()||C2("iPad")||C2("iPod")}; PM=function(){return lx()?L2.platform==="macOS":C2("Macintosh")}; Z5C=function(){return lx()?L2.platform==="Windows":C2("Windows")}; mD=function(m){mD[" "](m);return m}; sA1=function(m,V){try{return mD(m[V]),!0}catch(O){}return!1}; aMG=function(m,V){var O=Fa5;return Object.prototype.hasOwnProperty.call(O,m)?O[m]:O[m]=V(m)}; g.VS=function(m){return aMG(m,function(){return g.hV(i5a,m)>=0})}; g.O2=function(m,V,O){return Math.min(Math.max(m,V),O)}; g.hk=function(m,V){m%=V;return m*V<0?m+V:m}; w4=function(m,V,O){return m+O*(V-m)}; g.yS=function(m,V){this.x=m!==void 0?m:0;this.y=V!==void 0?V:0}; jn=function(m,V){return m==V?!0:m&&V?m.x==V.x&&m.y==V.y:!1}; g.LK=function(m,V){this.width=m;this.height=V}; g.Jk=function(m,V){return m==V?!0:m&&V?m.width==V.width&&m.height==V.height:!1}; CK=function(m){return m.width*m.height}; qy=function(m,V){this.Z=m===E2&&V||""}; My=function(m){if(m instanceof kp)return m;m=String(m).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return rX(m)}; pH7=function(m){return GZp(m)}; GZp=function(m){var V=My("");return rX(m.map(function(O){return cM(My(O))}).join(cM(V).toString()))}; Pz0=function(m){var V;if(!Bc1.test("div"))throw Error("");if(lMG.indexOf("DIV")!==-1)throw Error("");var O="":(m=pH7(V.map(function(h){return h instanceof kp?h:My(String(h))})),O+=">"+m.toString()+""); return rX(O)}; QAG=function(m){for(var V="",O=Object.keys(m),h=0;h2&&jga(w,L,h,2);return L}; jga=function(m,V,O,h){function w(C){C&&V.appendChild(typeof C==="string"?m.createTextNode(C):C)} for(;h0)w(y);else{a:{if(y&&typeof y.length=="number"){if(g.NA(y)){var L=typeof y.item=="function"||typeof y.item=="string";break a}if(typeof y==="function"){L=typeof y.item=="function";break a}}L=!1}g.An(L?g.j5(y):y,w)}}}; g.Yc=function(m){return T3(document,m)}; T3=function(m,V){V=String(V);m.contentType==="application/xhtml+xml"&&(V=V.toLowerCase());return m.createElement(V)}; g.kc=function(m){return document.createTextNode(String(m))}; g.r4=function(m,V){m.appendChild(V)}; g.cI=function(m){for(var V;V=m.firstChild;)m.removeChild(V)}; Ny=function(m,V,O){m.insertBefore(V,m.childNodes[O]||null)}; g.bN=function(m){return m&&m.parentNode?m.parentNode.removeChild(m):null}; g.nK=function(m,V){if(!m||!V)return!1;if(m.contains&&V.nodeType==1)return m==V||m.contains(V);if(typeof m.compareDocumentPosition!="undefined")return m==V||!!(m.compareDocumentPosition(V)&16);for(;V&&m!=V;)V=V.parentNode;return V==m}; Rx=function(m){return m.nodeType==9?m:m.ownerDocument||m.document}; g.Sn=function(m,V){if("textContent"in m)m.textContent=V;else if(m.nodeType==3)m.data=String(V);else if(m.firstChild&&m.firstChild.nodeType==3){for(;m.lastChild!=m.firstChild;)m.removeChild(m.lastChild);m.firstChild.data=String(V)}else g.cI(m),m.appendChild(Rx(m).createTextNode(String(V)))}; Ix=function(m){return m.tagName=="A"&&m.hasAttribute("href")||m.tagName=="INPUT"||m.tagName=="TEXTAREA"||m.tagName=="SELECT"||m.tagName=="BUTTON"?!m.disabled&&(!m.hasAttribute("tabindex")||LAX(m)):m.hasAttribute("tabindex")&&LAX(m)}; LAX=function(m){m=m.tabIndex;return typeof m==="number"&&m>=0&&m<32768}; uN=function(m,V,O){if(!V&&!O)return null;var h=V?String(V).toUpperCase():null;return en(m,function(w){return(!h||w.nodeName==h)&&(!O||typeof w.className==="string"&&g.vH(w.className.split(/\s+/),O))},!0)}; en=function(m,V,O){m&&!O&&(m=m.parentNode);for(O=0;m;){if(V(m))return m;m=m.parentNode;O++}return null}; xc=function(m){this.Z=m||g.WH.document||document}; Jn0=function(){this.Z=this.fV=null}; z3=function(){}; Fm=function(){if(!Zm())throw Error();}; Zm=function(){return!(!ax||!ax.performance)}; CXa=function(m){return g.Xm?"webkit"+m:m.toLowerCase()}; iN=function(m){return function(){return m}}; g.G3=function(){}; ES$=function(m){var V=V||0;return function(){return m.apply(this,Array.prototype.slice.call(arguments,0,V))}}; pK=function(m){var V=!1,O;return function(){V||(O=m(),V=!0);return O}}; BI=function(m){var V=m;return function(){if(V){var O=V;V=null;O()}}}; lN=function(m,V,O){var h=0;return function(w){g.WH.clearTimeout(h);var y=arguments;h=g.WH.setTimeout(function(){m.apply(O,y)},V)}}; QS=function(m,V,O,h){this.top=m;this.right=V;this.bottom=O;this.left=h}; vI=function(m){return m.right-m.left}; PI=function(m,V){return m==V?!0:m&&V?m.top==V.top&&m.right==V.right&&m.bottom==V.bottom&&m.left==V.left:!1}; m4=function(m,V,O){V instanceof g.yS?(m.left+=V.x,m.right+=V.x,m.top+=V.y,m.bottom+=V.y):(m.left+=V,m.right+=V,typeof O==="number"&&(m.top+=O,m.bottom+=O));return m}; g.V5=function(m,V,O,h){this.left=m;this.top=V;this.width=O;this.height=h}; OS=function(m,V){return m==V?!0:m&&V?m.left==V.left&&m.width==V.width&&m.top==V.top&&m.height==V.height:!1}; g.wb=function(m,V,O){if(typeof V==="string")(V=hQ(m,V))&&(m.style[V]=O);else for(var h in V){O=m;var w=V[h],y=hQ(O,h);y&&(O.style[y]=w)}}; hQ=function(m,V){var O=qm$[V];if(!O){var h=SJX(V);O=h;m.style[h]===void 0&&(h=(g.Xm?"Webkit":y5?"Moz":null)+enI(h),m.style[h]!==void 0&&(O=h));qm$[V]=O}return O}; g.jL=function(m,V){var O=m.style[SJX(V)];return typeof O!=="undefined"?O:m.style[hQ(m,V)]||""}; JQ=function(m,V){var O=Rx(m);return O.defaultView&&O.defaultView.getComputedStyle&&(m=O.defaultView.getComputedStyle(m,null))?m[V]||m.getPropertyValue(V)||"":""}; CF=function(m,V){return JQ(m,V)||(m.currentStyle?m.currentStyle[V]:null)||m.style&&m.style[V]}; g.qN=function(m,V,O){if(V instanceof g.yS){var h=V.x;V=V.y}else h=V,V=O;m.style.left=ES(h,!1);m.style.top=ES(V,!1)}; M5m=function(m){return new g.yS(m.offsetLeft,m.offsetTop)}; MN=function(m){try{return m.getBoundingClientRect()}catch(V){return{left:0,top:0,right:0,bottom:0}}}; fE0=function(m){var V=Rx(m),O=CF(m,"position"),h=O=="fixed"||O=="absolute";for(m=m.parentNode;m&&m!=V;m=m.parentNode)if(m.nodeType==11&&m.host&&(m=m.host),O=CF(m,"position"),h=h&&O=="static"&&m!=V.documentElement&&m!=V.body,!h&&(m.scrollWidth>m.clientWidth||m.scrollHeight>m.clientHeight||O=="fixed"||O=="absolute"||O=="relative"))return m;return null}; g.fF=function(m){var V=Rx(m),O=new g.yS(0,0);if(m==(V?Rx(V):document).documentElement)return O;m=MN(m);V=ox(V);V=yn7(V.Z);O.x=m.left+V.x;O.y=m.top+V.y;return O}; Ro0=function(m,V){var O=new g.yS(0,0),h=HI(Rx(m));if(!sA1(h,"parent"))return O;do{var w=h==V?g.fF(m):x57(m);O.x+=w.x;O.y+=w.y}while(h&&h!=V&&h!=h.parent&&(m=h.frameElement)&&(h=h.parent));return O}; g.xi=function(m,V){m=oSa(m);V=oSa(V);return new g.yS(m.x-V.x,m.y-V.y)}; x57=function(m){m=MN(m);return new g.yS(m.left,m.top)}; oSa=function(m){if(m.nodeType==1)return x57(m);m=m.changedTouches?m.changedTouches[0]:m;return new g.yS(m.clientX,m.clientY)}; g.Rr=function(m,V,O){if(V instanceof g.LK)O=V.height,V=V.width;else if(O==void 0)throw Error("missing height argument");m.style.width=ES(V,!0);m.style.height=ES(O,!0)}; ES=function(m,V){typeof m=="number"&&(m=(V?Math.round(m):m)+"px");return m}; g.or=function(m){var V=gS3;if(CF(m,"display")!="none")return V(m);var O=m.style,h=O.display,w=O.visibility,y=O.position;O.visibility="hidden";O.position="absolute";O.display="inline";m=V(m);O.display=h;O.position=y;O.visibility=w;return m}; gS3=function(m){var V=m.offsetWidth,O=m.offsetHeight,h=g.Xm&&!V&&!O;return(V===void 0||h)&&m.getBoundingClientRect?(m=MN(m),new g.LK(m.right-m.left,m.bottom-m.top)):new g.LK(V,O)}; g.gb=function(m,V){m.style.display=V?"":"none"}; AQ=function(m){return m?m.passive&&An$()?m:m.capture||!1:!1}; US=function(m,V,O,h){return typeof m.addEventListener==="function"?(m.addEventListener(V,O,AQ(h)),!0):!1}; db=function(m){if(m.prerendering)return 3;var V;return(V={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[m.visibilityState||m.webkitVisibilityState||m.mozVisibilityState||""])!=null?V:0}; U5X=function(){}; tQ=function(m){try{return!!m&&m.location.href!=null&&sA1(m,"foo")}catch(V){return!1}}; d53=function(m){for(var V=m;m&&m!=m.parent;)m=m.parent,tQ(m)&&(V=m);return V}; t5m=function(){return(y1||jv)&&L2?L2.mobile:!KF()&&(C2("iPod")||C2("iPhone")||C2("Android")||C2("IEMobile"))}; KF=function(){return(y1||jv)&&L2?!L2.mobile&&(C2("iPad")||C2("Android")||C2("Silk")):C2("iPad")||C2("Android")&&!C2("Mobile")||C2("Silk")}; KAm=function(m){var V,O;return(O=(V=/https?:\/\/[^\/]+/.exec(m))==null?void 0:V[0])!=null?O:""}; TZ$=function(m){m=m||X4();for(var V=new WAl(g.WH.location.href,!1),O=null,h=m.length-1,w=h;w>=0;--w){var y=m[w];!O&&X8U.test(y.url)&&(O=y);if(y.url&&!y.Z){V=y;break}}w=null;y=m.length&&m[h].url;V.depth!==0&&y&&(w=m[h]);return new H9C(V,w,O)}; X4=function(){var m=g.WH,V=[],O=null;do{var h=m;if(tQ(h)){var w=h.location.href;O=h.document&&h.document.referrer||null}else w=O,O=null;V.push(new WAl(w||""));try{m=h.parent}catch(y){m=null}}while(m&&h!==m);h=0;for(m=V.length-1;h<=m;++h)V[h].depth=m-h;h=g.WH;if(h.location&&h.location.ancestorOrigins&&h.location.ancestorOrigins.length===V.length-1)for(m=1;mV&&(V=O.length);return 3997-V-m.D.length-1}; ki=function(m,V){this.Z=m;this.depth=V}; D5G=function(){function m(C,E){return C==null?E:C} var V=X4(),O=Math.max(V.length-1,0),h=TZ$(V);V=h.Z;var w=h.L,y=h.D,L=[];y&&L.push(new ki([y.url,y.Z?2:0],m(y.depth,1)));w&&w!=y&&L.push(new ki([w.url,2],0));V.url&&V!=y&&L.push(new ki([V.url,0],m(V.depth,O)));h=g.rb(L,function(C,E){return L.slice(0,L.length-E)}); !V.url||(y||w)&&V!=y||(w=KAm(V.url))&&h.push([new ki([w,1],m(V.depth,O))]);h.push([]);return g.rb(h,function(C){return cnU(O,C)})}; cnU=function(m,V){g.cu(V,function(w){return w.depth>=0}); var O=Dl(V,function(w,y){return Math.max(w,y.depth)},-1),h=Pp1(O+2); h[0]=m;g.An(V,function(w){return h[w.depth+1]=w.Z}); return h}; NZI=function(){var m=m===void 0?D5G():m;return m.map(function(V){return Yi(V)})}; NN=function(m){m.UHr=!0;return m}; Sm5=function(){var m=b9U("IFRAME"),V={};g.An(nS7(),function(O){m.sandbox&&m.sandbox.supports&&m.sandbox.supports(O)&&(V[O]=!0)}); return V}; b9U=function(m,V){V=V===void 0?document:V;return V.createElement(String(m).toLowerCase())}; IE5=function(m){var V=!1;V=V===void 0?!1:V;ax.google_image_requests||(ax.google_image_requests=[]);var O=b9U("IMG",ax.document);V&&(O.attributionSrc="");O.src=m;ax.google_image_requests.push(O)}; bw=function(m){var V="gy";if(m.gy&&m.hasOwnProperty(V))return m.gy;var O=new m;m.gy=O;m.hasOwnProperty(V);return O}; nF=function(){this.L=new U5X;this.Z=Zm()?new Fm:new z3}; eo1=function(){SL();var m=ax.document;return!!(m&&m.body&&m.body.getBoundingClientRect&&typeof ax.setInterval==="function"&&typeof ax.clearInterval==="function"&&typeof ax.setTimeout==="function"&&typeof ax.clearTimeout==="function")}; upU=function(){SL();return NZI()}; zoG=function(){}; SL=function(){var m=bw(zoG);if(!m.Z){if(!ax)throw Error("Context has not been set and window is undefined.");m.Z=bw(nF)}return m.Z}; Ir=function(){throw Error("Invalid UTF8");}; Z90=function(m,V){V=String.fromCharCode.apply(null,V);return m==null?V:m+V}; i9p=function(m){var V=!1;V=V===void 0?!1:V;if(sg3){if(V&&(FA3?!m.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(m)))throw Error("Found an unpaired surrogate");m=(aE3||(aE3=new TextEncoder)).encode(m)}else{for(var O=0,h=new Uint8Array(3*m.length),w=0;w>6|192;else{if(y>=55296&&y<=57343){if(y<=56319&&w=56320&&L<=57343){y=(y-55296)*1024+ L-56320+65536;h[O++]=y>>18|240;h[O++]=y>>12&63|128;h[O++]=y>>6&63|128;h[O++]=y&63|128;continue}else w--}if(V)throw Error("Found an unpaired surrogate");y=65533}h[O++]=y>>12|224;h[O++]=y>>6&63|128}h[O++]=y&63|128}}m=O===h.length?h:h.subarray(0,O)}return m}; eL=function(m){g.WH.setTimeout(function(){throw m;},0)}; Gxo=function(m){return Array.prototype.map.call(m,function(V){V=V.toString(16);return V.length>1?V:"0"+V}).join("")}; p83=function(m){for(var V=[],O=0;O>6|192:((w&64512)==55296&&h+1>18|240,V[O++]=w>>12&63|128):V[O++]=w>>12|224,V[O++]=w>>6&63|128),V[O++]=w&63|128)}return V}; g.zI=function(m,V){V===void 0&&(V=0);BZa();V=lEl[V];for(var O=Array(Math.floor(m.length/3)),h=V[64]||"",w=0,y=0;w>2];L=V[(L&3)<<4|C>>4];C=V[(C&15)<<2|E>>6];E=V[E&63];O[y++]=""+q+L+C+E}q=0;E=h;switch(m.length-w){case 2:q=m[w+1],E=V[(q&15)<<2]||h;case 1:m=m[w],O[y]=""+V[m>>2]+V[(m&3)<<4|q>>4]+E+h}return O.join("")}; g.Zl=function(m,V,O){if(Qgm&&!V)m=g.WH.btoa(m);else{for(var h=[],w=0,y=0;y255){var C=Error("go/unicode-to-byte-error");if(O)throw C;h[w++]=L&255;L>>=8}h[w++]=L}m=g.zI(h,V)}return m}; PX3=function(m){var V=[];vSo(m,function(O){V.push(O)}); return V}; sS=function(m){var V=m.length,O=V*3/4;O%3?O=Math.floor(O):g.P8("=.",m[V-1])&&(O=g.P8("=.",m[V-2])?O-2:O-1);var h=new Uint8Array(O),w=0;vSo(m,function(y){h[w++]=y}); return w!==O?h.subarray(0,w):h}; vSo=function(m,V){function O(E){for(;h>4);L!=64&&(V(y<<4&240|L>>2),C!=64&&V(L<<6&192|C))}}; BZa=function(){if(!F4){F4={};for(var m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),V=["+/=","+/","-_=","-_.","-_"],O=0;O<5;O++){var h=m.concat(V[O].split(""));lEl[O]=h;for(var w=0;w=V||(h[m]=O+1,m=Error(),$Ao(m,"incident"),eL(m))}}; mp=function(){return typeof BigInt==="function"}; Vp=function(m,V,O){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(O===void 0?0:O)&&Symbol.for&&m?Symbol.for(m):m!=null?Symbol(m):Symbol():V}; wV=function(m,V){OV||h9 in m||Cx5(m,Ep5);m[h9]|=V}; yp=function(m,V){OV||h9 in m||Cx5(m,Ep5);m[h9]=V}; Lk=function(m,V){return V===void 0?m.Z!==jt&&!!(2&(m.Sz[h9]|0)):!!(2&V)&&m.Z!==jt}; q0l=function(m,V){if(m!=null)if(typeof m==="string")m=m?new ar(m,iw):GI();else if(m.constructor!==ar)if(Lg3&&m!=null&&m instanceof Uint8Array)m=m.length?new ar(new Uint8Array(m),iw):GI();else{if(!V)throw Error();m=void 0}return m}; J9=function(m,V){if(typeof V!=="number"||V<0||V>=m.length)throw Error();}; Mv0=function(m,V,O){var h=V&128?0:-1,w=m.length,y;if(y=!!w)y=m[w-1],y=y!=null&&typeof y==="object"&&y.constructor===Object;var L=w+(y?-1:0);for(V=V&128?1:0;VV.length)return!1;if(m.lengthw)return!1;if(h>>0;xX=V;gV=(m-V)/4294967296>>>0}; dV=function(m){if(m<0){A9(0-m);var V=g.D(UV(xX,gV));m=V.next().value;V=V.next().value;xX=m>>>0;gV=V>>>0}else A9(m)}; Kk=function(m,V){var O=V*4294967296+(m>>>0);return Number.isSafeInteger(O)?O:t9(m,V)}; WN=function(m,V){var O=V&2147483648;O&&(m=~m+1>>>0,V=~V>>>0,m==0&&(V=V+1>>>0));m=Kk(m,V);return typeof m==="number"?O?-m:m:O?"-"+m:m}; HN=function(m,V){return mp()?fk(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(V))<>>=0;m>>>=0;if(V<=2097151)var O=""+(4294967296*V+m);else mp()?O=""+(BigInt(V)<>>24|V<<8)&16777215,V=V>>16&65535,m=(m&16777215)+O*6777216+V*6710656,O+=V*8147497,V*=2,m>=1E7&&(O+=m/1E7>>>0,m%=1E7),O>=1E7&&(V+=O/1E7>>>0,O%=1E7),O=V+opG(O)+opG(m));return O}; opG=function(m){m=String(m);return"0000000".slice(m.length)+m}; XY=function(m,V){V&2147483648?mp()?m=""+(BigInt(V|0)<>>0)):(V=g.D(UV(m,V)),m=V.next().value,V=V.next().value,m="-"+t9(m,V)):m=t9(m,V);return m}; To=function(m){if(m.length<16)dV(Number(m));else if(mp())m=BigInt(m),xX=Number(m&BigInt(4294967295))>>>0,gV=Number(m>>BigInt(32)&BigInt(4294967295));else{var V=+(m[0]==="-");gV=xX=0;for(var O=m.length,h=0+V,w=(O-V)%6+V;w<=O;h=w,w+=6)h=Number(m.slice(h,w)),gV*=1E6,xX=xX*1E6+h,xX>=4294967296&&(gV+=Math.trunc(xX/4294967296),gV>>>=0,xX>>>=0);V&&(V=g.D(UV(xX,gV)),m=V.next().value,V=V.next().value,xX=m,gV=V)}}; UV=function(m,V){V=~V;m?m=~m+1:V+=1;return[m,V]}; $X=function(m){return Array.prototype.slice.call(m)}; YX=function(m){if(m!=null&&typeof m!=="number")throw Error("Value of float/double field must be a number, found "+typeof m+": "+m);return m}; gp3=function(m){return m.displayName||m.name||"unknown type name"}; kX=function(m){if(m!=null&&typeof m!=="boolean")throw Error("Expected boolean but got "+kI(m)+": "+m);return m}; cN=function(m){switch(typeof m){case "bigint":return!0;case "number":return rV(m);case "string":return AVl.test(m);default:return!1}}; Ui3=function(m){if(typeof m!=="number")throw vu("int32");if(!rV(m))throw vu("int32");return m|0}; Dc=function(m){return m==null?m:Ui3(m)}; NY=function(m){if(m==null)return m;if(typeof m==="string"&&m)m=+m;else if(typeof m!=="number")return;return rV(m)?m|0:void 0}; b5=function(m){if(m==null)return m;if(typeof m==="string"&&m)m=+m;else if(typeof m!=="number")return;return rV(m)?m>>>0:void 0}; Kgp=function(m){var V=void 0;V!=null||(V=nk?1024:0);if(!cN(m))throw vu("int64");var O=typeof m;switch(V){case 512:switch(O){case "string":return St(m);case "bigint":return String(zo(64,m));default:return Zc(m)}case 1024:switch(O){case "string":return diG(m);case "bigint":return fk(zo(64,m));default:return tvI(m)}case 0:switch(O){case "string":return St(m);case "bigint":return fk(zo(64,m));default:return sV(m)}default:return Yp(V,"Unknown format requested type for int64")}}; FY=function(m){return m==null?m:Kgp(m)}; WgU=function(m){var V=m.length;if(m[0]==="-"?V<20||V===20&&m<="-9223372036854775808":V<19||V===19&&m<="9223372036854775807")return m;To(m);return XY(xX,gV)}; sV=function(m){cN(m);m=aQ(m);i5(m)||(dV(m),m=WN(xX,gV));return m}; Zc=function(m){cN(m);m=aQ(m);i5(m)?m=String(m):(dV(m),m=XY(xX,gV));return m}; St=function(m){cN(m);var V=aQ(Number(m));if(i5(V))return String(V);V=m.indexOf(".");V!==-1&&(m=m.substring(0,V));return WgU(m)}; diG=function(m){var V=aQ(Number(m));if(i5(V))return fk(V);V=m.indexOf(".");V!==-1&&(m=m.substring(0,V));return mp()?fk(zo(64,BigInt(m))):fk(WgU(m))}; tvI=function(m){return i5(m)?fk(sV(m)):fk(Zc(m))}; XMI=function(m){if(m==null)return m;if(typeof m==="bigint")return Go(m)?m=Number(m):(m=zo(64,m),m=Go(m)?Number(m):String(m)),m;if(cN(m))return typeof m==="number"?sV(m):St(m)}; pk=function(m){var V=typeof m;if(m==null)return m;if(V==="bigint")return fk(zo(64,m));if(cN(m))return V==="string"?diG(m):tvI(m)}; H27=function(m){if(m==null)return m;var V=typeof m;if(V==="bigint")return String(zo(64,m));if(cN(m)){if(V==="string")return St(m);if(V==="number")return sV(m)}}; $ip=function(m){if(m==null)return m;var V=typeof m;if(V==="bigint")return String(TX5(64,m));if(cN(m)){if(V==="string")return cN(m),V=aQ(Number(m)),i5(V)&&V>=0?m=String(V):(V=m.indexOf("."),V!==-1&&(m=m.substring(0,V)),m[0]==="-"?V=!1:(V=m.length,V=V<20?!0:V===20&&m<="18446744073709551615"),V||(To(m),m=t9(xX,gV))),m;if(V==="number")return cN(m),m=aQ(m),m>=0&&i5(m)||(dV(m),m=Kk(xX,gV)),m}}; Y0G=function(m){if(m==null||typeof m=="string"||m instanceof ar)return m}; kpm=function(m){if(typeof m!=="string")throw Error();return m}; BN=function(m){if(m!=null&&typeof m!=="string")throw Error();return m}; l5=function(m){return m==null||typeof m==="string"?m:void 0}; Qp=function(m,V){if(!(m instanceof V))throw Error("Expected instanceof "+gp3(V)+" but got "+(m&&gp3(m.constructor)));return m}; rV3=function(m,V,O){if(m!=null&&m[vN]===PN)return m;if(Array.isArray(m)){var h=m[h9]|0;O=h|O&32|O&2;O!==h&&yp(m,O);return new V(m)}}; mR=function(m){return m}; Ov=function(m){var V=ZM(VI);return V?m[V]:void 0}; hU=function(){}; wy=function(m,V){for(var O in m)!isNaN(O)&&V(m,+O,m[O])}; cV7=function(m){var V=new hU;wy(m,function(O,h,w){V[h]=$X(w)}); V.Am=m.Am;return V}; NXa=function(m,V){V<100||Pu(Dip,1)}; jq=function(m,V,O,h){var w=h!==void 0;h=!!h;var y=ZM(VI),L;!w&&OV&&y&&(L=m[y])&&wy(L,NXa);y=[];var C=m.length;L=4294967295;var E=!1,q=!!(V&64),M=q?V&128?0:-1:void 0;if(!(V&1)){var f=C&&m[C-1];f!=null&&typeof f==="object"&&f.constructor===Object?(C--,L=C):f=void 0;if(q&&!(V&128)&&!w){E=!0;var x;L=((x=yI)!=null?x:mR)(L-M,M,m,f,void 0)+M}}V=void 0;for(x=0;x=L){var A=x-M,K=void 0;((K=V)!=null?K:V={})[A]=R}else y[x]=R}if(f)for(var X in f)C=f[X],C!= null&&(C=O(C,h))!=null&&(x=+X,R=void 0,q&&!Number.isNaN(x)&&(R=x+M)0?void 0:m===0?e37||(e37=[0,void 0]):[-m,void 0];case "string":return[0,m];case "object":return m}}; C4=function(m,V){return z3o(m,V[0],V[1])}; Ev=function(m,V,O){return z3o(m,V,O,2048)}; z3o=function(m,V,O,h){h=h===void 0?0:h;if(m==null){var w=32;O?(m=[O],w|=128):m=[];V&&(w=w&-16760833|(V&1023)<<14)}else{if(!Array.isArray(m))throw Error("narr");w=m[h9]|0;if(Z23&&1&w)throw Error("rfarr");2048&w&&!(2&w)&&sj0();if(w&256)throw Error("farr");if(w&64)return(w|h)!==w&&yp(m,w|h),m;if(O&&(w|=128,O!==m[0]))throw Error("mid");a:{O=m;w|=64;var y=O.length;if(y){var L=y-1,C=O[L];if(C!=null&&typeof C==="object"&&C.constructor===Object){V=w&128?0:-1;L-=V;if(L>=1024)throw Error("pvtlmt");for(var E in C)y= +E,y1024)throw Error("spvt");w=w&-16760833|(E&1023)<<14}}}yp(m,w|64|h);return m}; sj0=function(){if(Z23)throw Error("carr");Pu(Fgl,5)}; ai5=function(m,V){if(typeof m!=="object")return m;if(Array.isArray(m)){var O=m[h9]|0;m.length===0&&O&1?m=void 0:O&2||(!V||4096&O||16&O?m=qc(m,O,!1,V&&!(O&16)):(wV(m,34),O&4&&Object.freeze(m)));return m}if(m!=null&&m[vN]===PN)return V=m.Sz,O=V[h9]|0,Lk(m,O)?m:Mc(m,V,O)?f4(m,V):qc(V,O);if(m instanceof ar)return m}; f4=function(m,V,O){m=new m.constructor(V);O&&(m.Z=jt);m.L=jt;return m}; qc=function(m,V,O,h){h!=null||(h=!!(34&V));m=jq(m,V,ai5,h);h=32;O&&(h|=2);V=V&16769217|h;yp(m,V);return m}; i2a=function(m){var V=m.Sz,O=V[h9]|0;return Lk(m,O)?Mc(m,V,O)?f4(m,V,!0):new m.constructor(qc(V,O,!1)):m}; xd=function(m){if(m.Z!==jt)return!1;var V=m.Sz;V=qc(V,V[h9]|0);wV(V,2048);m.Sz=V;m.Z=void 0;m.L=void 0;return!0}; Rs=function(m){if(!xd(m)&&Lk(m,m.Sz[h9]|0))throw Error();}; os=function(m,V){V===void 0&&(V=m[h9]|0);V&32&&!(V&4096)&&yp(m,V|4096)}; Mc=function(m,V,O){return O&2?!0:O&32&&!(O&4096)?(yp(V,O|2),m.Z=jt,!0):!1}; AU=function(m,V,O,h,w){Object.isExtensible(m);V=gy(m.Sz,V,O,w);if(V!==null||h&&m.L!==jt)return V}; gy=function(m,V,O,h){if(V===-1)return null;var w=V+(O?0:-1),y=m.length-1;if(!(y<1+(O?0:-1))){if(w>=y){var L=m[y];if(L!=null&&typeof L==="object"&&L.constructor===Object){O=L[V];var C=!0}else if(w===y)O=L;else return}else O=m[w];if(h&&O!=null){h=h(O);if(h==null)return h;if(!Object.is(h,O))return C?L[V]=h:m[w]=h,h}return O}}; dy=function(m,V,O,h){Rs(m);var w=m.Sz;Uv(w,w[h9]|0,V,O,h);return m}; Uv=function(m,V,O,h,w){var y=O+(w?0:-1),L=m.length-1;if(L>=1+(w?0:-1)&&y>=L){var C=m[L];if(C!=null&&typeof C==="object"&&C.constructor===Object)return C[O]=h,V}if(y<=L)return m[y]=h,V;if(h!==void 0){var E;L=((E=V)!=null?E:V=m[h9]|0)>>14&1023||536870912;O>=L?h!=null&&(y={},m[L+(w?0:-1)]=(y[O]=h,y)):m[y]=h}return V}; HS=function(m,V,O,h,w){var y=m.Sz,L=y[h9]|0;h=Lk(m,L)?1:h;w=!!w||h===3;h===2&&xd(m)&&(y=m.Sz,L=y[h9]|0);m=tU(y,V);var C=m===K4?7:m[h9]|0,E=WS(C,L);var q=4&E?!1:!0;if(q){4&E&&(m=$X(m),C=0,E=XV(E,L),L=Uv(y,L,V,m));for(var M=0,f=0;M32)for(h|=(C&127)>>4,w=3;w<32&&C&128;w+=7)C=y[L++],h|=(C&127)<>>0,h>>>0);throw Error();}; Az=function(m,V){m.Z=V;if(V>m.D)throw Error();}; dB=function(m){var V=m.L,O=m.Z,h=V[O++],w=h&127;if(h&128&&(h=V[O++],w|=(h&127)<<7,h&128&&(h=V[O++],w|=(h&127)<<14,h&128&&(h=V[O++],w|=(h&127)<<21,h&128&&(h=V[O++],w|=h<<28,h&128&&V[O++]&128&&V[O++]&128&&V[O++]&128&&V[O++]&128&&V[O++]&128)))))throw Error();Az(m,O);return w}; tz=function(m){var V=m.L,O=m.Z,h=V[O+0],w=V[O+1],y=V[O+2];V=V[O+3];Az(m,m.Z+4);return(h<<0|w<<8|y<<16|V<<24)>>>0}; Kx=function(m){var V=tz(m);m=tz(m);return Kk(V,m)}; Wi=function(m){var V=tz(m);m=tz(m);return fk(mp()?BigInt.asUintN(64,(BigInt(m>>>0)<>>0)):t9(V,m))}; Xf=function(m){var V=tz(m),O=tz(m);m=(O>>31)*2+1;var h=O>>>20&2047;V=4294967296*(O&1048575)+V;return h==2047?V?NaN:m*Infinity:h==0?m*4.9E-324*V:m*Math.pow(2,h-1075)*(V+4503599627370496)}; Hi=function(m){for(var V=0,O=m.Z,h=O+10,w=m.L;Om.D)throw Error();m.Z=V;return O}; wI1=function(m,V){if(V==0)return GI();var O=OKo(m,V);m.qF&&m.K?O=m.L.subarray(O,O+V):(m=m.L,V=O+V,O=O===V?new Uint8Array(0):hb$?m.slice(O,V):new Uint8Array(m.subarray(O,V)));return O.length==0?GI():new ar(O,iw)}; $w=function(m,V,O,h){if(Tj.length){var w=Tj.pop();w.init(m,V,O,h);m=w}else m=new gB(m,V,O,h);this.Z=m;this.T=this.Z.Z;this.L=this.D=-1;yk7(this,h)}; yk7=function(m,V){V=V===void 0?{}:V;m.FT=V.FT===void 0?!1:V.FT}; jx0=function(m,V,O,h){if(Yw.length){var w=Yw.pop();yk7(w,h);w.Z.init(m,V,O,h);return w}return new $w(m,V,O,h)}; LDX=function(m){var V=m.Z;if(V.Z==V.D)return!1;m.T=m.Z.Z;var O=dB(m.Z)>>>0;V=O>>>3;O&=7;if(!(O>=0&&O<=5))throw Error();if(V<1)throw Error();m.D=V;m.L=O;return!0}; kw=function(m){switch(m.L){case 0:m.L!=0?kw(m):Hi(m.Z);break;case 1:m=m.Z;Az(m,m.Z+8);break;case 2:if(m.L!=2)kw(m);else{var V=dB(m.Z)>>>0;m=m.Z;Az(m,m.Z+V)}break;case 5:m=m.Z;Az(m,m.Z+4);break;case 3:V=m.D;do{if(!LDX(m))throw Error();if(m.L==4){if(m.D!=V)throw Error();break}kw(m)}while(1);break;default:throw Error();}}; rB=function(m,V,O){var h=m.Z.D,w=dB(m.Z)>>>0;w=m.Z.Z+w;var y=w-h;y<=0&&(m.Z.D=w,O(V,m,void 0,void 0,void 0),y=w-m.Z.Z);if(y)throw Error();m.Z.Z=w;m.Z.D=h}; N0=function(m){var V=dB(m.Z)>>>0;m=m.Z;var O=OKo(m,V);m=m.L;if(JkC){var h=m,w;(w=ci)||(w=ci=new TextDecoder("utf-8",{fatal:!0}));V=O+V;h=O===0&&V===h.length?h:h.subarray(O,V);try{var y=w.decode(h)}catch(q){if(Dp===void 0){try{w.decode(new Uint8Array([128]))}catch(M){}try{w.decode(new Uint8Array([97])),Dp=!0}catch(M){Dp=!1}}!Dp&&(ci=void 0);throw q;}}else{y=O;V=y+V;O=[];for(var L=null,C,E;y=V?Ir():(E=m[y++],C<194||(E&192)!==128?(y--,Ir()):O.push((C&31)<<6|E&63)): C<240?y>=V-1?Ir():(E=m[y++],(E&192)!==128||C===224&&E<160||C===237&&E>=160||((w=m[y++])&192)!==128?(y--,Ir()):O.push((C&15)<<12|(E&63)<<6|w&63)):C<=244?y>=V-2?Ir():(E=m[y++],(E&192)!==128||(C<<28)+(E-144)>>30!==0||((w=m[y++])&192)!==128||((h=m[y++])&192)!==128?(y--,Ir()):(C=(C&7)<<18|(E&63)<<12|(w&63)<<6|h&63,C-=65536,O.push((C>>10&1023)+55296,(C&1023)+56320))):Ir(),O.length>=8192&&(L=Z90(L,O),O.length=0);y=Z90(L,O)}return y}; CNp=function(m){var V=dB(m.Z)>>>0;return wI1(m.Z,V)}; Ec5=function(m,V,O){var h=dB(m.Z)>>>0;for(h=m.Z.Z+h;m.Z.Z>>0;this.Z=V>>>0}; fmp=function(m){if(!m)return Mna||(Mna=new nx(0,0));if(!/^\d+$/.test(m))return null;To(m);return new nx(xX,gV)}; So=function(m,V){this.L=m>>>0;this.Z=V>>>0}; Rbp=function(m){if(!m)return xyC||(xyC=new So(0,0));if(!/^-?\d+$/.test(m))return null;To(m);return new So(xX,gV)}; Iy=function(){this.Z=[]}; eo=function(m,V,O){for(;O>0||V>127;)m.Z.push(V&127|128),V=(V>>>7|O<<25)>>>0,O>>>=7;m.Z.push(V)}; u9=function(m,V){for(;V>127;)m.Z.push(V&127|128),V>>>=7;m.Z.push(V)}; ocG=function(m,V){if(V>=0)u9(m,V);else{for(var O=0;O<9;O++)m.Z.push(V&127|128),V>>=7;m.Z.push(1)}}; zj=function(m,V){m.Z.push(V>>>0&255);m.Z.push(V>>>8&255);m.Z.push(V>>>16&255);m.Z.push(V>>>24&255)}; gco=function(){this.D=[];this.L=0;this.Z=new Iy}; Zp=function(m,V){V.length!==0&&(m.D.push(V),m.L+=V.length)}; Ak5=function(m,V){sA(m,V,2);V=m.Z.end();Zp(m,V);V.push(m.L);return V}; Uyl=function(m,V){var O=V.pop();for(O=m.L+m.Z.length()-O;O>127;)V.push(O&127|128),O>>>=7,m.L++;V.push(O);m.L++}; sA=function(m,V,O){u9(m.Z,V*8+O)}; dym=function(m,V,O){if(O!=null){switch(typeof O){case "string":fmp(O)}sA(m,V,1);switch(typeof O){case "number":m=m.Z;A9(O);zj(m,xX);zj(m,gV);break;case "bigint":O=BigInt.asUintN(64,O);O=new nx(Number(O&BigInt(4294967295)),Number(O>>BigInt(32)));m=m.Z;V=O.Z;zj(m,O.L);zj(m,V);break;default:O=fmp(O),m=m.Z,V=O.Z,zj(m,O.L),zj(m,V)}}}; Ff=function(m,V,O){sA(m,V,2);u9(m.Z,O.length);Zp(m,m.Z.end());Zp(m,O)}; ay=function(){function m(){throw Error();} Object.setPrototypeOf(m,m.prototype);return m}; i9=function(m,V,O){this.Sz=Ev(m,V,O)}; tn7=function(m,V){if(V==null||V=="")return new m;V=JSON.parse(V);if(!Array.isArray(V))throw Error("dnarr");wV(V,32);return new m(V)}; px=function(m,V,O){this.iF=m;this.gG=V;m=ZM(Gj);this.Z=!!m&&O===m||!1}; Bi=function(m,V){var O=O===void 0?Gj:O;return new px(m,V,O)}; WDC=function(m,V,O,h,w){V=KD1(V,h);V!=null&&(O=Ak5(m,O),w(V,m),Uyl(m,O))}; vi=function(m,V,O,h){var w=h[m];if(w)return w;w={};w.B_=h;w.bW=uC0(h[0]);var y=h[1],L=1;y&&y.constructor===Object&&(w.extensions=y,y=h[++L],typeof y==="function"&&(w.bd=!0,l9!=null||(l9=y),Qd!=null||(Qd=h[L+1]),y=h[L+=2]));for(var C={};y&&Array.isArray(y)&&y.length&&typeof y[0]==="number"&&y[0]>0;){for(var E=0;E>BigInt(32)));eo(m.Z,O.L,O.Z);break;default:O=Rbp(V),eo(m.Z,O.L,O.Z)}}}; f6=function(m,V,O){V=NY(V);V!=null&&V!=null&&(sA(m,O,0),ocG(m.Z,V))}; S2l=function(m,V,O){V=V==null||typeof V==="boolean"?V:typeof V==="number"?!!V:void 0;V!=null&&(sA(m,O,0),m.Z.Z.push(V?1:0))}; Imm=function(m,V,O){V=l5(V);V!=null&&Ff(m,O,i9p(V))}; eb7=function(m,V,O,h,w){V=KD1(V,h);V!=null&&(O=Ak5(m,O),w(V,m),Uyl(m,O))}; zb7=function(m,V,O){if(O!==b9)throw Error();this.typeName=m;this.Z=V;if(O!==b9)throw Error();umo.set(m,this)}; sx7=function(){var m=xT;this.Z=ZKX;this.isRepeated=0;this.L=Z2;this.defaultValue=void 0;this.D=m.messageId!=null?Ck:void 0}; FDl=function(m,V){return function(O,h){var w={Jp:!0};h&&Object.assign(w,h);O=jx0(O,void 0,void 0,w);try{var y=new m,L=y.Sz;O9(V)(L,O);var C=y}finally{O.free()}return C}}; am7=function(m){return function(){var V=new gco;DyI(this.Sz,V,vi(yu,wP,ju,m));Zp(V,V.Z.end());for(var O=new Uint8Array(V.L),h=V.D,w=h.length,y=0,L=0;L-1)return V.apply(null,g.b(O));try{return m.Z=m.D.Z.now(),V.apply(null,g.b(O))}finally{m.T+=m.D.Z.now()-m.Z,m.Z=-1,m.L+=1}}}; G3C=function(m,V){this.L=m;this.D=V;this.Z=new iKG(m)}; pIU=function(){this.Z={}}; vc0=function(){this.D=void 0;this.L=this.N=0;this.K=-1;this.vB=new sm;Fp(this.vB,"mv",B4G).Z=!0;Fp(this.vB,"omid",lX);Fp(this.vB,"epoh",lX).Z=!0;Fp(this.vB,"epph",lX).Z=!0;Fp(this.vB,"umt",lX).Z=!0;Fp(this.vB,"phel",lX).Z=!0;Fp(this.vB,"phell",lX).Z=!0;Fp(this.vB,"oseid",lmG).Z=!0;var m=this.vB;m.Z.sloi||(m.Z.sloi=new uX);m.Z.sloi.Z=!0;Fp(this.vB,"mm",AE);Fp(this.vB,"ovms",Qx5).Z=!0;Fp(this.vB,"xdi",lX).Z=!0;Fp(this.vB,"amp",lX).Z=!0;Fp(this.vB,"prf",lX).Z=!0;Fp(this.vB,"gtx",lX).Z=!0;Fp(this.vB, "mvp_lv",lX).Z=!0;Fp(this.vB,"ssmol",lX).Z=!0;Fp(this.vB,"fmd",lX).Z=!0;Fp(this.vB,"gen204simple",lX);this.Z=new G3C(SL(),this.vB);this.T=!1;this.flags=new pIU}; U9=function(){return bw(vc0)}; PNG=function(m,V,O,h){if(Math.random()<(h||m.Z))try{if(O instanceof TI)var w=O;else w=new TI,Hu(O,function(L,C){var E=w,q=E.T++;L=$i(C,L);E.Z.push(q);E.L[q]=L}); var y=w.yF(m.L,"pagead2.googlesyndication.com","/pagead/gen_204?id="+V+"&");y&&(SL(),IE5(y))}catch(L){}}; mN7=function(m,V,O){O=O===void 0?{}:O;this.error=m;this.meta=O;this.context=V.context;this.msg=V.message||"";this.id=V.id||"jserror"}; VL5=function(){var m=m===void 0?g.WH:m;return(m=m.performance)&&m.now&&m.timing?Math.floor(m.now()+m.timing.navigationStart):g.uz()}; OFC=function(){var m=m===void 0?g.WH:m;return(m=m.performance)&&m.now?m.now():null}; heC=function(m,V,O){this.label=m;this.type=V;this.value=O;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; tE=function(){var m=window;this.events=[];this.L=m||g.WH;var V=null;m&&(m.google_js_reporting_queue=m.google_js_reporting_queue||[],this.events=m.google_js_reporting_queue,V=m.google_measure_js_timing);this.Z=dP()||(V!=null?V:Math.random()<1)}; wup=function(m){m&&K6&&dP()&&(K6.clearMarks("goog_"+m.label+"_"+m.uniqueId+"_start"),K6.clearMarks("goog_"+m.label+"_"+m.uniqueId+"_end"))}; WG=function(m,V,O,h,w,y,L){var C="";m&&(C+=m+":");O&&(C+="//",V&&(C+=V+"@"),C+=O,h&&(C+=":"+h));w&&(C+=w);y&&(C+="?"+y);L&&(C+="#"+L);return C}; g.XA=function(m){return m.match(yQ1)}; jrU=function(m){return m?decodeURI(m):m}; g.HG=function(m){return jrU(g.XA(m)[3]||null)}; TU=function(m){return jrU(g.XA(m)[5]||null)}; g.L4X=function(m){m=g.XA(m);return WG(m[1],m[2],m[3],m[4])}; $T=function(m){m=g.XA(m);return WG(null,null,null,null,m[5],m[6],m[7])}; JQ1=function(m){var V=m.indexOf("#");return V<0?m:m.slice(0,V)}; kT=function(m,V){if(m){m=m.split("&");for(var O=0;O=0){var y=m[O].substring(0,h);w=m[O].substring(h+1)}else y=m[O];V(y,w?aj(w):"")}}}; rP=function(m,V){if(!V)return m;var O=m.indexOf("#");O<0&&(O=m.length);var h=m.indexOf("?");if(h<0||h>O){h=O;var w=""}else w=m.substring(h+1,O);m=[m.slice(0,h),w,m.slice(O)];O=m[1];m[1]=V?O?O+"&"+V:V:O;return m[0]+(m[1]?"?"+m[1]:"")+m[2]}; cG=function(m,V,O){if(Array.isArray(V))for(var h=0;h=0&&VO)w=O;h+=V.length+1;return aj(m.slice(h,w!==-1?w:0))}; eu=function(m,V){for(var O=m.search(Su),h=0,w,y=[];(w=n6(m,h,V,O))>=0;)y.push(m.substring(h,w)),h=Math.min(m.indexOf("&",w)+1||O,O);y.push(m.slice(h));return y.join("").replace(qS3,"$1")}; MLl=function(m,V,O){return bR(eu(m,V),V,O)}; var h5$=function(m){return oC[J[4]](this,1,m)}; fl$=function(){var m=uR;this.Z=zU;this.jQ="jserror";this.OR=!0;this.GX=null;this.L=this.ZA;this.b2=m===void 0?null:m}; xNo=function(m,V,O){var h=ZV;return gP(U9().Z.Z,function(){try{if(h.b2&&h.b2.Z){var w=h.b2.start(m.toString(),3);var y=V();h.b2.end(w)}else y=V()}catch(C){var L=h.OR;try{wup(w),L=h.L(m,new s9(FA(C)),void 0,O)}catch(E){h.ZA(217,E)}if(!L)throw C;}return y})()}; aq=function(m,V,O,h){return gP(U9().Z.Z,function(){var w=g.AG.apply(0,arguments);return xNo(m,function(){return V.apply(O,w)},h)})}; FA=function(m){var V=m.toString();m.name&&V.indexOf(m.name)==-1&&(V+=": "+m.name);m.message&&V.indexOf(m.message)==-1&&(V+=": "+m.message);if(m.stack)a:{m=m.stack;var O=V;try{m.indexOf(O)==-1&&(m=O+"\n"+m);for(var h;m!=h;)h=m,m=m.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");V=m.replace(/\n */g,"\n");break a}catch(w){V=O;break a}V=void 0}return V}; s9=function(m){mN7.call(this,Error(m),{message:m})}; Rea=function(){ax&&typeof ax.google_measure_js_timing!="undefined"&&(ax.google_measure_js_timing||uR.disable())}; oip=function(m){ZV.GX=function(V){g.An(m,function(O){O(V)})}}; gio=function(m,V){return xNo(m,V)}; iR=function(m,V){return aq(m,V)}; GU=function(m,V,O,h){ZV.ZA(m,V,O,h)}; p6=function(){return Date.now()-AQI}; UNa=function(){var m=U9().D,V=BG>=0?p6()-BG:-1,O=lR?p6()-Qu:-1,h=vG>=0?p6()-vG:-1;if(m==947190542)return 100;if(m==79463069)return 200;m=[2E3,4E3];var w=[250,500,1E3];GU(637,Error(),.001);var y=V;O!=-1&&O1500&&h<4E3?500:L}; PG=function(m,V,O){var h=new QS(0,0,0,0);this.time=m;this.volume=null;this.D=V;this.Z=h;this.L=O}; mE=function(m,V,O,h,w,y,L,C){this.T=m;this.J=V;this.D=O;this.N=h;this.Z=w;this.K=y;this.L=L;this.V=C}; tLp=function(m){var V=m!==m.top,O=m.top===d53(m),h=-1,w=0;if(V&&O&&m.top.mraid){h=3;var y=m.top.mraid}else h=(y=m.mraid)?V?O?2:1:0:-1;y&&(y.IS_GMA_SDK||(w=2),O5o(dNa,function(L){return typeof y[L]==="function"})||(w=1)); return{Jt:y,compatibility:w,h5t:h}}; K4I=function(){var m=window.document;return m&&typeof m.elementFromPoint==="function"}; W4G=function(m,V,O){if(m&&V!==null&&V!=V.top){if(!V.top)return new g.LK(-12245933,-12245933);V=V.top}try{return(O===void 0?0:O)?(new g.LK(V.innerWidth,V.innerHeight)).round():hol(V||window).round()}catch(h){return new g.LK(-12245933,-12245933)}}; V0=function(m,V,O){try{if(m){if(!V.top)return new QS(-12245933,-12245933,-12245933,-12245933);V=V.top}var h=W4G(m,V,O),w=h.height,y=h.width;if(y===-12245933)return new QS(y,y,y,y);var L=ox(V.document);var C=yn7(L.Z);var E=C.x,q=C.y;return new QS(q,E+y,q+w,E)}catch(M){return new QS(-12245933,-12245933,-12245933,-12245933)}}; Ok=function(m,V){V=Math.pow(10,V);return Math.floor(m*V)/V}; Xu$=function(m){return new QS(m.top,m.right,m.bottom,m.left)}; HFX=function(m){var V=m.top||0,O=m.left||0;return new QS(V,O+(m.width||0),V+(m.height||0),O)}; hg=function(m){return m!=null&&m>=0&&m<=1}; Tbm=function(){var m=g.wX();return m?wj("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;Version/8.0 Safari/601.1 WPE;WebOS".split(";"),function(V){return mg(m,V)})||mg(m,"OMI/")&&!mg(m,"XiaoMi/")?!0:mg(m,"Presto")&&mg(m,"Linux")&&!mg(m,"X11")&&!mg(m,"Android")&&!mg(m,"Mobi"):!1}; $N$=function(){this.D=!tQ(ax.top);this.isMobileDevice=KF()||t5m();var m=X4();this.domain=m.length>0&&m[m.length-1]!=null&&m[m.length-1].url!=null?g.HG(m[m.length-1].url)||"":"";this.Z=new QS(0,0,0,0);this.T=new g.LK(0,0);this.K=new g.LK(0,0);this.J=new QS(0,0,0,0);this.frameOffset=new g.yS(0,0);this.N=0;this.V=!1;this.L=!(!ax||!tLp(ax).Jt);this.update(ax)}; YSl=function(m,V){V&&V.screen&&(m.T=new g.LK(V.screen.width,V.screen.height))}; kIo=function(m,V){a:{var O=m.Z?new g.LK(vI(m.Z),m.Z.getHeight()):new g.LK(0,0);V=V===void 0?ax:V;V!==null&&V!=V.top&&(V=V.top);var h=0,w=0;try{var y=V.document,L=y.body,C=y.documentElement;if(y.compatMode=="CSS1Compat"&&C.scrollHeight)h=C.scrollHeight!=O.height?C.scrollHeight:C.offsetHeight,w=C.scrollWidth!=O.width?C.scrollWidth:C.offsetWidth;else{var E=C.scrollHeight,q=C.scrollWidth,M=C.offsetHeight,f=C.offsetWidth;C.clientHeight!=M&&(E=L.scrollHeight,q=L.scrollWidth,M=L.offsetHeight,f=L.offsetWidth); E>O.height?E>M?(h=E,w=q):(h=M,w=f):E0||m.V)return!0;m=SL().L.isVisible();var V=db(jV)===0;return m||V}; y0=function(){return bw($N$)}; Jg=function(m){this.D=m;this.L=0;this.Z=null}; CT=function(m,V,O){this.D=m;this.fA=O===void 0?"na":O;this.K=[];this.isInitialized=!1;this.T=new PG(-1,!0,this);this.Z=this;this.V=V;this.Zu=this.Qt=!1;this.iH="uk";this.v6=!1;this.N=!0}; Ek=function(m,V){g.vH(m.K,V)||(m.K.push(V),V.QL(m.Z),V.RW(m.T),V.Eo()&&(m.Qt=!0))}; rQG=function(m){m=m.Z;m.sE();m.OE();var V=y0();V.J=V0(!1,m.D,V.isMobileDevice);kIo(y0(),m.D);m.T.Z=m.wf()}; cQa=function(m){m.Qt=m.K.length?wj(m.K,function(V){return V.Eo()}):!1}; DN1=function(m){var V=g.j5(m.K);g.An(V,function(O){O.RW(m.T)})}; qf=function(m){var V=g.j5(m.K);g.An(V,function(O){O.QL(m.Z)}); m.Z!=m||DN1(m)}; Mf=function(m,V,O,h){this.element=m;this.Z=new QS(0,0,0,0);this.D=null;this.N=new QS(0,0,0,0);this.L=V;this.vB=O;this.v6=h;this.mS=!1;this.timestamp=-1;this.Qt=new mE(V.T,this.element,this.Z,new QS(0,0,0,0),0,0,p6(),0);this.K=void 0}; Nbl=function(m,V){return m.K?new QS(Math.max(V.top+m.K.top,V.top),Math.min(V.left+m.K.right,V.right),Math.min(V.top+m.K.bottom,V.bottom),Math.max(V.left+m.K.left,V.left)):V.clone()}; xl=function(m){this.K=!1;this.Z=m;this.T=function(){}}; bF$=function(m,V,O){this.D=O===void 0?0:O;this.L=m;this.Z=V==null?"":V}; nio=function(m){switch(Math.trunc(m.D)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; SSa=function(m,V){return m.DV.D?!1:m.LV.L?!1:typeof m.Ztypeof V.Z?!1:m.Z0?h[O]-h[O-1]:h[O]})}; $l=function(){this.L=new tg;this.fA=this.H6=0;this.Je=new dj;this.Ae=this.J=-1;this.pA=1E3;this.nA=new tg([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.iH=this.mS=-1}; Yl=function(m,V){return GIC(m.L,V===void 0?!0:V)}; kl=function(m,V,O,h){var w=w===void 0?!1:w;O=aq(h,O);US(m,V,O,{capture:w})}; cV=function(m,V){V=rj(V);return V===0?0:rj(m)/V}; rj=function(m){return Math.max(m.bottom-m.top,0)*Math.max(m.right-m.left,0)}; ll7=function(m,V){if(!m||!V)return!1;for(var O=0;m!==null&&O++<100;){if(m===V)return!0;try{if(m=m.parentElement||m){var h=Rx(m),w=h&&HI(h),y=w&&w.frameElement;y&&(m=y)}}catch(L){break}}return!1}; Qra=function(m,V,O){if(!m||!V)return!1;V=m4(m.clone(),-V.left,-V.top);m=(V.left+V.right)/2;V=(V.top+V.bottom)/2;tQ(window.top)&&window.top&&window.top.document&&(window=window.top);if(!K4I())return!1;m=window.document.elementFromPoint(m,V);if(!m)return!1;V=(V=(V=Rx(O))&&V.defaultView&&V.defaultView.frameElement)&&ll7(V,m);var h=m===O;m=!h&&m&&en(m,function(w){return w===O}); return!(V||h||m)}; vi7=function(m,V,O,h){return y0().D?!1:vI(m)<=0||m.getHeight()<=0?!0:O&&h?gio(208,function(){return Qra(m,V,O)}):!1}; DL=function(m,V,O){g.Z.call(this);this.position=Pwp.clone();this.iE=this.Dl();this.Wb=-2;this.timeCreated=Date.now();this.nx=-1;this.Rx=V;this.l_=null;this.WS=!1;this.J1=null;this.opacity=-1;this.requestSource=O;this.oZr=!1;this.uY=function(){}; this.GH=function(){}; this.Gd=new Jn0;this.Gd.fV=m;this.Gd.Z=m;this.LV=!1;this.gb={Tg:null,zg:null};this.mR=!0;this.rO=null;this.vr=this.D8N=!1;U9().N++;this.In=this.I5();this.wm=-1;this.Pe=null;this.hasCompleted=this.d8e=!1;this.vB=new sm;EI3(this.vB);mY3(this);this.requestSource==1?ag(this.vB,"od",1):ag(this.vB,"od",0)}; mY3=function(m){m=m.Gd.fV;var V;if(V=m&&m.getAttribute)V=/-[a-z]/.test("googleAvInapp")?!1:Vtm&&m.dataset?"googleAvInapp"in m.dataset:m.hasAttribute?m.hasAttribute("data-"+IMU()):!!m.getAttribute("data-"+IMU());V&&(y0().L=!0)}; Nf=function(m,V){V!=m.vr&&(m.vr=V,m=y0(),V?m.N++:m.N>0&&m.N--)}; OkG=function(m,V){if(m.Pe){if(V.getName()===m.Pe.getName())return;m.Pe.dispose();m.Pe=null}V=V.create(m.Gd.Z,m.vB,m.Eo());if(V=V!=null&&V.observe()?V:null)m.Pe=V}; hw3=function(m,V,O){if(!m.l_||m.Rx==-1||V.L===-1||m.l_.L===-1)return 0;m=V.L-m.l_.L;return m>O?0:m}; wNU=function(m,V,O){if(m.Pe){m.Pe.KQ();var h=m.Pe.Qt,w=h.T,y=w.Z;if(h.N!=null){var L=h.D;m.J1=new g.yS(L.left-y.left,L.top-y.top)}y=m.Kv()?Math.max(h.Z,h.K):h.Z;L={};w.volume!==null&&(L.volume=w.volume);w=m.kY(h);m.l_=h;m.oY(y,V,O,!1,L,w,h.V)}}; y9o=function(m){if(m.WS&&m.rO){var V=iX(m.vB,"od")==1,O=y0().Z,h=m.rO,w=m.Pe?m.Pe.getName():"ns",y=m.J1,L=new g.LK(vI(O),O.getHeight());O=m.Kv();m={DLe:w,J1:y,ZqS:L,Kv:O,MC:m.In.MC,hdu:V};if(V=h.L){V.KQ();w=V.Qt;y=w.T.Z;var C=L=null;w.N!=null&&y&&(L=w.D,L=new g.yS(L.left-y.left,L.top-y.top),C=new g.LK(y.right-y.left,y.bottom-y.top));w=O?Math.max(w.Z,w.K):w.Z;O={DLe:V.getName(),J1:L,ZqS:C,Kv:O,hdu:!1,MC:w}}else O=null;O&&F4l(h,m,O)}}; jQl=function(m,V,O){V&&(m.uY=V);O&&(m.GH=O)}; g.bA=function(){}; g.nT=function(m){return{value:m,done:!1}}; Lp$=function(){this.T=this.Z=this.D=this.L=this.K=0}; J9l=function(m){var V={};var O=g.uz()-m.K;V=(V.ptlt=O,V);(O=m.L)&&(V.pnk=O);(O=m.D)&&(V.pnc=O);(O=m.T)&&(V.pnmm=O);(m=m.Z)&&(V.pns=m);return V}; C57=function(){dZ.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; SV=function(m){return hg(m.volume)&&m.volume>0}; Id=function(m,V,O,h){O=O===void 0?!0:O;h=h===void 0?function(){return!0}:h; return function(w){var y=w[m];if(Array.isArray(y)&&h(w))return EXa(y,V,O)}}; eV=function(m,V){return function(O){return V(O)?O[m]:void 0}}; qVX=function(m){return function(V){for(var O=0;O0?y[w-1]+1:0,h+1).reduce(function(L,C){return L+C},0)})}; Mt1=function(){this.L=this.Z=""}; fco=function(){}; z6=function(m,V){var O={};if(m!==void 0)if(V!=null)for(var h in V){var w=V[h];h in Object.prototype||w!=null&&(O[h]=typeof w==="function"?w(m):m[w])}else g.S5(O,m);return gj(od(new Rd,O))}; xYl=function(){var m={};this.L=(m.vs=[1,0],m.vw=[0,1],m.am=[2,2],m.a=[4,4],m.f=[8,8],m.bm=[16,16],m.b=[32,32],m.avw=[0,64],m.avs=[64,0],m.pv=[256,256],m.gdr=[0,512],m.p=[0,1024],m.r=[0,2048],m.m=[0,4096],m.um=[0,8192],m.ef=[0,16384],m.s=[0,32768],m.pmx=[0,16777216],m.mut=[33554432,33554432],m.umutb=[67108864,67108864],m.tvoff=[134217728,134217728],m);this.Z={};for(var V in this.L)this.L[V][1]>0&&(this.Z[V]=0);this.D=0}; ZL=function(m,V){var O=m.L[V],h=O[1];m.D+=O[0];h>0&&m.Z[V]==0&&(m.Z[V]=1)}; Rwm=function(m){var V=g.Tx(m.L),O=0,h;for(h in m.Z)g.vH(V,h)&&m.Z[h]==1&&(O+=m.L[h][1],m.Z[h]=2);return O}; oXa=function(m){var V=0,O;for(O in m.Z){var h=m.Z[O];if(h==1||h==2)V+=m.L[O][1]}return V}; sk=function(){this.Z=this.L=0}; Fv=function(){$l.call(this);this.D=new dj;this.Mf=this.Qt=this.v6=0;this.V=-1;this.W6=new dj;this.K=new dj;this.Z=new tg;this.N=this.T=-1;this.Zu=new dj;this.pA=2E3;this.EH=new sk;this.CA=new sk;this.Xr=new sk}; ad=function(m,V,O){var h=m.Mf;lR||O||m.V==-1||(h+=V-m.V);return h}; gXG=function(){this.D=!1}; iA=function(m,V){this.D=!1;this.T=m;this.Qt=V;this.K=0}; G6=function(m,V){iA.call(this,m,V);this.J=[]}; A90=function(){}; pT=function(){}; BV=function(m,V,O,h){Mf.call(this,m,V,O,h)}; lA=function(m,V,O){Mf.call(this,null,m,V,O);this.V=m.isActive();this.J=0}; Q0=function(m){return[m.top,m.left,m.bottom,m.right]}; vV=function(m,V,O,h,w,y){y=y===void 0?new pT:y;DL.call(this,V,O,h);this.HK=w;this.yK=0;this.H1={};this.XG=new xYl;this.JX={};this.Tf="";this.Xr=null;this.LP=!1;this.Z=[];this.ST=y.L();this.N=y.D();this.T=null;this.D=-1;this.fA=this.Qt=void 0;this.Ae=this.Zu=0;this.iH=-1;this.pA=this.CA=!1;this.v6=this.V=this.L=this.LK=this.Aj=0;new tg;this.EH=this.Mf=0;this.Je=-1;this.oS=0;this.J=g.G3;this.mS=[this.Dl()];this.kD=2;this.HN={};this.HN.pause="p";this.HN.resume="r";this.HN.skip="s";this.HN.mute="m";this.HN.unmute= "um";this.HN.exitfullscreen="ef";this.K=null;this.nA=this.W6=!1;this.UU=Math.floor(Date.now()/1E3-1704067200);this.H6=0}; PV=function(m){m.hasCompleted=!0;m.oS!=0&&(m.oS=3)}; mM=function(m){return m===void 0?m:Number(m)?Ok(m,3):0}; V6=function(m,V){return m.mS[V!=null&&VMath.max(1E4,m.D/3)?0:V);var O=m.J(m)||{};O=O.currentTime!==void 0?O.currentTime:m.Zu;var h=O-m.Zu,w=0;h>=0?(m.Ae+=V,m.EH+=Math.max(V-h,0),w=Math.min(h,m.Ae)):m.Mf+=Math.abs(h);h!=0&&(m.Ae=0);m.Je==-1&&h>0&&(m.Je=vG>=0?p6()-vG:-1);m.Zu=O;return w}; tt3=function(m,V){wj(m.N,function(O){return O.T==V.T})||m.N.push(V)}; KpI=function(m){var V=Xv(m.aK().Z,1);return ON(m,V)}; ON=function(m,V,O){return V>=15E3?!0:m.CA?(O===void 0?0:O)?!0:m.D>0?V>=m.D/2:m.iH>0?V>=m.iH:!1:!1}; Wpp=function(m){var V=Ok(m.In.MC,2),O=m.XG.D,h=m.In,w=V6(m),y=mM(w.T),L=mM(w.N),C=mM(h.volume),E=Ok(w.J,2),q=Ok(w.Ae,2),M=Ok(h.MC,2),f=Ok(w.mS,2),x=Ok(w.iH,2);h=Ok(h.xc,2);var R=m.Er().clone().round();m=m.Pe&&m.Pe.D?(m.Pe?m.Pe.D:null).clone().round():null;w=Yl(w,!1);return{QKH:V,Zv:O,KL:y,LL:L,GS:C,HQ:E,IU:q,MC:M,yw:f,zk:x,xc:h,position:R,JK:m,EG:w}}; HkC=function(m,V){XNI(m.Z,V,function(){return{QKH:0,Zv:void 0,KL:-1,LL:-1,GS:-1,HQ:-1,IU:-1,MC:-1,yw:-1,zk:-1,xc:-1,position:void 0,JK:void 0,EG:[]}}); m.Z[V]=Wpp(m)}; XNI=function(m,V,O){for(var h=m.length;h0?1:0;f.atos= KT(q.Z);f.ssb=KT(q.nA,!1);f.amtos=GIC(q.Z,!1);f.uac=m.Aj;f.vpt=q.D.Z;M=="nio"&&(f.nio=1,f.avms="nio");f.gmm="4";f.gdr=ON(m,q.D.Z,!0)?1:0;f.efpf=m.kD;if(M=="gsv"||M=="nis")M=m.Pe,M.J>0&&(f.nnut=M.J);f.tcm=UYa(m);f.nmt=m.Mf;f.bt=m.EH;f.pst=m.Je;f.vpaid=m.Qt;f.dur=m.D;f.vmtime=m.Zu;f.is=m.XG.D;m.Z.length>=1&&(f.i0=m.Z[0].Zv,f.a0=[m.Z[0].GS],f.c0=[m.Z[0].MC],f.ss0=[m.Z[0].xc],M=m.Z[0].position,y=m.Z[0].JK,f.p0=M?Q0(M):void 0,M&&y&&!PI(y,M)&&(f.cp0=Q0(y)));m.Z.length>=2&&(f.i1=m.Z[1].Zv,f.a1=y6(m.Z[1].KL, m.Z[1].GS,m.Z[1].LL),f.c1=y6(m.Z[1].HQ,m.Z[1].MC,m.Z[1].IU),f.ss1=y6(m.Z[1].yw,m.Z[1].xc,m.Z[1].zk),M=m.Z[1].position,y=m.Z[1].JK,f.p1=M?Q0(M):void 0,M&&y&&!PI(y,M)&&(f.cp1=Q0(y)),f.mtos1=m.Z[1].EG);m.Z.length>=3&&(f.i2=m.Z[2].Zv,f.a2=y6(m.Z[2].KL,m.Z[2].GS,m.Z[2].LL),f.c2=y6(m.Z[2].HQ,m.Z[2].MC,m.Z[2].IU),f.ss2=y6(m.Z[2].yw,m.Z[2].xc,m.Z[2].zk),M=m.Z[2].position,y=m.Z[2].JK,f.p2=M?Q0(M):void 0,M&&y&&!PI(y,M)&&(f.cp2=Q0(y)),f.mtos2=m.Z[2].EG);m.Z.length>=4&&(f.i3=m.Z[3].Zv,f.a3=y6(m.Z[3].KL,m.Z[3].GS, m.Z[3].LL),f.c3=y6(m.Z[3].HQ,m.Z[3].MC,m.Z[3].IU),f.ss3=y6(m.Z[3].yw,m.Z[3].xc,m.Z[3].zk),M=m.Z[3].position,y=m.Z[3].JK,f.p3=M?Q0(M):void 0,M&&y&&!PI(y,M)&&(f.cp3=Q0(y)),f.mtos3=m.Z[3].EG);f.cs=oXa(m.XG);V&&(f.ic=Rwm(m.XG),f.dvpt=q.D.L,f.dvs=T6(q.L,.5),f.dfvs=T6(q.L,1),f.davs=T6(q.Z,.5),f.dafvs=T6(q.Z,1),O&&(q.D.L=0,pu$(q.L),pu$(q.Z)),m.xd()&&(f.dtos=q.v6,f.dav=q.Qt,f.dtoss=m.yK+1,O&&(q.v6=0,q.Qt=0,m.yK++)),f.dat=q.K.L,f.dft=q.Zu.L,O&&(q.K.L=0,q.Zu.L=0));f.ps=[C.K.width,C.K.height];f.bs=[vI(C.Z), C.Z.getHeight()];f.scs=[C.T.width,C.T.height];f.dom=C.domain;m.LK&&(f.vds=m.LK);if(m.N.length>0||m.ST)V=g.j5(m.N),m.ST&&V.push(m.ST),f.pings=g.rb(V,function(x){return x.toString()}); V=g.rb(g.uA(m.N,function(x){return x.N()}),function(x){return x.getId()}); B7l(V);f.ces=V;m.L&&(f.vmer=m.L);m.V&&(f.vmmk=m.V);m.v6&&(f.vmiec=m.v6);f.avms=m.Pe?m.Pe.getName():"ns";m.Pe&&g.S5(f,m.Pe.b0());h?(f.c=Ok(m.In.MC,2),f.ss=Ok(m.In.xc,2)):f.tth=p6()-ko7;f.mc=Ok(q.Ae,2);f.nc=Ok(q.J,2);f.mv=mM(q.N);f.nv=mM(q.T);f.lte=Ok(m.Wb,2);h=V6(m,w);Yl(q);f.qmtos=Yl(h);f.qnc=Ok(h.J,2);f.qmv=mM(h.N);f.qnv=mM(h.T);f.qas=h.T>0?1:0;f.qi=m.Tf;f.avms||(f.avms="geo");f.psm=q.EH.Z;f.psv=q.EH.getValue();f.psfv=q.CA.getValue();f.psa=q.Xr.getValue();E=JGp(E.vB);E.length&&(f.veid=E);m.K&&g.S5(f, J9l(m.K));f.avas=m.WZ();f.vs=m.BX();f.co=r90(m);f.tm=q.H6;f.tu=q.fA;return f}; TVa=function(m,V){if(g.vH(c95,V))return!0;var O=m.H1[V];return O!==void 0?(m.H1[V]=!0,!O):!1}; r90=function(m){var V=m.H6.toString(10).padStart(2,"0");V=""+m.UU+V;m.H6<99&&m.H6++;return V}; NV1=function(){this.Z={};var m=HI();jh(this,m,document);var V=DY7();try{if("1"==V){for(var O=m.parent;O!=m.top;O=O.parent)jh(this,O,O.document);jh(this,m.top,m.top.document)}}catch(h){}}; DY7=function(){var m=document.documentElement;try{if(!tQ(HI().top))return"2";var V=[],O=HI(m.ownerDocument);for(m=O;m!=O.top;m=m.parent)if(m.frameElement)V.push(m.frameElement);else break;return V&&V.length!=0?"1":"0"}catch(h){return"2"}}; jh=function(m,V,O){kl(O,"mousedown",function(){return bkI(m)},301); kl(V,"scroll",function(){return nXC(m)},302); kl(O,"touchmove",function(){return SV1(m)},303); kl(O,"mousemove",function(){return IcI(m)},304); kl(O,"keydown",function(){return ewo(m)},305)}; bkI=function(m){g.Mm(m.Z,function(V){V.D>1E5||++V.D})}; nXC=function(m){g.Mm(m.Z,function(V){V.Z>1E5||++V.Z})}; SV1=function(m){g.Mm(m.Z,function(V){V.Z>1E5||++V.Z})}; ewo=function(m){g.Mm(m.Z,function(V){V.L>1E5||++V.L})}; IcI=function(m){g.Mm(m.Z,function(V){V.T>1E5||++V.T})}; uYp=function(){this.Z=[];this.L=[]}; LU=function(m,V){return g.p5(m.Z,function(O){return O.Tf==V})}; zw5=function(m,V){return V?g.p5(m.Z,function(O){return O.Gd.fV==V}):null}; Zkl=function(m,V){return g.p5(m.L,function(O){return O.xQ()==2&&O.Tf==V})}; CU=function(){var m=Ja;return m.Z.length==0?m.L:m.L.length==0?m.Z:g.wZ(m.L,m.Z)}; sQ5=function(m,V){m=V.xQ()==1?m.Z:m.L;var O=GZ(m,function(h){return h==V}); return O!=-1?(m.splice(O,1),V.Pe&&V.Pe.unobserve(),V.dispose(),!0):!1}; Fpa=function(m){var V=Ja;if(sQ5(V,m)){switch(m.xQ()){case 0:var O=function(){return null}; case 2:O=function(){return Zkl(V,m.Tf)}; break;case 1:O=function(){return LU(V,m.Tf)}}for(var h=O();h;h=O())sQ5(V,h)}}; acC=function(m){var V=Ja;m=g.uA(m,function(O){return!zw5(V,O.Gd.fV)}); V.Z.push.apply(V.Z,g.b(m))}; ikX=function(m){var V=[];g.An(m,function(O){wj(Ja.Z,function(h){return h.Gd.fV===O.Gd.fV&&h.Tf===O.Tf})||(Ja.Z.push(O),V.push(O))})}; EN=function(){this.Z=this.L=null}; Go5=function(m,V){function O(h,w){V(h,w)} if(m.L==null)return!1;m.Z=g.p5(m.L,function(h){return h!=null&&h.rp()}); m.Z&&(m.Z.init(O)?rQG(m.Z.Z):V(m.Z.Z.rJ(),m.Z));return m.Z!=null}; qh=function(m){m=pNo(m);xl.call(this,m.length?m[m.length-1]:new CT(ax,0));this.D=m;this.L=null}; pNo=function(m){if(!m.length)return[];m=(0,g.uA)(m,function(O){return O!=null&&O.OM()}); for(var V=1;VO.time?V:O},m[0])}; RI=function(m){m=m===void 0?ax:m;xl.call(this,new CT(m,2))}; oI=function(){var m=vX$();CT.call(this,ax.top,m,"geo")}; vX$=function(){U9();var m=y0();return m.D||m.L?0:2}; P5p=function(){}; gv=function(){this.done=!1;this.Z={fl:0,K9:0,gju:0,Xb:0,dE:-1,G4:0,vu:0,Ky:0,mLN:0};this.K=null;this.N=!1;this.D=null;this.J=0;this.L=new Jg(this)}; UN=function(){var m=Aa;m.N||(m.N=!0,mc7(m,function(){return m.T.apply(m,g.b(g.AG.apply(0,arguments)))}),m.T())}; Vq5=function(){bw(P5p);var m=bw(EN);m.Z!=null&&m.Z.Z?rQG(m.Z.Z):y0().update(ax)}; dv=function(m,V,O){if(!m.done&&(m.L.cancel(),V.length!=0)){m.D=null;try{Vq5();var h=p6();U9().K=h;if(bw(EN).Z!=null)for(var w=0;w=0?p6()-BG:-1,C=p6();w.Z.dE==-1&&(L=C);var E=y0(),q=U9(),M=Gx(q.vB),f=CU();try{if(f.length>0){var x=E.Z;x&&(M.bs=[vI(x),x.getHeight()]);var R=E.K;R&&(M.ps=[R.width,R.height]);ax.screen&&(M.scs=[ax.screen.width,ax.screen.height])}else M.url=encodeURIComponent(ax.location.href.substring(0,512)),y.referrer&&(M.referrer=encodeURIComponent(y.referrer.substring(0,512))); M.tt=L;M.pt=BG;M.bin=q.L;ax.google_osd_load_pub_page_exp!==void 0&&(M.olpp=ax.google_osd_load_pub_page_exp);M.deb=[1,w.Z.fl,w.Z.K9,w.Z.Xb,w.Z.dE,0,w.L.L,w.Z.G4,w.Z.vu,w.Z.Ky,w.Z.mLN,-1].join(";");M.tvt=h6p(w,C);E.L&&(M.inapp=1);if(ax!==null&&ax!=ax.top){f.length>0&&(M.iframe_loc=encodeURIComponent(ax.location.href.substring(0,512)));var A=E.J;M.is=[vI(A),A.getHeight()]}}catch(K){M.error=1}Aa.D=M}x=g.bX(Aa.D);R=U9().Z;iX(R.D,"prf")==1?(A=new oq,w=R.Z,y=0,w.Z>-1&&(y=w.D.Z.now()-w.Z),A=cS(A,1,YX(w.T+ y),0),w=R.Z,A=cS(A,5,Dc(w.Z>-1?w.L+1:w.L),0),A=cS(A,2,FY(R.L.Z.D()),"0"),A=cS(A,3,FY(R.L.Z.L()),"0"),R=cS(A,4,FY(R.L.Z.Z()),"0"),A={},R=(A.pf=g.zI(R.D()),A)):R={};g.S5(x,R);g.S5(V,h,O,x,m())}])}; jsX=function(){var m=yUl||ax;if(!m)return"";var V=[];if(!m.location||!m.location.href)return"";V.push("url="+encodeURIComponent(m.location.href.substring(0,512)));m.document&&m.document.referrer&&V.push("referrer="+encodeURIComponent(m.document.referrer.substring(0,512)));return V.join("&")}; ta=function(){var m="youtube.player.web_20251209_02_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20251209_02_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20251209_02_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20251209_02_RC00".match(/_(\d{8})_\d+_RC\d+$/),V;if(((V=m)==null?void 0:V.length)==2)return m[1];m="youtube.player.web_20251209_02_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var O;return((O=m)==null?void 0:O.length)==3?"20"+m[1]+m[2]:null}; LRU=function(){return"av.default_js".includes("ima_html5_sdk")?{YQ:"ima",MX:null}:"av.default_js".includes("ima_native_sdk")?{YQ:"nima",MX:null}:"av.default_js".includes("admob-native-video-javascript")?{YQ:"an",MX:null}:"youtube.player.web_20251209_02_RC00".includes("cast_js_sdk")?{YQ:"cast",MX:ta()}:"youtube.player.web_20251209_02_RC00".includes("youtube.player.web")?{YQ:"yw",MX:ta()}:"youtube.player.web_20251209_02_RC00".includes("outstream_web_client")?{YQ:"out",MX:ta()}:"youtube.player.web_20251209_02_RC00".includes("drx_rewarded_web")? {YQ:"r",MX:ta()}:"youtube.player.web_20251209_02_RC00".includes("gam_native_web_video")?{YQ:"n",MX:ta()}:"youtube.player.web_20251209_02_RC00".includes("admob_interstitial_video")?{YQ:"int",MX:ta()}:{YQ:"j",MX:null}}; Xs=function(m,V){var O={sv:"968"};KU!==null&&(O.v=KU);O.cb=JU5;O.nas=Ja.Z.length;O.msg=m;V!==void 0&&(m=Crl(V))&&(O.e=WF[m]);return O}; HF=function(m){return Qg(m,"custom_metric_viewable")}; Crl=function(m){var V=HF(m)?"custom_metric_viewable":m.toLowerCase();return rZ(ha,function(O){return O==V})}; EdI=function(){this.Z=void 0;this.L=!1;this.D=0;this.T=-1;this.K="tos"}; f2$=function(m){try{var V=m.split(",");return V.length>g.Tx(qvC).length?null:Dl(V,function(O,h){h=h.toLowerCase().split("=");if(h.length!=2||Mq5[h[0]]===void 0||!Mq5[h[0]](h[1]))throw Error("Entry ("+h[0]+", "+h[1]+") is invalid.");O[h[0]]=h[1];return O},{})}catch(O){return null}}; xcl=function(m,V){if(m.Z==void 0)return 0;switch(m.K){case "mtos":return m.L?HV(V.Z,m.Z):HV(V.L,m.Z);case "tos":return m.L?Xv(V.Z,m.Z):Xv(V.L,m.Z)}return 0}; Ti=function(m,V,O,h){iA.call(this,V,h);this.J=m;this.V=O}; $e=function(){}; Nh=function(m){iA.call(this,"fully_viewable_audible_half_duration_impression",m)}; b1=function(m){this.Z=m}; nU=function(m,V){iA.call(this,m,V)}; Sh=function(m){G6.call(this,"measurable_impression",m)}; II=function(){b1.apply(this,arguments)}; eh=function(m,V,O){lA.call(this,m,V,O)}; u1=function(m){m=m===void 0?ax:m;xl.call(this,new CT(m,2))}; zi=function(m,V,O){lA.call(this,m,V,O)}; Zk=function(m){m=m===void 0?ax:m;xl.call(this,new CT(m,2))}; sN=function(){CT.call(this,ax,2,"mraid");this.EH=0;this.Ae=this.mS=!1;this.J=null;this.L=tLp(this.D);this.T.Z=new QS(0,0,0,0);this.H6=!1}; Fs=function(m,V,O){m.cA("addEventListener",V,O)}; AUU=function(m){U9().T=!!m.cA("isViewable");Fs(m,"viewableChange",R6p);m.cA("getState")==="loading"?Fs(m,"ready",odX):gdo(m)}; gdo=function(m){typeof m.L.Jt.AFMA_LIDAR==="string"?(m.mS=!0,UcI(m)):(m.L.compatibility=3,m.J="nc",m.fail("w"))}; UcI=function(m){m.Ae=!1;var V=iX(U9().vB,"rmmt")==1,O=!!m.cA("isViewable");(V?!O:1)&&SL().setTimeout(iR(524,function(){m.Ae||(dco(m),GU(540,Error()),m.J="mt",m.fail("w"))}),500); tqo(m);Fs(m,m.L.Jt.AFMA_LIDAR,KRC)}; tqo=function(m){var V=iX(U9().vB,"sneio")==1,O=m.L.Jt.AFMA_LIDAR_EXP_1!==void 0,h=m.L.Jt.AFMA_LIDAR_EXP_2!==void 0;(V=V&&h)&&(m.L.Jt.AFMA_LIDAR_EXP_2=!0);O&&(m.L.Jt.AFMA_LIDAR_EXP_1=!V)}; dco=function(m){m.cA("removeEventListener",m.L.Jt.AFMA_LIDAR,KRC);m.mS=!1}; WRp=function(m,V){if(m.cA("getState")==="loading")return new g.LK(-1,-1);V=m.cA(V);if(!V)return new g.LK(-1,-1);m=parseInt(V.width,10);V=parseInt(V.height,10);return isNaN(m)||isNaN(V)?new g.LK(-1,-1):new g.LK(m,V)}; odX=function(){try{var m=bw(sN);m.cA("removeEventListener","ready",odX);gdo(m)}catch(V){GU(541,V)}}; KRC=function(m,V){try{var O=bw(sN);O.Ae=!0;var h=m?new QS(m.y,m.x+m.width,m.y+m.height,m.x):new QS(0,0,0,0);var w=p6(),y=LT();var L=new PG(w,y,O);L.Z=h;L.volume=V;O.RW(L)}catch(C){GU(542,C)}}; R6p=function(m){var V=U9(),O=bw(sN);m&&!V.T&&(V.T=!0,O.H6=!0,O.J&&O.fail("w",!0))}; aI=function(){this.isInitialized=!1;this.Z=this.L=null;var m={};this.J=(m.start=this.w6A,m.firstquartile=this.auz,m.midpoint=this.sYz,m.thirdquartile=this.p6r,m.complete=this.Jeu,m.error=this.eru,m.pause=this.KD,m.resume=this.e8,m.skip=this.bAY,m.viewable_impression=this.jP,m.mute=this.AD,m.unmute=this.AD,m.fullscreen=this.OAt,m.exitfullscreen=this.X6r,m.fully_viewable_audible_half_duration_impression=this.jP,m.measurable_impression=this.jP,m.abandon=this.KD,m.engagedview=this.jP,m.impression=this.jP, m.creativeview=this.jP,m.progress=this.AD,m.custom_metric_viewable=this.jP,m.bufferstart=this.KD,m.bufferfinish=this.e8,m.audio_measurable=this.jP,m.audio_audible=this.jP,m);m={};this.V=(m.overlay_resize=this.reS,m.abandon=this.Bn,m.close=this.Bn,m.collapse=this.Bn,m.overlay_unmeasurable_impression=function(V){return wv(V,"overlay_unmeasurable_impression",LT())},m.overlay_viewable_immediate_impression=function(V){return wv(V,"overlay_viewable_immediate_impression",LT())},m.overlay_unviewable_impression= function(V){return wv(V,"overlay_unviewable_impression",LT())},m.overlay_viewable_end_of_session_impression=function(V){return wv(V,"overlay_viewable_end_of_session_impression",LT())},m); U9().L=3;XSa(this);this.D=null}; i1=function(m,V,O,h){m=m.Va(null,h,!0,V);m.T=O;acC([m]);return m}; H4o=function(m,V,O){V$$(V);var h=m.Z;g.An(V,function(w){var y=g.rb(w.criteria,function(L){var C=f2$(L);if(C==null)L=null;else if(L=new EdI,C.visible!=null&&(L.Z=C.visible/100),C.audible!=null&&(L.L=C.audible==1),C.time!=null){var E=C.timetype=="mtos"?"mtos":"tos",q=qJU(C.time,"%")?"%":"ms";C=parseInt(C.time,10);q=="%"&&(C/=100);L.setTime(C,q,E)}return L}); wj(y,function(L){return L==null})||tt3(O,new Ti(w.id,w.event,y,h))})}; Ty3=function(){var m=[],V=U9();m.push(bw(oI));iX(V.vB,"mvp_lv")&&m.push(bw(sN));V=[new u1,new Zk];V.push(new qh(m));V.push(new RI(ax));return V}; $cp=function(m){if(!m.isInitialized){m.isInitialized=!0;try{var V=p6(),O=U9(),h=y0();BG=V;O.D=79463069;m.L!=="o"&&(yUl=d53(ax));if(eo1()){Aa.Z.K9=0;Aa.Z.dE=p6()-V;var w=Ty3(),y=bw(EN);y.L=w;Go5(y,function(){Gi()})?Aa.done||(O4C(),Ek(y.Z.Z,m),UN()):h.D?Gi():UN()}else pU=!0}catch(L){throw Ja.reset(),L; }}}; l1=function(m){Aa.L.cancel();BF=m;Aa.done=!0}; Q6=function(m){if(m.L)return m.L;var V=bw(EN).Z;if(V)switch(V.getName()){case "nis":m.L="n";break;case "gsv":m.L="m"}m.L||(m.L="h");return m.L}; vF=function(m,V,O){if(m.Z==null)return V.LK|=4,!1;m=Yvo(m.Z,O,V);V.LK|=m;return m==0}; Gi=function(){var m=[new RI(ax)],V=bw(EN);V.L=m;Go5(V,function(){l1("i")})?Aa.done||(O4C(),UN()):l1("i")}; kS$=function(m,V){if(!m.LP){var O=wv(m,"start",LT());O=m.HK.Z(O).Z;var h={id:"lidarv"};h.r=V;h.sv="968";KU!==null&&(h.v=KU);kT(O,function(w,y){return h[w]=w=="mtos"||w=="tos"?y:encodeURIComponent(y)}); V=jsX();kT(V,function(w,y){return h[w]=encodeURIComponent(y)}); V="//pagead2.googlesyndication.com/pagead/gen_204?"+gj(od(new Rd,h));ZFo(V);m.LP=!0}}; PF=function(m,V,O){dv(Aa,[m],!LT());HkC(m,O);O!=4&&XNI(m.mS,O,m.Dl);return wv(m,V,LT())}; XSa=function(m){wSG(function(){var V=rUp();m.L!=null&&(V.sdk=m.L);var O=bw(EN);O.Z!=null&&(V.avms=O.Z.getName());return V})}; cUl=function(m,V,O,h){var w=zw5(Ja,O);w!==null&&w.Tf!==V&&(m.HZ(w),w=null);w||(V=m.Va(O,p6(),!1,V),Ja.L.length==0&&(U9().D=79463069),ikX([V]),w=V,w.T=Q6(m),h&&(w.Xr=h));return w}; Dc1=function(m,V){var O=m[V];O!==void 0&&O>0&&(m[V]=Math.floor(O*1E3))}; rUp=function(){var m=y0(),V={},O={},h={};return Object.assign({},(V.sv="968",V),KU!==null&&(O.v=KU,O),(h["if"]=m.D?"1":"0",h.nas=String(Ja.Z.length),h))}; mo=function(m){iA.call(this,"audio_audible",m)}; VQ=function(m){G6.call(this,"audio_measurable",m)}; Ow=function(){b1.apply(this,arguments)}; hH=function(){}; Ny1=function(m){this.Z=m}; Yvo=function(m,V,O){m=m.L();if(typeof m==="function"){var h={};var w={};h=Object.assign({},KU!==null&&(h.v=KU,h),(w.sv="968",w.cb=JU5,w.e=b4o(V),w));w=wv(O,V,LT());g.S5(h,w);O.JX[V]=w;h=O.xQ()==2?zep(h).join("&"):O.HK.Z(h).Z;try{return m(O.Tf,h,V),0}catch(y){return 2}}else return 1}; b4o=function(m){var V=HF(m)?"custom_metric_viewable":m;m=rZ(ha,function(O){return O==V}); return WF[m]}; wD=function(){aI.call(this);this.N=null;this.K=!1;this.T="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; nd5=function(m,V,O){O=O.opt_configurable_tracking_events;m.Z!=null&&Array.isArray(O)&&H4o(m,O,V)}; SvX=function(m,V,O){var h=LU(Ja,V);h||(h=O.opt_nativeTime||-1,h=i1(m,V,Q6(m),h),O.opt_osdId&&(h.Xr=O.opt_osdId));return h}; I2X=function(m,V,O){var h=LU(Ja,V);h||(h=i1(m,V,"n",O.opt_nativeTime||-1));return h}; e6m=function(m,V){var O=LU(Ja,V);O||(O=i1(m,V,"h",-1));return O}; uV7=function(m){U9();switch(Q6(m)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; ssC=function(m,V,O,h){O=O===void 0?{}:O;var w={};g.S5(w,{opt_adElement:void 0,opt_fullscreen:void 0},O);var y=m.yB(V,O);O=y?y.HK:m.LZ();if(w.opt_bounds)return O.Z(Xs("ol",h));if(h!==void 0)if(Crl(h)!==void 0)if(pU)m=Xs("ue",h);else if($cp(m),BF=="i")m=Xs("i",h),m["if"]=0;else if(V=m.yB(V,w)){b:{BF=="i"&&(V.LV=!0);y=w.opt_fullscreen;y!==void 0&&Nf(V,!!y);var L;if(y=!y0().L)(y=mg(g.wX(),"CrKey")&&!(mg(g.wX(),"CrKey")&&mg(g.wX(),"SmartSpeaker"))||mg(g.wX(),"PlayStation")||mg(g.wX(),"Roku")||Tbm()||mg(g.wX(), "Xbox"))||(y=g.wX(),y=mg(y,"AppleTV")||mg(y,"Apple TV")||mg(y,"CFNetwork")||mg(y,"tvOS")),y||(y=g.wX(),y=mg(y,"sdk_google_atv_x86")||mg(y,"Android TV")),y=!y;y&&(SL(),y=db(jV)===0);if(L=y){switch(V.xQ()){case 1:kS$(V,"pv");break;case 2:m.BK(V)}l1("pv")}y=h.toLowerCase();if(L=!L)L=iX(U9().vB,"ssmol")&&y==="loaded"?!1:g.vH(z63,y);if(L&&V.oS==0){BF!="i"&&(Aa.done=!1);L=w!==void 0?w.opt_nativeTime:void 0;vG=L=typeof L==="number"?L:p6();V.WS=!0;var C=LT();V.oS=1;V.H1={};V.H1.start=!1;V.H1.firstquartile= !1;V.H1.midpoint=!1;V.H1.thirdquartile=!1;V.H1.complete=!1;V.H1.resume=!1;V.H1.pause=!1;V.H1.skip=!1;V.H1.mute=!1;V.H1.unmute=!1;V.H1.viewable_impression=!1;V.H1.measurable_impression=!1;V.H1.fully_viewable_audible_half_duration_impression=!1;V.H1.fullscreen=!1;V.H1.exitfullscreen=!1;V.yK=0;C||(V.aK().V=L);dv(Aa,[V],!C)}(L=V.HN[y])&&ZL(V.XG,L);iX(U9().vB,"fmd")||g.vH(Z4p,y)&&V.ST&&V.ST.L(V,null);switch(V.xQ()){case 1:var E=HF(y)?m.J.custom_metric_viewable:m.J[y];break;case 2:E=m.V[y]}if(E&&(h=E.call(m, V,w,h),iX(U9().vB,"fmd")&&g.vH(Z4p,y)&&V.ST&&V.ST.L(V,null),h!==void 0)){w=Xs(void 0,y);g.S5(w,h);h=w;break b}h=void 0}V.oS==3&&m.HZ(V);m=h}else m=Xs("nf",h);else m=void 0;else pU?m=Xs("ue"):y?(m=Xs(),g.S5(m,$Y$(y,!0,!1,!1))):m=Xs("nf");return typeof m==="string"?O.Z():O.Z(m)}; FRm=function(m,V){V&&(m.T=V)}; a2U=function(m){var V={};return V.viewability=m.Z,V.googleViewability=m.L,V}; i4G=function(m,V,O){O=O===void 0?{}:O;m=ssC(bw(wD),V,O,m);return a2U(m)}; yQ=function(m){var V=g.AG.apply(1,arguments).filter(Boolean).join("&");if(!V)return m;var O=m.match(/[?&]adurl=/);return O?m.slice(0,O.index+1)+V+"&"+m.slice(O.index+1):m+(m.indexOf("?")<0?"?":"&")+V}; j_=function(m,V){return V?"&"+m+"="+encodeURIComponent(V):""}; GS3=function(m){var V=m.url;m=m.WAe;this.L=V;this.T=m;this.D=(new Date).getTime()-17040672E5;this.Z={};for(var O=/[?&]([^&=]+)=([^&]*)/g;m=O.exec(V);)this.Z[m[1]]=m[2]}; pS0=function(m){m=m.T;if(!m)return"";var V=j_("uap",m.platform)+j_("uapv",m.platformVersion)+j_("uafv",m.uaFullVersion)+j_("uaa",m.architecture)+j_("uam",m.model)+j_("uab",m.bitness);m.fullVersionList&&(V+="&uafvl="+encodeURIComponent(m.fullVersionList.map(function(O){return encodeURIComponent(O.brand)+";"+encodeURIComponent(O.version)}).join("|"))); m.wow64!=null&&(V+="&uaw="+Number(m.wow64));return V.slice(1)}; Qs0=function(m,V,O,h,w){var y=window;var L=L===void 0?!1:L;var C;O?C=(L===void 0?0:L)?"//ep1.adtrafficquality.google/bg/"+ix(O)+".js":"//pagead2.googlesyndication.com/bg/"+ix(O)+".js":C="";L=L===void 0?!1:L;O=y.document;var E={};V&&(E._scs_=V);E._bgu_=C;E._bgp_=h;E._li_="v_h.3.0.0.0";w&&(E._upb_=w);(V=y.GoogleTyFxhY)&&typeof V.push=="function"||(V=y.GoogleTyFxhY=[]);V.push(E);V=ox(O).createElement("SCRIPT");V.type="text/javascript";V.async=!0;m=(L===void 0?0:L)?g.fK(ByI,ix(m)+".js"):g.fK(l2$,ix(m)+ ".js");g.Ij(V,m);(y=(y.GoogleTyFxhYEET||{})[V.src])?y():O.getElementsByTagName("head")[0].appendChild(V)}; vdl=function(){try{var m,V;return!!((m=window)==null?0:(V=m.top)==null?0:V.location.href)&&!1}catch(O){return!0}}; Lb=function(m,V,O){O=O===void 0?Error():O;var h=Error.call(this);this.message=h.message;"stack"in h&&(this.stack=h.stack);this.code=m;V+=":";O instanceof Error?(this.message=V+O.message,this.stack=O.stack||""):(this.message=V+String(O),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; Cb=function(){var m=PrI();m=m===void 0?"bevasrsg":m;return new Promise(function(V){var O=window===window.top?window:vdl()?window:window.top,h=O[m],w;((w=h)==null?0:w.bevasrs)?V(new JH(h.bevasrs)):(h||(h={},h=(h.nqfbel=[],h),O[m]=h),h.nqfbel.push(function(y){V(new JH(y))}))})}; m05=function(m){var V={c:m.kQ,e:m.fZ,mc:m.Op,me:m.rr};m.Ga&&(V.co={c:m.Ga.Mm,a:m.Ga.Mt,s:m.Ga.MW});return V}; Ew=function(m){g.Z.call(this);this.wpc=m}; JH=function(m){g.Z.call(this);var V=this;this.jK=m;this.D="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.L=void 0;this.F7=this.jK.p;this.T=this.dR.bind(this);this.addOnDisposeCallback(function(){return void Vo0(V)})}; Oxl=function(m){var V;return g.u(function(O){if(O.Z==1){if(!m.jK.wpc)throw new Lb(30,"NWA");return m.Z?O.return(m.Z):g.I(O,m.jK.wpc(),2)}V=O.L;m.Z=new Ew(V);return O.return(m.Z)})}; Vo0=function(m){m.L!==void 0&&(m.D.forEach(function(V){var O;(O=m.L)==null||O.removeEventListener(V,m.T)}),m.L=void 0)}; hD1=function(m){var V=V===void 0?53:V;var O=[];as(m,qQ,6).forEach(function(h){g.BS(h,2)<=V&&O.push(g.BS(h,1))}); return O}; wiU=function(m){var V=V===void 0?53:V;var O=[];as(m,qQ,6).forEach(function(h){g.BS(h,2)>V&&O.push(g.BS(h,1))}); return O}; yzl=function(m){m.then(function(){},function(){})}; MQ=function(){g.Z.apply(this,arguments);this.L=1}; fb=function(m){return{fieldType:2,fieldName:m}}; g.xr=function(m){return{fieldType:3,fieldName:m}}; jyl=function(m){this.Z=m;m.gX("/client_streamz/bg/frs",g.xr("mk"))}; Lxm=function(m){this.Z=m;m.gX("/client_streamz/bg/wrl",g.xr("mn"),fb("ac"),fb("sc"),g.xr("rk"),g.xr("mk"))}; JzC=function(m){this.Z=m;m.h7("/client_streamz/bg/ec",g.xr("en"),g.xr("mk"))}; C9p=function(m){this.Z=m;m.gX("/client_streamz/bg/el",g.xr("en"),g.xr("mk"))}; Ewl=function(m){this.Z=m;m.h7("/client_streamz/bg/cec",fb("ec"),g.xr("mk"))}; qAo=function(m){this.Z=m;m.h7("/client_streamz/bg/po/csc",fb("cs"),g.xr("mk"))}; Mo5=function(m){this.Z=m;m.h7("/client_streamz/bg/po/ctav",g.xr("av"),g.xr("mk"))}; fpI=function(m){this.Z=m;m.h7("/client_streamz/bg/po/cwsc",g.xr("su"),g.xr("mk"))}; x0C=function(m){this.Sz=Ev(m)}; RD$=function(m,V){return BXo(m,V,Ui3)}; Rh=function(m){this.Sz=Ev(m)}; oh=function(m){this.Sz=Ev(m)}; gD=function(m){this.Sz=Ev(m)}; AH=function(m){this.Sz=Ev(m)}; Uw=function(m){this.Sz=Ev(m)}; dD=function(m){this.Sz=Ev(m)}; ow$=function(m){this.Sz=Ev(m)}; U0X=function(m){var V=new dD;V=OA(V,1,m.L);var O=gwG(m);V=BXo(V,O,kpm);O=[];for(var h=[],w=g.D(m.Z.keys()),y=w.next();!y.done;y=w.next())h.push(y.value.split(","));for(w=0;w>>31)&4294967295;f=w[0];var A=w[1],K=w[2],X=w[3],c=w[4];for(R=0;R<80;R++){if(R<40)if(R<20){var r=X^A&(K^X);var N=1518500249}else r=A^K^X,N=1859775393;else R<60?(r=A&K|X&(A|K),N=2400959708):(r=A^K^X,N=3395469782);r=((f<<5|f>>>27)&4294967295)+r+c+N+x[R]&4294967295;c=X;X=K;K=(A<<30|A>>>2)&4294967295;A=f;f=r}w[0]=w[0]+f&4294967295;w[1]=w[1]+A&4294967295;w[2]= w[2]+K&4294967295;w[3]=w[3]+X&4294967295;w[4]=w[4]+c&4294967295} function O(f,x){if(typeof f==="string"){f=unescape(encodeURIComponent(f));for(var R=[],A=0,K=f.length;A=56;R--)y[R]=x&255,x>>>=8;V(y);for(R=x=0;R<5;R++)for(var A=24;A>=0;A-=8)f[x++]=w[R]>>A&255;return f} for(var w=[],y=[],L=[],C=[128],E=1;E<64;++E)C[E]=0;var q,M;m();return{reset:m,update:O,digest:h,eS:function(){for(var f=h(),x="",R=0;R1)));L=L.next)w||(y=L);w&&(O.Z==0&&h==1?R1X(O,V):(y?(h=y,h.next==O.T&&(O.T=h),h.next=h.next.next):oT$(O),gTC(O,w,3,V)))}m.D=null}else cU(m,3,V)}; SX=function(m,V){m.L||m.Z!=2&&m.Z!=3||AEm(m);m.T?m.T.next=V:m.L=V;m.T=V}; U_p=function(m,V,O,h){var w=N1(null,null,null);w.Z=new g.DA(function(y,L){w.D=V?function(C){try{var E=V.call(h,C);y(E)}catch(q){L(q)}}:y; w.L=O?function(C){try{var E=O.call(h,C);E===void 0&&C instanceof eX?L(C):y(E)}catch(q){L(q)}}:L}); w.Z.D=m;SX(m,w);return w.Z}; cU=function(m,V,O){m.Z==0&&(m===O&&(V=3,O=new TypeError("Promise cannot resolve to itself")),m.Z=1,q91(O,m.X1f,m.aMz,m)||(m.J=O,m.Z=V,m.D=null,AEm(m),V!=3||O instanceof eX||d_5(m,O)))}; q91=function(m,V,O,h){if(m instanceof g.DA)return x_C(m,V,O,h),!0;if(m)try{var w=!!m.$goog_Thenable}catch(L){w=!1}else w=!1;if(w)return m.then(V,O,h),!0;if(g.NA(m))try{var y=m.then;if(typeof y==="function")return tu1(m,y,V,O,h),!0}catch(L){return O.call(h,L),!0}return!1}; tu1=function(m,V,O,h,w){function y(E){C||(C=!0,h.call(w,E))} function L(E){C||(C=!0,O.call(w,E))} var C=!1;try{V.call(m,L,y)}catch(E){y(E)}}; AEm=function(m){m.N||(m.N=!0,g.rw(m.iV,m))}; oT$=function(m){var V=null;m.L&&(V=m.L,m.L=V.next,V.next=null);m.L||(m.T=null);return V}; gTC=function(m,V,O,h){if(O==3&&V.L&&!V.T)for(;m&&m.K;m=m.D)m.K=!1;if(V.Z)V.Z.D=null,K5G(V,O,h);else try{V.T?V.D.call(V.context):K5G(V,O,h)}catch(w){W51.call(null,w)}h1p(ET$,V)}; K5G=function(m,V,O){V==2?m.D.call(m.context,O):m.L&&m.L.call(m.context,O)}; d_5=function(m,V){m.K=!0;g.rw(function(){m.K&&W51.call(null,V)})}; eX=function(m){aA.call(this,m)}; g.ug=function(m,V){g.dw.call(this);this.QD=m||1;this.Wy=V||g.WH;this.BR=(0,g.IA)(this.ULN,this);this.WJ=g.uz()}; g.z0=function(m,V,O){if(typeof m==="function")O&&(m=(0,g.IA)(m,O));else if(m&&typeof m.handleEvent=="function")m=(0,g.IA)(m.handleEvent,m);else throw Error("Invalid listener argument");return Number(V)>2147483647?-1:g.WH.setTimeout(m,V||0)}; ZA=function(m,V){var O=null;return(new g.DA(function(h,w){O=g.z0(function(){h(V)},m); O==-1&&w(Error("Failed to schedule timer."))})).dI(function(h){g.WH.clearTimeout(O); throw h;})}; s7=function(m){g.Z.call(this);this.J=m;this.T=0;this.D=100;this.K=!1;this.L=new Map;this.N=new Set;this.flushInterval=3E4;this.Z=new g.ug(this.flushInterval);this.Z.listen("tick",this.yc,!1,this);g.a(this,this.Z)}; XGG=function(m){m.Z.enabled||m.Z.start();m.T++;m.T>=m.D&&m.yc()}; H6o=function(m,V){return m.N.has(V)?void 0:m.L.get(V)}; TPG=function(m){for(var V=0;V2?m.Z.statusText:""}catch(O){V=""}m.T=V+" ["+m.getStatus()+"]";IV3(m)}}finally{BU(m)}}}; BU=function(m,V){if(m.Z){m.N&&(clearTimeout(m.N),m.N=null);var O=m.Z;m.Z=null;V||m.dispatchEvent("ready");try{O.onreadystatechange=null}catch(h){}}}; vU=function(m){var V=m.getStatus();a:switch(V){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var O=!0;break a;default:O=!1}if(!O){if(V=V===0)m=g.XA(String(m.V))[1]||null,!m&&g.WH.self&&g.WH.self.location&&(m=g.WH.self.location.protocol.slice(0,-1)),V=!z1o.test(m?m.toLowerCase():"");O=V}return O}; g.Qc=function(m){return m.Z?m.Z.readyState:0}; g.PU=function(m){try{return m.Z?m.Z.responseText:""}catch(V){return""}}; g.mz=function(m){try{if(!m.Z)return null;if("response"in m.Z)return m.Z.response;switch(m.v6){case "":case "text":return m.Z.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in m.Z)return m.Z.mozResponseArrayBuffer}return null}catch(V){return null}}; g.Z6$=function(m){var V={};m=(m.Z&&g.Qc(m)>=2?m.Z.getAllResponseHeaders()||"":"").split("\r\n");for(var O=0;O>1,V),$s(m,m.length>>1)]}; WEm=function(m){var V=g.D(KEa(m,Ys));m=V.next().value;V=V.next().value;return m.toString(16)+V.toString(16)}; XV1=function(m,V){var O=KEa(V);m=new Uint32Array(m.buffer);V=m[0];var h=g.D(O);O=h.next().value;h=h.next().value;for(var w=1;w>>8|L<<24,L+=y|0,L^=C+38293,y=y<<3|y>>>29,y^=L,E=E>>>8|E<<24,E+=C|0,E^=q+38293,C=C<<3|C>>>29,C^=E;y=[y,L];m[w]^=y[0];w+1=O?(globalThis.sessionStorage.removeItem(m),["e"]):["a",new Uint8Array(h.buffer,V+4)]}; ks=function(m,V,O){O=O===void 0?[]:O;this.maxItems=m;this.Z=V===void 0?0:V;this.L=O}; $fI=function(m){var V=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!V)return new ks(m);var O=V.split(",");if(O.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new ks(m);V=O.slice(1);V.length===1&&V[0]===""&&(V=[]);O=Number(O[0]);return isNaN(O)||O<0||O>V.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new ks(m)):new ks(m,O,V)}; Yk0=function(m,V){this.logger=V;try{var O=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(h){O=!1}O&&(this.index=$fI(m))}; k63=function(m,V,O,h,w){var y=m.index?jb(m.logger,function(){return HTX(m.index,WEm(V),O,h,w)},"W"):"u"; m.logger.A1(y)}; rgG=function(m,V,O){var h=g.D(m.index?jb(m.logger,function(){return TjC(WEm(V),O)},"R"):["u"]),w=h.next().value; h=h.next().value;m.logger.ZV(w);return h}; Njo=function(m){function V(){O-=h;O-=w;O^=w>>>13;h-=w;h-=O;h^=O<<8;w-=O;w-=h;w^=h>>>13;O-=h;O-=w;O^=w>>>12;h-=w;h-=O;h^=O<<16;w-=O;w-=h;w^=h>>>5;O-=h;O-=w;O^=w>>>3;h-=w;h-=O;h^=O<<10;w-=O;w-=h;w^=h>>>15} m=cga(m);for(var O=2654435769,h=2654435769,w=314159265,y=m.length,L=y,C=0;L>=12;L-=12,C+=12)O+=rq(m,C),h+=rq(m,C+4),w+=rq(m,C+8),V();w+=y;switch(L){case 11:w+=m[C+10]<<24;case 10:w+=m[C+9]<<16;case 9:w+=m[C+8]<<8;case 8:h+=m[C+7]<<24;case 7:h+=m[C+6]<<16;case 6:h+=m[C+5]<<8;case 5:h+=m[C+4];case 4:O+=m[C+3]<<24;case 3:O+=m[C+2]<<16;case 2:O+=m[C+1]<<8;case 1:O+=m[C+0]}V();return Df0.toString(w)}; cga=function(m){for(var V=[],O=0;O>7,m.error.code]);h.set(O,4);return h}; uL=function(m,V,O){c3.call(this,m);this.T=V;this.clientState=O;this.Z="S";this.L="q"}; eb=function(m){return globalThis.TextEncoder?(new TextEncoder).encode(m):g.uw(m)}; nl1=function(m,V,O){return m instanceof tD?Jg3(m,O,V,1):m.NG(O)}; Zn=function(m){g.Z.call(this);var V=this;this.D=new g.R4;this.T=0;this.L=void 0;this.state=2;this.jK=m.jK;this.F_=m.F_;this.hg=Object.assign({},Sko,m.hg||{});this.logger=m.jK.g1();var O;this.onError=(O=m.onError)!=null?O:function(){}; this.pW=m.pW||!1;if(ILm(m)){var h=this.jK;this.K=function(){return xf0(h).catch(function(L){L=V.reportError(new Lb(V.Z?20:32,"TRG:Disposed",L));V.L=L;var C;(C=V.Z)==null||C.dispose();V.Z=void 0;V.D.reject(L)})}; RfC(h,function(){return void zG(V)}); h.V===2&&zG(this)}else this.K=m.nxf,zG(this);var w=this.logger.share();w.ZN("o");var y=new wq(w,"o");this.D.promise.then(function(){y.done();w.Hf();w.dispose()},function(){return void w.dispose()}); this.addOnDisposeCallback(function(){V.Z?(V.Z.dispose(),V.Z=void 0):V.L?V.logger.Hf():(V.L=V.reportError(new Lb(32,"TNP:Disposed")),V.logger.Hf(),V.D.reject(V.L))}); g.a(this,this.logger)}; efI=function(m,V){if(!(V instanceof Lb))if(V instanceof FJ){var O=Error(V.toString());O.stack=V.stack;V=new Lb(11,"EBH:Error",O)}else V=new Lb(12,"BSO:Unknown",V);return m.reportError(V)}; zG=function(m){var V,O,h,w,y,L,C,E,q,M,f,x,R,A,K;return g.u(function(X){switch(X.Z){case 1:V=void 0;m.T++;O=new g.R4;m.jK instanceof KC&&m.jK.T.push(O.promise);if(!m.pW){X.Te(2);break}h=new g.R4;setTimeout(function(){return void h.resolve()}); return g.I(X,h.promise,2);case 2:return w=m.logger.share(),g.JG(X,4,5),m.state=5,y={},L=[],g.I(X,XI(m.jK.snapshot({kQ:y,O7:L}),m.hg.Qnr,function(){return Promise.reject(new Lb(15,"MDA:Timeout"))}),7); case 7:C=X.L;if(m.UH())throw new Lb(m.Z?20:32,"MDA:Disposed");E=L[0];m.state=6;return g.I(X,XI(nl1(m.F_,w,C),m.hg.yg,function(){return Promise.reject(new Lb(10,"BWB:Timeout"))}),8); case 8:q=X.L;if(m.UH())throw new Lb(m.Z?20:32,"BWB:Disposed");m.state=7;V=jb(w,function(){var r=uv5(m,q,O,E);r.D.promise.then(function(){return void m.K()}); return r},"i"); case 5:g.MA(X);w.dispose();g.f5(X,6);break;case 4:M=g.qA(X);(f=V)==null||f.dispose();if(!m.L){x=efI(m,M);O.resolve();var c;if(c=m.jK instanceof KC&&m.T<2)a:if(M instanceof Lb)c=M.code!==32&&M.code!==20&&M.code!==10;else{if(M instanceof FJ)switch(M.code){case 2:case 13:case 14:case 4:break;default:c=!1;break a}c=!0}if(c)return R=(1+Math.random()*.25)*(m.Z?6E4:1E3),A=setTimeout(function(){return void m.K()},R),m.addOnDisposeCallback(function(){return void clearTimeout(A)}),X.return(); m.L=x}w.Mz(m.Z?13:14);m.D.reject(m.L);return X.return();case 6:m.state=8,m.T=0,(K=m.Z)==null||K.dispose(),m.Z=V,m.D.resolve(),g.j$(X)}})}; uv5=function(m,V,O,h){var w=lr(V,2)*1E3;if(w<=0)throw new Lb(31,"TTM:Invalid");if(QI(V,4))return new Sb(m.logger,QI(V,4),w);if(!lr(V,3))return new nC(m.logger,Q5(ry(V,1)),w);if(!h)throw new Lb(4,"PMD:Undefined");h=h(Q5(ry(V,1)));if(typeof h!=="function")throw new Lb(16,"APF:Failed");m.N=Math.floor((Date.now()+w)/1E3);m=new bL(m.logger,h,lr(V,3),w);m.addOnDisposeCallback(function(){return void O.resolve()}); return m}; zfI=function(m,V){V=V instanceof Lb?V:new Lb(5,"TVD:error",V);return m.reportError(V)}; iTp=function(m,V,O){try{if(m.UH())throw new Lb(21,"BNT:disposed");if(!m.Z&&m.L)throw m.L;var h,w;return(w=(h=ZTG(m,V,O))!=null?h:sdI(m,V,O))!=null?w:FEX(m,V,O)}catch(y){if(!V.rr)throw zfI(m,y);return aL0(m,O,y)}}; ZTG=function(m,V,O){var h;return(h=m.Z)==null?void 0:NO(h,function(){return se(m,V)},O,function(w){var y; if(m.Z instanceof bL&&((y=V.Ga)==null?0:y.MW))try{var L;(L=m.cache)==null||k63(L,se(m,V),w,V.Ga.Mm,m.N-120)}catch(C){m.reportError(new Lb(24,"ELX:write",C))}})}; sdI=function(m,V,O){var h;if((h=V.Ga)!=null&&h.Mt)try{var w,y=(w=m.cache)==null?void 0:rgG(w,se(m,V),V.Ga.Mm);return y?O?jb(m.logger,function(){return g.zI(y,2)},"a"):y:void 0}catch(L){m.reportError(new Lb(23,"RXO:read",L))}}; FEX=function(m,V,O){var h={stack:[],error:void 0,hasError:!1};try{if(!V.Op)throw new Lb(29,"SDF:notready");return NO(Zoa(h,new uL(m.logger,0,m.state)),function(){return se(m,V)},O)}catch(w){h.error=w,h.hasError=!0}finally{sCa(h)}}; aL0=function(m,V,O){var h={stack:[],error:void 0,hasError:!1};try{var w=zfI(m,O);return NO(Zoa(h,new I4(m.logger,w)),function(){return[]},V)}catch(y){h.error=y,h.hasError=!0}finally{sCa(h)}}; se=function(m,V){return V.fZ?V.fZ:V.kQ?jb(m.logger,function(){return V.fZ=eb(V.kQ)},"c"):[]}; G6U=function(){var m=0,V;return function(O){V||(V=new LC);var h=new uL(V,m,1),w=NO(h,function(){return eb(O)},!0); h.dispose();m++;return w}}; pV5=function(){var m=g.FI();this.Z=m;m.h7("/client_streamz/youtube/aba/gac",fb("type"),fb("sequence"))}; a4=function(m){this.Sz=Ev(m)}; BjG=function(m,V,O){this.MZ=m;this.NK=V;this.metadata=O}; iL=function(m,V){V=V===void 0?{}:V;this.KVt=m;this.metadata=V;this.status=null}; GG=function(m,V,O,h,w){this.name=m;this.methodType="unary";this.requestType=V;this.responseType=O;this.Z=h;this.L=w}; pC=function(m){this.Sz=Ev(m)}; B3=function(m){this.Sz=Ev(m)}; lL=function(m){this.Sz=Ev(m)}; Qq=function(m,V){this.L=[];this.T=[];this.K=[];this.D=[];this.Z=[];this.N=m.dqA;this.J=V;this.xhr=m.xhr;this.N&&lLa(this)}; mh3=function(m,V){var O=new Qd0;g.ft(m.xhr,"complete",function(){if(vU(m.xhr)){var h=g.PU(m.xhr);if(V&&m.xhr.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");h=atob(h)}try{var w=m.J(h)}catch(C){v3(m,P3(new FJ(13,"Error when deserializing response data; error: "+C+(", response: "+h)),O));return}h=$_5(m.xhr.getStatus());mw(m,Vx(m));h===0?vl7(m,w):v3(m,P3(new FJ(h,"Xhr succeeded but the status code is not 200"),O))}else{h=g.PU(m.xhr);w=Vx(m);if(h){var y= PA5(m,h);h=y.code;var L=y.details;y=y.metadata}else h=2,L="Rpc failed due to xhr error. uri: "+String(m.xhr.V)+", error code: "+(m.xhr.L+", error: ")+m.xhr.getLastError(),y=w;mw(m,w);v3(m,P3(new FJ(h,L,y),O))}})}; lLa=function(m){Og(m.N,"data",function(V){if("1"in V){var O=V["1"];try{var h=m.J(O)}catch(w){v3(m,new FJ(13,"Error when deserializing response data; error: "+w+(", response: "+O)))}h&&vl7(m,h)}if("2"in V)for(V=PA5(m,V["2"]),O=0;O-1&&m.splice(V,1)}; vl7=function(m,V){for(var O=0;O>4&15).toString(16)+(m&15).toString(16)}; Rw=function(m,V){this.L=this.Z=null;this.D=m||null;this.T=!!V}; AK=function(m){m.Z||(m.Z=new Map,m.L=0,m.D&&kT(m.D,function(V,O){m.add(aj(V),O)}))}; C1X=function(m,V){AK(m);V=Ug(m,V);return m.Z.has(V)}; g.EeI=function(m,V,O){m.remove(V);O.length>0&&(m.D=null,m.Z.set(Ug(m,V),g.j5(O)),m.L=m.L+O.length)}; Ug=function(m,V){V=String(V);m.T&&(V=V.toLowerCase());return V}; jI$=function(m,V){V&&!m.T&&(AK(m),m.D=null,m.Z.forEach(function(O,h){var w=h.toLowerCase();h!=w&&(this.remove(h),g.EeI(this,w,O))},m)); m.T=V}; g.qNX=function(m){var V="";g.Mm(m,function(O,h){V+=h;V+=":";V+=O;V+="\r\n"}); return V}; g.d_=function(m,V,O){if(g.c8(O))return m;O=g.qNX(O);if(typeof m==="string")return bR(m,g.FC(V),O);g.g_(m,V,O);return m}; g.tK=function(m){g.Z.call(this);this.L=m;this.Z={}}; MhC=function(m,V,O,h,w,y){if(Array.isArray(O))for(var L=0;L=0)return!0;try{var V=new g.d7(m)}catch(O){return g.p5(raG,function(h){return m.search(h)>0})!=null}return V.N.match(cao)?!0:g.p5(raG,function(O){return m.match(O)!=null})!=null}; g.nZ=function(m,V){return m.replace(Nv1,function(O,h){try{var w=g.DE(V,h);if(w==null||w.toString()==null)return O;w=w.toString();if(w==""||!g.v8(g.Gp(w)))return encodeURIComponent(w).replace(/%2C/g,",")}catch(y){}return O})}; bUG=function(m){this.Sz=Ev(m,500)}; ne0=function(m){this.Sz=Ev(m,500)}; SB=function(m){this.Sz=Ev(m)}; Iw=function(m){this.Sz=Ev(m)}; SNp=function(m){var V=m.Sz;return FV(m,V,V[h9]|0,SB,2,1)}; us0=function(m){var V;if((V=m[IkU])!=null)m=V;else{if(b9!==b9)throw Error();m=m[IkU]=eCG(m.Z)}return m}; ZU7=function(m){var V;return(V=m[zC3])!=null?V:m[zC3]=new Map(SNp(us0(m)).map(function(O){return[O.getName(),g.BS(O,2)]}))}; eB=function(m,V){return Object.is(m,V)}; zV=function(m){var V=uY;uY=m;return V}; sI5=function(m){if(m.NN!==void 0){var V=Zz;Zz=!0;try{for(var O=m.NN;O!==void 0;O=O.eG){var h=O.Gz;h.PM||(m=void 0,h.PM=!0,sI5(h),(m=h.KN)==null||m.call(h,h))}}finally{Zz=V}}}; FM3=function(){var m;return((m=uY)==null?void 0:m.SL)!==!1}; ak7=function(m){m&&(m.Ub=void 0,m.s3=!0);return zV(m)}; Gi5=function(m){m.s3=!1;var V=m.Ub,O=V!==void 0?V.g$:m.producers;if(O!==void 0){if(sg(m)){do O=iUo(O);while(O!==void 0)}V!==void 0?V.g$=void 0:m.producers=void 0}}; pFI=function(m,V){var O=m.IA,h=sg(m);O!==void 0?(V.eG=O.eG,O.eG=V):(V.eG=void 0,m.NN=V);V.Ho=O;m.IA=V;if(!h)for(m=m.producers;m!==void 0;m=m.g$)pFI(m.FB,m)}; iUo=function(m){var V=m.FB,O=m.g$,h=m.eG,w=m.Ho;m.eG=void 0;m.Ho=void 0;h!==void 0?h.Ho=w:V.IA=w;if(w!==void 0)w.eG=h;else if(V.NN=h,!sg(V))for(m=V.producers;m!==void 0;)m=iUo(m);return O}; sg=function(m){return m.Ww||m.NN!==void 0}; vem=function(m,V){function O(){a:{if(Zz)throw Error("");if(uY!==null){var w=uY.Ub;if(w===void 0||w.FB!==h){var y=void 0,L=uY.s3;if(L&&(y=w!==void 0?w.g$:uY.producers,y!==void 0&&y.FB===h)){uY.Ub=y;y.HPe=h.version;break a}var C=h.IA,E;if(!(E=C===void 0||C.Gz!==uY)){if(L){b:{E=uY;L=E.Ub;if(L!==void 0){E=E.producers;do{if(E===C){L=!0;break b}if(E===L)break;E=E.g$}while(E!==void 0)}L=!1}L=!L}E=L}E&&(L=sg(uY),y={FB:h,Gz:uY,g$:y,Ho:C,HPe:h.version,eG:void 0},uY.Ub=y,w!==void 0?w.g$=y:uY.producers=y,L&& pFI(h,y))}}}return h.value} var h=Object.create(Bvo);h.value=m;V!==void 0&&(h.Fp=V);O[lkU]=h;return[O,function(w){return QI0(h,w)}, function(w){if(!FM3())throw Error();QI0(h,w(h.value))}]}; QI0=function(m,V){if(!FM3())throw Error();m.Fp(m.value,V)||(m.value=V,m.version++,P1p++,sI5(m))}; F0=function(m,V){V=V===void 0?"":V;var O={};m=vem(m,O.equals);O=O.debugName;var h;V=O&&V?O+"__"+V:(h=O!=null?O:V)!=null?h:"[signal]";m[0][lkU].debugName=V}; iY=function(m){g.dw.call(this);var V=this;this.K=this.L=0;this.M2=m!=null?m:{B1:function(w,y){return setTimeout(w,y)}, gI:function(w){clearTimeout(w)}}; var O,h;this.Z=(h=(O=window.navigator)==null?void 0:O.onLine)!=null?h:!0;this.D=function(){return g.u(function(w){return g.I(w,aw(V),0)})}; window.addEventListener("offline",this.D);window.addEventListener("online",this.D);this.K||this.AY()}; mQ0=function(){var m=g.GV;iY.instance||(iY.instance=new iY(m));return iY.instance}; aw=function(m,V){return m.T?m.T:m.T=new Promise(function(O){var h,w,y,L;return g.u(function(C){switch(C.Z){case 1:return h=window.AbortController?new window.AbortController:void 0,y=(w=h)==null?void 0:w.signal,L=!1,g.JG(C,2,3),h&&(m.L=m.M2.B1(function(){h.abort()},V||2E4)),g.I(C,fetch("/generate_204",{method:"HEAD", signal:y}),5);case 5:L=!0;case 3:g.MA(C);m.T=void 0;m.L&&(m.M2.gI(m.L),m.L=0);L!==m.Z&&(m.Z=L,m.Z?m.dispatchEvent("networkstatus-online"):m.dispatchEvent("networkstatus-offline"));O(L);g.f5(C,0);break;case 2:g.qA(C),L=!1,C.Te(3)}})})}; V_U=function(m){this.Sz=Ev(m)}; pZ=function(){this.data=[];this.Z=-1}; Ob1=function(m){m.Z===-1&&(m.Z=m.data.reduce(function(V,O,h){return V+(O?Math.pow(2,h):0)},0)); return m.Z}; BA=function(m){m.setAttribute("role","link")}; Qx=function(m,V){Array.isArray(V)&&(V=V.join(" "));V===""||V==void 0?(lY||(V={},lY=(V.atomic=!1,V.autocomplete="none",V.dropeffect="none",V.haspopup=!1,V.live="off",V.multiline=!1,V.multiselectable=!1,V.orientation="vertical",V.readonly=!1,V.relevant="additions text",V.required=!1,V.sort="none",V.busy=!1,V.disabled=!1,V.hidden=!1,V.invalid="false",V)),V=lY,"label"in V?m.setAttribute("aria-label",V.label):m.removeAttribute("aria-label")):m.setAttribute("aria-label",V)}; vA=function(m){m=m.getAttribute("aria-label");return m==null||m==void 0?"":String(m)}; g.PA=function(m,V,O){g.Z.call(this);this.Z=null;this.T=!1;this.N=m;this.K=O;this.L=V||window;this.D=(0,g.IA)(this.Ri,this)}; htI=function(m){m=m.L;return m.requestAnimationFrame||m.webkitRequestAnimationFrame||m.mozRequestAnimationFrame||m.oRequestAnimationFrame||m.msRequestAnimationFrame||null}; w6o=function(m){m=m.L;return m.cancelAnimationFrame||m.cancelRequestAnimationFrame||m.webkitCancelRequestAnimationFrame||m.mozCancelRequestAnimationFrame||m.oCancelRequestAnimationFrame||m.msCancelRequestAnimationFrame||null}; g.mq=function(m,V,O){g.Z.call(this);this.Z=m;this.QD=V||0;this.L=O;this.D=(0,g.IA)(this.B$,this)}; g.Vn=function(m,V){m.isActive()||m.start(V)}; g.OM=function(m){m.stop();m.B$()}; g.hY=function(m){m.isActive()&&g.OM(m)}; g.wO=function(m,V,O){g.Z.call(this);this.T=O!=null?m.bind(O):m;this.QD=V;this.D=null;this.Z=!1;this.L=0;this.b2=null}; yn=function(m){m.b2=g.z0(function(){m.b2=null;m.Z&&!m.L&&(m.Z=!1,yn(m))},m.QD); var V=m.D;m.D=null;m.T.apply(null,V)}; g.jF=function(m,V){this.Z=m[g.WH.Symbol.iterator]();this.L=V}; yH7=function(m){return typeof m.className=="string"?m.className:m.getAttribute&&m.getAttribute("class")||""}; LY=function(m){return m.classList?m.classList:yH7(m).match(/\S+/g)||[]}; g.JY=function(m,V){typeof m.className=="string"?m.className=V:m.setAttribute&&m.setAttribute("class",V)}; g.CY=function(m,V){return m.classList?m.classList.contains(V):g.vH(LY(m),V)}; g.EM=function(m,V){if(m.classList)m.classList.add(V);else if(!g.CY(m,V)){var O=yH7(m);g.JY(m,O+(O.length>0?" "+V:V))}}; g.qa=function(m,V){if(m.classList)Array.prototype.forEach.call(V,function(w){g.EM(m,w)}); else{var O={};Array.prototype.forEach.call(LY(m),function(w){O[w]=!0}); Array.prototype.forEach.call(V,function(w){O[w]=!0}); V="";for(var h in O)V+=V.length>0?" "+h:h;g.JY(m,V)}}; g.Ma=function(m,V){m.classList?m.classList.remove(V):g.CY(m,V)&&g.JY(m,Array.prototype.filter.call(LY(m),function(O){return O!=V}).join(" "))}; g.fY=function(m,V){m.classList?Array.prototype.forEach.call(V,function(O){g.Ma(m,O)}):g.JY(m,Array.prototype.filter.call(LY(m),function(O){return!g.vH(V,O)}).join(" "))}; g.xN=function(m,V,O){O?g.EM(m,V):g.Ma(m,V)}; jh5=function(m,V){var O=!g.CY(m,V);g.xN(m,V,O)}; g.RM=function(){g.dw.call(this);this.Z=0;this.endTime=this.startTime=null}; Lo0=function(m,V){Array.isArray(V)||(V=[V]);V=V.map(function(O){return typeof O==="string"?O:O.property+" "+O.duration+"s "+O.timing+" "+O.delay+"s"}); g.wb(m,"transition",V.join(","))}; oM=function(m,V,O,h,w){g.RM.call(this);this.L=m;this.K=V;this.N=O;this.T=h;this.J=Array.isArray(w)?w:[w]}; JH7=function(m,V,O,h){return new oM(m,V,{opacity:O},{opacity:h},{property:"opacity",duration:V,timing:"ease-in",delay:0})}; ErI=function(m){m=V1(m);if(m=="")return null;var V=String(m.slice(0,4)).toLowerCase();if(("url("1||m&&m.split(")"),null;if(m.indexOf("(")>0){if(/"|'/.test(m))return null;V=/([\-\w]+)\(/g;for(var O;O=V.exec(m);)if(!(O[1].toLowerCase()in C8l))return null}return m}; gO=function(m,V){m=g.WH[m];return m&&m.prototype?(V=Object.getOwnPropertyDescriptor(m.prototype,V))&&V.get||null:null}; qwo=function(m){var V=g.WH.CSSStyleDeclaration;return V&&V.prototype&&V.prototype[m]||null}; M_3=function(m,V,O,h){if(m)return m.apply(V,h);if(g.AY&&document.documentMode<10){if(!V[O].call)throw Error("IE Clobbering detected");}else if(typeof V[O]!="function")throw Error("Clobbering detected");return V[O].apply(V,h)}; grC=function(m){if(!m)return"";var V=document.createElement("div").style;fel(m).forEach(function(O){var h=g.Xm&&O in xQ3?O:O.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Qg(h,"--")||Qg(h,"var")||(O=M_3(Rta,m,m.getPropertyValue?"getPropertyValue":"getAttribute",[O])||"",O=ErI(O),O!=null&&M_3(or7,V,V.setProperty?"setProperty":"setAttribute",[h,O]))}); return V.cssText||""}; fel=function(m){g.cH(m)?m=g.j5(m):(m=g.Tx(m),g.Om(m,"cssText"));return m}; g.dO=function(m){var V,O=V=0,h=!1;m=m.split(AH0);for(var w=0;w.4?-1:1;return(V==0?null:V)==-1?"rtl":"ltr"}; g.XQ=function(m){if(m instanceof tY||m instanceof KY||m instanceof WD)return m;if(typeof m.next=="function")return new tY(function(){return m}); if(typeof m[Symbol.iterator]=="function")return new tY(function(){return m[Symbol.iterator]()}); if(typeof m.bC=="function")return new tY(function(){return m.bC()}); throw Error("Not an iterator or iterable.");}; tY=function(m){this.L=m}; KY=function(m){this.L=m}; WD=function(m){tY.call(this,function(){return m}); this.D=m}; HD=function(m,V,O,h,w,y,L,C){this.Z=m;this.J=V;this.D=O;this.K=h;this.T=w;this.N=y;this.L=L;this.V=C}; TO=function(m,V){if(V==0)return m.Z;if(V==1)return m.L;var O=w4(m.Z,m.D,V),h=w4(m.D,m.T,V);m=w4(m.T,m.L,V);O=w4(O,h,V);h=w4(h,m,V);return w4(O,h,V)}; KoG=function(m,V){if(V==0)return m.J;if(V==1)return m.V;var O=w4(m.J,m.K,V),h=w4(m.K,m.N,V);m=w4(m.N,m.V,V);O=w4(O,h,V);h=w4(h,m,V);return w4(O,h,V)}; Woa=function(m,V){var O=(V-m.Z)/(m.L-m.Z);if(O<=0)return 0;if(O>=1)return 1;for(var h=0,w=1,y=0,L=0;L<8;L++){y=TO(m,O);var C=(TO(m,O+1E-6)-y)/1E-6;if(Math.abs(y-V)<1E-6)return O;if(Math.abs(C)<1E-6)break;else y1E-6&&L<8;L++)y=0}; g.rO=function(m){g.Z.call(this);this.N=1;this.D=[];this.T=0;this.Z=[];this.L={};this.J=!!m}; Hb0=function(m,V,O){g.rw(function(){m.apply(V,O)})}; g.cD=function(m){this.MH=m}; DD=function(m){this.MH=m}; TD1=function(m){this.data=m}; $Qp=function(m){return m===void 0||m instanceof TD1?m:new TD1(m)}; Na=function(m){this.MH=m}; g.Ywm=function(m){var V=m.creation;m=m.expiration;return!!m&&mg.uz()}; g.bQ=function(m){this.MH=m}; kbo=function(){}; nY=function(){}; SF=function(m){this.Z=m;this.L=null}; IM=function(m){if(m.Z==null)throw Error("Storage mechanism: Storage unavailable");m.isAvailable()||eL(Error("Storage mechanism: Storage unavailable"))}; eF=function(){var m=null;try{m=g.WH.localStorage||null}catch(V){}SF.call(this,m)}; rHI=function(){var m=null;try{m=g.WH.sessionStorage||null}catch(V){}SF.call(this,m)}; uQ=function(m,V){this.L=m;this.Z=V+"::"}; g.zO=function(m){var V=new eF;return V.isAvailable()?m?new uQ(V,m):V:null}; ZD=function(m,V){this.Z=m;this.L=V}; sM=function(m){this.Z=[];if(m)a:{if(m instanceof sM){var V=m.wz();m=m.AN();if(this.Z.length<=0){for(var O=this.Z,h=0;h>>6:(y<65536?C[O++]=224|y>>>12:(C[O++]=240|y>>>18,C[O++]=128|y>>>12&63),C[O++]=128|y>>> 6&63),C[O++]=128|y&63);return C}; pY=function(m){for(var V=m.length;--V>=0;)m[V]=0}; BD=function(m,V,O,h,w){this.Em=m;this.GN=V;this.vV=O;this.jS=h;this.bPS=w;this.TV=m&&m.length}; lQ=function(m,V){this.O$=m;this.xz=0;this.vA=V}; Qn=function(m,V){m.Kr[m.pending++]=V&255;m.Kr[m.pending++]=V>>>8&255}; vD=function(m,V,O){m.kZ>16-O?(m.oK|=V<>16-m.kZ,m.kZ+=O-16):(m.oK|=V<>>=1,O<<=1;while(--V>0);return O>>>1}; nrC=function(m,V,O){var h=Array(16),w=0,y;for(y=1;y<=15;y++)h[y]=w=w+O[y-1]<<1;for(O=0;O<=V;O++)w=m[O*2+1],w!==0&&(m[O*2]=bbX(h[w]++,w))}; Swa=function(m){var V;for(V=0;V<286;V++)m.Ht[V*2]=0;for(V=0;V<30;V++)m.E_[V*2]=0;for(V=0;V<19;V++)m.n_[V*2]=0;m.Ht[512]=1;m.mx=m.nk=0;m.zv=m.matches=0}; Ie3=function(m){m.kZ>8?Qn(m,m.oK):m.kZ>0&&(m.Kr[m.pending++]=m.oK);m.oK=0;m.kZ=0}; etU=function(m,V,O){Ie3(m);Qn(m,O);Qn(m,~O);GO.Q9(m.Kr,m.window,V,O,m.pending);m.pending+=O}; uR7=function(m,V,O,h){var w=V*2,y=O*2;return m[w]>>7)];PD(m,L,O);C=yC[L];C!==0&&(w-=jk[L],vD(m,w,C))}}while(h>1;L>=1;L--)mP(m,O,L);E=y;do L=m.oF[1],m.oF[1]=m.oF[m.tO--],mP(m,O,1),h=m.oF[1],m.oF[--m.Ah]=L,m.oF[--m.Ah]=h,O[E*2]=O[L*2]+O[h*2],m.depth[E]=(m.depth[L]>=m.depth[h]?m.depth[L]:m.depth[h])+1,O[L*2+1]=O[h*2+1]=E,m.oF[1]=E++,mP(m,O,1);while(m.tO>= 2);m.oF[--m.Ah]=m.oF[1];L=V.O$;E=V.xz;h=V.vA.Em;w=V.vA.TV;y=V.vA.GN;var q=V.vA.vV,M=V.vA.bPS,f,x=0;for(f=0;f<=15;f++)m.Lo[f]=0;L[m.oF[m.Ah]*2+1]=0;for(V=m.Ah+1;V<573;V++){var R=m.oF[V];f=L[L[R*2+1]*2+1]+1;f>M&&(f=M,x++);L[R*2+1]=f;if(!(R>E)){m.Lo[f]++;var A=0;R>=q&&(A=y[R-q]);var K=L[R*2];m.mx+=K*(f+A);w&&(m.nk+=K*(h[R*2+1]+A))}}if(x!==0){do{for(f=M-1;m.Lo[f]===0;)f--;m.Lo[f]--;m.Lo[f+1]+=2;m.Lo[M]--;x-=2}while(x>0);for(f=M;f!==0;f--)for(R=m.Lo[f];R!==0;)h=m.oF[--V],h>E||(L[h*2+1]!==f&&(m.mx+=(f- L[h*2+1])*L[h*2],L[h*2+1]=f),R--)}nrC(O,C,m.Lo)}; Zba=function(m,V,O){var h,w=-1,y=V[1],L=0,C=7,E=4;y===0&&(C=138,E=3);V[(O+1)*2+1]=65535;for(h=0;h<=O;h++){var q=y;y=V[(h+1)*2+1];++L>>=1)if(V&1&&m.Ht[O*2]!==0)return 0;if(m.Ht[18]!==0||m.Ht[20]!==0||m.Ht[26]!==0)return 1;for(O=32;O<256;O++)if(m.Ht[O*2]!==0)return 1;return 0}; Jx=function(m,V,O){m.Kr[m.w9+m.zv*2]=V>>>8&255;m.Kr[m.w9+m.zv*2+1]=V&255;m.Kr[m.a$+m.zv]=O&255;m.zv++;V===0?m.Ht[O*2]++:(m.matches++,V--,m.Ht[(VC[O]+256+1)*2]++,m.E_[(V<256?wS[V]:wS[256+(V>>>7)])*2]++);return m.zv===m.Mc-1}; En=function(m,V){m.msg=Ce[V];return V}; q7=function(m){for(var V=m.length;--V>=0;)m[V]=0}; M7=function(m){var V=m.state,O=V.pending;O>m.p6&&(O=m.p6);O!==0&&(GO.Q9(m.output,V.Kr,V.ya,O,m.lM),m.lM+=O,V.ya+=O,m.Iu+=O,m.p6-=O,V.pending-=O,V.pending===0&&(V.ya=0))}; R8=function(m,V){var O=m.RI>=0?m.RI:-1,h=m.zp-m.RI,w=0;if(m.level>0){m.NC.Hi===2&&(m.NC.Hi=Fop(m));Le(m,m.WI);Le(m,m.Go);Zba(m,m.Ht,m.WI.xz);Zba(m,m.E_,m.Go.xz);Le(m,m.C9);for(w=18;w>=3&&m.n_[aea[w]*2+1]===0;w--);m.mx+=3*(w+1)+5+5+4;var y=m.mx+3+7>>>3;var L=m.nk+3+7>>>3;L<=y&&(y=L)}else y=L=h+5;if(h+4<=y&&O!==-1)vD(m,V?1:0,3),etU(m,O,h);else if(m.strategy===4||L===y)vD(m,2+(V?1:0),3),ztp(m,fe,xF);else{vD(m,4+(V?1:0),3);O=m.WI.xz+1;h=m.Go.xz+1;w+=1;vD(m,O-257,5);vD(m,h-1,5);vD(m,w-4,4);for(y=0;y>>8&255;m.Kr[m.pending++]=V&255}; ibG=function(m,V){var O=m.Ep,h=m.zp,w=m.yG,y=m.jF,L=m.zp>m.qn-262?m.zp-(m.qn-262):0,C=m.window,E=m.tJ,q=m.KX,M=m.zp+258,f=C[h+w-1],x=C[h+w];m.yG>=m.xY&&(O>>=2);y>m.jU&&(y=m.jU);do{var R=V;if(C[R+w]===x&&C[R+w-1]===f&&C[R]===C[h]&&C[++R]===C[h+1]){h+=2;for(R++;C[++h]===C[++R]&&C[++h]===C[++R]&&C[++h]===C[++R]&&C[++h]===C[++R]&&C[++h]===C[++R]&&C[++h]===C[++R]&&C[++h]===C[++R]&&C[++h]===C[++R]&&hw){m.Ca=V;w=R;if(R>=y)break;f=C[h+w-1];x=C[h+w]}}}while((V=q[V&E])>L&&--O!== 0);return w<=m.jU?w:m.jU}; dS=function(m){var V=m.qn,O;do{var h=m.rZ-m.jU-m.zp;if(m.zp>=V+(V-262)){GO.Q9(m.window,m.window,V,V,0);m.Ca-=V;m.zp-=V;m.RI-=V;var w=O=m.oC;do{var y=m.head[--w];m.head[w]=y>=V?y-V:0}while(--O);w=O=V;do y=m.KX[--w],m.KX[w]=y>=V?y-V:0;while(--O);h+=V}if(m.NC.Mn===0)break;w=m.NC;O=m.window;y=m.zp+m.jU;var L=w.Mn;L>h&&(L=h);L===0?O=0:(w.Mn-=L,GO.Q9(O,w.input,w.v9,L,y),w.state.wrap===1?w.G0=Ax(w.G0,O,L,y):w.state.wrap===2&&(w.G0=Un(w.G0,O,L,y)),w.v9+=L,w.g8+=L,O=L);m.jU+=O;if(m.jU+m.Xs>=3)for(h=m.zp-m.Xs, m.a8=m.window[h],m.a8=(m.a8<=3&&(m.a8=(m.a8<=3)if(O=Jx(m,m.zp-m.Ca,m.u6-3),m.jU-=m.u6,m.u6<=m.Qk&&m.jU>=3){m.u6--;do m.zp++,m.a8=(m.a8<=3&&(m.a8=(m.a8<4096)&&(m.u6=2));if(m.yG>=3&&m.u6<=m.yG){h=m.zp+m.jU-3;O=Jx(m,m.zp-1-m.Iv,m.yG-3);m.jU-=m.yG-1;m.yG-=2;do++m.zp<=h&&(m.a8=(m.a8<=3&&m.zp>0&&(h=m.zp-1,O=y[h],O===y[++h]&&O===y[++h]&&O===y[++h])){for(w=m.zp+258;O===y[++h]&&O===y[++h]&&O===y[++h]&&O===y[++h]&&O===y[++h]&&O===y[++h]&&O===y[++h]&&O===y[++h]&&hm.jU&&(m.u6=m.jU)}m.u6>=3?(O=Jx(m,1,m.u6-3),m.jU-=m.u6,m.zp+=m.u6,m.u6=0):(O=Jx(m,0,m.window[m.zp]),m.jU--,m.zp++);if(O&&(R8(m,!1),m.NC.p6===0))return 1}m.Xs=0;return V=== 4?(R8(m,!0),m.NC.p6===0?3:4):m.zv&&(R8(m,!1),m.NC.p6===0)?1:2}; p65=function(m,V){for(var O;;){if(m.jU===0&&(dS(m),m.jU===0)){if(V===0)return 1;break}m.u6=0;O=Jx(m,0,m.window[m.zp]);m.jU--;m.zp++;if(O&&(R8(m,!1),m.NC.p6===0))return 1}m.Xs=0;return V===4?(R8(m,!0),m.NC.p6===0?3:4):m.zv&&(R8(m,!1),m.NC.p6===0)?1:2}; $F=function(m,V,O,h,w){this.iAH=m;this.rjt=V;this.cqH=O;this.srN=h;this.func=w}; BD$=function(){this.NC=null;this.status=0;this.Kr=null;this.wrap=this.pending=this.ya=this.Gv=0;this.z0=null;this.HU=0;this.method=8;this.e4=-1;this.tJ=this.PF=this.qn=0;this.window=null;this.rZ=0;this.head=this.KX=null;this.jF=this.xY=this.strategy=this.level=this.Qk=this.Ep=this.yG=this.jU=this.Ca=this.zp=this.d$=this.Iv=this.u6=this.RI=this.Pm=this.kd=this.n7=this.oC=this.a8=0;this.Ht=new GO.CX(1146);this.E_=new GO.CX(122);this.n_=new GO.CX(78);q7(this.Ht);q7(this.E_);q7(this.n_);this.C9=this.Go= this.WI=null;this.Lo=new GO.CX(16);this.oF=new GO.CX(573);q7(this.oF);this.Ah=this.tO=0;this.depth=new GO.CX(573);q7(this.depth);this.kZ=this.oK=this.Xs=this.matches=this.nk=this.mx=this.w9=this.zv=this.Mc=this.a$=0}; le0=function(m,V){if(!m||!m.state||V>5||V<0)return m?En(m,-2):-2;var O=m.state;if(!m.output||!m.input&&m.Mn!==0||O.status===666&&V!==4)return En(m,m.p6===0?-5:-2);O.NC=m;var h=O.e4;O.e4=V;if(O.status===42)if(O.wrap===2)m.G0=0,o8(O,31),o8(O,139),o8(O,8),O.z0?(o8(O,(O.z0.text?1:0)+(O.z0.ul?2:0)+(O.z0.extra?4:0)+(O.z0.name?8:0)+(O.z0.comment?16:0)),o8(O,O.z0.time&255),o8(O,O.z0.time>>8&255),o8(O,O.z0.time>>16&255),o8(O,O.z0.time>>24&255),o8(O,O.level===9?2:O.strategy>=2||O.level<2?4:0),o8(O,O.z0.os& 255),O.z0.extra&&O.z0.extra.length&&(o8(O,O.z0.extra.length&255),o8(O,O.z0.extra.length>>8&255)),O.z0.ul&&(m.G0=Un(m.G0,O.Kr,O.pending,0)),O.HU=0,O.status=69):(o8(O,0),o8(O,0),o8(O,0),o8(O,0),o8(O,0),o8(O,O.level===9?2:O.strategy>=2||O.level<2?4:0),o8(O,3),O.status=113);else{var w=8+(O.PF-8<<4)<<8;w|=(O.strategy>=2||O.level<2?0:O.level<6?1:O.level===6?2:3)<<6;O.zp!==0&&(w|=32);O.status=113;gS(O,w+(31-w%31));O.zp!==0&&(gS(O,m.G0>>>16),gS(O,m.G0&65535));m.G0=1}if(O.status===69)if(O.z0.extra){for(w= O.pending;O.HU<(O.z0.extra.length&65535)&&(O.pending!==O.Gv||(O.z0.ul&&O.pending>w&&(m.G0=Un(m.G0,O.Kr,O.pending-w,w)),M7(m),w=O.pending,O.pending!==O.Gv));)o8(O,O.z0.extra[O.HU]&255),O.HU++;O.z0.ul&&O.pending>w&&(m.G0=Un(m.G0,O.Kr,O.pending-w,w));O.HU===O.z0.extra.length&&(O.HU=0,O.status=73)}else O.status=73;if(O.status===73)if(O.z0.name){w=O.pending;do{if(O.pending===O.Gv&&(O.z0.ul&&O.pending>w&&(m.G0=Un(m.G0,O.Kr,O.pending-w,w)),M7(m),w=O.pending,O.pending===O.Gv)){var y=1;break}y=O.HUw&&(m.G0=Un(m.G0,O.Kr,O.pending-w,w));y===0&&(O.HU=0,O.status=91)}else O.status=91;if(O.status===91)if(O.z0.comment){w=O.pending;do{if(O.pending===O.Gv&&(O.z0.ul&&O.pending>w&&(m.G0=Un(m.G0,O.Kr,O.pending-w,w)),M7(m),w=O.pending,O.pending===O.Gv)){y=1;break}y=O.HUw&&(m.G0=Un(m.G0,O.Kr,O.pending-w,w));y===0&&(O.status=103)}else O.status= 103;O.status===103&&(O.z0.ul?(O.pending+2>O.Gv&&M7(m),O.pending+2<=O.Gv&&(o8(O,m.G0&255),o8(O,m.G0>>8&255),m.G0=0,O.status=113)):O.status=113);if(O.pending!==0){if(M7(m),m.p6===0)return O.e4=-1,0}else if(m.Mn===0&&(V<<1)-(V>4?9:0)<=(h<<1)-(h>4?9:0)&&V!==4)return En(m,-5);if(O.status===666&&m.Mn!==0)return En(m,-5);if(m.Mn!==0||O.jU!==0||V!==0&&O.status!==666){h=O.strategy===2?p65(O,V):O.strategy===3?GbI(O,V):YF[O.level].func(O,V);if(h===3||h===4)O.status=666;if(h===1||h===3)return m.p6===0&&(O.e4= -1),0;if(h===2&&(V===1?(vD(O,2,3),PD(O,256,fe),O.kZ===16?(Qn(O,O.oK),O.oK=0,O.kZ=0):O.kZ>=8&&(O.Kr[O.pending++]=O.oK&255,O.oK>>=8,O.kZ-=8)):V!==5&&(vD(O,0,3),etU(O,0,0),V===3&&(q7(O.head),O.jU===0&&(O.zp=0,O.RI=0,O.Xs=0))),M7(m),m.p6===0))return O.e4=-1,0}if(V!==4)return 0;if(O.wrap<=0)return 1;O.wrap===2?(o8(O,m.G0&255),o8(O,m.G0>>8&255),o8(O,m.G0>>16&255),o8(O,m.G0>>24&255),o8(O,m.g8&255),o8(O,m.g8>>8&255),o8(O,m.g8>>16&255),o8(O,m.g8>>24&255)):(gS(O,m.G0>>>16),gS(O,m.G0&65535));M7(m);O.wrap>0&& (O.wrap=-O.wrap);return O.pending!==0?0:1}; kF=function(m){if(!(this instanceof kF))return new kF(m);m=this.options=GO.assign({level:-1,method:8,chunkSize:16384,X1:15,x8t:8,strategy:0,to:""},m||{});m.raw&&m.X1>0?m.X1=-m.X1:m.gN0&&m.X1>0&&m.X1<16&&(m.X1+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.NC=new Qh3;this.NC.p6=0;var V=this.NC;var O=m.level,h=m.method,w=m.X1,y=m.x8t,L=m.strategy;if(V){var C=1;O===-1&&(O=6);w<0?(C=0,w=-w):w>15&&(C=2,w-=16);if(y<1||y>9||h!==8||w<8||w>15||O<0||O>9||L<0||L>4)V=En(V,-2);else{w===8&&(w=9); var E=new BD$;V.state=E;E.NC=V;E.wrap=C;E.z0=null;E.PF=w;E.qn=1<>=7;y<30;y++)for(jk[y]=L<<7,w=0;w<1<=q.qn&&(V===0&&(q7(q.head),q.zp=0,q.RI=0,q.Xs=0),O=new GO.yj(q.qn),GO.Q9(O,y,L-q.qn,q.qn,0),y=O,L=q.qn);O=m.Mn;h=m.v9;w=m.input;m.Mn=L;m.v9=0;m.input=y;for(dS(q);q.jU>=3;){y=q.zp;L=q.jU-2;do q.a8=(q.a8<1?V[m[0]]=m[1]:m.length===1&&Object.assign(V,m[0])}; g.Vf=function(m,V){return m in Ph?Ph[m]:V}; Ox=function(m){var V=Ph.EXPERIMENT_FLAGS;return V?V[m]:void 0}; U1m=function(m){h6.forEach(function(V){return V(m)})}; g.yf=function(m){return m&&window.yterr?function(){try{return m.apply(this,arguments)}catch(V){g.wt(V)}}:m}; g.wt=function(m){var V=g.$I("yt.logging.errors.log");V?V(m,"ERROR",void 0,void 0,void 0,void 0,void 0):(V=g.Vf("ERRORS",[]),V.push([m,"ERROR",void 0,void 0,void 0,void 0,void 0]),mT("ERRORS",V));U1m(m)}; j6=function(m,V,O,h,w){var y=g.$I("yt.logging.errors.log");y?y(m,"WARNING",V,O,h,void 0,w):(y=g.Vf("ERRORS",[]),y.push([m,"WARNING",V,O,h,void 0,w]),mT("ERRORS",y))}; LJ=function(m,V){V=m.split(V);for(var O={},h=0,w=V.length;h1?m[1]:m[0])):{}}; qB=function(m,V){return W3X(m,V||{},!0)}; MB=function(m,V){return W3X(m,V||{},!1)}; W3X=function(m,V,O){var h=m.split("#",2);m=h[0];h=h.length>1?"#"+h[1]:"";var w=m.split("?",2);m=w[0];w=Tl(w[1]||"");for(var y in V)if(O||!g.YS(w,y))w[y]=V[y];return g.N_(m,w)+h}; fJ=function(m){if(!V)var V=window.location.href;var O=g.XA(m)[1]||null,h=g.HG(m);O&&h?(m=g.XA(m),V=g.XA(V),m=m[3]==V[3]&&m[1]==V[1]&&m[4]==V[4]):m=h?g.HG(V)===h&&(Number(g.XA(V)[4]||null)||null)===(Number(g.XA(m)[4]||null)||null):!0;return m}; x4=function(m){m||(m=document.location.href);m=g.XA(m)[1]||null;return m!==null&&m==="https"}; Rv=function(m){m=XU0(m);return m===null?!1:m[0]==="com"&&m[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; HtG=function(m){m=XU0(m);return m===null?!1:m[1]==="google"?!0:m[2]==="google"?m[0]==="au"&&m[1]==="com"?!0:m[0]==="uk"&&m[1]==="co"?!0:!1:!1}; XU0=function(m){m=g.HG(m);return m!==null?m.split(".").reverse():null}; d1U=function(m){return m&&m.match(Twm)?m:aj(m)}; A6=function(m){var V=ov;m=m===void 0?gxo():m;var O=Object,h=O.assign,w=gt(V);var y=V.Z;try{var L=y.screenX;var C=y.screenY}catch(c){}try{var E=y.outerWidth;var q=y.outerHeight}catch(c){}try{var M=y.innerWidth;var f=y.innerHeight}catch(c){}try{var x=y.screenLeft;var R=y.screenTop}catch(c){}try{M=y.innerWidth,f=y.innerHeight}catch(c){}try{var A=y.screen.availWidth;var K=y.screen.availTop}catch(c){}y=[x,R,L,C,A,K,E,q,M,f];L=W4G(!1,V.Z.top);C={};var X=X===void 0?g.WH:X;E=new pZ;"SVGElement"in X&&"createElementNS"in X.document&&E.set(0);q=Sm5();q["allow-top-navigation-by-user-activation"]&&E.set(1);q["allow-popups-to-escape-sandbox"]&&E.set(2);X.crypto&&X.crypto.subtle&&E.set(3);"TextDecoder"in X&&"TextEncoder"in X&&E.set(4);X=Ob1(E);V=(C.bc=X,C.bih=L.height,C.biw=L.width,C.brdim=y.join(),C.vis=db(V.L),C.wgl=!!ax.WebGLRenderingContext,C);O=h.call(O,w,V);O.ca_type="image";m&&(O.bid=m);return O}; gt=function(m){var V={};V.dt=$1C;V.flash="0";a:{try{var O=m.Z.top.location.href}catch(q){m=2;break a}m=O?O===m.L.location.href?0:1:2}V=(V.frm=m,V);try{V.u_tz=-(new Date).getTimezoneOffset();try{var h=ax.history.length}catch(q){h=0}V.u_his=h;var w;V.u_h=(w=ax.screen)==null?void 0:w.height;var y;V.u_w=(y=ax.screen)==null?void 0:y.width;var L;V.u_ah=(L=ax.screen)==null?void 0:L.availHeight;var C;V.u_aw=(C=ax.screen)==null?void 0:C.availWidth;var E;V.u_cd=(E=ax.screen)==null?void 0:E.colorDepth}catch(q){}return V}; k0$=function(){if(!Y7m)return null;var m=Y7m();return"open"in m?m:null}; g.dt=function(m){switch(Ux(m)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; Ux=function(m){return m&&"status"in m?m.status:-1}; g.t6=function(m,V){typeof m==="function"&&(m=g.yf(m));return window.setTimeout(m,V)}; g.KJ=function(m,V){typeof m==="function"&&(m=g.yf(m));return window.setInterval(m,V)}; g.W7=function(m){window.clearTimeout(m)}; g.XM=function(m){window.clearInterval(m)}; g.Tm=function(m){m=H7(m);return typeof m==="string"&&m==="false"?!1:!!m}; $4=function(m,V){m=H7(m);return m===void 0&&V!==void 0?V:Number(m||0)}; Y4=function(){return g.Vf("EXPERIMENTS_TOKEN","")}; H7=function(m){return g.Vf("EXPERIMENT_FLAGS",{})[m]}; k4=function(){for(var m=[],V=g.Vf("EXPERIMENTS_FORCED_FLAGS",{}),O=g.D(Object.keys(V)),h=O.next();!h.done;h=O.next())h=h.value,m.push({key:h,value:String(V[h])});O=g.Vf("EXPERIMENT_FLAGS",{});h=g.D(Object.keys(O));for(var w=h.next();!w.done;w=h.next())w=w.value,w.startsWith("force_")&&V[w]===void 0&&m.push({key:w,value:String(O[w])});return m}; rt=function(m,V,O,h,w,y,L,C,E){function q(){(M&&"readyState"in M?M.readyState:0)===4&&V&&g.yf(V)(M)} O=O===void 0?"GET":O;h=h===void 0?"":h;C=C===void 0?!1:C;var M=k0$();if(!M)return null;"onloadend"in M?M.addEventListener("loadend",q,!1):M.onreadystatechange=q;g.Tm("debug_forward_web_query_parameters")&&(m=rPa(m));M.open(O,m,!0);y&&(M.responseType=y);L&&(M.withCredentials=!0);O=O==="POST"&&(window.FormData===void 0||!(h instanceof FormData));if(w=cPl(m,w))for(var f in w)M.setRequestHeader(f,w[f]),"content-type"===f.toLowerCase()&&(O=!1);O&&M.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); E&&"onprogress"in M&&(M.onprogress=function(){E(M.responseText)}); if(C&&"setAttributionReporting"in XMLHttpRequest.prototype){m={eventSourceEligible:!0,triggerEligible:!1};try{M.setAttributionReporting(m)}catch(x){j6(x)}}M.send(h);return M}; cPl=function(m,V){V=V===void 0?{}:V;var O=fJ(m),h=g.Vf("INNERTUBE_CLIENT_NAME"),w=g.Tm("web_ajax_ignore_global_headers_if_set"),y;for(y in D1o){var L=g.Vf(D1o[y]),C=y==="X-Goog-AuthUser"||y==="X-Goog-PageId";y!=="X-Goog-Visitor-Id"||L||(L=g.Vf("VISITOR_DATA"));var E;if(!(E=!L)){if(!(E=O||(g.HG(m)?!1:!0))){E=m;var q;if(q=g.Tm("add_auth_headers_to_remarketing_google_dot_com_ping")&&y==="Authorization"&&(h==="TVHTML5"||h==="TVHTML5_UNPLUGGED"||h==="TVHTML5_SIMPLY")&&HtG(E))E=TU(E)||"",E=E.split("/"), E="/"+(E.length>1?E[1]:""),q=E==="/pagead";E=q?!0:!1}E=!E}E||w&&V[y]!==void 0||h==="TVHTML5_UNPLUGGED"&&C||(V[y]=L)}"X-Goog-EOM-Visitor-Id"in V&&"X-Goog-Visitor-Id"in V&&delete V["X-Goog-Visitor-Id"];if(O||!g.HG(m))V["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(O||!g.HG(m)){try{var M=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(f){}M&&(V["X-YouTube-Time-Zone"]=M)}document.location.hostname.endsWith("youtubeeducation.com")||!O&&g.HG(m)||(V["X-YouTube-Ad-Signals"]= J6(A6()));return V}; DH=function(m,V){V.method="POST";V.postParams||(V.postParams={});return g.c7(m,V)}; nxm=function(m,V){if(window.fetch&&V.format!=="XML"){var O={method:V.method||"GET",credentials:"same-origin"};V.headers&&(O.headers=V.headers);V.priority&&(O.priority=V.priority);m=Nw$(m,V);var h=bt0(m,V);h&&(O.body=h);V.withCredentials&&(O.credentials="include");var w=V.context||g.WH,y=!1,L;fetch(m,O).then(function(C){if(!y){y=!0;L&&g.W7(L);var E=C.ok,q=function(M){M=M||{};E?V.onSuccess&&V.onSuccess.call(w,M,C):V.onError&&V.onError.call(w,M,C);V.onFinish&&V.onFinish.call(w,M,C)}; (V.format||"JSON")==="JSON"&&(E||C.status>=400&&C.status<500)?C.json().then(q,function(){q(null)}):q(null)}}).catch(function(){V.onError&&V.onError.call(w,{},{})}); m=V.timeout||0;V.onFetchTimeout&&m>0&&(L=g.t6(function(){y||(y=!0,g.W7(L),V.onFetchTimeout.call(V.context||g.WH))},m))}else g.c7(m,V)}; g.c7=function(m,V){var O=V.format||"JSON";m=Nw$(m,V);var h=bt0(m,V),w=!1,y=S7$(m,function(E){if(!w){w=!0;C&&g.W7(C);var q=g.dt(E),M=null,f=400<=E.status&&E.status<500,x=500<=E.status&&E.status<600;if(q||f||x)M=IAa(m,O,E,V.convertToSafeHtml);q&&(q=ej3(O,E,M));M=M||{};f=V.context||g.WH;q?V.onSuccess&&V.onSuccess.call(f,E,M):V.onError&&V.onError.call(f,E,M);V.onFinish&&V.onFinish.call(f,E,M)}},V.method,h,V.headers,V.responseType,V.withCredentials,!1,V.onProgress); h=V.timeout||0;if(V.onTimeout&&h>0){var L=V.onTimeout;var C=g.t6(function(){w||(w=!0,y.abort(),g.W7(C),L.call(V.context||g.WH,y))},h)}return y}; Nw$=function(m,V){V.includeDomain&&(m=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+m);var O=g.Vf("XSRF_FIELD_NAME");if(V=V.urlParams)V[O]&&delete V[O],m=qB(m,V);return m}; bt0=function(m,V){var O=g.Vf("XSRF_FIELD_NAME"),h=g.Vf("XSRF_TOKEN"),w=V.postBody||"",y=V.postParams,L=g.Vf("XSRF_FIELD_NAME"),C;V.headers&&(C=V.headers["Content-Type"]);V.excludeXsrf||g.HG(m)&&!V.withCredentials&&g.HG(m)!==document.location.hostname||V.method!=="POST"||C&&C!=="application/x-www-form-urlencoded"||V.postParams&&V.postParams[L]||(y||(y={}),y[O]=h);(g.Tm("ajax_parse_query_data_only_when_filled")&&y&&Object.keys(y).length>0||y)&&typeof w==="string"&&(w=Tl(w),g.S5(w,y),w=V.postBodyFormat&& V.postBodyFormat==="JSON"?JSON.stringify(w):g.DV(w));y=w||y&&!g.c8(y);!uJ7&&y&&V.method!=="POST"&&(uJ7=!0,g.wt(Error("AJAX request with postData should use POST")));return w}; IAa=function(m,V,O,h){var w=null;switch(V){case "JSON":try{var y=O.responseText}catch(L){throw h=Error("Error reading responseText"),h.params=m,j6(h),L;}m=O.getResponseHeader("Content-Type")||"";y&&m.indexOf("json")>=0&&(y.substring(0,5)===")]}'\n"&&(y=y.substring(5)),w=JSON.parse(y));break;case "XML":if(m=(m=O.responseXML)?zj1(m):null)w={},g.An(m.getElementsByTagName("*"),function(L){w[L.tagName]=ZtX(L)})}h&&sb7(w); return w}; sb7=function(m){if(g.NA(m))for(var V in m)V==="html_content"||qJU(V,"_html")?m[V]=rX(m[V]):sb7(m[V])}; ej3=function(m,V,O){if(V&&V.status===204)return!0;switch(m){case "JSON":return!!O;case "XML":return Number(O&&O.return_code)===0;case "RAW":return!0;default:return!!O}}; zj1=function(m){return m?(m=("responseXML"in m?m.responseXML:m).getElementsByTagName("root"))&&m.length>0?m[0]:null:null}; ZtX=function(m){var V="";g.An(m.childNodes,function(O){V+=O.nodeValue}); return V}; rPa=function(m){var V=window.location.search,O=g.HG(m);g.Tm("debug_handle_relative_url_for_query_forward_killswitch")||!O&&fJ(m)&&(O=document.location.hostname);var h=TU(m);h=(O=O&&(O.endsWith("youtube.com")||O.endsWith("youtube-nocookie.com")))&&h&&h.startsWith("/api/");if(!O||h)return m;var w=Tl(V),y={};g.An(F3l,function(L){w[L]&&(y[L]=w[L])}); return MB(m,y)}; bB=function(m,V){var O=g.bX(V),h;return(new g.DA(function(w,y){O.onSuccess=function(L){g.dt(L)?w(new aA3(L)):y(new NB("Request failed, status="+Ux(L),"net.badstatus",L))}; O.onError=function(L){y(new NB("Unknown request error","net.unknown",L))}; O.onTimeout=function(L){y(new NB("Request timed out","net.timeout",L))}; h=g.c7(m,O)})).dI(function(w){if(w instanceof eX){var y; (y=h)==null||y.abort()}return nt(w)})}; g.nJ=function(m,V,O,h,w,y){function L(E,q,M){return E.dI(function(f){if(q<=0||Ux(f.xhr)===403)return nt(new NB("Request retried too many times","net.retryexhausted",f.xhr,f));var x=Math.pow(2,O-q+1)*M,R=w>0?Math.min(w,x):x;return C(M).then(function(){y&&y(f,q-1);return L(bB(m,V),q-1,R)})})} function C(E){return new g.DA(function(q){setTimeout(q,E)})} w=w===void 0?-1:w;return L(bB(m,V),O-1,h)}; NB=function(m,V,O){aA.call(this,m+", errorCode="+V);this.errorCode=V;this.xhr=O;this.name="PromiseAjaxError"}; aA3=function(m){this.xhr=m}; S6=function(m){this.Z=m===void 0?null:m;this.D=0;this.L=null}; Iv=function(m){var V=new S6;m=m===void 0?null:m;V.D=2;V.L=m===void 0?null:m;return V}; e6=function(m){var V=new S6;m=m===void 0?null:m;V.D=1;V.L=m===void 0?null:m;return V}; g.ZH=function(m,V,O,h,w){uB||zm.set(""+m,V,{m3:O,path:"/",domain:h===void 0?"youtube.com":h,secure:w===void 0?!1:w})}; g.sx=function(m,V){if(!uB)return zm.get(""+m,V)}; g.FM=function(m,V,O){uB||zm.remove(""+m,V===void 0?"/":V,O===void 0?"youtube.com":O)}; itp=function(){if(!zm.isEnabled())return!1;if(!zm.isEmpty())return!0;zm.set("TESTCOOKIESENABLED","1",{m3:60});if(zm.get("TESTCOOKIESENABLED")!=="1")return!1;zm.remove("TESTCOOKIESENABLED");return!0}; g.d=function(m,V){if(m)return m[V.name]}; av=function(m){var V=g.Vf("INNERTUBE_HOST_OVERRIDE");V&&(m=String(V)+String($T(m)));return m}; G0$=function(m){var V={};g.Tm("json_condensed_response")&&(V.prettyPrint="false");return m=MB(m,V)}; iB=function(m,V){var O=O===void 0?{}:O;m={method:V===void 0?"POST":V,mode:fJ(m)?"same-origin":"cors",credentials:fJ(m)?"same-origin":"include"};V={};for(var h=g.D(Object.keys(O)),w=h.next();!w.done;w=h.next())w=w.value,O[w]&&(V[w]=O[w]);Object.keys(V).length>0&&(m.headers=V);return m}; Gm=function(){var m=/Chrome\/(\d+)/.exec(g.wX());return m?parseFloat(m[1]):NaN}; pJ=function(){var m=/\sCobalt\/(\S+)\s/.exec(g.wX());if(!m)return NaN;var V=[];m=g.D(m[1].split("."));for(var O=m.next();!O.done;O=m.next())O=parseInt(O.value,10),O>=0&&V.push(O);return parseFloat(V.join("."))}; lB=function(){return g.B7("android")&&g.B7("chrome")&&!(g.B7("trident/")||g.B7("edge/"))&&!g.B7("cobalt")}; g.Qf=function(){return g.B7("cobalt")}; v7=function(){return g.B7("cobalt")&&g.B7("appletv")}; P7=function(){return g.B7("(ps3; leanback shell)")||g.B7("ps3")&&g.Qf()}; pU$=function(){return g.B7("(ps4; leanback shell)")||g.B7("ps4")&&g.Qf()}; g.BwC=function(){return g.Qf()&&(g.B7("ps4 vr")||g.B7("ps4 pro vr"))}; mB=function(){var m=/WebKit\/([0-9]+)/.exec(g.wX());return!!(m&&parseInt(m[1],10)>=600)}; VJ=function(){var m=/WebKit\/([0-9]+)/.exec(g.wX());return!!(m&&parseInt(m[1],10)>=602)}; lAo=function(){return g.B7("iemobile")||g.B7("windows phone")&&g.B7("edge")}; w3=function(){return(Ob||h8)&&g.B7("applewebkit")&&!g.B7("version")&&(!g.B7("safari")||g.B7("gsa/"))}; jU=function(){return g.yJ&&g.B7("version/")}; Lp=function(){return g.B7("smart-tv")&&g.B7("samsung")}; g.B7=function(m){var V=g.wX();return V?V.toLowerCase().indexOf(m)>=0:!1}; J8=function(){return Hx7()||w3()||jU()?!0:g.Vf("EOM_VISITOR_DATA")?!1:!0}; Cp=function(m,V){return V===void 0||V===null?m:V==="1"||V===!0||V===1||V==="True"?!0:!1}; Eb=function(m,V,O){for(var h in O)if(O[h]==V)return O[h];return m}; q2=function(m,V){return V===void 0||V===null?m:Number(V)}; M2=function(m,V){return V===void 0||V===null?m:V.toString()}; fp=function(m,V){if(V){if(m==="fullwidth")return Infinity;if(m==="fullheight")return 0}return m&&(V=m.match(Qb3))&&(m=Number(V[2]),V=Number(V[1]),!isNaN(m)&&!isNaN(V)&&m>0)?V/m:NaN}; xk=function(m){var V=m.docid||m.video_id||m.videoId||m.id;if(V)return V;V=m.raw_player_response;V||(m=m.player_response)&&(V=JSON.parse(m));return V&&V.videoDetails&&V.videoDetails.videoId||null}; vxp=function(m){return R$(m,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.o$=function(m){return m==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||m==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; R$=function(m,V){V=(V===void 0?0:V)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(V="EMBEDDED_PLAYER_MODE_PFL");var O=m.raw_embedded_player_response;if(!O&&(m=m.embedded_player_response))try{O=JSON.parse(m)}catch(h){return V}return O?Eb(V,O.embeddedPlayerMode,Pgp):V}; A8=function(m){aA.call(this,m.message||m.description||m.name);this.isMissing=m instanceof g3;this.isTimeout=m instanceof NB&&m.errorCode=="net.timeout";this.isCanceled=m instanceof eX}; g3=function(){aA.call(this,"Biscotti ID is missing from server")}; mOo=function(){if(g.Tm("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!J8())return Error("User has not consented - not fetching biscotti id.");var m=g.Vf("PLAYER_VARS",{});if(g.DE(m,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(vxp(m))return Error("Biscotti id fetching has been disabled for pfl.")}; w3m=function(){var m=mOo();if(m!==void 0)return nt(m);Ub||(Ub=bB("//googleads.g.doubleclick.net/pagead/id",Vba).then(OC5).dI(function(V){return hG3(2,V)})); return Ub}; OC5=function(m){m=m.xhr.responseText;if(!Qg(m,")]}'"))throw new g3;m=JSON.parse(m.substr(4));if((m.type||1)>1)throw new g3;m=m.id;APU(m);Ub=e6(m);yDo(18E5,2);return m}; hG3=function(m,V){V=new A8(V);APU("");Ub=Iv(V);m>0&&yDo(12E4,m-1);throw V;}; yDo=function(m,V){g.t6(function(){bB("//googleads.g.doubleclick.net/pagead/id",Vba).then(OC5,function(O){return hG3(V,O)}).dI(g.G3)},m)}; j4X=function(){try{var m=g.$I("yt.ads.biscotti.getId_");return m?m():w3m()}catch(V){return nt(V)}}; JDG=function(m){m&&(m.dataset?m.dataset[Lzm()]="true":TcI(m))}; CLm=function(m){return m?m.dataset?m.dataset[Lzm()]:m.getAttribute("data-loaded"):null}; Lzm=function(){return EsX.loaded||(EsX.loaded="loaded".replace(/\-([a-z])/g,function(m,V){return V.toUpperCase()}))}; qem=function(){var m=document;if("visibilityState"in m)return m.visibilityState;var V=d3+"VisibilityState";if(V in m)return m[V]}; t8=function(m,V){var O;wj(m,function(h){O=V[h];return!!O}); return O}; Kp=function(m){if(m.requestFullscreen)m=m.requestFullscreen(void 0);else if(m.webkitRequestFullscreen)m=m.webkitRequestFullscreen();else if(m.mozRequestFullScreen)m=m.mozRequestFullScreen();else if(m.msRequestFullscreen)m=m.msRequestFullscreen();else if(m.webkitEnterFullscreen)m=m.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return m instanceof Promise?m:Promise.resolve()}; HZ=function(m){var V;g.WZ()?XS()==m&&(V=document):V=m;return V&&(m=t8(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],V))?(V=m.call(V),V instanceof Promise?V:Promise.resolve()):Promise.resolve()}; MbG=function(m){return g.p5(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(V){return"on"+V.toLowerCase()in m})}; fn$=function(){var m=document;return g.p5(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(V){return"on"+V.toLowerCase()in m})}; g.WZ=function(){return!!t8(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; XS=function(m){m=m===void 0?!1:m;var V=t8(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(m)for(;V&&V.shadowRoot;)V=V.shadowRoot.fullscreenElement;return V?V:null}; Tv=function(m){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(m=m||window.event){this.event=m;for(var V in m)V in xOI||(this[V]=m[V]);this.scale=m.scale;this.rotation=m.rotation;var O=m.target||m.srcElement;O&&O.nodeType==3&&(O=O.parentNode);this.target=O;var h=m.relatedTarget; if(h)try{h=h.nodeName?h:null}catch(w){h=null}else this.type=="mouseover"?h=m.fromElement:this.type=="mouseout"&&(h=m.toElement);this.relatedTarget=h;this.clientX=m.clientX!=void 0?m.clientX:m.pageX;this.clientY=m.clientY!=void 0?m.clientY:m.pageY;this.keyCode=m.keyCode?m.keyCode:m.which;this.charCode=m.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=m.altKey;this.ctrlKey=m.ctrlKey;this.shiftKey=m.shiftKey;this.metaKey=m.metaKey;this.Z=m.pageX;this.L=m.pageY}}catch(w){}}; RGG=function(m){if(document.body&&document.documentElement){var V=document.body.scrollTop+document.documentElement.scrollTop;m.Z=m.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);m.L=m.clientY+V}}; osI=function(m,V,O,h){h=h===void 0?{}:h;m.addEventListener&&(V!="mouseenter"||"onmouseenter"in document?V!="mouseleave"||"onmouseenter"in document?V=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(V="MozMousePixelScroll"):V="mouseout":V="mouseover");return rZ($k,function(w){var y=typeof w[4]==="boolean"&&w[4]==!!h,L=g.NA(w[4])&&g.NA(h)&&g.N5(w[4],h);return!!w.length&&w[0]==m&&w[1]==V&&w[2]==O&&(y||L)})}; g.Yk=function(m,V,O,h){h=h===void 0?{}:h;if(!m||!m.addEventListener&&!m.attachEvent)return"";var w=osI(m,V,O,h);if(w)return w;w=++gs0.count+"";var y=!(V!="mouseenter"&&V!="mouseleave"||!m.addEventListener||"onmouseenter"in document);var L=y?function(C){C=new Tv(C);if(!en(C.relatedTarget,function(E){return E==m},!0))return C.currentTarget=m,C.type=V,O.call(m,C)}:function(C){C=new Tv(C); C.currentTarget=m;return O.call(m,C)}; L=g.yf(L);m.addEventListener?(V=="mouseenter"&&y?V="mouseover":V=="mouseleave"&&y?V="mouseout":V=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(V="MozMousePixelScroll"),ADC()||typeof h==="boolean"?m.addEventListener(V,L,h):m.addEventListener(V,L,!!h.capture)):m.attachEvent("on"+V,L);$k[w]=[m,V,O,L,h];return w}; dO$=function(m){return UOI(m,function(V){return g.CY(V,"ytp-ad-has-logging-urls")})}; UOI=function(m,V){var O=document.body||document;return g.Yk(O,"click",function(h){var w=en(h.target,function(y){return y===O||V(y)},!0); w&&w!==O&&!w.disabled&&(h.currentTarget=w,m.call(w,h))})}; g.kk=function(m){m&&(typeof m=="string"&&(m=[m]),g.An(m,function(V){if(V in $k){var O=$k[V],h=O[0],w=O[1],y=O[3];O=O[4];h.removeEventListener?ADC()||typeof O==="boolean"?h.removeEventListener(w,y,O):h.removeEventListener(w,y,!!O.capture):h.detachEvent&&h.detachEvent("on"+w,y);delete $k[V]}}))}; r3=function(m){for(var V in $k)$k[V][0]==m&&g.kk(V)}; cZ=function(m){m=m||window.event;var V;m.composedPath&&typeof m.composedPath==="function"?V=m.composedPath():V=m.path;V&&V.length?m=V[0]:(m=m||window.event,m=m.target||m.srcElement,m.nodeType==3&&(m=m.parentNode));return m}; DN=function(m){this.J=m;this.Z=null;this.T=0;this.N=null;this.K=0;this.L=[];for(m=0;m<4;m++)this.L.push(0);this.D=0;this.Ae=g.Yk(window,"mousemove",(0,g.IA)(this.Qt,this));this.V=g.KJ((0,g.IA)(this.Zu,this),25)}; N2=function(m){g.Z.call(this);this.N=[];this.Aj=m||this}; bF=function(m,V,O,h){for(var w=0;w0?O:0;O=h?Date.now()+h*1E3:0;if((h=h?g.SU.fm():g.SU.En())&&window.JSON){typeof V!=="string"&&(V=JSON.stringify(V,void 0));try{h.set(m,V,O)}catch(w){h.remove(m)}}}; g.eU=function(m){var V=g.SU.En(),O=g.SU.fm();if(!V&&!O||!window.JSON)return null;try{var h=V.get(m)}catch(w){}if(typeof h!=="string")try{h=O.get(m)}catch(w){}if(typeof h!=="string")return null;try{h=JSON.parse(h,void 0)}catch(w){}return h}; KzC=function(){var m=g.SU.fm();if(m&&(m=m.RE("yt-player-quality")))return m.creation}; g.uF=function(m){try{var V=g.SU.En(),O=g.SU.fm();V&&V.remove(m);O&&O.remove(m)}catch(h){}}; g.zv=function(){return g.eU("yt-remote-session-screen-id")}; Wzl=function(m){var V=this;this.L=void 0;this.Z=!1;m.addEventListener("beforeinstallprompt",function(O){O.preventDefault();V.L=O}); m.addEventListener("appinstalled",function(){V.Z=!0},{once:!0})}; ZN=function(){if(!g.WH.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.WH.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.WH.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.WH.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.WH.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(m){return"WEB_DISPLAY_MODE_UNKNOWN"}}; sb=function(){this.Xk=!0}; X30=function(){sb.instance||(sb.instance=new sb);return sb.instance}; HCU=function(m){switch(m){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}}; TqX=function(){this.Z=g.Vf("ALT_PREF_COOKIE_NAME","PREF");this.L=g.Vf("ALT_PREF_COOKIE_DOMAIN","youtube.com");var m=g.sx(this.Z);m&&this.parse(m)}; g.a$=function(){FS||(FS=new TqX);return FS}; Gv=function(m,V){var O="f"+(Math.floor(m/31)+1);m=1<10&&Ed.shift()))}; M9=function(m,V){JJ||(C3?C3.logEvent(m,V):(Ed.push({type:"EVENT",eventType:m,payload:V}),Ed.length>10&&Ed.shift()))}; f3=function(m){if(m.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; xB=function(m){return m.substr(0,m.indexOf(":"))||m}; g.Re=function(m,V,O,h,w){V=V===void 0?{}:V;O=O===void 0?bCm[m]:O;h=h===void 0?nsl[m]:h;w=w===void 0?Se1[m]:w;g.no.call(this,O,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:m},V));this.type=m;this.message=O;this.level=h;this.Z=w;Object.setPrototypeOf(this,g.Re.prototype)}; oe=function(m,V){g.Re.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:V,foundObjectStores:m},bCm.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,oe.prototype)}; g1=function(m,V){var O=Error.call(this);this.message=O.message;"stack"in O&&(this.stack=O.stack);this.index=m;this.objectStore=V;Object.setPrototypeOf(this,g1.prototype)}; Ud=function(m,V,O,h){V=xB(V);var w=m instanceof Error?m:Error("Unexpected error: "+m);if(w instanceof g.Re)return w;m={objectStoreNames:O,dbName:V,dbVersion:h};if(w.name==="QuotaExceededError")return new g.Re("QUOTA_EXCEEDED",m);if(g.AJ&&w.name==="UnknownError")return new g.Re("QUOTA_MAYBE_EXCEEDED",m);if(w instanceof g1)return new g.Re("MISSING_INDEX",Object.assign({},m,{objectStore:w.objectStore,index:w.index}));if(w.name==="InvalidStateError"&&InC.some(function(y){return w.message.includes(y)}))return new g.Re("EXECUTE_TRANSACTION_ON_CLOSED_DB", m); if(w.name==="AbortError")return new g.Re("UNKNOWN_ABORT",m,w.message);w.args=[Object.assign({},m,{name:"IdbError",lE:w.name})];w.level="WARNING";return w}; g.d1=function(m,V,O){var h=L3();return new g.Re("IDB_NOT_SUPPORTED",{context:{caller:m,publicName:V,version:O,hasSucceededOnce:h==null?void 0:h.hasSucceededOnce}})}; eGp=function(m){if(!m)throw Error();throw m;}; uIa=function(m){return m}; tJ=function(m){this.Z=m}; g.K3=function(m){function V(w){if(h.state.status==="PENDING"){h.state={status:"REJECTED",reason:w};w=g.D(h.L);for(var y=w.next();!y.done;y=w.next())y=y.value,y()}} function O(w){if(h.state.status==="PENDING"){h.state={status:"FULFILLED",value:w};w=g.D(h.Z);for(var y=w.next();!y.done;y=w.next())y=y.value,y()}} var h=this;this.state={status:"PENDING"};this.Z=[];this.L=[];m=m.Z;try{m(O,V)}catch(w){V(w)}}; zGX=function(m,V,O,h,w){try{if(m.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var y=O(m.state.value);y instanceof g.K3?WE(m,V,y,h,w):h(y)}catch(L){w(L)}}; ZC3=function(m,V,O,h,w){try{if(m.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var y=O(m.state.reason);y instanceof g.K3?WE(m,V,y,h,w):h(y)}catch(L){w(L)}}; WE=function(m,V,O,h,w){V===O?w(new TypeError("Circular promise chain detected.")):O.then(function(y){y instanceof g.K3?WE(m,V,y,h,w):h(y)},function(y){w(y)})}; s4o=function(m,V,O){function h(){O(m.error);y()} function w(){V(m.result);y()} function y(){try{m.removeEventListener("success",w),m.removeEventListener("error",h)}catch(L){}} m.addEventListener("success",w);m.addEventListener("error",h)}; Fz7=function(m){return new Promise(function(V,O){s4o(m,V,O)})}; XX=function(m){return new g.K3(new tJ(function(V,O){s4o(m,V,O)}))}; HE=function(m,V){return new g.K3(new tJ(function(O,h){function w(){var y=m?V(m):null;y?y.then(function(L){m=L;w()},h):O()} w()}))}; anm=function(m,V){this.request=m;this.cursor=V}; iC7=function(m){return XX(m).then(function(V){return V?new anm(m,V):null})}; g.GGp=function(m){m.cursor.continue(void 0);return iC7(m.request)}; p35=function(m,V){this.Z=m;this.options=V;this.transactionCount=0;this.D=Math.round((0,g.TN)());this.L=!1}; $B=function(){return g.Tm("idb_immediate_commit")}; g.kB=function(m,V,O){m=m.Z.createObjectStore(V,O);return new YB(m)}; r1=function(m,V){m.Z.objectStoreNames.contains(V)&&m.Z.deleteObjectStore(V)}; g.N9=function(m,V,O){return g.cE(m,[V],{mode:"readwrite",M8:!0,commit:$B()},function(h){return g.Dt(h.objectStore(V),O)})}; g.cE=function(m,V,O,h){var w,y,L,C,E,q,M,f,x,R,A,K;return g.u(function(X){switch(X.Z){case 1:var c={mode:"readonly",M8:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof O==="string"?c.mode=O:Object.assign(c,O);w=c;m.transactionCount++;y=w.M8?3:1;L=0;case 2:if(C){X.Te(4);break}L++;E=Math.round((0,g.TN)());g.JG(X,5);q=m.Z.transaction(V,w.mode);c=!!w.commit;var r=new bC(q);c=Bq7(r,h,c);return g.I(X,c,7);case 7:return M=X.L,f=Math.round((0,g.TN)()),lno(m,E,f,L,void 0,V.join(),w),X.return(M);case 5:x=g.qA(X); R=Math.round((0,g.TN)());A=Ud(x,m.Z.name,V.join(),m.Z.version);if((K=A instanceof g.Re&&!A.Z)||L>=y)lno(m,E,R,L,A,V.join(),w),C=A;X.Te(2);break;case 4:return X.return(Promise.reject(C))}})}; lno=function(m,V,O,h,w,y,L){V=O-V;w?(w instanceof g.Re&&(w.type==="QUOTA_EXCEEDED"||w.type==="QUOTA_MAYBE_EXCEEDED")&&M9("QUOTA_EXCEEDED",{dbName:xB(m.Z.name),objectStoreNames:y,transactionCount:m.transactionCount,transactionMode:L.mode}),w instanceof g.Re&&w.type==="UNKNOWN_ABORT"&&(O-=m.D,O<0&&O>=2147483648&&(O=0),M9("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:y,transactionDuration:V,transactionCount:m.transactionCount,dbDuration:O}),m.L=!0),Q47(m,!1,h,y,V,L.tag),q9(w)):Q47(m,!0,h,y,V, L.tag)}; Q47=function(m,V,O,h,w,y){M9("TRANSACTION_ENDED",{objectStoreNames:h,connectionHasUnknownAbortedTransaction:m.L,duration:w,isSuccessful:V,tryCount:O,tag:y===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":y})}; YB=function(m){this.Z=m}; g.n3=function(m,V,O){m.Z.createIndex(V,O,{unique:!1})}; vs$=function(m,V){return g.Sr(m,{query:V},function(O){return O.delete().then(function(){return g.Ie(O)})}).then(function(){})}; PL7=function(m,V,O){var h=[];return g.Sr(m,{query:V},function(w){if(!(O!==void 0&&h.length>=O))return h.push(w.getValue()),g.Ie(w)}).then(function(){return h})}; VB$=function(m){return"getAllKeys"in IDBObjectStore.prototype?XX(m.Z.getAllKeys(void 0,void 0)):mXl(m)}; mXl=function(m){var V=[];return g.OZ$(m,{query:void 0},function(O){V.push(O.cursor.primaryKey);return g.GGp(O)}).then(function(){return V})}; g.Dt=function(m,V,O){return XX(m.Z.put(V,O))}; g.Sr=function(m,V,O){m=m.Z.openCursor(V.query,V.direction);return er(m).then(function(h){return HE(h,O)})}; g.OZ$=function(m,V,O){var h=V.query;V=V.direction;m="openKeyCursor"in IDBObjectStore.prototype?m.Z.openKeyCursor(h,V):m.Z.openCursor(h,V);return iC7(m).then(function(w){return HE(w,O)})}; bC=function(m){var V=this;this.Z=m;this.L=new Map;this.aborted=!1;this.done=new Promise(function(O,h){V.Z.addEventListener("complete",function(){O()}); V.Z.addEventListener("error",function(w){w.currentTarget===w.target&&h(V.Z.error)}); V.Z.addEventListener("abort",function(){var w=V.Z.error;if(w)h(w);else if(!V.aborted){w=g.Re;for(var y=V.Z.objectStoreNames,L=[],C=0;C=O))return h.push(w.getValue()),g.Ie(w)}).then(function(){return h})}; g.uC=function(m,V,O){m=m.Z.openCursor(V.query===void 0?null:V.query,V.direction===void 0?"next":V.direction);return er(m).then(function(h){return HE(h,O)})}; zN=function(m,V){this.request=m;this.cursor=V}; er=function(m){return XX(m).then(function(V){return V?new zN(m,V):null})}; g.Ie=function(m){m.cursor.continue(void 0);return er(m.request)}; yKC=function(m,V,O){return new Promise(function(h,w){function y(){x||(x=new p35(L.result,{closed:f}));return x} var L=V!==void 0?self.indexedDB.open(m,V):self.indexedDB.open(m);var C=O.blocked,E=O.blocking,q=O.vZr,M=O.upgrade,f=O.closed,x;L.addEventListener("upgradeneeded",function(R){try{if(R.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(L.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");R.dataLoss&&R.dataLoss!=="none"&&M9("IDB_DATA_CORRUPTED",{reason:R.dataLossMessage||"unknown reason",dbName:xB(m)});var A=y(),K=new bC(L.transaction); M&&M(A,function(X){return R.oldVersion=X},K); K.done.catch(function(X){w(X)})}catch(X){w(X)}}); L.addEventListener("success",function(){var R=L.result;E&&R.addEventListener("versionchange",function(){E(y())}); R.addEventListener("close",function(){M9("IDB_UNEXPECTEDLY_CLOSED",{dbName:xB(m),dbVersion:R.version});q&&q()}); h(y())}); L.addEventListener("error",function(){w(L.error)}); C&&L.addEventListener("blocked",function(){C()})})}; jw$=function(m,V,O){O=O===void 0?{}:O;return yKC(m,V,O)}; Zt=function(m,V){V=V===void 0?{}:V;var O,h,w,y;return g.u(function(L){if(L.Z==1)return g.JG(L,2),O=self.indexedDB.deleteDatabase(m),h=V,(w=h.blocked)&&O.addEventListener("blocked",function(){w()}),g.I(L,Fz7(O),4); if(L.Z!=2)return g.EJ(L,0);y=g.qA(L);throw Ud(y,m,"",-1);})}; sd=function(m,V){this.name=m;this.options=V;this.D=!0;this.K=this.T=0}; LwX=function(m,V){return new g.Re("INCOMPATIBLE_DB_VERSION",{dbName:m.name,oldVersion:m.options.version,newVersion:V})}; g.FX=function(m,V){if(!V)throw g.d1("openWithToken",xB(m.name));return m.open()}; JK$=function(m,V){var O;return g.u(function(h){if(h.Z==1)return g.I(h,g.FX(ae,V),2);O=h.L;return h.return(g.cE(O,["databases"],{M8:!0,mode:"readwrite"},function(w){var y=w.objectStore("databases");return y.get(m.actualName).then(function(L){if(L?m.actualName!==L.actualName||m.publicName!==L.publicName||m.userIdentifier!==L.userIdentifier:1)return g.Dt(y,m).then(function(){})})}))})}; iC=function(m,V){var O;return g.u(function(h){if(h.Z==1)return m?g.I(h,g.FX(ae,V),2):h.return();O=h.L;return h.return(O.delete("databases",m))})}; CYI=function(m,V){var O,h;return g.u(function(w){return w.Z==1?(O=[],g.I(w,g.FX(ae,V),2)):w.Z!=3?(h=w.L,g.I(w,g.cE(h,["databases"],{M8:!0,mode:"readonly"},function(y){O.length=0;return g.Sr(y.objectStore("databases"),{},function(L){m(L.getValue())&&O.push(L.getValue());return g.Ie(L)})}),3)):w.return(O)})}; Eao=function(m,V){return CYI(function(O){return O.publicName===m&&O.userIdentifier!==void 0},V)}; qg3=function(){var m,V,O,h;return g.u(function(w){switch(w.Z){case 1:m=L3();if((V=m)==null?0:V.hasSucceededOnce)return w.return(!0);if(GN&&mB()&&!VJ()||g.p3)return w.return(!1);try{if(O=self,!(O.indexedDB&&O.IDBIndex&&O.IDBKeyRange&&O.IDBObjectStore))return w.return(!1)}catch(y){return w.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return w.return(!1);g.JG(w,2);h={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.I(w,JK$(h,BE),4);case 4:return g.I(w,iC("yt-idb-test-do-not-use",BE),5);case 5:return w.return(!0);case 2:return g.qA(w),w.return(!1)}})}; MB3=function(){if(lC!==void 0)return lC;JJ=!0;return lC=qg3().then(function(m){JJ=!1;var V;if((V=jr())!=null&&V.Z){var O;V={hasSucceededOnce:((O=L3())==null?void 0:O.hasSucceededOnce)||m};var h;(h=jr())==null||h.set("LAST_RESULT_ENTRY_KEY",V,2592E3,!0)}return m})}; PE=function(){return g.$I("ytglobal.idbToken_")||void 0}; g.md=function(){var m=PE();return m?Promise.resolve(m):MB3().then(function(V){(V=V?BE:void 0)&&g.TZ("ytglobal.idbToken_",V);return V})}; fzC=function(m){if(!g.QJ())throw m=new g.Re("AUTH_INVALID",{dbName:m}),q9(m),m;var V=g.lF();return{actualName:m+":"+V,publicName:m,userIdentifier:V}}; xXC=function(m,V,O,h){var w,y,L,C,E,q;return g.u(function(M){switch(M.Z){case 1:return y=(w=Error().stack)!=null?w:"",g.I(M,g.md(),2);case 2:L=M.L;if(!L)throw C=g.d1("openDbImpl",m,V),g.Tm("ytidb_async_stack_killswitch")||(C.stack=C.stack+"\n"+y.substring(y.indexOf("\n")+1)),q9(C),C;f3(m);E=O?{actualName:m,publicName:m,userIdentifier:void 0}:fzC(m);g.JG(M,3);return g.I(M,JK$(E,L),5);case 5:return g.I(M,jw$(E.actualName,V,h),6);case 6:return M.return(M.L);case 3:return q=g.qA(M),g.JG(M,7),g.I(M,iC(E.actualName, L),9);case 9:g.EJ(M,8);break;case 7:g.qA(M);case 8:throw q;}})}; Ra0=function(m,V,O){O=O===void 0?{}:O;return xXC(m,V,!1,O)}; oao=function(m,V,O){O=O===void 0?{}:O;return xXC(m,V,!0,O)}; gaU=function(m,V){V=V===void 0?{}:V;var O,h;return g.u(function(w){if(w.Z==1)return g.I(w,g.md(),2);if(w.Z!=3){O=w.L;if(!O)return w.return();f3(m);h=fzC(m);return g.I(w,Zt(h.actualName,V),3)}return g.I(w,iC(h.actualName,O),0)})}; AK7=function(m,V,O){m=m.map(function(h){return g.u(function(w){return w.Z==1?g.I(w,Zt(h.actualName,V),2):g.I(w,iC(h.actualName,O),0)})}); return Promise.all(m).then(function(){})}; UXX=function(m){var V=V===void 0?{}:V;var O,h;return g.u(function(w){if(w.Z==1)return g.I(w,g.md(),2);if(w.Z!=3){O=w.L;if(!O)return w.return();f3(m);return g.I(w,Eao(m,O),3)}h=w.L;return g.I(w,AK7(h,V,O),0)})}; dX5=function(m,V){V=V===void 0?{}:V;var O;return g.u(function(h){if(h.Z==1)return g.I(h,g.md(),2);if(h.Z!=3){O=h.L;if(!O)return h.return();f3(m);return g.I(h,Zt(m,V),3)}return g.I(h,iC(m,O),0)})}; Va=function(m,V){sd.call(this,m,V);this.options=V;f3(m)}; tB7=function(m,V){var O;return function(){O||(O=new Va(m,V));return O}}; g.Oi=function(m,V){return tB7(m,V)}; hi=function(m){return g.FX(Kw3(),m)}; Ww1=function(m,V,O,h){var w,y,L;return g.u(function(C){switch(C.Z){case 1:return w={config:m,hashData:V,timestamp:h!==void 0?h:(0,g.TN)()},g.I(C,hi(O),2);case 2:return y=C.L,g.I(C,y.clear("hotConfigStore"),3);case 3:return g.I(C,g.N9(y,"hotConfigStore",w),4);case 4:return L=C.L,C.return(L)}})}; XA5=function(m,V,O,h,w){var y,L,C;return g.u(function(E){switch(E.Z){case 1:return y={config:m,hashData:V,configData:O,timestamp:w!==void 0?w:(0,g.TN)()},g.I(E,hi(h),2);case 2:return L=E.L,g.I(E,L.clear("coldConfigStore"),3);case 3:return g.I(E,g.N9(L,"coldConfigStore",y),4);case 4:return C=E.L,E.return(C)}})}; HZa=function(m){var V,O;return g.u(function(h){return h.Z==1?g.I(h,hi(m),2):h.Z!=3?(V=h.L,O=void 0,g.I(h,g.cE(V,["coldConfigStore"],{mode:"readwrite",M8:!0},function(w){return g.uC(w.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(y){O=y.getValue()})}),3)):h.return(O)})}; T_C=function(m){var V,O;return g.u(function(h){return h.Z==1?g.I(h,hi(m),2):h.Z!=3?(V=h.L,O=void 0,g.I(h,g.cE(V,["hotConfigStore"],{mode:"readwrite",M8:!0},function(w){return g.uC(w.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(y){O=y.getValue()})}),3)):h.return(O)})}; $X1=function(){return g.u(function(m){return g.I(m,UXX("ytGcfConfig"),0)})}; wM=function(){g.Z.call(this);this.L=[];this.Z=[];var m=g.$I("yt.gcf.config.hotUpdateCallbacks");m?(this.L=[].concat(g.b(m)),this.Z=m):(this.Z=[],g.TZ("yt.gcf.config.hotUpdateCallbacks",this.Z))}; Ei=function(){var m=this;this.K=!1;this.D=this.T=0;this.N=new wM;this.BD={vxH:function(){m.K=!0}, LtH:function(){return m.Z}, Y0z:function(V){ya(m,V)}, EV:function(V){m.EV(V)}, U$z:function(V){jM(m,V)}, Oj:function(){return m.coldHashData}, xi:function(){return m.hotHashData}, kae:function(){return m.L}, HQH:function(){return Ln()}, yyH:function(){return Ji()}, UOe:function(){return g.$I("yt.gcf.config.coldHashData")}, qhS:function(){return g.$I("yt.gcf.config.hotHashData")}, nju:function(){Yg$(m)}, zSN:function(){m.EV(void 0);Cn(m);delete Ei.instance}, Ej6:function(V){m.D=V}, vEr:function(){return m.D}}}; kVa=function(){if(!Ei.instance){var m=new Ei;Ei.instance=m}return Ei.instance}; DXU=function(m){var V;g.u(function(O){if(O.Z==1)return g.Tm("start_client_gcf")||g.Tm("delete_gcf_config_db")?g.Tm("start_client_gcf")?g.I(O,g.md(),3):O.Te(2):O.return();O.Z!=2&&((V=O.L)&&g.QJ()&&!g.Tm("delete_gcf_config_db")?(m.K=!0,Yg$(m)):(rK7(m),cK5(m)));return g.Tm("delete_gcf_config_db")?g.I(O,$X1(),0):O.Te(0)})}; qC=function(){var m;return(m=Ji())!=null?m:g.Vf("RAW_HOT_CONFIG_GROUP")}; N_a=function(m){var V,O,h,w,y,L;return g.u(function(C){switch(C.Z){case 1:if(m.L)return C.return(Ji());if(!m.K)return V=g.d1("getHotConfig IDB not initialized"),j6(V),C.return(Promise.reject(V));O=PE();h=g.Vf("TIME_CREATED_MS");if(!O){w=g.d1("getHotConfig token error");j6(w);C.Te(2);break}return g.I(C,T_C(O),3);case 3:if((y=C.L)&&y.timestamp>h)return ya(m,y.config),m.EV(y.hashData),C.return(Ji());case 2:cK5(m);if(!(O&&m.L&&m.hotHashData)){C.Te(4);break}return g.I(C,Ww1(m.L,m.hotHashData,O,h),4);case 4:return m.L? C.return(Ji()):(L=new g.no("Config not available in ytConfig"),j6(L),C.return(Promise.reject(L)))}})}; na$=function(m){var V,O,h,w,y,L;return g.u(function(C){switch(C.Z){case 1:if(m.Z)return C.return(Ln());if(!m.K)return V=g.d1("getColdConfig IDB not initialized"),j6(V),C.return(Promise.reject(V));O=PE();h=g.Vf("TIME_CREATED_MS");if(!O){w=g.d1("getColdConfig");j6(w);C.Te(2);break}return g.I(C,HZa(O),3);case 3:if((y=C.L)&&y.timestamp>h)return jM(m,y.config),bZ3(m,y.configData),Cn(m,y.hashData),C.return(Ln());case 2:rK7(m);if(!(O&&m.Z&&m.coldHashData&&m.configData)){C.Te(4);break}return g.I(C,XA5(m.Z, m.coldHashData,m.configData,O,h),4);case 4:return m.Z?C.return(Ln()):(L=new g.no("Config not available in ytConfig"),j6(L),C.return(Promise.reject(L)))}})}; Yg$=function(m){if(!m.L||!m.Z){if(!PE()){var V=g.d1("scheduleGetConfigs");j6(V)}m.T||(m.T=g.GV.B1(function(){return g.u(function(O){switch(O.Z){case 1:return g.JG(O,2),g.I(O,N_a(m),4);case 4:g.EJ(O,3);break;case 2:g.qA(O);case 3:return g.JG(O,5),g.I(O,na$(m),7);case 7:g.EJ(O,6);break;case 5:g.qA(O);case 6:m.T&&(m.T=0),g.j$(O)}})},100))}}; SgU=function(m,V,O){var h,w,y;return g.u(function(L){switch(L.Z){case 1:if(!g.Tm("start_client_gcf")){L.Te(0);break}O&&ya(m,O);m.EV(V);h=PE();if(!h){L.Te(3);break}if(O){L.Te(4);break}return g.I(L,T_C(h),5);case 5:w=L.L,O=(y=w)==null?void 0:y.config;case 4:return g.I(L,Ww1(O,V,h),3);case 3:if(O)for(var C=O,E=g.D(m.N.Z),q=E.next();!q.done;q=E.next())q=q.value,q(C);g.j$(L)}})}; Izl=function(m,V,O){var h,w,y,L;return g.u(function(C){if(C.Z==1){if(!g.Tm("start_client_gcf"))return C.Te(0);Cn(m,V);return(h=PE())?O?C.Te(4):g.I(C,HZa(h),5):C.Te(0)}C.Z!=4&&(w=C.L,O=(y=w)==null?void 0:y.config);if(!O)return C.Te(0);L=O.configData;return g.I(C,XA5(O,V,L,h),0)})}; eaG=function(){var m=kVa(),V=(0,g.TN)()-m.D;if(!(m.D!==0&&V<$4("send_config_hash_timer"))){V=g.$I("yt.gcf.config.coldConfigData");var O=g.$I("yt.gcf.config.hotHashData"),h=g.$I("yt.gcf.config.coldHashData");V&&O&&h&&(m.D=(0,g.TN)());return{coldConfigData:V,hotHashData:O,coldHashData:h}}}; rK7=function(m){jM(m,g.Vf("RAW_COLD_CONFIG_GROUP"));Cn(m,g.Vf("SERIALIZED_COLD_HASH_DATA"));var V;bZ3(m,(V=m.Z)==null?void 0:V.configData)}; cK5=function(m){ya(m,g.Vf("RAW_HOT_CONFIG_GROUP"));m.EV(g.Vf("SERIALIZED_HOT_HASH_DATA"))}; ya=function(m,V){m.L=V;g.TZ("yt.gcf.config.hotConfigGroup",m.L||null)}; jM=function(m,V){m.Z=V;g.TZ("yt.gcf.config.coldConfigGroup",m.Z||null)}; Cn=function(m,V){m.coldHashData=V;g.TZ("yt.gcf.config.coldHashData",m.coldHashData||null)}; bZ3=function(m,V){m.configData=V;g.TZ("yt.gcf.config.coldConfigData",m.configData||null)}; Ji=function(){return g.$I("yt.gcf.config.hotConfigGroup")}; Ln=function(){return g.$I("yt.gcf.config.coldConfigGroup")}; u0o=function(){return"INNERTUBE_API_KEY"in Ph&&"INNERTUBE_API_VERSION"in Ph}; g.MC=function(){return{innertubeApiKey:g.Vf("INNERTUBE_API_KEY"),innertubeApiVersion:g.Vf("INNERTUBE_API_VERSION"),sL:g.Vf("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),LG:g.Vf("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),M5:g.Vf("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.Vf("INNERTUBE_CONTEXT_CLIENT_VERSION"),I$:g.Vf("INNERTUBE_CONTEXT_HL"),Dt:g.Vf("INNERTUBE_CONTEXT_GL"),PJ:g.Vf("INNERTUBE_HOST_OVERRIDE")||"",tG:!!g.Vf("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),WSY:!!g.Vf("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT", !1),appInstallData:g.Vf("SERIALIZED_CLIENT_CONFIG_DATA")}}; g.fn=function(m){var V={client:{hl:m.I$,gl:m.Dt,clientName:m.LG,clientVersion:m.innertubeContextClientVersion,configInfo:m.sL}};navigator.userAgent&&(V.client.userAgent=String(navigator.userAgent));var O=g.WH.devicePixelRatio;O&&O!=1&&(V.client.screenDensityFloat=String(O));O=Y4();O!==""&&(V.client.experimentsToken=O);O=k4();O.length>0&&(V.request={internalExperimentFlags:O});zaI(m,void 0,V);ZZ7(void 0,V);swm(void 0,V);FwG(m,void 0,V);azC(void 0,V);g.Tm("start_client_gcf")&&iZp(void 0,V);g.Vf("DELEGATED_SESSION_ID")&& !g.Tm("pageid_as_header_web")&&(V.user={onBehalfOfUser:g.Vf("DELEGATED_SESSION_ID")});!g.Tm("fill_delegate_context_in_gel_killswitch")&&(m=g.Vf("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(V.user=Object.assign({},V.user,{serializedDelegationContext:m}));m=g.Vf("INNERTUBE_CONTEXT");var h;if(g.Tm("enable_persistent_device_token")&&(m==null?0:(h=m.client)==null?0:h.rolloutToken)){var w;V.client.rolloutToken=m==null?void 0:(w=m.client)==null?void 0:w.rolloutToken}h=Object;w=h.assign;m=V.client; O={};for(var y=g.D(Object.entries(Tl(g.Vf("DEVICE","")))),L=y.next();!L.done;L=y.next()){var C=g.D(L.value);L=C.next().value;C=C.next().value;L==="cbrand"?O.deviceMake=C:L==="cmodel"?O.deviceModel=C:L==="cbr"?O.browserName=C:L==="cbrver"?O.browserVersion=C:L==="cos"?O.osName=C:L==="cosver"?O.osVersion=C:L==="cplatform"&&(O.platform=C)}V.client=w.call(h,m,O);return V}; zaI=function(m,V,O){m=m.LG;if(m==="WEB"||m==="MWEB"||m===1||m===2)if(V){O=Z2(V,Sk,96)||new Sk;var h=ZN();h=Object.keys(GVm).indexOf(h);h=h===-1?null:h;h!==null&&wB(O,3,h);ir(V,Sk,96,O)}else O&&(O.client.mainAppWebInfo=(h=O.client.mainAppWebInfo)!=null?h:{},O.client.mainAppWebInfo.webDisplayMode=ZN())}; ZZ7=function(m,V){var O=g.$I("yt.embedded_player.embed_url");O&&(m?(V=Z2(m,ZC,7)||new ZC,OA(V,4,O),ir(m,ZC,7,V)):V&&(V.thirdParty={embedUrl:O}))}; swm=function(m,V){var O;if(g.Tm("web_log_memory_total_kbytes")&&((O=g.WH.navigator)==null?0:O.deviceMemory)){var h;O=(h=g.WH.navigator)==null?void 0:h.deviceMemory;m?dy(m,95,FY(O*1E6)):V&&(V.client.memoryTotalKbytes=""+O*1E6)}}; FwG=function(m,V,O){if(m.appInstallData)if(V){var h;O=(h=Z2(V,ne,62))!=null?h:new ne;OA(O,6,m.appInstallData);ir(V,ne,62,O)}else O&&(O.client.configInfo=O.client.configInfo||{},O.client.configInfo.appInstallData=m.appInstallData)}; azC=function(m,V){var O=rDX();O&&(m?wB(m,61,pAo[O]):V&&(V.client.connectionType=O));g.Tm("web_log_effective_connection_type")&&(O=DOm())&&(m?wB(m,94,B_C[O]):V&&(V.client.effectiveConnectionType=O))}; lzl=function(m,V,O){O=O===void 0?{}:O;var h={};g.Vf("EOM_VISITOR_DATA")?h={"X-Goog-EOM-Visitor-Id":g.Vf("EOM_VISITOR_DATA")}:h={"X-Goog-Visitor-Id":O.visitorData||g.Vf("VISITOR_DATA","")};if(V&&V.includes("www.youtube-nocookie.com"))return h;V=O.tb||g.Vf("AUTHORIZATION");V||(m?V="Bearer "+g.$I("gapi.auth.getToken")().access_token:(m=X30().ip(x5),g.Tm("pageid_as_header_web")||delete m["X-Goog-PageId"],h=Object.assign({},h,m)));V&&(h.Authorization=V);return h}; iZp=function(m,V){var O=eaG();if(O){var h=O.coldConfigData,w=O.coldHashData;O=O.hotHashData;if(m){var y;V=(y=Z2(m,ne,62))!=null?y:new ne;h=OA(V,1,h);OA(h,3,w).EV(O);ir(m,ne,62,V)}else V&&(V.client.configInfo=V.client.configInfo||{},h&&(V.client.configInfo.coldConfigData=h),w&&(V.client.configInfo.coldHashData=w),O&&(V.client.configInfo.hotHashData=O))}}; RS=function(m,V){this.version=m;this.args=V}; oS=function(m,V){this.topic=m;this.Z=V}; Ai=function(m,V){var O=gM();O&&O.publish.call(O,m.toString(),m,V)}; PYG=function(m){var V=Qwm,O=gM();if(!O)return 0;var h=O.subscribe(V.toString(),function(w,y){var L=g.$I("ytPubsub2Pubsub2SkipSubKey");L&&L==h||(L=function(){if(Ui[h])try{if(y&&V instanceof oS&&V!=w)try{var C=V.Z,E=y;if(!E.args||!E.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!C.PA){var q=new C;C.PA=q.version}var M=C.PA}catch(f){}if(!M||E.version!=M)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{y=Reflect.construct(C, g.j5(E.args))}catch(f){throw f.message="yt.pubsub2.Data.deserialize(): "+f.message,f;}}catch(f){throw f.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+V.toString()+": "+f.message,f;}m.call(window,y)}catch(f){g.wt(f)}},vaU[V.toString()]?g.hJ()?g.GV.B1(L):g.t6(L,0):L())}); Ui[h]=!0;dM[V.toString()]||(dM[V.toString()]=[]);dM[V.toString()].push(h);return h}; OY$=function(){var m=maG,V=PYG(function(O){m.apply(void 0,arguments);VF0(V)}); return V}; VF0=function(m){var V=gM();V&&(typeof m==="number"&&(m=[m]),g.An(m,function(O){V.unsubscribeByKey(O);delete Ui[O]}))}; gM=function(){return g.$I("ytPubsub2Pubsub2Instance")}; ti=function(m,V,O){O=O===void 0?{sampleRate:.1}:O;Math.random()JYl||L=qM5&&(cb++,$5=!1);MFp(V);h.headers||(h.headers={});h.headers["Content-Encoding"]="gzip";h.postBody=m;h.postParams=void 0;w(O,h)}; xaI=function(m){var V=V===void 0?!1:V;var O=O===void 0?!1:O;var h=(0,g.TN)(),w={startTime:h,ticks:{},infos:{}},y=V?g.$I("yt.logging.gzipForFetch",!1):!0;if($5&&y){if(!m.body)return m;try{var L=O?m.body:typeof m.body==="string"?m.body:JSON.stringify(m.body);y=L;if(!O&&typeof L==="string"){var C=LqC(L);if(C!=null&&(C>JYl||C=qM5)if(cb++,g.Tm("abandon_compression_after_N_slow_zips_lr")){V=cb/rM;var q=fD3/$4("compression_disable_point");rM>0&&rM%$4("compression_disable_point")===0&&V>=q&&($5=!1)}else $5=!1;MFp(w)}}m.headers=Object.assign({},{"Content-Encoding":"gzip"},m.headers||{});m.body=y;return m}catch(M){return j6(M),m}}else return m}; LqC=function(m){try{return(new Blob(m.split(""))).size}catch(V){return j6(V),null}}; MFp=function(m){g.Tm("gel_compression_csi_killswitch")||!g.Tm("log_gel_compression_latency")&&!g.Tm("log_gel_compression_latency_lr")||ti("gel_compression",m,{sampleRate:.1})}; NC=function(m){var V=this;this.bL=this.Z=!1;this.potentialEsfErrorCounter=this.L=0;this.handleError=function(){}; this.Zi=function(){}; this.now=Date.now;this.x7=!1;this.BD={q0e:function(M){V.Xh=M}, S0H:function(){V.hF()}, W_:function(){V.JS()}, hv:function(M){return g.u(function(f){return g.I(f,V.hv(M),0)})}, Bo:function(M,f){return V.Bo(M,f)}, SN:function(){V.SN()}}; var O;this.b8=(O=m.b8)!=null?O:100;var h;this.sy=(h=m.sy)!=null?h:1;var w;this.fn=(w=m.fn)!=null?w:2592E6;var y;this.G3=(y=m.G3)!=null?y:12E4;var L;this.Oy=(L=m.Oy)!=null?L:5E3;var C;this.Xh=(C=m.Xh)!=null?C:void 0;this.f1=!!m.f1;var E;this.RA=(E=m.RA)!=null?E:.1;var q;this.GL=(q=m.GL)!=null?q:10;m.handleError&&(this.handleError=m.handleError);m.Zi&&(this.Zi=m.Zi);m.x7&&(this.x7=m.x7);m.bL&&(this.bL=m.bL);this.w0=m.w0;this.M2=m.M2;this.ac=m.ac;this.Hj=m.Hj;this.sendFn=m.sendFn;this.Do=m.Do;this.KB= m.KB;Dv(this)&&(!this.w0||this.w0("networkless_logging"))&&RpG(this)}; RpG=function(m){Dv(m)&&!m.x7&&(m.Z=!0,m.f1&&Math.random()<=m.RA&&m.ac.ZJ(m.Xh),m.SN(),m.Hj.KC()&&m.hF(),m.Hj.listen(m.Do,m.hF.bind(m)),m.Hj.listen(m.KB,m.JS.bind(m)))}; AYp=function(m,V){if(!Dv(m))throw Error("IndexedDB is not supported: updateRequestHandlers");var O=V.options.onError?V.options.onError:function(){}; V.options.onError=function(w,y){var L,C,E,q;return g.u(function(M){switch(M.Z){case 1:L=oNm(y);(C=gN7(y))&&m.w0&&m.w0("web_enable_error_204")&&m.handleError(Error("Request failed due to compression"),V.url,y);if(!(m.w0&&m.w0("nwl_consider_error_code")&&L||m.w0&&!m.w0("nwl_consider_error_code")&&m.potentialEsfErrorCounter<=m.GL)){M.Te(2);break}if(!m.Hj.u$){M.Te(3);break}return g.I(M,m.Hj.u$(),3);case 3:if(m.Hj.KC()){M.Te(2);break}O(w,y);if(!m.w0||!m.w0("nwl_consider_error_code")||((E=V)==null?void 0: E.id)===void 0){M.Te(6);break}return g.I(M,m.ac.lI(V.id,m.Xh,!1),6);case 6:return M.return();case 2:if(m.w0&&m.w0("nwl_consider_error_code")&&!L&&m.potentialEsfErrorCounter>m.GL)return M.return();m.potentialEsfErrorCounter++;if(((q=V)==null?void 0:q.id)===void 0){M.Te(8);break}return V.sendCount=400&&m<=599?!1:!0}; gN7=function(m){var V;m=m==null?void 0:(V=m.error)==null?void 0:V.code;return!(m!==400&&m!==415)}; Uaa=function(){if(nn)return nn();var m={};nn=g.Oi("LogsDatabaseV2",{Q5:(m.LogsRequestsStore={lP:2},m),shared:!1,upgrade:function(V,O,h){O(2)&&g.kB(V,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});O(3);O(5)&&(h=h.objectStore("LogsRequestsStore"),h.Z.indexNames.contains("newRequest")&&h.Z.deleteIndex("newRequest"),g.n3(h,"newRequestV2",["status","interface","timestamp"]));O(7)&&r1(V,"sapisid");O(9)&&r1(V,"SWHealthLog")}, version:9});return nn()}; SM=function(m){return g.FX(Uaa(),m)}; tFp=function(m,V){var O,h,w,y;return g.u(function(L){if(L.Z==1)return O={startTime:(0,g.TN)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.I(L,SM(V),2);if(L.Z!=3)return h=L.L,w=Object.assign({},m,{options:JSON.parse(JSON.stringify(m.options)),interface:g.Vf("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.I(L,g.N9(h,"LogsRequestsStore",w),3);y=L.L;O.ticks.tc=(0,g.TN)();dao(O);return L.return(y)})}; Kq7=function(m,V){var O,h,w,y,L,C,E,q,M;return g.u(function(f){if(f.Z==1)return O={startTime:(0,g.TN)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.I(f,SM(V),2);if(f.Z!=3)return h=f.L,w=g.Vf("INNERTUBE_CONTEXT_CLIENT_NAME",0),y=[m,w,0],L=[m,w,(0,g.TN)()],C=IDBKeyRange.bound(y,L),E="prev",g.Tm("use_fifo_for_networkless")&&(E="next"),q=void 0,M=m==="NEW"?"readwrite":"readonly",g.Tm("use_readonly_for_get_most_recent_by_status_killswitch")&&(M="readwrite"),g.I(f,g.cE(h,["LogsRequestsStore"], {mode:M,M8:!0},function(x){return g.uC(x.objectStore("LogsRequestsStore").index("newRequestV2"),{query:C,direction:E},function(R){R.getValue()&&(q=R.getValue(),m==="NEW"&&(q.status="QUEUED",R.update(q)))})}),3); O.ticks.tc=(0,g.TN)();dao(O);return f.return(q)})}; Wqp=function(m,V){var O;return g.u(function(h){if(h.Z==1)return g.I(h,SM(V),2);O=h.L;return h.return(g.cE(O,["LogsRequestsStore"],{mode:"readwrite",M8:!0},function(w){var y=w.objectStore("LogsRequestsStore");return y.get(m).then(function(L){if(L)return L.status="QUEUED",g.Dt(y,L).then(function(){return L})})}))})}; XDm=function(m,V,O,h){O=O===void 0?!0:O;var w;return g.u(function(y){if(y.Z==1)return g.I(y,SM(V),2);w=y.L;return y.return(g.cE(w,["LogsRequestsStore"],{mode:"readwrite",M8:!0},function(L){var C=L.objectStore("LogsRequestsStore");return C.get(m).then(function(E){return E?(E.status="NEW",O&&(E.sendCount+=1),h!==void 0&&(E.options.compress=h),g.Dt(C,E).then(function(){return E})):g.K3.resolve(void 0)})}))})}; HYp=function(m,V){var O;return g.u(function(h){if(h.Z==1)return g.I(h,SM(V),2);O=h.L;return h.return(O.delete("LogsRequestsStore",m))})}; TO3=function(m){var V,O;return g.u(function(h){if(h.Z==1)return g.I(h,SM(m),2);V=h.L;O=(0,g.TN)()-2592E6;return g.I(h,g.cE(V,["LogsRequestsStore"],{mode:"readwrite",M8:!0},function(w){return g.Sr(w.objectStore("LogsRequestsStore"),{},function(y){if(y.getValue().timestamp<=O)return y.delete().then(function(){return g.Ie(y)})})}),0)})}; $a7=function(){g.u(function(m){return g.I(m,UXX("LogsDatabaseV2"),0)})}; dao=function(m){g.Tm("nwl_csi_killswitch")||ti("networkless_performance",m,{sampleRate:1})}; kOm=function(m){return g.FX(YMp(),m)}; rY7=function(m){var V,O;g.u(function(h){if(h.Z==1)return g.I(h,kOm(m),2);V=h.L;O=(0,g.TN)()-2592E6;return g.I(h,g.cE(V,["SWHealthLog"],{mode:"readwrite",M8:!0},function(w){return g.Sr(w.objectStore("SWHealthLog"),{},function(y){if(y.getValue().timestamp<=O)return y.delete().then(function(){return g.Ie(y)})})}),0)})}; cYm=function(m){var V;return g.u(function(O){if(O.Z==1)return g.I(O,kOm(m),2);V=O.L;return g.I(O,V.clear("SWHealthLog"),0)})}; g.IS=function(m,V,O,h,w,y,L){w=w===void 0?"":w;y=y===void 0?!1:y;L=L===void 0?!1:L;if(m)if(O&&!g.Qf())j6(new g.no("Legacy referrer-scrubbed ping detected")),m&&Da7(m,void 0,{scrubReferrer:!0});else if(w)rt(m,V,"POST",w,h);else if(g.Vf("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||h||L)rt(m,V,"GET","",h,void 0,y,L);else{b:{try{c:{var C=new GS3({url:m});if(C.Z.dsh==="1")var E=null;else{var q=C.Z.ae;if(q==="1"){var M=C.Z.adurl;if(M)try{E={version:3,X4:decodeURIComponent(M),sK:yQ(C.L,"act=1","ri=1",pS0(C))}; break c}catch(R){}}E=q==="2"?{version:4,X4:yQ(C.L,"dct=1","suid="+C.D,"ri=1"),sK:yQ(C.L,"act=1","ri=1","suid="+C.D)}:null}}if(E){var f=TU(m);var x=!(!f||!f.endsWith("/aclk")||Iq(m,"ri")!=="1");break b}}catch(R){}x=!1}x?NOU(m)?(V&&V(),O=!0):O=!1:O=!1;O||Da7(m,V)}}; NOU=function(m,V){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(m,V===void 0?"":V))return!0}catch(O){}return!1}; Da7=function(m,V,O){O=O===void 0?{}:O;var h=new Image,w=""+bY7++;eM[w]=h;h.onload=h.onerror=function(){V&&eM[w]&&V();delete eM[w]}; O.scrubReferrer&&(h.referrerPolicy="no-referrer");h.src=m}; nNU=function(m){var V;return((V=document.featurePolicy)==null?0:V.allowedFeatures().includes("attribution-reporting"))?m+"&nis=6":m+"&nis=5"}; z5=function(){uu||(uu=new yE("yt.offline"));return uu}; SM0=function(m){if(g.Tm("offline_error_handling")){var V=z5().get("errors",!0)||{};V[m.message]={name:m.name,stack:m.stack};m.level&&(V[m.message].level=m.level);z5().set("errors",V,2592E3,!0)}}; Zv=function(){this.Z=new Map;this.L=!1}; IDa=function(){if(!Zv.instance){var m=g.$I("yt.networkRequestMonitor.instance")||new Zv;g.TZ("yt.networkRequestMonitor.instance",m);Zv.instance=m}return Zv.instance}; si=function(){g.dw.call(this);var m=this;this.L=!1;this.Z=mQ0();this.Z.listen("networkstatus-online",function(){if(m.L&&g.Tm("offline_error_handling")){var V=z5().get("errors",!0);if(V){for(var O in V)if(V[O]){var h=new g.no(O,"sent via offline_errors");h.name=V[O].name;h.stack=V[O].stack;h.level=V[O].level;g.wt(h)}z5().set("errors",{},2592E3,!0)}}})}; epX=function(){if(!si.instance){var m=g.$I("yt.networkStatusManager.instance")||new si;g.TZ("yt.networkStatusManager.instance",m);si.instance=m}return si.instance}; g.FE=function(m){m=m===void 0?{}:m;g.dw.call(this);var V=this;this.Z=this.T=0;this.L=epX();var O=g.$I("yt.networkStatusManager.instance.listen").bind(this.L);O&&(m.rateLimit?(this.rateLimit=m.rateLimit,O("networkstatus-online",function(){uQa(V,"publicytnetworkstatus-online")}),O("networkstatus-offline",function(){uQa(V,"publicytnetworkstatus-offline")})):(O("networkstatus-online",function(){V.dispatchEvent("publicytnetworkstatus-online")}),O("networkstatus-offline",function(){V.dispatchEvent("publicytnetworkstatus-offline")})))}; uQa=function(m,V){m.rateLimit?m.Z?(g.GV.gI(m.T),m.T=g.GV.B1(function(){m.D!==V&&(m.dispatchEvent(V),m.D=V,m.Z=(0,g.TN)())},m.rateLimit-((0,g.TN)()-m.Z))):(m.dispatchEvent(V),m.D=V,m.Z=(0,g.TN)()):m.dispatchEvent(V)}; iu=function(){var m=NC.call;aS||(aS=new g.FE({Ple:!0,YVS:!0}));m.call(NC,this,{ac:{ZJ:TO3,H3:HYp,MD:Kq7,XDf:Wqp,lI:XDm,set:tFp},Hj:aS,handleError:function(V,O,h){var w,y=h==null?void 0:(w=h.error)==null?void 0:w.code;if(y===400||y===415){var L;V=new g.no(V.message,O,h==null?void 0:(L=h.error)==null?void 0:L.code);j6(V,void 0,void 0,void 0,!0)}else g.wt(V)}, Zi:j6,sendFn:zpI,now:g.TN,bj:SM0,M2:g.Od(),Do:"publicytnetworkstatus-online",KB:"publicytnetworkstatus-offline",f1:!0,RA:.1,GL:$4("potential_esf_error_limit",10),w0:g.Tm,x7:!(g.QJ()&&g.HG(document.location.toString())!=="www.youtube-nocookie.com")});this.D=new g.R4;g.Tm("networkless_immediately_drop_all_requests")&&$a7();dX5("LogsDatabaseV2")}; G5=function(){var m=g.$I("yt.networklessRequestController.instance");m||(m=new iu,g.TZ("yt.networklessRequestController.instance",m),g.Tm("networkless_logging")&&g.md().then(function(V){m.Xh=V;RpG(m);m.D.resolve();m.f1&&Math.random()<=m.RA&&m.Xh&&rY7(m.Xh);g.Tm("networkless_immediately_drop_sw_health_store")&&ZYC(m)})); return m}; ZYC=function(m){var V;g.u(function(O){if(!m.Xh)throw V=g.d1("clearSWHealthLogsDb"),V;return O.return(cYm(m.Xh).catch(function(h){m.handleError(h)}))})}; zpI=function(m,V,O,h){h=h===void 0?!1:h;V=g.Tm("web_fp_via_jspb")?Object.assign({},V):V;if(g.Tm("use_request_time_ms_header"))V.headers&&fJ(m)&&(V.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.TN)())));else{var w;if((w=V.postParams)==null?0:w.requestTimeMs)V.postParams.requestTimeMs=Math.round((0,g.TN)())}O&&Object.keys(V).length===0?g.IS(m):V.compress?V.postBody?(typeof V.postBody!=="string"&&(V.postBody=JSON.stringify(V.postBody)),k5(m,V.postBody,V,g.c7,h)):k5(m,JSON.stringify(V.postParams), V,DH,h):g.c7(m,V)}; pn=function(m,V){g.Tm("use_event_time_ms_header")&&fJ(m)&&(V.headers||(V.headers={}),V.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.TN)())));return V}; g.Bb=function(m){this.config_=null;m?this.config_=m:u0o()&&(this.config_=g.MC())}; g.lu=function(m,V,O,h){function w(q){try{if((q===void 0?0:q)&&h.retry&&!h.networklessOptions.bypassNetworkless)y.method="POST",h.networklessOptions.writeThenSend?G5().writeThenSend(E,y):G5().sendAndWrite(E,y);else if(h.compress){var M=!h.networklessOptions.writeThenSend;if(y.postBody){var f=y.postBody;typeof f!=="string"&&(f=JSON.stringify(y.postBody));k5(E,f,y,g.c7,M)}else k5(E,JSON.stringify(y.postParams),y,DH,M)}else DH(E,y)}catch(x){if(x.name==="InvalidAccessError")j6(Error("An extension is blocking network request.")); else throw x;}} !g.Vf("VISITOR_DATA")&&V!=="visitor_id"&&Math.random()<.01&&j6(new g.no("Missing VISITOR_DATA when sending innertube request.",V,O,h));if(!m.isReady())throw m=new g.no("innertube xhrclient not ready",V,O,h),g.wt(m),m;var y={headers:h.headers||{},method:"POST",postParams:O,postBody:h.postBody,postBodyFormat:h.postBodyFormat||"JSON",onTimeout:function(){h.onTimeout()}, onFetchTimeout:h.onTimeout,onSuccess:function(q,M){if(h.onSuccess)h.onSuccess(M)}, onFetchSuccess:function(q){if(h.onSuccess)h.onSuccess(q)}, onProgress:function(q){if(h.onProgress)h.onProgress(q)}, onError:function(q,M){if(h.onError)h.onError(M)}, onFetchError:function(q){if(h.onError)h.onError(q)}, timeout:h.timeout,withCredentials:!0,compress:h.compress};y.headers["Content-Type"]||(y.headers["Content-Type"]="application/json");O="";var L=m.config_.PJ;L&&(O=L);L=m.config_.tG||!1;var C=lzl(L,O,h);Object.assign(y.headers,C);y.headers.Authorization&&!O&&L&&(y.headers["x-origin"]=window.location.origin);var E=qB(""+O+("/youtubei/"+m.config_.innertubeApiVersion+"/"+V),{alt:"json"});g.$I("ytNetworklessLoggingInitializationOptions")&&sMU.isNwlInitialized?MB3().then(function(q){w(q)}):w(!1)}; g.V4=function(m,V,O){var h=g.Qa();if(h&&V){var w=h.subscribe(m,function(){function y(){vb[w]&&V.apply&&typeof V.apply=="function"&&V.apply(O||window,L)} var L=arguments;try{g.Pb[m]?y():g.t6(y,0)}catch(C){g.wt(C)}},O); vb[w]=!0;mQ[m]||(mQ[m]=[]);mQ[m].push(w);return w}return 0}; Fq5=function(m){var V=g.V4("LOGGED_IN",function(O){m.apply(void 0,arguments);g.OL(V)})}; g.OL=function(m){var V=g.Qa();V&&(typeof m==="number"?m=[m]:typeof m==="string"&&(m=[parseInt(m,10)]),g.An(m,function(O){V.unsubscribeByKey(O);delete vb[O]}))}; g.hc=function(m,V){var O=g.Qa();return O?O.publish.apply(O,arguments):!1}; iYX=function(m){var V=g.Qa();if(V)if(V.clear(m),m)aDG(m);else for(var O in mQ)aDG(O)}; g.Qa=function(){return g.WH.ytPubsubPubsubInstance}; aDG=function(m){mQ[m]&&(m=mQ[m],g.An(m,function(V){vb[V]&&delete vb[V]}),m.length=0)}; g.wo=function(m,V,O){GOl(m,V,O===void 0?null:O)}; GOl=function(m,V,O){O=O===void 0?null:O;var h=pD$(typeof m==="string"?m:m.toString()),w=document.getElementById(h),y=w&&CLm(w),L=w&&!y;y?V&&V():(V&&(y=g.V4(h,V),V=""+g.S$(V),BO7[V]=y),L||(w=lDp(m,h,function(){CLm(w)||(JDG(w),g.hc(h),g.t6(function(){iYX(h)},0))},O)))}; lDp=function(m,V,O,h){h=h===void 0?null:h;var w=g.Yc("SCRIPT");w.id=V;w.onload=function(){O&&setTimeout(O,0)}; w.onreadystatechange=function(){switch(w.readyState){case "loaded":case "complete":w.onload()}}; h&&w.setAttribute("nonce",h);g.Ij(w,typeof m==="string"?g.N7(m):m);m=document.getElementsByTagName("head")[0]||document.body;m.insertBefore(w,m.firstChild);return w}; pD$=function(m){var V=document.createElement("a");g.$p(V,m);m=V.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+p2(m)}; y4=function(m,V){if(m===V)m=!0;else if(Array.isArray(m)&&Array.isArray(V))m=g.og(m,V,y4);else if(g.NA(m)&&g.NA(V))a:if(g.Tx(m).length!=g.Tx(V).length)m=!1;else{for(var O in m)if(!y4(m[O],V[O])){m=!1;break a}m=!0}else m=!1;return m}; Jc=function(m){var V=g.AG.apply(1,arguments);if(!j8(m)||V.some(function(h){return!j8(h)}))throw Error("Only objects may be merged."); V=g.D(V);for(var O=V.next();!O.done;O=V.next())LM(m,O.value)}; LM=function(m,V){for(var O in V)if(j8(V[O])){if(O in m&&!j8(m[O]))throw Error("Cannot merge an object into a non-object.");O in m||(m[O]={});LM(m[O],V[O])}else if(CM(V[O])){if(O in m&&!CM(m[O]))throw Error("Cannot merge an array into a non-array.");O in m||(m[O]=[]);QMG(m[O],V[O])}else m[O]=V[O];return m}; QMG=function(m,V){V=g.D(V);for(var O=V.next();!O.done;O=V.next())O=O.value,j8(O)?m.push(LM({},O)):CM(O)?m.push(QMG([],O)):m.push(O);return m}; j8=function(m){return typeof m==="object"&&!Array.isArray(m)}; CM=function(m){return typeof m==="object"&&Array.isArray(m)}; EL=function(m){g.Z.call(this);this.L=m}; qH=function(m){EL.call(this,!0);this.Z=m}; MH=function(m,V){g.Z.call(this);var O=this;this.D=[];this.J=!1;this.L=0;this.K=this.N=this.T=!1;this.Zu=null;var h=(0,g.IA)(m,V);this.Z=new g.mq(function(){return h(O.Zu)},300); g.a(this,this.Z);this.Qt=this.V=Infinity}; vNo=function(m,V){if(!V)return!1;for(var O=0;O-1)throw Error("Deps cycle for: "+V);if(m.L.has(V))return m.L.get(V);if(!m.Z.has(V)){if(h)return;throw Error("No provider for: "+V);}h=m.Z.get(V);O.push(V);if(h.kG!==void 0)var w=h.kG;else if(h.SJ6)w=h[Hs]?hAm(m,h[Hs],O):[],w=h.SJ6.apply(h,g.b(w));else if(h.Vc){w=h.Vc;var y=w[Hs]?hAm(m,w[Hs],O):[];w=new (Function.prototype.bind.apply(w,[null].concat(g.b(y))))}else throw Error("Could not resolve providers for: "+V);O.pop();h.sQr||m.L.set(V,w); return w}; hAm=function(m,V,O){return V?V.map(function(h){return h instanceof KM?TF(m,h.key,O,!0):TF(m,h,O)}):[]}; Y7=function(){$7||($7=new Oem);return $7}; yxa=function(){var m=whG;return function(){var V=Y7();if(!V.resolve(Ws(m))){var O={};Xk(V,(O.sB=m,O.Vc=m,O[Hs]=void 0,O))}return V.resolve(m)}}; ro=function(){var m,V;return"h5vcc"in k7&&((m=k7.h5vcc.traceEvent)==null?0:m.traceBegin)&&((V=k7.h5vcc.traceEvent)==null?0:V.traceEnd)?1:"performance"in k7&&k7.performance.mark&&k7.performance.measure?2:0}; cs=function(m){var V=ro();switch(V){case 1:k7.h5vcc.traceEvent.traceBegin("YTLR",m);break;case 2:k7.performance.mark(m+"-start");break;case 0:break;default:Yp(V,"unknown trace type")}}; j8U=function(m){var V=ro();switch(V){case 1:k7.h5vcc.traceEvent.traceEnd("YTLR",m);break;case 2:V=m+"-start";var O=m+"-end";k7.performance.mark(O);k7.performance.measure(m,V,O);break;case 0:break;default:Yp(V,"unknown trace type")}}; LPX=function(m){var V,O;(O=(V=window).onerror)==null||O.call(V,m.message,"",0,0,m)}; Jxl=function(m){var V=this;var O=O===void 0?0:O;var h=h===void 0?g.Od():h;this.D=O;this.scheduler=h;this.L=new g.R4;this.Z=m;for(m={aH:0};m.aH=1E3?w():h>=m?OZ||(OZ=h1(function(){w();OZ=void 0},0)):y-C>=10&&(HeG(V,O.tier),L.T=y)}; d7p=function(m,V){if(m.endpoint==="log_event"){g.Tm("more_accurate_gel_parser")&&GF().storePayload({isJspb:!1},m.payload);Bs(m);var O=l_(m),h=new Map;h.set(O,[m.payload]);var w=gF1(m.payload)||"";V&&(mr=new V);return new g.DA(function(y,L){mr&&mr.isReady()?TS3(h,mr,y,L,{bypassNetworkless:!0},!0,vs(w)):y()})}}; WPC=function(m,V,O){if(V.endpoint==="log_event"){Bs(void 0,V);var h=l_(V,!0),w=new Map;w.set(h,[JU(V.payload)]);O&&(mr=new O);return new g.DA(function(y){mr&&mr.isReady()?$7m(w,mr,y,{bypassNetworkless:!0},!0,vs(m)):y()})}}; l_=function(m,V){var O="";if(m.dangerousLogToVisitorSession)O="visitorOnlyApprovedKey";else if(m.cttAuthInfo){if(V===void 0?0:V){V=m.cttAuthInfo.token;O=m.cttAuthInfo;var h=new QC;O.videoId?h.setVideoId(O.videoId):O.playlistId&&Sq(h,2,w$,BN(O.playlistId));yZ[V]=h}else V=m.cttAuthInfo,O={},V.videoId?O.videoId=V.videoId:V.playlistId&&(O.playlistId=V.playlistId),jJ[m.cttAuthInfo.token]=O;O=m.cttAuthInfo.token}return O}; Ps=function(m,V,O){m=m===void 0?{}:m;V=V===void 0?!1:V;new g.DA(function(h,w){var y=VZ(V,O),L=y.D;y.D=!1;LD(y.L);LD(y.Z);y.Z=0;mr&&mr.isReady()?O===void 0&&g.Tm("enable_web_tiered_gel")?Yn5(h,w,m,V,300,L):Yn5(h,w,m,V,O,L):(HeG(V,O),h())})}; Yn5=function(m,V,O,h,w,y){var L=mr;O=O===void 0?{}:O;h=h===void 0?!1:h;w=w===void 0?200:w;y=y===void 0?!1:y;var C=new Map,E=new Map,q={isJspb:h,cttAuthInfo:void 0,tier:w},M={isJspb:h,cttAuthInfo:void 0};if(h){V=g.D(Object.keys(Q4));for(w=V.next();!w.done;w=V.next())w=w.value,E=g.Tm("enable_web_tiered_gel")?GF().smartExtractMatchingEntries({keys:[q,M],sizeLimit:1E3}):GF().extractMatchingEntries({isJspb:!0,cttAuthInfo:w}),E.length>0&&C.set(w,E),(g.Tm("web_fp_via_jspb_and_json")&&O.writeThenSend||!g.Tm("web_fp_via_jspb_and_json"))&& delete Q4[w];$7m(C,L,m,O,!1,y)}else{C=g.D(Object.keys(Q4));for(q=C.next();!q.done;q=C.next())q=q.value,M=g.Tm("enable_web_tiered_gel")?GF().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:q,tier:w},{isJspb:!1,cttAuthInfo:q}],sizeLimit:1E3}):GF().extractMatchingEntries({isJspb:!1,cttAuthInfo:q}),M.length>0&&E.set(q,M),(g.Tm("web_fp_via_jspb_and_json")&&O.writeThenSend||!g.Tm("web_fp_via_jspb_and_json"))&&delete Q4[q];TS3(E,L,m,V,O,!1,y)}}; HeG=function(m,V){function O(){Ps({writeThenSend:!0},m,V)} m=m===void 0?!1:m;V=V===void 0?200:V;var h=VZ(m,V),w=h===kgl||h===rxU?5E3:cx5;g.Tm("web_gel_timeout_cap")&&!h.Z&&(w=h1(function(){O()},w),h.Z=w); LD(h.L);w=g.Vf("LOGGING_BATCH_TIMEOUT",$4("web_gel_debounce_ms",1E4));g.Tm("shorten_initial_gel_batch_timeout")&&J1&&(w=D7m);w=h1(function(){$4("gel_min_batch_size")>0?GF().getSequenceCount({cttAuthInfo:void 0,isJspb:m,tier:V})>=NS5&&O():O()},w); h.L=w}; TS3=function(m,V,O,h,w,y,L){w=w===void 0?{}:w;var C=Math.round((0,g.TN)()),E=m.size,q=be7(L);m=g.D(m);var M=m.next();for(L={};!M.done;L={gk:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,cK:void 0,oT:void 0},M=m.next()){var f=g.D(M.value);M=f.next().value;f=f.next().value;L.batchRequest=g.n9({context:g.fn(V.config_||g.MC())});if(!g.cH(f)&&!g.Tm("throw_err_when_logevent_malformed_killswitch")){h();break}L.batchRequest.events=f;(f=jJ[M])&&nF0(L.batchRequest,M,f);delete jJ[M];L.dangerousLogToVisitorSession= M==="visitorOnlyApprovedKey";Sn$(L.batchRequest,C,L.dangerousLogToVisitorSession);ICa(w);L.cK=function(x){g.Tm("start_client_gcf")&&g.GV.B1(function(){return g.u(function(R){return g.I(R,eAX(x),0)})}); E--;E||O()}; L.gk=0;L.oT=function(x){return function(){x.gk++;if(w.bypassNetworkless&&x.gk===1)try{g.lu(V,q,x.batchRequest,CD({writeThenSend:!0},x.dangerousLogToVisitorSession,x.cK,x.oT,y)),J1=!1}catch(R){g.wt(R),h()}E--;E||O()}}(L); try{g.lu(V,q,L.batchRequest,CD(w,L.dangerousLogToVisitorSession,L.cK,L.oT,y)),J1=!1}catch(x){g.wt(x),h()}}}; $7m=function(m,V,O,h,w,y){h=h===void 0?{}:h;var L=Math.round((0,g.TN)()),C={value:m.size},E=new Map([].concat(g.b(m)));E=g.D(E);for(var q=E.next();!q.done;q=E.next()){var M=g.D(q.value).next().value,f=m.get(M);q=new g.vh;var x=V.config_||g.MC(),R=new a8,A=new I8;OA(A,1,x.I$);OA(A,2,x.Dt);wB(A,16,x.M5);OA(A,17,x.innertubeContextClientVersion);if(x.sL){var K=x.sL,X=new ne;K.coldConfigData&&OA(X,1,K.coldConfigData);K.appInstallData&&OA(X,6,K.appInstallData);K.coldHashData&&OA(X,3,K.coldHashData);K.hotHashData&& X.EV(K.hotHashData);ir(A,ne,62,X)}(K=g.WH.devicePixelRatio)&&K!=1&&dy(A,65,YX(K));K=Y4();K!==""&&OA(A,54,K);K=k4();if(K.length>0){X=new zg;for(var c=0;c65535&&(m=1);mT("BATCH_CLIENT_COUNTER",m);return m}; nF0=function(m,V,O){if(O.videoId)var h="VIDEO";else if(O.playlistId)h="PLAYLIST";else return;m.credentialTransferTokenTargetId=O;m.context=m.context||{};m.context.user=m.context.user||{};m.context.user.credentialTransferTokens=[{token:V,scope:h}]}; Bs=function(m,V){var O=g.$I("yt.logging.transport.enableScrapingForTest"),h=H7("il_payload_scraping");h=(h!==void 0?String(h):"")==="enable_il_payload_scraping";if(!O)if(h)Mb=[],g.TZ("yt.logging.transport.enableScrapingForTest",!0),g.TZ("yt.logging.transport.scrapedPayloadsForTesting",Mb),g.TZ("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.TZ("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.TZ("yt.logging.transport.scrapeClientEvent",!0);else return;O=g.$I("yt.logging.transport.scrapedPayloadsForTesting");h=g.$I("yt.logging.transport.payloadToScrape");V&&(V=V.payload,(V=g.$I("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(V)())&&O.push(V));V=g.$I("yt.logging.transport.scrapeClientEvent");if(h&&h.length>=1)for(var w=0;w0&&jv5(m,V,y)}else jv5(m,V)}; jv5=function(m,V,O){m=LTl(m);V=V?g.DV(V):"";O=O||5;J8()&&g.ZH(m,V,O)}; LTl=function(m){for(var V=g.D(J67),O=V.next();!O.done;O=V.next())m=eu(m,O.value);return"ST-"+p2(m).toString(36)}; CB0=function(m){if(m.name==="JavaException")return!0;m=m.stack;return m.includes("chrome://")||m.includes("-extension://")||m.includes("webkit-masked-url://")}; E4l=function(m){if(!m.stack)return!0;var V=!m.stack.includes("\n");return V&&m.stack.includes("ErrorType: ")||V&&m.stack.includes("Anonymous function (Unknown script")||m.stack.toLowerCase()==="not available"||m.fileName==="user-script"||m.fileName.startsWith("user-script:")?!0:!1}; qxa=function(){this.Dc=[];this.Wm=[]}; Hj=function(){if(!Xw){var m=Xw=new qxa;m.Wm.length=0;m.Dc.length=0;M6G(m,fHl)}return Xw}; M6G=function(m,V){V.Wm&&m.Wm.push.apply(m.Wm,V.Wm);V.Dc&&m.Dc.push.apply(m.Dc,V.Dc)}; xBa=function(m){function V(){return m.charCodeAt(h++)} var O=m.length,h=0;do{var w=TK(V);if(w===Infinity)break;var y=w>>3;switch(w&7){case 0:w=TK(V);if(y===2)return w;break;case 1:if(y===2)return;h+=8;break;case 2:w=TK(V);if(y===2)return m.substr(h,w);h+=w;break;case 5:if(y===2)return;h+=4;break;default:return}}while(h500));h++);h=w}else if(typeof m==="object")for(w in m){if(m[w]){var y=w;var L=m[w],C=V,E=O;y=typeof L!=="string"||y!=="clickTrackingParams"&&y!=="trackingParams"?0:(L=xBa(atob(L.replace(/-/g,"+").replace(/_/g,"/"))))?$L(y+".ve",L,C,E):0;h+=y;h+=$L(w,m[w],V,O);if(h>500)break}}else O[V]=YL(m),h+=O[V].length;else O[V]=YL(m),h+=O[V].length;return h}; $L=function(m,V,O,h){O+="."+m;m=YL(V);h[O]=m;return O.length+m.length}; YL=function(m){try{return(typeof m==="string"?m:String(JSON.stringify(m))).substr(0,500)}catch(V){return"unable to serialize "+typeof m+" ("+V.message+")"}}; r$=function(m){g.kL(m)}; g.cj=function(m){g.kL(m,"WARNING")}; g.kL=function(m,V){var O=O===void 0?{}:O;O.name=g.Vf("INNERTUBE_CONTEXT_CLIENT_NAME",1);O.version=g.Vf("INNERTUBE_CONTEXT_CLIENT_VERSION");V=V===void 0?"ERROR":V;var h=!1;V=V===void 0?"ERROR":V;h=h===void 0?!1:h;if(m){m.hasOwnProperty("level")&&m.level&&(V=m.level);if(g.Tm("console_log_js_exceptions")){var w=[];w.push("Name: "+m.name);w.push("Message: "+m.message);m.hasOwnProperty("params")&&w.push("Error Params: "+JSON.stringify(m.params));m.hasOwnProperty("args")&&w.push("Error args: "+JSON.stringify(m.args)); w.push("File name: "+m.fileName);w.push("Stacktrace: "+m.stack);window.console.log(w.join("\n"),m)}if(!(o40>=5)){w=[];for(var y=g.D(g4$),L=y.next();!L.done;L=y.next()){L=L.value;try{L()&&w.push(L())}catch(K){}}w=[].concat(g.b(A6$),g.b(w));var C=YJl(m);y=C.message||"Unknown Error";L=C.name||"UnknownError";var E=C.stack||m.L||"Not available";if(E.startsWith(L+": "+y)){var q=E.split("\n");q.shift();E=q.join("\n")}q=C.lineNumber||"Not available";C=C.fileName||"Not available";var M=0;if(m.hasOwnProperty("args")&& m.args&&m.args.length)for(var f=0;f=500);f++);else if(m.hasOwnProperty("params")&&m.params){var x=m.params;if(typeof m.params==="object")for(f in x){if(x[f]){var R="params."+f,A=YL(x[f]);O[R]=A;M+=R.length+A.length;if(M>500)break}}else O.params=YL(x)}if(w.length)for(f=0;f=500);f++);navigator.vendor&&!O.hasOwnProperty("vendor")&&(O["device.vendor"]=navigator.vendor);O={message:y,name:L,lineNumber:q, fileName:C,stack:E,params:O,sampleWeight:1};f=Number(m.columnNumber);isNaN(f)||(O.lineNumber=O.lineNumber+":"+f);if(m.level==="IGNORED")m=0;else a:{m=Hj();f=g.D(m.Wm);for(w=f.next();!w.done;w=f.next())if(w=w.value,O.message&&O.message.match(w.dC)){m=w.weight;break a}m=g.D(m.Dc);for(f=m.next();!f.done;f=m.next())if(f=f.value,f.callback(O)){m=f.weight;break a}m=1}O.sampleWeight=m;m=g.D(UBl);for(f=m.next();!f.done;f=m.next())if(f=f.value,f.mQ[O.name])for(y=g.D(f.mQ[O.name]),w=y.next();!w.done;w=y.next())if(L= w.value,w=O.message.match(L.lX)){O.params["params.error.original"]=w[0];y=L.groups;L={};for(q=0;q1E3&&g.cj(new g.no("IL Attach cache exceeded limit"))}C= az(O,V);uJ.has(C)?iJ(O,V):Za.set(C,!0)}}h=h.filter(function(M){M.csn!==V?(M.csn=V,M=!0):M=!1;return M}); O={csn:V,parentVe:O.getAsJson(),childVes:g.rb(h,function(M){return M.getAsJson()})}; V==="UNDEFINED_CSN"?GK("visualElementAttached",y,O):m?xL("visualElementAttached",O,m,y):g.Rz("visualElementAttached",O,y)}; bJ$=function(m,V,O,h,w,y,L){pD(O,V);h=eJ({cttAuthInfo:KD(V)||void 0,automatedLogEventSource:L},V);O={csn:V,ve:O.getAsJson(),eventType:1};w&&(O.clientData=w);V==="UNDEFINED_CSN"?GK("visualElementShown",h,O):m?xL("visualElementShown",O,m,h):g.Rz("visualElementShown",O,h)}; n4o=function(m,V,O,h){var w=(h=h===void 0?!1:h)?16:8;h=eJ({cttAuthInfo:KD(V)||void 0,endOfSequence:h,automatedLogEventSource:void 0},V);O={csn:V,ve:O.getAsJson(),eventType:w};V==="UNDEFINED_CSN"?GK("visualElementHidden",h,O):m?xL("visualElementHidden",O,m,h):g.Rz("visualElementHidden",O,h)}; Bj=function(m,V,O,h,w,y){Sxm(m,V,O,void 0,h,w,y)}; Sxm=function(m,V,O,h,w,y,L){pD(O,V);h=h||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";y=eJ({cttAuthInfo:KD(V)||void 0,automatedLogEventSource:L},V);O={csn:V,ve:O.getAsJson(),gestureType:h};w&&(O.clientData=w);V==="UNDEFINED_CSN"?GK("visualElementGestured",y,O):m?xL("visualElementGestured",O,m,y):g.Rz("visualElementGestured",O,y)}; IHI=function(){var m=x7(16);for(var V=[],O=0;O0&&O.push(g.Yc("BR"));O.push(g.kc(y))}):O.push(g.kc(h))}return O}; Cy=function(m,V,O,h){if(O==="child"){g.cI(V);var w;h===void 0?w=void 0:w=!Array.isArray(h)||h&&typeof h.G==="string"?[h]:h;O=uMX(m,w);O=g.D(O);for(m=O.next();!m.done;m=O.next())V.appendChild(m.value)}else O==="style"?g.wb(V,"cssText",h?h:""):h===null||h===void 0?V.removeAttribute(O):(m=h.toString(),O==="href"&&(m=g.K2(g.HM(m))),V.setAttribute(O,m))}; g.p=function(m){g.Ly.call(this,m);this.cD=!0;this.Qt=!1;this.listeners=[]}; g.ED=function(m){g.p.call(this,m);this.CA=new g.yh;g.a(this,this.CA)}; qP=function(m,V,O,h,w,y,L){L=L===void 0?null:L;g.ED.call(this,V);this.api=m;this.macros={};this.componentType=O;this.N=this.J=null;this.W6=L;this.layoutId=h;this.interactionLoggingClientData=w;this.sH=y;this.Je=null;this.cT=new qH(this.element);g.a(this,this.cT);this.nA=this.C(this.element,"click",this.onClick);this.v6=[];this.mS=new MH(this.onClick,this);g.a(this,this.mS);this.Aj=!1;this.EH=this.Zu=null}; MP=function(m,V){m=m===void 0?null:m;V=V===void 0?null:V;if(m==null)return g.cj(Error("Got null or undefined adText object")),"";var O=g.Gp(m.text);if(!m.isTemplated)return O;if(V==null)return g.cj(Error("Missing required parameters for a templated message")),O;m=g.D(Object.entries(V));for(V=m.next();!V.done;V=m.next()){var h=g.D(V.value);V=h.next().value;h=h.next().value;O=O.replace("{"+V+"}",h)}return O}; ziC=function(m){m=m===void 0?null:m;return m!=null&&(m=m.thumbnail,m!=null&&m.thumbnails!=null&&m.thumbnails.length!=0&&m.thumbnails[0].url!=null)?g.Gp(m.thumbnails[0].url):""}; ZJm=function(m){m=m===void 0?null:m;return m!=null&&(m=m.thumbnail,m!=null&&m.thumbnails!=null&&m.thumbnails.length!=0&&m.thumbnails[0].width!=null&&m.thumbnails[0].height!=null)?new g.LK(m.thumbnails[0].width||0,m.thumbnails[0].height||0):new g.LK(0,0)}; g.fy=function(m){if(m.simpleText)return m.simpleText;if(m.runs){var V=[];m=g.D(m.runs);for(var O=m.next();!O.done;O=m.next())O=O.value,O.text&&V.push(O.text);return V.join("")}return""}; g.x0=function(m){if(m.simpleText)return m=document.createTextNode(m.simpleText),m;var V=[];if(m.runs)for(var O=0;O1){for(var V=[m[0]],O=1;O0&&(this.Z=new g.mq(this.Jb,V,this),g.a(this,this.Z));this.K=new g.mq(this.Jb,O,this);g.a(this,this.K);this.V=JH7(this.L,w,1,h);g.a(this,this.V);this.J=JH7(this.L,0,h,1);g.a(this,this.J);this.T=new N2;g.a(this,this.T)}; JR=function(m,V){this.L=m;this.Z=V}; N3C=function(m){switch(m){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Yp(m,"unknown result type")}}; bp5=function(m,V){var O=1;m.isTrusted===!1&&(O=0);mT("ISDSTAT",O);CX(O,"i.s_",{triggerContext:"sk",metadata:V});return O}; nk7=function(m,V){var O=[];V?V.isTrusted===!0?O.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):V.isTrusted===!1?O.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):O.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):O.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");CX(0,"a.s_",{metadata:m,states:O});mT("ASDSTAT",0)}; CX=function(m,V,O){V=Sb1[V];var h,w,y={detected:m===0,source:""+V.L+((h=O.triggerContext)!=null?h:"")+((w=O.MQ)!=null?w:""),detectionStates:O.states,durationMs:O.k$};O.metadata&&(y.contentCpn=O.metadata.contentCpn,y.adCpn=O.metadata.adCpn);g.Rz("biscottiBasedDetection",y);V.Z!==void 0&&(O=Number(g.Vf("CATSTAT",0)),V.Z!==void 0?(V=V.Z,m=N3C(m),m=O&~(3<0}; xW=function(m,V,O,h,w,y){Pn.call(this,m,{G:"div",X:"ytp-ad-skip-button-slot"},"skip-button",V,O,h,w);var L=this;this.Ae=null;this.iH=!1;this.Mf=y;this.K=this.api.j().experiments.w0("enable_modern_skip_button_on_web");this.Xr=!1;this.T=new g.ED({G:"span",KA:["ytp-ad-skip-button-container"]});this.K&&this.T.element.classList.add("ytp-ad-skip-button-container-detached");g.a(this,this.T);this.T.g0(this.element);this.L=this.D=null;this.pA=new g.OR(this.T,500,!1,100,function(){return L.hide()}); g.a(this,this.pA);this.H6=new LX(this.T.element,15E3,5E3,.5,.5,this.K);g.a(this,this.H6);this.hide()}; ey$=function(m){m=m.Ae&&m.Ae.adRendererCommands;return(m&&m.clickCommand&&g.d(m.clickCommand,g.RR)&&g.d(m.clickCommand,g.RR).commands||[]).some(function(V){return V.adLifecycleCommand?IN0(V.adLifecycleCommand):!1})}; IN0=function(m){return m.action==="END_LINEAR_AD"||m.action==="END_LINEAR_AD_PLACEMENT"}; oR=function(m,V,O,h,w,y){Pn.call(this,m,{G:"div",X:"ytp-ad-skip-ad-slot"},"skip-ad",V,O,h,w);this.Ae=y;this.T=!1;this.K=0;this.D=this.L=null;this.hide()}; uSo=function(m,V){m.T||(m.T=!0,m.L&&(V?m.L.Ae.hide():m.L.hide()),V?(m=m.D,m.pA.show(),m.show()):m.D.show())}; gr=function(m,V,O,h){NP.call(this,m,V,O,h,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; AR=function(m,V,O,h,w,y,L){y=y===void 0?!1:y;L=L===void 0?!1:L;qP.call(this,m,{G:"span",X:"ytp-ad-simple-ad-badge"},"simple-ad-badge",V,O,h);this.D=w;this.Z=this.LA("ytp-ad-simple-ad-badge");(this.L=y)&&this.Z.classList.add("ytp-ad-simple-ad-badge--clean-player");L&&this.Z.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; UR=function(m,V,O,h,w){w=w===void 0?!1:w;wN.call(this,"player-overlay",m,{},V,h);this.videoAdDurationSeconds=O;this.interactionLoggingClientData=h;this.vL=w}; dr=function(m,V){g.yh.call(this);this.api=m;this.durationMs=V;this.Z=null;this.handler=new N2(this);g.a(this,this.handler);this.L=zy1;this.handler.C(this.api,"presentingplayerstatechange",this.Qm);this.Z=this.handler.C(this.api,"onAdPlaybackProgress",this.Yf)}; tR=function(m){g.yh.call(this);this.Z=!1;this.Kq=0;this.handler=new N2(this);g.a(this,this.handler);this.durationMs=m;this.timer=new g.ug(100);g.a(this,this.timer);this.handler.C(this.timer,"tick",this.Yf);this.L={seekableStart:0,seekableEnd:m/1E3,current:0};this.start()}; g.KX=function(m,V){var O=Math.abs(Math.floor(m)),h=Math.floor(O/86400),w=Math.floor(O%86400/3600),y=Math.floor(O%3600/60);O=Math.floor(O%60);if(V){V="";h>0&&(V+=" "+h+" Dias");if(h>0||w>0)V+=" "+w+" Horas";V+=" "+y+" Minutos";V+=" "+O+" Segundos";h=V.trim()}else{V="";h>0&&(V+=h+":",w<10&&(V+="0"));if(h>0||w>0)V+=w+":",y<10&&(V+="0");V+=y+":";O<10&&(V+="0");h=V+O}return m>=0?h:"-"+h}; g.W5=function(m){return(!("button"in m)||typeof m.button!=="number"||m.button===0)&&!("shiftKey"in m&&m.shiftKey)&&!("altKey"in m&&m.altKey)&&!("metaKey"in m&&m.metaKey)&&!("ctrlKey"in m&&m.ctrlKey)}; Xn=function(m,V,O,h,w,y,L){Pn.call(this,m,{G:"span",X:L?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",V,O,h,w);this.videoAdDurationSeconds=y;this.L=null;L&&this.api.j().L&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),GN&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; H5=function(m,V,O,h){Qh.call(this,m,V,O,h,"ytp-video-ad-top-bar-title","ad-title")}; Th=function(m){this.content=m.content;if(m.commandRuns){m=g.D(m.commandRuns);for(var V=m.next();!V.done;V=m.next())V=V.value,this.loggingDirectives=g.d(V,Zpo),V.onTap&&(this.interaction={onTap:V.onTap})}}; $W=function(m,V,O,h){qP.call(this,m,{G:"div",X:"ad-simple-attributed-string"},"ad-simple-attributed-string",V,O,h);this.hide()}; kW=function(m,V,O,h,w){qP.call(this,m,{G:"span",X:w?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",V,O,h);this.L=w;this.adBadgeText=new $W(this.api,this.layoutId,this.interactionLoggingClientData,this.sH);this.adBadgeText.g0(this.element);g.a(this,this.adBadgeText);w?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),GN&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; rr=function(m,V,O,h){qP.call(this,m,{G:"span",X:"ytp-ad-pod-index"},"ad-pod-index",V,O,h);this.api.j().L&&(this.element.classList.add("ytp-ad-pod-index--mweb"),GN&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; c5=function(m,V,O,h){qP.call(this,m,{G:"div",X:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",V,O,h);this.hide()}; Db=function(m,V){this.L=m;this.Z=V}; s$U=function(m,V){return m.L+V*(m.Z-m.L)}; N6=function(m,V,O){return m.Z-m.L?g.O2((V-m.L)/(m.Z-m.L),0,1):O!=null?O:Infinity}; bE=function(m,V,O,h){h=h===void 0?!1:h;g.ED.call(this,{G:"div",X:"ytp-ad-persistent-progress-bar-container",S:[{G:"div",X:"ytp-ad-persistent-progress-bar"}]});this.api=m;this.L=V;this.D=O;h&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.a(this,this.L);this.progressBar=this.LA("ytp-ad-persistent-progress-bar");this.Z=-1;this.C(m,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; nX=function(m,V,O,h,w,y){qP.call(this,m,{G:"div",X:"ytp-ad-player-overlay",S:[{G:"div",X:"ytp-ad-player-overlay-flyout-cta"},{G:"div",X:"ytp-ad-player-overlay-instream-info"},{G:"div",X:"ytp-ad-player-overlay-skip-or-preview"},{G:"div",X:"ytp-ad-player-overlay-progress-bar"},{G:"div",X:"ytp-ad-player-overlay-instream-user-sentiment"},{G:"div",X:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",V,O,h);this.V=y;this.K=this.LA("ytp-ad-player-overlay-flyout-cta");this.K.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.Z=this.LA("ytp-ad-player-overlay-instream-info");this.T=null;FBG(this)&&(m=$c("div"),g.EM(m,"ytp-ad-player-overlay-top-bar-gradients"),V=this.Z,V.parentNode&&V.parentNode.insertBefore(m,V),(V=this.api.getVideoData(2))&&V.isListed&&V.title&&(O=new H5(this.api,this.layoutId,this.interactionLoggingClientData,this.sH),O.g0(m),O.init(hh("ad-title"),{text:V.title},this.macros),g.a(this,O)),this.T=m);this.D=null;this.fA=this.LA("ytp-ad-player-overlay-skip-or-preview");this.H6=this.LA("ytp-ad-player-overlay-progress-bar"); this.iH=this.LA("ytp-ad-player-overlay-instream-user-sentiment");this.Ae=this.LA("ytp-ad-player-overlay-ad-disclosure-banner");this.L=w;g.a(this,this.L);this.hide()}; FBG=function(m){m=m.api.j();return g.Sm(m)&&m.L}; g.IR=function(m){m&=16777215;var V=[(m&16711680)>>16,(m&65280)>>8,m&255];m=V[0];var O=V[1];V=V[2];m=Number(m);O=Number(O);V=Number(V);if(m!=(m&255)||O!=(O&255)||V!=(V&255))throw Error('"('+m+","+O+","+V+'") is not a valid RGB color');O=m<<16|O<<8|V;return m<16?"#"+(16777216|O).toString(16).slice(1):"#"+O.toString(16)}; em=function(){}; aNX=function(){}; GvG=function(m){var V=new Uw;var O=new AH;O=OA(O,1,"botguard");m=OA(O,2,m);this.Z=Px0(V,AH,1,ip7,m)}; g.FI=function(){if(!uE){uE=new s7(new aNX);var m=$4("client_streamz_web_flush_count",-1);m!==-1&&(uE.D=m)}return uE}; zh=function(m){this.Z=new Na(m)}; pZ3=function(){var m=!1;try{m=!!window.sessionStorage.getItem("session_logininfo")}catch(V){m=!0}return(g.Vf("INNERTUBE_CLIENT_NAME")==="WEB"||g.Vf("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&m}; Zb=function(){var m=m===void 0?!0:m;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");mT("LOGIN_INFO","");m&&window.sessionStorage.setItem("from_switch_account","1");m=!0;m=m===void 0?!1:m;var V,O=B3p;O||(O=document.querySelector("#persist_identity"));if(V=O){var h=V.src?(new URL(V.src)).origin:"*";if(m){var w;(w=V.contentWindow)==null||w.postMessage({action:"clear"},h)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var y=window.sessionStorage.getItem("session_logininfo");if(y){var L;(L=V.contentWindow)==null||L.postMessage({loginInfo:y},h)}}}}catch(C){}}; sR=function(m){m&&(m.startsWith("https://accounts.google.com/AddSession")?Zb():m.startsWith("https://accounts.google.com/ServiceLogin")?Zb():m.startsWith("https://myaccount.google.com")&&g.IC(m).L.endsWith("/youtubeoptions")&&Zb());if(g.Vf("LOGGED_IN",!0)&&pZ3()){var V=g.Vf("VALID_SESSION_TEMPDATA_DOMAINS",[]);var O=g.HG(window.location.href);O&&V.push(O);O=g.HG(m);g.vH(V,O)||!O&&Qg(m,"/")?(V=$T(m),(V=JQ1(V))?(V=LTl(V),V=(V=g.sx(V)||null)?Tl(V):{}):V=null):V=null;V==null&&(V={});O=V;var h=void 0; pZ3()?(h||(h=g.Vf("LOGIN_INFO")),h?(O.session_logininfo=h,O=!0):O=!1):O=!1;O&&Wj(m,V)}}; g.lNp=function(m){var V=V===void 0?{}:V;var O=O===void 0?"":O;var h=h===void 0?window:h;m=g.N_(m,V);sR(m);O=g.HM(m+O);h=h.location;O=Tp(O);O!==void 0&&(h.href=O)}; g.Fn=function(m,V,O){V=V===void 0?{}:V;O=O===void 0?!1:O;var h=g.Vf("EVENT_ID");h&&(V.ei||(V.ei=h));V&&Wj(m,V);O||(sR(m),g.lNp(m))}; g.aR=function(m,V,O,h,w){w=w===void 0?!1:w;O&&Wj(m,O);O=g.HM(m);var y=g.K2(O);m!=y&&j6(Error("Unsafe window.open URL: "+m));m=y;V=V||p2(m).toString(36);try{if(w)return w=m,w=nNU(w),sR(w),g.Di(window,w,V,"attributionsrc")}catch(L){g.wt(L)}sR(m);return g.Di(window,O,V,h)}; Q$U=function(m){iE=m}; vk3=function(m){Gh=m}; PFa=function(m){pX=m}; Vr0=function(){m9p=pX=Gh=iE=null}; hQp=function(){var m=m===void 0?window.location.href:m;if(g.Tm("kevlar_disable_theme_param"))return null;var V=TU(m);if(g.Tm("enable_dark_theme_only_on_shorts")&&V!=null&&V.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var O=g.Ex(m).theme;return O35.get(O)||null}catch(h){}return null}; B5=function(){this.Z={};if(this.L=itp()){var m=g.sx("CONSISTENCY");m&&wE5(this,{encryptedTokenJarContents:m})}}; wE5=function(m,V){if(V.encryptedTokenJarContents&&(m.Z[V.encryptedTokenJarContents]=V,typeof V.expirationSeconds==="string")){var O=Number(V.expirationSeconds);setTimeout(function(){delete m.Z[V.encryptedTokenJarContents]},O*1E3); m.L&&g.ZH("CONSISTENCY",V.encryptedTokenJarContents,O,void 0,!0)}}; QM=function(){this.L=-1;var m=g.Vf("LOCATION_PLAYABILITY_TOKEN");g.Vf("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=lE(this))&&(m=this.localStorage.get("yt-location-playability-token"));m&&(this.locationPlayabilityToken=m,this.Z=void 0)}; lE=function(m){return m.localStorage===void 0?new yE("yt-client-location"):m.localStorage}; g.v5=function(m,V,O){V=V===void 0?!1:V;O=O===void 0?!1:O;var h=g.Vf("INNERTUBE_CONTEXT");if(!h)return g.kL(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};h=g.n9(h);g.Tm("web_no_tracking_params_in_shell_killswitch")||delete h.clickTracking;h.client||(h.client={});var w=h.client;w.clientName==="MWEB"&&w.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(w.clientFormFactor=g.Vf("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");w.screenWidthPoints=window.innerWidth;w.screenHeightPoints= window.innerHeight;w.screenPixelDensity=Math.round(window.devicePixelRatio||1);w.screenDensityFloat=window.devicePixelRatio||1;w.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var y=y===void 0?!1:y;var L=g.a$(),C="USER_INTERFACE_THEME_LIGHT";L.lH(165)?C="USER_INTERFACE_THEME_DARK":L.lH(174)?C="USER_INTERFACE_THEME_LIGHT":!g.Tm("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (C="USER_INTERFACE_THEME_DARK");y=y?C:hQp()||C;w.userInterfaceTheme=y;if(!V){if(y=rDX())w.connectionType=y;g.Tm("web_log_effective_connection_type")&&(y=DOm())&&(h.client.effectiveConnectionType=y)}var E;if(g.Tm("web_log_memory_total_kbytes")&&((E=g.WH.navigator)==null?0:E.deviceMemory)){var q;E=(q=g.WH.navigator)==null?void 0:q.deviceMemory;h.client.memoryTotalKbytes=""+E*1E6}g.Tm("web_gcf_hashes_innertube")&&(y=eaG())&&(q=y.coldConfigData,E=y.coldHashData,y=y.hotHashData,h.client.configInfo=h.client.configInfo|| {},q&&(h.client.configInfo.coldConfigData=q),E&&(h.client.configInfo.coldHashData=E),y&&(h.client.configInfo.hotHashData=y));q=g.Ex(g.WH.location.href);!g.Tm("web_populate_internal_geo_killswitch")&&q.internalcountrycode&&(w.internalGeo=q.internalcountrycode);w.clientName==="MWEB"||w.clientName==="WEB"?(w.mainAppWebInfo||(w.mainAppWebInfo={}),w.mainAppWebInfo.graftUrl=g.WH.location.href,g.Tm("kevlar_woffle")&&Wzl.instance&&(q=Wzl.instance,w.mainAppWebInfo.pwaInstallabilityStatus=!q.Z&&q.L?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),w.mainAppWebInfo.webDisplayMode=ZN(),w.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):w.clientName==="TVHTML5"&&(!g.Tm("web_lr_app_quality_killswitch")&&(q=g.Vf("LIVING_ROOM_APP_QUALITY"))&&(w.tvAppInfo=Object.assign(w.tvAppInfo||{},{appQuality:q})),q=g.Vf("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(w.tvAppInfo=Object.assign(w.tvAppInfo||{},{certificationScope:q}));if(!g.Tm("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var M=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(F){}M=void 0}M&&(w.timeZone=M)}(M=Y4())?w.experimentsToken=M:delete w.experimentsToken;M=k4();B5.instance||(B5.instance=new B5);h.request=Object.assign({},h.request,{internalExperimentFlags:M,consistencyTokenJars:H8(B5.instance.Z)});!g.Tm("web_prequest_context_killswitch")&&(M=g.Vf("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(h.request.externalPrequestContext=M);w=g.a$();M=w.lH(58);w=w.get("gsml","");h.user=Object.assign({}, h.user);M&&(h.user.enableSafetyMode=M);w&&(h.user.lockedSafetyMode=!0);g.Tm("warm_op_csn_cleanup")?O&&(V=g.t1())&&(h.clientScreenNonce=V):!V&&(V=g.t1())&&(h.clientScreenNonce=V);m&&(h.clickTracking={clickTrackingParams:m});if(m=g.$I("yt.mdx.remote.remoteClient_"))h.remoteClient=m;QM.getInstance().setLocationOnInnerTubeContext(h);try{var f=A6(),x=f.bid;delete f.bid;h.adSignalsInfo={params:[],bid:x};for(var R=g.D(Object.entries(f)),A=R.next();!A.done;A=R.next()){var K=g.D(A.value),X=K.next().value, c=K.next().value;f=X;x=c;m=void 0;(m=h.adSignalsInfo.params)==null||m.push({key:f,value:""+x})}var r,N;if(((r=h.client)==null?void 0:r.clientName)==="TVHTML5"||((N=h.client)==null?void 0:N.clientName)==="TVHTML5_UNPLUGGED"){var n=g.Vf("INNERTUBE_CONTEXT");n.adSignalsInfo&&(h.adSignalsInfo.advertisingId=n.adSignalsInfo.advertisingId,h.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",h.adSignalsInfo.limitAdTracking=n.adSignalsInfo.limitAdTracking)}}catch(F){g.kL(F)}return h}; Lm5=function(m,V){if(!m)return!1;var O,h=(O=g.d(m,yJ0))==null?void 0:O.signal;if(h&&V.cN)return!!V.cN[h];var w;if((O=(w=g.d(m,jep))==null?void 0:w.request)&&V.ly)return!!V.ly[O];for(var y in m)if(V.jL[y])return!0;return!1}; JJ1=function(m){var V={"Content-Type":"application/json"};g.Vf("EOM_VISITOR_DATA")?V["X-Goog-EOM-Visitor-Id"]=g.Vf("EOM_VISITOR_DATA"):g.Vf("VISITOR_DATA")&&(V["X-Goog-Visitor-Id"]=g.Vf("VISITOR_DATA"));V["X-Youtube-Bootstrap-Logged-In"]=g.Vf("LOGGED_IN",!1);g.Vf("DEBUG_SETTINGS_METADATA")&&(V["X-Debug-Settings-Metadata"]=g.Vf("DEBUG_SETTINGS_METADATA"));m!=="cors"&&((m=g.Vf("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(V["X-Youtube-Client-Name"]=m),(m=g.Vf("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(V["X-Youtube-Client-Version"]= m),(m=g.Vf("CHROME_CONNECTED_HEADER"))&&(V["X-Youtube-Chrome-Connected"]=m),(m=g.Vf("DOMAIN_ADMIN_STATE"))&&(V["X-Youtube-Domain-Admin-State"]=m));(m=g.Vf("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(V["X-YouTube-Lava-Device-Context"]=m);return V}; CC5=function(){this.Z={}}; P5=function(){this.mappings=new CC5}; mH=function(m){return function(){return new m}}; qdC=function(m){var V=V===void 0?"UNKNOWN_INTERFACE":V;if(m.length===1)return m[0];var O=EBC[V];if(O){O=new RegExp(O);for(var h=g.D(m),w=h.next();!w.done;w=h.next())if(w=w.value,O.exec(w))return w}var y=[];Object.entries(EBC).forEach(function(L){var C=g.D(L);L=C.next().value;C=C.next().value;V!==L&&y.push(C)}); O=new RegExp(y.join("|"));m.sort(function(L,C){return L.length-C.length}); h=g.D(m);for(w=h.next();!w.done;w=h.next())if(w=w.value,!O.exec(w))return w;return m[0]}; g.Vs=function(m){return"/youtubei/v1/"+qdC(m)}; OB=function(){}; hX=function(){}; w5=function(){}; ys=function(m){return g.$I("ytcsi."+(m||"")+"data_")||Mrm(m)}; ftX=function(){var m=ys();m.info||(m.info={});return m.info}; jY=function(m){m=ys(m);m.metadata||(m.metadata={});return m.metadata}; LP=function(m){m=ys(m);m.tick||(m.tick={});return m.tick}; JX=function(m){m=ys(m);if(m.gel){var V=m.gel;V.gelInfos||(V.gelInfos={});V.gelTicks||(V.gelTicks={})}else m.gel={gelTicks:{},gelInfos:{}};return m.gel}; x9$=function(m){m=JX(m);m.gelInfos||(m.gelInfos={});return m.gelInfos}; CP=function(m){var V=ys(m).nonce;V||(V=g.RH(16),ys(m).nonce=V);return V}; Mrm=function(m){var V={tick:{},info:{}};g.TZ("ytcsi."+(m||"")+"data_",V);return V}; EB=function(){var m=g.$I("ytcsi.debug");m||(m=[],g.TZ("ytcsi.debug",m),g.TZ("ytcsi.reference",{}));return m}; qg=function(m){m=m||"";var V=RQG();if(V[m])return V[m];var O=EB(),h={timerName:m,info:{},tick:{},span:{},jspbInfo:[]};O.push(h);return V[m]=h}; oB7=function(m){m=m||"";var V=RQG();V[m]&&delete V[m];var O=EB(),h={timerName:m,info:{},tick:{},span:{},jspbInfo:[]};O.push(h);V[m]=h}; RQG=function(){var m=g.$I("ytcsi.reference");if(m)return m;EB();return g.$I("ytcsi.reference")}; Mg=function(m){return gB7[m]||"LATENCY_ACTION_UNKNOWN"}; fP=function(m,V){RS.call(this,1,arguments);this.timer=V}; xo=function(){this.Z=0}; Ra=function(){xo.instance||(xo.instance=new xo);return xo.instance}; g5=function(m,V){oa[V]=oa[V]||{count:0};var O=oa[V];O.count++;O.time=(0,g.TN)();m.Z||(m.Z=g.mm(0,function(){var h=(0,g.TN)(),w;for(w in oa)oa[w]&&h-oa[w].time>6E4&&delete oa[w];m&&(m.Z=0)},5E3)); return O.count>5?(O.count===6&&Math.random()*1E5<1&&(O=new g.no("CSI data exceeded logging limit with key",V.split("_")),V.indexOf("plev")>=0||g.cj(O)),!0):!1}; AJI=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; U90=function(){var m;if(g.Tm("csi_use_performance_navigation_timing")){var V,O,h,w=AX==null?void 0:(m=AX.getEntriesByType)==null?void 0:(V=m.call(AX,"navigation"))==null?void 0:(O=V[0])==null?void 0:(h=O.toJSON)==null?void 0:h.call(O);w?(w.requestStart=UB(w.requestStart),w.responseEnd=UB(w.responseEnd),w.redirectStart=UB(w.redirectStart),w.redirectEnd=UB(w.redirectEnd),w.domainLookupEnd=UB(w.domainLookupEnd),w.connectStart=UB(w.connectStart),w.connectEnd=UB(w.connectEnd),w.responseStart=UB(w.responseStart), w.secureConnectionStart=UB(w.secureConnectionStart),w.domainLookupStart=UB(w.domainLookupStart),w.isPerformanceNavigationTiming=!0,m=w):m=AX.timing}else m=g.Tm("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(AX.timing)):AX.timing;return m}; UB=function(m){return Math.round(d5()+m)}; d5=function(){return(g.Tm("csi_use_time_origin")||g.Tm("csi_use_time_origin_tvhtml5"))&&AX.timeOrigin?Math.floor(AX.timeOrigin):AX.timing.navigationStart}; KP=function(m,V){tX("_start",m,V)}; Wy=function(m,V){if(!g.Tm("web_csi_action_sampling_enabled")||!ys(V).actionDisabled){var O=qg(V||"");Jc(O.info,m);m.loadType&&(O=m.loadType,jY(V).loadType=O);Jc(x9$(V),m);O=CP(V);V=ys(V).cttAuthInfo;Ra().info(m,O,V)}}; d9o=function(){var m,V,O,h;return((h=Y7().resolve(Ws(Ei))==null?void 0:(m=qC())==null?void 0:(V=m.loggingHotConfig)==null?void 0:(O=V.csiConfig)==null?void 0:O.debugTicks)!=null?h:[]).map(function(w){return Object.values(w)[0]})}; tX=function(m,V,O){if(!g.Tm("web_csi_action_sampling_enabled")||!ys(O).actionDisabled){var h=CP(O),w;if(w=g.Tm("web_csi_debug_sample_enabled")&&h){(Y7().resolve(Ws(Ei))==null?0:qC())&&!trC&&(trC=!0,tX("gcfl",(0,g.TN)(),O));var y,L,C;w=(Y7().resolve(Ws(Ei))==null?void 0:(y=qC())==null?void 0:(L=y.loggingHotConfig)==null?void 0:(C=L.csiConfig)==null?void 0:C.debugSampleWeight)||0;if(y=w!==0)b:{y=d9o();if(y.length>0)for(L=0;LO.duration?h:O},{duration:0}))&&V.startTime>0&&V.responseEnd>0&&(tX("wffs",UB(V.startTime)),tX("wffe",UB(V.responseEnd)))}; Yd3=function(m,V,O){AX&&AX.measure&&(m.startsWith("measure_")||(m="measure_"+m),O?AX.measure(m,V,O):V?AX.measure(m,V):AX.measure(m))}; kN$=function(m){var V=Xo("aft",m);if(V)return V;V=g.Vf((m||"")+"TIMING_AFT_KEYS",["ol"]);for(var O=V.length,h=0;h0&&Wy(V);V={isNavigation:!0,actionType:Mg(g.Vf("TIMING_ACTION"))};var O=g.Vf("PREVIOUS_ACTION");O&&(V.previousAction=Mg(O));if(O=g.Vf("CLIENT_PROTOCOL"))V.httpProtocol=O;if(O=g.Vf("CLIENT_TRANSPORT"))V.transportProtocol=O;(O=g.t1())&&O!=="UNDEFINED_CSN"&&(V.clientScreenNonce=O);O=XEl();if(O===1||O===-1)V.isVisible= !0;O=jY().loadType==="cold";var h=ftX();O||(O=h.yt_lt==="cold");if(O){V.loadType="cold";O=ftX();h=U90();var w=d5(),y=g.Vf("CSI_START_TIMESTAMP_MILLIS",0);y>0&&!g.Tm("embeds_web_enable_csi_start_override_killswitch")&&(w=y);w&&(tX("srt",h.responseStart),O.prerender!==1&&KP(w));O=D93();O>0&&tX("fpt",O);O=U90();O.isPerformanceNavigationTiming&&Wy({performanceNavigationTiming:!0},void 0);tX("nreqs",O.requestStart,void 0);tX("nress",O.responseStart,void 0);tX("nrese",O.responseEnd,void 0);O.redirectEnd- O.redirectStart>0&&(tX("nrs",O.redirectStart,void 0),tX("nre",O.redirectEnd,void 0));O.domainLookupEnd-O.domainLookupStart>0&&(tX("ndnss",O.domainLookupStart,void 0),tX("ndnse",O.domainLookupEnd,void 0));O.connectEnd-O.connectStart>0&&(tX("ntcps",O.connectStart,void 0),tX("ntcpe",O.connectEnd,void 0));O.secureConnectionStart>=d5()&&O.connectEnd-O.secureConnectionStart>0&&(tX("nstcps",O.secureConnectionStart,void 0),tX("ntcpe",O.connectEnd,void 0));AX&&"getEntriesByType"in AX&&$9$();O=[];if(document.querySelector&& AX&&AX.getEntriesByName)for(var L in $o)$o.hasOwnProperty(L)&&(h=$o[L],T1X(L,h)&&O.push(h));if(O.length>0)for(V.resourceInfo=[],L=g.D(O),O=L.next();!O.done;O=L.next())V.resourceInfo.push({resourceCache:O.value})}Wy(V);V=JX();V.preLoggedGelInfos||(V.preLoggedGelInfos=[]);L=V.preLoggedGelInfos;V=x9$();O=void 0;for(h=0;h-1&&(delete fo["@type"],F=fo);R&&m.L.has(R)&&m.L.delete(R);((Ko=V.config)==null?0:Ko.HCN)&&ko(V.config.HCN);if(F||(vX=m.D)==null||!vX.RuA(V.input,V.SP)){zl.Te(11);break}return g.I(zl,m.D.MGS(V.input,V.SP),12);case 12:F=zl.L;case 11:return eY(m, F,V),((L5=V.config)==null?0:L5.Wor)&&ko(V.config.Wor),h(),zl.return(F||void 0)}})}; i3X=function(m,V){a:{m=m.tC;var O,h=(O=g.d(V,yJ0))==null?void 0:O.signal;if(h&&m.cN&&(O=m.cN[h])){var w=O();break a}var y;if((O=(y=g.d(V,jep))==null?void 0:y.request)&&m.ly&&(y=m.ly[O])){w=y();break a}for(w in V)if(m.jL[w]&&(V=m.jL[w])){w=V();break a}w=void 0}if(w!==void 0)return Promise.resolve(w)}; pEC=function(m,V,O){var h,w,y,L,C,E,q;return g.u(function(M){if(M.Z==1){y=((h=V)==null?void 0:(w=h.hJ)==null?void 0:w.identity)||x5;E=(L=V)==null?void 0:(C=L.hJ)==null?void 0:C.sessionIndex;var f=g.bg(m.Z.ip(y,{sessionIndex:E}));return g.I(M,f,2)}q=M.L;return M.return(Promise.resolve(Object.assign({},JJ1(O),q)))})}; GNa=function(m,V,O){var h,w=(V==null?void 0:(h=V.hJ)==null?void 0:h.identity)||x5,y;V=V==null?void 0:(y=V.hJ)==null?void 0:y.sessionIndex;m=m.Z.ip(w,{sessionIndex:V});return Object.assign({},JJ1(O),m)}; uP=function(){}; zM=function(){}; ZY=function(m){this.N=m}; sB=function(){}; Fo=function(){}; aa=function(){}; iP=function(){}; g.GM=function(m,V){var O=g.AG.apply(2,arguments);m=m===void 0?0:m;g.no.call(this,V,O);this.errorType=m;Object.setPrototypeOf(this,this.constructor.prototype)}; pP=function(m){this.Z=m}; PCU=function(m,V,O){if(m.Z){var h=TU(eu(V,"key"))||"/UNKNOWN_PATH";m.Z.start(h)}m=O;g.Tm("wug_networking_gzip_request")&&(m=xaI(O));return new window.Request(V,m)}; g.lP=function(m,V){if(!By){var O=Y7();Xk(O,{sB:mCm,Vc:pP});var h={jL:{feedbackEndpoint:mH(sB),modifyChannelNotificationPreferenceEndpoint:mH(Fo),playlistEditEndpoint:mH(aa),shareEntityEndpoint:mH(ZY),subscribeEndpoint:mH(uP),unsubscribeEndpoint:mH(zM),webPlayerShareEntityServiceEndpoint:mH(iP)}},w=QM.getInstance(),y={};w&&(y.client_location=w);m===void 0&&(m=X30());V===void 0&&(V=O.resolve(mCm));ato(h,V,m,y);Xk(O,{sB:VMp,kG:nP.instance});By=O.resolve(VMp)}return By}; Ono=function(m){var V=new fC;if(m.interpreterJavascript){var O=q7l(m.interpreterJavascript);O=n2(O).toString();var h=new qO;OA(h,6,O);ir(V,qO,1,h,Ck)}else m.interpreterUrl&&(O=DC(m.interpreterUrl),O=dX(O).toString(),h=new MO,OA(h,4,O),ir(V,MO,2,h,Ck));m.interpreterHash&&hz(V,3,m.interpreterHash,Ck);m.program&&hz(V,4,m.program,Ck);m.globalName&&hz(V,5,m.globalName,Ck);m.clientExperimentsStateBlob&&hz(V,7,m.clientExperimentsStateBlob,Ck);return V}; Qs=function(m){var V={};m=m.split("&");m=g.D(m);for(var O=m.next();!O.done;O=m.next())O=O.value.split("="),O.length===2&&(V[O[0]]=O[1]);return V}; hIp=function(){var m=m===void 0?window:m;var V,O;return g.u(function(h){if(h.Z==1)return g.I(h,Cb(),2);V=m;O=V.bgevmc;if(!O)throw Error("BGE Controls not exposed");return h.return({pause:function(){O.p()}, resume:function(){O.r()}, checkForRefresh:function(){return O.cr()}})})}; PrI=function(){if(g.Tm("bg_st_hr"))return"havuokmhhs-0";var m,V=((m=globalThis.performance)==null?void 0:m.timeOrigin)||0;return"havuokmhhs-"+Math.floor(V)}; vy=function(m){window.bgens=m}; Py=function(m){this.Z=m}; wb0=function(){return new Promise(function(m){var V=window;V.ntpevasrs!==void 0?m(new Py(V.ntpevasrs)):(V.ntpqfbel===void 0&&(V.ntpqfbel=[]),V.ntpqfbel.push(function(O){m(new Py(O))}))})}; Ldp=function(){if(J8()){var m=g.Vf("PLAYER_VARS",{});if(g.DE(m,"privembed",!1)!="1"&&!vxp(m)){var V=function(){mZ=!0;"google_ad_status"in window?mT("DCLKSTAT",1):mT("DCLKSTAT",2)}; try{g.wo(yio,V)}catch(O){}jSX.push(g.GV.B1(function(){if(!(mZ||"google_ad_status"in window)){try{if(yio.toString()&&V){var O=""+g.S$(V),h=BO7[O];h&&g.OL(h)}}catch(w){}mZ=!0;mT("DCLKSTAT",3)}},5E3))}}}; Vy=function(){var m=Number(g.Vf("DCLKSTAT",0));return isNaN(m)?0:m}; yy=function(m,V,O){var h=this;this.network=m;this.options=V;this.T=O;this.D=0;this.Z=null;this.L=new pV5;if(V.nZr){var w=new g.R4;this.Z=w.promise;g.WH.ytAtRC?PZ(function(){var y,L;return g.u(function(C){if(C.Z==1){if(!g.WH.ytAtRC)return h.L.qC(1,h.D++),C.return();h.L.qC(2,h.D++);y=O4(null);return g.I(C,hZ(h,y),2)}L=C.L;g.WH.ytAtRC&&g.WH.ytAtRC(JSON.stringify(L));g.j$(C)})},2):this.L.qC(1,this.D++); wb0().then(function(y){var L,C,E,q;return g.u(function(M){if(M.Z==1)return y.bindInnertubeChallengeFetcher(function(f){h.L.qC(3,h.D++);return hZ(h,O4(f))}),g.I(M,Cb(),2); L=M.L;C=y.getLatestChallengeResponse();E=C.challenge;if(!E)throw Error("BGE_MACIL");q={challenge:E,VG:Qs(E),jK:L,bgChallenge:new fC};w.resolve(q);y.registerChallengeFetchedCallback(function(f){f=f.challenge;if(!f)throw Error("BGE_MACR");f={challenge:f,VG:Qs(f),jK:L,bgChallenge:new fC};h.Z=Promise.resolve(f)}); g.j$(M)})})}else V.preload&&JiX(this,new Promise(function(y){g.mm(0,function(){y(wH(h))},0)}))}; O4=function(m){var V={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};m&&(V.interpreterHash=m);return V}; wH=function(m,V){V=V===void 0?0:V;var O,h,w,y,L,C,E,q,M,f,x,R;return g.u(function(A){switch(A.Z){case 1:O=O4(AD().Z);if(g.Tm("att_fet_ks"))return g.JG(A,7),m.L.qC(5,m.D++),g.I(A,hZ(m,O),9);g.JG(A,4);return g.I(A,Cu3(m,O),6);case 6:L=A.L;w=L.FoH;y=L.f8Y;h=L;g.EJ(A,3);break;case 4:return g.qA(A),g.cj(Error("Failed to fetch attestation challenge after "+(V+" attempts; not retrying for 24h."))),jN(m,864E5),A.return({challenge:"",VG:{},jK:void 0,bgChallenge:void 0});case 9:h=A.L;if(!h)throw Error("Fetching Attestation challenge returned falsy"); if(!h.challenge)throw Error("Missing Attestation challenge");w=h.challenge;y=Qs(w);if("c1a"in y&&(!h.bgChallenge||!h.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.EJ(A,3);break;case 7:C=g.qA(A);g.cj(C);V++;if(V>=5)return g.cj(Error("Failed to fetch attestation challenge after "+(V+" attempts; not retrying for 24h."))),jN(m,864E5),A.return({challenge:"",VG:{},jK:void 0,bgChallenge:void 0});E=1E3*Math.pow(2,V-1)+Math.random()*1E3;return A.return(new Promise(function(K){g.mm(0, function(){K(wH(m,V))},E)})); case 3:q=Number(y.t)||7200;jN(m,q*1E3);M=void 0;if(!("c1a"in y&&h.bgChallenge)){A.Te(10);break}f=Ono(h.bgChallenge);g.JG(A,11);return g.I(A,Qq5(AD(),f),13);case 13:g.EJ(A,12);break;case 11:return x=g.qA(A),g.cj(x),A.return({challenge:w,VG:y,jK:M,bgChallenge:f});case 12:return g.JG(A,14),M=new o4({challenge:f,VL:{uX:"aGIf"}}),g.I(A,M.F7,16);case 16:g.EJ(A,10);break;case 14:R=g.qA(A),g.cj(R),M=void 0;case 10:return A.return({challenge:w,VG:y,jK:M,bgChallenge:f})}})}; E5G=function(m,V){var O;return g.u(function(h){if(h.Z==1)return vy(2),g.JG(h,2),g.I(h,hZ(m.network,V),4);if(h.Z!=2)return(O=h.L)?O.challenge&&!O.bgChallenge?vy(1):vy(4):vy(3),h.return(O);g.qA(h);vy(3);return h.return(void 0)})}; hZ=function(m,V){var O;return g.u(function(h){O=m.T;if(!O||O.KC())return h.return(E5G(m,V));bP("att_pna",void 0,"attestation_challenge_fetch");return h.return(new Promise(function(w){O.Yu("publicytnetworkstatus-online",function(){E5G(m,V).then(w)})}))})}; qip=function(m){if(!m)throw Error("Fetching Attestation challenge returned falsy");if(!m.challenge)throw Error("Missing Attestation challenge");var V=m.challenge,O=Qs(V);if("c1a"in O&&(!m.bgChallenge||!m.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},m,{FoH:V,f8Y:O})}; Cu3=function(m,V){var O,h,w,y,L;return g.u(function(C){switch(C.Z){case 1:O=void 0,h=0,w={};case 2:if(!(h<5)){C.Te(4);break}if(!(h>0)){C.Te(5);break}w.bJ=1E3*Math.pow(2,h-1)+Math.random()*1E3;return g.I(C,new Promise(function(E){return function(q){g.mm(0,function(){q(void 0)},E.bJ)}}(w)),5); case 5:return g.JG(C,7),m.L.qC(4,m.D++),g.I(C,hZ(m,V),9);case 9:return y=C.L,C.return(qip(y));case 7:O=L=g.qA(C),L instanceof Error&&g.cj(L);case 8:h++;w={bJ:void 0};C.Te(2);break;case 4:throw O;}})}; JiX=function(m,V){m.Z=V}; MM7=function(m){var V,O,h;return g.u(function(w){if(w.Z==1)return g.I(w,Promise.race([m.Z,null]),2);V=w.L;var y=wH(m);m.Z=y;(O=V)==null||(h=O.jK)==null||h.dispose();g.j$(w)})}; jN=function(m,V){function O(){var w;return g.u(function(y){w=h-Date.now();return w<1E3?g.I(y,MM7(m),0):(PZ(O,0,Math.min(w,6E4)),y.Te(0))})} var h=Date.now()+V;O()}; fvI=function(m,V){return new Promise(function(O){g.mm(0,function(){O(V())},m)})}; xCp=function(){return new Promise(function(m){var V=window;V.attmp!==void 0?m(V.attmp):(V.attmq===void 0&&(V.attmq=[]),V.attmq.push(function(O){m(O)}))})}; g.RI5=function(m,V){var O,h,w;return g.u(function(y){if(y.Z==1){if(!g.Tm("attmusi")||!g.Tm("attmusi_ue"))return y.Te(2);O=window;return O.attmp!==void 0?y.return(O.attmp.s("ENGAGEMENT_TYPE_PLAYBACK",m,V)):g.I(y,xCp(),3)}if(y.Z!=2)return h=y.L,y.return(h.s("ENGAGEMENT_TYPE_PLAYBACK",m,V));var L=g.$I("yt.aba.att");return(w=L?L:yy.instance!==void 0?yy.instance.K.bind(yy.instance):null)?y.return(w("ENGAGEMENT_TYPE_PLAYBACK",m,V)):y.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.o53=function(){var m,V,O;return g.u(function(h){if(h.Z==1){if(!g.Tm("attmusi")||!g.Tm("attmusi_ue"))return h.Te(2);m=window;return m.attmp===void 0?h.return(!1):g.I(h,xCp(),3)}if(h.Z!=2)return V=h.L,h.return(V.ir());var w=g.$I("yt.aba.att2");return(O=w?w:yy.instance!==void 0?yy.instance.N.bind(yy.instance):null)?h.return(O()):h.return(Promise.resolve(!1))})}; Ai7=function(m,V){var O=g.$I("ytDebugData.callbacks");O||(O={},g.TZ("ytDebugData.callbacks",O));if(g.Tm("web_dd_iu")||g5a.includes(m))O[m]=V}; LG=function(){var m=UCo;var V=V===void 0?[]:V;var O=O===void 0?[]:O;V=yP$.apply(null,[jbU.apply(null,g.b(V))].concat(g.b(O)));this.store=JP5(m,void 0,V)}; g.JZ=function(m,V,O){for(var h=Object.assign({},m),w=g.D(Object.keys(V)),y=w.next();!y.done;y=w.next()){y=y.value;var L=m[y],C=V[y];if(C===void 0)delete h[y];else if(L===void 0)h[y]=C;else if(Array.isArray(C)&&Array.isArray(L))h[y]=O?[].concat(g.b(L),g.b(C)):C;else if(!Array.isArray(C)&&g.NA(C)&&!Array.isArray(L)&&g.NA(L))h[y]=g.JZ(L,C,O);else if(typeof C===typeof L)h[y]=C;else return V=new g.no("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:y,WPY:L,updateValue:C}),g.kL(V), m}return h}; CG=function(m){var V=this;m=m===void 0?[]:m;this.Z=[];this.D=this.L=0;this.T=void 0;this.totalLength=0;m.forEach(function(O){V.append(O)})}; dCC=function(m,V){return m.Z.length===0?!1:(m=m.Z[m.Z.length-1])&&m.buffer===V.buffer&&m.byteOffset+m.length===V.byteOffset}; E4=function(m,V){V=g.D(V.Z);for(var O=V.next();!O.done;O=V.next())m.append(O.value)}; qq=function(m,V,O){return m.split(V).Ni.split(O).tP}; Mq=function(m){m.T=void 0;m.L=0;m.D=0}; fG=function(m,V,O){m.isFocused(V);return V-m.D+O<=m.Z[m.L].length}; tMa=function(m){if(!m.T){var V=m.Z[m.L];m.T=new DataView(V.buffer,V.byteOffset,V.length)}return m.T}; KdU=function(m,V,O){V=V===void 0?0:V;O=O===void 0?-1:O;if(!m.totalLength||!O)return new DataView(new ArrayBuffer(0));O<0&&(O=m.totalLength-V);m.focus(V);if(!fG(m,V,O)){var h=m.L,w=m.D;m.focus(V+O-1);w=new Uint8Array(m.D+m.Z[m.L].length-w);for(var y=0,L=h;L<=m.L;L++)w.set(m.Z[L],y),y+=m.Z[L].length;m.Z.splice(h,m.L-h+1,w);Mq(m);m.focus(V)}h=m.Z[m.L];return new DataView(h.buffer,h.byteOffset+V-m.D,O)}; Ri=function(m,V,O){m=KdU(m,V===void 0?0:V,O===void 0?-1:O);return new Uint8Array(m.buffer,m.byteOffset,m.byteLength)}; oi=function(m,V,O){m=Ri(m,V===void 0?0:V,O===void 0?-1:O);V=new Uint8Array(m.length);try{V.set(m)}catch(h){for(O=0;O>10;y=56320|y&1023}dH[w++]=y}}y=String.fromCharCode.apply(String,dH); w<1024&&(y=y.substring(0,w));O.push(y)}return O.join("")}; Wv=function(m,V){var O;if((O=KG)==null?0:O.encodeInto)return V=KG.encodeInto(m,V),V.read>6|192:((w&64512)===55296&&h+1>18|240,V[O++]=w>>12&63|128):V[O++]=w>>12|224,V[O++]=w>>6&63|128),V[O++]=w&63|128)}return O}; X3=function(m){if(KG)return KG.encode(m);var V=new Uint8Array(Math.ceil(m.length*1.2)),O=Wv(m,V);V.lengthO&&(V=V.subarray(0,O));return V}; Hv=function(m){this.Z=m;this.pos=0;this.L=-1}; Tk=function(m){var V=gH(m.Z,m.pos);++m.pos;if(V<128)return V;for(var O=V&127,h=1;V>=128;)V=gH(m.Z,m.pos),++m.pos,h*=128,O+=(V&127)*h;return O}; $y=function(m,V){var O=m.L;for(m.L=-1;m.pos+1<=m.Z.totalLength;){O<0&&(O=Tk(m));var h=O>>3,w=O&7;if(h===V)return!0;if(h>V){m.L=O;break}O=-1;switch(w){case 0:Tk(m);break;case 1:m.pos+=8;break;case 2:h=Tk(m);m.pos+=h;break;case 5:m.pos+=4}}return!1}; Yy=function(m,V){if($y(m,V))return Tk(m)}; ky=function(m,V){if($y(m,V))return V=Ri(m.Z,m.pos,8),m.pos+=8,(new DataView(V.buffer,V.byteOffset,V.byteLength)).getFloat64(0,!0)}; rH=function(m,V){if($y(m,V))return!!Tk(m)}; cv=function(m,V){if($y(m,V)){V=Tk(m);var O=Ri(m.Z,m.pos,V);m.pos+=V;return O}}; D$=function(m,V){if(m=cv(m,V))return g.tZ(m)}; Nq=function(m,V,O){if(m=cv(m,V))return O(new Hv(new CG([m])))}; bo=function(m,V){for(var O=[];$y(m,V);)O.push(Tk(m));return O.length?O:void 0}; nG=function(m,V,O){for(var h=[],w;w=cv(m,V);)h.push(O(new Hv(new CG([w]))));return h.length?h:void 0}; SN=function(m,V){m=m instanceof Uint8Array?new CG([m]):m;return V(new Hv(m))}; Hn7=function(m,V){m=new Uint8Array(m);V&&m.set(V);return m}; TMC=function(m){this.pos=0;this.L=[];this.Z=Hn7(m===void 0?4096:m);this.view=new DataView(this.Z.buffer,this.Z.byteOffset,this.Z.byteLength)}; Ii=function(m,V){V=m.pos+V;if(!(m.Z.length>=V)){for(var O=m.Z.length*2;O268435455){Ii(m,4);for(var O=V&1073741823,h=0;h<4;h++)m.view.setUint8(m.pos,O&127|128),O>>=7,m.pos+=1;V=Math.floor(V/268435456)}for(Ii(m,4);V>127;)m.view.setUint8(m.pos,V&127|128),V>>=7,m.pos+=1;m.view.setUint8(m.pos,V);m.pos+=1}; uo=function(m,V,O){O!==void 0&&(eN(m,V*8),eN(m,O))}; zk=function(m,V,O){O!==void 0&&uo(m,V,O?1:0)}; Z$=function(m,V,O){O!==void 0&&(eN(m,V*8+2),V=O.length,eN(m,V),Ii(m,V),m.Z.set(O,m.pos),m.pos+=V)}; s4=function(m,V,O){O!==void 0&&($CI(m,V,Math.ceil(Math.log2(O.length*4+2)/7)),Ii(m,O.length*1.2),V=Wv(O,m.Z.subarray(m.pos)),m.pos+V>m.Z.length&&(Ii(m,V),V=Wv(O,m.Z.subarray(m.pos))),m.pos+=V,Yi$(m))}; $CI=function(m,V,O){O=O===void 0?2:O;eN(m,V*8+2);m.L.push(m.pos);m.L.push(O);m.pos+=O}; Yi$=function(m){for(var V=m.L.pop(),O=m.L.pop(),h=m.pos-O-V;V--;){var w=V?128:0;m.view.setUint8(O++,h&127|w);h>>=7}}; F3=function(m,V,O,h,w){O&&($CI(m,V,w===void 0?3:w),h(m,O),Yi$(m))}; g.ai=function(m,V){var O=new TMC(4096);V(O,m);return new Uint8Array(O.Z.buffer,O.Z.byteOffset,O.pos)}; g.io=function(m){var V=new Hv(new CG([sS(decodeURIComponent(m))]));m=D$(V,2);V=Yy(V,4);var O=k5X[V];if(typeof O==="undefined")throw m=new g.no("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:V}),g.kL(m),m;return{AM:V,entityType:O,entityId:m}}; g.Gk=function(m,V){var O=O===void 0?0:O;var h=new TMC;Z$(h,2,X3(m));m=ril[V];if(typeof m==="undefined")throw O=new g.no("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:V}),g.kL(O),O;uo(h,4,m);uo(h,5,1);V=new Uint8Array(h.Z.buffer,h.Z.byteOffset,h.pos);return encodeURIComponent(g.zI(V,O))}; pG=function(m,V,O,h){if(h===void 0)return h=Object.assign({},m[V]||{}),O=(delete h[O],h),h={},Object.assign({},m,(h[V]=O,h));var w={},y={};return Object.assign({},m,(y[V]=Object.assign({},m[V],(w[O]=h,w)),y))}; ciG=function(m,V,O,h,w){var y=m[V];if(y==null||!y[O])return m;h=g.JZ(y[O],h,w==="REPEATED_FIELDS_MERGE_OPTION_APPEND");w={};y={};return Object.assign({},m,(y[V]=Object.assign({},m[V],(w[O]=h,w)),y))}; DCa=function(m,V){m=m===void 0?{}:m;switch(V.type){case "ENTITY_LOADED":return V.payload.reduce(function(h,w){var y,L=(y=w.options)==null?void 0:y.persistenceOption;if(L&&L!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&L!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return h;if(!w.entityKey)return g.kL(Error("Missing entity key")),h;if(w.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!w.payload)return w=new g.no("REPLACE entity mutation is missing a payload",{entityKey:w.entityKey}),g.kL(w),h;var C=g.Xp(w.payload); return pG(h,C,w.entityKey,w.payload[C])}if(w.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{w=w.entityKey;try{var E=g.io(w).entityType;C=pG(h,E,w);break a}catch(f){if(f instanceof Error){w=new g.no("Failed to deserialize entity key",{entityKey:w,originalMessage:f.message});g.kL(w);C=h;break a}throw f;}C=void 0}return C}if(w.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!w.payload)return w=new g.no("UPDATE entity mutation is missing a payload",{entityKey:w.entityKey}),g.kL(w),h;C=g.Xp(w.payload);var q,M;return ciG(h, C,w.entityKey,w.payload[C],(q=w.fieldMask)==null?void 0:(M=q.mergeOptions)==null?void 0:M.repeatedFieldsMergeOption)}return h},m); case "REPLACE_ENTITY":var O=V.payload;return pG(m,O.entityType,O.key,O.uV);case "REPLACE_ENTITIES":return Object.keys(V.payload).reduce(function(h,w){var y=V.payload[w];return Object.keys(y).reduce(function(L,C){return pG(L,w,C,y[C])},h)},m); case "UPDATE_ENTITY":return O=V.payload,ciG(m,O.entityType,O.key,O.uV,O.OVH);default:return m}}; Bv=function(m,V,O){return m[V]?m[V][O]||null:null}; lo=function(m){return window.Int32Array?new Int32Array(m):Array(m)}; OG=function(m){g.Z.call(this);this.counter=[0,0,0,0];this.L=new Uint8Array(16);this.Z=16;if(!NMG){var V,O=new Uint8Array(256),h=new Uint8Array(256);var w=1;for(V=0;V<256;V++)O[w]=V,h[V]=w,w^=w<<1^(w>>7&&283);Qy=new Uint8Array(256);vv=lo(256);Pv=lo(256);mW=lo(256);V_=lo(256);for(var y=0;y<256;y++){w=y?h[255^O[y]]:0;w^=w<<1^w<<2^w<<3^w<<4;w=w&255^w>>>8^99;Qy[y]=w;V=w<<1^(w>>7&&283);var L=V^w;vv[y]=V<<24|w<<16|w<<8|L;Pv[y]=L<<24|vv[y]>>>8;mW[y]=w<<24|Pv[y]>>>8;V_[y]=w<<24|mW[y]>>>8}NMG=!0}w=lo(44);for(O= 0;O<4;O++)w[O]=m[4*O]<<24|m[4*O+1]<<16|m[4*O+2]<<8|m[4*O+3];for(h=1;O<44;O++)m=w[O-1],O%4||(m=(Qy[m>>16&255]^h)<<24|Qy[m>>8&255]<<16|Qy[m&255]<<8|Qy[m>>>24],h=h<<1^(h>>7&&283)),w[O]=w[O-4]^m;this.key=w}; bnU=function(m){for(var V=m.key,O=m.counter[0]^V[0],h=m.counter[1]^V[1],w=m.counter[2]^V[2],y=m.counter[3]^V[3],L=3;L>=0&&!(m.counter[L]=-~m.counter[L]);L--);for(var C,E,q=4;q<40;)L=vv[O>>>24]^Pv[h>>16&255]^mW[w>>8&255]^V_[y&255]^V[q++],C=vv[h>>>24]^Pv[w>>16&255]^mW[y>>8&255]^V_[O&255]^V[q++],E=vv[w>>>24]^Pv[y>>16&255]^mW[O>>8&255]^V_[h&255]^V[q++],y=vv[y>>>24]^Pv[O>>16&255]^mW[h>>8&255]^V_[w&255]^V[q++],O=L,h=C,w=E;m=m.L;L=V[40];m[0]=Qy[O>>>24]^L>>>24;m[1]=Qy[h>>16&255]^L>>16&255;m[2]=Qy[w>>8&255]^ L>>8&255;m[3]=Qy[y&255]^L&255;L=V[41];m[4]=Qy[h>>>24]^L>>>24;m[5]=Qy[w>>16&255]^L>>16&255;m[6]=Qy[y>>8&255]^L>>8&255;m[7]=Qy[O&255]^L&255;L=V[42];m[8]=Qy[w>>>24]^L>>>24;m[9]=Qy[y>>16&255]^L>>16&255;m[10]=Qy[O>>8&255]^L>>8&255;m[11]=Qy[h&255]^L&255;L=V[43];m[12]=Qy[y>>>24]^L>>>24;m[13]=Qy[O>>16&255]^L>>16&255;m[14]=Qy[h>>8&255]^L>>8&255;m[15]=Qy[w&255]^L&255}; y_=function(){if(!h4&&!g.p3){if(wL)return wL;var m;wL=(m=window.crypto)==null?void 0:m.subtle;var V,O,h;if(((V=wL)==null?0:V.importKey)&&((O=wL)==null?0:O.sign)&&((h=wL)==null?0:h.encrypt))return wL;wL=void 0}}; g.J4=function(m){var V=y_();V&&(this.Z=new jH(m,V));this.L=new g.Lq(m)}; jH=function(m,V){this.L=m;this.subtleCrypto=V}; n5$=function(m,V,O){var h,w;return g.u(function(y){switch(y.Z){case 1:if(m.Z){y.Te(2);break}return g.I(y,m.subtleCrypto.importKey("raw",m.L,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:m.Z=y.L;case 2:return h={name:"AES-CTR",counter:O,length:128},g.I(y,m.subtleCrypto.encrypt(h,m.Z,V),4);case 4:return w=y.L,y.return(new Uint8Array(w))}})}; g.Lq=function(m){this.L=m}; Cq=function(m){this.K=new Uint8Array(64);this.D=new Uint8Array(64);this.T=0;this.N=new Uint8Array(64);this.L=0;this.K.set(m);this.D.set(m);for(m=0;m<64;m++)this.K[m]^=92,this.D[m]^=54;this.reset()}; Sia=function(m,V,O){for(var h=m.J,w=m.Z[0],y=m.Z[1],L=m.Z[2],C=m.Z[3],E=m.Z[4],q=m.Z[5],M=m.Z[6],f=m.Z[7],x,R,A,K=0;K<64;)K<16?(h[K]=A=V[O]<<24|V[O+1]<<16|V[O+2]<<8|V[O+3],O+=4):(x=h[K-2],R=h[K-15],A=h[K-7]+h[K-16]+((x>>>17|x<<15)^(x>>>19|x<<13)^x>>>10)+((R>>>7|R<<25)^(R>>>18|R<<14)^R>>>3),h[K]=A),x=f+EG[K]+A+((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&q^~E&M),R=((w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10))+(w&y^w&L^y&L),f=x+R,C+=x,K++,K<16?(h[K]=A=V[O]<<24|V[O+1]<<16|V[O+2]<<8|V[O+3],O+=4):(x= h[K-2],R=h[K-15],A=h[K-7]+h[K-16]+((x>>>17|x<<15)^(x>>>19|x<<13)^x>>>10)+((R>>>7|R<<25)^(R>>>18|R<<14)^R>>>3),h[K]=A),x=M+EG[K]+A+((C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7))+(C&E^~C&q),R=((f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10))+(f&w^f&y^w&y),M=x+R,L+=x,K++,K<16?(h[K]=A=V[O]<<24|V[O+1]<<16|V[O+2]<<8|V[O+3],O+=4):(x=h[K-2],R=h[K-15],A=h[K-7]+h[K-16]+((x>>>17|x<<15)^(x>>>19|x<<13)^x>>>10)+((R>>>7|R<<25)^(R>>>18|R<<14)^R>>>3),h[K]=A),x=q+EG[K]+A+((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&C^ ~L&E),R=((M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10))+(M&f^M&w^f&w),q=x+R,y+=x,K++,K<16?(h[K]=A=V[O]<<24|V[O+1]<<16|V[O+2]<<8|V[O+3],O+=4):(x=h[K-2],R=h[K-15],A=h[K-7]+h[K-16]+((x>>>17|x<<15)^(x>>>19|x<<13)^x>>>10)+((R>>>7|R<<25)^(R>>>18|R<<14)^R>>>3),h[K]=A),x=E+EG[K]+A+((y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&L^~y&C),R=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&M^q&f^M&f),A=f,f=C,C=A,A=M,M=L,L=A,A=q,q=y,y=A,E=w+x,w=x+R,K++;m.Z[0]=w+m.Z[0]|0;m.Z[1]=y+m.Z[1]|0;m.Z[2]=L+m.Z[2]|0;m.Z[3]= C+m.Z[3]|0;m.Z[4]=E+m.Z[4]|0;m.Z[5]=q+m.Z[5]|0;m.Z[6]=M+m.Z[6]|0;m.Z[7]=f+m.Z[7]|0}; eIo=function(m){var V=new Uint8Array(32),O=64-m.L;m.L>55&&(O+=64);var h=new Uint8Array(O);h[0]=128;for(var w=m.T*8,y=1;y<9;y++){var L=w%256;h[O-y]=L;w=(w-L)/256}m.update(h);for(O=0;O<8;O++)V[O*4]=m.Z[O]>>>24,V[O*4+1]=m.Z[O]>>>16&255,V[O*4+2]=m.Z[O]>>>8&255,V[O*4+3]=m.Z[O]&255;Iva(m);return V}; Iva=function(m){m.Z=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];m.J=[];m.J.length=64;m.T=0;m.L=0}; uE3=function(m){this.Z=m}; zIm=function(m,V,O){m=new Cq(m.Z);m.update(V);m.update(O);V=eIo(m);m.update(m.K);m.update(V);V=eIo(m);m.reset();return V}; Znm=function(m){this.L=m}; sS3=function(m,V,O,h){var w,y,L;return g.u(function(C){switch(C.Z){case 1:if(m.Z){C.Te(2);break}return g.I(C,h.importKey("raw",m.L,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:m.Z=C.L;case 2:return w=new Uint8Array(V.length+O.length),w.set(V),w.set(O,V.length),y={name:"HMAC",hash:"SHA-256"},g.I(C,h.sign(y,m.Z,w),4);case 4:return L=C.L,C.return(new Uint8Array(L))}})}; FdX=function(m,V,O){m.D||(m.D=new uE3(m.L));return zIm(m.D,V,O)}; avX=function(m,V,O){var h,w;return g.u(function(y){if(y.Z==1){h=y_();if(!h)return y.return(FdX(m,V,O));g.JG(y,3);return g.I(y,sS3(m,V,O,h),5)}if(y.Z!=3)return y.return(y.L);w=g.qA(y);g.cj(w);h4=!0;return y.return(FdX(m,V,O))})}; G5a=function(m){for(var V="",O=0;O=0||n6(m,0,"gad_source",m.search(Su))>=0}; V80=function(){this.Z=new Map}; hYX=function(m,V){var O=Y7().resolve(OM$);if(mH1(V)){var h=Iq(V,"gclid");V={handleEvent:function(C){m&&!m.closed&&typeof m.postMessage==="function"&&C&&C.origin&&C.source===m&&C.data&&C.data.action==="gcl_setup"&&m.postMessage(Object.assign({},{action:"gcl_transfer"},h&&{gclid:h},{gadSource:2}),C.origin)}}; for(var w=g.D(O.Z),y=w.next();!y.done;y=w.next()){var L=g.D(y.value);y=L.next().value;L=L.next().value;if(y.closed)try{window.removeEventListener("message",L),O.Z.delete(y)}catch(C){g.kL(C)}}m&&O.Z.size<15&&(O.Z.set(m,V),window.addEventListener("message",V))}}; qS=function(m,V,O){if(!V)return m.length>=1?m[m.length-1]:null;for(var h=g.D(m),w=h.next();!w.done;w=h.next())if(w=w.value,w.width&&w.height&&(O&&w.width>=V||!O&&w.height>=V))return w;for(V=m.length-1;V>=0;V--)if(O&&m[V].width||!O&&m[V].height)return m[V];return m[0]}; MS=function(){this.state=1;this.jK=null;this.VW=void 0}; ycU=function(m,V,O,h,w,y){var L=L===void 0?"trayride":L;O?(m.Mq(2),g.wo(g.N7(O),function(){if(window[L])wsI(m,h,L,w);else{m.Mq(3);var C=pD$(O),E=document.getElementById(C);E&&(iYX(C),E.parentNode.removeChild(E));g.cj(new g.no("BL:ULB",""+O))}},y)):V?(y=g.Yc("SCRIPT"),V instanceof bx?(y.textContent=n2(V),Sv(y)):y.textContent=V,y.nonce=Ni(document),document.head.appendChild(y),document.head.removeChild(y),window[L]?wsI(m,h,L,w):(m.Mq(4),g.cj(new g.no("BL:ULBJ")))):g.cj(new g.no("BL:ULV"))}; wsI=function(m,V,O,h){m.Mq(5);var w=!!m.VW&&jHI.includes(g.HG(m.VW)||"");try{var y=new o4({program:V,globalName:O,VL:{disable:!g.Tm("att_web_record_metrics")||!g.Tm("att_skip_metrics_for_cookieless_domains_ks")&&w,uX:"aGIf"}});y.F7.then(function(){m.Mq(6);h&&h(V)}); m.kU(y)}catch(L){m.Mq(7),L instanceof Error&&g.cj(L)}}; fq=function(){var m=g.$I("yt.abuse.playerAttLoader");return m&&["bgvma","bgvmb","bgvmc"].every(function(V){return V in m})?m:null}; xv=function(){MS.apply(this,arguments)}; RG=function(m){this.W1=m}; LQU=function(m,V,O){for(var h=!1,w=g.D(m.v7.entries()),y=w.next();!y.done;y=w.next())y=g.D(y.value).next().value,y.slotType==="SLOT_TYPE_PLAYER_BYTES"&&y.aY==="core"&&(h=!0);if(h){a:if(!O){m=g.D(m.v7.entries());for(O=m.next();!O.done;O=m.next())if(h=g.D(O.value),O=h.next().value,h=h.next().value,O.slotType==="SLOT_TYPE_IN_PLAYER"&&O.aY==="core"){O=h.layoutId;break a}O=void 0}O?V.a5(O):ER("No triggering layout ID available when attempting to mute.")}}; oG=function(m,V){this.zZ=m;this.Xl=V}; gL=function(){}; A4=function(){}; C_1=function(m){g.Z.call(this);var V=this;this.xf=m;this.Z=new Map;UG(this,"commandExecutorCommand",function(O,h,w){Jcl(V,O.commands,h,w)}); UG(this,"clickTrackingParams",function(){})}; E7C=function(m,V){UG(m,V.Ur(),function(O,h,w){V.WC(O,h,w)})}; UG=function(m,V,O){m.UH();m.Z.get(V)&&g.kL(Error("Extension name "+V+" already registered"));m.Z.set(V,O)}; Jcl=function(m,V,O,h){V=V===void 0?[]:V;m.UH();var w=[],y=[];V=g.D(V);for(var L=V.next();!L.done;L=V.next())L=L.value,g.d(L,qL3)||g.d(L,M83)?w.push(L):y.push(L);w=g.D(w);for(V=w.next();!V.done;V=w.next())dL(m,V.value,O,h);y=g.D(y);for(w=y.next();!w.done;w=y.next())dL(m,w.value,O,h)}; dL=function(m,V,O,h){m.UH();V.loggingUrls&&fBG(m,"loggingUrls",V.loggingUrls,O,h);V=g.D(Object.entries(V));for(var w=V.next();!w.done;w=V.next()){var y=g.D(w.value);w=y.next().value;y=y.next().value;w==="openPopupAction"?m.xf.get().V2("innertubeCommand",{openPopupAction:y}):w==="confirmDialogEndpoint"?m.xf.get().V2("innertubeCommand",{confirmDialogEndpoint:y}):xH5.hasOwnProperty(w)||fBG(m,w,y,O,h)}}; fBG=function(m,V,O,h,w){if((m=m.Z.get(V))&&typeof m==="function")try{m(O,h,w)}catch(y){g.kL(y)}else V=new g.no("Unhandled field",V),g.cj(V)}; t4=function(m,V,O){this.Us=m;this.Z=V;this.qf=O;Xk(Y7(),{sB:OM$,Vc:V80})}; Kq=function(m){this.value=m}; Wl=function(m){this.value=m}; Xb=function(m){this.value=m}; Hl=function(m){this.value=m}; TQ=function(m){this.value=m}; $v=function(m){this.value=m}; Yv=function(m){this.value=m}; kv=function(){Kq.apply(this,arguments)}; rL=function(m){this.value=m}; cl=function(m){this.value=m}; Dr=function(m){this.value=m}; NS=function(m){this.value=m}; bv=function(m){this.value=m}; nq=function(m){this.value=m}; SH=function(m){this.value=m}; IG=function(m){this.value=m}; eH=function(m){this.value=m}; uv=function(m){this.value=m}; zQ=function(){Kq.apply(this,arguments)}; Zr=function(m){this.value=m}; sG=function(m){this.value=m}; Fb=function(m){this.value=m}; aG=function(m){this.value=m}; iv=function(m){this.value=m}; GQ=function(m){this.value=m}; pq=function(m){this.value=m}; Bl=function(m){this.value=m}; lv=function(m){this.value=m}; Q_=function(m){this.value=m}; vl=function(m){this.value=m}; Pl=function(m){this.value=m}; mG=function(m){this.value=m}; Vi=function(m){this.value=m}; Os=function(m){this.value=m}; h0=function(m){this.value=m}; w6=function(m){this.value=m}; yi=function(m){this.value=m}; j0=function(m){this.value=m}; LQ=function(m){this.value=m}; J0=function(m){this.value=m}; CQ=function(m){this.value=m}; Es=function(m){this.value=m}; qz=function(m){this.value=m}; Mz=function(m){this.value=m}; fQ=function(m){this.value=m}; xA=function(m){this.value=m}; RX=function(m){this.value=m}; oX=function(m){this.value=m}; g6=function(m){this.value=m}; A0=function(m){this.value=m}; Us=function(m){this.value=m}; d6=function(m){this.value=m}; t0=function(m){this.value=m}; KQ=function(m){this.value=m}; W9=function(m){this.value=m}; XN=function(m){this.value=m}; H9=function(m){this.value=m}; TJ=function(m){this.value=m}; var q3X=function(m,V){return qm[J[4]](this,57,m,V)}; $A=function(m){this.value=m}; YA=function(){Kq.apply(this,arguments)}; kA=function(m){this.value=m}; r6=function(){Kq.apply(this,arguments)}; c9=function(){Kq.apply(this,arguments)}; Df=function(){Kq.apply(this,arguments)}; Nz=function(){Kq.apply(this,arguments)}; bf=function(){Kq.apply(this,arguments)}; nQ=function(m){this.value=m}; S0=function(m){this.value=m}; IX=function(m){this.value=m}; e0=function(m){this.value=m}; zJ=function(m,V,O){if(O&&!O.includes(m.layoutType))return!1;V=g.D(V);for(O=V.next();!O.done;O=V.next())if(!uf(m.clientMetadata,O.value))return!1;return!0}; Zf=function(){return""}; RY3=function(m,V){switch(m){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 V(m),8}}; FN=function(m,V,O,h){h=h===void 0?!1:h;aA.call(this,m);this.l4=O;this.Sp=h;this.args=[];V&&this.args.push(V)}; v=function(m,V,O,h){h=h===void 0?!1:h;aA.call(this,m);this.l4=O;this.Sp=h;this.args=[];V&&this.args.push(V)}; aX=function(m){var V=new Map;m.forEach(function(O){V.set(O.Z(),O)}); this.Z=V}; uf=function(m,V){return m.Z.has(V)}; GJ=function(m,V){m=m.Z.get(V);if(m!==void 0)return m.get()}; pQ=function(m){return Array.from(m.Z.keys())}; B9=function(m,V,O){if(O&&O!==m.slotType)return!1;V=g.D(V);for(O=V.next();!O.done;O=V.next())if(!uf(m.clientMetadata,O.value))return!1;return!0}; g7p=function(m){var V;return((V=o7a.get(m))==null?void 0:V.L5)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; Qi=function(m,V){var O={type:V.slotType,controlFlowManagerLayer:AcX.get(V.aY)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};V.slotEntryTrigger&&(O.entryTriggerType=V.slotEntryTrigger.triggerType);V.slotPhysicalPosition!==1&&(O.slotPhysicalPosition=V.slotPhysicalPosition);if(m){O.debugData={slotId:V.slotId};if(m=V.slotEntryTrigger)O.debugData.slotEntryTriggerData=lf(m);m=V.slotFulfillmentTriggers;O.debugData.fulfillmentTriggerData=[];m=g.D(m);for(var h=m.next();!h.done;h=m.next())O.debugData.fulfillmentTriggerData.push(lf(h.value)); V=V.slotExpirationTriggers;O.debugData.expirationTriggerData=[];V=g.D(V);for(m=V.next();!m.done;m=V.next())O.debugData.expirationTriggerData.push(lf(m.value))}return O}; UH5=function(m,V){var O={type:V.layoutType,controlFlowManagerLayer:AcX.get(V.aY)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};m&&(O.debugData={layoutId:V.layoutId});return O}; lf=function(m,V){var O={type:m.triggerType};V!=null&&(O.category=V);m.triggeringSlotId!=null&&(O.triggerSourceData||(O.triggerSourceData={}),O.triggerSourceData.associatedSlotId=m.triggeringSlotId);m.triggeringLayoutId!=null&&(O.triggerSourceData||(O.triggerSourceData={}),O.triggerSourceData.associatedLayoutId=m.triggeringLayoutId);return O}; dH$=function(m,V,O,h){V={opportunityType:V};m&&(h||O)&&(h=g.rb(h||[],function(w){return Qi(m,w)}),V.debugData=Object.assign({},O&&O.length>0?{associatedSlotId:O}:{},h.length>0?{slots:h}:{})); return V}; P9=function(m,V){return function(O){return t8a(v9(m),V.slotId,V.slotType,V.slotPhysicalPosition,V.aY,V.slotEntryTrigger,V.slotFulfillmentTriggers,V.slotExpirationTriggers,O.layoutId,O.layoutType,O.aY)}}; t8a=function(m,V,O,h,w,y,L,C,E,q,M){return{adClientDataEntry:{slotData:Qi(m,{slotId:V,slotType:O,slotPhysicalPosition:h,aY:w,slotEntryTrigger:y,slotFulfillmentTriggers:L,slotExpirationTriggers:C,clientMetadata:new aX([])}),layoutData:UH5(m,{layoutId:E,layoutType:q,aY:M,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],uo:new Map,clientMetadata:new aX([]),PD:{}})}}}; Vt=function(m){this.ze=m;m=Math.random();var V=this.ze.get();V=g.m9(V.U.j().experiments,"html5_debug_data_log_probability");V=Number.isFinite(V)&&V>=0&&V<=1?V:0;this.Z=m>31));uo(m,16,V.KeY);uo(m,17,V.detailedNetworkType);uo(m,18,V.Tz);uo(m,19,V.zz);uo(m,21,V.cZS);uo(m,23,V.w3);uo(m,28,V.fD);uo(m,29,V.qJN);uo(m,34,V.visibility);O=V.playbackRate;if(O!==void 0){var h=new ArrayBuffer(4);(new Float32Array(h))[0]=O;O=(new Uint32Array(h))[0];if(O!==void 0)for(eN(m,285),Ii(m,4),h=0;h<4;)m.view.setUint8(m.pos,O&255),O>>=8,m.pos+=1,h+=1}uo(m,36,V.Bu); F3(m,38,V.mediaCapabilities,MOm,3);uo(m,39,V.yZr);uo(m,40,V.Qy);uo(m,44,V.playerState);zk(m,46,V.bu);uo(m,48,V.fX);uo(m,50,V.uG);uo(m,51,V.zO);uo(m,54,V.q6);if(V.Nt)for(O=0;O>31));s4(m,2,V.message)}; tOX=function(m,V){uo(m,1,V.clientState);F3(m,2,V.w8Y,UPX,1)}; Ah$=function(m,V){Z$(m,1,V.tJS);F3(m,2,V.PwH,dPp,3);F3(m,3,V.coldStartInfo,tOX,3)}; g0a=function(m,V){uo(m,1,V.type);Z$(m,2,V.value)}; o0I=function(m,V){s4(m,1,V.hl);s4(m,12,V.deviceMake);s4(m,13,V.deviceModel);uo(m,16,V.clientName);s4(m,17,V.clientVersion);s4(m,18,V.osName);s4(m,19,V.osVersion)}; K7m=function(m,V){s4(m,1,V.name);s4(m,2,V.value)}; Wg=function(m,V){s4(m,1,V.url);if(V.lA)for(var O=0;O55?"60":V>49?"50":V>39?"48":"")));this.qualityLabel=m;this.Z=E||"";this.primaries=q||""}; YH=function(m,V){var O=Math.max(m,V);m=Math.min(m,V);V=cg[0];for(var h=0;h=Math.floor(y*16/9)*1.3||m>=y*1.3)return V;V=w}return"tiny"}; b6=function(m,V,O){O=O===void 0?{}:O;this.id=m;this.mimeType=V;O.Rr>0||(O.Rr=16E3);Object.assign(this,O);m=g.D(this.id.split(";"));this.itag=m.next().value;this.Z=m.next().value;this.containerType=D6(V);this.B6=N3[this.itag]||""}; n$=function(m){return m.B6==="9"||m.B6==="("||m.B6==="9h"||m.B6==="(h"}; jRX=function(m){return m.B6==="H"||m.B6==="h"}; Sc=function(m){return m.B6==="9h"||m.B6==="(h"}; LiG=function(m){return!!m.He&&!!m.He.fairplay&&(m.B6==="("||m.B6==="(h"||m.B6==="A"||m.B6==="MEAC3")||Ic&&!!m.He&&m.B6==="1e"}; ec=function(m){return m.B6==="1"||m.B6==="1h"||Ic&&m.B6==="1e"}; u6=function(m){return m.B6==="mac3"||m.B6==="meac3"||m.B6==="m"||m.B6==="i"||JR1(m)}; JR1=function(m){return m.B6==="MAC3"||m.B6==="MEAC3"||m.B6==="M"||m.B6==="I"}; g.Fy=function(m){return m.containerType===1}; CE5=function(m){return m.B6==="("||m.B6==="(h"||m.B6==="H"||Ic&&m.B6==="1e"}; ac=function(m){return m.mimeType==="application/x-mpegURL"}; g.i6=function(m,V){return{itag:+m.itag,lmt:V?0:m.lastModified,xtags:m.Z||""}}; EWX=function(m){var V=navigator.mediaCapabilities;if(V==null||!V.decodingInfo||m.B6==="f")return Promise.resolve();var O={type:m.audio&&m.video?"file":"media-source"};m.video&&(O.video={contentType:m.mimeType,width:m.video.width||640,height:m.video.height||360,bitrate:m.Rr*8||1E6,framerate:m.video.fps||30});m.audio&&(O.audio={contentType:m.mimeType,channels:""+(m.audio.numChannels||2),bitrate:m.Rr*8||128E3,samplerate:m.audio.sampleRate||44100});return V.decodingInfo(O).then(function(h){m.L=h})}; GA=function(m){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(m)}; p$=function(m){return/(vp9|vp09|vp8|avc1|av01|av02)/.test(m)}; Bg=function(m){return m.includes("vtt")||m.includes("text/mp4")}; D6=function(m){return m.indexOf("/mp4")>=0?1:m.indexOf("/webm")>=0?2:m.indexOf("/x-flv")>=0?3:m.indexOf("/vtt")>=0?4:0}; l6=function(m,V,O,h,w,y,L){var C=new oc;V in g.kH||(V="small");V==="light"&&(V="tiny");h&&w?(w=Number(w),h=Number(h)):(w=g.kH[V],h=Math.round(w*16/9));y=new rk(h,w,0,null,void 0,V,y,L);m=unescape(m.replace(/"/g,'"'));return new b6(O,m,{audio:C,video:y})}; QK=function(m,V){return{start:function(O){return m[O]}, end:function(O){return V[O]}, length:m.length}}; qR7=function(m,V,O){for(var h=[],w=[],y=0;y=V)return O}catch(h){}return-1}; mu=function(m,V){return Pg(m,V)>=0}; MmC=function(m,V){if(!m)return NaN;V=Pg(m,V);return V>=0?m.start(V):NaN}; V8=function(m,V){if(!m)return NaN;V=Pg(m,V);return V>=0?m.end(V):NaN}; Ot=function(m){return m&&m.length?m.end(m.length-1):NaN}; hT=function(m){return Ot(m)>0}; wG=function(m,V){m=V8(m,V);return m>=0?m-V:0}; y8=function(m,V,O){for(var h=[],w=[],y=0;yO||(h.push(Math.max(V,m.start(y))-V),w.push(Math.min(O,m.end(y))-V));return QK(h,w)}; j7=function(m,V,O,h){g.yh.call(this);var w=this;this.hq=m;this.start=V;this.end=O;this.isActive=h;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.R1={error:function(){!w.UH()&&w.isActive&&w.publish("error",w)}, updateend:function(){!w.UH()&&w.isActive&&w.publish("updateend",w)}}; this.hq.Yh(this.R1);this.Gm=this.isActive}; JT=function(m,V,O,h,w,y){g.yh.call(this);var L=this;this.XA=m;this.yC=V;this.id=O;this.containerType=h;this.B6=w;this.Z8=y;this.rE=this.Hk=this.Cf=null;this.uS=!1;this.appendWindowStart=this.timestampOffset=0;this.oR=QK([],[]);this.EY=!1;this.KF=[];this.k_=LS?[]:void 0;this.handler=function(E){return L.publish(E.type,L)}; var C;if((C=this.XA)==null?0:C.addEventListener)this.XA.addEventListener("updateend",this.handler),this.XA.addEventListener("error",this.handler)}; CS=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; Et=function(m,V){this.Dj=m;this.Z=V===void 0?!1:V;this.L=!1}; qv=function(m,V,O){O=O===void 0?!1:O;g.Z.call(this);this.mediaElement=m;this.P6=V;this.isView=O;this.T=0;this.K=!1;this.N=!0;this.Qt=0;this.callback=null;this.V=!1;this.P6||(this.yC=this.mediaElement.Ir());this.events=new g.Rc(this);g.a(this,this.events);this.D=new Et(this.P6?window.URL.createObjectURL(this.P6):this.yC.webkitMediaSourceURL,!0);m=this.P6||this.yC;bF(this.events,m,["sourceopen","webkitsourceopen"],this.WXr);bF(this.events,m,["sourceclose","webkitsourceclose"],this.SZH);this.J={updateend:this.ZK}}; Mv=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; fb3=function(m){return window.MediaSource?new qv(m,new window.MediaSource,!1):window.ManagedMediaSource?new qv(m,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new qv(m,new window.WebKitMediaSource,!1):new qv(m,void 0,!1)}; x63=function(m,V){fS(m)?g.rw(function(){V(m)}):m.callback=V}; RR7=function(m,V,O){if(x_){var h;m.mediaElement.N2("rms",{l:"mswssb",sr:(h=m.mediaElement.RY)==null?void 0:h.Ug()},!1);V.Yh(m.J,m);O.Yh(m.J,m)}m.Z=V;m.L=O;g.a(m,V);g.a(m,O)}; RT=function(m){return!!m.Z||!!m.L}; fS=function(m){try{return oT(m)==="open"}catch(V){return!1}}; oT=function(m){if(m.P6)return m.P6.readyState;switch(m.yC.webkitSourceState){case m.yC.SOURCE_OPEN:return"open";case m.yC.SOURCE_ENDED:return"ended";default:return"closed"}}; gG=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; oWU=function(m,V,O,h){if(!m.Z||!m.L)return null;var w=m.Z.isView()?m.Z.hq:m.Z,y=m.L.isView()?m.L.hq:m.L,L=new qv(m.mediaElement,m.P6,!0);L.D=m.D;RR7(L,new j7(w,V,O,h),new j7(y,V,O,h));fS(m)||m.Z.BU(m.Z.OU());return L}; AT=function(m){var V;(V=m.Z)==null||V.IP();var O;(O=m.L)==null||O.IP();m.N=!1}; Ut=function(){var m=this;this.CD=this.W9=F05;this.promise=new g.DA(function(V,O){m.W9=V;m.CD=O})}; dG=function(){g.Z.call(this);this.c8=!1;this.Dj=null;this.v6=this.mS=!1;this.Qt=new g.dw;this.Zu=this.RY=null;g.a(this,this.Qt)}; gWo=function(m,V,O){m.isPaused()||m.getCurrentTime()>V||O>10||(m.play(),g.t6(function(){gWo(m,m.getCurrentTime(),O+1)},500))}; AR5=function(m,V){m.Dj&&m.Dj.equals(V)||(m.Dj&&m.Dj.dispose(),m.Dj=V)}; tT=function(m){m.sZ()&&(m.RY&&m.RY.Xw("rs_s"),GN&&m.getCurrentTime()>0&&m.seekTo(0),m.qd(),m.load(),AR5(m,null));delete m.J}; g.KS=function(m,V,O){this.MU=V===void 0?null:V;this.seekSource=O===void 0?null:O;this.state=m||64}; Wm=function(m,V,O){O=O===void 0?!1:O;return U6C(m,V.getCurrentTime(),(0,g.TN)(),V.Iz(),O)}; X7=function(m,V,O,h){if(!(V===m.state&&O===m.MU&&h===m.seekSource||V!==void 0&&(V&128&&!O||V&2&&V&16))){var w;if(w=V)w=V||m.state,w=!!(w&16||w&32);m=new g.KS(V,O,w?h?h:m.seekSource:null)}return m}; Hm=function(m,V,O){return X7(m,m.state|V,null,O===void 0?null:O)}; TP=function(m,V){return X7(m,m.state&~V,null,null)}; $_=function(m,V,O,h){return X7(m,(m.state|V)&~O,null,h===void 0?null:h)}; g.l=function(m,V){return!!(m.state&V)}; g.Y_=function(m,V){return V.state===m.state&&V.MU===m.MU}; k_=function(m){return m.isPlaying()&&!g.l(m,16)&&!g.l(m,32)}; rG=function(m){return g.l(m,128)?-1:g.l(m,2)?0:g.l(m,2048)?3:g.l(m,64)?-1:g.l(m,1)&&!g.l(m,32)?3:g.l(m,8)?1:g.l(m,4)?2:-1}; DI=function(m,V,O,h,w,y,L,C,E,q,M,f,x,R,A,K){g.Z.call(this);var X=this;this.sV=m;this.slot=V;this.layout=O;this.qf=h;this.du=w;this.Nf=y;this.Ge=L;this.FH=C;this.FA=E;this.Hl=q;this.position=f;this.T=x;this.ze=R;this.SC=A;this.context=K;this.vj=!0;this.D=!1;this.Zf="not_rendering";this.Z=!1;m=GJ(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.r0=new xV(O.uo,this.qf,m,O.layoutId);var c;m=((c=cm(this))==null?void 0:c.progressCommands)||[];this.L=new YV(E,m,O.layoutId,function(){return X.p$()})}; cm=function(m){return GJ(m.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; d67=function(m){ER("Received layout exit signal when not in layout exit flow.",m.slot,m.layout)}; tm5=function(m){var V;return((V=wk(m.Nf.get(),2))==null?void 0:V.clientPlaybackNonce)||""}; Ki$=function(m,V){switch(V){case "normal":m.sU("complete");break;case "skipped":m.sU("skip");break;case "abandoned":d0(m.r0,"impression")&&m.sU("abandon")}}; WiX=function(m,V){m.D||(V=new g.q6(V.state,new g.KS),m.D=!0);return V}; X5a=function(m,V){mF(V)?m.Hl(1):g.fX(V,4)&&!g.fX(V,2)&&m.AX();M6(V,4)<0&&!(M6(V,2)<0)&&m.cE()}; HXU=function(m){m.position===0&&(m.FH.get(),m=GJ(m.layout.clientMetadata,"metadata_type_ad_placement_config").kind,m={adBreakType:Nv(m)},ko("ad_bl"),g.r5(m))}; bd=function(m,V){AL(m.r0,V,!m.Z)}; $6a=function(m){var V;return(((V=cm(m))==null?void 0:V.progressCommands)||[]).findIndex(function(O){return!!g.d(O==null?void 0:O.command,Tr3)})!==-1}; g.nS=function(m,V,O){DY(m,O)||bP(m,V,O);DY(m,"video_to_ad")||bP(m,V,"video_to_ad");DY(m,"ad_to_video")||bP(m,V,"ad_to_video");DY(m,"ad_to_ad")||bP(m,V,"ad_to_ad")}; S7=function(m){DI.call(this,m.sV,m.slot,m.lw,m.qf,m.du,m.Nf,m.Ge,m.FH,m.FA,m.Hl,m.JO,m.N6,m.DU,m.ze,m.SC,m.context);var V=this;this.x3=!0;this.Bb=this.Kq=0;this.DZ=BI(function(){V.sV.dY(V.slot,V.layout)}); this.xf=m.xf;this.JO=m.JO;this.tK=BI(function(){V.Zf!=="rendering_stop_requested"&&V.JO(V);V.layoutExitReason?V.sV.sI(V.slot,V.layout,V.layoutExitReason):d67(V)}); this.timer=new g.ug(200);this.timer.listen("tick",function(){V.Yf()}); g.a(this,this.timer)}; YR3=function(m){m.Bb=Date.now();IT(m,m.Kq);m.timer.start()}; IT=function(m,V){V={current:V/1E3,duration:m.p$()/1E3};m.xf.get().V2("onAdPlaybackProgress",V)}; zP=function(m){DI.call(this,m.callback,m.slot,m.lw,m.qf,m.du,m.Nf,m.Ge,m.FH,m.FA,m.Hl,m.JO,m.N6,m.DU,m.ze,m.SC,m.context);var V=this;this.adCpn="";this.jj=this.qt=0;this.DZ=BI(function(){V.sV.dY(V.slot,V.layout)}); this.tK=BI(function(){V.Zf!=="rendering_stop_requested"&&V.JO(V);V.layoutExitReason?V.sV.sI(V.slot,V.layout,V.layoutExitReason):d67(V)}); this.PW=m.PW;this.XH=m.XH;this.zj=m.zj;this.xf=m.xf;this.tR=m.tR;this.JO=m.JO;I2(this.ze.get(),"html5_disable_media_load_timeout")||(this.Gk=new g.mq(function(){V.oU("load_timeout",new FN("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); m=e7(this.ze.get());var O=ud(this.ze.get());m&&O&&(this.j4=new g.mq(function(){var h=GJ(V.layout.clientMetadata,"metadata_type_preload_player_vars");h&&V.XH.get().U.preloadVideoByPlayerVars(h,2,300)}))}; kh0=function(m){return new S7(Object.assign({},m,{sV:m.callback,Hl:function(){}}))}; rRI=function(m){return new zP(Object.assign({},m,{Hl:function(V){m.xf.get().V2("onAdIntroStateChange",V)}}))}; cRl=function(m){return new zP(Object.assign({},m,{Hl:function(V){m.xf.get().Pa(V)}}))}; D6p=function(m){for(var V=m.lw,O=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],h=g.D(RU()),w=h.next();!w.done;w=h.next())O.push(w.value);if(eZ(V,{D4:O,Be:["LAYOUT_TYPE_MEDIA_BREAK"]}))return kh0(m);V=m.lw;O=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];h=g.D(RU());for(w=h.next();!w.done;w=h.next())O.push(w.value);if(eZ(V,{D4:O,Be:["LAYOUT_TYPE_MEDIA"]}))return uf(m.lw.clientMetadata,"metadata_type_ad_intro")?rRI(m):cRl(m)}; ZI=function(m,V,O,h,w,y,L,C,E,q,M,f,x,R){g.Z.call(this);this.callback=m;this.Nf=V;this.rY=O;this.XH=h;this.Ge=w;this.H2=y;this.FH=L;this.m6=C;this.slot=E;this.layout=q;this.vW=M;this.eR=f;this.gY=x;this.ze=R;this.vj=!0;this.bG=!1;this.td=[];this.p_=-1;this.TC=!1}; F7=function(m){return m.td[m.p_]}; id=function(m,V,O){var h=F7(m);m.p_===m.td.length-1&&ER("Unexpected skip with target requested during the last sublayout");if(O.renderingContent===void 0&&O.layoutId!==aT(h,V,O)){ER("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",h.WD(),h.Vt(),{requestingSlot:V,requestingLayout:O});var w=!1}else w=!0;if(w){a:{if((w=GJ(h.Vt().clientMetadata,"metadata_type_ad_pod_skip_target"))&&w>0&&w0)){ER("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",m.slot,m.layout,{indexToPlay:V,layoutId:m.layout.layoutId});break a}m.p_=V;V=F7(m);if(m.p_>0){var O=m.FH.get();O.L=!1;var h={};O.Z&&O.videoId&&(h.cttAuthInfo={token:O.Z,videoId:O.videoId});cy("ad_to_ad",h)}O=g.d(V.Vt().renderingContent,QH);if(O==null?0:O.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var w; O=!((w=m.H2.get().X20.get(O.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&w)}else O=!1;O?GP(m,m.p_+1):V.startRendering(V.Vt())}}; nWU=function(m){(m=F7(m))&&m.pm()}; SRo=function(m){return new ZI(m.EZt,m.Nf,m.rY,m.XH,m.Ge,m.H2,m.FH,m.m6,m.slot,m.layout,m.vW,m.eR,m.gY,m.ze)}; Q8=function(m,V,O,h,w,y,L){g.Z.call(this);this.callback=m;this.XH=V;this.Ge=O;this.FH=h;this.qL=w;this.gY=y;this.ze=L;this.vj=!0;this.bG=!1}; Ibo=function(m,V,O,h,w,y,L,C,E,q,M,f,x,R,A,K,X,c,r,N,n,F){function z(){var hI=D6p(Object.assign({},O3,{callback:{dY:m.dY.bind(m),sI:m.sI.bind(m),xA:m.xA.bind(m)},slot:O,lw:h,JO:function(){ld(L,h)}, N6:0,DU:1,SC:!0}));return hI?new Q8(m,M,x,K,hI,w,N):hI} function V$(){var hI,jG=(hI=h.V0)!=null?hI:GJ(h.clientMetadata,"metadata_type_sub_layouts");hI=SRo({EZt:m,Nf:f,rY:n,XH:M,Ge:x,H2:R,FH:K,m6:V,slot:O,layout:h,vW:y,eR:L,gY:w,ze:N});for(var fo=[],w7={O_:0};w7.O_w&&L.Au(M,w-h);return M}; Fi$=function(m,V,O){var h=GJ(V.clientMetadata,"metadata_type_sodar_extension_data");if(h)try{FQl(O,h)}catch(w){ER("Unexpected error when loading Sodar",m,V,{error:w})}}; ab0=function(m,V,O,h,w,y,L){hO(m,V,new g.q6(O,new g.KS),h,w,L,!1,y)}; hO=function(m,V,O,h,w,y,L,C){L=L===void 0?!0:L;mF(O)&&VK(w,0,null)&&(!d0(m,"impression")&&C&&C(),m.sU("impression"));d0(m,"impression")&&(g.fX(O,4)&&!g.fX(O,2)&&m.xF("pause"),M6(O,4)<0&&!(M6(O,2)<0)&&m.xF("resume"),g.fX(O,16)&&w>=.5&&m.xF("seek"),L&&g.fX(O,2)&&wR(m,O.state,V,h,w,y))}; wR=function(m,V,O,h,w,y,L,C,E){d0(m,"impression")&&(y?(y=w-h,y=y>=-1&&y<=2):y=Math.abs(h-w)<=1,yz(m,V,y?h:w,O,h,L,C&&y),y&&!E&&m.sU("complete"))}; yz=function(m,V,O,h,w,y,L){UE(m,O*1E3,L);w<=0||O<=0||(V==null?0:g.l(V,16))||(V==null?0:g.l(V,32))||(VK(O,w*.25,h)&&(y&&!d0(m,"first_quartile")&&y("first"),m.sU("first_quartile")),VK(O,w*.5,h)&&(y&&!d0(m,"midpoint")&&y("second"),m.sU("midpoint")),VK(O,w*.75,h)&&(y&&!d0(m,"third_quartile")&&y("third"),m.sU("third_quartile")))}; iX0=function(m,V){d0(m,"impression")&&m.xF(V?"fullscreen":"end_fullscreen")}; Ghm=function(m){d0(m,"impression")&&m.xF("clickthrough")}; p53=function(m){m.xF("active_view_measurable")}; Bra=function(m){d0(m,"impression")&&!d0(m,"seek")&&m.xF("active_view_fully_viewable_audible_half_duration")}; lb0=function(m){d0(m,"impression")&&!d0(m,"seek")&&m.xF("active_view_viewable")}; QR5=function(m){d0(m,"impression")&&!d0(m,"seek")&&m.xF("audio_audible")}; vW1=function(m){d0(m,"impression")&&!d0(m,"seek")&&m.xF("audio_measurable")}; PEo=function(m,V,O,h,w,y,L,C,E,q,M,f,x){this.callback=m;this.slot=V;this.layout=O;this.rY=h;this.r0=w;this.Ge=y;this.eh=L;this.du=C;this.PW=E;this.ze=q;this.qf=M;this.Nf=f;this.zj=x;this.x3=!0;this.f4=this.Zf=null;this.adCpn=void 0;this.Z=!1}; mga=function(m,V,O){var h;OW(m.qf.get(),"ads_qua","cpn."+GJ(m.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((h=wk(m.Nf.get(),2))==null?void 0:h.clientPlaybackNonce)+";qt."+V+";clr."+O)}; VYp=function(m,V){var O,h;OW(m.qf.get(),"ads_imp","cpn."+GJ(m.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((O=wk(m.Nf.get(),2))==null?void 0:O.clientPlaybackNonce)+";clr."+V+";skp."+!!g.d((h=GJ(m.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:h.skipOrPreviewRenderer,L7))}; JO=function(m){return{enterMs:GJ(m.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:GJ(m.clientMetadata,"metadata_type_layout_exit_ms")}}; C7=function(m,V,O,h,w,y,L,C,E,q,M,f,x,R){vm.call(this,m,V,O,h,w,L,C,E,q,f);this.eh=y;this.PW=M;this.du=x;this.ze=R;this.f4=this.Zf=null}; OPU=function(m,V){var O;OW(m.qf.get(),"ads_imp","acpn."+((O=wk(m.Nf.get(),2))==null?void 0:O.clientPlaybackNonce)+";clr."+V)}; h85=function(m,V,O){var h;OW(m.qf.get(),"ads_qua","cpn."+GJ(m.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((h=wk(m.Nf.get(),2))==null?void 0:h.clientPlaybackNonce)+";qt."+V+";clr."+O)}; EW=function(m,V,O,h,w,y,L,C,E,q,M,f,x,R,A,K,X,c,r,N,n){this.gY=m;this.vW=V;this.eR=O;this.Nf=h;this.rY=w;this.Ge=y;this.H2=L;this.qf=C;this.eh=E;this.eK=q;this.du=M;this.PW=f;this.XH=x;this.zj=R;this.FH=A;this.xf=K;this.FA=X;this.tR=c;this.ze=r;this.Z=N;this.context=n}; qM=function(m,V,O,h,w,y,L,C,E,q,M,f,x,R,A,K,X,c){this.gY=m;this.vW=V;this.eR=O;this.qf=h;this.du=w;this.PW=y;this.XH=L;this.Nf=C;this.Ge=E;this.H2=q;this.zj=M;this.FH=f;this.xf=x;this.FA=R;this.tR=A;this.ze=K;this.rY=X;this.context=c}; wya=function(m,V,O,h){wN.call(this,"survey-interstitial",m,V,O,h)}; MM=function(m,V,O,h,w){jZ.call(this,O,m,V,h);this.qf=w;m=GJ(V.clientMetadata,"metadata_type_ad_placement_config");this.r0=new xV(V.uo,w,m,V.layoutId)}; f7=function(m){return Math.round(m.width)+"x"+Math.round(m.height)}; R1=function(m,V,O){O=O===void 0?xn:O;O.widthm.width*m.height*.2)return{Tr:3,Io:501,errorMessage:"ad("+f7(O)+") to container("+f7(m)+") ratio exceeds limit."};if(O.height>m.height/3-V)return{Tr:3,Io:501,errorMessage:"ad("+f7(O)+") covers container("+f7(m)+") center."}}; yX5=function(m,V){var O=GJ(m.clientMetadata,"metadata_type_ad_placement_config");return new xV(m.uo,V,O,m.layoutId)}; o1=function(m){return GJ(m.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; gR=function(m,V,O,h){wN.call(this,"invideo-overlay",m,V,O,h);this.interactionLoggingClientData=h}; AO=function(m,V,O,h,w,y,L,C,E,q,M,f){jZ.call(this,y,m,V,w);this.qf=O;this.T=L;this.Ge=C;this.FA=E;this.ze=q;this.N=M;this.K=f;this.r0=yX5(V,O)}; ja1=function(){var m=["metadata_type_invideo_overlay_ad_renderer"];RU().forEach(function(V){m.push(V)}); return{D4:m,Be:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; UW=function(m,V,O,h,w,y,L,C,E,q,M,f,x){jZ.call(this,y,m,V,w);this.qf=O;this.T=L;this.V=C;this.Ge=E;this.FA=q;this.ze=M;this.N=f;this.K=x;this.r0=yX5(V,O)}; LH7=function(){for(var m=["metadata_type_invideo_overlay_ad_renderer"],V=g.D(RU()),O=V.next();!O.done;O=V.next())m.push(O.value);return{D4:m,Be:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; dR=function(m){this.Ge=m;this.Z=!1}; JX0=function(m,V,O){wN.call(this,"survey",m,{},V,O)}; tO=function(m,V,O,h,w,y,L){jZ.call(this,O,m,V,h);this.T=w;this.Ge=y;this.ze=L}; CP3=function(m,V,O,h,w,y,L,C,E,q){this.cB=m;this.Ge=V;this.qf=O;this.T=h;this.du=w;this.L=y;this.D=L;this.FA=C;this.ze=E;this.Z=q}; Eom=function(m,V,O,h,w,y,L,C,E,q){this.cB=m;this.Ge=V;this.qf=O;this.T=h;this.du=w;this.L=y;this.D=L;this.FA=C;this.ze=E;this.Z=q}; K7=function(m,V,O,h,w,y,L,C,E,q){aU.call(this,m,V,O,h,w,y,L,E);this.WP=C;this.Nf=q}; qBI=function(){var m=GKo();m.D4.push("metadata_type_ad_info_ad_metadata");return m}; MY5=function(m,V,O,h,w,y,L){this.cB=m;this.Ge=V;this.qf=O;this.L=h;this.WP=w;this.Z=y;this.Nf=L}; fYa=function(m,V,O,h,w,y,L,C){this.cB=m;this.Ge=V;this.qf=O;this.L=h;this.WP=w;this.Z=y;this.ze=L;this.Nf=C}; Wr=function(m,V){this.adPodIndex=m;this.Z=V.length;this.adBreakLengthSeconds=V.reduce(function(h,w){return h+w},0); var O=0;for(m+=1;m0}; jW=function(m){return!!(m.ZPt&&m.slot&&m.layout)}; Lm=function(m){var V,O=(V=m.config)==null?void 0:V.adPlacementConfig;m=m.renderer;return!(!O||O.kind==null||!m)}; YBm=function(m){if(!Pr(m.adLayoutMetadata))return!1;m=m.renderingContent;return g.d(m,QH)||g.d(m,vo)||g.d(m,$gC)||g.d(m,Bo)||g.d(m,lk)?!0:!1}; JB=function(m){return m.playerVars!==void 0&&m.pings!==void 0&&m.externalVideoId!==void 0}; var L0I=function(m,V,O,h,w,y,L){return bp[J[4]](this,1,m,V,O,h,w,y,L)}; var RB=function(m){if(!Pr(m.adLayoutMetadata))return!1;m=m.renderingContent;var V=g.d(m,Cm);return V?El(V):(V=g.d(m,qR))?JB(V):(V=g.d(m,MR))?V.playerVars!==void 0:(V=g.d(m,QH))?V.durationMilliseconds!==void 0:g.d(m,fm)||g.d(m,xE)?!0:!1},El=function(m){m=(m.sequentialLayouts||[]).map(function(V){return g.d(V,oB)}); return m.length>0&&m.every(RB)},AB=function(m){return Pr(m.adLayoutMetadata)?(m=g.d(m.renderingContent,gg))&&m.pings?!0:!1:!1},N5C=function(m){if(!Pr(m.adLayoutMetadata))return!1; if(g.d(m.renderingContent,kM5)||g.d(m.renderingContent,Ul))return!0;var V=g.d(m.renderingContent,dg);return g.d(m.renderingContent,tB)||g.d(V==null?void 0:V.sidePanel,rXC)||g.d(V==null?void 0:V.sidePanel,cXC)||g.d(V==null?void 0:V.sidePanel,DgC)?!0:!1},uoX=function(m){var V; (V=!m)||(V=m.adSlotMetadata,V=!((V==null?void 0:V.slotId)!==void 0&&(V==null?void 0:V.slotType)!==void 0));if(V||!(bP0(m)||m.slotEntryTrigger&&m.slotFulfillmentTriggers&&m.slotExpirationTriggers))return!1;var O;m=(O=m.fulfillmentContent)==null?void 0:O.fulfilledLayout;return(O=g.d(m,oB))?RB(O):(O=g.d(m,Km))?N5C(O):(O=g.d(m,no7))?YBm(O):(O=g.d(m,SBU))?HPl(O):(O=g.d(m,IYI))?Pr(O.adLayoutMetadata)?g.d(O.renderingContent,mO)?!0:!1:!1:(O=g.d(m,Wq))?AB(O):(m=g.d(m,e83))?Pr(m.adLayoutMetadata)?g.d(m.renderingContent, Ul)?!0:!1:!1:!1},bP0=function(m){var V; m=g.d((V=m.fulfillmentContent)==null?void 0:V.fulfilledLayout,Km);var O;return m&&((O=m.adLayoutMetadata)==null?void 0:O.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&m.layoutExitNormalTriggers===void 0},z8U=function(m){var V; return(m==null?void 0:(V=m.adSlotMetadata)==null?void 0:V.slotType)==="SLOT_TYPE_IN_PLAYER"},ZP$=function(m){m=g.D(m||[]); for(var V=m.next();!V.done;V=m.next()){var O=g.d(V.value,Xr);if(O===void 0||!uoX(O))break;V=void 0;O=(V=O.fulfillmentContent)==null?void 0:V.fulfilledLayout;if((V=g.d(O,Wq))&&AB(V))return!0}return!1},FH3=function(m,V){var O; if((O=m.questions)==null||!O.length||!m.playbackCommands||(V===void 0||!V)&&m.questions.length!==1)return!1;m=g.D(m.questions);for(V=m.next();!V.done;V=m.next()){V=V.value;var h=O=void 0,w=((O=g.d(V,Hq))==null?void 0:O.surveyAdQuestionCommon)||((h=g.d(V,Tf))==null?void 0:h.surveyAdQuestionCommon);if(!saI(w))return!1}return!0},aYp=function(m){m=((m==null?void 0:m.playerOverlay)||{}).instreamSurveyAdRenderer; var V;if(m)if(m.playbackCommands&&m.questions&&m.questions.length===1){var O,h=((V=g.d(m.questions[0],Hq))==null?void 0:V.surveyAdQuestionCommon)||((O=g.d(m.questions[0],Tf))==null?void 0:O.surveyAdQuestionCommon);V=saI(h)}else V=!1;else V=!1;return V},saI=function(m){if(!m)return!1; m=g.d(m.instreamAdPlayerOverlay,$E);var V=g.d(m==null?void 0:m.skipOrPreviewRenderer,L7),O=g.d(m==null?void 0:m.adInfoRenderer,YE);return(g.d(m==null?void 0:m.skipOrPreviewRenderer,kE)||V)&&O?!0:!1},iP0=function(m){return m.linearAds!=null&&Pr(m.adLayoutMetadata)},GMo=function(m){return m.linearAd!=null&&m.adVideoStart!=null},pyo=function(m){if(isNaN(Number(m.timeoutSeconds))||!m.text||!m.ctaButton||!g.d(m.ctaButton,g.rg)||!m.brandImage)return!1; var V;return m.backgroundImage&&g.d(m.backgroundImage,cq)&&((V=g.d(m.backgroundImage,cq))==null?0:V.landscape)?!0:!1},DU=function(m,V,O,h,w,y,L,C){g.Z.call(this); this.ze=m;this.Z=V;this.L=h;this.Nf=w;this.T=y;this.D=L;this.XH=C},Qap=function(m,V,O){var h,w=((h=O.adSlots)!=null?h:[]).map(function(C){return g.d(C,Xr)}); if(O.Wx)if(GJ(V.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))OE(m.Z.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},V.slotId); else{if(m.ze.get().U.j().Y("h5_check_forecasting_renderer_for_throttled_midroll")){var y=O.nS.filter(function(C){var E;return((E=C.renderer)==null?void 0:E.clientForecastingAdRenderer)!=null}); y.length!==0?B50(m.D,y,w,V.slotId,O.ssdaiAdsConfig):OE(m.Z.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},V.slotId)}else OE(m.Z.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},V.slotId); lYa(m.T,V)}else{var L;h={gA:Math.round(((y=GJ(V.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:y.gA)||0),ih:(L=GJ(V.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:L.ih};y=GJ(V.clientMetadata,"metadata_type_cue_point");B50(m.D,O.nS,w,V.slotId,O.ssdaiAdsConfig,h,y)}},mqU=function(m,V,O,h,w,y,L,C){var E=wk(m.Nf.get(),1); if(vo$(m.ze.get())){var q=NR(m.L.get(),O,h,w,E.clientPlaybackNonce,E.ML,E.daiEnabled,E,y,L);PP1(m,q);OE(m.Z.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return q},V)}else OE(m.Z.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return NR(m.L.get(),O,h,w,E.clientPlaybackNonce,E.ML,E.daiEnabled,E,y,L,C)},V)},PP1=function(m,V){V=g.D(V); for(var O=V.next();!O.done;O=V.next()){var h=O.value;if(h.slotType==="SLOT_TYPE_PLAYER_BYTES"&&h.fulfilledLayout)if(O=void 0,h.fulfilledLayout.renderingContent)O=GJ(h.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(h.fulfilledLayout.V0){h=g.D(h.fulfilledLayout.V0);for(var w=h.next();!w.done&&(w=w.value,!w.renderingContent||!(O=GJ(w.clientMetadata,"metadata_type_player_vars")));w=h.next());}}else O=void 0;if(O){m.XH.get().U.preloadVideoByPlayerVars(O,2,300);break}}},OGp=function(m, V,O,h,w,y,L){V=VNX(V,y,Number(h.prefetchMilliseconds)||0,L); m=V instanceof v?V:bi(m,h,w,V,O);return m instanceof v?m:[m]},h$0=function(m,V,O,h,w){var y=hL(m.L.get(),"SLOT_TYPE_AD_BREAK_REQUEST"); h=[new W9({getAdBreakUrl:h.getAdBreakUrl,gA:0,ih:0}),new S0(!0)];m=V.pauseDurationMs?V.lactThresholdMs?{slotId:y,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new p7(m.Z,y),slotFulfillmentTriggers:[new R8C(m.Z)],slotExpirationTriggers:[new zd(m.Z,w),new a1(m.Z,y)],aY:"core",clientMetadata:new aX(h),adSlotLoggingData:O}:new v("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new v("AdPlacementConfig for Pause Ads is missing pause_duration_ms");return m instanceof v?m:[m]},wva=function(m){var V,O; return((V=m.renderer)==null?void 0:(O=V.adBreakServiceRenderer)==null?void 0:O.getAdBreakUrl)!==void 0},nm=function(m,V,O){if(m.beforeContentVideoIdStartedTrigger)m=m.beforeContentVideoIdStartedTrigger?new X1(Zf,V,m.id):new v("Not able to create BeforeContentVideoIdStartedTrigger"); else{if(m.layoutIdExitedTrigger){var h;V=(h=m.layoutIdExitedTrigger)!=null&&h.triggeringLayoutId?new rR(Zf,m.layoutIdExitedTrigger.triggeringLayoutId,m.id):new v("Not able to create LayoutIdExitedTrigger")}else{if(m.layoutExitedForReasonTrigger){var w,y;((w=m.layoutExitedForReasonTrigger)==null?0:w.triggeringLayoutId)&&((y=m.layoutExitedForReasonTrigger)==null?0:y.layoutExitReason)?(V=oop(m.layoutExitedForReasonTrigger.layoutExitReason),m=V instanceof v?V:new kn(Zf,m.layoutExitedForReasonTrigger.triggeringLayoutId, [V],m.id)):m=new v("Not able to create LayoutIdExitedForReasonTrigger")}else{if(m.onLayoutSelfExitRequestedTrigger){var L;V=(L=m.onLayoutSelfExitRequestedTrigger)!=null&&L.triggeringLayoutId?new um(Zf,m.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,m.id):new v("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(m.onNewPlaybackAfterContentVideoIdTrigger)m=m.onNewPlaybackAfterContentVideoIdTrigger?new zd(Zf,V,m.id):new v("Not able to create OnNewPlaybackAfterContentVideoIdTrigger"); else{if(m.skipRequestedTrigger){var C;V=(C=m.skipRequestedTrigger)!=null&&C.triggeringLayoutId?new sW(Zf,m.skipRequestedTrigger.triggeringLayoutId,m.id):new v("Not able to create SkipRequestedTrigger")}else if(m.slotIdEnteredTrigger){var E;V=(E=m.slotIdEnteredTrigger)!=null&&E.triggeringSlotId?new F1(Zf,m.slotIdEnteredTrigger.triggeringSlotId,m.id):new v("Not able to create SlotIdEnteredTrigger")}else if(m.slotIdExitedTrigger){var q;V=(q=m.slotIdExitedTrigger)!=null&&q.triggeringSlotId?new a1(Zf, m.slotIdExitedTrigger.triggeringSlotId,m.id):new v("Not able to create SkipRequestedTrigger")}else if(m.surveySubmittedTrigger){var M;V=(M=m.surveySubmittedTrigger)!=null&&M.triggeringLayoutId?new lm(Zf,m.surveySubmittedTrigger.triggeringLayoutId,m.id):new v("Not able to create SurveySubmittedTrigger")}else{if(m.mediaResumedTrigger)m=m.mediaResumedTrigger&&m.id?new goa(m.id):new v("Not able to create MediaResumedTrigger");else{if(m.closeRequestedTrigger){var f;V=(f=m.closeRequestedTrigger)!=null&& f.triggeringLayoutId?new Hr(Zf,m.closeRequestedTrigger.triggeringLayoutId,m.id):new v("Not able to create CloseRequestedTrigger")}else if(m.slotIdScheduledTrigger){var x;V=(x=m.slotIdScheduledTrigger)!=null&&x.triggeringSlotId?new p7(Zf,m.slotIdScheduledTrigger.triggeringSlotId,m.id):new v("Not able to create SlotIdScheduledTrigger")}else{if(m.mediaTimeRangeTrigger){var R;h=Number((R=m.mediaTimeRangeTrigger)==null?void 0:R.offsetStartMilliseconds);var A;L=Number((A=m.mediaTimeRangeTrigger)==null? void 0:A.offsetEndMilliseconds);isFinite(h)&&isFinite(L)?(A=L,A===-1&&(A=O),O=h>A?new v("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:h,offsetEndMs:A},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",A===O&&h-500<=A):new $N(h,A),m=O instanceof v?O:new n7(Zf,V,O,!1,m.id)):m=new v("Not able to create MediaTimeRangeTrigger")}else if(m.contentVideoIdEndedTrigger)m=m.contentVideoIdEndedTrigger?new Td(Zf,V,!1,m.id):new v("Not able to create ContentVideoIdEndedTrigger"); else{if(m.layoutIdEnteredTrigger){var K;V=(K=m.layoutIdEnteredTrigger)!=null&&K.triggeringLayoutId?new Yn(Zf,m.layoutIdEnteredTrigger.triggeringLayoutId,m.id):new v("Not able to create LayoutIdEnteredTrigger")}else if(m.timeRelativeToLayoutEnterTrigger){var X;V=(X=m.timeRelativeToLayoutEnterTrigger)!=null&&X.triggeringLayoutId?new Qz(Zf,Number(m.timeRelativeToLayoutEnterTrigger.durationMs),m.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,m.id):new v("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(m.onDifferentLayoutIdEnteredTrigger){var c; V=(c=m.onDifferentLayoutIdEnteredTrigger)!=null&&c.triggeringLayoutId&&m.onDifferentLayoutIdEnteredTrigger.slotType&&m.onDifferentLayoutIdEnteredTrigger.layoutType?new I1(Zf,m.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,m.onDifferentLayoutIdEnteredTrigger.slotType,m.onDifferentLayoutIdEnteredTrigger.layoutType,m.id):new v("Not able to create CloseRequestedTrigger")}else{if(m.liveStreamBreakStartedTrigger)m=m.liveStreamBreakStartedTrigger&&m.id?new bm(Zf,m.id):new v("Not able to create LiveStreamBreakStartedTrigger"); else if(m.liveStreamBreakEndedTrigger)m=m.liveStreamBreakEndedTrigger&&m.id?new cr(Zf,m.id):new v("Not able to create LiveStreamBreakEndedTrigger");else{if(m.liveStreamBreakScheduledDurationMatchedTrigger){var r;V=(r=m.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&r.breakDurationMs?new Dq(Number(m.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,m.id):new v("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(m.liveStreamBreakScheduledDurationNotMatchedTrigger){var N; V=(N=m.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&N.breakDurationMs?new NM(Number(m.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,m.id):new v("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(m.newSlotScheduledWithBreakDurationTrigger){var n;V=(n=m.newSlotScheduledWithBreakDurationTrigger)!=null&&n.breakDurationMs?new Sa(Number(m.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,m.id):new v("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else V= m.prefetchCacheExpiredTrigger?new Zq(Zf,m.id):new v("Not able to convert an AdsControlflowTrigger.");m=V}V=m}m=V}V=m}m=V}V=m}m=V}V=m}m=V}V=m}m=V}return m},SW=function(m,V){V.Z>=2&&(m.slot_pos=V.adPodIndex); m.autoplay="1"},jiG=function(m,V,O,h,w,y,L,C){return V===null?new v("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:V, ActionCompanionAdRenderer:h}):[yZa(m,V,L,y,function(E){var q=E.slotId;E=C(E);var M=h.adLayoutLoggingData,f=new aX([new Wl(h),new nq(w)]);q=ep(O.L.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",q);var x={layoutId:q,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",aY:"core"};return{layoutId:q,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",uo:new Map,layoutExitNormalTriggers:[new zd(O.Z,L)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], aY:"core",clientMetadata:f,PD:E(x),adLayoutLoggingData:M}})]},LZl=function(m,V,O,h,w,y,L,C){return V===null?new v("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:V, TopBannerImageTextIconButtonedLayoutViewModel:h}):[yZa(m,V,L,y,function(E){var q=E.slotId;E=C(E);var M=h.adLayoutLoggingData,f=new aX([new Xb(h),new nq(w)]);q=ep(O.L.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",q);var x={layoutId:q,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",aY:"core"};return{layoutId:q,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",uo:new Map,layoutExitNormalTriggers:[new zd(O.Z,L)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[], layoutExitUserCancelledTriggers:[],aY:"core",clientMetadata:f,PD:E(x),adLayoutLoggingData:M}})]},q47=function(m,V,O,h,w,y){if(!y)for(V=g.D(V),y=V.next();!y.done;y=V.next())y=y.value,IB(m,y.renderer,y.config.adPlacementConfig.kind); m=Array.from(m.values()).filter(function(M){return JZ7(M)}); V=[];y=g.D(m);for(var L=y.next(),C={};!L.done;C={Dz:void 0},L=y.next()){C.Dz=L.value;L=g.D(C.Dz.IR);for(var E=L.next(),q={};!E.done;q={hN:void 0},E=L.next())q.hN=E.value,E=function(M,f){return function(x){return M.hN.mC(x,f.Dz.instreamVideoAdRenderer.elementId,M.hN.D0)}}(q,C),q.hN.isContentVideoCompanion?V.push(CoI(O,h,w,C.Dz.instreamVideoAdRenderer.elementId,q.hN.associatedCompositePlayerBytesLayoutId,q.hN.adSlotLoggingData,E)):m.length>1?V.push(EyU(O,h,w,C.Dz.instreamVideoAdRenderer.elementId,q.hN.adSlotLoggingData, function(M,f){return function(x){return M.hN.mC(x,f.Dz.instreamVideoAdRenderer.elementId,M.hN.D0,M.hN.associatedCompositePlayerBytesLayoutId)}}(q,C))):V.push(EyU(O,h,w,C.Dz.instreamVideoAdRenderer.elementId,q.hN.adSlotLoggingData,E))}return V},IB=function(m,V,O){if(V=MNm(V)){V=g.D(V); for(var h=V.next();!h.done;h=V.next())if((h=h.value)&&h.externalVideoId){var w=eW(m,h.externalVideoId);w.instreamVideoAdRenderer||(w.instreamVideoAdRenderer=h,w.uW=O)}else ER("InstreamVideoAdRenderer without externalVideoId")}},MNm=function(m){var V=[],O=m.sandwichedLinearAdRenderer&&m.sandwichedLinearAdRenderer.linearAd&&g.d(m.sandwichedLinearAdRenderer.linearAd,qR); if(O)return V.push(O),V;if(m.instreamVideoAdRenderer)return V.push(m.instreamVideoAdRenderer),V;if(m.linearAdSequenceRenderer&&m.linearAdSequenceRenderer.linearAds){m=g.D(m.linearAdSequenceRenderer.linearAds);for(O=m.next();!O.done;O=m.next())O=O.value,g.d(O,qR)&&V.push(g.d(O,qR));return V}return null},JZ7=function(m){if(m.instreamVideoAdRenderer===void 0)return ER("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1; for(var V=g.D(m.IR),O=V.next();!O.done;O=V.next()){O=O.value;if(O.mC===void 0)return!1;if(O.D0===void 0)return ER("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(m.uW===void 0||O.Hs===void 0||m.uW!==O.Hs&&O.Hs!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(m.instreamVideoAdRenderer.elementId===void 0)return ER("InstreamVideoAdRenderer has no elementId",void 0,void 0,{kind:m.uW,"matching APSR kind":O.Hs}),!1}return!0},eW=function(m,V){m.has(V)|| m.set(V,{instreamVideoAdRenderer:void 0, uW:void 0,adVideoId:V,IR:[]});return m.get(V)},ui=function(m,V,O,h,w,y,L,C,E){w?eW(m,w).IR.push({xT0:V, Hs:O,isContentVideoCompanion:h,D0:L,associatedCompositePlayerBytesLayoutId:y,adSlotLoggingData:C,mC:E}):ER("Companion AdPlacementSupportedRenderer without adVideoId")},zf=function(m){var V=0; m=g.D(m.questions);for(var O=m.next();!O.done;O=m.next())if(O=O.value,O=g.d(O,Hq)||g.d(O,Tf)){var h=void 0;V+=((h=O.surveyAdQuestionCommon)==null?void 0:h.durationMilliseconds)||0}return V},ZU=function(m){var V,O,h,w,y=((O=g.d((V=m.questions)==null?void 0:V[0],Hq))==null?void 0:O.surveyAdQuestionCommon)||((w=g.d((h=m.questions)==null?void 0:h[0],Tf))==null?void 0:w.surveyAdQuestionCommon),L; V=[].concat(g.b(((L=m.playbackCommands)==null?void 0:L.instreamAdCompleteCommands)||[]),g.b((y==null?void 0:y.timeoutCommands)||[]));var C,E,q,M,f,x,R,A,K,X,c,r,N,n,F,z,V$,O3,hI,jG;return{impressionCommands:(C=m.playbackCommands)==null?void 0:C.impressionCommands,errorCommands:(E=m.playbackCommands)==null?void 0:E.errorCommands,muteCommands:(q=m.playbackCommands)==null?void 0:q.muteCommands,unmuteCommands:(M=m.playbackCommands)==null?void 0:M.unmuteCommands,pauseCommands:(f=m.playbackCommands)==null? void 0:f.pauseCommands,rewindCommands:(x=m.playbackCommands)==null?void 0:x.rewindCommands,resumeCommands:(R=m.playbackCommands)==null?void 0:R.resumeCommands,skipCommands:(A=m.playbackCommands)==null?void 0:A.skipCommands,progressCommands:(K=m.playbackCommands)==null?void 0:K.progressCommands,cs0:(X=m.playbackCommands)==null?void 0:X.clickthroughCommands,fullscreenCommands:(c=m.playbackCommands)==null?void 0:c.fullscreenCommands,activeViewViewableCommands:(r=m.playbackCommands)==null?void 0:r.activeViewViewableCommands, activeViewMeasurableCommands:(N=m.playbackCommands)==null?void 0:N.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(n=m.playbackCommands)==null?void 0:n.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(F=m.playbackCommands)==null?void 0:(z=F.activeViewTracking)==null?void 0:z.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(V$=m.playbackCommands)==null?void 0:(O3=V$.activeViewTracking)==null?void 0:O3.activeViewAudioMeasurableCommands, endFullscreenCommands:(hI=m.playbackCommands)==null?void 0:hI.endFullscreenCommands,abandonCommands:(jG=m.playbackCommands)==null?void 0:jG.abandonCommands,completeCommands:V}},xqI=function(m,V,O,h,w,y,L){return function(C,E){return f$7(m,E.slotId,C,y,function(q,M){var f=E.layoutId; q=L(q);return sl(V,f,M,w,q,"LAYOUT_TYPE_SURVEY",[new vl(O),h],O.adLayoutLoggingData)})}},gy1=function(m,V,O,h,w,y,L){if(!R$C(m))return new v("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:m}); var C=m.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[oya(y,V,O,h,function(E){var q=E.slotId;E=L(E);q=ep(w.L.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",q);var M={layoutId:q,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",aY:"core"},f=new rR(w.Z,h);return{layoutId:q,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",uo:new Map,layoutExitNormalTriggers:[f],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], aY:"core",clientMetadata:new aX([new Pl(C)]),PD:E(M)}})]},R$C=function(m){m=g.d(m==null?void 0:m.additionalPlayerOverlay,AZX); if(!m)return!1;var V=m.slidingMessages;return m.title&&V&&V.length!==0?!0:!1},dqo=function(m,V,O,h,w){var y; if((y=m.playerOverlay)==null||!y.instreamSurveyAdRenderer)return function(){return[]}; if(!aYp(m))return function(){return new v("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:m})}; var L=m.playerOverlay.instreamSurveyAdRenderer,C=zf(L);return C<=0?function(){return new v("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:L})}:function(E,q){var M=UqI(E,O,h,function(f){var x=f.slotId; f=q(f);var R=ZU(L);x=ep(w.L.get(),"LAYOUT_TYPE_SURVEY",x);var A={layoutId:x,layoutType:"LAYOUT_TYPE_SURVEY",aY:"core"},K=new rR(w.Z,h),X=new sW(w.Z,x),c=new lm(w.Z,x),r=new tYI(w.Z);return{layoutId:x,layoutType:"LAYOUT_TYPE_SURVEY",uo:new Map,layoutExitNormalTriggers:[K,r],layoutExitSkipTriggers:[X],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[c],layoutExitUserCancelledTriggers:[],aY:"core",clientMetadata:new aX([new Q_(L),new nq(V),new TJ(C/1E3),new r6(R)]),PD:f(A),adLayoutLoggingData:L.adLayoutLoggingData}}); E=gy1(m,O,M.slotId,h,w,E,q);return E instanceof v?E:[M].concat(g.b(E))}},$qG=function(m,V,O,h,w,y,L,C){L=L===void 0?!1:L; var E=[];try{var q=[];if(O.renderer.linearAdSequenceRenderer)var M=function(X){X=tN$(X.slotId,O,V,w(X),h,y,L);q=X.i_e;return X.Pu}; else if(O.renderer.instreamVideoAdRenderer)M=function(X){var c=X.slotId;X=w(X);var r=L,N=O.config.adPlacementConfig,n=KZ3(N),F=n.xa,z=n.SQ;n=O.renderer.instreamVideoAdRenderer;var V$;if(n==null?0:(V$=n.playerOverlay)==null?0:V$.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var O3=Fr(n,r);V$=Math.min(F+O3.videoLengthSeconds*1E3,z);r=new Wr(0,[O3.videoLengthSeconds]);z=O3.videoLengthSeconds;var hI=O3.playerVars,jG=O3.instreamAdPlayerOverlayRenderer, fo=O3.playerOverlayLayoutRenderer,w7=O3.adVideoId,Ko=WZ5(O),vX=O3.uo;O3=O3.Da;var L5=n==null?void 0:n.adLayoutLoggingData;n=n==null?void 0:n.sodarExtensionData;c=ep(V.L.get(),"LAYOUT_TYPE_MEDIA",c);var zl={layoutId:c,layoutType:"LAYOUT_TYPE_MEDIA",aY:"core"};return{layoutId:c,layoutType:"LAYOUT_TYPE_MEDIA",uo:vX,layoutExitNormalTriggers:[new cr(V.Z)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],aY:"core",clientMetadata:new aX([new Zr(h), new qz(z),new Mz(hI),new RX(F),new oX(V$),jG&&new sG(jG),fo&&new Fb(fo),new nq(N),new zQ(w7),new SH(r),new t0(Ko),n&&new xA(n),new j0({current:null}),new A0({}),new Nz(O3)].filter(Xv5)),PD:X(zl),adLayoutLoggingData:L5}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var f=HGo(m,h,O.adSlotLoggingData,M,C);E.push(f);for(var x=g.D(q),R=x.next();!R.done;R=x.next()){var A=R.value,K=A(m,w);if(K instanceof v)return K;E.push.apply(E,g.b(K))}}catch(X){return new v(X,{errorMessage:X.message,AdPlacementRenderer:O,numberOfSurveyRenderers:TH1(O)})}return E},TH1=function(m){m=(m.renderer.linearAdSequenceRenderer||{}).linearAds; return m!=null&&m.length?m.filter(function(V){var O,h;return((O=g.d(V,qR))==null?void 0:(h=O.playerOverlay)==null?void 0:h.instreamSurveyAdRenderer)!=null}).length:0},tN$=function(m,V,O,h,w,y,L){var C=V.config.adPlacementConfig,E=KZ3(C),q=E.xa,M=E.SQ; E=(V.renderer.linearAdSequenceRenderer||{}).linearAds;if(E==null||!E.length)throw new TypeError("Expected linear ads");var f=[],x={Cp:q,N6:0,IMN:f};E=E.map(function(A){return Y4C(m,A,x,O,h,C,w,M,L)}).map(function(A,K){K=new Wr(K,f); return A(K)}); var R=E.map(function(A){return A.tA}); return{Pu:kk3(O,m,q,R,C,WZ5(V),h,M,y),i_e:E.map(function(A){return A.TMY})}},Y4C=function(m,V,O,h,w,y,L,C,E){var q=Fr(g.d(V,qR),E),M=O.Cp,f=O.N6,x=Math.min(M+q.videoLengthSeconds*1E3,C); O.Cp=x;O.N6++;O.IMN.push(q.videoLengthSeconds);var R,A,K=(R=g.d(V,qR))==null?void 0:(A=R.playerOverlay)==null?void 0:A.instreamSurveyAdRenderer;if(q.adVideoId==="nPpU29QrbiU"&&K==null)throw new TypeError("Survey slate media has no survey overlay");return function(X){SW(q.playerVars,X);var c,r,N=q.videoLengthSeconds,n=q.playerVars,F=q.uo,z=q.Da,V$=q.instreamAdPlayerOverlayRenderer,O3=q.playerOverlayLayoutRenderer,hI=q.adVideoId,jG=(c=g.d(V,qR))==null?void 0:c.adLayoutLoggingData;c=(r=g.d(V,qR))==null? void 0:r.sodarExtensionData;r=ep(h.L.get(),"LAYOUT_TYPE_MEDIA",m);var fo={layoutId:r,layoutType:"LAYOUT_TYPE_MEDIA",aY:"adapter"};X={layoutId:r,layoutType:"LAYOUT_TYPE_MEDIA",uo:F,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],aY:"adapter",clientMetadata:new aX([new Zr(L),new qz(N),new Mz(n),new RX(M),new oX(x),new g6(f),new j0({current:null}),V$&&new sG(V$),O3&&new Fb(O3),new nq(y),new zQ(hI), new SH(X),c&&new xA(c),K&&new Df(K),new A0({}),new Nz(z)].filter(Xv5)),PD:w(fo),adLayoutLoggingData:jG};N=dqo(g.d(V,qR),y,L,X.layoutId,h);return{tA:X,TMY:N}}},Fr=function(m,V){if(!m)throw new TypeError("Expected instream video ad renderer"); if(!m.playerVars)throw new TypeError("Expected player vars in url encoded string");var O=Tl(m.playerVars),h=Number(O.length_seconds);if(isNaN(h))throw new TypeError("Expected valid length seconds in player vars");var w=Number(m.trimmedMaxNonSkippableAdDurationMs);h=isNaN(w)?h:Math.min(h,w/1E3);w=m.playerOverlay||{};w=w.instreamAdPlayerOverlayRenderer===void 0?null:w.instreamAdPlayerOverlayRenderer;var y=m.playerOverlay||{};y=y.playerOverlayLayoutRenderer===void 0?null:y.playerOverlayLayoutRenderer; var L=O.video_id;L||(L=(L=m.externalVideoId)?L:void 0);if(!L)throw new TypeError("Expected valid video id in IVAR");if(V&&h===0){var C;V=(C=rZa[L])!=null?C:h}else V=h;return{playerVars:O,videoLengthSeconds:V,instreamAdPlayerOverlayRenderer:w,playerOverlayLayoutRenderer:y,adVideoId:L,uo:m.pings?fj(m.pings):new Map,Da:MK(m.pings)}},WZ5=function(m){m=Number(m.driftRecoveryMs); return isNaN(m)||m<=0?null:m},KZ3=function(m){var V=m.adTimeOffset||{}; m=V.offsetEndMilliseconds;V=Number(V.offsetStartMilliseconds);if(isNaN(V))throw new TypeError("Expected valid start offset");m=Number(m);if(isNaN(m))throw new TypeError("Expected valid end offset");return{xa:V,SQ:m}},cZ0=function(m){var V,O=(V=GJ(m.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:V.current; if(!O)return null;V=GJ(m.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var h=m.layoutId,w=GJ(m.clientMetadata,"metadata_type_content_cpn"),y=GJ(m.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),L=GJ(m.clientMetadata,"metadata_type_player_underlay_renderer"),C=GJ(m.clientMetadata,"metadata_type_ad_placement_config"),E=GJ(m.clientMetadata,"metadata_type_video_length_seconds");var q=uf(m.clientMetadata,"metadata_type_layout_enter_ms")&&uf(m.clientMetadata,"metadata_type_layout_exit_ms")? (GJ(m.clientMetadata,"metadata_type_layout_exit_ms")-GJ(m.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Oo:h,contentCpn:w,E3:O,zX:V,instreamAdPlayerOverlayRenderer:y,instreamAdPlayerUnderlayRenderer:L,adPlacementConfig:C,videoLengthSeconds:E,vQ:q,inPlayerLayoutId:GJ(m.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:GJ(m.clientMetadata,"metadata_type_linked_in_player_slot_id")}},bGC=function(m,V,O,h,w,y,L,C,E,q,M,f,x,R,A){h=hL(h,"SLOT_TYPE_PLAYER_BYTES"); m=DqC(w,m,L,O,h,E,q);if(m instanceof v)return m;var K;q=(K=GJ(m.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:K.layoutId;if(!q)return new v("Invalid adNotify layout");V=NHC(q,w,y,O,C,V,E,M,f,x,R,A,L);return V instanceof v?V:[m].concat(g.b(V))},NHC=function(m,V,O,h,w,y,L,C,E,q,M,f,x){O=ny3(V,O,h,y,L,C,E,q,M,f,x); if(O instanceof v)return O;m=S4C(V,m,L,w,O);return m instanceof v?m:[].concat(g.b(m.UZ),[m.NP])},e$p=function(m,V,O,h,w,y,L,C,E,q,M,f,x,R){V=ny3(m,V,O,w,y,C,E,q,M,f,x,R); if(V instanceof v)return V;m=I$3(m,O,y,L,h,C.yp,V);return m instanceof v?m:m.UZ.concat(m.NP)},ny3=function(m,V,O,h,w,y,L,C,E,q,M,f){var x=aB(h); return x instanceof FN?new v(x):q.U.j().experiments.w0("html5_refactor_in_player_slot_generation")?function(R){var A=new Wr(0,[x.KT]);R=u3p(V,x.layoutId,x.un,O,ii(x.playerVars,x.yS,y,E,A),x.KT,w,A,L(R),C.get(x.un.externalVideoId),f);A=[];if(x.un.playerOverlay.instreamAdPlayerOverlayRenderer){var K=cZ0(R);if(!K)return ER("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,R),{layout:R,UZ:[]};A=[z$0(m,K.contentCpn,K.Oo,function(c){return Gf(V,c.slotId, "core",K,P9(M,c))},K.inPlayerSlotId)].concat(g.b(A)); if(K.instreamAdPlayerUnderlayRenderer&&pm(q)){var X=K.instreamAdPlayerUnderlayRenderer;A=[ZGX(m,K.contentCpn,K.Oo,function(c){return si7(V,c.slotId,X,K.adPlacementConfig,K.Oo,P9(M,c))})].concat(g.b(A))}}return{layout:R, UZ:A}}:function(R){var A=new Wr(0,[x.KT]); return{layout:u3p(V,x.layoutId,x.un,O,ii(x.playerVars,x.yS,y,E,A),x.KT,w,A,L(R),C.get(x.un.externalVideoId),f),UZ:[]}}},aB=function(m){if(!m.playerVars)return new FN("No playerVars available in InstreamVideoAdRenderer."); var V,O;if(m.elementId==null||m.playerVars==null||m.playerOverlay==null||((V=m.playerOverlay)==null?void 0:V.instreamAdPlayerOverlayRenderer)==null&&((O=m.playerOverlay)==null?void 0:O.playerOverlayLayoutRenderer)==null||m.pings==null||m.externalVideoId==null)return new FN("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:m});V=Tl(m.playerVars);O=Number(V.length_seconds);isNaN(O)&&(O=0,ER("Expected valid length seconds in player vars but got NaN"));return{layoutId:m.elementId, un:m,playerVars:V,yS:m.playerVars,KT:O}},ii=function(m,V,O,h,w){m.iv_load_policy=h; V=Tl(V);if(V.cta_conversion_urls)try{m.cta_conversion_urls=JSON.parse(V.cta_conversion_urls)}catch(y){ER(y)}O.iX&&(m.ctrl=O.iX);O.Bt&&(m.ytr=O.Bt);O.PS&&(m.ytrcc=O.PS);O.isMdxPlayback&&(m.mdx="1");m.vvt&&(m.vss_credentials_token=m.vvt,O.tN&&(m.vss_credentials_token_type=O.tN),O.mdxEnvironment&&(m.mdx_environment=O.mdxEnvironment));SW(m,w);return m},FZ1=function(m){var V=new Map; m=g.D(m);for(var O=m.next();!O.done;O=m.next())(O=O.value.renderer.remoteSlotsRenderer)&&O.hostElementId&&V.set(O.hostElementId,O);return V},Bq=function(m){return m.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"},a$m=function(m){return m!=null},Poa=function(m,V,O,h,w,y,L,C,E,q,M,f,x,R,A){for(var K=[],X=g.D(m),c=X.next();!c.done;c=X.next())if(c=c.value,!bP0(c)&&!z8U(c)){var r=iG$(c,h,O.ML); if(r instanceof v)return r;var N=void 0,n={slotId:c.adSlotMetadata.slotId,slotType:c.adSlotMetadata.slotType,slotPhysicalPosition:(N=c.adSlotMetadata.slotPhysicalPosition)!=null?N:1,aY:"core",slotEntryTrigger:r.slotEntryTrigger,slotFulfillmentTriggers:r.slotFulfillmentTriggers,slotExpirationTriggers:r.slotExpirationTriggers},F=g.d(c.fulfillmentContent.fulfilledLayout,oB);if(F){if(!RB(F))return new v("Invalid PlayerBytesAdLayoutRenderer");N=f&&!(Bq(c)&&c.slotEntryTrigger.beforeContentVideoIdStartedTrigger); r=r.slotFulfillmentTriggers.some(function(z){return z instanceof Dq}); r=N?Gkm(n,c.adSlotMetadata.triggerEvent,F,O,h,y,m,x,r,R):pvm(n,c.adSlotMetadata.triggerEvent,F,V,O,h,w,y,L,C,E,q,m,M,c.adSlotMetadata.triggeringSourceLayoutId);if(r instanceof v)return r;F=[];A?F.push(new Es({current:A})):F.push(new Es({current:null}));Bq(c)&&F.push(new IX({zP:Bq(c)&&!!c.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));N&&F.push(new A0({}));O.yp&&F.push(new c9({}));c=Object.assign({},n,{clientMetadata:new aX(F),fulfilledLayout:r.layout,adSlotLoggingData:c.adSlotMetadata.adSlotLoggingData}); K.push.apply(K,g.b(r.UZ));K.push(c)}else if(N=g.d(c.fulfillmentContent.fulfilledLayout,Km)){if(!N5C(N))return new v("Invalid PlayerUnderlayAdLayoutRenderer");N=BHa(N,h,O.ML,y,n,c.adSlotMetadata.triggerEvent,c.adSlotMetadata.triggeringSourceLayoutId);if(N instanceof v)return N;c=Object.assign({},n,{clientMetadata:new aX([]),fulfilledLayout:N,adSlotLoggingData:c.adSlotMetadata.adSlotLoggingData});K.push(c)}else if(N=g.d(c.fulfillmentContent.fulfilledLayout,e83)){if(!Pr(N.adLayoutMetadata)||!g.d(N.renderingContent, Ul))return new v("Invalid InPlayerOrganicOverlayAdLayoutRenderer");N=N.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PLAYER_ORGANIC_BANNER_OVERLAY"?l$G(N,h,O.ML,y,n):new v("LayoutType ["+N.adLayoutMetadata.layoutType+"] is invalid for InPlayerOrganicOverlaySlot");if(N instanceof v)return N;c=Object.assign({},n,{clientMetadata:new aX([]),fulfilledLayout:N,adSlotLoggingData:c.adSlotMetadata.adSlotLoggingData});K.push(c)}else if(N=g.d(c.fulfillmentContent.fulfilledLayout,SBU)){if(!HPl(N))return new v("Invalid AboveFeedAdLayoutRenderer"); N=QiU(N,h,O.ML,y,n,c.adSlotMetadata.triggerEvent,c.adSlotMetadata.triggeringSourceLayoutId);if(N instanceof v)return N;c=Object.assign({},n,{clientMetadata:new aX([]),fulfilledLayout:N,adSlotLoggingData:c.adSlotMetadata.adSlotLoggingData});K.push(c)}else if(N=g.d(c.fulfillmentContent.fulfilledLayout,IYI)){if(!Pr(N.adLayoutMetadata)||!g.d(N.renderingContent,mO))return new v("Invalid BelowPlayerAdLayoutRenderer");N=QiU(N,h,O.ML,y,n,c.adSlotMetadata.triggerEvent,c.adSlotMetadata.triggeringSourceLayoutId); if(N instanceof v)return N;c=Object.assign({},n,{clientMetadata:new aX([]),fulfilledLayout:N,adSlotLoggingData:c.adSlotMetadata.adSlotLoggingData});K.push(c)}else if(N=g.d(c.fulfillmentContent.fulfilledLayout,Wq)){if(!AB(N))return new v("Invalid PlayerBytesSequenceItemAdLayoutRenderer");N=vy5(N,h,O.ML,y,n,c.adSlotMetadata.triggerEvent);if(N instanceof v)return N;c=Object.assign({},n,{clientMetadata:new aX([]),fulfilledLayout:N,adSlotLoggingData:c.adSlotMetadata.adSlotLoggingData});K.push(c)}else return new v("Unable to retrieve a client slot ["+ n.slotType+"] from a given AdSlotRenderer")}return K},vy5=function(m,V,O,h,w,y){var L={layoutId:m.adLayoutMetadata.layoutId, layoutType:m.adLayoutMetadata.layoutType,aY:"core"};V=li(m,V,O);return V instanceof v?V:(O=g.d(m.renderingContent,gg))&&O.pings?Object.assign({},L,{renderingContent:m.renderingContent,uo:fj(O.pings)},V,{PD:P9(h,w)(L),clientMetadata:new aX([new nq(QR(y)),new r6({progressCommands:O.progressCommands})]),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData}):new v("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")},QiU=function(m,V,O,h,w,y,L){var C={layoutId:m.adLayoutMetadata.layoutId, layoutType:m.adLayoutMetadata.layoutType,aY:"core"};V=li(m,V,O);if(V instanceof v)return V;O=[];O.push(new nq(QR(y)));y==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&L!==void 0&&O.push(new mG(L));return Object.assign({},C,{renderingContent:m.renderingContent,uo:new Map([["impression",mSm(m)]])},V,{PD:P9(h,w)(C),clientMetadata:new aX(O),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData})},BHa=function(m,V,O,h,w,y,L){if(m.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")a:{var C= g.d(m.renderingContent,dg),E=g.d(m.renderingContent,Ul); L=new Map;if(C){L=g.d(C.sidePanel,cXC);if(!L){m=new v("DismissablePanelTextPortraitImageRenderer is missing");break a}L=new Map([["impression",L.impressionPings||[]],["resume",L.resumePings||[]]])}else if(!E){m=new v("AdsEngagementPanelSectionListViewModel is missing");break a}C={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,aY:"core"};V=li(m,V,O);m=V instanceof v?V:Object.assign({},C,{renderingContent:m.renderingContent,uo:L},V,{PD:P9(h,w)(C),clientMetadata:new aX([new nq(QR(y))]), adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData})}else m.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.d(m.renderingContent,kM5)?(L={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,aY:"core"},V=li(m,V,O),m=V instanceof v?V:Object.assign({},L,{renderingContent:m.renderingContent,uo:new Map},V,{PD:P9(h,w)(L),clientMetadata:new aX([new nq(QR(y))]),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData})):m=new v("CounterfactualRenderer is missing"): m.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?m=new v("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):m.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?m=new v("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):m.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.d(m.renderingContent,tB)?(y={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,aY:"core"},V=li(m, V,O),m=V instanceof v?V:L?Object.assign({},y,{renderingContent:m.renderingContent,uo:new Map},V,{PD:P9(h,w)(y),clientMetadata:new aX([new mG(L)]),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData}):new v("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):m=new v("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):m.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.d(m.renderingContent,Ul)?(y={layoutId:m.adLayoutMetadata.layoutId, layoutType:m.adLayoutMetadata.layoutType,aY:"core"},V=li(m,V,O),m=V instanceof v?V:Object.assign({},y,{renderingContent:m.renderingContent,uo:new Map([])},V,{PD:P9(h,w)(y),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new aX([])})):m=new v("AdsEngagementPanelSectionListViewModel is missing"):m=new v("LayoutType ["+m.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return m},l$G=function(m,V,O,h,w){if(!g.d(m.renderingContent,Ul))return new v("AdsEngagementPanelSectionListViewModel is missing"); var y={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,aY:"core"};V=li(m,V,O);return V instanceof v?V:Object.assign({},y,{renderingContent:m.renderingContent,uo:new Map([])},V,{PD:P9(h,w)(y),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new aX([])})},Gkm=function(m,V,O,h,w,y,L,C,E,q){if((q==null?void 0:q.gA)===void 0||(q==null?void 0:q.ih)===void 0)return new v("Cached ad break range from cue point is missing"); var M=li(O,w,h.ML);if(M instanceof v)return M;M={layoutExitMuteTriggers:[],layoutExitNormalTriggers:M.layoutExitNormalTriggers,layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};if(g.d(O.renderingContent,qR))return m=VHp(m,V,O,M,w,y,L,h.ML,q.gA,q.ih),m instanceof v?m:m.tY===void 0?new v("Expecting associatedInPlayerSlot for single DAI media layout"):{layout:m.layout,UZ:[m.tY]};var f=g.d(O.renderingContent,Cm);if(f){if(!Pr(O.adLayoutMetadata))return new v("Invalid ad layout metadata"); if(!El(f))return new v("Invalid sequential layout");f=f.sequentialLayouts.map(function(x){return x.playerBytesAdLayoutRenderer}); m=Oqp(m,V,O,M,f,w,h,y,L,C,q.gA,q.ih,E);return m instanceof v?m:{layout:m.VJ,UZ:m.UZ}}return new v("Not able to convert a sequential layout")},Oqp=function(m,V,O,h,w,y,L,C,E,q,M,f,x){var R=hUm(w,M,f); if(R instanceof v)return R;var A=[],K=[];R=g.D(R);for(var X=R.next();!X.done;X=R.next()){var c=X.value;X=m;var r=w[c.N6],N=c,n=V;c=y;var F=L,z=C,V$=E,O3=vq(r);if(O3 instanceof v)X=O3;else{var hI={layoutId:r.adLayoutMetadata.layoutId,layoutType:r.adLayoutMetadata.layoutType,aY:"adapter"};N=wl5(n,r,N,c);N instanceof v?X=N:(X=Object.assign({},hI,Pq,{uo:O3,renderingContent:r.renderingContent,clientMetadata:new aX(N),PD:P9(z,X)(hI),adLayoutLoggingData:r.adLayoutMetadata.adLayoutLoggingData}),X=(r=me(V$, X,c,F.ML,z,void 0,!0))?r instanceof v?r:{layout:X,tY:r}:new v("Expecting associatedInPlayerSlot"))}if(X instanceof v)return X;A.push(X.layout);K.push(X.tY)}w={layoutId:O.adLayoutMetadata.layoutId,layoutType:O.adLayoutMetadata.layoutType,aY:"core"};V=[new t0(Number(O.driftRecoveryMs)),new RX(M),new oX(f),new nq(QR(V)),new nQ(q),new A0({})];x&&V.push(new e0({}));return{VJ:Object.assign({},w,h,{V0:A,uo:new Map,clientMetadata:new aX(V),PD:P9(C,m)(w)}),UZ:K}},VHp=function(m,V,O,h,w,y,L,C,E,q){if(!RB(O))return new v("Invalid PlayerBytesAdLayoutRenderer"); var M=vq(O);if(M instanceof v)return M;var f={layoutId:O.adLayoutMetadata.layoutId,layoutType:O.adLayoutMetadata.layoutType,aY:"core"},x=g.d(O.renderingContent,qR);if(!x)return new v("Invalid rendering content for DAI media layout");x=Fr(x,!1);E={K1:x,N6:0,Cp:E,NW:Math.min(E+x.videoLengthSeconds*1E3,q),G9:new Wr(0,[x.videoLengthSeconds])};var R;q=(R=Number(O.driftRecoveryMs))!=null?R:void 0;V=wl5(V,O,E,w,q);if(V instanceof v)return V;m=Object.assign({},f,h,{uo:M,renderingContent:O.renderingContent, clientMetadata:new aX(V),PD:P9(y,m)(f),adLayoutLoggingData:O.adLayoutMetadata.adLayoutLoggingData});return(w=me(L,m,w,C,y,void 0,!0))?w instanceof v?w:{layout:m,tY:w}:new v("Expecting associatedInPlayerSlot")},pvm=function(m,V,O,h,w,y,L,C,E,q,M,f,x,R,A){var K=li(O,y,w.ML); if(K instanceof v)return K;if(g.d(O.renderingContent,qR)){E=y4U([O],w,E);if(E instanceof v)return E;if(E.length!==1)return new v("Only expected one media layout.");m=jGX(m,V,O,K,E[0],void 0,"core",h,y,L,C,q,x,R,w.ML,void 0,A);return m instanceof v?m:{layout:m.layout,UZ:m.tY?[m.tY]:[]}}var X=g.d(O.renderingContent,Cm);if(X){if(!Pr(O.adLayoutMetadata))return new v("Invalid ad layout metadata");if(!El(X))return new v("Invalid sequential layout");X=X.sequentialLayouts.map(function(c){return c.playerBytesAdLayoutRenderer}); m=LWU(m,V,O.adLayoutMetadata,K,X,h,y,w,E,L,C,q,M,f,x,R,A);return m instanceof v?m:{layout:m.VJ,UZ:m.UZ}}return new v("Not able to convert a sequential layout")},LWU=function(m,V,O,h,w,y,L,C,E,q,M,f,x,R,A,K,X){var c=new uv({current:null}),r=y4U(w,C,E); if(r instanceof v)return r;E=[];for(var N=[],n=void 0,F=0;F0&&(n.push(K),n.push(new eH(N.adPodSkipTarget)));(y=q.get(N.externalVideoId))&&n.push(new H9(y));y=n}else y=new v("Invalid vod media renderer")}if(y instanceof v)return y;m=Object.assign({},L,h,{uo:c,renderingContent:O.renderingContent,clientMetadata:new aX(y),PD:P9(M, m)(L),adLayoutLoggingData:O.adLayoutMetadata.adLayoutLoggingData});O=g.d(O.renderingContent,qR);if(!O||!JB(O))return new v("Invalid meida renderer");f=eW(f,O.externalVideoId);f.instreamVideoAdRenderer=O;f.uW="AD_PLACEMENT_KIND_START";return R?(E=me(x,m,E,A,M,K,!1),E instanceof v?E:EvC(m.layoutId,x)&&E?{layout:Object.assign({},m,{clientMetadata:new aX(y.concat(new GQ(E)))})}:{layout:m,tY:E}):{layout:m}},J47=function(m,V,O,h,w){if(!RB(V))return new v("Invalid PlayerBytesAdLayoutRenderer"); var y=g.d(V.renderingContent,QH);if(!y||y.durationMilliseconds===void 0)return new v("Invalid endcap renderer");var L={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType,aY:"adapter"};h=[new $A(y.durationMilliseconds),new r6({impressionCommands:void 0,abandonCommands:y.abandonCommands?[{commandExecutorCommand:y.abandonCommands}]:void 0,completeCommands:y.completionCommands}),new nq(h),new h0("LAYOUT_TYPE_ENDCAP")];if(w){h.push(new IG(w.G9.adPodIndex-1));h.push(new g6(w.G9.adPodIndex)); var C;h.push(new eH((C=w.adPodSkipTarget)!=null?C:-1))}return Object.assign({},L,Pq,{renderingContent:V.renderingContent,clientMetadata:new aX(h),uo:y.skipPings?new Map([["skip",y.skipPings]]):new Map,PD:P9(O,m)(L),adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData})},me=function(m,V,O,h,w,y,L){m=m.filter(function(f){return f.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&f.adSlotMetadata.triggeringSourceLayoutId===V.layoutId}); if(m.length!==0){if(m.length!==1)return new v("Invalid InPlayer slot association for the given PlayerBytes layout");var C=m[0],E=iG$(C,O,h);if(E instanceof v)return E;var q;m={slotId:C.adSlotMetadata.slotId,slotType:C.adSlotMetadata.slotType,slotPhysicalPosition:(q=C.adSlotMetadata.slotPhysicalPosition)!=null?q:1,aY:"core",slotEntryTrigger:E.slotEntryTrigger,slotFulfillmentTriggers:E.slotFulfillmentTriggers,slotExpirationTriggers:E.slotExpirationTriggers};q=g.d(C.fulfillmentContent.fulfilledLayout, no7);if(!q||!YBm(q))return new v("Invalid InPlayerAdLayoutRenderer");E={layoutId:q.adLayoutMetadata.layoutId,layoutType:q.adLayoutMetadata.layoutType,aY:"core"};O=li(q,O,h);if(O instanceof v)return O;h=[];var M=q.adLayoutMetadata.layoutType;L&&h.push(new A0({}));if(M==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")h.push.apply(h,g.b(qGG(C.adSlotMetadata.triggerEvent,V))),(y=MHX(O,V.layoutId))&&h.push(new Vi(y));else if(M==="LAYOUT_TYPE_ENDCAP"||M==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){h.push(new nq(QR(C.adSlotMetadata.triggerEvent))); if(M==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new v("Cannot parse endcap layout since AdUxReadyApi is not provided");y&&h.push(y)}else return new v("Not able to parse an SDF InPlayer layout");w=Object.assign({},E,O,{renderingContent:q.renderingContent,uo:new Map,PD:P9(w,m)(E),clientMetadata:new aX(h),adLayoutLoggingData:q.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},m,{fulfilledLayout:w,clientMetadata:new aX([])})}},qGG=function(m,V){var O=[]; O.push(new nq(QR(m)));O.push(new mG(V.layoutId));(m=GJ(V.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&O.push(new j0(m));(m=GJ(V.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&O.push(new uv(m));(m=GJ(V.clientMetadata,"metadata_type_remote_slots_data"))&&O.push(new H9(m));(m=GJ(V.clientMetadata,"metadata_type_ad_next_params"))&&O.push(new $v(m));(m=GJ(V.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&O.push(new Yv(m));(m=GJ(V.clientMetadata,"metadata_type_ad_pod_info"))&& O.push(new SH(m));(V=GJ(V.clientMetadata,"metadata_type_ad_video_id"))&&O.push(new zQ(V));return O},Cvp=function(m,V,O,h,w,y){function L(q){return VY(V,q)} var C=h.PZ.inPlayerSlotId,E={layoutId:h.PZ.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",aY:"core"};O={slotId:C,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,aY:"core",slotEntryTrigger:new Yn(L,m),slotFulfillmentTriggers:[new F1(L,C)],slotExpirationTriggers:[new a1(L,C),new zd(L,O)]};m=Object.assign({},E,{layoutExitNormalTriggers:[new rR(L,m)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],uo:new Map,clientMetadata:new aX([new Bl(h.PZ), new nq(h.adPlacementConfig),w]),PD:P9(y,O)(E),adLayoutLoggingData:h.PZ.adLayoutLoggingData});return Object.assign({},O,{clientMetadata:new aX([new KQ(m)])})},EvC=function(m,V){V=g.D(V); for(var O=V.next();!O.done;O=V.next())if(O=O.value,O.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var h=g.d(O.fulfillmentContent.fulfilledLayout,Km);if(h&&(h=g.d(h.renderingContent,dg))&&h.associatedPlayerBytesLayoutId===m)return O}},iG$=function(m,V,O){var h=nm(m.slotEntryTrigger,V,O); if(h instanceof v)return h;for(var w=[],y=g.D(m.slotFulfillmentTriggers),L=y.next();!L.done;L=y.next()){L=nm(L.value,V,O);if(L instanceof v)return L;w.push(L)}y=[];m=g.D(m.slotExpirationTriggers);for(L=m.next();!L.done;L=m.next()){L=nm(L.value,V,O);if(L instanceof v)return L;y.push(L)}return{slotEntryTrigger:h,slotFulfillmentTriggers:w,slotExpirationTriggers:y}},li=function(m,V,O){for(var h=[],w=g.D(m.layoutExitNormalTriggers||[]),y=w.next();!y.done;y=w.next()){y=nm(y.value,V,O); if(y instanceof v)return y;h.push(y)}w=[];y=g.D(m.layoutExitSkipTriggers||[]);for(var L=y.next();!L.done;L=y.next()){L=nm(L.value,V,O);if(L instanceof v)return L;w.push(L)}y=[];L=g.D(m.layoutExitMuteTriggers||[]);for(var C=L.next();!C.done;C=L.next()){C=nm(C.value,V,O);if(C instanceof v)return C;y.push(C)}L=[];m=g.D(m.layoutExitUserInputSubmittedTriggers||[]);for(C=m.next();!C.done;C=m.next()){C=nm(C.value,V,O);if(C instanceof v)return C;L.push(C)}return{layoutExitNormalTriggers:h,layoutExitSkipTriggers:w, layoutExitMuteTriggers:y,layoutExitUserInputSubmittedTriggers:L,layoutExitUserCancelledTriggers:[]}},vq=function(m){var V=g.d(m.renderingContent,qR); if(V==null?0:V.pings)return fj(V.pings);m=g.d(m.renderingContent,QH);return(m==null?0:m.skipPings)?new Map([["skip",m.skipPings]]):new Map},wl5=function(m,V,O,h,w){V=g.d(V.renderingContent,qR); if(!V)return new v("Invalid rendering content for DAI media layout");m=[new Zr(h),new qz(O.K1.videoLengthSeconds),new Mz(O.K1.playerVars),new RX(O.Cp),new oX(O.NW),new g6(O.N6),new nq(QR(m)),new zQ(O.K1.adVideoId),new SH(O.G9),V.sodarExtensionData&&new xA(V.sodarExtensionData),new j0({current:null}),new A0({}),new Nz(MK(V.pings))].filter(a$m);w!==void 0&&m.push(new t0(w));return m},hUm=function(m,V,O){m=m.map(function(E){return Fr(g.d(E.renderingContent,qR),!1)}); var h=m.map(function(E){return E.videoLengthSeconds}),w=h.map(function(E,q){return new Wr(q,h)}),y=V,L=O,C=[]; m.forEach(function(E,q){L=Math.min(y+E.videoLengthSeconds*1E3,O);SW(E.playerVars,w[q]);C.push({K1:E,Cp:y,NW:L,N6:q,G9:w[q]});y=L}); return C},y4U=function(m,V,O){for(var h=[],w=g.D(m),y=w.next();!y.done;y=w.next())if(y=g.d(y.value.renderingContent,qR)){if(!JB(y))return new v("Invalid vod media renderer"); h.push(frC(y))}w=h.map(function(f){return f.KT}); y=[];for(var L=0,C=0;C0?jG:-1;else if(Ko=g.d(w7,QH)){w7=Xl3(m,V,O,Ko,y,K,C,V$,jG);if(w7 instanceof v){R=w7;break a}w7=w7(x);X.push(w7.lw); c=[].concat(g.b(w7.nw),g.b(c));r=[].concat(g.b(w7.vt),g.b(r));w7.tY&&(hI=[w7.tY].concat(g.b(hI)))}else if(Ko=g.d(w7,fm)){if(R===void 0){R=new v("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:Ko});break a}w7=$SC(m,V,O,y,Ko,z,C,R,K,I2(M,"supports_multi_step_on_desktop"));if(w7 instanceof v){R=w7;break a}w7=w7(x);X.push(w7.lw);w7.tY&&hI.push(w7.tY);c=[].concat(g.b(w7.nw),g.b(c));r=[].concat(g.b(w7.vt),g.b(r));N=[].concat(g.b(w7.gJ),g.b(N));n=[].concat(g.b(w7.im), g.b(n));F=[z].concat(g.b(F))}else if(w7=g.d(w7,xE)){w7=YGU(m,V,O,y,w7,z,C,K);if(w7 instanceof v){R=w7;break a}w7=w7(x);X.push(w7.lw);w7.tY&&hI.push(w7.tY);r=[].concat(g.b(w7.vt),g.b(r))}else{R=new v("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}R={V0:X,layoutExitSkipTriggers:c,layoutExitUserInputSubmittedTriggers:N,layoutExitUserCancelledTriggers:n,layoutExitMuteTriggers:r,z1:F,UZ:hI}}}else a:if(K=SG1(h),K instanceof v)R=K;else{X=0;c=[];r=[];N=[];n=[];F=[];z=[];V$=new LQ({current:null}); O3=new uv({current:null});hI=!1;fo=[];jG=-1;A=g.D(h);for(w7=A.next();!w7.done;w7=A.next())if(w7=w7.value,g.d(w7,MR)){w7=Hqa(V,O,g.d(w7,MR),C);if(w7 instanceof v){R=w7;break a}w7=w7(x);c.push(w7.lw);r=[].concat(g.b(w7.nw),g.b(r));N=[].concat(g.b(w7.vt),g.b(N));w7.tY&&(fo=[w7.tY].concat(g.b(fo)))}else if(g.d(w7,qR)){jG=aB(g.d(w7,qR));if(jG instanceof FN){R=new v(jG);break a}w7=new Wr(X,K);w7=Irl(V,jG.layoutId,jG.un,O,ii(jG.playerVars,jG.yS,L,q,w7),jG.KT,y,w7,C(x),O3,E.get(jG.un.externalVideoId),void 0, f);X++;c.push(w7.lw);r=[].concat(g.b(w7.nw),g.b(r));N=[].concat(g.b(w7.vt),g.b(N));hI||(z.push(O3),hI=!0);jG=(jG=jG.un.adPodSkipTarget)&&jG>0?jG:-1}else if(g.d(w7,QH)){w7=Xl3(m,V,O,g.d(w7,QH),y,X,C,O3,jG);if(w7 instanceof v){R=w7;break a}w7=w7(x);c.push(w7.lw);r=[].concat(g.b(w7.nw),g.b(r));N=[].concat(g.b(w7.vt),g.b(N));w7.tY&&(fo=[w7.tY].concat(g.b(fo)))}else if(g.d(w7,fm)){if(R===void 0){R=new v("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.d(w7, fm)});break a}w7=$SC(m,V,O,y,g.d(w7,fm),V$,C,R,X,I2(M,"supports_multi_step_on_desktop"));if(w7 instanceof v){R=w7;break a}w7=w7(x);c.push(w7.lw);w7.tY&&fo.push(w7.tY);r=[].concat(g.b(w7.nw),g.b(r));N=[].concat(g.b(w7.vt),g.b(N));n=[].concat(g.b(w7.gJ),g.b(n));F=[].concat(g.b(w7.im),g.b(F));z=[V$].concat(g.b(z))}else if(g.d(w7,xE)){w7=YGU(m,V,O,y,g.d(w7,xE),V$,C,X);if(w7 instanceof v){R=w7;break a}w7=w7(x);c.push(w7.lw);w7.tY&&fo.push(w7.tY);N=[].concat(g.b(w7.vt),g.b(N))}else{R=new v("Unsupported linearAd found in LinearAdSequenceRenderer."); break a}R={V0:c,layoutExitSkipTriggers:r,layoutExitUserInputSubmittedTriggers:n,layoutExitUserCancelledTriggers:F,layoutExitMuteTriggers:N,z1:z,UZ:fo}}R instanceof v?x=R:(F=x.slotId,K=R.V0,X=R.layoutExitSkipTriggers,c=R.layoutExitMuteTriggers,r=R.layoutExitUserInputSubmittedTriggers,N=R.z1,x=C(x),n=w?w.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",F=w?w.layoutId:ep(V.L.get(),n,F),z={layoutId:F,layoutType:n,aY:"core"},x={layout:{layoutId:F,layoutType:n,uo:new Map,layoutExitNormalTriggers:[new um(V.Z, F)],layoutExitSkipTriggers:X,layoutExitMuteTriggers:c,layoutExitUserInputSubmittedTriggers:r,layoutExitUserCancelledTriggers:[],aY:"core",clientMetadata:new aX([new J0(K)].concat(g.b(N))),PD:x(z)},UZ:R.UZ});return x}},SG1=function(m){var V=[]; m=g.D(m);for(var O=m.next();!O.done;O=m.next())if(O=O.value,g.d(O,qR)){O=aB(g.d(O,qR));if(O instanceof FN)return new v(O);V.push(O.KT)}return V},ubI=function(m,V,O,h,w,y,L,C){if(!FH3(O,C===void 0?!1:C))return new v("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:O}); var E=zf(O);if(E<=0)return new v("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:O});var q=new LQ({current:null}),M=xqI(m,V,O,q,h,y,L);return eUG(m,h,y,E,w,function(f,x){var R=f.slotId,A=ZU(O);f=L(f);R=ep(V.L.get(),"LAYOUT_TYPE_MEDIA_BREAK",R);var K={layoutId:R,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",aY:"core"},X=M(R,x),c=GJ(X.clientMetadata,"metadata_type_fulfilled_layout");c||ER("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen."); A=[new nq(h),new $A(E),new r6(A),q];c&&A.push(new h0(c.layoutType));return{Coe:{layoutId:R,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",uo:new Map,layoutExitNormalTriggers:[new um(V.Z,R)],layoutExitSkipTriggers:[new sW(V.Z,x.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new lm(V.Z,x.layoutId)],layoutExitUserCancelledTriggers:[],aY:"core",clientMetadata:new aX(A),PD:f(K)},nNN:X}})},zUa=function(m){if(!GMo(m))return!1; var V=g.d(m.adVideoStart,jR);return V?g.d(m.linearAd,qR)&&jW(V)?!0:(ER("Invalid Sandwich with notify"),!1):!1},Zq0=function(m){if(m.linearAds==null)return!1; m=g.d(m.adStart,jR);return m?jW(m)?!0:(ER("Invalid LASR with notify"),!1):!1},sGI=function(m){if(!iP0(m))return!1; m=g.d(m.adStart,jR);return m?jW(m)?!0:(ER("Invalid LASR with notify"),!1):!1},LL=function(m,V,O,h,w,y,L,C,E,q){this.T=m; this.L=V;this.Z=O;this.ze=h;this.n6=w;this.D=y;this.Ge=L;this.YF=C;this.My=E;this.loadPolicy=q===void 0?1:q},NR=function(m,V,O,h,w,y,L,C,E,q,M){var f=[]; if(V.length===0&&h.length===0&&O.length===0)return f;V=V.filter(Lm);var x=O.filter(uoX),R=h.filter(Lm),A=new Map,K=FZ1(V),X=O.some(function(zl){var lp;return(zl==null?void 0:(lp=zl.adSlotMetadata)==null?void 0:lp.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),c=O.some(function(zl){var lp; return(zl==null?void 0:(lp=zl.adSlotMetadata)==null?void 0:lp.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),r=O.some(function(zl){var lp; return(zl==null?void 0:(lp=zl.adSlotMetadata)==null?void 0:lp.slotType)==="SLOT_TYPE_IN_PLAYER"}),N=O.some(function(zl){var lp,SG; return(zl==null?void 0:(lp=zl.adSlotMetadata)==null?void 0:lp.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(zl==null?void 0:(SG=zl.adSlotMetadata)==null?void 0:SG.slotType)==="SLOT_TYPE_ABOVE_FEED"}),n=O.some(function(zl){var lp; return(zl==null?void 0:(lp=zl.adSlotMetadata)==null?void 0:lp.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); O=O.some(function(zl){var lp;return(zl==null?void 0:(lp=zl.adSlotMetadata)==null?void 0:lp.slotType)==="SLOT_TYPE_IN_PLAYER_ORGANIC_OVERLAY"}); if(X||c||r||N||n||O)q=Poa(x,V,C,w,K,m.n6.get(),m.loadPolicy,A,m.ze.get(),m.T.get(),r,L,E,q,M),q instanceof v?ER(q,void 0,void 0,{contentCpn:w}):f.push.apply(f,g.b(q));q=g.D(V);for(O=q.next();!O.done;O=q.next())O=O.value,c=FWX(m,A,O,w,y,L,X,C,K,E,x,m.ze.get().U.j().experiments.w0("html5_enable_triggering_cuepoint_for_slot")?M:void 0),c instanceof v?ER(c,void 0,void 0,{renderer:O.renderer,config:O.config.adPlacementConfig,kind:O.config.adPlacementConfig.kind,contentCpn:w,daiEnabled:L}):f.push.apply(f, g.b(c));arp(m.ze.get())||(y=iqo(m,R,w,C,K,A),f.push.apply(f,g.b(y)));if(m.D===null||L&&!C.PG){var F,z,V$;m=C.yp&&V.length===1&&((F=V[0].config)==null?void 0:(z=F.adPlacementConfig)==null?void 0:z.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((V$=V[0].renderer)==null?void 0:V$.adBreakServiceRenderer);if(!f.length&&!m){var O3,hI,jG,fo;ER("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":V.length,contentCpn:w,"first APR kind":(O3=V[0])==null?void 0: (hI=O3.config)==null?void 0:(jG=hI.adPlacementConfig)==null?void 0:jG.kind,renderer:(fo=V[0])==null?void 0:fo.renderer})}return f}F=h.filter(Lm);f.push.apply(f,g.b(q47(A,F,m.L.get(),m.D,w,X)));if(!f.length){var w7,Ko,vX,L5;ER("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":V.length,contentCpn:w,daiEnabled:L.toString(),"first APR kind":(w7=V[0])==null?void 0:(Ko=w7.config)==null?void 0:(vX=Ko.adPlacementConfig)==null?void 0:vX.kind,renderer:(L5=V[0])==null? void 0:L5.renderer})}return f},iqo=function(m,V,O,h,w,y){function L(x){return P9(m.n6.get(),x)} var C=[];V=g.D(V);for(var E=V.next();!E.done;E=V.next()){E=E.value;var q=E.renderer,M=q.sandwichedLinearAdRenderer,f=q.linearAdSequenceRenderer;M&&zUa(M)?(ER("Found AdNotify with SandwichedLinearAdRenderer"),f=g.d(M.adVideoStart,jR),M=g.d(M.linearAd,qR),IB(y,q,E.config.adPlacementConfig.kind),q=void 0,f=NHC((q=f)==null?void 0:q.layout.layoutId,m.L.get(),m.Z.get(),E.config.adPlacementConfig,E.adSlotLoggingData,M,O,h,L,w,m.loadPolicy,m.ze.get(),m.n6.get()),f instanceof v?ER(f):C.push.apply(C,g.b(f))): f&&(!f.adLayoutMetadata&&Zq0(f)||f.adLayoutMetadata&&sGI(f))&&(ER("Found AdNotify with LinearAdSequenceRenderer"),IB(y,q,E.config.adPlacementConfig.kind),q=void 0,M=kQ3((q=g.d(f.adStart,jR))==null?void 0:q.layout.layoutId,m.L.get(),m.Z.get(),E.config.adPlacementConfig,E.adSlotLoggingData,f.linearAds,Pr(f.adLayoutMetadata)?f.adLayoutMetadata:void 0,O,h,L,w,m.loadPolicy,m.ze.get()),M instanceof v?ER(M):C.push.apply(C,g.b(M)))}return C},FWX=function(m,V,O,h,w,y,L,C,E,q,M,f){function x(r){return P9(m.n6.get(), r)} var R=O.renderer,A=O.config.adPlacementConfig,K=A.kind,X=O.adSlotLoggingData,c=C.PG&&K==="AD_PLACEMENT_KIND_START";c=y&&!c;if(R.adsEngagementPanelRenderer!=null)return ui(V,O.elementId,K,R.adsEngagementPanelRenderer.isContentVideoEngagementPanel,R.adsEngagementPanelRenderer.adVideoId,R.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,A,X,function(r,N,n,F){var z=m.Z.get(),V$=r.slotId,O3=R.adsEngagementPanelRenderer;r=P9(m.n6.get(),r);return J5(z,V$,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new Hl(O3),N,n,O3.impressionPings,r,R.adsEngagementPanelRenderer.adLayoutLoggingData,F)}),[]; if(R.adsEngagementPanelLayoutViewModel)return ui(V,O.elementId,K,R.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,R.adsEngagementPanelLayoutViewModel.adVideoId,R.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,A,X,function(r,N,n,F){var z=m.Z.get(),V$=r.slotId,O3=R.adsEngagementPanelLayoutViewModel;r=P9(m.n6.get(),r);return CL(z,V$,"LAYOUT_TYPE_PANEL",new TQ(O3),N,n,r,R.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,F)}),[]; if(R.actionCompanionAdRenderer!=null){if(R.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return jiG(m.L.get(),m.D,m.Z.get(),R.actionCompanionAdRenderer,A,X,h,x);ui(V,O.elementId,K,R.actionCompanionAdRenderer.isContentVideoCompanion,R.actionCompanionAdRenderer.adVideoId,R.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,A,X,function(r,N,n,F){var z=m.Z.get(),V$=r.slotId,O3=R.actionCompanionAdRenderer;r=P9(m.n6.get(),r);return J5(z,V$,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new Wl(O3),N,n,O3.impressionPings,r,R.actionCompanionAdRenderer.adLayoutLoggingData,F)})}else if(R.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(R.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return LZl(m.L.get(),m.D,m.Z.get(),R.topBannerImageTextIconButtonedLayoutViewModel,A,X,h,x); ui(V,O.elementId,K,R.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,R.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,R.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,A,X,function(r,N,n,F){var z=m.Z.get(),V$=r.slotId,O3=R.topBannerImageTextIconButtonedLayoutViewModel;r=P9(m.n6.get(),r);return CL(z,V$,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new Xb(O3),N,n,r,R.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,F)})}else if(R.imageCompanionAdRenderer)ui(V, O.elementId,K,R.imageCompanionAdRenderer.isContentVideoCompanion,R.imageCompanionAdRenderer.adVideoId,R.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,A,X,function(r,N,n,F){var z=m.Z.get(),V$=r.slotId,O3=R.imageCompanionAdRenderer; r=P9(m.n6.get(),r);return J5(z,V$,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new rL(O3),N,n,O3.impressionPings,r,R.imageCompanionAdRenderer.adLayoutLoggingData,F)}); else if(R.bannerImageLayoutViewModel)ui(V,O.elementId,K,R.bannerImageLayoutViewModel.isContentVideoCompanion,R.bannerImageLayoutViewModel.adVideoId,R.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,A,X,function(r,N,n,F){var z=m.Z.get(),V$=r.slotId,O3=R.bannerImageLayoutViewModel;r=P9(m.n6.get(),r);return CL(z,V$,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new cl(O3),N,n,r,R.bannerImageLayoutViewModel.adLayoutLoggingData,F)}); else if(R.shoppingCompanionCarouselRenderer)ui(V,O.elementId,K,R.shoppingCompanionCarouselRenderer.isContentVideoCompanion,R.shoppingCompanionCarouselRenderer.adVideoId,R.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,A,X,function(r,N,n,F){var z=m.Z.get(),V$=r.slotId,O3=R.shoppingCompanionCarouselRenderer;r=P9(m.n6.get(),r);return J5(z,V$,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new Dr(O3),N,n,O3.impressionPings,r,R.shoppingCompanionCarouselRenderer.adLayoutLoggingData,F)}); else if(R.adBreakServiceRenderer){if(!wva(O))return[];if(K==="AD_PLACEMENT_KIND_PAUSE")return h$0(m.L.get(),A,X,O.renderer.adBreakServiceRenderer,h);if(K!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&K!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return OGp(m.L.get(),A,X,O.renderer.adBreakServiceRenderer,h,w,y);C.yp||ER("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:K,adPlacementConfig:A,daiEnabledForContentVideo:String(y),isServedFromLiveInfra:String(C.yp),clientPlaybackNonce:C.clientPlaybackNonce}); if(K==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!m.Ge)return new v("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!m.My)return new v("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");m.My.tT({adPlacementRenderer:O,contentCpn:h,ML:w});w=m.Ge.get().getCurrentTimeSec(1,!1);return GQl(m.L.get(),O.renderer.adBreakServiceRenderer,A,w,h,X,y)}if(!m.YF)return new v("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); m.YF.tT({adPlacementRenderer:O,contentCpn:h,ML:w})}else{if(R.clientForecastingAdRenderer)return gv3(m.L.get(),m.Z.get(),A,X,R.clientForecastingAdRenderer,h,w,x);if(R.invideoOverlayAdRenderer)return tHa(m.L.get(),m.Z.get(),A,X,R.invideoOverlayAdRenderer,h,w,x);if(R.instreamAdPlayerOverlayRenderer)return USa(m.L.get(),m.Z.get(),A,X,R.instreamAdPlayerOverlayRenderer,h,x);if((R.linearAdSequenceRenderer||R.instreamVideoAdRenderer)&&c)return $qG(m.L.get(),m.Z.get(),O,h,x,q,!m.ze.get().U.j().Y("html5_override_ad_video_length_killswitch"), f);if(R.linearAdSequenceRenderer&&!c){if(L)return[];IB(V,R,K);if(R.linearAdSequenceRenderer.adLayoutMetadata){if(!iP0(R.linearAdSequenceRenderer))return new v("Received invalid LinearAdSequenceRenderer.")}else if(R.linearAdSequenceRenderer.linearAds==null)return new v("Received invalid LinearAdSequenceRenderer.");if(g.d(R.linearAdSequenceRenderer.adStart,jR)){ER("Found AdNotify in LinearAdSequenceRenderer");O=g.d(R.linearAdSequenceRenderer.adStart,jR);if(!T5$(O))return new v("Invalid AdMessageRenderer."); y=R.linearAdSequenceRenderer.linearAds;return r4U(m.T.get(),m.L.get(),m.Z.get(),m.n6.get(),A,X,O,Pr(R.linearAdSequenceRenderer.adLayoutMetadata)?R.linearAdSequenceRenderer.adLayoutMetadata:void 0,y,h,w,C,x,E,m.loadPolicy,m.ze.get())}return nvU(m.L.get(),m.Z.get(),A,X,R.linearAdSequenceRenderer.linearAds,Pr(R.linearAdSequenceRenderer.adLayoutMetadata)?R.linearAdSequenceRenderer.adLayoutMetadata:void 0,h,w,C,x,E,m.loadPolicy,m.ze.get(),M)}if(!R.remoteSlotsRenderer||y){if(R.instreamVideoAdRenderer&& !c){if(L)return[];IB(V,R,K);return e$p(m.L.get(),m.Z.get(),A,X,R.instreamVideoAdRenderer,h,w,C,x,E,m.loadPolicy,m.ze.get(),m.n6.get(),M)}if(R.instreamSurveyAdRenderer)return ubI(m.L.get(),m.Z.get(),R.instreamSurveyAdRenderer,A,X,h,x,I2(m.ze.get(),"supports_multi_step_on_desktop"));if(R.sandwichedLinearAdRenderer!=null)return GMo(R.sandwichedLinearAdRenderer)?g.d(R.sandwichedLinearAdRenderer.adVideoStart,jR)?(ER("Found AdNotify in SandwichedLinearAdRenderer"),O=g.d(R.sandwichedLinearAdRenderer.adVideoStart, jR),T5$(O)?(y=g.d(R.sandwichedLinearAdRenderer.linearAd,qR))?bGC(O,y,A,m.T.get(),m.L.get(),m.Z.get(),m.n6.get(),X,h,w,C,x,E,m.loadPolicy,m.ze.get()):new v("Missing IVAR from Sandwich"):new v("Invalid AdMessageRenderer.")):nvU(m.L.get(),m.Z.get(),A,X,[R.sandwichedLinearAdRenderer.adVideoStart,R.sandwichedLinearAdRenderer.linearAd],void 0,h,w,C,x,E,m.loadPolicy,m.ze.get()):new v("Received invalid SandwichedLinearAdRenderer.");if(R.videoAdTrackingRenderer!=null)return RUI(m.L.get(),m.Z.get(),R.videoAdTrackingRenderer, A,X,h,w,C.X3,x)}}return[]},EU=function(m,V,O,h,w,y,L,C){g.Z.call(this); var E=this;this.L=m;this.D=V;this.eK=h;this.Ge=w;this.ze=y;this.qf=L;this.rY=C;this.Z=null;O.get().addListener(this);this.addOnDisposeCallback(function(){O.UH()||O.get().removeListener(E)}); h.get().addListener(this);this.addOnDisposeCallback(function(){h.UH()||h.get().removeListener(E)})},fL=function(m,V,O){var h=m.Ge.get().getCurrentTimeSec(1,!1); m.ze.get().U.j().tj()&&OW(m.qf.get(),"sdai","onopp.1;evt."+O.event+";start."+O.startSecs.toFixed(3)+";d."+O.Ul.toFixed(3));OE(m.L.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var w=m.D.get(),y=V.adPlacementRenderer.renderer.adBreakServiceRenderer,L=V.contentCpn,C=V.adPlacementRenderer.adSlotLoggingData;qw(m.ze.get());var E=m.qf;var q=w.ze.get();q=g.m9(q.U.j().experiments,"max_prefetch_window_sec_for_livestream_optimization");var M=w.ze.get();var f=g.m9(M.U.j().experiments,"min_prefetch_offset_sec_for_livestream_optimization"); M=O.startSecs*1E3;M={rQ:new $N(M,M+O.Ul*1E3),O5:!1,cueProcessedMs:h*1E3};var x=O.startSecs+O.Ul;if(h===0)M.Xj=new $N(0,x*1E3);else{f=O.startSecs-f;var R=f-h;M.Xj=R<=0?new $N(f*1E3,x*1E3):new $N(Math.floor(h+Math.random()*Math.min(R,q))*1E3,x*1E3)}y=bi(w,y,L,M,C,[new CQ(O)]);Mw(w.ze.get())&&OW(E.get(),"abrsm","cpi."+O.identifier+";cps."+O.startSecs+";cpd."+O.Ul+";cts."+h+";rbf."+M.Xj.start);E.get().U.h3(O.startSecs-h,M.Xj.start/1E3-h);return[y]})},xh=function(m){var V,O=(V=GJ(m.clientMetadata,"metadata_type_player_bytes_callback_ref"))== null?void 0:V.current; if(!O)return null;V=GJ(m.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var h=m.layoutId,w=GJ(m.clientMetadata,"metadata_type_content_cpn"),y=GJ(m.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),L=GJ(m.clientMetadata,"metadata_type_player_overlay_layout_renderer"),C=GJ(m.clientMetadata,"metadata_type_player_underlay_renderer"),E=GJ(m.clientMetadata,"metadata_type_ad_placement_config"),q=GJ(m.clientMetadata,"metadata_type_video_length_seconds");var M=uf(m.clientMetadata, "METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?GJ(m.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):uf(m.clientMetadata,"metadata_type_layout_enter_ms")&&uf(m.clientMetadata,"metadata_type_layout_exit_ms")?(GJ(m.clientMetadata,"metadata_type_layout_exit_ms")-GJ(m.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Oo:h,contentCpn:w,E3:O,zX:V,instreamAdPlayerOverlayRenderer:y,playerOverlayLayoutRenderer:L,instreamAdPlayerUnderlayRenderer:C,adPlacementConfig:E,videoLengthSeconds:q, vQ:M,inPlayerLayoutId:GJ(m.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:GJ(m.clientMetadata,"metadata_type_linked_in_player_slot_id")}},BLX=function(m,V){return plm(m,V)},lrU=function(m,V){V=plm(m,V); if(!V)return null;var O;V.vQ=(O=GJ(m.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:O.adBreakRemainingLengthSeconds;return V},plm=function(m,V){var O,h=(O=GJ(m.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:O.current; if(!h)return null;O=Fr5(m,V);return{Y$:sz0(m,V),adPlacementConfig:GJ(m.clientMetadata,"metadata_type_ad_placement_config"),oG:O,contentCpn:GJ(m.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:GJ(m.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:GJ(m.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:GJ(m.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0, vQ:void 0,E3:h,Oo:m.layoutId,videoLengthSeconds:GJ(m.clientMetadata,"metadata_type_video_length_seconds")}},Ru=function(m,V,O,h,w,y,L,C,E){g.Z.call(this); this.T=m;this.N=V;this.K=O;this.D=h;this.Z=w;this.L=y;this.n6=L;this.ze=C;this.Nf=E;this.vj=!0},QGX=function(m,V,O){return ZGX(m.Z.get(),V.contentCpn,V.Oo,function(h){return si7(m.L.get(),h.slotId,O,V.adPlacementConfig,V.Oo,P9(m.n6.get(),h))})},ou=function(m,V,O,h,w,y,L){g.Z.call(this); this.L=m;this.Z=V;this.D=O;this.T=h;this.Nf=w;this.Ge=y;this.FH=L},gs=function(m){g.Z.call(this); this.Z=m},OE=function(m,V,O,h){m.Z().jJ(V,h); O=O();m=m.Z();m.N8.Z("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",V,h,O);V=g.D(O);for(O=V.next();!O.done;O=V.next())a:{h=m;O=O.value;d2(h.N8,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",O);d2(h.N8,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",O);try{var w=h.Z;if(g.v8(O.slotId))throw new v("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(EP(w,O))throw new v("Duplicate registration for slot.",{slotId:O.slotId,slotEntryTriggerType:O.slotEntryTrigger.triggerType},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT"); if(!w.Ez.e$.has(O.slotType))throw new v("No fulfillment adapter factory registered for slot of type: "+O.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!w.Ez.TK.has(O.slotType))throw new v("No SlotAdapterFactory registered for slot of type: "+O.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");$Z(w,"TRIGGER_CATEGORY_SLOT_ENTRY",O.slotEntryTrigger?[O.slotEntryTrigger]:[]);$Z(w,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",O.slotFulfillmentTriggers);$Z(w, "TRIGGER_CATEGORY_SLOT_EXPIRATION",O.slotExpirationTriggers);var y=h.Z,L=O.slotType+"_"+O.slotPhysicalPosition,C=KR(y,L);if(EP(y,O))throw new v("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");C.set(O.slotId,new IBm(O));y.Z.set(L,C)}catch(O3){O3 instanceof v&&O3.l4?(jp(h.N8,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",O3.l4,O),ER(O3,O,void 0,void 0,O3.Sp)):(jp(h.N8,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",O),ER(O3,O)); break a}EP(h.Z,O).N=!0;try{var E=h.Z,q=EP(E,O),M=O.slotEntryTrigger,f=E.Ez.Mb.get(M.triggerType);f&&(f.CU("TRIGGER_CATEGORY_SLOT_ENTRY",M,O,null),q.mS.set(M.triggerId,f));for(var x=g.D(O.slotFulfillmentTriggers),R=x.next();!R.done;R=x.next()){var A=R.value,K=E.Ez.Mb.get(A.triggerType);K&&(K.CU("TRIGGER_CATEGORY_SLOT_FULFILLMENT",A,O,null),q.Zu.set(A.triggerId,K))}for(var X=g.D(O.slotExpirationTriggers),c=X.next();!c.done;c=X.next()){var r=c.value,N=E.Ez.Mb.get(r.triggerType);N&&(N.CU("TRIGGER_CATEGORY_SLOT_EXPIRATION", r,O,null),q.Qt.set(r.triggerId,N))}var n=E.Ez.e$.get(O.slotType).get().build(E.D,O);q.J=n;var F=E.Ez.TK.get(O.slotType).get().build(E.K,O);F.init();q.L=F}catch(O3){O3 instanceof v&&O3.l4?(jp(h.N8,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",O3.l4,O),ER(O3,O,void 0,void 0,O3.Sp)):(jp(h.N8,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",O),ER(O3,O));LR(h,O,!0);break a}d2(h.N8,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",O);h.Z.Vi(O);for(var z=g.D(h.L),V$=z.next();!V$.done;V$= z.next())V$.value.Vi(O);xZ(h,O)}},A5=function(m,V,O,h,w){g.Z.call(this); var y=this;this.L=m;this.D=V;this.zj=O;this.context=w;this.Z=new Map;h.get().addListener(this);this.addOnDisposeCallback(function(){h.UH()||h.get().removeListener(y)})},lYa=function(m,V){var O=0x8000000000000,h=0,w=0x8000000000000; var y=g.D(V.slotFulfillmentTriggers);for(var L=y.next();!L.done;L=y.next())if(L=L.value,L instanceof n7){var C=L.Z.start;O=Math.min(O,C);h=Math.max(h,L.Z.end);L.visible&&(w=Math.min(w,C))}else ER("Found unexpected fulfillment trigger for throttled slot.",V,null,{fulfillmentTrigger:L});y=O;w=w<0x8000000000000&&O0&&AC(m.N(),O)}; SR=function(m,V,O,h,w){for(var y=[],L=g.D(m.YD.values()),C=L.next();!C.done;C=L.next()){var E=C=C.value,q=E.trigger;E=E.slot;if(q.triggerType===V){if(q instanceof Dq||q instanceof NM||q instanceof Sa){if(w&&q.breakDurationMs!==O)continue;if(!w&&q.breakDurationMs===O)continue;if(h.has(E.slotId))continue}y.push(C)}}y.length>0&&AC(m.N(),y)}; J0C=function(m,V){V=(V.Ul+1)*1E3;var O=void 0;m=g.D(m.YD.values());for(var h=m.next();!h.done;h=m.next()){var w=h.value;h=w.trigger;w=w.slot;h instanceof Dq&&h.breakDurationMs<=V&&(!O||h.breakDurationMs>O.trigger.breakDurationMs)&&(O={slot:w,trigger:h})}return O}; Cf1=function(m){m=m.adPlacementRenderer.config.adPlacementConfig;if(!m.prefetchModeConfig||!m.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;m=Number(m.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(m)||m<=0?0:Math.floor(Math.random()*m)}; EAC=function(m){m=m.adPlacementRenderer.config.adPlacementConfig;if(m.prefetchModeConfig&&m.prefetchModeConfig.cacheFetchRefreshDurationMs&&(m=Number(m.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(m)||m<=0)))return m}; Iu=function(m){m.Z=null;m.YD.clear();m.L&&m.L.stop();m.K&&m.K.stop();var V;(V=m.D)==null||V.stop();delete m.D}; y0a=function(m){var V=[];m=g.D(m.YD.values());for(var O=m.next();!O.done;O=m.next())O=O.value.trigger,O instanceof Dq&&V.push(O.breakDurationMs);return V}; eR=function(m){g.Z.call(this);this.D=m;this.vj=!0;this.YD=new Map;this.Z=new Map;this.L=new Map}; qsG=function(m,V){var O=[];if(V=m.Z.get(V.layoutId)){V=g.D(V);for(var h=V.next();!h.done;h=V.next())(h=m.L.get(h.value.triggerId))&&O.push(h)}return O}; uy=function(){g.Z.call(this);this.YD=new Map}; Nv=function(m){switch(m){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"}}; M01=function(m){switch(m){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; ffG=function(m,V){var O={slotId:hL(V,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],aY:"surface",clientMetadata:new aX([])},h=Object,w=h.assign;V=ep(V,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",O.slotId);V={layoutId:V,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",uo:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], aY:"surface",clientMetadata:new aX([]),PD:t8a(!1,O.slotId,O.slotType,O.slotPhysicalPosition,O.aY,O.slotEntryTrigger,O.slotFulfillmentTriggers,O.slotExpirationTriggers,V,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return w.call(h,{},m,{ZPt:!0,slot:O,layout:V})}; VNX=function(m,V,O,h){var w=m.kind;h=h?!1:!m.hideCueRangeMarker;switch(w){case "AD_PLACEMENT_KIND_START":return h={rQ:new $N(-0x8000000000000,-0x8000000000000),O5:h},O!=null&&(h.Xj=new $N(-0x8000000000000,-0x8000000000000)),h;case "AD_PLACEMENT_KIND_END":return h={rQ:new $N(0x7ffffffffffff,0x8000000000000),O5:h},O!=null&&(h.Xj=new $N(Math.max(0,V-O),0x8000000000000)),h;case "AD_PLACEMENT_KIND_MILLISECONDS":w=m.adTimeOffset;w.offsetStartMilliseconds||ER("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); w.offsetEndMilliseconds||ER("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");m=Number(w.offsetStartMilliseconds);w=Number(w.offsetEndMilliseconds);w===-1&&(w=V);if(Number.isNaN(m)||Number.isNaN(w)||m>w)return new v("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:m,offsetEndMs:w},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",w===V&&m-500<=w);h={rQ:new $N(m,w),O5:h};if(O!=null){m=Math.max(0,m-O);if(m===w)return h;h.Xj=new $N(m,w)}return h; default:return new v("AdPlacementKind not supported in convertToRange.",{kind:w,adPlacementConfig:m})}}; xz7=function(m){if(!m||!m.adPlacements&&!m.adSlots)return!1;for(var V=g.D(m.adPlacements||[]),O=V.next();!O.done;O=V.next())if(O=O.value)if(O=O.adPlacementRenderer,O!=null&&(O.config&&O.config.adPlacementConfig&&O.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;m=g.D(m.adSlots||[]);for(V=m.next();!V.done;V=m.next()){var h=O=void 0;if(((O=g.d(V.value,Xr))==null?void 0:(h=O.adSlotMetadata)==null?void 0:h.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; zy=function(m){this.ze=m;this.L=new Map;this.Z=new Map;this.D=new Map}; hL=function(m,V){if(ZX(m.ze.get())){var O=m.L.get(V)||0;O++;m.L.set(V,O);return V+"_"+O}return g.RH(16)}; ep=function(m,V,O){if(ZX(m.ze.get())){var h=m.Z.get(V)||0;h++;m.Z.set(V,h);return O+"_"+V+"_"+h}return g.RH(16)}; VY=function(m,V){if(ZX(m.ze.get())){var O=m.D.get(V)||0;O++;m.D.set(V,O);return V+"_"+O}return g.RH(16)}; R4m=function(m){var V=[new mG(m.Oo),new yi(m.E3),new nq(m.adPlacementConfig),new qz(m.videoLengthSeconds),new TJ(m.vQ)];m.instreamAdPlayerOverlayRenderer&&V.push(new sG(m.instreamAdPlayerOverlayRenderer));m.playerOverlayLayoutRenderer&&V.push(new Fb(m.playerOverlayLayoutRenderer));m.zX&&V.push(new uv(m.zX));return V}; oAo=function(m,V,O,h,w,y){m=O.inPlayerLayoutId?O.inPlayerLayoutId:ep(y,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",m);var L,C,E=O.instreamAdPlayerOverlayRenderer?(L=O.instreamAdPlayerOverlayRenderer)==null?void 0:L.adLayoutLoggingData:(C=O.playerOverlayLayoutRenderer)==null?void 0:C.adLayoutLoggingData;L={layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",aY:V};return{layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",uo:new Map,layoutExitNormalTriggers:[new rR(function(q){return VY(y, q)},O.Oo)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],aY:V,clientMetadata:h,PD:w(L),adLayoutLoggingData:E}}; sU=function(m){var V=this;this.L=m;this.Z=function(O){return VY(V.L.get(),O)}}; si7=function(m,V,O,h,w,y){O=new aX([new aG(O),new nq(h)]);V=ep(m.L.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",V);h={layoutId:V,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",aY:"core"};return{layoutId:V,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",uo:new Map,layoutExitNormalTriggers:[new rR(function(L){return VY(m.L.get(),L)},w)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],aY:"core",clientMetadata:O,PD:y(h),adLayoutLoggingData:void 0}}; Gf=function(m,V,O,h,w){var y=R4m(h);return oAo(V,O,h,new aX(y),w,m.L.get())}; gAm=function(m,V,O,h,w){var y=R4m(h);y.push(new NS(h.Y$));y.push(new bv(h.oG));return oAo(V,O,h,new aX(y),w,m.L.get())}; J5=function(m,V,O,h,w,y,L,C,E,q){V=ep(m.L.get(),O,V);var M={layoutId:V,layoutType:O,aY:"core"},f=new Map;L&&f.set("impression",L);L=[new I1(m.Z,w,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];q&&L.push(new kn(m.Z,q,["normal"]));return{layoutId:V,layoutType:O,uo:f,layoutExitNormalTriggers:L,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],aY:"core",clientMetadata:new aX([h,new nq(y),new mG(w)]),PD:C(M),adLayoutLoggingData:E}}; CL=function(m,V,O,h,w,y,L,C,E){V=ep(m.L.get(),O,V);var q={layoutId:V,layoutType:O,aY:"core"},M=[new I1(m.Z,w,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];E&&M.push(new kn(m.Z,E,["normal"]));return{layoutId:V,layoutType:O,uo:new Map,layoutExitNormalTriggers:M,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],aY:"core",clientMetadata:new aX([h,new nq(y),new mG(w)]),PD:L(q),adLayoutLoggingData:C}}; h5=function(m,V,O){var h=[];h.push(new ea(m.Z,O));V&&h.push(V);return h}; OU=function(m,V,O,h,w,y,L){var C={layoutId:V,layoutType:O,aY:"core"};return{layoutId:V,layoutType:O,uo:new Map,layoutExitNormalTriggers:L,layoutExitSkipTriggers:[new Hr(m.Z,V)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],aY:"core",clientMetadata:new aX([new kv(h),new nq(w)]),PD:y(C),adLayoutLoggingData:h.adLayoutLoggingData}}; sl=function(m,V,O,h,w,y,L,C){var E={layoutId:V,layoutType:y,aY:"core"};return{layoutId:V,layoutType:y,uo:new Map,layoutExitNormalTriggers:[new rR(m.Z,O)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],aY:"core",clientMetadata:new aX([new nq(h)].concat(g.b(L))),PD:w(E),adLayoutLoggingData:C}}; KWG=function(m,V,O,h,w,y,L,C,E,q,M,f){m=ws(m,V,O,h,w,y,L,C,M,f);V=m.z1;O=new Os(m.Rh);h=m.layoutExitSkipTriggers;E>0&&(V.push(O),V.push(new eH(E)),h=[]);V.push(new IG(q));return{lw:{layoutId:m.layoutId,layoutType:m.layoutType,uo:m.uo,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],aY:m.aY,clientMetadata:new aX(V),PD:m.PD,adLayoutLoggingData:m.adLayoutLoggingData},nw:h,vt:m.layoutExitMuteTriggers, gJ:m.layoutExitUserInputSubmittedTriggers,im:m.layoutExitUserCancelledTriggers,tY:m.tY}}; TL3=function(m,V,O,h,w,y,L,C,E){V=ws(m,V,O,h,w,new Map,y,function(q){return L(q,C)}); m=new lm(m.Z,V.Rh);O=new Os(V.Rh);E=new IG(E);return{lw:{layoutId:V.layoutId,layoutType:V.layoutType,uo:V.uo,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],aY:V.aY,clientMetadata:new aX([].concat(g.b(V.z1),[O,E])),PD:V.PD,adLayoutLoggingData:V.adLayoutLoggingData},nw:V.layoutExitSkipTriggers,vt:V.layoutExitMuteTriggers,gJ:[].concat(g.b(V.layoutExitUserInputSubmittedTriggers),[m]),im:V.layoutExitUserCancelledTriggers, tY:V.tY}}; ws=function(m,V,O,h,w,y,L,C,E,q){V=ep(m.L.get(),"LAYOUT_TYPE_MEDIA_BREAK",V);var M={layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",aY:"adapter"};C=C(V);var f=GJ(C.clientMetadata,"metadata_type_fulfilled_layout");f||ER("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var x=f?f.layoutId:"";O=[new nq(O),new $A(h),new r6(w)];f&&O.push(new h0(f.layoutType));q&&O.push(new g6(q));return{layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",uo:y,layoutExitNormalTriggers:[], layoutExitSkipTriggers:[new sW(m.Z,x)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],aY:"adapter",z1:O,PD:L(M),adLayoutLoggingData:E,tY:C,Rh:x}}; u3p=function(m,V,O,h,w,y,L,C,E,q,M){m=A0$(m,V,"core",O,h,w,y,L,C,E,q,void 0,M);return{layoutId:m.layoutId,layoutType:m.layoutType,uo:m.uo,layoutExitNormalTriggers:m.layoutExitNormalTriggers,layoutExitSkipTriggers:m.layoutExitSkipTriggers,layoutExitMuteTriggers:m.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:m.layoutExitUserInputSubmittedTriggers,layoutExitUserCancelledTriggers:m.layoutExitUserCancelledTriggers,aY:m.aY,clientMetadata:new aX(m.LN),PD:m.PD,adLayoutLoggingData:m.adLayoutLoggingData}}; Irl=function(m,V,O,h,w,y,L,C,E,q,M,f,x){V=A0$(m,V,"adapter",O,h,w,y,L,C,E,M,f,x);h=V.layoutExitSkipTriggers;w=V.LN;O.adPodSkipTarget&&O.adPodSkipTarget>0&&(w.push(q),w.push(new eH(O.adPodSkipTarget)),h=[]);w.push(new IG(C.adPodIndex));O.isCritical&&(h=[new kn(m.Z,V.layoutId,["error"])].concat(g.b(h)));return{lw:{layoutId:V.layoutId,layoutType:V.layoutType,uo:V.uo,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], aY:V.aY,clientMetadata:new aX(w),PD:V.PD,adLayoutLoggingData:V.adLayoutLoggingData},nw:h,vt:V.layoutExitMuteTriggers,gJ:V.layoutExitUserInputSubmittedTriggers,im:V.layoutExitUserCancelledTriggers}}; A0$=function(m,V,O,h,w,y,L,C,E,q,M,f,x){var R={layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA",aY:O};w=[new nq(w),new SH(E),new zQ(h.externalVideoId),new Zr(C),new r6({impressionCommands:h.impressionCommands,abandonCommands:h.onAbandonCommands,completeCommands:h.completeCommands,progressCommands:h.adVideoProgressCommands}),new Mz(y),new j0({current:null}),new qz(L)];(y=h.playerOverlay.instreamAdPlayerOverlayRenderer)&&w.push(new sG(y));(L=h.playerOverlay.playerOverlayLayoutRenderer)&&w.push(new Fb(L)); f&&w.push(new fQ(f));(f=h.playerUnderlay)&&w.push(new aG(f));C=hL(m.L.get(),"SLOT_TYPE_IN_PLAYER");f=(f=y?y.elementId:L==null?void 0:L.layoutId)?f:ep(m.L.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",C);w.push(new Os(f));w.push(new w6(C));w.push(new g6(E.adPodIndex));h.adNextParams&&w.push(new $v(h.adNextParams));h.shrunkenPlayerBytesConfig&&w.push(new pq(h.shrunkenPlayerBytesConfig));h.clickthroughEndpoint&&w.push(new Yv(h.clickthroughEndpoint));h.legacyInfoCardVastExtension&&w.push(new YA(h.legacyInfoCardVastExtension)); h.sodarExtensionData&&w.push(new xA(h.sodarExtensionData));M&&w.push(new H9(M));w.push(new Nz(MK(h.pings)));E=fj(h.pings);if(x){a:{x=g.D(x);for(M=x.next();!M.done;M=x.next())if(M=M.value,M.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(y=g.d(M.fulfillmentContent.fulfilledLayout,Km))&&(y=g.d(y.renderingContent,dg))&&y.associatedPlayerBytesLayoutId===V){x=M;break a}x=void 0}x&&w.push(new iv(x))}return{layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA",uo:E,layoutExitNormalTriggers:[new um(m.Z,V)],layoutExitSkipTriggers:h.skipOffsetMilliseconds? [new sW(m.Z,f)]:[],layoutExitMuteTriggers:[new sW(m.Z,f)],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],aY:O,LN:w,PD:q(R),adLayoutLoggingData:h.adLayoutLoggingData}}; kk3=function(m,V,O,h,w,y,L,C,E){h.every(function(M){return zJ(M,[],["LAYOUT_TYPE_MEDIA"])})||ER("Unexpect subLayout type for DAI composite layout"); V=ep(m.L.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",V);var q={layoutId:V,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",aY:"core"};return{layoutId:V,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",uo:new Map,layoutExitNormalTriggers:[new cr(m.Z)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],aY:"core",clientMetadata:new aX([new RX(O),new oX(C),new J0(h),new nq(w),new t0(y),new A0({}),new nQ(E)]),PD:L(q)}}; Xv5=function(m){return m!=null}; FB=function(m,V,O){var h=this;this.L=m;this.D=V;this.ze=O;this.Z=function(w){return VY(h.L.get(),w)}}; GQl=function(m,V,O,h,w,y,L){if(!O.prefetchModeConfig)return new v("AdPlacementConfig for Live Prefetch is missing prefetch_config");O=O.prefetchModeConfig;h*=1E3;var C=[];if(!O.breakLengthMs)return new v("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var E=g.D(O.breakLengthMs),q=E.next();!q.done;q=E.next())if(q=q.value,Number(q)>0){var M=h+Number(O.startTimeOffsetMs),f=M+Number(O.cacheFetchSmearingDurationMs);q={rQ:new $N(f,f+Number(q)),O5:!1,Xj:new $N(Math.floor(M+Math.random()* Number(O.cacheFetchSmearingDurationMs)),f),cueProcessedMs:h?h:M};M=[];M.push(new e0({}));f=[];f.push(new Zq(m.Z));f.push(new xgX(m.Z));L&&M.push(new A0({}));C.push(bi(m,V,w,q,y,M,f))}return C}; bi=function(m,V,O,h,w,y,L){y=y===void 0?[]:y;var C=hL(m.L.get(),"SLOT_TYPE_AD_BREAK_REQUEST");L||(L=[],h.Xj&&h.Xj.start!==h.rQ.start&&L.push(new n7(m.Z,O,new $N(h.Xj.start,h.rQ.start),!1)),L.push(new n7(m.Z,O,new $N(h.rQ.start,h.rQ.end),h.O5)));h={getAdBreakUrl:V.getAdBreakUrl,gA:h.rQ.start,ih:h.rQ.end,cueProcessedMs:h.cueProcessedMs};V=new Gd(m.Z,C);y=[new W9(h)].concat(g.b(y));return{slotId:C,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:L, slotExpirationTriggers:[new zd(m.Z,O),new a1(m.Z,C),new im(m.Z,C)],aY:"core",clientMetadata:new aX(y),adSlotLoggingData:w}}; dzI=function(m,V,O){var h=[];O=g.D(O);for(var w=O.next();!w.done;w=O.next())h.push(Uzp(m,V,w.value));return h}; Uzp=function(m,V,O){return O.triggeringSlotId!=null&&O.triggeringSlotId===m?O.clone(V):O}; f$7=function(m,V,O,h,w){return t00(m,V,O,h,w)}; WW7=function(m,V,O,h){var w=hL(m.L.get(),"SLOT_TYPE_IN_PLAYER");return t00(m,w,V,O,h)}; t00=function(m,V,O,h,w){var y=new Yn(m.Z,O),L=[new F1(m.Z,V)];m=[new a1(m.Z,V),new zd(m.Z,h)];return{slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:y,slotFulfillmentTriggers:L,slotExpirationTriggers:m,aY:"core",clientMetadata:new aX([new KQ(w({slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,aY:"core",slotEntryTrigger:y,slotFulfillmentTriggers:L,slotExpirationTriggers:m},O))]),adSlotLoggingData:void 0}}; eUG=function(m,V,O,h,w,y){var L=hL(m.L.get(),"SLOT_TYPE_PLAYER_BYTES"),C=hL(m.L.get(),"SLOT_TYPE_IN_PLAYER"),E=ep(m.L.get(),"LAYOUT_TYPE_SURVEY",C);h=au(m,V,O,h);var q=[new F1(m.Z,L)];O=[new a1(m.Z,L),new zd(m.Z,O),new Hr(m.Z,E)];if(h instanceof v)return h;y=y({slotId:L,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,aY:"core",slotEntryTrigger:h,slotFulfillmentTriggers:q,slotExpirationTriggers:O},{slotId:C,layoutId:E});C=y.nNN;return[{slotId:L,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:h,slotFulfillmentTriggers:q,slotExpirationTriggers:O,aY:"core",clientMetadata:new aX([new KQ(y.Coe),new IX({zP:m.zP(V)})]),adSlotLoggingData:w},C]}; z$0=function(m,V,O,h,w){w=w?w:hL(m.L.get(),"SLOT_TYPE_IN_PLAYER");O=new Yn(m.Z,O);var y=[new F1(m.Z,w)];m=[new zd(m.Z,V),new a1(m.Z,w)];return{slotId:w,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:O,slotFulfillmentTriggers:y,slotExpirationTriggers:m,aY:"core",clientMetadata:new aX([new KQ(h({slotId:w,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,aY:"core",slotEntryTrigger:O,slotFulfillmentTriggers:y,slotExpirationTriggers:m}))])}}; ZGX=function(m,V,O,h){var w=hL(m.L.get(),"SLOT_TYPE_PLAYER_UNDERLAY");O=new Yn(m.Z,O);var y=[new F1(m.Z,w)];m=[new zd(m.Z,V),new a1(m.Z,w)];return{slotId:w,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:O,slotFulfillmentTriggers:y,slotExpirationTriggers:m,aY:"core",clientMetadata:new aX([new KQ(h({slotId:w,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,aY:"core",slotEntryTrigger:O,slotFulfillmentTriggers:y,slotExpirationTriggers:m}))])}}; DqC=function(m,V,O,h,w,y,L){var C=hL(m.L.get(),"SLOT_TYPE_IN_PLAYER"),E=ep(m.L.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",C);h=KGo(m,h,y,L,E);if(h instanceof v)return h;L=[new F1(m.Z,C)];w=[new zd(m.Z,y),new F1(m.Z,w),new Br(m.Z,w)];O=P9(O,{slotId:C,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,aY:"core",slotEntryTrigger:h,slotFulfillmentTriggers:L,slotExpirationTriggers:w});m=m.D.get();y={layoutId:E,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",aY:"core"};V={layoutId:E,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", uo:new Map,layoutExitNormalTriggers:[new KH0(m.Z,E,V.durationMs)],layoutExitSkipTriggers:[new XyG(m.Z,E,V.durationMs)],layoutExitUserCancelledTriggers:[new WH0(m.Z,E)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],aY:"core",clientMetadata:new aX([new kA(V)]),PD:O(y)};return{slotId:C,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,aY:"core",slotEntryTrigger:h,slotFulfillmentTriggers:L,slotExpirationTriggers:w,clientMetadata:new aX([new KQ(V)])}}; dSo=function(m,V,O,h,w,y){V=au(m,V,O,h);if(V instanceof v)return V;var L=V instanceof n7?new UgU(m.Z,O,V.Z):null;h=hL(m.L.get(),"SLOT_TYPE_IN_PLAYER");var C=[new F1(m.Z,h)];m=[new zd(m.Z,O),new a1(m.Z,h)];y=y({slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,aY:"core",slotEntryTrigger:V,slotFulfillmentTriggers:C,slotExpirationTriggers:m},L);return y instanceof FN?new v(y):{slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:C,slotExpirationTriggers:m, aY:"core",clientMetadata:new aX([new KQ(y)]),adSlotLoggingData:w}}; A4p=function(m,V,O,h){var w=hL(m.L.get(),"SLOT_TYPE_IN_PLAYER"),y=new X1(m.Z,V),L=[new p7(m.Z,w)];m=[new zd(m.Z,V),new a1(m.Z,w)];return{slotId:w,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:y,slotFulfillmentTriggers:L,slotExpirationTriggers:m,aY:"core",clientMetadata:new aX([new KQ(h({slotId:w,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,aY:"core",slotEntryTrigger:y,slotFulfillmentTriggers:L,slotExpirationTriggers:m}))]),adSlotLoggingData:O}}; UqI=function(m,V,O,h){var w=hL(m.L.get(),"SLOT_TYPE_IN_PLAYER");O=new Yn(m.Z,O);var y=[new F1(m.Z,w)],L=[new a1(m.Z,w),new zd(m.Z,V)];y={slotId:w,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,aY:"core",slotEntryTrigger:O,slotFulfillmentTriggers:y,slotExpirationTriggers:L};return{slotId:w,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:O,slotFulfillmentTriggers:[new F1(m.Z,w)],slotExpirationTriggers:[new zd(m.Z,V),new a1(m.Z,w)],aY:"core",clientMetadata:new aX([new KQ(h(y))])}}; oya=function(m,V,O,h,w){var y=hL(m.L.get(),"SLOT_TYPE_IN_PLAYER");O=new $n(m.Z,h,O);h=[new F1(m.Z,y)];m=[new zd(m.Z,V)];return{slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:O,slotFulfillmentTriggers:h,slotExpirationTriggers:m,aY:"core",clientMetadata:new aX([new KQ(w({slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,aY:"core",slotEntryTrigger:O,slotFulfillmentTriggers:h,slotExpirationTriggers:m}))])}}; EyU=function(m,V,O,h,w,y){var L=hL(m.L.get(),V);return iy(m,L,V,new Yn(m.Z,h),[new zd(m.Z,O),new a1(m.Z,L),new kn(m.Z,h,["error"])],w,y)}; CoI=function(m,V,O,h,w,y,L){var C=hL(m.L.get(),V);return iy(m,C,V,new kn(m.Z,w,["normal"]),[new zd(m.Z,O),new a1(m.Z,C),new kn(m.Z,h,["error"])],y,L)}; yZa=function(m,V,O,h,w){var y=hL(m.L.get(),V);return iy(m,y,V,new X1(m.Z,O),[new zd(m.Z,O),new a1(m.Z,y)],h,w)}; xSG=function(m,V,O,h,w){O=O?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var y=hL(m.L.get(),O);V=new X1(m.Z,V);var L=[new F1(m.Z,y)];m=[new a1(m.Z,y)];return{slotId:y,slotType:O,slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:L,slotExpirationTriggers:m,aY:"core",clientMetadata:new aX([new KQ(w({slotId:y,slotType:O,slotPhysicalPosition:1,aY:"core",slotEntryTrigger:V,slotFulfillmentTriggers:L,slotExpirationTriggers:m}))]),adSlotLoggingData:h}}; HGo=function(m,V,O,h,w){var y=hL(m.L.get(),"SLOT_TYPE_PLAYER_BYTES"),L=new bm(m.Z),C=[new p7(m.Z,y)];m=[new zd(m.Z,V)];V=[];V.push(new KQ(h({slotId:y,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,aY:"core",slotEntryTrigger:L,slotFulfillmentTriggers:C,slotExpirationTriggers:m})));V.push(new A0({}));w&&V.push(new Es({current:w}));return{slotId:y,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:C,slotExpirationTriggers:m,aY:"core",clientMetadata:new aX(V), adSlotLoggingData:O}}; NLo=function(m,V){return arp(m.ze.get())?new kn(m.Z,V,["normal","error","skipped"]):new kn(m.Z,V,["normal"])}; S4C=function(m,V,O,h,w){V=NLo(m,V);m=yY(m,V,O);w=w({slotId:m.slotId,slotType:m.slotType,slotPhysicalPosition:m.slotPhysicalPosition,slotEntryTrigger:m.slotEntryTrigger,slotFulfillmentTriggers:m.slotFulfillmentTriggers,slotExpirationTriggers:m.slotExpirationTriggers,aY:m.aY});return w instanceof v?w:{NP:Object.assign({},m,{clientMetadata:new aX([new KQ(w.layout)]),adSlotLoggingData:h}),UZ:w.UZ}}; I$3=function(m,V,O,h,w,y,L){O=bqG(m,V,O,h);if(O instanceof v)return O;L=L({slotId:O.slotId,slotType:O.slotType,slotPhysicalPosition:O.slotPhysicalPosition,slotEntryTrigger:O.slotEntryTrigger,slotFulfillmentTriggers:O.slotFulfillmentTriggers,slotExpirationTriggers:O.slotExpirationTriggers,aY:O.aY});if(L instanceof v)return L;m=[new KQ(L.layout),new IX({zP:m.zP(V)})];y&&m.push(new c9({}));return{NP:{slotId:O.slotId,slotType:O.slotType,slotPhysicalPosition:O.slotPhysicalPosition,slotEntryTrigger:O.slotEntryTrigger, slotFulfillmentTriggers:O.slotFulfillmentTriggers,slotExpirationTriggers:O.slotExpirationTriggers,aY:O.aY,clientMetadata:new aX(m),adSlotLoggingData:w},UZ:L.UZ}}; yY=function(m,V,O){var h=hL(m.L.get(),"SLOT_TYPE_PLAYER_BYTES"),w=[new F1(m.Z,h)];m=[new a1(m.Z,h),new zd(m.Z,O)];return{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:w,slotExpirationTriggers:m,aY:"core"}}; bqG=function(m,V,O,h){V=au(m,V,O,h);return V instanceof v?V:yY(m,V,O)}; ovo=function(m,V,O,h,w,y){var L=hL(m.L.get(),"SLOT_TYPE_FORECASTING");V=au(m,V,O,h);if(V instanceof v)return V;h=[new F1(m.Z,L)];m=[new a1(m.Z,L),new zd(m.Z,O)];return{slotId:L,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:h,slotExpirationTriggers:m,aY:"core",clientMetadata:new aX([new KQ(y({slotId:L,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,aY:"core",slotEntryTrigger:V,slotFulfillmentTriggers:h,slotExpirationTriggers:m}))]),adSlotLoggingData:w}}; WGI=function(m,V,O,h,w){var y=!V.hideCueRangeMarker;switch(V.kind){case "AD_PLACEMENT_KIND_START":return new X1(m.Z,O);case "AD_PLACEMENT_KIND_MILLISECONDS":return m=VNX(V,h),m instanceof v?m:w(m.rQ,y);case "AD_PLACEMENT_KIND_END":return new Td(m.Z,O,y);default:return new v("Cannot construct entry trigger",{kind:V.kind})}}; KGo=function(m,V,O,h,w){return WGI(m,V,O,h,function(y,L){return new AXp(m.Z,O,y,L,w)})}; au=function(m,V,O,h){return WGI(m,V,O,h,function(w,y){return new n7(m.Z,O,w,y)})}; iy=function(m,V,O,h,w,y,L){m=[new p7(m.Z,V)];return{slotId:V,slotType:O,slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:m,slotExpirationTriggers:w,aY:"core",clientMetadata:new aX([new KQ(L({slotId:V,slotType:O,slotPhysicalPosition:1,aY:"core",slotEntryTrigger:h,slotFulfillmentTriggers:m,slotExpirationTriggers:w}))]),adSlotLoggingData:y}}; whG=function(){}; Gy=function(m,V){g.Z.call(this);this.ze=m;this.L=V;this.eventCount=0;this.D=yxa()()}; d2=function(m,V,O){m.Z(V,void 0,void 0,void 0,O,void 0,void 0,void 0,O.adSlotLoggingData)}; qW=function(m,V,O,h){m.Z(V,void 0,void 0,void 0,O,h?h:void 0,void 0,void 0,O.adSlotLoggingData,h?h.adLayoutLoggingData:void 0);O=Y7().resolve(Ws(Ei))==null?void 0:qC();V=O==null?void 0:O.adsSeenHotConfig;O=O==null?void 0:O.adsHotConfig;(V==null?0:V.logOnAdsSeen)&&(O==null?0:O.webEnablePremiumAdsSeenLogging)&&X9G(m,h?h:void 0)}; kF3=function(m,V,O,h){I2(m.ze.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED","trigger:",O,"slot:",V,"layout:",h);v9(m.L.get())&&m.Z("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,V,h?h:void 0,void 0,O,V.adSlotLoggingData,h?h.adLayoutLoggingData:void 0)}; jp=function(m,V,O,h,w){m.Z("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,h,w,void 0,void 0,h.adSlotLoggingData,w?w.adLayoutLoggingData:void 0,{errorType:V,errorMessage:O})}; X9G=function(m,V){if(V){var O=V.adLayoutLoggingData;g.mm(g.Od(),function(){m.D!=null&&O&&g.Rz("adsSeenClientLogging",{serializedAdServingDataEntry:O.serializedAdServingDataEntry})},0)}}; pL=function(m,V,O){Gy.call(this,m,V);this.ze=m;this.Nf=O}; BO=function(){this.Z=new Map}; ly=function(m){this.Z="pending";this.L=[];this.D=[];try{m(this.T.bind(this),this.reject.bind(this))}catch(V){this.reject(V)}}; HQ3=function(){var m,V;return{Vv:new ly(function(O,h){m=O;V=h}), resolve:m,reject:V}}; PO=function(m){return QY(m)?m:vO(m)?new ly(function(V,O){m.then(V,O)}):new ly(function(V){V(m)})}; mf=function(m){return new ly(function(V,O){O(m)})}; VO=function(m){try{return PO(m())}catch(V){return mf(V)}}; hr=function(m,V,O){var h=HQ3(),w=h.Vv,y=h.resolve,L=h.reject;m.L.push(function(C){if(V)try{var E=V(C);y(E)}catch(q){L(q)}else y(C)}); m.D.push(function(C){if(O)try{var E=O(C);y(E)}catch(q){L(q)}else L(C)}); O_(m);return w}; wC=function(m,V){return hr(m,void 0,V)}; T61=function(m,V){hr(m,function(O){return hr(PO(V()),function(){return O})},function(O){return hr(PO(V()),function(){return mf(O)})})}; O_=function(m){if(m.Z==="fulfilled"){var V=m.L;m.L=[];m.D=[];V=g.D(V);for(var O=V.next();!O.done;O=V.next())O=O.value,O(m.result)}else if(m.Z==="rejected")for(V=m.D,m.L=[],m.D=[],V=g.D(V),O=V.next();!O.done;O=V.next())O=O.value,O(m.error)}; yO=function(m,V){return $zU(V.call(m))}; je=function(m){return function O(){return oA(O,function(h){if(h.Z==1)return g.C5(h,2),g.I(h,{Vv:PO(m)},4);if(h.Z!=2)return h.return(h.L);g.MA(h);return g.f5(h,0)})}()}; $zU=function(m){return VO(function(){return Lr(m,m.next())})}; Lr=function(m,V){return V.done?PO(V.value):wC(hr(V.value.Vv,function(O){return Lr(m,m.next(O))}),function(O){return Lr(m,m.throw(O))})}; r0U=function(m){var V=Ys5(m);return hr(kJm(V),function(){return V.map(function(O){return O.state()})})}; kJm=function(m){if(m.length===0)return PO(NaN);var V=HQ3(),O=V.Vv,h=V.resolve,w=m.length;m=g.D(m.entries());var y=m.next();for(V={};!y.done;V={QZ:void 0},y=m.next()){var L=g.D(y.value);y=L.next().value;L=L.next().value;V.QZ=y;T61(L,function(C){return function(){O.Z==="pending"&&(c0l(void 0)&&(void 0)(C.QZ)&&O.Z==="pending"?h(C.QZ):(--w,w===0&&h(NaN)))}}(V))}return O}; Ys5=function(m){return m.map(function(V){return PO(V)})}; Cr=function(m){var V=m.hours||0;var O=m.minutes||0,h=m.seconds||0;V=h+O*60+V*3600+(m.days||0)*86400+(m.weeks||0)*604800+(m.months||0)*2629800+(m.years||0)*31557600;V<=0?V={hours:0,minutes:0,seconds:0}:(m=V,V=Math.floor(m/3600),m%=3600,O=Math.floor(m/60),h=Math.floor(m%60),V={hours:V,minutes:O,seconds:h});var w=V.hours===void 0?0:V.hours;O=V.minutes===void 0?0:V.minutes;m=V.seconds===void 0?0:V.seconds;h=w>0;V=[];if(h){w=(new Intl.NumberFormat("en-u-nu-latn")).format(w);var y=["fr"],L="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(" "); w="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(Jr)?w.replace(",","\u00a0"):y.includes(Jr)?w.replace(",","\u202f"):L.includes(Jr)?w.replace(",","."):w;V.push(w)}h=h===void 0?!1:h;O=(["af","be","lt"].includes(Jr)||h)&&O<10?Dz1().format(O):(new Intl.NumberFormat("en-u-nu-latn")).format(O);V.push(O);O=Dz1().format(m);V.push(O);O=":";"da fi id si sr sr-Latn".split(" ").includes(Jr)&&(O=".");return V.join(O)}; Dz1=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; N63=function(m,V){var O,h;m=((O=m.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(h=O.videoAuthorizationToken)==null?void 0:h.credentialTransferTokens)||[];for(O=0;OV;m=O}else m=!1;return m}; g.TX=function(m,V){return m.VW+"timedtext_video?ref=player&v="+V.videoId}; g.wd1=function(m){var V=this;this.videoData=m;m={};this.Z=(m.c1a=function(){var O=[];if(g.Xe.isInitialized()){var h="";V.videoData&&V.videoData.AO&&(h=V.videoData.AO+("&r1b="+V.videoData.clientPlaybackNonce));var w={};h=(w.atr_challenge=h,w);bP("bg_v",void 0,"player_att");(h=hX3(h))?(bP("bg_s",void 0,"player_att"),O.push("r1a="+h)):(bP("bg_e",void 0,"player_att"),O.push("r1c=2"))}else bP("bg_e",void 0,"player_att"),window.trayride||window.botguard?O.push("r1c=1"):O.push("r1c=4");O.push("r1d="+g.Xe.getState()); return O.join("&")},m.c6a=function(O){return"r6a="+(Number(O.c)^Vy())},m.c6b=function(O){return"r6b="+(Number(O.c)^Number(g.Vf("CATSTAT",0)))},m); this.videoData&&this.videoData.AO?this.VG=Tl(this.videoData.AO):this.VG={}}; g.yCa=function(m){if(m.videoData&&m.videoData.AO){for(var V=[m.videoData.AO],O=g.D(Object.keys(m.Z)),h=O.next();!h.done;h=O.next())h=h.value,m.VG[h]&&m.Z[h]&&(h=m.Z[h](m.VG))&&V.push(h);return V.join("&")}return null}; g.$m=function(m,V){ORG(m,{Ant:g.m9(V.experiments,"bg_vm_reinit_threshold"),cspNonce:V.cspNonce,VW:V.VW||""})}; j2X=function(){var m=XMLHttpRequest.prototype.fetch;return!!m&&m.length===3}; JCa=function(m){L9p=2592E3*(m||1)}; CIX=function(m){g.I$("yt-player-bandwidth",m,2592E3)}; Ym=function(m){m=m===void 0?L9p:m;if(m>0&&!(KzC()>(0,g.TN)()-m*1E3))return 0;m=g.eU("yt-player-quality");if(typeof m==="string"){if(m=g.kH[m],m>0)return m}else if(m instanceof Object)return m.quality;return 0}; km=function(){var m=g.eU("yt-player-proxima-pref");return m==null?null:m}; EZ$=function(){var m=g.eU("yt-player-quality");if(m instanceof Object&&m.quality&&m.previousQuality){if(m.quality>m.previousQuality)return 1;if(m.quality0&&V[0]?m.getAutoplayPolicy(V[0]):m.getAutoplayPolicy("mediaelement");if(ACG[O])return ACG[O]}}catch(h){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; Se=function(m){return m.Rd||m.SJ||m.mutedAutoplay}; UWa=function(m,V){return Se(m)?V!==1&&V!==2&&V!==0?"AUTOPLAY_STATUS_UNAVAILABLE":m.le?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; dW5=function(m,V,O){var h=V.j();m.thirdParty||(m.thirdParty={});m.thirdParty=Object.assign({},m.thirdParty,{embedUrl:h.loaderUrl});h.ancestorOrigins&&(m.thirdParty.embeddedPlayerContext=Object.assign({},m.thirdParty.embeddedPlayerContext,{ancestorOrigins:h.ancestorOrigins}));h.w4!=null&&(m.thirdParty.embeddedPlayerContext=Object.assign({},m.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(h.w4)}));h.pR&&(m.thirdParty.embeddedPlayerContext=Object.assign({},m.thirdParty.embeddedPlayerContext, {visibilityFractionSource:h.pR}));m.thirdParty.embeddedPlayerContext=Object.assign({},m.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:nr(),autoplayIntended:Se(V),autoplayStatus:UWa(V,O)})}; tpl=function(m){var V=[];m=g.D(m.split(","));for(var O=m.next();!O.done;O=m.next()){var h=O.value;h&&((O=h.startsWith("!"))&&(h=h.substring(1)),h=h.split("-"),h.length<3||V.push({i8:h[0],platform:h[1],deviceVersion:h[2],q5:O}))}return V}; XdU=function(m){return tpl(m).map(function(V){return{deviceInterface:K97[W9X[V.i8]]||0,deviceVersion:V.deviceVersion||"",isSleeping:V.q5}})}; g.I6=function(m,V){this.id=m;this.fP=V;this.captionTracks=[];this.D=this.T=null;this.xtags="";this.N=this.K=!1;this.Z=null;this.L="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";m=this.fP.id.split(".");m.length>1&&(this.K=m[1]==="2",this.N=m[1]==="4")}; ee=function(m,V,O,h,w){this.L=m;this.Z=V;this.D=O;this.reason=h;this.Rr=w===void 0?0:w}; g.ue=function(m,V,O,h){return new ee(g.kH[m]||0,g.kH[V]||0,O,h)}; Z7=function(m){if(zX&&m.Rr)return!1;var V=g.kH.auto;return m.L===V&&m.Z===V}; Fe=function(m){return s_[m.Z||m.L]||"auto"}; HR7=function(m,V){V=g.kH[V];return m.L<=V&&(!m.Z||m.Z>=V)}; a6=function(m,V,O,h){this.videoInfos=m;this.Z=V;this.audioTracks=[];this.L=h||[];if(this.Z){m=new Set;O==null||O({ainfolen:this.Z.length});V=g.D(this.Z);for(h=V.next();!h.done;h=V.next())if(h=h.value,!h.fP||m.has(h.fP.id)){var w=void 0,y=void 0,L=void 0;(L=O)==null||L({atkerr:!!h.fP,itag:h.itag,xtag:h.Z,lang:((w=h.fP)==null?void 0:w.name)||"",langid:((y=h.fP)==null?void 0:y.id)||""})}else w=new g.I6(h.id,h.fP),m.add(h.fP.id),this.audioTracks.push(w);O==null||O({atklen:this.audioTracks.length})}}; ie=function(){g.Z.apply(this,arguments);this.L=null;this.Z=new Map}; rC0=function(m,V,O,h,w,y,L){if(m.L)return m.L;var C={},E=new Set,q={};if(GX(h)){for(var M in h.Z)h.Z.hasOwnProperty(M)&&(m=h.Z[M],q[m.info.B6]=[m.info]);return q}M=T27(V,h,C);y&&w({aftsrt:pr(M)});for(var f={},x=g.D(Object.keys(M)),R=x.next();!R.done;R=x.next()){R=R.value;for(var A=g.D(M[R]),K=A.next();!K.done;K=A.next()){K=K.value;var X=K.itag,c=$W1(R,K,V);if(f.hasOwnProperty(c))f[c]===!0?q[R].push(K):C[X]=f[c];else{var r=Bp(V,K,O,h.isLive,E);r!==!0?(L.add(R),C[X]=r,r==="disablevp9hfr"&&(f[c]="disablevp9hfr")): (q[R]=q[R]||[],q[R].push(K),f[c]=!0)}}}y&&w({bfflt:pr(q)});for(var N in q)q.hasOwnProperty(N)&&(h=N,q[h]&&q[h][0].Z8()&&(q[h]=q[h],q[h]=YP5(V,q[h],C),q[h]=kup(q[h],C)));y&&Object.keys(C).length>0&&w({rjr:yK(C)});V=g.D(E.values());for(h=V.next();!h.done;h=V.next())(h=O.D.get(h.value))&&--h.X9;y&&w({aftflt:pr(q)});m.L=g.tn(q,function(n){return!!n.length}); return m.L}; DWl=function(m,V,O,h,w,y,L,C){C=C===void 0?!1:C;if(V.uc&&L&&L.length>1&&!(V.Yl>0||V.V)){for(var E=V.Z||!!w,q=E&&V.nP?y:void 0,M=T27(V,h),f=[],x=[],R={},A=0;A0&&A&&x&&(M=[L,m],n=x.concat(A).filter(function(F){return F})); if(n.length&&!V.sW){vp(n,M);if(E){E=[];V=g.D(n);for(h=V.next();!h.done;h=V.next())E.push(h.value.itag);y({hbdfmt:E.join(".")})}return e6(new a6(n,w,q,O))}n=s23(V);n=g.p5(n,C);if(!n){if(f[L])return y=f[L],vp(y),e6(new a6(y,w,q,O));E&&y({novideo:1});return Iv()}V.tq&&(n==="1"||n==="1h")&&f[m]&&(L=Pp(f[n]),M=Pp(f[m]),M>L?n=m:M===L&&F9G(f[m])&&(n=m));n==="9"&&f.h&&Pp(f.h)>Pp(f["9"])&&(n="h");V.LP&&h.isLive&&n==="("&&f.H&&Pp(f["("])<1440&&(n="H");E&&y({vfmly:mV(n)});V=f[n];if(!V.length)return E&&y({novfmly:mV(n)}), Iv();vp(V);return e6(new a6(V,w,q,O))}; zXa=function(m,V,O){var h,w=((h=O.video)==null?void 0:h.fps)||0;h=V+"_"+w;var y=!!O.audio,L=m.Z.get(h);a:{var C=m.Z.get(h),E=!!O.audio;if(C){if(E){var q=!1;break a}var M;if(!E&&((q=O.video)==null?0:q.height)&&C.maxHeight&&C.maxHeight>=((M=O.video)==null?void 0:M.height)){q=!1;break a}}q=!0}q&&(q=O.itag,V=L?L:{itag:q,B6:V,RF:y},y?V.numChannels=O.audio.numChannels:(y=O.video,V.maxWidth=y==null?void 0:y.width,V.maxHeight=y==null?void 0:y.height,V.maxFramerate=w,V.maxBitrateBps=O.Rr*8,V.Dv=y==null?void 0: y.isHdr()),m.Z.set(h,V))}; QO=function(m){for(var V=[],O=g.D(m.Z.keys()),h=O.next();!h.done;h=O.next()){h=h.value;var w=m.Z.get(h);V.push(h+"_"+w.maxWidth+"_"+w.maxHeight)}return V.join(".")}; bR3=function(m,V){var O=!(!m.m&&!m.M),h=!(!m.mac3&&!m.MAC3),w=!(!m.meac3&&!m.MEAC3);m=!(!m.i&&!m.I);V.l2=m;return O||h||w||m}; F9G=function(m){m=g.D(m);for(var V=m.next();!V.done;V=m.next())if(V=V.value,V.itag&&a57.has(V.itag))return!0;return!1}; SP5=function(m){m=g.D(m);for(var V=m.next();!V.done;V=m.next())if(V.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; mV=function(m){switch(m){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return m}}; $W1=function(m,V,O){var h,w,y;return O.Wj?m+"_"+Number((h=V.video)==null?void 0:h.fps)+"_"+!((w=V.audio)==null||!w.L):m+"_"+(((y=V.video)==null?void 0:y.fps)||0)}; pr=function(m){var V=[],O;for(O in m)if(m.hasOwnProperty(O)){var h=O;V.push(mV(h));h=g.D(m[h]);for(var w=h.next();!w.done;w=h.next())V.push(w.value.itag)}return V.join(".")}; N20=function(m,V,O,h,w,y){var L={},C={};g.Mm(V,function(E,q){E=E.filter(function(M){var f=M.itag;if(!M.He)return C[f]="noenc",!1;if(y.CP&&M.B6==="(h"&&y.Aj)return C[f]="lichdr",!1;if(!m.T&&M.B6==="1e")return C[f]="noav1enc",!1;if(M.B6==="("||M.B6==="(h"){if(m.L&&O&&O.flavor==="widevine"){var x=M.mimeType+"; experimental=allowed";(x=!!M.He[O.flavor]&&!!O.Z[x])||(C[f]=M.He[O.flavor]?"unspt":"noflv");return x}if(!V9(m,OF.CRYPTOBLOCKFORMAT)&&!m.v6||m.Ae)return C[f]=m.Ae?"disvp":"vpsub",!1}return O&&M.He[O.flavor]&& O.Z[M.mimeType]?!0:(C[f]=O?M.He[O.flavor]?"unspt":"noflv":"nosys",!1)}); E.length&&(L[q]=E)}); h&&Object.entries(C).length&&w({rjr:yK(C)});return L}; kup=function(m,V){var O=Dl(m,function(h,w){return w.video.fps>32?Math.min(h,w.video.width):h},Infinity); O32||h.video.widthm.N)return"max"+m.N;if(m.nA&&V.B6==="h"&&V.video&&V.video.qualityOrdinal>1080)return"blkhigh264";if(V.B6==="(h"&&!O.N)return"enchdr";if((h===void 0?0:h)&&JR1(V)&&!m.Mf)return"blk51live";if((V.B6==="MAC3"||V.B6==="mac3")&&!m.T)return"blkac3";if((V.B6==="MEAC3"||V.B6==="meac3")&&!m.K)return"blkeac3";if(V.B6==="M"||V.B6==="m")return"blkaac51"; if((V.B6==="so"||V.B6==="sa")&&!m.Zu)return"blkamb";if(!m.CP&&LiG(V)&&(!O.T||V.B6!=="1e"))return"cbc";if(!O.T&&LiG(V)&&V.B6==="1e")return"cbcav1";if((V.B6==="i"||V.B6==="I")&&!m.Id)return"blkiamf";var y;if(m.kD&&((y=V.audio)==null?void 0:y.L)===!0)return"blkvbcabr";var L,C;if(m.CA&&(V.B6==="1"||V.B6==="1h"||O.T&&V.B6==="1e")&&((L=V.video)==null?0:L.qualityOrdinal)&&((C=V.video)==null?void 0:C.qualityOrdinal)>m.CA)return"av1cap";h=O.D.get(V.B6);if(!m.UU&&h&&h.X9>0)return w.add(V.B6),"byerr";var E; if((E=V.video)==null?0:E.fps>32){if(!O.mS&&!V9(O,OF.FRAMERATE))return"capHfr";if(m.pA&&V.video.qualityOrdinal>=4320)return"blk8khfr";if(n$(V)&&m.Y5&&V.He&&V.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(m.Rr&&V.Rr>m.Rr)return"ratecap";if(m.mS>0&&V.Z8()&&V.video.height>m.mS)return"mvhcap";m=iRX(O,V);return m!==!0?m:!0}; vp=function(m,V){V=V===void 0?[]:V;g.Rg(m,function(O,h){var w=h.Rr-O.Rr;if(!O.Z8()||!h.Z8())return w;var y=h.video.height*h.video.width-O.video.height*O.video.width;!y&&V&&V.length>0&&(O=V.indexOf(O.B6)+1,h=V.indexOf(h.B6)+1,y=O===0||h===0?h||-1:O-h);y||(y=w);return y})}; ht=function(m,V,O,h,w,y,L,C,E){this.Fr=m;this.startTime=V;this.duration=O;this.ingestionTime=h;this.sourceURL=w;this.I8=E;this.endTime=V+O;this.Z=L||0;this.range=y||null;this.pending=C||!1;this.I8=E||null}; g.wI=function(){this.segments=[];this.Z=null;this.L=!0;this.D=""}; GuX=function(m,V){if(V>m.wY())m.segments=[];else{var O=GZ(m.segments,function(h){return h.Fr>=V},m); O>0&&m.segments.splice(0,O)}}; y9=function(m,V,O,h,w){w=w===void 0?!1:w;this.data=m;this.offset=V;this.size=O;this.type=h;this.Z=(this.L=w)?0:8;this.dataOffset=this.offset+this.Z}; j1=function(m){var V=m.data.getUint8(m.offset+m.Z);m.Z+=1;return V}; LH=function(m){var V=m.data.getUint16(m.offset+m.Z);m.Z+=2;return V}; Jt=function(m){var V=m.data.getInt32(m.offset+m.Z);m.Z+=4;return V}; CH=function(m){var V=m.data.getUint32(m.offset+m.Z);m.Z+=4;return V}; EF=function(m){var V=m.data;var O=m.offset+m.Z;V=V.getUint32(O)*4294967296+V.getUint32(O+4);m.Z+=8;return V}; q$=function(m,V){V=V===void 0?NaN:V;if(isNaN(V))var O=m.size;else for(O=m.Z;O1?Math.ceil(w*V):Math.floor(w*V))}m.skip(1);O=j1(m)<<16|LH(m);if(O&256){h=O&1;w=O&4;var y=O&512,L=O&1024,C=O&2048;O=CH(m);h&&m.skip(4);w&&m.skip(4);h=(y?4:0)+(L?4:0)+(C?4:0);for(w=0;w1?Math.ceil(L*V):Math.floor(L*V)),m.skip(h)}}}; UF=function(m){m=new DataView(m.buffer,m.byteOffset,m.byteLength);return(m=g.gI(m,0,1836476516))?g.At(m):NaN}; yL1=function(m){var V=g.gI(m,0,1937011556);if(!V)return null;V=dI(m,V.dataOffset+8,1635148593)||dI(m,V.dataOffset+8,1635135537);if(!V)return null;var O=dI(m,V.dataOffset+78,1936995172),h=dI(m,V.dataOffset+78,1937126244);if(!h)return null;V=null;if(O)switch(O.skip(4),j1(O)){default:V=0;break;case 1:V=2;break;case 2:V=1;break;case 3:V=255}var w=O=null,y=null;if(h=dI(m,h.dataOffset,1886547818)){var L=dI(m,h.dataOffset,1886546020),C=dI(m,h.dataOffset,2037673328);if(!C&&(C=dI(m,h.dataOffset,1836279920), !C))return null;L&&(L.skip(4),O=Jt(L)/65536,y=Jt(L)/65536,w=Jt(L)/65536);m=pd3(C);m=new DataView(m.buffer,m.byteOffset+8,m.byteLength-8);return new hx3(V,O,y,w,m)}return null}; dI=function(m,V,O){for(;tt(m,V);){var h=KH(m,V);if(h.type===O)return h;V+=h.size}return null}; g.gI=function(m,V,O){for(;tt(m,V);){var h=KH(m,V);if(h.type===O)return h;V=WK(h.type)?V+8:V+h.size}return null}; g.X$=function(m){if(m.data.getUint8(m.dataOffset)){var V=m.data;m=m.dataOffset+4;V=V.getUint32(m)*4294967296+V.getUint32(m+4)}else V=m.data.getUint32(m.dataOffset+4);return V}; KH=function(m,V){var O=m.getUint32(V),h=m.getUint32(V+4);return new y9(m,V,O,h)}; g.At=function(m){var V=m.data.getUint8(m.dataOffset)?20:12;return m.data.getUint32(m.dataOffset+V)}; jUG=function(m){m=new y9(m.data,m.offset,m.size,m.type,m.L);var V=j1(m);m.skip(7);var O=CH(m);if(V===0){V=CH(m);var h=CH(m)}else V=EF(m),h=EF(m);m.skip(2);for(var w=LH(m),y=[],L=[],C=0;C122)return!1}return!0}; WK=function(m){return m===1701082227||m===1836019558||m===1836019574||m===1835297121||m===1835626086||m===1937007212||m===1953653094||m===1953653099||m===1836475768}; L8U=function(m){m.skip(4);return{fkH:q$(m,0),value:q$(m,0),timescale:CH(m),d$S:CH(m),eventDuration:CH(m),id:CH(m),P5:q$(m),offset:m.offset}}; g.JL3=function(m){var V=dI(m,0,1701671783);if(!V)return null;var O=L8U(V),h=O.fkH;O=o3(O.P5);if(m=dI(m,V.offset+V.size,1701671783))if(m=L8U(m),m=o3(m.P5),O&&m){V=g.D(Object.keys(m));for(var w=V.next();!w.done;w=V.next())w=w.value,O[w]=m[w]}return O?new R3(O,h):null}; HK=function(m,V){for(var O=dI(m,0,V);O;){var h=O;h.type=1936419184;h.data.setUint32(h.offset+4,1936419184);O=dI(m,O.offset+O.size,V)}}; g.Tw=function(m,V){for(var O=0,h=[];tt(m,O);){var w=KH(m,O);w.type===V&&h.push(w);O=WK(w.type)?O+8:O+w.size}return h}; Ckp=function(m,V){var O=g.gI(m,0,1937011556),h=g.gI(m,0,1953654136);if(!O||!h||m.getUint32(O.offset+12)>=2)return null;var w=new DataView(V.buffer,V.byteOffset,V.length),y=g.gI(w,0,1937011556);if(!y)return null;V=w.getUint32(y.dataOffset+8);h=w.getUint32(y.dataOffset+12);if(h!==1701733217&&h!==1701733238)return null;h=new B2$(m.byteLength+V);M$(h,m,0,O.offset+12);h.data.setInt32(h.offset,2);h.offset+=4;M$(h,m,O.offset+16,O.size-16);M$(h,w,w.byteOffset+y.dataOffset+8,V);M$(h,m,O.offset+O.size,m.byteLength- (O.offset+O.size));O=g.D([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(w=O.next();!w.done;w=O.next())w=g.gI(m,0,w.value),h.data.setUint32(w.offset,w.size+V);m=g.gI(h.data,0,1953654136);h.data.setUint32(m.offset+16,2);return h.data}; EVl=function(m){var V=g.gI(m,0,1937011556);if(!V)return null;var O=m.getUint32(V.dataOffset+12);if(O!==1701733217&&O!==1701733238)return null;V=dI(m,V.offset+24+(O===1701733217?28:78),1936289382);if(!V)return null;O=dI(m,V.offset+8,1935894637);if(!O||m.getUint32(O.offset+12)!==1667392371)return null;V=dI(m,V.offset+8,1935894633);if(!V)return null;V=dI(m,V.offset+8,1952804451);if(!V)return null;O=new Uint8Array(16);for(var h=0;h<16;h++)O[h]=m.getInt8(V.offset+16+h);return O}; $K=function(m,V){this.Z=m;this.pos=0;this.start=V||0}; YK=function(m){return m.pos>=m.Z.byteLength}; N$=function(m,V,O){var h=new $K(O);if(!kK(h,m))return!1;h=rI(h);if(!cK(h,V))return!1;for(m=0;V;)V>>>=8,m++;V=h.start+h.pos;var w=DS(h,!0);h=m+(h.start+h.pos-V)+w;h=h>9?qEp(h-9,8):qEp(h-2,1);m=V-m;O.setUint8(m++,236);for(V=0;VO;w++)O=O*256+e1(m),h*=128;return V?O-h:O}; nH=function(m){var V=DS(m,!0);m.pos+=V}; xK1=function(m){if(!cK(m,440786851,!0))return null;var V=m.pos;DS(m,!1);var O=DS(m,!0)+m.pos-V;m.pos=V+O;if(!cK(m,408125543,!1))return null;DS(m,!0);if(!cK(m,357149030,!0))return null;var h=m.pos;DS(m,!1);var w=DS(m,!0)+m.pos-h;m.pos=h+w;if(!cK(m,374648427,!0))return null;var y=m.pos;DS(m,!1);var L=DS(m,!0)+m.pos-y,C=new Uint8Array(O+12+w+L),E=new DataView(C.buffer);C.set(new Uint8Array(m.Z.buffer,m.Z.byteOffset+V,O));E.setUint32(O,408125543);E.setUint32(O+4,33554431);E.setUint32(O+8,4294967295); C.set(new Uint8Array(m.Z.buffer,m.Z.byteOffset+h,w),O+12);C.set(new Uint8Array(m.Z.buffer,m.Z.byteOffset+y,L),O+12+w);return C}; uO=function(m){var V=m.pos;m.pos=0;var O=1E6;kK(m,[408125543,357149030,2807729])&&(O=bO(m));m.pos=V;return O}; Rx$=function(m,V){var O=m.pos;m.pos=0;if(m.Z.getUint8(m.pos)!==160&&!zw(m)||!cK(m,160))return m.pos=O,NaN;DS(m,!0);var h=m.pos;if(!cK(m,161))return m.pos=O,NaN;DS(m,!0);e1(m);var w=e1(m)<<8|e1(m);m.pos=h;if(!cK(m,155))return m.pos=O,NaN;h=bO(m);m.pos=O;return(w+h)*V/1E9}; zw=function(m){if(!oVU(m)||!cK(m,524531317))return!1;DS(m,!0);return!0}; oVU=function(m){if(m.fd()){if(!cK(m,408125543))return!1;DS(m,!0)}return!0}; kK=function(m,V){for(var O=0;O0){var h=E3(89,V.substring(O+1));g.Mm(h,function(w,y){this.set(y,w)},m); V=V.substring(0,O)}V=Lo(5,V);g.Mm(V,function(w,y){this.set(y,w)},m)}; ALC=function(m){var V=m.ji.yF(),O=[];g.Mm(m.Z,function(w,y){O.push(y+"="+w)}); if(!O.length)return V;var h=O.join("&");m=qm(2,m.ji)?"&":"?";return V+m+h}; sF=function(m,V){var O=new g.WX(V);(V=O.get("req_id"))&&m.set("req_id",V);g.Mm(m.Z,function(h,w){O["set"](w,null)}); return O}; UKp=function(){this.T=this.D=this.Z=this.timedOut=this.started=this.K=this.L=0}; F$=function(m){m.K=(0,g.TN)();m.started=0;m.timedOut=0;m.Z=0}; a3=function(m,V){var O=m.started+m.Z*4;V&&(O+=m.D);O=Math.max(0,O-3);return Math.pow(1.6,O)}; iO=function(m,V){m[V]||(m[V]=new UKp);return m[V]}; Gw=function(m){this.Qt=this.J=this.K=this.D=0;this.V=this.N=!1;this.Z=m;this.L=m.clone()}; dKl=function(m,V,O){if(xU(76,m.Z))return!1;var h=iO(O,U3(49,m.Z));if(h.timedOut<1&&h.Z<1)return!1;h=h.timedOut+h.Z;m=pH(m,V);O=iO(O,U3(50,m));return O.timedOut+O.Z+01?V=V.CHr:(O=iO(O,lO(m,m.D3(V,O),V)),V=Math.max(m.K,O.timedOut)+V.UK*(m.D-m.K)+.25*m.J,V=V>3?1E3*Math.pow(1.6,V-3):0);return V===0?!0:m.Qt+V<(0,g.TN)()}; tZ5=function(m,V,O){m.Z.set(V,O);m.L.set(V,O);m.T&&m.T.set(V,O)}; K83=function(m,V,O,h,w){++m.D;V&&++m.K;U3(48,O.ji).startsWith("redirector.")&&(m.Z=m.L.clone(),delete m.T,h.H_&&delete w[U3(32,m.Z)])}; vK=function(m){return m?(m.itag||"")+";"+(m.lmt||0)+";"+(m.xtags||""):""}; PK=function(m,V,O,h){this.initRange=O;this.indexRange=h;this.Z=null;this.D=!1;this.N=0;this.T=this.Sc=this.L=null;this.info=V;this.Dj=new Gw(m)}; mt=function(m,V){return vK(g.i6(m.info,V))}; VA=function(m,V){this.start=m;this.end=V;this.length=V-m+1}; Oz=function(m){m=m.split("-");var V=Number(m[0]),O=Number(m[1]);if(!isNaN(V)&&!isNaN(O)&&m.length===2&&(m=new VA(V,O),!isNaN(m.start)&&!isNaN(m.end)&&!isNaN(m.length)&&m.length>0))return m}; hs=function(m,V){return new VA(m,m+V-1)}; W87=function(m){return m.end==null?{start:String(m.start)}:{start:String(m.start),end:String(m.end)}}; wi=function(m){if(!m)return new VA(0,0);var V=Number(m.start);m=Number(m.end);if(!isNaN(V)&&!isNaN(m)&&(V=new VA(V,m),V.length>0))return V}; yA=function(m,V,O,h,w,y,L,C,E,q,M,f){h=h===void 0?"":h;this.type=m;this.Du=V;this.range=O;this.source=h;this.Z3=M;this.clipId=f===void 0?"":f;this.V=[];this.N="";this.Fr=-1;this.Qt=0;this.N=h;this.Fr=w>=0?w:-1;this.startTime=y||0;this.duration=L||0;this.Z=C||0;this.L=E>=0?E:this.range?this.range.length:NaN;this.D=this.range?this.Z+this.L===this.range.length:q===void 0?!!this.L:q;this.range?(this.T=this.startTime+this.duration*this.Z/this.range.length,this.J=this.duration*this.L/this.range.length, this.K=this.T+this.J):Xol(this)}; Xol=function(m){m.T=m.startTime;m.J=m.duration;m.K=m.T+m.J}; HjI=function(m,V,O){var h=!(!V||V.Du!==m.Du||V.type!==m.type||V.Fr!==m.Fr);return O?h&&!!V&&(m.range&&V.range?V.range.end===m.range.end:V.range===m.range)&&V.Z+V.L===m.Z+m.L:h}; js=function(m){return m.type===1||m.type===2}; Lu=function(m){return m.type===3||m.type===6}; Js=function(m,V){return m.Du===V.Du?m.range&&V.range?m.range.start+m.Z+m.L===V.range.start+V.Z:m.Fr===V.Fr?m.Z+m.L===V.Z:m.Fr+1===V.Fr&&V.Z===0&&m.D:!1}; $KU=function(m,V){return m.Fr!==V.Fr&&V.Fr!==m.Fr+1||m.type!==V.type?!1:Js(m,V)?!0:Math.abs(m.T-V.T)<=1E-6&&m.Fr===V.Fr?!1:T0G(m,V)}; T0G=function(m,V){return Js(m,V)||Math.abs(m.K-V.T)<=1E-6||m.Fr+1===V.Fr&&V.Z===0&&m.D?!0:!1}; Cu=function(m){return m.Fr+(m.D?1:0)}; YE$=function(m){m.length===1||g.cu(m,function(O){return!!O.range}); for(var V=1;V=V.range.start+V.Z&&m.range.start+m.Z+m.L<=V.range.start+V.Z+V.L:m.Fr===V.Fr&&m.Z>=V.Z&&(m.Z+m.L<=V.Z+V.L||V.D)}; nV7=function(m,V){return m.Du!==V.Du?!1:m.type===4&&V.type===3&&m.Du.v2()?(m=m.Du.Y_(m),wj(m,function(O){return nV7(O,V)})):m.Fr===V.Fr&&!!V.L&&V.Z+V.L>m.Z&&V.Z+V.L<=m.Z+m.L}; qT=function(m,V){var O=V.Fr;m.N="updateWithSegmentInfo";m.Fr=O;if(m.startTime!==V.startTime||m.duration!==V.duration)m.startTime=V.startTime,m.duration=V.duration,Xol(m)}; MT=function(m,V){var O=this;this.jz=m;this.T=this.Z=null;this.K=this.TM=NaN;this.D3=this.requestId=null;this.BD={BnN:function(){return O.range}}; this.Dj=m[0].Du.Dj;this.L=V||"";this.jz[0].range&&this.jz[0].L>0&&(k8m(m)?(this.range=YE$(m),this.D=this.range.length):(this.range=this.jz[this.jz.length-1].range,this.D=rL3(m)))}; fu=function(m){return!js(m.jz[m.jz.length-1])}; xQ=function(m){return m.jz[m.jz.length-1].type===4}; g.R_=function(m,V,O){O=m.D3===null?m.Dj.D3(V,O,m.jz[0].type):m.D3;if(m.Z){V=O?oC(20,m.Z,V.u0):m.Z;var h=new ZS(V);h.get("alr")||h.set("alr","yes");m.L&&gVa(h,m.L)}else/http[s]?:\/\//.test(m.L)?h=new ZS(new g.WX(m.L)):(h=BK(m.Dj,O,V),m.L&&gVa(h,m.L));(V=m.range)?h.set("range",V.toString()):m.jz[0].Du.Vh()&&m.jz.length===1&&m.jz[0].Z&&h.set("range",m.jz[0].Z+"-");m.requestId&&h.set("req_id",m.requestId);isNaN(m.TM)||h.set("headm",m.TM.toString());isNaN(m.K)||h.set("mffa",m.K+"ms");m.urlParams&&g.Mm(m.urlParams, function(w,y){h.set(y,w)}); return h}; SE3=function(m){if(m.range)return m.D;m=m.jz[0];return Math.round(m.J*m.Du.info.Rr)}; IQ1=function(m,V){return Math.max(0,m.jz[0].T-V)}; exp=function(m,V){m=g.D(m.jz);for(var O=m.next();!O.done;O=m.next())if(O=O.value,O.type===3&&V>=O.T&&V<=O.K)return!0;return!1}; o_=function(m,V,O,h,w,y){y=y===void 0?0:y;PK.call(this,m,V,h,void 0);this.K=O;this.u4=y;this.index=w||new g.wI}; uUm=function(m,V,O,h,w){this.Fr=m;this.startSecs=V;this.Ul=O;this.Z=h||NaN;this.L=w||NaN}; gi=function(m,V,O){for(;m;m=m.parentNode)if(m.attributes&&(!O||m.nodeName===O)){var h=m.getAttribute(V);if(h)return h}return""}; As=function(m,V){for(;m;m=m.parentNode){var O=m.getElementsByTagName(V);if(O.length>0)return O[0]}return null}; zx0=function(m){if(!m)return 0;var V=m.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return V?(Number(V[2])|0)*3600+(Number(V[4])|0)*60+(Number(V[6])|0):Number(m)|0}; Zja=function(m){return m.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?m+"Z":m}; Uz=function(){this.Z=[];this.L=null;this.N=0;this.D=[];this.K=!1;this.J="";this.T=-1}; sU0=function(m){var V=m.D;m.D=[];return V}; F8G=function(){this.T=[];this.Z=null;this.L={};this.D={}}; pom=function(m,V){var O=[];V=Array.from(V.getElementsByTagName("SegmentTimeline"));V=g.D(V);for(var h=V.next();!h.done;h=V.next()){h=h.value;var w=h.parentNode.parentNode,y=null;w.nodeName==="Period"?y=aQ0(m):w.nodeName==="AdaptationSet"?(w=w.getAttribute("id")||w.getAttribute("mimetype")||"",y=ijC(m,w)):w.nodeName==="Representation"&&(w=w.getAttribute("id")||"",y=G8a(m,w));if(y==null)return;y.update(h);g.L9(O,sU0(y))}g.L9(m.T,O);QCm(m.T,function(L){return L.startSecs*1E3+L.Z})}; B0$=function(m){m.Z&&(m.Z.Z=[]);g.Mm(m.L,function(V){V.Z=[]}); g.Mm(m.D,function(V){V.Z=[]})}; aQ0=function(m){m.Z||(m.Z=new Uz);return m.Z}; ijC=function(m,V){m.L[V]||(m.L[V]=new Uz);return m.L[V]}; G8a=function(m,V){m.D[V]||(m.D[V]=new Uz);return m.D[V]}; ts=function(m){var V=m===void 0?{}:m;m=V.u4===void 0?0:V.u4;var O=V.RD===void 0?!1:V.RD;var h=V.zE===void 0?0:V.zE;var w=V.De===void 0?0:V.De;var y=V.zQ===void 0?Infinity:V.zQ;var L=V.Br===void 0?0:V.Br;var C=V.El===void 0?!1:V.El;V=V.mj===void 0?!1:V.mj;g.wI.call(this);this.LR=this.nT=-1;this.qV=m;this.zE=h;this.RD=O;this.De=w;this.zQ=y;this.Br=L;((this.El=C)||isFinite(y)&&this.zQ>0)&&O&&di&&(this.L=!1,this.D="postLive");this.mj=V}; Ku=function(m,V){return xS(m.segments,function(O){return V-O.Fr})}; Wt=function(m,V,O){O=O===void 0?{}:O;o_.call(this,m,V,"",void 0,void 0,O.u4||0);this.index=new ts(O)}; Xt=function(m,V,O){PK.call(this,m,V);this.K=O;m=this.index=new g.wI;m.L=!1;m.D="d"}; lQa=function(m,V,O){var h=m.index.i_(V),w=m.index.getStartTime(V),y=m.index.getDuration(V);O?y=O=0:O=m.info.Rr*y;return new MT([new yA(3,m,void 0,"otfCreateRequestInfoForSegment",V,w,y,0,O)],h)}; QUX=function(m,V){if(!m.index.isLoaded()){var O=[],h=V.T;V=V.K.split(",").filter(function(M){return M.length>0}); for(var w=0,y=0,L=0,C=/^(\d+)/,E=/r=(\d+)/,q=0;q0&&(w.Z=Math.min(w.Z+L,10),w.L=y);w.Z>0?(w.Z--,w=!0):w=!1;if(w)typeof h==="function"&&(h=h()),console.log("plyr."+V,h);else{var C;h=((C=hhl.get(V))!=null?C:0)+1;hhl.set(V,h);h%100===1&&console.warn("plyr","plyr."+V+" is chatty, dropping logs.")}}}; O$m=function(){this.Z=10;this.L=Date.now()}; $Q=function(m,V){this.info=m;this.L=V;this.Z=null;this.T=this.D=-1;this.timestampOffset=0;this.isLocked=this.N=!1;this.K=this.info.Du.Pr()&&!this.info.Z}; g.YQ=function(m){return KdU(m.L)}; wg5=function(m,V){V=Math.min(V,m.info.L);var O=m.L.split(V),h=O.Ni;O=new $Q(new yA(m.info.type,m.info.Du,m.info.range,m.info.N,m.info.Fr,m.info.startTime,m.info.duration,m.info.Z,V,!1,m.info.Z3,m.info.clipId),O.tP);O.T=m.T;O.D=m.D;V=new $Q(new yA(m.info.type,m.info.Du,m.info.range,m.info.N,m.info.Fr,m.info.startTime,m.info.duration,m.info.Z+V,m.info.L-V,m.info.D,m.info.Z3,m.info.clipId),h);V.T=m.T;V.D=m.D;return[O,V]}; g.kQ=function(m,V,O,h){O=O===void 0?!1:O;h=h===void 0?0:h;if(m.isLocked||V.isLocked||!Js(m.info,V.info)||m.info.D)return null;if(h){if(m.L.totalLength+V.L.totalLength>h)return null}else if(O&&(O=m.L,h=V.L,O=!(h.Z.length?dCC(O,h.Z[0]):1)),O)return null;O=new yA(m.info.type,m.info.Du,m.info.range,m.info.N,m.info.Fr,m.info.startTime,m.info.duration,m.info.Z,m.info.L,m.info.D,m.info.Z3,m.info.clipId);h=V.info;O.L+=h.L;O.range&&(O.J+=h.J);O.K=h.K;O.D=h.D;h=new CG;E4(h,m.L);E4(h,V.L);O=new $Q(O,h);O.Z!= null&&V.Z!=null&&g.T$("dash",414627957,"merged slice emsg overridden; prev: "+O.Z.X_()+" next: "+V.Z.X_());O.Z=V.Z||m.Z;O.D=m.D!==-1?m.D:V.D;O.T=m.T!==-1?m.T:V.T;return O}; g.ri=function(m){g.Fy(m.info.Du.info)||m.info.Du.info.QV();if(m.D!==-1)return m.D;if(m.Z&&vZ5(m.Z))return m.D=vZ5(m.Z),m.D;if(g.Fy(m.info.Du.info)){var V=g.YQ(m);for(var O=m.info.Du.Z,h=NaN,w=NaN,y=0;tt(V,y);){var L=KH(V,y);L.type===1936286840?w=L.data.getUint32(L.dataOffset+8):L.type===1836476516?w=g.At(L):L.type===1952867444&&isNaN(h)&&(h=g.X$(L));y=WK(L.type)?y+8:y+L.size}!w&&O&&(w=UF(O));V=h/w}else V=new $K(g.YQ(m)),O=m.K?V:new $K(new DataView(m.info.Du.Z.buffer)),h=uO(O),O=V.pos,V.pos=0,zw(V)? cK(V,231)?(h=bO(V)*h/1E9,V.pos=O,V=h):(V.pos=O,V=NaN):(V.pos=O,V=NaN);m.D=V||m.info.T;return m.D}; jcI=function(m,V){m.timestampOffset>0&&(V-=m.timestampOffset);var O=g.ri(m)+V;yM0(m,O);m.timestampOffset=V}; yM0=function(m,V){g.Fy(m.info.Du.info)||m.info.Du.info.QV();m.D=V;if(g.Fy(m.info.Du.info)){var O=g.YQ(m);m=m.info.Du.Z;for(var h=NaN,w=NaN,y=0;tt(O,y);){var L=KH(O,y);isNaN(h)&&(L.type===1936286840?h=L.data.getUint32(L.dataOffset+8):L.type===1836476516&&(h=g.At(L)));if(L.type===1952867444){!h&&m&&(h=UF(m));var C=g.X$(L);isNaN(w)&&(w=Math.round(V*h)-C);var E=L;C+=w;if(E.data.getUint8(E.dataOffset)){var q=E.data;E=E.dataOffset+4;q.setUint32(E,Math.floor(C/4294967296));q.setUint32(E+4,C&4294967295)}else E.data.setUint32(E.dataOffset+ 4,C)}y=WK(L.type)?y+8:y+L.size}return!0}O=new $K(g.YQ(m));m=m.K?O:new $K(new DataView(m.info.Du.Z.buffer));h=uO(m);m=O.pos;O.pos=0;if(zw(O)&&cK(O,231))if(w=DS(O,!0),V=Math.floor(V*1E9/h),Math.ceil(Math.log(V)/Math.log(2)/8)>w)V=!1;else{for(h=w-1;h>=0;h--)O.Z.setUint8(O.pos+h,V&255),V>>>=8;O.pos=m;V=!0}else V=!1;return V}; DW=function(m,V){V=V===void 0?!1:V;var O=ct(m);m=V?0:m.info.J;return O||m}; ct=function(m){g.Fy(m.info.Du.info)||m.info.Du.info.QV();if(m.Z&&m.info.type===6)return m.Z.u4;if(g.Fy(m.info.Du.info)){var V=g.YQ(m);var O=0;V=g.Tw(V,1936286840);V=g.D(V);for(var h=V.next();!h.done;h=V.next())h=jUG(h.value),O+=h.Ru[0]/h.timescale;O=O||NaN;if(!(O>=0))a:{O=g.YQ(m);V=m.info.Du.Z;for(var w=h=0,y=0;tt(O,h);){var L=KH(O,h);if(L.type===1836476516)w=g.At(L);else if(L.type===1836019558){!w&&V&&(w=UF(V));if(!w){O=NaN;break a}var C=dI(L.data,L.dataOffset,1953653094),E=C;C=w;var q=dI(E.data, E.dataOffset,1952868452);E=dI(E.data,E.dataOffset,1953658222);var M=Jt(q);Jt(q);M&2&&Jt(q);q=M&8?Jt(q):0;var f=Jt(E),x=f&1;M=f&4;var R=f&256,A=f&512,K=f&1024;f&=2048;var X=CH(E);x&&Jt(E);M&&Jt(E);for(var c=x=0;c2048?"":V.indexOf("https://")===0?V:""}; es=function(m,V,O){V.match(gHo);return m(V,O).then(function(h){var w=g.oHX(h.xhr);return w?es(m,w,O):h.xhr})}; sz=function(m,V,O){m=m===void 0?"":m;V=V===void 0?null:V;O=O===void 0?!1:O;g.yh.call(this);var h=this;this.sourceUrl=m;this.isLivePlayback=O;this.Mf=this.duration=0;this.isPremiere=this.El=this.T=this.isLiveHeadPlayable=this.isLive=this.L=!1;this.zQ=this.De=0;this.isOtf=this.yp=!1;this.H6=(0,g.TN)();this.Ae=Infinity;this.Z={};this.D=new Map;this.state=this.P2=0;this.J=null;this.isManifestless=!1;this.v6=[];this.K=null;this.iH=0;this.N="";this.EH=NaN;this.Pt=this.A_=this.timestampOffset=this.V=0;this.Px= this.zF=NaN;this.Pl=0;this.fA=this.Zu=!1;this.Je=[];this.Xr={};this.CA=this.mS=NaN;this.BD={jgr:function(C){uq(h,C)}}; var w;this.pA=(w=V)==null?void 0:w.w0("html5_use_network_error_code_enums");AMp=!!V&&V.w0("html5_modern_vp9_mime_type");var y;z$=!((y=V)==null||!y.w0("html5_enable_flush_during_seek"))&&g.Qf();var L;ZW=!((L=V)==null||!L.w0("html5_enable_reset_audio_decoder"))&&g.Qf()}; U3o=function(m){return g.RC(m.Z,function(V){return!!V.info.video&&V.info.video.qualityOrdinal>=2160})}; ZRp=function(m){return g.RC(m.Z,function(V){return!!V.info.video&&V.info.video.isHdr()})}; le=function(m){return g.RC(m.Z,function(V){return!!V.info.He})}; g.d3$=function(m){return g.RC(m.Z,function(V){return Bg(V.info.mimeType)})}; tcI=function(m){return g.RC(m.Z,function(V){return V.info.video?V.info.video.projectionType==="EQUIRECTANGULAR":!1})}; KF7=function(m){return g.RC(m.Z,function(V){return V.info.video?V.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; WF0=function(m){return g.RC(m.Z,function(V){return V.info.video?V.info.video.projectionType==="MESH":!1})}; Xga=function(m){return g.RC(m.Z,function(V){return V.info.video?V.info.video.stereoLayout===1:!1})}; H$a=function(m){return O5o(m.Z,function(V){return V.info.video?V.U3():!0})}; GX=function(m){return g.RC(m.Z,function(V){return xU(13,V.Dj.Z)})}; uq=function(m,V){m.Z[V.info.id]=V;m.D.set(mt(V,m.yp),V)}; iq=function(m,V,O){O=O===void 0?0:O;var h=m.mimeType||"",w=m.itag;var y=m.xtags;w=w?w.toString():"";y&&(w+=";"+y);y=w;if(p$(h)){var L=m.width||640;w=m.height||360;var C=m.fps,E=m.qualityLabel,q=m.qualityOrdinal,M=m.colorInfo,f=m.projectionType,x;m.stereoLayout&&(x=Tk3[m.stereoLayout]);var R=x3l(m)||void 0;if(M==null?0:M.primaries)var A=$3p[M.primaries]||void 0;L=new rk(L,w,C,f,x,void 0,E,q&&YaG[q],R,A);h=Ft(h,L,N3[m.itag||""]);z$&&(h+="; enableflushduringseek=true");ZW&&(h+="; enableresetaudiodecoder=true")}var K; if(GA(h)){var X=m.audioSampleRate;x=m.audioTrack;X=new oc(X?+X:void 0,m.audioChannels,m.spatialAudioType,m.isDrc,m.loudnessDb,m.trackAbsoluteLoudnessLkfs,m.audioQuality||"AUDIO_QUALITY_UNKNOWN",m.isVb);x&&(A=x.displayName,w=x.id,C=x.audioIsDefault,x=x.isAutoDubbed,A&&(K=new g.I_(A,w||"",!!C,!!x)))}var c;m.captionTrack&&(E=m.captionTrack,x=E.displayName,A=E.vssId,w=E.languageCode,C=E.kind,E=E.id,x&&A&&w&&(c=new McC(x,A,w,C,m.xtags,E)));x=Number(m.bitrate)/8;A=Number(m.contentLength);w=Number(m.lastModified); E=m.drmFamilies;C=m.type;O=O&&A?A/O:0;m=Number(m.approxDurationMs);if(V&&E){var r={};E=g.D(E);for(q=E.next();!q.done;q=E.next())(q=a_[q.value])&&(r[q]=V[q])}return new b6(y,h,{audio:X,video:L,fP:K,He:r,Rr:x,Ao:O,contentLength:A,lastModified:w,captionTrack:c,streamType:C,approxDurationMs:m})}; G$=function(m,V,O){O=O===void 0?0:O;var h=m.type;var w=m.itag;var y=m.xtags;y&&(w=m.itag+";"+y);if(p$(h)){var L=(m.size||"640x360").split("x");L=new rk(+L[0],+L[1],+m.fps,m.projection_type,+m.stereo_layout,void 0,m.quality_label,+m.quality_ordinal,m.eotf,m.primaries);h=Ft(h,L,N3[m.itag]);z$&&(h+="; enableflushduringseek=true");ZW&&(h+="; enableresetaudiodecoder=true")}var C;if(GA(h)){var E=new oc(+m.audio_sample_rate||void 0,+m.audio_channels||0,m.spatial_audio_type,!!m.drc);m.name&&(C=new g.I_(m.name, m.audio_track_id,m.isDefault==="1",m.isAutoDubbed==="1"))}var q;m.caption_display_name&&m.caption_vss_id&&m.caption_language_code&&(q=new McC(m.caption_display_name,m.caption_vss_id,m.caption_language_code,m.caption_kind,m.xtags,m.caption_id));y=Number(m.bitrate)/8;var M=Number(m.clen),f=Number(m.lmt);O=O&&M?M/O:0;if(V&&m.drm_families){var x={};for(var R=g.D(m.drm_families.split(",")),A=R.next();!A.done;A=R.next())A=A.value,x[A]=V[A]}return new b6(w,h,{audio:E,video:L,fP:C,He:x,Rr:y,Ao:O,contentLength:M, lastModified:f,captionTrack:q,streamType:m.stream_type,approxDurationMs:Number(m.approx_duration_ms)})}; kA7=function(m){return wj(m,function(V){return"FORMAT_STREAM_TYPE_OTF"===V.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; rM1=function(m){return wj(m,function(V){return"FORMAT_STREAM_TYPE_OTF"===V.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; cM1=function(m,V){return m.J?Jn(m.J.T,V):m.v6.length?Jn(m.v6,V):[]}; pu=function(m,V,O){V=V===void 0?"":V;O=O===void 0?"":O;m=new g.WX(m,!0);m.set("alr","yes");O&&(O=YU(1,decodeURIComponent(O)),m[J[36]](V,encodeURIComponent(O)));return m}; nHp=function(m,V){var O=gi(V,"id");O=O.replace(":",";");var h=gi(V,"mimeType"),w=gi(V,"codecs");h=w?h+'; codecs="'+w+'"':h;w=Number(gi(V,"bandwidth"))/8;var y=Number(As(V,"BaseURL").getAttribute(m.N+":contentLength")),L=m.duration&&y?y/m.duration:0;if(p$(h)){var C=Number(gi(V,"width"));var E=Number(gi(V,"height")),q=Number(gi(V,"frameRate")),M=D31(gi(V,m.N+":projectionType"));a:switch(gi(V,m.N+":stereoLayout")){case "layout_left_right":var f=1;break a;case "layout_top_bottom":f=2;break a;default:f= 0}C=new rk(C,E,q,M,f)}if(GA(h)){var x=Number(gi(V,"audioSamplingRate"));var R=Number(gi(V.getElementsByTagName("AudioChannelConfiguration")[0],"value"));E=Nk0(gi(V,m.N+":spatialAudioType"));x=new oc(x,R,E);a:{R=gi(V,"lang")||"und";if(E=As(V,"Role"))if(M=gi(E,"value")||"",g.YS(b$C,M)){E=R+"."+b$C[M];q=M==="main";m=gi(V,m.N+":langName")||R+" - "+M;R=new g.I_(m,E,q);break a}R=void 0}}if(V=As(V,"ContentProtection"))if(V.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var A={};for(V= V.firstChild;V!=null;V=V.nextSibling)V instanceof Element&&/SystemURL/.test(V.nodeName)&&(m=V.getAttribute("type"),E=V.textContent,m&&E&&(A[m]=E.trim()))}else A=void 0;return new b6(O,h,{audio:x,video:C,fP:R,He:A,Rr:w,Ao:L,contentLength:y})}; D31=function(m){switch(m){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"}}; Nk0=function(m){switch(m){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"}}; I6X=function(m,V){V=V===void 0?"":V;m.state=1;m.H6=(0,g.TN)();return Rh5(V||m.sourceUrl).then(function(O){if(!m.UH()){m.P2=O.status;O=O.responseText;var h=new DOMParser;O=s0(h,fAo(O),"text/xml").getElementsByTagName("MPD")[0];m.Ae=zx0(gi(O,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(O.attributes){h=g.D(O.attributes);for(var w=h.next();!w.done;w=h.next())if(w=w.value,w.value==="http://youtube.com/yt/2012/10/10"){h=w.name.split(":")[1];break b}}h=""}m.N=h;m.isLive=m.Ae=m.Ae}; Sa5=function(m){var V=m.Ae;isFinite(V)&&(Bt(m)?m.refresh():(V=Math.max(0,m.H6+V-(0,g.TN)()),m.K||(m.K=new g.mq(m.refresh,V,m),g.a(m,m.K)),m.K.start(V)))}; uym=function(m){m=m.Z;for(var V in m){var O=m[V].index;if(O.isLoaded())return O.wY()+1}return 0}; lq=function(m){return m.A_?m.A_-(m.V||m.timestampOffset):0}; QA=function(m){return m.Pt?m.Pt-(m.V||m.timestampOffset):0}; vt=function(m){if(!isNaN(m.EH))return m.EH;var V=m.Z,O;for(O in V){var h=V[O].index;if(h.isLoaded()&&!Bg(V[O].info.mimeType)){V=0;for(O=h.T7();O<=h.wY();O++)V+=h.getDuration(O);V/=h.xB();V=Math.round(V/.5)*.5;h.xB()>10&&(m.EH=V);return V}if(m.isLive&&(h=V[O],h.u4))return h.u4}return NaN}; zhI=function(m,V){m=wHC(m.Z,function(h){return h.index.isLoaded()}); if(!m)return NaN;m=m.index;var O=m.AZ(V);return m.getStartTime(O)===V?V:O=0&&w.segments.splice(y,1)}}}; sc$=function(m){for(var V in m.Z)Bg(m.Z[V].info.mimeType)||GuX(m.Z[V].index,Infinity)}; VT=function(m,V,O){for(var h in m.Z){var w=m.Z[h].index,y=V,L=O;w.RD&&(y&&(w.nT=Math.max(w.nT,y)),L&&(w.LR=Math.max(w.LR||0,L)))}O&&(m.mS=O/1E3)}; FFm=function(m,V,O,h){h!==void 0&&h&&O===m.CA||(m.v6.push(V),m.CA=O,m.publish("cuepointsadded",O))}; a63=function(m){m.Pt=0;m.A_=0;m.Pl=0}; OY=function(m){return m.fA&&m.isManifestless?m.isLiveHeadPlayable:m.isLive}; Ft=function(m,V,O){hv===null&&(hv=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(AMp&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return hv||O!=="9"&&O!=="("?hv||O!=="9h"&&O!=="(h"||(m='video/webm; codecs="vp9.2"'):m='video/webm; codecs="vp9"',m;if(!hv&&!w8||m!=='video/webm; codecs="vp9"'&&m!=='video/webm; codecs="vp9.2"')return m; O="00";var h="08",w="01",y="01",L="01";m==='video/webm; codecs="vp9.2"'&&(O="02",h="10",V.primaries==="bt2020"&&(L=w="09"),V.Z==="smpte2084"&&(y="16"),V.Z==="arib-std-b67"&&(y="18"));return'video/webm; codecs="'+["vp09",O,"51",h,"01",w,y,L,"00"].join(".")+'"'}; jd=function(m,V,O){m=""+m+(V>49?"p60":V>32?"p48":"");V=rC()[m];if(V!=null&&V>0)return V;V=yT.get(m);if(V!=null&&V>0)return V;O=O==null?void 0:O.get(m);return O!=null&&O>0?O:8192}; pgC=function(m){this.IY=m;this.qq=this.sW=this.H6=this.K=this.T=this.v6=this.Xr=this.Zu=!1;this.J=this.N=0;this.nA=!1;this.Ae=!0;this.pA=!1;this.Yl=0;this.Fi=this.iH=!1;this.tq=!0;this.Je=this.Mf=!1;this.L={};this.UU=this.kD=this.ma=this.disableAv1=this.Aj=this.l2=this.W6=this.LP=this.Z=this.V=!1;this.mS=0;this.iU=this.IY.Y("html5_disable_aac_preference");this.Rd=Infinity;this.EH=0;this.nP=this.IY.tj();this.CP=this.IY.experiments.w0("html5_enable_vp9_fairplay");this.wB=this.IY.Y("html5_force_av1_for_testing"); this.VF=this.IY.wu().Z.lH(i$0);this.CA=g.m9(this.IY.experiments,"html5_av1_ordinal_cap");this.Y5=this.IY.Y("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.uc=this.IY.Y("html5_account_onesie_format_selection_during_format_filter");this.Rr=g.m9(this.IY.experiments,"html5_max_byterate");this.Id=this.IY.Y("html5_enable_iamf_audio");this.fA=this.IY.experiments.w0("html5_allow_capability_merge");this.Wj=this.IY.wu().Z.lH(GA0);this.BB=this.IY.Y("html5_enable_encrypted_av1")}; s23=function(m){if(m.Xr)return["f"];if(g.B7("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var V=["9h","9","h","8"];m.BB&&V.push("1e");V=V.concat(["(h","(","H","*"]);m.iH&&(V.unshift("1"),V.unshift("1h"));m.sW&&V.unshift("h");m.Qt&&(V=(Bk3[m.Qt]||[m.Qt]).concat(V));return V}; nZa=function(m){var V=["o","a","A"];m.EH===1&&(m.T&&(V=["mac3","MAC3"].concat(V)),m.K&&(V=["meac3","MEAC3"].concat(V)),m.Id&&(V=["i","I"].concat(V)));m.Zu&&(V=["so","sa"].concat(V));!m.qq||m.H6||m.D||m.iU||V.unshift("a");m.D&&(V=(Bk3[m.D]||[m.D]).concat(V));return V}; LO=function(m,V,O,h){V=V===void 0?{}:V;if(h===void 0?0:h)return V.disabled=1,0;if(V9(m.K,OF.AV1_CODECS)&&V9(m.K,OF.HEIGHT)&&V9(m.K,OF.BITRATE))return V.isCapabilityUsable=1,8192;try{var w=RX7();if(w&&!m.Y("disable_av1_setting"))return V.localPref=w}catch(C){}h=1080;w=navigator.hardwareConcurrency;w<=2&&(h=480);V.coreCount=w;if(w=g.m9(m.experiments,"html5_default_av1_threshold"))h=V["default"]=w;if(m=m.K.Zu)V.mcap=m,h=Math.max(h,m);if(O){var y,L;if(m=(y=O.videoInfos.find(function(C){return ec(C)}))== null?void 0:(L=y.L)==null?void 0:L.powerEfficient)h=8192,V.isEfficient=1; O=O.videoInfos[0].video;y=Math.min(jd("1",O.fps),jd("1",30));V.perfCap=y;h=Math.min(h,y);O.isHdr()&&!m&&(V.hdr=1,h*=.75)}else O=jd("1",30),V.perfCap30=O,h=Math.min(h,O),O=jd("1",60),V.perfCap60=O,h=Math.min(h,O);return V.av1Threshold=h}; Jv=function(m,V,O,h){this.flavor=m;this.keySystem=V;this.L=O;this.experiments=h;this.Z={};this.hd=this.keySystemAccess=null;this.C1=this.BZ=-1;this.z5=null;this.D=!!h&&h.w0("edge_nonprefixed_eme");h&&h.w0("html5_enable_vp9_fairplay")}; EY=function(m){return m.D?!1:!m.keySystemAccess&&!!CO()&&m.keySystem==="com.microsoft.playready"}; qZ=function(m){return m.keySystem==="com.microsoft.playready"}; MZ=function(m){return!m.keySystemAccess&&!!CO()&&m.keySystem==="com.apple.fps.1_0"}; fO=function(m){return m.keySystem==="com.youtube.fairplay"}; xq=function(m){return m.keySystem==="com.youtube.fairplay.sbdl"}; g.Rt=function(m){return m.flavor==="fairplay"}; CO=function(){var m=window,V=m.MSMediaKeys;mB()&&!V&&(V=m.WebKitMediaKeys);return V&&V.isTypeSupported?V:null}; g8=function(m){return navigator.requestMediaKeySystemAccess?g.q3&&!g.Qf()?kN("45"):g.p3||g.AY?m.w0("edge_nonprefixed_eme"):g.ot?kN("47"):g.AJ&&m.w0("html5_enable_safari_fairplay")?!1:!0:!1}; l6C=function(m,V,O,h){var w=v7(),y=(O=w||O&&mB())?["com.youtube.fairplay"]:["com.widevine.alpha"];V&&y.unshift("com.youtube.widevine.l3");w&&h&&y.unshift("com.youtube.fairplay.sbdl");return O?y:m?[].concat(g.b(y),g.b(Av.playready)):[].concat(g.b(Av.playready),g.b(y))}; UY=function(m,V,O,h,w){h=h===void 0?!1:h;g.Z.call(this);this.IY=V;this.useCobaltWidevine=h;this.uH=w;this.L=[];this.D={};this.Z={};this.callback=null;this.K=!1;this.T=[];this.initialize(m,!O)}; vHl=function(m,V){m.callback=V;m.T=[];g8(m.IY.experiments)?d8(m):Qcl(m)}; d8=function(m){if(!m.UH())if(m.L.length===0)m.callback(m.T);else{var V=m.L[0],O=m.D[V],h=P60(m,O);if(tv&&tv.keySystem===V&&tv.vFr===JSON.stringify(h))m.uH("remksa",{re:!0}),mv$(m,O,tv.keySystemAccess);else{var w,y;m.uH("remksa",{re:!1,ok:(y=(w=tv)==null?void 0:w.keySystem)!=null?y:""});tv=void 0;navigator.requestMediaKeySystemAccess(V,h).then(qU(function(L){mv$(m,O,L,h)}),qU(function(){m.K=!m.K&&m.D[m.L[0]].flavor==="widevine"; m.K||m.L.shift();d8(m)}))}}}; mv$=function(m,V,O,h){if(!m.UH()){h&&(tv={keySystem:V.keySystem,keySystemAccess:O,vFr:JSON.stringify(h)});V.keySystemAccess=O;if(qZ(V)){O=C$();h=g.D(Object.keys(m.Z[V.flavor]));for(var w=h.next();!w.done;w=h.next())w=w.value,V.Z[w]=!!O.canPlayType(w)}else{O=V.keySystemAccess.getConfiguration();if(O.audioCapabilities)for(h=g.D(O.audioCapabilities),w=h.next();!w.done;w=h.next())V.Z[w.value.contentType]=!0;if(O.videoCapabilities)for(O=g.D(O.videoCapabilities),h=O.next();!h.done;h=O.next())V.Z[h.value.contentType]= !0}m.T.push(V);m.useCobaltWidevine||m.Y("html5_enable_vp9_fairplay")&&xq(V)?(m.L.shift(),d8(m)):m.callback(m.T)}}; P60=function(m,V){var O={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(m.Y("html5_enable_vp9_fairplay")&&fO(V))return O.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),O.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[O];qZ(V)&&(O.initDataTypes=["keyids","cenc"]);for(var h=g.D(Object.keys(m.Z[V.flavor])),w=h.next();!w.done;w=h.next()){w=w.value;var y=w.indexOf("audio/")===0,L=y?O.audioCapabilities:O.videoCapabilities;V.flavor!== "widevine"||m.K?L.push({contentType:w}):y?L.push({contentType:w,robustness:"SW_SECURE_CRYPTO"}):(g.q3&&g.B7("windows nt")&&!m.Y("html5_drm_enable_moho")||L.push({contentType:w,robustness:"HW_SECURE_ALL"}),y=w,m.IY.K.L&&w.includes("vp09")&&(y=w+"; experimental=allowed"),L.push({contentType:y,robustness:"SW_SECURE_DECODE"}),KO(m.IY)==="MWEB"&&(jU()||lB())&&(m.uH("swcrypto",{}),L.push({contentType:w,robustness:"SW_SECURE_CRYPTO"})))}return[O]}; Qcl=function(m){if(CO()&&(g.AJ||Ob))m.T.push(new Jv("fairplay","com.apple.fps.1_0","",m.IY.experiments));else{var V=V70(),O=g.p5(m.L,function(h){var w=m.D[h],y=!1,L=!1,C;for(C in m.Z[w.flavor])V(C,h)&&(w.Z[C]=!0,y=y||C.indexOf("audio/")===0,L=L||C.indexOf("video/")===0);return y&&L}); O&&m.T.push(m.D[O]);m.L=[]}m.callback(m.T)}; V70=function(){var m=CO();if(m){var V=m.isTypeSupported;return function(h,w){return V(w,h)}}var O=C$(); return O&&(O.addKey||O.webkitAddKey)?function(h,w){return!!O.canPlayType(h,w)}:function(){return!1}}; WP=function(m){var V;m=LJ((V=m.serializedClientExperimentFlags)!=null?V:"","&");this.flags=new Map(Object.entries(m).map(function(O){var h=g.D(O);O=h.next().value;h=h.next().value;return typeof h==="string"?[O,h]:[O,h[0]]}))}; yTU=function(m,V){switch(V.R0){case "bool":return m.w0(V.Y9);case "int":return m=OS3(m,V.Y9),fk(m);case "double":return OS3(m,V.Y9);case "string":return hF$(m,V.Y9);case "int32_list":return wm7(m,V.Y9);case "int64_list":return wm7(m,V.Y9).map(function(O){return fk(O)}); case "string_list":throw Error("String list flags are not supported in WPCC");default:throw Error("Unknown flag type");}}; OS3=function(m,V){m=m.flags.get(""+V);return Number(m)||0}; wm7=function(m,V){if(m=m.flags.get(""+V))if(m=m.replace(/\[ *(.*?) *\]/,"$1"))return m.split(",").map(Number);return[]}; hF$=function(m,V){return(m=m.flags.get(""+V))?m.toString():""}; X9=function(m,V,O){this.Z=void 0;this.experimentIds=m?m.split(","):[];this.flags=LJ(V||"","&");m={};V=g.D(this.experimentIds);for(var h=V.next();!h.done;h=V.next())m[h.value]=!0;this.experiments=m;O=new WP(O);this.D=new ki3(O);this.L=new YNX(O)}; g.m9=function(m,V,O){O=O===void 0?0:O;m=m.lH(V);JSON.stringify(m);return m===void 0?O:Number(m)}; HP=function(m,V){return(m=m.lH(V))?m.toString():""}; jT0=function(m){if(m=m.lH("html5_web_po_experiment_ids"))if(m=m.replace(/\[ *(.*?) *\]/,"$1"))return m.split(",").map(Number);return[]}; Lu1=function(m){if(m.Z)return m.Z;if(m.experimentIds.length<=1)return m.Z=m.experimentIds,m.Z;var V=[].concat(g.b(m.experimentIds)).map(function(h){return Number(h)}); V.sort();for(var O=V.length-1;O>0;--O)V[O]-=V[O-1];m.Z=V.map(function(h){return h.toString()}); m.Z.unshift("v1");return m.Z}; Cd$=function(m){return JTp.then(m)}; T7=function(m,V,O){this.experiments=m;this.mS=V;this.v6=O===void 0?!1:O;this.V=!!g.$I("cast.receiver.platform.canDisplayType");this.J={};this.Qt=!1;this.D=new Map;this.N=!0;this.Z=this.L=!1;this.Zu=0;this.Ae=this.experiments.w0("html5_disable_vp9_encrypted");this.T=this.experiments.w0("html5_enable_encrypted_av1");m=g.$I("cast.receiver.platform.getValue");this.K=!this.V&&m&&m("max-video-resolution-vpx")||null;E_G(this);this.L=!!(v7()&&pJ()>=21)}; iRX=function(m,V,O){O=O===void 0?1:O;var h=V.itag;if(h==="0")return!0;var w=V.mimeType;if(V.B6==="1e"&&!m.T)return"dav1enc";if(ec(V)&&m.Qt)return"dav1";if(V.video&&(V.video.isHdr()||V.video.primaries==="bt2020")&&!(V9(m,OF.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(h==="338"&&!(g.q3?kN(53):g.ot&&kN(64)))return"dopus";var y=O;y=y===void 0?1: y;O={};V.video&&(V.video.width&&(O[OF.WIDTH.name]=V.video.width),V.video.height&&(O[OF.HEIGHT.name]=V.video.height),V.video.fps&&(O[OF.FRAMERATE.name]=V.video.fps*y),V.video.Z&&(O[OF.EOTF.name]=V.video.Z),V.Rr&&(O[OF.BITRATE.name]=V.Rr*8*y),V.B6==="("&&(O[OF.CRYPTOBLOCKFORMAT.name]="subsample"),V.video.projectionType==="EQUIRECTANGULAR"||V.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||V.video.projectionType==="MESH")&&(O[OF.DECODETOTEXTURE.name]="true");var L;((L=V.audio)==null?0:L.numChannels)&& V.B6!=="i"&&V.B6!=="I"&&(O[OF.CHANNELS.name]=V.audio.numChannels);m.L&&n$(V)&&(O[OF.EXPERIMENTAL.name]="allowed");L=g.D(Object.keys(OF));for(y=L.next();!y.done;y=L.next()){y=OF[y.value];var C;if(C=O[y.name])if(C=!(y===OF.EOTF&&V.mimeType.indexOf("vp09.02")>0)){C=y;var E=V;C=!(m.experiments.w0("html5_ignore_h264_framerate_cap")&&C===OF.FRAMERATE&&jRX(E))}if(C)if(V9(m,y))if(m.K){if(m.K[y.name]1080&&V.He&&(w+="; hdcp=2.2");return h==="227"?"hqcenc":h!=="585"&&h!=="588"&&h!=="583"&&h!=="586"&&h!=="584"&&h!=="587"&&h!=="591"&&h!=="592"||m.experiments.w0("html5_enable_new_hvc_enc")?v7()&&pJ()>=21&&g.B7("appletv5")&&(h==="410"||h==="845")?!0:m.isTypeSupported(w)?!0:"tpus":"newhvc"}; $q=function(){var m=lB()&&!kN(29),V=g.B7("google tv")&&g.B7("chrome")&&!kN(30);return m||V?!1:Mv()}; qtl=function(m,V,O){var h=480;V=g.D(V);for(var w=V.next();!w.done;w=V.next()){w=w.value;var y=w.video.qualityOrdinal;y<=1080&&y>h&&iRX(m,w,O)===!0&&(h=y)}return h}; g.Yq=function(m,V){V=V===void 0?!1:V;return $q()&&m.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!V&&m.canPlayType(C$(),"application/x-mpegURL")?!0:!1}; fIo=function(m){M7o(function(){for(var V=g.D(Object.keys(OF)),O=V.next();!O.done;O=V.next())V9(m,OF[O.value])})}; V9=function(m,V){V.name in m.J||(m.J[V.name]=xvG(m,V));return m.J[V.name]}; xvG=function(m,V){if(m.K)return!!m.K[V.name];if(V===OF.BITRATE&&m.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!m.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(V===OF.AV1_CODECS)return m.isTypeSupported("video/mp4; codecs="+V.valid)&&!m.isTypeSupported("video/mp4; codecs="+V.Dy);if(V.video){var O='video/webm; codecs="vp9"';m.isTypeSupported(O)||(O='video/mp4; codecs="avc1.4d401e"')}else O='audio/webm; codecs="opus"', m.isTypeSupported(O)||(O='audio/mp4; codecs="mp4a.40.2"');return m.isTypeSupported(O+"; "+V.name+"="+V.valid)&&!m.isTypeSupported(O+"; "+V.name+"="+V.Dy)}; RF5=function(m,V){var O=0;m.D.has(V)&&(O=m.D.get(V).K0);m.D.set(V,{K0:O+1,X9:Math.pow(2,O+1)});m.Z=!0}; I5U=function(m,V){for(var O=new Map,h=g.D(V.keys()),w=h.next();!w.done;w=h.next()){w=w.value;var y=w.split("_")[0];m.has(y)||O.set(w,V.get(w))}return O}; uqo=function(m,V,O){var h,w=((h=V.video)==null?void 0:h.fps)||0;h=m+"_"+w;var y=!!V.audio,L={itag:V.itag,B6:m,RF:y};if(y)L.numChannels=V.audio.numChannels;else{var C=V.video;L.maxWidth=C==null?void 0:C.width;L.maxHeight=C==null?void 0:C.height;L.maxFramerate=w;L.maxBitrateBps=V.Rr*8;L.Dv=C==null?void 0:C.isHdr()}C=O.get(h);C?y||(V=Math.max(C.maxWidth||0,C.maxHeight||0)>Math.max(L.maxWidth||0,L.maxHeight||0)?C:L,m={itag:V.itag,B6:m,RF:y,maxWidth:Math.max(C.maxWidth||0,L.maxWidth||0),maxHeight:Math.max(C.maxHeight|| 0,L.maxHeight||0),maxFramerate:w,Dv:V.Dv},m.maxBitrateBps=V.maxBitrateBps,O.set(h,m)):O.set(h,L)}; E_G=function(m){var V;(V=navigator.mediaCapabilities)!=null&&V.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(O){O.smooth&&O.powerEfficient&&(m.Zu=2160)})}; kq=function(){g.yh.call(this);this.items={}}; r8=function(m,V){this.Z=m;this.cipher=this.Z.exports.AES128CTRCipher_create(V.byteOffset)}; Dj=function(){this.L=this.mM=0;this.Z=Array.from({length:cP.length}).fill(0)}; o_a=function(){}; g_a=function(){this.startTimeMs=(0,g.TN)();this.Z=!1}; ATX=function(){this.Z=new o_a}; UvU=function(m,V,O,h){h=h===void 0?1:h;O>=0&&(V in m.Z||(m.Z[V]=new Dj),m.Z[V].FU(O,h))}; dvm=function(m,V,O,h,w){var y=(0,g.TN)(),L=w?w(V):void 0,C;w=(C=L==null?void 0:L.mM)!=null?C:1;if(w!==0){var E;C=(E=L==null?void 0:L.profile)!=null?E:O;UvU(m,C,y-h,w)}return V}; t70=function(m,V,O,h,w){if(V&&typeof V==="object"){var y=function(L){return dvm(m,L,O,h,w)}; if(vO(V))return V.then(y);if(QY(V))return hr(V,y)}return dvm(m,V,O,h,w)}; Ku$=function(){}; WuX=function(m){var V=window;V.ywc||(V.ywc={});var O=V.ywc[m];if(O)return O;O={};return V.ywc[m]=O}; Xmo=function(m){var V=window;V.ywc&&delete V.ywc[m]}; HSC=function(m){var V=WuX(m);if(V.binP)return V.binP;V.binP=Promise.resolve().then(function(){return fetch(m)}).then(function(O){if(!O.ok)throw Error("HTTP"+O.statusText); return O.arrayBuffer()}); V.binP.then(function(O){V.bin=O},function(){Xmo(m)}); return V.binP}; Yt7=function(m,V){return yO(TGa,function(){var O=this;return function w(){var y,L,C;return oA(w,function(E){switch(E.Z){case 1:g.C5(E,2);if(!O.Z)throw"wasm.ps.ns";y=m;L=UJ;return yW(E,je($v1(O,V)),4);case 4:C=L(E.L);if(!C)throw"wasm.ps.um";return yW(E,je(WebAssembly.instantiate(C,y)),5);case 5:return E.return(E.L);case 2:g.MA(E),g.f5(E,0)}})}()})}; $v1=function(m,V){return yO(m,function(){var O=this;return function w(){var y,L,C,E,q,M,f,x,R;return oA(w,function(A){switch(A.Z){case 1:g.C5(A,2);y=[];L=function(){return"wasm.ps.c: ["+y.map(function(K){return'"'+K+'"'}).join(", ")+"]"}; C=WuX(V);if(C.mod)return A.return(C.mod);if(!C.modP){A.Te(4);break}g.JG(A,5);E=UJ;return yW(A,je(C.modP),7);case 7:return A.return(E(A.L));case 5:g.qA(A),y.unshift("pcm");case 4:if((q=C.bin)||!C.binP){A.Te(8);break}g.JG(A,9);M=UJ;return yW(A,je(C.binP),11);case 11:q=M(A.L);g.EJ(A,8);break;case 9:g.qA(A),y.unshift("pfb");case 8:if(q){A.Te(12);break}g.JG(A,13);f=UJ;return yW(A,je(HSC(V)),15);case 15:q=f(A.L);g.EJ(A,12);break;case 13:throw g.qA(A),O.Z=!1,y.unshift("fb"),L();case 12:return g.JG(A,16), x=UJ,yW(A,je(WebAssembly.compile(q)),18);case 18:return A.return(x(A.L));case 16:R=g.qA(A),Xmo(V),y.unshift("ca: "+R);case 17:throw L();case 2:g.MA(A),g.f5(A,0)}})}()})}; kP7=function(){}; rT$=function(){var m=this;this.proc_exit=function(){}; this.fd_write=function(V,O,h){if(!m.exports)return 1;V=new Uint32Array(m.exports.memory.buffer,O,h*2);O=[];for(var w=0;w0&&G7<=2.3;C=V?V.useNativeControls:m.use_native_controls;this.J=g.sY(this)&&this.L;E=this.L&&!this.J;C=g.pO(this)||!L&&Cp(E,C)?"3":"1";this.disableOrganicUi=!(V==null||!V.disableOrganicUi);E=V?V.controlsType:m.controls;this.controlsType=this.disableOrganicUi||E==="0"||E===0?"0":C;this.Oi=this.L;this.color=Eb("red",V?V.progressBarColor:m.color,aIX);this.qH=this.controlsType==="3";this.kD=!this.T;this.h_=(C=!this.kD&& !at(this)&&!this.Ae&&!this.N&&!F9(this))&&!this.qH&&this.controlsType==="1";this.qq=g.BP(this)&&C&&this.controlsType==="0"&&!this.h_&&!(V==null?0:V.embedsEnableEmc3ds);this.Bf=this.JJ=L;this.Rd=(this.controlsType==="3"||this.L||Cp(!1,m.use_media_volume))&&!this.J;this.lz=Ob&&!g.VS(601)?!1:!0;this.LQ=this.T||!1;this.VV=at(this)?"":(this.loaderUrl||m.post_message_origin||"").substring(0,128);this.widgetReferrer=M2("",V?V.widgetReferrer:m.widget_referrer);var q;V?V.disableCastApi&&(q=!1):q=m.enablecastapi; q=!this.V||Cp(!0,q);L=!0;V&&V.disableMdxCast&&(L=!1);this.Zd=this.Y("enable_cast_for_web_unplugged")&&g.l0(this)&&L||g.Sm(this)&&L||q&&L&&this.controlsType==="1"&&!this.L&&(at(this)||g.BP(this)||g.QT(this));this.CE=!!window.document.pictureInPictureEnabled||f$();q=V?!!V.supportsAutoplayOverride:Cp(!1,m.autoplayoverride);this.hn=!(this.L&&!g.sY(this))&&!g.B7("nintendo wiiu")||q;this.lc=(V?!!V.enableMutedAutoplay:Cp(!1,m.mutedautoplay))&&!1;q=(at(this)||F9(this))&&this.playerStyle==="blazer";this.Ak= V?!!V.disableFullscreen:!Cp(!0,m.fs);L=g.o$(g.vP(this))&&g.sY(this);this.nA=!this.Ak&&(q||g.WZ())&&!L;this.E0=this.Y("html5_picture_in_picture_logging_onresize");var M;this.oQ=(M=g.m9(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?M:.33;this.Sd=this.Y("html5_picture_in_picture_blocking_onresize");this.z9=this.Y("html5_picture_in_picture_blocking_ontimeupdate");this.nV=this.Y("html5_picture_in_picture_blocking_document_fullscreen");this.T9=this.Y("html5_picture_in_picture_blocking_standard_api"); M=lB()&&kN(58)&&!jU();q=GN||typeof MediaSource==="undefined";this.r4=this.Y("uniplayer_block_pip")&&(M||q)||this.Sd||this.z9||this.T9;M=g.sY(this)&&!this.nR;var f;V?V.disableRelatedVideos!==void 0&&(f=!V.disableRelatedVideos):f=m.rel;this.ma=M||Cp(!this.N,f);this.rF=Cp(!1,V?V.enableContentOwnerRelatedVideos:m.co_rel);this.Qt=jU()&&G7>0&&G7<=4.4?"_top":"_blank";this.IF=g.QT(this);this.JN=Cp(this.playerStyle==="blazer",V?V.enableCsiLogging:m.enablecsi);switch(this.playerStyle){case "blogger":f="bl"; break;case "discover-ads":f="dd";break;case "gmail":f="gm";break;case "gac":f="ga";break;case "ads-preview":f="ap";break;case "ads-fe":f="adfe";break;case "books":f="gb";break;case "docs":case "flix":f="gd";break;case "duo":f="gu";break;case "google-live":f="gl";break;case "google-one":f="go";break;case "play":case "play-ads":f="gp";break;case "chat":f="hc";break;case "hangouts-meet":f="hm";break;case "photos-edu":case "picasaweb":f="pw";break;default:f="yt"}this.Zu=f;this.v6=M2("",V?V.authorizedUserIndex: m.authuser);this.UU=g.sY(this)&&(this.CP||!itp()||this.Mf);var x;V?V.disableWatchLater!==void 0&&(x=!V.disableWatchLater):x=m.showwatchlater;this.Id=((f=!this.UU)||!!this.v6&&f)&&Cp(!this.Ae,this.V?x:void 0);this.Y5=V?V.isMobileDevice||!!V.disableKeyboardControls:Cp(!1,m.disablekb);this.loop=Cp(!1,m.loop);this.pageId=M2("",V?V.initialDelegatedSessionId:m.pageid);this.O0=Cp(!0,m.canplaylive);this.m_=this.experiments.w0("html5_lr_overwrite_default_audio_quality_setting")?1:2;this.Yq=Cp(!1,m.livemonitor); this.disableSharing=Cp(this.N,V?V.disableSharing:m.ss);(x=V&&this.Y("fill_video_container_size_override_from_wpcc")?V.videoContainerOverride:m.video_container_override)?(f=x.split("x"),f.length!==2?x=null:(x=Number(f[0]),f=Number(f[1]),x=isNaN(x)||isNaN(f)||x*f<=0?null:new g.LK(x,f))):x=null;this.Rg=x;this.mute=V?!!V.startMuted:Cp(!1,m.mute);this.storeUserVolume=!this.mute&&Cp(this.controlsType!=="0",V?V.storeUserVolume:m.store_user_volume);x=V?V.annotationsLoadPolicy:m.iv_load_policy;this.annotationsLoadPolicy= this.controlsType==="3"?3:Eb(void 0,x,PP);this.captionsLanguagePreference=V?V.captionsLanguagePreference||"":M2("",m.cc_lang_pref);x=Eb(2,V?V.captionsLanguageLoadPolicy:m.cc_load_policy,PP);this.controlsType==="3"&&x===2&&(x=3);this.LT=x;this.tq=V?V.hl||"en_US":M2("en_US",m.hl);this.region=V?V.contentRegion||"US":M2("US",m.cr);this.hostLanguage=V?V.hostLanguage||"en":M2("en",m.host_language);this.Q4=!this.CP&&Math.random()=0&&m0&&m.v8&&(h.sort(),g.cj(new g.no("Player client parameters changed after startup",h)));m.userAge=q2(m.userAge,V.user_age);m.Rn=M2(m.Rn,V.user_display_email);m.userDisplayImage=M2(m.userDisplayImage,V.user_display_image);g.Z5(m.userDisplayImage)||(m.userDisplayImage= "");m.userDisplayName=M2(m.userDisplayName,V.user_display_name);m.on=M2(m.on,V.user_gender);m.csiPageType=M2(m.csiPageType,V.csi_page_type);m.csiServiceName=M2(m.csiServiceName,V.csi_service_name);m.JN=Cp(m.JN,V.enablecsi);m.pageId=M2(m.pageId,V.pageid);if(O=V.enabled_engage_types)m.enabledEngageTypes=new Set(O.split(","));V.living_room_session_po_token&&(m.WW=V.living_room_session_po_token.toString())}; wK=function(m,V){return!m.N&&lB()&&kN(55)&&m.controlsType==="3"&&!V}; g.yl=function(m){m=mS(m.VW);return m==="www.youtube-nocookie.com"?"www.youtube.com":m}; jC=function(m,V,O){return m.protocol+"://i1.ytimg.com/vi/"+V+"/"+(O||"hqdefault.jpg")}; LI=function(m){return at(m)&&!g.l0(m)}; g.pO=function(m){return m.Y("html5_local_playsinline")?Ob&&!g.VS(602)&&!("playsInline"in C$()):Ob&&!m.gz||g.B7("nintendo wiiu")?!0:!1}; KO=function(m){return m.Z.c}; g.g2=function(m){return/^TVHTML5/.test(KO(m))}; JW=function(m){return KO(m)==="TVHTML5"}; u7o=function(m){return KO(m)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; GP5=function(m){return m.Z.cmodel==="CHROMECAST ULTRA/STEAK"||m.Z.cmodel==="CHROMECAST/STEAK"}; g.CI=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; var f10=function(m,V,O,h,w,y){return g7[J[4]](this,27,m,V,O,h,w,y)}; o2=function(m){return/web/i.test(KO(m))}; g.Eh=function(m){return KO(m).toUpperCase()==="WEB"}; Oh=function(m){return KO(m)==="WEB_KIDS"}; g.l0=function(m){return KO(m)==="WEB_UNPLUGGED"}; qs=function(m){return KO(m)==="TVHTML5_UNPLUGGED"}; g.R2=function(m){return g.l0(m)||KO(m)==="TV_UNPLUGGED_CAST"||qs(m)}; g.Sm=function(m){return KO(m)==="WEB_REMIX"}; g.Ms=function(m){return KO(m)==="WEB_MUSIC_INTEGRATIONS"}; g.fI=function(m){return KO(m)==="WEB_EMBEDDED_PLAYER"}; g.RV=function(m){return(m.deviceIsAudioOnly||!g.q3||GN||m.controlsType==="3"?!1:g.yJ?m.T&&g.VS(51):!0)||(m.deviceIsAudioOnly||!g.ot||GN||m.controlsType==="3"?!1:g.yJ?m.T&&g.VS(48):g.VS(38))||(m.deviceIsAudioOnly||!g.z7||GN||m.controlsType==="3"?!1:g.yJ?m.T&&g.VS(37):g.VS(27))||!m.deviceIsAudioOnly&&g.xC&&!lAo()&&g.VS(11)||!m.deviceIsAudioOnly&&g.AJ&&g.VS("604.4")}; QTa=function(m){if(g.BP(m)&&i0)return!1;if(g.ot){if(!g.VS(47)||!g.VS(52)&&g.VS(51))return!1}else if(g.AJ)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; PdX=function(m,V){return m.enabledEngageTypes.has(V.toString())||v_1.includes(V)}; at=function(m){return m.mS==="detailpage"}; g.BP=function(m){return m.mS==="embedded"}; oV=function(m){return m.mS==="leanback"}; F9=function(m){return m.mS==="adunit"||m.playerStyle==="gvn"}; g.QT=function(m){return m.mS==="profilepage"}; g.sY=function(m){return m.T&&g.BP(m)&&!F9(m)&&!m.N}; gK=function(m){if(!m.userDisplayImage)return"";var V=m.userDisplayImage.split("/");if(V.length===5)return m=V[V.length-1].split("="),m[1]="s20-c",V[V.length-1]=m.join("="),V.join("/");if(V.length===8)return V.splice(7,0,"s20-c"),V.join("/");if(V.length===9)return V[7]+="-s20-c",V.join("/");g.cj(new g.no("Profile image not a FIFE URL.",m.userDisplayImage));return m.userDisplayImage}; g.AW=function(m){var V=g.yl(m);mMI.includes(V)&&(V="www.youtube.com");return m.protocol+"://"+V}; g.Uh=function(m,V){V=V===void 0?"":V;if(m.jd){var O=new Ut,h,w=m.jd();w.signedOut?h="":w.token?h=w.token:w.pendingResult.then(function(y){w.signedOut?O.resolve(""):O.resolve(y.token)},function(y){g.cj(new g.no("b189348328_oauth_callback_failed",{error:y})); O.resolve(V)}); return h!==void 0?e6(h):new S6(O)}return e6(V)}; dK=function(m,V){V=V===void 0?"":V;return m.Ui?PO(!0):wC(hr(PO(g.Uh(m,V)),function(O){return PO(!!O)}),function(){return PO(!1)})}; Vap=function(m){var V;return!((V=m.webPlayerContextConfig)==null||!V.enableSelfProfilingLogging)}; O71=function(m,V){m.BB=V;var O,h;(O=m.nP)!=null&&(h=O.Z)!=null&&(h.Z=new Sd(V,h.L,h.D),g.a(h,h.Z));V.Z?m.TD.push("asmjs"):m.TD.push("wasm")}; mS=function(m){var V=g.HG(m);return(m=Number(g.XA(m)[4]||null)||null)?V+":"+m:V}; tW=function(m,V){V=V===void 0?!1:V;var O=N3[m],h=hVC[O],w=wr0[m];if(!w||!h)return null;V=new rk(V?w.height:w.width,V?w.width:w.height,w.fps);h=Ft(h,V,O);return new b6(m,h,{video:V,Rr:w.bitrate/8})}; j1I=function(m){var V=hVC[N3[m]],O=yOX[m];return O&&V?new b6(m,V,{audio:new oc(O.audioSampleRate,O.numChannels)}):null}; KI=function(m){this.Z=m}; WB=function(m,V,O,h){if(O)return Iv();O={};var w=C$();V=g.D(V);for(var y=V.next();!y.done;y=V.next())if(y=y.value,m.canPlayType(w,y.getInfo().mimeType)||h){var L=y.Z.video.quality;if(!O[L]||O[L].getInfo().QV())O[L]=y}m=[];O.auto&&m.push(O.auto);h=g.D(cg);for(w=h.next();!w.done;w=h.next())(w=O[w.value])&&m.push(w);return m.length?e6(m):Iv()}; LKG=function(m){this.itag=m.itag;this.url=m.url;this.codecs=m.codecs;this.width=m.width;this.height=m.height;this.fps=m.fps;this.bitrate=m.bitrate;var V;this.L=((V=m.audioItag)==null?void 0:V.split(","))||[];this.D1=m.D1;this.He=m.He||"";this.fP=m.fP;this.audioChannels=m.audioChannels;this.Z=""}; JO3=function(m,V,O,h){V=V===void 0?!1:V;O=O===void 0?!0:O;h=h===void 0?{}:h;var w={};m=g.D(m);for(var y=m.next();!y.done;y=m.next()){y=y.value;if(V&&MediaSource&&MediaSource.isTypeSupported){var L=y.type;y.audio_channels&&(L=L+"; channels="+y.audio_channels);if(!MediaSource.isTypeSupported(L)){h[y.itag]="tpus";continue}}if(O||!y.drm_families||y.eotf!=="smpte2084"&&y.eotf!=="arib-std-b67"){L=void 0;var C={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},E=y.type.match(/codecs="([^"]*)"/); E=E?E[1]:"";y.audio_track_id&&(L=new g.I_(y.name,y.audio_track_id,!!y.is_default));var q=y.eotf;y=new LKG({itag:y.itag,url:y.url,codecs:E,width:Number(y.width),height:Number(y.height),fps:Number(y.fps),bitrate:Number(y.bitrate),audioItag:y.audio_itag,D1:q?C[q]:void 0,He:y.drm_families,fP:L,audioChannels:Number(y.audio_channels)});w[y.itag]=w[y.itag]||[];w[y.itag].push(y)}else h[y.itag]="enchdr"}return w}; Cmm=function(m,V,O,h,w){this.D=m;this.L=V;this.K=O;this.cpn=h;this.N=w;this.T=0;this.Z=""}; EnU=function(m,V){m.D.some(function(O){var h;return((h=O.fP)==null?void 0:h.getId())===V}); m.Z=V}; XG=function(m,V,O){m.cpn&&(V=g.N_(V,{cpn:m.cpn}));O&&(V=g.N_(V,{paired:O}));return V}; qWG=function(m,V){m=m.itag.toString();V!==null&&(m+=V.itag.toString());return m}; Ma3=function(m){for(var V=[],O=[],h=g.D(m.L),w=h.next();!w.done;w=h.next())w=w.value,w.bitrate<=m.T?V.push(w):O.push(w);V.sort(function(y,L){return L.bitrate-y.bitrate}); O.sort(function(y,L){return y.bitrate-L.bitrate}); m.L=V.concat(O)}; HB=function(m,V,O){this.Z=m;this.L=V;this.expiration=O;this.Dj=null}; fq3=function(m,V){if(!(GN||mB()||v7()))return null;m=JO3(V,m.Y("html5_filter_fmp4_in_hls"));if(!m)return null;V=[];for(var O={},h=g.D(Object.keys(m)),w=h.next();!w.done;w=h.next()){w=g.D(m[w.value]);for(var y=w.next();!y.done;y=w.next()){var L=y.value;L.fP&&(y=L.fP.getId(),O[y]||(L=new g.I6(y,L.fP),O[y]=L,V.push(L)))}}return V.length>0?V:null}; AO5=function(m,V,O,h,w,y,L){if(!(GN||mB()||v7()))return Iv();var C={},E=xMG(O),q=JO3(O,m.Y("html5_filter_fmp4_in_hls"),m.K.N,C);if(!q)return L({noplst:1}),Iv();RV0(q);O={};var M=(O.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",O),f;O=[];var x=[],R=[],A=null,K="";h=h&&h.match(/hls_timedtext_playlist/)?new LKG({itag:"0",url:h,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,fP:new g.I_("English","en",!1)}):null;for(var X=g.D(Object.keys(q)),c=X.next();!c.done;c=X.next())if(c=c.value,!m.Y("html5_disable_drm_hfr_1080")|| c!=="383"&&c!=="373"){c=g.D(q[c]);for(var r=c.next();!r.done;r=c.next())if(r=r.value,r.width){for(var N=g.D(r.L),n=N.next();!n.done;n=N.next())if(n=n.value,q[n]){r.Z=n;break}r.Z||(r.Z=on7(q,r));if(N=q[r.Z])if(O.push(r),r.He==="fairplay"&&(f=M),n="",r.D1==="PQ"?n="smpte2084":r.D1==="HLG"&&(n="arib-std-b67"),n&&(K=n),R.push(gnX(N,[r],h,y,r.itag,r.width,r.height,r.fps,E,void 0,void 0,f,n)),!A||r.width*r.height*r.fps>A.width*A.height*A.fps)A=r}else x.push(r)}else C[c]="disdrmhfr";R.reduce(function(F, z){return z.getInfo().isEncrypted()&&F},!0)&&(f=M); w=Math.max(w,0);M=A||{};q=M.fps===void 0?0:M.fps;A=M.width===void 0?0:M.width;M=M.height===void 0?0:M.height;X=m.Y("html5_native_audio_track_switching");R.push(gnX(x,O,h,y,"93",A,M,q,E,"auto",w,f,K,X));Object.entries(C).length&&L(C);return WB(m.K,R,wK(m,V),!1)}; gnX=function(m,V,O,h,w,y,L,C,E,q,M,f,x,R){for(var A=0,K="",X=g.D(m),c=X.next();!c.done;c=X.next())c=c.value,K||(K=c.itag),c.audioChannels&&c.audioChannels>A&&(A=c.audioChannels,K=c.itag);w=new b6(w,"application/x-mpegURL",{audio:new oc(0,A),video:new rk(y,L,C,null,void 0,q,void 0,void 0,x),He:f,fL:K});m=new Cmm(m,V,O?[O]:[],h,!!R);m.T=M?M:1369843;return new HB(w,m,E)}; xMG=function(m){m=g.D(m);for(var V=m.next();!V.done;V=m.next())if(V=V.value,V.url&&(V=V.url.split("expire/"),!(V.length<=1)))return+V[1].split("/")[0];return NaN}; on7=function(m,V){for(var O=g.D(Object.keys(m)),h=O.next();!h.done;h=O.next()){h=h.value;var w=m[h][0];if(!w.width&&w.He===V.He&&!w.audioChannels)return h}return""}; RV0=function(m){for(var V=new Set,O=g.D(Object.values(m)),h=O.next();!h.done;h=O.next())h=h.value,h.length&&(h=h[0],h.height&&h.codecs.startsWith("vp09")&&V.add(h.height));O=[];if(V.size){h=g.D(Object.keys(m));for(var w=h.next();!w.done;w=h.next())if(w=w.value,m[w].length){var y=m[w][0];y.height&&V.has(y.height)&&!y.codecs.startsWith("vp09")&&O.push(w)}}V=g.D(O);for(O=V.next();!O.done;O=V.next())delete m[O.value]}; Tr=function(m,V){this.Z=m;this.L=V}; UM3=function(m,V,O,h){var w=[];O=g.D(O);for(var y=O.next();!y.done;y=O.next()){var L=y.value;if(L.url){y=new g.WX(L.url,!0);if(L.s){var C=y,E=L.sp,q=YU(2,decodeURIComponent(L.s));C[J[36]](E,encodeURIComponent(q))}C=g.D(Object.keys(h));for(E=C.next();!E.done;E=C.next())E=E.value,y.set(E,h[E]);L=l6(L.type,L.quality,L.itag,L.width,L.height);w.push(new Tr(L,y))}}return WB(m.K,w,wK(m,V),!1)}; $C=function(m,V){this.Z=m;this.L=V}; dMo=function(m,V,O){var h=[];O=g.D(O);for(var w=O.next();!w.done;w=O.next())if((w=w.value)&&w.url){var y=l6(w.type,"medium","0");h.push(new $C(y,w.url))}return WB(m.K,h,wK(m,V),!1)}; taC=function(m,V){var O=[],h=l6(V.type,"auto",V.itag);O.push(new $C(h,V.url));return WB(m.K,O,!1,!0)}; WK3=function(m){return m&&KKo[m]?KKo[m]:null}; XrC=function(m){switch(m){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.live_unauthorized_request":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return m;default:return"sabr.config"}}; H7$=function(m){if(m=m.commonConfig)this.url=m.url,this.urlQueryOverride=m.urlQueryOverride,m.ustreamerConfig&&(this.cM=It(m.ustreamerConfig)||void 0)}; TRo=function(m,V){var O;if(V=V==null?void 0:(O=V.watchEndpointSupportedOnesieConfig)==null?void 0:O.html5PlaybackOnesieConfig)m.h1=new H7$(V)}; g.YC=function(m){m=m===void 0?{}:m;this.languageCode=m.languageCode||"";this.languageName=m.languageName||null;this.kind=m.kind||"";this.name=m.name===void 0?null:m.name;this.displayName=m.displayName||null;this.id=m.id||null;this.Z=m.is_servable||!1;this.isTranslateable=m.is_translateable||!1;this.url=m.url||null;this.vssId=m.vss_id||"";this.isDefault=m.is_default||!1;this.translationLanguage=m.translationLanguage||null;this.xtags=m.xtags||"";this.captionId=m.captionId||""}; g.rK=function(m){var V={languageCode:m.languageCode,languageName:m.languageName,displayName:g.kC(m),kind:m.kind,name:m.name,id:m.id,is_servable:m.Z,is_default:m.isDefault,is_translateable:m.isTranslateable,vss_id:m.vssId};m.xtags&&(V.xtags=m.xtags);m.captionId&&(V.captionId=m.captionId);m.translationLanguage&&(V.translationLanguage=m.translationLanguage);return V}; g.cB=function(m){return m.translationLanguage?m.translationLanguage.languageCode:m.languageCode}; g.$Ml=function(m){var V=m.vssId;m.translationLanguage&&V&&(V="t"+V+"."+g.cB(m));return V}; g.kC=function(m){var V=[];if(m.displayName)V.push(m.displayName);else{var O=m.languageName||"";V.push(O);m.kind==="asr"&&O.indexOf("(")===-1&&V.push(" (Legendas autom\u00e1ticas)");m.name&&V.push(" - "+m.name)}m.translationLanguage&&V.push(" >> "+m.translationLanguage.languageName);return V.join("")}; cO3=function(m,V,O,h){m||(m=V&&YWC.hasOwnProperty(V)&&kdG.hasOwnProperty(V)?kdG[V]+"_"+YWC[V]:void 0);V=m;if(!V)return null;m=V.match(rOa);if(!m||m.length!==5)return null;if(m=V.match(rOa)){var w=Number(m[3]),y=[7,8,10,5,6];m=!(Number(m[1])===1&&w===8)&&y.indexOf(w)>=0}else m=!1;return O||h||m?V:null}; DT=function(m,V){for(var O={},h=g.D(Object.keys(DM7)),w=h.next();!w.done;w=h.next()){w=w.value;var y=V?V+w:w;y=m[y+"_webp"]||m[y];g.Z5(y)&&(O[DM7[w]]=y)}return O}; Ns=function(m){var V={};if(!m||!m.thumbnails)return V;m=m.thumbnails.filter(function(C){return!!C.url}); m.sort(function(C,E){return C.width-E.width||C.height-E.height}); for(var O=g.D(Object.keys(NR1)),h=O.next();!h.done;h=O.next()){var w=Number(h.value);h=NR1[w];for(var y=g.D(m),L=y.next();!L.done;L=y.next())if(L=L.value,L.width>=w){w=b7m(L.url);g.Z5(w)&&(V[h]=w);break}}(m=m.pop())&&m.width>=1280&&(m=b7m(m.url),g.Z5(m)&&(V["maxresdefault.jpg"]=m));return V}; b7m=function(m){return m.startsWith("//")?"https:"+m:m}; b7=function(m){return m&&m.baseUrl||""}; nI=function(m){m=g.Ex(m);for(var V=g.D(Object.keys(m)),O=V.next();!O.done;O=V.next()){O=O.value;var h=m[O];m[O]=Array.isArray(h)?h[0]:h}return m}; SWa=function(m,V){V=g.D(V);for(var O=V.next();!O.done;O=V.next())if(O=O.value.playerAnnotationsUrlsRenderer){O.adsOnly&&(m.Yv=!0);if(V=O.loadPolicy)m.annotationsLoadPolicy=nn1[V];if(V=O.invideoUrl)m.xL=sP(V);m.Pb=!0;break}}; Iq$=function(m,V){m.botguardData=V.playerAttestationRenderer.botguardData;V=V.playerAttestationRenderer.challenge;V!=null&&(m.AO=V)}; u17=function(m,V){m.captionTracks=[];if(V.captionTracks)for(var O=g.D(V.captionTracks),h=O.next();!h.done;h=O.next()){h=h.value;var w=eVG(h.baseUrl);if(!w)return;w={is_translateable:!!h.isTranslatable,languageCode:h.languageCode,languageName:h.name&&g.fy(h.name),url:w,vss_id:h.vssId,kind:h.kind};w.name=h.trackName;w.displayName=h.name&&g.fy(h.name);m.captionTracks.push(new g.YC(w))}m.eL=V.audioTracks||[];m.SE=V.defaultAudioTrackIndex||0;m.Ws=[];if(V.translationLanguages)for(O=g.D(V.translationLanguages), h=O.next();!h.done;h=O.next()){w=h.value;h={};h.languageCode=w.languageCode;h.languageName=g.fy(w.languageName);if(w.translationSourceTrackIndices){h.translationSourceTrackIndices=[];for(var y=g.D(w.translationSourceTrackIndices),L=y.next();!L.done;L=y.next())h.translationSourceTrackIndices.push(L.value)}if(w.excludeAudioTrackIndices)for(h.excludeAudioTrackIndices=[],w=g.D(w.excludeAudioTrackIndices),y=w.next();!y.done;y=w.next())h.excludeAudioTrackIndices.push(y.value);m.Ws.push(h)}m.XN=[];if(V.defaultTranslationSourceTrackIndices)for(O= g.D(V.defaultTranslationSourceTrackIndices),h=O.next();!h.done;h=O.next())m.XN.push(h.value);m.SA=!!V.contribute&&!!V.contribute.captionsMetadataRenderer}; Z7G=function(m,V,O){var h=V.errorScreen;if(!(h&&(h.playerLegacyDesktopYpcOfferRenderer||h.playerLegacyDesktopYpcTrailerRenderer||h.ypcTrailerRenderer)||O&&O.isUpcoming||["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(V.status))){m.errorCode=WK3(V.errorCode)||"auth";if(O=h&&h.playerErrorMessageRenderer){m.playerErrorMessageRenderer=O;var w=O.reason;w&&(m.errorReason=g.fy(w));if(O=O.subreason)m.dQ=g.fy(O),m.x6=O}else m.errorReason=V.reason||null;O=V.status;if(O==="LOGIN_REQUIRED")m.errorDetail= "1";else if(O==="CONTENT_CHECK_REQUIRED")m.errorDetail="2";else if(O==="AGE_CHECK_REQUIRED")V=(V=V.errorScreen)&&V.playerKavRenderer,m.errorDetail=V&&V.kavUrl?"4":"3";else{var y,L,C;h=(C=h==null?void 0:(y=h.playerErrorMessageRenderer)==null?void 0:(L=y.proceedButton)==null?void 0:L.buttonRenderer)==null?void 0:C.command;if(V.isBlockedInRestrictedMode)m.errorDetail="5";else{var E;((E=g.d(h,zVm))==null?void 0:E.signal)==="RELOAD_PAGE"?m.errorDetail="7":m.errorDetail="0"}}}}; s17=function(m,V){m.dl=!0;var O=V.heartbeatToken;O&&(m.drmSessionId=V.drmSessionId||"",m.heartbeatToken=O,m.NA=Number(V.intervalMilliseconds),m.vJ=Number(V.maxRetries),m.GV=!!V.softFailOnError,m.o1=!!V.useInnertubeHeartbeatsForDrm);m.heartbeatServerData=V.heartbeatServerData;var h;m.fk=!((h=V.heartbeatAttestationConfig)==null||!h.requiresAttestation)}; i7C=function(m,V){V=g.D(V);for(var O=V.next();!O.done;O=V.next()){O=O.value;var h=O.interstitials.map(function(L){var C=g.d(L,FKC);if(C)return{is_yto_interstitial:!0,raw_player_response:C};if(L=g.d(L,aqU))return Object.assign({is_yto_interstitial:!0},Tl(L))}); h=g.D(h);for(var w=h.next();!w.done;w=h.next())switch(w=w.value,O.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":m.interstitials=m.interstitials.concat({time:0,playerVars:w,Af:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":m.interstitials=m.interstitials.concat({time:0x7ffffffffffff,playerVars:w,Af:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var y=Number(O.podConfig.timeToInsertAtMillis);m.interstitials=m.interstitials.concat({time:y,playerVars:w, Af:y===0?5:7})}}}; GdX=function(m,V){if(V=V.find(function(O){return!(!O||!O.tooltipRenderer)}))m.tooltipRenderer=V.tooltipRenderer}; prG=function(m,V){V.subscribeCommand&&(m.subscribeCommand=V.subscribeCommand);V.unsubscribeCommand&&(m.unsubscribeCommand=V.unsubscribeCommand);V.addToWatchLaterCommand&&(m.addToWatchLaterCommand=V.addToWatchLaterCommand);V.removeFromWatchLaterCommand&&(m.removeFromWatchLaterCommand=V.removeFromWatchLaterCommand);V.getSharePanelCommand&&(m.getSharePanelCommand=V.getSharePanelCommand)}; BRm=function(m,V){V!=null?(m.Jf=V,m.Sb=!0):(m.Jf="",m.Sb=!1)}; vn5=function(m,V){if(V=V.playerControlsOverlayRenderer)BRm(m,V.controlBgHtml),V.mutedAutoplay?(V=g.d(V.mutedAutoplay,lqo))&&V.endScreen&&(V=g.d(V.endScreen,Q13))&&V.text&&(m.wr=g.fy(V.text)):m.mutedAutoplay=!1}; PmG=function(m,V){var O=V.backgroundability;O&&O.backgroundabilityRenderer.backgroundable&&(m.backgroundable=!0);var h,w;if((h=V.offlineability)==null?0:(w=h.offlineabilityRenderer)==null?0:w.offlineable)m.offlineable=!0;if(O=V.contextParams)m.contextParams=O;(O=V.pictureInPicture)&&O.pictureInPictureRenderer.playableInPip&&(m.pipable=!0);V.playableInEmbed&&(m.allowEmbed=!0);if(O=V.ypcClickwrap)V=O.playerLegacyDesktopYpcClickwrapRenderer,O=O.ypcRentalActivationRenderer,V?(m.yI=V.durationMessage|| "",m.s0=!0):O&&(V=O.durationMessage,m.yI=V?g.fy(V):"",m.s0=!0)}; VWp=function(m,V,O){var h=b7(V.googleRemarketingUrl);h&&(m.googleRemarketingUrl=h);if(h=b7(V.youtubeRemarketingUrl))m.youtubeRemarketingUrl=h;if(h=V.heartbeatLoggingToken)m.heartbeatLoggingToken=h;h={};var w=b7(V.ptrackingUrl);if(w){w=nI(w);var y=w.oid;y&&(m.BO=y);if(y=w.pltype)m.xr=y;if(y=w.ptchn)m.Cz=y;if(y=w.ptk)m.Ax=encodeURIComponent(y);if(w=w.m)m.oA=w}if(w=b7(V.qoeUrl)){w=g.Ex(w);y=g.D(Object.keys(w));for(var L=y.next();!L.done;L=y.next()){L=L.value;var C=w[L];w[L]=Array.isArray(C)?C.join(","): C}m.p9=w;if(y=w.cat)m.Y("html5_enable_qoe_cat_list")?m.Jc=m.Jc.concat(y.split(",")):m.TD=y;if(y=w.live)m.SO=y;if(w=w.drm_product)m.drmProduct=w}if(w=b7(V.videostatsPlaybackUrl)){w=nI(w);if(y=w.adformat)if(O.adformat=y,L=m.j(),L=cO3(y,m.uF,L.T,L.V))m.adFormat=L;if(L=w.aqi)O.ad_query_id=L;if(O=w.autoplay)m.SJ=O=="1",m.Ye=O=="1";if(O=w.autonav)m.isAutonav=O=="1";if(O=w.delay)m.oz=BM(O);if(O=w.ei)m.eventId=O;if(O=It(w.adcontext))try{var E=mR7(O);E&&(m.HR=E)}catch(q){g.cj(Error("Malformed adContext"))}if(O|| y)m.SJ=!0;if(E=w.feature)m.je=E;if(E=w.list)m.playlistId=E;if(E=w.of)m.iI=E;if(E=w.osid)m.osid=E;if(E=w.referrer)m.referrer=E;if(E=w.sdetail)m.rR=E;if(E=w.sourceid)m.ISN=E;if(E=w.ssrt)m.M9=E=="1";if(E=w.subscribed)m.subscribed=E=="1";if(E=w.uga)m.userGenderAge=E;if(E=w.upt)m.w1=E;if(E=w.vm)m.videoMetadata=E;h.playback=w}if(E=b7(V.videostatsWatchtimeUrl)){E=nI(E);if(O=E.ald)m.iL=O;h.watchtime=E}if(E=b7(V.atrUrl))E=nI(E),h.atr=E;if(E=b7(V.engageUrl))E=nI(E),h.engage=E;m.qv=h;V.promotedPlaybackTracking&& (V=V.promotedPlaybackTracking,V.startUrls&&(m.YJ=V.startUrls),V.firstQuartileUrls&&(m.J9=V.firstQuartileUrls),V.secondQuartileUrls&&(m.eV=V.secondQuartileUrls),V.thirdQuartileUrls&&(m.XR=V.thirdQuartileUrls),V.completeUrls&&(m.NB=V.completeUrls),V.engagedViewUrls&&(V.engagedViewUrls.length>1&&g.cj(new g.no("There are more than one engaged_view_urls.")),m.kJ=V.engagedViewUrls[0]))}; OmU=function(m,V,O){V=g.D(V);for(var h=V.next();!h.done;h=V.next())if(h=h.value)if(h=h.playerLegacyDesktopWatchAdsRenderer)if(h=h.playerAdParams){h.autoplay=="1"&&(m.SJ=!0,m.Ye=!0);m.U6=h.encodedAdSafetyReason||null;h.showContentThumbnail!==void 0&&(m.Ck=!!h.showContentThumbnail);O.enabled_engage_types=h.enabledEngageTypes;break}}; hB0=function(m,V){var O=V.manifestlessWindowedLiveConfig;if(O){var h=Number(O.minDvrSequence),w=Number(O.maxDvrSequence),y=Number(O.minDvrMediaTimeMs),L=Number(O.maxDvrMediaTimeMs);O=Number(O.startWalltimeMs);h&&(m.De=h);y&&(m.Pt=y/1E3,m.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&SC(m)&&(m.zF=y/1E3));w&&(m.zQ=w);L&&(m.A_=L/1E3,m.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&SC(m)&&(m.Px=L/1E3));O&&(m.Pl=O/1E3);(h||y)&&(w||L)&&(m.wd=!0,m.isLivePlayback=!0,m.allowLiveDvr=!0, m.El=!1)}if(h=V.daiConfig){if(h.enableDai){m.Qi=!0;if(w=h.enableServerStitchedDai)m.enableServerStitchedDai=w;if(w=h.enablePreroll)m.k6=w}var C;if(h.daiType==="DAI_TYPE_SS_DISABLED"||((C=h.debugInfo)==null?0:C.isDisabledUnpluggedChannel))m.b_=!0;h.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(m.Xn=!0);h.allowUstreamerRequestAdconfig&&(m.X7=!0);h.sendSsdaiMissingAdBreakReasons&&(m.u3H=!0)}if(C=V.audioConfig){h=C.loudnessDb;h!=null&&(m.B9=h);h=C.trackAbsoluteLoudnessLkfs;h!=null&&(m.WG=h);h=C.loudnessTargetLkfs; h!=null&&(m.loudnessTargetLkfs=h);C.audioMuted&&(m.ZG=!0);C.muteOnStart&&(m.PR=!0);if(h=C.loudnessNormalizationConfig)h.applyStatefulNormalization&&(m.applyStatefulNormalization=!0),h.preserveStatefulLoudnessTarget&&(m.preserveStatefulLoudnessTarget=!0),w=h.minimumLoudnessTargetLkfs,w!=null&&(m.minimumLoudnessTargetLkfs=w),h=h.maxStatefulTimeThresholdSec,h!=null&&(m.maxStatefulTimeThresholdSec=h);C.playAudioOnly&&(m.N$=!0)}if(h=V.playbackEndConfig)C=h.endSeconds,h=h.limitedPlaybackDurationInSeconds, m.mutedAutoplay&&(C&&(m.endSeconds=C),h&&(m.limitedPlaybackDurationInSeconds=h));if(C=V.fairPlayConfig){if(h=C.certificate)m.hd=It(h);h=Number(C.keyRotationPeriodMs);h>0&&(m.BZ=h);C=Number(C.keyPrefetchMarginMs);C>0&&(m.C1=C)}if(C=V.playbackStartConfig){m.T_=Number(C.startSeconds);w=C.liveUtcStartSeconds;h=!!m.liveUtcStartSeconds&&m.liveUtcStartSeconds>0;w&&!h&&(m.liveUtcStartSeconds=Number(w));if(w=C.startPosition)if((y=w.utcTimeMillis)&&!h&&(m.liveUtcStartSeconds=Number(y)*.001),h=w.streamTimeMillis)m.e1= Number(h)*.001;m.progressBarStartPosition=C.progressBarStartPosition;m.progressBarEndPosition=C.progressBarEndPosition}else if(C=V.skippableSegmentsConfig){if(h=C.introSkipDurationMs)m.Ux=Number(h)/1E3;if(C=C.outroSkipDurationMs)m.IB=Number(C)/1E3}if(h=V.skippableIntroConfig)C=Number(h.startMs),h=Number(h.endMs),isNaN(C)||isNaN(h)||(m.wb=C,m.mP=h);if(C=V.streamSelectionConfig)m.NT=Number(C.maxBitrate);if(C=V.vrConfig)m.Fe=C.partialSpherical=="1";if(C=V.webDrmConfig){C.skipWidevine&&(m.Lx=!0);if(h= C.widevineServiceCert)m.z5=It(h);C.useCobaltWidevine&&(m.useCobaltWidevine=!0);C.startWithNoQualityConstraint&&(m.qk=!0)}if(C=V.mediaCommonConfig){if(h=C.dynamicReadaheadConfig){m.maxReadAheadMediaTimeMs=h.maxReadAheadMediaTimeMs||NaN;m.minReadAheadMediaTimeMs=h.minReadAheadMediaTimeMs||NaN;m.readAheadGrowthRateMs=h.readAheadGrowthRateMs||NaN;var E;if(h=C==null?void 0:(E=C.mediaUstreamerRequestConfig)==null?void 0:E.videoPlaybackUstreamerConfig)m.F3=It(h);if((E=C==null?void 0:C.sabrContextUpdates)&& E.length>0)for(E=g.D(E),h=E.next();!h.done;h=E.next())h=h.value,h.type&&h.value&&(w={type:h.type,scope:h.scope,value:It(h.value)||void 0,sendByDefault:h.sendByDefault},m.sabrContextUpdates.set(h.type,w))}if(E=C.serverPlaybackStartConfig)m.serverPlaybackStartConfig=E;C.useServerDrivenAbr&&(m.K5=!0);if(E=C.requestPipeliningConfig)m.requestPipeliningConfig=E}if(E=V.inlinePlaybackConfig)m.pN=!!E.showAudioControls;if(E=V.embeddedPlayerConfig){m.embeddedPlayerConfig=E;if(C=E.embeddedPlayerMode)h=m.j(), h.iH=C,h.D=C==="EMBEDDED_PLAYER_MODE_PFL";if(E=E.permissions)m.allowImaMonetization=!!E.allowImaMonetization}if(V=V.webPlayerConfig)V.gatewayExperimentGroup&&(m.gatewayExperimentGroup=V.gatewayExperimentGroup),V.isProximaEligible&&(m.isProximaLatencyEligible=!0)}; wqp=function(m,V,O){var h=V.formats;if(h){for(var w=[],y=g.D(h),L=y.next();!L.done;L=y.next())L=L.value,w.push(L.itag+"/"+L.width+"x"+L.height);m.XT=w.join(",");w=[];h=g.D(h);for(y=h.next();!y.done;y=h.next()){L=y.value;y={itag:L.itag,type:L.mimeType,quality:L.quality};var C=L.url;C&&(y.url=C);L=YU(32,L);C=L.Y7;var E=L.eM,q=L.s;L.Zs&&(y.url=C,y.sp=E,y.s=q);w.push(g.DV(y))}m.M$=w.join(",")}if(y=V.hlsFormats){w={};if(O&&(O=O.audioPairingConfig)&&O.pairs)for(O=g.D(O.pairs),h=O.next();!h.done;h=O.next())h= h.value,L=h.videoItag,w[L]||(w[L]=[]),w[L].push(h.audioItag);O={};h=g.D(y);for(L=h.next();!L.done;L=h.next())L=L.value,O[L.itag]=L.bitrate;h=[];y=g.D(y);for(L=y.next();!L.done;L=y.next()){L=L.value;C={itag:L.itag,type:L.mimeType,url:L.url,bitrate:L.bitrate,width:L.width,height:L.height,fps:L.fps};if(E=L.audioTrack)if(q=E.displayName)C.name=q,C.audio_track_id=E.id,E.audioIsDefault&&(C.is_default="1");if(L.drmFamilies){E=[];q=g.D(L.drmFamilies);for(var M=q.next();!M.done;M=q.next())E.push(a_[M.value]); C.drm_families=E.join(",")}(E=w[L.itag])&&E.length&&(C.audio_itag=E.join(","),(E=O[E[0]])&&(C.bitrate+=E));(E=x3l(L))&&(C.eotf=E);L.audioChannels&&(C.audio_channels=L.audioChannels);h.push(g.DV(C))}m.hlsFormats=h.join(",")}if((O=V.licenseInfos)&&O.length>0){w={};O=g.D(O);for(h=O.next();!h.done;h=O.next())y=h.value,h=y.drmFamily,y=y.url,h&&y&&(w[a_[h]]=y);m.He=w}if(w=V.drmParams)m.drmParams=w;if(w=V.dashManifestUrl)m.Ig=g.N_(w,{cpn:m.clientPlaybackNonce});if(w=V.hlsManifestUrl)m.hlsvp=w;if(w=V.probeUrl)m.probeUrl= sP(g.N_(w,{cpn:m.clientPlaybackNonce}));if(V=V.serverAbrStreamingUrl)m.Re=new g.WX(V,!0)}; jBI=function(m,V,O){var h=V.videoId;h&&(m.videoId=h,O.video_id||(O.video_id=h));if(h=V.title)m.title=h,O.title||(O.title=h);if(h=V.lengthSeconds)m.lengthSeconds=Number(h),O.length_seconds||(O.length_seconds=h);if(h=V.keywords)m.keywords=yB$(h);if(h=V.channelId)m.XU=h,O.ucid||(O.ucid=h);if(h=V.viewCount)m.rawViewCount=Number(h);if(h=V.author)m.author=h,O.author||(O.author=h);if(O=V.shortDescription)m.shortDescription=O;if(O=V.isCrawlable)m.isListed=O;if(O=V.musicVideoType)m.musicVideoType=O;O=V.isLive; O!=null&&(m.isLivePlayback=O);if(O||V.isUpcoming)m.isPremiere=!V.isLiveContent;if(O=V.thumbnail)m.Bj=Ns(O);if(O=V.isExternallyHostedPodcast)m.isExternallyHostedPodcast=O;(O=V.stationType)&&O!=="STATION_TYPE_UNKNOWN"&&(m.Ije=!0);V=V.viewerLivestreamJoinPosition;if(V==null?0:V.utcTimeMillis)m.AB=BM(V.utcTimeMillis)}; Cil=function(m,V){if(V.playerLegacyDesktopYpcTrailerRenderer){var O=V.playerLegacyDesktopYpcTrailerRenderer;m.Y4=O.trailerVideoId||"";var h=(h=V.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer)&&h.ypcTrailerRenderer}else if(V.playerLegacyDesktopYpcOfferRenderer)O=V.playerLegacyDesktopYpcOfferRenderer;else if(V.ypcTrailerRenderer){h=V.ypcTrailerRenderer;V=h.fullVideoMessage;m.qa=V?g.fy(V):"";var w,y;m.Y4=((w=g.d(h,LOG))==null?void 0:(y=w.videoDetails)==null?void 0:y.videoId)||""}O&&(m.EO=O.itemTitle|| "",O.itemUrl&&(m.DH=O.itemUrl),O.itemBuyUrl&&(m.mH=O.itemBuyUrl),m.LI=O.itemThumbnail||"",m.zr=O.offerHeadline||"",m.F5=O.offerDescription||"",m.T5=O.offerId||"",m.I2=O.offerButtonText||"",m.ea=O.offerButtonFormattedText||null,m.fH=O.overlayDurationMsec||NaN,m.qa=O.fullVideoMessage||"",m.Uv=!0);h&&((O=g.d(h,LOG))?m.gj={raw_player_response:O}:(O=g.d(h,JBo),m.gj=O?Tl(O):null),m.Uv=!0)}; qla=function(m,V,O,h){V.isLiveDefaultBroadcast&&(m.isLiveDefaultBroadcast=!0);V.isUpcoming&&(m.isUpcoming=!0);if(V.isPostLiveDvr){m.El=!0;if(h=V.latencyClass)m.latencyClass=EEX[h]||"UNKNOWN";V.isLowLatencyLiveStream&&(m.isLowLatencyLiveStream=!0)}else{var w=!1;m.Yq?(m.allowLiveDvr=$q()?!0:h8&&IV<5?!1:!0,m.isLivePlayback=!0):V.isLive?(h.livestream="1",m.allowLiveDvr=V.isLiveDvrEnabled?$q()?!0:h8&&IV<5?!1:!0:!1,m.partnerId=27,w=!0):V.isUpcoming&&(w=!0);if(V.isLive||m.Yq){V.isLowLatencyLiveStream&&(m.isLowLatencyLiveStream= !0);var y=V.latencyClass;y&&(m.latencyClass=EEX[y]||"UNKNOWN");if(V=V.liveChunkReadahead)m.liveChunkReadahead=V;if(V=O&&O.livePlayerConfig){V.hasSubfragmentedFmp4&&(m.hasSubfragmentedFmp4=!0);V.hasSubfragmentedWebm&&(m.jw=!0);V.defraggedFromSubfragments&&(m.defraggedFromSubfragments=!0);if(O=V.liveExperimentalContentId)m.liveExperimentalContentId=Number(O);V=V.isLiveHeadPlayable;m.Y("html5_live_head_playable")&&V!=null&&(m.isLiveHeadPlayable=V)}}w&&(m.isLivePlayback=!0,h.adformat&&h.adformat.split("_")[1]!== "8"||m.Sm.push("heartbeat"))}}; eC=function(m,V){this.type=m||"";this.id=V||""}; u7=function(m){return new eC(m.substring(0,2),m.substring(2))}; zr=function(m,V){this.IY=m;this.author="";this.ZY=null;this.playlistLength=0;this.Z=this.sessionData=null;this.Bj={};this.title="";if(V){this.author=V.author||V.playlist_author||"";this.title=V.playlist_title||"";if(m=V.session_data)this.sessionData=LJ(m,"&");var O;this.Z=((O=V.thumbnail_ids)==null?void 0:O.split(",")[0])||null;this.Bj=DT(V,"playlist_");this.videoId=V.video_id||void 0;if(O=V.list)switch(V.listType){case "user_uploads":this.playlistId=(new eC("UU","PLAYER_"+O)).toString();break;default:if(m= V.playlist_length)this.playlistLength=Number(m)||0;this.playlistId=u7(O).toString();if(V=V.video)this.videoId=(V[0]||null).video_id||void 0}else V.playlist&&(this.playlistLength=V.playlist.toString().split(",").length)}}; ZT=function(m,V){this.IY=m;this.Ta=this.author="";this.ZY=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Q3=this.lengthText="";this.sessionData=null;this.Bj={};this.title="";if(V){this.ariaLabel=V.aria_label||void 0;this.author=V.author||"";this.Ta=V.Ta||"";if(m=V.endscreen_autoplay_session_data)this.ZY=LJ(m,"&");this.E2=V.E2;this.isLivePlayback=V.live_playback==="1";this.isUpcoming=!!V.isUpcoming;if(m=V.length_seconds)this.lengthSeconds=typeof m==="string"?Number(m):m;this.lengthText= V.lengthText||"";this.Q3=V.Q3||"";this.publishedTimeText=V.publishedTimeText||void 0;if(m=V.session_data)this.sessionData=LJ(m,"&");this.shortViewCount=V.short_view_count_text||void 0;this.Bj=DT(V);this.title=V.title||"";this.videoId=V.docid||V.video_id||V.videoId||V.id||void 0;this.watchUrl=V.watchUrl||void 0}}; MW3=function(m){var V,O,h=(V=m.getWatchNextResponse())==null?void 0:(O=V.contents)==null?void 0:O.twoColumnWatchNextResults,w,y,L,C,E;m=(w=m.getWatchNextResponse())==null?void 0:(y=w.playerOverlays)==null?void 0:(L=y.playerOverlayRenderer)==null?void 0:(C=L.endScreen)==null?void 0:(E=C.watchNextEndScreenRenderer)==null?void 0:E.results;if(!m){var q,M;m=h==null?void 0:(q=h.endScreen)==null?void 0:(M=q.endScreen)==null?void 0:M.results}return m}; g.FG=function(m){var V,O,h;m=g.d((V=m.getWatchNextResponse())==null?void 0:(O=V.playerOverlays)==null?void 0:(h=O.playerOverlayRenderer)==null?void 0:h.decoratedPlayerBarRenderer,sh);return g.d(m==null?void 0:m.playerBar,fUl)}; xR0=function(m){this.Z=m.playback_progress_0s_url;this.D=m.playback_progress_2s_url;this.L=m.playback_progress_10s_url}; RBl=function(){if(aV===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(V){}a:{try{var m=!!self.localStorage}catch(V){m=!1}if(m&&(m=g.zO(g.lF()+"::yt-player"))){aV=new zh(m);break a}aV=void 0}}return aV}; g.i7=function(){var m=RBl();if(!m)return{};try{var V=m.get("yt-player-lv");return JSON.parse(V||"{}")}catch(O){return{}}}; g.oEI=function(m){var V=RBl();V&&(m=JSON.stringify(m),V.set("yt-player-lv",m))}; g.Gr=function(m){return g.i7()[m]||0}; g.pI=function(m,V){var O=g.i7();V!==O[m]&&(V!==0?O[m]=V:delete O[m],g.oEI(O))}; g.BB=function(m){return g.u(function(V){return V.return(g.FX(gE3(),m))})}; Ql=function(m,V,O,h,w,y,L,C){var E,q,M,f,x,R;return g.u(function(A){switch(A.Z){case 1:return E=g.Gr(m),E===4?A.return(4):g.I(A,g.md(),2);case 2:q=A.L;if(!q)throw g.d1("wiac");if(!C||L===void 0){A.Te(3);break}return g.I(A,ABl(C,L),4);case 4:L=A.L;case 3:return M=O.lastModified||"0",g.I(A,g.BB(q),5);case 5:return f=A.L,g.JG(A,6),l7++,g.I(A,g.cE(f,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",M8:!0},function(K){if(y!==void 0&&L!==void 0){var X=""+m+"|"+V.id+"|"+M+"|"+String(y).padStart(10, "0");X=g.Dt(K.objectStore("media"),L,X)}else X=g.K3.resolve(void 0);var c=URX(m,V.Z8()),r=URX(m,!V.Z8()),N={fmts:dR$(h),format:O||{}};c=g.Dt(K.objectStore("index"),N,c);var n=h.downloadedEndTime===-1;N=n?K.objectStore("index").get(r):g.K3.resolve(void 0);var F={fmts:"music",format:{}};K=n&&w&&!V.Z8()?g.Dt(K.objectStore("index"),F,r):g.K3.resolve(void 0);return g.K3.all([K,N,X,c]).then(function(z){z=g.D(z);z.next();z=z.next().value;l7--;var V$=g.Gr(m);if(V$!==4&&n&&w||z!==void 0&&g.tW3(z.fmts))V$= 1,g.pI(m,V$);return V$})}),8); case 8:return A.return(A.L);case 6:x=g.qA(A);l7--;R=g.Gr(m);if(R===4)return A.return(R);g.pI(m,4);throw x;}})}; g.KOX=function(m){var V,O;return g.u(function(h){if(h.Z==1)return g.I(h,g.md(),2);if(h.Z!=3){V=h.L;if(!V)throw g.d1("ri");return g.I(h,g.BB(V),3)}O=h.L;return h.return(g.cE(O,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(w){var y=IDBKeyRange.bound(m+"|",m+"~");return w.objectStore("index").getAll(y).then(function(L){return L.map(function(C){return C?C.format:{}})})}))})}; XqU=function(m,V,O,h,w){var y,L,C;return g.u(function(E){if(E.Z==1)return g.I(E,g.md(),2);if(E.Z!=3){y=E.L;if(!y)throw g.d1("rc");return g.I(E,g.BB(y),3)}L=E.L;C=g.cE(L,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(q){var M=""+m+"|"+V+"|"+O+"|"+String(h).padStart(10,"0");return q.objectStore("media").get(M)}); return w?E.return(C.then(function(q){if(q===void 0)throw Error("No data from indexDb");return WO5(w,q)}).catch(function(q){throw new g.no("Error while reading chunk: "+q.name+", "+q.message); })):E.return(C)})}; g.tW3=function(m){return m?m==="music"?!0:m.includes("dlt=-1")||!m.includes("dlt="):!1}; URX=function(m,V){return""+m+"|"+(V?"v":"a")}; dR$=function(m){var V={};return J6((V.dlt=m.downloadedEndTime.toString(),V.mket=m.maxKnownEndTime.toString(),V.avbr=m.averageByteRate.toString(),V))}; TgI=function(m){var V={},O={};m=g.D(m);for(var h=m.next();!h.done;h=m.next()){var w=h.value,y=w.split("|");w.match(g.Hm0)?(h=Number(y.pop()),isNaN(h)?O[w]="?":(y=y.join("|"),(w=V[y])?(y=w[w.length-1],h===y.end+1?y.end=h:w.push({start:h,end:h})):V[y]=[{start:h,end:h}])):O[w]="?"}m=g.D(Object.keys(V));for(h=m.next();!h.done;h=m.next())h=h.value,O[h]=V[h].map(function(L){return L.start+"-"+L.end}).join(","); return O}; vB=function(m){g.yh.call(this);this.Z=null;this.D=new aM;this.Z=null;this.N=new Set;this.crossOrigin=m||""}; $RI=function(m,V,O){for(O=PB(m,O);O>=0;){var h=m.levels[O];if(h.isLoaded(mY(h,V))&&(h=g.VG(h,V)))return h;O--}return g.VG(m.levels[0],V)}; kf3=function(m,V,O){O=PB(m,O);for(var h,w;O>=0;O--)if(h=m.levels[O],w=mY(h,V),!h.isLoaded(w)){h=m;var y=O,L=y+"-"+w;h.N.has(L)||(h.N.add(L),h.D.enqueue(y,{c5:y,bO:w}))}Yl3(m)}; Yl3=function(m){if(!m.Z&&!m.D.isEmpty()){var V=m.D.remove();m.Z=rB7(m,V)}}; rB7=function(m,V){var O=document.createElement("img");m.crossOrigin&&(O.crossOrigin=m.crossOrigin);O.src=m.levels[V.c5].yF(V.bO);O.onload=function(){var h=V.c5,w=V.bO;m.Z!==null&&(m.Z.onload=null,m.Z=null);h=m.levels[h];h.loaded.add(w);Yl3(m);var y=h.columns*h.rows;w*=y;h=Math.min(w+y-1,h.u_()-1);w=[w,h];m.publish("l",w[0],w[1])}; return O}; g.Of=function(m,V,O,h){this.level=m;this.T=V;this.loaded=new Set;this.level=m;this.T=V;m=O.split("#");this.width=Math.floor(Number(m[0]));this.height=Math.floor(Number(m[1]));this.frameCount=Math.floor(Number(m[2]));this.columns=Math.floor(Number(m[3]));this.rows=Math.floor(Number(m[4]));this.Z=Math.floor(Number(m[5]));this.D=m[6];this.signature=m[7];this.videoLength=h}; mY=function(m,V){return Math.floor(V/(m.columns*m.rows))}; g.VG=function(m,V){V>=m.xn()&&m.p5();var O=mY(m,V),h=m.columns*m.rows,w=V%h;V=w%m.columns;w=Math.floor(w/m.columns);var y=m.p5()+1-h*O;if(y1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; cBm=function(m,V,O){return(m=m.levels[V])?m.VI(O):-1}; PB=function(m,V){var O=m.T.get(V);if(O)return O;O=m.levels.length;for(var h=0;h=V)return m.T.set(V,h),h;m.T.set(V,O-1);return O-1}; wU=function(m,V,O,h){O=O.split("#");O=[O[1],O[2],0,O[3],O[4],-1,O[0],""].join("#");g.Of.call(this,m,V,O,0);this.L=null;this.K=h?2:0}; yG=function(m,V,O,h){hq.call(this,m,0,void 0,V,!(h===void 0||!h));for(m=0;m30?m.limitedPlaybackDurationInSeconds=30:O<30&&O>10&&(m.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":m.limitedPlaybackDurationInSeconds=O*.2}}; Cd=function(m,V){var O=V.raw_watch_next_response;if(!O){var h=V.watch_next_response;h&&(O=JSON.parse(h))}if(O){m.mS=O;var w=m.mS.playerCueRangeSet;w&&g.Mx(m,w);var y=m.mS.playerOverlays;if(y){var L=y.playerOverlayRenderer;if(L){var C=L.autonavToggle;C&&(m.autoplaySwitchButtonRenderer=g.d(C,sBp),m.Y("web_player_autonav_use_server_provided_state")&&fd(m)&&(m.autonavState=m.autoplaySwitchButtonRenderer.enabled?2:1));var E=L.videoDetails;if(E){var q=E.embeddedPlayerOverlayVideoDetailsRenderer;var M=E.playerOverlayVideoDetailsRenderer; M&&(M.title&&(V.title=g.fy(M.title)),M.subtitle&&(V.subtitle=g.fy(M.subtitle)))}g.BP(m.IY)&&(m.Id=!!L.addToMenu);FOo(m,L.shareButton);L.startPosition&&L.endPosition&&(m.progressBarStartPosition=L.startPosition,m.progressBarEndPosition=L.endPosition);var f=L.gatedActionsOverlayRenderer;f&&(m.RR=g.d(f,aU5));var x,R,A,K=g.d((x=m.getWatchNextResponse())==null?void 0:(R=x.playerOverlays)==null?void 0:(A=R.playerOverlayRenderer)==null?void 0:A.infoPanel,im7);if(K){m.qH=Number(K==null?void 0:K.durationMs)|| NaN;if(K==null?0:K.infoPanelOverviewViewModel)m.CP=K==null?void 0:K.infoPanelOverviewViewModel;if(K==null?0:K.infoPanelDetailsViewModel)m.VV=K==null?void 0:K.infoPanelDetailsViewModel}m.showSeekingControls=!!L.showSeekingControls}}var X,c,r=(X=m.getWatchNextResponse())==null?void 0:(c=X.contents)==null?void 0:c.twoColumnWatchNextResults;if(r){var N=r.desktopOverlay&&g.d(r.desktopOverlay,GfG);N&&(N.suppressShareButton&&(m.showShareButton=!1),N.suppressWatchLaterButton&&(m.Id=!1))}q&&pqo(m,V,q);var n= q2(0,V.autoplay_count),F=m.getWatchNextResponse(),z,V$=(z=F.contents)==null?void 0:z.twoColumnWatchNextResults,O3,hI,jG,fo=(O3=F.playerOverlays)==null?void 0:(hI=O3.playerOverlayRenderer)==null?void 0:(jG=hI.autoplay)==null?void 0:jG.playerOverlayAutoplayRenderer,w7=MW3(m),Ko,vX=(Ko=F.contents)==null?void 0:Ko.singleColumnWatchNextResults;if(vX){var L5;if(((L5=vX.autoplay)==null?0:L5.autoplay)&&!vX.playlist){var zl=vX.autoplay.autoplay.sets,lp={},SG=new ZT(m.j()),lz=null,DM;if(zl){for(var k=g.D(zl), PH=k.next();!PH.done;PH=k.next()){var sJ=PH.value.autoplayVideoRenderer;if(sJ&&sJ.compactVideoRenderer){lz=sJ.compactVideoRenderer;break}}if(DM=zl[0].autoplayVideo){var Co=DM.clickTrackingParams;Co&&(lp.itct=Co);lp.autonav="1";lp.playnext=String(n)}}else lp.feature="related-auto";var rc=g.d(DM,g.xu);if(lz){SG.videoId=lz.videoId;var H=lz.shortBylineText;H&&(SG.author=g.fy(H));var m0=lz.title;m0&&(SG.title=g.fy(m0))}else rc!=null&&rc.videoId&&(SG.videoId=rc.videoId);SG.ZY=lp;m.suggestions=[];m.JN=SG}}if(w7){for(var K9= [],C9=g.D(w7),p9=C9.next();!p9.done;p9=C9.next()){var Em=p9.value,PX=void 0,OJ=null;if(Em.endScreenVideoRenderer){var $S=Em.endScreenVideoRenderer,Y=$S.title;OJ=new ZT(m.j());OJ.videoId=$S.videoId;OJ.lengthSeconds=$S.lengthInSeconds||0;var W=$S.publishedTimeText;W&&(OJ.publishedTimeText=g.fy(W));var T=$S.shortBylineText;T&&(OJ.author=g.fy(T));var S=$S.shortViewCountText;S&&(OJ.shortViewCount=g.fy(S));if(Y){OJ.title=g.fy(Y);var B=Y.accessibility;if(B){var JI=B.accessibilityData;JI&&JI.label&&(OJ.ariaLabel= JI.label)}}var Q=$S.navigationEndpoint;if(Q){PX=Q.clickTrackingParams;var G=g.d(Q,g.xu),e=g.d(Q,g.Il);G?OJ.E2=G:e!=null&&(OJ.watchUrl=e.url)}var cX=$S.thumbnailOverlays;if(cX)for(var D1=g.D(cX),AI=D1.next();!AI.done;AI=D1.next()){var kU=AI.value.thumbnailOverlayTimeStatusRenderer;if(kU)if(kU.style==="LIVE"){OJ.isLivePlayback=!0;break}else if(kU.style==="UPCOMING"){OJ.isUpcoming=!0;break}}OJ.Bj=Ns($S.thumbnail)}else if(Em.endScreenPlaylistRenderer){var wc=Em.endScreenPlaylistRenderer,$U=wc.navigationEndpoint; if(!$U)continue;var ZE=g.d($U,g.xu);if(!ZE)continue;var B8=ZE.videoId;OJ=new zr(m.j());OJ.playlistId=wc.playlistId;OJ.playlistLength=Number(wc.videoCount)||0;OJ.Z=B8||null;OJ.videoId=B8;var QW=wc.title;QW&&(OJ.title=g.fy(QW));var r7=wc.shortBylineText;r7&&(OJ.author=g.fy(r7));PX=$U.clickTrackingParams;OJ.Bj=Ns(wc.thumbnail)}OJ&&(PX&&(OJ.sessionData={itct:PX}),K9.push(OJ))}m.suggestions=K9}if(fo){m.v0=!!fo.preferImmediateRedirect;m.Aj=m.Aj||!!fo.webShowNewAutonavCountdown;m.SW=m.SW||!!fo.webShowBigThumbnailEndscreen; if(m.Aj||m.SW){var s2=V$||null,Nm=new ZT(m.j());Nm.videoId=fo.videoId;var Xh=fo.videoTitle;if(Xh){Nm.title=g.fy(Xh);var Z1=Xh.accessibility;if(Z1){var IQ=Z1.accessibilityData;IQ&&IQ.label&&(Nm.ariaLabel=IQ.label)}}var HH=fo.byline;HH&&(Nm.author=g.fy(HH));var mA=fo.publishedTimeText;mA&&(Nm.publishedTimeText=g.fy(mA));var yg=fo.shortViewCountText;yg&&(Nm.shortViewCount=g.fy(yg));var zZ=fo.thumbnailOverlays;if(zZ)for(var n5=g.D(zZ),AV=n5.next();!AV.done;AV=n5.next()){var Dm=AV.value.thumbnailOverlayTimeStatusRenderer; if(Dm)if(Dm.style==="LIVE"){Nm.isLivePlayback=!0;break}else if(Dm.style==="UPCOMING"){Nm.isUpcoming=!0;break}else if(Dm.style==="DEFAULT"&&Dm.text){Nm.lengthText=g.fy(Dm.text);var RQ=Dm.text.accessibility;if(RQ){var oQ=RQ.accessibilityData;oQ&&oQ.label&&(Nm.Q3=oQ.label||"")}break}}Nm.Bj=Ns(fo.background);var jo=fo.nextButton;if(jo){var Lx=jo.buttonRenderer;if(Lx){var LF=Lx.navigationEndpoint;if(LF){var U2=g.d(LF,g.xu);U2&&(Nm.E2=U2)}}}if(fo.topBadges){var Jz=fo.topBadges[0];if(Jz){var Cx=g.d(Jz,Bg7); Cx&&Cx.style==="BADGE_STYLE_TYPE_PREMIUM"&&(Nm.Szr=!0)}}var EA=fo.alternativeTitle;EA&&(Nm.Ta=g.fy(EA));var pF={autonav:"1",playnext:String(n)};Nm.playlistId&&(pF.autoplay="1");if(s2){var et,u5,q0,TS,$d=(et=s2.autoplay)==null?void 0:(u5=et.autoplay)==null?void 0:(q0=u5.sets)==null?void 0:(TS=q0[0])==null?void 0:TS.autoplayVideo;if($d){var M0=$d.clickTrackingParams;M0&&(pF.itct=M0);var fx=g.d($d,g.xu);fx&&(Nm.X0=fx)}}else if(fo){var xw,Ry,Wu,Bu=(xw=fo.nextButton)==null?void 0:(Ry=xw.buttonRenderer)== null?void 0:(Wu=Ry.navigationEndpoint)==null?void 0:Wu.clickTrackingParams;Bu&&(pF.itct=Bu)}pF.itct||(pF.feature="related-auto");Nm.ZY=pF;m.suggestions||(m.suggestions=[]);m.JN=Nm}fo.countDownSecs!=null&&(m.Rm=fo.countDownSecs*1E3);fo.countDownSecsForFullscreen!=null&&(m.Ql=fo.countDownSecsForFullscreen>=0?fo.countDownSecsForFullscreen*1E3:-1);m.Y("web_autonav_color_transition")&&fo.watchToWatchTransitionRenderer&&(m.watchToWatchTransitionRenderer=g.d(fo.watchToWatchTransitionRenderer,lU7))}var Yd= MW3(m);if(Yd){var Ye,O7,ke,fT=Yd==null?void 0:(Ye=Yd[0])==null?void 0:(O7=Ye.endScreenVideoRenderer)==null?void 0:(ke=O7.navigationEndpoint)==null?void 0:ke.clickTrackingParams,rv=g.R5(m);fT&&rv&&(rv.sessionData={itct:fT})}m.mS.currentVideoThumbnail&&(m.Bj=Ns(m.mS.currentVideoThumbnail));var cF,Ke,Wh,Xi,Hh,Dk=(cF=m.mS)==null?void 0:(Ke=cF.contents)==null?void 0:(Wh=Ke.twoColumnWatchNextResults)==null?void 0:(Xi=Wh.results)==null?void 0:(Hh=Xi.results)==null?void 0:Hh.contents;if(Dk&&Dk[0]){var w_= Dk[0].videoPrimaryInfoRenderer;w_&&w_&&w_.subtitle&&(m.Fq=g.fy(w_.subtitle))}if(Dk&&Dk[1]){var zA,QE,Z6,YW,yx=(zA=Dk[1].videoSecondaryInfoRenderer)==null?void 0:(QE=zA.owner)==null?void 0:(Z6=QE.videoOwnerRenderer)==null?void 0:(YW=Z6.thumbnail)==null?void 0:YW.thumbnails;yx&&yx.length&&(m.profilePicture=yx[yx.length-1].url)}var NE=xk(V),vE,vA$=(vE=m.getWatchNextResponse())==null?void 0:vE.onResponseReceivedEndpoints;if(vA$)for(var PfU=g.D(vA$),GT=PfU.next();!GT.done;GT=PfU.next()){var p1=GT.value; g.d(p1,o5)&&(m.KH=g.d(p1,o5));var ns=g.d(p1,QB7),mW$=void 0;if((mW$=ns)==null?0:mW$.entityKeys)m.w4=ns.entityKeys||[],ns.visibleOnLoadKeys&&(m.visibleOnLoadKeys=ns.visibleOnLoadKeys)}if(m.Y("web_key_moments_markers")){var xyA=g.gU.getState().entities,Rbz=g.Gk("visibility_override","markersVisibilityOverrideEntity");var sa=Bv(xyA,"markersVisibilityOverrideEntity",Rbz);m.EH=(sa==null?void 0:sa.videoId)===(m.videoId||NE)&&(sa==null?0:sa.visibilityOverrideMarkersKey)?sa.visibilityOverrideMarkersKey:m.visibleOnLoadKeys; m.visibleOnLoadKeys=[].concat(g.b(m.EH))}}}; nE3=function(m,V){if(V=V.raw_reel_item_watch_response)m.reelItemWatchResponse=V}; vEa=function(m){return!!m&&isFinite(m)&&m>1E9}; fd=function(m){var V;return((V=m.autoplaySwitchButtonRenderer)==null?void 0:V.enabled)!==void 0}; Aq=function(m){return!!(m.D&&m.D.videoInfos&&m.D.videoInfos.length)}; g.WC=function(m){var V=m.J;m.Y("html5_gapless_unlimit_format_selection")&&Uf(m)&&(V=!1);var O=!!m.Z&&m.Z.yp,h=m.IY,w=m.GC(),y=dU(m),L=m.v6,C=V,E=m.isOtf();V=m.Fi();var q=m.Yq,M=m.getUserAudio51Preference(),f=tq(m),x=Kd(m),R=new pgC(h);if(h.tj()||h.Y("html5_logging_format_selection"))R.Z=!0;R.Xr=y;R.v6=L&&h.V;R.EH=M;g.B7("windows nt 5.1")&&!g.ot&&(R.sW=!0);if(y=w)y=g.RV(h)?QTa(h):!1;y&&(R.Zu=!0);C&&(R.sW=!0,R.qq=!0);E&&!h.Y("html5_otf_prefer_vp9")&&(R.sW=!0);h.playerStyle==="picasaweb"&&(E&&(R.sW= !1),R.Ae=!1);q&&(R.sW=!0);V9(h.K,OF.CHANNELS)&&(h.Y("html5_enable_ac3")&&(R.T=!0),h.Y("html5_enable_eac3")&&(R.K=!0),h.Y("html5_enable_ac3_gapless")&&(R.H6=!0));h.Y("html5_block_8k_hfr")&&(R.pA=!0);R.N=g.m9(h.experiments,"html5_max_selectable_quality_ordinal");R.J=g.m9(h.experiments,"html5_min_selectable_quality_ordinal");u0&&(R.Rd=480);if(O||w)R.Ae=!1;R.nA=!1;R.disableAv1=f;O=LO(h,R.L,void 0,R.disableAv1);O>0&&O<2160&&(CS()||h.Y("html5_format_hybridization"))&&(R.L.supportsChangeType=+CS(),R.Yl= O);O>=2160&&(R.iH=!0);RX7()&&!h.Y("disable_av1_setting")&&(R.L.serveVp9OverAv1IfHigherRes=0,R.tq=!1);R.Fi=V;R.Je=g.p3||Lp()&&!V?!1:!0;R.V=h.Y("html5_format_hybridization");R.LP=h.Y("html5_disable_encrypted_vp9_live_non_2k_4k");R.UU=x;SC(m)&&(R.ma=!0);v7()&&m.playerResponse&&m.playerResponse.playerConfig&&m.playerResponse.playerConfig.webPlayerConfig&&m.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(R.T=!0,R.K=!0);m.J&&m.isAd()&&(m.kh&&(R.Qt=m.kh),m.Ui&&(R.D=m.Ui));m.X3()&& (R.mS=g.m9(m.IY.experiments,"html5_hard_cap_max_vertical_resolution_for_shorts"));R.Mf=m.isLivePlayback&&m.gH()&&m.IY.Y("html5_drm_live_audio_51");R.Aj=m.Ay;R.kD=!SC(m);return m.CA=R}; var yI7=function(m,V){return y$[J[4]](this,7,m,V)}; tq=function(m){return m.IY.Y("html5_disable_av1")?!0:!1}; Pi1=function(m){ko("drm_pb_s",void 0,m.Qt);m.hd||m.Z&&le(m.Z);var V={};m.Z&&(V=rC0(m.Rn,g.WC(m),m.IY.K,m.Z,function(O){return m.publish("ctmp","fmtflt",O)},!0,new Set)); V=new UY(V,m.IY,m.Lx,m.useCobaltWidevine?v7()?X2(m):!1:!1,function(O,h){m.uH(O,h)}); g.a(m,V);m.hZ=!1;m.loading=!0;vHl(V,function(O){ko("drm_pb_f",void 0,m.Qt);for(var h=g.D(O),w=h.next();!w.done;w=h.next())switch(w=w.value,w.flavor){case "fairplay":w.hd=m.hd;w.BZ=m.BZ;w.C1=m.C1;break;case "widevine":w.z5=m.z5}m.RK=O;if(m.RK.length>0&&(m.K=m.RK[0],m.IY.tj())){O={};h=g.D(Object.entries(m.K.Z));for(w=h.next();!w.done;w=h.next()){var y=g.D(w.value);w=y.next().value;y=y.next().value;var L="unk";(w=w.match(/(.*)codecs="(.*)"/))&&(L=w[2]);O[L]=y}m.uH("drmProbe",O)}m.AF()})}; mw7=function(m,V){if(V.length===0||HC(m))return null;m.IY.K.L&&(w8=!0);var O=m.He;var h=m.lengthSeconds,w=m.isLivePlayback,y=m.El,L=m.IY,C=rM1(V);if(w||y){L=L.experiments;h=new sz("",L,!0);h.L=!y;h.yp=!0;h.isManifestless=!0;h.isLive=!y;h.El=y;w=g.D(V);for(C=w.next();!C.done;C=w.next()){var E=C.value;C=iq(E,O);var q=YU(35,E);q=pu(q.Y7||E.url||"",q.eM,q.s);var M=q.get("id");M&&M.includes("%7E")&&(h.Zu=!0);var f=void 0;M=(f=L)==null?void 0:f.w0("html5_max_known_end_time_rebase");f=Number(E.targetDurationSec|| 5);E=Number(E.maxDvrDurationSec||14400);var x=Number(q.get("mindsq")||q.get("min_sq")||"0"),R=Number(q.get("maxdsq")||q.get("max_sq")||"0")||Infinity;h.De=h.De||x;h.zQ=h.zQ||R;var A=!Bg(C.mimeType);q&&uq(h,new Wt(q,C,{u4:f,RD:A,zE:E,De:x,zQ:R,Br:300,El:y,mj:M}))}O=h}else if(C==="FORMAT_STREAM_TYPE_OTF"){h=h===void 0?0:h;y=new sz("",L.experiments,!1);y.duration=h||0;L=g.D(V);for(h=L.next();!h.done;h=L.next())h=h.value,w=iq(h,O,y.duration),C=YU(33,h),(C=pu(C.Y7||h.url||"",C.eM,C.s))&&(w.streamType=== "FORMAT_STREAM_TYPE_OTF"?uq(y,new Xt(C,w,"sq/0")):uq(y,new Ss(C,w,wi(h.initRange),wi(h.indexRange))));y.isOtf=!0;O=y}else{h=h===void 0?0:h;y=new sz("",L.experiments,!1);y.duration=h||0;L=g.D(V);for(h=L.next();!h.done;h=L.next())q=h.value,h=iq(q,O,y.duration),w=wi(q.initRange),C=wi(q.indexRange),M=YU(31,q),(q=pu(M.Y7||q.url||"",M.eM,M.s))&&uq(y,new Ss(q,h,w,C));O=y}V.length>0&&(V=V[0],qx(m)&&V.url&&(m.Y5=m.Y5||ur$(V.url)));V=m.isLivePlayback&&!m.El&&!m.wd&&!m.isPremiere;m.Y("html5_live_head_playable")&& (!T_(m)&&V&&m.uH("missingLiveHeadPlayable",{}),m.IY.Zu==="yt"&&(O.fA=!0));return O}; VR$=function(m){var V,O,h=((V=m.playerResponse)==null?void 0:(O=V.streamingData)==null?void 0:O.adaptiveFormats)||[];V=null;if(h.length>0)V=mw7(m,h);else if(!m.Y("html5_deprecate_adaptive_formats_string")){m.uH("pafmtstr",{s:m.adaptiveFormats.substring(0,50)});if((h=m.adaptiveFormats)&&!HC(m)){m.IY.K.L&&(w8=!0);h=$u(h);V=m.He;var w=m.lengthSeconds,y=m.isLivePlayback;O=m.El;var L=m.IY,C=kA7(h);if(y||O){L=L==null?void 0:L.experiments;w=new sz("",L,!0);w.yp=!0;w.isManifestless=!0;w.L=!O;w.isLive=!O; w.El=O;y=g.D(h);for(C=y.next();!C.done;C=y.next()){var E=C.value;C=G$(E,V);var q=pu(E.url,E.sp,E.s),M=q.get("id");M&&M.includes("%7E")&&(w.Zu=!0);var f=void 0;M=(f=L)==null?void 0:f.w0("html5_max_known_end_time_rebase");f=Number(E.target_duration_sec)||5;E=Number(E.max_dvr_duration_sec)||14400;var x=Number(q.get("mindsq")||q.get("min_sq")||"0"),R=Number(q.get("maxdsq")||q.get("max_sq")||"0")||Infinity;w.De=w.De||x;w.zQ=w.zQ||R;var A=!Bg(C.mimeType);q&&uq(w,new Wt(q,C,{u4:f,RD:A,zE:E,De:x,zQ:R,Br:300, El:O,mj:M}))}V=w}else if(C==="FORMAT_STREAM_TYPE_OTF"){w=w===void 0?0:w;O=new sz("",L==null?void 0:L.experiments,!1);O.duration=w||0;L=g.D(h);for(w=L.next();!w.done;w=L.next())if(q=w.value,w=G$(q,V,O.duration),y=pu(q.url,q.sp,q.s))w.streamType==="FORMAT_STREAM_TYPE_OTF"?uq(O,new Xt(y,w,"sq/0")):(C=Oz(q.init),q=Oz(q.index),uq(O,new Ss(y,w,C,q)));O.isOtf=!0;V=O}else{w=w===void 0?0:w;O=new sz("",L==null?void 0:L.experiments,!1);O.duration=w||0;L=g.D(h);for(w=L.next();!w.done;w=L.next())q=w.value,w=G$(q, V,O.duration),y=Oz(q.init),C=Oz(q.index),(q=pu(q.url,q.sp,q.s))&&uq(O,new Ss(q,w,y,C));V=O}h.length>0&&(h=h[0],qx(m)&&h.url&&(m.Y5=m.Y5||ur$(h.url)));h=m.isLivePlayback&&!m.El&&!m.wd&&!m.isPremiere;m.Y("html5_live_head_playable")&&(!T_(m)&&h&&m.uH("missingLiveHeadPlayable",{}),m.IY.Zu==="yt"&&(V.fA=!0))}else V=null;m.uH("pafmts",{isManifestFilled:!!V})}if(!V)return!1;Yu(m,V);return!0}; HC=function(m){return v7()?!X2(m):mB()?!(!m.hd||!m.Y("html5_enable_safari_fairplay")&&$q()):!1}; X2=function(m){return m.Y("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.Mx=function(m,V){V=g.D(V);for(var O=V.next();!O.done;O=V.next())if(O=O.value,O.cueRangeSetIdentifier){var h=void 0;m.BP.set(O.cueRangeSetIdentifier,(h=O.playerCueRanges)!=null?h:[])}}; ku=function(m){return!(!m.Z||!m.Z.isManifestless)}; rU=function(m){return m.Xr?m.isLowLatencyLiveStream&&m.Z!=null&&vt(m.Z)>=5:m.isLowLatencyLiveStream&&m.Z!=void 0&&vt(m.Z)>=5}; OLo=function(m){return v7()&&X2(m)?!1:HC(m)&&(g.R2(m.IY)?!m.isLivePlayback:m.hlsvp)||!$q()||m.u0?!0:!1}; wOX=function(m){m.loading=!0;m.qq=!1;if(hP$(m))g.KOX(m.videoId).then(function(h){var w;if((w=m.playerResponse)!=null&&w.streamingData){w=[];h=g.D(h);for(var y=h.next();!y.done;y=h.next())y=Object.assign({},y.value),y.signatureCipher="",w.push(y);w.length<2&&m.uH("offmlf",{len:w.length});w=mw7(m,w);dU(m)&&Z$I(w,!1);Yu(m,w);m.uH("dlr",{})}else m.uH("offsdm",{cotn:m.O0?m.O0.cotn:"0",cpn:m.clientPlaybackNonce})}).then(function(){m.AF()}); else{Xa(m.Ig)||g.cj(new g.no("DASH MPD Origin invalid: ",m.Ig));var V=m.Ig,O=g.m9(m.IY.experiments,"dash_manifest_version")||4;V=g.N_(V,{mpd_version:O});m.isLowLatencyLiveStream&&m.latencyClass!=="NORMAL"||(V=g.N_(V,{pacing:0}));ehm(V,m.IY.experiments,m.isLivePlayback).then(function(h){m.UH()||(Yu(m,h,!0),ko("mrc",void 0,m.Qt),m.AF())},function(h){m.UH()||(m.loading=!1,m.publish("dataloaderror",new g.jc("manifest.net.retryexhausted",{backend:"manifest", rc:h.status},1)))}); ko("mrs",void 0,m.Qt)}}; y5o=function(m){var V;return!((V=m.IY.getWebPlayerContextConfig())==null||!V.enableProximaLowLatency)}; cC=function(m){if(!m.isProximaLatencyEligible)return 0;var V=km();return y5o(m)?2:V===1?1:m.Y("html5_enable_proxima")?2:0}; Yu=function(m,V,O){O=O===void 0?!1:O;m.XK=void 0;m.Z=V;g.a(m,V);V.De=m.De;V.zQ=m.zQ;V.Pt=m.Pt;V.A_=m.A_;V.Pl=m.Pl;m.Re&&(V.Qt=new Gw(m.Re));(m.GC()||g.DJ(m))&&m.Sm.push("webgl");m.Z.isLive||(m.isLivePlayback=!1);var h=V.sourceUrl.split("/");if(m.Xr?h.indexOf("manifest_duration")!==-1:h.indexOf("manifest_duration")!=-1)m.r4=Number(h[h.indexOf("manifest_duration")+1]);if(V.L||V.isManifestless)V.subscribe("clienttemp",m.uH,m),O?V.subscribe("refresh",m.cO,m):V.subscribe("cuepointsadded",m.Zr,m);le(V)? m.hZ=!0:tv=void 0;m.wd&&(V.T=m.wd,V.isLive=!0,m.isLivePlayback=!0);V.isPremiere=m.isPremiere;V.isLiveHeadPlayable=m.isLiveHeadPlayable}; ju0=function(m,V){var O=V||OLo(m)||m.isExternallyHostedPodcast;if(!m.Z||O)return m.uH("skipDash",{dm:!!m.Z,air:V,dd:m.u0,mss:$q(),"3pp":m.isExternallyHostedPodcast}),Iv();dU(m)&&Z$I(m.Z,m.isLivePlayback);return e6().then(function(){return DWl(m.Rn,g.WC(m),m.IY.K,m.Z,m.K,function(h){return m.publish("ctmp","fmtflt",h)},m.rF,Nx(m)).then(function(h){m.D_(h); m.Rn.L=null;/^av/.test(m.clientPlaybackNonce)&&m.CA&&m.uH("av1",m.CA.L)})})}; J5l=function(m,V){if(V&&m.hlsvp)return Iv();if(m.hlsFormats){if(V=$u(m.hlsFormats)){for(var O=[],h=g.D(V),w=h.next();!w.done;w=h.next()){w=w.value;w.url&&(w.url=Ng3(w.url));var y=void 0;((y=m.CA)==null?0:y.Z)&&O.push(w.itag)}var L;((L=m.CA)==null?0:L.Z)&&O.length>0&&m.uH("hlsfmt",{itags:O.join(".")})}m.tq=fq3(m.IY,V);m.tq&&LeG(m,m.tq);L=m.clientPlaybackNonce;var C,E,q,M;return AO5(m.IY,m.isAd(),V,(M=(C=m.playerResponse)==null?void 0:(E=C.captions)==null?void 0:(q=E.playerCaptionsRenderer)==null?void 0: q.baseUrl)!=null?M:null,m.NT,L,function(f){return m.publish("ctmp","hlsflt",f)}).then(function(f){for(var x=0,R=[],A=g.D(f),K=A.next();!K.done;K=A.next()){K=K.value; var X=void 0;R.push((X=K.getInfo())==null?void 0:X.itag);var c=X=void 0;((X=K.getInfo())==null?void 0:(c=X.audio)==null?void 0:c.numChannels)>x&&(x=K.getInfo().audio.numChannels)}x>2&&m.uH("hlschl",{mn:x});var r;((r=m.CA)==null?0:r.Z)&&m.uH("hlsfmtaf",{itags:R.join(".")});var N;if(m.Y("html5_enable_vp9_fairplay")&&((N=m.K)==null?0:xq(N)))for(m.uH("drm",{sbdlfbk:1}),x=g.D(m.RK),R=x.next();!R.done;R=x.next())if(R=R.value,fO(R)){m.K=R;break}b2(m,f)})}return Iv()}; CyX=function(m){if(m.isExternallyHostedPodcast&&m.M$){var V=$u(m.M$);if(!V[0])return Iv();m.vF=V[0];return taC(m.IY,V[0]).then(function(O){b2(m,O)})}return m.IF&&m.xw?dMo(m.IY,m.isAd(),m.IF).then(function(O){b2(m,O)}):Iv()}; qUp=function(m){if(m.isExternallyHostedPodcast)return Iv();var V=$u(m.M$,m.XT);if(m.hlsvp){var O=DRX(m.hlsvp,m.clientPlaybackNonce,m.NT);V.push(O)}return UM3(m.IY,m.isAd(),V,Eh5(m)).then(function(h){b2(m,h)})}; b2=function(m,V){m.nA=V;m.D_(new a6(g.rb(m.nA,function(O){return O.getInfo()})))}; Eh5=function(m){var V={cpn:m.clientPlaybackNonce,c:m.IY.Z.c,cver:m.IY.Z.cver};m.Ax&&(V.ptk=m.Ax,V.oid=m.BO,V.ptchn=m.Cz,V.pltype=m.xr,m.oA&&(V.m=m.oA));return V}; g.nd=function(m){return HC(m)&&m.hd?(m={},m.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",m):m.L&&m.L.He||null}; MRo=function(m){var V=S2(m);return V&&V.text?g.fy(V.text):m.paidContentOverlayText}; fXU=function(m){var V=S2(m);return V&&V.durationMs?BM(V.durationMs):m.paidContentOverlayDurationMs}; S2=function(m){var V,O,h;return m.playerResponse&&m.playerResponse.paidContentOverlay&&m.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.d((V=m.mS)==null?void 0:(O=V.playerOverlays)==null?void 0:(h=O.playerOverlayRenderer)==null?void 0:h.playerDisclosure,xwU)||null}; RPI=function(m){if(!m)return null;m=g.D(m);for(var V=m.next();!V.done;V=m.next()){var O=void 0,h=void 0;if(V=(O=V.value.adPlacementRenderer)==null?void 0:(h=O.renderer)==null?void 0:h.videoAdTrackingRenderer)return V}return null}; I5=function(m){var V="";if(m.SO)return m.SO;m.isLivePlayback&&(V=m.allowLiveDvr?"dvr":m.isPremiere?"lp":m.wd?"window":"live");m.El&&(V="post");return V}; g.e2=function(m,V){return typeof m.keywords[V]!=="string"?null:m.keywords[V]}; ohl=function(m){return!!m.kJ||!!m.Bf||!!m.YJ||!!m.CR||m.cY}; g.u2=function(m){return!!(m.Ig||m.M$||m.IF||m.hlsvp||m.er())}; Jq=function(m){if(m.Y("html5_onesie")&&m.errorCode)return!1;var V=g.vH(m.Sm,"ypc");m.ypcPreview&&(V=!1);return m.o8()&&!m.loading&&(g.u2(m)||g.vH(m.Sm,"heartbeat")||V)}; $u=function(m,V){m=CJ(m);var O={};if(V){V=g.D(V.split(","));for(var h=V.next();!h.done;h=V.next())(h=h.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(O[h[1]]={width:h[2],height:h[3]})}V=g.D(m);for(h=V.next();!h.done;h=V.next()){h=h.value;var w=O[h.itag];w&&(h.width=w.width,h.height=w.height)}return m}; FOo=function(m,V){m.showShareButton=!!V;var O,h,w=((O=g.d(V,g.rg))==null?void 0:O.navigationEndpoint)||((h=g.d(V,g.rg))==null?void 0:h.command);w&&(m.zf=!!g.d(w,ghX))}; bma=function(m,V){var O=V.raw_embedded_player_response;if(!O){var h=V.embedded_player_response;h&&(O=JSON.parse(h))}O&&(m.P1=O);if(m.P1){m.embeddedPlayerConfig=m.P1.embeddedPlayerConfig||null;if(O=m.P1.videoFlags)O.playableInEmbed&&(m.allowEmbed=!0),O.isPrivate&&(m.isPrivate=!0),O.userDisplayName&&(V.user_display_name=O.userDisplayName),O.userDisplayImage&&(V.user_display_image=O.userDisplayImage);if((O=m.P1.embedPreview)&&O.thumbnailPreviewRenderer){O=O.thumbnailPreviewRenderer;BRm(m,O.controlBgHtml); if(h=O.defaultThumbnail)m.Bj=Ns(h);m.Y("embeds_web_enable_search_button")&&O.searchButton&&(h=g.d(O.searchButton,g.rg))&&(m.Gg=g.d(h.navigationEndpoint,g.z_));(h=g.d(O==null?void 0:O.videoDetails,A5p))&&pqo(m,V,h);h=g.d(O==null?void 0:O.videoDetails,Uwl);m.Id=!!O.addToWatchLaterButton;FOo(m,O.shareButton);if(h==null?0:h.musicVideoType)m.musicVideoType=h.musicVideoType;var w,y,L,C,E;if(h=g.d((w=m.getEmbeddedPlayerResponse())==null?void 0:(y=w.embedPreview)==null?void 0:(L=y.thumbnailPreviewRenderer)== null?void 0:(C=L.playButton)==null?void 0:(E=C.buttonRenderer)==null?void 0:E.navigationEndpoint,g.xu))TRo(m,h),m.videoId=h.videoId||m.videoId;O.videoDurationSeconds&&(m.lengthSeconds=BM(O.videoDurationSeconds));O.webPlayerActionsPorting&&prG(m,O.webPlayerActionsPorting);if(w=g.d(O==null?void 0:O.playlist,dwo)){m.hn=!0;y=[];L=Number(w.currentIndex);if(w.contents)for(C=0,E=w.contents.length;C0:m.nP?!1:m.IY.hn||m.IY.lc||!g.sY(m.IY)?!0:!1:(m.nP?0:m.Rd)&&g.sY(m.IY)?!0:!1;m.Y("html5_log_detailpage_autoplay")&&QG(m)==="detailpage"&&m.uH("autoplay_info",{autoplay:m.SJ,autonav:m.isAutonav,wasDompaused:m.nP,result:V});return V}; g.Vj=function(m){return m.oauthToken||m.IY.lN}; r5p=function(m){if(m.Y("html5_stateful_audio_normalization")){var V=1,O=g.m9(m.IY.experiments,"html5_default_ad_gain");O&&m.isAd()&&(V=O);var h,w;O=(w=(h=m.T)==null?void 0:h.audio.T)!=null?w:m.WG;if(O==null||isNaN(O))m=kyG(m);else{h=(0,g.TN)();m.lN=1;w=h-m.IY.PP<=m.maxStatefulTimeThresholdSec*1E3;m.applyStatefulNormalization&&w?m.lN=2:w||(m.IY.kh=Infinity,m.IY.PP=NaN);w=(m.lN===2?g.O2(m.IY.kh,m.minimumLoudnessTargetLkfs,m.loudnessTargetLkfs):m.loudnessTargetLkfs)-O;if(m.lN!==2){var y,L,C,E,q=((y= m.playerResponse)==null?void 0:(L=y.playerConfig)==null?void 0:(C=L.audioConfig)==null?void 0:(E=C.loudnessNormalizationConfig)==null?void 0:E.statelessLoudnessAdjustmentGain)||0;w+=q}w=Math.min(w,0);m.preserveStatefulLoudnessTarget&&(m.IY.kh=O+w,m.IY.PP=h);m=Math.min(1,Math.pow(10,w/20))||V}}else m=kyG(m);return m}; kyG=function(m){var V=1,O=g.m9(m.IY.experiments,"html5_default_ad_gain");O&&m.isAd()&&(V=O);var h,w;O=((h=m.T)==null?void 0:h.audio.D)!=null?(w=m.T)==null?void 0:w.audio.D:m.B9;isNaN(O)||(m.lN=4);return Math.min(1,Math.pow(10,-O/20))||V}; dU=function(m){var V=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],O=KO(m.IY)==="TVHTML5_SIMPLY"&&m.IY.Z.ctheme==="MUSIC";!m.N$&&(g.Sm(m.IY)||g.Ms(m.IY)||O)&&(V.includes(m.musicVideoType)||m.isExternallyHostedPodcast)&&(m.N$=!0);if(V=g.Qf())V=/Starboard\/([0-9]+)/.exec(g.wX()),V=(V?parseInt(V[1],10):NaN)<10;O=m.IY;O=(KO(O)==="TVHTML5_CAST"||KO(O)==="TVHTML5"&&(O.Z.cver.startsWith("6.20130725")||O.Z.cver.startsWith("6.20130726")))&&m.IY.Z.ctheme==="MUSIC";var h;if(h=!m.N$)O||(O= m.IY,O=KO(O)==="TVHTML5"&&O.Z.cver.startsWith("7")),h=O;h&&!V&&(V=m.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",O=(m.Y("cast_prefer_audio_only_for_atv_and_uploads")||m.Y("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&m.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",V||O||m.isExternallyHostedPodcast)&&(m.N$=!0);return m.IY.deviceIsAudioOnly||m.N$&&m.IY.V}; Kd=function(m){var V,O,h;return((V=m.playerResponse)==null?void 0:(O=V.playerConfig)==null?void 0:(h=O.compositeVideoConfig)==null?void 0:h.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; c5X=function(m){var V,O,h,w=(V=m.playerResponse)==null?void 0:(O=V.playerConfig)==null?void 0:(h=O.compositeVideoConfig)==null?void 0:h.sourceConfigs,y,L,C;m=(y=m.playerResponse)==null?void 0:(L=y.playerConfig)==null?void 0:(C=L.compositeVideoConfig)==null?void 0:C.defaultActiveSourceVideoId;if(!w||!w.length)return"";m||(m=w[0].videoId||"");w=g.D(w);for(y=w.next();!y.done;y=w.next())if(y=y.value,y.videoId===m&&y.audioTracks)for(y=g.D(y.audioTracks),L=y.next();!L.done;L=y.next())if(L=L.value,L.isDefaultForSource)return L.id|| "";return""}; g.DwG=function(m){return m.yp()&&SC(m)}; Oc=function(m){var V,O,h;return!!((V=m.playerResponse)==null?0:(O=V.playerConfig)==null?0:(h=O.mediaCommonConfig)==null?0:h.splitScreenEligible)}; hF=function(m){var V;return!((V=m.playerResponse)==null||!V.compositePlayabilityStatus)}; Nsl=function(m){return isNaN(m)?0:Math.max((Date.now()-m)/1E3-30,0)}; wm=function(m){return!(!m.Oi||!m.IY.V)&&m.er()}; yj=function(m){return m.k6&&m.enableServerStitchedDai}; bL0=function(m){return m.K5&&!m.Re}; SC=function(m){var V=m.Y("html5_enable_sabr_on_drive")&&m.IY.Zu==="gd";if(m.HS)return m.K5&&m.uH("fds",{fds:!0},!0),!1;if(m.IY.Zu!=="yt"&&!V)return m.K5&&m.uH("dsvn",{ns:m.IY.Zu},!0),!1;if(m.cotn||!m.Z||m.Z.isOtf&&!m.Y("html5_enable_sabr_otf_in_client")||m.D&&!m.D.Z||m.Xn&&!m.Y("html5_enable_sabr_csdai"))return!1;if(m.Y("html5_use_sabr_requests_for_debugging"))return!0;m.K5&&m.uH("esfw",{usbc:m.K5,hsu:!!m.Re},!0);if(m.K5&&m.Re)return!0;if(m.Y("html5_remove_client_sabr_determination"))return!1;var O= !m.Z.yp&&!m.gH();V=O&&j3&&m.Y("html5_enable_sabr_vod_streaming_xhr");O=O&&!j3&&m.Y("html5_enable_sabr_vod_non_streaming_xhr");var h=Ls(m),w=m.Y("html5_enable_sabr_drm_vod_streaming_xhr")&&j3&&m.gH()&&!m.Z.yp&&(m.drmProduct==="1"?!1:!0);(V=V||O||h||w)&&!m.Re&&m.uH("sabr",{loc:"m"},!0);return V&&!!m.Re}; Ls=function(m){var V;if(!(V=j3&&m.yp()&&m.gH()&&(m.drmProduct==="1"?!1:!0)&&m.Y("html5_sabr_live_drm_streaming_xhr"))){V=m.yp()&&!m.gH()&&j3;var O=m.yp()&&m.latencyClass!=="ULTRALOW"&&!m.isLowLatencyLiveStream&&m.Y("html5_sabr_live_normal_latency_streaming_xhr"),h=m.isLowLatencyLiveStream&&m.Y("html5_sabr_live_low_latency_streaming_xhr"),w=m.latencyClass==="ULTRALOW"&&m.Y("html5_sabr_live_ultra_low_latency_streaming_xhr");V=V&&(O||h||w)}O=V;V=m.enableServerStitchedDai&&O&&m.Y("html5_enable_sabr_ssdai_streaming_xhr"); O=!m.enableServerStitchedDai&&O;h=m.yp()&&!j3&&m.Y("html5_enable_sabr_live_non_streaming_xhr");m=j3&&(m.Z4()||Oc(m)&&m.Y("html5_enable_sabr_for_lifa_eligible_streams"));return V||O||h||m}; Nx=function(m){var V=m.Y("html5_enable_server_format_filter")&&!m.gH(),O=m.Y("html5_enable_server_format_filter_for_drm")&&m.gH();return SC(m)&&(V||O)}; hP$=function(m){var V;if(V=!!m.cotn)V=m.videoId,V=!!V&&g.Gr(V)===1;return V&&!m.Oi}; g.JF=function(m){if(!m.Z||!m.L||!m.T)return!1;var V=m.Z.Z,O=!!V[m.L.id]&&xU(77,V[m.L.id].Dj.Z);V=!!V[m.T.id]&&xU(15,V[m.T.id].Dj.Z);return(m.L.itag==="0"||O)&&V}; Cs=function(m){return m.pR?["OK","LIVE_STREAM_OFFLINE"].includes(m.pR.status):!0}; tRl=function(m){return(m=m.on)&&m.showError?m.showError:!1}; Ec=function(m,V){return m.Y(V)?!0:(m.fflags||"").includes(V+"=true")}; eBo=function(m,V){V.inlineMetricEnabled&&(m.inlineMetricEnabled=!0);V.playback_progress_0s_url&&(m.CR=new xR0(V));if(V=V.video_masthead_ad_quartile_urls)m.Bf=V.quartile_0_url,m.KK=V.quartile_25_url,m.H0=V.quartile_50_url,m.yT=V.quartile_75_url,m.G5=V.quartile_100_url,m.YJ=V.quartile_0_urls,m.J9=V.quartile_25_urls,m.eV=V.quartile_50_urls,m.XR=V.quartile_75_urls,m.NB=V.quartile_100_urls}; yB$=function(m){var V={};m=g.D(m);for(var O=m.next();!O.done;O=m.next()){O=O.value;var h=O.split("=");h.length===2?V[h[0]]=h[1]:V[O]=!0}return V}; eVG=function(m){if(m){if(wj5(m))return m;m=dma(m);if(wj5(m,!0))return m}return""}; g.nhG=function(m){return m.captionsLanguagePreference||m.IY.captionsLanguagePreference||g.e2(m,"yt:cc_default_lang")||m.IY.tq}; qE=function(m){return!(!m.isLivePlayback||!m.hasProgressBarBoundaries())}; g.R5=function(m){var V;return m.JN||((V=m.suggestions)==null?void 0:V[0])||null}; SUC=function(m,V){return V!=null?Cp(m.J,V):m.J?m.J:m.IY.preferGapless&&m.IY.supportsGaplessShorts()}; g.ME=function(m){var V,O;return!!((V=m.embeddedPlayerConfig)==null?0:(O=V.embeddedPlayerFlags)==null?0:O.enableMusicUx)}; IX1=function(m){return m.J||m.Y("web_player_media_session_infinity")&&m.isLivePlayback}; fs=function(m){return m.IY.T&&m.isPrivate}; ePm=function(m){var V,O;return((V=m.playerResponse)==null?0:(O=V.playerConfig)==null?0:O.daiConfig)?m.b_?1:m.E0?2:0:3}; g.R0=function(m){var V=m.j(),O=g.x8(V),h=V.VV;g.BP(V)&&(h&&(O.thirdParty=Object.assign({},O.thirdParty,{embedUrl:h})),dW5(O,m));if(h=m.Zu)O.clickTracking={clickTrackingParams:h};else if(g.BP(m.j())&&g.Vf("EVENT_ID"))O.clickTracking={clickTrackingParams:g.Vf("EVENT_ID")};else if(V.Y("html5_log_missing_itct")){var w;h=new g.no("Missing ITCT in InnerTubeContext",{isAd:m.isAd(),zuH:(w=V.getWebPlayerContextConfig())==null?void 0:w.contextId});g.kL(h)}w=O.client||{};h="EMBED";var y=QG(m);y==="leanback"? h="WATCH":V.Y("gvi_channel_client_screen")&&y==="profilepage"?h="CHANNEL":m.Yq?h="LIVE_MONITOR":y==="detailpage"?h="WATCH_FULL_SCREEN":y==="adunit"?h="ADUNIT":y==="sponsorshipsoffer"&&(h="UNKNOWN");w.clientScreen=h;if(h=m.kidsAppInfo)w.kidsAppInfo=JSON.parse(h);(y=m.JJ)&&!h&&(w.kidsAppInfo={contentSettings:{ageUpMode:uBI[y]}});if(h=m.C5)w.unpluggedAppInfo={enableFilterMode:!0};(y=m.unpluggedFilterModeType)&&!h&&(w.unpluggedAppInfo={filterModeType:zPG[y]});if(h=m.LP)w.unpluggedLocationInfo=h;O.client= w;w=O.request||{};m.l2&&(w.isPrefetch=!0);if(h=m.mdxEnvironment)w.mdxEnvironment=h;if(h=m.mdxControlMode)w.mdxControlMode=ZL7[h];O.request=w;w=O.user||{};if(h=m.Ae)w.credentialTransferTokens=[{token:h,scope:"VIDEO"}];if(h=m.pA)w.delegatePurchases={oauthToken:h},w.kidsParent={oauthToken:h};var L;h=(L=V.getWebPlayerContextConfig())==null?void 0:L.userContentRating;V.wu().Z.lH(suC)&&h&&(w.serializedUserContentRating=h);O.user=w;if(V=m.contextParams)O.activePlayers=[{playerContextParams:V}];if(m=m.clientScreenNonce)O.clientScreenNonce= m;return O}; g.x8=function(m){var V=g.v5(),O=V.client||{};if(m.forcedExperiments){var h=m.forcedExperiments.split(","),w=[];h=g.D(h);for(var y=h.next();!y.done;y=h.next())w.push(Number(y.value));O.experimentIds=w}if(w=m.homeGroupInfo)O.homeGroupInfo=JSON.parse(w);if(w=m.getPlayerType())O.playerType=w;if(w=m.Z.ctheme)O.theme=w;if(w=m.livingRoomAppMode)O.tvAppInfo=Object.assign({},O.tvAppInfo,{livingRoomAppMode:w});w=m.deviceYear;m.Y("html5_propagate_device_year")&&w&&(O.tvAppInfo=Object.assign({},O.tvAppInfo,{deviceYear:w})); if(w=m.livingRoomPoTokenId)O.tvAppInfo=Object.assign({},O.tvAppInfo,{livingRoomPoTokenId:w});V.client=O;w=V.user||{};m.enableSafetyMode&&(w=Object.assign({},w,{enableSafetyMode:!0}));var L;((L=O.tvAppInfo)==null?0:L.usePageidAsHeader)||!m.pageId||(w=Object.assign({},w,{onBehalfOfUser:m.pageId}));V.user=w;return V}; Bso=function(m,V,O){var h=m.videoId,w=g.R0(m),y=m.j(),L={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(UL()),referer:document.location.toString(),signatureTimestamp:20430},C=g.a$();m.isAutonav&&(L.autonav=!0);C.lH(141)&&(L.autonavState=C.lH(140)?"STATE_OFF":"STATE_ON");L.autoCaptionsDefaultOn=C.lH(66);YU$(m)&&(L.autoplay=!0);y.V&&m.cycToken&&(L.cycToken=m.cycToken);y.enablePrivacyFilter&&(L.enablePrivacyFilter=!0);m.isFling&&(L.fling=!0);var E=m.forceAdsUrl;if(E){C={};var q=[];E=E.split(","); E=g.D(E);for(var M=E.next();!M.done;M=E.next()){M=M.value;var f=M.split("|");f.length!==3||M.includes("=")||(f[0]="breaktype="+f[0],f[1]="offset="+f[1],f[2]="url="+f[2]);M={adtype:"video_ad"};f=g.D(f);for(var x=f.next();!x.done;x=f.next()){var R=g.D(x.value.split("="));x=R.next().value;R=$m1(R);M[x]=R.join("=")}f=M.url;x=M.presetad;R=M.viralresponseurl;var A=Number(M.campaignid),K=M.bibliotecaadid;if(M.adtype==="in_display_ad")f&&(C.url=f),x&&(C.presetAd=x),R&&(C.viralAdResponseUrl=R),A&&(C.viralCampaignId= String(A)),K&&(C.bibliotecaAdId=K);else if(M.adtype==="video_ad"){var X={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(M.offset)||0)}};if(M=Fep[M.breaktype])X.breakType=M;f&&(X.url=f);x&&(X.presetAd=x);R&&(X.viralAdResponseUrl=R);A&&(X.viralCampaignId=String(A));K&&(X.bibliotecaAdId=K);q.push(X)}}L.forceAdParameters={videoAds:q,inDisplayAd:C}}m.isInlinePlaybackNoAd&&(L.isInlinePlaybackNoAd=!0);m.isLivingRoomDeeplink&&(L.isLivingRoomDeeplink=!0);C=m.uy;if(C!=null){C={startWalltime:String(C)}; if(q=m.r4)C.manifestDuration=String(q||14400);L.liveContext=C}if(m.mutedAutoplay){L.mutedAutoplay=!0;C=y.getWebPlayerContextConfig();var c,r;(C==null?0:(c=C.embedsHostFlags)==null?0:c.allowMutedAutoplayDurationMode)&&(C==null?0:(r=C.embedsHostFlags)==null?0:r.allowMutedAutoplayDurationMode.includes(aXC[m.mutedAutoplayDurationMode]))&&(L.mutedAutoplayDurationMode=aXC[m.mutedAutoplayDurationMode])}if(m.nP?0:m.Rd)L.splay=!0;c=m.vnd;c===5&&(L.vnd=c);c={};if(r=m.isMdxPlayback)c.triggeredByMdx=r;if(r=m.PS)c.skippableAdsSupported= r.split(",").includes("ska");if(q=m.Bt){r=m.qR;C=[];q=g.D(tpl(q));for(E=q.next();!E.done;E=q.next()){E=E.value;M=E.platform;E={applicationState:E.q5?"INACTIVE":"ACTIVE",clientFormFactor:iLp[M]||"UNKNOWN_FORM_FACTOR",clientName:W9X[E.i8]||"UNKNOWN_INTERFACE",clientVersion:E.deviceVersion||"",platform:Gyo[M]||"UNKNOWN_PLATFORM"};M={};if(r){f=void 0;try{f=JSON.parse(r)}catch(n){g.cj(n)}f&&(M={params:[{key:"ms",value:f.ms}]},f.advertising_id&&(M.advertisingId=f.advertising_id),f.limit_ad_tracking!==void 0&& f.limit_ad_tracking!==null&&(M.limitAdTracking=f.limit_ad_tracking),E.osName=f.os_name,E.userAgent=f.user_agent,E.windowHeightPoints=f.window_height_points,E.windowWidthPoints=f.window_width_points)}C.push({adSignalsInfo:M,remoteClient:E})}c.remoteContexts=C}r=m.sourceContainerPlaylistId;C=m.serializedMdxMetadata;if(r||C)q={},r&&(q.mdxPlaybackContainerInfo={sourceContainerPlaylistId:r}),C&&(q.serializedMdxMetadata=C),c.mdxPlaybackSourceContext=q;L.mdxContext=c;c=V.width;c>0&&(L.playerWidthPixels= Math.round(c));if(V=V.height)L.playerHeightPixels=Math.round(V);O!==0&&(L.vis=O);if(O=y.widgetReferrer)L.widgetReferrer=O.substring(0,128);g.sY(y)&&L&&(L.ancestorOrigins=y.ancestorOrigins);m.defaultActiveSourceVideoId&&(L.compositeVideoContext={defaultActiveSourceVideoId:m.defaultActiveSourceVideoId});if(y=y.getWebPlayerContextConfig())L.encryptedHostFlags=y.encryptedHostFlags;h={videoId:h,context:w,playbackContext:{contentPlaybackContext:L}};if(m.Zd){var N;h.playbackContext.reloadPlaybackContext= {reloadPlaybackParams:(N=m.Zd)==null?void 0:N.reloadPlaybackParams}}m.contentCheckOk&&(h.contentCheckOk=!0);if(N=m.clientPlaybackNonce)h.cpn=N;if(N=m.playerParams)h.params=N;if(N=m.playlistId)h.playlistId=N;m.racyCheckOk&&(h.racyCheckOk=!0);N=m.j();w=N.embedConfig;m.LT&&N.Y("embeds_enable_per_video_embed_config")?h.serializedThirdPartyEmbedConfig=m.LT:w&&(h.serializedThirdPartyEmbedConfig=w);h.captionParams={};w=g.a$().lH(65);m.deviceCaptionsOn!=null?h.captionParams.deviceCaptionsOn=m.deviceCaptionsOn: g.Eh(N)&&(h.captionParams.deviceCaptionsOn=w!=null?!w:!1);m.uv&&(h.captionParams.deviceCaptionsLangPref=m.uv);m.BN.length?h.captionParams.viewerSelectedCaptionLangs=m.BN:g.Eh(N)&&(w=g.D7(),w==null?0:w.length)&&(h.captionParams.viewerSelectedCaptionLangs=w);w=m.fetchType==="onesie"&&m.Y("html5_onesie_attach_po_token");L=m.fetchType!=="onesie"&&m.Y("html5_non_onesie_attach_po_token");if(w||L)w=m.j(),w.WW&&(h.serviceIntegrityDimensions={},h.serviceIntegrityDimensions.poToken=w.WW);N.Y("fetch_att_independently")&& (h.attestationRequest={omitBotguardData:!0});h.playbackContext||(h.playbackContext={});h.playbackContext.devicePlaybackCapabilities=pOm(m);h.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&m.uH("noVp9",{});return h}; pOm=function(m){var V=!(m==null?0:m.Fi())&&(m==null?void 0:m.yp())&&Lp(),O;if(!(O=m==null)){O=g.WC(m);m=m.j().K;var h=tW("243");O=!(h&&Bp(O,h,m,!0)===!0)}return{supportsVp9Encoding:!(O||V),supportXhr:j3}}; Qu$=function(m,V){var O,h,w;return g.u(function(y){if(y.Z==1)return O={context:g.x8(m.j()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:m.videoId,cpn:m.clientPlaybackNonce}}]},h=g.Vs(lX7),g.I(y,g.Ia(V,O,h),2);w=y.L;return y.return(w)})}; vhl=function(m,V,O){var h=g.m9(V.experiments,"bg_vm_reinit_threshold");(!Hp||(0,g.TN)()-Hp>h)&&Qu$(m,O).then(function(w){w&&(w=w.botguardData)&&g.$m(w,V)},function(w){m.UH()||(w=JM(w),m.uH("attf",w.details))})}; o0=function(m,V){g.Z.call(this);this.app=m;this.state=V}; AF=function(m,V,O){m.state.Z.hasOwnProperty(V)||gm(m,V,O);m.state.N[V]=function(){return O.apply(m,g.AG.apply(0,arguments))}; m.state.V.add(V)}; Uc=function(m,V,O){m.state.Z.hasOwnProperty(V)||gm(m,V,O);m.app.j().V&&(m.state.J[V]=function(){return O.apply(m,g.AG.apply(0,arguments))},m.state.V.add(V))}; gm=function(m,V,O){m.state.Z[V]=function(){return O.apply(m,g.AG.apply(0,arguments))}}; g.dm=function(m,V,O){return m.state.Z[V].apply(m.state.Z,g.b(O))}; tF=function(){g.rO.call(this);this.K=new Map}; Ks=function(){g.Z.apply(this,arguments);this.element=null;this.V=new Set;this.N={};this.J={};this.Z={};this.Qt=new Set;this.D=new tF;this.L=new tF;this.T=new tF;this.K=new tF}; PyC=function(m,V,O){typeof m==="string"&&(m={mediaContentUrl:m,startSeconds:V,suggestedQuality:O});a:{if((V=m.mediaContentUrl)&&(V=/\/([ve]|embed)\/([^#?]+)/.exec(V))&&V[2]){V=V[2];break a}V=null}m.videoId=V;return Wz(m)}; Wz=function(m,V,O){if(typeof m==="string")return{videoId:m,startSeconds:V,suggestedQuality:O};V={};O=g.D(mU3);for(var h=O.next();!h.done;h=O.next())h=h.value,m[h]&&(V[h]=m[h]);if(m=m.embedConfig||m.embed_config)if(typeof m==="string")V.embed_config=m;else if(g.NA(m))try{var w=JSON.stringify(m);V.embed_config=w}catch(y){console.error("Invalid embedConfig JSON",y)}return V}; Ve3=function(m,V,O,h){if(g.NA(m)&&!Array.isArray(m)){V="playlist list listType index startSeconds suggestedQuality".split(" ");O={};for(h=0;h32&&h.push("hfr");V.isHdr()&&h.push("hdr");V.primaries==="bt2020"&&h.push("wcg");O.video_quality_features=h}}if(m=m.getPlaylistId())O.list=m;return O}; k8=function(){XK.apply(this,arguments)}; rm=function(m,V){var O={};if(m.app.j().Ae){m=g.D(yra);for(var h=m.next();!h.done;h=m.next())h=h.value,V.hasOwnProperty(h)&&(O[h]=V[h]);if(V=O.qoe_cat)m="",typeof V==="string"&&V.length>0&&(m=V.split(",").filter(function(w){return j6p.includes(w)}).join(",")),O.qoe_cat=m; Lfp(O)}else for(m=g.D(Jr3),h=m.next();!h.done;h=m.next())h=h.value,V.hasOwnProperty(h)&&(O[h]=V[h]);return O}; Lfp=function(m){var V=m.raw_player_response;if(!V){var O=m.player_response;O&&(V=JSON.parse(O))}delete m.player_response;delete m.raw_player_response;if(V){m.raw_player_response={streamingData:V.streamingData,playerConfig:V.playerConfig};var h;if((h=V.playbackTracking)==null?0:h.qoeUrl)m.raw_player_response=Object.assign({},m.raw_player_response,{playbackTracking:{qoeUrl:V.playbackTracking.qoeUrl}});V.videoDetails&&(V.videoDetails.videoId||V.videoDetails.lengthSeconds)&&(O={},V.videoDetails.videoId&& (O.videoId=V.videoDetails.videoId),V.videoDetails.lengthSeconds&&(O.lengthSeconds=V.videoDetails.lengthSeconds),m.raw_player_response=Object.assign({},m.raw_player_response,{videoDetails:O}))}}; Emp=function(m){var V=V===void 0?5:V;return m?CeG[m]||V:V}; g.cz=function(){k8.apply(this,arguments)}; q_U=function(m){gm(m,"getInternalApiInterface",m.getInternalApiInterface);gm(m,"getTrustedApi",m.getTrustedApi);gm(m,"addEventListener",m.NQ);gm(m,"removeEventListener",m.mUH);gm(m,"cueVideoByPlayerVars",m.F4);gm(m,"loadVideoByPlayerVars",m.MUf);gm(m,"preloadVideoByPlayerVars",m.Cwz);gm(m,"getAdState",m.getAdState);gm(m,"sendAbandonmentPing",m.sendAbandonmentPing);gm(m,"setLoopRange",m.setLoopRange);gm(m,"getLoopRange",m.getLoopRange);gm(m,"setAutonavState",m.setAutonavState);gm(m,"seekTo",m.Mtu); gm(m,"seekBy",m.Yzf);gm(m,"seekToLiveHead",m.seekToLiveHead);gm(m,"requestSeekToWallTimeSeconds",m.requestSeekToWallTimeSeconds);gm(m,"seekToStreamTime",m.seekToStreamTime);gm(m,"prefetchKeyPlay",m.prefetchKeyPlay);gm(m,"startSeekCsiAction",m.startSeekCsiAction);gm(m,"getStreamTimeOffset",m.getStreamTimeOffset);gm(m,"getVideoData",m.cee);gm(m,"setInlinePreview",m.setInlinePreview);gm(m,"getAppState",m.getAppState);gm(m,"updateLastActiveTime",m.updateLastActiveTime);gm(m,"setBlackout",m.setBlackout); gm(m,"setUserEngagement",m.setUserEngagement);gm(m,"updateSubtitlesUserSettings",m.updateSubtitlesUserSettings);gm(m,"getPresentingPlayerType",m.e9);gm(m,"canPlayType",m.canPlayType);gm(m,"updatePlaylist",m.updatePlaylist);gm(m,"updateVideoData",m.updateVideoData);gm(m,"updateEnvironmentData",m.updateEnvironmentData);gm(m,"sendVideoStatsEngageEvent",m.Nyu);gm(m,"productsInVideoVisibilityUpdated",m.productsInVideoVisibilityUpdated);gm(m,"setSafetyMode",m.setSafetyMode);gm(m,"isAtLiveHead",function(V){return m.isAtLiveHead(void 0, V)}); gm(m,"getVideoAspectRatio",m.getVideoAspectRatio);gm(m,"getPreferredQuality",m.getPreferredQuality);gm(m,"getPlaybackQualityLabel",m.getPlaybackQualityLabel);gm(m,"setPlaybackQualityRange",m.wjr);gm(m,"onAdUxClicked",m.onAdUxClicked);gm(m,"getFeedbackProductData",m.getFeedbackProductData);gm(m,"getStoryboardFrame",m.getStoryboardFrame);gm(m,"getStoryboardFrameIndex",m.getStoryboardFrameIndex);gm(m,"getStoryboardLevel",m.getStoryboardLevel);gm(m,"getNumberOfStoryboardLevels",m.getNumberOfStoryboardLevels); gm(m,"getCaptionWindowContainerId",m.getCaptionWindowContainerId);gm(m,"getAvailableQualityLabels",m.getAvailableQualityLabels);gm(m,"addCueRange",m.addCueRange);gm(m,"addUtcCueRange",m.addUtcCueRange);gm(m,"showAirplayPicker",m.showAirplayPicker);gm(m,"dispatchReduxAction",m.dispatchReduxAction);gm(m,"getPlayerResponse",m.SY);gm(m,"getWatchNextResponse",m.IuY);gm(m,"getHeartbeatResponse",m.BV);gm(m,"getCurrentTime",m.sj);gm(m,"getDuration",m.Gs);gm(m,"getPlayerState",m.getPlayerState);gm(m,"getPlayerStateObject", m.WV);gm(m,"getVideoLoadedFraction",m.getVideoLoadedFraction);gm(m,"getProgressState",m.getProgressState);gm(m,"getVolume",m.getVolume);gm(m,"setVolume",m.i$);gm(m,"isMuted",m.isMuted);gm(m,"mute",m.FI);gm(m,"unMute",m.b$);gm(m,"loadModule",m.loadModule);gm(m,"unloadModule",m.unloadModule);gm(m,"getOption",m.PX);gm(m,"getOptions",m.getOptions);gm(m,"setOption",m.setOption);gm(m,"loadVideoById",m.Tx);gm(m,"loadVideoByUrl",m.iO);gm(m,"playVideo",m.yN);gm(m,"loadPlaylist",m.loadPlaylist);gm(m,"nextVideo", m.nextVideo);gm(m,"previousVideo",m.previousVideo);gm(m,"playVideoAt",m.playVideoAt);gm(m,"getDebugText",m.getDebugText);gm(m,"getWebPlayerContextConfig",m.getWebPlayerContextConfig);gm(m,"notifyShortsAdSwipeEvent",m.notifyShortsAdSwipeEvent);gm(m,"getVideoContentRect",m.getVideoContentRect);gm(m,"setSqueezeback",m.setSqueezeback);gm(m,"toggleSubtitlesOn",m.toggleSubtitlesOn);gm(m,"isSubtitlesOn",m.isSubtitlesOn);gm(m,"getAudioTrack",m.PV);gm(m,"setAudioTrack",m.e5Y);gm(m,"getAvailableAudioTracks", m.JM);gm(m,"reportPlaybackIssue",m.reportPlaybackIssue);gm(m,"setAutonav",m.setAutonav);gm(m,"isNotServable",m.isNotServable);gm(m,"channelSubscribed",m.channelSubscribed);gm(m,"channelUnsubscribed",m.channelUnsubscribed);gm(m,"togglePictureInPicture",m.togglePictureInPicture);gm(m,"supportsGaplessAudio",m.supportsGaplessAudio);gm(m,"supportsGaplessShorts",m.supportsGaplessShorts);gm(m,"enqueueVideoByPlayerVars",function(V){return void m.enqueueVideoByPlayerVars(V)}); gm(m,"clearQueue",m.clearQueue);gm(m,"getMaxPlaybackQuality",m.getMaxPlaybackQuality);gm(m,"getUserPlaybackQualityPreference",m.getUserPlaybackQualityPreference);gm(m,"getSubtitlesUserSettings",m.getSubtitlesUserSettings);gm(m,"resetSubtitlesUserSettings",m.resetSubtitlesUserSettings);gm(m,"setMinimized",m.setMinimized);gm(m,"setOverlayVisibility",m.setOverlayVisibility);gm(m,"confirmYpcRental",m.confirmYpcRental);gm(m,"queueNextVideo",m.queueNextVideo);gm(m,"handleExternalCall",m.handleExternalCall); gm(m,"logApiCall",m.logApiCall);gm(m,"isExternalMethodAvailable",m.isExternalMethodAvailable);gm(m,"setScreenLayer",m.setScreenLayer);gm(m,"getCurrentPlaylistSequence",m.getCurrentPlaylistSequence);gm(m,"getPlaylistSequenceForTime",m.getPlaylistSequenceForTime);gm(m,"shouldSendVisibilityState",m.shouldSendVisibilityState);gm(m,"syncVolume",m.syncVolume);gm(m,"highlightSettingsMenuItem",m.highlightSettingsMenuItem);gm(m,"openSettingsMenuItem",m.openSettingsMenuItem);gm(m,"getEmbeddedPlayerResponse", m.getEmbeddedPlayerResponse);gm(m,"getVisibilityState",m.getVisibilityState);gm(m,"isMutedByMutedAutoplay",m.isMutedByMutedAutoplay);gm(m,"isMutedByEmbedsMutedAutoplay",m.isMutedByEmbedsMutedAutoplay);gm(m,"setGlobalCrop",m.setGlobalCrop);gm(m,"setInternalSize",m.setInternalSize);gm(m,"setFauxFullscreen",m.setFauxFullscreen);gm(m,"setAppFullscreen",m.setAppFullscreen)}; bb=function(m,V,O){m=g.DZ(m.XJ(),V);return O?(O.addOnDisposeCallback(m),null):m}; g.S3=function(m,V,O){return m.app.j().Y5?V:g.w0("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:V,SHORTCUT:O})}; MeG=function(m){m.XJ().element.setAttribute("aria-live","polite")}; g.I0=function(m,V){g.cz.call(this,m,V);q_U(this);Uc(this,"addEventListener",this.eg);Uc(this,"removeEventListener",this.DUe);Uc(this,"cueVideoByPlayerVars",this.Y1);Uc(this,"loadVideoByPlayerVars",this.oDe);Uc(this,"preloadVideoByPlayerVars",this.BHr);Uc(this,"loadVideoById",this.Tx);Uc(this,"loadVideoByUrl",this.iO);Uc(this,"playVideo",this.yN);Uc(this,"loadPlaylist",this.loadPlaylist);Uc(this,"nextVideo",this.nextVideo);Uc(this,"previousVideo",this.previousVideo);Uc(this,"playVideoAt",this.playVideoAt); Uc(this,"getVideoData",this.pY);Uc(this,"seekBy",this.kMr);Uc(this,"seekTo",this.Pc0);Uc(this,"showControls",this.showControls);Uc(this,"hideControls",this.hideControls);Uc(this,"cancelPlayback",this.cancelPlayback);Uc(this,"getProgressState",this.getProgressState);Uc(this,"isInline",this.isInline);Uc(this,"setInline",this.setInline);Uc(this,"setLoopVideo",this.setLoopVideo);Uc(this,"getLoopVideo",this.getLoopVideo);Uc(this,"getVideoContentRect",this.getVideoContentRect);Uc(this,"getVideoStats",this.LSu); Uc(this,"getCurrentTime",this.bV);Uc(this,"getDuration",this.Gs);Uc(this,"getPlayerState",this.lV);Uc(this,"getVideoLoadedFraction",this.dfN);Uc(this,"mute",this.FI);Uc(this,"unMute",this.b$);Uc(this,"setVolume",this.i$);Uc(this,"loadModule",this.loadModule);Uc(this,"unloadModule",this.unloadModule);Uc(this,"getOption",this.PX);Uc(this,"getOptions",this.getOptions);Uc(this,"setOption",this.setOption);Uc(this,"addCueRange",this.addCueRange);Uc(this,"getDebugText",this.getDebugText);Uc(this,"getStoryboardFormat", this.getStoryboardFormat);Uc(this,"toggleFullscreen",this.toggleFullscreen);Uc(this,"isFullscreen",this.isFullscreen);Uc(this,"getPlayerSize",this.getPlayerSize);Uc(this,"toggleSubtitles",this.toggleSubtitles);Uc(this,"setCenterCrop",this.setCenterCrop);Uc(this,"setFauxFullscreen",this.setFauxFullscreen);Uc(this,"setSizeStyle",this.setSizeStyle);Uc(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);Uc(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);hcl(this)}; g.e3=function(m){m=m.Gp();var V=m.IJ.get("endscreen");return V&&V.oI()?!0:m.Yw()}; g.ub=function(m,V){m.getPresentingPlayerType()===3?m.publish("mdxautoplaycancel"):m.bH("onAutonavCancelled",V)}; g.ZZ=function(m){var V=zc(m.Gp());return m.app.P7&&!m.isFullscreen()||m.getPresentingPlayerType()===3&&V&&V.hasNext()&&V.hasPrevious()||!!m.getPlaylist()}; g.sc=function(m,V){g.dm(m,"addEmbedsConversionTrackingParams",[V])}; g.a0=function(m){return(m=g.FK(m.Gp()))?m.vI():{}}; g.f7p=function(m){m=(m=m.getVideoData())&&m.L;return!!m&&!(!m.audio||!m.video)&&m.mimeType!=="application/x-mpegURL"}; g.ib=function(m,V,O){m=m.xN().element;var h=xS(m.children,function(w){w=Number(w.getAttribute("data-layer"));return O-w||1}); h<0&&(h=-(h+1));Ny(m,V,h);V.setAttribute("data-layer",String(O))}; g.Gc=function(m){var V=m.j();if(!V.l2)return!1;var O=m.getVideoData();if(!O||m.getPresentingPlayerType()===3)return!1;var h=(!O.isLiveDefaultBroadcast||V.Y("allow_poltergust_autoplay"))&&!qE(O);h=O.isLivePlayback&&(!V.Y("allow_live_autoplay")||!h);var w=O.isLivePlayback&&V.Y("allow_live_autoplay_on_mweb");m=m.getPlaylist();m=!!m&&m.hasNext();var y=O.mS&&O.mS.playerOverlays||null;y=!!(y&&y.playerOverlayRenderer&&y.playerOverlayRenderer.autoplay);y=O.Sb&&y;return!O.ypcPreview&&(!h||w)&&!g.vH(O.Sm,"ypc")&& !m&&(!g.sY(V)||y)}; xU$=function(m,V){m=m.app.Ic().N.n1();m=g.D(m);for(var O=m.next();!O.done;O=m.next()){O=O.value;var h=O.getAvailableAudioTracks(),w=null;h=g.D(h);for(var y=h.next();!y.done;y=h.next())if(y=y.value,y.getLanguageInfo().getId()===V){w=y;break}w&&O.vN(w,!0)}}; ps=function(){sb.apply(this,arguments);this.requestHeaders={}}; lb=function(){Bz||(Bz=new ps);return Bz}; Qj=function(m,V){V?m.requestHeaders.Authorization="Bearer "+V:delete m.requestHeaders.Authorization}; RcI=function(m){this.experiments=m;this.Z=2048;this.T=0;this.Zu=(this.J=this.Y("html5_streaming_resilience"))?.5:.25;var V=V===void 0?0:V;this.D=g.m9(this.experiments,"html5_media_time_weight_prop")||V;this.Qt=(this.K=this.experiments.w0("html5_consider_end_stall"))&&j3;this.L=this.experiments.w0("html5_measure_max_progress_handling");this.V=this.Y("html5_treat_requests_pre_elbow_as_metadata");this.N=this.Y("html5_media_time_weight")||!!this.D;this.Y("html5_sabr_live_audio_early_return_fix")&&j3&& (this.Z=65536)}; g.vz=function(m){g.Z.call(this);var V=this;this.RY=m;this.BD={kK:function(){return V.RY}}}; g.Pz=function(m,V,O,h){h=h===void 0?!1:h;g.ED.call(this,V);var w=this;this.U=m;this.Zu=h;this.K=new g.Rc(this);this.fade=new g.OR(this,O,!0,void 0,void 0,function(){w.df()}); g.a(this,this.K);g.a(this,this.fade)}; m2=function(m){var V=m.U.getRootNode();return m.U.Y("web_watch_pip")||m.U.Y("web_shorts_pip")?Rx(V):document}; om5=function(m){m.sourceElement&&(document.activeElement&&g.nK(m.element,document.activeElement)&&m.sourceElement.focus(),m.sourceElement.setAttribute("aria-expanded","false"),m.sourceElement=void 0);g.np(m.K);m.N=void 0}; VF=function(m,V,O){m.FQ()?m.EU():m.OI(V,O)}; Oj=function(m,V,O,h){h=new g.p({G:"div",KA:["ytp-linked-account-popup-button"],c6:h,B:{role:"button",tabindex:"0"}});V=new g.p({G:"div",X:"ytp-linked-account-popup",B:{role:"dialog","aria-modal":"true",tabindex:"-1"},S:[{G:"div",X:"ytp-linked-account-popup-title",c6:V},{G:"div",X:"ytp-linked-account-popup-description",c6:O},{G:"div",X:"ytp-linked-account-popup-buttons",S:[h]}]});g.Pz.call(this,m,{G:"div",X:"ytp-linked-account-popup-container",S:[V]},100);var w=this;this.dialog=V;g.a(this,this.dialog); h.listen("click",function(){w.EU()}); g.a(this,h);g.ib(this.U,this.element,4);this.hide()}; g.wd=function(m,V,O,h){g.ED.call(this,m);this.priority=V;O&&g.hj(this,O);h&&this.setContent(h)}; g.yF=function(m,V,O,h){m=m===void 0?{}:m;V=V===void 0?[]:V;O=O===void 0?!1:O;h=h===void 0?!1:h;V.push("ytp-menuitem");var w=m;"role"in w||(w.role="menuitem");O||(w=m,"tabindex"in w||(w.tabindex="0"));m={G:O?"a":"div",KA:V,B:m,S:[{G:"div",X:"ytp-menuitem-icon",c6:"{{icon}}"},{G:"div",X:"ytp-menuitem-label",c6:"{{label}}"},{G:"div",X:"ytp-menuitem-content",c6:"{{content}}"}]};h&&m.S.push({G:"div",X:"ytp-menuitem-secondary-icon",c6:"{{secondaryIcon}}"});return m}; g.hj=function(m,V){m.updateValue("label",V)}; jy=function(m){g.wd.call(this,g.yF({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var V=this;this.U=m;this.L=this.Z=!1;this.Qp=m.tZ();m.createServerVe(this.element,this,!0);this.C(this.U,"settingsMenuVisibilityChanged",function(O){V.u2(O)}); this.C(this.U,"videodatachange",this.T);this.listen("click",this.onClick);this.T()}; Lc=function(m){return m?g.fy(m):""}; Jj=function(m){g.Z.call(this);this.api=m}; Cc=function(m){Jj.call(this,m);var V=this;gm(m,"setAccountLinkState",function(O){V.setAccountLinkState(O)}); gm(m,"updateAccountLinkingConfig",function(O){V.updateAccountLinkingConfig(O)}); m.addEventListener("videodatachange",function(O,h){V.onVideoDataChange(h)}); m.addEventListener("settingsMenuInitialized",function(){V.menuItem=new jy(V.api);g.a(V,V.menuItem)})}; Ej=function(m){Jj.call(this,m);var V=this;this.Z=null;this.events=new g.Rc(m);g.a(this,this.events);this.events.C(m,"applicationvideodatachange",function(){V.yk()})}; gmU=function(m){this.api=m;this.Z={}}; qo=function(m,V,O,h){V in m.Z||(O=new g.a2(O,h,{id:V,priority:2,namespace:"appad"}),m.api.SK([O],1),m.Z[V]=O)}; var wX5=function(m,V){return bp[J[4]](this,6,m,V)}; Mo=function(m){Jj.call(this,m);var V=this;this.events=new g.Rc(this);g.a(this,this.events);this.Z=new gmU(this.api);this.events.C(this.api,"legacyadtrackingpingreset",function(){V.Z.Z={}}); this.events.C(this.api,"legacyadtrackingpingchange",function(O){var h=V.Z;qo(h,"part2viewed",1,0x8000000000000);qo(h,"engagedview",Math.max(1,O.oz*1E3),0x8000000000000);if(!O.isLivePlayback){var w=O.lengthSeconds*1E3;Uf(O)&&h.api.Y("html5_shorts_gapless_ads_duration_fix")&&(w=h.api.getProgressState().seekableEnd*1E3-O.uL);qo(h,"videoplaytime25",w*.25,w);qo(h,"videoplaytime50",w*.5,w);qo(h,"videoplaytime75",w*.75,w);qo(h,"videoplaytime100",w,0x8000000000000);qo(h,"conversionview",w,0x8000000000000); qo(h,"videoplaybackstart",1,w);qo(h,"videoplayback2s",2E3,w);qo(h,"videoplayback10s",1E4,w)}}); this.events.C(this.api,g.Gu("appad"),this.L);this.events.C(this.api,g.pR("appad"),this.L)}; teX=function(m,V,O){if(!(O in V))return!1;V=V[O];Array.isArray(V)||(V=[V]);V=g.D(V);for(O=V.next();!O.done;O=V.next()){O=O.value;var h={CPN:m.api.getVideoData().clientPlaybackNonce};O=g.nZ(O,h);h=void 0;h=h===void 0?!1:h;(h=uI(zu(O,Arl),O,h,"Active View 3rd Party Integration URL"))||(h=void 0,h=h===void 0?!1:h,h=uI(zu(O,UUl),O,h,"Google/YouTube Brand Lift URL"));h||(h=void 0,h=h===void 0?!1:h,h=uI(zu(O,dU7),O,h,"Nielsen OCR URL"));g.IS(O,void 0,h)}return!0}; fc=function(m,V){Kf5(m,V).then(function(O){g.IS(V,void 0,void 0,O)})}; x1=function(m,V){V.forEach(function(O){fc(m,O)})}; Kf5=function(m,V){return g.g2(m.api.j())&&Rv(V)&&x4(V)?g.Uh(m.api.j(),g.Vj(m.api.getVideoData())).then(function(O){var h;O&&(h={Authorization:"Bearer "+O});return h},void 0):e6()}; Wf0=function(m){Jj.call(this,m);this.events=new g.Rc(m);g.a(this,this.events);this.events.C(m,"videoready",function(V){if(m.getPresentingPlayerType()===1){var O,h,w={playerDebugData:{pmlSignal:!!((O=V.getPlayerResponse())==null?0:(h=O.adPlacements)==null?0:h.some(function(y){var L;return y==null?void 0:(L=y.adPlacementRenderer)==null?void 0:L.renderer})), contentCpn:V.clientPlaybackNonce}};g.Rz("adsClientStateChange",w)}})}; RE=function(m,V){g.wd.call(this,g.yF({role:"menuitemcheckbox","aria-checked":"false"}),V,m,{G:"div",X:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; oE=function(m,V){m.checked=V;m.element.setAttribute("aria-checked",String(m.checked))}; Xpa=function(m){var V=!m.j().Ak&&m.getPresentingPlayerType()!==3;return m.isFullscreen()||V}; g.gd=function(m,V,O,h){var w=m.currentTarget;if((O===void 0||!O)&&g.W5(m))return m.preventDefault(),!0;V.pauseVideo();m=w.getAttribute("href");g.Fn(m,h,!0);return!1}; g.Aj=function(m,V,O){if(LI(V.j())&&V.getPresentingPlayerType()!==2){if(g.W5(O))return V.isFullscreen()&&!V.j().externalFullscreen&&V.toggleFullscreen(),O.preventDefault(),!0}else{var h=g.W5(O);h&&V.pauseVideo();g.Fn(m,void 0,!0);h&&(g.aR(m),O.preventDefault())}return!1}; Hr$=function(m){m=Uj.includes("pt-BR")?m.Y("delhi_modern_web_player_icons")?UD():{G:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",Df:!0,B:{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"}}]}:m.Y("delhi_modern_web_player_icons")?fNU():{G:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",Df:!0,B:{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"}}]};m.X="ytp-subtitles-button-icon"; return m}; TC7=function(m){return Uj.includes("pt-BR")?m?UD():{G:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{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"}}]}:m?{G:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},S:[{G:"path",B:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{G:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; dd=function(){return{G:"div",X:"ytp-spinner-container",S:[{G:"div",X:"ytp-spinner-rotator",S:[{G:"div",X:"ytp-spinner-left",S:[{G:"div",X:"ytp-spinner-circle"}]},{G:"div",X:"ytp-spinner-right",S:[{G:"div",X:"ytp-spinner-circle"}]}]}]}}; tj=function(m){if(document.createRange){var V=document.createRange();V&&(V.selectNodeContents(m),m=window.getSelection())&&(m.removeAllRanges(),m.addRange(V))}}; W1=function(m,V){var O=m.Y("web_fix_annotations")?"Sobreposi\u00e7\u00f5es com anota\u00e7\u00f5es":"Anota\u00e7\u00f5es";RE.call(this,O,g.Kc.jq);this.U=m;this.Qp=V;this.Z=!1;m.Y("web_settings_menu_icons")&&(V=m.Y("delhi_modern_web_player_icons")?{G:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z", fill:"white"}}]}:{G:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{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.setIcon(V));this.C(m,"videodatachange",this.oY);this.C(m,"onApiChange",this.oY);this.subscribe("select",this.onSelect,this);this.oY()}; $U5=function(m){Jj.call(this,m);var V=this;this.events=new g.Rc(m);g.a(this,this.events);m.addEventListener("settingsMenuInitialized",function(){var O=new W1(V.api,V.api.tZ());g.a(V,O)})}; H1=function(m){var V=this;this.Z={};this.D={};this.BD={RGz:function(){return V.Z}}; this.videoData=m;var O,h=(O=m.D)==null?void 0:O.L;h&&h.length>0?this.L=h:(m=m.getAvailableAudioTracks(),this.L=m.length>0?Y_7(m):[]);m=g.D(XZ);for(O=m.next();!O.done;O=m.next())O=O.value,this.Z[O]=kXX[O](this.L);this.Dk()}; rrX=function(m,V){var O=V.getAudioTrack();return O.id!=="und"?g.uA(m,function(h){var w;return((w=h.fP)==null?void 0:w.name)===O.getLanguageInfo().name}):m}; cra=function(m,V){return V.getUserAudio51Preference()?g.uA(m,Tq):m}; Y_7=function(m){return m.map(function(V){return new b6(V.id,"application/x-mpegURL",{fP:V.fP})})}; DUI=function(m){return g.eU("yt-player-drc-pref")?g.uA(m,$1):m}; NCo=function(m){return oZa()===2?g.uA(m,Y1):m}; br5=function(m){return gZ7()===1?g.uA(m,k1):m}; k1=function(m){var V;return((V=m.audio)==null?void 0:V.audioQuality)==="AUDIO_QUALITY_HIGH"&&!u6(m)}; $1=function(m){var V;return((V=m.audio)==null?void 0:V.Z)===!0}; Tq=function(m){return u6(m)}; nma=function(m){return m.fP!==void 0}; Y1=function(m){var V;return((V=m.audio)==null?void 0:V.L)===!0}; rd=function(m,V){if(m.length<2)return!1;var O=V(m[0]);return m.some(function(h){return V(h)!==O})}; S_X=function(m,V){m=new Set(m.map(V));m.delete(void 0);return m.size>=2}; c1=function(m){Jj.call(this,m);var V=this;this.events=new g.Rc(m);g.a(this,this.events);var O=this.api.Y("html5_enable_audio_quality_setting_feature");gm(this.api,"getUserAudioQualitySetting",function(){return O?V.getUserAudioQualitySetting():2}); gm(this.api,"setUserAudioQualitySetting",function(h){O&&V.setUserAudioQualitySetting(h)}); gm(this.api,"hasHqaAudioTrack",function(){return O?V.hasHqaAudioTrack():!1}); gm(this.api,"getAudioQualitySettingState",function(){return O?V.api.Ld(4):1}); this.m_=gZ7();this.updateEnvironmentData()}; I7U=function(m){Jj.call(this,m);var V=this;gm(this.api,"getAudioTrackState",function(){return V.api.Ld(0)})}; DP=function(m){g.p.call(this,{G:"button",KA:["ytp-button","ytp-autonav-toggle"],B:{title:m.Y("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},S:[{G:"div",X:"ytp-autonav-toggle-button-container",S:[{G:"div",X:"ytp-autonav-toggle-button",B:{"aria-checked":"true"}}]}]});this.U=m;this.L=[];this.Z=!1;this.isChecked=!0;m.createClientVe(this.element,this, 113681);this.C(m,"presentingplayerstatechange",this.xt);this.listen("click",this.onClick);this.L.push(this.C(this.U,"videodatachange",this.xt));this.L.push(this.C(this.U,"videoplayerreset",this.xt));this.L.push(this.C(this.U,"onPlaylistUpdate",this.xt));this.L.push(this.C(this.U,"autonavchange",this.Qb));bb(m,this.element,this);this.xt()}; ec$=function(m){m.isChecked=m.isChecked;m.LA("ytp-autonav-toggle-button").setAttribute("aria-checked",String(m.isChecked));var V=m.isChecked?"A reprodu\u00e7\u00e3o autom\u00e1tica est\u00e1 ativada":"A reprodu\u00e7\u00e3o autom\u00e1tica est\u00e1 desativada";m.U.j().Y("player_tooltip_data_title_killswitch")?m.update({title:V,label:V}):m.update({"data-tooltip-title":V,label:V});m.U.cj()}; ueC=function(m){return m.U.j().Y("web_player_autonav_use_server_provided_state")&&fd(m.QF())}; zc5=function(m){Jj.call(this,m);var V=this;this.events=new g.Rc(m);g.a(this,this.events);this.events.C(m,"standardControlsInitialized",function(){var O=new DP(m);g.a(V,O);m.RP(O,"RIGHT_CONTROLS_LEFT")})}; bK=function(m){var V=m.Y("web_player_use_cinematic_label_2")?"Ambiente integrado":"Ilumina\u00e7\u00e3o cinematogr\u00e1fica";RE.call(this,V,g.Kc.m7);var O=this;this.U=m;this.Z=!1;this.L=new g.mq(function(){g.Ma(O.element,"ytp-menuitem-highlighted")},0); this.Qp=m.tZ();m=m.Y("delhi_modern_web_player_icons")?{G:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z", fill:"white"}}]}:{G:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{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.setIcon(m);this.subscribe("select",this.D,this);this.listen(No,this.T);g.a(this,this.L)}; nc=function(m){Jj.call(this,m);var V=this;this.Z=!1;m.addEventListener("settingsMenuInitialized",function(){Zr0(V)}); m.addEventListener("highlightSettingsMenu",function(O){Zr0(V);var h=V.menuItem;O==="menu_item_cinematic_lighting"&&(g.EM(h.element,"ytp-menuitem-highlighted"),g.EM(h.element,"ytp-menuitem-highlight-transition-enabled"),h.L.start())}); gm(m,"updateCinematicSettings",function(O){V.updateCinematicSettings(O)})}; Zr0=function(m){m.menuItem||(m.menuItem=new bK(m.api),g.a(m,m.menuItem),m.menuItem.oY(m.Z))}; s6U=function(m){Jj.call(this,m);var V=this;this.events=new g.Rc(m);g.a(this,this.events);this.events.C(m,"applicationvideodatachange",function(O,h){h=h.clipConfig;O==="dataloaded"&&h&&h.startTimeMs!=null&&h.endTimeMs!=null&&V.api.setLoopRange({startTimeMs:Math.floor(Number(h.startTimeMs)),endTimeMs:Math.floor(Number(h.endTimeMs)),postId:h.postId,type:"clips"})})}; Sy=function(m){Jj.call(this,m);var V=this;this.events=new g.Rc(m);g.a(this,this.events);gm(m,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));gm(m,"setCreatorEndscreenHideButton",this.Z.bind(this));this.Y("web_fix_annotations")&&this.events.C(m,"annotationvisibility",function(O){V.setCreatorEndscreenVisibility(!O);V.hideButton&&g.gb(V.hideButton,O)})}; a7o=function(m){Jj.call(this,m);var V=this;this.events=new g.Rc(m);g.a(this,this.events);this.events.C(m,"videodatachange",function(){var O=V.api.getRootNode(),h=V.api.j();g.EM(O,"ytp-delhi-modern");h.Y("delhi_modern_web_player_icons")&&g.EM(O,"ytp-delhi-modern-icons");h.Y("delhi_modern_web_player_horizontal_volume_controls")&&g.EM(O,"ytp-delhi-horizontal-volume-controls");h.Y("delhi_modern_web_player_compact_controls")&&g.EM(O,"ytp-delhi-modern-compact-controls");h.Y("delhi_modern_web_player_big_mode_consistent_pill_height")&& g.EM(O,"ytp-big-mode-consistent-pill-height");switch(HP(h.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.EM(O,"ytp-delhi-modern-with-luminosity");break;case "difference":g.EM(O,"ytp-delhi-modern-with-difference");break;case "exclusion":g.EM(O,"ytp-delhi-modern-with-exclusion")}O=V.api.isHdr()||V.api.Y("delhi_modern_web_player_disable_frosted_glass")?"none":"initial";V.api.getRootNode().style.setProperty("--yt-frosted-glass-backdrop-filter-override",O);FfC(V)}); this.events.C(m,"resize",function(){FfC(V)})}; FfC=function(m){var V=m.api.Y("delhi_modern_web_player_compact_controls"),O=g.m9(m.api.j().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),h=V||O>0&&m.api.getPlayerSize().width<=O;V=m.api.getRootNode();V.classList.toggle("ytp-delhi-modern-compact-controls",h);O=h?"40px":"48px";var w=h?"8px":"12px",y=h?"56px":"72px",L=h?"56px":"64px",C=h?"48px":"56px",E=h?"12px":"20px";h=h?"72px":"96px";m.api.Y("delhi_modern_web_player_big_mode_consistent_pill_height")&&(C="56px",E="12px", h="80px");V.style.setProperty("--yt-delhi-pill-height",O);V.style.setProperty("--yt-delhi-pill-top-height",w);V.style.setProperty("--yt-delhi-bottom-controls-height",y);V.style.setProperty("--yt-delhi-bottom-controls-height-xsmall-width-mode",L);V.style.setProperty("--yt-delhi-big-mode-pill-height",C);V.style.setProperty("--yt-delhi-big-mode-pill-top-height",E);V.style.setProperty("--yt-delhi-big-mode-bottom-controls-height",h)}; IE=function(m,V,O,h,w){var y=m.Y("html5_enable_new_audio_settings_menu");RE.call(this,"Volume est\u00e1vel",y?irG.hB:g.Kc.hB);this.U=m;this.T=V;this.L=O;this.hasDrcAudioTrack=h;this.getDrcState=w;this.D=this.enableNewAudioSettingsMenu=this.Z=!1;g.EM(this.element,"ytp-drc-menu-item");this.Qp=(this.enableNewAudioSettingsMenu=y)?m.tZ().eA:m.tZ();m.Y("html5_enable_voice_boost")?(this.D=!0,this.C(m,"onFilterAudioFeatures",this.t6)):m.addEventListener("videodatachange",this.t6.bind(this));m.Y("mta_drc_mutual_exclusion_removal")&& this.C(m,"onPlaybackAudioChange",this.t6);m.createClientVe(this.element,this,273317);this.listen("click",this.N);V=this.L()===1&&this.hasDrcAudioTrack();this.enableNewAudioSettingsMenu||(m=m.Y("delhi_modern_web_player_icons")?{G:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z", fill:"white"}}]}:{G:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{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.setIcon(m));this.subscribe("select",this.K,this);this.enableNewAudioSettingsMenu||this.D?this.t6():(this.setEnabled(this.hasDrcAudioTrack()),oE(this,V),this.Qp.SU(this))}; ey=function(m){Jj.call(this,m);var V=this;this.events=new g.Rc(m);g.a(this,this.events);m.Y("html5_show_drc_toggle")&&m.addEventListener("settingsMenuInitialized",function(){V.menuItem||(V.menuItem=new IE(V.api,V.setDrcUserPreference.bind(V),V.getDrcUserPreference.bind(V),V.j5.bind(V),V.getDrcState.bind(V)),g.a(V,V.menuItem))}); gm(this.api,"setDrcUserPreference",function(h){V.setDrcUserPreference(h)}); gm(this.api,"getDrcUserPreference",function(){return V.getDrcUserPreference()}); gm(this.api,"hasDrcAudioTrack",function(){return V.j5()}); gm(this.api,"getDrcState",function(){return V.getDrcState()}); var O;this.Z=(O=g.eU("yt-player-drc-pref"))!=null?O:1;this.updateEnvironmentData()}; uK=function(m){Jj.call(this,m);var V=this;this.Z={};this.events=new g.Rc(m);g.a(this,this.events);this.events.C(m,"videodatachange",function(){V.onVideoDataChange()}); this.events.C(m,g.Gu("embargo"),function(O){V.api.hk(!0);var h,w=(h=V.Z[O.id])!=null?h:[];h=g.D(w);for(w=h.next();!w.done;w=h.next()){var y=w.value;V.api.hideControls();V.api.x5("auth",2,"This video isn't available in your current playback area",yK({embargoed:1,id:O.id,idx:O.L,start:O.start}));w=void 0;(y=(w=y.embargo)==null?void 0:w.onTrigger)&&V.api.bH("innertubeCommand",y)}})}; GXG=function(m,V){var O;return(O=V.onEnter)==null?void 0:O.some(m.L)}; pp0=function(m,V){V=g.D(V);for(var O=V.next();!O.done;O=V.next()){O=O.value;var h=void 0,w=Number((h=O.playbackPosition)==null?void 0:h.utcTimeMillis)/1E3,y=void 0;h=w+Number((y=O.duration)==null?void 0:y.seconds);y="embargo_"+w;m.api.addUtcCueRange(y,w,h,"embargo",!1);O.onEnter&&(m.Z[y]=O.onEnter.filter(m.L))}}; zq=function(m){Jj.call(this,m);var V=this;this.Z=[];this.events=new g.Rc(m);g.a(this,this.events);gm(m,"addEmbedsConversionTrackingParams",function(O){V.addEmbedsConversionTrackingParams(O)}); this.events.C(m,"veClickLogged",function(O){V.api.hasVe(O)&&(O=O.visualElement.getAsJspb(),O=g.BS(O,2),V.Z.push(O))})}; BC1=function(m){Jj.call(this,m);gm(m,"isEmbedsShortsMode",function(){return m.isEmbedsShortsMode()}); gm(m,"getReelItemWatchResponse",function(){var V,O;return(O=(V=m.getVideoData(1))==null?void 0:V.getReelItemWatchResponse())!=null?O:null})}; l77=function(m){Jj.call(this,m);var V=this;this.events=new g.Rc(m);g.a(this,this.events);this.events.C(m,"initialvideodatacreated",function(O){gC(o6(),16623);V.Z=g.t1();var h=m.j().hn&&!O.nP;if(mv(O)&&h){gC(o6(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(O.getWatchNextResponse()){var w,y=(w=O.getWatchNextResponse())==null?void 0:w.trackingParams;y&&U_(y)}if(O.getPlayerResponse()){var L;(O=(L=O.getPlayerResponse())==null?void 0:L.trackingParams)&&U_(O)}}else gC(o6(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),O.getEmbeddedPlayerResponse()&&(L=(y=O.getEmbeddedPlayerResponse())==null?void 0:y.trackingParams)&&U_(L)}); this.events.C(m,"loadvideo",function(){gC(o6(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:V.Z})}); this.events.C(m,"cuevideo",function(O){O===1&&gC(o6(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:V.Z})}); this.events.C(m,"largeplaybuttonclicked",function(O){gC(o6(),27240,O.visualElement)}); this.events.C(m,"playlistnextbuttonclicked",function(O){gC(o6(),27240,O.visualElement)}); this.events.C(m,"playlistprevbuttonclicked",function(O){gC(o6(),27240,O.visualElement)}); this.events.C(m,"playlistautonextvideo",function(){gC(o6(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; ZP=function(m,V){g.Z.call(this);var O=this;this.Z=null;this.D=V;V=[];for(var h=0;h<=100;h++)V.push(h/100);V={threshold:V,trackVisibility:!0,delay:1E3};(this.L=window.IntersectionObserver?new IntersectionObserver(function(w){w=w[w.length-1];var y=null;typeof w.isVisible==="undefined"?document.visibilityState==="visible"&&w.isIntersecting&&w.intersectionRatio>0?y=w.intersectionRatio:document.visibilityState==="hidden"?y=0:y=null:y=w.isVisible?w.intersectionRatio:0;y!=null&&(y=Math.max(y,0),y=Math.min(y, 1));O.Z=y;typeof O.D==="function"&&O.D(O.Z)},V):null)&&this.L.observe(m)}; vmI=function(m){Jj.call(this,m);var V=this;this.events=new g.Rc(m);g.a(this,this.events);this.events.C(m,"applicationInitialized",function(){Q60(V)})}; Q60=function(m){var V=m.api.getRootNode(),O,h=m.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((O=V.parentElement)==null?void 0:O.parentElement)||V:V;m.Z=new ZP(h,function(w){w!=null&&(m.api.j().w4=w,m.api.j().pR="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.a(m,m.Z);m.events.C(m.api,"videoStatsPingCreated",function(w){var y=m.Z;y=y.Z==null?null:Math.round(y.Z*100)/100;w.inview=y!=null?y:void 0;y=m.api.getPlayerSize();if(y.height>0&&y.width>0){y=[Math.round(y.width),Math.round(y.height)];var L=g.CI();L>1&&y.push(L);y=y.join(":")}else y=void 0;w.size=y})}; sj=function(m){Jj.call(this,m);var V=this;gm(this.api,"dismissFeaturedProductOverlay",function(){V.dismissFeaturedProductOverlay()})}; Pe5=function(m){var V;return((V=((m==null?void 0:m.messageRenderers)||[]).find(function(O){return!!O.timeCounterRenderer}))==null?void 0:V.timeCounterRenderer)||null}; FZ=function(m){g.p.call(this,{G:"div",KA:["ytp-player-content","ytp-iv-player-content"],S:[{G:"div",X:"ytp-free-preview-countdown-timer",S:[{G:"span",c6:"{{label}}"},{G:"span",X:"ytp-free-preview-countdown-timer-separator",c6:"\u2022"},{G:"span",c6:"{{duration}}"}]}]});this.api=m;this.Z=null;this.D=this.L=0;this.C(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; V1G=function(m,V){m.Z||(m.L=V,m.D=(0,g.TN)(),m.Z=new g.PA(function(){m$0(m)},null),m$0(m))}; m$0=function(m){var V=Math,O=V.round,h=Math.min((0,g.TN)()-m.D,m.L);V=O.call(V,(m.L-h)/1E3);m.updateValue("duration",Cr({seconds:V}));V<=0&&m.Z?m.stopTimer():m.Z&&m.Z.start()}; OH3=function(m){Jj.call(this,m);var V=this;this.events=new g.Rc(m);g.a(this,this.events);this.events.C(m,"basechromeinitialized",function(){V.Z=new FZ(m);g.a(V,V.Z);g.ib(m,V.Z.element,4);V.Z.hide()})}; aE=function(m){g.p.call(this,{G:"button",KA:["ytp-fullerscreen-edu-button","ytp-button"],S:[{G:"div",KA:["ytp-fullerscreen-edu-text"],c6:"Role para ver detalhes"},{G:"div",KA:["ytp-fullerscreen-edu-chevron"],S:[FTo()]}],B:{"data-priority":"2"}});this.kN=m;this.fade=new g.OR(this,250,void 0,100);this.L=this.Z=!1;m.createClientVe(this.element,this,61214);g.a(this,this.fade);this.C(m,"fullscreentoggled",this.oY);this.C(m,"presentingplayerstatechange",this.oY);this.listen("click",this.onClick);this.oY()}; iK=function(m){Jj.call(this,m);var V=this;this.events=new g.Rc(m);g.a(this,this.events);gm(this.api,"updateFullerscreenEduButtonSubtleModeState",function(h){V.updateFullerscreenEduButtonSubtleModeState(h)}); gm(this.api,"updateFullerscreenEduButtonVisibility",function(h){V.updateFullerscreenEduButtonVisibility(h)}); var O=m.j();m.Y("external_fullscreen_with_edu")&&O.externalFullscreen&&LI(O)&&O.controlsType==="1"&&this.events.C(m,"standardControlsInitialized",function(){V.Z=new aE(m);g.a(V,V.Z);m.RP(V.Z)})}; h20=function(m){g.p.call(this,{G:"div",X:"ytp-gated-actions-overlay",S:[{G:"div",X:"ytp-gated-actions-overlay-background",S:[{G:"div",X:"ytp-gated-actions-overlay-background-overlay"}]},{G:"button",KA:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],B:{"aria-label":"Fechar"},S:[g.Ah()]},{G:"div",X:"ytp-gated-actions-overlay-bar",S:[{G:"div",X:"ytp-gated-actions-overlay-text-container",S:[{G:"div",X:"ytp-gated-actions-overlay-title",c6:"{{title}}"},{G:"div",X:"ytp-gated-actions-overlay-subtitle", c6:"{{subtitle}}"}]},{G:"div",X:"ytp-gated-actions-overlay-button-container"}]}]});var V=this;this.api=m;this.background=this.LA("ytp-gated-actions-overlay-background");this.L=this.LA("ytp-gated-actions-overlay-button-container");this.Z=[];this.C(this.LA("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){V.api.bH("onCloseMiniplayer")}); this.hide()}; yta=function(m,V){var O=0;O=0;for(var h={};O w&&(w=C.width,y="url("+C.url+")")}O.background.style.backgroundImage=y;yta(O,h.actionButtons||[]);O.show()}else O.hide()}); g.ib(this.api,this.Z.element,4)}; Gq=function(m){Jj.call(this,m);var V=this;Uc(this.api,"getSphericalProperties",function(){return V.getSphericalProperties()}); Uc(this.api,"setSphericalProperties",function(){V.setSphericalProperties.apply(V,g.b(g.AG.apply(0,arguments)))}); AF(this.api,"getSphericalProperties",function(){return V.api.getPresentingPlayerType()===2?{}:V.getSphericalProperties()}); AF(this.api,"setSphericalProperties",function(){var O=g.AG.apply(0,arguments);V.api.getPresentingPlayerType()!==2&&V.setSphericalProperties.apply(V,g.b(O))})}; pc=function(m){Jj.call(this,m);gm(m,"createClientVe",this.createClientVe.bind(this));gm(m,"createServerVe",this.createServerVe.bind(this));gm(m,"destroyVe",this.destroyVe.bind(this));gm(m,"hasVe",this.hasVe.bind(this));gm(m,"logClick",this.logClick.bind(this));gm(m,"logVisibility",this.logVisibility.bind(this));gm(m,"setTrackingParams",this.setTrackingParams.bind(this))}; B1=function(m,V,O,h){function w(L){var C=!(L.status!==204&&L.status!==200&&!L.response),E;L={succ:""+ +C,rc:L.status,lb:((E=L.response)==null?void 0:E.byteLength)||0,rt:((0,g.TN)()-y).toFixed(),shost:g.HG(m),trigger:V};LVa(L,m);O&&O(L);h&&!C&&h(new g.jc("pathprobe.net",L))} var y=(0,g.TN)();g.c7(m,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:w,onTimeout:w})}; LVa=function(m,V){var O;((O=window.performance)==null?0:O.getEntriesByName)&&(V=performance.getEntriesByName(V))&&V.length&&(V=V[0],m.pedns=(V.domainLookupEnd-V.startTime).toFixed(),m.pecon=(V.connectEnd-V.domainLookupEnd).toFixed(),m.perqs=(V.requestStart-V.connectEnd).toFixed(),Jt$&&(m.perqsa=V.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; CO$=function(m){Jt$=m}; lK=function(m,V){this.Tp=m;this.policy=V;this.playbackRate=1}; EKC=function(m,V){var O=Math.min(2.5,QF(m.Tp));m=v1(m);return V-O*m}; ms=function(m,V,O,h,w){w=w===void 0?!1:w;if(m.policy.CE)return Math.ceil(m.policy.CE*V);m.policy.lz&&(h=Math.abs(h));h/=m.playbackRate;var y=1/P1(m.Tp);O=Math.max(.9*(h-3),QF(m.Tp)+m.Tp.L.Z*y)/y*.8/(V+O);O=Math.min(O,h);m.policy.JN>0&&w&&(O=Math.max(O,m.policy.JN));return qFm(m,O,V)}; qFm=function(m,V,O){return Math.ceil(Math.max(Math.max(m.policy.pR,m.policy.vk*O),Math.min(Math.min(m.policy.Je,31*O),Math.ceil(V*O))))||m.policy.pR}; v1=function(m){return P1(m.Tp,!m.policy.XK,m.policy.gt)}; V7=function(m){return v1(m)/m.playbackRate}; O6=function(m,V,O){var h=m.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],w=m.policy.playbackStartPolicy.startMinReadaheadPolicy||[];m=Infinity;V=g.D(V&&h.length>0?h:w);for(h=V.next();!h.done;h=V.next())h=h.value,w=h.minReadaheadMs||0,O<(h.minBandwidthBytesPerSec||0)||m>w&&(m=w);return m0&&(this.L=O.VT)}; x$X=function(m,V,O,h,w){if(!h.info.D){if(O.length===0)O.push(h);else{var y;(m=(y=O.pop())==null?void 0:g.kQ(y,h))?O.push(m):O.push(h)}return w}var L;(O=(L=O.pop())==null?void 0:g.kQ(L,h))||(O=h);if(O.info.Z)return m.logger&&m.logger({incompleteSegment:O.info.Gj()}),w;h=m.kT(O);w=h.Fr;h={clipId:h.clipId,formatId:h.formatId,startTimeMs:h.startTimeMs,durationMs:h.w2,Gf:w,h6:w};w=M1l(V,h.startTimeMs);if(y=O=w>=0?V[w]:null){y=h;var C=w;L=O.startTimeMs+O.durationMs;var E=y.startTimeMs+y.durationMs;if(y.startTimeMs- L>m.L)y=!1;else if(fS1(m,O.formatId,y.formatId))O.durationMs=Math.max(L,E)-O.startTimeMs,O.h6=Math.max(O.h6,y.h6),y=!0;else if(Math.abs(O.startTimeMs-y.startTimeMs)<=m.L)if(O.durationMs>y.durationMs+m.L){var q=O.formatId,M=O.Gf;C=O.h6;O.formatId=y.formatId;O.durationMs=y.durationMs;O.Gf=y.Gf;O.h6=y.h6;y.formatId=q;y.startTimeMs=E;y.durationMs=L-E;y.Gf=M;y.h6=C;y=!1}else O.formatId=y.formatId,y=!0;else L>y.startTimeMs&&(L>E&&(V.splice(C+1,0,{formatId:O.formatId,startTimeMs:E,durationMs:L-E,Gf:y.h6+ 1,h6:O.h6}),m.logger&&m.logger({splitOldStart:(q=O.startTimeMs)==null?void 0:q.toFixed(3),splitOldEnd:L==null?void 0:L.toFixed(3),splitNewStart:(M=y.startTimeMs)==null?void 0:M.toFixed(3),splitNewEnd:E==null?void 0:E.toFixed(3)})),O.durationMs=y.startTimeMs-O.startTimeMs,O.h6=y.Gf-1),y=!1}y?h=O:(w+=1,V.splice(w,0,h));q=0;for(M=w+1;M=E+O.L?O=!0:C+O.L=0?m:-m-2}; R23=function(m,V){if(m.XA){var O=m.XA.RJ();if(O.length!==0){if(m.D&&V){var h=m.D,w=h.info.T;!mu(O,w)&&h.info.J>0&&(0,g.TN)()-m.N<5E3&&(m.logger&&m.logger({dend:h.info.Gj()}),O=qR7(O,w,w+.01))}m.policy.Sd&&m.logger&&m.logger({cbri:""+m.Z});h=[];for(var y=w=0;w=L){var M=Object.assign({},m.L4[y]),f=m.YN.D.get(vK(m.L4[y].formatId)),x=Math.max(E,L);L=f.index.AZ(x+m.L/ 1E3);E=f.index.getStartTime(L);var R=L+ +(Math.abs(E-x)>m.L/1E3);x=R+m.T;R=f.index.getStartTime(R)*1E3;y!==m.Z||V?(M.Gf=x,M.startTimeMs=R):(m.logger&&m.logger({pEvict:"1",og:M.startTimeMs,adj:E*1E3}),M.Gf=L+m.T,M.startTimeMs=E*1E3);L=void 0;E=((L=m.D)==null?void 0:L.info.duration)||11;y===m.Z&&Cm.L/1E3);L=E+m.T;f=f.index.ZP(E)*1E3;M.h6=L;M.durationMs=f-M.startTimeMs;M.Gf<=M.h6&&h.push(M)}q=0&&Jm(m.audioTrack,m.targetTime)>=0&&y?((m.videoTrack.T||m.audioTrack.T)&&m.loader.uH("iterativeSeeking",{status:"done",count:m.seekCount}),m.videoTrack.T=!1,m.audioTrack.T=!1):h&&g.rw(function(){if(m.Z||!m.policy.Aj)qL(m);else{var L=V.startTime,C=V.duration;if(!m.policy.K){var E=m.videoTrack.K!==-1&&m.audioTrack.K!==-1,q=!m.videoTrack.Ae&&!m.audioTrack.Ae;(O?m.videoTrack.T:m.audioTrack.T)&&E&&q&&(m.targetTime>= L&&m.targetTime432E3&&a63(m.YN);m.L&&(w=m.L,m.L=0);g.rw(function(){m.policy.K||ML(m,w,102)}); m.loader.uH("initManifestlessSync",{st:w,ost:w+m.loader.OU(),a:m.audioTrack.K,v:m.videoTrack.K});m.D&&(m.D.resolve(w+.1),m.D=null);m.policy.K&&ML(m,w,102)}}}; oK=function(){this.data=new Uint8Array(2048);this.pos=0;RK||(RK=X3("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; g9=function(m,V){m.add(V==null||isNaN(V)?0:V+1)}; U6=function(m,V){var O=this;this.ez=m;this.requestNumber=++YFG;this.Z=this.now();this.V=this.Qt=NaN;this.J=this.Z;this.D=this.CP=this.K=0;this.N=this.Z;this.pA=this.Ae=this.EH=this.Rd=this.nP=this.v6=this.L=this.T=0;this.Zu=this.isActive=!1;this.LP=this.nA=0;this.BD={Exe:function(){return O.ZF}}; this.Tp=V.Tp;this.snapshot=Am(this.Tp);this.policy=this.Tp.L;this.tf=!!V.tf;this.QR=V.QR;this.gV=V.gV||0;this.qV=V.qV||0;V.Y6&&(this.iH=new oK);var h;this.ZF=(h=V.ZF)!=null?h:!1;this.tf||kw3(this.Tp)}; rtG=function(m){m.EH=Math.max(m.EH,m.K-m.nP);m.Ae=Math.max(m.Ae,m.J-m.Rd);m.v6=0}; d9=function(m,V,O){ctX(m.Tp,V);m.iH&&(m.iH.add(Math.ceil(V)-Math.ceil(m.J)),m.iH.add(Math.max(0,Math.ceil(O/1024)-Math.ceil(m.K/1024))));var h=V-m.J,w=O-m.K;m.CP=w;m.pA=Math.max(m.pA,w/(h+.01)*1E3);m.J=V;m.K=O;m.v6&&O>m.v6&&rtG(m)}; tm=function(m,V){m.url=V;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; K8=function(m,V){U6.call(this,m,V);this.W6=this.UU=!1;this.H6=this.mS=Infinity;this.fA=NaN;this.Aj=!1;this.CA=NaN;this.Id=this.Mf=this.Je=0;this.YB=V.YB||1;this.zw=V.zw||this.YB;this.iC=V.iC;this.Fr=V.Fr;this.TM=V.TM;D$7(this);this.xI(this.Z);this.kD=(this.CA-this.Z)/1E3}; NI$=function(m){var V=m.Mf||m.Je;return V?m.snapshot.delay+Math.min(m.qV,(m.V-m.Qt)/1E3)+V:m.kD}; X8=function(m,V,O){if(!m.tf){V=Math.max(V,.01);var h=m.gV?Math.max(V,O/m.gV):V,w=m.Tp.L.D;w&&(h=V,m.gV&&(h=Math.max(V,O/m.gV*w)));Wc(m.Tp,V,O,h)}}; bHI=function(m){return(m.N-m.Z)/1E3}; D$7=function(m){m.fA=m.Z+m.snapshot.delay*1E3;m.Aj=!1}; Hc=function(m,V){if(m.iC&&m.Fr!==void 0&&m.TM!==void 0){var O=Math,h=O.min,w=m.mS;var y=m.iC;var L=m.Z;if(nKm(y,m.Fr))y=V;else{var C=0;y.Uu&&(C=.2);y=L+(y.qV+C)*1E3}m.mS=h.call(O,w,y);O=Math;h=O.min;w=m.H6;y=m.iC;L=m.Z;C=SF1(y,m.Fr,m.TM);C!==2&&(V=C?V:L+y.qV*1E3,y.Uu&&(V+=y.qV*1E3));m.H6=h.call(O,w,V);m.mS<=m.Z?D$7(m):(m.fA=m.mS,m.Aj=!0)}}; ISU=function(m,V){if(V+1<=m.totalLength){var O=gH(m,V);O=O<128?1:O<192?2:O<224?3:O<240?4:5}else O=0;if(O<1||!(V+O<=m.totalLength))return[-1,V];if(O===1)m=gH(m,V++);else if(O===2)O=gH(m,V++),m=gH(m,V++),m=(O&63)+64*m;else if(O===3){O=gH(m,V++);var h=gH(m,V++);m=gH(m,V++);m=(O&31)+32*(h+256*m)}else if(O===4){O=gH(m,V++);h=gH(m,V++);var w=gH(m,V++);m=gH(m,V++);m=(O&15)+16*(h+256*(w+256*m))}else O=V+1,m.focus(O),fG(m,O,4)?m=tMa(m).getUint32(O-m.D,!0):(h=gH(m,O+2)+256*gH(m,O+3),m=gH(m,O)+256*(gH(m,O+1)+ 256*h)),V+=5;return[m,V]}; Tz=function(m){this.ez=m;this.Z=new CG}; Yj=function(m,V){this.info=m;this.callback=V;this.state=1;this.DR=this.Vr=!1;this.dH=null}; e2p=function(m){return g.cu(m.info.jz,function(V){return V.type===3})}; kj=function(m,V,O,h){var w=this;h=h===void 0?{}:h;this.policy=V;this.ez=O;this.status=0;this.Z=new CG;this.L=0;this.UH=this.T=this.D=!1;this.xhr=new XMLHttpRequest;this.xhr.open(h.method||"GET",m);if(h.headers)for(m=h.headers,V=g.D(Object.keys(m)),O=V.next();!O.done;O=V.next())O=O.value,this.xhr.setRequestHeader(O,m[O]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return w.di()}; this.xhr.onload=function(){return w.onDone()}; this.xhr.onerror=function(){return w.onError()}; this.xhr.fetch(function(y){w.Z.append(y);w.L+=y.length;y=(0,g.TN)();w.ez.dA(y,w.L)},function(){},h.body||null)}; u$7=function(m,V){this.L=(new TextEncoder).encode(m);this.Z=(new TextEncoder).encode(V)}; ABl=function(m,V){var O;return g.u(function(h){if(!V)return h.return(V);O=new g.J4(m.L);return h.return(O.encrypt(V,m.Z))})}; WO5=function(m,V){var O;return g.u(function(h){if(h.Z==1){if(!V)return h.return(V);O=new g.J4(m.L);return g.I(h,O.decrypt(V,m.Z),2)}return h.return(h.L)})}; z25=function(m,V){var O=this;this.Z=m;this.ez=V;this.loaded=this.status=0;this.error="";m=Oz(this.Z.get("range")||"");if(!m)throw Error("bad range");this.range=m;this.L=new CG;this.run().then(function(){O.ez.OW()},function(h){O.error=""+h||"unknown_err"; O.ez.OW()})}; s3o=function(m,V,O,h){var w=this;h=h===void 0?{}:h;this.policy=V;this.ez=O;this.N=h;this.status=0;this.response=void 0;this.L=0;this.aborted=this.K=!1;this.errorMessage="";this.V=function(y){if(y)if(w.status=y.status,y.ok&&y.body&&w.status!==204)w.status=w.status||242,w.D=y.body.getReader(),w.UH()?w.D.cancel().catch(function(){}):(w.responseHeaders=y.headers,w.ez.B8(),ZHl(w)); else w.onDone();else w.onError(Error("null_response"))}; this.J=function(y){var L=(0,g.TN)();w.UH()||(y.done?(w.D=void 0,w.onDone()):(y=y.value,w.L+=y.length,w.Z.append(y),ZHl(w),w.ez.dA(L,w.L)))}; this.onError=function(y){w.errorMessage=String(y);w.K=!0;w.onDone()}; this.Z=new CG;this.T=window.AbortController?new AbortController:void 0;this.start(m)}; ZHl=function(m){m.D.read().then(m.J,m.onError).then(void 0,r$)}; FVG=function(m,V,O){var h=this;O=O===void 0?{}:O;this.ez=V;this.L=this.status=0;this.UH=this.Z=!1;this.xhr=new XMLHttpRequest;this.xhr.open(O.method||"GET",m);if(O.headers){m=O.headers;V=g.D(Object.keys(m));for(var w=V.next();!w.done;w=V.next())w=w.value,this.xhr.setRequestHeader(w,m[w])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(y){h.di(y)}; m=qU(function(y){h.onDone(y)}); this.xhr.addEventListener("load",m,!1);this.xhr.addEventListener("error",m,!1);O.body?this.xhr.send(O.body):this.xhr.send();this.xhr.addEventListener("progress",qU(function(y){h.onProgress(y)}),!1)}; r9=function(m,V,O,h,w){if(xU(12,m.ji))return new z25(m,O);m=m.yF();return h?j2X()?new kj(m,V,O,w):new s3o(m,V,O,w):new FVG(m,O,w)}; cc=function(m,V){g.Z.call(this);var O=this;this.policy=m;this.jz=V;this.L=0;this.Z=null;this.oJ=[];this.D=null;this.BD={vU:function(){return O.jz}}; this.jz.length===1||g.cu(this.jz,function(h){return!!h.range})}; D0=function(m,V,O){m.Z&&(E4(m.Z,V),V=m.Z,m.Z=null);for(var h=0,w=0,y=g.D(m.jz),L=y.next();!L.done;L=y.next())if(L=L.value,L.range&&h+L.L<=m.L)h+=L.L;else{if(js(L)&&!O&&m.L+V.totalLength-w=400?(m.lastError="net.badstatus",!0):(w===void 0?0:w)?(m.lastError="ump.spsrejectfailure",!0):O||h!==void 0&&h?!1:(m.lastError=V===204?"net.nocontent":"net.connect",!0)}; e4=function(m,V){if(m.policy.uL)return!1;var O=V.getResponseHeader("content-type"),h=V.vY();m=!h||h<=m.policy.MR;return(!V.GK()||!O||O.indexOf("text/plain")!==-1)&&m}; BI$=function(m,V){var O="";V=V.Dn();V.totalLength<=m.policy.MR&&(m=Ri(V),m=U4(m),O=Xa(m)?m:"");return O}; bl=function(m){return iO(m.T,U3(50,m.f6.ji))}; lSI=function(m){var V=m.timing.nX();V.shost=U3(32,m.f6.ji);m.policy.nf&&m.policy.T9&&(V.csrc=1);return V}; Q31=function(m,V){return(m==null?void 0:m.maxWidth)>(V==null?void 0:V.maxWidth)||(m==null?void 0:m.maxHeight)>(V==null?void 0:V.maxHeight)}; vKl=function(m,V){for(var O=g.D(V.keys()),h=O.next();!h.done;h=O.next())if(h=V.get(h.value),h.length!==0){g.Rg(h,function(C,E){return E.maxFramerate-C.maxFramerate}); for(var w=[h[0]],y=0,L=1;Lm.Z||O.push(h)}return O}; ul=function(m,V,O){var h=VsC[m]||[];O.Y("html5_shorts_onesie_mismatched_fix")&&(h=Ou7[m]||[]);V.push.apply(V,g.b(h));O.Y("html5_early_media_for_drm")&&V.push.apply(V,g.b(hT0[m]||[]))}; Cqa=function(m,V){var O=g.WC(m),h=m.j(),w=h.K;h=h.Y("html5_shorts_onesie_mismatched_fix");var y=m.X3();if(h){if(!w.Z){if(y&&zz)return zz;if(Z0)return Z0}}else if(Z0&&!w.Z)return Z0;var L=[],C=[],E={},q=s6.concat(wtl);h&&(q=s6.concat(ysp));m.Y("html5_early_media_for_drm")&&(q=q.concat(j_G),m.Y("allow_vp9_1080p_mq_enc")&&q.push(Lt3));var M=[].concat(g.b(Js$));m.Y("html5_iamf_audio_onesie_fmt")&&M.push(["773"]);q=g.D(q);for(var f=q.next();!f.done;f=q.next()){var x=!1;f=g.D(f.value);for(var R=f.next();!R.done;R= f.next()){R=R.value;var A=tW(R,y&&h);if(A&&A.video&&!(ec(A)&&!O.iH&&A.video.qualityOrdinal>O.Yl)){var K=g.m9(m.j().experiments,"html5_drm_byterate_soft_cap");K>0&&CE5(A)&&A.Rr>K||(x?(L.push(R),ul(R,L,m)):(A=Bp(O,A,w),A===!0?(x=!0,L.push(R),ul(R,L,m)):E[R]=A))}}}M=g.D(M);for(q=M.next();!q.done;q=M.next())for(q=g.D(q.value),x=q.next();!x.done;x=q.next())if(x=x.value,(f=j1I(x))&&f.audio&&(m.Y("html5_onesie_51_audio")||!u6(f)))if(f=Bp(O,f,w),f===!0){C.push(x);ul(x,C,m);break}else E[x]=f;if(!m.Y("html5_enable_audio_quality_setting"))for(m= g.D(["141","774"]),M=m.next();!M.done;M=m.next())M=M.value,C.includes(M)&&(g.Om(C,M),E[M]="blkhqa");O.Z&&V("orfmts",E);if(h)return w.Z&&(w.Z=!1,zz=Z0=void 0),y?zz={video:L,audio:C}:Z0={video:L,audio:C};Z0={video:L,audio:C};w.Z=!1;return Z0}; g.MsC=function(m,V,O){var h=O.K,w=[],y=[],L=O.Y("html5_shorts_onesie_mismatched_fix");m=m.X3();var C=s6.concat(wtl);L&&(C=s6.concat(ysp));O.Y("html5_early_media_for_drm")&&(C=C.concat(j_G),O.Y("allow_vp9_1080p_mq_enc")&&C.push(Lt3));var E=[].concat(g.b(Js$));O.Y("html5_iamf_audio_onesie_fmt")&&E.push(["773"]);C=g.D(C);for(var q=C.next();!q.done;q=C.next()){q=g.D(q.value);for(var M=q.next();!M.done;M=q.next()){M=M.value;var f=tW(M,m&&L);if(f&&f.video){var x=g.m9(O.experiments,"html5_drm_byterate_soft_cap"); if(!(x>0&&CE5(f)&&f.Rr>x)&&Bp(V,f,h)===!0){w.push({videoCodec:EQ5[N3[M]],maxWidth:f.video.width,maxHeight:f.video.height,maxFramerate:f.video.fps});break}}}}L=g.D(E);for(m=L.next();!m.done;m=L.next())for(m=g.D(m.value),E=m.next();!E.done;E=m.next())if(E=E.value,(C=j1I(E))&&C.audio&&(O.Y("html5_onesie_51_audio")||!u6(C))&&Bp(V,C,h)===!0){y.push({audioCodec:qza[N3[E]],numChannels:C.audio.numChannels});break}return{videoFormatCapabilities:w,audioFormatCapabilities:y}}; RTa=function(m){var V,O={},h=m.RY,w=m.IY,y=m.Tp,L=h.getVideoData(),C=Ym(0),E=h.getVisibilityState();w.Y("html5_enable_audio_quality_setting")&&(O.m_=w.m_);C&&(O.KeY=C,O.lastManualDirection=EZ$(),C=KzC()||0,C>0&&(C=(w.Y("html5_use_date_now_for_local_storage")?Date.now():(0,g.TN)())-C,w.Y("html5_use_date_now_for_local_storage")?C>0&&(O.timeSinceLastManualFormatSelectionMs=C):O.timeSinceLastManualFormatSelectionMs=C));C=w.Y("html5_use_streamer_bandwidth_for_low_latency_live")&&L.isLowLatencyLiveStream; if(y.Zu&&!C){var q;C=w.Y("html5_disable_bandwidth_cofactors_for_sabr_live")?!((q=m.Ze)==null||!q.XK):!1;O.w3=P1(y,!C)}C=g.kH.medium;var M=Math.floor(C*16/9);(q=L.X3())||(L.Z&&L.D&&L.D.videoInfos.length!==0?(q=L.D.videoInfos[0],q=!!q.video&&q.video.width0?{authorizedFormats:m.authorizedFormats}:{authorizedFormats:V};m.sabrLicenseConstraint&&(O.mI.sabrLicenseConstraint=m.sabrLicenseConstraint);if(w.Y("html5_onesie_media_capabilities")||Nx(L))O.Qy=3;w.Y("html5_onesie_audio_only_playback")&& dU(L)&&(O.Qy=1);var r;((r=m.Ze)==null?0:r.l2)&&m.Ajr&&(O.Qy=O.Qy===void 0?7:O.Qy|4);r=L.CA?L.CA:g.WC(L);w.Y("html5_onesie_media_capabilities")&&(O.mediaCapabilities=g.MsC(L,r,w));var N;if((N=m.Ze)==null?0:F8(N)){x=m.hm;N=[];V=[];R=new Map;A=g.D(L.Rn.Z.values());for(K=A.next();!K.done;K=A.next())if(X=K.value,X.RF)V.push({audioCodec:qza[X.B6],numChannels:X.numChannels,spatialCapabilityBitmask:fW5[X.B6]});else{c=EQ5[X.B6];K={videoCodec:c,maxWidth:X.maxWidth||0,maxHeight:X.maxHeight||0,maxFramerate:X.maxFramerate|| 0,is10BitSupported:X.Dv||!1,maxBitrateBps:X.maxBitrateBps||0};if(X.B6==="1"||X.B6==="9")K.efficient=!0;X=c+"_"+X.Dv;c=R.get(X)||[];c.push(K);R.set(X,c)}N=vKl(N,R);x=x?[].concat(g.b(x)):[];L.Y("html5_ssff_denylist_opus_low")&&x.push(249,350);O.mediaCapabilities={videoFormatCapabilities:N,audioFormatCapabilities:V,hdrModeBitmask:3,perPlaybackAttributes:x.length?{itagDenylist:x}:{}}}var n;if((n=m.Ze)==null?0:n.Z){O.sW=r.sW;var F;O.Yl=(F=m.Ze)==null?void 0:F.Yl}w.SW&&(O.bu=w.SW);O.fD=m.vZ;O.e2=m.e2;O.X6= m.X6;O.fX=m.fX;m.RU&&(O.qJN=(0,g.TN)()-m.RU);m.pU&&w.Y("html5_report_prefetch_requests")&&(O.pU=m.pU);j3||(O.Weu=!0);n=QF(y)*1E3;n>0&&(O.z4=n);var z;((z=m.Ze)==null?0:z.Vy)&&m.iq&&m.iq0?V$:y.interruptions[0]|| 0;var O3;if((O3=m.Ze)==null?0:O3.kD)O.LM=m.LM;w.CA&&(O.audioTrackId=w.CA);hF(L)&&!O.audioTrackId&&(w.Y("html5_fill_default_mosaic_audio_track_id")||(m=c5X(L),O.audioTrackId=m),L==null||L.uH("misstrkchg",{"default":O.audioTrackId}));if(m=OyX())O.detailedNetworkType=xT7[m]||xT7.other;!w.Y("html5_enable_voice_boost")||L.X3()||L.isAd()||(O.u8e=w.Zc);return O}; aK=function(m,V,O,h,w,y,L){var C={};V&&(C.z_=V);if(!m)return C;C.playbackCookie=O==null?void 0:O.playbackCookie;w&&(C.oX=w);C.ue=[];C.lq=[];if(L==null?0:L.size)for(V=g.D(L.values()),O=V.next();!O.done;O=V.next())C.lq.push(O.value);if(m.sabrContextUpdates.size>0)for(V=g.D(m.sabrContextUpdates.values()),O=V.next();!O.done;O=V.next())oQU(C,O.value,h);SC(m)&&y&&oQU(C,y,h);h=m.j().Z;C.clientInfo={clientName:gQ3[h.c.toUpperCase()]||0};h.cbrand&&(C.clientInfo.deviceMake=h.cbrand);h.cmodel&&(C.clientInfo.deviceModel= h.cmodel);h.cver&&(C.clientInfo.clientVersion=h.cver);h.cos&&(C.clientInfo.osName=h.cos);h.cosver&&(C.clientInfo.osVersion=h.cosver);h=m.j();h.Y("html5_sabr_enable_server_xtag_selection")&&h.tq&&(C.clientInfo.hl=h.tq);m.cM&&(C.cM=m.cM);return C}; oQU=function(m,V,O){var h=V.type||0;(O==null?0:O.has(h))?m.lq.push(V):m.ue.push(h)}; j4=function(m,V,O,h,w,y){var L=y===void 0?{}:y;var C=L.E5===void 0?[]:L.E5;var E=L.wO===void 0?!1:L.wO;var q=L.Qh===void 0?0:L.Qh;var M=L.poToken===void 0?"":L.poToken;var f=L.ol===void 0?void 0:L.ol;var x=L.aX===void 0?"":L.aX;var R=L.Fs===void 0?0:L.Fs;var A=L.F3===void 0?new Uint8Array(0):L.F3;var K=L.EN===void 0?!1:L.EN;y=L.LX===void 0?0:L.LX;L=L.z_===void 0?void 0:L.z_;Yj.call(this,V,w);var X=this;this.policy=m;this.logger=new g.Ht("dash/request");this.T1=this.P2=0;this.Vq=!1;this.LR=this.nT= null;this.LJ=!1;this.F3=this.Fs=null;this.sN=this.zH=!1;this.C3=null;this.LX=this.o4=0;this.Wp=!1;this.BD={Mq:function(r){X.Mq(r)}, V$t:function(){return X.dH}, ojH:function(r){X.dH=r}, MpY:function(r){X.P2=r}, kKH:function(r){X.HB.lastError=r}, MM:function(){return X.xhr}}; this.timing=new K8(this,O);this.wO=E;this.Fs=R;this.F3=A;this.f6=g.R_(this.info,this.policy,h);this.f6.set("rn",this.Ou().toString());this.f6.set("rbuf",(q*1E3).toFixed().toString());this.wO&&this.f6.set("smb","1");this.policy.Ql&&M&&this.f6.set("pot",M);x&&this.f6.set("bbs",x);this.policy.useUmp&&!xU(15,this.f6.ji)&&(this.eI=new Tz(this),this.f6.set("ump","1"),this.f6.set("srfvp","1"));if(m=this.policy.Zb?this.policy.yH&&!isNaN(this.info.TM)&&this.info.TM>this.policy.GR?!1:!0:!1)V=null,this.policy.vF&& this.policy.KU?V=[1]:K&&(V=[]),V!=null&&(this.policy.Gn&&V.push(2),this.f6.set("defsel",V.join(",")));this.HB=new NL(this,this.policy,this.f6,this.info.Dj,this.timing,this.logger,h,f);this.E5=C||null;this.DR=AsG(this);aS5(this.HB);h=void 0;if(this.policy.nFS||this.eI||this.policy.fA)h={method:"POST"},C=(0,g.il)([120,0]),f={},this.policy.lF&&L&&(L=aK(void 0,L),f.bT=L),this.policy.xw&&this.F3&&(f.videoPlaybackUstreamerConfig=this.F3),this.policy.fA&&(L=this.info.T)&&Object.assign(f,L),Object.keys(f).length> 0?h.body=g.ai(f,g.Hg):h.body=C;if(this.Fs&&this.F3){this.f6.set("iwts","1");h={method:"POST"};L={fX:this.Fs*1E3};var c;C=(c=this.info.T)==null?void 0:c.jR;c=g.ai({fT:L,jR:C||void 0,videoPlaybackUstreamerConfig:this.F3},g.Hg);h.body=c}try{this.xhr=r9(this.f6,this.policy.V,this.timing,m,h),this.HB.L.start(),y&&(this.X$=new g.mq(this.YW,y,this),this.X$.start(y+(this.timing.Tp.V.Og()||0)*1E3)),this.policy.uv&&tm(this.timing,this.yF()),g.rw(function(){})}catch(r){UT3(this,r,!0)}}; AsG=function(m){if(!(xQ(m.info)&&m.info.ZF()&&m.policy.GB&&m.E5)||m.info.Dj.D>=2||Ym()>0||!xWm())return!1;var V=m.f6.get("aitags");if(!V)return!1;V=aj(V).split(",");for(var O=[],h=g.D(m.E5),w=h.next();!w.done;w=h.next())w=w.value,g.vH(V,w)&&O.push(w);if(!O.length)return!1;m.f6.set("altitags",g.FC(O.join(",")));return!0}; UT3=function(m,V,O){O=O===void 0?!1:O;g.kL(V);m.HB.lastError="player.exception";m.errorMessage=V.name+"_"+V.message;O?g.rw(function(){S4(m.HB)}):S4(m.HB)}; dTp=function(m,V){m.timing.Zu=!0;m.xhr.GK()&&m.timing.W8();if(m.policy.BB){var O;(O=m.X$)==null||O.stop()}D0(m.dH,V,!1)}; ts5=function(m){m.o4&&(m.xhr.status=m.o4,m.P2=m.o4)}; Gz=function(m,V){U6.call(this,m,V);this.H6=!0;this.mS=!1;this.Mf=this.fA=0;this.Je=NaN}; Ktp=function(m,V,O){var h=m.gV?Math.max(V,O/m.gV):V,w=m.Tp.L.D;w&&(h=V,m.gV&&(h=Math.max(V,O/m.gV*w)));Wc(m.Tp,V,O,h)}; p8=function(m,V){this.ez=V;this.L={};this.logger=new g.Ht(m)}; Bc=function(m){p8.call(this,"sabr",m);this.ez=m;this.Z=[]}; Wt7=function(m,V,O){switch(V){case 35:m.TJ(O);break;case 44:m.mN(O);break;case 43:m.QN(O);break;case 53:m.hT(O);break;case 56:m.Ac();break;case 57:m.YV(O);break;case 42:m.eX(O);break;case 45:m.gC(O);break;case 59:m.dh(O);break;case 51:m.IX(O);break;case 49:m.TG(O);break;case 50:m.Qa(O);break;case 47:m.Lc(O);break;case 58:m.pV(O);break;case 61:m.ez.WB.Uy((0,g.TN)());break;case 66:m.cf(O);break;case 46:m.ZD(O);break;case 67:m.onSnackbarMessage(O);break;case 71:V=SN(O,hR$),m.ez.kV(V)}}; ll=function(m){g.Z.call(this);this.T=m;this.logger=new g.Ht("onesie");this.eb=new Map;this.L=this.Z=!1;this.Ze=this.YN=null;this.D=!1}; XtG=function(m,V,O){m.eb.get(V).onProgress=O}; Pc=function(m,V){m.eb.has(V)&&(Q7?m.eb.get(V).Cq.clear():m.eb.get(V).oJ=new CG,vc(m,V),m.L=!0)}; Hul=function(m){for(var V=g.D(m.eb),O=V.next();!O.done;O=V.next()){var h=g.D(O.value);O=h.next().value;h=h.next().value;h.Le||Pc(m,O)}}; TiU=function(m,V){V=m.eb.get(V);if(!V)return 0;m=0;if(V.jz.length>0){V=g.D(V.jz);for(var O=V.next();!O.done;O=V.next()){var h=void 0;m+=((h=O.value.range)==null?void 0:h.length)||0}return m}if(V.Oc.length>0)for(O=g.D(V.Oc),h=O.next();!h.done;h=O.next())m+=h.value.q3||0;return m+V.fJ}; mc=function(m,V){if(Q7){var O=0;m=m.eb.get(V);if(m==null||!m.Cq)return 0;m=g.D(m.Cq.values());for(V=m.next();!V.done;V=m.next())O+=V.value.data.totalLength;return O}return((O=m.eb.get(V))==null?void 0:O.oJ.totalLength)||0}; Vv=function(m,V){m=m.eb.get(V);if(Q7){if(m==null||!m.Le)return!1;V=m.Cq.size>0;return m.DW.length>0||V}return!(m==null||!m.Le)&&!(m==null||!m.oJ.totalLength)}; $Tl=function(m,V){var O=m.eb.get(V),h=TiU(m,V),w=!h&&!!O.bytesReceived;if(Q7){var y;if((y=m.YN)==null?0:y.yp){m=g.D(O.Cq.values());for(V=m.next();!V.done;V=m.next())if(!V.value.jr)return!1;return w}}else if(y=m.pM(V),w&&m.Z&&y!==void 0)return y;return(w||O.bytesReceived===h)&&O.L$+mc(m,V)===O.bytesReceived}; Yzm=function(m,V,O,h){O.jz.push.apply(O.jz,g.b(h));if(Q7){O.Jg.has(V)||O.Jg.set(V,[]);var w;(w=O.Jg.get(V)).push.apply(w,g.b(h))}else if(O.dH)for(m=g.D(h),V=m.next();!V.done;V=m.next())O.dH.jz.push(V.value);else{O.dH=new cc(m.Ze,[].concat(g.b(O.jz)));var y;((y=m.Ze)==null?0:y.BP)&&g.a(m,O.dH)}}; k$l=function(m,V,O){var h,w=(h=m.YN)==null?void 0:h.D.get(V);if(!w)return[];if(O.fd){var y;return((y=w.Nk(0,O.clipId))==null?void 0:y.jz)||[]}if(w.If()){var L=O.startMs,C=O.durationMs;h=1E3;var E;if(((E=m.Ze)==null?0:E.Z)&&O.timeRange){var q;L=(q=O.timeRange.startTicks)!=null?q:-1;var M;C=(M=O.timeRange.MO)!=null?M:-1;var f;h=(f=O.timeRange.timescale)!=null?f:-1}if(O.tF<0||O.K_<0||C<0||L<0||O.q3<0||h<0)return Pc(m,V),[];m=hs(O.tF,O.q3);V=O.NJ||0;return[new yA(3,w,m,"makeSliceInfosMediaBytes",O.K_- 1,L/h,C/h,V,m.length-V,void 0,O.Z3,O.clipId)]}if(O.K_<0)return Pc(m,V),[];var x;return((x=m.YN)==null?0:x.yp)?(V=w.u4,E=V*w.info.Rr,q=O.NJ,((L=m.Ze)==null?0:L.Z)&&m.T.K7()!=="ONESIE"&&O.timeRange&&!q&&(C=O.timeRange.startTicks/O.timeRange.timescale),[new yA(3,w,void 0,"makeSliceInfosMediaBytes",O.K_,C,V,q,E,!0,O.Z3,O.clipId)]):[]}; rs3=function(m,V,O){m.YN=V;m.Ze=O;V=g.D(m.eb);for(O=V.next();!O.done;O=V.next()){var h=g.D(O.value);O=h.next().value;h=h.next().value;for(var w=g.D(h.zA),y=w.next();!y.done;y=w.next()){y=y.value;var L=k$l(m,O,y);Yzm(m,y.y0,h,L)}}}; OX=function(m,V,O,h){(m=m.eb.get(O))&&!m.wH&&(Q7?(m.Cq.has(V)||m.Cq.set(V,{data:new CG,wq:0,jr:!1}),E4(m.Cq.get(V).data,h)):E4(m.oJ,h),m.bytesReceived+=h.totalLength,m.PK=!0)}; vc=function(m,V){if((V=m.eb.get(V))&&!V.wH){V.wH=!0;if(V.onProgress)V.onProgress();a:{V=g.D(m.eb.values());for(var O=V.next();!O.done;O=V.next())if(!O.value.wH){V=!1;break a}V=!0}V&&m.T.SF()}}; cs7=function(m){Q7=m}; hN=function(m,V,O,h,w,y,L){g.Z.call(this);this.policy=m;this.info=V;this.YN=O;this.ez=w;this.logger=new g.Ht("sabr");this.eI=new Tz(this);this.Ls=new Bc(this);this.BW=new ll(this);this.state=1;this.bQ=!1;this.VN=0;this.clipId="";this.YL=-1;this.YP=0;this.G2=-1;this.Hb=this.CN=this.Wp=this.YH=!1;this.policy.RR?this.WB=new Gz(this,y):this.WB=new K8(this,y);this.f6=this.policy.kD?V.Qc:DTU(V,this.policy,h);this.f6.set("rn",""+this.Ou());this.f6.set("alr","yes");rs3(this.BW,O,m);this.HB=new NL(this,this.policy, this.f6,V.Dj,this.WB,this.logger,h,L,this.policy.enableServerDrivenRequestCancellation);aS5(this.HB);var C;if((C=this.policy)==null?0:C.BP)g.a(this,this.BW),g.a(this,this.HB);m=V.L;V={method:"POST",body:m};m&&(this.YP=m.length);try{this.xhr=r9(this.f6,this.policy.V,this.WB,j3,V),this.policy.uv&&tm(this.WB,this.yF()),this.HB.L.start()}catch(E){g.cj(E)}}; Ni0=function(m){m.policy.s5&&m.Wo&&!m.CN?m.CN=!0:m.WB.W8()}; bu$=function(m,V){var O=-1,h=-1,w=-1,y;if((y=m.jV)==null?0:y.items)for(m=g.D(m.jV.items),y=m.next();!y.done;y=m.next())y=y.value,V=C,E=m.YN.isManifestless,L){var q;if(((q=m.Z)==null?void 0:q.I8.event)==="predictStart"&&m.Z.Frm.K&&(m.K=NaN,m.N=NaN);if(m.Z&&m.Z.Fr===V){if(h=m.Z,!m.policy.N||!m.policy.L)if(w&&h){var L=h.I8;y=w.rU(L);L.event==="predictStart"&&(m.Zu=V);m.uH("sdai",{onqevt:L.event,sq:V,mt:O,gab:y,cst:L.startSecs,cueid:m.policy.Z5&&(y||L.event==="start")?L.identifier:void 0},!0);if(y)if(L.event!=="predictStart")L.event==="start"&&m.Zu===V-1&&m.uH("sdai", {gabonstart:V}),h.X_?Lw(m,4,"cue"):(m.K=V,m.N=O,m.uH("sdai",{joinad:m.L,sg:m.K,st:m.N.toFixed(3)}),m.V=Date.now(),Lw(m,2,m.L===3?"staftpred":"join"),aW7(w,h.I8));else{var C=iul(m);V+=Math.max(Math.ceil(-L.Z/C),1);L=Math.floor(O-L.Z/1E3);m.policy.L?m.D=L:m.T=V;m.uH("sdai",{onpred:O,estsq:V,estmt:L.toFixed(3)});JN(m.loader,L,L,V,C);m.V=Date.now();Lw(m,3,"predict");aW7(w,h.I8)}else m.L===1?((C=m.HD)==null?0:C.SI?0:Cw(C,O))?(JN(m.loader,O,O,V),Lw(m,4,"sk2head")):Lw(m,5,"nogab"):L.event==="predictStart"&& (m.policy.L&&m.D>0?(O=Math.floor(O-L.Z/1E3),m.D!==O&&m.uH("sdai",{updateSt:O,old:m.D}),m.D=O):m.T>0&&(O=V+Math.max(Math.ceil(-L.Z/iul(m)),1),m.T!==O&&(m.uH("sdai",{updateSt:O,old:m.T}),m.T=O)))}else m.uH("sdai",{nulldec:1,sq:V,mt:O.toFixed(3),evt:(h==null?void 0:(L=h.I8)==null?void 0:L.event)||"none"})}else m.L===1&&Lw(m,5,"noad")}; ptU=function(m,V,O){if(m.L===1||m.L===2)return!1;if(m.L!==0&&V===m.audioTrack){if(m.policy.L)return G$$(m.videoTrack,O)||G$$(m.videoTrack,O+1);m=EX(m.videoTrack);if(O>(m?m.Fr:-1))return!1}return!0}; qp=function(m,V,O){return(O<0||O===m.K)&&!isNaN(m.N)?m.N:V}; iul=function(m){switch(m.policy.latencyClass){case "LOW":return 2E3;case "ULTRALOW":return 1E3;default:return 5E3}}; zT$=function(m,V){if(m.Z){var O=m.Z.I8.Ul-(V.startTime+m.J-m.Z.I8.startSecs);O<=0||(O=new fH(m.Z.I8.startSecs-(isNaN(m.J)?0:m.J),O,m.Z.I8.context,m.Z.I8.identifier,"stop",m.Z.I8.Z+V.duration*1E3),m.uH("cuepointdiscontinuity",{segNum:V.Fr}),jw(m,O,V.Fr))}}; Lw=function(m,V,O){m.L!==V&&(m.uH("sdai",{setsst:V,old:m.L,r:O}),m.L=V)}; Mp=function(m,V,O,h){(h===void 0?0:h)?Lw(m,1,"seek"):V>0&&Math.abs(V-O)>=5&&m.L===4&&Lw(m,5,"sk2t")}; Bi7=function(m,V,O,h){var w=this;this.T=m;this.uH=V;this.V=O;this.Z=h;this.K="";this.L=new Set;this.J=-1;this.D=0;this.N=!1;this.BD={zG6:function(){return w.L}}}; Q_1=function(m){var V,O=-(((V=m.I8)==null?void 0:V.Qq)||0);m.timeRange&&(O+=(m.timeRange.startTicks||0)/(m.timeRange.timescale||1));var h,w,y,L,C;return new fH(O,((h=m.I8)==null?void 0:h.fMu)||0,((w=m.I8)==null?void 0:w.oa)||"",((y=m.I8)==null?void 0:y.identifier)||"",lWo((L=m.I8)==null?void 0:L.event),(((C=m.I8)==null?void 0:C.Qq)||0)*1E3)}; vQC=function(m,V){for(var O="",h=[],w=g.D(m.Z.entries()),y=w.next();!y.done;y=w.next()){var L=g.D(y.value);y=L.next().value;L=L.next().value;var C=void 0,E=void 0,q=void 0;((C=L)==null?void 0:C.startTimeSecs)<=V&&V<=((E=L)==null?void 0:E.startTimeSecs)+((q=L)==null?void 0:q.Ul)&&h.push(y);E=C=void 0;O+=y+":"+((C=L)==null?void 0:C.startTimeSecs.toFixed(3))+":"+((E=L)==null?void 0:E.Ul.toFixed(3))+";"}h.length===0&&m.uH("clsdai",{no_cid:1,mt:V.toFixed(3),adConfigMap:O.substring(0,1024)});return h}; lWo=function(m){if(!m)return"unknown";switch(m){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}}; Pqa=function(m){switch(m){case 1:return"timeout";case 2:return"ratecontrol";case 3:return"sverr";case 4:return"deleted";case 5:return"waiting";case 6:return"ready";case 7:return"ssdisabled";default:return"unknown"}}; fw=function(m,V,O){this.audio=m;this.video=V;this.reason=O}; xz=function(m,V,O){this.Z=m;this.reason=V;this.token=O;this.videoId=void 0}; RP=function(m,V,O){g.Z.call(this);this.policy=m;this.T=V;this.uH=O;this.D=new Map;this.K=0;this.N=!1;this.Z="";this.L=!1}; oP=function(m,V,O){if(O===void 0?0:O)m.N=!0;++m.K;O=6E4*Math.pow(2,m.K);O=(0,g.TN)()+O;m.D.set(V.info.id,O)}; AN=function(m){for(var V=g.D(m.D.entries()),O=V.next();!O.done;O=V.next()){var h=g.D(O.value);O=h.next().value;h=h.next().value;h<(0,g.TN)()&&m.D.delete(O)}return m.D}; g.WX=function(m,V){return E3[J[4]](this,3,m,V)}; mZl=function(m){return m.N&&AN(m).size>0}; UX=function(m,V){m.Z!==V&&(m.Z=V,m.L=!0)}; Vdo=function(m,V){var O;V&&(O=g.p5(m.T.Z,function(w){return w.id===V})); if(!O&&(O=g.p5(m.T.Z,function(w){var y;return!((y=w.fP)==null||!y.isDefault)}),V)){var h; m.uH("iaf",{id:V,sid:(h=O)==null?void 0:h.id})}return O}; da=function(m){this.Z=this.L=0;this.alpha=Math.exp(Math.log(.5)/m)}; Kw=function(m,V,O,h,w,y){var L=this;y=y===void 0?[]:y;this.loader=m;this.mS=V;this.policy=O;this.YN=h;this.N=w;this.pA=y;this.logger=new g.Ht("dash/abr");this.Z=j2;this.D=this.J=null;this.Qt=-1;this.H6=!1;this.nextVideo=this.L=null;this.T=[];this.Mf=new Set;this.EH={};this.CA=new da(1);this.V=0;this.Je=this.Ae=this.Zu=!1;this.v6=0;this.Xr=!1;this.iH=new Set;this.fA=!1;this.BD={Cn:function(){tN(L)}}; this.K=new RP(this.policy,w,function(C,E){L.loader.uH(C,E)})}; jtm=function(m,V,O){WY(m,V);V=Vdo(m.K,O);O||V||(V=OOo(m));V=V||m.N.Z[0];m.L=m.YN.Z[V.id];tN(m);m.J=m.L;hz$(m);wP1(m);m.D=m.nextVideo;m.J=m.L;return yv0(m)}; JvX=function(m,V){if(L$U(m,V))return null;if(V.reason==="m"&&V.isLocked())return WY(m,V),m.V=m.T.length-1,tN(m),Xd(m),m.Ae=m.Ae||m.D!==m.nextVideo,m.D=m.nextVideo,new fw(m.L,m.D,V.reason);V.reason==="r"&&(m.Qt=-1);WY(m,V);Xd(m);if(V.reason==="r"&&m.nextVideo===m.D)return new fw(m.L,m.nextVideo,V.reason);m.D&&m.nextVideo&&HY(m,m.D.info)1.5&&m.loader.uH("overshoot",{sq:V.Fr,br:O,max:h}))}}; T9=function(m,V,O){oP(m.K,V,O===void 0?!1:O);m.Qt=-1;WY(m,m.Z)}; qY0=function(m,V){return new fw(m.J,m.D,V||m.Z.reason)}; yv0=function(m){m.H6?m.H6=!1:m.Qt=(0,g.TN)();m.Zu=!1;m.fA=!1;return new fw(m.J,m.D,m.Z.reason)}; Md$=function(m,V){var O={};V=g.D(V);for(var h=V.next();!h.done;h=V.next())if((h=h.value)&&h.video){var w=h.video.qualityOrdinal,y=O[w],L=y&&ec(y)&&y.video.qualityOrdinal>m.policy.Yl,C=w<=m.policy.Yl?ec(h):n$(h);if(!y||L||C)O[w]=h}return O}; WY=function(m,V){m.Z=V;var O=m.N.videoInfos;if(!m.Z.isLocked()){var h=(0,g.TN)();O=g.uA(O,function(L){if(L.Rr>this.policy.Rr)return!1;var C=this.YN.Z[L.id];return AN(this.K).get(L.id)>h||C.Dj.D>4||C.N>4?!1:this.iH.has(+L.itag)?!1:!0},m); mZl(m.K)&&(O=g.uA(O,function(L){return L.video.width<=854&&L.video.height<=480}))}O.length||(O=m.N.videoInfos); var w=O;m.policy.Bf&&(w=fja(m,w,V));w=g.uA(w,V.T,V);if(m.Z.isLocked()&&m.K.Z){var y=g.p5(O,function(L){return L.id===m.K.Z}); y?w=[y]:UX(m.K,"")}m.policy.Bf||(w=fja(m,w,V));w.length||(w=[O[0]]);w.sort(function(L,C){return HY(m,L)-HY(m,C)}); V={};for(O=1;OV.FN.video.width?(g.Vg(w,O),O--):HY(m,V.AS)*m.policy.Qt>HY(m,V.FN)&&(g.Vg(w,O-1),O--);V=w[w.length-1];m.Xr=!!m.D&&!!m.D.info&&m.D.info.B6!==V.B6;m.T=w;m.Mf.clear();O=!1;for(y=0;y=1080&&(O=!0);xZ$(m.policy,V,m.YN.yp)}; fja=function(m,V,O){var h=O.reason==="m"||O.reason==="s";m.policy.uy&&$z&&g.AJ&&(!h||O.Z<1080)&&(V=V.filter(function(q){return q.video&&(!q.L||q.L.powerEfficient)})); if(V.length>0)if(CS()){var w=Md$(m,V);V=V.filter(function(q){return!!q&&!!q.video&&q.B6===w[q.video.qualityOrdinal].B6})}else{var y,L,C=(y=V[0])==null?void 0:(L=y.video)==null?void 0:L.qualityOrdinal; if(C){O=V.filter(function(q){return!!q&&!!q.video&&q.video.qualityOrdinal===C}); var E=Md$(m,O)[C].B6;V=V.filter(function(q){return!!q&&!!q.video&&q.B6===E})}}return V}; Rz3=function(m,V){for(var O=0;O+1h}; tN=function(m){if(!m.L||!m.policy.T&&!m.L.info.fP){var V=m.N.Z;m.L&&(V=V.filter(function(h){return h.audio.Z===m.L.info.audio.Z}),V.length||(V=m.N.Z)); m.L=m.YN.Z[V[0].id];if(V.length>1&&!m.policy.v6){if(!m.policy.qH){var O=g.p5(V,function(h){return h.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); O&&(m.L=m.YN.Z[O.id])}O=!1;if(O=m.policy.uc?!0:m.Z.isLocked()?m.Z.Z<240:Rz3(m,m.L))m.L=m.YN.Z[g.iz(V).id]}}}; Xd=function(m){if(!m.nextVideo||!m.policy.T)if(m.Z.isLocked())m.nextVideo=m.Z.Z<=360?m.YN.Z[m.T[0].id]:m.YN.Z[g.iz(m.T).id];else{for(var V=Math.min(m.V,m.T.length-1),O=V7(m.mS),h=HY(m,m.L.info),w=O/m.policy.Ae-h;V>0&&!(HY(m,m.T[V])<=w);V--);for(O=O/m.policy.Qt-h;V=O);V++);m.nextVideo=m.YN.Z[m.T[V].id];m.V=V}}; hz$=function(m){var V=m.policy.Ae,O=V7(m.mS)/V-HY(m,m.L.info);V=g.BH(m.T,function(h){return HY(this,h)y?w=0:h[L]>m.buffered[L]&&(L===y-1?w=2:L===y-2&&h[L+1]>m.buffered[L+1]&&(w=3))}m.Z.add(V<<3|(O&&4)|w);V=Math.ceil(m.track.Zw()*1E3);m.Z.add(V-m.K);m.K=V;if(w===1)for(m.Z.add(y),L=V=0;L=2&&m.Z.add(h[y- 1]-m.buffered[y-1]);O&&m.Z.add(O);m.buffered=h}; Np=function(m,V,O){var h=this;this.policy=m;this.Z=V;this.v6=O;this.T=this.L=0;this.Cf=null;this.Zu=new Set;this.Qt=[];this.indexRange=this.initRange=null;this.V=new Ut;this.Ae=this.mS=!1;this.BD={wCe:function(){return h.D}, mOA:function(){return h.chunkSize}, Wxr:function(){return h.J}, SVu:function(){return h.N}}; (V=td$(this))?(this.chunkSize=V.csz,this.D=Math.floor(V.clen/V.csz),this.J=V.ck,this.N=V.civ):(this.chunkSize=m.D5,this.D=0,this.J=g.RH(16),this.N=g.RH(16));this.K=new Uint8Array(this.chunkSize);this.J&&this.N&&(this.crypto=new u$7(this.J,this.N))}; td$=function(m){if(m.policy.IF&&m.policy.Ik)for(var V=g.D(m.policy.IF),O=V.next(),h={};!O.done;h={Bw:void 0,Iy:void 0},O=V.next())if(O=g.Ex(O.value),h.Bw=+O.clen,h.Iy=+O.csz,h.Bw>0&&h.Iy>0&&m.policy.T===O.docid&&m.Z.info.id===O.fmtid&&m.Z.info.lastModified===+O.lmt)return m={},m.clen=h.Bw,m.csz=h.Iy,m.ck=O.ck,m.civ=O.civ,m}; ba=function(m){return!!m.Cf&&m.Cf.bX()}; XPI=function(m,V){if(!ba(m)&&!m.UH()){if(!(m.mS||(m.mS=!0,m.D>0))){var O=nw(m);O=Ql(m.policy.T,m.Z.info,Sw(m),O,m.policy.nA);IP(m,O)}if(V.info.type===1){if(m.Cf){ew(m,Error("Woffle: Expect INIT slices to always start us off"));return}m.initRange=hs(0,V.L.totalLength)}else if(V.info.type===2)m.Cf&&m.Cf.type===1||ew(m,Error("Woffle: Index before init")),m.indexRange=hs(m.initRange.end+1,V.L.totalLength);else if(V.info.type===3){if(!m.Cf){ew(m,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(m.Cf.type===3&&!Js(m.Cf,V.info)&&(m.Qt=[],V.info.Fr!==Cu(m.Cf)||V.info.Z!==0))return;if(V.info.D){O=g.D(m.Qt);for(var h=O.next();!h.done;h=O.next())K$$(m,h.value);m.Qt=[]}else{m.Qt.push(V);m.Cf=V.info;return}}else{ew(m,Error("Woffle: Unexpected slice type"));return}m.Cf=V.info;K$$(m,V);W$$(m)}}; K$$=function(m,V){var O=0,h=Ri(V.L);if(m.T=h.length)return;if(O<0)throw Error("Missing data");m.T=m.D;m.L=0}for(w={};O0){var L=h.getUint32(O+28);y+=L*16+4}var C=h.getUint32(O+y-4);try{var E=k77(V.subarray(O+y,O+y+C));if(E!==null){var q=E;break a}}catch(M){}}O+=w}q=null;break a}catch(M){q=null;break a}q=void 0}if(q!=null)for(V=b5(AU(q,7,void 0,PS)),V==null||m.QV||(m.cryptoPeriodIndex=V),V=b5(AU(q,10,void 0,PS)),V!=null&&V>0&& !m.QV&&(m.Z=V),q=HS(q,2,pMp,void 0===QjX?2:4),q=g.D(q),h=q.next();!h.done;h=q.next())V=m.D,O=V.push,h=Q5(h.value),h=g.zI(h,4),O.call(V,h)}; cva=function(m){return isNaN(m.cryptoPeriodIndex)?g.zI(m.initData):""+m.cryptoPeriodIndex}; ZO=function(m,V,O){var h=O===void 0?{}:O;O=h.videoDuration===void 0?0:h.videoDuration;var w=h.kX===void 0?void 0:h.kX;h=h.eC===void 0?!1:h.eC;this.videoId=m;this.status=V;this.videoDuration=O;this.kX=w;this.eC=h}; DZC=function(m,V,O,h,w){this.videoId=m;this.bD=V;this.L=O;this.bytesDownloaded=h;this.Z=w}; sX=function(m){this.Z=m;this.offset=0}; Fd=function(m){if(m.offset>=m.Z.totalLength)throw Error();return gH(m.Z,m.offset++)}; N8X=function(m,V){V=V===void 0?!1:V;var O=Fd(m);if(O===1){V=-1;for(O=0;O<7;O++){var h=Fd(m);V===-1&&h!==255&&(V=0);V>-1&&(V=V*256+h)}return V}h=128;for(var w=0;w<6&&h>O;w++)O=O*256+Fd(m),h*=128;return V?O:O-h}; bOC=function(m){try{var V=N8X(m,!0),O=N8X(m,!1);return{id:V,size:O}}catch(h){return{id:-1,size:-1}}}; nq5=function(m){for(var V=new sX(m),O=-1,h=0,w=0;!h||!w;){var y=bOC(V),L=y.id;y=y.size;if(L<0)return;if(L===176){if(y!==2)return;h=V.uP()}else if(L===186){if(y!==2)return;w=V.uP()}L===374648427?O=V.uP()+y:L!==408125543&&L!==174&&L!==224&&V.skip(y)}V=oi(m,0,O);O=new DataView(V.buffer);O.setUint16(h,3840);O.setUint16(w,2160);h=new CG([V]);E4(h,m);return h}; SY3=function(m,V,O){var h=this;this.loader=m;this.policy=V;this.Du=O;this.logger=new g.Ht("dash");this.L=[];this.Z=null;this.Ae=-1;this.V=0;this.v6=NaN;this.Qt=0;this.D=NaN;this.J=this.EH=0;this.Je=-1;this.iH=this.T=this.K=this.mS=null;this.Xr=this.Mf=NaN;this.N=this.Zu=this.fA=this.CA=null;this.pA=!1;this.H6=this.timestampOffset=0;this.BD={ND:function(){return h.L}}; if(this.policy.T){var w=this.Du,y=this.policy.T;this.policy.nA&&m.uH("atv",{ap:this.policy.nA});this.N=new Np(this.policy,w,function(L,C,E){m.RY.f2(new ZO(h.policy.T,2,{kX:new DZC(y,L,w.info,C,E)}))}); this.N.V.promise.then(function(L){h.N=null;L===1?m.RY.f2(new ZO(h.policy.T,L)):h.loader.uH("offlineerr",{status:L.toString()})},function(L){var C=(L.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); L instanceof ua&&!L.Z?(h.loader.uH("offlinenwerr",{em:C}),aP(h),m.RY.f2(new ZO(h.policy.T,4))):(h.loader.uH("dldbwerr",{em:C}),aP(h),m.RY.f2(new ZO(h.policy.T,4,{eC:!0})))})}}; IjI=function(m){return m.L.length?m.L[0]:null}; ez3=function(m,V){return m.L.some(function(O){return O.info.Fr===V})}; F$p=function(m,V,O,h){h=h===void 0?0:h;if(m.T){var w=m.T.Z+m.T.L;if(O.info.Z>0)if(O.info.Fr===m.T.Fr&&O.info.Z=0&&m.T.Fr>=0&&!Js(m.T,O.info))throw new g.no("improper_continuation",m.T.Gj(),O.info.Gj());$KU(m.T,O.info)||ia(m,"d")}else if(O.info.Z>0)throw new g.no("continuation_of_null",O.info.Gj());m.T=O.info;m.Du=O.info.Du;if(O.info.Z===0){if(m.Z)if(!m.loader.isOffline()||m.policy.bP)m.loader.uH("slice_not_fully_processed", {buffered:m.Z.info.Gj(),push:O.info.Gj()});else throw new g.no("slice_not_fully_processed",m.Z.info.Gj(),O.info.Gj());G9(m);m.EH=h}else{if(m.EH&&h&&m.EH!==h)throw m=new g.no("lmt_mismatch",O.info.Fr,m.EH,h),m.level="WARNING",m;!O.info.Du.If()&&m.K&&(h=O.info,w=m.K.YL,h.N="updateWithEmsg",h.Fr=w)}if(m.Z){h=g.kQ(m.Z,O);if(!h)throw new g.no("failed_to_merge",m.Z.info.Gj(),O.info.Gj());m.Z=h}else m.Z=O;a:{O=g.Fy(m.Z.info.Du.info);if(m.Z.info.type!==3){if(!m.Z.info.D)break a;m.Z.info.type===6?u9G(m,V, m.Z):zzI(m,m.Z);m.Z=null}for(;m.Z;){h=m.Z.L.totalLength;if(m.Ae<=0&&m.V===0){var y=m.Z.L,L=-1;w=-1;if(O){for(var C=0;C+80))break;if(f!==408125543)if(f===524531317)C=!0,M>=0&&(w=y.uP()+M,E=!0);else{if(C&&(f===160||f===163)&&(L<0&&(L=q),E))break;f===163&&(L=Math.max(0,L),w=y.uP()+M);if(f===160){L<0&&(w=L= y.uP()+M);break}y.skip(M)}}L<0&&(w=-1)}if(L<0)break;m.Ae=L;m.V=w-L}if(m.Ae>h)break;m.Ae?(h=ZO1(m,m.Ae),h.K&&stp(m,h),u9G(m,V,h),pw(m,h),m.Ae=0):m.V&&(h=ZO1(m,m.V<0?Infinity:m.V),m.V-=h.L.totalLength,pw(m,h))}}m.Z&&m.Z.info.D&&(pw(m,m.Z),m.Z=null)}; zzI=function(m,V){!V.info.Du.If()&&V.info.Z===0&&(g.Fy(V.info.Du.info)||V.info.Du.info.QV())&&EHa(V);if(V.info.type===1)try{stp(m,V),aj5(m,V)}catch(w){g.kL(w);var O=Ez(V.info);O.hms="1";m.loader.handleError("fmt.unparseable",O||{},1)}O=V.info.Du;O.Xf(V);m.N&&XPI(m.N,V);if(O.v2()&&m.policy.Z)a:{m=m.loader.YN;V=V.info.clipId;O=g.i6(O.info,m.yp);if(V){var h=vK({itag:O.itag,lmt:m.yp?0:O.lmt||0,xtags:O.xtags});if(m.Xr[h])break a;m.Xr[h]=V}m.Je.push(O)}}; WV7=function(m,V,O){if(m.L.length!==0&&(O||m.L.some(function(y){return y.info.T=la(L)+C):V=m.getDuration()>=L.getDuration(),V=!V;V&&G7G(O)&&(V=m.mS,BY?(C=JMU(O),L=1/C,C=la(m,C),V=la(V)+L-C):V=V.getDuration()- m.getDuration(),V=1+V/O.info.duration,wo7(g.YQ(O),V))}else{L=!1;m.K||(EHa(O),O.Z&&(m.K=O.Z,L=!0,w=O.info,y=O.Z.YL,w.N="updateWithEmsg",w.Fr=y,w=O.Z,w.bX&&(y=m.Du.index,y.L=!w.bX,y.D="emsg"),w=O.info.Du.info,y=g.YQ(O),g.Fy(w)?HK(y,1701671783):w.QV()&&N$([408125543],307544935,y)));a:if((w=DW(O,m.policy.nP))&&C6G(O))C=pP$(m,O),m.J+=C,w-=C,m.Qt+=w,m.D=m.policy.CR?m.D+w:NaN;else{if(m.policy.KH){if(y=E=m.loader.HM(g.ri(O),1),m.D>=0&&O.info.type!==6){if(m.policy.CR&&isNaN(m.Mf)){g.cj(new g.no("Missing duration while processing previous chunk", O.info.Gj()));m.loader.isOffline()&&!m.policy.bP||B8m(m,O,y);ia(m,"m");break a}h=E-m.D;var q=h-m.J,M=O.info.Fr,f=m.iH?m.iH.Fr:-1,x=m.Xr,R=m.Mf,A=m.policy.Y8&&h>m.policy.Y8,K=Math.abs(q)>10,X=Math.abs(m.D-y)<1E-7;if(Math.abs(q)>1E-4){m.H6+=1;var c=(C=m.K)==null?void 0:PIC(C);C={audio:""+ +m.RF(),sq:M.toFixed(),sliceStart:E,lastSq:f.toFixed(),lastSliceStart:x,lastSliceDuration:R,totalDrift:(h*1E3).toFixed(),segDrift:(q*1E3).toFixed(),skipRewrite:""+ +(A||K)};if(c==null?0:c.length)C.adCpn=c[0];m.loader.handleError("qoe.avsync", C);m.Je=M}A||K||X||(y=m.D);C=pP$(m,O,E);w-=C;m.J=h+C}}else y=isNaN(m.D)?O.info.startTime:m.D;B8m(m,O,y)&&(m.Qt+=w,m.D=y+w,m.policy.f5&&m.H6>=m.policy.f5&&(m.H6=0,m.loader.wQ({resetForRewrites:"count"})))}m.iH=O.info;m.Mf=ct(O);O.D>=0&&(m.Xr=O.D);if(L&&m.K){L=lja(m,!0);qT(O.info,L);m.Z&&qT(m.Z.info,L);V=g.D(V);for(C=V.next();!C.done;C=V.next())C=C.value,w=void 0,m.policy.K&&C.Fr!==((w=m.K)==null?void 0:w.YL)||qT(C,L);(O.info.D||m.Z&&m.Z.info.D)&&O.info.type!==6||(m.Zu=L,m.policy.L?(V=Qtl(m.K),m.loader.CL(m.Du, L,V)):(V=m.loader,V.YN.isManifestless&&vqo(V,L,null,!!m.Du.info.video)),m.policy.WW||P0o(m))}}aj5(m,O);m.timestampOffset&&jcI(O,m.timestampOffset)}; pw=function(m,V){if(V.info.D){m.CA=V.info;if(m.K){var O=m.K,h=lja(m,!1);O=Qtl(O);m.loader.CL(m.Du,h,O);m.Zu||m.policy.WW||P0o(m);m.Zu=null}G9(m)}m.N&&XPI(m.N,V);if(h=m.GJ())if(h=g.kQ(h,V,m.policy.S7,m.policy.VF)){m.L.pop();m.L.push(h);return}m.L.push(V)}; Qtl=function(m){if(m.X_()){var V=m.data["Stitched-Video-Id"]?m.data["Stitched-Video-Id"].split(",").slice(0,-1):[],O=PIC(m),h=[];if(m.data["Stitched-Video-Duration-Us"])for(var w=g.D(m.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),y=w.next();!y.done;y=w.next())h.push((Number(y.value)||0)/1E6);w=[];if(m.data["Stitched-Video-Start-Frame-Index"]){y=g.D(m.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var L=y.next();!L.done;L=y.next())w.push(Number(L.value)||0)}w=[]; if(m.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(y=g.D(m.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),L=y.next();!L.done;L=y.next())w.push((Number(L.value)||0)/1E6);m=new YY7(V,O,h,w,g.mK5(m),g.VZI(m))}else m=null;return m}; G9=function(m){m.Z=null;m.Ae=-1;m.V=0;m.K=null;m.v6=NaN;m.Qt=0;m.Zu=null}; ia=function(m,V){V={rst4disc:V,cd:m.J.toFixed(3),sq:m.iH?m.iH.Fr:-1};m.D=NaN;m.J=0;m.Je=-1;m.iH=null;m.Xr=NaN;m.Mf=NaN;m.fA=null;m.loader.uH("mdstm",V)}; aj5=function(m,V){if(m.isDrm()){if(V.info.Du.info.QV()){var O=new $K(g.YQ(V));if(kK(O,[408125543,374648427,174,28032,25152,20533,18402])){var h=DS(O,!0);O=h!==16?null:I3(O,h)}else O=null;h="webm"}else V.info.V=T8a(g.YQ(V)),O=$Z5(V.info.V),h="cenc";O&&O.length&&(O=new z9(O,h),m.policy.jx&&g.Fy(V.info.Du.info)&&(h=EVl(g.YQ(V)))&&(O.L=h),O.QV=V.info.Du.info.QV(),V.Z&&V.Z.cryptoPeriodIndex&&(O.cryptoPeriodIndex=V.Z.cryptoPeriodIndex),V.Z&&V.Z.L&&(O.Z=V.Z.L),m.loader.bl(O))}}; P0o=function(m){var V=m.K,O=Q2I(V);O&&(O.startSecs+=m.v6,m.loader.CB(m.Du,O,V.YL,V.X_()))}; lja=function(m,V){var O,h=m.K;if(O=Q2I(h))O.startSecs+=m.v6;var w=m.v6,y=0;m.Du instanceof o_&&(y=m.Du.u4);return new ht(h.YL,w,V?y:m.Qt,h.ingestionTime,"sq/"+h.YL,void 0,void 0,V,O)}; B8m=function(m,V,O){if(!yM0(V,O))return V=Ez(V.info),V.smst="1",m.loader.handleError("fmt.unparseable",V||{},1),!1;isNaN(m.v6)&&(m.v6=O);return!0}; pP$=function(m,V,O){var h=0;if(V.info.Du.info.QV()&&!C6G(V))return 0;if(m.mS&&!m.RF()){var w=0;O&&g.Fy(V.info.Du.info)?w=O-m.D:V.info.Du.info.QV()&&(w=m.J);var y=V.info.Fr;O=DW(V,m.policy.nP);var L=m.mS;var C=L.Je;L=L.J;var E=Math.abs(L-w)>.02;if((y===C||y>C&&y>m.Je)&&E){h=Math.max(.95,Math.min(1.05,(O-(L-w))/O));if(g.Fy(V.info.Du.info))wo7(g.YQ(V),h);else if(V.info.Du.info.QV()&&(y=w-L,!g.Fy(V.info.Du.info)&&(V.info.Du.info.QV(),h=new $K(g.YQ(V)),C=V.K?h:new $K(new DataView(V.info.Du.Z.buffer)), DW(V,!0)))){var q=y*1E3,M=uO(C);C=h.pos;h.pos=0;if(h.Z.getUint8(h.pos)===160||zw(h))if(cK(h,160))if(DS(h,!0),cK(h,155)){if(y=h.pos,E=DS(h,!0),h.pos=y,q=q*1E9/M,M=bO(h),q=M+Math.max(-M*.7,Math.min(M,q)),q=Math.sign(q)*Math.floor(Math.abs(q)),!(Math.ceil(Math.log(q)/Math.log(2)/8)>E)){h.pos=y+1;for(y=E-1;y>=0;y--)h.Z.setUint8(h.pos+y,q&255),q>>>=8;h.pos=C}}else h.pos=C;else h.pos=C;else h.pos=C}h=DW(V,m.policy.nP);h=O-h}h&&V.info.Du.info.QV()&&m.loader.uH("webmDurationAdjustment",{durationAdjustment:h, videoDrift:w+h,audioDrift:L})}return h}; G7G=function(m){return m.info.Du.If()&&m.info.Fr===m.info.Du.index.wY()}; la=function(m,V){V=(V=V===void 0?0:V)?Math.round(m.timestampOffset*V)/V:m.timestampOffset;m.Du.T&&V&&(V+=m.Du.T.Z);return V+m.getDuration()}; msX=function(m,V){V<0||(m.L.forEach(function(O){jcI(O,V)}),m.timestampOffset=V)}; y7=function(m,V,O,h,w){Yj.call(this,O,w);var y=this;this.policy=m;this.formatId=V;this.BW=h;this.lastError=null;this.onProgress=function(){y.UH()||(y.BW.eb.has(y.formatId)?(y.isComplete()||y.Z.start(),Vv(y.BW,y.formatId)&&y.RV(2),y.BW.wH(y.formatId)&&($Tl(y.BW,y.formatId)?y.Mq(4):(y.lastError="net.closed",y.Mq(5)))):(y.lastError="player.exception",y.Mq(5)))}; this.Z=new g.mq(function(){y.isComplete()||(y.lastError="net.timeout",y.Mq(5))},1E3); this.Z.start();XtG(this.BW,this.formatId,this.onProgress);g.rw(this.onProgress)}; Qv=function(m,V,O,h){g.Z.call(this);var w=this;this.loader=m;this.policy=V;this.Du=O;this.timing=h;this.logger=new g.Ht("dash");this.L=[];this.mS=[];this.Z=this.XA=null;this.fA=!1;this.EH=this.H6=0;this.K=-1;this.Ae=!1;this.v6=-1;this.iH=null;this.Zu=NaN;this.Qt=[];this.BD={L7:function(){return w.D}, s4A:function(){return w.L}, ZQA:function(){return w.J}}; this.D=new SY3(m,V,O);this.policy.Z&&(this.J=new hm(this.D,this.loader.getManifest(),this.policy,function(y){w.policy.Ev&&w.uH("buftl",y)})); this.policy.Id&&(this.V=new cY(this));this.Rr=O.info.Rr;this.N=this.policy.mS?!1:O.Ex();this.isManifestless=O.Ex();this.T=this.N;g.a(this,this.iH)}; vY=function(m,V,O){O=O===void 0?!1:O;V&&BY&&msX(m.D,V.f7());if(!O){var h;(h=m.J)==null||U$G(h)}m.XA=V;(V=m.J)!=null&&(V.XA=m.XA)}; PY=function(m){var V=m.XA&&m.XA.m$();if(m.policy.z9){if((m=m.J)==null)m=void 0;else{var O;m=(O=m.D)==null?void 0:O.info}return m||null}return V}; VCU=function(m){for(var V={},O=0;O4&&m.mS.shift()}; OI$=function(m,V){if(V.KR()){var O=V.Mi();O=g.D(O);for(var h=O.next();!h.done;h=O.next())h=h.value,m.policy.D&&V instanceof y7&&m.uH("omblss",{s:h.info.Gj()}),Vb(m,V.info.jz,h,V.qM())}}; Vb=function(m,V,O,h){h=h===void 0?0:h;isNaN(m.Zu)||(m.uH("aswm",{sq:V[0].Fr,id:V[0].Du.info.itag,xtag:V[0].Du.info.Z,ep:Date.now()-m.Zu}),m.Zu=NaN);switch(O.info.type){case 1:case 2:hd1(m,O);break;case 4:var w=O.info.Du,y=w.h5(O),L;((L=m.Z)==null?0:L.type===4)&&bj7(O.info,m.Z)&&(m.Z=w.Y_(m.Z).pop());O=g.D(y);for(w=O.next();!w.done;w=O.next())Vb(m,V,w.value,h);break;case 3:O.info.Du.info.video?(w=m.timing,w.iH||(w.iH=(0,g.TN)(),g.nS("fvb_r",w.iH,w.Z))):(w=m.timing,w.N||(w.N=(0,g.TN)(),g.nS("fab_r", w.N,w.Z)));F$p(m.D,V,O,h);m.policy.Z&&wBp(m);break;case 6:F$p(m.D,V,O,h),m.Z=O.info}}; hd1=function(m,V){if(V.info.type===1)if(V.info.Du.info.video){var O=m.timing;O.H6||(O.H6=(0,g.TN)(),g.nS("vis_r",O.H6,O.Z))}else O=m.timing,O.V||(O.V=(0,g.TN)(),g.nS("ais_r",O.V,O.Z));zzI(m.D,V);m=m.loader;m.videoTrack.Du.v2()&&m.audioTrack.Du.v2()&&m.policy.Z&&!m.YN.yp&&(V=m.audioTrack.getDuration(),O=m.videoTrack.getDuration(),Math.abs(V-O)>1&&m.uH("trBug",{af:""+g.i6(m.audioTrack.Du.info,!1),vf:""+g.i6(m.videoTrack.Du.info,!1),a:""+V,v:""+O}))}; xj=function(m){return IjI(m.D)}; wBp=function(m){m.L.length?m.Z=g.iz(g.iz(m.L).info.jz):m.D.L.length?m.Z=m.D.GJ().info:m.Z=PY(m)}; OC=function(m,V){var O={L4:[],Hh:[]},h;if((m=m.J)==null)m=void 0;else{At5(m,m.L4,"og");R23(m,V);At5(m,m.L4,"trim");var w=gKo(m);V=w.L4;w=w.vP;for(var y=[],L=0;L0){var x=Pg(f,E);x>=0&&(M=(f.end(x)-E+.1)*1E3)}y.push({formatId:g.i6(C.info.Du.info,m.YN.yp), Z3:C.info.Z3,sequenceNumber:C.info.Fr+m.T,jH:q,A$:C.info.L,VX:M})}m={L4:V,Hh:y}}return(h=m)!=null?h:O}; Jm=function(m,V,O){O=O===void 0?!1:O;if(m.XA){var h=m.XA.RJ(),w=V8(h,V),y=NaN,L=PY(m);L&&(y=V8(h,L.Du.index.getStartTime(L.Fr)));if(w===y&&m.Z&&m.Z.L&&yW5(h3(m),0))return V}m=wA(m,V,O);return m>=0?m:NaN}; E6=function(m,V,O){m.Du.v2();var h=wA(m,V);if(h>=0)return h;var w;(w=m.J)==null||oKm(w,V,O);h=Math;w=h.min;var y=m.D;if(y.N)if(y=y.N,y.Cf&&y.Cf.type===3)y=y.Cf.startTime;else if(y.D>0){var L=y.Z.index;L=g.f9(L.offsets.subarray(0,L.count),y.D*y.chunkSize);y=y.Z.index.getStartTime(L>=0?L:Math.max(0,-L-2))}else y=0;else y=Infinity;V=w.call(h,V,y);m.Z=m.policy.mS?null:m.Du.j$(V).jz[0];yb(m)&&(m.policy.Hc&&(O==null?void 0:O.seekSource)===60||m.XA&&m.XA.abort(),m.policy.Nv&&(O=m.J)!=null&&(O.D=void 0)); m.EH=0;return m.Z?m.Z.startTime:V}; t1G=function(m){m.N=!0;m.T=!0;m.K=-1;E6(m,Infinity)}; jx=function(m){for(var V=0,O=g.D(m.L),h=O.next();!h.done;h=O.next())V+=SE3(h.value.info);return V+=iO1(m.D)}; J3=function(m,V){V=V===void 0?!1:V;var O=m.loader.getCurrentTime(),h=m.D.GJ(),w=(h==null?void 0:h.info.K)||0;if((h==null?0:h.info.Du.Ex())&&!h.info.D)if(m.policy.Oi)w=h.info.T;else if(m.policy.O0){var y=h.info;w=y.range?y.K:Math.min(y.startTime+Math.min(y.duration*y.Z/y.Du.info.Rr,y.duration)+(y.range?y.J:Math.min(y.duration,y.duration*y.L/y.Du.info.Rr)),y.startTime+y.duration)}if(!m.XA){if((m.policy.Z||m.policy.Zd)&&V&&!isNaN(O)){if(h)return w-O;if(m.policy.Zd&&m.Du.info.B6==="f")return Infinity}return 0}if((y= PY(m))&&Lh(y))return y.K;var L=m.XA.RJ(!0);if(V&&h)return y=0,m.policy.Z&&(y=wG(L,w+.02)),y+w-O;V=wG(L,O);m.policy.QU&&y&&(h=Pg(L,O),L=Pg(L,y.T-.02),h===L&&(O=y.K-O,m.policy.D&&O>V+.02&&m.uH("abh",{bh:V,bhtls:O}),V=Math.max(V,O)));return V}; jV1=function(m){var V=PY(m);return V?V.K-m.loader.getCurrentTime():0}; Ch=function(m,V,O,h){if(!m.Du.index.UW(V,!0))return!1;try{L8(m);for(var w=m.D,y=null,L=w.L.length-1;L>=0;L--){var C=w.L[L];C.info.Fr>=V&&(w.L.pop(),w.D-=DW(C,w.policy.nP),y=C.info)}y&&(w.T=w.L.length>0?w.L[w.L.length-1].info:w.fA,w.L.length!==0||w.T||ia(w,"r"));w.loader.uH("mdstm",{rollbk:1,itag:y?y.Du.info.itag:"",popped:y?y.Fr:-1,sq:V,lastslc:w.T?w.T.Fr:-1,lastfraget:w.D.toFixed(3)});if(m.policy.Z)return m.Z=null,!0;h>O?E6(m,h):m.Z=m.Du.Wf(V-1,!1).jz[0]}catch(E){return V=JM(E),V.details.reason= "rollbkerr",m.loader.handleError(V.errorCode,V.details,V.severity),!1}return!0}; qj=function(m,V){var O;for(O=0;O0?O||V.Fr>=m.v6:O}; Mj=function(m){var V;return yb(m)||Lh((V=m.D.GJ())==null?void 0:V.info)}; h3=function(m){var V=[],O=PY(m);O&&V.push(O);V=g.wZ(V,m.D.vU());O=g.D(m.L);for(var h=O.next();!h.done;h=O.next()){h=h.value;for(var w=g.D(h.info.jz),y=w.next(),L={};!y.done;L={uT:void 0},y=w.next())L.uT=y.value,h.Vr&&(V=g.uA(V,function(C){return function(E){return!bj7(E,C.uT)}}(L))),(Lu(L.uT)||L.uT.type===4)&&V.push(L.uT)}m.Z&&!HjI(m.Z,g.iz(V),m.Z.Du.If())&&V.push(m.Z); return V}; yW5=function(m,V){if(!m.length)return!1;for(V+=1;V=V){V=y;break a}}V=w}return V<0?NaN:yW5(m,O?V:0)?m[V].startTime:NaN}; fh=function(m){return!(!m.Z||m.Z.Du===m.Du)}; LS1=function(m,V,O){return m.policy.Z?J3(m,!0)V&&m.K1080&&!m.Sk&&(m.Mf=36700160,m.W6=5242880,m.Je=Math.max(4194304,m.Je),m.Sk=!0);V.video.qualityOrdinal>2160&&!m.W0&&(m.Mf=104857600,m.Rr=13107200,m.W0=!0);g.m9(m.IY.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?V.isEncrypted()&&g.Qf()&&g.B7("samsung")&&(g.B7("kant")||g.B7("muse"))&&(m.Rr=g.m9(m.IY.experiments,"html5_samsung_kant_limit_max_bitrate")):V.isEncrypted()&&g.Qf()&&g.B7("kant")&&(m.Rr=1310720);m.gU!==0&&V.isEncrypted()&& (m.Rr=m.gU);m.v8!==0&&V.isEncrypted()&&O&&(m.Rr=m.v8);V.Rr&&(m.gt=Math.max(m.pR,Math.min(m.Je,5*V.Rr)))}; F8=function(m){return m.Z&&m.Ak}; UC=function(m){return m.Z&&m.zf&&m.playbackStartPolicy}; dA=function(m,V,O,h){m.zf&&(m.playbackStartPolicy=V,m.A0=O,m.Zq=h)}; oW=function(m,V,O){O=O===void 0?0:O;return g.m9(m.IY.experiments,V)||O}; AWa=function(m){var V=m===void 0?{}:m;m=V.KU;var O=V.Uu;var h=V.qV;var w=V.wY;V=V.Mk;this.KU=m;this.Uu=O;this.qV=h;this.wY=w;this.Mk=V}; nKm=function(m,V){if(V<0)return!0;var O=m.wY();return V0)return 2;if(V<0)return 1;O=m.wY();return V(0,g.TN)()?0:1}; WL=function(m,V,O,h,w,y,L,C,E,q,M,f,x,R){R=R===void 0?null:R;g.Z.call(this);var A=this;this.loader=m;this.policy=V;this.videoTrack=O;this.audioTrack=h;this.D=w;this.Z=y;this.timing=L;this.T=C;this.schedule=E;this.YN=q;this.L=M;this.Qt=f;this.EN=x;this.F3=R;this.Zu=!1;this.aX="";this.iC=null;this.TM=NaN;this.Ae=!1;this.HD=null;this.Fs=this.V=NaN;this.LX=this.K=0;this.logger=new g.Ht("dash");this.BD={Ef:function(K,X){return A.Ef(K,X)}}; this.policy.jk>0&&(this.aX=g.RH(this.policy.jk));this.policy.hZ&&(this.J=new t3(this.loader,this.policy,this.schedule),g.a(this,this.J))}; WSC=function(m,V,O){var h=V.Z?V.Z.Du.Dj:V.Du.Dj;var w=m.D,y;(y=!m.policy.i9)||(y=U3(33,h.Z)===U3(33,h.L));y?h=!1:(w=iO(w,U3(34,h.L)),y=6E4*Math.pow(w.T,1.6),(0,g.TN)()=w.T?(w.uH("sdai",{haltrq:y+1,est:w.T}),h=!1):h=w.L!==2;if(!h||!Q9(V.Z?V.Z.Du.Dj:V.Du.Dj,m.policy,m.D,m.loader.ix)||m.loader.isSuspended&&(!TC(m.schedule)||m.loader.yv))return!1;if(m.policy.T&&l7>=5)return g.Vn(m.loader.bM),!1;if(m.YN.isManifestless){if(V.L.length>0&&V.Z&&V.Z.Fr===-1||V.L.length>=m.policy.Fq||!m.policy.Wg&&V.L.length>0&&!m.policy.V.Uu)return!1;if(V.N)return!m.YN.isLive||!isNaN(m.TM)}if(ECp(V))return!1; if(!V.Z){if(!V.Du.v2())return!1;E6(V,m.loader.getCurrentTime())}if(xj(V)&&(V.GJ()!==xj(V)||m.loader.isSuspended))return!1;w=(h=m.policy.Wc)&&!V.L.length&&J3(V,!0)=m.policy.k8)return!1;h=V.Z;if(!h)return!0;h.type===4&&h.Du.v2()&&(V.Z=g.iz(h.Du.Y_(h)),h=V.Z);if(!h.bX()&&!h.Du.S1(h))return!1;y=m.YN.El||m.YN.T;if(m.YN.isManifestless&&y){y=V.Du.index.wY(); var L=O.Du.index.wY();y=Math.min(y,L);if(V.Du.index.US()>0&&y>0&&h.Fr>=y)return V.v6=y,O.v6=y,!1}if(h.Du.info.audio&&h.type===4||h.bX())return!1;y=!V.T&&!O.T;if(w=!w)w=h.K,w=!!(O.Z&&!Lh(O.Z)&&O.Z.KXB3(m,V)?(XB3(m,V),!1):(m=V.XA)&&m.isLocked()?!1:!0}; XB3=function(m,V){var O=m.Z;O=O.Z?O.Z.I8:null;if(m.policy.EH&&O)return O.startSecs+O.Ul+15;V=C8(m.loader,V);m.policy.UU>0&&(O=((0,g.TN)()-m.loader.pG)/1E3,V=Math.min(V,m.policy.UU+m.policy.RK*O));V=m.loader.getCurrentTime()+V;return m.policy.hD&&(O=HI0(m.loader)+m.policy.hD,O=0||V.Dj.IC("defrag")==="1"||V.Dj.IC("otf")==="1"){V=null;break a}w=hs(0,4096)}w=new MT([new yA(5,h.Du,w,"createProbeRequestInfo"+h.N,h.Fr)],V.L);w.D3=O;w.Z=V.Z;V=w}V&&HL(m,V)}}; HL=function(m,V){m.loader.j9(V);var O=SE3(V),h=m.loader.zl();O={Tp:m.schedule,YB:O,zw:EKC(m.T,O),ZF:js(V.jz[0]),tf:xU(14,V.Dj.Z),Y6:m.policy.D,QR:function(L,C){m.loader.Ba(L,C)}}; if(m.schedule.L.N){var w,y;O.gV=(((w=m.videoTrack.Du)==null?void 0:w.info.Rr)||0)+(((y=m.audioTrack.Du)==null?void 0:y.info.Rr)||0)}m.iC&&(O.Fr=V.jz[0].Fr,O.TM=V.TM,O.iC=m.iC);h={Qh:IQ1(V,m.loader.getCurrentTime()),E5:m.policy.GB&&xQ(V)&&V.jz[0].Du.info.video?gqX(m.L):void 0,wO:m.policy.EH,poToken:m.loader.gQ(),ol:m.loader.V9(),aX:m.aX,Fs:isNaN(m.Fs)?null:m.Fs,F3:m.F3,EN:m.EN,LX:m.LX,z_:h};return new j4(m.policy,V,O,m.D,function(L,C){try{a:{var E=L.info.jz[0].Du,q=E.info.video?m.videoTrack:m.audioTrack; if(!(L.state>=2)||L.isComplete()||L.qT()||!(!m.loader.P6||m.loader.isSuspended||J3(q)>3)){var M=ds$(L,m.policy,m.D);M===1&&(m.Ae=!0);TK3(m,L,M);if(L.isComplete()||L.UH()&&C<3){if(m.policy.D){var f=L.timing.nX();f.rst=L.state;f.strm=L.xhr.GK();f.cncl=L.xhr&&L.HB.K?1:0;m.loader.uH("rqs",f)}L.Vq&&m.loader.uH("sbwe3",{},!0)}if(!m.UH()&&L.state>=2){utU(m.timing,L,E);var x=m.loader;m.Fs&&L.C3&&x&&(m.Fs=NaN,m.loader.YU(L.C3),m.loader.k7(),m.loader.uH("cabrUtcSeek",{mediaTimeSeconds:L.C3}));L.oV&&m.Fs&&L.oV&& !L.oV.action&&(m.loader.Yx(m.Fs),m.Fs=NaN,m.loader.uH("cabrUtcSeekFallback",{targetUtcTimeSeconds:m.Fs}));L.t_&&m.loader.pV(L.t_);m.policy.BB&&(m.LX=L.LX);if(L.state===3){qj(q,L);xQ(L.info)&&Y3(m,q,E,!0);if(m.HD){var R=L.info.lS();R&&m.HD.d4(L.info.jz[0].Fr,E.info.id,R)}m.loader.AY()}else if(L.isComplete()&&L.info.jz[0].type===5){if(L.state!==4)L.Dw()&&m.loader.handleError(L.aJ(),L.rz());else{var A=(L.info.jz[0].Du.info.video?m.videoTrack:m.audioTrack).L[0]||null;A&&A instanceof j4&&A.qT()&&A.yR()}L.dispose()}else{if(!L.Dw()&& L.DR&&L.state>=2&&L.state!==3){var K=L.xhr.getResponseHeader("X-Response-Itag");if(K){var X=oq1(m.L,K),c=L.info.D;if(c){var r=c-X.DP();X.D=!0;L.info.jz[0].Du.D=!1;var N=X.Nk(r);L.info=N;if(L.dH){var n=L.dH,F=N.jz;(F.length!==n.jz.length||F.length=m.policy.Ma&&m.HD&&L.info.isDecorated()&&Ko==="net.badstatus"&&Dw(m.HD,zl,L5))){var lp=(w7.info.video&&w7.Dj.D>1||L.P2===410||L.P2===500||L.P2===503)&&!(AN(m.L.K).size>0)&&!xU(12,w7.Dj.Z),SG=L.rz(),lz=w7.info.video?m.videoTrack:m.audioTrack;lp&&(SG.stun="1");m.loader.handleError(Ko,SG);m.UH()||(lp&&T9(m.L,w7),qj(lz,L),m.loader.AY())}}else X=1,m.HD&&L.info.isDecorated()&& Ko==="net.badstatus"&&Dw(m.HD,zl,L5)&&(X=0),m.YN.isLive&&L.aJ()==="net.badstatus"&&m.K<=m.policy.kh*2?(sc$(m.YN),m.YN.El||m.YN.isPremiere?f8(m.loader,0,{Jq:"badStatusWorkaround"}):m.YN.T?f8(m.loader,m.YN.Pt,{Jq:"badStatusWorkaround",HM:!0}):Nj(m.loader)):m.loader.handleError(Ko,L.rz(),X);isNaN(m.Fs)||(m.loader.Yx(m.Fs),m.Fs=NaN)}m.policy.Rd&&!L.isComplete()?bU(m.loader):m.loader.AY();var DM=tCa(L,m.policy,m.D);TK3(m,L,DM)}}}}}catch(k){Ko=m.Zu?1:0,m.Zu=!0,L=L$(Ko),Ko=JM(k,Ko),m.loader.handleError(Ko.errorCode, Ko.details,Ko.severity),L||m.loader.Si()}},h)}; rA=function(m,V){if(m.policy.useUmp&&V.UH())return!1;try{var O=V.info.jz[0].Du,h=O.info.video?m.videoTrack:m.audioTrack;if(m.YN.isManifestless&&h){m.K=0;h.N&&(V.UH(),V.isComplete()||V.KR(),h.N=!1);V.nZ()&&m.loader.MN.xZ(1,V.nZ());var w=V.US(),y=V.yY();VT(m.YN,w,y)}if(V.info.ZF()&&!fu(V.info))for(var L=g.D(V.Mi()),C=L.next();!C.done;C=L.next())hd1(h,C.value);for(m.loader.getCurrentTime();h.L.length&&h.L[0].state===4;){var E=h.L.shift();OI$(h,E);h.H6=E.gf()}h.L.length&&OI$(h,h.L[0]);var q=!!xj(h);q&& V instanceof y7&&(O.info.RF()?eTa(m.timing):IW1(m.timing));return q}catch(M){V=V.rz();V.origin="hrhs";a:{m=m.loader;O=M;if(O instanceof Error){V.msg||(V.msg=""+O.message);V.name||(V.name=""+O.name);if(O instanceof g.no&&O.args)for(h=g.D(Object.entries(O.args)),w=h.next();!w.done;w=h.next())y=g.D(w.value),w=y.next().value,y=y.next().value,V["arg"+w]=""+y;g.cj(O);if(O.level==="WARNING"){m.RY.wQ(V);break a}}m.handleError("fmt.unplayable",V,1)}return!1}}; $sC=function(m){var V=m.videoTrack.Du.index;m.iC=new AWa({KU:m.policy.KU,Uu:m.policy.V.Uu,qV:V.aj(),wY:function(){return V.wY()}, Mk:function(){return V.Mk()}})}; Y3=function(m,V,O,h){if(!(O.v2()||O.Pr()||O.D||!Q9(O.Dj,m.policy,m.D,m.loader.ix)||O.info.B6==="f"||m.policy.Z)){if(h){h=m.T;var w=O.info;h=qFm(h,w.video?h.policy.qg:h.policy.Zc,w.Rr)}else h=0;h=O.Nk(h);m=HL(m,h);fu(h)&&mh(V,m);O.D=!0}}; nh=function(m,V,O,h,w,y,L,C){g.Z.call(this);var E=this;this.loader=m;this.Ze=V;this.videoTrack=O;this.audioTrack=h;this.YN=w;this.Zu=y;this.isAudioOnly=L;this.V=C;this.L=j2;this.v6=!1;this.logger=new g.Ht("sabr");this.Qt=this.J=this.mS=this.Ae=!1;this.videoInfos=this.N=this.Zu.videoInfos;this.D=this.iH=this.Zu.Z;this.Z=new RP(V,y,function(q,M){E.loader.uH(q,M)}); this.isAudioOnly&&Yhm(this,this.YN.Z["0"])}; krX=function(m,V){var O=[];V=g.D(V);for(var h=V.next();!h.done;h=V.next())O.push(g.i6(h.value,m.YN.yp));return O}; Yhm=function(m,V,O){V!==m.T&&(m.T&&(m.v6=!0),m.T=V,m.r_(V,m.videoTrack,O))}; Ds$=function(m,V){F8(m.Ze)&&(m.mS=V.reason==="m"||V.reason==="l"?!0:!1);V.reason==="m"?V.isLocked()&&rW0(m,V.Z):cW$(m,V)?Sx(m,V.L,V.Z):m.videoInfos=m.N;m.Qt=!0;m.L=V}; cW$=function(m,V){return m.Ze.T0z&&V.reason==="l"||m.Ze.AK?!1:m.Ze.Na?!0:V.reason==="l"||V.reason==="b"||V.reason==="o"}; rW0=function(m,V){var O=m.Z.Z;if(O){m.videoInfos=m.N;var h=g.p5(m.videoInfos,function(w){return w.id===O}); h&&h.video.qualityOrdinal===V?m.videoInfos=[h]:(h=m.videoInfos.map(function(w){return w.id}),m.loader.uH("sabrpf",{pfid:""+O, vfids:""+h.join(".")}),Sx(m,V,V),UX(m.Z,""))}else Sx(m,V,V)}; var Cp5=function(m,V,O,h,w,y,L,C,E,q,M,f){return bp[J[4]](this,2,m,V,O,h,w,y,L,C,E,q,M,f)}; Sx=function(m,V,O){m.videoInfos=m.N;m.videoInfos=g.uA(m.videoInfos,function(h){return h.video.qualityOrdinal>=V&&h.video.qualityOrdinal<=O})}; NKp=function(m,V,O){if(m.V){var h=g.uA(m.D,function(w){return w.id===m.V}); return IW(h,O).includes(V)}h=g.uA(m.D,function(w){var y;return!((y=w.fP)==null||!y.isDefault)}); return h.length>0?IW(h,O).includes(V):IW(m.D,O).includes(V)}; IW=function(m,V){return m.map(function(O){return vK(g.i6(O,V))})}; bIG=function(m){var V;if((V=m.L)==null?0:V.isLocked())return m.videoInfos;var O=AN(m.Z);V=g.uA(m.videoInfos,function(h){return h.Rr>m.Ze.Rr?!1:!O.has(h.id)}); mZl(m.Z)&&(V=g.uA(V,function(h){return h.video.width<=854&&h.video.height<=480})); return V}; ShG=function(m,V,O,h){var w=m.YN,y=m.RY.getVideoData(),L=m.gO,C=RTa({Tp:m.Tp,IY:y.j(),RY:m.RY,vZ:m.vZ,Ze:m.Ze,RU:m.RU,iq:m.iq,uG:m.uG,zO:m.zO,q6:m.q6,pU:m.pU,Dr:m.Dr,sabrLicenseConstraint:y.sabrLicenseConstraint,fX:m.fX,LM:m.LM,e2:m.e2,X6:m.X6,Ajr:!!L,authorizedFormats:y.authorizedFormats,hm:m.hm}),E=aK(y,m.z_,m.nextRequestPolicy,m.Zt,m.oX,m.nD,m.Hu);O&&V&&(O=E.lq?E.lq.map(function(x){return x.type}):[],V("sabr",{stmctxt:O.join("_"), unsntctxt:E.ue?E.ue.join("_"):""}));V=m.iT;O=m.vy;if(O===void 0&&V===void 0){var q;O=nC3(w.yp,(q=m.jg)==null?void 0:q.video);var M;V=nC3(w.yp,(M=m.jg)==null?void 0:M.audio)}if(y.F3)var f=y.F3;y={fT:C,Hh:m.Hh,iT:V,vy:O,gO:L,videoPlaybackUstreamerConfig:f,bT:E};h&&m.dF?m.dF.length>0&&(y.dF=m.dF):m.jR&&(y.jR=m.jR);y.L4=m.L4;y.Hr=w.Je;return y}; nC3=function(m,V){return V?[g.i6(V.info,m)]:[]}; ex=function(m,V,O){var h=this;this.requestType=m;this.Dj=V;this.ez=O;this.L=null;this.BD={pU:function(){var w;return(w=h.data)==null?void 0:w.pU}, oX:function(){var w;return(w=h.data)==null?void 0:w.oX}, fX:function(){var w;return(w=h.data)==null?void 0:w.fX}}}; DTU=function(m,V,O){V=BK(m.Dj,ITo(m,V,O),V);m.b1()&&V.set("probe","1");return V}; ITo=function(m,V,O){m.D3===void 0&&(m.D3=m.Dj.D3(V,O));return m.D3}; uU=function(m){var V,O;return((V=m.Z)==null?void 0:(O=V.fT)==null?void 0:O.fD)||0}; zC=function(m){var V,O;return!!((V=m.Z)==null?0:(O=V.fT)==null?0:O.fX)}; ed0=function(m){var V={},O=[],h=[];if(!m.data)return V;for(var w=0;w0;E--)O.push(C)}O.length!==L?V.error=!0:(y=O.slice(-y),O.length=w,P73(V,O,y));break;case 1:P73(V,Qb,vL);break;case 0:jS(V, V.Z&7);O=wT(V,16);w=wT(V,16);(O^w)!==65535&&(V.error=!0);V.output.set(V.data.subarray(V.L,V.L+O),V.D);V.L+=O;V.D+=O;break;default:V.error=!0}m.D>m.output.length&&(m.output=new Uint8Array(m.D*2),m.D=0,m.L=0,m.T=!1,m.Z=0,m.register=0)}m.output.length!==m.D&&(m.output=m.output.subarray(0,m.D));return m.error?new Uint8Array(0):m.output}; P73=function(m,V,O){V=yL(V);O=yL(O);for(var h=m.data,w=m.output,y=m.D,L=m.register,C=m.Z,E=m.L;;){if(C<15){if(E>h.length){m.error=!0;break}L|=(h[E+1]<<8)+h[E]<>=7;q<0;)q=V[(L&1)-q],L>>=1;else L>>=q&15;C-=q&15;q>>=4;if(q<256)w[y++]=q;else if(m.register=L,m.Z=C,m.L=E,q>256){L=VL[q];L+=wT(m,PL[q]);E=vC0(m,O);C=hu[E];C+=wT(m,Op[E]);if(V2p&&LO.length&&(m.error=!0);m.register|=(O[h+1]<<8)+O[h]<=0)return jS(m,O&15),O>>4;for(jS(m,7);O<0;)O=V[wT(m,1)-O];return O>>4}; wT=function(m,V){for(;m.Z=m.data.length)return m.error=!0,0;m.register|=m.data[m.L++]<>=V;m.Z-=V;return O}; jS=function(m,V){m.Z-=V;m.register>>=V}; yL=function(m){for(var V=[],O=g.D(m),h=O.next();!h.done;h=O.next())h=h.value,V[h]||(V[h]=0),V[h]++;var w=V[0]=0;O=[];var y=0;h=0;for(var L=1;L7&&(y+=V[L]);for(w=1;w>E&1;C=y<<4|L;if(L<=7)for(E=1<<7-L;E--;)h[E<>=7;L--;){h[E]||(h[E]=-V,V+=2);var q=w&1;w>>=1;E=q-h[E]}h[E]=C}}return h}; hOo=function(m){var V,O,h,w,y,L,C,E,q;return g.u(function(M){switch(M.Z){case 1:if(!Od1)throw Error("DecompressionStream is not supported");V=b0.aL();O=new DecompressionStream("gzip");h=O.writable.getWriter();h.write(m);h.close();w=O.readable.getReader();y=new CG([]);case 2:return g.I(M,w.read(),5);case 5:L=M.L;C=L.value;if(E=L.done){M.Te(4);break}y.append(C);M.Te(2);break;case 4:return q=Ri(y),b0.oP("gznb",V,Math.ceil(q.byteLength/16)),M.return(q)}})}; LE=function(m){p8.call(this,"onesie",m);this.ez=m;this.Z={};this.T=!0;this.D=null;this.queue=new ph(this);this.K={}}; Ju=function(m){var V=m.queue;V.Z.length&&V.Z[0].isEncrypted&&!V.L&&(V.Z.length=0);V=g.D(Object.keys(m.Z));for(var O=V.next();!O.done;O=V.next()){O=O.value;var h=m.Z[O];if(!h.ud){var w=m.queue;w.Z.push({videoId:h.videoId,formatId:O,isEncrypted:!1});w.L||lU(w)}}}; wCI=function(m,V){var O=V.totalLength,h=!1;switch(m.D){case 0:m.SX(V,m.T).then(function(w){var y=m.ez;y.UI("oprr");y.playerResponse=w;y.AT||(y.dO=!1);CE(y)},function(w){m.ez.fail(w)}); break;case 2:m.UI("ormk");V=Ri(V);m.queue.decrypt(V);break;default:h=!0}m.ez.mw&&m.ez.uH("ombup","id.11;pt."+m.D+";len."+O+(h?";ignored.1":""));m.D=null}; yq1=function(m,V){var O,h,w,y,L;return g.u(function(C){switch(C.Z){case 1:m.ez.UI("oprgz_s");if(!Od1){C.Te(2);break}g.JG(C,3);return g.I(C,hOo(V),5);case 5:return O=C.L,m.ez.UI("oprgz_n"),m.ez.uH("oprsgz",{i:"n"}),C.return(O);case 3:h=g.qA(C),m.ez.uH("gzerr",{impl:"native",err:""+h});case 2:if(w=m.ez.j().BB)try{var E=b0.aL(),q=w.vp(V),M=w,f=q!=null?q:V,x=f.byteOffset,R=f.byteLength,A=M.exports.getInflatedSize(x,R);if(A===0)throw Error("wasm_gz: bad input");var K=M.malloc(A),X=M.exports.inflateGzip(x, R,K);if(X)throw M.free(K),Error("wasm_gz: fail"+X);var c=new Uint8Array(M.exports.memory.buffer,K,A);q&&w.free(q.byteOffset);var r=w.Bk(c);b0.oP("gzwb",E,Math.ceil(r.byteLength/16));y=r;m.ez.UI("oprgz_w");m.ez.uH("oprsgz",{i:"w"});return C.return(y)}catch(N){m.ez.uH("gzerr",{impl:"wasm",err:""+N})}E=b0.aL();q=g.mx$(new g.lT$(V));b0.oP("gzjb",E,Math.ceil(q.byteLength/16));L=q;m.ez.UI("oprgz_p");m.ez.uH("oprsgz",{i:"j"});return C.return(L)}})}; j5m=function(m){return new Promise(function(V){setTimeout(V,m)})}; LYU=function(m,V){var O=m.j();var h=m.l2&&O.Y("html5_onesie_preload_use_content_owner"),w=m.h1;h=h===void 0?!1:h;if(O=HP(V.W.experiments,"debug_bandaid_hostname")){var y=g.m9(V.W.experiments,"debug_bandaid_port");y=y>0?O+":"+y:O;O=V.W.experiments.w0("debug_bandaid_insecure_scheme");V=aW(V,y,O)}else h&&(w==null?0:w.url)&&!V.L?(y=U3(32,new g.WX(w.url)),V=aW(V,y)):V=(y=V.Z.get(0))==null?void 0:y.location.clone();if(V&&m.videoId){y=It(m.videoId);m=[];if(y)for(y=g.D(y),O=y.next();!O.done;O=y.next())m.push(O.value.toString(16).padStart(2, "0"));V.set("id",m.join(""));return V}}; JqX=function(m,V,O){O=O===void 0?0:O;var h,w;return g.u(function(y){if(y.Z==1)return h=[],h.push(V.load()),O>0&&h.push(j5m(O)),g.I(y,Promise.race(h),2);w=LYU(m,V);return y.return(w)})}; C21=function(m,V,O,h){h=h===void 0?!1:h;m.set("cpn",V.clientPlaybackNonce);m.set("opr","1");var w=V.j();m.set("por","1");y_()||m.set("onem","1");V.startSeconds>0&&m.set("osts",""+V.startSeconds);h||(w.Y("html5_onesie_disable_partial_segments")&&m.set("oses","1"),V=w.Y("html5_gapless_onesie_no_media_bytes")&&Uf(V)&&V.l2,O&&!V?(V=O.audio,m.set("pvi",O.video.join(",")),w.Y("html5_onesie_disable_audio_bytes")||m.set("pai",V.join(",")),j3||m.set("osh","1")):(m.set("oad","0"),m.set("ovd","0"),m.set("oaad", "0"),m.set("oavd","0")))}; Euo=function(m,V,O,h,w){w=w===void 0?!1:w;var y="https://youtubei.googleapis.com/youtubei/"+V.W7.innertubeApiVersion+"/player",L=[{name:"Content-Type",value:"application/json"}];h&&L.push({name:"Authorization",value:"Bearer "+h});L.push({name:"User-Agent",value:g.wX()});g.Vf("EOM_VISITOR_DATA")?L.push({name:"X-Goog-EOM-Visitor-Id",value:g.Vf("EOM_VISITOR_DATA")}):(O=O.visitorData||g.Vf("VISITOR_DATA"))&&L.push({name:"X-Goog-Visitor-Id",value:O});(O=g.Vf("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&L.push({name:"X-YouTube-Lava-Device-Context", value:O});(V=HP(V.experiments,"debug_sherlog_username"))&&L.push({name:"X-Youtube-Sherlog-Username",value:V});m=X3(JSON.stringify(m));return{url:y,lA:L,postBody:m,hAf:w,d8:w}}; Ep=function(m,V,O,h,w,y,L,C,E){var q=m.YM,M=m.Sw;m=m.snY;var f=q!==void 0&&M!==void 0,x=h.getVideoData(),R,A=V.Z.encryptedClientKey;V=f?V.iv:void 0;f=P1(y,!0);w=w||!!y_()&&f>1572864;return{innertubeRequest:{O_0:m,Rp:q,Sw:M,encryptedClientKey:A,iv:V,JnS:!0,Vd:!0,bK:"DecompressionStream"in window||!w,WOr:O.experiments.w0("html5_use_jsonformatter_to_parse_player_response")},fT:RTa({Tp:y,IY:O,RY:h,vZ:x.startSeconds*1E3}),onesieUstreamerConfig:L,cM:C,bT:aK(x),reloadPlaybackParams:(R=x.Zd)==null?void 0: R.reloadPlaybackParams,QdS:E}}; qf0=function(m,V,O,h,w,y,L,C){var E=g.ai(m,Wg),q;if(!m.d8)if(q=ZIX(V,E)){var M=q.mu;q=q.signature}else q=M=V.encrypt(E),(0,g.TN)(),q=zIm(new uE3(V.Z.D),q,V.iv);return Ep(M&&q?{YM:M,Sw:q}:{snY:E},V,O,h,!!m.d8,w,y,L,C)}; M20=function(m,V,O,h,w,y,L,C){var E,q,M;return g.u(function(f){if(f.Z==1)return E=g.ai(m,Wg),g.I(f,zdG(V,E),2);if(f.Z!=3)return q=f.L,g.I(f,sVX(V,q),3);M=f.L;return f.return(Ep({YM:q,Sw:M},V,O,h,!!m.d8,w,y,L,C))})}; fJG=function(m,V,O,h,w,y,L,C){var E=g.ai(m,Wg);if(E=ZIX(V,E))return Ep({YM:E.mu,Sw:E.signature},V,O,h,!!m.d8,w,y,L,C)}; MF=function(m,V,O){g.Z.call(this);var h=this;this.RY=m;this.playerRequest=V;this.Tp=O;this.logger=new g.Ht("onesie");this.gs=[];this.g_=[];this.xhr=null;this.state=1;this.J_=new Ut;this.mp=!1;this.playerResponse="";this.eI=new Tz(this);this.g4=new LE(this);this.jG="";this.Ci=this.JG=!1;this.LD="";this.enableCompression=this.AT=this.yL=!1;this.By=[];this.YL=-1;this.ov=0;this.W=this.RY.j();this.videoData=this.RY.getVideoData();this.mw=this.W.tj();this.iS=this.W.nP;this.gh=new Zw(this.iS.Z);this.dS= this.W.Y("html5_onesie_check_timeout");this.sA=new g.mq(this.Qd,500,this);this.va=new g.mq(this.C7,1E4,this);this.WQ=new g.mq(function(){if(!h.isComplete()){var w=qF(h);h.fail(new g.jc("net.timeout",w))}},1E3); this.Xg=new g.mq(this.wDf,2E3,this);this.dc=this.RY.V9();this.dO=this.Y("html5_onesie_wait_for_media_availability");g.a(this.videoData,this);g.a(this,this.sA);g.a(this,this.va);g.a(this,this.Xg);m=$q();j3&&m&&(this.uw=new Map);this.LY=new Map;this.B5=new Map;this.kP=new Map;this.sF=new Map}; BL=function(m,V){var O;return(O=m.uw)==null?void 0:O.get(V)}; RO1=function(m,V,O){var h;return g.u(function(w){if(w.Z==1)return m.UI("oprd_s"),xx$(m)?g.I(w,FSU(m.gh,V,O),3):(h=m.gh.decrypt(V,O),w.Te(2));w.Z!=2&&(h=w.L);m.UI("oprd_c");return w.return(h)})}; ouU=function(m){return m.Y("html5_onesie_host_probing")||m.mw?j3:!1}; CE=function(m){if(!m.playerResponse)return!1;if(m.yL)return!0;var V=m.videoData.Y("html5_onesie_audio_only_playback")&&dU(m.videoData);if(m.uw&&m.dO){if(!m.uw.has(m.jG))return!1;var O=m.uw.get(m.jG),h;if(h=O){h=!1;for(var w=g.D(O.eb.keys()),y=w.next();!y.done;y=w.next())if(y=O.eb.get(y.value))for(var L=g.D(y.Oc),C=L.next();!C.done;C=L.next())C.value.q3>0&&(y.RF?h=!0:V=!0);h=!(V&&h)}if(h)return!1}m.UI("ofr");m.J_.resolve(m.playerResponse);if(!m.dS){var E;(E=m.WQ)==null||E.start();m.va.start()}return m.yL= !0}; Aq1=function(m){if(m.uw&&!m.Y("html5_onesie_media_capabilities")){m.UI("ogsf_s");var V=Cqa(m.RY.getVideoData(),function(h,w){m.uH(h,w)}),O=guC(m.RY); V.video=mTC(O,V.video);m.UI("ogsf_c");if(V.video.length)return V;m.uH("ombspf","l."+O.L+";u."+O.Z+";o."+O.D+";r."+O.reason)}}; xx$=function(m,V){return m.Y("html5_onesie_sync_request_encryption")||(V==null?0:V.d8)?!1:!!y_()}; qF=function(m){if(!m.WB)return{};var V=m.WB.nX(),O;V.d=(O=m.WB.iH)==null?void 0:O.W2();V.shost=m.Qc;V.ty="o";return V}; Ux$=function(m,V){var O,h;(h=(m=(O=m.uw)==null?void 0:O.get(V))==null)||(V=m.D?!1:m.D=!0,h=!V);return!h}; fE=function(m,V,O,h,w,y,L,C,E,q,M,f){g.Z.call(this);var x=this;this.RY=m;this.loader=V;this.policy=O;this.audioTrack=h;this.videoTrack=w;this.YN=y;this.Tp=L;this.W6=C;this.L=E;this.timing=q;this.mS=M;this.V=f;this.Z=[];this.T={};this.Je=this.nA=!1;this.Zu=this.CA=this.q6=0;this.Ae={KZ:0,b5:0};this.pA={KZ:0,b5:0};this.HD=null;this.iH={L4:[],Hh:[]};this.EH={L4:[],Hh:[]};this.N=null;this.K=[];this.H6=0;this.Xr=!1;this.BD={j46:function(){return x.Z}, Tnf:function(){return x.T}, Asz:function(){x.Z.length=0}, M$6:function(){return x.videoData.H6}, Ftr:function(){return x.Zu}, fSu:function(R){x.Zu=R}, PxS:function(R){x.Ae.b5=R}, Qx:function(R){x.N=R}, GA:function(R){x.K=R}, kC:function(){return x.kC()}}; this.videoData=this.RY.getVideoData();this.Qt=this.videoData.latencyClass==="LOW"?50:this.videoData.latencyClass==="ULTRALOW"?100:this.policy.h_;this.policy.hZ&&(this.v6=new t3(this.loader,this.policy,this.Tp),g.a(this,this.v6))}; KYp=function(m,V){if(dxm(m)){V=t2a(m,V);m.Z.push(V);var O;(O=m.v6)==null||Kh(O,m.YN.Qt);m.Qt>0&&m.Ae.b5++}}; t2a=function(m,V){m.policy.J&&m.loader.uH("sabrcrq",{create:1});var O=new ex(0,m.YN.Qt,m);m.L.Qt=!1;return WYa(m,O,V)}; xG=function(m){var V,O=m.policy.K&&((V=m.loader)==null?void 0:V.TT());V=m.loader.getCurrentTime()||0;V=XC0(m,V);if(m.policy.Sh&&m.loader.isSeeking()){var h=wA(m.videoTrack,V);m.loader.uH("asmtfnctv",{b:V,a:h});isNaN(h)||(V=h)}h=m.loader.OU()||0;V+=h;h=F2(m.videoData)||g.sf(m.videoData);var w=0;O?(h&&(w=Number.MAX_SAFE_INTEGER),m.videoData.wd&&(w=Math.ceil(m.videoData.Pt*1E3))):w=Math.ceil(V*1E3);return Math.min(Number.MAX_SAFE_INTEGER,w)}; RF=function(m){return m.policy.l2&&!!m.N}; XC0=function(m,V){if(m.loader.isSeeking())return V;var O=m.RY.C4();if(!O)return V;O=O.EZ();if(O.length===0||mu(O,V))return V;if(!m.videoTrack.Or(V)&&!m.audioTrack.Or(V))return m.loader.uH("sundrn",{b:0,lt:V}),V;for(var h=V,w=Infinity,y=0;yV)){var L=V-O.end(y);L=20)?(m.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),V):h}; gT=function(m,V,O){m=m.loader.OU()||0;return oF(V,(O+m)*1E3)/1E3+O}; dxm=function(m){if(!Hdp(m,m.Ae)||Mj(m.audioTrack)&&Mj(m.videoTrack))return!1;if(m.policy.L)if(m.policy.N){var V;if((V=m.V)==null)var O=0;else{O=!1;V=g.D(V.Z.entries());for(var h=V.next();!h.done;h=V.next())if(h=g.D(h.value),h.next(),h=h.next().value,h.event!=="predictStart"&&h.C_===5){var w=void 0,y=void 0;((w=h)==null?0:w.L1)&&Date.now()-((y=h)==null?NaN:y.L1)>1E4?h.C_=1:O=!0}}if(O)return!1}else if(O=!1,m.mS.L===2?O=!0:m.mS.L===3&&(xG(m),m.loader.OU(),w=OC(m.audioTrack,m.loader.isSeeking()).L4,V= OC(m.videoTrack,m.loader.isSeeking()).L4,h=m.loader.getCurrentTime()||0,w=gT(m,w,h),V=gT(m,V,h),V=Math.min(w,V),h=m.mS,V>=h.D?(h.uH("sdai",{haltrq:V,est:h.D}),V=!0):V=!1,V&&(O=!0)),O&&m.policy.J&&m.loader.uH("sabrcrq",{waitad:1}),O)return!1;m.policy.SW&&(m.iH=Au(m,m.audioTrack),m.EH=Au(m,m.videoTrack));if(!m.D)return m.policy.J&&m.loader.uH("sabrcrq",{nopolicy:1}),!0;if(m.RY.CQ())return m.policy.J&&m.loader.uH("sabrcrq",{utc:1}),!0;if(m.L.J)return m.policy.J&&m.loader.uH("sabrcrq",{audio:1}),!0;if(m.policy.JJ&& m.L.Qt)return m.policy.J&&m.loader.uH("sabrcrq",{constraint:1}),!0;if(!m.D.targetAudioReadaheadMs||!m.D.targetVideoReadaheadMs)return m.policy.J&&m.loader.uH("sabrcrq",{noreadahead:1}),!0;if(m.policy.K&&m.loader.TT())return m.policy.J&&m.loader.uH("sabrcrq",{seekToHead:1}),!0;O=Math.min(C8(m.loader,m.audioTrack)*1E3,m.D.targetAudioReadaheadMs);V=Math.min(C8(m.loader,m.videoTrack)*1E3,m.D.targetVideoReadaheadMs);var L=Math.min(O,V),C=m.RY.getCurrentTime()*1E3,E=TUG(m,C);h=E.fN;w=E.o7;y=E.Xi;E=E.ZH; var q=hV||h>=0&&w.Gf>h+1)break;O=Math.max(O,w.startTimeMs+w.durationMs);h=Math.max(h,w.h6)}return Math.max(0,O-V)}; WYa=function(m,V,O){var h={Tp:m.Tp,QR:function(E,q){m.RY.Ba(E,q)}, ZF:m.policy.Z2,Y6:m.policy.D};m.Tp.L.N&&(h.gV=(m.videoTrack.Du.info.Rr||0)+(m.audioTrack.Du.info.Rr||0));m.policy.jd&&(h.qV=m.audioTrack.Du.index.aj(),h.ZF=!1);var w=ITo(V,m.policy,m.T)?2:1;w!==m.Zu&&(m.Zu=w,YfI(m));O=m.kC(O);if(m.policy.Zu&&m.policy.D&&O.Zt){for(var y=w="",L=g.D(O.Zt),C=L.next();!C.done;C=L.next())C=C.value,m.videoData.sabrContextUpdates.has(C)||m.policy.Zu&&O.nD&&O.nD.type===C?w+="_"+C:y+="_"+C;m.loader.uH("sabrbldrqs",{ctxts:w,misctxts:y})}!V.setData(O,m.policy,m.T)&&m.policy.Zu&& m.loader.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);h=new hN(m.policy,V,m.YN,m.T,m,h,m.loader.V9());wa(m.timing);m.policy.J&&m.loader.uH("sabrcrq",{rn:h.Ou(),probe:V.b1()});return h}; tu=function(m,V){if(V.UH()||m.UH())m.policy.LQ||(m.policy.K?Up(m.loader):m.loader.AY());else{if(m.policy.D&&V.isComplete()&&V instanceof hN){var O=m.loader,h=O.uH,w,y,L=Object.assign(V.WB.nX(),{rst:V.state,strm:V.xhr.GK(),d:(w=V.WB.iH)==null?void 0:w.W2(),cncl:V.xhr&&V.HB.K?1:0,rqb:V.YP,cwt:V.HB.D,swt:(y=V.Wo)==null?void 0:y.t8});w=Object.assign(ed0(V.info),L);h.call(O,"rqs",w)}if(V.isComplete()&&V.b1()&&V instanceof hN)m.policy.ma?V.BJ()?(V.dispose(),m.Z.length===0?m.loader.AY():(m=m.Z[0],m instanceof hN&&m.qT()&&m.yR())):V.Dw()&&m.loader.handleError(V.aJ(),V.rz()):(V.dispose(),m.loader.AY());else{if(V.pJ())V instanceof hN&&utU(m.timing,V),YfI(m),dT(m);else if(V.Dw())if(O=m.RY.CQ(),V instanceof hN&&zC(V.info)&&O&&m.loader.Yx(O),V instanceof hN&&nQ3(V)){var C;(C=m.loader.q2)==null||ra(C)}else V instanceof MF?m.Z.pop():(C=1,V.canRetry()&&cL(m.loader)&&(k_I(m,V),C=0),m.loader.handleError(V.aJ(),V.rz(),C));else{if(m.loader.isSuspended&&!V.isComplete())return;dT(m)}V.UH()||V instanceof MF||(V.isComplete()? C=tCa(V,m.policy,m.T):(C=ds$(V,m.policy,m.T),C===1&&(m.nA=!0)),C!==0&&(O=new ex(1,V.info.Dj),O.D3=C===2,WYa(m,O)));m.policy.Rd&&!V.isComplete()?bU(m.loader):m.loader.AY()}}}; dT=function(m){for(;m.Z.length&&m.Z[0].I1(m.HW());){var V=m.Z.shift();rqX(m,V)}m.Z.length&&rqX(m,m.Z[0])}; rqX=function(m,V){V instanceof hN&&(m.Mf=V);var O=new Set(V.a4(m.HW()));O=g.D(O);for(var h=O.next();!h.done;h=O.next()){var w=h.value;if(!(h=!(V instanceof MF))){h=m.L;var y=h.YN.yp,L=IW(h.videoInfos,y);y=NKp(h,w,y);var C=L.includes(w);!h.Ze.RN||y||C||h.loader.uH("sabrcpf",{fid:""+w,vfids:""+L.join("."),said:h.V||""});h=y||L.includes(w)}if(h&&(h=V.vU(w,m.HW()),L=m.policy.l2&&Bg(h[0].Du.info.mimeType),V.KR(w,m.HW())))for(w=V.Mi(w,m.HW()),w=g.D(w),y=w.next();!y.done;y=w.next())if(y=y.value,m.policy.D&& V instanceof MF&&m.loader.uH("omblss",{s:y.info.Gj()}),L)C=m.timing,C.Zu||(C.Zu=(0,g.TN)(),g.nS("fcb_r",C.Zu,C.Z)),C=m,C.videoData.yp()&&C.N&&vK(C.N)===vK(g.i6(y.info.Du.info,C.YN.yp))&&C.RY.publish("sabrCaptionsDataLoaded",y,C.GA.bind(C));else{C=y.info.Du.info.RF();var E=y.info.Du;if(C){var q=void 0;var M=m.L,f=(q=V.Gh(m.HW()))==null?void 0:q.token;M.J&&E!==M.K?q=!0:(M.J=!1,E!==M.K&&(M.K=E,M.r_(E,M.audioTrack,f)),q=!1);if(q)continue}else q=void 0,Yhm(m.L,E,(q=V.Gh(m.HW()))==null?void 0:q.token); q=C?m.audioTrack:m.videoTrack;V instanceof MF&&(q.N=!1,V instanceof MF&&(C?eTa(m.timing):IW1(m.timing)));try{Vb(q,h,y)}catch(x){y=JM(x),m.loader.handleError(y.errorCode,y.details,y.severity),q.Si(),m.FV(!1,"pushSlice"),Up(m.loader)}}}}; k_I=function(m,V){m.policy.Zu?m.Z.splice(m.Z.indexOf(V)).forEach(function(O){O.dispose()}):(m.Z.pop(),V==null||V.dispose())}; cqp=function(m,V,O){for(var h=[],w=0;w0)for(var V=g.D(m.videoData.sabrContextUpdates.keys()),O=V.next();!O.done;O=V.next()){O=O.value;var h=void 0;((h=m.videoData.sabrContextUpdates.get(O))==null?0:h.sendByDefault)&&m.videoData.H6.add(O)}if(m.policy.Zu&&m.Z.length)for(V=g.D(m.Z),O=V.next();!O.done;O=V.next())(O=O.value.Un())&&O.type&&O.sendByDefault&&m.videoData.H6.add(O.type)}; Dx0=function(m){m.policy.qq&&(m.fA=void 0,m.q6=0)}; NUG=function(m,V){if(V.Dw()||V.UH()){var O=m.loader,h=O.uH,w=V.state;m=m.HW();var y,L;if((V=(y=V.uw)==null?void 0:y.get(m))==null)V=void 0;else{y=0;m=V.a4();for(var C=0;C0){var O=Math.floor((0,g.TN)()/1E4);if(O===V.KZ){if(V.b5>=m.Qt){V.b5===m.Qt&&(O={reason:"toomanyrequests"},O.limit=V.b5,m.loader.handleError("player.exception",O),V.b5+=1);V=!1;break a}}else V.KZ=O,V.b5=0}V=!0}if(!V||m.loader.isSuspended&&m.loader.yv)return!1;if(m.J&&(0,g.TN)()0)||m.policy.Zu&&m.Z.length===1&&m.Z[0].tS()?!0:!1){var h;V=(h=m.YN.Qt)!=null&&Q9(h,m.policy,m.T,m.loader.ix)?!0:!1}return V&&!m.Xr?!0:!1}; TUG=function(m,V){var O=bd$(m),h=O.Xi;O=O.ZH;if(m.policy.SW){var w=oF(m.iH.L4,V);m=oF(m.EH.L4,V)}else w=h,m=O;return{fN:w,o7:m,Xi:h,ZH:O}}; bd$=function(m){var V=J3(m.audioTrack,!0)*1E3;m=J3(m.videoTrack,!0)*1E3;return{Xi:V,ZH:m}}; nu1=function(m){this.RY=m;this.Z=new Map;this.delay=null}; KE=function(m,V){if(k_(m.RY.getPlayerState())&&m.Z.size!==0){var O=V!=null?V:Array.from(m.Z.values()).sort(function(w,y){return w.mediaTime-y.mediaTime}); V=m.getCurrentTime();var h=(O[0].mediaTime-V)*1E3/m.RY.getPlaybackRate();if(h<500)for(V=h>0?Sf$(m):V,O=g.D(O),h=O.next();!h.done;h=O.next())if(h=h.value,V>=h.mediaTime)h.resolve([h.mediaTime,h.id]),m.Z.delete(h.id);else break;IJG(m,V)}}; eO7=function(m,V,O){m.Z.delete(O);return new Promise(function(h){m.Z.set(O,{id:O,mediaTime:V,resolve:h});h=Array.from(m.Z.values()).sort(function(w,y){return w.mediaTime-y.mediaTime}); O===h[0].id&&KE(m,h)})}; u2X=function(m){var V;(V=m.delay)==null||V.dispose();m.Z.clear()}; IJG=function(m,V){var O;(O=m.delay)==null||O.dispose();m.delay=null;O=Array.from(m.Z.values()).sort(function(h,w){return h.mediaTime-w.mediaTime}); O.length!==0&&(V=(O[0].mediaTime-V)*1E3/m.RY.getPlaybackRate(),m.delay=new g.mq(function(){KE(m)},V>500?V-500:V),m.delay.start())}; Sf$=function(m){var V,O;return(O=(V=m.RY.C4())==null?void 0:V.getCurrentTime())!=null?O:m.RY.getCurrentTime()}; W2=function(m,V,O){var h=this;this.D=m;this.cpn=V;this.RY=O;this.Z=new Map;this.L=new Map;this.N=NaN;this.J=!1;this.T=this.LC="";this.isSeeking=!1;this.K=new nu1(O);this.mV=O.mV;this.RY.subscribe("statechange",this.V,this);this.RY.subscribe("SEEK_TO",function(){h.DD()}); this.RY.subscribe("SEEK_COMPLETE",function(){zO3(h)}); this.LC=this.T=this.cpn}; s5G=function(m,V,O){var h=!0;h=h===void 0?!1:h;var w=m.Z.get(V),y=m.D.getStartTime(V),L=m.D.getDuration(V);m.J=!1;var C=y,E;((E=w==null?void 0:w.Z)!=null?E:[m.cpn]).forEach(function(q,M){var f,x=(f=w==null?void 0:w.L[M])!=null?f:L;if(O>=C&&Ow?X6(m,y,m.Z.get(y)):y===w&&X6(m,y,m.Z.get(y),h-m.D.getStartTime(y))})}; Zd7=function(m,V,O,h){h=h===void 0?!1:h;V!==m.LC&&(m.LC=V,m.RY.publish("playbackstarted",V,O+m.RY.OU(),h))}; aJ3=function(m,V,O,h){m.T=O;O=V+"."+O;m.L.has(V)?m.L.get(V).push(O):m.L.set(V,[O]);eO7(m.K,h,O).then(function(w){var y=g.D(w);w=y.next().value;y=y.next().value;var L=g.D(y.split("."));y=L.next().value;L=L.next().value;y=g.D([Number(y),L]);y.next();y=y.next().value;Zd7(m,y,w)})}; H2=function(m,V,O,h,w){this.loader=m;this.policy=V;this.schedule=O;this.T1=h;this.Qt=w;this.Zu=NaN;this.L=this.J=this.T=null;this.Z=this.K=this.N=this.startTimeSecs=NaN;this.D=!1;this.V=NaN}; ido=function(m,V,O,h,w,y){return V.W7&&V.LP&&O===3?new H2(m,V,h,w,y):null}; G_7=function(m,V){if(m.policy.yjt){var O=V.info.Rr,h=P1(m.schedule);V=V.index.aj();O=Math.max(1,h/O);m.V=Math.round(Math.max(((O-1)*V+m.policy.tq)/O,V-m.policy.nR)*1E3)}}; lJU=function(m,V){var O=Date.now()/1E3,h=O-m.startTimeSecs,w=O-m.N,y=w>=m.policy.G5,L=!1;if(y){var C=0;!isNaN(V)&&V>m.K&&(C=V-m.K,m.K=V);C/w=m.policy.nR&&!m.D;if(!y&&!O&&pCl(m,V))return NaN;O&&(m.D=!0);a:{h=L;O=(0,g.TN)()/1E3-(m.T1.Og()||0)-m.J.Z-m.policy.tq;y=m.L.startTime;O=y+O;if(h){if(isNaN(V)){Ts(m,NaN,"n",V);y=NaN;break a}h=V-m.policy.V8;h0&&(L.headers=C);y&&(L.onFinish=y);return Object.keys(L).length>1?L:null}; kG=function(m,V,O,h,w,y,L,C){x4()&&O.token&&(m=qB(m,{ctt:O.token,cttype:O.dL,mdx_environment:O.mdxEnvironment}));h.Y("net_pings_low_priority")&&(V||(V={}),V.priority="low");y||C&&h.Y("nwl_skip_retry")?(V==null?V={}:OsI(m,h.Y("html5_assert_cpn_with_regex")),L?G5().sendAndWrite(m,V):G5().sendThenWrite(m,V,C)):V?(OsI(m,h.Y("html5_assert_cpn_with_regex")),nxm(m,V)):g.IS(m,w)}; hv7=function(m){for(var V=[],O=0;O0&&O>0&&!m.L&&m.D<1E7)try{m.T=m.K({sampleInterval:V,maxBufferSize:O});var h;(h=m.T)==null||h.addEventListener("samplebufferfull",function(){return g.u(function(w){if(w.Z==1)return g.I(w,m.stop(),2);j0p(m);g.j$(w)})})}catch(w){m.L=yFX(w.message)}}; c2=function(m,V){var O,h,w=(O=window.h5vcc)==null?void 0:(h=O.settings)==null?void 0:h.set(m,V);return vO(w)?hr(PO(w),function(){return!0},function(){return!1}):PO(!!w)}; Lv5=function(m){return c2("MediaSource.EnableUsingMediaSourceBufferedRange",m?1:0)}; JFX=function(m){return c2("HTTP3",m?1:0)}; Cbo=function(m){return c2("MediaSource.EnableUsingMediaSourceAttachmentMethods",m?1:0)}; E8l=function(m){return c2("QUIC",m?1:0)}; qcG=function(m){return c2("Media.AudioWriteDurationLocal",m)}; M3p=function(m){return c2("Media.PlayerConfiguration.DecodeToTexturePreferred",m?1:0)}; fZl=function(m){return c2("Media.DisableExternalAllocator",m?1:0)}; xE3=function(m){return c2("Media.VideoBufferSizeClampMb",m)}; RvX=function(m){return c2("Media.EnableAllocateOnDemand",m?1:0)}; g8G=function(){var m,V,O,h=(m=window.h5vcc)==null?void 0:(V=m.settings)==null?void 0:(O=V.getPersistentSettingAsString)==null?void 0:O.call(V,"cpu_usage_tracker_intervals");if(h!=null){var w;m=(w=JSON.parse(h))!=null?w:[];w=m.filter(function(q){return q.type==="total"}).map(function(q){return q.seconds}); V=g.D(o8p);for(O=V.next();!O.done;O=V.next())O=O.value,w.indexOf(O)===-1&&m.push({type:"total",seconds:O});var y,L;(y=window.h5vcc)==null||(L=y.settings)==null||L.set("cpu_usage_tracker_intervals_enabled",1);var C,E;(C=window.h5vcc)==null||(E=C.settings)==null||E.set("cpu_usage_tracker_intervals",JSON.stringify(m))}}; AFX=function(){var m=window.H5vccPlatformService,V="";if(m&&m.has("dev.cobalt.coat.clientloginfo")&&(m=m.open("dev.cobalt.coat.clientloginfo",function(){}))){var O=m.send(new ArrayBuffer(0)); O&&(V=String.fromCharCode.apply(String,g.b(new Uint8Array(O))));m.close()}return V}; g.b4=function(m){g.Z.call(this);var V=this;this.provider=m;this.logger=new g.Ht("qoe");this.Z=new Map;this.sequenceNumber=1;this.Ae=NaN;this.Ol="N";this.V=this.Kk=this.G_=this.Zu=this.L=0;this.kD=this.H6=this.N=this.Mf="";this.Id=this.fA=NaN;this.CP=0;this.Rd=-1;this.nP=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.nA=this.isEmbargoed=this.iH=this.isOffline=this.isBuffering=!1;this.qq=[];this.Qt=null;this.pA=this.T=this.v6=this.J=!1;this.D=-1;this.Xr=!1;this.ma=new g.mq(this.keH,750,this);this.Ss= this.adCpn="";this.Xu=this.Im=this.WN=this.n5=this.adFormat=void 0;this.iU=0;this.BB=new Set("cl fexp drm drm_system drm_product ns adformat live cat shbpslc".split(" "));this.l2=new Set(["gd","pw","gp","gm","dd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.W6=!1;this.UU=NaN;this.EH=0;this.Aj=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.LP=!1;this.tq=new Set;this.BD={wh:function(y){V.wh(y)}, P0A:function(){return V.K}, reportStats:function(){V.reportStats()}, Ay6:function(){return V.Z.get("cat")||[]}, IC:function(y){return V.Z.get(y)||[]}, A3t:function(){return V.Z}, jtf:function(){return{adCpn:V.adCpn,Ss:V.Ss,adFormat:V.adFormat}}, x3e:function(){return{n5:V.n5,WN:V.WN,Im:V.Im,Xu:V.Xu}}}; this.mS=this.provider.W.Y("html5_qoe_relaxed_reporting");var O=g.m9(this.provider.W.experiments,"html5_qoe_proto_mock_length");O&&!Dg.length&&(Dg=hv7(O));g.a(this,this.ma);try{var h,w;(w=(h=navigator).getBattery)==null||w.call(h).then(function(y){V.Qt=y})}catch(y){}g.NF(this,0,"vps",["N"]); m.W.tj()&&(this.EH=(0,g.TN)(),this.UU=g.KJ(function(){var y=(0,g.TN)(),L=y-V.EH;L>500&&V.uH("vmlock",{diff:L.toFixed()});V.EH=y},250)); this.provider.videoData.iX&&(this.remoteControlMode=UE3[this.provider.videoData.iX]||0);this.provider.videoData.Bt&&(O=XdU(this.provider.videoData.Bt),O==null?0:O.length)&&(this.remoteConnectedDevices=O);m.W.tj()&&(this.CA=new $G,g.a(this,this.CA));Vap(m.W)&&(this.Je=new rT,g.a(this,this.Je))}; nE=function(m,V,O){var h=m.Z.get(V);h?h.push(O):m.Z.set(V,[O])}; g.NF=function(m,V,O,h){nE(m,O,V.toFixed(3)+":"+h.join(":"))}; SS=function(m,V){var O=m.provider.getCurrentTime();g.NF(m,V,"cmt",[O.toFixed(3)]);var h=O=m.provider.T6();if((!m.K||m.provider.W.Y("html5_shorts_gapless_no_gllat")&&Uf(m.provider.videoData)?0:h*1E3>m.K.xW+100)&&m.K){var w=m.K;h=w.isAd;O=O*1E3-w.xW;m.Jh=V*1E3-w.FVz-O-w.dU0;w=(0,g.TN)()-O;V=m.Jh;O=m.provider.videoData;var y=O.isAd();if(h||y){y=(h?"ad":"video")+"_to_"+(y?"ad":"video");var L={};O.N&&(L.cttAuthInfo={token:O.N,videoId:O.videoId});L.startTime=w-V;cy(y,L);g.r5({targetVideoId:O.videoId,targetCpn:O.clientPlaybackNonce}, y);ko("pbs",w,y)}else w=m.provider.RY.Pj(),w.N!==O.clientPlaybackNonce?(w.K=O.clientPlaybackNonce,w.L=V):O.X3()||g.cj(new g.no("CSI timing logged before gllat",{cpn:O.clientPlaybackNonce}));m.uH("gllat",{l:m.Jh.toFixed(),prev_ad:+h});delete m.K}}; u4=function(m,V){V=V===void 0?NaN:V;V=V>=0?V:g.IF(m.provider);var O=m.provider.RY.XE(),h=O.wA-(m.fA||0);h>0&&g.NF(m,V,"bwm",[h,(O.HA-(m.Id||0)).toFixed(3)]);isNaN(m.fA)&&O.wA&&m.isOffline&&m.wh(!1);m.fA=O.wA;m.Id=O.HA;isNaN(O.bandwidthEstimate)||g.NF(m,V,"bwe",[O.bandwidthEstimate.toFixed(0)]);m.provider.W.tj()&&Object.keys(O.Z).length!==0&&m.uH("bwinfo",O.Z);if(m.provider.W.tj()||m.provider.W.Y("html5_log_meminfo"))h=Q57(),Object.values(h).some(function(y){return y!==void 0})&&m.uH("meminfo",h); if(m.provider.W.tj()){var w;(h=(w=m.CA)==null?void 0:P2o(w))&&Object.values(h).some(function(y){return y!=null})&&m.uH("cpuinfo",h)}m.Je&&m.uH("jsprof",m.Je.flush()); m.Qt&&g.NF(m,V,"bat",[m.Qt.level,m.Qt.charging?"1":"0"]);w=m.provider.RY.getVisibilityState();m.Rd!==w&&(g.NF(m,V,"vis",[w]),m.Rd=w);SS(m,V);(w=dEU(m.provider))&&w!==m.CP&&(g.NF(m,V,"conn",[w]),m.CP=w);eS(m,V,O)}; t3C=function(m){var V=m.provider.RY.XE(),O=g.IF(m.provider);eS(m,O,V);var h=V.D;V=V.T;isNaN(h)||(m.provider.W.Y("html5_unified_live_latency_reporting")&&!isNaN(V)&&V?g.NF(m,O,"e2el",[h.toFixed(3),V.toFixed(3)]):g.NF(m,O,"e2el",[h.toFixed(3)]))}; eS=function(m,V,O){if(!isNaN(O.Qh)){var h=O.Qh;O.L96E3&&(new g.mq(m.reportStats,0,m)).start()}}; Xza=function(m){m.provider.videoData.l2&&Zg(m,"prefetch");m.provider.videoData.Je&&m.uH("reload",{r:m.provider.videoData.reloadReason,ct:m.provider.videoData.Je});m.provider.videoData.Yq&&Zg(m,"monitor");m.provider.videoData.isLivePlayback&&Zg(m,"live");j3&&Zg(m,"streaming");m.provider.videoData.iX&&m.uH("ctrl",{mode:m.provider.videoData.iX},!0);if(m.provider.videoData.Bt){var V=m.provider.videoData.Bt.replace(/,/g,"_");m.uH("ytp",{type:V},!0)}m.provider.videoData.QU&&(V=m.provider.videoData.QU.replace(/,/g, "."),m.uH("ytrexp",{ids:V},!0));V=m.provider.videoData;var O=m.provider.W.Y("enable_white_noise")||m.provider.W.Y("enable_webgl_noop"),h=g.DJ(V)||g.a5(V)||g.i2(V)||g.G_(V);(O||h)&&(O=(0,g.sp)())&&m.Z.set("gpu",[O]);wm(m.provider.videoData)&&g.NF(m,g.IF(m.provider),"dt",["1"]);V.cotn&&!wm(V)&&m.wh(!0);m.provider.W.tj()&&(V=(0,g.TN)()-m.provider.W.nf,m.uH("playerage",{secs:Math.pow(1.6,Math.round(Math.log(V/1E3)/Math.log(1.6))).toFixed()}));m.T=!0;m.Ae=g.KJ(function(){m.reportStats()},1E4)}; Tm7=function(m,V,O){var h=g.IF(m.provider);Hsa(m,h,V,0,O);u4(m,h);zs(m)}; Hsa=function(m,V,O,h,w){var y=m.provider.W.Z.cbrver;m.provider.W.Z.cbr==="Chrome"&&/^96[.]/.test(y)&&O==="net.badstatus"&&/rc\.500/.test(w)&&F6(m,3);m.provider.W.Y("html5_use_ump")&&/b248180278/.test(w)&&F6(m,4);y=m.provider.getCurrentTime();h=h===1?"fatal":"";O=[O,h,y.toFixed(3)];h&&(w+=";a6s."+Vy());w&&O.push($Eo(w));g.NF(m,V,"error",O);m.T=!0}; kca=function(m,V){var O=g.IF(m.provider);if(!m.provider.W.experiments.w0("html5_refactor_sabr_video_format_selection_logging")||V.Z.id!==m.Mf){var h=m.provider.W.wu().Z.lH(gA);h&&!m.v6&&V.reason!=="m"&&(V.reason="i");var w=[V.Z.id,V.L,m.Mf,V.reason];h&&V.reason==="i"&&w.push(Yc1(m,V));V.token&&w.push(V.token);g.NF(m,O,"vfs",w);m.Mf=V.Z.id;h=m.provider.RY.getPlayerSize();h.width>0&&h.height>0&&(h=[Math.round(h.width),Math.round(h.height)],w=g.CI(),w>1&&h.push(w),g.NF(m,O,"view",h));m.v6||(m.provider.W.tj()&& Zg(m,"rqs2"),m.provider.videoData.Z&&GX(m.provider.videoData.Z)&&m.Z.set("preload",["1"]));m.v6=!0;m.T=!0}V.reason==="m"&&++m.iU===100&&F6(m,2);g.NF(m,O,"vps",[m.Ol]);m.mS||m.reportStats(O)}; rFo=function(m){m.D>=0||(m.provider.W.VF||m.provider.RY.getVisibilityState()!==3?m.D=g.IF(m.provider):m.Xr=!0)}; DEp=function(m,V,O){var h=m.provider.W,w=h.wu(),y=[];h.experiments.w0("html5_refactor_sabr_audio_format_selection_logging")?(V=O.Z,h=[V.audio&&V.video?V.fL?V.fL:"":V.id],V.fP&&V.fP.id&&h.push(V.fP.id),V=h.join(";"),V!==m.N&&(h=[V,m.N,O.reason],y.push.apply(y,g.b(cFX(O))),w.Z.lH(gA)&&O.reason==="i"&&y.push(Yc1(m,O)),y.length>0&&h.push(y.join(";")),O.token&&h.push(O.token),g.NF(m,g.IF(m.provider),"afs",h),m.N=V)):O.Z.id!==m.N&&(h=[O.Z.id,m.N,O.reason],y.push.apply(y,g.b(cFX(O))),w.Z.lH(gA)&&O.reason=== "i"&&y.push(Yc1(m,O)),y.length>0&&h.push(y.join(";")),O.token&&h.push(O.token),g.NF(m,V,"afs",h),m.N=O.Z.id)}; Yc1=function(m,V){m=m.provider.videoData;g.JF(m)?V=4:m.CE?V=3:(V=V.Z.RF()?m.Vy:m.gt,V=V!=null?V:0);m="sms."+V;if(V===3||V===4)m+="_1";return m}; cFX=function(m){var V=[];if(m=m.Z.audio){var O=m==null?void 0:m.T;O!==void 0&&V.push("fl."+O);m=m==null?void 0:m.D;m!==void 0&&(m=Math.min(-m,0),V.push("vg."+m),V.push("nm.4"))}return V}; Zg=function(m,V){nE(m,"cat",V)}; aF=function(m,V,O,h,w){var y=g.IF(m.provider);V!==1&&V!==3&&V!==5||g.NF(m,y,"vps",[m.Ol]);nE(m,"xvt","t."+y.toFixed(3)+";m."+w.toFixed(3)+";g.2;tt."+V+";np.0;c."+O+";d."+h)}; F6=function(m,V){m.pA||(nE(m,"fcnz",""+V),m.pA=!0)}; $Eo=function(m){/[^a-zA-Z0-9;.!_-]/.test(m)&&(m=m.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return m}; n8U=function(m,V,O,h,w,y,L,C,E,q){C=C===void 0?!1:C;g.Z.call(this);var M=this;this.RY=m;this.schedule=V;this.policy=O;this.YN=h;this.Zu=E;this.BB=q;this.q2=this.P6=null;this.H6=this.fA=this.EH=this.Ae=0;this.po=this.yv=this.isSuspended=!1;this.CA="";this.l2={};this.Aj=NaN;this.W6=this.LP=this.ix=0;this.HD=null;this.UU=this.Mf=!1;this.pG=0;this.pA=!1;this.iH=this.nA=0;this.Id=null;this.Bm=!1;this.Zw=function(){return M.RY.Zw()}; this.timing=new Sz5(this.BB);this.Qt=new lK(this.schedule,this.policy);this.CP=new g.mq(this.AY,0,this);this.kD=new g.mq(this.AY,this.policy.Rd,this);this.bM=new g.mq(this.AY,1E3,this);this.qq=new g.mq(this.AY,void 0,this);this.Xr=new g.mq(function(){M.isSuspended||M.AY()},1E4,this); this.Rd=new g.mq(this.sFr,250,this);this.J=this.currentTime=NaN;this.MN=new da(5);this.v6=this.timestampOffset=NaN;this.logger=new g.Ht("dash");this.ma=Infinity;this.BD={dOt:function(){return M.FG}, IaN:function(){return M.D}, getAudioTrack:function(){return M.audioTrack}, mHu:function(){return M.videoTrack}, gEH:function(){return M.mS}, getManifest:function(){return M.YN}, Wt0:function(){return M.L}, AY:function(){M.AY()}, gi:function(){M.Ae=0;M.gi()}, cJ6:function(R){return i4(M,M.videoTrack,M.P6.L,R)}}; m=E&&E.a4();E&&(rs3(E,this.YN,this.policy),this.v6=Date.now());this.Z=new Kw(this,this.Qt,O,this.YN,w,m);O=jtm(this.Z,y,L&&L.id);this.audioTrack=new Qv(this,this.policy,O.audio,this.timing);this.videoTrack=new Qv(this,this.policy,O.video,this.timing);this.videoTrack.D.mS=this.audioTrack.L7();this.Je={updateend:this.Az,error:this.Gju};g.a(this,this.CP);g.a(this,this.kD);g.a(this,this.bM);g.a(this,this.qq);g.a(this,this.Xr);O=this.policy.J8&&this.policy.KU?!jRX(this.videoTrack.Du.info):!1;this.nP=dZ1({Uu:this.policy.V.Uu|| O,KU:this.policy.KU&&!O,Zb:this.policy.Zb});this.V=ido(this,this.policy,this.nP,this.schedule,this.MN,function(R,A){return Nmo(M,R,A)}); this.D=new yv(this,this.YN,this.policy,this.videoTrack,this.audioTrack,C);if(this.policy.N){C=this.RY.getVideoData();var f;this.uH("clsdai",{initld:1,admapsz:(f=C.jd)==null?void 0:f.size});C.jd||(C.jd=new Map);this.mS=new Bi7(this.policy.N,function(R,A){M.uH(R,A)},this.policy.oo,C.jd)}this.FG=new w9(this,this.YN,this.videoTrack,this.audioTrack,this.policy); f=this.policy.xw?this.RY.getVideoData().F3:null;this.N=new WL(this,this.policy,this.videoTrack,this.audioTrack,this.l2,this.D,this.timing,this.Qt,this.schedule,this.YN,this.Z,this.V,O,f);g.a(this,this.N);this.K=new nh(this,this.policy,this.videoTrack,this.audioTrack,this.YN,w,dU(this.RY.getVideoData()),L==null?void 0:L.id);g.a(this,this.K);Ds$(this.K,y);this.L=new fE(this.RY,this,this.policy,this.audioTrack,this.videoTrack,this.YN,this.schedule,this.Z,this.K,this.timing,this.D,this.mS);g.a(this,this.L); this.T=this.RY.kf.P8.F_;this.policy.K||bso(this);if(this.policy.wB){var x;this.tq=new W2(this.videoTrack.Du.index,(x=this.RY.getVideoData().clientPlaybackNonce)!=null?x:"",this.RY)}}; Sco=function(m){m.policy.N&&m.T&&(m.T.gs.forEach(function(V){m.ZX(V,-1)}),m.T.gs=[])}; bso=function(m){var V,O;if((V=m.T)==null?0:(O=V.aE)==null?0:O.itagDenylist){var h;m.bE((h=m.T)==null?void 0:h.aE.itagDenylist)}var w;if((w=m.T)==null?0:w.playbackStartPolicy){var y,L;dA(m.policy,(y=m.T)==null?void 0:y.playbackStartPolicy,3,(L=m.T)==null?void 0:L.Ou())}if(m.policy.cC){V=m.HW();var C;(O=V?(C=m.T)==null?void 0:C.B5.get(V):void 0)&&m.L.TJ(O,-1)}if(!m.YN.Zu){var E;C=(E=m.T)==null?void 0:E.DB;(C==null?0:C.nm)&&(C==null?0:C.uM)&&m.YN.yp&&VT(m.YN,C.nm,C.uM)}var q;if((q=m.T)==null?0:q.sF){E= m.T.sF.get(m.HW()||"");if(!E)return;m.YN&&E.formatId&&(q=m.YN.D.get(vK(E.formatId)))&&(q.info.debugInfo=E.debugInfo)}if(m.policy.pA){var M;(M=m.T)==null||M.g_.forEach(function(f){m.Kw(f)}); (M=m.T)!=null&&(M.g_=[])}}; IZl=function(m,V){var O=mt(V.Du,m.YN.yp),h,w=((h=m.Zu)==null?void 0:h.vU(O))||[];if(w.length===0)return m.uH("ombmsi",{}),!1;h=new MT(w);if((!m.policy.mS||isFinite(m.getCurrentTime())||m.RY.CQ())&&!exp(h,m.getCurrentTime()))return m.uH("ostmf",{ct:m.getCurrentTime(),a:V.Du.info.RF()}),!1;(m=m.Zu)!=null&&(m.eb.get(O).Le=!0);return!0}; evo=function(m){if(!m.YN.yp)return!0;var V=m.RY.getVideoData();if(m.RY.Fl())return m.uH("ombpa",{}),!1;var O,h;if(!!((O=m.T)==null?0:(h=O.DB)==null?0:h.brr)!==m.YN.El)return m.uH("ombplmm",{}),!1;O=V.Mf||V.liveUtcStartSeconds||V.e1;if(m.YN.El&&O)return m.uH("ombplst",{}),!1;if(m.YN.Zu)return m.uH("ombab",{}),!1;O=Date.now();return OY(m.YN)&&!isNaN(m.v6)&&O-m.v6>m.policy.ai*1E3?(m.uH("ombttl",{}),!1):m.YN.De&&m.YN.T||cC(V)!==0&&!m.policy.Z||V.Y("html5_disable_onesie_media_for_mosaic")&&hF(V)||V.Y("html5_disable_onesie_media_for_lifa_eligible")&& Oc(V)?!1:!0}; uKI=function(m,V){var O=V.Du,h=m.YN.yp;if(evo(m))if(m.Zu&&m.Zu.eb.has(mt(O,h))){if(h=mt(O,h),IZl(m,V)){var w=new MT(m.Zu.vU(h)),y=function(L){try{if(L.Dw())m.handleError(L.aJ(),L.rz()),qj(V,L),xQ(L.info)&&Y3(m.N,V,O,!0),m.AY();else if(rA(m.N,L)){var C;(C=m.D)==null||Fta(C,L.info,m.HD);m.AY()}}catch(E){L=JM(E),m.handleError(L.errorCode,L.details,L.severity),m.Si()}}; O.D=!0;fu(w)&&(mh(V,new y7(m.policy,h,w,m.Zu,y)),wa(m.timing))}}else m.uH("ombfmt",{})}; zvU=function(m,V){V=V||m.videoTrack&&m.videoTrack.Z&&m.videoTrack.Z.startTime||m.getCurrentTime();var O=m.videoTrack,h=m.Z;V=h.nextVideo&&h.nextVideo.index.AZ(V)||0;h.v6!==V&&(h.EH={},h.v6=V,WY(h,h.Z));V=!h.Z.isLocked()&&h.Qt>-1&&(0,g.TN)()-h.QtO&&(m.uH("sdai",{seg:h,rbt:O.toFixed(3),end:m.L.H6.toFixed(3),sd:w.toFixed(3)}),m.FV(!1,"rollback")):m.policy.L&&m.FV(!1,"rollback");if(m.YN.isManifestless){w=Ch(m.audioTrack,h,O,V);var y=Ch(m.videoTrack,h,O,V);m.policy.Y5||(y&&m$(m.YN,h,!0),w&&m$(m.YN,h,!1));y&&(m.videoTrack.Qt=[]);w&&(m.audioTrack.Qt=[]);m.uH("sdai",{rollbk2_seg:h,rbt:O.toFixed(3),lt:V.toFixed(3),a:w,v:y});(w||y)&&m.policy.L&&Up(m)}}; s07=function(m,V){if(!isNaN(m.Aj)){var O=Date.now()-m.Aj;O<1E4&&m.uH("bfaswtch",{ep:O,sk:V!==void 0?"1":"0",sr:V||""})}}; Fvp=function(m){m.policy.iU=!1;try{m.gi()}catch(V){g.kL(V)}}; aZp=function(m,V){V=V===void 0?!1:V;m.P6&&m.P6.Z&&m.P6.L&&(m.P6.Z.F1(m.Je,m),m.P6.L.F1(m.Je,m));vY(m.audioTrack,null,V);vY(m.videoTrack,null,V);m.P6&&(m.P6.K=!1);m.P6=null}; isX=function(m){m.P6&&m.P6.wH()&&m.U2()}; pza=function(m,V){V&&GcC(m.RY,new xz(V.video,V.reason));m.Z.Je&&(V=qY0(m.Z,"a"),m.RY.FD(new xz(V.audio,V.reason)))}; Up=function(m){g.Vn(m.CP)}; bU=function(m){m.policy.Rd&&m.policy.Zb&&Math.min(jV1(m.videoTrack),jV1(m.audioTrack))*1E3>m.policy.Cb?g.Vn(m.kD):m.AY()}; Bm$=function(m){if(ECp(m.videoTrack))return"ssf";if(m.policy.Xr&&RW(m.videoTrack)&&RW(m.audioTrack))return"updateEnd";if(Mj(m.audioTrack)||Mj(m.videoTrack)&&m.videoTrack.Du.info.B6!=="f")return"";if(m.FG.isSeeking()){var V=m.Qt;var O=m.videoTrack;var h=m.audioTrack;if(V.policy.Z){var w=V.policy.r4;UC(V.policy)&&(w=O6(V,!1,V7(V)));V=w;O=J3(h,!0)>=V&&J3(O,!0)>=V}else O.L.length||h.L.length?(w=O.Du.info.Rr+h.Du.info.Rr,w=10*(1-V7(V)/w),V=Math.max(w,V.policy.r4),O=J3(h,!0)>=V&&J3(O,!0)>=V):O=!0;if(!O)return"abr"; O=m.videoTrack;if(O.L.length>0&&O.D.L.length===1&&IjI(O.D).info.J360);if(!m.po||O)return"";O=m.policy.LT;UC(m.policy)&&(O=O6(m.Qt,m.po,V7(m.Qt)));O=LS1(m.videoTrack,m.getCurrentTime(),O)||LS1(m.audioTrack,m.getCurrentTime(),O);return UC(m.policy)?O?"mbnm":"":(m.videoTrack.L.length>0||m.audioTrack.L.length>0|| Xx(m.N,m.videoTrack,m.audioTrack)||Xx(m.N,m.audioTrack,m.videoTrack))&&O?"nord":""}; moC=function(m,V,O){if(m.policy.Xr&&RW(V))return!1;if(O.gE())return!0;if(!O.VU())return!1;var h=xj(V);if(!h||h.info.type===6)return!1;var w;if(m.policy.cS||((w=m.D)==null?0:ptU(w,V,h.info.Fr)))m.H6=0;else return m.FG.isSeeking()&&Up(m),m.H6=m.H6||(0,g.TN)(),!1;if(!i4(m,V,O,h.info))return!1;if(m.YN.L&&h.info.Z===0){if(O.k9()==null){w=PY(V);var y;if(!(y=!w||w.Du!==h.info.Du)){b:if(w=w.V,y=h.info.V,w.length!==y.length)w=!1;else{for(var L=0;Ly)return m.policy.Z&&(V===m.videoTrack?m.fA=m.fA||(0,g.TN)():m.EH=m.EH||(0,g.TN)()),m.policy.HS&&WV7(V.D,y,!1),!1;V===m.videoTrack?m.fA=0:m.EH=0;var C;m.policy.Wj&&O===((C=m.P6)==null?void 0:C.Z)&&m.pA&&(O.qA()===0?(m.pA=!1,m.policy.Wj=!1):m.nA=O.qA());a:{C=m.policy.Id?(0,g.TN)():0;L=h.K&&h.info.Du.Z||void 0;y=h.L;h.K&&(y=Q00(m,h,y)||y);var E=Ri(y);y=m.policy.Id?(0,g.TN)():0;O=v8X(m,O,E,h.info,L);(L=V.V)!=null&&(E=h.info,C=y-C,y=(0,g.TN)()-y,!L.L||$KU(L.L, E)&&L.L.Fr===E.Fr||L.flush(),L.T+=C,L.D+=y,C=1,!L.L&&E.Z&&(C=2),DO(L,C,O),y=Math.ceil(E.Z/1024),C===2&&L.Z.add(y),L.Z.add(Math.ceil((E.Z+E.L)/1024)-y),L.L=E);m.iH=0;if(O===0)m.Mf&&(m.Mf=!1,m.UU=!1),m.W6=0,O=!0;else{if(O===2||O===5)PbG(m,"checked",O,h.info);else{if(O===1){if(!m.Mf){m.Mf=!0;O=!1;break a}if(!m.UU){m.UU=!0;m.RY.seekTo(m.getCurrentTime(),{Jq:"quotaExceeded",HM:!0});O=!1;break a}h.info.Z8()?(C=m.policy,C.Mf=Math.floor(C.Mf*.8),C.iH=Math.floor(C.iH*.8)):(C=m.policy,C.W6=Math.floor(C.W6* .8),C.iH=Math.floor(C.iH*.8));m.policy.Z?oP(m.K.Z,h.info.Du,!1):T9(m.Z,h.info.Du)}m.RY.wQ({reattachOnAppend:O})}O=!1}}if(!O)return!1;m.policy.Xr&&h.info.bX()?(m.RY.j().tj()&&m.uH("eosl",{ls:h.info.Gj()}),h.isLocked=!0):(V.ot(h),Eqa(m.Z,h.info));w&&(V=h.info.Du.Sc)&&m.RY.bl(new z9(V.key,V.type));return!0}; Q00=function(m,V,O){var h;if(h=m.policy.UO&&m.P6&&!m.P6.V&&!m.RY.ME())V=V.info.Du.info,h=V.QV()&&n$(V)&&V.video&&V.video.width<3840&&V.video.width>V.video.height;if(h&&(m.P6.V=!0,M3('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return O=nq5(O),m.policy.D&&m.uH("sp4k",{s:!!O}),O}; VyG=function(m){return U3[J[4]](this,40,m)}; PbG=function(m,V,O,h){var w="fmt.unplayable",y=1;O===5||O===3?(w="fmt.unparseable",m.policy.Z?!h.Du.info.video||AN(m.K.Z).size>0||oP(m.K.Z,h.Du,!1):!h.Du.info.video||AN(m.Z.K).size>0||T9(m.Z,h.Du)):O===2&&(m.W6<15?(m.W6++,w="html5.invalidstate",y=0):w="fmt.unplayable");h=Ez(h);var L;h.mrs=(L=m.P6)==null?void 0:oT(L);h.origin=V;h.reason=O;h.trg="appenderr";m.handleError(w,h,y)}; vqo=function(m,V,O,h,w){var y=m.YN;var L=m.policy.Z,C=!1,E=-1,q;for(q in y.Z){var M=Bg(y.Z[q].info.mimeType)||y.Z[q].info.Z8();if(h===M)if(M=y.Z[q].index,M.UW(V.Fr)){C=M;var f=V,x=C.mL(f.Fr);x&&x.startTime!==f.startTime?(C.segments=[],C.j7(f),C=!0):C=!1;C?E=V.Fr:!V.pending&&L&&(f=M.getDuration(V.Fr),f!==V.duration&&(y.publish("clienttemp","mfldurUpdate",{itag:y.Z[q].info.itag,seg:V.Fr,od:f,nd:V.duration},!1),M.j7(V),C=!0))}else M.j7(V),C=!0}E>=0&&(L={},y.publish("clienttemp","resetMflIndex",(L[h? "v":"a"]=E,L),!1));y=C;$$U(m.FG,V,h,y);m.policy.pA||m.D.CL(V,O,h,w);V.Fr===m.YN.De&&y&&QA(m.YN)&&V.startTime>QA(m.YN)&&(m.YN.Pt=V.startTime+(isNaN(m.timestampOffset)?0:m.timestampOffset),m.FG.isSeeking()&&m.FG.targetTime 5)return m.iH=0,m.RY.wQ({initSegStuck:1,as:h.info.Gj()}),!0}else m.iH=0,m.Id=h;m.policy.Pc&&(O.abort(),(L=V.V)!=null&&(DO(L,4),L.flush()));w=v8X(m,O,y,E,w);(V=V.V)!=null&&(V.flush(),V.L=E,DO(V,3,w));if(w!==0)return m.policy.pZ&&Uf(m.RY.getVideoData())?(m.RY.qI()||PbG(m,"sepInit",w,h.info),Ocl(m.RY,"sie")):PbG(m,"sepInit",w,h.info),!0;h.info.Z8()?(E=m.timing,E.EH||(E.EH=(0,g.TN)(),g.nS("vis_a",E.EH,E.Z))):(E=m.timing,E.J||(E.J=(0,g.TN)(),g.nS("ais_a",E.J,E.Z)));(h=h.info.Du.Sc)&&m.RY.bl(new z9(h.key, h.type));return O.II()}; v8X=function(m,V,O,h,w){try{var y,L=V===((y=m.P6)==null?void 0:y.Z)?m.audioTrack:m.videoTrack;if(m.policy.Xr&&(h==null?0:h.bX())){if((h==null?void 0:h.Qt)>1)return 6;L.iH=new g.mq(function(){var C=xj(L);m.UH()||C==null||!C.isLocked?m.RY.j().tj()&&m.uH("eosl",{delayA:C==null?void 0:C.info.Gj()}):hMm(L)?(m.RY.j().tj()&&m.uH("eosl",{dunlock:C==null?void 0:C.info.Gj()}),w10(m,L===m.audioTrack)):(m.uH("nue",{ls:C.info.Gj()}),C.info.Qt+=1,m.P6&&m.gi())},1E4,m); m.RY.j().tj()&&m.uH("eosl",{delayS:h.Gj()});L.iH.start()}m.policy.yT&&(h==null?void 0:h.Du)instanceof o_&&h.bX()&&m.uH("poseos",{itag:h.Du.info.itag,seg:h.Fr,lseg:h.Du.index.wY(),es:h.Du.index.D});V.appendBuffer(O,h,w)}catch(C){if(C instanceof DOMException){if(C.code===11)return 2;if(C.code===12)return 5;if(C.code===22||C.message.indexOf("Not enough storage")===0)return V=Object.assign({name:"QuotaExceededError",buffered:vg(V.RJ()).replace(/,/g,"_"),vheap:jx(m.videoTrack),aheap:jx(m.audioTrack),message:g.Zl(C.message, 3),track:m.P6?V===m.P6.L?"v":"a":"u"},Q57()),m.handleError("player.exception",V),1;g.kL(C)}return 4}return m.P6.wH()?3:0}; f8=function(m,V,O){s07(m,O.Jq||"unknown");m.RY.seekTo(V,O)}; C8=function(m,V){if(m.Mf&&!m.po)return 3;if(m.isSuspended)return 1;var O;if((O=m.P6)==null?0:O.P6&&O.P6.streaming===!1)return 4;O=(V.Du.info.audio?m.policy.W6:m.policy.Mf)/(V.Rr*m.policy.R4);if(m.policy.BN>0&&m.P6&&fS(m.P6)&&(V=V.Du.info.video?m.P6.L:m.P6.Z)&&!V.II()){V=V.RJ();var h=Pg(V,m.getCurrentTime());h>=0&&(V=m.getCurrentTime()-V.start(h),O+=Math.max(0,Math.min(V-m.policy.BN,m.policy.Ed)))}m.policy.iH>0&&(O=Math.min(O,m.policy.iH));return O}; yj$=function(m,V){return(C8(m,V)+m.policy.lZ)*V.Rr}; L25=function(m){m.CA&&!m.isSuspended&&TC(m.schedule)&&(jEo(m,m.CA),m.CA="")}; jEo=function(m,V){B1(V,"cms",function(O){m.policy.D&&m.uH("pathprobe",O)},function(O){m.RY.handleError(O)})}; JjU=function(m,V){m.HD=V;m.D&&(m.D.HD=V);V=m.HD;var O=m.videoTrack.Du.info.QV();V.nP=O;V.q8({swebm:O});m.N.HD=m.HD;m.policy.L&&(m.L.HD=m.HD,Sco(m))}; E1$=function(m,V){if(m.P6&&m.P6.L){if(m.policy.NI){var O=MCl(m.audioTrack);if(O&&O.RF()){var h=m.RY;if(h.J2&&(h.J2.Z=O,O=h.Jj,O.qoe)){O=O.qoe;h=h.J2;var w=g.IF(O.provider);DEp(O,w,h)}}}m.policy.eO&&(O=MCl(m.videoTrack))&&O.Z8()&&(h=m.RY,h.R2&&(h.R2.Z=O,O=h.Jj,O.qoe&&kca(O.qoe,h.R2)));V-=isNaN(m.timestampOffset)?0:m.timestampOffset;m.getCurrentTime()!==V&&m.resume();m.FG.isSeeking()&&m.P6&&!m.P6.wH()&&(h=m.getCurrentTime()<=V&&V=V&&Nmo(m,h.startTime,!1)}); return O&&O.startTimem.getCurrentTime())return O.start/1E3;return Infinity}; $xa=function(m){if(m.RY.getVideoData().isLivePlayback)return!1;var V=m.RY.C4();if(!V)return!1;V=V.getDuration();if(m.P6&&m.P6.Z&&m.P6.L){var O=m.getCurrentTime(),h=m.P6.Z.RJ();m=m.P6.L.RJ();h=h?V8(h,O):O;O=m?V8(m,O):O;O=Math.min(h,O);V=isNaN(O)?!1:O>=V-.01}else V=!1;return V}; cL=function(m){return m.ix0){var h=O.Z.shift();g11(O,h.info)}O.Z.length>0&&(h=O.Z[0].time-(0,g.TN)(),O.L.start(Math.max(0,h)))}},0); g.a(this,this.L);V.subscribe("widevine_set_need_key_info",this.T,this)}; g11=function(m,V){a:{var O=V.cryptoPeriodIndex;if(isNaN(O)&&m.D.size>0)O=!0;else{for(var h=g.D(m.D.values()),w=h.next();!w.done;w=h.next())if(w.value.cryptoPeriodIndex===O){O=!0;break a}O=!1}}m.publish("log_qoe",{wvagt:"reqnews",canskip:O});O||m.publish("rotated_need_key_info_ready",V)}; Aj5=function(){var m={};var V=m.url;var O=m.interval;m=m.retries;this.url=V;this.interval=O;this.retries=m}; Uom=function(m,V){this.statusCode=m;this.message=V;this.D=this.heartbeatParams=this.errorMessage=null;this.L=[];this.Z={};this.nextFairplayKeyId=null}; dol=function(m){switch(m){case "DRM_TRACK_TYPE_AUDIO":return 1;case "DRM_TRACK_TYPE_SD":return 2;case "DRM_TRACK_TYPE_HD":return 3;case "DRM_TRACK_TYPE_UHD1":return 4;case "DRM_TRACK_TYPE_UHD2":return 5;default:return 0}}; tyU=function(m,V,O,h){O=O===void 0?"":O;h=h===void 0?!1:h;g.Z.call(this);this.message=m;this.requestNumber=V;this.timer=O;this.L=h;this.onError=this.onSuccess=null;this.Z=new g.i8(5E3,2E4,.2)}; K2G=function(m,V,O){m.onSuccess=V;m.onError=O}; X1m=function(m,V,O,h){var w={timeout:3E4,onSuccess:function(y){if(!m.UH()){ko("drm_net_r",void 0,m.timer);var L=m.L;L=L===void 0?!1:L;var C=y.status==="LICENSE_STATUS_OK"?0:9999,E=null;if(y.license)try{E=sS(y.license)}catch(K){g.kL(K)}if(C!==0||E){E=new Uom(C,E);C!==0&&y.reason&&(E.errorMessage=y.reason);if(y.authorizedFormats){C={};for(var q=[],M={},f=g.D(y.authorizedFormats),x=f.next();!x.done;x=f.next())if(x=x.value,x.trackType&&x.keyId){L&&E.L.push({trackType:dol(x.trackType),isHdr:!!x.isHdr}); var R=W23[x.trackType];if(R){R==="HD"&&y.isHd720&&(R="HD720");x.isHdr&&(R+="HDR");C[R]||(q.push(R),C[R]=!0);var A=null;try{A=sS(x.keyId)}catch(K){g.kL(K)}A&&(M[g.zI(A,4)]=R)}}E.D=q;E.Z=M}y.nextFairplayKeyId&&(E.nextFairplayKeyId=y.nextFairplayKeyId);y.sabrLicenseConstraint&&(E.sabrLicenseConstraint=sS(y.sabrLicenseConstraint));y=E}else y=null;if(y)m.onSuccess(y,m.requestNumber);else m.onError(m,"drm.net","t.p;p.i")}}, onError:function(y){if(!m.UH())if(y&&y.error)y=y.error,m.onError(m,"drm.net.badstatus","t.r;p.i;c."+y.code+";s."+y.status,y.code);else m.onError(m,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){m.onError(m,"drm.net","rt.req."+m.requestNumber)}}; h&&(w.tb="Bearer "+h);g.lu(O,"player/get_drm_license",V,w)}; Hco=function(m,V,O,h){g.yh.call(this);this.videoData=m;this.W=V;this.V=O;this.sessionId=h;this.K={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.Ae=this.mS=!1;this.D=null;this.v6=[];this.T=[];this.authorizedFormats=[];this.Qt=[];this.J=!1;this.Z={};this.status="";this.N=NaN;this.L=m.K;this.cryptoPeriodIndex=O.cryptoPeriodIndex;m={};Object.assign(m,this.W.Z);m.cpn=this.videoData.clientPlaybackNonce;this.videoData.Ae&&(m.vvt=this.videoData.Ae,this.videoData.mdxEnvironment&&(m.mdx_environment= this.videoData.mdxEnvironment));this.W.v6&&(m.authuser=this.W.v6);this.W.pageId&&(m.pageid=this.W.pageId);isNaN(this.cryptoPeriodIndex)||(m.cpi=this.cryptoPeriodIndex.toString());var w=(w=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.wX()))?w[1]:"";w==="ATV"&&(m.cdt=w);this.K=m;this.K.session_id=h;this.Zu=!0;this.L.flavor==="widevine"&&(this.K.hdr="1");this.L.flavor==="playready"&&(V=Number(HP(V.experiments,"playready_first_play_expiration")),!isNaN(V)&&V>=0&&(this.K.mfpe=""+V),this.Zu=!1);V="";g.Rt(this.L)? xq(this.L)?(h=O.L)&&(V="https://www.youtube.com/api/drm/fps?ek="+Gxo(h)):(V=O.initData.subarray(4),V=new Uint16Array(V.buffer,V.byteOffset,V.byteLength/2),V=String.fromCharCode.apply(null,V).replace("skd://","https://")):V=this.L.L;this.baseUrl=V;this.fairplayKeyId=Iq(this.baseUrl,"ek")||"";if(V=Iq(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(V);this.v6=O.QV?[g.zI(O.initData,4)]:O.D;v2(this,{sessioninit:O.cryptoPeriodIndex});this.status="in"}; kq5=function(m,V){v2(m,{createkeysession:1});m.status="gr";ko("drm_gk_s",void 0,m.videoData.Qt);m.url=Td$(m);try{m.D=V.createSession(m.V,function(O){v2(m,{m:O})})}catch(O){V="t.g"; O instanceof DOMException&&(V+=";c."+O.code);m.publish("licenseerror","drm.unavailable",1,V,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}m.D&&($oo(m.D,function(O,h){YjX(m,O,h)},function(O,h,w){if(!m.UH()){h=void 0; var y=1;g.Rt(m.L)&&g.l0(m.W)&&m.W.Y("html5_enable_safari_fairplay")&&w===1212433232&&(h="ERROR_HDCP",y=m.W.Y("html5_safari_fairplay_ignore_hdcp")?0:y);m.error("drm.keyerror",y,O,h)}},function(){m.UH()||(v2(m,{onkyadd:1}),m.Ae||(m.publish("sessionready"),m.Ae=!0))},function(O){m.Ix(O)}),g.a(m,m.D))}; Td$=function(m){var V=m.baseUrl;ODp(V)||m.error("drm.net",2,"t.x");if(!Iq(V,"fexp")){var O=["23898307","23914062","23916106","23883098"].filter(function(w){return m.W.experiments.experiments[w]}); O.length>0&&(m.K.fexp=O.join())}O=g.D(Object.keys(m.K));for(var h=O.next();!h.done;h=O.next())h=h.value,V=MLl(V,h,m.K[h]);return V}; YjX=function(m,V,O){if(!m.UH())if(V){v2(m,{onkmtyp:O});m.status="km";switch(O){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":rj$(m,V);return;default:m.publish("ctmp","message_type",{t:O,l:V.byteLength})}m.mS||(ko("drm_gk_f",void 0,m.videoData.Qt),m.mS=!0,m.publish("newsession",m));if(qZ(m.L)&&(V=cjp(V),!V))return;V=new tyU(V,++m.requestNumber,m.videoData.Qt,m.W.Y("html5_enable_vp9_fairplay"));K2G(V,function(h){DoU(m,h)},function(h,w,y){if(!m.UH()){var L= 0; h.Z.L>=3&&(L=1,w="drm.net.retryexhausted");v2(m,{onlcsrqerr:w,info:y});m.error(w,L,y);m.shouldRetry(L$(L),h)&&Nd0(m,h)}}); g.a(m,V);bc0(m,V)}else m.error("drm.unavailable",1,"km.empty")}; rj$=function(m,V){v2(m,{sdpvrq:1});m.N=Date.now();if(m.L.flavor!=="widevine")m.error("drm.provision",1,"e.flavor;f."+m.L.flavor+";l."+V.byteLength);else{var O={cpn:m.videoData.clientPlaybackNonce};Object.assign(O,m.W.Z);O=g.N_("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",O);V={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null,V)}), responseType:"arraybuffer"};g.nJ(O,V,3,500).then(qU(function(h){h=h.xhr;if(!m.UH()){h=new Uint8Array(h.response);var w=String.fromCharCode.apply(null,h);try{var y=JSON.parse(w)}catch(L){}y&&y.signedResponse?(m.publish("ctmp","drminfo",{provisioning:1}),y=(Date.now()-m.N)/1E3,m.N=NaN,m.publish("ctmp","provs",{et:y.toFixed(3)}),m.D&&m.D.update(h)):(y=y&&y.error&&y.error.message,h="e.parse",y&&(h+=";m."+y),m.error("drm.provision",1,h))}}),qU(function(h){m.UH()||m.error("drm.provision",1,"e."+h.errorCode+ ";c."+(h.xhr&&h.xhr.status))}))}}; P2=function(m){var V;if(V=m.Zu&&m.D!=null)m=m.D,V=!(!m.Z||!m.Z.keyStatuses);return V}; bc0=function(m,V){m.status="km";ko("drm_net_s",void 0,m.videoData.Qt);var O=new g.Bb(m.W.W7),h={context:g.fn(O.config_||g.MC())};h.drmSystem=n1X[m.L.flavor];h.videoId=m.videoData.videoId;h.cpn=m.videoData.clientPlaybackNonce;h.sessionId=m.sessionId;h.licenseRequest=g.zI(V.message);h.drmParams=m.videoData.drmParams;isNaN(m.cryptoPeriodIndex)||(h.isKeyRotated=!0,h.cryptoPeriodIndex=m.cryptoPeriodIndex);var w,y,L=!!((w=m.videoData.L)==null?0:(y=w.video)==null?0:y.isHdr());h.drmVideoFeature=L?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";m.W.experiments.wu().Z.lH(SjG)&&(h.context=g.R0(m.videoData));if(h.context&&h.context.client){if(w=m.W.Z)h.context.client.deviceMake=w.cbrand,h.context.client.deviceModel=w.cmodel,h.context.client.browserName=w.cbr,h.context.client.browserVersion=w.cbrver,h.context.client.osName=w.cos,h.context.client.osVersion=w.cosver;m.W.experiments.wu().Z.lH(SjG)||(h.context.user=h.context.user||{},m.videoData.Ae&&(h.context.user.credentialTransferTokens=[{token:m.videoData.Ae,scope:"VIDEO"}]), m.videoData.pA&&(h.context.user.kidsParent={oauthToken:m.videoData.pA}));h.context.request=h.context.request||{};h.context.request.mdxEnvironment=m.videoData.mdxEnvironment||h.context.request.mdxEnvironment;g.Rt(m.L)&&(h.fairplayKeyId=g.zI(p83(m.fairplayKeyId)));g.Uh(m.W,g.Vj(m.videoData)).then(function(C){X1m(V,h,O,C);m.status="rs"})}else m.error("drm.net",2,"t.r;ic.0")}; DoU=function(m,V){if(!m.UH())if(v2(m,{onlcsrsp:1}),m.status="rr",V.statusCode!==0)m.error("drm.auth",1,"t.f;c."+V.statusCode,V.errorMessage||void 0);else{ko("drm_kr_s",void 0,m.videoData.Qt);if(V.heartbeatParams&&V.heartbeatParams.url&&m.videoData.Y("outertube_streaming_data_always_use_staging_license_service")){var O=m.L.L.match(/(.*)youtube.com/g);O&&(V.heartbeatParams.url=O[0]+V.heartbeatParams.url)}V.heartbeatParams&&m.publish("newlicense",V.heartbeatParams);V.D&&(m.T=V.D,m.videoData.Z2||m.publish("newlicense", new Aj5),m.videoData.Z2=!0,m.J=wj(m.T,function(h){return h.includes("HDR")})); V.L&&(m.Qt=V.L);V.Z&&(m.W.Y("html5_enable_vp9_fairplay")&&xq(m.L)?(O=g.zI(p83(m.fairplayKeyId),4),m.Z[O]={type:V.Z[O],status:"unknown"}):m.Z=W8(V.Z,function(h){return{type:h,status:"unknown"}})); fO(m.L)&&(V.message=Xba(g.zI(V.message)));m.D&&(v2(m,{updtks:1}),m.status="ku",m.D.update(V.message).then(function(){ko("drm_kr_f",void 0,m.videoData.Qt);P2(m)||(v2(m,{ksApiUnsup:1}),m.publish("keystatuseschange",m))},function(h){h="msuf.req."+m.requestNumber+";msg."+g.Zl(h.message,3); m.error("drm.keyerror",1,h)})); g.Rt(m.L)&&m.publish("fairplay_next_need_key_info",m.baseUrl,V.nextFairplayKeyId);m.W.Y("html5_enable_vp9_fairplay")&&xq(m.L)&&m.publish("qualitychange",IPU(m.T));V.sabrLicenseConstraint&&m.publish("sabrlicenseconstraint",V.sabrLicenseConstraint)}}; Nd0=function(m,V){var O=V.Z.getValue();O=new g.mq(function(){bc0(m,V)},O); g.a(m,O);O.start();g.Gb(V.Z);v2(m,{rtyrq:1})}; eM7=function(m,V){for(var O=[],h=g.D(Object.keys(m.Z)),w=h.next();!w.done;w=h.next())w=w.value,O.push(w+"_"+m.Z[w].type+"_"+m.Z[w].status);return O.join(V)}; uZl=function(m){var V={};V[m.status]=P2(m)?eM7(m,"."):m.T.join(".");return V}; zMU=function(m,V,O){var h={};h.isHdr=V.includes("HDR");switch(V.replace("HDR","").replace("720","")){case "AUDIO":h.trackType=1;break;case "SD":h.trackType=2;break;case "HD":h.trackType=3;break;case "UHD1":h.trackType=4;break;case "UHD2":h.trackType=5;break;default:h.trackType=0}!h.trackType||O[V]||P2(m)&&!m_(m,V)||(m.authorizedFormats.push(h),O[V]=!0)}; m_=function(m,V){for(var O in m.Z)if(m.Z[O].status==="usable"&&m.Z[O].type===V)return!0;return!1}; Zc7=function(m,V){for(var O in m.Z)if(m.Z[O].type===V)return m.Z[O].status}; v2=function(m,V){var O=O===void 0?!1:O;yK(V);(O||m.W.tj())&&m.publish("ctmp","drmlog",V)}; sEX=function(m){var V=m[0];m[0]=m[3];m[3]=V;V=m[1];m[1]=m[2];m[2]=V;V=m[4];m[4]=m[5];m[5]=V;V=m[6];m[6]=m[7];m[7]=V}; IPU=function(m){return g.vH(m,"UHD2")||g.vH(m,"UHD2HDR")?"highres":g.vH(m,"UHD1")||g.vH(m,"UHD1HDR")?"hd2160":g.vH(m,"HD")||g.vH(m,"HDHDR")?"hd1080":g.vH(m,"HD720")||g.vH(m,"HD720HDR")?"hd720":"large"}; cjp=function(m){for(var V="",O=0;O'.charCodeAt(h);m=m.D.createSession("video/mp4",V,O);return new VU(null,null,null,null,m)}; QE3=function(m,V){var O=m.N[V.sessionId];!O&&m.T&&(O=m.T,m.T=null,O.sessionId=V.sessionId,m.N[V.sessionId]=O);return O}; p1m=function(m,V){var O=m.subarray(4);O=new Uint16Array(O.buffer,O.byteOffset,O.byteLength/2);O=String.fromCharCode.apply(null,O).match(/ek=([0-9a-f]+)/)[1];for(var h="",w=0;w19.2999?(m=O.BZ,O=O.C1, O>=m&&(O=m*.75),V=(m-O)*.5,O=new l4(V,m,m-V-O,this)):O=null;break a;case "widevine":O=new QL(V,this,m);break a;default:O=null}if(this.K=O)g.a(this,this.K),this.K.subscribe("rotated_need_key_info_ready",this.F0,this),this.K.subscribe("log_qoe",this.F8,this);g8(this.W.experiments);this.F8({cks:this.Z.getInfo()})}; PKU=function(m){var V=Gq5(m.T,m.mediaElement);V?V.then(qU(function(){V4m(m)}),qU(function(O){if(!m.UH()){g.kL(O); var h="t.a";O instanceof DOMException&&(h+=";n."+O.name+";m."+O.message);m.publish("licenseerror","drm.unavailable",1,h,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(m.F8({mdkrdy:1}),m.Qt=!0); m.Zu&&(V=Gq5(m.Zu,m.mediaElement))}; hWl=function(m,V,O){m.fA=!0;O=new z9(V,O);m.W.Y("html5_eme_loader_sync")&&(m.N.get(V)||m.N.set(V,O));O85(m,O)}; O85=function(m,V){if(!m.UH()){m.F8({onInitData:1});if(m.W.Y("html5_eme_loader_sync")&&m.videoData.D&&m.videoData.D.Z){var O=m.J.get(V.initData);V=m.N.get(V.initData);if(!O||!V)return;V=O;O=V.initData;m.N.remove(O);m.J.remove(O)}m.F8({initd:V.initData.length,ct:V.contentType});if(m.Z.flavor==="widevine")if(m.iH&&!m.videoData.isLivePlayback)yU(m);else{if(!(m.W.Y("vp9_drm_live")&&m.videoData.isLivePlayback&&V.QV)){m.iH=!0;O=V.cryptoPeriodIndex;var h=V.Z;rva(V);V.QV||(h&&V.Z!==h?m.publish("ctmp","cpsmm", {emsg:h,pssh:V.Z}):O&&V.cryptoPeriodIndex!==O&&m.publish("ctmp","cpimm",{emsg:O,pssh:V.cryptoPeriodIndex}));m.publish("widevine_set_need_key_info",V)}}else m.F0(V)}}; V4m=function(m){if(!m.UH())if(m.W.Y("html5_drm_set_server_cert")||xq(m.Z)){var V=m.T.setServerCertificate();V?V.then(qU(function(O){m.W.tj()&&m.publish("ctmp","ssc",{success:O})}),qU(function(O){m.publish("ctmp","ssce",{n:O.name, m:O.message})})).then(qU(function(){wcC(m)})):wcC(m)}else wcC(m)}; wcC=function(m){m.UH()||(m.Qt=!0,m.F8({onmdkrdy:1}),yU(m))}; ymm=function(m){return m.Z.flavor==="widevine"&&m.videoData.Y("html5_drm_cpi_license_key")}; yU=function(m){if(m.fA&&m.Qt&&!m.v6){for(;m.D.length;){var V=m.D[0],O=ymm(m)?cva(V):g.zI(V.initData);if(xq(m.Z)&&!V.L)m.D.shift();else{if(m.L.get(O))if(m.Z.flavor!=="fairplay"||xq(m.Z)){m.D.shift();continue}else m.L.delete(O);rva(V);break}}m.D.length&&m.createSession(m.D[0])}}; jK1=function(m){var V,O;g.u(function(h){if(h.Z==1){var w;if(w=g.Qf()){var y;w=!((y=m.T.L)==null||!y.getMetrics)}return w?g.I(h,m.T.getMetrics(),2):h.return()}V=h.L;if(!V)return h.return();qY(V)||(V=g.tZ(V));O=/^[A-Za-z0-9_-]+={0,3}$/;O.test(V)||(V=g.Zl(V,void 0,!0));m.publish("ctmp","drm",{metrics:V});g.j$(h)})}; jl=function(){var m=qem();return!(!m||m==="visible")}; Jmp=function(m){var V=Lsa();V&&document.addEventListener(V,m,!1)}; Cl1=function(m){var V=Lsa();V&&document.removeEventListener(V,m,!1)}; Lsa=function(){if(document.visibilityState)var m="visibilitychange";else{if(!document[d3+"VisibilityState"])return"";m=d3+"visibilitychange"}return m}; q6p=function(m){EjX=m}; f05=function(m){M40=m}; xLo=function(m){g.Z.call(this);var V=this;this.RY=m;this.yA=0;this.N=this.L=this.K=!1;this.T=0;this.IY=this.RY.j();this.videoData=this.RY.getVideoData();this.D=g.m9(this.IY.experiments,"html5_delayed_retry_count");this.Z=new g.mq(function(){V.RY.Jn()},g.m9(this.IY.experiments,"html5_delayed_retry_delay_ms")); g.a(this,this.Z)}; ULU=function(m,V,O){var h=m.videoData.L,w=m.videoData.T,y=m.IY.Y("html5_disable_codec_fallback_for_drm")&&m.videoData.gH();Uf(m.RY.getVideoData())&&m.IY.Y("html5_gapless_fallback_on_qoe_restart")&&Ocl(m.RY,"pe");if((V==="progressive.net.retryexhausted"||V==="fmt.unplayable"||V==="fmt.decode")&&!m.RY.Dd.K&&h&&h.itag==="22")return m.RY.Dd.K=!0,m.L6("qoe.restart",{reason:"fmt.unplayable.22"}),m.RY.Qo(),!0;var L=!1;if(m.videoData.isExternallyHostedPodcast){if(L=m.videoData.vF)O.mimeType=L.type,m.uH("3pp", {url:L.url});O.ns="3pp";m.RY.x5(V,1,"VIDEO_UNAVAILABLE",yK((new g.jc(V,O,1)).details));return!0}var C=m.yA+3E4<(0,g.TN)()||m.Z.isActive();if(m.IY.Y("html5_empty_src")&&m.videoData.isAd()&&V==="fmt.unplayable"&&/Empty src/.test(""+O.msg))return O.origin="emptysrc",m.L6("auth",O),!0;C||RW7(m.RY.mO())||(O.nonfg="paused",C=!0,m.RY.pauseVideo());(V==="fmt.decode"||V==="fmt.unplayable")&&(w==null?0:u6(w))&&(RF5(m.IY.K,w.B6),O.acfallexp=w.B6,L=C=!0);!C&&m.D>0&&(m.Z.start(),C=!0,O.delayed="1",--m.D);w=m.RY.loader; C||!((h==null?0:ec(h))||(h==null?0:n$(h)))||y||(RF5(m.IY.K,h.B6),L=C=!0,O.cfallexp=h.B6);if(!C)return oj3(m,O);y=!1;m.K?m.yA=(0,g.TN)():y=m.K=!0;C=m.videoData;if(C.iH){C=C.iH.KY();var E=Date.now()/1E3+1800;C=C3E5&&V.LP>=3:!V.schedule.fA}return m.videoData.V?m.videoData.Je<25:!m.videoData.Je}; Amo=function(m){if(!m.L){m.L=!0;var V=m.RY.getPlayerState();V=V.isPaused()||V.isSuspended();m.RY.RS();V&&!wm(m.videoData)||m.RY.publish("signatureexpired")}}; dLI=function(m,V){if((m=m.RY.C4())&&(V.errorCode==="fmt.unplayable"||V.errorCode==="html5.invalidstate")){var O=m.aJ();V.details.merr=O?O.toString():"0";V.details.mmsg=m.Kf()}}; t45=function(m){return m.errorCode==="net.badstatus"&&(m.severity===1||!!m.details.fmt_unav)}; Ksl=function(m,V){return m.IY.Y("html5_use_network_error_code_enums")&&V.details.rc===403||V.details.rc==="403"?(m=V.errorCode,m==="net.badstatus"||m==="manifest.net.retryexhausted"):!1}; Xc5=function(m,V){if(!Ksl(m,V)&&!m.L)return!1;V.details.sts="20430";if(gj1(m))return L$(V.severity)&&(V=Object.assign({e:V.errorCode},V.details),V=new g.jc("qoe.restart",V)),m.L6(V.errorCode,V.details),Amo(m),!0;(0,g.TN)()-m.IY.nf>6048E5&&Ws0(m,"signature");return!1}; Ws0=function(m,V){try{V={detail:"pr."+V},(JW(m.IY)||KO(m.IY)==="TVHTML5_FOR_KIDS")&&m.IY.Y("html5_reload_by_kabuki_app")?m.RY.x5("qoe.restart",1,void 0,yK(V),"7"):(m.L6("qoe.restart",V),window.location.reload())}catch(O){}}; H87=function(m,V){var O=m.IY.K;O.N=!1;O.Z=!0;m.L6("qoe.restart",{e:V===void 0?"fmt.noneavailable":V,detail:"hdr"});m.RY.Jn(!0)}; T93=function(m,V,O,h,w,y){this.videoData=m;this.Z=V;this.reason=O;this.L=h;this.token=w;this.videoId=y}; Ll=function(m,V,O,h){this.W=m;this.Bx=V;this.RY=O;this.Tp=h;this.V=this.N=this.Z=this.T=this.J=this.L=0;this.K=!1;this.Qt=g.m9(this.W.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.D=new Map}; $LC=function(m,V,O){!m.W.Y("html5_tv_ignore_capable_constraint")&&g.g2(m.W)&&(O=O.compose(m.rW(V)));return O}; Y6U=function(m){if(m.RY.mO().isInline())return j2;m=s_[Ym()];return g.ue("auto",m,!1,"s")}; rm5=function(m,V){var O,h=kzI(m,(O=V.Z)==null?void 0:O.videoInfos);O=m.RY.getPlaybackRate();return O>1&&h?(m=qtl(m.W.K,V.Z.videoInfos,O),new ee(0,m,!0,"o")):new ee(0,0,!1,"o")}; kzI=function(m,V){return V&&g.g2(m.W)?V.some(function(O){return O.video.fps>32}):!1}; cml=function(m,V){if(m.Y("html5_disable_ustreamer_constraint_for_sabr")&&SC(V.videoData))return j2;var O=m.RY.Zl();m.Y("html5_use_video_quality_cap_for_ustreamer_constraint")&&O&&O.Ms>0&&Z7(V.videoData.Sd)&&(m=O.Ms,V.videoData.Sd=new ee(0,m,!1,"u"));return V.videoData.Sd}; DLl=function(m,V){var O;a:if((O=V.Z)&&O.videoInfos.length){for(var h=g.D(O.videoInfos),w=h.next();!w.done;w=h.next()){w=w.value;var y=void 0;if((y=w.L)==null?0:y.smooth){O=w.video.qualityOrdinal;break a}}O=O.videoInfos[0].video.qualityOrdinal}else O=0;(g.B7("armv7")||g.B7("aarch64")||g.B7("android"))&&!g.g2(m.W)&&n$(V.Z.videoInfos[0])&&(O=Math.min(O,g.kH.large));h=g.m9(m.W.experiments,"html5_chipset_soft_cap");h>0&&(O=Math.min(O,h));if(h=g.m9(m.W.experiments,"html5_max_vertical_resolution")){w=4320; for(y=0;yh&&(w=Math.min(w,L.video.qualityOrdinal))}if(w<4320){for(L=y=0;L32){w=!0;break a}}w=!1}w&&(O=Math.min(O,h));(h=g.m9(m.W.experiments,"html5_live_quality_cap"))&&V.videoData.isLivePlayback&&(O=Math.min(O,h));O=N9C(m,V,O);m=g.m9(m.W.experiments,"html5_byterate_soft_cap");return new ee(0,O===4320?0:O,!1,"d",m)}; nj1=function(m){var V,O,h,w;return g.u(function(y){switch(y.Z){case 1:return m.Z.Z&&typeof((V=navigator.mediaCapabilities)==null?void 0:V.decodingInfo)==="function"?g.I(y,Promise.resolve(),2):y.return(Promise.resolve());case 2:O=g.D(m.Z.videoInfos),h=O.next();case 3:if(h.done){y.Te(0);break}w=h.value;return g.I(y,EWX(w),4);case 4:h=O.next(),y.Te(3)}})}; eW3=function(m,V,O,h){if(!V||!O||!V.videoData.L)return!1;var w=g.m9(m.W.experiments,"html5_df_downgrade_thresh"),y=m.Y("html5_log_media_perf_info");if(!((0,g.TN)()-m.T<5E3?0:y||w>0))return!1;var L=((0,g.TN)()-m.T)/1E3;m.T=(0,g.TN)();O=O.getVideoPlaybackQuality();if(!O)return!1;var C=O.droppedVideoFrames-m.N,E=O.totalVideoFrames-m.V;m.N=O.droppedVideoFrames;m.V=O.totalVideoFrames;var q=O.displayCompositedVideoFrames===0?0:O.displayCompositedVideoFrames||-1;y&&m.W.tj()&&m.RY.uH("ddf",{dr:O.droppedVideoFrames, de:O.totalVideoFrames,comp:q});if(h)return m.Z=0,!1;if((E-C)/L>m.Qt||!w||g.g2(m.W))return!1;m.Z=(E>60?C/E:0)>w?m.Z+1:0;if(m.Z!==3)return!1;S6G(m,V.videoData.L);m.RY.uH("dfd",Object.assign({dr:O.droppedVideoFrames,de:O.totalVideoFrames},I0G()));return!0}; S6G=function(m,V){var O=V.B6,h=V.video.fps,w=V.video.qualityOrdinal-1,y=m.D;V=""+O+(h>49?"p60":h>32?"p48":"");O=jd(O,h,y);w>0&&(O=Math.min(O,w));if(!Jb.has(V)&&cp().includes(V)){var L=O;O=rC();+O[V]>0&&(L=Math.min(+O[V],L));O[V]!==L&&(O[V]=L,g.I$("yt-player-performance-cap",O,2592E3))}else if(Jb.has(V)||y==null){a:{L=L===void 0?!0:L;h=cp().slice();if(L){if(h.includes(V))break a;h.push(V)}else{if(!h.includes(V))break a;h.splice(h.indexOf(V),1)}g.I$("yt-player-performance-cap-active-set",h,2592E3)}yT.set(V, O)}else Jb.add(V),y==null||y.set(V,O);m.RY.Rz()}; u8l=function(m,V){if(!V.Z.Z)return m.K?new ee(0,360,!1,"b"):j2;for(var O=!1,h=!1,w=g.D(V.Z.videoInfos),y=w.next();!y.done;y=w.next())ec(y.value)?O=!0:h=!0;O=O&&h;h=0;w=g.m9(m.W.experiments,"html5_performance_cap_floor");w=m.W.L?240:w;V=g.D(V.Z.videoInfos);for(y=V.next();!y.done;y=V.next()){var L=y.value;if(!O||!ec(L))if(y=jd(L.B6,L.video.fps,m.D),L=L.video.qualityOrdinal,Math.max(y,w)>=L){h=L;break}}return new ee(0,h,!1,"b")}; zW1=function(m,V){var O=m.RY.mO();return O.isInline()&&!V.MR?new ee(0,480,!1,"v"):SC(V)?j2:O.isBackground()&&UL()/1E3>60&&!g.g2(m.W)?new ee(0,360,!1,"v"):j2}; Z81=function(m,V,O){if(m.W.experiments.w0("html5_disable_client_autonav_cap_for_onesie")&&V.fetchType==="onesie"||g.g2(m.W)&&(Ym(-1)>=1080||V.osid))return j2;var h=g.m9(m.W.experiments,"html5_autonav_quality_cap"),w=g.m9(m.W.experiments,"html5_autonav_cap_idle_secs");return h&&V.isAutonav&&UL()/1E3>w?(O&&(h=N9C(m,O,h)),new ee(0,h,!1,"e")):j2}; N9C=function(m,V,O){if(m.Y("html5_optimality_defaults_chooses_next_higher")&&O)for(m=V.Z.videoInfos,V=1;V=0||(m.provider.RY.getVisibilityState()===3?m.K=!0:(m.Z=g.IF(m.provider),m.delay.start()))}; a03=function(m){if(!(m.L<0)){var V=g.IF(m.provider),O=V-m.T;m.T=V;m.playerState.state===8?m.playTimeSecs+=O:m.playerState.isBuffering()&&!g.l(m.playerState,16)&&(m.rebufferTimeSecs+=O)}}; i8G=function(m){var V;switch((V=m.W.playerCanaryStage)==null?void 0:V.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";case "xlarge":return"HTML5_PLAYER_CANARY_STAGE_XLARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; Gza=function(m){var V=this;this.provider=m;this.V=!1;this.L=0;this.T=-1;this.Rx=NaN;this.D=0;this.segments=[];this.J=this.N=0;this.previouslyEnded=!1;this.K=0;this.serializedStitchedClipLoggingMetadata=this.serializedPlaybackPingContextLoggingData=void 0;this.BD={hGH:function(){return V.serializedPlaybackPingContextLoggingData}, laS:function(){return V.serializedStitchedClipLoggingMetadata}}; this.Zu=this.provider.RY.getVolume();this.Qt=this.provider.RY.isMuted()?1:0;this.Z=Er(this.provider)}; qt=function(m){m.Z.startTime=m.D;m.Z.endTime=m.L;var V;if((V=m.serializedPlaybackPingContextLoggingData)==null?0:V.length)m.Z.serializedPlaybackPingContextLoggingData=m.serializedPlaybackPingContextLoggingData;var O;if((O=m.serializedStitchedClipLoggingMetadata)==null?0:O.length)m.Z.serializedStitchedClipLoggingMetadata=m.serializedStitchedClipLoggingMetadata;V=!1;m.segments.length&&g.iz(m.segments).isEmpty()?(m.segments[m.segments.length-1].previouslyEnded&&(m.Z.previouslyEnded=!0),m.segments[m.segments.length- 1]=m.Z,V=!0):m.segments.length&&m.Z.isEmpty()||(m.segments.push(m.Z),V=!0);V?m.Z.endTime===0&&(m.previouslyEnded=!1):m.Z.previouslyEnded&&(m.previouslyEnded=!0);m.N+=m.L-m.D;m.Z=Er(m.provider);m.Z.previouslyEnded=m.previouslyEnded;m.provider.W.wu().Z.lH(pc7)&&(m.K+=JSON.stringify(m.Z).length);m.previouslyEnded=!1;m.D=m.L}; l0a=function(m){B9l(m);m.J=g.KJ(function(){m.update()},100); m.Rx=g.IF(m.provider);m.Z=Er(m.provider)}; B9l=function(m){g.XM(m.J);m.J=NaN}; QKp=function(m,V,O){O-=m.Rx;return V===m.L&&O>.5}; vj3=function(m,V,O,h){this.W=V;this.CP=O;this.segments=[];this.experimentIds=[];this.Xr=this.kD=this.isFinal=this.delayThresholdMet=this.LP=this.ma=this.autoplay=this.autonav=!1;this.Id="yt";this.N=[];this.J=this.Qt=null;this.sendVisitorIdHeader=this.CA=!1;this.V=this.pageId="";this.tq=!1;this.K=O==="watchtime";this.D=O==="playback";this.v6=O==="atr";this.GB=O==="engage";this.sendVisitorIdHeader=!1;this.uri=this.v6?"/api/stats/"+O:"//"+V.Ql+"/api/stats/"+O;h&&(this.kD=h.fs,h.rtn&&(this.J=h.rtn),this.K? (this.playerState=h.state,h.rti>0&&(this.Qt=h.rti)):(this.VV=h.mos,this.IF=h.volume,h.at&&(this.adType=h.at)),h.autonav&&(this.autonav=h.autonav),h.inview!=null&&(this.Rd=h.inview),h.size&&(this.nP=h.size),h.playerwidth&&(this.wB=h.playerwidth),h.playerheight&&(this.Wj=h.playerheight));this.l2=g.bX(V.Z);this.V=HP(V.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.V==="all"||this.V==="once")this.UU=g.bX(V.LP);this.VF=V.VV;this.experimentIds=Lu1(V.experiments);this.Je=V.tq;this.Id=V.Zu;this.region= V.region;this.userAge=V.userAge;this.nA=V.on;this.BB=UL();this.sendVisitorIdHeader=V.sendVisitorIdHeader;this.iH=V.Y("vss_pings_using_networkless")||V.Y("kevlar_woffle");this.nf=V.Y("vss_final_ping_send_and_write");this.EH=V.Y("vss_use_send_and_write");this.pageId=V.pageId;this.SW=V.Y("vss_playback_use_send_and_write");V.livingRoomAppMode&&(this.livingRoomAppMode=V.livingRoomAppMode);g.sY(V)&&(this.fA=V.iH);g.o$(g.vP(V))&&this.N.push(1);this.accessToken=g.Vj(m);m.qv[this.CP]?this.T=m.qv[this.CP]: m.qv.playback&&(this.T=m.qv.playback);this.adFormat=m.adFormat;this.adQueryId=m.adQueryId;this.autoplay=YU$(m);this.D&&(this.ma=m.Ye&&QG(m)==="adunit"?!0:!1);this.autonav=m.isAutonav||this.autonav;this.contentVideoId=PC(m);this.clientPlaybackNonce=m.clientPlaybackNonce;this.LP=m.Sb;m.N&&(this.Ae=m.N,this.Aj=m.tN);m.mdxEnvironment&&(this.mdxEnvironment=m.mdxEnvironment);this.Z=m.UU;this.oz=m.oz;m.L&&(this.uc=m.L.itag,m.T&&m.T.itag!==this.uc&&(this.W6=m.T.itag));m.Z&&GX(m.Z)&&(this.offlineDownloadUserChoice= "1");this.eventLabel=QG(m);this.Xr=m.nP?!1:m.Rd;this.iU=m.gz;if(V=I5(m))this.WW=V;this.Y5=m.Sh;this.partnerId=m.partnerId;this.eventId=m.eventId;this.playlistId=m.L3||m.playlistId;this.rR=m.rR;this.iX=m.iX;this.Bt=m.Bt;this.M9=m.M9;this.subscribed=m.subscribed;this.videoId=m.videoId;this.videoMetadata=m.videoMetadata;this.visitorData=m.visitorData;this.osid=m.osid;this.iI=m.iI;this.referrer=m.referrer;this.je=m.Rk||m.je;this.pA=m.h_;this.w1=m.w1;this.userGenderAge=m.userGenderAge;this.iL=m.iL;this.embedsRct= m.embedsRct;this.embedsRctn=m.embedsRctn;g.sY(this.W)&&m.mutedAutoplay&&(m.mutedAutoplayDurationMode===2&&m.limitedPlaybackDurationInSeconds===0&&m.endSeconds===0?this.N.push(7):this.N.push(2));m.isEmbedsShortsMode(new g.LK(this.wB,this.Wj),!!this.playlistId)&&this.N.push(3);g.ME(m)&&this.N.push(4);this.Mf=m.VT;m.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=m.compositeLiveIngestionOffsetToken);m=m.getPlayerResponse();var w,y;this.tq=this.W.Y("html5_switch_vss_to_post")|| !!(m==null?0:(w=m.playerConfig)==null?0:(y=w.vssClientConfig)==null?0:y.vssUsePostRequest)}; Pll=function(m,V){var O=m.sendVisitorIdHeader?m.visitorData:void 0;return g.Uh(m.W,m.accessToken).then(function(h){return YG(m.uri,m.W,m.pageId,O,h,V)})}; Ow7=function(m,V){return function(){m.W.Y("html5_simplify_pings")?(m.Z=m.H6,m.qq=V(),m.BB=0,m.send()):Pll(m).then(function(O){var h=mp$(m);h.cmt=h.len;h.lact="0";var w=V().toFixed(3);h.rt=Number(w).toString();h=g.N_(m.uri,h);m.W.Y("vss_through_gel_double")&&Vw5(h);m.iH?(O==null&&(O={}),m.EH?G5().sendAndWrite(h,O):G5().sendThenWrite(h,O)):O?g.c7(h,O):g.IS(h)})}}; mp$=function(m){var V={ns:m.Id,el:m.eventLabel,cpn:m.clientPlaybackNonce,ver:2,cmt:m.L(m.Z),fmt:m.uc,fs:m.kD?"1":"0",rt:m.L(m.qq),adformat:m.adFormat,content_v:m.contentVideoId,euri:m.VF,lact:m.BB,live:m.WW,cl:(841764710).toString(),mos:m.VV,state:m.playerState,volume:m.IF};m.subscribed&&(V.subscribed="1");Object.assign(V,m.l2);m.V==="all"?Object.assign(V,m.UU):m.V==="once"&&m.D&&Object.assign(V,m.UU);m.autoplay&&(V.autoplay="1");m.ma&&(V.sautoplay="1");m.LP&&(V.dni="1");!m.K&&m.fA&&(V.epm=hu3[m.fA]); m.isFinal&&(V["final"]="1");m.Xr&&(V.splay="1");m.oz&&(V.delay=m.oz);m.Je&&(V.hl=m.Je);m.region&&(V.cr=m.region);m.userGenderAge&&(V.uga=m.userGenderAge);m.userAge!==void 0&&m.nA&&(V.uga=m.nA+m.userAge);m.H6!==void 0&&(V.len=m.L(m.H6));!m.K&&m.experimentIds.length>0&&(V.fexp=m.experimentIds.toString());m.J!==null&&(V.rtn=m.L(m.J));m.je&&(V.feature=m.je);m.iX&&(V.ctrl=m.iX);m.Bt&&(V.ytr=m.Bt);m.W6&&(V.afmt=m.W6);m.offlineDownloadUserChoice&&(V.ODUC=m.offlineDownloadUserChoice);m.Zu&&(V.lio=m.L(m.Zu)); m.K?(V.idpj=m.iU,V.ldpj=m.Y5,m.delayThresholdMet&&(V.dtm="1"),m.Qt!=null&&(V.rti=m.L(m.Qt)),m.iL&&(V.ald=m.iL),m.compositeLiveIngestionOffsetToken&&(V.clio=m.compositeLiveIngestionOffsetToken)):m.adType!==void 0&&(V.at=m.adType);m.nP&&(m.D||m.K)&&(V.size=m.nP);m.D&&m.N.length&&(V.pbstyle=m.N.join(","));m.Rd!=null&&(m.D||m.K)&&(V.inview=m.L(m.Rd));m.K&&(V.volume=Mt(m,g.rb(m.segments,function(h){return h.volume})),V.st=Mt(m,g.rb(m.segments,function(h){return h.startTime})),V.et=Mt(m,g.rb(m.segments, function(h){return h.endTime})),wj(m.segments,function(h){return h.playbackRate!==1})&&(V.rate=Mt(m,g.rb(m.segments,function(h){return h.playbackRate}))),wj(m.segments,function(h){return h.Z!=="-"})&&(V.als=g.rb(m.segments,function(h){return h.Z}).join(",")),wj(m.segments,function(h){return h.previouslyEnded})&&(V.pe=g.rb(m.segments,function(h){return""+ +h.previouslyEnded}).join(","))); V.muted=Mt(m,g.rb(m.segments,function(h){return h.muted?1:0})); wj(m.segments,function(h){return h.visibilityState!==0})&&(V.vis=Mt(m,g.rb(m.segments,function(h){return h.visibilityState}))); wj(m.segments,function(h){return h.connectionType!==0})&&(V.conn=Mt(m,g.rb(m.segments,function(h){return h.connectionType}))); wj(m.segments,function(h){return h.L!==0})&&(V.blo=Mt(m,g.rb(m.segments,function(h){return h.L}))); wj(m.segments,function(h){return!!h.T})&&(V.blo=g.rb(m.segments,function(h){return h.T}).join(",")); wj(m.segments,function(h){return!!h.compositeLiveStatusToken})&&(V.cbs=g.rb(m.segments,function(h){return h.compositeLiveStatusToken}).join(",")); wj(m.segments,function(h){return!!h.heartbeatLoggingToken})&&(V.hb_data=g.rb(m.segments,function(h){return h.heartbeatLoggingToken}).join(",")); wj(m.segments,function(h){return h.D!=="-"})&&(V.cc=g.rb(m.segments,function(h){return h.D}).join(",")); wj(m.segments,function(h){return h.clipId!=="-"})&&(V.clipid=g.rb(m.segments,function(h){return h.clipId}).join(",")); if(wj(m.segments,function(h){return!!h.audioId})){var O="au"; m.D&&(O="au_d");V[O]=g.rb(m.segments,function(h){return h.audioId}).join(",")}x4()&&m.Ae&&(V.ctt=m.Ae,V.cttype=m.Aj,V.mdx_environment=m.mdxEnvironment); m.GB&&(V.etype=m.mS!==void 0?m.mS:0);m.pA&&(V.uoo=m.pA);m.livingRoomAppMode&&m.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(V.clram=wYX[m.livingRoomAppMode]||m.livingRoomAppMode);m.T?yNG(m,V):(V.docid=m.videoId,V.referrer=m.referrer,V.ei=m.eventId,V.of=m.iI,V.osid=m.osid,V.vm=m.videoMetadata,m.adQueryId&&(V.aqi=m.adQueryId),m.autonav&&(V.autonav="1"),m.playlistId&&(V.list=m.playlistId),m.M9&&(V.ssrt="1"),m.w1&&(V.upt=m.w1));m.D&&(m.embedsRct&&(V.rct=m.embedsRct),m.embedsRctn&&(V.rctn= m.embedsRctn),m.compositeLiveIngestionOffsetToken&&(V.clio=m.compositeLiveIngestionOffsetToken));m.Mf&&(V.host_cpn=m.Mf);return V}; yNG=function(m,V){if(V&&m.T){var O=new Set(["q","feature","mos"]),h=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),w=new Set(["aqi","autonav","list","ssrt","upt"]);m.T.ns==="3pp"&&(V.ns="3pp");for(var y=g.D(Object.keys(m.T)),L=y.next();!L.done;L=y.next())L=L.value,h.has(L)||O.has(L)||w.has(L)&&!m.T[L]||(V[L]=m.T[L])}}; Mt=function(m,V){return g.rb(V,m.L).join(",")}; Vw5=function(m){m.indexOf("watchtime")!==-1&&g.Rz("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:m}})}; jPC=function(m,V){m.attestationResponse&&Pll(m).then(function(O){O=O||{};O.method="POST";O.postParams={atr:m.attestationResponse};m.iH?m.EH?G5().sendAndWrite(V,O):G5().sendThenWrite(V,O):g.c7(V,O)})}; Lco=function(m){var V={vssSegmentMetadata:[]};if(wj(m.segments,function(h){return!!h.serializedPlaybackPingContextLoggingData||!!h.serializedStitchedClipLoggingMetadata})){m=g.D(m.segments); for(var O=m.next();!O.done;O=m.next())O=O.value,V.vssSegmentMetadata.push({serializedPlaybackPingContextLoggingData:O.serializedPlaybackPingContextLoggingData||[],serializedStitchedClipLoggingMetadata:O.serializedStitchedClipLoggingMetadata||[]});return V}}; fl=function(m){g.Z.call(this);var V=this;this.provider=m;this.N="paused";this.K=NaN;this.V=[10,10,10,40];this.Qt=this.J=0;this.Ae=this.v6=this.mS=this.Zu=this.D=!1;this.L=this.T=NaN;this.logger=new g.Ht("vss");this.BD={bQf:function(){return V.Z}}; this.Z=new Gza(m)}; JNp=function(m){var V=m.provider.videoData.gz,O=m.provider.videoData.Sh,h=[10+V,10,10,40+O-V,40],w,y=(w=m.provider.videoData.getPlayerResponse())==null?void 0:w.playbackTracking,L=y==null?void 0:y.videostatsScheduledFlushWalltimeSeconds;w=y==null?void 0:y.videostatsDefaultFlushIntervalSeconds;if(!(L&&L.length>0&&w))return h;V=[L[0]+V].concat(g.b(L.slice(1).map(function(C,E){return C-L[E]})),[w+O-V, w]);return V.some(function(C){return C<0})?(g.T$(m.logger,347111855,"Neg vss scheduled pings "+L+" "+w),h):V}; RJ=function(m,V){V=V===void 0?NaN:V;var O=g.IF(m.provider);V=isNaN(V)?O:V;V=Math.ceil(V);var h=m.V[m.J];m.J+11E3;!(y.length>1)&&y[0].isEmpty()||C||(L.J=RJ(m,w));L.send();m.Qt++}},(w-O)*1E3); return m.T=w}; oJ=function(m){g.W7(m.K);m.K=NaN}; xP=function(m){m.Z.update();m=m.Z;m.segments.length&&m.L===m.D||qt(m);var V=m.segments;m.segments=[];m.K=0;return V}; gQ=function(m,V){var O=EzI(m.provider);Object.assign(O,{state:m.N});V=new vj3(m.provider.videoData,m.provider.W,V,O);V.Z=m.provider.RY.T6();O=m.provider.videoData.clientPlaybackNonce;V.Z=m.provider.RY.lD(O);m.provider.videoData.isLivePlayback||(V.H6=m.provider.RY.getDuration(O));m.provider.videoData.Z&&(O=m.provider.videoData.Z.K6(V.Z))&&(V.Zu=O-V.Z,Kd(m.provider.videoData)&&(V.Z+=m.provider.RY.OU(),V.Zu-=m.provider.RY.OU()));V.qq=g.IF(m.provider);V.segments=[Er(m.provider)];return V}; CaG=function(m,V){var O=gQ(m,"watchtime");qX0(m)&&(O.delayThresholdMet=!0,m.mS=!0);if(m.L>0){for(var h=g.D(V),w=h.next();!w.done;w=h.next())w=w.value,w.startTime-=m.L,w.endTime-=m.L;O.Z-=m.L}else O.Z=m.Z.L;O.segments=V;return O}; Ab=function(m,V){var O=Mwa(m,!isNaN(m.T));V&&(m.T=NaN);return O}; Mwa=function(m,V){var O=CaG(m,xP(m));!isNaN(m.T)&&V&&(O.Qt=m.T);return O}; qX0=function(m){var V;if(V=m.provider.videoData.isLoaded()&&m.provider.videoData.oz&&m.D&&!m.mS)V=m.Z,V=V.N+V.T6()-V.D>=m.provider.videoData.oz;return!!V}; xp3=function(m){m.provider.videoData.youtubeRemarketingUrl&&!m.v6&&(fOU(m,m.provider.videoData.youtubeRemarketingUrl),m.v6=!0)}; Ruo=function(m){m.provider.videoData.googleRemarketingUrl&&!m.Ae&&(fOU(m,m.provider.videoData.googleRemarketingUrl),m.Ae=!0)}; oz5=function(m){if(!m.UH()&&m.D){m.N="paused";var V=Ab(m);V.isFinal=!0;V.send();m.dispose()}}; gz5=function(m,V){if(!m.UH())if(g.l(V.state,2)||g.l(V.state,512)){if(m.N="paused",g.fX(V,2)||g.fX(V,512))g.fX(V,2)&&(m.Z.previouslyEnded=!0),m.D&&(oJ(m),Ab(m).send(),m.T=NaN)}else if(g.l(V.state,8)){m.N="playing";var O=m.D&&isNaN(m.K)?RJ(m):NaN;if(!isNaN(O)&&(M6(V,64)<0||M6(V,512)<0)){var h=Mwa(m,!1);h.J=O;h.send()}g.fX(V,16)&&V.state.seekSource===58&&(m.Z.previouslyEnded=!0)}else m.N="paused"}; ANC=function(m,V,O){if(!m.Zu){O||(O=gQ(m,"atr"));O.attestationResponse=V;try{O.send()}catch(h){if(h.message!=="Unknown Error")throw h;}m.Zu=!0}}; fOU=function(m,V){var O=m.provider.W;g.Uh(m.provider.W,g.Vj(m.provider.videoData)).then(function(h){var w=m.provider.W.pageId,y=m.provider.W.sendVisitorIdHeader?m.provider.videoData.visitorData:void 0,L=m.provider.W.Y("vss_pings_using_networkless")||m.provider.W.Y("kevlar_woffle"),C=m.provider.W.Y("allow_skip_networkless");h=YG(V,O,w,y,h);kG(V,h,{token:m.provider.videoData.N,dL:m.provider.videoData.tN,mdxEnvironment:m.provider.videoData.mdxEnvironment},O,void 0,L&&!C,!1,!0)})}; UpX=function(){this.endTime=this.startTime=-1;this.D="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.volume=this.connectionType=this.L=0;this.muted=!1;this.Z=this.clipId="-";this.previouslyEnded=!1}; Ur=function(m,V,O){this.videoData=m;this.W=V;this.RY=O;this.Z=void 0}; g.IF=function(m){return dp$(m)()}; dp$=function(m){if(!m.Z){var V=g.e$(function(h){var w=(0,g.TN)();h&&w<=631152E6&&(m.RY.uH("ytnerror",{issue:28799967,value:""+w}),w=(new Date).getTime()+2);return w},m.W.Y("html5_validate_yt_now")),O=V(); m.Z=function(){return Math.round(V()-O)/1E3}; m.RY.RB()}return m.Z}; EzI=function(m){var V=m.RY.Fd()||{};V.fs=m.RY.WM();V.volume=m.RY.getVolume();V.muted=m.RY.isMuted()?1:0;V.mos=V.muted;V.clipid=m.RY.Xp();var O;V.playerheight=((O=m.RY.getPlayerSize())==null?void 0:O.height)||0;var h;V.playerwidth=((h=m.RY.getPlayerSize())==null?void 0:h.width)||0;m=m.videoData;O={};m.L&&(O.fmt=m.L.itag,m.T&&(m.Xr?m.T.itag!==m.L.itag:m.T.itag!=m.L.itag)&&(O.afmt=m.T.itag));O.ei=m.eventId;O.list=m.playlistId;O.cpn=m.clientPlaybackNonce;m.videoId&&(O.v=m.videoId);m.ZG&&(O.infringe=1); (m.nP?0:m.Rd)&&(O.splay=1);(h=I5(m))&&(O.live=h);m.Ye&&(O.sautoplay=1);m.SJ&&(O.autoplay=1);m.rR&&(O.sdetail=m.rR);m.partnerId&&(O.partnerid=m.partnerId);m.osid&&(O.osid=m.osid);m.Q4&&(O.cc=g.$Ml(m.Q4));return Object.assign(V,O)}; dEU=function(m){var V=OyX();if(V)return tw5[V]||tw5.other;if(g.g2(m.W)){m=navigator.userAgent;if(/[Ww]ireless[)]/.test(m))return 3;if(/[Ww]ired[)]/.test(m))return 30}return 0}; Er=function(m){var V=new UpX,O;V.D=((O=EzI(m).cc)==null?void 0:O.toString())||"-";V.playbackRate=m.RY.getPlaybackRate();O=m.RY.getVisibilityState();O!==0&&(V.visibilityState=O);m.W.pA&&(V.L=1);V.T=m.videoData.T9;V.compositeLiveStatusToken=m.videoData.compositeLiveStatusToken;V.heartbeatLoggingToken=m.videoData.heartbeatLoggingToken;O=m.RY.getAudioTrack();O.fP&&O.fP.id&&O.fP.id!=="und"&&(V.audioId=O.fP.id);V.connectionType=dEU(m);V.volume=m.RY.getVolume();V.muted=m.RY.isMuted();V.clipId=m.RY.Xp()|| "-";V.Z=m.videoData.jk||"-";return V}; g.dQ=function(m,V){g.Z.call(this);var O=this;this.provider=m;this.D=new Map;this.Ol=new g.KS;this.BD={pCe:function(){return O.qoe}, LP6:function(){return O.Z}, EE6:function(){return O.L}}; this.provider.videoData.o8()&&!this.provider.videoData.IF&&(this.Z=new fl(this.provider),this.Z.L=0,g.a(this,this.Z),this.qoe=new g.b4(this.provider,V),g.a(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.LC=this.provider.videoData.clientPlaybackNonce)&&this.D.set(this.LC,this.Z));if(m.W.playerCanaryState==="canary"||m.W.playerCanaryState==="holdback")this.L=new Cl(this.provider),g.a(this,this.L)}; Kca=function(m){m.L&&Fsa(m.L);m.qoe&&rFo(m.qoe)}; Wc7=function(m){m.L&&m.L.send();if(m.qoe){var V=m.qoe;if(V.T){V.Ol==="PL"&&(V.Ol="N");var O=g.IF(V.provider);g.NF(V,O,"vps",[V.Ol]);V.J||(V.D>=0&&V.Z.set("user_intent",[V.D.toString()]),V.J=!0);V.provider.W.tj()&&V.uH("finalized",{});V.iH=!0;V.reportStats(O)}}if(m.provider.videoData.enableServerStitchedDai)for(V=g.D(m.D.values()),O=V.next();!O.done;O=V.next())oz5(O.value);else m.Z&&oz5(m.Z);m.dispose()}; XYa=function(m,V){m.Z&&ANC(m.Z,V)}; Hwl=function(m){if(!m.Z)return null;var V=gQ(m.Z,"atr");return function(O){m.Z&&ANC(m.Z,O,V)}}; Tap=function(m,V,O,h){O.adFormat=O.W6;var w=V.RY;V=new fl(new Ur(O,V.W,{getDuration:function(){return O.lengthSeconds}, getCurrentTime:function(){return w.getCurrentTime()}, T6:function(){return w.T6()}, lD:function(){return w.lD()}, XE:function(){return w.XE()}, getPlayerSize:function(){return w.getPlayerSize()}, getAudioTrack:function(){return O.getAudioTrack()}, getPlaybackRate:function(){return w.getPlaybackRate()}, sS:function(){return w.sS()}, getVisibilityState:function(){return w.getVisibilityState()}, Pj:function(){return w.Pj()}, Fd:function(){return w.Fd()}, getVolume:function(){return w.getVolume()}, isMuted:function(){return w.isMuted()}, WM:function(){return w.WM()}, Xp:function(){return w.Xp()}, getProximaLatencyPreference:function(){return w.getProximaLatencyPreference()}, RB:function(){w.RB()}, uH:function(y,L){w.uH(y,L)}, xM:function(){return w.xM()}, OU:function(){return w.OU()}})); V.L=h;g.a(m,V);return V}; $pp=function(){this.Qh=0;this.T=this.D=this.HA=this.wA=this.L=NaN;this.Z={};this.bandwidthEstimate=NaN}; YX5=function(){this.Z=g.iI;this.array=[]}; rNp=function(m,V,O){var h=[];for(V=k9I(m,V);VO)break}return h}; tb=function(m,V){var O=[];m=g.D(m.array);for(var h=m.next();!h.done&&!(h=h.value,h.contains(V)&&O.push(h),h.start>V);h=m.next());return O}; cNl=function(m){return m.array.slice(k9I(m,0x7ffffffffffff),m.array.length)}; k9I=function(m,V){m=xS(m.array,function(O){return V-O.start||1}); return m<0?-(m+1):m}; Dpl=function(m,V){var O=NaN;m=g.D(m.array);for(var h=m.next();!h.done;h=m.next())if(h=h.value,h.contains(V)&&(isNaN(O)||h.endV&&(isNaN(O)||h.startm.mediaTime+m.K&&V1)m.T=!0;if((w===void 0?0:w)||isNaN(m.L))m.L=V;if(m.Z)V!==m.mediaTime&&(m.Z=!1);else if(V>0&&m.mediaTime===V){w=1500;if(m.W.Y("html5_buffer_underrun_transition_fix")){w=g.m9(m.W.experiments,"html5_min_playback_advance_for_steady_state_secs");var y=g.m9(m.W.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");w=w>0&&y>0&&Math.abs(V-m.L)(h||!m.T?w:400)}m.mediaTime=V;m.D=O;return!1}; zup=function(m,V){this.videoData=m;this.Z=V}; Zwl=function(m,V,O){return V.s6(O).then(function(){return e6(new zup(V,V.D))},function(h){h instanceof Error&&g.cj(h); var w=Ea('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),y=M3('audio/mp4; codecs="mp4a.40.2"'),L=w||y,C=V.isLivePlayback&&!g.Yq(m.K,!0);h="fmt.noneavailable";C?h="html5.unsupportedlive":L||(h="html5.missingapi");L=C||!L?2:1;w={buildRej:"1",a:V.er(),d:!!V.Ig,drm:V.gH(),f18:V.M$.indexOf("itag=18")>=0,c18:w};V.Z&&(V.gH()?(w.f142=!!V.Z.Z["142"],w.f149=!!V.Z.Z["149"],w.f279=!!V.Z.Z["279"]):(w.f133=!!V.Z.Z["133"],w.f140=!!V.Z.Z["140"],w.f242=!!V.Z.Z["242"]),w.cAAC=y,w.cAVC=M3('video/mp4; codecs="avc1.42001E"'), w.cVP9=M3('video/webm; codecs="vp9"'));V.K&&(w.drmsys=V.K.keySystem,y=0,V.K.Z&&(y=Object.keys(V.K.Z).length),w.drmst=y);return new g.jc(h,w,L)})}; XW=function(m){this.data=window.Float32Array?new Float32Array(m):Array(m);this.L=this.Z=m-1}; sPU=function(m){return m.data[m.Z]||0}; Fcl=function(m){this.K=m;this.D=this.L=0;this.T=new XW(50)}; T4=function(m,V,O){g.yh.call(this);this.videoData=m;this.experiments=V;this.K=O;this.L=[];this.mW=0;this.D=!0;this.T=!1;this.N=0;O=new aO1;m.latencyClass==="ULTRALOW"&&(O.V=!1);m.Yq?O.D=3:g.sf(m)&&(O.D=2);m.latencyClass==="NORMAL"&&(O.K=!0);O.Zu=SC(m);if(m.latencyClass==="LOW"||m.latencyClass==="ULTRALOW")O.K=!0;var h=g.m9(V,"html5_liveness_drift_proxima_override");if(cC(m)!==0&&h){O.Z=h;var w;((w=m.Z)==null?0:U3o(w))&&O.Z--}SC(m)&&V.w0("html5_sabr_parse_live_metadata_playback_boundaries")&&(O.Ae= !0);if(g.B7("trident/")||g.B7("edge/"))w=g.m9(V,"html5_platform_minimum_readahead_seconds")||3,O.T=Math.max(O.T,w);g.m9(V,"html5_minimum_readahead_seconds")&&(O.T=g.m9(V,"html5_minimum_readahead_seconds"));g.m9(V,"html5_maximum_readahead_seconds")&&(O.Qt=g.m9(V,"html5_maximum_readahead_seconds"));if(V=g.m9(V,"html5_liveness_drift_chunk_override"))O.Z=V;rU(m)&&(O.Z=(O.Z+1)/5,m.latencyClass==="LOW"&&(O.Z*=2));!SC(m)||m.latencyClass!=="ULTRALOW"&&m.latencyClass!=="LOW"||(O.J=3,O.N=25);this.policy=O; this.J=this.policy.D!==1;this.Z=Hf(this,iw0(this,isNaN(m.liveChunkReadahead)?3:m.liveChunkReadahead,m))}; G93=function(m,V){if(V)return V=m.videoData,V=iw0(m,isNaN(V.liveChunkReadahead)?3:V.liveChunkReadahead,V),Hf(m,V);if(m.L.length){if(Math.min.apply(null,m.L)>1)return Hf(m,m.Z-1);if(m.policy.V)return Hf(m,m.Z+1)}return m.Z}; pYX=function(m,V){if(!m.L.length)return!1;var O=m.Z;m.Z=G93(m,V===void 0?!1:V);if(V=O!==m.Z)m.L=[],m.mW=0;return V}; YP=function(m,V){return V>=m.Jk()-$P(m)}; Bam=function(m,V,O){V=YP(m,V);O||V?V&&(m.D=!0):m.D=!1;m.J=m.policy.D===2||m.policy.D===3&&m.D}; lO5=function(m,V){V=YP(m,V);m.T!==V&&m.publish("livestatusshift",V);m.T=V}; $P=function(m){var V=m.policy.Z;m.T||(V=Math.max(V-1,0));return V*kP(m)}; iw0=function(m,V,O){O.Yq&&V--;rU(O)&&(V=1);if(cC(O)!==0&&(m=g.m9(m.experiments,"html5_live_chunk_readahead_proxima_override"))){V=m;var h;((h=O.Z)==null?0:U3o(h))&&V++}return V}; kP=function(m){return m.videoData.Z?vt(m.videoData.Z)||5:5}; Hf=function(m,V){V=Math.max(Math.max(1,Math.ceil(m.policy.T/kP(m))),V);return Math.min(Math.min(8,Math.floor(m.policy.Qt/kP(m))),V)}; aO1=function(){this.T=0;this.Qt=Infinity;this.V=!0;this.L=this.Z=2;this.D=1;this.K=!1;this.N=10;this.Ae=!1;this.J=1;this.Zu=!1}; Dx=function(m){g.Z.call(this);this.RY=m;this.Z=0;this.L=null;this.N=this.T=0;this.D={};this.W=this.RY.j();this.K=new g.mq(this.AY,1E3,this);this.Xr=rQ(this,"html5_seek_timeout_delay_ms");this.mS=rQ(this,"html5_long_rebuffer_threshold_ms");this.CA=rQ(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.EH=rQ(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.fA=rQ(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.UU=rQ(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.Zu=rQ(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.Ae=new cf(2E4);this.H6=rQ(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.Je=rQ(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.Mf=rQ(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.iH=rQ(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.V=rQ(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.Qt=rQ(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.pA=rQ(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.nA=rQ(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.J=rQ(this,"html5_ads_preroll_lock_timeout_delay_ms", "html5_ads_preroll_lock_timeout_cfl");this.W6=new cf(g.m9(this.W.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.W.Y("html5_report_slow_ads_as_error"));this.Aj=new cf(g.m9(this.W.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.W.Y("html5_skip_slow_buffering_ad"));this.LP=rQ(this,"html5_slow_start_timeout_delay_ms");this.v6=rQ(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.a(this,this.K)}; rQ=function(m,V,O){O=O===void 0?null:O;var h=h===void 0?0:h;return new cf(g.m9(m.W.experiments,V)||h,O?m.W.Y(O):!1)}; QP0=function(m,V){m.Z=V}; Nt=function(m,V,O,h,w,y,L,C){V?V.test(O)?(m.L6(w,V,L),V.N||y()):(!V.L||V.T?O=!1:(O=(0,g.TN)(),h?V.Z||(V.Z=O):V.Z=0,y=!h&&O-V.L>3E4,O=V.Z&&O-V.Z>1E3||y?V.T=!0:!1),O&&(C=Object.assign({},m.xD(V),C),C.wn=L,C.we=w,C.wsuc=h,m.RY.uH("workaroundReport",C),h&&(V.reset(),m.D[w]=!1))):m.RY.x5("auth",2,"BROWSER_OR_EXTENSION_ERROR",yK({source:"watchdog",name:L}))}; cf=function(m,V){this.N=V===void 0?!1:V;this.Z=this.L=this.D=this.startTimestamp=0;this.T=!1;this.K=Math.ceil(m/1E3)}; Vxl=function(m){g.Z.call(this);var V=this;this.RY=m;this.V=this.Z=this.loader=this.mediaElement=this.playbackData=null;this.D=0;this.K=this.mS=this.T=null;this.iH=!1;this.UU=0;this.Ae=!1;this.timestampOffset=0;this.Qt=!0;this.Je=0;this.CA=this.CP=!1;this.J=0;this.nA=!1;this.fA=this.v6=0;this.W=this.RY.j();this.videoData=this.RY.getVideoData();this.policy=new vzp;this.Zu=new Dx(this.RY);this.Aj=this.Mf=this.H6=this.N=this.L=NaN;this.EH=new g.mq(function(){Pap(V,!1)},2E3); this.kD=new g.mq(function(){bn(V)}); this.Xr=new g.mq(function(){mjo(V,{})}); this.LP=NaN;this.W6=new g.mq(function(){var O=V.W.BP;O.Z+=1E4/36E5;O.Z-O.D>1/6&&(IIl(O),O.D=O.Z);V.W6.start()},1E4); g.a(this,this.Zu);g.a(this,this.EH);g.a(this,this.Xr);g.a(this,this.kD);g.a(this,this.W6)}; wLG=function(m,V){m.playbackData=V;m.videoData.isLivePlayback&&(m.V=new Fcl(function(){a:{if(m.playbackData&&m.playbackData.Z.Z){if(ku(m.videoData)&&m.loader){var h=m.loader.MN.Og()||0;break a}if(m.videoData.Z){h=m.videoData.Z.iH;break a}}h=0}return h}),m.Z=new T4(m.videoData,m.W.experiments,function(){return m.n4(!0)})); if(nl(m.RY)){var O;(O=m.videoData.Zd)!=null&&O.M_||(V=Oh7(m),V.SB?(SC(m.videoData)&&m.UV(V.SB,V.startSeconds),m.D=V.startSeconds):V.startSeconds>0&&m.seekTo(V.startSeconds,{Jq:"seektimeline_startPlayback",seekSource:15}));m.Qt=!1}else hZ7(m)||(m.D=m.D||m.videoData.startSeconds||0,m.videoData.isLivePlayback||(V=m.RY.videoData.n4(),m.D>V&&(m.Y("html5_sabr_log_invalid_sabr_current_time")&&m.RY.uH("invalidSabrCmtStart",{rt:m.D,mst:V}),m.Y("html5_sabr_vod_invalid_start_time_fallback")&&(m.D=0))))}; jW0=function(m,V){(m.loader=V)?y37(m,!0):Sl(m)}; J3I=function(m,V){var O=m.getCurrentTime(),h=m.isAtLiveHead(O);if(m.V&&h){var w=m.V;if(w.Z&&!(O>=w.L&&O50&&w.L.shift())),w=m.Z,Bam(w,O,V===void 0?!0:V),lO5(w,O),V&&Pap(m,!0));h!==m.CP&&(V=m.getCurrentTime()-m.Aj<=500,O=m.UU>=1E3,V||O||(V=m.RY.Jj,V.qoe&&(V=V.qoe,O=g.IF(V.provider), g.NF(V,O,"lh",[h?"1":"0"])),m.CP=h,m.UU++,m.Aj=m.getCurrentTime()))}; Pap=function(m,V){if(m.Z){var O=m.Z;var h=m.getCurrentTime(),w=O.Jk();var y=O.policy.L;O.T||(y=Math.max(y-1,0));y*=kP(O);h>=w-y||!O.hf()?O=hO+1&&V0&&m.mediaElement.HI()>0&&(m.L=IJ(m,m.L,!1)),V=m.Y("html5_pseudogapless_shorts_seek_to_next_start")&&(V==null?void 0:V.seekSource)===60,!m.mediaElement||!RZa(m,V))m.kD.start(750);else if(!isNaN(m.L)&&isFinite(m.L)&&(V=m.Mf-(m.L-m.timestampOffset),!(V===0||Math.abs(V)<.005)))if(V=m.mediaElement.getCurrentTime()-m.L,Math.abs(V)<=m.Je||Math.abs(V)<.005)o3l(m);else{if(m.videoData.cC)m.videoData.cC= !1;else if(!T_(m.videoData)&&m.L>=m.n4()-.1){m.L=m.n4();m.T.resolve(m.n4());m.W.tj()&&m.RY.uH("setEndedInSeek",{tgt:""+m.L,maxst:""+m.n4()});m.RY.mA();return}try{var O=m.L-m.timestampOffset;m.mediaElement.seekTo(O);m.Zu.Z=O;m.Mf=O;m.D=m.L;m.Ae=!1}catch(h){}}}; RZa=function(m,V){V=V===void 0?!1:V;if(!m.mediaElement||m.mediaElement.f_()===0||m.mediaElement.hasError())return!1;var O=m.mediaElement.getCurrentTime()>0;return m.videoData.D&&m.videoData.D.Z||m.videoData.isLivePlayback||!m.videoData.gH()?m.L>=0&&!V&&(V=m.mediaElement.BM(),V.length||!O)?mu(V,m.L-m.timestampOffset):O:O}; o3l=function(m){m.T&&(m.T.resolve(m.mediaElement.getCurrentTime()),m.Zu.L=null)}; fw$=function(m,V){m.K&&(m.K.resolve(V),m.RY.Zo(),m.W.tj()||xj$(m))&&(V=m.xD(),V["native"]=""+ +m.Ae,V.otgt=""+(m.L+m.timestampOffset),m.RY.uH("seekEnd",V));Sl(m)}; Sl=function(m){m.L=NaN;m.N=NaN;m.Mf=NaN;m.T=null;m.mS=null;m.K=null;m.iH=!1;m.Ae=!1;m.Je=0;m.EH.stop();m.Xr.stop()}; A3$=function(m,V){var O=m.mediaElement,h=V.type;switch(h){case "seeking":var w=O.getCurrentTime()+m.timestampOffset;if(!m.T||m.Ae&&w!==m.L){m.T=new Ut;m.T.then(function(L){fw$(m,L)},function(){Sl(m)}); if(m.videoData.isAd()){var y;nk7({adCpn:m.videoData.clientPlaybackNonce,contentCpn:(y=m.videoData.VT)!=null?y:""},V.Z)}m.Mf=w;QP0(m.Zu,O.getCurrentTime());m.seekTo(w,{seekSource:104,Jq:"seektimeline_mediaElementEvent"});m.Ae=!0}break;case "seeked":o3l(m);break;case "loadedmetadata":nl(m.RY)||g3G(m);bn(m);break;case "progress":bn(m);break;case "pause":m.J=m.getCurrentTime()}m.J&&((h==="play"||h==="playing"||h==="timeupdate"||h==="progress")&&m.getCurrentTime()-m.J>10&&(m.Y("html5_sky_skip_pause_jump")? m.RY.uH("skipPauseJump",{evt:h,cmt:m.getCurrentTime(),lpt:m.J}):m.seekTo(m.J,{Jq:"pauseJump"})),h!=="pause"&&h!=="play"&&h!=="playing"&&h!=="progress"&&(m.J=0))}; Uj3=function(m){return(F2(m.videoData)||!!m.videoData.liveUtcStartSeconds)&&(!!m.videoData.liveUtcStartSeconds||hZ7(m))&&!!m.videoData.Z}; hZ7=function(m){return!!m.videoData.startSeconds&&isFinite(m.videoData.startSeconds)&&m.videoData.startSeconds>1E9}; Oh7=function(m){var V=0,O=NaN,h="";if(!m.Qt)return{startSeconds:V,SB:O,source:h};m.videoData.wd?V=m.videoData.Pt:T_(m.videoData)&&(V=Infinity);if(g.sf(m.videoData))return{startSeconds:V,SB:O,source:h};m.videoData.startSeconds?(h="ss",V=m.videoData.startSeconds):m.videoData.e1&&(h="stss",V=m.videoData.e1);m.videoData.liveUtcStartSeconds&&(O=m.videoData.liveUtcStartSeconds);if(isFinite(V)&&(V>m.n4()||Vm.n4()||O 0?(h.onesie="0",m.handleError(new g.jc("html5.missingapi",h)),!1):!0}; kCp=function(m){var V=lb();Qj(V,m);return g.lP(V,sX3())}; TA1=function(m,V,O){var h,w,y,L,C,E,q,M,f,x,R,A,K,X,c,r,N,n,F,z,V$,O3,hI,jG,fo,w7;return g.u(function(Ko){if(Ko.Z==1)return V.fetchType="onesie",h=Bso(V,m.getPlayerSize(),m.getVisibilityState()),w=new MF(m,h,O),g.I(Ko,w.fetch(),2);y=Ko.L;L={player_response:y};V.loading=!1;C=m.kf.P8;if(w.uw){E=g.D(w.uw.entries());for(q=E.next();!q.done;q=E.next())M=q.value,f=g.D(M),x=f.next().value,R=f.next().value,A=x,K=R,C.Z.set(A,K,180),A===V.videoId&&(X=K.a4(),V.rF=X);C.F_=w}c=g.D(w.LY.entries());for(r=c.next();!r.done;r= c.next())N=r.value,n=g.D(N),F=n.next().value,z=n.next().value,V$=F,O3=z,C.L.set(V$,O3,180);g.Ef(V,L,!0);if(V.loading||Jq(V))return Ko.return(Promise.resolve());C.Z.removeAll();C.L.removeAll();V.rF=[];hI={};jG="onesie.response";fo=0;V.errorCode?(jG="auth",hI.ec=V.errorCode,hI.ed=V.errorDetail,hI.es=V.dQ||"",fo=2):(hI.successButUnplayable="1",hI.disposed=""+ +V.UH(),hI.afmts=""+ +/adaptiveFormats/.test(y),hI.cpn=V.clientPlaybackNonce);w7=new g.jc(jG,hI,fo);return Ko.return(Promise.reject(w7))})}; WhX=function(m,V){var O,h,w,y,L,C,E,q,M,f,x;return g.u(function(R){switch(R.Z){case 1:O=V.isAd(),h=!O,w=O?1:3,y=0;case 2:if(!(y0)){R.Te(5);break}return g.I(R,ZA(5E3),6);case 6:L=new g.no("Retrying OnePlatform request",{attempt:y}),g.cj(L);case 5:return g.JG(R,7),g.I(R,r3X(m,V),9);case 9:return R.return();case 7:C=g.qA(R);E=JM(C);q=E.errorCode;M=m.j();f=M.Y("html5_use_network_error_code_enums")?401:"401";h&&q==="manifest.net.badstatus"&&E.details.rc===f&&(h=!1,y===w-1&&(w+= 1));if(y===w-1)return x=c3a(O,E.details),x.details.backend="op",x.details.originec=q,R.return(Promise.reject(x));if(q==="auth"||q==="manifest.net.retryexhausted")return R.return(Promise.reject(E));m.handleError(E);if(L$(E.severity)){R.Te(4);break}case 3:y++;R.Te(2);break;case 4:return R.return(Promise.reject(c3a(O,{backend:"op"})))}})}; r3X=function(m,V){function O(hI){hI.readyState===2&&m.UI("ps_c")} var h,w,y,L,C,E,q,M,f,x,R,A,K,X,c,r,N,n,F,z,V$,O3;return g.u(function(hI){switch(hI.Z){case 1:V.fetchType="gp";h=m.j();w=g.Uh(h,g.Vj(V));if(!w.Z){y=w.getValue();hI.Te(2);break}return g.I(hI,w.Z,3);case 3:y=hI.L;case 2:return L=y,C=kCp(L),E=Bso(V,m.getPlayerSize(),m.getVisibilityState()),q=g.Vs(DjU),M=g.Vj(V),f=(0,g.TN)(),x=!1,R="empty",A=0,m.UI("psns"),K={di:O},g.I(hI,g.Ia(C,E,q,void 0,K),4);case 4:X=hI.L;m.UI("psnr");if(V.UH())return hI.return();X?"error"in X&&X.error?(x=!0,R="esf:"+X.error.message, A=X.error.code):X.errorMetadata&&(x=!0,R="its",A=X.errorMetadata.status):x=!0;if(x)return c=0,r=((0,g.TN)()-f).toFixed(),N={},N=h.Y("html5_use_network_error_code_enums")?{backend:"op",rc:A,rt:r,reason:R,has_kpt:V.pA?"1":"0",has_mdx_env:V.mdxEnvironment?"1":"0",has_omit_key_flag:g.Vf("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:h.pageId?"1":"0",has_token:M?"1":"0",has_vvt:V.Ae?"1":"0",is_mdx:V.isMdxPlayback?"1":"0",mdx_ctrl:V.iX||"",token_eq:M===g.Vj(V)?"1":"0"}:{backend:"op", rc:""+A,rt:r,reason:R,has_kpt:V.pA?"1":"0",has_mdx_env:V.mdxEnvironment?"1":"0",has_omit_key_flag:g.Vf("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:h.pageId?"1":"0",has_token:M?"1":"0",has_vvt:V.Ae?"1":"0",is_mdx:V.isMdxPlayback?"1":"0",mdx_ctrl:V.iX||"",token_eq:M===g.Vj(V)?"1":"0"},n="manifest.net.connect",A===429?(n="auth",c=2):A>200&&(n="manifest.net.badstatus",A===400&&(c=2)),hI.return(Promise.reject(new g.jc(n,N,c)));V.loading=!1;g.Ef(V,{raw_player_response:X},!0); F=X;g.BP(V.j())&&F&&F.trackingParams&&U_(F.trackingParams);if(V.errorCode)return z={ec:V.errorCode,ed:V.errorDetail,es:V.dQ||""},hI.return(Promise.reject(new g.jc("auth",z,2)));if(!V.loading&&!Jq(V))return V$=V.isAd()?"auth":"manifest.net.retryexhausted",O3=V.isAd()?2:1,hI.return(Promise.reject(new g.jc(V$,{successButUnplayable:"1",hasMedia:g.u2(V)?"1":"0"},O3)));g.j$(hI)}})}; KhU=function(m,V,O){function h(A){A=JM(A);if(L$(A.severity))return Promise.reject(A);m.handleError(A);return!1} function w(){return!0} var y,L,C,E,q,M,f,x,R;return g.u(function(A){switch(A.Z){case 1:var K=m.j();m.getPlayerSize();m.getVisibilityState();m.isFullscreen();if(V.partnerId===38&&K.playerStyle==="books")K=V.videoId.indexOf(":"),K=g.N_("//play.google.com/books/volumes/"+V.videoId.slice(0,K)+"/content/media",{aid:V.videoId.slice(K+1),sig:V.pZ});else if(V.partnerId===30&&K.playerStyle==="docs")K=g.N_("https://docs.google.com/get_video_info",{docid:V.videoId,authuser:V.lF,authkey:V.Z0,eurl:K.VV});else if(V.partnerId===33&&K.playerStyle=== "google-live")K=g.N_("//google-liveplayer.appspot.com/get_video_info",{key:V.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+K.Zu);y=K;C=(L=V.isAd())?1:3;E=0;case 2:if(!(E0)){A.Te(5);break}return g.I(A,ZA(5E3),6);case 6:M={playerretry:E,playerretrysrc:O},L||(M.recover="embedded"),q=MB(y,M);case 5:return g.I(A,NAU(V,q).then(w,h),7);case 7:if(f=A.L)return A.return();E++;A.Te(2);break;case 4:x=L?"auth":"manifest.net.retryexhausted";R=L?2:1;if(!L&&Math.random()< 1E-4)try{g.cj(new g.no("b/152131571",btoa(y)))}catch(X){}return A.return(Promise.reject(new g.jc(x,{backend:"gvi"},R)))}})}; NAU=function(m,V){function O(X){return h(X.xhr)} function h(X){if(!m.UH()){X=X?X.status:-1;var c=0,r=((0,g.TN)()-M).toFixed();r=w.Y("html5_use_network_error_code_enums")?{backend:"gvi",rc:X,rt:r}:{backend:"gvi",rc:""+X,rt:r};var N="manifest.net.connect";X===429?(N="auth",c=2):X>200&&(N="manifest.net.badstatus",X===400&&(c=2));return Promise.reject(new g.jc(N,r,c))}} var w,y,L,C,E,q,M,f,x,R,A,K;return g.u(function(X){if(X.Z==1){m.fetchType="gvi";w=m.j();var c={};m.qR&&(c.ytrext=m.qR);(C=g.c8(c)?void 0:c)?(y={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:C},L=MB(V,{action_display_post:1})):(y={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},L=V);E={};w.sendVisitorIdHeader&&m.visitorData&&(E["X-Goog-Visitor-Id"]=m.visitorData);(q=HP(w.experiments,"debug_sherlog_username"))&&(E["X-Youtube-Sherlog-Username"]=q);Object.keys(E).length> 0&&(y.headers=E);M=(0,g.TN)();return g.I(X,es(bB,L,y).then(void 0,O),2)}f=X.L;if(!f||!f.responseText)return X.return(h(f));m.loading=!1;x=Tl(f.responseText);g.Ef(m,x,!0);if(m.errorCode)return R={ec:m.errorCode,ed:m.errorDetail,es:m.dQ||""},X.return(Promise.reject(new g.jc("auth",R,2)));if(!m.loading&&!Jq(m))return A=m.isAd()?"auth":"manifest.net.retryexhausted",K=m.isAd()?2:1,X.return(Promise.reject(new g.jc(A,{successButUnplayable:"1"},K)));g.j$(X)})}; c3a=function(m,V){return new g.jc(m?"auth":"manifest.net.retryexhausted",V,m?2:1)}; sr=function(m,V,O){O=O===void 0?!1:O;var h,w,y,L;g.u(function(C){if(C.Z==1){h=m.j();if(O&&(!g.fI(h)||QG(V)!=="embedded")||V.LQ||QG(V)!=="adunit"&&(g.g2(h)||Oh(h)||g.Sm(h)||g.Ms(h)||g.l0(h)||KO(h)==="WEB_CREATOR"))return C.return();w=g.Uh(h,g.Vj(V));return w.Z?g.I(C,w.Z,3):(y=w.getValue(),C.Te(2))}C.Z!=2&&(y=C.L);L=y;return C.return(bh1(m,V,L))})}; bh1=function(m,V,O){var h,w,y,L,C;return g.u(function(E){if(E.Z==1){g.JG(E,2);h=kCp(O);var q=V.j(),M=g.a$(),f={context:g.R0(V),videoId:V.videoId,racyCheckOk:V.racyCheckOk,contentCheckOk:V.contentCheckOk,autonavState:"STATE_NONE"};QG(V)==="adunit"&&(f.isAdPlayback=!0);q.embedConfig&&(f.serializedThirdPartyEmbedConfig=q.embedConfig);q.rF&&(f.showContentOwnerOnly=!0);V.A2&&(f.showShortsOnly=!0);M.lH(141)&&(f.autonavState=M.lH(140)?"STATE_OFF":"STATE_ON");if(g.Eh(q)){M=M.lH(65);M=M!=null?!M:!1;var x= !!g.eU("yt-player-sticky-caption");f.captionsRequested=M&&x}var R;if(q=(R=q.getWebPlayerContextConfig())==null?void 0:R.encryptedHostFlags)f.playbackContext={encryptedHostFlags:q};w=f;y=g.Vs(n3U);m.UI("wn_s");return g.I(E,g.Ia(h,w,y),4)}if(E.Z!=2)return L=E.L,m.UI("wn_r"),!L||"error"in L&&L.error||(C=L,g.BP(V.j())&&C.trackingParams&&U_(C.trackingParams),g.Ef(V,{raw_watch_next_response:L},!1)),g.EJ(E,0);g.qA(E);g.j$(E)})}; XL0=function(m,V){var O,h,w,y;g.u(function(L){if(L.Z==1)return O=m.j(),h=g.Uh(O,g.Vj(V)),h.Z?g.I(L,h.Z,3):(w=h.getValue(),L.Te(2));L.Z!=2&&(w=L.L);y=w;return L.return(SCG(V,y))})}; SCG=function(m,V){var O,h,w,y;return g.u(function(L){if(L.Z==1)return g.JG(L,2),O=kCp(V),h={context:g.R0(m),playerRequest:{videoId:m.videoId},disablePlayerResponse:!0},w=g.Vs(Iwp),g.I(L,g.Ia(O,h,w),4);if(L.Z!=2)return y=L.L,!y||"error"in y&&y.error||g.Ef(m,{raw_reel_item_watch_response:y}),g.EJ(L,0);g.qA(L);g.j$(L)})}; eZo=function(m,V){m.UI("vir");m.UI("ps_s");bP("vir",void 0,"video_to_ad");V=YC3(m,V);V.then(function(){m.UI("virc");bP("virc",void 0,"video_to_ad");m.UI("ps_r");bP("ps_r",void 0,"video_to_ad")},function(){m.UI("virc"); bP("virc",void 0,"video_to_ad")}); return V}; g.G4=function(m,V,O,h,w,y,L,C,E,q,M){q=q===void 0?new g.Ld(m):q;M=M===void 0?!0:M;g.yh.call(this);var f=this;this.W=m;this.playerType=V;this.vD=O;this.Bx=h;this.getVisibilityState=y;this.visibility=L;this.kf=C;this.Tp=E;this.videoData=q;this.Sg=M;this.logger=new g.Ht("VideoPlayer");this.C6=null;this.IV=new wQ;this.TE=null;this.Q_=!0;this.P6=this.loader=null;this.DX=[];this.It=new Zx;this.A6=this.Ha=null;this.zD=new Zx;this.Ih=null;this.Ds=this.IW=!1;this.zL=NaN;this.nz=!1;this.playerState=new g.KS; this.iR=[];this.zm=new g.Rc;this.mediaElement=null;this.IM=this.k0=!1;this.OB=NaN;this.NF=!1;this.UA=0;this.r5=!1;this.hP=NaN;this.yA=0;this.loop=!1;this.playbackRate=1;this.bk=0;this.aO=!1;this.TL=[];this.sf=this.S6=0;this.ub=this.q_=!1;this.HA=this.wA=0;this.qW=!1;this.vS=this.R2=this.J2=this.HD=null;this.zB=function(){var x=f.Jj;x.provider.W.VF||x.provider.RY.getVisibilityState()===3||(x.provider.W.VF=!0);x.U_();if(x.L){var R=x.L;R.K&&R.Z<0&&R.provider.RY.getVisibilityState()!==3&&Fsa(R)}x.qoe&& (x=x.qoe,x.Xr&&x.D<0&&x.provider.W.VF&&rFo(x),x.T&&u4(x));f.loader&&FW(f);aJ(f)}; this.BD={Ix:function(x){f.Ix(x)}, FAH:function(x){f.C6=x}, Nne:function(){return f.Jj}, E8:function(){return f.P6}, huH:function(){return f.yJ}, lX0:function(){return f.qm}, jWS:function(){}, j:function(){return f.W}, C4:function(){return f.mediaElement}, VGr:function(x){f.e6(x)}, QWr:function(){return f.Bx}}; this.QG=new xLo(this);this.AU=new g.mq(this.mCf,15E3,this);this.xU=new el(new Map([["bufferhealth",function(){return Lho(f.K4)}], ["bandwidth",function(){return f.j_()}], ["networkactivity",function(){return f.Tp.mS}], ["livelatency",function(){return f.isAtLiveHead()&&f.isPlaying()?uxC(f):NaN}], ["rawlivelatency",function(){return uxC(f)}]])); this.K4=new Vxl(this);this.mK=new g.mq(this.vNA,0,this);this.mqN=[this.zm,this.mK,this.AU,this.xU];this.yz=new udX(this.W);this.Dd=new Ll(this.W,this.Bx,this,this.Tp);this.mV=new g.Kl(this,function(x,R){x!==g.Gu("endcr")||g.l(f.playerState,32)||f.mA();w(x,R,f.playerType)}); g.a(this,this.mV);g.a(this,this.K4);zZ$(this,q);this.videoData.subscribe("dataupdated",this.gAf,this);this.videoData.subscribe("dataloaded",this.rX,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.uH,this);this.videoData.subscribe("ctmpstr",this.bI,this);!this.Jj||this.Jj.UH();this.Jj=new g.dQ(new Ur(this.videoData,this.W,this));Jmp(this.zB);this.visibility.subscribe("visibilitystatechange",this.zB);this.yJ=new g.mq(this.Z_,g.m9(this.W.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.qm=new g.mq(this.Z_,g.m9(this.W.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.yQ=new g.wO(this.ifY,350,this);g.a(this,this.yQ)}; zZ$=function(m,V){if(m.playerType===2||m.W.gU)V.xw=!0;var O=cO3(V.W6,V.uF,m.W.T,m.W.V);O&&(V.adFormat=O);m.playerType===2&&(V.SJ=!0);if(m.isFullscreen()||m.W.T)O=g.eU("yt-player-autonavstate"),V.autonavState=O||(m.W.T?2:m.videoData.autonavState);V.endSeconds&&V.endSeconds>V.startSeconds&&pl(m,V.endSeconds)}; Zho=function(m){return g.g2(m.W)&&m.videoData.isLivePlayback&&(!m.W.Y("html5_allow_multiview_tile_preload")||!m.videoData.BB)}; sWl=function(m){var V=m.videoData;eZo(m,m.Tp).then(void 0,function(O){m.videoData!==V||V.UH()||(O=JM(O),O.errorCode==="auth"&&m.videoData.errorDetail&&m.videoData.errorDetail!=="7"?m.x5(O.errorCode,2,unescape(m.videoData.errorReason),yK(O.details),m.videoData.errorDetail,m.videoData.dQ||void 0):m.handleError(O))})}; ihC=function(m){if(!g.l(m.playerState,128))if(m.videoData.isLoaded(),m.DX=g.j5(m.videoData.Sm),g.u2(m.videoData)){m.vD.tick("bpd_s");Bf(m).then(function(){m.vD.tick("bpd_c");if(!m.UH()){m.IW&&(m.Aq(Hm(Hm(m.playerState,512),1)),ln(m));var h=m.videoData;h.endSeconds&&h.endSeconds>h.startSeconds&&pl(m,h.endSeconds);m.It.finished=!0;QU(m,"dataloaded");m.zD.TP()&&Fhm(m);sKI(m.Dd,m.A6)}}); m.Y("html5_log_media_perf_info")&&m.uH("loudness",{v:m.videoData.B9.toFixed(3)},!0);var V,O=(V=m.mediaElement)==null?void 0:V.Ir();if(O&&"disablePictureInPicture"in O&&m.W.T9)try{O.disablePictureInPicture=m.W.r4&&!m.videoData.backgroundable}catch(h){g.cj(h)}aw0(m);m.vS=new H1(m.videoData)}else QU(m,"dataloaded")}; Bf=function(m){vf(m);m.A6=null;var V=Zwl(m.W,m.videoData,m.rH());m.Ha=V;m.Ha.then(function(O){GCU(m,O)},function(O){m.UH()||(O=JM(O),m.visibility.isBackground()?(Pf(m,"vp_none_avail"),m.Ha=null,m.It.reset()):(m.It.finished=!0,m.x5(O.errorCode,O.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",yK(O.details))))}); return V}; GCU=function(m,V){if(!m.UH()&&!V.videoData.UH()){m.A6=V;wLG(m.K4,m.A6);if(m.videoData.isLivePlayback){var O=pL$(m.kf.P8,m.videoData.videoId)||m.loader&&!isNaN(m.loader.v6);O=m.Y("html5_onesie_live")&&O;nl(m)||m.videoData.Mf>0&&!ku(m.videoData)||O||m.seekTo(m.n4(),{Jq:"videoplayer_playbackData",seekSource:18})}if(m.videoData.D.Z){if(bL0(m.videoData)){m.x5("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",yK({missabrurl:1}));return}m.loader?g.cj(Error("Duplicated Loader")):(O=g.m9(m.W.experiments,"html5_onesie_defer_content_loader_ms"))&& m.Fl()&&pL$(m.kf.P8,m.videoData.eO)?g.t6(function(){m.UH()||m.loader||BAG(m)},O):BAG(m)}else!m.videoData.D.Z&&wm(m.videoData)&&m.f2(new ZO(m.videoData.videoId||"",4)); m.rC();nj1(V).then(function(){var h={};m.Rz(h);m.W.tj()&&m.Y("html5_log_media_perf_info")&&m.uH("av1Info",h);FW(m)})}}; Fhm=function(m){m.UH();if(!m.zD.finished&&m.It.finished&&!g.l(m.playerState,128)&&!m.DX.length){if(!m.mV.started){var V=m.mV;V.started=!0;V.sync()}if(!m.m1()){if(m.loader){if(m.wu().Z.lH(gA)){V=m.loader;var O=!0;O=O===void 0?!1:O;V=Math.min(J3(V.audioTrack,O),J3(V.videoTrack,O))>0}else V=m.loader.timing,V=!!V.L&&!!V.D;m.Ds=V}m.zD.finished||(m.zD.finished=!0);V=m.Y("html5_onesie_live")&&m.loader&&!isNaN(m.loader.v6);!m.videoData.isLivePlayback||m.videoData.Mf>0&&!ku(m.videoData)||V||nl(m)||(m.seekTo(Infinity, {Jq:"videoplayer_readying",seekSource:18}),m.isBackground()&&(m.IM=!0));V=m.Jj;if(V.qoe){V=V.qoe;var h=V.provider.videoData;O=V.provider.W;for(var w=g.D(O.TD),y=w.next();!y.done;y=w.next())Zg(V,y.value);if(V.provider.Y("html5_enable_qoe_cat_list"))for(w=g.D(h.Jc),y=w.next();!y.done;y=w.next())Zg(V,y.value);else h.TD&&Zg(V,V.provider.videoData.TD);h.yp()&&(w=h.Z,ku(h)&&Zg(V,"manifestless"),w&&vt(w)&&Zg(V,"live-segment-"+vt(w).toFixed(1)));SC(h)?Zg(V,"sabr"):V.w$(cC(h));if(Oc(h)||h.Z4())h.Z4()&&Zg(V, "ssa"),Zg(V,"lifa");Kd(h)&&Zg(V,"cdm");h.gatewayExperimentGroup&&(w=h.gatewayExperimentGroup,w==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?w="spkadtrt":w==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(w="spkadctrl"),Zg(V,w));O.Zu!=="yt"&&V.Z.set("len",[h.lengthSeconds.toFixed(2)]);h.cotn&&!wm(h)&&V.wh(!0);O.tj()&&(h=AFX())&&V.uH("cblt",{m:h});if(O.Y("html5_log_screen_diagonal")){O=V.uH;var L;h=((L=window.H5vccScreen)==null?0:L.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;O.call(V,"cbltdiag", {v:h})}}m.publish("playbackready");DY("pl_c",m.vD.timerName)||(m.vD.tick("pl_c"),bP("pl_c",void 0,"video_to_ad"));DY("pbr",m.vD.timerName)||(m.vD.tick("pbr"),bP("pbr",void 0,"video_to_ad"))}}}; pl=function(m,V){m.TE&&lwX(m);m.TE=new g.a2(V*1E3,0x7ffffffffffff);m.TE.namespace="endcr";m.addCueRange(m.TE)}; lwX=function(m){m.removeCueRange(m.TE);m.TE=null}; QW5=function(m,V,O,h,w){var y=m.Jj,L=m.videoData;L.L=O;var C=g.mU(m);O=new T93(L,O,V,C?C.itag:"",h);m.W.experiments.w0("html5_refactor_sabr_video_format_selection_logging")?(O.videoId=w,m.R2=O):y.qoe&&kca(y.qoe,O);w=m.Dd;w.L=0;w.Z=0;m.publish("internalvideoformatchange",L,V==="m")}; g.mU=function(m){var V=VB(m);return Z7(V)||!m.A6?null:g.p5(m.A6.Z.videoInfos,function(O){return V.T(O)})}; VB=function(m){if(m.A6){var V=m.Dd;var O=m.A6;m=m.oH();var h=Y6U(V);if(Z7(h)){if(h=V.rW(O).compose(DLl(V,O)).compose(b8l(V,O)).compose(zW1(V,O.videoData)).compose(Z81(V,O.videoData,O)).compose(u8l(V,O)).compose(rm5(V,O)),Z7(m)||V.Y("html5_apply_pbr_cap_for_drm"))h=h.compose(cml(V,O))}else V.Y("html5_perf_cap_override_sticky")&&(h=h.compose(u8l(V,O))),V.Y("html5_ustreamer_cap_override_sticky")&&(h=h.compose(cml(V,O)));h=h.compose(rm5(V,O));V=O.videoData.nR.compose(h).compose(O.videoData.Qz).compose(m)}else V= j2;return V}; guC=function(m){var V=m.Dd;m=m.videoData;var O=zW1(V,m);V.Y("html5_disable_client_autonav_cap_for_onesie")||O.compose(Z81(V,m));return O}; FW=function(m){if(m.videoData.D&&m.videoData.D.Z){var V=VB(m);if(m.loader&&(m=m.loader,!m.UH()))if(m.policy.Z){var O=m.K;if(V.isLocked()&&O.Z.L||O.L===void 0||!V.equals(O.L)){O=m.K.L;Ds$(m.K,V);var h,w;if(w=V.isLocked()&&V.reason==="m"){w=m.K;var y=(h=w.T)==null?void 0:h.info.video.qualityOrdinal;w=w.v6?!0:w.T?V.Z!==y?!0:!w.Z.L||w.Ze.PP&&w.Z.Z===w.T.info.itag?!1:!0:!1}h=w;w=m.policy.Rn&&V.reason==="l";O=O.Z>V.Z&&V.reason==="b";h||w||O?(m.RY.wQ({reattachOnConstraint:h?"u":w?"drm":"perf",lo:V.L,up:V.Z}), m.policy.PP||(m.K.Z.L=!1)):(m.policy.PP&&(m.K.Z.L=!1),Up(m))}}else!L$U(m.Z,V)&&m.videoTrack&&(w=m.Z.Z,pza(m,JvX(m.Z,V)),zvU(m),O=V.isLocked()&&V.reason==="m"&&m.Z.Ae,h=m.policy.Rn&&V.reason==="l"&&fh(m.videoTrack),V=w.Z>V.Z&&V.reason==="b",w=m.Z.Xr&&!CS(),O||h||V||w?m.RY.wQ({reattachOnConstraint:O?"u":h?"drm":w?"codec":"perf"}):Up(m))}}; v3I=function(m){var V;return!!(m.Y("html5_native_audio_track_switching")&&g.AJ&&((V=m.videoData.L)==null?0:ac(V)))}; PUI=function(m){if(!v3I(m))return!1;var V;m=(V=m.mediaElement)==null?void 0:V.audioTracks();return!!(m&&m.length>1)}; OE7=function(m){var V=mF7(m);if(V){var O=VSa[V]||V;return m.videoData.getAvailableAudioTracks().find(function(h){return h.fP.getName()===O})}}; hLX=function(m){var V,O=(V=m.mediaElement)==null?void 0:V.audioTracks();if(O){V=[];for(var h=0;h0&&(V.IF=O.W7));V.Rn=O.qk;V.Yl=LO(h,{},O.D||void 0,tq(O));V.nA=dU(O)&&(g.Sm(h)||g.Ms(h));SC(O)&&(V.K=!0,V.O0=h.Y("html5_estimate_live_partial_slice_duration"),g.g2(h)&&!g.Qf()&&h.Y("html5_force_audio_to_cover_video_keyframe")? V.LP=!1:V.LP=!0,V.Zb||O.isLivePlayback||!h.Y("html5_sabr_non_streaming_xhr_vod_client_request_cancellation")||(V.T9=!0,V.Za=g.m9(h.experiments,"html5_sabr_non_streaming_xhr_vod_request_cancellation_timeout_ms")),h.Y("html5_sabr_report_partial_segment_estimated_duration")&&(V.cY=!0),V.Z=!0,V.v0=h.Y("html5_trigger_loader_when_idle_network"),V.nK=h.Y("html5_sabr_parse_live_metadata_playback_boundaries"),V.cC=h.Y("html5_consume_onesie_next_request_policy_for_sabr"),V.Vy=h.Y("html5_sabr_report_next_ad_break_time"), V.Ev=h.Y("html5_log_high_res_buffer_timeline")&&h.tj(),V.HS=h.Y("html5_remove_stuck_slices_beyond_max_buffer_limits"),V.z9=h.Y("html5_gapless_sabr_btl_last_slice")&&Uf(O),V.Nv=h.Y("html5_reset_last_appended_slice_on_seek")&&Uf(O),ku(O)?(V.d9=!0,V.Z2=h.Y("html5_disable_variability_tracker_for_live"),V.CA=!0,h.Y("html5_simplified_backup_timeout_sabr_live")&&(V.nf=!0,V.VV=V.qR)):V.ma=h.Y("html5_probe_request_on_sabr_request_progress"),V.Qz=h.Y("html5_serve_start_seconds_seek_for_post_live_sabr"),V.Y5= h.Y("html5_flush_index_on_updated_timestamp_offset"),V.Zu=SC(O),V.Oi=h.Y("html5_ignore_partial_segment_from_live_readahead"),h.Y("html5_include_partial_segment_for_jumbo_ll")&&rU(O)&&(V.Oi=!1),V.yT=h.Y("html5_use_non_active_broadcast_for_post_live"),V.H6=h.Y("html5_use_centralized_player_time"),V.CP=h.Y("html5_log_centralized_player_time"),V.H0=h.Y("html5_use_loader_check_duration"),V.on=h.Y("html5_consume_onesie_sabr_seek"),V.mS=h.Y("html5_enable_sabr_seek_loader_refactor"),O.enableServerStitchedDai&& (V.L=!0,V.Ro=h.Y("html5_reset_server_stitch_state_for_non_sabr_seek"),V.cS=h.Y("html5_remove_ssdai_append_pause")&&!O.Z4(),V.wB=h.Y("html5_ssdai_log_ssevt_in_loader_timers")),V.aQ=h.tj(),V.latencyClass=O.latencyClass,V.le=O.yp()&&h.Y("html5_prebuffer_instream_media_live")&&h.Y("html5_report_prefetch_requests"),V.Rm=!O.yp()&&h.Y("html5_prebuffer_instream_media_vod")&&h.Y("html5_report_prefetch_requests"),V.FC=h.Y("html5_disable_prebuffer_for_limited_memory_devices"));V.l2=g.DwG(O);V9(h.K,OF.BITRATE)&& (V.Rr=NaN);if(C=g.m9(h.experiments,"html5_request_size_max_kb"))V.Je=C*1024;h.K.L?V.Ui="; "+OF.EXPERIMENTAL.name+"=allowed":h.Y("html5_enable_cobalt_tunnel_mode")&&g.Qf()&&(h=OF.TUNNELMODE,V.Ui="; "+h.name+"="+h.valid);O=O.serverPlaybackStartConfig;(O==null?0:O.enable)&&(O==null?0:O.playbackStartPolicy)&&(V.zf=!0,dA(V,O.playbackStartPolicy,2));O=yuI(m);m.IV.removeAll();a:{h=m.kf.P8;if(C=m.videoData.videoId)if(w=h.Z.get(C)){h.Z.remove(C);h=w;break a}h=void 0}m.loader=new n8U(m,m.Tp,V,m.videoData.Z, m.videoData.D,VB(m),O,m.videoData.enableServerStitchedDai,h,m.videoData.Qt);V=m.videoData.Y("html5_disable_preload_for_ssdai_with_preroll")&&m.videoData.isLivePlayback&&m.Fl()?!0:m.IW&&Zho(m);m.loader.initialize(m.getCurrentTime(),VB(m),V);m.videoData.probeUrl&&(m.loader.CA=m.videoData.probeUrl);if(m.DX.length||m.IW)m.videoData.cotn||O$(m,!1);jW0(m.K4,m.loader);m.HD&&(JjU(m.loader,m.HD),m.uH("sdai",{sdl:1}));g.JF(m.videoData)&&(m=m.loader,m.policy.kh=m.policy.Jz)}; aJ=function(m,V){V=V===void 0?!0:V;m.W.FC&&!m.videoData.backgroundable&&m.mediaElement&&!m.rH()&&(m.isBackground()&&m.mediaElement.wj()?(m.uH("bgmobile",{suspend:1}),m.RS(!0,!0)):!m.isBackground()&&V&&ln(m)&&m.uH("bgmobile",{resume:1}))}; vf=function(m){m.loader&&(m.loader.dispose(),m.loader=null,jW0(m.K4,null));m.Ug()?Jup(m):m.Uo()}; Jup=function(m){if(m.P6)if(m.U2(),m.P6.N)try{m.W.tj()&&m.uH("rms",{l:"vprms",sr:m.Ug(),rs:oT(m.P6),pn:m.Mr()});m.P6.clear();var V;(V=m.mediaElement)==null||V.Lv(m.P6);m.P6=null}catch(O){V=new g.no("Error while clearing Media Source in VideoPlayer: "+O.name+", "+O.message),V=JM(V),m.handleError(V),m.Uo()}else m.Uo()}; C43=function(m,V){if(m.P6)return m.P6.D;a:{V=V===void 0?!1:V;V=V===void 0?!1:V;try{g.Qf()&&m.videoData.GC()&&m.mediaElement.ZZ();var O=m.mediaElement.E8(m.sQ(),m.hH())}catch(w){if(ULU(m.QG,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",w);m.x5("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}m.e0(O,!1,!1,V)}var h;return((h=m.E8())==null?void 0:h.D)||null}; EGC=function(m,V){V=V===void 0?!1:V;if(m.loader){m.videoData.enableServerStitchedDai&&xo0(m.loader);var O=m.getCurrentTime()-m.OU();m.loader.seek(O,{GP:V}).dI(function(){})}else BAG(m)}; qpC=function(m,V){if(m.P6){m.P6.qb(V);var O;(O=m.loader)!=null&&O.policy.H6&&(O.J=V)}}; GcC=function(m,V){QW5(m,V.reason,V.Z.info,V.token,V.videoId)}; QU=function(m,V){m.publish("internalvideodatachange",V===void 0?"dataupdated":V,m.videoData)}; MS5=function(m){for(var V=g.D("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),O=V.next();!O.done;O=V.next())m.zm.C(m.mediaElement,O.value,m.e6,m);m.W.Sh&&m.mediaElement.nE()&&(m.zm.C(m.mediaElement,"webkitplaybacktargetavailabilitychanged",m.TYe,m),m.zm.C(m.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",m.i4z,m))}; xFp=function(m){g.XM(m.zL);fgX(m)||(m.zL=g.KJ(function(){return fgX(m)},100))}; fgX=function(m){var V=m.mediaElement;V&&m.k0&&!m.videoData.V&&!DY("vfp",m.vD.timerName)&&V.f_()>=2&&!V.isEnded()&&hT(V.EZ())&&m.vD.tick("vfp");return(V=m.mediaElement)&&!m.videoData.V&&V.getDuration()>0&&(V.isPaused()&&V.f_()>=2&&hT(V.EZ())&&(DY("pbp",m.vD.timerName)||m.vD.tick("pbp"),!m.videoData.nf||m.nz||V.isSeeking()||(m.nz=!0,m.publish("onPlaybackPauseAtStart"))),V=V.getCurrentTime(),Wf(m.yz,V))?(m.nF(),!0):!1}; oG3=function(m){m.Jj.onProgress();if(T_(m.videoData)&&Date.now()>m.bk+6283){if(m.Y("html5_unified_live_latency_reporting")){var V=m.Jj;V.qoe&&t3C(V.qoe)}else!m.isAtLiveHead()||m.videoData.Z&&Bt(m.videoData.Z)||(V=m.Jj,V.qoe&&t3C(V.qoe));V=g.R2(m.W);var O=m.Y("html5_always_log_rawlat");(V||O)&&m.uH("rawlat",{l:z4(m.xU,"rawlivelatency").toFixed(3)});m.bk=Date.now()}m.videoData.L&&ac(m.videoData.L)&&(V=m.nQ())&&V.videoHeight!==m.sf&&(m.sf=V.videoHeight,QW5(m,"a",RLo(m,m.videoData.iH)))}; RLo=function(m,V){if(V.Z.video.quality==="auto"&&ac(V.getInfo())&&m.videoData.nA)for(var O=g.D(m.videoData.nA),h=O.next();!h.done;h=O.next())if(h=h.value,h.getHeight()===m.sf&&h.Z.video.quality!=="auto")return h.getInfo();return V.getInfo()}; uxC=function(m){if(!T_(m.videoData))return NaN;var V=0;m.loader&&m.videoData.Z&&(V=ku(m.videoData)?m.loader.MN.Og()||0:m.videoData.Z.iH);return(0,g.TN)()/1E3-m.K6()-V}; Au0=function(m){m.mediaElement&&m.mediaElement.rH()&&(m.hP=(0,g.TN)());m.W.aQ?g.t6(function(){gG7(m)},0):gG7(m)}; gG7=function(m){var V;if((V=m.P6)==null||!V.Lw()){if(m.mediaElement)try{m.Ih=m.mediaElement.playVideo()}catch(h){Pf(m,"err."+h)}if(m.Ih){var O=m.Ih;O.then(void 0,function(h){if(!(g.l(m.playerState,4)||g.l(m.playerState,256)||m.Ih!==O||h&&h.name==="AbortError"&&h.message&&h.message.includes("load"))){var w="promise";h&&h.name&&(w+=";m."+h.name);Pf(m,w);m.aO=!0;m.videoData.nP=!0}})}}}; Pf=function(m,V){g.l(m.playerState,128)||(m.Aq($_(m.playerState,1028,9)),m.uH("dompaused",{r:V}),m.publish("onAutoplayBlocked"))}; ln=function(m,V){V=V===void 0?!1:V;if(!m.mediaElement||!m.videoData.D)return!1;var O=V;O=O===void 0?!1:O;var h=null;var w;if((w=m.videoData.D)==null?0:w.Z){h=C43(m,O);var y;(y=m.loader)==null||y.resume()}else vf(m),m.videoData.iH&&(h=m.videoData.iH.B0());w=m.mediaElement.wj();O=!1;w&&w.equals(h)||(UFa(m,h),O=!0);g.l(m.playerState,2)||(h=m.K4,V=V===void 0?!1:V,h.K||!(h.D>0)||h.mediaElement&&h.mediaElement.getCurrentTime()>0||(V={Jq:"seektimeline_resumeTime",GP:V},h.videoData.V||(V.seekSource=15),h.seekTo(h.D, V)));a:{V=O;if(SC(m.videoData)){if(!m.videoData.gH())break a}else if(!g.nd(m.videoData))break a;if(m.mediaElement)if((h=m.videoData.K)&&m.mediaElement.nE()){w=m.mediaElement.Ir();if(m.C6)if(w!==m.C6.element)hw(m);else if(V&&h.flavor==="fairplay"&&!v7())hw(m);else break a;if(m.Y("html5_report_error_for_unsupported_tvos_widevine")&&v7()&&h.flavor==="widevine")m.x5("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{m.C6=new mLU(w,m.videoData,m.W,m.mediaElement);m.C6.subscribe("licenseerror", m.w_,m);m.C6.subscribe("qualitychange",m.dCY,m);m.C6.subscribe("heartbeatparams",m.aT,m);m.C6.subscribe("keystatuseschange",m.Ix,m);m.C6.subscribe("ctmp",m.uH,m);V=g.D(m.IV.keys);for(h=V.next();!h.done;h=V.next())h=m.IV.get(h.value),m.C6.bl(h);m.Y("html5_eme_loader_sync")||m.IV.removeAll()}}else m.x5("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return O}; UFa=function(m,V){m.vD.tick("vta");bP("vta",void 0,"video_to_ad");m.getCurrentTime()>0&&CUU(m.K4,m.getCurrentTime());m.mediaElement.activate(V);m.P6&&w1(4);!m.videoData.V&&m.playerState.isOrWillBePlaying()&&m.AU.start();if(v3I(m)){var O;if(V=(O=m.mediaElement)==null?void 0:O.audioTracks())V.onaddtrack=function(){hLX(m)},V.onremovetrack=function(){hLX(m)},V.onchange=function(){m.publish("internalaudioformatchange",m.videoData,!0)}}}; hw=function(m){m.C6&&(m.C6.dispose(),m.C6=null)}; dF$=function(m){var V=V===void 0?!1:V;m.mediaElement&&(m.P6?(hw(m),m.Uo(),C43(m,V)):(m.videoData.iH&&m.videoData.iH.ib(),m.mediaElement.stopVideo()),m.playVideo())}; tSU=function(m,V){m.W.Y("html5_log_rebuffer_reason")&&(V={r:V,lact:UL()},m.mediaElement&&(V.bh=m.mediaElement.Iz()),m.uH("bufreason",V))}; Kb3=function(m,V){if(m.W.tj()&&m.mediaElement){var O=m.mediaElement.xD();O.omt=(m.mediaElement.getCurrentTime()+m.OU()).toFixed(3);O.ps=m.playerState.state.toString(16);O.rt=(g.IF(m.Jj.provider)*1E3).toFixed();O.e=V;m.TL[m.S6++%5]=O}}; Wb5=function(m){if(m.W.tj()){m.TL.sort(function(h,w){return+h.rt-+w.rt}); for(var V=g.D(m.TL),O=V.next();!O.done;O=V.next())O=O.value,m.uH("vpe",Object.assign({t:O.rt},O));m.TL=[];m.S6=0}}; X27=function(m){if(g.B7("cobalt")&&g.B7("nintendo switch")){var V=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;m.uH("nxdock",{d:V})}}; O$=function(m,V){var O;(O=m.loader)==null||Zs7(O,V)}; aw0=function(m){Ec(m.videoData,"html5_set_debugging_opt_in")&&(m=g.a$(),m.lH(183)||(Gv(183,!0),m.save()))}; HE$=function(m){return m.Y("html5_remove_ios_7_hack_force_play")}; Ocl=function(m,V){m.kf.DM()||(m.uH("sgap",{f:V}),m.kf.clearQueue(!1,V==="pe"))}; nl=function(m){return m.Y("html5_disable_video_player_initiated_seeks")&&SC(m.videoData)}; TT7=function(m){Jj.call(this,m);var V=this;this.events=new g.Rc(m);g.a(this,this.events);gm(this.api,"isLifaAdPlaying",function(){return V.api.isLifaAdPlaying()}); this.events.C(m,"serverstitchedvideochange",function(){var O;(O=V.api.getVideoData())!=null&&O.Z4()&&(V.api.isLifaAdPlaying()?(V.playbackRate=V.api.getPlaybackRate(),V.api.setPlaybackRate(1)):V.api.setPlaybackRate(V.playbackRate))}); this.playbackRate=1}; wh=function(m){RE.call(this,"Loop",g.Kc.Xy);this.U=m;var V=m.Y("delhi_modern_web_player_icons")?{G:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{d:"M17.29 1.29C17.11 1.46 17.01 1.70 17.00 1.94C16.98 2.19 17.06 2.43 17.22 2.63L17.29 2.70L18.58 4H7C5.67 4 4.40 4.52 3.46 5.46C2.52 6.40 2 7.67 2 9V13C2 13.26 2.10 13.51 2.29 13.70C2.48 13.89 2.73 14 3 14C3.26 14 3.51 13.89 3.70 13.70C3.89 13.51 4 13.26 4 13V9C4 8.20 4.31 7.44 4.87 6.87C5.44 6.31 6.20 6 7 6H18.58L17.29 7.29C17.11 7.48 17.01 7.73 17.01 7.99C17.01 8.25 17.11 8.50 17.30 8.69C17.49 8.88 17.74 8.98 18.00 8.98C18.26 8.98 18.51 8.88 18.70 8.70L22.41 5L18.70 1.29L18.63 1.22C18.43 1.06 18.19 .98 17.94 1.00C17.70 1.01 17.46 1.11 17.29 1.29ZM21 10C20.73 10 20.48 10.10 20.29 10.29C20.10 10.48 20 10.73 20 11V15C20 15.79 19.68 16.55 19.12 17.12C18.55 17.68 17.79 18 17 18H5.41L6.70 16.70C6.80 16.61 6.87 16.50 6.93 16.38C6.98 16.26 7.01 16.12 7.01 15.99C7.01 15.86 6.98 15.73 6.93 15.60C6.88 15.48 6.81 15.37 6.71 15.28C6.62 15.18 6.51 15.11 6.39 15.06C6.26 15.01 6.13 14.98 6.00 14.98C5.87 14.98 5.73 15.01 5.61 15.06C5.49 15.12 5.38 15.19 5.29 15.29L1.58 19L5.29 22.70L5.36 22.77C5.56 22.92 5.80 23.00 6.04 22.99C6.29 22.98 6.52 22.87 6.70 22.70C6.87 22.52 6.98 22.29 6.99 22.04C7.00 21.80 6.92 21.56 6.77 21.36L6.70 21.29L5.41 20H17C18.32 20 19.59 19.47 20.53 18.53C21.47 17.59 22 16.32 22 15V11C22 10.73 21.89 10.48 21.70 10.29C21.51 10.10 21.26 10 21 10Z", fill:"white"}}]}:Eko();this.setIcon(V);this.subscribe("select",this.L,this);m.createClientVe(this.element,this,28661);this.C(m,"settingsMenuVisibilityChanged",this.Z);this.listen("click",this.logClick);this.C(m,"onLoopChange",this.onLoopChange);oE(this,m.getLoopVideo());m.tZ().SU(this)}; $FU=function(m){Jj.call(this,m);var V=this;m.addEventListener("settingsMenuInitialized",function(){V.menuItem||(V.menuItem=new wh(V.api),g.a(V,V.menuItem))}); m.addEventListener("videodatachange",function(O,h){O=V.api.getPresentingPlayerType()===2;var w;(w=V.menuItem)==null||w.eU(!h.isLivePlayback&&!O)})}; Yp3=function(m){Jj.call(this,m);var V=this;this.events=new g.Rc(m);g.a(this,this.events);gm(this.api,"seekToChapterWithAnimation",function(O){V.seekToChapterWithAnimation(O)}); gm(this.api,"seekToTimeWithAnimation",function(O,h){V.seekToTimeWithAnimation(O,h)}); gm(this.api,"renderChapterSeekingAnimation",function(O,h,w){V.api.renderChapterSeekingAnimation(O,h,w)}); gm(this.api,"setMacroMarkers",function(O){V.setMacroMarkers(m,O)}); gm(this.api,"changeMarkerVisibility",function(O,h,w){V.changeMarkerVisibility(O,h,w)}); gm(this.api,"isSameMarkerTypeVisible",function(O){return V.isSameMarkerTypeVisible(O)})}; ksm=function(m,V,O){var h=m.api.getCurrentTime()*1E30;)switch(V=Ed.shift(),V.type){case "ERROR":C3.Mz(V.payload);break;case "EVENT":C3.logEvent(V.eventType,V.payload)}}); gm(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));gm(this.api,"updateDownloadState",this.updateDownloadState.bind(this));gm(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));gm(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));gm(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));gm(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));gm(this.api,"setUpPositionSyncInterval",this.setUpPositionSyncInterval.bind(this))}; sF5=function(m){Jj.call(this,m);var V=this;this.loaded=!1;this.overlay=null;this.events=new g.Rc(m);g.a(this,this.events);this.Z=new g.Rc(m);g.a(this,this.Z);this.events.C(m,"modulesCreated",function(){V.oI()&&V.load()}); this.events.C(m,"modulesDestroyed",function(O){var h=!0;switch(O){case 2:case 3:h=!1;break;case 4:h=V.api.getPresentingPlayerType()===1}h&&V.unload()})}; Cf=function(m){Jj.call(this,m);var V=this;gm(m,"getAvailableQualityData",function(){return V.getAvailableQualityData()}); gm(m,"getAvailableQualityDataAndMessaging",function(){return V.getAvailableQualityDataAndMessaging()})}; Fbl=function(m,V,O){var h=[],w=V?156595:151874;m=g.D(m);for(var y=m.next();!y.done;y=m.next()){var L=y.value;y=L.video;L={formatId:L.id,qualityLabel:y.qualityLabel,quality:y.quality,isPlayable:V};if(y=O.get(y.qualityLabel))L.paygatedQualityDetails={paygatedIndicatorText:y.paygatedIndicatorText,endpoint:y.endpoint,veType:w,trackingParams:y.trackingParams};h.push(L)}return h}; agU=function(m){for(var V=0,O=0;O0&&w>0&&(O.width+=w,g.wb(V.element,"width",O.width+"px")));m.size=O}}; g.tw=function(m,V){var O=m.Z[m.Z.length-1];O!==V&&(m.Z.push(V),Cnm(m,O,V))}; g.Kf=function(m){if(!(m.Z.length<=1)){var V=m.Z.pop(),O=m.Z[0];m.Z=[O];Cnm(m,V,O,!0)}}; Cnm=function(m,V,O,h){EPC(m);V&&(V.unsubscribe("size-change",m.dj,m),V.unsubscribe("back",m.IK,m));O.subscribe("size-change",m.dj,m);O.subscribe("back",m.IK,m);if(m.cD){g.EM(O.element,h?"ytp-panel-animate-back":"ytp-panel-animate-forward");O.g0(m.content);O.focus();m.element.scrollLeft=0;m.element.scrollTop=0;var w=m.size;Jbp(m);g.Rr(m.element,w);m.D=new g.mq(function(){qr3(m,V,O,h)},20,m); m.D.start()}else O.g0(m.content),V&&V.detach()}; qr3=function(m,V,O,h){m.D.dispose();m.D=null;g.EM(m.element,"ytp-popup-animating");h?(g.EM(V.element,"ytp-panel-animate-forward"),g.Ma(O.element,"ytp-panel-animate-back")):(g.EM(V.element,"ytp-panel-animate-back"),g.Ma(O.element,"ytp-panel-animate-forward"));g.Rr(m.element,m.size);m.T=new g.mq(function(){g.Ma(m.element,"ytp-popup-animating");V.detach();g.fY(V.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);m.T.dispose();m.T=null},250,m); m.T.start()}; EPC=function(m){m.D&&g.OM(m.D);m.T&&g.OM(m.T)}; Ww=function(m){g.dh.call(this,m,"ytp-shopping-product-menu");this.We=new g.Aw(this.U);g.a(this,this.We);this.hide();g.tw(this,this.We);g.ib(this.U,this.element,4)}; fxa=function(m,V,O){var h,w=V==null?void 0:(h=V.text)==null?void 0:h.simpleText;w&&(O=Mla(m,O,w,V==null?void 0:V.icon,V==null?void 0:V.secondaryIcon),V.navigationEndpoint&&O.listen("click",function(){m.U.bH("innertubeCommand",V.navigationEndpoint);m.hide()},m))}; xt5=function(m,V,O){var h,w=V==null?void 0:(h=V.text)==null?void 0:h.simpleText;w&&Mla(m,O,w,V==null?void 0:V.icon).listen("click",function(){var y;(V==null?void 0:(y=V.icon)==null?void 0:y.iconType)==="HIDE"?m.U.publish("featuredproductdismissed"):V.serviceEndpoint&&m.U.bH("innertubeCommand",V.serviceEndpoint);m.hide()},m)}; Mla=function(m,V,O,h,w){V=new g.wd(g.yF({},[],!1,!!w),V,O);w&&V.updateValue("secondaryIcon",RHI(w));V.setIcon(RHI(h));g.a(m,V);m.We.SU(V,!0);return V}; RHI=function(m){if(!m)return null;switch(m.iconType){case "ACCOUNT_CIRCLE":return{G:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{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{G:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{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 dN();case "HIDE":return{G:"svg",B:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"g",S:[{G:"path",B:{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 Xu()}}; XD=function(m){oL.call(this,m,!1,!0);this.isCounterfactual=this.D=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.J=!0;this.overflowButton=new g.p({G:"button",KA:["ytp-featured-product-overflow-icon","ytp-button"],B:{"aria-haspopup":"true"}});this.overflowButton.hide();g.a(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.p({G:"img",X:"ytp-suggested-action-badge-img",B:{src:"{{url}}"}}); this.thumbnailImage.hide();g.a(this,this.thumbnailImage);this.thumbnailIcon=new g.p({G:"div",X:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.a(this,this.thumbnailIcon);this.banner=new g.p({G:"a",X:"ytp-suggested-action-container",S:[this.thumbnailImage,this.thumbnailIcon,{G:"div",X:"ytp-suggested-action-details",S:[{G:"text",X:"ytp-suggested-action-title",c6:"{{title}}"},{G:"text",X:"ytp-suggested-action-subtitle",c6:"{{subtitle}}"},{G:"text",X:"ytp-suggested-action-metadata-text", c6:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.a(this,this.banner);this.banner.g0(this.T.element);this.C(this.U,"videodatachange",this.onVideoDataChange);this.C(this.U,g.Gu("suggested_action_view_model"),this.Vbr);this.C(this.U,g.pR("suggested_action_view_model"),this.SI6);this.C(this.overflowButton.element,"click",this.DK);this.C(m,"featuredproductdismissed",this.sX);this.U.createServerVe(this.banner.element,this.banner,!0)}; oP$=function(m){m.isInitialized&&(m.enabled=m.isVisible,m.Ae=m.isVisible,RL(m),m.LU(),m.thumbnailImage.eU(m.isVisible),m.shouldHideDismissButton||m.dismissButton.eU(m.isVisible),m.shouldShowOverflowButton&&m.overflowButton.eU(m.isVisible))}; Hw=function(){XD.apply(this,arguments)}; gPp=function(m){Jj.call(this,m);this.Z=new Hw(this.api);g.a(this,this.Z);g.ib(this.api,this.Z.element,4)}; TL=function(m){Jj.call(this,m);var V=this;this.Z=!0;var O=new g.Rc(m);g.a(this,O);O.C(m,"internalaudioformatchange",function(h,w){Ab0(V,h,w)}); O.C(m,"annotationvisibility",function(h){V.api.Y("web_fix_annotations")&&Ut5(V,(294).toString(),{boolValue:h})}); O.C(m,"videoplayerreset",function(){dt1(V)}); O.C(m,"videodatachange",function(h,w){V.onVideoDataChange(h,w)})}; Ab0=function(m,V,O){if(O){var h="";tl1(m,V)&&(h=V,m.api.j().CA=V);if(h&&K_U(m,h)){xU$(m.api,h);var w;hr(dK(m.api.j(),(w=m.api.getVideoData())==null?void 0:g.Vj(w)),function(y){var L=h;W_C(y)!==L&&Ut5(m,Xf0(y),{stringValue:L})})}}}; dt1=function(m){var V;if((V=NU())==null?0:V.size){var O;hr(dK(m.api.j(),(O=m.api.getVideoData())==null?void 0:g.Vj(O)),function(h){(h=W_C(h))&&K_U(m,h)&&(m.api.j().CA=h)})}}; TQ5=function(m,V){wC(hr(hr(m.uN(),function(O){return QSp(O,[Xf0(V)])}),function(O){if(O){O=g.D(O); for(var h=O.next();!h.done;h=O.next()){var w=h.value;h=w.key;w=w.value;h&&w&&(HlC([{settingItemId:h,settingOptionValue:w}]),dt1(m))}}}),function(){m.Z=!0})}; tl1=function(m,V){m=m.api.getAvailableAudioTracks();m=g.D(m);for(var O=m.next();!O.done;O=m.next())if(O=O.value,O.getLanguageInfo().getId()===V)return O;return null}; W_C=function(m){m=Xf0(m);var V=NU();m=V?V.get(m):void 0;return m&&m.stringValue?m.stringValue:""}; Xf0=function(m){var V=(484).toString();m&&(V=(483).toString());return V}; K_U=function(m,V){var O;return V.split(".")[0]!==""&&((O=m.api.getVideoData())==null?void 0:!hF(O))}; Ut5=function(m,V,O){HlC([{settingItemId:V,settingOptionValue:O}]);hr(m.uN(),function(h){PuC(h,V,O)})}; HlC=function(m){var V=NU();V||(V=new Map);m=g.D(m);for(var O=m.next();!O.done;O=m.next())O=O.value,V.set(O.settingItemId,O.settingOptionValue);V=JSON.stringify(Object.fromEntries(V));g.I$("yt-player-user-settings",V,2592E3)}; $t5=function(){this.label="Dublagem autom\u00e1tica"}; g.$D=function(m,V,O,h,w,y,L){g.wd.call(this,g.yF({"aria-haspopup":"true"}),V,m);this.Qp=h;this.V=!1;this.D=null;this.options={};this.PB=new g.Aw(O,void 0,m,w,y,L);g.a(this,this.PB);this.listen("keydown",this.sJ);this.listen("click",this.open)}; Yr7=function(m){if(m.D){var V=m.options[m.D];V.element.getAttribute("aria-checked");V.element.setAttribute("aria-checked","false");m.D=null}}; k4U=function(m,V){g.U$(m.PB);for(var O={},h=!1,w=0;wM.start&&O>=5;K+=c}w=K.substr(0,4)+" "+K.substr(4,4)+" "+K.substr(8,4)+" "+(K.substr(12,4)+" "+K.substr(16,4))}else w="";L={video_id_and_cpn:String(V.videoId)+" / "+w,codecs:"",dims_and_frames:"",bandwidth_kbps:L.toFixed(0)+" Kbps",buffer_health_seconds:E.toFixed(2)+" s", date:""+(new Date).toString(),drm_style:q?"":"display:none",drm:q,debug_info:O,extra_debug_info:"",bandwidth_style:x,network_activity_style:x,network_activity_bytes:C.toFixed(0)+" KB",shader_info:f,shader_info_style:f?"":"display:none",playback_categories:""};C=h.clientWidth+"x"+h.clientHeight+(M>1?"*"+M.toFixed(2):"");E="-";y.totalVideoFrames&&(E=(y.droppedVideoFrames||0)+" dropped of "+y.totalVideoFrames);L.dims_and_frames=C+" / "+E;m=m.getVolume();C=r5p(V);var N;if((N=V.T)==null?0:N.audio.L)N= "VB";else{var n;N=((n=V.T)==null?0:n.audio.Z)?"DRC":Math.round(m*C)+"%"}n=Math.round(m)+"% / "+N;N=V.B9.toFixed(1);isFinite(Number(N))&&(n+=" (content loudness "+N+"dB)");L.volume=n;L.resolution=h.videoWidth+"x"+h.videoHeight;if(h=V.L){if(n=h.video)N=n.fps,N>1&&(L.resolution+="@"+N),(N=y.s1)&&N.video&&(L.resolution+=" / "+N.video.width+"x"+N.video.height,N.video.fps>1&&(L.resolution+="@"+N.video.fps)),L.codecs=ZlI(h),!V.T||h.audio&&h.video?h.fL&&(L.codecs+=" / "+h.fL+"A"):L.codecs+=" / "+ZlI(V.T), n.Z||n.primaries?(N=n.Z||"unknown",N==="smpte2084"?N+=" (PQ)":N==="arib-std-b67"&&(N+=" (HLG)"),L.color=N+" / "+(n.primaries||"unknown"),L.color_style=""):L.color_style="display:none";if(h.debugInfo)for(L.fmt_debug_info="",h=g.D(h.debugInfo),n=h.next();!n.done;n=h.next())n=n.value,L.fmt_debug_info+=n.label+":"+n.text+" ";L.fmt_debug_info_style=L.fmt_debug_info&&L.fmt_debug_info.length>0?"":"display:none"}h=V.isLivePlayback;n=V.El;L.live_mode_style=h||n?"":"display:none";L.live_latency_style=h?"": "display:none";if(n)L.live_mode="Post-Live"+(ku(V)?" Manifestless":"");else if(h){n=y.ZB;L.live_latency_secs=n.toFixed(2)+"s";h=ku(V)?"Manifestless, ":"";V.wd&&(h+="Windowed, ");N="Uncertain";if(n>=0&&n<120)if(V.latencyClass&&V.latencyClass!=="UNKNOWN")switch(V.latencyClass){case "NORMAL":N="Optimized for Normal Latency";break;case "LOW":N="Optimized for Low Latency";break;case "ULTRALOW":N="Optimized for Ultra Low Latency";break;default:N="Unknown Latency Setting"}else N=V.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";h+=N;(n=y.ZE)&&(h+=", seq "+n.sequence);L.live_mode=h}!y.isGapless||Uf(V)&&y.DM||(L.playback_categories+="Gapless ");L.playback_categories_style=L.playback_categories?"":"display:none";L.bandwidth_samples=y.ww;L.network_activity_samples=y.pj;L.live_latency_samples=y.Lj;L.buffer_health_samples=y.mW;y=g.JF(V);if(V.cotn||y)L.cotn_and_local_media=(V.cotn?V.cotn:"null")+" / "+y;L.cotn_and_local_media_style=L.cotn_and_local_media?"":"display:none"; Ec(V,"web_player_release_debug")?(L.release_name=J[81],L.release_style=""):L.release_style="display:none";L.debug_info&&R.length>0&&L.debug_info.length+R.length<=60?L.debug_info+=" "+R:L.extra_debug_info=R;L.extra_debug_info_style=L.extra_debug_info&&L.extra_debug_info.length>0?"":"display:none";return L}; ZlI=function(m){var V=/codecs="([^"]*)"/.exec(m.mimeType);return V&&V[1]?V[1]+" ("+m.itag+")":m.itag}; uW=function(m,V,O,h,w){g.p.call(this,{G:"div",X:"ytp-horizonchart"});this.N=V;this.sampleCount=O;this.T=h;this.K=w;this.index=0;this.heightPx=-1;this.D=this.L=null;this.Z=Math.round(m/O);this.element.style.width=this.Z*this.sampleCount+"px";this.element.style.height=this.N+"em"}; zL=function(m,V){if(m.heightPx===-1){var O=null;try{O=g.Yc("CANVAS"),m.L=O.getContext("2d")}catch(C){}if(m.L){var h=m.Z*m.sampleCount;m.D=O;m.D.width=h;m.D.style.width=h+"px";m.element.appendChild(m.D)}else for(m.sampleCount=Math.floor(m.sampleCount/4),m.Z*=4,O=0;O1?2:1,m.D.height=m.heightPx*O,m.D.style.height= m.heightPx+"px",m.L.scale(1,O)));V=g.D(V);for(h=V.next();!h.done;h=V.next()){O=m;var w=m.index,y=h.value;for(h=0;h+20&&g.cI(V.L.element);h.classList.add("ytp-timely-actions-overlay");V.L.element.appendChild(h)}); g.a(this,this.L);this.Y("web_player_overlay_positioned_layout")?this.events.C(m,"basechromeinitialized",function(){V.api.YZ(V.L.element,4,!0);V.L.element.setAttribute("data-overlay-order","10")}):g.ib(this.api,this.L.element,4)}; ww0=function(m){m.timelyActions&&(m.T=m.timelyActions.reduce(function(V,O){if(O.cueRangeId===void 0)return V;V[O.cueRangeId]=0;return V},{}))}; aL=function(m,V){if(m.timelyActions){m=g.D(m.timelyActions);for(var O=m.next();!O.done;O=m.next())if(O=O.value,O.cueRangeId===V)return O}}; yw0=function(m,V){if((m=aL(m,V))&&m.onCueRangeExit)return nD(m.onCueRangeExit)}; mJl=function(m,V){return m.D===void 0?!1:V.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(V.seekLengthMilliseconds)===5E3?m.D===72:V.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(V.seekLengthMilliseconds)===1E4?m.D===74:V.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(V.seekLengthMilliseconds)===5E3?m.D===71:V.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(V.seekLengthMilliseconds)===1E4?m.D===73:!1}; jL$=function(m,V){var O=Number(V==null?void 0:V.maxVisibleDurationMilliseconds);O&&(iW(m),m.Ae=setTimeout(function(){if(m.Z!==void 0&&(V==null?void 0:V.cueRangeId)===m.Z){m.Qt=!1;var h=yw0(m,m.Z);h&&m.api.bH("innertubeCommand",h)}},O))}; iW=function(m){m.Ae&&clearTimeout(m.Ae);m.Ae=void 0;m.Qt=!1}; V9I=function(m){if(m=m.getWatchNextResponse()){var V,O;m=(V=m.playerOverlays)==null?void 0:(O=V.playerOverlayRenderer)==null?void 0:O.timelyActionsOverlayViewModel;V=g.d(m,LU7);if(V!=null&&V.timelyActions)return V==null?void 0:V.timelyActions.map(function(h){return g.d(h,Jwm)}).filter(function(h){return!!h})}}; CWI=function(m){Jj.call(this,m);var V=this;AF(this.api,"getPlaybackRate",function(){return V.api.getPlaybackRate()}); AF(this.api,"setPlaybackRate",function(O){typeof O==="number"&&V.api.setPlaybackRate(O)})}; GL=function(m,V,O,h){RE.call(this,"Intensificador de vozes",g.Kc.iJ);this.U=m;this.D=V;this.L=O;this.getVoiceBoostState=h;this.Z=!1;this.Qp=this.U.Y("html5_enable_new_audio_settings_menu")?m.tZ().eA:m.tZ();this.C(m,"onFilterAudioFeatures",this.t6);this.setIcon({G:"svg",B:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{d:"M11.48 2.14 3.91 6.68A6 6 0 0 0 1 11.83v.33a6 6 0 0 0 2.91 5.14l7.57 4.54A1 1 0 0 0 13 21V3a1.00 1.00 0 0 0-1.51-.85Zm6.88 2.07a1 1 0 0 0-.00 1.41 9 9 0 0 1 0 12.72 1 1 0 0 0 1.41 1.41 11 11 0 0 0 0-15.55 1 1 0 0 0-1.41 0ZM4.94 8.40l.00-.00L11 4.76v14.46l-6.05-3.63A4 4 0 0 1 3 12.16v-.33a4 4 0 0 1 1.94-3.42ZM15.53 7.05a1 1 0 0 0 0 1.41 5 5 0 0 1 0 7.07 1 1 0 0 0 1.41 1.41 6.99 6.99 0 0 0 0-9.9 1 1 0 0 0-1.41 0Z"}}]}); this.subscribe("select",this.T,this);this.t6()}; pf=function(m){Jj.call(this,m);var V=this;this.events=new g.Rc(m);g.a(this,this.events);var O=this.api.Y("html5_enable_voice_boost");O&&this.events.C(m,"settingsMenuInitialized",function(){ED$(V)}); gm(this.api,"getVoiceBoostUserPreference",function(){return O?V.getVoiceBoostUserPreference():0}); gm(this.api,"setVoiceBoostUserPreference",function(w){O&&V.setVoiceBoostUserPreference(w)}); gm(this.api,"getVoiceBoostState",function(){return O?V.getVoiceBoostState():1}); var h;this.Z=(h=oZa())!=null?h:0;this.updateEnvironmentData()}; ED$=function(m){m.menuItem||(m.menuItem=new GL(m.api,function(V){m.setVoiceBoostUserPreference(V)},function(){return m.getVoiceBoostUserPreference()},function(){return m.getVoiceBoostState()}),g.a(m,m.menuItem))}; q$U=function(m){m=m.yF();if(!m)return!1;m=g.Ex(m).exp||"";return m.includes("xpv")||m.includes("xpe")}; M9l=function(m){m=g.D(g.Bw(m,!0));for(var V=m.next();!V.done;V=m.next())if(q$U(V.value))return!0;return!1}; f8C=function(m,V){m=g.D(g.Bw(m,!0));for(var O=m.next();!O.done;O=m.next())if(O=O.value,q$U(O)){var h={potc:"1",pot:V};O.url&&(O.url=qB(O.url,h))}}; xJl=function(m){return g.u(function(V){if(V.Z==1)return g.JG(V,2),g.I(V,m,4);if(V.Z!=2)return g.EJ(V,0);g.qA(V);g.j$(V)})}; lW=function(m){Jj.call(this,m);var V=this;this.useLivingRoomPoToken=!1;this.K=new g.R4;this.Z=!1;this.vD=null;this.J=!1;this.T=null;this.N=!1;var O=m.j().getWebPlayerContextConfig();this.events=new g.Rc(m);g.a(this,this.events);this.events.C(m,"spsumpreject",function(w,y,L){V.N=y;w&&V.J&&!V.T&&(V.Y("html5_generate_content_po_token")&&L?V.GO(L):V.Y("html5_generate_session_po_token")&&RK3(V));V.T||V.api.uH("stp",{s:+V.J,b:+V.N})}); this.events.C(m,"poTokenVideoBindingChange",function(w){V.GO(w)}); if(this.Y("html5_web_po_on_demand_init"))var h=this.events.C(m,"videodatachange",function(w,y){y.Ik&&!V.J&&(oDl(V),V.events.yu(h))}); this.useLivingRoomPoToken=!(O==null||!O.useLivingRoomPoToken);m.addEventListener("csiinitialized",function(){V.vD=m.Pj();V.Y("html5_web_po_on_demand_init")?V.D=G6U():oDl(V)}); m.addEventListener("trackListLoaded",this.gM.bind(this));m.qe(this)}; oDl=function(m){var V=(m.Y("html5_generate_session_po_token")||m.Y("html5_generate_content_po_token"))&&!m.useLivingRoomPoToken;try{if(m.Y("html5_use_shared_owl_instance"))gDp(m);else if(V){m.vD.Rc("pot_isc");var O=g.m9(m.api.j().experiments,"html5_webpo_kaios_defer_timeout_ms");O?(AwG(m),g.t6(function(){QB(m)},O)):m.Y("html5_webpo_idle_priority_job")?(AwG(m),g.mm(g.Od(),function(){QB(m)})):QB(m)}}catch(h){h instanceof Error&&g.cj(h)}}; UJm=function(m){var V=HP(m.experiments,"html5_web_po_request_key");return V?V:g.g2(m)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; dJG=function(m){var V=new $ha,O={},h=(O["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",O);return new tD(V,m,function(){return h})}; t9a=function(m){return new KC(m)}; vw=function(m,V){m.Y("html5_webpo_bge_ctmp")&&m.api.uH(V,{hwpo:!!m.L,hwpor:m.Z})}; gDp=function(m){var V,O;g.u(function(h){if(h.Z==1)return vw(m,"swpo_i"),AwG(m),Pw(m),g.I(h,Cb(),2);if(h.Z!=3)return V=h.L,vw(m,"swpo_co"),g.I(h,Oxl(V),3);O=h.L;m.Y("html5_web_po_token_disable_caching")||O.uD(150);m.L=O;vw(m,"swpo_cc");xJl(O.e_()).then(function(){m.Z=!0;m.K.resolve();vw(m,"swpo_re")}); g.t6(function(){QB(m);vw(m,"swpo_si")},0); g.j$(h)})}; WUX=function(m){var V=m.api.j(),O=UJm(V);O=dJG(O);var h=O.NG.bind(O);O.NG=function(C){var E;return g.u(function(q){if(q.Z==1)return g.I(q,h(C),2);E=q.L;m.api.uH("itr",{});return q.return(E)})}; try{var w=t9a({F_:O,hg:{maxAttempts:5},VL:{uX:"CLEn",disable:V.experiments.w0("html5_web_po_disable_remote_logging"),gK:jT0(V.experiments),S0:function(C){var E=KUC.get(C);E||(E=new GvG(C),E=new s7(E),KUC.set(C,E));return E}, SUY:m.Y("wpo_dis_lfdms")?0:1E3},nfH:g.cj});var y=new Zn({jK:w,F_:O,onError:g.cj});xJl(y.e_()).then(function(){m.Z=!0;m.K.resolve()}); m.Y("html5_web_po_token_disable_caching")||y.uD(150);g.a(m,w);g.a(m,y);m.L=y}catch(C){g.cj(C);var L;(L=w)==null||L.dispose()}}; QB=function(m){var V=m.api.j();m.vD.Rc("pot_ist");m.L||WUX(m);m.Y("html5_bandaid_attach_content_po_token")||(m.Y("html5_generate_session_po_token")&&(Pw(m),RK3(m)),V=g.m9(V.experiments,"html5_session_po_token_interval_time_ms")||0,V>0&&(m.V=g.KJ(function(){Pw(m)},V)),m.J=!0)}; Pw=function(m){var V,O,h,w;g.u(function(y){if(!m.Y("html5_generate_session_po_token")||m.useLivingRoomPoToken)return y.return();V=m.api.j();O=g.Vf("EOM_VISITOR_DATA")||g.Vf("VISITOR_DATA");h=V.Ui?V.datasyncId:O;w=HP(V.experiments,"html5_mock_content_binding_for_session_token")||V.livingRoomPoTokenId||h;V.WW=m1(m,w);g.j$(y)})}; m1=function(m,V){if(!m.L){if(m.D)try{return m.D(V)}catch(y){g.cj(y)}return""}try{m.vD.Rc(m.Z?"pot_cms":"pot_csms");var O={Op:!0,rr:!0,kQ:V};m.Y("html5_web_po_token_disable_caching")||(O.Ga={Mm:V,Mt:!0,MW:!0});var h=m.L.pF(O);m.vD.Rc(m.Z?"pot_cmf":"pot_csmf");if(m.Z){var w;(w=m.T)==null||w.resolve();m.T=null;m.N&&(m.N=!1,m.api.app.OH().mB(!1))}return h}catch(y){return g.cj(y),""}}; RK3=function(m){m.L&&(m.T=new Ut,m.K.promise.then(function(){m.vD.Rc("pot_if");Pw(m)}))}; AwG=function(m){m.D||(m.D=G6U())}; V2=function(m){g.p.call(this,{G:"div",KA:["ytp-more-videos-button","ytp-button"],B:{title:"{{title}}",role:"button",tabindex:"0","aria-hidden":"true"},S:[{G:"div",X:"ytp-more-videos-button-thumbnail"},{G:"span",X:"ytp-more-videos-button-title",c6:"{{title}}"}]});this.U=m;this.L=this.LA("ytp-more-videos-button-thumbnail");this.D=this.LA("ytp-more-videos-button-title");this.Z=new g.Rc(this);g.a(this,this.Z);this.Z.C(this.U,"videodatachange",this.nI);this.nI();this.listen("click",this.onClick);XwG(this, 0);this.hide()}; XwG=function(m,V){switch(V){case 2:V="Ocultar v\u00eddeos";var O="Hide recommendations grid";break;default:V="Mais v\u00eddeos",O="Show recommendations grid"}m.updateValue("title",V);m.element.ariaLabel=O;m.D.textContent=V}; g.Oy=function(m,V,O){g.xN(m.element,"ytp-suggestion-set",!!V.videoId);var h=V.playlistId;O=V.MV(O?O:"mqdefault.jpg");var w=null,y=null;V instanceof ZT&&(V.lengthText?(w=V.lengthText||null,y=V.Q3||null):V.lengthSeconds&&(w=g.KX(V.lengthSeconds),y=g.KX(V.lengthSeconds,!0)));var L=!!h;h=L&&u7(h).type==="RD";var C=V instanceof ZT?V.isLivePlayback:null,E=V instanceof ZT?V.isUpcoming:null,q=V.author,M=V.shortViewCount,f=V.publishedTimeText,x=[],R=[];q&&x.push(q);M&&(x.push(M),R.push(M));f&&R.push(f);O= {title:V.title,author:q,author_and_views:x.join(" \u2022 "),aria_label:V.ariaLabel||g.w0("Assistir a $TITLE",{TITLE:V.title}),duration:w,timestamp:y,url:V.rd(),is_live:C,is_upcoming:E,is_list:L,is_mix:h,background:O?"background-image: url("+O+")":"",views_and_publish_time:R.join(" \u2022 "),autoplayAlternativeHeader:V.Ta};V instanceof zr&&(O.playlist_length=V.playlistLength);m.update(O)}; g.h_=function(m){var V=m.j(),O=g.q3||g.z7?{style:"will-change: opacity"}:void 0,h=V.T,w=["ytp-modern-videowall-still"];V.L&&w.push("ytp-videowall-show-text");g.p.call(this,{G:"a",KA:w,B:{href:"{{url}}",target:h?V.Qt:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},S:[{G:"div",X:"ytp-modern-videowall-still-image",B:{style:"{{background}}"},S:[{G:"span",X:"ytp-modern-videowall-still-info-duration",c6:"{{duration}}"}]},{G:"span",X:"ytp-modern-videowall-still-info", B:{"aria-hidden":"true"},S:[{G:"span",X:"ytp-modern-videowall-still-info-bg",S:[{G:"span",X:"ytp-modern-videowall-still-info-content",B:O,S:[{G:"span",X:"ytp-modern-videowall-still-info-title",c6:"{{title}}"},{G:"span",X:"ytp-modern-videowall-still-info-author",c6:"{{author}}"},{G:"span",X:"ytp-modern-videowall-still-view-count-and-date-info",c6:"{{views_and_publish_time}}"},{G:"span",X:"ytp-modern-videowall-still-info-live",c6:"Ao vivo"}]}]}]},{G:"span",KA:["ytp-modern-videowall-still-listlabel-regular", "ytp-modern-videowall-still-listlabel"],B:{"aria-hidden":"true"},S:[{G:"span",X:"ytp-modern-videowall-still-listlabel-icon"},"Playlist",{G:"span",X:"ytp-modern-videowall-still-listlabel-length",S:[" (",{G:"span",c6:"{{playlist_length}}"},")"]}]},{G:"span",KA:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],B:{"aria-hidden":"true"},S:[{G:"span",X:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{G:"span",X:"ytp-modern-videowall-still-listlabel-length",c6:" (50+)"}]}]}); this.suggestion=null;this.L=h;this.api=m;this.Z=new g.Rc(this);g.a(this,this.Z);this.listen("click",this.onClick);this.listen("keypress",this.onKeyPress);this.Z.C(m,"videodatachange",this.onVideoDataChange);m.createServerVe(this.element,this);this.onVideoDataChange()}; g.Hfp=function(m,V){if(m.suggestion!==V){m.suggestion=V;var O=m.api.j(),h="hqdefault.jpg";V.MV("sddefault.jpg")&&(h="sddefault.jpg");g.Oy(m,V,h);g.sY(O)&&!m.api.Y("web_player_log_click_before_generating_ve_conversion_params")&&(O=V.rd(),h={},g.dm(m.api,"addEmbedsConversionTrackingParams",[h]),O=g.N_(O,h),m.updateValue("url",O));(V=(V=V.sessionData)&&V.itct)&&m.api.setTrackingParams(m.element,V)}}; ThI=function(m,V){var O=m.Y("web_player_use_more_videos_button");g.p.call(this,{G:"div",KA:["ytp-fullscreen-grid"],S:[{G:"div",X:"ytp-fullscreen-grid-hover-overlay",B:{"aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid-expand-button","data-tooltip-offset-y":"-70"}},{G:"div",X:"ytp-fullscreen-grid-buttons-container",S:O?[]:[{G:"button",KA:["ytp-fullscreen-grid-expand-button","ytp-button"],B:{"aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}", "data-tooltip-target-id":"ytp-fullscreen-grid-expand-button","data-tooltip-offset-y":"-10"},S:["{{icon}}"]}]},{G:"div",X:"ytp-fullscreen-grid-main-content",S:[{G:"div",X:"ytp-fullscreen-grid-stills-container"}]}]});this.player=m;this.stills=[];this.videoData=null;this.currentState=0;this.N=O;this.Ae=this.player.Y("web_player_use_external_grid_component");(this.v6=this.player.Y("web_player_enable_horizontal_endscreen_shelf"))&&g.EM(this.player.getRootNode(),"ytp-enable-horizontal-endscreen-shelf"); this.T=this.LA("ytp-fullscreen-grid-main-content");this.Zu=this.LA("ytp-fullscreen-grid-stills-container");this.V=this.LA("ytp-fullscreen-grid-buttons-container");this.N&&(this.K=new V2(this.player),this.V.appendChild(this.K.element),g.a(this,this.K),this.C(this.K.element,"click",this.On));this.Ae&&(this.Zu.style.display="none");this.J=new g.Rc(this);g.a(this,this.J);this.mS=V;if(this.T&&this.Zu){if(m=this.LA("ytp-fullscreen-grid-hover-overlay"))this.C(m,"click",this.On),bb(this.player,m,this);!this.N&& (m=this.LA("ytp-fullscreen-grid-expand-button"))&&(this.C(m,"click",this.On),bb(this.player,m,this));if(m=this.player.getVideoData(1))this.videoData=m;this.player.createClientVe(this.T,this,223051);this.J.C(this.player,"videodatachange",this.onVideoDataChange)}}; $JI=function(m,V){var O="",h=g.S3(m.player,"Mais v\u00eddeos","v");V===2?O="Ocultar v\u00eddeos":V===1&&(O="Mais v\u00eddeos");m.element.setAttribute("title",h);m.element.setAttribute("data-title-no-tooltip",O);m.element.setAttribute("aria-label",O);if(V=m.LA("ytp-fullscreen-grid-hover-overlay"))V.setAttribute("title",h),V.setAttribute("data-title-no-tooltip",O),V.setAttribute("aria-label",O);!m.N&&(V=m.LA("ytp-fullscreen-grid-expand-button"))&&(V.setAttribute("title",h),V.setAttribute("data-title-no-tooltip", O),V.setAttribute("aria-label",O));m.player.cj()}; kLC=function(m){Jj.call(this,m);var V=this;this.N=this.Z=this.D=0;this.V=null;this.J=this.K=0;this.isEnded=!1;this.Zu=null;var O=new g.Rc(m);g.a(this,O);this.mS=g.m9(this.api.j().experiments,"web_player_default_peeking_px");this.EH=this.api.Y("delhi_modern_player_enable_pause_peeking");this.H6=g.m9(this.api.j().experiments,"delhi_modern_player_pause_thumbnail_percentage");this.fA=this.api.Y("web_player_imax_theater_mode");this.T=this.api.Y("web_player_enable_fullscreen_grid_components");this.iH=this.api.Y("web_player_enable_more_videos_button"); this.v6=this.api.Y("web_player_use_external_grid_component");g.EM(this.api.getRootNode(),"ytp-grid-scrollable");O.C(m,"fullscreentoggled",function(){wJ(V)}); O.C(m,"videodatachange",function(){if(V.T){var h=V.api.getVideoData(1);V.videoData!==h&&V.D===2&&(g.Ma(V.api.getRootNode(),"ytp-grid-scrolling"),y2(V,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"));V.videoData=h}},this); O.C(m,"sizestylechange",function(){V.T&&wJ(V)}); gm(this.api,"setFullscreenQuickActions",function(h){V.setFullscreenQuickActions(h)}); gm(this.api,"setPlayerOverlayVideoDetailsRenderer",function(h){V.setPlayerOverlayVideoDetailsRenderer(h)}); this.v6&&gm(this.api,"setFullscreenGrid",function(h){V.setFullscreenGrid(h)}); gm(this.api,"setCommentsButton",function(h){V.setCommentsButton(h)}); gm(this.api,"setDescriptionButton",function(h){V.setDescriptionButton(h)}); this.T&&Y$C(this,O,m)}; Y$C=function(m,V,O){V.C(O,"keyboardserviceglobalkeydown",function(h,w){m.T&&h.keyCode===86&&!h.repeat&&m.D!==0&&(w&&(w.Lu=!0),m.MA("INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); V.C(m.api.getRootNode(),"wheel",function(h){if(!m.Zu){var w;if(m.T&&(w=m.L)!=null&&w.element&&!g.l(m.api.getPlayerStateObject(),2)&&m.D!==0&&jf(m))if(g.EM(m.api.getRootNode(),"ytp-grid-scrolling"),m.K===0&&(m.K=window.innerHeight),m.D===1)m.K!==0&&(m.Z+=h.deltaY/m.K,m.Z=g.O2(m.Z,0,.7),Lz(m),rwC(m,m.J/m.K+m.Z>=.7,2));else if(m.D===2){w=h.deltaY<0;var y,L,C=((L=(y=m.L)==null?void 0:y.T)==null?void 0:L.scrollTop)===0;y=m.Z!==0;w&&C||y&&!w?m.K!==0&&(m.Z=Math.max(0,m.Z-h.deltaY/m.K),Lz(m),rwC(m,m.J/m.K+ Math.abs(m.Z)>=.7,1)):m.Z!==0&&(m.Z=0,Lz(m))}}},m,!0); V.C(O,"standardControlsInitialized",function(){if(!m.L){m.L=new ThI(m.api,m.yee.bind(m));m.iH&&(m.Qt=new V2(m.api),g.a(m,m.Qt),m.Qt.element.setAttribute("data-overlay-order","12"),m.api.YZ(m.Qt.element,4),m.Qt.listen("click",m.MA,m));g.a(m,m.L);var h=m.api.getRootNode().querySelector(".ytp-chrome-bottom");h&&h.parentNode&&h.parentNode.insertBefore(m.L.element,h.nextSibling);cwX(m)}}); V.C(O,"presentingplayerstatechange",function(){J_(m)}); V.C(O,"autonavvisibility",function(){J_(m)}); m.api.mO().subscribe("visibilitystatechange",function(){J_(m)}); DJ3(m,m.D)}; rwC=function(m,V,O){m.V&&clearTimeout(m.V);m.Z===0&&g.Ma(m.api.getRootNode(),"ytp-grid-scrolling");V?Nh1(m,O):m.Z<.1&&(m.V=window.setTimeout(function(){Nh1(m)},1E3))}; Nh1=function(m,V){m.V&&(clearTimeout(m.V),m.V=null);m.K=0;m.T&&m.D!==0&&(V?y2(m,V):Math.abs(m.Z)>=.15&&m.MA("INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),m.Z=0,Lz(m),g.Ma(m.api.getRootNode(),"ytp-grid-scrolling"))}; jf=function(m){return m.api.isFullscreen()||m.fA&&m.api.OJ()}; wJ=function(m){var V=jf(m);g.xN(m.api.getRootNode(),"ytp-full-bleed-player",V);m.Ae&&g.gb(m.Ae,V);m.playerOverlayVideoDetailsRenderer&&g.gb(m.playerOverlayVideoDetailsRenderer,V);m.T&&J_(m)}; J_=function(m){if(m.T)if(g.Ma(m.api.getRootNode(),"ytp-grid-scrolling"),m.api.getPresentingPlayerType()===2||m.api.Lf()||m.api.isMinimized())y2(m,0);else{var V=g.l(m.api.getPlayerStateObject(),2);if(V)y2(m,2,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");else if(m.isEnded&&!V){var O=jf(m)?1:0;m.isEnded=V;y2(m,O)}else jf(m)?m.D!==2&&y2(m,1):y2(m,0);m.isEnded=V}}; y2=function(m,V,O){m.D=V;var h;(h=m.L)==null||h.Mq(V,O);var w;(w=m.Qt)==null||w.Mq(V);m.Z=0;Lz(m);DJ3(m,V)}; DJ3=function(m,V){var O=m.api.getRootNode();g.xN(O,"ytp-fullscreen-grid-peeking",V===1);g.xN(O,"ytp-fullscreen-grid-active",V===2);V===1&&cwX(m)}; cwX=function(m){var V=m.api.getRootNode();if(g.l(m.api.getPlayerStateObject(),256)||g.l(m.api.getPlayerStateObject(),32)||g.l(m.api.getPlayerStateObject(),16))var O=m.J;else if(m.EH&&m.api.getPlayerStateObject().isPaused()){var h;O=(((h=m.L)==null?void 0:h.element.clientWidth)||0)*.5625/3*m.H6||m.mS}else O=m.mS;m.J=O;V.style.setProperty("--ytp-grid-peek-height",m.J+"px");g.xN(V,"ytp-disable-bottom-gradient",m.J<=12&&m.N===0)}; Lz=function(m){m.Z===0&&m.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage","0");requestAnimationFrame(function(){var V=m.Z-m.N,O=V;m.Z!==0&&(O=g.O2(V,-.01,.01));m.N+=O;m.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+m.N.toString());m.N!==m.Z&&Lz(m)})}; bfp=function(m){Jj.call(this,m);var V=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.Rc(m);g.a(this,this.events);this.events.C(m,"heartbeatRequest",function(O){if(V.freePreviewUsageDetails.length||V.freePreviewWatchedDuration!==null)O.heartbeatRequestParams||(O.heartbeatRequestParams={}),O.heartbeatRequestParams.unpluggedParams||(O.heartbeatRequestParams.unpluggedParams={}),V.freePreviewUsageDetails.length>0?O.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= V.freePreviewUsageDetails:O.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+V.freePreviewWatchedDuration}}); gm(m,"setFreePreviewWatchedDuration",function(O){V.freePreviewWatchedDuration=O}); gm(m,"setFreePreviewUsageDetails",function(O){V.freePreviewUsageDetails=O})}; Cz=function(m){g.Z.call(this);this.features=[];var V=this.Z,O=new pc(m),h=new Cc(m),w=new Cf(m),y=new lW(m);var L=g.R2(m.j())?void 0:new uK(m);var C=new Jw(m),E=new ilI(m),q=new CWI(m),M=new Gq(m);var f=g.R2(m.j())?new bfp(m):void 0;var x;var R=(x=m.j().getWebPlayerContextConfig())!=null&&x.cinematicSettingsAvailable?new nc(m):void 0;x=new iK(m);var A=m.Y("enable_courses_player_overlay_purchase")?new j37(m):void 0;var K=g.Eh(m.j())?new OH3(m):void 0;var X=new zq(m);var c=m.j().T?new l77(m):void 0; var r=g.sY(m.j())?new BC1(m):void 0;var N=m.Y("web_player_move_autonav_toggle")&&m.j().l2?new zc5(m):void 0;var n=g.Eh(m.j())?new Yp3(m):void 0;var F=m.Y("web_enable_speedmaster")&&g.Eh(m.j())?new nf(m):void 0;var z=m.j().zf?void 0:new Pn1(m);var V$=m.Y("report_pml_debug_signal")?new Wf0(m):void 0;var O3=new ZE1(m),hI=new ff(m);var jG=g.Sm(m.j())?new wfU(m):void 0;var fo=navigator.mediaSession&&window.MediaMetadata&&m.j().u0?new yB(m):void 0;var w7=m.Y("html5_enable_drc")&&!m.j().N?new ey(m):void 0; var Ko=new Mo(m);var vX=g.Eh(m.j())?new gPp(m):void 0;var L5=m.Y("html5_enable_d6de4")?new E$(m):void 0;var zl=g.Eh(m.j())&&m.Y("web_sleep_timer")?new YD(m):void 0;var lp=g.sY(m.j())?new vmI(m):void 0;m.Y("web_shorts_audio_track_picker")||m.Y("mweb_debug_sticky_settings");var SG=new TL(m);var lz=new s6U(m),DM=new TT7(m);var k=m.Y("enable_sabr_snackbar_message")?new NQI(m):void 0;var PH=m.Y("web_enable_timely_actions")?new hK7(m):void 0;var sJ=new Sy(m);var Co,rc;var H=((Co=m.j())==null?0:(rc=Co.getWebPlayerContextConfig())== null?0:rc.enableFullscreenComponentsFeature)?new kLC(m):void 0;Co=new pf(m);rc=m.Y("web_player_loop_settings_menu")&&m.j().XK?new $FU(m):void 0;var m0=g.R2(m.j())?void 0:new Ej(m);var K9=new P45(m),C9=new c1(m),p9=new sF5(m),Em=new I7U(m);var PX=g.Eh(m.j())&&m.j().Y("delhi_modern_web_player")?new a7o(m):void 0;var OJ=m.j().D?void 0:new $U5(m);V.call(this,O,h,w,y,L,C,E,q,M,f,R,x,A,K,X,c,r,N,n,F,z,V$,O3,hI,jG,void 0,fo,w7,Ko,void 0,vX,L5,zl,lp,void 0,SG,lz,DM,void 0,k,PH,sJ,H,Co,void 0,rc,void 0,m0, K9,C9,p9,Em,PX,OJ,new zHI(m),new sj(m))}; nD$=function(){this.L=this.Z=NaN}; S$a=function(m,V){this.W=m;this.timerName="";this.D=!1;this.L=NaN;this.T=new nD$;this.Z=V||null;this.D=!1}; I8$=function(m,V,O){var h=g.BP(V.IY)&&!V.IY.N;if(V.IY.JN&&(at(V.IY)||V.IY.mS==="shortspage"||oV(V.IY)||h)&&!m.D){m.D=!0;m.N=V.clientPlaybackNonce;g.Vf("TIMING_ACTION")||mT("TIMING_ACTION",m.W.csiPageType);m.W.csiServiceName&&mT("CSI_SERVICE_NAME",m.W.csiServiceName);if(m.Z){h=m.Z.Pj();for(var w=g.D(Object.keys(h)),y=w.next();!y.done;y=w.next())y=y.value,ko(y,h[y],m.timerName);h=g.yf(H3C)(m.Z.To);g.r5(h,m.timerName);h=m.Z;h.Z={};h.To={}}g.r5({playerInfo:{visibilityState:g.yf(XEl)()},playerType:"LATENCY_PLAYER_HTML5"}, m.timerName);m.K!==V.clientPlaybackNonce||Number.isNaN(m.L)||(DY("_start",m.timerName)?O=g.yf(Xo)("_start",m.timerName)+m.L:g.cj(new g.no("attempted to log gapless pbs before CSI timeline started",{cpn:V.clientPlaybackNonce})));!O||DY("pbs",m.timerName)||V.AK||Ey(m,O)}}; Ey=function(m,V,O){ko("pbs",V!=null?V:(0,g.TN)(),O!=null?O:m.timerName)}; q8=function(m){nBC();b35();m.timerName=""}; eK5=function(m){if(m.Z){var V=m.Z;V.Z={};V.To={}}m.D=!1;m.K=void 0;m.L=NaN}; uDp=function(m,V){g.yh.call(this);this.IY=m;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.Z=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Bj={};this.L=0;if(m=V.session_data)this.sessionData=LJ(m,"&");this.index=Math.max(0,Number(V.index)||0);this.loop=!!V.loop;this.startSeconds=Number(V.startSeconds)||0;this.title=V.playlist_title||"";this.description=V.playlist_description||"";this.author= V.author||V.playlist_author||"";V.video_id&&(this.items[this.index]=V);if(m=V.api)typeof m==="string"&&m.length===16?V.list="PL"+m:V.playlist=m;if(m=V.list)switch(V.listType){case "user_uploads":this.listId=new eC("UU","PLAYER_"+m);break;default:var O=V.playlist_length;O&&(this.length=Number(O)||0);this.listId=u7(m);if(m=V.video)this.items=m.slice(0),this.loaded=!0}else if(V.playlist){m=V.playlist.toString().split(",");this.index>0&&(this.items=[]);m=g.D(m);for(O=m.next();!O.done;O=m.next())(O=O.value)&& this.items.push({video_id:O});this.length=this.items.length;if(m=V.video)this.items=m.slice(0),this.loaded=!0}this.setShuffle(!!V.shuffle);if(m=V.suggestedQuality)this.quality=m;this.Bj=DT(V,"playlist_");this.D=(V=V.thumbnail_ids)?V.split(","):[]}; zKl=function(m){return!!(m.playlist||m.list||m.api)}; Zf3=function(m){var V=m.index+1;return V>=m.length?0:V}; sLl=function(m){var V=m.index-1;return V<0?m.length-1:V}; g.M8=function(m,V,O,h){V=V!==void 0?V:m.index;V=m.items&&V in m.items?m.items[m.order[V]]:null;var w=null;V&&(O&&(V.autoplay="1"),h&&(V.autonav="1"),w=new g.Ld(m.IY,V),g.a(m,w),w.hn=!0,w.startSeconds=m.startSeconds||w.clipStart||0,m.listId&&(w.playlistId=m.listId.toString()));return w}; FU$=function(m,V){m.index=g.O2(V,0,m.length-1);m.startSeconds=0}; a8U=function(m,V){if(V.video&&V.video.length){m.title=V.title||"";m.description=V.description;m.views=V.views;m.likes=V.likes;m.dislikes=V.dislikes;m.author=V.author||"";var O=V.loop;O&&(m.loop=O);O=g.M8(m);m.items=[];for(var h=g.D(V.video),w=h.next();!w.done;w=h.next())if(w=w.value)w.video_id=w.encrypted_id,m.items.push(w);m.length=m.items.length;(V=V.index)?m.index=V:m.findIndex(O);m.setShuffle(!1);m.loaded=!0;m.L++;m.Z&&m.Z()}}; pwC=function(m,V){var O,h,w,y,L,C,E;return g.u(function(q){if(q.Z==1){O=g.lP();var M=m.j(),f={context:g.R0(m),playbackContext:{contentPlaybackContext:{ancestorOrigins:M.ancestorOrigins}}},x=M.getWebPlayerContextConfig();if(x==null?0:x.encryptedHostFlags)f.playbackContext.contentPlaybackContext.encryptedHostFlags=x.encryptedHostFlags;if(x==null?0:x.hideInfo)f.playerParams={showinfo:!1};x=M.embedConfig;var R=m.LT;var A=V.docid||V.video_id||V.videoId||V.id;if(!A){A=V.raw_embedded_player_response;if(!A){var K= V.embedded_player_response;K&&(A=JSON.parse(K))}if(A){var X,c,r,N,n,F;A=((F=g.d((X=A)==null?void 0:(c=X.embedPreview)==null?void 0:(r=c.thumbnailPreviewRenderer)==null?void 0:(N=r.playButton)==null?void 0:(n=N.buttonRenderer)==null?void 0:n.navigationEndpoint,g.xu))==null?void 0:F.videoId)||null}else A=null}X=(X=A)?X:void 0;c=m.playlistId?m.playlistId:V.list;r=V.listType;if(c){var z;r==="user_uploads"?z={username:c}:z={playlistId:c};ifC(x,R,X,V,z,M.experiments);f.playlistRequest=z}else V.playlist? (z={templistVideoIds:V.playlist.toString().split(",")},ifC(x,R,X,V,z,M.experiments),f.playlistRequest=z):X&&(z={videoId:X},R&&M.Y("embeds_enable_per_video_embed_config")?z.serializedThirdPartyEmbedConfig=R:x&&(z.serializedThirdPartyEmbedConfig=x),f.singleVideoRequest=z);h=f;w=g.Vs(GLo);g.JG(q,2);return g.I(q,g.Ia(O,h,w),4)}if(q.Z!=2)return y=q.L,L=m.j(),V.raw_embedded_player_response=y,L.iH=R$(V,g.sY(L)),L.D=L.iH==="EMBEDDED_PLAYER_MODE_PFL",y&&(C=y,C.trackingParams&&U_(C.trackingParams)),q.return(new g.Ld(L, V));E=g.qA(q);E instanceof Error||(E=Error("b259802748"));g.kL(E);return q.return(m)})}; ifC=function(m,V,O,h,w,y){h.index&&(w.playlistIndex=String(Number(h.index)+1));w.videoId=O?O:"";V&&y.w0("embeds_enable_per_video_embed_config")?w.serializedThirdPartyEmbedConfig=V:m&&(w.serializedThirdPartyEmbedConfig=m)}; g.xY=function(m,V){fz.get(m);fz.set(m,V)}; g.RZ=function(m){g.yh.call(this);this.loaded=!1;this.player=m}; Bha=function(){this.L=[];this.Z=[]}; g.Bw=function(m,V){return V?m.Z.concat(m.L):m.Z}; g.oZ=function(m,V){switch(V.kind){case "asr":l8o(V,m.L);break;default:l8o(V,m.Z)}}; var R5$=function(m,V,O,h,w,y,L,C){return xU[J[4]](this,20,m,V,O,h,w,y,L,C)}; l8o=function(m,V){g.p5(V,function(O){return m.equals(O)})||V.push(m)}; g.gJ=function(m){g.Z.call(this);this.kN=m;this.Z=new Bha;this.D=null;this.K=[];this.V=[]}; g.QLI=function(m,V){var O;return V.j().Y("html5_use_hls_native_captions")&&g.AJ&&m.yp()&&!((O=m.L)==null||!ac(O))}; g.A_=function(m,V,O){g.gJ.call(this,m);this.videoData=V;this.audioTrack=O;this.L=null;this.T=!1;this.K=V.Ws;this.V=V.XN;this.T=g.vC(V)}; g.vD1=function(m,V){var O;return m.j().Y("safari_live_drm_captions_fix")&&((O=m.getVideoData())==null?0:O.gH())?!1:g.R2(m.j())&&!V.isManifestless}; g.Uy=function(m,V){return Bg(m.info.mimeType)?V?m.info.itag===V:!0:!1}; g.PW1=function(m,V){if(m.Z!=null&&g.vD1(V,m.Z)&&m.Z.Z.rawcc!=null)return!0;if(!m.yp())return!1;V=!!m.Z&&m.Z.isManifestless&&Object.values(m.Z.Z).some(function(O){return g.Uy(O,"386")}); m=!!m.Z&&!m.Z.isManifestless&&g.d3$(m.Z);return V||m}; g.dJ=function(m,V,O,h,w,y){g.gJ.call(this,m);this.videoId=O;this.Ew=w;this.eventId=y;this.N={};this.L=null;m=h||g.Ex(V).hl||"";m=m.split("_").join("-");this.T=qB(V,{hl:m})}; m8o=function(m,V,O){O=O===void 0?"":O;g.Z.call(this);var h=this;this.U=m;this.K=V;this.D=O;this.To={};this.Z={};this.L=null;this.T=new Set;this.N=new g.Rc(this);this.BD={Shz:function(){return h.K}, uCS:function(){return h.D}}; this.J=this.U.Y("web_player_defer_modules");this.IJ=new Map;g.a(this,this.N);this.N.C(m,"videodatachange",this.onVideoDataChange)}; VfI=function(m,V){m.L=V}; g.t_=function(m){return m.IJ.get("captions")}; L1l=function(m,V){switch(V){case "ad":return OzI(m);case "annotations_module":return m.U.isEmbedsShortsMode()?m=!1:(V=m.U,m=V.j(),V=V.getVideoData(),m=m.D||V.s5||m.controlsType==="3"?!1:m.H6.isEmpty()&&m.playerStyle!=="annotation-editor"&&m.playerStyle!=="live-dashboard"?!!V.xL||!!g.BC(V)||!!g.l2(V):!0),m;case "asmjs":return Kz(m);case "creatorendscreen":return hqa(m);case "embed":return g.sY(m.U.j());case "endscreen":return g.w_5(m);case "heartbeat":return m.PT();case "kids":return Oh(m.U.j());case "remote":return m.U.j().Zd; case "miniplayer":return m.U.j().showMiniplayerUiWhenMinimized;case "offline":return m.U.j().hZ;case "captions":return y_7(m);case "unplugged":return g.l0(m.U.j());case "ux":return m.U.j().Xr;case "webgl":return jZ$(m);case "ypc":return m.Yw();default:return g.kL(Error("Module descriptor "+V+" does not match")),!1}}; W_=function(m,V,O,h,w){var y;O=O===void 0?!1:O;h=h===void 0?!1:h;var L=m.IJ.get(V);if(!L||h)if(w||(w=function(){W_(m,V,O,h)}),y||(y=function(){Xl(m,V)}),L=L||J_U(m,V,L1l(m,V),w,y))m.IJ.set(V,L),L.create(),m.U.publish("modulecreated",V),O&&m.U.yV("onApiChange")}; EY1=function(m){var V=V===void 0?!1:V;var O,h,w,y,L;return g.u(function(C){if(C.Z==1)return(O=m.IJ.get("asmjs"))&&!V?C.return(O):(h=fz.get("asmjs"))!=null?(w=h,C.Te(2)):g.I(C,new Promise(function(E,q){CT3(m,"asmjs",function(){var M=fz.get("asmjs");M?E(M):q("cannot load module asmjs")},q)}),3); C.Z!=2&&(w=C.L);y=w;if(!y)return C.return(Promise.reject("cannot load module asmjs"));L=new y(m.U);m.IJ.set("asmjs",L);L.create();return C.return(L)})}; f33=function(m){qy$(m)&&m.Z6();Mfm(m)&&(W_(m,"captions",!0),W_(m,"endscreen"),m.zo(),W_(m,"creatorendscreen",!0))}; Xl=function(m,V){V=g.D(x8$[V]);for(var O=V.next();!O.done;O=V.next())m.U.UJ(O.value)}; Mfm=function(m){var V=m.U.getVideoData(),O=m.J&&!V.isInlinePlaybackNoAd;m.U.Y("html5_defer_modules_on_ads_only")&&!V.isAd()&&(O=!1);return O}; qy$=function(m){m=m.U.getVideoData();var V;if(V=m.Y("web_player_defer_ad")){if(g.vH(m.Sm,"ad")||ohl(m)||m.enableServerStitchedDai)m=!1;else{V=m.playerResponse;m=m.startSeconds;var O=V==null?void 0:V.adPlacements;if(V=O){V=Number.MAX_VALUE;O=g.D(O);for(var h=O.next();!h.done;h=O.next())if(h=h.value.adPlacementRenderer){var w=void 0,y=(w=h.config)==null?void 0:w.adPlacementConfig;w=void 0;if(((w=y)==null?void 0:w.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var L=w=void 0;y=Number((w=y)==null?void 0:(L= w.adTimeOffset)==null?void 0:L.offsetStartMilliseconds)||0;L=w=void 0;h=Number(((w=h.renderer)==null?void 0:(L=w.adBreakServiceRenderer)==null?void 0:L.prefetchMilliseconds)||0);h=y-h;h=11;m=m.api.j().J&&N8;return!(!V&&!m)}; aZ=function(m,V){return!m.api.isInline()&&!Sy7(m,cZ(V))&&g.W5(V)}; nYC=function(m){m.Ny.XV();if(m.Np&&m.QK)m.QK=!1;else if(!m.api.j().fA&&!m.GE()){var V=m.api.getPlayerStateObject();g.l(V,2)&&g.e3(m.api)||m.oL(V);!m.api.j().nA||V.isCued()||g.l(V,1024)?m.rA():m.ob.isActive()?(m.Wn(),m.ob.stop()):m.ob.start()}}; eq1=function(m,V){var O;if((O=m.api.getVideoData())==null?0:O.mutedAutoplay){var h,w;if((h=V.target)==null?0:(w=h.className)==null?0:w.includes("ytp-info-panel"))return!1}return g.W5(V)&&m.api.isMutedByMutedAutoplay()?(m.api.unMute(),m.api.getPresentingPlayerType()===2&&m.api.playVideo(),V=m.api.getPlayerStateObject(),!g.l(V,4)||g.l(V,8)||g.l(V,2)||m.rA(),!0):!1}; ulC=function(m,V,O){m.api.isFullscreen()?O<1-V&&m.api.toggleFullscreen():O>1+V&&m.api.toggleFullscreen()}; bzo=function(m){var V=lB()&&Gm()>=67&&!m.api.j().J;m=m.api.j().disableOrganicUi;return!g.B7("tizen")&&!u0&&!V&&!m}; g.iT=function(m){g.p.call(this,{G:"div",S:[{G:"div",X:"ytp-bezel-text-wrapper",S:[{G:"div",X:"ytp-bezel-text",c6:"{{title}}"}]},{G:"div",X:"ytp-bezel",B:{role:"status","aria-label":"{{label}}"},S:[{G:"div",X:"ytp-bezel-icon",c6:"{{icon}}"}]}]});this.U=m;this.L=new g.mq(this.show,10,this);m=this.U.Y("delhi_modern_web_player")?1E3:500;this.Z=new g.mq(this.hide,m,this);g.a(this,this.L);g.a(this,this.Z);this.hide()}; pz=function(m,V,O){if(V<=0){O=cn();V="som desativado";var h=0}else O=O?{G:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",Df:!0,B:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{G:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",Df:!0,B:{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"}}]},h=Math.floor(V),V=h+"volume";GR(m,O,V,h+"%")}; zq3=function(m,V){V=V?{G:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",Df:!0,X:"ytp-svg-fill",B:{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"}}]}:lHa();var O=m.U.getPlaybackRate(),h=g.w0("A velocidade do v\u00eddeo \u00e9 $RATE",{RATE:String(O)});GR(m,V,h,O+"x")}; Zzm=function(m,V){V=V?"Legendas/legendas ocultas ativadas":"Legendas/legendas ocultas desativadas";GR(m,Hr$(m.U),V)}; GR=function(m,V,O,h){h=h===void 0?"":h;m.updateValue("label",O===void 0?"":O);m.updateValue("icon",V);g.hY(m.Z);m.L.start();m.updateValue("title",h);g.xN(m.element,"ytp-bezel-text-hide",!h)}; sZp=function(m,V){g.p.call(this,{G:"button",KA:["ytp-button","ytp-cards-button"],B:{"aria-label":"Exibir cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.sY(m.j()))},S:[{G:"span",X:"ytp-cards-button-icon-default",S:[{G:"div",X:"ytp-cards-button-icon",S:[m.j().Y("player_new_info_card_format")?v4p():{G:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",Df:!0,X:"ytp-svg-fill",B:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {G:"div",X:"ytp-cards-button-title",c6:"Informa\u00e7\u00f5es"}]},{G:"span",X:"ytp-cards-button-icon-shopping",S:[{G:"div",X:"ytp-cards-button-icon",S:[{G:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",X:"ytp-svg-shadow",B:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{G:"path",X:"ytp-svg-fill",B:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{G:"path",X:"ytp-svg-shadow-fill",B:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{G:"div", X:"ytp-cards-button-title",c6:"Compras"}]}]});this.U=m;this.L=V;this.Z=null;this.fade=new g.OR(this,250,!0,100);g.a(this,this.fade);g.xN(this.L,"ytp-show-cards-title",g.sY(m.j()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.q9(!0)}; F13=function(m,V){g.p.call(this,{G:"div",X:"ytp-cards-teaser",S:[{G:"div",X:"ytp-cards-teaser-box"},{G:"div",X:"ytp-cards-teaser-text",S:m.j().Y("player_new_info_card_format")?[{G:"button",X:"ytp-cards-teaser-info-icon",B:{"aria-label":"Exibir cards","aria-haspopup":"true"},S:[v4p()]},{G:"img",X:"ytp-cards-teaser-channel-avatar",B:{alt:"","aria-hidden":"true"}},{G:"span",X:"ytp-cards-teaser-label",c6:"{{text}}"},{G:"button",X:"ytp-cards-teaser-close-button",B:{"aria-label":"Fechar"},S:[g.Ah()]}]: [{G:"span",X:"ytp-cards-teaser-label",c6:"{{text}}"}]}]});var O=this;this.U=m;this.aF=V;this.fade=new g.OR(this,250,!1,250);this.Z=null;this.N=new g.mq(this.KnA,300,this);this.K=new g.mq(this.G0t,2E3,this);this.T=[];this.D=null;this.J=new g.mq(function(){O.element.style.margin="0"},250); this.onClickCommand=this.L=null;g.a(this,this.fade);g.a(this,this.N);g.a(this,this.K);g.a(this,this.J);m.j().Y("player_new_info_card_format")?(g.EM(m.getRootNode(),"ytp-cards-teaser-dismissible"),this.C(this.LA("ytp-cards-teaser-close-button"),"click",this.Gc),this.C(this.LA("ytp-cards-teaser-info-icon"),"click",this.ZU),this.C(this.LA("ytp-cards-teaser-label"),"click",this.ZU)):this.listen("click",this.ZU);this.C(V.element,"mouseover",this.D9);this.C(V.element,"mouseout",this.L9);this.C(m,"cardsteasershow", this.uGe);this.C(m,"cardsteaserhide",this.EU);this.C(m,"cardstatechange",this.HE);this.C(m,"presentingplayerstatechange",this.HE);this.C(m,"appresize",this.Sf);this.C(m,"onShowControls",this.Sf);this.C(m,"onHideControls",this.AA);this.listen("mouseenter",this.Kb)}; a33=function(m){g.p.call(this,{G:"button",KA:[B_.BUTTON,B_.TITLE_NOTIFICATIONS],B:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},S:[{G:"div",X:B_.TITLE_NOTIFICATIONS_ON,B:{title:"Deixar de receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"},S:[g.Wn()]},{G:"div",X:B_.TITLE_NOTIFICATIONS_OFF,B:{title:"Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"}, S:[{G:"svg",B:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},S:[{G:"path",B:{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=m;this.Z=!1;m.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos")}; iz0=function(m,V){m.Z=V;m.element.classList.toggle(B_.NOTIFICATIONS_ENABLED,m.Z);var O=m.api.getVideoData();O?(V=V?O.k8:O.Y8)?(m=m.api.uN())?SY(m,V):g.kL(Error("No innertube service available when updating notification preferences.")):g.kL(Error("No update preferences command available.")):g.kL(Error("No video data when updating notification preferences."))}; p_7=function(m,V,O){var h=h===void 0?800:h;var w=w===void 0?600:w;var y=document.location.protocol;m=EiX(y+"//"+m+"/signin?context=popup","feature",V,"next",y+"//"+location.hostname+"/post_login");GRC(m,O,h,w)}; GRC=function(m,V,O,h){O=O===void 0?800:O;h=h===void 0?600:h;if(m=g.Di(window,m,"loginPopup","width="+O+",height="+h+",resizable=yes,scrollbars=yes"))Fq5(function(){V()}),m.moveTo((screen.width-O)/2,(screen.height-h)/2)}; g.lT=function(m,V,O,h,w,y,L,C,E,q,M,f){m=m.charAt(0)+m.substring(1).toLowerCase();O=O.charAt(0)+O.substring(1).toLowerCase();if(V==="0"||V==="-1")V=null;if(h==="0"||h==="-1")h=null;var x=M.j(),R=x.userDisplayName&&g.BP(x);g.p.call(this,{G:"div",KA:["ytp-button","ytp-sb"],S:[{G:"div",X:"ytp-sb-subscribe",B:R?{title:M.j().Y("player_tooltip_data_title_killswitch")?g.w0("Inscrever-se como $USER_NAME",{USER_NAME:x.userDisplayName}):"","data-tooltip-title":g.w0("Inscrever-se como $USER_NAME",{USER_NAME:x.userDisplayName}), "aria-label":"Inscrever-se no canal","data-tooltip-image":gK(x),"data-tooltip-opaque":String(g.sY(x)),tabindex:"0",role:"button"}:{"aria-label":"Inscrever-se no canal"},S:[{G:"div",X:"ytp-sb-text",S:[{G:"div",X:"ytp-sb-icon"},m]},V?{G:"div",X:"ytp-sb-count",c6:V}:""]},{G:"div",X:"ytp-sb-unsubscribe",B:R?{title:M.Y("player_tooltip_data_title_killswitch")?g.w0("Inscrito como $USER_NAME",{USER_NAME:x.userDisplayName}):"","data-tooltip-title":g.w0("Inscrito como $USER_NAME",{USER_NAME:x.userDisplayName}), "aria-label":"Cancelar inscri\u00e7\u00e3o no canal","data-tooltip-image":gK(x),"data-tooltip-opaque":String(g.sY(x)),tabindex:"0",role:"button"}:{"aria-label":"Cancelar inscri\u00e7\u00e3o no canal"},S:[{G:"div",X:"ytp-sb-text",S:[{G:"div",X:"ytp-sb-icon"},O]},h?{G:"div",X:"ytp-sb-count",c6:h}:""]}],B:{"aria-live":"polite"}});var A=this;this.channelId=L;this.U=M;this.D=f;var K=this.LA("ytp-sb-subscribe"),X=this.LA("ytp-sb-unsubscribe");y&&g.EM(this.element,"ytp-sb-classic");if(w){C?this.Z():this.L(); var c=function(){if(x.v6){var N=A.channelId;if(E||q){var n={c:N};var F;g.Xe.isInitialized()&&(F=hX3(n));n=F||"";if(F=M.getVideoData())if(F=F.subscribeCommand){var z=M.uN();z?(SY(z,F,{botguardResponse:n,feature:E}),M.bH("SUBSCRIBE",N)):g.kL(Error("No innertube service available when updating subscriptions."))}else g.kL(Error("No subscribe command in videoData."));else g.kL(Error("No video data available when updating subscription."))}X.focus();X.removeAttribute("aria-hidden");K.setAttribute("aria-hidden", "true")}else p_7(g.yl(A.U.j()),"sb_button",A.T)},r=function(){var N=A.channelId; if(E||q){var n=M.getVideoData();SY(M.uN(),n.unsubscribeCommand,{feature:E});M.bH("UNSUBSCRIBE",N)}K.focus();K.removeAttribute("aria-hidden");X.setAttribute("aria-hidden","true")}; this.C(K,"click",c);this.C(X,"click",r);this.C(K,"keypress",function(N){N.keyCode===13&&c(N)}); this.C(X,"keypress",function(N){N.keyCode===13&&r(N)}); this.C(M,"SUBSCRIBE",this.Z);this.C(M,"UNSUBSCRIBE",this.L);this.D&&R&&(MeG(M),bb(M,K,this),bb(M,X,this))}else g.EM(K,"ytp-sb-disabled"),g.EM(X,"ytp-sb-disabled")}; QZa=function(m){g.p.call(this,{G:"div",X:"ytp-title-channel",S:[{G:"div",X:"ytp-title-beacon"},{G:"a",X:"ytp-title-channel-logo",B:{href:"{{channelLink}}",target:m.j().Qt,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{G:"div",X:"ytp-title-expanded-overlay",B:{"aria-hidden":"{{flyoutUnfocusable}}"},S:[{G:"div",X:"ytp-title-expanded-heading",S:[{G:"div",X:"ytp-title-expanded-title",S:[{G:"a",c6:"{{expandedTitle}}",B:{href:"{{channelTitleLink}}",target:m.j().Qt,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{G:"div",X:"ytp-title-expanded-subtitle",c6:"{{expandedSubtitle}}",B:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var V=this;this.api=m;this.channel=this.LA("ytp-title-channel");this.L=this.LA("ytp-title-channel-logo");this.channelName=this.LA("ytp-title-expanded-title");this.K=this.LA("ytp-title-expanded-overlay");this.D=this.Z=this.subscribeButton=null;this.T=!1;m.createClientVe(this.L,this,36925);m.createClientVe(this.channelName,this, 37220);g.sY(this.api.j())&&BJo(this);this.C(m,"videodatachange",this.oY);this.C(m,"videoplayerreset",this.oY);this.C(this.channelName,"click",function(O){V.api.logClick(V.channelName);g.Di(window,l3U(V));O.preventDefault()}); this.C(this.L,"click",this.tb6);this.oY()}; vY$=function(m){if(!m.api.j().UU){var V=m.api.getVideoData(),O=new g.lT("Inscreva-se",null,"Inscrito",null,!0,!1,V.XU,V.subscribed,"channel_avatar",null,m.api,!0);m.api.createServerVe(O.element,m);var h;m.api.setTrackingParams(O.element,((h=V.subscribeButtonRenderer)==null?void 0:h.trackingParams)||null);m.C(O.element,"click",function(){m.api.logClick(O.element)}); m.subscribeButton=O;g.a(m,m.subscribeButton);m.subscribeButton.g0(m.K);m.subscribeButton.hide();var w=new a33(m.api);m.Z=w;g.a(m,w);w.g0(m.K);w.hide();m.C(m.api,"SUBSCRIBE",function(){V.WW&&(w.show(),m.api.logVisibility(w.element,!0))}); m.C(m.api,"UNSUBSCRIBE",function(){V.WW&&(w.hide(),m.api.logVisibility(w.element,!1),iz0(w,!1))})}}; BJo=function(m){var V=m.api.j();vY$(m);m.updateValue("flyoutUnfocusable","true");m.updateValue("channelTitleFocusable","-1");m.updateValue("shouldHideExpandedTitleForA11y","true");m.updateValue("shouldHideExpandedSubtitleForA11y","true");V.L||V.Mf||(m.C(m.channel,"mouseenter",m.oy),m.C(m.channel,"mouseleave",m.xC),m.C(m.channel,"focusin",m.oy),m.C(m.channel,"focusout",function(O){m.channel.contains(O.relatedTarget)||m.xC()})); m.D=new g.mq(function(){m.isExpanded()&&(m.api.logVisibility(m.channelName,!1),m.subscribeButton&&(m.subscribeButton.hide(),m.api.logVisibility(m.subscribeButton.element,!1)),m.Z&&(m.Z.hide(),m.api.logVisibility(m.Z.element,!1)),m.channel.classList.remove("ytp-title-expanded"),m.channel.classList.add("ytp-title-show-collapsed"))},500); g.a(m,m.D);m.C(m.channel,PTp,function(){mDa(m)}); m.C(m.api,"onHideControls",m.WK);m.C(m.api,"appresize",m.WK);m.C(m.api,"fullscreentoggled",m.WK)}; mDa=function(m){m.channel.classList.remove("ytp-title-show-collapsed");m.channel.classList.remove("ytp-title-show-expanded")}; Vjo=function(m){var V=m.api.getPlayerSize();return g.sY(m.api.j())&&V.width>=524}; l3U=function(m){var V=m.api.j(),O=m.api.getVideoData(),h=g.AW(V)+O.fA;g.ME(O)&&(h="https://music.youtube.com"+O.fA);if(!g.sY(V))return h;V={};g.dm(m.api,"addEmbedsConversionTrackingParams",[V]);return g.N_(h,V)}; Q2=function(m){var V=g.yF({"aria-haspopup":"true"});g.wd.call(this,V,m);this.listen("keydown",this.sJ)}; v_=function(m,V){m.element.setAttribute("aria-haspopup",String(V))}; O_7=function(m,V){g.p.call(this,{G:"div",X:"ytp-user-info-panel",B:{"aria-label":"Informa\u00e7\u00f5es do usu\u00e1rio"},S:m.j().v6?[{G:"div",X:"ytp-user-info-panel-icon",c6:"{{icon}}"},{G:"div",X:"ytp-user-info-panel-content",S:[{G:"div",X:"ytp-user-info-panel-info",B:{tabIndex:"{{userInfoFocusable}}",role:"text"},c6:"{{watchingAsUsername}}"},{G:"div",X:"ytp-user-info-panel-info",B:{tabIndex:"{{userInfoFocusable2}}",role:"text"},c6:"{{watchingAsEmail}}"}]}]:[{G:"div",X:"ytp-user-info-panel-icon", c6:"{{icon}}"},{G:"div",X:"ytp-user-info-panel-content",S:[{G:"div",S:[{G:"text",B:{tabIndex:"{{userInfoFocusable}}"},c6:"Conta desconectada"}]},{G:"div",X:"ytp-user-info-panel-login",S:[{G:"a",B:{tabIndex:"{{userInfoFocusable2}}",role:"button"},c6:m.j().UU?"":"Fazer login no YouTube"}]}]}]});this.kN=m;this.sourceElement=V;m.j().v6||m.j().UU||this.C(this.LA("ytp-user-info-panel-login"),"click",this.U9);this.closeButton=new g.p({G:"button",KA:["ytp-collapse","ytp-button"],B:{title:"Fechar"},S:[g.rN()]}); this.closeButton.g0(this.element);g.a(this,this.closeButton);this.C(window,"blur",this.hide);this.C(document,"click",this.Hg);this.oY()}; LJ5=function(m,V,O){g.Aw.call(this,m);var h=this;this.Qp=V;this.k5=O;this.getVideoUrl=new Q2(6);this.Kd=new Q2(5);this.z7=new Q2(4);this.xD=new Q2(3);this.Q$=new g.wd(g.yF({href:"{{href}}",target:this.U.j().Qt},void 0,!0),2,"Resolver problemas de reprodu\u00e7\u00e3o");this.showVideoInfo=new g.wd(g.yF(),1,"Estat\u00edsticas para nerds");this.G1=new g.ED({G:"div",KA:["ytp-copytext","ytp-no-contextmenu"],B:{draggable:"false",tabindex:"1"},c6:"{{text}}"});this.U$=new gh(this.U,this.G1);this.LH=this.A3= null;g.sY(this.U.j())&&(this.closeButton=new g.p({G:"button",KA:["ytp-collapse","ytp-button"],B:{title:"Fechar"},S:[g.rN()]}),g.a(this,this.closeButton),this.closeButton.g0(this.element),this.closeButton.listen("click",this.mD,this));g.sY(this.U.j())&&(this.Ph=new g.wd(g.yF(),10,"Conta"),g.a(this,this.Ph),this.SU(this.Ph,!0),this.Ph.listen("click",this.xyY,this),m.createClientVe(this.Ph.element,this.Ph,137682));this.U.j().XK&&(this.TZ=new RE("Loop",9),g.a(this,this.TZ),this.SU(this.TZ,!0),this.TZ.listen("click", this.DCr,this),m.createClientVe(this.TZ.element,this.TZ,28661));this.U.Y("web_player_miniplayer_in_context_menu")&&(this.l1=new g.wd(g.yF(),8,"Miniplayer"),g.a(this,this.l1),this.SU(this.l1,!0),this.l1.listen("click",this.v5f,this),m.createClientVe(this.l1.element,this.l1,62946));this.U.Y("web_watch_pip_context_menu_button")&&this.U.j().showMiniplayerButton&&(this.tU=new g.wd(g.yF(),7,"Picture-in-picture"),g.a(this,this.tU),this.SU(this.tU,!0),this.tU.listen("click",this.k0t,this),m.createClientVe(this.tU.element, this.tU,194442));g.a(this,this.getVideoUrl);this.SU(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.Z6t,this);m.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.a(this,this.Kd);this.SU(this.Kd,!0);this.Kd.listen("click",this.uJ0,this);m.createClientVe(this.Kd.element,this.Kd,28660);g.a(this,this.z7);this.SU(this.z7,!0);this.z7.listen("click",this.Q8H,this);m.createClientVe(this.z7.element,this.z7,28658);g.a(this,this.xD);this.SU(this.xD,!0);this.xD.listen("click",this.RTr, this);g.a(this,this.Q$);this.SU(this.Q$,!0);this.Q$.listen("click",this.fee,this);g.a(this,this.showVideoInfo);this.SU(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.jJ6,this);g.a(this,this.G1);this.G1.listen("click",this.afA,this);g.a(this,this.U$);hlI()&&(this.A3=new g.p({G:"textarea",X:"ytp-html5-clipboard",B:{readonly:"",tabindex:"-1"}}),g.a(this,this.A3),this.A3.g0(this.element));var w;(w=this.Ph)==null||w.setIcon(j$p());var y;(y=this.TZ)==null||y.setIcon(Eko());var L;(L=this.l1)== null||L.setIcon(this.U.Y("delhi_modern_web_player_icons")?VU0():Hn());var C;(C=this.tU)==null||C.setIcon(Hn());this.xD.setIcon({G:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{"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.Q$.setIcon(dN());this.showVideoInfo.setIcon(QvI());this.C(m,"onLoopChange",this.onLoopChange);this.C(m,"videodatachange",this.onVideoDataChange);this.C(m,"fullscreentoggled",function(){wko(h)}); this.C(m,"minimized",function(){wko(h);var E;(E=h.tU)==null||E.eU(!h.U.isMinimized()&&h.U.j().showMiniplayerButton)}); ylI(this);jn7(this,this.U.getVideoData())}; P_=function(m,V){var O=!1;if(m.A3){var h=m.A3.element;h.value=V;h.select();try{O=document.execCommand("copy")}catch(w){}}O?m.Qp.EU():(m.G1.setContent(V,"text"),g.tw(m.Qp,m.U$),tj(m.G1.element),m.A3&&(m.A3=null,ylI(m)));return O}; hlI=function(){var m=document.queryCommandSupported&&document.queryCommandSupported("copy");gIU("Chromium")>=43&&(m=!0);gIU("Firefox")<=40&&(m=!1);return m}; wko=function(m){var V;(V=m.l1)==null||V.eU(!m.U.isFullscreen()&&!m.U.isMinimized()&&m.U.getPresentingPlayerType()!==2&&m.U.j().showMiniplayerButton)}; jn7=function(m,V){var O=m.U.j(),h=m.U.getPresentingPlayerType()===2,w=!h||V.isListed;w=!O.Ae&&!!V.videoId&&w;O.playerStyle!=="play"?O="https://support.google.com/youtube/?p=report_playback":(O={contact_type:"playbackissue",html5:1,ei:V.eventId,v:V.videoId,p:"movies_playback"},V.L&&(O.fmt=V.L.itag),V.clientPlaybackNonce&&(O.cpn=V.clientPlaybackNonce),V.partnerId&&(O.partnerid=V.partnerId),O=g.N_("//support.google.com/googleplay/",O));m.z7.eU(w&&V.allowEmbed);m.getVideoUrl.eU(w);m.Kd.eU(w&&!V.isLivePlayback); m.Q$.setContent(O,"href");var y;(y=m.TZ)==null||y.eU(!V.isLivePlayback&&!h);wko(m);var L;(L=m.Ph)==null||L.eU(!h)}; ylI=function(m){var V=!!m.A3;g.hj(m.xD,V?"Copiar informa\u00e7\u00f5es de depura\u00e7\u00e3o":"Ver informa\u00e7\u00f5es sobre depura\u00e7\u00e3o");v_(m.xD,!V);g.hj(m.z7,V?"Copiar c\u00f3digo de incorpora\u00e7\u00e3o":"Ver c\u00f3digo de incorpora\u00e7\u00e3o");v_(m.z7,!V);g.hj(m.getVideoUrl,V?"Copiar URL do v\u00eddeo":"Ver URL do v\u00eddeo");v_(m.getVideoUrl,!V);g.hj(m.Kd,V?"Copiar URL do v\u00eddeo no momento atual":"Ver URL do v\u00eddeo no tempo atual");v_(m.Kd,!V);m.z7.setIcon(V?p7U(): null);m.getVideoUrl.setIcon(V?th():null);m.Kd.setIcon(V?th():null)}; JlC=function(m){return g.sY(m.U.j())?m.Ph:m.TZ}; E6I=function(m,V){g.dh.call(this,m);this.k5=V;this.L=new g.Rc(this);this.J=new g.mq(this.DVf,1E3,this);this.V=this.PB=null;g.a(this,this.L);g.a(this,this.J);V=this.U.j();m.createClientVe(this.element,this,28656);g.EM(this.element,"ytp-contextmenu");this.U.j().experiments.w0("delhi_modern_web_player")&&g.Eh(V)&&g.EM(this.element,"ytp-delhi-modern-contextmenu");CsC(this);this.hide()}; CsC=function(m){g.np(m.L);var V=m.U.j();V.playerStyle==="gvn"||V.L||V.Mf||(V=m.U.xN(),m.L.C(V,"contextmenu",m.eQt),m.L.C(V,"touchstart",m.onTouchStart,null,!0),m.L.C(V,"touchmove",m.N7,null,!0),m.L.C(V,"touchend",m.N7,null,!0))}; q51=function(m){m.U.isFullscreen()?g.ib(m.U,m.element,10):m.g0(m2(m).body)}; mJ=function(m,V,O){O=O===void 0?240:O;g.p.call(this,{G:"button",KA:["ytp-button","ytp-copylink-button"],B:{title:m.Y("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.sY(m.j()))},S:[{G:"div",X:"ytp-copylink-icon",c6:"{{icon}}"},{G:"div",X:"ytp-copylink-title",c6:"Copiar link",B:{"aria-hidden":"true"}}]});this.api=m;this.Z=V;this.L=O;this.visible=!1;this.tooltip=this.Z.XJ();V=m.j();this.tooltip.element.setAttribute("aria-live", "polite");g.xN(this.element,"ytp-show-copylink-title",g.sY(V));m.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.C(m,"videodatachange",this.oY);this.C(m,"videoplayerreset",this.oY);this.C(m,"appresize",this.oY);this.oY();this.addOnDisposeCallback(g.DZ(this.tooltip,this.element))}; MjX=function(m){var V=m.api.j(),O=m.api.getVideoData(),h=m.api.xN().getPlayerSize().width;V=V.D;return!!O.videoId&&h>=m.L&&O.zf&&!O.Sb&&!m.api.isEmbedsShortsMode()&&!V}; f_p=function(m){m.updateValue("icon",Rl());if(m.api.j().L)m.tooltip.Py(m.element,"Link copiado para a \u00e1rea de transfer\u00eancia");else{m.updateValue("title-attr","Link copiado para a \u00e1rea de transfer\u00eancia");m.updateValue("tooltip-title","Link copiado para a \u00e1rea de transfer\u00eancia");m.tooltip.cj();m.tooltip.Py(m.element);var V=m.listen("mouseleave",function(){m.yu(V);m.oY();m.tooltip.jI()})}}; xDX=function(m,V){return g.u(function(O){if(O.Z==1)return g.JG(O,2),g.I(O,navigator.clipboard.writeText(V),4);if(O.Z!=2)return O.return(!0);g.qA(O);var h=O.return,w=!1,y=g.Yc("TEXTAREA");y.value=V;y.setAttribute("readonly","");var L=m.api.getRootNode();L.appendChild(y);if(GN){var C=window.getSelection();C.removeAllRanges();var E=document.createRange();E.selectNodeContents(y);C.addRange(E);y.setSelectionRange(0,V.length)}else y.select();try{w=document.execCommand("copy")}catch(q){}L.removeChild(y); return h.call(O,w)})}; RlI=function(m){g.p.call(this,{G:"div",X:"ytp-doubletap-ui-legacy",S:[{G:"div",X:"ytp-doubletap-fast-forward-ve"},{G:"div",X:"ytp-doubletap-rewind-ve"},{G:"div",X:"ytp-doubletap-static-circle",S:[{G:"div",X:"ytp-doubletap-ripple"}]},{G:"div",X:"ytp-doubletap-overlay-a11y"},{G:"div",X:"ytp-doubletap-seek-info-container",S:[{G:"div",X:"ytp-doubletap-arrows-container",S:[{G:"span",X:"ytp-doubletap-base-arrow"},{G:"span",X:"ytp-doubletap-base-arrow"},{G:"span",X:"ytp-doubletap-base-arrow"}]},{G:"div", X:"ytp-doubletap-tooltip",S:[{G:"div",X:"ytp-seek-icon-text-container",S:[{G:"div",X:"ytp-seek-icon",c6:"{{seekIcon}}"},{G:"div",X:"ytp-chapter-seek-text-legacy",c6:"{{seekText}}"}]},{G:"div",X:"ytp-doubletap-tooltip-label",c6:"{{seekTime}}"}]}]}]});this.U=m;this.T=new g.mq(this.show,10,this);this.L=new g.mq(this.hide,700,this);this.N=this.D=0;this.Zu=this.K=!1;this.Z=this.LA("ytp-doubletap-static-circle");g.a(this,this.T);g.a(this,this.L);this.hide();this.J=this.LA("ytp-doubletap-fast-forward-ve"); this.V=this.LA("ytp-doubletap-rewind-ve");this.U.createClientVe(this.J,this,28240);this.U.createClientVe(this.V,this,28239);this.U.logVisibility(this.J,!0);this.U.logVisibility(this.V,!0);this.K=m.Y("web_show_cumulative_seek_time");this.Zu=m.Y("web_center_static_circles")}; o63=function(m,V){V=g.w0("$TOTAL_SEEK_TIME segundos",{TOTAL_SEEK_TIME:V.toString()});m.updateValue("seekTime",V)}; AlX=function(m){oL.call(this,m,!1,!0);this.v6=[];this.CA=[];this.element.setAttribute("data-overlay-order","9");g6G(this,this.U.getVideoData());this.J=!0;this.badge.element.classList.add("ytp-featured-product");this.iH=new g.p({G:"div",X:"ytp-featured-product-open-in-new"});g.a(this,this.iH);this.countdownTimer=new g.p({G:"text",X:"ytp-featured-product-countdown",c6:"{{content}}"});this.countdownTimer.hide();g.a(this,this.countdownTimer);this.D=new g.p({G:"div",X:"ytp-featured-product-trending",S:[{G:"div", X:"ytp-featured-product-trending-icon"},{G:"text",X:"ytp-featured-product-trending-text",c6:"{{trendingOffer}}"}]});this.D.hide();g.a(this,this.D);this.overflowButton=new g.p({G:"button",KA:["ytp-featured-product-overflow-icon","ytp-button"],B:{"aria-haspopup":"true"}});this.overflowButton.hide();g.a(this,this.overflowButton);this.N=new g.p({G:"text",X:"ytp-featured-product-exclusive-countdown",c6:"{{content}}",B:{id:"exclusiveCountdown","aria-hidden":"true"}});this.N.hide();g.a(this,this.N);this.K= new g.p({G:"div",X:"ytp-featured-product-exclusive-container",B:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},S:[{G:"div",X:"ytp-featured-product-exclusive-badge-container",S:[{G:"div",X:"ytp-featured-product-exclusive-badge",S:[{G:"text",X:"ytp-featured-product-exclusive-badge-text",c6:"{{exclusive}}",B:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.N]});this.K.hide();g.a(this,this.K);this.banner=new g.p({G:"a",X:"ytp-featured-product-container",S:[{G:"div",X:"ytp-featured-product-thumbnail", S:[{G:"img",B:{src:"{{thumbnail}}"}},this.iH]},{G:"div",X:"ytp-featured-product-details",S:[{G:"text",X:"ytp-featured-product-title",c6:"{{title}}"},this.U.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{G:"div",X:"ytp-featured-product-price-container",B:{"aria-label":"{{priceA11yText}}"},S:[{G:"text",X:"ytp-featured-product-price-when-promotion-text-enabled",c6:"{{price}}",B:{"aria-hidden":"true"}},{G:"text",X:"ytp-featured-product-promotion-text",c6:"{{promotionText}}", B:{"aria-hidden":"true"}}]}:{G:"div",B:{"aria-label":"{{priceA11yText}}"},S:[{G:"text",X:"ytp-featured-product-price",c6:"{{price}}",B:{"aria-hidden":"true"}},{G:"text",X:"ytp-featured-product-sales-original-price",c6:"{{salesOriginalPrice}}",B:{"aria-hidden":"true"}},{G:"text",X:"ytp-featured-product-price-drop-reference-price",c6:"{{priceDropReferencePrice}}",B:{"aria-hidden":"true"}}]},this.U.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{G:"div",X:"ytp-featured-product-when-promotion-text-enabled", S:[{G:"text",X:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",c6:"{{affiliateDisclaimer}}"},this.D,{G:"text",X:"ytp-featured-product-vendor-when-promotion-text-enabled",c6:"{{vendor}}"}]}:{G:"div",S:[{G:"text",X:"ytp-featured-product-affiliate-disclaimer",c6:"{{affiliateDisclaimer}}"},this.U.Y("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.K:null,this.D,{G:"text",X:"ytp-featured-product-vendor",c6:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]}); g.a(this,this.banner);this.banner.g0(this.T.element);this.C(this.U,g.Gu("featured_product"),this.OCr);this.C(this.U,g.pR("featured_product"),this.Se);this.C(this.U,"videodatachange",this.onVideoDataChange);this.C(this.overflowButton.element,"click",this.qj);this.C(m,"featuredproductdismissed",this.sX)}; UDU=function(m){var V,O;m=(V=m.Z)==null?void 0:(O=V.bannerData)==null?void 0:O.itemData;var h,w,y;return(m==null||!m.affiliateDisclaimer)&&(m==null?0:(h=m.exclusivesData)==null?0:h.exclusiveOfferLabelText)&&(m==null?0:(w=m.exclusivesData)==null?0:w.expirationTimestampMs)&&(m==null?0:(y=m.exclusivesData)==null?0:y.exclusiveOfferCountdownText)?!0:!1}; tjG=function(m){var V,O,h,w,y=(V=m.Z)==null?void 0:(O=V.bannerData)==null?void 0:(h=O.itemData)==null?void 0:(w=h.exclusivesData)==null?void 0:w.expirationTimestampMs;V=(Number(y)-Date.now())/1E3;if(V>0){if(V<604800){var L,C,E,q;O=(L=m.Z)==null?void 0:(C=L.bannerData)==null?void 0:(E=C.itemData)==null?void 0:(q=E.exclusivesData)==null?void 0:q.exclusiveOfferCountdownText;if(O!==void 0)for(L=Date.now(),C=g.D(O),E=C.next();!E.done;E=C.next())if(E=E.value,E!==void 0&&E.text!==void 0&&(q=Number(E.textDisplayStartTimestampMs), !isNaN(q)&&L>=q)){E.insertCountdown?(V=E.text.replace(/\$0/,String(Cr({seconds:V}))),m.N.setContent(V)):m.N.setContent(E.text);m.N.show();break}}var M,f,x,R;m.K.update({exclusive:(M=m.Z)==null?void 0:(f=M.bannerData)==null?void 0:(x=f.itemData)==null?void 0:(R=x.exclusivesData)==null?void 0:R.exclusiveOfferLabelText});m.K.show();Vk(m);var A;(A=m.Id)==null||A.start()}else dDl(m)}; dDl=function(m){var V;(V=m.Id)==null||V.stop();m.N.hide();m.K.hide();O5(m)}; KJp=function(m){var V,O,h=(V=m.Z)==null?void 0:(O=V.bannerData)==null?void 0:O.itemData;return m.U.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(h==null||!h.priceReplacementText)&&(h==null?0:h.promotionText)?h==null?void 0:h.promotionText.content:null}; WJ0=function(m){var V,O,h=(V=m.Z)==null?void 0:(O=V.bannerData)==null?void 0:O.itemData,w,y;if(!(h!=null&&h.priceReplacementText||m.U.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(h==null?0:(w=h.dealsData)==null?0:(y=w.sales)==null?0:y.originalPrice)){var L,C;return h==null?void 0:(L=h.dealsData)==null?void 0:(C=L.sales)==null?void 0:C.originalPrice}return null}; Xkl=function(m){var V,O,h=(V=m.Z)==null?void 0:(O=V.bannerData)==null?void 0:O.itemData,w,y,L,C;if(!((h==null?0:h.priceReplacementText)||m.U.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(h==null?0:(w=h.dealsData)==null?0:(y=w.sales)==null?0:y.originalPrice))&&(h==null?0:(L=h.dealsData)==null?0:(C=L.priceDrop)==null?0:C.referencePrice)){var E,q;return h==null?void 0:(E=h.dealsData)==null?void 0:(q=E.priceDrop)==null?void 0:q.referencePrice}return null}; H_G=function(m){var V,O,h=(V=m.Z)==null?void 0:(O=V.bannerData)==null?void 0:O.itemData;if(h==null?0:h.priceReplacementText)return h==null?void 0:h.priceReplacementText;if((h==null?0:h.promotionText)&&m.U.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var w;return(h==null?void 0:h.price)+" "+(h==null?void 0:(w=h.promotionText)==null?void 0:w.content)}var y,L;if(h==null?0:(y=h.dealsData)==null?0:(L=y.sales)==null?0:L.originalPrice){var C,E;return h==null?void 0:(C=h.dealsData)== null?void 0:(E=C.sales)==null?void 0:E.salesPriceAccessibilityLabel}var q,M;if(h==null?0:(q=h.dealsData)==null?0:(M=q.priceDrop)==null?0:M.referencePrice){var f,x;return(h==null?void 0:h.price)+" "+(h==null?void 0:(f=h.dealsData)==null?void 0:(x=f.priceDrop)==null?void 0:x.referencePrice)}return h==null?void 0:h.price}; Tel=function(m){if(m.U.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var V,O,h;return m.D.cD?null:(V=m.Z)==null?void 0:(O=V.bannerData)==null?void 0:(h=O.itemData)==null?void 0:h.vendorName}var w,y,L,C,E,q;return m.D.cD||m.K.cD||((w=m.Z)==null?0:(y=w.bannerData)==null?0:(L=y.itemData)==null?0:L.affiliateDisclaimer)?null:(C=m.Z)==null?void 0:(E=C.bannerData)==null?void 0:(q=E.itemData)==null?void 0:q.vendorName}; Y5X=function(m,V){hl(m);if(V){var O=g.gU.getState().entities;O=Bv(O,"featuredProductsEntity",V);if(O!=null&&O.productsData){V=[];O=g.D(O.productsData);for(var h=O.next();!h.done;h=O.next()){h=h.value;var w=void 0;if((w=h)!=null&&w.identifier&&h.featuredSegments){m.v6.push(h);var y=void 0;w=g.D((y=h)==null?void 0:y.featuredSegments);for(y=w.next();!y.done;y=w.next()){var L=y.value;y=$D1(L.startTimeSec);y!==void 0&&(L=$D1(L.endTimeSec),V.push(new g.a2(y*1E3,L===void 0?0x7ffffffffffff:L*1E3,{id:h.identifier, namespace:"featured_product"})))}}}m.U.SK(V)}}}; O5=function(m){if(m.trendingOfferEntityKey){var V=g.gU.getState().entities;if(V=Bv(V,"trendingOfferEntity",m.trendingOfferEntityKey)){var O,h,w;V.encodedSkuId!==((O=m.Z)==null?void 0:(h=O.bannerData)==null?void 0:(w=h.itemData)==null?void 0:w.encodedOfferSkuId)?Vk(m):(m.D.update({trendingOffer:V.shortLabel+" \u2022 "+V.countLabel}),m.D.show(),m.banner.update({vendor:Tel(m)}))}else Vk(m)}else Vk(m)}; Vk=function(m){m.D.hide();m.banner.update({vendor:Tel(m)})}; g6G=function(m,V){!m.U.Y("web_enable_shopping_timely_shelf_client")||m.U.Y("web_force_featured_product_banner_with_timely_shelf")||!V||V.isLivePlayback||V.isPremiere?m.badge.element.classList.remove("ytp-timely-shelf-present"):m.badge.element.classList.add("ytp-timely-shelf-present")}; hl=function(m){m.v6=[];m.Se();m.U.FJ("featured_product")}; kn7=function(m){var V,O,h,w,y=(V=m.Z)==null?void 0:(O=V.bannerData)==null?void 0:(h=O.itemData)==null?void 0:(w=h.hiddenProductOptions)==null?void 0:w.dropTimestampMs;V=(Number(y)-Date.now())/1E3;m.countdownTimer.setContent(Cr({seconds:V}));if(V>0){var L;(L=m.kD)==null||L.start()}}; rlU=function(m){var V;(V=m.kD)==null||V.stop();m.countdownTimer.hide()}; $D1=function(m){if(m!==void 0&&m.trim()!==""&&(m=Math.trunc(Number(m.trim())),!(isNaN(m)||m<0)))return m}; I_3=function(m,V,O){g.p.call(this,{G:"div",KA:["ytp-info-panel-action-item"],S:[{G:"div",X:"ytp-info-panel-action-item-disclaimer",c6:"{{disclaimer}}"},{G:"a",KA:["ytp-info-panel-action-item-button","ytp-button"],B:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},S:[{G:"div",X:"ytp-info-panel-action-item-icon",c6:"{{icon}}"},{G:"div",X:"ytp-info-panel-action-item-label",c6:"{{label}}"}]}]});this.U=m;this.L=O;this.disclaimer=this.LA("ytp-info-panel-action-item-disclaimer");this.button= this.LA("ytp-info-panel-action-item-button");this.o8=!1;this.U.createServerVe(this.element,this,!0);this.listen("click",this.onClick);m="";O=g.d(V==null?void 0:V.onTap,Nb);var h=g.d(O,g.Il);this.o8=!1;h?(m=h.url||"",m.startsWith("//")&&(m="https:"+m),this.o8=!0,g.$p(this.button,g.HM(m))):(h=g.d(O,cl$))&&!this.L?((m=h.phoneNumbers)&&m.length>0?(m="sms:"+m[0],h.messageText&&(m+="?&body="+encodeURI(h.messageText))):m="",this.o8=!0,g.$p(this.button,g.HM(m,[DDX]))):(O=g.d(O,NeU))&&!this.L&&(m=O.phoneNumber? "tel:"+O.phoneNumber:"",this.o8=!0,g.$p(this.button,g.HM(m,[b_C])));this.U.Y("embeds_enable_info_panel_dismissal")&&!m&&(O=g.d(V==null?void 0:V.onTap,Nb),h=g.d(O,n6a))&&(this.o8=!0,this.Z=O,this.feedbackToken=h.feedbackToken);var w;if(O=(w=V.disclaimerText)==null?void 0:w.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var y,L;this.update({label:(y=V.bodyText)==null?void 0:y.content,icon:this.U.Y("embeds_enable_info_panel_dismissal")?S5U((L=V.icon)== null?void 0:L.iconType):Xu(),disclaimer:O})}else{this.disclaimer.style.display="none";var C,E;this.update({label:(C=V.bodyText)==null?void 0:C.content,icon:this.U.Y("embeds_enable_info_panel_dismissal")?S5U((E=V.icon)==null?void 0:E.iconType):Xu()})}this.U.setTrackingParams(this.element,V.trackingParams||null);this.o8&&(this.D={externalLinkData:{url:m}})}; S5U=function(m){switch(m){case "OPEN_IN_NEW":return Xu();case "NOT_INTERESTED":return{G:"svg",B:{fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{d:"M18.71,6C20.13,7.59,21,9.69,21,12c0,4.97-4.03,9-9,9c-2.31,0-4.41-0.87-6-2.29L18.71,6z M3,12 c0-4.97,4.03-9,9-9c2.31,0,4.41,.87,6,2.29L5.29,18C3.87,16.41,3,14.31,3,12z M12,2c5.52,0,10,4.48,10,10c0,5.52-4.48,10-10,10 C6.48,22,2,17.52,2,12C2,6.48,6.48,2,12,2z","fill-rule":"evenodd"}}]};case "HELP_OUTLINE":return dN();default:return Xu()}}; el$=function(m,V){var O=jO();g.Pz.call(this,m,{G:"div",X:"ytp-info-panel-detail-skrim",S:[{G:"div",X:"ytp-info-panel-detail",B:{role:"dialog",id:O},S:[{G:"div",X:"ytp-info-panel-detail-header",S:[{G:"div",X:"ytp-info-panel-detail-title",c6:"{{title}}"},{G:"button",KA:["ytp-info-panel-detail-close","ytp-button"],B:{"aria-label":"Fechar"},S:[g.Ah()]}]},{G:"div",X:"ytp-info-panel-detail-body",c6:"{{body}}"},{G:"div",X:"ytp-info-panel-detail-items"}]}]},250);var h=this;this.Z=V;this.items=this.LA("ytp-info-panel-detail-items"); this.L=new g.Rc(this);this.itemData=[];this.D=O;this.C(this.LA("ytp-info-panel-detail-close"),"click",this.EU);this.C(this.LA("ytp-info-panel-detail-skrim"),"click",this.EU);this.C(this.LA("ytp-info-panel-detail"),"click",function(w){w.stopPropagation()}); this.C(this.U,"infopaneldetaildismissed",function(){m.Y("embeds_enable_info_panel_dismissal")&&h.EU()}); g.a(this,this.L);this.U.createServerVe(this.element,this,!0);this.C(m,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",m.getVideoData());this.hide()}; uOU=function(m,V){m=g.D(m.itemData);for(var O=m.next();!O.done;O=m.next())O=O.value,O.U.logVisibility(O.element,V)}; snC=function(m,V){g.p.call(this,{G:"button",X:"ytp-info-panel-preview",B:{"aria-live":"assertive","aria-atomic":"true","aria-owns":V.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.sY(m.j()))},S:[{G:"div",X:"ytp-info-panel-preview-text",c6:"{{text}}"},{G:"div",X:"ytp-info-panel-preview-chevron",c6:"{{chevron}}"}]});var O=this;this.U=m;this.Ol=this.Z=this.videoId=null;this.isDismissed=this.D=this.showControls=this.L=!1;this.C(this.element,"click",function(){m.logClick(O.element);m.GE(); VF(V)}); this.fade=new g.OR(this,250,!1,100);g.a(this,this.fade);this.U.createServerVe(this.element,this,!0);this.C(m,"videodatachange",this.onVideoDataChange);this.C(m,"presentingplayerstatechange",this.fb);this.C(this.U,"paidcontentoverlayvisibilitychange",this.Aa);this.C(this.U,"infopaneldetailvisibilitychange",this.Aa);var h=m.getVideoData()||{};zl7(h)&&Z_C(this,h);this.C(m,"onShowControls",this.Fy);this.C(m,"onHideControls",this.E9);this.C(this.U,"infopaneldetaildismissed",function(){m.Y("embeds_enable_info_panel_dismissal")&& (O.isDismissed=!0,O.hide())})}; Z_C=function(m,V){if(!V.s0||!m.U.m1()){var O=V.qH||1E4,h=zl7(V);m.Z?V.videoId&&V.videoId!==m.videoId&&(g.hY(m.Z),m.videoId=V.videoId,h?(FJ3(m,O,V),m.OI()):(m.EU(),m.Z.dispose(),m.Z=null)):h&&(V.videoId&&(m.videoId=V.videoId),FJ3(m,O,V),m.OI())}}; zl7=function(m){var V,O,h,w;return!!((V=m.CP)==null?0:(O=V.title)==null?0:O.content)||!!((h=m.CP)==null?0:(w=h.bodyText)==null?0:w.content)}; FJ3=function(m,V,O){m.Z&&m.Z.dispose();m.Z=new g.mq(m.Ccr,V,m);g.a(m,m.Z);var h;V=((h=O.CP)==null?void 0:h.trackingParams)||null;m.U.setTrackingParams(m.element,V);var w;var y,L;if(O==null?0:(y=O.CP)==null?0:(L=y.title)==null?0:L.content){var C;h=(w=O.CP)==null?void 0:(C=w.title)==null?void 0:C.content;var E,q;if((E=O.CP)==null?0:(q=E.bodyText)==null?0:q.content)h+=" \u2022 ";w=h}else w="";var M,f;O=((M=O.CP)==null?void 0:(f=M.bodyText)==null?void 0:f.content)||"";m.update({text:w+O,chevron:g.gN()})}; a_$=function(m,V){m.Z&&(g.l(V,8)?(m.L=!0,m.OI(),m.Z.start()):(g.l(V,2)||g.l(V,64))&&m.videoId&&(m.videoId=null))}; we=function(m){var V=null;try{V=m.toLocaleString("pt-BR",{style:"percent"})}catch(O){V=m.toLocaleString(void 0,{style:"percent"})}return V}; yk=function(m,V){var O=0;m=g.D(m);for(var h=m.next();!(h.done||h.value.startTime>V);h=m.next())O++;return O===0?O:O-1}; i_l=function(m,V){for(var O=0,h=g.D(m),w=h.next();!w.done;w=h.next()){w=w.value;if(V=w.timeRangeStartMillis&&V2147483647?"0":String(m)}; L_=function(m,V,O){var h=m.api.getCurrentTime(),w=v60(m,h);m=v60(m,h+V);return{startMediaTimeMs:w,endMediaTimeMs:m,seekSource:O}}; Ps5=function(m){var V,O=(V=m.api.getVideoData())==null?void 0:V.Z4();return m.api.getPresentingPlayerType(O)!==2}; jj=function(m,V){m.D.Xa=V;g.xN(m.api.getRootNode(),"ytp-probably-keyboard-focus",V);g.xN(m.contextMenu.element,"ytp-probably-keyboard-focus",V)}; C_=function(m,V,O,h){var w=g.t_(m.api.Gp());if(w&&w.loaded){var y=m.api.getSubtitlesUserSettings();w=void 0;for(var L=0;L0?V[0]:null;var O=g.KK("ytp-chrome-bottom"),h=g.KK("ytp-ad-module");m.D=!(O==null||!O.contains(V));m.N=!(h==null||!h.contains(V));m.J=!(V==null||!V.hasAttribute("data-tooltip-target-fixed"));return V}; C37=function(m,V,O){if(!m.T){if(V){m.tooltipRenderer=V;V=m.tooltipRenderer.text;var h=!1,w;(V==null?0:(w=V.runs)==null?0:w.length)&&V.runs[0].text&&(m.update({title:V.runs[0].text.toString()}),h=!0);g.gb(m.title,h);V=m.tooltipRenderer.detailsText;w=!1;var y;if((V==null?0:(y=V.runs)==null?0:y.length)&&V.runs[0].text){h=V.runs[0].text.toString();y=h.indexOf("$TARGET_ICON");if(y>-1)if(m.tooltipRenderer.targetId){V=[];h=h.split("$TARGET_ICON");var L=new g.Ly({G:"span",X:"ytp-promotooltip-details-icon", S:[LjG[m.tooltipRenderer.targetId]]});g.a(m,L);for(var C=[],E=g.D(h),q=E.next();!q.done;q=E.next())q=new g.Ly({G:"span",X:"ytp-promotooltip-details-component",c6:q.value}),g.a(m,q),C.push(q);h.length===2?(V.push(C[0].element),V.push(L.element),V.push(C[1].element)):h.length===1&&(y===0?(V.push(L.element),V.push(C[0].element)):(V.push(C[0].element),V.push(L.element)));y=V.length?V:null}else y=null;else y=h;if(y){if(typeof y!=="string")for(g.cI(m.details),w=g.D(y),y=w.next();!y.done;y=w.next())m.details.appendChild(y.value); else m.update({details:y});w=!0}}g.gb(m.details,w);w=m.tooltipRenderer.acceptButton;y=!1;var M,f,x;((M=g.d(w,g.rg))==null?0:(f=M.text)==null?0:(x=f.runs)==null?0:x.length)&&g.d(w,g.rg).text.runs[0].text&&(m.update({acceptButtonText:g.d(w,g.rg).text.runs[0].text.toString()}),y=!0);g.gb(m.acceptButton,y);M=m.tooltipRenderer.dismissButton;f=!1;var R,A,K;((R=g.d(M,g.rg))==null?0:(A=R.text)==null?0:(K=A.runs)==null?0:K.length)&&g.d(M,g.rg).text.runs[0].text&&(m.update({dismissButtonText:g.d(M,g.rg).text.runs[0].text.toString()}), f=!0);g.gb(m.dismissButton,f)}O&&(m.sourceElement=O);m.Z=jOI(m);m.K=!1;m.U.j().Y("web_player_hide_nitrate_promo_tooltip")||m.eU(!0);J23(m);m.cD&&!m.V&&(m.V=!0,m.BD.GF(0));m.L&&m.U.logVisibility(m.element,m.cD)}}; MD=function(m){m.eU(!1);m.L&&m.U.logVisibility(m.element,m.cD)}; EJ5=function(m){var V,O,h,w=((V=g.d(m.acceptButton,g.rg))==null?void 0:(O=V.text)==null?void 0:(h=O.runs)==null?void 0:h.length)&&!!g.d(m.acceptButton,g.rg).text.runs[0].text,y,L,C;V=((y=g.d(m.dismissButton,g.rg))==null?void 0:(L=y.text)==null?void 0:(C=L.runs)==null?void 0:C.length)&&!!g.d(m.dismissButton,g.rg).text.runs[0].text;return w||V}; J23=function(m){var V;if(!(V=!m.Z)){V=m.Z;var O=window.getComputedStyle(V);V=O.display==="none"||O.visibility==="hidden"||V.getAttribute("aria-hidden")==="true"}if(V||m.U.isMinimized())m.eU(!1);else if(V=g.or(m.Z),V.width&&V.height){m.U.XD(m.element,m.Z);var h=m.U.xN().getPlayerSize().height;O=g.or(m.LA("ytp-promotooltip-container")).height;m.D?m.element.style.top=h-O-V.height-12+"px":m.J||(h=m.U.Ad().height-O-V.height-12,m.element.style.top=h+"px");h=m.LA("ytp-promotooltip-pointer");var w=g.xi(m.Z, m.U.getRootNode()),y=Number(m.element.style.left.replace(/[^\d\.]/g,""));m=m.U.isFullscreen()?18:12;h.style.left=w.x-y+V.width/2-m+"px";h.style.top=O+"px"}else m.eU(!1)}; f_=function(m){g.p.call(this,{G:"button",KA:["ytp-replay-button","ytp-button"],B:{title:m.Y("player_tooltip_data_title_killswitch")?"Reiniciar":"","data-tooltip-title":"Reiniciar"},S:[g.Y0()]});this.U=m;this.C(m,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Mq(m.getPlayerStateObject());bb(this.U,this.element,this)}; x6=function(m,V){V=V===void 0?240:V;g.p.call(this,{G:"button",KA:["ytp-button","ytp-search-button"],B:{title:m.Y("player_tooltip_data_title_killswitch")?"Pesquisar":"","data-tooltip-title":"Pesquisar","data-tooltip-opaque":String(g.sY(m.j()))},S:[{G:"div",X:"ytp-search-icon",c6:"{{icon}}"},{G:"div",X:"ytp-search-title",c6:"Pesquisar"}]});this.api=m;this.L=V;this.visible=!1;this.updateValue("icon",{G:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},S:[{G:"path",X:"ytp-svg-fill", B:{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"}}]});m.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.Z();this.C(m,"appresize",this.Z);this.C(m,"videodatachange",this.Z);bb(m,this.element,this)}; Rn=function(m){g.p.call(this,{G:"div",X:"ytp-seek-overlay",S:[{G:"div",KA:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],S:[{G:"div",KA:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],S:[{G:"svg",B:{viewBox:"0 0 22 32",width:"22",height:"24"},S:[{G:"path",B:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{G:"div",X:"ytp-seek-overlay-duration",c6:"{{durationBack}}"}]},{G:"div",KA:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],S:[{G:"div",X:"ytp-seek-overlay-duration",c6:"{{durationForward}}"},{G:"div",KA:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],S:[{G:"svg",B:{viewBox:"0 0 22 32",width:"22",height:"24"},S:[{G:"path",B:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{G:"div",X:"ytp-seek-overlay-message",S:[{G:"div",X:"ytp-seek-overlay-message-icon",c6:"{{icon}}"},{G:"div",X:"ytp-seek-overlay-message-text", c6:"{{text}}"}]}]});var V=this;this.U=m;this.K=0;this.Z="hidden";this.J=this.LA("ytp-seek-overlay-animation-back");this.V=this.LA("ytp-seek-overlay-animation-forward");this.Zu=this.LA("ytp-seek-overlay-message");this.N=new g.mq(function(){qH1(V)},g.m9(this.U.j().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.a(this,this.N);this.U.createClientVe(this.V,this,28240);this.U.createClientVe(this.J,this,28239);this.U.logVisibility(this.V,!0);this.U.logVisibility(this.J,!0);this.hide()}; Mg5=function(m,V){m.D=m.T.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",opacity:V},{offset:1,opacity:1}],{duration:200,fill:"forwards"});m.D.addEventListener("finish",function(){m.D=void 0;m.N.start();m.Z="lingering"})}; fhX=function(m,V,O,h){O=O===void 0?!1:O;h=h===void 0?!1:h;var w=[];w.push({offset:0,transform:"translateX("+(m.L===-1?20:-20)+"px)",opacity:O?"0":"1"});O&&w.push({offset:.5,opacity:"1"});w.push({offset:1,transform:"translateX(0)",opacity:"1"});O=V.animate(w,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});V=V.querySelector("path");w=[];var y={offset:0,d:m.L===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'};h&&(y.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))");w.push(y); h&&w.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"});m={offset:1,d:m.L===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};h&&(m.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");w.push(m);V.animate(w,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return O}; xG$=function(m){var V=m.T.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);V.classList.add("ytp-seek-overlay-arrow-additional");V.classList.remove("ytp-seek-overlay-arrow-persistent");m.T.appendChild(V);fhX(m,V,!0,!0).addEventListener("finish",function(){V.remove()})}; qH1=function(m,V,O){O=O===void 0?!0:O;m.D=m.T.animate([{offset:0,opacity:V===void 0?1:V},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});O&&(m.D.addEventListener("finish",function(){m.D=void 0;R7G(m);m.hide()}),m.Z="fading-out")}; oJG=function(m){var V=Number(getComputedStyle(m.T).opacity),O;(O=m.D)==null||O.cancel();m.D=void 0;return V}; R7G=function(m){m.K=0;m.Z="hidden";m.L=void 0;m.T=void 0;m.N.stop();m.D=void 0}; gJ1=function(m,V,O){m.updateValue("text",V);if(O){a:{switch(O){case "PREMIUM_STANDALONE":V=LBG();break a;case "PREMIUM_STANDALONE_CAIRO":V=J8$();break a}V=void 0}m.updateValue("icon",V)}V=g.D(m.Zu.getAnimations());for(O=V.next();!O.done;O=V.next())O.value.cancel();m.Zu.animate([{offset:0,opacity:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){m.updateValue("text","");m.updateValue("icon","")})}; on=function(m,V,O,h){h=h===void 0?240:h;g.p.call(this,{G:"button",KA:["ytp-button","ytp-share-button"],B:{title:m.Y("player_tooltip_data_title_killswitch")?"Compartilhar":"","data-tooltip-title":"Compartilhar","aria-haspopup":"true","aria-owns":O.element.id,"data-tooltip-opaque":String(g.sY(m.j()))},S:[{G:"div",X:"ytp-share-icon",c6:"{{icon}}"},{G:"div",X:"ytp-share-title",c6:"Compartilhar"}]});this.api=m;this.Z=V;this.L=O;this.D=h;this.visible=!1;this.tooltip=this.Z.XJ();m.createClientVe(this.element, this,28664);this.listen("click",this.onClick);this.C(m,"videodatachange",this.oY);this.C(m,"videoplayerreset",this.oY);this.C(m,"appresize",this.oY);this.C(m,"presentingplayerstatechange",this.oY);this.oY();this.addOnDisposeCallback(g.DZ(this.tooltip,this.element))}; A27=function(m){var V=m.api.j(),O=m.api.getVideoData(),h=g.sY(V)&&g.ZZ(m.api)&&g.l(m.api.getPlayerStateObject(),128);V=V.D||V.disableSharing&&m.api.getPresentingPlayerType()!==2||!O.showShareButton||O.zf||h||O.Sb||!1;h=m.api.xN().getPlayerSize().width;return!!O.videoId&&h>=m.D&&!V}; UGC=function(m,V){V.name!=="InvalidStateError"&&V.name!=="AbortError"&&(V.name==="NotAllowedError"?(m.Z.GE(),VF(m.L,m.element,!1)):g.kL(V))}; tga=function(m,V){var O=jO(),h=m.j();O={G:"div",X:"ytp-share-panel",B:{id:jO(),role:"dialog","aria-labelledby":O},S:[{G:"div",X:"ytp-share-panel-inner-content",S:[{G:"div",X:"ytp-share-panel-title",B:{id:O},c6:"Compartilhar"},{G:"a",KA:["ytp-share-panel-link","ytp-no-contextmenu"],B:{href:"{{link}}",target:h.Qt,title:"Compartilhar link","aria-label":"{{shareLinkWithUrl}}"},c6:"{{linkText}}"},{G:"label",X:"ytp-share-panel-include-playlist",S:[{G:"input",X:"ytp-share-panel-include-playlist-checkbox", B:{type:"checkbox",checked:"true"}},"Incluir lista de reprodu\u00e7\u00e3o"]},{G:"div",X:"ytp-share-panel-loading-spinner",S:[dd()]},{G:"div",X:"ytp-share-panel-service-buttons",c6:"{{buttons}}"},{G:"div",X:"ytp-share-panel-error",c6:"Ocorreu um erro ao recuperar informa\u00e7\u00f5es de compartilhamento. Tente novamente mais tarde."}]},{G:"button",KA:["ytp-share-panel-close","ytp-button"],B:{title:"Fechar"},S:[g.Ah()]}]};g.Pz.call(this,m,O,250);var w=this;this.moreButton=null;this.api=m;this.tooltip= V.XJ();this.L=[];this.T=this.LA("ytp-share-panel-inner-content");this.closeButton=this.LA("ytp-share-panel-close");this.C(this.closeButton,"click",this.EU);this.addOnDisposeCallback(g.DZ(this.tooltip,this.closeButton));this.D=this.LA("ytp-share-panel-include-playlist-checkbox");this.C(this.D,"click",this.oY);this.Z=this.LA("ytp-share-panel-link");this.addOnDisposeCallback(g.DZ(this.tooltip,this.Z));this.api.createClientVe(this.Z,this,164503);this.C(this.Z,"click",function(y){y.preventDefault();w.api.logClick(w.Z); var L=w.api.getVideoUrl(!0,!0,!1,!1);L=dGo(w,L);g.Aj(L,w.api,y)&&w.api.bH("SHARE_CLICKED")}); this.listen("click",this.Ys);this.C(m,"videoplayerreset",this.hide);this.C(m,"fullscreentoggled",this.onFullscreenToggled);this.C(m,"onLoopRangeChange",this.e30);this.hide()}; XW$=function(m,V){Kjm(m);for(var O=V.links||V.shareTargets,h=0,w={},y=0;y0&&!z&&!n?(N.length===2&&(N=["noreferrer"]),g.Di(R,K,x,N[0]),R=DQ5()):(X=r.join(","),vM()&&R.navigator&&R.navigator.standalone&&x&&x!="_self"?(X=g.Yc("A"),g.$p(X,K),X.target=x,c&&(X.rel="noreferrer"),((A=A.attributionsrc)||A==="")&&X.setAttribute("attributionsrc",A),A=document.createEvent("MouseEvent"), A.initMouseEvent("click",!0,!0,R,1),X.dispatchEvent(A),R=DQ5()):c?(R=g.Di(R,"",x,X),A=g.K2(K),R&&(R.opener=null,A===""&&(A="javascript:''"),A='',A=rX(A),(K=R.document)&&K.write&&(K.write(cM(A)),K.close()))):((R=g.Di(R,K,x,X))&&A.noopener&&(R.opener=null),R&&A.noreferrer&&(R.opener=null)));R&&(R.opener||(R.opener=window),R.focus());f.preventDefault()}}}(w)); w.y8.addOnDisposeCallback(g.DZ(m.tooltip,w.y8.element));C==="Facebook"?m.api.createClientVe(w.y8.element,w.y8,164504):C==="Twitter"&&m.api.createClientVe(w.y8.element,w.y8,164505);m.C(w.y8.element,"click",function(M){return function(){m.api.logClick(M.y8.element)}}(w)); m.api.logVisibility(w.y8.element,!0);m.L.push(w.y8);h++}}var E=V.more||V.moreLink,q=new g.p({G:"a",KA:["ytp-share-panel-service-button","ytp-button"],S:[{G:"span",X:"ytp-share-panel-service-button-more",S:[{G:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{G:"rect",B:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",B:{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"}}]}]}],B:{href:E,target:"_blank",title:"Mais"}});q.listen("click",function(M){var f=E;m.api.logClick(m.moreButton.element);f=dGo(m,f);g.Aj(f,m.api,M)&&m.api.bH("SHARE_CLICKED")}); q.addOnDisposeCallback(g.DZ(m.tooltip,q.element));m.api.createClientVe(q.element,q,164506);m.C(q.element,"click",function(){m.api.logClick(q.element)}); m.api.logVisibility(q.element,!0);m.L.push(q);m.moreButton=q;m.updateValue("buttons",m.L)}; dGo=function(m,V){var O={};g.sY(m.api.j())&&(g.dm(m.api,"addEmbedsConversionTrackingParams",[O]),V=g.N_(V,O));return V}; Kjm=function(m){for(var V=g.D(m.L),O=V.next();!O.done;O=V.next())O=O.value,O.detach(),g.Ag(O);m.L=[]}; ge=function(m){return m===void 0||m.startSec===void 0||m.endSec===void 0?!1:!0}; HB3=function(m,V){m.startSec+=V;m.endSec+=V}; $G1=function(m){oL.call(this,m);this.D=this.Z=this.isContentForward=this.N=!1;this.element.setAttribute("data-overlay-order","8");TF7(this);this.C(this.U,"changeProductsInVideoVisibility",this.c66);this.C(this.U,"videodatachange",this.onVideoDataChange)}; YHm=function(m){m.K&&m.EH.element.removeChild(m.K.element);m.K=void 0}; r2p=function(m,V){return V.map(function(O){var h,w;if((O=(h=g.d(O,kep))==null?void 0:(w=h.thumbnail)==null?void 0:w.thumbnails)&&O.length!==0)return O[0].url}).filter(function(O){return O!==void 0}).map(function(O){O=new g.p({G:"img", X:"ytp-suggested-action-product-thumbnail",B:{alt:"",src:O}});g.a(m,O);return O})}; c2G=function(m,V){m.isContentForward=V;g.xN(m.badge.element,"ytp-suggested-action-badge-content-forward",V)}; Al=function(m){var V=m.isContentForward&&!m.Gt();g.xN(m.badge.element,"ytp-suggested-action-badge-preview-collapsed",V&&m.Z);g.xN(m.badge.element,"ytp-suggested-action-badge-preview-expanded",V&&m.D)}; U5=function(m,V,O){return new g.a2(m*1E3,V*1E3,{priority:9,namespace:O})}; DG0=function(m){m.U.FJ("shopping_overlay_visible");m.U.FJ("shopping_overlay_preview_collapsed");m.U.FJ("shopping_overlay_preview_expanded");m.U.FJ("shopping_overlay_expanded")}; TF7=function(m){m.C(m.U,g.Gu("shopping_overlay_visible"),function(){m.zB(!0)}); m.C(m.U,g.pR("shopping_overlay_visible"),function(){m.zB(!1)}); m.C(m.U,g.Gu("shopping_overlay_expanded"),function(){m.Ae=!0;RL(m)}); m.C(m.U,g.pR("shopping_overlay_expanded"),function(){m.Ae=!1;RL(m)}); m.C(m.U,g.Gu("shopping_overlay_preview_collapsed"),function(){m.Z=!0;Al(m)}); m.C(m.U,g.pR("shopping_overlay_preview_collapsed"),function(){m.Z=!1;Al(m)}); m.C(m.U,g.Gu("shopping_overlay_preview_expanded"),function(){m.D=!0;Al(m)}); m.C(m.U,g.pR("shopping_overlay_preview_expanded"),function(){m.D=!1;Al(m)})}; nJI=function(m){g.p.call(this,{G:"div",X:"ytp-shorts-title-channel",S:[{G:"a",X:"ytp-shorts-title-channel-logo",B:{href:"{{channelLink}}",target:m.j().Qt,"aria-label":"{{channelLogoLabel}}"}},{G:"div",X:"ytp-shorts-title-expanded-heading",S:[{G:"div",X:"ytp-shorts-title-expanded-title",S:[{G:"a",c6:"{{expandedTitle}}",B:{href:"{{channelTitleLink}}",target:m.j().Qt,tabIndex:"0"}}]}]}]});var V=this;this.api=m;this.Z=this.LA("ytp-shorts-title-channel-logo");this.channelName=this.LA("ytp-shorts-title-expanded-title"); this.subscribeButton=null;m.createClientVe(this.Z,this,36925);this.C(this.Z,"click",function(O){V.api.logClick(V.Z);g.Di(window,NFG(V));O.preventDefault()}); m.createClientVe(this.channelName,this,37220);this.C(this.channelName,"click",function(O){V.api.logClick(V.channelName);g.Di(window,NFG(V));O.preventDefault()}); bBp(this);this.C(m,"videodatachange",this.oY);this.C(m,"videoplayerreset",this.oY);this.oY()}; bBp=function(m){if(!m.api.j().UU){var V=m.api.getVideoData(),O=new g.lT("Inscreva-se",null,"Inscrito",null,!0,!1,V.XU,V.subscribed,"channel_avatar",null,m.api,!0);m.api.createServerVe(O.element,m);var h;m.api.setTrackingParams(O.element,((h=V.subscribeButtonRenderer)==null?void 0:h.trackingParams)||null);m.C(O.element,"click",function(){m.api.logClick(O.element)}); m.subscribeButton=O;g.a(m,m.subscribeButton);m.subscribeButton.g0(m.element)}}; NFG=function(m){var V=m.api.j(),O=m.api.getVideoData();O=g.AW(V)+O.fA;if(!g.sY(V))return O;V={};g.dm(m.api,"addEmbedsConversionTrackingParams",[V]);return g.N_(O,V)}; de=function(m){g.Pz.call(this,m,{G:"button",KA:["ytp-skip-intro-button","ytp-popup","ytp-button"],S:[{G:"div",X:"ytp-skip-intro-button-text",c6:"Pular introdu\u00e7\u00e3o"}]},100);var V=this;this.L=!1;this.Z=new g.mq(function(){V.hide()},5E3); this.mP=this.wb=NaN;g.a(this,this.Z);this.J=function(){V.show()}; this.T=function(){V.hide()}; this.D=function(){var O=V.U.getCurrentTime();O>V.wb/1E3&&O0?{G:"svg",B:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},S:[{G:"path",KA:["ytp-circle-arrow","ytp-svg-fill"],B:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {G:"text",KA:["ytp-jump-button-text","ytp-svg-fill"],B:{x:"7.05",y:"15.05"}}]}:{G:"svg",B:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},S:[{G:"path",KA:["ytp-circle-arrow","ytp-svg-fill"],B:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {G:"text",KA:["ytp-jump-button-text","ytp-svg-fill"],B:{x:"6.5",y:"15"}}]}]});var O=this;this.U=m;this.Z=V;this.L=new g.mq(function(){O.D?(O.D=!1,O.L.start()):O.element.classList.remove("ytp-jump-spin","backwards")},250); this.D=!1;(V=V>0)?this.U.createClientVe(this.element,this,36843):this.U.createClientVe(this.element,this,36844);var h=g.w0(V?"Avance $SECONDS segundos. (\u2192)":"Volte $SECONDS segundos. (\u2190)",{SECONDS:Math.abs(this.Z).toString()});this.U.Y("player_tooltip_data_title_killswitch")?this.update({title:h,"data-title-no-tooltip":h,"aria-keyshortcuts":V?"\u2192":"\u2190"}):this.update({"tooltip-title":h,"data-title-no-tooltip":h,"aria-keyshortcuts":V?"\u2192":"\u2190"});this.T=this.element.querySelector(".ytp-jump-button-text"); this.T.textContent=Math.abs(this.Z).toString();this.listen("click",this.onClick,this);bb(m,this.element,this)}; Fj$=function(m,V){V?m.element.classList.add("ytp-jump-button-enabled"):m.element.classList.remove("ytp-jump-button-enabled");m.U.logVisibility(m.element,V);m.U.cj()}; $6=function(m,V){K_.call(this,m,V,"timedMarkerCueRange","Momentos importantes da visualiza\u00e7\u00e3o");this.C(m,g.pR("timedMarkerCueRange"),this.Yf);this.C(m,"updatemarkervisibility",this.updateVideoData)}; ahU=function(m){var V,O=(V=m.U.getVideoData())==null?void 0:V.EH;if(O)for(m=m.T.Xr,O=g.D(O),V=O.next();!V.done;V=O.next())if(V=m[V.value]){var h=void 0,w=void 0,y=void 0;if(((h=V.onTap)==null?void 0:(w=h.innertubeCommand)==null?void 0:(y=w.changeEngagementPanelVisibilityAction)==null?void 0:y.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return V}}; Y6=function(m){g.p.call(this,{G:"button",KA:["ytp-miniplayer-button","ytp-button"],B:{title:m.Y("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},S:["{{icon}}"]});this.U=m;this.visible=!1;this.listen("click",this.onClick);this.C(m,"fullscreentoggled",this.oY);this.U.Y("player_tooltip_data_title_killswitch")? this.update({title:g.S3(m,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:iB0(this)}):this.update({"tooltip-title":g.S3(m,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:iB0(this)});bb(m,this.element,this);m.createClientVe(this.element,this,62946);this.oY()}; iB0=function(m){return m.U.Y("delhi_modern_web_player_icons")?VU0():Hn()}; k6=function(m,V,O,h,w,y){y=y===void 0?!1:y;var L={G:"div",KA:["ytp-input-slider-section"],S:[{G:"input",X:"ytp-input-slider",B:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}","aria-valuemin":"{{ariaMinValue}}","aria-valuemax":"{{ariaMaxValue}}","aria-valuenow":"{{ariaValueNow}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};w&&L.S.unshift(w);y&&L.KA.push("ytp-vertical-slider");g.p.call(this,L);this.D=m;this.K=V;this.N=O;this.initialValue=h;this.header=w;this.T=0; this.Z=this.LA("ytp-input-slider");this.L=h?h:m;this.init();this.C(this.Z,"input",this.RX);this.C(this.Z,"keydown",this.v4)}; re=function(m,V,O){O=O===void 0?!1:O;m.T&&(cancelAnimationFrame(m.T),m.T=0);O?GeU(m,m.L,V):pW5(m,V)}; pW5=function(m,V){m.L=V;m.update({slidervalue:m.L,ariaValueNow:m.L});m.Z.valueAsNumber=m.L;BFo(m,V)}; GeU=function(m,V,O){var h=performance.now(),w=O-V;if(w!==0){var y=function(L){L=(L-h)/400;L>1&&(L=1);pW5(m,V+w*KoG(lh7,Woa(lh7,L)));m.T=L<1?requestAnimationFrame(y):0}; m.T=requestAnimationFrame(y)}}; BFo=function(m,V){m.Z.style.setProperty("--yt-slider-shape-gradient-percent",(V-m.D)/(m.K-m.D)*100+"%")}; ck=function(m){var V=m.isMuted()?0:m.getVolume();k6.call(this,0,100,1,V,void 0,!0);this.U=m;this.V=lN(this.Ae,10,this);this.J=!1;this.C(m,"onVolumeChange",this.onVolumeChange);this.C(this.element,"wheel",this.Zu)}; QOp=function(m,V){g.p.call(this,{G:"div",B:{tabindex:"0",title:m.Y("player_tooltip_data_title_killswitch")?"Volume":"","data-tooltip-title":"Volume","data-tooltip-offset-y":"-120"},KA:["ytp-volume-popover"]});var O=this;this.isVisible=!1;this.tooltip=V.XJ();this.L=new ck(m);g.a(this,this.L);this.L.g0(this.element);this.Z=new g.mq(function(){D_(O,!1)},300); this.listen("mouseenter",function(){O.Z.stop()}); this.listen("mouseleave",function(){O.Z.start()}); this.listen("focus",function(){O.Z.stop()}); this.C(this.L.Z,"focus",function(){O.Z.stop()}); this.listen("focusout",function(){O.Z.start();O.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.DZ(V.XJ(),this.element));g.a(this,this.Z)}; D_=function(m,V){m.element.classList.toggle("ytp-volume-popover-hovering",V);m.isVisible=V;(m=m.element.closest(".ytp-chrome-bottom"))&&m.classList.toggle("ytp-volume-popover-showing",V)}; ND=function(m,V,O){O=O===void 0?!1:O;var h=m.j().EH?{"aria-keyshortcuts":"m","aria-label":"{{aria-label}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}","data-tooltip-title":"{{tooltip-title}}",title:m.Y("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};h=m.Y("delhi_modern_web_player")?{G:"div",X:"ytp-mute-button",S:[{G:"button",B:h,KA:["ytp-volume-icon", "ytp-button"],c6:"{{icon}}"}]}:{G:"button",KA:["ytp-mute-button","ytp-button"],B:h,S:[{G:"div",X:"ytp-volume-icon",c6:"{{icon}}"}]};g.p.call(this,h);this.U=m;this.H6=O;this.L=null;this.N=this.mS=this.V=this.J=NaN;this.iH=this.Zu=null;this.K=[];this.T=[];this.visible=!1;this.D=this.Z=this.Ae=null;m.Y("delhi_modern_web_player")&&this.update({"data-priority":4});O=this.U.j();this.updateValue("icon",cn());this.tooltip=V.XJ();this.updateValue("dataTooltipOffsetY",0);this.D=g.KK("ytp-volume-icon",this.element); h=this.U.Y("delhi_modern_web_player_icons")?{G:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",KA:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],B:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z", fill:"#fff"}},{G:"path",X:"ytp-svg-volume-animation-small-ripple",B:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05", fill:"#fff"}},{G:"path",X:"ytp-svg-volume-animation-big-ripple",B:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z", fill:"#fff"}}]}:{G:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"defs",S:[{G:"clipPath",B:{id:"ytp-svg-volume-animation-mask"},S:[{G:"path",B:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{G:"path",B:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{G:"path",X:"ytp-svg-volume-animation-mover",B:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{G:"clipPath",B:{id:"ytp-svg-volume-animation-slash-mask"},S:[{G:"path",X:"ytp-svg-volume-animation-mover", B:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{G:"path",Df:!0,KA:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],B:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{G:"path",Df:!0,KA:["ytp-svg-fill","ytp-svg-volume-animation-hider"],B:{"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"}}]};this.L=new g.Ly(h);g.a(this,this.L);this.Zu=this.L.LA("ytp-svg-volume-animation-speaker");this.iH=this.Zu.getAttribute("d");this.K=g.d4("ytp-svg-volume-animation-mover",this.L.element);this.U.Y("delhi_modern_web_player_icons");this.T=g.d4("ytp-svg-volume-animation-hider",this.L.element);this.U.Y("delhi_modern_web_player_icons");this.EH=new s$;g.a(this,this.EH);this.v6=new s$;g.a(this,this.v6);this.C(m,"appresize",this.au);this.C(m,"onVolumeChange",this.onVolumeChange);m.Y("delhi_modern_web_player")? this.listen("click",this.vAt):this.listen("click",this.jX);O.EH?(m.Y("delhi_modern_web_player")&&!m.Y("delhi_modern_web_player_horizontal_volume_controls")&&(this.Z=new QOp(m,V),this.Z.g0(this.element),g.a(this,this.Z),this.C(this.D,"mouseover",this.XW),this.C(this.D,"focus",this.XW),this.C(this.D,"mouseout",this.KJ),this.C(this.D,"blur",this.KJ)),O=m.Y("delhi_modern_web_player")?this.D:this.element,this.addOnDisposeCallback(g.DZ(V.XJ(),O))):vJC(this);this.message=null;m.createClientVe(this.element, this,28662);this.au(m.xN().getPlayerSize());this.setVolume(m.getVolume(),m.isMuted())}; P31=function(m,V){if(m.U.j().EH){var O=g.S3(m.U,"Sem \u00e1udio","m"),h=g.S3(m.U,"Reativar o som","m");O=V?h:O;m.U.j().Y("player_tooltip_data_title_killswitch")?m.updateValue("title",O):m.update({"tooltip-title":O,"aria-label":O});m.update({"data-title-no-tooltip":V?"Reativar o som":"Sem \u00e1udio"});m.tooltip.cj()}}; Oip=function(m,V){m.J=V;var O=m.iH;m.U.Y("delhi_modern_web_player_icons")?m.L.LA("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(V+") translate(-22,-12)")):V&&(O+=lx$(mIl,VEU,V));m.Zu.setAttribute("d",O)}; hS1=function(m,V){var O;V===1?O=m.U.Y("delhi_modern_web_player_icons")?{G:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{d:"M11.60 2.08L11.48 2.14L3.91 6.68C3.02 7.21 2.28 7.97 1.77 8.87C1.26 9.77 1.00 10.79 1 11.83V12.16L1.01 12.56C1.07 13.52 1.37 14.46 1.87 15.29C2.38 16.12 3.08 16.81 3.91 17.31L11.48 21.85C11.63 21.94 11.80 21.99 11.98 21.99C12.16 22.00 12.33 21.95 12.49 21.87C12.64 21.78 12.77 21.65 12.86 21.50C12.95 21.35 13 21.17 13 21V3C12.99 2.83 12.95 2.67 12.87 2.52C12.80 2.37 12.68 2.25 12.54 2.16C12.41 2.07 12.25 2.01 12.08 2.00C11.92 1.98 11.75 2.01 11.60 2.08ZM4.94 8.4V8.40L11 4.76V19.23L4.94 15.6C4.38 15.26 3.92 14.80 3.58 14.25C3.24 13.70 3.05 13.07 3.00 12.43L3 12.17V11.83C2.99 11.14 3.17 10.46 3.51 9.86C3.85 9.25 4.34 8.75 4.94 8.4ZM21.29 8.29L19 10.58L16.70 8.29L16.63 8.22C16.43 8.07 16.19 7.99 15.95 8.00C15.70 8.01 15.47 8.12 15.29 8.29C15.12 8.47 15.01 8.70 15.00 8.95C14.99 9.19 15.07 9.43 15.22 9.63L15.29 9.70L17.58 12L15.29 14.29C15.19 14.38 15.12 14.49 15.06 14.61C15.01 14.73 14.98 14.87 14.98 15.00C14.98 15.13 15.01 15.26 15.06 15.39C15.11 15.51 15.18 15.62 15.28 15.71C15.37 15.81 15.48 15.88 15.60 15.93C15.73 15.98 15.86 16.01 15.99 16.01C16.12 16.01 16.26 15.98 16.38 15.93C16.50 15.87 16.61 15.80 16.70 15.70L19 13.41L21.29 15.70L21.36 15.77C21.56 15.93 21.80 16.01 22.05 15.99C22.29 15.98 22.53 15.88 22.70 15.70C22.88 15.53 22.98 15.29 22.99 15.05C23.00 14.80 22.93 14.56 22.77 14.36L22.70 14.29L20.41 12L22.70 9.70C22.80 9.61 22.87 9.50 22.93 9.38C22.98 9.26 23.01 9.12 23.01 8.99C23.01 8.86 22.98 8.73 22.93 8.60C22.88 8.48 22.81 8.37 22.71 8.28C22.62 8.18 22.51 8.11 22.39 8.06C22.26 8.01 22.13 7.98 22.00 7.98C21.87 7.98 21.73 8.01 21.61 8.06C21.49 8.12 21.38 8.19 21.29 8.29Z", fill:"white"}}]}:cn():O=m.L;m.mS=V;if(m.U.Y("delhi_modern_web_player_icons"))m.L.LA("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-V+") translate(-18,-12)")),m.L.LA("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(m.J-V+") translate(-22, -12)"));else{for(var h=20*V,w=0;w=3&&m.U.getPresentingPlayerType()!==2}; Ct$=function(m){var V=zc(m.U.Gp());return V?m.Z?V.hasNext():V.hasPrevious():!1}; jka=function(m){var V={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},O=m.playlist!=null&&m.playlist.hasNext();O=g.ZZ(m.U)&&(!m.Z||O);var h=m.Z&&g.Gc(m.U),w=Ct$(m),y=m.Z&&m.U.getPresentingPlayerType()===5,L=g.S3(m.U,"Pr\u00f3ximo","SHIFT+n"),C=g.S3(m.U,"Anterior","SHIFT+p");if(y)V.title="Iniciar v\u00eddeo",V["tooltip-title"]="Iniciar v\u00eddeo";else if(m.D)V.title="Reiniciar",V["tooltip-title"]="Reiniciar";else if(O){var E= null;m.playlist&&(E=g.M8(m.playlist,m.Z?Zf3(m.playlist):sLl(m.playlist)));if(E){if(E.videoId){var q=m.playlist.listId;V.url=m.U.j().getVideoUrl(E.videoId,q?q.toString():void 0)}V.text=E.title;V.duration=E.lengthText?E.lengthText:E.lengthSeconds?g.KX(E.lengthSeconds):null;V.preview=E.MV("mqdefault.jpg")}m.Z?(V.title=L,V["tooltip-title"]=L,V["data-title-no-tooltip"]="Pr\u00f3ximo",V["aria-keyshortcuts"]="SHIFT+n"):(V.title=C,V["tooltip-title"]=C,V["data-title-no-tooltip"]="Anterior",V["aria-keyshortcuts"]= "SHIFT+p")}else if(h){if(C=(E=m.videoData)==null?void 0:g.R5(E))V.url=C.rd(),V.text=C.title,V.duration=C.lengthText?C.lengthText:C.lengthSeconds?g.KX(C.lengthSeconds):null,V.preview=C.MV("mqdefault.jpg");V.title=L;V["tooltip-title"]=L;V["data-title-no-tooltip"]="Pr\u00f3ximo";V["aria-keyshortcuts"]="SHIFT+n"}V.disabled=!h&&!O&&!w&&!y;m.update(V);m.N=!!V.url;h||O||m.D||w||y?m.L||(m.L=g.DZ(m.tooltip,m.element),m.K=m.listen("click",m.onClick,m)):m.L&&(m.L(),m.L=null,m.yu(m.K),m.K=null);m.tooltip.cj(); g.xN(m.element,"ytp-playlist-ui",m.Z&&(O||m.U.Y("web_hide_next_button")))}; yfo=function(m,V){return m?V?Opm():Ky():V?{G:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{d:"M4 4C3.73 4 3.48 4.10 3.29 4.29C3.10 4.48 3 4.73 3 5V19C3 19.26 3.10 19.51 3.29 19.70C3.48 19.89 3.73 20 4 20C4.26 20 4.51 19.89 4.70 19.70C4.89 19.51 5 19.26 5 19V5C5 4.73 4.89 4.48 4.70 4.29C4.51 4.10 4.26 4 4 4ZM18.95 4.23L6 12.00L18.95 19.77C19.15 19.89 19.39 19.96 19.63 19.96C19.87 19.97 20.10 19.91 20.31 19.79C20.52 19.67 20.69 19.50 20.81 19.29C20.93 19.09 21.00 18.85 21 18.61V5.38C20.99 5.14 20.93 4.91 20.81 4.70C20.69 4.50 20.52 4.33 20.31 4.21C20.10 4.09 19.87 4.03 19.63 4.03C19.39 4.04 19.15 4.10 18.95 4.23Z", fill:"white"}}]}:CFX()}; qOm=function(m,V){g.p.call(this,{G:"div",X:"ytp-fine-scrubbing",S:[{G:"div",X:"ytp-fine-scrubbing-draggable",S:[{G:"div",X:"ytp-fine-scrubbing-thumbnails",B:{tabindex:"0",role:"slider",type:"range","aria-label":"Clique ou role o painel at\u00e9 a busca precisa","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{G:"div",B:{"aria-hidden":"true"},X:"ytp-fine-scrubbing-cursor"},{G:"div",X:"ytp-fine-scrubbing-seek-time",B:{"aria-hidden":"true"}, c6:"{{seekTime}}"},{G:"div",X:"ytp-fine-scrubbing-play",S:[m.Y("delhi_modern_web_player_icons")?$0():TY()],B:{title:"Reproduzir desta posi\u00e7\u00e3o",role:"button"}},{G:"div",X:"ytp-fine-scrubbing-dismiss",S:[g.Ah()],B:{title:"Sair da busca precisa",role:"button"}}]});var O=this;this.api=m;this.K=this.LA("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.LA("ytp-fine-scrubbing-dismiss");this.mS=this.LA("ytp-fine-scrubbing-draggable");this.playButton=this.LA("ytp-fine-scrubbing-play");this.thumbnails= [];this.L=[];this.H6=this.Z=0;this.EH=void 0;this.Zu=NaN;this.fA=this.V=this.D=this.J=0;this.T=[];this.interval=this.frameCount=0;this.N=160;this.scale=1;this.Mf=0;this.isEnabled=this.iH=!1;ER0(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.DZ(V,this.dismissButton));this.addOnDisposeCallback(g.DZ(V,this.playButton));this.v6=new g.rh(this.mS,!0);this.v6.subscribe("dragstart",this.H4,this);this.v6.subscribe("dragmove",this.KI,this);this.v6.subscribe("dragend",this.oN,this);this.C(m,"SEEK_COMPLETE", this.tE);m.Y("web_fix_fine_scrubbing_false_play")&&this.C(m,"rootnodemousedown",function(h){O.Ae=h}); this.K.addEventListener("keydown",function(){}); g.a(this,this.v6);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.K,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; ER0=function(m,V){var O=g.KX(V),h=g.w0("Procurar $PROGRESS",{PROGRESS:g.KX(V,!0)});m.update({ariamin:0,ariamax:Math.floor(m.api.getDuration()),arianow:Math.floor(V),arianowtext:h,seekTime:O})}; ME3=function(m){m.Zu=NaN;m.V=0;m.J=m.D}; RSC=function(m){var V=m.api.NL();if(V){var O=90*m.scale,h=PB(V,160*m.scale);if(V=V.levels[h]){m.N=V.width;if(!m.T.length){h=[];for(var w=mY(V,V.p5()),y=V.columns*V.rows,L=V.frameCount,C=0;C<=w;C++)for(var E=Lm.T.length;)h= void 0,(h=m.thumbnails.pop())==null||h.dispose();for(;m.thumbnails.lengthO.length;)h=void 0,(h=m.L.pop())==null||h.dispose(); for(;m.L.length-O?-V/O*m.interval*.5:-(V+O/2)/O*m.interval}; oRo=function(m){return-((m.K.offsetWidth||(m.frameCount-1)*m.N*m.scale)-m.Z/2)}; fG0=function(){g.p.call(this,{G:"div",X:"ytp-fine-scrubbing-thumbnail"})}; xIX=function(){g.p.call(this,{G:"div",X:"ytp-fine-scrubbing-chapter-title",S:[{G:"div",X:"ytp-fine-scrubbing-chapter-title-content",c6:"{{chapterTitle}}"}]})}; Af0=function(m){g.p.call(this,{G:"div",X:"ytp-heat-map-chapter",S:[{G:"svg",X:"ytp-heat-map-svg",B:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},S:[{G:"defs",S:[{G:"clipPath",B:{id:"{{id}}"},S:[{G:"path",X:"ytp-heat-map-path",B:{d:"",fill:"white"}}]},{G:"linearGradient",B:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},S:[{G:"stop",B:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{G:"stop",B:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{G:"rect",X:"ytp-heat-map-graph",B:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{G:"rect",X:"ytp-heat-map-hover",B:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{G:"rect",X:"ytp-heat-map-play",B:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{G:"path",X:"ytp-modern-heat-map",B:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"1","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=m;this.J=this.LA("ytp-heat-map-svg");this.K=this.LA("ytp-heat-map-path");this.T=this.LA("ytp-heat-map-graph");this.N=this.LA("ytp-heat-map-play");this.Z=this.LA("ytp-heat-map-hover");this.D=this.LA("ytp-modern-heat-map");this.o8=!1;this.L=60;m=""+g.S$(this);this.update({id:m});m="url(#"+m+")";this.T.setAttribute("clip-path",m);this.N.setAttribute("clip-path",m);this.Z.setAttribute("clip-path",m)}; UIX=function(m,V){V>0&&(m.L=V,m.J.style.height=m.L+"px")}; In=function(){g.p.call(this,{G:"div",X:"ytp-chapter-hover-container",S:[{G:"div",X:"ytp-progress-bar-padding"},{G:"div",X:"ytp-progress-list",S:[{G:"div",KA:["ytp-play-progress","ytp-swatch-background-color"]},{G:"div",X:"ytp-progress-linear-live-buffer"},{G:"div",X:"ytp-load-progress"},{G:"div",X:"ytp-hover-progress"},{G:"div",X:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.L=this.LA("ytp-progress-list");this.K=this.LA("ytp-progress-linear-live-buffer"); this.T=this.LA("ytp-ad-progress-list");this.N=this.LA("ytp-load-progress");this.J=this.LA("ytp-play-progress");this.D=this.LA("ytp-hover-progress");this.Z=this.LA("ytp-chapter-hover-container")}; ej=function(m,V){g.wb(m.Z,"width",V)}; dIp=function(m,V){g.wb(m.Z,"margin-right",V+"px")}; tEp=function(){this.L=this.position=this.D=this.Z=this.T=this.width=NaN}; KkI=function(){g.p.call(this,{G:"div",X:"ytp-timed-marker"});this.Z=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.zn=function(m,V){g.ED.call(this,{G:"div",X:"ytp-progress-bar-container",B:{"aria-disabled":"true"},S:[{G:"div",KA:["ytp-heat-map-container"],S:[{G:"div",X:"ytp-heat-map-edu"}]},{G:"div",KA:["ytp-progress-bar"],B:{tabindex:"0",role:"slider","aria-label":"Bot\u00e3o deslizante de busca","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},S:[{G:"div",X:"ytp-chapters-container"},{G:"div",X:"ytp-timed-markers-container"},{G:"div", X:"ytp-clip-start-exclude"},{G:"div",X:"ytp-clip-end-exclude"},{G:"div",X:"ytp-scrubber-container",S:[{G:"div",KA:["ytp-scrubber-button","ytp-swatch-background-color"],S:[{G:"div",X:"ytp-scrubber-pull-indicator"},{G:"img",KA:["ytp-decorated-scrubber-button"]}]}]}]},{G:"div",KA:["ytp-fine-scrubbing-container"],S:[{G:"div",X:"ytp-fine-scrubbing-edu"}]},{G:"div",X:"ytp-bound-time-left",c6:"{{boundTimeLeft}}"},{G:"div",X:"ytp-bound-time-right",c6:"{{boundTimeRight}}"},{G:"div",X:"ytp-clip-start",B:{title:"{{clipstarttitle}}"}, c6:"{{clipstarticon}}"},{G:"div",X:"ytp-clip-end",B:{title:"{{clipendtitle}}"},c6:"{{clipendicon}}"}]});this.api=m;this.on=!1;this.SW=this.zf=this.pA=this.mS=this.N=this.Ak=0;this.WW=null;this.nf=!1;this.Je={};this.Rd={};this.clipEnd=Infinity;this.Id=this.LA("ytp-clip-end");this.l2=new g.rh(this.Id,!0);this.BB=this.LA("ytp-clip-end-exclude");this.iU=this.LA("ytp-clip-start-exclude");this.clipStart=0;this.nP=this.LA("ytp-clip-start");this.Y5=new g.rh(this.nP,!0);this.Zu=this.LP=0;this.progressBar= this.LA("ytp-progress-bar");this.kD={};this.Xr={};this.nA=this.LA("ytp-chapters-container");this.Zd=this.LA("ytp-timed-markers-container");this.Z=[];this.J=[];this.lc={};this.hZ=null;this.EH=-1;this.UU=this.H6=0;this.GB=this.V=null;this.IF=this.LA("ytp-scrubber-button");this.v6=this.LA("ytp-decorated-scrubber-button");this.W7=this.LA("ytp-scrubber-container");this.Aj=new g.yS;this.tq=0;this.lN=new tEp;this.D=new Db(0,0);this.KP=null;this.K=this.Rn=!1;this.RK=null;this.Ae=this.LA("ytp-heat-map-container"); this.VF=this.LA("ytp-heat-map-edu");this.T=[];this.heatMarkersDecorations=[];this.W6=this.LA("ytp-fine-scrubbing-container");this.wB=this.LA("ytp-fine-scrubbing-edu");this.L=void 0;this.fA=this.VV=this.Mf=!1;this.tooltip=V.XJ();this.addOnDisposeCallback(g.DZ(this.tooltip,this.Id));g.a(this,this.l2);this.l2.subscribe("hoverstart",this.QQ,this);this.l2.subscribe("hoverend",this.R6,this);this.C(this.Id,"click",this.wR);this.addOnDisposeCallback(g.DZ(this.tooltip,this.nP));g.a(this,this.Y5);this.Y5.subscribe("hoverstart", this.QQ,this);this.Y5.subscribe("hoverend",this.R6,this);this.C(this.nP,"click",this.wR);Wko(this);this.C(m,"resize",this.Vp);this.C(m,"presentingplayerstatechange",this.bA);this.C(m,"videodatachange",this.dV);this.C(m,"videoplayerreset",this.YHf);this.C(m,"cuerangesadded",this.BM6);this.C(m,"cuerangesremoved",this.IkN);this.C(m,"onLoopRangeChange",this.Oa);this.C(m,"innertubeCommand",this.onClickCommand);this.C(m,"onRetroModeChanged",this.MWH);this.C(m,g.Gu("timedMarkerCueRange"),this.dVS);this.C(m, "updatemarkervisibility",this.yM);this.C(m,"serverstitchedvideochange",this.xLA);this.updateVideoData(m.getVideoData(),!0);this.Oa(m.getLoopRange());us(this)&&!this.L&&(this.L=new qOm(this.api,this.tooltip),m=g.fF(this.element).x||0,this.L.Vp(m,this.N),this.L.g0(this.W6),g.a(this,this.L),this.C(this.L.dismissButton,"click",this.fM),this.C(this.L.playButton,"click",this.JH),this.C(this.L.element,"dblclick",this.JH));this.api.createClientVe(this.Ae,this,139609,!0);this.api.createClientVe(this.VF,this, 140127,!0);this.api.createClientVe(this.wB,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; Wko=function(m){if(m.Z.length===0){var V=new In;m.Z.push(V);g.a(m,V);V.g0(m.nA,0)}for(;m.Z.length>1;)m.Z.pop().dispose();ej(m.Z[0],"100%");m.Z[0].startTime=0;m.Z[0].title=""}; Xe$=function(m){var V=V===void 0?NaN:V;var O=new Af0(m.api);m.T.push(O);g.a(m,O);O.g0(m.Ae);V>=0&&(O.element.style.width=V+"px")}; Hi3=function(m){for(;m.J.length;)m.J.pop().dispose()}; $I5=function(m){var V,O,h,w,y;return(y=g.d((w=g.d((V=m.getWatchNextResponse())==null?void 0:(O=V.playerOverlays)==null?void 0:(h=O.playerOverlayRenderer)==null?void 0:h.decoratedPlayerBarRenderer,sh))==null?void 0:w.playerBar,TYI))==null?void 0:y.chapters}; YOp=function(m){for(var V=m.Z,O=[],h=0;h=L&&K<=M&&y.push(x)}E>0&&(m.Ae.style.height=E+"px");L=m.T[h];M=y;x=w;A=E;K=h===0;K=K===void 0?!1:K;UIX(L,A);f=M;R=L.L;K=K===void 0?!1:K;var X=1E3/f.length,c=[];c.push({x:0,y:100});for(var r=0;r0&&(O=y[y.length-1])}g.Z_(m);C=[];V=g.D(V.heatMarkersDecorations||[]);for(w=V.next();!w.done;w=V.next())if(w=g.d(w.value,nRo))E=w.label,h=O=q=void 0,C.push({visibleTimeRangeStartMillis:(q=w.visibleTimeRangeStartMillis)!=null?q:-1,visibleTimeRangeEndMillis:(O=w.visibleTimeRangeEndMillis)!=null?O:-1,decorationTimeMillis:(h=w.decorationTimeMillis)!=null?h:NaN,label:E?g.fy(E):""});m.heatMarkersDecorations=C}}; cfC=function(m,V){m.J.push(V);g.a(m,V);V.g0(m.Zd,m.Zd.children.length)}; DI1=function(m,V){V=g.D(V);for(var O=V.next();!O.done;O=V.next()){O=O.value;var h=s5(m,O.timeRangeStartMillis/(m.D.Z*1E3),FO(m)),w=m.api.Y("delhi_modern_web_player")?.667:.6;g.wb(O.element,"transform","translateX("+h+"px) scaleX("+w+")")}}; kEI=function(m,V){var O=0,h=!1;V=g.D(V);for(var w=V.next();!w.done;w=V.next()){w=w.value;if(g.d(w,IG3)){w=g.d(w,IG3);var y={startTime:NaN,title:null,onActiveCommand:void 0},L=w.title;y.title=L?g.fy(L):"";L=w.timeRangeStartMillis;L!=null&&(y.startTime=L);y.onActiveCommand=w.onActiveCommand;w=y;O===0&&w.startTime!==0&&(m.Z[O].startTime=0,m.Z[O].title="",m.Z[O].onActiveCommand=w.onActiveCommand,O++,h=!0);m.Z.length<=O&&(y=new In,m.Z.push(y),g.a(m,y),y.g0(m.nA,m.nA.children.length));m.Z[O].startTime= w.startTime;m.Z[O].title=w.title?w.title:"";m.Z[O].onActiveCommand=w.onActiveCommand;m.Z[O].index=h?O-1:O}O++}for(;O=0;h--)if(m.Z[h].width>0){dIp(m.Z[h],0);var w=Math.floor(m.Z[h].width);m.Z[h].width=w;ej(m.Z[h],w+"px");break}m.Z[O].width=0;ej(m.Z[O],"0")}else O===m.Z.length-1?(h=Math.floor(m.Z[O].width+V),m.Z[O].width=h,ej(m.Z[O],h+"px")):(V=m.Z[O].width+V,h=Math.round(V),V-=h,m.Z[O].width=h,ej(m.Z[O],h+"px"));O=0;if(m.T.length===m.Z.length)for(V=0;V< m.T.length;V++)h=m.Z[V].width,m.T[V].element.style.width=h+"px",m.T[V].element.style.left=O+"px",O+=h+is(m);m.api.Y("delhi_modern_web_player")&&(m.Z.length===1?m.Z[0].L.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(m.Z[0].L.classList.remove("ytp-progress-bar-end"),m.Z[0].L.classList.add("ytp-progress-bar-start"),m.Z[m.Z.length-1].L.classList.add("ytp-progress-bar-end")))}; eS$=function(m,V){var O=0,h=!1,w=m.Z.length,y=m.D.Z*1E3;y===0&&(y=m.api.getProgressState().seekableEnd*1E3);if(y>0&&m.N>0){for(var L=m.N-is(m)*m.H6,C=m.UU===0?3:L*m.UU,E=g.D(m.Z),q=E.next();!q.done;q=E.next())q.value.width=0;for(;O1);q=(y===0?0:E/y*L)+m.Z[O].width;if(q>C)m.Z[O].width=q;else{m.Z[O].width=0;var M=m,f=O,x=M.Z[f-1];x!==void 0&&x.width>0? x.width+=q:fm.UU&&(m.UU=E/y),h=!0)}O++}}return h}; an=function(m){if(m.N){var V=m.api.getProgressState(),O=m.api.getVideoData();if(!(O&&O.enableServerStitchedDai&&O.k6)||isFinite(V.current)){var h;if(((h=m.api.getVideoData())==null?0:qE(h))&&V.airingStart&&V.airingEnd)var w=Gn(m,V.airingStart,V.airingEnd);else if(m.api.getPresentingPlayerType()===2){var y,L,C;w=(O=(w=m.api.getVideoData())==null?void 0:(y=w.getPlayerResponse())==null?void 0:(L=y.playerConfig)==null?void 0:(C=L.webPlayerConfig)==null?void 0:C.skippableAdProgressBarDuration)?Gn(m,V.seekableStart, O/1E3):Gn(m,V.seekableStart,V.seekableEnd)}else w=Gn(m,V.seekableStart,V.seekableEnd);y=N6(w,V.loaded,0);V=N6(w,V.current,0);L=m.D.L!==w.L||m.D.Z!==w.Z;m.D=w;p_(m,V,y);L&&uLU(m);zSU(m);V=48;w=m.api.j();y=g.m9(m.api.j().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold");y=m.api.Y("delhi_modern_web_player_compact_controls")||y>0&&m.api.getPlayerSize().width<=y;m.api.Y("delhi_modern_web_player")?V=m.api.getPlayerSize().width<=528?y?56:64:m.K?y?72:96:y?56:72:m.K?V=54:g.sY(w)&& !w.L&&(V=40);m.mS=V}}}; Gn=function(m,V,O){return Zip(m)?new Db(Math.max(V,m.KP.startTimeMs/1E3),Math.min(O,m.KP.endTimeMs/1E3)):new Db(V,O)}; Fk$=function(m,V){var O,h,w;V=g.d((O=V.getWatchNextResponse())==null?void 0:(h=O.playerOverlays)==null?void 0:(w=h.playerOverlayRenderer)==null?void 0:w.decoratedPlayerBarRenderer,sh);if(V==null?0:V.progressColor)for(O=0;O1){O=Bk(m,V.D,!0);for(var h=0,w=0;w0&&(h+=m.Z[w].width,h+=is(m));O=(m.Z[O].startTime+(V.D-h)/m.Z[O].width*((O===m.Z.length-1?m.D.Z*1E3:m.Z[O+1].startTime)-m.Z[O].startTime))/1E3||0}return O}; iip=function(m,V){if(V<0)return"0";m=Math.floor(Math.min(V,m.api.getDuration())*1E3);return m>2147483647?"0":String(m)}; Qk=function(m,V,O,h,w){V=iip(m,V);O=iip(m,O);m=m.progressBar.visualElement;h={seekData:{startMediaTimeMs:V,endMediaTimeMs:O,seekSource:h}};(V=g.t1())&&OD(V,m,w,h)}; GEU=function(m,V,O){if(O>=m.Z.length)return!1;var h=m.N-is(m)*m.H6;return Math.abs(V-m.Z[O].startTime/1E3)/m.D.Z*h<4}; uLU=function(m){m.IF.style.removeProperty("height");for(var V=g.D(Object.keys(m.Je)),O=V.next();!O.done;O=V.next())peG(m,O.value);vk(m);p_(m,m.Zu,m.LP)}; FO=function(m){var V=m.Aj.x;V=g.O2(V,0,m.N);m.lN.update(V,m.N);return m.lN}; p_=function(m,V,O){m.Zu=V;m.LP=O;var h=FO(m),w=m.D.Z,y=s$U(m.D,m.Zu),L=g.w0("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.KX(y,!0),DURATION:g.KX(w,!0)}),C=yk(m.Z,y*1E3);C=m.Z[C].title;m.update({ariamin:Math.floor(m.D.L),ariamax:Math.floor(w),arianow:Math.floor(y),arianowtext:C?C+" "+L:L});w=m.clipStart;y=m.clipEnd;m.KP&&m.api.getPresentingPlayerType()!==2&&(w=m.KP.startTimeMs/1E3,y=m.KP.endTimeMs/1E3);w=N6(m.D,w,0);C=N6(m.D,y,1);L=m.api.getVideoData();y=g.O2(V,w,C);O=(L==null?0:g.JF(L))?1:g.O2(O, w,C);V=s5(m,V,h);g.wb(m.W7,"transform","translateX("+V+"px)");m.api.Y("delhi_modern_web_player")&&m.api.Y("delhi_modern_web_player_cutout")&&BYm(m,V);Pk(m,h,w,y,"PLAY_PROGRESS");(L==null?0:qE(L))?(V=m.api.getProgressState().seekableEnd)&&Pk(m,h,y,N6(m.D,V),"LIVE_BUFFER"):Pk(m,h,w,O,"LOAD_PROGRESS");if(m.api.Y("web_player_heat_map_played_bar")){var E;(E=m.T[0])!=null&&E.N.setAttribute("width",(y*100).toFixed(2)+"%")}}; BYm=function(m,V){m.api.getPresentingPlayerType()!==1?m.nA.style.removeProperty("clip-path"):(V||(V=s5(m,m.Zu,FO(m))),m.nA.style.clipPath='path("'+(m.nf?lG3(m,8,V,m.K?50:36,0,6):lG3(m,4,V,m.K?34:24,2,3))+'")')}; lG3=function(m,V,O,h,w,y){var L=O-h/2;O+=h/2;V+=w;return"M 0 "+w+" L 0 "+(V+" L ")+(L+" "+V+" C ")+(L+y+" "+V+" "+(L+y)+" "+w+" "+L+" "+w+" L 0 ")+(w+" M ")+(O+" "+w+" L ")+(m.N+" "+w+" L ")+(m.N+" "+V+" L ")+(O+" "+V+" C ")+(O-y+" "+V+" "+(O-y)+" "+w+" "+O+" "+w)}; Pk=function(m,V,O,h,w){var y=m.Z.length,L=V.Z-m.H6*is(m),C=O*L;O=Bk(m,C);var E=h*L;L=Bk(m,E);w==="HOVER_PROGRESS"&&(L=Bk(m,V.Z*h,!0),E=V.Z*h-Qkl(m,V.Z*h)*is(m));h=Math.max(C-vR3(m,O),0);for(C=O;C=m.Z.length)return m.N;for(var O=0,h=0;h0||m.BB.clientWidth>0?(y=V.clientWidth/O,m=-1*m.iU.clientWidth/O):(y/=O,m=-1*m.Z[w].element.offsetLeft/O),g.wb(V,"background-size",y+"px"),g.wb(V,"background-position-x",m+"px"))}; mj=function(m,V,O,h,w){w||m.api.j().L?V.style.width=O+"px":g.wb(V,"transform","scalex("+(h?O/h:0)+")")}; Bk=function(m,V,O){var h=0;(O===void 0?0:O)&&(V-=Qkl(m,V)*is(m));O=g.D(m.Z);for(var w=O.next();!w.done;w=O.next()){w=w.value;if(V>w.width)V-=w.width;else break;h++}return h===m.Z.length?h-1:h}; s5=function(m,V,O){var h=V*m.D.Z*1E3;for(var w=-1,y=g.D(m.Z),L=y.next();!L.done;L=y.next())L=L.value,h>L.startTime&&L.width>0&&w++;h=w<0?0:w;w=O.Z-is(m)*m.H6;return V*w+is(m)*h+O.T}; Qkl=function(m,V){for(var O=m.Z.length,h=0,w=g.D(m.Z),y=w.next();!y.done;y=w.next())if(y=y.value,y.width!==0)if(V>y.width)V-=y.width,V-=is(m),h++;else break;return h===O?O-1:h}; g.VQX=function(m,V,O,h){var w=m.N!==O,y=m.K!==h;m.Ak=V;m.N=O;m.K=h;us(m)&&(V=m.L)!=null&&(V.scale=h?1.5:1);uLU(m);m.Z.length===1&&(m.Z[0].width=O||0);w&&g.Z_(m);m.L&&y&&us(m)&&(m.L.isEnabled&&(O=m.K?135:90,h=O-m.mS,m.W6.style.height=O+"px",g.wb(m.Ae,"transform","translateY("+-h+"px)"),g.wb(m.progressBar,"transform","translateY("+-h+"px)")),RSC(m.L))}; vk=function(m){var V=!!m.KP&&m.api.getPresentingPlayerType()!==2,O=m.clipStart,h=m.clipEnd,w=!0,y=!0;V&&m.KP?(O=m.KP.startTimeMs/1E3,h=m.KP.endTimeMs/1E3):(w=O>m.D.L,y=m.D.Z>0&&hm.Zu);g.xN(m.IF,"ytp-scrubber-button-hover",O===h&&m.Z.length>1);if(m.api.Y("web_player_heat_map_played_bar")){var y;(y=m.T[0])!=null&&y.Z.setAttribute("width",(V.L*100).toFixed(2)+"%")}}}; peG=function(m,V){var O=m.Je[V];V=m.Rd[V];var h=FO(m),w=N6(m.D,O.start/1E3,0),y=Lr1(O,m.K)/h.width;var L=N6(m.D,O.end/1E3,1);y!==Number.POSITIVE_INFINITY&&(w=g.O2(w,0,L-y));L=Math.min(L,w+y);O.color&&(V.style.background=O.color);O=w;V.style.left=Math.max(O*h.Z+h.T,0)+"px";mj(m,V,g.O2((L-O)*h.Z+h.T,0,h.width),h.width,!0)}; Oao=function(m,V){var O=V.getId();m.Je[O]===V&&(g.bN(m.Rd[O]),delete m.Je[O],delete m.Rd[O])}; us=function(m){var V=g.Eh(m.api.j())&&(m.api.Y("web_shorts_pip")||m.api.Y("web_watch_pip")),O;return!((O=m.api.getVideoData())==null?0:O.isLivePlayback)&&!m.api.isMinimized()&&!m.api.isInline()&&(!m.api.JZ()||!V)}; VN=function(m){m.L&&(m.L.disable(),m.pA=0,m.Ae.style.removeProperty("transform"),m.progressBar.style.removeProperty("transform"),m.W6.style.removeProperty("height"),m.element.parentElement&&m.element.parentElement.style.removeProperty("height"))}; hs3=function(m,V){var O=V/((m.K?135:90)-m.mS)*m.mS;g.wb(m.progressBar,"transform","translateY("+-V+"px)");g.wb(m.Ae,"transform","translateY("+-V+"px)");g.wb(m.W6,"transform","translateY("+O+"px)");m.W6.style.height=V+O+"px";m.element.parentElement&&(m.element.parentElement.style.height=m.mS-O+"px")}; wxX=function(m,V){V?m.V||(m.element.removeAttribute("aria-disabled"),m.V=new g.rh(m.progressBar,!0),m.api.Y("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&m.V.subscribe("hoverstart",m.myr,m),m.V.subscribe("hovermove",m.Dye,m),m.V.subscribe("hoverend",m.LX0,m),m.V.subscribe("dragstart",m.dyf,m),m.V.subscribe("dragmove",m.z7z,m),m.V.subscribe("dragend",m.IeH,m),m.api&&m.api.Y("delhi_modern_web_player")&&m.api.Y("delhi_modern_web_player_cutout")&&(m.GB=new g.rh(m.progressBar, !0),m.GB.subscribe("hoverstart",function(){m.nf=!0;BYm(m)},m),m.GB.subscribe("hoverend",function(){m.nf=!1; BYm(m)},m)),m.RK=m.listen("keydown",m.sJ)):m.V&&(m.element.setAttribute("aria-disabled","true"),m.yu(m.RK),m.V.cancel(),m.V.dispose(),m.V=null)}; is=function(m){return m.api.Y("delhi_modern_web_player")?4:m.K?3:2}; Zip=function(m){var V;return!((V=m.KP)==null||!V.postId)&&m.api.getPresentingPlayerType()!==2}; OH=function(m,V){g.p.call(this,{G:"button",KA:["ytp-remote-button","ytp-button"],B:{title:m.Y("player_tooltip_data_title_killswitch")?"Reproduzir na TV":"","data-tooltip-title":"Reproduzir na TV","aria-haspopup":"true","data-priority":"10"},c6:"{{icon}}"});this.U=m;this.Qp=V;this.Z=null;this.C(m,"onMdxReceiversChange",this.oY);this.C(m,"presentingplayerstatechange",this.oY);this.C(m,"appresize",this.oY);m.createClientVe(this.element,this,139118);this.oY();this.listen("click",this.L,this);bb(m,this.element, this)}; h2=function(m,V){g.p.call(this,{G:"button",KA:["ytp-button","ytp-settings-button"],B:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":jO(),title:m.Y("player_tooltip_data_title_killswitch")?"Detalhes":"","data-tooltip-title":"Detalhes","data-tooltip-target-id":"ytp-settings-button"},S:[m.Y("delhi_modern_web_player_icons")?{G:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{d:"M12.84 1H11.15C10.72 .99 10.30 1.14 9.95 1.40C9.60 1.66 9.35 2.02 9.23 2.44L9.19 2.61C9.11 3.00 8.96 3.38 8.73 3.71C8.51 4.04 8.22 4.33 7.89 4.55L7.75 4.64C7.37 4.85 6.96 4.98 6.53 5.02C6.11 5.06 5.68 5.01 5.27 4.87C4.86 4.73 4.42 4.73 4.00 4.86C3.59 5.00 3.23 5.26 2.99 5.62L2.89 5.77L2.05 7.23C1.82 7.63 1.73 8.10 1.81 8.55C1.88 9.01 2.12 9.43 2.47 9.73L2.58 9.84C3.15 10.39 3.50 11.15 3.50 12L3.49 12.16C3.47 12.56 3.37 12.95 3.19 13.31C3.01 13.67 2.77 13.99 2.47 14.26C2.12 14.56 1.88 14.98 1.81 15.43C1.73 15.89 1.82 16.36 2.05 16.76L2.89 18.22L2.99 18.37C3.24 18.73 3.59 18.99 4.01 19.13C4.42 19.26 4.86 19.26 5.27 19.12L5.42 19.07C5.81 18.96 6.21 18.93 6.61 18.98C7.01 19.03 7.40 19.15 7.75 19.36L7.89 19.44C8.22 19.66 8.51 19.95 8.73 20.28C8.96 20.61 9.11 20.99 9.19 21.38C9.28 21.84 9.52 22.24 9.88 22.54C10.24 22.83 10.69 23.00 11.15 23H12.84C13.30 23.00 13.75 22.83 14.11 22.54C14.47 22.24 14.71 21.84 14.80 21.38C14.89 20.96 15.06 20.56 15.31 20.21C15.55 19.86 15.88 19.57 16.25 19.36L16.39 19.28C16.75 19.10 17.14 18.99 17.54 18.96C17.94 18.94 18.34 18.99 18.72 19.12L18.89 19.17C19.31 19.27 19.75 19.24 20.15 19.07C20.55 18.90 20.88 18.60 21.10 18.23L21.95 16.76C22.18 16.36 22.26 15.89 22.19 15.43C22.11 14.98 21.88 14.56 21.53 14.26C21.23 13.99 20.98 13.67 20.80 13.31C20.63 12.95 20.52 12.56 20.50 12.16L20.50 12C20.50 11.57 20.59 11.14 20.77 10.75C20.94 10.36 21.20 10.01 21.53 9.73C21.88 9.43 22.11 9.01 22.19 8.55C22.26 8.10 22.18 7.63 21.95 7.23L21.10 5.76C20.88 5.39 20.55 5.09 20.15 4.92C19.76 4.75 19.31 4.72 18.89 4.82L18.72 4.87C18.34 5.00 17.94 5.05 17.54 5.03C17.14 5.00 16.75 4.89 16.4 4.71L16.25 4.63C15.88 4.42 15.56 4.13 15.31 3.78C15.06 3.43 14.89 3.03 14.80 2.61C14.71 2.15 14.47 1.74 14.11 1.45C13.75 1.16 13.30 .99 12.84 1ZM11.15 3H12.84C12.98 3.70 13.26 4.36 13.68 4.94C14.09 5.52 14.63 6.01 15.25 6.37C15.87 6.72 16.55 6.94 17.26 7.01C17.97 7.08 18.69 6.99 19.37 6.76L20.21 8.23C19.67 8.69 19.24 9.27 18.94 9.92C18.65 10.57 18.50 11.28 18.5 12C18.50 12.71 18.65 13.42 18.95 14.07C19.24 14.72 19.67 15.29 20.21 15.76L19.37 17.23C18.69 16.99 17.97 16.91 17.26 16.98C16.55 17.05 15.86 17.27 15.25 17.63C14.63 17.98 14.09 18.47 13.68 19.05C13.26 19.63 12.98 20.29 12.84 21H11.15C11.01 20.29 10.73 19.63 10.31 19.05C9.90 18.47 9.36 17.98 8.75 17.62C8.13 17.27 7.44 17.05 6.73 16.98C6.02 16.91 5.30 16.99 4.62 17.23L3.78 15.76C4.32 15.29 4.75 14.71 5.05 14.06C5.34 13.41 5.49 12.71 5.5 12C5.50 11.28 5.34 10.57 5.05 9.92C4.75 9.27 4.32 8.69 3.78 8.23L4.62 6.76C5.30 7.00 6.02 7.08 6.73 7.01C7.44 6.94 8.13 6.72 8.75 6.37C9.36 6.01 9.90 5.52 10.31 4.94C10.73 4.36 11.01 3.70 11.15 3ZM12.00 8C10.94 8 9.92 8.42 9.17 9.17C8.42 9.92 8.00 10.93 8.00 12C8.00 13.06 8.42 14.07 9.17 14.82C9.92 15.57 10.94 16 12.00 16C13.06 16 14.08 15.57 14.83 14.82C15.58 14.07 16.00 13.06 16.00 12C16.00 10.93 15.58 9.92 14.83 9.17C14.08 8.42 13.06 8 12.00 8ZM12.00 10H12L12.20 10.01C12.69 10.06 13.15 10.29 13.48 10.65C13.81 11.02 14.00 11.50 14 12L13.99 12.20C13.95 12.58 13.80 12.95 13.55 13.25C13.31 13.55 12.98 13.78 12.62 13.90C12.25 14.02 11.85 14.03 11.48 13.93C11.11 13.83 10.77 13.62 10.51 13.34C10.25 13.05 10.08 12.69 10.02 12.31C9.96 11.93 10.01 11.54 10.17 11.18C10.32 10.83 10.58 10.53 10.91 10.32C11.23 10.11 11.61 10.00 12 10", fill:"white"}}]}:g.k0()]});this.U=m;this.Qp=V;this.L=!0;this.listen("click",this.D);this.C(m,"onPlaybackQualityChange",this.updateBadge);this.C(m,"videodatachange",this.updateBadge);this.C(m,"webglsettingschanged",this.updateBadge);this.C(m,"appresize",this.Z);bb(m,this.element,this);this.U.createClientVe(this.element,this,28663);this.updateBadge();this.Z(m.xN().getPlayerSize())}; ySa=function(m,V){m.L=!!V;m.Z(m.U.xN().getPlayerSize())}; wF=function(m,V,O){if(m.Y("web_add_footer_template_to_audio_track")){var h="Edite seus $BEGIN_LINKidiomas preferidos$END_LINK nas configura\u00e7\u00f5es".split(/\$(BEGIN|END)_LINK/);h={G:"div",X:"ytp-panel-footer-content",S:[h[0],{G:"a",X:"ytp-panel-footer-content-link",B:{href:"/account_playback"},c6:h[2]},h[4]]}}g.$D.call(this,"Faixa de \u00e1udio",g.Kc.AUDIO,m,V,void 0,void 0,h);this.U=m;this.Z=O;this.tracks={};g.EM(this.element,"ytp-audio-menu-item");this.countLabel=new g.p({G:"div",S:[{G:"span", c6:"Faixa de \u00e1udio"},{G:"span",X:"ytp-menuitem-label-count",c6:"{{content}}"}]});m.Y("web_settings_menu_icons")&&!this.U.Y("html5_enable_new_audio_settings_menu")&&(V=m.Y("delhi_modern_web_player_icons")?{G:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{d:"M19.4 .2C19.29 .27 19.20 .37 19.13 .49C19.07 .60 19.02 .72 19.01 .85C18.99 .98 18.99 1.12 19.03 1.24C19.06 1.37 19.12 1.49 19.2 1.6L20.8 .4C20.64 .18 20.40 .04 20.14 .01C19.87 -0.02 19.61 .04 19.4 .2ZM20.8 .4L20 1L19.2 1.59C20.37 3.16 21.00 5.06 21.00 7.01C20.99 8.97 20.35 10.87 19.17 12.42C19.01 12.64 18.94 12.90 18.98 13.16C19.02 13.43 19.16 13.66 19.37 13.83C19.58 13.99 19.84 14.05 20.11 14.02C20.37 13.98 20.61 13.84 20.77 13.63C22.21 11.73 22.99 9.41 23 7.02C23.00 4.63 22.23 2.31 20.8 .4ZM10 2C8.67 2 7.40 2.52 6.46 3.46C5.52 4.40 5 5.67 5 7C5 8.32 5.52 9.59 6.46 10.53C7.40 11.47 8.67 12 10 12C11.32 12 12.59 11.47 13.53 10.53C14.47 9.59 15 8.32 15 7C15 5.67 14.47 4.40 13.53 3.46C12.59 2.52 11.32 2 10 2ZM16.17 2.29C15.97 2.48 15.86 2.73 15.86 2.99C15.85 3.26 15.95 3.51 16.14 3.71C16.98 4.58 17.44 5.68 17.49 6.80L17.5 7.02C17.49 8.22 17.01 9.40 16.10 10.32C15.92 10.51 15.83 10.77 15.83 11.03C15.84 11.29 15.95 11.53 16.13 11.71C16.32 11.90 16.57 12.00 16.83 12.00C17.09 12.00 17.34 11.90 17.53 11.72C18.78 10.44 19.49 8.77 19.5 7.03L19.49 6.71C19.42 5.09 18.74 3.53 17.58 2.32C17.49 2.23 17.38 2.15 17.26 2.10C17.14 2.05 17.01 2.02 16.88 2.01C16.75 2.01 16.62 2.03 16.49 2.08C16.37 2.13 16.26 2.20 16.17 2.29ZM10 4C10.39 4 10.78 4.07 11.14 4.22C11.51 4.37 11.84 4.60 12.12 4.87C12.39 5.15 12.62 5.48 12.77 5.85C12.92 6.21 13 6.60 13 7C13 7.39 12.92 7.78 12.77 8.14C12.62 8.51 12.39 8.84 12.12 9.12C11.84 9.39 11.51 9.62 11.14 9.77C10.78 9.92 10.39 10 10 10C9.20 10 8.44 9.68 7.87 9.12C7.31 8.55 7 7.79 7 7C7 6.20 7.31 5.44 7.87 4.87C8.44 4.31 9.20 4 10 4ZM10.39 13.01L10 13C8.01 12.99 6.10 13.73 4.63 15.06L4.34 15.34C3.60 16.08 3.01 16.96 2.60 17.93C2.20 18.90 1.99 19.94 2 21C2 21.26 2.10 21.51 2.29 21.70C2.48 21.89 2.73 22 3 22C3.26 22 3.51 21.89 3.70 21.70C3.89 21.51 4 21.26 4 21C4.00 19.40 4.63 17.88 5.75 16.75L5.97 16.55C7.07 15.55 8.51 15 10 15L10.29 15.00C11.78 15.08 13.18 15.70 14.24 16.75L14.44 16.97C15.44 18.07 16 19.51 16 21C16 21.26 16.10 21.51 16.29 21.70C16.48 21.89 16.73 22 17 22C17.26 22 17.51 21.89 17.70 21.70C17.89 21.51 18 21.26 18 21C18.00 19.01 17.26 17.10 15.93 15.63L15.65 15.34C14.25 13.93 12.37 13.10 10.39 13.01Z", fill:"white"}}]}:{G:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{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"}}]},this.setIcon(V));g.a(this,this.countLabel);g.hj(this,this.countLabel);m.createClientVe(this.element,this,273318);this.listen("click",this.onClick);this.C(m,"videodatachange",this.oY);this.C(m,"onPlaybackAudioChange",this.oY);this.oY()}; jma=function(m,V){g.wd.call(this,g.yF({"aria-haspopup":"true"},["ytp-audio-settings-menu-item"]),g.Kc.hX);this.U=m;this.Qp=V;g.EM(this.element,"ytp-audio-settings-menu-item");this.PB=new g.Aw(m,void 0,"\u00c1udio");this.countLabel=new g.p({G:"div",S:[{G:"span",c6:"\u00c1udio"},{G:"span",X:"ytp-menuitem-label-count",c6:"{{content}}"}]});m.Y("web_settings_menu_icons")&&this.setIcon({G:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{d:"M17.5,12c0,2.14-1.5,3.92-3.5,4.38v-1.04c1.44-0.43,2.5-1.76,2.5-3.34c0-1.58-1.06-2.9-2.5-3.34V7.62 C16,8.08,17.5,9.86,17.5,12z M12,4.07v15.86L6.16,15H3V9h3.16L12,4.07z M11,6.22L6.52,10H4v4h2.52L11,17.78V6.22z M21,12 c0,4.08-3.05,7.44-7,7.93v-1.01c3.39-0.49,6-3.4,6-6.92s-2.61-6.43-6-6.92V4.07C17.95,4.56,21,7.92,21,12z", fill:"white"}}]});this.r3=new wF(m,this.Qp,this);g.a(this,this.r3);this.C(m,"settingsMenuInitialized",this.t6.bind(this));this.C(m,"videodatachange",this.t6.bind(this));g.a(this,this.countLabel);g.hj(this,this.countLabel);this.Qp.SU(this);this.C(m,"onPlaybackAudioChange",this.Dk);this.listen("keydown",this.sJ);this.listen("click",this.open)}; yN=function(m,V){RE.call(this,"Reprodu\u00e7\u00e3o autom\u00e1tica",g.Kc.lj);this.U=m;this.Qp=V;this.Z=!1;this.L=[];this.C(m,"presentingplayerstatechange",this.t6);this.subscribe("select",this.onSelect,this);m.createClientVe(this.element,this,113682);this.t6()}; LLU=function(m,V){g.wd.call(this,g.yF({"aria-haspopup":"false"}),0,"Mais op\u00e7\u00f5es");this.U=m;this.Qp=V;this.C(this.element,"click",this.onClick);this.Qp.SU(this)}; JS7=function(m,V){var O;g.Eh(m.j())&&(O={G:"div",X:"ytp-panel-footer-content",S:[{G:"span",c6:"Ajuste a qualidade do download em "},{G:"a",X:"ytp-panel-footer-content-link",c6:"Detalhes",B:{href:"/account_downloads"}}]});g.$D.call(this,"Qualidade",g.Kc.QH,m,V,void 0,void 0,O);this.U=m;this.Ae={};this.N={};this.L={};this.mS=new Set;this.Z=this.T=!1;this.K="unknown";this.J="";this.Zu=new g.FE;g.a(this,this.Zu);this.T=this.U.Y("web_player_use_new_api_for_quality_pullback");this.Z=this.U.Y("web_player_enable_premium_hbr_playback_cap"); m.Y("web_settings_menu_icons")&&(V=m.Y("delhi_modern_web_player_icons")?{G:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z", fill:"white"}}]}:{G:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{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"}}]},this.setIcon(V));g.EM(this.PB.element,"ytp-quality-menu");this.C(m,"videodatachange",this.t6);this.C(m,"videoplayerreset",this.t6);this.C(m,"onPlaybackQualityChange",this.rL);this.t6();m.createClientVe(this.element,this,137721)}; E9l=function(m,V,O){var h=m.Ae[V],w=g.kH[V];return Ch1(m,h?h.qualityLabel:w?w+"p":"Autom\u00e1tico",V,O)}; qu$=function(m,V,O,h,w){var y=(V=m.Z?m.L[V]:m.N[V])&&V.quality,L=V&&V.qualityLabel;L=L?L:"Autom\u00e1tico";h&&(L="("+L);m=Ch1(m,L,y||"",w);h&&m.S.push(")");(h=(h=V&&V.paygatedQualityDetails)&&h.paygatedIndicatorText)&&O&&m.S.push({G:"div",X:"ytp-premium-label",c6:h});return m}; Ch1=function(m,V,O,h){V={G:"span",KA:h,S:[V]};var w;h="ytp-swatch-color";if(m.T||m.Z)h="ytp-swatch-color-white";O==="highres"?w="8K":O==="hd2880"?w="5K":O==="hd2160"?w="4K":O.indexOf("hd")===0&&O!=="hd720"&&(w="HD");w&&(V.S.push(" "),V.S.push({G:"sup",X:h,c6:w}));return V}; jg=function(m){k6.call(this,m.getAvailablePlaybackRates()[0],m.getAvailablePlaybackRates()[m.getAvailablePlaybackRates().length-1],.05,m.getPlaybackRate(),{G:"div",X:"ytp-speedslider-indicator-container",S:[{G:"div",X:"ytp-speedslider-badge"},{G:"p",X:"ytp-speedslider-text"}]});this.U=m;this.V=lN(this.N0,50,this);g.EM(this.Z,"ytp-speedslider");this.J=this.LA("ytp-speedslider-text");this.Zu=this.LA("ytp-speedslider-badge");this.wC();this.C(this.Z,"change",this.P2A)}; LB=function(m,V,O,h,w,y,L){g.p.call(this,{G:"div",X:"ytp-slider-section",B:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},S:[{G:"div",X:"ytp-slider",S:[{G:"div",X:"ytp-slider-handle"}]}]});this.J=m;this.V=V;this.L=O;this.D=h;this.Zu=w;this.iH=y;this.range=this.D-this.L;this.EH=this.LA("ytp-slider-section");this.T=this.LA("ytp-slider");this.Ae=this.LA("ytp-slider-handle");this.N=new g.rh(this.T, !0);this.Z=L?L:O;g.a(this,this.N);this.N.subscribe("dragmove",this.ey,this);this.C(this.element,"keydown",this.XM);this.C(this.element,"wheel",this.JE);this.init()}; J2=function(m){LB.call(this,.05,.05,m.getAvailablePlaybackRates()[0],m.getAvailablePlaybackRates()[m.getAvailablePlaybackRates().length-1],150,20,m.getPlaybackRate());this.U=m;this.K=g.Yc("P");this.v6=lN(this.mS,50,this);g.EM(this.T,"ytp-speedslider");g.EM(this.K,"ytp-speedslider-text");m=this.K;var V=this.T;V.parentNode&&V.parentNode.insertBefore(m,V.nextSibling);this.wC();this.C(this.U,"onPlaybackRateChange",this.updateValues)}; MQ3=function(m,V){m=Number(g.O2(V,m.L,m.D).toFixed(2));V=Math.floor((m+.001)*100%5+2E-15);var O=m;V!==0&&(O=m-V*.01);return Number(O.toFixed(2))}; fyG=function(m){g.ED.call(this,{G:"div",X:"ytp-speedslider-component"});m.Y("web_settings_use_input_slider")?this.Z=new jg(m):this.Z=new J2(m);g.a(this,this.Z);this.element.appendChild(this.Z.element)}; xl5=function(m){var V=new fyG(m);gh.call(this,m,V,"Personalizado");g.a(this,V)}; o9$=function(m,V){var O=new xl5(m);g.$D.call(this,"Velocidade da reprodu\u00e7\u00e3o",g.Kc.Tu,m,V,CB(m)?void 0:"Personalizado",CB(m)?void 0:function(){g.tw(V,O)}); var h=this;this.J=new g.p({G:"div",X:"ytp-menuitem-premium-badge",B:{"aria-label":"Premium"}});this.K=!1;this.BD={c3r:function(){return h.T}}; g.a(this,O);this.fR=new jg(m);g.a(this,this.fR);if(m.Y("web_settings_menu_icons")){var w=m.Y("delhi_modern_web_player_icons")?hyI():{G:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]};this.setIcon(w)}this.U=m;this.K=!1;this.Zu=null;CB(m)?(this.Z=g.w0("Personalizado ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.U.getPlaybackRate().toString()}),this.N=this.U.getPlaybackRate()):this.N=this.Z=null;g.a(this,this.J);var y,L,C,E;this.Ae=(y=this.U.getVideoData())==null?void 0:(L=y.getWatchNextResponse())==null?void 0:(C=L.playerOverlays)==null?void 0:(E=C.playerOverlayRenderer)==null?void 0:E.showPlaybackRateUpsellPanelCommand;Rsp(m,this.Ae)?(this.L=EH(4),this.U.createClientVe(this.J.element, this,273508)):this.L=null;this.U.Y("enable_web_premium_varispeed_upsell")&&this.U.createClientVe(this.element,this,278479);this.T=this.U.getAvailablePlaybackRates();this.C(m,"presentingplayerstatechange",this.oY);var q;((q=this.U.getVideoData())==null?0:q.Z4())&&this.C(m,"serverstitchedvideochange",this.oY);this.C(m,"videodatachange",this.onVideoDataChange);this.C(this.fR.Z,"change",function(){h.K=!0;h.oY()}); this.oY()}; g9I=function(m,V){var O=EH(V);m.Z&&(m.K||V===m.N)?(m.St(m.Z),m.setContent(V.toString())):m.St(O)}; UlC=function(m){var V=m.T.map(EH);m.L&&V.push(m.L);m.Wt(V);m.Z=null;m.N=null;V=m.U.getPlaybackRate();CB(m.U)&&ASp(m,V);!m.T.includes(V)||m.K?m.St(m.Z):m.St(EH(V))}; ASp=function(m,V){m.N=V;m.Z=g.w0("Personalizado ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:V.toString()});V=m.T.map(EH);V.unshift(m.Z);m.L&&V.push(m.L);m.Wt(V)}; dlX=function(m,V,O,h){O=new g.wd({G:"div",KA:["ytp-menuitem"],B:{tabindex:"0",role:"menuitemradio","aria-checked":h?"true":"false"},S:[{G:"div",KA:["ytp-menuitem-label"],S:[{G:"div",KA:["ytp-menuitem-container-with-badge"],S:[{G:"div",c6:"{{label}}"},m.J]}]}]},O,m.fq(V));O.listen("click",function(){m.nH(V)}); return O}; EH=function(m){return m.toString()}; CB=function(m){return m.Y("web_settings_menu_surface_custom_playback")}; Rsp=function(m,V){return!!V&&m.getAvailablePlaybackRates()[m.getAvailablePlaybackRates().length-1]<=2}; tQI=function(m){return m.Y("web_settings_menu_surface_custom_playback")&&m.Y("web_settings_use_input_slider")}; WL7=function(m,V,O,h){var w=new g.Aw(V,void 0,"Modifica\u00e7\u00e3o do v\u00eddeo");g.$D.call(this,h.text||"",m,V,O,"Modifica\u00e7\u00e3o do v\u00eddeo",function(){g.tw(O,w)}); var y=this;g.EM(this.element,"ytp-subtitles-options-menu-item");this.setting=h.option.toString();m=h.options;this.settings=g.Um(m,this.b7,this);this.T=w;g.a(this,this.T);V=new g.wd({G:"div",X:"ytp-menuitemtitle",c6:"Permitir um estilo de legenda diferente se especificado pelo v\u00eddeo."},0);g.a(this,V);this.T.SU(V,!0);this.L=new g.wd({G:"div",X:"ytp-menuitem",B:{role:"menuitemradio",tabindex:"0"},S:[{G:"div",X:"ytp-menuitem-label",c6:"Ativ."}]},-1);g.a(this,this.L);this.T.SU(this.L,!0);this.C(this.L.element, "click",function(){KLX(y,!0)}); this.Z=new g.wd({G:"div",X:"ytp-menuitem",B:{role:"menuitemradio",tabindex:"0"},S:[{G:"div",X:"ytp-menuitem-label",c6:"Desat"}]},-2);g.a(this,this.Z);this.T.SU(this.Z,!0);this.C(this.Z.element,"click",function(){KLX(y,!1)}); this.Wt(g.rb(m,this.b7))}; KLX=function(m,V){m.publish("settingChange",m.setting+"Override",!V);m.Qp.IK()}; qG=function(m,V){g.Aw.call(this,m,void 0,"Op\u00e7\u00f5es");var O=this;this.NH={};for(var h=0;h0)for(x=g.D(L),A=x.next(),R={};!A.done;R={GG:void 0},A=x.next())R.GG=A.value,A=void 0,K=new g.p({G:"button",KA:["ytp-button","ytp-variable-speed-panel-preset-button","ytp-variable-speed-panel-button"],B:{"data-priority":""+ ((A=R.GG.priority)!=null?A:0)},S:[{G:"span",c6:""+R.GG.label}]}),g.a(this,K),O.element.appendChild(K.element),K.listen("click",function(X){return function(){X.GG.value&&f.U.setPlaybackRate(X.GG.value/100);m.logClick(O.element)}}(R)); this.C(this.fR.Z,"input",function(){f.wC(f.fR.L)}); this.C(m,"onPlaybackRateChange",this.onPlaybackRateChange);this.C(m,"resize",y);this.onPlaybackRateChange(m.getPlaybackRate());this.E7()}; RO=function(m,V){g.$D.call(this,"Velocidade da reprodu\u00e7\u00e3o",g.Kc.Tu,m,V);this.U=m;m.Y("web_settings_menu_icons")&&this.setIcon(hyI());this.L(m.getPlaybackRate());this.C(m,"onPlaybackRateChange",this.L);this.C(m,"presentingplayerstatechange",this.Z);var O;((O=this.U.getVideoData())==null?0:O.Z4())&&this.C(m,"serverstitchedvideochange",this.Z);this.Z()}; Yua=function(m){g.dh.call(this,m,"ytp-settings-menu");var V=this;this.We=new g.Aw(this.U);this.eA=this.O3=this.settingsButton=null;this.isInitialized=this.Zn=!1;g.a(this,this.We);this.hide();g.tw(this,this.We);m.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(w){V.zB(w)}); this.C(m,"highlightSettingsMenu",function(){V.Zn=!0;V.OI()}); this.C(m,"openSettingsMenuItem",function(w){if(w&&(V.Zn=!0,V.OI(),w==="menu_item_video_quality_advanced")){var y;(y=V.O3)==null||y.open()}}); m.Y("html5_enable_voice_boost")&&(this.C(m,"onPlaybackAudioChange",this.Dk),this.C(m,"videodatachange",this.Dk));var O,h;((O=this.U.j())==null?0:(h=O.getWebPlayerContextConfig())==null?0:h.enableFullscreenComponentsFeature)&&this.C(this.element,"wheel",function(w){w.stopPropagation()})}; kW1=function(m,V){m.settingsButton=V;m.element.id=V.element.getAttribute("aria-controls")}; cSU=function(m,V){g.p.call(this,{G:"button",KA:["ytp-subtitles-button","ytp-button"],B:{"aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"5","data-tooltip-title":"{{tooltip-title}}",title:m.Y("player_tooltip_data_title_killswitch")?"{{title}}":"","data-title-no-tooltip":"{{data-title-no-tooltip}}"},S:[m.Y("delhi_modern_web_player_icons")?{G:"div",X:"ytp-subtitles-button-icon",c6:"{{icon}}"}:Hr$(m)]});this.U=m;this.tooltip=V.XJ();m.Y("delhi_modern_web_player_icons")&&this.updateValue("icon", rSa(this));this.C(m,"videodatachange",this.oY);this.C(m,"appresize",this.oY);this.C(m,"promotooltipacceptbuttonclicked",this.LoS);this.C(m,"onApiChange",this.oY);this.C(m,"onCaptionsTrackListChanged",this.oY);this.C(m,"captionschanged",this.oY);this.U.createClientVe(this.element,this,127299);this.oY();this.listen("click",this.onClick);this.addOnDisposeCallback(g.DZ(V.XJ(),this.element))}; oO=function(m){return g.t_(m.U.Gp())!=null?g.t_(m.U.Gp()).Jm()?!!m.U.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1}; rSa=function(m){if(m.U.Y("delhi_modern_web_player_icons"))return m=Uj.includes("pt-BR")?oO(m)&&m.isEnabled()?{G:"svg",B:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM9.03 8.08L9.29 8.16C9.79 8.35 10.24 8.65 10.60 9.05L10.77 9.26L10.83 9.34C10.96 9.55 11.01 9.80 10.96 10.05C10.92 10.29 10.79 10.51 10.59 10.66C10.40 10.81 10.15 10.89 9.91 10.87C9.66 10.85 9.43 10.74 9.26 10.57L9.19 10.49L9.11 10.39C8.98 10.24 8.81 10.12 8.62 10.05L8.54 10.02C8.32 9.97 8.10 10.00 7.91 10.11C7.67 10.24 7.48 10.43 7.35 10.67L7.28 10.79C7.09 11.16 6.99 11.58 7 12L7.00 12.16C7.02 12.52 7.11 12.88 7.28 13.20L7.35 13.32C7.48 13.56 7.67 13.75 7.91 13.88L7.99 13.92C8.16 14.00 8.35 14.02 8.54 13.97L8.62 13.94C8.85 13.85 9.05 13.70 9.19 13.50L9.26 13.43C9.44 13.24 9.68 13.13 9.93 13.12C10.19 13.11 10.44 13.20 10.63 13.37C10.82 13.53 10.94 13.77 10.97 14.02C11.00 14.27 10.93 14.53 10.77 14.73C10.39 15.23 9.88 15.61 9.29 15.83L9.03 15.91C8.43 16.06 7.79 16.01 7.21 15.77L6.97 15.65C6.42 15.35 5.95 14.90 5.64 14.36L5.50 14.12C5.21 13.55 5.04 12.92 5.00 12.27L5 12C4.99 11.26 5.17 10.53 5.50 9.87L5.64 9.63C5.96 9.09 6.42 8.64 6.97 8.34C7.60 8.00 8.34 7.91 9.03 8.08ZM17.03 8.08L17.29 8.16C17.79 8.35 18.24 8.65 18.60 9.05L18.77 9.26L18.83 9.34C18.96 9.55 19.01 9.80 18.96 10.05C18.92 10.29 18.79 10.51 18.59 10.66C18.40 10.81 18.15 10.89 17.91 10.87C17.66 10.85 17.43 10.74 17.26 10.57L17.19 10.49L17.11 10.39C16.98 10.24 16.81 10.12 16.62 10.05L16.54 10.02C16.32 9.97 16.10 10.00 15.91 10.11C15.67 10.24 15.48 10.43 15.35 10.67L15.28 10.79C15.09 11.16 14.99 11.58 15 12L15.00 12.16C15.02 12.52 15.11 12.88 15.28 13.20L15.35 13.32C15.48 13.56 15.67 13.75 15.91 13.88L15.99 13.92C16.16 14.00 16.35 14.02 16.54 13.97L16.62 13.94C16.85 13.85 17.05 13.70 17.19 13.50L17.26 13.43C17.44 13.24 17.68 13.13 17.93 13.12C18.19 13.11 18.44 13.20 18.63 13.37C18.82 13.53 18.94 13.77 18.97 14.02C19.00 14.27 18.93 14.53 18.77 14.73C18.39 15.23 17.88 15.61 17.29 15.83L17.03 15.91C16.43 16.06 15.79 16.01 15.21 15.77L14.97 15.65C14.42 15.35 13.95 14.90 13.64 14.36L13.50 14.12C13.21 13.55 13.04 12.92 13.00 12.27L13 12C12.99 11.26 13.17 10.53 13.50 9.87L13.64 9.63C13.96 9.09 14.42 8.64 14.97 8.34C15.60 8.00 16.34 7.91 17.03 8.08Z", fill:"white"}}]}:UD():oO(m)&&m.isEnabled()?{G:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM6 11H8C8.26 11 8.51 11.10 8.70 11.29C8.89 11.48 9 11.73 9 12C9 12.26 8.89 12.51 8.70 12.70C8.51 12.89 8.26 13 8 13H6C5.73 13 5.48 12.89 5.29 12.70C5.10 12.51 5 12.26 5 12C5 11.73 5.10 11.48 5.29 11.29C5.48 11.10 5.73 11 6 11ZM12 11H18C18.26 11 18.51 11.10 18.70 11.29C18.89 11.48 19 11.73 19 12C19 12.26 18.89 12.51 18.70 12.70C18.51 12.89 18.26 13 18 13H12C11.73 13 11.48 12.89 11.29 12.70C11.10 12.51 11 12.26 11 12C11 11.73 11.10 11.48 11.29 11.29C11.48 11.10 11.73 11 12 11ZM16 15H18C18.26 15 18.51 15.10 18.70 15.29C18.89 15.48 19 15.73 19 16C19 16.26 18.89 16.51 18.70 16.70C18.51 16.89 18.26 17 18 17H16C15.73 17 15.48 16.89 15.29 16.70C15.10 16.51 15 16.26 15 16C15 15.73 15.10 15.48 15.29 15.29C15.48 15.10 15.73 15 16 15ZM6 15H12C12.26 15 12.51 15.10 12.70 15.29C12.89 15.48 13 15.73 13 16C13 16.26 12.89 16.51 12.70 16.70C12.51 16.89 12.26 17 12 17H6C5.73 17 5.48 16.89 5.29 16.70C5.10 16.51 5 16.26 5 16C5 15.73 5.10 15.48 5.29 15.29C5.48 15.10 5.73 15 6 15Z", fill:"white"}}]}:fNU()}; g.gF=function(m,V,O){O=O===void 0?350:O;g.p.call(this,{G:"div",KA:["ytp-time-display","notranslate"],S:[{G:"div",X:"ytp-time-wrapper",S:[{G:"div",X:"ytp-time-contents",B:m.Y("delhi_modern_web_player")?{"aria-label":"{{timeDisplayAriaLabel}}",role:"button",tabindex:"0"}:{"aria-label":"{{timeDisplayAriaLabel}}"},S:[{G:"span",X:"ytp-time-clip-icon",c6:"{{clipicon}}",B:{"aria-label":"Clipe"}},{G:"span",X:"ytp-time-current",c6:"{{currenttime}}"},{G:"span",X:"ytp-time-separator",c6:" / "},{G:"span",X:"ytp-time-duration", c6:"{{duration}}"}]}]},{G:"span",X:"ytp-clip-watch-full-video-button-separator",c6:"\u2022"},{G:"span",X:"ytp-clip-watch-full-video-button",c6:"{{watchfullvideo}}"}]});var h=this;this.api=m;this.Zu=O;this.liveBadge=new g.p({G:"button",KA:["ytp-live-badge","ytp-button"],B:{disabled:"true"},c6:"{{content}}"});this.Z=null;this.I9=this.L=!1;this.V=this.J=this.N=null;this.isPremiere=!1;this.K=this.T=null;this.D=!1;this.KP=this.liveIndicatorText=null;this.Ae=this.LA("ytp-clip-watch-full-video-button"); this.liveBadge.setContent("Ao vivo");g.a(this,this.liveBadge);this.api.Y("web_player_updated_entrypoint")||this.api.Y("delhi_modern_web_player")?this.liveBadge.g0(this.LA("ytp-time-wrapper")):this.liveBadge.g0(this.element);this.tooltip=V.XJ();this.liveBadge.listen("click",this.onClick.bind(this));this.api.Y("delhi_modern_web_player")&&(V=this.LA("ytp-time-wrapper"),this.C(V,"click",this.O4Y),V.classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown()));this.C(this.Ae,"click",this.G6N);this.C(this.api, "serverstitchedvideochange",function(){DlG(h,h.api.getProgressState().isAtLiveHead)}); this.C(m,"presentingplayerstatechange",this.Yf);this.C(m,"appresize",this.Yf);this.C(m,"onLoopRangeChange",this.onLoopRangeChange);this.C(m,"videodatachange",this.onVideoDataChange);(V=m.getVideoData())&&this.updateVideoData(V);this.Yf();Nz7(this,m.getLoopRange())}; DlG=function(m,V){var O=m.liveBadge.element,h=m.api.isLifaAdPlaying();O.disabled=h||V;!A2(m)||m.V===V&&m.J===m.liveIndicatorText&&m.N===m.isPremiere||(m.V=V,m.J=m.liveIndicatorText,m.N=m.isPremiere,m.Yf(),V?O.classList.add("ytp-live-badge-is-livehead"):O.classList.remove("ytp-live-badge-is-livehead"),m.liveIndicatorText?m.liveBadge.setContent(m.liveIndicatorText):m.liveBadge.setContent(m.isPremiere?"Estreia":"Ao vivo"),V?m.Z&&(m.Z(),m.Z=null,O.removeAttribute("data-tooltip-title")):(O.setAttribute("data-tooltip-title", "Pular para transmiss\u00e3o ao vivo."),m.Z=g.DZ(m.tooltip,m.liveBadge.element)))}; Nz7=function(m,V){var O=m.KP!==V;m.KP=V;O&&ba0(m)}; ba0=function(m){m.updateValue("clipicon",{G:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},S:[{G:"path",B:{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"}}]}); m.I9&&!m.L?m.updateValue("watchfullvideo","Assistir transmiss\u00e3o ao vivo"):m.updateValue("watchfullvideo","Assista o v\u00eddeo completo");g.xN(m.element,"ytp-clip",UH(m));g.xN(m.element,"ytp-live",A2(m))}; A2=function(m){var V=m.api.j().Y("enable_linear_program_progress"),O=m.api.getPresentingPlayerType()===2;return m.I9&&!UH(m)&&(!V||!m.L)&&!O}; UH=function(m){return!!m.KP&&!!m.KP.postId&&m.api.getPresentingPlayerType()!==2&&(!m.KP.type||m.KP.type==="clips")}; Iy3=function(m,V){g.p.call(this,{G:"div",X:"ytp-volume-panel",B:{title:m.Y("player_tooltip_data_title_killswitch")?"Volume":"","data-tooltip-title":"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},S:[{G:"div",X:"ytp-volume-slider",S:[{G:"div",X:"ytp-volume-slider-handle"}]}]});var O=this;this.api=m;this.N=V;this.Yc=!1;this.Zu=this.volume=0;this.K=null;this.L=this.Z=this.isDragging=!1;this.N=V;this.D=m.GM(); this.V=m.Y("web_player_use_screen_width_for_big_mode");this.J=this.LA("ytp-volume-slider");this.Ae=this.LA("ytp-volume-slider-handle");this.T=new g.rh(this.J,!0);g.a(this,this.T);this.T.subscribe("dragstart",this.n2H,this);this.T.subscribe("dragmove",this.rg,this);this.T.subscribe("dragend",this.VWH,this);this.C(m,"onVolumeChange",this.onVolumeChange);this.C(m,"appresize",this.yqu);this.C(m,"fullscreentoggled",this.EB);this.C(m,"onShowControls",this.uK);this.C(m,"onHideControls",this.uK);this.C(this.element, "keydown",this.b3);this.C(this.element,"focus",function(){dF(O,O.Z,O.isDragging,!0,O.api.Yc())}); this.C(this.element,"blur",function(){dF(O,O.Z,O.isDragging,!1,O.api.Yc())}); n93(this,m.xN().getPlayerSize());Sup(this,m.getVolume(),m.isMuted());bb(m,this.element,this)}; es$=function(m){var V=m.api.GM();m.D!==V&&(m.D=V,Sup(m,m.api.getVolume(),m.api.isMuted()))}; n93=function(m,V){m.eU(V.width>=350)}; Sup=function(m,V,O){var h=Math.floor(V),w=h+"% volume"+(O?" som desativado":"");O=O?0:V/100;m.updateValue("valuenow",h);m.updateValue("valuetext",w);h=m.D?78:52;w=!m.api.Y("delhi_modern_web_player")&&m.D?18:12;m.Ae.style.left=(h-w)*O+"px";m.volume=V}; u_o=function(m,V){g.xN(m.element,"ytp-volume-control-hover",V);dF(m,V,m.isDragging,m.L,m.api.Yc())}; dF=function(m,V,O,h,w){var y=m.Z||m.isDragging||m.L||m.Yc;m.Z=V;m.isDragging=O;m.L=h;m.Yc=w;V=m.Z||m.isDragging||m.L||m.Yc;y!==V&&(V?m.K=m.C(m.element,"wheel",m.Od):(m.yu(m.K),m.K=null),g.xN(m.N,"ytp-volume-slider-active",V))}; t2=function(m,V){var O=m.j(),h=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];O.D&&h.push("no-link");var w={title:m.Y("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}",target:O.Qt,"data-priority":"6","data-sessionlink":"feature=player-button"};O.D||(w.href="{{url}}");g.p.call(this,{G:"a",KA:h,B:w,c6:"{{logoSvg}}"});this.Z=null;this.api=m;this.visible=!1;O.D||(this.Z=this.listen("click",this.onClick));this.C(m,"videodatachange",this.onVideoDataChange); this.C(m,"videoplayerreset",this.onVideoDataChange);this.C(m,"onLoopRangeChange",this.onVideoDataChange);this.C(m,"appresize",this.Vp);this.onVideoDataChange();O.D||this.addOnDisposeCallback(g.DZ(V.XJ(),this.element));this.Vp()}; Za7=function(m,V,O){g.Rc.call(this);var h=this;this.U=m;this.mS=V;this.Ny=O;this.pA=NaN;this.Ae=this.Mf=this.playButton=this.T=this.K=this.fA=this.EH=this.Zu=this.Qt=this.muteButton=this.J=this.Je=this.qc=this.CA=null;this.Z=new Yua(this.U);this.progressBar=new g.zn(this.U,this.mS);this.OV=new g.gF(this.U,this.mS);this.Xr=new ZB$(this.U,this.mS);this.V=new g.PA(this.wg,null,this);O=m.j();this.Ny.subscribe("autohideupdate",this.ZR,this);var w=!m.getPlayerStateObject().isCued(),y;(this.W6=!m.Y("delhi_modern_web_player")&& m.j().Y("html5_player_dynamic_bottom_gradient"))?this.Je=y=new Ih0(m):y=new g.p({G:"div",X:"ytp-gradient-bottom"});g.a(this,y);g.ib(m,y.element,9);this.iH=new g.OR(y,250,w,100);g.a(this,this.iH);this.L=new g.p({G:"div",X:"ytp-chrome-bottom",S:[{G:"div",X:"ytp-chrome-controls"}]});g.a(this,this.L);g.ib(m,this.L.element,9);this.v6=new g.OR(this.L,250,w,100);g.a(this,this.v6);this.H6=this.L.element.children[0];g.a(this,this.Z);g.ib(m,this.Z.element,6);this.Z.subscribe("show",function(q){h.U.q9(!q);m.UR(h.Z, q)}); g.a(this,this.progressBar);this.progressBar.g0(this.L.element,0);w=new Hk(m,V);g.a(this,w);g.ib(m,w.element,4);w=new g.Ly({G:"div",X:"ytp-left-controls"});g.a(this,w);w.g0(this.H6);m.Y("delhi_modern_web_player")||(y=new g.n_(m,V,!1),g.a(this,y),y.g0(w.element));m.Y("web_render_jump_buttons")&&(this.Qt=new Tn(m,-10),g.a(this,this.Qt),this.Qt.g0(w.element));O.fA||(this.playButton=new g.bs(m,V),g.a(this,this.playButton),this.playButton.g0(w.element));m.Y("web_render_jump_buttons")&&(this.Zu=new Tn(m, 10),g.a(this,this.Zu),this.Zu.g0(w.element));m.Y("delhi_modern_web_player_remove_nav_buttons")||(m.Y("delhi_modern_web_player")&&(y=new g.n_(m,V,!1),g.a(this,y),y.g0(w.element)),y=new g.n_(m,V,!0),g.a(this,y),y.g0(w.element));if(!m.Y("delhi_modern_web_player")||m.Y("delhi_modern_web_player_horizontal_volume_controls"))if(y=new g.p({G:"span",X:"ytp-volume-area"}),g.a(this,y),y.g0(w.element),!O.Rd&&(this.muteButton=new ND(m,V),g.a(this,this.muteButton),this.muteButton.g0(y.element),O.EH&&!O.J)){var L= new Iy3(m,this.L.element);this.Mf=L;g.a(this,L);L.g0(y.element);y=new g.rh(y.element);g.a(this,y);y.subscribe("hoverstart",function(){var q;(q=h.Mf)==null||u_o(q,!0)}); y=new g.rh(w.element);g.a(this,y);y.subscribe("hoverend",function(){var q;(q=h.Mf)==null||u_o(q,!1)})}m.Y("delhi_modern_web_player_lhs_volume_controls")&&!m.Y("delhi_modern_web_player_horizontal_volume_controls")&&(w.element.classList.add("ytp-left-controls-with-volume"),this.muteButton=new ND(m,V),g.a(this,this.muteButton),this.muteButton.g0(w.element),this.muteButton.element.classList.add("ytp-standalone-mute-button")); g.a(this,this.OV);this.OV.g0(w.element);this.EH=new Wk(m,this.progressBar);g.a(this,this.EH);this.EH.g0(w.element);O.Y("web_key_moments_markers")&&(this.fA=new $6(m,this.progressBar),g.a(this,this.fA),this.fA.g0(w.element));m.Y("delhi_modern_web_player")?this.D=new g.Ly({G:"div",X:"ytp-right-controls",S:[{G:"div",X:KB.RIGHT_CONTROLS_LEFT},{G:"div",X:KB.RIGHT_CONTROLS_RIGHT}]}):this.D=new g.Ly({G:"div",X:"ytp-right-controls"});g.a(this,this.D);this.D.g0(this.H6);m.Y("delhi_modern_web_player")&&(this.J= new XO(m),g.a(this,this.J),this.J.g0(this.D.LA(KB.RIGHT_CONTROLS_LEFT)),m.Y("delhi_modern_web_player_lhs_volume_controls")||m.Y("delhi_modern_web_player_horizontal_volume_controls")||(this.muteButton=new ND(m,V),g.a(this,this.muteButton),this.muteButton.g0(this.D.LA(KB.RIGHT_CONTROLS_LEFT))));this.nA=new cSU(m,V);g.a(this,this.nA);WW(this,this.nA,"RIGHT_CONTROLS_LEFT");this.settingsButton=new h2(m,this.Z);g.a(this,this.settingsButton);kW1(this.Z,this.settingsButton);WW(this,this.settingsButton,"RIGHT_CONTROLS_LEFT"); w=m.getVideoData();if(O.h_||w.Sb&&O.controlsType==="1")this.K=new t2(m,V),g.a(this,this.K),this.K.g0(this.D.element);O.showMiniplayerButton&&!m.Y("web_player_miniplayer_in_context_menu")&&(this.T=new Y6(m),g.a(this,this.T),WW(this,this.T,"RIGHT_CONTROLS_RIGHT"));O.showMiniplayerButton&&this.C(m,"minimized",function(){h.Z.hide()}); O.Zd&&(V=new OH(m,this.Z),g.a(this,V),WW(this,V,"RIGHT_CONTROLS_RIGHT"));O.Sh&&(V=new tl(m),g.a(this,V),WW(this,V,"RIGHT_CONTROLS_RIGHT"));g.a(this,this.Xr);WW(this,this.Xr,"RIGHT_CONTROLS_RIGHT");g.a(this,this.V);this.C(m,"appresize",this.Vp);this.C(m,"fullscreentoggled",this.Vp);var C;(C=this.J)==null||C.subscribe("small-mode-expand-right-bottom-controls",function(){zs1(h)}); var E;(E=this.J)==null||E.subscribe("small-mode-collapse-right-bottom-controls",function(){zs1(h)}); this.C(m,"presentingplayerstatechange",this.FW);this.C(m,"videodatachange",this.onVideoDataChange);this.Vp()}; zs1=function(m){m.L.element.classList.toggle("ytp-xsmall-width-right-controls-expanded",m.J.isExpanded())}; smp=function(m,V){m.U.getPlayerStateObject().isCued()||V?V&&(m.v6.hide(),m.iH.hide(),m.muteButton&&m.muteButton.u2(!1),m.K&&m.K.u2(!1),m.T&&m.T.u2(!1),m.U.jI(m.Ir())):V||(m.v6.show(),m.iH.show(),m.muteButton&&m.muteButton.u2(!0),m.K&&m.K.u2(!0),m.T&&m.T.u2(!0),m.ZR())}; ayX=function(m){var V=m.U.xN().getPlayerSize().width;return Math.max(V-FLG(m)*2,100)}; FLG=function(m){if(m.U.Y("web_player_rtr_ctrls")&&m.U.xN().Cd)return 0;var V=m.U.GM(),O=m.U.getVideoData().Sb,h=0;m.U.GM()&&m.U.isEmbedsShortsMode()&&(h=(m.U.xN().getPlayerSize().width-m.U.getVideoContentRect().width)/2);return 12*(O?0:V?2:1)+h}; ia7=function(m){var V=m.U.GM()?72:50,O=m.U.j();g.Eh(O)&&(O.Y("delhi_modern_web_player")?(V=g.m9(O.experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),V=m.U.Y("delhi_modern_web_player_compact_controls")||V>0&&m.U.getPlayerSize().width<=V,V=m.U.GM()?O.Y("delhi_modern_web_player_big_mode_consistent_pill_height")?100:112:V?70:78,m.U.getRootNode().classList.contains("ytp-fullscreen-grid-peeking")&&(m=getComputedStyle(m.U.getRootNode()).getPropertyValue("--ytp-grid-peek-height")|| "36px",V+=Number(m.replace("px","")))):V=62,g.BP(O)&&(V=54));return V}; WW=function(m,V,O){m.U.Y("delhi_modern_web_player")?V.g0(m.D.LA(KB[O])):V.g0(m.D.element)}; pxm=function(m){oL.call(this,m,!1);var V=this;this.suggestedActions={};this.Z=null;this.element.setAttribute("data-overlay-order","7");this.C(this.U,"videodatachange",this.onVideoDataChange);this.C(this.U,g.Gu("suggested_action_button_visible"),function(O){GWl(V,O.id);V.enabled=!0;V.zB()}); this.C(this.U,g.pR("suggested_action_button_visible"),function(O){V.enabled=!1;V.zB();V.U.removeCueRange(O.id)}); this.C(m,"presentingplayerstatechange",this.onStateChange)}; GWl=function(m,V){m.text=V;yb3(m);var O;m.onClickCommand=(O=m.suggestedActions[V])==null?void 0:O.tapCommand}; BzI=function(m){m.suggestedActions={};m.U.FJ("suggested_action_button_visible");m.Z=null;m.U.setTrackingParams(m.badge.element,null);m.L=!1}; HW=function(m){g.p.call(this,{G:"div",X:Xj.TITLE,S:[{G:"div",KA:[Xj.TEXT,m.Y("enable_larger_title_line_height")?"ytp-title-text-larger-line-height":""],S:[{G:"a",KA:[Xj.LINK,Xj.SESSIONLINK],B:{target:m.j().Qt,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},c6:"{{title}}"},{G:"div",X:Xj.SUBTEXT,S:["{{subtextElement}}"]}]}]});this.api=m;this.Z=null;this.link=this.LA(Xj.LINK);m.createClientVe(this.element,this,23851);this.C(m,"videodatachange",this.oY); this.C(m,"videoplayerreset",this.oY);this.oY()}; lyU=function(m){m.updateValue("channelLink","");m.updateValue("channelName","");g.BP(m.api.j())||m.api.Y("enable_channel_title_always_focusable")?m.updateValue("channelTitleFocusable","0"):m.updateValue("channelTitleFocusable","-1")}; g.Te=function(m,V){g.p.call(this,{G:"div",S:[{G:"div",X:"ytp-tooltip-text-wrapper",B:{"aria-hidden":"{{ariaHidden}}"},S:[{G:"div",X:"ytp-tooltip-edu",S:[{G:"svg",B:{height:"100%",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",B:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{G:"span",c6:"{{eduText}}"}]},{G:"div",X:"ytp-tooltip-image"},{G:"div",X:"ytp-tooltip-title",S:[{G:"span",c6:"{{title}}"},{G:"div",X:"ytp-tooltip-keyboard-shortcut", c6:"{{keyBoardShortcutTitle}}"}]},{G:"div",X:"ytp-tooltip-bottom-text",S:[{G:"span",X:"ytp-tooltip-text",c6:"{{text}}"},{G:"div",X:"ytp-tooltip-keyboard-shortcut",c6:"{{keyBoardShortcut}}"}]},{G:"div",X:"ytp-tooltip-progress-bar-pill",S:[{G:"div",X:"ytp-tooltip-progress-bar-pill-time-stamp",c6:"{{pillTimeStamp}}"},{G:"div",X:"ytp-tooltip-progress-bar-pill-title",c6:"{{pillTitle}}"}]}]},{G:"div",X:"ytp-tooltip-bg",S:[{G:"div",X:"ytp-tooltip-duration",c6:"{{duration}}"}]}]});var O=this;this.api=m;this.EH= V;this.V=function(h){(h=h.relatedTarget)&&g.nK(O.Z,h)||O.L_()}; this.K=function(h){O.type===3&&O.L_();(h=h.currentTarget)&&h.nodeType===1&&!O.type&&(h.removeEventListener("mouseover",O.K),h.addEventListener("mouseout",O.V),h.removeEventListener("focus",O.K),h.addEventListener("blur",O.V),Qm5(O,h,2))}; this.Zu=function(){O.L_()}; this.type=this.Z=null;this.J=!1;this.L=null;this.D="";this.N=!0;this.scale=1;this.env=this.api.j();this.v6=this.env.L;this.wrapper=this.LA("ytp-tooltip-text-wrapper");this.bg=this.LA("ytp-tooltip-bg");this.iH=this.LA("ytp-tooltip-edu");this.image=this.LA("ytp-tooltip-image");this.text=this.LA("ytp-tooltip-text");this.bottomText=this.LA("ytp-tooltip-bottom-text");this.title=this.LA("ytp-tooltip-title");this.fade=new g.OR(this,100);this.T=NaN;this.wL=this.api.xN().getPlayerSize().width;this.Ae=new g.mq(this.FeH, 250,this);this.mS=new g.mq(this.L_,5E3,this);g.a(this,this.fade);g.a(this,this.Ae);g.a(this,this.mS);ed&&(m=this.LA("ytp-tooltip-text"),m.setAttribute("role","text"),m.setAttribute("aria-live","polite"))}; v9U=function(m,V){m.env.Y("delhi_modern_web_player")&&m.scale!==.6&&(m.scale=V?.8:1)}; g.DZ=function(m,V){if(m.v6)return function(){}; V.addEventListener("mouseover",m.K);V.addEventListener("focus",m.K);var O=m.env.Y("player_tooltip_data_title_killswitch")?V.getAttribute("title"):V.getAttribute("data-tooltip-title");O&&!V.hasAttribute("aria-label")&&V.setAttribute("aria-label",O);return function(){m.Z===V&&m.L_();V.removeEventListener("mouseover",m.K);V.removeEventListener("focus",m.K)}}; Qm5=function(m,V,O,h){if(V&&!V.hasAttribute)m=new g.no("showElementTooltip called with non-element.",V.toString()),g.kL(m);else{isNaN(m.T)||(m.T=NaN,m.bg.style.background="");g.Ma(m.element,"ytp-tooltip-progress-bar-style");m.Z=V;m.J=!!h;h?m.D=h:(m.env.Y("player_tooltip_data_title_killswitch")?m.D=V.getAttribute("title"):m.D=V.getAttribute("data-tooltip-title"),m.env.Y("player_tooltip_data_title_killswitch")?V.removeAttribute("title"):V.removeAttribute("data-tooltip-title"));g.JY(m.element,"ytp-tooltip"); var w=V.getAttribute("data-tooltip-image");w&&(m.image.style.backgroundImage="url("+w+")");h?m.update({ariaHidden:"false"}):m.update({ariaHidden:"true"});g.xN(m.element,"ytp-tooltip-image-enabled",!!w);V=V.getAttribute("data-tooltip-opaque");g.xN(m.element,"ytp-tooltip-opaque",!!V);m.type=O;m.api.addEventListener("appresize",m.Zu);m.N&&($J(m),m.fade.show(0))}}; $J=function(m){if(m.Z){var V=m.Z.getAttribute("data-tooltip-text");if(m.D&&m.Z.getAttribute("aria-label")!==m.D)var O=m.D;var h=m.Z.getAttribute("aria-keyshortcuts"),w=m.Z.getAttribute("data-title-no-tooltip");h&&w&&(O=g.w0("$BUTTON_TITLE atalho do teclado $SHORTCUT_KEY",{BUTTON_TITLE:w,SHORTCUT_KEY:h}));O&&m.Z.setAttribute("aria-label",O);if(V&&!m.J){v9U(m,!0);var y=m.Z;m.updateValue("text",V);O=y.getAttribute("data-duration");m.update({title:m.D,duration:O});y=y.getAttribute("data-preview");m.env.Y("delhi_modern_web_player")? (m.updateValue("title",w),m.updateValue("keyBoardShortcutTitle",h.toUpperCase())):v9U(m,!1);h=243*m.scale;w=141*m.scale;m.bg.style.width=h+"px";m.bg.style.height=w+"px";m.bg.style.backgroundImage=y?"url("+y+")":"";m.bg.style.backgroundSize=h+"px "+w+"px";m.wrapper.style.width=h+"px";g.qa(m.element,["ytp-text-detail","ytp-preview"]);g.xN(m.element,"ytp-has-duration",!!O)}else w&&h&&m.env.Y("delhi_modern_web_player")?(m.updateValue("text",w),m.updateValue("keyBoardShortcut",h.toUpperCase())):m.updateValue("text", m.D),g.fY(m.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);O=m.Z;O.hasAttribute("data-tooltip-offset-y")?(O=Number(O.getAttribute("data-tooltip-offset-y")),O=isNaN(O)?0:O):O=0;Ph$(m,!!V,void 0,O)}}; Ph$=function(m,V,O,h){var w=Math.min(m.wL,300*m.scale);m.element.style.maxWidth=V?"":w+"px";m.EH.XD(m.element,m.Z,O,m.type===1,h);m.element.style.top?g.EM(m.element,"ytp-bottom"):m.element.style.bottom&&g.EM(m.element,"ytp-top");m.type===3&&m.mS.start()}; mr$=function(m,V){g.xN(m.element,"ytp-preview",V>=0);if(!(V<0||V===m.T)){m.T=V;V=243*m.scale;var O=141*m.scale,h=$RI(m.L,m.T,V);e7l(m.bg,h,V,O,!0);m.Ae.start()}}; VD5=function(m){var V=m.Z;m.type===3&&m.mS.stop();m.api.removeEventListener("appresize",m.Zu);m.J||(m.env.Y("player_tooltip_data_title_killswitch")?V.setAttribute("title",m.D):V.setAttribute("data-tooltip-title",m.D));m.D="";m.Z=null;m.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});m.wrapper.style.width=""}; h0X=function(m){g.p.call(this,{G:"button",KA:["ytp-watch-later-button","ytp-button"],B:{title:m.Y("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.sY(m.j()))},S:[{G:"div",X:"ytp-watch-later-icon",c6:"{{icon}}"},{G:"div",X:"ytp-watch-later-title",c6:"Assistir mais tarde"}]});this.U=m;this.icon=null;this.visible=this.isRequestPending=this.Z=!1;MeG(m);m.createClientVe(this.element,this,28665); this.listen("click",this.onClick,this);this.C(m,"videoplayerreset",this.onReset);this.C(m,"appresize",this.fK);this.C(m,"videodatachange",this.fK);this.C(m,"presentingplayerstatechange",this.fK);this.fK();m=this.U.j();var V=g.eU("yt-player-watch-later-pending");m.T&&V?(f5p(),OA$(this)):this.oY(2);g.xN(this.element,"ytp-show-watch-later-title",g.sY(m));bb(this.U,this.element,this)}; wTp=function(m){var V=m.U.getPlayerSize(),O=m.U.j(),h=m.U.getVideoData(),w=g.sY(O)&&g.ZZ(m.U)&&g.l(m.U.getPlayerStateObject(),128),y=O.D;return O.Id&&V.width>=240&&!h.isAd()&&h.Id&&!w&&!h.Sb&&!m.U.isEmbedsShortsMode()&&!y}; y7I=function(m,V){p_7(g.yl(m.U.j()),"wl_button",function(){f5p({videoId:V});window.location.reload()})}; OA$=function(m){if(!m.isRequestPending){m.isRequestPending=!0;m.oY(3);var V=m.U.getVideoData();V=m.Z?V.removeFromWatchLaterCommand:V.addToWatchLaterCommand;var O=m.U.uN(),h=m.Z?function(){m.Z=!1;m.isRequestPending=!1;m.oY(2);m.U.j().V&&m.U.bH("WATCH_LATER_VIDEO_REMOVED")}:function(){m.Z=!0; m.isRequestPending=!1;m.oY(1);m.U.j().L&&m.U.Py(m.element);m.U.j().V&&m.U.bH("WATCH_LATER_VIDEO_ADDED")}; SY(O,V).then(h,function(){m.isRequestPending=!1;m.oY(4,"Ocorreu um erro. Tente novamente mais tarde.");m.U.j().V&&m.U.bH("WATCH_LATER_ERROR","Ocorreu um erro. Tente novamente mais tarde.")})}}; joI=function(m,V){if(V!==m.icon){switch(V){case 3:var O=dd();break;case 1:O=Rl();break;case 2:O={G:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",Df:!0,X:"ytp-svg-fill",B:{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:O={G:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path", Df:!0,B:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}m.updateValue("icon",O);m.icon=V}}; L65=function(){g.Fl.apply(this,arguments);this.w5=(this.ag=g.sY(this.api.j()))&&(this.api.j().L||jU()||w3());this.by=48;this.wX=69;this.r9=this.P1=null;this.aW=[];this.PL=this.EJ=this.tp=this.YE=this.k5=null;this.lT=[];this.contextMenu=this.NV=this.overflowButton=this.v1=this.aF=this.searchButton=this.copyLinkButton=this.shareButton=this.m9=this.Eg=this.title=this.channelAvatar=this.JU=this.tooltip=null;this.EA=!1;this.Mv=this.lG=this.Ij=this.zI=null;this.qgH=this.cH=this.Ry=!1}; J7m=function(m){var V=m.api.j(),O=g.l(m.api.getPlayerStateObject(),128);return V.T&&O&&!m.api.isFullscreen()}; CZa=function(m){if(m.B2()&&!m.api.isEmbedsShortsMode()&&m.v1){var V=m.api.Y("web_player_hide_overflow_button_if_empty_menu");!m.m9||V&&!wTp(m.m9)||Vgm(m.v1,m.m9);!m.shareButton||V&&!A27(m.shareButton)||Vgm(m.v1,m.shareButton);!m.copyLinkButton||V&&!MjX(m.copyLinkButton)||Vgm(m.v1,m.copyLinkButton)}else{V=m.api.j().getWebPlayerContextConfig();if(m.v1){for(var O=m.v1,h=g.D(O.actionButtons),w=h.next();!w.done;w=h.next())w.value.detach();O.actionButtons=[]}m.searchButton&&!g.nK(m.Eg.element,m.searchButton.element)&& m.searchButton.g0(m.Eg.element);!m.m9||(V==null?0:V.hideTopWatchNextButton)||g.nK(m.Eg.element,m.m9.element)||m.m9.g0(m.Eg.element);!m.shareButton||(V==null?0:V.hideTopShareButton)||g.nK(m.Eg.element,m.shareButton.element)||m.shareButton.g0(m.Eg.element);m.copyLinkButton&&!g.nK(m.Eg.element,m.copyLinkButton.element)&&m.copyLinkButton.g0(m.Eg.element)}}; EOa=function(m,V,O){V=O?V.lastElementChild:V.firstElementChild;for(var h=null;V;){if(JQ(V,"display")!=="none"&&V.getAttribute("aria-hidden")!=="true"){var w=void 0;V.tabIndex>=0?w=V:w=EOa(m,V,O);w&&(h?O?w.tabIndex>h.tabIndex&&(h=w):w.tabIndexV||O>10||(m.play(),g.t6(function(){MD$(m,m.getCurrentTime(),O+1)},500))}; fFm=function(m,V){m.K&&m.K.equals(V)||(m.K&&m.K.dispose(),m.K=V)}; xro=function(m){m.sZ()&&(m.RY&&m.RY.Xw("rs_s"),GN&&m.getCurrentTime()>0&&m.seekTo(0),m.qd(),m.load(),fFm(m,null));delete m.N}; R0m=function(m,V){return m.view?y8(V,m.view.start,m.view.end):V}; gOC=function(m){m=m===void 0?!1:m;oOp||(window.addEventListener(ed?"touchstart":"click",function(){var V=m;V=V===void 0?!1:V;for(var O=rF.length;O<4;O++){var h=g.Yc("VIDEO");h.load();rF.push(V?new g.kJ(h):new g.e9(h))}},{capture:!0, passive:!0}),oOp=!0)}; A7p=function(m,V,O,h,w){w=w===void 0?!1:w;var y=O.getVideoData(),L=V.getVideoData();if(O.getPlayerState().isError())return{msg:"player-error"};var C=L.D;if(V.T6()>h/1E3+1)return{msg:"in-the-past"};if(L.isLivePlayback&&!isFinite(h))return{msg:"live-infinite"};h=V.C4();var E=null;h&&(E=w?h.Z.played||QK([],[]):h.isView()?h.mediaElement.CT():h.CT());if(E&&E.length>12&&g.nd(y))return{msg:"played-ranges"};if(!y.D)return null;if(!C)return{msg:"no-pvd-formats"};if(!y.D.Z||!C.Z)return{msg:"non-dash"};w=C.videoInfos[0]; h=y.D.videoInfos[0];m.Zu&&Uf(L)&&(w=V.sQ(),h=O.sQ());if(!w||!h)return{msg:"no-video-info"};if(m.N&&(ec(w)||ec(h)))return{msg:"av1"};V=m.T&&L.X3()&&CS();if(h.containerType!==w.containerType)if(V)L.uH("sgap",{ierr:"container"});else return{msg:"container"};if(m.K&&!V&&(h.B6!==w.B6||h.B6===""||w.B6===""))return{msg:"codec"};if(m.J&&h.video&&w.video&&Math.abs(h.video.width/h.video.height-w.video.width/w.video.height)>.01)return{msg:"ratio"};if(g.nd(L)&&g.nd(y))return{msg:"content-protection"};C=C.Z[0]; y=y.D.Z[0];O=C.audio;E=y.audio;if(O.sampleRate!==E.sampleRate&&!g.q3)if(V)L.uH("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:C.itag,cr:O.sampleRate,ni:y.itag,nr:E.sampleRate};return(O.numChannels||2)!==(E.numChannels||2)?{msg:"channel-count"}:m.V&&L.X3()&&w.video.fps!==h.video.fps?{msg:"fps"}:null}; Ur3=function(m,V,O,h){h=h===void 0?!1:h;var w=m.getVideoData(),y=V.getVideoData();if(!w.j().supportsGaplessShorts())return{nq:"env"};if((!O.Qt||w.SJ&&!w.isAd()||y.SJ&&!y.isAd())&&(!O.L||w.SJ&&!w.isAd()||y.SJ)&&(!O.D||y.SJ&&!y.isAd()||w.SJ)&&(w.SJ||y.SJ))return{nq:"autoplay"};if(w.endSeconds>0)return{nq:"endcr"};if(!w.J)return{nq:"client"};if(!m.DM())return{nq:"no-empty"};m=A7p(O,m,V,Infinity,h);return m!=null?{nq:m.msg}:null}; cW=function(m){g.Z.call(this);this.app=m;this.K=this.T=this.L=this.Z=null;this.D=1;this.events=new g.Rc(this);this.events.C(this.app.kN,g.pR("gaplessshortslooprange"),this.V);g.a(this,this.events)}; dr5=function(){this.Z=this.J=this.D=this.L=this.Qt=this.N=this.Zu=this.V=this.K=this.T=!1}; tD5=function(m){var V=new dr5;V.T=m.Y("h5_gapless_support_types_diff");V.V=!1;V.Zu=m.Y("html5_gapless_use_format_info_fix");V.N=m.Y("html5_gapless_disable_on_av1")&&!m.Y("html5_gapless_enable_on_av1");V.K=m.Y("html5_gapless_check_codec_diff_strictly");V.Qt=m.Y("html5_gapless_on_ad_autoplay");V.J=m.Y("html5_gapless_disable_diff_aspect_radio");V.L=m.Y("html5_gapless_ad_autoplay_on_ad_to_video_only")&&!m.Y("html5_disable_loop_range_for_shorts_ads");V.Z=m.Y("html5_pseudogapless_shorts_seek_to_next_start"); V.D=m.Y("html5_gapless_ad_autoplay_on_video_to_ad_only");return V}; g.Dh=function(m,V,O,h){h=h===void 0?!1:h;dG.call(this);this.mediaElement=m;this.start=V;this.end=O;this.E6=h}; K6a=function(m,V,O,h,w,y){y=y===void 0?0:y;g.Z.call(this);var L=this;this.policy=m;this.Z=V;this.L=O;this.kf=w;this.K=y;this.T=this.D=null;this.currentVideoDuration=this.N=-1;this.J=!1;this.J_=new Ut;this.WU=h-V.OU()*1E3;this.J_.then(void 0,function(){}); this.timeout=new g.mq(function(){L.hR("timeout")},1E4); g.a(this,this.timeout);this.V=isFinite(h)||this.kf.j().experiments.w0("html5_pseudogapless_shorts")&&Uf(V.getVideoData());this.status={status:0,error:null}}; XTU=function(m){var V,O,h,w,y,L,C,E,q;return g.u(function(M){if(M.Z==1){if(m.UH())return M.return(Promise.reject(Error(m.status.error||"disposed")));m.timeout.start();return g.I(M,m.J_,2)}V=m.Z.C4();if(V.isEnded())return m.hR("ended_in_finishTransition"),M.return(Promise.reject(Error(m.status.error||"")));if(!m.T||!fS(m.T))return m.hR("next_mse_closed"),M.return(Promise.reject(Error(m.status.error||"")));if(m.L.E8()!==m.T)return m.hR("next_mse_mismatch"),M.return(Promise.reject(Error(m.status.error|| "")));O=NG(m);h=O.Y0;w=O.Ya;y=O.Cj;m.Z.GQ(!1,!0);L=W6o(m,V,h,y,!m.L.getVideoData().isAd());m.L.setMediaElement(L);(C=m.Z.BC())&&m.L.DS(C.G_,C.Kk);m.V&&(m.policy.Z||m.L.seekTo(m.L.getCurrentTime()+.001,{rb:!0,mU:3,Jq:"gapless_pseudo"}),L.play());E=V.xD();E.cpn=m.Z.getVideoData().clientPlaybackNonce;E.st=""+h;E.et=""+y;m.L.uH("gapless",E);m.Z.uH("gaplessTo",{cpn:m.L.getVideoData().clientPlaybackNonce});q=m.Z.getPlayerType()===m.L.getPlayerType();m.Z.rh(w,!0,!1,q,m.L.getVideoData().clientPlaybackNonce); m.L.rh(m.L.getCurrentTime(),!0,!0,q,m.Z.getVideoData().clientPlaybackNonce);m.L.Vw();g.rw(function(){!m.L.getVideoData().V&&m.L.getPlayerState().isOrWillBePlaying()&&m.L.nF()}); b3(m,6);m.dispose();return M.return(Promise.resolve())})}; YQ$=function(m){if(m.L.getVideoData().D){var V=m.kf.j().Y("html5_gapless_suspend_next_loader")&&m.K===1;m.L.e0(m.T,V,HAo(m));b3(m,3);Tu1(m);var O=$r5(m);V=O.Me;O=O.u8;V.subscribe("updateend",m.oe,m);O.subscribe("updateend",m.oe,m);m.oe(V);m.oe(O)}}; Tu1=function(m){m.Z.unsubscribe("internalvideodatachange",m.Q0,m);m.L.unsubscribe("internalvideodatachange",m.Q0,m);m.kf.j().Y("html5_gapless_use_format_info_fix")&&(m.Z.unsubscribe("internalvideoformatchange",m.Q0,m),m.L.unsubscribe("internalvideoformatchange",m.Q0,m));m.Z.unsubscribe("mediasourceattached",m.Q0,m);m.L.unsubscribe("statechange",m.pu,m)}; kBa=function(m){var V=m.kf.j().experiments.wu().Z.lH(nB);return A7p(m.policy,m.Z,m.L,m.WU,V)}; W6o=function(m,V,O,h,w){if(m.kf.j().experiments.wu().Z.lH(nB))return V.view={start:O,end:h,E6:w===void 0?!1:w},V;m=V.isView()?V.mediaElement:V;return new g.Dh(m,O,h,w)}; b3=function(m,V){V<=m.status.status||(m.status={status:V,error:null},V===5&&m.J_.resolve())}; HAo=function(m){return m.kf.j().Y("html5_gapless_no_clear_buffer_timeline")&&m.K===1&&SC(m.Z.getVideoData())}; NG=function(m){var V=m.Z.C4();V=V.isView()?V.start:0;var O=m.Z.getVideoData().isLivePlayback?Infinity:m.Z.qz(!0);O=Math.min(m.WU/1E3,O)+V;var h=m.V?100:0;m=O-m.L.T6()+h;return{MS:V,Y0:m,Ya:O,Cj:Infinity}}; $r5=function(m){return{Me:m.D.Z.hq,u8:m.D.L.hq}}; Sg=function(m){g.Z.call(this);var V=this;this.app=m;this.J=this.L=this.Z=null;this.Zu=!1;this.Qt=this.N=this.D=this.T=null;this.K=tD5(this.app.j());this.V=function(){g.rw(function(){r7a(V)})}}; c77=function(m,V,O,h,w){h=h===void 0?0:h;w=w===void 0?0:w;m.DM()||(IO(m),eg(m));m.T=new Ut;m.Z=V;var y=O,L=w===0;L=L===void 0?!0:L;var C=m.app.OH(),E=C.getVideoData().isLivePlayback?Infinity:C.qz(!0)*1E3;y>E&&(y=E-200,m.Zu=!0);L&&C.getCurrentTime()>=y/1E3?m.V():(m.L=C,L&&(L=y,y=m.L,m.app.kN.addEventListener(g.Gu("vqueued"),m.V),L=isFinite(L)||L/1E3>y.getDuration()?L:0x8000000000000,m.J=new g.a2(L,0x8000000000000,{namespace:"vqueued"}),y.addCueRange(m.J)));L=h/=1E3;y=V.getVideoData().Z;h&&y&&m.L&& (C=h,E=0,V.getVideoData().isLivePlayback&&(L=Math.min(O/1E3,m.L.qz(!0)),E=Math.max(0,L-m.L.getCurrentTime()),C=Math.min(h,V.qz()+E)),L=zhI(y,C)||h,L!==h&&m.Z.uH("qvaln",{st:h,at:L,rm:E,ct:C}));V=L;h=m.Z;h.getVideoData().l2=!0;h.getVideoData().J=!0;h.Js(!0);y={};m.L&&(y=m.L.Zw(),L=m.L.getVideoData().clientPlaybackNonce,y={crt:(y*1E3).toFixed(),cpn:L});h.uH("queued",y);V!==0&&h.seekTo(V+.01,{rb:!0,mU:3,Jq:"videoqueuer_queued"});m.D=new K6a(m.K,m.app.OH(),m.Z,O,m.app,w);O=m.D;O.status.status!==Infinity&& (b3(O,1),O.Z.subscribe("internalvideodatachange",O.Q0,O),O.L.subscribe("internalvideodatachange",O.Q0,O),O.kf.j().Y("html5_gapless_use_format_info_fix")&&(O.Z.subscribe("internalvideoformatchange",O.Q0,O),O.L.subscribe("internalvideoformatchange",O.Q0,O)),O.Z.subscribe("mediasourceattached",O.Q0,O),O.L.subscribe("statechange",O.pu,O),O.Z.subscribe("newelementrequired",O.Dm,O),O.Q0());return m.T}; r7a=function(m){var V,O,h,w,y,L,C;g.u(function(E){switch(E.Z){case 1:if(m.UH()||!m.T||!m.Z)return E.return();m.Zu&&m.app.OH().mA(!0,!1);V=null;if(!m.D){E.Te(2);break}g.JG(E,3);return g.I(E,XTU(m.D),5);case 5:g.EJ(E,2);break;case 3:V=O=g.qA(E);case 2:if(!m.Z)return E.return();DrX.rT("vqsp",function(){m.app.Yb(m.Z)}); if(!m.Z)return E.return();h=m.Z.C4();m.app.j().Y("html5_gapless_seek_on_negative_time")&&h&&h.getCurrentTime()<-.01&&m.Z.seekTo(0);DrX.rT("vqpv",function(){m.app.playVideo()}); V&&(m.Z?(w=V?V.message:"forced",(y=m.L)==null||y.uH("gapfulfbk",{r:w}),m.Z.FS(w)):(L=m.L)==null||L.uH("gapsp",{}));C=m.T;eg(m);C&&C.resolve();return E.return(Promise.resolve())}})}; eg=function(m,V){V=V===void 0?!1:V;if(m.L){if(m.J){var O=m.L;m.app.kN.removeEventListener(g.Gu("vqueued"),m.V);O.removeCueRange(m.J)}m.L=null;m.J=null}m.D&&(m.D.status.status!==6&&(O=m.D,O.status.status!==Infinity&&O.K!==1&&O.hR("Canceled")),m.D=null);m.T=null;m.Z&&!V&&m.Z!==m.app.Zj()&&m.Z!==m.app.OH()&&m.Z.dispose();m.Z&&V&&m.Z.Uo();m.Z=null;m.Zu=!1}; IO=function(m){m.Qt&&m.N&&m.Qt.removeEventListener("timeupdate",m.N);m.N=null;m.Qt=null}; nO5=function(m,V){if(m.app.j().wu().Z.lH(NuC)){var O=m.app.j().wu().Z.lH(bAC);if(!(O<=0)){IO(m);var h,w=(h=m.app.OH())==null?void 0:h.C4();w&&m.Z&&(m.Z.getVideoData().AK=!0,m.N=function(){var y=w.getCurrentTime();y>=V+O/1E3&&(y=Date.now()-(y-V)*1E3,m.app.Pj().tick("pbs",y),IO(m))},m.Qt=w,w.addEventListener("timeupdate",m.N))}}}; SQ5=function(m){var V;return((V=m.D)==null?void 0:V.currentVideoDuration)||-1}; IF3=function(m,V,O){if(m.DM())return"qie";if(m.Z==null||m.Z.UH()||m.Z.getVideoData()==null)return"qpd";if(V.videoId!==m.Z.HW())return"vinm";if(SQ5(m)<=0)return"ivd";if(O!==1)return"upt";if((O=m.D)==null)m=void 0;else if(O.getStatus().status!==5)m="niss";else if(kBa(O)!=null)m="pge";else{V=$r5(O);m=V.Me;var h=V.u8;V=g.m9(O.kf.j().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var w=O.N+V;O.kf.j().experiments.w0("html5_pseudogapless_shorts")&&(w=NG(O).Y0+V);O=mu(h.RJ(),w);m=mu(m.RJ(),w); m=!(V>0)||O&&m?null:"neb"}return m!=null?m:null}; e0C=function(){g.yh.call(this);var m=this;this.fullscreen=0;this.T=this.D=this.pictureInPicture=this.Z=this.L=this.inline=!1;this.K=function(){m.zB()}; Jmp(this.K);this.N=this.getVisibilityState(this.rH(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.JZ(),this.qx(),this.Nx(),this.OJ())}; var OoC=function(){return U3[J[4]](this,4)}; RW7=function(m){return!(m.isMinimized()||m.isInline()||m.isBackground()||m.JZ()||m.qx()||m.Nx()||m.OJ())}; g.u3=function(m){g.Z.call(this);this.W=m;this.videoData=this.playerState=null}; ZAa=function(m,V,O){return(O===void 0?0:O)?new ug5(m,V):new z0m(m,V)}; z0m=function(m,V){g.Z.call(this);var O=this;this.data=[];this.D=m||NaN;this.L=V||null;this.Z=new g.mq(function(){ze(O);Zh(O)}); g.a(this,this.Z)}; ze=function(m){var V=(0,g.TN)();m.data.forEach(function(O){O.expireh)break;var y=O.Z.remove(),L=O.map.get(y);L&&L.kB===w&&Fj(O,y,!0)}aO(O)}); this.map=new Map;this.Z=new aM;Number.isNaN(m);g.a(this,this.D)}; Fj=function(m,V,O){var h=m.map.get(V);if(!h)return!1;m.map.delete(V);O&&m.L&&m.L(h.value);if(m.Z.Z.length>m.map.size*2)for(m.Z.clear(),V=g.D(m.map.entries()),O=V.next();!O.done;O=V.next())h=g.D(O.value),O=h.next().value,h=h.next().value,isFinite(h.kB)&&m.Z.enqueue(h.kB,O);return!0}; aO=function(m){m.D.stop();for(var V;!m.Z.isEmpty();){var O=FQ(m.Z);var h=m.Z.Z;h=h.length!=0?h[0].getValue():void 0;if(O===void 0||h===void 0)break;if((h=m.map.get(h))&&h.kB===O){V=O;break}else m.Z.remove()}V!==void 0&&(O=(0,g.TN)(),m.D.start(Math.max(V-O,100)))}; g.i3=function(m,V){g.Z.call(this);var O=this;this.api=m;this.D={};this.TQ=null;this.T={};this.Z=null;this.V=new Map;this.K=null;V=ZAa(V,function(h){h!==O.OZ({playerType:h.getPlayerType()})&&h.dispose()},m.j().wu().Z.lH(sol)); g.a(this,V);this.L=this.Qt=this.J=new g.u3(m.j());this.N=V}; Ge=function(m){var V=[{cpn:m.L.z6()}];m.Z&&V.push({cpn:m.Z.z6()});m.api.publish("playbackChange",{ZSe:V})}; F6a=function(m){for(var V=g.D(Object.values(m.T)),O=V.next();!O.done;O=V.next())O.value.dispose();m.T={};m.Z=null;m.K=null;m.V.clear();Ge(m)}; pB=function(m,V,O){var h=h===void 0?"":h;m.T[V.z6()]=V;m.Z=V;O&&(m.K=V);m.V.set(h,V);Ge(m)}; mna=function(m){var V=m.experiments,O=V.w0.bind(V);aFl=iA3=O("html5_use_async_stopVideo");GBl=pTa=O("html5_pause_for_async_stopVideo");Bu$=lF$=O("html5_not_reset_media_source");O("html5_listen_for_audio_output_changed")&&(Qo5=vOU=!0);x_=O("html5_not_reset_media_source");PZa=O("html5_not_reset_media_source");LS=O("html5_retain_source_buffer_appends_for_debugging");Sr0(O("web_watch_pip")||O("web_shorts_pip"));q6p(O("log_foreground_not_focused_as_background"));f05(O("web_player_pip_logging_fix"));O("html5_mediastream_applies_timestamp_offset")&& (BY=!0);m.tj()&&g8G();Error.stackTraceLimit=50;var h=g.m9(V,"html5_idle_rate_limit_ms");h&&Object.defineProperty(window,"requestIdleCallback",{value:function(w){return window.setTimeout(w,h)}}); fIo(m.K);cs7(O("html5_use_ump_request_slicer"));CO$(O("html5_record_now"));O("html5_disable_streaming_xhr")&&(j3=!1);O("html5_byterate_constraints")&&(zX=!0);O("html5_use_non_active_broadcast_for_post_live")&&(di=!0);O("html5_enable_encrypted_av1")&&(Ic=!0);JCa(g.m9(m.experiments,"html5_sticky_duration_mos"))}; EbU=function(m){function V(y,L,C){h.push(hr(L(C),function(E){O[y]=E}))} var O={};m=m.experiments.tv();var h=[],w=m.Z.lH(VPG);w&&V("MediaSource.EnableUsingMediaSourceBufferedRange",Lv5,w===1);(w=m.Z.lH(ONG))&&V("HTTP3",JFX,w===1);(w=m.Z.lH(hE0))&&V("MediaSource.EnableUsingMediaSourceAttachmentMethods",Cbo,w===1);(w=m.Z.lH(w0l))&&V("QUIC",E8l,w===1);(w=m.Z.lH(ypl))&&V("Media.PlayerConfiguration.DecodeToTexturePreferred",M3p,w===1);(w=m.Z.lH(jY1))&&V("Media.AudioWriteDurationLocal",qcG,Number(w));(w=m.Z.lH(LNC))&&V("Media.DisableExternalAllocator",fZl,Number(w)===1);(w= m.Z.lH(JpG))&&V("Media.VideoBufferSizeClampMb",xE3,w);(m=m.Z.lH(CD7))&&V("Media.EnableAllocateOnDemand",RvX,Number(m)===1);return hr(r0U(h),function(){return O})}; qoU=function(m){this.L=m===void 0?15:m;this.values=new Float64Array(176);this.Z=new Float64Array(11);this.D=new Float64Array(16)}; BW=function(m,V,O,h){O=O===void 0?.5:O;h=h===void 0?0:h;this.resolution=V;this.L=0;this.D=!1;this.PM=!0;this.Z=Math.round(m*this.resolution);this.values=Array(this.Z);for(m=0;m0)V=m.byterate,this.Zu= !0;else{var h;O=(((h=navigator.connection)==null?void 0:h.downlink)||0)*64*1024;O>0&&(V=O,this.Zu=!0)}this.D.xZ(this.policy.N,V);m.delay>0&&this.V.xZ(1,Math.min(m.delay,2));m.stall>0&&this.J.xZ(1,m.stall);m.init>0&&(this.H6=Math.min(m.init,this.H6));m.interruptions&&(this.T=this.T.concat(m.interruptions),this.T.length>16&&this.T.pop());this.Ae=(0,g.TN)();this.policy.J>0&&(this.Mf=new g.mq(this.Xr,this.policy.J,this),g.a(this,this.Mf),this.Mf.start())}; Wc=function(m,V,O,h){m.D.xZ(h===void 0?V:h,O/V);m.N=(0,g.TN)()}; kw3=function(m){m.K||(m.K=(0,g.TN)());m.policy.Qt&&(m.N=(0,g.TN)())}; ctX=function(m,V){if(m.K){var O=V-m.K;if(O<6E4){if(O>1E3){var h=m.interruptions;h.push(Math.ceil(O));h.sort(function(w,y){return y-w}); h.length>16&&h.pop()}m.v6+=O}}m.K=V}; l3=function(m,V,O,h,w,y){y=y===void 0?!1:y;m.EH.xZ(V,O/V);m.N=(0,g.TN)();w||m.Qt.xZ(1,V-h);y||(m.K=0);m.Ae>-1&&(0,g.TN)()-m.Ae>3E4&&(CIX(Am(m)),m.Ae=(0,g.TN)(),m.Zu=!0)}; QN=function(m,V,O){V=Math.max(V,m.L.Z);m.J.xZ(1,O/V)}; QF=function(m){m=m.V.Og()+m.iH.Og()||0;m=isNaN(m)?.5:m;return m=Math.min(m,5)}; fRU=function(m,V,O){isNaN(O)||(m.mS+=O);isNaN(V)||(m.Je+=V)}; xn$=function(m){m=m.D.Og();return m>0?m:1}; P1=function(m,V,O){V=V===void 0?!1:V;O=O===void 0?1048576:O;var h=xn$(m);h=1/((m.J.Og()||0)*m.policy.Zu+1/h);var w=m.EH.Og();w=w>0?w:1;var y=Math.max(h,w);m.policy.K>0&&w=4E3}; REI=function(m){this.experiments=m;this.Z=17;this.D=13E4;this.N=.5;this.T=this.L=!1;this.Ae=this.Y("html5_use_histogram_for_bandwidth");this.K=g.m9(this.experiments,"html5_auxiliary_estimate_weight");this.Zu=g.m9(this.experiments,"html5_stall_factor")||1;this.J=g.m9(this.experiments,"html5_check_for_idle_network_interval_ms");this.V=this.experiments.w0("html5_trigger_loader_when_idle_network");this.Qt=this.experiments.w0("html5_sabr_fetch_on_idle_network_preloaded_players")}; obp=function(m,V,O){var h=new REI(O);m&&(h.L=!0,h.N=.1);O.w0("html5_media_time_weight")&&(h.L=!1);V&&(h.D=V/8);h.T=Ym()>=480;return h}; Ap$=function(m,V,O,h){h=h===void 0?0:h;g.vz.call(this,O.kK());var w=this;this.HD=m;this.videoData=V;this.duration=h;this.Z=this.startTimeSecs=0;this.L=this.D=!0;this.T=new gbG(function(y,L){return void w.uH(y,L)})}; gbG=function(m){this.uH=m;this.Z={}}; Una=function(m,V,O){m.Z[V]||(m.uH("huli-sdai-err",O),m.Z[V]=!0)}; dn0=function(m){this.end=this.start=m}; g.vW=function(){this.Z=new Map;this.D=new Map;this.L=new Map}; tPG=function(m){var V=this;this.W=m;this.L=[];this.D=new Map;this.T=new Map;this.Z=new Map;this.BD={zs:function(){return V.D}, nbH:function(){return V.T}, I0:function(){return V.L}}; this.K=this.W.Y("html5_huli_ssdai_deprecate_playback_timeline_id")}; KNo=function(m,V,O){m=m.L;var h=g.f9(m,{Tj:V},function(L,C){return L.Tj-C.Tj}); h=h<0?(h+2)*-1:h;if(h>=0)for(var w=h;w<=h+1&&w=y.Tj-O&&V<=y.uU+O)return y}}; X0o=function(m,V){g.gZ(m.L,V,function(O,h){return O.Tj===h.Tj?O.durationMs-h.durationMs:O.Tj-h.Tj}); m.D.set(V.cpn,V);V.f4&&!m.K&&m.T.set(V.f4,V);V.IS&&WNG(m,V.IS,V)}; HNX=function(m,V){for(var O=[],h=g.D(m.L),w=h.next();!w.done;w=h.next())w=w.value,V(w)||O.push(w);if(m.W.Y("html5_sstm_fixes"))for(h=g.D(m.L),w=h.next();!w.done;w=h.next())w=w.value,V(w)&&(m.D.delete(w.cpn),w.f4&&m.T.delete(w.f4));m.L=O}; Tpl=function(m,V){V=g.f9(m.L,{uU:V},function(O,h){return O.uU-h.uU}); return V>=0?m.L[V]:null}; $nl=function(m,V){var O=m.L.indexOf(V);O>=0&&m.L.splice(O,1);m.D.delete(V.cpn);V.f4&&m.T.delete(V.f4)}; WNG=function(m,V,O){var h=m.Z.get(V);h?(h.push(O),g.Rg(h,function(w,y){return w.Tj-y.Tj})):m.Z.set(V,[O])}; g.PW=function(m,V,O,h){g.Z.call(this);var w=this;this.api=m;this.W=V;this.playback=O;this.app=h;this.Zu=new g.vW;this.L=new Map;this.kD=new Map;this.mS=new Map;this.iH=null;this.LP=NaN;this.nA=this.Aj=null;this.W6=new g.mq(function(){YoC(w,w.LP,w.Aj||void 0)}); this.events=new g.Rc(this);this.CA=15E3;this.N=new g.mq(function(){w.J=!0;w.playback.eN(w.CA);kDm(w);if(w.playback.getVideoData().Z4()){var y;w.q8({togab:(y=w.K)==null?void 0:y.identifier})}w.S$(!1)},this.CA); this.J=!1;this.At=new Map;this.Je=[];this.K=null;this.iU=new Set;this.V=[];this.H6=[];this.tq=[];this.ma=[];this.fA=new Set;this.xx=0;this.Qt=!1;this.qq=new Set;this.l2=new Set;this.BB=new Set;this.pA=new Set;this.Rd=this.KM=0;this.SI=this.nP=!1;this.eW=this.D="";this.Ae=null;this.logger=new g.Ht("dai");this.VF="";this.Mf=!0;this.EH=new Map;this.UU=new Map;this.BD={BAz:function(){return w.L}, zs:function(){return w.Z.BD.zs()}, u$0:function(){return w.D}, t1z:function(y){w.onCueRangeEnter(w.L.get(y))}, OE0:function(y){w.onCueRangeExit(w.L.get(y))}, HSY:function(y,L){w.L.set(y,L)}, yJS:function(y){w.eW=y}, ID:function(){return w.ID()}, V1z:function(y){return w.Z.Z.get(y)}, ZVe:function(){return w.Ae}, I0:function(){return w.Z.BD.I0()}, iz:function(y,L){w.iz(y,L)}, DOf:function(){return w.kD}, Ps:function(y){w.Ps(y)}}; this.playback.getPlayerType();this.Z=new tPG(this.W);this.playback.zt(this);this.Xr=this.W.tj();g.a(this,this.W6);g.a(this,this.events);g.a(this,this.N);this.GB=this.W.Y("html5_use_new_ssdai_transition_detector");this.Id=this.W.wu().Z.lH(pc7);this.CP=this.W.wu().Z.lH(rpo);this.wB=this.playback.getVideoData().X7;this.GB?this.playback.subscribe("playbackstarted",this.iz,this):(this.events.C(this.api,g.Gu("serverstitchedcuerange"),this.onCueRangeEnter),this.events.C(this.api,g.pR("serverstitchedcuerange"), this.onCueRangeExit));this.Y5=this.W.Y("html5_ssdai_report_stitch_error_after_skip_ad");pB(this.app.Ic(),this.playback,!1)}; nbp=function(m,V,O,h,w,y,L,C,E){var q=cpo(m,y,y+w);m.J&&m.q8({adaftto:1});O||m.q8({missadcon:1,enter:y,len:w,aid:C});m.T&&!m.T.gq&&(m.T.gq=C);m.SI&&m.q8({adfbk:1,enter:y,len:w,aid:C});var M=m.playback;y>L&&mk(m,{reason:"enterTime_greater_than_return",Tj:y,uU:L});var f=M.jb()*1E3;yM&&mk(m,{reason:"parent_return_greater_than_content_duration",uU:L,h1H:M});(M=Tpl(m.Z,y))&&M.uU>y&&Dn5(m,V.video_id|| "",y,L,M);if(q&&M)for(f=0;f=V)return O}m=g.D(m.L.values());for(O=m.next();!O.done;O=m.next())if(O=O.value,O.start<=V&&O.end>=V)return O}; YoC=function(m,V,O){var h=m.nA||m.app.OH().getPlayerState();hf(m,!0);m.playback.seekTo(V,O);m=m.app.OH();V=m.getPlayerState();h.isOrWillBePlaying()&&!V.isOrWillBePlaying()?m.playVideo():h.isPaused()&&!V.isPaused()&&m.pauseVideo()}; hf=function(m,V){m.LP=NaN;m.Aj=null;m.W6.stop();m.iH&&V&&m.iH.P3();m.nA=null;m.iH=null}; p0l=function(m){var V=V===void 0?-1:V;var O=O===void 0?Infinity:O;iNp(m,V,O);for(var h=g.D(m.L.values()),w=h.next();!w.done;w=h.next())w=w.value,w.start>=V&&w.end<=O&&(m.playback.removeCueRange(w),m.L.delete(w.getId()),m.q8({rmAdCR:1}));h=OO(m,V/1E3);V=h.Fj;h=h.QS;V&&(h=h*1E3-V.Tj,GDl(m,V,h,V.Tj+h),h=m.L.get(V.cpn))&&(h.start=V.Tj,h.end=V.Tj+V.durationMs);if(V=OO(m,O/1E3).Fj){var y;h="playback_timelinePlaybackId_"+V.f4+"_video_id_"+((y=V.videoData)==null?void 0:y.videoId)+"_durationMs_"+V.durationMs+ "_enterTimeMs_"+V.Tj+"_parentReturnTimeMs_"+V.uU;m.Mz("Invalid_clearEndTimeMs_"+O+"_that_falls_during_"+h+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; Bpo=function(m){m.Zu.clearAll();m.L.clear();m.Z.clear();m.At.clear();m.Je=[];m.K=null;m.iU.clear();m.fA.clear();m.V=[];m.H6=[];m.tq=[];m.ma=[];m.qq.clear();m.l2.clear();m.BB.clear();m.pA.clear();m.J=!1;m.xx=0;m.Qt=!1;m.Mf=!1;m.KM=0;m.Rd=0;m.nP=!1;m.SI=!1;m.D="";F6a(m.app.Ic());pB(m.app.Ic(),m.playback,!1);m.mS.clear();m.N.isActive()&&VV(m)}; GDl=function(m,V,O,h){V.durationMs=O;V.uU=h;(h=m.mS.get(V.cpn))?h.qb(O/1E3):m.q8({nop_d:V.cpn})}; iNp=function(m,V,O){HNX(m.Z,function(h){return h.Tj>=V&&h.uU<=O})}; vbI=function(m,V,O,h,w,y){if(!m.SI)if(g.lRC(m,O))m.q8({gdu:"undec",seg:O,itag:w});else if(V=QY5(m,V,O,h,y),!(m.playback.getVideoData().Z4()&&(V==null?0:V.CJ)))return V}; QY5=function(m,V,O,h,w){var y=m.At.get(O);if(!y){if(y=Cw(m,V))return y;V=m.Sn(O-1,h!=null?h:2);if(w)return m.q8({misscue:w,sq:O,type:h,prevsstate:V==null?void 0:V.DT,prevrecord:m.At.has(O-1)}),m.At.get(O-1);if((V==null?void 0:V.DT)===2)return m.q8({adnf:1,sq:O,type:h,prevrecord:m.At.has(O-1)}),m.At.get(O-1)}return y}; Cw=function(m,V){V+=m.G7();var O;if(m.playback.getVideoData().Z4()){a:{var h=V*1E3;m=g.D(m.Z.L);for(O=m.next();!O.done;O=m.next()){O=O.value;var w=O.wV?O.wV*1E3:O.Tj;if(h>=O.Tj-1E3&&h<=w+O.durationMs+1E3){h=O;break a}}h=void 0}O={Fj:h,QS:V}}else O=OO(m,V),((h=O)==null?0:h.Fj)||(O=OO(m,V,1));var y;return(y=O)==null?void 0:y.Fj}; g.KS1=function(m,V,O,h,w,y,L){var C=w===3,E=vbI(m,V,O,w,h,L);if(!E){wY(m,O,C);var q=g.lRC(m,O)?"undec":"ncp";m.q8({gvprp:q,mt:V,seg:O,tt:w,itag:h,ce:L});return null}C||m.At.set(O,E);L=E.IS;var M;w=((M=m.Sn(O-1,w,y))==null?void 0:M.yh)||"";w===""&&m.q8({eds:1});M=PDm(m,E.ssdaiAdsConfig);y=m.playback.getVideoData();var f;C=((f=y.L)==null?void 0:f.containerType)||0;f=y.Zc[C];E=E.xq&&O>=E.xq?E.xq:void 0;f={vM:L?mV0(m,L):[],adsConfig:M,yh:w,x_:E,tX:BM(f.split(";")[0]),N_:f.split(";")[1]||""};E={jR:f}; m.Xr&&(V={gvprpro:"v",sq:O,mt:V.toFixed(3),itag:h,acpns:((q=f.vM)==null?void 0:q.join("_"))||"none",abid:L},m.q8(V));return E}; PDm=function(m,V){V=V===void 0?"":V;var O=It(V)||void 0;if(!V||!O){var h;m.q8({adcfg:(h=V)==null?void 0:h.length,dcfg:O==null?void 0:O.length})}return O}; VA0=function(m){for(var V=g.D(m.L.values()),O=V.next();!O.done;O=V.next())m.playback.removeCueRange(O.value);m.L.clear();m.Zu.clearAll()}; hrU=function(m,V,O,h,w,y,L){if(V&&O){m.eW=O.cpn;m.l0(O.cpn,O.startTimeSecs||w);eEm(m,O);var C=So0(m,"a2a",O);m.q8(C);m.KM++;C=OWo(m);m.playback.xX(V,O,h||0,w||0,!!y,!!L,void 0,C)}else m.q8({misspbkonadtrans:1,enter:(O==null?void 0:O.cpn)||"",exit:(V==null?void 0:V.cpn)||"",seek:y,skip:L})}; wY=function(m,V,O){if(O===void 0||!O){O=g.D(m.Je);for(var h=O.next();!h.done;h=O.next()){h=h.value;if(V>=h.start&&V<=h.end)return;if(V===h.end+1){h.end+=1;return}}m.Je.push(new dn0(V))}}; g.lRC=function(m,V){m=g.D(m.Je);for(var O=m.next();!O.done;O=m.next())if(O=O.value,V>=O.start&&V<=O.end)return!0;return!1}; w$l=function(m,V,O){var h;if(h=m.playback.getVideoData().Z4())h=(h=m.Z.OZ({cpn:V}))&&h.IS?(m=m.Z.Z.get(h==null?void 0:h.IS))&&m.slice(-1)[0].cpn===V:!1;return h&&O===2?1E3:0}; Dn5=function(m,V,O,h,w){var y;V={reason:"overlapping_playbacks",xHr:V,Tj:O,uU:h,XfS:w.f4,aXY:((y=w.videoData)==null?void 0:y.videoId)||"",NAN:w.durationMs,Jst:w.Tj,euN:w.uU};mk(m,V)}; mk=function(m,V,O){m.playback.XB(V,O)}; mV0=function(m,V){var O=[];m=m.Z.Z.get(V);if(!m)return[];m=g.D(m);for(V=m.next();!V.done;V=m.next())V=V.value,V.cpn&&O.push(V.cpn);return O}; ydl=function(m,V,O){var h=0;m=m.Z.Z.get(O);if(!m)return-1;m=g.D(m);for(O=m.next();!O.done;O=m.next()){if(O.value.cpn===V)return h;h++}return-1}; j9C=function(m,V){var O=0;m=m.Z.Z.get(V);if(!m)return 0;m=g.D(m);for(V=m.next();!V.done;V=m.next())V=V.value,V.durationMs!==0&&V.uU!==V.Tj&&O++;return O}; LlU=function(m,V,O){var h=!1;if(O=m.Z.Z.get(O)){O=g.D(O);for(var w=O.next();!w.done;w=O.next())w=w.value,w.durationMs!==0&&w.uU!==w.Tj&&(w=w.cpn,V===w&&(h=!0),h&&!m.l2.has(w)&&(m.q8({decoratedAd:w}),m.l2.add(w)))}}; kDm=function(m){m.Xr&&m.q8({adf:"0_"+((new Date).getTime()/1E3-m.Rd)+"_isTimeout_"+m.J})}; cpo=function(m,V,O){if(m.V.length)for(var h=g.D(m.V),w=h.next(),y={};!w.done;y={K$:void 0},w=h.next()){y.K$=w.value;w=y.K$.startSecs*1E3;var L=y.K$.Ul*1E3+w;if(V>w&&Vw&&O0&&(m.KM=0,m.eW="",m.W.Y("html5_huli_ssdai_use_playback_state")&&m.l0(m.playback.z6(),0),m.api.publish("serverstitchedvideochange"));m.playback.qE(h,w);return!0}; VV=function(m){m.J=!1;m.N.isActive()&&kDm(m);m.N.stop();m.S$(!1)}; Jdl=function(m,V){var O="";V?V.event==="unknown"?O="unknown":m.fA.has(V.identifier)?m.T&&m.T.z2===V.identifier?m.T.z2===V.identifier?O=wj(m.H6,function(h){return h.identifier===V.identifier})?"shortad":"pending":wj(m.H6,function(h){return h.identifier===V.identifier})||(O="noAdsAdded"):O="wrongAdBreakInfo":O="unscheduled":O="noCuepoint"; return O}; jE=function(m,V){m.D||m.Qt||yV(m,m.eW);var O=V.sC,h=V.eH;if(h.cpn===m.eW)m.q8({igtranssame:1,enter:h.cpn,exit:O.cpn});else{var w=m.Qt,y=!!m.D;m.D="";var L=V.Xx,C=O.playerType===2?O.Tj/1E3+O.videoData.UU:m.ID().videoData.UU;m.api.Y("html5_ssdai_enable_media_end_cue_range")&&(y||w||O.playerType!==2?(w||y)&&m.q8({mecr:0,seek:w,skip:y}):m.api.U0(O.cpn));if(O.playerType===2&&h.playerType===2)y?m.q8({igtransskip:1,enter:h.cpn,exit:O.cpn,seek:w,skip:m.D}):hrU(m,O,h,C,L,w,y);else{m.eW=h.cpn;m.l0(h.cpn,h.startTimeSecs|| L);V=V.lkN;if(O.playerType===1&&h.playerType===2){m.xx=0;eEm(m,h);var E=So0(m,"c2a",h);m.q8(E);m.KM++}else if(O.playerType===2&&h.playerType===1){m.api.publish("serverstitchedvideochange");E=So0(m,"a2c");m.q8(E);m.KM=0;m.xx=C;E=O.cpn;var q=m.xx;if(E!==m.playback.z6()){var M=m.mS.get(E);M?M.Z=q:m.q8({nop_e:E})}m.Ps(O.IS)}E=OWo(m);m.playback.xX(O,h,C,L,w,y,V,E)}C$3(m)}}; Egl=function(m,V,O,h){m.W.Y("html5_ssdai_log_ssevt_in_loader_timers")&&(h=m.Qt?0:Math.round((h-O)*1E3),m.playback.uH("ssevt",{tag:"sstme",ad:V!==m.playback.z6(),cpn:V,st:(O-m.playback.G7()).toFixed(3),late:h}))}; qqX=function(m,V,O){m.playback.Jn();m.playback.seekTo(V,O);m.playback.playVideo()}; MA5=function(m,V,O,h){V={sC:V,eH:O,Xx:m.playback.getCurrentTime(),lkN:h};jE(m,V)}; yV=function(m,V){var O=V||m.eW,h=m.Z.OZ({cpn:O});if(h){V=h.videoData;var w,y;O=h.wV||((y=(w=m.L.get(O))==null?void 0:w.start)!=null?y:0)/1E3;m=m.playback.getCurrentTime()-O;V.UU=m>0?m:0}else m.ID().videoData.UU=m.playback.getCurrentTime()}; C$3=function(m){m.pA.add(m.D);m.D="";m.Qt=!1}; OWo=function(m){if(m.Id||m.CP){var V=Array.from(m.app.Ic().V.values()),O=[],h=[],w=[],y=[],L=[],C=[];V=g.D(V);for(var E=V.next();!E.done;E=V.next())if(E=m.Z.OZ({cpn:E.value.z6()}))E.serializedPlaybackPingContextLoggingData&&O.push(E.serializedPlaybackPingContextLoggingData),E.j8&&h.push(E.j8),E.xP&&h.push(E.xP),y.push(E.cpn),L.push(E.videoData.videoId||""),C.push(E.videoData.adFormat||E.videoData.W6),E.serializedQoeContextData&&w.push(E.serializedQoeContextData);E=V=void 0;m.Id&&(E={serializedPlaybackPingContextLoggingData:O, serializedStitchedClipLoggingMetadata:h});m.CP&&(V={vM:y,U4:L,adFormats:C,serializedQoeContextData:w});return{aZ:E,gN:V}}}; xVI=function(m,V,O,h){g.Z.call(this);var w=this;this.api=m;this.W=V;this.Z=O;this.app=h;this.K=new Map;this.L=[];this.D=this.J=null;this.Zu=NaN;this.N=this.T=this.Qt=null;this.V=new g.mq(function(){fKm(w,w.Zu,w.Qt||void 0)}); this.Ae=[];this.mS=new g.mq(function(){var y=w.Ae.pop();if(y){var L=y.f4,C=y.playerVars;y=y.playerType;C&&(C.prefer_gapless=!0,w.api.preloadVideoByPlayerVars(C,y,NaN,"",L),w.Ae.length&&g.Vn(w.mS,4500))}}); this.events=new g.Rc(this);this.BD={cy6:function(){return w.L}}; this.Z.getPlayerType();g.a(this,this.V);g.a(this,this.mS);g.a(this,this.events);this.events.C(this.api,g.Gu("childplayback"),this.onCueRangeEnter);this.events.C(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.C(this.api,"presentingplayerstatechange",this.Lq)}; AdG=function(m,V,O,h,w,y){var L=V.cpn,C=V.docid||V.video_id||V.videoId||V.id,E=m.Z;y=y===void 0?w+h:y;if(w>y)return Li(m,"enterAfterReturn enterTimeMs="+w+" is greater than parentReturnTimeMs="+y.toFixed(3),L,C),"";var q=E.jb()*1E3;if(wq)return E="returnAfterDuration parentReturnTimeMs="+y.toFixed(3)+" is greater than parentDurationMs="+q+". And timestampOffset in seconds is "+ E.OU(),Li(m,E,L,C),"";q=null;for(var M=g.D(m.L),f=M.next();!f.done;f=M.next()){f=f.value;if(w>=f.Tj&&wf.Tj)return Li(m,"overlappingReturn",L,C),"";if(y===f.Tj)return Li(m,"outOfOrder",L,C),"";w===f.uU&&(q=f)}L="cs_childplayback_"+RrI++;C={kF:Jf(h,!0),WU:Infinity,target:null};var x={f4:L,playerVars:V,playerType:O,durationMs:h,Tj:w,uU:y,PC:C};m.L=m.L.concat(x).sort(function(K,X){return K.Tj-X.Tj}); q?ogU(m,q,{kF:Jf(q.durationMs,!0),WU:q.PC.WU,target:x}):(V={kF:Jf(w,!1),WU:w,target:x},m.K.set(V.kF,V),E.addCueRange(V.kF));V=!0;if(m.Z===m.app.OH()&&(E=E.getCurrentTime()*1E3,E>=x.Tj&&EV)break;if(y>V)return{Fj:h,QS:V-w};O=y-h.uU/1E3}return{Fj:null,QS:V-O}}; fKm=function(m,V,O){O=O===void 0?{}:O;var h=m.N||m.app.OH().getPlayerState();qI(m,!0);V=isFinite(V)?V:m.Z.Jk();var w=KlI(m,V);V=w.QS;var y=(w=w.Fj)&&!Ci(m,w)||!w&&m.Z!==m.app.OH(),L=V*1E3;L=m.D&&m.D.start<=L&&L<=m.D.end;!y&&L||EO(m);w?gg1(m,w,V,O,h):Wlo(m,V,O,h,"_execute")}; Wlo=function(m,V,O,h,w){var y=m.Z;y!==m.app.OH()&&m.app.jo();m.W.Y("html5_sabr_csdai_seek_log")||(w="");var L;y.seekTo(V,Object.assign({},{Jq:"application_timelinemanager"+((L=w)!=null?L:"")},O));X$U(m,h)}; gg1=function(m,V,O,h,w){var y=Ci(m,V);if(!y){V.playerVars.prefer_gapless=!0;var L=new g.Ld(m.W,V.playerVars);L.f4=V.f4;m.api.F$(L,V.playerType)}L=m.app.OH();y||L.addCueRange(V.PC.kF);L.seekTo(O,Object.assign({},{Jq:"application_timelinemanager"},h));X$U(m,w)}; X$U=function(m,V){m=m.app.OH();var O=m.getPlayerState();V.isOrWillBePlaying()&&!O.isOrWillBePlaying()?m.playVideo():V.isPaused()&&!O.isPaused()&&m.pauseVideo()}; qI=function(m,V){m.Zu=NaN;m.Qt=null;m.V.stop();m.T&&V&&m.T.P3();m.N=null;m.T=null}; Ci=function(m,V){m=m.app.OH();return!!m&&m.getVideoData().f4===V.f4}; HWo=function(m){var V=m.L.find(function(w){return Ci(m,w)}); if(V){var O=m.app.OH();EO(m);var h=new g.KS(8);V=tAC(m,V)/1E3;Wlo(m,V,{},h,"_force");O.uH("forceParentTransition",{childPlayback:1});m.Z.uH("forceParentTransition",{parentPlayback:1})}}; $V5=function(m,V,O){V=V===void 0?-1:V;O=O===void 0?Infinity:O;for(var h=V,w=O,y=g.D(m.K),L=y.next();!L.done;L=y.next()){var C=g.D(L.value);L=C.next().value;C=C.next().value;C.WU>=h&&C.target&&C.target.uU<=w&&(m.Z.removeCueRange(L),m.K.delete(L))}h=V;w=O;y=[];L=g.D(m.L);for(C=L.next();!C.done;C=L.next())if(C=C.value,C.Tj>=h&&C.uU<=w){var E=m;E.J===C&&EO(E);Ci(E,C)&&E.app.jo()}else y.push(C);m.L=y;h=KlI(m,V/1E3);V=h.Fj;h=h.QS;V&&(h*=1E3,Txo(m,V,h,V.uU===V.Tj+V.durationMs?V.Tj+h:V.uU));(V=KlI(m,O/1E3).Fj)&& Li(m,"Invalid clearEndTimeMs="+O+" that falls during playback={timelinePlaybackId="+(V.f4+" video_id="+V.playerVars.video_id+" durationMs="+V.durationMs+" enterTimeMs="+V.Tj+" parentReturnTimeMs="+V.uU+"}.Child playbacks can only have duration updated not their start."))}; Txo=function(m,V,O,h){V.durationMs=O;V.uU=h;h={kF:Jf(O,!0),WU:O,target:null};ogU(m,V,h);Ci(m,V)&&m.app.OH().getCurrentTime()*1E3>O&&(V=tAC(m,V)/1E3,O=m.app.OH().getPlayerState(),Wlo(m,V,{},O,"_update"))}; var gU7=function(m,V){return qm[J[4]](this,14,m,V)}; Li=function(m,V,O,h){m.Z.uH("timelineerror",{e:V,cpn:O?O:void 0,videoId:h?h:void 0})}; k1I=function(m){m&&m!=="web"&&Yq$.includes(m)}; MI=function(m){m=m===void 0?!1:m;g.Z.call(this);this.Z=ZAa(5,null,m);g.a(this,this.Z);this.L=ZAa(15,null,m);g.a(this,this.L)}; pL$=function(m,V){return V?!!m.Z.get(V):!1}; rd7=function(m,V){m.dataset.version=V}; Nxp=function(m){g.p.call(this,{G:"div",KA:["html5-video-player"],B:{tabindex:m.j().disableOrganicUi?"":"-1",id:m.webPlayerContextConfig.rootElementId},S:[{G:"div",X:g.be.VIDEO_CONTAINER,B:{"data-layer":"0"}}]});var V=this;this.app=m;this.iG=this.LA(g.be.VIDEO_CONTAINER);this.vx=new g.V5(0,0,0,0);this.Qu=null;this.yn=new g.V5(0,0,0,0);this.o5=this.LB=this.m5=NaN;this.JP=this.gR=this.YI=this.QX=!1;this.hS=NaN;this.o$=!1;this.JV=null;this.kH=new g.mq(function(){V.app.j().Y("web_enable_smart_zoom")&& V.app.kN.getInternalApi().isAutocropEnabled()||V.resize()},100); this.JT=function(){V.element.focus({preventScroll:!0})}; this.nL=function(){V.app.kN.publish("playerUnderlayVisibilityChange","visible");V.Qu.classList.remove(g.be.VIDEO_CONTAINER_TRANSITIONING);V.Qu.removeEventListener(No,V.nL);V.Qu.removeEventListener("transitioncancel",V.nL)}; this.Qf=this.Cd=!1;var O=this.element.addEventListener,h=this.element.removeEventListener;this.addEventListener=function(y,L,C){O.apply(V.element,[y,L,C])}; this.removeEventListener=function(y,L,C){h.apply(V.element,[y,L,C])}; var w=m.j();w.transparentBackground&&this.u1("ytp-transparent");w.controlsType==="0"&&this.u1("ytp-hide-controls");g.EM(this.element,"ytp-exp-bottom-control-flexbox");g.EM(this.element,"ytp-modern-caption");w.Y("enable_new_paid_product_placement")&&!g.fI(w)&&g.EM(this.element,"ytp-exp-ppp-update");g.EM(this.element,"ytp-livebadge-color");rd7(this.element,cdp(m));this.AL=!1;this.DY=new g.LK(NaN,NaN);DVm(this);this.C(m.kN,"onMutedAutoplayChange",this.onMutedAutoplayChange);g.a(this,this.kH)}; DVm=function(m){function V(L){m.Qu&&fi(m);xR(m)!==m.o$&&m.resize();m.app.j().Y("web_enable_smart_zoom")&&m.iD&&(L.state.isPaused()?m.iD.pause():g.fX(L,8)&&m.iD.playState==="paused"&&m.iD.play())} function O(L,C){m.dV(L,C)} function h(L){L.getVideoData()&&m.updateVideoData(L.getVideoData())} function w(){m.yn=new g.V5(0,0,0,0);m.vx=new g.V5(0,0,0,0)} var y=m.app.kN;y.addEventListener("initializingmode",w);y.addEventListener("videoplayerreset",h);y.addEventListener("videodatachange",O);y.addEventListener("presentingplayerstatechange",V);m.addOnDisposeCallback(function(){y.removeEventListener("initializingmode",w);y.removeEventListener("videoplayerreset",h);y.removeEventListener("videodatachange",O);y.removeEventListener("presentingplayerstatechange",V)})}; nga=function(m){var V=m.app.OH();if(V=V?V.getVideoData():null){if(g.a5(V)||g.i2(V)||g.G_(V))return 16/9;if(Aq(V)&&V.D.Z)return m=V.D.videoInfos[0].video,bWX(m.width,m.height)}return(m=m.Qu)?bWX(m.videoWidth,m.videoHeight):16/9}; Sq5=function(m,V,O,h){var w=O,y=bWX(V.width,V.height);m.QX?w=Oy?{width:V.width,height:V.width/w,aspectRatio:w}:ww?m.width=m.height*O:OE;if(xR(m)){var q=nga(m);var M=isNaN(q)||g.p3||$z&&g.AJ||E;GN&&!g.VS(601)?q=w.aspectRatio:M=M||y.controlsType==="3";M?E?(M=y.Y("place_shrunken_video_on_left_of_player")?16:m.getPlayerSize().width-V.width-16,q=Math.max((m.getPlayerSize().height-V.height)/2,0),M=new g.V5(M,q,V.width, V.height),m.Qu.style.setProperty("border-radius","12px")):M=new g.V5(0,0,V.width,V.height):(O=w.aspectRatio/q,M=new g.V5((V.width-w.width/O)/2,(V.height-w.height)/2,w.width/O,w.height),O===1&&g.AJ&&(q=M.width-V.height*q,q>0&&(M.width+=q,M.height+=q)));g.xN(m.element,"ytp-fit-cover-video",Math.max(M.width-w.width,M.height-w.height)<1);if(C||m.AL)m.Qu.style.display="";m.o$=!0}else{M=-V.height;GN?M*=window.devicePixelRatio:g.xC&&(M-=window.screen.height);M=new g.V5(0,M,V.width,V.height);if(C||m.AL)m.Qu.style.display= "none";m.o$=!1}OS(m.yn,M)||(m.yn=M,g.l0(y)?(m.Qu.style.setProperty("width",M.width+"px","important"),m.Qu.style.setProperty("height",M.height+"px","important")):g.Rr(m.Qu,M.getSize()),h=new g.yS(M.left,M.top),g.qN(m.Qu,Math.round(h.x),Math.round(h.y)),h=!0);V=new g.V5((V.width-w.width)/2,(V.height-w.height)/2,w.width,w.height);OS(m.vx,V)||(m.vx=V,h=!0);g.wb(m.Qu,"transform",O===1?"":"scaleX("+O+")");L&&E!==m.gR&&(E&&(m.Qu.addEventListener(No,m.nL),m.Qu.addEventListener("transitioncancel",m.nL),m.Qu.classList.add(g.be.VIDEO_CONTAINER_TRANSITIONING)), m.gR=E,m.app.kN.publish("playerUnderlayVisibilityChange",m.gR?"transitioning":"hidden"));return h}; u5o=function(m){m.Cd=!m.Cd;m.Qf=!0;m.element.classList.toggle("ytp-retro-player",m.Cd);m.resize();m.Qf=!1;m.app.kN.bH("onRetroModeChanged",m.Cd)}; zra=function(){this.csn=g.t1();this.clientPlaybackNonce=null;this.elements=new Set;this.D=new Set;this.Z=new Set;this.L=new Set}; ZW0=function(m){if(m.csn!==g.t1())if(m.csn==="UNDEFINED_CSN")m.csn=g.t1();else{var V=g.t1(),O=g.d$();if(V&&O){m.csn=V;for(var h=g.D(m.elements),w=h.next();!w.done;w=h.next())(w=w.value.visualElement)&&w.isClientVe()&&V&&O&&(g.Tm("combine_ve_grafts")?Ar(o6(),w,O):g.yf(g.Fw)(void 0,V,O,w))}if(V)for(m=g.D(m.Z),O=m.next();!O.done;O=m.next())(O=O.value.visualElement)&&O.isClientVe()&&g.vj(V,O)}}; Rk=function(m,V){g.Z.call(this);this.K=m;this.uH=V;this.T=0;this.D=!1}; s9C=function(m){var V,O,h,w;return g.u(function(y){if(y.Z==1){if(m.wM)return y.return();m.wM=new Worker(dX(m.K),void 0);g.JG(y,2);O=Promise.withResolvers();V=setTimeout(function(){O.reject("timeout")},1E3); m.wM.onerror=function(){O.reject("error")}; m.wM.onmessage=function(){O.resolve();clearTimeout(V)}; return g.I(y,O.promise,4)}if(y.Z!=2)return m.wM.onmessage=null,m.wM.onerror=null,m.wM.addEventListener("message",function(L){return void m.onMessage(L)}),m.uH("workerCtor",{}),g.EJ(y,0); h=g.qA(y);clearTimeout(V);(w=m.wM)==null||w.terminate();m.wM.onmessage=null;m.wM.onerror=null;m.wM=void 0;m.uH("workerErr",{e:""+h});g.j$(y)})}; Flp=function(m,V,O){g.u(function(h){if(h.Z==1){if(m.L!==void 0||m.D)return h.return();m.D=!0;return g.I(h,s9C(m),2)}m.D=!1;if(!m.wM)return h.return();m.L=setInterval(function(){m.sendMessage(O)},V); g.j$(h)})}; g.ok=function(m,V,O,h){g.Z.call(this);var w=this;this.logger=new g.Ht("App");this.hh=this.P7=!1;this.fg={};this.Md=[];this.kS=!1;this.zC=null;this.intentionalPlayback=!1;this.Sr=!0;this.Ne=!1;this.qc=this.Sj=this.wE=null;this.gr=!0;this.mediaElement=this.KP=null;this.iY=NaN;this.Kc=!1;this.JY=this.Is=this.bU=this.screenLayer=this.playlist=null;this.gP=[];this.V1=this.RT=0;this.BD={Ic:function(){return w.Nq}, g5:function(){return w.bU}}; if(!O)throw Error("b/179532961");this.OL=(V==null?void 0:V.args)||{};this.webPlayerContextConfig=O;V=this.OL;this.W=new hW(V,O,O.canaryState,h);g.a(this,this.W);mna(this.W);h=EbU(this.W);this.W.tj()&&hr(h,function(L){w.wT("h5vcc",L)}); this.W.experiments.w0("jspb_serialize_with_worker")&&oFX();this.W.experiments.w0("gzip_gel_with_worker")&&jMa();this.W.L&&(h=this.W.experiments.wu().Z.lH(nB),gOC(h));this.Y("html5_onesie")&&(this.ol=new Fx(this.W),g.a(this,this.ol));this.Tp=new MP3(obp(g.g2(this.W),this.W.NT,this.W.experiments),new RcI(this.W.experiments),function(){return void w.OX()}); g.a(this,this.Tp);this.DO=Cp(at(this.W)&&!0,V.enablesizebutton);this.Yy=Cp(!1,V.player_wide);this.visibility=new e0C;g.a(this,this.visibility);this.Y("web_log_theater_mode_visibility")&&this.bB(Cp(!1,V.player_wide));this.P7=Cp(!1,V.external_list);this.events=new g.Rc(this);g.a(this,this.events);this.Y("start_client_gcf")&&(Xk(Y7(),{sB:Ei,kG:kVa()}),this.Ia=Y7().resolve(Ei),DXU(this.Ia));this.SgN=new tF;g.a(this,this.SgN);this.eT=new zra;V=new Ks;this.kN=new g.I0(this,V);g.a(this,this.kN);this.template= new Nxp(this);g.a(this,this.template);this.appState=1;this.bN=aKG(this);g.a(this,V);V={};this.Hw=(V.internalvideodatachange=this.yk,V.playbackready=this.KaN,V.playbackstarted=this.H4A,V.statechange=this.Uqe,V);this.HV=new Cz(this.kN);this.rB=iW0(this);V=this.W.N;!1!==V&&this.wT("badps",{hbp:V,hostname:window.location.hostname,ps:this.W.playerStyle});this.vD=new S$a(this.W,this.rB);this.kN.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||Kz(this.rB))&&G10(this);V=10;g.g2(this.W)&& (V=3);qs(this.W)&&(V=g.m9(this.W.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Nq=new g.i3(this.kN,V);V=p$G(this);this.Nq.Ap(V);BxG(this);V={};this.Ln=(V.airplayactivechange=this.PUe,V.airplayavailabilitychange=this.tKr,V.beginseeking=this.eTr,V.sabrCaptionsDataLoaded=this.n5t,V.endseeking=this.a4t,V.internalAbandon=this.s80,V.internalaudioformatchange=this.NBr,V.internalvideodatachange=this.QJH,V.internalvideoformatchange=this.uhr,V.liveviewshift=this.rY0,V.playbackstalledatstart=this.R7z, V.progresssync=this.j8N,V.onAbnormalityDetected=this.o5H,V.onSnackbarMessage=this.l4t,V.onLoadProgress=this.b66,V.SEEK_COMPLETE=this.Slr,V.SEEK_TO=this.WnH,V.onVideoProgress=this.A6t,V.onLoadedMetadata=this.wez,V.onAutoplayBlocked=this.JYe,V.onPlaybackPauseAtStart=this.CUN,V.playbackready=this.BBA,V.statechange=this.HO,V.newelementrequired=this.Kz,V.heartbeatparams=this.O6H,V.videoelementevent=this.ZfH,V.drmoutputrestricted=this.Xet,V.signatureexpired=this.hTS,V.nonfatalerror=this.pez,V.reloadplayer= this.VK0,V);this.oW=new g.Rc(this);g.a(this,this.oW);this.P8=new MI(this.W.wu().Z.lH(sol));g.a(this,this.P8);this.Pi=this.ws=-1;this.jN=new g.mq(this.template.resize,16,this.template);g.a(this,this.jN);this.HD=new xVI(this.kN,this.W,this.Zj(),this);this.yD=new Sg(this);g.a(this,this.yD);this.Q6=new cW(this);g.a(this,this.Q6);k1I(this.W.Z.c);this.events.C(this.kN,g.Gu("appapi"),this.gf6);this.events.C(this.kN,g.pR("appapi"),this.vfA);this.events.C(this.kN,g.Gu("appprogressboundary"),this.Toe);this.events.C(this.kN, g.pR("applooprange"),this.Rb);this.events.C(this.kN,"presentingplayerstatechange",this.Lq);this.events.C(this.kN,"resize",this.YZu);this.template.g0(g4(document,m));this.events.C(this.kN,"offlineslatestatechange",this.qlr);this.events.C(this.kN,"sabrCaptionsTrackChanged",this.OfA);this.events.C(this.kN,"sabrCaptionsBufferedRangesUpdated",this.aer);this.rB.U.j().hZ&&W_(this.rB,"offline");this.W.Xr&&g.xY("ux",g.YJ);m=g.m9(this.W.experiments,"html5_defer_fetch_att_ms");this.oO=new g.mq(this.ZCH,m,this); g.a(this,this.oO);this.QF().o8()&&(g.zv()&&this.QF().Sm.push("mdx"),lK7(this));this.vD.tick("fs");Q9l(this);this.W.Xr&&W_(this.rB,"ux",!0);g.sY(this.rB.U.j())&&W_(this.rB,"embed");this.Y("web_player_sentinel_is_uniplayer")||g.cj(new g.no("Player experiment flags missing","web_player_sentinel_is_uniplayer"));m=this.Y("web_player_sentinel_yt_experiments_sync");V=g.Tm("web_player_sentinel_yt_experiments_sync");m!==V&&g.cj(new g.no("b/195699950",{yt:m,player:V}));this.ij=vg3(this);if(m=g.m9(this.W.experiments, "html5_block_pip_safari_delay"))this.wv=new g.mq(this.n9,m,this),g.a(this,this.wv);var y;O=DC((y=O==null?void 0:O.trustedEchoWorkerUrl)!=null?y:null);y=this.W.wu().Z.lH(P$C);m=this.W.wu().Z.lH(mka);O&&y>0&&m>0&&(this.s$=new Rk(O,function(L,C){w.Zj().uH(L,C)}),g.a(this,this.s$),Flp(this.s$,y,m)); uB=this.W.CP;this.kN.publish("applicationInitialized")}; vg3=function(m){function V(O){O.stack&&O.stack.indexOf("player")!==-1&&m.OH().OG(O)} Da.subscribe("handleError",V);h6.push(V);return function(){Da.unsubscribe("handleError",V);var O=h6.indexOf(V);O!==-1&&h6.splice(O,1)}}; p$G=function(m){var V=new g.Ld(m.W,m.OL);m.kN.publish("initialvideodatacreated",V);return gY(m,1,V,!1)}; BxG=function(m){var V=m.Zj();V.setPlaybackRate(m.W.T?1:VI$(m,Number(g.eU("yt-player-playback-rate"))||1));V.Yh(m.Hw,m);V.wi()}; iW0=function(m){var V="",O="",h=cdp(m),w=Iq(h,"cb");w&&/^[\w-]+$/.test(w)&&(O=w);h.indexOf("//")===0&&(h=m.W.protocol+":"+h);w=h.lastIndexOf("/base.js");w!==-1&&(V=h.substring(0,w+1));if(h=Error().stack)if(h=h.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))h=h[1],h.includes(V)||g.cj(Error("Player module URL mismatch: "+(h+" vs "+V+".")));V=new m8o(m.kN,V,O);O={};VfI(V,(O.destroyed=function(){m.onApiChange()},O)); return V}; aKG=function(m){if(m.W.storeUserVolume){m=g.eU("yt-player-volume")||{};var V=m.volume;m={volume:isNaN(V)?100:g.O2(Math.floor(V),0,100),muted:!!m.muted}}else m={volume:100,muted:m.W.mute};return m}; Af=function(m){var V=m.W.experiments.wu().Z.lH(nB);var O=m.W.deviceIsAudioOnly;V=V===void 0?!1:V;O=O?V?new g.kJ(g.Yc("AUDIO")):new g.e9(g.Yc("AUDIO")):rF.pop()||(V?new g.kJ(g.Yc("VIDEO")):new g.e9(g.Yc("VIDEO")));m.mediaElement=O;g.a(m,m.mediaElement);m.OH().setMediaElement(m.mediaElement);try{m.W.Rd?(m.Is&&m.events.yu(m.Is),m.Is=m.events.C(m.mediaElement,"volumechange",m.g5r)):(m.mediaElement.fE(m.bN.muted),m.mediaElement.setVolume(m.bN.volume/100))}catch(w){m.hR("html5.missingapi",2,"UNSUPPORTED_DEVICE", "setvolume.1;emsg."+(w&&typeof w==="object"&&"message"in w&&typeof w.message==="string"&&w.message.replace(/[;:,]/g,"_")));return}g.np(m.oW);OVp(m);O=m.template;V=m.mediaElement.Ir();O.Qu=V;O.JP=!1;O.Qu.parentNode||Ny(O.iG,O.Qu,0);O.yn=new g.V5(0,0,0,0);er1(O);fi(O);V=O.Qu;g.EM(V,"video-stream");g.EM(V,g.be.MAIN_VIDEO);var h=O.app.j();h.Ak&&V.setAttribute("data-no-fullscreen","true");h.Y("html5_local_playsinline")?"playsInline"in C$()&&(V.playsInline=!0):h.gz&&(V.setAttribute("webkit-playsinline", ""),V.setAttribute("playsinline",""));h.JJ&&O.Qu&&O.C(V,"click",V.play,V);try{m.mediaElement.activate()}catch(w){m.hR("html5.missingapi",2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(w&&typeof w==="object"&&"message"in w&&typeof w.message==="string"&&w.message.replace(/[;:,]/g,"_")))}}; wJp=function(m){if(!hJo(m)){var V=m.Zj().C4();V&&(V=V.f$(),V instanceof Promise&&V.catch(function(){})); UO(m,rG(m.getPlayerStateObject()))}}; OVp=function(m){var V=m.mediaElement;f$()?m.oW.C(V,"webkitpresentationmodechanged",m.r6H):window.document.pictureInPictureEnabled&&(m.oW.C(V,"enterpictureinpicture",function(){m.LS(!0)}),m.oW.C(V,"leavepictureinpicture",function(){m.LS(!1)})); Ob&&(m.oW.C(V,"webkitbeginfullscreen",function(){m.kL(3)}),m.oW.C(V,"webkitendfullscreen",function(){m.kL(0)}))}; g.dY=function(m,V){return m.Nq.OZ(V)||m.Nq.J}; Y8=function(m,V){return m.Y("web_player_misc_bugfix_b")?m.Nq.OZ(V)||m.Nq.J:m.Nq.OZ(V)}; g.yoo=function(m,V,O,h){var w=m.vD;V===2&&(w=new S$a(m.W));return new g.G4(m.W,V,w,m.template,function(y,L,C){m.kN.publish(y,L,C)},function(){return m.kN.getVisibilityState()},m.visibility,m,m.Tp,O,h)}; gY=function(m,V,O,h,w){m=g.yoo(m,V,O,w);m=new g.vz(m);h&&m.wi();return m}; tf=function(m,V){return m.Qi(V)?m.Zj():V}; Ki=function(m,V){var O=m.OH();return V===m.Zj()&&m.Qi(V)&&m.Qi(O)?O:V}; j7$=function(m){if(!We(m)){var V=TR(m.rB);V&&!V.created&&OzI(m.rB)&&V.create()}}; LyI=function(m){var V=m.getVideoData(),O=m.rB;qy$(O)||O.Z6();!nO&&Kz(O)&&A_7(O);W_(O,"embed");W_(O,"kids");W_(O,"remote");W_(O,"miniplayer");W_(O,"offline");W_(O,"unplugged");W_(O,"ypc",!1,!0);W_(O,"webgl",!1,!0);Mfm(O)||(W_(O,"captions",!0),W_(O,"endscreen"),O.zo(),W_(O,"creatorendscreen",!0));O.yX();O.U.publish("modulesCreated");m.kN.publish("videoready",V)}; XL=function(m){m=m.QF();m.o8();return mv(m)}; Q9l=function(m){m.UF();var V=m.OL;Af(m);m.events.C(window,"resize",m.kBr);var O=m.QF();m.kN.yV("onVolumeChange",m.bN);if(V&&zKl(V)){var h=LI(m.W);h&&!m.P7&&(V.fetch=0);var w=g.sY(m.W);w&&!m.P7&&(V.fetch=0);He(m,V);g.sY(m.W)&&m.vD.tick("ep_pr_s");if(!h||m.P7)if(w&&!m.P7)Jo1(m);else if(!O.o8())m.playlist.onReady(function(){TE(m)})}m.Yb(m.Zj(),!1,!0); g.l(m.Zj().getPlayerState(),128)||(V=VO7(!m.W.deviceIsAudioOnly),V==="fmt.noneavailable"?m.hR("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):V==="html5.missingapi"?m.hR(V,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):O&&O.o8()&&XL(m)&&(m.W.hn||m.W.lc)?$R(m):O.Ev?m.kN.mutedAutoplay({durationMode:O.mutedAutoplayDurationMode}):g.eU("yt-player-playback-on-reload")?(g.Rz("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!m.W.v6}),g.I$("yt-player-playback-on-reload",!1),$R(m)): oV(m.W)||CGl(m),g.Eh(m.W)||KO(m.W)==="MWEB"?(g.mm(g.Od(),function(){YR(m)}),g.mm(g.Od(),function(){Ldp()})):(YR(m),Ldp()))}; YR=function(m){if(!m.Y("use_rta_for_player"))if(m.Y("fetch_att_independently"))g.Vn(m.oO);else{var V=m.getVideoData().botguardData;V&&g.$m(V,m.W,m.getVideoData().AO||"")}}; CGl=function(m){m.kN.publish("initializingmode");m.ke(2);W_(m.rB,"remote");W_(m.rB,"miniplayer")}; $R=function(m){var V=m.Zj();if(g.l(V.getPlayerState(),128))return!1;V=V.getVideoData();XL(m)&&m.W.lc&&(rF.length&&m.hh?(kR(m,{muted:!1,volume:m.bN.volume},!1),rY(m,!1)):rF.length||m.bN.muted||(kR(m,{muted:!0,volume:m.bN.volume},!1),rY(m,!0)));XL(m)&&g.sY(m.W)&&V.mutedAutoplay&&(kR(m,{muted:!0,volume:m.bN.volume},!1),rY(m,!0));V.PR&&kR(m,{muted:!0,volume:m.bN.volume},!1);E2G(m,1,V,!1);var O=m.Zj();m.kN.publish("initializingmode");m.Yb(O);m.ke(3);var h;if(!(h=!m.W.lz)){if(h=m.JY){h=m.JY;var w=m.mediaElement; h=!!w&&w===h.mediaElement}h=h&&m.kS}h&&(m.GQ(),Af(m),O.setMediaElement(m.mediaElement));O.j0();if(g.l(O.getPlayerState(),128))return!1;V.nf||UO(m,3);return m.kS=!0}; We=function(m){m=zc(m.rB);return!!m&&m.loaded}; qT0=function(m,V){if(!m.KP)return!1;var O=m.KP.startTimeMs*.001-1,h=m.KP.endTimeMs*.001;m.KP.type==="repeatChapter"&&h--;return Math.abs(V-O)<=1E-6||Math.abs(V-h)<=1E-6||V>=O&&V<=h}; MIp=function(m){var V=m.OH();if(m.Y("html5_disable_loop_range_for_shorts_ads")&&V.getVideoData().isAd()?0:Uf(V.getVideoData())&&!V.Bp())V=ce(m)*1E3-m.getVideoData().uL,m.Y("html5_gapless_new_slr")?(m=m.Q6,DG(m.app,"gaplessshortslooprange"),V=new g.a2(0,V,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(m=m.app.OH())&&m.addCueRange(V)):m.setLoopRange({startTimeMs:0,endTimeMs:V,type:"shortsLoop"})}; fs3=function(m){var V=m.Zj();if(!(g.l(V.getPlayerState(),64)&&m.QF().isLivePlayback&&m.KP.startTimeMs<5E3)){if(m.KP.type==="repeatChapter"){var O,h=(O=wp1(m.Gp()))==null?void 0:O.Nn(),w;O=(w=m.getVideoData())==null?void 0:w.ma;h instanceof g.Fl&&O&&(w=O[yk(O,m.KP.startTimeMs)],h.renderChapterSeekingAnimation(0,w.title));isNaN(Number(m.KP.loopCount))?m.KP.loopCount=0:m.KP.loopCount++;m.KP.loopCount===1&&m.kN.bH("innertubeCommand",m.getVideoData().VZ)}h={Jq:"application_loopRangeStart"};if(m.KP.type=== "clips"||m.KP.type==="shortsLoop")h.seekSource=58;V.seekTo(m.KP.startTimeMs*.001,h)}}; VI$=function(m,V){var O=m.kN.getAvailablePlaybackRates();V=Number(V.toFixed(2));m=O[0];O=O[O.length-1];V<=m?V=m:V>=O?V=O:(m=Math.floor(V*100+.001)%5,V=m===0?V:Math.floor((V-m*.01)*100+.001)/100);return V}; ce=function(m,V){V=g.dY(m,{playerType:V});V=tf(m,V);return NI(m,V.qz(),V)}; NI=function(m,V,O){if(m.Qi(O)&&(O=O.getVideoData(),!bt(m))){m=m.HD;for(var h=g.D(m.L),w=h.next();!w.done;w=h.next())if(w=w.value,O.f4===w.f4){V+=w.Tj/1E3;break}h=V;m=g.D(m.L);for(w=m.next();!w.done;w=m.next()){w=w.value;if(O.f4===w.f4)break;var y=w.Tj/1E3;if(y1&&(w=!1);m.Kc&&w===V||(h=h.lock(w?"portrait":"landscape"),h!=null&&h.catch(function(){}),m.Kc=!0)}else m.Kc&&(m.Kc=!1,h.unlock())}; ut=function(m,V,O){m.kN.publish(V,O);var h=g.g2(m.W)||g.l0(m.W)||g.Sm(m.W);if(O&&h){switch(V){case "cuerangemarkersupdated":var w="onCueRangeMarkersUpdated";break;case "cuerangesadded":w="onCueRangesAdded";break;case "cuerangesremoved":w="onCueRangesRemoved"}w&&m.kN.bH(w,O.map(function(y){return{getId:function(){return this.id}, end:y.end,id:y.getId(),namespace:y.namespace==="ad"?"ad":"",start:y.start,style:y.style,visible:y.visible,markerPositionMs:y.markerPositionMs}}))}}; zE=function(m,V,O,h,w,y){O=O===void 0?!0:O;var L=g.dY(m,{playerType:w});if((L.getPlayerType()!==2||m.Qi(L))&&!g.sf(L.getVideoData())){var C=m.Nq.TQ;C?C.seekTo(V,{Z1:!O,G$:h,Jq:"application",seekSource:y}):(L&&L===m.Zj()&&m.KP&&!qT0(m,V)&&m.setLoopRange(null),m.seekTo(V,O,h,w,y,"_request"))}}; $kl=function(m,V,O,h){O&&(m.GQ(),Af(m));O=m.OH();O.Ok(V);var w=m.getVideoData(),y={};y.video_id=w.videoId;y.adformat=w.adFormat;w.isLivePlayback||(y.start=O.getCurrentTime(),y.resume="1");w.isLivePlayback&&ku(w)&&g.R2(m.W)&&(y.live_utc_start=O.K6(),y.resume="1");w.Ae&&(y.vvt=w.Ae);w.N&&(y.vss_credentials_token=w.N,y.vss_credentials_token_type=w.tN);w.oauthToken&&(y.oauth_token=w.oauthToken);y.autoplay=1;y.reload_count=w.Je+1;y.reload_reason=V;w.h_&&(y.unplugged_partner_opt_out=w.h_);w.wB&&(y.ypc_is_premiere_trailer= w.wB);w.playerParams&&(y.player_params=w.playerParams);w.Zu&&(y.itct=w.Zu);m.loadVideoByPlayerVars(y,void 0,!0,void 0,void 0,h);V==="signature"&&m.bU&&j7$(m)}; YTG=function(m,V){m.QF().autonavState=V;g.I$("yt-player-autonavstate",V);m.kN.publish("autonavchange",V)}; kH7=function(m){var V=m.getVideoData().ZG,O=m.W.pA,h=m.isInline()&&!m.getVideoData().pN,w=m.mediaElement;V||O||h?w.UC():(w.Fx(),kR(m,m.bN))}; ni=function(m){(m=TR(m.Gp()))&&m.created&&m.destroy()}; bt=function(m){return m.getVideoData().enableServerStitchedDai&&!!m.bU}; ro7=function(m,V){V.bounds=m.getBoundingClientRect();for(var O=g.D(["display","opacity","visibility","zIndex"]),h=O.next();!h.done;h=O.next())h=h.value,V[h]=JQ(m,h);V.hidden=!!m.hidden}; cdp=function(m){var V=m.webPlayerContextConfig.trustedJsUrl;return V?DC(V).toString():m.webPlayerContextConfig.jsUrl}; coX=function(m,V){var O=m.OZ({playerType:1});if(O){if(O.getVideoData().clientPlaybackNonce===V)return O;if((m=m.yD.Z)&&m.getVideoData().clientPlaybackNonce===V)return m}return null}; G10=function(m){yO(m,function(){var V=this;return function h(){var w,y,L,C;return oA(h,function(E){switch(E.Z){case 1:return g.C5(E,2),V.vD.tick("wasm_s"),w=Kz(V.rB)?function(q){return hr(U8X(V.rB),function(M){return M.hrN(q)})}:void 0,g.JG(E,4),y=DvI(V.webPlayerContextConfig.wasmModuleUrl,w,V.wT.bind(V)),L=UJ,yW(E,je(y),6); case 6:C=L(E.L);V.vD.tick(C.Z?"wasm_fa":"wasm_fw");O71(V.W,C);g.EJ(E,2);break;case 4:g.qA(E),V.vD.tick("wasm_ferr");case 2:g.MA(E),g.f5(E,0)}})}()})}; DkX=function(m){return m.name==="TypeError"&&m.stack.includes("/s/player/")&&Gm()<=105}; NE7=function(m){return m.isTimeout?"NO_BID":"ERR_BID"}; bVm=function(){var m=null;j4X().then(function(V){return m=V},function(V){return m=NE7(V)}); return m}; n23=function(){var m=ZA(1E3,"NO_BID");return g.Ib(fV5([j4X(),m]).dI(NE7),function(){m.cancel()})}; ZG=function(m){return m.l2?g.a$().lH(140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; sO=function(m){this.player=m;this.D=this.Z=1}; eJa=function(m,V,O,h,w,y){V.client||(V.client={});m.player.j().Y("h5_remove_url_for_get_ad_break")||(V.client.originalUrl=O);var L=fJ(O),C=g.HG(O)?!1:!0;(L||C)&&typeof Intl!=="undefined"&&(V.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);C=g.HG(O)?!1:!0;if(L||C||h!==""){var E={};O=J6(A6(h)).split("&");var q=new Map;O.forEach(function(M){M=M.split("=");M.length>1&&q.set(M[0].toString(),decodeURIComponent(M[1].toString()))}); q.has("bid")&&(E.bid=q.get("bid"));E.params=[];ST7.forEach(function(M){q.has(M)&&(M={key:M,value:q.get(M)},E.params.push(M))}); Is7(m,E);V.adSignalsInfo=E}V.client.unpluggedAppInfo||(V.client.unpluggedAppInfo={});V.client.unpluggedAppInfo.enableFilterMode=!1;O=w.Z.cosver;O!=null&&O!=="cosver"&&(V.client.osVersion=O);O=w.Z.cplatform;O!=null&&O!=="cplatform"&&O!==""&&(V.client.platform=O);O=w.Z.cmodel;O!=null&&O!=="cmodel"&&(V.client.deviceModel=O);O=w.Z.cplayer;O!=null&&O!=="cplayer"&&(V.client.playerType=O);O=w.Z.cbrand;O!=null&&O!=="cbrand"&&(V.client.deviceMake=O);V.user||(V.user={});V.user.lockedSafetyMode=!1;g.BP(w)&& dW5(V,y,m.player.getPlayerState(1));if(m=w.livingRoomPoTokenId)V.client.tvAppInfo=Object.assign({},V.client.tvAppInfo,{livingRoomPoTokenId:m})}; ZVI=function(m,V){var O=!1;if(V==="")return O;V.split(",").forEach(function(h){var w={},y={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},L="ACTIVE";h[0]==="!"&&(h=h.substring(1),L="INACTIVE");h=h.split("-");h.length<3||(h[0]in ucC&&(y.clientName=ucC[h[0]]),h[1]in zJl&&(y.platform=zJl[h[1]]),y.applicationState=L,y.clientVersion=h.length>2?h[2]:"",w.remoteClient=y,m.remoteContexts?m.remoteContexts.push(w):m.remoteContexts=[w],O=!0)}); return O}; Fya=function(m){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in s77))return!1;m=m.split(RegExp("[:&]"));var V=s77.FLAG_AUTO_CAPTIONS_DEFAULT_ON,O="f"+(1+Math.floor(V/31)).toString();V=1<=2?L[1]:"";var C=iVU.test(V),E=GHo.exec(V);E=E!=null&&E.length>=2?E[1]:"";var q=pJl.exec(V);q=q!=null&&q.length>=2&&!Number.isNaN(Number(q[1]))?Number(q[1]):1;var M=BEl.exec(V);M=M!=null&&M.length>=2?M[1]:"0";var f=mS(m.player.j().VW),x=m.player.getVideoData(1),R=g.v5(x.Zu,!0),A="BISCOTTI_ID"in O?O.BISCOTTI_ID:"";eJa(m,R,V,A.toString(),m.player.j(), x);x={splay:!1,lactMilliseconds:O.LACT.toString(),playerHeightPixels:Math.trunc(O.P_H),playerWidthPixels:Math.trunc(O.P_W),vis:Math.trunc(O.VIS),signatureTimestamp:20430,autonavState:ZG(m.player.j())};h&&(h={},ZVI(h,O.YT_REMOTE)&&(x.mdxContext=h));if(h=lso.includes(f)?void 0:g.sx("PREF")){for(var K=h.split(RegExp("[:&]")),X=0,c=K.length;X1&&r[1].toUpperCase()==="TRUE"){R.user.lockedSafetyMode=!0;break}}x.autoCaptionsDefaultOn= Fya(h)}V=Q7U.exec(V);(V=V!=null&&V.length>=2?V[1]:"")&&E&&(R.user.credentialTransferTokens=[{token:V,scope:"VIDEO"}]);V={contentPlaybackContext:x};L={adBlock:Math.trunc(O.AD_BLOCK),params:L,breakIndex:q,breakPositionMs:M,clientPlaybackNonce:O.CPN,topLevelDomain:f,isProxyAdTagRequest:C,context:R,adSignalsInfoString:J6(A6(A.toString())),overridePlaybackContext:V};w!==void 0&&(L.cueProcessedMs=Math.round(w).toString());E&&(L.videoId=E);O.LIVE_TARGETING_CONTEXT&&(L.liveTargetingParams=O.LIVE_TARGETING_CONTEXT); O.AD_BREAK_LENGTH&&(L.breakLengthMs=Math.trunc(O.AD_BREAK_LENGTH*1E3).toString());y&&(L.driftFromHeadMs=y.toString());L.currentMediaTimeMs=Math.round(m.player.getCurrentTime(1)*1E3);(m=m.player.getGetAdBreakContext())&&(L.getAdBreakContext=m);return L}; PGp=function(){sO.apply(this,arguments)}; m4X=function(m,V,O,h,w){var y=O.GY;var L=O.kF;var C=m.player.j().RK,E=0;O.cueProcessedMs&&L&&!y&&(O=L.end-L.start,O>0&&(E=Math.floor(O/1E3)));var q={AD_BLOCK:w,AD_BREAK_LENGTH:y?y.Ul:E,AUTONAV_STATE:ZG(m.player.j()),CA_TYPE:"image",CPN:m.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:m.player.Rf()*1E3,LACT:UL(),LIVE_INDEX:y?m.D++:1,LIVE_TARGETING_CONTEXT:y&&y.context?y.context:"",MIDROLL_POS:L?Math.round(L.start/1E3):0,MIDROLL_POS_MS:L?Math.round(L.start):0,VIS:m.player.getVisibilityState(), P_H:m.player.xN().dM().height,P_W:m.player.xN().dM().width,YT_REMOTE:C?C.join(","):""},M=gt(ov);Object.keys(M).forEach(function(f){M[f]!=null&&(q[f.toUpperCase()]=M[f].toString())}); h!==""&&(q.BISCOTTI_ID=h);h={};Rv(V)&&(h.sts="20430",(m=m.player.j().forcedExperiments)&&(h.forced_experiments=m));return MB(g.nZ(V,q),h)}; Vz0=function(m,V){var O=m.player.j(),h,w=(h=m.player.getVideoData(1))==null?void 0:h.oauthToken;return g.Uh(O,w).then(function(y){if(y&&x4()){var L=lb();Qj(L,y)}return g.Ia(m.player.uN(L),V,"/youtubei/v1/player/ad_break").then(function(C){return C})})}; O0I=function(m){this.qf=m}; hNo=function(m){this.U=m}; wQ7=function(m){this.qf=m}; jpI=function(m){g.Z.call(this);this.Z=m;this.pO=yyp(this)}; yyp=function(m){var V=new C_1(m.Z.xf);g.a(m,V);m=[new O0I(m.Z.qf),new hNo(m.Z.U),new wQ7(m.Z.qf),new oG(m.Z.zZ,m.Z.Xl),new A4,new t4(m.Z.Us,m.Z.W1,m.Z.qf),new gL,new RG(m.Z.W1)];m=g.D(m);for(var O=m.next();!O.done;O=m.next())E7C(V,O.value);m=g.D(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(O=m.next();!O.done;O=m.next())UG(V,O.value,function(){}); return V}; LC3=function(m,V){this.Us=m;this.ze=V}; FL=function(m){var V=m.Nf,O=m.ze;m=m.n6;var h={gbz:new LC3(V.get(),O),ze:O};return{N8:new pL(O,m,V),context:h}}; ak=function(m,V,O,h,w){g.Z.call(this);this.L=V;this.Ge=O;this.Nf=h;this.eK=w;this.listeners=[];var y=new N2(this);g.a(this,y);y.C(m,"internalAbandon",this.AYH);this.addOnDisposeCallback(function(){g.np(y)})}; GE=function(m){this.U=m;this.adVideoId=this.Z=this.videoId=this.adCpn=this.contentCpn=null;this.K=!0;this.L=this.D=!1;this.adFormat=null;this.T="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; Jym=function(m){m.contentCpn=null;m.adCpn=null;m.videoId=null;m.adVideoId=null;m.adFormat=null;m.T="AD_PLACEMENT_KIND_UNKNOWN";m.actionType="unknown_type";m.D=!1;m.L=!1}; CS$=function(m,V){m=g.D(V);for(V=m.next();!V.done;V=m.next())if((V=V.value.renderer)&&(V.instreamVideoAdRenderer||V.linearAdSequenceRenderer||V.sandwichedLinearAdRenderer||V.instreamSurveyAdRenderer)){ko("ad_i");g.r5({isMonetized:!0});break}}; E$5=function(m){var V;(V=m.U.getVideoData(1))!=null&&V.V&&(m.L=!1,V={},m.Z&&m.videoId&&(V.cttAuthInfo={token:m.Z,videoId:m.videoId}),cy("video_to_ad",V))}; Bm=function(m){m.L=!1;var V={};m.Z&&m.videoId&&(V.cttAuthInfo={token:m.Z,videoId:m.videoId});cy("ad_to_video",V);qI3(m)}; qI3=function(m){if(m.D)if(m.T==="AD_PLACEMENT_KIND_START"&&m.actionType==="video_to_ad")TM("video_to_ad");else{var V={adBreakType:Nv(m.T),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:m.videoStreamType};m.actionType==="ad_to_video"?(m.contentCpn&&(V.targetCpn=m.contentCpn),m.videoId&&(V.targetVideoId=m.videoId)):(m.adCpn&&(V.targetCpn=m.adCpn),m.adVideoId&&(V.targetVideoId=m.adVideoId));m.adFormat&&(V.adType=m.adFormat);m.contentCpn&& (V.clientPlaybackNonce=m.contentCpn);m.videoId&&(V.videoId=m.videoId);m.adCpn&&(V.adClientPlaybackNonce=m.adCpn);m.adVideoId&&(V.adVideoId=m.adVideoId);g.r5(V,m.actionType);m.U.j().experiments.w0("html5_ads_csi_qoes")&&(V=m.U.Zw(m.actionType==="ad_to_video"?1:2),V=(0,g.TN)()-1E3*V,Ng("qoes",V,m.actionType))}}; pi=function(m){g.Z.call(this);this.U=m;this.Z=new Map;this.L=new N2(this);g.a(this,this.L);this.L.C(this.U,g.Gu("ad"),this.onCueRangeEnter,this);this.L.C(this.U,g.pR("ad"),this.onCueRangeExit,this)}; MzI=function(m,V,O,h,w,y,L){g.a2.call(this,V,O,{id:m,namespace:"ad",priority:w,visible:h,associatedClipId:y,markerPositionMs:L})}; Be=function(m){this.U=m}; f9I=function(m,V){m.U.cueVideoByPlayerVars(V,2)}; lt=function(m){this.U=m}; QV=function(m){this.U=m}; I2=function(m,V){return m.U.j().Y(V)}; x4$=function(m){return m.U.j().Y("substitute_ad_cpn_macro_in_ssdai")}; qw=function(m){var V,O,h;return((V=m.U.getVideoData(1).getPlayerResponse())==null?void 0:(O=V.playerConfig)==null?void 0:(h=O.daiConfig)==null?void 0:h.enableServerStitchedDai)||!1}; arp=function(m){return m.U.j().Y("html5_enable_vod_slar_with_notify_pacf")}; RNl=function(m){return m.U.j().Y("html5_recognize_predict_start_cue_point")}; pm=function(m){return m.U.j().experiments.w0("enable_desktop_player_underlay")}; o$G=function(m){return m.U.j().experiments.w0("html5_load_empty_player_in_media_break_sub_lra")}; e7=function(m,V){return m.U.j().Y("html5_cue_video_for_preroll")&&(V==null?void 0:V.kind)==="AD_PLACEMENT_KIND_START"?!1:m.U.j().experiments.w0("html5_load_ads_instead_of_cue")}; ud=function(m){return m.U.j().experiments.w0("html5_preload_ads")}; g$0=function(m){return m.U.j().experiments.w0("should_ignore_cuepoints_during_lifa_preroll")}; ZX=function(m){return m.U.j().experiments.w0("enable_ads_control_flow_deterministic_id_generation")}; AyX=function(m){return m.U.j().experiments.w0("enable_desktop_discovery_video_abandon_pings")||JW(m.U.j())}; U4p=function(m){return m.U.j().experiments.w0("enable_progres_commands_lr_feeds")}; d4a=function(m){return m.U.j().experiments.w0("enable_progress_commands_lr_shorts")}; Mw=function(m){return m.U.j().experiments.w0("html5_cuepoint_identifier_logging")}; vo$=function(m){m=m.U.getVideoData(1);return!!m&&m.Y("html5_preload_first_vod_video_ad")&&!m.isDaiEnabled()&&!m.isLivePlayback}; tzo=function(m){return m.U.j().experiments.w0("html5_ssdai_enable_media_end_cue_range")}; KC1=function(m){switch(m){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}}; WC1=function(){g.yh.call(this);var m=this;this.Z={};this.addOnDisposeCallback(function(){for(var V=g.D(Object.keys(m.Z)),O=V.next();!O.done;O=V.next())delete m.Z[O.value]})}; ve=function(){if(XQp===null){XQp=new WC1;bw(wD).L="b";var m=bw(wD),V=Q6(m)=="h"||Q6(m)=="b",O=!(U9(),!1);V&&O&&(m.K=!0,m.N=new NV1)}return XQp}; H0I=function(m,V,O){m.Z[V]=O}; TfC=function(m){switch(m){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}}; Pe=function(m,V,O){this.Ge=m;this.U=V;this.ze=O;this.L=new Set;this.Z=new Map;ve().subscribe("adactiveviewmeasurable",this.UB,this);ve().subscribe("adfullyviewableaudiblehalfdurationimpression",this.H9,this);ve().subscribe("adviewableimpression",this.y3,this);ve().subscribe("adaudioaudible",this.GU,this);ve().subscribe("adaudiomeasurable",this.K2,this)}; VX=function(m,V,O){var h=O.Da,w=O.Tm,y=O.listener;O=O.EK;if(m.Z.has(V))ER("Unexpected registration of layout in LidarApi");else{if(O){if(m.L.has(O))return;m.L.add(O)}m.Z.set(V,y);ag(U9().vB,"fmd",1);FRm(bw(wD),h);H0I(ve(),V,{uA:function(){if(!w)return{};var L=m.U.getPresentingPlayerType(!0),C;return(C=m.U.getVideoData(L))!=null&&C.isAd()?{currentTime:m.Ge.get().getCurrentTimeSec(L,!1,void 0),duration:w,isPlaying:mL(m.Ge.get(),L).isPlaying(),isVpaid:!1,isYouTube:!0,volume:m.Ge.get().isMuted()?0:m.Ge.get().getVolume()/ 100}:{}}})}}; Ou=function(m,V){m.Z.has(V)?(m.Z.delete(V),delete ve().Z[V]):ER("Unexpected unregistration of layout in LidarApi")}; $4m=function(m,V){if(m.U.isLifaAdPlaying()){var O=m.U.Ad(!0,!0);m.Yj(V,O.width*.5*1.1,O.height*.25*1.1,O.width*.5*.9,O.height*.5*.9)}}; ryC=function(m,V){var O={};YI1(m,O,V);kaI(O);O.LACT=hS(function(){return UL().toString()}); O.VIS=hS(function(){return m.getVisibilityState().toString()}); O.SDKV="h.3.0";O.VOL=hS(function(){return m.isMuted()?"0":Math.round(m.getVolume()).toString()}); O.VED="";return O}; cyX=function(m,V){var O={};if(V||!m||!m.kind)return O;if(m.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||m.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!m.adTimeOffset||!m.adTimeOffset.offsetStartMilliseconds)return g.kL(Error("malformed AdPlacementConfig")),O;O.MIDROLL_POS=hS(iN(Math.round(BM(m.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else O.MIDROLL_POS=hS(iN("0"));return O}; hS=function(m){return{toString:function(){return m()}}}; D4I=function(m,V,O){function h(C,E){(E=O[E])&&(y[C]=E)} function w(C,E){(E=O[E])&&(y[C]=L(E))} if(!O||g.c8(O))return m;var y=Object.assign({},m),L=V?encodeURIComponent:function(C){return C}; w("DV_VIEWABILITY","doubleVerifyViewability");w("IAS_VIEWABILITY","integralAdsViewability");w("MOAT_INIT","moatInit");w("MOAT_VIEWABILITY","moatViewability");h("GOOGLE_VIEWABILITY","googleViewability");h("VIEWABILITY","viewability");return y}; YI1=function(m,V,O){V.CPN=hS(function(){var h;(h=m.getVideoData(1))?h=h.clientPlaybackNonce:(g.cj(Error("Video data is null.")),h=null);return h}); V.AD_MT=hS(function(){if(O!=null)var h=O;else if(m.j().Y("enable_h5_shorts_ad_fill_ad_mt_macro")||m.j().Y("enable_desktop_discovery_pings_ad_mt_macro")||JW(m.j())){var w=m.getPresentingPlayerType(!0),y;h=((y=m.getVideoData(w))==null?0:y.isAd())?m.getCurrentTime(w,!1):0}else h=m.getCurrentTime(2,!1);return NfI(h)}); V.MT=hS(function(){return NfI(m.getCurrentTime(1,!1))}); V.P_H=hS(function(){return m.xN().dM().height.toString()}); V.P_W=hS(function(){return m.xN().dM().width.toString()}); V.PV_H=hS(function(){return m.xN().getVideoContentRect().height.toString()}); V.PV_W=hS(function(){return m.xN().getVideoContentRect().width.toString()})}; NfI=function(m){return Math.round(Math.max(0,m*1E3)).toString()}; kaI=function(m){m.CONN=hS(iN("0"));m.WT=hS(function(){return Date.now().toString()})}; b0p=function(){}; n$5=function(m,V,O,h,w){var y,L,C,E,q,M,f,x,R,A,K,X,c;g.u(function(r){switch(r.Z){case 1:y=!!V.scrubReferrer;L=g.nZ(V.baseUrl,D4I(O,y,h));C={};if(!V.headers){r.Te(2);break}E=m.T();if(!E.Z){q=E.getValue();r.Te(3);break}return g.I(r,E.Z,4);case 4:q=r.L;case 3:M=q;f=g.D(V.headers);for(x=f.next();!x.done;x=f.next())switch(R=x.value,R.headerType){case "VISITOR_ID":g.Vf("VISITOR_DATA")&&(C["X-Goog-Visitor-Id"]=g.Vf("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.Vf("EOM_VISITOR_DATA")&&(C["X-Goog-EOM-Visitor-Id"]= g.Vf("EOM_VISITOR_DATA"));break;case "USER_AUTH":M&&(C.Authorization="Bearer "+M);break;case "PLUS_PAGE_ID":(A=m.K())&&(C["X-Goog-PageId"]=A);break;case "AUTH_USER":K=m.Z();!M&&K&&(C["X-Goog-AuthUser"]=K);break;case "DATASYNC_ID":if(X=void 0,(X=m.D())==null?0:X.w0("enable_datasync_id_header_in_web_vss_pings"))c=m.L(),fJ(L)&&g.Vf("LOGGED_IN")&&c&&(C["X-YouTube-DataSync-Id"]=c)}"X-Goog-EOM-Visitor-Id"in C&&"X-Goog-Visitor-Id"in C&&delete C["X-Goog-Visitor-Id"];case 2:g.IS(L,void 0,y,Object.keys(C).length!== 0?C:void 0,"",!0,w),g.j$(r)}})}; SIX=function(m,V,O,h,w){this.T=m;this.K=V;this.Z=O;this.L=h;this.D=w}; I9U=function(m,V){this.Z=m;this.ze=V}; wz=function(m,V,O,h,w,y){var L=L===void 0?new SIX(function(){var C=m.j(),E=m.getVideoData(1);return g.Uh(C,E?g.Vj(E):"")},function(){return m.j().pageId},function(){return m.j().v6},function(){var C; return(C=m.j().datasyncId)!=null?C:""},function(){return m.j().experiments}):L; this.U=m;this.L=V;this.du=O;this.Nf=h;this.N8=w;this.ze=y;this.T=L;this.Fc=null;this.Z=new Map;this.D=new I9U(L,this.ze)}; uP7=function(m,V,O,h,w){var y=t5(m.L.get(),O);y?(O=oU(m,eNo(y),y,void 0,void 0,h),V.hasOwnProperty("baseUrl")?m.T.send(V,O):m.D.send(V,O,{},w)):ER("Trying to ping from an unknown layout",void 0,void 0,{layoutId:O})}; A11=function(m,V,O,h,w,y){h=h===void 0?[]:h;var L=t5(m.L.get(),V);if(L){var C=m.du.get().xF(V,O),E=oU(m,eNo(L),L,w,y);h.forEach(function(q,M){q.baseUrl&&(m.D.send(q.baseUrl,E,C,q.attributionSrcMode),q.serializedAdPingMetadata&&m.N8.Z("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,L,new dg3(q,M),void 0,void 0,L.adLayoutLoggingData))})}else ER("Trying to track from an unknown layout.",void 0,void 0,{layoutId:V, trackingType:O})}; Cj=function(m,V){m.U.sendVideoStatsEngageEvent(V,void 0,2)}; Pm=function(m,V){g.Rz("adsClientStateChange",V)}; zNl=function(m,V){m.Z.has(V.ES())?ER("Trying to register an existing AdErrorInfoSupplier."):m.Z.set(V.ES(),V)}; var MG0=function(m){return xU[J[4]](this,44,m)}; Z03=function(m,V){m.Z.delete(V.ES())||ER("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; OW=function(m,V,O){typeof O==="string"?m.U.getVideoData(1).bI(V,O):m.U.getVideoData(1).uH(V,O)}; eNo=function(m){var V=GJ(m.clientMetadata,"metadata_type_ad_placement_config");m=GJ(m.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:V,kW:m}}; oU=function(m,V,O,h,w,y){var L=O?spG(m):{},C=O?FCm(m,O.layoutId):{},E=a97(m),q,M=w!=null?w:(q=wk(m.Nf.get(),2))==null?void 0:q.clientPlaybackNonce;w={};m=Object.assign({},ryC(m.U,h),cyX(V.adPlacementConfig,(O==null?void 0:O.renderingContent)!==void 0),C,L,E,(w.FINAL=hS(function(){return"1"}),w.AD_CPN=hS(function(){return M||""}),w)); (O==null?void 0:O.renderingContent)!==void 0||(m.SLOT_POS=hS(function(){return(V.kW||0).toString()})); O={};y=Object.assign({},m,y);m=g.D(Object.values(i0l));for(h=m.next();!h.done;h=m.next())h=h.value,L=y[h],L!=null&&L.toString()!=null&&(O[h]=L.toString());return O}; spG=function(m){var V={},O,h=(O=m.Fc)==null?void 0:O.Kq/1E3;h!=null&&(V.SURVEY_ELAPSED_MS=hS(function(){return Math.round(h*1E3).toString()})); V.SURVEY_LOCAL_TIME_EPOCH_S=hS(function(){return Math.round(Date.now()/1E3).toString()}); return V}; FCm=function(m,V){m=m.Z.get(V);if(!m)return{};m=m.CZ();if(!m)return{};V={};return V.YT_ERROR_CODE=m.Tr.toString(),V.ERRORCODE=m.Io.toString(),V.ERROR_MSG=m.errorMessage,V}; a97=function(m){var V={},O=m.U.getVideoData(1);V.ASR=hS(function(){var h;return(h=O==null?void 0:O.U6)!=null?h:null}); V.EI=hS(function(){var h;return(h=O==null?void 0:O.eventId)!=null?h:null}); return V}; yX=function(m,V,O){g.Z.call(this);this.U=m;this.eh=V;this.ze=O;this.listeners=[];this.jO=null;this.TX=new Map;V=new g.Rc(this);g.a(this,V);V.C(m,"videodatachange",this.irz);V.C(m,"serverstitchedvideochange",this.pWr);this.Hp=wk(this)}; wk=function(m,V){var O=m.U.getVideoData(V);return O?m.s6(O,V||m.U.getPresentingPlayerType(!0)):null}; GaG=function(m,V,O){var h=m.s6(V,O);m.Hp=h;m.listeners.forEach(function(w){w.WH(h)})}; jQ=function(m,V){g.Z.call(this);this.U=m;this.Nf=V;this.listeners=[];this.XP=[];this.jc=function(){ER("Called 'doUnlockPreroll' before it's initialized.")}; V=new N2(this);var O=new g.Rc(this);g.a(this,O);g.a(this,V);V.C(m,"progresssync",this.g2t);V.C(m,"presentingplayerstatechange",this.xCH);V.C(m,"fullscreentoggled",this.onFullscreenToggled);V.C(m,"onVolumeChange",this.onVolumeChange);V.C(m,"minimized",this.iN);V.C(m,"overlayvisibilitychange",this.XQ);V.C(m,"shortsadswipe",this.O8);V.C(m,"resize",this.Vp);O.C(m,g.Gu("appad"),this.J7)}; pQ$=function(m,V){m.XP=m.XP.filter(function(O){return O!==V})}; La=function(m,V,O){return m.getCurrentTimeSec(V,O)}; JS=function(m,V){var O;V=(O=m.Nf.get().TX.get(V))!=null?O:null;if(V===null)return ER("Expected ad video start time on playback timeline"),0;m=m.U.getCurrentTime(2,!0);return m0){var y=V.end.toString();w.forEach(function(L){(L=L.config&&L.config.adPlacementConfig)&&L.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&L.adTimeOffset&&L.adTimeOffset.offsetEndMilliseconds==="-1"&&L.adTimeOffset.offsetEndMilliseconds!==y&&(L.adTimeOffset.offsetEndMilliseconds=y)}); h.map(function(L){return g.d(L,Xr)}).forEach(function(L){var C; (L=L==null?void 0:(C=L.slotEntryTrigger)==null?void 0:C.mediaTimeRangeTrigger)&&L.offsetEndMilliseconds==="-1"&&(L.offsetEndMilliseconds=y)})}return{nS:w, adSlots:h,Wx:!1,ssdaiAdsConfig:m.ssdaiAdsConfig}}; fa=function(m){g.Z.call(this);this.U=m;this.listeners=[];this.Z=new N2(this);g.a(this,this.Z);this.Z.C(this.U,"aduxclicked",this.onAdUxClicked);this.Z.C(this.U,"aduxmouseover",this.UT);this.Z.C(this.U,"aduxmouseout",this.HH);this.Z.C(this.U,"muteadaccepted",this.zQS)}; muC=function(m,V,O){V=g.rb(V,function(h){return new d2a(h,O,h.id)}); m.U.bH("onAdUxUpdate",V)}; x9=function(m,V){m=g.D(m.listeners);for(var O=m.next();!O.done;O=m.next())V(O.value)}; Rm=function(m,V){this.L=m;this.D=V===void 0?!1:V;this.Z={}}; Vil=function(m,V){var O=m.startSecs+m.Ul;O=O<=0?null:O;if(O===null)return null;switch(m.event){case "start":case "continue":case "stop":break;case "predictStart":if(V)break;return null;default:return null}V=Math.max(m.startSecs,0);return{yd:new $N(V,O),Qrr:new fH(V,O-V,m.context,m.identifier,m.event,m.Z)}}; O1I=function(){this.Z=[]}; eRX=function(m,V,O){var h=g.f9(m.Z,V);if(h>=0)return V;V=-h-1;return V>=m.Z.length||m.Z[V]>O?null:m.Z[V]}; om=function(m,V,O){g.Z.call(this);this.U=m;this.ze=V;this.qf=O;this.listeners=[];this.T=!1;this.QT=[];this.Z=null;this.K=new Rm(this,RNl(V.get()));this.D=new O1I;this.L=null}; h_p=function(m,V){m.QT.push(V);for(var O=!1,h=g.D(m.listeners),w=h.next();!w.done;w=h.next())O=w.value.nB(V)||O;m.T=O;Mw(m.ze.get())&&OW(m.qf.get(),"onci","cpi."+V.identifier+";cpe."+V.event+";cps."+V.startSecs+";cbi."+O)}; y$$=function(m,V){Pm(m.qf.get(),{cuepointTrigger:{event:w47(V.event),cuepointId:V.identifier,totalCueDurationMs:V.Ul*1E3,playheadTimeMs:V.Z,cueStartTimeMs:V.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:m.U.getVideoData(1).clientPlaybackNonce}})}; w47=function(m){switch(m){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 Yp(m,"Unexpected cuepoint event")}}; gz=function(m){this.U=m}; AS=function(m){this.U=m}; jf3=function(m){switch(m){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;default:Yp(m,"unknown transitionReason")}}; Uu=function(){g.Z.apply(this,arguments);this.X20=new Map}; Lnm=function(m){this.U=m}; J$G=function(m,V,O,h,w){g.Z.call(this);var y=this,L=r2(function(){return new zy(y.ze)}); g.a(this,L);var C=r2(function(){return new sU(L)}); g.a(this,C);var E=r2(function(){return new UU}); g.a(this,E);var q=r2(function(){return new gs(m)}); g.a(this,q);var M=r2(function(){return new FB(L,C,y.ze)}); g.a(this,M);var f=r2(function(){return new BO}); g.a(this,f);this.cB=r2(function(){return new fa(V)}); g.a(this,this.cB);this.FA=r2(function(){return new D5(w)}); g.a(this,this.FA);this.FH=r2(function(){return new GE(V)}); g.a(this,this.FH);this.zj=r2(function(){return new pi(V)}); g.a(this,this.zj);this.XH=r2(function(){return new Be(V)}); g.a(this,this.XH);this.xf=r2(function(){return new lt(V)}); g.a(this,this.xf);this.ze=r2(function(){return new QV(V)}); g.a(this,this.ze);var x=r2(function(){return new Ml(h)}); g.a(this,x);var R=r2(function(){return new Vt(y.ze)}); g.a(this,R);this.tR=r2(function(){return new gz(V)}); g.a(this,this.tR);this.PU=r2(function(){return new nR}); g.a(this,this.PU);this.Nf=r2(function(){return new yX(V,f,y.ze)}); g.a(this,this.Nf);var A=FL({Nf:this.Nf,ze:this.ze,n6:R}),K=A.context;this.N8=A.N8;this.eK=r2(function(){return new om(V,y.ze,y.qf)}); g.a(this,this.eK);this.rY=r2(function(){return new AS(V)}); g.a(this,this.rY);this.Ge=r2(function(){return new jQ(V,y.Nf)}); g.a(this,this.Ge);this.H2=r2(function(){return new Uu}); g.a(this,this.H2);A=r2(function(){return new LL(L,M,C,y.ze,R,"SLOT_TYPE_ABOVE_FEED",y.Ge,y.YF,y.My)}); g.a(this,A);this.PW=r2(function(){return new Sp(y.ze)}); this.du=r2(function(){return new Pe(y.Ge,V,y.ze)}); g.a(this,this.du);this.qf=r2(function(){return new wz(V,E,y.du,y.Nf,y.N8,y.ze)}); g.a(this,this.qf);this.b4=new Ru(xh,dz,function(c,r,N,n){return Gf(C.get(),c,r,N,n)},q,M,C,R,this.ze,this.Nf); g.a(this,this.b4);this.T0=new ou(q,A,O,m,this.Nf,this.Ge,this.FH);g.a(this,this.T0);var X=new ak(V,this.T0,this.Ge,this.Nf,this.eK);this.YA=r2(function(){return X}); this.qP=X;this.YF=new EU(q,M,this.YA,this.eK,this.Ge,this.ze,this.qf,this.rY);g.a(this,this.YF);this.JR=new A5(q,M,this.zj,this.YA,K);g.a(this,this.JR);this.gB=new DU(this.ze,q,M,A,this.Nf,this.JR,O,this.XH);g.a(this,this.gB);this.Td=r2(function(){return new m8(x,C,R,y.ze,y.qf,y.Ge,y.rY)}); g.a(this,this.Td);this.cW=r2(function(){return new VH}); g.a(this,this.cW);this.An=new Ty(m,this.cB,this.ze);g.a(this,this.An);this.pP=new $h(m);g.a(this,this.pP);this.TY=new Yh(m);g.a(this,this.TY);this.fC=new rs(m,this.YA,K);g.a(this,this.fC);this.J6=new cO(m,this.zj,this.Ge,this.Nf);g.a(this,this.J6);this.uq=new DX(m,this.Nf);g.a(this,this.uq);this.My=new nL(m,this.eK,this.Ge,this.qf,this.YA,this.YF);g.a(this,this.My);this.AR=new Nw(m);g.a(this,this.AR);this.vW=new uy(m);g.a(this,this.vW);this.s8=new by(m);g.a(this,this.s8);this.TO=new eR(m);g.a(this, this.TO);this.vW=new uy(m);g.a(this,this.vW);this.lU=r2(function(){return new KL}); g.a(this,this.lU);this.wI=r2(function(){return new WO(y.Ge)}); g.a(this,this.wI);this.Gu=r2(function(){return new IaU(y.cB,y.qf,m,E,y.du)}); g.a(this,this.Gu);this.zd=r2(function(){return new uk(y.gB,q,L)}); g.a(this,this.zd);this.U8=r2(function(){return new sE(y.ze,y.qf,y.AR,y.du)}); g.a(this,this.U8);this.rI=r2(function(){return new EW(m,y.vW,y.AR,y.Nf,y.rY,y.Ge,y.H2,y.qf,f,y.eK,y.du,y.PW,y.XH,y.zj,y.FH,y.xf,y.FA,y.tR,y.ze,E,K)}); g.a(this,this.rI);this.qB=r2(function(){return new PJ5(y.Ge,y.qf,y.FA,y.ze,y.du,y.Nf)}); g.a(this,this.qB);this.dU=r2(function(){return new CP3(y.cB,y.Ge,y.qf,E,y.du,y.TY,y.TO,y.FA,y.ze,O)}); g.a(this,this.dU);this.gZ=r2(function(){return new eg1(y.cB,y.qf,E)}); g.a(this,this.gZ);this.L8=new ql(m,this.PU,L);g.a(this,this.L8);this.Ez={Lk:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.gB],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.YF],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.b4],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.T0],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.JR]]),e$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Td],["SLOT_TYPE_ABOVE_FEED",this.cW],["SLOT_TYPE_FORECASTING",this.cW], ["SLOT_TYPE_IN_PLAYER",this.cW],["SLOT_TYPE_PLAYER_BYTES",this.cW],["SLOT_TYPE_PLAYER_UNDERLAY",this.cW],["SLOT_TYPE_PLAYBACK_TRACKING",this.cW],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.cW]]),Mb:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.An],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.An],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.pP],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.pP],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.pP],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.pP],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.pP],["TRIGGER_TYPE_SLOT_ID_EXITED",this.pP],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.pP],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.pP],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.pP],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.pP],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.pP],["TRIGGER_TYPE_CLOSE_REQUESTED",this.TY],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.fC],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.J6],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.J6],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.J6],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.J6],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.J6],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.J6],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.J6],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.uq],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.uq],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.AR],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.fC],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.s8],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.TO],["TRIGGER_TYPE_AD_BREAK_STARTED",this.vW],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.My],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.My],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.My],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.My],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.My]]),TK:new Map([["SLOT_TYPE_ABOVE_FEED",this.lU], ["SLOT_TYPE_AD_BREAK_REQUEST",this.lU],["SLOT_TYPE_FORECASTING",this.lU],["SLOT_TYPE_IN_PLAYER",this.lU],["SLOT_TYPE_PLAYER_BYTES",this.wI],["SLOT_TYPE_PLAYER_UNDERLAY",this.lU],["SLOT_TYPE_PLAYBACK_TRACKING",this.lU],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.lU]]),UX:new Map([["SLOT_TYPE_ABOVE_FEED",this.Gu],["SLOT_TYPE_AD_BREAK_REQUEST",this.zd],["SLOT_TYPE_FORECASTING",this.U8],["SLOT_TYPE_PLAYER_BYTES",this.rI],["SLOT_TYPE_PLAYBACK_TRACKING",this.qB],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.qB],["SLOT_TYPE_IN_PLAYER",this.dU],["SLOT_TYPE_PLAYER_UNDERLAY",this.gZ]])};this.listeners=[E.get()];this.Ox={gB:this.gB,W1:this.ze.get(),sH:this.FA.get(),iB:this.Ge.get(),T0:this.T0,s_:L.get(),F6:this.PU.get(),Xl:this.An,zZ:E.get(),Us:this.Nf.get()}}; CMp=function(m,V,O,h,w){g.Z.call(this);var y=this,L=r2(function(){return new zy(y.ze)}); g.a(this,L);var C=r2(function(){return new sU(L)}); g.a(this,C);var E=r2(function(){return new UU}); g.a(this,E);var q=r2(function(){return new gs(m)}); g.a(this,q);var M=r2(function(){return new FB(L,C,y.ze)}); g.a(this,M);var f=r2(function(){return new BO}); g.a(this,f);this.cB=r2(function(){return new fa(V)}); g.a(this,this.cB);this.FA=r2(function(){return new D5(w)}); g.a(this,this.FA);this.FH=r2(function(){return new GE(V)}); g.a(this,this.FH);this.zj=r2(function(){return new pi(V)}); g.a(this,this.zj);this.XH=r2(function(){return new Be(V)}); g.a(this,this.XH);this.xf=r2(function(){return new lt(V)}); g.a(this,this.xf);this.ze=r2(function(){return new QV(V)}); g.a(this,this.ze);var x=r2(function(){return new Ml(h)}); g.a(this,x);var R=r2(function(){return new Vt(y.ze)}); g.a(this,R);var A=r2(function(){return new LL(L,M,C,y.ze,R,null,null,y.YF,y.My)}); g.a(this,A);this.tR=r2(function(){return new gz(V)}); g.a(this,this.tR);this.PU=r2(function(){return new nR}); g.a(this,this.PU);this.Nf=r2(function(){return new yX(V,f,y.ze)}); g.a(this,this.Nf);var K=FL({Nf:this.Nf,ze:this.ze,n6:R}),X=K.context;this.N8=K.N8;this.eK=r2(function(){return new om(V,y.ze,y.qf)}); this.Ge=r2(function(){return new jQ(V,y.Nf)}); g.a(this,this.Ge);this.H2=r2(function(){return new Uu}); g.a(this,this.H2);this.du=r2(function(){return new Pe(y.Ge,V,y.ze)}); g.a(this,this.du);this.qf=r2(function(){return new wz(V,E,y.du,y.Nf,y.N8,y.ze)}); g.a(this,this.qf);this.PW=r2(function(){return new Sp(y.ze)}); g.a(this,this.PW);this.b4=new Ru(xh,dz,function(r,N,n,F){return Gf(C.get(),r,N,n,F)},q,M,C,R,this.ze,this.Nf); g.a(this,this.b4);this.T0=new ou(q,A,O,m,this.Nf,this.Ge,this.FH);g.a(this,this.T0);var c=new ak(V,this.T0,this.Ge,this.Nf,this.eK);this.YA=r2(function(){return c}); this.qP=c;this.YF=new EU(q,M,this.YA,this.eK,this.Ge,this.ze,this.qf);g.a(this,this.YF);this.JR=new A5(q,M,this.zj,this.YA,X);g.a(this,this.JR);this.gB=new DU(this.ze,q,M,A,this.Nf,this.JR,O,this.XH);g.a(this,this.gB);this.Td=r2(function(){return new m8(x,C,R,y.ze,y.qf,y.Ge)}); g.a(this,this.Td);this.cW=r2(function(){return new VH}); g.a(this,this.cW);this.An=new Ty(m,this.cB,this.ze);g.a(this,this.An);this.pP=new $h(m);g.a(this,this.pP);this.TY=new Yh(m);g.a(this,this.TY);this.fC=new rs(m,this.YA,X);g.a(this,this.fC);this.J6=new cO(m,this.zj,this.Ge,this.Nf);g.a(this,this.J6);this.AR=new Nw(m);g.a(this,this.AR);this.s8=new by(m);g.a(this,this.s8);this.TO=new eR(m);g.a(this,this.TO);this.rY=r2(function(){return new AS(V)}); g.a(this,this.rY);this.vW=new uy(m);g.a(this,this.vW);this.My=new nL(m,this.eK,this.Ge,this.qf,this.YA,this.YF);g.a(this,this.My);this.lU=r2(function(){return new KL}); g.a(this,this.lU);this.wI=r2(function(){return new WO(y.Ge)}); g.a(this,this.wI);this.zd=r2(function(){return new uk(y.gB,q,L)}); g.a(this,this.zd);this.U8=r2(function(){return new sE(y.ze,y.qf,y.AR,y.du)}); g.a(this,this.U8);this.dU=r2(function(){return new Eom(y.cB,y.Ge,y.qf,E,y.du,y.TY,y.TO,y.FA,y.ze,O)}); g.a(this,this.dU);this.rI=r2(function(){return new qM(m,y.vW,y.AR,y.qf,y.du,y.PW,y.XH,y.Nf,y.Ge,y.H2,y.zj,y.FH,y.xf,y.FA,y.tR,y.ze,y.rY,X)}); g.a(this,this.rI);this.L8=new ql(m,this.PU,L);g.a(this,this.L8);this.Ez={Lk:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.gB],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.YF],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.b4],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.T0],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.JR]]),e$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Td],["SLOT_TYPE_FORECASTING",this.cW],["SLOT_TYPE_IN_PLAYER",this.cW], ["SLOT_TYPE_PLAYER_BYTES",this.cW]]),Mb:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.An],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.pP],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.pP],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.pP],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.pP],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.pP],["TRIGGER_TYPE_SLOT_ID_EXITED",this.pP],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.pP],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.pP],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.pP], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.pP],["TRIGGER_TYPE_CLOSE_REQUESTED",this.TY],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.fC],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.J6],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.J6],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.J6],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.AR],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.fC],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.s8],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.TO],["TRIGGER_TYPE_AD_BREAK_STARTED",this.vW],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.My],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.My],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.My],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.My],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.My]]),TK:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.lU],["SLOT_TYPE_FORECASTING",this.lU],["SLOT_TYPE_IN_PLAYER",this.lU],["SLOT_TYPE_PLAYER_BYTES",this.wI]]), UX:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.zd],["SLOT_TYPE_FORECASTING",this.U8],["SLOT_TYPE_IN_PLAYER",this.dU],["SLOT_TYPE_PLAYER_BYTES",this.rI]])};this.listeners=[E.get()];this.Ox={gB:this.gB,W1:this.ze.get(),sH:this.FA.get(),iB:this.Ge.get(),T0:this.T0,s_:L.get(),F6:this.PU.get(),Xl:this.An,zZ:E.get(),Us:this.Nf.get()}}; Ef3=function(m,V,O,h,w){g.Z.call(this);var y=this,L=r2(function(){return new zy(y.ze)}); g.a(this,L);var C=r2(function(){return new sU(L)}); g.a(this,C);var E=r2(function(){return new UU}); g.a(this,E);var q=r2(function(){return new gs(m)}); g.a(this,q);var M=r2(function(){return new FB(L,C,y.ze)}); g.a(this,M);var f=r2(function(){return new BO}); g.a(this,f);this.cB=r2(function(){return new fa(V)}); g.a(this,this.cB);this.FA=r2(function(){return new D5(w)}); g.a(this,this.FA);this.FH=r2(function(){return new GE(V)}); g.a(this,this.FH);this.zj=r2(function(){return new pi(V)}); g.a(this,this.zj);this.XH=r2(function(){return new Be(V)}); g.a(this,this.XH);this.xf=r2(function(){return new lt(V)}); g.a(this,this.xf);this.ze=r2(function(){return new QV(V)}); g.a(this,this.ze);var x=r2(function(){return new Ml(h)}); g.a(this,x);var R=r2(function(){return new Vt(y.ze)}); g.a(this,R);var A=r2(function(){return new LL(L,M,C,y.ze,R,null,null,null,null)}); g.a(this,A);this.tR=r2(function(){return new gz(V)}); g.a(this,this.tR);this.Nf=r2(function(){return new yX(V,f,y.ze)}); g.a(this,this.Nf);var K=FL({Nf:this.Nf,ze:this.ze,n6:R}),X=K.context;this.N8=K.N8;this.Ge=r2(function(){return new jQ(V,y.Nf)}); g.a(this,this.Ge);this.H2=r2(function(){return new Uu}); g.a(this,this.H2);this.du=r2(function(){return new Pe(y.Ge,V,y.ze)}); g.a(this,this.du);this.qf=r2(function(){return new wz(V,E,y.du,y.Nf,y.N8,y.ze)}); g.a(this,this.qf);this.PW=r2(function(){return new Sp(y.ze)}); g.a(this,this.PW);this.b4=new Ru(xh,dz,function(r,N,n,F){return Gf(C.get(),r,N,n,F)},q,M,C,R,this.ze,this.Nf); g.a(this,this.b4);this.T0=new ou(q,A,O,m,this.Nf,this.Ge,this.FH);g.a(this,this.T0);var c=new ak(V,this.T0,this.Ge,this.Nf);this.YA=r2(function(){return c}); this.qP=c;this.JR=new A5(q,M,this.zj,this.YA,X);g.a(this,this.JR);this.gB=new DU(this.ze,q,M,A,this.Nf,this.JR,O,this.XH);g.a(this,this.gB);this.Td=r2(function(){return new m8(x,C,R,y.ze,y.qf,y.Ge)}); g.a(this,this.Td);this.cW=r2(function(){return new VH}); g.a(this,this.cW);this.An=new Ty(m,this.cB,this.ze);g.a(this,this.An);this.pP=new $h(m);g.a(this,this.pP);this.fC=new rs(m,this.YA,X);g.a(this,this.fC);this.J6=new cO(m,this.zj,this.Ge,this.Nf);g.a(this,this.J6);this.AR=new Nw(m);g.a(this,this.AR);this.s8=new by(m);g.a(this,this.s8);this.rY=r2(function(){return new AS(V)}); g.a(this,this.rY);this.vW=new uy(m);g.a(this,this.vW);this.lU=r2(function(){return new KL}); g.a(this,this.lU);this.wI=r2(function(){return new WO(y.Ge)}); g.a(this,this.wI);this.zd=r2(function(){return new uk(y.gB,q,L)}); g.a(this,this.zd);this.U8=r2(function(){return new sE(y.ze,y.qf,y.AR,y.du)}); g.a(this,this.U8);this.w7=r2(function(){return new Qz1(y.cB,y.Ge,y.qf,E,O,y.ze)}); g.a(this,this.w7);this.rI=r2(function(){return new qM(m,y.vW,y.AR,y.qf,y.du,y.PW,y.XH,y.Nf,y.Ge,y.H2,y.zj,y.FH,y.xf,y.FA,y.tR,y.ze,y.rY,X)}); g.a(this,this.rI);this.Ez={Lk:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.gB],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.b4],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.T0],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.JR]]),e$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Td],["SLOT_TYPE_FORECASTING",this.cW],["SLOT_TYPE_IN_PLAYER",this.cW],["SLOT_TYPE_PLAYER_BYTES",this.cW]]),Mb:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.An],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.pP],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.pP],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.pP],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.pP],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.pP],["TRIGGER_TYPE_SLOT_ID_EXITED",this.pP],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.pP],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.pP],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.pP],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.fC],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.J6],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.J6],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.AR],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.fC],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.s8],["TRIGGER_TYPE_AD_BREAK_STARTED",this.vW]]),TK:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.lU],["SLOT_TYPE_ABOVE_FEED",this.lU],["SLOT_TYPE_FORECASTING",this.lU],["SLOT_TYPE_IN_PLAYER",this.lU],["SLOT_TYPE_PLAYER_BYTES",this.wI]]),UX:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.zd],["SLOT_TYPE_FORECASTING",this.U8],["SLOT_TYPE_IN_PLAYER", this.w7],["SLOT_TYPE_PLAYER_BYTES",this.rI]])};this.listeners=[E.get()];this.Ox={gB:this.gB,W1:this.ze.get(),sH:this.FA.get(),iB:this.Ge.get(),T0:this.T0,s_:L.get(),F6:null,Xl:this.An,zZ:E.get(),Us:this.Nf.get()}}; qK3=function(m,V,O,h,w){g.Z.call(this);var y=this,L=r2(function(){return new zy(y.ze)}); g.a(this,L);var C=r2(function(){return new sU(L)}); g.a(this,C);var E=r2(function(){return new UU}); g.a(this,E);var q=r2(function(){return new gs(m)}); g.a(this,q);var M=r2(function(){return new FB(L,C,y.ze)}); g.a(this,M);var f=r2(function(){return new BO}); g.a(this,f);this.WP=r2(function(){return new Lnm(V)}); g.a(this,this.WP);this.cB=r2(function(){return new fa(V)}); g.a(this,this.cB);this.FA=r2(function(){return new D5(w)}); g.a(this,this.FA);this.FH=r2(function(){return new GE(V)}); g.a(this,this.FH);this.zj=r2(function(){return new pi(V)}); g.a(this,this.zj);this.XH=r2(function(){return new Be(V)}); g.a(this,this.XH);this.xf=r2(function(){return new lt(V)}); g.a(this,this.xf);this.ze=r2(function(){return new QV(V)}); g.a(this,this.ze);var x=r2(function(){return new Ml(h)}); g.a(this,x);var R=r2(function(){return new Vt(y.ze)}); g.a(this,R);var A=r2(function(){return new LL(L,M,C,y.ze,R,null,null,null,null)}); g.a(this,A);this.tR=r2(function(){return new gz(V)}); g.a(this,this.tR);this.Nf=r2(function(){return new yX(V,f,y.ze)}); g.a(this,this.Nf);var K=FL({Nf:this.Nf,ze:this.ze,n6:R}),X=K.context;this.N8=K.N8;this.Ge=r2(function(){return new jQ(V,y.Nf)}); g.a(this,this.Ge);this.H2=r2(function(){return new Uu}); g.a(this,this.H2);this.du=r2(function(){return new Pe(y.Ge,V,y.ze)}); g.a(this,this.du);this.qf=r2(function(){return new wz(V,E,y.du,y.Nf,y.N8,y.ze)}); g.a(this,this.qf);this.PW=r2(function(){return new Sp(y.ze)}); g.a(this,this.PW);this.b4=new Ru(BLX,dz,function(r,N,n,F){return gAm(C.get(),r,N,n,F)},q,M,C,R,this.ze,this.Nf); g.a(this,this.b4);this.T0=new ou(q,A,O,m,this.Nf,this.Ge,this.FH);g.a(this,this.T0);var c=new ak(V,this.T0,this.Ge,this.Nf);this.YA=r2(function(){return c}); this.qP=c;this.JR=new A5(q,M,this.zj,this.YA,X);g.a(this,this.JR);this.gB=new DU(this.ze,q,M,A,this.Nf,this.JR,O,this.XH);g.a(this,this.gB);this.Td=r2(function(){return new m8(x,C,R,y.ze,y.qf,y.Ge)}); g.a(this,this.Td);this.cW=r2(function(){return new VH}); g.a(this,this.cW);this.An=new Ty(m,this.cB,this.ze);g.a(this,this.An);this.pP=new $h(m);g.a(this,this.pP);this.fC=new rs(m,this.YA,X);g.a(this,this.fC);this.J6=new cO(m,this.zj,this.Ge,this.Nf);g.a(this,this.J6);this.AR=new Nw(m);g.a(this,this.AR);this.s8=new by(m);g.a(this,this.s8);this.rY=r2(function(){return new AS(V)}); g.a(this,this.rY);this.vW=new uy(m);g.a(this,this.vW);this.lU=r2(function(){return new KL}); g.a(this,this.lU);this.wI=r2(function(){return new WO(y.Ge)}); g.a(this,this.wI);this.zd=r2(function(){return new uk(y.gB,q,L)}); g.a(this,this.zd);this.U8=r2(function(){return new sE(y.ze,y.qf,y.AR,y.du)}); g.a(this,this.U8);this.rI=r2(function(){return new qM(m,y.vW,y.AR,y.qf,y.du,y.PW,y.XH,y.Nf,y.Ge,y.H2,y.zj,y.FH,y.xf,y.FA,y.tR,y.ze,y.rY,X)}); g.a(this,this.rI);this.s7=r2(function(){return new MY5(y.cB,y.Ge,y.qf,E,y.WP,O,y.Nf)}); g.a(this,this.s7);this.Ez={Lk:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.gB],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.b4],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.T0],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.JR]]),e$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Td],["SLOT_TYPE_FORECASTING",this.cW],["SLOT_TYPE_IN_PLAYER",this.cW],["SLOT_TYPE_PLAYER_BYTES",this.cW]]),Mb:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.An],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.pP],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.pP],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.pP],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.pP],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.pP],["TRIGGER_TYPE_SLOT_ID_EXITED",this.pP],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.pP],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.pP],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.pP],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.fC],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.J6],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.J6],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.AR],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.fC],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.s8],["TRIGGER_TYPE_AD_BREAK_STARTED",this.vW]]),TK:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.lU],["SLOT_TYPE_FORECASTING",this.lU],["SLOT_TYPE_IN_PLAYER",this.lU],["SLOT_TYPE_PLAYER_BYTES",this.wI]]),UX:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.zd],["SLOT_TYPE_FORECASTING",this.U8],["SLOT_TYPE_IN_PLAYER",this.s7],["SLOT_TYPE_PLAYER_BYTES", this.rI]])};this.listeners=[E.get()];this.Ox={gB:this.gB,W1:this.ze.get(),sH:this.FA.get(),iB:this.Ge.get(),T0:this.T0,s_:L.get(),F6:null,Xl:this.An,zZ:E.get(),Us:this.Nf.get()}}; Mim=function(m,V,O,h,w){g.Z.call(this);var y=this,L=r2(function(){return new zy(y.ze)}); g.a(this,L);var C=r2(function(){return new sU(L)}); g.a(this,C);var E=r2(function(){return new UU}); g.a(this,E);var q=r2(function(){return new gs(m)}); g.a(this,q);var M=r2(function(){return new FB(L,C,y.ze)}); g.a(this,M);var f=r2(function(){return new BO}); g.a(this,f);this.WP=r2(function(){return new Lnm(V)}); g.a(this,this.WP);this.cB=r2(function(){return new fa(V)}); g.a(this,this.cB);this.FA=r2(function(){return new D5(w)}); g.a(this,this.FA);this.FH=r2(function(){return new GE(V)}); g.a(this,this.FH);this.zj=r2(function(){return new pi(V)}); g.a(this,this.zj);this.XH=r2(function(){return new Be(V)}); g.a(this,this.XH);this.xf=r2(function(){return new lt(V)}); g.a(this,this.xf);this.ze=r2(function(){return new QV(V)}); g.a(this,this.ze);var x=r2(function(){return new Ml(h)}); g.a(this,x);var R=r2(function(){return new Vt(y.ze)}); g.a(this,R);this.tR=r2(function(){return new gz(V)}); g.a(this,this.tR);this.Nf=r2(function(){return new yX(V,f,y.ze)}); g.a(this,this.Nf);var A=FL({Nf:this.Nf,ze:this.ze,n6:R}),K=A.context;this.N8=A.N8;this.eK=r2(function(){return new om(V,y.ze,y.qf)}); g.a(this,this.eK);this.rY=r2(function(){return new AS(V)}); g.a(this,this.rY);this.Ge=r2(function(){return new jQ(V,y.Nf)}); g.a(this,this.Ge);this.H2=r2(function(){return new Uu}); g.a(this,this.H2);A=r2(function(){return new LL(L,M,C,y.ze,R,null,y.Ge,y.YF,y.My,3)}); g.a(this,A);this.PW=r2(function(){return new Sp(y.ze)}); this.du=r2(function(){return new Pe(y.Ge,V,y.ze)}); g.a(this,this.du);this.qf=r2(function(){return new wz(V,E,y.du,y.Nf,y.N8,y.ze)}); g.a(this,this.qf);this.T0=new ou(q,A,O,m,this.Nf,this.Ge,this.FH);g.a(this,this.T0);var X=new ak(V,this.T0,this.Ge,this.Nf,this.eK);this.YA=r2(function(){return X}); this.qP=X;this.b4=new Ru(lrU,dz,function(c,r,N,n){return gAm(C.get(),c,r,N,n)},q,M,C,R,this.ze,this.Nf); g.a(this,this.b4);this.YF=new EU(q,M,this.YA,this.eK,this.Ge,this.ze,this.qf,this.rY);g.a(this,this.YF);this.JR=new A5(q,M,this.zj,this.YA,K);g.a(this,this.JR);this.gB=new DU(this.ze,q,M,A,this.Nf,this.JR,O,this.XH);g.a(this,this.gB);this.Td=r2(function(){return new m8(x,C,R,y.ze,y.qf,y.Ge,y.rY)}); g.a(this,this.Td);this.cW=r2(function(){return new VH}); g.a(this,this.cW);this.An=new Ty(m,this.cB,this.ze);g.a(this,this.An);this.pP=new $h(m);g.a(this,this.pP);this.fC=new rs(m,this.YA,K);g.a(this,this.fC);this.J6=new cO(m,this.zj,this.Ge,this.Nf);g.a(this,this.J6);this.uq=new DX(m,this.Nf);g.a(this,this.uq);this.My=new nL(m,this.eK,this.Ge,this.qf,this.YA,this.YF);g.a(this,this.My);this.AR=new Nw(m);g.a(this,this.AR);this.s8=new by(m);g.a(this,this.s8);this.vW=new uy(m);g.a(this,this.vW);this.lU=r2(function(){return new KL}); g.a(this,this.lU);this.wI=r2(function(){return new WO(y.Ge)}); g.a(this,this.wI);this.zd=r2(function(){return new uk(y.gB,q,L)}); g.a(this,this.zd);this.U8=r2(function(){return new sE(y.ze,y.qf,y.AR,y.du)}); g.a(this,this.U8);this.rI=r2(function(){return new EW(m,y.vW,y.AR,y.Nf,y.rY,y.Ge,y.H2,y.qf,f,y.eK,y.du,y.PW,y.XH,y.zj,y.FH,y.xf,y.FA,y.tR,y.ze,E,K)}); g.a(this,this.rI);this.dU=r2(function(){return new fYa(y.cB,y.Ge,y.qf,E,y.WP,O,y.ze,y.Nf)}); g.a(this,this.dU);this.Ez={Lk:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.gB],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.YF],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.b4],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.T0],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.JR]]),e$:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Td],["SLOT_TYPE_FORECASTING",this.cW],["SLOT_TYPE_IN_PLAYER",this.cW],["SLOT_TYPE_PLAYER_BYTES",this.cW]]),Mb:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.An],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.pP],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.pP],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.pP],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.pP],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.pP],["TRIGGER_TYPE_SLOT_ID_EXITED",this.pP],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.pP],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.pP],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.pP],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.fC],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.J6],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.J6],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.uq],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.uq],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.AR],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.fC],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.s8],["TRIGGER_TYPE_AD_BREAK_STARTED",this.vW],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.My],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.My],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.My],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.My],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.My]]),TK:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.lU],["SLOT_TYPE_FORECASTING",this.lU],["SLOT_TYPE_IN_PLAYER",this.lU],["SLOT_TYPE_PLAYER_BYTES",this.wI]]),UX:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.zd],["SLOT_TYPE_FORECASTING",this.U8],["SLOT_TYPE_PLAYER_BYTES",this.rI],["SLOT_TYPE_IN_PLAYER",this.dU]])};this.listeners=[E.get()]; this.Ox={gB:this.gB,W1:this.ze.get(),sH:this.FA.get(),iB:this.Ge.get(),T0:this.T0,s_:L.get(),F6:null,Xl:this.An,zZ:E.get(),Us:this.Nf.get()}}; xum=function(m,V,O,h){function w(){return y.L} g.Z.call(this);var y=this;m.j().experiments.w0("html5_dispose_of_manager_before_dependency")?(this.Z=f4U(w,m,V,O,h),this.L=(new cd(this.Z)).D(),g.a(this,this.L),g.a(this,this.Z)):(this.Z=f4U(w,m,V,O,h),g.a(this,this.Z),this.L=(new cd(this.Z)).D(),g.a(this,this.L))}; tS=function(m){return m.Z.Ox}; f4U=function(m,V,O,h,w){try{var y=V.j();if(g.Eh(y))var L=new J$G(m,V,O,h,w);else if(g.fI(y))L=new CMp(m,V,O,h,w);else if(Oh(y))L=new Ef3(m,V,O,h,w);else if(g.Sm(y))L=new qK3(m,V,O,h,w);else if(g.l0(y))L=new Mim(m,V,O,h,w);else throw new TypeError("Unknown web interface");return L}catch(C){return L=V.j(),ER("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:L.Z.cplatform,interface:L.Z.c,HVH:L.Z.cver,KPH:L.Z.ctheme,GPr:L.Z.cplayer,u10:L.playerStyle}),new v$a(m,V,O,h,w)}}; R_5=function(m){al.call(this,m)}; of0=function(m,V,O,h,w){Pn.call(this,m,{G:"div",X:"ytp-ad-timed-pie-countdown-container",S:[{G:"svg",X:"ytp-ad-timed-pie-countdown",B:{viewBox:"0 0 20 20"},S:[{G:"circle",X:"ytp-ad-timed-pie-countdown-background",B:{r:"10",cx:"10",cy:"10"}},{G:"circle",X:"ytp-ad-timed-pie-countdown-inner",B:{r:"5",cx:"10",cy:"10"}},{G:"circle",X:"ytp-ad-timed-pie-countdown-outer",B:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",V,O,h,w);this.T=this.LA("ytp-ad-timed-pie-countdown-container");this.D=this.LA("ytp-ad-timed-pie-countdown-inner"); this.K=this.LA("ytp-ad-timed-pie-countdown-outer");this.L=Math.ceil(2*Math.PI*5);this.hide()}; gfX=function(m,V,O,h,w,y){qP.call(this,m,{G:"div",X:"ytp-ad-action-interstitial",B:{tabindex:"0"},S:[{G:"div",X:"ytp-ad-action-interstitial-background-container"},{G:"div",X:"ytp-ad-action-interstitial-slot",S:[{G:"div",X:"ytp-ad-action-interstitial-instream-info"},{G:"div",X:"ytp-ad-action-interstitial-card",S:[{G:"div",X:"ytp-ad-action-interstitial-image-container"},{G:"div",X:"ytp-ad-action-interstitial-headline-container"},{G:"div",X:"ytp-ad-action-interstitial-description-container"},{G:"div", X:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",V,O,h);this.ev=w;this.vL=y;this.navigationEndpoint=this.Z=this.skipButton=this.L=this.actionButton=null;this.fA=this.LA("ytp-ad-action-interstitial-instream-info");this.H6=this.LA("ytp-ad-action-interstitial-image-container");this.V=new zY(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,"ytp-ad-action-interstitial-image");g.a(this,this.V);this.V.g0(this.H6);this.iH=this.LA("ytp-ad-action-interstitial-headline-container"); this.K=new Qh(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,"ytp-ad-action-interstitial-headline");g.a(this,this.K);this.K.g0(this.iH);this.Ae=this.LA("ytp-ad-action-interstitial-description-container");this.D=new Qh(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,"ytp-ad-action-interstitial-description");g.a(this,this.D);this.D.g0(this.Ae);this.pA=this.LA("ytp-ad-action-interstitial-background-container");this.Mf=new zY(this.api,this.layoutId,this.interactionLoggingClientData, this.sH,"ytp-ad-action-interstitial-background",!0);g.a(this,this.Mf);this.Mf.g0(this.pA);this.Xr=this.LA("ytp-ad-action-interstitial-action-button-container");this.slot=this.LA("ytp-ad-action-interstitial-slot");this.qy=this.LA("ytp-ad-action-interstitial-card");this.T=new N2;g.a(this,this.T);this.hide()}; A$m=function(m){var V=g.KK("html5-video-player");V&&g.xN(V,"ytp-ad-display-override",m)}; Kno=function(m,V,O,h){qP.call(this,m,{G:"div",X:"ytp-ad-overlay-slot",S:[{G:"div",X:"ytp-ad-overlay-container"}]},"invideo-overlay",V,O,h);this.V=[];this.pA=this.iH=this.T=this.Xr=this.fA=null;this.Mf=!1;this.K=null;this.Ae=0;m=this.LA("ytp-ad-overlay-container");this.H6=new LX(m,45E3,6E3,.3,.4);g.a(this,this.H6);this.D=Uua(this);g.a(this,this.D);this.D.g0(m);this.L=dup(this);g.a(this,this.L);this.L.g0(m);this.Z=ti0(this);g.a(this,this.Z);this.Z.g0(m);this.hide()}; Uua=function(m){var V=new g.ED({G:"div",X:"ytp-ad-text-overlay",S:[{G:"div",X:"ytp-ad-overlay-ad-info-button-container"},{G:"div",X:"ytp-ad-overlay-close-container",S:[{G:"button",X:"ytp-ad-overlay-close-button",S:[Du(Wn3)]}]},{G:"div",X:"ytp-ad-overlay-title",c6:"{{title}}"},{G:"div",X:"ytp-ad-overlay-desc",c6:"{{description}}"},{G:"div",KA:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],c6:"{{displayUrl}}"}]});m.C(V.LA("ytp-ad-overlay-title"),"click",function(O){Ka(m,V.element,O)}); m.C(V.LA("ytp-ad-overlay-link"),"click",function(O){Ka(m,V.element,O)}); m.C(V.LA("ytp-ad-overlay-close-container"),"click",m.UD);V.hide();return V}; dup=function(m){var V=new g.ED({G:"div",KA:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],S:[{G:"div",X:"ytp-ad-overlay-ad-info-button-container"},{G:"div",X:"ytp-ad-overlay-close-container",S:[{G:"button",X:"ytp-ad-overlay-close-button",S:[Du(Wn3)]}]},{G:"div",X:"ytp-ad-overlay-text-image",S:[{G:"img",B:{src:"{{imageUrl}}"}}]},{G:"div",X:"ytp-ad-overlay-title",c6:"{{title}}"},{G:"div",X:"ytp-ad-overlay-desc",c6:"{{description}}"},{G:"div",KA:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], c6:"{{displayUrl}}"}]});m.C(V.LA("ytp-ad-overlay-title"),"click",function(O){Ka(m,V.element,O)}); m.C(V.LA("ytp-ad-overlay-link"),"click",function(O){Ka(m,V.element,O)}); m.C(V.LA("ytp-ad-overlay-close-container"),"click",m.UD);m.C(V.LA("ytp-ad-overlay-text-image"),"click",m.ARr);V.hide();return V}; ti0=function(m){var V=new g.ED({G:"div",X:"ytp-ad-image-overlay",S:[{G:"div",X:"ytp-ad-overlay-ad-info-button-container"},{G:"div",X:"ytp-ad-overlay-close-container",S:[{G:"button",X:"ytp-ad-overlay-close-button",S:[Du(Wn3)]}]},{G:"div",X:"ytp-ad-overlay-image",S:[{G:"img",B:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});m.C(V.LA("ytp-ad-overlay-image"),"click",function(O){Ka(m,V.element,O)}); m.C(V.LA("ytp-ad-overlay-close-container"),"click",m.UD);V.hide();return V}; X4X=function(m,V){if(V){var O=g.d(V,YE)||null;O==null?g.kL(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(V=g.KK("video-ads ytp-ad-module")||null,V==null?g.kL(Error("Could not locate the root ads container element to attach the ad info dialog.")):(m.iH=new g.ED({G:"div",X:"ytp-ad-overlay-ad-info-dialog-container"}),g.a(m,m.iH),m.iH.g0(V),V=new lc(m.api,m.layoutId,m.interactionLoggingClientData,m.sH,m.iH.element,!1),g.a(m,V),V.init(hh("ad-info-hover-text-button"),O,m.macros), m.K?(V.g0(m.K,0),V.subscribe("f",m.DqY,m),V.subscribe("e",m.xm,m),m.C(m.K,"click",m.Ifz),m.C(g.KK("ytp-ad-button",V.element),"click",function(){var h;if(g.d((h=g.d(O.button,g.rg))==null?void 0:h.serviceEndpoint,r8o))m.Mf=m.api.getPlayerState(1)===2,m.api.pauseVideo();else m.api.onAdUxClicked("ad-info-hover-text-button",m.layoutId)}),m.pA=V):g.kL(Error("Ad info button container within overlay ad was not present."))))}else g.cj(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; TWU=function(m,V){if(H1C(m,Wx)||m.api.isMinimized())return!1;var O=MP(V.title),h=MP(V.description);if(g.v8(O)||g.v8(h))return!1;m.createServerVe(m.D.element,V.trackingParams||null);m.D.updateValue("title",MP(V.title));m.D.updateValue("description",MP(V.description));m.D.updateValue("displayUrl",MP(V.displayUrl));V.navigationEndpoint&&g.L9(m.V,V.navigationEndpoint);m.D.show();m.H6.start();m.logVisibility(m.D.element,!0);m.C(m.D.element,"mouseover",function(){m.Ae++}); return!0}; $ua=function(m,V){if(H1C(m,Wx)||m.api.isMinimized())return!1;var O=MP(V.title),h=MP(V.description);if(g.v8(O)||g.v8(h))return!1;m.createServerVe(m.L.element,V.trackingParams||null);m.L.updateValue("title",MP(V.title));m.L.updateValue("description",MP(V.description));m.L.updateValue("displayUrl",MP(V.displayUrl));m.L.updateValue("imageUrl",ziC(V.image));V.navigationEndpoint&&g.L9(m.V,V.navigationEndpoint);m.Xr=V.imageNavigationEndpoint||null;m.L.show();m.H6.start();m.logVisibility(m.L.element,!0); m.C(m.L.element,"mouseover",function(){m.Ae++}); return!0}; YK$=function(m,V){if(m.api.isMinimized())return!1;var O=ZJm(V.image),h=O;O.width0?(V=new bE(m.api,m.Z), V.g0(m.playerOverlay),g.a(m,V)):(m=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(V)),g.kL(m))}}else g.kL(Error("addCommonComponents() needs to be called before starting countdown."))}; uFU=function(m){function V(O){return{toString:function(){return O()}}} m.macros.SURVEY_LOCAL_TIME_EPOCH_S=V(function(){var O=new Date;return(Math.round(O.valueOf()/1E3)+-1*O.getTimezoneOffset()*60).toString()}); m.macros.SURVEY_ELAPSED_MS=V(function(){return(Date.now()-m.D).toString()})}; z_o=function(m,V,O,h,w){$9.call(this,m,V,O,h,"survey-question-multi-select");this.Ae=w;this.noneOfTheAbove=null;this.submitEndpoints=[];this.K=null;this.hide()}; Z1$=function(m,V,O){m.noneOfTheAbove=new b1l(m.api,m.layoutId,m.interactionLoggingClientData,m.sH);m.noneOfTheAbove.g0(m.answers);m.noneOfTheAbove.init(hh("survey-none-of-the-above"),V,O)}; FnX=function(m){m.L.forEach(function(V){V.Z.toggleButton(!1)}); sfU(m,!0)}; sfU=function(m,V){var O=m.T;m=a4$(m);V=V===void 0?!1:V;O.Z&&(m?O.Z.hide():O.Z.show(),V&&O.Z instanceof oR&&!O.Z.T&&uSo(O.Z,!1));O.L&&(m?O.L.show():O.L.hide())}; a4$=function(m){return m.L.some(function(V){return V.Z.isToggled()})||m.noneOfTheAbove.button.isToggled()}; Y9=function(m,V,O,h,w){$9.call(this,m,V,O,h,"survey-question-single-select",function(L){y.api.j().Y("supports_multi_step_on_desktop")&&w([L])}); var y=this;this.hide()}; k9=function(m,V,O,h){qP.call(this,m,{G:"div",X:"ytp-ad-survey",S:[{G:"div",X:"ytp-ad-survey-questions"}]},"survey",V,O,h);this.questions=[];this.L=[];this.conditioningRules=[];this.Z=0;this.K=this.LA("ytp-ad-survey-questions");this.api.j().Y("fix_survey_color_contrast_on_destop")&&this.LA("ytp-ad-survey").classList.add("color-contrast-fix");this.api.j().Y("web_enable_speedmaster")&&this.LA("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; p4I=function(m,V){var O=m.L[V],h;(h=m.D)==null||h.dispose();g.d(O,Tf)?i1I(m,g.d(O,Tf),m.macros):g.d(O,Hq)&>0(m,g.d(O,Hq),m.macros);m.Z=V}; i1I=function(m,V,O){var h=new Y9(m.api,m.layoutId,m.interactionLoggingClientData,m.sH,m.T.bind(m));h.g0(m.K);h.init(hh("survey-question-single-select"),V,O);m.api.j().Y("supports_multi_step_on_desktop")?m.D=h:m.questions.push(h);g.a(m,h)}; GT0=function(m,V,O){var h=new z_o(m.api,m.layoutId,m.interactionLoggingClientData,m.sH,m.T.bind(m));h.g0(m.K);h.init(hh("survey-question-multi-select"),V,O);m.api.j().Y("supports_multi_step_on_desktop")?m.D=h:m.questions.push(h);g.a(m,h)}; rz=function(m,V,O,h){qP.call(this,m,{G:"div",X:"ytp-ad-survey-interstitial",S:[{G:"div",X:"ytp-ad-survey-interstitial-contents",S:[{G:"div",X:"ytp-ad-survey-interstitial-logo",S:[{G:"div",X:"ytp-ad-survey-interstitial-logo-image"}]},{G:"div",X:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",V,O,h);this.Z=this.actionButton=null;this.interstitial=this.LA("ytp-ad-survey-interstitial");this.L=this.LA("ytp-ad-survey-interstitial-contents");this.text=this.LA("ytp-ad-survey-interstitial-text"); this.logoImage=this.LA("ytp-ad-survey-interstitial-logo-image");this.transition=new g.OR(this,500,!1,300);g.a(this,this.transition)}; BW$=function(m,V){V=V&&uc(V)||"";if(g.v8(V))g.cj(Error("Found ThumbnailDetails without valid image URL"));else{var O=m.style;m=m.style.cssText;var h=document.implementation.createHTMLDocument("").createElement("DIV");h.style.cssText=m;m=grC(h.style);O.cssText=[m,'background-image:url("'+V+'");'].join("")}}; l4$=function(m){var V=g.KK("html5-video-player");V&&g.xN(V,"ytp-ad-display-override",m)}; cx=function(m,V,O,h,w,y){y=y===void 0?0:y;Pn.call(this,m,{G:"div",X:"ytp-preview-ad",S:[{G:"div",X:"ytp-preview-ad__text"}]},"preview-ad",V,O,h,w);var L=this;this.Ae=y;this.L=0;this.T=-1;this.D=this.LA("ytp-preview-ad__text");switch(this.Ae){case 1:this.D.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.OR(this,400,!1,100,function(){L.hide()}); g.a(this,this.transition);this.hide()}; Dy=function(m,V,O,h){qP.call(this,m,{G:"img",X:"ytp-ad-avatar"},"ad-avatar",V,O,h);this.hide()}; Qf1=function(m){switch(m.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}}; Nl=function(m,V,O,h,w,y){w=w===void 0?!1:w;y=y===void 0?!1:y;qP.call(this,m,{G:"button",X:"ytp-ad-button-vm"},"ad-button",V,O,h);this.buttonText=this.buttonIcon=null;this.hide();this.Z=w;this.L=y}; vfo=function(m,V,O,h,w){Pn.call(this,m,{G:"div",KA:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],S:[{G:"div",X:"ytp-ad-avatar-lockup-card__avatar_and_text_container",S:[{G:"div",X:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",V,O,h,w);this.startMilliseconds=0;this.adAvatar=new Dy(this.api,this.layoutId,this.interactionLoggingClientData,this.sH);g.a(this,this.adAvatar);Ny(this.element,this.adAvatar.element,0);this.headline=new $W(this.api,this.layoutId, this.interactionLoggingClientData,this.sH);g.a(this,this.headline);this.headline.g0(this.LA("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new $W(this.api,this.layoutId,this.interactionLoggingClientData,this.sH);g.a(this,this.description);this.description.g0(this.LA("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new Nl(this.api, this.layoutId,this.interactionLoggingClientData,this.sH);g.a(this,this.adButton);this.adButton.g0(this.element);this.hide()}; bh=function(m,V,O,h){qP.call(this,m,{G:"button",X:"ytp-skip-ad-button",S:[{G:"div",X:"ytp-skip-ad-button__text"}]},"skip-button",V,O,h);var w=this;this.L=!1;this.T=this.LA("ytp-skip-ad-button__text");this.transition=new g.OR(this,500,!1,100,function(){w.hide()}); g.a(this,this.transition);this.Z=new LX(this.element,15E3,5E3,.5,.5,!0);g.a(this,this.Z);this.hide()}; PM$=function(m,V,O,h,w){Pn.call(this,m,{G:"div",X:"ytp-skip-ad"},"skip-ad",V,O,h,w);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.D=new bh(this.api,this.layoutId,this.interactionLoggingClientData,this.sH);g.a(this,this.D);this.D.g0(this.element);this.hide()}; na=function(m,V,O,h){qP.call(this,m,{G:"div",X:"ytp-visit-advertiser-link"},"visit-advertiser-link",V,O,h);this.hide()}; SQ=function(m,V,O,h,w){qP.call(this,m,{G:"div",X:"ytp-ad-player-overlay-layout",S:[{G:"div",X:"ytp-ad-player-overlay-layout__player-card-container"},{G:"div",X:"ytp-ad-player-overlay-layout__ad-info-container"},{G:"div",X:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{G:"div",X:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",V,O,h);this.L=w;this.iH=this.LA("ytp-ad-player-overlay-layout__player-card-container");this.Z=this.LA("ytp-ad-player-overlay-layout__ad-info-container"); this.V=this.LA("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Ae=this.LA("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; meG=function(m,V,O,h){qP.call(this,m,{G:"div",X:"ytp-ad-grid-card-text",S:[{G:"div",X:"ytp-ad-grid-card-text__metadata",S:[{G:"div",X:"ytp-ad-grid-card-text__metadata__headline"},{G:"div",X:"ytp-ad-grid-card-text__metadata__description",S:[{G:"div",X:"ytp-ad-grid-card-text__metadata__description__line"},{G:"div",X:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{G:"div",X:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",V,O,h);this.headline=new $W(this.api,this.layoutId,this.interactionLoggingClientData, this.sH);g.a(this,this.headline);this.headline.g0(this.LA("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new Nl(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,!0);g.a(this,this.moreInfoButton);this.moreInfoButton.g0(this.LA("ytp-ad-grid-card-text__button"))}; Im=function(m,V,O,h){qP.call(this,m,{G:"div",X:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",V,O,h);this.Z=[]}; eQ=function(m,V,O,h,w,y,L){Pn.call(this,m,y,L,V,O,h,w);this.playerProgressOffsetMs=0;this.L=!1}; VTC=function(m){var V=g.KK("html5-video-player");V&&g.xN(V,"ytp-ad-display-override",m)}; Ov$=function(m,V,O,h,w){eQ.call(this,m,V,O,h,w,{G:"div",X:"ytp-display-underlay-text-grid-cards",S:[{G:"div",X:"ytp-display-underlay-text-grid-cards__content_container",S:[{G:"div",X:"ytp-display-underlay-text-grid-cards__content_container__header",S:[{G:"div",X:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{G:"div",X:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{G:"div",X:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {G:"div",X:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Im(this.api,this.layoutId,this.interactionLoggingClientData,this.sH);g.a(this,this.adGridCardCollection);this.adGridCardCollection.g0(this.LA("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new Nl(this.api,this.layoutId,this.interactionLoggingClientData,this.sH);g.a(this,this.adButton);this.adButton.g0(this.LA("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.D=this.LA("ytp-display-underlay-text-grid-cards__content_container");this.T=this.LA("ytp-display-underlay-text-grid-cards__content_container__header")}; uh=function(m,V,O,h){qP.call(this,m,{G:"div",X:"ytp-ad-details-line"},"ad-details-line",V,O,h);this.Z=[];this.hide()}; zW=function(m,V,O,h){qP.call(this,m,{G:"div",X:"ytp-image-background",S:[{G:"img",X:"ytp-image-background-image"}]},"image-background",V,O,h);this.hide()}; h9U=function(m,V,O,h,w){Pn.call(this,m,{G:"svg",X:"ytp-timed-pie-countdown",B:{viewBox:"0 0 20 20"},S:[{G:"circle",X:"ytp-timed-pie-countdown__background",B:{r:"10",cx:"10",cy:"10"}},{G:"circle",X:"ytp-timed-pie-countdown__inner",B:{r:"5",cx:"10",cy:"10"}},{G:"circle",X:"ytp-timed-pie-countdown__outer",B:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",V,O,h,w);this.D=this.LA("ytp-timed-pie-countdown__inner");this.L=Math.ceil(2*Math.PI*5);this.hide()}; Zy=function(m,V,O,h){qP.call(this,m,{G:"div",X:"ytp-video-interstitial-buttoned-centered-layout",B:{tabindex:"0"},S:[{G:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content",S:[{G:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{G:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",S:[{G:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{G:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {G:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{G:"div",X:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{G:"div",X:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",V,O,h);this.L=null;this.T=this.LA("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.D=new N2;g.a(this,this.D);this.hide()}; wR5=function(m){var V=g.KK("html5-video-player");V&&g.xN(V,"ytp-ad-display-override",m)}; yA1=function(m){if(!m.adAvatar||!g.d(m.adAvatar,F_))return g.kL(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!m.headline)return g.kL(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!m.adBadge||!g.d(m.adBadge,am))return g.kL(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!m.adButton||!g.d(m.adButton,ih))return g.kL(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!m.adInfoRenderer|| !g.d(m.adInfoRenderer,YE))return g.kL(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;m=m.durationMilliseconds||0;return typeof m!=="number"||m<=0?(g.kL(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+m)),!1):!0}; GW=function(m,V){V=V===void 0?2:V;g.yh.call(this);this.api=m;this.Z=null;this.handler=new N2(this);g.a(this,this.handler);this.L=zy1;this.handler.C(this.api,"presentingplayerstatechange",this.CO);this.Z=this.handler.C(this.api,"progresssync",this.Yf);this.Af=V;this.Af===1&&this.Yf()}; pa=function(m,V,O){al.call(this,m);this.api=m;this.sH=V;this.components={};m=new g.p({G:"div",KA:["video-ads","ytp-ad-module"]});g.a(this,m);u0&&g.EM(m.element,"ytp-ads-tiny-mode");this.T=new qH(m.element);g.a(this,this.T);g.ib(this.api,m.element,4);pm(O)&&(O=new g.p({G:"div",KA:["ytp-ad-underlay"]}),g.a(this,O),this.L=new qH(O.element),g.a(this,this.L),g.ib(this.api,O.element,0));g.a(this,RyI())}; jDU=function(m,V){m=g.DE(m.components,V.id,null);m==null&&g.cj(Error("Component not found for element id: "+V.id));return m||null}; LIC=function(m){g.RZ.call(this,m);var V=this;this.L=null;this.created=!1;this.D=m.j().Y("h5_use_refactored_get_ad_break")?new PGp(this.player):new sO(this.player);this.T=function(){if(V.L!=null)return V.L;var h=new jpI({Xl:tS(V.Z).Xl,Us:tS(V.Z).Us,U:V.player,W1:tS(V.Z).W1,qf:V.Z.Z.qf,zZ:tS(V.Z).zZ,xf:V.Z.Z.xf});V.L=h.pO;return V.L}; this.Z=new xum(this.player,this,this.D,this.T);g.a(this,this.Z);var O=m.j();!o2(O)||g.l0(O)||Oh(O)||(g.a(this,new pa(m,tS(this.Z).sH,tS(this.Z).W1)),g.a(this,new R_5(m)))}; JA3=function(m){m.created!==m.loaded&&ER("Created and loaded are out of sync")}; q8C=function(m){g.RZ.prototype.load.call(m);var V=tS(m.Z).W1;try{m.player.getRootNode().classList.add("ad-created")}catch(C){ER(C instanceof Error?C:String(C))}var O=m.player.getVideoData(1),h=O&&O.videoId||"",w=O&&O.getPlayerResponse()||{},y=(w&&w.adPlacements||[]).map(function(C){return C.adPlacementRenderer}),L=((w==null?void 0:w.adSlots)||[]).map(function(C){return g.d(C,Xr)}); w=w.playerConfig&&w.playerConfig.daiConfig&&w.playerConfig.daiConfig.enableDai||!1;O&&O.yp();V=CHa(y,L,V,tS(m.Z).s_);y=O&&O.clientPlaybackNonce||"";O=O&&O.A4||!1;L=1E3*m.player.getDuration(1);EM5(m);m.Z.Z.qP.xl(y,L,O,V.uR,V.E4,V.uR,w,h)}; EM5=function(m){var V,O;if(O=(V=m.player.getVideoData(1))==null||!V.A4)V=m.player.j(),O=o2(V)&&!g.R2(V)&&V.playerStyle==="desktop-polymer";O&&(m=m.player.getInternalApi(),m.addEventListener("updateKevlarOrC3Companion",Q$U),m.addEventListener("updateEngagementPanelAction",vk3),m.addEventListener("changeEngagementPanelVisibility",PFa),window.addEventListener("yt-navigate-start",Vr0))}; Bx=function(m,V){V===m.dn&&(m.dn=void 0)}; MTp=function(m){var V=tS(m.Z).T0,O=V.T().yr("SLOT_TYPE_PLAYER_BYTES",1);V=wk(V.Nf.get(),1).clientPlaybackNonce;var h=!1;O=g.D(O);for(var w=O.next();!w.done;w=O.next()){w=w.value;var y=w.slotType==="SLOT_TYPE_PLAYER_BYTES"&&w.slotEntryTrigger instanceof X1?w.slotEntryTrigger.q$:void 0;y&&y===V&&(h&&ER("More than 1 preroll playerBytes slot detected",w),h=!0)}h||tS(m.Z).iB.jc()}; fdl=function(m){var V="";m=g.D(tS(m.Z).zZ.v7.keys());for(var O=m.next();!O.done;O=m.next()){O=O.value;if(O.slotType==="SLOT_TYPE_PLAYER_BYTES"&&O.aY==="core")return!0;V+=O.slotType+" "}Math.random()<.01&&ER("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:V});return!1}; xe7=function(m){m=g.D(tS(m.Z).zZ.v7.values());for(var V=m.next();!V.done;V=m.next())if(V.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; B50=function(m,V,O,h,w,y,L){O=O===void 0?[]:O;h=h===void 0?"":h;w=w===void 0?"":w;var C=tS(m.Z).W1,E=m.player.getVideoData(1);E&&E.getPlayerResponse();E&&E.yp();O=CHa(V,O,C,tS(m.Z).s_);mqU(tS(m.Z).gB,h,O.uR,O.E4,V,w,y,L)}; CHa=function(m,V,O,h){V={uR:[],E4:V};m=g.D(m);for(var w=m.next();!w.done;w=m.next())if((w=w.value)&&w.renderer!=null){var y=w.renderer;if(!O.U.j().Y("html5_enable_vod_lasr_with_notify_pacf")){var L=void 0,C=void 0,E=void 0,q=void 0,M=h;g.d((q=y.sandwichedLinearAdRenderer)==null?void 0:q.adVideoStart,jR)?(L=g.d((E=y.sandwichedLinearAdRenderer)==null?void 0:E.adVideoStart,jR),L=ffG(L,M),g.SJ(y.sandwichedLinearAdRenderer.adVideoStart,jR,L)):g.d((C=y.linearAdSequenceRenderer)==null?void 0:C.adStart,jR)&& (E=g.d((L=y.linearAdSequenceRenderer)==null?void 0:L.adStart,jR),L=ffG(E,M),g.SJ(y.linearAdSequenceRenderer.adStart,jR,L))}V.uR.push(w)}return V}; g.lh=function(m){if(typeof DOMParser!="undefined")return s0(new DOMParser,fAo(m),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.QX=function(m){g.Z.call(this);this.callback=m;this.Z=new HD(0,0,.4,0,.2,1,1,1);this.delay=new g.PA(this.next,window,this);g.a(this,this.delay)}; g.R9o=function(m){var V=m.j();return V.ma&&!V.D&&g.sY(V)?m.isEmbedsShortsMode()?(m=m.Ad(),Math.min(m.width,m.height)>=315):!m.B2():!1}; g.vx=function(m){g.p.call(this,{G:"div",X:"ytp-more-videos-view",B:{tabIndex:"-1"}});var V=this;this.api=m;this.L=!0;this.D=new g.Rc(this);this.Z=[];this.suggestionData=[];this.columns=this.containerWidth=this.J=this.T=this.scrollPosition=0;this.title=new g.p({G:"h2",X:"ytp-related-title",c6:"{{title}}"});this.previous=new g.p({G:"button",KA:["ytp-button","ytp-previous"],B:{"aria-label":"Mostrar v\u00eddeos sugeridos anteriores"},S:[g.ol()]});this.N=new g.QX(function(O){V.suggestions.element.scrollLeft= -O}); this.next=new g.p({G:"button",KA:["ytp-button","ytp-next"],B:{"aria-label":"Mostrar mais v\u00eddeos sugeridos"},S:[g.gN()]});g.a(this,this.D);this.K=m.j().T;g.a(this,this.title);this.title.g0(this.element);this.suggestions=new g.p({G:"div",X:"ytp-suggestions"});g.a(this,this.suggestions);this.suggestions.g0(this.element);g.a(this,this.previous);this.previous.g0(this.element);this.previous.listen("click",this.xs,this);g.a(this,this.N);oMa(this);g.a(this,this.next);this.next.g0(this.element);this.next.listen("click", this.Bv,this);this.D.C(this.api,"appresize",this.Vp);this.D.C(this.api,"fullscreentoggled",this.EB);this.D.C(this.api,"videodatachange",this.onVideoDataChange);this.Vp(this.api.xN().getPlayerSize());this.onVideoDataChange()}; oMa=function(m){for(var V={IE:0};V.IE<16;V={IE:V.IE},++V.IE){var O=new g.p({G:"a",X:"ytp-suggestion-link",B:{href:"{{link}}",target:m.api.j().Qt,"aria-label":"{{aria_label}}"},S:[{G:"div",X:"ytp-suggestion-image"},{G:"div",X:"ytp-suggestion-overlay",B:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},S:[{G:"div",X:"ytp-suggestion-title",c6:"{{title}}"},{G:"div",X:"ytp-suggestion-author",c6:"{{author_and_views}}"},{G:"div",B:{"data-is-live":"{{is_live}}"},X:"ytp-suggestion-duration", c6:"{{duration}}"}]}]});g.a(m,O);var h=O.LA("ytp-suggestion-link");g.wb(h,"transitionDelay",V.IE/20+"s");m.D.C(h,"click",function(w){return function(y){var L=w.IE;if(m.L){var C=m.suggestionData[L],E=C.sessionData;m.K&&m.api.Y("web_player_log_click_before_generating_ve_conversion_params")?(m.api.logClick(m.Z[L].element),L=C.rd(),C={},g.sc(m.api,C),L=g.N_(L,C),g.Aj(L,m.api,y)):g.gd(y,m.api,m.K,E||void 0)&&m.api.Nb(C.videoId,E,C.playlistId)}else y.preventDefault(),document.activeElement.blur()}}(V)); O.g0(m.suggestions.element);m.Z.push(O);m.api.createServerVe(O.element,O)}}; gMp=function(m){if(m.api.j().Y("web_player_log_click_before_generating_ve_conversion_params"))for(var V=Math.floor(-m.scrollPosition/(m.T+8)),O=Math.min(V+m.columns,m.suggestionData.length)-1;V<=O;V++)m.api.logVisibility(m.Z[V].element,!0)}; g.Px=function(m){var V=m.api.GM()?32:16;V=m.J/2+V;m.next.element.style.bottom=V+"px";m.previous.element.style.bottom=V+"px";V=m.scrollPosition;var O=m.containerWidth-m.suggestionData.length*(m.T+8);g.xN(m.element,"ytp-scroll-min",V>=0);g.xN(m.element,"ytp-scroll-max",V<=O)}; Ue$=function(m){for(var V=m.suggestionData.length,O=0;O>>0)+"_",w=0;return V}); aC("Symbol.iterator",function(m){if(m)return m;m=Symbol("Symbol.iterator");Gl(Array.prototype,m,{configurable:!0,writable:!0,value:function(){return boa(T7l(this))}}); return m}); aC("Promise",function(m){function V(L){this.Z=0;this.D=void 0;this.L=[];this.J=!1;var C=this.T();try{L(C.resolve,C.reject)}catch(E){C.reject(E)}} function O(){this.Z=null} function h(L){return L instanceof V?L:new V(function(C){C(L)})} if(m)return m;O.prototype.L=function(L){if(this.Z==null){this.Z=[];var C=this;this.D(function(){C.K()})}this.Z.push(L)}; var w=g.ip.setTimeout;O.prototype.D=function(L){w(L,0)}; O.prototype.K=function(){for(;this.Z&&this.Z.length;){var L=this.Z;this.Z=[];for(var C=0;C0&&O>0;)if(h[--O]!=V[--w])return!1;return w<=0}}); aC("Array.prototype.find",function(m){return m?m:function(V,O){return nU3(this,V,O).WL}}); aC("Array.prototype.entries",function(m){return m?m:function(){return tG(this,function(V,O){return[V,O]})}}); aC("Array.prototype.keys",function(m){return m?m:function(){return tG(this,function(V){return V})}}); aC("String.prototype.startsWith",function(m){return m?m:function(V,O){var h=dc(this,V,"startsWith");V+="";var w=h.length,y=V.length;O=Math.max(0,Math.min(O|0,h.length));for(var L=0;L=y}}); aC("Number.isFinite",function(m){return m?m:function(V){return typeof V!=="number"?!1:!isNaN(V)&&V!==Infinity&&V!==-Infinity}}); aC("String.prototype.repeat",function(m){return m?m:function(V){var O=dc(this,null,"repeat");if(V<0||V>1342177279)throw new RangeError("Invalid count value");V|=0;for(var h="";V;)if(V&1&&(h+=O),V>>>=1)O+=O;return h}}); aC("Object.entries",function(m){return m?m:function(V){var O=[],h;for(h in V)Q$(V,h)&&O.push([h,V[h]]);return O}}); aC("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); aC("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991}); aC("Array.from",function(m){return m?m:function(V,O,h){O=O!=null?O:function(C){return C}; var w=[],y=typeof Symbol!="undefined"&&Symbol.iterator&&V[Symbol.iterator];if(typeof y=="function"){V=y.call(V);for(var L=0;!(y=V.next()).done;)w.push(O.call(h,y.value,L++))}else for(y=V.length,L=0;L>>0;if(V===0)return 32;var O=0;(V&4294901760)===0&&(V<<=16,O+=16);(V&4278190080)===0&&(V<<=8,O+=8);(V&4026531840)===0&&(V<<=4,O+=4);(V&3221225472)===0&&(V<<=2,O+=2);(V&2147483648)===0&&O++;return O}}); aC("Number.isNaN",function(m){return m?m:function(V){return typeof V==="number"&&isNaN(V)}}); aC("Array.prototype.values",function(m){return m?m:function(){return tG(this,function(V,O){return O})}}); aC("Array.prototype.fill",function(m){return m?m:function(V,O,h){var w=this.length||0;O<0&&(O=Math.max(0,w+O));if(h==null||h>w)h=w;h=Number(h);h<0&&(h=Math.max(0,w+h));for(O=Number(O||0);O0&&O?O.repeat(Math.ceil(V/O.length)).substring(0,V):"")+h}}); aC("Array.prototype.findIndex",function(m){return m?m:function(V,O){return nU3(this,V,O).La}}); aC("Promise.prototype.finally",function(m){return m?m:function(V){return this.then(function(O){return Promise.resolve(V()).then(function(){return O})},function(O){return Promise.resolve(V()).then(function(){throw O; })})}}); aC("Math.imul",function(m){return m?m:function(V,O){V=Number(V);O=Number(O);var h=V&65535,w=O&65535;return h*w+((V>>>16&65535)*w+h*(O>>>16&65535)<<16>>>0)|0}}); aC("Math.sign",function(m){return m?m:function(V){V=Number(V);return V===0||isNaN(V)?V:V>0?1:-1}}); aC("WeakSet",function(m){function V(O){this.Z=new WeakMap;if(O){O=g.D(O);for(var h;!(h=O.next()).done;)this.add(h.value)}} if(function(){if(!m||!Object.seal)return!1;try{var O=Object.seal({}),h=Object.seal({}),w=new m([O]);if(!w.has(O)||w.has(h))return!1;w.delete(O);w.add(h);return!w.has(O)&&w.has(h)}catch(y){return!1}}())return m; V.prototype.add=function(O){this.Z.set(O,!0);return this}; V.prototype.has=function(O){return this.Z.has(O)}; V.prototype.delete=function(O){return this.Z.delete(O)}; return V}); aC("Array.prototype.copyWithin",function(m){function V(O){O=Number(O);return O===Infinity||O===-Infinity?O:O|0} return m?m:function(O,h,w){var y=this.length;O=V(O);h=V(h);w=w===void 0?y:V(w);O=O<0?Math.max(y+O,0):Math.min(O,y);h=h<0?Math.max(y+h,0):Math.min(h,y);w=w<0?Math.max(y+w,0):Math.min(w,y);if(Oh;)--w in this?this[--O]=this[w]:delete this[--O];return this}}); Fa("copyWithin",function(m){return m?m:Array.prototype.copyWithin}); aC("Array.prototype.at",function(m){return m?m:K5}); Fa("at",function(m){return m?m:K5}); aC("String.prototype.at",function(m){return m?m:K5}); aC("Promise.withResolvers",function(m){return m?m:function(){var V,O;return{promise:new Promise(function(h,w){V=h;O=w}), resolve:V,reject:O}}}); aC("Array.prototype.findLastIndex",function(m){return m?m:function(V,O){return S31(this,V,O).La}}); Fa("findLastIndex",function(m){return m?m:function(V,O){return S31(this,V,O).La}}); aC("Number.parseInt",function(m){return m||parseInt});var lg,bz,I1I;lg=lg||{};g.WH=this||self;bz="closure_uid_"+(Math.random()*1E9>>>0);I1I=0;g.Fh(aA,Error);aA.prototype.name="CustomError";var V5a;var io5,Dl,wj;io5=Array.prototype.indexOf?function(m,V){return Array.prototype.indexOf.call(m,V,void 0)}:function(m,V){if(typeof m==="string")return typeof V!=="string"||V.length!=1?-1:m.indexOf(V,0); for(var O=0;O=0;O--)if(O in m&&m[O]===V)return O;return-1}; g.An=Array.prototype.forEach?function(m,V,O){Array.prototype.forEach.call(m,V,O)}:function(m,V,O){for(var h=m.length,w=typeof m==="string"?m.split(""):m,y=0;y=.3:this.MC>=.5};var lX={BIt:0,tIA:1},B4G={NONE:0,HR0:1,sIr:2};var jA0="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Ig.prototype.getValue=function(){return this.L}; g.t(e5,Ig);e5.prototype.D=function(m){this.L===null&&g.kS(this.T,m)&&(this.L=m)}; g.t(uX,Ig);uX.prototype.D=function(m){this.L===null&&typeof m==="number"&&(this.L=m)}; g.t(zx,Ig);zx.prototype.D=function(m){this.L===null&&typeof m==="string"&&(this.L=m)};sm.prototype.disable=function(){this.L=!1}; sm.prototype.enable=function(){this.L=!0}; sm.prototype.isEnabled=function(){return this.L}; sm.prototype.reset=function(){this.Z={};this.L=!0;this.D={}};var jV=document,ax=window;var $eG=YI(1,!0),y1=YI(610401301,!1);YI(899588437,!1);var Y8U=YI(772657768,!0),k23=YI(513659523,!1),rAl=YI(568333945,!0),WjX=YI(1331761403,!1);YI(651175828,!1);YI(722764542,!1);YI(748402145,!1);YI(748402146,!1);var Z23=YI(748402147,!0),m6=YI(824648567,!0),nk=YI(824656860,$eG);YI(333098724,!1);YI(2147483644,!1);YI(2147483645,!1);YI(2147483646,$eG);YI(2147483647,!0);var jv=!!g.$I("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var V1=String.prototype.trim?function(m){return m.trim()}:function(m){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(m)[1]},rGU=/&/g,cG5=//g,Nc5=/"/g,b5o=/'/g,nIG=/\x00/g,kZ$=/[\x00&<>"']/;var L2,cAG=g.WH.navigator;L2=cAG?cAG.userAgentData||null:null;var AGa=globalThis.trustedTypes,Rj;gX.prototype.toString=function(){return this.Z+""};tV.prototype.toString=function(){return this.Z}; var t$l=new tV("about:invalid#zClosurez");var b_C=XC("tel"),DDX=XC("sms"),dAa=[XC("data"),XC("http"),XC("https"),XC("mailto"),XC("ftp"),new WM(function(m){return/^[^:]*([/?#]|$)/.test(m)})],KaU=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;kp.prototype.toString=function(){return this.Z+""};bx.prototype.toString=function(){return this.Z+""};ev.prototype.toString=function(){return this.Z};var zp={};g.Del=String.prototype.repeat?function(m,V){return m.repeat(V)}:function(m,V){return Array(V+1).join(m)};mD[" "]=function(){};var y5,$z,HVp,Nla,bv$,nM3,ed,u0,S8m;g.z7=qi();g.AY=M$X();g.p3=C2("Edge");g.xC=g.p3||g.AY;y5=C2("Gecko")&&!(mg(g.wX(),"WebKit")&&!C2("Edge"))&&!(C2("Trident")||C2("MSIE"))&&!C2("Edge");g.Xm=mg(g.wX(),"WebKit")&&!C2("Edge");$z=PM();HVp=Z5C();g.yJ=zno();Nla=Q1();bv$=C2("iPad");nM3=C2("iPod");ed=vM();u0=mg(g.wX(),"KaiOS"); a:{var IdU="",e9o=function(){var m=g.wX();if(y5)return/rv:([^\);]+)(\)|;)/.exec(m);if(g.p3)return/Edge\/([\d\.]+)/.exec(m);if(g.AY)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(m);if(g.Xm)return/WebKit\/(\S+)/.exec(m);if(g.z7)return/(?:Version)[ \/]?(\S+)/.exec(m)}(); e9o&&(IdU=e9o?e9o[1]:"");if(g.AY){var Vw,uH5=g.WH.document;Vw=uH5?uH5.documentMode:void 0;if(Vw!=null&&Vw>parseFloat(IdU)){S8m=String(Vw);break a}}S8m=IdU}var i5a=S8m,Fa5={};var Ob,h8;g.ot=Mi();Ob=Q1()||C2("iPod");h8=C2("iPad");g.Zj=xAI();g.q3=f2();g.AJ=xp()&&!vM();var Vtm=!g.AY&&!xp();g.U=g.yS.prototype;g.U.clone=function(){return new g.yS(this.x,this.y)}; g.U.equals=function(m){return m instanceof g.yS&&jn(this,m)}; g.U.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.U.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.U.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.U.scale=function(m,V){this.x*=m;this.y*=typeof V==="number"?V:m;return this};g.U=g.LK.prototype;g.U.clone=function(){return new g.LK(this.width,this.height)}; g.U.aspectRatio=function(){return this.width/this.height}; g.U.isEmpty=function(){return!CK(this)}; g.U.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.U.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.U.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.U.scale=function(m,V){this.width*=m;this.height*=typeof V==="number"?V:m;return this};qy.prototype.toString=function(){return this.Z}; var E2={};new qy(E2,"");var Bc1=/^[a-z][a-z\d-]*$/i,lMG="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),vIl="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),m5$=["action","formaction","href"];var O9$={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.U=xc.prototype;g.U.Ir=function(m){return g4(this.Z,m)}; g.U.getElementsByTagName=function(m,V){return(V||this.Z).getElementsByTagName(String(m))}; g.U.LA=function(m){return g.KK(m,this.Z)}; g.U.setProperties=WI;g.U.createElement=function(m){return T3(this.Z,m)}; g.U.appendChild=g.r4;g.U.append=function(m,V){jga(Rx(m),m,arguments,1)}; g.U.canHaveChildren=function(m){if(m.nodeType!=1)return!1;switch(m.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.U.removeNode=g.bN;g.U.getChildren=function(m){return m.children!=void 0?m.children:Array.prototype.filter.call(m.childNodes,function(V){return V.nodeType==1})}; g.U.contains=g.nK;g.U.isFocusable=Ix;z3.prototype.now=function(){return 0}; z3.prototype.L=function(){return 0}; z3.prototype.D=function(){return 0}; z3.prototype.Z=function(){return 0};g.t(Fm,z3);Fm.prototype.now=function(){return Zm()&&ax.performance.now?ax.performance.now():z3.prototype.now.call(this)}; Fm.prototype.L=function(){return Zm()&&ax.performance.memory?ax.performance.memory.totalJSHeapSize||0:z3.prototype.L.call(this)}; Fm.prototype.D=function(){return Zm()&&ax.performance.memory?ax.performance.memory.usedJSHeapSize||0:z3.prototype.D.call(this)}; Fm.prototype.Z=function(){return Zm()&&ax.performance.memory?ax.performance.memory.jsHeapSizeLimit||0:z3.prototype.Z.call(this)};var vw5=function(){if(!g.WH.addEventListener||!Object.defineProperty)return!1;var m=!1,V=Object.defineProperty({},"passive",{get:function(){m=!0}}); try{var O=function(){}; g.WH.addEventListener("test",O,V);g.WH.removeEventListener("test",O,V)}catch(h){}return m}();var PTp=CXa("AnimationEnd"),No=CXa("TransitionEnd");g.U=QS.prototype;g.U.getHeight=function(){return this.bottom-this.top}; g.U.clone=function(){return new QS(this.top,this.right,this.bottom,this.left)}; g.U.contains=function(m){return this&&m?m instanceof QS?m.left>=this.left&&m.right<=this.right&&m.top>=this.top&&m.bottom<=this.bottom:m.x>=this.left&&m.x<=this.right&&m.y>=this.top&&m.y<=this.bottom:!1}; g.U.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.U.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.U.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.U.scale=function(m,V){V=typeof V==="number"?V:m;this.left*=m;this.right*=m;this.top*=V;this.bottom*=V;return this};g.U=g.V5.prototype;g.U.clone=function(){return new g.V5(this.left,this.top,this.width,this.height)}; g.U.contains=function(m){return m instanceof g.yS?m.x>=this.left&&m.x<=this.left+this.width&&m.y>=this.top&&m.y<=this.top+this.height:this.left<=m.left&&this.left+this.width>=m.left+m.width&&this.top<=m.top&&this.top+this.height>=m.top+m.height}; g.U.getSize=function(){return new g.LK(this.width,this.height)}; g.U.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.U.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.U.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.U.scale=function(m,V){V=typeof V==="number"?V:m;this.left*=m;this.width*=m;this.top*=V;this.height*=V;return this};var qm$={};var An$=pK(function(){var m=!1;try{var V=Object.defineProperty({},"passive",{get:function(){m=!0}}); g.WH.addEventListener("test",null,V)}catch(O){}return m});U5X.prototype.isVisible=function(){return db(jV)===1};var X8U=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");TI.prototype.yF=function(m,V,O){m=m+"//"+V+O;var h=rn3(this)-O.length;if(h<0)return"";this.Z.sort(function(q,M){return q-M}); O=null;V="";for(var w=0;w=E.length){h-=E.length;m+=E;V=this.D;break}O=O==null?y:O}}h="";O!=null&&(h=""+V+"trn="+O);return m+h};var fip=NN(function(m){return typeof m==="number"}),qY=NN(function(m){return typeof m==="string"}),xi5=NN(function(m){return typeof m==="boolean"}),vO=NN(function(m){return m!=null&&typeof m==="object"&&typeof m.then==="function"}),c0l=NN(function(m){return typeof m==="function"}),z9a=NN(function(m){return!!m&&(typeof m==="object"||typeof m==="function")});var $57={Yur:"allow-forms",kfH:"allow-modals",MmY:"allow-orientation-lock",olH:"allow-pointer-lock",PXH:"allow-popups",tmr:"allow-popups-to-escape-sandbox",NdS:"allow-presentation",JkY:"allow-same-origin",eiA:"allow-scripts",X7S:"allow-top-navigation",adu:"allow-top-navigation-by-user-activation"},nS7=pK(function(){return YmC()});nF.prototype.setInterval=function(m,V){return ax.setInterval(m,V)}; nF.prototype.clearInterval=function(m){ax.clearInterval(m)}; nF.prototype.setTimeout=function(m,V){return ax.setTimeout(m,V)}; nF.prototype.clearTimeout=function(m){ax.clearTimeout(m)};var Dp=void 0,ci,JkC=typeof TextDecoder!=="undefined",aE3,FA3=typeof String.prototype.isWellFormed==="function",sg3=typeof TextEncoder!=="undefined";var lEl={},F4=null,Qgm=y5||g.Xm||typeof g.WH.btoa=="function";var Lg3=typeof Uint8Array!=="undefined",O2o=!g.AY&&typeof btoa==="function",h3$=/[-_.]/g,mi1={"-":"+",_:"/",".":"="},iw={};ar.prototype.isEmpty=function(){return this.Z==null}; ar.prototype.sizeBytes=function(){var m=lw(this);return m?m.length:0}; var jjp;var JV3=void 0;var OV=typeof Symbol==="function"&&typeof Symbol()==="symbol",Zva=Vp("jas",void 0,!0),ur=Vp(void 0,"1oa"),VI=Vp(void 0,Symbol()),sDI=Vp(void 0,"0ub"),Dip=Vp(void 0,"0ubs"),bKX=Vp(void 0,"0ubsb"),Fgl=Vp(void 0,"0actk"),vN=Vp("m_m","sWe",!0),npU=Vp(void 0,"vps"),FI1=Vp();Math.max.apply(Math,g.b(Object.values({bRH:1,rNH:2,sfN:4,aFe:8,jxS:16,k70:32,wte:64,W1e:128,XhS:256,y_0:512,Ow0:1024,hgS:2048,MuY:4096,CPH:8192})));var Ep5={luu:{value:0,configurable:!0,writable:!0,enumerable:!1}},Cx5=Object.defineProperties,h9=OV?Zva:"luu",K4,ad1=[];yp(ad1,7);K4=Object.freeze(ad1);var PN={},jt={},QjX=Object.freeze({}),b9={},Ck={};var MY=typeof g.WH.BigInt==="function"&&typeof g.WH.BigInt(0)==="bigint";var Go=NN(function(m){return MY?m>=iv1&&m<=G21:m[0]==="-"?R3l(m,pRo):R3l(m,Bl1)}),pRo=Number.MIN_SAFE_INTEGER.toString(),iv1=MY?BigInt(Number.MIN_SAFE_INTEGER):void 0,Bl1=Number.MAX_SAFE_INTEGER.toString(),G21=MY?BigInt(Number.MAX_SAFE_INTEGER):void 0;var hb$=typeof Uint8Array.prototype.slice==="function",xX=0,gV=0,nc$;var zo=typeof BigInt==="function"?BigInt.asIntN:void 0,TX5=typeof BigInt==="function"?BigInt.asUintN:void 0,i5=Number.isSafeInteger,rV=Number.isFinite,aQ=Math.trunc,AVl=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var S03={};var ldl={UUe:!0};var yI;var Iil,e37;var my5=fk(0),PS={};gB.prototype.init=function(m,V,O,h){var w=h===void 0?{}:h;h=w.qF===void 0?!1:w.qF;w=w.Jp===void 0?!1:w.Jp;this.qF=h;this.Jp=w;m&&(m=oy(m,this.Jp),this.L=m.buffer,this.K=m.Z,this.T=V||0,this.D=O!==void 0?this.T+O:this.L.length,this.Z=this.T)}; gB.prototype.free=function(){this.clear();Tj.length<100&&Tj.push(this)}; gB.prototype.clear=function(){this.L=null;this.K=!1;this.Z=this.D=this.T=0;this.qF=!1}; gB.prototype.reset=function(){this.Z=this.T}; var Tj=[];$w.prototype.free=function(){this.Z.clear();this.L=this.D=-1;Yw.length<100&&Yw.push(this)}; $w.prototype.reset=function(){this.Z.reset();this.T=this.Z.Z;this.L=this.D=-1}; var Yw=[];var Mna,xyC;Iy.prototype.length=function(){return this.Z.length}; Iy.prototype.end=function(){var m=this.Z;this.Z=[];return m};var Gj=ay(),QD0=ay(),vM0=ay(),PH$=ay(),md3=ay(),VK7=ay(),OgU=ay(),hm0=ay(),wa0=ay(),yeI=ay(),jN$=ay();i9.prototype.toJSON=function(){return JU(this)}; i9.prototype.W2=function(m){return JSON.stringify(JU(this,m))}; i9.prototype.clone=function(){var m=this.Sz,V=m[h9]|0;return Mc(this,m,V)?f4(this,m,!0):new this.constructor(qc(m,V,!1))}; i9.prototype[vN]=PN;i9.prototype.toString=function(){return this.Sz.toString()};var XIX=Bi(function(m,V,O,h,w){if(m.L!==2)return!1;rB(m,zS(V,h,O),w);return!0},WDC),HKI=Bi(function(m,V,O,h,w){if(m.L!==2)return!1; rB(m,zS(V,h,O),w);return!0},WDC),yu=Symbol(),m5=Symbol(),hE=Symbol(),ck$=Symbol(),Y20=Symbol(),l9,Qd;var LX7=fk(0),Je1=JE(function(m,V,O){if(m.L!==1)return!1;E9(V,O,Xf(m.Z));return!0},q_,wa0),CVX=JE(function(m,V,O){if(m.L!==1)return!1; m=Xf(m.Z);E9(V,O,m===0?void 0:m);return!0},q_,wa0),Et$=JE(function(m,V,O,h){if(m.L!==1)return!1; Is(V,O,h,Xf(m.Z));return!0},q_,wa0),q1G=JE(function(m,V,O){if(m6)return m.L!==0?m=!1:(E9(V,O,UA(m.Z,HN)),m=!0),m; if(m.L!==0)return!1;E9(V,O,UA(m.Z,WN));return!0},M_,OgU),MK$=JE(function(m,V,O){if(m6)return m.L!==0?V=!1:(m=UA(m.Z,HN),E9(V,O,m===LX7?void 0:m),V=!0),V; if(m.L!==0)return!1;m=UA(m.Z,WN);E9(V,O,m===0?void 0:m);return!0},M_,OgU),foI=JE(function(m,V,O,h){if(m6)return m.L!==0?m=!1:(Is(V,O,h,UA(m.Z,HN)),m=!0),m; if(m.L!==0)return!1;Is(V,O,h,UA(m.Z,WN));return!0},M_,OgU),xda=JE(function(m,V,O){if(m.L!==0)return!1; E9(V,O,dB(m.Z));return!0},f6,PH$),Rm$=JE(function(m,V,O){if(m.L!==0)return!1; m=dB(m.Z);E9(V,O,m===0?void 0:m);return!0},f6,PH$),oto=JE(function(m,V,O,h){if(m.L!==0)return!1; Is(V,O,h,dB(m.Z));return!0},f6,PH$),gt$=JE(function(m,V,O){if(m6)return m.L!==1?m=!1:(E9(V,O,Wi(m.Z)),m=!0),m; if(m.L!==1)return!1;E9(V,O,Kx(m.Z));return!0},function(m,V,O){dym(m,O,$ip(V))},hm0),Aeo=C6(function(m,V,O){if(m6)return m.L!==1&&m.L!==2?m=!1:(V=D2(V,V[h9]|0,O),m.L==2?Ec5(m,Wi,V):V.push(Wi(m.Z)),m=!0),m; if(m.L!==1&&m.L!==2)return!1;V=D2(V,V[h9]|0,O);m.L==2?Ec5(m,Kx,V):V.push(Kx(m.Z));return!0},function(m,V,O){V=L6($ip,V,!1); if(V!=null)for(var h=0;h>>0);return!0},function(m,V,O){V=b5(V); V!=null&&V!=null&&(sA(m,O,0),u9(m.Z,V))},md3),LA=JE(function(m,V,O){if(m.L!==0)return!1; E9(V,O,dB(m.Z));return!0},function(m,V,O){V=NY(V); V!=null&&(V=parseInt(V,10),sA(m,O,0),ocG(m.Z,V))},jN$);var umo=new Map;g.t(zb7,q2C);sx7.prototype.register=function(){mD(this)};g.t(oq,i9);oq.prototype.D=am7([0,CVX,MK$,-2,Rm$]);pIU.prototype.lH=function(m){var V=this.Z[m.key];if(m.valueType==="proto"){try{var O=JSON.parse(V);if(Array.isArray(O))return O}catch(h){}return m.defaultValue}return typeof V===typeof m.defaultValue?V:m.defaultValue};var lmG={ujH:1,v_:2,HdH:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};vc0.prototype.MB=function(m){if(typeof m==="string"&&m.length!=0){var V=this.vB;if(V.L){m=m.split("&");for(var O=m.length-1;O>=0;O--){var h=m[O].split("="),w=decodeURIComponent(h[0]);h.length>1?(h=decodeURIComponent(h[1]),h=/^[0-9]+$/g.exec(h)?parseInt(h,10):h):h=1;(w=V.Z[w])&&w.D(h)}}}};var J7=null;var K6=g.WH.performance,Tnm=!!(K6&&K6.mark&&K6.measure&&K6.clearMarks),dP=pK(function(){var m;if(m=Tnm){var V=V===void 0?window:V;if(J7===null){J7="";try{m="";try{m=V.top.location.hash}catch(h){m=V.location.hash}if(m){var O=m.match(/\bdeid=([\d,]+)/);J7=O?O[1]:""}}catch(h){}}V=J7;m=!!V.indexOf&&V.indexOf("1337")>=0}return m}); tE.prototype.disable=function(){this.Z=!1;this.events!==this.L.google_js_reporting_queue&&(dP()&&g.An(this.events,wup),this.events.length=0)}; tE.prototype.start=function(m,V){if(!this.Z)return null;var O=OFC()||VL5();m=new heC(m,V,O);V="goog_"+m.label+"_"+m.uniqueId+"_start";K6&&dP()&&K6.mark(V);return m}; tE.prototype.end=function(m){if(this.Z&&typeof m.value==="number"){var V=OFC()||VL5();m.duration=V-m.value;V="goog_"+m.label+"_"+m.uniqueId+"_end";K6&&dP()&&K6.mark(V);!this.Z||this.events.length>2048||this.events.push(m)}};var yQ1=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Su=/#|$/,qS3=/[?&]($|#)/;fl$.prototype.ZA=function(m,V,O,h,w){w=w||this.jQ;try{var y=new TI;y.Z.push(1);y.L[1]=$i("context",m);V.error&&V.meta&&V.id||(V=new s9(FA(V)));if(V.msg){var L=V.msg.substring(0,512);y.Z.push(2);y.L[2]=$i("msg",L)}var C=V.meta||{};if(this.GX)try{this.GX(C)}catch(R){}if(h)try{h(C)}catch(R){}h=[C];y.Z.push(3);y.L[3]=h;var E=TZ$();if(E.L){var q=E.L.url||"";y.Z.push(4);y.L[4]=$i("top",q)}var M={url:E.Z.url||""};if(E.Z.url){var f=g.XA(E.Z.url);var x=WG(f[1],null,f[3],f[4])}else x="";q=[M,{url:x}];y.Z.push(5); y.L[5]=q;PNG(this.Z,w,y,O)}catch(R){try{PNG(this.Z,w,{context:"ecmserr",rctx:m,msg:FA(R),url:E&&E.Z.url},O)}catch(A){}}return this.OR}; g.t(s9,mN7);var zU,ZV,uR=new tE;zU=new function(){var m="https:";ax&&ax.location&&ax.location.protocol==="http:"&&(m="http:");this.L=m;this.Z=.01}; ZV=new fl$;ax&&ax.document&&(ax.document.readyState=="complete"?Rea():uR.Z&&US(ax,"load",function(){Rea()}));var AQI=Date.now(),Qu=-1,BG=-1,ko7,vG=-1,lR=!1;PG.prototype.equals=function(m,V){return!!m&&(!(V===void 0?0:V)||this.volume==m.volume)&&this.D==m.D&&PI(this.Z,m.Z)&&!0};mE.prototype.Ir=function(){return this.J}; mE.prototype.equals=function(m,V){return this.T.equals(m.T,V===void 0?!1:V)&&this.J==m.J&&PI(this.D,m.D)&&PI(this.N,m.N)&&this.Z==m.Z&&this.K==m.K&&this.L==m.L&&this.V==m.V};var $dU={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},ha={d3:"start",KO:"firstquartile",r6:"midpoint",Ll:"thirdquartile",COMPLETE:"complete",ERROR:"error",s9:"metric",PAUSE:"pause",u9:"resume",c_:"skip",g3:"viewable_impression",w6:"mute",zn:"unmute",Hv:"fullscreen",vv:"exitfullscreen",u3:"bufferstart",Z$:"bufferfinish",Ud:"fully_viewable_audible_half_duration_impression",O9:"measurable_impression",BE:"abandon",gg:"engagedview",FM:"impression",LO:"creativeview",LOADED:"loaded", mXe:"progress",CLOSE:"close",sSH:"collapse",pUt:"overlay_resize",C50:"overlay_unmeasurable_impression",BQH:"overlay_unviewable_impression",jDN:"overlay_viewable_immediate_impression",x2H:"overlay_viewable_end_of_session_impression",D$:"custom_metric_viewable",nW:"audio_audible",WE:"audio_measurable",Sq:"audio_impression"},z63="start firstquartile midpoint thirdquartile resume loaded".split(" "),Z4p=["start","firstquartile","midpoint","thirdquartile"],c95=["abandon"],WF={UNKNOWN:-1,d3:0,KO:1,r6:2, Ll:3,COMPLETE:4,s9:5,PAUSE:6,u9:7,c_:8,g3:9,w6:10,zn:11,Hv:12,vv:13,Ud:14,O9:15,BE:16,gg:17,FM:18,LO:19,LOADED:20,D$:21,u3:22,Z$:23,Sq:27,WE:28,nW:29};var dNa={Gfz:"addEventListener",bwY:"getMaxSize",whz:"getScreenSize",phA:"getState",CCr:"getVersion",XMe:"removeEventListener",wPu:"isViewable"};$N$.prototype.update=function(m){m&&m.document&&(this.J=V0(!1,m,this.isMobileDevice),this.Z=V0(!0,m,this.isMobileDevice),kIo(this,m),YSl(this,m))};Jg.prototype.cancel=function(){SL().clearTimeout(this.Z);this.Z=null}; Jg.prototype.schedule=function(){var m=this,V=SL(),O=U9().Z.Z;this.Z=V.setTimeout(gP(O,iR(143,function(){m.L++;m.D.sample()})),UNa())};g.U=CT.prototype;g.U.OM=function(){return!1}; g.U.initialize=function(){return this.isInitialized=!0}; g.U.rJ=function(){return this.Z.iH}; g.U.xT=function(){return this.Z.Zu}; g.U.fail=function(m,V){if(!this.Zu||(V===void 0?0:V))this.Zu=!0,this.iH=m,this.V=0,this.Z!=this||qf(this)}; g.U.getName=function(){return this.Z.fA}; g.U.b0=function(){return this.Z.qD()}; g.U.qD=function(){return{}}; g.U.Yd=function(){return this.Z.V}; g.U.OE=function(){var m=y0();m.Z=V0(!0,this.D,m.isMobileDevice)}; g.U.sE=function(){YSl(y0(),this.D)}; g.U.wf=function(){return this.T.Z}; g.U.sample=function(){}; g.U.isActive=function(){return this.Z.N}; g.U.QL=function(m){var V=this.Z;this.Z=m.Yd()>=this.V?m:this;V!==this.Z?(this.N=this.Z.N,qf(this)):this.N!==this.Z.N&&(this.N=this.Z.N,qf(this))}; g.U.RW=function(m){if(m.L===this.Z){var V=!this.T.equals(m,this.Qt);this.T=m;V&&DN1(this)}}; g.U.Eo=function(){return this.Qt}; g.U.dispose=function(){this.v6=!0}; g.U.UH=function(){return this.v6};g.U=Mf.prototype;g.U.observe=function(){return!0}; g.U.unobserve=function(){}; g.U.Yj=function(m){this.K=m}; g.U.dispose=function(){if(!this.UH()){var m=this.L;g.Om(m.K,this);m.Qt&&this.Eo()&&cQa(m);this.unobserve();this.mS=!0}}; g.U.UH=function(){return this.mS}; g.U.b0=function(){return this.L.b0()}; g.U.Yd=function(){return this.L.Yd()}; g.U.rJ=function(){return this.L.rJ()}; g.U.xT=function(){return this.L.xT()}; g.U.QL=function(){}; g.U.RW=function(){this.KQ()}; g.U.Eo=function(){return this.v6};g.U=xl.prototype;g.U.Yd=function(){return this.Z.Yd()}; g.U.rJ=function(){return this.Z.rJ()}; g.U.xT=function(){return this.Z.xT()}; g.U.create=function(m,V,O){var h=null;this.Z&&(h=this.CH(m,V,O),Ek(this.Z,h));return h}; g.U.rp=function(){return this.sM()}; g.U.sM=function(){return!1}; g.U.init=function(m){return this.Z.initialize()?(Ek(this.Z,this),this.T=m,!0):!1}; g.U.QL=function(m){m.Yd()==0&&this.T(m.rJ(),this)}; g.U.RW=function(){}; g.U.Eo=function(){return!1}; g.U.dispose=function(){this.K=!0}; g.U.UH=function(){return this.K}; g.U.b0=function(){return{}};Rd.prototype.add=function(m,V,O){++this.D;m=new bF$(m,V,O);this.Z.push(new bF$(m.L,m.Z,m.D+this.D/4096));this.L=!0;return this};u4l.prototype.toString=function(){var m="//pagead2.googlesyndication.com//pagead/gen_204",V=gj(this.Z);V.length>0&&(m+="?"+V);return m};g.Z.prototype.Wj=!1;g.Z.prototype.UH=function(){return this.Wj}; g.Z.prototype.dispose=function(){this.Wj||(this.Wj=!0,this.d0())}; g.Z.prototype[Symbol.dispose]=function(){this.dispose()}; g.Z.prototype.addOnDisposeCallback=function(m,V){this.Wj?V!==void 0?m.call(V):m():(this.uc||(this.uc=[]),V&&(m=m.bind(V)),this.uc.push(m))}; g.Z.prototype.d0=function(){if(this.uc)for(;this.uc.length;)this.uc.shift()()};var Y1G=[0,q1G,UdC,-1];dj.prototype.update=function(m,V,O){m&&(this.Z+=V,this.L+=V,this.T+=V,this.D=Math.max(this.D,this.T));if(O===void 0?!m:O)this.T=0};var alp=[1,.75,.5,.3,0];tg.prototype.update=function(m,V,O,h,w,y){y=y===void 0?!0:y;V=w?Math.min(m,V):V;for(w=0;w0&&V>=L;L=!(m>0&&m>=L)||O;this.Z[w].update(y&&C,h,!y||L)}};$l.prototype.update=function(m,V,O,h){this.J=this.J!=-1?Math.min(this.J,V.MC):V.MC;this.Ae=Math.max(this.Ae,V.MC);this.mS=this.mS!=-1?Math.min(this.mS,V.xc):V.xc;this.iH=Math.max(this.iH,V.xc);this.nA.update(V.xc,O.xc,V.Z,m,h);this.H6+=m;V.MC===0&&(this.fA+=m);this.L.update(V.MC,O.MC,V.Z,m,h);O=h||O.x9!=V.x9?O.isVisible()&&V.isVisible():O.isVisible();V=!V.isVisible()||V.Z;this.Je.update(O,m,V)}; $l.prototype.xd=function(){return this.Je.D>=this.pA};if(jV&&jV.URL){var ktG=jV.URL,re0;a:{if(ktG){var cel=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var CA=cel.exec(decodeURIComponent(ktG));if(CA){re0=CA[1]&&CA[1].length>1?CA[1].substring(1):"true";break a}}catch(m){}}re0=""}ZV.OR=!(re0.length>0)};var Dd0=new QS(0,0,0,0);var Pwp=new QS(0,0,0,0);g.t(DL,g.Z);g.U=DL.prototype; g.U.d0=function(){if(this.Gd.Z){if(this.gb.Tg){var m=this.Gd.Z;typeof m.removeEventListener==="function"&&m.removeEventListener("mouseover",this.gb.Tg,AQ());this.gb.Tg=null}this.gb.zg&&(m=this.Gd.Z,typeof m.removeEventListener==="function"&&m.removeEventListener("mouseout",this.gb.zg,AQ()),this.gb.zg=null)}this.rO&&this.rO.dispose();this.Pe&&this.Pe.dispose();delete this.iE;delete this.uY;delete this.GH;delete this.Gd.fV;delete this.Gd.Z;delete this.gb;delete this.rO;delete this.Pe;delete this.vB; g.Z.prototype.d0.call(this)}; g.U.Er=function(){return this.Pe?this.Pe.Z:this.position}; g.U.MB=function(m){U9().MB(m)}; g.U.Eo=function(){return!1}; g.U.Dl=function(){return new $l}; g.U.aK=function(){return this.iE}; g.U.kY=function(m){return hw3(this,m,1E4)}; g.U.oY=function(m,V,O,h,w,y,L){this.LV||(this.WS&&(m=this.YC(m,O,w,L),h=h&&this.In.MC>=(this.x9()?.3:.5),this.qs(y,m,h),this.Rx=V,m.MC>0&&-1===this.wm&&(this.wm=V),this.nx==-1&&this.xd()&&(this.nx=V),this.Wb==-2&&(this.Wb=rj(this.Er())?m.MC:-1),this.In=m),this.uY(this))}; g.U.qs=function(m,V,O){this.aK().update(m,V,this.In,O)}; g.U.I5=function(){return new dZ}; g.U.YC=function(m,V,O,h){O=this.I5();O.Z=V;V=SL().L;V=db(jV)===0?-1:V.isVisible()?0:1;O.L=V;O.MC=this.n8(m);O.x9=this.x9();O.xc=h;return O}; g.U.n8=function(m){return this.opacity===0&&iX(this.vB,"opac")===1?0:m}; g.U.x9=function(){return!1}; g.U.Kv=function(){return this.d8e||this.D8N}; g.U.zU=function(){p6()}; g.U.Wr=function(){p6()}; g.U.K7=function(){return this.requestSource}; g.U.xQ=function(){return 0}; g.U.xd=function(){return this.iE.xd()}; g.U.BX=function(){var m=this.WS;m=(this.hasCompleted||this.UH())&&!m;var V=U9().L!==2||this.oZr;return this.LV||V&&m?2:this.xd()?4:3}; g.U.WZ=function(){return 0};g.bA.prototype.next=function(){return g.EQ}; g.EQ={done:!0,value:void 0};g.bA.prototype.bC=function(){return this};g.t(C57,dZ);var qr=qVX([void 0,1,2,3,4,8,16]),Mr=qVX([void 0,4,8,16]),NnI={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:eV("p0",Mr),p1:eV("p1",Mr),p2:eV("p2",Mr),p3:eV("p3",Mr),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Id("mtos1",[0,2,4],!1,Mr),mtos2:Id("mtos2",[0,2,4],!1,Mr),mtos3:Id("mtos3",[0,2,4],!1,Mr),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:eV("a0",Mr),a1:eV("a1",Mr),a2:eV("a2",Mr),a3:eV("a3",Mr),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:eV("c0",Mr),c1:eV("c1",Mr),c2:eV("c2",Mr),c3:eV("c3",Mr),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:eV("qmtos",qr),qnc:eV("qnc",qr),qmv:eV("qmv",qr),qnv:eV("qnv",qr), 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:eV("ss0",Mr),ss1:eV("ss1",Mr),ss2:eV("ss2",Mr),ss3:eV("ss3",Mr),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",tm:"tm",tu:"tu"},bgm=Object.assign({},NnI,{avid:iN("audio"),avas:"avas",vs:"vs"}),ntU={atos:"atos",avt:Id("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(m,V){return function(O){return O[m]===void 0&&V!==void 0?V:O[m]}}("ss",0), t:"t"};sk.prototype.getValue=function(){return this.L}; sk.prototype.update=function(m,V){m>=32||(this.Z&1<=.5;hg(V.volume)&&(this.T=this.T!=-1?Math.min(this.T,V.volume):V.volume,this.N=Math.max(this.N,V.volume));y&&(this.v6+=m,this.Qt+=w?m:0);this.Z.update(V.MC,O.MC,V.Z,m,h,w);this.D.update(!0,m);this.K.update(w,m);this.Zu.update(O.fullscreen,m);this.W6.update(w&&!y,m);m=Math.floor(V.mediaTime/1E3);this.EH.update(m,V.isVisible());this.CA.update(m,V.MC>=1);this.Xr.update(m, SV(V))}};gXG.prototype.L=function(m){this.D||(this.Z(m)?(m=Yvo(this.Qt,this.T,m),this.K|=m,m=m==0):m=!1,this.D=m)};g.t(iA,gXG);iA.prototype.Z=function(){return!0}; iA.prototype.N=function(){return!1}; iA.prototype.getId=function(){var m=this,V=rZ(ha,function(O){return O==m.T}); return WF[V].toString()}; iA.prototype.toString=function(){var m="";this.N()&&(m+="c");this.D&&(m+="s");this.K>0&&(m+=":"+this.K);return this.getId()+m};g.t(G6,iA);G6.prototype.L=function(m,V){V=V===void 0?null:V;V!=null&&this.J.push(V);iA.prototype.L.call(this,m)};g.t(pT,A90);pT.prototype.L=function(){return null}; pT.prototype.D=function(){return[]};g.t(BV,Mf);g.U=BV.prototype;g.U.Pw=function(){if(this.element){var m=this.element,V=this.L.Z.D;try{try{var O=Xu$(m.getBoundingClientRect())}catch(q){O=new QS(0,0,0,0)}var h=O.right-O.left,w=O.bottom-O.top,y=Ro0(m,V),L=y.x,C=y.y;var E=new QS(Math.round(C),Math.round(L+h),Math.round(C+w),Math.round(L))}catch(q){E=Dd0.clone()}this.D=E;this.Z=Nbl(this,this.D)}}; g.U.jE=function(){this.N=this.L.T.Z}; g.U.Ow=function(m){var V=iX(this.vB,"od")==1;return vi7(m,this.N,this.element,V)}; g.U.Vb=function(){this.timestamp=p6()}; g.U.KQ=function(){this.Vb();this.Pw();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var m=this.element;var V=new g.LK(m.videoWidth,m.videoHeight);m=this.Z;var O=vI(m),h=m.getHeight(),w=V.width;V=V.height;w<=0||V<=0||O<=0||h<=0||(w/=V,V=O/h,m=m.clone(),w>V?(O/=w,h=(h-O)/2,h>0&&(h=m.top+h,m.top=Math.round(h),m.bottom=Math.round(h+O))):(h*=w,O=Math.round((O-h)/2),O>0&&(O=m.left+O,m.left=Math.round(O),m.right=Math.round(O+h))));this.Z=m}this.jE(); m=this.Z;O=this.N;m=m.left<=O.right&&O.left<=m.right&&m.top<=O.bottom&&O.top<=m.bottom?new QS(Math.max(m.top,O.top),Math.min(m.right,O.right),Math.min(m.bottom,O.bottom),Math.max(m.left,O.left)):new QS(0,0,0,0);O=m.top>=m.bottom||m.left>=m.right?new QS(0,0,0,0):m;m=this.L.T;V=w=h=0;if((this.Z.bottom-this.Z.top)*(this.Z.right-this.Z.left)>0)if(this.Ow(O))O=new QS(0,0,0,0);else{h=y0().T;V=new QS(0,h.height,h.width,0);var y;h=cV(O,(y=this.K)!=null?y:this.Z);w=cV(O,y0().Z);V=cV(O,V)}y=O.top>=O.bottom|| O.left>=O.right?new QS(0,0,0,0):m4(O,-this.Z.left,-this.Z.top);LT()||(w=h=0);this.Qt=new mE(m,this.element,this.Z,y,h,w,this.timestamp,V)}; g.U.getName=function(){return this.L.getName()};var S15=new QS(0,0,0,0);g.t(lA,BV);g.U=lA.prototype;g.U.observe=function(){this.T();return!0}; g.U.RW=function(){BV.prototype.KQ.call(this)}; g.U.Vb=function(){}; g.U.Pw=function(){}; g.U.KQ=function(){this.T();BV.prototype.KQ.call(this)}; g.U.QL=function(m){m=m.isActive();m!==this.V&&(m?this.T():(y0().Z=new QS(0,0,0,0),this.Z=new QS(0,0,0,0),this.N=new QS(0,0,0,0),this.timestamp=-1));this.V=m};var fA={},YV0=(fA.firstquartile=0,fA.midpoint=1,fA.thirdquartile=2,fA.complete=3,fA);g.t(vV,DL);g.U=vV.prototype;g.U.Eo=function(){return!0}; g.U.kq=function(){return this.oS==2}; g.U.kY=function(m){return hw3(this,m,Math.max(1E4,this.D/3))}; g.U.oY=function(m,V,O,h,w,y,L){var C=this,E=this.J(this)||{};g.S5(E,w);this.D=E.duration||this.D;this.Qt=E.isVpaid||this.Qt;this.fA=E.isYouTube||this.fA;SL();this.nA=!1;w=dY5(this,V);UYa(this)===1&&(y=w);DL.prototype.oY.call(this,m,V,O,h,E,y,L);this.ST&&this.ST.D&&g.An(this.N,function(q){q.L(C)})}; g.U.qs=function(m,V,O){DL.prototype.qs.call(this,m,V,O);V6(this).update(m,V,this.In,O);this.pA=SV(this.In)&&SV(V);this.iH==-1&&this.CA&&(this.iH=this.aK().D.Z);this.XG.D=0;m=this.xd();V.isVisible()&&ZL(this.XG,"vs");m&&ZL(this.XG,"vw");hg(V.volume)&&ZL(this.XG,"am");SV(V)?ZL(this.XG,"a"):ZL(this.XG,"mut");this.vr&&ZL(this.XG,"f");V.L!=-1&&(ZL(this.XG,"bm"),V.L==1&&(ZL(this.XG,"b"),SV(V)&&ZL(this.XG,"umutb")));SV(V)&&V.isVisible()&&ZL(this.XG,"avs");this.pA&&m&&ZL(this.XG,"avw");V.MC>0&&ZL(this.XG, "pv");ON(this,this.aK().D.Z,!0)&&ZL(this.XG,"gdr");HV(this.aK().L,1)>=2E3&&ZL(this.XG,"pmx");this.nA&&ZL(this.XG,"tvoff")}; g.U.Dl=function(){return new Fv}; g.U.aK=function(){return this.iE}; g.U.I5=function(){return new C57}; g.U.YC=function(m,V,O,h){m=DL.prototype.YC.call(this,m,V,O,h===void 0?-1:h);m.fullscreen=this.vr;m.paused=this.kq();m.volume=O.volume;hg(m.volume)||(this.Aj++,V=this.In,hg(V.volume)&&(m.volume=V.volume));O=O.currentTime;m.mediaTime=O!==void 0&&O>=0?O:-1;return m}; g.U.n8=function(m){return y0(),this.vr?1:DL.prototype.n8.call(this,m)}; g.U.xQ=function(){return 1}; g.U.getDuration=function(){return this.D}; g.U.BX=function(){return this.LV?2:KpI(this)?5:this.xd()?4:3}; g.U.WZ=function(){return this.W6?this.aK().K.D>=2E3?4:3:2}; g.U.Yj=function(m){this.Pe&&this.Pe.Yj(m)};var Iol=g.uz();uYp.prototype.reset=function(){this.Z=[];this.L=[]}; var Ja=bw(uYp);g.t(qh,xl);g.U=qh.prototype;g.U.getName=function(){return(this.L?this.L:this.Z).getName()}; g.U.b0=function(){return(this.L?this.L:this.Z).b0()}; g.U.Yd=function(){return(this.L?this.L:this.Z).Yd()}; g.U.init=function(m){var V=!1;(0,g.An)(this.D,function(O){O.initialize()&&(V=!0)}); V&&(this.T=m,Ek(this.Z,this));return V}; g.U.dispose=function(){(0,g.An)(this.D,function(m){m.dispose()}); xl.prototype.dispose.call(this)}; g.U.rp=function(){return wj(this.D,function(m){return m.OM()})}; g.U.sM=function(){return wj(this.D,function(m){return m.OM()})}; g.U.CH=function(m,V,O){return new BV(m,this.Z,V,O)}; g.U.RW=function(m){this.L=m.L};var BVG={threshold:[0,.3,.5,.75,1]};g.t(Mh,BV);g.U=Mh.prototype;g.U.observe=function(){var m=this;this.Ae||(this.Ae=p6());if(gio(298,function(){return lc7(m)}))return!0; this.L.fail("msf");return!1}; g.U.unobserve=function(){if(this.T&&this.element)try{this.T.unobserve(this.element),this.V?(this.V.unobserve(this.element),this.V=null):this.J&&(this.J.disconnect(),this.J=null)}catch(m){}}; g.U.KQ=function(){var m=fU(this);m.length>0&&xe(this,m);BV.prototype.KQ.call(this)}; g.U.Pw=function(){}; g.U.Ow=function(){return!1}; g.U.jE=function(){}; g.U.b0=function(){var m={};return Object.assign(this.L.b0(),(m.niot_obs=this.Ae,m.niot_cbk=this.Zu,m))}; g.U.getName=function(){return"nio"};g.t(RI,xl);RI.prototype.getName=function(){return"nio"}; RI.prototype.sM=function(){return!y0().L&&this.Z.Z.D.IntersectionObserver!=null}; RI.prototype.CH=function(m,V,O){return new Mh(m,this.Z,V,O)};g.t(oI,CT);oI.prototype.wf=function(){return y0().Z}; oI.prototype.OM=function(){var m=vX$();this.V!==m&&(this.Z!=this&&m>this.Z.V&&(this.Z=this,qf(this)),this.V=m);return m==2};gv.prototype.sample=function(){dv(this,CU(),!1)}; gv.prototype.T=function(){var m=LT(),V=p6();m?(lR||(Qu=V,g.An(Ja.Z,function(O){var h=O.aK();h.Mf=ad(h,V,O.oS!=1)})),lR=!0):(this.J=h6p(this,V),lR=!1,ko7=V,g.An(Ja.Z,function(O){O.WS&&(O.aK().V=V)})); dv(this,CU(),!m)}; var Aa=bw(gv);var yUl=null,BF="",pU=!1;var JU5=LRU().YQ,KU=LRU().MX;var qvC={NVu:"visible",c70:"audible",Fyr:"time",fNN:"timetype"},Mq5={visible:function(m){return/^(100|[0-9]{1,2})$/.test(m)}, audible:function(m){return m=="0"||m=="1"}, timetype:function(m){return m=="mtos"||m=="tos"}, time:function(m){return/^(100|[0-9]{1,2})%$/.test(m)||/^([0-9])+ms$/.test(m)}}; EdI.prototype.setTime=function(m,V,O){V=="ms"?(this.D=m,this.T=-1):(this.D=-1,this.T=m);this.K=O===void 0?"tos":O;return this};g.t(Ti,iA);Ti.prototype.getId=function(){return this.J}; Ti.prototype.N=function(){return!0}; Ti.prototype.Z=function(m){var V=m.aK(),O=m.getDuration();return wj(this.V,function(h){if(h.Z!=void 0)var w=xcl(h,V);else b:{switch(h.K){case "mtos":w=h.L?V.K.D:V.D.Z;break b;case "tos":w=h.L?V.K.Z:V.D.Z;break b}w=0}w==0?h=!1:(h=h.D!=-1?h.D:O!==void 0&&O>0?h.T*O:-1,h=h!=-1&&w>=h);return h})};g.t($e,fco);$e.prototype.Z=function(m){var V=new Mt1;V.Z=z6(m,NnI);V.L=z6(m,ntU);return V};g.t(Nh,iA);Nh.prototype.Z=function(m){return KpI(m)};g.t(b1,A90);g.t(nU,iA);nU.prototype.Z=function(m){return m.aK().xd()};g.t(Sh,G6);Sh.prototype.Z=function(m){var V=g.vH(this.J,iX(U9().vB,"ovms"));return!m.LV&&(m.oS!=0||V)};g.t(II,b1);II.prototype.L=function(){return new Sh(this.Z)}; II.prototype.D=function(){return[new nU("viewable_impression",this.Z),new Nh(this.Z)]};g.t(eh,lA);eh.prototype.T=function(){var m=g.$I("ima.admob.getViewability"),V=iX(this.vB,"queryid");typeof m==="function"&&V&&m(V)}; eh.prototype.getName=function(){return"gsv"};g.t(u1,xl);u1.prototype.getName=function(){return"gsv"}; u1.prototype.sM=function(){var m=y0();U9();return m.L&&!1}; u1.prototype.CH=function(m,V,O){return new eh(this.Z,V,O)};g.t(zi,lA);zi.prototype.T=function(){var m=this,V=g.$I("ima.bridge.getNativeViewability"),O=iX(this.vB,"queryid");typeof V==="function"&&O&&V(O,function(h){g.c8(h)&&m.J++;var w=h.opt_nativeViewVisibleBounds||{},y=h.opt_nativeViewHidden;m.Z=HFX(h.opt_nativeViewBounds||{});var L=m.L.T;L.Z=y?S15.clone():HFX(w);m.timestamp=h.opt_nativeTime||-1;y0().Z=L.Z;h=h.opt_nativeVolume;h!==void 0&&(L.volume=h)})}; zi.prototype.getName=function(){return"nis"};g.t(Zk,xl);Zk.prototype.getName=function(){return"nis"}; Zk.prototype.sM=function(){var m=y0();U9();return m.L&&!1}; Zk.prototype.CH=function(m,V,O){return new zi(this.Z,V,O)};g.t(sN,CT);g.U=sN.prototype;g.U.OM=function(){return this.L.Jt!=null}; g.U.qD=function(){var m={};this.EH&&(m.mraid=this.EH);this.mS&&(m.mlc=1);m.mtop=this.L.h5t;this.J&&(m.mse=this.J);this.H6&&(m.msc=1);m.mcp=this.L.compatibility;return m}; g.U.cA=function(m){var V=g.AG.apply(1,arguments);try{return this.L.Jt[m].apply(this.L.Jt,V)}catch(O){GU(538,O,.01,function(h){h.method=m})}}; g.U.initialize=function(){var m=this;if(this.isInitialized)return!this.xT();this.isInitialized=!0;if(this.L.compatibility===2)return this.J="ng",this.fail("w"),!1;if(this.L.compatibility===1)return this.J="mm",this.fail("w"),!1;y0().V=!0;this.D.document.readyState&&this.D.document.readyState=="complete"?AUU(this):kl(this.D,"load",function(){SL().setTimeout(iR(292,function(){return AUU(m)}),100)},292); return!0}; g.U.OE=function(){var m=y0(),V=WRp(this,"getMaxSize");m.Z=new QS(0,V.width,V.height,0)}; g.U.sE=function(){y0().T=WRp(this,"getScreenSize")}; g.U.dispose=function(){dco(this);CT.prototype.dispose.call(this)};var em0=new function(m,V){this.key=m;this.defaultValue=V===void 0?!1:V;this.valueType="boolean"}("45378663");g.U=aI.prototype;g.U.HZ=function(m){Nf(m,!1);Fpa(m)}; g.U.yB=function(){}; g.U.Va=function(m,V,O,h){var w=this;m=new vV(ax,m,O?V:-1,7,this.LZ(),this.qS());m.Tf=h;Lap(m.vB);ag(m.vB,"queryid",m.Tf);m.MB("");jQl(m,function(){return w.S9.apply(w,g.b(g.AG.apply(0,arguments)))},function(){return w.N0S.apply(w,g.b(g.AG.apply(0,arguments)))}); (h=bw(EN).Z)&&OkG(m,h);this.D&&(m.Yj(this.D),this.D=null);m.Gd.fV&&bw(P5p);return m}; g.U.QL=function(m){switch(m.Yd()){case 0:if(m=bw(EN).Z)m=m.Z,g.Om(m.K,this),m.Qt&&this.Eo()&&cQa(m);Gi();break;case 2:UN()}}; g.U.RW=function(){}; g.U.Eo=function(){return!1}; g.U.N0S=function(m,V){m.LV=!0;switch(m.xQ()){case 1:kS$(m,V);break;case 2:this.BK(m)}}; g.U.w6A=function(m){var V=m.J(m);V&&(V=V.volume,m.W6=hg(V)&&V>0);HkC(m,0);return wv(m,"start",LT())}; g.U.AD=function(m,V,O){dv(Aa,[m],!LT());return this.jP(m,V,O)}; g.U.jP=function(m,V,O){return wv(m,O,LT())}; g.U.auz=function(m){return PF(m,"firstquartile",1)}; g.U.sYz=function(m){m.CA=!0;return PF(m,"midpoint",2)}; g.U.p6r=function(m){return PF(m,"thirdquartile",3)}; g.U.Jeu=function(m){var V=PF(m,"complete",4);PV(m);return V}; g.U.eru=function(m){m.oS=3;return wv(m,"error",LT())}; g.U.e8=function(m,V,O){V=LT();if(m.kq()&&!V){var h=m.aK(),w=p6();h.V=w}dv(Aa,[m],!V);m.kq()&&(m.oS=1);return wv(m,O,V)}; g.U.bAY=function(m,V){V=this.AD(m,V||{},"skip");PV(m);return V}; g.U.OAt=function(m,V){Nf(m,!0);return this.AD(m,V||{},"fullscreen")}; g.U.X6r=function(m,V){Nf(m,!1);return this.AD(m,V||{},"exitfullscreen")}; g.U.KD=function(m,V,O){V=m.aK();var h=p6();V.Mf=ad(V,h,m.oS!=1);dv(Aa,[m],!LT());m.oS==1&&(m.oS=2);return wv(m,O,LT())}; g.U.reS=function(m){dv(Aa,[m],!LT());return m.L()}; g.U.Bn=function(m){dv(Aa,[m],!LT());this.F9(m);PV(m);return m.L()}; g.U.S9=function(){}; g.U.BK=function(){}; g.U.F9=function(){}; g.U.wp=function(){}; g.U.D6=function(){}; g.U.qS=function(){this.Z||(this.Z=this.D6());return this.Z==null?new pT:new II(this.Z)}; g.U.LZ=function(){return new $e};g.t(mo,iA);mo.prototype.Z=function(m){return m.WZ()==4};g.t(VQ,G6);VQ.prototype.Z=function(m){m=m.WZ();return m==3||m==4};g.t(Ow,b1);Ow.prototype.L=function(){return new VQ(this.Z)}; Ow.prototype.D=function(){return[new mo(this.Z)]};g.t(hH,fco);hH.prototype.Z=function(m){m&&(m.e===28&&(m=Object.assign({},m,{avas:3})),m.vs===4||m.vs===5)&&(m=Object.assign({},m,{vs:3}));var V=new Mt1;V.Z=z6(m,bgm);V.L=z6(m,ntU);return V};Ny1.prototype.L=function(){return g.$I(this.Z)};g.t(wD,aI);g.U=wD.prototype;g.U.yB=function(m,V){var O=this,h=bw(EN);if(h.Z!=null)switch(h.Z.getName()){case "nis":var w=I2X(this,m,V);break;case "gsv":w=SvX(this,m,V);break;case "exc":w=e6m(this,m)}w||(V.opt_overlayAdElement?w=void 0:V.opt_adElement&&(w=cUl(this,m,V.opt_adElement,V.opt_osdId)));w&&w.xQ()==1&&(w.J==g.G3&&(w.J=function(y){return O.wp(y)}),nd5(this,w,V)); return w}; g.U.wp=function(m){m.L=0;m.v6=0;if(m.T=="h"||m.T=="n"){U9();m.Xr&&(U9(),Q6(this)!="h"&&Q6(this));var V=g.$I("ima.common.getVideoMetadata");if(typeof V==="function")try{var O=V(m.Tf)}catch(w){m.L|=4}else m.L|=2}else if(m.T=="b")if(V=g.$I("ytads.bulleit.getVideoMetadata"),typeof V==="function")try{O=V(m.Tf)}catch(w){m.L|=4}else m.L|=2;else if(m.T=="ml")if(V=g.$I("ima.common.getVideoMetadata"),typeof V==="function")try{O=V(m.Tf)}catch(w){m.L|=4}else m.L|=2;else m.L|=1;m.L||(O===void 0?m.L|=8:O===null? m.L|=16:g.c8(O)?m.L|=32:O.errorCode!=null&&(m.v6=O.errorCode,m.L|=64));O==null&&(O={});V=O;m.V=0;for(var h in $dU)V[h]==null&&(m.V|=$dU[h]);Dc1(V,"currentTime");Dc1(V,"duration");hg(O.volume)&&hg()&&(O.volume*=NaN);return O}; g.U.D6=function(){U9();Q6(this)!="h"&&Q6(this);var m=uV7(this);return m!=null?new Ny1(m):null}; g.U.BK=function(m){!m.Z&&m.LV&&vF(this,m,"overlay_unmeasurable_impression")&&(m.Z=!0)}; g.U.F9=function(m){m.mR&&(m.xd()?vF(this,m,"overlay_viewable_end_of_session_impression"):vF(this,m,"overlay_unviewable_impression"),m.mR=!1)}; g.U.S9=function(){}; g.U.Va=function(m,V,O,h){if(U9().flags.lH(em0)){var w=iX(U9().vB,"mm"),y={};(w=(y[AE.VM]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",y[AE.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",y)[w])&&FRm(this,w);this.T==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&GU(1044,Error())}m=aI.prototype.Va.call(this,m,V,O,h);this.K&&(V=this.N,m.K==null&&(m.K=new Lp$),V.Z[m.Tf]=m.K,m.K.K=Iol);return m}; g.U.HZ=function(m){m&&m.xQ()==1&&this.K&&delete this.N.Z[m.Tf];return aI.prototype.HZ.call(this,m)}; g.U.qS=function(){this.Z||(this.Z=this.D6());return this.Z==null?new pT:this.T==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Ow(this.Z):new II(this.Z)}; g.U.LZ=function(){return this.T==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new hH:new $e}; g.U.Yj=function(m,V,O,h,w){V=new QS(O,V+h,O+w,V);(m=LU(Ja,m))?m.Yj(V):this.D=V}; var uzp=aq(193,i4G,void 0,rUp);g.TZ("Goog_AdSense_Lidar_sendVastEvent",uzp);var zm7=iR(194,function(m,V){V=V===void 0?{}:V;m=ssC(bw(wD),m,V);return a2U(m)}); g.TZ("Goog_AdSense_Lidar_getViewability",zm7);var Zg5=aq(195,function(){return upU()}); g.TZ("Goog_AdSense_Lidar_getUrlSignalsArray",Zg5);var sNX=iR(196,function(){return JSON.stringify(upU())}); g.TZ("Goog_AdSense_Lidar_getUrlSignalsList",sNX);var ByI=g.BX(["//ep2.adtrafficquality.google/sodar/",""]),l2$=g.BX(["//tpc.googlesyndication.com/sodar/",""]);g.t(Lb,Error);g.t(Ew,g.Z);Ew.prototype.e_=function(){return this.wpc.f()}; Ew.prototype.uD=function(m){this.wpc.c(m)}; Ew.prototype.J3=function(m){return this.wpc.m(m05(m))}; Ew.prototype.pF=function(m){return this.wpc.mws(m05(m))}; g.t(JH,g.Z);JH.prototype.snapshot=function(m){return this.jK.s(Object.assign({},m.kQ&&{c:m.kQ},m.aM&&{s:m.aM},m.rP!==void 0&&{p:m.rP}))}; JH.prototype.dR=function(m){this.jK.e(m)}; JH.prototype.g1=function(){return this.jK.l()};g.t(MQ,g.Z);MQ.prototype.share=function(){if(this.UH())throw Error("E:AD");this.L++;return this}; MQ.prototype.dispose=function(){--this.L||g.Z.prototype.dispose.call(this)};jyl.prototype.FU=function(m,V){this.Z.FU("/client_streamz/bg/frs",m,V)}; Lxm.prototype.FU=function(m,V,O,h,w,y){this.Z.FU("/client_streamz/bg/wrl",m,V,O,h,w,y)}; JzC.prototype.qC=function(m,V){this.Z.SR("/client_streamz/bg/ec",m,V)}; C9p.prototype.FU=function(m,V,O){this.Z.FU("/client_streamz/bg/el",m,V,O)}; Ewl.prototype.qC=function(m,V){this.Z.SR("/client_streamz/bg/cec",m,V)}; qAo.prototype.qC=function(m,V){this.Z.SR("/client_streamz/bg/po/csc",m,V)}; Mo5.prototype.qC=function(m,V){this.Z.SR("/client_streamz/bg/po/ctav",m,V)}; fpI.prototype.qC=function(m,V){this.Z.SR("/client_streamz/bg/po/cwsc",m,V)};g.t(x0C,i9);g.t(Rh,i9);var Kb=[1,2,3];var FXU=[0,Kb,WXa,oto,tK5];var aoG=[0,h7,[0,Je1,q1G]];g.t(oh,i9);var tH=[1,2,3];var igo=[0,tH,foI,Et$,yw,aoG];g.t(gD,i9);var Gtm=[0,h7,FXU,igo];var pa5=[0,OQ];g.t(AH,i9);var BnU=[0,OQ,-1,dd0];var lo$=[0,OQ,-1,xda,dd0];g.t(Uw,i9);var ip7=[1,2,3];var QNC=[0,ip7,yw,BnU,yw,lo$,yw,pa5];g.t(dD,i9);dD.prototype.Ur=function(){var m=HS(this,3,l5,3,!0);J9(m);return m[void 0]};dD.prototype.D=am7([0,OQ,QNC,KXX,h7,Gtm,gt$,Aeo]);g.t(ow$,i9);g.U=W6.prototype;g.U.isEnabled=function(){if(!g.WH.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{m3:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.U.set=function(m,V,O){var h=!1;if(typeof O==="object"){var w=O.sameSite;h=O.secure||!1;var y=O.domain||void 0;var L=O.path||void 0;var C=O.m3}if(/[;=\s]/.test(m))throw Error('Invalid cookie name "'+m+'"');if(/[;\r\n]/.test(V))throw Error('Invalid cookie value "'+V+'"');C===void 0&&(C=-1);O=y?";domain="+y:"";L=L?";path="+L:"";h=h?";secure":"";C=C<0?"":C==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+C*1E3)).toUTCString();this.Z.cookie=m+"="+V+O+L+C+h+(w!=null? ";samesite="+w:"")}; g.U.get=function(m,V){for(var O=m+"=",h=(this.Z.cookie||"").split(";"),w=0,y;w=0;V--)this.remove(m[V])}; var zm=new W6(typeof document=="undefined"?null:document);Tb.prototype.compress=function(m){var V,O,h,w;return g.u(function(y){switch(y.Z){case 1:return V=new CompressionStream("gzip"),O=(new Response(V.readable)).arrayBuffer(),h=V.writable.getWriter(),g.I(y,h.write((new TextEncoder).encode(m)),2);case 2:return g.I(y,h.close(),3);case 3:return w=Uint8Array,g.I(y,O,4);case 4:return y.return(new w(y.L))}})}; Tb.prototype.isSupported=function(m){return m<1024?!1:typeof CompressionStream!=="undefined"};g.t($r,i9);Yr.prototype.setInterval=function(m){this.intervalMs=m;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; Yr.prototype.start=function(){var m=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){m.tick()},this.intervalMs),this.L=this.Z())}; Yr.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; Yr.prototype.tick=function(){var m=this;if(this.enabled){var V=Math.max(this.Z()-this.L,0);V0?O:void 0));O=dy(O,4,Dc(w>0?w:void 0));O=dy(O,5,Dc(y>0?y:void 0));w=O.Sz;y=w[h9]|0;O=Lk(O,y)?O:Mc(O,w,y)?f4(O,w):new O.constructor(qc(w,y,!0));ir(L,g.c6,10,O)}L=this.Z.clone();O=Date.now().toString();L=dy(L,4,FY(O));m=GS(L,u8,3,m.slice());h&&(L=new kr,h=dy(L,13,Dc(h)),L= new rD,h=ir(L,kr,2,h),L=new e_,h=ir(L,rD,1,h),h=wB(h,2,9),ir(m,e_,18,h));V&&Vd(m,14,V);return m};g.i8.prototype.L=0;g.i8.prototype.reset=function(){this.Z=this.D=this.T;this.L=0}; g.i8.prototype.getValue=function(){return this.D};g.t(xT,i9);var vtC=Rq(xT);g.t(ZKX,i9);var xO;xO=new sx7;g.t(l8,g.Z);g.U=l8.prototype;g.U.d0=function(){B6(this);this.L.stop();this.EH.stop();g.Z.prototype.d0.call(this)}; g.U.dispatch=function(m){if(m instanceof u8)this.log(m);else try{var V=new u8,O=m.W2();var h=OA(V,8,O);this.log(h)}catch(w){QQ(this,4,1)}}; g.U.log=function(m){QQ(this,2,1);if(this.H6){m=m.clone();var V=this.Je++;m=Vd(m,21,V);this.componentId&&OA(m,26,this.componentId);V=m;var O=AU(V,1);var h=h===void 0?!1:h;var w=typeof O;h=O==null?O:w==="bigint"?String(zo(64,O)):cN(O)?w==="string"?St(O):h?Zc(O):sV(O):void 0;h==null&&(h=Date.now(),h=Number.isFinite(h)?h.toString():"0",dy(V,1,FY(h)));(nk?XMI(AU(V,15,void 0,void 0,pk)):XMI(AU(V,15)))!=null||Vd(V,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(h=this.experimentIds.clone(),ir(V, $r,16,h));QQ(this,1,1);V=this.Z.length-1E3+1;V>0&&(this.Z.splice(0,V),this.T+=V,QQ(this,3,V));this.Z.push(m);this.BS||this.L.enabled||this.L.start()}}; g.U.flush=function(m,V){var O=this;if(this.Z.length===0)m&&m();else if(this.iH&&this.Zu)this.D.L=3,zDX(this);else{var h=Date.now();if(this.Mf>h&&this.v60&&(O.v6=Date.now(),O.Mf=O.v6+x);x=ZM(VI);var K;OV&&x&&((K=R.Sz[x])==null?void 0:K[175237375])!=null&&Pu(sDI,3);a:{var X=X===void 0?!1:X;if(ZM(FI1)&&ZM(VI)&&void 0===FI1){K=R.Sz;x=K[VI];if(!x)break a;if(x=x.Am)try{x(K,175237375,ldl);break a}catch(c){eL(c)}}X&&(X=R.Sz, (K=ZM(VI))&&K in X&&(X=X[K])&&delete X[175237375])}X=xO.Z?xO.L(R,xO.Z,175237375,xO.D):xO.L(R,175237375,null,xO.D);if(X=X===null?void 0:X)X=g.BS(X,1,-1),X!==-1&&(O.K=new g.i8(X<1?1:X,3E5,.1),O.L.setInterval(O.K.getValue()))}}m&&m();O.N=0},M=function(x,R){var A=as(y,u8,3); var K=Number(Vnm(y,14));g.Gb(O.K);O.L.setInterval(O.K.getValue());x===401&&L&&(O.fA=L);K&&(O.T+=K);R===void 0&&(R=O.isRetryable(x));R&&(O.Z=A.concat(O.Z),O.BS||O.L.enabled||O.L.start());QQ(O,7,1);V&&V("net-send-failed",x);++O.N},f=function(){O.network&&O.network.send(E,q,M)}; C?C.then(function(x){QQ(O,5,w);E.requestHeaders["Content-Encoding"]="gzip";E.requestHeaders["Content-Type"]="application/binary";E.body=x;E.x$=2;f()},function(){QQ(O,6,w); f()}):f()}}}}; g.U.isRetryable=function(m){return 500<=m&&m<600||m===401||m===0};v6.prototype.send=function(m,V,O){var h=this,w,y,L,C,E,q,M,f,x,R;return g.u(function(A){switch(A.Z){case 1:return y=(w=h.qQ?new AbortController:void 0)?setTimeout(function(){w.abort()},m.timeoutMillis):void 0,g.JG(A,2,3),L=Object.assign({},{method:m.requestType, headers:Object.assign({},m.requestHeaders)},m.body&&{body:m.body},m.withCredentials&&{credentials:"include"},{signal:m.timeoutMillis&&w?w.signal:null}),g.I(A,fetch(m.url,L),5);case 5:C=A.L;if(C.status!==200){(E=O)==null||E(C.status);A.Te(3);break}if((q=V)==null){A.Te(7);break}return g.I(A,C.text(),8);case 8:q(A.L);case 7:case 3:g.MA(A);clearTimeout(y);g.f5(A,0);break;case 2:M=g.qA(A);switch((f=M)==null?void 0:f.name){case "AbortError":(x=O)==null||x(408);break;default:(R=O)==null||R(400)}A.Te(3)}})}; v6.prototype.UL=function(){return 4};g.t(P6,g.Z);P6.prototype.EF=function(){this.T=!0;return this}; P6.prototype.build=function(){this.network||(this.network=new v6);var m=new l8({logSource:this.logSource,Jo:this.Jo?this.Jo:$0l,sessionIndex:this.sessionIndex,Vie:this.fQ,Co:this.D,BS:!1,EF:this.T,s4:this.s4,network:this.network});g.a(this,m);if(this.buildLabel){var V=this.buildLabel,O=ah(m.D);OA(O,7,V)}m.J=new Tb;this.componentId&&(m.componentId=this.componentId);this.al&&(m.al=this.al);this.pageId&&(m.pageId=this.pageId);this.Z&&((O=this.Z)?(m.experimentIds||(m.experimentIds=new $r),V=m.experimentIds, O=O.W2(),OA(V,4,O)):m.experimentIds&&dy(m.experimentIds,4));this.L&&(m.iH=m.Zu);nw7(m.D);this.network.Ut&&this.network.Ut(this.logSource);this.network.Bye&&this.network.Bye(m);return m};g.t(m3,g.Z);m3.prototype.flush=function(m){m=m||[];if(m.length){for(var V=new ow$,O=[],h=0;h-1?(V=m[L],O||(V.xv=!1)):(V=new BBo(V,this.src,y,!!h,w),V.xv=O,m.push(V));return V}; g.U.remove=function(m,V,O,h){m=m.toString();if(!(m in this.listeners))return!1;var w=this.listeners[m];V=q1(w,V,O,h);return V>-1?(JP(w[V]),g.Vg(w,V),w.length==0&&(delete this.listeners[m],this.Z--),!0):!1}; g.U.removeAll=function(m){m=m&&m.toString();var V=0,O;for(O in this.listeners)if(!m||O==m){for(var h=this.listeners[O],w=0;w-1?m[w]:null}; g.U.hasListener=function(m,V){var O=m!==void 0,h=O?m.toString():"",w=V!==void 0;return g.RC(this.listeners,function(y){for(var L=0;L>>0);g.Fh(g.dw,g.Z);g.dw.prototype[Gj1]=!0;g.U=g.dw.prototype;g.U.addEventListener=function(m,V,O,h){g.ft(this,m,V,O,h)}; g.U.removeEventListener=function(m,V,O,h){O6p(this,m,V,O,h)}; g.U.dispatchEvent=function(m){var V=this.gT;if(V){var O=[];for(var h=1;V;V=V.gT)O.push(V),++h}V=this.FX;h=m.type||m;if(typeof m==="string")m=new g.yc(m,V);else if(m instanceof g.yc)m.target=m.target||V;else{var w=m;m=new g.yc(h,V);g.S5(m,w)}w=!0;var y;if(O)for(y=O.length-1;!m.L&&y>=0;y--){var L=m.currentTarget=O[y];w=tP(L,h,!0,m)&&w}m.L||(L=m.currentTarget=V,w=tP(L,h,!0,m)&&w,m.L||(w=tP(L,h,!1,m)&&w));if(O)for(y=0;!m.L&&y0){this.L--;var m=this.Z;this.Z=m.next;m.next=null}else m=this.D();return m};var XJ;T0.prototype.add=function(m,V){var O=JEl.get();O.set(m,V);this.L?this.L.next=O:this.Z=O;this.L=O}; T0.prototype.remove=function(){var m=null;this.Z&&(m=this.Z,this.Z=this.Z.next,this.Z||(this.L=null),m.next=null);return m}; var JEl=new Kt(function(){return new $x},function(m){return m.reset()}); $x.prototype.set=function(m,V){this.Z=m;this.scope=V;this.next=null}; $x.prototype.reset=function(){this.next=this.scope=this.Z=null};var Yx,kx=!1,jqX=new T0;CRI.prototype.reset=function(){this.context=this.L=this.D=this.Z=null;this.T=!1}; var ET$=new Kt(function(){return new CRI},function(m){m.reset()}); g.DA.prototype.then=function(m,V,O){return U_p(this,WU(typeof m==="function"?m:null),WU(typeof V==="function"?V:null),O)}; g.DA.prototype.$goog_Thenable=!0;g.U=g.DA.prototype;g.U.finally=function(m){var V=this;m=WU(m);return new g.DA(function(O,h){x_C(V,function(w){m();O(w)},function(w){m(); h(w)})})}; g.U.dI=function(m,V){return U_p(this,null,WU(m),V)}; g.U.catch=g.DA.prototype.dI;g.U.cancel=function(m){if(this.Z==0){var V=new eX(m);g.rw(function(){R1X(this,V)},this)}}; g.U.X1f=function(m){this.Z=0;cU(this,2,m)}; g.U.aMz=function(m){this.Z=0;cU(this,3,m)}; g.U.iV=function(){for(var m;m=oT$(this);)gTC(this,m,this.Z,this.J);this.N=!1}; var W51=eL;g.Fh(eX,aA);eX.prototype.name="cancel";g.Fh(g.ug,g.dw);g.U=g.ug.prototype;g.U.enabled=!1;g.U.b2=null;g.U.setInterval=function(m){this.QD=m;this.b2&&this.enabled?(this.stop(),this.start()):this.b2&&this.stop()}; g.U.ULN=function(){if(this.enabled){var m=g.uz()-this.WJ;m>0&&m0&&(this.getStatus(),this.N=setTimeout(this.lf.bind(this), this.Zu)),this.getStatus(),this.Qt=!0,this.Z.send(m),this.Qt=!1}catch(L){this.getStatus(),e1C(this,L)}}; g.U.lf=function(){typeof lg!="undefined"&&this.Z&&(this.T="Timed out after "+this.Zu+"ms, aborting",this.L=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.U.abort=function(m){this.Z&&this.D&&(this.getStatus(),this.D=!1,this.K=!0,this.Z.abort(),this.K=!1,this.L=m||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),BU(this))}; g.U.d0=function(){this.Z&&(this.D&&(this.D=!1,this.K=!0,this.Z.abort(),this.K=!1),BU(this,!0));g.pt.jW.d0.call(this)}; g.U.q7=function(){this.UH()||(this.mS||this.Qt||this.K?uAo(this):this.KX6())}; g.U.KX6=function(){uAo(this)}; g.U.isActive=function(){return!!this.Z}; g.U.isComplete=function(){return g.Qc(this)==4}; g.U.getStatus=function(){try{return g.Qc(this)>2?this.Z.status:-1}catch(m){return-1}}; g.U.getResponseHeader=function(m){if(this.Z&&this.isComplete())return m=this.Z.getResponseHeader(m),m===null?void 0:m}; g.U.getLastError=function(){return typeof this.T==="string"?this.T:String(this.T)};Oe.prototype.send=function(m,V,O){V=V===void 0?function(){}:V; O=O===void 0?function(){}:O; S9l(m.url,function(h){h=h.target;vU(h)?V(g.PU(h)):O(h.getStatus())},m.requestType,m.body,m.requestHeaders,m.timeoutMillis,m.withCredentials)}; Oe.prototype.UL=function(){return 1};wq.prototype.done=function(){this.logger.c9(this.event,hD()-this.startTime)}; g.t(yq,MQ);g.t(LC,yq);g.U=LC.prototype;g.U.Pk=function(){}; g.U.ZN=function(){}; g.U.c9=function(){}; g.U.Mz=function(){}; g.U.Hf=function(){}; g.U.tV=function(m,V,O,h){return h}; g.U.cQ=function(){}; g.U.ZV=function(){}; g.U.A1=function(){}; g.t(JD,yq);g.U=JD.prototype;g.U.update=function(m){this.logger.dispose();this.logger=m}; g.U.ZN=function(m){this.logger.ZN(m)}; g.U.c9=function(m,V){this.logger.c9(m,V)}; g.U.Mz=function(m){this.logger.Mz(m)}; g.U.Hf=function(){this.logger.Hf()}; g.U.tV=function(m,V,O,h){return this.logger.tV(m,V,O,h)}; g.U.cQ=function(m){this.logger.cQ(m)}; g.U.ZV=function(m){this.logger.ZV(m)}; g.U.A1=function(m){this.logger.A1(m)}; g.U.Pk=function(m){this.logger.Pk(m)}; g.t(F5I,g.Z);g.t(CC,yq);g.U=CC.prototype;g.U.Pk=function(m){this.metrics.Rde.FU(m,this.uX)}; g.U.ZN=function(m){this.metrics.eventCount.qC(m,this.uX)}; g.U.c9=function(m,V){this.metrics.TN.FU(V,m,this.uX)}; g.U.Mz=function(m){this.metrics.errorCount.qC(m,this.uX)}; g.U.tV=function(m,V,O,h){function w(C){if(!y.UH()){var E=hD()-L;y.metrics.Akr.FU(E,m,O,C,V,y.uX)}} var y=this,L=hD();h.then(function(){return void w(0)},function(C){return void w(C instanceof FJ?C.code:-1)}); return h}; g.U.cQ=function(m){this.metrics.dnS.qC(m,this.uX)}; g.U.ZV=function(m){this.metrics.VH.qC(m,this.uX)}; g.U.A1=function(m){this.metrics.ckt.qC(m,this.uX)}; g.t(Ee,CC);Ee.prototype.Hf=function(){aV5(this.Z)};g.t(qO,i9);g.t(MO,i9);g.t(fC,i9);var wVX=Rq(fC),GU1=function(m){return NN(function(V){return V instanceof m&&!Lk(V)})}(fC); fC.messageId="bfkj";g.t(qQ,i9);g.t(xs,i9);var pG1=Rq(xs);g.t(o4,g.Z);o4.prototype.snapshot=function(m){if(this.UH())throw Error("Already disposed");this.logger.ZN("n");var V=this.logger.share();return this.D.then(function(O){var h=O.aG;return new Promise(function(w){var y=new wq(V,"n");h(function(L){y.done();V.Pk(L.length);V.Hf();V.dispose();w(L)},[m.kQ, m.aM,m.O7,m.rP])})})}; o4.prototype.Tb=function(m){var V=this;if(this.UH())throw Error("Already disposed");this.logger.ZN("n");var O=jb(this.logger,function(){return V.T([m.kQ,m.aM,m.O7,m.rP])},"n"); this.logger.Pk(O.length);this.logger.Hf();return O}; o4.prototype.dR=function(m){this.D.then(function(V){var O;(O=V.k6H)==null||O(m)})}; o4.prototype.g1=function(){return this.logger.share()};g.t(Ue,i9);g.t(dq,i9);tD.prototype.NG=function(m){return Jg3(this,m,new LC,0)};g.t(KC,g.Z);g.U=KC.prototype;g.U.snapshot=function(m){var V=this;return g.u(function(O){switch(O.Z){case 1:if(V.UH())throw Error("Already disposed");if(V.L||V.J){O.Te(2);break}return g.I(O,V.K.promise,2);case 2:if(!V.L){O.Te(4);break}return g.I(O,V.L.snapshot(m),5);case 5:return O.return(O.L);case 4:throw V.J;}})}; g.U.pause=function(){this.UH()||this.isPaused||(this.isPaused=!0,this.Z&&this.Z.pause())}; g.U.resume=function(){!this.UH()&&this.isPaused&&(this.isPaused=!1,this.Z&&this.Z.resume())}; g.U.checkForRefresh=function(){var m=this;return g.u(function(V){if(m.UH())throw Error("Already disposed");var O;if(O=m.Z)O=m.Z,O.isExpired()?(TG(O),O.W9(0),O=!0):O=!1,O=!O;return O?V.Te(0):g.I(V,m.D.promise,0)})}; g.U.dR=function(m){var V,O;(V=this.L)==null||(O=V.dR)==null||O.call(V,m)}; g.U.handleError=function(m){if(!this.UH()){this.J=m;this.K.resolve();var V,O;(O=(V=this.options).nfH)==null||O.call(V,m)}}; g.U.g1=function(){return this.logger.share()}; var qk7={usS:432E5,Mp:3E5,Vx:10,g2:1E4,Uj:3E4,YUt:3E4,Vtf:6E4,L0:1E3,dK:6E4,Dp:6E5,Ip:.25,cV:2,maxAttempts:10};H3.prototype.pause=function(){this.isPaused||(this.isPaused=!0,TG(this))}; H3.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())}; H3.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var VGh,tV5=(VGh=Math.imul)!=null?VGh:function(m,V){return m*V|0},Ys=[196, 200,224,18];ks.prototype.W2=function(){return String(this.Z)+","+this.L.join()}; ks.prototype.Xs=function(m,V){var O=void 0;if(this.L[this.Z]!==m){var h=this.L.indexOf(m);h!==-1?(this.L.splice(h,1),h0;)V[O++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(m%62),m=Math.floor(m/62);return V.join("")}};g.t(c3,g.Z);c3.prototype.pF=function(m,V){var O=this.J3(m);V==null||V(O);return jb(this.logger,function(){return g.zI(O,2)},this.L)}; g.t(bL,c3);bL.prototype.J3=function(m,V){var O=this;this.logger.ZN(this.Z);++this.K>=this.N&&this.D.resolve();var h=m();m=jb(this.logger,function(){return O.T(h)},"C"); if(m===void 0)throw new Lb(17,"YNJ:Undefined");if(!(m instanceof Uint8Array))throw new Lb(18,"ODM:Invalid");V==null||V(m);return m}; g.t(nC,c3);nC.prototype.J3=function(){return this.T}; g.t(Sb,c3);Sb.prototype.J3=function(){var m=this;return jb(this.logger,function(){return sS(m.T)},"d")}; Sb.prototype.pF=function(){return this.T}; g.t(I4,c3);I4.prototype.J3=function(){if(this.T)return this.T;this.T=bT3(this,function(m){return"_"+Njo(m)}); return bT3(this,function(m){return m})}; g.t(uL,c3);uL.prototype.J3=function(){var m=Math.floor(Date.now()/1E3),V=[Math.random()*255,Math.random()*255],O=V.concat([this.T&255,this.clientState],[m>>24&255,m>>16&255,m>>8&255,m&255]);m=new Uint8Array(2+O.length);m[0]=34;m[1]=O.length;m.set(O,2);O=m.subarray(2);for(var h=V=V.length;h150))try{this.cache=new Yk0(m,this.logger)}catch(V){this.reportError(new Lb(22,"GBJ:init",V))}}; g.U.reportError=function(m){this.logger.Mz(m.code);this.onError(m);return m}; var ILm=function(m){return NN(function(V){if(!z9a(V))return!1;for(var O=g.D(Object.entries(m)),h=O.next();!h.done;h=O.next()){var w=g.D(h.value);h=w.next().value;w=w.next().value;if(!(h in V)){if(w.qXS===!0)continue;return!1}if(!w(V[h]))return!1}return!0})}({jK:function(m){return NN(function(V){return V instanceof m})}(KC)},"");pV5.prototype.qC=function(m,V){this.Z.SR("/client_streamz/youtube/aba/gac",m,V)};var $1C=(new Date).getTime();g.t(a4,i9);var OoA=Rq(a4);BjG.prototype.getMetadata=function(){return this.metadata};iL.prototype.getMetadata=function(){return this.metadata}; iL.prototype.getStatus=function(){return this.status};GG.prototype.N=function(m,V){V=V===void 0?{}:V;return new BjG(m,this,V)}; GG.prototype.getName=function(){return this.name};var h5W=new GG("/google.internal.waa.v1.Waa/Create",Ue,a4,function(m){return m.W2()},OoA);g.t(pC,i9);var jdp=new GG("/google.internal.waa.v1.Waa/GenerateIT",dq,pC,function(m){return m.W2()},Rq(pC));var HUI=new Set(["SAPISIDHASH","APISIDHASH"]);g.t(B3,i9);B3.prototype.getValue=function(){var m=AU(this,2);if(Array.isArray(m)||m instanceof i9)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return ry(this,2)};g.t(lL,i9);lL.prototype.getMessage=function(){return QI(this,2)}; var VhG=Rq(lL);Qq.prototype.removeListener=function(m,V){m==="data"?jB(this.L,V):m==="metadata"?jB(this.T,V):m==="status"?jB(this.K,V):m==="end"?jB(this.D,V):m==="error"&&jB(this.Z,V);return this}; Qq.prototype.cancel=function(){this.xhr.abort()}; g.t(Qd0,Error);g.Fh(g.LZ,b6X);g.LZ.prototype.Z=function(){var m=new JK(this.T,this.D);this.L&&m.setCredentialsMode(this.L);return m}; g.LZ.prototype.setCredentialsMode=function(m){this.L=m}; g.Fh(JK,g.dw);g.U=JK.prototype;g.U.open=function(m,V){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Ae=m;this.Zu=V;this.readyState=1;CZ(this)}; g.U.send=function(m){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.V.signal.aborted)throw this.abort(),Error("Request was aborted.");this.Z=!0;var V={headers:this.Qt,method:this.Ae,credentials:this.K,cache:void 0,signal:this.V.signal};m&&(V.body=m);(this.mS||g.WH).fetch(new Request(this.Zu,V)).then(this.PHt.bind(this),this.Y3.bind(this))}; g.U.abort=function(){this.response=this.responseText="";this.Qt=new Headers;this.status=0;this.V.abort("Request was aborted.");this.D&&this.D.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.Z&&this.readyState!=4&&(this.Z=!1,Eg(this));this.readyState=0}; g.U.PHt=function(m){if(this.Z&&(this.T=m,this.L||(this.status=this.T.status,this.statusText=this.T.statusText,this.L=m.headers,this.readyState=2,CZ(this)),this.Z&&(this.readyState=3,CZ(this),this.Z)))if(this.responseType==="arraybuffer")m.arrayBuffer().then(this.Mze.bind(this),this.Y3.bind(this));else if(typeof g.WH.ReadableStream!=="undefined"&&"body"in m){this.D=m.body.getReader();if(this.N){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); this.response=[]}else this.response=this.responseText="",this.J=new TextDecoder;OUa(this)}else m.text().then(this.oNf.bind(this),this.Y3.bind(this))}; g.U.Uf6=function(m){if(this.Z){if(this.N&&m.value)this.response.push(m.value);else if(!this.N){var V=m.value?m.value:new Uint8Array(0);if(V=this.J.decode(V,{stream:!m.done}))this.response=this.responseText+=V}m.done?Eg(this):CZ(this);this.readyState==3&&OUa(this)}}; g.U.oNf=function(m){this.Z&&(this.response=this.responseText=m,Eg(this))}; g.U.Mze=function(m){this.Z&&(this.response=m,Eg(this))}; g.U.Y3=function(){this.Z&&Eg(this)}; g.U.setRequestHeader=function(m,V){this.Qt.append(m,V)}; g.U.getResponseHeader=function(m){return this.L?this.L.get(m.toLowerCase())||"":""}; g.U.getAllResponseHeaders=function(){if(!this.L)return"";for(var m=[],V=this.L.entries(),O=V.next();!O.done;)O=O.value,m.push(O[0]+": "+O[1]),O=V.next();return m.join("\r\n")}; g.U.setCredentialsMode=function(m){this.K=m}; Object.defineProperty(JK.prototype,"withCredentials",{get:function(){return this.K==="include"}, set:function(m){this.setCredentialsMode(m?"include":"same-origin")}});g.d7.prototype.toString=function(){var m=[],V=this.K;V&&m.push(ow(V,wXn,!0),":");var O=this.Z;if(O||V=="file")m.push("//"),(V=this.V)&&m.push(ow(V,wXn,!0),"@"),m.push(g.FC(O).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),O=this.D,O!=null&&m.push(":",String(O));if(O=this.L)this.Z&&O.charAt(0)!="/"&&m.push("/"),m.push(ow(O,O.charAt(0)=="/"?yIc:jCh,!0));(O=this.T.toString())&&m.push("?",O);(O=this.N)&&m.push("#",ow(O,L0G));return m.join("")}; g.d7.prototype.resolve=function(m){var V=this.clone(),O=!!m.K;O?g.qX(V,m.K):O=!!m.V;O?V.V=m.V:O=!!m.Z;O?g.tI(V,m.Z):O=m.D!=null;var h=m.L;if(O)g.MX(V,m.D);else if(O=!!m.L){if(h.charAt(0)!="/")if(this.Z&&!this.L)h="/"+h;else{var w=V.L.lastIndexOf("/");w!=-1&&(h=V.L.slice(0,w+1)+h)}w=h;if(w==".."||w==".")h="";else if(g.P8(w,"./")||g.P8(w,"/.")){h=Qg(w,"/");w=w.split("/");for(var y=[],L=0;L1||y.length==1&&y[0]!="")&&y.pop(), h&&L==w.length&&y.push("")):(y.push(C),h=!0)}h=y.join("/")}else h=w}O?V.L=h:O=m.T.toString()!=="";O?fZ(V,m.T.clone()):O=!!m.N;O&&(V.N=m.N);return V}; g.d7.prototype.clone=function(){return new g.d7(this)}; var wXn=/[#\/\?@]/g,jCh=/[#\?:]/g,yIc=/[#\?]/g,LM3=/[#\?@]/g,L0G=/#/g;g.U=Rw.prototype;g.U.add=function(m,V){AK(this);this.D=null;m=Ug(this,m);var O=this.Z.get(m);O||this.Z.set(m,O=[]);O.push(V);this.L=this.L+1;return this}; g.U.remove=function(m){AK(this);m=Ug(this,m);return this.Z.has(m)?(this.D=null,this.L=this.L-this.Z.get(m).length,this.Z.delete(m)):!1}; g.U.clear=function(){this.Z=this.D=null;this.L=0}; g.U.isEmpty=function(){AK(this);return this.L==0}; g.U.forEach=function(m,V){AK(this);this.Z.forEach(function(O,h){O.forEach(function(w){m.call(V,w,h,this)},this)},this)}; g.U.wz=function(){AK(this);for(var m=Array.from(this.Z.values()),V=Array.from(this.Z.keys()),O=[],h=0;h0?String(m[0]):V}; g.U.toString=function(){if(this.D)return this.D;if(!this.Z)return"";for(var m=[],V=Array.from(this.Z.keys()),O=0;O>>3;y.D!=1&&y.D!=2&&y.D!=15&&WA(y,L,C,"unexpected tag");y.Z=1;y.L=0;y.T=0} function O(E){y.T++;y.T==5&&E&240&&WA(y,L,C,"message length too long");y.L|=(E&127)<<(y.T-1)*7;E&128||(y.Z=2,y.V=0,typeof Uint8Array!=="undefined"?y.K=new Uint8Array(y.L):y.K=Array(y.L),y.L==0&&w())} function h(E){y.K[y.V++]=E;y.V==y.L&&w()} function w(){if(y.D<15){var E={};E[y.D]=y.K;y.J.push(E)}y.Z=0} for(var y=this,L=m instanceof Array?m:new Uint8Array(m),C=0;C0?m:null};X0.prototype.isInputValid=function(){return this.Z===null}; X0.prototype.Kf=function(){return this.Z}; X0.prototype.Ty=function(){return!1}; X0.prototype.parse=function(m){this.Z!==null&&RCG(this,m,"stream already broken");var V=null;try{var O=this.D;O.D||xhl(O,m,"stream already broken");O.Z+=m;var h=Math.floor(O.Z.length/4);if(h==0)var w=null;else{try{var y=PX3(O.Z.slice(0,h*4))}catch(L){xhl(O,O.Z,L.message)}O.L+=h*4;O.Z=O.Z.slice(h*4);w=y}V=w===null?null:this.T.parse(w)}catch(L){RCG(this,m,L.message)}this.L+=m.length;return V};g.U=TV.prototype;g.U.isInputValid=function(){return this.K!=3}; g.U.Kf=function(){return this.Qt}; g.U.done=function(){return this.K===2}; g.U.Ty=function(){return!1}; g.U.parse=function(m){function V(){for(;f0;)if(R=m[f++],y.V===4?y.V=0:y.V++,!R)break a;if(R==='"'&&!y.J){y.Z=h();break}if(R==="\\"&&!y.J&&(y.J=!0,R=m[f++], !R))break;if(y.J)if(y.J=!1,R==="u"&&(y.V=1),R=m[f++])continue;else break;C.lastIndex=f;R=C.exec(m);if(!R){f=m.length+1;break}f=R.index+1;R=m[R.index];if(!R)break}y.D+=f-A;continue;case 9:if(!R)continue;R==="r"?y.Z=10:$a(y,m,f);continue;case 10:if(!R)continue;R==="u"?y.Z=11:$a(y,m,f);continue;case 11:if(!R)continue;R==="e"?y.Z=h():$a(y,m,f);continue;case 12:if(!R)continue;R==="a"?y.Z=13:$a(y,m,f);continue;case 13:if(!R)continue;R==="l"?y.Z=14:$a(y,m,f);continue;case 14:if(!R)continue;R==="s"?y.Z=15: $a(y,m,f);continue;case 15:if(!R)continue;R==="e"?y.Z=h():$a(y,m,f);continue;case 16:if(!R)continue;R==="u"?y.Z=17:$a(y,m,f);continue;case 17:if(!R)continue;R==="l"?y.Z=18:$a(y,m,f);continue;case 18:if(!R)continue;R==="l"?y.Z=h():$a(y,m,f);continue;case 19:R==="."?y.Z=20:$a(y,m,f);continue;case 20:if("0123456789.eE+-".indexOf(R)!==-1)continue;else f--,y.D--,y.Z=h();continue;default:$a(y,m,f)}}} function h(){var R=L.pop();return R!=null?R:1} function w(R){y.L>1||(R||(R=M===-1?y.T+m.substring(q,f):m.substring(M,f)),y.Zu?y.N.push(R):y.N.push(JSON.parse(R)),M=f)} for(var y=this,L=y.Ae,C=y.mS,E=m.length,q=0,M=-1,f=0;f0?(x=y.N,y.N=[],x):null}return null};Ya.prototype.isInputValid=function(){return this.K===null}; Ya.prototype.Kf=function(){return this.K}; Ya.prototype.Ty=function(){return!1}; Ya.prototype.parse=function(m){function V(E){y.L=6;y.K="The stream is broken @"+y.Z+"/"+L+". Error: "+E+". With input:\n";throw Error(y.K);} function O(){y.D=new TV({SrS:!0,No:!0})} function h(E){if(E)for(var q=0;q1)&&V("extra status: "+E);y.N=!0;var q={};q[2]=E[0];y.T.push(q)}} for(var y=this,L=0;L0?(m=y.T,y.T=[],m):null};ka.prototype.MM=function(){return this.Z}; ka.prototype.getStatus=function(){return this.K}; ka.prototype.Zu=function(m){m=m.target;try{if(m==this.Z)a:{var V=g.Qc(this.Z),O=this.Z.L,h=this.Z.getStatus(),w=g.PU(this.Z);m=[];if(g.mz(this.Z)instanceof Array){var y=g.mz(this.Z);y.length>0&&y[0]instanceof Uint8Array&&(this.Qt=!0,m=y)}if(!(V<3||V==3&&!w&&m.length==0))if(h=h==200||h==206,V==4&&(O==8?r_(this,7):O==7?r_(this,8):h||r_(this,3)),this.L||(this.L=oeo(this.Z),this.L==null&&r_(this,5)),this.K>2)cA(this);else{if(m.length>this.D){var L=m.length;O=[];try{if(this.L.Ty())for(var C=0;Cthis.D){C=w.slice(this.D);this.D=w.length;try{var q=this.L.parse(C);q!=null&&this.T&&this.T(q)}catch(M){r_(this,5);cA(this);break a}}V==4?(w.length!= 0||this.Qt?r_(this,2):r_(this,4),cA(this)):r_(this,1)}}}catch(M){r_(this,6),cA(this)}};g.U=gea.prototype;g.U.addListener=function(m,V){Og(this,m,V);return this}; g.U.removeListener=function(m,V){var O=this.L[m];O&&g.Om(O,V);(m=this.Z[m])&&g.Om(m,V);return this}; g.U.once=function(m,V){var O=this.Z[m];O||(O=[],this.Z[m]=O);O.push(V);return this}; g.U.sde=function(m){var V=this.L.data;V&&AaU(m,V);(V=this.Z.data)&&AaU(m,V);this.Z.data=[]}; g.U.h7N=function(){switch(this.D.getStatus()){case 1:Dz(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Dz(this,"error");break;case 8:Dz(this,"close");break;case 2:Dz(this,"end")}};Uh$.prototype.serverStreaming=function(m,V,O,h){var w=this,y=m.substring(0,m.length-h.name.length);return Tvp(function(L){var C=L.NK,E=L.getMetadata(),q=KM3(w,!1);E=WMX(w,E,q,y+C.getName());var M=XFo(q,C.L,!0);L=C.Z(L.MZ);q.send(E,"POST",L);return M},this.tL).call(this,h.N(V,O))};$ha.prototype.create=function(m,V,O){var h=this.Z,w=this.L+"/$rpc/google.internal.waa.v1.Waa/Create";V=V||{};O=O===void 0?{}:O;return LE7(h,w,m,V,h5W,O)};var jF5,rpo,pc7,Cpn,EUa,q3H,P$C,mka,MGa,A3,w2U,gA,GA0,NuC,bAC,suC,i$0,SjG,xmI,zBo,R5W,oUW,gUc,xko,oCU,sol,nB,d8I,Umz;jF5=new NX(45745123,!1);rpo=new NX(45742118,!1);pc7=new NX(45742119,!1);Cpn=new NX(45739196,!1);EUa=new NX(45739198,!1);q3H=new NX(45739197,!1);P$C=new bY(45737488,0);mka=new bY(45737489,0);MGa=new NX(45736776,!1);A3=new NX(45738227,!1);w2U=new NX(45732791,!1);gA=new NX(45728572,!1);g.f1a=new NX(45742954,!1);GA0=new NX(45742469,!1);NuC=new NX(45737482,!1);bAC=new bY(45741773,0); suC=new NX(45732704,!0);i$0=new NX(45731083,!1);SjG=new NX(45728553,!1);xmI=new NX(45734191,!1);zBo=new NX(45735523,!1);R5W=new bY(45735428,4E3);oUW=new NX(45735462,!1);gUc=new NX(45727949,!1);xko=new NX(45728181,!1);oCU=new NX(45740357,!1);sol=new NX(45733155,!1);nB=new NX(45732481,!1);d8I=new NX(45732775,!1);g.AIn=new NX(45734776,!1);Umz=new NX(45739595,!1);var jY1=new bY(45725542,0),LNC=new bY(45739023,0),CD7=new bY(45743228,0),ypl=new bY(45725543,0),ONG=new bY(45725539,0),w0l=new bY(45725541,0),hE0=new bY(45725540,0),VPG=new bY(45725538,0),JpG=new bY(45741339,0);var raG="://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(" "),cao=/\bocr\b/;var Nv1=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.t(bUG,i9);g.t(ne0,i9);g.t(SB,i9);SB.prototype.getName=function(){return QI(this,1)}; SB.prototype.getOptions=function(){return Z2(this,ne0,3)}; SB.prototype.clearOptions=function(){return dy(this,3)};g.t(Iw,i9);g.U=Iw.prototype;g.U.getName=function(){return QI(this,1)}; g.U.getOptions=function(){return Z2(this,bUG,3)}; g.U.clearOptions=function(){return dy(this,3)}; g.U.mO=function(){return vS(this,6)}; g.U.eU=function(m){wB(this,6,m)};var eCG=function(m){return function(V){V=JSON.parse(V);if(!Array.isArray(V))throw Error("Expected jspb data to be an array, got "+kI(V)+": "+V);wV(V,34);return new m(V)}}(Iw);var IkU=Symbol();var zC3=Symbol();Object.assign({},{attributes:{},handleError:function(m){throw m;}},{Kxz:!0, U3A:!0,ysH:k23,qV6:k23,EbN:rAl,Fxu:!1,fXN:!1,W_Y:!1,HEt:!0,kDf:Y8U,GDe:!1,pfY:!1,kP0:!1});var uY=null,Zz=!1,P1p=1,lkU=Symbol("SIGNAL"),Ro={version:0,f2t:0,PM:!1,producers:void 0,Ub:void 0,NN:void 0,IA:void 0,s3:!1,SL:!1,Ww:!1,kind:"unknown",z3:function(){return!1}, T3:function(){}, KN:function(){}, D3u:function(){}};var oo=Symbol("UNSET"),gu=Symbol("COMPUTING"),A7=Symbol("ERRORED");Object.assign({},Ro,{value:oo,PM:!0,error:null,Fp:eB,kind:"computed",z3:function(m){return m.value===oo||m.value===gu}, T3:function(m){if(m.value===gu)throw Error("");var V=m.value;m.value=gu;var O=ak7(m),h=!1;try{var w=m.DJ();zV(null);h=V!==oo&&V!==A7&&w!==A7&&m.Fp(V,w)}catch(y){w=A7,m.error=y}finally{zV(O),m&&Gi5(m)}h?m.value=V:(m.value=w,m.version++)}});Object.assign({},Ro,{Ww:!0,SL:!0,PM:!0,kind:"effect"});var Bvo=Object.assign({},Ro,{Fp:eB,value:void 0,kind:"signal"});Object.assign({},Ro,{value:oo,PM:!0,error:null,Fp:eB,kind:"linkedSignal",z3:function(m){return m.value===oo||m.value===gu}, T3:function(m){if(m.value===gu)throw Error("");var V=m.value;m.value=gu;var O=ak7(m);try{var h=m.source();var w=m.DJ(h,V===oo||V===A7?void 0:{source:m.Z_Y,value:V});m.Z_Y=h}catch(y){w=A7,m.error=y}finally{zV(O),m&&Gi5(m)}V!==oo&&w!==A7&&m.Fp(V,w)?m.value=V:(m.value=w,m.version++)}});Object.assign({},Ro,{Ww:!0,SL:!1,KN:function(m){m.schedule!==null&&m.schedule(m.D$0)}, uwr:function(){}});g.t(iY,g.dw);iY.prototype.dispose=function(){window.removeEventListener("offline",this.D);window.removeEventListener("online",this.D);this.M2.gI(this.K);delete iY.instance}; iY.prototype.KC=function(){return this.Z}; iY.prototype.AY=function(){var m=this;this.K=this.M2.B1(function(){var V;return g.u(function(O){if(O.Z==1)return m.Z?((V=window.navigator)==null?0:V.onLine)?O.Te(3):g.I(O,aw(m),3):g.I(O,aw(m),3);m.AY();g.j$(O)})},3E4)};g.t(V_U,i9);var mR7=FDl(V_U,[0,LA,Y1G,xda,LA,-2,xda,q1G]);pZ.prototype.set=function(m,V){V=V===void 0?!0:V;0<=m&&m<52&&Number.isInteger(m)&&this.data[m]!==V&&(this.data[m]=V,this.Z=-1)}; pZ.prototype.get=function(m){return!!this.data[m]};var lY;g.Fh(g.PA,g.Z);g.U=g.PA.prototype;g.U.start=function(){this.stop();this.T=!1;var m=htI(this),V=w6o(this);m&&!V&&this.L.mozRequestAnimationFrame?(this.Z=g.ft(this.L,"MozBeforePaint",this.D),this.L.mozRequestAnimationFrame(null),this.T=!0):this.Z=m&&V?m.call(this.L,this.D):this.L.setTimeout(ES$(this.D),20)}; g.U.stop=function(){if(this.isActive()){var m=htI(this),V=w6o(this);m&&!V&&this.L.mozRequestAnimationFrame?gw(this.Z):m&&V?V.call(this.L,this.Z):this.L.clearTimeout(this.Z)}this.Z=null}; g.U.isActive=function(){return this.Z!=null}; g.U.Ri=function(){this.T&&this.Z&&gw(this.Z);this.Z=null;this.N.call(this.K,g.uz())}; g.U.d0=function(){this.stop();g.PA.jW.d0.call(this)};g.Fh(g.mq,g.Z);g.U=g.mq.prototype;g.U.rj=0;g.U.d0=function(){g.mq.jW.d0.call(this);this.stop();delete this.Z;delete this.L}; g.U.start=function(m){this.stop();this.rj=g.z0(this.D,m!==void 0?m:this.QD)}; g.U.stop=function(){this.isActive()&&g.WH.clearTimeout(this.rj);this.rj=0}; g.U.isActive=function(){return this.rj!=0}; g.U.B$=function(){this.rj=0;this.Z&&this.Z.call(this.L)};g.t(g.wO,g.Z);g.U=g.wO.prototype;g.U.Bc=function(m){this.D=arguments;this.b2||this.L?this.Z=!0:yn(this)}; g.U.stop=function(){this.b2&&(g.WH.clearTimeout(this.b2),this.b2=null,this.Z=!1,this.D=null)}; g.U.pause=function(){this.L++}; g.U.resume=function(){this.L--;this.L||!this.Z||this.b2||(this.Z=!1,yn(this))}; g.U.d0=function(){g.Z.prototype.d0.call(this);this.stop()};g.jF.prototype[Symbol.iterator]=function(){return this}; g.jF.prototype.next=function(){var m=this.Z.next();return{value:m.done?void 0:this.L.call(void 0,m.value),done:m.done}};g.Fh(g.RM,g.dw);g.U=g.RM.prototype;g.U.isPlaying=function(){return this.Z==1}; g.U.isPaused=function(){return this.Z==-1}; g.U.e3=function(){this.cU("begin")}; g.U.uh=function(){this.cU("end")}; g.U.onFinish=function(){this.cU("finish")}; g.U.onStop=function(){this.cU("stop")}; g.U.cU=function(m){this.dispatchEvent(m)};var dmh=pK(function(){var m=g.Yc("DIV"),V=g.Xm?"-webkit":y5?"-moz":null,O="transition:opacity 1s linear;";V&&(O+=V+"-transition:opacity 1s linear;");V=Pz0({style:O});if(m.nodeType===1&&/^(script|style)$/i.test(m.tagName))throw Error("");m.innerHTML=cM(V);return g.jL(m.firstChild,"transition")!=""});g.Fh(oM,g.RM);g.U=oM.prototype;g.U.play=function(){if(this.isPlaying())return!1;this.e3();this.cU("play");this.startTime=g.uz();this.Z=1;if(dmh())return g.wb(this.L,this.N),this.D=g.z0(this.eA6,void 0,this),!0;this.pI(!1);return!1}; g.U.eA6=function(){g.or(this.L);Lo0(this.L,this.J);g.wb(this.L,this.T);this.D=g.z0((0,g.IA)(this.pI,this,!1),this.K*1E3)}; g.U.stop=function(){this.isPlaying()&&this.pI(!0)}; g.U.pI=function(m){g.wb(this.L,"transition","");g.WH.clearTimeout(this.D);g.wb(this.L,this.T);this.endTime=g.uz();this.Z=0;if(m)this.onStop();else this.onFinish();this.uh()}; g.U.d0=function(){this.stop();oM.jW.d0.call(this)}; g.U.pause=function(){};var C8l={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,"var":!0};gO("Element","attributes")||gO("Node","attributes");gO("Element","innerHTML")||gO("HTMLElement","innerHTML");gO("Node","nodeName");gO("Node","nodeType");gO("Node","parentNode");gO("Node","childNodes");gO("HTMLElement","style")||gO("Element","style");gO("HTMLStyleElement","sheet");var Rta=qwo("getPropertyValue"),or7=qwo("setProperty");gO("Element","namespaceURI")||gO("Node","namespaceURI");var xQ3={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var dQX,AA0,UQm,AH0,t_a;dQX=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]");AA0=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.tG5=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.UM=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]");UQm=/^http:\/\/.*/;g.K0c=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");AH0=/\s+/;t_a=/[\d\u06f0-\u06f9]/;tY.prototype.bC=function(){return new KY(this.L())}; tY.prototype[Symbol.iterator]=function(){return new WD(this.L())}; tY.prototype.Z=function(){return new WD(this.L())}; g.t(KY,g.bA);KY.prototype.next=function(){return this.L.next()}; KY.prototype[Symbol.iterator]=function(){return new WD(this.L)}; KY.prototype.Z=function(){return new WD(this.L)}; g.t(WD,tY);WD.prototype.next=function(){return this.D.next()};HD.prototype.clone=function(){return new HD(this.Z,this.J,this.D,this.K,this.T,this.N,this.L,this.V)}; HD.prototype.equals=function(m){return this.Z==m.Z&&this.J==m.J&&this.D==m.D&&this.K==m.K&&this.T==m.T&&this.N==m.N&&this.L==m.L&&this.V==m.V};$N.prototype.clone=function(){return new $N(this.start,this.end)};(function(){if(HVp){var m=/Windows NT ([0-9.]+)/;return(m=m.exec(g.wX()))?m[1]:"0"}return $z?(m=/1[0|1][_.][0-9_.]+/,(m=m.exec(g.wX()))?m[0].replace(/_/g,"."):"10"):g.yJ?(m=/Android\s+([^\);]+)(\)|;)/,(m=m.exec(g.wX()))?m[1]:""):Nla||bv$||nM3?(m=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(m=m.exec(g.wX()))?m[1].replace(/_/g,"."):""):""})();var X65=function(){if(g.ot)return YN(/Firefox\/([0-9.]+)/);if(g.AY||g.p3||g.z7)return i5a;if(g.q3){if(vM()||PM()){var m=YN(/CriOS\/([0-9.]+)/);if(m)return m}return YN(/Chrome\/([0-9.]+)/)}if(g.AJ&&!vM())return YN(/Version\/([0-9.]+)/);if(Ob||h8){if(m=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.wX()))return m[1]+"."+m[2]}else if(g.Zj)return(m=YN(/Android\s+([0-9.]+)/))?m:YN(/Version\/([0-9.]+)/);return""}();g.Fh(g.rO,g.Z);g.U=g.rO.prototype;g.U.subscribe=function(m,V,O){var h=this.L[m];h||(h=this.L[m]=[]);var w=this.N;this.Z[w]=m;this.Z[w+1]=V;this.Z[w+2]=O;this.N=w+3;h.push(w);return w}; g.U.unsubscribe=function(m,V,O){if(m=this.L[m]){var h=this.Z;if(m=m.find(function(w){return h[w+1]==V&&h[w+2]==O}))return this.jt(m)}return!1}; g.U.jt=function(m){var V=this.Z[m];if(V){var O=this.L[V];this.T!=0?(this.D.push(m),this.Z[m+1]=function(){}):(O&&g.Om(O,m),delete this.Z[m],delete this.Z[m+1],delete this.Z[m+2])}return!!V}; g.U.publish=function(m,V){var O=this.L[m];if(O){var h=Array(arguments.length-1),w=arguments.length,y;for(y=1;y0&&this.T==0)for(;O=this.D.pop();)this.jt(O)}}return y!=0}return!1}; g.U.clear=function(m){if(m){var V=this.L[m];V&&(V.forEach(this.jt,this),delete this.L[m])}else this.Z.length=0,this.L={}}; g.U.d0=function(){g.rO.jW.d0.call(this);this.clear();this.D.length=0};g.cD.prototype.set=function(m,V){V===void 0?this.MH.remove(m):this.MH.set(m,g.ab(V))}; g.cD.prototype.get=function(m){try{var V=this.MH.get(m)}catch(O){return}if(V!==null)try{return JSON.parse(V)}catch(O){throw"Storage: Invalid value was encountered";}}; g.cD.prototype.remove=function(m){this.MH.remove(m)};g.Fh(DD,g.cD);DD.prototype.set=function(m,V){DD.jW.set.call(this,m,$Qp(V))}; DD.prototype.RE=function(m){m=DD.jW.get.call(this,m);if(m===void 0||m instanceof Object)return m;throw"Storage: Invalid value was encountered";}; DD.prototype.get=function(m){if(m=this.RE(m)){if(m=m.data,m===void 0)throw"Storage: Invalid value was encountered";}else m=void 0;return m};g.Fh(Na,DD);Na.prototype.set=function(m,V,O){if(V=$Qp(V)){if(O){if(O=O.length)return g.EQ;var w=O.key(V++);if(m)return g.nT(w);w=O.getItem(w);if(typeof w!=="string")throw"Storage mechanism: Invalid value was encountered";return g.nT(w)}; return h}; g.U.clear=function(){IM(this);this.Z.clear()}; g.U.key=function(m){IM(this);return this.Z.key(m)};g.Fh(eF,SF);g.Fh(rHI,SF);g.Fh(uQ,nY);uQ.prototype.set=function(m,V){this.L.set(this.Z+m,V)}; uQ.prototype.get=function(m){return this.L.get(this.Z+m)}; uQ.prototype.remove=function(m){this.L.remove(this.Z+m)}; uQ.prototype.bC=function(m){var V=this.L[Symbol.iterator](),O=this,h=new g.bA;h.next=function(){var w=V.next();if(w.done)return w;for(w=w.value;w.slice(0,O.Z.length)!=O.Z;){w=V.next();if(w.done)return w;w=w.value}return g.nT(m?w.slice(O.Z.length):O.L.get(w))}; return h};ZD.prototype.getValue=function(){return this.L}; ZD.prototype.clone=function(){return new ZD(this.Z,this.L)};g.U=sM.prototype;g.U.Xs=function(m,V){var O=this.Z;O.push(new ZD(m,V));m=O.length-1;V=this.Z;for(O=V[m];m>0;){var h=m-1>>1;if(V[h].Z>O.Z)V[m]=V[h],m=h;else break}V[m]=O}; g.U.remove=function(){var m=this.Z,V=m.length,O=m[0];if(!(V<=0)){if(V==1)m.length=0;else{m[0]=m.pop();m=0;V=this.Z;for(var h=V.length,w=V[m];m>1;){var y=m*2+1,L=m*2+2;y=Lw.Z)break;V[m]=V[y];m=y}V[m]=w}return O.getValue()}}; g.U.AN=function(){for(var m=this.Z,V=[],O=m.length,h=0;h>>16&65535|0;for(var y;O!==0;){y=O>2E3?2E3:O;O-=y;do w=w+V[h++]|0,m=m+w|0;while(--y);w%=65521;m%=65521}return w|m<<16|0};for(var Un={},UQ,$mM=[],du=0;du<256;du++){UQ=du;for(var Y3A=0;Y3A<8;Y3A++)UQ=UQ&1?3988292384^UQ>>>1:UQ>>>1;$mM[du]=UQ}Un=function(m,V,O,h){O=h+O;for(m^=-1;h>>8^$mM[(m^V[h])&255];return m^-1};var Ce={};Ce={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 On=[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],yC=[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],Otm=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],aea=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],fe=Array(576);pY(fe);var xF=Array(60);pY(xF);var wS=Array(512);pY(wS);var VC=Array(256);pY(VC);var hx=Array(29);pY(hx);var jk=Array(30);pY(jk);var P83,m1G,VXU,vr0=!1;var YF;YF=[new $F(0,0,0,0,function(m,V){var O=65535;for(O>m.Gv-5&&(O=m.Gv-5);;){if(m.jU<=1){dS(m);if(m.jU===0&&V===0)return 1;if(m.jU===0)break}m.zp+=m.jU;m.jU=0;var h=m.RI+O;if(m.zp===0||m.zp>=h)if(m.jU=m.zp-h,m.zp=h,R8(m,!1),m.NC.p6===0)return 1;if(m.zp-m.RI>=m.qn-262&&(R8(m,!1),m.NC.p6===0))return 1}m.Xs=0;if(V===4)return R8(m,!0),m.NC.p6===0?3:4;m.zp>m.RI&&R8(m,!1);return 1}), new $F(4,4,8,4,tx),new $F(4,5,16,8,tx),new $F(4,6,32,32,tx),new $F(4,4,16,16,Tg),new $F(8,16,32,32,Tg),new $F(8,16,128,128,Tg),new $F(8,32,128,256,Tg),new $F(32,128,258,1024,Tg),new $F(32,258,258,4096,Tg)];var Qh3={};Qh3=function(){this.input=null;this.g8=this.Mn=this.v9=0;this.output=null;this.Iu=this.p6=this.lM=0;this.msg="";this.state=null;this.Hi=2;this.G0=0};var hjo=Object.prototype.toString; kF.prototype.push=function(m,V){var O=this.NC,h=this.options.chunkSize;if(this.ended)return!1;var w=V===~~V?V:V===!0?4:0;typeof m==="string"?O.input=ND0(m):hjo.call(m)==="[object ArrayBuffer]"?O.input=new Uint8Array(m):O.input=m;O.v9=0;O.Mn=O.input.length;do{O.p6===0&&(O.output=new GO.yj(h),O.lM=0,O.p6=h);m=le0(O,w);if(m!==1&&m!==0)return this.uh(m),this.ended=!0,!1;if(O.p6===0||O.Mn===0&&(w===4||w===2))if(this.options.to==="string"){var y=GO.Xm(O.output,O.lM);V=y;y=y.length;if(y<65537&&(V.subarray&& T7Z||!V.subarray))V=String.fromCharCode.apply(null,GO.Xm(V,y));else{for(var L="",C=0;C0||O.p6===0)&&m!==1);if(w===4)return(O=this.NC)&&O.state?(h=O.state.status,h!==42&&h!==69&&h!==73&&h!==91&&h!==103&&h!==113&&h!==666?m=En(O,-2):(O.state=null,m=h===113?En(O,-3):0)):m=-2,this.uh(m),this.ended=!0,m===0;w===2&&(this.uh(0),O.p6=0);return!0}; kF.prototype.uh=function(m){m===0&&(this.result=this.options.to==="string"?this.chunks.join(""):GO.QY(this.chunks));this.chunks=[];this.err=m;this.msg=this.NC.msg};var ch="@@redux/INIT"+rS(),Cgo="@@redux/REPLACE"+rS();var ExI=typeof Symbol==="function"&&Symbol.observable||"@@observable";var klZ=[0,Xa0,-3,jD];g.t(x1G,i9);var k77=FDl(x1G,[0,LA,HgX,OQ,Xa0,OQ,-1,jD,Xa0,jD,-1,LA,jD,HgX,h7,klZ,OQ,-1,jD]);var Ump=-1007022328;var rIM=function(m,V){return function(){var O=new zb7(m,V,b9);return function(){return O}}()}("youtube.api.innertube.AttestationError",'[null,[["ATTESTATION_ERROR_UNKNOWN",0],["ATTESTATION_ERROR_VM_NOT_INITIALIZED",1],["ATTESTATION_ERROR_VM_NO_RESPONSE",2],["ATTESTATION_ERROR_VM_TIMEOUT",3],["ATTESTATION_ERROR_VM_INTERNAL_ERROR",4],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INVALID",5],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_NETWORK_ERROR",6],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_OFFLINE",7],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INTERNAL_ERROR",8],["ATTESTATION_ERROR_API_NOT_READY",9],["ATTESTATION_ERROR_DEVICE_OFFLINE",10],["ATTESTATION_ERROR_KEY_PAIR_INIT_FAILED",12],["ATTESTATION_ERROR_SIGNING_DATA_MISSING",13],["ATTESTATION_ERROR_SIGNING_FAILED",14],["ATTESTATION_ERROR_CERT_CHAIN_RETRIEVAL_FAILED",15]],null,[[11,11]]]');var r8o=new g.bj("adInfoDialogEndpoint");var M83=new g.bj("adPingingEndpoint");var Tr3=new g.bj("crossDeviceProgressCommand");var mO=new g.bj("actionCompanionAdRenderer");var QH=new g.bj("adActionInterstitialRenderer");var cIW=new g.bj("adDurationRemainingRenderer");var YE=new g.bj("adHoverTextButtonRenderer");var YbU=new g.bj("adInfoDialogRenderer");var jR=new g.bj("adMessageRenderer");var kE=new g.bj("adPreviewRenderer");var Ol=new g.bj("adsEngagementPanelRenderer");var cXC=new g.bj("dismissablePanelTextPortraitImageRenderer");var Ul=new g.bj("adsEngagementPanelSectionListViewModel");var DmA=new g.bj("flyoutCtaRenderer");var VR=new g.bj("imageCompanionAdRenderer");var Bo=new g.bj("instreamAdPlayerOverlayRenderer");var I40=new g.bj("instreamSurveyAdBackgroundImageRenderer");var $E=new g.bj("instreamSurveyAdPlayerOverlayRenderer");var fm=new g.bj("instreamSurveyAdRenderer"),Tf=new g.bj("instreamSurveyAdSingleSelectQuestionRenderer"),Hq=new g.bj("instreamSurveyAdMultiSelectQuestionRenderer"),t7=new g.bj("instreamSurveyAdAnswerRenderer"),N7a=new g.bj("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var qR=new g.bj("instreamVideoAdRenderer");var boh=new g.bj("textOverlayAdContentRenderer"),nUJ=new g.bj("enhancedTextOverlayAdContentRenderer"),S3M=new g.bj("imageOverlayAdContentRenderer");var lk=new g.bj("playerOverlayLayoutRenderer");var vo=new g.bj("videoInterstitialButtonedCenteredLayoutRenderer");var SBU=new g.bj("aboveFeedAdLayoutRenderer");var IYI=new g.bj("belowPlayerAdLayoutRenderer");var no7=new g.bj("inPlayerAdLayoutRenderer");var e83=new g.bj("inPlayerOrganicOverlayAdLayoutRenderer");var oB=new g.bj("playerBytesAdLayoutRenderer");var Wq=new g.bj("playerBytesSequenceItemAdLayoutRenderer");var Km=new g.bj("playerUnderlayAdLayoutRenderer");var MR=new g.bj("adIntroRenderer");var Cm=new g.bj("playerBytesSequentialLayoutRenderer");var AZX=new g.bj("slidingTextPlayerOverlayRenderer");var xE=new g.bj("surveyTextInterstitialRenderer");var gg=new g.bj("videoAdTrackingRenderer");var $gC=new g.bj("videoInterstitialCenteredLayoutViewModel");var I1G=new g.bj("simpleAdBadgeRenderer");var L7=new g.bj("skipAdRenderer"),e5A=new g.bj("skipButtonRenderer");var Xr=new g.bj("adSlotRenderer");var dg=new g.bj("squeezebackPlayerSidePanelRenderer");var ua$=new g.bj("timedPieCountdownRenderer");var F_=new g.bj("adAvatarViewModel");var am=new g.bj("adBadgeViewModel");var ih=new g.bj("adButtonViewModel");var z5I=new g.bj("adDetailsLineViewModel");var Zoh=new g.bj("adDisclosureBannerViewModel");var sCh=new g.bj("adPodIndexViewModel");var F0n=new g.bj("imageBackgroundViewModel");var a1$=new g.bj("adGridCardCollectionViewModel");var ion=new g.bj("adGridCardTextViewModel");var Gl5=new g.bj("adPreviewViewModel");var pXc=new g.bj("playerAdAvatarLockupCardButtonedViewModel");var B7Z=new g.bj("skipAdButtonViewModel");var l1I=new g.bj("skipAdViewModel");var QCA=new g.bj("timedPieCountdownViewModel");var vUM=new g.bj("visitAdvertiserLinkViewModel");var hB=new g.bj("bannerImageLayoutViewModel");var wg=new g.bj("topBannerImageTextIconButtonedLayoutViewModel");var yR=new g.bj("adsEngagementPanelLayoutViewModel");var tB=new g.bj("displayUnderlayTextGridCardsLayoutViewModel");g.z_=new g.bj("browseEndpoint");var PpM=new g.bj("confirmDialogEndpoint");var Ofo=new g.bj("commandContext");var s87=new g.bj("rawColdConfigGroup");var Ze3=new g.bj("rawHotConfigGroup");g.RR=new g.bj("commandExecutorCommand");g.t(RjG,i9);var iSI={Vhz:0,mTY:1,HoS:32,fcA:61,Nae:67,MTH:103,kEe:86,K_N:42,UTH:60,DTN:62,F_z:73,qrH:76,od6:88,P1H:90,JOH:99,vde:98,tTH:100,Ede:102,eJr:41,XmA:69,acY:70,OoY:71,oqu:2,P5H:27,ANDROID:3,rkt:54,bqz:14,WTr:91,w70:55,p7N:24,CXr:20,BdA:18,jKu:21,VmA:104,lde:30,ZU0:29,uQr:28,Zor:101,A7H:34,hi0:36,xnt:38,IOS:5,yNz:15,tdt:92,qiH:40,Fwz:25,fyz:17,Yit:19,kvr:64,Mdt:66,ohe:26,JNH:22,e6f:33,XPe:68,ay6:35,PPu:53,N4r:37,Ehr:39,J_N:7,ehf:57,XlH:43,OXN:59,aN6:93,QSH:74,sx0:75,r_t:85,bXA:65,plf:80,Cz6:8,thr:10, x6H:58,BCu:63,wlr:72,RbH:23,bor:11,wm0:13,Xtz:12,NCA:16,GEN:56,Yr0:31,fFf:77,BVz:84,yO6:87,jIt:89,xir:94,IFH:95};g.t(ne,i9);ne.prototype.Oj=function(){return QI(this,3)}; ne.prototype.xi=function(){return QI(this,5)}; ne.prototype.EV=function(m){return OA(this,5,m)};g.t(Sk,i9);g.t(oxa,i9);g.t(I8,i9);g.U=I8.prototype;g.U.getDeviceId=function(){return QI(this,6)}; g.U.s2=function(m){var V=HS(this,9,NY,3,!0);J9(V,m);return V[m]}; g.U.getPlayerType=function(){return vS(this,36)}; g.U.setHomeGroupInfo=function(m){return ir(this,oxa,81,m)}; g.U.clearLocationPlayabilityToken=function(){return dy(this,89)};g.t(ek,i9);ek.prototype.getValue=function(){return QI(this,eq(this,ui$,2))}; var ui$=[2,3,4,5,6];g.t(uj,i9);uj.prototype.setTrackingParams=function(m){return dy(this,1,q0l(m,!1))};g.t(zg,i9);g.t(ZC,i9);ZC.prototype.s2=function(m){var V=HS(this,5,b5,3,!0);J9(V,m);return V[m]};g.t(sn,i9);sn.prototype.getToken=function(){return mx(this,2)}; sn.prototype.setToken=function(m){return OA(this,2,m)};g.t(Fi,i9);Fi.prototype.setSafetyMode=function(m){return wB(this,5,m)};g.t(a8,i9);a8.prototype.Kp=function(m){return ir(this,I8,1,m)};var cq=new g.bj("thumbnailLandscapePortraitRenderer");g.mAa=new g.bj("changeEngagementPanelVisibilityAction");var jep=new g.bj("continuationCommand");g.V$W=new g.bj("openPopupAction");var zVm=new g.bj("signalAction");g.KA=new g.bj("webCommandMetadata");var Bg7=new g.bj("metadataBadgeRenderer");var yJ0=new g.bj("signalServiceEndpoint");var Nb=new g.bj("innertubeCommand");var Zpo=new g.bj("loggingDirectives");var Pgp={Hwe:"EMBEDDED_PLAYER_MODE_UNKNOWN",vLS:"EMBEDDED_PLAYER_MODE_DEFAULT",K1z:"EMBEDDED_PLAYER_MODE_PFP",GZH:"EMBEDDED_PLAYER_MODE_PFL"};var We1=new g.bj("channelThumbnailEndpoint");var KeC=new g.bj("embeddedPlayerErrorMessageRenderer");var A5p=new g.bj("embeddedPlayerOverlayVideoDetailsRenderer"),XOl=new g.bj("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),HL3=new g.bj("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var im7=new g.bj("embedsInfoPanelRenderer");var n6a=new g.bj("feedbackEndpoint");var O55=new g.bj("callToActionButtonViewModel");var hn$=new g.bj("interactionLoggingCommandMetadata");var GVm={gdA:"WEB_DISPLAY_MODE_UNKNOWN",Ice:"WEB_DISPLAY_MODE_BROWSER",TaH:"WEB_DISPLAY_MODE_MINIMAL_UI",ior:"WEB_DISPLAY_MODE_STANDALONE",zJe:"WEB_DISPLAY_MODE_FULLSCREEN"};g.t(ij,i9);ij.prototype.getPlayerType=function(){return vS(this,7)}; ij.prototype.HW=function(){return QI(this,19)}; ij.prototype.setVideoId=function(m){return OA(this,19,m)};g.t(Gg,i9);g.t(pe,i9);g.t(Bh,i9); var wHA=[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,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530,531,536,537,538,539];var yGA=new g.bj("loggingContext");g.t(lj,i9);g.t(QC,i9);QC.prototype.HW=function(){return mx(this,eq(this,w$,1))}; QC.prototype.setVideoId=function(m){return Sq(this,1,w$,BN(m))}; QC.prototype.getPlaylistId=function(){return mx(this,eq(this,w$,2))}; var w$=[1,2];g.t(g.vh,i9);g.vh.prototype.n$=eG(0);var jAa=new g.bj("dismissPlayerOverlayCommand");var o5=new g.bj("changeKeyedMarkersVisibilityCommand");var Laz=new g.bj("changeMarkersVisibilityCommand");var QB7=new g.bj("loadMarkersCommand");var JGz=new g.bj("suggestedActionDataViewModel");var Jwm=new g.bj("timelyActionViewModel");var LU7=new g.bj("timelyActionsOverlayViewModel");var kep=new g.bj("productListItemRenderer");var CzH=new g.bj("shoppingOverlayRenderer");var Uwl=new g.bj("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var EIJ=new g.bj("adFeedbackEndpoint");var qJI=new g.bj("menuEndpoint");var NeU=new g.bj("phoneDialerEndpoint");var cl$=new g.bj("sendSmsEndpoint");var ghX=new g.bj("copyTextEndpoint");var M$H=new g.bj("shareEndpoint"),fMM=new g.bj("shareEntityEndpoint"),xAG=new g.bj("shareEntityServiceEndpoint"),RnG=new g.bj("webPlayerShareEntityServiceEndpoint");g.Il=new g.bj("urlEndpoint");g.xu=new g.bj("watchEndpoint");var oIz=new g.bj("watchPlaylistEndpoint");g.gII=new g.bj("offlineOrchestrationActionCommand");var Ig1=new g.bj("compositeVideoOverlayRenderer");var AGh=new g.bj("miniplayerRenderer");var xwU=new g.bj("paidContentOverlayRenderer");var lqo=new g.bj("playerMutedAutoplayOverlayRenderer"),Q13=new g.bj("playerMutedAutoplayEndScreenRenderer");var FKC=new g.bj("unserializedPlayerResponse"),LOG=new g.bj("unserializedPlayerResponse");var UAh=new g.bj("playlistEditEndpoint");var WT;g.rg=new g.bj("buttonRenderer");WT=new g.bj("toggleButtonRenderer");var kM5=new g.bj("counterfactualRenderer");var dAh=new g.bj("resolveUrlCommandMetadata");var t$Z=new g.bj("modifyChannelNotificationPreferenceEndpoint");var qL3=new g.bj("pingingEndpoint");var KaI=new g.bj("unsubscribeEndpoint");g.ZJ=new g.bj("subscribeButtonRenderer");var WaJ=new g.bj("subscribeEndpoint");var wK$=new g.bj("buttonViewModel");var rXC=new g.bj("qrCodeRenderer");var pma={QDS:"LIVING_ROOM_APP_MODE_UNSPECIFIED",h6H:"LIVING_ROOM_APP_MODE_MAIN",Wwu:"LIVING_ROOM_APP_MODE_KIDS",lyN:"LIVING_ROOM_APP_MODE_MUSIC",R9A:"LIVING_ROOM_APP_MODE_UNPLUGGED",Sir:"LIVING_ROOM_APP_MODE_GAMING"};var sBp=new g.bj("autoplaySwitchButtonRenderer");var sh,TYI,fUl,IG3;sh=new g.bj("decoratedPlayerBarRenderer");TYI=new g.bj("chapteredPlayerBarRenderer");fUl=new g.bj("multiMarkersPlayerBarRenderer");IG3=new g.bj("chapterRenderer");g.rfp=new g.bj("markerRenderer");var sk3=new g.bj("decoratedPlayheadRenderer");var GfG=new g.bj("desktopOverlayConfigRenderer");var DgC=new g.bj("engagementPanelSectionListRenderer");var aU5=new g.bj("gatedActionsOverlayViewModel");var biG=new g.bj("heatMarkerRenderer");var NYU=new g.bj("heatmapRenderer");var lU7=new g.bj("watchToWatchTransitionRenderer");var dwo=new g.bj("playlistPanelRenderer");var XHJ=new g.bj("productUpsellSuggestedActionViewModel");var H5z=new g.bj("suggestedActionTimeRangeTrigger"),TcG=new g.bj("suggestedActionsRenderer"),$A5=new g.bj("suggestedActionRenderer");var nRo=new g.bj("timedMarkerDecorationRenderer");var tGo=new g.bj("cipher");var aqU=new g.bj("playerVars");var JBo=new g.bj("playerVars");var Xg=g.WH.window,YJZ,kZW,Ph=(Xg==null?void 0:(YJZ=Xg.yt)==null?void 0:YJZ.config_)||(Xg==null?void 0:(kZW=Xg.ytcfg)==null?void 0:kZW.data_)||{};g.TZ("yt.config_",Ph);var h6=[];var Twm=/^[\w.]*$/,K3G={q:!0,search_query:!0},tXG=String(LJ);var ov=new function(){var m=window.document;this.Z=window;this.L=m}; g.TZ("yt.ads_.signals_.getAdSignalsString",function(m){return J6(A6(m))});g.uz();var Y7m="XMLHttpRequest"in g.WH?function(){return new XMLHttpRequest}:null;var rGI="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.b(rGI);var D1o={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-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},F3l="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.b(rGI)),uJ7=!1,S7$=rt;g.t(NB,aA);S6.prototype.then=function(m,V,O){return this.Z?this.Z.then(m,V,O):this.D===1&&m?(m=m.call(O,this.L))&&typeof m.then==="function"?m:e6(m):this.D===2&&V?(m=V.call(O,this.L))&&typeof m.then==="function"?m:Iv(m):this}; S6.prototype.getValue=function(){return this.L}; S6.prototype.$goog_Thenable=!0;var uB=!1;var GN=Ob||h8;var Qb3=/^([0-9\.]+):([0-9\.]+)$/;g.t(A8,aA);A8.prototype.name="BiscottiError";g.t(g3,aA);g3.prototype.name="BiscottiMissingError";var Vba={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Ub=null;var H5p=g.BX(["data-"]),EsX={};var cGn=0,d3=g.Xm?"webkit":y5?"moz":g.AY?"ms":g.z7?"o":"",DAM=g.$I("ytDomDomGetNextId")||function(){return++cGn}; g.TZ("ytDomDomGetNextId",DAM);var xOI={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};Tv.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; Tv.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; Tv.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var $k=g.WH.ytEventsEventsListeners||{};g.TZ("ytEventsEventsListeners",$k);var gs0=g.WH.ytEventsEventsCounter||{count:0};g.TZ("ytEventsEventsCounter",gs0);var tbX=pK(function(){var m=!1;try{var V=Object.defineProperty({},"passive",{get:function(){m=!0}}); window.addEventListener("test",null,V)}catch(O){}return m}),ADC=pK(function(){var m=!1; try{var V=Object.defineProperty({},"capture",{get:function(){m=!0}}); window.addEventListener("test",null,V)}catch(O){}return m});var HT;HT=window;g.TN=HT.ytcsi&&HT.ytcsi.now?HT.ytcsi.now:HT.performance&&HT.performance.timing&&HT.performance.now&&HT.performance.timing.navigationStart?function(){return HT.performance.timing.navigationStart+HT.performance.now()}:function(){return(new Date).getTime()};g.Fh(DN,g.Z);DN.prototype.Qt=function(m){m.Z===void 0&&RGG(m);var V=m.Z;m.L===void 0&&RGG(m);this.Z=new g.yS(V,m.L)}; DN.prototype.Er=function(){return this.Z||new g.yS}; DN.prototype.Zu=function(){if(this.Z){var m=(0,g.TN)();if(this.T!=0){var V=this.N,O=this.Z,h=V.x-O.x;V=V.y-O.y;h=Math.sqrt(h*h+V*V)/(m-this.T);this.L[this.D]=Math.abs((h-this.K)/this.K)>.5?1:0;for(O=V=0;O<4;O++)V+=this.L[O]||0;V>=3&&this.J();this.K=h}this.T=m;this.N=this.Z;this.D=(this.D+1)%4}}; DN.prototype.d0=function(){g.XM(this.V);g.kk(this.Ae)};g.t(N2,g.Z);N2.prototype.C=function(m,V,O,h,w){O=g.yf((0,g.IA)(O,h||this.Aj));O={target:m,name:V,callback:O};var y;w&&tbX()&&(y={passive:!0});m.addEventListener(V,O.callback,y);this.N.push(O);return O}; N2.prototype.yu=function(m){for(var V=0;V=F.lP)||X.Z.version>=z||X.Z.objectStoreNames.contains(n)||r.push(n)}E=r;if(E.length===0){K.Te(5);break}q=Object.keys(O.options.Q5); M=C.objectStoreNames();if(O.K<$4("ytidb_reopen_db_retries",0))return O.K++,C.close(),q9(new g.Re("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:O.name,expectedObjectStores:q,foundObjectStores:M})),K.return(m());if(!(O.T<$4("ytidb_remake_db_retries",1))){K.Te(6);break}O.T++;return g.I(K,O.delete(),7);case 7:return q9(new g.Re("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:O.name,expectedObjectStores:q,foundObjectStores:M})),K.return(m());case 6:throw new oe(M,q);case 5:return K.return(C);case 2:f=g.qA(K); if(f instanceof DOMException?f.name!=="VersionError":"DOMError"in self&&f instanceof DOMError?f.name!=="VersionError":!(f instanceof Object&&"message"in f)||f.message!=="An attempt was made to open a database using a lower version than the existing version."){K.Te(8);break}return g.I(K,O.L(O.name,void 0,Object.assign({},w,{upgrade:void 0})),9);case 9:x=K.L;R=x.Z.version;if(O.options.version!==void 0&&R>O.options.version+1)throw x.close(),O.D=!1,LwX(O,R);return K.return(x);case 8:throw V(),f instanceof Error&&!g.Tm("ytidb_async_stack_killswitch")&&(f.stack=f.stack+"\n"+L.substring(L.indexOf("\n")+1)),Ud(f,O.name,"",(A=O.options.version)!=null?A:-1);}})} function V(){O.Z===h&&(O.Z=void 0)} var O=this;if(!this.D)throw LwX(this);if(this.Z)return this.Z;var h,w={blocking:function(y){y.close()}, closed:V,vZr:V,upgrade:this.options.upgrade};return this.Z=h=m()};var ae=new sd("YtIdbMeta",{Q5:{databases:{lP:1}},upgrade:function(m,V){V(1)&&g.kB(m,"databases",{keyPath:"actualName"})}});var lC,BE=new function(){}(new function(){});new g.R4;g.t(Va,sd);Va.prototype.L=function(m,V,O){O=O===void 0?{}:O;return(this.options.shared?oao:Ra0)(m,V,Object.assign({},O))}; Va.prototype.delete=function(m){m=m===void 0?{}:m;return(this.options.shared?dX5:gaU)(this.name,m)};var Z5A={},Kw3=g.Oi("ytGcfConfig",{Q5:(Z5A.coldConfigStore={lP:1},Z5A.hotConfigStore={lP:1},Z5A),shared:!1,upgrade:function(m,V){V(1)&&(g.n3(g.kB(m,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.n3(g.kB(m,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.t(wM,g.Z);wM.prototype.d0=function(){for(var m=g.D(this.L),V=m.next();!V.done;V=m.next()){var O=this.Z;V=O.indexOf(V.value);V>=0&&O.splice(V,1)}this.L.length=0;g.Z.prototype.d0.call(this)};Ei.prototype.EV=function(m){this.hotHashData=m;g.TZ("yt.gcf.config.hotHashData",this.hotHashData||null)};var sAM=typeof TextEncoder!=="undefined"?new TextEncoder:null,ENp=sAM?function(m){return sAM.encode(m)}:function(m){m=g.uw(m); for(var V=new Uint8Array(m.length),O=0;O=V?!1:!0}; g.U.SN=function(){var m=this;if(!Dv(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.ac.MD("QUEUED",this.Xh).then(function(V){V&&!m.Bo(V,m.G3)?m.M2.B1(function(){return g.u(function(O){if(O.Z==1)return V.id===void 0?O.Te(2):g.I(O,m.ac.lI(V.id,m.Xh),2);m.SN();g.j$(O)})}):m.Hj.KC()&&m.hF()})};var nn;var Gg5={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,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71, visualElementShown:72,visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87, spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137, vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129, buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165, buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177, transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186, outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205, ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218, watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243, deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267, ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293, watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317, tvhtml5UnexpectedRestart:319,tvhtml5DeviceStorageStats:535,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,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501, parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297, biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456, youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486, crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511, embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532,dnaRecapScreenshotEvent:534, mdxLocalNetworkPermissionRequestEvent:536,mdxLocalNetworkPermissionResponseEvent:537,sessionReplayEvent:538,sessionReplayStatusEvent:539,loggingReliabilityProbe:540};var aM$={},YMp=g.Oi("ServiceWorkerLogsDatabase",{Q5:(aM$.SWHealthLog={lP:1},aM$),shared:!0,upgrade:function(m,V){V(1)&&g.n3(g.kB(m,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var eM={},bY7=0;var uu;Zv.prototype.requestComplete=function(m,V){V&&(this.L=!0);m=this.removeParams(m);this.Z.get(m)||this.Z.set(m,V)}; Zv.prototype.isEndpointCFR=function(m){m=this.removeParams(m);return(m=this.Z.get(m))?!1:m===!1&&this.L?!0:null}; Zv.prototype.removeParams=function(m){return m.split("?")[0]}; Zv.prototype.removeParams=Zv.prototype.removeParams;Zv.prototype.isEndpointCFR=Zv.prototype.isEndpointCFR;Zv.prototype.requestComplete=Zv.prototype.requestComplete;Zv.getInstance=IDa;g.t(si,g.dw);g.U=si.prototype;g.U.KC=function(){return this.Z.KC()}; g.U.TU=function(m){this.Z.Z=m}; g.U.zrr=function(){var m=window.navigator.onLine;return m===void 0?!0:m}; g.U.SS=function(){this.L=!0}; g.U.listen=function(m,V){return this.Z.listen(m,V)}; g.U.u$=function(m){return aw(this.Z,m)}; si.prototype.sendNetworkCheckRequest=si.prototype.u$;si.prototype.listen=si.prototype.listen;si.prototype.enableErrorFlushing=si.prototype.SS;si.prototype.getWindowStatus=si.prototype.zrr;si.prototype.networkStatusHint=si.prototype.TU;si.prototype.isNetworkAvailable=si.prototype.KC;si.getInstance=epX;g.t(g.FE,g.dw);g.FE.prototype.KC=function(){var m=g.$I("yt.networkStatusManager.instance.isNetworkAvailable");return m?m.bind(this.L)():!0}; g.FE.prototype.TU=function(m){var V=g.$I("yt.networkStatusManager.instance.networkStatusHint").bind(this.L);V&&V(m)}; g.FE.prototype.u$=function(m){var V=this,O;return g.u(function(h){O=g.$I("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(V.L);return g.Tm("skip_network_check_if_cfr")&&IDa().isEndpointCFR("generate_204")?h.return(new Promise(function(w){var y;V.TU(((y=window.navigator)==null?void 0:y.onLine)||!0);w(V.KC())})):O?h.return(O(m)):h.return(!0)})};var aS;g.t(iu,NC);iu.prototype.writeThenSend=function(m,V){V||(V={});V=pn(m,V);g.QJ()||(this.Z=!1);NC.prototype.writeThenSend.call(this,m,V)}; iu.prototype.sendThenWrite=function(m,V,O){V||(V={});V=pn(m,V);g.QJ()||(this.Z=!1);NC.prototype.sendThenWrite.call(this,m,V,O)}; iu.prototype.sendAndWrite=function(m,V){V||(V={});V=pn(m,V);g.QJ()||(this.Z=!1);NC.prototype.sendAndWrite.call(this,m,V)}; iu.prototype.awaitInitialization=function(){return this.D.promise};var sMU=g.WH.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.TZ("ytNetworklessLoggingInitializationOptions",sMU);g.Bb.prototype.isReady=function(){!this.config_&&u0o()&&(this.config_=g.MC());return!!this.config_};var i5h,vb,mQ;i5h=g.WH.ytPubsubPubsubInstance||new g.rO;vb=g.WH.ytPubsubPubsubSubscribedKeys||{};mQ=g.WH.ytPubsubPubsubTopicToKeys||{};g.Pb=g.WH.ytPubsubPubsubIsSynchronous||{};g.rO.prototype.subscribe=g.rO.prototype.subscribe;g.rO.prototype.unsubscribeByKey=g.rO.prototype.jt;g.rO.prototype.publish=g.rO.prototype.publish;g.rO.prototype.clear=g.rO.prototype.clear;g.TZ("ytPubsubPubsubInstance",i5h);g.TZ("ytPubsubPubsubTopicToKeys",mQ);g.TZ("ytPubsubPubsubIsSynchronous",g.Pb); g.TZ("ytPubsubPubsubSubscribedKeys",vb);var BO7={};g.t(EL,g.Z);EL.prototype.append=function(m){if(!this.L)throw Error("This does not support the append operation");m=m.Ir();this.Ir().appendChild(m)}; g.t(qH,EL);qH.prototype.Ir=function(){return this.Z};g.t(MH,g.Z);MH.prototype.onTouchStart=function(m){this.J=!0;this.L=m.touches.length;this.Z.isActive()&&(this.Z.stop(),this.K=!0);m=m.touches;this.N=vNo(this,m)||m.length!=1;var V=m.item(0);this.N||!V?this.Qt=this.V=Infinity:(this.V=V.clientX,this.Qt=V.clientY);for(V=this.D.length=0;V=0)}if(V||m&&Math.pow(m.clientX-this.V,2)+Math.pow(m.clientY-this.Qt,2)>25)this.T=!0}; MH.prototype.onTouchEnd=function(m){var V=m.changedTouches;V&&this.J&&this.L==1&&!this.T&&!this.K&&!this.N&&vNo(this,V)&&(this.Zu=m,this.Z.start());this.L=m.touches.length;this.L===0&&(this.T=this.J=!1,this.D.length=0);this.K=!1};var fM=Date.now().toString();var Ac={};var Hs=Symbol("injectionDeps");tc.prototype.toString=function(){return"InjectionToken("+this.name+")"}; Oem.prototype.resolve=function(m){return m instanceof KM?TF(this,m.key,[],!0):TF(this,m,[])};var $7;var k7=window;var NH=g.Tm("web_enable_lifecycle_monitoring")&&ro()!==0,qnI=g.Tm("web_enable_lifecycle_monitoring");Jxl.prototype.cancel=function(){for(var m=g.D(this.Z),V=m.next();!V.done;V=m.next())V=V.value,V.jobId===void 0||V.Ek||this.scheduler.gI(V.jobId),V.Ek=!0;this.L.resolve()};g.U=b_.prototype;g.U.install=function(m){this.plugins.push(m);return this}; g.U.uninstall=function(){var m=this;g.AG.apply(0,arguments).forEach(function(V){V=m.plugins.indexOf(V);V>-1&&m.plugins.splice(V,1)})}; g.U.transition=function(m,V){var O=this;NH&&j8U(this.state);var h=this.transitions.find(function(y){return Array.isArray(y.from)?y.from.find(function(L){return L===O.state&&y.to===m}):y.from===O.state&&y.to===m}); if(h){this.L&&(CjU(this.L),this.L=void 0);Mk5(this,m,V);this.state=m;NH&&cs(this.state);h=h.action.bind(this);var w=this.plugins.filter(function(y){return y[m]}).map(function(y){return y[m]}); h(EFl(this,w),V)}else throw Error("no transition specified from "+this.state+" to "+m);}; g.U.EFe=function(m){var V=g.AG.apply(1,arguments);g.Od();for(var O=g.D(m),h=O.next(),w={};!h.done;w={fF:void 0},h=O.next())w.fF=h.value,NqC(function(y){return function(){S8(y.fF.name);e8(function(){return y.fF.callback.apply(y.fF,g.b(V))}); IH(y.fF.name)}}(w))}; g.U.qzr=function(m){var V=g.AG.apply(1,arguments),O,h,w,y;return g.u(function(L){L.Z==1&&(g.Od(),O=g.D(m),h=O.next(),w={});if(L.Z!=3){if(h.done)return L.Te(0);w.EX=h.value;w.MF=void 0;y=function(C){return function(){S8(C.EX.name);var E=e8(function(){return C.EX.callback.apply(C.EX,g.b(V))}); vO(E)?C.MF=g.Tm("web_lifecycle_error_handling_killswitch")?E.then(function(){IH(C.EX.name)}):E.then(function(){IH(C.EX.name)},function(q){LPX(q); IH(C.EX.name)}):IH(C.EX.name)}}(w); NqC(y);return w.MF?g.I(L,w.MF,3):L.Te(3)}w={EX:void 0,MF:void 0};h=O.next();return L.Te(2)})}; g.U.Rq=function(m){var V=g.AG.apply(1,arguments),O=this,h=m.map(function(w){return{Jr:function(){S8(w.name);e8(function(){return w.callback.apply(w,g.b(V))}); IH(w.name)}, priority:nM(O,w)}}); h.length&&(this.L=new Jxl(h))}; g.ip.Object.defineProperties(b_.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var zF;g.t(u_,b_);u_.prototype.K=function(m,V){var O=this;this.Z=g.mm(0,function(){O.currentState==="application_navigating"&&O.transition("none")},5E3); m(V==null?void 0:V.event)}; u_.prototype.N=function(m,V){this.Z&&(g.GV.gI(this.Z),this.Z=null);m(V==null?void 0:V.event)};var Mb=[];g.TZ("yt.logging.transport.getScrapedGelPayloads",function(){return Mb});ZB.prototype.storePayload=function(m,V){m=sL(m);this.store[m]?this.store[m].push(V):(this.L={},this.store[m]=[V]);this.Z++;g.Tm("more_accurate_gel_parser")&&(V=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(V));return m}; ZB.prototype.smartExtractMatchingEntries=function(m){if(!m.keys.length)return[];for(var V=aH(this,m.keys.splice(0,1)[0]),O=[],h=0;h=0){h=!1;break a}}h=!0}h&&(V=nD(V))&&this.IL(V)}}; g.U.iQ=function(m){return m}; g.U.onTouchStart=function(m){this.mS.onTouchStart(m)}; g.U.onTouchMove=function(m){this.mS.onTouchMove(m)}; g.U.onTouchEnd=function(m){if(this.mS)this.mS.onTouchEnd(m)}; g.U.IL=function(m){this.layoutId?this.sH.executeCommand(m,this.layoutId):(m=new g.no("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.kL(m))}; g.U.createServerVe=function(m,V){this.api.createServerVe(m,this);this.api.setTrackingParams(m,V)}; g.U.logVisibility=function(m,V){this.api.hasVe(m)&&this.api.logVisibility(m,V,this.interactionLoggingClientData)}; g.U.d0=function(){this.clear(null);this.yu(this.nA);for(var m=g.D(this.v6),V=m.next();!V.done;V=m.next())this.yu(V.value);g.ED.prototype.d0.call(this)};g.t(NP,qP); NP.prototype.init=function(m,V,O){qP.prototype.init.call(this,m,V,O);this.Z=V;if(V.text==null&&V.icon==null)g.cj(Error("ButtonRenderer did not have text or an icon set."));else{switch(V.style||null){case "STYLE_UNKNOWN":m="ytp-ad-button-link";break;default:m=null}m!=null&&g.EM(this.element,m);V.text!=null&&(m=g.fy(V.text),g.v8(m)||(this.element.setAttribute("aria-label",m),this.D=new g.ED({G:"span",X:"ytp-ad-button-text",c6:m}),g.a(this,this.D),this.D.g0(this.element)));V.accessibilityData&&V.accessibilityData.accessibilityData&& V.accessibilityData.accessibilityData.label&&!g.v8(V.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",V.accessibilityData.accessibilityData.label);V.icon!=null&&(V=Du(V.icon,this.T),V!=null&&(this.L=new g.ED({G:"span",X:"ytp-ad-button-icon",S:[V]}),g.a(this,this.L)),this.K?Ny(this.element,this.L.element,0):this.L.g0(this.element))}}; NP.prototype.clear=function(){this.hide()}; NP.prototype.onClick=function(m){qP.prototype.onClick.call(this,m);m=g.D(x23(this));for(var V=m.next();!V.done;V=m.next())V=V.value,this.layoutId?this.sH.executeCommand(V,this.layoutId):g.kL(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.t(bc,g.Z);bc.prototype.d0=function(){this.L&&g.kk(this.L);this.Z.clear();ny=null;g.Z.prototype.d0.call(this)}; bc.prototype.register=function(m,V){V&&this.Z.set(m,V)}; var ny=null;g.t(eO,qP); eO.prototype.init=function(m,V,O){qP.prototype.init.call(this,m,V,O);m=V.hoverText||null;V=V.button&&g.d(V.button,g.rg)||null;V==null?g.kL(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new NP(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,void 0,void 0,void 0,void 0,this.D),g.a(this,this.button),this.button.init(hh("button"),V,this.macros),m&&this.button.element.setAttribute("aria-label",g.fy(m)),this.button.g0(this.element),this.V&&!g.CY(this.button.element, "ytp-ad-clickable")&&g.EM(this.button.element,"ytp-ad-clickable"),this.D&&g.EM(this.button.element,"ytp-ad-hover-text-button--clean-player"),m&&(this.L=new g.ED({G:"div",X:"ytp-ad-hover-text-container"}),this.K&&(V=new g.ED({G:"div",X:"ytp-ad-hover-text-callout"}),V.g0(this.L.element),g.a(this,V)),g.a(this,this.L),this.L.g0(this.element),V=SO(m),Ny(this.L.element,V,0)),this.show())}; eO.prototype.hide=function(){this.button&&this.button.hide();this.L&&this.L.hide();qP.prototype.hide.call(this)}; eO.prototype.show=function(){this.button&&this.button.show();qP.prototype.show.call(this)};g.t(zY,qP); zY.prototype.init=function(m,V,O){qP.prototype.init.call(this,m,V,O);O=(m=V.thumbnail)&&uc(m)||"";g.v8(O)?Math.random()<.01&&g.cj(Error("Found AdImage without valid image URL")):(this.Z?g.wb(this.element,"backgroundImage","url("+O+")"):WI(this.element,{src:O}),WI(this.element,{alt:m&&m.accessibility&&m.accessibility.label||""}),V&&V.adRendererCommands&&V.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; zY.prototype.clear=function(){this.hide()};g.t(Zu,qP);g.U=Zu.prototype;g.U.hide=function(){qP.prototype.hide.call(this);this.D&&this.D.focus()}; g.U.show=function(){this.D=document.activeElement;qP.prototype.show.call(this);this.T.focus()}; g.U.init=function(m,V,O){qP.prototype.init.call(this,m,V,O);this.L=V;V.dialogMessages||V.title!=null?V.confirmLabel==null?g.kL(Error("ConfirmDialogRenderer.confirmLabel was not set.")):V.cancelLabel==null?g.kL(Error("ConfirmDialogRenderer.cancelLabel was not set.")):A8G(this,V):g.kL(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.U.clear=function(){g.np(this.Z);this.hide()}; g.U.ET=function(){this.hide()}; g.U.CI=function(){var m=this.L.cancelEndpoint;m&&(this.layoutId?this.sH.executeCommand(m,this.layoutId):g.kL(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.U.F2=function(){var m=this.L.confirmNavigationEndpoint||this.L.confirmEndpoint;m&&(this.layoutId?this.sH.executeCommand(m,this.layoutId):g.kL(Error("Missing layoutId for confirm dialog.")));this.hide()};g.t(sD,qP);g.U=sD.prototype; g.U.init=function(m,V,O){qP.prototype.init.call(this,m,V,O);this.D=V;if(V.defaultText==null&&V.defaultIcon==null)g.kL(Error("ToggleButtonRenderer must have either text or icon set."));else if(V.defaultIcon==null&&V.toggledIcon!=null)g.kL(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(V.style){switch(V.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":m="ytp-ad-toggle-button-default-style";break;default:m=null}m!=null&&g.EM(this.T,m)}m={};V.defaultText? (O=g.fy(V.defaultText),g.v8(O)||(m.buttonText=O,this.api.j().experiments.w0("a11y_h5_associate_survey_question")||this.Z.setAttribute("aria-label",O),this.api.j().experiments.w0("fix_h5_toggle_button_a11y")&&this.L.setAttribute("aria-label",O))):g.gb(this.iH,!1);V.defaultTooltip&&(m.tooltipText=V.defaultTooltip,this.Z.hasAttribute("aria-label")||this.L.setAttribute("aria-label",V.defaultTooltip));V.defaultIcon?(O=Du(V.defaultIcon),this.updateValue("untoggledIconTemplateSpec",O),V.toggledIcon?(this.Ae= !0,O=Du(V.toggledIcon),this.updateValue("toggledIconTemplateSpec",O)):(g.gb(this.V,!0),g.gb(this.K,!1)),g.gb(this.Z,!1)):g.gb(this.L,!1);g.c8(m)||this.update(m);V.isToggled&&(g.EM(this.T,"ytp-ad-toggle-button-toggled"),this.toggleButton(V.isToggled));Fu(this);this.C(this.element,"change",this.xR);this.show()}}; g.U.onClick=function(m){this.v6.length>0&&(this.toggleButton(!this.isToggled()),this.xR());qP.prototype.onClick.call(this,m)}; g.U.xR=function(){g.xN(this.T,"ytp-ad-toggle-button-toggled",this.isToggled());for(var m=g.D(U2m(this,this.isToggled())),V=m.next();!V.done;V=m.next())V=V.value,this.layoutId?this.sH.executeCommand(V,this.layoutId):g.kL(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);Fu(this)}; g.U.clear=function(){this.hide()}; g.U.toggleButton=function(m){g.xN(this.T,"ytp-ad-toggle-button-toggled",m);this.Z.checked=m;Fu(this)}; g.U.isToggled=function(){return this.Z.checked};g.t(al,N2);al.prototype.K=function(m){if(Array.isArray(m)){m=g.D(m);for(var V=m.next();!V.done;V=m.next())V=V.value,V instanceof d2a&&this.D(V)}};g.t(ic,qP);g.U=ic.prototype;g.U.init=function(m,V,O){qP.prototype.init.call(this,m,V,O);V.reasons?V.confirmLabel==null?g.kL(Error("AdFeedbackRenderer.confirmLabel was not set.")):(V.cancelLabel==null&&g.cj(Error("AdFeedbackRenderer.cancelLabel was not set.")),V.title==null&&g.cj(Error("AdFeedbackRenderer.title was not set.")),XZp(this,V)):g.kL(Error("AdFeedbackRenderer.reasons were not set."))}; g.U.clear=function(){r3(this.K);r3(this.V);this.T.length=0;this.hide()}; g.U.hide=function(){this.Z&&this.Z.hide();this.L&&this.L.hide();qP.prototype.hide.call(this);this.D&&this.D.focus()}; g.U.show=function(){this.Z&&this.Z.show();this.L&&this.L.show();this.D=document.activeElement;qP.prototype.show.call(this);this.K.focus()}; g.U.Zm=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.U.THu=function(){this.hide()}; GY.prototype.Ir=function(){return this.Z.element}; GY.prototype.getCommand=function(){return this.L}; GY.prototype.isChecked=function(){return this.D.checked};g.t(py,Zu);py.prototype.ET=function(m){Zu.prototype.ET.call(this,m);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; py.prototype.CI=function(m){Zu.prototype.CI.call(this,m);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; py.prototype.F2=function(m){Zu.prototype.F2.call(this,m);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.t(Bn,qP);g.U=Bn.prototype; g.U.init=function(m,V,O){qP.prototype.init.call(this,m,V,O);this.K=V;if(V.dialogMessage==null&&V.title==null)g.kL(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{V.confirmLabel==null&&g.cj(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(m=V.closeOverlayRenderer&&g.d(V.closeOverlayRenderer,g.rg)||null)this.Z=new NP(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.a(this,this.Z),this.Z.init(hh("button"),m,this.macros),this.Z.g0(this.element);V.title&&(m=g.fy(V.title),this.updateValue("title",m));if(V.adReasons)for(m=V.adReasons,O=0;O=this.H6?(this.Ae.hide(),this.Mf=!0,this.publish("i")):this.D&&this.D.isTemplated()&&(m=Math.max(0,Math.ceil((this.H6-m)/1E3)),m!=this.Xr&&(vn(this.D,{TIME_REMAINING:String(m)}),this.Xr=m)))}};g.t(yM,Pn);g.U=yM.prototype; g.U.init=function(m,V,O){Pn.prototype.init.call(this,m,V,O);if(V.image&&V.image.thumbnail)if(V.headline)if(V.description)if((m=V.actionButton&&g.d(V.actionButton,g.rg))&&m.navigationEndpoint){var h=this.api.getVideoData(2);if(h!=null)if(V.image&&V.image.thumbnail){var w=V.image.thumbnail.thumbnails;w!=null&&w.length>0&&g.v8(g.Gp(w[0].url))&&(w[0].url=h.profilePicture)}else g.cj(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.D.init(hh("ad-image"),V.image,O);this.K.init(hh("ad-text"), V.headline,O);this.T.init(hh("ad-text"),V.description,O);this.L.init(hh("button"),m,O);O=vA(this.L.element);Qx(this.L.element,O+" This link opens in new tab");this.Ae=m.navigationEndpoint;this.api.Mx()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.VE.bind(this));this.iH=V.startMs||0;mi(this)}else g.kL(Error("FlyoutCtaRenderer has no valid action button."));else g.kL(Error("FlyoutCtaRenderer has no description AdText."));else g.kL(Error("FlyoutCtaRenderer has no headline AdText.")); else g.cj(Error("FlyoutCtaRenderer has no image."))}; g.U.onClick=function(m){Pn.prototype.onClick.call(this,m);this.api.pauseVideo();!g.nK(this.L.element,m.target)&&this.Ae&&(this.layoutId?this.sH.executeCommand(this.Ae,this.layoutId):g.kL(Error("Missing layoutId for flyout cta.")))}; g.U.Es=function(){if(this.Z){var m=this.Z.getProgressState();(m&&m.current||this.H6)&&1E3*m.current>=this.iH&&(VM(this),g.Ma(this.element,"ytp-flyout-cta-inactive"),this.L.element.removeAttribute("tabIndex"))}}; g.U.HP=function(){this.clear()}; g.U.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.VE.bind(this))}; g.U.show=function(){this.L&&this.L.show();Pn.prototype.show.call(this)}; g.U.hide=function(){this.L&&this.L.hide();Pn.prototype.hide.call(this)}; g.U.VE=function(m){m=="hidden"?this.show():this.hide()};g.t(jm,qP);g.U=jm.prototype; g.U.init=function(m,V,O){qP.prototype.init.call(this,m,V,O);this.Z=V;if(this.Z.rectangle)for(m=this.Z.likeButton&&g.d(this.Z.likeButton,WT),V=this.Z.dislikeButton&&g.d(this.Z.dislikeButton,WT),this.D.init(hh("toggle-button"),m,O),this.L.init(hh("toggle-button"),V,O),this.C(this.element,"change",this.nt),this.T.show(100),this.show(),O=g.D(this.Z&&this.Z.impressionCommands||[]),m=O.next();!m.done;m=O.next())m=m.value,this.layoutId?this.sH.executeCommand(m,this.layoutId):g.kL(Error("Missing layoutId for instream user sentiment."))}; g.U.clear=function(){this.hide()}; g.U.hide=function(){this.D.hide();this.L.hide();qP.prototype.hide.call(this)}; g.U.show=function(){this.D.show();this.L.show();qP.prototype.show.call(this)}; g.U.nt=function(){jh5(this.element,"ytp-ad-instream-user-sentiment-selected");this.Z.postMessageAction&&this.api.bH("onYtShowToast",this.Z.postMessageAction);this.T.hide()}; g.U.onClick=function(m){this.v6.length>0&&this.nt();qP.prototype.onClick.call(this,m)};g.t(LX,g.Z);g.U=LX.prototype;g.U.d0=function(){this.reset();g.Z.prototype.d0.call(this)}; g.U.reset=function(){g.np(this.T);this.N=!1;this.Z&&this.Z.stop();this.K.stop();this.D&&(this.D=!1,this.J.play())}; g.U.start=function(){this.reset();this.T.C(this.L,"mouseover",this.W$,this);this.T.C(this.L,"mouseout",this.SD,this);this.Zu&&(this.T.C(this.L,"focusin",this.W$,this),this.T.C(this.L,"focusout",this.SD,this));this.Z?this.Z.start():(this.N=this.D=!0,g.wb(this.L,{opacity:this.Qt}))}; g.U.W$=function(){this.D&&(this.D=!1,this.J.play());this.K.stop();this.Z&&this.Z.stop()}; g.U.SD=function(){this.N?this.K.start():this.Z&&this.Z.start()}; g.U.Jb=function(){this.D||(this.D=!0,this.V.play(),this.N=!0)};var Sb1=[new JR("b.f_",0),new JR("j.s_",2),new JR("r.s_",4),new JR("e.h_",6),new JR("i.s_",8),new JR("s.t_",10),new JR("p.h_",12),new JR("s.i_",14),new JR("f.i_",16),new JR("a.b_",18),new JR("a.o_"),new JR("g.o_",22),new JR("p.i_",24),new JR("p.m_"),new JR("n.k_",20),new JR("i.f_"),new JR("a.s_"),new JR("m.c_"),new JR("n.h_",26),new JR("o.p_"),new JR("m.p_",28),new JR("o.a_"),new JR("d.p_"),new JR("e.i_")].reduce(function(m,V){m[V.L]=V;return m},{});g.t(xW,Pn);g.U=xW.prototype; g.U.init=function(m,V,O){Pn.prototype.init.call(this,m,V,O);this.Ae=V;(this.iH=ey$(this))&&g.cj(Error("hasAdControlInClickCommands_ is true."));if(!V||g.c8(V))g.kL(Error("SkipButtonRenderer was not specified or empty."));else if(!V.message||g.c8(V.message))g.kL(Error("SkipButtonRenderer.message was not specified or empty."));else if(m=this.K?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},V=this.api.j().Y("delhi_modern_web_player_icons"),V=Du(m,!1,!1,V),V==null?g.kL(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+m.iconType+ ".")):(this.api.j().Y("disable_touch_events_on_skip_button")&&(V.B=Object.assign({},V.B,{"aria-hidden":"true",focusable:"false"})),this.D=new g.ED({G:"button",KA:[this.K?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],S:[{G:"span",X:this.K?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",S:[V]}]}),g.a(this,this.D),this.D.g0(this.T.element),this.L=new Qh(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,"ytp-ad-skip-button-text"),this.K&&this.L.element.classList.add("ytp-ad-skip-button-text-centered"), this.L.init(hh("ad-text"),this.Ae.message,O),g.a(this,this.L),Ny(this.D.element,this.L.element,0)),!this.api.j().Y("disable_touch_events_on_skip_button")){var h=h===void 0?null:h;O=this.api.j();!(this.v6.length>0)&&O.L&&(u0?0:"ontouchstart"in document.documentElement&&(t5m()||KF()))&&(this.yu(this.nA),h&&this.yu(h),this.v6=[this.C(this.element,"touchstart",this.onTouchStart,this),this.C(this.element,"touchmove",this.onTouchMove,this),this.C(this.element,"touchend",this.onTouchEnd,this)])}}; g.U.clear=function(){this.H6.reset();this.hide()}; g.U.hide=function(){this.T.hide();this.L&&this.L.hide();VM(this);Pn.prototype.hide.call(this)}; g.U.onClick=function(m){if(this.D!=null){if(m){var V=m||window.event;V.returnValue=!1;V.preventDefault&&V.preventDefault()}var O;if(bp5(m,{contentCpn:((O=this.api.getVideoData(1))==null?void 0:O.clientPlaybackNonce)||""})===0)this.api.bH("onAbnormalityDetected");else if(Pn.prototype.onClick.call(this,m),this.publish("j"),this.api.bH("onAdSkip"),this.Mf||!this.iH)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.U.iQ=function(m){if(!this.Mf)return this.iH&&ER("SkipButton click commands not pruned while ALC exist"),m;var V,O=(V=g.d(m,g.RR))==null?void 0:V.commands;if(!O)return m;m=[];for(V=0;V=this.K&&uSo(this,!0)};g.t(gr,NP);gr.prototype.init=function(m,V,O){NP.prototype.init.call(this,m,V,O);m=!1;V.text!=null&&(m=g.fy(V.text),m=!g.v8(m));m?V.navigationEndpoint==null?g.cj(Error("No visit advertiser clickthrough provided in renderer,")):V.style!=="STYLE_UNKNOWN"?g.cj(Error("Button style was not a link-style type in renderer,")):this.show():g.cj(Error("No visit advertiser text was present in the renderer."))};g.t(AR,qP); AR.prototype.init=function(m,V,O){qP.prototype.init.call(this,m,V,O);m=V.text;g.v8(MP(m))?g.cj(Error("SimpleAdBadgeRenderer has invalid or empty text")):(m&&m.text&&(V=m.text,this.D&&!this.L&&(V=this.api.j(),V=m.text+" "+(V&&V.L?"\u2022":"\u00b7")),V={text:V,isTemplated:m.isTemplated},m.style&&(V.style=m.style),m.targetId&&(V.targetId=m.targetId),m=new Qh(this.api,this.layoutId,this.interactionLoggingClientData,this.sH),m.init(hh("simple-ad-badge"),V,O),m.g0(this.element),g.a(this,m)),this.show())}; AR.prototype.clear=function(){this.hide()};g.t(UR,wN);g.t(dr,g.yh);g.U=dr.prototype;g.U.RC=function(){return this.durationMs}; g.U.stop=function(){this.Z&&this.handler.yu(this.Z)}; g.U.Yf=function(m){this.L={seekableStart:0,seekableEnd:this.durationMs/1E3,current:m.current};this.publish("h")}; g.U.getProgressState=function(){return this.L}; g.U.Qm=function(m){g.fX(m,2)&&this.publish("g")};g.t(tR,g.yh);g.U=tR.prototype;g.U.RC=function(){return this.durationMs}; g.U.start=function(){this.Z||(this.Z=!0,this.timer.start())}; g.U.stop=function(){this.Z&&(this.Z=!1,this.timer.stop())}; g.U.Yf=function(){this.Kq+=100;var m=!1;this.Kq>this.durationMs&&(this.Kq=this.durationMs,this.timer.stop(),m=!0);this.L={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Kq/1E3};this.publish("h");m&&this.publish("g")}; g.U.getProgressState=function(){return this.L};g.t(Xn,Pn);g.U=Xn.prototype;g.U.init=function(m,V,O){Pn.prototype.init.call(this,m,V,O);var h;if(V==null?0:(h=V.templatedCountdown)==null?0:h.templatedAdText){m=V.templatedCountdown.templatedAdText;if(!m.isTemplated){g.cj(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.L=new Qh(this.api,this.layoutId,this.interactionLoggingClientData,this.sH);this.L.init(hh("ad-text"),m,{});this.L.g0(this.element);g.a(this,this.L)}this.show()}; g.U.clear=function(){this.hide()}; g.U.hide=function(){VM(this);Pn.prototype.hide.call(this)}; g.U.HP=function(){this.hide()}; g.U.Es=function(){if(this.Z!=null){var m=this.Z.getProgressState();if(m!=null&&m.current!=null&&this.L){var V=this.Z instanceof dr?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:m.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.Z instanceof tR?m.seekableEnd:this.api.getDuration(2,!1);m=m.current;var O,h,w=((O=this.api.getVideoData())==null?0:(h=O.Z4)==null?0:h.call(O))?Math.max(V-m,0):V-m;vn(this.L,{FORMATTED_AD_DURATION_REMAINING:String(g.KX(w)), TIME_REMAINING:String(Math.ceil(w))})}}}; g.U.show=function(){mi(this);Pn.prototype.show.call(this)};g.t(H5,Qh);H5.prototype.onClick=function(m){Qh.prototype.onClick.call(this,m);this.api.onAdUxClicked(this.componentType)};g.t($W,qP);$W.prototype.init=function(m,V){qP.prototype.init.call(this,m,V,{});if(m=V.content){g.Sn(this.element,m);var O,h;V=((O=V.interaction)==null?void 0:(h=O.accessibility)==null?void 0:h.label)||m;this.element.setAttribute("aria-label",V)}else g.kL(Error("AdSimpleAttributedString does not have text content"))}; $W.prototype.clear=function(){this.hide()}; $W.prototype.onClick=function(m){qP.prototype.onClick.call(this,m)};g.t(kW,qP); kW.prototype.init=function(m,V){qP.prototype.init.call(this,m,V,{});(m=V.label)&&m.content&&!g.v8(m.content)?(this.adBadgeText.init(hh("ad-simple-attributed-string"),new Th(m)),(V=V.adPodIndex)&&V.content&&!g.v8(V.content)&&(this.Z=new $W(this.api,this.layoutId,this.interactionLoggingClientData,this.sH),this.Z.g0(this.element),g.a(this,this.Z),this.Z.element.classList.add("ytp-ad-badge__pod-index"),this.Z.init(hh("ad-simple-attributed-string"),new Th(V))),this.element.classList.add(this.L?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.kL(Error("No label is returned in AdBadgeViewModel."))}; kW.prototype.show=function(){this.adBadgeText.show();var m;(m=this.Z)==null||m.show();qP.prototype.show.call(this)}; kW.prototype.hide=function(){this.adBadgeText.hide();var m;(m=this.Z)==null||m.hide();qP.prototype.hide.call(this)};g.t(rr,qP);rr.prototype.init=function(m,V){qP.prototype.init.call(this,m,V,{});(m=V.adPodIndex)&&m.content&&!g.v8(m.content)&&(this.Z=new $W(this.api,this.layoutId,this.interactionLoggingClientData,this.sH),this.Z.g0(this.element),g.a(this,this.Z),this.Z.init(hh("ad-simple-attributed-string"),new Th(m)),V.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE"&&this.element.classList.add("ytp-ad-pod-index--autohide"));this.element.classList.add("ytp-ad-pod-index--stark");this.show()}; rr.prototype.show=function(){var m;(m=this.Z)==null||m.show();qP.prototype.show.call(this)}; rr.prototype.hide=function(){var m;(m=this.Z)==null||m.hide();qP.prototype.hide.call(this)};g.t(c5,qP); c5.prototype.init=function(m,V){qP.prototype.init.call(this,m,V,{});if(V!=null&&V.text){var O;if(((O=V.text)==null?0:O.content)&&!g.v8(V.text.content)){this.Z=new g.ED({G:"div",X:"ytp-ad-disclosure-banner__text",c6:V.text.content});g.a(this,this.Z);this.Z.g0(this.element);if(this.api.j().Y("enable_ad_disclosure_banner_a11y_fix")){var h,w,y=(h=V.interaction)==null?void 0:(w=h.accessibility)==null?void 0:w.label;y||(y=V.text.content+" This link opens in new tab");Qx(this.element,y)}else{var L;h=((y= V.interaction)==null?void 0:(L=y.accessibility)==null?void 0:L.label)||V.text.content;this.element.setAttribute("aria-label",h)}var C;if((C=V.interaction)==null?0:C.onTap)this.api.j().Y("remove_chevron_from_ad_disclosure_banner_h5")||(this.L=new g.ED({G:"div",X:"ytp-ad-disclosure-banner__chevron",S:[g.gN()]}),g.a(this,this.L),this.L.g0(this.element)),this.api.j().Y("enable_ad_disclosure_banner_a11y_fix")&&(BA(this.element),this.element.setAttribute("tabindex","0"),this.listen("keydown",this.sJ)); this.show()}}else g.kL(Error("No banner text found in AdDisclosureBanner."))}; c5.prototype.sJ=function(m){if(m.key==="Enter"||m.key===" ")m.preventDefault(),this.element.click()}; c5.prototype.clear=function(){this.hide()};g.t(bE,g.ED);bE.prototype.Yf=function(){var m=this.L.getProgressState(),V=m.seekableEnd;this.api.getPresentingPlayerType()===2&&(V=this.D?this.D/1E3:m.seekableEnd);this.progressBar.style.width=N6(new Db(m.seekableStart,V),m.current,0)*100+"%"}; bE.prototype.onStateChange=function(){g.l0(this.api.j())||(this.api.getPresentingPlayerType()===2?this.Z===-1&&(this.show(),this.Z=this.L.subscribe("h",this.Yf,this),this.Yf()):this.Z!==-1&&(this.hide(),this.L.jt(this.Z),this.Z=-1))};g.t(nX,qP); nX.prototype.init=function(m,V,O,h){qP.prototype.init.call(this,m,V,O);if(V.skipOrPreviewRenderer){if(m=g.d(V.skipOrPreviewRenderer,L7))O=new oR(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,this.L,this.V),O.g0(this.fA),O.init(hh("skip-button"),m,this.macros),g.a(this,O);if(m=g.d(V.skipOrPreviewRenderer,L7))var w=m.skipOffsetMilliseconds}V.brandInteractionRenderer&&(m=V.brandInteractionRenderer.brandInteractionRenderer,O=new jm(this.api,this.layoutId,this.interactionLoggingClientData,this.sH), O.g0(this.iH),O.init(hh("instream-user-sentiment"),m,this.macros),g.a(this,O));if(m=g.d(V,DmA))if(m=g.d(m,DmA))O=new yM(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,this.L,!!V.showWithoutLinkedMediaLayout),g.a(this,O),O.g0(this.K),O.init(hh("flyout-cta"),m,this.macros);h=h&&h.videoAdDurationSeconds;V.adBadgeRenderer&&(O=V.adBadgeRenderer,m=g.d(O,am),m!=null?(O=new kW(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,!1),g.a(this,O),O.g0(this.Z),O.init(hh("ad-badge"), m,this.macros),this.D=O.element):(m=O.simpleAdBadgeRenderer,m==null&&(m={text:{text:"An\u00fancio",isTemplated:!1}}),O=new AR(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,!0),g.a(this,O),O.g0(this.Z),O.init(hh("simple-ad-badge"),m,this.macros)));V.adPodIndex&&(m=g.d(V.adPodIndex,sCh),m!=null&&(O=new rr(this.api,this.layoutId,this.interactionLoggingClientData,this.sH),g.a(this,O),O.g0(this.Z),O.init(hh("ad-pod-index"),m)));V.adDurationRemaining&&!V.showWithoutLinkedMediaLayout&& (m=V.adDurationRemaining.adDurationRemainingRenderer,m==null&&(m={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),h=new Xn(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,this.L,h,!1),g.a(this,h),h.g0(this.Z),h.init(hh("ad-duration-remaining"),m,this.macros));V.adInfoRenderer&&(h=g.d(V.adInfoRenderer,YE))&&(m=new lc(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,this.element,void 0,!1),g.a(this,m),this.D!==null?this.Z.insertBefore(m.element, this.D.nextSibling):m.g0(this.Z),m.init(hh("ad-info-hover-text-button"),h,this.macros));V.visitAdvertiserRenderer&&(m=g.d(V.visitAdvertiserRenderer,g.rg))&&(O=FBG(this)&&this.T?this.T:this.Z)&&(h=new gr(this.api,this.layoutId,this.interactionLoggingClientData,this.sH),g.a(this,h),h.g0(O),h.init(hh("visit-advertiser"),m,this.macros),BA(h.element),m=vA(h.element),Qx(h.element,m+" This link opens in new tab"));!(h=this.api.j())||g.pO(h)||g.sY(h)||h.controlsType!="3"&&!h.disableOrganicUi||(w=new bE(this.api, this.L,w,!1),w.g0(this.H6),g.a(this,w));V.adDisclosureBannerRenderer&&(V=g.d(V.adDisclosureBannerRenderer,Zoh))&&(w=new c5(this.api,this.layoutId,this.interactionLoggingClientData,this.sH),w.g0(this.Ae),w.init(hh("ad-disclosure-banner"),V),g.a(this,w));this.api.j().Y("enable_updated_html5_player_focus_style")&&g.EM(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; nX.prototype.clear=function(){this.hide()};em.prototype.flush=function(m,V){m=m===void 0?[]:m;V=V===void 0?!1:V;if(g.Tm("enable_client_streamz_web")){m=g.D(m);for(var O=m.next();!O.done;O=m.next())O=U0X(O.value),this.Z&&ir(O,Uw,2,this.Z),O={serializedIncrementBatch:g.zI(O.D())},g.Rz("streamzIncremented",O,{sendIsolatedPayload:V})}}; g.t(aNX,em);g.t(GvG,em);var uE,KUC=new Map;zh.prototype.set=function(m,V,O){O=O!==void 0?Date.now()+O:void 0;this.Z.set(m,V,O)}; zh.prototype.get=function(m){return this.Z.get(m)}; zh.prototype.remove=function(m){this.Z.remove(m)};var B3p=null;var iE=null,Gh=null,pX=null,m9p=null;g.TZ("yt.www.ads.eventcache.getLastCompanionData",function(){return iE}); g.TZ("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.TZ("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return Gh}); g.TZ("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return pX}); g.TZ("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return m9p});var O35=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);B5.prototype.handleResponse=function(m,V){if(!V)throw Error("request needs to be passed into ConsistencyService");var O,h;V=((O=V.SP.context)==null?void 0:(h=O.request)==null?void 0:h.consistencyTokenJars)||[];var w;(m=(w=m.responseContext)==null?void 0:w.consistencyTokenJar)&&this.replace(V,m)}; B5.prototype.replace=function(m,V){m=g.D(m);for(var O=m.next();!O.done;O=m.next())delete this.Z[O.value.encryptedTokenJarContents];wE5(this,V)};var QA$=window.location.hostname.split(".").slice(-2).join("."),ru;QM.getInstance=function(){ru=g.$I("yt.clientLocationService.instance");ru||(ru=new QM,g.TZ("yt.clientLocationService.instance",ru));return ru}; g.U=QM.prototype; g.U.setLocationOnInnerTubeContext=function(m){m.client||(m.client={});if(this.Z)m.client.locationInfo||(m.client.locationInfo={}),m.client.locationInfo.latitudeE7=Math.floor(this.Z.coords.latitude*1E7),m.client.locationInfo.longitudeE7=Math.floor(this.Z.coords.longitude*1E7),m.client.locationInfo.horizontalAccuracyMeters=Math.round(this.Z.coords.accuracy),m.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.D||this.locationPlayabilityToken)m.client.locationPlayabilityToken=this.D|| this.locationPlayabilityToken}; g.U.handleResponse=function(m){var V;m=(V=m.responseContext)==null?void 0:V.locationPlayabilityToken;m!==void 0&&(this.locationPlayabilityToken=m,this.Z=void 0,g.Vf("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=lE(this))&&this.localStorage.set("yt-location-playability-token",m,15552E3):g.ZH("YT_CL",JSON.stringify({loctok:m}),15552E3,QA$,!0))}; g.U.clearLocationPlayabilityToken=function(m){m==="TVHTML5"?(this.localStorage=lE(this))&&this.localStorage.remove("yt-location-playability-token"):g.FM("YT_CL");this.D=void 0;this.L!==-1&&(clearTimeout(this.L),this.L=-1)}; g.U.getCurrentPositionFromGeolocation=function(){var m=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var V=!1,O=1E4;g.Vf("INNERTUBE_CLIENT_NAME")==="MWEB"&&(V=!0,O=15E3);return new Promise(function(h,w){navigator.geolocation.getCurrentPosition(function(y){m.Z=y;h(y)},function(y){w(y)},{enableHighAccuracy:V, maximumAge:0,timeout:O})})}; g.U.createUnpluggedLocationInfo=function(m){var V={};m=m.coords;if(m==null?0:m.latitude)V.latitudeE7=Math.floor(m.latitude*1E7);if(m==null?0:m.longitude)V.longitudeE7=Math.floor(m.longitude*1E7);if(m==null?0:m.accuracy)V.locationRadiusMeters=Math.round(m.accuracy);return V}; g.U.createLocationInfo=function(m){var V={};m=m.coords;if(m==null?0:m.latitude)V.latitudeE7=Math.floor(m.latitude*1E7);if(m==null?0:m.longitude)V.longitudeE7=Math.floor(m.longitude*1E7);return V};g.U=CC5.prototype;g.U.contains=function(m){return Object.prototype.hasOwnProperty.call(this.Z,m)}; g.U.get=function(m){if(this.contains(m))return this.Z[m]}; g.U.set=function(m,V){this.Z[m]=V}; g.U.wz=function(){return Object.keys(this.Z)}; g.U.remove=function(m){delete this.Z[m]};P5.prototype.getModuleId=function(m){return m.serviceId.getModuleId()}; P5.prototype.get=function(m){a:{var V=this.mappings.get(m.toString());switch(V.type){case "mapping":m=V.value;break a;case "factory":V=V.value();this.mappings.set(m.toString(),{type:"mapping",value:V});m=V;break a;default:m=Yp(V)}}return m}; P5.prototype.registerService=function(m,V){this.mappings.set(m.toString(),{type:"mapping",value:V});return m}; new P5;var cT={},EBC=(cT.WEB_UNPLUGGED="^unplugged/",cT.WEB_UNPLUGGED_ONBOARDING="^unplugged/",cT.WEB_UNPLUGGED_OPS="^unplugged/",cT.WEB_UNPLUGGED_PUBLIC="^unplugged/",cT.WEB_CREATOR="^creator/",cT.WEB_KIDS="^kids/",cT.WEB_EXPERIMENTS="^experiments/",cT.WEB_MUSIC="^music/",cT.WEB_REMIX="^music/",cT.WEB_MUSIC_EMBEDDED_PLAYER="^music/",cT.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",cT);OB.prototype.K=function(m,V,O){V=V===void 0?{}:V;O=O===void 0?x5:O;var h={context:g.v5(m.clickTrackingParams,!1,this.T)};var w=this.L(m);if(w){this.Z(h,w,V);var y;V=g.Vs(this.D());(w=(y=g.d(m.commandMetadata,g.KA))==null?void 0:y.apiUrl)&&(V=w);y=G0$(av(V));m=Object.assign({},{command:m},void 0);h={input:y,AJ:iB(y),SP:h,config:m};h.config.hJ?h.config.hJ.identity=O:h.config.hJ={identity:O};return h}O=new g.no("Error: Failed to create Request from Command.",m);g.kL(O)}; g.ip.Object.defineProperties(OB.prototype,{T:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.t(hX,OB);g.t(w5,hX);w5.prototype.K=function(){return{input:"/getDatasyncIdsEndpoint",AJ:iB("/getDatasyncIdsEndpoint","GET"),SP:{}}}; w5.prototype.D=function(){return[]}; w5.prototype.L=function(){}; w5.prototype.Z=function(){};var vIZ={},Fm0=(vIZ.GET_DATASYNC_IDS=mH(w5),vIZ);var DF={},Pza=(DF["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",DF["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",DF["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",DF["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",DF["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",DF["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",DF["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", DF["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",DF["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",DF["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",DF["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",DF["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",DF["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",DF["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",DF["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", DF["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",DF["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",DF["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",DF["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",DF["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",DF["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",DF["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", DF["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",DF.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",DF["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",DF["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",DF["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",DF["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",DF["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",DF["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", DF["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",DF["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",DF["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",DF["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",DF["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",DF["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",DF["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",DF["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",DF["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",DF["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",DF.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",DF["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",DF["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",DF["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",DF["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",DF["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",DF["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",DF["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",DF["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",DF["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",DF["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",DF["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",DF["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",DF["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",DF["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",DF["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",DF["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",DF["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",DF["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",DF["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",DF["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",DF["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", DF["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",DF["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",DF["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",DF["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",DF["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",DF["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",DF["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",DF["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",DF["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", DF["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",DF["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",DF["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",DF["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",DF["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",DF["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",DF["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",DF["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", DF),Nr={},gB7=(Nr.auto_search="LATENCY_ACTION_AUTO_SEARCH",Nr.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Nr.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Nr.app_startup="LATENCY_ACTION_APP_STARTUP",Nr.browse="LATENCY_ACTION_BROWSE",Nr.cast_splash="LATENCY_ACTION_CAST_SPLASH",Nr.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Nr.channels="LATENCY_ACTION_CHANNELS",Nr.chips="LATENCY_ACTION_CHIPS",Nr.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Nr.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", Nr.editor="LATENCY_ACTION_EDITOR",Nr.embed="LATENCY_ACTION_EMBED",Nr.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Nr.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Nr.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Nr.explore="LATENCY_ACTION_EXPLORE",Nr.favorites="LATENCY_ACTION_FAVORITES",Nr.home="LATENCY_ACTION_HOME",Nr.inboarding="LATENCY_ACTION_INBOARDING",Nr.landing="LATENCY_ACTION_LANDING",Nr.learning="LATENCY_ACTION_LEARNING", Nr.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",Nr.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",Nr.library="LATENCY_ACTION_LIBRARY",Nr.live="LATENCY_ACTION_LIVE",Nr.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Nr.management="LATENCY_ACTION_MANAGEMENT",Nr.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Nr.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Nr.onboarding="LATENCY_ACTION_ONBOARDING",Nr.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", Nr.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Nr.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Nr.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Nr.prebuffer="LATENCY_ACTION_PREBUFFER",Nr.prefetch="LATENCY_ACTION_PREFETCH",Nr.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Nr.profile_switcher="LATENCY_ACTION_LOGIN",Nr.projects="LATENCY_ACTION_PROJECTS",Nr.reel_watch="LATENCY_ACTION_REEL_WATCH",Nr.results="LATENCY_ACTION_RESULTS",Nr.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", Nr.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Nr.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Nr.review="LATENCY_ACTION_REVIEW",Nr.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Nr.search_ui="LATENCY_ACTION_SEARCH_UI",Nr.search_suggest="LATENCY_ACTION_SUGGEST",Nr.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Nr.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Nr.seek="LATENCY_ACTION_PLAYER_SEEK",Nr.settings="LATENCY_ACTION_SETTINGS",Nr.store="LATENCY_ACTION_STORE", Nr.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Nr.tenx="LATENCY_ACTION_TENX",Nr.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Nr.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Nr.watch="LATENCY_ACTION_WATCH",Nr.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Nr["watch,watch7"]="LATENCY_ACTION_WATCH",Nr["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Nr["watch,watch7ad"]="LATENCY_ACTION_WATCH",Nr["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Nr.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", Nr.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Nr.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Nr.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Nr.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Nr.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Nr.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Nr.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Nr);Object.assign(gB7,Pza);g.t(fP,RS);var cJX=new oS("aft-recorded",fP);var m5W=g.WH.ytLoggingGelSequenceIdObj_||{};g.TZ("ytLoggingGelSequenceIdObj_",m5W);var oa=g.WH.ytLoggingLatencyUsageStats_||{};g.TZ("ytLoggingLatencyUsageStats_",oa);xo.prototype.tick=function(m,V,O,h){g5(this,"tick_"+m+"_"+V)||g.Rz("latencyActionTicked",{tickName:m,clientActionNonce:V},{timestamp:O,cttAuthInfo:h})}; xo.prototype.info=function(m,V,O){var h=Object.keys(m).join("");g5(this,"info_"+h+"_"+V)||(m=Object.assign({},m),m.clientActionNonce=V,g.Rz("latencyActionInfo",m,{cttAuthInfo:O}))}; xo.prototype.jspbInfo=function(m,V,O){for(var h="",w=0;w=w.length?(V.append(w),m-=w.length):m?(V.append(new Uint8Array(w.buffer,w.byteOffset,m)),O.append(new Uint8Array(w.buffer,w.byteOffset+m,w.length-m)),m=0):O.append(w);return{tP:V,Ni:O}}; CG.prototype.isFocused=function(m){return m>=this.D&&m=64&&(this.N.set(m.subarray(0,64-this.L),this.L),V=64-this.L,this.L=0,Sia(this,this.N,0));for(;V+64<=O;V+=64)Sia(this,m,V);V=this.start&&(m=2&&O.ssdaiAdsConfig&&ER("Unexpected ad placement renderers length",m.slot,null,{length:h.length});var w;((w=O.adSlots)==null?0:w.some(function(y){var L,C;return((L=g.d(y,Xr))==null?void 0:(C=L.adSlotMetadata)==null?void 0:C.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||h.some(function(y){var L,C,E,q; return!!((L=y.renderer)==null?0:(C=L.linearAdSequenceRenderer)==null?0:(E=C.linearAds)==null?0:E.length)||!((q=y.renderer)==null||!q.instreamVideoAdRenderer)})||J1X(m)})}; Bd.prototype.Nm=function(){ps7(this.Z)};lI.prototype.dW=function(){var m=this;GFC(this.L,function(){var V=GJ(m.slot.clientMetadata,"metadata_type_ad_break_request_data");return V.cueProcessedMs?m.Z.get().fetch({YG:V.getAdBreakUrl,T2:new g.a2(V.gA,V.ih),cueProcessedMs:V.cueProcessedMs}):m.Z.get().fetch({YG:V.getAdBreakUrl,T2:new g.a2(V.gA,V.ih)})})}; lI.prototype.Nm=function(){ps7(this.L)};Qt.prototype.dW=function(){var m=this.slot.clientMetadata,V,O=(V=this.slot.fulfilledLayout)!=null?V:GJ(m,"metadata_type_fulfilled_layout");WQ1(this.callback,this.slot,O)}; Qt.prototype.Nm=function(){JC(this.callback,this.slot,new v("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")};Pd.prototype.build=function(m,V){return V.fulfilledLayout||vd(V,{D4:["metadata_type_fulfilled_layout"]})?new Qt(m,V):this.D(m,V)};g.t(m8,Pd); m8.prototype.D=function(m,V){if(vd(V,{D4:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Bd(m,V,this.Z,this.L,this.n6,this.ze,this.qf,this.Ge,this.rY);if(vd(V,{D4:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new lI(m,V,this.Z,this.L,this.n6,this.ze);throw new v("Unsupported slot with type: "+V.slotType+" and client metadata: "+pQ(V.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.t(VH,Pd);VH.prototype.D=function(m,V){throw new v("Unsupported slot with type: "+V.slotType+" and client metadata: "+pQ(V.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.U=CJI.prototype;g.U.WD=function(){return this.slot}; g.U.Vt=function(){return this.layout}; g.U.init=function(){}; g.U.release=function(){}; g.U.startRendering=function(m){if(m.layoutId!==this.layout.layoutId)this.callback.xA(this.slot,m,new FN("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 V=GJ(m.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.dY(this.slot,m),Qap(this.D, this.slot,V)):ER("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,m)}}; g.U.i6=function(m,V){m.layoutId!==this.layout.layoutId?this.callback.xA(this.slot,m,new FN("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.sI(this.slot,m,V),qZo(this),MJm(this))};g.t(jZ,g.yh);g.U=jZ.prototype;g.U.WD=function(){return this.L.slot}; g.U.Vt=function(){return this.L.layout}; g.U.init=function(){this.D.get().addListener(this)}; g.U.release=function(){this.D.get().removeListener(this);this.dispose()}; g.U.a5=function(){}; g.U.JQ=function(){}; g.U.tQ=function(){}; g.U.EL=function(){}; g.U.startRendering=function(m){var V=this;yH(this.L,m,function(){return void V.HL()})}; g.U.HL=function(){this.D.get().HL(this.Z)}; g.U.i6=function(m,V){var O=this;yH(this.L,m,function(){var h=O.D.get();muC(h,O.Z,3);O.Z=[];O.callback.sI(O.slot,m,V)})}; g.U.d0=function(){this.D.UH()||this.D.get().removeListener(this);g.yh.prototype.d0.call(this)}; g.ip.Object.defineProperties(jZ.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.L.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.L.layout}}});xV.prototype.xF=function(m,V){V=V===void 0?!1:V;var O=(this.D.get(m)||[]).concat();if(V=V&&oLC(m)){var h=this.D.get(V);h&&O.push.apply(O,g.b(h))}g0(this,m,O);this.Z.add(m);V&&this.Z.add(V)}; xV.prototype.sU=function(m,V){V=V===void 0?!1:V;if(!this.Z.has(m)){var O=V&&oLC(m);O&&(V=!this.Z.has(O));this.xF(m,V)}};g.t(Ub0,wN);g.t(Kj,jZ);g.U=Kj.prototype;g.U.l6=function(m,V){EE("ads-engagement-panel-layout",m,this.N.get().v7,this.qf.get(),this.T,this.K,this.WD(),this.Vt(),V)}; g.U.startRendering=function(m){JL(this.r0,this.WD(),this.Vt(),g.d(this.Vt().renderingContent,yR),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(V,O,h,w,y){return new Ub0(V,O,h,w,y)},this.Z); jZ.prototype.startRendering.call(this,m)}; g.U.dY=function(m,V){this.K===V.layoutId&&(this.T===null?this.T=this.qf.get().zM():ER("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.U.sI=function(){}; g.U.Vi=function(){}; g.U.pC=function(){}; g.U.Oz=function(){}; g.U.Fh=function(){}; g.U.Y2=function(){}; g.U.sz=function(){}; g.U.wy=function(){}; g.U.Uz=function(){}; g.U.G6=function(){}; g.U.jJ=function(){}; g.U.d0=function(){w2(this.gY(),this);jZ.prototype.d0.call(this)};g.t(tJ0,wN);g.t(Wo,jZ);g.U=Wo.prototype;g.U.l6=function(m,V){EE("banner-image",m,this.N.get().v7,this.qf.get(),this.T,this.K,this.WD(),this.Vt(),V)}; g.U.startRendering=function(m){JL(this.r0,this.WD(),this.Vt(),g.d(this.Vt().renderingContent,hB),this.callback,"metadata_type_banner_image_layout_view_model",function(V,O,h,w,y){return new tJ0(V,O,h,w,y)},this.Z); jZ.prototype.startRendering.call(this,m)}; g.U.dY=function(m,V){this.K===V.layoutId&&(this.T===null?this.T=this.qf.get().zM():ER("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.U.sI=function(){}; g.U.Vi=function(){}; g.U.pC=function(){}; g.U.Oz=function(){}; g.U.Fh=function(){}; g.U.Y2=function(){}; g.U.sz=function(){}; g.U.wy=function(){}; g.U.Uz=function(){}; g.U.G6=function(){}; g.U.jJ=function(){}; g.U.d0=function(){w2(this.gY(),this);jZ.prototype.d0.call(this)};g.t(XU,wN);g.t(Ho,jZ);g.U=Ho.prototype;g.U.l6=function(m,V){EE("action-companion",m,this.N.get().v7,this.qf.get(),this.T,this.K,this.WD(),this.Vt(),V)}; g.U.startRendering=function(m){JL(this.r0,this.WD(),this.Vt(),g.d(this.Vt().renderingContent,mO),this.callback,"metadata_type_action_companion_ad_renderer",function(V,O,h,w,y){return new XU(V,O,h,w,y)},this.Z); jZ.prototype.startRendering.call(this,m)}; g.U.dY=function(m,V){V.layoutId===this.layout.layoutId?this.r0.sU("impression"):this.K===V.layoutId&&(this.T===null?this.T=this.qf.get().zM():ER("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.U.sI=function(){}; g.U.Vi=function(){}; g.U.pC=function(){}; g.U.Oz=function(){}; g.U.Fh=function(){}; g.U.Y2=function(){}; g.U.sz=function(){}; g.U.wy=function(){}; g.U.Uz=function(){}; g.U.G6=function(){}; g.U.jJ=function(){}; g.U.d0=function(){w2(this.gY(),this);jZ.prototype.d0.call(this)};g.t(Xjp,wN);g.t(T8,jZ);g.U=T8.prototype;g.U.l6=function(m,V){EE("image-companion",m,this.N.get().v7,this.qf.get(),this.T,this.K,this.WD(),this.Vt(),V)}; g.U.startRendering=function(m){JL(this.r0,this.WD(),this.Vt(),g.d(this.Vt().renderingContent,VR),this.callback,"metadata_type_image_companion_ad_renderer",function(V,O,h,w,y){return new Xjp(V,O,h,w,y)},this.Z); jZ.prototype.startRendering.call(this,m)}; g.U.dY=function(m,V){V.layoutId===this.layout.layoutId?this.r0.sU("impression"):this.K===V.layoutId&&(this.T===null?this.T=this.qf.get().zM():ER("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.U.sI=function(){}; g.U.Vi=function(){}; g.U.pC=function(){}; g.U.Oz=function(){}; g.U.Fh=function(){}; g.U.Y2=function(){}; g.U.sz=function(){}; g.U.wy=function(){}; g.U.Uz=function(){}; g.U.G6=function(){}; g.U.jJ=function(){}; g.U.d0=function(){w2(this.gY(),this);jZ.prototype.d0.call(this)};g.t(T$l,wN);g.t($V,jZ);g.U=$V.prototype;g.U.l6=function(m,V){EE("shopping-companion",m,this.N.get().v7,this.qf.get(),this.T,this.K,this.WD(),this.Vt(),V)}; g.U.startRendering=function(m){JL(this.r0,this.WD(),this.Vt(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(V,O,h,w,y){return new T$l(V,O,h,w,y)},this.Z); jZ.prototype.startRendering.call(this,m)}; g.U.dY=function(m,V){V.layoutId===this.layout.layoutId?this.r0.sU("impression"):this.K===V.layoutId&&(this.T===null?this.T=this.qf.get().zM():ER("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.U.sI=function(){}; g.U.Vi=function(){}; g.U.pC=function(){}; g.U.Oz=function(){}; g.U.Fh=function(){}; g.U.Y2=function(){}; g.U.sz=function(){}; g.U.wy=function(){}; g.U.Uz=function(){}; g.U.G6=function(){}; g.U.jJ=function(){}; g.U.d0=function(){w2(this.gY(),this);jZ.prototype.d0.call(this)};g.t(r0,jZ);g.U=r0.prototype;g.U.startRendering=function(m){JL(this.r0,this.WD(),this.Vt(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(V,O,h,w,y){return new XU(V,O,h,w,y)},this.Z); jZ.prototype.startRendering.call(this,m)}; g.U.dY=function(){}; g.U.sI=function(){}; g.U.Vi=function(){}; g.U.pC=function(){}; g.U.Oz=function(){}; g.U.Fh=function(){}; g.U.Y2=function(){}; g.U.sz=function(){}; g.U.wy=function(){}; g.U.Uz=function(){}; g.U.G6=function(){}; g.U.jJ=function(){}; g.U.d0=function(){w2(this.gY(),this);jZ.prototype.d0.call(this)}; g.U.l6=function(){};g.U=c1C.prototype;g.U.WD=function(){return this.slot}; g.U.Vt=function(){return this.layout}; g.U.init=function(){this.Ge.get().addListener(this);this.Ge.get().XP.push(this);var m=GJ(this.layout.clientMetadata,"metadata_type_video_length_seconds"),V=GJ(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");qK(this.layout.uo)&&VX(this.du.get(),this.layout.layoutId,{Da:V,Tm:m,listener:this})}; g.U.release=function(){this.Ge.get().removeListener(this);pQ$(this.Ge.get(),this);qK(this.layout.uo)&&Ou(this.du.get(),this.layout.layoutId)}; g.U.startRendering=function(m){this.callback.dY(this.slot,m)}; g.U.i6=function(m,V){AyX(this.ze.get())&&!this.Z&&(this.r0.sU("abandon"),this.Z=!0);this.callback.sI(this.slot,m,V)}; g.U.J7=function(m){switch(m.id){case "part2viewed":this.r0.sU("start");this.r0.sU("impression");break;case "videoplaytime25":this.r0.sU("first_quartile");break;case "videoplaytime50":this.r0.sU("midpoint");break;case "videoplaytime75":this.r0.sU("third_quartile");break;case "videoplaytime100":AyX(this.ze.get())?this.Z||(this.r0.sU("complete"),this.Z=!0):this.r0.sU("complete");tL(this.r0)&&UE(this.r0,Infinity,!0);U4p(this.ze.get())&&kV(this.L,Infinity,!0);break;case "engagedview":tL(this.r0)||this.r0.sU("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:ER("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.U.onVolumeChange=function(){}; g.U.Nz=function(){}; g.U.iN=function(){}; g.U.XQ=function(){}; g.U.onFullscreenToggled=function(){}; g.U.mT=function(){}; g.U.B7=function(){}; g.U.fB=function(m){U4p(this.ze.get())&&kV(this.L,m*1E3,!1);tL(this.r0)&&UE(this.r0,m*1E3,!1)}; g.U.O8=function(){}; g.U.UB=function(){this.r0.sU("active_view_measurable")}; g.U.y3=function(){this.r0.sU("active_view_viewable")}; g.U.H9=function(){this.r0.sU("active_view_fully_viewable_audible_half_duration")}; g.U.K2=function(){this.r0.sU("audio_measurable")}; g.U.GU=function(){this.r0.sU("audio_audible")};g.t(co,jZ);g.U=co.prototype;g.U.init=function(){jZ.prototype.init.call(this);var m=GJ(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),V={adsClientData:this.layout.PD};this.Z.push(new UR(m,this.layout.layoutId,GJ(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),V,!0))}; g.U.DN=function(){this.T||this.Ge.get().resumeVideo(1)}; g.U.startRendering=function(m){jZ.prototype.startRendering.call(this,m);Ca(this.Ge.get(),"ad-showing");this.callback.dY(this.slot,m);this.K.dn=this}; g.U.i6=function(m,V){jZ.prototype.i6.call(this,m,V);Eu(this.Ge.get(),"ad-showing");Bx(this.K,this)}; g.U.l6=function(m){switch(m){case "ad-info-icon-button":(this.T=this.Ge.get().kq(1))||this.Ge.get().pauseVideo();break;case "visit-advertiser":this.Ge.get().pauseVideo()}}; g.U.d0=function(){jZ.prototype.d0.call(this)};g.t(DQ,wN);g.t(NK,jZ);g.U=NK.prototype;g.U.startRendering=function(m){JL(this.r0,this.WD(),this.Vt(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(V,O,h,w,y){return new DQ(V,O,h,w,y)},this.Z); jZ.prototype.startRendering.call(this,m)}; g.U.dY=function(){}; g.U.sI=function(){}; g.U.Vi=function(){}; g.U.pC=function(){}; g.U.Oz=function(){}; g.U.Fh=function(){}; g.U.Y2=function(){}; g.U.sz=function(){}; g.U.wy=function(){}; g.U.Uz=function(){}; g.U.G6=function(){}; g.U.jJ=function(){}; g.U.d0=function(){w2(this.gY(),this);jZ.prototype.d0.call(this)}; g.U.l6=function(){};g.t(bk,wN);g.t(nj,jZ);nj.prototype.init=function(){jZ.prototype.init.call(this);this.Z.push(new bk(g.d(this.layout.renderingContent,tB),this.layout.layoutId,{adsClientData:this.layout.PD}))}; nj.prototype.l6=function(){ds(this.T.get(),this.K)&&Cj(this.qf.get(),3)}; nj.prototype.startRendering=function(m){jZ.prototype.startRendering.call(this,m);this.callback.dY(this.slot,m)}; nj.prototype.d0=function(){jZ.prototype.d0.call(this)};g.t(SZ,wN);g.t(IU,jZ);IU.prototype.init=function(){jZ.prototype.init.call(this);var m=g.d(this.layout.renderingContent,QH)||GJ(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),V=Lj(this.r0);this.Z.push(new SZ(m,V,this.layout.layoutId,{adsClientData:this.layout.PD},!0,!0))}; IU.prototype.startRendering=function(m){jZ.prototype.startRendering.call(this,m);this.callback.dY(this.slot,m)}; IU.prototype.l6=function(m,V){if(V===this.layout.layoutId)switch(m){case "skip-button":var O;(m=(O=GJ(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:O.current)&&id(m,this.WD(),this.layout)}}; IU.prototype.d0=function(){jZ.prototype.d0.call(this)};uk.prototype.build=function(m,V,O,h){if(eZ(h,{D4:["metadata_type_ad_break_response_data"],Be:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new CJI(m,O,h,this.L,this.D,this.Z);throw new FN("Unsupported layout with type: "+h.layoutType+" and client metadata: "+pQ(h.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.t(bDC,wN);g.t(z8,jZ);g.U=z8.prototype;g.U.l6=function(m,V){EE("ads-engagement-panel",m,this.N.get().v7,this.qf.get(),this.T,this.K,this.WD(),this.Vt(),V)}; g.U.startRendering=function(m){JL(this.r0,this.WD(),this.Vt(),g.d(this.Vt().renderingContent,Ol),this.callback,"metadata_type_ads_engagement_panel_renderer",function(V,O,h,w,y){return new bDC(V,O,h,w,y)},this.Z); jZ.prototype.startRendering.call(this,m)}; g.U.dY=function(m,V){V.layoutId===this.layout.layoutId?this.r0.sU("impression"):this.K===V.layoutId&&(this.T===null?this.T=this.qf.get().zM():ER("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.U.sI=function(){}; g.U.Vi=function(){}; g.U.pC=function(){}; g.U.Oz=function(){}; g.U.Fh=function(){}; g.U.Y2=function(){}; g.U.sz=function(){}; g.U.wy=function(){}; g.U.Uz=function(){}; g.U.G6=function(){}; g.U.jJ=function(){}; g.U.d0=function(){w2(this.gY(),this);jZ.prototype.d0.call(this)};g.t(ZQ,jZ);g.U=ZQ.prototype;g.U.l6=function(m,V){EE("top-banner-image-text-icon-buttoned",m,this.N.get().v7,this.qf.get(),this.T,this.K,this.WD(),this.Vt(),V)}; g.U.startRendering=function(m){JL(this.r0,this.WD(),this.Vt(),g.d(this.Vt().renderingContent,wg),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(V,O,h,w,y){return new DQ(V,O,h,w,y)},this.Z); jZ.prototype.startRendering.call(this,m)}; g.U.dY=function(m,V){this.K===V.layoutId&&(this.T===null?this.T=this.qf.get().zM():ER("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.U.sI=function(){}; g.U.Vi=function(){}; g.U.pC=function(){}; g.U.Oz=function(){}; g.U.Fh=function(){}; g.U.Y2=function(){}; g.U.sz=function(){}; g.U.wy=function(){}; g.U.Uz=function(){}; g.U.G6=function(){}; g.U.jJ=function(){}; g.U.d0=function(){w2(this.gY(),this);jZ.prototype.d0.call(this)};IaU.prototype.build=function(m,V,O,h){if(eZ(h,nLI())||g.d(h.renderingContent,Ol)!==void 0)return new z8(m,O,h,this.cB,this.qf,this.gY,this.du,this.Z);if(eZ(h,Wra())||g.d(h.renderingContent,mO)!==void 0)return new Ho(m,O,h,this.cB,this.qf,this.gY,this.du,this.Z);if(eZ(h,HDa())||g.d(h.renderingContent,VR)!==void 0)return new T8(m,O,h,this.cB,this.qf,this.gY,this.du,this.Z);if(eZ(h,$bX()))return new $V(m,O,h,this.cB,this.qf,this.gY,this.du,this.Z);if(eZ(h,r17()))return new r0(m,O,h,this.cB,this.qf,this.gY, this.du,this.Z);if(eZ(h,Krl())||g.d(h.renderingContent,hB)!==void 0)return new Wo(m,O,h,this.cB,this.qf,this.gY,this.du,this.Z);if(eZ(h,SZ3())||g.d(h.renderingContent,wg)!==void 0)return new ZQ(m,O,h,this.cB,this.qf,this.gY,this.du,this.Z);if(eZ(h,Db$()))return new NK(m,O,h,this.cB,this.qf,this.gY,this.du,this.Z);if(eZ(h,db0())||g.d(h.renderingContent,yR)!==void 0)return new Kj(m,O,h,this.cB,this.qf,this.gY,this.du,this.Z);throw new FN("Unsupported layout with type: "+h.layoutType+" and client metadata: "+ pQ(h.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};eg1.prototype.build=function(m,V,O,h){if(eZ(h,{D4:["metadata_type_linked_player_bytes_layout_id"],Be:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new nj(m,O,h,this.cB,this.qf,this.Z);throw new FN("Unsupported layout with type: "+h.layoutType+" and client metadata: "+pQ(h.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.U=uw5.prototype;g.U.WD=function(){return this.slot}; g.U.Vt=function(){return this.layout}; g.U.init=function(){}; g.U.release=function(){}; g.U.startRendering=function(m){m.layoutId!==this.layout.layoutId?this.callback.xA(this.slot,m,new FN("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.dY(this.slot,m),this.r0.sU("impression"),ld(this.eR,m))}; g.U.i6=function(m,V){m.layoutId!==this.layout.layoutId?this.callback.xA(this.slot,m,new FN("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.sI(this.slot,m,V)};g.U=ZD5.prototype;g.U.WD=function(){return this.slot}; g.U.Vt=function(){return this.layout}; g.U.init=function(){}; g.U.release=function(){}; g.U.startRendering=function(m){m.layoutId!==this.layout.layoutId?this.callback.xA(this.slot,m,new FN("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.dY(this.slot,m),this.r0.sU("impression"),ld(this.eR,m))}; g.U.i6=function(m,V){m.layoutId!==this.layout.layoutId?this.callback.xA(this.slot,m,new FN("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.sI(this.slot,m,V)};sE.prototype.build=function(m,V,O,h){if(!this.ze.get().U.j().Y("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(eZ(h,zgU()))return new uw5(m,O,h,this.qf,this.eR)}else if(eZ(h,{D4:[],Be:["LAYOUT_TYPE_FORECASTING"]}))return new ZD5(m,O,h,this.qf,this.eR);throw new FN("Unsupported layout with type: "+h.layoutType+" and client metadata: "+pQ(h.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.t(aap,wN);g.t(FU,jZ);g.U=FU.prototype;g.U.init=function(){jZ.prototype.init.call(this);var m=g.d(this.layout.renderingContent,lk)||GJ(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),V={adsClientData:this.layout.PD};this.Z.push(new aap(m,GJ(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,V))}; g.U.DN=function(){this.T||this.Ge.get().resumeVideo(2)}; g.U.startRendering=function(m){jZ.prototype.startRendering.call(this,m);this.callback.dY(this.slot,m);this.K.dn=this}; g.U.i6=function(m,V){jZ.prototype.i6.call(this,m,V);Bx(this.K,this)}; g.U.l6=function(m,V){if(!I2(this.ze.get(),"stop_handling_click_for_non_rendering_overlay_layout")||V===this.layout.layoutId){if(ds(this.N.get(),this.J))switch(m){case "visit-advertiser-link":Cj(this.qf.get(),3)}switch(m){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.T||this.Ge.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.T=this.Ge.get().kq(2))||this.Ge.get().pauseVideo();break; case "visit-advertiser-link":this.Ge.get().pauseVideo();iD0(this).pg();break;case "skip-button":if(m=iD0(this),this.layout.renderingContent&&!uf(this.layout.clientMetadata,"metadata_type_dai")||!m||!m.x3){var O;(m=(O=GJ(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:O.current)&&id(m,this.WD(),this.layout)}else ER("Requesting to skip by LegacyPlayerBytes when components enabled"),m.zG(this.WD(),this.layout)}}}; g.U.d0=function(){jZ.prototype.d0.call(this)};g.t(aU,jZ);g.U=aU.prototype;g.U.init=function(){jZ.prototype.init.call(this);var m=g.d(this.layout.renderingContent,Bo)||GJ(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),V={adsClientData:this.layout.PD},O;(O=!!this.layout.renderingContent)||(O=ik(this),O=!(O&&O.x3));this.Z.push(new UR(m,this.layout.layoutId,GJ(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),V,O))}; g.U.DN=function(){this.T||this.Ge.get().resumeVideo(2)}; g.U.startRendering=function(m){jZ.prototype.startRendering.call(this,m);this.callback.dY(this.slot,m);this.K.dn=this}; g.U.i6=function(m,V){jZ.prototype.i6.call(this,m,V);Bx(this.K,this)}; g.U.l6=function(m,V){if(!this.ze||!I2(this.ze.get(),"stop_handling_click_for_non_rendering_overlay_layout")||V===this.layout.layoutId){if(ds(this.N.get(),this.J))switch(m){case "visit-advertiser":Cj(this.qf.get(),3)}switch(m){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.T||this.Ge.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.T=this.Ge.get().kq(2))||this.Ge.get().pauseVideo();break; case "visit-advertiser":this.Ge.get().pauseVideo();ik(this).pg();break;case "skip-button":if(m=ik(this),this.layout.renderingContent&&!uf(this.layout.clientMetadata,"metadata_type_dai")||!m||!m.x3){var O;(m=(O=GJ(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:O.current)&&id(m,this.WD(),this.layout)}else ER("Requesting to skip by LegacyPlayerBytes"),m.zG(this.WD(),this.layout)}}}; g.U.d0=function(){jZ.prototype.d0.call(this)};g.t(pjX,wN);g.t(G8,jZ);g.U=G8.prototype;g.U.startRendering=function(m){var V=this;yH(this.L,m,function(){V.Z.push(new pjX(GJ(V.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),m.layoutId,m.PD));V.HL();V.callback.dY(V.slot,m);g.l(mL(V.Ge.get(),1),512)&&V.callback.xA(V.WD(),V.Vt(),new FN("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.U.B7=function(){}; g.U.mT=function(m){if(m.state.isError()){var V;this.callback.xA(this.WD(),this.Vt(),new FN("A player error happened during adNotify",{playerErrorCode:(V=m.state.MU)==null?void 0:V.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.U.onFullscreenToggled=function(){}; g.U.iN=function(){}; g.U.XQ=function(){}; g.U.Nz=function(){}; g.U.onVolumeChange=function(){}; g.U.J7=function(){}; g.U.O8=function(){}; g.U.l6=function(){};g.t(la0,wN);g.t(pj,jZ);pj.prototype.init=function(){jZ.prototype.init.call(this);var m=g.d(this.layout.renderingContent,vo),V=Lj(this.r0);this.Z.push(new la0(m,V,this.layout.layoutId,{adsClientData:this.layout.PD}))}; pj.prototype.startRendering=function(m){jZ.prototype.startRendering.call(this,m);this.callback.dY(this.slot,m)}; pj.prototype.l6=function(m,V){if(V===this.layout.layoutId)switch(m){case "skip-button":var O;(m=(O=GJ(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:O.current)&&id(m,this.WD(),this.layout)}}; pj.prototype.d0=function(){jZ.prototype.d0.call(this)};Qz1.prototype.build=function(m,V,O,h){if(m=Po(m,O,h,this.cB,this.Ge,this.qf,this.L,this.Z,this.ze))return m;throw new FN("Unsupported layout with type: "+h.layoutType+" and client metadata: "+pQ(h.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.U=Oa.prototype;g.U.WD=function(){return this.slot}; g.U.Vt=function(){return this.layout}; g.U.init=function(){this.Ge.get().addListener(this);this.Ge.get().XP.push(this);var m=vL0(this),V=g.d(this.layout.renderingContent,gg),O=V?MK(V.pings):GJ(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");V=V?RgG(V.pings):GJ(this.layout.clientMetadata,"metadata_type_active_view_identifier");qK(this.layout.uo)&&VX(this.du.get(),this.layout.layoutId,{Da:O,Tm:m,listener:this,EK:V})}; g.U.release=function(){this.Ge.get().removeListener(this);pQ$(this.Ge.get(),this);qK(this.layout.uo)&&Ou(this.du.get(),this.layout.layoutId)}; g.U.startRendering=function(m){this.callback.dY(this.slot,m)}; g.U.i6=function(m,V){hM(this,"abandon");this.callback.sI(this.slot,m,V)}; g.U.J7=function(m){switch(m.id){case "part2viewed":this.r0.sU("start");this.r0.sU("impression");break;case "videoplaytime25":this.r0.sU("first_quartile");break;case "videoplaytime50":this.r0.sU("midpoint");break;case "videoplaytime75":this.r0.sU("third_quartile");break;case "videoplaytime100":hM(this,"complete");tL(this.r0)&&UE(this.r0,Infinity,!0);d4a(this.ze.get())&&kV(this.L,Infinity,!0);break;case "engagedview":tL(this.r0)||this.r0.sU("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:ER("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.U.onVolumeChange=function(){}; g.U.Nz=function(){}; g.U.iN=function(){}; g.U.XQ=function(){}; g.U.onFullscreenToggled=function(){}; g.U.mT=function(m){this.Z||(g.fX(m,4)&&!g.fX(m,2)?AL(this.r0,"pause"):M6(m,4)<0&&!(M6(m,2)<0)&&AL(this.r0,"resume"))}; g.U.B7=function(){}; g.U.fB=function(m){d4a(this.ze.get())&&kV(this.L,m*1E3,!1);tL(this.r0)&&UE(this.r0,m*1E3,!1)}; g.U.O8=function(){hM(this,"swipe")}; g.U.UB=function(){this.r0.sU("active_view_measurable")}; g.U.y3=function(){this.r0.sU("active_view_viewable")}; g.U.H9=function(){this.r0.sU("active_view_fully_viewable_audible_half_duration")}; g.U.K2=function(){this.r0.sU("audio_measurable")}; g.U.GU=function(){this.r0.sU("audio_audible")};PJ5.prototype.build=function(m,V,O,h){if(O.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.d(h.renderingContent,gg)!==void 0)return new Oa(m,O,h,this.Ge,this.qf,this.FA,this.ze,this.du,this.Nf);V=["metadata_type_ad_placement_config"];for(var w=g.D(RU()),y=w.next();!y.done;y=w.next())V.push(y.value);if(eZ(h,{D4:V,Be:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return O.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new Oa(m,O,h,this.Ge,this.qf,this.FA,this.ze,this.du,this.Nf):new c1C(m,O,h, this.Ge,this.qf,this.FA,this.ze,this.du);throw new FN("Unsupported layout with type: "+h.layoutType+" and client metadata: "+pQ(h.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var oSh,eD; oSh={OqH:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",mze:"AUTHENTICATION_MALFORMED",LgH:"AUTHENTICATION_MISSING",TIr:"BAD_REQUEST",y7e:"CAST_SESSION_DEVICE_MISMATCHED",q8Y:"CAST_SESSION_VIDEO_MISMATCHED",Ecr:"CAST_TOKEN_EXPIRED",Fge:"CAST_TOKEN_FAILED",f3H:"CAST_TOKEN_MALFORMED",Y8N:"CGI_PARAMS_MALFORMED",kdz:"CGI_PARAMS_MISSING",Rgz:"DEVICE_FALLBACK",F1H:"GENERIC_WITH_LINK_AND_CPN",fwt:"ERROR_HDCP",Ysr:"LICENSE",MIH:"VIDEO_UNAVAILABLE",egu:"FORMAT_UNAVAILABLE",rd0:"GEO_FAILURE", uKe:"HTML5_AUDIO_RENDERER_ERROR",cNe:"GENERIC_WITHOUT_LINK",dbS:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",mbr:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",Lw6:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",Dbt:"HTML5_SPS_UMP_STATUS_REJECTED",UbS:"INVALID_DRM_MESSAGE",IbA:"PURCHASE_NOT_FOUND",zxS:"PURCHASE_REFUNDED",abS:"RENTAL_EXPIRED",Cnf:"RETRYABLE_ERROR",hxH:"SERVER_ERROR",Lye:"SIGNATURE_EXPIRED",vef:"STOPPED_BY_ANOTHER_PLAYBACK",GJf:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Ky0:"STREAMING_NOT_ALLOWED", HXN:"STREAM_LICENSE_NOT_FOUND",kJf:"TOO_MANY_REQUESTS",MhY:"TOO_MANY_REQUESTS_WITH_LINK",oeA:"TOO_MANY_STREAMS_PER_ENTITLEMENT",PzS:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",lNH:"VIDEO_FORBIDDEN",RJY:"VIDEO_NOT_FOUND",KgH:"BROWSER_OR_EXTENSION_ERROR"};eD={}; g.ef=(eD.ALREADY_PINNED_ON_A_DEVICE="Voc\u00ea j\u00e1 fez o download deste v\u00eddeo para a quantidade m\u00e1xima de dispositivos permitida pelo propriet\u00e1rio dos direitos autorais. Antes de reproduzi-lo aqui, ser\u00e1 necess\u00e1rio remov\u00ea-lo de outro dispositivo.",eD.DEVICE_FALLBACK="Este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel neste dispositivo.",eD.GENERIC_WITH_LINK_AND_CPN="Ocorreu um erro. Tente novamente mais tarde. (ID de reprodu\u00e7\u00e3o: $CPN) $BEGIN_LINKSaiba mais$END_LINK", eD.LICENSE="Ocorreu um erro ao licenciar este v\u00eddeo.",eD.VIDEO_UNAVAILABLE="V\u00eddeo indispon\u00edvel",eD.FORMAT_UNAVAILABLE="O v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel na qualidade selecionada. Tente novamente mais tarde.",eD.GEO_FAILURE="Este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel em seu pa\u00eds.",eD.HTML5_AUDIO_RENDERER_ERROR="Erro ao renderizar \u00e1udio. Reinicie seu computador.",eD.GENERIC_WITHOUT_LINK="Ocorreu um erro. Tente novamente mais tarde.",eD.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "Este formato de v\u00eddeo n\u00e3o \u00e9 suportado.",eD.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="No momento, seu navegador n\u00e3o reconhece os formatos de v\u00eddeo dispon\u00edveis. $BEGIN_LINKClique aqui para visitar as perguntas frequentes sobre v\u00eddeos em HTML5.$END_LINK",eD.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="N\u00e3o \u00e9 poss\u00edvel tocar este v\u00eddeo no seu navegador. $BEGIN_LINKSaiba mais$END_LINK",eD.HTML5_SPS_UMP_STATUS_REJECTED="Algo deu errado. Atualize ou tente de novo depois. $BEGIN_LINKSaiba mais$END_LINK", eD.INVALID_DRM_MESSAGE="A mensagem espec\u00edfica do sistema de DRM (gest\u00e3o de direitos digitais) \u00e9 inv\u00e1lida.",eD.PURCHASE_NOT_FOUND="Este v\u00eddeo requer pagamento.",eD.PURCHASE_REFUNDED="A compra deste v\u00eddeo foi estornada.",eD.RENTAL_EXPIRED="O aluguel deste v\u00eddeo expirou.",eD.CAST_SESSION_DEVICE_MISMATCHED="O dispositivo na sess\u00e3o de transmiss\u00e3o n\u00e3o corresponde ao solicitado.",eD.CAST_SESSION_VIDEO_MISMATCHED="O v\u00eddeo da sess\u00e3o de transmiss\u00e3o n\u00e3o corresponde ao solicitado.", eD.CAST_TOKEN_FAILED="Sess\u00e3o de transmiss\u00e3o n\u00e3o dispon\u00edvel. Atualize ou tente novamente mais tarde.",eD.CAST_TOKEN_EXPIRED="A sess\u00e3o de transmiss\u00e3o expirou. Atualize.",eD.CAST_TOKEN_MALFORMED="Sess\u00e3o de transmiss\u00e3o inv\u00e1lida. Atualize ou tente novamente mais tarde.",eD.SERVER_ERROR="Ocorreu um erro interno do servidor. Tente novamente mais tarde.",eD.STOPPED_BY_ANOTHER_PLAYBACK="Sua conta est\u00e1 reproduzindo este v\u00eddeo em outro local. Recarregue esta p\u00e1gina para continuar assistindo.", eD.STREAM_LICENSE_NOT_FOUND="Reprodu\u00e7\u00e3o de v\u00eddeo interrompida. Tente novamente.",eD.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Foram utilizados muitos dispositivos/endere\u00e7os IP no per\u00edodo de 24 horas.",eD.STREAMING_NOT_ALLOWED="Reprodu\u00e7\u00e3o n\u00e3o permitida porque este v\u00eddeo est\u00e1 fixado a outro dispositivo.",eD.RETRYABLE_ERROR="Ocorreu um erro tempor\u00e1rio no servidor. Tente novamente mais tarde.",eD.TOO_MANY_REQUESTS="Fa\u00e7a login para assistir este v\u00eddeo.", eD.TOO_MANY_REQUESTS_WITH_LINK="$BEGIN_LINKClique aqui$END_LINK para assistir este v\u00eddeo no YouTube.",eD.TOO_MANY_STREAMS_PER_USER="A reprodu\u00e7\u00e3o foi interrompida porque est\u00e3o sendo exibidos muitos v\u00eddeos da mesma conta.",eD.TOO_MANY_STREAMS_PER_ENTITLEMENT="A reprodu\u00e7\u00e3o foi interrompida porque este v\u00eddeo foi reproduzido em muitos dispositivos.",eD.UNSUPPORTED_DEVICE="A reprodu\u00e7\u00e3o n\u00e3o \u00e9 compat\u00edvel com este dispositivo.",eD.VIDEO_FORBIDDEN= "O acesso a este v\u00eddeo \u00e9 proibido.",eD.VIDEO_NOT_FOUND="N\u00e3o foi poss\u00edvel localizar o v\u00eddeo.",eD.BROWSER_OR_EXTENSION_ERROR="Algo deu errado. Atualize ou tente de novo depois. $BEGIN_LINKSaiba mais$END_LINK",eD);var gSJ;var AnW=g.wX(),U5H=AnW.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!U5H||U5H.length<2)gSJ=void 0;else{var d5J=AnW.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);gSJ=d5J&&d5J.length===6?Number(d5J[5].replace("_",".")):0}var IV=gSJ,N8=IV>=0;g.t(g.Rc,N2);g.Rc.prototype.C=function(m,V,O,h,w){return N2.prototype.C.call(this,m,V,O,h,w)};var uZ={},a_=(uZ.FAIRPLAY="fairplay",uZ.PLAYREADY="playready",uZ.WIDEVINE="widevine",uZ.CLEARKEY=null,uZ.FLASHACCESS=null,uZ.UNKNOWN=null,uZ.WIDEVINE_CLASSIC=null,uZ);oc.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var zB={},OF=(zB.WIDTH={name:"width",video:!0,valid:640,Dy:99999},zB.HEIGHT={name:"height",video:!0,valid:360,Dy:99999},zB.FRAMERATE={name:"framerate",video:!0,valid:30,Dy:9999},zB.BITRATE={name:"bitrate",video:!0,valid:3E5,Dy:2E9},zB.EOTF={name:"eotf",video:!0,valid:"bt709",Dy:"catavision"},zB.CHANNELS={name:"channels",video:!1,valid:2,Dy:99},zB.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",Dy:"invalidformat"},zB.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", Dy:"nope"},zB.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",Dy:"av99.0.05M.08"},zB.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",Dy:"invalid"},zB.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",Dy:"false"},zB);var t5A=["h","H"],KAA=["9","("],WAZ=["9h","(h"],X8I=["8","*"],H9A=["a","A"],TZW=["o","O"],$5c=["m","M"],YmA=["mac3","MAC3"],kxh=["meac3","MEAC3"],ZF={},Bk3=(ZF.h=t5A,ZF.H=t5A,ZF["9"]=KAA,ZF["("]=KAA,ZF["9h"]=WAZ,ZF["(h"]=WAZ,ZF["8"]=X8I,ZF["*"]=X8I,ZF.a=H9A,ZF.A=H9A,ZF.o=TZW,ZF.O=TZW,ZF.m=$5c,ZF.M=$5c,ZF.mac3=YmA,ZF.MAC3=YmA,ZF.meac3=kxh,ZF.MEAC3=kxh,ZF),rnJ=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),eXX=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var P={},N3=(P["0"]="f",P["160"]="h",P["133"]="h",P["134"]="h",P["135"]="h",P["136"]="h",P["137"]="h",P["264"]="h",P["266"]="h",P["138"]="h",P["298"]="h",P["299"]="h",P["304"]="h",P["305"]="h",P["214"]="h",P["216"]="h",P["374"]="h",P["375"]="h",P["140"]="a",P["141"]="a",P["327"]="sa",P["258"]="m",P["380"]="mac3",P["328"]="meac3",P["161"]="H",P["142"]="H",P["143"]="H",P["144"]="H",P["222"]="H",P["223"]="H",P["145"]="H",P["224"]="H",P["225"]="H",P["146"]="H",P["226"]="H",P["227"]="H",P["147"]="H",P["384"]= "H",P["376"]="H",P["385"]="H",P["377"]="H",P["149"]="A",P["261"]="M",P["381"]="MAC3",P["329"]="MEAC3",P["598"]="9",P["278"]="9",P["242"]="9",P["243"]="9",P["244"]="9",P["775"]="9",P["776"]="9",P["777"]="9",P["778"]="9",P["779"]="9",P["780"]="9",P["781"]="9",P["782"]="9",P["783"]="9",P["247"]="9",P["248"]="9",P["353"]="9",P["355"]="9",P["356"]="9",P["271"]="9",P["577"]="9",P["313"]="9",P["579"]="9",P["272"]="9",P["302"]="9",P["303"]="9",P["407"]="9",P["408"]="9",P["308"]="9",P["315"]="9",P["330"]= "9h",P["331"]="9h",P["332"]="9h",P["333"]="9h",P["334"]="9h",P["335"]="9h",P["336"]="9h",P["337"]="9h",P["338"]="so",P["600"]="o",P["250"]="o",P["251"]="o",P["774"]="o",P["194"]="*",P["195"]="*",P["220"]="*",P["221"]="*",P["196"]="*",P["197"]="*",P["279"]="(",P["280"]="(",P["317"]="(",P["318"]="(",P["273"]="(",P["274"]="(",P["357"]="(",P["358"]="(",P["275"]="(",P["359"]="(",P["360"]="(",P["276"]="(",P["583"]="(",P["584"]="(",P["314"]="(",P["585"]="(",P["561"]="(",P["277"]="(",P["361"]="(h",P["362"]= "(h",P["363"]="(h",P["364"]="(h",P["365"]="(h",P["366"]="(h",P["591"]="(h",P["592"]="(h",P["367"]="(h",P["586"]="(h",P["587"]="(h",P["368"]="(h",P["588"]="(h",P["562"]="(h",P["409"]="(",P["410"]="(",P["411"]="(",P["412"]="(",P["557"]="(",P["558"]="(",P["394"]="1",P["395"]="1",P["396"]="1",P["397"]="1",P["398"]="1",P["399"]="1",P["720"]="1",P["721"]="1",P["400"]="1",P["401"]="1",P["571"]="1",P["402"]="1",P["694"]="1h",P["695"]="1h",P["696"]="1h",P["697"]="1h",P["698"]="1h",P["699"]="1h",P["700"]="1h", P["701"]="1h",P["702"]="1h",P["703"]="1h",P["386"]="3",P["387"]="w",P["406"]="6",P["787"]="1",P["788"]="1",P["548"]="1e",P["549"]="1e",P["550"]="1e",P["551"]="1e",P["809"]="1e",P["810"]="1e",P["552"]="1e",P["811"]="1e",P["812"]="1e",P["553"]="1e",P["813"]="1e",P["814"]="1e",P["554"]="1e",P["815"]="1e",P["816"]="1e",P["555"]="1e",P["817"]="1e",P["818"]="1e",P["572"]="1e",P["556"]="1e",P["645"]="(",P["646"]="(",P["647"]="(",P["648"]="(",P["649"]="(",P["650"]="(",P["651"]="(",P["652"]="(",P["653"]="(", P["654"]="(",P["655"]="(",P["656"]="(",P["657"]="(",P["658"]="(",P["659"]="(",P["660"]="(",P["661"]="(",P["662"]="(",P["663"]="(",P["664"]="(",P["665"]="(",P["666"]="(",P["667"]="(",P["668"]="(",P["669"]="(",P["670"]="(",P["671"]="(",P["672"]="(",P["673"]="(",P["674"]="(h",P["675"]="(h",P["676"]="(h",P["677"]="(h",P["678"]="(h",P["679"]="(h",P["680"]="(h",P["681"]="(h",P["682"]="(h",P["683"]="(h",P["684"]="(h",P["685"]="(h",P["686"]="(h",P["687"]="(h",P["688"]="A",P["689"]="A",P["690"]="A",P["691"]= "MEAC3",P["773"]="i",P["806"]="I",P["805"]="I",P["829"]="9",P["830"]="9",P["831"]="9",P["832"]="9",P["833"]="9",P["834"]="9",P["835"]="9",P["836"]="9",P["892"]="9",P["893"]="9",P["837"]="9",P["838"]="9",P["839"]="9",P["840"]="9",P["841"]="(",P["842"]="(",P["843"]="(",P["844"]="(",P["845"]="(",P["846"]="(",P["847"]="(",P["848"]="(",P["894"]="(",P["895"]="(",P["849"]="(",P["850"]="(",P["851"]="(",P["852"]="(",P["865"]="9",P["866"]="9",P["867"]="9",P["868"]="9",P["869"]="9",P["870"]="9",P["871"]="9", P["872"]="9",P["896"]="9",P["897"]="9",P["873"]="9",P["874"]="9",P["875"]="9",P["876"]="9",P["877"]="(",P["878"]="(",P["879"]="(",P["880"]="(",P["881"]="(",P["882"]="(",P["883"]="(",P["884"]="(",P["898"]="(",P["899"]="(",P["885"]="(",P["886"]="(",P["887"]="(",P["888"]="(",P["900"]="2",P["901"]="2",P["902"]="2",P["903"]="2",P["904"]="2",P["905"]="2",P["906"]="2",P["907"]="2",P["908"]="2",P);var sQ={},Tk3=(sQ.STEREO_LAYOUT_UNKNOWN=0,sQ.STEREO_LAYOUT_LEFT_RIGHT=1,sQ.STEREO_LAYOUT_TOP_BOTTOM=2,sQ);var w50={Pnu:0,K90:124,G9H:144,yfA:220,UX6:240,EQr:340,qQt:360,F9z:480,YQt:588,fbH:608,k9e:720,MPH:740,iTH:1080,gQH:1100,vQY:1440,HT6:2160,oQN:9999,0:"QUALITY_ORDINAL_UNKNOWN",124:"QUALITY_ORDINAL_144P_SAVER",144:"QUALITY_ORDINAL_144P",220:"QUALITY_ORDINAL_240P_SAVER",240:"QUALITY_ORDINAL_240P",340:"QUALITY_ORDINAL_360P_SAVER",360:"QUALITY_ORDINAL_360P",480:"QUALITY_ORDINAL_480P",588:"QUALITY_ORDINAL_608P_SAVER",608:"QUALITY_ORDINAL_608P",720:"QUALITY_ORDINAL_720P",740:"QUALITY_ORDINAL_720P_ENHANCED", 1080:"QUALITY_ORDINAL_1080P",1100:"QUALITY_ORDINAL_1080P_ENHANCED",1440:"QUALITY_ORDINAL_1440P",2160:"QUALITY_ORDINAL_2160P",9999:"QUALITY_ORDINAL_HIGHRES"};var Fg,s_,ao,YaG;Fg={};g.kH=(Fg.auto=0,Fg.tiny=144,Fg.light=144,Fg.small=240,Fg.medium=360,Fg.large=480,Fg.hd720=720,Fg.hd1080=1080,Fg.hd1440=1440,Fg.hd2160=2160,Fg.hd2880=2880,Fg.highres=4320,Fg);s_={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};ao={}; YaG=(ao.QUALITY_ORDINAL_UNKNOWN=0,ao.QUALITY_ORDINAL_144P_SAVER=124,ao.QUALITY_ORDINAL_144P=144,ao.QUALITY_ORDINAL_240P_SAVER=220,ao.QUALITY_ORDINAL_240P=240,ao.QUALITY_ORDINAL_360P_SAVER=340,ao.QUALITY_ORDINAL_360P=360,ao.QUALITY_ORDINAL_480P=480,ao.QUALITY_ORDINAL_608P_SAVER=588,ao.QUALITY_ORDINAL_608P=608,ao.QUALITY_ORDINAL_720P=720,ao.QUALITY_ORDINAL_720P_ENHANCED=740,ao.QUALITY_ORDINAL_1080P=1080,ao.QUALITY_ORDINAL_1080P_ENHANCED=1100,ao.QUALITY_ORDINAL_1440P=1440,ao.QUALITY_ORDINAL_2160P=2160, ao.QUALITY_ORDINAL_HIGHRES=9999,ao);var cg="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");rk.prototype.isHdr=function(){return this.Z==="smpte2084"||this.Z==="arib-std-b67"};b6.prototype.QV=function(){return this.containerType===2}; b6.prototype.isEncrypted=function(){return!!this.He}; b6.prototype.RF=function(){return!!this.audio}; b6.prototype.Z8=function(){return!!this.video}; var Ic=!1;g.t(j7,g.yh);g.U=j7.prototype;g.U.appendBuffer=function(m,V,O){if(this.hq.TI()!==this.appendWindowStart+this.start||this.hq.SH()!==this.appendWindowEnd+this.start||this.hq.OU()!==this.timestampOffset+this.start)this.hq.supports(1),this.hq.vT(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.hq.BU(this.timestampOffset+this.start);this.hq.appendBuffer(m,V,O)}; g.U.abort=function(){this.hq.abort()}; g.U.remove=function(m,V){this.hq.remove(m+this.start,V+this.start)}; g.U.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.U.clear=function(){this.hq.clear()}; g.U.vT=function(m,V){this.appendWindowStart=m;this.appendWindowEnd=V}; g.U.f7=function(){return this.timestampOffset+this.start}; g.U.TI=function(){return this.appendWindowStart}; g.U.SH=function(){return this.appendWindowEnd}; g.U.BU=function(m){this.timestampOffset=m}; g.U.OU=function(){return this.timestampOffset}; g.U.RJ=function(m){m=this.hq.RJ(m===void 0?!1:m);return y8(m,this.start,this.end)}; g.U.II=function(){return this.hq.II()}; g.U.qA=function(){return this.hq.qA()}; g.U.Lw=function(){return this.hq.Lw()}; g.U.gE=function(){return this.hq.gE()}; g.U.IP=function(){this.hq.IP()}; g.U.il=function(m){return this.hq.il(m)}; g.U.k9=function(){return this.hq.k9()}; g.U.cI=function(){return this.hq.cI()}; g.U.HF=function(m,V,O){this.hq.HF(m,V,O)}; g.U.Ua=function(m,V,O){this.hq.Ua(m,V,O)}; g.U.Ag=function(m,V){return this.hq.Ag(m,V)}; g.U.supports=function(m){return this.hq.supports(m)}; g.U.m$=function(){return this.hq.m$()}; g.U.isView=function(){return!0}; g.U.VU=function(){return this.hq.VU()?this.isActive:!1}; g.U.isLocked=function(){return this.Gm&&!this.isActive}; g.U.xD=function(m){m=this.hq.xD(m);m.vw=this.start+"-"+this.end;return m}; g.U.d5=function(){return this.hq.d5()}; g.U.yy=function(){return this.hq.yy()}; g.U.Hn=function(){return this.hq.Hn()}; g.U.d0=function(){this.hq.F1(this.R1);g.yh.prototype.d0.call(this)};var BY=!1;g.t(JT,g.yh);g.U=JT.prototype;g.U.appendBuffer=function(m,V,O){this.EY=!1;O&&(this.Hk=O);if(m.length){var h;((h=this.XA)==null?0:h.appendBuffer)?this.XA.appendBuffer(m):this.XA?this.XA.append(m):this.yC&&this.yC.webkitSourceAppend(this.id,m)}V&&(V.isEncrypted()&&(this.rE=this.Hk),V.type===3&&(this.Cf=V),this.KF.push(V.Gj()),this.KF.length>4&&this.KF.shift());this.k_&&(this.k_.length>=2||m.length>1048576?delete this.k_:this.k_.push(m))}; g.U.abort=function(){try{this.XA?this.XA.abort():this.yC&&this.yC.webkitSourceAbort(this.id)}catch(m){PZa&&g.cj(new g.no("Error while abort the source buffer: "+m.name+", "+m.message))}this.Hk=this.Cf=null}; g.U.remove=function(m,V,O){this.EY=!1;var h;if((h=this.XA)==null?0:h.remove)O&&O({b:vg(this.RJ()),s:m,e:V}),this.XA.remove(m,V)}; g.U.removeAll=function(){this.remove(this.TI(),this.SH())}; g.U.clear=function(){this.Lw()||(this.abort(),this.removeAll(),this.rE=this.Hk=this.Cf=null,this.appendWindowStart=this.timestampOffset=0,this.oR=QK([],[]),this.EY=!1,this.k_=LS?[]:void 0,this.uS=!0)}; g.U.TI=function(){if(BY&&this.Z8)return this.appendWindowStart;var m;return((m=this.XA)==null?void 0:m.appendWindowStart)||0}; g.U.SH=function(){var m;return((m=this.XA)==null?void 0:m.appendWindowEnd)||0}; g.U.vT=function(m,V){this.XA&&(BY&&this.Z8?(this.appendWindowStart=m,this.XA.appendWindowEnd=V):m>this.TI()?(this.XA.appendWindowEnd=V,this.XA.appendWindowStart=m):(this.XA.appendWindowStart=m,this.XA.appendWindowEnd=V))}; g.U.f7=function(){return this.timestampOffset}; g.U.BU=function(m){BY?this.timestampOffset=m:this.supports(1)&&(this.XA.timestampOffset=m)}; g.U.OU=function(){return BY?this.timestampOffset:this.supports(1)?this.XA.timestampOffset:0}; g.U.RJ=function(m){if(m===void 0?0:m)return this.EY||this.II()||(this.oR=this.RJ(!1),this.EY=!0),this.oR;try{return this.XA?this.XA.buffered:this.yC?this.yC.webkitSourceBuffered(this.id):QK([0],[Infinity])}catch(V){return QK([],[])}}; g.U.II=function(){var m;return((m=this.XA)==null?void 0:m.updating)||!1}; g.U.Lw=function(){return this.uS}; g.U.gE=function(){return!this.uS&&this.II()}; g.U.IP=function(){this.uS=!1}; g.U.il=function(m){var V=m==null?void 0:m.B6;m=m==null?void 0:m.containerType;return!V&&!m||V===this.B6&&m===this.containerType}; g.U.k9=function(){return this.Hk}; g.U.cI=function(){return this.rE}; g.U.Ag=function(m,V){return this.containerType!==m||this.B6!==V}; g.U.HF=function(m,V,O){if(this.containerType!==m||O&&this.Ag(m,O))this.supports(4),CS()&&this.XA.changeType(V),O&&(this.B6=O);this.containerType=m}; g.U.Ua=function(m,V,O){this.containerType&&this.Ag(m,V)&&CS()&&this.XA.changeType(O);this.containerType=m;this.B6=V}; g.U.m$=function(){return this.Cf}; g.U.isView=function(){return!1}; g.U.supports=function(m){switch(m){case 1:var V;return((V=this.XA)==null?void 0:V.timestampOffset)!==void 0;case 0:var O;return!((O=this.XA)==null||!O.appendBuffer);case 2:var h;return!((h=this.XA)==null||!h.remove);case 3:var w,y;return!!(((w=this.XA)==null?0:w.addEventListener)&&((y=this.XA)==null?0:y.removeEventListener));case 4:return!(!this.XA||!this.XA.changeType);default:return!1}}; g.U.VU=function(){return!this.II()}; g.U.isLocked=function(){return!1}; g.U.xD=function(m){m.to=this.OU();m.up=this.II();var V,O=((V=this.XA)==null?void 0:V.appendWindowStart)||0,h;V=((h=this.XA)==null?void 0:h.appendWindowEnd)||Infinity;m.aw=O.toFixed(3)+"-"+V.toFixed(3);return m}; g.U.qA=function(){var m;return((m=this.XA)==null?void 0:m.writeHead)||0}; g.U.d5=function(){for(var m={},V=0;V=7&&(!V||((h=this.RY)==null?0:h.Y("mweb_ios_allow_playback_workaround_when_ready")))&&mPU(this,function(){g.t6(function(){gWo(m,m.getCurrentTime(),0)},500)})}return V}; g.U.N2=function(m,V,O){var h;((h=this.RY)==null?0:h.tj())&&this.RY.uH(m,V,O===void 0?!1:O)}; g.U.Tt=function(m){this.RY=m}; g.U.Iz=function(){return wG(this.EZ(),this.getCurrentTime())}; g.U.seekTo=function(m){this.f_()>0&&(N8&&IV<4&&(m=Math.max(.1,m)),this.setCurrentTime(m))}; g.U.wl=function(m){if(this.f_()===0||this.hasError())return!1;var V=this.getCurrentTime()>0;if(m>=0){var O=this.BM();if(O.length||!V)return mu(O,m)}return V}; g.U.RS=function(){if(!this.D&&this.P6)if(this.P6.N)try{var m;this.N2("rms",{l:"mer",sr:(m=this.RY)==null?void 0:m.Ug(),rs:oT(this.P6)});this.P6.clear();this.Lv(this.P6);this.P6=void 0}catch(V){m=new g.no("Error while clearing Media Source in MediaElement: "+V.name+", "+V.message),g.kL(m),this.stopVideo()}else this.stopVideo()}; g.U.stopVideo=function(){var m=this;if(!this.D){var V;(V=this.P6)==null||AT(V);if(iA3){if(!this.J){var O=new Ut;O.then(void 0,function(){}); this.J=O;pTa&&this.pause();g.t6(function(){m.J===O&&(tT(m),O.resolve())},200)}}else tT(this)}}; g.U.X8=function(){var m=this.EZ();return hT(m)&&this.getDuration()?V8(m,this.getCurrentTime()):0}; g.U.YY=function(){var m=this.EZ();return hT(m)&&this.getDuration()?m.end(m.length-1):0}; g.U.Oh=function(){var m=this.getDuration();return m===Infinity?1:m?this.X8()/m:0}; g.U.xD=function(){try{var m=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:vg(this.CT(),",",3),vbu:vg(this.EZ()),vbs:vg(this.BM()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.f_(),vns:""+this.B3(),vec:""+this.aJ(),vemsg:this.Kf(),vvol:""+this.getVolume(),vdom:""+ +this.LF(),vsrc:""+ +!!this.sZ(),vw:""+m.width,vh:""+m.height}}catch(V){return{}}}; g.U.zV=function(){return this.aJ()===4}; g.U.hasError=function(){return this.aJ()>0}; g.U.Tl=function(){switch(this.aJ()){case 2:return"progressive.net.retryexhausted";case 3:var m=this.Kf();return(m==null?0:m.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||vOU&&(m==null?0:m.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; g.U.addEventListener=function(m,V){this.Qt.listen(m,V,!1,this);this.Av(m)}; g.U.removeEventListener=function(m,V){this.Qt.yu(m,V,!1,this)}; g.U.dispatchEvent=function(m){if(this.J&&m.type==="pause")return!1;if(lF$){var V,O=((V=m.Z)==null?void 0:V.timeStamp)||Infinity;V=O>performance.now()?O-Date.now()+performance.now():O;O=this.D||this.P6;if((O==null?0:O.Lw())||V<=((O==null?void 0:O.T)||0)){var h;this.N2("rms",{l:"mede",sr:(h=this.RY)==null?void 0:h.Ug(),et:m.type});return!1}if(this.c8)return this.N2("rms",{l:"medes",et:m.type}),O&&m.type==="seeking"&&(O.T=performance.now(),this.c8=!1),!1}return this.Qt.dispatchEvent(m)}; g.U.Fx=function(){this.mS=!1}; g.U.UC=function(){this.mS=!0;this.fE(!0)}; g.U.cG=function(){this.mS&&!this.C$()&&this.fE(!0)}; g.U.equals=function(m){return!!m&&m.Ir()===this.Ir()}; g.U.d0=function(){this.v6&&this.removeEventListener("volumechange",this.cG);iA3&&tT(this);g.Z.prototype.d0.call(this)}; var iA3=!1,pTa=!1,lF$=!1,vOU=!1;g.U=g.KS.prototype;g.U.isPaused=function(){return g.l(this,4)}; g.U.isPlaying=function(){return g.l(this,8)&&!g.l(this,512)&&!g.l(this,64)&&!g.l(this,2)}; g.U.isOrWillBePlaying=function(){return g.l(this,8)&&!g.l(this,2)&&!g.l(this,1024)}; g.U.isCued=function(){return g.l(this,64)&&!g.l(this,8)&&!g.l(this,4)}; g.U.isBuffering=function(){return g.l(this,1)&&!g.l(this,2)}; g.U.isError=function(){return g.l(this,128)}; g.U.isSuspended=function(){return g.l(this,512)}; g.U.D2=function(){return g.l(this,64)&&g.l(this,4)}; g.U.toString=function(){return"PSt."+this.state.toString(16)}; var iZ={},GB=(iZ.BUFFERING="buffering-mode",iZ.CUED="cued-mode",iZ.ENDED="ended-mode",iZ.PAUSED="paused-mode",iZ.PLAYING="playing-mode",iZ.SEEKING="seeking-mode",iZ.UNSTARTED="unstarted-mode",iZ);g.t(DI,g.Z);g.U=DI.prototype;g.U.WD=function(){return this.slot}; g.U.Vt=function(){return this.layout}; g.U.init=function(){var m=GJ(this.layout.clientMetadata,"metadata_type_video_length_seconds"),V=GJ(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");qK(this.layout.uo)&&VX(this.du.get(),this.layout.layoutId,{Da:V,Tm:m,listener:this});zNl(this.qf.get(),this);this.XS()}; g.U.Ka=function(){}; g.U.release=function(){qK(this.layout.uo)&&Ou(this.du.get(),this.layout.layoutId);Z03(this.qf.get(),this);this.xV()}; g.U.P9=function(){}; g.U.hU=function(){}; g.U.startRendering=function(m){if(m.layoutId!==this.layout.layoutId){this.sV.xA(this.slot,m,new FN("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");var V=!1}else V=!0;V&&(this.Zf="rendering_start_requested",this.Hl(-1),this.Ot(m),this.O6(!1))}; g.U.dY=function(m,V){if(V.layoutId===this.layout.layoutId){this.Zf="rendering";this.Z=this.Ge.get().isMuted()||this.Ge.get().getVolume()===0;this.sU("impression");this.sU("start");if(this.Ge.get().isMuted()){bd(this,"mute");var O;m=((O=cm(this))==null?void 0:O.muteCommands)||[];NW(this.FA.get(),m,this.layout.layoutId)}if(this.Ge.get().isFullscreen()){this.xF("fullscreen");var h;O=((h=cm(this))==null?void 0:h.fullscreenCommands)||[];NW(this.FA.get(),O,this.layout.layoutId)}h=this.FH.get();h.D&&!h.L&& (h.K=!1,h.L=!0,h.actionType!=="ad_to_video"&&(bP("pbs",void 0,h.actionType),g.Tm("finalize_all_timelines")&&Sd7(h.actionType)));this.Hl(1);this.Lz(V);var w;V=((w=cm(this))==null?void 0:w.impressionCommands)||[];NW(this.FA.get(),V,this.layout.layoutId)}}; g.U.oU=function(m,V,O){this.K={Tr:3,Io:m==="load_timeout"?402:400,errorMessage:V.message};this.sU("error");var h;m=((h=cm(this))==null?void 0:h.errorCommands)||[];NW(this.FA.get(),m,this.layout.layoutId);this.sV.xA(this.slot,this.layout,V,O)}; g.U.AX=function(){if(this.Zf==="rendering"){bd(this,"pause");var m,V=((m=cm(this))==null?void 0:m.pauseCommands)||[];NW(this.FA.get(),V,this.layout.layoutId);this.Hl(2)}}; g.U.cE=function(){if(this.Zf==="rendering"){bd(this,"resume");var m,V=((m=cm(this))==null?void 0:m.resumeCommands)||[];NW(this.FA.get(),V,this.layout.layoutId)}}; g.U.Rs=function(m,V){V=V===void 0?!1:V;if(this.Zf==="rendering"){UE(this.r0,m*1E3,V);this.Z||UE(this.r0,m*1E3,V===void 0?!1:V);var O=this.p$();O&&(O/=1E3,(m>=O*.25||V)&&this.sU("first_quartile"),(m>=O*.5||V)&&this.sU("midpoint"),(m>=O*.75||V)&&this.sU("third_quartile"),this.ze.get().U.j().experiments.w0("enable_progress_command_flush_on_kabuki")?kV(this.L,m*1E3,V):kV(this.L,m*1E3,$6a(this)?V:!1))}}; g.U.S_=function(){var m;return((m=wk(this.Nf.get(),1))==null?void 0:m.clientPlaybackNonce)||""}; g.U.hp=function(m,V){m.layoutId!==this.layout.layoutId?this.sV.xA(this.slot,m,new FN("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"):V()}; g.U.sI=function(m,V,O){if(V.layoutId===this.layout.layoutId)switch(this.Zf="not_rendering",this.layoutExitReason=void 0,(m=O!=="normal"||this.position+1===this.T)&&this.O6(m),this.uj(O),this.Hl(0),O){case "abandoned":if(d0(this.r0,"impression")){var h,w=((h=cm(this))==null?void 0:h.abandonCommands)||[];NW(this.FA.get(),w,this.layout.layoutId)}break;case "normal":h=((w=cm(this))==null?void 0:w.completeCommands)||[];NW(this.FA.get(),h,this.layout.layoutId);break;case "skipped":var y;h=((y=cm(this))== null?void 0:y.skipCommands)||[];NW(this.FA.get(),h,this.layout.layoutId)}}; g.U.ES=function(){return this.layout.layoutId}; g.U.CZ=function(){return this.K}; g.U.UB=function(){if(this.Zf==="rendering"){this.r0.sU("active_view_measurable");var m,V=((m=cm(this))==null?void 0:m.activeViewMeasurableCommands)||[];NW(this.FA.get(),V,this.layout.layoutId)}}; g.U.H9=function(){if(this.Zf==="rendering"){this.r0.sU("active_view_fully_viewable_audible_half_duration");var m,V=((m=cm(this))==null?void 0:m.activeViewFullyViewableAudibleHalfDurationCommands)||[];NW(this.FA.get(),V,this.layout.layoutId)}}; g.U.y3=function(){if(this.Zf==="rendering"){this.r0.sU("active_view_viewable");var m,V=((m=cm(this))==null?void 0:m.activeViewViewableCommands)||[];NW(this.FA.get(),V,this.layout.layoutId)}}; g.U.GU=function(){if(this.Zf==="rendering"){this.r0.sU("audio_audible");var m,V=((m=cm(this))==null?void 0:m.activeViewAudioAudibleCommands)||[];NW(this.FA.get(),V,this.layout.layoutId)}}; g.U.K2=function(){if(this.Zf==="rendering"){this.r0.sU("audio_measurable");var m,V=((m=cm(this))==null?void 0:m.activeViewAudioMeasurableCommands)||[];NW(this.FA.get(),V,this.layout.layoutId)}}; g.U.O6=function(m){this.FH.get().O6(GJ(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,m,this.position,this.T,!1)}; g.U.onFullscreenToggled=function(m){if(this.Zf==="rendering")if(m){this.xF("fullscreen");var V,O=((V=cm(this))==null?void 0:V.fullscreenCommands)||[];NW(this.FA.get(),O,this.layout.layoutId)}else this.xF("end_fullscreen"),V=((O=cm(this))==null?void 0:O.endFullscreenCommands)||[],NW(this.FA.get(),V,this.layout.layoutId)}; g.U.onVolumeChange=function(){if(this.Zf==="rendering")if(this.Ge.get().isMuted()){bd(this,"mute");var m,V=((m=cm(this))==null?void 0:m.muteCommands)||[];NW(this.FA.get(),V,this.layout.layoutId)}else bd(this,"unmute"),m=((V=cm(this))==null?void 0:V.unmuteCommands)||[],NW(this.FA.get(),m,this.layout.layoutId)}; g.U.iN=function(){}; g.U.XQ=function(){}; g.U.Nz=function(){}; g.U.J7=function(){}; g.U.O8=function(){}; g.U.xF=function(m){this.r0.xF(m,!this.Z)}; g.U.sU=function(m){this.r0.sU(m,!this.Z)};g.t(S7,DI);g.U=S7.prototype;g.U.XS=function(){}; g.U.xV=function(){var m=this.qf.get();m.Fc===this&&(m.Fc=null);this.timer.stop()}; g.U.P9=function(){this.timer.stop();DI.prototype.AX.call(this)}; g.U.hU=function(){YR3(this);DI.prototype.cE.call(this)}; g.U.p$=function(){return GJ(this.Vt().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.U.i6=function(m,V){var O=this;this.hp(m,function(){O.Zf!=="rendering_stop_requested"&&(O.Zf="rendering_stop_requested",O.layoutExitReason=V,Ki$(O,V),O.timer.stop())})}; g.U.Yf=function(){var m=Date.now(),V=m-this.Bb;this.Bb=m;this.Kq+=V;this.Kq>=this.p$()?(this.Kq=this.p$(),this.Rs(this.Kq/1E3,!0),IT(this,this.Kq),this.tK()):(this.Rs(this.Kq/1E3),IT(this,this.Kq))}; g.U.mT=function(m){if(this.Zf!=="not_rendering"){m=WiX(this,m);var V=this.Ge.get().getPresentingPlayerType()===2;this.Zf==="rendering_start_requested"?V&&mF(m)&&this.DZ():V?g.fX(m,2)?ER("Receive player ended event during MediaBreak",this.WD(),this.Vt()):X5a(this,m):this.pm()}}; g.U.Ot=function(){HXU(this);l9m(this.Ge.get());this.qf.get().Fc=this;DY("pbp")||DY("pbs")||bP("pbp");DY("pbp","watch")||DY("pbs","watch")||bP("pbp",void 0,"watch");this.DZ()}; g.U.Lz=function(m){this.FH.get();var V=GJ(m.clientMetadata,"metadata_type_ad_placement_config").kind,O=this.position===0;m=GJ(m.clientMetadata,"metadata_type_linked_in_player_layout_type");m={adBreakType:Nv(V),adType:M01(m)};var h=void 0;O?V!=="AD_PLACEMENT_KIND_START"&&(h="video_to_ad"):h="ad_to_ad";ko("ad_mbs",void 0,h);g.r5(m,h);YR3(this)}; g.U.pm=function(){this.tK()}; g.U.uj=function(){}; g.U.B7=function(){};g.t(zP,DI);g.U=zP.prototype;g.U.pm=function(){this.tK()}; g.U.mT=function(m){this.bA(m)}; g.U.XS=function(){GJ(this.Vt().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=GJ(this.Vt().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.U.xV=function(){GJ(this.Vt().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;this.ZM&&this.zj.get().removeCueRange(this.ZM);this.ZM=void 0;var m;(m=this.Gk)==null||m.dispose();this.j4&&this.j4.dispose()}; g.U.Ot=function(m){var V=GJ(m.clientMetadata,"metadata_type_ad_placement_config");V=e7(this.ze.get(),V);var O=ud(this.ze.get());if(V&&O){O=GJ(m.clientMetadata,"metadata_type_preload_player_vars");var h=this.ze.get();h=g.m9(h.U.j().experiments,"html5_preload_wait_time_secs");O&&this.j4&&this.j4.start(h*1E3)}O=GJ(m.clientMetadata,"metadata_type_ad_video_id");h=GJ(m.clientMetadata,"metadata_type_legacy_info_card_vast_extension");O&&h&&this.tR.get().U.j().H6.add(O,{h2:h});(O=GJ(m.clientMetadata,"metadata_type_sodar_extension_data"))&& FQl(this.PW.get(),O);QpG(this.Ge.get(),!1);HXU(this);V?(O=this.XH.get(),m=GJ(m.clientMetadata,"metadata_type_player_vars"),O.U.loadVideoByPlayerVars(m,!1,2)):f9I(this.XH.get(),GJ(m.clientMetadata,"metadata_type_player_vars"));var w;(w=this.Gk)==null||w.start();V||this.XH.get().U.playVideo(2)}; g.U.Lz=function(){var m;(m=this.Gk)==null||m.stop();this.nG();(this.adCpn=tm5(this))||ER("Media layout confirmed started, but ad CPN not set.");this.xf.get().V2("onAdStart",this.adCpn);this.qt=Date.now()}; g.U.p$=function(){var m;return(m=wk(this.Nf.get(),2))==null?void 0:m.VQ}; g.U.pg=function(){this.r0.xF("clickthrough")}; g.U.i6=function(m,V){var O=this;this.hp(m,function(){if(O.Zf!=="rendering_stop_requested"){O.Zf="rendering_stop_requested";O.layoutExitReason=V;Ki$(O,V);var h;(h=O.Gk)==null||h.stop();O.j4&&O.j4.stop();QpG(O.Ge.get(),!0);var w;((w=O.shrunkenPlayerBytesConfig)==null?0:w.shouldRequestShrunkenPlayerBytes)&&O.Ge.get().M6(!1)}})}; g.U.onCueRangeEnter=function(m){m!==this.ZM?ER("Received CueRangeEnter signal for unknown layout.",this.WD(),this.Vt(),{cueRangeId:m}):(this.zj.get().removeCueRange(this.ZM),this.ZM=void 0,m=GJ(this.Vt().clientMetadata,"metadata_type_video_length_seconds"),this.Rs(m,!0),this.sU("complete"))}; g.U.uj=function(m){m!=="abandoned"&&this.xf.get().V2("onAdComplete");this.xf.get().V2("onAdEnd",this.adCpn)}; g.U.nG=function(){this.ZM="adcompletioncuerange:"+this.Vt().layoutId;this.zj.get().addCueRange(this.ZM,0x7ffffffffffff,0x8000000000000,!1,this,2,2)}; g.U.onCueRangeExit=function(){}; g.U.B7=function(m){this.Zf==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&m>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ge.get().M6(!0),this.Rs(m))}; g.U.Rs=function(m,V){DI.prototype.Rs.call(this,m,V===void 0?!1:V);V=Date.now()-this.qt;var O=m*1E3,h={contentCpn:this.S_(),adCpn:tm5(this)};if(m-this.jj>=5){var w=V0&&AC(this.Z(),V)}; g.U.pC=function(m){this.K.delete(m.slotId);for(var V=[],O=g.D(this.YD.values()),h=O.next();!h.done;h=O.next()){h=h.value;var w=h.trigger;w instanceof Br&&w.triggeringSlotId===m.slotId&&V.push(h)}V.length>0&&AC(this.Z(),V)}; g.U.Oz=function(m){for(var V=[],O=g.D(this.YD.values()),h=O.next();!h.done;h=O.next()){h=h.value;var w=h.trigger;w instanceof ea&&w.slotType===m.slotType&&w.Z!==m.slotId&&V.push(h)}V.length>0&&AC(this.Z(),V)}; g.U.Fh=function(m){this.D.add(m.slotId);for(var V=[],O=g.D(this.YD.values()),h=O.next();!h.done;h=O.next())h=h.value,h.trigger instanceof F1&&m.slotId===h.trigger.triggeringSlotId&&V.push(h);V.length>0&&AC(this.Z(),V)}; g.U.Y2=function(m){this.D.delete(m.slotId);this.T.add(m.slotId);for(var V=[],O=g.D(this.YD.values()),h=O.next();!h.done;h=O.next())if(h=h.value,h.trigger instanceof a1)m.slotId===h.trigger.triggeringSlotId&&V.push(h);else if(h.trigger instanceof $n){var w=h.trigger;m.slotId===w.slotId&&this.L.has(w.triggeringLayoutId)&&V.push(h)}V.length>0&&AC(this.Z(),V)}; g.U.sz=function(m){for(var V=[],O=g.D(this.YD.values()),h=O.next();!h.done;h=O.next())h=h.value,h.trigger instanceof im&&m.slotId===h.trigger.triggeringSlotId&&V.push(h);V.length>0&&AC(this.Z(),V)}; g.U.wy=function(m){for(var V=[],O=g.D(this.YD.values()),h=O.next();!h.done;h=O.next())h=h.value,h.trigger instanceof Gd&&m.slotId===h.trigger.triggeringSlotId&&V.push(h);V.length>0&&AC(this.Z(),V)}; g.U.Uz=function(m,V){this.N.add(V.layoutId)}; g.U.G6=function(m,V){this.N.delete(V.layoutId)}; g.U.dY=function(m,V){this.L.add(V.layoutId);for(var O=[],h=g.D(this.YD.values()),w=h.next();!w.done;w=h.next())if(w=w.value,w.trigger instanceof Yn)V.layoutId===w.trigger.triggeringLayoutId&&O.push(w);else if(w.trigger instanceof I1){var y=w.trigger;m.slotType===y.slotType&&V.layoutType===y.layoutType&&V.layoutId!==y.Z&&O.push(w)}else w.trigger instanceof $n&&(y=w.trigger,V.layoutId===y.triggeringLayoutId&&this.T.has(y.slotId)&&O.push(w));O.length>0&&AC(this.Z(),O)}; g.U.sI=function(m,V,O){this.L.delete(V.layoutId);m=[];for(var h=g.D(this.YD.values()),w=h.next();!w.done;w=h.next())if(w=w.value,w.trigger instanceof rR&&V.layoutId===w.trigger.triggeringLayoutId&&m.push(w),w.trigger instanceof kn){var y=w.trigger;V.layoutId===y.triggeringLayoutId&&y.Z.includes(O)&&m.push(w)}m.length>0&&AC(this.Z(),m)}; g.U.jJ=function(){}; g.U.xl=function(){this.T.clear()}; g.U.iP=function(){};g.t(Yh,g.Z);Yh.prototype.CU=function(m,V,O,h){if(this.YD.has(V.triggerId))throw new v("Tried to register duplicate trigger for slot.");if(!(V instanceof Hr))throw new v("Incorrect TriggerType: Tried to register trigger of type "+V.triggerType+" in CloseRequestedTriggerAdapter");this.YD.set(V.triggerId,new vr(m,V,O,h))}; Yh.prototype.Ve=function(m){this.YD.delete(m.triggerId)};g.t(rs,g.Z);rs.prototype.CU=function(m,V,O,h){if(this.YD.has(V.triggerId))throw new v("Tried to register duplicate trigger for slot.");if(!(V instanceof X1||V instanceof zd))throw new v("Incorrect TriggerType: Tried to register trigger of type "+V.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.YD.set(V.triggerId,new vr(m,V,O,h))}; rs.prototype.Ve=function(m){this.YD.delete(m.triggerId)}; rs.prototype.xl=function(m){for(var V=[],O=V.push,h=O.apply,w=[],y=g.D(this.YD.values()),L=y.next();!L.done;L=y.next())L=L.value,L.trigger instanceof X1&&L.trigger.q$===m&&w.push(L);h.call(O,V,g.b(w));O=V.push;h=O.apply;w=[];y=g.D(this.YD.values());for(L=y.next();!L.done;L=y.next())L=L.value,L.trigger instanceof zd&&L.trigger.Z!==m&&w.push(L);h.call(O,V,g.b(w));V.length&&AC(this.Z(),V)}; rs.prototype.iP=function(m){for(var V=[],O=V.push,h=O.apply,w=[],y=g.D(this.YD.values()),L=y.next();!L.done;L=y.next()){L=L.value;var C=L.trigger;C instanceof zd&&C.Z===m&&w.push(L)}h.call(O,V,g.b(w));V.length&&AC(this.Z(),V)};g.t(cO,g.Z);g.U=cO.prototype;g.U.CU=function(m,V,O,h){if(this.YD.has(V.triggerId))throw new v("Tried to register duplicate trigger for slot.");var w="adtriggercuerange:"+V.triggerId;if(V instanceof n7)OQC(this,m,V,O,h,w,V.Z.start,V.Z.end,V.q$,V.visible);else if(V instanceof Td)OQC(this,m,V,O,h,w,0x7ffffffffffff,0x8000000000000,V.q$,V.visible);else throw new v("Incorrect TriggerType: Tried to register trigger of type "+V.triggerType+" in CueRangeTriggerAdapter");}; g.U.Ve=function(m){var V=this.YD.get(m.triggerId);V&&this.zj.get().removeCueRange(V.cueRangeId);this.YD.delete(m.triggerId)}; g.U.onCueRangeEnter=function(m){if(m=h4$(this,m))if(m=this.YD.get(m))if(g.l(mL(this.Ge.get()),32))this.Z.add(m.cueRangeId);else{var V=m==null?void 0:m.xH.trigger;(V instanceof n7||V instanceof Td)&&AC(this.L(),[m.xH])}}; g.U.onCueRangeExit=function(m){(m=h4$(this,m))&&(m=this.YD.get(m))&&this.Z.delete(m.cueRangeId)}; g.U.mT=function(m){if(M6(m,16)<0){m=g.D(this.Z);for(var V=m.next();!V.done;V=m.next())this.onCueRangeEnter(V.value,!0);this.Z.clear()}}; g.U.Vi=function(){}; g.U.pC=function(){}; g.U.Oz=function(){}; g.U.Fh=function(){}; g.U.Y2=function(){}; g.U.sz=function(){}; g.U.wy=function(){}; g.U.Uz=function(){}; g.U.G6=function(){}; g.U.dY=function(){}; g.U.sI=function(){}; g.U.jJ=function(){}; g.U.B7=function(){}; g.U.onFullscreenToggled=function(){}; g.U.iN=function(){}; g.U.XQ=function(){}; g.U.Nz=function(){}; g.U.onVolumeChange=function(){}; g.U.J7=function(){}; g.U.O8=function(){};g.t(DX,g.Z); DX.prototype.CU=function(m,V,O,h){if(this.L.has(V.triggerId)||this.D.has(V.triggerId))throw new v("Tried to re-register the trigger.");m=new vr(m,V,O,h);if(m.trigger instanceof bm)this.L.set(m.trigger.triggerId,m);else if(m.trigger instanceof cr)this.D.set(m.trigger.triggerId,m);else throw new v("Incorrect TriggerType: Tried to register trigger of type "+m.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.L.has(m.trigger.triggerId)&&m.slot.slotId===this.Z&&AC(this.T(),[m])}; DX.prototype.Ve=function(m){this.L.delete(m.triggerId);this.D.delete(m.triggerId)}; DX.prototype.WH=function(m){m=m.slotId;if(this.Z!==m){var V=[];this.Z!=null&&V.push.apply(V,g.b(w9$(this.D,this.Z)));m!=null&&V.push.apply(V,g.b(w9$(this.L,m)));this.Z=m;V.length&&AC(this.T(),V)}};g.t(Nw,g.Z);g.U=Nw.prototype;g.U.CU=function(m,V,O,h){if(this.YD.has(V.triggerId))throw new v("Tried to register duplicate trigger for slot.");if(!(V instanceof um))throw new v("Incorrect TriggerType: Tried to register trigger of type "+V.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.YD.set(V.triggerId,new vr(m,V,O,h))}; g.U.Ve=function(m){this.YD.delete(m.triggerId)}; g.U.dY=function(){}; g.U.sI=function(){}; g.U.Vi=function(){}; g.U.pC=function(){}; g.U.Oz=function(){}; g.U.Fh=function(){}; g.U.Y2=function(){}; g.U.sz=function(){}; g.U.wy=function(){}; g.U.Uz=function(){}; g.U.G6=function(){}; g.U.jJ=function(){};g.t(by,g.Z);g.U=by.prototype;g.U.jJ=function(m,V){for(var O=[],h=g.D(this.YD.values()),w=h.next();!w.done;w=h.next()){w=w.value;var y=w.trigger;y.opportunityType===m&&(y.associatedSlotId&&y.associatedSlotId!==V||O.push(w))}O.length&&AC(this.Z(),O)}; g.U.CU=function(m,V,O,h){if(this.YD.has(V.triggerId))throw new v("Tried to register duplicate trigger for slot.");if(!(V instanceof iMp))throw new v("Incorrect TriggerType: Tried to register trigger of type "+V.triggerType+" in OpportunityEventTriggerAdapter");this.YD.set(V.triggerId,new vr(m,V,O,h))}; g.U.Ve=function(m){this.YD.delete(m.triggerId)}; g.U.Vi=function(){}; g.U.pC=function(){}; g.U.Oz=function(){}; g.U.Fh=function(){}; g.U.Y2=function(){}; g.U.sz=function(){}; g.U.wy=function(){}; g.U.Uz=function(){}; g.U.G6=function(){}; g.U.dY=function(){}; g.U.sI=function(){};g.t(nL,g.Z);g.U=nL.prototype;g.U.CU=function(m,V,O,h){m=new vr(m,V,O,h);if(V instanceof Dq||V instanceof Sa||V instanceof NM||V instanceof Zq||V instanceof xgX){if(this.YD.has(V.triggerId))throw new v("Tried to register duplicate trigger for slot.");this.YD.set(V.triggerId,m)}else throw new v("Incorrect TriggerType: Tried to register trigger of type "+V.triggerType+" in PrefetchTriggerAdapter");}; g.U.Ve=function(m){this.YD.delete(m.triggerId)}; g.U.Vi=function(m){var V=m.slotFulfillmentTriggers.find(function(O){return O instanceof Dq}); V&&(SR(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",V.breakDurationMs,new Set([m.slotId]),!0),OW(this.qf.get(),"ads_css","sid."+m.slotId+";bd."+V.breakDurationMs))}; g.U.pC=function(){}; g.U.Oz=function(){}; g.U.Fh=function(){}; g.U.Y2=function(){}; g.U.sz=function(){}; g.U.wy=function(){}; g.U.Uz=function(){}; g.U.G6=function(){}; g.U.dY=function(){}; g.U.sI=function(){}; g.U.jJ=function(){}; g.U.nB=function(m){var V=this;if(!this.Z)return OW(this.qf.get(),"ads_nfi","a.pta;cid."+m.identifier),!1;this.L&&this.L.stop();this.K&&g.Vn(this.K);var O=J0C(this,m);if(!O){var h=y0a(this),w=this.J!==void 0&&Date.now()<=this.J+1E4;OW(this.qf.get(),"ads_ncfs","cid."+m.identifier+";cd."+m.Ul.toFixed(3)+";ccs."+w+";cfa."+this.T+";bdc."+h.length+";"+h.slice(0,6).map(function(y){return";bd."+y}).join("")); return w?(fL(this.YF,this.Z,m),!0):!1}(h=GJ(O.slot.clientMetadata,"metadata_type_triggering_cue_point"))?h.current=m:ER("Expected triggering cue point ref to be available",O.slot);(new g.mq(function(){var y=O.trigger,L=O.slot;SR(V,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",y.breakDurationMs,new Set,!0);SR(V,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",y.breakDurationMs,new Set,!1);for(var C=0,E=g.D(V.YD.values()),q=E.next();!q.done;q=E.next()){q=q.value;var M=q.trigger; q.slot.slotId===L.slotId&&(V.YD.delete(M.triggerId),C++)}OW(V.qf.get(),"ads_csf","sid."+L.slotId+";bd."+y.breakDurationMs+";dt."+C)},10)).start(); return!0}; g.U.Ym=function(){}; g.U.xl=function(m){var V=this;this.T=!1;this.J=Date.now();if(this.Z&&this.Z.contentCpn!==m)ER("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:m,fetchInstructionsCpn:this.Z.contentCpn}),Iu(this);else{this.D=new g.mq(function(){if(V.T)delete V.D;else{var h=V.Ge.get().getGetAdBreakContext(),w;if(Number(h==null?void 0:(w=h.livePlaybackPosition)==null?void 0:w.utcTimeMillis)>0)delete V.D,LG1(V);else{var y;(y=V.D)==null||y.start()}}},200); var O;(O=this.D)==null||O.start()}}; g.U.iP=function(m){this.Z&&this.Z.contentCpn!==m&&ER("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:m,fetchInstructionsCpn:this.Z.contentCpn},!0);Iu(this)}; g.U.tT=function(m){var V=this;if(this.Z)ER("Unexpected multiple fetch instructions for the current content");else{this.Z=m;m=EAC(m);this.L=new g.mq(function(){LG1(V)},m?m:6E5); this.L.start();this.K=new g.mq(function(){V.Z&&(V.L&&(V.L.stop(),V.L.start()),jXC(V,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},Cf1(this.Z)); m=this.Ge.get().getCurrentTimeSec(1,!1);for(var O=g.D(this.eK.get().QT),h=O.next();!h.done;h=O.next())h=h.value,OW(this.qf.get(),"nocache","ct."+Date.now()+";cmt."+m+";d."+h.Ul.toFixed(3)+";tw."+(h.startSecs-m)+";cid."+h.identifier+";")}}; g.U.d0=function(){g.Z.prototype.d0.call(this);Iu(this)};g.t(eR,g.Z);g.U=eR.prototype;g.U.CU=function(m,V,O,h){if(this.YD.has(V.triggerId))throw new v("Tried to register duplicate trigger for slot.");if(!(V instanceof Qz))throw new v("Incorrect TriggerType: Tried to register trigger of type "+V.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.YD.set(V.triggerId,new vr(m,V,O,h));m=this.Z.has(V.triggeringLayoutId)?this.Z.get(V.triggeringLayoutId):new Set;m.add(V);this.Z.set(V.triggeringLayoutId,m)}; g.U.Ve=function(m){this.YD.delete(m.triggerId);if(!(m instanceof Qz))throw new v("Incorrect TriggerType: Tried to unregister trigger of type "+m.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var V=this.L.get(m.triggerId);V&&(V.dispose(),this.L.delete(m.triggerId));if(V=this.Z.get(m.triggeringLayoutId))V.delete(m),V.size===0&&this.Z.delete(m.triggeringLayoutId)}; g.U.Vi=function(){}; g.U.pC=function(){}; g.U.Oz=function(){}; g.U.Fh=function(){}; g.U.Y2=function(){}; g.U.sz=function(){}; g.U.wy=function(){}; g.U.Uz=function(){}; g.U.G6=function(){}; g.U.jJ=function(){}; g.U.dY=function(m,V){var O=this;if(this.Z.has(V.layoutId)){m=this.Z.get(V.layoutId);m=g.D(m);var h=m.next();for(V={};!h.done;V={eB:void 0},h=m.next())V.eB=h.value,h=new g.mq(function(w){return function(){var y=O.YD.get(w.eB.triggerId);AC(O.D(),[y])}}(V),V.eB.durationMs),h.start(),this.L.set(V.eB.triggerId,h)}}; g.U.sI=function(){};g.t(uy,g.Z);uy.prototype.CU=function(m,V){if(this.YD.has(V.triggerId))throw new v("Tried to register duplicate trigger for slot.");throw new v("Incorrect TriggerType: Tried to register trigger of type "+V.triggerType+" in VideoTransitionTriggerAdapter.");}; uy.prototype.Ve=function(m){this.YD.delete(m.triggerId)};FB.prototype.zP=function(m){return m.kind==="AD_PLACEMENT_KIND_START"};g.t(Gy,g.Z);Gy.prototype.logEvent=function(m){this.Z(m)}; Gy.prototype.Z=function(m,V,O,h,w,y,L,C,E,q,M,f){var x=this;f=f===void 0?0:f;I2(this.ze.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+m,"slot:",w,"layout:",y,"ping:",L,"Opportunity:",{opportunityType:V,associatedSlotId:O,rJe:h,VpY:C,adSlotLoggingData:E,adLayoutLoggingData:q});try{var R=function(){if(!x.ze.get().U.j().Y("html5_disable_client_tmp_logs")&&m!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){m||ER("Empty PACF event type",w,y);var A=v9(x.L.get()),K={eventType:m,eventOrder:++x.eventCount}, X={};w&&(X.slotData=Qi(A,w));y&&(X.layoutData=UH5(A,y));L&&(X.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:L.Z.serializedAdPingMetadata,pingIndex:L.index});C&&(X.triggerData=lf(C.trigger,C.category));V&&(X.opportunityData=dH$(A,V,O,h));A={organicPlaybackContext:{contentCpn:wk(x.Nf.get(),1).clientPlaybackNonce}};A.organicPlaybackContext.isLivePlayback=wk(x.Nf.get(),1).yp;var c;A.organicPlaybackContext.isMdxPlayback=(c=wk(x.Nf.get(),1))==null?void 0: c.isMdxPlayback;var r;if((r=wk(x.Nf.get(),1))==null?0:r.daiEnabled)A.organicPlaybackContext.isDaiContent=!0;var N;if(c=(N=wk(x.Nf.get(),2))==null?void 0:N.clientPlaybackNonce)A.adVideoPlaybackContext={adVideoCpn:c};A&&(X.externalContext=A);K.adClientData=X;E&&(K.serializedSlotAdServingData=E.serializedSlotAdServingDataEntry);q&&(K.serializedAdServingData=q.serializedAdServingDataEntry);M&&(K.errorInfo=M);g.Rz("adsClientStateChange",{adsClientEvent:K})}}; f&&f>0?g.mm(g.Od(),function(){return R()},f):R()}catch(A){I2(this.ze.get(),"html5_log_pacf_logging_errors")&&g.mm(g.Od(),function(){ER(A instanceof Error?A:String(A),w,y,{pacf_message:"exception during pacf logging"})})}};g.t(pL,Gy);pL.prototype.Z=function(m,V,O,h,w,y,L,C,E,q,M){var f=this.ze.get();g.g2(f.U.j())?(f=this.ze.get(),f=g.m9(f.U.j().experiments,"H5_async_logging_delay_ms")):f=void 0;Gy.prototype.Z.call(this,m,V,O,h,w,y,L,C,E,q,M,f)};BO.prototype.clear=function(){this.Z.clear()};ly.prototype.state=function(){return this.Z==="fulfilled"?{state:"fulfilled",value:this.result}:this.Z==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; ly.prototype.T=function(m){vO(m)||QY(m)?hr(PO(m),this.T.bind(this),this.reject.bind(this)):(this.Z="fulfilled",this.result=m,O_(this))}; ly.prototype.reject=function(m){this.Z="rejected";this.error=m;O_(this)}; var QY=NN(function(m){return z9a(m)?m instanceof ly:!1});var Jr=window.C16||"pt-BR";MU.prototype.Kp=function(m){this.client=m}; MU.prototype.Z=function(){this.clear();this.csn=g.t1()}; MU.prototype.clear=function(){this.D.clear();this.L.clear();this.T.clear();this.csn=null};xm.prototype.Kp=function(m){g.yf(fr().Kp).bind(fr())(m)}; xm.prototype.clear=function(){g.yf(fr().clear).bind(fr())()};g.U=R6.prototype;g.U.Kp=function(m){this.client=m}; g.U.E$=function(m,V){var O=this;V=V===void 0?{}:V;g.yf(function(){var h,w,y,L=((h=g.d(m==null?void 0:m.commandMetadata,g.KA))==null?void 0:h.rootVe)||((w=g.d(m==null?void 0:m.commandMetadata,hn$))==null?void 0:(y=w.screenVisualElement)==null?void 0:y.uiType);if(L){h=g.d(m==null?void 0:m.commandMetadata,dAh);if(h==null?0:h.parentTrackingParams){var C=g.g$(h.parentTrackingParams);if(h.parentCsn)var E=h.parentCsn}else V.clickedVisualElement?C=V.clickedVisualElement:m.clickTrackingParams&&(C=g.g$(m.clickTrackingParams)); a:{h=g.d(m,g.xu);w=g.d(m,oIz);if(h){if(w=N63(h,"VIDEO")){h={token:w,videoId:h.videoId};break a}}else if(w&&(h=N63(w,"PLAYLIST"))){h={token:h,playlistId:w.playlistId};break a}h=void 0}V=Object.assign({},{cttAuthInfo:h,parentCsn:E},V);if(g.Tm("expectation_logging")){var q;V.loggingExpectations=((q=g.d(m==null?void 0:m.commandMetadata,hn$))==null?void 0:q.loggingExpectations)||void 0}gC(O,L,C,V)}else g.cj(new g.no("Error: Trying to create a new screen without a rootVeType",m))})()}; g.U.clickCommand=function(m,V,O){m=m.clickTrackingParams;O=O===void 0?0:O;m?(O=g.t1(O===void 0?0:O))?(Bj(this.client,O,g.g$(m),V),V=!0):V=!1:V=!1;return V}; g.U.stateChanged=function(m,V,O){this.visualElementStateChanged(g.g$(m),V,O===void 0?0:O)}; g.U.visualElementStateChanged=function(m,V,O){O=O===void 0?0:O;O===0&&this.L.has(O)?this.V.push([m,V]):z43(this,m,V,O)};tr.prototype.fetch=function(m,V,O){var h=this,w=FGp(m,V,O);return new Promise(function(y,L){function C(){if(O==null?0:O.Ko)try{var q=h.handleResponse(m,w.status,w.response,O);y(q)}catch(M){L(M)}else y(h.handleResponse(m,w.status,w.response,O))} w.onerror=C;w.onload=C;var E;w.send((E=V.body)!=null?E:null)})}; tr.prototype.handleResponse=function(m,V,O,h){O=O.replace(")]}'","");try{var w=JSON.parse(O)}catch(y){g.cj(new g.no("JSON parsing failed after XHR fetch",m,V,O));if((h==null?0:h.Ko)&&O)throw new g.GM(1,"JSON parsing failed after XHR fetch");w={}}V!==200&&(g.cj(new g.no("XHR API fetch failed",m,V,O)),w=Object.assign({},w,{errorMetadata:{status:V}}));return w};Kr.getInstance=function(){var m=g.$I("ytglobal.storage_");m||(m=new Kr,g.TZ("ytglobal.storage_",m));return m}; Kr.prototype.estimate=function(){var m,V,O;return g.u(function(h){m=navigator;return((V=m.storage)==null?0:V.estimate)?h.return(m.storage.estimate()):((O=m.webkitTemporaryStorage)==null?0:O.queryUsageAndQuota)?h.return(afo()):h.return()})}; g.TZ("ytglobal.storageClass_",Kr);Wp.prototype.Mz=function(m){this.handleError(m)}; Wp.prototype.logEvent=function(m,V){switch(m){case "IDB_DATA_CORRUPTED":g.Tm("idb_data_corrupted_killswitch")||this.Z("idbDataCorrupted",V);break;case "IDB_UNEXPECTEDLY_CLOSED":this.Z("idbUnexpectedlyClosed",V);break;case "IS_SUPPORTED_COMPLETED":g.Tm("idb_is_supported_completed_killswitch")||this.Z("idbIsSupportedCompleted",V);break;case "QUOTA_EXCEEDED":GJm(this,V);break;case "TRANSACTION_ENDED":this.D&&Math.random()<=.1&&this.Z("idbTransactionEnded",V);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":m= Object.assign({},V,{hasWindowUnloaded:this.L}),this.Z("idbTransactionAborted",m)}};var pA={},gE3=g.Oi("yt-player-local-media",{Q5:(pA.index={lP:2},pA.media={lP:2},pA.captions={lP:5},pA),shared:!1,upgrade:function(m,V){V(2)&&(g.kB(m,"index"),g.kB(m,"media"));V(5)&&g.kB(m,"captions");V(6)&&(r1(m,"metadata"),r1(m,"playerdata"))}, version:5});var D5$={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},BT;a:{var lZ=g.wX();lZ=lZ.toLowerCase();if(g.P8(lZ,"android")){var NZG=lZ.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(NZG){var b9I=parseFloat(NZG[1]);if(b9I<100){BT=b9I;break a}}var nSc=lZ.match("("+Object.keys(D5$).join("|")+")");BT=nSc?D5$[nSc[0]]:0}else BT=void 0}var G7=BT,i0=G7>=0;var p9p={clientName:"UNKNOWN_INTERFACE",clientVersion:"unknown",clientTheme:"UNKNOWN_THEME",clientLanguage:"en",clientLocation:"US",clientLabel:"",cssPrefix:"",hasDisplay:!0,webpSupport:!1,forcedExperiments:"",requestVideoQuality:"",forceAdsUrl:"",forceHomeAdsUrl:"",internalExperimentFlags:[],oAuthClientProfiles:{},payments:{url:"https://payments.youtube.com"},xsrfToken:"",creditsUrl:"",startTime:0,authConfig:{accessTokenDiscountedExpirationMinutes:5,accessTokenServerExpirationMinutes:5,backgroundRefreshMinRemainingTokenTimeSec:0, defaultPlayerAccessTokenExpirationMs:-1,accountManagerTokenRefreshRetryDelayMs:0,accountManagerTokenRefreshMaxDelayMs:0,enableBackgroundTokenRefresh:!1,enableBackgroundTokenRefreshOauthCallback:!1,enableAuthenticationFailClosed:!1,enableAccountManagerAccountPropagation:!1,supexSignOutDisabled:!1,enableSwitchAccountsButton:!1,enableTectonicPlayerOauthCallback:!1,enableOAuthCredShare:!1},settings:{defaultValues:new Map([["AUTONAV",!0],["AUTONAV_KIDS",!1],["ENABLE_SOUND",!0],["ENABLE_PREVIEWS_WITH_SOUND", !0],["MDX_AUTOPLAY_ENABLED",!0],["SAFETY_MODE",!1],["HOME_ENABLE_PERSONAL_RESULTS",!0],["PRE_APP_USER_SETTING_FOR_LIVING_ROOM",!0]])}};var lfU=pK(function(){var m,V;return(V=(m=window).matchMedia)==null?void 0:V.call(m,"(prefers-reduced-motion: reduce)").matches});var Hp;g.Xe=new xv;Hp=0;var j3=j2X()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.p3?!0:!1;var HX={jn:function(m){m[J[3]]()}, eu:function(m,V){var O=m[0];m[0]=m[V%m[J[7]]];m[V%m[J[7]]]=O}, KE:function(m,V){m[J[18]](0,V)}};var sTl={FTA:"adunit",l3N:"detailpage",TVr:"editpage",gL6:"embedded",jfH:"leanback",AfS:"previewpage",dXr:"profilepage",Tn:"unplugged",Qzu:"playlistoverview",ger:"sponsorshipsoffer",A_0:"shortspage",nLe:"handlesclaiming",z6H:"immersivelivepage",nct:"creatormusic",T4N:"immersivelivepreviewpage",KTf:"admintoolyurt",uV0:"shortsaudiopivot",ptN:"consumption",I30:"background_audio_playback"};var L9p=2592E3;var Qw,Smn,KB;Qw={};g.be=(Qw.STOP_EVENT_PROPAGATION="html5-stop-propagation",Qw.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Qw.IV_DRAWER_OPEN="ytp-iv-drawer-open",Qw.MAIN_VIDEO="html5-main-video",Qw.VIDEO_CONTAINER="html5-video-container",Qw.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",Qw.HOUSE_BRAND="house-brand",Qw);Smn={};KB=(Smn.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",Smn.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",Smn);var ACG={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var K97={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},W9X={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"},UE3={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var IU3={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.WX[J[35]][J[36]]=function(m,V){this[J[9]][m]!==V&&(this[J[9]][m]=V,this[J[21]]=J[8])}; g.WX[J[35]][J[39]]=function(m){y$(26,this);return this[J[9]][m]||null}; g.WX[J[35]][J[70]]=function(){this[J[21]]||(this[J[21]]=xU(2,this));return this[J[21]]}; g.WX[J[35]][J[50]]=function(){var m=new g.WX(this[J[26]],this[J[5]]);m[J[11]]=this[J[11]];m[J[10]]=this[J[10]];m[J[51]]=this[J[51]];m[J[9]]=g.bX(this[J[9]]);m[J[21]]=this[J[21]];return m}; var mmG=[VyG];g.I6.prototype.getLanguageInfo=function(){return this.fP}; g.I6.prototype.getXtags=function(){if(!this.xtags){var m=this.id.split(";");m.length>1&&(this.xtags=m[1])}return this.xtags}; g.I6.prototype.toString=function(){return this.fP.name}; g.I6.prototype.isAutoDubbed=function(){return this.fP.getIsAutoDubbed()}; g.I6.prototype.getLanguageInfo=g.I6.prototype.getLanguageInfo;g.I6.prototype.isAutoDubbed=g.I6.prototype.isAutoDubbed;ee.prototype.equals=function(m){return this.L===m.L&&this.Z===m.Z&&this.D===m.D&&this.reason===m.reason&&(!zX||this.Rr===m.Rr)}; ee.prototype.isLocked=function(){return this.D&&!!this.L&&this.L===this.Z}; ee.prototype.compose=function(m){if(m.D&&Z7(m))return j2;if(m.D||Z7(this))return m;if(this.D||Z7(m))return this;var V=this.L&&m.L?Math.max(this.L,m.L):this.L||m.L,O=this.Z&&m.Z?Math.min(this.Z,m.Z):this.Z||m.Z;V=Math.min(V,O);var h=0;zX&&(h=this.Rr!==0&&m.Rr!==0?Math.min(this.Rr,m.Rr):this.Rr===0?m.Rr:this.Rr);return zX&&V===this.L&&O===this.Z&&h===this.Rr||!zX&&V===this.L&&O===this.Z?this:zX?new ee(V,O,!1,O===this.Z&&h===this.Rr?this.reason:m.reason,h):new ee(V,O,!1,O===this.Z?this.reason:m.reason)}; ee.prototype.T=function(m){return!m.video||zX&&this.Rr!==0&&this.Rr=0}; g.U.yl=function(){var m=this.segments[this.segments.length-1];return m?m.endTime:NaN}; g.U.jb=function(){return this.segments[0].startTime}; g.U.xB=function(){return this.segments.length}; g.U.uP=function(){return 0}; g.U.AZ=function(m){return(m=this.M1(m))?m.Fr:-1}; g.U.i_=function(m){return(m=this.mL(m))?m.sourceURL:""}; g.U.getStartTime=function(m){return(m=this.mL(m))?m.startTime:0}; g.U.ZP=function(m){return this.getStartTime(m)+this.getDuration(m)}; g.U.Ki=eG(3);g.U.isLoaded=function(){return this.segments.length>0}; g.U.mL=function(m){if(this.Z&&this.Z.Fr===m)return this.Z;m=g.f9(this.segments,new ht(m,0,0,0,""),function(V,O){return V.Fr-O.Fr}); return this.Z=m>=0?this.segments[m]:null}; g.U.M1=function(m){if(this.Z&&this.Z.startTime<=m&&m=0?this.segments[m]:this.segments[Math.max(0,-m-2)]}; g.U.append=function(m){if(m.length)if(m=g.j5(m),this.segments.length){var V=this.segments.length?g.iz(this.segments).endTime:0,O=m[0].Fr-this.wY();O>1&&Glo(this.segments);for(O=O>0?0:-O+1;Om.Fr&&this.index.T7()<=m.Fr+1}; g.U.update=function(m,V,O){this.index.append(m);GuX(this.index,O);m=this.index;m.L=V;m.D="update"}; g.U.v2=function(){return this.Pr()?!0:PK.prototype.v2.call(this)}; g.U.Wf=function(m,V){var O=this.index.i_(m),h=this.index.getStartTime(m),w=this.index.getDuration(m),y;V?w=y=0:y=this.info.Rr>0?this.info.Rr*w:1E3;return new MT([new yA(3,this,void 0,"liveCreateRequestInfoForSegment",m,h,w,0,y,!V)],O)}; g.U.DP=function(){return this.Pr()?0:this.initRange.length}; g.U.U3=function(){return!1};Uz.prototype.update=function(m){var V=void 0;this.L&&(V=this.L);var O=new Uz,h=Array.from(m.getElementsByTagName("S"));if(h.length){var w=+gi(m,"timescale")||1,y=(+h[0].getAttribute("t")||0)/w,L=+gi(m,"startNumber")||0;O.T=y;var C=V?V.startSecs+V.Ul:0,E=Date.parse(Zja(gi(m,"yt:segmentIngestTime")))/1E3;O.K=m.parentElement.tagName==="SegmentTemplate";O.K&&(O.J=gi(m,"media"));m=V?L-V.Fr:1;O.N=m>0?0:-m+1;m=g.D(h);for(h=m.next();!h.done;h=m.next()){h=h.value;for(var q=+h.getAttribute("d")/w,M=(+h.getAttribute("yt:sid")|| 0)/w,f=+h.getAttribute("r")||0,x=0;x<=f;x++)if(V&&L<=V.Fr)L++;else{var R=new uUm(L,C,q,E+M,y);O.Z.push(R);var A=h;var K=w,X=R.startSecs;R=A.getAttribute("yt:cuepointTimeOffset");var c=A.getAttribute("yt:cuepointDuration");if(R&&c){R=Number(R);X=-R/K+X;K=Number(c)/K;c=A.getAttribute("yt:cuepointContext")||null;var r=A.getAttribute("yt:cuepointIdentifier")||"";A=A.getAttribute("yt:cuepointEvent")||"";A=new fH(X,K,c,r,eoM[A]||"unknown",R)}else A=null;A&&O.D.push(A);L++;C+=q;y+=q;E+=q+M}}O.Z.length&& (O.L=g.iz(O.Z))}this.N=O.N;this.L=O.L||this.L;g.L9(this.Z,O.Z);g.L9(this.D,O.D);this.K=O.K;this.J=O.J;this.T===-1&&(this.T=O.getStreamTimeOffset())}; Uz.prototype.getStreamTimeOffset=function(){return this.T===-1?0:this.T};g.t(ts,g.wI);g.U=ts.prototype;g.U.aj=function(){return this.qV}; g.U.UW=function(m,V){m=Ku(this,m);return m>=0&&(V||!this.segments[m].pending)}; g.U.T7=function(){return this.RD?this.segments.length?this.M1(this.jb()).Fr:-1:g.wI.prototype.T7.call(this)}; g.U.jb=function(){if(this.El)return 0;if(!this.RD)return g.wI.prototype.jb.call(this);if(!this.segments.length)return 0;var m=Math.max(g.iz(this.segments).endTime-this.zE,0);return this.De>0&&this.M1(m).Fr0)return this.LR/1E3;if(!this.segments.length)return g.wI.prototype.yl.call(this);var m=this.wY();if(!this.RD||m<=this.segments[this.segments.length-1].Fr)m=this.segments[this.segments.length-1];else{var V=this.segments[this.segments.length-1];m=new ht(m,Math.max(0,V.startTime-(V.Fr-m)*this.qV),this.qV,0,"sq/"+m,void 0,void 0,!0)}return this.El?Math.min(this.zE,m.endTime):m.endTime}; g.U.xB=function(){return this.RD?this.segments.length?this.wY()-this.T7()+1:0:g.wI.prototype.xB.call(this)}; g.U.wY=function(){var m=Math.min(this.zQ,Math.max(g.wI.prototype.wY.call(this),this.nT)),V=this.zE*1E3;V=this.LR>0&&this.LR0&&this.nT>0&&!V&&(V=this.M1(this.zE))&&(m=Math.min(V.Fr-1,m));return m}; g.U.Mk=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.U.j7=function(m){var V=Ku(this,m.Fr);if(V>=0)this.segments[V]=m;else if(this.segments.splice(-(V+1),0,m),this.Br&&m.Fr%(300/this.qV)===0){var O=this.segments[0].Fr,h=Math.floor(this.Br/this.qV);m=m.Fr-h;V=-(V+1)-h;V>0&&m>O&&(this.segments=this.segments.slice(V))}}; g.U.US=function(){return this.nT}; g.U.iW=function(m){return di?!this.L&&m>=0&&this.wY()<=m:g.wI.prototype.iW.call(this,m)}; g.U.M1=function(m){if(!this.RD)return g.wI.prototype.M1.call(this,m);if(!this.segments.length)return null;var V=this.segments[this.segments.length-1];if(m=V.endTime)V=V.Fr+Math.floor((m-V.endTime)/this.qV+1);else{V=xS(this.segments,function(h){return m=h.endTime?1:0}); if(V>=0)return this.segments[V];var O=-(V+1);V=this.segments[O-1];O=this.segments[O];V=Math.floor((m-V.endTime)/((O.startTime-V.endTime)/(O.Fr-V.Fr-1))+1)+V.Fr}return this.mL(V)}; g.U.mL=function(m){if(!this.RD)return g.wI.prototype.mL.call(this,m);if(!this.segments.length)return null;var V=Ku(this,m);if(V>=0)return this.segments[V];var O=-(V+1);V=this.qV;if(O===0)var h=Math.max(0,this.segments[0].startTime-(this.segments[0].Fr-m)*V);else O===this.segments.length?(h=this.segments[this.segments.length-1],h=h.endTime+(m-h.Fr-1)*V):(h=this.segments[O-1],V=this.segments[O],V=(V.startTime-h.endTime)/(V.Fr-h.Fr-1),h=h.endTime+(m-h.Fr-1)*V);return new ht(m,h,V,0,"sq/"+m,void 0,void 0, !0)}; var di=!1;g.t(Wt,o_);g.U=Wt.prototype;g.U.Ex=function(){return!0}; g.U.v2=function(){return!0}; g.U.S1=function(m){return this.Vh()&&m.L&&!m.D||!m.Du.index.iW(m.Fr)}; g.U.Nk=function(){}; g.U.j$=function(m,V){return typeof m!=="number"||isFinite(m)?o_.prototype.j$.call(this,m,V===void 0?!1:V):new MT([new yA(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.u4,void 0,this.u4*this.info.Rr)],"")}; g.U.Wf=function(m,V){var O=O===void 0?!1:O;if(this.index.UW(m))return o_.prototype.Wf.call(this,m,V);var h=this.index.getStartTime(m),w=Math.round(this.u4*this.info.Rr),y=this.u4;V&&(y=w=0);return new MT([new yA(O?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",m,h,y,void 0,w,!V)],m>=0?"sq/"+m:"")};g.t(Xt,PK);g.U=Xt.prototype;g.U.If=function(){return!1}; g.U.Vh=function(){return!1}; g.U.Ex=function(){return!1}; g.U.Nk=function(){return new MT([new yA(1,this,void 0,"otfInit")],this.K)}; g.U.w8=function(){return null}; g.U.CK=function(m){this.S1(m);return lQa(this,Cu(m),!1)}; g.U.j$=function(m,V){V=V===void 0?!1:V;m=this.index.AZ(m);V&&(m=Math.min(this.index.wY(),m+1));return lQa(this,m,!0)}; g.U.Xf=function(m){m.info.type===1&&(this.Z||(this.Z=oi(m.L)),m.Z&&m.Z.uri==="http://youtube.com/streaming/otf/durations/112015"&&QUX(this,m.Z))}; g.U.S1=function(m){return m.L===0?!0:this.index.wY()>m.Fr&&this.index.T7()<=m.Fr+1}; g.U.DP=function(){return 0}; g.U.U3=function(){return!1};var m33=new Map,hhl=new Map,Vc1=new function(){var m=this;this.Z=new Map;this.BD={Q40:function(){return m.Z}}};g.U=g.bq.prototype;g.U.UW=function(m){return m<=this.wY()}; g.U.uP=function(m){return this.offsets[m]}; g.U.getStartTime=function(m){return this.startTicks[m]/this.Z}; g.U.ZP=function(m){return this.getStartTime(m)+this.getDuration(m)}; g.U.Ki=eG(2);g.U.K6=function(){return NaN}; g.U.getDuration=function(m){m=this.vX(m);return m>=0?m/this.Z:-1}; g.U.vX=function(m){return m+1=0}; g.U.yl=function(){return this.L?this.startTicks[this.count]/this.Z:NaN}; g.U.jb=function(){return 0}; g.U.xB=function(){return this.count}; g.U.i_=function(){return""}; g.U.AZ=function(m){m=g.f9(this.startTicks.subarray(0,this.count),m*this.Z);return m>=0?m:Math.max(0,-m-2)}; g.U.isLoaded=function(){return this.wY()>=0}; g.U.FL=function(m,V){if(m>=this.wY())return 0;var O=0;for(V=this.getStartTime(m)+V;mthis.getStartTime(m);m++)O=Math.max(O,qaG(this,m)/this.getDuration(m));return O}; g.U.resize=function(m){m+=2;var V=this.offsets;this.offsets=new Float64Array(m+1);var O=this.startTicks;this.startTicks=new Float64Array(m+1);for(m=0;m0&&m&&(O=O.range.end+1,m=Math.min(m,this.info.contentLength-O),m>0&&h.push(new yA(4,this,hs(O,m),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,V)));return new MT(h)}; g.U.Xf=function(m){if(m.info.type===1){if(this.Z)return;this.Z=oi(m.L)}else if(m.info.type===2){if(this.K||this.index.wY()>=0)return;if(g.Fy(this.info)){var V=this.index,O=g.YQ(m);m=m.info.range.start;var h=g.gI(O,0,1936286840);O=jUG(h);V.Z=O.timescale;var w=O.py;V.offsets[0]=O.Ej+m+h.size;V.startTicks[0]=w;V.L=!0;m=O.Ru.length;for(h=0;h0&&m===y[0].cZ)for(m=0;m=V+O)break}w.length||(m=new g.no("b189619593",""+m,""+V,""+O),g.kL(m));return new MT(w)}; g.U.h5=function(m){for(var V=this.Y_(m.info),O=m.info.range.start+m.info.Z,h=[],w=0;w=this.index.uP(O+1);)O++;return this.ew(O,V,m.L).jz}; g.U.S1=function(m){m.bX();return this.v2()?!0:m.range.end+1this.info.contentLength&&(V=new VA(V.start,this.info.contentLength-1)),new MT([new yA(4,m.Du,V,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,m.clipId)]);m.type===4&&(m=this.Y_(m),m=m[m.length-1]);var O=0,h=m.range.start+m.Z+m.L;m.type===3&&(m.bX(),O=m.Fr,h===m.range.end+1&&(O+=1));return this.ew(O,h,V)}; g.U.CK=function(){return null}; g.U.j$=function(m,V){V=V===void 0?!1:V;m=this.index.AZ(m);V&&(m=Math.min(this.index.wY(),m+1));return this.ew(m,this.index.uP(m),0,void 0)}; g.U.If=function(){return!0}; g.U.Vh=function(){return!0}; g.U.Ex=function(){return!1}; g.U.DP=function(){return this.indexRange.length+this.initRange.length}; g.U.U3=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var PT={},$3p=(PT.COLOR_PRIMARIES_BT709="bt709",PT.COLOR_PRIMARIES_BT2020="bt2020",PT.COLOR_PRIMARIES_UNKNOWN=null,PT.COLOR_PRIMARIES_UNSPECIFIED=null,PT),mN={},f6a=(mN.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",mN.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",mN.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",mN.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",mN.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,mN.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,mN);g.U=g.I_.prototype;g.U.getName=function(){return this.name}; g.U.getId=function(){return this.id}; g.U.getIsDefault=function(){return this.isDefault}; g.U.getIsAutoDubbed=function(){return this.isAutoDubbed}; g.U.toString=function(){return this.name}; g.I_.prototype.getName=g.I_.prototype.getName;g.I_.prototype.getId=g.I_.prototype.getId;g.I_.prototype.getIsDefault=g.I_.prototype.getIsDefault;g.I_.prototype.getIsAutoDubbed=g.I_.prototype.getIsAutoDubbed;var gHo=/action_display_post/;var AMp,z$,ZW;g.t(sz,g.yh);g.U=sz.prototype;g.U.isLoading=function(){return this.state===1}; g.U.Dw=function(){return this.state===3}; g.U.EAY=function(m){var V=m.getElementsByTagName("Representation");if(m.getElementsByTagName("SegmentList").length>0||m.getElementsByTagName("SegmentTemplate").length>0){this.yp=this.L=!0;this.J||(this.J=new F8G);pom(this.J,m);this.publish("refresh");for(m=0;m=0?M=Oz(x):f=f+"?range="+x}E.call(C,new ht(q.Fr,q.startSecs,q.Ul,q.Z,f,M,q.L))}h=w}O.update(h,this.isLive,this.Mf)}B0$(this.J);return!0}this.duration=zx0(gi(m,"mediaPresentationDuration"));a:{for(m= 0;m0))return this.n4()-m}}m=this.Z;for(var V in m){var O=m[V].index;if(O.isLoaded()&&!Bg(m[V].info.mimeType))return O.jb()}return 0}; g.U.getStreamTimeOffset=function(){return this.V}; g.U.K6=function(m){for(var V in this.Z){var O=this.Z[V].index;if(O.isLoaded()){var h=O.AZ(m),w=O.K6(h);if(w)return w+m-O.getStartTime(h)}}return NaN}; var hv=null,upI,w8=!((upI=navigator.mediaCapabilities)==null||!upI.decodingInfo),b$C={commentary:1,alternate:2,dub:3,main:4};var Jb=new Set,yT=new Map;Jv.prototype.clone=function(m){return new Jv(this.flavor,m,this.L,this.experiments)}; Jv.prototype.xD=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; Jv.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 zo$={},Av=(zo$.playready=["com.youtube.playready","com.microsoft.playready"],zo$.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],zo$),V3={},n1X=(V3.widevine="DRM_SYSTEM_WIDEVINE",V3.fairplay="DRM_SYSTEM_FAIRPLAY",V3.playready="DRM_SYSTEM_PLAYREADY",V3),Oo={},Z9a=(Oo.widevine=1,Oo.fairplay=2,Oo.playready=3,Oo);var tv;g.t(UY,g.Z); UY.prototype.initialize=function(m,V){for(var O=this,h=g.D(Object.keys(m)),w=h.next();!w.done;w=h.next()){w=g.D(m[w.value]);for(var y=w.next();!y.done;y=w.next())if(y=y.value,y.He)for(var L=g.D(Object.keys(y.He)),C=L.next();!C.done;C=L.next()){var E=C.value;C=E;E=Av[E];!E&&this.Y("html5_enable_vp9_fairplay")&&C==="fairplay"&&(E=["com.youtube.fairplay.sbdl"]);if(E){E=g.D(E);for(var q=E.next();!q.done;q=E.next())q=q.value,this.D[q]=this.D[q]||new Jv(C,q,y.He[C],this.IY.experiments),this.Z[C]=this.Z[C]|| {},this.Z[C][y.mimeType]=!0}}}v7()&&(this.D["com.youtube.fairplay"]=new Jv("fairplay","com.youtube.fairplay","",this.IY.experiments),this.Y("html5_enable_vp9_fairplay")||(this.Z.fairplay=this.Z.fairplay||{},this.Z.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.Z.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.L=l6C(V,this.useCobaltWidevine,this.Y("html5_enable_safari_fairplay")&&!0,this.Y("html5_enable_vp9_fairplay")).filter(function(M){return!!O.D[M]})}; UY.prototype.Y=function(m){return this.IY.experiments.w0(m)};var sgJ={"":"LIVE_STREAM_MODE_UNKNOWN",dvr:"LIVE_STREAM_MODE_DVR",lp:"LIVE_STREAM_MODE_LP",post:"LIVE_STREAM_MODE_POST",window:"LIVE_STREAM_MODE_WINDOW",live:"LIVE_STREAM_MODE_LIVE"};var aIX={RED:"red",sgH:"white"};WP.prototype.lH=function(m){if(m.ge!==3)throw Error("WpccFlagRetriever only supports WPCC flags");return yTU(this,m)}; WP.prototype.w0=function(m){return this.flags.get(""+m)==="true"};X9.prototype.wu=function(){return this.D}; X9.prototype.tv=function(){return this.L}; X9.prototype.w0=function(m){m=this.lH(m);JSON.stringify(m);return m==="true"}; X9.prototype.lH=function(m){return this.flags[m]};var JTp=Promise.resolve(),M7o=window.queueMicrotask?window.queueMicrotask.bind(window):Cd$;T7.prototype.canPlayType=function(m,V){m=m.canPlayType?m.canPlayType(V):!1;GN?m=m||FAJ[V]:G7===2.2?m=m||aEJ[V]:lB()&&(m=m||i9z[V]);return!!m}; T7.prototype.isTypeSupported=function(m){return this.V?window.cast.receiver.platform.canDisplayType(m):M3(m)}; var aEJ={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},i9z={"application/x-mpegURL":"maybe"},FAJ={"application/x-mpegURL":"maybe"};g.t(kq,g.yh);kq.prototype.add=function(m,V){if(!this.items[m]&&(V.h2||V.lL||V.QM)){var O=this.items,h=V;Object.isFrozen&&!Object.isFrozen(V)&&(h=Object.create(V),Object.freeze(h));O[m]=h;this.publish("vast_info_card_add",m)}}; kq.prototype.remove=function(m){var V=this.get(m);delete this.items[m];return V}; kq.prototype.get=function(m){return this.items[m]||null}; kq.prototype.isEmpty=function(){return g.c8(this.items)};r8.prototype.encrypt=function(m){this.Z.exports.AES128CTRCipher_encrypt(this.cipher,m.byteOffset,m.byteLength);return m}; r8.prototype.UH=function(){return this.cipher===0}; r8.prototype.dispose=function(){this.Z.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};Dj.prototype.FU=function(m,V){V=V===void 0?1:V;this.mM+=V;this.L+=m;m/=V;for(var O=0;O0)h+="."+cP[w].toFixed(0)+"_"+O.Z[w].toFixed(0);else break;O=h}O&&(m[V]=O)}this.Z=new o_a;return m}; g.U.toString=function(){return""};g.U=Ku$.prototype;g.U.isActive=function(){return!1}; g.U.N5=function(){}; g.U.aL=function(){}; g.U.oP=function(){}; g.U.rT=function(m,V){V()}; g.U.ZQ=function(){return{}}; g.U.toString=function(){return""};var Gx5=new Ku$,p8J=!!+Ox("html5_enable_profiler"),BZh=!!+Ox("html5_onesie_enable_profiler"),hp=p8J||BZh?new ATX:Gx5,DrX=p8J?hp:Gx5,b0=BZh?hp:Gx5;kP7.prototype.emscripten_notify_memory_growth=function(){};g.U=NZ.prototype;g.U.malloc=function(m){return this.exports.malloc(m)}; g.U.free=function(m){this.exports.free(m)}; g.U.realloc=function(m,V){return this.exports.realloc(m,V)}; g.U.vp=function(m){if(m.buffer!==this.exports.memory.buffer){var V=this.malloc(m.byteLength);V=new Uint8Array(this.exports.memory.buffer,V,m.byteLength);V.set(m);return V}}; g.U.Bk=function(m){if(m.buffer===this.exports.memory.buffer){var V=m.slice();this.free(m.byteOffset);return V}}; var TGa=new function(){this.Z="WebAssembly"in window},nO="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); b0.N5(NZ,{vp:function(m){return{profile:"copyj2w",mM:m===void 0?0:Math.ceil(m.byteLength/16)}}, Bk:function(m){return{profile:"copyw2j",mM:m===void 0?0:Math.ceil(m.byteLength/16)}}});Sd.prototype.encrypt=function(m,V){try{return this.Z.Bk(NG3(this,m,V))}catch(O){g.cj(Error("ocwce: wasm encrypt failed: "+O))}}; Sd.prototype.UH=function(){return this.D}; Sd.prototype.dispose=function(){this.UH()||(g.Ag(this.L),this.Z.free(this.T.byteOffset),this.D=!0)};g.t(bS0,g.Z);g.t(St5,g.Z);g.t(eFG,g.Z);var Fu5="blogger discover-ads ads-preview ads-fe gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),lIl={nlu:"caoe",SuH:"capsv",vcS:"cbrand",Gd6:"cbr",HUe:"cbrver",ocz:"cchip",a3H:"ccappver",OUr:"ccrv",Jde:"cfrmver",gh6:"c",KwH:"cver",Gvz:"ctheme",vhe:"cplayer",KL6:"cmodel",Bg:"cnetwork",wUr:"cos",OS_VERSION:"cosver",SWr:"cplatform",rfH:"crqyear"};g.t(hW,g.Z);g.U=hW.prototype;g.U.Y=function(m){return this.experiments.w0(m)}; g.U.wu=function(){return this.experiments.wu()}; g.U.tv=function(){return this.experiments.tv()}; g.U.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.U.getVideoUrl=function(m,V,O,h,w,y,L){V={list:V};O&&(w?V.time_continue=O:V.t=O);O=L?"music.youtube.com":g.yl(this);w=O==="www.youtube.com";!y&&h&&w?y="https://youtu.be/"+m:g.l0(this)?(y="https://"+O+"/fire",V.v=m):(y&&w?(y=this.protocol+"://"+O+"/shorts/"+m,h&&(V.feature="share")):(y=this.protocol+"://"+O+"/watch",V.v=m),GN&&(m=gxo())&&(V.ebc=m));return g.N_(y,V)}; g.U.getVideoEmbedCode=function(m,V,O,h){V="https://"+g.yl(this)+"/embed/"+V;h&&(V=g.N_(V,{list:h}));h=O.width;O=O.height;V=ix(V);m=ix(m!=null?m:"YouTube video player");return'')}; g.U.supportsGaplessAudio=function(){return g.q3&&!GN&&Gm()>=74||g.ot&&g.VS(68)?!0:!1}; g.U.supportsGaplessShorts=function(){return!this.Y("html5_enable_short_gapless")||this.Mf||g.AJ?!1:!0}; g.U.getPlayerType=function(){return this.Z.cplayer}; g.U.tj=function(){return this.GB}; var mMI=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],BG5=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],v_1=[19];var wp={},yOX=(wp["140"]={numChannels:2},wp["141"]={numChannels:2},wp["251"]={audioSampleRate:48E3,numChannels:2},wp["774"]={audioSampleRate:48E3,numChannels:2},wp["380"]={numChannels:6},wp["328"]={numChannels:6},wp["773"]={},wp),y3={},hVC=(y3["1"]='video/mp4; codecs="av01.0.08M.08"',y3["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',y3["1e"]='video/mp4; codecs="av01.0.08M.08"',y3["9"]='video/webm; codecs="vp9"',y3["("]='video/webm; codecs="vp9"',y3["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', y3.h='video/mp4; codecs="avc1.64001e"',y3.H='video/mp4; codecs="avc1.64001e"',y3.o='audio/webm; codecs="opus"',y3.a='audio/mp4; codecs="mp4a.40.2"',y3.ah='audio/mp4; codecs="mp4a.40.2"',y3.mac3='audio/mp4; codecs="ac-3"; channels=6',y3.meac3='audio/mp4; codecs="ec-3"; channels=6',y3.i='audio/mp4; codecs="iamf.001.001.Opus"',y3),jP={},wr0=(jP["337"]={width:3840,height:2160,bitrate:3E7,fps:30},jP["336"]={width:2560,height:1440,bitrate:15E6,fps:30},jP["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, jP["702"]={width:7680,height:4320,bitrate:4E7,fps:60},jP["701"]={width:3840,height:2160,bitrate:2E7,fps:60},jP["700"]={width:2560,height:1440,bitrate:1E7,fps:60},jP["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},jP["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},jP["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},jP["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, jP["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},jP["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},jP["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},jP["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},jP["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},jP["315"]={width:3840,height:2160,bitrate:2E7,fps:60},jP["308"]={width:2560, height:1440,bitrate:1E7,fps:60},jP["303"]={width:1920,height:1080,bitrate:5E6,fps:60},jP["302"]={width:1280,height:720,bitrate:25E5,fps:60},jP["299"]={width:1920,height:1080,bitrate:75E5,fps:60},jP["298"]={width:1280,height:720,bitrate:35E5,fps:60},jP["571"]={width:7680,height:4320,bitrate:3E7,fps:60},jP["401"]={width:3840,height:2160,bitrate:15E6,fps:60},jP["400"]={width:2560,height:1440,bitrate:75E5,fps:60},jP["399"]={width:1920,height:1080,bitrate:2E6,fps:60},jP["398"]={width:1280,height:720,bitrate:1E6, fps:60},jP["397"]={width:854,height:480,bitrate:4E5,fps:30},jP["396"]={width:640,height:360,bitrate:25E4,fps:30},jP["787"]={width:1080,height:608,bitrate:2E5,fps:30},jP["788"]={width:1080,height:608,bitrate:4E5,fps:30},jP["572"]={width:7680,height:4320,bitrate:3E7,fps:60},jP["555"]={width:3840,height:2160,bitrate:15E6,fps:60},jP["554"]={width:2560,height:1440,bitrate:75E5,fps:60},jP["553"]={width:1920,height:1080,bitrate:2E6,fps:60},jP["552"]={width:1280,height:720,bitrate:1E6,fps:60},jP["551"]={width:854, height:480,bitrate:4E5,fps:30},jP["550"]={width:640,height:360,bitrate:25E4,fps:30},jP["313"]={width:3840,height:2160,bitrate:8E6,fps:30},jP["271"]={width:2560,height:1440,bitrate:4E6,fps:30},jP["248"]={width:1920,height:1080,bitrate:2E6,fps:30},jP["247"]={width:1280,height:720,bitrate:15E5,fps:30},jP["244"]={width:854,height:480,bitrate:52E4,fps:30},jP["243"]={width:640,height:360,bitrate:28E4,fps:30},jP["137"]={width:1920,height:1080,bitrate:4E6,fps:30},jP["136"]={width:1280,height:720,bitrate:3E6, fps:30},jP["135"]={width:854,height:480,bitrate:1E6,fps:30},jP["385"]={width:1920,height:1080,bitrate:6503313,fps:60},jP["376"]={width:1280,height:720,bitrate:5706960,fps:60},jP["384"]={width:1280,height:720,bitrate:3660979,fps:60},jP["225"]={width:1280,height:720,bitrate:5805E3,fps:30},jP["224"]={width:1280,height:720,bitrate:453E4,fps:30},jP["145"]={width:1280,height:720,bitrate:2682052,fps:30},jP);g.U=KI.prototype;g.U.getInfo=function(){return this.Z}; g.U.B0=function(){return null}; g.U.KY=function(){var m=this.B0();return m?(m=g.Ex(m.Dj),Number(m.expire)):NaN}; g.U.ib=function(){}; g.U.getHeight=function(){return this.Z.video.height};Cmm.prototype.build=function(){Ma3(this);var m=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],V={};a:if(this.Z)var O=this.Z;else{O="";for(var h=g.D(this.D),w=h.next();!w.done;w=h.next())if(w=w.value,w.fP){if(w.fP.getIsDefault()){O=w.fP.getId();break a}O||(O=w.fP.getId())}}h=g.D(this.D);for(w=h.next();!w.done;w=h.next())if(w=w.value,this.N||!w.fP||w.fP.getId()===O)V[w.itag]||(V[w.itag]=[]),V[w.itag].push(w);O=g.D(this.L);for(h=O.next();!h.done;h=O.next())if(h=h.value,w=V[h.Z]){w=g.D(w);for(var y=w.next();!y.done;y= w.next()){var L=m,C=L.push;y=y.value;var E="#EXT-X-MEDIA:TYPE=AUDIO,",q="YES",M="audio";if(y.fP){M=y.fP;var f=M.getId().split(".")[0];f&&(E+='LANGUAGE="'+f+'",');(this.Z?this.Z===M.getId():M.getIsDefault())||(q="NO");M=M.getName()}f="";h!==null&&(f=h.itag.toString());f=XG(this,y.url,f);E=E+('NAME="'+M+'",DEFAULT='+(q+',AUTOSELECT=YES,GROUP-ID="'))+(qWG(y,h)+'",URI="'+(f+'"'));C.call(L,E)}}O=g.D(this.K);for(h=O.next();!h.done;h=O.next())h=h.value,w=lEZ,h=(L=h.fP)?'#EXT-X-MEDIA:URI="'+XG(this,h.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+w+'",LANGUAGE="'+L.getId()+'",NAME="'+L.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,h&&m.push(h);O=this.K.length>0?lEZ:void 0;h=g.D(this.L);for(w=h.next();!w.done;w=h.next())w=w.value,C=V[w.Z],L=void 0,((L=C)==null?void 0:L.length)>0&&(L=w,C=C[0],C="#EXT-X-STREAM-INF:BANDWIDTH="+(L.bitrate+C.bitrate)+',CODECS="'+(L.codecs+","+C.codecs+'",RESOLUTION=')+(L.width+"x"+L.height+',AUDIO="')+(qWG(C,L)+'",')+(O?'SUBTITLES="'+O+'",':"")+"CLOSED-CAPTIONS=NONE",L.fps>1&&(C+= ",FRAME-RATE="+L.fps),L.D1&&(C+=",VIDEO-RANGE="+L.D1),m.push(C),m.push(XG(this,w.url,"")));return m.join("\n")}; var lEZ="text";g.t(HB,KI);HB.prototype.KY=function(){return this.expiration}; HB.prototype.B0=function(){if(!this.Dj||this.Dj.UH()){var m=this.L.build();m="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(m);this.Dj=new Et(m)}return this.Dj};g.t(Tr,KI);Tr.prototype.B0=function(){return new Et(this.L.yF())}; Tr.prototype.ib=function(){this.L=oC(21,this.L)};g.t($C,KI);$C.prototype.B0=function(){return new Et(this.L)};var LN={},KKo=(LN.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",LN.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",LN.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",LN.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",LN);g.U=g.YC.prototype;g.U.getId=function(){return this.id}; g.U.getName=function(){return this.name}; g.U.isServable=function(){return this.Z}; g.U.yF=function(){return this.url}; g.U.getXtags=function(){return this.xtags}; g.U.toString=function(){return this.languageCode+": "+g.kC(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.U.equals=function(m){return m?this.toString()===m.toString():!1}; g.U.o8=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var YWC={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},kdG={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},rOa=/^(\d*)_((\d*)_?(\d*))$/;var DM7={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},NR1={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var Jp={},nn1=(Jp.ALWAYS=1,Jp.BY_REQUEST=3,Jp.UNKNOWN=void 0,Jp),CN={},EEX=(CN.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",CN.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",CN.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",CN.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",CN);var UCo; UCo=function(m){for(var V=Object.keys(m),O={},h=0;hh-V?-1:m}; g.U.p5=function(){return this.L.wY()}; g.U.xn=function(){return this.L.T7()}; g.U.RO=function(m){this.L=m};g.t(yG,hq);yG.prototype.L=function(m,V){return hq.prototype.L.call(this,"$N|"+m,V)}; yG.prototype.K=function(m,V,O){return new wU(m,V,O,this.isLive)};g.t(g.Ld,g.yh);g.U=g.Ld.prototype; g.U.setData=function(m){var V=this;m=m||{};var O=m.errordetail;O!=null&&(this.errorDetail=O);var h=m.errorcode;h!=null?this.errorCode=h:m.status==="fail"&&(this.errorCode="auth");var w=m.reason;w!=null&&(this.errorReason=w);var y=m.subreason;y!=null&&(this.dQ=y);if(!this.clientPlaybackNonce){this.clientPlaybackNonce=m.cpn||(this.IY.tj()?"r"+g.RH(15):g.RH(16));var L;(L=this.jd)==null||L.clear()}this.Yq=Cp(this.IY.Yq,m.livemonitor);bma(this,m);var C=m.raw_player_response;if(C)this.O0=C;else{var E=m.player_response; E&&(C=JSON.parse(E))}C&&(this.playerResponse=C);if(this.playerResponse){var q=this.playerResponse.annotations;q&&SWa(this,q);var M=this.playerResponse.attestation;M&&Iq$(this,M);var f=this.playerResponse.cotn;f&&(this.cotn=f);var x=this.playerResponse.heartbeatParams;x&&s17(this,x);var R=this.playerResponse.messages;R&&GdX(this,R);var A=this.playerResponse.overlay;A&&vn5(this,A);var K=this.playerResponse.playabilityStatus;if(K){PmG(this,K);var X=K.errorScreen;X&&Cil(this,X)}var c=this.playerResponse.playbackTracking; c&&VWp(this,c,m);var r=this.playerResponse.playerCueRanges;r&&r.length>0&&(this.cueRanges=r);var N=this.playerResponse.playerCueRangeSet;N&&g.Mx(this,N);var n=RPI(this.playerResponse.adPlacements);c&&c.promotedPlaybackTracking&&n&&g.cj(new g.no("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));if(n||ZP$(this.playerResponse.adSlots))this.cY=!0;var F=this.playerResponse.playerAds;F&&OmU(this,F,m);var z=this.playerResponse.playerConfig;z&&hB0(this,z);var V$=this.playerResponse.streamingData; V$&&wqp(this,V$,z||null);var O3=this.playerResponse.trackingParams;O3&&(this.Zu=O3);var hI=this.playerResponse.videoDetails;if(hI){jBI(this,hI,m);qla(this,hI,z||null,m);var jG=hI.isPrivate;jG!==void 0&&(this.isPrivate=Cp(this.isPrivate,jG))}K&&Z7G(this,K,hI||null);var fo=this.playerResponse.interstitialPods;fo&&i7C(this,fo);this.xL&&this.eventId&&(this.xL=MB(this.xL,{ei:this.eventId}));var w7=this.playerResponse.captions;w7&&w7.playerCaptionsTracklistRenderer&&u17(this,w7.playerCaptionsTracklistRenderer); (this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.T_=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&prG(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var Ko;this.compositeLiveIngestionOffsetToken=(Ko=this.playerResponse.playbackTracking)==null?void 0:Ko.compositeLiveIngestionOffsetToken; var vX;this.compositeLiveStatusToken=(vX=this.playerResponse.playbackTracking)==null?void 0:vX.compositeLiveStatusToken;this.Y("html5_fill_default_mosaic_audio_track_id")&&hF(this)&&(this.IY.CA=c5X(this));var L5,zl,lp=(L5=this.playerResponse.playerConfig)==null?void 0:(zl=L5.granularVariableSpeedConfig)==null?void 0:zl.minimumPlaybackRate,SG,lz,DM=(SG=this.playerResponse.playerConfig)==null?void 0:(lz=SG.granularVariableSpeedConfig)==null?void 0:lz.maximumPlaybackRate;lp&&DM&&(this.UO=lp/100,this.Hc= DM/100);this.Y("html5_web_po_on_demand_init")&&this.playerResponse.onResponseReceivedActions&&this.playerResponse.onResponseReceivedActions.forEach(function(O7){var ke;((ke=g.d(O7,zVm))==null?void 0:ke.signal)==="INIT_ATT_SERVICE"&&(V.Ik=!0)})}Cd(this,m); nE3(this,m);m.queue_info&&(this.queueInfo=m.queue_info);var k=m.hlsdvr;k!=null&&(this.allowLiveDvr=Number(k)===1?$q()?!0:h8&&IV<5?!1:!0:!1);this.adQueryId=m.ad_query_id||null;this.U6||(this.U6=m.encoded_ad_safety_reason||null);this.ZG=Cp(this.ZG,m.infringe||m.muted);this.Z0=m.authkey;this.lF=m.authuser;this.mutedAutoplay=Cp(this.mutedAutoplay,m&&m.playmuted);this.mutedAutoplayDurationMode=q2(this.mutedAutoplayDurationMode,m&&m.muted_autoplay_duration_mode);this.Ev=Cp(this.Ev,m&&m.mutedautoplay);var PH= m.length_seconds;PH&&(this.lengthSeconds=typeof PH==="string"?BM(PH):PH);this.isAd()||this.hn||!g.o$(g.vP(this.IY))?this.endSeconds=q2(this.endSeconds,this.IB||m.end||m.endSeconds):Zma(this,g.vP(this.IY),this.lengthSeconds);this.Zu=M2(this.Zu,m.itct);this.oQ=Cp(this.oQ,m.is_live_destination);this.isLivePlayback=Cp(this.isLivePlayback,m.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.yp();m.isUpcoming&&(this.isUpcoming=Cp(this.isUpcoming,m.isUpcoming));this.El=Cp(this.El, m.post_live_playback);this.wd&&(this.El=!1);this.isMdxPlayback=Cp(this.isMdxPlayback,m.mdx);var sJ=m.mdx_control_mode;sJ&&(this.mdxControlMode=typeof sJ==="number"?sJ:BM(sJ));this.isInlinePlaybackNoAd=Cp(this.isInlinePlaybackNoAd,m.is_inline_playback_no_ad);this.Je=q2(this.Je,m.reload_count);this.reloadReason=M2(this.reloadReason,m.reload_reason);this.Ck=Cp(this.Ck,m.show_content_thumbnail);this.cycToken=m.cyc||null;var Co=DT(m);Object.keys(Co).length>0&&(this.Bj=Co);this.Ae=M2(this.Ae,m.vvt);this.mdxEnvironment= M2(this.mdxEnvironment,m.mdx_environment);m.source_container_playlist_id&&(this.sourceContainerPlaylistId=m.source_container_playlist_id);m.serialized_mdx_metadata&&(this.serializedMdxMetadata=m.serialized_mdx_metadata);this.pZ=m.osig;this.eventId||(this.eventId=m.eventid);this.osid||(this.osid=m.osid);this.playlistId=M2(this.playlistId,m.list);m.index&&(this.playlistIndex=this.playlistIndex===void 0?q2(0,m.index):q2(this.playlistIndex,m.index));this.qg=m.pyv_view_beacon_url;this.Na=m.pyv_quartile25_beacon_url; this.S7=m.pyv_quartile50_beacon_url;this.Wc=m.pyv_quartile75_beacon_url;this.Pc=m.pyv_quartile100_beacon_url;var rc=m.session_data;!this.Rk&&rc&&(this.Rk=LJ(rc,"&").feature);this.isFling=q2(this.isFling?1:0,m.is_fling)===1;this.vnd=q2(this.vnd,m.vnd);this.forceAdsUrl=M2(this.forceAdsUrl,m.force_ads_url);this.iX=M2(this.iX,m.ctrl);this.Bt=M2(this.Bt,m.ytr);this.PS=m.ytrcc;this.QU=m.ytrexp;this.qR=m.ytrext;this.W6=M2(this.W6,m.adformat);this.uF=M2(this.uF,m.attrib);this.slotPosition=q2(this.slotPosition, m.slot_pos);this.breakType=m.break_type;this.M9=Cp(this.M9,m.ssrt);this.videoId=xk(m)||this.videoId;this.N=M2(this.N,m.vss_credentials_token);this.tN=M2(this.tN,m.vss_credentials_token_type);this.N$=Cp(this.N$,m.audio_only);this.v6=Cp(this.v6,m.aac_high);this.Wl=Cp(this.Wl,m.prefer_low_quality_audio);this.MR=Cp(this.MR,m.uncap_inline_quality);this.Y("html5_enable_qoe_cat_list")?m.qoe_cat&&(this.Jc=this.Jc.concat(m.qoe_cat.split(","))):this.TD=M2(this.TD,m.qoe_cat);this.Oi=Cp(this.Oi,m.download_media); this.J=SUC(this,m.prefer_gapless);xz7(this.playerResponse)&&this.Sm.push("ad");var H=m.adaptive_fmts;H&&(this.adaptiveFormats=H,this.uH("adpfmts",{},!0));var m0=m.allow_embed;m0&&(this.allowEmbed=Number(m0)===1);var K9=m.backgroundable;K9&&(this.backgroundable=Number(K9)===1);var C9=m.autonav;C9&&(this.isAutonav=Number(C9)===1);var p9=m.autoplay;p9&&(this.SJ=this.Ye=Number(p9)===1);var Em=m.iv_load_policy;Em&&(this.annotationsLoadPolicy=Eb(this.annotationsLoadPolicy,Em,PP));var PX=m.cc_lang_pref; PX&&(this.captionsLanguagePreference=M2(PX,this.captionsLanguagePreference));var OJ=m.cc_load_policy;OJ&&(this.z9=Eb(this.z9,OJ,PP));var $S;this.deviceCaptionsOn=($S=m.device_captions_on)!=null?$S:void 0;var Y;this.uv=(Y=m.device_captions_lang_pref)!=null?Y:"";var W;this.BN=(W=m.viewer_selected_caption_langs)!=null?W:[];var T=m.cached_load;T&&(this.A4=Cp(this.A4,T));if(m.dash==="0"||m.dash===0||m.dash===!1)this.u0=!0;var S=m.dashmpd;S&&(this.Ig=g.N_(S,{cpn:this.clientPlaybackNonce}));var B=m.delay; B&&(this.oz=BM(B));var JI=this.IB||m.end;if(this.Xr?JI!=null:JI!=void 0)this.clipEnd=q2(this.clipEnd,JI);var Q=m.fmt_list;Q&&(this.XT=Q);m.heartbeat_preroll&&this.Sm.push("heartbeat");QgA&&(this.gz=-Math.floor(Math.random()*10),this.Sh=-Math.floor(Math.random()*40));var G=m.is_listed;G&&(this.isListed=Cp(this.isListed,G));var e=m.is_private;e&&(this.isPrivate=Cp(this.isPrivate,e));var cX=m.is_dni;cX&&(this.Sb=Cp(this.Sb,cX));var D1=m.dni_color;D1&&(this.Jf=M2(this.Jf,D1));var AI=m.pipable;AI&&(this.pipable= Cp(this.pipable,AI));this.mz=(this.W0=this.pipable&&this.IY.CE)&&!this.IY.showMiniplayerButton;var kU=m.paid_content_overlay_duration_ms;kU&&(this.paidContentOverlayDurationMs=BM(kU));var wc=m.paid_content_overlay_text;wc&&(this.paidContentOverlayText=wc);var $U=m.url_encoded_fmt_stream_map;$U&&(this.M$=$U);var ZE=m.hls_formats;ZE&&(this.hlsFormats=ZE);var B8=m.hlsvp;B8&&(this.hlsvp=B8);var QW=m.live_start_walltime;QW&&(this.uy=typeof QW==="number"?QW:BM(QW));var r7=m.live_manifest_duration;r7&&(this.r4= typeof r7==="number"?r7:BM(r7));var s2=m.player_params;s2&&(this.playerParams=s2);var Nm=m.partnerid;Nm&&(this.partnerId=q2(this.partnerId,Nm));var Xh=m.probe_url;Xh&&(this.probeUrl=sP(g.N_(Xh,{cpn:this.clientPlaybackNonce})));var Z1=m.pyv_billable_url;Z1&&mb5(Z1)&&(this.kJ=Z1);var IQ=m.pyv_conv_url;IQ&&mb5(IQ)&&(this.oo=IQ);eBo(this,m);this.startSeconds>0?this.Y("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.T_||this.Ux||m.start||m.startSeconds)&&this.uH("lss",{css:this.startSeconds, pcss:this.T_,iss:this.Ux,ps:m.start||void 0,pss:m.startSeconds||void 0}):(this.startSeconds=q2(this.startSeconds,this.T_||this.Ux||m.start||m.startSeconds),this.Y("html5_log_start_seconds_inconsistency")&&this.startSeconds>0&&this.uH("lsss",{css:this.startSeconds,pcss:this.T_,iss:this.Ux,ps:m.start||void 0,pss:m.startSeconds||void 0}),this.Mf=this.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var HH=m.live_utc_start;HH!=null?this.liveUtcStartSeconds=Number(HH):vEa(this.startSeconds)&& (this.liveUtcStartSeconds=this.startSeconds)}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var mA=m.utc_start_millis;mA&&(this.liveUtcStartSeconds=Number(mA)*.001)}var yg=m.stream_time_start_millis;yg&&(this.e1=Number(yg)*.001);var zZ=this.Ux||m.start;(this.Xr?zZ==null||Number(m.resume)===1:zZ==void 0||m.resume=="1")||this.isLivePlayback||(this.clipStart=q2(this.clipStart,zZ));var n5=m.url_encoded_third_party_media;n5&&(this.IF=CJ(n5));var AV=m.ypc_offer_button_formatted_text;if(AV){var Dm= JSON.parse(AV);this.ea=Dm!=null?Dm:null;this.zy=AV}var RQ=m.ypc_offer_button_text;RQ&&(this.I2=RQ);var oQ=m.ypc_offer_description;oQ&&(this.F5=oQ);var jo=m.ypc_offer_headline;jo&&(this.zr=jo);var Lx=m.ypc_full_video_message;Lx&&(this.qa=Lx);var LF=m.ypc_offer_id;LF&&(this.T5=LF);var U2=m.ypc_buy_url;U2&&(this.mH=U2);var Jz=m.ypc_item_thumbnail;Jz&&(this.LI=Jz);var Cx=m.ypc_item_title;Cx&&(this.EO=Cx);var EA=m.ypc_item_url;EA&&(this.DH=EA);var pF=m.ypc_vid;pF&&(this.Y4=pF);m.ypc_overlay_timeout&&(this.fH= Number(m.ypc_overlay_timeout));var et=m.ypc_trailer_player_vars;et&&(this.gj=Tl(et));var u5=m.ypc_original_itct;u5&&(this.J8=u5);this.XU=M2(this.XU,m.ucid);this.V8=m.storyboard_spec||null;this.bP=m.live_storyboard_spec||null;this.Ro=m.iv_endscreen_url||null;this.Pb=Cp(this.Pb,m.iv3_module);this.Uv=Cp(this.Uv,m.ypc_module);this.s0=Cp(this.s0,m.ypc_clickwrap_module);this.Uv&&this.Sm.push("ypc");this.s0&&this.Sm.push("ypcRentalActivation");this.Ma={video_id:m.video_id,eventid:m.eventid,cbrand:m.cbrand, cbr:m.cbr,cbrver:m.cbrver,c:m.c,cver:m.cver,ctheme:m.ctheme,cplayer:m.cplayer,cmodel:m.cmodel,cnetwork:m.cnetwork,cos:m.cos,cosver:m.cosver,cplatform:m.cplatform,user_age:m.user_age,user_display_image:m.user_display_image,user_display_name:m.user_display_name,user_gender:m.user_gender,csi_page_type:m.csi_page_type,csi_service_name:m.csi_service_name,enablecsi:m.enablecsi,enabled_engage_types:m.enabled_engage_types};Sl5(this,m);var q0=m.cotn;q0&&(this.cotn=q0);OLo(this)?HC(this)&&(this.isLivePlayback&& this.Ig&&(this.qq=!0),this.hd&&(this.hZ=!0)):hP$(this)?this.qq=!0:VR$(this)?this.enableServerStitchedDai=this.enableServerStitchedDai&&ku(this):this.Ig&&(this.IY.Zu==="yt"&&this.yp()&&this.Y("drm_manifestless_unplugged")&&this.Y("html5_deprecate_manifestful_fallback")?this.uH("deprecateMflFallback",{}):this.qq=!0);var TS=m.adpings;TS&&(this.PP=TS?Tl(TS):null);var $d=m.feature;$d&&(this.je=$d);var M0=m.referrer;M0&&(this.referrer=M0);this.clientScreenNonce=M2(this.clientScreenNonce,m.csn);this.Dx= q2(this.Dx,m.root_ve_type);this.JJ=q2(this.JJ,m.kids_age_up_mode);this.Xr||m.kids_app_info==void 0||(this.kidsAppInfo=m.kids_app_info);this.Xr&&m.kids_app_info!=null&&(this.kidsAppInfo=m.kids_app_info);this.C5=Cp(this.C5,m.upg_content_filter_mode);this.unpluggedFilterModeType=q2(this.unpluggedFilterModeType,m.unplugged_filter_mode_type);var fx=m.unplugged_location_info;fx&&(this.LP=fx);var xw=m.unplugged_partner_opt_out;xw&&(this.h_=M2("",xw));this.LQ=Cp(this.LQ,m.disable_watch_next);this.nV=M2(this.nV, m.internal_ip_override);this.a9=!!m.is_yto_interstitial;this.interstitials.length&&this.Sm.push("playableSequences");var Ry=m.Tv;Ry&&(this.Tv=Ry);this.Qt=M2(this.Qt,m.csi_timer);m.watchUrl&&(this.watchUrl=m.watchUrl);var Wu=m.watch_endpoint;this.Y("html5_attach_watch_endpoint_ustreamer_config")&&Wu&&TRo(this,Wu);if(Wu==null?0:Wu.ustreamerConfig)this.cM=It(Wu.ustreamerConfig);var Bu,Yd,Ye=Wu==null?void 0:(Bu=Wu.loggingContext)==null?void 0:(Yd=Bu.qoeLoggingContext)==null?void 0:Yd.serializedContextData; Ye&&(this.aB=Ye);g.sY(this.IY)&&this.IY.CR&&(this.embedsRct=M2(this.embedsRct,m.rct),this.embedsRctn=M2(this.embedsRctn,m.rctn));m.embed_config&&(this.LT=m.embed_config);this.nf=this.nf||!!m.pause_at_start;m.default_active_source_video_id&&(this.defaultActiveSourceVideoId=m.default_active_source_video_id);this.BB=this.BB||!!m.live_preload}; g.U.j=function(){return this.IY}; g.U.Y=function(m){return this.IY.Y(m)}; g.U.Cr=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.U.hasSupportedAudio51Tracks=function(){var m;return!((m=this.CA)==null||!m.W6)}; g.U.getUserAudio51Preference=function(){var m=1;qs(this.IY)&&this.Y("html5_ytv_surround_toggle_default_off")?m=0:JW(this.IY)&&this.isLivePlayback&&this.gH()&&(m=0);var V;return(V=g.eU("yt-player-audio51"))!=null?V:m}; g.U.cO=function(){this.UH()||(this.Z.L||this.Z.unsubscribe("refresh",this.cO,this),this.Zr(-1))}; g.U.Zr=function(m){if(!this.isLivePlayback||!this.K||this.K.flavor!=="fairplay"){var V=cM1(this.Z,this.aQ);if(V.length>0){for(var O=g.D(V),h=O.next();!h.done;h=O.next())h=h.value,h.startSecs=Math.max(h.startSecs,this.jb()),this.Y("html5_cuepoint_identifier_logging")&&h.event==="start"&&this.uH("cuepoint",{pubCue:h.identifier,segNum:m});this.publish("cuepointupdated",V,m);this.aQ+=V.length;if(ku(this)&&this.IY.tj())for(V=g.D(V),O=V.next();!O.done;O=V.next())O=O.value,this.uH("cuepoint",{segNum:m,event:O.event, startSecs:O.startSecs,id:O.identifier.slice(-16)}),O.event==="start"&&(O=O.startSecs,this.lz.start=this.UU,this.lz.end=O+3)}}}; g.U.AF=function(){this.UH()||(this.loading=!1,this.publish("dataloaded"))}; g.U.gH=function(){return this.XK!==void 0?this.XK:this.XK=!!this.He||!!this.Z&&le(this.Z)}; g.U.s6=function(m){var V=this;if(this.UH())return Iv();this.nA=this.iH=this.D=null;Ec(this,"html5_high_res_logging_always")&&(this.IY.GB=!0);return ju0(this,m).then(void 0,function(){return J5l(V,m)}).then(void 0,function(){return CyX(V)}).then(void 0,function(){return qUp(V)})}; g.U.D_=function(m){this.D=m;LeG(this,this.D.getAvailableAudioTracks());if(this.D){m=g.D(this.D.videoInfos);for(var V=m.next();!V.done;V=m.next()){V=V.value;var O=V.containerType;O!==0&&(this.Zc[O]=V.id)}}m=this.getAvailableAudioTracks();m=m.concat(this.GB);for(V=0;V0)return this.D.getAvailableAudioTracks();if(this.tq)return this.tq;if(this.v8)return this.v8}return[]}; g.U.getAudioTrack=function(){var m=this;if(this.T&&!ac(this.T)){var V=g.p5(this.getAvailableAudioTracks(),function(w){return w.id===m.T.id}),O; if(!V&&((O=this.T.fP)==null?0:O.id)){var h=this.T.fP.id;V=g.p5(this.getAvailableAudioTracks(),function(w){return w.fP.id===h}); this.uH("nat",{id:this.T.id,track:!!V})}return V||this.GB}if(this.tq){if(!this.Ak)for(V=g.D(this.tq),O=V.next();!O.done;O=V.next())if(O=O.value,O.fP.getIsDefault()){this.Ak=O;break}return this.Ak||this.GB}return this.GB}; g.U.getPlayerResponse=function(){return this.playerResponse}; g.U.getWatchNextResponse=function(){return this.mS}; g.U.getReelItemWatchResponse=function(){return this.reelItemWatchResponse}; g.U.getHeartbeatResponse=function(){return this.gU}; g.U.rd=function(){return this.watchUrl?this.watchUrl:this.IY.getVideoUrl(this.videoId)}; g.U.GC=function(){return!!this.Z&&(tcI(this.Z)||KF7(this.Z)||WF0(this.Z))}; g.U.getEmbeddedPlayerResponse=function(){return this.P1}; g.U.X3=function(){return(this.eventLabel||this.IY.mS)==="shortspage"}; g.U.isAd=function(){return this.Nv||!!this.adFormat}; g.U.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.U.Z4=function(){var m,V,O;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((m=this.playerResponse)==null?0:(V=m.playerConfig)==null?0:(O=V.daiConfig)==null?0:O.ssaEnabledPlayback)}; g.U.PT=function(){return this.dl}; g.U.Yw=function(){return this.Uv||this.wB}; g.U.Fi=function(){return Ec(this,"html5_samsung_vp9_live")}; g.U.uH=function(m,V,O){this.publish("ctmp",m,V,O)}; g.U.bI=function(m,V,O){this.publish("ctmpstr",m,V,O)}; g.U.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.U.getGetAdBreakContext=function(m,V){m=m===void 0?NaN:m;V=V===void 0?NaN:V;var O={isSabr:SC(this)},h,w=(h=this.getHeartbeatResponse())==null?void 0:h.adBreakHeartbeatParams;w&&(O.adBreakHeartbeatParams=w);if(this.Y("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.Z&&!isNaN(m)&&!isNaN(V)){V=m-V;for(var y in this.Z.Z)if(h=this.Z.Z[y],h.info.Z8()||h.info.RF())if(h=h.index,h.isLoaded()){y=h.AZ(V);h=h.K6(y)+V-h.getStartTime(y);this.uH("gabc",{t:m.toFixed(3),mt:V.toFixed(3),sg:y,igt:h.toFixed(3)}); O.livePlaybackPosition={utcTimeMillis:""+(h*1E3).toFixed(0)};break}}return O}; g.U.isEmbedsShortsMode=function(m,V){if(!g.sY(this.IY)||(this.IY.iH||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||V)return!1;if(this.Y("embeds_enable_shorts")){var O,h;return!!((O=this.embeddedPlayerConfig)==null?0:(h=O.embeddedPlayerFlags)==null?0:h.isShortsExperienceEligible)}var w,y;return!!(((w=this.embeddedPlayerConfig)==null?0:(y=w.embeddedPlayerFlags)==null?0:y.isShortsExperienceEligible)&&m.width<=m.height)}; g.U.d1=function(m,V){V?this.Vy||(this.Vy=m):this.gt||(this.gt=m)}; g.U.d0=function(){g.yh.prototype.d0.call(this);this.PP=null;delete this.QJ;delete this.accountLinkingConfig;delete this.Z;this.D=this.gU=this.playerResponse=this.mS=null;this.M$=this.adaptiveFormats="";delete this.botguardData;this.EH=this.suggestions=this.JN=null;this.sabrContextUpdates.clear()}; var QgA=!0;var iLp={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},Gyo={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Fep={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},uBI={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"},ZL7={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},zPG={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"},aXC={0:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_UNSPECIFIED",1:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_30_SECONDS",2:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_FULL"};g.t(o0,g.Z);g.U=o0.prototype;g.U.handleExternalCall=function(m,V,O){var h=this.state.N[m],w=this.state.J[m],y=h;if(w)if(O&&zu(O,Roa))y=w;else if(!h)throw Error('API call from an untrusted origin: "'+O+'"');this.logApiCall(m,O);if(y){a:{O=g.D(V);for(h=O.next();!h.done;h=O.next())if(String(h.value).includes("javascript:")){O=!0;break a}O=!1}O&&g.cj(Error('Dangerous call to "'+m+'" with ['+V+"]."));return y.apply(this,V)}throw Error('Unknown API method: "'+m+'".');}; g.U.logApiCall=function(m,V,O){var h=this.app.j();h.Q4&&!this.state.Qt.has(m)&&(this.state.Qt.add(m),g.Rz("webPlayerApiCalled",{callerUrl:h.loaderUrl,methodName:m,origin:V||void 0,playerStyle:h.playerStyle||void 0,embeddedPlayerMode:h.iH,errorCode:O}))}; g.U.publish=function(m){var V=g.AG.apply(1,arguments);this.state.D.publish.apply(this.state.D,[m].concat(g.b(V)));if(m==="videodatachange"||m==="resize"||m==="cardstatechange")this.state.L.publish.apply(this.state.L,[m].concat(g.b(V))),this.state.T.publish.apply(this.state.T,[m].concat(g.b(V)))}; g.U.bH=function(m){var V=g.AG.apply(1,arguments);this.state.D.publish.apply(this.state.D,[m].concat(g.b(V)));this.state.L.publish.apply(this.state.L,[m].concat(g.b(V)))}; g.U.dB=function(m){var V=g.AG.apply(1,arguments);this.state.D.publish.apply(this.state.D,[m].concat(g.b(V)));this.state.L.publish.apply(this.state.L,[m].concat(g.b(V)));this.state.T.publish.apply(this.state.T,[m].concat(g.b(V)))}; g.U.yV=function(m){var V=g.AG.apply(1,arguments);this.state.D.publish.apply(this.state.D,[m].concat(g.b(V)));this.state.L.publish.apply(this.state.L,[m].concat(g.b(V)));this.state.T.publish.apply(this.state.T,[m].concat(g.b(V)));this.state.K.publish.apply(this.state.K,[m].concat(g.b(V)))}; g.U.Y=function(m){return this.app.j().Y(m)}; g.U.d0=function(){if(this.state.element){var m=this.state.element,V;for(V in this.state.Z)this.state.Z.hasOwnProperty(V)&&(m[V]=null);this.state.element=null}g.Z.prototype.d0.call(this)};g.t(tF,g.rO);tF.prototype.publish=function(m){var V=g.AG.apply(1,arguments);if(this.K.has(m))return this.K.get(m).push(V),!0;var O=!1;try{for(V=[V],this.K.set(m,V);V.length;)O=g.rO.prototype.publish.call.apply(g.rO.prototype.publish,[this,m].concat(g.b(V.shift())))}finally{this.K.delete(m)}return O};g.t(Ks,g.Z);Ks.prototype.d0=function(){this.K.dispose();this.T.dispose();this.L.dispose();this.D.dispose();this.Qt=this.Z=this.J=this.N=this.V=void 0};var mU3=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.t(XK,o0);g.U=XK.prototype;g.U.getApiInterface=function(){return Array.from(this.state.V)}; g.U.J0=function(m,V){this.state.K.subscribe(m,V)}; g.U.LVr=function(m,V){this.state.K.unsubscribe(m,V)}; g.U.getPlayerState=function(m){return RJC(this.app,m)}; g.U.hM=function(){return RJC(this.app)}; g.U.oF6=function(m,V,O){$8(this)&&(Ik(this.app,!0,1),zE(this.app,m,V,O,1))}; g.U.getCurrentTime=function(m,V,O){var h=this.getPlayerState(m);if(this.app.getAppState()===2&&h===5){var w;return((w=this.app.getVideoData())==null?void 0:w.startSeconds)||0}return this.Y("web_player_max_seekable_on_ended")&&h===0?ce(this.app,m):m?this.app.getCurrentTime(m,V,O):this.app.getCurrentTime(m)}; g.U.rK=function(){return this.app.getCurrentTime(1)}; g.U.jY=function(){var m=this.app.K6(1);return isNaN(m)?this.getCurrentTime(1):m}; g.U.C0=function(){return this.app.getDuration(1)}; g.U.i$=function(m,V){m=g.O2(Math.floor(m),0,100);isFinite(m)&&kR(this.app,{volume:m,muted:this.isMuted()},V)}; g.U.jce=function(m){this.i$(m,!1)}; g.U.FI=function(m){kR(this.app,{muted:!0,volume:this.getVolume()},m)}; g.U.Z4H=function(){this.FI(!1)}; g.U.b$=function(m){kR(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},m)}; g.U.edS=function(){Tc(this.app)||this.b$(!1)}; g.U.getPlayerMode=function(){var m={};this.app.getVideoData().Sb&&(m.pfp={enableIma:this.app.QF().allowImaMonetization,autoplay:mv(this.app.QF()),mutedAutoplay:this.app.QF().mutedAutoplay});return m}; g.U.yN=function(){var m=this.app.getPresentingPlayerType();if(m===2&&!this.app.Qi()){var V=TR(this.app.Gp());if(!(fdl(V)||g.sY(this.app.j())&&g.l(this.app.OH().getPlayerState(),1024))||xe7(V))return}(V=this.app.Ic().TQ)?V.playVideo():this.app.playVideo(m)}; g.U.JRu=function(){Ik(this.app,!0,1);this.yN()}; g.U.pauseVideo=function(m){var V=this.app.getPresentingPlayerType();if(V!==2||this.app.Qi()||fdl(TR(this.app.Gp()))){var O=this.app.Ic().TQ;O?O.pauseVideo():this.app.pauseVideo(V,m)}}; g.U.LOz=function(){var m=this.app,V=!1;m.W.kD&&(m.kN.publish("pageTransition"),V=!0);m.stopVideo(V)}; g.U.clearVideo=function(){}; g.U.getAvailablePlaybackRates=function(){var m=this.app.j();if(m.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(m.T?m.ancestorOrigins[0]:window.location.origin)||m.Za)return pHc;m=this.app.getVideoData();var V=m.UO,O=m.Hc;return BcM.filter(function(h){return h>=V&&h<=O})}return[1]}; g.U.getPlaybackQuality=function(m){return(m=Y8(this.app,{playerType:m}))?m.getPlaybackQuality():"unknown"}; g.U.bCf=function(){}; g.U.getAvailableQualityLevels=function(m){return(m=Y8(this.app,{playerType:m}))?(m=g.rb(m.DF(),function(V){return V.quality}),m.length&&(m[0]==="auto"&&m.shift(),m=m.concat(["auto"])),m):[]}; g.U.eY=function(){return this.getAvailableQualityLevels(1)}; g.U.urt=function(){return this.CY()}; g.U.AeA=function(){return 1}; g.U.getVideoLoadedFraction=function(m){return this.app.getVideoLoadedFraction(m)}; g.U.CY=function(){return this.getVideoLoadedFraction()}; g.U.mfS=function(){return 0}; g.U.getSize=function(){var m=this.app.xN().getPlayerSize();return{width:m.width,height:m.height}}; g.U.setSize=function(){this.app.xN().resize()}; g.U.loadVideoById=function(m,V,O,h){if(!m)return!1;m=Wz(m,V,O);return this.app.loadVideoByPlayerVars(m,h)}; g.U.kpf=function(m,V,O){m=this.loadVideoById(m,V,O,1);Ik(this.app,m,1)}; g.U.cueVideoById=function(m,V,O,h){m=Wz(m,V,O);this.app.cueVideoByPlayerVars(m,h)}; g.U.EP=function(m,V,O){this.cueVideoById(m,V,O,1)}; g.U.loadVideoByUrl=function(m,V,O,h){m=PyC(m,V,O);return this.app.loadVideoByPlayerVars(m,h)}; g.U.Por=function(m,V,O){m=this.loadVideoByUrl(m,V,O,1);Ik(this.app,m,1)}; g.U.cueVideoByUrl=function(m,V,O,h){m=PyC(m,V,O);this.app.cueVideoByPlayerVars(m,h)}; g.U.Mo=function(m,V,O){this.cueVideoByUrl(m,V,O,1)}; g.U.DfS=function(){var m=this.app.j();if(m.Ae)return"";var V=this.app.QF(),O=void 0;V.isLivePlayback||(O=Math.floor(this.app.getCurrentTime(1)));return m.getVideoUrl(V.videoId,this.getPlaylistId()||void 0,O)}; g.U.wK=function(){return this.app.getDebugText()}; g.U.getVideoEmbedCode=function(){var m=this.app.j();if(m.Ae)return"";var V=this.app.QF();return m.getVideoEmbedCode(V.isPrivate?"":V.title,this.app.QF().videoId,this.app.xN().getPlayerSize(),this.getPlaylistId()||void 0)}; g.U.t0=function(m,V,O){return dko(this.app,m,V,O)}; g.U.removeCueRange=function(m){return this.app.Ey(m)}; g.U.loadPlaylist=function(m,V,O,h){this.app.loadPlaylist(m,V,O,h)}; g.U.fjr=function(m,V,O,h){this.loadPlaylist(m,V,O,h);Ik(this.app,!0,1)}; g.U.cuePlaylist=function(m,V,O,h){this.app.cuePlaylist(m,V,O,h)}; g.U.nextVideo=function(m,V){this.app.nextVideo(m,V)}; g.U.uHr=function(){this.nextVideo();Ik(this.app,!0,1)}; g.U.previousVideo=function(m){this.app.previousVideo(m)}; g.U.jFr=function(){this.previousVideo();Ik(this.app,!0,1)}; g.U.playVideoAt=function(m){this.app.playVideoAt(m)}; g.U.NHY=function(m){this.playVideoAt(m);Ik(this.app,!0,1)}; g.U.setShuffle=function(m){var V=this.app.getPlaylist();V&&V.setShuffle(m)}; g.U.setLoop=function(m){var V=this.app.getPlaylist();V&&(V.loop=m)}; g.U.Rre=function(){var m=this.app.getPlaylist();if(!m)return null;for(var V=[],O=0;O=400)if(m=this.QF(),this.U.j().Y("client_respect_autoplay_switch_button_renderer"))m=!!m.autoplaySwitchButtonRenderer;else{var V,O,h,w;m=!!((V=m.getWatchNextResponse())==null?0:(O=V.contents)==null?0:(h=O.twoColumnWatchNextResults)==null?0:(w=h.autoplay)==null?0:w.autoplay)!==!1}m?this.Z||(this.Z=!0,this.eU(this.Z),V=this.QF(),this.Qb(V.autonavState),this.U.logVisibility(this.element,this.Z)): (this.Z=!1,this.eU(this.Z))}; g.U.Qb=function(m){ueC(this)?this.isChecked=m!==1:((m=m!==1)||(m=g.a$(),m=g.Tm("web_autonav_allow_off_by_default")&&!m.lH(141)&&g.Vf("AUTONAV_OFF_BY_DEFAULT")?!1:!m.lH(140)),this.isChecked=m);ec$(this)}; g.U.onClick=function(){this.isChecked=!this.isChecked;this.U.Cg(this.isChecked?2:1);ec$(this);if(ueC(this)){var m=this.QF().autoplaySwitchButtonRenderer;this.isChecked&&(m==null?0:m.onEnabledCommand)?this.U.bH("innertubeCommand",m.onEnabledCommand):!this.isChecked&&(m==null?0:m.onDisabledCommand)&&this.U.bH("innertubeCommand",m.onDisabledCommand)}this.U.logClick(this.element)}; g.U.getValue=function(){return this.isChecked}; g.U.QF=function(){return this.U.getVideoData(1)};g.t(zc5,Jj);g.t(bK,RE);bK.prototype.oY=function(m){m?this.Z||(this.Qp.SU(this),this.Z=!0):this.Z&&(this.Qp.TB(this),this.Z=!1);this.Z&&oE(this,QX0())}; bK.prototype.T=function(){g.Ma(this.element,"ytp-menuitem-highlight-transition-enabled")}; bK.prototype.D=function(m){var V=QX0();m!==V&&(V=g.a$(),Gv(190,m),Gv(192,!0),V.save(),this.U.bH("cinematicSettingsToggleChange",m))}; bK.prototype.d0=function(){this.Z&&this.Qp.TB(this);RE.prototype.d0.call(this)};g.t(nc,Jj);nc.prototype.updateCinematicSettings=function(m){this.Z=m;var V;(V=this.menuItem)==null||V.oY(m);this.api.publish("onCinematicSettingsVisibilityChange",m)};g.t(s6U,Jj);g.t(Sy,Jj);Sy.prototype.setCreatorEndscreenVisibility=function(m){var V;(V=rJ(this.api.Gp()))==null||V.eU(m)}; Sy.prototype.Z=function(m){function V(h){h==="creatorendscreen"&&(h=rJ(O.api.Gp()))&&h.sct(O.hideButton)} var O=this;this.hideButton=m;this.events.C(this.api,"modulecreated",V);V("creatorendscreen")};g.t(a7o,Jj);g.t(IE,RE);IE.prototype.K=function(m){this.T(m?1:0)}; IE.prototype.t6=function(){if(this.enableNewAudioSettingsMenu||this.D){var m=this.U.getPresentingPlayerType();m===2||m===3?this.Z&&(this.Z=!1,this.Qp.TB(this)):(m=this.getDrcState(),m!==1?(m===0?(oE(this,this.L()===1),this.setEnabled(!0)):(oE(this,!1),this.setEnabled(!1)),this.Z||(this.Qp.SU(this),this.Z=!0)):this.Z&&(this.Qp.TB(this),this.Z=!1))}else{m=this.hasDrcAudioTrack();var V=this.L()===1&&m;oE(this,V);this.setEnabled(m)}}; IE.prototype.d0=function(){this.Qp.TB(this);RE.prototype.d0.call(this)}; IE.prototype.N=function(){this.U.logClick(this.element)};g.t(ey,Jj);g.U=ey.prototype;g.U.getDrcUserPreference=function(){return this.Z}; g.U.setDrcUserPreference=function(m){this.api.uH("drc_set",{pref:m});g.I$("yt-player-drc-pref",m,31536E3);m!==this.Z&&(this.Z=m,this.updateEnvironmentData(),this.j5()&&this.api.Qo(),this.api.Dk())}; g.U.updateEnvironmentData=function(){this.api.j().SW=this.Z===1}; g.U.j5=function(){var m,V,O=(m=this.api.getVideoData())==null?void 0:(V=m.D)==null?void 0:V.Z;if(!O)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.Y("mta_drc_mutual_exclusion_removal")){var h,w,y=(h=this.api.N1())==null?void 0:(w=h.fP)==null?void 0:w.id;return wj(O,function(L){var C;return L.audio.Z&&((C=L.fP)==null?void 0:C.id)===y})}return wj(O,function(L){var C; return((C=L.audio)==null?void 0:C.Z)===!0})}; g.U.getDrcState=function(){return this.api.Ld(3)};g.t(uK,Jj);uK.prototype.onVideoDataChange=function(){var m=this,V=this.api.getVideoData();this.api.FJ("embargo",1);var O=V==null?void 0:V.BP.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(O==null?0:O.length)?pp0(this,O.filter(function(h){return GXG(m,h)})):(V==null?0:V.cueRanges)&&pp0(this,V.cueRanges.filter(function(h){return GXG(m,h)}))}; uK.prototype.L=function(m){return m.embargo!==void 0}; uK.prototype.d0=function(){Jj.prototype.d0.call(this);this.Z={}};g.t(zq,Jj); zq.prototype.addEmbedsConversionTrackingParams=function(m){var V=this.api.j(),O=V.widgetReferrer,h=V.VV,w=this.Z,y="",L=V.getWebPlayerContextConfig();L&&(y=L.embedsIframeOriginParam||"");O.length>0&&(m.embeds_widget_referrer=O);h.length>0&&(m.embeds_referring_euri=h);V.T&&y.length>0&&(m.embeds_referring_origin=y);L&&L.embedsFeature&&(m.feature=L.embedsFeature);w.length>0&&(V.Y("embeds_web_enable_lite_experiment_control_arm_logging")?w.unshift(28572):g.o$(g.vP(V))&&w.unshift(159628),V=w.join(","),V= g.Qf()?V:g.Zl(V,4),m.source_ve_path=V);this.Z.length=0};g.t(BC1,Jj);g.t(l77,Jj);g.t(ZP,g.Z);ZP.prototype.d0=function(){g.Z.prototype.d0.call(this);this.Z=null;this.L&&this.L.disconnect()};g.t(vmI,Jj);g.t(sj,Jj);sj.prototype.dismissFeaturedProductOverlay=function(){this.api.publish("featuredproductdismissed")};g.t(FZ,g.p);FZ.prototype.show=function(){g.p.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; FZ.prototype.stopTimer=function(){this.Z&&(this.Z.dispose(),this.Z=null)}; FZ.prototype.onVideoDataChange=function(m){var V,O,h=(V=this.api.getVideoData())==null?void 0:(O=V.getPlayerResponse())==null?void 0:O.playabilityStatus;h&&(V=Pe5(h),g.l(this.api.getPlayerStateObject(),128)||m==="dataloaderror"||!V?(this.L=0,this.stopTimer(),this.hide()):(m=(V.remainingTimeSecs||0)*1E3,m>0&&(this.show(),this.updateValue("label",E_(V.label)),V1G(this,m))))}; FZ.prototype.d0=function(){this.stopTimer();g.p.prototype.d0.call(this)};g.t(OH3,Jj);g.t(aE,g.p);aE.prototype.onClick=function(){this.kN.logClick(this.element);this.kN.bH("onFullerscreenEduClicked")}; aE.prototype.oY=function(){this.kN.isFullscreen()?this.Z?this.fade.hide():this.fade.show():this.hide();this.kN.logVisibility(this.element,this.kN.isFullscreen()&&!this.Z)};g.t(iK,Jj);iK.prototype.updateFullerscreenEduButtonSubtleModeState=function(m){var V;(V=this.Z)!=null&&(g.xN(V.element,"ytp-fullerscreen-edu-button-subtle",m),m&&!V.L&&(V.kN.Y("player_tooltip_data_title_killswitch")?V.element.setAttribute("title","Role para ver detalhes"):V.element.setAttribute("data-tooltip-title","Role para ver detalhes"),bb(V.kN,V.element,V),V.L=!0))}; iK.prototype.updateFullerscreenEduButtonVisibility=function(m){var V;(V=this.Z)!=null&&(V.Z=m,V.oY())};g.t(h20,g.p);g.t(j37,Jj);g.t(Gq,Jj);Gq.prototype.getSphericalProperties=function(){var m=g.FK(this.api.Gp());return m?m.getSphericalProperties():{}}; Gq.prototype.setSphericalProperties=function(m){if(m){var V=g.FK(this.api.Gp());V&&V.setSphericalProperties(m,!0)}};g.t(pc,Jj);g.U=pc.prototype;g.U.createClientVe=function(m,V,O,h){this.api.createClientVe(m,V,O,h===void 0?!1:h)}; g.U.createServerVe=function(m,V,O){this.api.createServerVe(m,V,O===void 0?!1:O)}; g.U.setTrackingParams=function(m,V){this.api.setTrackingParams(m,V)}; g.U.logClick=function(m,V){this.api.logClick(m,V)}; g.U.logVisibility=function(m,V,O){this.api.logVisibility(m,V,O)}; g.U.hasVe=function(m){return this.api.hasVe(m)}; g.U.destroyVe=function(m){this.api.destroyVe(m)};var Jt$=!1;lK.prototype.setPlaybackRate=function(m){this.playbackRate=Math.max(1,m)}; lK.prototype.getPlaybackRate=function(){return this.playbackRate};hm.prototype.kT=function(m){var V=g.i6(m.info.Du.info,this.YN.yp),O=m.info.Fr+this.T,h=m.info.startTime*1E3;if(this.policy.CA)try{h=this.policy.CA?g.ri(m)*1E3:m.info.startTime*1E3}catch(L){Math.random()>.99&&this.logger&&(h=oi(m.L).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:m.info.Gj(),encodedDataView:g.zI(h,4)})),h=m.info.startTime*1E3}var w=m.info.clipId,y=this.policy.CA?g.LFm(m)*1E3:m.info.duration*1E3;this.policy.CA&&(h<0||y<0)&&(this.logger&&(this.logger({missingSegInfo:m.info.Gj(), startTimeMs:h,durationMs:y}),this.policy.Rg||(h<0&&(h=m.info.startTime*1E3),y<0&&(y=m.info.duration*1E3))),this.policy.Rg&&(h<0&&(h=m.info.startTime*1E3),y<0&&(y=m.info.duration*1E3)));return{formatId:V,Fr:O,startTimeMs:h,clipId:w,w2:y}}; hm.prototype.BU=function(m){this.timestampOffset=m};w9.prototype.seek=function(m,V){m!==this.targetTime&&(this.seekCount=0);this.targetTime=m;var O=this.videoTrack.Z,h=this.audioTrack.Z,w=this.audioTrack.XA,y=HHl(this,this.videoTrack,m,this.videoTrack.XA,V);V=HHl(this,this.audioTrack,this.policy.LP?m:y,w,V);m=Math.max(m,y,V);this.T=!0;this.YN.isManifestless&&(d$0(this,this.videoTrack,O),d$0(this,this.audioTrack,h));return m}; w9.prototype.isSeeking=function(){return this.T}; w9.prototype.YU=function(m){this.L=m}; var XKU=2/24;var YFG=0;var RK;oK.prototype.add=function(m){if(this.pos+20>this.data.length){var V=new Uint8Array(this.data.length*2);V.set(this.data);this.data=V}for(;m>31;)this.data[this.pos++]=RK[(m&31)+32],m>>=5;this.data[this.pos++]=RK[m|0]}; oK.prototype.W2=function(){return g.tZ(this.data.subarray(0,this.pos))}; oK.prototype.reset=function(){this.pos=0};g.U=U6.prototype;g.U.B8=function(){this.Qt=this.now();ctX(this.Tp,this.Qt);this.ez.B8()}; g.U.dA=function(m,V){var O=this.policy.L?(0,g.TN)():0;d9(this,m,V);m-this.N<10&&this.L>0||this.VR(m,V);this.ez.dA(m,V);this.policy.L&&(m=(0,g.TN)()-O,this.LP+=m,this.nA=Math.max(m,this.nA))}; g.U.VR=function(m,V){var O=(m-this.N)/1E3,h=V-this.D;this.tf||(fRU(this.Tp,O,h),this.QR(O,h));this.N=m;this.D=V}; g.U.OW=function(){this.v6&&rtG(this);this.ez.OW()}; g.U.As=function(m){this.v6||(this.v6=this.K-this.CP+m,this.nP=this.K,this.Rd=this.J)}; g.U.W8=function(m,V){m=m===void 0?this.J:m;V=V===void 0?this.K:V;this.L>0||(this.V=m,this.L=V,this.Zu=this.isActive=!0)}; g.U.Li=function(){return this.qV||2}; g.U.Uy=function(){}; g.U.nX=function(){var m,V={rn:this.requestNumber,rt:(this.J-this.Z).toFixed(),lb:this.K,stall:(1E3*this.T).toFixed(),ht:(this.Qt-this.Z).toFixed(),elt:(this.V-this.Z).toFixed(),elb:this.L,d:(m=this.iH)==null?void 0:m.W2()};this.url&&LVa(V,this.url);this.policy.L&&(V.mph=this.nA.toFixed(),V.tph=this.LP.toFixed());V.ulb=this.EH;V.ult=this.Ae;return V}; g.U.now=function(){return(0,g.TN)()}; g.U.deactivate=function(){this.isActive&&(this.isActive=!1)};g.t(K8,U6);g.U=K8.prototype;g.U.nX=function(){var m=U6.prototype.nX.call(this);m.pb=this.YB;m.pt=(1E3*this.kD).toFixed();m.se=this.Id;return m}; g.U.OQ=function(){var m=this.ez;this.Xr||(this.Xr=m.OQ?m.OQ():1);return this.Xr}; g.U.fG=function(){return this.iC?this.OQ()!==1:!1}; g.U.vH=function(m,V,O){if(!this.UU){this.UU=!0;if(!this.tf){d9(this,m,V);this.VR(m,V);var h=this.OQ();this.Id=O;if(!this.tf)if(h===2){h=m-this.V0)||X8(this,h,V),this.L>0&&QN(this.Tp,V,this.T));m=(m-this.Z)/ 1E3||.01;this.policy.V&&!(this.L>0)||l3(this.Tp,m,this.D,NI$(this),this.ZF)}this.deactivate()}}; g.U.Kw=function(m,V,O){O&&(this.Xr=2);m<0&&this.qV&&(m=this.qV);V?this.Je+=m:this.Mf+=m}; g.U.Li=function(){return this.Mf||this.Je||U6.prototype.Li.call(this)}; g.U.VR=function(m,V){var O=(m-this.N)/1E3,h=V-this.D,w=this.OQ();this.isActive?w===1&&((h>0||this.policy.K)&&(O>.2||h<1024)?(this.T+=O,h>0&&O>.2&&X8(this,this.gV?O:.05,h),this.W6=!0):h>0&&(X8(this,O,h),this.W6=!0)):V&&V>=this.policy.Z&&this.W8(m,V);U6.prototype.VR.call(this,m,V)}; g.U.PQ=function(m){if(!this.tf){d9(this,m,this.K);var V=(m-this.Z)/1E3;this.OQ()!==2&&this.L>0&&(this.T+=(m-this.N)/1E3,QN(this.Tp,this.D,this.T));l3(this.Tp,V,this.D,NI$(this),this.ZF,!0);m=(m-this.N)/1E3;fRU(this.Tp,m,0);this.QR(m,0)}}; g.U.W8=function(m,V){m=m===void 0?this.J:m;V=V===void 0?this.K:V;if(!(this.L>0)&&(U6.prototype.W8.call(this,m,V),this.OQ()===1)){V=(this.Qt-this.Z)/1E3;var O=(m-this.Qt)/1E3;this.iC&&Hc(this,this.now());this.Aj||this.tf||(this.qV&&(O=Math.max(0,O-this.qV)),m=this.Tp,m.V.xZ(1,V),m.iH.xZ(1,O))}}; g.U.JI=function(){this.iC&&Hc(this,this.now());return this.fA}; g.U.nM=function(){var m;if(m=this.D>this.zw)m=(m=this.D)?m>=this.policy.Z:!1;return m}; g.U.gx=function(){return this.CA}; g.U.xI=function(m){m=m===void 0?this.now():m;if(this.iC){Hc(this,m);if(this.Xr?this.fG():this.mS!==this.H6){var V=this.H6;if(m0?O+m:O+Math.max(m,V)}; g.U.QB=function(){return this.now()-this.V}; g.U.vn=function(){return(this.D-this.L)*1E3/this.QB()||0}; g.U.XL=function(){return this.V};Tz.prototype.feed=function(m){E4(this.Z,m);this.AY()}; Tz.prototype.AY=function(){if(this.T){if(!this.Z.totalLength)return;var m=this.Z.split(this.D-this.L),V=m.tP;m=m.Ni;if(!this.ez.As(this.T,V,this.L,this.D))return;this.L+=V.totalLength;this.Z=m;this.L===this.D&&(this.T=this.D=this.L=void 0)}for(;;){var O=0;m=g.D(ISU(this.Z,O));V=m.next().value;O=m.next().value;O=g.D(ISU(this.Z,O));m=O.next().value;O=O.next().value;if(V<0||m<0)break;if(!(O+m<=this.Z.totalLength)){if(!(this.ez.As&&O+1<=this.Z.totalLength))break;O=this.Z.split(O).Ni;this.ez.As(V,O,0, m)&&(this.T=V,this.L=O.totalLength,this.D=m,this.Z=new CG([]));break}m=this.Z.split(O).Ni.split(m);O=m.Ni;this.ez.m0(V,m.tP);this.Z=O}}; Tz.prototype.dispose=function(){this.Z=new CG};g.U=Yj.prototype;g.U.nZ=function(){return 0}; g.U.US=function(){return null}; g.U.yY=function(){return null}; g.U.TP=function(){return this.state>=1}; g.U.isComplete=function(){return this.state>=3}; g.U.Dw=function(){return this.state===5}; g.U.onStateChange=function(){}; g.U.Mq=function(m){var V=this.state;this.state=m;this.onStateChange(V);this.callback&&this.callback(this,V)}; g.U.RV=function(m){m&&this.state=this.xhr.HEADERS_RECEIVED}; g.U.getResponseHeader=function(m){try{return this.xhr.getResponseHeader(m)}catch(V){return""}}; g.U.vY=function(){return+this.getResponseHeader("content-length")}; g.U.Zy=function(){return this.L}; g.U.r$=function(){return this.status>=200&&this.status<300&&!!this.L}; g.U.Xd=function(){return this.Z.totalLength>0}; g.U.Al=function(){var m=this.Z;this.Z=new CG;return m}; g.U.Dn=function(){return this.Z}; g.U.abort=function(){this.UH=!0;this.xhr.abort()}; g.U.GK=function(){return!0}; g.U.Po=function(){return this.D}; g.U.Kf=function(){return""};g.U=z25.prototype; g.U.run=function(){var m=this,V,O,h,w,y,L,C,E,q,M,f,x,R,A,K;return g.u(function(X){if(X.Z==1){m.status=200;V=m.Z.get("docid");O=aj(m.Z.get("fmtid")||"");h=m.Z.get("lmt")||"0";w=+(m.Z.get("csz")||0);if(!V||!O||!w)throw Error("Invalid local URL");m.Z.get("ck")&&m.Z.get("civ")&&(y=new u$7(m.Z.get("ck"),m.Z.get("civ")));L=m.range;C=Math.floor(L.start/w);E=Math.floor(L.end/w);q=C}if(X.Z!=5)return q<=E?g.I(X,XqU(V,O,h,q,y),5):X.Te(0);M=X.L;if(M===void 0)throw Error("invariant: data is undefined");f=q*w; x=(q+1)*w;R=Math.max(0,L.start-f);A=Math.min(L.end+1,x)-(R+f);K=new Uint8Array(M.buffer,R,A);m.L.append(K);m.loaded+=A;m.loaded=200&&this.status<300&&!!this.L}; g.U.Xd=function(){return!!this.Z.totalLength}; g.U.Al=function(){var m=this.Z;this.Z=new CG;return m}; g.U.Dn=function(){return this.Z}; g.U.UH=function(){return this.aborted}; g.U.abort=function(){this.D&&this.D.cancel().catch(function(){}); this.T&&this.T.abort();this.aborted=!0}; g.U.GK=function(){return!0}; g.U.Po=function(){return this.K}; g.U.Kf=function(){return this.errorMessage};g.U=FVG.prototype;g.U.onDone=function(){if(!this.UH){this.status=this.xhr.status;try{this.response=this.xhr.response,this.L=this.response.byteLength}catch(m){}this.Z=!0;this.ez.OW()}}; g.U.di=function(){this.xhr.readyState===2&&this.ez.B8()}; g.U.onProgress=function(m){this.UH||(this.status=this.xhr.status,this.Z||(this.L=m.loaded),this.ez.dA((0,g.TN)(),m.loaded))}; g.U.Q2=function(){return this.xhr.readyState>=2}; g.U.getResponseHeader=function(m){try{return this.xhr.getResponseHeader(m)}catch(V){return g.cj(Error("Could not read XHR header "+m)),""}}; g.U.vY=function(){return+this.getResponseHeader("content-length")}; g.U.Zy=function(){return this.L}; g.U.r$=function(){return this.status>=200&&this.status<300&&this.Z&&!!this.L}; g.U.Xd=function(){return this.Z&&!!this.response&&!!this.response.byteLength}; g.U.Al=function(){var m=this.response;this.response=void 0;return new CG([new Uint8Array(m)])}; g.U.Dn=function(){return new CG([new Uint8Array(this.response)])}; g.U.abort=function(){this.UH=!0;this.xhr.abort()}; g.U.GK=function(){return!1}; g.U.Po=function(){return!1}; g.U.Kf=function(){return""};g.t(cc,g.Z);cc.prototype.Mi=function(){if(!this.oJ.length)return[];var m=this.oJ;this.oJ=[];this.D=g.iz(m).info;return m}; cc.prototype.U5=function(){return this.oJ}; cc.prototype.d0=function(){g.Z.prototype.d0.call(this);this.Z=null;this.oJ.length=0;this.jz.length=0;this.D=null};g.t(NL,g.Z);g.U=NL.prototype; g.U.iC0=function(){if(!this.UH()){var m=(0,g.TN)(),V=!1;if(this.policy.nf){var O=this.timing.L>0?this.timing.V:this.timing.Z;this.policy.wZ&&this.D&&(O=this.D);m=m-O-(this.policy.T9?this.policy.Za:this.timing.Li()*1E3);O=a3(bl(this),!1);m>=2E3*O?V=!0:m>=this.policy.qR*O&&(this.Z=this.policy.w4)}else if(this.timing.L>0){if(this.N){this.policy.ma&&(this.Z=0);return}m=this.timing.gx();this.timing.xI();this.timing.gx()-m>=this.policy.VV*.8?(this.Z++,V=this.Z>=5):this.Z=0}else V=m-this.timing.JI(),this.policy.w4&& V>0&&(this.Z+=1),m=a3(bl(this),!1)*this.policy.TR,V=V>m*1E3;this.Z>0&&this.ez.wx();V?this.yR():this.L.start()}}; g.U.yR=function(){this.K=!0;this.ez.Vj();this.lastError="net.timeout";S4(this)}; g.U.canRetry=function(m){var V=bl(this);m=m?this.policy.Ma:this.policy.kh;return V.timedOut0&&(V=gH(V.Z,0),m.ubyte=V,O===1&&V===0&&(m.b248180278=!0))}this.P2&&(m.rc=this.policy.Wl?this.P2:this.P2.toString());this.policy.BB&&this.jl&&(m.tr=this.jl);m.itag=this.info.jz[0].Du.info.itag;m.ml=""+ +this.info.jz[0].Du.v2();m.sq=""+this.info.jz[0].Fr;this.f6&&(m.ifi=""+ +E3(17,this.info.Dj.L));this.P2!==410&&this.P2!==500&&this.P2!==503||(m.fmt_unav="true");var h;(O=this.errorMessage||((h=this.xhr)==null? void 0:h.Kf()))&&(m.msg=O);this.wO&&(m.smb="1");this.info.isDecorated()&&(m.sdai="1");return m}; g.U.gf=function(){return bHI(this.timing)}; g.U.Kf=function(){return this.xhr.Kf()||""}; g.U.nM=function(){return this.isComplete()||this.timing.nM()}; g.U.dA=function(){!this.UH()&&this.xhr&&(this.P2=this.xhr.status,this.policy.C5&&this.dH&&this.cP(!1),this.KR()?this.RV(2):!this.LJ&&this.nM()&&(this.RV(),this.LJ=!0))}; g.U.B8=function(){if(!this.UH()&&this.xhr){if(!this.T1&&this.xhr.Q2()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var m=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.T1=((0,g.TN)()-m)/1E3}this.xhr.Q2()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.gDH&&!xWm()&&g.I$("yt-player-headers-readable",!0,2592E3);m=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var V=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),O;(O=this.X$)==null||O.stop();this.nT=m||this.nT; this.LR=V||this.LR}}; g.U.OW=function(){var m=this.xhr;if(!this.UH()&&m){this.P2=m.status;m=this.xK(m);if(this.policy.BB){var V;(V=this.X$)==null||V.stop()}m===5?S4(this.HB):this.Mq(m);this.HB.L.stop()}}; g.U.xK=function(m){ts5(this);if(IK(this.HB,this.xhr.status,this.o4?this.timing.Zu||this.sN:this.xhr.r$(),!1,this.Wp))return 5;var V="";e4(this.HB,this.xhr)&&(V=BI$(this.HB,this.xhr));if(V)return F$(bl(this.HB)),this.info.d4(this.f6,V),3;V=m.Zy();if(this.eI){this.cP(!0);ts5(this);if(IK(this.HB,this.xhr.status,this.timing.Zu||this.sN,!1,this.Wp))return 5;if(!this.zH){if(this.sN)return F$(bl(this.HB)),3;this.HB.lastError="net.closed";return 5}}else{if(IK(this.HB,this.xhr.status,this.xhr.r$(),!1,this.Wp))return 5; var O=this.info.D;if(O&&O!==V||m.Po())return this.HB.lastError="net.closed",5;this.cP(!0)}O=e2p(this)?m.getResponseHeader("X-Bandwidth-Est"):0;if(m=e2p(this)?m.getResponseHeader("X-Bandwidth-Est3"):0)this.Vq=!0,this.policy.IG&&(O=m);pK7(this.HB,V,O?Number(O):0,this.info.jz[0].type===5);return 4}; g.U.canRetry=function(){this.UH();var m=this.info.isDecorated();return this.HB.canRetry(m)}; g.U.onStateChange=function(){this.isComplete()&&(this.policy.rF?this.Vj():this.timing.deactivate())}; g.U.yR=function(){this.HB.yR()}; g.U.wx=function(){this.callback&&this.callback(this,this.state)}; g.U.qT=function(){return this.HB.qT()}; g.U.dispose=function(){Yj.prototype.dispose.call(this);this.HB.dispose();var m;(m=this.X$)==null||m.dispose();this.policy.rF||this.Vj()}; g.U.Vj=function(){this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.U.Mi=function(){if(!this.U5().length)return[];this.Vr=!0;return this.dH.Mi()}; g.U.KR=function(){if(this.state<1)return!1;if(this.dH&&this.dH.oJ.length)return!0;var m;return((m=this.xhr)==null?0:m.Xd())?!0:!1}; g.U.U5=function(){this.cP(!1);return this.dH?this.dH.U5():[]}; g.U.cP=function(m){try{if(m||this.xhr.Q2()&&this.xhr.Xd()&&!e4(this.HB,this.xhr)&&!this.DR)this.dH||(this.dH=new cc(this.policy,this.info.jz)),this.xhr.Xd()&&(this.eI?this.eI.feed(this.xhr.Al()):D0(this.dH,this.xhr.Al(),m&&!this.xhr.Xd()))}catch(V){this.eI?UT3(this,V):g.cj(V)}}; g.U.m0=function(m,V){switch(m){case 21:m=V.split(1).Ni;dTp(this,m);break;case 22:this.zH=!0;D0(this.dH,new CG([]),!0);break;case 43:if(m=D$(new Hv(V),1))this.info.d4(this.f6,m),this.sN=!0;break;case 45:V=$H(new Hv(V));m=V.lR;V=V.Dg;m&&V&&(this.C3=m/V);break;case 44:this.oV=m63(new Hv(V));var O,h,w;!this.timing.Zu&&((O=this.oV)==null?void 0:O.action)===4&&((h=this.oV)==null?0:(w=h.rN)==null?0:w.o4)&&(this.o4=this.oV.rN.o4);break;case 53:this.policy.BB&&(m=Ql3(new Hv(V)).LX)&&(this.X$||(this.LX=m,this.X$= new g.mq(this.YW,m,this)),this.X$.start());break;case 60:this.aE=TA(new Hv(V));break;case 58:if(m=HyG(new Hv(V)))this.t_=m,m.t_===3&&(this.Wp=!0)}}; g.U.As=function(m,V,O,h){O||this.timing.As(h);if(m!==21)return!1;if(m=this.policy.C5)if(m*=this.info.jz[0].Du.info.Rr,V.totalLength+O!==h&&V.totalLength0)return!1;if(!this.xhr.Q2())return!0;if(this.eI)var m=!this.info.D;else this.xhr.vY()?m=!1:(m=this.xhr.getResponseHeader("content-type"),m=m==="audio/mp4"||m==="video/mp4"||m==="video/webm");if(!m)return!1;if(isNaN(this.info.TM)){m=this.xhr.getResponseHeader("x-head-seqnum");var V=this.timing.policy.J?1:0;if(m&&Number(m)>this.info.jz[0].Fr+V)return!1}return!0}; g.U.qM=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.U.US=function(){this.xhr&&(this.nT=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.nT}; g.U.yY=function(){this.xhr&&(this.LR=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.LR}; g.U.aJ=function(){return this.HB.aJ()}; g.U.YW=function(){if(!this.UH()&&this.xhr){this.jl="heartbeat";var m=this.HB;m.Z+=2;this.wx()}};g.t(Gz,U6);g.U=Gz.prototype;g.U.VR=function(m,V){var O=(m-this.N)/1E3,h=V-this.D;this.L>0?h>0&&(this.mS&&(O>.2||h<1024?(this.T+=O,O>.2&&Ktp(this,.05,h)):Ktp(this,O,h)),this.H6&&(this.fA+=h,this.Mf+=O)):V>this.policy.Z&&this.W8(m,V);U6.prototype.VR.call(this,m,V)}; g.U.vH=function(m,V){d9(this,m,V);this.VR(m,V);this.mS&&(V=this.D*this.snapshot.stall+this.D/this.snapshot.byterate,this.L>0&&QN(this.Tp,this.fA,this.T),m=(m-this.Z)/1E3||.01,this.policy.V&&!(this.L>0)||l3(this.Tp,m,this.D,V,!1))}; g.U.PQ=function(m){d9(this,m,this.K);var V=(m-this.N)/1E3;fRU(this.Tp,V,0);this.QR(V,0);!this.mS&&this.L>0||(V=this.D*this.snapshot.stall+this.D/this.snapshot.byterate,this.L>0&&(this.T+=(m-this.N)/1E3,QN(this.Tp,this.fA,this.T)),l3(this.Tp,(m-this.Z)/1E3||.01,this.D,V,!1,!0))}; g.U.TG=function(m){m=m.f8||2147483647;(m&2)!==2&&(this.H6=!1);(m&1)===1&&(this.mS=!0)}; g.U.Qa=function(m){m=m.f8||2147483647;(m&2)===2&&(this.H6=!1);(m&1)===1&&(this.mS=!1)}; g.U.XL=function(){return this.V}; g.U.QB=function(){var m=this.H6?this.now()-this.N:0;return Math.max(this.Mf*1E3+m,1)}; g.U.vn=function(){return this.fA*1E3/this.QB()}; g.U.W8=function(m,V){m=m===void 0?this.J:m;V=V===void 0?this.K:V;this.L>0||(U6.prototype.W8.call(this,m,V),V=this.Tp,m=(m-this.Qt)/1E3,V.V.xZ(1,(this.Qt-this.Z)/1E3),V.iH.xZ(1,m))}; g.U.Uy=function(m){this.Je=m}; g.U.nX=function(){var m=U6.prototype.nX.call(this);m.rbw=this.vn();m.rbe=+this.H6;m.gbe=+this.mS;m.ackt=(this.Je-this.Z).toFixed();return m}; g.U.xI=function(){}; g.U.gx=function(){return NaN}; g.U.JI=function(){return this.Z+this.snapshot.delay*1E3};p8.prototype.m0=function(m,V){switch(m){case 20:m=new Hv(V);m={y0:Yy(m,1),videoId:D$(m,2),itag:Yy(m,3),lmt:Yy(m,4),xtags:D$(m,5),tF:Yy(m,6),fd:rH(m,8),K_:Yy(m,9),iEY:Yy(m,10),startMs:Yy(m,11),durationMs:Yy(m,12),q3:Yy(m,14),timeRange:Nq(m,15,K$),Z3:Yy(m,16),NJ:Yy(m,17),Cy:Yy(m,20),o9:Nq(m,21,IuC),clipId:D$(m,1E3)};this.pB(m);break;case 21:this.bY(V,!1);break;case 22:this.zJ(V);break;case 31:m=SN(V,slU);this.ez.pL(m);break;case 52:m=SN(V,v01);this.ez.fz(m);break;case 69:m={sY:nG(new Hv(V),1,byX)}; this.ez.ZX(m);break;default:this.PH(m,V)}}; p8.prototype.pB=function(){}; p8.prototype.PH=function(){};var PXJ=new Set([53,49,50]);g.t(Bc,p8);g.U=Bc.prototype;g.U.PH=function(m,V){nQ3(this.ez)&&!PXJ.has(m)?this.Z.push({id:m,data:V}):Wt7(this,m,V)}; g.U.IX=function(m){m=new Hv(m);m={GKA:nG(m,1,tM),vjH:nG(m,2,tM)};this.ez.IX(m)}; g.U.dh=function(m){var V=new Hv(m);m=bo(V,1);var O=bo(V,2);V=bo(V,3);this.ez.dh(m,O,V)}; g.U.gC=function(m){m=$H(new Hv(m));this.ez.gC(m)}; g.U.Lc=function(m){m=SN(m,iym);this.ez.Lc(m)}; g.U.eX=function(m){m=new Hv(m);m={videoId:D$(m,1),formatId:Nq(m,2,tM),endTimeMs:Yy(m,3),obH:Yy(m,4),mimeType:D$(m,5),YS:Nq(m,6,n0p),indexRange:Nq(m,7,n0p),bD:Nq(m,8,SD0)};this.ez.eX(m)}; g.U.YV=function(m){m=new Hv(m);m={type:Yy(m,1),scope:Yy(m,2),value:cv(m,3),sendByDefault:rH(m,4),writePolicy:Yy(m,5)};this.ez.YV(m)}; g.U.Ac=function(){this.ez.Ac()}; g.U.TJ=function(m){m=F7m(new Hv(m));this.ez.TJ(m)}; g.U.hT=function(m){m=Ql3(new Hv(m));this.ez.hT(m)}; g.U.mN=function(m){m=m63(new Hv(m));this.ez.mN(m)}; g.U.QN=function(m){m={redirectUrl:D$(new Hv(m),1)};this.ez.QN(m)}; g.U.bY=function(m){var V=gH(m,0);if(m.totalLength!==1){m=m.split(1).Ni;var O=this.L[V]||null;O&&OX(this.ez.BW,V,O,m)}}; g.U.zJ=function(m){m=gH(m,0);var V=this.L[m]||null;V&&this.ez.zJ(m,V)}; g.U.pB=function(m){var V=m.y0,O=m.fd,h=m.tF,w=m.NJ,y=m.Z3,L=m.K_,C=m.startMs,E=m.durationMs,q=m.timeRange,M=m.q3,f=m.Cy,x=m.clipId,R=m.o9,A=vK(m);m=rnJ.has(N3[""+m.itag]);this.L[V]=A;var K=-1;f&&(q==null?0:q.timescale)&&(K=f/q.timescale);this.ez.Kw(A,m,K,{y0:V,fd:!!O,tF:h!=null?h:-1,K_:L!=null?L:-1,startMs:C!=null?C:-1,durationMs:E!=null?E:-1,q3:M,NJ:w,Z3:y,clipId:x,timeRange:q,o9:R})}; g.U.TG=function(m){m={f8:Yy(new Hv(m),1)};this.ez.TG(m)}; g.U.Qa=function(m){m={f8:Yy(new Hv(m),1)};this.ez.Qa(m)}; g.U.pV=function(m){m=HyG(new Hv(m));this.ez.pV(m)}; g.U.cf=function(m){m={AV:Nq(new Hv(m),1,BNl)};this.ez.cf(m)}; g.U.onSnackbarMessage=function(m){m=Yy(new Hv(m),1);this.ez.onSnackbarMessage(m)}; g.U.ZD=function(m){m=new Hv(m);m={reloadPlaybackParams:Nq(m,1,XnC),M_:rH(m,2)};this.ez.ZD(m)}; g.U.oB=function(){for(var m=g.D(this.Z),V=m.next();!V.done;V=m.next())V=V.value,Wt7(this,V.id,V.data);this.Z=[]};g.t(ll,g.Z);g.U=ll.prototype;g.U.a4=function(){return Array.from(this.eb.keys())}; g.U.ot=function(m){m=this.eb.get(m);var V=m.oJ;m.L$+=V.totalLength;m.oJ=new CG;return V}; g.U.wH=function(m){return this.eb.get(m).wH}; g.U.pM=function(m){return this.eb.get(m).pM}; g.U.Kw=function(m,V,O){this.eb.get(m)||this.eb.set(m,{oJ:new CG,L$:0,bytesReceived:0,fJ:0,PK:!1,wH:!1,pM:!1,RF:V,zA:[],jz:[],Oc:[],Le:!1,Cq:new Map,Jg:new Map,DW:[]});V=this.eb.get(m);this.YN?(m=k$l(this,m,O),Yzm(this,O.y0,V,m)):(O.fd?V.fJ=O.q3:V.Oc.push(O),V.zA.push(O))}; g.U.vU=function(m){var V;return((V=this.eb.get(m))==null?void 0:V.jz)||[]}; g.U.RV=function(){for(var m=g.D(this.eb.values()),V=m.next();!V.done;V=m.next())if(V=V.value,V.PK){if(V.onProgress)V.onProgress();V.PK=!1}}; g.U.zJ=function(m,V){V=this.eb.get(V);Q7?V&&!V.wH&&(V.Cq.get(m)?V.Cq.get(m).jr=!0:V.Cq.set(m,{data:new CG,wq:0,jr:!0}),V.pM=!0):V&&!V.pM&&(V.pM=!0)}; g.U.Mi=function(m){if(Q7){var V=this.eb.get(m);if(V)for(var O=g.D(V.Cq),h=O.next();!h.done;h=O.next()){var w=g.D(h.value);h=w.next().value;w=w.next().value;var y=V.Jg.get(h);if(js(y[0])){if(!w.jr)continue;var L=w.data,C=0,E=[];y=g.D(y);for(var q=y.next();!q.done;q=y.next()){q=q.value;var M=q.L,f=qq(L,C,M);C+=M;E.push(new $Q(q,f))}V.DW.push.apply(V.DW,g.b(E))}else if(w.data.totalLength>0||!y[0].range&&w.jr)L=void 0,C=y[0],E=w.wq,y=w.data,C.range||(L=w.jr),L=new $Q(N00(C,C.Z+E,y.totalLength,L),y),w.wq+= L.info.L,V.DW.push(L);V.Cq.get(h).data=new CG;w.jr&&V.Cq.delete(h)}m=this.eb.get(m);if(!m)return[];V=m.DW;m.DW=[];O=g.D(V);for(h=O.next();!h.done;h=O.next())m.L$+=h.value.info.L;return V||[]}O=(V=this.eb.get(m))==null?void 0:V.dH;if(!O)return[];this.cP(m,O);return O.Mi()}; g.U.KR=function(m){if(Q7)return Vv(this,m);var V,O,h;return!!((O=(V=this.eb.get(m))==null?void 0:V.dH)==null?0:(h=O.U5())==null?0:h.length)||Vv(this,m)}; g.U.cP=function(m,V){for(;Vv(this,m);){var O=this.ot(m);var h=m;h=this.eb.get(h).wH&&!mc(this,h);D0(V,O,h&&$Tl(this,m))}}; g.U.d0=function(){g.Z.prototype.d0.call(this);for(var m=g.D(this.eb.keys()),V=m.next();!V.done;V=m.next())vc(this,V.value);var O;if((O=this.Ze)==null?0:O.BP)for(m=g.D(this.eb.values()),V=m.next();!V.done;V=m.next())V=V.value,V.Cq.clear(),V.Jg.clear(),V.DW.length=0,V.jz.length=0,V.zA.length=0,V.Oc.length=0;this.eb.clear()}; var Q7=!1;var miM=new Set([2]);g.t(hN,g.Z);g.U=hN.prototype;g.U.dA=function(){!this.UH()&&this.xhr&&(this.cP(!1),tu(this.ez,this))}; g.U.B8=function(){}; g.U.OW=function(){if(!this.UH()&&this.xhr){var m=this.xK();m===5?(this.policy.E0&&this.aJ()==="net.badstatus"&&this.ez.Vk(),S4(this.HB)):(this.policy.E0&&this.ez.h9(),this.Mq(m));this.HB.L.stop();var V;(V=this.Zx)==null||V.stop()}}; g.U.xK=function(){var m="";e4(this.HB,this.xhr)&&(m=BI$(this.HB,this.xhr));if(m)return this.info.Dj.d4(this.f6,m),3;this.cP(!0);if(IK(this.HB,this.xhr.status,this.xhr.r$(),this.info.b1(),this.Wp))return 5;if(this.bQ)return 3;pK7(this.HB,this.xhr.Zy(),0,this.b1());this.policy.qq&&Dx0(this.ez);return 4}; g.U.cP=function(m){var V=this.xhr;!m&&e4(this.HB,this.xhr)||!V.Xd()||(m=V.Al(),this.eI.feed(m))}; g.U.m0=function(m,V){this.xhr.GK()&&m===21&&Ni0(this);this.Ls.m0(m,V)}; g.U.As=function(m,V,O,h){O||(this.WB.As(h),this.policy.s5&&m===21&&Ni0(this));if(m!==21)return!1;this.WB.Zu=!0;m=V.totalLength;O||(this.G2=gH(V,0),V=V.split(1).Ni);var w=this.policy.q0,y=this.Ls.L[this.G2],L=this.YN.D.get(y);if(w&&L&&(w*=L.info.Rr,m+O!==h&&m0){this.policy.nf&&this.HB.L.stop();m=this.WB.QB();V=this.WB.vn();var O=bu$(this,m);if(!(V>O.UG||O.IT>0&&this.info.R5()>O.IT)){this.VN=(0,g.TN)();var h;(h=this.Zx)==null||h.stop();this.policy.qq&&(h=this.ez,m={uG:Math.round(V*m/1E3),zO:m},h.policy.qq&&(h.fA=m,h.q6++));this.yR()}}}}; g.U.yR=function(){this.HB.yR()}; g.U.mN=function(m){this.ez.mN(m,this.Ou())}; g.U.QN=function(m){this.bQ=!0;this.info.Dj.d4(this.f6,m.redirectUrl)}; g.U.TG=function(m){this.WB instanceof Gz&&this.WB.TG(m)}; g.U.Qa=function(m){this.WB instanceof Gz&&this.WB.Qa(m)}; g.U.eX=function(m){var V=m.formatId,O=vK({itag:V.itag,lmt:V.lmt,xtags:V.xtags}),h,w,y=new VA(((h=m.YS)==null?void 0:h.first)||0,((w=m.YS)==null?void 0:w.xS)||0),L,C;h=new VA(((L=m.indexRange)==null?void 0:L.first)||0,((C=m.indexRange)==null?void 0:C.xS)||0);this.YN.D.get(O)||(O=m.bD||{},O.mimeType=m.mimeType,O.itag=V.itag,O.lastModified=""+(V.lmt||0),O.xtags=V.xtags,m=this.YN,V=pu(""),O=iq(O,null),uq(m,new Ss(V,O,y,h)))}; g.U.gC=function(m){this.ez.gC(m,this.Ou())}; g.U.onSnackbarMessage=function(m){if(this.policy.QJ)this.ez.onSnackbarMessage(m)}; g.U.ZX=function(m){this.policy.N&&this.ez.ZX(m,this.Ou())}; g.U.pL=function(m){this.Wo=m;this.HB.D=(0,g.TN)();this.ez.pL(m)}; g.U.kV=function(m){this.ez.kV(m)}; g.U.dh=function(m,V,O){this.ez.dh(m,V,O)}; g.U.YV=function(m){m.scope===2&&(this.md=m);this.ez.YV(m)}; g.U.Ac=function(){this.YH=!0;this.ez.Ac()}; g.U.IX=function(m){this.policy.Ak&&this.ez.IX(m)}; g.U.Lc=function(m){this.ez.Lc(m,this.Ou())}; g.U.pV=function(m){m.t_===3&&(this.Wp=!0);this.ez.pV(m)}; g.U.cf=function(m){this.ez.cf(m)}; g.U.ZD=function(m){this.ez.ZD(m)}; g.U.canRetry=function(){this.UH();return this.HB.canRetry(!1)}; g.U.dispose=function(){if(!this.UH()){g.Z.prototype.dispose.call(this);this.HB.dispose();var m;(m=this.Zx)==null||m.dispose();this.Mq(-1);this.Vj()}}; g.U.Mq=function(m){this.state=m;tu(this.ez,this)}; g.U.b1=function(){return this.info.b1()}; g.U.tS=function(){return this.YH}; g.U.Un=function(){return this.md}; g.U.Kw=function(m,V,O,h){this.policy.Zd&&this.ez.d1(2,V);O>=0&&this.ez.g9(O);h.clipId&&(this.clipId=h.clipId);this.policy.L&&!V&&(this.YL=h.K_);if(this.info.isDecorated()){var w=this.info,y,L;O=((y=w.data)==null?0:(L=y.jR)==null?0:L.x_)?w.data.jR.x_:-1;O>=0&&O>h.K_&&this.ez.loader.uH("sdai",{skpsqmismatch:"1",stsq:O,rcvsq:h.K_,a:V})}this.BW.Kw(m,V,h);this.policy.jd&&this.Wo&&this.WB instanceof K8&&(y=this.Wo.nm,this.WB.Kw(h.durationMs/1E3,V,y>0&&h.K_+1>=y));this.BW.eb.get(m).Le=!0;this.ez.Kw(h)}; g.U.zJ=function(m,V){this.BW.zJ(m,V)}; g.U.fz=function(m){this.requestIdentifier=m}; g.U.Mi=function(m){return this.BW.Mi(m)}; g.U.vU=function(m){return this.BW.vU(m)}; g.U.KR=function(m){return this.BW.KR(m)}; g.U.a4=function(){return this.BW.a4()}; g.U.OQ=function(){return 1}; g.U.Ou=function(){return this.WB.requestNumber}; g.U.Gh=function(){return this.requestIdentifier}; g.U.yF=function(){return this.f6.yF()}; g.U.SF=function(){this.Vj()}; g.U.Vj=function(){this.WB.deactivate();var m;(m=this.xhr)==null||m.abort()}; g.U.isComplete=function(){return this.state>=3}; g.U.pJ=function(){return this.state===3}; g.U.Dw=function(){return this.state===5}; g.U.BJ=function(){return this.state===4}; g.U.I1=function(){return this.isComplete()}; g.U.TP=function(){return this.state>=1}; g.U.qT=function(){return this.policy.ma?this.HB.qT():0}; g.U.wx=function(){this.policy.ma&&tu(this.ez,this)}; g.U.Oe=function(){return uU(this.info)}; g.U.oB=function(){this.Uf()&&!this.Hb&&(this.Hb=!0,this.Ls.oB())}; g.U.Uf=function(){var m,V;var O=(m=this.info.Z)==null?void 0:(V=m.fT)==null?void 0:V.pU;return!!O&&miM.has(O)}; g.U.K7=function(){return"SABR"}; g.U.aJ=function(){return this.HB.aJ()}; g.U.rz=function(){var m=lSI(this.HB);Object.assign(m,ed0(this.info));m.req="sabr";m.rn=this.Ou();var V;if((V=this.xhr)==null?0:V.status)m.rc=this.policy.Wl?this.xhr.status:this.xhr.status.toString();var O;(V=(O=this.xhr)==null?void 0:O.Kf())&&(m.msg=V);this.VN&&(O=bu$(this,this.VN-this.WB.XL()),m.letm=O.vDu,m.mrbps=O.UG,m.mram=O.IT);return m};Sz5.prototype.tick=function(m,V){this.ticks[m]=V?window.performance.timing.navigationStart+V:(0,g.TN)()};g.t(yv,g.yh);g.U=yv.prototype; g.U.CL=function(m,V,O,h){var w=!1;this.policy.L&&(w=O?this.mS===m.Fr:this.Ae===m.Fr);if(this.HD&&h&&!w){h=[];w=[];var y=[],L=void 0,C=0;V&&(h=V.Z,w=V.L,y=V.T,L=V.D,C=V.DT,this.uH("sdai",{sq:m.Fr,ssvicpns:h.join("."),ssvid:w.join(".")}));this.policy.L&&(O?this.mS=m.Fr:this.Ae=m.Fr);this.HD.uI(m.Fr,m.startTime,h,w,y,O,C,L)}if(this.policy.L){if(O){this.L===1&&Lw(this,5,"noad");var E;m.Fr!==((E=this.Z)==null?void 0:E.Fr)&&(Zuo(this,m,V,O),isNaN(m.startTime)||s_U(this,m.Fr,qp(this,m.startTime,m.Fr),!!V, this.HD))}}else O&&Zuo(this,m,V)}; g.U.CB=function(m,V,O){var h=this.videoTrack.Du.index.wY()<=V;this.Z={I8:m,Fr:V,X_:O};h&&jw(this,m,V)}; g.U.BY=function(){this.HD&&this.HD.BY()}; g.U.uH=function(m,V,O){(m!=="sdai"||this.policy.aQ||(O===void 0?0:O))&&this.loader.uH(m,V)}; g.U.FK=function(m,V){var O=this.videoTrack.Du.index.AZ(m);if(O>=0){var h;var w=((h=V.Sn(O,2))==null?void 0:h.yh)||"";if(this.policy.L||w)return V.zK(m,O),JN(this.loader,m,m,O),this.uH("sdai",{cmskpad:1,t:m.toFixed(3),sq:O}),!0}this.uH("sdai",{cmskpad:0,t:m.toFixed(3),sq:O});return!1};g.U=Bi7.prototype;g.U.M3=function(m,V,O){var h=m||this.K;this.uH("clsdai",{setadcfg:m||"misscid",cid:h,acpn:O,acfglen:(V==null?void 0:V.length)||0});this.Z.has(h)||(this.uH("clsdai",{setadcfg:"noentry",cid:h}),this.Z.set(h,{event:"unknown",startTimeSecs:0,Ul:0,yU:[],L1:Date.now(),Ec:-1,C_:6}));(m=this.Z.get(h))?V?(m.C_=6,m.yU.push(O),m.K3=V):m.C_=2:this.uH("clsdai",{setadcfg:"notfound",cid:h})}; g.U.ZS=function(m){var V=m||this.K;this.uH("clsdai",{rmvadcfg:m||"misscid",lastcid:this.K});(m=this.Z.get(V))?(m.K3="",m.C_=4):this.uH("clsdai",{rmadcfg:"notfound",cid:V})}; g.U.ZX=function(m,V,O,h,w){this.J=V;var y;if(!((((y=m.sY)==null?void 0:y.length)||0)<=0))if(h){if(this.D=h,this.uH("clsdai",{oncldisabled:h,rn:V}),this.D===3&&w)for(V=g.D(m.sY),O=V.next();!O.done;O=V.next())O=O.value,O.I8&&O.trackType===2&&FFm(w,Q_1(O),O.K_||0,!0)}else for(w=g.D(m.sY),m=w.next();!m.done;m=w.next()){y=m.value;if(m=y.I8){m=Q_1(y);h=V;var L=y.K_||0,C=O;this.Z.has(m.identifier)?(y=this.Z.get(m.identifier),L>y.Ec&&(y.startTimeSecs=m.startSecs,y.Ul=m.Ul,y.event==="predictStart"&&y.C_=== 5&&m.event!=="predictStart"&&(y.L1=Date.now()),y.event=m.event)):(y={event:m.event,startTimeSecs:m.startSecs,Ul:m.Ul,yU:[],Ec:L,C_:0},this.Z.set(m.identifier,y),this.T&&this.uH("clsdai",{newcid:1,cid:m.identifier,evt:m.event,sn:L,rn:h,st:Pqa(y.C_)}));var E=!1;y.C_===0&&((C==null?0:C.rU(m))?y.C_=5:(y.C_=C?11:3,y.K3="",E=!0),y.L1=Date.now(),y.Ec=L,this.T&&this.uH("clsdai",{onqpnt:1,cid:m.identifier,evt:m.event,sn:L,rn:h,st:Pqa(y.C_)}));L>y.Ec&&(C==null||C.rU(m),y.Ec=L);this.K=m.identifier;this.T&&this.L.add(m.identifier); m=E}m&&(this.N=!0)}}; g.U.zK=function(m,V,O){var h=m;this.T&&(h+=O);var w,y="";h=vQC(this,h);h.length>0&&(y=h[0])&&(w=this.Z.get(y));if(!w||w.N9){var L;this.uH("clsdai",{skipadfail:1,cid:y,sn:V,mt:m.toFixed(3),of:O.toFixed(3),skipsq:((L=w)==null?void 0:L.N9)||-1});return!1}this.uH("clsdai",{skipadsuc:1,cid:y,sn:V,mt:m.toFixed(3),of:O.toFixed(3)});w.N9=V;this.L.clear();this.L.add(y);return!0}; g.U.RM=function(){this.uH("clsdai",{rstskipad:1});for(var m=g.D(this.Z.values()),V=m.next();!V.done;V=m.next())V.value.N9=NaN};g.t(RP,g.Z);RP.prototype.Rz=function(m,V,O){O=O===void 0?{}:O;this.policy.Yl=LO(m,O,this.T,V===void 0?!1:V)};da.prototype.xZ=function(m,V){var O=Math.pow(this.alpha,m);this.Z=V*(1-O)+O*this.Z;this.L+=m}; da.prototype.Og=function(){return this.Z/(1-Math.pow(this.alpha,this.L))};Kw.prototype.bE=function(m){var V=this;if(this.policy.zy){var O=new Set(m);O.size===this.iH.size&&[].concat(g.b(O)).every(function(h){return V.iH.has(h)})||(this.loader.uH("lwnmow",{itagDenylist:[].concat(g.b(m)).join(",")}),this.loader.n2(!!O.size),this.Qt=-1,this.iH=O,WY(this,this.Z),this.fA=!0)}}; Kw.prototype.Rz=function(m,V,O){O=O===void 0?{}:O;var h=this.policy.Yl;this.K.Rz(m,V===void 0?!1:V,O);if(h!==this.policy.Yl){WY(this,this.Z);Xd(this);var w,y;h>this.policy.Yl&&((w=this.D)==null?0:ec(w.info))&&((y=this.nextVideo)==null||!ec(y.info))&&(this.Zu=!0)}};var Yz={lB:-1,BI:!1,pU:0};g.t(kz,g.Z);kz.prototype.d0=function(){this.L=Yz;ra(this);g.Z.prototype.d0.call(this)};cY.prototype.BU=function(m){this.timestampOffset=m;this.flush()}; cY.prototype.flush=function(){if(this.Z.pos>0){var m={a:this.track.RF(),u:this.Z.W2(),pd:Math.round(this.T),ad:Math.round(this.D)},V=this.L;if(V){var O=V.Du.info;m.itag=O.itag;O.Z&&(m.xtags=O.Z);m.sq=V.Fr;m.st=V.startTime;m.sd=V.duration;this.track.policy.AE&&(m.si=V.Gj());V.D&&(m.esl=V.Z+V.L);V.bX()&&(m.eos=1)}isNaN(this.timestampOffset)||(m.to=this.timestampOffset);var h;if(V=(h=this.track.XA)==null?void 0:h.xD({})){for(var w in V)this.N[w]!==V[w]&&(m["sb_"+w]=V[w]);this.N=V}this.track.uH("sbu", m);this.Z.reset();this.buffered=[];this.K=this.D=this.T=0;this.timestampOffset=this.L=void 0}};Np.prototype.dispose=function(){this.Ae=!0}; Np.prototype.UH=function(){return this.Ae}; g.t(ua,Error);sX.prototype.skip=function(m){this.offset+=m}; sX.prototype.uP=function(){return this.offset};g.U=SY3.prototype;g.U.ND=function(){return this.L}; g.U.GJ=function(){return this.L.length?this.L[this.L.length-1]:null}; g.U.Si=function(){this.L=[];G9(this);aP(this)}; g.U.ot=function(m){this.fA=this.L.shift().info;m.info.equals(this.fA)}; g.U.vU=function(){return g.rb(this.L,function(m){return m.info})}; g.U.RF=function(){return!!this.Du.info.audio}; g.U.isDrm=function(){return!!this.Du.info.He}; g.U.getDuration=function(){return this.Du.index.yl()};g.t(y7,Yj);g.U=y7.prototype;g.U.onStateChange=function(){this.UH()&&(Pc(this.BW,this.formatId),this.Z.dispose())}; g.U.rz=function(){var m=TiU(this.BW,this.formatId),V;var O=((V=this.BW.eb.get(this.formatId))==null?void 0:V.bytesReceived)||0;var h;V=((h=this.BW.eb.get(this.formatId))==null?void 0:h.L$)||0;return{expected:m,received:O,bytesShifted:V,sliceLength:mc(this.BW,this.formatId),isAnyMediaEndReceived:this.BW.pM(this.formatId)}}; g.U.gf=function(){return 0}; g.U.nM=function(){return!0}; g.U.Mi=function(){return this.BW.Mi(this.formatId)}; g.U.U5=function(){return[]}; g.U.KR=function(){return this.BW.KR(this.formatId)}; g.U.aJ=function(){return this.lastError}; g.U.qT=function(){return 0};g.t(Qv,g.Z);g.U=Qv.prototype;g.U.RF=function(){return!!this.Du.info.audio}; g.U.GJ=function(){return this.D.GJ()}; g.U.ot=function(m){this.D.ot(m);var V;(V=this.J)!=null&&(V.K.add(m.info.Fr),V.Z=x$X(V,V.L4,V.vP,m,V.Z),V.D=m,V.N=(0,g.TN)());this.Rr=Math.max(this.Rr,m.info.Du.info.Rr||0)}; g.U.getDuration=function(){return this.Du.index.yl()}; g.U.Si=function(){L8(this);this.D.Si()}; g.U.L7=function(){return this.D}; g.U.Or=function(m){return this.XA?mu(this.XA.RJ(),m):!0}; g.U.isRequestPending=function(m){return this.L.length?m===this.L[this.L.length-1].info.jz[0].Fr:!1}; g.U.BU=function(m){var V;(V=this.J)==null||V.BU(m);var O;(O=this.V)==null||O.BU(m)}; g.U.uH=function(m,V){this.loader.uH(m,V)}; g.U.Zw=function(){return this.loader.Zw()}; g.U.dispose=function(){var m;(m=this.V)==null||m.flush();g.Z.prototype.dispose.call(this)};g.t(t3,g.Z);t3.prototype.D=function(){this.L++>15||(this.Z=!this.Z,new Us0(this.loader,this.policy,this.Tp,this.Dj,this.Z),this.delay.start())}; g.U=Us0.prototype;g.U.B8=function(){}; g.U.dA=function(){}; g.U.OW=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Zy()===this.size)this.loader.uH("rqs",this.getInfo());else{var m="net.connect";this.xhr.status>200?m="net.badstatus":this.xhr.Q2()&&(m="net.closed");this.onError(m)}}; g.U.onError=function(m){var V=this;this.loader.handleError(m,this.getInfo());B1("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(O){V.loader.uH("pathprobe",O)},function(O){V.loader.handleError(O.errorCode,O.details)})}; g.U.getInfo=function(){var m=this.timing.nX();m.shost=U3(35,this.location.ji);m.pb=this.size;return m};g.t(WL,g.Z); WL.prototype.N=function(m,V){if(m.N){this.YN.isLive?(m=this.YN.De&&this.YN.T?m.Du.Wf(this.YN.De,!1):m.Du.j$(Infinity),m.TM=this.TM):m=m.Du.Wf(0,!1);if(this.Qt){var O=this.Qt;m.TM===0&&(m.K=O.V)}else m.K=this.V;return m}O=m.Z;if(!O.Du.v2())return O.Du.If()?(m=ms(this.T,m.Du.info.Rr,V.Du.info.Rr,0),m=O.Du.w8(O,m)):m=O.Du.CK(O),m;var h=O.K-this.loader.getCurrentTime(),w=!O.range||O.L===0&&O.Z===0?0:O.range.length-(O.Z+O.L),y=O.Du;this.Ef(m,h)&&w===0&&(this.YN.isManifestless?y=m.Du:(y=O.startTime+CKG, O.L&&(y+=O.duration),E6(m,y),O=m.Z,y=O.Du));y.If()?(w=this.L,V=ms(this.T,y.info.Rr,V.Du.info.Rr,h,w.T.length>0&&w.V===0&&this.loader.po),h=fh(m),m=O.Du.w8(O,V),(V=m.D)&&m.jz.length>1&&(h||m.Dj.D||m.jz[0].Du!==O.Du?m=O.Du.w8(O,m.jz[0].L):(h=m.jz[m.jz.length-1],y=h.L/V,!h.D&&y<.4&&(m=O.Du.w8(O,V-h.L))))):(O.Fr<0&&(V=Ez(O),V.pr=""+m.L.length,this.loader.isSeeking()&&(V.sk="1"),V.snss=O.N,this.loader.uH("nosq",V)),m=y.CK(O));if(this.policy.EH)for(O=g.D(m.jz),V=O.next();!V.done;V=O.next())V.value.type= 6;return m}; WL.prototype.Ef=function(m,V){if(!fh(m)||!m.Du.v2())return!1;var O;(O=this.L.fA)||(O=fh(m)&&m.Du.v2()&&m.Z.Du.info.Rr=V)return h.return();(O=m.Z.get(0))&&Gr1(m,O);g.j$(h)})}; var aTU={cfY:0,SQr:1,Nz0:2,W96:3,hbt:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};ph.prototype.decrypt=function(m){var V=this,O,h,w,y,L,C;return g.u(function(E){switch(E.Z){case 1:if(V.Z.length&&!V.Z[0].isEncrypted)return E.return();V.L=!0;V.g4.UI("omd_s");O=new Uint8Array(16);y_()?h=new g.J4(m):w=new g.Lq(m);case 2:if(!V.Z.length||!V.Z[0].isEncrypted){E.Te(4);break}y=V.Z.shift();if(!h){L=w.decrypt(Ri(y.buffer),O);E.Te(5);break}return g.I(E,h.decrypt(Ri(y.buffer),O),6);case 6:L=E.L;case 5:C=L;for(var q=0;q=4)){var V=qF(this),O=this.xhr;V.rc=O.status;m&&(V.ab=!0);if(O.Kf()){var h="onesie.net";V.msg=O.Kf()}else O.status>=400?h="onesie.net.badstatus":O.r$()?this.mp||(h="onesie.response.noplayerresponse"):h=O.status===204?"onesie.net.nocontent":"onesie.net.connect";h?this.fail(new g.jc(h,V)):(this.UI("or_fs"),this.WB.vH((0,g.TN)(),O.Zy(),0),this.Mq(4),this.mw&&this.uH("rqs",V));this.mw&&this.uH("ombre","ok."+ +!h);this.dO=!1;CE(this); Ju(this.g4);if(!this.dS){this.va.stop();var w;(w=this.WQ)==null||w.stop()}var y;if(m=(y=this.dc)==null?void 0:pBp(y))for(y=0;y1E3){var m;(m=this.WB)==null||m.PQ((0,g.TN)());m=qF(this);if(this.W.tj()&&this.xhr instanceof kj){var V=this.xhr;m.xrs=V.xhr.readyState;m.xpb=V.Z.totalLength;m.xdc=V.T}this.fail(new g.jc("net.timeout",m))}}else(0,g.TN)()-this.WB.Z>1E4&&((V=this.WB)==null||V.PQ((0,g.TN)()),this.C7());this.isComplete()||this.sA.start()}}; g.U.C7=function(){this.dO=!1;if(!CE(this)){var m=qF(this);m.timeout="1";this.fail(new g.jc("onesie.request",m))}}; g.U.fail=function(m){var V=this;m=JM(m);this.yL?this.RY.L6(m):(this.J_.reject(m),this.yL=!0);Ju(this.g4);this.dS||this.va.stop();this.UI("or_fe");var O,h;(O=this.dc)==null||(h=pBp(O))==null||h.forEach(function(w){V.uH("pathprobe",w)}); this.Mq(5);this.dispose()}; g.U.isComplete=function(){return this.state>=3}; g.U.BJ=function(){return this.state===4}; g.U.I1=function(m){var V,O;return this.isComplete()||!!((V=this.uw)==null?0:(O=V.get(m))==null?0:O.Z)}; g.U.pJ=function(){return!1}; g.U.Dw=function(){return this.state===5}; g.U.notifySubscribers=function(m){for(var V=0;V102400&&!this.JG&&(this.UI("or100k"),this.JG=!0);if(m.Xd()){var V=m.Al(),O=V.totalLength;this.mw&&this.uH("ombrss","len."+O);this.eI.feed(V)}if(this.uw)for(var h=g.D(this.uw.keys()),w=h.next();!w.done;w=h.next()){var y=w.value;m=void 0;(m=this.uw.get(y))==null||m.RV();this.notifySubscribers(y)}}catch(L){this.fail(L)}}; g.U.Ou=function(){return this.WB.requestNumber}; g.U.Gh=function(m){return this.kP.get(m)}; g.U.Uf=function(){return!1}; g.U.K7=function(){return"ONESIE"};g.t(fE,g.Z);g.U=fE.prototype; g.U.kC=function(m){var V=pE(this.loader)&&m&&m.lB!==void 0&&!m.BI?m.lB*1E3+(this.loader.OU()||0):xG(this);if(this.policy.SW){var O=this.iH;var h=this.EH}else O=Au(this,this.audioTrack),h=Au(this,this.videoTrack);var w=[].concat(g.b(O.L4),g.b(h.L4));RF(this)&&w.push.apply(w,g.b(this.K));var y=[].concat(g.b(O.Hh),g.b(h.Hh)),L=this.loader.zl();if(this.policy.oQ&&!this.videoData.isLivePlayback){var C=this.videoData.lengthSeconds*1E3;V>=C&&this.loader.uH("invalidSabrCmt",{cmt:V,vd:C})}var E,q;C=this.Tp; var M=this.RY,f=this.YN,x=this.D,R=this.videoData.H6,A=this.policy,K=this.loader.pG,X=HI0(this.loader)*1E3,c=(E=this.fA)==null?void 0:E.uG;E=(q=this.fA)==null?void 0:q.zO;var r;q=Number((r=this.L.T)==null?void 0:r.info.itag)||0;var N;r=Number((N=this.L.K)==null?void 0:N.info.itag)||0;N=this.q6;var n=this.RY.Wi();var F=(m==null?0:m.pU)?m.pU:this.loader.isSuspended?4:void 0;V={Tp:C,RY:M,YN:f,L4:w,Hh:y,vZ:V,nextRequestPolicy:x,Zt:R,Ze:A,RU:K,iq:X,uG:c,zO:E,q6:N,U86:q,Gpe:r,z_:L,Hu:n,pU:F};w=this.loader.gQ(); y=It(w);w&&(V.oX=y);if(m=pE(this.loader)&&(m==null?0:m.BI)?m.lB:this.RY.CQ())V.fX=m*1E3;var z;m=this.L;w=m.Ae;if(((z=m.Ze)==null?0:F8(z))&&!w)for(z=g.D(m.D),y=z.next();!y.done;y=z.next())if(y.value.fP){w=!0;break}z=F8(m.Ze)&&!w?[]:krX(m,m.D);V.iT=z;z=this.L;F8(z.Ze)&&!z.mS?z=[]:(m=bIG(z),m.length===0&&(m=z.N),z=krX(z,m));V.vy=z;V.gO=RF(this)?[this.N]:void 0;V.hm=Array.from(AN(this.L.Z).keys(),Number);this.policy.Kl&&(V.e2=yj$(this.loader,this.audioTrack),V.X6=yj$(this.loader,this.videoTrack));z=this.loader.getCurrentTime(); O=gT(this,O.L4,z);h=gT(this,h.L4,z);this.H6=h=Math.min(O,h);if(this.policy.L&&(RF(this)&&(O=gT(this,this.K,z),this.RY.tj()&&O=y.wP?y.xq:void 0,w={vM:m?mV0(O,m):[],adsConfig:w,x_:y},z={gvprpro:"v",mt:z.toFixed(3), acpns:((V$=w.vM)==null?void 0:V$.join("_"))||"none",abid:m},O.q8(z),V$=w):(O.q8({gvprp:"ncp",mt:z}),V$=null)}V$&&(V.jR=V$)}if(this.policy.N){var O3;V$=((O3=this.videoData.L)==null?void 0:O3.containerType)||0;O3=this.videoData.Zc[V$];O=this.loader.isSeeking()&&!this.loader.Bm?h+this.loader.OU():NaN;if((V$=this.V)==null)O3=void 0;else if(V$.D!==0){V$.uH("clsdai",{gssinfodisabled:V$.D});O3=7;switch(V$.D){case 1:O3=7;break;case 2:O3=9;break;case 3:O3=10;break;default:V$.uH("clsdai",{unknowndisr:V$.D})}O3= [{C_:O3}]}else{h=[];if(!isNaN(O))if(z=vQC(V$,O),m=V$.J+1,z.length>0)for(V$.uH("clsdai",{updcids:1,mt:O.toFixed(3),cid:z.join(","),rn:m}),V$.L.clear(),O=g.D(z),z=O.next();!z.done;z=O.next())V$.L.add(z.value);else V$.V&&(V$.uH("clsdai",{updcids:0,mt:O.toFixed(3),rn:m}),V$.L.clear());O=g.D(V$.L);for(m=O.next();!m.done;m=O.next()){z=V$;if(m=m.value){z=z.Z.get(m);m={cuepointId:m};if(z==null?0:z.K3)m.adsConfig=It(z.K3)||void 0;if(z==null?0:z.yU)m.vM=z.yU;if(z==null?0:z.N9)m.x_=z.N9;O3&&(m.tX=BM(O3.split(";")[0]), m.N_=O3.split(";")[1]||"");m.C_=(z==null?void 0:z.C_)||0;z=m}else z=void 0;z&&h.push(z)}O3=h}V.dF=O3;(O3=this.V)!=null&&(O3.L.clear(),O3.D=0,O3.N=!1)}this.policy.Zu&&this.Z.length>0&&this.Z[0].tS()&&(V.nD=this.Z[0].Un());return V}; g.U.FV=function(m,V){this.J=void 0;Dx0(this);cqp(this,m,V)}; g.U.yZ=function(m){if(this.Z.length===0)return!1;var V=this.Z[0];return V instanceof MF?m===this.loader.getCurrentTime()*1E3:!(V instanceof hN&&zC(V.info))&&Math.abs(V.Oe()-m)<50}; g.U.TJ=function(m,V){this.D=m;this.policy.L&&!m.playbackCookie&&this.loader.uH("sbrnocookie",{rn:V!=null?V:-1});var O;if(this.policy.z3A&&((O=this.V)==null?0:O.N)){var h;this.loader.uH("clsdai",{ignbckoff:V!=null?V:-1,backoff:(h=m.backoffTimeMs)!=null?h:-1})}else this.J=(0,g.TN)()+(m.backoffTimeMs||0)}; g.U.mN=function(m,V){if(m.action===void 0){var O=this.RY.CQ();O!==void 0&&this.loader.Yx(O)}else if(m.action!==0||!this.Je)if(m.action===0&&this.policy.mz&&(m.action=2),m.MY==="sabr.malformed_config"&&this.CA++<3)this.loader.handleError("sabr.malformed_config",{action:m.action,rn:V,retry:this.CA},0);else switch(O={},O.reason=m.MY,O.action=m.action,O.rn=V,m.action){case 1:this.policy.L&&this.HD&&Dw(this.HD,void 0,void 0,O);break;case 0:this.Je=!0;this.videoData.Z4()&&this.policy.L&&this.HD&&Dw(this.HD, void 0,void 0,O,!1);this.loader.qG(O);break;case 2:XrC(m.MY)!=="sabr.config"&&delete O.reason;this.loader.handleError(XrC(m.MY),O,1);break;case 3:this.policy.kD&&((m=this.YN.Qt)!=null&&(m.V=!0),this.loader.handleError("sabr.hostfallback",O))}}; g.U.YV=function(m){m&&(this.loader.uH("sabrctxt",{onsbrctxt:m.type,scp:m.scope,dflt:m.sendByDefault}),m.type&&m.sendByDefault&&this.videoData.H6.add(m.type),m.scope!==2&&(m.type&&this.videoData.sabrContextUpdates.set(m.type,m),this.RY.YV(m)))}; g.U.Ac=function(){}; g.U.gC=function(m,V){if(this.loader.Bm)this.loader.uH("sdai",{ignSabrSeek:1,smt:m==null?void 0:m.lR,rn:V});else if(m.lR!==void 0&&m.Dg){V=m.lR/m.Dg;this.audioTrack.N=!1;this.videoTrack.N=!1;if(this.policy.mS||this.policy.on||this.policy.LQ)this.loader.FG.Z=!1;if(this.RY.getCurrentTime()!==V){var O={Jq:"sabr_seek",GP:!0,sR:!0};m.seekSource&&(O.seekSource=m.seekSource);f8(this.loader,V+.1,O)}}}; g.U.onSnackbarMessage=function(m){this.RY.publish("onSnackbarMessage",m)}; g.U.ZX=function(m,V){this.policy.N&&this.loader.ZX(m,V)}; g.U.pL=function(m){m.nm&&m.uM&&VT(this.YN,m.nm,m.uM);this.policy.nK&&(m.eF&&m.XZ&&(this.YN.zF=m.eF/m.XZ),m.Up&&m.qK&&(this.YN.Px=m.Up/m.qK));F2(this.videoData)&&!this.videoData.wd&&m.uM&&this.loader.HM(m.uM,1E3);m.Qw!=null&&this.RY.w$(m.Qw);m.t8&&(m=((0,g.TN)()-m.t8)/1E3,this.loader.MN.xZ(1,m))}; g.U.kV=function(m){this.loader.kV(m)}; g.U.Kw=function(m){this.loader.Kw(m)}; g.U.pV=function(m){this.loader.pV(m)}; g.U.oE=function(m){return this.videoData.H6.has(m)}; g.U.dh=function(m,V,O){this.policy.D&&this.loader.uH("sabrctxtplc",{start:m?m.join("_"):"",stop:V?V.join("_"):"",discard:O?O.join("_"):""});if(m){m=g.D(m);for(var h=m.next();!h.done;h=m.next())this.videoData.H6.add(h.value)}if(V)for(V=g.D(V),m=V.next();!m.done;m=V.next())m=m.value,this.videoData.H6.has(m)&&this.videoData.H6.delete(m);if(O)for(O=g.D(O),V=O.next();!V.done;V=O.next())if(V=V.value,this.videoData.sabrContextUpdates.has(V)&&this.videoData.sabrContextUpdates.delete(V),this.policy.Zu&&this.Z.length)for(m= g.D(this.Z),h=m.next();!h.done;h=m.next())if(h=h.value,!(h instanceof MF)){var w=void 0;((w=h.md)==null?void 0:w.type)===V&&(h.md=void 0)}}; g.U.IX=function(){}; g.U.Qx=function(m){this.N=m}; g.U.GA=function(m){this.K=m}; g.U.Lc=function(m,V){dA(this.policy,m,4,V)}; g.U.cf=function(m){if(m==null?0:m.AV)if(m=m.AV.mY){m=g.D(m);for(var V=m.next();!V.done;V=m.next())if(V=V.value,V.formatId){var O=this.YN.D.get(vK(V.formatId));O&&O.info&&(O.info.debugInfo=V.debugInfo)}}}; g.U.ZD=function(m){this.Xr=!0;this.RY.publish("reloadplayer",m)}; g.U.HW=function(){return this.RY.HW()||""}; g.U.R5=function(){var m=bd$(this);return Math.min(m.Xi,m.ZH)}; g.U.q8=function(m,V){this.loader.uH(m,V)}; g.U.j9=function(m){pza(this.loader,C0p(this.W6,m))}; g.U.d1=function(m,V){this.videoData.d1(m,V)}; g.U.g9=function(m){this.RY.g9(m)}; g.U.h9=function(){this.loader.h9()}; g.U.Vk=function(){this.loader.Vk()}; g.U.d0=function(){g.Z.prototype.d0.call(this);this.D=void 0;cqp(this,!0,"i");this.Z=[]};nu1.prototype.getCurrentTime=function(){return this.RY.getCurrentTime()-this.RY.OU()}; W2.prototype.V=function(m){k_(m.state)&&KE(this.K)}; W2.prototype.clear=function(){u2X(this.K);this.L.clear();this.Z.clear();this.N=NaN;this.J=!1}; W2.prototype.DD=function(){this.isSeeking=!0;u2X(this.K);this.J=!1;this.N=NaN;this.T=this.LC};H2.prototype.AY=function(m,V){if(this.T)return lJU(this,V);if(V=xj(m)){var O=V.Z;O&&O.D&&O.Z&&(m=m.L.length?m.L[0]:null)&&m.state>=2&&!m.Dw()&&m.info.TM===0&&(this.T=m,this.J=O,this.L=V.info,this.N=this.startTimeSecs=Date.now()/1E3,this.K=this.L.startTime)}return NaN}; H2.prototype.clear=function(){this.L=this.J=this.T=null;this.Z=this.K=this.N=this.startTimeSecs=NaN;this.D=!1};g.t($G,g.Z);$G.prototype.d0=function(){mE3(this);g.Z.prototype.d0.call(this)};var V3$=/[?&]cpn=/;g.t(rT,g.Z);rT.prototype.flush=function(){var m={};this.L&&(m.pe=this.L);this.Z.length>0&&(m.pt=this.Z.join("."));this.Z=[];return m}; rT.prototype.stop=function(){var m=this,V,O,h;return g.u(function(w){if(w.Z==1)return g.JG(w,2),g.I(w,(V=m.T)==null?void 0:V.stop(),4);if(w.Z!=2)return(O=w.L)&&m.logTrace(O),g.EJ(w,0);h=g.qA(w);m.L=yFX(h.message);g.j$(w)})}; rT.prototype.logTrace=function(m){this.encoder.reset();this.encoder.add(1);var V=Array.from(m.resources),O=Array.from(m.frames),h=Array.from(m.stacks);m=Array.from(m.samples);this.encoder.add(V.length);V=g.D(V);for(var w=V.next();!w.done;w=V.next()){w=w.value.replace("https://www.youtube.com/s/","");this.encoder.add(w.length);for(var y=0;y=0?m:g.IF(this.provider),this.mS?Vv5.has(this.Ol)&&(this.Z.size||(this.Ol==="PL"?m>=this.L+30:m<=this.Zu+30||m>=this.L+1200&&m<=this.Zu+86400))&&(g.NF(this,m,"vps",[this.Ol]),this.L=m):["PL","B","S"].indexOf(this.Ol)>-1&&(this.Z.size||m>=this.L+30)&&(g.NF(this,m,"vps",[this.Ol]),this.L=m),this.Z.size)){this.sequenceNumber===7E3&&g.cj(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){u4(this,m);var V=this.provider.RY.xM(); V=g.D(V);for(var O=V.next();!O.done;O=V.next())O=O.value,this.uH(O.key,O.value);V=m;O=this.provider.RY.sS();var h=O.droppedVideoFrames||0,w=O.totalVideoFrames||0,y=h-this.G_,L=w&&!this.Kk;h>O.totalVideoFrames||y>5E3?Tm7(this,"html5.badframedropcount","df."+h+";tf."+O.totalVideoFrames):(y>0||L)&&g.NF(this,V,"df",[y]);this.G_=h;this.Kk=w;this.V>0&&(g.NF(this,m,"glf",[this.V]),this.V=0);hp.isActive()&&(m=hp.ZQ(),Object.keys(m).length>0&&this.uH("profile",m));this.Aj&&Zg(this,"lwnmow");this.provider.W.tj()&& this.provider.Y("html5_record_now")&&this.uH("now",{wt:(0,g.TN)()});m={};this.provider.videoData.L&&(m.fmt=this.provider.videoData.L.itag,(V=this.provider.videoData.T)&&V.itag!==m.fmt&&(m.afmt=V.itag));m.cpn=this.provider.videoData.clientPlaybackNonce;var C;((C=this.n5)==null?0:C.length)?m.adcpn=this.n5.join(","):this.adCpn&&(m.adcpn=this.adCpn);var E;((E=this.WN)==null?0:E.length)?m.addocid=this.WN.join(","):this.Ss.length&&(m.addocid=this.Ss);E=this.provider.videoData;C=E.Z4();E=E.latencyClass; (this.provider.W.wu().Z.lH(q3H)&&C&&E==="NORMAL"||this.provider.W.wu().Z.lH(EUa)&&C&&E==="LOW"||this.provider.W.wu().Z.lH(Cpn)&&this.provider.videoData.isDaiEnabled()&&Kd(this.provider.videoData))&&(m.adc=1);this.provider.videoData.cotn&&(m.cotn=this.provider.videoData.cotn);m.el=QG(this.provider.videoData);m.content_v=PC(this.provider.videoData);m.ns=this.provider.W.Zu;m.fexp=Lu1(this.provider.W.experiments).toString();m.cl=(841764710).toString();C=this.provider.videoData.adFormat||this.adFormat; var q;((q=this.Im)==null?0:q.length)?m.adformat=this.Im.join(","):C&&(m.adformat=C);(q=I5(this.provider.videoData))&&(m.live=q);this.provider.videoData.gH()&&(m.drm=1,this.provider.videoData.K&&(m.drm_system=Z9a[this.provider.videoData.K.flavor]||0),this.provider.videoData.drmProduct&&(m.drm_product=this.provider.videoData.drmProduct));x4()&&this.provider.videoData.N&&(m.ctt=this.provider.videoData.N,m.cttype=this.provider.videoData.tN,this.provider.videoData.mdxEnvironment&&(m.mdx_environment=this.provider.videoData.mdxEnvironment)); this.provider.videoData.isDaiEnabled()?(m.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.E0&&(m.dai_fallback="1"),Kd(this.provider.videoData)&&(m.dai="mv")):this.provider.videoData.f4?m.dai="cs":this.provider.videoData.b_&&(m.dai="disabled");m.seq=this.sequenceNumber++;if(this.provider.videoData.p9){if(q=this.provider.videoData.p9,m&&q)for(q.ns==="3pp"&&(m.ns="3pp"),this.l2.has(q.ns)&&Zg(this,"hbps"),q.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext= q.shbpslc),C=g.D(Object.keys(q)),E=C.next();!E.done;E=C.next())E=E.value,this.BB.has(E)||(m[E]=q[E])}else m.event="streamingstats",m.docid=this.provider.videoData.videoId,m.ei=this.provider.videoData.eventId;this.isEmbargoed&&(m.embargoed="1");Object.assign(m,this.provider.W.Z);(q=m.seq)&&!this.provider.W.experiments.wu().Z.lH(xmI)&&(C=Kvp(this,+q),C=g.ai(C,DP1),C=g.zI(C,4),this.Z.set("qclc",[C]));m=g.N_("//"+this.provider.W.Ql+"/api/stats/qoe",m);E=C="";V=g.D(this.Z.entries());for(O=V.next();!O.done;O= V.next())h=g.D(O.value),O=h.next().value,h=h.next().value,w=void 0,(w=h)!=null&&w.join&&(O="&"+O+"="+h.join(","),O.length>100?E+=O:C+=O);this.provider.W.experiments.wu().Z.lH(xmI)&&(q=Kvp(this,+(q||0)),q.qoePingUrl=m+C+E,g.Rz("qoeClientLoggingContext",q),C+="&dl=1");Wv7(this,m+C,E.replace(/ /g,"%20"))}this.Z.clear()}}; g.U.n2=function(m){this.Aj=m}; g.U.lQ=function(){if(this.provider.videoData.K){var m=this.provider.videoData.K;Zg(this,"eme-"+(m.keySystemAccess?"final":EY(m)?"ms":fO(m)?"ytfp":MZ(m)?"safarifp":"nonfinal"))}}; g.U.GZ=eG(49);g.U.hk=function(m){this.isEmbargoed=m}; g.U.qU=eG(26);g.U.CC=eG(32);g.U.onPlaybackRateChange=function(m){var V=g.IF(this.provider);m&&m!==this.nP&&(g.NF(this,V,"rate",[m]),this.nP=m);this.mS||this.reportStats(V)}; g.U.c7=eG(20);g.U.getPlayerState=function(m){if(g.l(m,128))return"ER";if(g.l(m,2048))return"B";if(g.l(m,512))return"SU";if(g.l(m,16)||g.l(m,32))return"S";if(m.isOrWillBePlaying()&&g.l(m,64))return"B";var V=O25[rG(m)];g.g2(this.provider.W)&&V==="B"&&this.provider.RY.getVisibilityState()===3&&(V="SU");V==="B"&&g.l(m,4)&&(V="PB");return V}; g.U.C2=function(m,V){var O=g.IF(this.provider);g.NF(this,O,"vfi",[m==="A"?"":""+(V!=null?V:0),m])}; g.U.d0=function(){g.Z.prototype.d0.call(this);g.XM(this.Ae);g.XM(this.UU)}; g.U.wh=function(m){this.isOffline=m;g.NF(this,g.IF(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.U.uH=function(m,V,O){var h=this.qq.indexOf(m)!==-1;h||this.qq.push(m);if(!O||!h){V=typeof V!=="string"?yK(V):V;V=$Eo(V);if(!O&&!/^t[.]/.test(V)){var w=g.IF(this.provider)*1E3;V="t."+w.toFixed()+";"+V}nE(this,"ctmp",m+":"+V);zs(this);return w}}; g.U.ll=function(m,V,O){this.K={FVz:Number(this.uH("glrem",{nst:m.toFixed(),rem:V.toFixed(),ca:+O})),xW:m,dU0:V,isAd:O}}; g.U.GD=function(m,V,O){g.NF(this,g.IF(this.provider),"ad_playback",[m,V,O])}; g.U.h3=function(m,V){var O=g.IF(this.provider)*1E3;nE(this,"daism","t."+O.toFixed(0)+";smw."+(m*1E3).toFixed(0)+";smo."+(V*1E3).toFixed(0))}; g.U.resume=function(){var m=this;isNaN(this.Ae)?Xza(this):this.Ae=g.KJ(function(){m.reportStats()},1E4)}; var dp={},O25=(dp[5]="N",dp[-1]="N",dp[3]="B",dp[0]="EN",dp[2]="PA",dp[1]="PL",dp[-1E3]="ER",dp[1E3]="N",dp),Vv5=new Set(["PL","B","S"]),Dg=[];g.t(n8U,g.Z);g.U=n8U.prototype;g.U.initialize=function(m,V,O){m=m||0;this.policy.Z||(V=qY0(this.Z),GcC(this.RY,new xz(V.video,V.reason)),this.RY.FD(new xz(V.audio,V.reason)));this.policy.Z&&$3(this);this.YN.isManifestless&&$sC(this.N);this.V&&G_7(this.V,this.videoTrack.Du);V=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var h=!this.YN.isManifestless;this.policy.Qz&&(h=h||this.YN.El);if(!this.policy.H6||this.policy.CP)this.currentTime=h?m:V;this.policy.mS&&this.seek(this.getCurrentTime(),{}).dI(function(){}); if(this.policy.Z){var w;((w=this.T)==null?0:Ux$(w,this.HW()||""))&&evo(this)&&IZl(this,this.videoTrack)&&IZl(this,this.audioTrack)&&(NUG(this.L,this.T),this.policy.K&&bso(this))}else this.Zu&&(uKI(this,this.videoTrack),uKI(this,this.audioTrack),Hul(this.Zu),delete this.Zu);O?(Zs7(this,!1),g.Vn(this.bM)):(m=this.getCurrentTime()===0,Y3(this.N,this.videoTrack,this.videoTrack.Du,m),Y3(this.N,this.audioTrack,this.audioTrack.Du,m),this.policy.Z&&KYp(this.L,{pU:1}),this.policy.mS||this.seek(this.getCurrentTime(), {}).dI(function(){}),this.timing.tick("gv")); (this.YN.De||this.YN.zQ||this.YN.Pt||this.YN.A_||this.YN.Pl)&&this.RY.Cc(this.YN)}; g.U.resume=function(){if(this.isSuspended||this.po){this.yv=this.po=this.isSuspended=!1;try{this.AY()}catch(m){g.kL(m)}}}; g.U.Bp=function(){return!this.policy.iU}; g.U.U2=function(m,V){m=m===void 0?!1:m;V=V===void 0?!1:V;aZp(this);this.RY.Ug()&&(this.J=NaN);m?(this.policy.fA&&this.uH("loader",{setsmb:1}),this.policy.EH=!0,this.Si()):(Zs7(this,!1),V||this.Si())}; g.U.setAudioTrack=function(m,V,O){O=O===void 0?!1:O;if(!this.UH()){var h=!isNaN(V);O&&h&&(this.audioTrack.Zu=Date.now(),this.policy.Wj&&(this.pA=!0));O=this.RY.Ug()&&!this.RY.getVideoData().V;if(this.policy.Z){var w=this.K.Cn(m.id,h);this.RY.FD(w)}else w=this.Z,w.L=w.YN.Z[m.id],w.J=w.L,w=new fw(w.J,w.D,h?"t":"m"),this.RY.FD(new xz(w.audio,w.reason));h?(this.Aj=Date.now(),h=this.audioTrack.Du.index.AZ(V),this.uH("setAudio",{id:m.id,cmt:V,sq:h}),h>=0&&(m=this.policy.Z0?h+1:h,this.policy.Z&&this.FV(!0, "mosaic"),Ch(this.audioTrack,m,NaN,NaN),!this.policy.Y5&&this.YN.isLive&&m$(this.YN,m,!1))):O||this.RY.wQ()}}; g.U.setPlaybackRate=function(m){m!==this.Qt.getPlaybackRate()&&this.Qt.setPlaybackRate(m)}; g.U.sb=function(m){var V=this.L.N;this.L.Qx(m);this.uH("scfidc",{curr:vK(V),"new":vK(m)});m&&vK(m)!==vK(V)&&(this.FV(!0,"caption change"),this.AY())}; g.U.Ob=function(m){this.L.GA(m)}; g.U.r_=function(m){m.Z.info.RF()?this.RY.FD(m):GcC(this.RY,m)}; g.U.j9=function(m){Lu(m.jz[m.jz.length-1])&&pza(this,C0p(this.Z,m.jz[0].Du))}; g.U.gQ=function(){return this.RY.gQ()}; g.U.zl=function(){return this.RY.zl()}; g.U.pV=function(m){this.RY.j().tj()&&this.uH("sps",{status:m.t_||""});if(m.t_===1)this.ix=0;else if(m.t_===2||m.t_===3){var V=!1;if(m.t_===3){var O;this.ma=(O=m.cnN)!=null?O:Infinity;this.ix+=1;(V=cL(this))&&this.mB(!0)}this.RY.A9(!0,V)}}; g.U.V9=function(){return this.RY.V9()}; g.U.NU=function(){return this.RY.NU()}; g.U.mJ=function(m){this.RY.mJ(m)}; g.U.sFr=function(){var m,V=(m=this.RY.C4())==null?void 0:m.getCurrentTime();V?this.RY.uH("rms",{cta:V}):g.Vn(this.Rd)}; g.U.AY=function(){isX(this);if(this.P6&&fS(this.P6)&&!this.P6.II()&&(!this.policy.H6||isFinite(this.getCurrentTime()))){var m=PY(this.videoTrack);m=this.policy.aB&&m&&m.bX();this.YN.isManifestless&&this.YN.T&&lq(this.YN)?(this.J=lq(this.YN),this.P6.qb(this.J)):OY(this.YN)&&!m?(m=this.policy.H0?Gs(this)-this.timestampOffset:this.getCurrentTime(),isNaN(this.J)?(this.J=m+3600,this.P6.qb(this.J)):this.J<=m+1800&&(this.J=Math.max(this.J+1800,m+3600),this.P6.qb(this.J))):this.P6.isView||(m=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.J)||this.J!==m)&&m>0&&(this.P6.qb(m),this.J=m))}if(!this.UH())if(Bt(this.YN)&&this.YN.Dw()){var V=this.YN;this.handleError("manifest.net.retryexhausted",V.pA?{rc:V.P2}:{rc:V.P2.toString()},1)}else if(this.policy.Z)a:{try{if(pE(this)&&this.q2){var O=this.L,h=this.q2,w=h.Z;if(w){var y=O.RY.CQ(),L=!0;y||(y=O.loader.getCurrentTime(),L=!1);V=y;var C=L?O.RY.i5(V):V;if(O.loader.Or(C))var E=!1;else{var q={t:V.toFixed(3),isUtc:L};c:{var M=O.RY.HW();if(M){for(var f= g.D([O.audioTrack,O.videoTrack]),x=f.next();!x.done;x=f.next()){var R=mt(x.value.Du,O.YN.yp);y=void 0;var A=((y=w)==null?void 0:y.vU(R,M))||[];if(A.length===0||!exp(new MT(A),C)){var K=!1;break c}}K=!0}else K=!1}if(K)O.loader.uH("prebuffer",Object.assign(q,{inrange:1})),E=!0;else{if(zC(w.info)){var X;if(X=L){var c,r;X=(((c=w.info.Z)==null?void 0:(r=c.fT)==null?void 0:r.fX)||0)===V*1E3}var N=X}else N=!L&&uU(w.info)===V*1E3;N?(O.loader.uH("prebuffer",Object.assign(q,{match:1})),E=!0):E=!1}}if(E){O.RY.UI("ismp_c"); O.Z.push(w);var n;(n=O.v6)==null||Kh(n,w.info.Dj);w.oB();ra(h,!1)}}}dT(this.L);this.YN.isManifestless&&this.policy.K&&qL(this.FG);var F;((F=this.P6)==null?0:RT(F))&&this.gi();KYp(this.L);if(pE(this)&&this.q2){var z=this.L,V$=this.q2,O3=V$.L.lB;if(O3!==void 0&&O3>=0){z.RY.UI("ismp_a");var hI=V$.L;var jG=hI.lB;if(jG===void 0)var fo=!1;else{var w7=hI.BI?z.RY.i5(jG):jG,Ko;if(Ko=!z.loader.Or(w7)&&Hdp(z,z.pA)){var vX=z.RY.getCurrentTime()*1E3,L5=TUG(z,vX),zl=L5.o7;Ko=L5.fN>=7E3&&zl>=7E3}fo=Ko}if(fo){var lp= t2a(z,hI);z.policy.h_>0&&z.pA.b5++;lp&&(V$.Z!==lp&&(UZC(V$),V$.Z=lp,V$.L=Yz),z.RY.UI("ismp_rc"))}}}}catch(SG){g.cj(SG);V=SG;if(V.message.includes("changeType")){this.uH("ctype",{exp:V.name,msg:V.message,s:V.stack});break a}this.handleError("fmt.unplayable",{exp:V.name,msg:V.message,s:V.stack,trg:"sabrslicerqt"},1)}L25(this);g.Vn(this.Xr)}else if(!this.YN.L||!JWm(this.videoTrack)&&!JWm(this.audioTrack)||(this.videoTrack.T||this.audioTrack.T)&&this.policy.Aj?O=!1:(this.Si(),this.RY.seekTo(Infinity, {Jq:"checkLoaderTracksSync",HM:!0}),O=!0),!O){isX(this);this.YN.isManifestless&&(C75(this.videoTrack),C75(this.audioTrack),qL(this.FG),(O=xj(this.videoTrack))&&O.Z&&(O=O.Z.D&&!this.policy.KU,this.uH(O===this.policy.V.Uu?"strm":"strmbug",{strm:O,sfmp4:this.policy.V.Uu,dfs:this.policy.KU},!0)));if(this.P6)this.gi();else if(this.policy.T){O=!1;if(this.policy.Rk)for(h=g.D([this.videoTrack,this.audioTrack]),w=h.next();!w.done;w=h.next()){E=w.value;for(w=xj(E);w&&E.GJ()!==PY(E);w=xj(E))E.ot(w);O=O||!!w}else(V= xj(this.videoTrack))&&this.videoTrack.ot(V),(L=xj(this.audioTrack))&&this.audioTrack.ot(L);yb(this.videoTrack)&&yb(this.audioTrack)||(V||L||O)&&Up(this)}zvU(this);Y3(this.N,this.videoTrack,this.videoTrack.Du,!1);Y3(this.N,this.audioTrack,this.audioTrack.Du,!1);if(!this.policy.L3&&(V=this.videoTrack,h=this.audioTrack,(!this.P6||fS(this.P6)&&!this.policy.Ay)&&!this.FG.isSeeking()&&(this.policy.Z||fh(V)&&V.Du.v2()&&this.Z.Zu)))a:{if(L=this.getCurrentTime(),O=this.Qt,h=ms(O,V.Du.info.Rr,h.Du.info.Rr, 0),w=QF(O.Tp)+h/P1(O.Tp),L+=Math.max(w,w+O.policy.Nj-h/V.Du.info.Rr),V.L.length){if(V.L[0].info.jz[0].startTime<=L)break a;L8(V)}O=V.D;for(h=O.L.length-1;h>=0;h--)O.L[h].info.startTime>L&&O.L.pop();wBp(V);V.Z&&L5&&q.Qt.shift();V=V.Fr;var M;if((M=this.RY.getVideoData())==null?0:M.enableServerStitchedDai)M=fTo(this.audioTrack,V),O=fTo(this.videoTrack,V),M!==0&&O!==0&&M!==O&&this.handleError("ssdai.avsync", {sq:V,a:M,v:O},0)}}}; g.U.CB=function(m,V,O,h){m.info.video&&this.D.CB(V,O,h)}; g.U.bE=function(m){this.Z.bE(m)}; g.U.g5=function(){return this.HD}; g.U.TT=function(){return this.videoTrack.N||this.audioTrack.N}; g.U.seek=function(m,V){if(this.UH())return nt();if(this.TT())return nt("seeking to head");if(this.policy.mS&&!isFinite(m))return KV$(this.FG),g.bg(Infinity);isX(this);RMl(this,m,!1,V.seekSource);$3(this);this.policy.Z||zvU(this,m);this.P6&&this.P6.Z&&this.P6.L&&!this.RY.getVideoData().hD&&(this.P6.Z.isLocked()||this.P6.L.isLocked())&&this.RY.wQ({reattachOnLockedBuffer:1,vsb:""+this.P6.L.isLocked(),asb:""+this.P6.Z.isLocked()});var O=this.getCurrentTime(),h=this.FG.seek(m,V);if(!this.policy.H6||this.policy.CP)this.currentTime= h;Mp(this.D,m,O,this.policy.Ro&&!V.GP);Up(this);return g.bg(h)}; g.U.yZ=function(m){return this.policy.Z&&this.L.yZ(m)}; g.U.oE=function(m){return this.L.oE(m)}; g.U.FV=function(m,V){this.L.FV(m,V)}; g.U.getCurrentTime=function(){if(this.policy.H6){var m=this.OU()||0;return this.RY.getCurrentTime(!0)-m}return this.currentTime}; g.U.hH=function(){return this.audioTrack.Du.info}; g.U.sQ=function(){return this.videoTrack.Du.info}; g.U.aP=function(){return this.audioTrack.Du.info.B6}; g.U.O2=function(){return this.videoTrack.Du.info.B6}; g.U.d0=function(){try{this.U2(),L8(this.audioTrack),L8(this.videoTrack),x3(this.audioTrack),x3(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.Z.prototype.d0.call(this)}catch(m){g.kL(m)}}; g.U.handleError=function(m,V,O){O=O===void 0?0:O;var h=L$(O);m==="fmt.unplayable"&&this.YN.isLive&&(this.policy.Zb=!1,Pt(this.YN));V=new g.jc(m,V,O);g.S$(this);yK(V.details);this.RY.handleError(V);m!=="html5.invalidstate"&&V.errorCode!=="fmt.unplayable"&&m!=="fmt.unparseable"&&h&&this.dispose()}; g.U.xD=function(){var m=PY(this.audioTrack),V=PY(this.videoTrack);m={lct:this.getCurrentTime().toFixed(3),lsk:this.FG.isSeeking(),lmf:this.Z.Z.isLocked(),lbw:xn$(this.schedule).toFixed(3),lhd:QF(this.schedule).toFixed(3),lst:((this.schedule.J.Og()||0)*1E9).toFixed(3),laa:m?m.Gj():"",lva:V?V.Gj():"",lar:this.audioTrack.Z?this.audioTrack.Z.Gj():"",lvr:this.videoTrack.Z?this.videoTrack.Z.Gj():"",laq:""+jx(this.audioTrack),lvq:""+jx(this.videoTrack)};this.P6&&!this.P6.wH()&&this.P6.Z&&this.P6.L&&(m.lab= vg(this.P6.Z.RJ()),m.lvb=vg(this.P6.L.RJ()));this.Ae&&(m.lapt=((0,g.TN)()-this.Ae).toFixed(0),m.lapr=Bm$(this));this.EH&&(m.lapmabht=((0,g.TN)()-this.EH).toFixed(0),m.lapmabh=C8(this,this.audioTrack).toFixed(0));this.fA&&(m.lapmvbht=((0,g.TN)()-this.fA).toFixed(0),m.lapmvbh=C8(this,this.videoTrack).toFixed(0));this.H6&&(m.lapsdai=((0,g.TN)()-this.H6).toFixed(0));return m}; g.U.Si=function(){try{this.policy.Z&&this.L.FV(!1,"pending"),this.audioTrack.Si(),this.videoTrack.Si()}catch(m){g.kL(m)}this.policy.T=""}; g.U.Or=function(m){return this.videoTrack&&this.audioTrack?this.videoTrack.Or(m)&&this.audioTrack.Or(m):!0}; g.U.j_=function(){return v1(this.Qt)}; g.U.uH=function(m,V,O){this.RY.uH(m,V,O===void 0?!1:O)}; g.U.HW=function(){return this.RY.HW()}; g.U.HM=function(m,V){m/=V;isNaN(this.timestampOffset)&&fP5(this,m-Math.min(m,this.policy.yP));return(m-this.timestampOffset)*V}; g.U.OU=function(){return this.timestampOffset}; g.U.isSeeking=function(){return this.FG.isSeeking()}; g.U.BY=function(){this.D.BY()}; g.U.Rz=function(m,V,O){V=V===void 0?!1:V;O=O===void 0?{}:O;this.policy.Z?this.K.Rz(m,V,O):this.Z.Rz(m,V,O)}; g.U.FK=function(m,V){if(this.policy.L&&(this.Bm||this.isSeeking()))return this.uH("sdai",{ignoreSkip:"1",isSkip:this.Bm,isSeek:this.isSeeking(),t:m.toFixed(3)}),!1;var O=this.policy.L&&(this.policy.N||this.policy.gz),h=this.videoTrack.Du.index.AZ(m),w=!1;if(O){var y;if(w=!((y=this.mS)==null||!y.zK(m,h,this.timestampOffset)))if(JN(this,m,m,h),this.HD){var L;(L=this.HD)==null||L.zK(m,h)}}else this.HD&&(w=!!this.D.FK(m,this.HD));if(!w)return this.handleError("ad.skipfailed",{dec:!!this.HD,t:m.toFixed(3), sq:h}),!1;this.policy.L&&(this.uH("sdai",{skipAdStd:"1"}),this.Bm=!0);if(this.policy.wB){var C;(C=this.tq)==null||C.clear()}fP5(this,this.timestampOffset-V);Up(this);this.policy.L&&(Pt(this.YN),x3(this.audioTrack),x3(this.videoTrack),this.Si());return!0}; g.U.getManifest=function(){return this.YN}; g.U.isOffline=function(){return!!this.RY.getVideoData().cotn}; g.U.Ba=function(m,V){this.RY.Ba(m,V)}; g.U.UV=function(m,V){if(this.policy.Z)RMl(this,m,!0,V),this.L.FV(!0,"utc"),this.AY();else if(V=this.RY.getVideoData().F3){var O=this.N;O.Fs=m;O.F3=V;Nj(this)}}; g.U.Yx=function(m){this.videoTrack.N=!1;this.audioTrack.N=!1;this.FG.Z=!1;this.RY.Yx(m)}; g.U.YU=function(m){this.FG.YU(m-this.OU())}; g.U.k7=function(){this.RY.k7()}; g.U.mB=function(m){m!==this.policy.hn&&((this.policy.hn=m)||this.AY())}; g.U.wQ=function(m){this.RY.wQ(m)}; g.U.n2=function(m){this.RY.n2(m)}; g.U.M3=function(m,V,O){var h;(h=this.mS)==null||h.M3(m,V,O);this.policy.N&&(this.L.J=void 0,this.AY())}; g.U.ZS=function(m){var V;(V=this.mS)==null||V.ZS(m)}; g.U.Kw=function(m){this.policy.pA&&this.RY.getVideoData().yp()&&!m.o9&&(this.uH("liveUmpMissing",{segmentNum:m.K_,headerId:m.y0,startMs:m.startMs,durationMs:m.durationMs}),this.policy.pA=!1)}; g.U.ZX=function(m,V){if(this.policy.N){var O,h=(O=m.sY)==null?void 0:O[0];O=ePm(this.RY.getVideoData());var w;(w=this.mS)==null||w.ZX(m,V,this.HD||void 0,O,this.policy.lN?this.YN:void 0);var y,L,C;this.uH("clidai",{onqlst:1,len:((y=m.sY)==null?void 0:y.length)||0,rn:V,evt:lWo(h==null?void 0:(L=h.I8)==null?void 0:L.event),cid:(h==null?void 0:(C=h.I8)==null?void 0:C.identifier)||"null",sq:(h==null?void 0:h.K_)||-1,trk:(h==null?void 0:h.trackType)||"null",disr:O})}}; g.U.kV=function(m){if(this.policy.pA){var V;(V=this.HD)==null||V.kV(m)}}; g.U.prefetchKeyPlay=function(m,V){var O=this;if(pE(this)){var h=B6a().legacyApplicationQuality==="limited-memory";this.policy.FC&&h||(this.q2||(this.q2=new kz(function(w){O.RY.UI(w)}),g.a(this,this.q2)),Av$(this.q2,{lB:m, BI:V,pU:2}),this.AY())}}; g.U.Vk=function(){this.LP++}; g.U.h9=function(){this.LP=0};g.t(B2,g.yh);g.t(l4,B2);l4.prototype.N=function(m,V){if(m&&V){var O=Number(Iq(m,"cpi"))*1+1;isNaN(O)||O<=0||Othis.D&&(this.D=O,g.c8(this.Z)||(this.Z={},this.T.stop(),this.L.stop())),this.Z[V]=m,g.Vn(this.L))}}; l4.prototype.K=function(){for(var m=g.D(Object.keys(this.Z)),V=m.next();!V.done;V=m.next()){var O=V.value;V=this.publish;for(var h=this.D,w=g.XA(this.Z[O]),y=[],L=g.D(w[6].split("&")),C=L.next();!C.done;C=L.next())C=C.value,C.indexOf("cpi=")===0?y.push("cpi="+h.toString()):C.indexOf("ek=")===0?y.push("ek="+g.FC(O)):y.push(C);w[6]="?"+y.join("&");O="skd://"+w.slice(2).join("");w=O.length*2;h=new Uint8Array(w+4);h[0]=w%256;h[1]=(w-h[0])/256;for(w=0;w0)for(var O=g.D(this.Z),h=O.next();!h.done;h=O.next())if(V===h.value.info.cryptoPeriodIndex){V=!0;break a}V=!1}if(!V){V=(0,g.TN)();a:{O=m.cryptoPeriodIndex;if(!isNaN(O)){h=g.D(this.D.values());for(var w=h.next();!w.done;w=h.next())if(Math.abs(w.value.cryptoPeriodIndex-O)<=1){O=!0;break a}}O=!1}O?(O=m.Z,O=Math.max(0,Math.random()*((isNaN(O)?120:O)-30))*1E3):O=0;this.publish("log_qoe",{wvagt:"delay."+O,cpi:m.cryptoPeriodIndex,reqlen:this.Z.length}); O<=0?g11(this,m):(this.Z.push({time:V+O,info:m}),g.Vn(this.L,O))}}; QL.prototype.d0=function(){this.Z=[];B2.prototype.d0.call(this)};var tp={},W23=(tp.DRM_TRACK_TYPE_AUDIO="AUDIO",tp.DRM_TRACK_TYPE_SD="SD",tp.DRM_TRACK_TYPE_HD="HD",tp.DRM_TRACK_TYPE_UHD1="UHD1",tp);g.t(tyU,g.Z);g.t(Hco,g.yh);g.U=Hco.prototype;g.U.Ix=function(m){var V=this;if(!(this.UH()||m.size<=0)){var O={};m.forEach(function(h,w){var y=qZ(V.L)?w:h;w=new Uint8Array(qZ(V.L)?h:w);qZ(V.L)&&sEX(w);h=g.zI(w,4);sEX(w);w=g.zI(w,4);V.Z[h]?V.Z[h].status=y:V.Z[w]?V.Z[w].status=y:V.Z[h]={type:"",status:y};zMU(V,V.Z[h].type,O)}); eM7(this,",");v2(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.U.error=function(m,V,O,h){this.UH()||(this.publish("licenseerror",m,V,O,h),m==="drm.provision"&&(m=(Date.now()-this.N)/1E3,this.N=NaN,this.publish("ctmp","provf",{et:m.toFixed(3)})));L$(V)&&this.dispose()}; g.U.shouldRetry=function(m,V){return!m&&this.requestNumber===V.requestNumber}; g.U.d0=function(){this.Z={};g.yh.prototype.d0.call(this)}; g.U.xD=function(){var m={ctype:this.V.contentType||"",length:this.V.initData.length,requestedKeyIds:this.v6,cryptoPeriodIndex:this.cryptoPeriodIndex};this.D&&(m.keyStatuses=this.Z);return m}; g.U.getInfo=function(){var m=this.T.join();if(P2(this)){var V=new Set,O;for(O in this.Z)this.Z[O].status!=="usable"&&V.add(this.Z[O].type);m+="/UKS."+Array.from(V)}return m+="/"+this.cryptoPeriodIndex}; g.U.yF=function(){return this.url};g.t(VU,g.Z);g.U=VU.prototype;g.U.cg=function(m){if(this.K){var V=m.messageType||"license-request";this.K(new Uint8Array(m.message),V)}}; g.U.Ix=function(){this.J&&this.J(this.Z.keyStatuses)}; g.U.onClosed=function(){this.UH()||g.B7("xboxone")&&this.D&&this.D("closedShouldNotRetry")}; g.U.G8=function(m){this.K&&this.K(m.message,"license-request")}; g.U.vO=function(m){if(this.D){if(this.L){var V=this.L.error.code;m=this.L.error.systemCode}else V=m.errorCode,m=m.systemCode;this.D("t.prefixedKeyError;c."+V+";sc."+m,V,m)}}; g.U.g7=function(){this.N&&this.N()}; g.U.update=function(m){var V=this;if(this.Z)return this.Z.update(m).then(null,qU(function(O){aPI(V,"t.update",O)})); this.L?this.L.update(m):this.element.addKey?this.element.addKey(this.V.keySystem,m,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.V.keySystem,m,this.initData,this.sessionId);return e6()}; g.U.d0=function(){this.Z&&(this.Qt?this.Z.close().catch(g.cj):this.Z.close());this.element=null;g.Z.prototype.d0.call(this)};g.t(Or,g.Z);g.U=Or.prototype;g.U.setServerCertificate=function(){return this.L.setServerCertificate?this.Z.flavor==="widevine"&&this.Z.z5?this.L.setServerCertificate(this.Z.z5):xq(this.Z)&&this.Z.hd?this.L.setServerCertificate(this.Z.hd):null:null}; g.U.createSession=function(m,V){var O=m.initData;if(this.Z.keySystemAccess){V&&V("createsession");var h=this.L.createSession();fO(this.Z)?O=p1m(O,this.Z.hd):xq(this.Z)&&(O=o1$(O)||new Uint8Array(0));V&&V("genreq");m=h.generateRequest(m.contentType,O);var w=new VU(null,null,null,h,null,this.J);m.then(function(){V&&V("genreqsuccess")},qU(function(L){aPI(w,"t.generateRequest",L)})); return w}if(EY(this.Z))return lPC(this,O);if(MZ(this.Z))return Bdo(this,O);if((h=this.element)==null?0:h.generateKeyRequest)this.element.generateKeyRequest(this.Z.keySystem,O);else{var y;(y=this.element)==null||y.webkitGenerateKeyRequest(this.Z.keySystem,O)}return this.T=new VU(this.element,this.Z,O,null,null,this.J)}; g.U.Lb=function(m){var V=QE3(this,m);V&&V.G8(m)}; g.U.mG=function(m){var V=QE3(this,m);V&&V.vO(m)}; g.U.d6=function(m){var V=QE3(this,m);V&&V.g7(m)}; g.U.getMetrics=function(){var m=null;if(this.L&&this.L.getMetrics)try{m=this.L.getMetrics()}catch(V){}return m}; g.U.d0=function(){this.D=this.L=null;var m;(m=this.T)==null||m.dispose();m=g.D(Object.values(this.N));for(var V=m.next();!V.done;V=m.next())V.value.dispose();this.N={};g.Z.prototype.d0.call(this);delete this.element};g.U=wQ.prototype;g.U.get=function(m){m=this.findIndex(m);return m!==-1?this.values[m]:null}; g.U.remove=function(m){m=this.findIndex(m);m!==-1&&(this.keys.splice(m,1),this.values.splice(m,1))}; g.U.removeAll=function(){this.keys=[];this.values=[]}; g.U.set=function(m,V){var O=this.findIndex(m);O!==-1?this.values[O]=V:(this.keys.push(m),this.values.push(V))}; g.U.findIndex=function(m){return g.BH(this.keys,function(V){return g.og(m,V)})};g.t(mLU,g.yh);g.U=mLU.prototype;g.U.jdH=function(m){this.F8({onecpt:1});m.initData&&hWl(this,new Uint8Array(m.initData),m.initDataType)}; g.U.UCA=function(m){this.F8({onndky:1});hWl(this,m.initData,m.contentType)}; g.U.bl=function(m){this.F8({onneedkeyinfo:1});this.W.Y("html5_eme_loader_sync")&&(this.J.get(m.initData)||this.J.set(m.initData,m));O85(this,m)}; g.U.F0=function(m){this.D.push(m);yU(this)}; g.U.createSession=function(m){var V=ymm(this)?cva(m):g.zI(m.initData);this.L.get(V);this.v6=!0;m=new Hco(this.videoData,this.W,m,this.drmSessionId);this.L.set(V,m);m.subscribe("ctmp",this.lO,this);m.subscribe("keystatuseschange",this.Ix,this);m.subscribe("licenseerror",this.w_,this);m.subscribe("newlicense",this.I6,this);m.subscribe("newsession",this.z8,this);m.subscribe("sessionready",this.o6,this);m.subscribe("fairplay_next_need_key_info",this.d7,this);this.W.Y("html5_enable_vp9_fairplay")&&m.subscribe("qualitychange", this.fu,this);m.subscribe("sabrlicenseconstraint",this.sJr,this);kq5(m,this.T)}; g.U.I6=function(m){this.UH()||(this.F8({onnelcswhb:1}),m&&!this.heartbeatParams&&(this.heartbeatParams=m,this.publish("heartbeatparams",m)))}; g.U.z8=function(){this.UH()||(this.F8({newlcssn:1}),this.D.shift(),this.v6=!1,yU(this))}; g.U.o6=function(){if(EY(this.Z)&&(this.F8({onsnrdy:1}),this.H6--,this.H6===0)){var m=this.Zu,V,O;(V=m.element)==null||(O=V.msSetMediaKeys)==null||O.call(V,m.D)}}; g.U.Ix=function(m){if(!this.UH()){this.EH||(this.EH=!0,this.W.tj()&&jK1(this));this.F8({onksch:1});var V=this.fu;if(!P2(m)&&g.p3&&m.L.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var O="large";else{O=[];var h=!0;if(P2(m))for(var w=g.D(Object.keys(m.Z)),y=w.next();!y.done;y=w.next())y=y.value,m.Z[y].status==="usable"&&O.push(m.Z[y].type),m.Z[y].status!=="unknown"&&(h=!1);if(!P2(m)||h)O=m.T;O=IPU(O)}V.call(this,O);if(m.W.Y("html5_enable_vp9_fairplay")&&xq(m.L))V=m.Qt; else{if(!P2(m))for(V={},O=g.D(m.T),h=O.next();!h.done;h=O.next())zMU(m,h.value,V);V=m.authorizedFormats}this.videoData.authorizedFormats=V;this.publish("keystatuseschange",m)}}; g.U.lO=function(m,V){this.UH()||this.publish("ctmp",m,V)}; g.U.d7=function(m,V){this.UH()||this.publish("fairplay_next_need_key_info",m,V)}; g.U.w_=function(m,V,O,h){this.UH()||(this.videoData.Y("html5_log_drm_metrics_on_error")&&jK1(this),this.publish("licenseerror",m,V,O,h))}; g.U.oH=function(){return this.V}; g.U.fu=function(m){var V=g.ue("auto",m,!1,"l");if(this.videoData.qk){if(this.V.equals(V))return}else if(HR7(this.V,m))return;this.V=V;this.publish("qualitychange");this.F8({updtlq:m})}; g.U.sJr=function(m){this.videoData.sabrLicenseConstraint=m}; g.U.d0=function(){var m,V;this.Z.keySystemAccess&&this.element&&!((m=this.mediaElement)==null?0:(V=m.RY)==null?0:V.Ug())&&(this.mS?this.element.setMediaKeys(null).catch(g.cj):this.element.setMediaKeys(null));this.element=null;this.D=[];m=g.D(this.L.values());for(V=m.next();!V.done;V=m.next())V=V.value,V.unsubscribe("ctmp",this.lO,this),V.unsubscribe("keystatuseschange",this.Ix,this),V.unsubscribe("licenseerror",this.w_,this),V.unsubscribe("newlicense",this.I6,this),V.unsubscribe("newsession",this.z8, this),V.unsubscribe("sessionready",this.o6,this),V.unsubscribe("fairplay_next_need_key_info",this.d7,this),this.W.Y("html5_enable_vp9_fairplay")&&V.unsubscribe("qualitychange",this.fu,this),V.dispose();this.L.clear();this.N.removeAll();this.J.removeAll();this.heartbeatParams=null;g.yh.prototype.d0.call(this)}; g.U.xD=function(){for(var m={systemInfo:this.Z.xD(),sessions:[]},V=g.D(this.L.values()),O=V.next();!O.done;O=V.next())m.sessions.push(O.value.xD());return m}; g.U.getInfo=function(){return this.L.size<=0?"no session":""+this.L.values().next().value.getInfo()+(this.K?"/KR":"")}; g.U.F8=function(m,V){V=V===void 0?!1:V;this.UH()||(yK(m),(this.W.tj()||V)&&this.publish("ctmp","drmlog",m))};var EjX=!1,M40=!1;g.t(xLo,g.Z);g.U=xLo.prototype;g.U.ME=function(){return!!this.yA}; g.U.h4=function(){return this.L}; g.U.handleError=function(m){var V=this;dLI(this,m);var O;if(O=!((m.errorCode==="html5.invalidstate"||m.errorCode==="fmt.unplayable"||m.errorCode==="fmt.unparseable")&&ULU(this,m.errorCode,m.details)))if(O=!Xc5(this,m))this.videoData.errorDetail==="7"&&g.g2(this.IY)?(Ws0(this,"innertube_player_reload_required"),O=!0):O=!1,O=!O;if(O)if(this.IY.Zu!=="yt"&&Ksl(this,m)&&this.videoData.Y5&&(0,g.TN)()/1E3>this.videoData.Y5&&qx(this.videoData)&&(O=Object.assign({e:m.errorCode},m.details),O.stalesigexp="1", O.expire=Math.round(this.videoData.Y5*1E3),O.init=Math.round(this.videoData.NI),O.now=Math.round((0,g.TN)()),m=new g.jc(m.errorCode,O,2),this.RY.x5(m.errorCode,2,"SIGNATURE_EXPIRED",yK(m.details))),L$(m.severity)){var h;O=(h=this.RY.loader)==null?void 0:h.Z.Z;if(this.IY.Y("html5_use_network_error_code_enums"))if(t45(m)&&O&&O.isLocked())var w="FORMAT_UNAVAILABLE";else if(this.IY.N||m.errorCode!=="auth"||m.details.rc!==429)m.errorCode==="ump.spsrejectfailure"&&(w="HTML5_SPS_UMP_STATUS_REJECTED");else{w= "TOO_MANY_REQUESTS";var y="6"}else t45(m)&&O&&O.isLocked()?w="FORMAT_UNAVAILABLE":this.IY.N||m.errorCode!=="auth"||m.details.rc!=="429"?m.errorCode==="ump.spsrejectfailure"&&(w="HTML5_SPS_UMP_STATUS_REJECTED"):(w="TOO_MANY_REQUESTS",y="6");this.RY.x5(m.errorCode,m.severity,w,yK(m.details),y)}else this.RY.publish("nonfatalerror",m),h=/^pp/.test(this.videoData.clientPlaybackNonce),this.L6(m.errorCode,m.details),h&&m.errorCode==="manifest.net.connect"&&(m="https://www.youtube.com/generate_204?cpn="+ this.videoData.clientPlaybackNonce+"&t="+(0,g.TN)(),B1(m,"manifest",function(L){V.N=!0;V.uH("pathprobe",L)},function(L){V.L6(L.errorCode,L.details)}))}; g.U.uH=function(m,V){this.RY.Jj.uH(m,V)}; g.U.L6=function(m,V){V=yK(V);this.RY.Jj.L6(m,V)};Ll.prototype.Bi=function(m){var V=Y6U(this);if(!m)return{j6:j2,NS:j2,zb:j2,eq:j2,BG:j2,gm:j2,Fk:V};var O=j2;if(Z7(V)||this.Y("html5_perf_cap_override_sticky"))O=u8l(this,m);return{j6:O,NS:b8l(this,m),zb:DLl(this,m),eq:zW1(this,m.videoData),BG:Z81(this,m.videoData,m),gm:rm5(this,m),Fk:V}}; Ll.prototype.rW=function(m){if(g.g2(this.W)&&V9(this.W.K,OF.HEIGHT))var V=m.Z.videoInfos[0].video.qualityOrdinal;else{var O=this.hC(!!m.Z.Z);dU(m.videoData)||wm(m.videoData);m=m.Z.videoInfos;if(m.length){var h=.85,w=m[0].video;w.projectionType!=="MESH"&&w.projectionType!=="EQUIRECTANGULAR"&&w.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||i0||(h=.45);w=g.m9(this.W.experiments,"html5_viewport_undersend_maximum");for(var y=0;y=0,stateAtSend:V,joinLatencySecs:y,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:h,playerCanaryStage:w,isAd:this.provider.videoData.isAd(),liveMode:O,hasDrm:!!g.nd(this.provider.videoData),isGapless:this.provider.videoData.J,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:SC(this.provider.videoData)};m||g.Rz("html5PlayerHealthEvent",V);this.D=!0;this.dispose()}}; Cl.prototype.d0=function(){this.D||this.send();window.removeEventListener("error",this.uB);window.removeEventListener("unhandledrejection",this.uB);g.Z.prototype.d0.call(this)}; var h3W=/\bnet\b/;Gza.prototype.update=function(){if(this.V){var m=this.T6()||0,V=g.IF(this.provider);m>=this.provider.RY.getDuration()-.1&&(this.previouslyEnded=!0);if(m!==this.L||QKp(this,m,V)){var O;if(!(O=mV-this.Rx+2||QKp(this,m,V))){O=this.provider.RY.getVolume();var h=O!==this.Zu,w=this.provider.RY.isMuted()?1:0;w!==this.Qt?(this.Qt=w,O=!0):(!h||this.T>=0||(this.Zu=O,this.T=V),O=V-this.T,this.T>=0&&O>2?(this.T=-1,O=!0):O=!1)}O&&(qt(this),this.D=m);this.Rx=V;this.L=m}}}; Gza.prototype.T6=function(){var m=this.provider.RY.T6();return Kd(this.provider.videoData)?m+this.provider.RY.OU():m};vj3.prototype.send=function(m){var V=this;if(!this.CA){var O=mp$(this),h=g.N_(this.uri,O);this.W.Y("vss_through_gel_double")&&Vw5(h);this.v6&&!this.W.Y("html5_simplify_pings")?jPC(this,h):Pll(this,m).then(function(w){if(V.tq){w=w||{};w.method="POST";var y=Lco(V);y&&(w.postBody=y)}V.v6&&(w=w||{},w.method="POST",w.postParams={atr:V.attestationResponse});kG(h,w,{token:V.Ae,dL:V.Aj,mdxEnvironment:V.mdxEnvironment},V.W,m,V.iH,V.isFinal&&V.nf||V.EH||V.D&&V.SW)}); this.CA=!0}}; vj3.prototype.L=function(m){m===void 0&&(m=NaN);return Number(m.toFixed(3)).toString()}; var KN={},wYX=(KN.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,KN.LIVING_ROOM_APP_MODE_MAIN=1,KN.LIVING_ROOM_APP_MODE_KIDS=2,KN.LIVING_ROOM_APP_MODE_MUSIC=3,KN.LIVING_ROOM_APP_MODE_UNPLUGGED=4,KN.LIVING_ROOM_APP_MODE_GAMING=5,KN),W0={},hu3=(W0.EMBEDDED_PLAYER_MODE_UNKNOWN=0,W0.EMBEDDED_PLAYER_MODE_DEFAULT=1,W0.EMBEDDED_PLAYER_MODE_PFP=2,W0.EMBEDDED_PLAYER_MODE_PFL=3,W0);g.t(fl,g.Z);g.U=fl.prototype; g.U.iz=function(){if(!this.D){this.provider.videoData.Dx===16623&&g.cj(Error("Playback for EmbedPage"));var m=gQ(this,"playback");this.V=JNp(this);l0a(this.Z);m.J=RJ(this);this.L>0&&(m.Z-=this.L);m.send();if(this.provider.videoData.Ax){m=this.provider.W;var V=this.provider.videoData,O={html5:"1",video_id:V.videoId,cpn:V.clientPlaybackNonce,ei:V.eventId,ptk:V.Ax,oid:V.BO,ptchn:V.Cz,pltype:V.xr,content_v:PC(V)};V.oA&&Object.assign(O,{m:V.oA});m=g.N_(m.VW+"ptracking",O);fOU(this,m)}this.provider.videoData.oz|| (xp3(this),Ruo(this));this.D=!0;m=this.Z;m.L=m.T6();m.Rx=g.IF(m.provider);!(m.D===0&&m.L<5)&&m.L-m.D>2&&(m.D=m.L);m.V=!0}}; g.U.onProgress=function(){this.Z.update();qX0(this)&&(xp3(this),Ruo(this))}; g.U.d0=function(){g.Z.prototype.d0.call(this);oJ(this);B9l(this.Z)}; g.U.xD=function(){return mp$(gQ(this,"playback"))}; g.U.zM=function(m){var V=gQ(this,"engage");V.mS=m;return Ow7(V,dp$(this.provider))};UpX.prototype.isEmpty=function(){return this.endTime===this.startTime};Ur.prototype.Y=function(m){return this.W.Y(m)}; Ur.prototype.getCurrentTime=function(){return this.RY.getCurrentTime()}; Ur.prototype.T6=function(){return this.RY.T6()}; var tw5={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.t(g.dQ,g.Z);g.U=g.dQ.prototype;g.U.iz=function(){this.Z&&this.Z.iz();this.L&&this.L.iz()}; g.U.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.LC){var m;(m=this.D.get(this.LC))==null||m.onProgress()}else if(this.Z)this.Z.onProgress()}; g.U.hk=function(m){this.qoe&&this.qoe.hk(m)}; g.U.qU=eG(25);g.U.CC=eG(31);g.U.h3=function(m,V){this.qoe&&this.qoe.h3(m,V)}; g.U.U_=function(){if(this.provider.videoData.enableServerStitchedDai&&this.LC){var m;(m=this.D.get(this.LC))!=null&&qt(m.Z)}else this.Z&&qt(this.Z.Z)}; g.U.L6=function(m,V){this.qoe&&Tm7(this.qoe,m,V);if(this.L)this.L.onError(m)}; g.U.C2=function(m,V){switch(m){case "M":var O;(O=this.qoe)==null||O.C2(m,V);break;case "A":var h;(h=this.qoe)==null||h.C2(m)}}; g.U.onPlaybackRateChange=function(m){if(this.qoe)this.qoe.onPlaybackRateChange(m);this.Z&&qt(this.Z.Z)}; g.U.GZ=eG(48);g.U.uH=function(m,V,O){this.qoe&&this.qoe.uH(m,V,O)}; g.U.ll=function(m,V,O){this.qoe&&this.qoe.ll(m,V,O)}; g.U.w$=function(m){var V;(V=this.qoe)==null||V.w$(m)}; g.U.Cc=function(m){var V;(V=this.qoe)==null||V.Cc(m)}; g.U.RQ=function(m,V,O,h){var w;(w=this.qoe)==null||w.RQ(m,V,O,h)}; g.U.n2=function(m){this.qoe&&this.qoe.n2(m)}; g.U.GD=function(m,V,O){this.qoe&&this.qoe.GD(m,V,O)}; g.U.c7=eG(19);g.U.qr=function(){if(this.qoe)return this.qoe.qr()}; g.U.xD=function(){if(this.provider.videoData.enableServerStitchedDai&&this.LC){var m,V;return(V=(m=this.D.get(this.LC))==null?void 0:m.xD())!=null?V:{}}return this.Z?this.Z.xD():{}}; g.U.BC=function(){var m;return(m=this.qoe)==null?void 0:m.BC()}; g.U.DS=function(m,V){var O;(O=this.qoe)==null||O.DS(m,V)}; g.U.zM=function(m){return this.Z?this.Z.zM(m):function(){}}; g.U.getVideoData=function(){return this.provider.videoData}; g.U.resume=function(){this.qoe&&this.qoe.resume()};g.t(g.Kl,g.Z);g.U=g.Kl.prototype;g.U.SK=function(m,V){this.sync();V&&this.Z.array.length>=2E3&&this.eP("captions",1E4);V=this.Z;if(m.length>1&&m.length>V.array.length)V.array=V.array.concat(m),V.array.sort(V.Z);else{m=g.D(m);for(var O=m.next();!O.done;O=m.next())O=O.value,!V.array.length||V.Z(O,V.array[V.array.length-1])>0?V.array.push(O):g.gZ(V.array,O,V.Z)}this.D=NaN;this.sync()}; g.U.Qe=function(m){m.length>1E4&&g.cj(new g.no("Over 10k cueRanges removal occurs with a sample: ",m[0]));if(!this.UH()){var V=new Set(m);this.L=this.L.filter(function(O){return!V.has(O)}); Nal(this.Z,V);this.sync()}}; g.U.Ey=function(m){if(!this.UH()){var V=this.NU().find(function(O){return O.id===void 0&&O.namespace===m}); V&&this.Qe([V])}}; g.U.eP=function(m,V){var O=(isNaN(this.D)?SX3(this):this.D)-V;V=this.NU().filter(function(h){return h.namespace===m&&h.endthis.Z,y=g.l(O,8)&&g.l(O,16),L=this.RY.mO().isBackground()||O.isSuspended();Nt(this,this.Xr,y&&!L,w,"qoe.slowseek",function(){},"timeout"); var C=isFinite(this.Z);C=y&&C&&V.wl(this.Z);var E=!h||Math.abs(h-this.Z)>10,q=this.W.Y("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),M=h===0&&this.L&&[11,10].includes(this.L);Nt(this,this.CA,C&&E&&!L&&(!q||!M),w,"qoe.slowseek",function(){V.seekTo(m.Z)},"set_cmt"); E=C&&mu(V.EZ(),this.Z);var f=this.RY.loader;C=!f||f.Bp();var x=function(){V.seekTo(m.Z+.001)}; Nt(this,this.EH,E&&C&&!L,w,"qoe.slowseek",x,"jiggle_cmt");C=function(){return m.RY.Jn()}; Nt(this,this.fA,E&&!L,w,"qoe.slowseek",C,"new_elem");var R=k_(O);M=O.isBuffering();var A=V.EZ(),K=Pg(A,h),X=K>=0&&A.end(K)>h+5;E=R&&M&&X;q=this.RY.getVideoData();Nt(this,this.H6,h<.002&&this.Z<.002&&y&&g.g2(this.W)&&g.vC(q)&&!L,w,"qoe.slowseek",C,"slow_seek_shorts");Nt(this,this.Qt,q.X3()&&y&&!L&&!q.V,w,"qoe.slowseek",C,"slow_seek_gapless_shorts");Nt(this,this.Zu,E&&!L,R&&!M,"qoe.longrebuffer",x,"jiggle_cmt");Nt(this,this.Ae,E&&!L,R&&!M,"qoe.longrebuffer",C,"new_elem_nnr");if(f){var c=f.getCurrentTime(); y=V.CT();y=MmC(y,c);y=!f.isSeeking()&&h===y;Nt(this,this.UU,R&&M&&y&&!L,R&&!M&&!y,"qoe.longrebuffer",function(){V.seekTo(c)},"seek_to_loader")}y={}; x=Pg(A,Math.max(h-3.5,0));var r=x>=0&&h>A.end(x)-1.1,N=x>=0&&x+1=0&&r&&N<11;y.close2edge=r;y.gapsize=N;y.buflen=A.length;this.L&&(y.seekSour=this.L);Nt(this,this.mS,R&&M&&!L,R&&!M,"qoe.longrebuffer",function(){},"timeout",y); y=O.isSuspended();y=this.RY.Fl()&&!y;Nt(this,this.J,y,!y,"qoe.start15s",function(){m.RY.UJ("ad")},"ads_preroll_timeout"); y=this.W.experiments.w0("html5_use_playback_rate_in_skip_slow_ad")?this.RY.getPlaybackRate()*1E3:1E3;K=h-this.T5;Nt(this,this.Je,f,R&&!M,"qoe.longrebuffer",function(){m.RY.wQ()},"reset_media_source"); Nt(this,this.Mf,f,R&&!M,"qoe.longrebuffer",C,"reset_media_element");this.T===0&&(this.N=h);f=M&&this.Z===0&&h>1&&h===this.N;Nt(this,this.iH,g.vC(q)&&f,R&&!M,"qoe.slowseek",function(){V.seekTo(0)},"reseek_after_time_jump"); L=O.isOrWillBePlaying()&&!L;X=this.RY.qz()-h<6&&!X&&this.RY.ra();Nt(this,this.V,q.X3()&&L&&M&&X,R&&!M,"qoe.longrebuffer",function(){m.RY.Jn(!1,!0)},"handoff_end_long_buffer_reload"); L=this.L===104||this.RY.qW;O=Uf(q)&&q.isAd()&&!q.V&&L&&(M||g.l(O,8)&&g.l(O,16));Nt(this,this.pA,O,w,"qoe.start15s",C,"gapless_ad_slow_start");O=Uf(q)&&!q.V&&L&&E;Nt(this,this.nA,O,w,"qoe.longrebuffer",C,"gapless_slow_start");this.T=h;this.K.start()}}; Dx.prototype.L6=function(m,V,O){V=this.xD(V);V.wn=O;V.wdup=this.D[m]?"1":"0";this.RY.L6(new g.jc(m,V));this.D[m]=!0}; Dx.prototype.xD=function(m){m=Object.assign(this.RY.xD(!0),m.xD());this.Z&&(m.stt=this.Z.toFixed(3));this.RY.getVideoData().isLivePlayback&&(m.ct=this.RY.getCurrentTime().toFixed(3),m.to=this.RY.OU().toFixed(3));delete m.uga;delete m.euri;delete m.referrer;delete m.fexp;delete m.vm;return m}; cf.prototype.reset=function(){this.Z=this.L=this.D=this.startTimestamp=0;this.T=!1}; cf.prototype.test=function(m){if(!this.K||this.L)return!1;if(!m)return this.reset(),!1;m=(0,g.TN)();if(!this.startTimestamp)this.startTimestamp=m,this.D=0;else if(this.D>=this.K)return this.L=m,!0;this.D+=1;return!1}; cf.prototype.xD=function(){var m={},V=(0,g.TN)();this.startTimestamp&&(m.wsd=(V-this.startTimestamp).toFixed());this.L&&(m.wtd=(V-this.L).toFixed());this.Z&&(m.wssd=(V-this.Z).toFixed());return m};g.t(Vxl,g.Z);g.U=Vxl.prototype;g.U.setMediaElement=function(m){(this.mediaElement=m)?(this.mediaElement&&(this.K||this.D||!this.mediaElement.mE()||this.seekTo(.01,{Jq:"seektimeline_setupMediaElement"})),bn(this)):Sl(this)}; g.U.getCurrentTime=function(m){m=m===void 0?!1:m;if(nl(this.RY)){if(this.Y("html5_use_centralized_player_time")&&!m&&!isNaN(this.N))return this.N;if(!isNaN(this.L))return this.L}else{if(this.Y("html5_use_centralized_player_time")&&!m&&!isNaN(this.N)&&isFinite(this.N))return this.N;if(!isNaN(this.L)&&isFinite(this.L))return this.L}return this.mediaElement&&RZa(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.D||0}; g.U.CQ=function(){return this.pA}; g.U.T6=function(){return this.getCurrentTime()-this.OU()}; g.U.Jk=function(){return this.Z?this.Z.Jk():Infinity}; g.U.isAtLiveHead=function(m){if(!this.Z)return!1;m===void 0&&(m=this.getCurrentTime());return YP(this.Z,m)}; g.U.hf=function(){return!!this.Z&&this.Z.hf()}; g.U.seekTo=function(m,V){var O=V===void 0?{}:V;V=O.Z1===void 0?!1:O.Z1;var h=O.G$===void 0?0:O.G$;var w=O.rb===void 0?!1:O.rb;var y=O.mU===void 0?0:O.mU;var L=O.Jq===void 0?"":O.Jq;var C=O.seekSource===void 0?void 0:O.seekSource;var E=O.HM===void 0?!1:O.HM;var q=O.GP===void 0?!1:O.GP;O=O.sR===void 0?!1:O.sR;E&&(m+=this.OU());SC(this.videoData)&&C===29&&(this.pA=void 0);E=m=this.n4())||!g.sf(this.videoData),K||(X={st:X,mst:this.n4()},this.Z&&this.Y("html5_high_res_seek_logging")&&(X.ht=this.Z.Jk(),X.adft=$P(this.Z)),this.RY.uH("seeknotallowed",X)),X=K));if(!X)return this.T&&(this.T=null,Mx0(this)),g.bg(this.getCurrentTime());X=.005;q&&this.Y("html5_sabr_seek_no_shift_tolerance")&&(X=0);if(Math.abs(m-this.L)<=X&&this.iH)return this.K;this.Y("html5_reset_rate_limiter_on_user_seek")&& (X=this.loader)!=null&&(X.L.Ae.b5=0);this.Y("html5_reset_backoff_on_user_seek")&&(X=this.loader)!=null&&(X.L.J=void 0);L&&(X=m,this.W.tj()||this.Y("html5_log_seek_reasons"))&&(L={reason:L,tgt:X},this.Y("html5_sabr_csdai_seek_log")&&(L.source=C),this.RY.uH("seekreason",L));C&&(this.Zu.L=C);this.iH&&Sl(this);this.K||(this.K=new Ut);m&&!isFinite(m)&&y37(this,!1);(L=O||E)||(L=m,L=!(this.videoData.isLivePlayback&&this.videoData.D&&!this.videoData.D.Z&&!(this.mediaElement&&this.mediaElement.f_()>0&&this.mediaElement.HI()> 0)||ku(this.videoData)&&this.jb()===this.n4(!1)?0:isFinite(L)||!ku(this.videoData)));L||(m=IJ(this,m,w));m&&!isFinite(m)&&y37(this,!1);this.Y("html5_use_centralized_player_time")?this.N=m:this.L=this.D=m;this.Je=y;this.J=0;this.Z&&(w=this.Z,y=m,Bam(w,y,!1),lO5(w,y));w=this.RY;y=m;L={Z1:V,seekSource:C};w.K4.D=y;O=w.yz;O.mediaTime=y;O.Z=!0;L.Z1&&w.VS(L);L=y>w.videoData.endSeconds&&y>w.videoData.limitedPlaybackDurationInSeconds;w.TE&&L&&isFinite(y)&&lwX(w);y0&&mV.start&&lwX(this.RY);return this.K}; g.U.n4=function(m){if(!this.videoData.isLivePlayback)return this.RY.videoData.n4();var V;return qE(this.videoData)&&((V=this.mediaElement)==null?0:V.isPaused())&&this.videoData.Z?(m=this.getCurrentTime(),Nsl(this.K6(m)*1E3)+m):this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&SC(this.videoData)&&this.videoData.Z?m?this.videoData.Z.mS||0:this.videoData.Z.Px||0:ku(this.videoData)&&this.videoData.wd&&this.videoData.Z?this.videoData.Z.n4()+this.timestampOffset:this.videoData.D&&this.videoData.D.Z? !m&&this.Z?this.Z.Jk():this.RY.videoData.n4()+this.timestampOffset:this.mediaElement?v7()?Nsl(this.mediaElement.pK().getTime()):this.mediaElement.HI()+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.U.jb=function(){if(this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&SC(this.videoData)){var m;return((m=this.videoData.Z)==null?void 0:m.zF)||0}m=this.videoData?this.videoData.jb()+this.timestampOffset:this.timestampOffset;if(qE(this.videoData)&&this.videoData.Z){var V,O=Number((V=this.videoData.progressBarStartPosition)==null?void 0:V.utcTimeMillis)/1E3;if(!isNaN(O)&&(V=this.i5(O),!isNaN(V)))return Math.max(m,V)}return m}; g.U.OF=function(){this.K||this.seekTo(this.D,{Jq:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.U.TT=function(){return this.iH&&!isFinite(this.L)}; g.U.d0=function(){jW0(this,null);this.Zu.dispose();g.Z.prototype.d0.call(this)}; g.U.xD=function(){var m={};this.loader&&Object.assign(m,this.loader.xD());this.mediaElement&&Object.assign(m,this.mediaElement.xD());return m}; g.U.dT=function(m){this.timestampOffset=m}; g.U.getStreamTimeOffset=function(){return ku(this.videoData)?0:this.videoData.Z?this.videoData.Z.getStreamTimeOffset():0}; g.U.OU=function(){return this.timestampOffset}; g.U.K6=function(m){return this.videoData&&this.videoData.Z?this.videoData.Z.K6(m-this.timestampOffset):NaN}; g.U.Oh=function(){if(!this.mediaElement)return 0;if(F2(this.videoData)){var m=this.mediaElement.YY()+this.timestampOffset-this.jb(),V=this.n4()-this.jb();return Math.max(0,Math.min(1,m/V))}return this.mediaElement.Oh()}; g.U.FD=function(m){this.V&&(this.V.Z=m)}; g.U.UV=function(m,V,O){this.RY.uH("requestUtcSeek",{time:m});SC(this.videoData)&&(this.pA=m);var h;(h=this.loader)==null||h.UV(m,O);V&&(this.v6=V)}; g.U.Yx=function(m){SC(this.videoData)&&(this.pA=void 0);this.v6?(this.RY.uH("utcSeekingFallback",{source:"streamTime",timeSeconds:this.v6}),this.RY.seekTo(this.v6,{Jq:"utcSeekingFallback_streamTime"}),this.v6=0):(m=this.i5(m),isNaN(m)||(this.RY.uH("utcSeekingFallback",{source:"estimate",timeSeconds:m}),this.RY.seekTo(m,{Jq:"utcSeekingFallback_estimate"})))}; g.U.k7=function(){this.v6=0}; g.U.g9=function(m){this.fA=m}; g.U.i5=function(m){var V=this.getCurrentTime();if(isNaN(V))return NaN;var O=this.K6(V);return isNaN(O)?NaN:m-(O-V)}; g.U.Y=function(m){return this.W&&this.W.Y(m)};g.t(el,g.Z);el.prototype.start=function(){this.L.start()}; el.prototype.stop=function(){this.L.stop()}; el.prototype.clear=function(){for(var m=g.D(this.Z.values()),V=m.next();!V.done;V=m.next())V.value.clear()}; el.prototype.sample=function(){for(var m=g.D(this.D),V=m.next();!V.done;V=m.next()){var O=g.D(V.value);V=O.next().value;O=O.next().value;this.Z.has(V)||this.Z.set(V,new tx$(wMa.has(V)));this.Z.get(V).update(O())}this.L.start()}; var wMa=new Set(["networkactivity"]);tx$.prototype.update=function(m){this.L?(this.buffer.add(m-this.Z||0),this.Z=m):this.buffer.add(m)}; tx$.prototype.clear=function(){this.buffer.clear();this.Z=0};Zx.prototype.TP=function(){return this.started}; Zx.prototype.start=function(){this.started=!0}; Zx.prototype.reset=function(){this.finished=this.started=!1};var $jX=!1;g.t(g.G4,g.yh);g.U=g.G4.prototype;g.U.d0=function(){g.XM(this.zL);Cl1(this.zB);this.visibility.unsubscribe("visibilitystatechange",this.zB);Wc7(this.Jj);g.Ag(this.Jj);vf(this);g.GV.gI(this.OB);this.GQ();this.A6=null;g.Ag(this.videoData);g.Ag(this.QG);g.Ag(this.yJ);g.Ag(this.qm);g.Uk(this.mqN);this.TE=null;g.yh.prototype.d0.call(this)}; g.U.GD=function(m,V,O,h,w){if(this.W.Y("html5_log_ad_playback_docid")){var y=this.Jj;if(y.qoe){y=y.qoe;var L=this.W.Zu||"yt";g.NF(y,g.IF(y.provider),"ad_playback",[m,V,O,w,L])}}else this.Jj.GD(m,V,O);this.Y("html5_log_media_perf_info")&&this.uH("adloudness",{ld:h.toFixed(3),cpn:m})}; g.U.aP=function(){var m;return(m=this.loader)==null?void 0:m.aP()}; g.U.O2=function(){var m;return(m=this.loader)==null?void 0:m.O2()}; g.U.sQ=function(){var m;return(m=this.loader)==null?void 0:m.sQ()}; g.U.hH=function(){var m;return(m=this.loader)==null?void 0:m.hH()}; g.U.gH=function(){return this.videoData.gH()}; g.U.Ug=function(){return this.Y("html5_not_reset_media_source")&&this.videoData.isLivePlayback&&this.Mr()>10}; g.U.wi=function(){this.videoData.J&&(this.videoData.Ui=this.videoData.Ui||this.kf.OH().aP(),this.videoData.kh=this.videoData.kh||this.kf.OH().O2());if(tRl(this.videoData)||!Cs(this.videoData)){var m=this.videoData.errorDetail;this.x5(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),m,m,this.videoData.dQ||void 0)}this.Y("html5_generate_content_po_token")&&this.GO();this.Y("html5_enable_d6de4")&&this.ZI()}; g.U.getVideoData=function(){return this.videoData}; g.U.j=function(){return this.W}; g.U.Bi=function(){return this.Dd.Bi(this.A6)}; g.U.mO=function(){return this.visibility}; g.U.nQ=function(){return this.mediaElement&&this.mediaElement.nE()?this.mediaElement.Ir():null}; g.U.C4=function(){return this.mediaElement}; g.U.zY=function(){if(this.videoData.errorCode)return!1;this.j().N&&this.j().houseBrandUserStatus&&this.uH("hbut",{status:this.j().houseBrandUserStatus},!0);if(this.videoData.o8())return!0;this.x5("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.U.Js=function(m){(m=m===void 0?!1:m)||Kca(this.Jj);this.IW=m;!this.zY()||this.It.TP()?Zho(this)&&this.It.TP()&&!this.It.finished&&!this.IW&&this.rX():(this.It.start(),m=this.Jj,g.IF(m.provider),m.qoe&&Xza(m.qoe),this.rX())}; g.U.rX=function(){if(this.videoData.isLoaded()){var m=this.QG;g.m9(m.IY.experiments,"html5_player_min_build_cl")>0&&g.m9(m.IY.experiments,"html5_player_min_build_cl")>841764710&&Ws0(m,"oldplayer");ihC(this)}else this.videoData.qq||this.videoData.hZ?this.IW&&Zho(this)||(this.videoData.qq?wOX(this.videoData):(m=this.Jj,m.qoe&&(m=m.qoe,Zg(m,"protected"),m.provider.videoData.K?m.lQ():m.provider.videoData.subscribe("dataloaded",m.lQ,m)),Pi1(this.videoData))):!this.videoData.loading&&this.Sg&&sWl(this)}; g.U.zt=function(m){this.HD=m;this.loader&&(JjU(this.loader,m),this.uH("sdai",{sdsstm:1}))}; g.U.M3=function(m,V,O){var h;(h=this.loader)==null||h.M3(m,V,O)}; g.U.ZS=function(m){var V;(V=this.loader)==null||V.ZS(m)}; g.U.Pp=function(){var m;return((m=this.loader)==null?void 0:m.g5())||null}; g.U.isFullscreen=function(){return this.visibility.isFullscreen()}; g.U.isBackground=function(){return this.visibility.isBackground()}; g.U.Qo=function(){var m=this;Bf(this).then(function(){return ln(m)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.U.j0=function(){this.mediaElement&&this.mediaElement.activate();this.Js();this.zY()&&!g.l(this.playerState,128)&&(this.zD.TP()||(this.zD.start(),this.videoData.nf?this.Aq(Hm(this.playerState,4)):this.Aq(Hm(Hm(this.playerState,8),1))),Fhm(this))}; g.U.Yz=function(){return this.It.finished}; g.U.sendAbandonmentPing=function(){g.l(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.Z_(!0),Wc7(this.Jj),g.Ag(this.Jj),g.GV.gI(this.OB))}; g.U.mA=function(m,V,O){m=m===void 0?!0:m;(V===void 0||V)&&this.mediaElement&&this.mediaElement.pause();m&&O&&this.loader&&ku(this.videoData)&&this.loader.RQ(O);this.Aq(m?new g.KS(14):new g.KS)}; g.U.pE=function(){this.Jj.U_()}; g.U.x5=function(m,V,O,h,w,y){var L,C;g.kS(oSh,O)?L=O:O?C=O:L="GENERIC_WITHOUT_LINK";h=(h||"")+(";a6s."+Vy());if(m==="auth"||m==="drm.auth"||m==="heartbeat.stop")O&&(h+=";r."+O.replaceAll(" ","_")),y&&(h+="sr."+y.replaceAll(" ","_"));V={errorCode:m,errorDetail:w,errorMessage:C||g.ef[L]||"",kM:L,dQ:y||"",oh:h,aA:V,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=m;QU(this,"dataloaderror");this.Aq(X7(this.playerState,128,V));g.GV.gI(this.OB);vf(this);this.RS()}; g.U.UJ=function(m){this.DX=this.DX.filter(function(V){return m!==V}); this.zD.TP()&&Fhm(this)}; g.U.m1=function(){var m;(m=!!this.DX.length)||(m=this.mV.Z.array[0],m=!!m&&m.start<=-0x8000000000000);return m}; g.U.hf=function(){return this.K4.hf()}; g.U.isPlaying=function(){return this.playerState.isPlaying()}; g.U.D2=function(){return this.playerState.D2()&&this.videoData.nf}; g.U.getPlayerState=function(){return this.playerState}; g.U.sb=function(m){var V;(V=this.loader)==null||V.sb(m)}; g.U.Ob=function(m){var V;(V=this.loader)==null||V.Ob(m)}; g.U.getPlayerType=function(){return this.playerType}; g.U.getPreferredQuality=function(){if(this.A6){var m=this.A6;m=m.videoData.nR.compose(m.videoData.Qz);m=Fe(m)}else m="auto";return m}; g.U.pT=eG(12);g.U.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.U.setMediaElement=function(m){if(this.mediaElement&&m.Ir()===this.mediaElement.Ir()&&(m.isView()||this.mediaElement.isView())){if(m.isView()||!this.mediaElement.isView())this.Eb(),this.mediaElement=m,this.mediaElement.Tt(this),MS5(this),this.K4.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.GQ();if(!this.playerState.isError()){var V=TP(this.playerState,512);g.l(V,8)&&!g.l(V,2)&&(V=Hm(V,1));m.isView()&&(V=TP(V,64));this.Aq(V)}this.mediaElement=m;this.mediaElement.Tt(this);!g.g2(this.W)&& this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);MS5(this);this.K4.setMediaElement(this.mediaElement);this.Y("html5_prewarm_media_source")&&!this.QG.ME()&&this.mediaElement.qY()}}; g.U.GQ=function(m,V,O){m=m===void 0?!1:m;V=V===void 0?!1:V;O=O===void 0?!1:O;if(this.mediaElement){var h=this.getCurrentTime();h>0&&(this.K4.D=h);this.K4.setMediaElement(null);!m&&this.Ug()?Jup(this):this.Uo(O);this.loader&&(Up(this.loader),O$(this,V));this.AU.stop();if(this.mediaElement&&(!this.zD.TP()&&!this.Fl()||this.playerState.isError()||g.l(this.playerState,2)||this.Aq(Hm(this.playerState,512)),this.mediaElement)){this.Eb();if(m||!this.mediaElement.isView())this.vD.Xw("mesv_s"),this.mediaElement.stopVideo(), hw(this);this.mediaElement.Tt(null);this.mediaElement=null}}}; g.U.playVideo=function(m,V){m=m===void 0?!1:m;V=V===void 0?!1:V;var O=this,h,w,y,L,C,E;return g.u(function(q){if(q.Z==1){var M=window.google_image_requests;M&&M.length>10&&(window.google_image_requests=M.slice(-10));if(g.l(O.playerState,128))return q.return();if(O.QG.h4())return O.publish("signatureexpired"),q.return();O.mediaElement&&Kca(O.Jj);O.j0();(g.l(O.playerState,64)||m)&&O.Aq(Hm(O.playerState,8));return O.zD.finished&&O.mediaElement?O.A6||!O.Ha?q.Te(2):g.I(q,O.Ha,3):q.return()}if(q.Z!=2&& g.l(O.playerState,128))return q.return();if(!O.videoData.D)return O.videoData.isLivePlayback&&!g.Yq(O.W.K,!0)?(h="html5.unsupportedlive",w=2):(h=O.videoData.gH()?"fmt.unplayable":"fmt.noneavailable",w=1),g.cj(Error("selectableFormats")),O.x5(h,w,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),q.return();if(O.rH()&&O.videoData.D.Z)return q.return(Bf(O));if(nl(O))M=O.K4,T_(M.videoData)&&!M.isAtLiveHead(M.getCurrentTime())&&M.hf()&&M.RY.seekTo(Infinity,{Jq:"seektimeline_peggedToLive", seekSource:34});else if(T_(O.videoData)&&(y=O.getCurrentTime()L;if(!C||!L){w&&C&&(y=Math.max(y,w));var E;w=kzI(V,(E=h.Z)==null?void 0:E.videoInfos);E=V.RY.getPlaybackRate();E>1&&w&&(E=qtl(V.W.K,h.Z.videoInfos,E),m.Z!==0&&E=480;if(V.Y("html5_perf_cap_override_sticky")){q=V.D;V=V.Y("html5_perserve_av1_perf_cap");V=V===void 0?!1:V;if(V===void 0?0:V){M=rC();m=g.D(Object.keys(M));for(y=m.next();!y.done;y=m.next())y=y.value,y.indexOf("1")!==0&&delete M[y];g.I$("yt-player-performance-cap",M,2592E3)}else g.uF("yt-player-performance-cap");MpC(V);if(V){V=g.D(yT.keys());for(M=V.next();!M.done;M=V.next())M=M.value,M.startsWith("1")|| yT.delete(M);V=g.D(Jb.values());for(M=V.next();!M.done;M=V.next())M=M.value,M.startsWith("1")||Jb.delete(M);V=g.D(q.keys());for(M=V.next();!M.done;M=V.next())M=M.value,M.startsWith("1")||q.delete(M)}else yT.clear(),Jb.clear(),q.clear()}}}}this.loader&&(V=this.loader,O=O||"",V.policy.Z?UX(V.K.Z,O):UX(V.Z.K,O));this.rC()}; g.U.getUserPlaybackQualityPreference=function(){return this.videoData.D&&!this.videoData.D.Z?Fe(this.videoData.nR):s_[Ym()]}; g.U.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.U.setUserAudio51Preference=function(m,V){this.getUserAudio51Preference()!==m&&(this.uH("toggle51",{pref:m}),g.I$("yt-player-audio51",m,V?31536E3:2592E3),this.Qo())}; g.U.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.U.setProximaLatencyPreference=function(m){var V=this.getProximaLatencyPreference();this.uH("proxima",{pref:m});g.I$("yt-player-proxima-pref",m,31536E3);V!==m&&(m=this.K4,m.nA=!0,m.RY.seekTo(Infinity,{Jq:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.U.getProximaLatencyPreference=function(){var m;return(m=km())!=null?m:0}; g.U.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.U.GO=function(){this.videoData.videoId?this.kf.GO(this.videoData):this.uH("povid",{})}; g.U.ZI=function(){this.videoData.videoId?this.kf.ZI(this.videoData):this.uH("piavid",{})}; g.U.rC=function(){if(!this.UH()&&!g.l(this.playerState,128)&&this.videoData.D){if(this.videoData.D.Z)FW(this);else{var m=VB(this),V=this.videoData;a:{var O=this.videoData.nA;if(m.Z){for(var h=g.D(O),w=h.next();!w.done;w=h.next()){w=w.value;var y=w.getInfo(),L=g.kH[y.video.quality];if((!m.D||y.video.quality!=="auto")&&L<=m.Z){O=w;break a}}O=O[O.length-1]}else O=O[0]}V.iH=O;QW5(this,m.reason,RLo(this,this.videoData.iH))}if(this.Y("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.K4.Qt= !1,this.playVideo()}}; g.U.vN=function(m,V){if(this.UH()||g.l(this.playerState,128))return!1;var O,h=!((O=this.videoData.D)==null||!O.Z);O=h&&V?this.getCurrentTime()-this.OU():NaN;if(m.fP&&m.fP.id){var w=this.Jj;if(w.qoe){w=w.qoe;var y=[m.fP.id,isNaN(O)?"m":"t"];g.NF(w,g.IF(w.provider),"afi",y)}}if(h)return V&&(h=Lho(this.K4),this.uH("aswh",{id:m.id,xtags:m.xtags,bh:h.toFixed(3)})),this.loader.setAudioTrack(m,O,V),!0;if(PUI(this)){a:{V=this.mediaElement.audioTracks();h=!1;for(O=0;Oy.P6.getDuration()&&qpC(y,L)):qpC(y,q);var M=y.loader,f=y.P6;C=C===void 0?!1:C;E=E===void 0?!1:E;M.policy.EH&&(M.policy.fA&&M.uH("loader",{setsmb:0}),M.Si(),M.policy.EH=!1);aZp(M,E);if(!RT(f)){var x=xj(M.videoTrack),R=xj(M.audioTrack),A=(x?x.info.Du:M.videoTrack.Du).info, K=(R?R.info.Du:M.audioTrack.Du).info,X=M.policy.Ui,c=A.mimeType+(X===void 0?"":X),r=K.mimeType,N=A.B6,n=K.B6,F;f.Zu=(F=f.P6)==null?void 0:F.addSourceBuffer(r);var z;f.Ae=c.split(";")[0]==="fakesb"?void 0:(z=f.P6)==null?void 0:z.addSourceBuffer(c);f.yC&&(f.yC.webkitSourceAddId("0",r),f.yC.webkitSourceAddId("1",c));var V$=new JT(f.Zu,f.yC,"0",D6(r),n,!1),O3=new JT(f.Ae,f.yC,"1",D6(c),N,!0);RR7(f,V$,O3)}x=C;R=E;x=x===void 0?!1:x;R=R===void 0?!1:R;vY(M.videoTrack,f.L||null,R);vY(M.audioTrack,f.Z||null, R);M.P6=f;M.P6.K=!0;x||M.resume();f.Z.Yh(M.Je,M);f.L.Yh(M.Je,M);try{M.AY()}catch(hI){g.kL(hI)}y.publish("mediasourceattached")}}catch(hI){g.cj(hI),y.handleError(new g.jc("fmt.unplayable",{msi:"1",ename:hI&&typeof hI==="object"&&"name"in hI?String(hI.name):void 0,trg:"setmediasrc"},1))}} var y=this;V=V===void 0?!1:V;O=O===void 0?!1:O;EGC(this,h===void 0?!1:h);this.P6=m;this.Ug()&&oT(this.P6)==="open"?w(this.P6):x63(this.P6,w)}; g.U.bl=function(m){this.IV.set(m.initData,m);this.C6&&(this.C6.bl(m),this.Y("html5_eme_loader_sync")||this.IV.remove(m.initData))}; g.U.mJ=function(m){this.videoData.Sd=g.ue("auto",m,!1,"u");FW(this)}; g.U.FD=function(m){var V=m.reason,O=m.Z.info,h=m.token,w=m.videoId,y=this.Jj,L=this.videoData;if(O!==L.T){var C=!L.T;L.T=O;var E=V==="m"||V==="t";E||(V=C?"i":"a");this.W.experiments.w0("html5_refactor_sabr_audio_format_selection_logging")?this.J2=new T93(L,O,V,"",h,w):(V=new T93(L,O,V,"",h),y.qoe&&(y=y.qoe,O=g.IF(y.provider),DEp(y,O,V)));this.publish("internalaudioformatchange",L,!C&&E)}this.Dk();this.K4.FD(m.Z.index)}; g.U.f2=function(m){this.publish("localmediachange",m)}; g.U.Rz=function(m){m=m===void 0?{}:m;var V;(V=this.loader)==null||V.Rz(this.W,tq(this.videoData),m)}; g.U.h4=function(){return this.QG.h4()}; g.U.Ok=function(m){this.L6(new g.jc("staleconfig",{reason:m}))}; g.U.handleError=function(m){this.QG.handleError(m)}; g.U.ME=function(){return this.QG.ME()}; g.U.Yx=function(m){this.K4.Yx(m)}; g.U.Jn=function(m,V){m=m===void 0?!1:m;V=V===void 0?!1:V;var O=this,h,w,y;return g.u(function(L){if(L.Z==1){O.loader&&O.loader.BY();O.loader&&O.loader.UH()&&vf(O);if(O.Y("html5_enable_vp9_fairplay")&&O.gH()&&(h=O.videoData.Z)!=null)for(var C in h.Z)h.Z.hasOwnProperty(C)&&(h.Z[C].Z=null,h.Z[C].D=!1);O.Aq(Hm(O.playerState,2048));O.publish("newelementrequired");return m?g.I(L,Bf(O),2):L.Te(2)}O.videoData.yp()&&((w=O.loader)==null?0:w.v6)&&!nl(O)&&((y=O.isAtLiveHead())&&T_(O.videoData)?O.seekTo(Infinity, {Jq:"videoPlayer_getNewElement"}):O.videoData.El&&O.loader&&(C=O.loader,C.YN.yp&&(C.YN.El||C.YN.T||C.YN.isPremiere?(C.seek(0,{Jq:"loader_resetSqless"}),C.videoTrack.N=!0,C.audioTrack.N=!0,C.videoTrack.T=!0,C.audioTrack.T=!0):OY(C.YN)&&Nj(C))));V&&O.seekTo(0,{seekSource:105});g.l(O.playerState,8)&&O.playVideo();g.j$(L)})}; g.U.J4=function(m){this.uH("hgte",{ne:+m});this.videoData.J=!1;m&&this.Jn();this.loader&&Fvp(this.loader)}; g.U.FS=function(m){this.uH("newelem",{r:m});this.Jn()}; g.U.pauseVideo=function(m){m=m===void 0?!1:m;if((g.l(this.playerState,64)||g.l(this.playerState,2))&&!m)if(g.l(this.playerState,8))this.Aq($_(this.playerState,4,8));else if(this.D2())ln(this);else return;g.l(this.playerState,128)||(m?this.Aq(Hm(this.playerState,256)):this.Aq($_(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.sf(this.videoData)&&this.loader&&O$(this,!1)}; g.U.stopVideo=function(){this.pauseVideo();this.loader&&(O$(this,!1),this.loader.Si())}; g.U.RS=function(m,V){m=m===void 0?!1:m;V=V===void 0?!1:V;if(this.Ug()&&V){var O;(O=this.mediaElement)==null||O.RS()}else{var h;(h=this.mediaElement)==null||h.stopVideo()}hw(this);vf(this);g.l(this.playerState,128)||(m?this.Aq(TP(TP(Hm(this.playerState,4),8),16)):this.Aq(X7(this.playerState)));this.videoData.videoId&&this.W.H6.remove(this.videoData.videoId)}; g.U.seekTo=function(m,V){V=V===void 0?{}:V;g.l(this.playerState,2)&&ln(this);V.X8N&&this.Aq(Hm(this.playerState,2048));if((V.seekSource===58||V.seekSource===60)&&this.Y("html5_update_vss_during_gapless_seeking")){var O=this.Jj;O.Z&&(O=O.Z,V.seekSource===58?O.Z.update():O.D&&(oJ(O),Ab(O).send(),O.T=NaN))}this.K4.seekTo(m,V);this.mV.sync()}; g.U.VS=function(m){this.vD.T.L=(0,g.TN)();g.l(this.playerState,32)||(this.Aq(Hm(this.playerState,32,m==null?void 0:m.seekSource)),g.l(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.Yf()}; g.U.P3=function(m){m=m==null?void 0:m.seekSource;g.l(this.playerState,32)?(this.Aq($_(this.playerState,16,32,m)),this.publish("endseeking")):g.l(this.playerState,2)||this.Aq(Hm(this.playerState,16,m));m=this.vD.T;var V=this.videoData,O=this.playerState.isPaused();if(V.clientPlaybackNonce&&!isNaN(m.Z)){if(Math.random()<.01){O=O?"pbp":"pbs";var h={startTime:m.Z};V.N&&(h.cttAuthInfo={token:V.N,videoId:V.videoId});cy("seek",h);g.r5({clientPlaybackNonce:V.clientPlaybackNonce},"seek");isNaN(m.L)||ko("pl_ss", m.L,"seek");ko(O,(0,g.TN)(),"seek")}m.reset()}}; g.U.DD=function(m){this.P3(m)}; g.U.Zo=function(){this.publish("SEEK_COMPLETE")}; g.U.YV=function(m){var V=this.kf,O=this.videoData.clientPlaybackNonce,h=this.playerType;if(m.scope===4){var w=m.type;if(w){var y=V.Zj(),L=y.getVideoData().clientPlaybackNonce;h===1&&(L=O);if(h=coX(V,L)){if(O=h.getVideoData())m.writePolicy===2&&O.sabrContextUpdates.has(w)||(m.sendByDefault&&O.H6.add(w),O.sabrContextUpdates.set(w,m)),V.Y("html5_enable_t1_enf_on_sabr")&&(m=w===5,w=xz7(O.playerResponse),m?(m=w?1:0,CX(m,"m.p_",{}),mT("MBSTAT",m)):m=1,m===0&&V.kN.bH("onAbnormalityDetected"))}else y.uH("scuset", {ncpf:"1",ccpn:L,crcpn:O})}else g.cj(Error("b/380308491: contextUpdateType is undefined"))}}; g.U.Wi=function(){if(this.playerType===2)return this.kf.Wi("")}; g.U.getCurrentTime=function(m){return this.K4.getCurrentTime(m===void 0?!1:m)}; g.U.CQ=function(){return this.K4.CQ()}; g.U.T6=function(){return this.K4.T6()}; g.U.lD=function(){return this.T6()}; g.U.Jk=function(){return this.K4.Jk()}; g.U.getPlaylistSequenceForTime=function(m){return this.videoData.getPlaylistSequenceForTime(m-this.OU())}; g.U.X8=function(){var m=NaN;this.mediaElement&&(m=this.mediaElement.X8());return m>=0?m:this.getCurrentTime()}; g.U.K6=function(){var m;return((m=this.videoData.Z)==null?0:m.K6)?this.videoData.Z.K6(this.getCurrentTime()-this.OU()):this.mediaElement&&(m=this.mediaElement.pK())&&(m=m.getTime(),!isNaN(m))?m/1E3+this.getCurrentTime():NaN}; g.U.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.OU():this.n4()?this.n4():0}; g.U.XE=function(){var m=new $pp;if(this.loader){var V=this.Tp,O=this.W.tj();O=O===void 0?!1:O;m.wA=V.mS;m.HA=V.Je;m.bandwidthEstimate=P1(V);if(O){O=(V.V.Og()*1E3).toFixed();var h=(V.iH.Og()*1E3).toFixed(),w=QF(V).toFixed(2),y=((V.J.Og()||0)*1E9).toFixed(2),L=V.D.Og().toFixed(0),C=V.EH.Og().toFixed(0),E=V.Qt.percentile(.5).toFixed(2),q=V.Qt.percentile(.92).toFixed(2),M=V.Qt.percentile(.96).toFixed(2),f=V.Qt.percentile(.98).toFixed(2);V.Z?V.Z.reset():V.Z=new oK;V.Z.add(V.v6);V.Z.add(V.interruptions.length); for(var x=0,R=V.interruptions.length-1;R>=0;R--){var A=V.interruptions[R];V.Z.add(A-x);x=A}x=0;for(R=V.T.length-1;R>=0;R--){A=V.T[R];var K=A.stamp/36E5;V.Z.add(K-x);x=K;V.Z.add(A.net/1E3);V.Z.add(A.max)}V=V.Z.W2();m.Z={ttr:O,ttm:h,d:w,st:y,bw:L,abw:C,v50:E,v92:q,v96:M,v98:f,"int":V}}V=this.loader;V.P6&&V.P6.K&&!V.P6.wH()&&(m.Qh=J3(V.videoTrack),m.L=J3(V.audioTrack),V.policy.D&&(O=jx(V.videoTrack),h=jx(V.audioTrack),w=vg(V.P6.L.RJ(),"_",5),y=vg(V.P6.Z.RJ(),"_",5),Object.assign(m.Z,{lvq:O,laq:h,lvb:w, lab:y})));m.bandwidthEstimate=v1(V.Qt);var X;(X=V.audioTrack.V)==null||X.flush();var c;(c=V.videoTrack.V)==null||c.flush()}else this.mediaElement&&(m.Qh=this.mediaElement.Iz());m.wA=this.wA;m.HA=this.HA;m.D=this.isAtLiveHead()&&this.isPlaying()?uxC(this):NaN;X=this.K4;X=X.Z?$P(X.Z):0;m.T=X;return m}; g.U.Ba=function(m,V){this.HA+=m;this.wA+=V}; g.U.Oh=function(){return this.mediaElement?g.sf(this.videoData)?1:F2(this.videoData)?this.isAtLiveHead()||this.hf()?1:this.K4.Oh():this.mediaElement.Oh():0}; g.U.W3=function(){var m=this.xU,V=z4(m,"bandwidth"),O=z4(m,"bufferhealth"),h=z4(m,"livelatency"),w=z4(m,"networkactivity"),y=un(m,"bandwidth"),L=un(m,"bufferhealth"),C=un(m,"livelatency");m=un(m,"networkactivity");var E=this.sS(),q=E.droppedVideoFrames;E=E.totalVideoFrames;var M=this.getCurrentTime();if(this.C6){var f="IT/"+(this.C6.Z.getInfo()+"/"+Fe(this.oH()));f+="/"+this.C6.getInfo()}else f="";var x=this.isGapless(),R=this.DM(),A=this.qr(),K=g.mU(this),X=this.getPlayerState().state.toString(16), c=this.getPlaylistSequenceForTime(this.getCurrentTime());a:{var r=0;var N="";if(this.HD){if(this.HD.SI){N="D,";break a}r=this.HD.KM;N=this.HD.eW.substring(0,4)}r>0?(r="AD"+r+", ",N&&(r+=N+", "),N=r):N=""}return{ww:y,mW:L,currentTime:M,Sc:f,droppedVideoFrames:q,isGapless:x,DM:R,Jh:A,hG:V,Rw:O,ZB:h,uO:w,Lj:C,pj:m,s1:K,Rv:X,ZE:c,xo:N,totalVideoFrames:E}}; g.U.xD=function(m){var V={};if(m===void 0?0:m){Object.assign(V,this.Jj.xD());this.mediaElement&&(Object.assign(V,this.mediaElement.xD()),m=this.sS(),V.dvf=m.droppedVideoFrames,V.tvf=m.totalVideoFrames);this.loader&&Object.assign(V,this.loader.xD());this.C6&&(V.drm=JSON.stringify(this.C6.xD()));V.state=this.playerState.state.toString(16);g.l(this.playerState,128)&&(V.debug_error=JSON.stringify(this.playerState.MU));this.m1()&&(V.prerolls=this.DX.join(","));this.videoData.NT&&(V.ismb=this.videoData.NT); this.videoData.latencyClass!=="UNKNOWN"&&(V.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(V.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)V.is_mosaic=1;this.videoData.cotn&&(V.is_offline=1,V.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(V.playerResponseCpn=this.videoData.playerResponseCpn);this.kf.isOrchestrationLeader()&&(V.leader=1);this.videoData.isLivePlayback&& (this.videoData.Z&&vt(this.videoData.Z)&&(V.segduration=vt(this.videoData.Z)),m=this.K4,V.lat=m.V?sPU(m.V.T):0,V.liveutcstart=this.videoData.liveUtcStartSeconds);V.relative_loudness=this.videoData.B9.toFixed(3);if(m=g.mU(this))V.optimal_format=m.video.qualityLabel;V.user_qual=Ym();V.release_version=J[81]}V.debug_videoId=this.videoData.videoId;return V}; g.U.addCueRange=function(m){this.I4([m])}; g.U.removeCueRange=function(m){this.mV.Qe([m])}; g.U.lW=function(){var m=this.mV;if(m.RY.j().Y("html5_sort_cueranges_on_update")&&!(m.NU().length<=0||m.UH())){var V=m.Z;V.array.sort(V.Z)}m.sync()}; g.U.eP=function(m,V){return this.mV.eP(m,V)}; g.U.I4=function(m,V){this.mV.SK(m,V)}; g.U.V3=function(m){this.mV.Qe(m)}; g.U.NU=function(){return this.mV.NU()||[]}; g.U.AP=function(){return this.r5}; g.U.rH=function(){return this.visibility.rH()}; g.U.Ei=function(){this.mediaElement&&this.mediaElement.Ei()}; g.U.gAf=function(){QU(this)}; g.U.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.U.Eb=function(){g.np(this.zm)}; g.U.ifY=function(){this.Yf();this.publish("onLoadProgress",this.Oh())}; g.U.e6=function(m){var V=m.target.sZ();if(this.mediaElement&&this.mediaElement.sZ()&&this.mediaElement.sZ()===V){Kb3(this,m.type);switch(m.type){case "error":var O=this.mediaElement.Tl()||"",h=this.mediaElement.Kf();if(O==="capability.changed"){this.Y("html5_restart_on_capability_change")?(this.uH("capchg",{msg:h}),this.Jn(!0)):Bf(this);return}if(this.mediaElement.hasError()&&ULU(this.QG,O,{msg:h,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.zV()){this.RS();Pf(this,"unplayable"); return}break;case "durationchange":O=this.mediaElement.getDuration();isFinite(O)&&(!this.P6||O>0)&&O!==1&&this.qb(O);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());O=this.mV;O.started=!0;O.sync();this.Jj.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":(this.wu().Z.lH(gUc)||this.Y("html5_prevent_mobile_background_play_on_event_shared"))&&aJ(this,!1);X27(this);this.publish("onLoadedMetadata");xFp(this);O=this.K6();this.videoData.AB&& (this.videoData.AB=O);break;case "loadstart":xFp(this);break;case "progress":case "suspend":this.yQ.Bc();break;case "seeked":(O=this.loader)!=null&&O.policy.L&&O.Bm&&(O.uH("sdai",{skipAdSked:"1"}),O.Bm=!1);break;case "playing":(this.wu().Z.lH(gUc)||this.Y("html5_prevent_mobile_background_play_on_event_shared"))&&aJ(this,!1);this.vD.Xw("plev");this.IM&&!nl(this)&&(this.IM=!1,this.isAtLiveHead()||this.seekTo(Infinity,{Jq:"videoplayer_onPlaying"}));break;case "timeupdate":(this.wu().Z.lH(gUc)||this.Y("html5_prevent_mobile_background_play_on_event_shared"))&& aJ(this,!1);O=this.mediaElement&&!this.mediaElement.getCurrentTime();h=this.mediaElement&&this.mediaElement.f_()===0;if(O&&(!this.k0||h))return;this.k0=this.k0||!!this.mediaElement.getCurrentTime();fgX(this);this.Yf();if(!this.mediaElement||this.mediaElement.sZ()!==V)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.CT().length>0&&this.mediaElement.EZ().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return; this.Y("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.f_()>2||!this.mediaElement.isSeeking()&&mu(this.mediaElement.EZ(),this.mediaElement.getCurrentTime()))&&(O=this.mediaElement.xD(),O.bh=this.mediaElement.Iz().toFixed(3),this.uH("uwe",O));break;case "resize":X27(this);this.videoData.L&&this.videoData.L.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.aO&&g.l(this.playerState,8)&&!g.l(this.playerState, 1024)&&this.getCurrentTime()===0&&g.AJ){Pf(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.sZ()===V){A3$(this.K4,m);this.publish("videoelementevent",m);V=this.playerState;h=this.yz;var w=this.mediaElement;O=this.videoData.clientPlaybackNonce;if(!g.l(V,128)){var y=V.state;w=w?w:m.target;var L=w.getCurrentTime();if(!g.l(V,64)||m.type!=="ended"&&m.type!=="pause"){var C=w.getDuration();C=w.isEnded()||L>1&&Math.abs(L-C)<1.1;var E=m.type==="pause"&&w.isEnded();L=m.type=== "ended"||m.type==="waiting"||m.type==="timeupdate"&&!g.l(V,4)&&!Wf(h,L);if(E||C&&L)w.B3()>0&&w.sZ()&&(y=14);else switch(m.type){case "error":w.Tl()&&(y|=128);break;case "pause":g.l(V,256)?(y^=256)||(y=64):g.l(V,32)||g.l(V,2)||g.l(V,4)||(y=4,g.l(V,1)&&g.l(V,8)&&(y|=1));break;case "playing":L=y;y=(y|8)&-1093;L&4?(y|=1,Wm(h,w,!0)):Wf(h,w.getCurrentTime())&&(y&=-2);g.l(V,1)&&Wm(h,w)&&(y|=1);break;case "seeking":y|=16;g.l(V,8)&&(y|=1);y&=-3;break;case "seeked":y&=-17;Wm(h,w,!0);break;case "waiting":g.l(V, 2)||(y|=1);Wm(h,w);break;case "timeupdate":L=g.l(V,16),C=g.l(V,4),(g.l(V,8)||L)&&!C&&Wf(h,w.getCurrentTime())&&(y=8),Wm(h,w)&&(y|=1)}}h=y;y=null;h&128&&(y=m.target,w=y.Tl(),L=1,w?(w==="capability.changed"&&(L=2),C="GENERIC_WITHOUT_LINK",E=y.xD(),E.mediaElem="1",E.trg="melem",/AUDIO_RENDERER/.test(y.Kf())&&(C="HTML5_AUDIO_RENDERER_ERROR"),y={errorCode:w,errorMessage:g.ef[C]||"",kM:C,oh:yK(E),aA:L,cpn:V.MU?V.MU.cpn:""}):y=null,y&&(y.cpn=O));V=X7(V,h,y)}!g.l(this.playerState,1)&&g.l(V,1)&&tSU(this,"evt"+ m.type);this.Aq(V)}}}; g.U.TYe=function(m){m=m.Z.availability==="available";m!==this.r5&&(this.r5=m,this.publish("airplayavailabilitychange"))}; g.U.i4z=function(){var m=(0,g.TN)(),V=this.mediaElement.rH();this.uH("airplay",{ia:V});!V&&!isNaN(this.hP)&&m-this.hP<2E3||(this.hP=m,V!==this.rH()&&(m=this.visibility,m.Z!==V&&(m.Z=V,m.zB()),this.uH("airplay",{rbld:V}),this.Qo()),this.publish("airplayactivechange"))}; g.U.S$=function(m){if(this.loader){var V=this.loader,O=V.D,h=V.getCurrentTime(),w=Date.now()-O.V;O.V=NaN;O.uH("sdai",{adfetchdone:m,d:w});m&&!isNaN(O.N)&&O.L!==3&&JN(O.loader,h,O.N,O.K);O.policy.L?O.D=NaN:O.T=NaN;Lw(O,4,O.L===3?"adfps":"adf");Up(V)}}; g.U.nF=function(){g.XM(this.zL);this.AU.stop();this.videoData.V=!0;this.W.R4=!0;this.W.Aj=0;var m=this.QG;if(m.videoData.L){var V=m.IY.K,O=m.videoData.L.B6;V.D.has(O)&&(V.D.delete(O),V.Z=!0)}m.Z.stop();this.FP();g.l(this.playerState,8)&&this.Aq(TP(this.playerState,65));this.IW=!1;this.Jj.iz();g.Vn(this.yJ);this.publish("playbackstarted");(m=g.$I("yt.scheduler.instance.clearPriorityThreshold"))?m():w1(0)}; g.U.FP=function(){var m=this.kf.QF(),V={},O={};!DY("pbs",this.vD.timerName)&&AX.measure&&AX.getEntriesByName&&(AX.getEntriesByName("mark_nr")[0]?Itm("mark_nr"):Itm());m.videoId&&(V.videoId=m.videoId);m.clientPlaybackNonce&&!this.Y("web_player_early_cpn")&&(V.clientPlaybackNonce=m.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(O.isPausedOnLoad=!0);O.itag=m.L?Number(m.L.itag):-1;m.l2&&(O.preloadType=String(this.Ds?2:1));V.liveStreamMode=sgJ[I5(m)];V.playerInfo=O;this.vD.infoGel(V); if(this.loader){m=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(m.D&&(V=window.performance.getEntriesByName(m.D),V.length&&(V=V[0],m.tick("vri",V.fetchStart),m.tick("vdns",V.domainLookupEnd),m.tick("vreq",V.requestStart),m.tick("vrc",V.responseEnd))),m.L&&(V=window.performance.getEntriesByName(m.L),V.length&&(V=V[0],m.tick("ari",V.fetchStart),m.tick("adns",V.domainLookupEnd),m.tick("areq",V.requestStart),m.tick("arc",V.responseEnd))));m=m.ticks;for(var h in m)m.hasOwnProperty(h)&& this.vD.tick(h,m[h])}}; g.U.Yf=function(m){var V=this;m=m===void 0?!1:m;if(this.mediaElement&&this.videoData){J3I(this.K4,this.isPlaying());var O=this.getCurrentTime();if(this.loader&&(g.l(this.playerState,4)&&g.sf(this.videoData)||g.l(this.playerState,32)&&SC(this.videoData)||E1$(this.loader,O),this.Y("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-Gs(this.loader))>10)){var h;this.uH("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(h=this.loader)==null?void 0:Gs(h)},!0)}O>5&&(this.K4.D=O); (h=g.hJ())?g.GV.gI(this.OB):g.W7(this.OB);var w=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!w||qE(this.videoData))&&!g.l(this.playerState,128)){var y=function(){if(V.mediaElement&&!g.l(V.playerState,128)){V.W.tj()&&Kb3(V,"pfx");var L=V.getCurrentTime();V.Y("html5_buffer_underrun_transition_fix")&&(L-=V.OU());var C=V.mediaElement.Iz(),E=g.l(V.playerState,8),q=Wf(V.yz,L),M=U6C(V.yz,L,(0,g.TN)(),C);E&&q?V.Aq(TP(V.playerState,1)):E&&M?(E=V.getDuration(),q=T_(V.videoData),E&&Math.abs(E- L)<1.1?(V.uH("setended",{ct:L,bh:C,dur:E,live:q}),V.mediaElement.Q8()?V.seekTo(0,{Jq:"videoplayer_loop",seekSource:37}):V.mA()):(V.playerState.isBuffering()||tSU(V,"progress_fix"),V.Aq(Hm(V.playerState,1)))):(E&&!q&&!M&&L>0&&(E=(Date.now()-V.yA)/1E3,q=V.getDuration(),L>q-1&&V.uH("misspg",{t:L.toFixed(2),d:q.toFixed(2),r:E.toFixed(2),bh:C.toFixed(2)})),V.playerState.isPaused()&&V.playerState.isBuffering()&&V.mediaElement.Iz()>5&&V.Aq(TP(V.playerState,1)));V.Yf()}}; this.mediaElement.CT().length===0?this.OB=h?g.GV.B1(y,100):g.t6(y,100):this.OB=h?g.GV.B1(y,500):g.t6(y,500)}this.videoData.UU=O;!m&&this.isPlaying()&&oG3(this);eW3(this.Dd,this.A6,this.C4(),this.isBackground())&&FW(this);this.publish("progresssync",m);w&&qE(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.U.vNA=function(){this.x5("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.U.qr=function(){return this.Jj.qr()}; g.U.j_=function(){return this.loader?this.loader.j_():P1(this.Tp,!0)}; g.U.Aq=function(m){if(!g.Y_(this.playerState,m)){var V=new g.q6(m,this.playerState);this.playerState=m;Wb5(this);var O=!this.iR.length;this.iR.push(V);var h=this.mediaElement&&this.mediaElement.isSeeking();g.fX(V,1)&&this.loader&&s07(this.loader);h=V.oldState.state===8&&!h;if(g.fX(V,1)&&h&&g.l(this.playerState,8)&&!g.l(this.playerState,64)&&this.loader){h=this.loader;h.po=!0;if(h.policy.Id&&h.P6){var w,y,L,C;h.uH("lr_rb",{c:h.getCurrentTime(),s:h.isSeeking(),ab:vg(h.P6.Z.RJ()),ala:(w=PY(h.audioTrack))== null?void 0:w.Gj(),alr:(y=h.audioTrack.Z)==null?void 0:y.Gj(),vb:vg(h.P6.L.RJ()),vla:(L=PY(h.videoTrack))==null?void 0:L.Gj(),vlr:(C=h.videoTrack.Z)==null?void 0:C.Gj()})}h.ix!==0&&h.uH("sps_rebuffer",{c:h.getCurrentTime()});this.mediaElement&&this.mediaElement.Iz()>=5&&(w=this.Dd,y=this.A6,!y.videoData.L||w.Y("html5_disable_performance_downgrade")?w=!1:(Date.now()-w.J>6E4&&(w.L=0),w.L++,w.J=Date.now(),w.L!==4?w=!1:(S6G(w,y.videoData.L),w=!0)),w&&FW(this))}(w=g.m9(this.W.experiments,"html5_ad_timeout_ms"))&& this.videoData.isAd()&&g.l(m,1)&&(g.l(m,8)||g.l(m,16))?this.mK.start(w):this.mK.stop();(M6(V,8)<0||g.fX(V,1024))&&this.AU.stop();!g.fX(V,8)||this.videoData.V||g.l(V.state,1024)||this.AU.start();g.l(V.state,8)&&M6(V,16)<0&&!g.l(V.state,32)&&!g.l(V.state,2)&&this.playVideo();g.l(V.state,2)&&F2(this.videoData)&&(this.qb(this.getCurrentTime()),this.Yf(!0));g.fX(V,2)&&(this.Z_(!0),this.W.tj()&&this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&SC(this.videoData)&&this.videoData.Z&&(m={minst:""+ this.videoData.Z.zF,cminst:""+(this.videoData.Z.jb()+this.OU()),maxst:""+this.videoData.Z.Px,hts:""+this.videoData.Z.mS,cmaxst:""+(this.videoData.Z.n4()+this.OU())},this.uH("sabrSeekableBoundaries",m)));g.fX(V,128)&&this.RS();this.videoData.Z&&this.videoData.isLivePlayback&&!this.q_&&(M6(V,8)<0?(m=this.videoData.Z,m.K&&m.K.stop()):g.fX(V,8)&&this.videoData.Z.resume());m=this.K4;g.Vn(m.Zu.K);if(m.mediaElement)if(V.oldState.state===8&&k_(V.state)&&V.state.isBuffering()){var E=m.mediaElement.getCurrentTime(); w=m.mediaElement.EZ();y=m.Y("manifestless_post_live_ufph")||m.Y("manifestless_post_live")?Pg(w,Math.max(E-3.5,0)):Pg(w,E-3.5);y>=0&&E>w.end(y)-1.1&&y+10?(pl(m.RY,m.getCurrentTime()+m.videoData.limitedPlaybackDurationInSeconds), m.CA=!0):m.videoData.isLivePlayback&&m.videoData.endSeconds>0&&(pl(m.RY,m.getCurrentTime()+m.videoData.endSeconds),m.CA=!0));E=this.Jj;if(g.fX(V,1024)||g.fX(V,512)||g.fX(V,4))E.L&&(m=E.L,m.L>=0||(m.Z=-1,m.delay.stop())),E.qoe&&(m=E.qoe,m.J||(m.D=-1));if(E.provider.videoData.enableServerStitchedDai&&E.LC){var q;(q=E.D.get(E.LC))==null||gz5(q,V)}else E.Z&&gz5(E.Z,V);E.qoe&&(q=E.qoe,m=V.state,w=g.IF(q.provider),y=q.getPlayerState(m),L=m.seekSource||void 0,y!==q.Ol&&(q.mS||w=10&&q.playTimeSecs<=180&&(q.Z.set("qoealert",["1"]),q.nA=!0)),y!=="B"||q.Ol!=="PL"&&q.Ol!=="PB"||(q.isBuffering=!0),q.L=w),q.Ol==="PL"&&(y==="B"||y==="S")||q.provider.W.tj()?u4(q,w):(q.W6||y!=="PL"||(q.W6=!0,eS(q,w,q.provider.RY.XE())),SS(q,w)),y==="PL"&&g.Vn(q.ma),C=[y],y==="S"&&L&&C.push("ss."+L),g.NF(q,w,"vps",C),q.Ol=y,q.Zu=w,q.L=w,q.T=!0),y=m.MU,g.l(m,128)&&y&&(y.oh=y.oh||"",Hsa(q,w,y.errorCode, y.aA,y.oh)),(g.l(m,2)||g.l(m,128))&&q.reportStats(w),m.isPlaying()&&!q.J&&(q.D>=0&&q.Z.set("user_intent",[q.D.toString()]),q.J=!0),zs(q));E.L&&(q=E.L,a03(q),q.playerState=V.state,q.L>=0&&g.fX(V,16)&&q.seekCount++,V.state.isError()&&q.send());if(O&&!this.UH())try{for(var M=g.D(this.iR),f=M.next();!f.done;f=M.next()){var x=f.value,R=this.mV;if(R.started&&(R.sync(),g.l(x.oldState,16))){V=R;var A=Dpl(V.Z,Math.max(V.D-2E3,0));!isNaN(A)&&A<0x7ffffffffffff&&V.T.start()}this.publish("statechange",x)}}finally{this.iR.length= 0}}}; g.U.RB=function(){this.vD.tick("qoes")}; g.U.OF=function(){this.K4.OF()}; g.U.w_=function(m,V,O,h){a:{var w=this.QG;h=h===void 0?"LICENSE":h;O=O.substring(0,256);var y=L$(V);m==="drm.keyerror"&&this.C6&&this.C6.L.keys.length>1&&w.T<96&&(m="drm.sessionlimitexhausted",y=!1);var L=w.IY.experiments.w0("html5_retry_on_drm_unavailable"),C=w.IY.experiments.w0("html5_retry_on_drm_key_error"),E=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(L&&m==="drm.unavailable"||C&&m==="drm.keyerror"&&!O.match(E))w.L6("qoe.restart",{retryOnDrmError:1,e:m,detail:O}),w.RY.Jn(!0);else{if(y)if(w.videoData.L&& w.videoData.L.video.isHdr())H87(w,m);else{if(w.RY.x5(m,V,h,O),oj3(w,{detail:O}))break a}else w.L6(m,{detail:O});m==="drm.sessionlimitexhausted"&&(w.uH("retrydrm",{sessionLimitExhausted:1}),w.T++,dF$(w.RY))}}}; g.U.dCY=function(){var m=this,V=g.m9(this.W.experiments,"html5_license_constraint_delay"),O=Lp();V&&O?(V=new g.mq(function(){m.rC();QU(m)},V),g.a(this,V),V.start()):(this.rC(),QU(this))}; g.U.aT=function(m){this.publish("heartbeatparams",m)}; g.U.Ix=function(m){this.uH("keystatuses",uZl(m));var V="auto",O=!1;this.videoData.L&&(V=this.videoData.L.video.quality,O=this.videoData.L.video.isHdr());a:{switch(V){case "highres":case "hd2880":V="UHD2";break;case "hd2160":case "hd1440":V="UHD1";break;case "hd1080":case "hd720":V="HD";break;case "large":case "medium":case "small":case "light":case "tiny":V="SD";break;default:V="";break a}O&&(V+="HDR")}V=P2(m)?m_(m,V):m.T.includes(V);if(this.Y("html5_enable_vp9_fairplay")){if(O)if(m.J){var h;if((h= this.C6)==null?0:xq(h.Z))if((O=this.C6)==null)O=0;else{for(var w=h=void 0,y=g.D(O.L.values()),L=y.next();!L.done;L=y.next())L=L.value,h||(h=Zc7(L,"SD")),w||(w=Zc7(L,"AUDIO"));O.F8({sd:h,audio:w});O=h==="output-restricted"||w==="output-restricted"}else O=!V;if(O){this.uH("drm",{dshdr:1});H87(this.QG);return}}else{this.videoData.Ay||(this.videoData.Ay=!0,this.uH("drm",{dphdr:1}),this.Jn(!0));return}var C;if((C=this.C6)==null?0:xq(C.Z))return}else if(C=m.J&&V,O&&!C){H87(this.QG);return}V||m_(m,"AUDIO")&& m_(m,"SD")||(m=uZl(m),this.ub?(this.publish("drmoutputrestricted"),this.Y("html5_report_fatal_drm_restricted_error_killswitch")||this.x5("drm.keyerror",2,void 0,"info."+m)):(this.ub=!0,this.L6(new g.jc("qoe.restart",Object.assign({},{retrydrm:1},m))),FW(this),dF$(this)))}; g.U.mCf=function(){if(!this.videoData.V&&this.mediaElement&&!this.isBackground()){var m="0";this.mediaElement.f_()>0&&this.mediaElement.Iz()>=5&&this.videoData.D&&this.videoData.D.Z&&(this.Aq(Hm(this.playerState,1)),tSU(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),m="1");Wb5(this);var V=this.videoData.D;m={restartmsg:m,mfmt:!Aq(this.videoData),mdrm:!(!(V&&V.videoInfos&&V.videoInfos.length&&V.videoInfos[0].He)||this.C6),mfmtinfo:!this.videoData.L,prerolls:this.m1()?this.DX.join(","): "0"};if(this.C6){V=this.C6;if(V.L.size<=0){var O="ns;";V.Qt||(O+="nr;");V=O+="ql."+V.D.length}else V=uZl(V.L.values().next().value),V=yK(V);m.drmp=V}var h;Object.assign(m,((h=this.loader)==null?void 0:h.xD())||{});var w;Object.assign(m,((w=this.mediaElement)==null?void 0:w.xD())||{});this.Jj.L6("qoe.start15s",yK(m));this.publish("loadsofttimeout")}}; g.U.qb=function(m){this.videoData.lengthSeconds!==m&&(this.videoData.lengthSeconds=m,QU(this))}; g.U.Z_=function(m,V){var O=this;m=m===void 0?!1:m;if(!this.NF)if(DY("att_s","player_att")||bP("att_s",void 0,"player_att"),this.Y("use_rta_for_player"))(function(){var w,y,L,C,E;return g.u(function(q){switch(q.Z){case 1:if(!(w=m)){q.Te(2);break}return g.I(q,g.o53(),3);case 3:w=!q.L;case 2:if(w)return q.return();g.JG(q,4);y=Hwl(O.Jj);if(!y)throw Error();L={};return g.I(q,g.RI5((L.cpn=O.videoData.clientPlaybackNonce,L.encryptedVideoId=O.videoData.videoId||"",L),g.m9(O.W.experiments,"html5_att_playback_timeout_ms")|| 3E4),6);case 6:C=q.L;if(O.NF)throw Error();if(!C.challenge)throw E=C.error?"; error: "+C.error:"",g.cj(Error("Not sending atr ping; missing challenge string"+E)),Error();O.NF=!0;var M=[C.challenge];if(C.error){var f=rIM();f=ZU7(f).get(C.error)||0;M.push("r1c="+f)}else C.webResponse&&M.push("r1a="+C.webResponse);var x;((x=C.adblockReporting)==null?void 0:x.reportingStatus)!==void 0&&M.push("r6a="+C.adblockReporting.reportingStatus);var R;((R=C.adblockReporting)==null?void 0:R.broadSpectrumDetectionResult)!== void 0&&M.push("r6b="+C.adblockReporting.broadSpectrumDetectionResult);y(M.join("&"));bP("att_f",void 0,"player_att");g.EJ(q,0);break;case 4:g.qA(q),bP("att_e",void 0,"player_att"),g.j$(q)}})})().then(function(){V==null||V()}); else{var h=new g.wd1(this.videoData);if("c1a"in h.VG&&!g.Xe.isInitialized()){bP("att_wb",void 0,"player_att");this.UA===2&&Math.random()<.01&&g.cj(Error("Botguard not available after 2 attempts"));if(m)return;if(this.UA<5){g.Vn(this.qm);this.UA++;return}}(h=g.yCa(h))?(bP("att_f",void 0,"player_att"),XYa(this.Jj,h),this.NF=!0):bP("att_e",void 0,"player_att")}}; g.U.qz=function(m){m=m===void 0?!1:m;return T_(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.hf()||g.sf(this.videoData))?this.getCurrentTime():this.n4(m)}; g.U.pQ=function(){return this.jb()}; g.U.n4=function(m){return this.K4.n4(m===void 0?!1:m)}; g.U.jb=function(){return this.K4.jb()}; g.U.OU=function(){return this.K4?this.K4.OU():0}; g.U.getStreamTimeOffset=function(){return this.K4?this.K4.getStreamTimeOffset():0}; g.U.G7=function(){return this.getStreamTimeOffset()===0?this.OU():this.getStreamTimeOffset()}; g.U.setPlaybackRate=function(m){var V;this.playbackRate!==m&&kzI(this.Dd,(V=this.videoData.D)==null?void 0:V.videoInfos)&&(this.playbackRate=m,FW(this));this.playbackRate=m;this.mediaElement&&this.mediaElement.setPlaybackRate(m)}; g.U.getPlaybackRate=function(){return this.playbackRate}; g.U.getPlaybackQuality=function(){var m="unknown";if(this.videoData.L&&(m=this.videoData.L.video.quality,m==="auto"&&this.mediaElement)){var V=this.nQ();V&&V.videoHeight>0&&(m=YH(V.videoWidth,V.videoHeight))}return m}; g.U.isHdr=function(){return!!(this.videoData.L&&this.videoData.L.video&&this.videoData.L.video.isHdr())}; g.U.sendVideoStatsEngageEvent=function(m,V){var O=this.Jj;O.Z?(O=gQ(O.Z,"engage"),O.mS=m,O.send(V)):V&&V()}; g.U.zM=function(m){return this.Jj.zM(m)}; g.U.isAtLiveHead=function(m,V){V=V===void 0?!1:V;return T_(this.videoData)&&(this.Q_||V)?this.K4.isAtLiveHead(m):!1}; g.U.Rf=function(){var m=this.n4(),V=this.getCurrentTime(),O;(O=!T_(this.videoData))||(O=this.K4,O=!(O.Z&&O.Z.D));return O||this.hf()||isNaN(m)||isNaN(V)?0:Math.max(0,m-V)}; g.U.xg=function(m){(this.Q_=m)||this.AU.stop();if(this.videoData.Z)if(m)this.videoData.Z.resume();else{var V=this.videoData.Z;V.K&&V.K.stop()}this.loader&&(V=this.videoData.Y("html5_disable_preload_for_ssdai_with_preroll")&&this.Fl()&&this.videoData.isLivePlayback,m&&!V?this.loader.resume():O$(this,!0));g.l(this.playerState,2)||m?g.l(this.playerState,512)&&m&&this.Aq(TP(this.playerState,512)):this.Aq(Hm(this.playerState,512));V=this.Jj;V.qoe&&(V=V.qoe,g.NF(V,g.IF(V.provider),"stream",[m?"A":"I"]))}; g.U.OG=function(m){this.Jj.L6("player.exception",yK({n:m.name,m:m.message}))}; g.U.c7=eG(18);g.U.GZ=eG(47);g.U.hk=function(m){this.Jj.hk(m)}; g.U.w$=function(m){this.Jj.w$(m)}; g.U.n2=function(m){this.Jj.n2(m)}; g.U.qU=eG(24);g.U.CC=eG(30);g.U.Cc=function(m){this.Jj.Cc(m)}; g.U.RQ=function(m,V,O,h){this.Jj.RQ(m,V,O,h)}; g.U.d_=function(){this.uH("hidden",{},!0)}; g.U.sS=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.U.Bp=function(){return this.loader?this.loader.Bp():!0}; g.U.setLoop=function(m){this.loop=m;this.mediaElement&&!g.g2(this.W)&&this.mediaElement.setLoop(m)}; g.U.Q8=function(){return this.mediaElement&&!g.g2(this.W)?this.mediaElement.Q8():this.loop}; g.U.dT=function(m){this.uH("timestamp",{o:m.toString()});this.K4.dT(m)}; g.U.UI=function(m){this.vD.tick(m)}; g.U.Rc=function(m){return this.vD.Rc(m)}; g.U.Xw=function(m){this.vD.Xw(m)}; g.U.uH=function(m,V,O){this.Jj.uH(m,V,O===void 0?!1:O)}; g.U.bI=function(m,V,O){this.Jj.uH(m,V,O===void 0?!1:O)}; g.U.L6=function(m){this.Jj.L6(m.errorCode,yK(m.details));m=m.errorCode;if(this.videoData.isLivePlayback&&(m==="qoe.longrebuffer"||m==="qoe.slowseek")||m==="qoe.restart"){m=this.loader?VCU(this.loader.videoTrack):{};var V,O;this.uH("lasoe",Object.assign(this.loader?VCU(this.loader.audioTrack):{},(V=this.P6)==null?void 0:(O=V.Z)==null?void 0:O.d5()));var h,w;this.uH("lvsoe",Object.assign(m,(h=this.P6)==null?void 0:(w=h.L)==null?void 0:w.d5()))}if(this.Y("html5_log_centralized_player_time")){var y;this.uH("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(y=this.loader)==null?void 0:Gs(y)})}}; g.U.ll=function(m,V,O){this.Jj.ll(m,V,O)}; g.U.xX=function(m,V,O,h,w,y,L,C){var E;if((E=this.videoData.Z)!=null&&E.isLive){var q=V.playerType===2?V:m,M=m.videoData.videoId,f=V.videoData.videoId;if(M&&f){E=this.Jj;if(C==null?0:C.gN){if(E.qoe){M=E.qoe;f=C.gN;M.reportStats();var x=M.provider.videoData.clientPlaybackNonce,R=M.provider.videoData.videoId||"",A,K=((A=M.n5)==null?void 0:A.join("."))||x,X;A=((X=M.WN)==null?void 0:X.join("."))||R;aF(M,y?4:w?2:0,f.vM.join(".")||x,f.U4.join(".")||R,h);M.reportStats();M.n5=f.vM;M.WN=f.U4;M.Im=f.adFormats; M.Xu=f.serializedQoeContextData;aF(M,y?5:w?3:1,K,A,O);M.reportStats()}}else if(E.qoe){X=E.qoe;A=m.cpn;x=V.cpn;R=q.videoData.W6;var c=X.provider.videoData.clientPlaybackNonce,r=X.provider.videoData.videoId;K=x!==c&&f!==r;c=A!==c&&M!==r;X.reportStats();X.adCpn&&X.adCpn!==A||(X.adCpn=c?A:"",X.Ss=c?M:"",X.adFormat=c?R:void 0,aF(X,y?4:w?2:0,x,f,h),X.reportStats(),X.adCpn=K?x:"",X.Ss=K?f:"",X.adFormat=K?R:void 0,aF(X,y?5:w?3:1,A,M,O),X.reportStats())}if(C==null?0:C.aZ){var N=C.aZ;if((h=E.Z)!=null){q=h.Z.K; var n=h.provider.W.wu().Z.lH(R5W)||4E3;q>n&&xP(h)}var F;(F=E.Z)!=null&&qt(F.Z);(h=E.Z)!=null&&(h=h.Z,F=N.serializedStitchedClipLoggingMetadata,h.serializedPlaybackPingContextLoggingData=N.serializedPlaybackPingContextLoggingData,h.serializedStitchedClipLoggingMetadata=F);var z;(z=E.Z)!=null&&qt(z.Z);var V$;(V$=E.Z)==null||xP(V$);(E=E.Z)!=null&&(E.J=0)}else z=m.cpn,E.D.has(z)?(V$=E.D.get(z),Ab(V$,!0).send(),oJ(V$),z!==E.provider.videoData.clientPlaybackNonce&&(oz5(V$),(n=E.Z)==null||xP(n),E.D.delete(z))): (E.LC=E.provider.videoData.clientPlaybackNonce,E.LC&&E.Z&&(E.D.set(E.LC,E.Z),Ab(E.Z).send(),oJ(E.Z))),z=V.cpn,V$=q.videoData,h-=this.G7(),E.D.has(z)?(N=E.D.get(z),V$=N.D&&isNaN(N.K)?RJ(N):NaN,N=Mwa(N,!1),isNaN(V$)||(N.J=V$),N.send()):(V$=Tap(E,E.provider,V$,h),E.D.set(z,V$),gz5(V$,new g.q6(Hm(new g.KS,8),new g.KS)),V$.iz(),(N=E.Z)==null||oJ(N)),E.LC=z;if(this.Y("html5_unify_csi_server_stitched_transition_logging")){if(E=this.vD,V$=m.cpn,m=V.cpn,N=this.videoData.clientPlaybackNonce,z=V.videoData,V= (0,g.TN)(),V$=(V$===N?"video":"ad")+"_to_"+(m===N?"video":"ad"),V$!=="video_to_ad"){N=V$==="ad_to_video"?void 0:z;h=N==null?void 0:N.wZ;F={};if(z==null?0:z.N)F.cttAuthInfo={token:z.N,videoId:z.videoId};L&&(F.startTime=L);cy(V$,F);var O3,hI,jG;L={targetVideoId:(O3=z==null?void 0:z.videoId)!=null?O3:"empty_video",targetCpn:m,adVideoId:(hI=N==null?void 0:N.videoId)!=null?hI:"empty_video",adClientPlaybackNonce:(jG=h==null?void 0:h.cpn)!=null?jG:N==null?void 0:N.clientPlaybackNonce};h&&(L.adBreakType= h.adBreakType,L.adType=h.adType);g.r5(L,V$);Ey(E,V,V$)}}else O3=this.vD,E=this.videoData.clientPlaybackNonce,hI=(0,g.TN)(),jG=V.videoData,m=(m.cpn===E?"video":"ad")+"_to_"+(V.cpn===E?"video":"ad"),E={},jG.N&&(E.cttAuthInfo={token:jG.N,videoId:jG.videoId}),L&&(E.startTime=L),cy(m,E),g.r5({targetVideoId:jG.videoId,targetCpn:V.cpn,isSsdai:!0},m),L||Ey(O3,hI,m)}}else g.T$(this.logger,360717806,"SSTEvent for nonSS")}; g.U.xM=function(){var m=this.kf,V=m.gP;m.gP=[];return V}; g.U.qG=function(m){this.videoData.HS=!0;this.L6(new g.jc("sabr.fallback",m));this.Jn(!0)}; g.U.qE=function(m,V){this.videoData.E0=!0;if(V===void 0||V)this.L6(new g.jc("qoe.restart",m)),this.Jn(!0)}; g.U.eN=function(m){this.uH("sdai",{aftimeout:m});this.L6(new g.jc("ad.fetchtimeout",{timeout:m}))}; g.U.XB=function(m,V){this.uH("timelineerror",m);m=new g.jc("dai.timelineerror",m);V?this.x5("dai.timelineerror",1,"RETRYABLE_ERROR",yK(m.details)):this.L6(m)}; g.U.Zw=function(){return g.IF(this.Jj.provider)}; g.U.getPlayerSize=function(){return this.Bx.getPlayerSize()}; g.U.dM=function(){return this.Bx.dM()}; g.U.Pj=function(){return this.vD}; g.U.Fd=function(){return this.kf.Fd()}; g.U.getVolume=function(){return this.kf.getVolume()}; g.U.WM=function(){return this.kf.WM()}; g.U.isMuted=function(){return this.kf.isMuted()}; g.U.Xp=function(){return this.kf.Xp()}; g.U.mZ=function(){this.q_=!0}; g.U.Y=function(m){return this.W.Y(m)}; g.U.wu=function(){return this.W.wu()}; g.U.rh=function(m,V,O,h,w){this.uH("xvt",{m:m,g:V?1:0,tt:O?1:0,np:h?1:0,c:w})}; g.U.Vn=function(){var m;(m=this.loader)==null||m.resume()}; g.U.Fl=function(){return g.vH(this.DX,"ad")}; g.U.FK=function(){var m=this.getCurrentTime(),V=m-this.OU();var O=this.mediaElement?Ot(this.mediaElement.EZ()):0;O=Math.floor(Math.max(O-V,0))+100;var h;return((h=this.loader)==null?0:h.FK(V,O))?(this.uH("sdai",{skipad:1,ct:V.toFixed(3),adj:O.toFixed(3)}),SC(this.videoData)&&this.loader.seek(V+O,{seekSource:89,Jq:"videoplayer_skipServerStitchedAd"}),dj7(this.K4,m),!0):!1}; g.U.tj=function(){return this.W.tj()}; g.U.gQ=function(){if(this.Y("html5_generate_content_po_token"))return this.videoData.ZT||"";this.kf.Ea();return this.W.WW||""}; g.U.zl=function(){if(this.videoData.videoId)return this.videoData.R4}; g.U.HW=function(){return this.videoData.videoId}; g.U.V9=function(){return this.kf.ol}; g.U.kz=function(){return this.IW}; g.U.ra=function(){return this.kf.ra()}; g.U.UV=function(m,V,O){this.Aq(Hm(this.playerState,16,O));this.K4.UV(m,V,O)}; g.U.prefetchKeyPlay=function(m,V){var O;(O=this.loader)==null||O.prefetchKeyPlay(m,V)}; g.U.i5=function(m){return this.K4.i5(m)}; g.U.k7=function(){this.K4.k7()}; g.U.A9=function(m,V){var O=this.Y("html5_generate_content_po_token")?this.videoData:void 0;this.kf.A9(m,V,O)}; g.U.DS=function(m,V){this.Jj.DS(m,V)}; g.U.BC=function(){return this.Jj.BC()}; g.U.DM=function(){return this.kf.DM()}; g.U.qI=function(){return this.kf.qI(this)}; g.U.Vw=function(){this.qW=!0}; g.U.mB=function(m){var V;(V=this.loader)==null||V.mB(m)}; g.U.g9=function(m){this.K4.g9(m)}; var VSa={primary:"Primary",secondary:"Secondary"};g.t(TT7,Jj);g.t(wh,RE);wh.prototype.Z=function(m){m&&oE(this,this.U.getLoopVideo());this.U.logVisibility(this.element,m)}; wh.prototype.logClick=function(){this.U.logClick(this.element)}; wh.prototype.onLoopChange=function(m){oE(this,m)}; wh.prototype.L=function(m){this.U.setLoopVideo(m)};g.t($FU,Jj);g.t(Yp3,Jj);g.U=Yp3.prototype;g.U.seekToChapterWithAnimation=function(m){var V=this;if(g.Hz(this.api)&&!(m<0)){var O=this.api.getVideoData(),h=O.ma;if(h&&m=0)return;V=~V;g.q5(this.items,V,0,m);Ny(this.menuItems.element,m.element,V)}m.subscribe("size-change",this.BH,this);this.menuItems.publish("size-change")}; g.U.AI=function(){jJX(this)||this.items[0].focus();return!0}; g.U.cX=function(){this.items[this.items.length-1].focus();return!0}; g.U.TB=function(m){m.unsubscribe("size-change",this.BH,this);this.UH()||(g.Om(this.items,m),this.menuItems.element.removeChild(m.element),this.menuItems.publish("size-change"))}; g.U.BH=function(){this.menuItems.publish("size-change")}; g.U.focus=function(){for(var m=0,V=0;V1&&g.Kf(this)}; g.U.dj=function(){EPC(this);this.cD&&(Jbp(this),g.Rr(this.element,this.size))}; g.U.IK=function(){var m=this.Z.pop();Cnm(this,m,this.Z[this.Z.length-1],!0)}; g.U.sJ=function(m){if(!m.defaultPrevented)switch(m.keyCode){case 27:this.EU();m.preventDefault();break;case 37:this.Z.length>1&&this.IK();m.preventDefault();break;case 39:m.preventDefault()}}; g.U.focus=function(){this.Z.length&&this.Z[this.Z.length-1].focus()}; g.U.d0=function(){g.Pz.prototype.d0.call(this);this.D&&this.D.dispose();this.T&&this.T.dispose()};g.t(Ww,g.dh);Ww.prototype.open=function(m,V){this.initialize(m.items)&&this.OI(V,!!V)}; Ww.prototype.initialize=function(m){g.U$(this.We);if(m===void 0||m.length===0)return!1;var V=m.length;m=g.D(m);for(var O=m.next();!O.done;O=m.next())this.SU(O.value,V--);return!0}; Ww.prototype.SU=function(m,V){m.menuNavigationItemRenderer?fxa(this,m.menuNavigationItemRenderer,V):m.menuServiceItemRenderer&&xt5(this,m.menuServiceItemRenderer,V)};g.t(XD,oL);g.U=XD.prototype;g.U.Wk=function(m){m.target!==this.dismissButton.element&&m.target!==this.overflowButton.element&&(this.kx(),this.onClickCommand&&this.U.bH("innertubeCommand",this.onClickCommand))}; g.U.sX=function(){this.enabled=!1;this.V.hide()}; g.U.IQ=function(){return!!this.Z&&this.enabled}; g.U.onVideoDataChange=function(m,V){this.S8(V);if(this.Z){this.hw();a:if(!this.isCounterfactual){var O,h,w;this.banner.update({title:(O=this.Z)==null?void 0:O.title,subtitle:(h=this.Z)==null?void 0:h.subtitle,metadata:(w=this.Z)==null?void 0:w.metadataText});var y;this.onClickCommand=g.d((y=this.Z)==null?void 0:y.onTap,Nb);var L;if(m=g.d((L=this.Z)==null?void 0:L.onOverflow,Nb))this.N=g.d(m,qJI);var C;if((C=this.Z)==null?0:C.thumbnailImage){var E,q;L=((E=this.Z)==null?void 0:(q=E.thumbnailImage)== null?void 0:q.sources)||[];if(L.length===0)break a;this.thumbnailImage.update({url:L[0].url})}else{var M;if((M=this.Z)==null?0:M.thumbnailIconName){var f;this.thumbnailIcon.update({icon:(f=this.Z)==null?void 0:f.thumbnailIconName})}}var x;this.shouldShowOverflowButton=!((x=this.Z)==null||!x.shouldShowOverflowButton);var R;this.shouldHideDismissButton=!((R=this.Z)==null||!R.shouldHideDismissButton)}var A;this.banner.element.setAttribute("aria-label",((A=this.Z)==null?void 0:A.a11yLabel)||"");var K; this.Je=(K=this.Z)==null?void 0:K.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;oP$(this)}}; g.U.Vbr=function(){this.isVisible=!0;oP$(this)}; g.U.SI6=function(){this.isVisible=!1;oP$(this)}; g.U.Tk=function(){oL.prototype.Tk.call(this);this.D&&this.U.logVisibility(this.banner.element,this.isVisible)}; g.U.kx=function(){oL.prototype.kx.call(this,!1);this.D&&this.U.logClick(this.banner.element)}; g.U.DK=function(m){this.K||(this.K=new Ww(this.U),g.a(this,this.K));var V,O;if((V=this.N)==null?0:(O=V.menu)==null?0:O.menuRenderer)this.K.open(this.N.menu.menuRenderer,m.target),m.preventDefault()}; g.U.S8=function(){}; g.U.hw=function(){}; g.U.d0=function(){this.U.FJ("suggested_action_view_model");oL.prototype.d0.call(this)};g.t(Hw,XD); Hw.prototype.S8=function(m){var V,O,h;this.productUpsellSuggestedActionViewModel=g.d((V=m.getWatchNextResponse())==null?void 0:(O=V.playerOverlays)==null?void 0:(h=O.playerOverlayRenderer)==null?void 0:h.suggestedActionViewModel,XHJ);var w;if((w=this.productUpsellSuggestedActionViewModel)==null?0:w.content){var y;this.Z=g.d((y=this.productUpsellSuggestedActionViewModel)==null?void 0:y.content,JGz)}var L,C;if(this.D=!!((L=this.productUpsellSuggestedActionViewModel)==null?0:(C=L.loggingDirectives)==null? 0:C.trackingParams)){var E,q;this.U.setTrackingParams(this.banner.element,((E=this.productUpsellSuggestedActionViewModel)==null?void 0:(q=E.loggingDirectives)==null?void 0:q.trackingParams)||null)}var M;this.isCounterfactual=!((M=this.productUpsellSuggestedActionViewModel)==null||!M.isCounterfactualServing)}; Hw.prototype.hw=function(){var m=[],V,O=g.D(((V=this.productUpsellSuggestedActionViewModel)==null?void 0:V.ranges)||[]);for(V=O.next();!V.done;V=O.next()){var h=V.value;h&&(V=Number(h.startTimeMilliseconds),h=Number(h.endTimeMilliseconds),isNaN(V)||isNaN(h)||m.push(new g.a2(V,h,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.U.SK(m)};g.t(gPp,Jj);g.t(TL,Jj);TL.prototype.onVideoDataChange=function(m,V){var O=this;if(!hF(V)&&(m==="newdata"&&dt1(this),this.Z&&m==="dataloaded")){this.Z=!1;var h;wC(hr(dK(this.api.j(),(h=this.api.getVideoData())==null?void 0:g.Vj(h)),function(w){TQ5(O,w)}),function(){O.Z=!0})}}; TL.prototype.uN=function(){var m=this;if(g.g2(this.api.j())){var V,O=g.Uh(this.api.j(),(V=this.api.getVideoData())==null?void 0:g.Vj(V));return hr(PO(O),function(h){var w=lb();Qj(w,h);return m.api.uN(w)})}return PO(this.api.uN())};g.t(g.$D,g.wd);g.U=g.$D.prototype;g.U.open=function(){g.tw(this.Qp,this.PB)}; g.U.St=function(m){Yr7(this);var V=this.options[m];V&&(V.element.setAttribute("aria-checked","true"),this.setContent(this.fq(m)),this.D=m)}; g.U.Wt=function(m){g.U$(this.PB);for(var V={},O=!1,h=0;h=0?this.Z.playbackRate:1}catch(m){return 1}}; g.U.setPlaybackRate=function(m){this.getPlaybackRate()!==m&&(this.Z.playbackRate=m);return m}; g.U.Q8=function(){return this.Z.loop}; g.U.setLoop=function(m){this.Z.loop=m}; g.U.canPlayType=function(m,V){return this.Z.canPlayType(m,V)}; g.U.isPaused=function(){return this.Z.paused}; g.U.isSeeking=function(){return this.Z.seeking}; g.U.isEnded=function(){return this.Z.ended}; g.U.C$=function(){return this.Z.muted}; g.U.fE=function(m){xH();this.Z.muted=m}; g.U.CT=function(){return this.Z.played||QK([],[])}; g.U.EZ=function(){try{var m=this.Z.buffered}catch(V){}return m||QK([],[])}; g.U.BM=function(){return this.Z.seekable||QK([],[])}; g.U.pK=function(){var m=this.Z;return m.getStartDate?m.getStartDate():null}; g.U.getCurrentTime=function(){return this.Z.currentTime}; g.U.setCurrentTime=function(m){this.Z.currentTime=m}; g.U.getDuration=function(){return this.Z.duration}; g.U.load=function(){var m=this.Z.playbackRate;try{this.Z.load()}catch(V){}this.Z.playbackRate=m}; g.U.pause=function(){this.Z.pause()}; g.U.play=function(){var m=this.Z.play();if(!m||!m.then)return null;m.then(void 0,function(){}); return m}; g.U.f_=function(){return this.Z.readyState}; g.U.B3=function(){return this.Z.networkState}; g.U.aJ=function(){return this.Z.error?this.Z.error.code:null}; g.U.Kf=function(){return this.Z.error?this.Z.error.message:""}; g.U.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.Z instanceof window.HTMLVideoElement&&this.Z.getVideoPlaybackQuality)return this.Z.getVideoPlaybackQuality();if(this.Z){var m=this.Z,V=m.webkitDroppedFrameCount;if(m=m.webkitDecodedFrameCount)return{droppedVideoFrames:V||0,totalVideoFrames:m}}return{}}; g.U.rH=function(){return!!this.Z.webkitCurrentPlaybackTargetIsWireless}; g.U.Ei=function(){return!!this.Z.webkitShowPlaybackTargetPicker()}; g.U.togglePictureInPicture=function(){var m=this.Z,V=window.document;window.document.pictureInPictureEnabled?this.Z!==V.pictureInPictureElement?m.requestPictureInPicture():V.exitPictureInPicture():f$()&&m.webkitSetPresentationMode(m.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.U.Er=function(){return M5m(this.Z)}; g.U.getSize=function(){return g.or(this.Z)}; g.U.setSize=function(m){g.Rr(this.Z,m)}; g.U.getVolume=function(){return this.Z.volume}; g.U.setVolume=function(m){xH();this.Z.volume=m}; g.U.Av=function(m){this.L[m]||(this.Z.addEventListener(m,this.listener),this.L[m]=this.listener)}; g.U.setAttribute=function(m,V){this.Z.setAttribute(m,V)}; g.U.removeAttribute=function(m){this.Z.removeAttribute(m)}; g.U.hasAttribute=function(m){return this.Z.hasAttribute(m)}; g.U.WA=eG(53);g.U.DL=eG(56);g.U.Ie=eG(59);g.U.HC=eG(62);g.U.f$=function(){return HZ(this.Z)}; g.U.u1=function(m){g.EM(this.Z,m)}; g.U.lm=function(m){return g.jL(this.Z,m)}; g.U.LF=function(){return g.nK(document.body,this.Z)}; g.U.audioTracks=function(){var m=this.Z;if("audioTracks"in m)return m.audioTracks}; g.U.d0=function(){for(var m=g.D(Object.keys(this.L)),V=m.next();!V.done;V=m.next())V=V.value,this.Z.removeEventListener(V,this.L[V]);dG.prototype.d0.call(this)}; g.U.Hy=function(m){this.Z.disableRemotePlayback=m};g.t(uW,g.p);g.t(Z8,g.p);Z8.prototype.show=function(){g.p.prototype.show.call(this);this.oY()}; Z8.prototype.hide=function(){g.p.prototype.hide.call(this);this.delay.stop();this.T.stop()}; Z8.prototype.oY=function(){var m=(0,g.TN)(),V=sJa(this.kN);zL(this.Z,V.bandwidth_samples);zL(this.N,V.network_activity_samples);zL(this.D,V.live_latency_samples);zL(this.L,V.buffer_health_samples);var O={};V=g.D(Object.entries(V));for(var h=V.next();!h.done;h=V.next()){var w=g.D(h.value);h=w.next().value;w=w.next().value;this.J[h]!==w&&(O[h]=" "+String(w));this.J[h]=w}this.update(O);m=(0,g.TN)()-m>25?5E3:500;this.delay.start(m)}; Z8.prototype.V=function(){this.K?(this.position+=1,this.position>15&&(this.K=!1)):(--this.position,this.position<=0&&(this.K=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.T.start(2E4)};g.t(ilI,Jj);g.t(s$,g.Z);s$.prototype.Z=function(){var m=(0,g.TN)()-this.startTime;m=mthis.T[m])&&(this.Z=m,this.L2())}; g.U.onCueRangeExit=function(m){var V=yw0(this,m);V&&this.Z===m&&this.api.bH("innertubeCommand",V);iW(this);this.Z=void 0}; g.U.DD=function(m){this.D=m}; g.U.Zo=function(){this.L2();this.D=void 0}; g.U.L2=function(){if(this.Z!==void 0){var m=(m=aL(this,this.Z))&&m.onCueRangeEnter?nD(m.onCueRangeEnter):void 0;var V=aL(this,this.Z);a:if(V&&V.additionalTrigger){var O=g.D(V.additionalTrigger);for(var h=O.next();!h.done;h=O.next())if(h=h.value,h.type){var w=void 0,y=void 0;if((w=this.v6[h.type])==null?0:w((y=h.args)!=null?y:{})){O=!0;break a}}O=!1}else O=!0;m&&O&&(this.api.bH("innertubeCommand",m),jL$(this,V),this.T[this.Z]!==void 0&&this.T[this.Z]++,this.Qt=!0)}}; g.U.d0=function(){this.timelyActions=this.D=this.Z=this.videoId=void 0;this.T={};this.Qe();iW(this);Jj.prototype.d0.call(this)};g.t(CWI,Jj);g.t(GL,RE);GL.prototype.T=function(m){this.D(m?2:1)}; GL.prototype.t6=function(){var m=this.U.getPresentingPlayerType();m===2||m===3?this.Z&&(this.Z=!1,this.Qp.TB(this)):(m=this.getVoiceBoostState(),m!==1?(m===0?(oE(this,this.L()===2),this.setEnabled(!0)):(oE(this,!1),this.setEnabled(!1)),this.Z||(this.Qp.SU(this),this.Z=!0)):this.Z&&(this.Qp.TB(this),this.Z=!1))}; GL.prototype.d0=function(){this.Qp.TB(this);RE.prototype.d0.call(this)};g.t(pf,Jj);pf.prototype.getVoiceBoostUserPreference=function(){return this.Z}; pf.prototype.setVoiceBoostUserPreference=function(m){this.api.uH("vb_set",{pref:m});g.I$("yt-player-voice-boost",m);m!==this.Z&&(this.Z=m,this.updateEnvironmentData(),this.getVoiceBoostState()!==1&&this.api.Qo(),this.api.Dk())}; pf.prototype.getVoiceBoostState=function(){return this.api.Ld(1)}; pf.prototype.updateEnvironmentData=function(){this.api.j().Zc=this.Z};g.t(lW,Jj);lW.prototype.d0=function(){this.V&&(g.XM(this.V),this.V=void 0);Jj.prototype.d0.call(this)}; lW.prototype.Ea=function(){(this.L?!this.Z:this.D)&&Pw(this)}; lW.prototype.gM=function(m,V,O){var h=this;if(M9l(m)){var w=O||"";if(this.Z)V=m1(this,w),f8C(m,V);else{var y=new g.R4;V.push(y.promise);this.K.promise.then(function(){var L=m1(h,w);f8C(m,L);y.resolve()})}}}; lW.prototype.GO=function(m){var V=this;if(this.L||this.D)m.ZT=m1(this,m.videoId),this.Z||(this.T=new Ut,this.K.promise.then(function(){V.vD.Rc("pot_if");m.ZT=m1(V,m.videoId)}))};g.t(V2,g.p);g.U=V2.prototype;g.U.nI=function(){var m=this.U.getVideoData(1),V,O,h=(O=((m==null?0:(V=m.suggestions)==null?0:V.length)?m.suggestions:(m==null?0:g.R5(m))?[g.R5(m)]:[])[0])==null?void 0:O.MV("mqdefault.jpg");this.L&&h&&g.wb(this.L,"background-image",h?'url("'+h+'")':"")}; g.U.onClick=function(){this.U.logClick(this.element)}; g.U.Mq=function(m){this.eU([1,2].includes(m));XwG(this,m)}; g.U.eU=function(m){g.p.prototype.eU.call(this,m);this.element.setAttribute("aria-hidden",String(!m));m&&this.nI()}; g.U.d0=function(){g.p.prototype.d0.call(this)};g.t(g.h_,g.p);g.h_.prototype.select=function(){this.api.Nb(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.E2||void 0)&&this.api.logClick(this.element)}; g.h_.prototype.onClick=function(m){if(g.sY(this.api.j())&&this.api.Y("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var V=this.suggestion.rd(),O={};g.sc(this.api,O);V=g.N_(V,O);g.Aj(V,this.api,m)}else g.gd(m,this.api,this.L,this.suggestion.sessionData||void 0)&&this.select()}; g.h_.prototype.onKeyPress=function(m){switch(m.keyCode){case 13:case 32:m.defaultPrevented||(this.select(),m.preventDefault())}}; g.h_.prototype.onVideoDataChange=function(){var m=this.api.getVideoData(),V=this.api.j();this.L=m.Sb?!1:V.T};g.t(ThI,g.p);g.U=ThI.prototype;g.U.d0=function(){this.hide();g.np(this.J);g.Uk(this.stills);this.stills.length=0;this.D&&(this.D.remove(),this.D=void 0);this.Z&&(this.Z.remove(),this.Z=void 0);this.L&&(this.L.remove(),this.L=void 0);g.p.prototype.d0.call(this)}; g.U.setCommentsButton=function(m){m!==this.Z&&(this.Z&&this.Z.remove(),this.Z=m)&&(g.EM(this.Z,"ytp-fullscreen-grid-action-button"),this.V.appendChild(this.Z))}; g.U.setDescriptionButton=function(m){m!==this.L&&(this.L&&this.L.remove(),this.L=m)&&(g.EM(this.L,"ytp-fullscreen-grid-action-button"),Ny(this.V,this.L,0))}; g.U.On=function(m){this.mS&&this.mS(m)}; g.U.onVideoDataChange=function(){if(!this.Ae){this.videoData=this.player.getVideoData(1);var m,V,O,h,w;var y=(((m=this.videoData)==null?0:(V=m.suggestions)==null?0:V.length)?(O=this.videoData)==null?void 0:O.suggestions:((h=this.videoData)==null?0:g.R5(h))?[(w=this.videoData)==null?void 0:g.R5(w)]:[]).slice(0,18);if((m=this.Zu)&&this.T)if(g.cI(m),y.length)for(this.stills.length>y.length&&g.Uk(this.stills.splice(y.length)),this.stills.length=y.length,V=0;V=0;m--)this.features[m].dispose();this.features.length=0;g.Z.prototype.d0.call(this)};nD$.prototype.reset=function(){this.Z=this.L=NaN};g.U=S$a.prototype;g.U.reset=function(){TM(this.timerName)}; g.U.tick=function(m,V){ko(m,V,this.timerName)}; g.U.Rc=function(m){return Ng(m,void 0,this.timerName)}; g.U.Xw=function(m){g.nS(m,void 0,this.timerName)}; g.U.infoGel=function(m){g.r5(m,this.timerName)};g.t(uDp,g.yh);g.U=uDp.prototype;g.U.hasNext=function(m){return this.loop||!!m||this.index+1=0}; g.U.setShuffle=function(m){this.shuffle=m;m=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var V=0;V=V.top&&m.right<=V.right&&m.bottom<=V.bottom&&m.left>=V.left))return}c_(this,2,!1)}; g.U.zU=function(m){var V=new g.yS(m.pageX,m.pageY);jn(V,this.T)||(this.T=V,(m=m.target)&&this.n3(m)&&(c_(this,4,!0),this.Z.yu(this.D),this.D=this.Z.C(this.target,"mouseover",this.Wr),this.J=this.Z.C(this.target,"mouseout",this.Wr)))}; g.U.Wr=function(m){m=m.relatedTarget;m&&this.n3(m)||(this.T=new g.yS(NaN,NaN),X_0(this))}; g.U.iPS=function(){c_(this,1,!0)}; g.U.Fz=function(m){m=m.target;m instanceof Element&&!(m.tabIndex>0)||c_(this,1,!0)}; g.U.dw=function(){this.N=!0;this.Z.yu(this.K);this.K=this.Z.C(document,"mouseup",this.iZ)}; g.U.iZ=function(){this.N=!1;c_(this,8,!1);this.Z.yu(this.K);this.K=this.Z.C(this.target,"mousedown",this.dw)}; g.U.mf=function(m){if(m=(m=m.changedTouches)&&m[0])this.v6=m.identifier,this.Z.yu(this.V),this.V=this.Z.C(this.target,"touchend",this.g6,void 0,!0),c_(this,1024,!0)}; g.U.g6=function(m){if(m=m.changedTouches)for(var V=0;V1280||w>720)if(V=h.MV("maxresdefault.jpg"))break;if(y>640||w>480)if(V=h.MV("maxresdefault.jpg"))break;if(y>320||w>180)if(V=h.MV("sddefault.jpg")||h.MV("hqdefault.jpg")||h.MV("mqdefault.jpg"))break;if(V=h.MV("default.jpg"))break}g.fI(m)&&(m=new Image,m.addEventListener("load", function(){se1()}),m.src=V?V:"",this.api.Pj().tick("ftr")); this.T.style.backgroundImage=V?"url("+V+")":""};g.t(g.Sf,g.p);g.Sf.prototype.resize=function(){}; g.Sf.prototype.L=function(m){var V=this;this.D=!1;$8p(this);var O=m.kM,h=this.api.j();O!=="GENERIC_WITHOUT_LINK"||h.N?O==="TOO_MANY_REQUESTS"?(h=this.api.getVideoData(),this.setContent(uT(this,"TOO_MANY_REQUESTS_WITH_LINK",h.rd(),void 0,void 0,void 0,!1))):O!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||h.N?this.api.j().Y("html5_enable_bandaid_error_screen")&&O==="HTML5_SPS_UMP_STATUS_REJECTED"&&!h.N?(h=h.hostLanguage,m="//support.google.com/youtube?p=videoError",h&&(m=g.N_(m,{hl:h})),this.setContent(uT(this, "HTML5_SPS_UMP_STATUS_REJECTED",m))):this.api.j().Y("enable_adb_handling_in_sabr")&&O==="BROWSER_OR_EXTENSION_ERROR"&&!h.N?(h=h.hostLanguage,m="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",h&&(m=g.N_(m,{hl:h})),this.setContent(uT(this,"BROWSER_OR_EXTENSION_ERROR",m))):this.setContent(g.IZ(m.errorMessage)):this.setContent(uT(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(m=h.hostLanguage,O= "//support.google.com/youtube/?p=player_error1",m&&(O=g.N_(O,{hl:m})),this.setContent(uT(this,"GENERIC_WITH_LINK_AND_CPN",O,!0)),h.kD&&!h.T&&TJl(this,function(y){if(g.gd(y,V.api,!LI(V.api.j()))){y={as3:!1,html5:!0,player:!0,cpn:V.api.getVideoData().clientPlaybackNonce};var L=V.api;L.dB("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:y});L.isFullscreen()&&L.toggleFullscreen()}})); if(this.D){var w=this.LA("ytp-error-link");w&&(this.api.createClientVe(w,this,216104),this.api.logVisibility(w,!0),TJl(this,function(){V.api.logClick(w)}))}}; var HzI=/([^<>]+)<\/a>/;g.t(Yym,g.p);Yym.prototype.YZ=function(m,V,O){O=O===void 0?!1:O;switch(V){case 1:zR(this,m,this.D,O);break;case 2:zR(this,m,this.T,O);break;case 3:zR(this,m,this.Z,O);break;case 4:zR(this,m,this.L,O)}};g.t(kR0,g.p);g.U=kR0.prototype;g.U.onClick=function(m){this.innertubeCommand?(this.U.bH("innertubeCommand",this.innertubeCommand),m.preventDefault()):g.gd(m,this.U,!0);this.U.logClick(this.element)}; g.U.onVideoDataChange=function(m,V){c_X(this,V);this.Ol&&D8U(this,this.Ol)}; g.U.vg=function(m){var V=this.U.getVideoData();this.videoId!==V.videoId&&c_X(this,V);this.Z&&D8U(this,m.state);this.Ol=m.state}; g.U.OI=function(){this.fade.show();this.U.publish("paidcontentoverlayvisibilitychange",!0);this.U.logVisibility(this.element,!0)}; g.U.EU=function(){this.fade.hide();this.U.publish("paidcontentoverlayvisibilitychange",!1);this.U.logVisibility(this.element,!1)};g.t(Z3,g.p);Z3.prototype.hide=function(){this.Z.stop();this.message.style.display="none";g.p.prototype.hide.call(this)}; Z3.prototype.onStateChange=function(m){this.Mq(m.state)}; Z3.prototype.Mq=function(m){if(g.l(m,128)||this.api.kz())var V=!1;else{var O;V=this.api.Y("web_watch_enable_multiview_manager")&&((O=this.api.getVideoData())==null?0:hF(O))?!1:g.l(m,16)||g.l(m,1)?!0:!1}V?this.Z.start():this.hide()}; Z3.prototype.L=function(){this.message.style.display="block"};g.t(sy,g.Pz);sy.prototype.onMutedAutoplayChange=function(m){this.L&&(m?(NJI(this),this.OI()):(this.Z&&this.logClick(),this.EU()))}; sy.prototype.Lq=function(m){this.api.isMutedByMutedAutoplay()&&g.fX(m,2)&&this.EU()}; sy.prototype.onClick=function(){this.api.unMute();this.logClick()}; sy.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.t(g.Fl,g.Rc);g.U=g.Fl.prototype;g.U.init=function(){var m=this.api,V=m.getPlayerStateObject();this.aC=m.getPlayerSize();this.Aq(V);this.bz();this.Vp();this.api.publish("basechromeinitialized",this);this.Ff()&&this.api.publish("standardControlsInitialized")}; g.U.onVideoDataChange=function(m,V){var O=this.Uc!==V.videoId;if(O||m==="newdata")m=this.api,m.isFullscreen()||(this.aC=m.getPlayerSize());O&&(this.Uc=V.videoId,O=this.Ny,O.iH=3E3,c_(O,512,!0),this.bz());this.api.Y("web_render_jump_buttons")&&V.showSeekingControls&&(this.Iq=572)}; g.U.MKt=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.U.pk=function(){var m=this.api.i4()&&this.api.UQ(),V=this.api.jC();return this.Ry||m||this.S5||V}; g.U.fS=function(){var m=!this.pk();g.xN(this.api.getRootNode(),"ytp-menu-shown",!m)}; g.U.n3=function(m){try{if(!g.nK(this.api.getRootNode(),m))return!1}catch(V){return!1}for(;m&&!Ix(m);)m=m===this.api.getRootNode()?null:m.parentElement||null;return!!m}; g.U.ZR=function(m){var V=this.api.getRootNode();g.xN(V,"ytp-autohide",m);g.xN(V,"ytp-autohide-active",!0);this.eE.start(m?250:100);m&&(this.Np=!1,g.Ma(V,"ytp-touch-mode"));this.QK=!m;this.api.cL(!m);this.api.Y("web_player_enable_fullscreen_grid_components")&&this.api.publish("autohideupdate",m)}; g.U.q4=function(){var m=this.api.getRootNode();g.xN(m,"ytp-autohide-active",!1)}; g.U.XWt=function(){this.z$=!0}; g.U.e7e=function(m){if(this.api.j().Y("player_doubletap_to_seek")||this.api.j().J)this.z$=!1,this.T$&&this.yu(this.T$),this.S2===0&&aZ(this,m)?(this.Wn(),this.EC.start(),this.T$=this.C(this.api.xN(),"touchmove",this.XWt,void 0,!0)):this.EC.stop();I37(this)&&aZ(this,m)&&!this.api.j().J&&nYC(this);var V=this.Ku.FQ();if(!g.sY(this.api.j())&&ed&&eq1(this,m))V&&m.preventDefault();else if(this.Np=!0,g.EM(this.api.getRootNode(),"ytp-touch-mode"),this.Ny.XV(),this.api.j().Y("player_doubletap_to_seek")||this.api.j().J)if(V= this.api.getPlayerStateObject(),!(!this.api.Cr()||g.l(V,2)&&g.e3(this.api)||g.l(V,64))){V=Date.now()-this.nJ;this.S2+=1;if(V<=350){this.Vz=!0;V=this.api.getPlayerSize().width/3;var O=this.api.getRootNode().getBoundingClientRect(),h=m.targetTouches[0].clientX-O.left;O=m.targetTouches[0].clientY-O.top;var w=(this.S2-1)*10;h>0&&hV*2&&h=650,h=m.width<528;this.Ny.resize();if(this.api.Y("web_player_use_screen_width_for_big_mode")){var w,y=m.width>=((w=g.m9(this.api.j().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?w:2E3);g.xN(V,"ytp-big-mode",y)}g.xN(V,"ytp-fullscreen",this.api.isFullscreen());g.xN(V,"ytp-large-width-mode",O);this.api.Y("delhi_modern_web_player")?g.xN(V,"ytp-xsmall-width-mode",h):g.xN(V,"ytp-small-mode",this.B2()); g.xN(V,"ytp-tiny-mode",this.VB());g.xN(V,"ytp-big-mode",this.GM());this.kA&&this.kA.resize(m)}; g.U.Lq=function(m){this.Aq(m.state);this.bz()}; g.U.XF=eG(5);g.U.cn=function(){var m=!!this.Uc&&!this.api.Lf()&&!this.Tw,V=this.api.getPresentingPlayerType()===2,O=this.api.j();if(V)return O=TR(this.api.Gp()),m&&(O&&O.player?m=(m=O.player.getVideoData(2))?m.isListed&&!g.R2(O.player.j()):!1:(ER("showInfoBarDuringAd: this is null"),m=!1)),m;V=O.Y("web_player_imax_theater_mode")&&this.api.OJ()&&!this.api.isInline();return m&&(O.Wl||V||this.api.isFullscreen()||O.zf)}; g.U.bz=function(){var m=this.cn();this.EW!==m&&(this.EW=m,g.xN(this.api.getRootNode(),"ytp-hide-info-bar",!m))}; g.U.Aq=function(m){var V=m.isCued()||this.api.m1()&&this.api.getPresentingPlayerType()!==3;V!==this.isCued&&(this.isCued=V,this.i7&&this.yu(this.i7),this.i7=this.C(this.api.xN(),"touchstart",this.e7e,void 0,V));var O=this.Ny,h=m.isPlaying()&&!g.l(m,32)||this.api.zT();c_(O,128,!h);O=this.Ny;h=this.api.getPresentingPlayerType()===3;c_(O,256,h);O=this.api.getRootNode();g.l(m,2)?h=[GB.ENDED]:(h=[],g.l(m,8)?h.push(GB.PLAYING):g.l(m,4)&&h.push(GB.PAUSED),g.l(m,1)&&!g.l(m,32)&&h.push(GB.BUFFERING),g.l(m, 32)&&h.push(GB.SEEKING),g.l(m,64)&&h.push(GB.UNSTARTED));g.og(this.dX,h)||(g.fY(O,this.dX),this.dX=h,g.qa(O,h));h=this.api.j();var w=g.l(m,2);a:{var y=this.api.j();var L=y.controlsType;switch(L){case "2":case "0":y=!1;break a}y=L==="3"&&!g.l(m,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:xe7(TR(this.api.Gp())))||this.api.jC()||g.sY(y)&&this.api.getPresentingPlayerType()===2?!1:!0}g.xN(O,"ytp-hide-controls",!y);g.xN(O,"ytp-native-controls",h.controlsType==="3"&&!V&&!w&&!this.S5);g.l(m, 128)&&!g.sY(h)?(this.kA||(this.kA=new g.Sf(this.api),g.a(this,this.kA),g.ib(this.api,this.kA.element,4)),this.kA.L(m.MU),this.kA.show()):this.kA&&(this.kA.dispose(),this.kA=null)}; g.U.GE=function(){return this.api.i4()&&this.api.UQ()?(this.api.JF(!1,!1),!0):this.api.Lf()?(g.ub(this.api,!0),!0):!1}; g.U.onMutedAutoplayChange=function(m){this.S5=m;this.fS()}; g.U.GM=function(){return!1}; g.U.B2=function(){return!this.GM()&&(this.api.getPlayerSize().width=0&&V.left>=0&&V.bottom>V.top&&V.right>V.left?V:null;V=this.size;m=m.clone();V=V.clone();h&&(L=V,w=5,(w&65)==65&&(m.x=h.right)&&(w&=-2),(w&132)==132&&(m.y=h.bottom)&&(w&=-5),m.xh.right&&(L.width=Math.min(h.right-m.x,y+L.width-h.left),L.width=Math.max(L.width,0))),m.x+L.width>h.right&&w&1&&(m.x=Math.max(h.right-L.width,h.left)),m.yh.bottom&&(L.height=Math.min(h.bottom-m.y,y+L.height-h.top),L.height=Math.max(L.height,0))),m.y+L.height>h.bottom&&w&4&&(m.y=Math.max(h.bottom-L.height,h.top)));h=new g.V5(0,0,0,0);h.left=m.x;h.top=m.y;h.width= V.width;h.height=V.height;g.qN(this.element,new g.yS(h.left,h.top));g.np(this.L);this.L.C(m2(this),"contextmenu",this.pBH);this.L.C(this.U,"fullscreentoggled",this.onFullscreenToggled);this.L.C(this.U,"pageTransition",this.ym)}; g.U.pBH=function(m){if(!m.defaultPrevented){var V=cZ(m);g.nK(this.element,V)||this.EU();this.U.j().disableNativeContextMenu&&m.preventDefault()}}; g.U.onFullscreenToggled=function(){this.EU();q51(this)}; g.U.ym=function(){this.EU()};g.t(mJ,g.p);mJ.prototype.onClick=function(){var m=this,V,O,h,w;return g.u(function(y){if(y.Z==1)return V=m.api.j(),O=m.api.getVideoData(),h=m.api.getPlaylistId(),w=V.getVideoUrl(O.videoId,h,void 0,!0),g.I(y,xDX(m,w),2);y.L&&f_p(m);m.api.logClick(m.element);g.j$(y)})}; mJ.prototype.oY=function(){this.updateValue("icon",{G:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",Df:!0,X:"ytp-svg-fill",B:{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","Copiar link");this.updateValue("tooltip-title","Copiar link");this.visible=MjX(this); g.xN(this.element,"ytp-copylink-button-visible",this.visible);this.eU(this.visible);this.tooltip.cj();this.api.logVisibility(this.element,this.visible&&this.Qt)}; mJ.prototype.u2=function(m){g.p.prototype.u2.call(this,m);this.api.logVisibility(this.element,this.visible&&m)}; mJ.prototype.d0=function(){g.p.prototype.d0.call(this);g.Ma(this.element,"ytp-copylink-button-visible")};g.t(RlI,g.p);g.U=RlI.prototype;g.U.show=function(){g.p.prototype.show.call(this);g.Vn(this.L)}; g.U.hide=function(){this.T.stop();this.D=0;this.LA("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.Ma(this.element,"ytp-chapter-seek");g.Ma(this.element,"ytp-time-seeking");g.p.prototype.hide.call(this)}; g.U.FF=function(m,V,O,h){this.D=m===this.N?this.D+h:h;this.N=m;var w=m===-1?this.V:this.J;w&&this.U.logClick(w);this.K?this.L.stop():g.hY(this.L);this.T.start();this.element.setAttribute("data-side",m===-1?"back":"forward");var y=3*this.U.xN().getPlayerSize().height;w=this.U.xN().getPlayerSize();w=w.width/3-3*w.height;this.Z.style.width=y+"px";this.Z.style.height=y+"px";m===1?(this.Z.style.left="",this.Z.style.right=w+"px"):m===-1&&(this.Z.style.right="",this.Z.style.left=w+"px");var L=y*2.5;y=L/ 2;var C=this.LA("ytp-doubletap-ripple");C.style.width=L+"px";C.style.height=L+"px";m===1?(m=this.U.xN().getPlayerSize().width-V+Math.abs(w),C.style.left="",C.style.right=m-y+"px"):m===-1&&(m=Math.abs(w)+V,C.style.right="",C.style.left=m-y+"px");C.style.top="calc((33% + "+Math.round(O)+"px) - "+y+"px)";if(O=this.LA("ytp-doubletap-ripple"))O.classList.remove("ytp-doubletap-ripple"),O.classList.add("ytp-doubletap-ripple");o63(this,this.K?this.D:h)}; g.U.ys=function(m,V,O){if(O=O===void 0?null:O){var h=m===-1?this.V.visualElement:this.J.visualElement;O={seekData:O};var w=g.t1();w&&OD(w,h,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",O)}this.D=m===this.N?this.D+V:V;this.N=m;h=this.U.xN().getPlayerSize();this.K?this.L.stop():g.hY(this.L);this.T.start();this.element.setAttribute("data-side",m===-1?"back":"forward");g.EM(this.element,"ytp-time-seeking");this.Z.style.width="110px";this.Z.style.height="110px";O=h.width*.1-15;m===1?this.Zu?(this.Z.style.right= O+"px",this.Z.style.left=""):(this.Z.style.right="",this.Z.style.left=h.width*.8-30+"px"):m===-1&&(this.Zu?(this.Z.style.right="",this.Z.style.left=O+"px"):(this.Z.style.right="",this.Z.style.left=h.width*.1-15+"px"));this.Z.style.top=h.height*.5+15+"px";o63(this,this.K?this.D:V)}; g.U.RL=function(m,V,O){O=O===void 0?null:O;g.hY(this.L);this.T.start();switch(m){case -1:m="back";break;case 1:m="forward";break;default:m=""}this.element.setAttribute("data-side",m);this.Z.style.width="0";this.Z.style.height="0";g.EM(this.element,"ytp-chapter-seek");this.updateValue("seekText",V);this.updateValue("seekTime","");V=this.LA("ytp-seek-icon");if(O){a:if(O){switch(O){case "PREMIUM_STANDALONE":O=LBG();break a;case "PREMIUM_STANDALONE_CAIRO":O=J8$();break a}O=void 0}else O=null;this.updateValue("seekIcon", O);V.style.display="inline-block"}else V.style.display="none"};g.t(AlX,oL);g.U=AlX.prototype;g.U.qj=function(m){this.H6||(this.H6=new Ww(this.U),g.a(this,this.H6));var V,O;if((V=this.LP)==null?0:(O=V.menu)==null?0:O.menuRenderer)this.H6.open(this.LP.menu.menuRenderer,m.target),m.preventDefault()}; g.U.IQ=function(){return!!this.Z}; g.U.Gt=function(){return!!this.Z}; g.U.Wk=function(m){m.target===this.overflowButton.element?m.preventDefault():(this.Rd&&this.U.bH("innertubeCommand",this.Rd),this.kx(!1))}; g.U.sX=function(){this.kx(!0);var m,V;if((m=this.Z)==null?0:(V=m.bannerData)==null?0:V.dismissedStatusKey){if(this.CA.includes(this.Z.bannerData.dismissedStatusKey))return;this.CA.push(this.Z.bannerData.dismissedStatusKey)}this.Se();this.U.Y("web_enable_shopping_timely_shelf_client")&&(m={},g.SJ(m,jAa,{overlayId:"player_overlay_timely_shelf"}),this.U.bH("innertubeCommand",m))}; g.U.Z9=function(){this.Se();hl(this)}; g.U.OCr=function(m){var V=this,O;if(m.id!==((O=this.Z)==null?void 0:O.identifier)){this.Se();O=g.D(this.v6);for(var h=O.next();!h.done;h=O.next()){var w=h.value,y=void 0,L=void 0;if((h=(y=w)==null?void 0:(L=y.bannerData)==null?void 0:L.itemData)&&w.identifier===m.id){L=y=void 0;var C=((y=w)==null?void 0:(L=y.bannerData)==null?void 0:L.dismissedStatusKey)||"";if(this.CA.includes(C))return;this.Z=w;this.banner.element.setAttribute("aria-label",h.accessibilityLabel||"");h.trackingParams&&(this.L=!0, this.U.setTrackingParams(this.badge.element,h.trackingParams));this.show();this.V.show();RL(this);this.iH.eU(!h.stayInApp);rlU(this);dDl(this);O5(this);this.Rd=g.d(h.onTapCommand,Nb);if(w=g.d(h.menuOnTap,Nb))this.LP=g.d(w,qJI);w=void 0;this.banner.update({thumbnail:(w=(h.thumbnailSources||[])[0])==null?void 0:w.url,title:h.productTitle,price:h.priceReplacementText?h.priceReplacementText:h.price,salesOriginalPrice:WJ0(this),priceDropReferencePrice:Xkl(this),promotionText:KJp(this),priceA11yText:H_G(this), affiliateDisclaimer:h.affiliateDisclaimer,vendor:Tel(this)});C=L=y=w=void 0;((w=h)==null?0:(y=w.hiddenProductOptions)==null?0:y.showDropCountdown)&&((L=h)==null?0:(C=L.hiddenProductOptions)==null?0:C.dropTimestampMs)&&(this.kD=new g.mq(function(){kn7(V)},1E3),this.iH.hide(),this.countdownTimer.show(),kn7(this)); this.U.Y("web_player_enable_featured_product_banner_exclusives_on_desktop")&&UDU(this)&&(this.Id=new g.mq(function(){tjG(V)},1E3),tjG(this))}}this.U.getRootNode()&&g.EM(this.U.getRootNode(),"ytp-featured-product-shown")}}; g.U.Se=function(){this.Z&&(this.Z=void 0,this.LU(),this.U.getRootNode()&&g.Ma(this.U.getRootNode(),"ytp-featured-product-shown"))}; g.U.onVideoDataChange=function(m,V){var O=this;g6G(this,V);m==="dataloaded"&&hl(this);var h,w,y;m=g.d((h=V.getWatchNextResponse())==null?void 0:(w=h.playerOverlays)==null?void 0:(y=w.playerOverlayRenderer)==null?void 0:y.productsInVideoOverlayRenderer,CzH);this.overflowButton.show();this.dismissButton.hide();var L=m==null?void 0:m.featuredProductsEntityKey;this.trendingOfferEntityKey=m==null?void 0:m.trendingOfferEntityKey;this.v6.length||(Y5X(this,L),O5(this));var C;(C=this.ma)==null||C.call(this); this.ma=g.gU.subscribe(function(){Y5X(O,L);O5(O)})}; g.U.d0=function(){hl(this);rlU(this);dDl(this);oL.prototype.d0.call(this)};g.t(I_3,g.p);I_3.prototype.onClick=function(){this.U.logClick(this.element,this.D);if(this.U.Y("embeds_enable_info_panel_dismissal")&&this.Z&&this.feedbackToken){var m=this.U.uN();if(m==null?0:Lm5(this.Z,m.tC))SY(m,this.Z,{feedbackTokens:[this.feedbackToken]}),this.U.publish("infopaneldetaildismissed")}};g.t(el$,g.Pz);g.U=el$.prototype;g.U.show=function(){g.Pz.prototype.show.call(this);this.U.publish("infopaneldetailvisibilitychange",!0);this.U.logVisibility(this.element,!0);uOU(this,!0)}; g.U.hide=function(){g.Pz.prototype.hide.call(this);this.U.publish("infopaneldetailvisibilitychange",!1);this.U.logVisibility(this.element,!1);uOU(this,!1)}; g.U.getId=function(){return this.D}; g.U.lC=function(){return this.itemData.length}; g.U.onVideoDataChange=function(m,V){if(V){var O,h,w,y;this.update({title:((O=V.VV)==null?void 0:(h=O.title)==null?void 0:h.content)||"",body:((w=V.VV)==null?void 0:(y=w.bodyText)==null?void 0:y.content)||""});var L;m=((L=V.VV)==null?void 0:L.trackingParams)||null;this.U.setTrackingParams(this.element,m);L=g.D(this.itemData);for(m=L.next();!m.done;m=L.next())m.value.dispose();this.itemData=[];var C;if((C=V.VV)==null?0:C.ctaButtons)for(V=g.D(V.VV.ctaButtons),C=V.next();!C.done;C=V.next())if(C=g.d(C.value, O55))C=new I_3(this.U,C,this.Z),C.o8&&(this.itemData.push(C),C.g0(this.items))}}; g.U.d0=function(){this.hide();g.Pz.prototype.d0.call(this)};g.t(snC,g.p);g.U=snC.prototype;g.U.onVideoDataChange=function(m,V){Z_C(this,V);this.Ol&&a_$(this,this.Ol)}; g.U.fb=function(m){var V=this.U.getVideoData();this.videoId!==V.videoId&&Z_C(this,V);a_$(this,m.state);this.Ol=m.state}; g.U.Aa=function(m){(this.D=m)?this.hide():this.Z&&!this.isDismissed&&this.show()}; g.U.Fy=function(){this.L||this.OI();this.showControls=!0}; g.U.E9=function(){this.L||this.EU();this.showControls=!1}; g.U.OI=function(){if(!this.isDismissed){var m,V=(m=this.U)==null?void 0:m.getPlayerSize();m=V.width<380;var O;V=V.height<(((O=this.U)==null?0:O.isEmbedsShortsMode())?400:280);var h,w;(((h=this.U)==null?0:h.getPlayerStateObject().isCued())||((w=this.U)==null?0:g.l(w.getPlayerStateObject(),1024)))&&m&&V||!this.Z||this.D||(this.fade.show(),this.U.publish("infopanelpreviewvisibilitychange",!0),this.U.logVisibility(this.element,!0))}}; g.U.EU=function(){this.Z&&!this.D&&(this.fade.hide(),this.U.publish("infopanelpreviewvisibilitychange",!1),this.U.logVisibility(this.element,!1))}; g.U.Ccr=function(){this.L=!1;this.showControls||this.EU()};var JVJ={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(JVJ).reduce(function(m,V){m[JVJ[V]]=V;return m},{}); var Cxn={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(Cxn).reduce(function(m,V){m[Cxn[V]]=V;return m},{}); var Epn={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(Epn).reduce(function(m,V){m[Epn[V]]=V;return m},{});var q0Z,Mva;q0Z=[{option:"#fff",text:"Branco"},{option:"#ff0",text:"Amarelo"},{option:"#0f0",text:"Verde"},{option:"#0ff",text:"Ciano"},{option:"#00f",text:"Azul"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Vermelho"},{option:"#080808",text:"Preto"}];Mva=[{option:0,text:we(0)},{option:.25,text:we(.25)},{option:.5,text:we(.5)},{option:.75,text:we(.75)},{option:1,text:we(1)}]; g.Jl=[{option:"fontFamily",text:"Estilo de fonte",options:[{option:1,text:"Serifada monoespa\u00e7ada"},{option:2,text:"Serifada proporcional"},{option:3,text:"Sem serifa monoespa\u00e7ada"},{option:4,text:"Sem serifa proporcional"},{option:5,text:"Casual"},{option:6,text:"Cursiva"},{option:7,text:"Versalete"}]},{option:"color",text:"Cor da fonte",options:q0Z},{option:"fontSizeIncrement",text:"Tamanho da fonte",options:[{option:-2,text:we(.5)},{option:-1,text:we(.75)},{option:0,text:we(1)},{option:1, text:we(1.5)},{option:2,text:we(2)},{option:3,text:we(3)},{option:4,text:we(4)}]},{option:"background",text:"Cor de fundo",options:q0Z},{option:"backgroundOpacity",text:"Opacidade de fundo",options:Mva},{option:"windowColor",text:"Cor da janela",options:q0Z},{option:"windowOpacity",text:"Opacidade da janela",options:Mva},{option:"charEdgeStyle",text:"Estilo de borda do caractere",options:[{option:0,text:"Nenhuma"},{option:4,text:"Sombra projetada"},{option:1,text:"Aumentada"},{option:2,text:"Reduzida"}, {option:3,text:"Circunscrito"}]},{option:"textOpacity",text:"Opacidade da fonte",options:[{option:.25,text:we(.25)},{option:.5,text:we(.5)},{option:.75,text:we(.75)},{option:1,text:we(1)}]}];var fiz=[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.t(Qna,g.Rc);g.U=Qna.prototype; g.U.WX=function(m){m.repeat||(this.D.WY=!1);var V=!1,O=m.keyCode,h=cZ(m),w=!m.altKey&&!m.ctrlKey&&!m.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||fiz.includes(O)),y=!1,L=!1,C=this.api.j();m.defaultPrevented?(w=!1,L=!0):C.Y5&&!this.api.isMutedByEmbedsMutedAutoplay()&&(w=!1);if(O===9)V=!0;else{if(h)switch(O){case 32:case 13:if(h.tagName==="BUTTON"||h.tagName==="A"||h.tagName==="INPUT")V=!0,w=!1;else if(w){var E=h.getAttribute("role");!E||E!=="option"&&E!=="button"&&E.indexOf("menuitem")!==0|| (V=!0,h.click(),y=!0)}break;case 37:case 39:case 36:case 35:V=h.getAttribute("role")==="slider";break;case 38:case 40:E=h.getAttribute("role"),h=O===38?h.previousSibling:h.nextSibling,E==="slider"?V=!0:w&&(E==="option"?(h&&h.getAttribute("role")==="option"&&h.focus(),y=V=!0):E&&E.indexOf("menuitem")===0&&(h&&h.hasAttribute("role")&&h.getAttribute("role").indexOf("menuitem")===0&&h.focus(),y=V=!0))}if(w&&!y)switch(O){case 38:y=Math.min(this.api.getVolume()+5,100);pz(this.k5,y,!1);this.api.setVolume(y); L=y=!0;break;case 40:y=Math.max(this.api.getVolume()-5,0);pz(this.k5,y,!0);this.api.setVolume(y);L=y=!0;break;case 36:this.api.Cr()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),L=y=!0);break;case 35:this.api.Cr()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),L=y=!0)}}V&&jj(this,!0);(V||L)&&this.Ny.XV();(y||w&&this.handleGlobalKeyDown(O,m.shiftKey,m.ctrlKey,m.altKey,m.metaKey,m.key,m.code,m.repeat))&&m.preventDefault();C.V&&(m={keyCode:m.keyCode, altKey:m.altKey,ctrlKey:m.ctrlKey,metaKey:m.metaKey,shiftKey:m.shiftKey,handled:m.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.yV("onKeyPress",m))}; g.U.hI=function(m){var V=m.keyCode;!this.D.Xa&&this.handleGlobalKeyUp(V,m.shiftKey,m.ctrlKey,m.altKey,m.metaKey,m.key,m.code)&&m.preventDefault()}; g.U.handleGlobalKeyUp=function(m,V,O,h,w,y,L){this.api.publish("keyboardserviceglobalkeyup",{keyCode:m,shiftKey:V,ctrlKey:O,altKey:h,metaKey:w,key:y,code:L});V=!1;if(this.D.WY)return V;(y=g.FK(this.api.Gp()))&&(y=y.N3)&&y.cD&&(y.nY(m),V=!0);switch(m){case 9:jj(this,!0);V=!0;break;case 32:if(this.api.Y("web_speedmaster_spacebar_control")&&!this.api.j().Y5){var C,E;m=(C=this.progressBar)==null?void 0:(E=C.L)==null?void 0:E.isEnabled;V=this.rA(m)}break;case 39:(this.api.Y("web_player_chapter_seeking_keyboard_shortcut_killswitch")|| !(w||O&&h))&&($z?h:O)&&this.api.Cr()&&this.api.Y("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),C=(C=this.api.getVideoData())?C.ma:[],E=Gn3(C,this.api.getCurrentTime()*1E3),E!==-1&&this.Z!=null&&(this.Z.RL(1,C[E].title),this.api.seekTo(C[E].startTime/1E3,void 0,void 0,void 0,52),V=!0))}return V}; g.U.handleGlobalKeyDown=function(m,V,O,h,w,y,L,C){C||(this.D.WY=!1);var E=!1,q=this.api.j();if(q.Y5&&!this.api.isMutedByEmbedsMutedAutoplay())return E;var M=g.FK(this.api.Gp());if(M&&(M=M.N3)&&M.cD)switch(m){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:E=M.VY(m)}q.N||E||(E=y||String.fromCharCode(m).toLowerCase(),this.L+=E,"awesome".indexOf(this.L)===0||this.api.Y("web_player_rtr_ctrls")&&"bday".indexOf(this.L)===0?(E=!0,4===this.L.length&&this.L==="bday"&&this.api.Y("web_player_rtr_ctrls")&& (u5o(this.K),this.Ny.XV()),7===this.L.length&&this.L==="awesome"&&jh5(this.api.getRootNode(),"ytp-color-party")):(this.L=E,E="awesome".indexOf(this.L)===0||"bday".indexOf(this.L)===0));if(!E&&(!this.api.isMutedByEmbedsMutedAutoplay()||fiz.includes(m))){var f=this.api.getVideoData(),x,R;M=(x=this.progressBar)==null?void 0:(R=x.L)==null?void 0:R.isEnabled;x=f?f.ma:[];R=$z?h:O;switch(m){case 80:V&&!q.fA&&(GR(this.k5,CFX(),"Anterior"),this.api.previousVideo(),E=!0);break;case 78:V&&!q.fA&&(GR(this.k5, Ky(),"Pr\u00f3ximo"),this.api.nextVideo(),E=!0);break;case 74:this.api.Cr()&&(this.api.startSeekCsiAction(),this.Z?this.api.Y("enable_key_press_seek_logging")?(E=L_(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.Z.ys(-1,10,E)):this.Z.ys(-1,10):GR(this.k5,{G:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",Df:!0,X:"ytp-svg-fill",B:{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),E=!0);break;case 76:this.api.Cr()&&(this.api.startSeekCsiAction(),this.Z?this.api.Y("enable_key_press_seek_logging")?(E=L_(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.Z.ys(1,10,E)):this.Z.ys(1,10):GR(this.k5,{G:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",Df:!0,X:"ytp-svg-fill",B:{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),E=!0);break;case 37:if(this.api.Cr())if(this.api.startSeekCsiAction(),R){if(this.api.Y("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(w||O&&h))R=pka(x,this.api.getCurrentTime()*1E3),R!==-1&&this.Z!=null&&(this.Z.RL(-1,x[R].title),this.api.seekTo(x[R].startTime/1E3,void 0,void 0,void 0,53),E=!0)}else this.Z?this.api.Y("enable_key_press_seek_logging")?(E=L_(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"), this.Z.ys(-1,5,E)):this.Z.ys(-1,5):GR(this.k5,{G:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",Df:!0,X:"ytp-svg-fill",B:{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),E=!0;break;case 39:this.api.Cr()&&(this.api.startSeekCsiAction(),R?this.api.Y("web_enable_keyboard_shortcut_for_timely_actions")||!this.api.Y("web_player_chapter_seeking_keyboard_shortcut_killswitch")&&(w||O&&h)||(R=Gn3(x,this.api.getCurrentTime()*1E3),R!==-1&&this.Z!=null&&(this.Z.RL(1,x[R].title),this.api.seekTo(x[R].startTime/1E3,void 0,void 0,void 0,52),E=!0)):(this.Z!=null?this.api.Y("enable_key_press_seek_logging")?(E=L_(this,5* this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.Z.ys(1,5,E)):this.Z.ys(1,5):GR(this.k5,{G:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",Df:!0,X:"ytp-svg-fill",B:{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),E=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),pz(this.k5,this.api.getVolume(),!1)):(this.api.mute(),pz(this.k5,0,!0));E=!0;break;case 32:E=this.api.Y("web_speedmaster_spacebar_control")?!this.api.j().fA:this.rA(M);break;case 75:E=this.rA(M);break;case 190:V?q.enableSpeedOptions&&Ps5(this)&&(E=this.api.getPlaybackRate(),this.api.setPlaybackRate(E+.25,!0),zq3(this.k5,!1),E=!0):this.api.Cr()&&(this.step(1),E=!0);break;case 188:V? q.enableSpeedOptions&&Ps5(this)&&(E=this.api.getPlaybackRate(),this.api.setPlaybackRate(E-.25,!0),zq3(this.k5,!0),E=!0):this.api.Cr()&&(this.step(-1),E=!0);break;case 70:Xpa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),E=!0); break;case 27:M?(this.progressBar.fM(),E=!0):this.J()&&(E=!0)}if(q.controlsType!=="3")switch(m){case 67:g.t_(this.api.Gp())&&(q=this.api.getOption("captions","track"),this.api.toggleSubtitles(),Zzm(this.k5,!q||q&&!q.displayName),E=!0);break;case 79:C_(this,"textOpacity");break;case 87:C_(this,"windowOpacity");break;case 187:case 61:C_(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:C_(this,"fontSizeIncrement",!0,!0)}var A;V||O||h||(m>=48&&m<=57?A=m-48:m>=96&&m<=105&&(A=m-96));A!=null&&this.api.Cr()&& !this.api.Y("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),q=this.api.getProgressState(),this.api.seekTo(A/10*(q.seekableEnd-q.seekableStart)+q.seekableStart,void 0,void 0,void 0,81),E=!0);E&&this.Ny.XV()}this.D.Lu=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:m,shiftKey:V,ctrlKey:O,altKey:h,metaKey:w,key:y,code:L,repeat:C},this.D);this.D.Lu&&(E=!0,this.Ny.XV());return E}; g.U.step=function(m){this.api.Cr();if(this.api.getPlayerStateObject().isPaused()){var V=this.api.getVideoData().L;V&&(V=V.video)&&this.api.seekBy(m/(V.fps||30),void 0,void 0,m>0?77:78)}}; g.U.rA=function(m){if(!this.api.j().fA){var V;var O,h=(V=this.api.getVideoData())==null?void 0:(O=V.getPlayerResponse())==null?void 0:O.playabilityStatus;if(h){var w;V=((w=g.d(h.miniplayer,AGh))==null?void 0:w.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else V=!1;V&&this.api.bH("onExpandMiniplayer");m?this.progressBar.JH():(m=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.k5.oL(m),m?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.U.d0=function(){g.hY(this.T);g.Rc.prototype.d0.call(this)};g.t(E5,g.p);E5.prototype.oY=function(){var m=this.U.j(),V=m.D||this.U.Y("web_player_hide_overflow_button_if_empty_menu")&&this.v1.isEmpty();m=g.sY(m)&&g.ZZ(this.U)&&g.l(this.U.getPlayerStateObject(),128);var O=this.U.getPlayerSize();this.visible=this.U.B2()&&!m&&O.width>=240&&!this.U.getVideoData().Sb&&!V&&!this.U.isEmbedsShortsMode();g.xN(this.element,"ytp-overflow-button-visible",this.visible);this.eU(this.visible);this.visible&&this.U.cj();this.U.logVisibility(this.element,this.visible&&this.Qt)}; E5.prototype.u2=function(m){g.p.prototype.u2.call(this,m);this.U.logVisibility(this.element,this.visible&&m)}; E5.prototype.d0=function(){g.p.prototype.d0.call(this);g.Ma(this.element,"ytp-overflow-button-visible")};g.t(mGX,g.Pz);g.U=mGX.prototype;g.U.Yk=function(m){m=cZ(m);g.nK(this.element,m)&&(g.nK(this.Z,m)||g.nK(this.closeButton,m)||VF(this))}; g.U.EU=function(){g.Pz.prototype.EU.call(this);this.U.jI(this.element)}; g.U.show=function(){this.cD&&this.U.publish("OVERFLOW_PANEL_OPENED");g.Pz.prototype.show.call(this);this.element.setAttribute("aria-modal","true");OB5(this,!0)}; g.U.hide=function(){g.Pz.prototype.hide.call(this);this.element.removeAttribute("aria-modal");OB5(this,!1)}; g.U.onFullscreenToggled=function(m){!m&&this.FQ()&&VF(this)}; g.U.isEmpty=function(){return this.actionButtons.length===0}; g.U.focus=function(){for(var m=g.D(this.actionButtons),V=m.next();!V.done;V=m.next())if(V=V.value,V.cD){V.focus();break}};g.t(h7U,g.p);h7U.prototype.onClick=function(m){g.gd(m,this.api)&&this.api.playVideoAt(this.index)};g.t(wW$,g.Pz);g.U=wW$.prototype;g.U.show=function(){g.Pz.prototype.show.call(this);this.Z.C(this.api,"videodatachange",this.W4);this.Z.C(this.api,"onPlaylistUpdate",this.W4);this.W4()}; g.U.hide=function(){g.Pz.prototype.hide.call(this);g.np(this.Z);this.updatePlaylist(null)}; g.U.W4=function(){this.updatePlaylist(this.api.getPlaylist());this.api.j().D&&(this.LA("ytp-playlist-menu-title-name").removeAttribute("href"),this.L&&(this.yu(this.L),this.L=null))}; g.U.xJ=function(){var m=this.playlist,V=m.author,O=V?"por $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",h={CURRENT_POSITION:String(m.index+1),PLAYLIST_LENGTH:String(m.length)};V&&(h.AUTHOR=V);this.update({title:m.title,subtitle:g.w0(O,h),playlisturl:this.api.getVideoUrl(!0)});V=m.L;if(V===this.D)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[m.index];else{O=g.D(this.playlistData);for(h=O.next();!h.done;h=O.next())h.value.dispose(); O=m.length;this.playlistData=[];for(h=0;h=this.L&&!m.D&&!V.isAd()&&!this.api.isEmbedsShortsMode()}else m=!1;this.visible=m;this.eU(this.visible);g.xN(this.element,"ytp-search-button-visible",this.visible);g.xN(this.element,"ytp-show-search-title",!this.api.B2());this.api.logVisibility(this.element,this.visible&&this.Qt)}; x6.prototype.u2=function(m){g.p.prototype.u2.call(this,m);this.api.logVisibility(this.element,this.visible&&m)};g.t(Rn,g.p); Rn.prototype.trigger=function(m,V,O,h){this.show();if(this.L&&m!==this.L){var w=1;this.D&&(w=oJG(this));qH1(this,w,!1);R7G(this)}this.L=m;this.T=this.L===-1?this.J:this.V;m="";V?(this.L===-1&&this.U.getCurrentTime()<=V?this.K=V:this.K+=V,m=(this.L===-1?"\u2212":"+")+" "+this.K):this.K=0;this.updateValue(this.L===-1?"durationBack":"durationForward",m);if(this.Z==="hidden"||this.Z==="fading-out")V=0,this.Z==="fading-out"&&(V=oJG(this),xG$(this)),Mg5(this,V),this.Z!=="fading-out"&&fhX(this,this.T.querySelector(".ytp-seek-overlay-arrow-persistent")), this.Z="fading-in";else if(this.Z==="fading-in"||this.Z==="lingering")V=this.T.querySelector(".ytp-seek-overlay-duration"),m=g.m9(this.U.j().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,V.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale(1)"},{offset:.64,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale("+m+")"},{offset:1,transform:"scale(1)"}],{duration:184}),xG$(this),this.Z==="lingering"&&(this.N.stop(),this.N.start());O&&gJ1(this, O,h)}; Rn.prototype.FF=function(m,V,O,h){this.trigger(m,h)}; Rn.prototype.ys=function(m,V,O){this.trigger(m,V);O&&(m=m===-1?this.V.visualElement:this.J.visualElement,O={seekData:O},(V=g.t1())&&OD(V,m,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",O))}; Rn.prototype.RL=function(m,V,O){this.trigger(m,void 0,V,O)};g.t(on,g.p);on.prototype.onClick=function(){var m=this,V=this.api.j(),O=this.api.getVideoData(this.api.getPresentingPlayerType()),h=this.api.getPlaylistId();V=this.api.Y("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):V.getVideoUrl(O.videoId,h,void 0,!0);if(navigator.share)try{var w=navigator.share({title:O.title,url:V});w instanceof Promise&&w.catch(function(y){UGC(m,y)})}catch(y){y instanceof Error&&UGC(this,y)}else this.Z.GE(),VF(this.L,this.element,!1); this.api.logClick(this.element)}; on.prototype.oY=function(){var m=this.api.j(),V=this.api.isEmbedsShortsMode();g.xN(this.element,"ytp-show-share-title",g.sY(m)&&!V);this.Z.GM()&&V?(m=(this.api.xN().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.wb(this.element,"right",m+"px")):V&&g.wb(this.element,"right","0px");this.updateValue("icon",{G:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",Df:!0,X:"ytp-svg-fill",B:{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=A27(this);g.xN(this.element,"ytp-share-button-visible",this.visible);this.eU(this.visible);this.tooltip.cj();this.api.logVisibility(this.element,A27(this)&&this.Qt)}; on.prototype.u2=function(m){g.p.prototype.u2.call(this,m);this.api.logVisibility(this.element,this.visible&&m)}; on.prototype.d0=function(){g.p.prototype.d0.call(this);g.Ma(this.element,"ytp-share-button-visible")};g.t(tga,g.Pz);g.U=tga.prototype;g.U.Ys=function(m){m=cZ(m);g.nK(this.T,m)||g.nK(this.closeButton,m)||VF(this)}; g.U.EU=function(){g.Pz.prototype.EU.call(this);this.tooltip.jI(this.element);this.api.logVisibility(this.Z,!1);for(var m=g.D(this.L),V=m.next();!V.done;V=m.next())V=V.value,this.api.hasVe(V.element)&&this.api.logVisibility(V.element,!1)}; g.U.show=function(){var m=this.cD;g.Pz.prototype.show.call(this);this.oY();m||this.api.bH("onSharePanelOpened")}; g.U.e30=function(){this.cD&&this.oY()}; g.U.oY=function(){var m=this;g.EM(this.element,"ytp-share-panel-loading");g.Ma(this.element,"ytp-share-panel-fail");var V=this.api.getVideoData(),O=this.api.getPlaylistId()&&this.D.checked;V.getSharePanelCommand&&SY(this.api.uN(),V.getSharePanelCommand,{includeListId:O}).then(function(h){m.UH()||(g.Ma(m.element,"ytp-share-panel-loading"),XW$(m,h))}); V=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",V);this.updateValue("linkText",V);this.updateValue("shareLinkWithUrl",g.w0("Compartilhar o link $URL",{URL:V}));tj(this.Z);this.api.logVisibility(this.Z,!0)}; g.U.onFullscreenToggled=function(m){!m&&this.FQ()&&VF(this)}; g.U.focus=function(){this.Z.focus()}; g.U.d0=function(){g.Pz.prototype.d0.call(this);Kjm(this)};g.t($G1,oL);g.U=$G1.prototype;g.U.d0=function(){DG0(this);oL.prototype.d0.call(this)}; g.U.Wk=function(m){m.target!==this.dismissButton.element&&(this.kx(!1),this.U.bH("innertubeCommand",this.onClickCommand))}; g.U.sX=function(){this.Xr=!0;this.kx(!0);this.LU()}; g.U.c66=function(m){this.N=m;this.LU()}; g.U.onVideoDataChange=function(m,V){if(m=!!V.videoId&&this.videoId!==V.videoId)this.videoId=V.videoId,this.Xr=!1,this.mS=!0,this.J=this.Ae=!1,DG0(this),c2G(this,!1),this.D=this.Z=!1,Al(this),YHm(this);if(m||!V.videoId)this.Zu=this.L=!1;var O,h;if(V==null?0:(O=V.getPlayerResponse())==null?0:(h=O.videoDetails)==null?0:h.isLiveContent)this.zB(!1);else{var w,y,L;V=g.d((w=V.getWatchNextResponse())==null?void 0:(y=w.playerOverlays)==null?void 0:(L=y.playerOverlayRenderer)==null?void 0:L.productsInVideoOverlayRenderer, CzH);this.N=this.enabled=!1;if(V){if(w=V==null?void 0:V.featuredProductsEntityKey){y=g.gU.getState().entities;var C;if((C=Bv(y,"featuredProductsEntity",w))==null?0:C.productsData){this.zB(!1);return}}if(!V.text||!V.onClickCommand||!V.timing){this.zB(!1);return}this.enabled=!0;if(!this.L){var E;C=(E=V.badgeInteractionLogging)==null?void 0:E.trackingParams;(this.L=!!C)&&this.U.setTrackingParams(this.badge.element,C||null)}if(!this.Zu){var q;if(this.Zu=!((q=V.dismissButton)==null||!q.trackingParams)){var M; this.U.setTrackingParams(this.dismissButton.element,((M=V.dismissButton)==null?void 0:M.trackingParams)||null)}}V.isContentForward&&(E=V.productsData,c2G(this,!0),YHm(this),E=r2p(this,E),q=[],E.length>0&&q.push(E[0]),E.length>1&&(M=new g.p({G:"div",X:"ytp-suggested-action-more-products-icon"}),g.a(this,M),q.push(M),q.push.apply(q,g.b(E.slice(1)))),this.K=new g.p({G:"div",S:q,X:"ytp-suggested-action-content-forward-container"}),g.a(this,this.K),this.EH.element.append(this.K.element));this.text=g.fy(V.text); var f;if(E=(f=V.dismissButton)==null?void 0:f.a11yLabel)this.Je=g.fy(E);this.onClickCommand=V.onClickCommand;this.timing=V.timing;this.SK()}yb3(this);RL(this);this.LU()}}; g.U.IQ=function(){return!this.N&&this.enabled&&!this.Xr&&!this.U.B2()&&!this.UU&&(this.J||this.mS)}; g.U.aU=function(m){oL.prototype.aU.call(this,m);if(this.Z||this.D)this.timing&&ge(this.timing.preview)&&(this.Z=!1,Al(this),this.D=!1,Al(this),this.U.FJ("shopping_overlay_preview_collapsed"),this.U.FJ("shopping_overlay_preview_expanded"),m=U5(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),ge(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.U.FJ("shopping_overlay_expanded"),m.end=this.timing.expanded.endSec*1E3),this.U.SK([m])), this.Ae=!0,RL(this);Al(this)}; g.U.zB=function(m){(this.J=m)?(xD(this),RL(this,!1)):(DG0(this),this.fA.start());this.LU()}; g.U.SK=function(m){var V=this.timing;m=(m===void 0?0:m)+this.U.getCurrentTime();var O=[],h=V.visible,w=V.preview;V=V.expanded;ge(h)&&(HB3(h,m),O.push(U5(h.startSec,h.endSec,"shopping_overlay_visible")));ge(w)&&(HB3(w,m),h=w.startSec+1,O.push(U5(w.startSec,h,"shopping_overlay_preview_collapsed")),O.push(U5(h,w.endSec,"shopping_overlay_preview_expanded")));ge(V)&&(HB3(V,m),O.push(U5(V.startSec,V.endSec,"shopping_overlay_expanded")));this.U.SK(O)}; g.U.LU=function(){oL.prototype.LU.call(this);this.U.getRootNode()&&g.xN(this.U.getRootNode(),"ytp-shopping-pill-shown",this.IQ())};g.t(nJI,g.p); nJI.prototype.oY=function(){var m=this.api.j();this.eU(g.sY(m)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.cD);var V=this.api.getVideoData(),O=!1;this.api.getPresentingPlayerType()===2?O=!!V.videoId&&!!V.isListed&&!!V.author&&!!V.fA&&!!V.profilePicture:g.sY(m)&&(O=!!V.videoId&&!!V.fA&&!!V.profilePicture&&!V.Sb&&!m.D&&!(m.J&&this.api.getPlayerSize().width<200));var h=V.profilePicture;m=g.sY(m)?V.expandedTitle:V.author;h=h===void 0? "":h;m=m===void 0?"":m;O?(this.L!==h&&(this.Z.style.backgroundImage="url("+h+")",this.L=h),this.updateValue("channelLogoLabel",g.w0("Foto do canal $CHANNEL_NAME",{CHANNEL_NAME:m})),g.EM(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Ma(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.Z,O&&this.Qt);this.api.logVisibility(this.channelName,O&&this.Qt);this.subscribeButton&&(this.subscribeButton.channelId=V.XU);this.updateValue("expandedTitle",V.expandedTitle)};g.t(de,g.Pz);de.prototype.show=function(){g.Pz.prototype.show.call(this);this.Z.start()}; de.prototype.hide=function(){g.Pz.prototype.hide.call(this);this.Z.stop()}; de.prototype.dV=function(m,V){m==="dataloaded"&&((this.wb=V.wb,this.mP=V.mP,isNaN(this.wb)||isNaN(this.mP))?this.L&&(this.U.FJ("intro"),this.U.removeEventListener(g.Gu("intro"),this.J),this.U.removeEventListener(g.pR("intro"),this.T),this.U.removeEventListener("onShowControls",this.D),this.hide(),this.L=!1):(this.U.addEventListener(g.Gu("intro"),this.J),this.U.addEventListener(g.pR("intro"),this.T),this.U.addEventListener("onShowControls",this.D),m=new g.a2(this.wb,this.mP,{priority:9,namespace:"intro"}), this.U.SK([m]),this.L=!0))};g.t(tl,g.p);tl.prototype.onClick=function(){this.U.Ei()}; tl.prototype.oY=function(){var m=!0;g.sY(this.U.j())&&(m=m&&this.U.xN().getPlayerSize().width>=480);this.eU(m);m=this.updateValue;var V=this.U.Y("delhi_modern_web_player_icons"),O=V?{G:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{G:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",Df:!0,B:{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"}}]};V=V?{G:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{G:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",Df:!0,X:"ytp-svg-fill",B:{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"}}]};m.call(this,"icon",this.U.rH()?O:V)};g.t(Ih0,g.p);Ih0.prototype.d0=function(){this.Z=null;g.p.prototype.d0.call(this)};g.t(K_,g.p);K_.prototype.onClick=function(){this.U.bH("innertubeCommand",this.L)}; K_.prototype.V=function(){if(this.U.Y("delhi_modern_web_player")){var m=this.U.getPlayerSize();m.width&&(this.element.style.maxWidth=m.width*.25+"px")}}; K_.prototype.Ae=function(m){m!==this.N&&(this.update({chapterTitle:m,ariaLabel:m}),this.N=m);m?this.show():this.hide()}; K_.prototype.Zu=function(){this.Z.disabled=this.L==null;g.xN(this.Z,"ytp-chapter-container-disabled",this.Z.disabled);this.Yf()};g.t(Wk,K_);Wk.prototype.onClickCommand=function(m){g.d(m,o5)&&this.Yf()}; Wk.prototype.updateVideoData=function(m,V){var O,h,w;m=g.d((O=V.getWatchNextResponse())==null?void 0:(h=O.playerOverlays)==null?void 0:(w=h.playerOverlayRenderer)==null?void 0:w.decoratedPlayerBarRenderer,sh);O=g.d(m==null?void 0:m.playerBarActionButton,g.rg);if(this.U.Y("web_player_updated_entrypoint")){this.J=E_(O==null?void 0:O.text);var y;h=(y=O==null?void 0:O.tooltip)!=null?y:"Ver cap\u00edtulo";this.K.setAttribute("title",h)}this.L=O==null?void 0:O.command;K_.prototype.Zu.call(this)}; Wk.prototype.Yf=function(){var m=this.J,V=this.T.Z,O,h=((O=this.U.getLoopRange())==null?void 0:O.type)==="clips";if(V.length>1&&!h){m=this.U.getProgressState().current*1E3;O=yk(V,m);m=V[O].title||"Cap\u00edtulos";if(O!==this.currentIndex||this.D)this.U.bH("innertubeCommand",V[O].onActiveCommand),this.currentIndex=O;this.D=!1}else this.D=!0;K_.prototype.Ae.call(this,m)};g.t(XO,g.ED);XO.prototype.L=function(){var m;(m=this.element.parentElement)==null||m.classList.contains("ytp-right-controls-left");(this.Z=!this.Z)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; XO.prototype.isExpanded=function(){return this.Z};g.t(Hk,g.p);Hk.prototype.D=function(m){g.l(m.state,32)?ujp(this,this.api.NL()):this.cD&&(g.l(m.state,16)||g.l(m.state,1))||this.fade.hide()}; Hk.prototype.onProgress=function(){var m=this.api.getPlayerStateObject();(g.l(m,32)||g.l(m,16))&&z7G(this)}; Hk.prototype.T=function(){this.frameIndex=NaN;z7G(this)}; Hk.prototype.hide=function(){this.Z&&ujp(this,null);g.p.prototype.hide.call(this)};g.t(ZB$,g.p);g.U=ZB$.prototype;g.U.onClick=function(){var m=this;if(this.U.j().nA||this.U.j().J){this.U.logClick(this.element);try{this.U.toggleFullscreen().catch(function(V){m.Cm(V)})}catch(V){this.Cm(V)}}else VF(this.message,this.element,!0)}; g.U.Cm=function(m){String(m).includes("fullscreen error")?g.cj(m):g.kL(m);this.X2()}; g.U.X2=function(){this.disable();this.message.OI(this.element,!0)}; g.U.EB=function(){XS()===this.U.getRootNode()?this.D.start():(this.D.stop(),this.message&&this.message.hide())}; g.U.Ra=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var m=window.screen.width*.9,V=window.screen.height*.9,O=Math.max(window.outerWidth,window.innerWidth),h=Math.max(window.outerHeight,window.innerHeight);if(O>h!==m>V){var w=O;O=h;h=w}m>O&&V>h&&this.X2()}}; g.U.disable=function(){var m=this;if(!this.message){var V=(t8(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Tela cheia indispon\u00edvel. $BEGIN_LINKSaiba mais$END_LINK":"Seu navegador n\u00e3o tem suporte para tela cheia. $BEGIN_LINKSaiba mais$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.Pz(this.U,{G:"div",KA:["ytp-popup","ytp-generic-popup"],B:{role:"alert",tabindex:"0"},S:[V[0],{G:"a",B:{href:"https://support.google.com/youtube/answer/6276924", target:this.U.j().Qt},c6:V[2]},V[4]]},100,!0);this.message.hide();g.a(this,this.message);this.message.subscribe("show",function(O){m.L.Rj(m.message,O)}); g.ib(this.U,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.Z)();this.Z=null}}; g.U.oY=function(){var m=Xpa(this.U),V=this.U.j().J&&this.U.getPlayerSize().width<250;this.eU(m&&!V);this.U.logVisibility(this.element,this.cD)}; g.U.kL=function(m){if(m){var V=g.S3(this.U,"Sair da tela inteira","f");this.update({"data-title-no-tooltip":"Sair da tela inteira"});document.activeElement===this.element&&this.U.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(O){g.cj(O)})}else V=g.S3(this.U,"Tela inteira","f"),this.update({"data-title-no-tooltip":"Tela inteira"}); m=sO5(this,m);V=this.message?null:V;this.U.j().Y("player_tooltip_data_title_killswitch")?this.update({title:V,icon:m}):this.update({"tooltip-title":V,"aria-label":V,icon:m});this.L.XJ().cj()}; g.U.d0=function(){this.message||((0,this.Z)(),this.Z=null);g.p.prototype.d0.call(this)}; g.U.u2=function(m){g.p.prototype.u2.call(this,m)};g.t(Tn,g.p);Tn.prototype.onClick=function(){this.U.logClick(this.element);this.U.seekBy(this.Z,!0);var m=this.Z>0?1:-1,V=Math.abs(this.Z),O=this.U.Nn().YE;O&&O.ys(m,V);this.L.isActive()?this.D=!0:(m=["ytp-jump-spin"],this.Z<0&&m.push("backwards"),this.element.classList.add.apply(this.element.classList,g.b(m)),g.Vn(this.L))};g.t($6,K_);$6.prototype.onClickCommand=function(m){g.d(m,Laz)&&this.Yf()}; $6.prototype.updateVideoData=function(){var m,V;this.L=(m=ahU(this))==null?void 0:(V=m.onTap)==null?void 0:V.innertubeCommand;K_.prototype.Zu.call(this)}; $6.prototype.Yf=function(){var m="",V=this.T.J,O,h=(O=ahU(this))==null?void 0:O.headerTitle;O=h?g.fy(h):"";var w;h=((w=this.U.getLoopRange())==null?void 0:w.type)==="clips";V.length>1&&!h&&(m=this.U.getProgressState().current*1E3,w=i_l(V,m),m=w!=null?V[w].title:O,w!=null&&w!==this.currentIndex&&(this.U.bH("innertubeCommand",V[w].onActiveCommand),this.currentIndex=w));K_.prototype.Ae.call(this,m)};g.t(Y6,g.p);Y6.prototype.onClick=function(){this.U.bH("onCollapseMiniplayer");this.U.logClick(this.element)}; Y6.prototype.oY=function(){this.visible=!this.U.isFullscreen();this.eU(this.visible);this.U.logVisibility(this.element,this.visible&&this.Qt)}; Y6.prototype.u2=function(m){g.p.prototype.u2.call(this,m);this.U.logVisibility(this.element,this.visible&&m)};var lh7=new HD(0,0,.05,0,0,1,1,1);g.t(k6,g.p);k6.prototype.init=function(){this.update({minvalue:this.D,maxvalue:this.K,stepvalue:this.N,slidervalue:this.L,ariaValueNow:this.L,ariaMinValue:this.D,ariaMaxValue:this.K});BFo(this,this.L)}; k6.prototype.RX=function(){re(this,Number(this.Z.value));this.Z.focus()}; k6.prototype.v4=function(m){if(!m.defaultPrevented){switch(m.code){case "ArrowDown":m=-this.N;break;case "ArrowUp":m=this.N;break;default:return}re(this,Math.min(this.K,Math.max(Number((this.L+m).toFixed(2)),this.D)))}};g.t(ck,k6);ck.prototype.onVolumeChange=function(m){if(this.J)this.J=!1;else{var V=m.volume;V===0||m.muted?re(this,0):re(this,V)}}; ck.prototype.RX=function(){k6.prototype.RX.call(this);this.V(this.L)}; ck.prototype.Zu=function(m){var V=-m.deltaY;V=m.deltaMode===WheelEvent.DOM_DELTA_LINE||m.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.O2(this.L+V,0,100):g.O2(this.L+g.O2(V/10,-10,10),0,100);V===0?re(this,0):re(this,V);this.V(V);m.preventDefault();m.stopPropagation()}; ck.prototype.Ae=function(m,V){this.J=!0;m===0||V?this.U.mute():(this.U.isMuted()&&this.U.unMute(),this.U.setVolume(m))};g.t(QOp,g.p);g.t(ND,g.p);g.U=ND.prototype;g.U.XW=function(){if(!this.U.Yc()){this.updateValue("dataTooltipOffsetY",-120);var m;(m=this.Z)!=null&&D_(m,!0);var V;(V=this.Z)!=null&&V.Z.stop()}}; g.U.KJ=function(){var m;(m=this.Z)!=null&&m.Z.start()}; g.U.au=function(m){this.visible=m.width>=300||this.H6;this.eU(this.visible);this.U.logVisibility(this.element,this.visible&&this.Qt)}; g.U.jX=function(){this.U.j().EH?this.U.isMuted()?this.U.unMute():this.U.mute():VF(this.message,this.element,!0);this.U.logClick(this.element)}; g.U.vAt=function(m){if(this.U.j().EH&&this.Z)if(m.target===this.D){var V;if(!this.U.Yc()||((V=this.Z)==null?0:V.isVisible))this.jX();else{var O;(O=this.Z)!=null&&D_(O,!0)}}else{var h;(h=this.Z)!=null&&D_(h,!0)}else this.jX()}; g.U.onVolumeChange=function(m){this.setVolume(m.volume,m.muted)}; g.U.setVolume=function(m,V){var O=this,h=V?0:m/100;m=h===0?1:m>50?1:0;if(this.V!==m){var w=this.J;isNaN(w)?Oip(this,m):BQ3(this.EH,function(L){Oip(O,w+(O.V-w)*L)},250); this.V=m}h=h===0?1:0;if(this.N!==h){var y=this.mS;isNaN(y)?hS1(this,h):BQ3(this.v6,function(L){hS1(O,y+(O.N-y)*L)},250); this.N=h}P31(this,V)}; g.U.u2=function(m){g.p.prototype.u2.call(this,m);this.U.logVisibility(this.element,this.visible&&m)}; var mIl=["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"],VEU=["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.t(g.bs,g.p);g.U=g.bs.prototype;g.U.onStateChange=function(m){this.Mq(m.state)}; g.U.Mq=function(m){var V=g.sf(this.U.getVideoData()),O=!1;m.isOrWillBePlaying()?m=V?4:2:g.l(m,2)?(m=3,O=V):m=1;this.element.disabled=O;if(this.Z!==m){V=null;switch(m){case 2:V=g.S3(this.U,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:V="Reiniciar";this.update({"data-title-no-tooltip":"Reiniciar"});break;case 1:V=g.S3(this.U,"Reproduzir","k");this.update({"data-title-no-tooltip":"Reproduzir"});break;case 4:V="Parar reprodu\u00e7\u00e3o",this.update({"data-title-no-tooltip":"Parar reprodu\u00e7\u00e3o"})}m=== 3?this.U.j().Y("player_tooltip_data_title_killswitch")?this.update({title:V,icon:weG(this,m)}):this.update({"tooltip-title":V,icon:weG(this,m)}):(this.U.Y("player_tooltip_data_title_killswitch")?this.update({title:V}):this.update({"tooltip-title":V}),(V=weG(this,m))&&this.Z&&this.Z!==3?QJ3(this.transition,this.element,V):this.updateValue("icon",V));this.tooltip.cj();this.Z=m}}; g.U.onVideoDataChange=function(){g.xN(this.element,"ytp-play-button-playlist",g.ZZ(this.U))}; g.U.rA=function(m){this.U.logClick(this.element);if(this.U.getPlayerStateObject().isOrWillBePlaying())this.U.pauseVideo();else{if(this.U.isMinimized()&&this.U.getPlayerStateObject().isCued()){var V={},O;if((O=this.U.getVideoData())==null?0:O.N)V.cttAuthInfo={token:this.U.getVideoData().N,videoId:this.U.getVideoData().videoId};cy("direct_playback",V);this.U.Pj().timerName="direct_playback"}this.U.playVideo()}this.U.isMinimized()&&(m==null?void 0:m.type)==="click"&&this.element.blur()}; g.U.u2=function(m){g.p.prototype.u2.call(this,m)};g.t(g.n_,g.p);g.U=g.n_.prototype;g.U.onVideoDataChange=function(){LkC(this);this.T&&(this.yu(this.T),this.T=null);this.videoData=this.U.getVideoData(1);if(this.playlist=this.U.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.T=this.C(this.U,"progresssync",this.M0);this.D=Jfl(this);jka(this);this.Gr(this.U.xN().getPlayerSize())}; g.U.Gr=function(m){m=m===void 0?this.U.xN().getPlayerSize():m;var V,O=((V=this.U.getLoopRange())==null?void 0:V.type)==="clips";V=g.ZZ(this.U)||this.Z&&g.Gc(this.U)&&!this.U.Y("web_hide_next_button")||Ct$(this);var h=!this.Z&&m.width<400;m=this.U.Y("delhi_modern_web_player_horizontal_volume_controls")&&m.width<640;O=V&&!O&&!h&&!m;this.eU(O);this.U.logVisibility(this.element,O)}; g.U.onClick=function(m){this.U.logClick(this.element);var V=!0;this.N?V=g.gd(m,this.U):m.preventDefault();V&&(this.Z&&this.U.getPresentingPlayerType()===5?this.U.publish("ytoprerollinternstitialnext"):this.Z?(q8(this.U.Pj()),this.U.publish("playlistnextbuttonclicked",this.element),this.U.nextVideo(!0)):this.D?this.U.seekTo(0):(q8(this.U.Pj()),this.U.publish("playlistprevbuttonclicked",this.element),this.U.previousVideo(!0)))}; g.U.M0=function(){var m=Jfl(this);m!==this.D&&(this.D=m,jka(this))}; g.U.d0=function(){this.L&&(this.L(),this.L=null);LkC(this);g.p.prototype.d0.call(this)};g.t(qOm,g.p);g.U=qOm.prototype;g.U.Pv=function(m){this.H4(m.pageX);this.KI(m.pageX+m.deltaX);ME3(this)}; g.U.H4=function(m){this.Zu=m-this.H6}; g.U.KI=function(m){m-=this.H6;!isNaN(this.Zu)&&this.thumbnails.length>0&&(this.V=m-this.Zu,this.thumbnails.length>0&&this.V!==0&&(this.D=this.J+this.V,m=gRl(this,this.D),this.D<=this.Z/2&&this.D>=oRo(this)?(this.api.seekTo(m,!1,void 0,void 0,25),g.wb(this.mS,"transform","translateX("+(this.D-this.Z/2)+"px)"),ER0(this,m)):this.D=this.J))}; g.U.oN=function(){this.Ae&&(this.Ae.iM=!0);var m=(0,g.TN)()-this.Mf<300;if(Math.abs(this.V)<5&&!m){this.Mf=(0,g.TN)();m=this.Zu+this.V;var V=this.Z/2-m;this.H4(m);this.KI(m+V);ME3(this);this.api.logClick(this.K)}ME3(this)}; g.U.tE=function(){Sj(this,this.api.getCurrentTime())}; g.U.play=function(m){this.api.seekTo(gRl(this,this.D),void 0,void 0,void 0,26);this.api.playVideo();m&&this.api.logClick(this.playButton)}; g.U.onExit=function(m){this.api.seekTo(this.fA,void 0,void 0,void 0,63);this.api.playVideo();m&&this.api.logClick(this.dismissButton)}; g.U.Vp=function(m,V){this.H6=m;this.Z=V;Sj(this,this.api.getCurrentTime())}; g.U.enable=function(){this.isEnabled||(this.isEnabled=!0,this.fA=this.api.getCurrentTime(),ER0(this,this.fA),g.xN(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.EH=this.C(this.element,"wheel",this.Pv),this.logVisibility(this.isEnabled))}; g.U.disable=function(){this.isEnabled=!1;this.hide();g.xN(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.EH&&this.yu(this.EH);this.logVisibility(this.isEnabled)}; g.U.reset=function(){this.disable();this.T=[];this.iH=!1}; g.U.logVisibility=function(m){this.api.logVisibility(this.element,m);this.api.logVisibility(this.K,m);this.api.logVisibility(this.dismissButton,m);this.api.logVisibility(this.playButton,m)}; g.U.d0=function(){for(;this.L.length;){var m=void 0;(m=this.L.pop())==null||m.dispose()}g.p.prototype.d0.call(this)}; g.t(fG0,g.p);g.t(xIX,g.p);g.t(Af0,g.p);g.t(In,g.p);In.prototype.Ir=function(m){return m==="PLAY_PROGRESS"?this.J:m==="LOAD_PROGRESS"?this.N:m==="LIVE_BUFFER"?this.K:this.D};tEp.prototype.update=function(m,V,O,h){O=O===void 0?0:O;this.width=V;this.T=O;this.Z=V-O-(h===void 0?0:h);this.position=g.O2(m,O,O+this.Z);this.D=this.position-O;this.L=this.D/this.Z};g.t(KkI,g.p);g.t(g.zn,g.ED);g.U=g.zn.prototype; g.U.yM=function(){var m=!1,V=this.api.getVideoData();if(!V)return m;this.api.FJ("timedMarkerCueRange");Hi3(this);for(var O=g.D(V.EH),h=O.next();!h.done;h=O.next()){h=h.value;var w=void 0,y=(w=this.Xr[h])==null?void 0:w.markerType,L=void 0;w=(L=this.Xr[h])==null?void 0:L.markers;if(!w)break;if(y==="MARKER_TYPE_TIMESTAMPS"){m=g.D(w);for(y=m.next();!y.done;y=m.next()){L=y.value;y=new KkI;var C=void 0;y.title=((C=L.title)==null?void 0:C.simpleText)||"";y.timeRangeStartMillis=Number(L.startMillis);y.Z= Number(L.durationMillis);var E=C=void 0;y.onActiveCommand=(E=(C=L.onActive)==null?void 0:C.innertubeCommand)!=null?E:void 0;cfC(this,y)}DI1(this,this.J);m=this.J;y=this.lc;L=[];C=null;for(E=0;Eq&&(C.end=q);q=Be0(q,q+f);L.push(q);C=q;y[q.id]=m[E].onActiveCommand}}this.api.SK(L);a:{m=g.D(w);for(w=m.next();!w.done;w=m.next())if(w.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){m= !1;break a}m=!0}m&&(this.hZ=this.Xr[h]);m=!0}else if(y==="MARKER_TYPE_HEATMAP"){h=this.Xr[h];M=q=y=E=C=L=void 0;if(h&&h.markers){w=(y=(M=h.markersMetadata)==null?void 0:(q=M.heatmapMetadata)==null?void 0:q.minHeightDp)!=null?y:0;y=(L=(E=h.markersMetadata)==null?void 0:(C=E.heatmapMetadata)==null?void 0:C.maxHeightDp)!=null?L:60;L=this.Z.length;C=null;for(E=0;E=M&&A<=f&&q.push(R)}y>0&&(this.Ae.style.height=y+"px");M=this.T[E];f=q;R=w;var K=y,X=E===0;X=X===void 0?!1:X;UIX(M,K);x=f;A=M.L;X=X===void 0?!1:X;var c=1E3/x.length,r=[];r.push({x:0,y:100});for(var N=0;N0&&(C=q[q.length-1])}g.Z_(this)}y=void 0;w=[];if(h=(y=h.markersDecoration)==null?void 0:y.timedMarkerDecorations)for(h=g.D(h),y=h.next();!y.done;y=h.next())y=y.value,E=C=L=void 0,w.push({visibleTimeRangeStartMillis:(L=y.visibleTimeRangeStartMillis)!= null?L:-1,visibleTimeRangeEndMillis:(C=y.visibleTimeRangeEndMillis)!=null?C:-1,decorationTimeMillis:(E=y.decorationTimeMillis)!=null?E:NaN,label:y.label?g.fy(y.label):""});h=w;this.heatMarkersDecorations=h}}V.Sk=this.J;g.xN(this.element,"ytp-timed-markers-enabled",m);return m}; g.U.Vp=function(){g.Z_(this);an(this);DI1(this,this.J);if(this.L){var m=g.fF(this.element).x||0;this.L.Vp(m,this.N)}}; g.U.MWH=function(){var m=this.api.getVideoData();m&&Fk$(this,m)}; g.U.onClickCommand=function(m){if(m=g.d(m,o5)){var V=m.key;m.isVisible&&V&&SOU(this,V)}}; g.U.dVS=function(m){this.api.bH("innertubeCommand",this.lc[m.id])}; g.U.Yf=function(){an(this);var m=this.api.getCurrentTime();(mthis.clipEnd)&&this.wR()}; g.U.sJ=function(m){if(!m.defaultPrevented){var V=!1;switch(m.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);V=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);V=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);V=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);V=!0;break;case 38:this.api.Y("enable_key_press_seek_logging")&&Qk(this,this.api.getCurrentTime(),this.api.getCurrentTime()+5,"SEEK_SOURCE_SEEK_FORWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"); this.api.seekBy(5,void 0,void 0,72);V=!0;break;case 40:this.api.Y("enable_key_press_seek_logging")&&Qk(this,this.api.getCurrentTime(),this.api.getCurrentTime()-5,"SEEK_SOURCE_SEEK_BACKWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"),this.api.seekBy(-5,void 0,void 0,71),V=!0}V&&m.preventDefault()}}; g.U.dV=function(m,V){this.updateVideoData(V,m==="newdata")}; g.U.YHf=function(){this.dV("newdata",this.api.getVideoData())}; g.U.updateVideoData=function(m,V){V=V===void 0?!1:V;var O=!!m&&m.o8();O&&(qE(m)||Zip(this)?this.Rn=!1:this.Rn=m.allowLiveDvr,g.xN(this.api.getRootNode(),"ytp-enable-live-buffer",!(m==null||!qE(m))),Fk$(this,m));wxX(this,this.api.Cr());if(V){if(O){V=m.clipEnd;this.clipStart=m.clipStart;this.clipEnd=V;vk(this);for(p_(this,this.Zu,this.LP);this.T.length>0;)this.T.pop().dispose();this.heatMarkersDecorations=[];this.kD={};var h;(h=this.L)==null||h.reset();VN(this);g.xN(this.api.getRootNode(),"ytp-fine-scrubbing-exp", us(this))}else this.wR();this.L_()}if(m){var w;h=((w=this.KP)==null?void 0:w.type)==="clips";if(w=!m.isLivePlayback){w=this.api.getVideoData();V=g.FG(w);O=$I5(w);var y;w=V!=null||O!=null&&O.length>0||((y=w.w4)==null?void 0:y.length)>0}if(w&&!h){y=this.api.getVideoData();h=g.FG(y);w=!1;if(h==null?0:h.markersMap){w=this.api.getVideoData();var L;w.Za=((L=h.visibleOnLoad)==null?void 0:L.key)||w.Za;L=g.D(h.markersMap);for(h=L.next();!h.done;h=L.next())h=h.value,h.key&&h.value&&(this.kD[h.key]=h.value, h.value.onChapterRepeat&&(w.VZ=h.value.onChapterRepeat));w.Za!=null&&SOU(this,w.Za);w=!0}var C;if(((C=y.w4)==null?void 0:C.length)>0){C=g.gU.getState().entities;L=g.D(y.w4);for(h=L.next();!h.done;h=L.next()){h=h.value;O=void 0;V=(O=Bv(C,"macroMarkersListEntity",h))==null?void 0:O.markersList;var E=O=void 0;if(((O=V)==null?void 0:O.markerType)==="MARKER_TYPE_TIMESTAMPS"||((E=V)==null?void 0:E.markerType)==="MARKER_TYPE_HEATMAP")this.Xr[h]=V}w=this.yM()||w}!w&&(C=$I5(y))&&(kEI(this,C),y.ma=this.Z,YOp(this)); aG1(this,null);m.KH&&this.T.length===0&&(m=m.KH,C=m.key,m.isVisible&&C&&SOU(this,C))}else Wko(this),Hi3(this)}an(this)}; g.U.bA=function(m){this.V&&!g.l(m.state,32)&&this.api.getPresentingPlayerType()!==3&&this.V.cancel();var V;((V=this.L)==null?0:V.isEnabled)&&g.l(m.state,8)&&this.api.pauseVideo();m=this.api.getPresentingPlayerType()===2||!this.api.Cr()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.xN(this.IF,"ytp-hide-scrubber-button",m)}; g.U.Oa=function(m){var V=!!this.KP!==!!m,O=this.KP;this.KP=m;aG1(this,O);(m==null?void 0:m.type)!=="clips"&&m||(m?(this.updateValue("clipstarticon",m2m()),this.updateValue("clipendicon",m2m()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",Gm$()),this.updateValue("clipendicon",iJC()),this.updateValue("clipstarttitle","Assista o v\u00eddeo completo"),this.updateValue("clipendtitle","Assista o v\u00eddeo completo")),V&&(this.updateVideoData(this.api.getVideoData(), !0),g.Z_(this)),vk(this));p_(this,this.Zu,this.LP)}; g.U.myr=function(){this.api.publish("progressBarHoverStart")}; g.U.Dye=function(m,V,O){var h=g.fF(this.element),w=FO(this).Z,y=O?O.getAttribute("data-tooltip"):void 0,L=O?O.getAttribute("data-position"):void 0,C=O?O.getAttribute("data-offset-y"):void 0;C=C?Number(C):0;L&&(m=N6(this.D,Number(O.getAttribute("data-position")),0)*w+g.fF(this.progressBar).x);this.Aj.x=m-h.x;this.Aj.y=V-h.y;m=FO(this);O=ls(this,m);V=0;var E;if((E=this.api.getVideoData())==null?0:qE(E))(E=this.api.getProgressState().seekableEnd)&&O>E&&(O=E,m.position=N6(this.D,E)*FO(this).Z),V=this.D.L; Zip(this)&&(V=this.D.L);E=y||g.KX(this.Rn?O-this.D.Z:O-V);V=m.position+this.Ak;O-=this.api.OU();var q;if((q=this.L)==null||!q.isEnabled)if(this.api.NL()){if(this.Z.length>1){q=Bk(this,this.Aj.x,!0);if(!this.KP)for(h=0;h1)for(h=0;h0)for(q=this.Aj.x,h=g.D(this.J),w=h.next();!w.done;w=h.next())w=w.value,L=s5(this,w.timeRangeStartMillis/ (this.D.Z*1E3),FO(this)),g.xN(w.element,"ytp-timed-marker-hover",L<=q&&L+6>=q);h=this.tooltip.scale;q=this.api.Y("delhi_modern_web_player")?67:45;C=(isNaN(C)?0:C)-q*h;this.api.Y("web_key_moments_markers")?this.hZ?(q=i_l(this.J,O*1E3),q=q!=null?this.J[q].title:""):(q=yk(this.Z,O*1E3),q=this.Z[q].title):(q=yk(this.Z,O*1E3),q=this.Z[q].title);q||(C+=16*h);this.tooltip.scale===.6&&(g.Eh(this.api.j())?(C=this.api.xN().getPlayerSize().height-225,h=this.api.Y("delhi_modern_web_player")?70:110,C=q?C+h:C+ h+16):C=q?110:126);h=yk(this.Z,O*1E3);this.EH=GEU(this,O,h)?h:GEU(this,O,h+1)?h+1:-1;g.xN(this.api.getRootNode(),"ytp-progress-bar-snap",this.EH!==-1&&this.Z.length>1);h=!1;w=g.D(this.heatMarkersDecorations);for(L=w.next();!L.done;L=w.next()){L=L.value;var M=O*1E3;M>=L.visibleTimeRangeStartMillis&&M<=L.visibleTimeRangeEndMillis&&(q=L.label,E=g.KX(ls(this,m)),h=!0)}this.VV!==h&&(this.VV=h,this.api.logVisibility(this.VF,this.VV));g.xN(this.api.getRootNode(),"ytp-progress-bar-decoration",h);h=160*this.tooltip.scale* 2;w=q.length*(this.K?8.55:5.7);w=w<=h?w:h;L=w<160*this.tooltip.scale;h=3;!L&&w/2>m.position&&(h=1);!L&&w/2>this.N-m.position&&(h=2);this.api.j().J&&(C-=10);this.T.length&&this.T[0].o8&&(C-=14*(this.K?2:1),this.Mf||(this.Mf=!0,this.api.logVisibility(this.Ae,this.Mf)));var f;if(us(this)&&(((f=this.L)==null?0:f.isEnabled)||this.pA>0)){var x;C-=((x=this.L)==null?0:x.isEnabled)?(this.K?135:90)-this.mS:this.pA}f=void 0;us(this)&&!this.api.Y("web_player_hide_fine_scrubbing_edu")&&(f="Puxe para cima para uma busca precisa", this.fA||(this.fA=!0,this.api.logVisibility(this.wB,this.fA)));this.tooltip.UN(V,O,E,!!y,C,q,h,f)}else this.tooltip.UN(V,O,E,!!y,C);g.EM(this.api.getRootNode(),"ytp-progress-bar-hover");zSU(this)}; g.U.LX0=function(){this.L_();g.Ma(this.api.getRootNode(),"ytp-progress-bar-hover");this.Mf&&(this.Mf=!1,this.api.logVisibility(this.Ae,this.Mf));this.fA&&(this.fA=!1,this.api.logVisibility(this.wB,this.fA));this.api.Y("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.U.dyf=function(m,V){var O=g.fF(this.element);this.tq=m-O.x;us(this)&&this.L&&(this.L.iH?Sj(this.L,this.api.getCurrentTime()):RSC(this.L),this.L.show(),g.xN(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.L.isEnabled));this.WW&&(this.WW.dispose(),this.WW=null);this.zf=V;this.SW=this.api.getCurrentTime();this.Z.length>1&&this.EH!==-1?this.api.seekTo(this.Z[this.EH].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(ls(this,FO(this)),!1,void 0,void 0,7);g.EM(this.element,"ytp-drag");(this.on= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.U.IeH=function(){if(us(this)&&this.L){var m=(this.K?135:90)-this.mS;this.pA>=m*.5?(this.L.enable(),Sj(this.L,this.api.getCurrentTime()),hs3(this,m)):VN(this)}if(g.l(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var V;if((V=this.L)==null?0:V.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.Z.length>1&&this.EH!==-1)this.api.Y("html5_enable_progress_bar_slide_seek_logging")&&Qk(this,this.SW,this.Z[this.EH].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.Z[this.EH].startTime/1E3,void 0,void 0,void 0,7);else{m=ls(this,FO(this));this.api.Y("html5_enable_progress_bar_slide_seek_logging")&&Qk(this,this.SW,m,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(m,void 0,void 0,void 0,7);V=g.D(this.heatMarkersDecorations);for(var O=V.next();!O.done;O=V.next())O=O.value,m*1E3>=O.visibleTimeRangeStartMillis&&m*1E3<=O.visibleTimeRangeEndMillis&& this.api.logClick(this.VF)}g.Ma(this.element,"ytp-drag");this.iH&&(this.v6.src=this.iH);this.on&&!g.l(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.U.z7z=function(m,V){var O=this,h=FO(this),w=ls(this,h);this.api.xN().Cd||(h.position>this.tq+2?this.ma&&(this.v6.src=this.ma):h.position1);this.eU(m&&this.U.xN().getPlayerSize().width>=400);this.U.logVisibility(this.element,this.cD);var V=1;m&&this.isActive()&&(V=2);if(this.Z!==V){this.Z=V;m=this.U.Y("delhi_modern_web_player_icons");switch(V){case 1:this.updateValue("icon",m?{G:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:{G:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{G:"path",Df:!0,B:{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", m?{G:"svg",B:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{G:"path",B:{d:"M21.20 3.01C21.69 3.06 22.15 3.29 22.48 3.65C22.81 4.02 23.00 4.50 23 5V19L22.99 19.20C22.94 19.66 22.73 20.08 22.41 20.41C22.08 20.73 21.66 20.94 21.20 20.98L21 21H14C13.99 20.31 13.94 19.65 13.84 19H21V5H3V8.15C2.34 8.05 1.68 8.00 1 8V5C0.99 4.50 1.18 4.02 1.51 3.65C1.84 3.29 2.30 3.06 2.79 3.01L3 3H21L21.20 3.01ZM19 17V7H5V8.62C6.95 9.26 8.73 10.35 10.19 11.80C11.64 13.26 12.73 15.04 13.37 17H19ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:g.svU())}g.xN(this.element,"ytp-remote-button-active",this.isActive())}}; OH.prototype.L=function(){if(this.U.getOption("remote","quickCast"))this.U.setOption("remote","quickCast",!0);else{var m=this.Qp,V=this.element;if(m.FQ())m.EU();else{m.initialize();a:{var O=g.D(m.We.items);for(var h=O.next();!h.done;h=O.next())if(h=h.value,h.priority===1){O=h;break a}O=null}O&&(O.open(),m.OI(V));m.OI(V)}}this.U.logClick(this.element)};g.t(h2,g.p);h2.prototype.Z=function(m){var V=this.U.j(),O=400;V.N?O=300:V.J&&(O=200);m=this.L&&m.width>=O;this.eU(m);this.U.logVisibility(this.element,m)}; h2.prototype.D=function(){if(this.Qp.cD)this.Qp.EU();else{var m=g.t_(this.U.Gp());m&&!m.loaded&&(m.QW("tracklist",{includeAsr:!0}).length||m.load());this.U.logClick(this.element);this.Qp.OI(this.element)}}; h2.prototype.updateBadge=function(){var m=this.U.isHdr(),V=this.U.getPresentingPlayerType(),O=V!==2&&V!==3,h=g.a0(this.U),w=O&&!!g.FK(this.U.Gp());V=w&&h.displayMode===1;h=w&&h.displayMode===2;O=(w=V||h)||!O?null:this.U.getPlaybackQuality();g.xN(this.element,"ytp-hdr-quality-badge",m);g.xN(this.element,"ytp-hd-quality-badge",!m&&(O==="hd1080"||O==="hd1440"));g.xN(this.element,"ytp-4k-quality-badge",!m&&O==="hd2160");g.xN(this.element,"ytp-5k-quality-badge",!m&&O==="hd2880");g.xN(this.element,"ytp-8k-quality-badge", !m&&O==="highres");g.xN(this.element,"ytp-3d-badge-grey",!m&&w&&V);g.xN(this.element,"ytp-3d-badge",!m&&w&&h)};g.t(wF,g.$D);g.U=wF.prototype;g.U.oY=function(){var m=this.U.getAvailableAudioTracks();if(m.length>1){if(this.U.j().experiments.wu().Z.lH(MGa)){var V=m.filter(function(w){return w.isAutoDubbed()}),O=m.filter(function(w){return!w.isAutoDubbed()}).map(this.EM); V.length>0&&(this.U.uH("ad_grp",{ad_c:V.length,t_c:m.length}),O.push(new $t5),O.push.apply(O,g.b(V.map(this.EM))));k4U(this,O)}else this.Wt(g.rb(m,this.EM));this.tracks=g.Um(m,this.EM,this);this.countLabel.setContent(m.length?" ("+m.length+")":"");this.publish("size-change");m=this.EM(this.U.getAudioTrack());this.St(m);if(this.U.Y("html5_enable_new_audio_settings_menu")){var h;(h=this.Z)!=null&&h.setContent(m.toString())}this.enable(!0)}else this.U.Y("html5_enable_new_audio_settings_menu")&&(V=this.Z)!= null&&V.setContent(""),this.enable(!1)}; g.U.Zk=function(m){g.$D.prototype.Zk.call(this,m);m=this.tracks[m];this.U.setAudioTrack(m);this.Qp.IK();this.U.j().experiments.wu().Z.lH(MGa)&&this.U.uH("ad_sel",{lang:m.fP.id})}; g.U.EM=function(m){return m.toString()}; g.U.hs=function(m){this.U.Y("html5_enable_new_audio_settings_menu")?this.Z&&(m?this.Z.SU(this):this.Z.TB(this)):g.$D.prototype.hs.call(this,m)}; g.U.onClick=function(){this.U.logClick(this.element)};g.t(jma,g.wd);g.U=jma.prototype;g.U.Dk=function(){this.U.Dk()}; g.U.open=function(){this.PB.lC()>0&&g.tw(this.Qp,this.PB)}; g.U.t6=function(){this.PB.lC()>0&&this.U.getPresentingPlayerType()!==2&&this.U.getPresentingPlayerType()!==3?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")}; g.U.sJ=function(m){m.defaultPrevented||(this.open(),m.preventDefault())}; g.U.SU=function(m){this.PB.SU(m)}; g.U.TB=function(m){this.PB.TB(m)};g.t(yN,RE); yN.prototype.t6=function(){var m=this.U.getPresentingPlayerType();if(m!==2&&m!==3&&g.Gc(this.U))this.Z||(this.Qp.SU(this),this.Z=!0,this.L.push(this.C(this.U,"videodatachange",this.t6)),this.L.push(this.C(this.U,"videoplayerreset",this.t6)),this.L.push(this.C(this.U,"onPlaylistUpdate",this.t6)),this.L.push(this.C(this.U,"autonavchange",this.D)),m=this.U.getVideoData(),this.D(m.autonavState),this.U.logVisibility(this.element,this.Z));else if(this.Z){this.Qp.TB(this);this.Z=!1;m=g.D(this.L);for(var V= m.next();!V.done;V=m.next())this.yu(V.value)}}; yN.prototype.D=function(m){oE(this,m!==1)}; yN.prototype.onSelect=function(m){this.U.Cg(m?2:1);this.Z&&(this.U.logVisibility(this.element,this.Z),this.U.logClick(this.element))}; yN.prototype.d0=function(){this.Z&&this.Qp.TB(this);RE.prototype.d0.call(this)};g.t(LLU,g.wd);LLU.prototype.onClick=function(m){m.preventDefault();var V,O;(V=g.Hz(this.U))==null||(O=V.tZ())==null||O.EU();var h,w;(h=g.Hz(this.U))==null||(w=h.Ts())==null||w.OI(m.target)};g.t(JS7,g.$D);g.U=JS7.prototype; g.U.t6=function(){var m=this.U.getPresentingPlayerType();if(m!==2&&m!==3){this.Ae=this.U.DF();var V=this.U.getAvailableQualityLevels();if(this.Z){this.L={};m=g.dm(this.U,"getAvailableQualityData",[]);m=g.D(m);for(var O=m.next();!O.done;O=m.next())O=O.value,this.L[O.qualityLabel]=O;m=Object.keys(this.L);V[V.length-1]==="auto"&&m.push("auto");this.mS=new Set(V)}else if(this.T){O=g.dm(this.U,"getAvailableQualityData",[]);m=[];O=g.D(O);for(var h=O.next();!h.done;h=O.next())h=h.value,this.N[h.quality]= h,h.quality&&m.push(h.quality);V[V.length-1]==="auto"&&m.push("auto")}else m=V;g.f7p(this.U)&&this.U.er()&&m.unshift("missing-qualities");V=this.U.app.OH();O=V.getVideoData();if(!O.L||!O.L.video||O.L.video.qualityOrdinal<1080||O.vk)V=!1;else{h=/^qsa/.test(O.clientPlaybackNonce);var w="r";O.L.id.indexOf(";")>=0&&(h=/^[a-p]/.test(O.clientPlaybackNonce),w="x");h?(V.uH("iqss",{trigger:w},!0),V=!0):V=!1}V&&m.unshift("inline-survey");this.Wt(m);V=this.U.getVideoData().cotn?!0:!1;O=this.Zu.KC();O=!g.Eh(this.U.j())|| !(V===void 0?0:V)||!(O===void 0||O);V=this.PB;O=O===void 0?!1:O;V.AG&&g.xN(V.LA("ytp-panel-footer"),"ytp-panel-hide-footer",O===void 0?!1:O);if(m.length){this.rL();this.enable(!0);return}}this.enable(!1)}; g.U.rL=function(){if(this.Z){var m=this.U.getPreferredQuality();this.mS.has(m)&&(this.K=this.U.getPlaybackQuality(),this.J=this.U.getPlaybackQualityLabel(),m==="auto"?(this.St(m),this.setContent(this.fq(m))):this.St(this.J))}else m=this.U.getPreferredQuality(),this.options[m]&&(this.K=this.U.getPlaybackQuality(),this.St(m),m==="auto"&&this.setContent(this.fq(m)))}; g.U.Zk=function(m){if(m!=="missing-qualities"){g.$D.prototype.Zk.call(this,m);var V=this.Z?this.L[m]:this.N[m];var O=V==null?void 0:V.quality,h=V==null?void 0:V.formatId,w=V==null?void 0:V.paygatedQualityDetails;V=w==null?void 0:w.endpoint;if(w){var y;w=(y=this.options[m])==null?void 0:y.element;this.U.logClick(w)}if(this.Z){var L,C;if((L=g.d(V,g.V$W))==null?0:(C=L.popup)==null?0:C.notificationActionRenderer)this.U.bH("innertubeCommand",V);else if(V){this.U.bH("innertubeCommand",V);return}h?this.U.setPlaybackQuality(O, h):this.U.setPlaybackQuality(O)}else{if(this.T){var E,q;if((E=g.d(V,g.V$W))==null?0:(q=E.popup)==null?0:q.notificationActionRenderer)this.U.bH("innertubeCommand",V);else if(V){this.U.bH("innertubeCommand",V);return}}this.U.setPlaybackQuality(m)}this.Qp.EU();this.t6()}}; g.U.open=function(){for(var m=g.D(Object.values(this.options)),V=m.next();!V.done;V=m.next()){V=V.value;var O=void 0;this.U.hasVe((O=V)==null?void 0:O.element)&&(O=void 0,this.U.logVisibility((O=V)==null?void 0:O.element,!0))}g.$D.prototype.open.call(this);this.U.logClick(this.element)}; g.U.Zz=function(m,V,O){var h=this;if(m==="missing-qualities")return new g.wd({G:"a",KA:["ytp-menuitem"],B:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.U.j().Qt,tabindex:"0",role:"menuitemradio"},S:[{G:"div",KA:["ytp-menuitem-label"],c6:"{{label}}"}]},V,this.fq(m));if(m!=="inline-survey"){var w,y=(w=this.Z?this.L[m]:this.N[m])==null?void 0:w.paygatedQualityDetails;w=y==null?void 0:y.veType;y=y==null?void 0:y.trackingParams;V=g.$D.prototype.Zz.call(this,m,V,O);y?(this.U.createServerVe(V.element, this,!0),this.U.setTrackingParams(V.element,y)):w&&this.U.createClientVe(V.element,this,w,!0);return V}m=[{G:"span",c6:"Que tal?"}];O=g.D([!0,!1]);y=O.next();for(w={};!y.done;w={R$:void 0},y=O.next())w.R$=y.value,y=new g.p({G:"span",X:"ytp-menuitem-inline-survey-response",S:[w.R$?PB0():Btm()],B:{tabindex:"0",role:"button"}}),y.listen("click",function(L){return function(){var C=h.U.app.OH();C.uH("iqsr",{tu:L.R$});C.getVideoData().vk=!0;h.Qp.EU();h.t6()}}(w)),m.push(y); return new g.wd({G:"div",X:"ytp-menuitem",B:{"aria-disabled":"true"},S:[{G:"div",KA:["ytp-menuitem-label"],S:m}]},V)}; g.U.fq=function(m,V){V=V===void 0?!1:V;if(m==="missing-qualities")return{G:"div",c6:"Faltam op\u00e7\u00f5es?"};if(m==="inline-survey")return"";var O=this.T||this.Z?[qu$(this,m,V,!1)]:[E9l(this,m)];var h=this.U.getPreferredQuality();V||h!=="auto"||m!=="auto"||(O.push(" "),this.Z?O.push(qu$(this,this.J,V,!0,["ytp-menu-label-secondary"])):this.T?O.push(qu$(this,this.K,V,!0,["ytp-menu-label-secondary"])):O.push(E9l(this,this.K,["ytp-menu-label-secondary"])));return{G:"div",S:O}};g.t(jg,k6);g.U=jg.prototype;g.U.RX=function(){k6.prototype.RX.call(this);this.J&&this.wC()}; g.U.P2A=function(){this.U.Y("enable_web_premium_varispeed")&&re(this,Math.round(this.L/.05)*.05);this.V()}; g.U.N0=function(){this.U.setPlaybackRate(this.L,!0)}; g.U.wC=function(){this.J.textContent=this.L.toFixed(2)+"x";var m=this.L>2&&this.U.Y("enable_web_premium_varispeed");this.Zu.classList.toggle("ytp-speedslider-premium-badge",m);this.Zu.setAttribute("aria-label",m?"Premium":"")}; g.U.v4=function(m){k6.prototype.v4.call(this,m);this.V();this.wC();m.preventDefault()};g.t(LB,g.p);g.U=LB.prototype;g.U.init=function(){this.bx(this.Z);this.updateValue("minvalue",this.L);this.updateValue("maxvalue",this.D)}; g.U.XM=function(m){if(!m.defaultPrevented){switch(m.keyCode){case 37:case 40:var V=-this.J;break;case 39:case 38:V=this.J;break;default:return}this.bx(this.Z+V);m.preventDefault()}}; g.U.JE=function(m){var V=this.Z;V+=(m.deltaX||-m.deltaY)<0?-this.V:this.V;this.bx(V);m.preventDefault()}; g.U.ey=function(m){m=(m-g.fF(this.T).x)/this.Zu*this.range+this.L;this.bx(m)}; g.U.bx=function(m,V){V=V===void 0?"":V;m=g.O2(m,this.L,this.D);V===""&&(V=m.toString());this.updateValue("valuenow",m);this.updateValue("valuetext",V);this.Ae.style.left=(m-this.L)/this.range*(this.Zu-this.iH)+"px";this.Z=m}; g.U.focus=function(){this.EH.focus()};g.t(J2,LB);J2.prototype.mS=function(){this.U.setPlaybackRate(this.Z,!0)}; J2.prototype.wC=function(){this.K.textContent=MQ3(this,this.Z)+"x"}; J2.prototype.bx=function(m){LB.prototype.bx.call(this,m,MQ3(this,m).toString());this.K&&(this.wC(),this.v6())}; J2.prototype.updateValues=function(){var m=this.U.getPlaybackRate();MQ3(this,this.Z)!==m&&(this.bx(m),this.wC())};g.t(fyG,g.ED);fyG.prototype.focus=function(){this.Z.focus()};g.t(xl5,gh);g.t(o9$,g.$D);g.U=o9$.prototype;g.U.onVideoDataChange=function(m){m==="dataloaded"&&(m=this.U.getAvailablePlaybackRates(),g.og(this.T,m)||(this.T=m,this.fR.dispose(),this.fR=new jg(this.U)),this.oY())}; g.U.fq=function(m){return m==="1"?"Normal":m.toLocaleString()}; g.U.oY=function(){var m,V=(m=this.U.getVideoData())==null?void 0:m.Z4();m=this.U.getPresentingPlayerType(V);this.enable(m!==2&&m!==3);UlC(this)}; g.U.Wt=function(m){g.$D.prototype.Wt.call(this,m);this.fR&&this.fR.Z.focus()}; g.U.hs=function(m){g.$D.prototype.hs.call(this,m);m?(this.Zu=this.C(this.U,"onPlaybackRateChange",this.onPlaybackRateChange),UlC(this),g9I(this,this.U.getPlaybackRate()),this.U.Y("enable_web_premium_varispeed_upsell")&&(this.U.logVisibility(this.element,!0),this.L&&this.U.logVisibility(this.J.element,!0))):(this.yu(this.Zu),this.Zu=null)}; g.U.onPlaybackRateChange=function(m){var V=this.U.getPlaybackRate();!this.K&&this.T.includes(V)||ASp(this,V);g9I(this,m)}; g.U.Zz=function(m,V,O){return m===this.Z&&tQI(this.U)?g.$D.prototype.Zz.call(this,m,V,O,{G:"div",X:"ytp-speed-slider-menu-footer",S:[this.fR]}):m===this.L&&Rsp(this.U,this.Ae)?dlX(this,m,V,O):g.$D.prototype.Zz.call(this,m,V,O)}; g.U.Zk=function(m){g.$D.prototype.Zk.call(this,m);m===this.L?(this.U.logClick(this.J.element),this.U.bH("innertubeCommand",this.Ae)):m===this.Z?this.U.setPlaybackRate(this.N,!0):this.U.setPlaybackRate(Number(m),!0);(!tQI(this.U)||m!==this.Z&&m!==this.L)&&this.Qp.IK()}; g.U.nH=function(m){var V=m===this.Z;this.K=!1;V&&CB(this.U)&&!tQI(this.U)?(m=new xl5(this.U),g.tw(this.Qp,m)):g.$D.prototype.nH.call(this,m)};g.t(WL7,g.$D);g.U=WL7.prototype;g.U.St=function(m){g.$D.prototype.St.call(this,m)}; g.U.b7=function(m){return m.option.toString()}; g.U.getOption=function(m){return this.settings[m]}; g.U.fq=function(m){return this.getOption(m).text||""}; g.U.Zk=function(m){g.$D.prototype.Zk.call(this,m);this.publish("settingChange",this.setting,this.settings[m].option)};g.t(qG,g.Aw);qG.prototype.yW=function(m){for(var V=g.D(Object.keys(m)),O=V.next();!O.done;O=V.next()){var h=O.value;if(O=this.NH[h]){var w=m[h].toString();h=!!m[h+"Override"];O.options[w]&&(O.St(w),O.L.element.setAttribute("aria-checked",String(!h)),O.Z.element.setAttribute("aria-checked",String(h)))}}}; qG.prototype.aS=function(m,V){this.publish("settingChange",m,V)};g.t(MG,g.$D);MG.prototype.Z=function(m){return m.languageCode}; MG.prototype.fq=function(m){return this.languages[m].languageName||""}; MG.prototype.Zk=function(m){this.publish("select",m);this.U.logClick(this.element);g.Kf(this.Qp)};g.t(Tz7,g.$D);g.U=Tz7.prototype;g.U.Ft=function(m){return g.c8(m)?"__off__":m.displayName}; g.U.fq=function(m){return m==="__off__"?"Desativado":m==="__translate__"?"Traduzir automaticamente":m==="__contribute__"?"Adicionar legendas/CC":m==="__correction__"?"Sugerir corre\u00e7\u00f5es na legenda":(m==="__off__"?{}:this.tracks[m]).displayName}; g.U.Zk=function(m){if(m==="__translate__")this.Z.open();else if(m==="__contribute__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var V=g.TX(this.U.j(),this.U.getVideoData());g.aR(V)}else if(m==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var O=$l$(this);fB(this,O);g.$D.prototype.Zk.call(this,this.Ft(O));var h,w;O=(V=this.U.getVideoData().getPlayerResponse())==null?void 0:(h=V.captions)==null?void 0:(w=h.playerCaptionsTracklistRenderer)== null?void 0:w.openTranscriptCommand;this.U.bH("innertubeCommand",O);this.Qp.IK();this.L&&this.U.logClick(this.L)}else{if(m==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();V=$l$(this);fB(this,V);g.$D.prototype.Zk.call(this,this.Ft(V));var y,L;V=(O=this.U.getVideoData().getPlayerResponse())==null?void 0:(y=O.captions)==null?void 0:(L=y.playerCaptionsTracklistRenderer)==null?void 0:L.openTranscriptCommand;this.U.bH("innertubeCommand",V)}else this.U.logClick(this.element), fB(this,m==="__off__"?{}:this.tracks[m]),g.$D.prototype.Zk.call(this,m);this.Qp.IK()}}; g.U.oY=function(){var m=this.U.getOptions();m=m&&m.indexOf("captions")!==-1;var V=this.U.getVideoData(),O=V&&V.SA,h,w=!((h=this.U.getVideoData())==null||!g.JF(h));h={};if(m||O){var y;if(m){var L=this.U.getOption("captions","track");h=this.U.getOption("captions","tracklist",{includeAsr:!0});var C=w?[]:this.U.getOption("captions","translationLanguages");this.tracks=g.Um(h,this.Ft,this);w=g.rb(h,this.Ft);var E,q;$l$(this)&&((y=V.getPlayerResponse())==null?0:(E=y.captions)==null?0:(q=E.playerCaptionsTracklistRenderer)== null?0:q.openTranscriptCommand)&&w.push("__correction__");if(C.length&&!g.c8(L)){if((y=L.translationLanguage)&&y.languageName){var M=y.languageName;y=C.findIndex(function(f){return f.languageName===M}); mA0(C,y)}Xxo(this.Z,C);w.push("__translate__")}y=this.Ft(L)}else this.tracks={},w=[],y="__off__";w.unshift("__off__");this.tracks.__off__={};O&&w.unshift("__contribute__");this.tracks[y]||(this.tracks[y]=L,w.push(y));this.Wt(w);this.St(y);L&&L.translationLanguage?this.Z.St(this.Z.Z(L.translationLanguage)):Yr7(this.Z);m&&this.T.yW(this.U.getSubtitlesUserSettings());this.countLabel.setContent(h&&h.length?" ("+h.length+")":"");this.publish("size-change");this.U.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.U.aN=function(m){var V=this.U.getOption("captions","track");V=g.bX(V);V.translationLanguage=this.Z.languages[m];fB(this,V)}; g.U.aS=function(m,V){if(m==="reset")this.U.resetSubtitlesUserSettings();else{var O={};O[m]=V;this.U.updateSubtitlesUserSettings(O)}Hap(this,!0);this.K.start();this.T.yW(this.U.getSubtitlesUserSettings())}; g.U.BoA=function(m){m||g.hY(this.K)}; g.U.d0=function(){g.hY(this.K);g.$D.prototype.d0.call(this)}; g.U.open=function(){g.$D.prototype.open.call(this);this.options.__correction__&&!this.L&&(this.L=this.options.__correction__.element,this.U.createClientVe(this.L,this,167341),this.U.logVisibility(this.L,!0))};g.t(xJ,gh);xJ.prototype.onPlaybackRateChange=function(m){re(this.fR,m,!0);this.wC(m)}; xJ.prototype.wC=function(m){m=Math.round(m*20)/20;this.Gb.element.textContent=m.toFixed(2)+"x";this.dN.element.classList.toggle("ytp-variable-speed-panel-premium-badge-visible",m>2)}; xJ.prototype.E7=function(){for(var m=this.U.getPlayerSize().width,V=g.D(this.element.getElementsByClassName("ytp-variable-speed-panel-preset-button")),O=V.next();!O.done;O=V.next()){O=O.value;var h=void 0,w=Number((h=O.dataset.priority)!=null?h:0);h=!0;m<680?h=w>1:m<1900&&(h=w>0);g.gb(O,h);O.setAttribute("aria-hidden",h?"false":"true")}};g.t(RO,g.$D);RO.prototype.Z=function(){var m,V=(m=this.U.getVideoData())==null?void 0:m.Z4();m=this.U.getPresentingPlayerType(V);this.enable(m!==2&&m!==3)}; RO.prototype.L=function(m){this.setContent(m===1?"Normal":m.toString())}; RO.prototype.open=function(){g.tw(this.Qp,new xJ(this.U))};g.t(Yua,g.dh);g.U=Yua.prototype; g.U.initialize=function(){if(!this.isInitialized){var m=this.U.j();this.isInitialized=!0;try{this.O3=new JS7(this.U,this)}catch(O){g.cj(Error("QualityMenuItem creation failed"))}g.a(this,this.O3);var V=new Tz7(this.U,this);g.a(this,V);m.enableSpeedOptions&&(m.Y("web_enable_varispeed_panel")?(V=new RO(this.U,this),g.a(this,V)):(V=new o9$(this.U,this),g.a(this,V)));(g.sY(m)||m.N)&&(m.L||m.Mf)&&(V=new LLU(this.U,this),g.a(this,V));m.l2&&!m.Y("web_player_move_autonav_toggle")&&(V=new yN(this.U,this), g.a(this,V));m.Y("html5_enable_new_audio_settings_menu")?(this.eA=new jma(this.U,this),g.a(this,this.eA)):(m=new wF(this.U,this),g.a(this,m));this.U.publish("settingsMenuInitialized");ySa(this.settingsButton,this.We.lC())}}; g.U.SU=function(m){this.initialize();this.We.SU(m);ySa(this.settingsButton,this.We.lC())}; g.U.TB=function(m){this.UH()||(this.cD&&this.We.lC()<=1&&this.hide(),this.We.TB(m),ySa(this.settingsButton,this.We.lC()))}; g.U.OI=function(m){this.initialize();this.We.lC()>0&&g.dh.prototype.OI.call(this,m)}; g.U.EU=function(){this.Zn?this.Zn=!1:g.dh.prototype.EU.call(this)}; g.U.show=function(){g.dh.prototype.show.call(this);g.EM(this.U.getRootNode(),"ytp-settings-shown")}; g.U.hide=function(){g.dh.prototype.hide.call(this);g.Ma(this.U.getRootNode(),"ytp-settings-shown")}; g.U.zB=function(m){this.U.logVisibility(this.element,m);this.U.publish("settingsMenuVisibilityChanged",m)}; g.U.Dk=function(){this.U.Dk()};g.t(cSU,g.p);g.U=cSU.prototype;g.U.onClick=function(){if(oO(this)&&(this.U.toggleSubtitles(),this.U.logClick(this.element),!this.isEnabled())){var m=!1,V=g.a$().lH(65);g.Eh(this.U.j())&&V!=null&&(m=!V);m&&this.U.j().Y("web_player_nitrate_promo_tooltip")&&this.U.publish("showpromotooltip",this.element)}}; g.U.LoS=function(m){var V,O;(V=g.Hz(this.U))==null||(O=V.tZ())==null||O.OI(m)}; g.U.isEnabled=function(){var m=this.U.getOption("captions","track");return!(!m||!m.displayName)}; g.U.oY=function(){var m=oO(this),V=300;this.U.j().J&&(V=480);this.U.Y("delhi_modern_web_player_icons")&&this.updateValue("icon",rSa(this));var O=this.U.j();if(O.Y("html5_hide_unavailable_subtitles_button")?0:!O.N){if(m){var h;(h=this.LA("ytp-subtitles-button-icon"))==null||h.setAttribute("fill-opacity","1");this.U.j().Y("player_tooltip_data_title_killswitch")?this.updateValue("title",g.S3(this.U,"Legendas/legendas ocultas","c")):this.update({"tooltip-title":g.S3(this.U,"Legendas/legendas ocultas", "c")});this.update({"data-title-no-tooltip":"Legendas/legendas ocultas"})}else{if(this.U.Y("delhi_modern_web_player_icons")){var w;(w=this.LA("ytp-subtitles-button-icon"))==null||w.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var y;(y=this.LA("ytp-subtitles-button-icon"))==null||y.setAttribute("fill-opacity","0.3")}this.updateValue("title","N\u00e3o h\u00e1 legendas/legendas descritivas dispon\u00edveis");this.update({"tooltip-title":"N\u00e3o h\u00e1 legendas/legendas descritivas dispon\u00edveis"}); this.update({"data-title-no-tooltip":"N\u00e3o h\u00e1 legendas/legendas descritivas dispon\u00edveis"})}O=this.U.Y("player_disable_caption_button_if_captions_not_available")&&this.U.Y("delhi_modern_web_player")?m:!0}else this.updateValue("title",g.S3(this.U,"Legendas/legendas ocultas","c")),this.update({"tooltip-title":g.S3(this.U,"Legendas/legendas ocultas","c")}),this.update({"data-title-no-tooltip":"Legendas/legendas ocultas"}),O=m;this.tooltip.cj();O=O&&this.U.xN().getPlayerSize().width>=V;this.eU(O); this.U.logVisibility(this.element,O);m?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.U.u2=function(m){g.p.prototype.u2.call(this,m)};g.t(g.gF,g.p);g.U=g.gF.prototype;g.U.canShowCountdown=function(){return!UH(this)&&!A2(this)}; g.U.Yf=function(){var m=this.api.xN().getPlayerSize().width,V=this.Zu;this.api.j().J&&(V=400);V=m>=V&&(!A2(this)||!g.l(this.api.getPlayerStateObject(),64));this.eU(V);g.xN(this.element,"ytp-time-display-allow-autohide",V&&m<400);m=this.api.getProgressState();if(V){var O=this.api.getPresentingPlayerType();V=this.api.getCurrentTime(O,!1);this.L&&(V-=m.airingStart);UH(this)&&(V-=this.KP.startTimeMs/1E3);this.canShowCountdown()&&this.D&&(V-=this.api.getDuration(O,!1));var h=g.KX(V);this.T!==h&&(this.updateValue("currenttime", h),this.T=h);O=UH(this)?(this.KP.endTimeMs-this.KP.startTimeMs)/1E3:this.api.getDuration(O,!1);h=g.KX(O);this.K!==h&&(this.updateValue("duration",h),this.K=h);V=g.w0("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.KX(V,!0),DURATION:g.KX(O,!0)});this.updateValue("timeDisplayAriaLabel",V)}DlG(this,m.isAtLiveHead);Nz7(this,this.api.getLoopRange())}; g.U.onLoopRangeChange=function(m){var V=this.KP!==m;this.KP=m;V&&(this.Yf(),ba0(this))}; g.U.G6N=function(){this.api.setLoopRange(null)}; g.U.O4Y=function(){this.D=!this.D;this.Yf()}; g.U.onVideoDataChange=function(m,V,O){this.updateVideoData((this.api.j().Y("enable_topsoil_wta_for_halftime")||this.api.j().Y("enable_topsoil_wta_for_halftime_live_infra"))&&O===2?this.api.getVideoData(1):V);this.Yf();ba0(this)}; g.U.updateVideoData=function(m){this.I9=m.isLivePlayback&&!m.Yq;this.L=qE(m);this.isPremiere=m.isPremiere;var V,O,h;this.liveIndicatorText=(m=(V=m.getWatchNextResponse())==null?void 0:(O=V.playerOverlays)==null?void 0:(h=O.playerOverlayRenderer)==null?void 0:h.liveIndicatorText)?E_(m):null;g.xN(this.element,"ytp-live",A2(this));this.api.Y("delhi_modern_web_player")&&this.LA("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.U.onClick=function(m){m.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.U.d0=function(){this.Z&&this.Z();g.p.prototype.d0.call(this)};g.t(Iy3,g.p);g.U=Iy3.prototype;g.U.EB=function(){es$(this)}; g.U.yqu=function(m){n93(this,m);this.V&&es$(this)}; g.U.b3=function(m){if(!m.defaultPrevented){var V=m.keyCode,O=null;V===37?O=this.volume-5:V===39?O=this.volume+5:V===36?O=0:V===35&&(O=100);O!==null&&(O=g.O2(O,0,100),O===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(O)),m.preventDefault())}}; g.U.Od=function(m){var V=m.deltaX||-m.deltaY;m.deltaMode?this.api.setVolume(this.volume+(V<0?-10:10)):this.api.setVolume(this.volume+g.O2(V/10,-10,10));m.preventDefault();var O,h;((O=this.api.j())==null?0:(h=O.getWebPlayerContextConfig())==null?0:h.enableFullscreenComponentsFeature)&&m.stopPropagation()}; g.U.n2H=function(){dF(this,this.Z,!0,this.L,this.api.Yc());this.Zu=this.volume;this.api.isMuted()&&this.api.unMute()}; g.U.rg=function(m){var V=this.D?78:52,O=this.D?18:12;m-=g.fF(this.J).x;O=g.O2((m-O/2)/(V-O),0,1);this.V&&(O=g.O2(m/V,0,1));V=O;V=this.api.Y("web_player_non_linear_volume_controls")?V<=.25?V/.25*.1:.1+(V-.25)/.75*.9:V;this.api.setVolume(V*100)}; g.U.VWH=function(){dF(this,this.Z,!1,this.L,this.api.Yc());this.volume===0&&(this.api.mute(),this.api.setVolume(this.Zu))}; g.U.onVolumeChange=function(m){Sup(this,m.volume,m.muted)}; g.U.uK=function(){dF(this,this.Z,this.isDragging,this.L,this.api.Yc())}; g.U.d0=function(){g.p.prototype.d0.call(this);g.Ma(this.N,"ytp-volume-slider-active")};g.t(t2,g.p); t2.prototype.onVideoDataChange=function(){var m=this.api.j();this.Vp();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).Sb;this.eU(this.visible);this.api.logVisibility(this.element,this.visible&&this.Qt);if(this.visible){var V=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",V)}m.D&&(this.Z&&(this.yu(this.Z),this.Z=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.EM(this.element,"no-link")); V=this.api.j();m=this.api.getVideoData();var O="";V.D||(V=g.yl(V),V.indexOf("www.")===0&&(V=V.substring(4)),O=g.ME(m)?"Assistir no YouTube Music":V==="youtube.com"?"Assistir no YouTube":g.w0("Assista em $WEBSITE",{WEBSITE:V}));this.api.Y("player_tooltip_data_title_killswitch")?this.updateValue("title",O):this.updateValue("tooltip-title",O)}; t2.prototype.onClick=function(m){this.api.Y("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var V=this.api.j(),O=this.api.getVideoUrl(!g.W5(m),!1,!0,!0);if(g.sY(V)){var h={};g.sY(V)&&g.dm(this.api,"addEmbedsConversionTrackingParams",[h]);O=g.N_(O,h)}g.Aj(O,this.api,m);this.api.Y("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; t2.prototype.Vp=function(){var m={G:"svg",B:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},S:[{G:"path",Df:!0,X:"ytp-svg-fill",B:{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 "}}]}, V=28666,O=this.api.getVideoData();this.api.isEmbedsShortsMode()?m={G:"svg",B:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},S:[{G:"path",B:{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.ME(O)&&(m={G:"svg",B:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},S:[{G:"path",B:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{G:"path",B:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{G:"path",B:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{G:"path",B:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{G:"path",B:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{G:"path",B:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{G:"path",B:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{G:"path",B:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{G:"path",B:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{G:"path",B:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{G:"path",B:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{G:"path",B:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", fill:"white"}}]},V=216163);g.ME(O)?g.EM(this.element,"ytp-youtube-music-button"):g.Ma(this.element,"ytp-youtube-music-button");m.B=Object.assign({},m.B,{"aria-hidden":"true"});this.updateValue("logoSvg",m);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,V,!0)}; t2.prototype.u2=function(m){g.p.prototype.u2.call(this,m);this.api.logVisibility(this.element,this.visible&&m)};g.t(Za7,g.Rc);g.U=Za7.prototype;g.U.onProgress=function(){if(this.U.Y("web_player_max_seekable_on_ended")||!g.l(this.U.getPlayerStateObject(),2))D3(this.Ny),this.progressBar.Yf(),this.OV.Yf()}; g.U.ZR=function(){this.FW();if(D3(this.Ny))this.progressBar.L_();else this.onProgress()}; g.U.wg=function(){this.onProgress();this.V.start()}; g.U.FW=function(){var m;if(m=!this.U.j().L){m=this.progressBar;var V=2*g.CI()*m.N,O=m.D;m=(O.Z-O.L)*1E3/m.api.getPlaybackRate()/V<300}m=m&&this.U.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;V=!m;D3(this.Ny)&&(m=V=!1);V?this.Ae||(this.Ae=this.C(this.U,"progresssync",this.onProgress)):this.Ae&&(this.yu(this.Ae),this.Ae=null);m?this.V.isActive()||this.V.start():this.V.stop()}; g.U.Vp=function(){var m=this.U.GM(),V=this.U.xN().getPlayerSize(),O=this.U.xN().Cd,h=FLG(this),w=ayX(this),y=Math.max(V.width-h*2,100);if(this.pA!==V.width||this.CA!==m||this.U.Y("web_player_rtr_ctrls")&&this.qc!==O)this.pA=V.width,this.CA=m,this.qc=O,this.L.element.style.width=w+"px",this.L.element.style.left=h+"px",g.VQX(this.progressBar,h,w,m),this.U.XJ().wL=w;O=this.Z;y=Math.min(570*(m?1.5:1),y);m=Math.min(413*(m?1.5:1),Math.round((V.height-ia7(this))*.82));O.maxWidth=y;O.maxHeight=m;O.dj();this.FW(); this.W6&&SHm(this.Je,V.height)}; g.U.onVideoDataChange=function(){var m=this.U.getVideoData();this.H6.style.background=m.Sb?m.Jf:"";this.Zu&&Fj$(this.Zu,m.showSeekingControls);this.Qt&&Fj$(this.Qt,m.showSeekingControls)}; g.U.Ir=function(){return this.L.element};g.t(pxm,oL);g.U=pxm.prototype;g.U.Wk=function(m){m.target===this.dismissButton.element?this.Z&&uNl(o6(),this.Z):(this.onClickCommand&&(this.kx(!1),this.U.bH("innertubeCommand",this.onClickCommand)),this.sX())}; g.U.sX=function(){this.enabled=!1;this.V.hide()}; g.U.onVideoDataChange=function(m,V){m==="dataloaded"&&BzI(this);m=[];var O,h,w,y;if(V=(y=g.d((O=V.getWatchNextResponse())==null?void 0:(h=O.playerOverlays)==null?void 0:(w=h.playerOverlayRenderer)==null?void 0:w.suggestedActionsRenderer,TcG))==null?void 0:y.suggestedActions)for(O=g.D(V),h=O.next();!h.done;h=O.next())(h=g.d(h.value,$A5))&&g.d(h.trigger,H5z)&&m.push(h);if(m.length!==0){O=[];m=g.D(m);for(h=m.next();!h.done;h=m.next())if(h=h.value,w=g.d(h.trigger,H5z)){y=(y=h.title)?g.fy(y):"View Chapters"; V=w.timeRangeStartMillis;var L=w.timeRangeEndMillis;w=w.onlyTriggersOnPlayerPause;h.tapCommand&&(V!=null&&L!=null&&O.push(new g.a2(V,L,{priority:9,namespace:"suggested_action_button_visible",id:y})),V!=null&&L!=null||w)&&(this.suggestedActions[y]=h,h.rendererContext&&!this.L&&(y=g.d(h.rendererContext,yGA))&&(w=void 0,y=(w=y.loggingDirectives)==null?void 0:w.trackingParams)&&(this.U.setTrackingParams(this.badge.element,y),this.L=!0),w=void 0,((w=h.dismissButtonClientVeSpec)==null?0:w.uiType)&&!this.Z&& (this.Z=A1(h.dismissButtonClientVeSpec.uiType),Ar(o6(),this.Z)))}this.U.SK(O)}}; g.U.IQ=function(){return this.enabled}; g.U.zB=function(){this.enabled?this.fA.start():xD(this);this.LU()}; g.U.onStateChange=function(m){for(var V=g.D(Object.keys(this.suggestedActions)),O=V.next();!O.done;O=V.next()){O=O.value;var h=void 0;if((h=g.d(this.suggestedActions[O].trigger,H5z))==null?0:h.onlyTriggersOnPlayerPause){m.state.isPaused()?(GWl(this,O),this.enabled=!0,this.zB()):m.oldState.isPaused()&&(this.enabled=!1,this.zB());break}}}; g.U.d0=function(){BzI(this);oL.prototype.d0.call(this)};var Yb={},Xj=(Yb.CHANNEL_NAME="ytp-title-channel-name",Yb.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",Yb.LINK="ytp-title-link",Yb.SESSIONLINK="yt-uix-sessionlink",Yb.SUBTEXT="ytp-title-subtext",Yb.TEXT="ytp-title-text",Yb.TITLE="ytp-title",Yb);g.t(HW,g.p);HW.prototype.onClick=function(m){this.api.logClick(this.element);var V=this.api.j(),O=this.api.getVideoUrl(!g.W5(m),!1,!0);g.sY(V)&&(V={},g.dm(this.api,"addEmbedsConversionTrackingParams",[V]),O=g.N_(O,V));g.Aj(O,this.api,m)}; HW.prototype.oY=function(){var m=this.api.getVideoData(),V=this.api.j();this.updateValue("title",m.title);var O={G:"a",X:Xj.CHANNEL_NAME,B:{href:"{{channelLink}}",target:"_blank"},c6:"{{channelName}}"};this.api.j().D?O={G:"span",X:Xj.CHANNEL_NAME,c6:"{{channelName}}",B:{tabIndex:"{{channelSubtextFocusable}}"}}:m.Fq&&(O={G:"span",X:Xj.SUBTEXT,c6:m.Fq});this.updateValue("subtextElement",O);lyU(this);this.api.getPresentingPlayerType()===2&&(O=this.api.getVideoData(),O.videoId&&O.isListed&&O.author&& O.fA&&O.profilePicture?(this.updateValue("channelLink",O.fA),this.updateValue("channelName",O.author),this.updateValue("channelTitleFocusable","0")):lyU(this));O=V.externalFullscreen||!this.api.isFullscreen()&&V.zf;g.xN(this.link,Xj.FULLERSCREEN_LINK,O);V.Ae||!m.videoId||O||m.Sb||V.D?this.Z&&(this.updateValue("url",null),this.yu(this.Z),this.Z=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.Z||(this.Z=this.C(this.link,"click",this.onClick)));V.D&&(this.element.classList.add("ytp-no-link"), this.updateValue("channelName",g.sY(V)?m.expandedTitle:m.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.t(g.Te,g.p);g.U=g.Te.prototype;g.U.setEnabled=function(m){if(this.type!=null)if(m)switch(this.type){case 3:case 2:$J(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.N=m}; g.U.UN=function(m,V,O,h,w,y,L,C){if(!this.v6||this.env.J){this.type===3&&this.L_();this.type!==1&&(g.JY(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.N&&this.fade.show(),this.L&&this.L.dispose(),(this.L=this.api.NL())&&this.L.subscribe("l",this.m4,this));if(C){var E=g.or(this.bg).height||141;this.iH.style.bottom=E+2+"px"}else this.iH.style.display="none";this.env.Y("delhi_modern_web_player")?(this.update({pillTimeStamp:O,pillTitle:y!=null?y:"",eduText:C!=null?C:""}),g.EM(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:O,title:y!=null?y:"",eduText:C!=null?C:""}),g.xN(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!y));this.api.isInline()&&g.EM(this.bottomText,"ytp-modern-tooltip-text");g.xN(this.element,"ytp-text-detail",!!h);O=-1;this.L&&(O=PB(this.L,243*this.scale),this.env.Y("web_l3_storyboard")&&this.L.levels.length===4&&(O=this.L.levels.length-1),O=cBm(this.L,O,V));mr$(this,O);if(L)switch(V=g.or(this.element).width,L){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=V+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=V/2+"px",this.title.style.textAlign="center"}Ph$(this,!!h,m,w)}}; g.U.hQ=function(){this.type===1&&this.L_()}; g.U.Py=function(m,V){if(this.type)if(this.type===3)this.L_();else return;Qm5(this,m,3,V)}; g.U.cj=function(){this.Z&&!this.J&&(this.env.Y("player_tooltip_data_title_killswitch")?this.Z.hasAttribute("title")&&(this.D=this.Z.getAttribute("title")||"",this.Z.removeAttribute("title"),this.N&&$J(this)):this.Z.hasAttribute("data-tooltip-title")&&(this.D=this.Z.getAttribute("data-tooltip-title")||"",this.Z.removeAttribute("data-tooltip-title"),this.N&&$J(this)))}; g.U.m4=function(m,V){m<=this.T&&this.T<=V&&(m=this.T,this.T=NaN,mr$(this,m))}; g.U.FeH=function(){kf3(this.L,this.T,243*this.scale)}; g.U.L_=function(){switch(this.type){case 2:var m=this.Z;m.removeEventListener("mouseout",this.V);m.addEventListener("mouseover",this.K);m.removeEventListener("blur",this.V);m.addEventListener("focus",this.K);VD5(this);break;case 3:VD5(this);break;case 1:this.L&&(this.L.unsubscribe("l",this.m4,this),this.L=null),this.api.removeEventListener("videoready",this.Zu),this.Ae.stop()}this.type=null;this.N&&this.fade.hide()}; g.U.jI=function(){if(this.Z)for(var m=0;m=0;V--)if(this.aW[V]===m){this.aW.splice(V,1);break}c_(this.Ny,64,this.aW.length>0)}; g.U.pk=function(){this.api.i4()&&this.api.UQ();return!!this.r9||J7m(this)||g.Fl.prototype.pk.call(this)}; g.U.fS=function(){var m=!this.pk(),V=m&&this.api.i4()&&!g.l(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().Sb&&!this.api.j().D&&!this.api.isEmbedsShortsMode(),O=this.ag&&g.ZZ(this.api)&&g.l(this.api.getPlayerStateObject(),128);m||O?(this.PL.show(),this.tp.show()):(this.PL.hide(),this.tp.hide(),this.api.jI(this.EJ.element));V?this.aF.OI():this.aF.EU();this.NV&&smp(this.NV,this.qgH||!m);this.api.Y("web_player_hide_overflow_button_if_empty_menu")&&CZa(this);g.Fl.prototype.fS.call(this)}; g.U.XD=function(m,V,O,h,w){m.style.left="";m.style.top="";m.style.bottom="";var y=g.or(m),L=h||this.NV&&g.nK(this.NV.Ir(),V),C=h=null;O!=null&&L||(h=g.or(V),C=g.xi(V,this.api.getRootNode()),O==null&&(O=C.x+h.width/2));O-=y.width/2;L?(V=this.NV,h=FLG(V),C=ayX(V),L=this.api.xN().getPlayerSize().height,O=g.O2(O,h,h+C-y.width),y=L-ia7(V)-y.height):g.nK(this.EJ.element,V)?(V=this.api.xN().getPlayerSize().width,O=g.O2(O,12,V-y.width-12),y=this.GM()?this.wX:this.by,this.api.j().playerStyle==="gvn"&&(y+= 20),this.ag&&(y-=this.GM()?26:18)):(V=this.api.xN().getPlayerSize(),O=g.O2(O,12,V.width-y.width-12),y=C.y>(V.height-h.height)/2?C.y-y.height-12:C.y+h.height+12);m.style.top=y+(w||0)+"px";m.style.left=O+"px"}; g.U.ZR=function(m){m&&(this.api.jI(this.EJ.element),this.NV&&this.api.jI(this.NV.Ir()));this.w5&&(g.xN(this.contextMenu.element,"ytp-autohide",m),g.xN(this.contextMenu.element,"ytp-autohide-active",!0));g.Fl.prototype.ZR.call(this,m)}; g.U.q4=function(){g.Fl.prototype.q4.call(this);this.w5&&(g.xN(this.contextMenu.element,"ytp-autohide-active",!1),this.w5&&(this.contextMenu.hide(),this.v1&&this.v1.hide()))}; g.U.Ad=function(m,V){var O=this.api.xN().getPlayerSize();O=new g.V5(0,0,O.width,O.height);if(m||!D3(this.Ny)&&!this.pk()){if(this.api.j().Wl||V)m=this.GM()?this.wX:this.by,O.top+=m,O.height-=m;this.NV&&(O.height-=ia7(this.NV))}return O}; g.U.EB=function(m){var V=this.api.getRootNode();m?V.parentElement?(V.setAttribute("aria-label","Player de v\u00eddeo do YouTube em tela cheia"),this.api.j().externalFullscreen||(V.parentElement.insertBefore(this.zI.element,V),V.parentElement.insertBefore(this.Ij.element,V.nextSibling))):g.kL(Error("Player not in DOM.")):(V.setAttribute("aria-label","Player de v\u00eddeo do YouTube"),this.zI.detach(),this.Ij.detach());this.Vp();this.bz()}; g.U.GM=function(){if(this.api.Y("web_player_use_screen_width_for_big_mode")){var m;return this.api.xN().getPlayerSize().width>=((m=g.m9(this.api.j().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?m:2E3)}m=this.api.j();return this.api.isFullscreen()&&!m.J||!1}; g.U.showControls=function(m){this.Ry=!m;this.fS()}; g.U.Vp=function(){var m=this.GM();this.tooltip.scale=m?1.5:1;this.contextMenu&&g.xN(this.contextMenu.element,"ytp-big-mode",m);this.fS();this.api.Y("web_player_hide_overflow_button_if_empty_menu")||CZa(this);this.bz();var V=this.api.isEmbedsShortsMode();V&&m?(m=(this.api.xN().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.wb(this.EJ.element,"padding-left",m+"px"),g.wb(this.EJ.element,"padding-right",m+"px")):V&&(g.wb(this.EJ.element,"padding-left",""),g.wb(this.EJ.element,"padding-right", ""));g.Fl.prototype.Vp.call(this)}; g.U.cn=function(){if(J7m(this)&&!g.ZZ(this.api))return!1;var m=this.api.getVideoData();return!g.sY(this.api.j())||this.api.getPresentingPlayerType()===2||!this.P1||((m=this.P1||m.P1)?(m=m.embedPreview)?(m=m.thumbnailPreviewRenderer,m=m.videoDetails&&g.d(m.videoDetails,A5p)||null):m=null:m=null,m&&m.collapsedRenderer&&m.expandedRenderer)?g.Fl.prototype.cn.call(this):!1}; g.U.bz=function(){g.Fl.prototype.bz.call(this);this.api.logVisibility(this.title.element,!!this.EW);this.JU&&this.JU.u2(!!this.EW);this.channelAvatar.u2(!!this.EW);this.overflowButton&&this.overflowButton.u2(this.B2()&&!!this.EW);this.shareButton&&this.shareButton.u2(!this.B2()&&!!this.EW);this.m9&&this.m9.u2(!this.B2()&&!!this.EW);this.searchButton&&this.searchButton.u2(!this.B2()&&!!this.EW);this.copyLinkButton&&this.copyLinkButton.u2(!this.B2()&&!!this.EW);if(!this.EW){this.api.jI(this.EJ.element); for(var m=0;m=0?this.Z.playbackRate:1}catch(m){return 1}}; g.U.setPlaybackRate=function(m){this.getPlaybackRate()!==m&&(this.Z.playbackRate=m);return m}; g.U.Q8=function(){return this.Z.loop}; g.U.setLoop=function(m){this.Z.loop=m}; g.U.canPlayType=function(m,V){return this.Z.canPlayType(m,V)}; g.U.isPaused=function(){return this.Z.paused}; g.U.isSeeking=function(){return this.Z.seeking}; g.U.isEnded=function(){return this.Z.ended}; g.U.C$=function(){return this.Z.muted}; g.U.fE=function(m){xH();this.Z.muted=m}; g.U.CT=function(){var m=this.Z.played||QK([],[]);return this.view?R0m(this,m):m}; g.U.EZ=function(){try{var m=this.Z.buffered}catch(V){}m=m||QK([],[]);return this.view?R0m(this,m):m}; g.U.BM=function(){var m=this.Z.seekable||QK([],[]);return this.view?R0m(this,m):m}; g.U.pK=function(){var m=this.Z;return m.getStartDate?m.getStartDate():null}; g.U.getCurrentTime=function(){if(this.view){var m=this.Z.currentTime;m=this.view?m-this.view.start:m;return this.view.E6||!isFinite(this.view.end)?m:Math.min(m,this.view.end-this.view.start)}return this.Z.currentTime}; g.U.setCurrentTime=function(m){this.Z.currentTime=this.view?this.view?m+this.view.start:m:m}; g.U.getDuration=function(){return this.view?isFinite(this.view.end)&&!this.view.E6?this.view.end-this.view.start:this.Z.duration-this.view.start:this.Z.duration}; g.U.load=function(){var m=this.Z.playbackRate;try{this.Z.load()}catch(V){}this.Z.playbackRate=m}; g.U.pause=function(){this.Z.pause()}; g.U.play=function(){if(this.view&&this.mE())try{this.Z.currentTime=this.view.start}catch(V){}var m=this.Z.play();if(!m||!m.then)return null;m.then(void 0,function(){}); return m}; g.U.f_=function(){return this.Z.readyState}; g.U.B3=function(){return this.Z.networkState}; g.U.aJ=function(){return this.Z.error?this.Z.error.code:null}; g.U.Kf=function(){return this.Z.error?this.Z.error.message:""}; g.U.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.Z instanceof window.HTMLVideoElement&&this.Z.getVideoPlaybackQuality)return this.Z.getVideoPlaybackQuality();if(this.Z){var m=this.Z,V=m.webkitDroppedFrameCount;if(m=m.webkitDecodedFrameCount)return{droppedVideoFrames:V||0,totalVideoFrames:m}}return{}}; g.U.xD=function(){try{var m=this.getSize(),V={vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:vg(this.CT(),",",3),vbu:vg(this.EZ()),vbs:vg(this.BM()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.f_(),vns:""+this.B3(),vec:""+this.aJ(),vemsg:this.Kf(),vvol:""+this.getVolume(),vdom:""+ +this.LF(),vsrc:""+ +!!this.sZ(),vw:""+m.width,vh:""+m.height};this.view&&(V.view=this.view.start+"-"+this.view.end);return V}catch(O){return{}}}; g.U.rH=function(){return!!this.Z.webkitCurrentPlaybackTargetIsWireless}; g.U.Ei=function(){return!!this.Z.webkitShowPlaybackTargetPicker()}; g.U.togglePictureInPicture=function(){var m=this.Z,V=window.document;window.document.pictureInPictureEnabled?this.Z!==V.pictureInPictureElement?m.requestPictureInPicture():V.exitPictureInPicture():f$()&&m.webkitSetPresentationMode(m.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.U.Er=function(){return M5m(this.Z)}; g.U.getSize=function(){return g.or(this.Z)}; g.U.setSize=function(m){g.Rr(this.Z,m)}; g.U.getVolume=function(){return this.Z.volume}; g.U.setVolume=function(m){xH();this.Z.volume=m}; g.U.addEventListener=function(m,V){this.Ae.listen(m,V,!1,this);this.Av(m)}; g.U.removeEventListener=function(m,V){this.Ae.yu(m,V,!1,this)}; g.U.dispatchEvent=function(m){if(this.N&&m.type==="pause")return!1;if(Bu$){var V,O=((V=m.Z)==null?void 0:V.timeStamp)||Infinity;V=O>performance.now()?O-Date.now()+performance.now():O;O=this.L||this.T;if((O==null?0:O.Lw())||V<=((O==null?void 0:O.T)||0)){var h;this.N2("rms",{l:"mede",sr:(h=this.RY)==null?void 0:h.Ug(),et:m.type});return!1}if(this.c8)return this.N2("rms",{l:"medes",et:m.type}),O&&m.type==="seeking"&&(O.T=performance.now(),this.c8=!1),!1}return this.Ae.dispatchEvent(m)}; g.U.Av=function(m){this.V[m]||(this.Z.addEventListener(m,this.listener),this.V[m]=this.listener)}; g.U.setAttribute=function(m,V){this.Z.setAttribute(m,V)}; g.U.removeAttribute=function(m){this.Z.removeAttribute(m)}; g.U.hasAttribute=function(m){return this.Z.hasAttribute(m)}; g.U.WA=eG(52);g.U.DL=eG(55);g.U.Ie=eG(58);g.U.HC=eG(61);g.U.f$=function(){return HZ(this.Z)}; g.U.u1=function(m){g.EM(this.Z,m)}; g.U.lm=function(m){return g.jL(this.Z,m)}; g.U.LF=function(){return g.nK(document.body,this.Z)}; g.U.audioTracks=function(){var m=this.Z;if("audioTracks"in m)return m.audioTracks}; g.U.Fx=function(){this.iH=!1}; g.U.UC=function(){this.iH=!0;this.fE(!0)}; g.U.pz=function(){this.iH&&!this.C$()&&this.fE(!0)}; g.U.equals=function(m){return!!m&&m.Ir()===this.Ir()}; g.U.d0=function(){for(var m=g.D(Object.keys(this.V)),V=m.next();!V.done;V=m.next())V=V.value,this.Z.removeEventListener(V,this.V[V]);this.EH&&this.removeEventListener("volumechange",this.pz);aFl&&xro(this);dG.prototype.d0.call(this)}; g.U.zV=function(){return this.aJ()===4}; g.U.hasError=function(){return this.aJ()>0}; g.U.Tl=function(){switch(this.aJ()){case 2:return"progressive.net.retryexhausted";case 3:var m=this.Kf();return(m==null?0:m.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||Qo5&&(m==null?0:m.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; g.U.Hy=function(m){this.Z.disableRemotePlayback=m}; g.U.HI=function(){var m=this.BM();return m.length<1?NaN:m.end(m.length-1)}; g.U.wj=function(){return this.K}; g.U.activate=function(m){var V="";m&&(fFm(this,m),V=m.Dj);if(!this.sZ()||V)V&&this.sZ()!==V&&(this.ZL(V),delete this.L,this.N&&(this.N.reject(),delete this.N),!window.MediaSource&&window.ManagedMediaSource&&this.Hy(!(m==null||!m.Z))),m&&m.Z||this.load(),this.EH||(this.addEventListener("volumechange",this.pz),this.EH=!0)}; g.U.qY=function(){var m=this;!this.L&&Mv()&&(this.N?this.N.then(function(){return void m.qY()}):this.sZ()||(this.L=this.E8()))}; g.U.ZZ=function(){this.L&&(this.L.dispose(),this.L=void 0)}; g.U.E8=function(m,V){if(this.L)if(Bu$&&RT(this.L)&&!this.L.il(m,V)){var O;this.N2("rms",{l:"megms",sr:(O=this.RY)==null?void 0:O.Ug()});this.ZZ();this.stopVideo()}else return this.T=this.L,this.L=void 0,this.T;m=fb3(this);this.activate(m.D);this.T=m;this.c8=!1;return m}; g.U.Lv=function(m){this.L=m}; g.U.playVideo=function(){var m=this;this.isEnded()&&this.seekTo(0);!this.sZ()&&this.K&&(g.kL(Error("playVideo without src")),this.ZL(this.K.Dj),this.K.Z||this.load());var V=this.play(),O;if((O=this.RY)==null||!HE$(O)){var h;N8&&(IV||0)>=7&&(!V||((h=this.RY)==null?0:h.Y("mweb_ios_allow_playback_workaround_when_ready")))&&mPU(this,function(){g.t6(function(){MD$(m,m.getCurrentTime(),0)},500)})}return V}; g.U.N2=function(m,V,O){var h;((h=this.RY)==null?0:h.tj())&&this.RY.uH(m,V,O===void 0?!1:O)}; g.U.Tt=function(m){this.RY=m}; g.U.Iz=function(){return wG(this.EZ(),this.getCurrentTime())}; g.U.seekTo=function(m){this.f_()>0&&(N8&&IV<4&&(m=Math.max(.1,m)),this.setCurrentTime(m))}; g.U.wl=function(m){if(this.f_()===0||this.hasError())return!1;var V=this.getCurrentTime()>0;if(m>=0){var O=this.BM();if(O.length||!V)return mu(O,m)}return V}; g.U.RS=function(){if(!this.L&&this.T)if(this.T.N)try{var m;this.N2("rms",{l:"mer",sr:(m=this.RY)==null?void 0:m.Ug(),rs:oT(this.T)});this.T.clear();this.Lv(this.T);this.T=void 0}catch(V){m=new g.no("Error while clearing Media Source in MediaElement: "+V.name+", "+V.message),g.kL(m),this.stopVideo()}else this.stopVideo()}; g.U.stopVideo=function(){var m=this;if(!this.L){var V;(V=this.T)==null||AT(V);if(aFl){if(!this.N){var O=new Ut;O.then(void 0,function(){}); this.N=O;GBl&&this.pause();g.t6(function(){m.N===O&&(xro(m),O.resolve())},200)}}else xro(this)}}; g.U.X8=function(){var m=this.EZ();return hT(m)&&this.getDuration()?V8(m,this.getCurrentTime()):0}; g.U.YY=function(){var m=this.EZ();return hT(m)&&this.getDuration()?m.end(m.length-1):0}; g.U.Oh=function(){var m=this.getDuration();return m===Infinity?1:m?this.X8()/m:0}; var aFl=!1,GBl=!1,Bu$=!1;var rF=[],oOp=!1;g.t(cW,g.Z);cW.prototype.J=function(){this.Z!=null&&this.app.getVideoData()!==this.Z&&Jq(this.Z)&&o2$(this.app,this.Z,void 0,void 0,this.D)}; cW.prototype.N=function(){if(this.Z!=null&&this.app.getVideoData()!==this.Z&&this.L!=null&&this.T!=null&&this.K!=null&&Jq(this.Z)){var m=this.app.j().experiments.wu().Z.lH(nB);m=Ur3(this.L,this.T,this.K,m);m==null?o2$(this.app,this.Z,void 0,void 0,this.D):(this.L.uH("sgap",m),this.L.getVideoData().J&&this.L.J4(!1),this.app.j().Y("html5_remove_loop_range_on_gapless_fallback")&&(DG(this.app,"gaplessshortslooprange"),this.app.setLoopRange(null)))}}; cW.prototype.V=function(m){var V=this.app.OH();if(V){var O=this.app.getCurrentTime();Math.abs(O-m.end/1E3)>5&&V.uH("glrs",{cmt:O});V.seekTo(0,{seekSource:58});V.uH("glrre",{cmt:O})}}; cW.prototype.d0=function(){this.Z=null;g.Z.prototype.d0.call(this)};g.t(g.Dh,dG);g.U=g.Dh.prototype;g.U.isView=function(){return!0}; g.U.mE=function(){var m=this.mediaElement.getCurrentTime();if(m1;mu(m.RJ(),h-.01)&&!w&&(b3(this,4),O.isActive=!1,O.Gm=O.Gm||O.isActive,(this.K===1?this.Z:this.L).uH("sbh",{}),V.isActive=!0,V.Gm=V.Gm||V.isActive,this.K!==0&&(this.Z.getVideoData().hD=!0));m=this.T.L;if(this.T.Z.isActive&&m.isActive&&(b3(this,5),this.K!==0)){m=this.L.sQ();O=this.Z.sQ(); this.Z.uH("sbs",{citag:O==null?void 0:O.itag,nitag:m==null?void 0:m.itag});this.L.uH("gitags",{pitag:O==null?void 0:O.itag,citag:m==null?void 0:m.itag});var y;(y=this.L)==null||y.MJ()}}}; g.U.Dm=function(){this.ra()&&this.hR("player-reload-after-handoff")}; g.U.hR=function(m,V){V=V===void 0?{}:V;if(!this.UH()&&this.status.status!==6){var O=this.status.status>=4&&m!=="player-reload-after-handoff";this.status={status:Infinity,error:m};if(this.Z&&this.L){var h=this.L.getVideoData().clientPlaybackNonce;this.Z.L6(new g.jc("dai.transitionfailure",Object.assign(V,{cpn:h,transitionTimeMs:this.WU,msg:m})));this.Z.J4(O)}this.J_.reject(m);this.dispose()}}; g.U.ra=function(){return this.status.status>=4&&this.status.status<6}; g.U.d0=function(){Tu1(this);this.Z.unsubscribe("newelementrequired",this.Dm,this);if(this.D){var m=this.D.L;this.D.Z.hq.unsubscribe("updateend",this.oe,this);m.hq.unsubscribe("updateend",this.oe,this)}g.Z.prototype.d0.call(this)}; g.U.pu=function(m){g.fX(m,128)&&this.hR("player-error-event")};g.t(Sg,g.Z);Sg.prototype.clearQueue=function(m,V){m=m===void 0?!1:m;V=V===void 0?!1:V;IO(this);this.T&&this.T.reject("Queue cleared");this.app.j().Y("html5_gapless_fallback_on_qoe_restart_v2")||V&&this.L&&this.L.J4(!1);eg(this,m)}; Sg.prototype.DM=function(){return!this.Z}; Sg.prototype.ra=function(){var m;return((m=this.D)==null?void 0:m.ra())||!1}; Sg.prototype.d0=function(){IO(this);eg(this);g.Z.prototype.d0.call(this)};g.t(e0C,g.yh);g.U=e0C.prototype;g.U.getVisibilityState=function(m,V,O,h,w,y,L,C){return m?4:w&&M40?7:EjX&&!(jl()||document.hasFocus&&document.hasFocus())||jl()?3:V?2:O?1:h?5:w&&!M40?7:y?8:L?9:C?10:0}; g.U.kL=function(m){this.fullscreen!==m&&(this.fullscreen=m,this.zB())}; g.U.setMinimized=function(m){this.L!==m&&(this.L=m,this.zB())}; g.U.setInline=function(m){this.inline!==m&&(this.inline=m,this.zB())}; g.U.LS=function(m){this.pictureInPicture!==m&&(this.pictureInPicture=m,this.zB())}; g.U.setSqueezeback=function(m){this.D!==m&&(this.D=m,this.zB())}; g.U.bB=function(m){this.T!==m&&(this.T=m,this.zB())}; g.U.rH=function(){return this.Z}; g.U.WM=function(){return this.fullscreen!==0}; g.U.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.U.HY=function(){return this.fullscreen}; g.U.isMinimized=function(){return this.L}; g.U.isInline=function(){return this.inline}; g.U.isBackground=function(){return jl()}; g.U.JZ=function(){return this.pictureInPicture}; g.U.qx=function(){return!1}; g.U.Nx=function(){return this.D}; g.U.OJ=function(){return this.T}; g.U.zB=function(){this.publish("visibilitychange");var m=this.getVisibilityState(this.rH(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.JZ(),this.qx(),this.Nx(),this.OJ());m!==this.N&&this.publish("visibilitystatechange");this.N=m}; g.U.d0=function(){Cl1(this.K);g.yh.prototype.d0.call(this)};g.t(g.u3,g.Z);g.U=g.u3.prototype;g.U.d0=function(){this.videoData=this.playerState=null;g.Z.prototype.d0.call(this)}; g.U.addCueRange=function(){}; g.U.I4=function(){}; g.U.FP=function(){}; g.U.zY=function(){return!1}; g.U.HG=function(){return!1}; g.U.U_=function(){}; g.U.qE=function(){}; g.U.eP=function(){return[]}; g.U.Dk=function(){}; g.U.P3=function(){}; g.U.Ld=function(){return 1}; g.U.getAudioTrack=function(){return this.getVideoData().GB}; g.U.N1=function(){return null}; g.U.getAvailableAudioTracks=function(){return[]}; g.U.DF=function(){return[]}; g.U.Hm=function(){return[]}; g.U.z6=function(){return""}; g.U.NU=function(){return[]}; g.U.aP=function(){}; g.U.T6=function(){return 0}; g.U.getCurrentTime=function(){return 0}; g.U.O2=function(){}; g.U.sQ=function(){}; g.U.xD=function(){return{}}; g.U.getDuration=function(){return 0}; g.U.Jk=function(){return 0}; g.U.K6=function(){return 0}; g.U.AP=function(){return!1}; g.U.Rf=function(){return 0}; g.U.X8=function(){return 0}; g.U.Pp=function(){return null}; g.U.Zw=function(){return 0}; g.U.Q8=function(){return!1}; g.U.qz=function(){return 0}; g.U.C4=function(){return null}; g.U.E8=function(){return null}; g.U.jb=function(){return 0}; g.U.pQ=function(){return 0}; g.U.Jn=function(){return g.u(function(m){g.j$(m)})}; g.U.pT=eG(11);g.U.getPlaybackQuality=function(){return"auto"}; g.U.getPlaybackRate=function(){return 1}; g.U.getPlayerState=function(){this.playerState||(this.playerState=new g.KS);return this.playerState}; g.U.getPlayerType=function(){return 0}; g.U.getPlaylistSequenceForTime=function(){return null}; g.U.zM=function(){return function(){}}; g.U.gQ=function(){return""}; g.U.getPreferredQuality=function(){return"unknown"}; g.U.BC=function(){}; g.U.getProximaLatencyPreference=function(){return 0}; g.U.Gl=function(){return j2}; g.U.NL=function(){return null}; g.U.getStoryboardFormat=function(){return null}; g.U.getStreamTimeOffset=function(){return 0}; g.U.G7=function(){return 0}; g.U.OU=function(){return 0}; g.U.W3=function(){return{ww:[],mW:[],currentTime:0,Sc:"",droppedVideoFrames:0,isGapless:!1,DM:!0,Jh:0,hG:0,Rw:0,ZB:0,uO:0,Lj:[],pj:[],s1:null,Rv:"0",ZE:null,xo:"",totalVideoFrames:0}}; g.U.getUserAudio51Preference=function(){return 0}; g.U.getUserPlaybackQualityPreference=function(){return""}; g.U.getVideoData=function(){this.videoData||(this.videoData=new g.Ld(this.W),g.a(this,this.videoData));return this.videoData}; g.U.kK=function(){return null}; g.U.nQ=function(){return null}; g.U.HW=function(){}; g.U.getVideoLoadedFraction=function(){return 0}; g.U.S$=function(){}; g.U.handleError=function(){}; g.U.J4=function(){}; g.U.FS=function(){}; g.U.Vo=eG(36);g.U.m1=function(){return!1}; g.U.hasSupportedAudio51Tracks=function(){return!1}; g.U.isAd=function(){return!1}; g.U.Fl=function(){return!1}; g.U.rH=function(){return!1}; g.U.isAtLiveHead=function(){return!1}; g.U.Bp=function(){return!0}; g.U.isGapless=function(){return!1}; g.U.isHdr=function(){return!1}; g.U.D2=function(){return!1}; g.U.Yz=function(){return!1}; g.U.kz=function(){return!1}; g.U.isProximaLatencyEligible=function(){return!1}; g.U.DM=function(){return!0}; g.U.oE=function(){return!1}; g.U.h4=function(){return!1}; g.U.d_=function(){}; g.U.mB=function(){}; g.U.MJ=function(){}; g.U.OX=function(){}; g.U.nF=function(){}; g.U.lW=function(){}; g.U.OG=function(){}; g.U.GZ=eG(46);g.U.c7=eG(17);g.U.Vw=function(){}; g.U.pauseVideo=function(){}; g.U.prefetchKeyPlay=function(){}; g.U.playVideo=function(){return g.u(function(m){return m.return()})}; g.U.GD=function(){}; g.U.qU=eG(23);g.U.CC=eG(29);g.U.rh=function(){}; g.U.uH=function(){}; g.U.hk=function(){}; g.U.h3=function(){}; g.U.ll=function(){}; g.U.L6=function(){}; g.U.eN=function(){}; g.U.XB=function(){}; g.U.xX=function(){}; g.U.yq=function(){}; g.U.Ok=function(){}; g.U.RS=function(){}; g.U.removeCueRange=function(){}; g.U.V3=function(){}; g.U.FJ=function(){return[]}; g.U.Uo=function(){}; g.U.GQ=function(){}; g.U.Eb=function(){}; g.U.ZS=function(){}; g.U.Pz=function(){}; g.U.Vn=function(){}; g.U.UV=function(){}; g.U.seekTo=function(){}; g.U.sendAbandonmentPing=function(){}; g.U.sendVideoStatsEngageEvent=function(){}; g.U.mA=function(){}; g.U.setLoop=function(){}; g.U.mZ=function(){}; g.U.setMediaElement=function(){}; g.U.e0=function(){}; g.U.setPlaybackRate=function(){}; g.U.x5=function(){}; g.U.DS=function(){}; g.U.UJ=function(){}; g.U.setProximaLatencyPreference=function(){}; g.U.Ob=function(){}; g.U.sb=function(){}; g.U.M3=function(){}; g.U.wi=function(){}; g.U.zt=function(){}; g.U.setUserAudio51Preference=function(){}; g.U.Et=function(){}; g.U.Ug=function(){return!1}; g.U.Ei=function(){}; g.U.FK=function(){return!1}; g.U.Js=function(){}; g.U.j0=function(){}; g.U.VS=function(){}; g.U.stopVideo=function(){}; g.U.subscribe=function(){return NaN}; g.U.Yh=function(){}; g.U.togglePictureInPicture=function(){}; g.U.U0=function(){return 0}; g.U.hc=function(){}; g.U.unsubscribe=function(){return!1}; g.U.F1=function(){}; g.U.vN=function(){return!1}; g.U.rC=function(){}; g.U.xg=function(){}; g.U.Qo=function(){};g.t(z0m,g.Z);g.U=z0m.prototype;g.U.get=function(m){ze(this);var V=this.data.find(function(O){return O.key===m}); return V?V.value:null}; g.U.n1=function(){ze(this);return this.data.map(function(m){return m.value})}; g.U.set=function(m,V,O){this.remove(m,!0);ze(this);m={key:m,value:V,expire:Infinity};O&&isFinite(O)&&(O*=1E3,m.expire=(0,g.TN)()+O);for(this.data.push(m);this.data.length>this.D;)(O=this.data.shift())&&sH(this,O,!0);Zh(this)}; g.U.remove=function(m,V){V=V===void 0?!1:V;var O=this.data.find(function(h){return h.key===m}); O&&(sH(this,O,V),g.hn(this.data,function(h){return h.key===m}),Zh(this))}; g.U.removeAll=function(m){if(m=m===void 0?!1:m)for(var V=g.D(this.data),O=V.next();!O.done;O=V.next())sH(this,O.value,m);this.data=[];Zh(this)}; g.U.d0=function(){var m=this;g.Z.prototype.d0.call(this);this.data.forEach(function(V){sH(m,V,!0)}); this.data=[]}; g.t(ug5,g.Z);g.U=ug5.prototype;g.U.get=function(m){var V=this.map.get(m);return V?V.kB<=(0,g.TN)()?(this.remove(m,!0),null):V.value:null}; g.U.n1=function(){for(var m=[],V=(0,g.TN)(),O=[],h=g.D(this.map.entries()),w=h.next();!w.done;w=h.next()){var y=g.D(w.value);w=y.next().value;y=y.next().value;y.kB<=V?O.push(w):m.push(y.value)}if(O.length>0){V=g.D(O);for(O=V.next();!O.done;O=V.next())Fj(this,O.value,!0);aO(this)}return m}; g.U.set=function(m,V,O){this.map.has(m)&&Fj(this,m,!0);var h=(0,g.TN)(),w=Infinity;O!==void 0&&O!==null&&isFinite(O)&&(w=h+O*1E3);this.map.set(m,{value:V,kB:w});isFinite(w)&&(this.Z.enqueue(w,m),FQ(this.Z)===w&&aO(this));if(!Number.isNaN(this.T))for(m=this.map.keys();this.map.size>this.T;){V=m.next();if(V.done)break;Fj(this,V.value,!0)}}; g.U.remove=function(m,V){Fj(this,m,V===void 0?!1:V)&&aO(this)}; g.U.removeAll=function(m){if((m===void 0?0:m)&&this.L){m=g.D(this.map.values());for(var V=m.next();!V.done;V=m.next())this.L(V.value.value)}this.map.clear();this.Z.clear();this.D.stop()}; g.U.d0=function(){g.Z.prototype.d0.call(this);this.removeAll(!0)};g.t(g.i3,g.Z);g.U=g.i3.prototype;g.U.d0=function(){for(var m=g.D(Object.values(this.D)),V=m.next();!V.done;V=m.next())V.value.dispose();F6a(this);this.J.dispose();g.Z.prototype.d0.call(this)}; g.U.iA=function(m){return m?m===1?this.Qt:this.L.getVideoData().enableServerStitchedDai&&m===2?this.L.getVideoData().k6?this.D[2]||this.L:this.L:this.D[m]||null:this.L}; g.U.OZ=function(m){var V=m.cpn;m=m.playerType;if(V)a:{m=g.D(Object.values(this.D));for(var O=m.next();!O.done;O=m.next())if(O=O.value,O.z6()===V){V=O;break a}V=this.T[V]||null}else V=m?this.iA(m):this.L;return V}; g.U.Zj=function(){return this.Qt}; g.U.Ap=function(m){this.Qt=m}; g.U.OH=function(){return this.L}; g.U.Yb=function(m){this.L=m;Ge(this)}; g.U.y$=eG(42);g.U.Wa=eG(44);qoU.prototype.xZ=function(m,V){for(var O=0;O<10;O++){var h=this.Z[O],w=h+(O===0?m:0),y=1*Math.pow(2,O);if(w<=y)break;h=Math.min(1,(w-y*.5)/h);for(w=0;w<16;w++)y=this.values[O*16+w]*h,this.values[(O+1)*16+w]+=y,this.Z[O+1]+=y,this.values[O*16+w]-=y,this.Z[O]-=y}h=O=0;w=8192;V>8192&&(O=Math.ceil(Math.log(V/8192)/Math.log(2)),h=8192*Math.pow(2,O-1),w=h*2);O+2>16?this.values[15]+=m:(V=(V-h)/(w-h),this.values[O]+=m*(1-V),this.values[O+1]+=m*V);this.Z[0]+=m}; qoU.prototype.Og=function(){var m=m===void 0?this.L:m;var V=V===void 0?.02:V;var O=O===void 0?.98:O;for(var h=this.D,w=0;w<16;w++)h[w]=this.values[w];w=this.Z[0];for(var y=1;y<11;y++){var L=this.Z[y];if(L===0)break;for(var C=Math.min(1,(m-w)/L),E=0;E<16;E++)h[E]+=this.values[y*16+E]*C;w+=L*C;if(C<1)break}for(y=m=L=0;y<16;y++){C=L+h[y]/w;m+=Math.max(0,Math.min(C,O)-Math.max(L,V))*(y>0?8192*Math.pow(2,y-1):0);if(C>O)break;L=C}return m/(O-V)};BW.prototype.xZ=function(m,V){m=Math.min(this.Z,Math.max(1,Math.round(m*this.resolution)));m+this.L>=this.Z&&(this.D=!0);for(;m--;)this.values[this.L]=V,this.L=(this.L+1)%this.Z;this.PM=!0}; BW.prototype.percentile=function(m){var V=this;if(!this.D&&this.L===0)return 0;this.PM&&(g.Rg(this.K,function(O,h){return V.values[O]-V.values[h]}),this.PM=!1); return this.values[this.K[Math.round(m*((this.D?this.Z:this.L)-1))]]||0}; BW.prototype.Og=function(){return this.N?(this.percentile(this.T-this.N)+this.percentile(this.T)+this.percentile(this.T+this.N))/3:this.percentile(this.T)};g.t(MP3,g.Z);MP3.prototype.Xr=function(){var m;(m=this.Mf)==null||m.start();TC(this)&&this.policy.V&&this.CA()};REI.prototype.Y=function(m){return this.experiments.w0(m)};g.t(Ap$,g.vz);g.U=Ap$.prototype;g.U.a7=function(){}; g.U.z6=function(){return this.videoData.clientPlaybackNonce}; g.U.getVideoData=function(){if(g.vz.prototype.getVideoData.call(this).Y("html5_huli_ssdai_use_playback_state")){var m=aR0(this.HD,g.vz.prototype.getCurrentTime.call(this))||g.vz.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==m.clientPlaybackNonce&&Una(this.T,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:m.clientPlaybackNonce});return this.videoData}return aR0(this.HD,g.vz.prototype.getCurrentTime.call(this))||g.vz.prototype.getVideoData.call(this)}; g.U.getCurrentTime=function(m){var V=g.vz.prototype.getCurrentTime.call(this);if(g.vz.prototype.getVideoData.call(this).Y("html5_huli_ssdai_use_playback_state")){this.Z===0?m||(V-=this.startTimeSecs,g.vz.prototype.getVideoData.call(this).Y("html5_ssdai_log_missed_ad_impressions")&&this.L&&this.D&&V>1&&this.uH("sdai-admiss",{cpn:this.z6(),ct:V.toFixed(3),pfs:this.D}),this.L=!1):m&&(V=this.Z);var O=m?this.HD.xx||g.vz.prototype.getCurrentTime.call(this):zEl(this.HD,g.vz.prototype.getCurrentTime.call(this)); V!==O&&Una(this.T,"time"+(m!=null?m:!1),{time:V,ref:O,ct:m!=null?m:!1})}else V=m?this.HD.xx||V:zEl(this.HD,V);return V}; g.U.getDuration=function(){if(g.vz.prototype.getVideoData.call(this).Y("html5_huli_ssdai_use_playback_state")){var m=sYG(this.HD,g.vz.prototype.getCurrentTime.call(this));this.duration!==m&&Una(this.T,"duration",{dur:this.duration,ref:m});return this.duration}return sYG(this.HD,g.vz.prototype.getCurrentTime.call(this))}; g.U.qb=function(m){this.duration=m};g.vW.prototype.Sn=function(m,V){if(V===1)return this.Z.get(m);if(V===2)return this.D.get(m);if(V===3)return this.L.get(m)}; g.vW.prototype.QI=eG(68);g.vW.prototype.uI=function(m,V,O,h){O={yh:h,DT:O};V?this.D.set(m,O):this.Z.set(m,O)}; g.vW.prototype.clearAll=function(){this.Z.clear();this.D.clear();this.L.clear()}; tPG.prototype.clear=function(){this.L=[];this.D.clear();this.T.clear();this.Z.clear()}; tPG.prototype.OZ=function(m){var V=m.cpn;m=m.f4;if(V&&(V=this.D.get(V))||m&&(V=(this.K?this.D:this.T).get(m)))return V}; g.t(g.PW,g.Z);g.U=g.PW.prototype;g.U.eP=function(){var m=this.playback.eP("serverstitchedcuerange",36E5);m=g.D(m);for(var V=m.next();!V.done;V=m.next())this.L.delete(V.value.getId())}; g.U.onCueRangeEnter=function(m){var V=m.getId();this.q8({oncueEnter:1,cpn:V,start:m.start,end:m.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.T6()||0).toFixed(3)});var O=this.Z.OZ({cpn:V});this.q8({enterAdCueRange:1});var h=this.eW||this.ID().cpn,w;h=(w=this.Z.OZ({cpn:h}))!=null?w:this.ID();O&&(w=this.playback.getCurrentTime(),O.startTimeSecs=m.start/1E3,O={sC:h,eH:O,Xx:w},Egl(this,V,m.start/1E3,w),jE(this,O));this.Mf=!1}; g.U.iz=function(m,V,O){if(m&&V)if((this.app.Ic().T[m]||null)===null){var h;this.q8({nocpn:m,active:(h=this.app.Ic().Z)==null?void 0:h.z6()})}else{this.Mf=O!=null?O:!1;var w;O=((w=this.app.Ic().Z)==null?void 0:w.z6())||this.playback.z6();var y;w=(y=this.Z.OZ({cpn:O}))!=null?y:this.ID();var L;y=(L=this.Z.OZ({cpn:m}))!=null?L:this.ID();y.startTimeSecs=V;y.playerType===2&&(y.wV=y.wV!=null?Math.min(y.wV,V):V);L=this.playback.getCurrentTime();Egl(this,O,V,L);jE(this,{sC:w,eH:y,Xx:L});if(this.playback.getVideoData().Z4()&& m===this.playback.z6())if(V=this.UU.get(O)){var C;m=g.D((C=this.EH.get(V))!=null?C:[]);for(C=m.next();!C.done;C=m.next()){C=C.value;O=L=void 0;y=this.app.Ic();O=O===void 0?"":O;if(w=y.T[C])y.Z===w&&(y.Z=null),y.K===w&&(y.K=null),C===((L=y.V.get(O))==null?void 0:L.z6())&&y.V.delete(O),delete y.T[C];this.mS.delete(C);this.UU.delete(C)}this.EH.delete(V)}else this.q8({no_abid:m})}}; g.U.l0=function(m,V){if(m===this.playback.z6())pB(this.app.Ic(),this.playback,!1);else{var O=this.mS.get(m);O?(m=!this.Mf,O.Z=0,O.startTimeSecs=V,O.D=m===void 0?!0:m,O.L=!0,pB(this.app.Ic(),O,!0)):this.q8({nop_s:m})}}; g.U.onCueRangeExit=function(m){for(var V=this.playback.getCurrentTime()*1E3,O=m.getId(),h=g.D(this.L.values()),w=h.next();!w.done;w=h.next())if(w=w.value,w.getId()!==O&&V>=w.start&&V<=w.end)return;if(O=this.Z.OZ({cpn:O}))V=this.playback.getCurrentTime(),h=this.ID(),h.startTimeSecs=m.end/1E3,O={sC:O,eH:h,Xx:V},Egl(this,this.playback.z6(),m.end/1E3,V),jE(this,O)}; g.U.ID=function(){return{cpn:this.playback.z6(),durationMs:0,Tj:0,playerType:1,uU:0,videoData:this.playback.getVideoData(),errorCount:0,IS:""}}; g.U.seekTo=function(m,V,O,h){m=m===void 0?0:m;V=V===void 0?{}:V;O=O===void 0?!1:O;h=h===void 0?null:h;yV(this,this.eW);if(this.playback.getVideoData().Z4()&&m<=this.xx)this.playback.pauseVideo(),this.xx=0,qqX(this,m);else if(this.Mf=this.Qt=!0,O)YoC(this,m,V);else{O=this.app.OH();var w=O===this.iH?this.nA:null;hf(this,!1);this.LP=m;this.Aj=V;h!=null&&this.W6.start(h);O&&(this.nA=w||O.getPlayerState(),O.VS(V),this.iH=O)}}; g.U.d0=function(){hf(this,!1);p0l(this);Bpo(this);g.Z.prototype.d0.call(this)}; g.U.d4=function(m,V,O){if(O&&V){var h=this.At.get(m);if(h){h.locations||(h.locations=new Map);var w=Number(V.split(";")[0]);O=new g.WX(O);this.q8({hdlredir:1,itag:V,seg:m,hostport:U3(35,O)});h.locations.set(w,O)}}}; g.U.lS=function(m,V,O,h,w,y){var L=Number(O.split(";")[0]),C=h===3;m=vbI(this,m,V,h,O,y);this.q8({gdu:1,seg:V,itag:L,pb:""+!!m});if(!m)return wY(this,V,C),null;m.locations||(m.locations=new Map);if(!m.locations.has(L)){var E,q;y=(E=m.videoData.getPlayerResponse())==null?void 0:(q=E.streamingData)==null?void 0:q.adaptiveFormats;if(!y)return this.q8({gdu:"noadpfmts",seg:V,itag:L}),wY(this,V,C),null;E=y.find(function(x){return x.itag===L}); if(!E||!E.url){var M=m.videoData.videoId;m=[];var f=g.D(y);for(h=f.next();!h.done;h=f.next())m.push(h.value.itag);this.q8({gdu:"nofmt",seg:V,vid:M,itag:L,fullitag:O,itags:m.join(",")});wY(this,V,C);return null}m.locations.set(L,new g.WX(E.url,!0))}y=m.locations.get(L);if(!y)return this.q8({gdu:"nourl",seg:V,itag:L}),wY(this,V,C),null;y=new ZS(y);this.nP&&(y.get("dvc")?this.q8({dvc:y.get("dvc")||""}):y.set("dvc","webm"));(h=(f=this.Sn(V-1,h,w))==null?void 0:f.yh)&&y.set("daistate",h);m.xq&&V>=m.xq&& y.set("skipsq",""+m.xq);(f=this.playback.getVideoData().clientPlaybackNonce)&&y.set("cpn",f);f=[];m.IS&&(f=mV0(this,m.IS),f.length>0&&y.set("acpns",f.join(",")));C||this.At.set(V,m);C=null;C=y.get("aids");h=y.yF();(h==null?void 0:h.length)>2048&&this.q8({urltoolong:1,sq:V,itag:L,len:h.length});this.Xr&&(h&&(y=m.cpn,w=m.IS,LlU(this,y,w),w&&!this.BB.has(w)&&(y=ydl(this,y,w),E=j9C(this,w),this.q8({iofa:y}),this.q8({noawnzd:E-y}),this.q8({acpns:f.join("."),aids:(M=C)==null?void 0:M.replace(/,/g,".")}), this.BB.add(w))),this.q8({gdu:"v",seg:V,itag:O,ast:m.Tj.toFixed(3),alen:m.durationMs.toFixed(3),acpn:m.cpn,avid:m.videoData.videoId}));return h}; g.U.zK=function(m,V,O){O=O===void 0?!1:O;var h=QY5(this,m,V);if(h){this.Y5&&(this.v6=h);var w=void 0,y=h.IS;if(y){this.q8({skipadonsq:V,sts:O,abid:y,acpn:h.cpn,avid:h.videoData.videoId});O=this.Z.Z.get(y);if(!O)return;O=g.D(O);for(y=O.next();!y.done;y=O.next())y=y.value,y.xq=V,y.wP=m,y.Tj>h.Tj&&(w=y)}yV(this,this.eW);this.D=h.cpn;VA0(this);this.api.Y("html5_ssdai_enable_media_end_cue_range")&&this.playback.hc(this.D);m=this.playback.getCurrentTime();hrU(this,h,w,m,m,!1,!0);C$3(this)}}; g.U.RM=function(){for(var m=g.D(this.Z.L),V=m.next();!V.done;V=m.next())V=V.value,V.xq=NaN,V.wP=NaN;VA0(this);this.q8({rsac:"resetSkipAd",sac:this.D});this.pA.delete(this.D);this.D="";this.Y5&&(this.v6=void 0)}; g.U.Sn=function(m,V,O){return this.Zu.Sn(m,V,O)}; g.U.QI=eG(67); g.U.kV=function(m){var V=m.trackType,O;m=g.D((O=m.metadata)!=null?O:[]);for(O=m.next();!O.done;O=m.next()){var h=void 0;O=g.D((h=O.value.rRe)!=null?h:[]);for(h=O.next();!h.done;h=O.next()){var w=h.value,y=w.T4,L=w.d2;h=w.cpn;var C=w.loggingMetadata,E=w.zN;w=w.ql;if(h&&h!==this.playback.getVideoData().clientPlaybackNonce){var q=this.Z.OZ({cpn:h});if(V===2){if(y&&y.startTicks!==void 0&&y.MO!==void 0&&y.timescale!==void 0&&L&&L.startTicks!==void 0&&L.MO!==void 0&&L.timescale!==void 0&&E!==void 0){var M= y.startTicks/y.timescale+this.G7();y=L.startTicks/L.timescale;L=L.MO/L.timescale;q&&(q.wV=q.wV!==void 0?Math.min(q.wV,M):M,C&&(q.j8=g.tZ(C)));C=(M-y)*1E3;L=(y+L)*1E3;E=C+(w?L:Math.max(L+1E3,E));(w=this.L.get(h))?(w.start=C,w.end=E,this.playback.lW()):(w=IR1(C,E,h),this.L.set(h,w),this.playback.addCueRange(w))}this.eP()}else V===1&&q&&C&&(q.xP=g.tZ(C))}}}}; g.U.uI=function(m,V,O,h,w,y,L,C){O.length>0&&this.q8({onssinfo:1,sq:m,start:V.toFixed(3),cpns:O.join(","),ds:h.join(","),isVideo:y?1:0});if(this.Y5&&this.v6&&this.v6.xq&&O.length>0)for(var E=g.D(O),q=E.next();!q.done;q=E.next())if(q=q.value,q===this.v6.cpn){this.VF!==q&&(this.q8({skiperror:1,sq:m,acpn:this.v6.cpn,skipsq:this.v6.xq||0}),this.VF=q);break}C&&this.Zu.uI(m,y,L,C);if(y){if(O.length&&h.length)for(this.pA.has(O[0])&&this.q8({skipfail:1,sq:m,acpn:O[0]}),m=V+this.G7(),y=0;ythis.T.Gy+1){this.q8({cueStChg:m.identifier,oldSt:this.T.Gy.toFixed(3),newSt:m.startSecs.toFixed(3),abid:this.T.gq});if(this.T.gq){var O=m.startSecs-this.T.Gy,h=this.Z.Z.get(this.T.gq);if(h){h=g.D(h);for(var w= h.next();!w.done;w=h.next())w=w.value,w.Tj>=0&&(w.Tj+=O*1E3,this.W.Y("html5_ssdai_update_timeline_on_start_time_change")&&(w.uU+=O*1E3),this.q8({newApEt:w.Tj,newApPrt:w.uU,acpn:w.cpn}))}}this.T.Gy=m.startSecs}V?this.fA.add(m.identifier):this.fA.has(m.identifier)&&this.fA.delete(m.identifier);return V}; g.U.bb=function(m){var V=this;if(this.W.Y("html5_lifa_ignore_multiple_skips")&&this.Ae)return this.q8({ufs_ad:this.D,ufs_cur:this.eW,ufs_cont:this.ID().cpn}),!1;yV(this,this.eW);this.playback.pauseVideo();var O=this.playback.getCurrentTime(),h=this.Z.OZ({cpn:this.eW});if(!h)return this.q8({skipFail:O}),!1;this.D=this.eW;this.Qt=!1;this.api.Y("html5_ssdai_enable_media_end_cue_range")&&this.playback.hc(this.D);this.Ps(h.IS);MA5(this,h,this.ID(),m);qqX(this,O,{seekSource:89,Jq:"lifa_skip"});this.Ae|| (this.Ae=this.events.C(this.api,"progresssync",function(){Ey(V.api.Pj(),(0,g.TN)(),"ad_to_video");V.Ae&&(V.events.yu(V.Ae),V.Ae=null)})); return!0}; g.U.Ps=function(m){if(this.playback.getVideoData().Z4()){var V=this.Z.Z.get(m);if(V){V=g.D(V);for(var O=V.next();!O.done;O=V.next()){O=O.value;var h=this.L.get(O.cpn);this.L.delete(O.cpn);h&&this.playback.removeCueRange(h);$nl(this.Z,O)}this.At.clear();V=this.Z;var w;O=(w=V.Z.get(m))!=null?w:[];w=g.D(O);for(O=w.next();!O.done;O=w.next())$nl(V,O.value);V.Z.delete(m);(m=this.kD.get(m))&&this.wB&&this.playback.ZS(m)}}}; g.U.q8=function(m,V){((V===void 0?0:V)||this.Xr)&&this.playback.uH("sdai",m)}; var Np$=0;g.t(xVI,g.Z);g.U=xVI.prototype;g.U.onCueRangeEnter=function(m){if(this.Z===this.app.OH()){var V=this.K.get(m);V?dV0(this,V.target,V.WU,m):this.L6("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:m.toString()})}else if(V=this.L.find(function(w){return w.PC.kF===m})){var O=V.PC,h=O.target; O=O.WU;h?dV0(this,h,O,m):UVC(this,V.uU,O,m)}}; g.U.onQueuedVideoLoaded=function(){var m=this.J;EO(this);if(m){if(!Ci(this,m)){var V=this.app.OH();this.L6("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:V==null?void 0:V.getVideoData().clientPlaybackNonce,ccpn:""+m.playerVars.cpn})}this.app.OH().addCueRange(m.PC.kF)}}; g.U.seekTo=function(m,V,O,h){m=m===void 0?0:m;V=V===void 0?{}:V;h=h===void 0?null:h;if(O===void 0?0:O)fKm(this,m,V);else{O=this.app.OH()||null;var w=O===this.T?this.N:null;qI(this,!1);this.Zu=m;this.Qt=V;h!=null&&this.V.start(h);O&&(this.N=w||O.getPlayerState(),O.VS(),this.T=O)}}; g.U.Lq=function(m){g.fX(m,128)&&HWo(this)}; g.U.isManifestless=function(){return ku(this.Z.getVideoData())}; g.U.d0=function(){qI(this,!1);$V5(this);g.Z.prototype.d0.call(this)}; g.U.L6=function(m,V){this.Z.L6(new g.jc(m,V))}; var RrI=0;var Yq$="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_APPS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.t(MI,g.Z);MI.prototype.Zl=function(m){if(m)return this.L.get(m)}; MI.prototype.d0=function(){this.Z.removeAll();this.L.removeAll();g.Z.prototype.d0.call(this)};g.xin=pK(function(){var m=window.AudioContext||window.webkitAudioContext;try{return new m}catch(V){return V.name}});g.t(Nxp,g.p);g.U=Nxp.prototype;g.U.u1=function(){g.qa(this.element,g.AG.apply(0,arguments))}; g.U.GQ=function(){this.Qu&&(this.Qu.removeEventListener("focus",this.JT),g.bN(this.Qu),this.Qu=null)}; g.U.UF=function(){this.UH();var m=this.app.j();m.lz||this.u1("tag-pool-enabled");m.N&&this.u1(g.be.HOUSE_BRAND);m.playerStyle==="gvn"&&(this.u1("ytp-gvn"),this.element.style.backgroundColor="transparent");m.kD&&(this.hS=g.V4("yt-dom-content-change",this.resize,this));this.C(window,"orientationchange",this.resize,this);this.C(window,"resize",this.resize,this)}; g.U.cL=function(m){g.pO(this.app.j());this.JP=!m;fi(this)}; g.U.resize=function(){if(this.Qu){var m=this.dM();if(!m.isEmpty()){this.app.kN.isFullscreen()&&lB()&&this.kH.start();var V=!g.Jk(m,this.vx.getSize()),O=er1(this);V&&(this.vx.width=m.width,this.vx.height=m.height);m=this.app.j();(O||V||this.Qf||m.kD)&&this.app.kN.publish("resize",this.getPlayerSize())}}}; g.U.dV=function(m,V){this.updateVideoData(V)}; g.U.updateVideoData=function(m){if(this.Qu){var V=this.app.j();GN&&(this.Qu.setAttribute("x-webkit-airplay","allow"),m.title?this.Qu.setAttribute("title",m.title):this.Qu.removeAttribute("title"));this.Qu.setAttribute("controlslist","nodownload");V.Bf&&m.videoId?this.Qu.poster=m.MV("default.jpg"):V.experiments.wu().Z.lH(Umz)&&jU()&&(G7!=null?G7:0)>=10&&(this.Qu.poster="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}V=g.e2(m,"yt:bgcolor");this.iG.style.backgroundColor= V?V:"";this.m5=fp(g.e2(m,"yt:stretch"));this.LB=fp(g.e2(m,"yt:crop"),!0);g.xN(this.element,"ytp-dni",m.Sb);this.resize()}; g.U.setGlobalCrop=function(m){this.o5=fp(m,!0);this.resize()}; g.U.setCenterCrop=function(m){this.QX=m;this.resize()}; g.U.kL=function(){}; g.U.getPlayerSize=function(){var m=this.app.j(),V=this.app.kN.isFullscreen(),O=m.externalFullscreen&&g.sY(m);if(V&&lB()&&!O)return new g.LK(window.outerWidth,window.outerHeight);O=!isNaN(this.DY.width)&&!isNaN(this.DY.height);var h=this.app.j().Y("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.j().Y("web_watch_enable_fs_squeezeback_panels");if(V&&!O&&h)return new g.LK(this.element.clientWidth,this.element.clientHeight);if(V||m.LQ){if(window.matchMedia){m="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.JV&&this.JV.media===m||(this.JV=window.matchMedia(m));var w=this.JV&&this.JV.matches}if(w)return new g.LK(window.innerWidth,window.innerHeight)}else if(O)return this.DY.clone();return new g.LK(this.element.clientWidth,this.element.clientHeight)}; g.U.dM=function(){var m=this.app.j().Y("enable_desktop_player_underlay"),V=this.getPlayerSize(),O=g.m9(this.app.j().experiments,"player_underlay_min_player_width");return m&&this.YI&&V.width>O?(m=g.m9(this.app.j().experiments,"player_underlay_video_width_fraction"),new g.LK(Math.min(V.height*this.getVideoAspectRatio(),V.width*m),Math.min(V.height,V.width*m/this.getVideoAspectRatio()))):V}; g.U.getVideoAspectRatio=function(){return isNaN(this.m5)?nga(this):this.m5}; g.U.getVideoContentRect=function(m){var V=this.dM();m=Sq5(this,V,this.getVideoAspectRatio(),m);return new g.V5((V.width-m.width)/2,(V.height-m.height)/2,m.width,m.height)}; g.U.M6=function(m){this.YI=m;this.resize()}; g.U.Mx=function(){return this.gR}; g.U.onMutedAutoplayChange=function(){fi(this)}; g.U.setInternalSize=function(m){g.Jk(this.DY,m)||(this.DY=m,this.resize())}; g.U.d0=function(){this.hS&&g.OL(this.hS);this.GQ();g.p.prototype.d0.call(this)};g.U=zra.prototype;g.U.click=function(m,V){this.elements.has(m);this.Z.has(m);var O=g.t1();O&&m.visualElement&&g.Vh(O,m.visualElement,V)}; g.U.createClientVe=function(m,V,O,h){var w=this;h=h===void 0?!1:h;this.elements.has(m);this.elements.add(m);O=A1(O);m.visualElement=O;var y=g.t1(),L=g.d$();y&&L&&(g.Tm("combine_ve_grafts")?Ar(o6(),O,L):g.yf(g.Fw)(void 0,y,L,O));V.addOnDisposeCallback(function(){w.elements.has(m)&&w.destroyVe(m)}); h&&this.L.add(m)}; g.U.createServerVe=function(m,V,O){var h=this;O=O===void 0?!1:O;this.elements.has(m);this.elements.add(m);V.addOnDisposeCallback(function(){h.destroyVe(m)}); O&&this.L.add(m)}; g.U.destroyVe=function(m){this.elements.has(m);this.elements.delete(m);this.D.delete(m);this.Z.delete(m);this.L.delete(m)}; g.U.E$=function(m,V){this.clientPlaybackNonce!==V&&(this.clientPlaybackNonce=V,gC(o6(),m),ZW0(this))}; g.U.setTrackingParams=function(m,V){this.elements.has(m);V&&(m.visualElement=g.g$(V))}; g.U.eU=function(m,V,O){this.elements.has(m);V?this.Z.add(m):this.Z.delete(m);var h=g.t1(),w=m.visualElement;this.L.has(m)?h&&w&&(V?g.Pj(h,[w]):g.m7(h,[w])):V&&!this.D.has(m)&&(h&&w&&g.vj(h,w,void 0,O),this.D.add(m))}; g.U.hasVe=function(m){return this.elements.has(m)};g.t(Rk,g.Z);Rk.prototype.sendMessage=function(m){if(this.wM){if(this.Z&&this.Z.byteLength===m)var V=this.Z;else{V=new Uint8Array(m);for(var O=0;m>0;){var h=new Uint8Array(Math.min(m,65536));crypto.getRandomValues(h);V.set(h,O);m-=h.length;O+=h.length}this.Z=V}V.length>0&&V[0]++;O=performance.now();this.wM.postMessage({mainEventSent:O,data:V})}}; Rk.prototype.onMessage=function(m){if(!(this.T>=1E4)){var V=m.timeStamp,O=performance.now();m=m.data;var h=m.mainEventSent;this.uH("worker",{t1:(m.workerEventCreated-performance.timeOrigin-h).toFixed(3),t2:(m.workerEventProcessed-performance.timeOrigin-h).toFixed(3),t3:(V-h).toFixed(3),t4:(O-h).toFixed(3),data:Uint8Array.BYTES_PER_ELEMENT*m.data.length});this.T++}}; Rk.prototype.d0=function(){this.L!==void 0&&(clearInterval(this.L),this.L=void 0);var m;(m=this.wM)==null||m.terminate();this.Z=this.wM=void 0;this.uH("workerDtor",{});g.Z.prototype.d0.call(this)};g.t(g.ok,g.Z);g.ok.create=function(m,V,O,h){try{var w=typeof m==="string"?m:"player"+g.S$(m),y=kb[w];if(y){try{y.dispose()}catch(C){g.kL(C)}kb[w]=null}var L=new g.ok(m,V,O,h);L.addOnDisposeCallback(function(){kb[w]=null;L.ij&&L.ij()}); return kb[w]=L}catch(C){throw g.kL(C),(C&&C instanceof Error?C:Error(String(C))).stack;}}; g.U=g.ok.prototype;g.U.mO=function(){return this.visibility}; g.U.Ap=function(m){var V=this.Zj();if(m!==V){m.getVideoData().autonavState=V.getVideoData().autonavState;V.F1(this.Hw,this);var O=V.getPlaybackRate();V.dispose();this.Nq.Ap(m);m.setPlaybackRate(O);m.Yh(this.Hw,this);lK7(this)}}; g.U.uN=function(){this.zC||(this.zC=g.lP(lb(),sX3()));return this.zC}; g.U.GQ=function(m){if(this.mediaElement){this.Is&&(this.events.yu(this.Is),this.Is=null);g.np(this.oW);this.OH().GQ(!0,!1,m);this.template.GQ();try{this.Y("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.qd()}catch(V){g.cj(V)}this.mediaElement=null}}; g.U.Yb=function(m,V,O){if(m!==this.OH()){var h=null;if(O===void 0||!O){O=this.OH();h=O.getPlayerState();H_(this.rB,3);ut(this,"cuerangesremoved",O.NU());this.yD&&!m.isGapless()&&O.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo();O=m.Ug()&&O.Ug();this.vD.Xw("iv_s");O=O===void 0?!0:O;var w;if(w=this.JY){w=this.JY;var y=this.mediaElement;w=!!y&&y===w.mediaElement}w&&(this.GQ(),Af(this));w=this.OH();w.GQ(!O);w.F1(this.Ln,this);w.getPlayerType()!==1&&w.dispose();O=this.Nq;O.L=O.J;Ge(O)}m.getPlayerType()=== 1&&this.Ap(m);O=m.getPlayerType();w=this.Nq.D[O]||null;m!==this.Zj()&&m!==w&&(w==null||w.dispose(),this.Nq.D[O]=m);this.Nq.Yb(m);this.mediaElement&&m.setMediaElement(this.mediaElement);m.Yh(this.Ln,this);m.h4()?$kl(this,"setPresenting",!1):(this.dV("newdata",m,m.getVideoData()),h&&!g.Y_(h,m.getPlayerState())&&this.HO(new g.q6(m.getPlayerState(),h)),V=V&&m.getPlayerType()===1,m.Yz()&&!V&&this.dV("dataloaded",m,m.getVideoData()),(V=(V=m.getVideoData().L)&&V.video)&&this.kN.yV("onPlaybackQualityChange", V.quality),ut(this,"cuerangesadded",m.NU()),V=m.getPlayerState(),g.l(V,2)?wJp(this):g.l(V,8)?m.playVideo():m.D2()&&m.pauseVideo(),V=this.Zj(),m.getPlayerType()===2&&(m.getVideoData().VT=V.getVideoData().clientPlaybackNonce),m.getPlayerType()!==2||this.Qi()||(m=m.getVideoData(),V.GD(m.clientPlaybackNonce,m.W6||"",m.breakType||0,m.B9,m.videoId||"")),this.V1++)}}; g.U.jo=function(){this.Zj()!==this.OH()&&this.Yb(this.Zj())}; g.U.Ic=function(){return this.Nq}; g.U.OZ=function(m){return this.Nq.OZ(m)}; g.U.iA=function(m){return this.Nq.iA(m)}; g.U.Zj=function(){return this.Nq.Zj()}; g.U.OH=function(){return this.Nq.OH()}; g.U.OY=eG(40);g.U.KaN=function(){We(this)||this.ke(5)}; g.U.BBA=function(){if(!We(this)){Wy$(this);var m=this.OH(),V=m.getVideoData();this.W.Y("html5_allow_multiview_tile_preload")&&V.BB&&m.seekTo(Infinity);V=m.getPlayerState();m.D2()?this.pauseVideo():V.isOrWillBePlaying()&&this.playVideo()}}; g.U.canPlayType=function(m){return Ea(m)}; g.U.j=function(){return this.W}; g.U.getVideoData=function(){return this.OH().getVideoData()}; g.U.g5=function(){return this.OH().Pp()}; g.U.QF=function(){return this.Zj().getVideoData()}; g.U.getVideoLoadedFraction=function(m){return g.dY(this,{playerType:m}).getVideoLoadedFraction()}; g.U.xN=function(){return this.template}; g.U.Gp=function(){return this.rB}; g.U.Pj=function(){return this.vD}; g.U.aV=function(m,V,O){g.dY(this,{playerType:V===void 0?1:V}).mA(m,void 0,O)}; g.U.Fd=function(){var m=this.rB.Fd();this.kN.publish("videoStatsPingCreated",m);return m}; g.U.getVolume=function(){return Math.round(this.kN.getVolume())}; g.U.isMuted=function(){return this.kN.isMuted()}; g.U.Xp=function(){if(this.Zj()===this.OH()&&this.KP)return this.KP.postId}; g.U.ZCH=function(){var m=this;this.Y("use_rta_for_player")||(g.g2(this.W)?g.Uh(this.W,g.Vj(this.getVideoData())).then(function(V){Qj(lb(),V);vhl(m.getVideoData(),m.W,m.uN())}):vhl(this.getVideoData(),this.W,this.uN()))}; g.U.GO=function(m){this.kN.publish("poTokenVideoBindingChange",m)}; g.U.ZI=function(m){this.kN.publish("d6de4videobindingchange",m)}; g.U.Ea=function(){this.uQ&&this.uQ.Ea()}; g.U.qe=function(m){this.uQ=m}; g.U.Pa=function(m){if(m===1){this.vD.tick("vr");var V=this.OH();V.FP();I8$(this.vD,V.getVideoData(),Ky7(this));f33(this.rB)}V=this.W;if(oV(V)&&V.V||g.l0(V)){var O;(((O=this.OH().getVideoData())==null?0:O.enableServerStitchedDai)||!this.Qi())&&this.kN.yV("onAdStateChange",m)}}; g.U.setLoopVideo=function(m){var V=this.OH();V===this.Zj()&&V.Q8()!==m&&(V.setLoop(m),this.kN.bH("onLoopChange",m))}; g.U.getLoopVideo=function(){return this.OH().Q8()}; g.U.setLoopRange=function(m){var V=!1;!!this.KP!==!!m?V=!0:this.KP&&m&&(V=this.KP.startTimeMs!==m.startTimeMs||this.KP.endTimeMs!==m.endTimeMs||this.KP.postId!==m.postId||this.KP.type!==m.type);if(V){V=this.OH();Uf(V.getVideoData())&&V.uH("slr",{et:(m==null?void 0:m.endTimeMs)||-1});V=this.Zj();V.FJ("applooprange");if(m){var O=new g.a2(m.startTimeMs,m.endTimeMs,{id:"looprange",namespace:"applooprange"});V.addCueRange(O)}else{this.QF().clipConfig=void 0;var h;((O=this.KP)==null?void 0:O.type)!=="repeatChapter"|| isNaN(Number((h=this.KP)==null?void 0:h.loopCount))||(O={loopCount:String(this.KP.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.Rz("repeatChapterLoopEvent",O))}this.KP=m;this.kN.bH("onLoopRangeChange",m||void 0);this.Zj()===this.OH()&&(this.Rb(),V.U_())}}; g.U.getLoopRange=function(){return this.KP}; g.U.Rb=function(){var m="",V=this.Zj();this.KP?V!==this.OH()?m="pnea":qT0(this,V.getCurrentTime())&&(this.KP.loopCount=0,m="ilr"):m="nlr";var O=this.OH();if(Uf(O.getVideoData()))if(this.Y("html5_gapless_log_loop_range_info")){var h,w;O.uH("slrre",{rej:m,ct:V.getCurrentTime(),lst:(h=this.KP)==null?void 0:h.startTimeMs,let:(w=this.KP)==null?void 0:w.endTimeMs})}else O.uH("slrre",{});m||fs3(this)}; g.U.setPlaybackRate=function(m,V){if(!isNaN(m)){m=VI$(this,m);var O=this.Zj();O.getPlaybackRate()!==m&&(O.setPlaybackRate(m),V&&!this.W.T&&g.I$("yt-player-playback-rate",m),this.kN.yV("onPlaybackRateChange",m))}}; g.U.getCurrentTime=function(m,V){V=V===void 0?!0:V;var O=this.Nq.TQ;if(O)return O.getCurrentTime();m=(O=m===2&&this.getVideoData().enableServerStitchedDai)?this.OH():g.dY(this,{playerType:m});return O&&this.bU?(O=this.Nq.K)?O.getCurrentTime(V):m.getCurrentTime():V?(V=Ki(this,m),NI(this,V.getCurrentTime(),V)):m.getCurrentTime()}; g.U.X8=function(){var m=g.dY(this,{playerType:void 0});m=Ki(this,m);return NI(this,m.X8(),m)}; g.U.getDuration=function(m,V){V=V===void 0?!0:V;var O=this.Nq.TQ;if(O)return O.getDuration();O=this.getVideoData();var h=m===2&&O.enableServerStitchedDai;var w=h?this.OH():g.dY(this,{playerType:m});if(O.hasProgressBarBoundaries()&&!h){var y,L=Number((y=O.progressBarStartPosition)==null?void 0:y.utcTimeMillis),C;y=Number((C=O.progressBarEndPosition)==null?void 0:C.utcTimeMillis);if(!isNaN(L)&&!isNaN(y))return(y-L)/1E3}if(Uf(O)&&!O.isLivePlayback)return ce(this,m);if(V)return m=tf(this,w),NI(this,m.getDuration(), m);if(h&&this.bU){if(this.Y("html5_huli_ssdai_use_playback_state"))return m=this.Nq,m=m.Z===m.K?m.Z:null,(m==null?void 0:m.getDuration())||0;var E;return((E=this.Nq.K)==null?void 0:E.getDuration())||0}return w.getDuration()}; g.U.K6=function(m){var V=g.dY(this,{playerType:m});return this.Qi(V)?(V=tf(this,V),V.K6()-V.getCurrentTime()+this.getCurrentTime(m)):V.K6()}; g.U.finishSegmentByCpn=function(){return[]}; g.U.UF=function(){this.template.UF();var m=this.kN;m.state.element=this.template.element;var V=m.state.element,O;for(O in m.state.Z)m.state.Z.hasOwnProperty(O)&&(V[O]=m.state.Z[O]);(m=MbG(this.template.element))&&this.events.C(this.template,m,this.onFullscreenChange)}; g.U.getDebugText=function(m){var V=this.Zj().xD(m),O=this.OH();if(O!==this.Zj()){O=O.xD(m);for(var h=g.D(Object.keys(O)),w=h.next();!w.done;w=h.next())w=w.value,V["ad"+w]=O[w];if(m){O=V;h={};if(w=g4(document,"movie_player"))h.bounds=w.getBoundingClientRect(),h["class"]=w.className;w={};var y=g.KK("video-ads");y?(ro7(y,w),w.html=y.outerHTML):w.missing=1;y={};var L=g.KK("videoAdUiSkipContainer"),C=g.KK("ytp-ad-skip-button-container"),E=g.KK("ytp-skip-ad-button"),q=L||C||E;q?(ro7(q,y),y.ima=L?1:0,y.bulleit= C?1:0,y.component=E?1:0):y.missing=1;h=JSON.stringify({player:h,videoAds:w,skipButton:y});O.ad_skipBtnDbgInfo=h}}m&&this.mediaElement&&(V["0sz"]=""+(+CK(this.mediaElement.getSize())===0),V.op=this.mediaElement.lm("opacity"),O=this.mediaElement.Er().y+this.mediaElement.getSize().height,V.yof=""+(+O<=0),V.dis=this.mediaElement.lm("display"));m&&((m=(0,g.sp)())&&(V.gpu=m),(m=this.W.playerStyle)&&(V.ps=m),this.W.Mf&&(V.webview=1),(m=this.webPlayerContextConfig.jsUrl)&&(V.js=m));V.debug_playbackQuality= this.kN.getPlaybackQuality(1);V.debug_date=(new Date).toString();V.origin=window.origin;V.timestamp=Date.now();delete V.uga;delete V.q;return JSON.stringify(V,null,2)}; g.U.getFeedbackProductData=function(){var m={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.j().experiments.experimentIds.join(", "),player_release:J[81]},V=this.getPlayerStateObject().MU;V&&(m.player_error_code=V.errorCode,m.player_error_details=JSON.stringify(V.errorDetail));return m}; g.U.getPresentingPlayerType=function(m){if(this.appState===1)return 1;if(We(this))return 3;var V,O,h;return(m&&this.W.wu().Z.lH(xko)?(h=(V=this.Nq.Z)==null?void 0:V.isAd())!=null&&h:(O=this.bU)==null?0:FNp(O,this.getCurrentTime()))?2:this.OH().getPlayerType()}; g.U.jC=function(){return!1}; g.U.getPlayerStateObject=function(m){var V=this.Nq.TQ;return V?V.getPlayerState():g.dY(this,{playerType:m}).getPlayerState()}; g.U.getAppState=function(){return this.appState}; g.U.ZfH=function(m){switch(m.type){case "loadedmetadata":this.jN.start();m=g.D(this.Md);for(var V=m.next();!V.done;V=m.next())V=V.value,tIo(this,V.id,V.Riz,V.lMz,void 0,!1);this.Md=[];break;case "loadstart":this.vD.Xw("gv");break;case "progress":case "timeupdate":Ot(m.target.EZ())>=2&&this.vD.Xw("l2s");break;case "playing":g.xC&&this.jN.start();if(g.g2(this.W))m=!1;else{V=g.FK(this.Gp());m=this.mediaElement.lm("display")==="none"||CK(this.mediaElement.getSize())===0;var O=xR(this.template),h=this.OH().getVideoData(), w=g.Sm(this.W);h=dU(h);V=!O||V||w||h||this.W.pA;m=m&&!V}m&&(m=this.OH(),m.d_(),this.getVideoData().Je||(this.getVideoData().Je=1,this.Kz(),m.playVideo()))}}; g.U.b66=function(m){this.kN.dB("onLoadProgress",m)}; g.U.R7z=function(){this.kN.publish("playbackstalledatstart")}; g.U.n5t=function(m,V){this.kN.publish("sabrCaptionsDataLoaded",m,V)}; g.U.OfA=function(m){this.OH().sb(m)}; g.U.aer=function(m){this.OH().Ob(m)}; g.U.A6t=function(m){m=Ki(this,this.OH());m=NI(this,m.getCurrentTime(),m);this.kN.yV("onVideoProgress",m);this.W.z9&&g2$(this,this.visibility.JZ())&&this.pauseVideo()}; g.U.JYe=function(){this.kN.yV("onAutoplayBlocked");var m=this.OH().getVideoData();m&&(m.le=!0);g.sY(this.W)&&(m={autoplayBrowserPolicy:nr(),autoplayIntended:Se(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.Rz("embedsAutoplayStatusChanged",m))}; g.U.j8N=function(){this.kN.publish("progresssync")}; g.U.CUN=function(){this.kN.dB("onPlaybackPauseAtStart")}; g.U.Uqe=function(m){if(this.getPresentingPlayerType()===1){g.fX(m,1)&&!g.l(m.state,64)&&this.QF().isLivePlayback&&this.Zj().isAtLiveHead()&&this.kN.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.fX(m,2)){if(this.KP&&this.KP.endTimeMs>=(this.getDuration()-1)*1E3){fs3(this);return}wJp(this)}if(g.l(m.state,128)){var V=m.state;this.cancelPlayback(5);V=V.MU;JSON.stringify({errorData:V,debugInfo:this.getDebugText(!0)});this.kN.yV("onError",Emp(V.errorCode));this.kN.dB("onDetailedError",{errorCode:V.errorCode, errorDetail:V.errorDetail,message:V.errorMessage,messageKey:V.kM,cpn:V.cpn});(0,g.TN)()-this.W.nf>6048E5&&this.kN.dB("onReloadRequired")}V={};if(m.state.isPlaying()&&!m.state.isBuffering()&&!DY("pbresume","ad_to_video")&&DY("_start","ad_to_video")){var O=this.getVideoData();V.clientPlaybackNonce=O.clientPlaybackNonce;O.videoId&&(V.videoId=O.videoId);g.r5(V,"ad_to_video");ko("pbresume",void 0,"ad_to_video");f33(this.rB)}this.kN.publish("applicationplayerstatechange",m)}}; g.U.HO=function(m){this.Nq.TQ||this.kN.publish("presentingplayerstatechange",m)}; g.U.Lq=function(m){UO(this,rG(m.state));g.l(m.state,1024)&&this.kN.isMutedByMutedAutoplay()&&(kR(this,{muted:!1,volume:this.bN.volume},!1),rY(this,!1))}; g.U.onPlayerRequestSent=function(m){this.kN.bH("onPlayerRequestSent",m)}; g.U.yk=function(m,V){m==="newdata"&&lK7(this);this.kN.publish("applicationvideodatachange",m,V)}; g.U.NBr=function(m,V){Wy$(this);this.kN.dB("onPlaybackAudioChange",this.kN.getAudioTrack().fP.name);this.kN.publish("internalaudioformatchange",this.kN.getAudioTrack().fP.id,V)}; g.U.uhr=function(m){var V=this.OH().getVideoData();m===V&&this.kN.yV("onPlaybackQualityChange",m.L.video.quality)}; g.U.Qv=function(){var m=this.Nq.D[2]||null;m&&(m=m.getVideoData(),this.OH().uH("ssdai",{cleanaply:1,acpn:m==null?void 0:m.clientPlaybackNonce,avid:m.videoId,isDai:this.QF().enableServerStitchedDai?1:0}),delete this.Nq.D[2])}; g.U.QJH=function(m,V){this.dV(m,this.OH(),V)}; g.U.dV=function(m,V,O){this.W.tj()&&V.uH("vdc",{type:m,vid:O.videoId||"",cpn:O.clientPlaybackNonce||""});V===this.Zj()&&(this.W.lN=O.oauthToken);V===this.Zj()&&(this.getVideoData().enableServerStitchedDai&&!this.bU?(this.Zj().uH("sdai",{initSstm:1}),this.bU=new g.PW(this.kN,this.W,this.Zj(),this)):!this.getVideoData().enableServerStitchedDai&&this.bU&&(this.bU.dispose(),this.bU=null));if(m==="newdata")H_(this.rB,2),this.kN.publish("videoplayerreset",V);else{if(!this.mediaElement)return;if(m==="dataloaded")if(this.Zj()=== this.OH()){if(Vl(O.IY,O.Ma),!this.Zj().getPlayerState().isError()){var h=We(this);this.QF().isLoaded();h&&this.ke(6);LyI(this);qy$(this.rB)||j7$(this)}}else LyI(this);if(V.getPlayerType()===1&&(this.W.EH&&kH7(this),this.getVideoData().isLivePlayback&&!this.W.O0&&this.hR("html5.unsupportedlive",2,"DEVICE_FALLBACK"),O.isLoaded()&&((ohl(O)||this.getVideoData().PP)&&this.kN.publish("legacyadtrackingpingchange",this.getVideoData()),O.hasProgressBarBoundaries()))){var w;h=Number((w=this.getVideoData().progressBarEndPosition)== null?void 0:w.utcTimeMillis)/1E3;!isNaN(h)&&(w=this.K6())&&(w-=this.getCurrentTime(),h=(h-w)*1E3,w=this.fg.progressEndBoundary,(w==null?void 0:w.start)!==h&&(w&&this.V3([w]),h=new g.a2(h,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.Zj().addCueRange(h),this.fg.progressEndBoundary=h))}this.kN.publish("videodatachange",m,O,V.getPlayerType())}this.kN.yV("onVideoDataChange",{type:m,playertype:V.getPlayerType()});this.Rb();(m=O.Dx)?this.eT.E$(m,O.clientPlaybackNonce): ZW0(this.eT)}; g.U.C8=function(){He(this,null);this.kN.dB("onPlaylistUpdate")}; g.U.Toe=function(m){delete this.fg[m.getId()];this.Zj().removeCueRange(m);a:{m=this.getVideoData();var V,O,h,w,y,L,C,E,q,M,f=((V=m.mS)==null?void 0:(O=V.contents)==null?void 0:(h=O.singleColumnWatchNextResults)==null?void 0:(w=h.autoplay)==null?void 0:(y=w.autoplay)==null?void 0:y.sets)||((L=m.mS)==null?void 0:(C=L.contents)==null?void 0:(E=C.twoColumnWatchNextResults)==null?void 0:(q=E.autoplay)==null?void 0:(M=q.autoplay)==null?void 0:M.sets);if(f)for(V=g.D(f),O=V.next();!O.done;O=V.next())if(O= O.value,w=h=void 0,O=O.autoplayVideo||((h=O.autoplayVideoRenderer)==null?void 0:(w=h.autoplayEndpointRenderer)==null?void 0:w.endpoint),h=g.d(O,g.xu),y=w=void 0,O!=null&&((w=h)==null?void 0:w.videoId)===m.videoId&&((y=h)==null?0:y.continuePlayback)){m=O;break a}m=null}(V=g.d(m,g.xu))&&this.kN.bH("onPlayVideo",{sessionData:{autonav:"1",itct:m==null?void 0:m.clickTrackingParams},videoId:V.videoId,watchEndpoint:V})}; g.U.ke=function(m){m!==this.appState&&(m===2&&this.getPresentingPlayerType()===1&&(UO(this,-1),UO(this,5)),this.appState=m,this.kN.publish("appstatechange",m))}; g.U.hR=function(m,V,O,h,w){this.Zj().x5(m,V,O,h,w)}; g.U.ox=eG(9);g.U.isAtLiveHead=function(m,V){V=V===void 0?!1:V;var O=g.dY(this,{playerType:m});m=tf(this,O);O=Ki(this,O);return m!==O?m.isAtLiveHead(NI(this,O.getCurrentTime(),O),!0):m.isAtLiveHead(void 0,V)}; g.U.Rf=function(){var m=g.dY(this,{playerType:void 0});return tf(this,m).Rf()}; g.U.seekTo=function(m,V,O,h,w,y){V=V!==!1;h=g.dY(this,{playerType:h});this.appState===2&&$R(this);if(this.Qi(h))bt(this)?this.bU.seekTo(m,{seekSource:w},V,O):this.HD.seekTo(m,{seekSource:w},V,O);else{this.Y("html5_sabr_csdai_seek_log")||(y="");var L;h.seekTo(m,{Z1:!V,G$:O,Jq:"application"+((L=y)!=null?L:""),seekSource:w})}}; g.U.seekBy=function(m,V,O,h){this.seekTo(this.getCurrentTime()+m,V,O,h,void 0,"_by")}; g.U.Slr=function(){this.kN.yV("SEEK_COMPLETE")}; g.U.o5H=function(){this.kN.bH("onAbnormalityDetected")}; g.U.l4t=function(m){this.kN.bH("onSnackbarMessage",m)}; g.U.WnH=function(m){var V=this.OH(),O=V.getVideoData();if(this.appState===1||this.appState===2)O.startSeconds=m;this.appState===2?g.l(V.getPlayerState(),512)||$R(this):this.kN.yV("SEEK_TO",m)}; g.U.PUe=function(){this.kN.publish("airplayactivechange")}; g.U.tKr=function(){this.kN.publish("airplayavailabilitychange")}; g.U.showAirplayPicker=function(){this.OH().Ei()}; g.U.eTr=function(){this.kN.publish("beginseeking")}; g.U.a4t=function(){this.kN.publish("endseeking")}; g.U.getStoryboardFormat=function(m){m=g.dY(this,{playerType:m});return tf(this,m).getStoryboardFormat()}; g.U.NL=function(m){m=g.dY(this,{playerType:m});return tf(this,m).getVideoData().NL()}; g.U.Qi=function(m){m=(m||this.OH()).getVideoData();if(bt(this))m=m===this.bU.playback.getVideoData();else a:{var V=this.HD;if(m===V.Z.getVideoData()&&V.L.length)m=!0;else{V=g.D(V.L);for(var O=V.next();!O.done;O=V.next())if(m.f4===O.value.f4){m=!0;break a}m=!1}}return m}; g.U.zS=function(m,V,O,h,w,y,L,C){var E=bt(this);this.OH().uH("appattl",{sstm:this.bU?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:E});E?(O=nbp(this.bU,m,V,O,h,w,y,L,C),m=(O==null?void 0:O.f4)||"",(this.Y("html5_ssdai_new_decoration_logic")||this.Zj().getVideoData().X7)&&this.Zj().M3(C||"",V,(O==null?void 0:O.clientPlaybackNonce)||"")):m=AdG(this.HD,m,O,h,w,y);return m}; g.U.QA=function(m,V,O,h,w,y,L,C){if(bt(this)){var E;(E=this.bU)==null||nbp(E,m,V,O,h,w,y,L,C)}}; g.U.wU=function(m){(this.Y("html5_ssdai_new_decoration_logic")||this.Zj().getVideoData().X7)&&this.Zj().M3(m,"","");var V;(V=this.bU)==null||V.wU(m)}; g.U.DG=function(m,V){m=m===void 0?-1:m;V=V===void 0?Infinity:V;bt(this)||$V5(this.HD,m,V)}; g.U.Au=function(m,V,O){if(bt(this)){var h=this.bU,w=h.Z.OZ({f4:m});w?(O===void 0&&(O=w.uU),GDl(h,w,V,O)):h.Mz("Invalid_timelinePlaybackId_"+m+"_specified")}else{h=this.HD;w=null;for(var y=g.D(h.L),L=y.next();!L.done;L=y.next())if(L=L.value,L.f4===m){w=L;break}w?(O===void 0&&(O=w.uU),Txo(h,w,V,O)):Li(h,"InvalidTimelinePlaybackId timelinePlaybackId="+m)}}; g.U.enqueueVideoByPlayerVars=function(m,V,O,h){O=O===void 0?Infinity:O;h=h===void 0?"":h;this.Qi();m=new g.Ld(this.W,m);h&&(m.f4=h);o2$(this,m,V,O)}; g.U.queueNextVideo=function(m,V,O,h,w){O=O===void 0?NaN:O;m=this.preloadVideoByPlayerVars(m,V===void 0?1:V,O,h===void 0?"":h,w===void 0?"":w);V=this.OH();m&&(this.Y("html5_check_queue_on_data_loaded")?this.j().supportsGaplessShorts()&&V.getVideoData().J&&(O=this.Q6,h=this.yD.K,O.T!==m&&(O.L=V,O.T=m,O.D=1,O.Z=m.getVideoData(),O.K=h,O.Z.isLoaded()?O.N():O.Z.subscribe("dataloaded",O.N,O))):(O=this.W.experiments.wu().Z.lH(nB),O=Ur3(V,m,this.yD.K,O),O!=null?(V.uH("sgap",O),V.getVideoData().J&&V.J4(!1)): (m=m.getVideoData(),V=this.Q6,V.Z!==m&&(V.Z=m,V.D=1,m.isLoaded()?V.J():V.Z.subscribe("dataloaded",V.J,V)))))}; g.U.NE=function(m,V,O,h){var w=this;O=O===void 0?0:O;h=h===void 0?0:h;tf(this,this.OH()).mZ();c77(this.yD,m,V,O,h).then(function(){w.kN.dB("onQueuedVideoLoaded")},function(){})}; g.U.DM=function(){return this.yD.DM()}; g.U.qI=function(m){var V=this.yD.Z;return V?V.HG(m):!1}; g.U.clearQueue=function(m,V){this.yD.clearQueue(m===void 0?!1:m,V===void 0?!1:V)}; g.U.loadVideoByPlayerVars=function(m,V,O,h,w,y){V=V===void 0?1:V;var L=this.Zj();if(V===2&&this.QF().enableServerStitchedDai&&L&&!L.Fl())return L.uH("lvonss",{vid:(m==null?void 0:m.videoId)||"",ptype:V}),!1;var C=!1;L=new g.Ld(this.W,m);L.Zd=y;g.fI(this.W)&&!L.SJ&&q8(this.vD);var E;y=this.vD;var q=(E=L.Qt)!=null?E:"";y.timerName=q;this.vD.Rc("pl_i");this.Y("web_player_early_cpn")&&L.clientPlaybackNonce&&this.vD.infoGel({clientPlaybackNonce:L.clientPlaybackNonce});pOm(L).supportsVp9Encoding===!1&& this.OH().uH("noVp9enc",{});if(this.j().supportsGaplessShorts()){E=IF3(this.yD,L,V);if(E==null){UO(this,-1);var M;((M=this.yD.Z)==null?0:M.getVideoData().isAd())||ni(this);m=this.yD;m.app.j().Y("html5_gapless_new_slr")?DG(m.app,"gaplessshortslooprange"):m.app.setLoopRange(null);m.app.getVideoData().cC=!0;var f;(f=m.Z)==null||f.Vn();var x;(x=m.Z)==null||x.yq();O={Jq:"gapless_to_next_video",seekSource:60,sR:m.K.Z};h=SQ5(m);if(m.K.Z){var R;w=((R=m.D)==null?void 0:NG(R))||{};R=w.MS;w=w.Y0;w!=null&&R!= null&&(h=w-R+.001)}var A;(A=m.app.OH())==null||A.seekTo(h,O);if(!m.app.getPlayerStateObject(V).isPlaying()){var K;(K=m.app.OH())==null||K.playVideo(!0)}nO5(m,h);var X;(X=m.app.OH())==null||X.Eb();m.V();return!0}A=this.Y("html5_shorts_gapless_preload_fallback");K=this.yD.Z;A&&K&&!K.UH()&&(X=K.getVideoData(),this.Nq.N.set(SE(V,X),K,3600));this.yD.clearQueue(A);this.OH().uH("sgap",{f:E})}if(w){for(;L.Tv.length&&L.Tv[0].isExpired();)L.Tv.shift();A=L.Tv.length-1;C=A>0&&w.L(L.Tv[A])&&w.L(L.Tv[A-1]);L.Tv.push(w)}O|| (m&&zKl(m)?(LI(this.W)&&!this.P7&&(m.fetch=0),He(this,m)):this.playlist&&He(this,null),m&&(this.P7=Cp(!1,m.external_list)));this.kN.publish("loadvideo");A=this.F$(L,V,h);C&&this.hR("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+L.Tv.join()).replace(/[;:,]/g,"_"));return A}; g.U.preloadVideoByPlayerVars=function(m,V,O,h,w){V=V===void 0?1:V;O=O===void 0?NaN:O;w=w===void 0?"":w;h=V;var y=w,L=xk(m);if(h=this.Nq.N.get(h+"_"+L+"_"+y+"_"+ +(m.autonav==="1"||m.autonav===!0)+ +(m.autoplay==="1"||m.autoplay===!0||m.autoplay===1))||null)return h;m=new g.Ld(this.W,m);w&&(m.f4=w);w=SE(V,m);h=this.OH();y=SE(h.getPlayerType(),h.getVideoData());w===y?(h.Js(!0),m.dispose(),O=null):(m.l2=!0,m.CE=!0,h=gY(this,V,m,!0),(V!==1||!qs(this.W)||this.W.Y("html5_allow_multiview_tile_preload")&& m.BB)&&h.Js(!0),this.Nq.N.set(w,h,O||3600),O=h);return O}; g.U.setMinimized=function(m){this.visibility.setMinimized(m);(m=gYX(this.rB))&&(this.isMinimized()?m.load():m.unload());this.kN.publish("minimized")}; g.U.setInline=function(m){this.visibility.setInline(m)}; g.U.setInlinePreview=function(m){this.visibility.setInline(m)}; g.U.LS=function(m){Aoo(this,m)||this.visibility.LS(m)}; g.U.setSqueezeback=function(m){this.visibility.setSqueezeback(m)}; g.U.n9=function(){var m,V=(m=this.mediaElement)==null?void 0:m.Ir();V&&(this.W.nV&&wC(VO(function(){return document.exitFullscreen()}),function(){}),wC(VO(function(){return HZ(V)}),function(){}))}; g.U.r6H=function(){this.mediaElement.Ir();this.mediaElement.Ir().webkitPresentationMode==="picture-in-picture"?this.LS(!0):this.LS(!1)}; g.U.togglePictureInPicture=function(){this.OH().togglePictureInPicture()}; g.U.F$=function(m,V,O){V=V===void 0?1:V;DY("_start",this.vD.timerName)||g.yf(KP)(void 0,this.vD.timerName);var h=!1,w=E2G(this,V,m,!1);w?(h=!0,m.dispose(),w.getVideoData().BB&&w.uH("app_lv",{pdl:w.Yz()})):(w=gY(this,V,m,!0,O),(this.Y("html5_onesie")||this.Y("html5_load_before_stop"))&&w.zY()&&w.Js(),this.jN.stop(),V===1&&V!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,V),this.Yb(w));w===this.Zj()&&(this.W.lN=m.oauthToken);if(!w.zY())return!1;if(w===this.Zj())return this.ke(1), m=$R(this),h&&this.Y("html5_player_preload_ad_fix")&&w.getPlayerType()===1&&w.Yz()&&this.dV("dataloaded",w,w.getVideoData()),m;w.j0();return!0}; g.U.cueVideoByPlayerVars=function(m,V){var O=this;V=V===void 0?1:V;var h=this.Zj();if(this.QF().enableServerStitchedDai&&h&&!h.Fl()&&m&&Object.keys(m).length>0)h.uH("qvonss",{vid:(m==null?void 0:m.videoId)||"",ptype:V});else if(m&&zKl(m))if(this.Sr=!0,He(this,m),(m=g.M8(this.playlist))&&m.o8())eE(this,m,V);else this.playlist.onReady(function(){TE(O)}); else{V||(V=this.getPresentingPlayerType());V===1&&this.C8();h=new g.Ld(this.W,m);var w=g.sY(this.W)&&!this.W.Ae&&V===1&&!h.isAd()&&!h.W6;this.kN.publish("cuevideo",V);w?(this.OH().getVideoData().loading=!0,pwC(h,m?m:{}).then(function(y){eE(O,y,V)}),h.dispose()):eE(this,h,V)}}; g.U.Nb=function(m,V,O,h,w,y,L){if(!m&&!O)throw Error("Playback source is invalid");if(at(this.W)||g.R2(this.W))return V=V||{},V.lact=UL(),V.vis=this.kN.getVisibilityState(),this.kN.bH("onPlayVideo",{videoId:m,watchEndpoint:y,sessionData:V,listId:O}),!1;eK5(this.vD);this.vD.reset();m={video_id:m};h&&(m.autoplay="1");h&&(m.autonav="1");y&&(m.player_params=y.playerParams);L&&(m.oauth_token=L);O?(m.list=O,this.loadPlaylist(m)):this.loadVideoByPlayerVars(m,1);return!0}; g.U.cuePlaylist=function(m,V,O,h){this.Sr=!0;Uk7(this,m,V,O,h)}; g.U.loadPlaylist=function(m,V,O,h){this.Sr=!1;Uk7(this,m,V,O,h)}; g.U.gW=function(){return this.kN.isMutedByMutedAutoplay()?!1:this.Nq.TQ?!0:!(!this.playlist||!this.playlist.hasNext())}; g.U.XC=eG(7); g.U.nextVideo=function(m,V){var O=g.R5(this.Zj().getVideoData());g.Gc(this.kN)&&O?this.Nb(O.videoId,V?O.ZY:O.sessionData,O.playlistId,V,void 0,O.X0||void 0):this.P7?this.kN.dB("onPlaylistNext"):this.getPresentingPlayerType()===3?zc(this.rB).nextVideo():!this.playlist||LI(this.W)&&!this.kN.isFullscreen()||(this.playlist.hasNext(m)&&FU$(this.playlist,Zf3(this.playlist)),this.playlist.loaded?(m=V&&this.W.Y("html5_player_autonav_logging"),V&&this.kN.publish("playlistautonextvideo"),this.F$(g.M8(this.playlist,void 0, V,m),1)):this.Sr=!1)}; g.U.previousVideo=function(m){this.P7?this.kN.dB("onPlaylistPrevious"):this.getPresentingPlayerType()===3?zc(this.rB).Uk():!this.playlist||LI(this.W)&&!this.kN.isFullscreen()||(this.playlist.hasPrevious(m)&&FU$(this.playlist,sLl(this.playlist)),this.playlist.loaded?this.F$(g.M8(this.playlist),1):this.Sr=!1)}; g.U.playVideoAt=function(m){this.P7?this.kN.dB("onPlaylistIndex",m):this.playlist&&(this.playlist.loaded?this.F$(g.M8(this.playlist,m),1):this.Sr=!1,FU$(this.playlist,m))}; g.U.getPlaylist=function(){return this.playlist}; g.U.PY=eG(15);g.U.Ey=function(m){this.Md=g.uA(this.Md,function(y){return y.id!==m}); for(var V=this.Zj(),O=V.NU(),h=0;h0&&(E=Math.floor(q/1E3))}E=V?V.Ul:E;var M={AD_BLOCK:this.Z++,AD_BREAK_LENGTH:E,AUTONAV_STATE:ZG(this.player.j()),CA_TYPE:"image",CPN:C.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.Rf()*1E3,LACT:UL(),LIVE_INDEX:V?this.D++:1,LIVE_TARGETING_CONTEXT:V&&V.context?V.context:"",MIDROLL_POS:y? Math.round(y.start/1E3):0,MIDROLL_POS_MS:y?Math.round(y.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.xN().dM().height,P_W:this.player.xN().dM().width,YT_REMOTE:w?w.join(","):""},f=gt(ov);Object.keys(f).forEach(function(R){f[R]!=null&&(M[R.toUpperCase()]=f[R].toString())}); O!==""&&(M.BISCOTTI_ID=O);O={};Rv(m)&&(O.sts="20430",(V=this.player.j().forcedExperiments)&&(O.forced_experiments=V));var x=MB(g.nZ(m,M),O);return x.split("?").length!==2?nt(Error("Invalid AdBreakInfo URL")):g.Uh(this.player.j(),C==null?void 0:C.oauthToken).then(function(R){if(R&&x4()){var A=lb();Qj(A,R)}R=h.player.uN(A);A=v2C(h,x,M,C.isMdxPlayback,L);return g.Ia(R,A,"/youtubei/v1/player/ad_break").then(function(K){return K})})}; sO.prototype.reset=function(){this.D=this.Z=1};g.t(PGp,sO); PGp.prototype.L=function(m,V,O){V=V===void 0?{}:V;var h=V.GY;var w=V.kF;var y=V.cueProcessedMs;O=O===void 0?"":O;V=this.Z;this.Z++;var L=this.player.j().Y("h5_disable_macro_substitution_in_get_ad_break")?m:m4X(this,m,{GY:h,kF:w,cueProcessedMs:y},O,V);if(L.split("?").length!==2)return Math.random()<.1&&g.cj(Error("Invalid AdBreakInfo URL")),nt(Error("Invalid AdBreakInfo URL"));var C=this.player.getVideoData(1).isMdxPlayback,E=O;O=asX.exec(L);O=O!=null&&O.length>=2?O[1]:"";m=iVU.test(L);var q=GHo.exec(L); q=q!=null&&q.length>=2?q[1]:"";var M=pJl.exec(L);M=M!=null&&M.length>=2&&!Number.isNaN(Number(M[1]))?Number(M[1]):1;var f=BEl.exec(L);f=f!=null&&f.length>=2?f[1]:"0";var x=mS(this.player.j().VW),R=g.v5(this.player.getVideoData(1).Zu,!0);eJa(this,R,L,E===""?"":E,this.player.j(),this.player.getVideoData(1));E={splay:!1,lactMilliseconds:String(UL()),playerHeightPixels:Math.trunc(this.player.xN().dM().height),playerWidthPixels:Math.trunc(this.player.xN().dM().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20430,autonavState:ZG(this.player.j())};if(C){C={};var A=this.player.j().RK;ZVI(C,A?A.join(","):"")&&(E.mdxContext=C)}if(C=lso.includes(x)?void 0:g.sx("PREF")){A=C.split(RegExp("[:&]"));for(var K=0,X=A.length;K1&&c[1].toUpperCase()==="TRUE"){R.user.lockedSafetyMode=!0;break}}E.autoCaptionsDefaultOn=Fya(C)}L=Q7U.exec(L);(L=L!=null&&L.length>=2?L[1]:"")&&q&&(R.user.credentialTransferTokens= [{token:L,scope:"VIDEO"}]);L={contentPlaybackContext:E};E=this.player.getVideoData(1).getGetAdBreakContext();C=this.player.getVideoData(1).clientPlaybackNonce;A=y!==void 0?Math.round(y).toString():void 0;K=(h==null?0:h.context)?h.context:void 0;X=0;y&&w&&!h&&(w=w.end-w.start,w>0&&(X=Math.floor(w/1E3)));h=(h=Math.trunc((h?h.Ul:X)*1E3))?String(h):void 0;w=this.player.Rf()*1E3;w=Number.isNaN(w)?0:Math.trunc(w);V={adBlock:V,params:O,breakIndex:M,breakPositionMs:f,clientPlaybackNonce:C,topLevelDomain:x, isProxyAdTagRequest:m,context:R,overridePlaybackContext:L,cueProcessedMs:A,videoId:q?q:void 0,liveTargetingParams:K,breakLengthMs:h,driftFromHeadMs:w?String(w):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:E?E:void 0};return Vz0(this,V)};var op$={OTe:"replaceUrlMacros",sDe:"onAboutThisAdPopupClosed",PCN:"executeCommand"};O0I.prototype.Ur=function(){return"adPingingEndpoint"}; O0I.prototype.WC=function(m,V,O){uP7(this.qf.get(),m,V,O)};hNo.prototype.Ur=function(){return"changeEngagementPanelVisibilityAction"}; hNo.prototype.WC=function(m){this.U.bH("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:m})};wQ7.prototype.Ur=function(){return"loggingUrls"}; wQ7.prototype.WC=function(m,V,O){m=g.D(m);for(var h=m.next();!h.done;h=m.next())h=h.value,uP7(this.qf.get(),h.baseUrl,V,O,h.attributionSrcMode)};g.t(jpI,g.Z);LC3.prototype.q8=function(m,V){var O={};V=Object.assign({},V,(O.cc=this.Us.S_(),O));this.Us.U.uH(m,V)};g.t(ak,g.Z);g.U=ak.prototype;g.U.addListener=function(m){this.listeners.push(m)}; g.U.removeListener=function(m){this.listeners=this.listeners.filter(function(V){return V!==m})}; g.U.xl=function(m,V,O,h,w,y,L,C){if(m==="")ER("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(m!==this.Z||O){this.Z=m;this.Ge.get().xl(m,V,O,h,w,y,L,C);this.Nf.get().xl(m,V,O,h,w,y,L,C);var E;(E=this.eK)==null||E.get().xl(m,V,O,h,w,y,L,C);this.L.xl(m,V,O,h,w,y,L,C);E=g.D(this.listeners);for(var q=E.next();!q.done;q=E.next())q.value.xl(m,V,O,h,w,y,L,C)}else ER("Duplicate content video loaded signal")}; g.U.AYH=function(){this.Z&&this.iP(this.Z)}; g.U.iP=function(m){this.Z=void 0;for(var V=g.D(this.listeners),O=V.next();!O.done;O=V.next())O.value.iP(m)};GE.prototype.O6=function(m,V,O,h,w){Jym(this);this.K=!V&&O===0;var y=this.U.getVideoData(1),L=this.U.getVideoData(2);y&&(this.contentCpn=y.clientPlaybackNonce,this.videoId=y.videoId,this.Z=y.N);L&&(this.adCpn=L.clientPlaybackNonce,this.adVideoId=L.videoId,this.adFormat=L.adFormat);this.T=m;h<=0?(Jym(this),this.K=!V&&O===0):(this.actionType=this.K?V?"unknown_type":"video_to_ad":V?"ad_to_video":"ad_to_ad",this.videoStreamType=w?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.D=!0,DY("_start",this.actionType)&&qI3(this)))}; GE.prototype.reset=function(){return new GE(this.U)};g.t(pi,g.Z);pi.prototype.addCueRange=function(m,V,O,h,w,y,L,C,E){y=y===void 0?3:y;L=L===void 0?1:L;this.Z.has(m)?ER("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:m}):(m=new MzI(m,V,O,h,y,C,E),this.Z.set(m.id,{kF:m,listener:w,Af:L}),this.U.SK([m],L))}; pi.prototype.removeCueRange=function(m){var V=this.Z.get(m);V?(this.U.Qe([V.kF],V.Af),this.Z.delete(V.kF.id)):ER("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:m})}; pi.prototype.onCueRangeEnter=function(m){if(this.Z.has(m.id))this.Z.get(m.id).listener.onCueRangeEnter(m.id)}; pi.prototype.onCueRangeExit=function(m){if(this.Z.has(m.id))this.Z.get(m.id).listener.onCueRangeExit(m.id)}; g.t(MzI,g.a2);Be.prototype.addPlayerResponseForAssociation=function(m){this.U.addPlayerResponseForAssociation(m)};lt.prototype.Pa=function(m){this.U.Pa(m)}; lt.prototype.V2=function(m){var V=g.AG.apply(1,arguments);m==="onAdStart"||m==="onAdEnd"?this.U.yV.apply(this.U,[m].concat(g.b(V))):this.U.bH.apply(this.U,[m].concat(g.b(V)))};var XQp=null;g.t(WC1,g.yh);WC1.prototype.uA=function(m){return this.Z.hasOwnProperty(m)?this.Z[m].uA():{}}; g.TZ("ytads.bulleit.getVideoMetadata",function(m){return ve().uA(m)}); g.TZ("ytads.bulleit.triggerExternalActivityEvent",function(m,V,O){var h=ve();O=KC1(O);O!==null&&h.publish(O,{queryId:m,viewabilityString:V})});g.U=Pe.prototype;g.U.xF=function(m,V){if(!this.Z.has(m))return{};if(V==="seek"){V=!1;V=V===void 0?!1:V;var O=bw(wD).yB(m,{});O?PV(O):V&&(m=bw(wD).Va(null,p6(),!1,m),m.oS=3,ikX([m]));return{}}V=TfC(V);if(V===null)return{};var h=this.U.nQ();if(!h)return{};var w=this.U.getPresentingPlayerType(!0);if((O=this.U.getVideoData(w))==null||!O.isAd())return{};O={opt_adElement:h,opt_fullscreen:this.Ge.get().isFullscreen()};return i4G(V,m,O)}; g.U.Yj=function(m,V,O,h,w){this.Z.has(m)&&(h<=0||w<=0||bw(wD).Yj(m,V,O,h,w))}; g.U.UB=function(m){var V;(V=this.Z.get(m.queryId))==null||V.UB()}; g.U.H9=function(m){var V;(V=this.Z.get(m.queryId))==null||V.H9()}; g.U.y3=function(m){var V;(V=this.Z.get(m.queryId))==null||V.y3()}; g.U.GU=function(m){var V;(V=this.Z.get(m.queryId))==null||V.GU()}; g.U.K2=function(m){var V;(V=this.Z.get(m.queryId))==null||V.K2()};b0p.prototype.send=function(m,V,O,h){try{n$5(this,m,V,O,h===void 0?!1:h)}catch(w){}};g.t(SIX,b0p);I9U.prototype.send=function(m,V,O,h){var w=!1;try{if(h==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||h==="ATTRIBUTION_SRC_MODE_XHR_OPTION")w=!0,m=nNU(m);h=w;var y=g.XA(m);if(y[1]==="https")var L=m;else y[1]="https",L=WG("https",y[2],y[3],y[4],y[5],y[6],y[7]);var C=Dhp(L);y=[];var E=HtG(L)&&this.ze.get().U.j().experiments.w0("add_auth_headers_to_remarketing_google_dot_com_ping");if(Rv(L)||E)y.push({headerType:"USER_AUTH"}),y.push({headerType:"PLUS_PAGE_ID"}),y.push({headerType:"VISITOR_ID"}),y.push({headerType:"EOM_VISITOR_ID"}), y.push({headerType:"AUTH_USER"}),y.push({headerType:"DATASYNC_ID"});this.Z.send({baseUrl:L,scrubReferrer:C,headers:y},V,O,h)}catch(q){}};wz.prototype.zM=function(){return this.U.zM(1)};g.t(yX,g.Z);g.U=yX.prototype;g.U.S_=function(){return this.U.getVideoData(1).clientPlaybackNonce}; g.U.addListener=function(m){this.listeners.push(m)}; g.U.removeListener=function(m){this.listeners=this.listeners.filter(function(V){return V!==m})}; g.U.xl=function(){this.TX.clear();this.jO=null;this.eh.get().clear()}; g.U.iP=function(){}; g.U.irz=function(m,V,O){V.videoId==="nPpU29QrbiU"&&this.U.uH("ads_ssm_vdc_s",{pt:O,dvt:m});qw(this.ze.get())&&m!=="dataloaded"||GaG(this,V,O)}; g.U.pWr=function(m,V){m!==void 0&&(this.jO=m,V===void 0?ER("Expected ad video start time on SS video changed"):this.TX.set(m,V));var O=this.U.getPresentingPlayerType(!0),h=this.U.getVideoData(O),w;m===void 0?w=null:w=this.eh.get().Z.get(m)||null;this.U.getVideoData(1).uH("ads_ssvc",{pt:O,cpn:h==null?void 0:h.clientPlaybackNonce,crtt:this.U.getCurrentTime(1,!1),atlh:this.U.isAtLiveHead(),adstt:V,pid:m,slid:w==null?void 0:w.layoutId});h?GaG(this,h,O):ER("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.U.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:m})}; g.U.s6=function(m,V){var O=m.author,h=m.clientPlaybackNonce,w=m.isListed,y=m.f4,L=m.title,C=m.iX,E=m.Bt,q=m.isMdxPlayback,M=m.tN,f=m.mdxEnvironment,x=m.isAutonav,R=m.Ye,A=m.SJ,K=m.A4,X=m.videoId||"",c=m.profilePicture||"",r=m.XU||"",N=m.X3()||!1,n=m.Z4()||!1;m=m.PS||void 0;y=this.eh.get().Z.get(y)||{layoutId:null,slotId:null};var F=this.U.getVideoData(1),z=F.yp();F=F.getPlayerResponse();V=1E3*this.U.getDuration(V);var V$=1E3*this.U.getDuration(1),O3,hI,jG=(F==null?void 0:(O3=F.playerConfig)==null? void 0:(hI=O3.daiConfig)==null?void 0:hI.enableDai)||!1,fo,w7;O3=(F==null?void 0:(fo=F.playerConfig)==null?void 0:(w7=fo.daiConfig)==null?void 0:w7.enablePreroll)||!1;return Object.assign({},y,{videoId:X,author:O,clientPlaybackNonce:h,VQ:V,ML:V$,daiEnabled:jG,PG:O3,isListed:w,yp:z,profilePicture:c,title:L,XU:r,iX:C,Bt:E,PS:m,isMdxPlayback:q,tN:M,mdxEnvironment:f,isAutonav:x,Ye:R,SJ:A,A4:K,X3:N,Z4:n})}; g.U.d0=function(){this.listeners.length=0;this.Hp=null;g.Z.prototype.d0.call(this)};g.t(jQ,g.Z);g.U=jQ.prototype;g.U.xl=function(){var m=this;this.jc=BI(function(){m.U.UH()||m.U.UJ("ad",1)})}; g.U.iP=function(){}; g.U.addListener=function(m){this.listeners.push(m)}; g.U.removeListener=function(m){this.listeners=this.listeners.filter(function(V){return V!==m})}; g.U.fB=function(){}; g.U.playVideo=function(){this.U.playVideo()}; g.U.pauseVideo=function(){this.U.pauseVideo()}; g.U.resumeVideo=function(m){this.kq(m)&&this.U.playVideo()}; g.U.kq=function(m){return this.U.getPlayerState(m)===2}; g.U.getCurrentTimeSec=function(m,V){var O=this.Nf.get().jO;return m!==2||V||O===null?this.U.getCurrentTime(m,V):JS(this,O)}; g.U.getVolume=function(){return this.U.getVolume()}; g.U.isMuted=function(){return this.U.isMuted()}; g.U.getPresentingPlayerType=function(){return this.U.getPresentingPlayerType(!0)}; g.U.getPlayerState=function(m){return this.U.getPlayerState(m)}; g.U.getGetAdBreakContext=function(){return this.U.getGetAdBreakContext()}; g.U.isFullscreen=function(){return this.U.isFullscreen()}; g.U.isAtLiveHead=function(){return this.U.isAtLiveHead()}; g.U.M6=function(m){this.U.M6(m)}; g.U.g2t=function(){var m=this.U.getPresentingPlayerType(!0),V=this.getCurrentTimeSec(m,!1);if(m===2){m=g.D(this.listeners);for(var O=m.next();!O.done;O=m.next())O.value.B7(V)}else if(m===1)for(m=g.D(this.XP),O=m.next();!O.done;O=m.next())O.value.fB(V)}; g.U.xCH=function(m){for(var V=g.D(this.listeners),O=V.next();!O.done;O=V.next())O.value.mT(m,this.getPresentingPlayerType())}; g.U.onFullscreenToggled=function(m){for(var V=g.D(this.listeners),O=V.next();!O.done;O=V.next())O.value.onFullscreenToggled(m)}; g.U.onVolumeChange=function(){for(var m=g.D(this.listeners),V=m.next();!V.done;V=m.next())V.value.onVolumeChange()}; g.U.iN=function(){for(var m=this.U.isMinimized(),V=g.D(this.listeners),O=V.next();!O.done;O=V.next())O.value.iN(m)}; g.U.XQ=function(m){for(var V=g.D(this.listeners),O=V.next();!O.done;O=V.next())O.value.XQ(m)}; g.U.Vp=function(){for(var m=this.U.xN().dM(),V=g.D(this.listeners),O=V.next();!O.done;O=V.next())O.value.Nz(m)}; g.U.J7=function(m){for(var V=g.D(this.listeners),O=V.next();!O.done;O=V.next())O.value.J7(m)}; g.U.O8=function(){for(var m=g.D(this.listeners),V=m.next();!V.done;V=m.next())V.value.O8()};g.t(v$a,g.Z);g.t(ql,g.Z);ql.prototype.d0=function(){this.PU.UH()||this.PU.get().removeListener(this);g.Z.prototype.d0.call(this)};Ml.prototype.fetch=function(m){var V=m.T2;return this.Z.fetch(m.YG,{GY:m.GY===void 0?void 0:m.GY,kF:V,cueProcessedMs:m.cueProcessedMs===void 0?0:m.cueProcessedMs}).then(function(O){return PSU(O,V)})};g.t(fa,g.Z);g.U=fa.prototype;g.U.addListener=function(m){this.listeners.push(m)}; g.U.removeListener=function(m){this.listeners=this.listeners.filter(function(V){return V!==m})}; g.U.HL=function(m){muC(this,m,1)}; g.U.onAdUxClicked=function(m,V){x9(this,function(O){O.l6(m,V)})}; g.U.UT=function(m){x9(this,function(V){V.JQ(m)})}; g.U.HH=function(m){x9(this,function(V){V.tQ(m)})}; g.U.zQS=function(m){x9(this,function(V){V.EL(m)})};Rm.prototype.reduce=function(m){switch(m.event){case "unknown":return}var V=m.identifier;var O=this.Z[V];O?V=O:(O={bv:null,Q1:-Infinity},V=this.Z[V]=O);O=m.startSecs+m.Z/1E3;if(!(O=this.Z.startSecs&&O.startSecs<=this.Z.startSecs+this.Z.Ul)){var h=void 0;if(Mw(this.ze.get())&&O.identifier!==((h=this.Z)==null?void 0:h.identifier)){var w=h=void 0,y=void 0,L=void 0;OW(this.qf.get(),"ocud","ccpi."+O.identifier+";ccpe."+O.event+";ccps."+O.startSecs+";\n ccpd."+O.Ul+";pcpi."+((h=this.Z)==null?void 0:h.identifier)+ ";pcpe."+((w=this.Z)==null?void 0:w.event)+";\n pcps."+((y=this.Z)==null?void 0:y.startSecs)+";pcpd."+((L=this.Z)==null?void 0:L.Ul)+";")}h=void 0;O.identifier!==((h=this.Z)==null?void 0:h.identifier)&&ER("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.Z=O,h_p(this,O)}}; g.U.d0=function(){this.L!=null&&(this.L.unsubscribe("cuepointupdated",this.M4,this),this.L=null);this.listeners.length=0;this.QT.length=0;g.Z.prototype.d0.call(this)};g.U=AS.prototype;g.U.zS=function(m,V,O,h,w,y,L,C){return this.U.zS(m,V,O,h,w,y,L,C)}; g.U.DG=function(m,V){this.U.DG(m,V)}; g.U.Au=function(m,V,O){this.U.Au(m,V,O)}; g.U.wU=function(m){this.U.wU(m)}; g.U.QA=function(m,V,O,h,w,y,L,C){this.U.QA(m,V,O,h,w,y,L,C)}; g.U.FK=function(m){return this.U.FK(m)}; g.U.finishSegmentByCpn=function(m,V,O){O=jf3(O);this.U.finishSegmentByCpn(m,V,O)};g.t(Uu,g.Z);g.t(J$G,g.Z);g.t(CMp,g.Z);g.t(Ef3,g.Z);g.t(qK3,g.Z);g.t(Mim,g.Z);g.t(xum,g.Z);xum.prototype.D=function(){return this.L};g.t(R_5,al); R_5.prototype.D=function(m){var V=m.content;if(V.componentType==="shopping-companion")switch(m.actionType){case 1:case 2:m=this.Z.getVideoData(1);this.Z.bH("updateKevlarOrC3Companion",{contentVideoId:m&&m.videoId,shoppingCompanionCarouselRenderer:V.renderer,layoutId:V.layoutId,macros:V.macros,onLayoutVisibleCallback:V.Z,interactionLoggingClientData:V.interactionLoggingClientData});break;case 3:this.Z.bH("updateKevlarOrC3Companion",{})}else if(V.componentType==="action-companion")switch(m.actionType){case 1:case 2:m=this.Z.getVideoData(1); this.Z.bH("updateKevlarOrC3Companion",{contentVideoId:m&&m.videoId,actionCompanionAdRenderer:V.renderer,layoutId:V.layoutId,macros:V.macros,onLayoutVisibleCallback:V.Z,interactionLoggingClientData:V.interactionLoggingClientData});break;case 3:V.renderer&&(V=this.Z.getVideoData(1),this.Z.bH("updateKevlarOrC3Companion",{contentVideoId:V&&V.videoId})),this.Z.bH("updateKevlarOrC3Companion",{})}else if(V.componentType==="image-companion")switch(m.actionType){case 1:case 2:m=this.Z.getVideoData(1);this.Z.bH("updateKevlarOrC3Companion", {contentVideoId:m&&m.videoId,imageCompanionAdRenderer:V.renderer,layoutId:V.layoutId,macros:V.macros,onLayoutVisibleCallback:V.Z,interactionLoggingClientData:V.interactionLoggingClientData});break;case 3:V=this.Z.getVideoData(1),this.Z.bH("updateKevlarOrC3Companion",{contentVideoId:V&&V.videoId}),this.Z.bH("updateKevlarOrC3Companion",{})}else if(V.componentType==="top-banner-image-text-icon-buttoned")switch(m.actionType){case 1:case 2:m=this.Z.getVideoData(1);this.Z.bH("updateKevlarOrC3Companion", {contentVideoId:m&&m.videoId,topBannerImageTextIconButtonedLayoutViewModel:V.renderer,layoutId:V.layoutId,macros:V.macros,onLayoutVisibleCallback:V.Z,interactionLoggingClientData:V.interactionLoggingClientData});break;case 3:V.renderer&&(V=this.Z.getVideoData(1),this.Z.bH("updateKevlarOrC3Companion",{contentVideoId:V&&V.videoId})),this.Z.bH("updateKevlarOrC3Companion",{})}else if(V.componentType==="banner-image")switch(m.actionType){case 1:case 2:m=this.Z.getVideoData(1);this.Z.bH("updateKevlarOrC3Companion", {contentVideoId:m&&m.videoId,bannerImageLayoutViewModel:V.renderer,layoutId:V.layoutId,macros:V.macros,onLayoutVisibleCallback:V.Z,interactionLoggingClientData:V.interactionLoggingClientData});break;case 3:V=this.Z.getVideoData(1),this.Z.bH("updateKevlarOrC3Companion",{contentVideoId:V&&V.videoId}),this.Z.bH("updateKevlarOrC3Companion",{})}else if(V.componentType==="ads-engagement-panel")switch(V=V.renderer,m.actionType){case 1:case 2:this.Z.bH("updateEngagementPanelAction",V.addAction);this.Z.bH("changeEngagementPanelVisibility", V.expandAction);break;case 3:this.Z.bH("changeEngagementPanelVisibility",V.hideAction),this.Z.bH("updateEngagementPanelAction",V.removeAction)}else if(V.componentType==="ads-engagement-panel-layout"){var O=V.renderer;switch(m.actionType){case 1:case 2:this.Z.bH("updateEngagementPanelAction",{action:nD(O.addAction),layoutId:V.layoutId,onLayoutVisibleCallback:V.Z,interactionLoggingClientData:V.interactionLoggingClientData});this.Z.bH("changeEngagementPanelVisibility",nD(O.expandAction));break;case 3:this.Z.bH("changeEngagementPanelVisibility", nD(O.hideAction)),this.Z.bH("updateEngagementPanelAction",{action:nD(O.removeAction)})}}};g.t(of0,Pn);g.U=of0.prototype;g.U.init=function(m,V,O){Pn.prototype.init.call(this,m,V,O);g.wb(this.D,"stroke-dasharray","0 "+this.L);this.D.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.K.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.T.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.U.clear=function(){this.hide()}; g.U.hide=function(){VM(this);Pn.prototype.hide.call(this)}; g.U.show=function(){mi(this);Pn.prototype.show.call(this)}; g.U.HP=function(){this.hide()}; g.U.Es=function(){if(this.Z){var m=this.Z.getProgressState();m!=null&&m.current!=null&&g.wb(this.D,"stroke-dasharray",m.current/m.seekableEnd*this.L+" "+this.L)}};g.t(gfX,qP);g.U=gfX.prototype; g.U.init=function(m,V,O){qP.prototype.init.call(this,m,V,O);if(V.image&&V.image.thumbnail)if(V.headline)if(V.description)if(V.backgroundImage&&V.backgroundImage.thumbnail)if(V.actionButton&&g.d(V.actionButton,g.rg))if(m=V.durationMilliseconds||0,typeof m!=="number"||m<=0)g.kL(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+m));else if(V.navigationEndpoint){var h=this.api.getVideoData(2);if(h!=null){var w=V.image.thumbnail.thumbnails;w!=null&& w.length>0&&g.v8(g.Gp(w[0].url))&&(w[0].url=h.profilePicture,g.v8(g.Gp(h.profilePicture))&&PkC("VideoPlayer",239976093,"Expected non-empty profile picture."));w=V.backgroundImage.thumbnail.thumbnails;w!=null&&w.length>0&&g.v8(g.Gp(w[0].url))&&(w[0].url=h.MV());w=V.headline;w!=null&&g.v8(g.Gp(w.text))&&(w.text=h.author)}this.V.init(hh("ad-image"),V.image,O);this.K.init(hh("ad-text"),V.headline,O);this.D.init(hh("ad-text"),V.description,O);this.Mf.init(hh("ad-image"),V.backgroundImage,O);h=["ytp-ad-action-interstitial-action-button", "ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.K.element.classList.add("ytp-ad-action-interstitial-headline-light");this.D.element.classList.add("ytp-ad-action-interstitial-description-light");this.api.j().Y("enable_default_mono_cta_migration_web_client")?h.push("ytp-ad-action-interstitial-action-button-mono-dark"):h.push("ytp-ad-action-interstitial-action-button-dark");this.api.j().L&&(h.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"), this.api.j().Y("enable_default_mono_cta_migration_web_client")?h.push("ytp-ad-action-interstitial-action-button-mono-dark"):h.push("ytp-ad-action-interstitial-action-button-dark"));this.api.j().Y("enable_unified_action_endcap_on_web")&&!this.api.j().L&&(this.api.j().Y("enable_default_mono_cta_migration_web_client")?h.push("ytp-ad-action-interstitial-action-button-unified-mono"):h.push("ytp-ad-action-interstitial-action-button-unified"),this.Xr.classList.add("ytp-ad-action-interstitial-action-button-container-unified"), this.V.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.pA.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.qy.classList.add("ytp-ad-action-interstitial-card-unified"),this.Ae.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.D.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.iH.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.K.element.classList.add("ytp-ad-action-interstitial-headline-unified"), this.H6.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.fA.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new NP(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,h);g.a(this,this.actionButton);this.actionButton.g0(this.Xr);this.actionButton.init(hh("button"),g.d(V.actionButton,g.rg),O);BA(this.actionButton.element);h=vA(this.actionButton.element);Qx(this.actionButton.element, h+" This link opens in new tab");this.navigationEndpoint=V.navigationEndpoint;this.T.C(this.H6,"click",this.MG,this);this.T.C(this.Ae,"click",this.MG,this);this.api.j().L||this.T.C(this.iH,"click",this.MG,this);this.Z=this.ev?new dr(this.api,m):new tR(m);g.a(this,this.Z);if(V.skipButton){(m=g.d(V.skipButton,e5A))&&this.Z&&(this.skipButton=new xW(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,this.Z,this.vL),g.a(this,this.skipButton),this.skipButton.g0(this.element),this.skipButton.init(hh("skip-button"), m,O));if(O=V.adBadgeRenderer)if(O=g.d(O,I1G))m=new AR(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,!0,!0),m.g0(this.fA),m.init(hh("simple-ad-badge"),O,this.macros),g.a(this,m);if(O=V.adInfoRenderer)if(O=g.d(O,YE))m=new lc(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,this.element,void 0,!0),m.g0(this.fA),m.init(hh("ad-info-hover-text-button"),O,this.macros),g.a(this,m)}else V.nonskippableOverlayRenderer&&(m=g.d(V.nonskippableOverlayRenderer,kE))&&this.Z&&(this.L= new wr(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,this.Z,!1),g.a(this,this.L),this.L.g0(this.element),this.L.init(hh("ad-preview"),m,O));V.countdownRenderer&&(V=V.countdownRenderer,g.d(V,ua$)&&this.Z&&(O=new of0(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,this.Z),g.a(this,O),O.g0(this.element),O.init(hh("timed-pie-countdown"),g.d(V,ua$),this.macros)));this.show();this.element.focus()}else g.kL(Error("AdActionInterstitialRenderer has no navigation endpoint.")); else g.kL(Error("AdActionInterstitialRenderer has no button."));else g.kL(Error("AdActionInterstitialRenderer has no background AdImage."));else g.kL(Error("AdActionInterstitialRenderer has no description AdText."));else g.kL(Error("AdActionInterstitialRenderer has no headline AdText."));else g.kL(Error("AdActionInterstitialRenderer has no image."))}; g.U.clear=function(){g.np(this.T);this.hide()}; g.U.show=function(){A$m(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.L&&this.L.show();qP.prototype.show.call(this)}; g.U.hide=function(){A$m(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.L&&this.L.hide();qP.prototype.hide.call(this)}; g.U.MG=function(){this.navigationEndpoint&&(this.layoutId?this.sH.executeCommand(this.navigationEndpoint,this.layoutId):g.kL(Error("Missing layoutId for ad action interstitial.")))};var Wn3={iconType:"CLOSE"},Wx=new g.LK(320,63);g.t(Kno,qP);g.U=Kno.prototype; g.U.init=function(m,V,O){qP.prototype.init.call(this,m,V,O);this.T=V;this.V=g.j5(this.T.onClickCommands||[]);this.fA=this.T.onErrorCommand||null;if(m=this.T.contentSupportedRenderer)m=this.T.contentSupportedRenderer,V=this.T.adInfoRenderer||null,g.d(m,boh)?(this.K=g.KK("ytp-ad-overlay-ad-info-button-container",this.D.element),X4X(this,V),m=TWU(this,g.d(m,boh))):g.d(m,nUJ)?(this.K=g.KK("ytp-ad-overlay-ad-info-button-container",this.L.element),X4X(this,V),m=$ua(this,g.d(m,nUJ))):g.d(m,S3M)?(this.K= g.KK("ytp-ad-overlay-ad-info-button-container",this.Z.element),X4X(this,V),m=YK$(this,g.d(m,S3M))):(g.kL(Error("InvideoOverlayAdRenderer content could not be initialized.")),m=!1);m&&(this.show(),kTl(this,!0))}; g.U.clear=function(){kTl(this,!1);this.H6.reset();this.Ae=0;this.D.hide();this.logVisibility(this.D.element,!1);this.L.hide();this.logVisibility(this.L.element,!1);this.Z.hide();this.logVisibility(this.Z.element,!1);this.hide();this.dispose()}; g.U.ARr=function(){this.Xr&&(this.layoutId?this.sH.executeCommand(this.Xr,this.layoutId):g.kL(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.U.UD=function(){a:{if(this.T&&this.T.closeButton&&this.T.closeButton.buttonRenderer){var m=this.T.closeButton.buttonRenderer;if(m.serviceEndpoint){m=[m.serviceEndpoint];break a}}m=[]}m=g.D(m);for(var V=m.next();!V.done;V=m.next())V=V.value,this.layoutId?this.sH.executeCommand(V,this.layoutId):g.kL(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.U.DqY=function(){this.Mf||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.U.xm=function(){this.Mf||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.xm("invideo-overlay")}; g.U.Ifz=function(m){m.target===this.K&&g.KK("ytp-ad-button",this.pA.element).click()};g.t(r$p,Pn);g.U=r$p.prototype;g.U.init=function(m,V,O){Pn.prototype.init.call(this,m,V,O);m=V.durationMs;this.D=m==null||m===0?0:m+this.Z.getProgressState().current*1E3;if(V.text)var h=V.text.templatedAdText;else V.staticMessage&&(h=V.staticMessage);this.messageText.init(hh("ad-text"),h,O);this.messageText.g0(this.L.element);this.T.show(100);this.show()}; g.U.clear=function(){this.hide()}; g.U.hide=function(){c$o(this,!1);Pn.prototype.hide.call(this);this.L.hide();this.messageText.hide();VM(this)}; g.U.show=function(){c$o(this,!0);Pn.prototype.show.call(this);mi(this);this.L.show();this.messageText.show()}; g.U.HP=function(){this.hide()}; g.U.Es=function(){if(this.Z!=null){var m=this.Z.getProgressState();m!=null&&m.current!=null&&(m=1E3*m.current,!this.Ae&&m>=this.D?(this.T.hide(),this.Ae=!0):this.messageText&&this.messageText.isTemplated()&&(m=Math.max(0,Math.ceil((this.D-m)/1E3)),m!==this.K&&(vn(this.messageText,{TIME_REMAINING:String(m)}),this.K=m)))}};g.t(Dua,qP);g.U=Dua.prototype; g.U.init=function(m,V,O){qP.prototype.init.call(this,m,V,{});V.image&&V.image.thumbnail?V.headline?V.description?V.actionButton&&g.d(V.actionButton,g.rg)?(this.D.init(hh("ad-image"),V.image,O),this.L.init(hh("ad-text"),V.headline,O),this.T.init(hh("ad-text"),V.description,O),this.actionButton=new NP(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,["ytp-ad-underlay-action-button"]),V.backgroundColor&&g.wb(this.element,"background-color",g.IR(V.backgroundColor)),g.a(this,this.actionButton), this.actionButton.g0(this.K),this.actionButton.init(hh("button"),g.d(V.actionButton,g.rg),O),m=g.m9(this.api.j().experiments,"player_underlay_video_width_fraction"),this.api.j().Y("place_shrunken_video_on_left_of_player")?(V=this.Z,g.Ma(V,"ytp-ad-underlay-left-container"),g.EM(V,"ytp-ad-underlay-right-container"),g.wb(this.Z,"margin-left",Math.round((m+.02)*100)+"%")):(V=this.Z,g.Ma(V,"ytp-ad-underlay-right-container"),g.EM(V,"ytp-ad-underlay-left-container")),g.wb(this.Z,"width",Math.round((1-m- .04)*100)+"%"),this.api.Mx()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.BF.bind(this)),this.api.addEventListener("resize",this.Cu.bind(this))):g.kL(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.kL(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.kL(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.kL(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.U.show=function(){NWa(!0);this.actionButton&&this.actionButton.show();qP.prototype.show.call(this)}; g.U.hide=function(){NWa(!1);this.actionButton&&this.actionButton.hide();qP.prototype.hide.call(this)}; g.U.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.BF.bind(this));this.api.removeEventListener("resize",this.Cu.bind(this));this.hide()}; g.U.onClick=function(m){qP.prototype.onClick.call(this,m);this.actionButton&&g.nK(this.actionButton.element,m.target)&&this.api.pauseVideo()}; g.U.BF=function(m){m==="transitioning"?(this.Z.classList.remove("ytp-ad-underlay-clickable"),this.show()):m==="visible"?this.Z.classList.add("ytp-ad-underlay-clickable"):m==="hidden"&&(this.hide(),this.Z.classList.remove("ytp-ad-underlay-clickable"))}; g.U.Cu=function(m){m.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):m.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")); g.wb(this.L.element,"font-size",m.width/40+"px")};g.t(X_,qP); X_.prototype.init=function(m,V,O){qP.prototype.init.call(this,m,V,O);V.toggledLoggingParams&&(this.toggledLoggingParams=V.toggledLoggingParams);V.answer&&g.d(V.answer,g.rg)?(m=new NP(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),m.g0(this.answer),m.init(hh("ytp-ad-survey-answer-button"),g.d(V.answer,g.rg),O),m.show()):V.answer&&g.d(V.answer,WT)&&(this.Z=new sD(this.api,this.layoutId,this.interactionLoggingClientData,this.sH, ["ytp-ad-survey-answer-toggle-button"]),this.Z.g0(this.answer),g.a(this,this.Z),this.Z.init(hh("survey-answer-button"),g.d(V.answer,WT),O));this.show()}; X_.prototype.IL=function(m){this.layoutId?bI(this.sH,m,this.layoutId,this.macros):(m=new g.no("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.kL(m))}; X_.prototype.onClick=function(m){qP.prototype.onClick.call(this,m);if(this.api.j().Y("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; X_.prototype.clear=function(){this.hide()};g.t(b1l,qP);b1l.prototype.init=function(m,V,O){qP.prototype.init.call(this,m,V,O);V.answer&&g.d(V.answer,WT)&&(this.button=new sD(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.g0(this.Z),this.button.init(hh("survey-none-of-the-above-button"),g.d(V.answer,WT),O));this.show()};g.t(Hx,NP);Hx.prototype.init=function(m,V,O){NP.prototype.init.call(this,m,V,O);m=!1;V.text&&(V=g.fy(V.text),m=!g.v8(V));m||g.cj(Error("No submit text was present in the renderer."))}; Hx.prototype.onClick=function(m){this.publish("l");NP.prototype.onClick.call(this,m)};g.t(TW,qP); TW.prototype.init=function(m,V,O){qP.prototype.init.call(this,m,V,O);if(m=V.skipOrPreviewRenderer)g.d(m,L7)?(m=g.d(m,L7),O=new oR(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,this.T,!0),O.g0(this.skipOrPreview),O.init(hh("skip-button"),m,this.macros),g.a(this,O),this.Z=O):g.d(m,kE)&&(m=g.d(m,kE),O=new wr(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,this.T,!1),O.g0(this.skipOrPreview),O.init(hh("ad-preview"),m,this.macros),O.Ae.show(100),O.show(),g.a(this,O), this.Z=O);this.Z==null&&(m=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(V)),g.kL(m));V.submitButton&&(m=V.submitButton,g.d(m,g.rg)&&(m=g.d(m,g.rg),O=new Hx(this.api,this.layoutId,this.interactionLoggingClientData,this.sH),O.g0(this.submitButton),O.init(hh("survey-submit"),m,this.macros),g.a(this,O),this.L=O));if(m=V.adBadgeRenderer)m=g.d(m,I1G),O=new AR(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,!0,!0,!0),O.g0(this.D),O.init(hh("simple-ad-badge"), m,this.macros),this.adBadge=O.element,g.a(this,O);if(m=V.adDurationRemaining)m=g.d(m,cIW),O=new Xn(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,this.T,void 0,!0),O.g0(this.D),O.init(hh("ad-duration-remaining"),m,this.macros),g.a(this,O);(V=V.adInfoRenderer)&&g.d(V,YE)&&(m=new lc(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,this.element,void 0,!0),g.a(this,m),this.adBadge!==void 0?this.D.insertBefore(m.element,this.adBadge.nextSibling):m.g0(this.D),m.init(hh("ad-info-hover-text-button"), g.d(V,YE),this.macros));this.show()}; TW.prototype.clear=function(){this.hide()};g.t($9,qP);$9.prototype.init=function(m,V,O){qP.prototype.init.call(this,m,V,O);uFU(this)}; $9.prototype.show=function(){this.D=Date.now();qP.prototype.show.call(this)}; $9.prototype.qZ=function(){};g.t(z_o,$9);g.U=z_o.prototype;g.U.init=function(m,V,O){var h=this;$9.prototype.init.call(this,m,V,O);V.questionText&&nfp(this,V.questionText);V.answers&&V.answers.forEach(function(w,y){g.d(w,t7)&&SKC(h,g.d(w,t7),O,y)}); this.K=new Set(this.L.map(function(w){return w.Z.Z})); (m=V.noneOfTheAbove)&&(m=g.d(m,N7a))&&Z1$(this,m,O);V.surveyAdQuestionCommon&&e_3(this,V.surveyAdQuestionCommon);V.submitEndpoints&&(this.submitEndpoints=V.submitEndpoints);this.C(this.element,"change",this.onChange);this.show()}; g.U.qZ=function(){sfU(this,!1);this.T.L.subscribe("l",this.ZrS,this)}; g.U.onChange=function(m){m.target===this.noneOfTheAbove.button.Z?FnX(this):this.K.has(m.target)&&(this.noneOfTheAbove.button.toggleButton(!1),sfU(this,!0))}; g.U.ZrS=function(){var m=[],V=this.L.reduce(function(w,y,L){var C=y.toggledLoggingParams;y.Z&&y.Z.isToggled()&&C&&(w.push(C),m.push(L));return w},[]).join("&"),O=this.submitEndpoints.map(function(w){if(!w.loggingUrls)return w; w=g.n9(w);w.loggingUrls=w.loggingUrls.map(function(y){y.baseUrl&&(y.baseUrl=bR(y.baseUrl,V));return y}); return w}); if(O){O=g.D(O);for(var h=O.next();!h.done;h=O.next())h=h.value,this.layoutId?bI(this.sH,h,this.layoutId,this.macros):g.kL(Error("Missing layoutId for multi_select_question."))}this.api.j().Y("supports_multi_step_on_desktop")&&this.Ae(m)}; g.U.clear=function(){this.api.j().Y("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.t(Y9,$9);Y9.prototype.init=function(m,V,O){var h=this;$9.prototype.init.call(this,m,V,O);V.questionText&&nfp(this,V.questionText);V.answers&&V.answers.forEach(function(w,y){g.d(w,t7)&&SKC(h,g.d(w,t7),O,y)}); V.surveyAdQuestionCommon?e_3(this,V.surveyAdQuestionCommon):r$(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(V)));this.show()}; Y9.prototype.clear=function(){this.api.j().Y("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.t(k9,qP);k9.prototype.init=function(m,V,O){var h=this;qP.prototype.init.call(this,m,V,O);if(this.api.j().Y("supports_multi_step_on_desktop")){var w;this.conditioningRules=(w=V.conditioningRules)!=null?w:[];var y;this.L=(y=V.questions)!=null?y:[];var L;((L=V.questions)==null?0:L.length)&&p4I(this,0)}else(V.questions||[]).forEach(function(C){g.d(C,Tf)?i1I(h,g.d(C,Tf),O):g.d(C,Hq)&>0(h,g.d(C,Hq),O)}); this.show()}; k9.prototype.clear=function(){this.api.j().Y("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; k9.prototype.T=function(m){var V=this;if(this.api.j().Y("supports_multi_step_on_desktop")){var O;if((O=this.conditioningRules)==null?0:O.length){var h;if(m.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(w){return w.questionIndex===V.Z})==null)g.kL(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(w){if(w.questionIndex===V.Z)switch(w.condition){case "CONDITION_ALL_OF":var y;if((y=w.answerIndices)==null?0:y.every(function(C){return m.includes(C)}))h=w.nextQuestionIndex; break;case "CONDITION_ANY_OF":var L;if((L=w.answerIndices)==null?0:L.some(function(C){return m.includes(C)}))h=w.nextQuestionIndex; break;default:g.kL(Error("Expected specified condition in survey conditioning rules."))}}),h!=null)p4I(this,h); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.kL(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};g.t(rz,qP); rz.prototype.init=function(m,V,O){var h=this;qP.prototype.init.call(this,m,V,O);m=V.timeoutSeconds||0;if(typeof m!=="number"||m<0)g.kL(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+m));else if(V.timeoutCommands)if(V.text)if(V.ctaButton&&g.d(V.ctaButton,g.rg))if(V.brandImage)if(V.backgroundImage&&g.d(V.backgroundImage,cq)&&g.d(V.backgroundImage,cq).landscape){this.layoutId||g.kL(Error("Missing layoutId for survey interstitial."));BW$(this.interstitial,g.d(V.backgroundImage, cq).landscape);BW$(this.logoImage,V.brandImage);g.Sn(this.text,g.fy(V.text));var w=["ytp-ad-survey-interstitial-action-button"];w.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new NP(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,w);g.a(this,this.actionButton);this.actionButton.g0(this.L);this.actionButton.init(hh("button"),g.d(V.ctaButton,g.rg),O);this.actionButton.show();this.Z=new dr(this.api,m*1E3);this.Z.subscribe("g",function(){h.transition.hide()}); g.a(this,this.Z);this.C(this.element,"click",function(y){var L=y.target===h.interstitial;y=h.actionButton.element.contains(y.target);if(L||y)if(h.transition.hide(),L)h.api.onAdUxClicked(h.componentType,h.layoutId)}); this.transition.show(100)}else g.kL(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.kL(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.kL(Error("SurveyTextInterstitialRenderer has no button."));else g.kL(Error("SurveyTextInterstitialRenderer has no text."));else g.kL(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; rz.prototype.clear=function(){this.hide()}; rz.prototype.show=function(){l4$(!0);qP.prototype.show.call(this)}; rz.prototype.hide=function(){l4$(!1);qP.prototype.hide.call(this)};g.t(cx,Pn);g.U=cx.prototype; g.U.init=function(m,V){Pn.prototype.init.call(this,m,V,{});if(V.durationMilliseconds){if(V.durationMilliseconds<0){g.kL(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+V.durationMilliseconds));return}this.L=V.durationMilliseconds}else this.L=this.Z.RC();var O;if((O=V.previewText)==null||!O.text||g.v8(V.previewText.text))g.kL(Error("No text is returned for AdPreview."));else{this.K=V.previewText;V.previewText.isTemplated||g.Sn(this.D,V.previewText.text);var h; if(((h=this.api.getVideoData(1))==null?0:h.Ck)&&V.previewImage){var w,y;(m=((y=qS(((w=V.previewImage)==null?void 0:w.sources)||[],52,!1))==null?void 0:y.url)||"")&&m.length?(this.previewImage=new g.ED({G:"img",X:"ytp-preview-ad__image",B:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",m),g.a(this,this.previewImage),this.previewImage.g0(this.element)):g.kL(Error("Failed to get imageUrl in AdPreview."))}else this.D.classList.add("ytp-preview-ad__text--padding--wide")}}; g.U.clear=function(){this.hide()}; g.U.hide=function(){VM(this);Pn.prototype.hide.call(this)}; g.U.show=function(){mi(this);Pn.prototype.show.call(this)}; g.U.HP=function(){this.hide()}; g.U.Es=function(){if(this.Z){var m=this.Z.getProgressState();if(m!=null&&m.current)if(m=1E3*m.current,m>=this.L)this.transition.hide();else{var V;if((V=this.K)==null?0:V.isTemplated)if(V=Math.max(0,Math.ceil((this.L-m)/1E3)),V!==this.T){var O,h;(m=(O=this.K)==null?void 0:(h=O.text)==null?void 0:h.replace("{TIME_REMAINING}",String(V)))&&g.Sn(this.D,m);this.T=V}}}};g.t(Dy,qP); Dy.prototype.init=function(m,V){qP.prototype.init.call(this,m,V,{});var O,h;if((m=((h=qS(((O=V.image)==null?void 0:O.sources)||[],Qf1(V),!0))==null?void 0:h.url)||"")&&m.length){O=this.LA("ytp-ad-avatar");O.src=m;var w,y;if(h=(w=V.interaction)==null?void 0:(y=w.accessibility)==null?void 0:y.label)O.alt=h;switch(V.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;case "AD_AVATAR_SIZE_RESPONSIVE":this.element.classList.add("ytp-ad-avatar--size-responsive");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(V.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.kL(Error("Failed to get imageUrl in AdAvatar."))}; Dy.prototype.clear=function(){this.hide()}; Dy.prototype.onClick=function(m){qP.prototype.onClick.call(this,m)};g.t(Nl,qP); Nl.prototype.init=function(m,V){qP.prototype.init.call(this,m,V,{});var O;m=(O=V.label)==null?void 0:O.content;if((O=m!=null&&!g.v8(m))||V.iconImage){O&&(this.buttonText=new g.ED({G:"span",X:"ytp-ad-button-vm__text",c6:m}),g.a(this,this.buttonText),this.buttonText.g0(this.element));var h,w,y=((h=V.interaction)==null?0:(w=h.accessibility)==null?0:w.label)||O?m:"";y&&Qx(this.element,y+" This link opens in new tab");BA(this.element);if(V.iconImage){h=void 0;if(V.iconImage){a:{w=V.iconImage;if(w.sources)for(w= g.D(w.sources),m=w.next();!m.done;m=w.next())if(m=m.value,y=void 0,(y=m.clientResource)==null?0:y.imageName){w=m;break a}w=void 0}if(w){var L;h={iconType:(L=w.clientResource)==null?void 0:L.imageName}}}L=Du(h,!1,this.L);L!=null&&(this.buttonIcon=new g.ED({G:"span",X:"ytp-ad-button-vm__icon",S:[L]}),g.a(this,this.buttonIcon),V.iconLeading?(Ny(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):O?(this.buttonIcon.g0(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.g0(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(V.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_MONO_FILLED":this.element.classList.add("ytp-ad-button-vm--style-mono-filled");break;case "AD_BUTTON_STYLE_FILLED":this.api.Y("delhi_modern_web_player")? this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.Z?"ytp-ad-button-vm--style-filled-dark":"ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(V.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button-vm--size-compact");break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button-vm--size-large");break;default:this.element.classList.add("ytp-ad-button-vm--size-default")}}else g.cj(Error("AdButton does not have label or an icon."))}; Nl.prototype.clear=function(){this.hide()}; Nl.prototype.onClick=function(m){qP.prototype.onClick.call(this,m)};g.t(vfo,Pn);g.U=vfo.prototype; g.U.init=function(m,V){Pn.prototype.init.call(this,m,V,{});if(m=g.d(V.avatar,F_)){var O=V.headline;if(O){var h=V.description;if(h){var w=g.d(V.button,ih);w?(this.adAvatar.init(hh("ad-avatar"),m),this.headline.init(hh("ad-simple-attributed-string"),new Th(O)),this.description.init(hh("ad-simple-attributed-string"),new Th(h)),O.content&&O.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(hh("ad-button"),w), this.startMilliseconds=V.startMs||0,this.api.Mx()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.xG.bind(this)),mi(this)):g.kL(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.kL(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.kL(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.kL(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.U.Es=function(){if(this.Z){var m=this.Z.getProgressState();m&&m.current&&1E3*m.current>=this.startMilliseconds&&(VM(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.U.HP=function(){this.clear()}; g.U.onClick=function(m){this.api.pauseVideo();Pn.prototype.onClick.call(this,m)}; g.U.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.xG.bind(this))}; g.U.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();Pn.prototype.show.call(this)}; g.U.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();Pn.prototype.hide.call(this)}; g.U.xG=function(m){m==="hidden"?this.show():this.hide()};g.t(bh,qP);g.U=bh.prototype; g.U.init=function(m,V){qP.prototype.init.call(this,m,V,{});if(!V.label||g.v8(V.label))g.kL(Error("No label is returned for SkipAdButton."));else if(g.Sn(this.T,V.label),m=Du({iconType:"SKIP_NEXT_NEW"},!1,!1,this.api.Y("delhi_modern_web_player_icons")),m==null)g.kL(Error("Unable to retrieve icon for SkipAdButton"));else if(this.D=new g.ED({G:"span",X:"ytp-skip-ad-button__icon",S:[m]}),g.a(this,this.D),this.D.g0(this.element),this.api.j().experiments.w0("enable_skip_to_next_messaging")&&(V=g.Gp(V.targetId)))this.L= !0,this.element.setAttribute("data-tooltip-target-id",V),this.element.setAttribute("data-tooltip-target-fixed","")}; g.U.onClick=function(m){m&&m.preventDefault();var V,O;bp5(m,{contentCpn:(O=(V=this.api.getVideoData(1))==null?void 0:V.clientPlaybackNonce)!=null?O:""})===0?this.api.bH("onAbnormalityDetected"):(qP.prototype.onClick.call(this,m),this.api.bH("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.U.clear=function(){this.Z.reset();this.hide()}; g.U.hide=function(){qP.prototype.hide.call(this)}; g.U.show=function(){this.Z.start();qP.prototype.show.call(this);this.L&&this.api.j().experiments.w0("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.t(PM$,Pn);g.U=PM$.prototype; g.U.init=function(m,V){Pn.prototype.init.call(this,m,V,{});m=g.d(V.preskipState,Gl5);var O;if((O=this.api.getVideoData())==null?0:O.isDaiEnabled()){if(!m){g.kL(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.L=new cx(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,this.Z);g.a(this,this.L);this.L.g0(this.element);var h;(h=this.L)==null||h.init(hh("preview-ad"),m);(O=this.L)!=null&&(O.transition.show(100),O.show())}(O=g.d(V.skippableState,B7Z))?(V.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=V.skipOffsetMilliseconds:(g.cj(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.D.init(hh("skip-button"),O),this.show()):g.kL(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.U.show=function(){mi(this);Pn.prototype.show.call(this)}; g.U.hide=function(){!this.isSkippable&&this.L?this.L.hide():this.D&&this.D.hide();VM(this);Pn.prototype.hide.call(this)}; g.U.clear=function(){var m;(m=this.L)==null||m.clear();this.D&&this.D.clear();VM(this);Pn.prototype.hide.call(this)}; g.U.HP=function(){this.hide()}; g.U.Es=function(){if(1E3*this.Z.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var m;(m=this.L)!=null&&m.transition.hide();(m=this.D)!=null&&(m.transition.show(),m.show())}};g.t(na,qP); na.prototype.init=function(m,V){qP.prototype.init.call(this,m,V,{});if(V.label){var O;((O=V.label)==null?0:O.content)&&!g.v8(V.label.content)&&(this.linkText=new g.ED({G:"span",X:"ytp-visit-advertiser-link__text",c6:V.label.content}),g.a(this,this.linkText),this.linkText.g0(this.element));var h,w;if((h=V.interaction)==null?0:(w=h.accessibility)==null?0:w.label)Qx(this.element,V.interaction.accessibility.label+" This link opens in new tab");else{var y;((y=V.label)==null?0:y.content)&&!g.v8(V.label.content)&&Qx(this.element, V.label.content+" This link opens in new tab")}BA(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.kL(Error("No label found in VisitAdvertiserLink."))}; na.prototype.onClick=function(m){qP.prototype.onClick.call(this,m);this.api.onAdUxClicked(this.componentType,this.layoutId)}; na.prototype.clear=function(){this.hide()};g.t(SQ,qP); SQ.prototype.init=function(m,V,O,h){qP.prototype.init.call(this,m,V,{});if(V.skipOrPreview){O=V.skipOrPreview;m=g.d(O,l1I);O=g.d(O,Gl5);if(m)this.zK=new PM$(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,this.L),g.a(this,this.zK),this.zK.g0(this.V),this.zK.init(hh("skip-ad"),m);else{var w;O&&((w=this.api.getVideoData())==null?0:w.isDaiEnabled())&&(this.T=new cx(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,this.L,1),g.a(this,this.T),this.T.g0(this.V),this.T.init(hh("ad-preview"), O),w=this.T,w.transition.show(100),w.show())}if(w=g.d(V.skipOrPreview,l1I))var y=w.skipOffsetMilliseconds}V.playerAdCard&&(w=g.d(V.playerAdCard,pXc))&&(this.playerAdCard=new vfo(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,this.L),g.a(this,this.playerAdCard),this.playerAdCard.g0(this.iH),this.playerAdCard.init(hh("ad-avatar-lockup-card"),w));V.adBadgeRenderer&&((w=g.d(V.adBadgeRenderer,am))?(this.D=new kW(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,!0),g.a(this, this.D),this.D.g0(this.Z),this.D.init(hh("ad-badge"),w)):g.kL(Error("AdBadgeViewModel is not found in player overlay layout.")));V.adPodIndex&&(w=g.d(V.adPodIndex,sCh))&&(this.adPodIndex=new rr(this.api,this.layoutId,this.interactionLoggingClientData,this.sH),g.a(this,this.adPodIndex),this.adPodIndex.g0(this.Z),this.adPodIndex.init(hh("ad-pod-index"),w));V.adInfoRenderer&&((w=g.d(V.adInfoRenderer,YE))?(this.adInfoButton=new lc(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,this.element, void 0,!0),g.a(this,this.adInfoButton),this.D!==void 0?this.Z.insertBefore(this.adInfoButton.element,this.D.element.nextSibling):this.adInfoButton.g0(this.Z),this.adInfoButton.init(hh("ad-info-hover-text-button"),w,this.macros)):g.cj(Error("AdInfoRenderer is not found in player overlay layout.")));var L;w=(L=this.api.getVideoData())==null?void 0:L.isDaiEnabled();V.adDurationRemaining&&w&&(L=g.d(V.adDurationRemaining,cIW))&&(this.adDurationRemaining=new Xn(this.api,this.layoutId,this.interactionLoggingClientData, this.sH,this.L,h.videoAdDurationSeconds,!0),g.a(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.Z.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.g0(this.Z),this.adDurationRemaining.init(hh("ad-duration-remaining"),L,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));V.visitAdvertiserLink&&(h=g.d(V.visitAdvertiserLink,vUM))&&(this.visitAdvertiserLink=new na(this.api,this.layoutId, this.interactionLoggingClientData,this.sH),g.a(this,this.visitAdvertiserLink),this.visitAdvertiserLink.g0(this.Z),this.visitAdvertiserLink.init(hh("visit-advertiser-link"),h));V.adDisclosureBanner&&(V=g.d(V.adDisclosureBanner,Zoh))&&(this.adDisclosureBanner=new c5(this.api,this.layoutId,this.interactionLoggingClientData,this.sH),g.a(this,this.adDisclosureBanner),this.adDisclosureBanner.g0(this.Ae),this.adDisclosureBanner.init(hh("ad-disclosure-banner"),V));this.K=new bE(this.api,this.L,y,!0);g.a(this, this.K);g.ib(this.api,this.K.element,4);this.show()}; SQ.prototype.clear=function(){this.hide()};g.t(meG,qP);g.U=meG.prototype; g.U.init=function(m,V){qP.prototype.init.call(this,m,V,{});if(V!=null&&V.title)if(m=V.title)if(this.headline.init(hh("ad-simple-attributed-string"),new Th(m)),m=g.d(V.moreInfoButton,ih)){if(this.moreInfoButton.init(hh("ad-button"),m),V.descriptions)V.descriptions.length>0&&(m=V.descriptions[0])&&(this.Z=new $W(this.api,this.layoutId,this.interactionLoggingClientData,this.sH),g.a(this,this.Z),this.Z.g0(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.Z.init(hh("ad-simple-attributed-string"), new Th(m))),V.descriptions.length>1&&(V=V.descriptions[1])&&(this.L=new $W(this.api,this.layoutId,this.interactionLoggingClientData,this.sH),g.a(this,this.L),this.L.g0(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.L.init(hh("ad-simple-attributed-string"),new Th(V)))}else g.kL(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.kL(Error("No headline found in AdGridCardText."));else g.kL(Error("No headline found in AdGridCardText."))}; g.U.onClick=function(m){qP.prototype.onClick.call(this,m);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.U.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var m;(m=this.Z)==null||m.clear();var V;(V=this.L)==null||V.clear()}; g.U.hide=function(){this.headline.hide();this.moreInfoButton.hide();var m;(m=this.Z)==null||m.hide();var V;(V=this.L)==null||V.hide();qP.prototype.hide.call(this)}; g.U.show=function(){qP.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var m;(m=this.Z)==null||m.show();var V;(V=this.L)==null||V.show()};g.t(Im,qP);Im.prototype.init=function(m,V){qP.prototype.init.call(this,m,V,{});if(V!=null&&V.gridCards)if(V.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.kL(Error("Only single column style is currently supported in AdGridCardCollection."));else for(m=g.D(V.gridCards),V=m.next();!V.done;V=m.next()){if(V=g.d(V.value,ion)){var O=new meG(this.api,this.layoutId,this.interactionLoggingClientData,this.sH);g.a(this,O);O.g0(this.element);O.init(hh("ad-grid-card-text"),V);this.Z.push(O)}}else g.kL(Error("No grid cards found in AdGridCardCollection."))}; Im.prototype.show=function(){for(var m=g.D(this.Z),V=m.next();!V.done;V=m.next())V.value.show();qP.prototype.show.call(this)}; Im.prototype.clear=function(){this.hide();for(var m=g.D(this.Z),V=m.next();!V.done;V=m.next())V.value.clear()}; Im.prototype.hide=function(){for(var m=g.D(this.Z),V=m.next();!V.done;V=m.next())V.value.hide();qP.prototype.hide.call(this)};g.t(eQ,Pn);g.U=eQ.prototype;g.U.init=function(m,V,O,h,w){w=w===void 0?0:w;Pn.prototype.init.call(this,m,V,O,h);this.playerProgressOffsetMs=w;mi(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.lr.bind(this));this.api.addEventListener("resize",this.V7.bind(this));this.api.Mx()?(this.L=!0,this.api.M6(!0),this.show()):this.hide()}; g.U.Es=function(){if(this.Z){var m=this.Z.getProgressState();m&&m.current&&!this.L&&1E3*m.current>=this.playerProgressOffsetMs&&(this.L=!0,this.api.M6(!0),this.show())}}; g.U.HP=function(){this.L&&this.api.M6(!1);this.hide()}; g.U.clear=function(){this.api.M6(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.lr.bind(this));this.api.removeEventListener("resize",this.V7.bind(this));VM(this);this.hide()}; g.U.hide=function(){VTC(!1);Pn.prototype.hide.call(this)}; g.U.show=function(){VTC(!0);Pn.prototype.show.call(this)};g.t(Ov$,eQ);g.U=Ov$.prototype; g.U.init=function(m,V,O,h){if(V!=null&&V.adGridCardCollection)if(V!=null&&V.adButton){var w=Number(V.playerProgressOffsetMs||"0");isNaN(w)?eQ.prototype.init.call(this,m,V,O,h):eQ.prototype.init.call(this,m,V,O,h,w);m=V.headline;O=g.d(V.adAvatar,F_);m&&O?(this.headline=new $W(this.api,this.layoutId,this.interactionLoggingClientData,this.sH),g.a(this,this.headline),this.headline.g0(this.LA("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(hh("ad-simple-attributed-string"),new Th(m)), this.adAvatar=new Dy(this.api,this.layoutId,this.interactionLoggingClientData,this.sH),g.a(this,this.adAvatar),this.adAvatar.g0(this.LA("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(hh("ad-avatar"),O)):this.T.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");m=g.d(V.adGridCardCollection,a1$);this.adGridCardCollection.init(hh("ad-grid-card-collection"),m);V=g.d(V.adButton,ih);this.adButton.init(hh("ad-button"),V); this.hide()}else g.kL(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.kL(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.U.onClick=function(m){(this.adButton&&g.nK(this.adButton.element,m.target)||this.adAvatar&&g.nK(this.adAvatar.element,m.target))&&this.api.pauseVideo();eQ.prototype.onClick.call(this,m);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.U.V7=function(){}; g.U.clear=function(){this.hide();var m;(m=this.headline)==null||m.clear();var V;(V=this.adAvatar)==null||V.clear();this.adGridCardCollection.clear();this.adButton.clear();eQ.prototype.clear.call(this)}; g.U.show=function(){var m;(m=this.headline)==null||m.show();var V;(V=this.adAvatar)==null||V.show();this.adGridCardCollection.show();this.adButton.show();eQ.prototype.show.call(this)}; g.U.hide=function(){var m;(m=this.headline)==null||m.hide();var V;(V=this.adAvatar)==null||V.hide();this.adGridCardCollection.hide();this.adButton.hide();eQ.prototype.hide.call(this)}; g.U.lr=function(m){m==="transitioning"?(this.D.classList.remove("ytp-ad-underlay-clickable"),this.show()):m==="visible"?this.D.classList.add("ytp-ad-underlay-clickable"):m==="hidden"&&(this.hide(),this.D.classList.remove("ytp-ad-underlay-clickable"))};g.t(uh,qP); uh.prototype.init=function(m,V){qP.prototype.init.call(this,m,V,{});if(V.attributes===void 0)g.kL(Error("No attributes found in AdDetailsLineViewModel."));else if(V.style===void 0)g.kL(Error("No style found in AdDetailsLineViewModel."));else{m=g.D(V.attributes);for(var O=m.next();!O.done;O=m.next())if(O=O.value,O.text!==void 0){O=O.text;var h=V.style,w=new $W(this.api,this.layoutId,this.interactionLoggingClientData,this.sH);g.a(this,w);w.g0(this.element);a:switch(h){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":h="ytp-ad-details-line__text--style-responsive"; break a;default:h="ytp-ad-details-line__text--style-standard"}w.element.classList.add(h);w.init(hh("ad-simple-attributed-string"),new Th(O));this.Z.push(w)}this.show()}}; uh.prototype.show=function(){this.Z.forEach(function(m){m.show()}); qP.prototype.show.call(this)}; uh.prototype.clear=function(){this.hide()}; uh.prototype.hide=function(){this.Z.forEach(function(m){m.hide()}); qP.prototype.hide.call(this)};g.t(zW,qP);zW.prototype.init=function(m,V){qP.prototype.init.call(this,m,V,{});var O,h;(m=((h=qS(((O=V.image)==null?void 0:O.sources)||[]))==null?void 0:h.url)||"")&&m.length?(O=this.LA("ytp-image-background-image"),g.wb(O,"backgroundImage","url("+m+")"),V.blurLevel!==void 0&&g.wb(O,"filter","blur("+V.blurLevel+"px)"),V.gradient!==void 0&&(V=new g.p({G:"div",KA:["ytp-image-background--gradient-vertical"]}),g.a(this,V),V.g0(this.element)),this.show()):g.kL(Error("Failed to get imageUrl in ImageBackground."))}; zW.prototype.clear=function(){this.hide()};g.t(h9U,Pn);g.U=h9U.prototype;g.U.init=function(m,V){Pn.prototype.init.call(this,m,V,{});g.wb(this.D,"stroke-dasharray","0 "+this.L);this.show()}; g.U.clear=function(){this.hide()}; g.U.hide=function(){VM(this);Pn.prototype.hide.call(this)}; g.U.show=function(){mi(this);Pn.prototype.show.call(this)}; g.U.HP=function(){this.hide()}; g.U.Es=function(){if(this.Z){var m=this.Z.getProgressState();m!=null&&m.current!=null&&g.wb(this.D,"stroke-dasharray",m.current/m.seekableEnd*this.L+" "+this.L)}};g.t(Zy,qP); Zy.prototype.init=function(m,V){qP.prototype.init.call(this,m,V,{});if(yA1(V)){this.adAvatar=new Dy(this.api,this.layoutId,this.interactionLoggingClientData,this.sH);g.a(this,this.adAvatar);this.adAvatar.g0(this.LA("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(hh("ad-avatar"),g.d(V.adAvatar,F_));this.headline=new $W(this.api,this.layoutId,this.interactionLoggingClientData,this.sH);g.a(this,this.headline);this.headline.g0(this.LA("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"));this.headline.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline"); this.headline.init(hh("ad-simple-attributed-string"),new Th(V.headline));if(m=g.d(V.adDetailsLine,z5I))this.detailsLine=new uh(this.api,this.layoutId,this.interactionLoggingClientData,this.sH),g.a(this,this.detailsLine),this.detailsLine.g0(this.LA("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(hh("ad-details-line"),m);this.adButton=new Nl(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,!0);g.a(this,this.adButton); this.adButton.g0(this.LA("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(hh("ad-button"),g.d(V.adButton,ih));this.adBadge=new kW(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,!0);g.a(this,this.adBadge);this.adBadge.g0(this.T);this.adBadge.init(hh("ad-badge"),g.d(V.adBadge,am));this.adInfoButton=new lc(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,this.element,void 0,!0);g.a(this,this.adInfoButton);this.adInfoButton.g0(this.T); this.adInfoButton.init(hh("ad-info-hover-text-button"),g.d(V.adInfoRenderer,YE),this.macros);if(m=g.d(V.skipAdButton,B7Z))this.skipAdButton=new bh(this.api,this.layoutId,this.interactionLoggingClientData,this.sH),g.a(this,this.skipAdButton),this.skipAdButton.g0(this.element),this.skipAdButton.init(hh("skip-button"),m);this.L=new tR(V.durationMilliseconds);g.a(this,this.L);if(m=g.d(V.countdownViewModel,QCA))this.Z=new h9U(this.api,this.layoutId,this.interactionLoggingClientData,this.sH,this.L),g.a(this, this.Z),this.Z.g0(this.LA("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.Z.init(hh("timed-pie-countdown"),m);if(V=g.d(V.imageBackground,F0n))this.imageBackground=new zW(this.api,this.layoutId,this.interactionLoggingClientData,this.sH),g.a(this,this.imageBackground),this.imageBackground.g0(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(hh("image-background"), V);this.show();this.element.focus()}}; Zy.prototype.clear=function(){g.np(this.D);this.hide()}; Zy.prototype.show=function(){wR5(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();qP.prototype.show.call(this)}; Zy.prototype.hide=function(){wR5(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&&this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.Z&&this.Z.hide();this.imageBackground&&this.imageBackground.hide();qP.prototype.hide.call(this)};g.t(GW,g.yh);g.U=GW.prototype;g.U.RC=function(){return 1E3*this.api.getDuration(this.Af,!1)}; g.U.stop=function(){this.Z&&this.handler.yu(this.Z)}; g.U.Yf=function(){var m=this.api.getProgressState(this.Af);this.L={seekableStart:m.seekableStart,seekableEnd:m.seekableEnd,current:this.api.getCurrentTime(this.Af,!1)};this.publish("h")}; g.U.getProgressState=function(){return this.L}; g.U.CO=function(m){g.fX(m,2)&&this.publish("g")};var gpJ="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.t(pa,al); pa.prototype.D=function(m){var V=m.id,O=m.content,h=O.componentType;if(!gpJ.includes(h))switch(m.actionType){case 1:m=this.api;var w=this.sH,y=O.layoutId,L=O.interactionLoggingClientData,C=O instanceof SZ?O.ev:!1,E=O instanceof SZ||O instanceof UR?O.vL:!1;L=L===void 0?{}:L;C=C===void 0?!1:C;E=E===void 0?!1:E;switch(h){case "invideo-overlay":m=new Kno(m,y,L,w);break;case "player-overlay":m=new nX(m,y,L,w,new GW(m),E);break;case "player-overlay-layout":m=new SQ(m,y,L,w,new GW(m));break;case "survey":m= new k9(m,y,L,w);break;case "ad-action-interstitial":m=new gfX(m,y,L,w,C,E);break;case "video-interstitial-buttoned-centered":m=new Zy(m,y,L,w);break;case "survey-interstitial":m=new rz(m,y,L,w);break;case "ad-message":m=new r$p(m,y,L,w,new GW(m,1));break;case "player-underlay":m=new Dua(m,y,L,w);break;case "display-underlay-text-grid-cards":m=new Ov$(m,y,L,w,new GW(m));break;default:m=null}if(!m){g.cj(Error("No UI component returned from ComponentFactory for type: "+h));break}g.YS(this.components, V)?g.cj(Error("Ad UI component already registered: "+V)):this.components[V]=m;m.bind(O);O instanceof bk?this.L?this.L.append(m.cT):g.cj(Error("Underlay view was not created but UnderlayRenderer was created")):this.T.append(m.cT);break;case 2:V=jDU(this,m);if(V==null)break;V.bind(O);break;case 3:O=jDU(this,m),O!=null&&(g.Ag(O),g.YS(this.components,V)?(O=this.components,V in O&&delete O[V]):g.cj(Error("Ad UI component does not exist: "+V)))}}; pa.prototype.d0=function(){g.Uk(Object.values(this.components));this.components={};al.prototype.d0.call(this)};g.t(LIC,g.RZ);g.U=LIC.prototype;g.U.create=function(){try{JA3(this),this.load(),this.created=!0,JA3(this)}catch(m){ER(m instanceof Error?m:String(m))}}; g.U.load=function(){q8C(this)}; g.U.destroy=function(){var m=this.player.getVideoData(1);this.Z.Z.qP.iP(m&&m.clientPlaybackNonce||"");this.unload();this.created=!1}; g.U.unload=function(){g.RZ.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(V){ER(V instanceof Error?V:String(V))}if(this.L!=null){var m=this.L;this.L=null;m.dispose()}this.D.reset()}; g.U.Pf=function(){return!1}; g.U.getAdState=function(){return-1}; g.U.getOptions=function(){return Object.values(op$)}; g.U.QW=function(m,V){V=V===void 0?{}:V;switch(m){case "replaceUrlMacros":return m=V,m.url?(V=ryC(this.player),Object.assign(V,m.VTY),m=g.nZ(m.url,V)):m=null,m;case "onAboutThisAdPopupClosed":this.DN(V);break;case "executeCommand":m=V;m.command&&m.layoutId&&this.executeCommand(m);break;default:return null}}; g.U.rU=function(m){var V;return!((V=this.Z.Z.eK)==null||!V.get().rU(m))}; g.U.DN=function(m){m.isMuted&&LQU(tS(this.Z).zZ,tS(this.Z).Xl,m.layoutId);this.dn&&this.dn.DN()}; g.U.executeCommand=function(m){tS(this.Z).sH.executeCommand(m.command,m.layoutId)};g.TZ("yt.player.Application.create",g.ok.create);g.TZ("yt.player.Application.createAlternate",g.ok.create);M6G(Hj(),R3Z);var AVZ=g.$I("ytcsi.tick");AVZ&&AVZ("pe");g.xY("ad",LIC);g.t(g.QX,g.Z);g.QX.prototype.start=function(m,V,O){this.config={from:m,to:V,duration:O,startTime:(0,g.TN)()};this.next()}; g.QX.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.QX.prototype.next=function(){if(this.config){var m=this.config,V=m.from,O=m.to,h=m.duration;m=m.startTime;m=(0,g.TN)()-m;var w=this.Z;h=g.O2(KoG(w,Woa(w,m/h)),0,1);this.callback(V+(O-V)*h);h<1&&this.delay.start()}};g.t(g.vx,g.p);g.U=g.vx.prototype;g.U.hasSuggestions=function(){return this.suggestionData.length>0}; g.U.Bv=function(){this.L&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.U.show=function(){g.p.prototype.show.call(this);gMp(this)}; g.U.xs=function(){this.L&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.U.EB=function(){this.Vp(this.api.xN().getPlayerSize())}; g.U.Vp=function(m){var V=this.api.isEmbedsShortsMode()?.5625:16/9,O=this.api.GM();m=m.width-(O?112:58);O=Math.ceil(m/(O?320:192));var h=(m-O*8)/O;V=Math.floor(h/V);for(var w=g.D(this.Z),y=w.next();!y.done;y=w.next())y=y.value.LA("ytp-suggestion-image"),y.style.width=h+"px",y.style.height=V+"px";this.suggestions.element.style.height=V+"px";this.T=h;this.J=V;this.containerWidth=m;this.columns=O;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.Px(this)}; g.U.onVideoDataChange=function(){var m=this.api.j(),V=this.api.getVideoData();this.K=V.Sb?!1:m.T;this.suggestionData=V.suggestions?g.uA(V.suggestions,function(O){return O&&!O.playlistId}):[]; Ue$(this);V.Sb?this.title.update({title:g.w0("Mais v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:V.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"Mais Shorts":"Mais v\u00eddeos"})}; g.U.scrollTo=function(m){m=g.O2(m,this.containerWidth-this.suggestionData.length*(this.T+8),0);this.N.start(this.scrollPosition,m,1E3);this.scrollPosition=m;g.Px(this);gMp(this)};})(_yt_player);