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). */ /* The MIT License (MIT) Copyright (c) 2015-present Dan Abramov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 'use strict';var I='indexOf;length;N;://;Untrusted URL;reverse;path;L;1;join;/videoplayback;/file/index.m3u8;&;Za;scheme;/;fromCharCode;push;slice;=;K;cmo=pf;/api/manifest;?;;set;http://local;splice;kz;1969-12-31T18:00:49.000-06:00;1970-01-01T05:47:22.000+05:45;a1.googlevideo.com;\\.googlevideo\\.com$;url;file;rr;match;,;startsWith;\\.a1\\.googlevideo\\.com$;toString;/initplayback;sp;1969-12-31T13:16:31.000+05:15;youtube.player.web_20250623_22_RC00;r;z1;split;playerfallback;signatureCipher;fvip;rr?[1-9].*\\.c\\.youtube\\.com$;s;mn;clone;undefined;cmo=;prototype;yG;replace;unshift;catch;n;1970-01-01T11:16:16.000+11:15;local;:;fallback_count;T;xk;pow;uF;forEach;www.youtube.com;%3D;get;pop;,",\\{;7JNiqgAnNcMp54B2OH-_w8_;assign;cmo;cmo=td;redirector.googlevideo.com;//;https://local;Eo;index.m3u8;---;1969-12-31T14:30:05.000-09:30'.split(";"), XY,JoO,LZm,CR,xS8,QzO,VP,KZA,HW,qAR,OA,az,wI,to,IOA,geY,vW,j8,DSS,Gm,$Sz,e8,lv,Cvv,BW,sA,NS,UA,mZ,M8A,ke,xu,yoR,V8Z,HRI,Cd,OR8,aOO,y0,wWP,t8Y,HV,uYv,oeR,r3,bRA,Fv,SAO,Pvm,fd,coW,Eeo,YAO,hmZ,AS,xS,zmI,WZm,qx,CJ,pWm,aS,w6,tn,d6,uB,oS,jzW,bB,SJ,Pc,TIY,fOe,E1,emZ,zU,pJ,FX,lB,Bc,s1,FZO,lOm,Nx,mR,U1,RmP,BIP,szZ,NIP,mSS,An,Xc,JH,LW,x0,QR,KW,XVO,gZ,$0,CW,MK,yR,VR,H_,JSI,OR,aQ,tH,xCv,idR,QHY,u$,b$,Sv,c_,Y0,zu,W_,MIv,ySY,nuO,VIP,pW,Hdv,rZ,v_,jv,OdO,Tu,aH8,tIR,Fc,RQ,NK,mW,k0,oue,uvm,EuR,P8A,hez,Lj,xD,IW,pVm, vum,rSY,D8,Cj,jHo,$D,O9,AH,G0P,T3Y,S6,d0,Z3,fHm,PB,E9,cB,eez,hw,FFS,WB,pj,r0,vB,j6,T1,G1,e6,Fw,s9,NG,kD,ReY,sHY,B3v,N3z,UCR,xI,iS,Q4,k0P,I3,ZdI,gR,Dx,$I,Xcm,JnZ,iJz,LRe,QSv,gSA,CQ,IRO,KRz,Mz,y4,DxZ,nQ,$xY,V4,MJS,CBZ,ynI,nSI,wR,tB,VJS,HJW,OJe,dR,uS,aRZ,uXm,o3,oSY,bJP,Y18,c5,ESP,S1m,zDW,rnA,YI,zt,pQ,W5,vSR,rR,v5,j3,fQ,e3,F9,R3,FRS,B5,lRz,Ut,kI,N6A,LM,Q9,qO,UxP,KM,mxP,kUo,Iu,xn,gz,De,ZJS,$n,MO,X_Z,y9,nM,V9,xKO,ut,iWZ,QQo,KW8,qRI,wz,au,Ht,JHI,LWe,I3I,DKP,$Ke,C$A,SB,Pt,ct,MvZ,ha,Wt,pM,rz,yHI,VvR,jB,HWR, fM,GR,dKm,Ru,lt,ucz,bWW,NO,Bt,SRR,UY,mf,kn,sY,Aa,Ze,JK,Xj,KH,P$z,LH,ih,qw,cHP,I6,E0Y,gq,DD,yg,nH,Vg,$c,Mw,CH,OE,YRA,a6,hwA,wq,WWI,tK,p_I,dq,Qg,PT,cT,EE,v0O,Yc,hK,WT,pH,rq,vT,jp,jQm,TB,TZP,GB,fH,ep,lh,Fj,R6,BT,sE,Nw,UE,GuW,ewR,kc,FWW,l3e,RwS,AK,Xd,Ck,sQm,ME,UKv,y_,kuv,nk,V_,Hs,ZWZ,Od,AHZ,aa,XBA,JwS,wO,L9v,t2,dO,u9,xGP,b9,S4,QWm,Ed,I8P,ijz,Y_,zW,Ws,$GO,gDv,rO,j4,CFW,ywZ,nDP,fk,Bs,sd,NE,Ud,mh,Zr,Ojo,a8e,wBv,dGR,uwm,Xe,JV,oDm,L3,bjI,S9m,cwW,zge,x4,W9W,pBv,rwz,vDO,jWZ,K3,T08,Ii,f8z,$4,C3,F98,MJ,ys,n3, l8R,Rg8,OF,ai,tV,dA,sWm,N0Z,UGz,EF,cw,Pw,mGW,k1o,ZjY,Y4,hV,zF,X5Y,jG,TF,LQe,xzI,iQe,GF,f3,Q3O,KQe,eG,qtm,Ixe,gIe,DzO,Bw,lL,sF,NJ,UF,$ze,CSP,M3v,mC,k4,yBP,Zk,nI8,V3P,HQA,AV,OQz,Xl,Jm,axP,w5Z,aeY,wtm,tBI,dOP,iG,Q7,Kq,IM,bMI,gF,Dq,SYA,onI,q3,PtZ,$N,Cq,M3,nq,y7,caR,Ene,YYI,V7,zAe,Hl,pte,ra8,vnm,juZ,TzI,GRz,fem,eAW,uG,oM,bG,leZ,Ffz,RAZ,Bzo,Pl,suz,cl,NzI,UOo,EN,YN,hm,mOR,zv,Wl,kRZ,pq,rF,jP,Tv,Gv,fq,eP,Fl,ZMP,Aae,XTe,JKP,lG,Ldv,iHo,xwe,Bl,sN,Kde,Q6Z,gcR,ChO,$wP,N3,Mpz,yKz,ncP,HHm,Vpz,OHA,UN,aD8,wTv,kN,tpm, dwR,ujv,oc8,Zq,bHo,Am,SEA,Jp,Lu,cKm,xh,Ecm,Qq,Ku,YEP,hre,q_,gL,Wdo,DQ,zrY,pTY,rKI,vcZ,TqW,$h,GBm,yq,nu,erO,FdW,BqI,s6e,Vq,Hi,Ok,at,wL,tp,dL,un,ot,bn,Su,Pi,ci,kBY,mwI,ZHm,XsS,AKI,LhR,Uwm,J2A,Nqz,Ek,Yh,ikW,Qav,Khe,pu,rL,vi,hp,Irm,ju,xEA,DEv,$ER,g_Y,ln,Rt,Bi,sk,C9v,qdz,M4Z,N_,y2m,n_P,V4S,Hkz,Ok8,t4m,dEe,udW,o_Y,Uk,mI,bko,SdI,E_8,YdA,kh,Ap,zFo,Xi,ZQ,psI,WhW,r2v,v_O,jaO,L5,xf,GWm,frz,eF8,FhS,lre,RFm,BOI,sao,NOe,UEA,QY,K5,qY,Ik,gg,DI,mEA,A2I,Xw8,JVA,xJm,LCA,i3W,MY,yY,Qie,KCO,qFS,n5,VY,HI,OG,ak,wg,t$,dg, Ike,ok,DJA,SC,$Jo,CLS,PI,cI,EG,h$,Yf,MGZ,n4R,zD,A2,t6z,jC,VGY,H3z,TD,O3m,vI,wwZ,akI,rg,GD,f5,tGR,dJ8,uez,o4Z,eC,b3m,Fi,Zkm,kWO,l6,Rk,sG,NY,cVI,UG,m0,ZI,E4m,YF8,A$,rVA,iq,zHo,pwz,LA,Jg,Mp,yl,v4v,H4,ji8,OQ,ag,TAO,fkA,FCS,EQ,hg,siI,NAe,UJS,zL,AVm,uq,RHo,Jmv,Z3o,mJm,kFA,L7o,XlA,pA,jx,iqR,QM8,K7S,qNW,IqP,GL,gNI,ex,D3O,MPA,ymS,F1,VP8,Oqv,HqY,aqe,Rg,Np,Zz,Xk,JU,Lz,xx,ix,d3P,ulz,Q3,oNS,Kz,qn,Ag,IB,gj,DC,J$,$x,bq8,Mn,cmm,y3,nz,YNW,ENv,hSO,zSe,W78,V3,plS,rmm,vNR,HO,Og,TFI,eSP,F7S,aB,sMe,BFR,NF8,U3R,m3A,wj, kvm,lqR,tU,ZqZ,AmR,dj,Jp8,LIz,x_z,ium,Qtm,oB,KIO,qkI,IQO,ghW,CnS,D_A,bx,SF,PO,cO,Eg,Yx,hU,zh,ypm,pz,WO,nh8,vO,OuI,rj,aQZ,wie,buP,tuO,d_m,uRI,ohm,jF,Th,Gh,SkR,fz,eF,Fk,lx,RB,BO,hNR,PnO,mx,YkZ,kx,Ehm,Ug,sg,cpR,Nn,AU,WIm,JA,Xt,piW,rpR,qc,Im,DZ,TLA,gX,Mc,Gw8,yj,vhm,FIO,lQY,RNm,HN,On,am,BLW,wX,tA,dX,uW,stv,om,bW,S$,NLR,U_v,PN,m_o,fqA,ZuR,ApP,XIW,J$8,xYm,kwA,i5Y,qG8,En,hA,gfW,DYI,$YP,C68,y$P,pT,WN,nfv,MCm,aIW,O5R,tCY,vN,dYm,rX,TI,uiP,GI,e$,Rm,ofZ,b5R,ZZ,SGO,XC,P6Z,c$R,gG,EfA,hXA,Dg,zXY,W0O,Tgo,pIe,yd,ns, Vd,OM,af,lIm,wG,tJ,dG,BgI,bc,skA,NgA,Sg,mYA,cp,EM,Yq,hJ,kDS,z9,ps,rG,vp,jg,Z5z,A$S,X4W,G9,fs,eg,FC,lc,Rf,JgA,L5Z,xpA,iAA,QgS,K58,Bp,qQP,AJ,Izm,gWR,Dpm,X$,Lp,xP,iy,qD,IY,gC,CqY,Cp,MD,yX,MxZ,ygA,np,nWe,Vxm,Hu,oWe,bAz,SQm,OI,PqY,cgY,h6v,wC,W5O,z6A,p4o,vWO,jgY,uy,oY,TJm,by,Sb,Pu,cu,EI,YP,hI,zs,Wu,pp,rC,vu,jb,Ts,GLR,fzz,e6S,F$,RY,F5o,UI,mJ,kP,ZB,AI,J8,LU,sgA,xb,iZ,QQ,UpW,NJo,lzm,Ih,qV,Agz,gP,Ov,nU,ah,wP,JUm,dP,QBI,xnP,izZ,qgA,Cxm,ICY,Dnm,$nm,XOm,oh,uZ,yUm,S7,P6,c6,nxS,pU,VFZ,rP,v6,j7,Go,Hzo,e7,FU,Ozo, lZ,Rh,wOW,Uv,kb,ZE,A8,Xm,J3,Ll,x1,iu,QV,dnZ,Kl,gE,I2,oxY,cUm,Sge,PxZ,Exo,YgP,z3R,WxY,h3P,rUv,Cl,Mk,VV,vxv,jBo,nl,H2,GhS,fCA,R3m,lC8,t3,dE,uu,o2,bu,sBv,NjR,W2,pl,UnY,mnY,khZ,Gb,fl,ef,ZzS,AUe,JAA,xcm,B2,iTv,Ul,sl,Zl,A3,JO,Qmm,IZ,g_,Dc,$G,MA,yK,VK,DcO,$cv,OV,CWo,M$W,w_,yAO,nve,tO,d_,V$P,HTW,aZv,Sk,t$m,dcR,oZ,ute,ovR,SnP,bTA,YG,wNe,cA8,Evz,vR,p9,Ynm,hvI,jk,Td,zve,Wzm,ek,pNR,rAm,vvo,jmY,sV,TXm,GIz,fZm,evR,FzI,lZo,RvW,BXR,UV,smv,kG,Uco,mcI,kIR,ZT8,AAZ,Zc,i7,JJO,isW,Qe,QfO,qMm,XpY,IgO,gqW,D8e,LMA,x8P,AO, XN,xt,KMA,LP,JP,$8v,CcY,Mgm,yJZ,nqm,VgS,tgY,HsY,gb,$t,MF,oqO,PcI,SMZ,CP,Ve,cJW,av,EqY,hbP,ov,YMv,fgW,zbI,G9A,cP,ebI,Rbv,Ea,PP,FMA,lgm,BGm,hP,NGA,U8W,m8R,k9o,ZsI,AJo,XuP,sfe,LJm,xDW,ipI,KJv,QYm,IBS,rb,gPv,vP,jE,Tp,DDW,$DO,eE,FN,Mb8,CyW,l7,yII,VbY,OpS,Hpo,aBZ,dDm,wuv,Jk,ir,xm,u$I,LL,Qu,Di,$m,CL,oPP,yu,SIW,HX,Vu,a4,wt,tk,dt,Pyz,ur,br,cIP,PX,EU,Ym,EPz,YIO,hRP,zRe,hk,WX,WJZ,pL,rt,vX,rIO,je,TM,vPP,fL,lr,Fy,ee,R4,BX,Gs8,BCO,NCR,RRI,lBI,sY8,UU,Zi,ZpR,UDe,mDY,ksS,TCI,qvz,IV,KHZ,DVS,QhA,NZ,g2,Lf,Kf,IEm,Xp, eRW,fB8,FJA,km,iUR,MB,V7Z,yA,OUY,aEA,w6R,VA,t7Z,dVZ,uUS,bU8,SvW,aV,c8Z,w2,Ebe,YvR,z0S,WHZ,p6m,d2,r8R,jhm,ue,TP8,oV,be,iT,R0S,mVZ,hR,ZUI,J3o,WM,xkR,ilo,Q2o,BM,RV,KnR,Fp,bsR,ff,le,ec,pf,JC,Xr,xE,Qp,IlP,Ky,IO,gh,g1O,DkW,Cy,CuA,MfS,y3I,Vp,n1W,Vfo,Hlz,Olm,alv,w2e,tfS,H1,dkR,OD,wh,umR,o1P,blW,Slm,Puz,tC,dh,c3Y,E1P,YlA,haA,zao,WnA,p2P,Sl,P1,c1,r3W,ED,v1Z,hC,TEe,j2W,W1,py,rh,v1,Gbo,jl,T2,flP,ea8,G2,fy,BEm,FnW,RaZ,llI,el,Fr,lA,s2A,NEI,UkI,RO,kbR,XRZ,A3P,B1,sD,Ny,UD,mT,Zn,AC,X4,Ju,LX,xL,JOA,L4W,xAo,i4,QZ,KX, qH,gn,$L,K4o,QZY,MH,qVW,yZ,nX,VZ,H8,OL,tu,dn,u4,oF,b4,Sh,P8,c8,DAO,EL,YL,hu,$AR,Mkm,rn,yOW,v8,jh,H9z,O9P,acz,tkO,uhY,l4,oGA,B8,RF,PTv,cOA,EGz,NH,UL,hPP,kL,Zs,Au,Xq,W48,Jt,LF,xR,pRR,iV,zP8,QD,KF,vG8,rOY,qR,Io,gD,DN,CF,T_z,GdW,yD,nF,HQ,O4,fcR,VD,lcI,RPo,B_z,sZv,N_Y,UAY,mAZ,wD,ao,F4m,AOm,tt,JPm,L2m,Sq,xFv,uV,oo,iPZ,PQ,K28,IFA,cQ,E4,gtP,YR,$Fe,ht,HPm,nte,C7m,yPP,MEA,WQ,pF,rD,vQ,jq,TH,GH,eq,aFm,dFP,Ro,hFP,BQ,uNm,bPZ,NR,At,U4,ZN,kR,cPm,P7A,Sam,EtP,XH,Ya8,pPP,JL,iE,vtz,Qm,Kw,ql,I9,jvm,TbS,gk,D1,$y,Gpm,fFS, Ml,Hz,Os,a9,wk,tL,dk,uE,o9,bE,SA,Pz,cz,Es,eU8,F2W,Yy,hL,z5,Wz,pw,rk,lFP,RUo,vz,Z1,Nbm,UFY,AL,X5,Kb,q0,kpS,Dy,ZPP,APe,M0,XXY,LUI,Jkz,xZP,iLv,Q4I,KUz,qUv,Iim,DZz,gme,$Zm,ykI,VeA,Me8,HLA,OLR,wXm,nb,VU,dZO,teW,Hj,OC,ap,omm,we,tq,de,SUz,Pro,uY,bLZ,op,YUP,bY,SD,Pj,cj,EC,YY,hq,zS,Wj,pb,re,vj,jD,TS,GS,fb,eD,F5,lY,Rp,Bj,sC,N0,UC,mS,kY,Zy,Aq,Xg,JT,Lg,x8,iJ,Qx,Kg,qf,IA,g1,Dp,$8,Cg,Mf,yx,ng,Vx,HH,Oj,aA,w1,tT,d1,uJ,oA,bJ,SO,PH,cH,Ej,Y8,hT,z_,WH,pg,r1,vH,jO,T_,G_,fg,eO,lJ,RA,zYo,BH,m,sj,Fg,Nf,Uj,m6,pXI,Zp,vmo, k8,j4W,Xz,Tto,LD,AT,xB,im,Qw,q2,fiv,eYS,FUP,liW,Vw,Hf,CD,Oq,BtS,s4R,Ntm,UZz,GMR,mZm,KD,kMm,ZLI,wQ,bm,t_,gQ,Akm,Iw,aw,dQ,SN,JRO,D7,$B,ow,um,Lj8,Pf,cf,Eq,YB,xBY,h_,zG,Wf,pD,rQ,ifz,QVY,qwR,I4Z,TG,GG,DBS,fD,yRO,VcO,OfR,a4P,Fz,tco,dBY,Uq,upe,mm,kB,Z7,A_,XP,JM,oOv,SwY,Pem,bfv,cRm,EOY,QO,K2,IT,DJ,$w,C2,YwS,Me,hlo,yO,n2,qe,Ox,aT,wV,tM,zlI,Hy,pMv,dV,rRo,vOe,us,jVO,oT,bs,T2I,Gcz,Sr,f4e,elP,Py,FjP,l4P,Rlo,B2P,cy,Ex,sVW,N2Z,Yw,hM,zX,UBm,Wy,p2,rV,vy,mBm,jr,TX,kcY,GX,ZfA,f2,ARm,X1S,JCY,LTm,xyz,iyS,er,QOv,KTS,qDZ, FP,Inz,ls,gEA,RT,Dyo,By,$yZ,CAm,sx,ZJ,MlY,AM,Xs,Jb,Lv,yCY,xr,i2,Q1,nEA,Vl8,qh,Ix,OyW,gS,anS,w1Z,Hy8,tlO,dyS,urP,$r,oEo,Cv,y1,nv,byW,V1,HU,ax,SDZ,wS,tb,PAm,u2,Si,ox,Yr,za,cCZ,WU,EEW,rS,vU,ji,YDW,Ga,h9e,ei,Fs,l2,cU,Rx,BU,sc,z9Y,Nh,mL,kr,WTY,Zb,Ab,XO,Jf,L8,xj,Qy,K8,qr,IJ,p1S,rCZ,vEY,Mr,gs,yy,n8,jOo,Tho,G2O,Vy,Hv,OH,fnP,e9R,C8,FTR,lnR,aJ,R9R,ws,tf,uw,oJ,bw,S5,Pv,EH,Yj,zx,Wv,p8,rs,hf,NhO,Uym,j5,Tx,Gx,mym,e5,ZyZ,FO,lw,AC8,RJ,sH,UH,X8e,Nr,mK,kj,ZU,Juv,J5,xHm,iXZ,QFA,xg,LC,Krm,qLA,IsI,iR,DHR,f8,gLW,$HR,Qn, C4A,KC,Mhz,qT,yuo,nLo,Vh8,HXe,OXe,IL,w8z,asW,g7,CC,thm,MT,dHP,yn,u4m,oLz,nC,bXR,SLP,P4m,cuv,Vn,ELY,Hk,hfz,aL,w7,WrY,zfo,p8A,ruS,vLZ,d7,uR,oL,jFm,TnS,Gee,fsA,efo,Frm,lsR,Rfz,Bne,sFm,SM,Pk,Nno,UHm,ck,Ez,mHO,Yg,h5,Wk,kev,pC,r7,vk,ZXY,jM,AuZ,TK,XQv,GK,JtP,LbA,fC,xRZ,iF8,Qom,eM,FA,lR,RL,Bk,KbA,q4I,sz,NT,Uz,INZ,mc,kg,ZV,A5,Xo,gRm,DRW,J9,La,$Ro,x6,ig,QB,Ka,KjS,CVW,Mqm,qo,ytY,nRR,Vqm,IX,gd,DA,$6,Ca,Mo,yB,na,VB,Hh,Oe,HFW,OFz,bg,Wh,wQI,pa,e_,vh,RX,S4z,hVz,PVA,zVS,pQP,rt8,Wbm,vRA,joo,TDO,xs,eV8,RVZ,lNv,som, NDZ,URW,qa,I8,kHI,ZFR,Lvm,DW,xlm,Atm,$s,CB,Ma,yo,Q9m,I1o,Kvv,$lP,OwI,Hwm,CEm,a18,Vo,yLO,MAm,dlW,bwz,oyY,Eye,SsW,HZ,Oy,pzY,tE,rLA,Fvv,eoO,f1Z,G5Y,j9z,BkA,RoZ,TkA,k5W,mlS,Zwm,Sz,JqW,ALz,Xjv,vym,LSO,x0z,da,o8,NkZ,s9z,Ulz,ib8,u5,l1e,KSO,IyA,D0I,CYo,nYz,VDm,ObO,ayW,tDm,wjm,SC8,u5R,d0m,PY8,YCA,hcm,zcm,WSz,jz,Qo,vYP,pjW,fB,GSA,l5,ecP,FSe,fy8,R8,lye,BZ,sy,L2,Na,fNe,Uy,mu,ks,Rco,BeZ,ZW,sp8,Nee,U0W,AE,Xf,Jl,Lh,x5,iP,Qc,Kh,qt,m0m,kSP,IK,ZbY,gK,$g,DY,$5,JTv,AqO,Ch,L6m,xfZ,igR,Mt,XHA,yc,QA8,nh,K6Y,qjY,BDP,Tem, Ipz,Vc,xw,jN,PZ,g88,DfZ,Op,WvI,a8,$fo,TQ,GQ,Ey,cZ,nB,hE,MDP,HbZ,Ys,Ysm,cqv,CJo,wzI,nyA,aK,jpo,KB,yTe,MOS,iwZ,yqO,n8e,EYO,ra,hom,zo8,uHm,$0m,gYW,Dl8,qs8,JLA,XzY,mRI,Qp8,VAZ,oYm,PER,cLS,WZ,pB,zQ,bbW,qCI,HgW,VOI,wK,tl,dK,uP,oK,bP,Oge,cC,Ep,Y5,z6,WC,apv,hl,ph,rK,wHz,vC,jt,T6,fh,dfe,ugm,et,Ff,lP,RK,BC,sp,Nt,Up,PJm,k5,cTe,mX,E8m,bgS,Sj8,YjW,ZY,Al,hMS,zMe,XV,W6R,xG,rTP,pHI,jAZ,G_I,fpo,T1W,lpe,RMm,N1m,mfZ,k_o,UfW,Ib,DP,gf,Zgm,ATW,J_e,XfZ,Ke,Lmm,x2A,iDZ,QwS,qu,gBI,D2W,$2o,I7e,qqW,KmO,CmS,MNS,B1e,y_I,sAO,nBz, VNW,wfe,HDY,ODv,a7R,uzv,tNP,d2Y,oBI,bDz,Ce,c_W,Sqm,EBz,Pm8,YqP,h4P,z4A,WmZ,pfz,r_P,vBe,jwP,TQm,GGv,f7v,e4A,Mu,l7I,R4S,BQA,FmZ,swS,U2S,yC,ne,m2S,kGY,VC,HK,ZDm,A_I,Xy8,JMe,ab,LPW,tW,df,i2Y,QTY,KPA,gw8,ob,PK,E_,Dem,Ya,hW,zN,yMZ,VrZ,nwI,O2R,Psm,wyY,fe,pe,H2I,MrS,Csz,$e8,GN,rf,TN,BK,s_,YxI,Nu,U_,Rb,pyR,hKI,zKm,rMO,ms,ka,jTZ,AW,Xa,Je,LE,xz,ii,Q2,TVY,GX8,KE,q1,gM,eKm,FPW,I0,lJe,sTm,NVO,D9,UeP,M1,me8,y2,V2,kXW,nE,Hx,Z2A,a0,XUZ,Jbv,te,dM,Px,xhm,o0,cx,Yz,ivO,zn,SU,EW,Qxm,Wx,KLW,pE,qc8,ui,bi,LLe,he,rM,IbR,grz, vx,Dhv,jU,Tn,Gn,fE,$hY,Fa,eU,li,R0,C2O,MiS,Bx,sW,N1,UW,mA,ybA,kz,Z9,nrz,Vim,Ae,XJ,Jj,OvP,HvO,LY,abZ,wUm,tiZ,xQ,dhW,usZ,orI,bvP,ScR,ip,Qa,KY,q7,P2R,cbW,gu,Ero,DG,$Q,YcO,h$Z,CY,z$Z,WLI,jxZ,TSA,pUP,rbS,vrZ,ya,nY,Va,Hr,Ga8,fbA,e$v,FL8,ae,BSO,wu,NSm,mhA,UhP,bp,oe,ZvY,AbZ,Xvm,Jfm,S0,LK8,cr,ES,xrR,QJA,KKR,hj,ru,DrW,b2o,vK,Cw8,M5S,yfR,njO,V5Y,WK,zO,TO,GO,aUm,wvY,t5S,fY,b8m,drm,uOe,Pwv,cfz,e0,EjW,SHS,YHS,FJ,lp,Re,h_v,z_R,Br,sS,WKA,N7,pvS,US,vr,Aj,rfv,SxS,aJA,X0,JY,xH,ib,QG,K0,qP,L0,D6,jJW,C0,GxR,MP,e_A,fUm, TsR,FKz,lUI,R_m,Ha,BsR,sJY,UrA,O2,Ewm,aG,kxY,AfZ,eo,Xkm,J5m,jo,trz,uPI,owP,mrP,tY,LcR,xTI,dy,iCI,oG,bb,Sj,Pa,ca,QLo,E2,YH,KcY,qzY,hY,zl,Wa,p0,ry,va,ggO,IVA,jj,DTe,CRo,Tl,MMI,$Tm,ik,L4,QH,qv,Ic,n0,y5R,tMY,yw,x3,C4,bCS,PRm,Ba,He,RG,OT,tD,JD,dT,zBR,uk,oc,WcI,pkY,r5v,vgA,bk,jLP,T7m,SH,GKR,RBm,lVA,fVm,Fcm,eBR,Pe,B7m,ce,sLm,N7Z,mTz,kKv,ZCA,A5v,iaI,We,p4,qeS,rT,ve,IAY,$oR,CgR,M_A,y9R,jH,TT,GT,f4,n6Y,Hav,OaR,mk,Pgv,dom,uoW,E6o,k3,Yeo,zOA,hOR,WlR,AD,LI,phR,Z0,xU,il,r9Z,jXz,fAR,Il,CI,Hd,wN,XZv,JEm,bl,ol,Pd, cd,LuO,Q8v,iBZ,KuP,YU,Er,qyP,gsZ,DaI,C5I,Wd,$aI,Mzo,yEe,rN,vd,VzZ,qd,z$,BdR,v6Z,moz,FQ,Sw,IWO,m_,Or,ZX,Av,cEI,YyS,EsW,al,tv,h5P,Jz,LO,WuW,xF,i0,pZA,dN,QT,xao,qM,tzR,Iq,Flv,eOI,TdP,gB,vsP,MM,BaS,R5P,Nam,UaY,VT,O8,aq,H9,tz,dB,ma8,u0,ZBP,oq,XCZ,P9,AES,c9,E8,ihz,YF,qpz,IYo,W9,g5Y,CPA,B9,NM,U8,Zu,MtO,Az,XB,ia,Qv,KG,q6,ylo,Ij,gv,OhI,Da,$d,aYv,wCo,CG,ttA,dtO,ufm,o5A,M6,yv,bhO,SpP,PPO,O0,aj,dv,ua,clP,E58,oj,ba,SZ,P0,YpA,hqY,c0,zqA,WXY,E0,rle,pCm,v5S,Yd,TKA,jKO,G6e,hZ,z7,fYY,FXe,lYY,W0,pG,rv,Rqe,sKo,v0,NKv, T7,Utm,mtv,jZ,G7,fG,eZ,AlW,JWS,k6A,XKe,LsY,ZhR,xuS,ieS,FB,QbA,q_e,DuY,CIW,$uY,kd,m8,Xn,yWm,JQ,Ln,xX,VoZ,iN,He8,naP,Qz,wKP,Kn,qU,toW,IC,duv,t_Y,SeO,oaR,uVI,S_W,beI,PIz,gr,D2,$X,Cn,cWP,hsA,nn,Vz,HE,WsZ,zsO,MU,pKI,rWZ,vae,Tfz,OZ,Nfo,JeO,uN,LAW,Rj,iEz,Q0Z,KAS,qW8,I9e,bN,gzm,S2,PE,cE,D1R,hQ,$1z,Cim,zr,WE,MUS,yeo,nzm,VUZ,HEP,pn,YX,OEI,a9I,rr,tUY,d1e,ua8,vE,ozm,bEO,SWY,PiO,cem,Ezo,YWz,hyo,zyO,WAm,j2,reZ,Tr,j0v,vzv,GnA,TMz,eyP,Fn,pxS,Gr,lN,FAA,RC,BE,sZ,NU,UZ,l9S,mY,Ryo,Z2,m18,AeR,Xrz,Jje,LEI,JN,x7R,ZEO,U1S, iYW,AQ,QeS,qSA,kX,XZ,s0I,NM8,L7,IGA,gQA,knI,BMW,D7S,iM,$7S,QI,K7,Cpm,qs,nQA,M0O,yjP,IN,V08,gi,D$,$$,C7,HYv,OYP,aGO,Ms,t0Z,d7v,yI,uJI,n7,VI,oQe,bYI,SSY,PpO,cjv,EQm,pr8,h8m,IPe,OB,vQz,jev,z8e,WES,YSm,tN,FEW,wi,aN,rjP,R8z,e8A,fGZ,GOm,TuO,uM,BuP,la,oN,bM,SS,seO,P7,Nuz,c7,U7Z,AZ,m7z,EB,s0,U0,Ksm,zV,p7,Ajm,XaZ,ri,jS,W7,hN,TV,Y$,kOS,ZYz,GV,JYm,LB8,e2,f9o,B0,f7,xPe,v7,i0m,QGW,KBm,q2z,eS,FZ,I6W,gHR,DPO,$PI,CbR,KEY,dr,RN,B7,lM,yYO,OeS,aPo,sB,nHv,VjR,H0o,O0o,Ns,a6A,UB,waZ,dPv,mp,u0R,b0v,oHW,cYS,Z$,Ji,Y2Z,EHY, pam,zGW,rYI,vHm,hGA,WBP,jGW,Lr,TyA,f6Y,GlR,xk,wxW,eGv,FB8,l6z,RG8,Byo,sGo,NyO,UPW,mPe,klm,Z0A,AYv,XeP,Q$,xv8,i48,Lkz,Qcm,Kko,qTZ,I08,Kr,Dvo,$vO,ID,Ckv,gW,Dj,MHW,$k,yDR,n3e,Cr,VHv,H4R,O4z,MW,Y_I,y$,tHY,nr,we8,dvS,u_R,EaR,yz,o3m,b4R,Hb,zQZ,hQv,G4,WkR,YT8,v3o,fr,jco,TTI,GTZ,FkP,l0Y,f0m,BTR,scP,NTR,Uve,mvP,kTm,Z4v,ADz,FS,V$,RQ8,JvW,eQP,ld,xdY,Xde,eX,iIR,QlA,IXO,$de,gUI,Bb,ClO,si,K_e,RD,NW,qrA,kk,nUA,HIZ,Vwm,OIP,yvZ,aXz,wdO,Ui,twm,ddZ,uQY,bI8,SrZ,oUP,cvY,YrI,EUZ,pdA,zd8,Plm,hdO,rvY,W_z,vUO,jlR,TNz,edZ, fXe,G$P,Zj,F_8,Rdm,BNm,sle,NNA,Udz,mdA,fn,k$m,ZIW,AvP,Jzz,X98,Li8,iOO,Qqm,xM8,mV,S2m,q8z,Iuz,gFO,Vy8,C0v,Myv,yzm,HOI,au8,lGA,Ai,$Mm,DMI,OOR,Za,nFZ,H7,N6,DdZ,oFW,u3v,bOz,S8S,Y8e,hTZ,lXI,XS,AN,tye,zTP,dMR,WiW,k$,p9v,tj8,MwY,w9P,Pb8,xZ,iD,vFm,Q8,jqW,TBv,Gim,fue,eTY,luO,RTY,kVY,NiZ,msW,Z78,qi,LVY,XbY,JiW,QDZ,KVP,qiv,I1,Ijo,Kt,gkm,ir8,ANz,g4,DWm,UsZ,$WO,DM,MXZ,CdP,nkI,VXe,HrP,yiR,$Z,wbZ,ajm,uSR,dWm,tX8,oke,brm,Ct,SiY,PdW,EkR,YiP,ci8,hpZ,vkA,WVI,pbm,rim,jDe,TWe,G4Z,epW,fjY,FV8,ljY,Mi,BWP,sDo,UWY,NWY,mWP, Rp8,k4e,AiI,X$e,LO8,itv,JyS,Q1A,KOW,q6v,ZrZ,IMe,xim,nt,gZI,Div,$iv,CDI,MaA,yyv,nZY,Ht8,aM8,w$m,taz,di8,u6Z,V8,oZY,H$,S68,PDS,ty,EZP,d4,huA,zuv,WOm,p$8,vZm,ryz,czv,GAZ,P0R,uD,fMO,j1o,T4e,eue,Sa,lM8,FOR,RuR,B48,s1I,miO,N4Y,AyW,P$,UiA,XSY,c$,QUW,JrA,YZ,hy,Ktv,E6,qfZ,zA,D9A,giR,x9P,iSo,$9P,CXY,MdP,LtA,yrY,W$,niR,Ide,Y6e,bD,HSz,OSA,adO,wS8,tdP,d9R,uDv,oiv,bSZ,SfP,crY,EiW,Yfo,PXA,h1v,z1R,WtI,pSZ,rrW,viI,GzY,Tlo,jU8,fdm,v$,sOm,e1z,FtY,TA,ldm,R1W,ft,NlY,U9Z,ea,kzo,ZSm,m9v,sUZ,F6,GA,BlO,B$,lD,Arm,s6,R1,xgW, KGR,ImS,gCo,$gz,Jxm,qJe,CfO,LGO,MTv,yxY,nCA,ZM,Ni,Oiv,amI,VTz,mO,tTA,dgA,QEA,iiv,wmI,uMW,Dgz,HiA,XmR,Ay,XD,Jr,oCe,LS,YJm,Pfe,hLW,cxm,SJW,zLW,bi8,rxe,WGo,xi,vCZ,TwS,fmv,eLY,RLR,q9,Bwz,FGv,kZ,Uge,mgY,CS,L_S,iX,kgm,Ziv,Xqe,Ax8,J1W,NwP,gl,LwW,xLR,iVe,KwA,Q_O,KiP,IU,q3W,g9o,I5e,$Lz,DLm,Ggm,MYm,CQz,Dd,Q6,y1Y,y6,n9A,VYv,HVv,OVv,a5I,M9,lm8,rzA,U6,wqv,nS,tYo,dLo,u7R,o9P,bVS,V6,HS,c1z,E9m,Y3z,S3O,PQI,Of,pqR,ziz,WwO,r1I,aU,v9e,j_8,TxR,wl,GCe,eiR,Fw8,l58,tr,f5v,dl,uX,Ri8,Bx8,Sd,oU,bX,s_e,PS,Nxv,ULe,mLe,ZVo,kCv, WS,Xnz,JXZ,A1O,L3v,pS,xQA,rl,i$Z,vS,QnY,K38,gJO,C3I,qbz,DQm,jd,Iom,$Qv,MQA,yXm,nJo,VQW,Gz,H$Y,FD,fS,O$S,lX,RU,wne,tQo,sf,N9,dQW,BS,uTo,Uf,b$z,oJ8,ki,Zd,Ar,cXz,SbO,P3O,XM,EJm,W3W,hCv,Ybe,zCA,Jx,rXz,G8Y,foo,xC,eC8,Li,vJz,jnI,RC8,QM,Ki,BYS,snz,NYe,UQS,mQZ,gw,AXv,XAm,JGv,Dm,Z$o,i1o,IE,$C,Ci,k8S,ni,Hm,Kgv,IKe,DXe,qKA,VM,OJ,g2P,$XO,aE,COP,MLm,yGz,ww,tx,n2A,VLm,H1z,O1o,aK8,wAS,tLv,o2P,dXm,b1m,SKz,E28,YKP,jym,zg,fKS,lKI,Fgm,ehS,rGe,v2z,hhm,Wge,T8Y,Wm,pi,B8S,Ti,Jlz,syI,vm,Tg,N8W,UXW,zho,GEe,kEo,Z1P,AGY,Gg, sJ,J6I,L$e,x4P,Ng,imI,K$P,QsZ,q5O,UJ,mG,IhZ,$4S,C1W,Ax,D4o,MnY,y6W,gAS,LV,nAv,VnS,J1,HmZ,Ome,ahe,woI,d4Y,tnI,bmY,S5e,uIY,c6W,EAz,oAR,QL,KV,Y5W,W$P,qL,zzo,hzP,poS,vAP,r6A,jsW,I_,Too,GkS,fhW,ezA,F$v,lhI,RzA,ssz,BoR,Noz,U4v,m4W,kkA,ZmY,XFR,D5,gx,$9,JsP,L1m,A6P,qoe,IvY,goY,CzW,$bW,DbP,M1m,ysv,CV,ML,noI,V18,HZY,OZP,wFW,t18,nV,dbZ,yL,Hq,avW,O3,u2W,oov,bZA,SoZ,PzZ,a_,csI,EoS,zxZ,wx,W1o,hxA,t1,dx,uQ,rsA,voP,jre,pFo,GjO,T5P,fvo,o_,exv,F1A,RxP,N5z,lvA,B5Z,bQ,UbZ,kjm,ZZI,XG8,Jdm,SY,Pq,LNz,mbm,QRm,iK8,x5I,cq, E3,qXZ,KNR,Y9,h1,zC,ItS,Wq,gVY,D58,$5I,CCm,pV,MKP,rx,ydm,vq,jY,TC,nVI,GC,VKI,fV,eY,OKR,tKm,d5A,HKo,uWI,SXA,PCe,cdv,bKW,oVe,YXm,EVm,hZI,pGO,R_,vVe,rdI,zZP,WN8,jRW,TU8,Bq,s3,GZv,ftW,eZR,FNv,ltm,RZY,sR8,NU8,LoZ,kZP,ZKW,U5W,icI,A1,JX,glY,DIO,i3,Qr,$Im,Q5I,Z5,In,qQ,L$,MVY,yho,gY,VVY,Ocm,HcR,Do,xJ,k9,nlO,K$,Ko8,C_O,wJv,NL,$J,tVm,dIv,XT,qOS,C$,MQ,uxz,yr,n$,Vr,olA,bcZ,P_o,cho,SOe,Hn,Elo,Ob,an,YOv,hIv,zIS,WoY,pJm,rhm,j5S,vlI,tX,wY,T$m,fSO,G3z,dY,u3,eIR,lSo,RIm,on,Fov,B$v,s58,UIW,b3,N$A,mIm,k3I,ZcI,Pn,cn,XgY, AhP,JFW,Eb,YJ,xme,Lyo,iNv,KyI,QIZ,q$e,z8,I_A,gKR,p$,Dmz,Coo,$mO,M9m,yFW,nKS,V9o,ON8,a_P,wgm,HNW,t9Y,dmY,uFe,oKS,bN8,S$Y,PoY,cFW,EKz,T8,Y$z,h7e,z78,pgz,T9A,vKm,WyP,eQ,rFR,f$,jIP,FT,f_v,GyR,l3,FyY,l_W,R78,zpo,NQ,$tm,Bn,Ub,sb,kJ,B9m,Zo,ky8,ZN8,AFW,XLZ,Jcm,LDW,g7v,x2,DNO,ILS,$NP,iO,K1,qX,MRR,CK8,xNR,Iy,n7Z,VRP,yce,O_I,g8,aLZ,wL8,tRm,QF,uum,dNY,DK,$2,KDO,JG,o7Y,b_z,Smm,PKe,i_m,QdZ,L1,ccW,Ymz,hjR,zjO,WDz,E7z,C1,rce,Gqm,yF,fLm,ejA,jdv,VF,FDm,lLY,pLP,Rj8,TmI,BmP,HA,n1,sdo,UNY,NmR,MX,kqm,OK,sEW,Z_z,J7S,XDS, xjP,ixI,Le8,w8,ay,Kez,qPS,ITR,gMv,Oxm,y7o,nMA,Cje,$jW,uO,djI,wDS,uKo,oMY,d8,bO,SL,c7I,Pj8,SPm,cA,HxI,zE,YPm,hG,PA,zk8,WeO,pDP,aTe,r8,jL,r7Y,VWv,EMm,EK,vMZ,oy,jPz,THO,GJS,f1,eL,hke,fTR,ekR,FE,lO,Fev,Y2,tWA,lTP,RkW,vA,BHY,WA,sPe,p1,Sy,NHz,mjR,Ry,BA,kJS,ZxP,A7v,GE,TE,X3Z,AcW,J4I,MWA,Lqz,xqo,i6Y,Q$e,sK,NX,Iwv,$q8,Msz,q7m,tsm,dqR,uGm,oTP,b6W,S7P,PHP,ETP,c48,UK,mg,k2,Y7S,hJR,zJm,DV,Wqv,ZK,p3m,AG,r4e,XI,J6,vTW,Db,Lm,vf,j$v,ez,rqW,Tco,wa,Gf8,Af,XA,fwP,HC,eJY,Fqm,FL,Fbm,lwW,RJz,BcO,xA,Ncm,Uqo,i1,Km,q4,mqe, A4v,XYY,Is,J0z,kfA,x$W,Z6P,Lav,iom,Q7e,Kae,qhZ,go,gpA,WjW,gV,Oz,D$I,$$e,t5,If8,VO,CUe,Mmz,y0Y,Dh,vv,VmR,HoZ,$A,Cm,Ooz,M4,yN,QN,afR,wYW,LrO,nm,VN,tmm,Ho,O5,d$Z,as,u8m,wo,t6,op8,boY,YLP,u1,Sh8,c0m,PUo,os,b1,Epm,Sn,YhS,hEZ,zEm,WaA,pYW,r0e,j7P,co,vpP,Tpm,GYO,ff8,eES,BpR,Fam,lfe,REo,NpP,m$Z,kYP,ZoY,U$8,E5,A0P,XW0,JoH,LZ0,xSI,h6,iRV,zk,Wo,pm,QzH,KZu,IOu,gev,DSC,$SH,M8u,Cv8,yod,ro,vo,HR3,neF,V8F,jn,ORI,aOH,Tk,Gk,wW0,fm,t8v,en,dSd,FI,l1,uY8,Rs,Bo,oed,bRu,s5,N4,SAH,U5,Pve,coV,A6,X2,EeS,YAH,hmF,pWe,WZe,Js, ro3,veC,jzV,GHR,zm3,Gm0,fOu,FZH,XWP,DO;XY=function(X){return function(){return XWP[X].apply(this,arguments)}}; g.iv=function(X,J){return XWP[X]=J}; JoO=function(X){var J=0;return function(){return J=this.length))return this[X]}; mZ=function(X){return X?X:UA}; M8A=function(X,J,L){X instanceof String&&(X=String(X));for(var x=X.length-1;x>=0;x--){var Q=X[x];if(J.call(L,Q,x,X))return{D0:x,Rw:Q}}return{D0:-1,Rw:void 0}}; ke=function(X){return X?X:function(J,L){return M8A(this,J,L).D0}}; g.JS=function(X,J,L){X=X.split(".");L=L||g.Ao;for(var x;X.length&&(x=X.shift());)X.length||J===void 0?L[x]&&L[x]!==Object.prototype[x]?L=L[x]:L=L[x]={}:L[x]=J}; xu=function(X,J){var L=g.Ld("CLOSURE_FLAGS");X=L&&L[X];return X!=null?X:J}; g.Ld=function(X,J){X=X.split(".");J=J||g.Ao;for(var L=0;L2){var x=Array.prototype.slice.call(arguments,2);return function(){var Q=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(Q,x);return X.apply(J,Q)}}return function(){return X.apply(J,arguments)}}; g.IH=function(X,J,L){g.IH=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?V8Z:HRI;return g.IH.apply(null,arguments)}; g.g3=function(X,J){var L=Array.prototype.slice.call(arguments,1);return function(){var x=L.slice();x.push.apply(x,arguments);return X.apply(this,x)}}; g.$u=function(){return Date.now()}; Cd=function(X){return X}; g.MC=function(X,J){function L(){} L.prototype=J.prototype;X.yD=J.prototype;X.prototype=new L;X.prototype.constructor=X;X.Jz=function(x,Q,K){for(var q=Array(arguments.length-2),D=2;D=0;--L)L in x&&J.call(void 0,x[L],L,X)}; g.Ou=function(X,J,L){J=HV(X,J,L);return J<0?null:typeof X==="string"?X.charAt(J):X[J]}; HV=function(X,J,L){for(var x=X.length,Q=typeof X==="string"?X.split(""):X,K=0;K=0;x--)if(x in Q&&J.call(L,Q[x],x,X))return x;return-1}; g.tS=function(X,J){return dSR(X,J)>=0}; uYv=function(X){if(!Array.isArray(X))for(var J=X.length-1;J>=0;J--)delete X[J];X.length=0}; g.u8=function(X,J){J=dSR(X,J);var L;(L=J>=0)&&g.d3(X,J);return L}; g.d3=function(X,J){return Array.prototype.splice.call(X,J,1).length==1}; g.PV=function(X,J){J=HV(X,J);J>=0&&g.d3(X,J)}; oeR=function(X,J){var L=0;t8Y(X,function(x,Q){J.call(void 0,x,Q,X)&&g.d3(X,Q)&&L++})}; g.Eu=function(X){return Array.prototype.concat.apply([],arguments)}; g.Yu=function(X){var J=X.length;if(J>0){for(var L=Array(J),x=0;x>>1),C=void 0;L?C=J.call(void 0,X[D],D,X):C=J(x,X[D]);C>0?Q=D+1:(K=D,q=!C)}return q?Q:-Q-1}; g.BV=function(X,J){X.sort(J||fd)}; Pvm=function(X,J){var L=fd;g.BV(X,function(x,Q){return L(J(x),J(Q))})}; g.NC=function(X,J,L){if(!g.i8(X)||!g.i8(J)||X.length!=J.length)return!1;var x=X.length;L=L||coW;for(var Q=0;QJ?1:X0&&(J[Q]=x)},X); return J}; TIY=function(X){X=Pc(X);var J=[];g.XX(X,function(L,x){x in Object.prototype||typeof L!="undefined"&&J.push([x,":",L].join(""))}); return J}; fOe=function(X){oS(X,"od",GmP);oS(X,"opac",cc).L=!0;oS(X,"sbeos",cc).L=!0;oS(X,"prf",cc).L=!0;oS(X,"mwt",cc).L=!0;oS(X,"iogeo",cc)}; E1=function(X,J){return X.lastIndexOf(J,0)==0}; emZ=function(X,J){var L=X.length-J.length;return L>=0&&X.indexOf(J,L)==L}; g.YS=function(X){return/^[\s\xa0]*$/.test(X)}; g.hn=function(X,J){return X.indexOf(J)!=-1}; zU=function(X,J){return g.hn(X.toLowerCase(),J.toLowerCase())}; g.r6=function(X,J){var L=0;X=Wc(String(X)).split(".");J=Wc(String(J)).split(".");for(var x=Math.max(X.length,J.length),Q=0;L==0&&QJ?1:0}; g.vc=function(){var X=g.Ao.navigator;return X&&(X=X.userAgent)?X:""}; FX=function(X){if(!GU&&!fJ||!eJ)return!1;for(var J=0;J0:!1}; s1=function(){return Bc()?!1:lB("Opera")}; FZO=function(){return Bc()?!1:lB("Trident")||lB("MSIE")}; lOm=function(){return Bc()?FX("Microsoft Edge"):lB("Edg/")}; Nx=function(){return lB("Firefox")||lB("FxiOS")}; mR=function(){return lB("Safari")&&!(U1()||(Bc()?0:lB("Coast"))||s1()||(Bc()?0:lB("Edge"))||lOm()||(Bc()?FX("Opera"):lB("OPR"))||Nx()||lB("Silk")||lB("Android"))}; U1=function(){return Bc()?FX("Chromium"):(lB("Chrome")||lB("CriOS"))&&!(Bc()?0:lB("Edge"))||lB("Silk")}; RmP=function(){return lB("Android")&&!(U1()||Nx()||s1()||lB("Silk"))}; BIP=function(X){var J={};X.forEach(function(L){J[L[0]]=L[1]}); return function(L){return J[L.find(function(x){return x in J})]||""}}; szZ=function(X){var J=g.vc();if(X==="Internet Explorer"){if(FZO())if((X=/rv: *([\d\.]*)/.exec(J))&&X[1])J=X[1];else{X="";var L=/MSIE +([\d\.]+)/.exec(J);if(L&&L[1])if(J=/Trident\/(\d.\d)/.exec(J),L[1]=="7.0")if(J&&J[1])switch(J[1]){case "4.0":X="8.0";break;case "5.0":X="9.0";break;case "6.0":X="10.0";break;case "7.0":X="11.0"}else X="7.0";else X=L[1];J=X}else J="";return J}var x=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");L=[];for(var Q;Q=x.exec(J);)L.push([Q[1],Q[2],Q[3]||void 0]); J=BIP(L);switch(X){case "Opera":if(s1())return J(["Version","Opera"]);if(Bc()?FX("Opera"):lB("OPR"))return J(["OPR"]);break;case "Microsoft Edge":if(Bc()?0:lB("Edge"))return J(["Edge"]);if(lOm())return J(["Edg"]);break;case "Chromium":if(U1())return J(["Chrome","CriOS","HeadlessChrome"])}return X==="Firefox"&&Nx()||X==="Safari"&&mR()||X==="Android Browser"&&RmP()||X==="Silk"&&lB("Silk")?(J=L[2])&&J[1]||"":""}; NIP=function(X){if(Bc()&&X!=="Silk"){var J=eJ.brands.find(function(L){return L.brand===X}); if(!J||!J.version)return NaN;J=J.version.split(".")}else{J=szZ(X);if(J==="")return NaN;J=J.split(".")}return J.length===0?NaN:Number(J[0])}; mSS=function(){var X=null;if(!USY)return X;try{var J=function(L){return L}; X=USY.createPolicy("goog#html",{createHTML:J,createScript:J,createScriptURL:J})}catch(L){}return X}; An=function(){kS===void 0&&(kS=mSS());return kS}; Xc=function(X){this.L=X}; JH=function(X){var J=An();X=J?J.createScriptURL(X):X;return new Xc(X)}; LW=function(X){if(X instanceof Xc)return X.L;throw Error("");}; x0=function(X){this.L=X}; g.i$=function(X){if(X instanceof x0)return X.L;throw Error("");}; QR=function(X){this.bl=X}; KW=function(X){return new QR(function(J){return J.substr(0,X.length+1).toLowerCase()===X+":"})}; g.IQ=function(X,J){J=J===void 0?kmP:J;a:if(J=J===void 0?kmP:J,!(X instanceof x0)){for(var L=0;L4);Q++)J[b$(X[Q])]||(L+="\nInner error "+x++ +": ",X[Q].stack&&X[Q].stack.indexOf(X[Q].toString())==0||(L+=typeof X[Q]==="string"?X[Q]:X[Q].message+"\n"),L+=u$(X[Q],J));Q")!=-1&&(X=X.replace(guz,">")),X.indexOf('"')!=-1&&(X=X.replace(DCY,""")),X.indexOf("'")!=-1&&(X=X.replace($Co,"'")),X.indexOf("\x00")!=-1&&(X=X.replace(C8m,"�")));return X}; g.hH=function(X){return X==null?"":String(X)}; zu=function(X){for(var J=0,L=0;L>>0;return J}; W_=function(X){var J=Number(X);return J==0&&g.YS(X)?NaN:J}; MIv=function(X){return String(X).replace(/\-([a-z])/g,function(J,L){return L.toUpperCase()})}; ySY=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; nuO=function(X){return X.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(J,L,x){return L+x.toUpperCase()})}; VIP=function(X){var J=1;X=X.split(":");for(var L=[];J>0&&X.length;)L.push(X.shift()),J--;X.length&&L.push(X.join(":"));return L}; pW=function(){return GU||fJ?!!eJ&&!!eJ.platform:!1}; Hdv=function(){return pW()?eJ.platform==="Android":lB("Android")}; rZ=function(){return lB("iPhone")&&!lB("iPod")&&!lB("iPad")}; v_=function(){return rZ()||lB("iPad")||lB("iPod")}; jv=function(){return pW()?eJ.platform==="macOS":lB("Macintosh")}; OdO=function(){return pW()?eJ.platform==="Windows":lB("Windows")}; Tu=function(X){Tu[" "](X);return X}; aH8=function(X,J){try{return Tu(X[J]),!0}catch(L){}return!1}; tIR=function(X,J){var L=wVW;return Object.prototype.hasOwnProperty.call(L,X)?L[X]:L[X]=J(X)}; g.Gu=function(X){return tIR(X,function(){return g.r6(dCz,X)>=0})}; g.fW=function(X,J,L){return Math.min(Math.max(X,J),L)}; g.ev=function(X,J){X%=J;return X*J<0?X+J:X}; Fc=function(X,J,L){return X+L*(J-X)}; g.l$=function(X,J){this.x=X!==void 0?X:0;this.y=J!==void 0?J:0}; RQ=function(X,J){return X==J?!0:X&&J?X.x==J.x&&X.y==J.y:!1}; g.B_=function(X,J){this.width=X;this.height=J}; g.sR=function(X,J){return X==J?!0:X&&J?X.width==J.width&&X.height==J.height:!1}; NK=function(X){return X.width*X.height}; mW=function(X,J){this.L=X===UR&&J||""}; k0=function(X){if(X instanceof CW)return X;X=String(X).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return MK(X)}; oue=function(X){return uvm(X)}; uvm=function(X){var J=k0("");return MK(X.map(function(L){return yR(k0(L))}).join(yR(J).toString()))}; EuR=function(X){var J;if(!bdP.test("div"))throw Error("");if(Suv.indexOf("DIV")!==-1)throw Error("");var L="":(X=oue(J.map(function(x){return x instanceof CW?x:k0(String(x))})),L+=">"+X.toString()+""); return MK(L)}; P8A=function(X){for(var J="",L=Object.keys(X),x=0;x2&&jHo(Q,q,x,2);return q}; jHo=function(X,J,L,x){function Q(D){D&&J.appendChild(typeof D==="string"?X.createTextNode(D):D)} for(;x0)Q(K);else{a:{if(K&&typeof K.length=="number"){if(g.Q0(K)){var q=typeof K.item=="function"||typeof K.item=="string";break a}if(typeof K==="function"){q=typeof K.item=="function";break a}}q=!1}g.mF(q?g.Yu(K):K,Q)}}}; g.MG=function(X){return $D(document,X)}; $D=function(X,J){J=String(J);X.contentType==="application/xhtml+xml"&&(J=J.toLowerCase());return X.createElement(J)}; g.nj=function(X){return document.createTextNode(String(X))}; g.Vt=function(X,J){X.appendChild(J)}; g.HB=function(X){for(var J;J=X.firstChild;)X.removeChild(J)}; O9=function(X,J,L){X.insertBefore(J,X.childNodes[L]||null)}; g.aW=function(X){return X&&X.parentNode?X.parentNode.removeChild(X):null}; g.w0=function(X,J){if(!X||!J)return!1;if(X.contains&&J.nodeType==1)return X==J||X.contains(J);if(typeof X.compareDocumentPosition!="undefined")return X==J||!!(X.compareDocumentPosition(J)&16);for(;J&&X!=J;)J=J.parentNode;return J==X}; AH=function(X){return X.nodeType==9?X:X.ownerDocument||X.document}; g.tw=function(X,J){if("textContent"in X)X.textContent=J;else if(X.nodeType==3)X.data=String(J);else if(X.firstChild&&X.firstChild.nodeType==3){for(;X.lastChild!=X.firstChild;)X.removeChild(X.lastChild);X.firstChild.data=String(J)}else g.HB(X),X.appendChild(AH(X).createTextNode(String(J)))}; G0P=function(X){return X.tagName=="A"&&X.hasAttribute("href")||X.tagName=="INPUT"||X.tagName=="TEXTAREA"||X.tagName=="SELECT"||X.tagName=="BUTTON"?!X.disabled&&(!X.hasAttribute("tabindex")||T3Y(X)):X.hasAttribute("tabindex")&&T3Y(X)}; T3Y=function(X){X=X.tabIndex;return typeof X==="number"&&X>=0&&X<32768}; S6=function(X,J,L){if(!J&&!L)return null;var x=J?String(J).toUpperCase():null;return d0(X,function(Q){return(!x||Q.nodeName==x)&&(!L||typeof Q.className==="string"&&g.tS(Q.className.split(/\s+/),L))},!0)}; d0=function(X,J,L){X&&!L&&(X=X.parentNode);for(L=0;X;){if(J(X))return X;X=X.parentNode;L++}return null}; Z3=function(X){this.L=X||g.Ao.document||document}; fHm=function(){this.L=this.Fn=null}; PB=function(){}; E9=function(){if(!cB())throw Error();}; cB=function(){return!(!YD||!YD.performance)}; eez=function(X){return g.g0?"webkit"+X:X.toLowerCase()}; hw=function(X){return function(){return X}}; g.z1=function(){}; FFS=function(X){var J=J||0;return function(){return X.apply(this,Array.prototype.slice.call(arguments,0,J))}}; WB=function(X){var J=!1,L;return function(){J||(L=X(),J=!0);return L}}; pj=function(X){var J=X;return function(){if(J){var L=J;J=null;L()}}}; r0=function(X,J,L){var x=0;return function(Q){g.Ao.clearTimeout(x);var K=arguments;x=g.Ao.setTimeout(function(){X.apply(L,K)},J)}}; vB=function(X,J,L,x){this.top=X;this.right=J;this.bottom=L;this.left=x}; j6=function(X){return X.right-X.left}; T1=function(X,J){return X==J?!0:X&&J?X.top==J.top&&X.right==J.right&&X.bottom==J.bottom&&X.left==J.left:!1}; G1=function(X,J,L){J instanceof g.l$?(X.left+=J.x,X.right+=J.x,X.top+=J.y,X.bottom+=J.y):(X.left+=J,X.right+=J,typeof L==="number"&&(X.top+=L,X.bottom+=L));return X}; g.fj=function(X,J,L,x){this.left=X;this.top=J;this.width=L;this.height=x}; e6=function(X,J){return X==J?!0:X&&J?X.left==J.left&&X.width==J.width&&X.top==J.top&&X.height==J.height:!1}; g.lF=function(X,J,L){if(typeof J==="string")(J=Fw(X,J))&&(X.style[J]=L);else for(var x in J){L=X;var Q=J[x],K=Fw(L,x);K&&(L.style[K]=Q)}}; Fw=function(X,J){var L=lHY[J];if(!L){var x=MIv(J);L=x;X.style[x]===void 0&&(x=(g.g0?"Webkit":RW?"Moz":null)+nuO(x),X.style[x]!==void 0&&(L=x));lHY[J]=L}return L}; g.BB=function(X,J){var L=X.style[MIv(J)];return typeof L!=="undefined"?L:X.style[Fw(X,J)]||""}; s9=function(X,J){var L=AH(X);return L.defaultView&&L.defaultView.getComputedStyle&&(X=L.defaultView.getComputedStyle(X,null))?X[J]||X.getPropertyValue(J)||"":""}; NG=function(X,J){return s9(X,J)||(X.currentStyle?X.currentStyle[J]:null)||X.style&&X.style[J]}; g.m9=function(X,J,L){if(J instanceof g.l$){var x=J.x;J=J.y}else x=J,J=L;X.style.left=g.U9(x,!1);X.style.top=g.U9(J,!1)}; kD=function(X){try{return X.getBoundingClientRect()}catch(J){return{left:0,top:0,right:0,bottom:0}}}; ReY=function(X){var J=AH(X),L=NG(X,"position"),x=L=="fixed"||L=="absolute";for(X=X.parentNode;X&&X!=J;X=X.parentNode)if(X.nodeType==11&&X.host&&(X=X.host),L=NG(X,"position"),x=x&&L=="static"&&X!=J.documentElement&&X!=J.body,!x&&(X.scrollWidth>X.clientWidth||X.scrollHeight>X.clientHeight||L=="fixed"||L=="absolute"||L=="relative"))return X;return null}; g.Z8=function(X){var J=AH(X),L=new g.l$(0,0);if(X==(J?AH(J):document).documentElement)return L;X=kD(X);J=Lj(J);J=vum(J.L);L.x=X.left+J.x;L.y=X.top+J.y;return L}; sHY=function(X,J){var L=new g.l$(0,0),x=D8(AH(X));if(!aH8(x,"parent"))return L;do{var Q=x==J?g.Z8(X):B3v(X);L.x+=Q.x;L.y+=Q.y}while(x&&x!=J&&x!=x.parent&&(X=x.frameElement)&&(x=x.parent));return L}; g.Aw=function(X,J){X=N3z(X);J=N3z(J);return new g.l$(X.x-J.x,X.y-J.y)}; B3v=function(X){X=kD(X);return new g.l$(X.left,X.top)}; N3z=function(X){if(X.nodeType==1)return B3v(X);X=X.changedTouches?X.changedTouches[0]:X;return new g.l$(X.clientX,X.clientY)}; g.X9=function(X,J,L){if(J instanceof g.B_)L=J.height,J=J.width;else if(L==void 0)throw Error("missing height argument");X.style.width=g.U9(J,!0);X.style.height=g.U9(L,!0)}; g.U9=function(X,J){typeof X=="number"&&(X=(J?Math.round(X):X)+"px");return X}; g.JB=function(X){var J=UCR;if(NG(X,"display")!="none")return J(X);var L=X.style,x=L.display,Q=L.visibility,K=L.position;L.visibility="hidden";L.position="absolute";L.display="inline";X=J(X);L.display=x;L.position=K;L.visibility=Q;return X}; UCR=function(X){var J=X.offsetWidth,L=X.offsetHeight,x=g.g0&&!J&&!L;return(J===void 0||x)&&X.getBoundingClientRect?(X=kD(X),new g.B_(X.right-X.left,X.bottom-X.top)):new g.B_(J,L)}; g.LQ=function(X,J){X.style.display=J?"":"none"}; xI=function(X){return X?X.passive&&mCS()?X:X.capture||!1:!1}; iS=function(X,J,L,x){return typeof X.addEventListener==="function"?(X.addEventListener(J,L,xI(x)),!0):!1}; Q4=function(X){if(X.prerendering)return 3;var J;return(J={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[X.visibilityState||X.webkitVisibilityState||X.mozVisibilityState||""])!=null?J:0}; k0P=function(){}; I3=function(X){X.SyI=!0;return X}; ZdI=function(){return(GU||fJ)&&eJ?eJ.mobile:!gR()&&(lB("iPod")||lB("iPhone")||lB("Android")||lB("IEMobile"))}; gR=function(){return(GU||fJ)&&eJ?!eJ.mobile&&(lB("iPad")||lB("Android")||lB("Silk")):lB("iPad")||lB("Android")&&!lB("Mobile")||lB("Silk")}; Dx=function(X){try{return!!X&&X.location.href!=null&&aH8(X,"foo")}catch(J){return!1}}; $I=function(X,J){if(X)for(var L in X)Object.prototype.hasOwnProperty.call(X,L)&&J(X[L],L,X)}; Xcm=function(){var X=[];$I(ASv,function(J){X.push(J)}); return X}; JnZ=function(X){var J,L;return(L=(J=/https?:\/\/[^\/]+/.exec(X))==null?void 0:J[0])!=null?L:""}; iJz=function(){var X=LRe("IFRAME"),J={};g.mF(xxP(),function(L){X.sandbox&&X.sandbox.supports&&X.sandbox.supports(L)&&(J[L]=!0)}); return J}; LRe=function(X,J){J=J===void 0?document:J;return J.createElement(String(X).toLowerCase())}; QSv=function(X){for(var J=X;X&&X!=X.parent;)X=X.parent,Dx(X)&&(J=X);return J}; gSA=function(X){X=X||CQ();for(var J=new KRz(g.Ao.location.href,!1),L=null,x=X.length-1,Q=x;Q>=0;--Q){var K=X[Q];!L&&q18.test(K.url)&&(L=K);if(K.url&&!K.L){J=K;break}}Q=null;K=X.length&&X[x].url;J.depth!==0&&K&&(Q=X[x]);return new IRO(J,Q,L)}; CQ=function(){var X=g.Ao,J=[],L=null;do{var x=X;if(Dx(x)){var Q=x.location.href;L=x.document&&x.document.referrer||null}else Q=L,L=null;J.push(new KRz(Q||""));try{X=x.parent}catch(K){X=null}}while(X&&x!==X);x=0;for(X=J.length-1;x<=X;++x)J[x].depth=X-x;x=g.Ao;if(x.location&&x.location.ancestorOrigins&&x.location.ancestorOrigins.length===J.length-1)for(X=1;XJ&&(J=L.length);return 3997-J-X.N.length-1}; V4=function(X,J){this.L=X;this.depth=J}; MJS=function(){function X(D,C){return D==null?C:D} var J=CQ(),L=Math.max(J.length-1,0),x=gSA(J);J=x.L;var Q=x.K,K=x.N,q=[];K&&q.push(new V4([K.url,K.L?2:0],X(K.depth,1)));Q&&Q!=K&&q.push(new V4([Q.url,2],0));J.url&&J!=K&&q.push(new V4([J.url,0],X(J.depth,L)));x=g.H5(q,function(D,C){return q.slice(0,q.length-C)}); !J.url||(K||Q)&&J!=K||(Q=JnZ(J.url))&&x.push([new V4([Q,1],X(J.depth,L))]);x.push([]);return g.H5(x,function(D){return CBZ(L,D)})}; CBZ=function(X,J){g.Ot(J,function(Q){return Q.depth>=0}); var L=a3(J,function(Q,K){return Math.max(Q,K.depth)},-1),x=Eeo(L+2); x[0]=X;g.mF(J,function(Q){return x[Q.depth+1]=Q.L}); return x}; ynI=function(){var X=X===void 0?MJS():X;return X.map(function(J){return nQ(J)})}; nSI=function(X){var J=!1;J=J===void 0?!1:J;YD.google_image_requests||(YD.google_image_requests=[]);var L=LRe("IMG",YD.document);J&&(L.attributionSrc="");L.src=X;YD.google_image_requests.push(L)}; wR=function(X){var J="g5";if(X.g5&&X.hasOwnProperty(J))return X.g5;var L=new X;X.g5=L;X.hasOwnProperty(J);return L}; tB=function(){this.K=new k0P;this.L=cB()?new E9:new PB}; VJS=function(){dR();var X=YD.document;return!!(X&&X.body&&X.body.getBoundingClientRect&&typeof YD.setInterval==="function"&&typeof YD.clearInterval==="function"&&typeof YD.setTimeout==="function"&&typeof YD.clearTimeout==="function")}; HJW=function(){dR();return ynI()}; OJe=function(){}; dR=function(){var X=wR(OJe);if(!X.L){if(!YD)throw Error("Context has not been set and window is undefined.");X.L=wR(tB)}return X.L}; uS=function(){throw Error("Invalid UTF8");}; aRZ=function(X,J){J=String.fromCharCode.apply(null,J);return X==null?J:X+J}; uXm=function(X){var J=!1;J=J===void 0?!1:J;if(wcz){if(J&&(tJZ?!X.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(X)))throw Error("Found an unpaired surrogate");X=(dxS||(dxS=new TextEncoder)).encode(X)}else{for(var L=0,x=new Uint8Array(3*X.length),Q=0;Q>6|192;else{if(K>=55296&&K<=57343){if(K<=56319&&Q=56320&&q<=57343){K=(K-55296)*1024+ q-56320+65536;x[L++]=K>>18|240;x[L++]=K>>12&63|128;x[L++]=K>>6&63|128;x[L++]=K&63|128;continue}else Q--}if(J)throw Error("Found an unpaired surrogate");K=65533}x[L++]=K>>12|224;x[L++]=K>>6&63|128}x[L++]=K&63|128}}X=L===x.length?x:x.subarray(0,L)}return X}; o3=function(X){g.Ao.setTimeout(function(){throw X;},0)}; oSY=function(X){return Array.prototype.map.call(X,function(J){J=J.toString(16);return J.length>1?J:"0"+J}).join("")}; bJP=function(X){for(var J=[],L=0;L>6|192:((Q&64512)==55296&&x+1>18|240,J[L++]=Q>>12&63|128):J[L++]=Q>>12|224,J[L++]=Q>>6&63|128),J[L++]=Q&63|128)}return J}; g.S3=function(X,J){J===void 0&&(J=0);S1m();J=PBZ[J];for(var L=Array(Math.floor(X.length/3)),x=J[64]||"",Q=0,K=0;Q>2];q=J[(q&3)<<4|D>>4];D=J[(D&15)<<2|C>>6];C=J[C&63];L[K++]=""+M+q+D+C}M=0;C=x;switch(X.length-Q){case 2:M=X[Q+1],C=J[(M&15)<<2]||x;case 1:X=X[Q],L[K]=""+J[X>>2]+J[(X&3)<<4|M>>4]+C+x}return L.join("")}; g.P5=function(X,J){if(cne&&!J)X=g.Ao.btoa(X);else{for(var L=[],x=0,Q=0;Q255&&(L[x++]=K&255,K>>=8);L[x++]=K}X=g.S3(L,J)}return X}; Y18=function(X){var J=[];ESP(X,function(L){J.push(L)}); return J}; c5=function(X){var J=X.length,L=J*3/4;L%3?L=Math.floor(L):g.hn("=.",X[J-1])&&(L=g.hn("=.",X[J-2])?L-2:L-1);var x=new Uint8Array(L),Q=0;ESP(X,function(K){x[Q++]=K}); return Q!==L?x.subarray(0,Q):x}; ESP=function(X,J){function L(C){for(;x>4);q!=64&&(J(K<<4&240|q>>2),D!=64&&J(q<<6&192|D))}}; S1m=function(){if(!Et){Et={};for(var X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),J=["+/=","+/","-_=","-_.","-_"],L=0;L<5;L++){var x=X.concat(J[L].split(""));PBZ[L]=x;for(var Q=0;Q=J||(x[X]=L+1,X=Error(),idR(X,"incident"),o3(X))}}; j3=function(X,J,L){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(L===void 0?0:L)&&Symbol.for&&X?Symbol.for(X):X!=null?Symbol(X):Symbol():J}; fQ=function(X,J){Tt||Gt in X||fRe(X,eDm);X[Gt]|=J}; e3=function(X,J){Tt||Gt in X||fRe(X,eDm);X[Gt]=J}; F9=function(){return typeof BigInt==="function"}; R3=function(X,J){return J===void 0?X.L!==lS&&!!(2&(X.rI[Gt]|0)):!!(2&J)&&X.L!==lS}; FRS=function(X,J){if(X!=null)if(typeof X==="string")X=X?new YI(X,hB):zt();else if(X.constructor!==YI)if(T6O&&X!=null&&X instanceof Uint8Array)X=X.length?new YI(new Uint8Array(X),hB):zt();else{if(!J)throw Error();X=void 0}return X}; B5=function(X,J){if(typeof J!=="number"||J<0||J>=X.length)throw Error();}; lRz=function(X,J,L){var x=J&128?0:-1,Q=X.length,K;if(K=!!Q)K=X[Q-1],K=K!=null&&typeof K==="object"&&K.constructor===Object;var q=Q+(K?-1:0);for(J=J&128?1:0;JJ.length)return!1;if(X.lengthQ)return!1;if(x>>0;Zx=J;Ja=(X-J)/4294967296>>>0}; Q9=function(X){if(X<0){LM(0-X);var J=g.d(xn(Zx,Ja));X=J.next().value;J=J.next().value;Zx=X>>>0;Ja=J>>>0}else LM(X)}; qO=function(X,J){var L=J*4294967296+(X>>>0);return Number.isSafeInteger(L)?L:KM(X,J)}; UxP=function(X,J){var L=J&2147483648;L&&(X=~X+1>>>0,J=~J>>>0,X==0&&(J=J+1>>>0));X=qO(X,J);return typeof X==="number"?L?-X:X:L?"-"+X:X}; KM=function(X,J){J>>>=0;X>>>=0;if(J<=2097151)var L=""+(4294967296*J+X);else F9()?L=""+(BigInt(J)<>>24|J<<8)&16777215,J=J>>16&65535,X=(X&16777215)+L*6777216+J*6710656,L+=J*8147497,J*=2,X>=1E7&&(L+=X/1E7>>>0,X%=1E7),L>=1E7&&(J+=L/1E7>>>0,L%=1E7),L=J+mxP(L)+mxP(X));return L}; mxP=function(X){X=String(X);return"0000000".slice(X.length)+X}; kUo=function(){var X=Zx,J=Ja;J&2147483648?F9()?X=""+(BigInt(J|0)<>>0)):(J=g.d(xn(X,J)),X=J.next().value,J=J.next().value,X="-"+KM(X,J)):X=KM(X,J);return X}; Iu=function(X){if(X.length<16)Q9(Number(X));else if(F9())X=BigInt(X),Zx=Number(X&BigInt(4294967295))>>>0,Ja=Number(X>>BigInt(32)&BigInt(4294967295));else{var J=+(X[0]==="-");Ja=Zx=0;for(var L=X.length,x=0+J,Q=(L-J)%6+J;Q<=L;x=Q,Q+=6)x=Number(X.slice(x,Q)),Ja*=1E6,Zx=Zx*1E6+x,Zx>=4294967296&&(Ja+=Math.trunc(Zx/4294967296),Ja>>>=0,Zx>>>=0);J&&(J=g.d(xn(Zx,Ja)),X=J.next().value,J=J.next().value,Zx=X,Ja=J)}}; xn=function(X,J){J=~J;X?X=~X+1:J+=1;return[X,J]}; gz=function(X){return Array.prototype.slice.call(X)}; De=function(X){if(X!=null&&typeof X!=="number")throw Error("Value of float/double field must be a number, found "+typeof X+": "+X);return X}; ZJS=function(X){return X.displayName||X.name||"unknown type name"}; $n=function(X){if(X!=null&&typeof X!=="boolean")throw Error("Expected boolean but got "+yoR(X)+": "+X);return X}; MO=function(X){switch(typeof X){case "bigint":return!0;case "number":return CM(X);case "string":return AnP.test(X);default:return!1}}; X_Z=function(X){if(typeof X!=="number")throw rR("int32");if(!CM(X))throw rR("int32");return X|0}; y9=function(X){return X==null?X:X_Z(X)}; nM=function(X){if(X==null)return X;if(typeof X==="string"&&X)X=+X;else if(typeof X!=="number")return;return CM(X)?X|0:void 0}; V9=function(X){if(X==null)return X;if(typeof X==="string"&&X)X=+X;else if(typeof X!=="number")return;return CM(X)?X>>>0:void 0}; xKO=function(X){var J=0;J=J===void 0?0:J;if(!MO(X))throw rR("int64");var L=typeof X;switch(J){case 512:switch(L){case "string":return Ht(X);case "bigint":return String(OY(64,X));default:return au(X)}case 1024:switch(L){case "string":return JHI(X);case "bigint":return kI(OY(64,X));default:return LWe(X)}case 0:switch(L){case "string":return Ht(X);case "bigint":return kI(OY(64,X));default:return wz(X)}default:return $0(J,"Unknown format requested type for int64")}}; ut=function(X){return X==null?X:xKO(X)}; iWZ=function(X){if(X[0]==="-")return!1;var J=X.length;return J<20?!0:J===20&&Number(X.substring(0,6))<184467}; QQo=function(X){var J=X.length;return X[0]==="-"?J<20?!0:J===20&&Number(X.substring(0,7))>-922337:J<19?!0:J===19&&Number(X.substring(0,6))<922337}; KW8=function(X){if(X<0){Q9(X);var J=KM(Zx,Ja);X=Number(J);return ou(X)?X:J}J=String(X);if(iWZ(J))return J;Q9(X);return qO(Zx,Ja)}; qRI=function(X){if(QQo(X))return X;Iu(X);return kUo()}; wz=function(X){MO(X);X=bt(X);ou(X)||(Q9(X),X=UxP(Zx,Ja));return X}; au=function(X){MO(X);X=bt(X);if(ou(X))X=String(X);else{var J=String(X);QQo(J)?X=J:(Q9(X),X=kUo())}return X}; Ht=function(X){MO(X);var J=bt(Number(X));if(ou(J))return String(J);J=X.indexOf(".");J!==-1&&(X=X.substring(0,J));return qRI(X)}; JHI=function(X){var J=bt(Number(X));if(ou(J))return kI(J);J=X.indexOf(".");J!==-1&&(X=X.substring(0,J));return F9()?kI(OY(64,BigInt(X))):kI(qRI(X))}; LWe=function(X){return ou(X)?kI(wz(X)):kI(au(X))}; I3I=function(X){if(X==null)return X;var J=typeof X;if(J==="bigint")return String(OY(64,X));if(MO(X)){if(J==="string")return Ht(X);if(J==="number")return wz(X)}}; DKP=function(X){if(X==null)return X;var J=typeof X;if(J==="bigint")return String(g0Y(64,X));if(MO(X)){if(J==="string")return MO(X),J=bt(Number(X)),ou(J)&&J>=0?X=String(J):(J=X.indexOf("."),J!==-1&&(X=X.substring(0,J)),iWZ(X)||(Iu(X),X=KM(Zx,Ja))),X;if(J==="number")return MO(X),X=bt(X),X>=0&&ou(X)?X:KW8(X)}}; $Ke=function(X){if(X==null||typeof X=="string"||X instanceof YI)return X}; C$A=function(X){if(typeof X!=="string")throw Error();return X}; SB=function(X){if(X!=null&&typeof X!=="string")throw Error();return X}; Pt=function(X){return X==null||typeof X==="string"?X:void 0}; ct=function(X,J){if(!(X instanceof J))throw Error("Expected instanceof "+ZJS(J)+" but got "+(X&&ZJS(X.constructor)));return X}; MvZ=function(X,J,L){if(X!=null&&X[EY]===Yn)return X;if(Array.isArray(X)){var x=X[Gt]|0;L=x|L&32|L&2;L!==x&&e3(X,L);return new J(X)}}; ha=function(X){return X}; Wt=function(X){var J=Cd(zR);return J?X[J]:void 0}; pM=function(){}; rz=function(X,J){for(var L in X)!isNaN(L)&&J(X,+L,X[L])}; yHI=function(X){var J=new pM;rz(X,function(L,x,Q){J[x]=gz(Q)}); J.jg=X.jg;return J}; VvR=function(X,J){J<100||v5(n0v,1)}; jB=function(X,J,L,x){var Q=x!==void 0;x=!!x;var K=Cd(zR),q;!Q&&Tt&&K&&(q=X[K])&&rz(q,VvR);K=[];var D=X.length;q=4294967295;var C=!1,M=!!(J&64),y=M?J&128?0:-1:void 0;if(!(J&1)){var n=D&&X[D-1];n!=null&&typeof n==="object"&&n.constructor===Object?(D--,q=D):n=void 0;if(M&&!(J&128)&&!Q){C=!0;var V;q=((V=vt)!=null?V:ha)(q-y,y,X,n)+y}}J=void 0;for(V=0;V=q){var O=V-y,u=void 0;((u=J)!=null?u:J={})[O]=H}else K[V]=H}if(n)for(var S in n)D=n[S],D!=null&& (D=L(D,x))!=null&&(V=+S,H=void 0,M&&!Number.isNaN(V)&&(H=V+y)0?void 0:X===0?tvo||(tvo=[0,void 0]):[-X,void 0];case "string":return[0,X];case "object":return X}}; Ru=function(X,J,L){return X=lt(X,J[0],J[1],L?1:2)}; lt=function(X,J,L,x){x=x===void 0?0:x;if(X==null){var Q=32;L?(X=[L],Q|=128):X=[];J&&(Q=Q&-8380417|(J&1023)<<13)}else{if(!Array.isArray(X))throw Error("narr");Q=X[Gt]|0;2048&Q&&!(2&Q)&&ucz();if(Q&256)throw Error("farr");if(Q&64)return x!==0||Q&2048||e3(X,Q|2048),X;if(L&&(Q|=128,L!==X[0]))throw Error("mid");a:{L=X;Q|=64;var K=L.length;if(K){var q=K-1,D=L[q];if(D!=null&&typeof D==="object"&&D.constructor===Object){J=Q&128?0:-1;q-=J;if(q>=1024)throw Error("pvtlmt");for(var C in D)K=+C,K1024)throw Error("spvt");Q=Q&-8380417|(C&1023)<<13}}}Q|=64;x===0&&(Q|=2048);e3(X,Q);return X}; ucz=function(){v5(o0o,5)}; bWW=function(X,J){if(typeof X!=="object")return X;if(Array.isArray(X)){var L=X[Gt]|0;X.length===0&&L&1?X=void 0:L&2||(!J||4096&L||16&L?X=Bt(X,L,!1,J&&!(L&16)):(fQ(X,34),L&4&&Object.freeze(X)));return X}if(X!=null&&X[EY]===Yn)return J=X.rI,L=J[Gt]|0,R3(X,L)?X:sY(X,J,L)?NO(X,J):Bt(J,L);if(X instanceof YI)return X}; NO=function(X,J,L){X=new X.constructor(J);L&&(X.L=lS);X.K=lS;return X}; Bt=function(X,J,L,x){x!=null||(x=!!(34&J));X=jB(X,J,bWW,x);x=32;L&&(x|=2);J=J&8380609|x;e3(X,J);return X}; SRR=function(X){var J=X.rI,L=J[Gt]|0;return R3(X,L)?sY(X,J,L)?NO(X,J,!0):new X.constructor(Bt(J,L,!1)):X}; UY=function(X){if(X.L!==lS)return!1;var J=X.rI;J=Bt(J,J[Gt]|0);fQ(J,2048);X.rI=J;X.L=void 0;X.K=void 0;return!0}; mf=function(X){if(!UY(X)&&R3(X,X.rI[Gt]|0))throw Error();}; kn=function(X,J){J===void 0&&(J=X[Gt]|0);J&32&&!(J&4096)&&e3(X,J|4096)}; sY=function(X,J,L){return L&2?!0:L&32&&!(L&4096)?(e3(J,L|2),X.L=lS,!0):!1}; Aa=function(X,J,L,x,Q){Object.isExtensible(X);J=Ze(X.rI,J,L,Q);if(J!==null||x&&X.K!==lS)return J}; Ze=function(X,J,L,x){if(J===-1)return null;var Q=J+(L?0:-1),K=X.length-1;if(!(K<1+(L?0:-1))){if(Q>=K){var q=X[K];if(q!=null&&typeof q==="object"&&q.constructor===Object){L=q[J];var D=!0}else if(Q===K)L=q;else return}else L=X[Q];if(x&&L!=null){x=x(L);if(x==null)return x;if(!Object.is(x,L))return D?q[J]=x:X[Q]=x,x}return L}}; JK=function(X,J,L,x){mf(X);var Q=X.rI;Xj(Q,Q[Gt]|0,J,L,x);return X}; Xj=function(X,J,L,x,Q){var K=L+(Q?0:-1),q=X.length-1;if(q>=1+(Q?0:-1)&&K>=q){var D=X[q];if(D!=null&&typeof D==="object"&&D.constructor===Object)return D[L]=x,J}if(K<=q)return X[K]=x,J;if(x!==void 0){var C;q=((C=J)!=null?C:J=X[Gt]|0)>>13&1023||536870912;L>=q?x!=null&&(K={},X[q+(Q?0:-1)]=(K[L]=x,K)):X[K]=x}return J}; KH=function(X,J,L,x,Q){var K=X.rI,q=K[Gt]|0;x=R3(X,q)?1:x;Q=!!Q||x===3;x===2&&UY(X)&&(K=X.rI,q=K[Gt]|0);X=LH(K,J);var D=X===xc?7:X[Gt]|0,C=ih(D,q);var M=4&C?!1:!0;if(M){4&C&&(X=gz(X),D=0,C=Qg(C,q),q=Xj(K,q,J,X));for(var y=0,n=0;y "+X)}; GB=function(X,J,L){this.buffer=X;if(L&&!J)throw Error();this.L=J}; fH=function(X,J){if(typeof X==="string")return new GB(rnA(X),J);if(Array.isArray(X))return new GB(new Uint8Array(X),J);if(X.constructor===Uint8Array)return new GB(X,!1);if(X.constructor===ArrayBuffer)return X=new Uint8Array(X),new GB(X,!1);if(X.constructor===YI)return J=W5(X)||new Uint8Array(0),new GB(J,!0,X);if(X instanceof Uint8Array)return X=X.constructor===Uint8Array?X:new Uint8Array(X.buffer,X.byteOffset,X.byteLength),new GB(X,!1);throw Error();}; ep=function(X,J,L,x){this.K=null;this.j=!1;this.L=this.N=this.T=0;this.init(X,J,L,x)}; lh=function(X){var J=0,L=0,x=0,Q=X.K,K=X.L;do{var q=Q[K++];J|=(q&127)<32&&(L|=(q&127)>>4);for(x=3;x<32&&q&128;x+=7)q=Q[K++],L|=(q&127)<>>0,L>>>0);throw TB();}; Fj=function(X,J){X.L=J;if(J>X.N)throw TZP(X.N,J);}; R6=function(X){var J=X.K,L=X.L,x=J[L++],Q=x&127;if(x&128&&(x=J[L++],Q|=(x&127)<<7,x&128&&(x=J[L++],Q|=(x&127)<<14,x&128&&(x=J[L++],Q|=(x&127)<<21,x&128&&(x=J[L++],Q|=x<<28,x&128&&J[L++]&128&&J[L++]&128&&J[L++]&128&&J[L++]&128&&J[L++]&128)))))throw TB();Fj(X,L);return Q}; BT=function(X){var J=X.K,L=X.L,x=J[L+0],Q=J[L+1],K=J[L+2];J=J[L+3];Fj(X,X.L+4);return(x<<0|Q<<8|K<<16|J<<24)>>>0}; sE=function(X){var J=BT(X);X=BT(X);return qO(J,X)}; Nw=function(X){var J=BT(X),L=BT(X);X=(L>>31)*2+1;var x=L>>>20&2047;J=4294967296*(L&1048575)+J;return x==2047?J?NaN:X*Infinity:x==0?X*4.9E-324*J:X*Math.pow(2,x-1075)*(J+4503599627370496)}; UE=function(X){for(var J=0,L=X.L,x=L+10,Q=X.K;LX.N)throw TZP(J,X.N-L);X.L=x;return L}; ewR=function(X,J){if(J==0)return zt();var L=GuW(X,J);X.UW&&X.j?L=X.K.subarray(L,L+J):(X=X.K,J=L+J,L=L===J?new Uint8Array(0):f3A?X.slice(L,J):new Uint8Array(X.subarray(L,J)));return L.length==0?zt():new YI(L,hB)}; kc=function(X,J,L,x){if(md.length){var Q=md.pop();Q.init(X,J,L,x);X=Q}else X=new ep(X,J,L,x);this.L=X;this.N=this.L.L;this.K=this.T=-1;FWW(this,x)}; FWW=function(X,J){J=J===void 0?{}:J;X.wR=J.wR===void 0?!1:J.wR}; l3e=function(X,J,L,x){if(ZD.length){var Q=ZD.pop();FWW(Q,x);Q.L.init(X,J,L,x);return Q}return new kc(X,J,L,x)}; RwS=function(X){var J=X.L;if(J.L==J.N)return!1;X.N=X.L.L;var L=R6(X.L)>>>0;J=L>>>3;L&=7;if(!(L>=0&&L<=5))throw jQm(L,X.N);if(J<1)throw Error("Invalid field number: "+J+" (at position "+X.N+")");X.T=J;X.K=L;return!0}; AK=function(X){switch(X.K){case 0:X.K!=0?AK(X):UE(X.L);break;case 1:X=X.L;Fj(X,X.L+8);break;case 2:if(X.K!=2)AK(X);else{var J=R6(X.L)>>>0;X=X.L;Fj(X,X.L+J)}break;case 5:X=X.L;Fj(X,X.L+4);break;case 3:J=X.T;do{if(!RwS(X))throw Error("Unmatched start-group tag: stream EOF");if(X.K==4){if(X.T!=J)throw Error("Unmatched end-group tag");break}AK(X)}while(1);break;default:throw jQm(X.K,X.N);}}; Xd=function(X,J,L){var x=X.L.N,Q=R6(X.L)>>>0,K=X.L.L+Q,q=K-x;q<=0&&(X.L.N=K,L(J,X,void 0,void 0,void 0),q=K-X.L.L);if(q)throw Error("Message parsing ended unexpectedly. Expected to read "+(Q+" bytes, instead read "+(Q-q)+" bytes, either the data ended unexpectedly or the message misreported its own length"));X.L.L=K;X.L.N=x}; Ck=function(X){var J=R6(X.L)>>>0;X=X.L;var L=GuW(X,J);X=X.K;if(BZY){var x=X,Q;(Q=J2)||(Q=J2=new TextDecoder("utf-8",{fatal:!0}));J=L+J;x=L===0&&J===x.length?x:x.subarray(L,J);try{var K=Q.decode(x)}catch(M){if($_===void 0){try{Q.decode(new Uint8Array([128]))}catch(y){}try{Q.decode(new Uint8Array([97])),$_=!0}catch(y){$_=!1}}!$_&&(J2=void 0);throw M;}}else{K=L;J=K+J;L=[];for(var q=null,D,C;K=J?uS():(C=X[K++],D<194||(C&192)!==128?(K--,uS()):L.push((D&31)<<6|C&63)): D<240?K>=J-1?uS():(C=X[K++],(C&192)!==128||D===224&&C<160||D===237&&C>=160||((Q=X[K++])&192)!==128?(K--,uS()):L.push((D&15)<<12|(C&63)<<6|Q&63)):D<=244?K>=J-2?uS():(C=X[K++],(C&192)!==128||(D<<28)+(C-144)>>30!==0||((Q=X[K++])&192)!==128||((x=X[K++])&192)!==128?(K--,uS()):(D=(D&7)<<18|(C&63)<<12|(Q&63)<<6|x&63,D-=65536,L.push((D>>10&1023)+55296,(D&1023)+56320))):uS(),L.length>=8192&&(q=aRZ(q,L),L.length=0);K=aRZ(q,L)}return K}; sQm=function(X){var J=R6(X.L)>>>0;return ewR(X.L,J)}; ME=function(X,J){this.K=X>>>0;this.L=J>>>0}; UKv=function(X){if(!X)return NZo||(NZo=new ME(0,0));if(!/^\d+$/.test(X))return null;Iu(X);return new ME(Zx,Ja)}; y_=function(X,J){this.K=X>>>0;this.L=J>>>0}; kuv=function(X){if(!X)return mKm||(mKm=new y_(0,0));if(!/^-?\d+$/.test(X))return null;Iu(X);return new y_(Zx,Ja)}; nk=function(){this.L=[]}; V_=function(X,J,L){for(;L>0||J>127;)X.L.push(J&127|128),J=(J>>>7|L<<25)>>>0,L>>>=7;X.L.push(J)}; Hs=function(X,J){for(;J>127;)X.L.push(J&127|128),J>>>=7;X.L.push(J)}; ZWZ=function(X,J){if(J>=0)Hs(X,J);else{for(var L=0;L<9;L++)X.L.push(J&127|128),J>>=7;X.L.push(1)}}; Od=function(X,J){X.L.push(J>>>0&255);X.L.push(J>>>8&255);X.L.push(J>>>16&255);X.L.push(J>>>24&255)}; AHZ=function(){this.N=[];this.K=0;this.L=new nk}; aa=function(X,J){J.length!==0&&(X.N.push(J),X.K+=J.length)}; XBA=function(X,J){wO(X,J,2);J=X.L.end();aa(X,J);J.push(X.K);return J}; JwS=function(X,J){var L=J.pop();for(L=X.K+X.L.length()-L;L>127;)J.push(L&127|128),L>>>=7,X.K++;J.push(L);X.K++}; wO=function(X,J,L){Hs(X.L,J*8+L)}; L9v=function(X,J,L){if(L!=null){switch(typeof L){case "string":UKv(L)}wO(X,J,1);switch(typeof L){case "number":X=X.L;LM(L);Od(X,Zx);Od(X,Ja);break;case "bigint":L=BigInt.asUintN(64,L);L=new ME(Number(L&BigInt(4294967295)),Number(L>>BigInt(32)));X=X.L;J=L.L;Od(X,L.K);Od(X,J);break;default:L=UKv(L),X=X.L,J=L.L,Od(X,L.K),Od(X,J)}}}; t2=function(X,J,L){wO(X,J,2);Hs(X.L,L.length);aa(X,X.L.end());aa(X,L)}; dO=function(){function X(){throw Error();} Object.setPrototypeOf(X,X.prototype);return X}; u9=function(X,J,L){this.rI=lt(X,J,L)}; xGP=function(X,J){if(J==null||J=="")return new X;J=JSON.parse(J);if(!Array.isArray(J))throw Error("dnarr");fQ(J,32);return new X(J)}; b9=function(X,J,L){this.iM=X;this.uM=J;X=Cd(oa);this.L=!!X&&L===X||!1}; S4=function(X,J){var L=L===void 0?oa:L;return new b9(X,J,L)}; QWm=function(X,J,L,x,Q){J=ijz(J,x);J!=null&&(L=XBA(X,L),Q(J,X),JwS(X,L))}; Ed=function(X,J,L,x){var Q=x[X];if(Q)return Q;Q={};Q.uK=x;Q.Wo=dKm(x[0]);var K=x[1],q=1;K&&K.constructor===Object&&(Q.extensions=K,K=x[++q],typeof K==="function"&&(Q.sB=!0,Ps!=null||(Ps=K),cs!=null||(cs=x[q+1]),K=x[q+=2]));for(var D={};K&&Array.isArray(K)&&K.length&&typeof K[0]==="number"&&K[0]>0;){for(var C=0;C>BigInt(32)));V_(X.L,L.K,L.L);break;default:L=kuv(J),V_(X.L,L.K,L.L)}}}; Zr=function(X,J,L){J=nM(J);J!=null&&J!=null&&(wO(X,L,0),ZWZ(X.L,J))}; Ojo=function(X,J,L){J=J==null||typeof J==="boolean"?J:typeof J==="number"?!!J:void 0;J!=null&&(wO(X,L,0),X.L.L.push(J?1:0))}; a8e=function(X,J,L){J=Pt(J);J!=null&&t2(X,L,uXm(J))}; wBv=function(X,J,L,x,Q){J=ijz(J,x);J!=null&&(L=XBA(X,L),Q(J,X),JwS(X,L))}; dGR=function(){var X=A2;this.L=t6z;this.isRepeated=0;this.K=a6;this.defaultValue=void 0;this.N=X.messageId!=null?Nz:void 0}; uwm=function(X){return function(){var J=new AHZ;ywZ(this.rI,J,Ed(vs,rO,j4,X));aa(J,J.L.end());for(var L=new Uint8Array(J.K),x=J.N,Q=x.length,K=0,q=0;q-1)return J.apply(null,g.nR(L));try{return X.L=X.N.L.now(),J.apply(null,g.nR(L))}finally{X.T+=X.N.L.now()-X.L,X.L=-1,X.K+=1}}}; bjI=function(X,J){this.K=X;this.N=J;this.L=new oDm(X)}; S9m=function(){this.L={}}; cwW=function(){var X=x4().flags,J=PFY;X=X.L[J.key];if(J.valueType==="proto"){try{var L=JSON.parse(X);if(Array.isArray(L))return L}catch(x){}return J.defaultValue}return typeof X===typeof J.defaultValue?X:J.defaultValue}; zge=function(){this.N=void 0;this.K=this.B=0;this.j=-1;this.QO=new uB;oS(this.QO,"mv",EDP).L=!0;oS(this.QO,"omid",cc);oS(this.QO,"epoh",cc).L=!0;oS(this.QO,"epph",cc).L=!0;oS(this.QO,"umt",cc).L=!0;oS(this.QO,"phel",cc).L=!0;oS(this.QO,"phell",cc).L=!0;oS(this.QO,"oseid",Y9Z).L=!0;var X=this.QO;X.L.sloi||(X.L.sloi=new tn);X.L.sloi.L=!0;oS(this.QO,"mm",iL);oS(this.QO,"ovms",hgZ).L=!0;oS(this.QO,"xdi",cc).L=!0;oS(this.QO,"amp",cc).L=!0;oS(this.QO,"prf",cc).L=!0;oS(this.QO,"gtx",cc).L=!0;oS(this.QO, "mvp_lv",cc).L=!0;oS(this.QO,"ssmol",cc).L=!0;oS(this.QO,"fmd",cc).L=!0;oS(this.QO,"gen204simple",cc);this.L=new bjI(dR(),this.QO);this.T=!1;this.flags=new S9m}; x4=function(){return wR(zge)}; W9W=function(X,J,L,x){if(Math.random()<(x||X.L))try{if(L instanceof Mz)var Q=L;else Q=new Mz,$I(L,function(q,D){var C=Q,M=C.T++;q=y4(D,q);C.L.push(M);C.K[M]=q}); var K=Q.Eo(X.K,"pagead2.googlesyndication.com","/pagead/gen_204?id="+J+"&");K&&(dR(),nSI(K))}catch(q){}}; pBv=function(X,J,L){L=L===void 0?{}:L;this.error=X;this.meta=L;this.context=J.context;this.msg=J.message||"";this.id=J.id||"jserror"}; rwz=function(){var X=X===void 0?g.Ao:X;return(X=X.performance)&&X.now&&X.timing?Math.floor(X.now()+X.timing.navigationStart):g.$u()}; vDO=function(){var X=X===void 0?g.Ao:X;return(X=X.performance)&&X.now?X.now():null}; jWZ=function(X,J,L){this.label=X;this.type=J;this.value=L;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; K3=function(){var X=window;this.events=[];this.K=X||g.Ao;var J=null;X&&(X.google_js_reporting_queue=X.google_js_reporting_queue||[],this.events=X.google_js_reporting_queue,J=X.google_measure_js_timing);this.L=Qs()||(J!=null?J:Math.random()<1)}; T08=function(X){X&&qJ&&Qs()&&(qJ.clearMarks("goog_"+X.label+"_"+X.uniqueId+"_start"),qJ.clearMarks("goog_"+X.label+"_"+X.uniqueId+"_end"))}; Ii=function(X,J,L,x,Q,K,q){var D="";X&&(D+=X+":");L&&(D+="//",J&&(D+=J+"@"),D+=L,x&&(D+=":"+x));Q&&(D+=Q);K&&(D+="?"+K);q&&(D+="#"+q);return D}; g.gA=function(X){return X.match(G1Z)}; f8z=function(X){return X?decodeURI(X):X}; g.Dk=function(X){return f8z(g.gA(X)[3]||null)}; $4=function(X){return f8z(g.gA(X)[5]||null)}; g.egO=function(X){X=g.gA(X);return Ii(X[1],X[2],X[3],X[4])}; C3=function(X){X=g.gA(X);return Ii(null,null,null,null,X[5],X[6],X[7])}; F98=function(X){var J=X.indexOf("#");return J<0?X:X.slice(0,J)}; MJ=function(X,J){if(X){X=X.split("&");for(var L=0;L=0){var K=X[L].substring(0,x);Q=X[L].substring(x+1)}else K=X[L];J(K,Q?c_(Q):"")}}}; ys=function(X,J){if(!J)return X;var L=X.indexOf("#");L<0&&(L=X.length);var x=X.indexOf("?");if(x<0||x>L){x=L;var Q=""}else Q=X.substring(x+1,L);X=[X.slice(0,x),Q,X.slice(L)];L=X[1];X[1]=J?L?L+"&"+J:J:L;return X[0]+(X[1]?"?"+X[1]:"")+X[2]}; n3=function(X,J,L){if(Array.isArray(J))for(var x=0;x=0&&JL)Q=L;x+=J.length+1;return c_(X.slice(x,Q!==-1?Q:0))}; dA=function(X,J){for(var L=X.search(wA),x=0,Q,K=[];(Q=ai(X,x,J,L))>=0;)K.push(X.substring(x,Q)),x=Math.min(X.indexOf("&",Q)+1||L,L);K.push(X.slice(x));return K.join("").replace(B0P,"$1")}; sWm=function(X,J,L){return OF(dA(X,J),J,L)}; N0Z=function(){var X=uL;this.L=bL;this.Ao="jserror";this.uw=!0;this.uD=null;this.K=this.Hg;this.bH=X===void 0?null:X}; UGz=function(X,J,L){var x=SG;return L3(x4().L.L,function(){try{if(x.bH&&x.bH.L){var Q=x.bH.start(X.toString(),3);var K=J();x.bH.end(Q)}else K=J()}catch(D){var q=x.uw;try{T08(Q),q=x.K(X,new Pw(cw(D)),void 0,L)}catch(C){x.Hg(217,C)}if(!q)throw D;}return K})()}; EF=function(X,J,L,x){return L3(x4().L.L,function(){var Q=g.fR.apply(0,arguments);return UGz(X,function(){return J.apply(L,Q)},x)})}; cw=function(X){var J=X.toString();X.name&&J.indexOf(X.name)==-1&&(J+=": "+X.name);X.message&&J.indexOf(X.message)==-1&&(J+=": "+X.message);if(X.stack)a:{X=X.stack;var L=J;try{X.indexOf(L)==-1&&(X=L+"\n"+X);for(var x;X!=x;)x=X,X=X.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");J=X.replace(/\n */g,"\n");break a}catch(Q){J=L;break a}J=void 0}return J}; Pw=function(X){pBv.call(this,Error(X),{message:X})}; mGW=function(){YD&&typeof YD.google_measure_js_timing!="undefined"&&(YD.google_measure_js_timing||uL.disable())}; k1o=function(X){SG.uD=function(J){g.mF(X,function(L){L(J)})}}; ZjY=function(X,J){return UGz(X,J)}; Y4=function(X,J){return EF(X,J)}; hV=function(X,J,L,x){SG.Hg(X,J,L,x)}; zF=function(){return Date.now()-Aw8}; X5Y=function(){var X=x4().N,J=Ww>=0?zF()-Ww:-1,L=p3?zF()-rA:-1,x=vw>=0?zF()-vw:-1;if(X==947190542)return 100;if(X==79463069)return 200;X=[2E3,4E3];var Q=[250,500,1E3];hV(637,Error(),.001);var K=J;L!=-1&&L1500&&x<4E3?500:q}; jG=function(X,J,L){var x=new vB(0,0,0,0);this.time=X;this.volume=null;this.N=J;this.L=x;this.K=L}; TF=function(X,J,L,x,Q,K,q,D){this.T=X;this.W=J;this.N=L;this.B=x;this.L=Q;this.j=K;this.K=q;this.S=D}; LQe=function(X){var J=X!==X.top,L=X.top===QSv(X),x=-1,Q=0;if(J&&L&&X.top.mraid){x=3;var K=X.top.mraid}else x=(K=X.mraid)?J?L?2:1:0:-1;K&&(K.IS_GMA_SDK||(Q=2),zmI(JBR,function(q){return typeof K[q]==="function"})||(Q=1)); return{lk:K,compatibility:Q,yOl:x}}; xzI=function(){var X=window.document;return X&&typeof X.elementFromPoint==="function"}; iQe=function(X,J,L){if(X&&J!==null&&J!=J.top){if(!J.top)return new g.B_(-12245933,-12245933);J=J.top}try{return(L===void 0?0:L)?(new g.B_(J.innerWidth,J.innerHeight)).round():pVm(J||window).round()}catch(x){return new g.B_(-12245933,-12245933)}}; GF=function(X,J,L){try{if(X){if(!J.top)return new vB(-12245933,-12245933,-12245933,-12245933);J=J.top}var x=iQe(X,J,L),Q=x.height,K=x.width;if(K===-12245933)return new vB(K,K,K,K);var q=Lj(J.document);var D=vum(q.L);var C=D.x,M=D.y;return new vB(M,C+K,M+Q,C)}catch(y){return new vB(-12245933,-12245933,-12245933,-12245933)}}; f3=function(X,J){J=Math.pow(10,J);return Math.floor(X*J)/J}; Q3O=function(X){return new vB(X.top,X.right,X.bottom,X.left)}; KQe=function(X){var J=X.top||0,L=X.left||0;return new vB(J,L+(X.width||0),J+(X.height||0),L)}; eG=function(X){return X!=null&&X>=0&&X<=1}; qtm=function(){var X=g.vc();return X?Fe("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(J){return zU(X,J)})||zU(X,"OMI/")&&!zU(X,"XiaoMi/")?!0:zU(X,"Presto")&&zU(X,"Linux")&&!zU(X,"X11")&&!zU(X,"Android")&&!zU(X,"Mobi"):!1}; Ixe=function(){this.N=!Dx(YD.top);this.isMobileDevice=gR()||ZdI();var X=CQ();this.domain=X.length>0&&X[X.length-1]!=null&&X[X.length-1].url!=null?g.Dk(X[X.length-1].url)||"":"";this.L=new vB(0,0,0,0);this.T=new g.B_(0,0);this.j=new g.B_(0,0);this.W=new vB(0,0,0,0);this.frameOffset=new g.l$(0,0);this.B=0;this.S=!1;this.K=!(!YD||!LQe(YD).lk);this.update(YD)}; gIe=function(X,J){J&&J.screen&&(X.T=new g.B_(J.screen.width,J.screen.height))}; DzO=function(X,J){a:{var L=X.L?new g.B_(j6(X.L),X.L.getHeight()):new g.B_(0,0);J=J===void 0?YD:J;J!==null&&J!=J.top&&(J=J.top);var x=0,Q=0;try{var K=J.document,q=K.body,D=K.documentElement;if(K.compatMode=="CSS1Compat"&&D.scrollHeight)x=D.scrollHeight!=L.height?D.scrollHeight:D.offsetHeight,Q=D.scrollWidth!=L.width?D.scrollWidth:D.offsetWidth;else{var C=D.scrollHeight,M=D.scrollWidth,y=D.offsetHeight,n=D.offsetWidth;D.clientHeight!=y&&(C=q.scrollHeight,M=q.scrollWidth,y=q.offsetHeight,n=q.offsetWidth); C>L.height?C>y?(x=C,Q=M):(x=y,Q=n):C0||X.S)return!0;X=dR().K.isVisible();var J=Q4(Ri)===0;return X||J}; lL=function(){return wR(Ixe)}; sF=function(X){this.N=X;this.K=0;this.L=null}; NJ=function(X,J,L){this.N=X;this.jC=L===void 0?"na":L;this.j=[];this.isInitialized=!1;this.T=new jG(-1,!0,this);this.L=this;this.S=J;this.Km=this.D=!1;this.gI="uk";this.FE=!1;this.B=!0}; UF=function(X,J){g.tS(X.j,J)||(X.j.push(J),J.tI(X.L),J.O7(X.T),J.IY()&&(X.D=!0))}; $ze=function(X){X=X.L;X.QR();X.wA();var J=lL();J.W=GF(!1,X.N,J.isMobileDevice);DzO(lL(),X.N);X.T.L=X.oz()}; CSP=function(X){X.D=X.j.length?Fe(X.j,function(J){return J.IY()}):!1}; M3v=function(X){var J=g.Yu(X.j);g.mF(J,function(L){L.O7(X.T)})}; mC=function(X){var J=g.Yu(X.j);g.mF(J,function(L){L.tI(X.L)}); X.L!=X||M3v(X)}; k4=function(X,J,L,x){this.element=X;this.L=new vB(0,0,0,0);this.N=null;this.B=new vB(0,0,0,0);this.K=J;this.QO=L;this.FE=x;this.Pl=!1;this.timestamp=-1;this.D=new TF(J.T,this.element,this.L,new vB(0,0,0,0),0,0,zF(),0);this.j=void 0}; yBP=function(X,J){return X.j?new vB(Math.max(J.top+X.j.top,J.top),Math.min(J.left+X.j.right,J.right),Math.min(J.top+X.j.bottom,J.bottom),Math.max(J.left+X.j.left,J.left)):J.clone()}; Zk=function(X){this.j=!1;this.L=X;this.T=function(){}}; nI8=function(X,J,L){this.N=L===void 0?0:L;this.K=X;this.L=J==null?"":J}; V3P=function(X){switch(Math.trunc(X.N)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; HQA=function(X,J){return X.NJ.N?!1:X.KJ.K?!1:typeof X.Ltypeof J.L?!1:X.L0?x[L]-x[L-1]:x[L]})}; $N=function(){this.K=new Q7;this.jC=this.vl=0;this.bB=new iG;this.aB=this.W=-1;this.O6=1E3;this.Cm=new Q7([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.gI=this.Pl=-1}; Cq=function(X,J){return bMI(X.K,J===void 0?!0:J)}; M3=function(X,J,L,x){var Q=Q===void 0?!1:Q;L=EF(x,L);iS(X,J,L,{capture:Q})}; nq=function(X,J){J=y7(J);return J===0?0:y7(X)/J}; y7=function(X){return Math.max(X.bottom-X.top,0)*Math.max(X.right-X.left,0)}; caR=function(X,J){if(!X||!J)return!1;for(var L=0;X!==null&&L++<100;){if(X===J)return!0;try{if(X=X.parentElement||X){var x=AH(X),Q=x&&D8(x),K=Q&&Q.frameElement;K&&(X=K)}}catch(q){break}}return!1}; Ene=function(X,J,L){if(!X||!J)return!1;J=G1(X.clone(),-J.left,-J.top);X=(J.left+J.right)/2;J=(J.top+J.bottom)/2;Dx(window.top)&&window.top&&window.top.document&&(window=window.top);if(!xzI())return!1;X=window.document.elementFromPoint(X,J);if(!X)return!1;J=(J=(J=AH(L))&&J.defaultView&&J.defaultView.frameElement)&&caR(J,X);var x=X===L;X=!x&&X&&d0(X,function(Q){return Q===L}); return!(J||x||X)}; YYI=function(X,J,L,x){return lL().N?!1:j6(X)<=0||X.getHeight()<=0?!0:L&&x?ZjY(208,function(){return Ene(X,J,L)}):!1}; V7=function(X,J,L){g.G.call(this);this.position=hAS.clone();this.zn=this.yC();this.Ye=-2;this.timeCreated=Date.now();this.Zm=-1;this.aY=J;this.yM=null;this.DJ=!1;this.Sr=null;this.opacity=-1;this.requestSource=L;this.Wkm=!1;this.Wg=function(){}; this.Mz=function(){}; this.ye=new fHm;this.ye.Fn=X;this.ye.L=X;this.Ae=!1;this.kx={Mu:null,G$:null};this.n2=!0;this.T1=null;this.Ke=this.jU=!1;x4().B++;this.uJ=this.PY();this.Fw=-1;this.I0=null;this.hasCompleted=this.Z6=!1;this.QO=new uB;fOe(this.QO);zAe(this);this.requestSource==1?bB(this.QO,"od",1):bB(this.QO,"od",0)}; zAe=function(X){X=X.ye.Fn;var J;if(J=X&&X.getAttribute)J=/-[a-z]/.test("googleAvInapp")?!1:WfZ&&X.dataset?"googleAvInapp"in X.dataset:X.hasAttribute?X.hasAttribute("data-"+ySY()):!!X.getAttribute("data-"+ySY());J&&(lL().K=!0)}; Hl=function(X,J){J!=X.Ke&&(X.Ke=J,X=lL(),J?X.B++:X.B>0&&X.B--)}; pte=function(X,J){if(X.I0){if(J.getName()===X.I0.getName())return;X.I0.dispose();X.I0=null}J=J.create(X.ye.L,X.QO,X.IY());if(J=J!=null&&J.observe()?J:null)X.I0=J}; ra8=function(X,J,L){if(!X.yM||X.aY==-1||J.K===-1||X.yM.K===-1)return 0;X=J.K-X.yM.K;return X>L?0:X}; vnm=function(X,J,L){if(X.I0){X.I0.aU();var x=X.I0.D,Q=x.T,K=Q.L;if(x.B!=null){var q=x.N;X.Sr=new g.l$(q.left-K.left,q.top-K.top)}K=X.Ee()?Math.max(x.L,x.j):x.L;q={};Q.volume!==null&&(q.volume=Q.volume);Q=X.BC(x);X.yM=x;X.Wl(K,J,L,!1,q,Q,x.S)}}; juZ=function(X){if(X.DJ&&X.T1){var J=SJ(X.QO,"od")==1,L=lL().L,x=X.T1,Q=X.I0?X.I0.getName():"ns",K=X.Sr,q=new g.B_(j6(L),L.getHeight());L=X.Ee();X={T2I:Q,Sr:K,axl:q,Ee:L,Yi:X.uJ.Yi,RgC:J};if(J=x.K){J.aU();Q=J.D;K=Q.T.L;var D=q=null;Q.B!=null&&K&&(q=Q.N,q=new g.l$(q.left-K.left,q.top-K.top),D=new g.B_(K.right-K.left,K.bottom-K.top));Q=L?Math.max(Q.L,Q.j):Q.L;L={T2I:J.getName(),Sr:q,axl:D,Ee:L,RgC:!1,Yi:Q}}else L=null;L&&dOP(x,X,L)}}; TzI=function(X,J,L){J&&(X.Wg=J);L&&(X.Mz=L)}; g.ON=function(){}; g.aM=function(X){return{value:X,done:!1}}; GRz=function(){this.T=this.L=this.N=this.K=this.j=0}; fem=function(X){var J={};var L=g.$u()-X.j;J=(J.ptlt=L,J);(L=X.K)&&(J.pnk=L);(L=X.N)&&(J.pnc=L);(L=X.T)&&(J.pnmm=L);(X=X.L)&&(J.pns=X);return J}; eAW=function(){AS.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; uG=function(X){return eG(X.volume)&&X.volume>0}; oM=function(X,J,L,x){L=L===void 0?!0:L;x=x===void 0?function(){return!0}:x; return function(Q){var K=Q[X];if(Array.isArray(K)&&x(Q))return Ffz(K,J,L)}}; bG=function(X,J){return function(L){return J(L)?L[X]:void 0}}; leZ=function(X){return function(J){for(var L=0;L0?K[Q-1]+1:0,x+1).reduce(function(q,D){return q+D},0)})}; RAZ=function(){this.K=this.L=""}; Bzo=function(){}; Pl=function(X,J){var L={};if(X!==void 0)if(J!=null)for(var x in J){var Q=J[x];x in Object.prototype||Q!=null&&(L[x]=typeof Q==="function"?Q(X):X[Q])}else g.O1(L,X);return Jm(Xl(new AV,L))}; suz=function(){var X={};this.K=(X.vs=[1,0],X.vw=[0,1],X.am=[2,2],X.a=[4,4],X.f=[8,8],X.bm=[16,16],X.b=[32,32],X.avw=[0,64],X.avs=[64,0],X.pv=[256,256],X.gdr=[0,512],X.p=[0,1024],X.r=[0,2048],X.m=[0,4096],X.um=[0,8192],X.ef=[0,16384],X.s=[0,32768],X.pmx=[0,16777216],X.mut=[33554432,33554432],X.umutb=[67108864,67108864],X.tvoff=[134217728,134217728],X);this.L={};for(var J in this.K)this.K[J][1]>0&&(this.L[J]=0);this.N=0}; cl=function(X,J){var L=X.K[J],x=L[1];X.N+=L[0];x>0&&X.L[J]==0&&(X.L[J]=1)}; NzI=function(X){var J=g.g6(X.K),L=0,x;for(x in X.L)g.tS(J,x)&&X.L[x]==1&&(L+=X.K[x][1],X.L[x]=2);return L}; UOo=function(X){var J=0,L;for(L in X.L){var x=X.L[L];if(x==1||x==2)J+=X.K[L][1]}return J}; EN=function(){this.L=this.K=0}; YN=function(){$N.call(this);this.N=new iG;this.Hl=this.D=this.FE=0;this.S=-1;this.A0=new iG;this.j=new iG;this.L=new Q7;this.B=this.T=-1;this.Km=new iG;this.O6=2E3;this.Bl=new EN;this.J0=new EN;this.SC=new EN}; hm=function(X,J,L){var x=X.Hl;p3||L||X.S==-1||(x+=J-X.S);return x}; mOR=function(){this.N=!1}; zv=function(X,J){this.N=!1;this.T=X;this.D=J;this.j=0}; Wl=function(X,J){zv.call(this,X,J);this.W=[]}; kRZ=function(){}; pq=function(){}; rF=function(X,J,L,x){k4.call(this,X,J,L,x)}; jP=function(X,J,L){k4.call(this,null,X,J,L);this.S=X.isActive();this.W=0}; Tv=function(X){return[X.top,X.left,X.bottom,X.right]}; Gv=function(X,J,L,x,Q,K){K=K===void 0?new pq:K;V7.call(this,J,L,x);this.ea=Q;this.gR=0;this.z_={};this.nW=new suz;this.Kl={};this.D3="";this.SC=null;this.Nx=!1;this.L=[];this.l3=K.K();this.B=K.N();this.T=null;this.N=-1;this.jC=this.D=void 0;this.aB=this.Km=0;this.gI=-1;this.O6=this.J0=!1;this.FE=this.S=this.K=this.mC=this.Lp=0;new Q7;this.Bl=this.Hl=0;this.bB=-1;this.EQ=0;this.W=g.z1;this.Pl=[this.yC()];this.H4=2;this.Er={};this.Er.pause="p";this.Er.resume="r";this.Er.skip="s";this.Er.mute="m";this.Er.unmute= "um";this.Er.exitfullscreen="ef";this.j=null;this.Cm=this.A0=!1;this.z6=Math.floor(Date.now()/1E3-1704067200);this.vl=0}; fq=function(X){X.hasCompleted=!0;X.EQ!=0&&(X.EQ=3)}; eP=function(X){return X===void 0?X:Number(X)?f3(X,3):0}; Fl=function(X,J){return X.Pl[J!=null&&JMath.max(1E4,X.N/3)?0:J);var L=X.W(X)||{};L=L.currentTime!==void 0?L.currentTime:X.Km;var x=L-X.Km,Q=0;x>=0?(X.aB+=J,X.Bl+=Math.max(J-x,0),Q=Math.min(x,X.aB)):X.Hl+=Math.abs(x);x!=0&&(X.aB=0);X.bB==-1&&x>0&&(X.bB=vw>=0?zF()-vw:-1);X.Km=L;return Q}; XTe=function(X,J){Fe(X.B,function(L){return L.T==J.T})||X.B.push(J)}; JKP=function(X){var J=IM(X.wZ().L,1);return lG(X,J)}; lG=function(X,J,L){return J>=15E3?!0:X.J0?(L===void 0?0:L)?!0:X.N>0?J>=X.N/2:X.gI>0?J>=X.gI:!1:!1}; Ldv=function(X){var J=f3(X.uJ.Yi,2),L=X.nW.N,x=X.uJ,Q=Fl(X),K=eP(Q.T),q=eP(Q.B),D=eP(x.volume),C=f3(Q.W,2),M=f3(Q.aB,2),y=f3(x.Yi,2),n=f3(Q.Pl,2),V=f3(Q.gI,2);x=f3(x.bv,2);var H=X.pw().clone().round();X=X.I0&&X.I0.N?(X.I0?X.I0.N:null).clone().round():null;Q=Cq(Q,!1);return{KXl:J,Cs:L,Vv:K,Tn:q,EU:D,Zy:C,f0:M,Yi:y,Bn:n,gm:V,bv:x,position:H,bf:X,qe:Q}}; iHo=function(X,J){xwe(X.L,J,function(){return{KXl:0,Cs:void 0,Vv:-1,Tn:-1,EU:-1,Zy:-1,f0:-1,Yi:-1,Bn:-1,gm:-1,bv:-1,position:void 0,bf:void 0,qe:[]}}); X.L[J]=Ldv(X)}; xwe=function(X,J,L){for(var x=X.length;x0?1:0;n.atos= Kq(M.L);n.ssb=Kq(M.Cm,!1);n.amtos=bMI(M.L,!1);n.uac=X.Lp;n.vpt=M.N.L;y=="nio"&&(n.nio=1,n.avms="nio");n.gmm="4";n.gdr=lG(X,M.N.L,!0)?1:0;n.efpf=X.H4;if(y=="gsv"||y=="nis")y=X.I0,y.W>0&&(n.nnut=y.W);n.tcm=ZMP(X);n.nmt=X.Hl;n.bt=X.Bl;n.pst=X.bB;n.vpaid=X.D;n.dur=X.N;n.vmtime=X.Km;n.is=X.nW.N;X.L.length>=1&&(n.i0=X.L[0].Cs,n.a0=[X.L[0].EU],n.c0=[X.L[0].Yi],n.ss0=[X.L[0].bv],y=X.L[0].position,K=X.L[0].bf,n.p0=y?Tv(y):void 0,y&&K&&!T1(K,y)&&(n.cp0=Tv(K)));X.L.length>=2&&(n.i1=X.L[1].Cs,n.a1=sN(X.L[1].Vv, X.L[1].EU,X.L[1].Tn),n.c1=sN(X.L[1].Zy,X.L[1].Yi,X.L[1].f0),n.ss1=sN(X.L[1].Bn,X.L[1].bv,X.L[1].gm),y=X.L[1].position,K=X.L[1].bf,n.p1=y?Tv(y):void 0,y&&K&&!T1(K,y)&&(n.cp1=Tv(K)),n.mtos1=X.L[1].qe);X.L.length>=3&&(n.i2=X.L[2].Cs,n.a2=sN(X.L[2].Vv,X.L[2].EU,X.L[2].Tn),n.c2=sN(X.L[2].Zy,X.L[2].Yi,X.L[2].f0),n.ss2=sN(X.L[2].Bn,X.L[2].bv,X.L[2].gm),y=X.L[2].position,K=X.L[2].bf,n.p2=y?Tv(y):void 0,y&&K&&!T1(K,y)&&(n.cp2=Tv(K)),n.mtos2=X.L[2].qe);X.L.length>=4&&(n.i3=X.L[3].Cs,n.a3=sN(X.L[3].Vv,X.L[3].EU, X.L[3].Tn),n.c3=sN(X.L[3].Zy,X.L[3].Yi,X.L[3].f0),n.ss3=sN(X.L[3].Bn,X.L[3].bv,X.L[3].gm),y=X.L[3].position,K=X.L[3].bf,n.p3=y?Tv(y):void 0,y&&K&&!T1(K,y)&&(n.cp3=Tv(K)),n.mtos3=X.L[3].qe);n.cs=UOo(X.nW);J&&(n.ic=NzI(X.nW),n.dvpt=M.N.K,n.dvs=Dq(M.K,.5),n.dfvs=Dq(M.K,1),n.davs=Dq(M.L,.5),n.dafvs=Dq(M.L,1),L&&(M.N.K=0,SYA(M.K),SYA(M.L)),X.cN()&&(n.dtos=M.FE,n.dav=M.D,n.dtoss=X.gR+1,L&&(M.FE=0,M.D=0,X.gR++)),n.dat=M.j.K,n.dft=M.Km.K,L&&(M.j.K=0,M.Km.K=0));n.ps=[D.j.width,D.j.height];n.bs=[j6(D.L),D.L.getHeight()]; n.scs=[D.T.width,D.T.height];n.dom=D.domain;X.mC&&(n.vds=X.mC);if(X.B.length>0||X.l3)J=g.Yu(X.B),X.l3&&J.push(X.l3),n.pings=g.H5(J,function(V){return V.toString()}); J=g.H5(g.SP(X.B,function(V){return V.B()}),function(V){return V.getId()}); bRA(J);n.ces=J;X.K&&(n.vmer=X.K);X.S&&(n.vmmk=X.S);X.FE&&(n.vmiec=X.FE);n.avms=X.I0?X.I0.getName():"ns";X.I0&&g.O1(n,X.I0.HB());x?(n.c=f3(X.uJ.Yi,2),n.ss=f3(X.uJ.bv,2)):n.tth=zF()-IDY;n.mc=f3(M.aB,2);n.nc=f3(M.W,2);n.mv=eP(M.B);n.nv=eP(M.T);n.lte=f3(X.Ye,2);x=Fl(X,Q);Cq(M);n.qmtos=Cq(x);n.qnc=f3(x.W,2);n.qmv=eP(x.B);n.qnv=eP(x.T);n.qas=x.T>0?1:0;n.qi=X.D3;n.avms||(n.avms="geo");n.psm=M.Bl.L;n.psv=M.Bl.getValue();n.psfv=M.J0.getValue();n.psa=M.SC.getValue();C=TIY(C.QO);C.length&&(n.veid=C);X.j&&g.O1(n, fem(X.j));n.avas=X.o4();n.vs=X.Sx();n.co=gcR(X);n.tm=M.vl;n.tu=M.jC;return n}; Q6Z=function(X,J){if(g.tS(Dw8,J))return!0;var L=X.z_[J];return L!==void 0?(X.z_[J]=!0,!L):!1}; gcR=function(X){var J=X.vl.toString(10).padStart(2,"0");J=""+X.z6+J;X.vl<99&&X.vl++;return J}; ChO=function(){this.L={};var X=D8();N3(this,X,document);var J=$wP();try{if("1"==J){for(var L=X.parent;L!=X.top;L=L.parent)N3(this,L,L.document);N3(this,X.top,X.top.document)}}catch(x){}}; $wP=function(){var X=document.documentElement;try{if(!Dx(D8().top))return"2";var J=[],L=D8(X.ownerDocument);for(X=L;X!=L.top;X=X.parent)if(X.frameElement)J.push(X.frameElement);else break;return J&&J.length!=0?"1":"0"}catch(x){return"2"}}; N3=function(X,J,L){M3(L,"mousedown",function(){return Mpz(X)},301); M3(J,"scroll",function(){return yKz(X)},302); M3(L,"touchmove",function(){return ncP(X)},303); M3(L,"mousemove",function(){return Vpz(X)},304); M3(L,"keydown",function(){return HHm(X)},305)}; Mpz=function(X){g.XX(X.L,function(J){J.N>1E5||++J.N})}; yKz=function(X){g.XX(X.L,function(J){J.L>1E5||++J.L})}; ncP=function(X){g.XX(X.L,function(J){J.L>1E5||++J.L})}; HHm=function(X){g.XX(X.L,function(J){J.K>1E5||++J.K})}; Vpz=function(X){g.XX(X.L,function(J){J.T>1E5||++J.T})}; OHA=function(){this.L=[];this.K=[]}; UN=function(X,J){return g.Ou(X.L,function(L){return L.D3==J})}; aD8=function(X,J){return J?g.Ou(X.L,function(L){return L.ye.Fn==J}):null}; wTv=function(X,J){return g.Ou(X.K,function(L){return L.MI()==2&&L.D3==J})}; kN=function(){var X=m7;return X.L.length==0?X.K:X.K.length==0?X.L:g.Eu(X.K,X.L)}; tpm=function(X,J){X=J.MI()==1?X.L:X.K;var L=HV(X,function(x){return x==J}); return L!=-1?(X.splice(L,1),J.I0&&J.I0.unobserve(),J.dispose(),!0):!1}; dwR=function(X){var J=m7;if(tpm(J,X)){switch(X.MI()){case 0:var L=function(){return null}; case 2:L=function(){return wTv(J,X.D3)}; break;case 1:L=function(){return UN(J,X.D3)}}for(var x=L();x;x=L())tpm(J,x)}}; ujv=function(X){var J=m7;X=g.SP(X,function(L){return!aD8(J,L.ye.Fn)}); J.L.push.apply(J.L,g.nR(X))}; oc8=function(X){var J=[];g.mF(X,function(L){Fe(m7.L,function(x){return x.ye.Fn===L.ye.Fn&&x.D3===L.D3})||(m7.L.push(L),J.push(L))})}; Zq=function(){this.L=this.K=null}; bHo=function(X,J){function L(x,Q){J(x,Q)} if(X.K==null)return!1;X.L=g.Ou(X.K,function(x){return x!=null&&x.vR()}); X.L&&(X.L.init(L)?$ze(X.L.L):J(X.L.L.Um(),X.L));return X.L!=null}; Am=function(X){X=SEA(X);Zk.call(this,X.length?X[X.length-1]:new NJ(YD,0));this.N=X;this.K=null}; SEA=function(X){if(!X.length)return[];X=(0,g.SP)(X,function(L){return L!=null&&L.nQ()}); for(var J=1;JL.time?J:L},X[0])}; Qq=function(X){X=X===void 0?YD:X;Zk.call(this,new NJ(X,2))}; Ku=function(){var X=YEP();NJ.call(this,YD.top,X,"geo")}; YEP=function(){x4();var X=lL();return X.N||X.K?0:2}; hre=function(){}; q_=function(){this.done=!1;this.L={Gz:0,WE:0,n4m:0,GO:0,X5:-1,xp:0,Wc:0,pD:0,PZE:0};this.j=null;this.B=!1;this.N=null;this.W=0;this.K=new sF(this)}; gL=function(){var X=It;X.B||(X.B=!0,zrY(X,function(){return X.T.apply(X,g.nR(g.fR.apply(0,arguments)))}),X.T())}; Wdo=function(){wR(hre);var X=wR(Zq);X.L!=null&&X.L.L?$ze(X.L.L):lL().update(YD)}; DQ=function(X,J,L){if(!X.done&&(X.K.cancel(),J.length!=0)){X.N=null;try{Wdo();var x=zF();x4().j=x;if(wR(Zq).L!=null)for(var Q=0;Q=0?zF()-Ww:-1,D=zF();Q.L.X5==-1&&(q=D);var C=lL(),M=x4(),y=Pc(M.QO),n=kN();try{if(n.length>0){var V=C.L;V&&(y.bs=[j6(V),V.getHeight()]);var H=C.j;H&&(y.ps=[H.width,H.height]);YD.screen&&(y.scs=[YD.screen.width,YD.screen.height])}else y.url=encodeURIComponent(YD.location.href.substring(0,512)),K.referrer&&(y.referrer=encodeURIComponent(K.referrer.substring(0,512))); y.tt=q;y.pt=Ww;y.bin=M.K;YD.google_osd_load_pub_page_exp!==void 0&&(y.olpp=YD.google_osd_load_pub_page_exp);y.deb=[1,Q.L.Gz,Q.L.WE,Q.L.GO,Q.L.X5,0,Q.K.K,Q.L.xp,Q.L.Wc,Q.L.pD,Q.L.PZE,-1].join(";");y.tvt=rKI(Q,D);C.K&&(y.inapp=1);if(YD!==null&&YD!=YD.top){n.length>0&&(y.iframe_loc=encodeURIComponent(YD.location.href.substring(0,512)));var O=C.W;y.is=[j6(O),O.getHeight()]}}catch(u){y.error=1}It.N=y}V=g.Vf(It.N);H=x4().L;SJ(H.N,"prf")==1?(O=new JV,Q=H.L,K=0,Q.L>-1&&(K=Q.N.L.now()-Q.L),O=gq(O,1,De(Q.T+ K),0),Q=H.L,O=gq(O,5,y9(Q.L>-1?Q.K+1:Q.K),0),O=gq(O,2,ut(H.K.L.N()),"0"),O=gq(O,3,ut(H.K.L.K()),"0"),H=gq(O,4,ut(H.K.L.L()),"0"),O={},H=(O.pf=g.S3(H.N()),O)):H={};g.O1(V,H);g.O1(J,x,L,V,X())}])}; TqW=function(){var X=j6v||YD;if(!X)return"";var J=[];if(!X.location||!X.location.href)return"";J.push("url="+encodeURIComponent(X.location.href.substring(0,512)));X.document&&X.document.referrer&&J.push("referrer="+encodeURIComponent(X.document.referrer.substring(0,512)));return J.join("&")}; $h=function(){var X="youtube.player.web_20250623_22_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250623_22_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250623_22_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250623_22_RC00".match(/_(\d{8})_\d+_RC\d+$/),J;if(((J=X)==null?void 0:J.length)==2)return X[1];X="youtube.player.web_20250623_22_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var L;return((L=X)==null?void 0:L.length)==3?"20"+X[1]+X[2]:null}; GBm=function(){return"av.default_js".includes("ima_html5_sdk")?{Yd:"ima",d8:null}:"av.default_js".includes("ima_native_sdk")?{Yd:"nima",d8:null}:"av.default_js".includes("admob-native-video-javascript")?{Yd:"an",d8:null}:"youtube.player.web_20250623_22_RC00".includes("cast_js_sdk")?{Yd:"cast",d8:$h()}:"youtube.player.web_20250623_22_RC00".includes("youtube.player.web")?{Yd:"yw",d8:$h()}:"youtube.player.web_20250623_22_RC00".includes("outstream_web_client")?{Yd:"out",d8:$h()}:"youtube.player.web_20250623_22_RC00".includes("drx_rewarded_web")? {Yd:"r",d8:$h()}:"youtube.player.web_20250623_22_RC00".includes("gam_native_web_video")?{Yd:"n",d8:$h()}:"youtube.player.web_20250623_22_RC00".includes("admob_interstitial_video")?{Yd:"int",d8:$h()}:{Yd:"j",d8:null}}; yq=function(X,J){var L={sv:"967"};Cu!==null&&(L.v=Cu);L.cb=fDA;L.nas=m7.L.length;L.msg=X;J!==void 0&&(X=erO(J))&&(L.e=M_[X]);return L}; nu=function(X){return E1(X,"custom_metric_viewable")}; erO=function(X){var J=nu(X)?"custom_metric_viewable":X.toLowerCase();return CJ(RM,function(L){return L==J})}; FdW=function(){this.L=void 0;this.K=!1;this.N=0;this.T=-1;this.j="tos"}; BqI=function(X){try{var J=X.split(",");return J.length>g.g6(lDv).length?null:a3(J,function(L,x){x=x.toLowerCase().split("=");if(x.length!=2||Rro[x[0]]===void 0||!Rro[x[0]](x[1]))throw Error("Entry ("+x[0]+", "+x[1]+") is invalid.");L[x[0]]=x[1];return L},{})}catch(L){return null}}; s6e=function(X,J){if(X.L==void 0)return 0;switch(X.j){case "mtos":return X.K?gF(J.L,X.L):gF(J.K,X.L);case "tos":return X.K?IM(J.L,X.L):IM(J.K,X.L)}return 0}; Vq=function(X,J,L,x){zv.call(this,J,x);this.W=X;this.S=L}; Hi=function(){}; Ok=function(X){zv.call(this,"fully_viewable_audible_half_duration_impression",X)}; at=function(X){this.L=X}; wL=function(X,J){zv.call(this,X,J)}; tp=function(X){Wl.call(this,"measurable_impression",X)}; dL=function(){at.apply(this,arguments)}; un=function(X,J,L){jP.call(this,X,J,L)}; ot=function(X){X=X===void 0?YD:X;Zk.call(this,new NJ(X,2))}; bn=function(X,J,L){jP.call(this,X,J,L)}; Su=function(X){X=X===void 0?YD:X;Zk.call(this,new NJ(X,2))}; Pi=function(){NJ.call(this,YD,2,"mraid");this.Bl=0;this.aB=this.Pl=!1;this.W=null;this.K=LQe(this.N);this.T.L=new vB(0,0,0,0);this.vl=!1}; ci=function(X,J,L){X.Xn("addEventListener",J,L)}; kBY=function(X){x4().T=!!X.Xn("isViewable");ci(X,"viewableChange",Nqz);X.Xn("getState")==="loading"?ci(X,"ready",Uwm):mwI(X)}; mwI=function(X){typeof X.K.lk.AFMA_LIDAR==="string"?(X.Pl=!0,ZHm(X)):(X.K.compatibility=3,X.W="nc",X.fail("w"))}; ZHm=function(X){X.aB=!1;var J=SJ(x4().QO,"rmmt")==1,L=!!X.Xn("isViewable");(J?!L:1)&&dR().setTimeout(Y4(524,function(){X.aB||(AKI(X),hV(540,Error()),X.W="mt",X.fail("w"))}),500); XsS(X);ci(X,X.K.lk.AFMA_LIDAR,J2A)}; XsS=function(X){var J=SJ(x4().QO,"sneio")==1,L=X.K.lk.AFMA_LIDAR_EXP_1!==void 0,x=X.K.lk.AFMA_LIDAR_EXP_2!==void 0;(J=J&&x)&&(X.K.lk.AFMA_LIDAR_EXP_2=!0);L&&(X.K.lk.AFMA_LIDAR_EXP_1=!J)}; AKI=function(X){X.Xn("removeEventListener",X.K.lk.AFMA_LIDAR,J2A);X.Pl=!1}; LhR=function(X,J){if(X.Xn("getState")==="loading")return new g.B_(-1,-1);J=X.Xn(J);if(!J)return new g.B_(-1,-1);X=parseInt(J.width,10);J=parseInt(J.height,10);return isNaN(X)||isNaN(J)?new g.B_(-1,-1):new g.B_(X,J)}; Uwm=function(){try{var X=wR(Pi);X.Xn("removeEventListener","ready",Uwm);mwI(X)}catch(J){hV(541,J)}}; J2A=function(X,J){try{var L=wR(Pi);L.aB=!0;var x=X?new vB(X.y,X.x+X.width,X.y+X.height,X.x):new vB(0,0,0,0);var Q=zF(),K=Bw();var q=new jG(Q,K,L);q.L=x;q.volume=J;L.O7(q)}catch(D){hV(542,D)}}; Nqz=function(X){var J=x4(),L=wR(Pi);X&&!J.T&&(J.T=!0,L.vl=!0,L.W&&L.fail("w",!0))}; Ek=function(){this.isInitialized=!1;this.L=this.K=null;var X={};this.W=(X.start=this.L_,X.firstquartile=this.A7,X.midpoint=this.Rx,X.thirdquartile=this.K_,X.complete=this.Ch,X.error=this.lc,X.pause=this.Ox,X.resume=this.gh,X.skip=this.mH,X.viewable_impression=this.Ow,X.mute=this.Am,X.unmute=this.Am,X.fullscreen=this.rG,X.exitfullscreen=this.Du,X.fully_viewable_audible_half_duration_impression=this.Ow,X.measurable_impression=this.Ow,X.abandon=this.Ox,X.engagedview=this.Ow,X.impression=this.Ow,X.creativeview= this.Ow,X.progress=this.Am,X.custom_metric_viewable=this.Ow,X.bufferstart=this.Ox,X.bufferfinish=this.gh,X.audio_measurable=this.Ow,X.audio_audible=this.Ow,X);X={};this.S=(X.overlay_resize=this.yU,X.abandon=this.JL,X.close=this.JL,X.collapse=this.JL,X.overlay_unmeasurable_impression=function(J){return Bl(J,"overlay_unmeasurable_impression",Bw())},X.overlay_viewable_immediate_impression=function(J){return Bl(J,"overlay_viewable_immediate_impression",Bw())},X.overlay_unviewable_impression=function(J){return Bl(J, "overlay_unviewable_impression",Bw())},X.overlay_viewable_end_of_session_impression=function(J){return Bl(J,"overlay_viewable_end_of_session_impression",Bw())},X); x4().K=3;xEA(this);this.N=null}; Yh=function(X,J,L,x){X=X.Y8(null,x,!0,J);X.T=L;ujv([X]);return X}; ikW=function(X,J,L){hmZ(J);var x=X.L;g.mF(J,function(Q){var K=g.H5(Q.criteria,function(q){var D=BqI(q);if(D==null)q=null;else if(q=new FdW,D.visible!=null&&(q.L=D.visible/100),D.audible!=null&&(q.K=D.audible==1),D.time!=null){var C=D.timetype=="mtos"?"mtos":"tos",M=emZ(D.time,"%")?"%":"ms";D=parseInt(D.time,10);M=="%"&&(D/=100);q.setTime(D,M,C)}return q}); Fe(K,function(q){return q==null})||XTe(L,new Vq(Q.id,Q.event,K,x))})}; Qav=function(){var X=[],J=x4();X.push(wR(Ku));SJ(J.QO,"mvp_lv")&&X.push(wR(Pi));J=[new ot,new Su];J.push(new Am(X));J.push(new Qq(YD));return J}; Khe=function(X){if(!X.isInitialized){X.isInitialized=!0;try{var J=zF(),L=x4(),x=lL();Ww=J;L.N=79463069;X.K!=="o"&&(j6v=QSv(YD));if(VJS()){It.L.WE=0;It.L.X5=zF()-J;var Q=Qav(),K=wR(Zq);K.K=Q;bHo(K,function(){hp()})?It.done||(pTY(),UF(K.L.L,X),gL()):x.N?hp():gL()}else zw=!0}catch(q){throw m7.reset(),q; }}}; pu=function(X){It.K.cancel();Wi=X;It.done=!0}; rL=function(X){if(X.K)return X.K;var J=wR(Zq).L;if(J)switch(J.getName()){case "nis":X.K="n";break;case "gsv":X.K="m"}X.K||(X.K="h");return X.K}; vi=function(X,J,L){if(X.L==null)return J.mC|=4,!1;X=qdz(X.L,L,J);J.mC|=X;return X==0}; hp=function(){var X=[new Qq(YD)],J=wR(Zq);J.K=X;bHo(J,function(){pu("i")})?It.done||(pTY(),gL()):pu("i")}; Irm=function(X,J){if(!X.Nx){var L=Bl(X,"start",Bw());L=X.ea.L(L).L;var x={id:"lidarv"};x.r=J;x.sv="967";Cu!==null&&(x.v=Cu);MJ(L,function(Q,K){return x[Q]=Q=="mtos"||Q=="tos"?K:encodeURIComponent(K)}); J=TqW();MJ(J,function(Q,K){return x[Q]=encodeURIComponent(K)}); J="//pagead2.googlesyndication.com/pagead/gen_204?"+Jm(Xl(new AV,x));wtm(J);X.Nx=!0}}; ju=function(X,J,L){DQ(It,[X],!Bw());iHo(X,L);L!=4&&xwe(X.Pl,L,X.yC);return Bl(X,J,Bw())}; xEA=function(X){vcZ(function(){var J=g_Y();X.K!=null&&(J.sdk=X.K);var L=wR(Zq);L.L!=null&&(J.avms=L.L.getName());return J})}; DEv=function(X,J,L,x){var Q=aD8(m7,L);Q!==null&&Q.D3!==J&&(X.wu(Q),Q=null);Q||(J=X.Y8(L,zF(),!1,J),m7.K.length==0&&(x4().N=79463069),oc8([J]),Q=J,Q.T=rL(X),x&&(Q.SC=x));return Q}; $ER=function(X,J){var L=X[J];L!==void 0&&L>0&&(X[J]=Math.floor(L*1E3))}; g_Y=function(){var X=lL(),J={},L={},x={};return Object.assign({},(J.sv="967",J),Cu!==null&&(L.v=Cu,L),(x["if"]=X.N?"1":"0",x.nas=String(m7.L.length),x))}; ln=function(X){zv.call(this,"audio_audible",X)}; Rt=function(X){Wl.call(this,"audio_measurable",X)}; Bi=function(){at.apply(this,arguments)}; sk=function(){}; C9v=function(X){this.L=X}; qdz=function(X,J,L){X=X.K();if(typeof X==="function"){var x={};var Q={};x=Object.assign({},Cu!==null&&(x.v=Cu,x),(Q.sv="967",Q.cb=fDA,Q.e=M4Z(J),Q));Q=Bl(L,J,Bw());g.O1(x,Q);L.Kl[J]=Q;x=L.MI()==2?aeY(x).join("&"):L.ea.L(x).L;try{return X(L.D3,x,J),0}catch(K){return 2}}else return 1}; M4Z=function(X){var J=nu(X)?"custom_metric_viewable":X;X=CJ(RM,function(L){return L==J}); return M_[X]}; N_=function(){Ek.call(this);this.B=null;this.j=!1;this.T="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; y2m=function(X,J,L){L=L.opt_configurable_tracking_events;X.L!=null&&Array.isArray(L)&&ikW(X,L,J)}; n_P=function(X,J,L){var x=UN(m7,J);x||(x=L.opt_nativeTime||-1,x=Yh(X,J,rL(X),x),L.opt_osdId&&(x.SC=L.opt_osdId));return x}; V4S=function(X,J,L){var x=UN(m7,J);x||(x=Yh(X,J,"n",L.opt_nativeTime||-1));return x}; Hkz=function(X,J){var L=UN(m7,J);L||(L=Yh(X,J,"h",-1));return L}; Ok8=function(X){x4();switch(rL(X)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; t4m=function(X,J,L,x){L=L===void 0?{}:L;var Q={};g.O1(Q,{opt_adElement:void 0,opt_fullscreen:void 0},L);var K=X.Fg(J,L);L=K?K.ea:X.Nb();if(Q.opt_bounds)return L.L(yq("ol",x));if(x!==void 0)if(erO(x)!==void 0)if(zw)X=yq("ue",x);else if(Khe(X),Wi=="i")X=yq("i",x),X["if"]=0;else if(J=X.Fg(J,Q)){b:{Wi=="i"&&(J.Ae=!0);K=Q.opt_fullscreen;K!==void 0&&Hl(J,!!K);var q;if(K=!lL().K)(K=zU(g.vc(),"CrKey")&&!(zU(g.vc(),"CrKey")&&zU(g.vc(),"SmartSpeaker"))||zU(g.vc(),"PlayStation")||zU(g.vc(),"Roku")||qtm()||zU(g.vc(), "Xbox"))||(K=g.vc(),K=zU(K,"AppleTV")||zU(K,"Apple TV")||zU(K,"CFNetwork")||zU(K,"tvOS")),K||(K=g.vc(),K=zU(K,"sdk_google_atv_x86")||zU(K,"Android TV")),K=!K;K&&(dR(),K=Q4(Ri)===0);if(q=K){switch(J.MI()){case 1:Irm(J,"pv");break;case 2:X.TT(J)}pu("pv")}K=x.toLowerCase();if(q=!q)q=SJ(x4().QO,"ssmol")&&K==="loaded"?!1:g.tS(arv,K);if(q&&J.EQ==0){Wi!="i"&&(It.done=!1);q=Q!==void 0?Q.opt_nativeTime:void 0;vw=q=typeof q==="number"?q:zF();J.DJ=!0;var D=Bw();J.EQ=1;J.z_={};J.z_.start=!1;J.z_.firstquartile= !1;J.z_.midpoint=!1;J.z_.thirdquartile=!1;J.z_.complete=!1;J.z_.resume=!1;J.z_.pause=!1;J.z_.skip=!1;J.z_.mute=!1;J.z_.unmute=!1;J.z_.viewable_impression=!1;J.z_.measurable_impression=!1;J.z_.fully_viewable_audible_half_duration_impression=!1;J.z_.fullscreen=!1;J.z_.exitfullscreen=!1;J.gR=0;D||(J.wZ().S=q);DQ(It,[J],!D)}(q=J.Er[K])&&cl(J.nW,q);SJ(x4().QO,"fmd")||g.tS(wso,K)&&J.l3&&J.l3.K(J,null);switch(J.MI()){case 1:var C=nu(K)?X.W.custom_metric_viewable:X.W[K];break;case 2:C=X.S[K]}if(C&&(x=C.call(X, J,Q,x),SJ(x4().QO,"fmd")&&g.tS(wso,K)&&J.l3&&J.l3.K(J,null),x!==void 0)){Q=yq(void 0,K);g.O1(Q,x);x=Q;break b}x=void 0}J.EQ==3&&X.wu(J);X=x}else X=yq("nf",x);else X=void 0;else zw?X=yq("ue"):K?(X=yq(),g.O1(X,Kde(K,!0,!1,!1))):X=yq("nf");return typeof X==="string"?L.L():L.L(X)}; dEe=function(X,J){J&&(X.T=J)}; udW=function(X){var J={};return J.viewability=X.L,J.googleViewability=X.K,J}; o_Y=function(X,J,L){L=L===void 0?{}:L;X=t4m(wR(N_),J,L,X);return udW(X)}; Uk=function(X){var J=g.fR.apply(1,arguments).filter(Boolean).join("&");if(!J)return X;var L=X.match(/[?&]adurl=/);return L?X.slice(0,L.index+1)+J+"&"+X.slice(L.index+1):X+(X.indexOf("?")<0?"?":"&")+J}; mI=function(X,J){return J?"&"+X+"="+encodeURIComponent(J):""}; bko=function(X){var J=X.url;X=X.z_m;this.K=J;this.T=X;this.N=(new Date).getTime()-17040672E5;this.L={};for(var L=/[?&]([^&=]+)=([^&]*)/g;X=L.exec(J);)this.L[X[1]]=X[2]}; SdI=function(X){X=X.T;if(!X)return"";var J=mI("uap",X.platform)+mI("uapv",X.platformVersion)+mI("uafv",X.uaFullVersion)+mI("uaa",X.architecture)+mI("uam",X.model)+mI("uab",X.bitness);X.fullVersionList&&(J+="&uafvl="+encodeURIComponent(X.fullVersionList.map(function(L){return encodeURIComponent(L.brand)+";"+encodeURIComponent(L.version)}).join("|"))); X.wow64!=null&&(J+="&uaw="+Number(X.wow64));return J.slice(1)}; E_8=function(X,J,L,x,Q){var K=window;var q=q===void 0?!1:q;var D;L?D=(q===void 0?0:q)?"//ep1.adtrafficquality.google/bg/"+Y0(L)+".js":"//pagead2.googlesyndication.com/bg/"+Y0(L)+".js":D="";q=q===void 0?!1:q;L=K.document;var C={};J&&(C._scs_=J);C._bgu_=D;C._bgp_=x;C._li_="v_h.3.0.0.0";Q&&(C._upb_=Q);(J=K.GoogleTyFxhY)&&typeof J.push=="function"||(J=K.GoogleTyFxhY=[]);J.push(C);J=Lj(L).createElement("SCRIPT");J.type="text/javascript";J.async=!0;X=(q===void 0?0:q)?hez(P98,Y0(X)+".js"):hez(c28,Y0(X)+ ".js");g.wZ(J,X);(K=(K.GoogleTyFxhYEET||{})[J.src])?K():L.getElementsByTagName("head")[0].appendChild(J)}; YdA=function(){try{var X,J;return!!((X=window)==null?0:(J=X.top)==null?0:J.location.href)&&!1}catch(L){return!0}}; kh=function(X,J,L){L=L===void 0?Error():L;var x=Error.call(this);this.message=x.message;"stack"in x&&(this.stack=x.stack);this.code=X;J+=":";L instanceof Error?(this.message=J+L.message,this.stack=L.stack||""):(this.message=J+String(L),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; Ap=function(){var X=hFP();X=X===void 0?"bevasrsg":X;return new Promise(function(J){var L=window===window.top?window:YdA()?window:window.top,x=L[X],Q;((Q=x)==null?0:Q.bevasrs)?J(new ZQ(x.bevasrs)):(x||(x={},x=(x.nqfbel=[],x),L[X]=x),x.nqfbel.push(function(K){J(new ZQ(K))}))})}; zFo=function(X){var J={c:X.wJ,e:X.Vh,mc:X.x5,me:X.p8};X.Kw&&(J.co={c:X.Kw.jL,a:X.Kw.M$,s:X.Kw.LX});return J}; Xi=function(X){g.G.call(this);this.wpc=X}; ZQ=function(X){g.G.call(this);var J=this;this.Oo=X;this.N="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.K=void 0;this.y5=this.Oo.p;this.T=this.zA.bind(this);this.addOnDisposeCallback(function(){return void WhW(J)})}; psI=function(X){var J;return g.p(function(L){if(L.K==1){if(!X.Oo.wpc)throw new kh(30,"NWA");return X.L?L.return(X.L):g.z(L,X.Oo.wpc(),2)}J=L.L;X.L=new Xi(J);return L.return(X.L)})}; WhW=function(X){X.K!==void 0&&(X.N.forEach(function(J){var L;(L=X.K)==null||L.removeEventListener(J,X.T)}),X.K=void 0)}; r2v=function(X){var J=J===void 0?49:J;var L=[];wq(X,J$,6).forEach(function(x){cT(x,2)<=J&&L.push(cT(x,1))}); return L}; v_O=function(X){var J=J===void 0?49:J;var L=[];wq(X,J$,6).forEach(function(x){cT(x,2)>J&&L.push(cT(x,1))}); return L}; jaO=function(X){X.then(function(){},function(){})}; L5=function(){g.G.apply(this,arguments);this.T=1;this[TOA]=this.dispose}; xf=function(X){return{fieldType:2,fieldName:X}}; g.i6=function(X){return{fieldType:3,fieldName:X}}; GWm=function(X){this.L=X;X.iD("/client_streamz/bg/frs",g.i6("mk"))}; frz=function(X){this.L=X;X.iD("/client_streamz/bg/wrl",g.i6("mn"),xf("ac"),xf("sc"),g.i6("rk"),g.i6("mk"))}; eF8=function(X){this.L=X;X.AK("/client_streamz/bg/ec",g.i6("en"),g.i6("mk"))}; FhS=function(X){this.L=X;X.iD("/client_streamz/bg/el",g.i6("en"),g.i6("mk"))}; lre=function(X){this.L=X;X.AK("/client_streamz/bg/cec",xf("ec"),g.i6("mk"))}; RFm=function(X){this.L=X;X.AK("/client_streamz/bg/po/csc",xf("cs"),g.i6("mk"))}; BOI=function(X){this.L=X;X.AK("/client_streamz/bg/po/ctav",g.i6("av"),g.i6("mk"))}; sao=function(X){this.L=X;X.AK("/client_streamz/bg/po/cwsc",g.i6("su"),g.i6("mk"))}; NOe=function(X){this.rI=lt(X)}; UEA=function(X,J){return E0Y(X,J,X_Z)}; QY=function(X){this.rI=lt(X)}; K5=function(X){this.rI=lt(X)}; qY=function(X){this.rI=lt(X)}; Ik=function(X){this.rI=lt(X)}; gg=function(X){this.rI=lt(X)}; DI=function(X){this.rI=lt(X)}; mEA=function(X){this.rI=lt(X)}; A2I=function(X){var J=new DI;J=rq(J,1,X.K);var L=kWO(X);J=E0Y(J,L,C$A);L=[];for(var x=[],Q=g.d(X.L.keys()),K=Q.next();!K.done;K=Q.next())x.push(K.value.split(","));for(Q=0;Q>>31)&4294967295;n=Q[0];var O=Q[1],u=Q[2],S=Q[3],Y=Q[4];for(H=0;H<80;H++){if(H<40)if(H<20){var h=S^O&(u^S);var W=1518500249}else h=O^u^S,W=1859775393;else H<60?(h=O&u|S&(O|u),W=2400959708):(h=O^u^S,W=3395469782);h=((n<<5|n>>>27)&4294967295)+h+Y+W+V[H]&4294967295;Y=S;S=u;u=(O<<30|O>>>2)&4294967295;O=n;n=h}Q[0]=Q[0]+n&4294967295;Q[1]=Q[1]+O&4294967295;Q[2]= Q[2]+u&4294967295;Q[3]=Q[3]+S&4294967295;Q[4]=Q[4]+Y&4294967295} function L(n,V){if(typeof n==="string"){n=unescape(encodeURIComponent(n));for(var H=[],O=0,u=n.length;O=56;H--)K[H]=V&255,V>>>=8;J(K);for(H=V=0;H<5;H++)for(var O=24;O>=0;O-=8)n[V++]=Q[H]>>O&255;return n} for(var Q=[],K=[],q=[],D=[128],C=1;C<64;++C)D[C]=0;var M,y;X();return{reset:X,update:L,digest:x,Ax:function(){for(var n=x(),V="",H=0;H1)));q=q.next)Q||(K=q);Q&&(L.L==0&&x==1?UJS(L,J):(K?(x=K,x.next==L.T&&(L.T=x),x.next=x.next.next):mJm(L),kFA(L,Q,3,J)))}X.N=null}else uq(X,3,J)}; zL=function(X,J){X.K||X.L!=2&&X.L!=3||Z3o(X);X.T?X.T.next=J:X.K=J;X.T=J}; AVm=function(X,J,L,x){var Q=EQ(null,null,null);Q.L=new g.og(function(K,q){Q.N=J?function(D){try{var C=J.call(x,D);K(C)}catch(M){q(M)}}:K; Q.K=L?function(D){try{var C=L.call(x,D);C===void 0&&D instanceof pA?q(D):K(C)}catch(M){q(M)}}:q}); Q.L.N=X;zL(X,Q);return Q.L}; uq=function(X,J,L){X.L==0&&(X===L&&(J=3,L=new TypeError("Promise cannot resolve to itself")),X.L=1,RHo(L,X.nM6,X.bWl,X)||(X.W=L,X.L=J,X.N=null,Z3o(X),J!=3||L instanceof pA||XlA(X,L)))}; RHo=function(X,J,L,x){if(X instanceof g.og)return NAe(X,J,L,x),!0;if(X)try{var Q=!!X.$goog_Thenable}catch(q){Q=!1}else Q=!1;if(Q)return X.then(J,L,x),!0;if(g.Q0(X))try{var K=X.then;if(typeof K==="function")return Jmv(X,K,J,L,x),!0}catch(q){return L.call(x,q),!0}return!1}; Jmv=function(X,J,L,x,Q){function K(C){D||(D=!0,x.call(Q,C))} function q(C){D||(D=!0,L.call(Q,C))} var D=!1;try{J.call(X,q,K)}catch(C){K(C)}}; Z3o=function(X){X.B||(X.B=!0,g.dJ(X.q4,X))}; mJm=function(X){var J=null;X.K&&(J=X.K,X.K=J.next,J.next=null);X.K||(X.T=null);return J}; kFA=function(X,J,L,x){if(L==3&&J.K&&!J.T)for(;X&&X.j;X=X.N)X.j=!1;if(J.L)J.L.N=null,L7o(J,L,x);else try{J.T?J.N.call(J.context):L7o(J,L,x)}catch(Q){x3m.call(null,Q)}v4v(lke,J)}; L7o=function(X,J,L){J==2?X.N.call(X.context,L):X.K&&X.K.call(X.context,L)}; XlA=function(X,J){X.j=!0;g.dJ(function(){X.j&&x3m.call(null,J)})}; pA=function(X){y0.call(this,X)}; g.rJ=function(X,J){g.$W.call(this);this.MP=X||1;this.jM=J||g.Ao;this.Lb=(0,g.IH)(this.B2l,this);this.lr=g.$u()}; g.v4=function(X,J,L){if(typeof X==="function")L&&(X=(0,g.IH)(X,L));else if(X&&typeof X.handleEvent=="function")X=(0,g.IH)(X.handleEvent,X);else throw Error("Invalid listener argument");return Number(J)>2147483647?-1:g.Ao.setTimeout(X,J||0)}; jx=function(X,J){var L=null;return(new g.og(function(x,Q){L=g.v4(function(){x(J)},X); L==-1&&Q(Error("Failed to schedule timer."))})).S1(function(x){g.Ao.clearTimeout(L); throw x;})}; g.TL=function(X){g.G.call(this);this.W=X;this.T=0;this.N=100;this.j=!1;this.K=new Map;this.B=new Set;this.flushInterval=3E4;this.L=new g.rJ(this.flushInterval);this.L.listen("tick",this.PV,!1,this);g.f(this,this.L)}; iqR=function(X){X.L.enabled||X.L.start();X.T++;X.T>=X.N&&X.PV()}; QM8=function(X,J){return X.B.has(J)?void 0:X.K.get(J)}; K7S=function(X){for(var J=0;J2?X.L.statusText:""}catch(L){J=""}X.T=J+" ["+X.getStatus()+"]";HqY(X)}}finally{Rg(X)}}}; Rg=function(X,J){if(X.L){X.B&&(clearTimeout(X.B),X.B=null);var L=X.L;X.L=null;J||X.dispatchEvent("ready");try{L.onreadystatechange=null}catch(x){}}}; Np=function(X){var J=X.getStatus();a:switch(J){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var L=!0;break a;default:L=!1}if(!L){if(J=J===0)X=g.gA(String(X.S))[1]||null,!X&&g.Ao.self&&g.Ao.self.location&&(X=g.Ao.self.location.protocol.slice(0,-1)),J=!wlm.test(X?X.toLowerCase():"");L=J}return L}; g.sQ=function(X){return X.L?X.L.readyState:0}; g.UQ=function(X){try{return X.L?X.L.responseText:""}catch(J){return""}}; g.m5=function(X){try{if(!X.L)return null;if("response"in X.L)return X.L.response;switch(X.FE){case "":case "text":return X.L.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in X.L)return X.L.mozResponseArrayBuffer}return null}catch(J){return null}}; g.tP8=function(X){var J={};X=(X.L&&g.sQ(X)>=2?X.L.getAllResponseHeaders()||"":"").split("\r\n");for(var L=0;L>1,J),dj(X,X.length>>1)]}; LIz=function(X){var J=g.d(Jp8(X,ux));X=J.next().value;J=J.next().value;return X.toString(16)+J.toString(16)}; x_z=function(X,J){var L=Jp8(J);X=new Uint32Array(X.buffer);J=X[0];var x=g.d(L);L=x.next().value;x=x.next().value;for(var Q=1;Q>>8|q<<24,q+=K|0,q^=D+38293,K=K<<3|K>>>29,K^=q,C=C>>>8|C<<24,C+=D|0,C^=M+38293,D=D<<3|D>>>29,D^=C;K=[K,q];X[Q]^=K[0];Q+1=L?(globalThis.sessionStorage.removeItem(X),["e"]):["a",new Uint8Array(x.buffer,J+4)]}; oB=function(X,J,L){L=L===void 0?[]:L;this.maxItems=X;this.L=J===void 0?0:J;this.K=L}; KIO=function(X){var J=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!J)return new oB(X);var L=J.split(",");if(L.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new oB(X);J=L.slice(1);J.length===1&&J[0]===""&&(J=[]);L=Number(L[0]);return isNaN(L)||L<0||L>J.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new oB(X)):new oB(X,L,J)}; qkI=function(X,J){this.logger=J;try{var L=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(x){L=!1}L&&(this.index=KIO(X))}; IQO=function(X,J,L,x,Q){var K=X.index?Lz(X.logger,function(){return ium(X.index,LIz(J),L,x,Q)},"W"):"u"; X.logger.uG(K)}; ghW=function(X,J,L){var x=g.d(X.index?Lz(X.logger,function(){return Qtm(LIz(J),L)},"R"):["u"]),Q=x.next().value; x=x.next().value;X.logger.aj(Q);return x}; CnS=function(X){function J(){L-=x;L-=Q;L^=Q>>>13;x-=Q;x-=L;x^=L<<8;Q-=L;Q-=x;Q^=x>>>13;L-=x;L-=Q;L^=Q>>>12;x-=Q;x-=L;x^=L<<16;Q-=L;Q-=x;Q^=x>>>5;L-=x;L-=Q;L^=Q>>>3;x-=Q;x-=L;x^=L<<10;Q-=L;Q-=x;Q^=x>>>15} X=D_A(X);for(var L=2654435769,x=2654435769,Q=314159265,K=X.length,q=K,D=0;q>=12;q-=12,D+=12)L+=bx(X,D),x+=bx(X,D+4),Q+=bx(X,D+8),J();Q+=K;switch(q){case 11:Q+=X[D+10]<<24;case 10:Q+=X[D+9]<<16;case 9:Q+=X[D+8]<<8;case 8:x+=X[D+7]<<24;case 7:x+=X[D+6]<<16;case 6:x+=X[D+5]<<8;case 5:x+=X[D+4];case 4:L+=X[D+3]<<24;case 3:L+=X[D+2]<<16;case 2:L+=X[D+1]<<8;case 1:L+=X[D+0]}J();return $_m.toString(Q)}; D_A=function(X){for(var J=[],L=0;L>7,X.error.code]);x.set(L,4);return x}; pz=function(X,J,L){SF.call(this,X);this.T=J;this.clientState=L;this.L="S";this.K="q"}; WO=function(X){return globalThis.TextEncoder?(new TextEncoder).encode(X):g.bS(X)}; nh8=function(X,J,L){return X instanceof Og?eSP(X,L,J,1):X.x0(L)}; vO=function(X){g.G.call(this);var J=this;this.N=new g.Cz;this.T=0;this.K=void 0;this.state=2;this.Oo=X.Oo;this.Vw=X.Vw;this.qa=Object.assign({},Vum,X.qa||{});this.logger=X.Oo.Qb();var L;this.onError=(L=X.onError)!=null?L:function(){}; this.gY=X.gY||!1;if(Hum(X)){var x=this.Oo;this.j=function(){return sMe(x).catch(function(q){q=J.reportError(new kh(J.L?20:32,"TRG:Disposed",q));J.K=q;var D;(D=J.L)==null||D.dispose();J.L=void 0;J.N.reject(q)})}; NF8(x,function(){return void rj(J)}); x.S===2&&rj(this)}else this.j=X.whC,rj(this);var Q=this.logger.share();Q.Pk("o");var K=new Xk(Q,"o");this.N.promise.then(function(){K.done();Q.Fk();Q.dispose()},function(){return void Q.dispose()}); this.addOnDisposeCallback(function(){J.L?(J.L.dispose(),J.L=void 0):J.K?J.logger.Fk():(J.K=J.reportError(new kh(32,"TNP:Disposed")),J.logger.Fk(),J.N.reject(J.K))}); g.f(this,this.logger)}; OuI=function(X,J){if(!(J instanceof kh))if(J instanceof GL){var L=Error(J.toString());L.stack=J.stack;J=new kh(11,"EBH:Error",L)}else J=new kh(12,"BSO:Unknown",J);return X.reportError(J)}; rj=function(X){var J,L,x,Q,K,q,D,C,M,y,n,V,H,O,u;return g.p(function(S){switch(S.K){case 1:J=void 0;X.T++;L=new g.Cz;X.Oo instanceof aB&&X.Oo.T.push(L.promise);if(!X.gY){S.fm(2);break}x=new g.Cz;setTimeout(function(){return void x.resolve()}); return g.z(S,x.promise,2);case 2:return Q=X.logger.share(),g.oz(S,4,5),X.state=5,K={},q=[],g.z(S,tU(X.Oo.snapshot({wJ:K,i7:q}),X.qa.Kk0,function(){return Promise.reject(new kh(15,"MDA:Timeout"))}),7); case 7:D=S.L;if(X.E6())throw new kh(X.L?20:32,"MDA:Disposed");C=q[0];X.state=6;return g.z(S,tU(nh8(X.Vw,Q,D),X.qa.pZ,function(){return Promise.reject(new kh(10,"BWB:Timeout"))}),8); case 8:M=S.L;if(X.E6())throw new kh(X.L?20:32,"BWB:Disposed");X.state=7;J=Lz(Q,function(){var h=aQZ(X,M,L,C);h.N.promise.then(function(){return void X.j()}); return h},"i"); case 5:g.WW(S);Q.dispose();g.pR(S,6);break;case 4:y=g.EA(S);(n=J)==null||n.dispose();if(!X.K){V=OuI(X,y);L.resolve();var Y;if(Y=X.Oo instanceof aB&&X.T<2)a:if(y instanceof kh)Y=y.code!==32&&y.code!==20&&y.code!==10;else{if(y instanceof GL)switch(y.code){case 2:case 13:case 14:case 4:break;default:Y=!1;break a}Y=!0}if(Y)return H=(1+Math.random()*.25)*(X.L?6E4:1E3),O=setTimeout(function(){return void X.j()},H),X.addOnDisposeCallback(function(){return void clearTimeout(O)}),S.return(); X.K=V}Q.ZI(X.L?13:14);X.N.reject(X.K);return S.return();case 6:X.state=8,X.T=0,(u=X.L)==null||u.dispose(),X.L=J,X.N.resolve(),g.uv(S)}})}; aQZ=function(X,J,L,x){var Q=EE(J,2)*1E3;if(Q<=0)throw new kh(31,"TTM:Invalid");if(Yc(J,4))return new hU(X.logger,Yc(J,4),Q);if(!EE(J,3))return new Yx(X.logger,pQ(I6(J,1)),Q);if(!x)throw new kh(4,"PMD:Undefined");x=x(pQ(I6(J,1)));if(!(x instanceof Function))throw new kh(16,"APF:Failed");X.B=Math.floor((Date.now()+Q)/1E3);X=new Eg(X.logger,x,EE(J,3),Q);X.addOnDisposeCallback(function(){return void L.resolve()}); return X}; wie=function(X,J){J=J instanceof kh?J:new kh(5,"TVD:error",J);return X.reportError(J)}; buP=function(X,J,L){try{if(X.E6())throw new kh(21,"BNT:disposed");if(!X.L&&X.K)throw X.K;var x,Q;return(Q=(x=tuO(X,J,L))!=null?x:d_m(X,J,L))!=null?Q:uRI(X,J,L)}catch(K){if(!J.p8)throw wie(X,K);return ohm(X,L,K)}}; tuO=function(X,J,L){var x;return(x=X.L)==null?void 0:cO(x,function(){return jF(X,J)},L,function(Q){var K; if(X.L instanceof Eg&&((K=J.Kw)==null?0:K.LX))try{var q;(q=X.cache)==null||IQO(q,jF(X,J),Q,J.Kw.jL,X.B-120)}catch(D){X.reportError(new kh(24,"ELX:write",D))}})}; d_m=function(X,J,L){var x;if((x=J.Kw)!=null&&x.M$)try{var Q,K=(Q=X.cache)==null?void 0:ghW(Q,jF(X,J),J.Kw.jL);return K?L?Lz(X.logger,function(){return g.S3(K,2)},"a"):K:void 0}catch(q){X.reportError(new kh(23,"RXO:read",q))}}; uRI=function(X,J,L){var x={stack:[],error:void 0,hasError:!1};try{if(!J.x5)throw new kh(29,"SDF:notready");return cO(OR8(x,new pz(X.logger,0,X.state)),function(){return jF(X,J)},L)}catch(Q){x.error=Q,x.hasError=!0}finally{aOO(x)}}; ohm=function(X,J,L){var x={stack:[],error:void 0,hasError:!1};try{var Q=wie(X,L);return cO(OR8(x,new zh(X.logger,Q)),function(){return[]},J)}catch(K){x.error=K,x.hasError=!0}finally{aOO(x)}}; jF=function(X,J){return J.Vh?J.Vh:J.wJ?Lz(X.logger,function(){return J.Vh=WO(J.wJ)},"c"):[]}; Th=function(){var X=0,J;return function(L){J||(J=new xx);var x=new pz(J,X,1),Q=cO(x,function(){return WO(L)},!0); x.dispose();X++;return Q}}; Gh=function(X){this.rI=lt(X)}; SkR=function(X,J,L){this.uo=X;this.dD=J;this.metadata=L}; fz=function(X,J){J=J===void 0?{}:J;this.QnE=X;this.metadata=J;this.status=null}; eF=function(X,J,L,x,Q){this.name=X;this.methodType="unary";this.requestType=J;this.responseType=L;this.L=x;this.K=Q}; Fk=function(X){this.rI=lt(X)}; lx=function(X){this.rI=lt(X)}; RB=function(X){this.rI=lt(X)}; BO=function(X,J){this.W=X.wlM;this.S=J;this.L=X.xhr;this.N=[];this.j=[];this.B=[];this.T=[];this.K=[];this.W&&PnO(this)}; hNR=function(X,J){var L=new cpR;g.X1(X.L,"complete",function(){if(Np(X.L)){var x=g.UQ(X.L);if(J&&X.L.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");x=atob(x)}try{var Q=X.S(x)}catch(D){sg(X,Nn(new GL(13,"Error when deserializing response data; error: "+D+(", response: "+x)),L));return}x=qNW(X.L.getStatus());Ug(X,mx(X));x==0?Ehm(X,Q):sg(X,Nn(new GL(x,"Xhr succeeded but the status code is not 200"),L))}else{x=g.UQ(X.L);Q=mx(X);if(x){var K=YkZ(X, x);x=K.code;var q=K.details;K=K.metadata}else x=2,q="Rpc failed due to xhr error. uri: "+String(X.L.S)+", error code: "+X.L.K+", error: "+X.L.getLastError(),K=Q;Ug(X,Q);sg(X,Nn(new GL(x,q,K),L))}})}; PnO=function(X){X.W.yH("data",function(J){if("1"in J){var L=J["1"];try{var x=X.S(L)}catch(Q){sg(X,new GL(13,"Error when deserializing response data; error: "+Q+(", response: "+L)))}x&&Ehm(X,x)}if("2"in J)for(J=YkZ(X,J["2"]),L=0;L-1&&X.splice(J,1)}; Ehm=function(X,J){for(var L=0;L>4&15).toString(16)+(X&15).toString(16)}; gX=function(X,J){this.K=this.L=null;this.N=X||null;this.T=!!J}; Mc=function(X){X.L||(X.L=new Map,X.K=0,X.N&&MJ(X.N,function(J,L){X.add(c_(J),L)}))}; Gw8=function(X,J){Mc(X);J=yj(X,J);return X.L.has(J)}; g.fQY=function(X,J,L){X.remove(J);L.length>0&&(X.N=null,X.L.set(yj(X,J),g.Yu(L)),X.K=X.K+L.length)}; yj=function(X,J){J=String(J);X.T&&(J=J.toLowerCase());return J}; vhm=function(X,J){J&&!X.T&&(Mc(X),X.N=null,X.L.forEach(function(L,x){var Q=x.toLowerCase();x!=Q&&(this.remove(x),g.fQY(this,Q,L))},X)); X.T=J}; g.eNR=function(X){var J="";g.XX(X,function(L,x){J+=x;J+=":";J+=L;J+="\r\n"}); return J}; g.nT=function(X,J,L){if(g.Mx(L))return X;L=g.eNR(L);if(typeof X==="string")return OF(X,g.P_(J),L);g.$v(X,J,L);return X}; g.Vj=function(X){g.G.call(this);this.K=X;this.L={}}; FIO=function(X,J,L,x,Q,K){if(Array.isArray(L))for(var q=0;q=0)return!0;try{var J=new g.xv(X)}catch(L){return g.Ou(Qkm,function(x){return X.search(x)>0})!=null}return J.B.match(K0I)?!0:g.Ou(Qkm,function(L){return X.match(L)!=null})!=null}; g.cN=function(X,J){return X.replace(IIm,function(L,x){try{var Q=g.yf(J,x);if(Q==null||Q.toString()==null)return L;Q=Q.toString();if(Q==""||!g.YS(g.hH(Q)))return encodeURIComponent(Q).replace(/%2C/g,",")}catch(K){}return L})}; En=function(X,J){return Object.is(X,J)}; hA=function(X){var J=Yv;Yv=X;return J}; gfW=function(X){if(X.Vc!==void 0){var J=zI;zI=!0;try{for(var L=g.d(X.Vc),x=L.next();!x.done;x=L.next()){var Q=x.value;Q.ZZ||(X=void 0,Q.ZZ=!0,gfW(Q),(X=Q.EE)==null||X.call(Q,Q))}}finally{zI=J}}}; DYI=function(){var X;return((X=Yv)==null?void 0:X.Vy)!==!1}; $YP=function(X){X&&(X.Hn=0);return hA(X)}; C68=function(X,J){hA(J);if(X&&X.fv!==void 0&&X.Bk!==void 0&&X.g_!==void 0){if(WN(X))for(J=X.Hn;JX.Hn;)X.fv.pop(),X.g_.pop(),X.Bk.pop()}}; y$P=function(X,J,L){MCm(X);if(X.Vc.length===0&&X.fv!==void 0)for(var x=0;x0}; nfv=function(X){X.fv!=null||(X.fv=[]);X.Bk!=null||(X.Bk=[]);X.g_!=null||(X.g_=[])}; MCm=function(X){X.Vc!=null||(X.Vc=[]);X.i5!=null||(X.i5=[])}; aIW=function(X){function J(){if(zI)throw Error("");if(Yv!==null){var x=Yv.Hn++;nfv(Yv);x0?" "+J:J))}}; g.ic=function(X,J){if(X.classList)Array.prototype.forEach.call(J,function(Q){g.xq(X,Q)}); else{var L={};Array.prototype.forEach.call(XC(X),function(Q){L[Q]=!0}); Array.prototype.forEach.call(J,function(Q){L[Q]=!0}); J="";for(var x in L)J+=J.length>0?" "+x:x;g.JJ(X,J)}}; g.Qd=function(X,J){X.classList?X.classList.remove(J):g.Ls(X,J)&&g.JJ(X,Array.prototype.filter.call(XC(X),function(L){return L!=J}).join(" "))}; g.Ks=function(X,J){X.classList?Array.prototype.forEach.call(J,function(L){g.Qd(X,L)}):g.JJ(X,Array.prototype.filter.call(XC(X),function(L){return!g.tS(J,L)}).join(" "))}; g.q8=function(X,J,L){L?g.xq(X,J):g.Qd(X,J)}; P6Z=function(X,J){var L=!g.Ls(X,J);g.q8(X,J,L)}; g.If=function(){g.$W.call(this);this.L=0;this.endTime=this.startTime=null}; c$R=function(X,J){Array.isArray(J)||(J=[J]);J=J.map(function(L){return typeof L==="string"?L:L.property+" "+L.duration+"s "+L.timing+" "+L.delay+"s"}); g.lF(X,"transition",J.join(","))}; gG=function(X,J,L,x,Q){g.If.call(this);this.K=X;this.j=J;this.B=L;this.T=x;this.W=Array.isArray(Q)?Q:[Q]}; EfA=function(X,J,L,x){return new gG(X,J,{opacity:L},{opacity:x},{property:"opacity",duration:J,timing:"ease-in",delay:0})}; hXA=function(X){X=Wc(X);if(X=="")return null;var J=String(X.slice(0,4)).toLowerCase();if(("url("1||X&&X.split(")"),null;if(X.indexOf("(")>0){if(/"|'/.test(X))return null;J=/([\-\w]+)\(/g;for(var L;L=J.exec(X);)if(!(L[1].toLowerCase()in YGe))return null}return X}; Dg=function(X,J){X=g.Ao[X];return X&&X.prototype?(J=Object.getOwnPropertyDescriptor(X.prototype,J))&&J.get||null:null}; zXY=function(X){var J=g.Ao.CSSStyleDeclaration;return J&&J.prototype&&J.prototype[X]||null}; W0O=function(X,J,L,x){if(X)return X.apply(J,x);if(g.$q&&document.documentMode<10){if(!J[L].call)throw Error("IE Clobbering detected");}else if(typeof J[L]!="function")throw Error("Clobbering detected");return J[L].apply(J,x)}; Tgo=function(X){if(!X)return"";var J=document.createElement("div").style;pIe(X).forEach(function(L){var x=g.g0&&L in r$v?L:L.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");E1(x,"--")||E1(x,"var")||(L=W0O(vfR,X,X.getPropertyValue?"getPropertyValue":"getAttribute",[L])||"",L=hXA(L),L!=null&&W0O(jkY,J,J.setProperty?"setProperty":"setAttribute",[x,L]))}); return J.cssText||""}; pIe=function(X){g.i8(X)?X=g.Yu(X):(X=g.g6(X),g.u8(X,"cssText"));return X}; g.M8=function(X){var J,L=J=0,x=!1;X=X.split(GDm);for(var Q=0;Q.4?-1:1;return(J==0?null:J)==-1?"rtl":"ltr"}; g.Hp=function(X){if(X instanceof yd||X instanceof ns||X instanceof Vd)return X;if(typeof X.next=="function")return new yd(function(){return X}); if(typeof X[Symbol.iterator]=="function")return new yd(function(){return X[Symbol.iterator]()}); if(typeof X.lW=="function")return new yd(function(){return X.lW()}); throw Error("Not an iterator or iterable.");}; yd=function(X){this.K=X}; ns=function(X){this.K=X}; Vd=function(X){yd.call(this,function(){return X}); this.N=X}; OM=function(X,J,L,x,Q,K,q,D){this.L=X;this.W=J;this.N=L;this.j=x;this.T=Q;this.B=K;this.K=q;this.S=D}; af=function(X,J){if(J==0)return X.L;if(J==1)return X.K;var L=Fc(X.L,X.N,J),x=Fc(X.N,X.T,J);X=Fc(X.T,X.K,J);L=Fc(L,x,J);x=Fc(x,X,J);return Fc(L,x,J)}; lIm=function(X,J){var L=(J-X.L)/(X.K-X.L);if(L<=0)return 0;if(L>=1)return 1;for(var x=0,Q=1,K=0,q=0;q<8;q++){K=af(X,L);var D=(af(X,L+1E-6)-K)/1E-6;if(Math.abs(K-J)<1E-6)return L;if(Math.abs(D)<1E-6)break;else K1E-6&&q<8;q++)K=0}; g.uc=function(X){g.G.call(this);this.B=1;this.N=[];this.T=0;this.L=[];this.K={};this.W=!!X}; BgI=function(X,J,L){g.dJ(function(){X.apply(J,L)})}; g.of=function(X){this.L=X}; bc=function(X){this.L=X}; skA=function(X){this.data=X}; NgA=function(X){return X===void 0||X instanceof skA?X:new skA(X)}; Sg=function(X){this.L=X}; g.UYY=function(X){var J=X.creation;X=X.expiration;return!!X&&Xg.$u()}; g.Pp=function(X){this.L=X}; mYA=function(){}; cp=function(){}; EM=function(X){this.L=X;this.K=null}; Yq=function(X){if(X.L==null)throw Error("Storage mechanism: Storage unavailable");X.isAvailable()||o3(Error("Storage mechanism: Storage unavailable"))}; hJ=function(){var X=null;try{X=g.Ao.localStorage||null}catch(J){}EM.call(this,X)}; kDS=function(){var X=null;try{X=g.Ao.sessionStorage||null}catch(J){}EM.call(this,X)}; z9=function(X,J){this.K=X;this.L=J+"::"}; g.Wp=function(X){var J=new hJ;return J.isAvailable()?X?new z9(J,X):J:null}; ps=function(X,J){this.L=X;this.K=J}; rG=function(X){this.L=[];if(X)a:{if(X instanceof rG){var J=X.bT();X=X.Pq();if(this.L.length<=0){for(var L=this.L,x=0;x>>6:(K<65536?D[L++]=224|K>>>12:(D[L++]=240|K>>>18,D[L++]=128|K>>>12&63),D[L++]=128|K>>> 6&63),D[L++]=128|K&63);return D}; G9=function(X){for(var J=X.length;--J>=0;)X[J]=0}; fs=function(X,J,L,x,Q){this.rh=X;this.IH=J;this.d4=L;this.hf=x;this.yI=Q;this.TM=X&&X.length}; eg=function(X,J){this.OE=X;this.JE=0;this.aI=J}; FC=function(X,J){X.zc[X.pending++]=J&255;X.zc[X.pending++]=J>>>8&255}; lc=function(X,J,L){X.Z3>16-L?(X.T4|=J<>16-X.Z3,X.Z3+=L-16):(X.T4|=J<>>=1,L<<=1;while(--J>0);return L>>>1}; L5Z=function(X,J,L){var x=Array(16),Q=0,K;for(K=1;K<=15;K++)x[K]=Q=Q+L[K-1]<<1;for(L=0;L<=J;L++)Q=X[L*2+1],Q!==0&&(X[L*2]=JgA(x[Q]++,Q))}; xpA=function(X){var J;for(J=0;J<286;J++)X.KA[J*2]=0;for(J=0;J<30;J++)X.wi[J*2]=0;for(J=0;J<19;J++)X.bJ[J*2]=0;X.KA[512]=1;X.Nf=X.Mj=0;X.wF=X.matches=0}; iAA=function(X){X.Z3>8?FC(X,X.T4):X.Z3>0&&(X.zc[X.pending++]=X.T4);X.T4=0;X.Z3=0}; QgS=function(X,J,L){iAA(X);FC(X,L);FC(X,~L);T9.rd(X.zc,X.window,J,L,X.pending);X.pending+=L}; K58=function(X,J,L,x){var Q=J*2,K=L*2;return X[Q]>>7)];Rf(X,q,L);D=kq[q];D!==0&&(Q-=Zg[q],lc(X,Q,D))}}while(x>1;q>=1;q--)Bp(X,L,q);C=K;do q=X.jW[1],X.jW[1]=X.jW[X.n7--],Bp(X,L,1),x=X.jW[1],X.jW[--X.Ct]=q,X.jW[--X.Ct]=x,L[C*2]=L[q*2]+L[x*2],X.depth[C]=(X.depth[q]>=X.depth[x]?X.depth[q]:X.depth[x])+1,L[q*2+1]=L[x*2+1]=C,X.jW[1]=C++,Bp(X,L,1);while(X.n7>= 2);X.jW[--X.Ct]=X.jW[1];q=J.OE;C=J.JE;x=J.aI.rh;Q=J.aI.TM;K=J.aI.IH;var M=J.aI.d4,y=J.aI.yI,n,V=0;for(n=0;n<=15;n++)X.vN[n]=0;q[X.jW[X.Ct]*2+1]=0;for(J=X.Ct+1;J<573;J++){var H=X.jW[J];n=q[q[H*2+1]*2+1]+1;n>y&&(n=y,V++);q[H*2+1]=n;if(!(H>C)){X.vN[n]++;var O=0;H>=M&&(O=K[H-M]);var u=q[H*2];X.Nf+=u*(n+O);Q&&(X.Mj+=u*(x[H*2+1]+O))}}if(V!==0){do{for(n=y-1;X.vN[n]===0;)n--;X.vN[n]--;X.vN[n+1]+=2;X.vN[y]--;V-=2}while(V>0);for(n=y;n!==0;n--)for(H=X.vN[n];H!==0;)x=X.jW[--J],x>C||(q[x*2+1]!==n&&(X.Nf+=(n-q[x* 2+1])*q[x*2],q[x*2+1]=n),H--)}L5Z(L,D,X.vN)}; Izm=function(X,J,L){var x,Q=-1,K=J[1],q=0,D=7,C=4;K===0&&(D=138,C=3);J[(L+1)*2+1]=65535;for(x=0;x<=L;x++){var M=K;K=J[(x+1)*2+1];++q>>=1)if(J&1&&X.KA[L*2]!==0)return 0;if(X.KA[18]!==0||X.KA[20]!==0||X.KA[26]!==0)return 1;for(L=32;L<256;L++)if(X.KA[L*2]!==0)return 1;return 0}; X$=function(X,J,L){X.zc[X.OU+X.wF*2]=J>>>8&255;X.zc[X.OU+X.wF*2+1]=J&255;X.zc[X.gW+X.wF]=L&255;X.wF++;J===0?X.KA[L*2]++:(X.matches++,J--,X.KA[(sM[L]+256+1)*2]++,X.wi[(J<256?mM[J]:mM[256+(J>>>7)])*2]++);return X.wF===X.ZN-1}; Lp=function(X,J){X.msg=JI[J];return J}; xP=function(X){for(var J=X.length;--J>=0;)X[J]=0}; iy=function(X){var J=X.state,L=J.pending;L>X.Xc&&(L=X.Xc);L!==0&&(T9.rd(X.output,J.zc,J.hD,L,X.M7),X.M7+=L,J.hD+=L,X.Wi+=L,X.Xc-=L,J.pending-=L,J.pending===0&&(J.hD=0))}; qD=function(X,J){var L=X.Nl>=0?X.Nl:-1,x=X.fp-X.Nl,Q=0;if(X.level>0){X.xi.Tl===2&&(X.xi.Tl=Dpm(X));AJ(X,X.ra);AJ(X,X.Fq);Izm(X,X.KA,X.ra.JE);Izm(X,X.wi,X.Fq.JE);AJ(X,X.yn);for(Q=18;Q>=3&&X.bJ[$pv[Q]*2+1]===0;Q--);X.Nf+=3*(Q+1)+5+5+4;var K=X.Nf+3+7>>>3;var q=X.Mj+3+7>>>3;q<=K&&(K=q)}else K=q=x+5;if(x+4<=K&&L!==-1)lc(X,J?1:0,3),QgS(X,L,x);else if(X.strategy===4||q===K)lc(X,2+(J?1:0),3),qQP(X,QX,Kp);else{lc(X,4+(J?1:0),3);L=X.ra.JE+1;x=X.Fq.JE+1;Q+=1;lc(X,L-257,5);lc(X,x-1,5);lc(X,Q-4,4);for(K=0;K>>8&255;X.zc[X.pending++]=J&255}; CqY=function(X,J){var L=X.vA,x=X.fp,Q=X.pI,K=X.sb,q=X.fp>X.a_-262?X.fp-(X.a_-262):0,D=X.window,C=X.Q7,M=X.E1,y=X.fp+258,n=D[x+Q-1],V=D[x+Q];X.pI>=X.Gy&&(L>>=2);K>X.Cp&&(K=X.Cp);do{var H=J;if(D[H+Q]===V&&D[H+Q-1]===n&&D[H]===D[x]&&D[++H]===D[x+1]){x+=2;for(H++;D[++x]===D[++H]&&D[++x]===D[++H]&&D[++x]===D[++H]&&D[++x]===D[++H]&&D[++x]===D[++H]&&D[++x]===D[++H]&&D[++x]===D[++H]&&D[++x]===D[++H]&&xQ){X.xR=J;Q=H;if(H>=K)break;n=D[x+Q-1];V=D[x+Q]}}}while((J=M[J&C])>q&&--L!== 0);return Q<=X.Cp?Q:X.Cp}; Cp=function(X){var J=X.a_,L;do{var x=X.Pm-X.Cp-X.fp;if(X.fp>=J+(J-262)){T9.rd(X.window,X.window,J,J,0);X.xR-=J;X.fp-=J;X.Nl-=J;var Q=L=X.qY;do{var K=X.head[--Q];X.head[Q]=K>=J?K-J:0}while(--L);Q=L=J;do K=X.E1[--Q],X.E1[Q]=K>=J?K-J:0;while(--L);x+=J}if(X.xi.k7===0)break;Q=X.xi;L=X.window;K=X.fp+X.Cp;var q=Q.k7;q>x&&(q=x);q===0?L=0:(Q.k7-=q,T9.rd(L,Q.input,Q.Zc,q,K),Q.state.wrap===1?Q.g0=DB(Q.g0,L,q,K):Q.state.wrap===2&&(Q.g0=$P(Q.g0,L,q,K)),Q.Zc+=q,Q.wd+=q,L=q);X.Cp+=L;if(X.Cp+X.oi>=3)for(x=X.fp-X.oi, X.n3=X.window[x],X.n3=(X.n3<=3&&(X.n3=(X.n3<=3)if(L=X$(X,X.fp-X.xR,X.NQ-3),X.Cp-=X.NQ,X.NQ<=X.I5&&X.Cp>=3){X.NQ--;do X.fp++,X.n3=(X.n3<=3&&(X.n3=(X.n3<4096)&&(X.NQ=2));if(X.pI>=3&&X.NQ<=X.pI){x=X.fp+X.Cp-3;L=X$(X,X.fp-1-X.cX,X.pI-3);X.Cp-=X.pI-1;X.pI-=2;do++X.fp<=x&&(X.n3=(X.n3<=3&&X.fp>0&&(x=X.fp-1,L=K[x],L===K[++x]&&L===K[++x]&&L===K[++x])){for(Q=X.fp+258;L===K[++x]&&L===K[++x]&&L===K[++x]&&L===K[++x]&&L===K[++x]&&L===K[++x]&&L===K[++x]&&L===K[++x]&&xX.Cp&&(X.NQ=X.Cp)}X.NQ>=3?(L=X$(X,1,X.NQ-3),X.Cp-=X.NQ,X.fp+=X.NQ,X.NQ=0):(L=X$(X,0,X.window[X.fp]),X.Cp--,X.fp++);if(L&&(qD(X,!1),X.xi.Xc===0))return 1}X.oi=0;return J=== 4?(qD(X,!0),X.xi.Xc===0?3:4):X.wF&&(qD(X,!1),X.xi.Xc===0)?1:2}; ygA=function(X,J){for(var L;;){if(X.Cp===0&&(Cp(X),X.Cp===0)){if(J===0)return 1;break}X.NQ=0;L=X$(X,0,X.window[X.fp]);X.Cp--;X.fp++;if(L&&(qD(X,!1),X.xi.Xc===0))return 1}X.oi=0;return J===4?(qD(X,!0),X.xi.Xc===0?3:4):X.wF&&(qD(X,!1),X.xi.Xc===0)?1:2}; np=function(X,J,L,x,Q){this.q6=X;this.RL=J;this.zMq=L;this.rL=x;this.func=Q}; nWe=function(){this.xi=null;this.status=0;this.zc=null;this.wrap=this.pending=this.hD=this.Bq=0;this.ul=null;this.Jt=0;this.method=8;this.E9=-1;this.Q7=this.KU=this.a_=0;this.window=null;this.Pm=0;this.head=this.E1=null;this.sb=this.Gy=this.strategy=this.level=this.I5=this.vA=this.pI=this.Cp=this.xR=this.fp=this.TZ=this.cX=this.NQ=this.Nl=this.J4=this.Uy=this.b1=this.qY=this.n3=0;this.KA=new T9.K7(1146);this.wi=new T9.K7(122);this.bJ=new T9.K7(78);xP(this.KA);xP(this.wi);xP(this.bJ);this.yn=this.Fq= this.ra=null;this.vN=new T9.K7(16);this.jW=new T9.K7(573);xP(this.jW);this.Ct=this.n7=0;this.depth=new T9.K7(573);xP(this.depth);this.Z3=this.T4=this.oi=this.matches=this.Mj=this.Nf=this.OU=this.wF=this.ZN=this.gW=0}; Vxm=function(X,J){if(!X||!X.state||J>5||J<0)return X?Lp(X,-2):-2;var L=X.state;if(!X.output||!X.input&&X.k7!==0||L.status===666&&J!==4)return Lp(X,X.Xc===0?-5:-2);L.xi=X;var x=L.E9;L.E9=J;if(L.status===42)if(L.wrap===2)X.g0=0,IY(L,31),IY(L,139),IY(L,8),L.ul?(IY(L,(L.ul.text?1:0)+(L.ul.XM?2:0)+(L.ul.extra?4:0)+(L.ul.name?8:0)+(L.ul.comment?16:0)),IY(L,L.ul.time&255),IY(L,L.ul.time>>8&255),IY(L,L.ul.time>>16&255),IY(L,L.ul.time>>24&255),IY(L,L.level===9?2:L.strategy>=2||L.level<2?4:0),IY(L,L.ul.os& 255),L.ul.extra&&L.ul.extra.length&&(IY(L,L.ul.extra.length&255),IY(L,L.ul.extra.length>>8&255)),L.ul.XM&&(X.g0=$P(X.g0,L.zc,L.pending,0)),L.Jt=0,L.status=69):(IY(L,0),IY(L,0),IY(L,0),IY(L,0),IY(L,0),IY(L,L.level===9?2:L.strategy>=2||L.level<2?4:0),IY(L,3),L.status=113);else{var Q=8+(L.KU-8<<4)<<8;Q|=(L.strategy>=2||L.level<2?0:L.level<6?1:L.level===6?2:3)<<6;L.fp!==0&&(Q|=32);L.status=113;gC(L,Q+(31-Q%31));L.fp!==0&&(gC(L,X.g0>>>16),gC(L,X.g0&65535));X.g0=1}if(L.status===69)if(L.ul.extra){for(Q= L.pending;L.Jt<(L.ul.extra.length&65535)&&(L.pending!==L.Bq||(L.ul.XM&&L.pending>Q&&(X.g0=$P(X.g0,L.zc,L.pending-Q,Q)),iy(X),Q=L.pending,L.pending!==L.Bq));)IY(L,L.ul.extra[L.Jt]&255),L.Jt++;L.ul.XM&&L.pending>Q&&(X.g0=$P(X.g0,L.zc,L.pending-Q,Q));L.Jt===L.ul.extra.length&&(L.Jt=0,L.status=73)}else L.status=73;if(L.status===73)if(L.ul.name){Q=L.pending;do{if(L.pending===L.Bq&&(L.ul.XM&&L.pending>Q&&(X.g0=$P(X.g0,L.zc,L.pending-Q,Q)),iy(X),Q=L.pending,L.pending===L.Bq)){var K=1;break}K=L.JtQ&&(X.g0=$P(X.g0,L.zc,L.pending-Q,Q));K===0&&(L.Jt=0,L.status=91)}else L.status=91;if(L.status===91)if(L.ul.comment){Q=L.pending;do{if(L.pending===L.Bq&&(L.ul.XM&&L.pending>Q&&(X.g0=$P(X.g0,L.zc,L.pending-Q,Q)),iy(X),Q=L.pending,L.pending===L.Bq)){K=1;break}K=L.JtQ&&(X.g0=$P(X.g0,L.zc,L.pending-Q,Q));K===0&&(L.status=103)}else L.status= 103;L.status===103&&(L.ul.XM?(L.pending+2>L.Bq&&iy(X),L.pending+2<=L.Bq&&(IY(L,X.g0&255),IY(L,X.g0>>8&255),X.g0=0,L.status=113)):L.status=113);if(L.pending!==0){if(iy(X),X.Xc===0)return L.E9=-1,0}else if(X.k7===0&&(J<<1)-(J>4?9:0)<=(x<<1)-(x>4?9:0)&&J!==4)return Lp(X,-5);if(L.status===666&&X.k7!==0)return Lp(X,-5);if(X.k7!==0||L.Cp!==0||J!==0&&L.status!==666){x=L.strategy===2?ygA(L,J):L.strategy===3?MxZ(L,J):VX[L.level].func(L,J);if(x===3||x===4)L.status=666;if(x===1||x===3)return X.Xc===0&&(L.E9= -1),0;if(x===2&&(J===1?(lc(L,2,3),Rf(L,256,QX),L.Z3===16?(FC(L,L.T4),L.T4=0,L.Z3=0):L.Z3>=8&&(L.zc[L.pending++]=L.T4&255,L.T4>>=8,L.Z3-=8)):J!==5&&(lc(L,0,3),QgS(L,0,0),J===3&&(xP(L.head),L.Cp===0&&(L.fp=0,L.Nl=0,L.oi=0))),iy(X),X.Xc===0))return L.E9=-1,0}if(J!==4)return 0;if(L.wrap<=0)return 1;L.wrap===2?(IY(L,X.g0&255),IY(L,X.g0>>8&255),IY(L,X.g0>>16&255),IY(L,X.g0>>24&255),IY(L,X.wd&255),IY(L,X.wd>>8&255),IY(L,X.wd>>16&255),IY(L,X.wd>>24&255)):(gC(L,X.g0>>>16),gC(L,X.g0&65535));iy(X);L.wrap>0&& (L.wrap=-L.wrap);return L.pending!==0?0:1}; Hu=function(X){if(!(this instanceof Hu))return new Hu(X);X=this.options=T9.assign({level:-1,method:8,chunkSize:16384,v2:15,NIl:8,strategy:0,to:""},X||{});X.raw&&X.v2>0?X.v2=-X.v2:X.YL&&X.v2>0&&X.v2<16&&(X.v2+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.xi=new HAR;this.xi.Xc=0;var J=this.xi;var L=X.level,x=X.method,Q=X.v2,K=X.NIl,q=X.strategy;if(J){var D=1;L===-1&&(L=6);Q<0?(D=0,Q=-Q):Q>15&&(D=2,Q-=16);if(K<1||K>9||x!==8||Q<8||Q>15||L<0||L>9||q<0||q>4)J=Lp(J,-2);else{Q===8&&(Q=9); var C=new nWe;J.state=C;C.xi=J;C.wrap=D;C.ul=null;C.KU=Q;C.a_=1<>=7;K<30;K++)for(Zg[K]=q<<7,Q=0;Q<1<=M.a_&&(J===0&&(xP(M.head),M.fp=0,M.Nl=0,M.oi=0),L=new T9.Hx(M.a_),T9.rd(L,K,q-M.a_,M.a_,0),K=L,q=M.a_);L=X.k7;x=X.Zc;Q=X.input;X.k7=q;X.Zc=0;X.input=K;for(Cp(M);M.Cp>=3;){K=M.fp;q=M.Cp-2;do M.n3=(M.n3<=(0,L[47])((0,L[77])(L[72]),L[41],L[72],L[new Date(I[63])/1E3]),(0,L[33])(L[72], L[23])<(0,L[47])(((0,L[46])(L[66],L[15]),L[46])(L[44],L[71]),L[32],L[28],L[4]),(0,L[47])((((0,L[32])(L[44],L[79]),L[9])(L[40],L[51]),L[31])(L[29],L[60]),L[31],L[5],L[50]),L[29],L[2]),0))&&((((((0,L[50])(L[53],L[54]),L[33])(L[69],L[29])*(((0,L[50])(L[75],L[70]),L[3])(L[30])>(0,L[42])(L[81],L[68])),(0,L[55])(L[47],L[51]),L[55])(L[47],L[16]),L[21])(L[75],(0,L[35])(),L[6]),L[55])(L[81],L[58])%(0,L[59])(L[47])>=(0,L[42])(L[75],L[40]))-((0,L[21])(L[75],(0,L[35])(),L[6]),L[33])(L[67],L[47])}finally{L[60]<= -7?((((0,L[42])(L[75],L[36]),L[55])(L[30],L[72]),L[50])(L[0],L[77]),(0,L[53])(L[58],L[57])):(((0,L[67])((0,L[new Date(I[30])/1E3*-135+36+19166])(L[9],(0,L[56])(),L[17]),L[53],L[58],L[82]),L[14])(L[3]),L[32])(L[9],(0,L[46])(),L[17])}try{(L[39]<=8||((0,L[67])((0,L[67])(((((((((0,L[53])(L[41],L[38]),L[32])(L[58],(0,L[6])(),L[17]),L[32])(L[58],(0,L[46])(),L[17]),L[32])(L[58],(0,L[46])(),L[17]),L[32])(L[3],(0,L[6])(),L[17]),L[32])(L[3],(0,L[56])(),L[17]),L[53])(L[41],L[25]),(0,L[14])(L[41]),L[61])(L[41], L[39]),L[32],L[3],(0,L[6])(),L[17]),L[52],L[64],L[55]),void 0))&&(0,L[63])(L[52],(0,L[23])((0,L[23])((0,L[44])(L[19],L[9]),L[44],(0,L[61])(L[9],L[71]),L[74],L[64]),L[53],(0,L[23])((0,L[32])(L[9],(0,L[46])(),L[17]),L[61],(0,L[67])((0,L[66])(L[11],L[18]),L[44],L[45],L[9]),L[9],L[new Date(I[29])/1E3]),L[3],L[33]),(0,L[53])(L[9],L[4]),(0,L[61])(L[9],L[54]),L[58],L[28])}catch(x){(0,L[57562+new Date(I[43])/1E3])(L[9],L[0])}}catch(x){return I[77]+X}return J[I[9]](I[24])}; g.dC=function(X){this.name=X}; jgY=function(X){this.rI=lt(X)}; uy=function(X){this.rI=lt(X)}; oY=function(X){this.rI=lt(X)}; TJm=function(X){this.rI=lt(X)}; by=function(X){this.rI=lt(X)}; Sb=function(X){this.rI=lt(X)}; Pu=function(X){this.rI=lt(X)}; cu=function(X){this.rI=lt(X)}; EI=function(X){this.rI=lt(X)}; YP=function(X){this.rI=lt(X)}; hI=function(X){this.rI=lt(X)}; zs=function(X){this.rI=lt(X)}; Wu=function(X){this.rI=lt(X)}; pp=function(X){this.rI=lt(X)}; rC=function(X){this.rI=lt(X)}; vu=function(X){this.rI=lt(X,500)}; jb=function(X){this.rI=lt(X)}; Ts=function(X){this.rI=lt(X)}; GLR=function(X){this.rI=lt(X)}; fzz=function(){return g.Ld("yt.ads.biscotti.lastId_")||""}; e6S=function(X){g.JS("yt.ads.biscotti.lastId_",X)}; F$=function(){var X=arguments,J=eb;X.length>1?J[X[0]]=X[1]:X.length===1&&Object.assign(J,X[0])}; g.ly=function(X,J){return X in eb?eb[X]:J}; RY=function(X){var J=eb.EXPERIMENT_FLAGS;return J?J[X]:void 0}; F5o=function(X){Bu.forEach(function(J){return J(X)})}; g.ND=function(X){return X&&window.yterr?function(){try{return X.apply(this,arguments)}catch(J){g.sI(J)}}:X}; g.sI=function(X){var J=g.Ld("yt.logging.errors.log");J?J(X,"ERROR",void 0,void 0,void 0,void 0,void 0):(J=g.ly("ERRORS",[]),J.push([X,"ERROR",void 0,void 0,void 0,void 0,void 0]),F$("ERRORS",J));F5o(X)}; UI=function(X,J,L,x,Q){var K=g.Ld("yt.logging.errors.log");K?K(X,"WARNING",J,L,x,void 0,Q):(K=g.ly("ERRORS",[]),K.push([X,"WARNING",J,L,x,void 0,Q]),F$("ERRORS",K))}; mJ=function(X,J){J=X.split(J);for(var L={},x=0,Q=J.length;x1?X[1]:X[0])):{}}; J8=function(X,J){return sgA(X,J||{},!0)}; LU=function(X,J){return sgA(X,J||{},!1)}; sgA=function(X,J,L){var x=X.split("#",2);X=x[0];x=x.length>1?"#"+x[1]:"";var Q=X.split("?",2);X=Q[0];Q=ZB(Q[1]||"");for(var K in J)if(L||!g.DR(Q,K))Q[K]=J[K];return g.Hw(X,Q)+x}; xb=function(X){if(!J)var J=window.location.href;var L=g.gA(X)[1]||null,x=g.Dk(X);L&&x?(X=g.gA(X),J=g.gA(J),X=X[3]==J[3]&&X[1]==J[1]&&X[4]==J[4]):X=x?g.Dk(J)===x&&(Number(g.gA(J)[4]||null)||null)===(Number(g.gA(X)[4]||null)||null):!0;return X}; iZ=function(X){X||(X=document.location.href);X=g.gA(X)[1]||null;return X!==null&&X==="https"}; QQ=function(X){X=NJo(X);return X===null?!1:X[0]==="com"&&X[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; UpW=function(X){X=NJo(X);return X===null?!1:X[1]==="google"?!0:X[2]==="google"?X[0]==="au"&&X[1]==="com"?!0:X[0]==="uk"&&X[1]==="co"?!0:!1:!1}; NJo=function(X){X=g.Dk(X);return X!==null?X.split(".").reverse():null}; lzm=function(X){return X&&X.match(mpP)?X:c_(X)}; Ih=function(X){var J=KU;X=X===void 0?fzz():X;var L=Object,x=L.assign,Q=qV(J);var K=J.L;try{var q=K.screenX;var D=K.screenY}catch(Y){}try{var C=K.outerWidth;var M=K.outerHeight}catch(Y){}try{var y=K.innerWidth;var n=K.innerHeight}catch(Y){}try{var V=K.screenLeft;var H=K.screenTop}catch(Y){}try{y=K.innerWidth,n=K.innerHeight}catch(Y){}try{var O=K.screen.availWidth;var u=K.screen.availTop}catch(Y){}K=[V,H,q,D,O,u,C,M,y,n];q=iQe(!1,J.L.top);D={};var S=S===void 0?g.Ao:S;C=new TI;"SVGElement"in S&&"createElementNS"in S.document&&C.set(0);M=iJz();M["allow-top-navigation-by-user-activation"]&&C.set(1);M["allow-popups-to-escape-sandbox"]&&C.set(2);S.crypto&&S.crypto.subtle&&C.set(3);"TextDecoder"in S&&"TextEncoder"in S&&C.set(4);S=uiP(C);J=(D.bc=S,D.bih=q.height,D.biw=q.width,D.brdim=K.join(),D.vis=Q4(J.K),D.wgl=!!YD.WebGLRenderingContext,D);L=x.call(L,Q,J);L.ca_type="image";X&&(L.bid=X);return L}; qV=function(X){var J={};J.dt=kLz;J.flash="0";a:{try{var L=X.L.top.location.href}catch(y){X=2;break a}X=L?L===X.K.location.href?0:1:2}J=(J.frm=X,J);try{J.u_tz=-(new Date).getTimezoneOffset();var x=x===void 0?YD:x;try{var Q=x.history.length}catch(y){Q=0}J.u_his=Q;var K;J.u_h=(K=YD.screen)==null?void 0:K.height;var q;J.u_w=(q=YD.screen)==null?void 0:q.width;var D;J.u_ah=(D=YD.screen)==null?void 0:D.availHeight;var C;J.u_aw=(C=YD.screen)==null?void 0:C.availWidth;var M;J.u_cd=(M=YD.screen)==null?void 0: M.colorDepth}catch(y){}return J}; Agz=function(){if(!ZAY)return null;var X=ZAY();return"open"in X?X:null}; g.DE=function(X){switch(gP(X)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; gP=function(X){return X&&"status"in X?X.status:-1}; g.$b=function(X,J){typeof X==="function"&&(X=g.ND(X));return window.setTimeout(X,J)}; g.CU=function(X,J){typeof X==="function"&&(X=g.ND(X));return window.setInterval(X,J)}; g.MV=function(X){window.clearTimeout(X)}; g.yQ=function(X){window.clearInterval(X)}; g.VQ=function(X){X=nU(X);return typeof X==="string"&&X==="false"?!1:!!X}; g.H6=function(X,J){X=nU(X);return X===void 0&&J!==void 0?J:Number(X||0)}; Ov=function(){return g.ly("EXPERIMENTS_TOKEN","")}; nU=function(X){return g.ly("EXPERIMENT_FLAGS",{})[X]}; ah=function(){for(var X=[],J=g.ly("EXPERIMENTS_FORCED_FLAGS",{}),L=g.d(Object.keys(J)),x=L.next();!x.done;x=L.next())x=x.value,X.push({key:x,value:String(J[x])});L=g.ly("EXPERIMENT_FLAGS",{});x=g.d(Object.keys(L));for(var Q=x.next();!Q.done;Q=x.next())Q=Q.value,Q.startsWith("force_")&&J[Q]===void 0&&X.push({key:Q,value:String(L[Q])});return X}; wP=function(X,J,L,x,Q,K,q,D){function C(){(M&&"readyState"in M?M.readyState:0)===4&&J&&g.ND(J)(M)} L=L===void 0?"GET":L;x=x===void 0?"":x;D=D===void 0?!1:D;var M=Agz();if(!M)return null;"onloadend"in M?M.addEventListener("loadend",C,!1):M.onreadystatechange=C;g.VQ("debug_forward_web_query_parameters")&&(X=XOm(X));M.open(L,X,!0);K&&(M.responseType=K);q&&(M.withCredentials=!0);L=L==="POST"&&(window.FormData===void 0||!(x instanceof FormData));if(Q=JUm(X,Q))for(var y in Q)M.setRequestHeader(y,Q[y]),"content-type"===y.toLowerCase()&&(L=!1);L&&M.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(D&&"setAttributionReporting"in XMLHttpRequest.prototype){X={eventSourceEligible:!0,triggerEligible:!1};try{M.setAttributionReporting(X)}catch(n){UI(n)}}M.send(x);return M}; JUm=function(X,J){J=J===void 0?{}:J;var L=xb(X),x=g.ly("INNERTUBE_CLIENT_NAME"),Q=g.VQ("web_ajax_ignore_global_headers_if_set"),K;for(K in LxS){var q=g.ly(LxS[K]),D=K==="X-Goog-AuthUser"||K==="X-Goog-PageId";K!=="X-Goog-Visitor-Id"||q||(q=g.ly("VISITOR_DATA"));var C;if(!(C=!q)){if(!(C=L||(g.Dk(X)?!1:!0))){C=X;var M;if(M=g.VQ("add_auth_headers_to_remarketing_google_dot_com_ping")&&K==="Authorization"&&(x==="TVHTML5"||x==="TVHTML5_UNPLUGGED"||x==="TVHTML5_SIMPLY")&&UpW(C))C=$4(C)||"",C=C.split("/"), C="/"+(C.length>1?C[1]:""),M=C==="/pagead";C=M?!0:!1}C=!C}C||Q&&J[K]!==void 0||x==="TVHTML5_UNPLUGGED"&&D||(J[K]=q)}"X-Goog-EOM-Visitor-Id"in J&&"X-Goog-Visitor-Id"in J&&delete J["X-Goog-Visitor-Id"];if(L||!g.Dk(X))J["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(L||!g.Dk(X)){try{var y=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(n){}y&&(J["X-YouTube-Time-Zone"]=y)}document.location.hostname.endsWith("youtubeeducation.com")||!L&&g.Dk(X)||(J["X-YouTube-Ad-Signals"]= kP(Ih()));return J}; dP=function(X,J){J.method="POST";J.postParams||(J.postParams={});return g.t8(X,J)}; QBI=function(X,J){if(window.fetch&&J.format!=="XML"){var L={method:J.method||"GET",credentials:"same-origin"};J.headers&&(L.headers=J.headers);J.priority&&(L.priority=J.priority);X=xnP(X,J);var x=izZ(X,J);x&&(L.body=x);J.withCredentials&&(L.credentials="include");var Q=J.context||g.Ao,K=!1,q;fetch(X,L).then(function(D){if(!K){K=!0;q&&g.MV(q);var C=D.ok,M=function(y){y=y||{};C?J.onSuccess&&J.onSuccess.call(Q,y,D):J.onError&&J.onError.call(Q,y,D);J.onFinish&&J.onFinish.call(Q,y,D)}; (J.format||"JSON")==="JSON"&&(C||D.status>=400&&D.status<500)?D.json().then(M,function(){M(null)}):M(null)}}).catch(function(){J.onError&&J.onError.call(Q,{},{})}); X=J.timeout||0;J.onFetchTimeout&&X>0&&(q=g.$b(function(){K||(K=!0,g.MV(q),J.onFetchTimeout.call(J.context||g.Ao))},X))}else g.t8(X,J)}; g.t8=function(X,J){var L=J.format||"JSON";X=xnP(X,J);var x=izZ(X,J),Q=!1,K=Kx8(X,function(C){if(!Q){Q=!0;D&&g.MV(D);var M=g.DE(C),y=null,n=400<=C.status&&C.status<500,V=500<=C.status&&C.status<600;if(M||n||V)y=qgA(X,L,C,J.convertToSafeHtml);M&&(M=ICY(L,C,y));y=y||{};n=J.context||g.Ao;M?J.onSuccess&&J.onSuccess.call(n,C,y):J.onError&&J.onError.call(n,C,y);J.onFinish&&J.onFinish.call(n,C,y)}},J.method,x,J.headers,J.responseType,J.withCredentials); x=J.timeout||0;if(J.onTimeout&&x>0){var q=J.onTimeout;var D=g.$b(function(){Q||(Q=!0,K.abort(),g.MV(D),q.call(J.context||g.Ao,K))},x)}return K}; xnP=function(X,J){J.includeDomain&&(X=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+X);var L=g.ly("XSRF_FIELD_NAME");if(J=J.urlParams)J[L]&&delete J[L],X=J8(X,J);return X}; izZ=function(X,J){var L=g.ly("XSRF_FIELD_NAME"),x=g.ly("XSRF_TOKEN"),Q=J.postBody||"",K=J.postParams,q=g.ly("XSRF_FIELD_NAME"),D;J.headers&&(D=J.headers["Content-Type"]);J.excludeXsrf||g.Dk(X)&&!J.withCredentials&&g.Dk(X)!==document.location.hostname||J.method!=="POST"||D&&D!=="application/x-www-form-urlencoded"||J.postParams&&J.postParams[q]||(K||(K={}),K[L]=x);(g.VQ("ajax_parse_query_data_only_when_filled")&&K&&Object.keys(K).length>0||K)&&typeof Q==="string"&&(Q=ZB(Q),g.O1(Q,K),Q=J.postBodyFormat&& J.postBodyFormat==="JSON"?JSON.stringify(Q):g.Vs(Q));K=Q||K&&!g.Mx(K);!gxR&&K&&J.method!=="POST"&&(gxR=!0,g.sI(Error("AJAX request with postData should use POST")));return Q}; qgA=function(X,J,L,x){var Q=null;switch(J){case "JSON":try{var K=L.responseText}catch(q){throw x=Error("Error reading responseText"),x.params=X,UI(x),q;}X=L.getResponseHeader("Content-Type")||"";K&&X.indexOf("json")>=0&&(K.substring(0,5)===")]}'\n"&&(K=K.substring(5)),Q=JSON.parse(K));break;case "XML":if(X=(X=L.responseXML)?Dnm(X):null)Q={},g.mF(X.getElementsByTagName("*"),function(q){Q[q.tagName]=$nm(q)})}x&&Cxm(Q); return Q}; Cxm=function(X){if(g.Q0(X))for(var J in X)J==="html_content"||emZ(J,"_html")?X[J]=MK(X[J]):Cxm(X[J])}; ICY=function(X,J,L){if(J&&J.status===204)return!0;switch(X){case "JSON":return!!L;case "XML":return Number(L&&L.return_code)===0;case "RAW":return!0;default:return!!L}}; Dnm=function(X){return X?(X=("responseXML"in X?X.responseXML:X).getElementsByTagName("root"))&&X.length>0?X[0]:null:null}; $nm=function(X){var J="";g.mF(X.childNodes,function(L){J+=L.nodeValue}); return J}; XOm=function(X){var J=window.location.search,L=g.Dk(X);g.VQ("debug_handle_relative_url_for_query_forward_killswitch")||!L&&xb(X)&&(L=document.location.hostname);var x=$4(X);x=(L=L&&(L.endsWith("youtube.com")||L.endsWith("youtube-nocookie.com")))&&x&&x.startsWith("/api/");if(!L||x)return X;var Q=ZB(J),K={};g.mF(MFv,function(q){Q[q]&&(K[q]=Q[q])}); return LU(X,K)}; oh=function(X,J){var L=g.Vf(J),x;return(new g.og(function(Q,K){L.onSuccess=function(q){g.DE(q)?Q(new yUm(q)):K(new uZ("Request failed, status="+gP(q),"net.badstatus",q))}; L.onError=function(q){K(new uZ("Unknown request error","net.unknown",q))}; L.onTimeout=function(q){K(new uZ("Request timed out","net.timeout",q))}; x=g.t8(X,L)})).S1(function(Q){if(Q instanceof pA){var K; (K=x)==null||K.abort()}return hg(Q)})}; g.bZ=function(X,J,L,x,Q,K){function q(C,M,y){return C.S1(function(n){if(M<=0||gP(n.xhr)===403)return hg(new uZ("Request retried too many times","net.retryexhausted",n.xhr,n));var V=Math.pow(2,L-M+1)*y,H=Q>0?Math.min(Q,V):V;return D(y).then(function(){K&&K(n,M-1);return q(oh(X,J),M-1,H)})})} function D(C){return new g.og(function(M){setTimeout(M,C)})} Q=Q===void 0?-1:Q;return q(oh(X,J),L-1,x)}; uZ=function(X,J,L){y0.call(this,X+", errorCode="+J);this.errorCode=J;this.xhr=L;this.name="PromiseAjaxError"}; yUm=function(X){this.xhr=X}; S7=function(X){this.L=X===void 0?null:X;this.N=0;this.K=null}; P6=function(X){var J=new S7;X=X===void 0?null:X;J.N=2;J.K=X===void 0?null:X;return J}; c6=function(X){var J=new S7;X=X===void 0?null:X;J.N=1;J.K=X===void 0?null:X;return J}; g.h8=function(X,J,L,x,Q){Ev||Yb.set(""+X,J,{YI:L,path:"/",domain:x===void 0?"youtube.com":x,secure:Q===void 0?!1:Q})}; g.zo=function(X,J){if(!Ev)return Yb.get(""+X,J)}; g.W6=function(X,J,L){Ev||Yb.remove(""+X,J===void 0?"/":J,L===void 0?"youtube.com":L)}; nxS=function(){if(g.VQ("embeds_web_enable_cookie_detection_fix")){if(!g.Ao.navigator.cookieEnabled)return!1}else if(!Yb.isEnabled())return!1;if(!Yb.isEmpty())return!0;g.VQ("embeds_web_enable_cookie_detection_fix")?Yb.set("TESTCOOKIESENABLED","1",{YI:60,YMB:"none",secure:!0}):Yb.set("TESTCOOKIESENABLED","1",{YI:60});if(Yb.get("TESTCOOKIESENABLED")!=="1")return!1;Yb.remove("TESTCOOKIESENABLED");return!0}; g.F=function(X,J){if(X)return X[J.name]}; pU=function(X){var J=g.ly("INNERTUBE_HOST_OVERRIDE");J&&(X=String(J)+String(C3(X)));return X}; VFZ=function(X){var J={};g.VQ("json_condensed_response")&&(J.prettyPrint="false");return X=LU(X,J)}; rP=function(X,J){var L=L===void 0?{}:L;X={method:J===void 0?"POST":J,mode:xb(X)?"same-origin":"cors",credentials:xb(X)?"same-origin":"include"};J={};for(var x=g.d(Object.keys(L)),Q=x.next();!Q.done;Q=x.next())Q=Q.value,L[Q]&&(J[Q]=L[Q]);Object.keys(J).length>0&&(X.headers=J);return X}; v6=function(){var X=/Chrome\/(\d+)/.exec(g.vc());return X?parseFloat(X[1]):NaN}; j7=function(){var X=/\sCobalt\/(\S+)\s/.exec(g.vc());if(!X)return NaN;var J=[];X=g.d(X[1].split("."));for(var L=X.next();!L.done;L=X.next())L=parseInt(L.value,10),L>=0&&J.push(L);return parseFloat(J.join("."))}; Go=function(){return g.To("android")&&g.To("chrome")&&!(g.To("trident/")||g.To("edge/"))&&!g.To("cobalt")}; Hzo=function(){return g.To("armv7")||g.To("aarch64")||g.To("android")}; g.fU=function(){return g.To("cobalt")}; e7=function(){return g.To("cobalt")&&g.To("appletv")}; FU=function(){return g.To("(ps3; leanback shell)")||g.To("ps3")&&g.fU()}; Ozo=function(){return g.To("(ps4; leanback shell)")||g.To("ps4")&&g.fU()}; g.aCP=function(){return g.fU()&&(g.To("ps4 vr")||g.To("ps4 pro vr"))}; lZ=function(){var X=/WebKit\/([0-9]+)/.exec(g.vc());return!!(X&&parseInt(X[1],10)>=600)}; Rh=function(){var X=/WebKit\/([0-9]+)/.exec(g.vc());return!!(X&&parseInt(X[1],10)>=602)}; wOW=function(){return g.To("iemobile")||g.To("windows phone")&&g.To("edge")}; Uv=function(){return(B6||NV)&&g.To("applewebkit")&&!g.To("version")&&(!g.To("safari")||g.To("gsa/"))}; kb=function(){return g.mH&&g.To("version/")}; ZE=function(){return g.To("smart-tv")&&g.To("samsung")}; g.To=function(X){var J=g.vc();return J?J.toLowerCase().indexOf(X)>=0:!1}; A8=function(){return Qie()||Uv()||kb()?!0:g.ly("EOM_VISITOR_DATA")?!1:!0}; Xm=function(X,J){return J===void 0||J===null?X:J==="1"||J===!0||J===1||J==="True"?!0:!1}; J3=function(X,J,L){for(var x in L)if(L[x]==J)return L[x];return X}; Ll=function(X,J){return J===void 0||J===null?X:Number(J)}; x1=function(X,J){return J===void 0||J===null?X:J.toString()}; iu=function(X,J){if(J){if(X==="fullwidth")return Infinity;if(X==="fullheight")return 0}return X&&(J=X.match(tFv))&&(X=Number(J[2]),J=Number(J[1]),!isNaN(X)&&!isNaN(J)&&X>0)?J/X:NaN}; QV=function(X){var J=X.docid||X.video_id||X.videoId||X.id;if(J)return J;J=X.raw_player_response;J||(X=X.player_response)&&(J=JSON.parse(X));return J&&J.videoDetails&&J.videoDetails.videoId||null}; dnZ=function(X){return Kl(X,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.qk=function(X){return X==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||X==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; Kl=function(X,J){J=(J===void 0?0:J)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(J="EMBEDDED_PLAYER_MODE_PFL");var L=X.raw_embedded_player_response;if(!L&&(X=X.embedded_player_response))try{L=JSON.parse(X)}catch(x){return J}return L?J3(J,L.embeddedPlayerMode,ukY):J}; gE=function(X){y0.call(this,X.message||X.description||X.name);this.isMissing=X instanceof I2;this.isTimeout=X instanceof uZ&&X.errorCode=="net.timeout";this.isCanceled=X instanceof pA}; I2=function(){y0.call(this,"Biscotti ID is missing from server")}; oxY=function(){if(g.VQ("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!A8())return Error("User has not consented - not fetching biscotti id.");var X=g.ly("PLAYER_VARS",{});if(g.yf(X,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(dnZ(X))return Error("Biscotti id fetching has been disabled for pfl.")}; cUm=function(){var X=oxY();if(X!==void 0)return hg(X);Dl||(Dl=oh("//googleads.g.doubleclick.net/pagead/id",bzR).then(Sge).S1(function(J){return PxZ(2,J)})); return Dl}; Sge=function(X){X=X.xhr.responseText;if(!E1(X,")]}'"))throw new I2;X=JSON.parse(X.substr(4));if((X.type||1)>1)throw new I2;X=X.id;e6S(X);Dl=c6(X);Exo(18E5,2);return X}; PxZ=function(X,J){J=new gE(J);e6S("");Dl=P6(J);X>0&&Exo(12E4,X-1);throw J;}; Exo=function(X,J){g.$b(function(){oh("//googleads.g.doubleclick.net/pagead/id",bzR).then(Sge,function(L){return PxZ(J,L)}).S1(g.z1)},X)}; YgP=function(){try{var X=g.Ld("yt.ads.biscotti.getId_");return X?X():cUm()}catch(J){return hg(J)}}; z3R=function(X){X&&(X.dataset?X.dataset[h3P()]="true":xCv(X))}; WxY=function(X){return X?X.dataset?X.dataset[h3P()]:X.getAttribute("data-loaded"):null}; h3P=function(){return pOS.loaded||(pOS.loaded="loaded".replace(/\-([a-z])/g,function(X,J){return J.toUpperCase()}))}; rUv=function(){var X=document;if("visibilityState"in X)return X.visibilityState;var J=$1+"VisibilityState";if(J in X)return X[J]}; Cl=function(X,J){var L;Fe(X,function(x){L=J[x];return!!L}); return L}; Mk=function(X){if(X.requestFullscreen)X=X.requestFullscreen(void 0);else if(X.webkitRequestFullscreen)X=X.webkitRequestFullscreen();else if(X.mozRequestFullScreen)X=X.mozRequestFullScreen();else if(X.msRequestFullscreen)X=X.msRequestFullscreen();else if(X.webkitEnterFullscreen)X=X.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return X instanceof Promise?X:Promise.resolve()}; VV=function(X){var J;g.yV()?nl()==X&&(J=document):J=X;return J&&(X=Cl(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],J))?(J=X.call(J),J instanceof Promise?J:Promise.resolve()):Promise.resolve()}; vxv=function(X){return g.Ou(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(J){return"on"+J.toLowerCase()in X})}; jBo=function(){var X=document;return g.Ou(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(J){return"on"+J.toLowerCase()in X})}; g.yV=function(){return!!Cl(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; nl=function(X){X=X===void 0?!1:X;var J=Cl(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(X)for(;J&&J.shadowRoot;)J=J.shadowRoot.fullscreenElement;return J?J:null}; H2=function(X){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(X=X||window.event){this.event=X;for(var J in X)J in Tjz||(this[J]=X[J]);this.scale=X.scale;this.rotation=X.rotation;var L=X.target||X.srcElement;L&&L.nodeType==3&&(L=L.parentNode);this.target=L;var x=X.relatedTarget; if(x)try{x=x.nodeName?x:null}catch(Q){x=null}else this.type=="mouseover"?x=X.fromElement:this.type=="mouseout"&&(x=X.toElement);this.relatedTarget=x;this.clientX=X.clientX!=void 0?X.clientX:X.pageX;this.clientY=X.clientY!=void 0?X.clientY:X.pageY;this.keyCode=X.keyCode?X.keyCode:X.which;this.charCode=X.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=X.altKey;this.ctrlKey=X.ctrlKey;this.shiftKey=X.shiftKey;this.metaKey=X.metaKey;this.L=X.pageX;this.K=X.pageY}}catch(Q){}}; GhS=function(X){if(document.body&&document.documentElement){var J=document.body.scrollTop+document.documentElement.scrollTop;X.L=X.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);X.K=X.clientY+J}}; fCA=function(X,J,L,x){x=x===void 0?{}:x;X.addEventListener&&(J!="mouseenter"||"onmouseenter"in document?J!="mouseleave"||"onmouseenter"in document?J=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(J="MozMousePixelScroll"):J="mouseout":J="mouseover");return CJ(Ol,function(Q){var K=typeof Q[4]==="boolean"&&Q[4]==!!x,q=g.Q0(Q[4])&&g.Q0(x)&&g.nJ(Q[4],x);return!!Q.length&&Q[0]==X&&Q[1]==J&&Q[2]==L&&(K||q)})}; g.a2=function(X,J,L,x){x=x===void 0?{}:x;if(!X||!X.addEventListener&&!X.attachEvent)return"";var Q=fCA(X,J,L,x);if(Q)return Q;Q=++e3I.count+"";var K=!(J!="mouseenter"&&J!="mouseleave"||!X.addEventListener||"onmouseenter"in document);var q=K?function(D){D=new H2(D);if(!d0(D.relatedTarget,function(C){return C==X},!0))return D.currentTarget=X,D.type=J,L.call(X,D)}:function(D){D=new H2(D); D.currentTarget=X;return L.call(X,D)}; q=g.ND(q);X.addEventListener?(J=="mouseenter"&&K?J="mouseover":J=="mouseleave"&&K?J="mouseout":J=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(J="MozMousePixelScroll"),FxO()||typeof x==="boolean"?X.addEventListener(J,q,x):X.addEventListener(J,q,!!x.capture)):X.attachEvent("on"+J,q);Ol[Q]=[X,J,L,q,x];return Q}; R3m=function(X){return lC8(X,function(J){return g.Ls(J,"ytp-ad-has-logging-urls")})}; lC8=function(X,J){var L=document.body||document;return g.a2(L,"click",function(x){var Q=d0(x.target,function(K){return K===L||J(K)},!0); Q&&Q!==L&&!Q.disabled&&(x.currentTarget=Q,X.call(Q,x))})}; g.wE=function(X){X&&(typeof X=="string"&&(X=[X]),g.mF(X,function(J){if(J in Ol){var L=Ol[J],x=L[0],Q=L[1],K=L[3];L=L[4];x.removeEventListener?FxO()||typeof L==="boolean"?x.removeEventListener(Q,K,L):x.removeEventListener(Q,K,!!L.capture):x.detachEvent&&x.detachEvent("on"+Q,K);delete Ol[J]}}))}; t3=function(X){for(var J in Ol)Ol[J][0]==X&&g.wE(J)}; dE=function(X){X=X||window.event;var J;X.composedPath&&typeof X.composedPath==="function"?J=X.composedPath():J=X.path;J&&J.length?X=J[0]:(X=X||window.event,X=X.target||X.srcElement,X.nodeType==3&&(X=X.parentNode));return X}; uu=function(X){this.W=X;this.L=null;this.T=0;this.B=null;this.j=0;this.K=[];for(X=0;X<4;X++)this.K.push(0);this.N=0;this.aB=g.a2(window,"mousemove",(0,g.IH)(this.D,this));this.S=g.CU((0,g.IH)(this.Km,this),25)}; o2=function(X){g.G.call(this);this.W=[];this.Nx=X||this}; bu=function(X,J,L,x){for(var Q=0;Q0?L:0;L=x?Date.now()+x*1E3:0;if((x=x?(0,g.P2)():c2())&&window.JSON){typeof J!=="string"&&(J=JSON.stringify(J,void 0));try{x.set(X,J,L)}catch(Q){x.remove(X)}}}; g.Y1=function(X){var J=c2(),L=(0,g.P2)();if(!J&&!L||!window.JSON)return null;try{var x=J.get(X)}catch(Q){}if(typeof x!=="string")try{x=L.get(X)}catch(Q){}if(typeof x!=="string")return null;try{x=JSON.parse(x,void 0)}catch(Q){}return x}; sBv=function(){var X=(0,g.P2)();if(X&&(X=X.K("yt-player-quality")))return X.creation}; g.h3=function(X){try{var J=c2(),L=(0,g.P2)();J&&J.remove(X);L&&L.remove(X)}catch(x){}}; g.zb=function(){return g.Y1("yt-remote-session-screen-id")}; NjR=function(X){var J=this;this.K=void 0;this.L=!1;X.addEventListener("beforeinstallprompt",function(L){L.preventDefault();J.K=L}); X.addEventListener("appinstalled",function(){J.L=!0},{once:!0})}; W2=function(){if(!g.Ao.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Ao.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Ao.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Ao.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Ao.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(X){return"WEB_DISPLAY_MODE_UNKNOWN"}}; pl=function(){this.PL=!0}; UnY=function(){pl.instance||(pl.instance=new pl);return pl.instance}; mnY=function(X){switch(X){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}}; khZ=function(){this.L=g.ly("ALT_PREF_COOKIE_NAME","PREF");this.K=g.ly("ALT_PREF_COOKIE_DOMAIN","youtube.com");var X=g.zo(this.L);X&&this.parse(X)}; g.v2=function(){rE||(rE=new khZ);return rE}; g.jf=function(X,J){return!!((ZzS("f"+(Math.floor(J/31)+1))||0)&1<0;)switch(X=K9.shift(),X.type){case "ERROR":L9.ZI(X.payload);break;case "EVENT":L9.logEvent(X.eventType,X.payload)}}; IZ=function(X){qA||(L9?L9.ZI(X):(K9.push({type:"ERROR",payload:X}),K9.length>10&&K9.shift()))}; g_=function(X,J){qA||(L9?L9.logEvent(X,J):(K9.push({type:"EVENT",eventType:X,payload:J}),K9.length>10&&K9.shift()))}; Dc=function(X){if(X.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; $G=function(X){return X.substr(0,X.indexOf(":"))||X}; g.C9=function(X,J,L,x,Q){J=J===void 0?{}:J;L=L===void 0?Kzz[X]:L;x=x===void 0?qno[X]:x;Q=Q===void 0?IZm[X]:Q;g.Fm.call(this,L,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:X},J));this.type=X;this.message=L;this.level=x;this.L=Q;Object.setPrototypeOf(this,g.C9.prototype)}; MA=function(X,J){g.C9.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:J,foundObjectStores:X},Kzz.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,MA.prototype)}; yK=function(X,J){var L=Error.call(this);this.message=L.message;"stack"in L&&(this.stack=L.stack);this.index=X;this.objectStore=J;Object.setPrototypeOf(this,yK.prototype)}; VK=function(X,J,L,x){J=$G(J);var Q=X instanceof Error?X:Error("Unexpected error: "+X);if(Q instanceof g.C9)return Q;X={objectStoreNames:L,dbName:J,dbVersion:x};if(Q.name==="QuotaExceededError")return new g.C9("QUOTA_EXCEEDED",X);if(g.n9&&Q.name==="UnknownError")return new g.C9("QUOTA_MAYBE_EXCEEDED",X);if(Q instanceof yK)return new g.C9("MISSING_INDEX",Object.assign({},X,{objectStore:Q.objectStore,index:Q.index}));if(Q.name==="InvalidStateError"&&gvA.some(function(K){return Q.message.includes(K)}))return new g.C9("EXECUTE_TRANSACTION_ON_CLOSED_DB", X); if(Q.name==="AbortError")return new g.C9("UNKNOWN_ABORT",X,Q.message);Q.args=[Object.assign({},X,{name:"IdbError",Pd:Q.name})];Q.level="WARNING";return Q}; g.HR=function(X,J,L){var x=JO();return new g.C9("IDB_NOT_SUPPORTED",{context:{caller:X,publicName:J,version:L,hasSucceededOnce:x==null?void 0:x.hasSucceededOnce}})}; DcO=function(X){if(!X)throw Error();throw X;}; $cv=function(X){return X}; OV=function(X){this.L=X}; g.aZ=function(X){function J(Q){if(x.state.status==="PENDING"){x.state={status:"REJECTED",reason:Q};Q=g.d(x.K);for(var K=Q.next();!K.done;K=Q.next())K=K.value,K()}} function L(Q){if(x.state.status==="PENDING"){x.state={status:"FULFILLED",value:Q};Q=g.d(x.L);for(var K=Q.next();!K.done;K=Q.next())K=K.value,K()}} var x=this;this.state={status:"PENDING"};this.L=[];this.K=[];X=X.L;try{X(L,J)}catch(Q){J(Q)}}; CWo=function(X,J,L,x,Q){try{if(X.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var K=L(X.state.value);K instanceof g.aZ?w_(X,J,K,x,Q):x(K)}catch(q){Q(q)}}; M$W=function(X,J,L,x,Q){try{if(X.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var K=L(X.state.reason);K instanceof g.aZ?w_(X,J,K,x,Q):x(K)}catch(q){Q(q)}}; w_=function(X,J,L,x,Q){J===L?Q(new TypeError("Circular promise chain detected.")):L.then(function(K){K instanceof g.aZ?w_(X,J,K,x,Q):x(K)},function(K){Q(K)})}; yAO=function(X,J,L){function x(){L(X.error);K()} function Q(){J(X.result);K()} function K(){try{X.removeEventListener("success",Q),X.removeEventListener("error",x)}catch(q){}} X.addEventListener("success",Q);X.addEventListener("error",x)}; nve=function(X){return new Promise(function(J,L){yAO(X,J,L)})}; tO=function(X){return new g.aZ(new OV(function(J,L){yAO(X,J,L)}))}; d_=function(X,J){return new g.aZ(new OV(function(L,x){function Q(){var K=X?J(X):null;K?K.then(function(q){X=q;Q()},x):L()} Q()}))}; V$P=function(X,J){this.request=X;this.cursor=J}; HTW=function(X){return tO(X).then(function(J){return J?new V$P(X,J):null})}; g.OTm=function(X){X.cursor.continue(void 0);return HTW(X.request)}; aZv=function(X,J){this.L=X;this.options=J;this.transactionCount=0;this.N=Math.round((0,g.uT)());this.K=!1}; g.bT=function(X,J,L){X=X.L.createObjectStore(J,L);return new oZ(X)}; Sk=function(X,J){X.L.objectStoreNames.contains(J)&&X.L.deleteObjectStore(J)}; g.EV=function(X,J,L){return g.PR(X,[J],{mode:"readwrite",EH:!0},function(x){return g.cR(x.objectStore(J),L)})}; g.PR=function(X,J,L,x){var Q,K,q,D,C,M,y,n,V,H,O,u;return g.p(function(S){switch(S.K){case 1:var Y={mode:"readonly",EH:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof L==="string"?Y.mode=L:Object.assign(Y,L);Q=Y;X.transactionCount++;K=Q.EH?3:1;q=0;case 2:if(D){S.fm(4);break}q++;C=Math.round((0,g.uT)());g.oz(S,5);M=X.L.transaction(J,Q.mode);Y=new YG(M);Y=wNe(Y,x);return g.z(S,Y,7);case 7:return y=S.L,n=Math.round((0,g.uT)()),t$m(X,C,n,q,void 0,J.join(),Q),S.return(y);case 5:V=g.EA(S);H=Math.round((0,g.uT)()); O=VK(V,X.L.name,J.join(),X.L.version);if((u=O instanceof g.C9&&!O.L)||q>=K)t$m(X,C,H,q,O,J.join(),Q),D=O;S.fm(2);break;case 4:return S.return(Promise.reject(D))}})}; t$m=function(X,J,L,x,Q,K,q){J=L-J;Q?(Q instanceof g.C9&&(Q.type==="QUOTA_EXCEEDED"||Q.type==="QUOTA_MAYBE_EXCEEDED")&&g_("QUOTA_EXCEEDED",{dbName:$G(X.L.name),objectStoreNames:K,transactionCount:X.transactionCount,transactionMode:q.mode}),Q instanceof g.C9&&Q.type==="UNKNOWN_ABORT"&&(L-=X.N,L<0&&L>=2147483648&&(L=0),g_("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:K,transactionDuration:J,transactionCount:X.transactionCount,dbDuration:L}),X.K=!0),dcR(X,!1,x,K,J,q.tag),IZ(Q)):dcR(X,!0,x,K,J, q.tag)}; dcR=function(X,J,L,x,Q,K){g_("TRANSACTION_ENDED",{objectStoreNames:x,connectionHasUnknownAbortedTransaction:X.K,duration:Q,isSuccessful:J,tryCount:L,tag:K===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":K})}; oZ=function(X){this.L=X}; g.hO=function(X,J,L){X.L.createIndex(J,L,{unique:!1})}; ute=function(X,J){return g.zd(X,{query:J},function(L){return L.delete().then(function(){return g.WR(L)})}).then(function(){})}; ovR=function(X,J,L){var x=[];return g.zd(X,{query:J},function(Q){if(!(L!==void 0&&x.length>=L))return x.push(Q.getValue()),g.WR(Q)}).then(function(){return x})}; SnP=function(X){return"getAllKeys"in IDBObjectStore.prototype?tO(X.L.getAllKeys(void 0,void 0)):bTA(X)}; bTA=function(X){var J=[];return g.PWO(X,{query:void 0},function(L){J.push(L.cursor.primaryKey);return g.OTm(L)}).then(function(){return J})}; g.cR=function(X,J,L){return tO(X.L.put(J,L))}; g.zd=function(X,J,L){X=X.L.openCursor(J.query,J.direction);return p9(X).then(function(x){return d_(x,L)})}; g.PWO=function(X,J,L){var x=J.query;J=J.direction;X="openKeyCursor"in IDBObjectStore.prototype?X.L.openKeyCursor(x,J):X.L.openCursor(x,J);return HTW(X).then(function(Q){return d_(Q,L)})}; YG=function(X){var J=this;this.L=X;this.N=new Map;this.K=!1;this.done=new Promise(function(L,x){J.L.addEventListener("complete",function(){L()}); J.L.addEventListener("error",function(Q){Q.currentTarget===Q.target&&x(J.L.error)}); J.L.addEventListener("abort",function(){var Q=J.L.error;if(Q)x(Q);else if(!J.K){Q=g.C9;for(var K=J.L.objectStoreNames,q=[],D=0;D=L))return x.push(Q.getValue()),g.WR(Q)}).then(function(){return x})}; g.r_=function(X,J,L){X=X.L.openCursor(J.query===void 0?null:J.query,J.direction===void 0?"next":J.direction);return p9(X).then(function(x){return d_(x,L)})}; vR=function(X,J){this.request=X;this.cursor=J}; p9=function(X){return tO(X).then(function(J){return J?new vR(X,J):null})}; g.WR=function(X){X.cursor.continue(void 0);return p9(X.request)}; Ynm=function(X,J,L){return new Promise(function(x,Q){function K(){V||(V=new aZv(q.result,{closed:n}));return V} var q=J!==void 0?self.indexedDB.open(X,J):self.indexedDB.open(X);var D=L.blocked,C=L.blocking,M=L.VWB,y=L.upgrade,n=L.closed,V;q.addEventListener("upgradeneeded",function(H){try{if(H.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(q.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");H.dataLoss&&H.dataLoss!=="none"&&g_("IDB_DATA_CORRUPTED",{reason:H.dataLossMessage||"unknown reason",dbName:$G(X)});var O=K(),u=new YG(q.transaction); y&&y(O,function(S){return H.oldVersion=S},u); u.done.catch(function(S){Q(S)})}catch(S){Q(S)}}); q.addEventListener("success",function(){var H=q.result;C&&H.addEventListener("versionchange",function(){C(K())}); H.addEventListener("close",function(){g_("IDB_UNEXPECTEDLY_CLOSED",{dbName:$G(X),dbVersion:H.version});M&&M()}); x(K())}); q.addEventListener("error",function(){Q(q.error)}); D&&q.addEventListener("blocked",function(){D()})})}; hvI=function(X,J,L){L=L===void 0?{}:L;return Ynm(X,J,L)}; jk=function(X,J){J=J===void 0?{}:J;var L,x,Q,K;return g.p(function(q){if(q.K==1)return g.oz(q,2),L=self.indexedDB.deleteDatabase(X),x=J,(Q=x.blocked)&&L.addEventListener("blocked",function(){Q()}),g.z(q,nve(L),4); if(q.K!=2)return g.PW(q,0);K=g.EA(q);throw VK(K,X,"",-1);})}; Td=function(X,J){this.name=X;this.options=J;this.N=!0;this.j=this.T=0}; zve=function(X,J){return new g.C9("INCOMPATIBLE_DB_VERSION",{dbName:X.name,oldVersion:X.options.version,newVersion:J})}; g.Gd=function(X,J){if(!J)throw g.HR("openWithToken",$G(X.name));return X.open()}; Wzm=function(X,J){var L;return g.p(function(x){if(x.K==1)return g.z(x,g.Gd(f9,J),2);L=x.L;return x.return(g.PR(L,["databases"],{EH:!0,mode:"readwrite"},function(Q){var K=Q.objectStore("databases");return K.get(X.actualName).then(function(q){if(q?X.actualName!==q.actualName||X.publicName!==q.publicName||X.userIdentifier!==q.userIdentifier:1)return g.cR(K,X).then(function(){})})}))})}; ek=function(X,J){var L;return g.p(function(x){if(x.K==1)return X?g.z(x,g.Gd(f9,J),2):x.return();L=x.L;return x.return(L.delete("databases",X))})}; pNR=function(X,J){var L,x;return g.p(function(Q){return Q.K==1?(L=[],g.z(Q,g.Gd(f9,J),2)):Q.K!=3?(x=Q.L,g.z(Q,g.PR(x,["databases"],{EH:!0,mode:"readonly"},function(K){L.length=0;return g.zd(K.objectStore("databases"),{},function(q){X(q.getValue())&&L.push(q.getValue());return g.WR(q)})}),3)):Q.return(L)})}; rAm=function(X,J){return pNR(function(L){return L.publicName===X&&L.userIdentifier!==void 0},J)}; vvo=function(){var X,J,L,x;return g.p(function(Q){switch(Q.K){case 1:X=JO();if((J=X)==null?0:J.hasSucceededOnce)return Q.return(!0);if(Fh&&lZ()&&!Rh()||g.lT)return Q.return(!1);try{if(L=self,!(L.indexedDB&&L.IDBIndex&&L.IDBKeyRange&&L.IDBObjectStore))return Q.return(!1)}catch(K){return Q.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return Q.return(!1);g.oz(Q,2);x={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.z(Q,Wzm(x,RZ),4);case 4:return g.z(Q,ek("yt-idb-test-do-not-use",RZ),5);case 5:return Q.return(!0);case 2:return g.EA(Q),Q.return(!1)}})}; jmY=function(){if(BR!==void 0)return BR;qA=!0;return BR=vvo().then(function(X){qA=!1;var J;if((J=Xh())!=null&&J.L){var L;J={hasSucceededOnce:((L=JO())==null?void 0:L.hasSucceededOnce)||X};var x;(x=Xh())==null||x.set("LAST_RESULT_ENTRY_KEY",J,2592E3,!0)}return X})}; sV=function(){return g.Ld("ytglobal.idbToken_")||void 0}; g.NA=function(){var X=sV();return X?Promise.resolve(X):jmY().then(function(J){(J=J?RZ:void 0)&&g.JS("ytglobal.idbToken_",J);return J})}; TXm=function(X){if(!g.R2())throw X=new g.C9("AUTH_INVALID",{dbName:X}),IZ(X),X;var J=g.lu();return{actualName:X+":"+J,publicName:X,userIdentifier:J}}; GIz=function(X,J,L,x){var Q,K,q,D,C,M;return g.p(function(y){switch(y.K){case 1:return K=(Q=Error().stack)!=null?Q:"",g.z(y,g.NA(),2);case 2:q=y.L;if(!q)throw D=g.HR("openDbImpl",X,J),g.VQ("ytidb_async_stack_killswitch")||(D.stack=D.stack+"\n"+K.substring(K.indexOf("\n")+1)),IZ(D),D;Dc(X);C=L?{actualName:X,publicName:X,userIdentifier:void 0}:TXm(X);g.oz(y,3);return g.z(y,Wzm(C,q),5);case 5:return g.z(y,hvI(C.actualName,J,x),6);case 6:return y.return(y.L);case 3:return M=g.EA(y),g.oz(y,7),g.z(y,ek(C.actualName, q),9);case 9:g.PW(y,8);break;case 7:g.EA(y);case 8:throw M;}})}; fZm=function(X,J,L){L=L===void 0?{}:L;return GIz(X,J,!1,L)}; evR=function(X,J,L){L=L===void 0?{}:L;return GIz(X,J,!0,L)}; FzI=function(X,J){J=J===void 0?{}:J;var L,x;return g.p(function(Q){if(Q.K==1)return g.z(Q,g.NA(),2);if(Q.K!=3){L=Q.L;if(!L)return Q.return();Dc(X);x=TXm(X);return g.z(Q,jk(x.actualName,J),3)}return g.z(Q,ek(x.actualName,L),0)})}; lZo=function(X,J,L){X=X.map(function(x){return g.p(function(Q){return Q.K==1?g.z(Q,jk(x.actualName,J),2):g.z(Q,ek(x.actualName,L),0)})}); return Promise.all(X).then(function(){})}; RvW=function(X){var J=J===void 0?{}:J;var L,x;return g.p(function(Q){if(Q.K==1)return g.z(Q,g.NA(),2);if(Q.K!=3){L=Q.L;if(!L)return Q.return();Dc(X);return g.z(Q,rAm(X,L),3)}x=Q.L;return g.z(Q,lZo(x,J,L),0)})}; BXR=function(X,J){J=J===void 0?{}:J;var L;return g.p(function(x){if(x.K==1)return g.z(x,g.NA(),2);if(x.K!=3){L=x.L;if(!L)return x.return();Dc(X);return g.z(x,jk(X,J),3)}return g.z(x,ek(X,L),0)})}; UV=function(X,J){Td.call(this,X,J);this.options=J;Dc(X)}; smv=function(X,J){var L;return function(){L||(L=new UV(X,J));return L}}; g.m4=function(X,J){return smv(X,J)}; kG=function(X){return g.Gd(NXY(),X)}; Uco=function(X,J,L,x){var Q,K,q;return g.p(function(D){switch(D.K){case 1:return Q={config:X,hashData:J,timestamp:x!==void 0?x:(0,g.uT)()},g.z(D,kG(L),2);case 2:return K=D.L,g.z(D,K.clear("hotConfigStore"),3);case 3:return g.z(D,g.EV(K,"hotConfigStore",Q),4);case 4:return q=D.L,D.return(q)}})}; mcI=function(X,J,L,x,Q){var K,q,D;return g.p(function(C){switch(C.K){case 1:return K={config:X,hashData:J,configData:L,timestamp:Q!==void 0?Q:(0,g.uT)()},g.z(C,kG(x),2);case 2:return q=C.L,g.z(C,q.clear("coldConfigStore"),3);case 3:return g.z(C,g.EV(q,"coldConfigStore",K),4);case 4:return D=C.L,C.return(D)}})}; kIR=function(X){var J,L;return g.p(function(x){return x.K==1?g.z(x,kG(X),2):x.K!=3?(J=x.L,L=void 0,g.z(x,g.PR(J,["coldConfigStore"],{mode:"readwrite",EH:!0},function(Q){return g.r_(Q.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(K){L=K.getValue()})}),3)):x.return(L)})}; ZT8=function(X){var J,L;return g.p(function(x){return x.K==1?g.z(x,kG(X),2):x.K!=3?(J=x.L,L=void 0,g.z(x,g.PR(J,["hotConfigStore"],{mode:"readwrite",EH:!0},function(Q){return g.r_(Q.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(K){L=K.getValue()})}),3)):x.return(L)})}; AAZ=function(){return g.p(function(X){return g.z(X,RvW("ytGcfConfig"),0)})}; Zc=function(){g.G.call(this);this.K=[];this.L=[];var X=g.Ld("yt.gcf.config.hotUpdateCallbacks");X?(this.K=[].concat(g.nR(X)),this.L=X):(this.L=[],g.JS("yt.gcf.config.hotUpdateCallbacks",this.L))}; i7=function(){var X=this;this.j=!1;this.N=this.T=0;this.B=new Zc;this.Zh={oAm:function(){X.j=!0}, pkE:function(){return X.L}, CLi:function(J){AO(X,J)}, Ec:function(J){X.Ec(J)}, Mdl:function(J){XN(X,J)}, XU:function(){return X.coldHashData}, m_:function(){return X.hotHashData}, lkq:function(){return X.K}, Gul:function(){return JP()}, OuI:function(){return LP()}, MZY:function(){return g.Ld("yt.gcf.config.coldHashData")}, eYi:function(){return g.Ld("yt.gcf.config.hotHashData")}, ghl:function(){XpY(X)}, Ufl:function(){X.Ec(void 0);xt(X);delete i7.instance}, tdl:function(J){X.N=J}, bul:function(){return X.N}}}; JJO=function(){if(!i7.instance){var X=new i7;i7.instance=X}return i7.instance}; isW=function(X){var J;g.p(function(L){if(L.K==1)return g.VQ("start_client_gcf")||g.VQ("delete_gcf_config_db")?g.VQ("start_client_gcf")?g.z(L,g.NA(),3):L.fm(2):L.return();L.K!=2&&((J=L.L)&&g.R2()&&!g.VQ("delete_gcf_config_db")?(X.j=!0,XpY(X)):(LMA(X),x8P(X)));return g.VQ("delete_gcf_config_db")?g.z(L,AAZ(),0):L.fm(0)})}; Qe=function(){var X;return(X=LP())!=null?X:g.ly("RAW_HOT_CONFIG_GROUP")}; QfO=function(X){var J,L,x,Q,K,q;return g.p(function(D){switch(D.K){case 1:if(X.K)return D.return(LP());if(!X.j)return J=g.HR("getHotConfig IDB not initialized"),UI(J),D.return(Promise.reject(J));L=sV();x=g.ly("TIME_CREATED_MS");if(!L){Q=g.HR("getHotConfig token error");UI(Q);D.fm(2);break}return g.z(D,ZT8(L),3);case 3:if((K=D.L)&&K.timestamp>x)return AO(X,K.config),X.Ec(K.hashData),D.return(LP());case 2:x8P(X);if(!(L&&X.K&&X.hotHashData)){D.fm(4);break}return g.z(D,Uco(X.K,X.hotHashData,L,x),4);case 4:return X.K? D.return(LP()):(q=new g.Fm("Config not available in ytConfig"),UI(q),D.return(Promise.reject(q)))}})}; qMm=function(X){var J,L,x,Q,K,q;return g.p(function(D){switch(D.K){case 1:if(X.L)return D.return(JP());if(!X.j)return J=g.HR("getColdConfig IDB not initialized"),UI(J),D.return(Promise.reject(J));L=sV();x=g.ly("TIME_CREATED_MS");if(!L){Q=g.HR("getColdConfig");UI(Q);D.fm(2);break}return g.z(D,kIR(L),3);case 3:if((K=D.L)&&K.timestamp>x)return XN(X,K.config),KMA(X,K.configData),xt(X,K.hashData),D.return(JP());case 2:LMA(X);if(!(L&&X.L&&X.coldHashData&&X.configData)){D.fm(4);break}return g.z(D,mcI(X.L, X.coldHashData,X.configData,L,x),4);case 4:return X.L?D.return(JP()):(q=new g.Fm("Config not available in ytConfig"),UI(q),D.return(Promise.reject(q)))}})}; XpY=function(X){if(!X.K||!X.L){if(!sV()){var J=g.HR("scheduleGetConfigs");UI(J)}X.T||(X.T=g.j$.xW(function(){return g.p(function(L){switch(L.K){case 1:return g.oz(L,2),g.z(L,QfO(X),4);case 4:g.PW(L,3);break;case 2:g.EA(L);case 3:return g.oz(L,5),g.z(L,qMm(X),7);case 7:g.PW(L,6);break;case 5:g.EA(L);case 6:X.T&&(X.T=0),g.uv(L)}})},100))}}; IgO=function(X,J,L){var x,Q,K;return g.p(function(q){switch(q.K){case 1:if(!g.VQ("start_client_gcf")){q.fm(0);break}L&&AO(X,L);X.Ec(J);x=sV();if(!x){q.fm(3);break}if(L){q.fm(4);break}return g.z(q,ZT8(x),5);case 5:Q=q.L,L=(K=Q)==null?void 0:K.config;case 4:return g.z(q,Uco(L,J,x),3);case 3:if(L)for(var D=L,C=g.d(X.B.L),M=C.next();!M.done;M=C.next())M=M.value,M(D);g.uv(q)}})}; gqW=function(X,J,L){var x,Q,K,q;return g.p(function(D){if(D.K==1){if(!g.VQ("start_client_gcf"))return D.fm(0);xt(X,J);return(x=sV())?L?D.fm(4):g.z(D,kIR(x),5):D.fm(0)}D.K!=4&&(Q=D.L,L=(K=Q)==null?void 0:K.config);if(!L)return D.fm(0);q=L.configData;return g.z(D,mcI(L,J,q,x),0)})}; D8e=function(){var X=JJO(),J=(0,g.uT)()-X.N;if(!(X.N!==0&&J0&&(J.request={internalExperimentFlags:L});CcY(X,void 0,J);Mgm(void 0,J);yJZ(void 0,J);nqm(X,void 0,J);VgS(void 0,J);g.VQ("start_client_gcf")&&HsY(void 0,J);g.ly("DELEGATED_SESSION_ID")&& !g.VQ("pageid_as_header_web")&&(J.user={onBehalfOfUser:g.ly("DELEGATED_SESSION_ID")});!g.VQ("fill_delegate_context_in_gel_killswitch")&&(X=g.ly("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(J.user=Object.assign({},J.user,{serializedDelegationContext:X}));X=g.ly("INNERTUBE_CONTEXT");var x;if(g.VQ("enable_persistent_device_token")&&(X==null?0:(x=X.client)==null?0:x.rolloutToken)){var Q;J.client.rolloutToken=X==null?void 0:(Q=X.client)==null?void 0:Q.rolloutToken}x=Object;Q=x.assign;X=J.client; L={};for(var K=g.d(Object.entries(ZB(g.ly("DEVICE","")))),q=K.next();!q.done;q=K.next()){var D=g.d(q.value);q=D.next().value;D=D.next().value;q==="cbrand"?L.deviceMake=D:q==="cmodel"?L.deviceModel=D:q==="cbr"?L.browserName=D:q==="cbrver"?L.browserVersion=D:q==="cos"?L.osName=D:q==="cosver"?L.osVersion=D:q==="cplatform"&&(L.platform=D)}J.client=Q.call(x,X,L);return J}; CcY=function(X,J,L){X=X.CT;if(X==="WEB"||X==="MWEB"||X===1||X===2)if(J){L=a6(J,oY,96)||new oY;var x=W2();x=Object.keys(Oso).indexOf(x);x=x===-1?null:x;x!==null&&jp(L,3,x);tK(J,oY,96,L)}else L&&(L.client.mainAppWebInfo=(x=L.client.mainAppWebInfo)!=null?x:{},L.client.mainAppWebInfo.webDisplayMode=W2())}; Mgm=function(X,J){var L=g.Ld("yt.embedded_player.embed_url");L&&(X?(J=a6(X,EI,7)||new EI,rq(J,4,L),tK(X,EI,7,J)):J&&(J.thirdParty={embedUrl:L}))}; yJZ=function(X,J){var L;if(g.VQ("web_log_memory_total_kbytes")&&((L=g.Ao.navigator)==null?0:L.deviceMemory)){var x;L=(x=g.Ao.navigator)==null?void 0:x.deviceMemory;X?JK(X,95,ut(L*1E6)):J&&(J.client.memoryTotalKbytes=""+L*1E6)}}; nqm=function(X,J,L){if(X.appInstallData)if(J){var x;L=(x=a6(J,uy,62))!=null?x:new uy;rq(L,6,X.appInstallData);tK(J,uy,62,L)}else L&&(L.client.configInfo=L.client.configInfo||{},L.client.configInfo.appInstallData=X.appInstallData)}; VgS=function(X,J){var L=JAA();L&&(X?jp(X,61,age[L]):J&&(J.client.connectionType=L));g.VQ("web_log_effective_connection_type")&&(L=xcm())&&(X?jp(X,94,wpO[L]):J&&(J.client.effectiveConnectionType=L))}; tgY=function(X,J,L){L=L===void 0?{}:L;var x={};g.ly("EOM_VISITOR_DATA")?x={"X-Goog-EOM-Visitor-Id":g.ly("EOM_VISITOR_DATA")}:x={"X-Goog-Visitor-Id":L.visitorData||g.ly("VISITOR_DATA","")};if(J&&J.includes("www.youtube-nocookie.com"))return x;J=L.eV||g.ly("AUTHORIZATION");J||(X?J="Bearer "+g.Ld("gapi.auth.getToken")().access_token:(X=UnY().w1(Iv),g.VQ("pageid_as_header_web")||delete X["X-Goog-PageId"],x=Object.assign({},x,X)));J&&(x.Authorization=J);return x}; HsY=function(X,J){var L=D8e();if(L){var x=L.coldConfigData,Q=L.coldHashData;L=L.hotHashData;if(X){var K;J=(K=a6(X,uy,62))!=null?K:new uy;x=rq(J,1,x);rq(x,3,Q).Ec(L);tK(X,uy,62,J)}else J&&(J.client.configInfo=J.client.configInfo||{},x&&(J.client.configInfo.coldConfigData=x),Q&&(J.client.configInfo.coldHashData=Q),L&&(J.client.configInfo.hotHashData=L))}}; gb=function(X,J){this.version=X;this.args=J}; $t=function(X,J){this.topic=X;this.L=J}; MF=function(X,J){var L=CP();L&&L.publish.call(L,X.toString(),X,J)}; oqO=function(X){var J=d8o,L=CP();if(!L)return 0;var x=L.subscribe(J.toString(),function(Q,K){var q=g.Ld("ytPubsub2Pubsub2SkipSubKey");q&&q==x||(q=function(){if(ye[x])try{if(K&&J instanceof $t&&J!=Q)try{var D=J.L,C=K;if(!C.args||!C.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!D.w6){var M=new D;D.w6=M.version}var y=D.w6}catch(n){}if(!y||C.version!=y)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{K=Reflect.construct(D, g.Yu(C.args))}catch(n){throw n.message="yt.pubsub2.Data.deserialize(): "+n.message,n;}}catch(n){throw n.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+J.toString()+": "+n.message,n;}X.call(window,K)}catch(n){g.sI(n)}},uCZ[J.toString()]?g.k1()?g.j$.xW(q):g.$b(q,0):q())}); ye[x]=!0;nP[J.toString()]||(nP[J.toString()]=[]);nP[J.toString()].push(x);return x}; PcI=function(){var X=bsR,J=oqO(function(L){X.apply(void 0,arguments);SMZ(J)}); return J}; SMZ=function(X){var J=CP();J&&(typeof X==="number"&&(X=[X]),g.mF(X,function(L){J.unsubscribeByKey(L);delete ye[L]}))}; CP=function(){return g.Ld("ytPubsub2Pubsub2Instance")}; Ve=function(X,J,L){L=L===void 0?{sampleRate:.1}:L;Math.random()WMW||q=jfA&&(SE++,g.VQ("abandon_compression_after_N_slow_zips")?b7===g.H6("compression_disable_point")&&SE>TGY&&(db=!1):db=!1);G9A(J);x.headers||(x.headers={});x.headers["Content-Encoding"]="gzip";x.postBody=X;x.postParams=void 0;Q(L,x)}; fgW=function(X){var J=J===void 0?!1:J;var L=L===void 0?!1:L;var x=(0,g.uT)(),Q={startTime:x,ticks:{},infos:{}},K=J?g.Ld("yt.logging.gzipForFetch",!1):!0;if(db&&K){if(!X.body)return X;try{var q=L?X.body:typeof X.body==="string"?X.body:JSON.stringify(X.body);K=q;if(!L&&typeof q==="string"){var D=zbI(q);if(D!=null&&(D>WMW||D=jfA)if(SE++,g.VQ("abandon_compression_after_N_slow_zips")||g.VQ("abandon_compression_after_N_slow_zips_lr")){J=SE/b7;var M=TGY/g.H6("compression_disable_point");b7>0&&b7%g.H6("compression_disable_point")===0&&J>=M&&(db=!1)}else db=!1;G9A(Q)}}X.headers=Object.assign({},{"Content-Encoding":"gzip"},X.headers||{});X.body=K;return X}catch(y){return UI(y),X}}else return X}; zbI=function(X){try{return(new Blob(X.split(""))).size}catch(J){return UI(J),null}}; G9A=function(X){g.VQ("gel_compression_csi_killswitch")||!g.VQ("log_gel_compression_latency")&&!g.VQ("log_gel_compression_latency_lr")||Ve("gel_compression",X,{sampleRate:.1})}; cP=function(X){var J=this;this.eN=this.L=!1;this.potentialEsfErrorCounter=this.K=0;this.handleError=function(){}; this.c8=function(){}; this.now=Date.now;this.cQ=!1;this.Zh={eeB:function(y){J.MQ=y}, FVC:function(){J.eD()}, fD:function(){J.We()}, cH:function(y){return g.p(function(n){return g.z(n,J.cH(y),0)})}, Xa:function(y,n){return J.Xa(y,n)}, AG:function(){J.AG()}}; var L;this.fX=(L=X.fX)!=null?L:100;var x;this.wh=(x=X.wh)!=null?x:1;var Q;this.K2=(Q=X.K2)!=null?Q:2592E6;var K;this.AS=(K=X.AS)!=null?K:12E4;var q;this.z9=(q=X.z9)!=null?q:5E3;var D;this.MQ=(D=X.MQ)!=null?D:void 0;this.E0=!!X.E0;var C;this.y3=(C=X.y3)!=null?C:.1;var M;this.Yl=(M=X.Yl)!=null?M:10;X.handleError&&(this.handleError=X.handleError);X.c8&&(this.c8=X.c8);X.cQ&&(this.cQ=X.cQ);X.eN&&(this.eN=X.eN);this.Mi=X.Mi;this.c_=X.c_;this.bd=X.bd;this.QY=X.QY;this.sendFn=X.sendFn;this.o7=X.o7;this.cg= X.cg;PP(this)&&(!this.Mi||this.Mi("networkless_logging"))&&ebI(this)}; ebI=function(X){PP(X)&&!X.cQ&&(X.L=!0,X.E0&&Math.random()<=X.y3&&X.bd.vc(X.MQ),X.AG(),X.QY.w5()&&X.eD(),X.QY.listen(X.o7,X.eD.bind(X)),X.QY.listen(X.cg,X.We.bind(X)))}; Rbv=function(X,J){if(!PP(X))throw Error("IndexedDB is not supported: updateRequestHandlers");var L=J.options.onError?J.options.onError:function(){}; J.options.onError=function(Q,K){var q,D,C,M;return g.p(function(y){switch(y.K){case 1:q=FMA(K);(D=lgm(K))&&X.Mi&&X.Mi("web_enable_error_204")&&X.handleError(Error("Request failed due to compression"),J.url,K);if(!(X.Mi&&X.Mi("nwl_consider_error_code")&&q||X.Mi&&!X.Mi("nwl_consider_error_code")&&X.potentialEsfErrorCounter<=X.Yl)){y.fm(2);break}if(!X.QY.NU){y.fm(3);break}return g.z(y,X.QY.NU(),3);case 3:if(X.QY.w5()){y.fm(2);break}L(Q,K);if(!X.Mi||!X.Mi("nwl_consider_error_code")||((C=J)==null?void 0: C.id)===void 0){y.fm(6);break}return g.z(y,X.bd.Vt(J.id,X.MQ,!1),6);case 6:return y.return();case 2:if(X.Mi&&X.Mi("nwl_consider_error_code")&&!q&&X.potentialEsfErrorCounter>X.Yl)return y.return();X.potentialEsfErrorCounter++;if(((M=J)==null?void 0:M.id)===void 0){y.fm(8);break}return J.sendCount=400&&X<=599?!1:!0}; lgm=function(X){var J;X=X==null?void 0:(J=X.error)==null?void 0:J.code;return!(X!==400&&X!==415)}; BGm=function(){if(Yt)return Yt();var X={};Yt=g.m4("LogsDatabaseV2",{Rg:(X.LogsRequestsStore={kV:2},X),shared:!1,upgrade:function(J,L,x){L(2)&&g.bT(J,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});L(3);L(5)&&(x=x.objectStore("LogsRequestsStore"),x.L.indexNames.contains("newRequest")&&x.L.deleteIndex("newRequest"),g.hO(x,"newRequestV2",["status","interface","timestamp"]));L(7)&&Sk(J,"sapisid");L(9)&&Sk(J,"SWHealthLog")}, version:9});return Yt()}; hP=function(X){return g.Gd(BGm(),X)}; NGA=function(X,J){var L,x,Q,K;return g.p(function(q){if(q.K==1)return L={startTime:(0,g.uT)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.z(q,hP(J),2);if(q.K!=3)return x=q.L,Q=Object.assign({},X,{options:JSON.parse(JSON.stringify(X.options)),interface:g.ly("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.z(q,g.EV(x,"LogsRequestsStore",Q),3);K=q.L;L.ticks.tc=(0,g.uT)();sfe(L);return q.return(K)})}; U8W=function(X,J){var L,x,Q,K,q,D,C,M;return g.p(function(y){if(y.K==1)return L={startTime:(0,g.uT)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.z(y,hP(J),2);if(y.K!=3)return x=y.L,Q=g.ly("INNERTUBE_CONTEXT_CLIENT_NAME",0),K=[X,Q,0],q=[X,Q,(0,g.uT)()],D=IDBKeyRange.bound(K,q),C="prev",g.VQ("use_fifo_for_networkless")&&(C="next"),M=void 0,g.z(y,g.PR(x,["LogsRequestsStore"],{mode:"readwrite",EH:!0},function(n){return g.r_(n.objectStore("LogsRequestsStore").index("newRequestV2"), {query:D,direction:C},function(V){V.getValue()&&(M=V.getValue(),X==="NEW"&&(M.status="QUEUED",V.update(M)))})}),3); L.ticks.tc=(0,g.uT)();sfe(L);return y.return(M)})}; m8R=function(X,J){var L;return g.p(function(x){if(x.K==1)return g.z(x,hP(J),2);L=x.L;return x.return(g.PR(L,["LogsRequestsStore"],{mode:"readwrite",EH:!0},function(Q){var K=Q.objectStore("LogsRequestsStore");return K.get(X).then(function(q){if(q)return q.status="QUEUED",g.cR(K,q).then(function(){return q})})}))})}; k9o=function(X,J,L,x){L=L===void 0?!0:L;var Q;return g.p(function(K){if(K.K==1)return g.z(K,hP(J),2);Q=K.L;return K.return(g.PR(Q,["LogsRequestsStore"],{mode:"readwrite",EH:!0},function(q){var D=q.objectStore("LogsRequestsStore");return D.get(X).then(function(C){return C?(C.status="NEW",L&&(C.sendCount+=1),x!==void 0&&(C.options.compress=x),g.cR(D,C).then(function(){return C})):g.aZ.resolve(void 0)})}))})}; ZsI=function(X,J){var L;return g.p(function(x){if(x.K==1)return g.z(x,hP(J),2);L=x.L;return x.return(L.delete("LogsRequestsStore",X))})}; AJo=function(X){var J,L;return g.p(function(x){if(x.K==1)return g.z(x,hP(X),2);J=x.L;L=(0,g.uT)()-2592E6;return g.z(x,g.PR(J,["LogsRequestsStore"],{mode:"readwrite",EH:!0},function(Q){return g.zd(Q.objectStore("LogsRequestsStore"),{},function(K){if(K.getValue().timestamp<=L)return K.delete().then(function(){return g.WR(K)})})}),0)})}; XuP=function(){g.p(function(X){return g.z(X,RvW("LogsDatabaseV2"),0)})}; sfe=function(X){g.VQ("nwl_csi_killswitch")||Ve("networkless_performance",X,{sampleRate:1})}; LJm=function(X){return g.Gd(JIm(),X)}; xDW=function(X){var J,L;g.p(function(x){if(x.K==1)return g.z(x,LJm(X),2);J=x.L;L=(0,g.uT)()-2592E6;return g.z(x,g.PR(J,["SWHealthLog"],{mode:"readwrite",EH:!0},function(Q){return g.zd(Q.objectStore("SWHealthLog"),{},function(K){if(K.getValue().timestamp<=L)return K.delete().then(function(){return g.WR(K)})})}),0)})}; ipI=function(X){var J;return g.p(function(L){if(L.K==1)return g.z(L,LJm(X),2);J=L.L;return g.z(L,J.clear("SWHealthLog"),0)})}; g.zp=function(X,J,L,x,Q,K,q){Q=Q===void 0?"":Q;K=K===void 0?!1:K;q=q===void 0?!1:q;if(X)if(L&&!g.fU())UI(new g.Fm("Legacy referrer-scrubbed ping detected")),X&&QYm(X,void 0,{scrubReferrer:!0});else if(Q)wP(X,J,"POST",Q,x);else if(g.ly("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||x||q)wP(X,J,"GET","",x,void 0,K,q);else{b:{try{c:{var D=new bko({url:X});if(D.L.dsh==="1")var C=null;else{var M=D.L.ae;if(M==="1"){var y=D.L.adurl;if(y)try{C={version:3,r7:decodeURIComponent(y),KD:Uk(D.K,"act=1","ri=1",SdI(D))}; break c}catch(H){}}C=M==="2"?{version:4,r7:Uk(D.K,"dct=1","suid="+D.N,""),KD:Uk(D.K,"act=1","ri=1","suid="+D.N)}:null}}if(C){var n=$4(X);var V=!(!n||!n.endsWith("/aclk")||tV(X,"ri")!=="1");break b}}catch(H){}V=!1}V?KJv(X)?(J&&J(),L=!0):L=!1:L=!1;L||QYm(X,J)}}; KJv=function(X,J){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(X,J===void 0?"":J))return!0}catch(L){}return!1}; QYm=function(X,J,L){L=L===void 0?{}:L;var x=new Image,Q=""+qIA++;WP[Q]=x;x.onload=x.onerror=function(){J&&WP[Q]&&J();delete WP[Q]}; L.scrubReferrer&&(x.referrerPolicy="no-referrer");x.src=X}; IBS=function(X){var J;return((J=document.featurePolicy)==null?0:J.allowedFeatures().includes("attribution-reporting"))?X+"&nis=6":X+"&nis=5"}; rb=function(){pP||(pP=new A3("yt.offline"));return pP}; gPv=function(X){if(g.VQ("offline_error_handling")){var J=rb().get("errors",!0)||{};J[X.message]={name:X.name,stack:X.stack};X.level&&(J[X.message].level=X.level);rb().set("errors",J,2592E3,!0)}}; vP=function(){this.L=new Map;this.K=!1}; jE=function(){if(!vP.instance){var X=g.Ld("yt.networkRequestMonitor.instance")||new vP;g.JS("yt.networkRequestMonitor.instance",X);vP.instance=X}return vP.instance}; Tp=function(){g.$W.call(this);var X=this;this.K=!1;this.L=dYm();this.L.listen("networkstatus-online",function(){if(X.K&&g.VQ("offline_error_handling")){var J=rb().get("errors",!0);if(J){for(var L in J)if(J[L]){var x=new g.Fm(L,"sent via offline_errors");x.name=J[L].name;x.stack=J[L].stack;x.level=J[L].level;g.sI(x)}rb().set("errors",{},2592E3,!0)}}})}; DDW=function(){if(!Tp.instance){var X=g.Ld("yt.networkStatusManager.instance")||new Tp;g.JS("yt.networkStatusManager.instance",X);Tp.instance=X}return Tp.instance}; g.Gp=function(X){X=X===void 0?{}:X;g.$W.call(this);var J=this;this.L=this.T=0;this.K=DDW();var L=g.Ld("yt.networkStatusManager.instance.listen").bind(this.K);L&&(X.rateLimit?(this.rateLimit=X.rateLimit,L("networkstatus-online",function(){$DO(J,"publicytnetworkstatus-online")}),L("networkstatus-offline",function(){$DO(J,"publicytnetworkstatus-offline")})):(L("networkstatus-online",function(){J.dispatchEvent("publicytnetworkstatus-online")}),L("networkstatus-offline",function(){J.dispatchEvent("publicytnetworkstatus-offline")})))}; $DO=function(X,J){X.rateLimit?X.L?(g.j$.rZ(X.T),X.T=g.j$.xW(function(){X.N!==J&&(X.dispatchEvent(J),X.N=J,X.L=(0,g.uT)())},X.rateLimit-((0,g.uT)()-X.L))):(X.dispatchEvent(J),X.N=J,X.L=(0,g.uT)()):X.dispatchEvent(J)}; eE=function(){var X=cP.call;fP||(fP=new g.Gp({y4q:!0,R4i:!0}));X.call(cP,this,{bd:{vc:AJo,z2:ZsI,jx:U8W,lN:m8R,Vt:k9o,set:NGA},QY:fP,handleError:function(J,L,x){var Q,K=x==null?void 0:(Q=x.error)==null?void 0:Q.code;if(K===400||K===415){var q;J=new g.Fm(J.message,L,x==null?void 0:(q=x.error)==null?void 0:q.code);UI(J,void 0,void 0,void 0,!0)}else g.sI(J)}, c8:UI,sendFn:CyW,now:g.uT,kE:gPv,c_:g.mn(),o7:"publicytnetworkstatus-online",cg:"publicytnetworkstatus-offline",E0:!0,y3:.1,Yl:g.H6("potential_esf_error_limit",10),Mi:g.VQ,cQ:!(g.R2()&&g.Dk(document.location.toString())!=="www.youtube-nocookie.com")});this.N=new g.Cz;g.VQ("networkless_immediately_drop_all_requests")&&XuP();BXR("LogsDatabaseV2")}; FN=function(){var X=g.Ld("yt.networklessRequestController.instance");X||(X=new eE,g.JS("yt.networklessRequestController.instance",X),g.VQ("networkless_logging")&&g.NA().then(function(J){X.MQ=J;ebI(X);X.N.resolve();X.E0&&Math.random()<=X.y3&&X.MQ&&xDW(X.MQ);g.VQ("networkless_immediately_drop_sw_health_store")&&Mb8(X)})); return X}; Mb8=function(X){var J;g.p(function(L){if(!X.MQ)throw J=g.HR("clearSWHealthLogsDb"),J;return L.return(ipI(X.MQ).catch(function(x){X.handleError(x)}))})}; CyW=function(X,J,L,x){x=x===void 0?!1:x;J=g.VQ("web_fp_via_jspb")?Object.assign({},J):J;g.VQ("use_cfr_monitor")&&yII(X,J);if(g.VQ("use_request_time_ms_header"))J.headers&&xb(X)&&(J.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.uT)())));else{var Q;if((Q=J.postParams)==null?0:Q.requestTimeMs)J.postParams.requestTimeMs=Math.round((0,g.uT)())}L&&Object.keys(J).length===0?g.zp(X):J.compress?J.postBody?(typeof J.postBody!=="string"&&(J.postBody=JSON.stringify(J.postBody)),ov(X,J.postBody, J,g.t8,x)):ov(X,JSON.stringify(J.postParams),J,dP,x):g.t8(X,J)}; l7=function(X,J){g.VQ("use_event_time_ms_header")&&xb(X)&&(J.headers||(J.headers={}),J.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.uT)())));return J}; yII=function(X,J){var L=J.onError?J.onError:function(){}; J.onError=function(Q,K){jE().requestComplete(X,!1);L(Q,K)}; var x=J.onSuccess?J.onSuccess:function(){}; J.onSuccess=function(Q,K){jE().requestComplete(X,!0);x(Q,K)}}; g.Rv=function(X){this.config_=null;X?this.config_=X:$8v()&&(this.config_=g.KP())}; g.BP=function(X,J,L,x){function Q(M){try{if((M===void 0?0:M)&&x.retry&&!x.networklessOptions.bypassNetworkless)K.method="POST",x.networklessOptions.writeThenSend?FN().writeThenSend(C,K):FN().sendAndWrite(C,K);else if(x.compress){var y=!x.networklessOptions.writeThenSend;if(K.postBody){var n=K.postBody;typeof n!=="string"&&(n=JSON.stringify(K.postBody));ov(C,n,K,g.t8,y)}else ov(C,JSON.stringify(K.postParams),K,dP,y)}else g.VQ("web_all_payloads_via_jspb")?g.t8(C,K):dP(C,K)}catch(V){if(V.name==="InvalidAccessError")UI(Error("An extension is blocking network request.")); else throw V;}} !g.ly("VISITOR_DATA")&&J!=="visitor_id"&&Math.random()<.01&&UI(new g.Fm("Missing VISITOR_DATA when sending innertube request.",J,L,x));if(!X.isReady())throw X=new g.Fm("innertube xhrclient not ready",J,L,x),g.sI(X),X;var K={headers:x.headers||{},method:"POST",postParams:L,postBody:x.postBody,postBodyFormat:x.postBodyFormat||"JSON",onTimeout:function(){x.onTimeout()}, onFetchTimeout:x.onTimeout,onSuccess:function(M,y){if(x.onSuccess)x.onSuccess(y)}, onFetchSuccess:function(M){if(x.onSuccess)x.onSuccess(M)}, onError:function(M,y){if(x.onError)x.onError(y)}, onFetchError:function(M){if(x.onError)x.onError(M)}, timeout:x.timeout,withCredentials:!0,compress:x.compress};K.headers["Content-Type"]||(K.headers["Content-Type"]="application/json");L="";var q=X.config_.IA;q&&(L=q);q=X.config_.H6||!1;var D=tgY(q,L,x);Object.assign(K.headers,D);K.headers.Authorization&&!L&&q&&(K.headers["x-origin"]=window.location.origin);var C=J8(""+L+("/youtubei/"+X.config_.innertubeApiVersion+"/"+J),{alt:"json"});g.Ld("ytNetworklessLoggingInitializationOptions")&&nP8.isNwlInitialized?jmY().then(function(M){Q(M)}):Q(!1)}; g.kt=function(X,J,L){var x=g.sa();if(x&&J){var Q=x.subscribe(X,function(){function K(){NF[Q]&&J.apply&&typeof J.apply=="function"&&J.apply(L||window,q)} var q=arguments;try{g.Ua[X]?K():g.$b(K,0)}catch(D){g.sI(D)}},L); NF[Q]=!0;m2[X]||(m2[X]=[]);m2[X].push(Q);return Q}return 0}; VbY=function(X){var J=g.kt("LOGGED_IN",function(L){X.apply(void 0,arguments);g.ZF(J)})}; g.ZF=function(X){var J=g.sa();J&&(typeof X==="number"?X=[X]:typeof X==="string"&&(X=[parseInt(X,10)]),g.mF(X,function(L){J.unsubscribeByKey(L);delete NF[L]}))}; g.AP=function(X,J){var L=g.sa();return L?L.publish.apply(L,arguments):!1}; OpS=function(X){var J=g.sa();if(J)if(J.clear(X),X)Hpo(X);else for(var L in m2)Hpo(L)}; g.sa=function(){return g.Ao.ytPubsubPubsubInstance}; Hpo=function(X){m2[X]&&(X=m2[X],g.mF(X,function(J){NF[J]&&delete NF[J]}),X.length=0)}; g.Xy=function(X,J,L){aBZ(X,J,L===void 0?null:L)}; aBZ=function(X,J,L){L=L===void 0?null:L;var x=wuv(X),Q=document.getElementById(x),K=Q&&WxY(Q),q=Q&&!K;K?J&&J():(J&&(K=g.kt(x,J),J=""+g.qC(J),tbW[J]=K),q||(Q=dDm(X,x,function(){WxY(Q)||(z3R(Q),g.AP(x),g.$b(function(){OpS(x)},0))},L)))}; dDm=function(X,J,L,x){x=x===void 0?null:x;var Q=g.MG("SCRIPT");Q.id=J;Q.onload=function(){L&&setTimeout(L,0)}; Q.onreadystatechange=function(){switch(Q.readyState){case "loaded":case "complete":Q.onload()}}; x&&Q.setAttribute("nonce",x);g.wZ(Q,g.tI(X));X=document.getElementsByTagName("head")[0]||document.body;X.insertBefore(Q,X.firstChild);return Q}; wuv=function(X){var J=document.createElement("a");g.D3(J,X);X=J.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+zu(X)}; Jk=function(X,J){if(X===J)X=!0;else if(Array.isArray(X)&&Array.isArray(J))X=g.NC(X,J,Jk);else if(g.Q0(X)&&g.Q0(J))a:if(g.g6(X).length!=g.g6(J).length)X=!1;else{for(var L in X)if(!Jk(X[L],J[L])){X=!1;break a}X=!0}else X=!1;return X}; ir=function(X){var J=g.fR.apply(1,arguments);if(!LL(X)||J.some(function(x){return!LL(x)}))throw Error("Only objects may be merged."); J=g.d(J);for(var L=J.next();!L.done;L=J.next())xm(X,L.value)}; xm=function(X,J){for(var L in J)if(LL(J[L])){if(L in X&&!LL(X[L]))throw Error("Cannot merge an object into a non-object.");L in X||(X[L]={});xm(X[L],J[L])}else if(Qu(J[L])){if(L in X&&!Qu(X[L]))throw Error("Cannot merge an array into a non-array.");L in X||(X[L]=[]);u$I(X[L],J[L])}else X[L]=J[L];return X}; u$I=function(X,J){J=g.d(J);for(var L=J.next();!L.done;L=J.next())L=L.value,LL(L)?X.push(xm({},L)):Qu(L)?X.push(u$I([],L)):X.push(L);return X}; LL=function(X){return typeof X==="object"&&!Array.isArray(X)}; Qu=function(X){return typeof X==="object"&&Array.isArray(X)}; Di=function(X){g.G.call(this);this.K=X}; $m=function(X){Di.call(this,!0);this.L=X}; CL=function(X,J){g.G.call(this);var L=this;this.N=[];this.W=!1;this.K=0;this.j=this.B=this.T=!1;this.Km=null;var x=(0,g.IH)(X,J);this.L=new g.sn(function(){return x(L.Km)},300); g.f(this,this.L);this.D=this.S=Infinity}; oPP=function(X,J){if(!J)return!1;for(var L=0;L-1)throw Error("Deps cycle for: "+J);if(X.K.has(J))return X.K.get(J);if(!X.L.has(J)){if(x)return;throw Error("No provider for: "+J);}x=X.L.get(J);L.push(J);if(x.rT!==void 0)var Q=x.rT;else if(x.AJ0)Q=x[o4]?cIP(X,x[o4],L):[],Q=x.AJ0.apply(x,g.nR(Q));else if(x.Ap){Q=x.Ap;var K=Q[o4]?cIP(X,Q[o4],L):[];Q=new (Function.prototype.bind.apply(Q,[null].concat(g.nR(K))))}else throw Error("Could not resolve providers for: "+J);L.pop();x.uMl||X.K.set(J,Q); return Q}; cIP=function(X,J,L){return J?J.map(function(x){return x instanceof tk?br(X,x.key,L,!0):br(X,x,L)}):[]}; PX=function(){Se||(Se=new Pyz);return Se}; EU=function(){var X,J;return"h5vcc"in cX&&((X=cX.h5vcc.traceEvent)==null?0:X.traceBegin)&&((J=cX.h5vcc.traceEvent)==null?0:J.traceEnd)?1:"performance"in cX&&cX.performance.mark&&cX.performance.measure?2:0}; Ym=function(X){var J=EU();switch(J){case 1:cX.h5vcc.traceEvent.traceBegin("YTLR",X);break;case 2:cX.performance.mark(X+"-start");break;case 0:break;default:$0(J,"unknown trace type")}}; EPz=function(X){var J=EU();switch(J){case 1:cX.h5vcc.traceEvent.traceEnd("YTLR",X);break;case 2:J=X+"-start";var L=X+"-end";cX.performance.mark(L);cX.performance.measure(X,J,L);break;case 0:break;default:$0(J,"unknown trace type")}}; YIO=function(X){var J,L;(L=(J=window).onerror)==null||L.call(J,X.message,"",0,0,X)}; hRP=function(X){var J=this;var L=L===void 0?0:L;var x=x===void 0?g.mn():x;this.N=L;this.scheduler=x;this.K=new g.Cz;this.L=X;for(X={Un:0};X.Un=1E3?Q():x>=X?JR||(JR=Lf(function(){Q();JR=void 0},0)):K-D>=10&&(UDe(J,L.tier),q.T=K)}; lBI=function(X,J){if(X.endpoint==="log_event"){g.VQ("more_accurate_gel_parser")&&BX().storePayload({isJspb:!1},X.payload);NZ(X);var L=UU(X),x=new Map;x.set(L,[X.payload]);var Q=fB8(X.payload)||"";J&&(Ak=new J);return new g.og(function(K,q){Ak&&Ak.isReady()?mDY(x,Ak,K,q,{bypassNetworkless:!0},!0,km(Q)):K()})}}; sY8=function(X,J,L){if(J.endpoint==="log_event"){NZ(void 0,J);var x=UU(J,!0),Q=new Map;Q.set(x,[fM(J.payload)]);L&&(Ak=new L);return new g.og(function(K){Ak&&Ak.isReady()?ksS(Q,Ak,K,{bypassNetworkless:!0},!0,km(X)):K()})}}; UU=function(X,J){var L="";if(X.dangerousLogToVisitorSession)L="visitorOnlyApprovedKey";else if(X.cttAuthInfo){if(J===void 0?0:J){J=X.cttAuthInfo.token;L=X.cttAuthInfo;var x=new Ts;L.videoId?x.setVideoId(L.videoId):L.playlistId&&yg(x,2,xO,SB(L.playlistId));ie[J]=x}else J=X.cttAuthInfo,L={},J.videoId?L.videoId=J.videoId:J.playlistId&&(L.playlistId=J.playlistId),QA[X.cttAuthInfo.token]=L;L=X.cttAuthInfo.token}return L}; Zi=function(X,J,L){X=X===void 0?{}:X;J=J===void 0?!1:J;new g.og(function(x,Q){var K=Xp(J,L),q=K.N;K.N=!1;Kf(K.K);Kf(K.L);K.L=0;Ak&&Ak.isReady()?L===void 0&&g.VQ("enable_web_tiered_gel")?ZpR(x,Q,X,J,300,q):ZpR(x,Q,X,J,L,q):(UDe(J,L),x())})}; ZpR=function(X,J,L,x,Q,K){var q=Ak;L=L===void 0?{}:L;x=x===void 0?!1:x;Q=Q===void 0?200:Q;K=K===void 0?!1:K;var D=new Map,C=new Map,M={isJspb:x,cttAuthInfo:void 0,tier:Q},y={isJspb:x,cttAuthInfo:void 0};if(x){J=g.d(Object.keys(mU));for(Q=J.next();!Q.done;Q=J.next())Q=Q.value,C=g.VQ("enable_web_tiered_gel")?BX().smartExtractMatchingEntries({keys:[M,y],sizeLimit:1E3}):BX().extractMatchingEntries({isJspb:!0,cttAuthInfo:Q}),C.length>0&&D.set(Q,C),(g.VQ("web_fp_via_jspb_and_json")&&L.writeThenSend||!g.VQ("web_fp_via_jspb_and_json"))&& delete mU[Q];ksS(D,q,X,L,!1,K)}else{D=g.d(Object.keys(mU));for(M=D.next();!M.done;M=D.next())M=M.value,y=g.VQ("enable_web_tiered_gel")?BX().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:M,tier:Q},{isJspb:!1,cttAuthInfo:M}],sizeLimit:1E3}):BX().extractMatchingEntries({isJspb:!1,cttAuthInfo:M}),y.length>0&&C.set(M,y),(g.VQ("web_fp_via_jspb_and_json")&&L.writeThenSend||!g.VQ("web_fp_via_jspb_and_json"))&&delete mU[M];mDY(C,q,X,J,L,!1,K)}}; UDe=function(X,J){function L(){Zi({writeThenSend:!0},X,J)} X=X===void 0?!1:X;J=J===void 0?200:J;var x=Xp(X,J),Q=x===AIm||x===X6m?5E3:J8P;g.VQ("web_gel_timeout_cap")&&!x.L&&(Q=Lf(function(){L()},Q),x.L=Q); Kf(x.K);Q=g.ly("LOGGING_BATCH_TIMEOUT",g.H6("web_gel_debounce_ms",1E4));g.VQ("shorten_initial_gel_batch_timeout")&&qB&&(Q=LHI);Q=Lf(function(){g.H6("gel_min_batch_size")>0?BX().getSequenceCount({cttAuthInfo:void 0,isJspb:X,tier:J})>=xVo&&L():L()},Q); x.K=Q}; mDY=function(X,J,L,x,Q,K,q){Q=Q===void 0?{}:Q;var D=Math.round((0,g.uT)()),C=X.size,M=iUR(q);X=g.d(X);var y=X.next();for(q={};!y.done;q={eB:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,WW:void 0,LK:void 0},y=X.next()){var n=g.d(y.value);y=n.next().value;n=n.next().value;q.batchRequest=g.Hc({context:g.qF(J.config_||g.KP())});if(!g.i8(n)&&!g.VQ("throw_err_when_logevent_malformed_killswitch")){x();break}q.batchRequest.events=n;(n=QA[y])&&QhA(q.batchRequest,y,n);delete QA[y];q.dangerousLogToVisitorSession= y==="visitorOnlyApprovedKey";KHZ(q.batchRequest,D,q.dangerousLogToVisitorSession);qvz(Q);q.WW=function(V){g.VQ("start_client_gcf")&&g.j$.xW(function(){return g.p(function(H){return g.z(H,IEm(V),0)})}); C--;C||L()}; q.eB=0;q.LK=function(V){return function(){V.eB++;if(Q.bypassNetworkless&&V.eB===1)try{g.BP(J,M,V.batchRequest,IV({writeThenSend:!0},V.dangerousLogToVisitorSession,V.WW,V.LK,K)),qB=!1}catch(H){g.sI(H),x()}C--;C||L()}}(q); try{g.BP(J,M,q.batchRequest,IV(Q,q.dangerousLogToVisitorSession,q.WW,q.LK,K)),qB=!1}catch(V){g.sI(V),x()}}}; ksS=function(X,J,L,x,Q,K){x=x===void 0?{}:x;var q=Math.round((0,g.uT)()),D={value:X.size},C=new Map([].concat(g.nR(X)));C=g.d(C);for(var M=C.next();!M.done;M=C.next()){var y=g.d(M.value).next().value,n=X.get(y);M=new GLR;var V=J.config_||g.KP(),H=new zs,O=new by;rq(O,1,V.Di);rq(O,2,V.l1);jp(O,16,V.dw);rq(O,17,V.innertubeContextClientVersion);if(V.sK){var u=V.sK,S=new uy;u.coldConfigData&&rq(S,1,u.coldConfigData);u.appInstallData&&rq(S,6,u.appInstallData);u.coldHashData&&rq(S,3,u.coldHashData);u.hotHashData&& S.Ec(u.hotHashData);tK(O,uy,62,S)}(u=g.Ao.devicePixelRatio)&&u!=1&&JK(O,65,De(u));u=Ov();u!==""&&rq(O,54,u);u=ah();if(u.length>0){S=new cu;for(var Y=0;Y65535&&(X=1);F$("BATCH_CLIENT_COUNTER",X);return X}; QhA=function(X,J,L){if(L.videoId)var x="VIDEO";else if(L.playlistId)x="PLAYLIST";else return;X.credentialTransferTokenTargetId=L;X.context=X.context||{};X.context.user=X.context.user||{};X.context.user.credentialTransferTokens=[{token:J,scope:x}]}; NZ=function(X,J){var L=g.Ld("yt.logging.transport.enableScrapingForTest"),x=nU("il_payload_scraping");x=(x!==void 0?String(x):"")==="enable_il_payload_scraping";if(!L)if(x)$O=[],g.JS("yt.logging.transport.enableScrapingForTest",!0),g.JS("yt.logging.transport.scrapedPayloadsForTesting",$O),g.JS("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.JS("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.JS("yt.logging.transport.scrapeClientEvent",!0);else return;L=g.Ld("yt.logging.transport.scrapedPayloadsForTesting");x=g.Ld("yt.logging.transport.payloadToScrape");J&&(J=J.payload,(J=g.Ld("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(J)())&&L.push(J));J=g.Ld("yt.logging.transport.scrapeClientEvent");if(x&&x.length>=1)for(var Q=0;Q0&&Ebe(X,J,K)}else Ebe(X,J)}; Ebe=function(X,J,L){X=YvR(X);J=J?g.Vs(J):"";L=L||5;A8()&&g.h8(X,J,L)}; YvR=function(X){for(var J=g.d(h0W),L=J.next();!L.done;L=J.next())X=dA(X,L.value);return"ST-"+zu(X).toString(36)}; z0S=function(X){if(X.name==="JavaException")return!0;X=X.stack;return X.includes("chrome://")||X.includes("-extension://")||X.includes("webkit-masked-url://")}; WHZ=function(X){if(!X.stack)return!0;var J=!X.stack.includes("\n");return J&&X.stack.includes("ErrorType: ")||J&&X.stack.includes("Anonymous function (Unknown script")||X.stack.toLowerCase()==="not available"||X.fileName==="user-script"||X.fileName.startsWith("user-script:")?!0:!1}; p6m=function(){this.VH=[];this.A4=[]}; d2=function(){if(!tR){var X=tR=new p6m;X.A4.length=0;X.VH.length=0;r8R(X,vbo)}return tR}; r8R=function(X,J){J.A4&&X.A4.push.apply(X.A4,J.A4);J.VH&&X.VH.push.apply(X.VH,J.VH)}; jhm=function(X){function J(){return X.charCodeAt(x++)} var L=X.length,x=0;do{var Q=ue(J);if(Q===Infinity)break;var K=Q>>3;switch(Q&7){case 0:Q=ue(J);if(K===2)return Q;break;case 1:if(K===2)return;x+=8;break;case 2:Q=ue(J);if(K===2)return X.substr(x,Q);x+=Q;break;case 5:if(K===2)return;x+=4;break;default:return}}while(x500));x++);x=Q}else if(typeof X==="object")for(Q in X){if(X[Q]){var K=Q;var q=X[Q],D=J,C=L;K=typeof q!=="string"||K!=="clickTrackingParams"&&K!=="trackingParams"?0:(q=jhm(atob(q.replace(/-/g,"+").replace(/_/g,"/"))))?oV(K+".ve",q,D,C):0;x+=K;x+=oV(Q,X[Q],J,L);if(x>500)break}}else L[J]=be(X),x+=L[J].length;else L[J]=be(X),x+=L[J].length;return x}; oV=function(X,J,L,x){L+="."+X;X=be(J);x[L]=X;return L.length+X.length}; be=function(X){try{return(typeof X==="string"?X:String(JSON.stringify(X))).substr(0,500)}catch(J){return"unable to serialize "+typeof X+" ("+J.message+")"}}; iT=function(X){g.Sc(X)}; g.PM=function(X){g.Sc(X,"WARNING")}; g.Sc=function(X,J){var L=L===void 0?{}:L;L.name=g.ly("INNERTUBE_CONTEXT_CLIENT_NAME",1);L.version=g.ly("INNERTUBE_CONTEXT_CLIENT_VERSION");J=J===void 0?"ERROR":J;var x=!1;J=J===void 0?"ERROR":J;x=x===void 0?!1:x;if(X){X.hasOwnProperty("level")&&X.level&&(J=X.level);if(g.VQ("console_log_js_exceptions")){var Q=[];Q.push("Name: "+X.name);Q.push("Message: "+X.message);X.hasOwnProperty("params")&&Q.push("Error Params: "+JSON.stringify(X.params));X.hasOwnProperty("args")&&Q.push("Error args: "+JSON.stringify(X.args)); Q.push("File name: "+X.fileName);Q.push("Stacktrace: "+X.stack);window.console.log(Q.join("\n"),X)}if(!(Gom>=5)){Q=[];for(var K=g.d(fEZ),q=K.next();!q.done;q=K.next()){q=q.value;try{q()&&Q.push(q())}catch(u){}}Q=[].concat(g.nR(e0z),g.nR(Q));var D=QHY(X);K=D.message||"Unknown Error";q=D.name||"UnknownError";var C=D.stack||X.K||"Not available";if(C.startsWith(q+": "+K)){var M=C.split("\n");M.shift();C=M.join("\n")}M=D.lineNumber||"Not available";D=D.fileName||"Not available";var y=0;if(X.hasOwnProperty("args")&& X.args&&X.args.length)for(var n=0;n=500);n++);else if(X.hasOwnProperty("params")&&X.params){var V=X.params;if(typeof X.params==="object")for(n in V){if(V[n]){var H="params."+n,O=be(V[n]);L[H]=O;y+=H.length+O.length;if(y>500)break}}else L.params=be(V)}if(Q.length)for(n=0;n=500);n++);navigator.vendor&&!L.hasOwnProperty("vendor")&&(L["device.vendor"]=navigator.vendor);L={message:K,name:q,lineNumber:M, fileName:D,stack:C,params:L,sampleWeight:1};n=Number(X.columnNumber);isNaN(n)||(L.lineNumber=L.lineNumber+":"+n);if(X.level==="IGNORED")X=0;else a:{X=d2();n=g.d(X.A4);for(Q=n.next();!Q.done;Q=n.next())if(Q=Q.value,L.message&&L.message.match(Q.DZ)){X=Q.weight;break a}X=g.d(X.VH);for(n=X.next();!n.done;n=X.next())if(n=n.value,n.callback(L)){X=n.weight;break a}X=1}L.sampleWeight=X;X=g.d(FHA);for(n=X.next();!n.done;n=X.next())if(n=n.value,n.wO[L.name])for(K=g.d(n.wO[L.name]),Q=K.next();!Q.done;Q=K.next())if(q= Q.value,Q=L.message.match(q.pJ)){L.params["params.error.original"]=Q[0];K=q.groups;q={};for(M=0;M1E3&&g.PM(new g.Fm("IL Attach cache exceeded limit"))}D= ff(L,J);r2.has(D)?ec(L,J):jc.set(D,!0)}}x=x.filter(function(y){y.csn!==J?(y.csn=J,y=!0):y=!1;return y}); L={csn:J,parentVe:L.getAsJson(),childVes:g.H5(x,function(y){return y.getAsJson()})}; J==="UNDEFINED_CSN"?Fp("visualElementAttached",K,L):X?MB("visualElementAttached",L,X,K):g.QK("visualElementAttached",L,K)}; ilo=function(X,J,L,x,Q){le(L,J);x=pf({cttAuthInfo:aV(J)||void 0},J);L={csn:J,ve:L.getAsJson(),eventType:1};Q&&(L.clientData=Q);J==="UNDEFINED_CSN"?Fp("visualElementShown",x,L):X?MB("visualElementShown",L,X,x):g.QK("visualElementShown",L,x)}; Q2o=function(X,J,L,x){var Q=(x=x===void 0?!1:x)?16:8;x=pf({cttAuthInfo:aV(J)||void 0,endOfSequence:x},J);L={csn:J,ve:L.getAsJson(),eventType:Q};J==="UNDEFINED_CSN"?Fp("visualElementHidden",x,L):X?MB("visualElementHidden",L,X,x):g.QK("visualElementHidden",L,x)}; BM=function(X,J,L,x,Q){RV(X,J,L,void 0,x,Q)}; RV=function(X,J,L,x,Q){le(L,J);x=x||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var K=pf({cttAuthInfo:aV(J)||void 0},J);L={csn:J,ve:L.getAsJson(),gestureType:x};Q&&(L.clientData=Q);J==="UNDEFINED_CSN"?Fp("visualElementGestured",K,L):X?MB("visualElementGestured",L,X,K):g.QK("visualElementGestured",L,K)}; KnR=function(){var X=yu(16);for(var J=[],L=0;L0&&L.push(g.MG("BR"));L.push(g.nj(K))}):L.push(g.nj(x))}return L}; Ky=function(X,J,L,x){if(L==="child"){g.HB(J);var Q;x===void 0?Q=void 0:Q=!Array.isArray(x)||x&&typeof x.V==="string"?[x]:x;L=IlP(X,Q);L=g.d(L);for(X=L.next();!X.done;X=L.next())J.appendChild(X.value)}else L==="style"?g.lF(J,"cssText",x?x:""):x===null||x===void 0?J.removeAttribute(L):(X=x.toString(),L==="href"&&(X=g.i$(g.IQ(X))),J.setAttribute(L,X))}; g.R=function(X){g.iA.call(this,X);this.RB=!0;this.j=!1;this.listeners=[]}; g.qy=function(X){g.R.call(this,X);this.SC=new g.Ly;g.f(this,this.SC)}; IO=function(X,J,L,x,Q,K,q){q=q===void 0?null:q;g.qy.call(this,J);this.api=X;this.macros={};this.componentType=L;this.W=this.S=null;this.A0=q;this.layoutId=x;this.interactionLoggingClientData=Q;this.oB=K;this.bB=null;this.qh=new $m(this.element);g.f(this,this.qh);this.Cm=this.J(this.element,"click",this.onClick);this.FE=[];this.Pl=new CL(this.onClick,this);g.f(this,this.Pl);this.Lp=!1;this.Bl=this.Km=null}; gh=function(X,J){X=X===void 0?null:X;J=J===void 0?null:J;if(X==null)return g.PM(Error("Got null or undefined adText object")),"";var L=g.hH(X.text);if(!X.isTemplated)return L;if(J==null)return g.PM(Error("Missing required parameters for a templated message")),L;X=g.d(Object.entries(J));for(J=X.next();!J.done;J=X.next()){var x=g.d(J.value);J=x.next().value;x=x.next().value;L=L.replace("{"+J+"}",x)}return L}; g1O=function(X){X=X===void 0?null:X;return X!=null&&(X=X.thumbnail,X!=null&&X.thumbnails!=null&&X.thumbnails.length!=0&&X.thumbnails[0].url!=null)?g.hH(X.thumbnails[0].url):""}; DkW=function(X){X=X===void 0?null:X;return X!=null&&(X=X.thumbnail,X!=null&&X.thumbnails!=null&&X.thumbnails.length!=0&&X.thumbnails[0].width!=null&&X.thumbnails[0].height!=null)?new g.B_(X.thumbnails[0].width||0,X.thumbnails[0].height||0):new g.B_(0,0)}; g.Dn=function(X){if(X.simpleText)return X.simpleText;if(X.runs){var J=[];X=g.d(X.runs);for(var L=X.next();!L.done;L=X.next())L=L.value,L.text&&J.push(L.text);return J.join("")}return""}; g.$E=function(X){if(X.simpleText)return X=document.createTextNode(X.simpleText),X;var J=[];if(X.runs)for(var L=0;L1){for(var J=[X[0]],L=1;L0&&(this.L=new g.sn(this.cE,J,this),g.f(this,this.L));this.j=new g.sn(this.cE,L,this);g.f(this,this.j);this.S=EfA(this.K,Q,1,x);g.f(this,this.S);this.W=EfA(this.K,0,x,1);g.f(this,this.W);this.T=new o2;g.f(this,this.T)}; xL=function(X,J,L){this.K=X;this.isAsync=J;this.L=L}; JOA=function(X){switch(X){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:$0(X,"unknown result type")}}; L4W=function(X,J){var L=1;X.isTrusted===!1&&(L=0);F$("ISDSTAT",L);i4(L,"i.s_",{triggerContext:"sk",metadata:J});return L}; xAo=function(X,J){var L=[];J?J.isTrusted===!0?L.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):J.isTrusted===!1?L.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):L.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):L.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");i4(0,"a.s_",{metadata:X,states:L});F$("ASDSTAT",0)}; i4=function(X,J,L){J=i9v[J];var x,Q,K={detected:X===0,source:""+J.K+((x=L.triggerContext)!=null?x:"")+((Q=L.t9)!=null?Q:""),detectionStates:L.states,durationMs:L.eG};L.metadata&&(K.contentCpn=L.metadata.contentCpn,K.adCpn=L.metadata.adCpn);g.QK("biscottiBasedDetection",K);J.L!==void 0&&(L=Number(g.ly("CATSTAT",0)),J.L!==void 0?(J=J.L,X=JOA(X),X=L&~(3<0}; $L=function(X,J,L,x,Q,K){Ny.call(this,X,{V:"div",U:"ytp-ad-skip-button-slot"},"skip-button",J,L,x,Q);var q=this;this.aB=null;this.gI=!1;this.Hl=K;this.B=this.api.G().experiments.Mi("enable_modern_skip_button_on_web");this.J0=!1;this.T=new g.qy({V:"span",Ql:["ytp-ad-skip-button-container"]});this.B&&this.T.element.classList.add("ytp-ad-skip-button-container-detached");g.f(this,this.T);this.T.zH(this.element);this.K=this.N=null;this.O6=new g.kE(this.T,500,!1,100,function(){return q.hide()}); g.f(this,this.O6);this.vl=new LX(this.T.element,15E3,5E3,.5,.5,this.B);g.f(this,this.vl);this.hide()}; K4o=function(X){X=X.aB&&X.aB.adRendererCommands;return(X&&X.clickCommand&&g.F(X.clickCommand,g.CX)&&g.F(X.clickCommand,g.CX).commands||[]).some(function(J){return J.adLifecycleCommand?QZY(J.adLifecycleCommand):!1})}; QZY=function(X){return X.action==="END_LINEAR_AD"||X.action==="END_LINEAR_AD_PLACEMENT"}; MH=function(X,J,L,x,Q,K){Ny.call(this,X,{V:"div",U:"ytp-ad-skip-ad-slot"},"skip-ad",J,L,x,Q);this.aB=K;this.T=!1;this.B=0;this.N=this.K=null;this.hide()}; qVW=function(X,J){X.T||(X.T=!0,X.K&&(J?X.K.aB.hide():X.K.hide()),J?(X=X.N,X.O6.show(),X.show()):X.N.show())}; yZ=function(X,J,L,x){c1.call(this,X,J,L,x,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; nX=function(X,J,L,x,Q,K,q){K=K===void 0?!1:K;q=q===void 0?!1:q;IO.call(this,X,{V:"span",U:"ytp-ad-simple-ad-badge"},"simple-ad-badge",J,L,x);this.N=Q;this.L=this.kq("ytp-ad-simple-ad-badge");(this.K=K)&&this.L.classList.add("ytp-ad-simple-ad-badge--clean-player");q&&this.L.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; VZ=function(X,J,L,x,Q){Q=Q===void 0?!1:Q;JC.call(this,"player-overlay",X,{},J,x);this.videoAdDurationSeconds=L;this.interactionLoggingClientData=x;this.Vb=Q}; H8=function(X,J){g.Ly.call(this);this.api=X;this.durationMs=J;this.L=null;this.Dh=new o2(this);g.f(this,this.Dh);this.K=Ico;this.Dh.J(this.api,"presentingplayerstatechange",this.hN);this.L=this.Dh.J(this.api,"onAdPlaybackProgress",this.qd)}; OL=function(X){g.Ly.call(this);this.L=!1;this.yZ=0;this.Dh=new o2(this);g.f(this,this.Dh);this.durationMs=X;this.timer=new g.rJ(100);g.f(this,this.timer);this.Dh.J(this.timer,"tick",this.qd);this.K={seekableStart:0,seekableEnd:X/1E3,current:0};this.start()}; g.aF=function(X,J){var L=Math.abs(Math.floor(X)),x=Math.floor(L/86400),Q=Math.floor(L%86400/3600),K=Math.floor(L%3600/60);L=Math.floor(L%60);if(J){J="";x>0&&(J+=" "+x+" d\u00edas");if(x>0||Q>0)J+=" "+Q+" horas";J+=" "+K+" minutos";J+=" "+L+" segundos";x=J.trim()}else{J="";x>0&&(J+=x+":",Q<10&&(J+="0"));if(x>0||Q>0)J+=Q+":",K<10&&(J+="0");J+=K+":";L<10&&(J+="0");x=J+L}return X>=0?x:"-"+x}; g.wn=function(X){return(!("button"in X)||typeof X.button!=="number"||X.button===0)&&!("shiftKey"in X&&X.shiftKey)&&!("altKey"in X&&X.altKey)&&!("metaKey"in X&&X.metaKey)&&!("ctrlKey"in X&&X.ctrlKey)}; tu=function(X,J,L,x,Q,K,q){Ny.call(this,X,{V:"span",U:q?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",J,L,x,Q);this.videoAdDurationSeconds=K;this.K=null;q&&this.api.G().K&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),Fh&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; dn=function(X,J,L,x){B1.call(this,X,J,L,x,"ytp-video-ad-top-bar-title","ad-title")}; u4=function(X){this.content=X.content;if(X.commandRuns){X=g.d(X.commandRuns);for(var J=X.next();!J.done;J=X.next())J=J.value,this.loggingDirectives=g.F(J,gGI),J.onTap&&(this.interaction={onTap:J.onTap})}}; oF=function(X,J,L,x){IO.call(this,X,{V:"div",U:"ad-simple-attributed-string"},"ad-simple-attributed-string",J,L,x);this.hide()}; b4=function(X,J,L,x,Q){IO.call(this,X,{V:"span",U:Q?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",J,L,x);this.K=Q;this.adBadgeText=new oF(this.api,this.layoutId,this.interactionLoggingClientData,this.oB);this.adBadgeText.zH(this.element);g.f(this,this.adBadgeText);Q?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),Fh&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; Sh=function(X,J,L,x){IO.call(this,X,{V:"span",U:"ytp-ad-pod-index"},"ad-pod-index",J,L,x);this.api.G().K&&(this.element.classList.add("ytp-ad-pod-index--mweb"),Fh&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; P8=function(X,J,L,x){IO.call(this,X,{V:"div",U:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",J,L,x);this.hide()}; c8=function(X,J){this.K=X;this.L=J}; DAO=function(X,J){return X.K+J*(X.L-X.K)}; EL=function(X,J,L){return X.L-X.K?g.fW((J-X.K)/(X.L-X.K),0,1):L!=null?L:Infinity}; YL=function(X,J,L,x){x=x===void 0?!1:x;g.qy.call(this,{V:"div",U:"ytp-ad-persistent-progress-bar-container",C:[{V:"div",U:"ytp-ad-persistent-progress-bar"}]});this.api=X;this.K=J;this.N=L;x&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.f(this,this.K);this.progressBar=this.kq("ytp-ad-persistent-progress-bar");this.L=-1;this.J(X,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; hu=function(X,J,L,x,Q,K){IO.call(this,X,{V:"div",U:"ytp-ad-player-overlay",C:[{V:"div",U:"ytp-ad-player-overlay-flyout-cta"},{V:"div",U:"ytp-ad-player-overlay-instream-info"},{V:"div",U:"ytp-ad-player-overlay-skip-or-preview"},{V:"div",U:"ytp-ad-player-overlay-progress-bar"},{V:"div",U:"ytp-ad-player-overlay-instream-user-sentiment"},{V:"div",U:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",J,L,x);this.D=K;this.B=this.kq("ytp-ad-player-overlay-flyout-cta");this.B.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.L=this.kq("ytp-ad-player-overlay-instream-info");this.T=null;$AR(this)&&(X=Cj("div"),g.xq(X,"ytp-ad-player-overlay-top-bar-gradients"),J=this.L,J.parentNode&&J.parentNode.insertBefore(X,J),(J=this.api.getVideoData(2))&&J.isListed&&J.title&&(L=new dn(this.api,this.layoutId,this.interactionLoggingClientData,this.oB),L.zH(X),L.init(Xr("ad-title"),{text:J.title},this.macros),g.f(this,L)),this.T=X);this.N=null;this.jC=this.kq("ytp-ad-player-overlay-skip-or-preview");this.vl=this.kq("ytp-ad-player-overlay-progress-bar"); this.gI=this.kq("ytp-ad-player-overlay-instream-user-sentiment");this.aB=this.kq("ytp-ad-player-overlay-ad-disclosure-banner");this.K=Q;g.f(this,this.K);this.hide()}; $AR=function(X){X=X.api.G();return g.ze(X)&&X.K}; g.W8=function(X){X&=16777215;var J=[(X&16711680)>>16,(X&65280)>>8,X&255];X=J[0];var L=J[1];J=J[2];X=Number(X);L=Number(L);J=Number(J);if(X!=(X&255)||L!=(L&255)||J!=(J&255))throw Error('"('+X+","+L+","+J+'") is not a valid RGB color');L=X<<16|L<<8|J;return X<16?"#"+(16777216|L).toString(16).slice(1):"#"+L.toString(16)}; g.pX=function(){}; Mkm=function(X){var J=new gg;var L=new Ik;L=rq(L,1,"botguard");X=rq(L,2,X);this.L=p_I(J,Ik,1,CTA,X)}; rn=function(X){this.L=new Sg(X)}; yOW=function(){var X=!1;try{X=!!window.sessionStorage.getItem("session_logininfo")}catch(J){X=!0}return(g.ly("INNERTUBE_CLIENT_NAME")==="WEB"||g.ly("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&X}; v8=function(){var X=X===void 0?!0:X;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");F$("LOGIN_INFO","");X&&window.sessionStorage.setItem("from_switch_account","1");X=!0;X=X===void 0?!1:X;var J,L=nGZ;L||(L=document.querySelector("#persist_identity"));if(J=L){var x=J.src?(new URL(J.src)).origin:"*";if(X){var Q;(Q=J.contentWindow)==null||Q.postMessage({action:"clear"},x)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var K=window.sessionStorage.getItem("session_logininfo");if(K){var q;(q=J.contentWindow)==null||q.postMessage({loginInfo:K},x)}}}}catch(D){}}; jh=function(X){X&&(X.startsWith("https://accounts.google.com/AddSession")?v8():X.startsWith("https://accounts.google.com/ServiceLogin")?v8():X.startsWith("https://myaccount.google.com")&&g.CT(X).K.endsWith("/youtubeoptions")&&v8());if(g.ly("LOGGED_IN",!0)&&yOW()){var J=g.ly("VALID_SESSION_TEMPDATA_DOMAINS",[]);var L=g.Dk(window.location.href);L&&J.push(L);L=g.Dk(X);g.tS(J,L)||!L&&E1(X,"/")?(J=C3(X),(J=F98(J))?(J=YvR(J),J=(J=g.zo(J)||null)?ZB(J):{}):J=null):J=null;J==null&&(J={});L=J;var x=void 0; yOW()?(x||(x=g.ly("LOGIN_INFO")),x?(L.session_logininfo=x,L=!0):L=!1):L=!1;L&&w2(X,J)}}; g.VkA=function(X){var J=J===void 0?{}:J;var L=L===void 0?"":L;var x=x===void 0?window:x;X=g.Hw(X,J);jh(X);L=g.IQ(X+L);x=x.location;L=gZ(L);L!==void 0&&(x.href=L)}; g.Te=function(X,J,L){J=J===void 0?{}:J;L=L===void 0?!1:L;var x=g.ly("EVENT_ID");x&&(J.ei||(J.ei=x));J&&w2(X,J);L||(jh(X),g.VkA(X))}; g.Ge=function(X,J,L,x,Q){Q=Q===void 0?!1:Q;L&&w2(X,L);L=g.IQ(X);var K=g.i$(L);X!=K&&UI(Error("Unsafe window.open URL: "+X));X=K;J=J||zu(X).toString(36);try{if(Q)return Q=X,Q=IBS(Q),jh(Q),g.nW(window,Q,J,"attributionsrc")}catch(q){g.sI(q)}jh(X);return g.nW(window,L,J,x)}; H9z=function(X){fX=X}; O9P=function(X){eh=X}; acz=function(X){F4=X}; tkO=function(){wRm=F4=eh=fX=null}; uhY=function(){var X=X===void 0?window.location.href:X;if(g.VQ("kevlar_disable_theme_param"))return null;var J=$4(X);if(g.VQ("enable_dark_theme_only_on_shorts")&&J!=null&&J.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var L=g.XU(X).theme;return dAY.get(L)||null}catch(x){}return null}; l4=function(){this.L={};if(this.K=nxS()){var X=g.zo("CONSISTENCY");X&&oGA(this,{encryptedTokenJarContents:X})}}; oGA=function(X,J){if(J.encryptedTokenJarContents&&(X.L[J.encryptedTokenJarContents]=J,typeof J.expirationSeconds==="string")){var L=Number(J.expirationSeconds);setTimeout(function(){delete X.L[J.encryptedTokenJarContents]},L*1E3); X.K&&g.h8("CONSISTENCY",J.encryptedTokenJarContents,L,void 0,!0)}}; B8=function(){this.K=-1;var X=g.ly("LOCATION_PLAYABILITY_TOKEN");g.ly("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=RF(this))&&(X=this.localStorage.get("yt-location-playability-token"));X&&(this.locationPlayabilityToken=X,this.L=void 0)}; RF=function(X){return X.localStorage===void 0?new A3("yt-client-location"):X.localStorage}; g.sL=function(X,J,L){J=J===void 0?!1:J;L=L===void 0?!1:L;var x=g.ly("INNERTUBE_CONTEXT");if(!x)return g.Sc(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};x=g.Hc(x);g.VQ("web_no_tracking_params_in_shell_killswitch")||delete x.clickTracking;x.client||(x.client={});var Q=x.client;Q.clientName==="MWEB"&&Q.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(Q.clientFormFactor=g.ly("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");Q.screenWidthPoints=window.innerWidth;Q.screenHeightPoints= window.innerHeight;Q.screenPixelDensity=Math.round(window.devicePixelRatio||1);Q.screenDensityFloat=window.devicePixelRatio||1;Q.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var K=K===void 0?!1:K;g.v2();var q="USER_INTERFACE_THEME_LIGHT";g.jf(0,165)?q="USER_INTERFACE_THEME_DARK":g.jf(0,174)?q="USER_INTERFACE_THEME_LIGHT":!g.VQ("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (q="USER_INTERFACE_THEME_DARK");K=K?q:uhY()||q;Q.userInterfaceTheme=K;if(!J){if(K=JAA())Q.connectionType=K;g.VQ("web_log_effective_connection_type")&&(K=xcm())&&(x.client.effectiveConnectionType=K)}var D;if(g.VQ("web_log_memory_total_kbytes")&&((D=g.Ao.navigator)==null?0:D.deviceMemory)){var C;D=(C=g.Ao.navigator)==null?void 0:C.deviceMemory;x.client.memoryTotalKbytes=""+D*1E6}g.VQ("web_gcf_hashes_innertube")&&(K=D8e())&&(C=K.coldConfigData,D=K.coldHashData,K=K.hotHashData,x.client.configInfo=x.client.configInfo|| {},C&&(x.client.configInfo.coldConfigData=C),D&&(x.client.configInfo.coldHashData=D),K&&(x.client.configInfo.hotHashData=K));C=g.XU(g.Ao.location.href);!g.VQ("web_populate_internal_geo_killswitch")&&C.internalcountrycode&&(Q.internalGeo=C.internalcountrycode);Q.clientName==="MWEB"||Q.clientName==="WEB"?(Q.mainAppWebInfo={graftUrl:g.Ao.location.href},g.VQ("kevlar_woffle")&&NjR.instance&&(C=NjR.instance,Q.mainAppWebInfo.pwaInstallabilityStatus=!C.L&&C.K?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),Q.mainAppWebInfo.webDisplayMode=W2(),Q.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):Q.clientName==="TVHTML5"&&(!g.VQ("web_lr_app_quality_killswitch")&&(C=g.ly("LIVING_ROOM_APP_QUALITY"))&&(Q.tvAppInfo=Object.assign(Q.tvAppInfo||{},{appQuality:C})),C=g.ly("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(Q.tvAppInfo=Object.assign(Q.tvAppInfo||{},{certificationScope:C}));if(!g.VQ("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var M=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(T){}M=void 0}M&&(Q.timeZone=M)}(M=Ov())?Q.experimentsToken=M:delete Q.experimentsToken;M=ah();l4.instance||(l4.instance=new l4);x.request=Object.assign({},x.request,{internalExperimentFlags:M,consistencyTokenJars:qx(l4.instance.L)});!g.VQ("web_prequest_context_killswitch")&&(M=g.ly("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(x.request.externalPrequestContext=M);Q=g.v2();M=g.jf(0,58);Q=Q.get("gsml","");x.user=Object.assign({}, x.user);M&&(x.user.enableSafetyMode=M);Q&&(x.user.lockedSafetyMode=!0);g.VQ("warm_op_csn_cleanup")?L&&(J=g.Ow())&&(x.clientScreenNonce=J):!J&&(J=g.Ow())&&(x.clientScreenNonce=J);X&&(x.clickTracking={clickTrackingParams:X});if(X=g.Ld("yt.mdx.remote.remoteClient_"))x.remoteClient=X;B8.getInstance().setLocationOnInnerTubeContext(x);try{var y=Ih(),n=y.bid;delete y.bid;x.adSignalsInfo={params:[],bid:n};for(var V=g.d(Object.entries(y)),H=V.next();!H.done;H=V.next()){var O=g.d(H.value),u=O.next().value, S=O.next().value;y=u;n=S;X=void 0;(X=x.adSignalsInfo.params)==null||X.push({key:y,value:""+n})}var Y,h;if(((Y=x.client)==null?void 0:Y.clientName)==="TVHTML5"||((h=x.client)==null?void 0:h.clientName)==="TVHTML5_UNPLUGGED"){var W=g.ly("INNERTUBE_CONTEXT");W.adSignalsInfo&&(x.adSignalsInfo.advertisingId=W.adSignalsInfo.advertisingId,x.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",x.adSignalsInfo.limitAdTracking=W.adSignalsInfo.limitAdTracking)}}catch(T){g.Sc(T)}return x}; PTv=function(X,J){if(!X)return!1;var L,x=(L=g.F(X,b9e))==null?void 0:L.signal;if(x&&J.hq)return!!J.hq[x];var Q;if((L=(Q=g.F(X,SVO))==null?void 0:Q.request)&&J.Ay)return!!J.Ay[L];for(var K in X)if(J.eL[K])return!0;return!1}; cOA=function(X){var J={"Content-Type":"application/json"};g.ly("EOM_VISITOR_DATA")?J["X-Goog-EOM-Visitor-Id"]=g.ly("EOM_VISITOR_DATA"):g.ly("VISITOR_DATA")&&(J["X-Goog-Visitor-Id"]=g.ly("VISITOR_DATA"));J["X-Youtube-Bootstrap-Logged-In"]=g.ly("LOGGED_IN",!1);g.ly("DEBUG_SETTINGS_METADATA")&&(J["X-Debug-Settings-Metadata"]=g.ly("DEBUG_SETTINGS_METADATA"));X!=="cors"&&((X=g.ly("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(J["X-Youtube-Client-Name"]=X),(X=g.ly("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(J["X-Youtube-Client-Version"]= X),(X=g.ly("CHROME_CONNECTED_HEADER"))&&(J["X-Youtube-Chrome-Connected"]=X),(X=g.ly("DOMAIN_ADMIN_STATE"))&&(J["X-Youtube-Domain-Admin-State"]=X),g.ly("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(X=g.ly("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(J["X-YouTube-Lava-Device-Context"]=X));return J}; EGz=function(){this.L={}}; NH=function(){this.mappings=new EGz}; UL=function(X){return function(){return new X}}; hPP=function(X){var J=J===void 0?"UNKNOWN_INTERFACE":J;if(X.length===1)return X[0];var L=YVZ[J];if(L){L=new RegExp(L);for(var x=g.d(X),Q=x.next();!Q.done;Q=x.next())if(Q=Q.value,L.exec(Q))return Q}var K=[];Object.entries(YVZ).forEach(function(q){var D=g.d(q);q=D.next().value;D=D.next().value;J!==q&&K.push(D)}); L=new RegExp(K.join("|"));X.sort(function(q,D){return q.length-D.length}); x=g.d(X);for(Q=x.next();!Q.done;Q=x.next())if(Q=Q.value,!L.exec(Q))return Q;return X[0]}; g.mr=function(X){return"/youtubei/v1/"+hPP(X)}; kL=function(){}; Zs=function(){}; Au=function(){}; Xq=function(X){return g.Ld("ytcsi."+(X||"")+"data_")||zP8(X)}; W48=function(){var X=Xq();X.info||(X.info={});return X.info}; Jt=function(X){X=Xq(X);X.metadata||(X.metadata={});return X.metadata}; LF=function(X){X=Xq(X);X.tick||(X.tick={});return X.tick}; xR=function(X){X=Xq(X);if(X.gel){var J=X.gel;J.gelInfos||(J.gelInfos={});J.gelTicks||(J.gelTicks={})}else X.gel={gelTicks:{},gelInfos:{}};return X.gel}; pRR=function(X){X=xR(X);X.gelInfos||(X.gelInfos={});return X.gelInfos}; iV=function(X){var J=Xq(X).nonce;J||(J=g.nL(16),Xq(X).nonce=J);return J}; zP8=function(X){var J={tick:{},info:{}};g.JS("ytcsi."+(X||"")+"data_",J);return J}; QD=function(){var X=g.Ld("ytcsi.debug");X||(X=[],g.JS("ytcsi.debug",X),g.JS("ytcsi.reference",{}));return X}; KF=function(X){X=X||"";var J=rOY();if(J[X])return J[X];var L=QD(),x={timerName:X,info:{},tick:{},span:{},jspbInfo:[]};L.push(x);return J[X]=x}; vG8=function(X){X=X||"";var J=rOY();J[X]&&delete J[X];var L=QD(),x={timerName:X,info:{},tick:{},span:{},jspbInfo:[]};L.push(x);J[X]=x}; rOY=function(){var X=g.Ld("ytcsi.reference");if(X)return X;QD();return g.Ld("ytcsi.reference")}; qR=function(X){return jZP[X]||"LATENCY_ACTION_UNKNOWN"}; Io=function(X,J){gb.call(this,1,arguments);this.timer=J}; gD=function(){this.L=0}; DN=function(){gD.instance||(gD.instance=new gD);return gD.instance}; CF=function(X,J){$R[J]=$R[J]||{count:0};var L=$R[J];L.count++;L.time=(0,g.uT)();X.L||(X.L=g.Nk(0,function(){var x=(0,g.uT)(),Q;for(Q in $R)$R[Q]&&x-$R[Q].time>6E4&&delete $R[Q];X&&(X.L=0)},5E3)); return L.count>5?(L.count===6&&Math.random()*1E5<1&&(L=new g.Fm("CSI data exceeded logging limit with key",J.split("_")),J.indexOf("plev")>=0||g.PM(L)),!0):!1}; T_z=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; GdW=function(){var X;if(g.VQ("csi_use_performance_navigation_timing")){var J,L,x,Q=MR==null?void 0:(X=MR.getEntriesByType)==null?void 0:(J=X.call(MR,"navigation"))==null?void 0:(L=J[0])==null?void 0:(x=L.toJSON)==null?void 0:x.call(L);Q?(Q.requestStart=yD(Q.requestStart),Q.responseEnd=yD(Q.responseEnd),Q.redirectStart=yD(Q.redirectStart),Q.redirectEnd=yD(Q.redirectEnd),Q.domainLookupEnd=yD(Q.domainLookupEnd),Q.connectStart=yD(Q.connectStart),Q.connectEnd=yD(Q.connectEnd),Q.responseStart=yD(Q.responseStart), Q.secureConnectionStart=yD(Q.secureConnectionStart),Q.domainLookupStart=yD(Q.domainLookupStart),Q.isPerformanceNavigationTiming=!0,X=Q):X=MR.timing}else X=g.VQ("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(MR.timing)):MR.timing;return X}; yD=function(X){return Math.round(nF()+X)}; nF=function(){return(g.VQ("csi_use_time_origin")||g.VQ("csi_use_time_origin_tvhtml5"))&&MR.timeOrigin?Math.floor(MR.timeOrigin):MR.timing.navigationStart}; HQ=function(X,J){VD("_start",X,J)}; O4=function(X,J){if(!g.VQ("web_csi_action_sampling_enabled")||!Xq(J).actionDisabled){var L=KF(J||"");ir(L.info,X);X.loadType&&(L=X.loadType,Jt(J).loadType=L);ir(pRR(J),X);L=iV(J);J=Xq(J).cttAuthInfo;DN().info(X,L,J)}}; fcR=function(){var X,J,L,x;return((x=PX().resolve(dt(i7))==null?void 0:(X=Qe())==null?void 0:(J=X.loggingHotConfig)==null?void 0:(L=J.csiConfig)==null?void 0:L.debugTicks)!=null?x:[]).map(function(Q){return Object.values(Q)[0]})}; VD=function(X,J,L){if(!g.VQ("web_csi_action_sampling_enabled")||!Xq(L).actionDisabled){var x=iV(L),Q;if(Q=g.VQ("web_csi_debug_sample_enabled")&&x){(PX().resolve(dt(i7))==null?0:Qe())&&!ePS&&(ePS=!0,VD("gcfl",(0,g.uT)(),L));var K,q,D;Q=(PX().resolve(dt(i7))==null?void 0:(K=Qe())==null?void 0:(q=K.loggingHotConfig)==null?void 0:(D=q.csiConfig)==null?void 0:D.debugSampleWeight)||0;if(K=Q!==0)b:{K=fcR();if(K.length>0)for(q=0;qL.duration?x:L},{duration:0}))&&J.startTime>0&&J.responseEnd>0&&(VD("wffs",yD(J.startTime)),VD("wffe",yD(J.responseEnd)))}; UAY=function(X,J,L){MR&&MR.measure&&(X.startsWith("measure_")||(X="measure_"+X),L?MR.measure(X,J,L):J?MR.measure(X,J):MR.measure(X))}; mAZ=function(X){var J=ao("aft",X);if(J)return J;J=g.ly((X||"")+"TIMING_AFT_KEYS",["ol"]);for(var L=J.length,x=0;x0&&O4(J);J={isNavigation:!0,actionType:qR(g.ly("TIMING_ACTION"))};var L=g.ly("PREVIOUS_ACTION");L&&(J.previousAction=qR(L));if(L=g.ly("CLIENT_PROTOCOL"))J.httpProtocol=L;if(L=g.ly("CLIENT_TRANSPORT"))J.transportProtocol=L;(L=g.Ow())&&L!=="UNDEFINED_CSN"&&(J.clientScreenNonce=L);L=RPo();if(L===1||L===-1)J.isVisible= !0;L=Jt().loadType==="cold";var x=W48();L||(L=x.yt_lt==="cold");if(L){J.loadType="cold";L=W48();x=GdW();var Q=nF(),K=g.ly("CSI_START_TIMESTAMP_MILLIS",0);K>0&&!g.VQ("embeds_web_enable_csi_start_override_killswitch")&&(Q=K);Q&&(VD("srt",x.responseStart),L.prerender!==1&&HQ(Q));L=AOm();L>0&&VD("fpt",L);L=GdW();L.isPerformanceNavigationTiming&&O4({performanceNavigationTiming:!0},void 0);VD("nreqs",L.requestStart,void 0);VD("nress",L.responseStart,void 0);VD("nrese",L.responseEnd,void 0);L.redirectEnd- L.redirectStart>0&&(VD("nrs",L.redirectStart,void 0),VD("nre",L.redirectEnd,void 0));L.domainLookupEnd-L.domainLookupStart>0&&(VD("ndnss",L.domainLookupStart,void 0),VD("ndnse",L.domainLookupEnd,void 0));L.connectEnd-L.connectStart>0&&(VD("ntcps",L.connectStart,void 0),VD("ntcpe",L.connectEnd,void 0));L.secureConnectionStart>=nF()&&L.connectEnd-L.secureConnectionStart>0&&(VD("nstcps",L.secureConnectionStart,void 0),VD("ntcpe",L.connectEnd,void 0));MR&&"getEntriesByType"in MR&&N_Y();L=[];if(document.querySelector&& MR&&MR.getEntriesByName)for(var q in dD)dD.hasOwnProperty(q)&&(x=dD[q],sZv(q,x)&&L.push(x));if(L.length>0)for(J.resourceInfo=[],q=g.d(L),L=q.next();!L.done;L=q.next())J.resourceInfo.push({resourceCache:L.value})}O4(J);J=xR();J.preLoggedGelInfos||(J.preLoggedGelInfos=[]);q=J.preLoggedGelInfos;J=pRR();L=void 0;for(x=0;x-1&&(delete cW["@type"],U=cW);u&&X.K.has(u)&&X.K.delete(u);((Xv=J.config)==null?0:Xv.vUY)&&oo(J.config.vUY);if(U||(T0=X.N)==null||!T0.Wd0(J.input,J.r8)){Tm.fm(15);break}return g.z(Tm,X.N.DnM(J.input,J.r8),16);case 16:U=Tm.L;case 15:return HPm(X, U,J),((aH=J.config)==null?0:aH.AjM)&&oo(J.config.AjM),x(),Tm.return(U||void 0)}})}; C7m=function(X,J){a:{X=X.ZT;var L,x=(L=g.F(J,b9e))==null?void 0:L.signal;if(x&&X.hq&&(L=X.hq[x])){var Q=L();break a}var K;if((L=(K=g.F(J,SVO))==null?void 0:K.request)&&X.Ay&&(K=X.Ay[L])){Q=K();break a}for(Q in J)if(X.eL[Q]&&(J=X.eL[Q])){Q=J();break a}Q=void 0}if(Q!==void 0)return Promise.resolve(Q)}; yPP=function(X,J,L){var x,Q,K,q,D,C,M;return g.p(function(y){if(y.K==1){K=((x=J)==null?void 0:(Q=x.AC)==null?void 0:Q.identity)||Iv;C=(q=J)==null?void 0:(D=q.AC)==null?void 0:D.sessionIndex;var n=g.YW(X.L.w1(K,{sessionIndex:C}));return g.z(y,n,2)}M=y.L;return y.return(Promise.resolve(Object.assign({},cOA(L),M)))})}; MEA=function(X,J,L){var x,Q=(J==null?void 0:(x=J.AC)==null?void 0:x.identity)||Iv,K;J=J==null?void 0:(K=J.AC)==null?void 0:K.sessionIndex;X=X.L.w1(Q,{sessionIndex:J});return Object.assign({},cOA(L),X)}; WQ=function(){}; pF=function(){}; rD=function(X){this.B=X}; vQ=function(){}; jq=function(){}; TH=function(){}; GH=function(){}; g.fF=function(X,J){var L=g.fR.apply(2,arguments);X=X===void 0?0:X;g.Fm.call(this,J,L);this.errorType=X;Object.setPrototypeOf(this,this.constructor.prototype)}; eq=function(X,J,L,x){this.L=X;this.K=J;this.N=L;this.T=x}; aFm=function(X,J,L){if(X.L){var x=$4(dA(J,"key"))||"/UNKNOWN_PATH";X.L.start(x)}x=L;g.VQ("wug_networking_gzip_request")&&(x=fgW(L));var Q;return new ((Q=X.T)!=null?Q:window.Request)(J,x)}; g.lV=function(X,J){if(!Fq){var L=PX();ur(L,{P3:wPO,Ap:eq});var x={eL:{feedbackEndpoint:UL(vQ),modifyChannelNotificationPreferenceEndpoint:UL(jq),playlistEditEndpoint:UL(TH),shareEntityEndpoint:UL(rD),subscribeEndpoint:UL(WQ),unsubscribeEndpoint:UL(pF),webPlayerShareEntityServiceEndpoint:UL(GH)}},Q=B8.getInstance(),K={};Q&&(K.client_location=Q);X===void 0&&(X=UnY());J===void 0&&(J=L.resolve(wPO));$Fe(x,J,X,K);ur(L,{P3:tEv,rT:YR.instance});Fq=L.resolve(tEv)}return Fq}; dFP=function(X){var J=new DC;if(X.interpreterJavascript){var L=h6v(X.interpreterJavascript);L=OR(L).toString();var x=new IB;rq(x,6,L);tK(J,IB,1,x,Nz)}else X.interpreterUrl&&(L=wC(X.interpreterUrl),L=LW(L).toString(),x=new gj,rq(x,4,L),tK(J,gj,2,x,Nz));X.interpreterHash&&vT(J,3,X.interpreterHash,Nz);X.program&&vT(J,4,X.program,Nz);X.globalName&&vT(J,5,X.globalName,Nz);X.clientExperimentsStateBlob&&vT(J,7,X.clientExperimentsStateBlob,Nz);return J}; Ro=function(X){var J={};X=X.split("&");X=g.d(X);for(var L=X.next();!L.done;L=X.next())L=L.value.split("="),L.length===2&&(J[L[0]]=L[1]);return J}; hFP=function(){if(g.VQ("bg_st_hr"))return"havuokmhhs-0";var X,J=((X=performance)==null?void 0:X.timeOrigin)||0;return"havuokmhhs-"+Math.floor(J)}; BQ=function(X){this.L=X}; uNm=function(){return new Promise(function(X){var J=window.top;J.ntpevasrs!==void 0?X(new BQ(J.ntpevasrs)):(J.ntpqfbel===void 0&&(J.ntpqfbel=[]),J.ntpqfbel.push(function(L){X(new BQ(L))}))})}; bPZ=function(){if(A8()){var X=g.ly("PLAYER_VARS",{});if(g.yf(X,"privembed",!1)!="1"&&!dnZ(X)){var J=function(){s4=!0;"google_ad_status"in window?F$("DCLKSTAT",1):F$("DCLKSTAT",2)}; try{g.Xy("//static.doubleclick.net/instream/ad_status.js",J)}catch(L){}otR.push(g.j$.xW(function(){if(!(s4||"google_ad_status"in window)){try{if(J){var L=""+g.qC(J),x=tbW[L];x&&g.ZF(x)}}catch(Q){}s4=!0;F$("DCLKSTAT",3)}},5E3))}}}; NR=function(){var X=Number(g.ly("DCLKSTAT",0));return isNaN(X)?0:X}; At=function(X,J,L){var x=this;this.network=X;this.options=J;this.K=L;this.L=null;if(J.D2l){var Q=new g.Cz;this.L=Q.promise;g.Ao.ytAtRC&&sl(function(){var K,q;return g.p(function(D){if(D.K==1){if(!g.Ao.ytAtRC)return D.return();K=U4(null);return g.z(D,kR(x,K),2)}q=D.L;g.Ao.ytAtRC&&g.Ao.ytAtRC(JSON.stringify(q));g.uv(D)})},2); uNm().then(function(K){var q,D,C,M;return g.p(function(y){if(y.K==1)return K.bindInnertubeChallengeFetcher(function(n){return kR(x,U4(n))}),g.z(y,Ap(),2); q=y.L;D=K.getLatestChallengeResponse();C=D.challenge;if(!C)throw Error("BGE_MACIL");M={challenge:C,mA:Ro(C),Oo:q,bgChallenge:new DC};Q.resolve(M);K.registerChallengeFetchedCallback(function(n){n=n.challenge;if(!n)throw Error("BGE_MACR");n={challenge:n,mA:Ro(n),Oo:q,bgChallenge:new DC};x.L=Promise.resolve(n)}); g.uv(y)})})}else J.preload&&Sam(this,new Promise(function(K){g.Nk(0,function(){K(ZN(x))},0)}))}; U4=function(X){var J={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};X&&(J.interpreterHash=X);return J}; ZN=function(X,J){J=J===void 0?0:J;var L,x,Q,K,q,D,C,M,y,n,V,H;return g.p(function(O){switch(O.K){case 1:L=U4(nz().L);if(g.VQ("att_fet_ks"))return g.oz(O,7),g.z(O,kR(X,L),9);g.oz(O,4);return g.z(O,P7A(X,L),6);case 6:q=O.L;Q=q.qoq;K=q.YoB;x=q;g.PW(O,3);break;case 4:return g.EA(O),g.PM(Error("Failed to fetch attestation challenge after "+(J+" attempts; not retrying for 24h."))),XH(X,864E5),O.return({challenge:"",mA:{},Oo:void 0,bgChallenge:void 0});case 9:x=O.L;if(!x)throw Error("Fetching Attestation challenge returned falsy"); if(!x.challenge)throw Error("Missing Attestation challenge");Q=x.challenge;K=Ro(Q);if("c1a"in K&&(!x.bgChallenge||!x.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.PW(O,3);break;case 7:D=g.EA(O);g.PM(D);J++;if(J>=5)return g.PM(Error("Failed to fetch attestation challenge after "+(J+" attempts; not retrying for 24h."))),XH(X,864E5),O.return({challenge:"",mA:{},Oo:void 0,bgChallenge:void 0});C=1E3*Math.pow(2,J-1)+Math.random()*1E3;return O.return(new Promise(function(u){g.Nk(0, function(){u(ZN(X,J))},C)})); case 3:M=Number(K.t)||7200;XH(X,M*1E3);y=void 0;if(!("c1a"in K&&x.bgChallenge)){O.fm(10);break}n=dFP(x.bgChallenge);g.oz(O,11);return g.z(O,YNW(nz(),n),13);case 13:g.PW(O,12);break;case 11:return V=g.EA(O),g.PM(V),O.return({challenge:Q,mA:K,Oo:y,bgChallenge:n});case 12:return g.oz(O,14),y=new Mn({challenge:n,bX:{ej:"aGIf"}}),g.z(O,y.y5,16);case 16:g.PW(O,10);break;case 14:H=g.EA(O),g.PM(H),y=void 0;case 10:return O.return({challenge:Q,mA:K,Oo:y,bgChallenge:n})}})}; kR=function(X,J){var L;return g.p(function(x){L=X.K;if(!L||L.w5())return x.return(kR(X.network,J));E4("att_pna",void 0,"attestation_challenge_fetch");return x.return(new Promise(function(Q){L.Vk("publicytnetworkstatus-online",function(){kR(X.network,J).then(Q)})}))})}; cPm=function(X){if(!X)throw Error("Fetching Attestation challenge returned falsy");if(!X.challenge)throw Error("Missing Attestation challenge");var J=X.challenge,L=Ro(J);if("c1a"in L&&(!X.bgChallenge||!X.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},X,{qoq:J,YoB:L})}; P7A=function(X,J){var L,x,Q,K,q;return g.p(function(D){switch(D.K){case 1:L=void 0,x=0,Q={};case 2:if(!(x<5)){D.fm(4);break}if(!(x>0)){D.fm(5);break}Q.r$=1E3*Math.pow(2,x-1)+Math.random()*1E3;return g.z(D,new Promise(function(C){return function(M){g.Nk(0,function(){M(void 0)},C.r$)}}(Q)),5); case 5:return g.oz(D,7),g.z(D,kR(X,J),9);case 9:return K=D.L,D.return(cPm(K));case 7:L=q=g.EA(D),q instanceof Error&&g.PM(q);case 8:x++;Q={r$:void 0};D.fm(2);break;case 4:throw L;}})}; Sam=function(X,J){X.L=J}; EtP=function(X){var J,L,x;return g.p(function(Q){if(Q.K==1)return g.z(Q,Promise.race([X.L,null]),2);J=Q.L;var K=ZN(X);X.L=K;(L=J)==null||(x=L.Oo)==null||x.dispose();g.uv(Q)})}; XH=function(X,J){function L(){var Q;return g.p(function(K){Q=x-Date.now();return Q<1E3?g.z(K,EtP(X),0):(sl(L,0,Math.min(Q,6E4)),K.fm(0))})} var x=Date.now()+J;L()}; Ya8=function(X,J){return new Promise(function(L){g.Nk(0,function(){L(J())},X)})}; g.hUS=function(X,J){var L;return g.p(function(x){var Q=g.Ld("yt.aba.att");return(L=Q?Q:At.instance!==void 0?At.instance.N.bind(At.instance):null)?x.return(L("ENGAGEMENT_TYPE_PLAYBACK",X,J)):x.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.zUY=function(){var X;return(X=(X=g.Ld("yt.aba.att2"))?X:At.instance!==void 0?At.instance.T.bind(At.instance):null)?X():Promise.resolve(!1)}; pPP=function(X,J){var L=g.Ld("ytDebugData.callbacks");L||(L={},g.JS("ytDebugData.callbacks",L));if(g.VQ("web_dd_iu")||W2A.includes(X))L[X]=J}; JL=function(){var X=rPY;var J=J===void 0?[]:J;var L=L===void 0?[]:L;J=bAz.apply(null,[SQm.apply(null,g.nR(J))].concat(g.nR(L)));this.store=cgY(X,void 0,J)}; g.Lw=function(X,J,L){for(var x=Object.assign({},X),Q=g.d(Object.keys(J)),K=Q.next();!K.done;K=Q.next()){K=K.value;var q=X[K],D=J[K];if(D===void 0)delete x[K];else if(q===void 0)x[K]=D;else if(Array.isArray(D)&&Array.isArray(q))x[K]=L?[].concat(g.nR(q),g.nR(D)):D;else if(!Array.isArray(D)&&g.Q0(D)&&!Array.isArray(q)&&g.Q0(q))x[K]=g.Lw(q,D,L);else if(typeof D===typeof q)x[K]=D;else return J=new g.Fm("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:K,v4B:q,updateValue:D}),g.Sc(J), X}return x}; iE=function(X){var J=this;X=X===void 0?[]:X;this.L=[];this.N=this.K=0;this.T=void 0;this.totalLength=0;X.forEach(function(L){J.append(L)})}; vtz=function(X,J){return X.L.length===0?!1:(X=X.L[X.L.length-1])&&X.buffer===J.buffer&&X.byteOffset+X.length===J.byteOffset}; Qm=function(X,J){J=g.d(J.L);for(var L=J.next();!L.done;L=J.next())X.append(L.value)}; Kw=function(X,J,L){return X.split(J).SR.split(L).YK}; ql=function(X){X.T=void 0;X.K=0;X.N=0}; I9=function(X,J,L){X.isFocused(J);return J-X.N+L<=X.L[X.K].length}; jvm=function(X){if(!X.T){var J=X.L[X.K];X.T=new DataView(J.buffer,J.byteOffset,J.length)}return X.T}; TbS=function(X,J,L){J=J===void 0?0:J;L=L===void 0?-1:L;if(!X.totalLength||!L)return new DataView(new ArrayBuffer(0));L<0&&(L=X.totalLength-J);X.focus(J);if(!I9(X,J,L)){var x=X.K,Q=X.N;X.focus(J+L-1);Q=new Uint8Array(X.N+X.L[X.K].length-Q);for(var K=0,q=x;q<=X.K;q++)Q.set(X.L[q],K),K+=X.L[q].length;X.L.splice(x,X.K-x+1,Q);ql(X);X.focus(J)}x=X.L[X.K];return new DataView(x.buffer,x.byteOffset+J-X.N,L)}; gk=function(X,J,L){X=TbS(X,J===void 0?0:J,L===void 0?-1:L);return new Uint8Array(X.buffer,X.byteOffset,X.byteLength)}; D1=function(X,J,L){X=gk(X,J===void 0?0:J,L===void 0?-1:L);J=new Uint8Array(X.length);try{J.set(X)}catch(x){for(L=0;L>10;K=56320|K&1023}ym[Q++]=K}}K=String.fromCharCode.apply(String,ym); Q<1024&&(K=K.substring(0,Q));L.push(K)}return L.join("")}; Hz=function(X,J){var L;if((L=Vm)==null?0:L.encodeInto)return J=Vm.encodeInto(X,J),J.read>6|192:((Q&64512)===55296&&x+1>18|240,J[L++]=Q>>12&63|128):J[L++]=Q>>12|224,J[L++]=Q>>6&63|128),J[L++]=Q&63|128)}return L}; Os=function(X){if(Vm)return Vm.encode(X);var J=new Uint8Array(Math.ceil(X.length*1.2)),L=Hz(X,J);J.lengthL&&(J=J.subarray(0,L));return J}; a9=function(X){this.L=X;this.pos=0;this.K=-1}; wk=function(X){var J=$y(X.L,X.pos);++X.pos;if(J<128)return J;for(var L=J&127,x=1;J>=128;)J=$y(X.L,X.pos),++X.pos,x*=128,L+=(J&127)*x;return L}; tL=function(X,J){var L=X.K;for(X.K=-1;X.pos+1<=X.L.totalLength;){L<0&&(L=wk(X));var x=L>>3,Q=L&7;if(x===J)return!0;if(x>J){X.K=L;break}L=-1;switch(Q){case 0:wk(X);break;case 1:X.pos+=8;break;case 2:x=wk(X);X.pos+=x;break;case 5:X.pos+=4}}return!1}; dk=function(X,J){if(tL(X,J))return wk(X)}; uE=function(X,J){if(tL(X,J))return!!wk(X)}; o9=function(X,J){if(tL(X,J)){J=wk(X);var L=gk(X.L,X.pos,J);X.pos+=J;return L}}; bE=function(X,J){if(X=o9(X,J))return g.nw(X)}; SA=function(X,J,L){if(X=o9(X,J))return L(new a9(new iE([X])))}; Pz=function(X,J){for(var L=[];tL(X,J);)L.push(wk(X));return L.length?L:void 0}; cz=function(X,J,L){for(var x=[],Q;Q=o9(X,J);)x.push(L(new a9(new iE([Q]))));return x.length?x:void 0}; Es=function(X,J){X=X instanceof Uint8Array?new iE([X]):X;return J(new a9(X))}; eU8=function(X,J,L){if(J&&L&&L.buffer===J.exports.memory.buffer){var x=J.realloc(L.byteOffset,X);if(x)return new Uint8Array(J.exports.memory.buffer,x,X)}X=J?new Uint8Array(J.exports.memory.buffer,J.malloc(X),X):new Uint8Array(X);L&&X.set(L);return X}; F2W=function(X,J){this.N=J;this.pos=0;this.K=[];this.L=eU8(X===void 0?4096:X,J);this.view=new DataView(this.L.buffer,this.L.byteOffset,this.L.byteLength)}; Yy=function(X,J){J=X.pos+J;if(!(X.L.length>=J)){for(var L=X.L.length*2;L268435455){Yy(X,4);for(var L=J&1073741823,x=0;x<4;x++)X.view.setUint8(X.pos,L&127|128),L>>=7,X.pos+=1;J=Math.floor(J/268435456)}for(Yy(X,4);J>127;)X.view.setUint8(X.pos,J&127|128),J>>=7,X.pos+=1;X.view.setUint8(X.pos,J);X.pos+=1}; z5=function(X,J,L){L!==void 0&&(hL(X,J*8),hL(X,L))}; Wz=function(X,J,L){L!==void 0&&z5(X,J,L?1:0)}; pw=function(X,J,L){L!==void 0&&(hL(X,J*8+2),J=L.length,hL(X,J),Yy(X,J),X.L.set(L,X.pos),X.pos+=J)}; rk=function(X,J,L){L!==void 0&&(lFP(X,J,Math.ceil(Math.log2(L.length*4+2)/7)),Yy(X,L.length*1.2),J=Hz(L,X.L.subarray(X.pos)),X.pos+J>X.L.length&&(Yy(X,J),J=Hz(L,X.L.subarray(X.pos))),X.pos+=J,RUo(X))}; lFP=function(X,J,L){L=L===void 0?2:L;hL(X,J*8+2);X.K.push(X.pos);X.K.push(L);X.pos+=L}; RUo=function(X){for(var J=X.K.pop(),L=X.K.pop(),x=X.pos-L-J;J--;){var Q=J?128:0;X.view.setUint8(L++,x&127|Q);x>>=7}}; vz=function(X,J,L,x,Q){L&&(lFP(X,J,Q===void 0?3:Q),x(X,L),RUo(X))}; g.Us=function(X,J,L){L=new F2W(4096,L);J(L,X);return new Uint8Array(L.L.buffer,L.L.byteOffset,L.pos)}; g.mv=function(X){var J=new a9(new iE([c5(decodeURIComponent(X))]));X=bE(J,2);J=dk(J,4);var L=BbY[J];if(typeof L==="undefined")throw X=new g.Fm("Failed to recognize field number",{name:"EntityKeyHelperError",g_E:J}),g.Sc(X),X;return{Qf:J,entityType:L,entityId:X}}; g.ky=function(X,J){var L=L===void 0?0:L;var x=new F2W;pw(x,2,Os(X));X=sve[J];if(typeof X==="undefined")throw L=new g.Fm("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:J}),g.Sc(L),L;z5(x,4,X);z5(x,5,1);J=new Uint8Array(x.L.buffer,x.L.byteOffset,x.pos);return encodeURIComponent(g.S3(J,L))}; Z1=function(X,J,L,x){if(x===void 0)return x=Object.assign({},X[J]||{}),L=(delete x[L],x),x={},Object.assign({},X,(x[J]=L,x));var Q={},K={};return Object.assign({},X,(K[J]=Object.assign({},X[J],(Q[L]=x,Q)),K))}; Nbm=function(X,J,L,x,Q){var K=X[J];if(K==null||!K[L])return X;x=g.Lw(K[L],x,Q==="REPEATED_FIELDS_MERGE_OPTION_APPEND");Q={};K={};return Object.assign({},X,(K[J]=Object.assign({},X[J],(Q[L]=x,Q)),K))}; UFY=function(X,J){X=X===void 0?{}:X;switch(J.type){case "ENTITY_LOADED":return J.payload.reduce(function(x,Q){var K,q=(K=Q.options)==null?void 0:K.persistenceOption;if(q&&q!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&q!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return x;if(!Q.entityKey)return g.Sc(Error("Missing entity key")),x;if(Q.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!Q.payload)return Q=new g.Fm("REPLACE entity mutation is missing a payload",{entityKey:Q.entityKey}),g.Sc(Q),x;var D=g.KJ(Q.payload); return Z1(x,D,Q.entityKey,Q.payload[D])}if(Q.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{Q=Q.entityKey;try{var C=g.mv(Q).entityType;D=Z1(x,C,Q);break a}catch(n){if(n instanceof Error){Q=new g.Fm("Failed to deserialize entity key",{entityKey:Q,originalMessage:n.message});g.Sc(Q);D=x;break a}throw n;}D=void 0}return D}if(Q.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!Q.payload)return Q=new g.Fm("UPDATE entity mutation is missing a payload",{entityKey:Q.entityKey}),g.Sc(Q),x;D=g.KJ(Q.payload);var M,y;return Nbm(x, D,Q.entityKey,Q.payload[D],(M=Q.fieldMask)==null?void 0:(y=M.mergeOptions)==null?void 0:y.repeatedFieldsMergeOption)}return x},X); case "REPLACE_ENTITY":var L=J.payload;return Z1(X,L.entityType,L.key,L.w4);case "REPLACE_ENTITIES":return Object.keys(J.payload).reduce(function(x,Q){var K=J.payload[Q];return Object.keys(K).reduce(function(q,D){return Z1(q,Q,D,K[D])},x)},X); case "UPDATE_ENTITY":return L=J.payload,Nbm(X,L.entityType,L.key,L.w4,L.aoC);default:return X}}; AL=function(X,J,L){return X[J]?X[J][L]||null:null}; X5=function(X){return window.Int32Array?new Int32Array(X):Array(X)}; Kb=function(X){g.G.call(this);this.counter=[0,0,0,0];this.K=new Uint8Array(16);this.L=16;if(!mFI){var J,L=new Uint8Array(256),x=new Uint8Array(256);var Q=1;for(J=0;J<256;J++)L[Q]=J,x[J]=Q,Q^=Q<<1^(Q>>7&&283);Jq=new Uint8Array(256);Lb=X5(256);xY=X5(256);iY=X5(256);QU=X5(256);for(var K=0;K<256;K++){Q=K?x[255^L[K]]:0;Q^=Q<<1^Q<<2^Q<<3^Q<<4;Q=Q&255^Q>>>8^99;Jq[K]=Q;J=Q<<1^(Q>>7&&283);var q=J^Q;Lb[K]=J<<24|Q<<16|Q<<8|q;xY[K]=q<<24|Lb[K]>>>8;iY[K]=Q<<24|xY[K]>>>8;QU[K]=Q<<24|iY[K]>>>8}mFI=!0}Q=X5(44);for(L= 0;L<4;L++)Q[L]=X[4*L]<<24|X[4*L+1]<<16|X[4*L+2]<<8|X[4*L+3];for(x=1;L<44;L++)X=Q[L-1],L%4||(X=(Jq[X>>16&255]^x)<<24|Jq[X>>8&255]<<16|Jq[X&255]<<8|Jq[X>>>24],x=x<<1^(x>>7&&283)),Q[L]=Q[L-4]^X;this.key=Q}; q0=function(X,J){for(var L=0;L<4;L++)X.counter[L]=J[L*4]<<24|J[L*4+1]<<16|J[L*4+2]<<8|J[L*4+3];X.L=16}; kpS=function(X){for(var J=X.key,L=X.counter[0]^J[0],x=X.counter[1]^J[1],Q=X.counter[2]^J[2],K=X.counter[3]^J[3],q=3;q>=0&&!(X.counter[q]=-~X.counter[q]);q--);for(var D,C,M=4;M<40;)q=Lb[L>>>24]^xY[x>>16&255]^iY[Q>>8&255]^QU[K&255]^J[M++],D=Lb[x>>>24]^xY[Q>>16&255]^iY[K>>8&255]^QU[L&255]^J[M++],C=Lb[Q>>>24]^xY[K>>16&255]^iY[L>>8&255]^QU[x&255]^J[M++],K=Lb[K>>>24]^xY[L>>16&255]^iY[x>>8&255]^QU[Q&255]^J[M++],L=q,x=D,Q=C;X=X.K;q=J[40];X[0]=Jq[L>>>24]^q>>>24;X[1]=Jq[x>>16&255]^q>>16&255;X[2]=Jq[Q>>8&255]^ q>>8&255;X[3]=Jq[K&255]^q&255;q=J[41];X[4]=Jq[x>>>24]^q>>>24;X[5]=Jq[Q>>16&255]^q>>16&255;X[6]=Jq[K>>8&255]^q>>8&255;X[7]=Jq[L&255]^q&255;q=J[42];X[8]=Jq[Q>>>24]^q>>>24;X[9]=Jq[K>>16&255]^q>>16&255;X[10]=Jq[L>>8&255]^q>>8&255;X[11]=Jq[x&255]^q&255;q=J[43];X[12]=Jq[K>>>24]^q>>>24;X[13]=Jq[L>>16&255]^q>>16&255;X[14]=Jq[x>>8&255]^q>>8&255;X[15]=Jq[Q&255]^q&255}; Dy=function(){if(!Ip&&!g.lT){if(ge)return ge;var X;ge=(X=window.crypto)==null?void 0:X.subtle;var J,L,x;if(((J=ge)==null?0:J.importKey)&&((L=ge)==null?0:L.sign)&&((x=ge)==null?0:x.encrypt))return ge;ge=void 0}}; g.$Y=function(X){this.K=X}; ZPP=function(X,J,L,x){var Q,K;return g.p(function(q){switch(q.K){case 1:if(X.N){q.fm(2);break}return g.z(q,x.importKey("raw",X.K,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:X.N=q.L;case 2:return Q={name:"AES-CTR",counter:L,length:128},g.z(q,x.encrypt(Q,X.N,J),4);case 4:return K=q.L,q.return(new Uint8Array(K))}})}; APe=function(X,J,L){X.L||(X.L=new Kb(X.K));q0(X.L,L);return X.L.encrypt(J)}; g.Cb=function(X){this.K=X}; M0=function(X){this.j=new Uint8Array(64);this.N=new Uint8Array(64);this.T=0;this.B=new Uint8Array(64);this.K=0;this.j.set(X);this.N.set(X);for(X=0;X<64;X++)this.j[X]^=92,this.N[X]^=54;this.reset()}; XXY=function(X,J,L){for(var x=X.W,Q=X.L[0],K=X.L[1],q=X.L[2],D=X.L[3],C=X.L[4],M=X.L[5],y=X.L[6],n=X.L[7],V,H,O,u=0;u<64;)u<16?(x[u]=O=J[L]<<24|J[L+1]<<16|J[L+2]<<8|J[L+3],L+=4):(V=x[u-2],H=x[u-15],O=x[u-7]+x[u-16]+((V>>>17|V<<15)^(V>>>19|V<<13)^V>>>10)+((H>>>7|H<<25)^(H>>>18|H<<14)^H>>>3),x[u]=O),V=n+yU[u]+O+((C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7))+(C&M^~C&y),H=((Q>>>2|Q<<30)^(Q>>>13|Q<<19)^(Q>>>22|Q<<10))+(Q&K^Q&q^K&q),n=V+H,D+=V,u++,u<16?(x[u]=O=J[L]<<24|J[L+1]<<16|J[L+2]<<8|J[L+3],L+=4):(V= x[u-2],H=x[u-15],O=x[u-7]+x[u-16]+((V>>>17|V<<15)^(V>>>19|V<<13)^V>>>10)+((H>>>7|H<<25)^(H>>>18|H<<14)^H>>>3),x[u]=O),V=y+yU[u]+O+((D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7))+(D&C^~D&M),H=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&Q^n&K^Q&K),y=V+H,q+=V,u++,u<16?(x[u]=O=J[L]<<24|J[L+1]<<16|J[L+2]<<8|J[L+3],L+=4):(V=x[u-2],H=x[u-15],O=x[u-7]+x[u-16]+((V>>>17|V<<15)^(V>>>19|V<<13)^V>>>10)+((H>>>7|H<<25)^(H>>>18|H<<14)^H>>>3),x[u]=O),V=M+yU[u]+O+((q>>>6|q<<26)^(q>>>11|q<<21)^(q>>>25|q<<7))+(q&D^ ~q&C),H=((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+(y&n^y&Q^n&Q),M=V+H,K+=V,u++,u<16?(x[u]=O=J[L]<<24|J[L+1]<<16|J[L+2]<<8|J[L+3],L+=4):(V=x[u-2],H=x[u-15],O=x[u-7]+x[u-16]+((V>>>17|V<<15)^(V>>>19|V<<13)^V>>>10)+((H>>>7|H<<25)^(H>>>18|H<<14)^H>>>3),x[u]=O),V=C+yU[u]+O+((K>>>6|K<<26)^(K>>>11|K<<21)^(K>>>25|K<<7))+(K&q^~K&D),H=((M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10))+(M&y^M&n^y&n),O=n,n=D,D=O,O=y,y=q,q=O,O=M,M=K,K=O,C=Q+V,Q=V+H,u++;X.L[0]=Q+X.L[0]|0;X.L[1]=K+X.L[1]|0;X.L[2]=q+X.L[2]|0;X.L[3]= D+X.L[3]|0;X.L[4]=C+X.L[4]|0;X.L[5]=M+X.L[5]|0;X.L[6]=y+X.L[6]|0;X.L[7]=n+X.L[7]|0}; LUI=function(X){var J=new Uint8Array(32),L=64-X.K;X.K>55&&(L+=64);var x=new Uint8Array(L);x[0]=128;for(var Q=X.T*8,K=1;K<9;K++){var q=Q%256;x[L-K]=q;Q=(Q-q)/256}X.update(x);for(L=0;L<8;L++)J[L*4]=X.L[L]>>>24,J[L*4+1]=X.L[L]>>>16&255,J[L*4+2]=X.L[L]>>>8&255,J[L*4+3]=X.L[L]&255;Jkz(X);return J}; Jkz=function(X){X.L=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];X.W=[];X.W.length=64;X.T=0;X.K=0}; xZP=function(X){this.L=X}; iLv=function(X,J,L){X=new M0(X.L);X.update(J);X.update(L);J=LUI(X);X.update(X.j);X.update(J);J=LUI(X);X.reset();return J}; Q4I=function(X){this.K=X}; KUz=function(X,J,L,x){var Q,K,q;return g.p(function(D){switch(D.K){case 1:if(X.L){D.fm(2);break}return g.z(D,x.importKey("raw",X.K,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:X.L=D.L;case 2:return Q=new Uint8Array(J.length+L.length),Q.set(J),Q.set(L,J.length),K={name:"HMAC",hash:"SHA-256"},g.z(D,x.sign(K,X.L,Q),4);case 4:return q=D.L,D.return(new Uint8Array(q))}})}; qUv=function(X,J,L){X.N||(X.N=new xZP(X.K));return iLv(X.N,J,L)}; Iim=function(X,J,L){var x,Q;return g.p(function(K){if(K.K==1){x=Dy();if(!x)return K.return(qUv(X,J,L));g.oz(K,3);return g.z(K,KUz(X,J,L,x),5)}if(K.K!=3)return K.return(K.L);Q=g.EA(K);g.PM(Q);Ip=!0;return K.return(qUv(X,J,L))})}; DZz=function(X){for(var J="",L=0;L=0||ai(X,0,"gad_source",X.search(wA))>=0}; OLR=function(){this.L=new Map}; wXm=function(X,J){var L=PX().resolve(aim);if(HLA(J)){var x=tV(J,"gclid");J={handleEvent:function(D){X&&!X.closed&&typeof X.postMessage==="function"&&D&&D.origin&&D.source===X&&D.data&&D.data.action==="gcl_setup"&&X.postMessage(Object.assign({},{action:"gcl_transfer"},x&&{gclid:x},{gadSource:2}),D.origin)}}; for(var Q=g.d(L.L),K=Q.next();!K.done;K=Q.next()){var q=g.d(K.value);K=q.next().value;q=q.next().value;if(K.closed)try{window.removeEventListener("message",q),L.L.delete(K)}catch(D){g.Sc(D)}}X&&L.L.size<15&&(L.L.set(X,J),window.addEventListener("message",J))}}; nb=function(X,J,L){if(!J)return X.length>=1?X[X.length-1]:null;for(var x=g.d(X),Q=x.next();!Q.done;Q=x.next())if(Q=Q.value,Q.width&&Q.height&&(L&&Q.width>=J||!L&&Q.height>=J))return Q;for(J=X.length-1;J>=0;J--)if(L&&X[J].width||!L&&X[J].height)return X[J];return X[0]}; VU=function(){this.state=1;this.Oo=null;this.VZ=void 0}; dZO=function(X,J,L,x,Q,K){var q=q===void 0?"trayride":q;L?(X.UA(2),g.Xy(L,function(){if(window[q])teW(X,x,q,Q);else{X.UA(3);var D=wuv(L),C=document.getElementById(D);C&&(OpS(D),C.parentNode.removeChild(C));g.PM(new g.Fm("BL:ULB",""+L))}},K)):J?(K=g.MG("SCRIPT"),J instanceof H_?(K.textContent=OR(J),aQ(K)):K.textContent=J,K.nonce=VR(document),document.head.appendChild(K),document.head.removeChild(K),window[q]?teW(X,x,q,Q):(X.UA(4),g.PM(new g.Fm("BL:ULBJ")))):g.PM(new g.Fm("BL:ULV"))}; teW=function(X,J,L,x){X.UA(5);var Q=!!X.VZ&&uyS.includes(g.Dk(X.VZ)||"");try{var K=new Mn({program:J,globalName:L,bX:{disable:!g.VQ("att_web_record_metrics")||!g.VQ("att_skip_metrics_for_cookieless_domains_ks")&&Q,ej:"aGIf"}});K.y5.then(function(){X.UA(6);x&&x(J)}); X.lP(K)}catch(q){X.UA(7),q instanceof Error&&g.PM(q)}}; Hj=function(){var X=g.Ld("yt.abuse.playerAttLoader");return X&&["bgvma","bgvmb","bgvmc"].every(function(J){return J in X})?X:null}; OC=function(){VU.apply(this,arguments)}; ap=function(){}; omm=function(X,J,L){for(var x=!1,Q=g.d(X.Rc.entries()),K=Q.next();!K.done;K=Q.next())K=g.d(K.value).next().value,K.slotType==="SLOT_TYPE_PLAYER_BYTES"&&K.U6==="core"&&(x=!0);if(x){a:if(!L){X=g.d(X.Rc.entries());for(L=X.next();!L.done;L=X.next())if(x=g.d(L.value),L=x.next().value,x=x.next().value,L.slotType==="SLOT_TYPE_IN_PLAYER"&&L.U6==="core"){L=x.layoutId;break a}L=void 0}L?J.WY(L):qH("No triggering layout ID available when attempting to mute.")}}; we=function(X,J){this.jR=X;this.DS=J}; tq=function(){}; de=function(){}; SUz=function(X){g.G.call(this);var J=this;this.Gi=X;this.L=new Map;uY(this,"commandExecutorCommand",function(L,x,Q){bLZ(J,L.commands,x,Q)}); uY(this,"clickTrackingParams",function(){})}; Pro=function(X,J){uY(X,J.dU(),function(L,x,Q){J.MG(L,x,Q)})}; uY=function(X,J,L){X.E6();X.L.get(J)&&g.Sc(Error("Extension name "+J+" already registered"));X.L.set(J,L)}; bLZ=function(X,J,L,x){J=J===void 0?[]:J;X.E6();var Q=[],K=[];J=g.d(J);for(var q=J.next();!q.done;q=J.next())q=q.value,g.F(q,ckP)||g.F(q,Emv)?Q.push(q):K.push(q);Q=g.d(Q);for(J=Q.next();!J.done;J=Q.next())op(X,J.value,L,x);K=g.d(K);for(Q=K.next();!Q.done;Q=K.next())op(X,Q.value,L,x)}; op=function(X,J,L,x){X.E6();J.loggingUrls&&YUP(X,"loggingUrls",J.loggingUrls,L,x);J=g.d(Object.entries(J));for(var Q=J.next();!Q.done;Q=J.next()){var K=g.d(Q.value);Q=K.next().value;K=K.next().value;Q==="openPopupAction"?X.Gi.get().sI("innertubeCommand",{openPopupAction:K}):Q==="confirmDialogEndpoint"?X.Gi.get().sI("innertubeCommand",{confirmDialogEndpoint:K}):hYW.hasOwnProperty(Q)||YUP(X,Q,K,L,x)}}; YUP=function(X,J,L,x,Q){if((X=X.L.get(J))&&typeof X==="function")try{X(L,x,Q)}catch(K){g.Sc(K)}else J=new g.Fm("Unhandled field",J),g.PM(J)}; bY=function(X,J,L){this.AO=X;this.L=J;this.ZY=L;ur(PX(),{P3:aim,Ap:OLR})}; SD=function(X){this.value=X}; Pj=function(X){this.value=X}; cj=function(X){this.value=X}; EC=function(X){this.value=X}; YY=function(X){this.value=X}; hq=function(X){this.value=X}; zS=function(X){this.value=X}; Wj=function(){SD.apply(this,arguments)}; pb=function(X){this.value=X}; re=function(X){this.value=X}; vj=function(X){this.value=X}; jD=function(X){this.value=X}; TS=function(X){this.value=X}; GS=function(X){this.value=X}; fb=function(X){this.value=X}; eD=function(X){this.value=X}; F5=function(X){this.value=X}; lY=function(X){this.value=X}; Rp=function(){SD.apply(this,arguments)}; Bj=function(X){this.value=X}; sC=function(X){this.value=X}; N0=function(X){this.value=X}; UC=function(X){this.value=X}; mS=function(X){this.value=X}; kY=function(X){this.value=X}; Zy=function(X){this.value=X}; Aq=function(X){this.value=X}; Xg=function(X){this.value=X}; JT=function(X){this.value=X}; Lg=function(X){this.value=X}; x8=function(X){this.value=X}; iJ=function(X){this.value=X}; Qx=function(X){this.value=X}; Kg=function(X){this.value=X}; qf=function(X){this.value=X}; IA=function(X){this.value=X}; g1=function(X){this.value=X}; Dp=function(X){this.value=X}; $8=function(X){this.value=X}; Cg=function(X){this.value=X}; Mf=function(X){this.value=X}; yx=function(X){this.value=X}; ng=function(X){this.value=X}; Vx=function(X){this.value=X}; HH=function(X){this.value=X}; Oj=function(X){this.value=X}; aA=function(X){this.value=X}; w1=function(X){this.value=X}; tT=function(X){this.value=X}; d1=function(X){this.value=X}; uJ=function(X){this.value=X}; oA=function(X){this.value=X}; bJ=function(X){this.value=X}; SO=function(X){this.value=X}; PH=function(X){this.value=X}; cH=function(X){this.value=X}; Ej=function(X){this.value=X}; Y8=function(){SD.apply(this,arguments)}; hT=function(X){this.value=X}; z_=function(){SD.apply(this,arguments)}; WH=function(){SD.apply(this,arguments)}; pg=function(){SD.apply(this,arguments)}; r1=function(){SD.apply(this,arguments)}; vH=function(){SD.apply(this,arguments)}; jO=function(X){this.value=X}; T_=function(X){this.value=X}; G_=function(X){this.value=X}; fg=function(X){this.value=X}; eO=function(X){this.value=X}; lJ=function(X,J,L){if(L&&!L.includes(X.layoutType))return!1;J=g.d(J);for(L=J.next();!L.done;L=J.next())if(!Fg(X.clientMetadata,L.value))return!1;return!0}; RA=function(){return""}; zYo=function(X,J){switch(X){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 J(X),8}}; BH=function(X,J,L,x){x=x===void 0?!1:x;y0.call(this,X);this.aS=L;this.DQ=x;this.args=[];J&&this.args.push(J)}; m=function(X,J,L,x){x=x===void 0?!1:x;y0.call(this,X);this.aS=L;this.DQ=x;this.args=[];J&&this.args.push(J)}; sj=function(X){var J=new Map;X.forEach(function(L){J.set(L.L(),L)}); this.L=J}; Fg=function(X,J){return X.L.has(J)}; Nf=function(X,J){X=X.L.get(J);if(X!==void 0)return X.get()}; Uj=function(X){return Array.from(X.L.keys())}; m6=function(X,J,L){if(L&&L!==X.slotType)return!1;J=g.d(J);for(L=J.next();!L.done;L=J.next())if(!Fg(X.clientMetadata,L.value))return!1;return!0}; pXI=function(X){var J;return((J=WUW.get(X))==null?void 0:J.Tr)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; Zp=function(X,J){var L={type:J.slotType,controlFlowManagerLayer:rkP.get(J.U6)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};J.slotEntryTrigger&&(L.entryTriggerType=J.slotEntryTrigger.triggerType);J.slotPhysicalPosition!==1&&(L.slotPhysicalPosition=J.slotPhysicalPosition);if(X){L.debugData={slotId:J.slotId};if(X=J.slotEntryTrigger)L.debugData.slotEntryTriggerData=k8(X);X=J.slotFulfillmentTriggers;L.debugData.fulfillmentTriggerData=[];X=g.d(X);for(var x=X.next();!x.done;x=X.next())L.debugData.fulfillmentTriggerData.push(k8(x.value)); J=J.slotExpirationTriggers;L.debugData.expirationTriggerData=[];J=g.d(J);for(X=J.next();!X.done;X=J.next())L.debugData.expirationTriggerData.push(k8(X.value))}return L}; vmo=function(X,J){var L={type:J.layoutType,controlFlowManagerLayer:rkP.get(J.U6)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};X&&(L.debugData={layoutId:J.layoutId});return L}; k8=function(X,J){var L={type:X.triggerType};J!=null&&(L.category=J);X.triggeringSlotId!=null&&(L.triggerSourceData||(L.triggerSourceData={}),L.triggerSourceData.associatedSlotId=X.triggeringSlotId);X.triggeringLayoutId!=null&&(L.triggerSourceData||(L.triggerSourceData={}),L.triggerSourceData.associatedLayoutId=X.triggeringLayoutId);return L}; j4W=function(X,J,L,x){J={opportunityType:J};X&&(x||L)&&(x=g.H5(x||[],function(Q){return Zp(X,Q)}),J.debugData=Object.assign({},L&&L.length>0?{associatedSlotId:L}:{},x.length>0?{slots:x}:{})); return J}; Xz=function(X,J){return function(L){return Tto(AT(X),J.slotId,J.slotType,J.slotPhysicalPosition,J.U6,J.slotEntryTrigger,J.slotFulfillmentTriggers,J.slotExpirationTriggers,L.layoutId,L.layoutType,L.U6)}}; Tto=function(X,J,L,x,Q,K,q,D,C,M,y){return{adClientDataEntry:{slotData:Zp(X,{slotId:J,slotType:L,slotPhysicalPosition:x,U6:Q,slotEntryTrigger:K,slotFulfillmentTriggers:q,slotExpirationTriggers:D,clientMetadata:new sj([])}),layoutData:vmo(X,{layoutId:C,layoutType:M,U6:y,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],W9:[],yl:new Map,clientMetadata:new sj([]),B4:{}})}}}; LD=function(X){this.h0=X;X=Math.random();var J=this.h0.get();J=g.J_(J.Z.G().experiments,"html5_debug_data_log_probability");J=Number.isFinite(J)&&J>=0&&J<=1?J:0;this.L=X1){g.PM(new g.Fm("Exit already started",{current:X.currentState}));var L=!1}else L=!0;if(!L)return!1;X.currentState=2;X.L=J;return!0}; Q1=function(X){if(X.currentState!==2)return!1;X.currentState=3;return!0}; nEA=function(X,J){var L=new Map;X=g.d(X);for(var x=X.next();!x.done;x=X.next()){x=x.value;if(x.layoutType==="LAYOUT_TYPE_MEDIA")var Q="v";else x.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(Q=Nf(x.clientMetadata,"metadata_type_linked_in_player_layout_type"),Q=Q==="LAYOUT_TYPE_ENDCAP"||Q==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":Q==="LAYOUT_TYPE_SURVEY"?"s":Q==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):Q="u";L.set(x.layoutId,Q);if(Q==="u"){var K={};Q=J;x=(K.c=x.layoutId,K);Q.Z.Ni("uct",x)}}X= J.PK();Kv={contentCpn:X,UU:L};x={};L=(x.ct=L.size,x.c=X,x);J.Z.Ni("acc",L)}; Vl8=function(){Kv={contentCpn:"",UU:new Map}}; qh=function(X){var J;return(J=Kv.UU.get(X))!=null?J:"u"}; Ix=function(X,J,L){X.Z.Ni(J,L);Hy8(X)}; OyW=function(X){var J=X.layoutId,L=X.t4;if(X.MX){var x={};Ix(X.AO,"slso",(x.ec=J,x.is=L,x.ctp=qh(J),x))}}; gS=function(X){var J=X.layoutId,L=X.t4;if(X.MX){var x={};Ix(X.AO,"slse",(x.ec=J,x.is=L,x.ctp=qh(J),x))}}; anS=function(X){var J=X.layoutId,L=X.t4,x=X.AO;X.MX&&(X={},Ix(x,"sleo",(X.xc=J,X.is=L,X.ctp=qh(J),X)),Hy8(x))}; w1Z=function(X){var J=X.cpn,L=X.AO;X=X.t4;var x=L.PK(),Q={};Ix(L,"ce",(Q.ec=J,Q.ia=J!==x,Q.r=Kv.UU.has(J),Q.is=X,Q.ctp=qh(J),Q))}; Hy8=function(X){if(X.PK()!==Kv.contentCpn){var J={};J=(J.c=Kv.contentCpn,J);X.Z.Ni("ccm",J)}}; tlO=function(X){var J=X.cpn,L=X.AO;X=X.t4;var x=L.PK(),Q={};Ix(L,"cx",(Q.xc=J,Q.ia=J!==x,Q.r=Kv.UU.has(J),Q.is=X,Q.ctp=qh(J),Q))}; dyS=function(X){this.params=X;this.L=new Set}; urP=function(X,J,L){if(!X.L.has(J)){X.L.add(J);var x={};X.params.Sj.lB(J,Object.assign({},L,(x.p_ac=X.params.adCpn,x.p_isv=X.params.qq&&X.params.JO,x)))}}; $r=function(X,J,L){if(Db(X.params.Sj.h0.get(),!0)){var x=L.flush,Q={};urP(X,J,(Q.cts=L.currentTimeSec,Q.f=x,Q))}}; oEo=function(X,J){this.AO=X;this.h0=J}; Cv=function(X){var J=[];if(X){X=g.d(Object.entries(X));for(var L=X.next();!L.done;L=X.next()){var x=g.d(L.value);L=x.next().value;x=x.next().value;x!==void 0&&(x=typeof x==="boolean"?""+ +x:(""+x).replace(/[:,=]/g,"_"),J.push(L+"."+x))}}return J.join(";")}; g.Mh=function(X,J,L){J=J===void 0?{}:J;this.errorCode=X;this.details=J;this.severity=L===void 0?0:L}; y1=function(X){return X===1||X===2}; nv=function(X,J){J=J===void 0?0:J;if(X instanceof g.Mh)return X;X=X&&X instanceof Error?X:Error(""+X);y1(J)?g.Sc(X):g.PM(X);return new g.Mh(J===1?"player.fatalexception":"player.exception",{name:""+X.name,message:""+X.message},J)}; byW=function(X,J){function L(){var x=g.fR.apply(0,arguments);X.removeEventListener("playing",L);J.apply(null,g.nR(x))} X.addEventListener("playing",L)}; V1=function(){var X=g.Ld("yt.player.utils.videoElement_");X||(X=g.MG("VIDEO"),g.JS("yt.player.utils.videoElement_",X));return X}; HU=function(X){var J=V1();return!!(J&&J.canPlayType&&J.canPlayType(X))}; ax=function(X){if(/opus/.test(X)&&g.Oc&&!dG("38")&&!g.fU())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(X);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(X);if(/webm/.test(X)&&!Ozo())return!1;X==='audio/mp4; codecs="mp4a.40.2"'&&(X='video/mp4; codecs="avc1.4d401f"');return!!HU(X)}; SDZ=function(X){try{var J=ax('video/mp4; codecs="avc1.42001E"')||ax('video/webm; codecs="vp9"');return(ax('audio/mp4; codecs="mp4a.40.2"')||ax('audio/webm; codecs="opus"'))&&(J||!X)||HU('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(L){return"html5.missingapi"}}; wS=function(){var X=V1();return!(!X.webkitSupportsPresentationMode||typeof X.webkitSetPresentationMode!=="function")}; tb=function(){var X=V1();try{var J=X.muted;X.muted=!J;return X.muted!==J}catch(L){}return!1}; PAm=function(){var X;return((X=navigator.connection)==null?void 0:X.type)||""}; g.dS=function(){o2.apply(this,arguments)}; u2=function(X,J,L,x,Q,K,q,D){this.sampleRate=X===void 0?0:X;this.numChannels=J===void 0?0:J;this.spatialAudioType=L===void 0?"SPATIAL_AUDIO_TYPE_NONE":L;this.L=x===void 0?!1:x;this.N=Q;this.T=K;this.audioQuality=q===void 0?"AUDIO_QUALITY_UNKNOWN":q;this.K=D===void 0?!1:D}; Si=function(X,J,L,x,Q,K,q,D,C){this.width=X;this.height=J;this.quality=K||ox(X,J);this.qualityOrdinal=g.b2[this.quality];this.fps=L||0;this.stereoLayout=!Q||x!=null&&x!=="UNKNOWN"&&x!=="RECTANGULAR"?0:Q;this.projectionType=x?x==="EQUIRECTANGULAR"&&Q===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":x:"UNKNOWN";(X=q)||(X=g.b2[this.quality],X===0?X="Autom\u00e1tica":(J=this.fps,L=this.projectionType,X=X.toString()+(L==="EQUIRECTANGULAR"||L==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||L==="MESH"?"s":"p")+(J>55?"60": J>49?"50":J>39?"48":"")));this.qualityLabel=X;this.L=D||"";this.primaries=C||""}; ox=function(X,J){var L=Math.max(X,J);X=Math.min(X,J);J=PU[0];for(var x=0;x=Math.floor(K*16/9)*1.3||X>=K*1.3)return J;J=Q}return"tiny"}; Yr=function(X,J,L){L=L===void 0?{}:L;this.id=X;this.mimeType=J;L.DY>0||(L.DY=16E3);Object.assign(this,L);X=g.d(this.id.split(";"));this.itag=X.next().value;this.L=X.next().value;this.containerType=cU(J);this.XE=Ec[this.itag]||""}; za=function(X){return X.XE==="9"||X.XE==="("||X.XE==="9h"||X.XE==="(h"}; cCZ=function(X){return X.XE==="H"||X.XE==="h"}; WU=function(X){return X.XE==="9h"||X.XE==="(h"}; EEW=function(X){return!!X.V0&&!!X.V0.fairplay&&(X.XE==="("||X.XE==="(h"||X.XE==="A"||X.XE==="MEAC3")||pv&&!!X.V0&&X.XE==="1e"}; rS=function(X){return X.XE==="1"||X.XE==="1h"||pv&&X.XE==="1e"}; vU=function(X){return X.XE==="mac3"||X.XE==="meac3"||X.XE==="m"||X.XE==="i"}; ji=function(X){return X.XE==="MAC3"||X.XE==="MEAC3"||X.XE==="M"||X.XE==="I"}; g.Ta=function(X){return X.containerType===1}; YDW=function(X){return X.XE==="("||X.XE==="(h"||X.XE==="H"||pv&&X.XE==="1e"}; Ga=function(X){return X.mimeType==="application/x-mpegURL"}; g.fv=function(X,J){return{itag:+X.itag,lmt:J?0:X.lastModified,xtags:X.L||""}}; h9e=function(X){var J=navigator.mediaCapabilities;if(J==null||!J.decodingInfo||X.XE==="f")return Promise.resolve();var L={type:X.audio&&X.video?"file":"media-source"};X.video&&(L.video={contentType:X.mimeType,width:X.video.width||640,height:X.video.height||360,bitrate:X.DY*8||1E6,framerate:X.video.fps||30});X.audio&&(L.audio={contentType:X.mimeType,channels:""+(X.audio.numChannels||2),bitrate:X.DY*8||128E3,samplerate:X.audio.sampleRate||44100});return J.decodingInfo(L).then(function(x){X.K=x})}; ei=function(X){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(X)}; Fs=function(X){return/(vp9|vp09|vp8|avc1|av01)/.test(X)}; l2=function(X){return X.includes("vtt")||X.includes("text/mp4")}; cU=function(X){return X.indexOf("/mp4")>=0?1:X.indexOf("/webm")>=0?2:X.indexOf("/x-flv")>=0?3:X.indexOf("/vtt")>=0?4:0}; Rx=function(X,J,L,x,Q,K){var q=new u2;J in g.b2||(J="small");J==="light"&&(J="tiny");x&&Q?(Q=Number(Q),x=Number(x)):(Q=g.b2[J],x=Math.round(Q*16/9));K=new Si(x,Q,0,null,void 0,J,K);X=unescape(X.replace(/"/g,'"'));return new Yr(L,X,{audio:q,video:K})}; BU=function(X){var J="id="+X.id;X.video&&(J+=", res="+X.video.qualityLabel);var L,x;return J+", byterate=("+((L=X.RI)==null?void 0:L.toFixed(0))+", "+((x=X.DY)==null?void 0:x.toFixed(0))+")"}; sc=function(X,J){return{start:function(L){return X[L]}, end:function(L){return J[L]}, length:X.length}}; z9Y=function(X,J,L){for(var x=[],Q=[],K=0;K=J)return L}catch(x){}return-1}; kr=function(X,J){return mL(X,J)>=0}; WTY=function(X,J){if(!X)return NaN;J=mL(X,J);return J>=0?X.start(J):NaN}; Zb=function(X,J){if(!X)return NaN;J=mL(X,J);return J>=0?X.end(J):NaN}; Ab=function(X){return X&&X.length?X.end(X.length-1):NaN}; XO=function(X){return Ab(X)>0}; Jf=function(X,J){X=Zb(X,J);return X>=0?X-J:0}; L8=function(X,J,L){for(var x=[],Q=[],K=0;KL||(x.push(Math.max(J,X.start(K))-J),Q.push(Math.min(L,X.end(K))-J));return sc(x,Q)}; xj=function(X,J,L,x){g.Ly.call(this);var Q=this;this.rQ=X;this.start=J;this.end=L;this.isActive=x;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.rP={error:function(){!Q.E6()&&Q.isActive&&Q.publish("error",Q)}, updateend:function(){!Q.E6()&&Q.isActive&&Q.publish("updateend",Q)}}; this.rQ.oV(this.rP);this.Ma=this.isActive}; Qy=function(X,J,L,x,Q,K){g.Ly.call(this);var q=this;this.je=X;this.jz=J;this.id=L;this.containerType=x;this.XE=Q;this.JO=K;this.wW=this.TL=this.XN=null;this.KP=!1;this.appendWindowStart=this.timestampOffset=0;this.qN=sc([],[]);this.HQ=!1;this.kI=[];this.v3=iw?[]:void 0;this.Dh=function(C){return q.publish(C.type,q)}; var D;if((D=this.je)==null?0:D.addEventListener)this.je.addEventListener("updateend",this.Dh),this.je.addEventListener("error",this.Dh)}; K8=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; qr=function(X,J){this.T6=X;this.L=J===void 0?!1:J;this.K=!1}; IJ=function(X,J,L){L=L===void 0?!1:L;g.G.call(this);this.mediaElement=X;this.xq=J;this.isView=L;this.B=0;this.T=!1;this.j=!0;this.D=0;this.callback=null;this.S=!1;this.xq||(this.jz=this.mediaElement.kH());this.events=new g.dS(this);g.f(this,this.events);this.N=new qr(this.xq?window.URL.createObjectURL(this.xq):this.jz.webkitMediaSourceURL,!0);X=this.xq||this.jz;bu(this.events,X,["sourceopen","webkitsourceopen"],this.LYq);bu(this.events,X,["sourceclose","webkitsourceclose"],this.mFI);this.W={updateend:this.PM}}; p1S=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; rCZ=function(X,J){gs(X)?g.dJ(function(){J(X)}):X.callback=J}; vEY=function(X,J,L){if(DU){var x;C8(X.mediaElement,{l:"mswssb",sr:(x=X.mediaElement.Lm)==null?void 0:x.rp()},!1);J.oV(X.W,X);L.oV(X.W,X)}X.L=J;X.K=L;g.f(X,J);g.f(X,L)}; Mr=function(X){return!!X.L||!!X.K}; gs=function(X){try{return yy(X)==="open"}catch(J){return!1}}; yy=function(X){if(X.xq)return X.xq.readyState;switch(X.jz.webkitSourceState){case X.jz.SOURCE_OPEN:return"open";case X.jz.SOURCE_ENDED:return"ended";default:return"closed"}}; n8=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; jOo=function(X){gs(X)&&(X.xq?X.xq.endOfStream():X.jz.webkitSourceEndOfStream(X.jz.EOS_NO_ERROR))}; Tho=function(X,J,L,x){if(!X.L||!X.K)return null;var Q=X.L.isView()?X.L.rQ:X.L,K=X.K.isView()?X.K.rQ:X.K,q=new IJ(X.mediaElement,X.xq,!0);q.N=X.N;vEY(q,new xj(Q,J,L,x),new xj(K,J,L,x));gs(X)||X.L.aC(X.L.W4());return q}; G2O=function(X){var J;(J=X.L)==null||J.NO();var L;(L=X.K)==null||L.NO();X.j=!1}; Vy=function(){var X=this;this.uP=this.m3=wWP;this.promise=new g.og(function(J,L){X.m3=J;X.uP=L})}; Hv=function(){g.G.call(this);this.UK=!1;this.T6=null;this.W=this.B=!1;this.T=new g.$W;this.Lm=null;g.f(this,this.T)}; OH=function(X){X=X.G2();return X.length<1?NaN:X.end(X.length-1)}; fnP=function(X){!X.K&&p1S()&&(X.N?X.N.then(function(){return fnP(X)}):X.yY()||(X.K=X.gg()))}; e9R=function(X){X.K&&(X.K.dispose(),X.K=void 0)}; C8=function(X,J,L){var x;((x=X.Lm)==null?0:x.YH())&&X.Lm.Ni("rms",J,L===void 0?!1:L)}; FTR=function(X,J,L){X.isPaused()||X.getCurrentTime()>J||L>10||(X.play(),g.$b(function(){FTR(X,X.getCurrentTime(),L+1)},500))}; lnR=function(X,J){X.T6&&X.T6.equals(J)||(X.T6&&X.T6.dispose(),X.T6=J)}; aJ=function(X){return Jf(X.SW(),X.getCurrentTime())}; R9R=function(X,J){if(X.Ab()===0||X.hasError())return!1;var L=X.getCurrentTime()>0;return J>=0&&(X=X.G2(),X.length||!L)?kr(X,J):L}; ws=function(X){X.yY()&&(X.Lm&&X.Lm.u8("rs_s"),Fh&&X.getCurrentTime()>0&&X.seekTo(0),X.Mo(),X.load(),lnR(X,null));delete X.N}; tf=function(X){switch(X.J2()){case 2:return"progressive.net.retryexhausted";case 3:return X=X.N2(),(X==null?0:X.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||BhY&&(X==null?0:X.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.ds=function(X,J,L){this.pn=J===void 0?null:J;this.seekSource=L===void 0?null:L;this.state=X||64}; uw=function(X,J,L){L=L===void 0?!1:L;return sOm(X,J.getCurrentTime(),(0,g.uT)(),aJ(J),L)}; oJ=function(X,J,L,x){if(!(J===X.state&&L===X.pn&&x===X.seekSource||J!==void 0&&(J&128&&!L||J&2&&J&16))){var Q;if(Q=J)Q=J||X.state,Q=!!(Q&16||Q&32);X=new g.ds(J,L,Q?x?x:X.seekSource:null)}return X}; bw=function(X,J,L){return oJ(X,X.state|J,null,L===void 0?null:L)}; S5=function(X,J){return oJ(X,X.state&~J,null,null)}; Pv=function(X,J,L,x){return oJ(X,(X.state|J)&~L,null,x===void 0?null:x)}; g.N=function(X,J){return!!(X.state&J)}; g.cv=function(X,J){return J.state===X.state&&J.pn===X.pn}; EH=function(X){return X.isPlaying()&&!g.N(X,16)&&!g.N(X,32)}; Yj=function(X){return g.N(X,128)?-1:g.N(X,2)?0:g.N(X,2048)?3:g.N(X,64)?-1:g.N(X,1)&&!g.N(X,32)?3:g.N(X,8)?1:g.N(X,4)?2:-1}; zx=function(X,J,L,x,Q,K,q,D,C,M,y,n,V,H,O,u,S){g.G.call(this);var Y=this;this.hR=X;this.slot=J;this.layout=L;this.ZY=x;this.ih=Q;this.dI=K;this.wI=q;this.wQ=D;this.v4=C;this.YZ=M;this.position=n;this.B=V;this.h0=H;this.aR=O;this.sV=u;this.context=S;this.M2=!0;this.j=!1;this.Rf="not_rendering";this.K=!1;this.N=new xr;X=Nf(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.s6=new yO(L.yl,this.ZY,X,L.layoutId);var h;X=((h=hf(this))==null?void 0:h.progressCommands)||[];this.T=new B2P(C, X,L.layoutId,function(){return Y.oZ()}); this.L=new dyS({adCpn:this.layout.layoutId,Sj:S.Sj,qq:this.aR,JO:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; Wv=function(X){return{layoutId:X.nt(),t4:X.aR,AO:X.dI.get(),MX:X.TK()}}; p8=function(X,J){return J.layoutId!==X.layout.layoutId?(X.hR.lU(X.slot,J,new BH("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+X.layout.layoutId+("and LayoutType: "+X.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; rs=function(X){X.Rf="rendering_start_requested";X.YZ(-1)}; hf=function(X){return Nf(X.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; NhO=function(X){qH("Received layout exit signal when not in layout exit flow.",X.slot,X.layout)}; Uym=function(X){var J;return((J=vv(X.dI.get(),2))==null?void 0:J.clientPlaybackNonce)||""}; j5=function(X,J){switch(J){case "normal":X.J_("complete");break;case "skipped":X.J_("skip");break;case "abandoned":wV(X.s6,"impression")&&X.J_("abandon")}}; Tx=function(X,J){X.j||(J=new g.IF(J.state,new g.ds),X.j=!0);return J}; Gx=function(X,J){AM(J)?X.YZ(1):g.Ds(J,4)&&!g.Ds(J,2)&&X.WL();gn(J,4)<0&&!(gn(J,2)<0)&&X.xD()}; mym=function(X){X.position===0&&(X.wQ.get(),X=Nf(X.layout.clientMetadata,"metadata_type_ad_placement_config").kind,X={adBreakType:f8(X)},oo("ad_bl"),g.bV(X))}; e5=function(X,J){Ox(X.s6,J,!X.K)}; ZyZ=function(X){var J;return(((J=hf(X))==null?void 0:J.progressCommands)||[]).findIndex(function(L){return!!g.F(L==null?void 0:L.command,k2A)})!==-1}; FO=function(X,J){var L=Nf(X.clientMetadata,"metadata_type_eligible_for_ssap");return L===void 0?(qH("Expected SSAP eligibility in PlayerBytes factory",X),!1):J.TK(L)}; lw=function(X,J){if(!vf(J.get(),"html5_ssap_pass_transition_reason"))return 3;switch(X){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return qH("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return qH("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:X}),3;default:$0(X,"unknown layoutExitReason")}}; AC8=function(X){qH("getExitReason: unexpected reason",void 0,void 0,{reason:X})}; RJ=function(X,J){if(vf(J.get(),"html5_ssap_pass_transition_reason"))switch(X){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return AC8(X),"abandoned";case 3:case 1:return AC8(X),"error";default:$0(X,"unexpected transition reason")}else switch(X){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return qH("getExitReason: unexpected reason",void 0,void 0,{reason:X}),"error";default:$0(X,"unexpected transition reason")}}; g.Bv=function(X,J,L){PQ(X,L)||E4(X,J,L);PQ(X,"video_to_ad")||E4(X,J,"video_to_ad");PQ(X,"ad_to_video")||E4(X,J,"ad_to_video");PQ(X,"ad_to_ad")||E4(X,J,"ad_to_ad")}; sH=function(X,J,L,x,Q,K,q,D,C,M,y,n,V,H,O,u,S,Y){zx.call(this,X,J,L,x,Q,K,q,D,M,y,n,V,H,O,u,S,Y);var h=this;this.Gi=C;this.AR=n;this.e2=!0;this.ZR=this.yZ=0;this.im=pj(function(){OyW(Wv(h));h.hR.Dw(h.slot,h.layout)}); this.nL=pj(function(){anS(Wv(h));h.Rf!=="rendering_stop_requested"&&h.AR(h);h.layoutExitReason?h.hR.Fv(h.slot,h.layout,h.layoutExitReason):NhO(h)}); this.timer=new g.rJ(200);this.timer.listen("tick",function(){h.qd()}); g.f(this,this.timer)}; UH=function(X){X.ZR=Date.now();Nr(X,X.yZ);X.timer.start()}; X8e=function(X){X.yZ=X.oZ();X.Qj(X.yZ/1E3,!0);Nr(X,X.yZ)}; Nr=function(X,J){J={current:J/1E3,duration:X.oZ()/1E3};X.Gi.get().sI("onAdPlaybackProgress",J)}; mK=function(X){sH.call(this,X.hR,X.slot,X.Qq,X.ZY,X.ih,X.dI,X.wI,X.wQ,X.Gi,X.v4,X.YZ,X.AR,X.UX,X.dj,X.h0,X.aR,X.sV,X.context)}; kj=function(X){sH.call(this,X.hR,X.slot,X.Qq,X.ZY,X.ih,X.dI,X.wI,X.wQ,X.Gi,X.v4,X.YZ,X.AR,X.UX,X.dj,X.h0,X.aR,X.sV,X.context)}; ZU=function(){kj.apply(this,arguments)}; Juv=function(X){return FO(X.slot,X.h0.get())?new ZU(X):new mK(X)}; J5=function(X){zx.call(this,X.callback,X.slot,X.Qq,X.ZY,X.ih,X.dI,X.wI,X.wQ,X.v4,X.YZ,X.AR,X.UX,X.dj,X.h0,X.aR,X.sV,X.context);var J=this;this.adCpn="";this.OB=this.Uk=0;this.im=pj(function(){OyW(Wv(J));J.hR.Dw(J.slot,J.layout)}); this.nL=pj(function(){anS(Wv(J));J.Rf!=="rendering_stop_requested"&&J.AR(J);J.layoutExitReason?J.hR.Fv(J.slot,J.layout,J.layoutExitReason):NhO(J)}); this.ST=X.ST;this.fO=X.fO;this.Ti=X.Ti;this.Gi=X.Gi;this.YM=X.YM;this.AR=X.AR;if(!this.TK()){vf(this.h0.get(),"html5_disable_media_load_timeout")||(this.Qv=new g.sn(function(){J.n0("load_timeout",new BH("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); X=Af(this.h0.get());var L=XA(this.h0.get());X&&L&&(this.oO=new g.sn(function(){var x=Nf(J.layout.clientMetadata,"metadata_type_preload_player_vars");x&&J.fO.get().Z.preloadVideoByPlayerVars(x,2,300)}))}}; xHm=function(X,J){var L=Nf(J.clientMetadata,"metadata_type_ad_video_id"),x=Nf(J.clientMetadata,"metadata_type_legacy_info_card_vast_extension");L&&x&&X.YM.get().Z.G().jC.add(L,{rb:x});(J=Nf(J.clientMetadata,"metadata_type_sodar_extension_data"))&&ifz(X.ST.get(),J);LrO(X.wI.get(),!1)}; iXZ=function(X){LrO(X.wI.get(),!0);var J;((J=X.shrunkenPlayerBytesConfig)==null?0:J.shouldRequestShrunkenPlayerBytes)&&X.wI.get().x_(!1)}; QFA=function(X){return new LC(X)}; xg=function(){J5.apply(this,arguments)}; LC=function(){xg.apply(this,arguments)}; Krm=function(X){return Juv(Object.assign({},X,{hR:X.callback,YZ:function(){}}))}; qLA=function(X){return new J5(Object.assign({},X,{YZ:function(J){X.Gi.get().sI("onAdIntroStateChange",J)}}))}; IsI=function(X){function J(L){X.Gi.get().Q5(L)} return FO(X.slot,X.h0.get())?QFA(Object.assign({},X,{YZ:J})):new J5(Object.assign({},X,{YZ:J}))}; iR=function(X){for(var J=X.Qq,L=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],x=g.d(n2()),Q=x.next();!Q.done;Q=x.next())L.push(Q.value);if(jr(J,{yO:L,GR:["LAYOUT_TYPE_MEDIA_BREAK"]}))return Krm(X);J=X.Qq;L=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];x=g.d(n2());for(Q=x.next();!Q.done;Q=x.next())L.push(Q.value);if(jr(J,{yO:L,GR:["LAYOUT_TYPE_MEDIA"]}))return Fg(X.Qq.clientMetadata,"metadata_type_ad_intro")?qLA(X):IsI(X)}; DHR=function(X){var J=Nf(X.clientMetadata,"metadata_type_ad_placement_config").kind,L=Nf(X.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:X.layoutId,adType:gLW(L),adBreakType:f8(J)}}; f8=function(X){switch(X){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"}}; gLW=function(X){switch(X){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; $HR=function(X){try{return new Qn(X.Hh,X.slot,X.layout,X.vv,X.PO,X.dI,X.P9,X.fO,X.KO,X.wI,X.fHH,X)}catch(J){}}; Qn=function(X,J,L,x,Q,K,q,D,C,M,y,n){g.G.call(this);this.Hh=X;this.slot=J;this.layout=L;this.vv=x;this.PO=Q;this.dI=K;this.P9=q;this.fO=D;this.KO=C;this.wI=M;this.params=n;this.M2=!0;X=iR(y);if(!X)throw Error("Invalid params for sublayout");this.sA=X}; C4A=function(){this.L=1;this.K=new xr}; KC=function(X,J,L,x,Q,K,q,D,C,M,y,n,V,H){g.G.call(this);this.callback=X;this.dI=J;this.P9=L;this.fO=x;this.wI=Q;this.w2=K;this.wQ=q;this.uT=D;this.slot=C;this.layout=M;this.vv=y;this.YW=n;this.KO=V;this.h0=H;this.M2=!0;this.bC=!1;this.Mr=[];this.vQ=-1;this.rM=!1;this.PB=new C4A}; Mhz=function(X){var J;return(J=X.layout.Jv)!=null?J:Nf(X.layout.clientMetadata,"metadata_type_sub_layouts")}; qT=function(X){return{AO:X.dI.get(),t4:!1,MX:X.TK()}}; yuo=function(X,J,L){if(X.hK()===X.Mr.length-1){var x,Q;qH("Unexpected skip requested during the last sublayout",(x=X.OM())==null?void 0:x.UH(),(Q=X.OM())==null?void 0:Q.pm(),{requestingSlot:J,requestingLayout:L})}}; nLo=function(X,J,L){return L.layoutId!==IL(X,J,L)?(qH("onSkipRequested for a PlayerBytes layout that is not currently active",X.UH(),X.pm()),!1):!0}; Vh8=function(X){X.hK()===X.Mr.length-1&&qH("Unexpected skip with target requested during the last sublayout")}; HXe=function(X,J,L){return L.renderingContent===void 0&&L.layoutId!==IL(X,J,L)?(qH("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",X.UH(),X.pm(),{requestingSlot:J,requestingLayout:L}),!1):!0}; OXe=function(X,J,L,x){var Q=Nf(J.pm().clientMetadata,"metadata_type_ad_pod_skip_target");if(Q&&Q>0&&Q0)){qH("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",X.slot,X.layout,{indexToPlay:J,layoutId:X.layout.layoutId});break a}X.vQ=J;J=X.OM();if(X.hK()>0&&!X.TK()){var L=X.wQ.get();L.K=!1;var x={};L.L&&L.videoId&&(x.cttAuthInfo={token:L.L,videoId:L.videoId});Sq("ad_to_ad",x)}X.zx(J)}}; CC=function(X){KC.call(this,X.Hh,X.dI,X.P9,X.fO,X.wI,X.w2,X.wQ,X.uT,X.slot,X.layout,X.vv,X.YW,X.KO,X.h0)}; thm=function(X){(X=X.OM())&&X.eE()}; MT=function(X){KC.call(this,X.Hh,X.dI,X.P9,X.fO,X.wI,X.w2,X.wQ,X.uT,X.slot,X.layout,X.vv,X.YW,X.KO,X.h0);this.FN=void 0}; dHP=function(X,J){X.RR()&&!Q1(X.PB.K)||X.callback.Fv(X.slot,X.layout,J)}; yn=function(X){return vf(X.h0.get(),"html5_ssap_pass_transition_reason")}; u4m=function(X,J,L){J.dJ().currentState<2&&(L=RJ(L,X.h0),J.lH(J.pm(),L));L=J.dJ().L;X.lD(X.slot,J.pm(),L)}; oLz=function(X,J){if(X.PB.K.currentState<2){var L=RJ(J,X.h0);L==="error"?X.callback.lU(X.slot,X.layout,new BH("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:J},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):$g(X.YW,X.layout,L)}}; nC=function(X,J,L){J.dJ().currentState>=2||(J.lH(J.pm(),L),Q1(J.dJ())&&(Hf(X.uT,X.slot,J.pm(),L),X.FN=void 0))}; bXR=function(X,J){X.PB.L===2&&J!==X.PK()&&qH("onClipEntered: unknown cpn",X.slot,X.layout,{cpn:J})}; SLP=function(X,J){var L=X.OM();if(L){var x=L.pm().layoutId,Q=X.hK()+1;X.RR()?nC(X,L,J):L.lH(L.pm(),J);Q>=0&&QQ&&q.WV(y,Q-x);return y}; ruS=function(X,J,L){var x=Nf(J.clientMetadata,"metadata_type_sodar_extension_data");if(x)try{ifz(L,x)}catch(Q){qH("Unexpected error when loading Sodar",X,J,{error:Q})}}; vLZ=function(X,J,L,x,Q,K,q){d7(X,J,new g.IF(L,new g.ds),x,Q,q,!1,K)}; d7=function(X,J,L,x,Q,K,q,D){q=q===void 0?!0:q;AM(L)&&Xs(Q,0,null)&&(!wV(X,"impression")&&D&&D(),X.J_("impression"));wV(X,"impression")&&(g.Ds(L,4)&&!g.Ds(L,2)&&X.OV("pause"),gn(L,4)<0&&!(gn(L,2)<0)&&X.OV("resume"),g.Ds(L,16)&&Q>=.5&&X.OV("seek"),q&&g.Ds(L,2)&&uR(X,L.state,J,x,Q,K))}; uR=function(X,J,L,x,Q,K,q,D){wV(X,"impression")&&(K?(K=Q-x,K=K>=-1&&K<=2):K=Math.abs(x-Q)<=1,oL(X,J,K?x:Q,L,x,q,D&&K),K&&X.J_("complete"))}; oL=function(X,J,L,x,Q,K,q){aT(X,L*1E3,q);Q<=0||L<=0||(J==null?0:g.N(J,16))||(J==null?0:g.N(J,32))||(Xs(L,Q*.25,x)&&(K&&!wV(X,"first_quartile")&&K("first"),X.J_("first_quartile")),Xs(L,Q*.5,x)&&(K&&!wV(X,"midpoint")&&K("second"),X.J_("midpoint")),Xs(L,Q*.75,x)&&(K&&!wV(X,"third_quartile")&&K("third"),X.J_("third_quartile")))}; jFm=function(X,J){wV(X,"impression")&&X.OV(J?"fullscreen":"end_fullscreen")}; TnS=function(X){wV(X,"impression")&&X.OV("clickthrough")}; Gee=function(X){X.OV("active_view_measurable")}; fsA=function(X){wV(X,"impression")&&!wV(X,"seek")&&X.OV("active_view_fully_viewable_audible_half_duration")}; efo=function(X){wV(X,"impression")&&!wV(X,"seek")&&X.OV("active_view_viewable")}; Frm=function(X){wV(X,"impression")&&!wV(X,"seek")&&X.OV("audio_audible")}; lsR=function(X){wV(X,"impression")&&!wV(X,"seek")&&X.OV("audio_measurable")}; Rfz=function(X,J,L,x,Q,K,q,D,C,M,y,n,V){this.callback=X;this.slot=J;this.layout=L;this.P9=x;this.s6=Q;this.wI=K;this.SZ=q;this.ih=D;this.ST=C;this.h0=M;this.ZY=y;this.dI=n;this.Ti=V;this.e2=!0;this.JP=this.Rf=null;this.adCpn=void 0;this.L=!1}; Bne=function(X,J,L){var x;t5(X.ZY.get(),"ads_qua","cpn."+Nf(X.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((x=vv(X.dI.get(),2))==null?void 0:x.clientPlaybackNonce)+";qt."+J+";clr."+L)}; sFm=function(X,J){var L,x;t5(X.ZY.get(),"ads_imp","cpn."+Nf(X.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((L=vv(X.dI.get(),2))==null?void 0:L.clientPlaybackNonce)+";clr."+J+";skp."+!!g.F((x=Nf(X.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:x.skipOrPreviewRenderer,bR))}; SM=function(X){return{enterMs:Nf(X.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:Nf(X.clientMetadata,"metadata_type_layout_exit_ms")}}; Pk=function(X,J,L,x,Q,K,q,D,C,M,y,n,V,H){Hk.call(this,X,J,L,x,Q,q,D,C,M,n);this.SZ=K;this.ST=y;this.ih=V;this.h0=H;this.JP=this.Rf=null}; Nno=function(X,J){var L;t5(X.ZY.get(),"ads_imp","acpn."+((L=vv(X.dI.get(),2))==null?void 0:L.clientPlaybackNonce)+";clr."+J)}; UHm=function(X,J,L){var x;t5(X.ZY.get(),"ads_qua","cpn."+Nf(X.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((x=vv(X.dI.get(),2))==null?void 0:x.clientPlaybackNonce)+";qt."+J+";clr."+L)}; ck=function(X,J,L,x,Q,K,q,D,C,M,y,n,V,H,O,u,S,Y,h,W,T,l){this.KO=X;this.vv=J;this.YW=L;this.dI=x;this.P9=Q;this.wI=K;this.w2=q;this.ZY=D;this.SZ=C;this.Jj=M;this.ih=y;this.ST=n;this.fO=V;this.Ti=H;this.wQ=O;this.Gi=u;this.v4=S;this.YM=Y;this.h0=h;this.L=W;this.context=T;this.sV=l}; Ez=function(X,J,L,x,Q,K,q,D,C,M,y,n,V,H,O,u,S,Y,h){this.KO=X;this.vv=J;this.YW=L;this.ZY=x;this.ih=Q;this.ST=K;this.fO=q;this.dI=D;this.wI=C;this.w2=M;this.Ti=y;this.wQ=n;this.Gi=V;this.v4=H;this.YM=O;this.h0=u;this.P9=S;this.context=Y;this.sV=h}; mHO=function(X,J,L,x){JC.call(this,"survey-interstitial",X,J,L,x)}; Yg=function(X,J,L,x,Q){K2.call(this,L,X,J,x);this.ZY=Q;X=Nf(J.clientMetadata,"metadata_type_ad_placement_config");this.s6=new yO(J.yl,Q,X,J.layoutId)}; h5=function(X){return Math.round(X.width)+"x"+Math.round(X.height)}; Wk=function(X,J,L){L=L===void 0?zK:L;L.widthX.width*X.height*.2)return{Nc:3,nR:501,errorMessage:"ad("+h5(L)+") to container("+h5(X)+") ratio exceeds limit."};if(L.height>X.height/3-J)return{Nc:3,nR:501,errorMessage:"ad("+h5(L)+") covers container("+h5(X)+") center."}}; kev=function(X,J){var L=Nf(X.clientMetadata,"metadata_type_ad_placement_config");return new yO(X.yl,J,L,X.layoutId)}; pC=function(X){return Nf(X.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; r7=function(X,J,L,x){JC.call(this,"invideo-overlay",X,J,L,x);this.interactionLoggingClientData=x}; vk=function(X,J,L,x,Q,K,q,D,C,M,y,n){K2.call(this,K,X,J,Q);this.ZY=L;this.T=q;this.wI=D;this.v4=C;this.h0=M;this.B=y;this.j=n;this.s6=kev(J,L)}; ZXY=function(){var X=["metadata_type_invideo_overlay_ad_renderer"];n2().forEach(function(J){X.push(J)}); return{yO:X,GR:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; jM=function(X,J,L,x,Q,K,q,D,C,M,y,n,V){K2.call(this,K,X,J,Q);this.ZY=L;this.T=q;this.S=D;this.wI=C;this.v4=M;this.h0=y;this.B=n;this.j=V;this.s6=kev(J,L)}; AuZ=function(){for(var X=["metadata_type_invideo_overlay_ad_renderer"],J=g.d(n2()),L=J.next();!L.done;L=J.next())X.push(L.value);return{yO:X,GR:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; TK=function(X){this.wI=X;this.L=!1}; XQv=function(X,J,L){JC.call(this,"survey",X,{},J,L)}; GK=function(X,J,L,x,Q,K,q){K2.call(this,L,X,J,x);this.T=Q;this.wI=K;this.h0=q}; JtP=function(X,J,L,x,Q,K,q,D,C,M){this.Nd=X;this.wI=J;this.ZY=L;this.T=x;this.ih=Q;this.K=K;this.N=q;this.v4=D;this.h0=C;this.L=M}; LbA=function(X,J,L,x,Q,K,q,D,C,M){this.Nd=X;this.wI=J;this.ZY=L;this.T=x;this.ih=Q;this.K=K;this.N=q;this.v4=D;this.h0=C;this.L=M}; fC=function(X,J,L,x,Q,K,q,D,C,M){ls.call(this,X,J,L,x,Q,K,q,C);this.K1=D;this.dI=M}; xRZ=function(){var X=gEA();X.yO.push("metadata_type_ad_info_ad_metadata");return X}; iF8=function(X,J,L,x,Q,K,q){this.Nd=X;this.wI=J;this.ZY=L;this.K=x;this.K1=Q;this.L=K;this.dI=q}; Qom=function(X,J,L,x,Q,K,q,D){this.Nd=X;this.wI=J;this.ZY=L;this.K=x;this.K1=Q;this.L=K;this.h0=q;this.dI=D}; eM=function(X,J){this.slotId=J;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=X(this.triggerType)}; FA=function(X,J){this.adPodIndex=X;this.L=J.length;this.adBreakLengthSeconds=J.reduce(function(x,Q){return x+Q},0); var L=0;for(X+=1;X0}; bg=function(X){return!!(X.wL&&X.slot&&X.layout)}; Wh=function(X){var J,L=(J=X.config)==null?void 0:J.adPlacementConfig;X=X.renderer;return!(!L||L.kind==null||!X)}; wQI=function(X){if(!Oe(X.adLayoutMetadata))return!1;X=X.renderingContent;return g.F(X,mP)||g.F(X,kw)||g.F(X,aNW)||g.F(X,Ne)||g.F(X,Ux)?!0:!1}; pa=function(X){return X.playerVars!==void 0&&X.pings!==void 0&&X.externalVideoId!==void 0}; e_=function(X){if(!Oe(X.adLayoutMetadata))return!1;X=X.renderingContent;var J=g.F(X,rd);return J?vh(J):(J=g.F(X,j_))?pa(J):(J=g.F(X,TP))?J.playerVars!==void 0:(J=g.F(X,mP))?J.durationMilliseconds!==void 0:g.F(X,GP)||g.F(X,fa)?!0:!1}; vh=function(X){X=(X.sequentialLayouts||[]).map(function(J){return g.F(J,Fo)}); return X.length>0&&X.every(e_)}; RX=function(X){return Oe(X.adLayoutMetadata)?(X=g.F(X.renderingContent,lg))&&X.pings?!0:!1:!1}; S4z=function(X){if(!Oe(X.adLayoutMetadata))return!1;if(g.F(X.renderingContent,tqR)||g.F(X.renderingContent,dRP))return!0;var J=g.F(X.renderingContent,Bh);return g.F(X.renderingContent,se)||g.F(J==null?void 0:J.sidePanel,uqR)||g.F(J==null?void 0:J.sidePanel,oRR)||g.F(J==null?void 0:J.sidePanel,bFP)?!0:!1}; hVz=function(X){var J;(J=!X)||(J=X.adSlotMetadata,J=!((J==null?void 0:J.slotId)!==void 0&&(J==null?void 0:J.slotType)!==void 0));if(J||!(PVA(X)||X.slotEntryTrigger&&X.slotFulfillmentTriggers&&X.slotExpirationTriggers))return!1;var L;X=(L=X.fulfillmentContent)==null?void 0:L.fulfilledLayout;return(L=g.F(X,Fo))?e_(L):(L=g.F(X,No))?S4z(L):(L=g.F(X,ctW))?wQI(L):(L=g.F(X,ERZ))?HFW(L):(L=g.F(X,Y4z))?Oe(L.adLayoutMetadata)?g.F(L.renderingContent,aX)?!0:!1:!1:(X=g.F(X,Ue))?RX(X):!1}; PVA=function(X){var J;X=g.F((J=X.fulfillmentContent)==null?void 0:J.fulfilledLayout,No);var L;return X&&((L=X.adLayoutMetadata)==null?void 0:L.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&X.layoutExitNormalTriggers===void 0}; zVS=function(X){var J;return(X==null?void 0:(J=X.adSlotMetadata)==null?void 0:J.slotType)==="SLOT_TYPE_IN_PLAYER"}; pQP=function(X,J){var L;if((L=X.questions)==null||!L.length||!X.playbackCommands||(J===void 0||!J)&&X.questions.length!==1)return!1;X=g.d(X.questions);for(J=X.next();!J.done;J=X.next()){J=J.value;var x=L=void 0,Q=((L=g.F(J,ml))==null?void 0:L.surveyAdQuestionCommon)||((x=g.F(J,k6))==null?void 0:x.surveyAdQuestionCommon);if(!Wbm(Q))return!1}return!0}; rt8=function(X){X=((X==null?void 0:X.playerOverlay)||{}).instreamSurveyAdRenderer;var J;if(X)if(X.playbackCommands&&X.questions&&X.questions.length===1){var L,x=((J=g.F(X.questions[0],ml))==null?void 0:J.surveyAdQuestionCommon)||((L=g.F(X.questions[0],k6))==null?void 0:L.surveyAdQuestionCommon);J=Wbm(x)}else J=!1;else J=!1;return J}; Wbm=function(X){if(!X)return!1;X=g.F(X.instreamAdPlayerOverlay,ZA);var J=g.F(X==null?void 0:X.skipOrPreviewRenderer,bR),L=g.F(X==null?void 0:X.adInfoRenderer,A9);return(g.F(X==null?void 0:X.skipOrPreviewRenderer,XL)||J)&&L?!0:!1}; vRA=function(X){return X.linearAds!=null&&Oe(X.adLayoutMetadata)}; joo=function(X){return X.linearAd!=null&&X.adVideoStart!=null}; TDO=function(X){if(isNaN(Number(X.timeoutSeconds))||!X.text||!X.ctaButton||!g.F(X.ctaButton,g.JE)||!X.brandImage)return!1;var J;return X.backgroundImage&&g.F(X.backgroundImage,LB)&&((J=g.F(X.backgroundImage,LB))==null?0:J.landscape)?!0:!1}; xs=function(X,J,L,x,Q,K,q,D){g.G.call(this);this.h0=X;this.L=J;this.K=x;this.dI=Q;this.T=K;this.N=q;this.fO=D}; eV8=function(X,J,L){var x,Q=((x=L.adSlots)!=null?x:[]).map(function(D){return g.F(D,i5)}); if(L.O3)if(Nf(J.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))L2(X.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},J.slotId); else{if(X.h0.get().Z.G().Y("h5_check_forecasting_renderer_for_throttled_midroll")){var K=L.l8.filter(function(D){var C;return((C=D.renderer)==null?void 0:C.clientForecastingAdRenderer)!=null}); K.length!==0?GHR(X.N,K,Q,J.slotId,L.ssdaiAdsConfig):L2(X.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},J.slotId)}else L2(X.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},J.slotId); fNe(X.T,J)}else{var q;x={Tw:Math.round(((K=Nf(J.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:K.Tw)||0),Ph:(q=Nf(J.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:q.Ph};GHR(X.N,L.l8,Q,J.slotId,L.ssdaiAdsConfig,x)}}; RVZ=function(X,J,L,x,Q,K,q){var D=vv(X.dI.get(),1);if(Fbm(X.h0.get())){var C=Qo(X.K.get(),L,x,Q,D.clientPlaybackNonce,D.sS,D.daiEnabled,D,K,q);lNv(X,C);L2(X.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return C},J)}else L2(X.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Qo(X.K.get(),L,x,Q,D.clientPlaybackNonce,D.sS,D.daiEnabled,D,K,q)},J)}; lNv=function(X,J){J=g.d(J);for(var L=J.next();!L.done;L=J.next()){var x=L.value;if(x.slotType==="SLOT_TYPE_PLAYER_BYTES"&&x.fulfilledLayout)if(L=void 0,x.fulfilledLayout.renderingContent)L=Nf(x.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(x.fulfilledLayout.Jv){x=g.d(x.fulfilledLayout.Jv);for(var Q=x.next();!Q.done&&(Q=Q.value,!Q.renderingContent||!(L=Nf(Q.clientMetadata,"metadata_type_player_vars")));Q=x.next());}}else L=void 0;if(L){X.fO.get().Z.preloadVideoByPlayerVars(L, 2,300);break}}}; som=function(X,J,L,x,Q,K,q){J=BDP(J,K,Number(x.prefetchMilliseconds)||0,q);X=J instanceof m?J:KB(X,x,Q,J,L);return X instanceof m?X:[X]}; NDZ=function(X,J,L,x,Q){var K=xw(X.K.get(),"SLOT_TYPE_AD_BREAK_REQUEST");x=[new bJ({getAdBreakUrl:x.getAdBreakUrl,Tw:0,Ph:0}),new G_(!0)];X=J.pauseDurationMs?J.lactThresholdMs?{slotId:K,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new Mo(X.L,K),slotFulfillmentTriggers:[new q4I(X.L)],slotExpirationTriggers:[new Ka(X.L,Q),new DA(X.L,K)],U6:"core",clientMetadata:new sj(x),adSlotLoggingData:L}:new m("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new m("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return X instanceof m?X:[X]}; URW=function(X){var J,L;return((J=X.renderer)==null?void 0:(L=J.adBreakServiceRenderer)==null?void 0:L.getAdBreakUrl)!==void 0}; qa=function(X,J,L){if(X.beforeContentVideoIdStartedTrigger)X=X.beforeContentVideoIdStartedTrigger?new lR(RA,J,X.id):new m("Not able to create BeforeContentVideoIdStartedTrigger");else{if(X.layoutIdExitedTrigger){var x;J=(x=X.layoutIdExitedTrigger)!=null&&x.triggeringLayoutId?new mc(RA,X.layoutIdExitedTrigger.triggeringLayoutId,X.id):new m("Not able to create LayoutIdExitedTrigger")}else{if(X.layoutExitedForReasonTrigger){var Q,K;((Q=X.layoutExitedForReasonTrigger)==null?0:Q.triggeringLayoutId)&&((K= X.layoutExitedForReasonTrigger)==null?0:K.layoutExitReason)?(J=INZ(X.layoutExitedForReasonTrigger.layoutExitReason),X=J instanceof m?J:new Uz(RA,X.layoutExitedForReasonTrigger.triggeringLayoutId,[J],X.id)):X=new m("Not able to create LayoutIdExitedForReasonTrigger")}else{if(X.onLayoutSelfExitRequestedTrigger){var q;J=(q=X.onLayoutSelfExitRequestedTrigger)!=null&&q.triggeringLayoutId?new QB(RA,X.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,X.id):new m("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(X.onNewPlaybackAfterContentVideoIdTrigger)X= X.onNewPlaybackAfterContentVideoIdTrigger?new Ka(RA,J,X.id):new m("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(X.skipRequestedTrigger){var D;J=(D=X.skipRequestedTrigger)!=null&&D.triggeringLayoutId?new IX(RA,X.skipRequestedTrigger.triggeringLayoutId,X.id):new m("Not able to create SkipRequestedTrigger")}else if(X.slotIdEnteredTrigger){var C;J=(C=X.slotIdEnteredTrigger)!=null&&C.triggeringSlotId?new gd(RA,X.slotIdEnteredTrigger.triggeringSlotId,X.id):new m("Not able to create SlotIdEnteredTrigger")}else if(X.slotIdExitedTrigger){var M; J=(M=X.slotIdExitedTrigger)!=null&&M.triggeringSlotId?new DA(RA,X.slotIdExitedTrigger.triggeringSlotId,X.id):new m("Not able to create SkipRequestedTrigger")}else if(X.surveySubmittedTrigger){var y;J=(y=X.surveySubmittedTrigger)!=null&&y.triggeringLayoutId?new na(RA,X.surveySubmittedTrigger.triggeringLayoutId,X.id):new m("Not able to create SurveySubmittedTrigger")}else{if(X.mediaResumedTrigger)X=X.mediaResumedTrigger&&X.id?new gRm(X.id):new m("Not able to create MediaResumedTrigger");else{if(X.closeRequestedTrigger){var n; J=(n=X.closeRequestedTrigger)!=null&&n.triggeringLayoutId?new RL(RA,X.closeRequestedTrigger.triggeringLayoutId,X.id):new m("Not able to create CloseRequestedTrigger")}else if(X.slotIdScheduledTrigger){var V;J=(V=X.slotIdScheduledTrigger)!=null&&V.triggeringSlotId?new Mo(RA,X.slotIdScheduledTrigger.triggeringSlotId,X.id):new m("Not able to create SlotIdScheduledTrigger")}else{if(X.mediaTimeRangeTrigger){var H;x=Number((H=X.mediaTimeRangeTrigger)==null?void 0:H.offsetStartMilliseconds);var O;q=Number((O= X.mediaTimeRangeTrigger)==null?void 0:O.offsetEndMilliseconds);isFinite(x)&&isFinite(q)?(O=q,O===-1&&(O=L),L=x>O?new m("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:x,offsetEndMs:O},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",O===L&&x-500<=O):new wG(x,O),X=L instanceof m?L:new J9(RA,J,L,!1,X.id)):X=new m("Not able to create MediaTimeRangeTrigger")}else if(X.contentVideoIdEndedTrigger)X=X.contentVideoIdEndedTrigger?new Bk(RA,J,!1,X.id):new m("Not able to create ContentVideoIdEndedTrigger"); else{if(X.layoutIdEnteredTrigger){var u;J=(u=X.layoutIdEnteredTrigger)!=null&&u.triggeringLayoutId?new NT(RA,X.layoutIdEnteredTrigger.triggeringLayoutId,X.id):new m("Not able to create LayoutIdEnteredTrigger")}else if(X.timeRelativeToLayoutEnterTrigger){var S;J=(S=X.timeRelativeToLayoutEnterTrigger)!=null&&S.triggeringLayoutId?new VB(RA,Number(X.timeRelativeToLayoutEnterTrigger.durationMs),X.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,X.id):new m("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(X.onDifferentLayoutIdEnteredTrigger){var Y; J=(Y=X.onDifferentLayoutIdEnteredTrigger)!=null&&Y.triggeringLayoutId&&X.onDifferentLayoutIdEnteredTrigger.slotType&&X.onDifferentLayoutIdEnteredTrigger.layoutType?new x6(RA,X.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,X.onDifferentLayoutIdEnteredTrigger.slotType,X.onDifferentLayoutIdEnteredTrigger.layoutType,X.id):new m("Not able to create CloseRequestedTrigger")}else{if(X.liveStreamBreakStartedTrigger)X=X.liveStreamBreakStartedTrigger&&X.id?new Xo(RA,X.id):new m("Not able to create LiveStreamBreakStartedTrigger"); else if(X.liveStreamBreakEndedTrigger)X=X.liveStreamBreakEndedTrigger&&X.id?new kg(RA,X.id):new m("Not able to create LiveStreamBreakEndedTrigger");else{if(X.liveStreamBreakScheduledDurationMatchedTrigger){var h;J=(h=X.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&h.breakDurationMs?new ZV(Number(X.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,X.id):new m("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(X.liveStreamBreakScheduledDurationNotMatchedTrigger){var W; J=(W=X.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&W.breakDurationMs?new A5(Number(X.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,X.id):new m("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(X.newSlotScheduledWithBreakDurationTrigger){var T;J=(T=X.newSlotScheduledWithBreakDurationTrigger)!=null&&T.breakDurationMs?new La(Number(X.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,X.id):new m("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else J= X.prefetchCacheExpiredTrigger?new qo(RA,X.id):new m("Not able to convert an AdsControlflowTrigger.");X=J}J=X}X=J}J=X}X=J}J=X}X=J}J=X}X=J}J=X}X=J}return X}; I8=function(X,J){J.L>=2&&(X.slot_pos=J.adPodIndex);X.autoplay="1"}; kHI=function(X,J,L,x,Q,K,q,D){return J===null?new m("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:J,ActionCompanionAdRenderer:x}):[mRI(X,J,q,K,function(C){var M=C.slotId;C=D(C);var y=x.adLayoutLoggingData,n=new sj([new Pj(x),new GS(Q)]);M=jN(L.K.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",M);var V={layoutId:M,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",U6:"core"};return{layoutId:M,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",yl:new Map, layoutExitNormalTriggers:[new Ka(L.L,q)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],W9:[],U6:"core",clientMetadata:n,B4:C(V),adLayoutLoggingData:y}})]}; ZFR=function(X,J,L,x,Q,K,q,D){return J===null?new m("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:J,TopBannerImageTextIconButtonedLayoutViewModel:x}):[mRI(X,J,q,K,function(C){var M=C.slotId;C=D(C);var y=x.adLayoutLoggingData,n=new sj([new cj(x),new GS(Q)]);M=jN(L.K.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",M);var V={layoutId:M,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",U6:"core"};return{layoutId:M,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", yl:new Map,layoutExitNormalTriggers:[new Ka(L.L,q)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],W9:[],U6:"core",clientMetadata:n,B4:C(V),adLayoutLoggingData:y}})]}; Lvm=function(X,J,L,x,Q,K){if(!K)for(J=g.d(J),K=J.next();!K.done;K=J.next())K=K.value,DW(X,K.renderer,K.config.adPlacementConfig.kind);X=Array.from(X.values()).filter(function(y){return Atm(y)}); J=[];K=g.d(X);for(var q=K.next(),D={};!q.done;D={NC:void 0},q=K.next()){D.NC=q.value;q=g.d(D.NC.LH);for(var C=q.next(),M={};!C.done;M={aW:void 0},C=q.next())M.aW=C.value,C=function(y,n){return function(V){return y.aW.KM(V,n.NC.instreamVideoAdRenderer.elementId,y.aW.m0)}}(M,D),M.aW.isContentVideoCompanion?J.push(XzY(L,x,Q,D.NC.instreamVideoAdRenderer.elementId,M.aW.associatedCompositePlayerBytesLayoutId,M.aW.adSlotLoggingData,C)):X.length>1?J.push(JLA(L,x,Q,D.NC.instreamVideoAdRenderer.elementId,M.aW.adSlotLoggingData, function(y,n){return function(V){return y.aW.KM(V,n.NC.instreamVideoAdRenderer.elementId,y.aW.m0,y.aW.associatedCompositePlayerBytesLayoutId)}}(M,D))):J.push(JLA(L,x,Q,D.NC.instreamVideoAdRenderer.elementId,M.aW.adSlotLoggingData,C))}return J}; DW=function(X,J,L){if(J=xlm(J)){J=g.d(J);for(var x=J.next();!x.done;x=J.next())if((x=x.value)&&x.externalVideoId){var Q=$s(X,x.externalVideoId);Q.instreamVideoAdRenderer||(Q.instreamVideoAdRenderer=x,Q.lE=L)}else qH("InstreamVideoAdRenderer without externalVideoId")}}; xlm=function(X){var J=[],L=X.sandwichedLinearAdRenderer&&X.sandwichedLinearAdRenderer.linearAd&&g.F(X.sandwichedLinearAdRenderer.linearAd,j_);if(L)return J.push(L),J;if(X.instreamVideoAdRenderer)return J.push(X.instreamVideoAdRenderer),J;if(X.linearAdSequenceRenderer&&X.linearAdSequenceRenderer.linearAds){X=g.d(X.linearAdSequenceRenderer.linearAds);for(L=X.next();!L.done;L=X.next())L=L.value,g.F(L,j_)&&J.push(g.F(L,j_));return J}return null}; Atm=function(X){if(X.instreamVideoAdRenderer===void 0)return qH("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var J=g.d(X.LH),L=J.next();!L.done;L=J.next()){L=L.value;if(L.KM===void 0)return!1;if(L.m0===void 0)return qH("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(X.lE===void 0||L.Ww===void 0||X.lE!==L.Ww&&L.Ww!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(X.instreamVideoAdRenderer.elementId===void 0)return qH("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:X.lE,"matching APSR kind":L.Ww}),!1}return!0}; $s=function(X,J){X.has(J)||X.set(J,{instreamVideoAdRenderer:void 0,lE:void 0,adVideoId:J,LH:[]});return X.get(J)}; CB=function(X,J,L,x,Q,K,q,D,C){Q?$s(X,Q).LH.push({Zq9:J,Ww:L,isContentVideoCompanion:x,m0:q,associatedCompositePlayerBytesLayoutId:K,adSlotLoggingData:D,KM:C}):qH("Companion AdPlacementSupportedRenderer without adVideoId")}; Ma=function(X){var J=0;X=g.d(X.questions);for(var L=X.next();!L.done;L=X.next())if(L=L.value,L=g.F(L,ml)||g.F(L,k6)){var x=void 0;J+=((x=L.surveyAdQuestionCommon)==null?void 0:x.durationMilliseconds)||0}return J}; yo=function(X){var J,L,x,Q,K=((L=g.F((J=X.questions)==null?void 0:J[0],ml))==null?void 0:L.surveyAdQuestionCommon)||((Q=g.F((x=X.questions)==null?void 0:x[0],k6))==null?void 0:Q.surveyAdQuestionCommon),q;J=[].concat(g.nR(((q=X.playbackCommands)==null?void 0:q.instreamAdCompleteCommands)||[]),g.nR((K==null?void 0:K.timeoutCommands)||[]));var D,C,M,y,n,V,H,O,u,S,Y,h,W,T,l,Jo,U,QP,Iz,qS;return{impressionCommands:(D=X.playbackCommands)==null?void 0:D.impressionCommands,errorCommands:(C=X.playbackCommands)== null?void 0:C.errorCommands,muteCommands:(M=X.playbackCommands)==null?void 0:M.muteCommands,unmuteCommands:(y=X.playbackCommands)==null?void 0:y.unmuteCommands,pauseCommands:(n=X.playbackCommands)==null?void 0:n.pauseCommands,rewindCommands:(V=X.playbackCommands)==null?void 0:V.rewindCommands,resumeCommands:(H=X.playbackCommands)==null?void 0:H.resumeCommands,skipCommands:(O=X.playbackCommands)==null?void 0:O.skipCommands,progressCommands:(u=X.playbackCommands)==null?void 0:u.progressCommands,JRY:(S= X.playbackCommands)==null?void 0:S.clickthroughCommands,fullscreenCommands:(Y=X.playbackCommands)==null?void 0:Y.fullscreenCommands,activeViewViewableCommands:(h=X.playbackCommands)==null?void 0:h.activeViewViewableCommands,activeViewMeasurableCommands:(W=X.playbackCommands)==null?void 0:W.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(T=X.playbackCommands)==null?void 0:T.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(l=X.playbackCommands)== null?void 0:(Jo=l.activeViewTracking)==null?void 0:Jo.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(U=X.playbackCommands)==null?void 0:(QP=U.activeViewTracking)==null?void 0:QP.activeViewAudioMeasurableCommands,endFullscreenCommands:(Iz=X.playbackCommands)==null?void 0:Iz.endFullscreenCommands,abandonCommands:(qS=X.playbackCommands)==null?void 0:qS.abandonCommands,completeCommands:J}}; Q9m=function(X,J,L,x,Q,K,q){return function(D,C){return iwZ(X,C.slotId,D,K,function(M,y){var n=C.layoutId;M=q(M);return nB(J,n,y,Q,M,"LAYOUT_TYPE_SURVEY",[new Lg(L),x],L.adLayoutLoggingData)})}}; I1o=function(X,J,L,x,Q,K,q){if(!Kvv(X))return new m("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:X});var D=X.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[qs8(K,J,L,x,function(C){var M=C.slotId;C=q(C);M=jN(Q.K.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",M);var y={layoutId:M,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",U6:"core"},n=new mc(Q.L,x);return{layoutId:M,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",yl:new Map,layoutExitNormalTriggers:[n], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],W9:[],U6:"core",clientMetadata:new sj([new x8(D)]),B4:C(y)}})]}; Kvv=function(X){X=g.F(X==null?void 0:X.additionalPlayerOverlay,gyO);if(!X)return!1;var J=X.slidingMessages;return X.title&&J&&J.length!==0?!0:!1}; $lP=function(X,J,L,x,Q){var K;if((K=X.playerOverlay)==null||!K.instreamSurveyAdRenderer)return function(){return[]}; if(!rt8(X))return function(){return new m("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:X})}; var q=X.playerOverlay.instreamSurveyAdRenderer,D=Ma(q);return D<=0?function(){return new m("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:q})}:function(C,M){var y=Dl8(C,L,x,function(n){var V=n.slotId; n=M(n);var H=yo(q);V=jN(Q.K.get(),"LAYOUT_TYPE_SURVEY",V);var O={layoutId:V,layoutType:"LAYOUT_TYPE_SURVEY",U6:"core"},u=new mc(Q.L,x),S=new IX(Q.L,V),Y=new na(Q.L,V),h=new Mqm(Q.L);return{layoutId:V,layoutType:"LAYOUT_TYPE_SURVEY",yl:new Map,layoutExitNormalTriggers:[u,h],layoutExitSkipTriggers:[S],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[Y],W9:[],U6:"core",clientMetadata:new sj([new JT(q),new GS(J),new cH(D/1E3),new z_(H)]),B4:n(O),adLayoutLoggingData:q.adLayoutLoggingData}}); C=I1o(X,L,y.slotId,x,Q,C,M);return C instanceof m?C:[y].concat(g.nR(C))}}; OwI=function(X,J,L,x,Q,K,q){q=q===void 0?!1:q;var D=[];try{var C=[];if(L.renderer.linearAdSequenceRenderer)var M=function(u){u=CEm(u.slotId,L,J,Q(u),x,K,q);C=u.wDi;return u.X8}; else if(L.renderer.instreamVideoAdRenderer)M=function(u){var S=u.slotId;u=Q(u);var Y=q,h=L.config.adPlacementConfig,W=MAm(h),T=W.Dr,l=W.yy;W=L.renderer.instreamVideoAdRenderer;var Jo;if(W==null?0:(Jo=W.playerOverlay)==null?0:Jo.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var U=Vo(W,Y);Jo=Math.min(T+U.videoLengthSeconds*1E3,l);Y=new FA(0,[U.videoLengthSeconds]);l=U.videoLengthSeconds;var QP=U.playerVars,Iz=U.instreamAdPlayerOverlayRenderer,qS=U.playerOverlayLayoutRenderer, $e=U.adVideoId,k=yLO(L),cW=U.yl;U=U.As;var rI=W==null?void 0:W.adLayoutLoggingData;W=W==null?void 0:W.sodarExtensionData;S=jN(J.K.get(),"LAYOUT_TYPE_MEDIA",S);var Xv={layoutId:S,layoutType:"LAYOUT_TYPE_MEDIA",U6:"core"};return{layoutId:S,layoutType:"LAYOUT_TYPE_MEDIA",yl:cW,layoutExitNormalTriggers:[new kg(J.L)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],W9:[],U6:"core",clientMetadata:new sj([new Bj(x),new Mf(l),new yx(QP),new HH(T),new Oj(Jo),Iz&& new sC(Iz),qS&&new N0(qS),new GS(h),new Rp($e),new fb(Y),new uJ(k),W&&new Vx(W),new g1({current:null}),new w1({}),new r1(U)].filter(nyA)),B4:u(Xv),adLayoutLoggingData:rI}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var y=VAZ(X,x,L.adSlotLoggingData,M);D.push(y);for(var n=g.d(C),V=n.next();!V.done;V=n.next()){var H=V.value,O=H(X,Q);if(O instanceof m)return O;D.push.apply(D,g.nR(O))}}catch(u){return new m(u,{errorMessage:u.message,AdPlacementRenderer:L,numberOfSurveyRenderers:Hwm(L)})}return D}; Hwm=function(X){X=(X.renderer.linearAdSequenceRenderer||{}).linearAds;return X!=null&&X.length?X.filter(function(J){var L,x;return((L=g.F(J,j_))==null?void 0:(x=L.playerOverlay)==null?void 0:x.instreamSurveyAdRenderer)!=null}).length:0}; CEm=function(X,J,L,x,Q,K,q){var D=J.config.adPlacementConfig,C=MAm(D),M=C.Dr,y=C.yy;C=(J.renderer.linearAdSequenceRenderer||{}).linearAds;if(C==null||!C.length)throw new TypeError("Expected linear ads");var n=[],V={Fl:M,UX:0,gMB:n};C=C.map(function(O){return a18(X,O,V,L,x,D,Q,y,q)}).map(function(O,u){u=new FA(u,n); return O(u)}); var H=C.map(function(O){return O.CD}); return{X8:wzI(L,X,M,H,D,yLO(J),x,y,K),wDi:C.map(function(O){return O.zgq})}}; a18=function(X,J,L,x,Q,K,q,D,C){var M=Vo(g.F(J,j_),C),y=L.Fl,n=L.UX,V=Math.min(y+M.videoLengthSeconds*1E3,D);L.Fl=V;L.UX++;L.gMB.push(M.videoLengthSeconds);var H,O,u=(H=g.F(J,j_))==null?void 0:(O=H.playerOverlay)==null?void 0:O.instreamSurveyAdRenderer;if(M.adVideoId==="nPpU29QrbiU"&&u==null)throw new TypeError("Survey slate media has no survey overlay");return function(S){I8(M.playerVars,S);var Y,h,W=M.videoLengthSeconds,T=M.playerVars,l=M.yl,Jo=M.As,U=M.instreamAdPlayerOverlayRenderer,QP=M.playerOverlayLayoutRenderer, Iz=M.adVideoId,qS=(Y=g.F(J,j_))==null?void 0:Y.adLayoutLoggingData;Y=(h=g.F(J,j_))==null?void 0:h.sodarExtensionData;h=jN(x.K.get(),"LAYOUT_TYPE_MEDIA",X);var $e={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",U6:"adapter"};S={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",yl:l,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],W9:[],U6:"adapter",clientMetadata:new sj([new Bj(q),new Mf(W),new yx(T),new HH(y),new Oj(V),new aA(n),new g1({current:null}), U&&new sC(U),QP&&new N0(QP),new GS(K),new Rp(Iz),new fb(S),Y&&new Vx(Y),u&&new pg(u),new w1({}),new r1(Jo)].filter(nyA)),B4:Q($e),adLayoutLoggingData:qS};W=$lP(g.F(J,j_),K,q,S.layoutId,x);return{CD:S,zgq:W}}}; Vo=function(X,J){if(!X)throw new TypeError("Expected instream video ad renderer");if(!X.playerVars)throw new TypeError("Expected player vars in url encoded string");var L=ZB(X.playerVars),x=Number(L.length_seconds);if(isNaN(x))throw new TypeError("Expected valid length seconds in player vars");var Q=Number(X.trimmedMaxNonSkippableAdDurationMs);x=isNaN(Q)?x:Math.min(x,Q/1E3);Q=X.playerOverlay||{};Q=Q.instreamAdPlayerOverlayRenderer===void 0?null:Q.instreamAdPlayerOverlayRenderer;var K=X.playerOverlay|| {};K=K.playerOverlayLayoutRenderer===void 0?null:K.playerOverlayLayoutRenderer;var q=L.video_id;q||(q=(q=X.externalVideoId)?q:void 0);if(!q)throw new TypeError("Expected valid video id in IVAR");if(J&&x===0){var D;J=(D=tAz[q])!=null?D:x}else J=x;return{playerVars:L,videoLengthSeconds:J,instreamAdPlayerOverlayRenderer:Q,playerOverlayLayoutRenderer:K,adVideoId:q,yl:X.pings?Me(X.pings):new Map,As:C2(X.pings)}}; yLO=function(X){X=Number(X.driftRecoveryMs);return isNaN(X)||X<=0?null:X}; MAm=function(X){var J=X.adTimeOffset||{};X=J.offsetEndMilliseconds;J=Number(J.offsetStartMilliseconds);if(isNaN(J))throw new TypeError("Expected valid start offset");X=Number(X);if(isNaN(X))throw new TypeError("Expected valid end offset");return{Dr:J,yy:X}}; dlW=function(X){var J,L=(J=Nf(X.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:J.current;if(!L)return null;J=Nf(X.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var x=X.layoutId,Q=Nf(X.clientMetadata,"metadata_type_content_cpn"),K=Nf(X.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),q=Nf(X.clientMetadata,"metadata_type_player_underlay_renderer"),D=Nf(X.clientMetadata,"metadata_type_ad_placement_config"),C=Nf(X.clientMetadata,"metadata_type_video_length_seconds"); var M=Fg(X.clientMetadata,"metadata_type_layout_enter_ms")&&Fg(X.clientMetadata,"metadata_type_layout_exit_ms")?(Nf(X.clientMetadata,"metadata_type_layout_exit_ms")-Nf(X.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Gu:x,contentCpn:Q,CK:L,KH:J,instreamAdPlayerOverlayRenderer:K,instreamAdPlayerUnderlayRenderer:q,adPlacementConfig:D,videoLengthSeconds:C,wm:M,inPlayerLayoutId:Nf(X.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Nf(X.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; bwz=function(X,J,L,x,Q,K,q,D,C,M,y,n,V,H,O){x=xw(x,"SLOT_TYPE_PLAYER_BYTES");X=uHm(Q,X,q,L,x,C,M);if(X instanceof m)return X;var u;M=(u=Nf(X.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:u.layoutId;if(!M)return new m("Invalid adNotify layout");J=oyY(M,Q,K,L,D,J,C,y,n,V,H,O,q);return J instanceof m?J:[X].concat(g.nR(J))}; oyY=function(X,J,L,x,Q,K,q,D,C,M,y,n,V){L=SsW(J,L,x,K,q,D,C,M,y,n,V);if(L instanceof m)return L;X=PER(J,X,q,Q,L);return X instanceof m?X:[].concat(g.nR(X.Zt),[X.nV])}; Eye=function(X,J,L,x,Q,K,q,D,C,M,y,n,V,H){J=SsW(X,J,L,Q,K,D,C,M,y,n,V,H);if(J instanceof m)return J;X=cLS(X,L,K,q,x,D.Zw,J);return X instanceof m?X:X.Zt.concat(X.nV)}; SsW=function(X,J,L,x,Q,K,q,D,C,M,y,n){var V=HZ(x,L,M);return V instanceof BH?new m(V):M.Z.G().experiments.Mi("html5_refactor_in_player_slot_generation")?function(H){var O=new FA(0,[V.VN]);H=Ysm(J,V.layoutId,V.fq,L,Oy(V.playerVars,V.Td,K,C,O),V.VN,Q,O,q(H),D.get(V.fq.externalVideoId),n);O=[];if(V.fq.playerOverlay.instreamAdPlayerOverlayRenderer){var u=dlW(H);if(!u)return qH("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,H),{layout:H,Zt:[]}; O=[hom(X,u.contentCpn,u.Gu,function(Y){return a8(J,Y.slotId,"core",u,Xz(y,Y))},u.inPlayerSlotId)].concat(g.nR(O)); if(u.instreamAdPlayerUnderlayRenderer&&wa(M)){var S=u.instreamAdPlayerUnderlayRenderer;O=[zo8(X,u.contentCpn,u.Gu,function(Y){return WvI(J,Y.slotId,S,u.adPlacementConfig,u.Gu,Xz(y,Y))})].concat(g.nR(O))}}return{layout:H, Zt:O}}:function(H){var O=new FA(0,[V.VN]); return{layout:Ysm(J,V.layoutId,V.fq,L,Oy(V.playerVars,V.Td,K,C,O),V.VN,Q,O,q(H),D.get(V.fq.externalVideoId),n),Zt:[]}}}; HZ=function(X,J,L){if(!X.playerVars)return new BH("No playerVars available in InstreamVideoAdRenderer.");var x,Q;if(X.elementId==null||X.playerVars==null||X.playerOverlay==null||((x=X.playerOverlay)==null?void 0:x.instreamAdPlayerOverlayRenderer)==null&&((Q=X.playerOverlay)==null?void 0:Q.playerOverlayLayoutRenderer)==null||X.pings==null||X.externalVideoId==null)return new BH("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:X});x=ZB(X.playerVars);Q=Number(x.length_seconds); isNaN(Q)&&(Q=0,qH("Expected valid length seconds in player vars but got NaN"));if(L.TK(J.kind==="AD_PLACEMENT_KIND_START")){if(X.layoutId===void 0)return new BH("Expected server generated layout ID in instreamVideoAdRenderer");J=X.layoutId}else J=X.elementId;return{layoutId:J,fq:X,playerVars:x,Td:X.playerVars,VN:Q}}; Oy=function(X,J,L,x,Q){X.iv_load_policy=x;J=ZB(J);if(J.cta_conversion_urls)try{X.cta_conversion_urls=JSON.parse(J.cta_conversion_urls)}catch(K){qH(K)}L.Az&&(X.ctrl=L.Az);L.Jb&&(X.ytr=L.Jb);L.oJ&&(X.ytrcc=L.oJ);L.isMdxPlayback&&(X.mdx="1");X.vvt&&(X.vss_credentials_token=X.vvt,L.SQ&&(X.vss_credentials_token_type=L.SQ),L.mdxEnvironment&&(X.mdx_environment=L.mdxEnvironment));I8(X,Q);return X}; pzY=function(X){var J=new Map;X=g.d(X);for(var L=X.next();!L.done;L=X.next())(L=L.value.renderer.remoteSlotsRenderer)&&L.hostElementId&&J.set(L.hostElementId,L);return J}; tE=function(X){return X.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; rLA=function(X){return X!=null}; Fvv=function(X,J,L,x,Q,K,q,D,C,M,y,n,V,H){for(var O=[],u=g.d(X),S=u.next();!S.done;S=u.next())if(S=S.value,!PVA(S)&&!zVS(S)){var Y=tE(S)&&!!S.slotEntryTrigger.beforeContentVideoIdStartedTrigger,h=C.TK(Y),W=vym(S,M,x,L.sS,h);if(W instanceof m)return W;var T=void 0,l={slotId:S.adSlotMetadata.slotId,slotType:S.adSlotMetadata.slotType,slotPhysicalPosition:(T=S.adSlotMetadata.slotPhysicalPosition)!=null?T:1,U6:"core",slotEntryTrigger:W.slotEntryTrigger,slotFulfillmentTriggers:W.slotFulfillmentTriggers, slotExpirationTriggers:W.slotExpirationTriggers},Jo=g.F(S.fulfillmentContent.fulfilledLayout,Fo);if(Jo){if(!e_(Jo))return new m("Invalid PlayerBytesAdLayoutRenderer");T=n&&!(tE(S)&&S.slotEntryTrigger.beforeContentVideoIdStartedTrigger);W=W.slotFulfillmentTriggers.some(function(U){return U instanceof ZV}); h=T?j9z(l,S.adSlotMetadata.triggerEvent,Jo,L,x,K,M,X,h,V,W,H):TkA(l,S.adSlotMetadata.triggerEvent,Jo,J,L,x,Q,K,q,D,C,M,X,y,h,S.adSlotMetadata.triggeringSourceLayoutId);if(h instanceof m)return h;W=[];tE(S)&&W.push(new fg({Lj:tE(S)&&!!S.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));T&&W.push(new w1({}));L.Zw&&W.push(new WH({}));W.push(new T_(Y));S=Object.assign({},l,{clientMetadata:new sj(W),fulfilledLayout:h.layout,adSlotLoggingData:S.adSlotMetadata.adSlotLoggingData});O.push.apply(O,g.nR(h.Zt)); O.push(S)}else if(Y=g.F(S.fulfillmentContent.fulfilledLayout,No)){if(!S4z(Y))return new m("Invalid PlayerUnderlayAdLayoutRenderer");Y=G5Y(Y,x,L.sS,K,l,S.adSlotMetadata.triggerEvent,S.adSlotMetadata.triggeringSourceLayoutId);if(Y instanceof m)return Y;S=Object.assign({},l,{clientMetadata:new sj([]),fulfilledLayout:Y,adSlotLoggingData:S.adSlotMetadata.adSlotLoggingData});O.push(S)}else if(Y=g.F(S.fulfillmentContent.fulfilledLayout,ERZ)){if(!HFW(Y))return new m("Invalid AboveFeedAdLayoutRenderer");Y= f1Z(Y,x,L.sS,K,l,S.adSlotMetadata.triggerEvent,S.adSlotMetadata.triggeringSourceLayoutId);if(Y instanceof m)return Y;S=Object.assign({},l,{clientMetadata:new sj([]),fulfilledLayout:Y,adSlotLoggingData:S.adSlotMetadata.adSlotLoggingData});O.push(S)}else if(Y=g.F(S.fulfillmentContent.fulfilledLayout,Y4z)){if(!Oe(Y.adLayoutMetadata)||!g.F(Y.renderingContent,aX))return new m("Invalid BelowPlayerAdLayoutRenderer");Y=f1Z(Y,x,L.sS,K,l,S.adSlotMetadata.triggerEvent,S.adSlotMetadata.triggeringSourceLayoutId); if(Y instanceof m)return Y;S=Object.assign({},l,{clientMetadata:new sj([]),fulfilledLayout:Y,adSlotLoggingData:S.adSlotMetadata.adSlotLoggingData});O.push(S)}else if(Y=g.F(S.fulfillmentContent.fulfilledLayout,Ue)){if(!RX(Y))return new m("Invalid PlayerBytesSequenceItemAdLayoutRenderer");Y=eoO(Y,x,L.sS,K,l,S.adSlotMetadata.triggerEvent);if(Y instanceof m)return Y;S=Object.assign({},l,{clientMetadata:new sj([]),fulfilledLayout:Y,adSlotLoggingData:S.adSlotMetadata.adSlotLoggingData});O.push(S)}else return new m("Unable to retrieve a client slot ["+ l.slotType+"] from a given AdSlotRenderer")}return O}; eoO=function(X,J,L,x,Q,K){var q={layoutId:X.adLayoutMetadata.layoutId,layoutType:X.adLayoutMetadata.layoutType,U6:"core"};J=da(X,J,L);return J instanceof m?J:(L=g.F(X.renderingContent,lg))&&L.pings?Object.assign({},q,{renderingContent:X.renderingContent,yl:Me(L.pings)},J,{B4:Xz(x,Q)(q),clientMetadata:new sj([new GS(u5(K))]),adLayoutLoggingData:X.adLayoutMetadata.adLayoutLoggingData}):new m("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; f1Z=function(X,J,L,x,Q,K,q){var D={layoutId:X.adLayoutMetadata.layoutId,layoutType:X.adLayoutMetadata.layoutType,U6:"core"};J=da(X,J,L);if(J instanceof m)return J;L=[];L.push(new GS(u5(K)));K==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&q!==void 0&&L.push(new iJ(q));return Object.assign({},D,{renderingContent:X.renderingContent,yl:new Map([["impression",l1e(X)]])},J,{B4:Xz(x,Q)(D),clientMetadata:new sj(L),adLayoutLoggingData:X.adLayoutMetadata.adLayoutLoggingData})}; G5Y=function(X,J,L,x,Q,K,q){if(X.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(q=g.F(X.renderingContent,Bh))if(q=g.F(q.sidePanel,oRR)){var D={layoutId:X.adLayoutMetadata.layoutId,layoutType:X.adLayoutMetadata.layoutType,U6:"core"};J=da(X,J,L);X=J instanceof m?J:Object.assign({},D,{renderingContent:X.renderingContent,yl:new Map([["impression",q.impressionPings||[]],["resume",q.resumePings||[]]])},J,{B4:Xz(x,Q)(D),clientMetadata:new sj([new GS(u5(K))]),adLayoutLoggingData:X.adLayoutMetadata.adLayoutLoggingData})}else X= new m("DismissablePanelTextPortraitImageRenderer is missing");else X=new m("SqueezebackPlayerSidePanelRenderer is missing");else X.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.F(X.renderingContent,tqR)?(q={layoutId:X.adLayoutMetadata.layoutId,layoutType:X.adLayoutMetadata.layoutType,U6:"core"},J=da(X,J,L),X=J instanceof m?J:Object.assign({},q,{renderingContent:X.renderingContent,yl:new Map},J,{B4:Xz(x,Q)(q),clientMetadata:new sj([new GS(u5(K))]),adLayoutLoggingData:X.adLayoutMetadata.adLayoutLoggingData})): X=new m("CounterfactualRenderer is missing"):X.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?X=new m("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):X.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?X=new m("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):X.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.F(X.renderingContent,se)?(K={layoutId:X.adLayoutMetadata.layoutId,layoutType:X.adLayoutMetadata.layoutType, U6:"core"},J=da(X,J,L),X=J instanceof m?J:q?Object.assign({},K,{renderingContent:X.renderingContent,yl:new Map},J,{B4:Xz(x,Q)(K),clientMetadata:new sj([new iJ(q)]),adLayoutLoggingData:X.adLayoutMetadata.adLayoutLoggingData}):new m("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):X=new m("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):X.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.F(X.renderingContent,dRP)? (K={layoutId:X.adLayoutMetadata.layoutId,layoutType:X.adLayoutMetadata.layoutType,U6:"core"},J=da(X,J,L),X=J instanceof m?J:Object.assign({},K,{renderingContent:X.renderingContent,yl:new Map([])},J,{B4:Xz(x,Q)(K),adLayoutLoggingData:X.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new sj([])})):X=new m("AdsEngagementPanelSectionListViewModel is missing"):X=new m("LayoutType ["+X.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return X}; j9z=function(X,J,L,x,Q,K,q,D,C,M,y,n){if((n==null?void 0:n.Tw)===void 0||(n==null?void 0:n.Ph)===void 0)return new m("Cached ad break range from cue point is missing");var V=da(L,Q,x.sS);if(V instanceof m)return V;V={layoutExitMuteTriggers:[],layoutExitNormalTriggers:V.layoutExitNormalTriggers,layoutExitSkipTriggers:[],W9:[],layoutExitUserInputSubmittedTriggers:[]};if(g.F(L.renderingContent,j_))return X=RoZ(X,J,L,V,Q,K,D,C,x.sS,q,n.Tw,n.Ph),X instanceof m?X:X.Wv===void 0?new m("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:X.layout,Zt:[X.Wv]};var H=g.F(L.renderingContent,rd);if(H){if(!Oe(L.adLayoutMetadata))return new m("Invalid ad layout metadata");if(!vh(H))return new m("Invalid sequential layout");H=H.sequentialLayouts.map(function(O){return O.playerBytesAdLayoutRenderer}); X=BkA(X,J,L,V,H,Q,x,K,q,C,D,M,n.Tw,n.Ph,y);return X instanceof m?X:{layout:X.XG,Zt:X.Zt}}return new m("Not able to convert a sequential layout")}; BkA=function(X,J,L,x,Q,K,q,D,C,M,y,n,V,H,O){var u=s9z(Q,V,H);if(u instanceof m)return u;var S=[],Y=[];u=g.d(u);for(var h=u.next();!h.done;h=u.next()){var W=h.value;h=X;var T=Q[W.UX],l=W,Jo=J;W=K;var U=q,QP=D,Iz=C,qS=M,$e=y,k=o8(T);if(k instanceof m)h=k;else{var cW={layoutId:T.adLayoutMetadata.layoutId,layoutType:T.adLayoutMetadata.layoutType,U6:"adapter"};l=NkZ(Jo,T,l,W);l instanceof m?h=l:(h=Object.assign({},cW,b5,{yl:k,renderingContent:T.renderingContent,clientMetadata:new sj(l),B4:Xz(QP,h)(cW), adLayoutLoggingData:T.adLayoutMetadata.adLayoutLoggingData}),h=(T=Sz($e,h,W,U.sS,QP,Iz,qS,void 0,!0))?T instanceof m?T:{layout:h,Wv:T}:new m("Expecting associatedInPlayerSlot"))}if(h instanceof m)return h;S.push(h.layout);Y.push(h.Wv)}Q={layoutId:L.adLayoutMetadata.layoutId,layoutType:L.adLayoutMetadata.layoutType,U6:"core"};J=[new uJ(Number(L.driftRecoveryMs)),new HH(V),new Oj(H),new GS(u5(J)),new jO(n),new w1({})];O&&J.push(new eO({}));return{XG:Object.assign({},Q,x,{Jv:S,yl:new Map,clientMetadata:new sj(J), B4:Xz(D,X)(Q)}),Zt:Y}}; RoZ=function(X,J,L,x,Q,K,q,D,C,M,y,n){if(!e_(L))return new m("Invalid PlayerBytesAdLayoutRenderer");var V=o8(L);if(V instanceof m)return V;var H={layoutId:L.adLayoutMetadata.layoutId,layoutType:L.adLayoutMetadata.layoutType,U6:"core"},O=g.F(L.renderingContent,j_);if(!O)return new m("Invalid rendering content for DAI media layout");O=Vo(O,!1);y={zf:O,UX:0,Fl:y,ix:Math.min(y+O.videoLengthSeconds*1E3,n),vu:new FA(0,[O.videoLengthSeconds])};var u;n=(u=Number(L.driftRecoveryMs))!=null?u:void 0;J=NkZ(J, L,y,Q,n);if(J instanceof m)return J;X=Object.assign({},H,x,{yl:V,renderingContent:L.renderingContent,clientMetadata:new sj(J),B4:Xz(K,X)(H),adLayoutLoggingData:L.adLayoutMetadata.adLayoutLoggingData});return(Q=Sz(q,X,Q,C,K,M,D,void 0,!0))?Q instanceof m?Q:{layout:X,Wv:Q}:new m("Expecting associatedInPlayerSlot")}; TkA=function(X,J,L,x,Q,K,q,D,C,M,y,n,V,H,O,u){var S=da(L,K,Q.sS);if(S instanceof m)return S;if(g.F(L.renderingContent,j_)){C=Ulz([L],Q,C);if(C instanceof m)return C;if(C.length!==1)return new m("Only expected one media layout.");X=mlS(X,J,L,S,C[0],void 0,"core",x,K,q,D,M,V,H,O,Q.sS,n,void 0,u);return X instanceof m?X:{layout:X.layout,Zt:X.Wv?[X.Wv]:[]}}var Y=g.F(L.renderingContent,rd);if(Y){if(!Oe(L.adLayoutMetadata))return new m("Invalid ad layout metadata");if(!vh(Y))return new m("Invalid sequential layout"); Y=Y.sequentialLayouts.map(function(h){return h.playerBytesAdLayoutRenderer}); X=k5W(X,J,L.adLayoutMetadata,S,Y,x,K,Q,C,q,D,M,y,n,O,V,H,u);return X instanceof m?X:{layout:X.XG,Zt:X.Zt}}return new m("Not able to convert a sequential layout")}; k5W=function(X,J,L,x,Q,K,q,D,C,M,y,n,V,H,O,u,S,Y){var h=new lY({current:null}),W=Ulz(Q,D,C);if(W instanceof m)return W;C=[];for(var T=[],l=void 0,Jo=0;Jo0&&(Jo.push(Y),Jo.push(new F5(l.adPodSkipTarget)));(K=M.get(l.externalVideoId))&&Jo.push(new PH(K));K=Jo}else K= new m("Invalid vod media renderer")}if(K instanceof m)return K;X=Object.assign({},q,x,{yl:W,renderingContent:L.renderingContent,clientMetadata:new sj(K),B4:Xz(y,X)(q),adLayoutLoggingData:L.adLayoutMetadata.adLayoutLoggingData});L=g.F(L.renderingContent,j_);if(!L||!pa(L))return new m("Invalid meida renderer");n=$s(n,L.externalVideoId);n.instreamVideoAdRenderer=L;n.lE="AD_PLACEMENT_KIND_START";return H?(C=Sz(V,X,C,u,y,S,O,Y,!1),C instanceof m?C:Xjv(X.layoutId,V)&&C?{layout:Object.assign({},X,{clientMetadata:new sj(K.concat(new kY(C)))})}: {layout:X,Wv:C}):{layout:X}}; Zwm=function(X,J,L,x,Q){if(!e_(J))return new m("Invalid PlayerBytesAdLayoutRenderer");var K=g.F(J.renderingContent,mP);if(!K||K.durationMilliseconds===void 0)return new m("Invalid endcap renderer");var q={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,U6:"adapter"};x=[new Ej(K.durationMilliseconds),new z_({impressionCommands:void 0,abandonCommands:K.abandonCommands?[{commandExecutorCommand:K.abandonCommands}]:void 0,completeCommands:K.completionCommands}),new GS(x), new Kg("LAYOUT_TYPE_ENDCAP")];if(Q){x.push(new eD(Q.vu.adPodIndex-1));x.push(new aA(Q.vu.adPodIndex));var D;x.push(new F5((D=Q.adPodSkipTarget)!=null?D:-1))}return Object.assign({},q,b5,{renderingContent:J.renderingContent,clientMetadata:new sj(x),yl:K.skipPings?new Map([["skip",K.skipPings]]):new Map,B4:Xz(L,X)(q),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData})}; Sz=function(X,J,L,x,Q,K,q,D,C){X=X.filter(function(y){return y.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&y.adSlotMetadata.triggeringSourceLayoutId===J.layoutId}); if(X.length!==0){if(X.length!==1)return new m("Invalid InPlayer slot association for the given PlayerBytes layout");X=X[0];q=vym(X,K,L,x,q);if(q instanceof m)return q;var M;K={slotId:X.adSlotMetadata.slotId,slotType:X.adSlotMetadata.slotType,slotPhysicalPosition:(M=X.adSlotMetadata.slotPhysicalPosition)!=null?M:1,U6:"core",slotEntryTrigger:q.slotEntryTrigger,slotFulfillmentTriggers:q.slotFulfillmentTriggers,slotExpirationTriggers:q.slotExpirationTriggers};M=g.F(X.fulfillmentContent.fulfilledLayout, ctW);if(!M||!wQI(M))return new m("Invalid InPlayerAdLayoutRenderer");q={layoutId:M.adLayoutMetadata.layoutId,layoutType:M.adLayoutMetadata.layoutType,U6:"core"};L=da(M,L,x);if(L instanceof m)return L;x=[];C&&x.push(new w1({}));if(M.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")x.push.apply(x,g.nR(JqW(X.adSlotMetadata.triggerEvent,J)));else if(M.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")x.push(new GS(u5(X.adSlotMetadata.triggerEvent))),D&&x.push(D);else return new m("Not able to parse an SDF InPlayer layout"); Q=Object.assign({},q,L,{renderingContent:M.renderingContent,yl:new Map,B4:Xz(Q,K)(q),clientMetadata:new sj(x),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},K,{fulfilledLayout:Q,clientMetadata:new sj([])})}}; JqW=function(X,J){var L=[];L.push(new GS(u5(X)));L.push(new iJ(J.layoutId));(X=Nf(J.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&L.push(new g1(X));(X=Nf(J.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&L.push(new lY(X));(X=Nf(J.clientMetadata,"metadata_type_remote_slots_data"))&&L.push(new PH(X));(X=Nf(J.clientMetadata,"metadata_type_ad_next_params"))&&L.push(new hq(X));(X=Nf(J.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&L.push(new zS(X));(X= Nf(J.clientMetadata,"metadata_type_ad_pod_info"))&&L.push(new fb(X));(J=Nf(J.clientMetadata,"metadata_type_ad_video_id"))&&L.push(new Rp(J));return L}; ALz=function(X,J,L,x,Q,K){function q(M){return PZ(J,M)} var D=x.qw.inPlayerSlotId,C={layoutId:x.qw.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",U6:"core"};L={slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,U6:"core",slotEntryTrigger:new NT(q,X),slotFulfillmentTriggers:[new gd(q,D)],slotExpirationTriggers:[new DA(q,D),new Ka(q,L)]};X=Object.assign({},C,{layoutExitNormalTriggers:[new mc(q,X)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],W9:[],yl:new Map,clientMetadata:new sj([new Aq(x.qw), new GS(x.adPlacementConfig),Q]),B4:Xz(K,L)(C),adLayoutLoggingData:x.qw.adLayoutLoggingData});return Object.assign({},L,{clientMetadata:new sj([new oA(X)])})}; Xjv=function(X,J){J=g.d(J);for(var L=J.next();!L.done;L=J.next())if(L=L.value,L.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var x=g.F(L.fulfillmentContent.fulfilledLayout,No);if(x&&(x=g.F(x.renderingContent,Bh))&&x.associatedPlayerBytesLayoutId===X)return L}}; vym=function(X,J,L,x,Q){var K=LSO(qa(X.slotEntryTrigger,L,x),Q,X,J);if(K instanceof m)return K;for(var q=[],D=g.d(X.slotFulfillmentTriggers),C=D.next();!C.done;C=D.next()){C=qa(C.value,L,x);if(C instanceof m)return C;q.push(C)}q=x0z(q,Q,X,J);J=[];X=g.d(X.slotExpirationTriggers);for(Q=X.next();!Q.done;Q=X.next()){Q=qa(Q.value,L,x);if(Q instanceof m)return Q;J.push(Q)}return{slotEntryTrigger:K,slotFulfillmentTriggers:q,slotExpirationTriggers:J}}; LSO=function(X,J,L,x){return J&&L.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&X instanceof lR?new eM(function(Q){return PZ(x,Q)},L.adSlotMetadata.slotId):X}; x0z=function(X,J,L,x){return J&&L.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?X.map(function(Q){return Q instanceof gd?new Mo(function(K){return PZ(x,K)},L.adSlotMetadata.slotId):Q}):X}; da=function(X,J,L){for(var x=[],Q=g.d(X.layoutExitNormalTriggers||[]),K=Q.next();!K.done;K=Q.next()){K=qa(K.value,J,L);if(K instanceof m)return K;x.push(K)}Q=[];K=g.d(X.layoutExitSkipTriggers||[]);for(var q=K.next();!q.done;q=K.next()){q=qa(q.value,J,L);if(q instanceof m)return q;Q.push(q)}K=[];q=g.d(X.layoutExitMuteTriggers||[]);for(var D=q.next();!D.done;D=q.next()){D=qa(D.value,J,L);if(D instanceof m)return D;K.push(D)}q=[];X=g.d(X.layoutExitUserInputSubmittedTriggers||[]);for(D=X.next();!D.done;D= X.next()){D=qa(D.value,J,L);if(D instanceof m)return D;q.push(D)}return{layoutExitNormalTriggers:x,layoutExitSkipTriggers:Q,layoutExitMuteTriggers:K,layoutExitUserInputSubmittedTriggers:q,W9:[]}}; o8=function(X){var J=g.F(X.renderingContent,j_);if(J==null?0:J.pings)return Me(J.pings);X=g.F(X.renderingContent,mP);return(X==null?0:X.skipPings)?new Map([["skip",X.skipPings]]):new Map}; NkZ=function(X,J,L,x,Q){J=g.F(J.renderingContent,j_);if(!J)return new m("Invalid rendering content for DAI media layout");X=[new Bj(x),new Mf(L.zf.videoLengthSeconds),new yx(L.zf.playerVars),new HH(L.Fl),new Oj(L.ix),new aA(L.UX),new GS(u5(X)),new Rp(L.zf.adVideoId),new fb(L.vu),J.sodarExtensionData&&new Vx(J.sodarExtensionData),new g1({current:null}),new w1({}),new r1(C2(J.pings))].filter(rLA);Q!==void 0&&X.push(new uJ(Q));return X}; s9z=function(X,J,L){X=X.map(function(C){return Vo(g.F(C.renderingContent,j_),!1)}); var x=X.map(function(C){return C.videoLengthSeconds}),Q=x.map(function(C,M){return new FA(M,x)}),K=J,q=L,D=[]; X.forEach(function(C,M){q=Math.min(K+C.videoLengthSeconds*1E3,L);I8(C.playerVars,Q[M]);D.push({zf:C,Fl:K,ix:q,UX:M,vu:Q[M]});K=q}); return D}; Ulz=function(X,J,L){for(var x=[],Q=g.d(X),K=Q.next();!K.done;K=Q.next())if(K=g.F(K.value.renderingContent,j_)){if(!pa(K))return new m("Invalid vod media renderer");x.push(ib8(K))}Q=x.map(function(n){return n.VN}); K=[];for(var q=0,D=0;D0?qS:-1;else if(cW=g.F(k,mP)){k= nYz(X,J,L,cW,K,u,D,U,qS);if(k instanceof m){H=k;break a}k=k(V);S.push(k.Qq);Y=[].concat(g.nR(k.K$),g.nR(Y));h=[].concat(g.nR(k.R_),g.nR(h));k.Wv&&(Iz=[k.Wv].concat(g.nR(Iz)))}else if(cW=g.F(k,GP)){if(H===void 0){H=new m("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:cW});break a}k=ObO(X,J,L,K,cW,Jo,D,H,u,vf(y,"supports_multi_step_on_desktop"));if(k instanceof m){H=k;break a}k=k(V);S.push(k.Qq);k.Wv&&Iz.push(k.Wv);Y=[].concat(g.nR(k.K$),g.nR(Y)); h=[].concat(g.nR(k.R_),g.nR(h));W=[].concat(g.nR(k.kS),g.nR(W));T=[].concat(g.nR(k.P8),g.nR(T));l=[Jo].concat(g.nR(l))}else if(k=g.F(k,fa)){k=ayW(X,J,L,K,k,Jo,D,u);if(k instanceof m){H=k;break a}k=k(V);S.push(k.Qq);k.Wv&&Iz.push(k.Wv);h=[].concat(g.nR(k.R_),g.nR(h))}else{H=new m("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}H={Jv:S,layoutExitSkipTriggers:Y,layoutExitUserInputSubmittedTriggers:W,W9:T,layoutExitMuteTriggers:h,uR:l,Zt:Iz}}}else a:if(u=PY8(x,L,y),u instanceof m)H= u;else{S=0;Y=[];h=[];W=[];T=[];l=[];Jo=[];U=new Dp({current:null});QP=new lY({current:null});Iz=!1;$e=[];qS=-1;O=g.d(x);for(k=O.next();!k.done;k=O.next())if(k=k.value,g.F(k,TP)){k=VDm(J,L,g.F(k,TP),D);if(k instanceof m){H=k;break a}k=k(V);Y.push(k.Qq);h=[].concat(g.nR(k.K$),g.nR(h));W=[].concat(g.nR(k.R_),g.nR(W));k.Wv&&($e=[k.Wv].concat(g.nR($e)))}else if(g.F(k,j_)){qS=HZ(g.F(k,j_),L,y);if(qS instanceof BH){H=new m(qS);break a}k=new FA(S,u);k=cqv(J,qS.layoutId,qS.fq,L,Oy(qS.playerVars,qS.Td,q,M, k),qS.VN,K,k,D(V),QP,C.get(qS.fq.externalVideoId),void 0,n);S++;Y.push(k.Qq);h=[].concat(g.nR(k.K$),g.nR(h));W=[].concat(g.nR(k.R_),g.nR(W));Iz||(Jo.push(QP),Iz=!0);qS=(qS=qS.fq.adPodSkipTarget)&&qS>0?qS:-1}else if(g.F(k,mP)){k=nYz(X,J,L,g.F(k,mP),K,S,D,QP,qS);if(k instanceof m){H=k;break a}k=k(V);Y.push(k.Qq);h=[].concat(g.nR(k.K$),g.nR(h));W=[].concat(g.nR(k.R_),g.nR(W));k.Wv&&($e=[k.Wv].concat(g.nR($e)))}else if(g.F(k,GP)){if(H===void 0){H=new m("Composite Survey must already have a Survey Bundle with required metadata.", {instreamSurveyAdRenderer:g.F(k,GP)});break a}k=ObO(X,J,L,K,g.F(k,GP),U,D,H,S,vf(y,"supports_multi_step_on_desktop"));if(k instanceof m){H=k;break a}k=k(V);Y.push(k.Qq);k.Wv&&$e.push(k.Wv);h=[].concat(g.nR(k.K$),g.nR(h));W=[].concat(g.nR(k.R_),g.nR(W));T=[].concat(g.nR(k.kS),g.nR(T));l=[].concat(g.nR(k.P8),g.nR(l));Jo=[U].concat(g.nR(Jo))}else if(g.F(k,fa)){k=ayW(X,J,L,K,g.F(k,fa),U,D,S);if(k instanceof m){H=k;break a}k=k(V);Y.push(k.Qq);k.Wv&&$e.push(k.Wv);W=[].concat(g.nR(k.R_),g.nR(W))}else{H= new m("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}H={Jv:Y,layoutExitSkipTriggers:h,layoutExitUserInputSubmittedTriggers:T,W9:l,layoutExitMuteTriggers:W,uR:Jo,Zt:$e}}H instanceof m?V=H:(l=V.slotId,u=H.Jv,S=H.layoutExitSkipTriggers,Y=H.layoutExitMuteTriggers,h=H.layoutExitUserInputSubmittedTriggers,W=H.uR,V=D(V),T=Q?Q.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",l=Q?Q.layoutId:jN(J.K.get(),T,l),Jo={layoutId:l,layoutType:T,U6:"core"},V={layout:{layoutId:l,layoutType:T,yl:new Map, layoutExitNormalTriggers:[new QB(J.L,l)],layoutExitSkipTriggers:S,layoutExitMuteTriggers:Y,layoutExitUserInputSubmittedTriggers:h,W9:[],U6:"core",clientMetadata:new sj([new $8(u)].concat(g.nR(W))),B4:V(Jo)},Zt:H.Zt});return V}}; PY8=function(X,J,L){var x=[];X=g.d(X);for(var Q=X.next();!Q.done;Q=X.next())if(Q=Q.value,g.F(Q,j_)){Q=HZ(g.F(Q,j_),J,L);if(Q instanceof BH)return new m(Q);x.push(Q.VN)}return x}; YCA=function(X,J,L,x,Q,K,q,D){if(!pQP(L,D===void 0?!1:D))return new m("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:L});var C=Ma(L);if(C<=0)return new m("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:L});var M=new Dp({current:null}),y=Q9m(X,J,L,M,x,K,q);return EYO(X,x,K,C,Q,function(n,V){var H=n.slotId,O=yo(L);n=q(n);var u,S=(u=hE(J,x,L.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?u: jN(J.K.get(),"LAYOUT_TYPE_MEDIA_BREAK",H);H={layoutId:S,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",U6:"core"};u=y(S,V);var Y=Nf(u.clientMetadata,"metadata_type_fulfilled_layout");Y||qH("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");O=[new GS(x),new Ej(C),new z_(O),M];Y&&O.push(new Kg(Y.layoutType));return{K9I:{layoutId:S,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",yl:new Map,layoutExitNormalTriggers:[new QB(J.L,S)],layoutExitSkipTriggers:[new IX(J.L, V.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new na(J.L,V.layoutId)],W9:[],U6:"core",clientMetadata:new sj(O),B4:n(H)},Pp:u}})}; hcm=function(X){if(!joo(X))return!1;var J=g.F(X.adVideoStart,vZ);return J?g.F(X.linearAd,j_)&&bg(J)?!0:(qH("Invalid Sandwich with notify"),!1):!1}; zcm=function(X){if(X.linearAds==null)return!1;X=g.F(X.adStart,vZ);return X?bg(X)?!0:(qH("Invalid LASR with notify"),!1):!1}; WSz=function(X){if(!vRA(X))return!1;X=g.F(X.adStart,vZ);return X?bg(X)?!0:(qH("Invalid LASR with notify"),!1):!1}; jz=function(X,J,L,x,Q,K,q,D,C,M){this.T=X;this.K=J;this.L=L;this.h0=x;this.R0=Q;this.N=K;this.wI=q;this.mf=D;this.bU=C;this.loadPolicy=M===void 0?1:M}; Qo=function(X,J,L,x,Q,K,q,D,C,M){var y=[];if(J.length===0&&x.length===0&&L.length===0)return y;J=J.filter(Wh);var n=L.filter(hVz),V=x.filter(Wh),H=new Map,O=pzY(J),u=L.some(function(rI){var Xv;return(rI==null?void 0:(Xv=rI.adSlotMetadata)==null?void 0:Xv.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),S=L.some(function(rI){var Xv; return(rI==null?void 0:(Xv=rI.adSlotMetadata)==null?void 0:Xv.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),Y=L.some(function(rI){var Xv; return(rI==null?void 0:(Xv=rI.adSlotMetadata)==null?void 0:Xv.slotType)==="SLOT_TYPE_IN_PLAYER"}),h=L.some(function(rI){var Xv,T0; return(rI==null?void 0:(Xv=rI.adSlotMetadata)==null?void 0:Xv.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(rI==null?void 0:(T0=rI.adSlotMetadata)==null?void 0:T0.slotType)==="SLOT_TYPE_ABOVE_FEED"}); L=L.some(function(rI){var Xv;return(rI==null?void 0:(Xv=rI.adSlotMetadata)==null?void 0:Xv.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(u||S||Y||h||L)M=Fvv(n,J,D,Q,O,X.R0.get(),X.loadPolicy,H,X.h0.get(),X.T.get(),Y,q,C,M),M instanceof m?qH(M,void 0,void 0,{contentCpn:Q}):y.push.apply(y,g.nR(M));M=g.d(J);for(L=M.next();!L.done;L=M.next())L=L.value,S=pjW(X,H,L,Q,K,q,u,D,O,C,n),S instanceof m?qH(S,void 0,void 0,{renderer:L.renderer,config:L.config.adPlacementConfig,kind:L.config.adPlacementConfig.kind,contentCpn:Q,daiEnabled:q}):y.push.apply(y,g.nR(S));rqW(X.h0.get())||(K=vYP(X,V,Q,D,O,H),y.push.apply(y,g.nR(K)));if(X.N===null||q&& !D.UE){var W,T,l;X=D.Zw&&J.length===1&&((W=J[0].config)==null?void 0:(T=W.adPlacementConfig)==null?void 0:T.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((l=J[0].renderer)==null?void 0:l.adBreakServiceRenderer);if(!y.length&&!X){var Jo,U,QP,Iz;qH("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":J.length,contentCpn:Q,"first APR kind":(Jo=J[0])==null?void 0:(U=Jo.config)==null?void 0:(QP=U.adPlacementConfig)==null?void 0:QP.kind,renderer:(Iz=J[0])== null?void 0:Iz.renderer})}return y}W=x.filter(Wh);y.push.apply(y,g.nR(Lvm(H,W,X.K.get(),X.N,Q,u)));if(!y.length){var qS,$e,k,cW;qH("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":J.length,contentCpn:Q,daiEnabled:q.toString(),"first APR kind":(qS=J[0])==null?void 0:($e=qS.config)==null?void 0:(k=$e.adPlacementConfig)==null?void 0:k.kind,renderer:(cW=J[0])==null?void 0:cW.renderer})}return y}; vYP=function(X,J,L,x,Q,K){function q(V){return Xz(X.R0.get(),V)} var D=[];J=g.d(J);for(var C=J.next();!C.done;C=J.next()){C=C.value;var M=C.renderer,y=M.sandwichedLinearAdRenderer,n=M.linearAdSequenceRenderer;y&&hcm(y)?(qH("Found AdNotify with SandwichedLinearAdRenderer"),n=g.F(y.adVideoStart,vZ),y=g.F(y.linearAd,j_),DW(K,M,C.config.adPlacementConfig.kind),M=void 0,n=oyY((M=n)==null?void 0:M.layout.layoutId,X.K.get(),X.L.get(),C.config.adPlacementConfig,C.adSlotLoggingData,y,L,x,q,Q,X.loadPolicy,X.h0.get(),X.R0.get()),n instanceof m?qH(n):D.push.apply(D,g.nR(n))): n&&(!n.adLayoutMetadata&&zcm(n)||n.adLayoutMetadata&&WSz(n))&&(qH("Found AdNotify with LinearAdSequenceRenderer"),DW(K,M,C.config.adPlacementConfig.kind),M=void 0,y=wjm((M=g.F(n.adStart,vZ))==null?void 0:M.layout.layoutId,X.K.get(),X.L.get(),C.config.adPlacementConfig,C.adSlotLoggingData,n.linearAds,Oe(n.adLayoutMetadata)?n.adLayoutMetadata:void 0,L,x,q,Q,X.loadPolicy,X.h0.get()),y instanceof m?qH(y):D.push.apply(D,g.nR(y)))}return D}; pjW=function(X,J,L,x,Q,K,q,D,C,M,y){function n(Y){return Xz(X.R0.get(),Y)} var V=L.renderer,H=L.config.adPlacementConfig,O=H.kind,u=L.adSlotLoggingData,S=D.UE&&O==="AD_PLACEMENT_KIND_START";S=K&&!S;if(V.adsEngagementPanelRenderer!=null)return CB(J,L.elementId,O,V.adsEngagementPanelRenderer.isContentVideoEngagementPanel,V.adsEngagementPanelRenderer.adVideoId,V.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,H,u,function(Y,h,W,T){var l=X.L.get(),Jo=Y.slotId,U=V.adsEngagementPanelRenderer;Y=Xz(X.R0.get(),Y);return TQ(l,Jo,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new EC(U),h,W,U.impressionPings,Y,V.adsEngagementPanelRenderer.adLayoutLoggingData,T)}),[]; if(V.adsEngagementPanelLayoutViewModel)return CB(J,L.elementId,O,V.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,V.adsEngagementPanelLayoutViewModel.adVideoId,V.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,H,u,function(Y,h,W,T){var l=X.L.get(),Jo=Y.slotId,U=V.adsEngagementPanelLayoutViewModel;Y=Xz(X.R0.get(),Y);return GQ(l,Jo,"LAYOUT_TYPE_PANEL",new YY(U),h,W,Y,V.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,T)}),[]; if(V.actionCompanionAdRenderer!=null){if(V.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return kHI(X.K.get(),X.N,X.L.get(),V.actionCompanionAdRenderer,H,u,x,n);CB(J,L.elementId,O,V.actionCompanionAdRenderer.isContentVideoCompanion,V.actionCompanionAdRenderer.adVideoId,V.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,H,u,function(Y,h,W,T){var l=X.L.get(),Jo=Y.slotId,U=V.actionCompanionAdRenderer;Y=Xz(X.R0.get(),Y);return TQ(l,Jo,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new Pj(U),h,W,U.impressionPings,Y,V.actionCompanionAdRenderer.adLayoutLoggingData,T)})}else if(V.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(V.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return ZFR(X.K.get(),X.N,X.L.get(),V.topBannerImageTextIconButtonedLayoutViewModel,H,u,x,n); CB(J,L.elementId,O,V.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,V.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,V.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,H,u,function(Y,h,W,T){var l=X.L.get(),Jo=Y.slotId,U=V.topBannerImageTextIconButtonedLayoutViewModel;Y=Xz(X.R0.get(),Y);return GQ(l,Jo,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new cj(U),h,W,Y,V.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,T)})}else if(V.imageCompanionAdRenderer)CB(J, L.elementId,O,V.imageCompanionAdRenderer.isContentVideoCompanion,V.imageCompanionAdRenderer.adVideoId,V.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,H,u,function(Y,h,W,T){var l=X.L.get(),Jo=Y.slotId,U=V.imageCompanionAdRenderer; Y=Xz(X.R0.get(),Y);return TQ(l,Jo,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new pb(U),h,W,U.impressionPings,Y,V.imageCompanionAdRenderer.adLayoutLoggingData,T)}); else if(V.bannerImageLayoutViewModel)CB(J,L.elementId,O,V.bannerImageLayoutViewModel.isContentVideoCompanion,V.bannerImageLayoutViewModel.adVideoId,V.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,H,u,function(Y,h,W,T){var l=X.L.get(),Jo=Y.slotId,U=V.bannerImageLayoutViewModel;Y=Xz(X.R0.get(),Y);return GQ(l,Jo,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new re(U),h,W,Y,V.bannerImageLayoutViewModel.adLayoutLoggingData,T)}); else if(V.shoppingCompanionCarouselRenderer)CB(J,L.elementId,O,V.shoppingCompanionCarouselRenderer.isContentVideoCompanion,V.shoppingCompanionCarouselRenderer.adVideoId,V.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,H,u,function(Y,h,W,T){var l=X.L.get(),Jo=Y.slotId,U=V.shoppingCompanionCarouselRenderer;Y=Xz(X.R0.get(),Y);return TQ(l,Jo,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new vj(U),h,W,U.impressionPings,Y,V.shoppingCompanionCarouselRenderer.adLayoutLoggingData,T)}); else if(V.adBreakServiceRenderer){if(!URW(L))return[];if(O==="AD_PLACEMENT_KIND_PAUSE")return NDZ(X.K.get(),H,u,L.renderer.adBreakServiceRenderer,x);if(O!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&O!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return som(X.K.get(),H,u,L.renderer.adBreakServiceRenderer,x,Q,K);D.Zw||qH("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:O,adPlacementConfig:H,daiEnabledForContentVideo:String(K),isServedFromLiveInfra:String(D.Zw),clientPlaybackNonce:D.clientPlaybackNonce}); if(O==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!X.wI)return new m("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!X.bU)return new m("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");X.bU.a7({adPlacementRenderer:L,contentCpn:x,sS:Q});Q=X.wI.get().getCurrentTimeSec(1,!1);return jpo(X.K.get(),L.renderer.adBreakServiceRenderer,H,Q,x,u,K)}if(!X.mf)return new m("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); X.mf.a7({adPlacementRenderer:L,contentCpn:x,sS:Q})}else{if(V.clientForecastingAdRenderer)return IyA(X.K.get(),X.L.get(),H,u,V.clientForecastingAdRenderer,x,Q,n);if(V.invideoOverlayAdRenderer)return CYo(X.K.get(),X.L.get(),H,u,V.invideoOverlayAdRenderer,x,Q,n);if(V.instreamAdPlayerOverlayRenderer)return D0I(X.K.get(),X.L.get(),H,u,V.instreamAdPlayerOverlayRenderer,x,n);if((V.linearAdSequenceRenderer||V.instreamVideoAdRenderer)&&S)return OwI(X.K.get(),X.L.get(),L,x,n,M,!X.h0.get().Z.G().Y("html5_override_ad_video_length_killswitch")); if(V.linearAdSequenceRenderer&&!S){if(q)return[];DW(J,V,O);if(V.linearAdSequenceRenderer.adLayoutMetadata){if(!vRA(V.linearAdSequenceRenderer))return new m("Received invalid LinearAdSequenceRenderer.")}else if(V.linearAdSequenceRenderer.linearAds==null)return new m("Received invalid LinearAdSequenceRenderer.");if(g.F(V.linearAdSequenceRenderer.adStart,vZ)){qH("Found AdNotify in LinearAdSequenceRenderer");L=g.F(V.linearAdSequenceRenderer.adStart,vZ);if(!OFz(L))return new m("Invalid AdMessageRenderer."); K=V.linearAdSequenceRenderer.linearAds;return tDm(X.T.get(),X.K.get(),X.L.get(),X.R0.get(),H,u,L,Oe(V.linearAdSequenceRenderer.adLayoutMetadata)?V.linearAdSequenceRenderer.adLayoutMetadata:void 0,K,x,Q,D,n,C,X.loadPolicy,X.h0.get())}return SC8(X.K.get(),X.L.get(),H,u,V.linearAdSequenceRenderer.linearAds,Oe(V.linearAdSequenceRenderer.adLayoutMetadata)?V.linearAdSequenceRenderer.adLayoutMetadata:void 0,x,Q,D,n,C,X.loadPolicy,X.h0.get(),y)}if(!V.remoteSlotsRenderer||K){if(V.instreamVideoAdRenderer&& !S){if(q)return[];DW(J,V,O);return Eye(X.K.get(),X.L.get(),H,u,V.instreamVideoAdRenderer,x,Q,D,n,C,X.loadPolicy,X.h0.get(),X.R0.get(),y)}if(V.instreamSurveyAdRenderer)return YCA(X.K.get(),X.L.get(),V.instreamSurveyAdRenderer,H,u,x,n,vf(X.h0.get(),"supports_multi_step_on_desktop"));if(V.sandwichedLinearAdRenderer!=null)return joo(V.sandwichedLinearAdRenderer)?g.F(V.sandwichedLinearAdRenderer.adVideoStart,vZ)?(qH("Found AdNotify in SandwichedLinearAdRenderer"),L=g.F(V.sandwichedLinearAdRenderer.adVideoStart, vZ),OFz(L)?(K=g.F(V.sandwichedLinearAdRenderer.linearAd,j_))?bwz(L,K,H,X.T.get(),X.K.get(),X.L.get(),X.R0.get(),u,x,Q,D,n,C,X.loadPolicy,X.h0.get()):new m("Missing IVAR from Sandwich"):new m("Invalid AdMessageRenderer.")):SC8(X.K.get(),X.L.get(),H,u,[V.sandwichedLinearAdRenderer.adVideoStart,V.sandwichedLinearAdRenderer.linearAd],void 0,x,Q,D,n,C,X.loadPolicy,X.h0.get()):new m("Received invalid SandwichedLinearAdRenderer.");if(V.videoAdTrackingRenderer!=null)return KSO(X.K.get(),X.L.get(),V.videoAdTrackingRenderer, H,u,x,Q,D.Ev,n)}}return[]}; fB=function(X,J,L,x,Q,K,q,D){g.G.call(this);var C=this;this.K=X;this.N=J;this.Jj=x;this.wI=Q;this.h0=K;this.ZY=q;this.P9=D;this.L=null;L.get().addListener(this);this.addOnDisposeCallback(function(){L.E6()||L.get().removeListener(C)}); x.get().addListener(this);this.addOnDisposeCallback(function(){x.E6()||x.get().removeListener(C)})}; GSA=function(X,J,L){var x=X.wI.get().getCurrentTimeSec(1,!1);X.h0.get().Z.G().YH()&&t5(X.ZY.get(),"sdai","onopp.1;evt."+L.event+";start."+L.startSecs.toFixed(3)+";d."+L.zR.toFixed(3));L2(X.K.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var Q=X.N.get(),K=J.adPlacementRenderer.renderer.adBreakServiceRenderer,q=J.contentCpn,D=J.adPlacementRenderer.adSlotLoggingData,C=ez(X.h0.get()),M=X.ZY;if(Q.h0.get().Z.G().experiments.Mi("enable_smearing_expansion_dai")){var y=Q.h0.get();y=g.J_(y.Z.G().experiments, "max_prefetch_window_sec_for_livestream_optimization");C=Q.h0.get();var n=g.J_(C.Z.G().experiments,"min_prefetch_offset_sec_for_livestream_optimization");C={dF:Tem(L),kT:!1,cueProcessedMs:x*1E3};var V=L.startSecs+L.zR;if(x===0)C.Eg=new wG(0,V*1E3);else{n=L.startSecs-n;var H=n-x;C.Eg=H<=0?new wG(n*1E3,V*1E3):new wG(Math.floor(x+Math.random()*Math.min(H,y))*1E3,V*1E3)}y=C}else y={dF:Tem(L),kT:!1},V=L.startSecs+L.zR,L.startSecs<=x?C=new wG((L.startSecs-4)*1E3,V*1E3):(n=Math.max(0,L.startSecs-x-10),C= new wG(Math.floor(x+Math.random()*(C?x===0?0:Math.min(n,5):n))*1E3,V*1E3)),y.Eg=C;K=KB(Q,K,q,y,D,[new Cg(L)]);FL(Q.h0.get())&&t5(M.get(),"abrsm","cpi."+L.identifier+";cps."+L.startSecs+";cpd."+L.zR+";cts."+x+";rbf."+y.Eg.start);M.get().Z.MS(L.startSecs-x,y.Eg.start/1E3-x);return[K]})}; l5=function(X){var J,L=(J=Nf(X.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:J.current;if(!L)return null;J=Nf(X.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var x=X.layoutId,Q=Nf(X.clientMetadata,"metadata_type_content_cpn"),K=Nf(X.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),q=Nf(X.clientMetadata,"metadata_type_player_overlay_layout_renderer"),D=Nf(X.clientMetadata,"metadata_type_player_underlay_renderer"),C=Nf(X.clientMetadata, "metadata_type_ad_placement_config"),M=Nf(X.clientMetadata,"metadata_type_video_length_seconds");var y=Fg(X.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?Nf(X.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):Fg(X.clientMetadata,"metadata_type_layout_enter_ms")&&Fg(X.clientMetadata,"metadata_type_layout_exit_ms")?(Nf(X.clientMetadata,"metadata_type_layout_exit_ms")-Nf(X.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Gu:x,contentCpn:Q,CK:L,KH:J,instreamAdPlayerOverlayRenderer:K, playerOverlayLayoutRenderer:q,instreamAdPlayerUnderlayRenderer:D,adPlacementConfig:C,videoLengthSeconds:M,wm:y,inPlayerLayoutId:Nf(X.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Nf(X.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; ecP=function(X,J){return fy8(X,J)}; FSe=function(X,J){J=fy8(X,J);if(!J)return null;var L;J.wm=(L=Nf(X.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:L.adBreakRemainingLengthSeconds;return J}; fy8=function(X,J){var L,x=(L=Nf(X.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:L.current;if(!x)return null;L=KTS(X,J);return{MA:QOv(X,J),adPlacementConfig:Nf(X.clientMetadata,"metadata_type_ad_placement_config"),Xr:L,contentCpn:Nf(X.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:Nf(X.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Nf(X.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:Nf(X.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,wm:void 0,CK:x,Gu:X.layoutId,videoLengthSeconds:Nf(X.clientMetadata,"metadata_type_video_length_seconds")}}; R8=function(X,J,L,x,Q,K,q,D,C){g.G.call(this);this.T=X;this.B=J;this.j=L;this.N=x;this.L=Q;this.K=K;this.R0=q;this.h0=D;this.dI=C;this.M2=!0}; lye=function(X,J,L){return zo8(X.L.get(),J.contentCpn,J.Gu,function(x){return WvI(X.K.get(),x.slotId,L,J.adPlacementConfig,J.Gu,Xz(X.R0.get(),x))})}; BZ=function(X,J,L,x,Q,K,q,D){g.G.call(this);this.K=X;this.L=J;this.N=L;this.h0=x;this.T=Q;this.dI=K;this.wI=q;this.wQ=D}; sy=function(X){g.G.call(this);this.L=X}; L2=function(X,J,L,x){X.L().d2(J,x);L=L();X=X.L();X.qx.uO("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",J,x,L);J=g.d(L);for(L=J.next();!L.done;L=J.next())a:{x=X;L=L.value;x.qx.CJ("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",L);x.qx.CJ("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",L);try{var Q=x.L;if(g.YS(L.slotId))throw new m("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(gQ(Q,L))throw new m("Duplicate registration for slot.",{slotId:L.slotId,slotEntryTriggerType:L.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!Q.qr.j5.has(L.slotType))throw new m("No fulfillment adapter factory registered for slot of type: "+L.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!Q.qr.L6.has(L.slotType))throw new m("No SlotAdapterFactory registered for slot of type: "+L.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");SN(Q,"TRIGGER_CATEGORY_SLOT_ENTRY",L.slotEntryTrigger?[L.slotEntryTrigger]:[]);SN(Q,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", L.slotFulfillmentTriggers);SN(Q,"TRIGGER_CATEGORY_SLOT_EXPIRATION",L.slotExpirationTriggers);var K=x.L,q=L.slotType+"_"+L.slotPhysicalPosition,D=t_(K,q);if(gQ(K,L))throw new m("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");D.set(L.slotId,new ZLI(L));K.L.set(q,D)}catch(QP){QP instanceof m&&QP.aS?(x.qx.CI("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",QP.aS,L),qH(QP,L,void 0,void 0,QP.DQ)):(x.qx.CI("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", L),qH(QP,L));break a}gQ(x.L,L).B=!0;try{var C=x.L,M=gQ(C,L),y=L.slotEntryTrigger,n=C.qr.sX.get(y.triggerType);n&&(n.pA("TRIGGER_CATEGORY_SLOT_ENTRY",y,L,null),M.Pl.set(y.triggerId,n));for(var V=g.d(L.slotFulfillmentTriggers),H=V.next();!H.done;H=V.next()){var O=H.value,u=C.qr.sX.get(O.triggerType);u&&(u.pA("TRIGGER_CATEGORY_SLOT_FULFILLMENT",O,L,null),M.Km.set(O.triggerId,u))}for(var S=g.d(L.slotExpirationTriggers),Y=S.next();!Y.done;Y=S.next()){var h=Y.value,W=C.qr.sX.get(h.triggerType);W&&(W.pA("TRIGGER_CATEGORY_SLOT_EXPIRATION", h,L,null),M.D.set(h.triggerId,W))}var T=C.qr.j5.get(L.slotType).get().build(C.N,L);M.W=T;var l=C.qr.L6.get(L.slotType).get().build(C.j,L);l.init();M.K=l}catch(QP){QP instanceof m&&QP.aS?(x.qx.CI("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",QP.aS,L),qH(QP,L,void 0,void 0,QP.DQ)):(x.qx.CI("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",L),qH(QP,L));KD(x,L,!0);break a}x.qx.CJ("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",L);x.L.WD(L);for(var Jo=g.d(x.K),U=Jo.next();!U.done;U= Jo.next())U.value.WD(L);CD(x,L)}}; Na=function(X,J,L,x,Q){g.G.call(this);var K=this;this.K=X;this.N=J;this.Ti=L;this.context=Q;this.L=new Map;x.get().addListener(this);this.addOnDisposeCallback(function(){x.E6()||x.get().removeListener(K)})}; fNe=function(X,J){var L=0x8000000000000;var x=0;for(var Q=g.d(J.slotFulfillmentTriggers),K=Q.next();!K.done;K=Q.next())K=K.value,K instanceof J9?(L=Math.min(L,K.L.start),x=Math.max(x,K.L.end)):qH("Found unexpected fulfillment trigger for throttled slot.",J,null,{fulfillmentTrigger:K});x=new wG(L,x);L="throttledadcuerange:"+J.slotId;X.L.set(L,J);X.Ti.get().addCueRange(L,x.start,x.end,!1,X);Db(X.context.h0.get())&&(J=x.start,x=x.end,Q={},X.context.Sj.lB("tcrr",(Q.cid=L,Q.sm=J,Q.em=x,Q)))}; Uy=function(){g.G.apply(this,arguments);this.M2=!0;this.Rc=new Map;this.L=new Map}; mu=function(X,J){X=g.d(X.Rc.values());for(var L=X.next();!L.done;L=X.next())if(L.value.layoutId===J)return!0;return!1}; ks=function(X,J){X=g.d(X.L.values());for(var L=X.next();!L.done;L=X.next()){L=g.d(L.value);for(var x=L.next();!x.done;x=L.next())if(x=x.value,x.layoutId===J)return x}qH("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.YS(J)),layoutId:J})}; Rco=function(){this.L=new Map}; BeZ=function(X,J){this.callback=X;this.slot=J}; ZW=function(){}; sp8=function(X,J,L){this.callback=X;this.slot=J;this.wI=L}; Nee=function(X,J,L){this.callback=X;this.slot=J;this.wI=L;this.K=!1;this.L=0}; U0W=function(X,J,L){this.callback=X;this.slot=J;this.wI=L}; AE=function(X){this.wI=X}; Xf=function(X){g.G.call(this);this.Uj=X;this.Qr=new Map}; Jl=function(X,J){for(var L=[],x=g.d(X.Qr.values()),Q=x.next();!Q.done;Q=x.next()){Q=Q.value;var K=Q.trigger;K instanceof na&&K.triggeringLayoutId===J&&L.push(Q)}L.length?Oq(X.Uj(),L):qH("Survey is submitted but no registered triggers can be activated.")}; Lh=function(X,J,L){Xf.call(this,X);var x=this;this.h0=L;J.get().addListener(this);this.addOnDisposeCallback(function(){J.E6()||J.get().removeListener(x)})}; x5=function(X){g.G.call(this);this.L=X;this.M2=!0;this.Qr=new Map;this.j=new Set;this.N=new Set;this.T=new Set;this.B=new Set;this.K=new Set}; iP=function(X){g.G.call(this);this.L=X;this.Qr=new Map}; Qc=function(X,J){for(var L=[],x=g.d(X.Qr.values()),Q=x.next();!Q.done;Q=x.next())Q=Q.value,Q.trigger.L===J.layoutId&&L.push(Q);L.length&&Oq(X.L(),L)}; Kh=function(X,J,L){g.G.call(this);var x=this;this.L=X;this.context=L;this.Qr=new Map;J.get().addListener(this);this.addOnDisposeCallback(function(){J.E6()||J.get().removeListener(x)})}; qt=function(X,J,L,x,Q){g.G.call(this);var K=this;this.K=X;this.Ti=J;this.wI=L;this.dI=x;this.context=Q;this.M2=!0;this.Qr=new Map;this.L=new Set;L.get().addListener(this);this.addOnDisposeCallback(function(){L.E6()||L.get().removeListener(K)})}; m0m=function(X,J,L,x,Q,K,q,D,C,M){if(vv(X.dI.get(),1).clientPlaybackNonce!==C)throw new m("Cannot register CueRange-based trigger for different content CPN",{trigger:L});X.Qr.set(L.triggerId,{Yk:new Hh(J,L,x,Q),cueRangeId:K});X.Ti.get().addCueRange(K,q,D,M,X);Db(X.context.h0.get())&&(C={},X.context.Sj.lB("crr",(C.ca=J,C.tt=L.triggerType,C.st=x.slotType,C.lt=Q==null?void 0:Q.layoutType,C.cid=K,C.sm=q,C.em=D,C)))}; kSP=function(X,J){X=g.d(X.Qr.entries());for(var L=X.next();!L.done;L=X.next()){var x=g.d(L.value);L=x.next().value;x=x.next().value;if(J===x.cueRangeId)return L}return""}; IK=function(X,J){g.G.call(this);var L=this;this.T=X;this.K=new Map;this.N=new Map;this.L=null;J.get().addListener(this);this.addOnDisposeCallback(function(){J.E6()||J.get().removeListener(L)}); var x;this.L=((x=J.get().gi)==null?void 0:x.slotId)||null}; ZbY=function(X,J){var L=[];X=g.d(X.values());for(var x=X.next();!x.done;x=X.next())x=x.value,x.slot.slotId===J&&L.push(x);return L}; gK=function(X){g.G.call(this);this.L=X;this.M2=!0;this.Qr=new Map}; $g=function(X,J,L){J=J.layoutId;for(var x=[],Q=g.d(X.Qr.values()),K=Q.next();!K.done;K=Q.next())if(K=K.value,K.trigger instanceof QB){var q;if(q=K.trigger.layoutId===J){q=L;var D=RYA.get(K.category);q=D?D===q:!1}q&&x.push(K)}x.length&&Oq(X.L(),x)}; DY=function(X){g.G.call(this);this.L=X;this.M2=!0;this.Qr=new Map}; $5=function(X,J,L,x,Q){g.G.call(this);var K=this;this.B=X;this.Jj=J;this.wI=L;this.ZY=x;this.L=null;this.T=!1;this.M2=!0;this.Qr=new Map;J.get().addListener(this);this.addOnDisposeCallback(function(){J.E6()||J.get().removeListener(K)}); Q.get().addListener(this);this.addOnDisposeCallback(function(){Q.E6()||Q.get().removeListener(K)})}; JTv=function(X){X.L&&(X.T=!0,X.K&&(X.K.stop(),X.K.start()),AqO(X,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"),t5(X.ZY.get(),"ads_ce","bdc."+XHA(X).length))}; AqO=function(X,J){for(var L=[],x=g.d(X.Qr.values()),Q=x.next();!Q.done;Q=x.next())Q=Q.value,Q.trigger.triggerType===J&&L.push(Q);L.length>0&&Oq(X.B(),L)}; Ch=function(X,J,L,x,Q){for(var K=[],q=g.d(X.Qr.values()),D=q.next();!D.done;D=q.next()){var C=D=D.value,M=C.trigger;C=C.slot;if(M.triggerType===J){if(M instanceof ZV||M instanceof A5||M instanceof La){if(Q&&M.breakDurationMs!==L)continue;if(!Q&&M.breakDurationMs===L)continue;if(x.has(C.slotId))continue}K.push(D)}}K.length>0&&Oq(X.B(),K)}; L6m=function(X,J){J=(J.zR+1)*1E3;var L=void 0;X=g.d(X.Qr.values());for(var x=X.next();!x.done;x=X.next()){var Q=x.value;x=Q.trigger;Q=Q.slot;x instanceof ZV&&x.breakDurationMs<=J&&(!L||x.breakDurationMs>L.trigger.breakDurationMs)&&(L={slot:Q,trigger:x})}return L}; xfZ=function(X){X=X.adPlacementRenderer.config.adPlacementConfig;if(!X.prefetchModeConfig||!X.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;X=Number(X.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(X)||X<=0?0:Math.floor(Math.random()*X)}; igR=function(X){X=X.adPlacementRenderer.config.adPlacementConfig;if(X.prefetchModeConfig&&X.prefetchModeConfig.cacheFetchRefreshDurationMs&&(X=Number(X.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(X)||X<=0)))return X}; Mt=function(X){X.L=null;X.Qr.clear();X.K&&X.K.stop();X.j&&X.j.stop();var J;(J=X.N)==null||J.stop();delete X.N}; XHA=function(X){var J=[];X=g.d(X.Qr.values());for(var L=X.next();!L.done;L=X.next())L=L.value.trigger,L instanceof ZV&&J.push(L.breakDurationMs);return J}; yc=function(X){g.G.call(this);this.N=X;this.M2=!0;this.Qr=new Map;this.L=new Map;this.K=new Map}; QA8=function(X,J){var L=[];if(J=X.L.get(J.layoutId)){J=g.d(J);for(var x=J.next();!x.done;x=J.next())(x=X.K.get(x.value.triggerId))&&L.push(x)}return L}; nh=function(X){g.G.call(this);this.L=X;this.Qr=new Map}; K6Y=function(X,J){for(var L=[],x=g.d(X.Qr.values()),Q=x.next();!Q.done;Q=x.next())Q=Q.value,Q.trigger instanceof eM&&Q.trigger.slotId===J&&L.push(Q);L.length>=1&&Oq(X.L(),L)}; qjY=function(X,J){var L={slotId:xw(J,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],U6:"surface",clientMetadata:new sj([])},x=Object,Q=x.assign;J=jN(J,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",L.slotId);J={layoutId:J,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",yl:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],W9:[],U6:"surface", clientMetadata:new sj([]),B4:Tto(!1,L.slotId,L.slotType,L.slotPhysicalPosition,L.U6,L.slotEntryTrigger,L.slotFulfillmentTriggers,L.slotExpirationTriggers,J,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return Q.call(x,{},X,{wL:!0,slot:L,layout:J})}; BDP=function(X,J,L,x){var Q=X.kind;x=x?!1:!X.hideCueRangeMarker;switch(Q){case "AD_PLACEMENT_KIND_START":return x={dF:new wG(-0x8000000000000,-0x8000000000000),kT:x},L!=null&&(x.Eg=new wG(-0x8000000000000,-0x8000000000000)),x;case "AD_PLACEMENT_KIND_END":return x={dF:new wG(0x7ffffffffffff,0x8000000000000),kT:x},L!=null&&(x.Eg=new wG(Math.max(0,J-L),0x8000000000000)),x;case "AD_PLACEMENT_KIND_MILLISECONDS":Q=X.adTimeOffset;Q.offsetStartMilliseconds||qH("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); Q.offsetEndMilliseconds||qH("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");X=Number(Q.offsetStartMilliseconds);Q=Number(Q.offsetEndMilliseconds);Q===-1&&(Q=J);if(Number.isNaN(X)||Number.isNaN(Q)||X>Q)return new m("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:X,offsetEndMs:Q},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",Q===J&&X-500<=Q);x={dF:new wG(X,Q),kT:x};if(L!=null){X=Math.max(0,X-L);if(X===Q)return x;x.Eg=new wG(X,Q)}return x; default:return new m("AdPlacementKind not supported in convertToRange.",{kind:Q,adPlacementConfig:X})}}; Tem=function(X){var J=X.startSecs*1E3;return new wG(J,J+X.zR*1E3)}; Ipz=function(X){if(!X||!X.adPlacements&&!X.adSlots)return!1;for(var J=g.d(X.adPlacements||[]),L=J.next();!L.done;L=J.next())if(L=L.value)if(L=L.adPlacementRenderer,L!=null&&(L.config&&L.config.adPlacementConfig&&L.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;X=g.d(X.adSlots||[]);for(J=X.next();!J.done;J=X.next()){var x=L=void 0;if(((L=g.F(J.value,i5))==null?void 0:(x=L.adSlotMetadata)==null?void 0:x.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; Vc=function(X){this.h0=X;this.K=new Map;this.L=new Map;this.N=new Map}; xw=function(X,J){if(HC(X.h0.get())){var L=X.K.get(J)||0;L++;X.K.set(J,L);return J+"_"+L}return g.nL(16)}; jN=function(X,J,L){if(HC(X.h0.get())){var x=X.L.get(J)||0;x++;X.L.set(J,x);return L+"_"+J+"_"+x}return g.nL(16)}; PZ=function(X,J){if(HC(X.h0.get())){var L=X.N.get(J)||0;L++;X.N.set(J,L);return J+"_"+L}return g.nL(16)}; g88=function(X){var J=[new iJ(X.Gu),new IA(X.CK),new GS(X.adPlacementConfig),new Mf(X.videoLengthSeconds),new cH(X.wm)];X.instreamAdPlayerOverlayRenderer&&J.push(new sC(X.instreamAdPlayerOverlayRenderer));X.playerOverlayLayoutRenderer&&J.push(new N0(X.playerOverlayLayoutRenderer));X.KH&&J.push(new lY(X.KH));return J}; DfZ=function(X,J,L,x,Q,K){X=L.inPlayerLayoutId?L.inPlayerLayoutId:jN(K,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",X);var q,D,C=L.instreamAdPlayerOverlayRenderer?(q=L.instreamAdPlayerOverlayRenderer)==null?void 0:q.adLayoutLoggingData:(D=L.playerOverlayLayoutRenderer)==null?void 0:D.adLayoutLoggingData;q={layoutId:X,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",U6:J};return{layoutId:X,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",yl:new Map,layoutExitNormalTriggers:[new mc(function(M){return PZ(K, M)},L.Gu)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],W9:[],U6:J,clientMetadata:x,B4:Q(q),adLayoutLoggingData:C}}; Op=function(X,J){var L=this;this.K=X;this.h0=J;this.L=function(x){return PZ(L.K.get(),x)}}; WvI=function(X,J,L,x,Q,K){L=new sj([new UC(L),new GS(x)]);J=jN(X.K.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",J);x={layoutId:J,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",U6:"core"};return{layoutId:J,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",yl:new Map,layoutExitNormalTriggers:[new mc(function(q){return PZ(X.K.get(),q)},Q)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],W9:[],U6:"core",clientMetadata:L,B4:K(x),adLayoutLoggingData:void 0}}; a8=function(X,J,L,x,Q){var K=g88(x);return DfZ(J,L,x,new sj(K),Q,X.K.get())}; $fo=function(X,J,L,x,Q){var K=g88(x);K.push(new jD(x.MA));K.push(new TS(x.Xr));return DfZ(J,L,x,new sj(K),Q,X.K.get())}; TQ=function(X,J,L,x,Q,K,q,D,C,M){J=jN(X.K.get(),L,J);var y={layoutId:J,layoutType:L,U6:"core"},n=new Map;q&&n.set("impression",q);q=[new x6(X.L,Q,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];M&&q.push(new Uz(X.L,M,["normal"]));return{layoutId:J,layoutType:L,yl:n,layoutExitNormalTriggers:q,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],W9:[],U6:"core",clientMetadata:new sj([x,new GS(K),new iJ(Q)]),B4:D(y),adLayoutLoggingData:C}}; GQ=function(X,J,L,x,Q,K,q,D,C){J=jN(X.K.get(),L,J);var M={layoutId:J,layoutType:L,U6:"core"},y=[new x6(X.L,Q,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];C&&y.push(new Uz(X.L,C,["normal"]));return{layoutId:J,layoutType:L,yl:new Map,layoutExitNormalTriggers:y,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],W9:[],U6:"core",clientMetadata:new sj([x,new GS(K),new iJ(Q)]),B4:q(M),adLayoutLoggingData:D}}; Ey=function(X,J,L){var x=[];x.push(new ig(X.L,L));J&&x.push(J);return x}; cZ=function(X,J,L,x,Q,K,q){var D={layoutId:J,layoutType:L,U6:"core"};return{layoutId:J,layoutType:L,yl:new Map,layoutExitNormalTriggers:q,layoutExitSkipTriggers:[new RL(X.L,J)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],W9:[],U6:"core",clientMetadata:new sj([new Wj(x),new GS(Q)]),B4:K(D),adLayoutLoggingData:x.adLayoutLoggingData}}; nB=function(X,J,L,x,Q,K,q,D){var C={layoutId:J,layoutType:K,U6:"core"};return{layoutId:J,layoutType:K,yl:new Map,layoutExitNormalTriggers:[new mc(X.L,L)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],W9:[],U6:"core",clientMetadata:new sj([new GS(x)].concat(g.nR(q))),B4:Q(C),adLayoutLoggingData:D}}; hE=function(X,J,L,x){if(X.h0.get().TK(J.kind==="AD_PLACEMENT_KIND_START"))if(L===void 0)qH("Expected SSAP layout ID in renderer",void 0,void 0,{caller:x});else return L}; MDP=function(X,J,L,x,Q,K,q,D,C,M,y,n,V){X=Ys(X,J,L,Q,K,q,D,C,n,hE(X,L,x.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),V);J=X.uR;L=new Qx(X.TA);x=X.layoutExitSkipTriggers;M>0&&(J.push(L),J.push(new F5(M)),x=[]);J.push(new eD(y));return{Qq:{layoutId:X.layoutId,layoutType:X.layoutType,yl:X.yl,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],W9:[],U6:X.U6,clientMetadata:new sj(J),B4:X.B4,adLayoutLoggingData:X.adLayoutLoggingData}, K$:x,R_:X.layoutExitMuteTriggers,kS:X.layoutExitUserInputSubmittedTriggers,P8:X.W9,Wv:X.Wv}}; HbZ=function(X,J,L,x,Q,K,q,D,C,M){J=Ys(X,J,L,x,K,new Map,q,function(y){return D(y,C)},void 0,hE(X,L,Q.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); X=new na(X.L,J.TA);L=new Qx(J.TA);M=new eD(M);return{Qq:{layoutId:J.layoutId,layoutType:J.layoutType,yl:J.yl,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],W9:[],U6:J.U6,clientMetadata:new sj([].concat(g.nR(J.uR),[L,M])),B4:J.B4,adLayoutLoggingData:J.adLayoutLoggingData},K$:J.layoutExitSkipTriggers,R_:J.layoutExitMuteTriggers,kS:[].concat(g.nR(J.layoutExitUserInputSubmittedTriggers),[X]),P8:J.W9,Wv:J.Wv}}; Ys=function(X,J,L,x,Q,K,q,D,C,M,y){J=M!=null?M:jN(X.K.get(),"LAYOUT_TYPE_MEDIA_BREAK",J);M={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",U6:"adapter"};D=D(J);var n=Nf(D.clientMetadata,"metadata_type_fulfilled_layout");n||qH("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var V=n?n.layoutId:"";L=[new GS(L),new Ej(x),new z_(Q)];n&&L.push(new Kg(n.layoutType));y&&L.push(new aA(y));return{layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", yl:K,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new IX(X.L,V)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],W9:[],U6:"adapter",uR:L,B4:q(M),adLayoutLoggingData:C,Wv:D,TA:V}}; Ysm=function(X,J,L,x,Q,K,q,D,C,M,y){X=CJo(X,J,"core",L,x,Q,K,q,D,C,M,void 0,y);return{layoutId:X.layoutId,layoutType:X.layoutType,yl:X.yl,layoutExitNormalTriggers:X.layoutExitNormalTriggers,layoutExitSkipTriggers:X.layoutExitSkipTriggers,layoutExitMuteTriggers:X.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:X.layoutExitUserInputSubmittedTriggers,W9:X.W9,U6:X.U6,clientMetadata:new sj(X.Fh),B4:X.B4,adLayoutLoggingData:X.adLayoutLoggingData}}; cqv=function(X,J,L,x,Q,K,q,D,C,M,y,n,V){J=CJo(X,J,"adapter",L,x,Q,K,q,D,C,y,n,V);x=J.layoutExitSkipTriggers;Q=J.Fh;L.adPodSkipTarget&&L.adPodSkipTarget>0&&(Q.push(M),Q.push(new F5(L.adPodSkipTarget)),x=[]);Q.push(new eD(D.adPodIndex));L.isCritical&&(x=[new Uz(X.L,J.layoutId,["error"])].concat(g.nR(x)));return{Qq:{layoutId:J.layoutId,layoutType:J.layoutType,yl:J.yl,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],W9:[],U6:J.U6, clientMetadata:new sj(Q),B4:J.B4,adLayoutLoggingData:J.adLayoutLoggingData},K$:x,R_:J.layoutExitMuteTriggers,kS:J.layoutExitUserInputSubmittedTriggers,P8:J.W9}}; CJo=function(X,J,L,x,Q,K,q,D,C,M,y,n,V){var H={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA",U6:L};Q=[new GS(Q),new fb(C),new Rp(x.externalVideoId),new Bj(D),new z_({impressionCommands:x.impressionCommands,abandonCommands:x.onAbandonCommands,completeCommands:x.completeCommands,progressCommands:x.adVideoProgressCommands}),new yx(K),new g1({current:null}),new Mf(q)];(K=x.playerOverlay.instreamAdPlayerOverlayRenderer)&&Q.push(new sC(K));(q=x.playerOverlay.playerOverlayLayoutRenderer)&&Q.push(new N0(q)); n&&Q.push(new ng(n));(n=x.playerUnderlay)&&Q.push(new UC(n));D=xw(X.K.get(),"SLOT_TYPE_IN_PLAYER");n=(n=K?K.elementId:q==null?void 0:q.layoutId)?n:jN(X.K.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",D);Q.push(new Qx(n));Q.push(new qf(D));Q.push(new aA(C.adPodIndex));x.adNextParams&&Q.push(new hq(x.adNextParams));x.shrunkenPlayerBytesConfig&&Q.push(new Zy(x.shrunkenPlayerBytesConfig));x.clickthroughEndpoint&&Q.push(new zS(x.clickthroughEndpoint));x.legacyInfoCardVastExtension&&Q.push(new Y8(x.legacyInfoCardVastExtension)); x.sodarExtensionData&&Q.push(new Vx(x.sodarExtensionData));y&&Q.push(new PH(y));Q.push(new r1(C2(x.pings)));C=Me(x.pings);if(V){a:{V=g.d(V);for(y=V.next();!y.done;y=V.next())if(y=y.value,y.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(K=g.F(y.fulfillmentContent.fulfilledLayout,No))&&(K=g.F(K.renderingContent,Bh))&&K.associatedPlayerBytesLayoutId===J){V=y;break a}V=void 0}V&&Q.push(new mS(V))}return{layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA",yl:C,layoutExitNormalTriggers:[new QB(X.L,J)],layoutExitSkipTriggers:x.skipOffsetMilliseconds? [new IX(X.L,n)]:[],layoutExitMuteTriggers:[new IX(X.L,n)],layoutExitUserInputSubmittedTriggers:[],W9:[],U6:L,Fh:Q,B4:M(H),adLayoutLoggingData:x.adLayoutLoggingData}}; wzI=function(X,J,L,x,Q,K,q,D,C){x.every(function(y){return lJ(y,[],["LAYOUT_TYPE_MEDIA"])})||qH("Unexpect subLayout type for DAI composite layout"); J=jN(X.K.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",J);var M={layoutId:J,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",U6:"core"};return{layoutId:J,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",yl:new Map,layoutExitNormalTriggers:[new kg(X.L)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],W9:[],U6:"core",clientMetadata:new sj([new HH(L),new Oj(D),new $8(x),new GS(Q),new uJ(K),new w1({}),new jO(C)]),B4:q(M)}}; nyA=function(X){return X!=null}; aK=function(X,J,L){var x=this;this.K=X;this.N=J;this.h0=L;this.L=function(Q){return PZ(x.K.get(),Q)}}; jpo=function(X,J,L,x,Q,K,q){if(!L.prefetchModeConfig)return new m("AdPlacementConfig for Live Prefetch is missing prefetch_config");L=L.prefetchModeConfig;x*=1E3;var D=[];if(!L.breakLengthMs)return new m("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var C=g.d(L.breakLengthMs),M=C.next();!M.done;M=C.next())if(M=M.value,Number(M)>0){var y=x+Number(L.startTimeOffsetMs),n=y+Number(L.cacheFetchSmearingDurationMs);M={dF:new wG(n,n+Number(M)),kT:!1,Eg:new wG(Math.floor(y+Math.random()* Number(L.cacheFetchSmearingDurationMs)),n),cueProcessedMs:x?x:y};y=[];y.push(new eO({}));n=[];n.push(new qo(X.L));n.push(new KbA(X.L));q&&y.push(new w1({}));D.push(KB(X,J,Q,M,K,y,n))}return D}; KB=function(X,J,L,x,Q,K,q){K=K===void 0?[]:K;var D=xw(X.K.get(),"SLOT_TYPE_AD_BREAK_REQUEST");q||(q=[],x.Eg&&x.Eg.start!==x.dF.start&&q.push(new J9(X.L,L,new wG(x.Eg.start,x.dF.start),!1)),q.push(new J9(X.L,L,new wG(x.dF.start,x.dF.end),x.kT)));x={getAdBreakUrl:J.getAdBreakUrl,Tw:x.dF.start,Ph:x.dF.end,cueProcessedMs:x.cueProcessedMs};J=new Ca(X.L,D);K=[new bJ(x)].concat(g.nR(K));return{slotId:D,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:q, slotExpirationTriggers:[new Ka(X.L,L),new DA(X.L,D),new $6(X.L,D)],U6:"core",clientMetadata:new sj(K),adSlotLoggingData:Q}}; yTe=function(X,J,L){var x=[];L=g.d(L);for(var Q=L.next();!Q.done;Q=L.next())x.push(MOS(X,J,Q.value));return x}; MOS=function(X,J,L){return L.triggeringSlotId!=null&&L.triggeringSlotId===X?L.clone(J):L}; iwZ=function(X,J,L,x,Q){return n8e(X,J,L,x,Q)}; yqO=function(X,J,L,x){var Q=xw(X.K.get(),"SLOT_TYPE_IN_PLAYER");return n8e(X,Q,J,L,x)}; n8e=function(X,J,L,x,Q){var K=new NT(X.L,L),q=[new gd(X.L,J)];X=[new DA(X.L,J),new Ka(X.L,x)];return{slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:K,slotFulfillmentTriggers:q,slotExpirationTriggers:X,U6:"core",clientMetadata:new sj([new oA(Q({slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,U6:"core",slotEntryTrigger:K,slotFulfillmentTriggers:q,slotExpirationTriggers:X},L))]),adSlotLoggingData:void 0}}; EYO=function(X,J,L,x,Q,K){var q=xw(X.K.get(),"SLOT_TYPE_PLAYER_BYTES"),D=xw(X.K.get(),"SLOT_TYPE_IN_PLAYER"),C=jN(X.K.get(),"LAYOUT_TYPE_SURVEY",D);x=wK(X,J,L,x);var M=[new gd(X.L,q)];L=[new DA(X.L,q),new Ka(X.L,L),new RL(X.L,C)];if(x instanceof m)return x;D=K({slotId:q,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,U6:"core",slotEntryTrigger:x,slotFulfillmentTriggers:M,slotExpirationTriggers:L},{slotId:D,layoutId:C});K=D.K9I;D=D.Pp;return[{slotId:q,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:WZ(X,J,q,x),slotFulfillmentTriggers:pB(X,J,q,M),slotExpirationTriggers:L,U6:"core",clientMetadata:new sj([new oA(K),new T_(ra(J)),new fg({Lj:X.Lj(J)})]),adSlotLoggingData:Q},D]}; ra=function(X){return X.kind==="AD_PLACEMENT_KIND_START"}; hom=function(X,J,L,x,Q){Q=Q?Q:xw(X.K.get(),"SLOT_TYPE_IN_PLAYER");L=new NT(X.L,L);var K=[new gd(X.L,Q)];X=[new Ka(X.L,J),new DA(X.L,Q)];return{slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:K,slotExpirationTriggers:X,U6:"core",clientMetadata:new sj([new oA(x({slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,U6:"core",slotEntryTrigger:L,slotFulfillmentTriggers:K,slotExpirationTriggers:X}))])}}; zo8=function(X,J,L,x){var Q=xw(X.K.get(),"SLOT_TYPE_PLAYER_UNDERLAY");L=new NT(X.L,L);var K=[new gd(X.L,Q)];X=[new Ka(X.L,J),new DA(X.L,Q)];return{slotId:Q,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:K,slotExpirationTriggers:X,U6:"core",clientMetadata:new sj([new oA(x({slotId:Q,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,U6:"core",slotEntryTrigger:L,slotFulfillmentTriggers:K,slotExpirationTriggers:X}))])}}; uHm=function(X,J,L,x,Q,K,q){var D=xw(X.K.get(),"SLOT_TYPE_IN_PLAYER"),C=jN(X.K.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",D);x=VOI(X,x,K,q,C);if(x instanceof m)return x;q=[new gd(X.L,D)];Q=[new Ka(X.L,K),new gd(X.L,Q),new yB(X.L,Q)];L=Xz(L,{slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,U6:"core",slotEntryTrigger:x,slotFulfillmentTriggers:q,slotExpirationTriggers:Q});X=X.N.get();K={layoutId:C,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",U6:"core"};J={layoutId:C,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", yl:new Map,layoutExitNormalTriggers:[new ytY(X.L,C,J.durationMs)],layoutExitSkipTriggers:[new Vqm(X.L,C,J.durationMs)],W9:[new nRR(X.L,C)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],U6:"core",clientMetadata:new sj([new hT(J)]),B4:L(K)};return{slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,U6:"core",slotEntryTrigger:x,slotFulfillmentTriggers:q,slotExpirationTriggers:Q,clientMetadata:new sj([new oA(J)])}}; $0m=function(X,J,L,x,Q,K){J=wK(X,J,L,x);if(J instanceof m)return J;var q=J instanceof J9?new $Ro(X.L,L,J.L):null;x=xw(X.K.get(),"SLOT_TYPE_IN_PLAYER");var D=[new gd(X.L,x)];X=[new Ka(X.L,L),new DA(X.L,x)];K=K({slotId:x,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,U6:"core",slotEntryTrigger:J,slotFulfillmentTriggers:D,slotExpirationTriggers:X},q);return K instanceof BH?new m(K):{slotId:x,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:D,slotExpirationTriggers:X, U6:"core",clientMetadata:new sj([new oA(K)]),adSlotLoggingData:Q}}; gYW=function(X,J,L,x){var Q=xw(X.K.get(),"SLOT_TYPE_IN_PLAYER"),K=new lR(X.L,J),q=[new Mo(X.L,Q)];X=[new Ka(X.L,J),new DA(X.L,Q)];return{slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:K,slotFulfillmentTriggers:q,slotExpirationTriggers:X,U6:"core",clientMetadata:new sj([new oA(x({slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,U6:"core",slotEntryTrigger:K,slotFulfillmentTriggers:q,slotExpirationTriggers:X}))]),adSlotLoggingData:L}}; Dl8=function(X,J,L,x){var Q=xw(X.K.get(),"SLOT_TYPE_IN_PLAYER");L=new NT(X.L,L);var K=[new gd(X.L,Q)],q=[new DA(X.L,Q),new Ka(X.L,J)];K={slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,U6:"core",slotEntryTrigger:L,slotFulfillmentTriggers:K,slotExpirationTriggers:q};return{slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:[new gd(X.L,Q)],slotExpirationTriggers:[new Ka(X.L,J),new DA(X.L,Q)],U6:"core",clientMetadata:new sj([new oA(x(K))])}}; qs8=function(X,J,L,x,Q){var K=xw(X.K.get(),"SLOT_TYPE_IN_PLAYER");L=new sz(X.L,x,L);x=[new gd(X.L,K)];X=[new Ka(X.L,J)];return{slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:x,slotExpirationTriggers:X,U6:"core",clientMetadata:new sj([new oA(Q({slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,U6:"core",slotEntryTrigger:L,slotFulfillmentTriggers:x,slotExpirationTriggers:X}))])}}; JLA=function(X,J,L,x,Q,K){var q=xw(X.K.get(),J);return tl(X,q,J,new NT(X.L,x),[new Ka(X.L,L),new DA(X.L,q),new Uz(X.L,x,["error"])],Q,K)}; XzY=function(X,J,L,x,Q,K,q){var D=xw(X.K.get(),J);return tl(X,D,J,new Uz(X.L,Q,["normal"]),[new Ka(X.L,L),new DA(X.L,D),new Uz(X.L,x,["error"])],K,q)}; mRI=function(X,J,L,x,Q){var K=xw(X.K.get(),J);return tl(X,K,J,new lR(X.L,L),[new Ka(X.L,L),new DA(X.L,K)],x,Q)}; Qp8=function(X,J,L,x,Q){L=L?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var K=xw(X.K.get(),L);J=new lR(X.L,J);var q=[new gd(X.L,K)];X=[new DA(X.L,K)];return{slotId:K,slotType:L,slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:q,slotExpirationTriggers:X,U6:"core",clientMetadata:new sj([new oA(Q({slotId:K,slotType:L,slotPhysicalPosition:1,U6:"core",slotEntryTrigger:J,slotFulfillmentTriggers:q,slotExpirationTriggers:X}))]),adSlotLoggingData:x}}; VAZ=function(X,J,L,x){var Q=xw(X.K.get(),"SLOT_TYPE_PLAYER_BYTES"),K=new Xo(X.L),q=[new Mo(X.L,Q)];X=[new Ka(X.L,J)];return{slotId:Q,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:K,slotFulfillmentTriggers:q,slotExpirationTriggers:X,U6:"core",clientMetadata:new sj([new oA(x({slotId:Q,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,U6:"core",slotEntryTrigger:K,slotFulfillmentTriggers:q,slotExpirationTriggers:X})),new w1({})]),adSlotLoggingData:L}}; oYm=function(X,J){return rqW(X.h0.get())?new Uz(X.L,J,["normal","error","skipped"]):new Uz(X.L,J,["normal"])}; PER=function(X,J,L,x,Q){J=oYm(X,J);X=zQ(X,J,L);Q=Q({slotId:X.slotId,slotType:X.slotType,slotPhysicalPosition:X.slotPhysicalPosition,slotEntryTrigger:X.slotEntryTrigger,slotFulfillmentTriggers:X.slotFulfillmentTriggers,slotExpirationTriggers:X.slotExpirationTriggers,U6:X.U6});return Q instanceof m?Q:{nV:Object.assign({},X,{clientMetadata:new sj([new oA(Q.layout)]),adSlotLoggingData:x}),Zt:Q.Zt}}; cLS=function(X,J,L,x,Q,K,q){L=bbW(X,J,L,x);if(L instanceof m)return L;q=q({slotId:L.slotId,slotType:L.slotType,slotPhysicalPosition:L.slotPhysicalPosition,slotEntryTrigger:L.slotEntryTrigger,slotFulfillmentTriggers:L.slotFulfillmentTriggers,slotExpirationTriggers:L.slotExpirationTriggers,U6:L.U6});if(q instanceof m)return q;x=[new T_(ra(J)),new oA(q.layout),new fg({Lj:X.Lj(J)})];K&&x.push(new WH({}));return{nV:{slotId:L.slotId,slotType:L.slotType,slotPhysicalPosition:L.slotPhysicalPosition,slotEntryTrigger:WZ(X, J,L.slotId,L.slotEntryTrigger),slotFulfillmentTriggers:pB(X,J,L.slotId,L.slotFulfillmentTriggers),slotExpirationTriggers:L.slotExpirationTriggers,U6:L.U6,clientMetadata:new sj(x),adSlotLoggingData:Q},Zt:q.Zt}}; WZ=function(X,J,L,x){return X.h0.get().TK(ra(J))?new eM(X.L,L):x}; pB=function(X,J,L,x){return X.h0.get().TK(ra(J))?[new Mo(X.L,L)]:x}; zQ=function(X,J,L){var x=xw(X.K.get(),"SLOT_TYPE_PLAYER_BYTES"),Q=[new gd(X.L,x)];X=[new DA(X.L,x),new Ka(X.L,L)];return{slotId:x,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:Q,slotExpirationTriggers:X,U6:"core"}}; bbW=function(X,J,L,x){J=wK(X,J,L,x);return J instanceof m?J:zQ(X,J,L)}; qCI=function(X,J,L,x,Q,K){var q=xw(X.K.get(),"SLOT_TYPE_FORECASTING");J=wK(X,J,L,x);if(J instanceof m)return J;x=[new gd(X.L,q)];X=[new DA(X.L,q),new Ka(X.L,L)];return{slotId:q,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:x,slotExpirationTriggers:X,U6:"core",clientMetadata:new sj([new oA(K({slotId:q,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,U6:"core",slotEntryTrigger:J,slotFulfillmentTriggers:x,slotExpirationTriggers:X}))]),adSlotLoggingData:Q}}; HgW=function(X,J,L,x,Q){var K=!J.hideCueRangeMarker;switch(J.kind){case "AD_PLACEMENT_KIND_START":return new lR(X.L,L);case "AD_PLACEMENT_KIND_MILLISECONDS":return X=BDP(J,x),X instanceof m?X:Q(X.dF,K);case "AD_PLACEMENT_KIND_END":return new Bk(X.L,L,K);default:return new m("Cannot construct entry trigger",{kind:J.kind})}}; VOI=function(X,J,L,x,Q){return HgW(X,J,L,x,function(K,q){return new DRW(X.L,L,K,q,Q)})}; wK=function(X,J,L,x){return HgW(X,J,L,x,function(Q,K){return new J9(X.L,L,Q,K)})}; tl=function(X,J,L,x,Q,K,q){X=[new Mo(X.L,J)];return{slotId:J,slotType:L,slotPhysicalPosition:1,slotEntryTrigger:x,slotFulfillmentTriggers:X,slotExpirationTriggers:Q,U6:"core",clientMetadata:new sj([new oA(q({slotId:J,slotType:L,slotPhysicalPosition:1,U6:"core",slotEntryTrigger:x,slotFulfillmentTriggers:X,slotExpirationTriggers:Q}))]),adSlotLoggingData:K}}; dK=function(X,J){g.G.call(this);this.h0=X;this.L=J;this.eventCount=0}; uP=function(X,J,L,x){dK.call(this,X,J);this.h0=X;this.dI=L;this.context=x}; oK=function(){this.L=new Map}; bP=function(X){this.L="pending";this.K=[];this.N=[];try{X(this.T.bind(this),this.reject.bind(this))}catch(J){this.reject(J)}}; Oge=function(){var X,J;return{U0:new bP(function(L,x){X=L;J=x}), resolve:X,reject:J}}; cC=function(X){return St(X)?X:PC(X)?new bP(function(J,L){X.then(J,L)}):new bP(function(J){J(X)})}; Ep=function(X){return new bP(function(J,L){L(X)})}; Y5=function(X){try{return cC(X())}catch(J){return Ep(J)}}; z6=function(X,J,L){var x=Oge(),Q=x.U0,K=x.resolve,q=x.reject;X.K.push(function(D){if(J)try{var C=J(D);K(C)}catch(M){q(M)}else K(D)}); X.N.push(function(D){if(L)try{var C=L(D);K(C)}catch(M){q(M)}else q(D)}); hl(X);return Q}; WC=function(X,J){return z6(X,void 0,J)}; apv=function(X,J){z6(X,function(L){return z6(cC(J()),function(){return L})},function(L){return z6(cC(J()),function(){return Ep(L)})})}; hl=function(X){if(X.L==="fulfilled"){var J=X.K;X.K=[];X.N=[];J=g.d(J);for(var L=J.next();!L.done;L=J.next())L=L.value,L(X.result)}else if(X.L==="rejected")for(J=X.N,X.K=[],X.N=[],J=g.d(J),L=J.next();!L.done;L=J.next())L=L.value,L(X.error)}; ph=function(X,J){return wHz(J.call(X))}; rK=function(X){return function L(){return Gm(L,function(x){if(x.K==1)return g.bv(x,2),g.z(x,{U0:cC(X)},4);if(x.K!=2)return x.return(x.L);g.WW(x);return g.pR(x,0)})}()}; wHz=function(X){return Y5(function(){return vC(X,X.next())})}; vC=function(X,J){return J.done?cC(J.value):WC(z6(J.value.U0,function(L){return vC(X,X.next(L))}),function(L){return vC(X,X.throw(L))})}; jt=function(X,J){if(X.length===0)return cC(NaN);var L=Oge(),x=L.U0,Q=L.resolve,K=X.length;X=g.d(X.entries());var q=X.next();for(L={};!q.done;L={eS:void 0},q=X.next()){var D=g.d(q.value);q=D.next().value;D=D.next().value;L.eS=q;apv(D,function(C){return function(){x.L==="pending"&&(tOW(J)&&J(C.eS)&&x.L==="pending"?Q(C.eS):(--K,K===0&&Q(NaN)))}}(L))}return x}; T6=function(X){return X.map(function(J){return cC(J)})}; fh=function(X){var J=X.hours||0;var L=X.minutes||0,x=X.seconds||0;J=x+L*60+J*3600+(X.days||0)*86400+(X.weeks||0)*604800+(X.months||0)*2629800+(X.years||0)*31557600;J<=0?J={hours:0,minutes:0,seconds:0}:(X=J,J=Math.floor(X/3600),X%=3600,L=Math.floor(X/60),x=Math.floor(X%60),J={hours:J,minutes:L,seconds:x});var Q=J.hours===void 0?0:J.hours;L=J.minutes===void 0?0:J.minutes;X=J.seconds===void 0?0:J.seconds;x=Q>0;J=[];if(x){Q=(new Intl.NumberFormat("en-u-nu-latn")).format(Q);var K=["fr"],q="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(" "); Q="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(G6)?Q.replace(",","\u00a0"):K.includes(G6)?Q.replace(",","\u202f"):q.includes(G6)?Q.replace(",","."):Q;J.push(Q)}x=x===void 0?!1:x;L=(["af","be","lt"].includes(G6)||x)&&L<10?dfe().format(L):(new Intl.NumberFormat("en-u-nu-latn")).format(L);J.push(L);L=dfe().format(X);J.push(L);L=":";"da fi id si sr sr-Latn".split(" ").includes(G6)&&(L=".");return J.join(L)}; dfe=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; ugm=function(X,J){var L,x;X=((L=X.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(x=L.videoAuthorizationToken)==null?void 0:x.credentialTransferTokens)||[];for(L=0;LJ;X=L}else X=!1;return X}; g.xa=function(X,J){return X.VZ+"timedtext_video?ref=player&v="+J.videoId}; g.eMI=function(X){var J=this;this.videoData=X;X={};this.L=(X.c1a=function(){var L=[];if(g.JW.isInitialized()){var x="";J.videoData&&J.videoData.QH&&(x=J.videoData.QH+("&r1b="+J.videoData.clientPlaybackNonce));var Q={};x=(Q.atr_challenge=x,Q);E4("bg_v",void 0,"player_att");(x=fpo(x))?(E4("bg_s",void 0,"player_att"),L.push("r1a="+x)):(E4("bg_e",void 0,"player_att"),L.push("r1c=2"))}else E4("bg_e",void 0,"player_att"),window.trayride||window.botguard?L.push("r1c=1"):L.push("r1c=4");L.push("r1d="+g.JW.getState()); return L.join("&")},X.c6a=function(L){return"r6a="+(Number(L.c)^NR())},X.c6b=function(L){return"r6b="+(Number(L.c)^Number(g.ly("CATSTAT",0)))},X); this.videoData&&this.videoData.QH?this.mA=ZB(this.videoData.QH):this.mA={}}; g.F6Y=function(X){if(X.videoData&&X.videoData.QH){for(var J=[X.videoData.QH],L=g.d(Object.keys(X.L)),x=L.next();!x.done;x=L.next())x=x.value,X.mA[x]&&X.L[x]&&(x=X.L[x](X.mA))&&J.push(x);return J.join("&")}return null}; g.iI=function(X,J){G_I(X,{atm:g.J_(J.experiments,"bg_vm_reinit_threshold"),cspNonce:J.cspNonce,VZ:J.VZ||""})}; lpe=function(){var X=XMLHttpRequest.prototype.fetch;return!!X&&X.length===3}; RMm=function(X){X=X[I[47]](I[24]);QC[I[46]](X,1);QC[I[70]](X,0);QC[I[13]](X,35);QC[I[70]](X,33);QC[I[13]](X,56);QC[I[13]](X,57);QC[I[46]](X,1);QC[I[13]](X,48);return X[I[9]](I[24])}; N1m=function(X,J){vz(X,2,J.NG,Ke,3);vz(X,3,J.innertubeRequest,B1e,3);pw(X,4,J.onesieUstreamerConfig);pw(X,9,J.RY);vz(X,10,J.fR,qu,3);vz(X,15,J.reloadPlaybackParams,sAO,3)}; mfZ=function(X,J){vz(X,1,J.formatId,Ib,3);z5(X,2,J.startTimeMs);z5(X,3,J.durationMs);z5(X,4,J.o_);z5(X,5,J.KW);vz(X,9,J.qwm,UfW,3);vz(X,11,J.BBm,gf,1);vz(X,12,J.Sa,gf,1)}; k_o=function(X,J){rk(X,1,J.videoId);z5(X,2,J.lmt)}; UfW=function(X,J){if(J.xB)for(var L=0;L>31));z5(X,16,J.xX);z5(X,17,J.detailedNetworkType);z5(X,18,J.Bc);z5(X,19,J.Ep);z5(X,21,J.uyi);z5(X,23,J.iK);z5(X,28,J.Dq);z5(X,29,J.qdB);z5(X,34,J.visibility);L=J.playbackRate;if(L!==void 0){var x=new ArrayBuffer(4);(new Float32Array(x))[0]=L;L=(new Uint32Array(x))[0];if(L!==void 0)for(hL(X,285),Yy(X,4),x=0;x<4;)X.view.setUint8(X.pos,L&255),L>>=8,X.pos+=1,x+=1}z5(X,36,J.N4); vz(X,38,J.mediaCapabilities,Lmm,3);z5(X,39,J.j2l);z5(X,40,J.Ls);z5(X,44,J.playerState);Wz(X,46,J.mI);z5(X,48,J.KS);z5(X,50,J.KG);z5(X,51,J.FS);z5(X,54,J.dc);if(J.t5)for(L=0;L>31));rk(X,2,J.message)}; $2o=function(X,J){z5(X,1,J.clientState);vz(X,2,J.heB,gBI,1)}; I7e=function(X,J){pw(X,1,J.UFE);vz(X,2,J.pvi,D2W,3);vz(X,3,J.coldStartInfo,$2o,3)}; qqW=function(X,J){z5(X,1,J.type);pw(X,2,J.value)}; KmO=function(X,J){rk(X,1,J.hl);rk(X,12,J.deviceMake);rk(X,13,J.deviceModel);z5(X,16,J.clientName);rk(X,17,J.clientVersion);rk(X,18,J.osName);rk(X,19,J.osVersion)}; CmS=function(X,J){rk(X,1,J.name);rk(X,2,J.value)}; MNS=function(X,J){rk(X,1,J.url);if(J.ML)for(var L=0;L0&&!(sBv()>(0,g.uT)()-X*1E3))return 0;X=g.Y1("yt-player-quality");if(typeof X==="string"){if(X=g.b2[X],X>0)return X}else if(X instanceof Object)return X.quality;return 0}; ne=function(){var X=g.Y1("yt-player-proxima-pref");return X==null?null:X}; m2S=function(){var X=g.Y1("yt-player-quality");if(X instanceof Object&&X.quality&&X.previousQuality){if(X.quality>X.previousQuality)return 1;if(X.quality0&&J[0]?X.getAutoplayPolicy(J[0]):X.getAutoplayPolicy("mediaelement");if(xeI[L])return xeI[L]}}catch(x){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; df=function(X){return X.Vq||X.lZ||X.mutedAutoplay}; i2Y=function(X,J){return df(X)?J!==1&&J!==2&&J!==0?"AUTOPLAY_STATUS_UNAVAILABLE":X.Q3?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; QTY=function(X,J,L){var x=J.G();X.thirdParty||(X.thirdParty={});x.ancestorOrigins&&(X.thirdParty.embeddedPlayerContext=Object.assign({},X.thirdParty.embeddedPlayerContext,{ancestorOrigins:x.ancestorOrigins}));x.Y("embeds_enable_autoplay_and_visibility_signals")&&(x.CA!=null&&(X.thirdParty.embeddedPlayerContext=Object.assign({},X.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(x.CA)})),x.yc&&(X.thirdParty.embeddedPlayerContext=Object.assign({},X.thirdParty.embeddedPlayerContext,{visibilityFractionSource:x.yc})), X.thirdParty.embeddedPlayerContext=Object.assign({},X.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:tW(),autoplayIntended:df(J),autoplayStatus:i2Y(J,L)}))}; KPA=function(X){var J=[];X=g.d(X.split(","));for(var L=X.next();!L.done;L=X.next()){var x=L.value;x&&((L=x.startsWith("!"))&&(x=x.substring(1)),x=x.split("-"),x.length<3||J.push({M3:x[0],platform:x[1],deviceVersion:x[2],QK:L}))}return J}; gw8=function(X){return KPA(X).map(function(J){return{deviceInterface:qxY[IJ8[J.M3]]||0,deviceVersion:J.deviceVersion||"",isSleeping:J.QK}})}; g.uI=function(X,J){this.id=X;this.OH=J;this.captionTracks=[];this.N=this.T=null;this.xtags="";this.j=!1;this.L=null;this.K="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";X=this.OH.id.split(".");X.length>1&&(this.j=X[1]==="2")}; ob=function(X,J,L,x,Q){this.K=X;this.L=J;this.N=L;this.reason=x;this.DY=Q===void 0?0:Q}; g.bI=function(X,J,L,x){return new ob(g.b2[X]||0,g.b2[J]||0,L,x)}; PK=function(X){if(So&&X.DY)return!1;var J=g.b2.auto;return X.K===J&&X.L===J}; E_=function(X){return cK[X.L||X.K]||"auto"}; Dem=function(X,J){J=g.b2[J];return X.K<=J&&(!X.L||X.L>=J)}; Ya=function(X){return"["+X.K+"-"+X.L+", override: "+(X.N+", reason: "+X.reason+"]")}; hW=function(X,J,L){this.videoInfos=X;this.L=J;this.audioTracks=[];if(this.L){X=new Set;L==null||L({ainfolen:this.L.length});J=g.d(this.L);for(var x=J.next();!x.done;x=J.next())if(x=x.value,!x.OH||X.has(x.OH.id)){var Q=void 0,K=void 0,q=void 0;(q=L)==null||q({atkerr:!!x.OH,itag:x.itag,xtag:x.L,lang:((Q=x.OH)==null?void 0:Q.name)||"",langid:((K=x.OH)==null?void 0:K.id)||""})}else Q=new g.uI(x.id,x.OH),X.add(x.OH.id),this.audioTracks.push(Q);L==null||L({atklen:this.audioTracks.length})}}; zN=function(){g.G.apply(this,arguments);this.L=null}; yMZ=function(X,J,L,x,Q,K,q){if(X.L)return X.L;var D={},C=new Set,M={};if(WK(x)){for(var y in x.L)x.L.hasOwnProperty(y)&&(X=x.L[y],M[X.info.XE]=[X.info]);return M}y=$e8(J,x,D);K&&Q({aftsrt:pe(y)});for(var n={},V=g.d(Object.keys(y)),H=V.next();!H.done;H=V.next()){H=H.value;for(var O=g.d(y[H]),u=O.next();!u.done;u=O.next()){u=u.value;var S=u.itag,Y=void 0,h=H+"_"+(((Y=u.video)==null?void 0:Y.fps)||0);n.hasOwnProperty(h)?n[h]===!0?M[H].push(u):D[S]=n[h]:(Y=rf(J,u,L,x.isLive,C),Y!==!0?(q.add(H),D[S]=Y, Y==="disablevp9hfr"&&(n[h]="disablevp9hfr")):(M[H]=M[H]||[],M[H].push(u),n[h]=!0))}}K&&Q({bfflt:pe(M)});for(var W in M)M.hasOwnProperty(W)&&(x=W,M[x]&&M[x][0].JO()&&(M[x]=M[x],M[x]=Csz(J,M[x],D),M[x]=MrS(M[x],D)));K&&Object.keys(D).length>0&&Q({rjr:Cv(D)});J=g.d(C.values());for(x=J.next();!x.done;x=J.next())(x=L.T.get(x.value))&&--x.F3;K&&Q({aftflt:pe(M)});X.L=g.Jn(M,function(T){return!!T.length}); return X.L}; VrZ=function(X,J,L,x,Q,K,q,D){D=D===void 0?!1:D;if(J.pO&&q&&q.length>1&&!(J.PJ>0||J.S)){for(var C=J.K||!!Q,M=C&&J.If?K:void 0,y=$e8(J,x),n=[],V=[],H={},O=0;O0&&V&&Q&&(y=[q,L],W=Q.concat(V).filter(function(T){return T})); if(W.length&&!J.yJ){TN(W,y);if(C){C=[];J=g.d(W);for(x=J.next();!x.done;x=J.next())C.push(x.value.itag);K({hbdfmt:C.join(".")})}return c6(new hW(W,X,M))}W=SxS(J);W=g.Ou(W,D);if(!W){if(n[q])return K=n[q],TN(K),c6(new hW(K,X,M));C&&K({novideo:1});return P6()}J.H9&&(W==="1"||W==="1h")&&n[L]&&(q=GN(n[W]),y=GN(n[L]),y>q?W=L:y===q&&Psm(n[L])&&(W=L));W==="9"&&n.h&&GN(n.h)>GN(n["9"])&&(W="h");J.A0&&x.isLive&&W==="("&&n.H&&GN(n["("])<1440&&(W="H");C&&K({vfmly:fe(W)});J=n[W];if(!J.length)return C&&K({novfmly:fe(W)}), P6();TN(J);return c6(new hW(J,X,M))}; O2R=function(X,J){var L=!(!X.m&&!X.M),x=!(!X.mac3&&!X.MAC3),Q=!(!X.meac3&&!X.MEAC3);X=!(!X.i&&!X.I);J.RT=X;return L||x||Q||X}; Psm=function(X){X=g.d(X);for(var J=X.next();!J.done;J=X.next())if(J=J.value,J.itag&&cMO.has(J.itag))return!0;return!1}; wyY=function(X){X=g.d(X);for(var J=X.next();!J.done;J=X.next())if(J.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; fe=function(X){switch(X){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return X}}; pe=function(X){var J=[],L;for(L in X)if(X.hasOwnProperty(L)){var x=L;J.push(fe(x));x=g.d(X[x]);for(var Q=x.next();!Q.done;Q=x.next())J.push(Q.value.itag)}return J.join(".")}; H2I=function(X,J,L,x,Q,K){var q={},D={};g.XX(J,function(C,M){C=C.filter(function(y){var n=y.itag;if(!y.V0)return D[n]="noenc",!1;if(K.z6&&y.XE==="(h"&&K.Cm)return D[n]="lichdr",!1;if(!X.j&&y.XE==="1e")return D[n]="noav1enc",!1;if(y.XE==="("||y.XE==="(h"){if(X.N&&L&&L.flavor==="widevine"){var V=y.mimeType+"; experimental=allowed";(V=!!y.V0[L.flavor]&&!!L.L[V])||(D[n]=y.V0[L.flavor]?"unspt":"noflv");return V}if(!eo(X,FV.CRYPTOBLOCKFORMAT)&&!X.gI||X.Pl)return D[n]=X.Pl?"disvp":"vpsub",!1}return L&&y.V0[L.flavor]&& L.L[y.mimeType]?!0:(D[n]=L?y.V0[L.flavor]?"unspt":"noflv":"nosys",!1)}); C.length&&(q[M]=C)}); x&&Object.entries(D).length&&Q({rjr:Cv(D)});return q}; MrS=function(X,J){var L=a3(X,function(x,Q){return Q.video.fps>32?Math.min(x,Q.video.width):x},Infinity); L32||x.video.widthX.B)return"max"+X.B;if(X.J0&&J.XE==="h"&&J.video&&J.video.qualityOrdinal>1080)return"blkhigh264";if(J.XE==="(h"&&!L.W)return"enchdr";if((x===void 0?0:x)&&ji(J)&&!X.Bl)return"blk51live";if((J.XE==="MAC3"||J.XE==="mac3")&&!X.T)return"blkac3";if((J.XE==="MEAC3"||J.XE==="meac3")&&!X.j)return"blkeac3";if(J.XE==="M"||J.XE==="m")return"blkaac51"; if((J.XE==="so"||J.XE==="sa")&&!X.Km)return"blkamb";if(!X.z6&&EEW(J)&&(!L.j||J.XE!=="1e"))return"cbc";if(!L.j&&EEW(J)&&J.XE==="1e")return"cbcav1";if((J.XE==="i"||J.XE==="I")&&!X.H4)return"blkiamf";var K;if(X.Nx&&((K=J.audio)==null?void 0:K.K)===!0)return"blkvbcabr";var q,D;if(X.Hl&&(J.XE==="1"||J.XE==="1h"||L.j&&J.XE==="1e")&&((q=J.video)==null?0:q.qualityOrdinal)&&((D=J.video)==null?void 0:D.qualityOrdinal)>X.Hl)return"av1cap";x=L.T.get(J.XE);if(!X.Lp&&x&&x.F3>0)return Q.add(J.XE),"byerr";var C; if((C=J.video)==null?0:C.fps>32){if(!L.FE&&!eo(L,FV.FRAMERATE))return"capHfr";if(X.SC&&J.video.qualityOrdinal>=4320)return"blk8khfr";if(za(J)&&X.ek&&J.V0&&J.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(X.DY&&J.DY>X.DY)return"ratecap";X=Ewm(L,J);return X!==!0?X:!0}; TN=function(X,J){J=J===void 0?[]:J;g.BV(X,function(L,x){var Q=x.DY-L.DY;if(!L.JO()||!x.JO())return Q;var K=x.video.height*x.video.width-L.video.height*L.video.width;!K&&J&&J.length>0&&(L=J.indexOf(L.XE)+1,x=J.indexOf(x.XE)+1,K=L===0||x===0?x||-1:L-x);K||(K=Q);return K})}; g.lI=function(X,J){this[I[20]]=X;this[I[67]]=J===void 0?!1:J;this[I[2]]=this[I[6]]=this[I[14]]=I[24];this[I[7]]={};this[I[33]]=I[24]}; BK=function(X){Rb(X);return X[I[2]]}; s_=function(X){return X[I[20]]?X[I[20]][I[38]](I[64]):X[I[14]]===I[64]}; YxI=function(X){Rb(X);return g.iB(X[I[7]],function(J){return J!==null})}; Nu=function(X){Rb(X);var J=decodeURIComponent(X[I[74]](I[53])||I[24])[I[47]](I[37]);return X[I[6]]===I[10]&&J[I[1]]>1&&!!J[1]}; U_=function(X,J){J=J===void 0?!1:J;Rb(X);if(X[I[6]]!==I[10]){var L=X[I[54]]();L[I[25]](I[48],I[8]);return L}var x=X[I[84]]();L=new g.xv(x);var Q=X[I[74]](I[50]),K=decodeURIComponent(X[I[74]](I[53])||I[24])[I[47]](I[37]);if(Q&&K&&K[I[1]]>1&&K[1])return x=L.L,X=x[I[59]](/^[^.]*/,I[24]),g.Qj(L,(x[I[0]](I[35])===0?I[35]:I[45])+Q+I[86]+K[1]+X),L=new g.lI(L[I[40]]()),L[I[25]](I[66],I[8]),L;if(J)return L=X[I[54]](),L[I[25]](I[66],I[8]),L;Q=L.L[I[36]](I[39]);L.L[I[36]](I[32])?(g.Qj(L,I[81]),x=L[I[40]]()): L.L[I[36]](I[51])?(g.Qj(L,I[72]),x=L[I[40]]()):(L=a4P(x),fD(L)&&(x=L));L=new g.lI(x);L[I[25]](I[21],I[8]);Q&&L[I[25]](I[80],I[31]);return L}; Rb=function(X){if(X[I[20]]){if(!(fD(X[I[20]])||X[I[20]][I[38]](I[64])||X[I[20]][I[38]](I[83])||X[I[20]][I[38]](I[26])))throw new g.Fm(I[4],X[I[20]]);var J=g.CT(X[I[20]]);X[I[14]]=J.j;X[I[2]]=J.L+(J.N!=null?I[65]+J.N:I[24]);var L=J.K;if(L[I[38]](I[10]))X[I[6]]=I[10],L=L[I[18]](14);else if(L[I[38]](I[41]))X[I[6]]=I[41],L=L[I[18]](13);else if(L[I[38]](I[22])){var x=L[I[0]](I[15],12),Q=L[I[0]](I[15],x+1);x>0&&Q>0?(X[I[6]]=L[I[18]](0,Q),L=L[I[18]](Q+1)):(X[I[6]]=L,L=I[24])}else X[I[6]]=L,L=I[24];x=X[I[7]]; X[I[7]]=hKI(L);Object[I[78]](X[I[7]],zKm(J.T.toString()));Object[I[78]](X[I[7]],x);X[I[7]][I[34]]===I[85]&&(delete X[I[7]][I[34]],X[I[6]]+=I[11]);X[I[20]]=I[24];X[I[33]]=I[24];X[I[67]]&&(Rb(X),J=X[I[7]][I[62]]||null)&&(J=WPz[0](J),X[I[25]](I[62],J))}}; pyR=function(X){Rb(X);var J=X[I[14]]+(X[I[14]]?I[3]:I[82])+X[I[2]]+X[I[6]];if(YxI(X)){var L=[];g.XX(X[I[7]],function(x,Q){x!==null&&L[I[17]](Q+I[19]+x)}); J+=I[23]+L[I[9]](I[12])}return J}; hKI=function(X){X=X[I[47]](I[15]);var J=0;X[0]||J++;for(var L={};J0?rMO(J,x[I[18]](0,Q),x[I[18]](Q+1)):x&&(J[x]=I[24])}return J}; rMO=function(X,J,L){if(J===I[79]){var x;(x=L[I[0]](I[19]))>=0?(J=I[56]+L[I[18]](0,x),L=L[I[18]](x+1)):(x=L[I[0]](I[73]))>=0&&(J=I[56]+L[I[18]](0,x),L=L[I[18]](x+3))}X[J]=L}; ms=function(X){var J=g.F(X,vwm)||X[I[49]];X={yG:!1,xk:I[24],kz:I[24],s:I[24]};if(!J)return X;J=ZB(J);X[I[58]]=!0;X[I[68]]=J[I[33]];X[I[28]]=J[I[42]];X[I[52]]=J[I[52]];return X}; ka=function(X,J,L,x,Q,K,q,D,C){this.Vl=X;this.startTime=J;this.duration=L;this.ingestionTime=x;this.sourceURL=Q;this.ge=C;this.endTime=J+L;this.L=q||0;this.range=K||null;this.pending=D||!1;this.ge=C||null}; g.ZP=function(){this.segments=[];this.L=null;this.K=!0;this.N=""}; jTZ=function(X,J){if(J>X.Md())X.segments=[];else{var L=HV(X.segments,function(x){return x.Vl>=J},X); L>0&&X.segments.splice(0,L)}}; AW=function(X,J,L,x,Q){Q=Q===void 0?!1:Q;this.data=X;this.offset=J;this.size=L;this.type=x;this.L=(this.K=Q)?0:8;this.dataOffset=this.offset+this.L}; Xa=function(X){var J=X.data.getUint8(X.offset+X.L);X.L+=1;return J}; Je=function(X){var J=X.data.getUint16(X.offset+X.L);X.L+=2;return J}; LE=function(X){var J=X.data.getInt32(X.offset+X.L);X.L+=4;return J}; xz=function(X){var J=X.data.getUint32(X.offset+X.L);X.L+=4;return J}; ii=function(X){var J=X.data;var L=X.offset+X.L;J=J.getUint32(L)*4294967296+J.getUint32(L+4);X.L+=8;return J}; Q2=function(X,J){J=J===void 0?NaN:J;if(isNaN(J))var L=X.size;else for(L=X.L;L1?Math.ceil(Q*J):Math.floor(Q*J))}X.skip(1);L=Xa(X)<<16|Je(X);if(L&256){x=L&1;Q=L&4;var K=L&512,q=L&1024,D=L&2048;L=xz(X);x&&X.skip(4);Q&&X.skip(4);x=(K?4:0)+(q?4:0)+(D?4:0);for(Q=0;Q1?Math.ceil(q*J):Math.floor(q*J)),X.skip(x)}}}; M1=function(X){X=new DataView(X.buffer,X.byteOffset,X.byteLength);return(X=g.$z(X,0,1836476516))?g.CE(X):NaN}; me8=function(X){var J=g.$z(X,0,1937011556);if(!J)return null;J=y2(X,J.dataOffset+8,1635148593)||y2(X,J.dataOffset+8,1635135537);if(!J)return null;var L=y2(X,J.dataOffset+78,1936995172),x=y2(X,J.dataOffset+78,1937126244);if(!x)return null;J=null;if(L)switch(L.skip(4),Xa(L)){default:J=0;break;case 1:J=2;break;case 2:J=1;break;case 3:J=255}var Q=L=null,K=null;if(x=y2(X,x.dataOffset,1886547818)){var q=y2(X,x.dataOffset,1886546020),D=y2(X,x.dataOffset,2037673328);if(!D&&(D=y2(X,x.dataOffset,1836279920), !D))return null;q&&(q.skip(4),L=LE(q)/65536,K=LE(q)/65536,Q=LE(q)/65536);X=TVY(D);X=new DataView(X.buffer,X.byteOffset+8,X.byteLength-8);return new NVO(J,L,K,Q,X)}return null}; y2=function(X,J,L){for(;nE(X,J);){var x=V2(X,J);if(x.type===L)return x;J+=x.size}return null}; g.$z=function(X,J,L){for(;nE(X,J);){var x=V2(X,J);if(x.type===L)return x;J=Hx(x.type)?J+8:J+x.size}return null}; g.OW=function(X){if(X.data.getUint8(X.dataOffset)){var J=X.data;X=X.dataOffset+4;J=J.getUint32(X)*4294967296+J.getUint32(X+4)}else J=X.data.getUint32(X.dataOffset+4);return J}; V2=function(X,J){var L=X.getUint32(J),x=X.getUint32(J+4);return new AW(X,J,L,x)}; g.CE=function(X){var J=X.data.getUint8(X.dataOffset)?20:12;return X.data.getUint32(X.dataOffset+J)}; kXW=function(X){X=new AW(X.data,X.offset,X.size,X.type,X.K);var J=Xa(X);X.skip(7);var L=xz(X);if(J===0){J=xz(X);var x=xz(X)}else J=ii(X),x=ii(X);X.skip(2);for(var Q=Je(X),K=[],q=[],D=0;D122)return!1}return!0}; Hx=function(X){return X===1701082227||X===1836019558||X===1836019574||X===1835297121||X===1835626086||X===1937007212||X===1953653094||X===1953653099||X===1836475768}; Z2A=function(X){X.skip(4);return{dQl:Q2(X,0),value:Q2(X,0),timescale:xz(X),WSB:xz(X),K$l:xz(X),id:xz(X),qk:Q2(X),offset:X.offset}}; g.AMv=function(X){var J=y2(X,0,1701671783);if(!J)return null;var L=Z2A(J),x=L.dQl;L=D9(L.qk);if(X=y2(X,J.offset+J.size,1701671783))if(X=Z2A(X),X=D9(X.qk),L&&X){J=g.d(Object.keys(X));for(var Q=J.next();!Q.done;Q=J.next())Q=Q.value,L[Q]=X[Q]}return L?new gM(L,x):null}; a0=function(X,J){for(var L=y2(X,0,J);L;){var x=L;x.type=1936419184;x.data.setUint32(x.offset+4,1936419184);L=y2(X,L.offset+L.size,J)}}; g.wM=function(X,J){for(var L=0,x=[];nE(X,L);){var Q=V2(X,L);Q.type===J&&x.push(Q);L=Hx(Q.type)?L+8:L+Q.size}return x}; XUZ=function(X,J){var L=g.$z(X,0,1937011556),x=g.$z(X,0,1953654136);if(!L||!x||X.getUint32(L.offset+12)>=2)return null;var Q=new DataView(J.buffer,J.byteOffset,J.length),K=g.$z(Q,0,1937011556);if(!K)return null;J=Q.getUint32(K.dataOffset+8);x=Q.getUint32(K.dataOffset+12);if(x!==1701733217&&x!==1701733238)return null;x=new GX8(X.byteLength+J);KE(x,X,0,L.offset+12);x.data.setInt32(x.offset,2);x.offset+=4;KE(x,X,L.offset+16,L.size-16);KE(x,Q,Q.byteOffset+K.dataOffset+8,J);KE(x,X,L.offset+L.size,X.byteLength- (L.offset+L.size));L=g.d([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(Q=L.next();!Q.done;Q=L.next())Q=g.$z(X,0,Q.value),x.data.setUint32(Q.offset,Q.size+J);X=g.$z(x.data,0,1953654136);x.data.setUint32(X.offset+16,2);return x.data}; Jbv=function(X){var J=g.$z(X,0,1937011556);if(!J)return null;var L=X.getUint32(J.dataOffset+12);if(L!==1701733217&&L!==1701733238)return null;J=y2(X,J.offset+24+(L===1701733217?28:78),1936289382);if(!J)return null;L=y2(X,J.offset+8,1935894637);if(!L||X.getUint32(L.offset+12)!==1667392371)return null;J=y2(X,J.offset+8,1935894633);if(!J)return null;J=y2(X,J.offset+8,1952804451);if(!J)return null;L=new Uint8Array(16);for(var x=0;x<16;x++)L[x]=X.getInt8(J.offset+16+x);return L}; te=function(X,J){this.L=X;this.pos=0;this.start=J||0}; dM=function(X){return X.pos>=X.L.byteLength}; Px=function(X,J,L){var x=new te(L);if(!ui(x,X))return!1;x=o0(x);if(!bi(x,J))return!1;for(X=0;J;)J>>>=8,X++;J=x.start+x.pos;var Q=SU(x,!0);x=X+(x.start+x.pos-J)+Q;x=x>9?LLe(x-9,8):LLe(x-2,1);X=J-X;L.setUint8(X++,236);for(J=0;JL;Q++)L=L*256+zn(X),x*=128;return J?L-x:L}; EW=function(X){var J=SU(X,!0);X.pos+=J}; Qxm=function(X){if(!bi(X,440786851,!0))return null;var J=X.pos;SU(X,!1);var L=SU(X,!0)+X.pos-J;X.pos=J+L;if(!bi(X,408125543,!1))return null;SU(X,!0);if(!bi(X,357149030,!0))return null;var x=X.pos;SU(X,!1);var Q=SU(X,!0)+X.pos-x;X.pos=x+Q;if(!bi(X,374648427,!0))return null;var K=X.pos;SU(X,!1);var q=SU(X,!0)+X.pos-K,D=new Uint8Array(L+12+Q+q),C=new DataView(D.buffer);D.set(new Uint8Array(X.L.buffer,X.L.byteOffset+J,L));C.setUint32(L,408125543);C.setUint32(L+4,33554431);C.setUint32(L+8,4294967295); D.set(new Uint8Array(X.L.buffer,X.L.byteOffset+x,Q),L+12);D.set(new Uint8Array(X.L.buffer,X.L.byteOffset+K,q),L+12+Q);return D}; Wx=function(X){var J=X.pos;X.pos=0;var L=1E6;ui(X,[408125543,357149030,2807729])&&(L=cx(X));X.pos=J;return L}; KLW=function(X,J){var L=X.pos;X.pos=0;if(X.L.getUint8(X.pos)!==160&&!pE(X)||!bi(X,160))return X.pos=L,NaN;SU(X,!0);var x=X.pos;if(!bi(X,161))return X.pos=L,NaN;SU(X,!0);zn(X);var Q=zn(X)<<8|zn(X);X.pos=x;if(!bi(X,155))return X.pos=L,NaN;x=cx(X);X.pos=L;return(Q+x)*J/1E9}; pE=function(X){if(!qc8(X)||!bi(X,524531317))return!1;SU(X,!0);return!0}; qc8=function(X){if(X.G0()){if(!bi(X,408125543))return!1;SU(X,!0)}return!0}; ui=function(X,J){for(var L=0;L0){var x=zKm(J.substring(L+1));g.XX(x,function(Q,K){this.set(K,Q)},X); J=J.substring(0,L)}J=hKI(J);g.XX(J,function(Q,K){this.set(K,Q)},X)}; grz=function(X){var J=X.Jz.Eo(),L=[];g.XX(X.L,function(Q,K){L.push(K+"="+Q)}); if(!L.length)return J;var x=L.join("&");X=YxI(X.Jz)?"&":"?";return J+X+x}; vx=function(X,J){var L=new g.lI(J);(J=L.get("req_id"))&&X.set("req_id",J);g.XX(X.L,function(x,Q){L["set"](Q,null)}); return L}; Dhv=function(){this.T=this.N=this.L=this.timedOut=this.started=this.j=this.K=0}; jU=function(X){X.j=(0,g.uT)();X.started=0;X.timedOut=0;X.L=0}; Tn=function(X,J){var L=X.started+X.L*4;J&&(L+=X.N);L=Math.max(0,L-3);return Math.pow(1.6,L)}; Gn=function(X,J){X[J]||(X[J]=new Dhv);return X[J]}; fE=function(X){this.D=this.W=this.j=this.N=0;this.S=this.B=!1;this.L=X;this.K=X.clone()}; $hY=function(X,J,L){if(s_(X.L))return!1;var x=Gn(L,BK(X.L));if(x.timedOut<1&&x.L<1)return!1;x=x.timedOut+x.L;X=eU(X,J);L=Gn(L,BK(X));return L.timedOut+L.L+01?J=J.lQ:(L=Gn(L,li(X,X.Ms(J,L),J)),J=Math.max(X.j,L.timedOut)+J.q_*(X.N-X.j)+.25*X.W,J=J>3?1E3*Math.pow(1.6,J-3):0);return J===0?!0:X.D+J<(0,g.uT)()}; C2O=function(X,J,L){X.L.set(J,L);X.K.set(J,L);X.T&&X.T.set(J,L)}; MiS=function(X,J,L,x,Q){++X.N;J&&++X.j;BK(L.Jz).startsWith("redirector.")&&(X.L=X.K.clone(),delete X.T,x.jN&&delete Q[BK(X.L)])}; Bx=function(X){return X?(X.itag||"")+";"+(X.lmt||0)+";"+(X.xtags||""):""}; sW=function(X,J,L,x){this.initRange=L;this.indexRange=x;this.L=null;this.N=!1;this.B=0;this.T=this.CL=this.K=null;this.info=J;this.T6=new fE(X)}; N1=function(X,J){this.start=X;this.end=J;this.length=J-X+1}; UW=function(X){X=X.split("-");var J=Number(X[0]),L=Number(X[1]);if(!isNaN(J)&&!isNaN(L)&&X.length===2&&(X=new N1(J,L),!isNaN(X.start)&&!isNaN(X.end)&&!isNaN(X.length)&&X.length>0))return X}; mA=function(X,J){return new N1(X,X+J-1)}; ybA=function(X){return X.end==null?{start:String(X.start)}:{start:String(X.start),end:String(X.end)}}; kz=function(X){if(!X)return new N1(0,0);var J=Number(X.start);X=Number(X.end);if(!isNaN(J)&&!isNaN(X)&&(J=new N1(J,X),J.length>0))return J}; Z9=function(X,J,L,x,Q,K,q,D,C,M,y,n){x=x===void 0?"":x;this.type=X;this.L=J;this.range=L;this.source=x;this.JB=y;this.clipId=n===void 0?"":n;this.D=[];this.W="";this.Vl=-1;this.Km=this.aB=0;this.W=x;this.Vl=Q>=0?Q:-1;this.startTime=K||0;this.duration=q||0;this.K=D||0;this.N=C>=0?C:this.range?this.range.length:NaN;this.j=this.range?this.K+this.N===this.range.length:M===void 0?!!this.N:M;this.range?(this.T=this.startTime+this.duration*this.K/this.range.length,this.S=this.duration*this.N/this.range.length, this.B=this.T+this.S):nrz(this)}; nrz=function(X){X.T=X.startTime;X.S=X.duration;X.B=X.T+X.S}; Vim=function(X,J,L){var x=!(!J||J.L!==X.L||J.type!==X.type||J.Vl!==X.Vl);return L?x&&!!J&&(X.range&&J.range?J.range.end===X.range.end:J.range===X.range)&&J.K+J.N===X.K+X.N:x}; Ae=function(X){return X.type===1||X.type===2}; XJ=function(X){return X.type===3||X.type===6}; Jj=function(X,J){return X.L===J.L?X.range&&J.range?X.range.start+X.K+X.N===J.range.start+J.K:X.Vl===J.Vl?X.K+X.N===J.K:X.Vl+1===J.Vl&&J.K===0&&X.j:!1}; OvP=function(X,J){return X.Vl!==J.Vl&&J.Vl!==X.Vl+1||X.type!==J.type?!1:Jj(X,J)?!0:Math.abs(X.T-J.T)<=1E-6&&X.Vl===J.Vl?!1:HvO(X,J)}; HvO=function(X,J){return Jj(X,J)||Math.abs(X.B-J.T)<=1E-6||X.Vl+1===J.Vl&&J.K===0&&X.j?!0:!1}; LY=function(X){return X.Vl+(X.j?1:0)}; abZ=function(X){X.length===1||g.Ot(X,function(L){return!!L.range}); for(var J=1;J=J.range.start+J.K&&X.range.start+X.K+X.N<=J.range.start+J.K+J.N:X.Vl===J.Vl&&X.K>=J.K&&(X.K+X.N<=J.K+J.N||J.j)}; ScR=function(X,J){return X.L!==J.L?!1:X.type===4&&J.type===3&&X.L.Fy()?(X=X.L.Q1(X),Fe(X,function(L){return ScR(L,J)})):X.Vl===J.Vl&&!!J.N&&J.K+J.N>X.K&&J.K+J.N<=X.K+X.N}; ip=function(X,J){var L=J.Vl;X.W="updateWithSegmentInfo";X.Vl=L;if(X.startTime!==J.startTime||X.duration!==J.duration)X.startTime=J.startTime+X.aB,X.duration=J.duration,nrz(X)}; Qa=function(X,J){var L=this;this.eC=X;this.T=this.L=null;this.j=this.fn=NaN;this.Ms=this.requestId=null;this.Zh={TUC:function(){return L.range}}; this.T6=X[0].L.T6;this.K=J||"";this.eC[0].range&&this.eC[0].N>0&&(wUm(X)?(this.range=abZ(X),this.N=this.range.length):(this.range=this.eC[this.eC.length-1].range,this.N=tiZ(X)))}; KY=function(X){return!Ae(X.eC[X.eC.length-1])}; q7=function(X){return X.eC[X.eC.length-1].type===4}; g.Ie=function(X,J,L){L=X.Ms===null?X.T6.Ms(J,L,X.eC[0].type):X.Ms;if(X.L){J=L?U_(X.L,J.Dp):X.L;var x=new rM(J);x.get("alr")||x.set("alr","yes");X.K&&IbR(x,X.K)}else/http[s]?:\/\//.test(X.K)?x=new rM(new g.lI(X.K)):(x=Fa(X.T6,L,J),X.K&&IbR(x,X.K));(J=X.range)?x.set("range",J.toString()):X.eC[0].L.tU()&&X.eC.length===1&&X.eC[0].K&&x.set("range",X.eC[0].K+"-");X.requestId&&x.set("req_id",X.requestId);isNaN(X.fn)||x.set("headm",X.fn.toString());isNaN(X.j)||x.set("mffa",X.j+"ms");X.urlParams&&g.XX(X.urlParams, function(Q,K){x.set(K,Q)}); return x}; P2R=function(X){if(X.range)return X.N;X=X.eC[0];return Math.round(X.S*X.L.info.DY)}; cbW=function(X,J){return Math.max(0,X.eC[0].T-J)}; gu=function(X,J,L,x,Q,K){K=K===void 0?0:K;sW.call(this,X,J,x,void 0);this.j=L;this.nJ=K;this.index=Q||new g.ZP}; Ero=function(X,J,L,x,Q){this.Vl=X;this.startSecs=J;this.zR=L;this.L=x||NaN;this.K=Q||NaN}; DG=function(X,J,L){for(;X;X=X.parentNode)if(X.attributes&&(!L||X.nodeName===L)){var x=X.getAttribute(J);if(x)return x}return""}; $Q=function(X,J){for(;X;X=X.parentNode){var L=X.getElementsByTagName(J);if(L.length>0)return L[0]}return null}; YcO=function(X){if(!X)return 0;var J=X.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return J?(Number(J[2])|0)*3600+(Number(J[4])|0)*60+(Number(J[6])|0):Number(X)|0}; h$Z=function(X){return X.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?X+"Z":X}; CY=function(){this.L=[];this.K=null;this.B=0;this.N=[];this.j=!1;this.W="";this.T=-1}; z$Z=function(X){var J=X.N;X.N=[];return J}; WLI=function(){this.T=[];this.L=null;this.K={};this.N={}}; jxZ=function(X,J){var L=[];J=Array.from(J.getElementsByTagName("SegmentTimeline"));J=g.d(J);for(var x=J.next();!x.done;x=J.next()){x=x.value;var Q=x.parentNode.parentNode,K=null;Q.nodeName==="Period"?K=pUP(X):Q.nodeName==="AdaptationSet"?(Q=Q.getAttribute("id")||Q.getAttribute("mimetype")||"",K=rbS(X,Q)):Q.nodeName==="Representation"&&(Q=Q.getAttribute("id")||"",K=vrZ(X,Q));if(K==null)return;K.update(x);g.pd(L,z$Z(K))}g.pd(X.T,L);Pvm(X.T,function(q){return q.startSecs*1E3+q.L})}; TSA=function(X){X.L&&(X.L.L=[]);g.XX(X.K,function(J){J.L=[]}); g.XX(X.N,function(J){J.L=[]})}; pUP=function(X){X.L||(X.L=new CY);return X.L}; rbS=function(X,J){X.K[J]||(X.K[J]=new CY);return X.K[J]}; vrZ=function(X,J){X.N[J]||(X.N[J]=new CY);return X.N[J]}; ya=function(X){var J=X===void 0?{}:X;X=J.nJ===void 0?0:J.nJ;var L=J.T0===void 0?!1:J.T0;var x=J.Ey===void 0?0:J.Ey;var Q=J.hO===void 0?0:J.hO;var K=J.PS===void 0?Infinity:J.PS;var q=J.U9===void 0?0:J.U9;var D=J.Bv===void 0?!1:J.Bv;J=J.UR===void 0?!1:J.UR;g.ZP.call(this);this.f$=this.lT=-1;this.vD=X;this.Ey=x;this.T0=L;this.hO=Q;this.PS=K;this.U9=q;((this.Bv=D)||isFinite(K)&&this.PS>0)&&L&&M7&&(this.K=!1,this.N="postLive");this.UR=J}; nY=function(X,J){return Fv(X.segments,function(L){return J-L.Vl})}; Va=function(X,J,L){L=L===void 0?{}:L;gu.call(this,X,J,"",void 0,void 0,L.nJ||0);this.index=new ya(L)}; Hr=function(X,J,L){sW.call(this,X,J);this.j=L;X=this.index=new g.ZP;X.K=!1;X.N="d"}; Ga8=function(X,J,L){var x=X.index.uQ(J),Q=X.index.getStartTime(J),K=X.index.getDuration(J);L?K=L=0:L=X.info.DY*K;return new Qa([new Z9(3,X,void 0,"otfCreateRequestInfoForSegment",J,Q,K,0,L)],x)}; fbA=function(X,J){if(!X.index.isLoaded()){var L=[],x=J.T;J=J.j.split(",").filter(function(y){return y.length>0}); for(var Q=0,K=0,q=0,D=/^(\d+)/,C=/r=(\d+)/,M=0;M0&&(Q.L=Math.min(Q.L+q,10),Q.K=K);Q.L>0?(Q.L--,Q=!0):Q=!1;if(Q)typeof x==="function"&&(x=x()),console.log("plyr."+J,x);else{var D;x=((D=sxI.get(J))!=null?D:0)+1;sxI.set(J,x);x%100===1&&console.warn("plyr","plyr."+J+" is chatty, dropping logs.")}}}; BSO=function(){this.L=10;this.K=Date.now()}; wu=function(X,J){this.info=X;this.K=J;this.L=null;this.T=this.N=-1;this.timestampOffset=0;this.isLocked=this.B=!1;this.j=this.info.L.v$()&&!this.info.K}; g.tj=function(X){return TbS(X.K)}; NSm=function(X,J){J=Math.min(J,X.info.N);var L=X.K.split(J),x=L.SR;L=new wu(new Z9(X.info.type,X.info.L,X.info.range,X.info.W,X.info.Vl,X.info.startTime,X.info.duration,X.info.K,J,!1,X.info.JB,X.info.clipId),L.YK);L.T=X.T;L.N=X.N;J=new wu(new Z9(X.info.type,X.info.L,X.info.range,X.info.W,X.info.Vl,X.info.startTime,X.info.duration,X.info.K+J,X.info.N-J,X.info.j,X.info.JB,X.info.clipId),x);J.T=X.T;J.N=X.N;return[L,J]}; g.du=function(X,J,L,x){L=L===void 0?!1:L;x=x===void 0?0:x;if(X.isLocked||J.isLocked||!Jj(X.info,J.info)||X.info.j)return null;if(x){if(X.K.totalLength+J.K.totalLength>x)return null}else if(L&&(L=X.K,x=J.K,L=!(x.L.length?vtz(L,x.L[0]):1)),L)return null;L=new Z9(X.info.type,X.info.L,X.info.range,X.info.W,X.info.Vl,X.info.startTime,X.info.duration,X.info.K,X.info.N,X.info.j,X.info.JB,X.info.clipId);x=J.info;L.N+=x.N;L.range&&(L.S+=x.S);L.B=x.B;L.j=x.j;x=new iE;Qm(x,X.K);Qm(x,J.K);L=new wu(L,x);L.L!= null&&J.L!=null&&(new g.OS("dash")).L(414627957,"merged slice emsg overridden; prev: "+L.L.cB()+" next: "+J.L.cB());L.L=J.L||X.L;L.N=X.N!==-1?X.N:J.N;L.T=X.T!==-1?X.T:J.T;return L}; g.up=function(X){g.Ta(X.info.L.info)||X.info.L.info.KY();if(X.N!==-1)return X.N;if(X.L&&FPW(X.L))return X.N=FPW(X.L),X.N;if(g.Ta(X.info.L.info)){var J=g.tj(X);for(var L=X.info.L.L,x=NaN,Q=NaN,K=0;nE(J,K);){var q=V2(J,K);q.type===1936286840?Q=q.data.getUint32(q.dataOffset+8):q.type===1836476516?Q=g.CE(q):q.type===1952867444&&isNaN(x)&&(x=g.OW(q));K=Hx(q.type)?K+8:K+q.size}!Q&&L&&(Q=M1(L));J=x/Q}else J=new te(g.tj(X)),L=X.j?J:new te(new DataView(X.info.L.L.buffer)),x=Wx(L),L=J.pos,J.pos=0,pE(J)?bi(J, 231)?(x=cx(J)*x/1E9,J.pos=L,J=x):(J.pos=L,J=NaN):(J.pos=L,J=NaN);X.N=J||X.info.T;return X.N}; mhA=function(X,J){X.timestampOffset>0&&(J-=X.timestampOffset);var L=g.up(X)+J;UhP(X,L);X.timestampOffset=J}; UhP=function(X,J){g.Ta(X.info.L.info)||X.info.L.info.KY();X.N=J;if(g.Ta(X.info.L.info)){var L=g.tj(X);X=X.info.L.L;for(var x=NaN,Q=NaN,K=0;nE(L,K);){var q=V2(L,K);isNaN(x)&&(q.type===1936286840?x=q.data.getUint32(q.dataOffset+8):q.type===1836476516&&(x=g.CE(q)));if(q.type===1952867444){!x&&X&&(x=M1(X));var D=g.OW(q);isNaN(Q)&&(Q=Math.round(J*x)-D);var C=q;D+=Q;if(C.data.getUint8(C.dataOffset)){var M=C.data;C=C.dataOffset+4;M.setUint32(C,Math.floor(D/4294967296));M.setUint32(C+4,D&4294967295)}else C.data.setUint32(C.dataOffset+ 4,D)}K=Hx(q.type)?K+8:K+q.size}return!0}L=new te(g.tj(X));X=X.j?L:new te(new DataView(X.info.L.L.buffer));x=Wx(X);X=L.pos;L.pos=0;if(pE(L)&&bi(L,231))if(Q=SU(L,!0),J=Math.floor(J*1E9/x),Math.ceil(Math.log(J)/Math.log(2)/8)>Q)J=!1;else{for(x=Q-1;x>=0;x--)L.L.setUint8(L.pos+x,J&255),J>>>=8;L.pos=X;J=!0}else J=!1;return J}; bp=function(X,J){J=J===void 0?!1:J;var L=oe(X);X=J?0:X.info.S;return L||X}; oe=function(X){g.Ta(X.info.L.info)||X.info.L.info.KY();if(X.L&&X.info.type===6)return X.L.nJ;if(g.Ta(X.info.L.info)){var J=g.tj(X);var L=0;J=g.wM(J,1936286840);J=g.d(J);for(var x=J.next();!x.done;x=J.next())x=kXW(x.value),L+=x.VL[0]/x.timescale;L=L||NaN;if(!(L>=0))a:{L=g.tj(X);J=X.info.L.L;for(var Q=x=0,K=0;nE(L,x);){var q=V2(L,x);if(q.type===1836476516)Q=g.CE(q);else if(q.type===1836019558){!Q&&J&&(Q=M1(J));if(!Q){L=NaN;break a}var D=y2(q.data,q.dataOffset,1953653094),C=D;D=Q;var M=y2(C.data,C.dataOffset, 1952868452);C=y2(C.data,C.dataOffset,1953658222);var y=LE(M);LE(M);y&2&&LE(M);M=y&8?LE(M):0;var n=LE(C),V=n&1;y=n&4;var H=n&256,O=n&512,u=n&1024;n&=2048;var S=xz(C);V&&LE(C);y&&LE(C);for(var Y=V=0;Y2048?"":J.indexOf("https://")===0?J:""}; hj=function(X,J,L){J.match(IUA);return X(J,L).then(function(x){var Q=g.qHO(x.xhr);return Q?hj(X,Q,L):x.xhr})}; ru=function(X,J,L){X=X===void 0?"":X;J=J===void 0?null:J;L=L===void 0?!1:L;g.Ly.call(this);var x=this;this.sourceUrl=X;this.isLivePlayback=L;this.Hl=this.duration=0;this.isPremiere=this.Bv=this.T=this.isLiveHeadPlayable=this.isLive=this.K=!1;this.PS=this.hO=0;this.isOtf=this.Zw=!1;this.vl=(0,g.uT)();this.Km=Infinity;this.L={};this.N=new Map;this.state=this.q2=0;this.timeline=null;this.isManifestless=!1;this.Pl=[];this.B=null;this.gI=0;this.j="";this.Bl=NaN;this.FE=this.z6=this.timestampOffset=this.W= 0;this.Xb=this.L1=NaN;this.If=0;this.jC=this.D=!1;this.bB=[];this.SC={};this.aB=NaN;this.Zh={B8i:function(D){zO(x,D)}}; var Q;this.J0=(Q=J)==null?void 0:Q.Mi("html5_use_network_error_code_enums");gjO=!!J&&J.Mi("html5_modern_vp9_mime_type");var K;Wr=!((K=J)==null||!K.Mi("html5_enable_flush_during_seek"))&&g.fU();var q;pY=!((q=J)==null||!q.Mi("html5_enable_reset_audio_decoder"))&&g.fU()}; DrW=function(X){return g.iB(X.L,function(J){return!!J.info.video&&J.info.video.qualityOrdinal>=2160})}; b2o=function(X){return g.iB(X.L,function(J){return!!J.info.video&&J.info.video.isHdr()})}; vK=function(X){return g.iB(X.L,function(J){return!!J.info.V0})}; g.$rm=function(X){return g.iB(X.L,function(J){return l2(J.info.mimeType)})}; Cw8=function(X){return g.iB(X.L,function(J){return J.info.video?J.info.video.projectionType==="EQUIRECTANGULAR":!1})}; M5S=function(X){return g.iB(X.L,function(J){return J.info.video?J.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; yfR=function(X){return g.iB(X.L,function(J){return J.info.video?J.info.video.projectionType==="MESH":!1})}; njO=function(X){return g.iB(X.L,function(J){return J.info.video?J.info.video.stereoLayout===1:!1})}; V5Y=function(X){return zmI(X.L,function(J){return J.info.video?J.tF():!0})}; WK=function(X){return g.iB(X.L,function(J){return s_(J.T6.L)})}; zO=function(X,J){X.L[J.info.id]=J;X.N.set(Bx(g.fv(J.info,X.Zw)),J)}; TO=function(X,J,L){L=L===void 0?0:L;var x=X.mimeType||"",Q=X.itag;var K=X.xtags;Q=Q?Q.toString():"";K&&(Q+=";"+K);K=Q;if(Fs(x)){var q=X.width||640;Q=X.height||360;var D=X.fps,C=X.qualityLabel,M=X.colorInfo,y=X.projectionType,n;X.stereoLayout&&(n=H8I[X.stereoLayout]);var V=QJA(X)||void 0;if(M==null?0:M.primaries)var H=O8m[M.primaries]||void 0;q=new Si(q,Q,D,y,n,void 0,C,V,H);x=vr(x,q,Ec[X.itag||""]);Wr&&(x+="; enableflushduringseek=true");pY&&(x+="; enableresetaudiodecoder=true")}var O;if(ei(x)){var u= X.audioSampleRate;n=X.audioTrack;u=new u2(u?+u:void 0,X.audioChannels,X.spatialAudioType,X.isDrc,X.loudnessDb,X.trackAbsoluteLoudnessLkfs,X.audioQuality||"AUDIO_QUALITY_UNKNOWN",X.isVb);n&&(H=n.displayName,Q=n.id,n=n.audioIsDefault,H&&(O=new g.YQ(H,Q||"",!!n)))}var S;X.captionTrack&&(C=X.captionTrack,n=C.displayName,H=C.vssId,Q=C.languageCode,D=C.kind,C=C.id,n&&H&&Q&&(S=new xrR(n,H,Q,D,X.xtags,C)));n=Number(X.bitrate)/8;H=Number(X.contentLength);Q=Number(X.lastModified);C=X.drmFamilies;D=X.type;L= L&&H?H/L:0;X=Number(X.approxDurationMs);if(J&&C){var Y={};C=g.d(C);for(M=C.next();!M.done;M=C.next())(M=j0[M.value])&&(Y[M]=J[M])}return new Yr(K,x,{audio:u,video:q,OH:O,V0:Y,DY:n,RI:L,contentLength:H,lastModified:Q,captionTrack:S,streamType:D,approxDurationMs:X})}; GO=function(X,J,L){L=L===void 0?0:L;var x=X.type;var Q=X.itag;var K=X.xtags;K&&(Q=X.itag+";"+K);if(Fs(x)){var q=(X.size||"640x360").split("x");q=new Si(+q[0],+q[1],+X.fps,X.projection_type,+X.stereo_layout,void 0,X.quality_label,X.eotf,X.primaries);x=vr(x,q,Ec[X.itag]);Wr&&(x+="; enableflushduringseek=true");pY&&(x+="; enableresetaudiodecoder=true")}var D;if(ei(x)){var C=new u2(+X.audio_sample_rate||void 0,+X.audio_channels||0,X.spatial_audio_type,!!X.drc);X.name&&(D=new g.YQ(X.name,X.audio_track_id, X.isDefault==="1"))}var M;X.caption_display_name&&X.caption_vss_id&&X.caption_language_code&&(M=new xrR(X.caption_display_name,X.caption_vss_id,X.caption_language_code,X.caption_kind,X.xtags,X.caption_id));K=Number(X.bitrate)/8;var y=Number(X.clen),n=Number(X.lmt);L=L&&y?y/L:0;if(J&&X.drm_families){var V={};for(var H=g.d(X.drm_families.split(",")),O=H.next();!O.done;O=H.next())O=O.value,V[O]=J[O]}return new Yr(Q,x,{audio:C,video:q,OH:D,V0:V,DY:K,RI:L,contentLength:y,lastModified:n,captionTrack:M, streamType:X.stream_type,approxDurationMs:Number(X.approx_duration_ms)})}; aUm=function(X){return Fe(X,function(J){return"FORMAT_STREAM_TYPE_OTF"===J.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; wvY=function(X){return Fe(X,function(J){return"FORMAT_STREAM_TYPE_OTF"===J.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; t5S=function(X,J){return X.timeline?r3(X.timeline.T,J):X.Pl.length?r3(X.Pl,J):[]}; fY=function(X,J,L){J=J===void 0?"":J;L=L===void 0?"":L;X=new g.lI(X,!0);X.set("alr","yes");L&&(L=RMm(decodeURIComponent(L)),X[I[25]](J,encodeURIComponent(L)));return X}; b8m=function(X,J){var L=DG(J,"id");L=L.replace(":",";");var x=DG(J,"mimeType"),Q=DG(J,"codecs");x=Q?x+'; codecs="'+Q+'"':x;Q=Number(DG(J,"bandwidth"))/8;var K=Number($Q(J,"BaseURL").getAttribute(X.j+":contentLength")),q=X.duration&&K?K/X.duration:0;if(Fs(x)){var D=Number(DG(J,"width"));var C=Number(DG(J,"height")),M=Number(DG(J,"frameRate")),y=drm(DG(J,X.j+":projectionType"));a:switch(DG(J,X.j+":stereoLayout")){case "layout_left_right":var n=1;break a;case "layout_top_bottom":n=2;break a;default:n= 0}D=new Si(D,C,M,y,n)}if(ei(x)){var V=Number(DG(J,"audioSamplingRate"));var H=Number(DG(J.getElementsByTagName("AudioChannelConfiguration")[0],"value"));C=uOe(DG(J,X.j+":spatialAudioType"));V=new u2(V,H,C);a:{H=DG(J,"lang")||"und";if(C=$Q(J,"Role"))if(y=DG(C,"value")||"",g.DR(ojA,y)){C=H+"."+ojA[y];M=y==="main";X=DG(J,X.j+":langName")||H+" - "+y;H=new g.YQ(X,C,M);break a}H=void 0}}if(J=$Q(J,"ContentProtection"))if(J.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var O={};for(J= J.firstChild;J!=null;J=J.nextSibling)J instanceof Element&&/SystemURL/.test(J.nodeName)&&(X=J.getAttribute("type"),C=J.textContent,X&&C&&(O[X]=C.trim()))}else O=void 0;return new Yr(L,x,{audio:V,video:D,OH:H,V0:O,DY:Q,RI:q,contentLength:K})}; drm=function(X){switch(X){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"}}; uOe=function(X){switch(X){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"}}; Pwv=function(X,J){J=J===void 0?"":J;X.state=1;X.vl=(0,g.uT)();return KKR(J||X.sourceUrl).then(function(L){if(!X.E6()){X.q2=L.status;L=L.responseText;var x=new DOMParser;L=Sv(x,W5O(L),"text/xml").getElementsByTagName("MPD")[0];X.Km=YcO(DG(L,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(L.attributes){x=g.d(L.attributes);for(var Q=x.next();!Q.done;Q=x.next())if(Q=Q.value,Q.value==="http://youtube.com/yt/2012/10/10"){x=Q.name.split(":")[1];break b}}x=""}X.j=x;X.isLive=X.Km=X.Km}; EjW=function(X){X.B&&X.B.stop()}; SHS=function(X){var J=X.Km;isFinite(J)&&(e0(X)?X.refresh():(J=Math.max(0,X.vl+J-(0,g.uT)()),X.B||(X.B=new g.sn(X.refresh,J,X),g.f(X,X.B)),X.B.start(J)))}; YHS=function(X){X=X.L;for(var J in X){var L=X[J].index;if(L.isLoaded())return L.Md()+1}return 0}; FJ=function(X){return X.z6?X.z6-(X.W||X.timestampOffset):0}; lp=function(X){return X.FE?X.FE-(X.W||X.timestampOffset):0}; Re=function(X){if(!isNaN(X.Bl))return X.Bl;var J=X.L,L;for(L in J){var x=J[L].index;if(x.isLoaded()&&!l2(J[L].info.mimeType)){J=0;for(L=x.IW();L<=x.Md();L++)J+=x.getDuration(L);J/=x.bR();J=Math.round(J/.5)*.5;x.bR()>10&&(X.Bl=J);return J}if(X.isLive&&(x=J[L],x.nJ))return x.nJ}return NaN}; h_v=function(X,J){X=pWm(X.L,function(x){return x.index.isLoaded()}); if(!X)return NaN;X=X.index;var L=X.P5(J);return X.getStartTime(L)===J?J:L=0&&Q.segments.splice(K,1)}}}; WKA=function(X){for(var J in X.L)l2(X.L[J].info.mimeType)||jTZ(X.L[J].index,Infinity)}; N7=function(X,J,L){for(var x in X.L){var Q=X.L[x].index,K=J,q=L;Q.T0&&(K&&(Q.lT=Math.max(Q.lT,K)),q&&(Q.f$=Math.max(Q.f$||0,q)))}L&&(X.aB=L/1E3)}; pvS=function(X){X.FE=0;X.z6=0;X.If=0}; US=function(X){return X.jC&&X.isManifestless?X.isLiveHeadPlayable:X.isLive}; vr=function(X,J,L){mE===null&&(mE=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(gjO&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return mE||L!=="9"&&L!=="("?mE||L!=="9h"&&L!=="(h"||(X='video/webm; codecs="vp9.2"'):X='video/webm; codecs="vp9"',X;if(!mE&&!kQ||X!=='video/webm; codecs="vp9"'&&X!=='video/webm; codecs="vp9.2"')return X; L="00";var x="08",Q="01",K="01",q="01";X==='video/webm; codecs="vp9.2"'&&(L="02",x="10",J.primaries==="bt2020"&&(q=Q="09"),J.L==="smpte2084"&&(K="16"),J.L==="arib-std-b67"&&(K="18"));return'video/webm; codecs="'+["vp09",L,"51",x,"01",Q,K,q,"00"].join(".")+'"'}; Aj=function(X,J,L){X=""+X+(J>49?"p60":J>32?"p48":"");J=VC()[X];if(J!=null&&J>0)return J;J=ZG.get(X);if(J!=null&&J>0)return J;L=L==null?void 0:L.get(X);return L!=null&&L>0?L:8192}; rfv=function(X){this.TH=X;this.XX=this.yJ=this.gI=this.j=this.T=this.bB=this.jC=this.Km=!1;this.W=this.B=0;this.J0=!1;this.aB=!0;this.SC=!1;this.PJ=0;this.J8=this.Pl=!1;this.H9=!0;this.vl=this.Bl=!1;this.L={};this.Lp=this.Nx=this.t_=this.disableAv1=this.Cm=this.RT=this.O6=this.A0=this.K=this.S=!1;this.jk=this.TH.Y("html5_disable_aac_preference");this.sH=Infinity;this.FE=0;this.If=this.TH.YH();this.z6=this.TH.experiments.Mi("html5_enable_vp9_fairplay");this.r0=this.TH.Y("html5_force_av1_for_testing"); this.Hl=g.J_(this.TH.experiments,"html5_av1_ordinal_cap");this.ek=this.TH.Y("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.pO=this.TH.Y("html5_account_onesie_format_selection_during_format_filter");this.DY=g.J_(this.TH.experiments,"html5_max_byterate");this.H4=this.TH.Y("html5_enable_iamf_audio");this.oT=this.TH.experiments.Mi("html5_allow_capability_merge");this.YF=this.TH.Y("html5_enable_encrypted_av1")}; SxS=function(X){if(X.jC)return["f"];if(g.To("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var J=["9h","9","h","8"];X.YF&&J.push("1e");J=J.concat(["(h","(","H","*"]);X.Pl&&(J.unshift("1"),J.unshift("1h"));X.yJ&&J.unshift("h");X.D&&(J=(vjA[X.D]||[X.D]).concat(J));return J}; aJA=function(X){var J=["o","a","A"];X.FE===1&&(X.T&&(J=["mac3","MAC3"].concat(J)),X.j&&(J=["meac3","MEAC3"].concat(J)),X.H4&&(J=["i","I"].concat(J)));X.Km&&(J=["so","sa"].concat(J));!X.XX||X.gI||X.N||X.jk||J.unshift("a");X.N&&(J=(vjA[X.N]||[X.N]).concat(J));return J}; X0=function(X,J,L,x){J=J===void 0?{}:J;if(x===void 0?0:x)return J.disabled=1,0;if(eo(X.j,FV.AV1_CODECS)&&eo(X.j,FV.HEIGHT)&&eo(X.j,FV.BITRATE))return J.isCapabilityUsable=1,8192;try{var Q=JMe();if(Q&&!X.Y("disable_av1_setting"))return J.localPref=Q}catch(D){}x=1080;Q=navigator.hardwareConcurrency;Q<=2&&(x=480);J.coreCount=Q;if(Q=g.J_(X.experiments,"html5_default_av1_threshold"))x=J["default"]=Q;!X.Y("html5_disable_av1_arm_check")&&Hzo()&&(J.isArm=1,x=240);if(X=X.j.aB)J.mcap=X,x=Math.max(x,X);if(L){var K, q;if(X=(K=L.videoInfos.find(function(D){return rS(D)}))==null?void 0:(q=K.K)==null?void 0:q.powerEfficient)x=8192,J.isEfficient=1; L=L.videoInfos[0].video;K=Math.min(Aj("1",L.fps),Aj("1",30));J.perfCap=K;x=Math.min(x,K);L.isHdr()&&!X&&(J.hdr=1,x*=.75)}else L=Aj("1",30),J.perfCap30=L,x=Math.min(x,L),L=Aj("1",60),J.perfCap60=L,x=Math.min(x,L);return J.av1Threshold=x}; JY=function(X,J,L,x){this.flavor=X;this.keySystem=J;this.K=L;this.experiments=x;this.L={};this.Hl=this.keySystemAccess=null;this.JC=this.oI=-1;this.yc=null;this.N=!!x&&x.Mi("edge_nonprefixed_eme");x&&x.Mi("html5_enable_vp9_fairplay")}; xH=function(X){return X.N?!1:!X.keySystemAccess&&!!L0()&&X.keySystem==="com.microsoft.playready"}; ib=function(X){return X.keySystem==="com.microsoft.playready"}; QG=function(X){return!X.keySystemAccess&&!!L0()&&X.keySystem==="com.apple.fps.1_0"}; K0=function(X){return X.keySystem==="com.youtube.fairplay"}; qP=function(X){return X.keySystem==="com.youtube.fairplay.sbdl"}; g.IG=function(X){return X.flavor==="fairplay"}; L0=function(){var X=window,J=X.MSMediaKeys;lZ()&&!J&&(J=X.WebKitMediaKeys);return J&&J.isTypeSupported?J:null}; D6=function(X){return navigator.requestMediaKeySystemAccess?g.Oc&&!g.fU()?dG("45"):g.lT||g.$q?X.Mi("edge_nonprefixed_eme"):g.gy?dG("47"):g.n9&&X.Mi("html5_enable_safari_fairplay")?!1:!0:!1}; jJW=function(X,J,L,x){var Q=e7(),K=(L=Q||L&&lZ())?["com.youtube.fairplay"]:["com.widevine.alpha"];J&&K.unshift("com.youtube.widevine.l3");Q&&x&&K.unshift("com.youtube.fairplay.sbdl");return L?K:X?[].concat(g.nR(K),g.nR($H.playready)):[].concat(g.nR($H.playready),g.nR(K))}; C0=function(X,J,L,x,Q){x=x===void 0?!1:x;g.G.call(this);this.TH=J;this.useCobaltWidevine=x;this.Ni=Q;this.K=[];this.N={};this.L={};this.callback=null;this.j=!1;this.T=[];this.initialize(X,!L)}; GxR=function(X,J){X.callback=J;X.T=[];D6(X.TH.experiments)?MP(X):TsR(X)}; MP=function(X){if(!X.E6())if(X.K.length===0)X.callback(X.T);else{var J=X.K[0],L=X.N[J],x=fUm(X,L);if(yG&&yG.keySystem===J&&yG.zz0===JSON.stringify(x))X.Ni("remksa",{re:!0}),e_A(X,L,yG.keySystemAccess);else{var Q,K;X.Ni("remksa",{re:!1,ok:(K=(Q=yG)==null?void 0:Q.keySystem)!=null?K:""});yG=void 0;navigator.requestMediaKeySystemAccess(J,x).then(Ff(function(q){e_A(X,L,q,x)}),Ff(function(){X.j=!X.j&&X.N[X.K[0]].flavor==="widevine"; X.j||X.K.shift();MP(X)}))}}}; e_A=function(X,J,L,x){if(!X.E6()){x&&(yG={keySystem:J.keySystem,keySystemAccess:L,zz0:JSON.stringify(x)});J.keySystemAccess=L;if(ib(J)){L=V1();x=g.d(Object.keys(X.L[J.flavor]));for(var Q=x.next();!Q.done;Q=x.next())Q=Q.value,J.L[Q]=!!L.canPlayType(Q)}else{L=J.keySystemAccess.getConfiguration();if(L.audioCapabilities)for(x=g.d(L.audioCapabilities),Q=x.next();!Q.done;Q=x.next())J.L[Q.value.contentType]=!0;if(L.videoCapabilities)for(L=g.d(L.videoCapabilities),x=L.next();!x.done;x=L.next())J.L[x.value.contentType]= !0}X.T.push(J);X.useCobaltWidevine||X.Y("html5_enable_vp9_fairplay")&&qP(J)?(X.K.shift(),MP(X)):X.callback(X.T)}}; fUm=function(X,J){var L={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(X.Y("html5_enable_vp9_fairplay")&&K0(J))return L.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),L.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[L];ib(J)&&(L.initDataTypes=["keyids","cenc"]);for(var x=g.d(Object.keys(X.L[J.flavor])),Q=x.next();!Q.done;Q=x.next()){Q=Q.value;var K=Q.indexOf("audio/")===0,q=K?L.audioCapabilities:L.videoCapabilities;J.flavor!== "widevine"||X.j?q.push({contentType:Q}):K?q.push({contentType:Q,robustness:"SW_SECURE_CRYPTO"}):(g.Oc&&g.To("windows nt")&&!X.Y("html5_drm_enable_moho")||q.push({contentType:Q,robustness:"HW_SECURE_ALL"}),K=Q,X.TH.j.N&&Q.includes("vp09")&&(K=Q+"; experimental=allowed"),q.push({contentType:K,robustness:"SW_SECURE_DECODE"}),n0(X.TH)==="MWEB"&&(kb()||Go())&&(X.Ni("swcrypto",{}),q.push({contentType:Q,robustness:"SW_SECURE_CRYPTO"})))}return[L]}; TsR=function(X){if(L0()&&(g.n9||B6))X.T.push(new JY("fairplay","com.apple.fps.1_0","",X.TH.experiments));else{var J=FKz(),L=g.Ou(X.K,function(x){var Q=X.N[x],K=!1,q=!1,D;for(D in X.L[Q.flavor])J(D,x)&&(Q.L[D]=!0,K=K||D.indexOf("audio/")===0,q=q||D.indexOf("video/")===0);return K&&q}); L&&X.T.push(X.N[L]);X.K=[]}X.callback(X.T)}; FKz=function(){var X=L0();if(X){var J=X.isTypeSupported;return function(x,Q){return J(Q,x)}}var L=V1(); return L&&(L.addKey||L.webkitAddKey)?function(x,Q){return!!L.canPlayType(x,Q)}:function(){return!1}}; lUI=function(X){this.experiments=X;this.L=2048;this.T=0;this.aB=(this.W=this.Y("html5_streaming_resilience"))?.5:.25;var J=J===void 0?0:J;this.N=g.J_(this.experiments,"html5_media_time_weight_prop")||J;this.Km=g.J_(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.D=(this.j=this.experiments.Mi("html5_consider_end_stall"))&&VG;this.K=this.experiments.Mi("html5_measure_max_progress_handling");this.S=this.Y("html5_treat_requests_pre_elbow_as_metadata");this.B=this.Y("html5_media_time_weight")|| !!this.N;this.Y("html5_sabr_live_audio_early_return_fix")&&VG&&(this.L=65536)}; R_m=function(X,J){this.L=void 0;this.experimentIds=X?X.split(","):[];this.flags=mJ(J||"","&");X={};J=g.d(this.experimentIds);for(var L=J.next();!L.done;L=J.next())X[L.value]=!0;this.experiments=X}; g.J_=function(X,J){X=X.flags[J];JSON.stringify(X);return Number(X)||0}; Ha=function(X,J){return(X=X.flags[J])?X.toString():""}; BsR=function(X){if(X=X.flags.html5_web_po_experiment_ids)if(X=X.replace(/\[ *(.*?) *\]/,"$1"))return X.split(",").map(Number);return[]}; sJY=function(X){if(X.L)return X.L;if(X.experimentIds.length<=1)return X.L=X.experimentIds,X.L;var J=[].concat(g.nR(X.experimentIds)).map(function(x){return Number(x)}); J.sort();for(var L=J.length-1;L>0;--L)J[L]-=J[L-1];X.L=J.map(function(x){return x.toString()}); X.L.unshift("v1");return X.L}; UrA=function(X){return Nsm.then(X)}; O2=function(X,J,L){this.experiments=X;this.FE=J;this.gI=L===void 0?!1:L;this.D=!!g.Ld("cast.receiver.platform.canDisplayType");this.S={};this.Km=!1;this.T=new Map;this.W=!0;this.K=this.N=!1;this.L=new Map;this.aB=0;this.Pl=this.experiments.Mi("html5_disable_vp9_encrypted");this.j=this.experiments.Mi("html5_enable_encrypted_av1");X=g.Ld("cast.receiver.platform.getValue");this.B=!this.D&&X&&X("max-video-resolution-vpx")||null;mrP(this);this.N=!!(e7()&&j7()>=21)}; Ewm=function(X,J,L){L=L===void 0?1:L;var x=J.itag;if(x==="0")return!0;var Q=J.mimeType;if(J.XE==="1e"&&!X.j)return"dav1enc";if(rS(J)&&X.Km)return"dav1";if(J.video&&(J.video.isHdr()||J.video.primaries==="bt2020")&&!(eo(X,FV.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(x==="338"&&!(g.Oc?dG(53):g.gy&&dG(64)))return"dopus";var K=L;K=K===void 0?1: K;L={};J.video&&(J.video.width&&(L[FV.WIDTH.name]=J.video.width),J.video.height&&(L[FV.HEIGHT.name]=J.video.height),J.video.fps&&(L[FV.FRAMERATE.name]=J.video.fps*K),J.video.L&&(L[FV.EOTF.name]=J.video.L),J.DY&&(L[FV.BITRATE.name]=J.DY*8*K),J.XE==="("&&(L[FV.CRYPTOBLOCKFORMAT.name]="subsample"),J.video.projectionType==="EQUIRECTANGULAR"||J.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||J.video.projectionType==="MESH")&&(L[FV.DECODETOTEXTURE.name]="true");J.audio&&J.audio.numChannels&& (L[FV.CHANNELS.name]=J.audio.numChannels);X.N&&za(J)&&(L[FV.EXPERIMENTAL.name]="allowed");K=g.d(Object.keys(FV));for(var q=K.next();!q.done;q=K.next()){q=FV[q.value];var D;if(D=L[q.name])if(D=!(q===FV.EOTF&&J.mimeType.indexOf("vp09.02")>0)){D=q;var C=J;D=!(X.experiments.Mi("html5_ignore_h264_framerate_cap")&&D===FV.FRAMERATE&&cCZ(C))}if(D)if(eo(X,q))if(X.B){if(X.B[q.name] 1080&&J.V0&&(Q+="; hdcp=2.2");return x==="227"?"hqcenc":x!=="585"&&x!=="588"&&x!=="583"&&x!=="586"&&x!=="584"&&x!=="587"&&x!=="591"&&x!=="592"||X.experiments.Mi("html5_enable_new_hvc_enc")?e7()&&j7()>=21&&g.To("appletv5")&&(x==="410"||x==="845")?!0:X.isTypeSupported(Q)?!0:"tpus":"newhvc"}; aG=function(){var X=Go()&&!dG(29),J=g.To("google tv")&&g.To("chrome")&&!dG(30);return X||J?!1:p1S()}; kxY=function(X,J,L){var x=480;J=g.d(J);for(var Q=J.next();!Q.done;Q=J.next()){Q=Q.value;var K=Q.video.qualityOrdinal;K<=1080&&K>x&&Ewm(X,Q,L)===!0&&(x=K)}return x}; g.wy=function(X,J){J=J===void 0?!1:J;return aG()&&X.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!J&&X.canPlayType(V1(),"application/x-mpegURL")?!0:!1}; AfZ=function(X){Z8O(function(){for(var J=g.d(Object.keys(FV)),L=J.next();!L.done;L=J.next())eo(X,FV[L.value])})}; eo=function(X,J){J.name in X.S||(X.S[J.name]=Xkm(X,J));return X.S[J.name]}; Xkm=function(X,J){if(X.B)return!!X.B[J.name];if(J===FV.BITRATE&&X.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!X.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(J===FV.AV1_CODECS)return X.isTypeSupported("video/mp4; codecs="+J.valid)&&!X.isTypeSupported("video/mp4; codecs="+J.gF);if(J.video){var L='video/webm; codecs="vp9"';X.isTypeSupported(L)||(L='video/mp4; codecs="avc1.4d401e"')}else L='audio/webm; codecs="opus"', X.isTypeSupported(L)||(L='audio/mp4; codecs="mp4a.40.2"');return X.isTypeSupported(L+"; "+J.name+"="+J.valid)&&!X.isTypeSupported(L+"; "+J.name+"="+J.gF)}; J5m=function(X,J){var L=0;X.T.has(J)&&(L=X.T.get(J).HZ);X.T.set(J,{HZ:L+1,F3:Math.pow(2,L+1)});X.K=!0}; jo=function(X){for(var J=[],L=g.d(X.L.keys()),x=L.next();!x.done;x=L.next()){x=x.value;var Q=X.L.get(x);J.push(x+"_"+Q.maxWidth+"_"+Q.maxHeight)}return J.join(".")}; trz=function(X,J){for(var L=new Map,x=g.d(X.L.keys()),Q=x.next();!Q.done;Q=x.next()){Q=Q.value;var K=Q.split("_")[0];J.has(K)||L.set(Q,X.L.get(Q))}X.L=L}; uPI=function(X,J,L){var x,Q=((x=L.video)==null?void 0:x.fps)||0;x=J+"_"+Q;var K=!!L.audio,q={itag:L.itag,XE:J,g2:K};if(K)q.numChannels=L.audio.numChannels;else{var D=L.video;q.maxWidth=D==null?void 0:D.width;q.maxHeight=D==null?void 0:D.height;q.maxFramerate=Q;eo(X,FV.BITRATE)&&(q.maxBitrateBps=L.DY*8);q.RF=D==null?void 0:D.isHdr()}D=X.L.get(x);D?K||(L=Math.max(D.maxWidth||0,D.maxHeight||0)>Math.max(q.maxWidth||0,q.maxHeight||0)?D:q,J={itag:L.itag,XE:J,g2:K,maxWidth:Math.max(D.maxWidth||0,q.maxWidth|| 0),maxHeight:Math.max(D.maxHeight||0,q.maxHeight||0),maxFramerate:Q,RF:L.RF},eo(X,FV.BITRATE)&&(J.maxBitrateBps=L.maxBitrateBps),X.L.set(x,J)):X.L.set(x,q)}; owP=function(X,J,L){var x,Q=((x=L.video)==null?void 0:x.fps)||0;x=J+"_"+Q;var K=!!L.audio,q=X.L.get(x);a:{var D=X.L.get(x),C=!!L.audio;if(D){if(C){var M=!1;break a}var y;if(!C&&((M=L.video)==null?0:M.height)&&D.maxHeight&&D.maxHeight>=((y=L.video)==null?void 0:y.height)){M=!1;break a}}M=!0}M&&(M=L.itag,J=q?q:{itag:M,XE:J,g2:K},K?J.numChannels=L.audio.numChannels:(K=L.video,J.maxWidth=K==null?void 0:K.width,J.maxHeight=K==null?void 0:K.height,J.maxFramerate=Q,eo(X,FV.BITRATE)&&(J.maxBitrateBps=L.DY* 8),J.RF=K==null?void 0:K.isHdr()),X.L.set(x,J))}; mrP=function(X){var J;(J=navigator.mediaCapabilities)!=null&&J.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(L){L.smooth&&L.powerEfficient&&(X.aB=2160)})}; tY=function(){g.Ly.call(this);this.items={}}; LcR=function(X,J,L){this.encryptedClientKey=J;this.j=L;this.L=new Uint8Array(X.buffer,0,16);this.K=new Uint8Array(X.buffer,16)}; xTI=function(X){X.N||(X.N=new g.$Y(X.L));return X.N}; dy=function(X){try{return c5(X)}catch(J){return null}}; iCI=function(X,J){if(!J&&X)try{J=JSON.parse(X)}catch(Q){}if(J){X=J.clientKey?dy(J.clientKey):null;var L=J.encryptedClientKey?dy(J.encryptedClientKey):null,x=J.keyExpiresInSeconds?Number(J.keyExpiresInSeconds)*1E3+(0,g.uT)():null;X&&L&&x&&(this.L=new LcR(X,L,x));J.onesieUstreamerConfig&&(this.onesieUstreamerConfig=dy(J.onesieUstreamerConfig)||void 0);this.baseUrl=J.baseUrl}}; oG=function(){this.data=new Uint8Array(2048);this.pos=0;ub||(ub=Os("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; bb=function(X,J){X.add(J==null||isNaN(J)?0:J+1)}; Sj=function(X){this.L=this.K=0;this.alpha=Math.exp(Math.log(.5)/X)}; Pa=function(X){this.K=X===void 0?15:X;this.values=new Float64Array(176);this.L=new Float64Array(11);this.N=new Float64Array(16)}; ca=function(X,J,L,x){L=L===void 0?.5:L;x=x===void 0?0:x;this.resolution=J;this.K=0;this.N=!1;this.ZZ=!0;this.L=Math.round(X*this.resolution);this.values=Array(this.L);for(X=0;X0)J=X.byterate,this.Km=!0;else{var x; L=(((x=navigator.connection)==null?void 0:x.downlink)||0)*64*1024;L>0&&(J=L,this.Km=!0)}this.N.US(this.policy.B,J);X.delay>0&&this.S.US(1,Math.min(X.delay,2));X.stall>0&&this.W.US(1,X.stall);X.init>0&&(this.vl=Math.min(X.init,this.vl));X.interruptions&&(this.T=this.T.concat(X.interruptions),this.T.length>16&&this.T.pop());this.aB=(0,g.uT)();this.policy.W>0&&(this.jC=new g.sn(this.bB,this.policy.W,this),g.f(this,this.jC),this.jC.start())}; YH=function(X,J,L,x){X.N.US(x===void 0?J:x,L/J);X.B=(0,g.uT)()}; KcY=function(X){X.j||(X.j=(0,g.uT)());X.policy.D&&(X.B=(0,g.uT)())}; qzY=function(X,J){if(X.j){var L=J-X.j;if(L<6E4){if(L>1E3){var x=X.interruptions;x.push(Math.ceil(L));x.sort(function(Q,K){return K-Q}); x.length>16&&x.pop()}X.FE+=L}}X.j=J}; hY=function(X,J,L,x,Q,K){K=K===void 0?!1:K;X.Bl.US(J,L/J);X.B=(0,g.uT)();Q||X.D.US(1,J-x);K||(X.j=0);X.aB>-1&&(0,g.uT)()-X.aB>3E4&&IVA(X)}; zl=function(X,J,L){J=Math.max(J,X.K.L);X.W.US(1,L/J)}; Wa=function(X){X=X.S.Gc()+X.gI.Gc()||0;X=isNaN(X)?.5:X;return X=Math.min(X,5)}; p0=function(X,J,L){isNaN(L)||(X.Pl+=L);isNaN(J)||(X.Hl+=J)}; ry=function(X){X=X.N.Gc();return X>0?X:1}; va=function(X,J,L){J=J===void 0?!1:J;L=L===void 0?1048576:L;var x=ry(X);x=1/((X.W.Gc()||0)*X.policy.Km+1/x);var Q=X.Bl.Gc();Q=Q>0?Q:1;var K=Math.max(x,Q);X.policy.j>0&&Q=4E3}; DTe=function(X){this.experiments=X;this.L=17;this.N=13E4;this.B=.5;this.T=this.K=!1;this.aB=this.Y("html5_use_histogram_for_bandwidth");this.j=g.J_(this.experiments,"html5_auxiliary_estimate_weight");this.Km=g.J_(this.experiments,"html5_stall_factor")||1;this.W=g.J_(this.experiments,"html5_check_for_idle_network_interval_ms");this.S=this.experiments.Mi("html5_trigger_loader_when_idle_network");this.D=this.experiments.Mi("html5_sabr_fetch_on_idle_network_preloaded_players")}; CRo=function(X,J){X=X===void 0?{}:X;J=J===void 0?{}:J;g.G.call(this);var L=this;this.values=X;this.p7=J;this.K={};this.N=this.L=0;this.T=new g.sn(function(){$Tm(L)},1E4); g.f(this,this.T)}; Tl=function(X,J){MMI(X,J);return X.values[J]&&X.p7[J]?X.values[J]/Math.pow(2,X.L/X.p7[J]):0}; MMI=function(X,J){X.values[J]||(J=kGY(),X.values=J.values||{},X.p7=J.halfLives||{},X.K=J.values?Object.assign({},J.values):{})}; $Tm=function(X){var J=kGY();if(J.values){J=J.values;for(var L={},x=g.d(Object.keys(X.values)),Q=x.next();!Q.done;Q=x.next())Q=Q.value,J[Q]&&X.K[Q]&&(X.values[Q]+=J[Q]-X.K[Q]),L[Q]=Tl(X,Q);X.K=L}J=X.p7;L={};L.values=X.K;L.halfLives=J;g.El("yt-player-memory",L,2592E3)}; ik=function(X,J,L,x,Q){g.G.call(this);this.webPlayerContextConfig=J;this.KI=x;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.gp=this.z6=this.r0=this.ac=this.userDisplayName=this.userDisplayImage=this.UV="";this.L={};this.If={};this.controlsType="0";this.H9=NaN;this.A0=!1;this.In=(0,g.uT)();this.H4=0;this.M9=this.w8=!1;this.cJ=!0;this.preferGapless=this.LI=this.YU=this.N=this.qQ=!1;this.jX=[];this.HO=!1;this.L1=0;X=X?g.Vf(X):{};J&&J.csiPageType&&(this.csiPageType=J.csiPageType);J&&J.csiServiceName&& (this.csiServiceName=J.csiServiceName);J&&J.preferGapless&&(this.preferGapless=J.preferGapless);this.experiments=new R_m(J?J.serializedExperimentIds:X.fexp,J?J.serializedExperimentFlags:X.fflags);this.forcedExperiments=J?J.serializedForcedExperimentIds:x1("",X.forced_experiments)||void 0;this.cspNonce=(J==null?0:J.cspNonce)?J.cspNonce:x1("",X.csp_nonce);this.Y("web_player_deprecated_uvr_killswitch");try{var K=document.location.toString()}catch(QP){K=""}this.BO=K;this.ancestorOrigins=(x=window.location.ancestorOrigins)? Array.from(x):[];this.T=Xm(!1,J?J.isEmbed:X.is_embed);if(J&&J.device){if(x=J.device,x.androidOsExperience&&(this.L.caoe=""+x.androidOsExperience),x.androidPlayServicesVersion&&(this.L.capsv=""+x.androidPlayServicesVersion),x.brand&&(this.L.cbrand=x.brand),x.browser&&(this.L.cbr=x.browser),x.browserVersion&&(this.L.cbrver=x.browserVersion),x.cobaltReleaseVehicle&&(this.L.ccrv=""+x.cobaltReleaseVehicle),this.L.c=x.interfaceName||"WEB",this.L.cver=x.interfaceVersion||"html5",x.interfaceTheme&&(this.L.ctheme= x.interfaceTheme),this.L.cplayer=x.interfacePlayerType||"UNIPLAYER",x.model&&(this.L.cmodel=x.model),x.network&&(this.L.cnetwork=x.network),x.os&&(this.L.cos=x.os),x.osVersion&&(this.L.cosver=x.osVersion),x.platform&&(this.L.cplatform=x.platform),K=Ha(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),K==="all"||K==="once")x.chipset&&(this.If.cchip=x.chipset),x.cobaltAppVersion&&(this.If.ccappver=x.cobaltAppVersion),x.firmwareVersion&&(this.If.cfrmver=x.firmwareVersion),x.deviceYear&&(this.If.crqyear= x.deviceYear)}else this.L.c=X.c||"web",this.L.cver=X.cver||"html5",this.L.cplayer="UNIPLAYER";this.loaderUrl=J?this.T||y5R(this)&&J.loaderUrl?J.loaderUrl||"":this.BO:this.T||y5R(this)&&X.loaderUrl?x1("",X.loaderUrl):this.BO;this.T&&g.JS("yt.embedded_player.embed_url",this.loaderUrl);this.S=GG(this.loaderUrl,ngY);x=this.loaderUrl;var q=q===void 0?!1:q;this.bL=TG(GG(x,VMv),x,q,"Trusted Ad Domain URL");this.XX=Xm(!1,X.privembed);this.protocol=this.BO.indexOf("http:")===0?"http":"https";this.VZ=DBS((J? J.customBaseYoutubeUrl:X.BASE_YT_URL)||"")||DBS(this.BO)||this.protocol+"://www.youtube.com/";q=J?J.eventLabel:X.el;x="detailpage";q==="adunit"?x=this.T?"embedded":"detailpage":q==="embedded"||this.S?x=J3(x,q,HCe):q&&(x="embedded");this.gI=x;SIW();q=null;x=J?J.playerStyle:X.ps;K=g.tS(OCm,x);!x||K&&!this.S||(q=x);this.playerStyle=q;this.B=g.tS(OCm,this.playerStyle);this.houseBrandUserStatus=J==null?void 0:J.houseBrandUserStatus;this.aB=this.B&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.Dk=!this.aB;this.Hl=Xm(!1,X.disableplaybackui);this.disablePaidContentOverlay=Xm(!1,J==null?void 0:J.disablePaidContentOverlay);this.disableSeek=Xm(!1,J==null?void 0:J.disableSeek);this.enableSpeedOptions=(J==null?void 0:J.enableSpeedOptions)||(V1().defaultPlaybackRate?Gl||g.mH||f0?g.gy&&dG("20")||g.Oc&&dG("4")||g.ej&&dG("11")||Rh():!(g.ej&&!g.To("chrome")||Gl||g.To("android")||g.To("silk")):!1);this.IC=Xm(!1,X.enable_faster_speeds);var D;this.supportsVarispeedExtendedFeatures=(D=J==null?void 0: J.supportsVarispeedExtendedFeatures)!=null?D:!1;this.K=Xm(this.playerStyle==="blazer",X.is_html5_mobile_device||J&&J.isMobileDevice);this.bB=Uv()||kb();this.M8=this.Y("mweb_allow_background_playback")?!1:this.K&&!this.B;this.vl=tb();this.u3=g.F0;var C;this.OX=!!(J==null?0:(C=J.embedsHostFlags)==null?0:C.optOutApiDeprecation);var M;this.Lu=!!(J==null?0:(M=J.embedsHostFlags)==null?0:M.allowPfpImaIntegration);this.N8=this.Y("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var y;J?J.hideInfo!== void 0&&(y=!J.hideInfo):y=X.showinfo;this.Dp=g.lb(this)&&!this.OX||Xm(!RG(this)&&!Ba(this)&&!this.B,y);this.XB=J?!!J.mobileIphoneSupportsInlinePlayback:Xm(!1,X.playsinline);D=this.K&&s2&&NP!=null&&NP>0&&NP<=2.3;C=J?J.useNativeControls:X.use_native_controls;this.W=g.lb(this)&&this.K;M=this.K&&!this.W;C=g.U2(this)||!D&&Xm(M,C)?"3":"1";this.disableOrganicUi=!(J==null||!J.disableOrganicUi);M=J?J.controlsType:X.controls;this.controlsType=this.disableOrganicUi||M==="0"||M===0?"0":C;this.Xb=this.K;this.color= J3("red",J?J.progressBarColor:X.color,aVm);this.Gw=this.controlsType==="3";this.t_=!this.T;this.Av=(C=!this.t_&&!Ba(this)&&!this.aB&&!this.B&&!RG(this))&&!this.Gw&&this.controlsType==="1";this.RT=g.mB(this)&&C&&this.controlsType==="0"&&!this.Av&&!(J==null?0:J.embedsEnableEmc3ds);this.Ts=this.Nn=D;this.pO=(this.controlsType==="3"||this.K||Xm(!1,X.use_media_volume))&&!this.W;this.rF=B6&&!g.Gu(601)?!1:!0;this.jZ=this.T||!1;this.YF=Ba(this)?"":(this.loaderUrl||X.post_message_origin||"").substring(0,128); this.widgetReferrer=x1("",J?J.widgetReferrer:X.widget_referrer);var n;J?J.disableCastApi&&(n=!1):n=X.enablecastapi;n=!this.S||Xm(!0,n);D=!0;J&&J.disableMdxCast&&(D=!1);this.Uv=this.Y("enable_cast_for_web_unplugged")&&g.kH(this)&&D||g.ze(this)&&D||n&&D&&this.controlsType==="1"&&!this.K&&(Ba(this)||g.mB(this)||g.Z6(this));this.kA=!!window.document.pictureInPictureEnabled||wS();n=J?!!J.supportsAutoplayOverride:Xm(!1,X.autoplayoverride);this.Ii=!(this.K&&!g.lb(this))&&!g.To("nintendo wiiu")||n;this.xj= (J?!!J.enableMutedAutoplay:Xm(!1,X.mutedautoplay))&&!1;n=(Ba(this)||RG(this))&&this.playerStyle==="blazer";this.sQ=J?!!J.disableFullscreen:!Xm(!0,X.fs);D=g.qk(g.AY(this))&&g.lb(this);this.Nx=!this.sQ&&(n||g.yV())&&!D;this.L7=this.Y("html5_picture_in_picture_logging_onresize");var V;this.ag=(V=g.J_(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?V:.33;this.eQ=this.Y("html5_picture_in_picture_blocking_onresize");this.tv=this.Y("html5_picture_in_picture_blocking_ontimeupdate"); this.mP=this.Y("html5_picture_in_picture_blocking_document_fullscreen");this.cq=this.Y("html5_picture_in_picture_blocking_standard_api");V=Go()&&dG(58)&&!kb();n=Fh||typeof MediaSource==="undefined";this.cf=this.Y("uniplayer_block_pip")&&(V||n)||this.eQ||this.tv||this.cq;V=g.lb(this)&&!this.OX;var H;J?J.disableRelatedVideos!==void 0&&(H=!J.disableRelatedVideos):H=X.rel;this.oT=V||Xm(!this.B,H);this.PN=Xm(!1,J?J.enableContentOwnerRelatedVideos:X.co_rel);this.D=kb()&&NP>0&&NP<=4.4?"_top":"_blank";this.Vq= g.Z6(this);this.tB=Xm(this.playerStyle==="blazer",J?J.enableCsiLogging:X.enablecsi);switch(this.playerStyle){case "blogger":H="bl";break;case "gmail":H="gm";break;case "gac":H="ga";break;case "ads-preview":H="ap";break;case "books":H="gb";break;case "docs":case "flix":H="gd";break;case "duo":H="gu";break;case "google-live":H="gl";break;case "google-one":H="go";break;case "play":case "play-ads":H="gp";break;case "chat":H="hc";break;case "hangouts-meet":H="hm";break;case "photos-edu":case "picasaweb":H= "pw";break;default:H="yt"}this.Km=H;this.Pl=x1("",J?J.authorizedUserIndex:X.authuser);this.sH=g.lb(this)&&(this.XX||!nxS()||this.bB);var O;J?J.disableWatchLater!==void 0&&(O=!J.disableWatchLater):O=X.showwatchlater;this.o2=((H=!this.sH)||!!this.Pl&&H)&&Xm(!this.aB,this.S?O:void 0);this.fY=J?J.isMobileDevice||!!J.disableKeyboardControls:Xm(!1,X.disablekb);this.loop=Xm(!1,X.loop);this.pageId=x1("",J?J.initialDelegatedSessionId:X.pageid);this.h4=Xm(!0,X.canplaylive);this.Cm=Xm(!1,X.livemonitor);this.disableSharing= Xm(this.B,J?J.disableSharing:X.ss);(O=J&&this.Y("fill_video_container_size_override_from_wpcc")?J.videoContainerOverride:X.video_container_override)?(H=O.split("x"),H.length!==2?O=null:(O=Number(H[0]),H=Number(H[1]),O=isNaN(O)||isNaN(H)||O*H<=0?null:new g.B_(O,H))):O=null;this.RV=O;this.mute=J?!!J.startMuted:Xm(!1,X.mute);this.storeUserVolume=!this.mute&&Xm(this.controlsType!=="0",J?J.storeUserVolume:X.store_user_volume);O=J?J.annotationsLoadPolicy:X.iv_load_policy;this.annotationsLoadPolicy=this.controlsType=== "3"?3:J3(void 0,O,X_);this.captionsLanguagePreference=J?J.captionsLanguagePreference||"":x1("",X.cc_lang_pref);O=J3(2,J?J.captionsLanguageLoadPolicy:X.cc_load_policy,X_);this.controlsType==="3"&&O===2&&(O=3);this.tb=O;this.jk=J?J.hl||"en_US":x1("en_US",X.hl);this.region=J?J.contentRegion||"US":x1("US",X.cr);this.hostLanguage=J?J.hostLanguage||"en":x1("en",X.host_language);this.QN=!this.XX&&Math.random()=480;this.schedule=new E2(n,new lUI(this.experiments),Q);g.f(this,this.schedule);var u;this.enableSafetyMode=(u=J==null?void 0:J.initialEnableSafetyMode)!=null? u:Xm(!1,X.enable_safety_mode);Q=this.Hl?!1:Ba(this)&&this.playerStyle!=="blazer";var S;J?J.disableAutonav!=null&&(S=!J.disableAutonav):S=X.allow_autonav;this.ek=Xm(Q,!this.aB&&S);this.sendVisitorIdHeader=J?!!J.sendVisitorIdHeader:Xm(!1,X.send_visitor_id_header);var Y;this.playerStyle==="docs"&&(J?Y=J.disableNativeContextMenu:Y=X.disable_native_context_menu);this.disableNativeContextMenu=Xm(!1,Y);this.Ku=yw(this)&&this.Y("enable_skip_intro_button");this.embedConfig=x1("",J?J.serializedEmbedConfig: X.embed_config);this.FE=Kl(X,g.lb(this));this.N=this.FE==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(J==null||!J.embedsErrorLinks);this.GB=Xm(!1,X.full_window);var h;this.J0=!((h=this.webPlayerContextConfig)==null?0:h.chromeless);var W;this.livingRoomAppMode=J3("LIVING_ROOM_APP_MODE_UNSPECIFIED",X.living_room_app_mode||(J==null?void 0:(W=J.device)==null?void 0:W.livingRoomAppMode),dTv);var T;S=Ll(NaN,J==null?void 0:(T=J.device)==null?void 0:T.deviceYear);isNaN(S)||(this.deviceYear=S);this.transparentBackground= J?!!J.transparentBackground:Xm(!1,X.transparent_background);this.showMiniplayerButton=J?!!J.showMiniplayerButton:Xm(!1,X.show_miniplayer_button);var l;g.lb(this)&&!(J==null?0:(l=J.embedsHostFlags)==null?0:l.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=J?!!J.externalFullscreen:Xm(!1,X.external_fullscreen);this.showMiniplayerUiWhenMinimized=J?!!J.showMiniplayerUiWhenMinimized:Xm(!1,X.use_miniplayer_ui);var Jo;this.cJ=(Jo=X.show_loop_video_toggle)!=null?Jo:!0;this.Sd=Math.random()< 1E-4;this.eX=X.onesie_hot_config||(J==null?0:J.onesieHotConfig)?new iCI(X.onesie_hot_config,J==null?void 0:J.onesieHotConfig):void 0;this.isTectonic=J?!!J.isTectonic:!!X.isTectonic;this.playerCanaryState=L;this.playerCanaryStage=J==null?void 0:J.canaryStage;this.jT=new CRo;g.f(this,this.jT);this.datasyncId=(J==null?void 0:J.datasyncId)||g.ly("DATASYNC_ID");this.OQ=g.ly("LOGGED_IN",!1);this.iJ=(J==null?void 0:J.allowWoffleManagement)||!1;this.Ov=Infinity;this.e1=NaN;this.livingRoomPoTokenId=J==null? void 0:J.livingRoomPoTokenId;this.Y("html5_high_res_logging_always")?this.YU=!0:this.YU=Math.random()*100=0&&X0&&X.Sd&&(x.sort(),g.PM(new g.Fm("Player client parameters changed after startup",x)));X.userAge=Ll(X.userAge,J.user_age);X.UV=x1(X.UV,J.user_display_email);X.userDisplayImage=x1(X.userDisplayImage,J.user_display_image);g.eN(X.userDisplayImage)||(X.userDisplayImage= "");X.userDisplayName=x1(X.userDisplayName,J.user_display_name);X.ac=x1(X.ac,J.user_gender);X.csiPageType=x1(X.csiPageType,J.csi_page_type);X.csiServiceName=x1(X.csiServiceName,J.csi_service_name);X.tB=Xm(X.tB,J.enablecsi);X.pageId=x1(X.pageId,J.pageid);if(L=J.enabled_engage_types)X.enabledEngageTypes=new Set(L.split(","));J.living_room_session_po_token&&(X.LW=J.living_room_session_po_token.toString())}; QH=function(X,J){return!X.B&&Go()&&dG(55)&&X.controlsType==="3"&&!J}; g.K4=function(X){X=JD(X.VZ);return X==="www.youtube-nocookie.com"?"www.youtube.com":X}; qv=function(X,J,L){return X.protocol+"://i1.ytimg.com/vi/"+J+"/"+(L||"hqdefault.jpg")}; Ic=function(X){return Ba(X)&&!g.kH(X)}; g.U2=function(X){return X.Y("html5_local_playsinline")?B6&&!g.Gu(602)&&!("playsInline"in V1()):B6&&!X.XB||g.To("nintendo wiiu")?!0:!1}; n0=function(X){return X.L.c}; g.nD=function(X){return/^TVHTML5/.test(n0(X))}; g.gT=function(X){return n0(X)==="TVHTML5"}; y5R=function(X){return n0(X)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; tMY=function(X){return X.L.cmodel==="CHROMECAST ULTRA/STEAK"||X.L.cmodel==="CHROMECAST/STEAK"}; g.D0=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; yw=function(X){return/web/i.test(n0(X))}; g.$3=function(X){return n0(X).toUpperCase()==="WEB"}; x3=function(X){return n0(X)==="WEB_KIDS"}; g.kH=function(X){return n0(X)==="WEB_UNPLUGGED"}; C4=function(X){return n0(X)==="TVHTML5_UNPLUGGED"}; g.M2=function(X){return g.kH(X)||n0(X)==="TV_UNPLUGGED_CAST"||C4(X)}; g.ze=function(X){return n0(X)==="WEB_REMIX"}; g.Mv=function(X){return n0(X)==="WEB_MUSIC_INTEGRATIONS"}; g.yH=function(X){return n0(X)==="WEB_EMBEDDED_PLAYER"}; g.VH=function(X){return(X.deviceIsAudioOnly||!g.Oc||Fh||X.controlsType==="3"?!1:g.mH?X.T&&g.Gu(51):!0)||(X.deviceIsAudioOnly||!g.gy||Fh||X.controlsType==="3"?!1:g.mH?X.T&&g.Gu(48):g.Gu(38))||(X.deviceIsAudioOnly||!g.ej||Fh||X.controlsType==="3"?!1:g.mH?X.T&&g.Gu(37):g.Gu(27))||!X.deviceIsAudioOnly&&g.n4&&!wOW()&&g.Gu(11)||!X.deviceIsAudioOnly&&g.n9&&g.Gu("604.4")}; bCS=function(X){if(g.mB(X)&&s2)return!1;if(g.gy){if(!g.Gu(47)||!g.Gu(52)&&g.Gu(51))return!1}else if(g.n9)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; PRm=function(X,J){return X.enabledEngageTypes.has(J.toString())||Szm.includes(J)}; Ba=function(X){return X.gI==="detailpage"}; g.mB=function(X){return X.gI==="embedded"}; He=function(X){return X.gI==="leanback"}; RG=function(X){return X.gI==="adunit"||X.playerStyle==="gvn"}; g.Z6=function(X){return X.gI==="profilepage"}; g.lb=function(X){return X.T&&g.mB(X)&&!RG(X)&&!X.B}; OT=function(X){if(!X.userDisplayImage)return"";var J=X.userDisplayImage.split("/");if(J.length===5)return X=J[J.length-1].split("="),X[1]="s20-c",J[J.length-1]=X.join("="),J.join("/");if(J.length===8)return J.splice(7,0,"s20-c"),J.join("/");if(J.length===9)return J[7]+="-s20-c",J.join("/");g.PM(new g.Fm("Profile image not a FIFE URL.",X.userDisplayImage));return X.userDisplayImage}; g.ac=function(X){var J=g.K4(X);c5W.includes(J)&&(J="www.youtube.com");return X.protocol+"://"+J}; g.wT=function(X,J){J=J===void 0?"":J;if(X.KI){var L=new Vy,x,Q=X.KI();Q.signedOut?x="":Q.token?x=Q.token:Q.pendingResult.then(function(K){Q.signedOut?L.resolve(""):L.resolve(K.token)},function(K){g.PM(new g.Fm("b189348328_oauth_callback_failed",{error:K})); L.resolve(J)}); return x!==void 0?c6(x):new S7(L)}return c6(J)}; tD=function(X,J){J=J===void 0?"":J;return X.OQ?cC(!0):WC(z6(cC(g.wT(X,J)),function(L){return cC(!!L)}),function(){return cC(!1)})}; JD=function(X){var J=g.Dk(X);return(X=Number(g.gA(X)[4]||null)||null)?J+":"+X:J}; dT=function(X,J){J=J===void 0?!1:J;var L=Ec[X],x=Egm[L],Q=YzS[X];if(!Q||!x)return null;J=new Si(J?Q.height:Q.width,J?Q.width:Q.height,Q.fps);x=vr(x,J,L);return new Yr(X,x,{video:J,DY:Q.bitrate/8})}; zBR=function(X){var J=Egm[Ec[X]],L=hBZ[X];return L&&J?new Yr(X,J,{audio:new u2(L.audioSampleRate,L.numChannels)}):null}; uk=function(X){this.L=X}; oc=function(X,J,L,x){if(L)return P6();L={};var Q=V1();J=g.d(J);for(var K=J.next();!K.done;K=J.next())if(K=K.value,X.canPlayType(Q,K.getInfo().mimeType)||x){var q=K.L.video.quality;if(!L[q]||L[q].getInfo().KY())L[q]=K}X=[];L.auto&&X.push(L.auto);x=g.d(PU);for(Q=x.next();!Q.done;Q=x.next())(Q=L[Q.value])&&X.push(Q);return X.length?c6(X):P6()}; WcI=function(X){this.itag=X.itag;this.url=X.url;this.codecs=X.codecs;this.width=X.width;this.height=X.height;this.fps=X.fps;this.bitrate=X.bitrate;var J;this.K=((J=X.audioItag)==null?void 0:J.split(","))||[];this.LQ=X.LQ;this.V0=X.V0||"";this.OH=X.OH;this.audioChannels=X.audioChannels;this.L=""}; pkY=function(X,J,L,x){J=J===void 0?!1:J;L=L===void 0?!0:L;x=x===void 0?{}:x;var Q={};X=g.d(X);for(var K=X.next();!K.done;K=X.next()){K=K.value;if(J&&MediaSource&&MediaSource.isTypeSupported){var q=K.type;K.audio_channels&&(q=q+"; channels="+K.audio_channels);if(!MediaSource.isTypeSupported(q)){x[K.itag]="tpus";continue}}if(L||!K.drm_families||K.eotf!=="smpte2084"&&K.eotf!=="arib-std-b67"){q=void 0;var D={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},C=K.type.match(/codecs="([^"]*)"/); C=C?C[1]:"";K.audio_track_id&&(q=new g.YQ(K.name,K.audio_track_id,!!K.is_default));var M=K.eotf;K=new WcI({itag:K.itag,url:K.url,codecs:C,width:Number(K.width),height:Number(K.height),fps:Number(K.fps),bitrate:Number(K.bitrate),audioItag:K.audio_itag,LQ:M?D[M]:void 0,V0:K.drm_families,OH:q,audioChannels:Number(K.audio_channels)});Q[K.itag]=Q[K.itag]||[];Q[K.itag].push(K)}else x[K.itag]="enchdr"}return Q}; r5v=function(X,J,L,x,Q){this.N=X;this.K=J;this.j=L;this.cpn=x;this.B=Q;this.T=0;this.L=""}; vgA=function(X,J){X.N.some(function(L){var x;return((x=L.OH)==null?void 0:x.getId())===J}); X.L=J}; bk=function(X,J,L){X.cpn&&(J=g.Hw(J,{cpn:X.cpn}));L&&(J=g.Hw(J,{paired:L}));return J}; jLP=function(X,J){X=X.itag.toString();J!==null&&(X+=J.itag.toString());return X}; T7m=function(X){for(var J=[],L=[],x=g.d(X.K),Q=x.next();!Q.done;Q=x.next())Q=Q.value,Q.bitrate<=X.T?J.push(Q):L.push(Q);J.sort(function(K,q){return q.bitrate-K.bitrate}); L.sort(function(K,q){return K.bitrate-q.bitrate}); X.K=J.concat(L)}; SH=function(X,J,L){this.L=X;this.K=J;this.expiration=L;this.T6=null}; GKR=function(X,J){if(!(Fh||lZ()||e7()))return null;X=pkY(J,X.Y("html5_filter_fmp4_in_hls"));if(!X)return null;J=[];for(var L={},x=g.d(Object.keys(X)),Q=x.next();!Q.done;Q=x.next()){Q=g.d(X[Q.value]);for(var K=Q.next();!K.done;K=Q.next()){var q=K.value;q.OH&&(K=q.OH.getId(),L[K]||(q=new g.uI(K,q.OH),L[K]=q,J.push(q)))}}return J.length>0?J:null}; RBm=function(X,J,L,x,Q,K,q){if(!(Fh||lZ()||e7()))return P6();var D={},C=fVm(L),M=pkY(L,X.Y("html5_filter_fmp4_in_hls"),X.j.W,D);if(!M)return q({noplst:1}),P6();eBR(M);L={};var y=(L.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",L),n;L=[];var V=[],H=[],O=null,u="";x=x&&x.match(/hls_timedtext_playlist/)?new WcI({itag:"0",url:x,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,OH:new g.YQ("English","en",!1)}):null;for(var S=g.d(Object.keys(M)),Y=S.next();!Y.done;Y=S.next())if(Y=Y.value,!X.Y("html5_disable_drm_hfr_1080")|| Y!=="383"&&Y!=="373"){Y=g.d(M[Y]);for(var h=Y.next();!h.done;h=Y.next())if(h=h.value,h.width){for(var W=g.d(h.K),T=W.next();!T.done;T=W.next())if(T=T.value,M[T]){h.L=T;break}h.L||(h.L=Fcm(M,h));if(W=M[h.L])if(L.push(h),h.V0==="fairplay"&&(n=y),T="",h.LQ==="PQ"?T="smpte2084":h.LQ==="HLG"&&(T="arib-std-b67"),T&&(u=T),H.push(lVA(W,[h],x,K,h.itag,h.width,h.height,h.fps,C,void 0,void 0,n,T)),!O||h.width*h.height*h.fps>O.width*O.height*O.fps)O=h}else V.push(h)}else D[Y]="disdrmhfr";H.reduce(function(l, Jo){return Jo.getInfo().isEncrypted()&&l},!0)&&(n=y); Q=Math.max(Q,0);y=O||{};M=y.fps===void 0?0:y.fps;O=y.width===void 0?0:y.width;y=y.height===void 0?0:y.height;S=X.Y("html5_native_audio_track_switching");H.push(lVA(V,L,x,K,"93",O,y,M,C,"auto",Q,n,u,S));Object.entries(D).length&&q(D);return oc(X.j,H,QH(X,J),!1)}; lVA=function(X,J,L,x,Q,K,q,D,C,M,y,n,V,H){for(var O=0,u="",S=g.d(X),Y=S.next();!Y.done;Y=S.next())Y=Y.value,u||(u=Y.itag),Y.audioChannels&&Y.audioChannels>O&&(O=Y.audioChannels,u=Y.itag);Q=new Yr(Q,"application/x-mpegURL",{audio:new u2(0,O),video:new Si(K,q,D,null,void 0,M,void 0,V),V0:n,Ij:u});X=new r5v(X,J,L?[L]:[],x,!!H);X.T=y?y:1369843;return new SH(Q,X,C)}; fVm=function(X){X=g.d(X);for(var J=X.next();!J.done;J=X.next())if(J=J.value,J.url&&(J=J.url.split("expire/"),!(J.length<=1)))return+J[1].split("/")[0];return NaN}; Fcm=function(X,J){for(var L=g.d(Object.keys(X)),x=L.next();!x.done;x=L.next()){x=x.value;var Q=X[x][0];if(!Q.width&&Q.V0===J.V0&&!Q.audioChannels)return x}return""}; eBR=function(X){for(var J=new Set,L=g.d(Object.values(X)),x=L.next();!x.done;x=L.next())x=x.value,x.length&&(x=x[0],x.height&&x.codecs.startsWith("vp09")&&J.add(x.height));L=[];if(J.size){x=g.d(Object.keys(X));for(var Q=x.next();!Q.done;Q=x.next())if(Q=Q.value,X[Q].length){var K=X[Q][0];K.height&&J.has(K.height)&&!K.codecs.startsWith("vp09")&&L.push(Q)}}J=g.d(L);for(L=J.next();!L.done;L=J.next())delete X[L.value]}; Pe=function(X,J){this.L=X;this.K=J}; B7m=function(X,J,L,x){var Q=[];L=g.d(L);for(var K=L.next();!K.done;K=L.next()){var q=K.value;if(q.url){K=new g.lI(q.url,!0);if(q.s){var D=K,C=q.sp,M=RMm(decodeURIComponent(q.s));D[I[25]](C,encodeURIComponent(M))}D=g.d(Object.keys(x));for(C=D.next();!C.done;C=D.next())C=C.value,K.set(C,x[C]);q=Rx(q.type,q.quality,q.itag,q.width,q.height);Q.push(new Pe(q,K))}}return oc(X.j,Q,QH(X,J),!1)}; ce=function(X,J){this.L=X;this.K=J}; sLm=function(X,J,L){var x=[];L=g.d(L);for(var Q=L.next();!Q.done;Q=L.next())if((Q=Q.value)&&Q.url){var K=Rx(Q.type,"medium","0");x.push(new ce(K,Q.url))}return oc(X.j,x,QH(X,J),!1)}; N7Z=function(X,J){var L=[],x=Rx(J.type,"auto",J.itag);L.push(new ce(x,J.url));return oc(X.j,L,!1,!0)}; mTz=function(X){return X&&UTA[X]?UTA[X]:null}; kKv=function(X){switch(X){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":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 X;default:return"sabr.config"}}; ZCA=function(X){if(X=X.commonConfig)this.url=X.url,this.urlQueryOverride=X.urlQueryOverride,X.ustreamerConfig&&(this.RY=dy(X.ustreamerConfig)||void 0)}; A5v=function(X,J){var L;if(J=J==null?void 0:(L=J.watchEndpointSupportedOnesieConfig)==null?void 0:L.html5PlaybackOnesieConfig)X.Ux=new ZCA(J)}; g.ET=function(X){X=X===void 0?{}:X;this.languageCode=X.languageCode||"";this.languageName=X.languageName||null;this.kind=X.kind||"";this.name=X.name===void 0?null:X.name;this.displayName=X.displayName||null;this.id=X.id||null;this.L=X.is_servable||!1;this.isTranslateable=X.is_translateable||!1;this.url=X.url||null;this.vssId=X.vss_id||"";this.isDefault=X.is_default||!1;this.translationLanguage=X.translationLanguage||null;this.xtags=X.xtags||"";this.captionId=X.captionId||""}; g.hD=function(X){var J={languageCode:X.languageCode,languageName:X.languageName,displayName:g.Y3(X),kind:X.kind,name:X.name,id:X.id,is_servable:X.L,is_default:X.isDefault,is_translateable:X.isTranslateable,vss_id:X.vssId};X.xtags&&(J.xtags=X.xtags);X.captionId&&(J.captionId=X.captionId);X.translationLanguage&&(J.translationLanguage=X.translationLanguage);return J}; g.zT=function(X){return X.translationLanguage?X.translationLanguage.languageCode:X.languageCode}; g.XhZ=function(X){var J=X.vssId;X.translationLanguage&&J&&(J="t"+J+"."+g.zT(X));return J}; g.Y3=function(X){var J=[];if(X.displayName)J.push(X.displayName);else{var L=X.languageName||"";J.push(L);X.kind==="asr"&&L.indexOf("(")===-1&&J.push(" (Subt\u00edtulos autom\u00e1ticos)");X.name&&J.push(" - "+X.name)}X.translationLanguage&&J.push(" >> "+X.translationLanguage.languageName);return J.join("")}; iaI=function(X,J,L,x){X||(X=J&&J9m.hasOwnProperty(J)&&Lle.hasOwnProperty(J)?Lle[J]+"_"+J9m[J]:void 0);J=X;if(!J)return null;X=J.match(xoZ);if(!X||X.length!==5)return null;if(X=J.match(xoZ)){var Q=Number(X[3]),K=[7,8,10,5,6];X=!(Number(X[1])===1&&Q===8)&&K.indexOf(Q)>=0}else X=!1;return L||x||X?J:null}; We=function(X,J){for(var L={},x=g.d(Object.keys(QXZ)),Q=x.next();!Q.done;Q=x.next()){Q=Q.value;var K=J?J+Q:Q;K=X[K+"_webp"]||X[K];g.eN(K)&&(L[QXZ[Q]]=K)}return L}; p4=function(X){var J={};if(!X||!X.thumbnails)return J;X=X.thumbnails.filter(function(D){return!!D.url}); X.sort(function(D,C){return D.width-C.width||D.height-C.height}); for(var L=g.d(Object.keys(Klo)),x=L.next();!x.done;x=L.next()){var Q=Number(x.value);x=Klo[Q];for(var K=g.d(X),q=K.next();!q.done;q=K.next())if(q=q.value,q.width>=Q){Q=qeS(q.url);g.eN(Q)&&(J[x]=Q);break}}(X=X.pop())&&X.width>=1280&&(X=qeS(X.url),g.eN(X)&&(J["maxresdefault.jpg"]=X));return J}; qeS=function(X){return X.startsWith("//")?"https:"+X:X}; rT=function(X){return X&&X.baseUrl||""}; ve=function(X){X=g.XU(X);for(var J=g.d(Object.keys(X)),L=J.next();!L.done;L=J.next()){L=L.value;var x=X[L];X[L]=Array.isArray(x)?x[0]:x}return X}; IAY=function(X,J){X.botguardData=J.playerAttestationRenderer.botguardData;J=J.playerAttestationRenderer.challenge;J!=null&&(X.QH=J)}; $oR=function(X,J){J=g.d(J);for(var L=J.next();!L.done;L=J.next()){L=L.value;var x=L.interstitials.map(function(q){var D=g.F(q,g68);if(D)return{is_yto_interstitial:!0,raw_player_response:D};if(q=g.F(q,Doe))return Object.assign({is_yto_interstitial:!0},ZB(q))}); x=g.d(x);for(var Q=x.next();!Q.done;Q=x.next())switch(Q=Q.value,L.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":X.interstitials=X.interstitials.concat({time:0,playerVars:Q,g8:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":X.interstitials=X.interstitials.concat({time:0x7ffffffffffff,playerVars:Q,g8:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var K=Number(L.podConfig.timeToInsertAtMillis);X.interstitials=X.interstitials.concat({time:K,playerVars:Q, g8:K===0?5:7})}}}; CgR=function(X,J){if(J=J.find(function(L){return!(!L||!L.tooltipRenderer)}))X.tooltipRenderer=J.tooltipRenderer}; M_A=function(X,J){J.subscribeCommand&&(X.subscribeCommand=J.subscribeCommand);J.unsubscribeCommand&&(X.unsubscribeCommand=J.unsubscribeCommand);J.addToWatchLaterCommand&&(X.addToWatchLaterCommand=J.addToWatchLaterCommand);J.removeFromWatchLaterCommand&&(X.removeFromWatchLaterCommand=J.removeFromWatchLaterCommand);J.getSharePanelCommand&&(X.getSharePanelCommand=J.getSharePanelCommand)}; y9R=function(X,J){J!=null?(X.Wu=J,X.UM=!0):(X.Wu="",X.UM=!1)}; jH=function(X,J){this.type=X||"";this.id=J||""}; TT=function(X){return new jH(X.substring(0,2),X.substring(2))}; GT=function(X,J){this.TH=X;this.author="";this.Ks=null;this.playlistLength=0;this.L=this.sessionData=null;this.S={};this.title="";if(J){this.author=J.author||J.playlist_author||"";this.title=J.playlist_title||"";if(X=J.session_data)this.sessionData=mJ(X,"&");var L;this.L=((L=J.thumbnail_ids)==null?void 0:L.split(",")[0])||null;this.S=We(J,"playlist_");this.videoId=J.video_id||void 0;if(L=J.list)switch(J.listType){case "user_uploads":this.playlistId=(new jH("UU","PLAYER_"+L)).toString();break;default:if(X= J.playlist_length)this.playlistLength=Number(X)||0;this.playlistId=TT(L).toString();if(J=J.video)this.videoId=(J[0]||null).video_id||void 0}else J.playlist&&(this.playlistLength=J.playlist.toString().split(",").length)}}; f4=function(X,J){this.TH=X;this.mV=this.author="";this.Ks=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.KV=this.lengthText="";this.sessionData=null;this.S={};this.title="";if(J){this.ariaLabel=J.aria_label||void 0;this.author=J.author||"";this.mV=J.mV||"";if(X=J.endscreen_autoplay_session_data)this.Ks=mJ(X,"&");this.Z0=J.Z0;this.isLivePlayback=J.live_playback==="1";this.isUpcoming=!!J.isUpcoming;if(X=J.length_seconds)this.lengthSeconds=typeof X==="string"?Number(X):X;this.lengthText= J.lengthText||"";this.KV=J.KV||"";this.publishedTimeText=J.publishedTimeText||void 0;if(X=J.session_data)this.sessionData=mJ(X,"&");this.shortViewCount=J.short_view_count_text||void 0;this.S=We(J);this.title=J.title||"";this.videoId=J.docid||J.video_id||J.videoId||J.id||void 0;this.watchUrl=J.watchUrl||void 0}}; n6Y=function(X){var J,L,x=(J=X.getWatchNextResponse())==null?void 0:(L=J.contents)==null?void 0:L.twoColumnWatchNextResults,Q,K,q,D,C;X=(Q=X.getWatchNextResponse())==null?void 0:(K=Q.playerOverlays)==null?void 0:(q=K.playerOverlayRenderer)==null?void 0:(D=q.endScreen)==null?void 0:(C=D.watchNextEndScreenRenderer)==null?void 0:C.results;if(!X){var M,y;X=x==null?void 0:(M=x.endScreen)==null?void 0:(y=M.endScreen)==null?void 0:y.results}return X}; g.F_=function(X){var J,L,x;X=g.F((J=X.getWatchNextResponse())==null?void 0:(L=J.playerOverlays)==null?void 0:(x=L.playerOverlayRenderer)==null?void 0:x.decoratedPlayerBarRenderer,eH);return g.F(X==null?void 0:X.playerBar,V_e)}; Hav=function(X){this.L=X.playback_progress_0s_url;this.N=X.playback_progress_2s_url;this.K=X.playback_progress_10s_url}; OaR=function(){if(lk===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(J){}a:{try{var X=!!self.localStorage}catch(J){X=!1}if(X&&(X=g.Wp(g.lu()+"::yt-player"))){lk=new rn(X);break a}lk=void 0}}return lk}; g.Rc=function(){var X=OaR();if(!X)return{};try{var J=X.get("yt-player-lv");return JSON.parse(J||"{}")}catch(L){return{}}}; g.aAA=function(X){var J=OaR();J&&(X=JSON.stringify(X),J.set("yt-player-lv",X))}; g.Be=function(X){return g.Rc()[X]||0}; g.sT=function(X,J){var L=g.Rc();J!==L[X]&&(J!==0?L[X]=J:delete L[X],g.aAA(L))}; g.Nv=function(X){return g.p(function(J){return J.return(g.Gd(wh8(),X))})}; mk=function(X,J,L,x,Q,K,q,D){var C,M,y,n,V,H;return g.p(function(O){switch(O.K){case 1:return C=g.Be(X),C===4?O.return(4):g.z(O,g.NA(),2);case 2:M=O.L;if(!M)throw g.HR("wiac");if(!D||q===void 0){O.fm(3);break}return g.z(O,t_Y(D,q),4);case 4:q=O.L;case 3:return y=L.lastModified||"0",g.z(O,g.Nv(M),5);case 5:return n=O.L,g.oz(O,6),UT++,g.z(O,g.PR(n,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",EH:!0},function(u){if(K!==void 0&&q!==void 0){var S=""+X+"|"+J.id+"|"+y+"|"+String(K).padStart(10, "0");S=g.cR(u.objectStore("media"),q,S)}else S=g.aZ.resolve(void 0);var Y=dom(X,J.JO()),h=dom(X,!J.JO()),W={fmts:uoW(x),format:L||{}};Y=g.cR(u.objectStore("index"),W,Y);var T=x.downloadedEndTime===-1;W=T?u.objectStore("index").get(h):g.aZ.resolve(void 0);var l={fmts:"music",format:{}};u=T&&Q&&!J.JO()?g.cR(u.objectStore("index"),l,h):g.aZ.resolve(void 0);return g.aZ.all([u,W,S,Y]).then(function(Jo){Jo=g.d(Jo);Jo.next();Jo=Jo.next().value;UT--;var U=g.Be(X);if(U!==4&&T&&Q||Jo!==void 0&&g.o6A(Jo.fmts))U= 1,g.sT(X,U);return U})}),8); case 8:return O.return(O.L);case 6:V=g.EA(O);UT--;H=g.Be(X);if(H===4)return O.return(H);g.sT(X,4);throw V;}})}; g.baZ=function(X){var J,L;return g.p(function(x){if(x.K==1)return g.z(x,g.NA(),2);if(x.K!=3){J=x.L;if(!J)throw g.HR("ri");return g.z(x,g.Nv(J),3)}L=x.L;return x.return(g.PR(L,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(Q){var K=IDBKeyRange.bound(X+"|",X+"~");return Q.objectStore("index").getAll(K).then(function(q){return q.map(function(D){return D?D.format:{}})})}))})}; Pgv=function(X,J,L,x,Q){var K,q,D;return g.p(function(C){if(C.K==1)return g.z(C,g.NA(),2);if(C.K!=3){K=C.L;if(!K)throw g.HR("rc");return g.z(C,g.Nv(K),3)}q=C.L;D=g.PR(q,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(M){var y=""+X+"|"+J+"|"+L+"|"+String(x).padStart(10,"0");return M.objectStore("media").get(y)}); return Q?C.return(D.then(function(M){if(M===void 0)throw Error("No data from indexDb");return SeO(Q,M)}).catch(function(M){throw new g.Fm("Error while reading chunk: "+M.name+", "+M.message); })):C.return(D)})}; g.o6A=function(X){return X?X==="music"?!0:X.includes("dlt=-1")||!X.includes("dlt="):!1}; dom=function(X,J){return""+X+"|"+(J?"v":"a")}; uoW=function(X){var J={};return kP((J.dlt=X.downloadedEndTime.toString(),J.mket=X.maxKnownEndTime.toString(),J.avbr=X.averageByteRate.toString(),J))}; E6o=function(X){var J={},L={};X=g.d(X);for(var x=X.next();!x.done;x=X.next()){var Q=x.value,K=Q.split("|");Q.match(g.c9m)?(x=Number(K.pop()),isNaN(x)?L[Q]="?":(K=K.join("|"),(Q=J[K])?(K=Q[Q.length-1],x===K.end+1?K.end=x:Q.push({start:x,end:x})):J[K]=[{start:x,end:x}])):L[Q]="?"}X=g.d(Object.keys(J));for(x=X.next();!x.done;x=X.next())x=x.value,L[x]=J[x].map(function(q){return q.start+"-"+q.end}).join(","); return L}; k3=function(X){g.Ly.call(this);this.L=null;this.N=new vp;this.L=null;this.B=new Set;this.crossOrigin=X||""}; Yeo=function(X,J,L){for(L=Z0(X,L);L>=0;){var x=X.levels[L];if(x.isLoaded(AD(x,J))&&(x=g.XQ(x,J)))return x;L--}return g.XQ(X.levels[0],J)}; zOA=function(X,J,L){L=Z0(X,L);for(var x,Q;L>=0;L--)if(x=X.levels[L],Q=AD(x,J),!x.isLoaded(Q)){x=X;var K=L,q=K+"-"+Q;x.B.has(q)||(x.B.add(q),x.N.enqueue(K,{a9:K,Ub:Q}))}hOR(X)}; hOR=function(X){if(!X.L&&!X.N.isEmpty()){var J=X.N.remove();X.L=WlR(X,J)}}; WlR=function(X,J){var L=document.createElement("img");X.crossOrigin&&(L.crossOrigin=X.crossOrigin);L.src=X.levels[J.a9].Eo(J.Ub);L.onload=function(){var x=J.a9,Q=J.Ub;X.L!==null&&(X.L.onload=null,X.L=null);x=X.levels[x];x.loaded.add(Q);hOR(X);var K=x.columns*x.rows;Q*=K;x=Math.min(Q+K-1,x.Mw()-1);Q=[Q,x];X.publish("l",Q[0],Q[1])}; return L}; g.Jv=function(X,J,L,x){this.level=X;this.T=J;this.loaded=new Set;this.level=X;this.T=J;X=L.split("#");this.width=Math.floor(Number(X[0]));this.height=Math.floor(Number(X[1]));this.frameCount=Math.floor(Number(X[2]));this.columns=Math.floor(Number(X[3]));this.rows=Math.floor(Number(X[4]));this.L=Math.floor(Number(X[5]));this.N=X[6];this.signature=X[7];this.videoLength=x}; AD=function(X,J){return Math.floor(J/(X.columns*X.rows))}; g.XQ=function(X,J){J>=X.oy()&&X.MD();var L=AD(X,J),x=X.columns*X.rows,Q=J%x;J=Q%X.columns;Q=Math.floor(Q/X.columns);var K=X.MD()+1-x*L;if(K1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; phR=function(X,J,L){return(X=X.levels[J])?X.Pw(L):-1}; Z0=function(X,J){var L=X.T.get(J);if(L)return L;L=X.levels.length;for(var x=0;x=J)return X.T.set(J,x),x;X.T.set(J,L-1);return L-1}; xU=function(X,J,L,x){L=L.split("#");L=[L[1],L[2],0,L[3],L[4],-1,L[0],""].join("#");g.Jv.call(this,X,J,L,0);this.K=null;this.j=x?2:0}; il=function(X,J,L,x){LI.call(this,X,0,void 0,J,!(x===void 0||!x));for(X=0;X50&&(J=lAR.shift())&&DX.delete(J),J=x),x!==J&&X.fE("ssei","dcpn_"+x+"_"+J+"_"+X.clientPlaybackNonce),J)}; Il=function(X,J){var L=J.raw_watch_next_response;if(!L){var x=J.watch_next_response;x&&(L=JSON.parse(x))}if(L){X.Bl=L;var Q=X.Bl.playerCueRangeSet;Q&&g.$U(X,Q);var K=X.Bl.playerOverlays;if(K){var q=K.playerOverlayRenderer;if(q){var D=q.autonavToggle;D&&(X.autoplaySwitchButtonRenderer=g.F(D,ROO),X.Y("web_player_autonav_use_server_provided_state")&&CI(X)&&(X.autonavState=X.autoplaySwitchButtonRenderer.enabled?2:1));var C=q.videoDetails;if(C){var M=C.embeddedPlayerOverlayVideoDetailsRenderer;var y=C.playerOverlayVideoDetailsRenderer; y&&(y.title&&(J.title=g.Dn(y.title)),y.subtitle&&(J.subtitle=g.Dn(y.subtitle)))}g.mB(X.TH)&&(X.o2=!!q.addToMenu);BdR(X,q.shareButton);q.startPosition&&q.endPosition&&(X.progressBarStartPosition=q.startPosition,X.progressBarEndPosition=q.endPosition);var n=q.gatedActionsOverlayRenderer;n&&(X.g7=g.F(n,sXA));var V,H,O,u=g.F((V=X.getWatchNextResponse())==null?void 0:(H=V.playerOverlays)==null?void 0:(O=H.playerOverlayRenderer)==null?void 0:O.infoPanel,NdZ);if(u){X.NE=Number(u==null?void 0:u.durationMs)|| NaN;if(u==null?0:u.infoPanelOverviewViewModel)X.BO=u==null?void 0:u.infoPanelOverviewViewModel;if(u==null?0:u.infoPanelDetailsViewModel)X.e1=u==null?void 0:u.infoPanelDetailsViewModel}X.showSeekingControls=!!q.showSeekingControls}}var S,Y,h=(S=X.getWatchNextResponse())==null?void 0:(Y=S.contents)==null?void 0:Y.twoColumnWatchNextResults;if(h){var W=h.desktopOverlay&&g.F(h.desktopOverlay,UoS);W&&(W.suppressShareButton&&(X.showShareButton=!1),W.suppressWatchLaterButton&&(X.o2=!1))}M&&moz(X,J,M);var T= Ll(0,J.autoplay_count),l=X.getWatchNextResponse(),Jo,U=(Jo=l.contents)==null?void 0:Jo.twoColumnWatchNextResults,QP,Iz,qS,$e=(QP=l.playerOverlays)==null?void 0:(Iz=QP.playerOverlayRenderer)==null?void 0:(qS=Iz.autoplay)==null?void 0:qS.playerOverlayAutoplayRenderer,k=n6Y(X),cW,rI=(cW=l.contents)==null?void 0:cW.singleColumnWatchNextResults;if(rI){var Xv;if(((Xv=rI.autoplay)==null?0:Xv.autoplay)&&!rI.playlist){var T0=rI.autoplay.autoplay.sets,aH={},Tm=new f4(X.G()),ZH=null,nd;if(T0){for(var l8=g.d(T0), LJ=l8.next();!LJ.done;LJ=l8.next()){var E=LJ.value.autoplayVideoRenderer;if(E&&E.compactVideoRenderer){ZH=E.compactVideoRenderer;break}}if(nd=T0[0].autoplayVideo){var jJ=nd.clickTrackingParams;jJ&&(aH.itct=jJ);aH.autonav="1";aH.playnext=String(T)}}else aH.feature="related-auto";var hS=g.F(nd,g.Md);if(ZH){Tm.videoId=ZH.videoId;var xe=ZH.shortBylineText;xe&&(Tm.author=g.Dn(xe));var cV=ZH.title;cV&&(Tm.title=g.Dn(cV))}else hS!=null&&hS.videoId&&(Tm.videoId=hS.videoId);Tm.Ks=aH;X.suggestions=[];X.h4= Tm}}if(k){for(var b=[],LR=g.d(k),RS=LR.next();!RS.done;RS=LR.next()){var qK=RS.value,G0=void 0,Rz=null;if(qK.endScreenVideoRenderer){var ZO=qK.endScreenVideoRenderer,ZR=ZO.title;Rz=new f4(X.G());Rz.videoId=ZO.videoId;Rz.lengthSeconds=ZO.lengthInSeconds||0;var TU=ZO.publishedTimeText;TU&&(Rz.publishedTimeText=g.Dn(TU));var P=ZO.shortBylineText;P&&(Rz.author=g.Dn(P));var t=ZO.shortViewCountText;t&&(Rz.shortViewCount=g.Dn(t));if(ZR){Rz.title=g.Dn(ZR);var c=ZR.accessibility;if(c){var r=c.accessibilityData; r&&r.label&&(Rz.ariaLabel=r.label)}}var e=ZO.navigationEndpoint;if(e){G0=e.clickTrackingParams;var MS=g.F(e,g.Md),B=g.F(e,g.z2);MS?Rz.Z0=MS:B!=null&&(Rz.watchUrl=B.url)}var A=ZO.thumbnailOverlays;if(A)for(var v=g.d(A),zm=v.next();!zm.done;zm=v.next()){var FY=zm.value.thumbnailOverlayTimeStatusRenderer;if(FY)if(FY.style==="LIVE"){Rz.isLivePlayback=!0;break}else if(FY.style==="UPCOMING"){Rz.isUpcoming=!0;break}}Rz.S=p4(ZO.thumbnail)}else if(qK.endScreenPlaylistRenderer){var gI=qK.endScreenPlaylistRenderer, DH=gI.navigationEndpoint;if(!DH)continue;var Ye=g.F(DH,g.Md);if(!Ye)continue;var dI=Ye.videoId;Rz=new GT(X.G());Rz.playlistId=gI.playlistId;Rz.playlistLength=Number(gI.videoCount)||0;Rz.L=dI||null;Rz.videoId=dI;var Xw=gI.title;Xw&&(Rz.title=g.Dn(Xw));var oH=gI.shortBylineText;oH&&(Rz.author=g.Dn(oH));G0=DH.clickTrackingParams;Rz.S=p4(gI.thumbnail)}Rz&&(G0&&(Rz.sessionData={itct:G0}),b.push(Rz))}X.suggestions=b}if($e){X.V4=!!$e.preferImmediateRedirect;X.RT=X.RT||!!$e.webShowNewAutonavCountdown;X.cf= X.cf||!!$e.webShowBigThumbnailEndscreen;if(X.RT||X.cf){var vV=U||null,S8=new f4(X.G());S8.videoId=$e.videoId;var uF=$e.videoTitle;if(uF){S8.title=g.Dn(uF);var ho=uF.accessibility;if(ho){var z0=ho.accessibilityData;z0&&z0.label&&(S8.ariaLabel=z0.label)}}var b8=$e.byline;b8&&(S8.author=g.Dn(b8));var IS=$e.publishedTimeText;IS&&(S8.publishedTimeText=g.Dn(IS));var SI=$e.shortViewCountText;SI&&(S8.shortViewCount=g.Dn(SI));var Lk=$e.thumbnailOverlays;if(Lk)for(var Qf=g.d(Lk),RH=Qf.next();!RH.done;RH=Qf.next()){var WV= RH.value.thumbnailOverlayTimeStatusRenderer;if(WV)if(WV.style==="LIVE"){S8.isLivePlayback=!0;break}else if(WV.style==="UPCOMING"){S8.isUpcoming=!0;break}else if(WV.style==="DEFAULT"&&WV.text){S8.lengthText=g.Dn(WV.text);var ER=WV.text.accessibility;if(ER){var AB=ER.accessibilityData;AB&&AB.label&&(S8.KV=AB.label||"")}break}}S8.S=p4($e.background);var ta=$e.nextButton;if(ta){var eB=ta.buttonRenderer;if(eB){var x_=eB.navigationEndpoint;if(x_){var i9=g.F(x_,g.Md);i9&&(S8.Z0=i9)}}}if($e.topBadges){var KQ= $e.topBadges[0];if(KQ){var oW=g.F(KQ,kPI);oW&&oW.style==="BADGE_STYLE_TYPE_PREMIUM"&&(S8.AOM=!0)}}var TW=$e.alternativeTitle;TW&&(S8.mV=g.Dn(TW));var Xb={autonav:"1",playnext:String(T)};S8.playlistId&&(Xb.autoplay="1");if(vV){var GW,Jw,dz,Fb,uh=(GW=vV.autoplay)==null?void 0:(Jw=GW.autoplay)==null?void 0:(dz=Jw.sets)==null?void 0:(Fb=dz[0])==null?void 0:Fb.autoplayVideo;if(uh){var Q_=uh.clickTrackingParams;Q_&&(Xb.itct=Q_);var o6=g.F(uh,g.Md);o6&&(S8.Cd=o6)}}else if($e){var Kk,qE,Ia,gO=(Kk=$e.nextButton)== null?void 0:(qE=Kk.buttonRenderer)==null?void 0:(Ia=qE.navigationEndpoint)==null?void 0:Ia.clickTrackingParams;gO&&(Xb.itct=gO)}Xb.itct||(Xb.feature="related-auto");S8.Ks=Xb;X.suggestions||(X.suggestions=[]);X.h4=S8}$e.countDownSecs!=null&&(X.V3=$e.countDownSecs*1E3);$e.countDownSecsForFullscreen!=null&&(X.Qd=$e.countDownSecsForFullscreen>=0?$e.countDownSecsForFullscreen*1E3:-1);X.Y("web_autonav_color_transition")&&$e.watchToWatchTransitionRenderer&&(X.watchToWatchTransitionRenderer=g.F($e.watchToWatchTransitionRenderer, ZaI))}var bh=n6Y(X);if(bh){var qz,Dr,wF,tm=bh==null?void 0:(qz=bh[0])==null?void 0:(Dr=qz.endScreenVideoRenderer)==null?void 0:(wF=Dr.navigationEndpoint)==null?void 0:wF.clickTrackingParams,Tw=g.yh(X);tm&&Tw&&(Tw.sessionData={itct:tm})}X.Bl.currentVideoThumbnail&&(X.S=p4(X.Bl.currentVideoThumbnail));var e4,Fd,l9,qp,Gw,oi=(e4=X.Bl)==null?void 0:(Fd=e4.contents)==null?void 0:(l9=Fd.twoColumnWatchNextResults)==null?void 0:(qp=l9.results)==null?void 0:(Gw=qp.results)==null?void 0:Gw.contents;if(oi&&oi[1]){var fu, Ig,Ra,bF,Sp=(fu=oi[1].videoSecondaryInfoRenderer)==null?void 0:(Ig=fu.owner)==null?void 0:(Ra=Ig.videoOwnerRenderer)==null?void 0:(bF=Ra.thumbnail)==null?void 0:bF.thumbnails;Sp&&Sp.length&&(X.profilePicture=Sp[Sp.length-1].url)}var Gs=QV(J),gJ,dF=(gJ=X.getWatchNextResponse())==null?void 0:gJ.onResponseReceivedEndpoints;if(dF)for(var Dz=g.d(dF),eu=Dz.next();!eu.done;eu=Dz.next()){var FR=eu.value;g.F(FR,nI)&&(X.fl=g.F(FR,nI));var DF=g.F(FR,A9Z),Uc=void 0;if((Uc=DF)==null?0:Uc.entityKeys)X.GY=DF.entityKeys|| [],DF.visibleOnLoadKeys&&(X.visibleOnLoadKeys=DF.visibleOnLoadKeys)}if(X.Y("web_key_moments_markers")){var Du=g.Vh.getState().entities,CA=g.ky("visibility_override","markersVisibilityOverrideEntity");var fp=AL(Du,"markersVisibilityOverrideEntity",CA);X.J0=(fp==null?void 0:fp.videoId)===(X.videoId||Gs)&&(fp==null?0:fp.visibilityOverrideMarkersKey)?fp.visibilityOverrideMarkersKey:X.visibleOnLoadKeys;X.visibleOnLoadKeys=[].concat(g.nR(X.J0))}}}; CI=function(X){var J;return((J=X.autoplaySwitchButtonRenderer)==null?void 0:J.enabled)!==void 0}; Hd=function(X){return!!(X.N&&X.N.videoInfos&&X.N.videoInfos.length)}; g.ul=function(X){var J=X.W;X.Y("html5_gapless_unlimit_format_selection")&&Or(X)&&(J=!1);var L=!!X.L&&X.L.Zw,x=X.TH,Q=X.m1(),K=al(X),q=X.bB,D=J,C=X.isOtf();J=X.J8();var M=X.Cm,y=X.getUserAudio51Preference(),n=wN(X),V=tv(X),H=new rfv(x);if(x.YH()||x.Y("html5_logging_format_selection"))H.K=!0;H.jC=K;H.bB=q&&x.S;H.FE=y;g.To("windows nt 5.1")&&!g.gy&&(H.yJ=!0);if(K=Q)K=g.VH(x)?bCS(x):!1;K&&(H.Km=!0);D&&(H.yJ=!0,H.XX=!0);C&&!x.Y("html5_otf_prefer_vp9")&&(H.yJ=!0);x.playerStyle==="picasaweb"&&(C&&(H.yJ= !1),H.aB=!1);M&&(H.yJ=!0);eo(x.j,FV.CHANNELS)&&(x.Y("html5_enable_ac3")&&(H.T=!0),x.Y("html5_enable_eac3")&&(H.j=!0),x.Y("html5_enable_ac3_gapless")&&(H.gI=!0));x.Y("html5_block_8k_hfr")&&(H.SC=!0);H.B=g.J_(x.experiments,"html5_max_selectable_quality_ordinal");H.W=g.J_(x.experiments,"html5_min_selectable_quality_ordinal");f0&&(H.sH=480);if(L||Q)H.aB=!1;H.J0=!1;H.disableAv1=n;L=X0(x,H.L,void 0,H.disableAv1);L>0&&L<2160&&(K8()||x.Y("html5_format_hybridization"))&&(H.L.supportsChangeType=+K8(),H.PJ= L);L>=2160&&(H.Pl=!0);JMe()&&!x.Y("disable_av1_setting")&&(H.L.serveVp9OverAv1IfHigherRes=0,H.H9=!1);H.J8=J;H.vl=g.lT||ZE()&&!J?!1:!0;H.S=x.Y("html5_format_hybridization");H.A0=x.Y("html5_disable_encrypted_vp9_live_non_2k_4k");H.Lp=V;dN(X)&&(H.t_=X.Y("html5_prefer_language_over_codec"));e7()&&X.playerResponse&&X.playerResponse.playerConfig&&X.playerResponse.playerConfig.webPlayerConfig&&X.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(H.T=!0,H.j=!0);X.W&&X.isAd()&&(X.mP&& (H.D=X.mP),X.Gw&&(H.N=X.Gw));H.Bl=X.isLivePlayback&&X.zC()&&X.TH.Y("html5_drm_live_audio_51");H.Cm=X.Ag;H.Nx=!dN(X);return X.fY=H}; wN=function(X){return X.TH.Y("html5_disable_av1")||X.Y("html5_gapless_shorts_disable_av1")&&Or(X)?!0:!1}; XZv=function(X){oo("drm_pb_s",void 0,X.D);X.Hl||X.L&&vK(X.L);var J={};X.L&&(J=yMZ(X.W2,g.ul(X),X.TH.j,X.L,function(L){return X.publish("ctmp","fmtflt",L)},!0,new Set)); J=new C0(J,X.TH,X.Ek,X.useCobaltWidevine?e7()?ol(X):!1:!1,function(L,x){X.Ni(L,x)}); g.f(X,J);X.cq=!1;X.loading=!0;GxR(J,function(L){oo("drm_pb_f",void 0,X.D);for(var x=g.d(L),Q=x.next();!Q.done;Q=x.next())switch(Q=Q.value,Q.flavor){case "fairplay":Q.Hl=X.Hl;Q.oI=X.oI;Q.JC=X.JC;break;case "widevine":Q.yc=X.yc}X.Av=L;if(X.Av.length>0&&(X.j=X.Av[0],X.TH.YH())){L={};x=g.d(Object.entries(X.j.L));for(Q=x.next();!Q.done;Q=x.next()){var K=g.d(Q.value);Q=K.next().value;K=K.next().value;var q="unk";(Q=Q.match(/(.*)codecs="(.*)"/))&&(q=Q[2]);L[q]=K}X.Ni("drmProbe",L)}X.c$()})}; JEm=function(X,J){if(J.length===0||bl(X))return null;X.TH.j.N&&(kQ=!0);var L=X.V0;var x=X.lengthSeconds,Q=X.isLivePlayback,K=X.Bv,q=X.TH,D=wvY(J);if(Q||K){q=q.experiments;x=new ru("",q,!0);x.K=!K;x.Zw=!0;x.isManifestless=!0;x.isLive=!K;x.Bv=K;J=g.d(J);for(Q=J.next();!Q.done;Q=J.next()){var C=Q.value;Q=TO(C,L);D=ms(C);D=fY(D.xk||C.url||"",D.kz,D.s);var M=D.get("id");M&&M.includes("%7E")&&(x.D=!0);var y=void 0;M=(y=q)==null?void 0:y.Mi("html5_max_known_end_time_rebase");y=Number(C.targetDurationSec|| 5);C=Number(C.maxDvrDurationSec||14400);var n=Number(D.get("mindsq")||D.get("min_sq")||"0"),V=Number(D.get("maxdsq")||D.get("max_sq")||"0")||Infinity;x.hO=x.hO||n;x.PS=x.PS||V;var H=!l2(Q.mimeType);D&&zO(x,new Va(D,Q,{nJ:y,T0:H,Ey:C,hO:n,PS:V,U9:300,Bv:K,UR:M}))}L=x}else if(D==="FORMAT_STREAM_TYPE_OTF"){x=x===void 0?0:x;K=new ru("",q.experiments,!1);K.duration=x||0;q=g.d(J);for(x=q.next();!x.done;x=q.next())x=x.value,J=TO(x,L,K.duration),Q=ms(x),(Q=fY(Q.xk||x.url||"",Q.kz,Q.s))&&(J.streamType==="FORMAT_STREAM_TYPE_OTF"? zO(K,new Hr(Q,J,"sq/0")):zO(K,new ES(Q,J,kz(x.initRange),kz(x.indexRange))));K.isOtf=!0;L=K}else{x=x===void 0?0:x;K=new ru("",q.experiments,!1);K.duration=x||0;q=g.d(J);for(x=q.next();!x.done;x=q.next())D=x.value,x=TO(D,L,K.duration),J=kz(D.initRange),Q=kz(D.indexRange),M=ms(D),(D=fY(M.xk||D.url||"",M.kz,M.s))&&zO(K,new ES(D,x,J,Q));L=K}K=X.isLivePlayback&&!X.Bv&&!X.Km&&!X.isPremiere;X.Y("html5_live_head_playable")&&(!Sw(X)&&K&&X.Ni("missingLiveHeadPlayable",{}),X.TH.Km==="yt"&&(L.jC=!0));return L}; bl=function(X){return e7()?!ol(X):lZ()?!(!X.Hl||!X.Y("html5_enable_safari_fairplay")&&aG()):!1}; ol=function(X){return X.Y("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.$U=function(X,J){J=g.d(J);for(var L=J.next();!L.done;L=J.next())if(L=L.value,L.cueRangeSetIdentifier){var x=void 0;X.kP.set(L.cueRangeSetIdentifier,(x=L.playerCueRanges)!=null?x:[])}}; Pd=function(X){return!(!X.L||!X.L.isManifestless)}; cd=function(X){return X.sH?X.isLowLatencyLiveStream&&X.L!=null&&Re(X.L)>=5:X.isLowLatencyLiveStream&&X.L!=void 0&&Re(X.L)>=5}; LuO=function(X){return e7()&&ol(X)?!1:bl(X)&&(g.M2(X.TH)?!X.isLivePlayback:X.hlsvp)||!aG()||X.l2?!0:!1}; Q8v=function(X){X.loading=!0;X.xj=!1;if(xao(X))g.baZ(X.videoId).then(function(x){iBZ(X,x)}).then(function(){X.c$()}); else{fD(X.XX)||g.PM(new g.Fm("DASH MPD Origin invalid: ",X.XX));var J=X.XX,L=g.J_(X.TH.experiments,"dash_manifest_version")||4;J=g.Hw(J,{mpd_version:L});X.isLowLatencyLiveStream&&X.latencyClass!=="NORMAL"||(J=g.Hw(J,{pacing:0}));cfz(J,X.TH.experiments,X.isLivePlayback).then(function(x){X.E6()||(Er(X,x,!0),oo("mrc",void 0,X.D),X.c$())},function(x){X.E6()||(X.loading=!1,X.publish("dataloaderror",new g.Mh("manifest.net.retryexhausted",{backend:"manifest", rc:x.status},1)))}); oo("mrs",void 0,X.D)}}; iBZ=function(X,J){var L=J.map(function(C){return C.itag}),x; if((x=X.playerResponse)!=null&&x.streamingData){x=[];if(X.Y("html5_offline_always_use_local_formats")){L=0;for(var Q=g.d(J),K=Q.next();!K.done;K=Q.next()){K=K.value;var q=Object.assign({},K);q.signatureCipher="";x.push(q);q=g.d(X.playerResponse.streamingData.adaptiveFormats);for(var D=q.next();!D.done;D=q.next())if(D=D.value,K.itag===D.itag&&K.xtags===D.xtags){L+=1;break}}Ly&&(y=H.getInfo().audio.numChannels)}y>2&&X.Ni("hlschl",{mn:y});var S;((S=X.fY)==null?0:S.K)&&X.Ni("hlsfmtaf",{itags:n.join(".")});var Y;if(X.Y("html5_enable_vp9_fairplay")&&((Y=X.j)==null?0:qP(Y)))for(X.Ni("drm",{sbdlfbk:1}),y=g.d(X.Av),n=y.next();!n.done;n=y.next())if(n=n.value,K0(n)){X.j=n;break}Wd(X,M)})}return P6()}; DaI=function(X){if(X.isExternallyHostedPodcast&&X.YU){var J=z$(X.YU);if(!J[0])return P6();X.ZYB=J[0];return N7Z(X.TH,J[0]).then(function(L){Wd(X,L)})}return X.CA&&X.hV?sLm(X.TH,X.isAd(),X.CA).then(function(L){Wd(X,L)}):P6()}; C5I=function(X){if(X.isExternallyHostedPodcast)return P6();var J=z$(X.YU,X.KL);if(X.hlsvp){var L=r9Z(X.hlsvp,X.clientPlaybackNonce,X.H9);J.push(L)}return B7m(X.TH,X.isAd(),J,$aI(X)).then(function(x){Wd(X,x)})}; Wd=function(X,J){X.pO=J;X.TW(new hW(g.H5(X.pO,function(L){return L.getInfo()})))}; $aI=function(X){var J={cpn:X.clientPlaybackNonce,c:X.TH.L.c,cver:X.TH.L.cver};X.Mm&&(J.ptk=X.Mm,J.oid=X.T5,J.ptchn=X.PG,J.pltype=X.fU,X.Uq&&(J.m=X.Uq));return J}; g.pI=function(X){return bl(X)&&X.Hl?(X={},X.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",X):X.K&&X.K.V0||null}; Mzo=function(X){var J=rN(X);return J&&J.text?g.Dn(J.text):X.paidContentOverlayText}; yEe=function(X){var J=rN(X);return J&&J.durationMs?W_(J.durationMs):X.paidContentOverlayDurationMs}; rN=function(X){var J,L,x;return X.playerResponse&&X.playerResponse.paidContentOverlay&&X.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.F((J=X.Bl)==null?void 0:(L=J.playerOverlays)==null?void 0:(x=L.playerOverlayRenderer)==null?void 0:x.playerDisclosure,nsm)||null}; vd=function(X){var J="";if(X.zF)return X.zF;X.isLivePlayback&&(J=X.allowLiveDvr?"dvr":X.isPremiere?"lp":X.Km?"window":"live");X.Bv&&(J="post");return J}; g.jw=function(X,J){return typeof X.keywords[J]!=="string"?null:X.keywords[J]}; VzZ=function(X){return!!X.Xu||!!X.sf||!!X.eI||!!X.tC||X.lQ}; g.T$=function(X){return!!(X.XX||X.YU||X.CA||X.hlsvp||X.xx())}; qd=function(X){if(X.Y("html5_onesie")&&X.errorCode)return!1;var J=g.tS(X.aB,"ypc");X.ypcPreview&&(J=!1);return X.bl()&&!X.loading&&(g.T$(X)||g.tS(X.aB,"heartbeat")||J)}; z$=function(X,J){X=AI(X);var L={};if(J){J=g.d(J.split(","));for(var x=J.next();!x.done;x=J.next())(x=x.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(L[x[1]]={width:x[2],height:x[3]})}J=g.d(X);for(x=J.next();!x.done;x=J.next()){x=x.value;var Q=L[x.itag];Q&&(x.width=Q.width,x.height=Q.height)}return X}; BdR=function(X,J){X.showShareButton=!!J;var L,x,Q=((L=g.F(J,g.JE))==null?void 0:L.navigationEndpoint)||((x=g.F(J,g.JE))==null?void 0:x.command);Q&&(X.IC=!!g.F(Q,HBA))}; v6Z=function(X,J){var L=J.raw_embedded_player_response;if(!L){var x=J.embedded_player_response;x&&(L=JSON.parse(x))}L&&(X.BS=L);if(X.BS){X.embeddedPlayerConfig=X.BS.embeddedPlayerConfig||null;if(L=X.BS.videoFlags)L.playableInEmbed&&(X.allowEmbed=!0),L.isPrivate&&(X.isPrivate=!0),L.userDisplayName&&(J.user_display_name=L.userDisplayName),L.userDisplayImage&&(J.user_display_image=L.userDisplayImage);if(L=X.BS.embedPreview){L=L.thumbnailPreviewRenderer;y9R(X,L.controlBgHtml);if(x=L.defaultThumbnail)X.S= p4(x);X.Y("embeds_web_enable_search_button")&&L.searchButton&&(x=g.F(L.searchButton,g.JE))&&(X.xFB=g.F(x.navigationEndpoint,g.G$));(x=g.F(L==null?void 0:L.videoDetails,OBm))&&moz(X,J,x);x=g.F(L==null?void 0:L.videoDetails,aWI);X.o2=!!L.addToWatchLaterButton;BdR(X,L.shareButton);if(x==null?0:x.musicVideoType)X.musicVideoType=x.musicVideoType;var Q,K,q,D,C;if(x=g.F((Q=X.getEmbeddedPlayerResponse())==null?void 0:(K=Q.embedPreview)==null?void 0:(q=K.thumbnailPreviewRenderer)==null?void 0:(D=q.playButton)== null?void 0:(C=D.buttonRenderer)==null?void 0:C.navigationEndpoint,g.Md))A5v(X,x),X.videoId=x.videoId||X.videoId;L.videoDurationSeconds&&(X.lengthSeconds=W_(L.videoDurationSeconds));L.webPlayerActionsPorting&&M_A(X,L.webPlayerActionsPorting);if(Q=g.F(L==null?void 0:L.playlist,wZz)){X.M9=!0;K=[];q=Number(Q.currentIndex);if(Q.contents)for(D=0,C=Q.contents.length;D0:X.HO?!1:X.TH.Ii||X.TH.xj||!g.lb(X.TH)?!0:!1:(X.HO?0:X.Vq)&&g.lb(X.TH)?!0:!1;X.Y("html5_log_detailpage_autoplay")&&m_(X)==="detailpage"&&X.Ni("autoplay_info",{autoplay:X.lZ,autonav:X.isAutonav,wasDompaused:X.HO,result:J});return J}; g.X3=function(X){return X.oauthToken||X.TH.gp}; YyS=function(X){if(X.Y("html5_stateful_audio_normalization")){var J=1,L=g.J_(X.TH.experiments,"html5_default_ad_gain");L&&X.isAd()&&(J=L);var x,Q;L=(Q=(x=X.T)==null?void 0:x.audio.T)!=null?Q:X.vr;if(L==null||isNaN(L))X=EsW(X);else{x=(0,g.uT)();X.XB=2;Q=x-X.TH.e1<=X.maxStatefulTimeThresholdSec*1E3;X.applyStatefulNormalization&&Q?X.XB=4:Q||(X.TH.Ov=Infinity,X.TH.e1=NaN);Q=(X.XB===4?g.fW(X.TH.Ov,X.minimumLoudnessTargetLkfs,X.loudnessTargetLkfs):X.loudnessTargetLkfs)-L;if(X.XB!==4){var K,q,D,C,M=((K= X.playerResponse)==null?void 0:(q=K.playerConfig)==null?void 0:(D=q.audioConfig)==null?void 0:(C=D.loudnessNormalizationConfig)==null?void 0:C.statelessLoudnessAdjustmentGain)||0;Q+=M}Q=Math.min(Q,0);X.preserveStatefulLoudnessTarget&&(X.TH.Ov=L+Q,X.TH.e1=x);X=Math.min(1,Math.pow(10,Q/20))||J}}else X=EsW(X);return X}; EsW=function(X){var J=1,L=g.J_(X.TH.experiments,"html5_default_ad_gain");L&&X.isAd()&&(J=L);if(X.TH.experiments.Mi("html5_audio_gain_null_coalescing")){var x,Q;L=(Q=(x=X.T)==null?void 0:x.audio.N)!=null?Q:X.oT;L==0&&X.Ni("db0fix",{rldb:X.oT},!0)}else{var K;L=((K=X.T)==null?void 0:K.audio.N)||X.oT}isNaN(L)||(X.XB=1);return Math.min(1,Math.pow(10,-L/20))||J}; al=function(X){var J=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],L=n0(X.TH)==="TVHTML5_SIMPLY"&&X.TH.L.ctheme==="MUSIC";!X.In&&(g.ze(X.TH)||g.Mv(X.TH)||L)&&(J.includes(X.musicVideoType)||X.isExternallyHostedPodcast)&&(X.In=!0);if(J=g.fU())J=/Starboard\/([0-9]+)/.exec(g.vc()),J=(J?parseInt(J[1],10):NaN)<10;L=X.TH;L=(n0(L)==="TVHTML5_CAST"||n0(L)==="TVHTML5"&&(L.L.cver.startsWith("6.20130725")||L.L.cver.startsWith("6.20130726")))&&X.TH.L.ctheme==="MUSIC";var x;if(x=!X.In)L||(L= X.TH,L=n0(L)==="TVHTML5"&&L.L.cver.startsWith("7")),x=L;x&&!J&&(J=X.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",L=(X.Y("cast_prefer_audio_only_for_atv_and_uploads")||X.Y("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&X.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",J||L||X.isExternallyHostedPodcast)&&(X.In=!0);return X.TH.deviceIsAudioOnly||X.In&&X.TH.S}; tv=function(X){var J,L,x;return((J=X.playerResponse)==null?void 0:(L=J.playerConfig)==null?void 0:(x=L.compositeVideoConfig)==null?void 0:x.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; h5P=function(X){var J,L,x,Q=(J=X.playerResponse)==null?void 0:(L=J.playerConfig)==null?void 0:(x=L.compositeVideoConfig)==null?void 0:x.sourceConfigs,K,q,D;X=(K=X.playerResponse)==null?void 0:(q=K.playerConfig)==null?void 0:(D=q.compositeVideoConfig)==null?void 0:D.defaultActiveSourceVideoId;if(!Q||!X)return"";Q=g.d(Q);for(K=Q.next();!K.done;K=Q.next())if(K=K.value,K.videoId===X&&K.audioTracks)for(K=g.d(K.audioTracks),q=K.next();!q.done;q=K.next())if(q=q.value,q.isDefaultForSource)return q.id||""; return""}; g.z5e=function(X){return X.Y("html5_enable_sabr_live_captions")&&X.Zw()&&dN(X)||tv(X)}; Jz=function(X){var J,L,x;return!!((J=X.playerResponse)==null?0:(L=J.playerConfig)==null?0:(x=L.mediaCommonConfig)==null?0:x.splitScreenEligible)}; LO=function(X){var J;return!((J=X.playerResponse)==null||!J.compositePlayabilityStatus)}; WuW=function(X){return isNaN(X)?0:Math.max((Date.now()-X)/1E3-30,0)}; xF=function(X){return!(!X.xo||!X.TH.S)&&X.xx()}; i0=function(X){return X.p6&&X.enableServerStitchedDai}; pZA=function(X){return X.x7&&!X.gp}; dN=function(X){var J=X.Y("html5_enable_sabr_on_drive")&&X.TH.Km==="gd";if(X.Ie)return X.x7&&X.Ni("fds",{fds:!0},!0),!1;if(X.TH.Km!=="yt"&&!J)return X.x7&&X.Ni("dsvn",{ns:X.TH.Km},!0),!1;if(X.cotn||!X.L||X.L.isOtf&&!X.Y("html5_enable_sabr_otf_in_client")||X.N&&!X.N.L||X.wS&&!X.Y("html5_enable_sabr_csdai"))return!1;if(X.Y("html5_use_sabr_requests_for_debugging"))return!0;X.x7&&X.Ni("esfw",{usbc:X.x7,hsu:!!X.gp},!0);if(X.x7&&X.gp)return!0;if(X.Y("html5_remove_client_sabr_determination"))return!1;var L= !X.L.Zw&&!X.zC();J=L&&VG&&X.Y("html5_enable_sabr_vod_streaming_xhr");L=L&&!VG&&X.Y("html5_enable_sabr_vod_non_streaming_xhr");var x=QT(X),Q=X.Y("html5_enable_sabr_drm_vod_streaming_xhr")&&VG&&X.zC()&&!X.L.Zw&&(X.drmProduct==="1"?!1:!0);(J=J||L||x||Q)&&!X.gp&&X.Ni("sabr",{loc:"m"},!0);return J&&!!X.gp}; QT=function(X){var J;if(!(J=VG&&X.Zw()&&X.zC()&&(X.drmProduct==="1"?!1:!0)&&X.Y("html5_sabr_live_drm_streaming_xhr"))){J=X.Zw()&&!X.zC()&&VG;var L=X.Zw()&&X.latencyClass!=="ULTRALOW"&&!X.isLowLatencyLiveStream&&X.Y("html5_sabr_live_normal_latency_streaming_xhr"),x=X.isLowLatencyLiveStream&&X.Y("html5_sabr_live_low_latency_streaming_xhr"),Q=X.latencyClass==="ULTRALOW"&&X.Y("html5_sabr_live_ultra_low_latency_streaming_xhr");J=J&&(L||x||Q)}L=J;J=X.enableServerStitchedDai&&L&&X.Y("html5_enable_sabr_ssdai_streaming_xhr"); L=!X.enableServerStitchedDai&&L;x=X.Zw()&&!VG&&X.Y("html5_enable_sabr_live_non_streaming_xhr");X=VG&&(X.OA()||Jz(X)&&X.Y("html5_enable_sabr_for_lifa_eligible_streams"));return J||L||x||X}; xao=function(X){var J;if(J=!!X.cotn)J=X.videoId,J=!!J&&g.Be(J)===1;return J&&!X.xo}; g.KO=function(X){if(!X.L||!X.K||!X.T)return!1;var J=X.L.L,L=!!J[X.K.id]&&s_(J[X.K.id].T6.L);J=!!J[X.T.id]&&s_(J[X.T.id].T6.L);return(X.K.itag==="0"||L)&&J}; qM=function(X){return X.Oq?["OK","LIVE_STREAM_OFFLINE"].includes(X.Oq.status):!0}; tzR=function(X){return(X=X.eQ)&&X.showError?X.showError:!1}; Iq=function(X,J){return X.Y(J)?!0:(X.fflags||"").includes(J+"=true")}; Flv=function(X,J){J.inlineMetricEnabled&&(X.inlineMetricEnabled=!0);J.playback_progress_0s_url&&(X.tC=new Hav(J));if(J=J.video_masthead_ad_quartile_urls)X.sf=J.quartile_0_url,X.E$=J.quartile_25_url,X.BG=J.quartile_50_url,X.Rd=J.quartile_75_url,X.Zv=J.quartile_100_url,X.eI=J.quartile_0_urls,X.It=J.quartile_25_urls,X.eM=J.quartile_50_urls,X.tY=J.quartile_75_urls,X.vj=J.quartile_100_urls}; eOI=function(X){var J={};X=g.d(X);for(var L=X.next();!L.done;L=X.next()){L=L.value;var x=L.split("=");x.length===2?J[x[0]]=x[1]:J[L]=!0}return J}; TdP=function(X){if(X){if(OfR(X))return X;X=a4P(X);if(OfR(X,!0))return X}return""}; g.rEZ=function(X){return X.captionsLanguagePreference||X.TH.captionsLanguagePreference||g.jw(X,"yt:cc_default_lang")||X.TH.jk}; gB=function(X){return!(!X.isLivePlayback||!X.hasProgressBarBoundaries())}; g.yh=function(X){var J;return X.h4||((J=X.suggestions)==null?void 0:J[0])||null}; g.$F=function(X){return X.UM&&(X.Y("embeds_enable_pfp_always_unbranded")||X.TH.Lu)}; g.CO=function(X){var J,L;return!!((J=X.embeddedPlayerConfig)==null?0:(L=J.embeddedPlayerFlags)==null?0:L.enableMusicUx)}; vsP=function(X){return X.W||X.Y("web_player_media_session_infinity")&&X.isLivePlayback}; MM=function(X){return X.TH.T&&X.isPrivate}; g.nO=function(X){var J=X.G(),L=g.yT(J),x=J.YF;(J.Y("embeds_web_enable_iframe_api_send_full_embed_url")||J.Y("embeds_web_enable_rcat_validation_in_havs")||J.Y("embeds_enable_autoplay_and_visibility_signals"))&&g.mB(J)&&(x&&(L.thirdParty=Object.assign({},L.thirdParty,{embedUrl:x})),QTY(L,X));if(x=X.vl)L.clickTracking={clickTrackingParams:x};else if(g.mB(X.G())&&g.ly("EVENT_ID"))L.clickTracking={clickTrackingParams:g.ly("EVENT_ID")};else if(J.Y("html5_log_missing_itct")){var Q;x=new g.Fm("Missing ITCT in InnerTubeContext", {isAd:X.isAd(),SwE:(Q=J.getWebPlayerContextConfig())==null?void 0:Q.contextId});g.Sc(x)}Q=L.client||{};x="EMBED";var K=m_(X);K==="leanback"?x="WATCH":J.Y("gvi_channel_client_screen")&&K==="profilepage"?x="CHANNEL":X.Cm?x="LIVE_MONITOR":K==="detailpage"?x="WATCH_FULL_SCREEN":K==="adunit"?x="ADUNIT":K==="sponsorshipsoffer"&&(x="UNKNOWN");Q.clientScreen=x;if(J=X.kidsAppInfo)Q.kidsAppInfo=JSON.parse(J);(x=X.gy)&&!J&&(Q.kidsAppInfo={contentSettings:{ageUpMode:j8e[x]}});if(J=X.YP)Q.unpluggedAppInfo={enableFilterMode:!0}; (x=X.unpluggedFilterModeType)&&!J&&(Q.unpluggedAppInfo={filterModeType:Tav[x]});if(J=X.ek)Q.unpluggedLocationInfo=J;L.client=Q;Q=L.request||{};X.ac&&(Q.isPrefetch=!0);if(J=X.mdxEnvironment)Q.mdxEnvironment=J;if(J=X.mdxControlMode)Q.mdxControlMode=GQm[J];L.request=Q;Q=L.user||{};if(J=X.gI)Q.credentialTransferTokens=[{token:J,scope:"VIDEO"}];if(J=X.YF)Q.delegatePurchases={oauthToken:J},Q.kidsParent={oauthToken:J};L.user=Q;if(Q=X.contextParams)L.activePlayers=[{playerContextParams:Q}];if(X=X.clientScreenNonce)L.clientScreenNonce= X;return L}; g.yT=function(X){var J=g.sL(),L=J.client||{};if(X.forcedExperiments){var x=X.forcedExperiments.split(","),Q=[];x=g.d(x);for(var K=x.next();!K.done;K=x.next())Q.push(Number(K.value));L.experimentIds=Q}if(Q=X.homeGroupInfo)L.homeGroupInfo=JSON.parse(Q);if(Q=X.getPlayerType())L.playerType=Q;if(Q=X.L.ctheme)L.theme=Q;if(Q=X.livingRoomAppMode)L.tvAppInfo=Object.assign({},L.tvAppInfo,{livingRoomAppMode:Q});Q=X.deviceYear;X.Y("html5_propagate_device_year")&&Q&&(L.tvAppInfo=Object.assign({},L.tvAppInfo,{deviceYear:Q})); if(Q=X.livingRoomPoTokenId)L.tvAppInfo=Object.assign({},L.tvAppInfo,{livingRoomPoTokenId:Q});J.client=L;L=J.user||{};X.enableSafetyMode&&(L=Object.assign({},L,{enableSafetyMode:!0}));X.pageId&&(L=Object.assign({},L,{onBehalfOfUser:X.pageId}));J.user=L;L=X.YF;X.Y("embeds_web_enable_iframe_api_send_full_embed_url")||X.Y("embeds_web_enable_rcat_validation_in_havs")||X.Y("embeds_enable_autoplay_and_visibility_signals")||!L||(J.thirdParty={embedUrl:L});return J}; BaS=function(X,J,L){var x=X.videoId,Q=g.nO(X),K=X.G(),q={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(a4()),referer:document.location.toString(),signatureTimestamp:20263};g.v2();X.isAutonav&&(q.autonav=!0);g.jf(0,141)&&(q.autonavState=g.jf(0,140)?"STATE_OFF":"STATE_ON");q.autoCaptionsDefaultOn=g.jf(0,66);cEI(X)&&(q.autoplay=!0);K.S&&X.cycToken&&(q.cycToken=X.cycToken);K.enablePrivacyFilter&&(q.enablePrivacyFilter=!0);X.isFling&&(q.fling=!0);var D=X.forceAdsUrl;if(D){var C={},M=[];D= D.split(",");D=g.d(D);for(var y=D.next();!y.done;y=D.next()){y=y.value;var n=y.split("|");n.length!==3||y.includes("=")||(n[0]="breaktype="+n[0],n[1]="offset="+n[1],n[2]="url="+n[2]);y={adtype:"video_ad"};n=g.d(n);for(var V=n.next();!V.done;V=n.next()){var H=g.d(V.value.split("="));V=H.next().value;H=QzO(H);y[V]=H.join("=")}n=y.url;V=y.presetad;H=y.viralresponseurl;var O=Number(y.campaignid);if(y.adtype==="in_display_ad")n&&(C.url=n),V&&(C.presetAd=V),H&&(C.viralAdResponseUrl=H),O&&(C.viralCampaignId= String(O));else if(y.adtype==="video_ad"){var u={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(y.offset)||0)}};if(y=fWm[y.breaktype])u.breakType=y;n&&(u.url=n);V&&(u.presetAd=V);H&&(u.viralAdResponseUrl=H);O&&(u.viralCampaignId=String(O));M.push(u)}}q.forceAdParameters={videoAds:M,inDisplayAd:C}}X.isInlinePlaybackNoAd&&(q.isInlinePlaybackNoAd=!0);X.isLivingRoomDeeplink&&(q.isLivingRoomDeeplink=!0);C=X.U4;if(C!=null){C={startWalltime:String(C)};if(M=X.b8)C.manifestDuration=String(M||14400); q.liveContext=C}if(X.mutedAutoplay){q.mutedAutoplay=!0;C=K.getWebPlayerContextConfig();var S,Y;(C==null?0:(S=C.embedsHostFlags)==null?0:S.allowMutedAutoplayDurationMode)&&(C==null?0:(Y=C.embedsHostFlags)==null?0:Y.allowMutedAutoplayDurationMode.includes(e5z[X.mutedAutoplayDurationMode]))&&(q.mutedAutoplayDurationMode=e5z[X.mutedAutoplayDurationMode])}if(X.HO?0:X.Vq)q.splay=!0;S=X.vnd;S===5&&(q.vnd=S);S={};if(Y=X.isMdxPlayback)S.triggeredByMdx=Y;if(Y=X.oJ)S.skippableAdsSupported=Y.split(",").includes("ska"); if(M=X.Jb){Y=X.cV;C=[];M=g.d(KPA(M));for(D=M.next();!D.done;D=M.next()){D=D.value;y=D.platform;D={applicationState:D.QK?"INACTIVE":"ACTIVE",clientFormFactor:Fum[y]||"UNKNOWN_FORM_FACTOR",clientName:IJ8[D.M3]||"UNKNOWN_INTERFACE",clientVersion:D.deviceVersion||"",platform:lWR[y]||"UNKNOWN_PLATFORM"};y={};if(Y){n=void 0;try{n=JSON.parse(Y)}catch(W){g.PM(W)}n&&(y={params:[{key:"ms",value:n.ms}]},n.advertising_id&&(y.advertisingId=n.advertising_id),n.limit_ad_tracking!==void 0&&n.limit_ad_tracking!== null&&(y.limitAdTracking=n.limit_ad_tracking),D.osName=n.os_name,D.userAgent=n.user_agent,D.windowHeightPoints=n.window_height_points,D.windowWidthPoints=n.window_width_points)}C.push({adSignalsInfo:y,remoteClient:D})}S.remoteContexts=C}Y=X.sourceContainerPlaylistId;C=X.serializedMdxMetadata;if(Y||C)M={},Y&&(M.mdxPlaybackContainerInfo={sourceContainerPlaylistId:Y}),C&&(M.serializedMdxMetadata=C),S.mdxPlaybackSourceContext=M;q.mdxContext=S;S=J.width;S>0&&(q.playerWidthPixels=Math.round(S));if(J=J.height)q.playerHeightPixels= Math.round(J);L!==0&&(q.vis=L);if(L=K.widgetReferrer)q.widgetReferrer=L.substring(0,128);g.lb(K)&&q&&(q.ancestorOrigins=K.ancestorOrigins);X.defaultActiveSourceVideoId&&(q.compositeVideoContext={defaultActiveSourceVideoId:X.defaultActiveSourceVideoId});if(K=K.getWebPlayerContextConfig())q.encryptedHostFlags=K.encryptedHostFlags;x={videoId:x,context:Q,playbackContext:{contentPlaybackContext:q}};if(X.yS){var h;x.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(h=X.yS)==null?void 0:h.reloadPlaybackParams}}X.contentCheckOk&& (x.contentCheckOk=!0);if(h=X.clientPlaybackNonce)x.cpn=h;if(h=X.playerParams)x.params=h;if(h=X.playlistId)x.playlistId=h;X.racyCheckOk&&(x.racyCheckOk=!0);h=X.G();if(Q=h.embedConfig)x.serializedThirdPartyEmbedConfig=Q;x.captionParams={};Q=g.jf(g.v2(),65);X.deviceCaptionsOn!=null?x.captionParams.deviceCaptionsOn=X.deviceCaptionsOn:g.$3(h)&&(x.captionParams.deviceCaptionsOn=Q!=null?!Q:!1);X.q_&&(x.captionParams.deviceCaptionsLangPref=X.q_);X.CQ.length?x.captionParams.viewerSelectedCaptionLangs=X.CQ: g.$3(h)&&(Q=g.O_(),Q==null?0:Q.length)&&(x.captionParams.viewerSelectedCaptionLangs=Q);Q=X.fetchType==="onesie"&&X.Y("html5_onesie_attach_po_token");q=X.fetchType!=="onesie"&&X.Y("html5_non_onesie_attach_po_token");if(Q||q)Q=X.G(),Q.LW&&(x.serviceIntegrityDimensions={},x.serviceIntegrityDimensions.poToken=Q.LW);h.Y("fetch_att_independently")&&(x.attestationRequest={omitBotguardData:!0});x.playbackContext||(x.playbackContext={});x.playbackContext.devicePlaybackCapabilities=R5P(X);x.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== !1&&X.Ni("noVp9",{});return x}; R5P=function(X){var J=!(X==null?0:X.J8())&&(X==null?void 0:X.Zw())&&ZE(),L;if(!(L=X==null)){L=g.ul(X);X=X.G().j;var x=dT("243");L=!(x&&rf(L,x,X,!0)===!0)}return{supportsVp9Encoding:!(L||J),supportXhr:VG}}; Nam=function(X,J){var L,x,Q;return g.p(function(K){if(K.K==1)return L={context:g.yT(X.G()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:X.videoId,cpn:X.clientPlaybackNonce}}]},x=g.mr(s8I),g.z(K,g.zH(J,L,x),2);Q=K.L;return K.return(Q)})}; UaY=function(X,J,L){var x=g.J_(J.experiments,"bg_vm_reinit_threshold");(!Le||(0,g.uT)()-Le>x)&&Nam(X,L).then(function(Q){Q&&(Q=Q.botguardData)&&g.iI(Q,J)},function(Q){X.E6()||(Q=nv(Q),X.Ni("attf",Q.details))})}; VT=function(X,J){g.G.call(this);this.app=X;this.state=J}; O8=function(X,J,L){X.state.L.hasOwnProperty(J)||H9(X,J,L);X.state.W[J]=function(){return L.apply(X,g.fR.apply(0,arguments))}; X.state.B.add(J)}; aq=function(X,J,L){X.state.L.hasOwnProperty(J)||H9(X,J,L);X.app.G().S&&(X.state.S[J]=function(){return L.apply(X,g.fR.apply(0,arguments))},X.state.B.add(J))}; H9=function(X,J,L){X.state.L[J]=function(){return L.apply(X,g.fR.apply(0,arguments))}}; g.wB=function(X,J,L){return X.state.L[J].apply(X.state.L,g.nR(L))}; tz=function(){g.uc.call(this);this.j=new Map}; dB=function(){g.G.apply(this,arguments);this.element=null;this.B=new Set;this.W={};this.S={};this.L={};this.D=new Set;this.N=new tz;this.K=new tz;this.T=new tz;this.j=new tz}; ma8=function(X,J,L){typeof X==="string"&&(X={mediaContentUrl:X,startSeconds:J,suggestedQuality:L});a:{if((J=X.mediaContentUrl)&&(J=/\/([ve]|embed)\/([^#?]+)/.exec(J))&&J[2]){J=J[2];break a}J=null}X.videoId=J;return u0(X)}; u0=function(X,J,L){if(typeof X==="string")return{videoId:X,startSeconds:J,suggestedQuality:L};J={};L=g.d(kQA);for(var x=L.next();!x.done;x=L.next())x=x.value,X[x]&&(J[x]=X[x]);return J}; ZBP=function(X,J,L,x){if(g.Q0(X)&&!Array.isArray(X)){J="playlist list listType index startSeconds suggestedQuality".split(" ");L={};for(x=0;x32&&x.push("hfr");J.isHdr()&&x.push("hdr");J.primaries==="bt2020"&&x.push("wcg");L.video_quality_features=x}}if(X=X.getPlaylistId())L.list=X;return L}; c9=function(){oq.apply(this,arguments)}; E8=function(X,J){var L={};if(X.app.G().aB){X=g.d(LXI);for(var x=X.next();!x.done;x=X.next())x=x.value,J.hasOwnProperty(x)&&(L[x]=J[x]);if(J=L.qoe_cat)X="",typeof J==="string"&&J.length>0&&(X=J.split(",").filter(function(Q){return xtm.includes(Q)}).join(",")),L.qoe_cat=X; ihz(L)}else for(X=g.d(QKv),x=X.next();!x.done;x=X.next())x=x.value,J.hasOwnProperty(x)&&(L[x]=J[x]);return L}; ihz=function(X){var J=X.raw_player_response;if(!J){var L=X.player_response;L&&(J=JSON.parse(L))}delete X.player_response;delete X.raw_player_response;if(J){X.raw_player_response={streamingData:J.streamingData,playerConfig:J.playerConfig};var x;if((x=J.playbackTracking)==null?0:x.qoeUrl)X.raw_player_response=Object.assign({},X.raw_player_response,{playbackTracking:{qoeUrl:J.playbackTracking.qoeUrl}});J.videoDetails&&(J.videoDetails.videoId||J.videoDetails.lengthSeconds)&&(L={},J.videoDetails.videoId&& (L.videoId=J.videoDetails.videoId),J.videoDetails.lengthSeconds&&(L.lengthSeconds=J.videoDetails.lengthSeconds),X.raw_player_response=Object.assign({},X.raw_player_response,{videoDetails:L}))}}; YF=function(X,J,L){var x=X.app.L3(L);if(!x)return 0;X=x-X.app.getCurrentTime(L);return J-X}; qpz=function(X){var J=J===void 0?5:J;return X?KXW[X]||J:J}; g.hz=function(){c9.apply(this,arguments)}; IYo=function(X){H9(X,"getInternalApiInterface",X.getInternalApiInterface);H9(X,"addEventListener",X.A9);H9(X,"removeEventListener",X.uNH);H9(X,"cueVideoByPlayerVars",X.GE);H9(X,"loadVideoByPlayerVars",X.G8);H9(X,"preloadVideoByPlayerVars",X.eNm);H9(X,"getAdState",X.getAdState);H9(X,"sendAbandonmentPing",X.sendAbandonmentPing);H9(X,"setLoopRange",X.setLoopRange);H9(X,"getLoopRange",X.getLoopRange);H9(X,"setAutonavState",X.setAutonavState);H9(X,"seekTo",X.WQY);H9(X,"seekBy",X.Iti);H9(X,"seekToLiveHead", X.seekToLiveHead);H9(X,"requestSeekToWallTimeSeconds",X.requestSeekToWallTimeSeconds);H9(X,"seekToStreamTime",X.seekToStreamTime);H9(X,"startSeekCsiAction",X.startSeekCsiAction);H9(X,"getStreamTimeOffset",X.getStreamTimeOffset);H9(X,"getVideoData",X.wG);H9(X,"setInlinePreview",X.setInlinePreview);H9(X,"getAppState",X.getAppState);H9(X,"updateLastActiveTime",X.updateLastActiveTime);H9(X,"setBlackout",X.setBlackout);H9(X,"setUserEngagement",X.setUserEngagement);H9(X,"updateSubtitlesUserSettings",X.updateSubtitlesUserSettings); H9(X,"getPresentingPlayerType",X.WC);H9(X,"canPlayType",X.canPlayType);H9(X,"updatePlaylist",X.updatePlaylist);H9(X,"updateVideoData",X.updateVideoData);H9(X,"updateEnvironmentData",X.updateEnvironmentData);H9(X,"sendVideoStatsEngageEvent",X.JO6);H9(X,"productsInVideoVisibilityUpdated",X.productsInVideoVisibilityUpdated);H9(X,"setSafetyMode",X.setSafetyMode);H9(X,"isAtLiveHead",function(J){return X.isAtLiveHead(void 0,J)}); H9(X,"getVideoAspectRatio",X.getVideoAspectRatio);H9(X,"getPreferredQuality",X.getPreferredQuality);H9(X,"getPlaybackQualityLabel",X.getPlaybackQualityLabel);H9(X,"setPlaybackQualityRange",X.ez6);H9(X,"onAdUxClicked",X.onAdUxClicked);H9(X,"getFeedbackProductData",X.getFeedbackProductData);H9(X,"getStoryboardFrame",X.getStoryboardFrame);H9(X,"getStoryboardFrameIndex",X.getStoryboardFrameIndex);H9(X,"getStoryboardLevel",X.getStoryboardLevel);H9(X,"getNumberOfStoryboardLevels",X.getNumberOfStoryboardLevels); H9(X,"getCaptionWindowContainerId",X.getCaptionWindowContainerId);H9(X,"getAvailableQualityLabels",X.getAvailableQualityLabels);H9(X,"addCueRange",X.addCueRange);H9(X,"addUtcCueRange",X.addUtcCueRange);H9(X,"showAirplayPicker",X.showAirplayPicker);H9(X,"dispatchReduxAction",X.dispatchReduxAction);H9(X,"getPlayerResponse",X.uc);H9(X,"getWatchNextResponse",X.Ei);H9(X,"getHeartbeatResponse",X.yf);H9(X,"getCurrentTime",X.CZ);H9(X,"getDuration",X.gP);H9(X,"getPlayerState",X.getPlayerState);H9(X,"getPlayerStateObject", X.h7);H9(X,"getVideoLoadedFraction",X.getVideoLoadedFraction);H9(X,"getProgressState",X.getProgressState);H9(X,"getVolume",X.getVolume);H9(X,"setVolume",X.zW);H9(X,"isMuted",X.isMuted);H9(X,"mute",X.Yv);H9(X,"unMute",X.e3);H9(X,"loadModule",X.loadModule);H9(X,"unloadModule",X.unloadModule);H9(X,"getOption",X.Y1);H9(X,"getOptions",X.getOptions);H9(X,"setOption",X.setOption);H9(X,"loadVideoById",X.PA);H9(X,"loadVideoByUrl",X.k5);H9(X,"playVideo",X.cW);H9(X,"loadPlaylist",X.loadPlaylist);H9(X,"nextVideo", X.nextVideo);H9(X,"previousVideo",X.previousVideo);H9(X,"playVideoAt",X.playVideoAt);H9(X,"getDebugText",X.getDebugText);H9(X,"getWebPlayerContextConfig",X.getWebPlayerContextConfig);H9(X,"notifyShortsAdSwipeEvent",X.notifyShortsAdSwipeEvent);H9(X,"getVideoContentRect",X.getVideoContentRect);H9(X,"setSqueezeback",X.setSqueezeback);H9(X,"toggleSubtitlesOn",X.toggleSubtitlesOn);H9(X,"isSubtitlesOn",X.isSubtitlesOn);H9(X,"reportPlaybackIssue",X.reportPlaybackIssue);H9(X,"setAutonav",X.setAutonav);H9(X, "isNotServable",X.isNotServable);H9(X,"channelSubscribed",X.channelSubscribed);H9(X,"channelUnsubscribed",X.channelUnsubscribed);H9(X,"togglePictureInPicture",X.togglePictureInPicture);H9(X,"supportsGaplessAudio",X.supportsGaplessAudio);H9(X,"supportsGaplessShorts",X.supportsGaplessShorts);H9(X,"enqueueVideoByPlayerVars",function(J){return void X.enqueueVideoByPlayerVars(J)}); H9(X,"clearQueue",X.clearQueue);H9(X,"getAudioTrack",X.GQ);H9(X,"setAudioTrack",X.nU6);H9(X,"getAvailableAudioTracks",X.eK);H9(X,"getMaxPlaybackQuality",X.getMaxPlaybackQuality);H9(X,"getUserPlaybackQualityPreference",X.getUserPlaybackQualityPreference);H9(X,"getSubtitlesUserSettings",X.getSubtitlesUserSettings);H9(X,"resetSubtitlesUserSettings",X.resetSubtitlesUserSettings);H9(X,"setMinimized",X.setMinimized);H9(X,"setOverlayVisibility",X.setOverlayVisibility);H9(X,"confirmYpcRental",X.confirmYpcRental); H9(X,"queueNextVideo",X.queueNextVideo);H9(X,"handleExternalCall",X.handleExternalCall);H9(X,"logApiCall",X.logApiCall);H9(X,"isExternalMethodAvailable",X.isExternalMethodAvailable);H9(X,"setScreenLayer",X.setScreenLayer);H9(X,"getCurrentPlaylistSequence",X.getCurrentPlaylistSequence);H9(X,"getPlaylistSequenceForTime",X.getPlaylistSequenceForTime);H9(X,"shouldSendVisibilityState",X.shouldSendVisibilityState);H9(X,"syncVolume",X.syncVolume);H9(X,"highlightSettingsMenuItem",X.highlightSettingsMenuItem); H9(X,"openSettingsMenuItem",X.openSettingsMenuItem);H9(X,"getEmbeddedPlayerResponse",X.getEmbeddedPlayerResponse);H9(X,"getVisibilityState",X.getVisibilityState);H9(X,"isMutedByMutedAutoplay",X.isMutedByMutedAutoplay);H9(X,"isMutedByEmbedsMutedAutoplay",X.isMutedByEmbedsMutedAutoplay);H9(X,"setGlobalCrop",X.setGlobalCrop);H9(X,"setInternalSize",X.setInternalSize);H9(X,"setFauxFullscreen",X.setFauxFullscreen);H9(X,"setAppFullscreen",X.setAppFullscreen)}; W9=function(X,J,L){X=g.zi(X.o0(),J);return L?(L.addOnDisposeCallback(X),null):X}; g.pO=function(X,J,L){return X.app.G().fY?J:g.is("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:J,SHORTCUT:L})}; g5Y=function(X){X.o0().element.setAttribute("aria-live","polite")}; g.rB=function(X,J){g.hz.call(this,X,J);IYo(this);aq(this,"addEventListener",this.Rr);aq(this,"removeEventListener",this.PU0);aq(this,"cueVideoByPlayerVars",this.MJ);aq(this,"loadVideoByPlayerVars",this.Mq);aq(this,"preloadVideoByPlayerVars",this.tkY);aq(this,"loadVideoById",this.PA);aq(this,"loadVideoByUrl",this.k5);aq(this,"playVideo",this.cW);aq(this,"loadPlaylist",this.loadPlaylist);aq(this,"nextVideo",this.nextVideo);aq(this,"previousVideo",this.previousVideo);aq(this,"playVideoAt",this.playVideoAt); aq(this,"getVideoData",this.n5);aq(this,"seekBy",this.HYB);aq(this,"seekTo",this.pOi);aq(this,"showControls",this.showControls);aq(this,"hideControls",this.hideControls);aq(this,"cancelPlayback",this.cancelPlayback);aq(this,"getProgressState",this.getProgressState);aq(this,"isInline",this.isInline);aq(this,"setInline",this.setInline);aq(this,"setLoopVideo",this.setLoopVideo);aq(this,"getLoopVideo",this.getLoopVideo);aq(this,"getVideoContentRect",this.getVideoContentRect);aq(this,"getVideoStats",this.VU); aq(this,"getCurrentTime",this.Af);aq(this,"getDuration",this.gP);aq(this,"getPlayerState",this.kL);aq(this,"getVideoLoadedFraction",this.QU);aq(this,"mute",this.Yv);aq(this,"unMute",this.e3);aq(this,"setVolume",this.zW);aq(this,"loadModule",this.loadModule);aq(this,"unloadModule",this.unloadModule);aq(this,"getOption",this.Y1);aq(this,"getOptions",this.getOptions);aq(this,"setOption",this.setOption);aq(this,"addCueRange",this.addCueRange);aq(this,"getDebugText",this.getDebugText);aq(this,"getStoryboardFormat", this.getStoryboardFormat);aq(this,"toggleFullscreen",this.toggleFullscreen);aq(this,"isFullscreen",this.isFullscreen);aq(this,"getPlayerSize",this.getPlayerSize);aq(this,"toggleSubtitles",this.toggleSubtitles);aq(this,"setCenterCrop",this.setCenterCrop);aq(this,"setFauxFullscreen",this.setFauxFullscreen);aq(this,"setSizeStyle",this.setSizeStyle);aq(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);aq(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);XCZ(this)}; g.v9=function(X){X=X.h_();var J=X.Aj.get("endscreen");return J&&J.yX()?!0:X.KR()}; g.jy=function(X,J){X.getPresentingPlayerType()===3?X.publish("mdxautoplaycancel"):X.GH("onAutonavCancelled",J)}; g.Gi=function(X){var J=Ti(X.h_());return X.app.fJ&&!X.isFullscreen()||X.getPresentingPlayerType()===3&&J&&J.VQ()&&J.XD()||!!X.getPlaylist()}; g.fO=function(X,J){g.wB(X,"addEmbedsConversionTrackingParams",[J])}; g.F3=function(X){return(X=g.ey(X.h_()))?X.hk():{}}; g.Dtz=function(X){X=(X=X.getVideoData())&&X.K;return!!X&&!(!X.audio||!X.video)&&X.mimeType!=="application/x-mpegURL"}; g.l0=function(X,J,L){X=X.t0().element;var x=Fv(X.children,function(Q){Q=Number(Q.getAttribute("data-layer"));return L-Q||1}); x<0&&(x=-(x+1));O9(X,J,x);J.setAttribute("data-layer",String(L))}; g.Rq=function(X){var J=X.G();if(!J.ek)return!1;var L=X.getVideoData();if(!L||X.getPresentingPlayerType()===3)return!1;var x=(!L.isLiveDefaultBroadcast||J.Y("allow_poltergust_autoplay"))&&!gB(L);x=L.isLivePlayback&&(!J.Y("allow_live_autoplay")||!x);var Q=L.isLivePlayback&&J.Y("allow_live_autoplay_on_mweb");X=X.getPlaylist();X=!!X&&X.VQ();var K=L.Bl&&L.Bl.playerOverlays||null;K=!!(K&&K.playerOverlayRenderer&&K.playerOverlayRenderer.autoplay);K=L.UM&&K;return!L.ypcPreview&&(!x||Q)&&!g.tS(L.aB,"ypc")&& !X&&(!g.lb(J)||K)}; CPA=function(X,J){X=$tm(X.app.Qe().j);X=g.d(X);for(var L=X.next();!L.done;L=X.next()){L=L.value;var x=L.getAvailableAudioTracks(),Q=null;x=g.d(x);for(var K=x.next();!K.done;K=x.next())if(K=K.value,K.getLanguageInfo().getId()===J){Q=K;break}Q&&L.Vj(Q,!0)}}; B9=function(){pl.apply(this,arguments);this.requestHeaders={}}; NM=function(){s8||(s8=new B9);return s8}; U8=function(X,J){J?X.requestHeaders.Authorization="Bearer "+J:delete X.requestHeaders.Authorization}; g.mi=function(X){g.G.call(this);var J=this;this.Lm=X;this.Zh={BY:function(){return J.Lm}}}; g.kF=function(X,J,L,x){x=x===void 0?!1:x;g.qy.call(this,J);var Q=this;this.Z=X;this.Pl=x;this.S=new g.dS(this);this.fade=new g.kE(this,L,!0,void 0,void 0,function(){Q.iI()}); g.f(this,this.S);g.f(this,this.fade)}; Zu=function(X){var J=X.Z.getRootNode();return X.Z.Y("web_watch_pip")||X.Z.Y("web_shorts_pip")?AH(J):document}; MtO=function(X){X.K&&(document.activeElement&&g.w0(X.element,document.activeElement)&&X.K.focus(),X.K.setAttribute("aria-expanded","false"),X.K=void 0);g.Sf(X.S);X.D=void 0}; Az=function(X,J,L){X.F7()?X.Vr():X.nO(J,L)}; XB=function(X,J,L,x){x=new g.R({V:"div",Ql:["ytp-linked-account-popup-button"],iB:x,X:{role:"button",tabindex:"0"}});J=new g.R({V:"div",U:"ytp-linked-account-popup",X:{role:"dialog","aria-modal":"true",tabindex:"-1"},C:[{V:"div",U:"ytp-linked-account-popup-title",iB:J},{V:"div",U:"ytp-linked-account-popup-description",iB:L},{V:"div",U:"ytp-linked-account-popup-buttons",C:[x]}]});g.kF.call(this,X,{V:"div",U:"ytp-linked-account-popup-container",C:[J]},100);var Q=this;this.dialog=J;g.f(this,this.dialog); x.listen("click",function(){Q.Vr()}); g.f(this,x);g.l0(this.Z,this.element,4);this.hide()}; g.LG=function(X,J,L,x){g.qy.call(this,X);this.priority=J;L&&g.JZ(this,L);x&&this.e7(x)}; g.xd=function(X,J,L,x){X=X===void 0?{}:X;J=J===void 0?[]:J;L=L===void 0?!1:L;x=x===void 0?!1:x;J.push("ytp-menuitem");var Q=X;"role"in Q||(Q.role="menuitem");L||(Q=X,"tabindex"in Q||(Q.tabindex="0"));X={V:L?"a":"div",Ql:J,X:X,C:[{V:"div",U:"ytp-menuitem-icon",iB:"{{icon}}"},{V:"div",U:"ytp-menuitem-label",iB:"{{label}}"},{V:"div",U:"ytp-menuitem-content",iB:"{{content}}"}]};x&&X.C.push({V:"div",U:"ytp-menuitem-secondary-icon",iB:"{{secondaryIcon}}"});return X}; g.JZ=function(X,J){X.updateValue("label",J)}; ia=function(X){g.LG.call(this,g.xd({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var J=this;this.Z=X;this.K=this.L=!1;this.uh=X.TB();X.createServerVe(this.element,this,!0);this.J(this.Z,"settingsMenuVisibilityChanged",function(L){J.G6(L)}); this.J(this.Z,"videodatachange",this.T);this.listen("click",this.onClick);this.T()}; Qv=function(X){return X?g.Dn(X):""}; KG=function(X){g.G.call(this);this.api=X}; q6=function(X){KG.call(this,X);var J=this;H9(X,"setAccountLinkState",function(L){J.setAccountLinkState(L)}); H9(X,"updateAccountLinkingConfig",function(L){J.updateAccountLinkingConfig(L)}); X.addEventListener("videodatachange",function(L,x){J.onVideoDataChange(x)}); X.addEventListener("settingsMenuInitialized",function(){J.menuItem=new ia(J.api);g.f(J,J.menuItem)})}; ylo=function(X){this.api=X;this.L={}}; Ij=function(X,J,L,x){J in X.L||(L=new g.Rw(L,x,{id:J,priority:2,namespace:"appad"}),X.api.tj([L],1),X.L[J]=L)}; gv=function(X){KG.call(this,X);var J=this;this.events=new g.dS(this);g.f(this,this.events);this.L=new ylo(this.api);this.events.J(this.api,"legacyadtrackingpingreset",function(){J.L.L={}}); this.events.J(this.api,"legacyadtrackingpingchange",function(L){var x=J.L;Ij(x,"part2viewed",1,0x8000000000000);Ij(x,"engagedview",Math.max(1,L.Lp*1E3),0x8000000000000);if(!L.isLivePlayback){var Q=L.lengthSeconds*1E3;Or(L)&&x.api.Y("html5_shorts_gapless_ads_duration_fix")&&(Q=x.api.getProgressState().seekableEnd*1E3-L.Vn);Ij(x,"videoplaytime25",Q*.25,Q);Ij(x,"videoplaytime50",Q*.5,Q);Ij(x,"videoplaytime75",Q*.75,Q);Ij(x,"videoplaytime100",Q,0x8000000000000);Ij(x,"conversionview",Q,0x8000000000000); Ij(x,"videoplaybackstart",1,Q);Ij(x,"videoplayback2s",2E3,Q);Ij(x,"videoplayback10s",1E4,Q)}}); this.events.J(this.api,g.sq("appad"),this.K);this.events.J(this.api,g.N2("appad"),this.K)}; OhI=function(X,J,L){if(!(L in J))return!1;J=J[L];Array.isArray(J)||(J=[J]);J=g.d(J);for(L=J.next();!L.done;L=J.next()){L=L.value;var x={CPN:X.api.getVideoData().clientPlaybackNonce};L=g.cN(L,x);x=void 0;x=x===void 0?!1:x;(x=TG(GG(L,n5P),L,x,"Active View 3rd Party Integration URL"))||(x=void 0,x=x===void 0?!1:x,x=TG(GG(L,VtS),L,x,"Google/YouTube Brand Lift URL"));x||(x=void 0,x=x===void 0?!1:x,x=TG(GG(L,HhA),L,x,"Nielsen OCR URL"));g.zp(L,void 0,x)}return!0}; Da=function(X,J){aYv(X,J).then(function(L){g.zp(J,void 0,void 0,L)})}; $d=function(X,J){J.forEach(function(L){Da(X,L)})}; aYv=function(X,J){return g.nD(X.api.G())&&QQ(J)&&iZ(J)?g.wT(X.api.G(),g.X3(X.api.getVideoData())).then(function(L){var x;L&&(x={Authorization:"Bearer "+L});return x},void 0):c6()}; wCo=function(X){KG.call(this,X);this.events=new g.dS(X);g.f(this,this.events);this.events.J(X,"videoready",function(J){if(X.getPresentingPlayerType()===1){var L,x,Q={playerDebugData:{pmlSignal:!!((L=J.getPlayerResponse())==null?0:(x=L.adPlacements)==null?0:x.some(function(K){var q;return K==null?void 0:(q=K.adPlacementRenderer)==null?void 0:q.renderer})), contentCpn:J.clientPlaybackNonce}};g.QK("adsClientStateChange",Q)}})}; CG=function(X){g.R.call(this,{V:"button",Ql:["ytp-button","ytp-autonav-toggle"],X:{title:"{{title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},C:[{V:"div",U:"ytp-autonav-toggle-button-container",C:[{V:"div",U:"ytp-autonav-toggle-button",X:{"aria-checked":"true"}}]}]});this.Z=X;this.K=[];this.L=!1;this.isChecked=!0;X.createClientVe(this.element,this,113681);this.J(X,"presentingplayerstatechange",this.MK);this.listen("click",this.onClick);this.Z.G().Y("web_player_autonav_toggle_always_listen")&& ttA(this);W9(X,this.element,this);this.MK()}; ttA=function(X){X.K.push(X.J(X.Z,"videodatachange",X.MK));X.K.push(X.J(X.Z,"videoplayerreset",X.MK));X.K.push(X.J(X.Z,"onPlaylistUpdate",X.MK));X.K.push(X.J(X.Z,"autonavchange",X.py))}; dtO=function(X){X.isChecked=X.isChecked;X.kq("ytp-autonav-toggle-button").setAttribute("aria-checked",String(X.isChecked));var J=X.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";X.updateValue("title",J);X.updateValue("label",J);X.Z.H5()}; ufm=function(X){return X.Z.G().Y("web_player_autonav_use_server_provided_state")&&CI(X.mY())}; o5A=function(X){KG.call(this,X);var J=this;this.events=new g.dS(X);g.f(this,this.events);this.events.J(X,"standardControlsInitialized",function(){var L=new CG(X);g.f(J,L);X.Aq(L,"RIGHT_CONTROLS_LEFT")})}; M6=function(X,J){g.LG.call(this,g.xd({role:"menuitemcheckbox","aria-checked":"false"}),J,X,{V:"div",U:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; yv=function(X,J){X.checked=J;X.element.setAttribute("aria-checked",String(X.checked))}; bhO=function(X){var J=!X.G().sQ&&X.getPresentingPlayerType()!==3;return X.isFullscreen()||J}; g.nG=function(X,J,L,x){var Q=X.currentTarget;if((L===void 0||!L)&&g.wn(X))return X.preventDefault(),!0;J.pauseVideo();X=Q.getAttribute("href");g.Te(X,x,!0);return!1}; g.Vv=function(X,J,L){if(Ic(J.G())&&J.getPresentingPlayerType()!==2){if(g.wn(L))return J.isFullscreen()&&!J.G().externalFullscreen&&J.toggleFullscreen(),L.preventDefault(),!0}else{var x=g.wn(L);x&&J.pauseVideo();g.Te(X,void 0,!0);x&&(g.Ge(X),L.preventDefault())}return!1}; SpP=function(X){X=H0.includes("es-419")?X.Y("delhi_modern_web_player_icons")?Vp():{V:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{V:"path",uH:!0,X:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z", fill:"#fff"}}]}:X.Y("delhi_modern_web_player_icons")?p2P():{V:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{V:"path",uH:!0,X:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};X.U="ytp-subtitles-button-icon"; return X}; PPO=function(X){return H0.includes("es-419")?X?Vp():{V:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",fill:"white"}}]}:X?{V:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},C:[{V:"path",X:{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"}}]}:{V:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; O0=function(){return{V:"div",U:"ytp-spinner-container",C:[{V:"div",U:"ytp-spinner-rotator",C:[{V:"div",U:"ytp-spinner-left",C:[{V:"div",U:"ytp-spinner-circle"}]},{V:"div",U:"ytp-spinner-right",C:[{V:"div",U:"ytp-spinner-circle"}]}]}]}}; aj=function(X){if(document.createRange){var J=document.createRange();J&&(J.selectNodeContents(X),X=window.getSelection())&&(X.removeAllRanges(),X.addRange(J))}}; dv=function(X){var J=X.Y("web_player_use_cinematic_label_2")?"Modo ambiente":"Iluminaci\u00f3n cinematogr\u00e1fica";M6.call(this,J,g.wv.Hm);var L=this;this.Z=X;this.L=!1;this.K=new g.sn(function(){g.Qd(L.element,"ytp-menuitem-highlighted")},0); this.uh=X.TB();X=X.Y("delhi_modern_web_player_icons")?{V:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{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"}}]}:{V:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]};this.setIcon(X);this.subscribe("select",this.N,this);this.listen(tZ,this.T);g.f(this,this.K)}; ua=function(X){KG.call(this,X);var J=this;this.L=!1;X.addEventListener("settingsMenuInitialized",function(){clP(J)}); X.addEventListener("highlightSettingsMenu",function(L){clP(J);var x=J.menuItem;L==="menu_item_cinematic_lighting"&&(g.xq(x.element,"ytp-menuitem-highlighted"),g.xq(x.element,"ytp-menuitem-highlight-transition-enabled"),x.K.start())}); H9(X,"updateCinematicSettings",function(L){J.updateCinematicSettings(L)})}; clP=function(X){X.menuItem||(X.menuItem=new dv(X.api),g.f(X,X.menuItem),X.menuItem.Wl(X.L))}; E58=function(X){KG.call(this,X);var J=this;this.events=new g.dS(X);g.f(this,this.events);this.events.J(X,"applicationvideodatachange",function(L,x){x=x.clipConfig;L==="dataloaded"&&x&&x.startTimeMs!=null&&x.endTimeMs!=null&&J.api.setLoopRange({startTimeMs:Math.floor(Number(x.startTimeMs)),endTimeMs:Math.floor(Number(x.endTimeMs)),postId:x.postId,type:"clips"})})}; oj=function(X){KG.call(this,X);this.events=new g.dS(X);g.f(this,this.events);H9(X,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));H9(X,"setCreatorEndscreenHideButton",this.L.bind(this))}; ba=function(X,J,L,x){M6.call(this,"Volumen estable",g.wv.jG);g.xq(this.element,"ytp-drc-menu-item");this.uh=X.TB();this.N=J;this.L=L;this.hasDrcAudioTrack=x;X.addEventListener("videodatachange",this.K.bind(this));X.Y("mta_drc_mutual_exclusion_removal")&&this.J(X,"onPlaybackAudioChange",this.K);J=this.L()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());X=X.Y("delhi_modern_web_player_icons")?{V:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{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"}}]}:{V:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",fill:"white"}}]};this.setIcon(X);this.subscribe("select",this.T,this);yv(this,J);this.uh.EA(this)}; SZ=function(X){KG.call(this,X);var J=this;this.events=new g.dS(X);g.f(this,this.events);X.Y("html5_show_drc_toggle")&&X.addEventListener("settingsMenuInitialized",function(){J.menuItem||(J.menuItem=new ba(J.api,J.setDrcUserPreference.bind(J),J.getDrcUserPreference.bind(J),J.K.bind(J)),g.f(J,J.menuItem))}); H9(this.api,"setDrcUserPreference",function(x){J.setDrcUserPreference(x)}); H9(this.api,"getDrcUserPreference",function(){return J.getDrcUserPreference()}); H9(this.api,"hasDrcAudioTrack",function(){return J.K()}); var L;this.L=(L=g.Y1("yt-player-drc-pref"))!=null?L:1;this.updateEnvironmentData()}; P0=function(X){KG.call(this,X);var J=this;this.L={};this.events=new g.dS(X);g.f(this,this.events);this.events.J(X,"videodatachange",function(){J.onVideoDataChange()}); this.events.J(X,g.sq("embargo"),function(L){J.api.x6(!0);var x,Q=(x=J.L[L.id])!=null?x:[];x=g.d(Q);for(Q=x.next();!Q.done;Q=x.next()){var K=Q.value;J.api.hideControls();J.api.kU("auth",2,"This video isn't available in your current playback area",Cv({embargoed:1,id:L.id,idx:L.K,start:L.start}));Q=void 0;(K=(Q=K.embargo)==null?void 0:Q.onTrigger)&&J.api.GH("innertubeCommand",K)}})}; YpA=function(X,J){var L;return(L=J.onEnter)==null?void 0:L.some(X.K)}; hqY=function(X,J){J=g.d(J);for(var L=J.next();!L.done;L=J.next()){L=L.value;var x=void 0,Q=Number((x=L.playbackPosition)==null?void 0:x.utcTimeMillis)/1E3,K=void 0;x=Q+Number((K=L.duration)==null?void 0:K.seconds);K="embargo_"+Q;X.api.addUtcCueRange(K,Q,x,"embargo",!1);L.onEnter&&(X.L[K]=L.onEnter.filter(X.K))}}; c0=function(X){KG.call(this,X);var J=this;this.L=[];this.events=new g.dS(X);g.f(this,this.events);H9(X,"addEmbedsConversionTrackingParams",function(L){J.api.G().N8&&J.addEmbedsConversionTrackingParams(L)}); this.events.J(X,"veClickLogged",function(L){J.api.hasVe(L)&&(L=L.visualElement.getAsJspb(),L=cT(L,2),J.L.push(L))})}; zqA=function(X){KG.call(this,X);H9(X,"isEmbedsShortsMode",function(){return X.isEmbedsShortsMode()})}; WXY=function(X){KG.call(this,X);var J=this;this.events=new g.dS(X);g.f(this,this.events);this.events.J(X,"initialvideodatacreated",function(L){Up(Nt(),16623);J.L=g.Ow();var x=X.G().Ii&&!L.HO;if(Av(L)&&x){Up(Nt(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(L.getWatchNextResponse()){var Q,K=(Q=L.getWatchNextResponse())==null?void 0:Q.trackingParams;K&&k5(K)}if(L.getPlayerResponse()){var q;(L=(q=L.getPlayerResponse())==null?void 0:q.trackingParams)&&k5(L)}}else Up(Nt(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),L.getEmbeddedPlayerResponse()&&(q=(K=L.getEmbeddedPlayerResponse())==null?void 0:K.trackingParams)&&k5(q)}); this.events.J(X,"loadvideo",function(){Up(Nt(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:J.L})}); this.events.J(X,"cuevideo",function(){Up(Nt(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:J.L})}); this.events.J(X,"largeplaybuttonclicked",function(L){Up(Nt(),27240,L.visualElement)}); this.events.J(X,"playlistnextbuttonclicked",function(L){Up(Nt(),27240,L.visualElement)}); this.events.J(X,"playlistprevbuttonclicked",function(L){Up(Nt(),27240,L.visualElement)}); this.events.J(X,"playlistautonextvideo",function(){Up(Nt(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; E0=function(X,J){g.G.call(this);var L=this;this.L=null;this.N=J;J=[];for(var x=0;x<=100;x++)J.push(x/100);J={threshold:J,trackVisibility:!0,delay:1E3};(this.K=window.IntersectionObserver?new IntersectionObserver(function(Q){Q=Q[Q.length-1];var K=null;typeof Q.isVisible==="undefined"?document.visibilityState==="visible"&&Q.isIntersecting&&Q.intersectionRatio>0?K=Q.intersectionRatio:document.visibilityState==="hidden"?K=0:K=null:K=Q.isVisible?Q.intersectionRatio:0;K!=null&&(K=Math.max(K,0),K=Math.min(K, 1));L.L=K;typeof L.N==="function"&&L.N(L.L)},J):null)&&this.K.observe(X)}; rle=function(X){KG.call(this,X);var J=this;this.events=new g.dS(X);g.f(this,this.events);this.events.J(X,"applicationInitialized",function(){pCm(J)})}; pCm=function(X){var J=X.api.getRootNode(),L,x=X.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((L=J.parentElement)==null?void 0:L.parentElement)||J:J;X.L=new E0(x,function(Q){Q!=null&&(X.api.G().CA=Q,X.api.G().yc="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.f(X,X.L);X.events.J(X.api,"videoStatsPingCreated",function(Q){var K=X.L;K=K.L==null?null:Math.round(K.L*100)/100;Q.inview=K!=null?K:void 0;K=X.api.getPlayerSize();if(K.height>0&&K.width>0){K=[Math.round(K.width),Math.round(K.height)];var q=g.D0();q>1&&K.push(q);K=K.join(":")}else K=void 0;Q.size=K})}; v5S=function(X){var J;return((J=((X==null?void 0:X.messageRenderers)||[]).find(function(L){return!!L.timeCounterRenderer}))==null?void 0:J.timeCounterRenderer)||null}; Yd=function(X){g.R.call(this,{V:"div",Ql:["ytp-player-content","ytp-iv-player-content"],C:[{V:"div",U:"ytp-free-preview-countdown-timer",C:[{V:"span",iB:"{{label}}"},{V:"span",U:"ytp-free-preview-countdown-timer-separator",iB:"\u2022"},{V:"span",iB:"{{duration}}"}]}]});this.api=X;this.L=null;this.N=this.K=0;this.J(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; TKA=function(X,J){X.L||(X.K=J,X.N=(0,g.uT)(),X.L=new g.BN(function(){jKO(X)},null),jKO(X))}; jKO=function(X){var J=Math,L=J.round,x=Math.min((0,g.uT)()-X.N,X.K);J=L.call(J,(X.K-x)/1E3);X.updateValue("duration",fh({seconds:J}));J<=0&&X.L?X.stopTimer():X.L&&X.L.start()}; G6e=function(X){KG.call(this,X);var J=this;this.events=new g.dS(X);g.f(this,this.events);this.events.J(X,"basechromeinitialized",function(){J.L=new Yd(X);g.f(J,J.L);g.l0(X,J.L.element,4);J.L.hide()})}; hZ=function(X){g.R.call(this,{V:"button",Ql:["ytp-fullerscreen-edu-button","ytp-button"],C:[{V:"div",Ql:["ytp-fullerscreen-edu-text"],iB:"Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"},{V:"div",Ql:["ytp-fullerscreen-edu-chevron"],C:[{V:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},C:[{V:"path",X:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],X:{"data-priority":"2"}});this.IB=X;this.fade=new g.kE(this,250,void 0,100);this.K=this.L= !1;X.createClientVe(this.element,this,61214);g.f(this,this.fade);this.J(X,"fullscreentoggled",this.Wl);this.J(X,"presentingplayerstatechange",this.Wl);this.listen("click",this.onClick);this.Wl()}; z7=function(X){KG.call(this,X);var J=this;this.events=new g.dS(X);g.f(this,this.events);H9(this.api,"updateFullerscreenEduButtonSubtleModeState",function(x){J.updateFullerscreenEduButtonSubtleModeState(x)}); H9(this.api,"updateFullerscreenEduButtonVisibility",function(x){J.updateFullerscreenEduButtonVisibility(x)}); var L=X.G();X.Y("external_fullscreen_with_edu")&&L.externalFullscreen&&Ic(L)&&L.controlsType==="1"&&this.events.J(X,"standardControlsInitialized",function(){J.L=new hZ(X);g.f(J,J.L);X.Aq(J.L)})}; fYY=function(X){g.R.call(this,{V:"div",U:"ytp-gated-actions-overlay",C:[{V:"div",U:"ytp-gated-actions-overlay-background",C:[{V:"div",U:"ytp-gated-actions-overlay-background-overlay"}]},{V:"button",Ql:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],X:{"aria-label":"Cerrar"},C:[g.ny()]},{V:"div",U:"ytp-gated-actions-overlay-bar",C:[{V:"div",U:"ytp-gated-actions-overlay-text-container",C:[{V:"div",U:"ytp-gated-actions-overlay-title",iB:"{{title}}"},{V:"div",U:"ytp-gated-actions-overlay-subtitle", iB:"{{subtitle}}"}]},{V:"div",U:"ytp-gated-actions-overlay-button-container"}]}]});var J=this;this.api=X;this.background=this.kq("ytp-gated-actions-overlay-background");this.K=this.kq("ytp-gated-actions-overlay-button-container");this.L=[];this.J(this.kq("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){J.api.GH("onCloseMiniplayer")}); this.hide()}; FXe=function(X,J){var L=0;L=0;for(var x={};L Q&&(Q=D.width,K="url("+D.url+")")}L.background.style.backgroundImage=K;FXe(L,x.actionButtons||[]);L.show()}else L.hide()}); g.l0(this.api,this.L.element,4)}; W0=function(X){KG.call(this,X);var J=this;aq(this.api,"getSphericalProperties",function(){return J.getSphericalProperties()}); aq(this.api,"setSphericalProperties",function(){J.setSphericalProperties.apply(J,g.nR(g.fR.apply(0,arguments)))}); O8(this.api,"getSphericalProperties",function(){return J.api.getPresentingPlayerType()===2?{}:J.getSphericalProperties()}); O8(this.api,"setSphericalProperties",function(){var L=g.fR.apply(0,arguments);J.api.getPresentingPlayerType()!==2&&J.setSphericalProperties.apply(J,g.nR(L))})}; pG=function(X){KG.call(this,X);H9(X,"createClientVe",this.createClientVe.bind(this));H9(X,"createServerVe",this.createServerVe.bind(this));H9(X,"destroyVe",this.destroyVe.bind(this));H9(X,"hasVe",this.hasVe.bind(this));H9(X,"logClick",this.logClick.bind(this));H9(X,"logVisibility",this.logVisibility.bind(this));H9(X,"setTrackingParams",this.setTrackingParams.bind(this))}; rv=function(X,J,L,x){function Q(q){var D=!(q.status!==204&&q.status!==200&&!q.response),C;q={succ:""+ +D,rc:q.status,lb:((C=q.response)==null?void 0:C.byteLength)||0,rt:((0,g.uT)()-K).toFixed(),shost:g.Dk(X),trigger:J};Rqe(q,X);L&&L(q);x&&!D&&x(new g.Mh("pathprobe.net",q))} var K=(0,g.uT)();g.t8(X,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:Q,onTimeout:Q})}; Rqe=function(X,J){var L;((L=window.performance)==null?0:L.getEntriesByName)&&(J=performance.getEntriesByName(J))&&J.length&&(J=J[0],X.pedns=(J.domainLookupEnd-J.startTime).toFixed(),X.pecon=(J.connectEnd-J.domainLookupEnd).toFixed(),X.perqs=(J.requestStart-J.connectEnd).toFixed(),BKz&&(X.perqsa=J.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; sKo=function(X){BKz=X}; v0=function(X,J){this.zi=X;this.policy=J;this.playbackRate=1}; NKv=function(X,J){var L=Math.min(2.5,Wa(X.zi));X=jZ(X);return J-L*X}; T7=function(X,J,L,x,Q){Q=Q===void 0?!1:Q;if(X.policy.Sd)return Math.ceil(X.policy.Sd*J);X.policy.OX&&(x=Math.abs(x));x/=X.playbackRate;var K=1/va(X.zi);L=Math.max(.9*(x-3),Wa(X.zi)+X.zi.K.L*K)/K*.8/(J+L);L=Math.min(L,x);X.policy.sQ>0&&Q&&(L=Math.max(L,X.policy.sQ));return Utm(X,L,J)}; Utm=function(X,J,L){return Math.ceil(Math.max(Math.max(X.policy.tB,X.policy.pG*L),Math.min(Math.min(X.policy.jC,31*L),Math.ceil(J*L))))||X.policy.tB}; mtv=function(X,J,L){L=T7(X,J.L.info.DY,L.L.info.DY,0);var x=Wa(X.zi)+L/va(X.zi);return Math.max(x,x+X.policy.CQ-L/J.L.info.DY)}; jZ=function(X){return va(X.zi,!X.policy.GB,X.policy.Qw)}; G7=function(X){return jZ(X)/X.playbackRate}; fG=function(X,J,L){var x=X.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],Q=X.policy.playbackStartPolicy.startMinReadaheadPolicy||[];X=Infinity;J=g.d(J&&x.length>0?x:Q);for(x=J.next();!x.done;x=J.next())x=x.value,Q=x.minReadaheadMs||0,L<(x.minBandwidthBytesPerSec||0)||X>Q&&(X=Q);return X0&&(this.K=L.xo)}; AlW=function(X,J,L,x,Q){if(!x.info.j){if(L.length===0)L.push(x);else{var K;(X=(K=L.pop())==null?void 0:g.du(K,x))?L.push(X):L.push(x)}return Q}var q;(L=(q=L.pop())==null?void 0:g.du(q,x))||(L=x);if(L.info.K)return X.logger&&X.logger({incompleteSegment:L.info.gQ()}),Q;x=X.d1(L);Q=x.Vl;x={clipId:x.clipId,formatId:x.formatId,startTimeMs:x.startTimeMs,durationMs:x.LZ,o_:Q,KW:Q};Q=k6A(J,x.startTimeMs);if(K=L=Q>=0?J[Q]:null){K=x;var D=Q;q=L.startTimeMs+L.durationMs;var C=K.startTimeMs+K.durationMs;if(K.startTimeMs- q>X.K)K=!1;else if(ZhR(X,L.formatId,K.formatId))L.durationMs=Math.max(q,C)-L.startTimeMs,L.KW=Math.max(L.KW,K.KW),K=!0;else if(Math.abs(L.startTimeMs-K.startTimeMs)<=X.K)if(L.durationMs>K.durationMs+X.K){var M=L.formatId,y=L.o_;D=L.KW;L.formatId=K.formatId;L.durationMs=K.durationMs;L.o_=K.o_;L.KW=K.KW;K.formatId=M;K.startTimeMs=C;K.durationMs=q-C;K.o_=y;K.KW=D;K=!1}else L.formatId=K.formatId,K=!0;else q>K.startTimeMs&&(q>C&&(J.splice(D+1,0,{formatId:L.formatId,startTimeMs:C,durationMs:q-C,o_:K.KW+ 1,KW:L.KW}),X.logger&&X.logger({splitOldStart:(M=L.startTimeMs)==null?void 0:M.toFixed(3),splitOldEnd:q==null?void 0:q.toFixed(3),splitNewStart:(y=K.startTimeMs)==null?void 0:y.toFixed(3),splitNewEnd:C==null?void 0:C.toFixed(3)})),L.durationMs=K.startTimeMs-L.startTimeMs,L.KW=K.o_-1),K=!1}K?x=L:(Q+=1,J.splice(Q,0,x));M=0;for(y=Q+1;y=C+L.K?L=!0:D+L.K=0?X:-X-2}; XKe=function(X,J){if(X.je){var L=X.je.ll();if(L.length!==0){if(X.N&&J){var x=X.N,Q=x.info.T;!kr(L,Q)&&x.info.S>0&&(0,g.uT)()-X.B<5E3&&(X.logger&&X.logger({dend:x.info.gQ()}),L=z9Y(L,Q,Q+.01))}X.policy.LI&&X.logger&&X.logger({cbri:""+X.L});x=[];for(var K=Q=0;Q=q){var y=Object.assign({},X.hP[K]),n=X.Yq.N.get(Bx(X.hP[K].formatId)),V=Math.max(C,q);q=n.index.P5(V+X.K/ 1E3);C=n.index.getStartTime(q);var H=q+ +(Math.abs(C-V)>X.K/1E3);V=H+X.T;H=n.index.getStartTime(H)*1E3;K!==X.L||J?(y.o_=V,y.startTimeMs=H):(X.logger&&X.logger({pEvict:"1",og:y.startTimeMs,adj:C*1E3}),y.o_=q+X.T,y.startTimeMs=C*1E3);q=void 0;C=((q=X.N)==null?void 0:q.info.duration)||11;K===X.L&&DX.K/1E3);q=C+X.T;n=n.index.yh(C)*1E3;y.KW=q;y.durationMs=n-y.startTimeMs;y.o_<=y.KW&&x.push(y)}M=0&&s0(X.audioTrack,X.L)>=0&&K?((X.videoTrack.j||X.audioTrack.j)&&X.loader.Ni("iterativeSeeking",{status:"done",count:X.seekCount}),X.videoTrack.j=!1,X.audioTrack.j=!1):x&&g.dJ(function(){if(X.K||!X.policy.Lp)m8(X);else{var q=J.startTime,D=J.duration;if(!X.policy.j){var C=L?X.videoTrack.j:X.audioTrack.j,M=X.videoTrack.B!==-1&&X.audioTrack.B!==-1,y=X.L>=q&&X.L432E3&&pvS(X.Yq);X.N&&(Q=X.N,X.N=0);g.dJ(function(){X.policy.j||kd(X,Q,102)}); X.loader.Ni("initManifestlessSync",{st:Q,ost:Q+X.loader.W4(),a:X.audioTrack.B,v:X.videoTrack.B});X.T&&(X.T.resolve(Q+.1),X.T=null);X.policy.j&&kd(X,Q,102)}}}; Xn=function(X,J){var L=this;this.P4=X;this.requestNumber=++Mom;this.L=this.now();this.S=this.D=NaN;this.W=this.L;this.N=this.If=this.j=0;this.B=this.L;this.O6=this.aB=this.Bl=this.XX=this.t_=this.FE=this.K=this.T=0;this.Km=this.isActive=!1;this.z6=this.Cm=0;this.Zh={eRl:function(){return L.z0}}; this.zi=J.zi;this.snapshot=ggO(this.zi);this.policy=this.zi.K;this.Hu=!!J.Hu;this.e4=J.e4;this.dg=J.dg||0;this.vD=J.vD||0;J.Ba&&(this.gI=new oG);var x;this.z0=(x=J.z0)!=null?x:!1;this.Hu||KcY(this.zi)}; yWm=function(X){X.Bl=Math.max(X.Bl,X.j-X.t_);X.aB=Math.max(X.aB,X.W-X.XX);X.FE=0}; JQ=function(X,J,L){qzY(X.zi,J);X.gI&&(X.gI.add(Math.ceil(J)-Math.ceil(X.W)),X.gI.add(Math.max(0,Math.ceil(L/1024)-Math.ceil(X.j/1024))));var x=J-X.W,Q=L-X.j;X.If=Q;X.O6=Math.max(X.O6,Q/(x+.01)*1E3);X.W=J;X.j=L;X.FE&&L>X.FE&&yWm(X)}; Ln=function(X,J){X.url=J;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; xX=function(X,J){Xn.call(this,X,J);this.Lp=this.H4=!1;this.vl=this.Pl=Infinity;this.jC=NaN;this.Nx=!1;this.J0=NaN;this.sH=this.Hl=this.bB=0;this.Em=J.Em||1;this.nK=J.nK||this.Em;this.Yc=J.Yc;this.Vl=J.Vl;this.fn=J.fn;naP(this);this.f9(this.L);this.A0=(this.J0-this.L)/1E3}; VoZ=function(X){var J=X.Hl||X.bB;return J?X.snapshot.delay+Math.min(X.vD,(X.S-X.D)/1E3)+J:X.A0}; iN=function(X,J,L){if(!X.Hu){J=Math.max(J,.01);var x=X.dg?Math.max(J,L/X.dg):J,Q=X.zi.K.N;Q&&(x=J,X.dg&&(x=Math.max(J,L/X.dg*Q)));YH(X.zi,J,L,x)}}; He8=function(X){return(X.B-X.L)/1E3}; naP=function(X){X.jC=X.L+X.snapshot.delay*1E3;X.Nx=!1}; Qz=function(X,J){if(X.Yc&&X.Vl!==void 0&&X.fn!==void 0){var L=Math,x=L.min,Q=X.Pl;var K=X.Yc;var q=X.L;if(OeS(K,X.Vl))K=J;else{var D=0;K.LJ&&(D=.2);K=q+(K.vD+D)*1E3}X.Pl=x.call(L,Q,K);L=Math;x=L.min;Q=X.vl;K=X.Yc;q=X.L;D=aPo(K,X.Vl,X.fn);D!==2&&(J=D?J:q+K.vD*1E3,K.LJ&&(J+=K.vD*1E3));X.vl=x.call(L,Q,J);X.Pl<=X.L?naP(X):(X.jC=X.Pl,X.Nx=!0)}}; wKP=function(X,J){if(J+1<=X.totalLength){var L=$y(X,J);L=L<128?1:L<192?2:L<224?3:L<240?4:5}else L=0;if(L<1||!(J+L<=X.totalLength))return[-1,J];if(L===1)X=$y(X,J++);else if(L===2)L=$y(X,J++),X=$y(X,J++),X=(L&63)+64*X;else if(L===3){L=$y(X,J++);var x=$y(X,J++);X=$y(X,J++);X=(L&31)+32*(x+256*X)}else if(L===4){L=$y(X,J++);x=$y(X,J++);var Q=$y(X,J++);X=$y(X,J++);X=(L&15)+16*(x+256*(Q+256*X))}else L=J+1,X.focus(L),I9(X,L,4)?X=jvm(X).getUint32(L-X.N,!0):(x=$y(X,L+2)+256*$y(X,L+3),X=$y(X,L)+256*($y(X,L+1)+ 256*x)),J+=5;return[X,J]}; Kn=function(X){this.P4=X;this.L=new iE}; qU=function(X,J){this.info=X;this.callback=J;this.state=1;this.RO=this.nT=!1;this.PD=null}; toW=function(X){return g.Ot(X.info.eC,function(J){return J.type===3})}; IC=function(X,J,L,x){var Q=this;x=x===void 0?{}:x;this.policy=J;this.P4=L;this.status=0;this.L=new iE;this.K=0;this.E6=this.T=this.N=!1;this.xhr=new XMLHttpRequest;this.xhr.open(x.method||"GET",X);if(x.headers)for(X=x.headers,J=g.d(Object.keys(X)),L=J.next();!L.done;L=J.next())L=L.value,this.xhr.setRequestHeader(L,X[L]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return Q.XJ()}; this.xhr.onload=function(){return Q.onDone()}; this.xhr.onerror=function(){return Q.onError()}; this.xhr.fetch(function(K){Q.L.append(K);Q.K+=K.length;K=(0,g.uT)();Q.P4.aG(K,Q.K)},function(){},x.body||null)}; duv=function(X,J){this.K=(new TextEncoder).encode(X);this.L=(new TextEncoder).encode(J)}; t_Y=function(X,J){var L;return g.p(function(x){if(!J)return x.return(J);L=new g.$Y(X.K);return x.return(L.encrypt(J,X.L))})}; SeO=function(X,J){var L;return g.p(function(x){if(x.K==1){if(!J)return x.return(J);L=new g.$Y(X.K);return g.z(x,L.decrypt(J,X.L),2)}return x.return(x.L)})}; oaR=function(X,J){var L=this;this.L=X;this.P4=J;this.loaded=this.status=0;this.error="";X=UW(this.L.get("range")||"");if(!X)throw Error("bad range");this.range=X;this.K=new iE;uVI(this).then(function(){L.P4.rJ()},function(x){L.error=""+x||"unknown_err"; L.P4.rJ()})}; uVI=function(X){var J,L,x,Q,K,q,D,C,M,y,n,V,H,O,u;return g.p(function(S){if(S.K==1){X.status=200;J=X.L.get("docid");L=c_(X.L.get("fmtid")||"");x=X.L.get("lmt")||"0";Q=+(X.L.get("csz")||0);if(!J||!L||!Q)throw Error("Invalid local URL");X.L.get("ck")&&X.L.get("civ")&&(K=new duv(X.L.get("ck"),X.L.get("civ")));q=X.range;D=Math.floor(q.start/Q);C=Math.floor(q.end/Q);M=D}if(S.K!=5)return M<=C?g.z(S,Pgv(J,L,x,M,K),5):S.fm(0);y=S.L;if(y===void 0)throw Error("invariant: data is undefined");n=M*Q;V=(M+1)*Q; H=Math.max(0,q.start-n);O=Math.min(q.end+1,V)-(H+n);u=new Uint8Array(y.buffer,H,O);X.K.append(u);X.loaded+=O;X.loaded=400?(X.lastError="net.badstatus",!0):(Q===void 0?0:Q)?(X.lastError="ump.spsrejectfailure",!0):L||x!==void 0&&x?!1:(X.lastError=J===204?"net.nocontent":"net.connect",!0)}; HE=function(X,J){if(X.policy.yd)return!1;var L=J.getResponseHeader("content-type"),x=J.vH();X=!x||x<=X.policy.kA;return(!J.Nm()||!L||L.indexOf("text/plain")!==-1)&&X}; WsZ=function(X,J){var L="";J=J.Vs();J.totalLength<=X.policy.kA&&(L=zsO(X,gk(J)));return L}; zsO=function(X,J){var L=Ml(J);return fD(L)?(X.logger.debug(function(){return"Redirecting to "+L}),L):""}; MU=function(X){return Gn(X.N,BK(X.Pv.Jz))}; pKI=function(X){var J=X.timing.wU();J.shost=BK(X.Pv.Jz);return J}; rWZ=function(X,J){return(X==null?void 0:X.maxWidth)>(J==null?void 0:J.maxWidth)||(X==null?void 0:X.maxHeight)>(J==null?void 0:J.maxHeight)}; vae=function(X,J){for(var L=g.d(J.keys()),x=L.next();!x.done;x=L.next())if(x=J.get(x.value),x.length!==0){g.BV(x,function(D,C){return C.maxFramerate-D.maxFramerate}); for(var Q=[x[0]],K=0,q=1;qX.L||L.push(x)}return L}; OZ=function(X,J,L){var x=GNY[X]||[];L.Y("html5_shorts_onesie_mismatched_fix")&&(x=fPm[X]||[]);J.push.apply(J,g.nR(x));L.Y("html5_early_media_for_drm")&&J.push.apply(J,g.nR(esP[X]||[]))}; Nfo=function(X,J){var L=g.ul(X),x=X.G(),Q=x.j;x=x.Y("html5_shorts_onesie_mismatched_fix");var K=X.Ev();if(x){if(!Q.K){if(K&&aC)return aC;if(wr)return wr}}else if(wr&&!Q.K)return wr;var q=[],D=[],C={},M=tQ.concat(FsY);x&&(M=tQ.concat(lPz));X.Y("html5_early_media_for_drm")&&(M=M.concat(Rsv),X.Y("allow_vp9_1080p_mq_enc")&&M.push(Bfe));var y=[].concat(g.nR(sbI));X.Y("html5_iamf_audio_onesie_fmt")&&y.push(["773"]);M=g.d(M);for(var n=M.next();!n.done;n=M.next()){var V=!1;n=g.d(n.value);for(var H=n.next();!H.done;H= n.next()){H=H.value;var O=dT(H,K&&x);if(O&&O.video&&!(rS(O)&&!L.Pl&&O.video.qualityOrdinal>L.PJ)){var u=g.J_(X.G().experiments,"html5_drm_byterate_soft_cap");u>0&&YDW(O)&&O.DY>u||(V?(q.push(H),OZ(H,q,X)):(O=rf(L,O,Q),O===!0?(V=!0,q.push(H),OZ(H,q,X)):C[H]=O))}}}y=g.d(y);for(M=y.next();!M.done;M=y.next())for(M=g.d(M.value),V=M.next();!V.done;V=M.next())if(V=V.value,(n=zBR(V))&&n.audio&&(X.Y("html5_onesie_51_audio")||!vU(n)&&!ji(n)))if(n=rf(L,n,Q),n===!0){D.push(V);OZ(V,D,X);break}else C[V]=n;if(!X.Y("html5_enable_audio_quality_setting"))for(X= g.d(["141","774"]),y=X.next();!y.done;y=X.next())y=y.value,D.includes(y)&&(g.u8(D,y),C[y]="blkhqa");L.K&&J("orfmts",C);if(x)return Q.K&&(Q.K=!1,aC=wr=void 0),K?aC={video:q,audio:D}:wr={video:q,audio:D};wr={video:q,audio:D};Q.K=!1;return wr}; g.kNP=function(X,J,L){var x=L.j,Q=[],K=[],q=L.Y("html5_shorts_onesie_mismatched_fix");X=X.Ev();var D=tQ.concat(FsY);q&&(D=tQ.concat(lPz));L.Y("html5_early_media_for_drm")&&(D=D.concat(Rsv),L.Y("allow_vp9_1080p_mq_enc")&&D.push(Bfe));var C=[].concat(g.nR(sbI));L.Y("html5_iamf_audio_onesie_fmt")&&C.push(["773"]);D=g.d(D);for(var M=D.next();!M.done;M=D.next()){M=g.d(M.value);for(var y=M.next();!y.done;y=M.next()){y=y.value;var n=dT(y,X&&q);if(n&&n.video){var V=g.J_(L.experiments,"html5_drm_byterate_soft_cap"); if(!(V>0&&YDW(n)&&n.DY>V)&&rf(J,n,x)===!0){Q.push({videoCodec:UuY[Ec[y]],maxWidth:n.video.width,maxHeight:n.video.height,maxFramerate:n.video.fps});break}}}}q=g.d(C);for(X=q.next();!X.done;X=q.next())for(X=g.d(X.value),C=X.next();!C.done;C=X.next())if(C=C.value,(D=zBR(C))&&D.audio&&(L.Y("html5_onesie_51_audio")||!vU(D)&&!ji(D))&&rf(J,D,x)===!0){K.push({audioCodec:muz[Ec[C]],numChannels:D.audio.numChannels});break}return{videoFormatCapabilities:Q,audioFormatCapabilities:K}}; JeO=function(X){var J={},L=X.Lm,x=X.TH,Q=L.getVideoData(),K=yC(0),q=L.getVisibilityState();if(x.Y("html5_enable_audio_quality_setting")){var D=g.J_(x.experiments,"html5_default_audio_quality_setting_lr"),C;J.aK=(C=ZeA[D])!=null?C:0}K&&(J.xX=K,J.lastManualDirection=m2S(),K=sBv()||0,K>0&&(K=(x.Y("html5_use_date_now_for_local_storage")?Date.now():(0,g.uT)())-K,x.Y("html5_use_date_now_for_local_storage")?K>0&&(J.timeSinceLastManualFormatSelectionMs=K):J.timeSinceLastManualFormatSelectionMs=K));K=x.Y("html5_use_streamer_bandwidth_for_low_latency_live")&& Q.isLowLatencyLiveStream;if(x.schedule.Km&&!K){var M;K=x.Y("html5_disable_bandwidth_cofactors_for_sabr_live")?!((M=X.D2)==null||!M.GB):!1;J.iK=va(x.schedule,!K)}M=g.b2.medium;K=Math.floor(M*16/9);(D=Q.Ev())||(Q.L&&Q.N&&Q.N.videoInfos.length!==0?(D=Q.N.videoInfos[0],D=!!D.video&&D.video.width 0&&(J.Bg.authorizedFormats=X.authorizedFormats);X.sabrLicenseConstraint&&(J.Bg.sabrLicenseConstraint=X.sabrLicenseConstraint);if(x.Y("html5_onesie_media_capabilities")||x.Y("html5_enable_server_format_filter"))J.Ls=3;x.Y("html5_onesie_audio_only_playback")&&al(Q)&&(J.Ls=1);var Y;((Y=X.D2)==null?0:Y.oT)&&X.vp&&(J.Ls=J.Ls===void 0?7:J.Ls|4);y=Q.fY?Q.fY:g.ul(Q);x.Y("html5_onesie_media_capabilities")&&(J.mediaCapabilities=g.kNP(Q,y,x));var h;if((h=X.D2)==null?0:dr(h)){V=x.j;h=[];n=[];H=new Map;O=Array.from(V.L.values()); O=g.d(O);for(u=O.next();!u.done;u=O.next())S=u.value,S.g2?n.push({audioCodec:muz[S.XE],numChannels:S.numChannels,spatialCapabilityBitmask:AWY[S.XE]}):(Y=UuY[S.XE],u={videoCodec:Y,maxWidth:S.maxWidth||0,maxHeight:S.maxHeight||0,maxFramerate:S.maxFramerate||0,is10BitSupported:S.RF||!1},S.maxBitrateBps&&(u.maxBitrateBps=S.maxBitrateBps,q=dT(S.itag),M=void 0,((M=q)==null?0:M.video)&&rf(y,q,V)===!0&&(q=q.DY*8,q>u.maxBitrateBps&&(u.maxBitrateBps=q))),S=Y+"_"+S.RF,Y=H.get(S)||[],Y.push(u),H.set(S,Y));h= vae(h,H);V={};x.Y("html5_ssff_denylist_opus_low")&&(V={itagDenylist:[249,350]});J.mediaCapabilities={videoFormatCapabilities:h,audioFormatCapabilities:n,hdrModeBitmask:3,perPlaybackAttributes:V}}var W;if((W=X.D2)==null?0:W.L){J.yJ=y.yJ;var T;J.PJ=(T=X.D2)==null?void 0:T.PJ}x.HO&&(J.mI=x.HO);J.Dq=X.fP;J.dH=X.dH;J.I6=X.I6;J.KS=X.KS;X.m8&&(J.qdB=(0,g.uT)()-X.m8);X.isPrefetch&&x.Y("html5_report_prefetch_requests")&&(J.isPrefetch=!0);VG||(J.PB9=!0);W=Wa(x.schedule)*1E3;W>0&&(J.IK=W);var l;((l=X.D2)==null? 0:l.m7)&&X.VV&&X.VV0?Jo:x.schedule.interruptions[0]||0;var U;if((U=X.D2)==null?0:U.z6)J.aP=X.aP;x.O6&&(J.audioTrackId=x.O6);LO(Q)&&!J.audioTrackId&&(x.Y("html5_fill_default_mosaic_audio_track_id")||(X=h5P(Q),J.audioTrackId= X),Q==null||Q.Ni("misstrkchg",{"default":J.audioTrackId}));if(Q=PAm())J.detailedNetworkType=XxR[Q]||XxR.other;x.Y("html5_enable_voice_boost")&&(J.N5B=x.L1);return J}; uN=function(X,J,L,x,Q,K,q){var D={};J&&(D.mu=J);if(!X)return D;D.playbackCookie=L==null?void 0:L.playbackCookie;Q&&(D.w_=Q);D.DA=[];D.LS=[];if(q==null?0:q.size)for(J=g.d(q.values()),L=J.next();!L.done;L=J.next())D.LS.push(L.value);if(X.sabrContextUpdates.size>0)for(J=g.d(X.sabrContextUpdates.values()),L=J.next();!L.done;L=J.next())LAW(D,L.value,x);dN(X)&&K&&LAW(D,K,x);X.fQ&&(D.Rz6=X.fQ);x=X.G().L;D.clientInfo={clientName:x18[x.c.toUpperCase()]||0};x.cbrand&&(D.clientInfo.deviceMake=x.cbrand);x.cmodel&& (D.clientInfo.deviceModel=x.cmodel);x.cver&&(D.clientInfo.clientVersion=x.cver);x.cos&&(D.clientInfo.osName=x.cos);x.cosver&&(D.clientInfo.osVersion=x.cosver);x=X.G();x.Y("html5_sabr_enable_server_xtag_selection")&&x.jk&&(D.clientInfo.hl=x.jk);X.RY&&(D.RY=X.RY);return D}; LAW=function(X,J,L){var x=J.type||0;(L==null?0:L.has(x))?X.LS.push(J):X.DA.push(x)}; Rj=function(X,J,L,x,Q,K){var q=K===void 0?{}:K;var D=q.Pj===void 0?[]:q.Pj;var C=q.gj===void 0?!1:q.gj;var M=q.LG===void 0?0:q.LG;var y=q.poToken===void 0?"":q.poToken;var n=q.oh===void 0?void 0:q.oh;var V=q.ZE===void 0?"":q.ZE;var H=q.Yj===void 0?0:q.Yj;var O=q.vS===void 0?new Uint8Array(0):q.vS;var u=q.Hs===void 0?!1:q.Hs;K=q.k_===void 0?0:q.k_;q=q.mu===void 0?void 0:q.mu;qU.call(this,J,Q);var S=this;this.policy=X;this.logger=new g.OS("dash/request");this.hI=this.q2=0;this.j9=!1;this.f$=this.lT= null;this.Ny=!1;this.vS=this.Yj=null;this.Oe=this.nX=!1;this.cw=null;this.k_=this.Vp=0;this.lC=!1;this.Zh={UA:function(h){S.UA(h)}, FPl:function(){return S.PD}, rs6:function(h){S.PD=h}, AsC:function(h){S.q2=h}, Df9:function(h){S.j7.lastError=h}, jS:function(){return S.xhr}}; this.timing=new xX(this,L);this.gj=C;this.Yj=H;this.vS=O;this.Pv=g.Ie(this.info,this.policy,x);this.Pv.set("rn",this.FL().toString());this.Pv.set("rbuf",(M*1E3).toFixed().toString());this.gj&&this.Pv.set("smb","1");this.policy.tv&&y&&this.Pv.set("pot",y);V&&this.Pv.set("bbs",V);this.policy.useUmp&&!s_(this.Pv.Jz)&&(this.Ml=new Kn(this),this.Pv.set("ump","1"),this.Pv.set("srfvp","1"));if(X=this.policy.Cu?this.policy.SN&&!isNaN(this.info.fn)&&this.info.fn>this.policy.wC?!1:!0:!1)J=null,this.policy.eM&& this.policy.LA?J=[1]:u&&(J=[]),J!=null&&(this.policy.EW&&J.push(2),this.Pv.set("defsel",J.join(",")));this.j7=new Cn(this,this.policy,this.Pv,this.info.T6,this.timing,this.logger,x,n);this.Pj=D||null;this.RO=iEz(this);cWP(this.j7);x=void 0;if(this.policy.pC||this.Ml||this.policy.Bl)x={method:"POST"},D=(0,g.oC)([120,0]),n={},this.policy.hH&&q&&(q=uN(void 0,q),n.fR=q),this.policy.Mp&&this.vS&&(n.videoPlaybackUstreamerConfig=this.vS),this.policy.Bl&&(q=this.info.T)&&Object.assign(n,q),Object.keys(n).length> 0?x.body=g.Us(n,g.$a):x.body=D;if(this.Yj&&this.vS){this.Pv.set("iwts","1");x={method:"POST"};q={KS:this.Yj*1E3};var Y;D=(Y=this.info.T)==null?void 0:Y.IV;Y=g.Us({NG:q,IV:D||void 0,videoPlaybackUstreamerConfig:this.vS},g.$a);x.body=Y}try{this.xhr=gr(this.Pv,this.policy.W,this.timing,X,x),this.j7.K.start(),K&&(this.Zd=new g.sn(this.Z5,K,this),this.Zd.start(K+(this.timing.zi.S.Gc()||0)*1E3)),this.policy.Mm&&Ln(this.timing,this.Eo()),this.logger.debug(function(){return"Sent, itag="+S.Pv.get("itag")+ " seg="+S.info.eC[0].Vl+" range="+S.Pv.get("range")+" time="+Math.round(S.info.eC[0].T)+"-"+Math.round(g.V0(S.info.eC).B)+" rtp="+(S.timing.iQ()-Date.now()).toFixed(0)}),g.dJ(function(){})}catch(h){Q0Z(this,h,!0)}}; iEz=function(X){if(!(q7(X.info)&&X.info.z0()&&X.policy.qQ&&X.Pj)||X.info.T6.N>=2||yC()>0||!Xy8())return!1;var J=X.Pv.get("aitags");if(!J)return!1;J=c_(J).split(",");for(var L=[],x=g.d(X.Pj),Q=x.next();!Q.done;Q=x.next())Q=Q.value,g.tS(J,Q)&&L.push(Q);if(!L.length)return!1;X.Pv.set("altitags",g.P_(L.join(",")));return!0}; Q0Z=function(X,J,L){L=L===void 0?!1:L;g.Sc(J);X.j7.lastError="player.exception";X.errorMessage=J.name+"_"+J.message;L?g.dJ(function(){nn(X.j7)}):nn(X.j7)}; KAS=function(X,J){X.timing.Km=!0;X.xhr.Nm()&&X.timing.Gp();if(X.policy.YF){var L;(L=X.Zd)==null||L.stop()}$X(X.PD,J,!1)}; qW8=function(X,J){X.info=J;if(X.PD){var L=X.PD;J=J.eC;(J.length!==L.eC.length||J.length0){J=g.d(J.eC);for(var L=J.next();!L.done;L=J.next()){var x=void 0;X+=((x=L.value.range)==null?void 0:x.length)||0}return X}if(J.Ho.length>0)for(L=g.d(J.Ho),x=L.next();!x.done;x=L.next())X+=x.value.Zo||0;return X+J.jA}; zr=function(X,J){if(EZ){var L=0;X=X.xF.get(J);if(X==null||!X.j1)return 0;X=g.d(X.j1.values());for(J=X.next();!J.done;J=X.next())L+=J.value.data.totalLength;return L}return((L=X.xF.get(J))==null?void 0:L.sM.totalLength)||0}; WE=function(X,J){X=X.xF.get(J);if(EZ){if(X==null||!X.Qi)return!1;J=X.j1.size>0;return X.zZ.length>0||J}return!(X==null||!X.Qi)&&!(X==null||!X.sM.totalLength)}; MUS=function(X,J){var L=X.xF.get(J),x=Cim(X,J),Q=!x&&!!L.bytesReceived;if(EZ){var K;if((K=X.Yq)==null?0:K.Zw){X=g.d(L.j1.values());for(J=X.next();!J.done;J=X.next())if(!J.value.eH)return!1;return Q}}else if(K=X.SH(J),Q&&X.L&&K!==void 0)return K;return(Q||L.bytesReceived===x)&&L.Lt+zr(X,J)===L.bytesReceived}; yeo=function(X,J,L){X.xF.set(J,{sM:new iE,Lt:0,bytesReceived:0,jA:0,y_:!1,eW:!1,SH:!1,g2:L,xm:[],eC:[],Ho:[],Qi:!1,j1:new Map,hY:new Map,zZ:[]});X.logger.debug(function(){return"[initStream] formatId: "+J})}; nzm=function(X,J,L,x){L.eC.push.apply(L.eC,g.nR(x));if(EZ){L.hY.has(J)||L.hY.set(J,[]);var Q;(Q=L.hY.get(J)).push.apply(Q,g.nR(x))}else if(L.PD)for(X=g.d(x),J=X.next();!J.done;J=X.next())L.PD.eC.push(J.value);else{L.PD=new D2(X.D2,[].concat(g.nR(L.eC)));var K;((K=X.D2)==null?0:K.Xb)&&g.f(X,L.PD)}}; VUZ=function(X,J,L){var x,Q=(x=X.Yq)==null?void 0:x.N.get(J);if(!Q)return[];if(L.G0){var K;return((K=Q.Yx(0,L.clipId))==null?void 0:K.eC)||[]}if(Q.z7()){var q=L.startMs,D=L.durationMs;x=1E3;var C;if(((C=X.D2)==null?0:C.L)&&L.timeRange){var M;q=(M=L.timeRange.startTicks)!=null?M:-1;var y;D=(y=L.timeRange.lf)!=null?y:-1;var n;x=(n=L.timeRange.timescale)!=null?n:-1}if(L.E3<0||L.Kq<0||D<0||q<0||L.Zo<0||x<0)return hQ(X,J),[];X=mA(L.E3,L.Zo);J=L.sz||0;return[new Z9(3,Q,X,"makeSliceInfosMediaBytes",L.Kq- 1,q/x,D/x,J,X.length-J,void 0,L.JB,L.clipId)]}if(L.Kq<0)return hQ(X,J),[];var V;return((V=X.Yq)==null?0:V.Zw)?(J=Q.nJ,C=J*Q.info.DY,M=L.sz,((D=X.D2)==null?0:D.IQ)&&L.timeRange&&!M&&(q=L.timeRange.startTicks/L.timeRange.timescale),[new Z9(3,Q,void 0,"makeSliceInfosMediaBytes",L.Kq,q,J,M,C,!0,L.JB,L.clipId)]):[]}; HEP=function(X,J,L){X.Yq=J;X.D2=L;J=g.d(X.xF);for(L=J.next();!L.done;L=J.next()){var x=g.d(L.value);L=x.next().value;x=x.next().value;for(var Q=g.d(x.xm),K=Q.next();!K.done;K=Q.next()){K=K.value;var q=VUZ(X,L,K);nzm(X,K.DC,x,q)}}}; pn=function(X,J,L,x){X.logger.debug(function(){return"[addStreamData] formatId: "+L+",headerId: "+J+" bytes: "+x.totalLength}); (X=X.xF.get(L))&&!X.eW&&(EZ?(X.j1.has(J)||X.j1.set(J,{data:new iE,t8:0,eH:!1}),Qm(X.j1.get(J).data,x)):Qm(X.sM,x),X.bytesReceived+=x.totalLength,X.y_=!0)}; YX=function(X,J){X.logger.debug(function(){return"[closeStream] formatId: "+J}); var L=X.xF.get(J);L&&!L.eW&&(L.eW=!0,L.HD&&L.HD(),OEI(X)&&X.T.GX())}; OEI=function(X){X=g.d(X.xF.values());for(var J=X.next();!J.done;J=X.next())if(!J.value.eW)return!1;return!0}; a9I=function(X){EZ=X}; rr=function(X,J,L,x,Q,K,q){g.G.call(this);this.policy=X;this.info=J;this.Yq=L;this.P4=Q;this.logger=new g.OS("sabr");this.Ml=new Kn(this);this.V6=new PE(this);this.CY=new cE(this);this.state=1;this.v7=!1;this.FP=0;this.clipId="";this.oS=-1;this.a8=0;this.k0=-1;this.lC=this.Ga=!1;this.R9=0;this.Xh=!1;this.policy.fL?this.AP=new bN(this,K):this.AP=new xX(this,K);this.Pv=this.policy.z6?J.LC:wxW(J,this.policy,x);this.Pv.set("rn",""+this.FL());this.Pv.set("alr","yes");HEP(this.CY,L,X);this.j7=new Cn(this, this.policy,this.Pv,J.T6,this.AP,this.logger,x,q,this.policy.enableServerDrivenRequestCancellation);cWP(this.j7);var D;if((D=this.policy)==null?0:D.Xb)g.f(this,this.CY),g.f(this,this.j7);X=J.K;J={method:"POST",body:X};X&&(this.a8=X.length);try{this.xhr=gr(this.Pv,this.policy.W,this.AP,VG,J),this.policy.Mm&&Ln(this.AP,this.Eo()),this.j7.K.start()}catch(C){g.PM(C)}}; tUY=function(X){X.policy.FA&&X.Rv&&!X.Xh?X.Xh=!0:X.AP.Gp()}; d1e=function(X,J){var L=-1,x=-1,Q=-1,K;if((K=X.gX)==null?0:K.items)for(X=g.d(X.gX.items),K=X.next();!K.done;K=X.next())K=K.value,J=D,C=X.Yq.isManifestless&&X.policy.GY,q){var M;if(((M=X.L)==null?void 0:M.ge.event)==="predictStart"&&X.L.VlX.B&&(X.B=NaN,X.W=NaN);X.L&&X.L.Vl===J?TMz(X,J,L,X.L,Q):X.K===1&&Gr(X,5,"noad")}; GnA=function(X,J,L,x,Q){x.cB?Gr(X,4,"cue"):(X.B=J,X.W=L,X.Ni("sdai",{joinad:X.K,sg:X.B,st:X.W.toFixed(3)}),X.D=Date.now(),Gr(X,2,X.K===3?"staftpred":"join"),Q.VM(x.ge))}; TMz=function(X,J,L,x,Q){if(Q&&x){var K=x.ge,q=Q.IR(K);K.event==="predictStart"&&(X.aB=J);X.Ni("sdai",{onqevt:K.event,sq:J,mt:L,gab:q,cst:K.startSecs,cueid:X.policy.Ag&&(q||K.event==="start")?K.identifier:void 0},!0);if(q)K.event!=="predictStart"?(K.event==="start"&&X.aB===J-1&&X.Ni("sdai",{gabonstart:J}),GnA(X,J,L,x,Q)):X.policy.In?Gr(X,3,"predict"):(J+=Math.max(Math.ceil(-K.L/5E3),1),K=Math.floor(L-K.L/1E3),X.policy.K?X.j=K:X.T=J,X.Ni("sdai",{onpred:L,estsq:J,estmt:K.toFixed(3)}),fn(X.loader,K,K, J),X.D=Date.now(),Gr(X,3,"predict"),Q.VM(x.ge));else if(X.K===1){var D;((D=X.N)==null?0:D.Qh(L))?(fn(X.loader,L,L,J),Gr(X,4,"sk2head")):Gr(X,5,"nogab")}else K.event==="predictStart"?X.policy.K&&X.j>0?(L=Math.floor(L-K.L/1E3),X.j!==L&&X.Ni("sdai",{updateSt:L,old:X.j}),X.j=L):X.T>0&&(L=J+Math.max(Math.ceil(-K.L/5E3),1),X.T!==L&&(X.Ni("sdai",{updateSt:L,old:X.T}),X.T=L)):X.policy.In&&X.K===3&&GnA(X,J,L,x,Q)}else X.Ni("sdai",{nulldec:1,sq:J,mt:L.toFixed(3),evt:(x==null?void 0:(K=x.ge)==null?void 0:K.event)|| "none"})}; eyP=function(X,J,L){if(X.policy.Lu&&X.policy.K)return!(X.K===1||X.K===2||!X.policy.In&&X.K===3&&L>=X.T);if(X.K===1||X.K===2)return!1;if(X.K!==0&&J===X.audioTrack){if(X.policy.K)return f9o(X.videoTrack,L)||f9o(X.videoTrack,L+1);X=e2(X.videoTrack);if(L>(X?X.Vl:-1))return!1}return!0}; Fn=function(X,J,L){return(L<0||L===X.B)&&!isNaN(X.W)?X.W:J}; pxS=function(X,J){if(X.L){var L=X.L.ge.zR-(J.startTime+X.S-X.L.ge.startSecs);L<=0||(L=new q1(X.L.ge.startSecs-(isNaN(X.S)?0:X.S),L,X.L.ge.context,X.L.ge.identifier,"stop",X.L.ge.L+J.duration*1E3),X.Ni("cuepointdiscontinuity",{segNum:J.Vl}),Tr(X,L,J.Vl))}}; Gr=function(X,J,L){X.K!==J&&(X.Ni("sdai",{setsst:J,old:X.K,r:L}),X.K=J)}; lN=function(X,J,L,x){(x===void 0?0:x)?Gr(X,1,"seek"):J>0&&Math.abs(J-L)>=5&&X.K===4&&Gr(X,5,"sk2t")}; FAA=function(X){this.Ni=X;this.L="";this.K=new Map}; RC=function(X,J,L){this.audio=X;this.video=J;this.reason=L}; BE=function(X,J,L){this.L=X;this.reason=J;this.token=L;this.videoId=void 0}; sZ=function(X,J,L){g.G.call(this);this.policy=X;this.T=J;this.Ni=L;this.N=new Map;this.j=0;this.B=!1;this.L="";this.K=!1}; NU=function(X,J,L){if(L===void 0?0:L)X.B=!0;++X.j;L=6E4*Math.pow(2,X.j);L=(0,g.uT)()+L;X.N.set(J.info.id,L)}; UZ=function(X){for(var J=g.d(X.N.entries()),L=J.next();!L.done;L=J.next()){var x=g.d(L.value);L=x.next().value;x=x.next().value;x<(0,g.uT)()&&X.N.delete(L)}return X.N}; l9S=function(X){return X.B&&UZ(X).size>0}; mY=function(X,J){X.L!==J&&(X.L=J,X.K=!0)}; Ryo=function(X,J){var L;J&&(L=g.Ou(X.T.L,function(Q){return Q.id===J})); if(!L&&(L=g.Ou(X.T.L,function(Q){var K;return!((K=Q.OH)==null||!K.isDefault)}),J)){var x; X.Ni("iaf",{id:J,sid:(x=L)==null?void 0:x.id})}return L}; Z2=function(X,J,L,x,Q,K){var q=this;K=K===void 0?[]:K;this.loader=X;this.Pl=J;this.policy=L;this.Yq=x;this.B=Q;this.O6=K;this.logger=new g.OS("dash/abr");this.L=Qh;this.N=this.W=null;this.D=-1;this.vl=!1;this.nextVideo=this.K=null;this.T=[];this.Hl=new Set;this.Bl={};this.J0=new Sj(1);this.S=0;this.bB=this.aB=this.Km=!1;this.FE=0;this.SC=!1;this.gI=new Set;this.jC=!1;this.Zh={EN:function(){kX(q)}}; this.j=new sZ(this.policy,Q,function(D,C){q.loader.Ni(D,C)})}; m18=function(X,J,L){AQ(X,J);J=Ryo(X.j,L);L||J||(J=BMW(X));J=J||X.B.L[0];X.K=X.Yq.L[J.id];kX(X);X.W=X.K;s0I(X);NM8(X);X.N=X.nextVideo;X.W=X.K;return U1S(X)}; AeR=function(X,J){if(knI(X,J))return null;if(J.reason==="m"&&J.isLocked())return X.logger.debug(function(){return"User sets constraint to: "+Ya(J)}),AQ(X,J),X.S=X.T.length-1,kX(X),XZ(X),X.aB=X.aB||X.N!==X.nextVideo,X.N=X.nextVideo,new RC(X.K,X.N,J.reason); J.reason==="r"&&(X.D=-1);AQ(X,J);XZ(X);if(J.reason==="r"&&X.nextVideo===X.N)return new RC(X.K,X.nextVideo,J.reason);ZEO(X);return null}; Xrz=function(X,J,L){X.K=X.Yq.L[J];X.W=X.K;return new RC(X.W,X.N,L?"t":"m")}; Jje=function(X,J){if(J.info.video){if(X.N!==J)return X.N=J,U1S(X)}else X.bB=X.W!==J,X.W=J;return null}; LEI=function(X,J){if(J.L.info.video&&J.j){var L=(J.K+J.N)/J.duration,x=J.L.info.DY;L&&x&&(X.J0.US(1,L/x),X.policy.N&&L/x>1.5&&X.loader.Ni("overshoot",{sq:J.Vl,br:L,max:x}))}}; JN=function(X,J,L){NU(X.j,J,L===void 0?!1:L);X.D=-1;AQ(X,X.L)}; x7R=function(X,J){return new RC(X.W,X.N,J||X.L.reason)}; ZEO=function(X){if(X.N&&X.nextVideo&&L7(X,X.N.info)X.policy.PJ,D=Q<=X.policy.PJ?rS(x):za(x);if(!K||q||D)L[Q]=x}return L}; AQ=function(X,J){X.L=J;var L=X.B.videoInfos;if(!X.L.isLocked()){var x=(0,g.uT)();L=g.SP(L,function(D){if(D.DY>this.policy.DY)return!1;var C=this.Yq.L[D.id];return UZ(this.j).get(D.id)>x?!1:C.T6.N>4||C.B>4?(this.logger.debug(function(){return"Remove "+BU(D)+"; 4 load failures"}),!1):this.gI.has(+D.itag)?!1:!0},X); l9S(X.j)&&(L=g.SP(L,function(D){return D.video.width<=854&&D.video.height<=480}))}L.length||(L=X.B.videoInfos); var Q=L;X.policy.Gw&&(Q=QeS(X,Q,J));Q=g.SP(Q,J.T,J);if(X.L.isLocked()&&X.j.L){var K=g.Ou(L,function(D){return D.id===X.j.L}); K?Q=[K]:mY(X.j,"")}X.policy.Gw||(Q=QeS(X,Q,J));Q.length||(Q=[L[0]]);Q.sort(function(D,C){return L7(X,D)-L7(X,C)}); J={};for(L=1;LJ.ZL.video.width?(g.d3(Q,L),L--):L7(X,J.CF)*X.policy.S>L7(X,J.ZL)&&(g.d3(Q,L-1),L--);var q=Q[Q.length-1];X.SC=!!X.N&&!!X.N.info&&X.N.info.XE!==q.XE;X.logger.debug(function(){return"Constraint: "+Ya(X.L)+", "+Q.length+" fmts selectable, max selectable fmt: "+BU(q)}); X.T=Q;X.Hl.clear();J=!1;for(L=0;L=1080&&(J=!0);KEY(X.policy,q,X.Yq.Zw)}; QeS=function(X,J,L){var x=L.reason==="m"||L.reason==="s";X.policy.g1&&x$&&g.n9&&(!x||L.L<1080)&&(J=J.filter(function(M){return M.video&&(!M.K||M.K.powerEfficient)})); if(J.length>0)if(K8()){var Q=iYW(X,J);J=J.filter(function(M){return!!M&&!!M.video&&M.XE===Q[M.video.qualityOrdinal].XE})}else{var K,q,D=(K=J[0])==null?void 0:(q=K.video)==null?void 0:q.qualityOrdinal; if(D){L=J.filter(function(M){return!!M&&!!M.video&&M.video.qualityOrdinal===D}); var C=iYW(X,L)[D].XE;J=J.filter(function(M){return!!M&&!!M.video&&M.XE===C})}}return J}; qSA=function(X,J){for(var L=0;L+1x}; kX=function(X){if(!X.K||!X.policy.T&&!X.K.info.OH){var J=X.B.L;X.K&&(J=J.filter(function(x){return x.audio.L===X.K.info.audio.L}),J.length||(J=X.B.L)); X.K=X.Yq.L[J[0].id];if(J.length>1&&!X.policy.bB){if(!X.policy.IC){var L=g.Ou(J,function(x){return x.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); L&&(X.K=X.Yq.L[L.id])}L=!1;if(L=X.policy.pO?!0:X.L.isLocked()?X.L.L<240:qSA(X,X.K))X.K=X.Yq.L[g.V0(J).id]}}}; XZ=function(X){if(!X.nextVideo||!X.policy.T)if(X.L.isLocked())X.nextVideo=X.L.L<=360?X.Yq.L[X.T[0].id]:X.Yq.L[g.V0(X.T).id],X.logger.debug(function(){return"Select max fmt: "+BU(X.nextVideo.info)}); else{for(var J=Math.min(X.S,X.T.length-1),L=G7(X.Pl),x=L7(X,X.K.info),Q=L/X.policy.Km-x;J>0&&!(L7(X,X.T[J])<=Q);J--);for(var K=L/X.policy.S-x;J=K);J++);X.nextVideo=X.Yq.L[X.T[J].id];X.S!==J&&X.logger.info(function(){return"Adapt to: "+BU(X.nextVideo.info)+", bandwidth: "+L.toFixed(0)+", bandwidth to downgrade: "+Q.toFixed(0)+", bandwidth to upgrade: "+K.toFixed(0)+", constraint: "+Ya(X.L)}); X.S=J}}; s0I=function(X){var J=X.policy.Km,L=G7(X.Pl),x=L/J-L7(X,X.K.info);J=g.w3(X.T,function(Q){return L7(this,Q)K?Q=0:x[q]>X.buffered[q]&&(q===K-1?Q=2:q===K-2&&x[q+1]>X.buffered[q+1]&&(Q=3))}X.L.add(J<<3|(L&&4)|Q);J=Math.ceil(X.track.fI()*1E3);X.L.add(J-X.j);X.j=J;if(Q===1)for(X.L.add(K),q=J=0;q=2&&X.L.add(x[K- 1]-X.buffered[K-1]);L&&X.L.add(L);X.buffered=x}; K7=function(X,J,L){var x=this;this.policy=X;this.L=J;this.FE=L;this.T=this.K=0;this.XN=null;this.Km=new Set;this.D=[];this.indexRange=this.initRange=null;this.S=new Vy;this.aB=this.Pl=!1;this.Zh={hRl:function(){return x.N}, x8l:function(){return x.chunkSize}, jYY:function(){return x.W}, BcY:function(){return x.B}}; (J=Cpm(this))?(this.chunkSize=J.csz,this.N=Math.floor(J.clen/J.csz),this.W=J.ck,this.B=J.civ):(this.chunkSize=X.aJ,this.N=0,this.W=g.nL(16),this.B=g.nL(16));this.j=new Uint8Array(this.chunkSize);this.W&&this.B&&(this.crypto=new duv(this.W,this.B))}; Cpm=function(X){if(X.policy.Vq&&X.policy.NE)for(var J=g.d(X.policy.Vq),L=J.next(),x={};!L.done;x={MN:void 0,u_:void 0},L=J.next())if(L=g.XU(L.value),x.MN=+L.clen,x.u_=+L.csz,x.MN>0&&x.u_>0&&X.policy.T===L.docid&&X.L.info.id===L.fmtid&&X.L.info.lastModified===+L.lmt)return X={},X.clen=x.MN,X.csz=x.u_,X.ck=L.ck,X.civ=L.civ,X}; qs=function(X){return!!X.XN&&X.XN.Ze()}; nQA=function(X,J){if(!qs(X)&&!X.E6()){if(!(X.Pl||(X.Pl=!0,X.N>0))){var L=IN(X);L=mk(X.policy.T,X.L.info,gi(X),L,X.policy.J0);D$(X,L)}if(J.info.type===1){if(X.XN){$$(X,Error("Woffle: Expect INIT slices to always start us off"));return}X.initRange=mA(0,J.K.totalLength)}else if(J.info.type===2)X.XN&&X.XN.type===1||$$(X,Error("Woffle: Index before init")),X.indexRange=mA(X.initRange.end+1,J.K.totalLength);else if(J.info.type===3){if(!X.XN){$$(X,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(X.XN.type===3&&!Jj(X.XN,J.info)&&(X.D=[],J.info.Vl!==LY(X.XN)||J.info.K!==0))return;if(J.info.j){L=g.d(X.D);for(var x=L.next();!x.done;x=L.next())M0O(X,x.value);X.D=[]}else{X.D.push(J);X.XN=J.info;return}}else{$$(X,Error("Woffle: Unexpected slice type"));return}X.XN=J.info;M0O(X,J);yjP(X)}}; M0O=function(X,J){var L=0,x=gk(J.K);if(X.T=x.length)return;if(L<0)throw Error("Missing data");X.T=X.N;X.K=0}for(Q={};L0){var q=x.getUint32(L+28);K+=q*16+4}var D=x.getUint32(L+K-4);try{var C=wrZ(J.subarray(L+K,L+K+D));if(C!==null){var M=C;break a}}catch(y){}}L+=Q}M=null;break a}catch(y){M=null;break a}M=void 0}if(M!=null)for(J=V9(Aa(M,7,void 0,zB)),J==null||X.KY||(X.cryptoPeriodIndex=J),J=V9(Aa(M,10,void 0,zB)),J!=null&&J>0&& !X.KY&&(X.L=J),M=KH(M,2,cHP,void 0===zwm?2:4),M=g.d(M),x=M.next();!x.done;x=M.next())J=X.N,L=J.push,x=pQ(x.value),x=g.S3(x,4),L.call(J,x)}; d7v=function(X){return isNaN(X.cryptoPeriodIndex)?g.S3(X.initData):""+X.cryptoPeriodIndex}; yI=function(X,J,L){var x=L===void 0?{}:L;L=x.videoDuration===void 0?0:x.videoDuration;var Q=x.FR===void 0?void 0:x.FR;x=x.xK===void 0?!1:x.xK;this.videoId=X;this.status=J;this.videoDuration=L;this.FR=Q;this.xK=x}; uJI=function(X,J,L,x,Q){this.videoId=X;this.b_=J;this.K=L;this.bytesDownloaded=x;this.L=Q}; n7=function(X){this.L=X;this.offset=0}; VI=function(X){if(X.offset>=X.L.totalLength)throw Error();return $y(X.L,X.offset++)}; oQe=function(X,J){J=J===void 0?!1:J;var L=VI(X);if(L===1){J=-1;for(L=0;L<7;L++){var x=VI(X);J===-1&&x!==255&&(J=0);J>-1&&(J=J*256+x)}return J}x=128;for(var Q=0;Q<6&&x>L;Q++)L=L*256+VI(X),x*=128;return J?L:L-x}; bYI=function(X){try{var J=oQe(X,!0),L=oQe(X,!1);return{id:J,size:L}}catch(x){return{id:-1,size:-1}}}; SSY=function(X){for(var J=new n7(X),L=-1,x=0,Q=0;!x||!Q;){var K=bYI(J),q=K.id;K=K.size;if(q<0)return;if(q===176){if(K!==2)return;x=J.hv()}else if(q===186){if(K!==2)return;Q=J.hv()}q===374648427?L=J.hv()+K:q!==408125543&&q!==174&&q!==224&&J.skip(K)}J=D1(X,0,L);L=new DataView(J.buffer);L.setUint16(x,3840);L.setUint16(Q,2160);x=new iE([J]);Qm(x,X);return x}; PpO=function(X,J,L){var x=this;this.loader=X;this.policy=J;this.j=L;this.logger=new g.OS("dash");this.K=[];this.L=null;this.Pl=-1;this.D=0;this.gI=NaN;this.Km=0;this.N=NaN;this.S=this.vl=0;this.SC=-1;this.Bl=this.T=this.B=this.FE=null;this.J0=this.bB=NaN;this.W=this.aB=this.Hl=this.O6=null;this.Cm=!1;this.jC=this.timestampOffset=0;this.Zh={Iz:function(){return x.K}}; if(this.policy.T){var Q=this.j,K=this.policy.T;this.policy.J0&&X.Ni("atv",{ap:this.policy.J0});this.W=new K7(this.policy,Q,function(q,D,C){H7(X,new yI(x.policy.T,2,{FR:new uJI(K,q,Q.info,D,C)}))}); this.W.S.promise.then(function(q){x.W=null;q===1?H7(X,new yI(x.policy.T,q)):x.loader.Ni("offlineerr",{status:q.toString()})},function(q){var D=(q.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); q instanceof C7&&!q.L?(x.logger.info(function(){return"Assertion failed: "+D}),x.loader.Ni("offlinenwerr",{em:D}),OB(x),H7(X,new yI(x.policy.T,4))):(x.logger.info(function(){return"Failed to write to disk: "+D}),x.loader.Ni("dldbwerr",{em:D}),OB(x),H7(X,new yI(x.policy.T,4,{xK:!0})))})}}; cjv=function(X){return X.K.length?X.K[0]:null}; EQm=function(X,J){return X.K.some(function(L){return L.info.Vl===J})}; pr8=function(X,J,L,x){x=x===void 0?0:x;if(X.T){var Q=X.T.K+X.T.N;if(L.info.K>0)if(L.info.Vl===X.T.Vl&&L.info.K=0&&X.T.Vl>=0&&!Jj(X.T,L.info))throw new g.Fm("improper_continuation",X.T.gQ(),L.info.gQ());OvP(X.T,L.info)||aN(X,"d")}else if(L.info.K>0)throw new g.Fm("continuation_of_null",L.info.gQ());X.T=L.info;X.j=L.info.L;if(L.info.K===0){if(X.L)if(!X.loader.isOffline()||X.policy.Ov)X.loader.Ni("slice_not_fully_processed", {buffered:X.L.info.gQ(),push:L.info.gQ()});else throw new g.Fm("slice_not_fully_processed",X.L.info.gQ(),L.info.gQ());wi(X);X.vl=x}else{if(X.vl&&x&&X.vl!==x)throw X=new g.Fm("lmt_mismatch",L.info.Vl,X.vl,x),X.level="WARNING",X;!L.info.L.z7()&&X.B&&(x=L.info,Q=X.B.oS,x.W="updateWithEmsg",x.Vl=Q)}if(X.L){x=g.du(X.L,L);if(!x)throw new g.Fm("failed_to_merge",X.L.info.gQ(),L.info.gQ());X.L=x}else X.L=L;a:{L=g.Ta(X.L.info.L.info);if(X.L.info.type!==3){if(!X.L.info.j)break a;X.L.info.type===6?YSm(X,J,X.L): h8m(X,X.L);X.L=null}for(;X.L;){x=X.L.K.totalLength;if(X.Pl<=0&&X.D===0){var K=X.L.K,q=-1;Q=-1;if(L){for(var D=0;D+80))break;if(n!==408125543)if(n===524531317)D=!0,y>=0&&(Q=K.hv()+y,C=!0);else{if(D&&(n===160||n===163)&&(q<0&&(q=M),C))break;n===163&&(q=Math.max(0,q),Q=K.hv()+y);if(n===160){q<0&&(Q=q=K.hv()+ y);break}K.skip(y)}}q<0&&(Q=-1)}if(q<0)break;X.Pl=q;X.D=Q-q}if(X.Pl>x)break;X.Pl?(x=z8e(X,X.Pl),x.j&&WES(X,x),YSm(X,J,x),tN(X,x),X.Pl=0):X.D&&(x=z8e(X,X.D<0?Infinity:X.D),X.D-=x.K.totalLength,tN(X,x))}}X.L&&X.L.info.j&&(tN(X,X.L),X.L=null)}; h8m=function(X,J){!J.info.L.z7()&&J.info.K===0&&(g.Ta(J.info.L.info)||J.info.L.info.KY())&&Xvm(J);if(J.info.type===1)try{WES(X,J),rjP(X,J)}catch(Q){g.Sc(Q);var L=xQ(J.info);L.hms="1";X.loader.handleError("fmt.unparseable",L||{},1)}L=J.info.L;L.HY(J);X.W&&nQA(X.W,J);if(L.Fy()&&X.policy.L)a:{X=X.loader.Yq;J=J.info.clipId;L=g.fv(L.info,X.Zw);if(J){var x=Bx({itag:L.itag,lmt:X.Zw?0:L.lmt||0,xtags:L.xtags});if(X.SC[x])break a;X.SC[x]=J}X.bB.push(L)}}; IPe=function(X,J,L){if(X.K.length!==0&&(L||X.K.some(function(K){return K.info.T=uM(q)+D):J=X.getDuration()>=q.getDuration(),J=!J;J&&TuO(L)&&(J=X.FE,di?(D=ZvY(L),q=1/D,D=uM(X,D),J=uM(J)+q-D):J=J.getDuration()- X.getDuration(),J=1+J/L.info.duration,UeP(g.tj(L),J))}else{q=!1;X.B||(Xvm(L),L.L&&(X.B=L.L,q=!0,Q=L.info,K=L.L.oS,Q.W="updateWithEmsg",Q.Vl=K,Q=L.L,Q.Ze&&(K=X.j.index,K.K=!Q.Ze,K.N="emsg"),Q=L.info.L.info,K=g.tj(L),g.Ta(Q)?a0(K,1701671783):Q.KY()&&Px([408125543],307544935,K)));a:if((Q=bp(L,X.policy.If))&&AbZ(L))D=GOm(X,L),X.S+=D,Q-=D,X.Km+=Q,X.N=X.policy.cJ?X.N+Q:NaN;else{if(X.policy.fS){if(K=C=X.loader.gJ(g.up(L),1),X.N>=0&&L.info.type!==6){if(X.policy.cJ&&isNaN(X.bB)){g.PM(new g.Fm("Missing duration while processing previous chunk", L.info.gQ()));X.loader.isOffline()&&!X.policy.Ov||fGZ(X,L,K);aN(X,"m");break a}x=C-X.N;var M=x-X.S,y=L.info.Vl,n=X.Bl?X.Bl.Vl:-1,V=X.J0,H=X.bB,O=X.policy.h4&&x>X.policy.h4,u=Math.abs(M)>10,S=Math.abs(X.N-K)<1E-7;if(Math.abs(M)>1E-4){X.jC+=1;var Y=(D=X.B)==null?void 0:lJe(D);D={audio:""+ +X.g2(),sq:y.toFixed(),sliceStart:C,lastSq:n.toFixed(),lastSliceStart:V,lastSliceDuration:H,totalDrift:(x*1E3).toFixed(),segDrift:(M*1E3).toFixed(),skipRewrite:""+ +(O||u)};if(Y==null?0:Y.length)D.adCpn=Y[0];X.loader.handleError("qoe.avsync", D);X.SC=y}O||u||S||(K=X.N);D=GOm(X,L,C);Q-=D;X.S=x+D}}else K=isNaN(X.N)?L.info.startTime:X.N;fGZ(X,L,K)&&(X.Km+=Q,X.N=K+Q,X.policy.u3&&X.jC>=X.policy.u3&&(X.jC=0,X.loader.md({resetForRewrites:"count"})))}X.Bl=L.info;X.bB=oe(L);L.N>=0&&(X.J0=L.N);if(q&&X.B){q=e8A(X,!0);ip(L.info,q);X.L&&ip(X.L.info,q);J=g.d(J);for(D=J.next();!D.done;D=J.next())D=D.value,Q=void 0,X.policy.j&&D.Vl!==((Q=X.B)==null?void 0:Q.oS)||ip(D,q);(L.info.j||X.L&&X.L.info.j)&&L.info.type!==6||(X.aB=q,X.policy.K?(J=FEW(X.B),X.loader.Ac(X.j, q,J)):(J=X.loader,J.Yq.isManifestless&&lGA(J,q,null,!!X.j.info.video)),X.policy.LW||R8z(X))}}rjP(X,L);X.timestampOffset&&mhA(L,X.timestampOffset)}; tN=function(X,J){if(J.info.j){X.O6=J.info;if(X.B){var L=X.B,x=e8A(X,!1);L=FEW(L);X.loader.Ac(X.j,x,L);X.aB||X.policy.LW||R8z(X);X.aB=null}wi(X)}X.W&&nQA(X.W,J);if(x=X.RW())if(x=g.du(x,J,X.policy.Vd,X.policy.jT)){X.K.pop();X.K.push(x);return}X.K.push(J)}; FEW=function(X){if(X.cB()){var J=X.data["Stitched-Video-Id"]?X.data["Stitched-Video-Id"].split(",").slice(0,-1):[],L=lJe(X),x=[];if(X.data["Stitched-Video-Duration-Us"])for(var Q=g.d(X.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),K=Q.next();!K.done;K=Q.next())x.push((Number(K.value)||0)/1E6);Q=[];if(X.data["Stitched-Video-Start-Frame-Index"]){K=g.d(X.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var q=K.next();!q.done;q=K.next())Q.push(Number(q.value)||0)}Q=[]; if(X.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(K=g.d(X.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),q=K.next();!q.done;q=K.next())Q.push((Number(q.value)||0)/1E6);X=new aGO(J,L,x,Q,g.RKA(X),g.BV8(X))}else X=null;return X}; wi=function(X){X.L=null;X.Pl=-1;X.D=0;X.B=null;X.gI=NaN;X.Km=0;X.aB=null}; aN=function(X,J){J={rst4disc:J,cd:X.S.toFixed(3),sq:X.Bl?X.Bl.Vl:-1};X.N=NaN;X.S=0;X.SC=-1;X.Bl=null;X.J0=NaN;X.bB=NaN;X.Hl=null;X.loader.Ni("mdstm",J)}; rjP=function(X,J){if(X.isDrm()){if(J.info.L.info.KY()){var L=new te(g.tj(J));if(ui(L,[408125543,374648427,174,28032,25152,20533,18402])){var x=SU(L,!0);L=x!==16?null:he(L,x)}else L=null;x="webm"}else J.info.D=HYv(g.tj(J)),L=OYP(J.info.D),x="cenc";L&&L.length&&(L=new Ms(L,x),X.policy.TJ&&g.Ta(J.info.L.info)&&(x=Jbv(g.tj(J)))&&(L.K=x),L.KY=J.info.L.info.KY(),J.L&&J.L.cryptoPeriodIndex&&(L.cryptoPeriodIndex=J.L.cryptoPeriodIndex),J.L&&J.L.K&&(L.L=J.L.K),X.loader.xJ(L))}}; R8z=function(X){var J=X.B,L=eKm(J);L&&(L.startSecs+=X.gI,X.loader.Q_(X.j,L,J.oS,J.cB()))}; e8A=function(X,J){var L,x=X.B;if(L=eKm(x))L.startSecs+=X.gI;return new ka(x.oS,X.gI,J?x.nJ:X.Km,x.ingestionTime,"sq/"+x.oS,void 0,void 0,J,L)}; fGZ=function(X,J,L){if(!UhP(J,L))return J=xQ(J.info),J.smst="1",X.loader.handleError("fmt.unparseable",J||{},1),!1;isNaN(X.gI)&&(X.gI=L);return!0}; GOm=function(X,J,L){var x=0;if(J.info.L.info.KY()&&!AbZ(J))return 0;if(X.FE&&!X.g2()){var Q=0;L&&g.Ta(J.info.L.info)?Q=L-X.N:J.info.L.info.KY()&&(Q=X.S);var K=J.info.Vl;L=bp(J,X.policy.If);var q=X.FE;var D=q.SC;q=q.S;var C=Math.abs(q-Q)>.02;if((K===D||K>D&&K>X.SC)&&C){x=Math.max(.95,Math.min(1.05,(L-(q-Q))/L));if(g.Ta(J.info.L.info))UeP(g.tj(J),x);else if(J.info.L.info.KY()&&(K=Q-q,!g.Ta(J.info.L.info)&&(J.info.L.info.KY(),x=new te(g.tj(J)),D=J.j?x:new te(new DataView(J.info.L.L.buffer)),bp(J,!0)))){var M= K*1E3,y=Wx(D);D=x.pos;x.pos=0;if(x.L.getUint8(x.pos)===160||pE(x))if(bi(x,160))if(SU(x,!0),bi(x,155)){if(K=x.pos,C=SU(x,!0),x.pos=K,M=M*1E9/y,y=cx(x),M=y+Math.max(-y*.7,Math.min(y,M)),M=Math.sign(M)*Math.floor(Math.abs(M)),!(Math.ceil(Math.log(M)/Math.log(2)/8)>C)){x.pos=K+1;for(K=C-1;K>=0;K--)x.L.setUint8(x.pos+K,M&255),M>>>=8;x.pos=D}}else x.pos=D;else x.pos=D;else x.pos=D}x=bp(J,X.policy.If);x=L-x}x&&J.info.L.info.KY()&&X.loader.Ni("webmDurationAdjustment",{durationAdjustment:x,videoDrift:Q+x, audioDrift:q})}return x}; TuO=function(X){return X.info.L.z7()&&X.info.Vl===X.info.L.index.Md()}; uM=function(X,J){J=(J=J===void 0?0:J)?Math.round(X.timestampOffset*J)/J:X.timestampOffset;X.j.T&&J&&(J+=X.j.T.L);return J+X.getDuration()}; BuP=function(X,J){J<0||(X.K.forEach(function(L){mhA(L,J)}),X.timestampOffset=J)}; la=function(X,J,L,x,Q){qU.call(this,L,Q);var K=this;this.policy=X;this.formatId=J;this.CY=x;this.lastError=null;this.HD=function(){K.E6()||(K.CY.xF.has(K.formatId)?(K.isComplete()||K.L.start(),WE(K.CY,K.formatId)&&K.O9(2),K.CY.eW(K.formatId)&&(MUS(K.CY,K.formatId)?K.UA(4):(K.lastError="net.closed",K.UA(5)))):(K.lastError="player.exception",K.UA(5)))}; this.L=new g.sn(function(){K.isComplete()||(K.lastError="net.timeout",K.UA(5))},1E3); this.L.start();D1R(this.CY,this.formatId,this.HD);g.dJ(this.HD)}; oN=function(X,J,L,x){g.G.call(this);var Q=this;this.loader=X;this.policy=J;this.L=L;this.timing=x;this.logger=new g.OS("dash");this.N=[];this.FE=[];this.K=this.je=null;this.Hl=!1;this.vl=this.jC=0;this.B=-1;this.Pl=!1;this.gI=-1;this.Bl=null;this.aB=NaN;this.Km=[];this.Zh={u1:function(){return Q.T}, i7B:function(){return Q.N}, Ikq:function(){return Q.S}}; this.T=new PpO(X,J,L);this.policy.L&&(this.S=new eZ(this.T,this.loader.getManifest(),this.policy,function(K){Q.policy.ag&&Q.Ni("buftl",K)})); this.policy.H4&&(this.D=new iM(this));this.DY=L.info.DY;this.W=this.policy.aB?!1:L.TN();this.isManifestless=L.TN();this.j=this.W;g.f(this,this.Bl)}; bM=function(X,J,L){L=L===void 0?!1:L;J&&di&&BuP(X.T,J.Zi());if(!L){var x;(x=X.S)==null||ieS(x)}X.je=J;(J=X.S)!=null&&(J.je=X.je)}; SS=function(X){var J=X.je&&X.je.lm();if(X.policy.KI){if((X=X.S)==null)X=void 0;else{var L;X=(L=X.N)==null?void 0:L.info}return X||null}return J}; seO=function(X){for(var J={},L=0;L4&&X.FE.shift()}; Nuz=function(X,J){if(J.jQ()){var L=J.bW();L=g.d(L);for(var x=L.next();!x.done;x=L.next())x=x.value,X.policy.N&&J instanceof la&&X.Ni("omblss",{s:x.info.gQ()}),c7(X,J.info.eC,x,J.wM())}}; c7=function(X,J,L,x){x=x===void 0?0:x;isNaN(X.aB)||(X.Ni("aswm",{sq:J[0].Vl,id:J[0].L.info.itag,xtag:J[0].L.info.L,ep:Date.now()-X.aB}),X.aB=NaN);switch(L.info.type){case 1:case 2:U7Z(X,L);break;case 4:var Q=L.info.L,K=Q.WR(L),q;((q=X.K)==null?0:q.type===4)&&bvP(L.info,X.K)&&(X.K=Q.Q1(X.K).pop());L=g.d(K);for(Q=L.next();!Q.done;Q=L.next())c7(X,J,Q.value,x);break;case 3:L.info.L.info.video?(Q=X.timing,Q.gI||(Q.gI=(0,g.uT)(),g.Bv("fvb_r",Q.gI,Q.L))):(Q=X.timing,Q.B||(Q.B=(0,g.uT)(),g.Bv("fab_r",Q.B, Q.L)));pr8(X.T,J,L,x);X.policy.L&&m7z(X);break;case 6:pr8(X.T,J,L,x),X.K=L.info}}; U7Z=function(X,J){if(J.info.type===1)if(J.info.L.info.video){var L=X.timing;L.vl||(L.vl=(0,g.uT)(),g.Bv("vis_r",L.vl,L.L))}else L=X.timing,L.S||(L.S=(0,g.uT)(),g.Bv("ais_r",L.S,L.L));h8m(X.T,J);X=X.loader;X.videoTrack.L.Fy()&&X.audioTrack.L.Fy()&&X.policy.L&&!X.Yq.Zw&&(J=X.audioTrack.getDuration(),L=X.videoTrack.getDuration(),Math.abs(J-L)>1&&X.Ni("trBug",{af:""+g.fv(X.audioTrack.L.info,!1),vf:""+g.fv(X.videoTrack.L.info,!1),a:""+J,v:""+L}))}; AZ=function(X){return cjv(X.T)}; m7z=function(X){X.N.length?X.K=g.V0(g.V0(X.N).info.eC):X.T.K.length?X.K=X.T.RW().info:X.K=SS(X)}; EB=function(X,J){var L={hP:[],WK:[]},x;if((X=X.S)==null)X=void 0;else{xuS(X,X.hP,"og");XKe(X,J);xuS(X,X.hP,"trim");var Q=LsY(X);J=Q.hP;Q=Q.EX;for(var K=[],q=0;q0){var V=mL(n,C);V>=0&&(y=(n.end(V)-C+.1)*1E3)}K.push({formatId:g.fv(D.info.L.info,X.Yq.Zw), JB:D.info.JB,sequenceNumber:D.info.Vl+X.T,pP:M,K8:D.info.N,rE:y})}X={hP:J,WK:K}}return(x=X)!=null?x:L}; s0=function(X,J,L){L=L===void 0?!1:L;if(X.je){var x=X.je.ll(),Q=Zb(x,J),K=NaN,q=SS(X);q&&(K=Zb(x,q.L.index.getStartTime(q.Vl)));if(Q===K&&X.K&&X.K.N&&kOS(Y$(X),0))return J}X=ZYz(X,J,L);return X>=0?X:NaN}; U0=function(X,J,L){X.L.Fy();var x=ZYz(X,J);if(x>=0)return x;var Q;(Q=X.S)==null||JWS(Q,J,L);x=Math;Q=x.min;var K=X.T;if(K.W)if(K=K.W,K.XN&&K.XN.type===3)K=K.XN.startTime;else if(K.N>0){var q=K.L.index;q=g.eI(q.offsets.subarray(0,q.count),K.N*K.chunkSize);K=K.L.index.getStartTime(q>=0?q:Math.max(0,-q-2))}else K=0;else K=Infinity;J=Q.call(x,J,K);X.K=X.policy.aB?null:X.L.oU(J).eC[0];hN(X)&&(X.policy.vx&&(L==null?void 0:L.seekSource)===60||X.je&&X.je.abort(),X.policy.RP&&(L=X.S)!=null&&(L.N=void 0)); X.vl=0;return X.K?X.K.startTime:J}; Ksm=function(X){X.W=!0;X.j=!0;X.B=-1;U0(X,Infinity)}; zV=function(X){for(var J=0,L=g.d(X.N),x=L.next();!x.done;x=L.next())J+=P2R(x.value.info);return J+=vQz(X.T)}; p7=function(X,J){J=J===void 0?!1:J;var L=X.loader.getCurrentTime(),x=X.T.RW(),Q=(x==null?void 0:x.info.B)||0;if((x==null?0:x.info.L.TN())&&!x.info.j)if(X.policy.M0)Q=x.info.T;else if(X.policy.Dk){var K=x.info;Q=K.range?K.B:Math.min(K.startTime+Math.min(K.duration*K.K/K.L.info.DY,K.duration)+(K.range?K.S:Math.min(K.duration,K.duration*K.N/K.L.info.DY)),K.startTime+K.duration)}if(!X.je)return X.policy.L&&J&&!isNaN(L)&&x?Q-L:0;if((K=SS(X))&&W7(K))return K.B;var q=X.je.ll(!0);if(J&&x)return K=0,X.policy.L&& (K=Jf(q,Q+.02)),K+Q-L;J=Jf(q,L);X.policy.l2&&K&&(x=mL(q,L),q=mL(q,K.T-.02),x===q&&(L=K.B-L,X.policy.N&&L>J+.02&&X.Ni("abh",{bh:J,bhtls:L}),J=Math.max(J,L)));return J}; Ajm=function(X){var J=SS(X);return J?J.B-X.loader.getCurrentTime():0}; XaZ=function(X,J){if(X.N.length){if(X.N[0].info.eC[0].startTime<=J)return;B0(X)}for(var L=X.T,x=L.K.length-1;x>=0;x--)L.K[x].info.startTime>J&&L.K.pop();m7z(X);X.K&&J=0;q--){var D=Q.K[q];D.info.Vl>=J&&(Q.K.pop(),Q.N-=bp(D,Q.policy.If),K=D.info)}K&&(Q.T=Q.K.length>0?Q.K[Q.K.length-1].info:Q.Hl,Q.K.length!==0||Q.T||aN(Q,"r"));Q.loader.Ni("mdstm",{rollbk:1,itag:K?K.L.info.itag:"",popped:K?K.Vl:-1,sq:J,lastslc:Q.T?Q.T.Vl:-1,lastfraget:Q.N.toFixed(3)});if(X.policy.L)return X.K=null,!0;x>L?U0(X,x):X.K=X.L.lL(J-1,!1).eC[0]}catch(C){return J=nv(C),J.details.reason="rollbkerr", X.loader.handleError(J.errorCode,J.details,J.severity),!1}return!0}; jS=function(X,J){var L;for(L=0;L0?L||J.Vl>=X.gI:L}; TV=function(X){var J;return hN(X)||W7((J=X.T.RW())==null?void 0:J.info)}; Y$=function(X){var J=[],L=SS(X);L&&J.push(L);J=g.Eu(J,X.T.Gm());L=g.d(X.N);for(var x=L.next();!x.done;x=L.next()){x=x.value;for(var Q=g.d(x.info.eC),K=Q.next(),q={};!K.done;q={ou:void 0},K=Q.next())q.ou=K.value,x.nT&&(J=g.SP(J,function(D){return function(C){return!bvP(C,D.ou)}}(q))),(XJ(q.ou)||q.ou.type===4)&&J.push(q.ou)}X.K&&!Vim(X.K,g.V0(J),X.K.L.z7())&&J.push(X.K); return J}; kOS=function(X,J){if(!X.length)return!1;for(J+=1;J=J){J=K;break a}}J=Q}return J<0?NaN:kOS(X,L?J:0)?X[J].startTime:NaN}; GV=function(X){return!(!X.K||X.K.L===X.L)}; JYm=function(X){return GV(X)&&X.L.Fy()&&X.K.L.info.DYJ&&X.B1080&&!X.JC&&(X.vl=36700160,X.O6=5242880,X.jC=Math.max(4194304,X.jC),X.JC=!0);J.video.qualityOrdinal>2160&&!X.oI&&(X.vl=104857600,X.DY=13107200,X.oI=!0);g.J_(X.TH.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?J.isEncrypted()&&g.fU()&&g.To("samsung")&&(g.To("kant")||g.To("muse"))&&(X.DY=g.J_(X.TH.experiments,"html5_samsung_kant_limit_max_bitrate")):J.isEncrypted()&&g.fU()&&g.To("kant")&&(X.DY=1310720);X.w8!==0&&J.isEncrypted()&& (X.DY=X.w8);X.QN!==0&&J.isEncrypted()&&L&&(X.DY=X.QN);J.DY&&(X.Qw=Math.max(X.tB,Math.min(X.jC,5*J.DY)))}; dr=function(X){return X.L&&X.jZ}; RN=function(X){return X.L&&X.iJ&&X.playbackStartPolicy}; B7=function(X,J,L,x){X.iJ&&(X.playbackStartPolicy=J,X.zJ=L,X.F_=x)}; lM=function(X,J,L){L=L===void 0?0:L;return g.J_(X.TH.experiments,J)||L}; yYO=function(X){var J=X===void 0?{}:X;X=J.LA;var L=J.LJ;var x=J.vD;var Q=J.Md;J=J.Bb;this.LA=X;this.LJ=L;this.vD=x;this.Md=Q;this.Bb=J}; OeS=function(X,J){if(J<0)return!0;var L=X.Md();return J0)return 2;if(J<0)return 1;L=X.Md();return J(0,g.uT)()?0:1}; Ns=function(X,J,L,x,Q,K,q,D,C,M,y,n,V,H){H=H===void 0?null:H;g.G.call(this);var O=this;this.loader=X;this.policy=J;this.videoTrack=L;this.audioTrack=x;this.T=Q;this.L=K;this.timing=q;this.j=D;this.schedule=C;this.Yq=M;this.N=y;this.Km=n;this.Hs=V;this.vS=H;this.aB=!1;this.ZE="";this.Yc=null;this.fn=NaN;this.Pl=!1;this.K=null;this.Yj=this.D=NaN;this.k_=this.B=0;this.logger=new g.OS("dash");this.Zh={Nu:function(u,S){return O.Nu(u,S)}}; this.policy.W2>0&&(this.ZE=g.nL(this.policy.W2));this.policy.jl&&(this.S=new sB(this.loader,this.policy,this.schedule),g.f(this,this.S))}; a6A=function(X,J,L){var x=J.K?J.K.L.T6:J.L.T6;var Q=X.T,K;(K=!X.policy.V3)||(K=BK(x.L)===BK(x.K));K?x=!1:(Q=Gn(Q,BK(x.K)),K=6E4*Math.pow(Q.T,1.6),(0,g.uT)()=Q.T?(Q.Ni("sdai",{haltrq:K+1,est:Q.T}),x=!1):x=Q.K!==2;if(!x||!R0(J.K?J.K.L.T6:J.L.T6,X.policy,X.T,X.loader.nw())||X.loader.isSuspended&&(!jj(X.schedule)||X.loader.va))return!1;if(X.policy.T&&UT>=5)return g.Nc(X.loader.H$),!1;if(X.Yq.isManifestless){if(J.N.length>0&&J.K&&J.K.Vl===-1||J.N.length>=X.policy.Nn||!X.policy.fB&&J.N.length>0&&!X.policy.W.LJ)return!1;if(J.W)return!X.Yq.isLive|| !isNaN(X.fn)}if(KBm(J))return X.logger.debug("Pending request with server-selectable format found"),!1;if(!J.K){if(!J.L.Fy())return!1;U0(J,X.loader.getCurrentTime())}if(AZ(J)&&(J.RW()!==AZ(J)||X.loader.isSuspended))return!1;Q=(x=X.policy.EZ)&&!J.N.length&&p7(J,!0)=X.policy.PN)return!1;x=J.K;if(!x)return!0;x.type===4&&x.L.Fy()&&(J.K=g.V0(x.L.Q1(x)),x= J.K);if(!x.Ze()&&!x.L.Ci(x))return!1;K=X.Yq.Bv||X.Yq.T;if(X.Yq.isManifestless&&K){K=J.L.index.Md();var q=L.L.index.Md();K=Math.min(K,q);if(J.L.index.O0()>0&&K>0&&x.Vl>=K)return J.gI=K,L.gI=K,!1}if(x.L.info.audio&&x.type===4||x.Ze())return!1;K=!J.j&&!L.j;if(Q=!Q)Q=x.B,Q=!!(L.K&&!W7(L.K)&&L.K.BwaZ(X,J)?(waZ(X,J),!1):(X=J.je)&&X.isLocked()?!1:!0}; waZ=function(X,J){var L=X.L;L=L.L?L.L.ge:null;if(X.policy.FE&&L)return L.startSecs+L.zR+15;J=N6(X.loader,J);X.policy.Nx>0&&(L=((0,g.uT)()-X.loader.vg)/1E3,J=Math.min(J,X.policy.Nx+X.policy.ac*L));J=X.loader.getCurrentTime()+J;return X.policy.n6&&(L=tj8(X.loader)+X.policy.n6,L=0||J.T6.La("defrag")==="1"||J.T6.La("otf")==="1"){J=null;break a}Q=mA(0,4096)}Q=new Qa([new Z9(5,x.L,Q,"createProbeRequestInfo"+x.W,x.Vl)],J.K);Q.Ms=L;Q.L=J.L;J=Q}J&&mp(X,J)}}; mp=function(X,J){X.loader.Ou(J);var L=P2R(J),x=X.loader.Ka();L={zi:X.schedule,Em:L,nK:NKv(X.j,L),z0:Ae(J.eC[0]),Hu:s_(J.T6.L),Ba:X.policy.N,e4:function(q,D){X.loader.qB(q,D)}}; if(X.schedule.K.B){var Q,K;L.dg=(((Q=X.videoTrack.L)==null?void 0:Q.info.DY)||0)+(((K=X.audioTrack.L)==null?void 0:K.info.DY)||0)}X.Yc&&(L.Vl=J.eC[0].Vl,L.fn=J.fn,L.Yc=X.Yc);x={LG:cbW(J,X.loader.getCurrentTime()),Pj:X.policy.qQ&&q7(J)&&J.eC[0].L.info.video?gQA(X.N):void 0,gj:X.policy.FE,poToken:X.loader.xV(),oh:X.loader.SE(),ZE:X.ZE,Yj:isNaN(X.Yj)?null:X.Yj,vS:X.vS,Hs:X.Hs,k_:X.k_,mu:x};return new Rj(X.policy,J,L,X.T,function(q,D){try{a:{var C=q.info.eC[0].L,M=C.info.video?X.videoTrack:X.audioTrack; if(!(q.state>=2)||q.isComplete()||q.HN()||!(!X.loader.xq||X.loader.isSuspended||p7(M)>3)){var y=H0o(q,X.policy,X.T);y===1&&(X.Pl=!0);dPv(X,q,y);if(q.isComplete()||q.E6()&&D<3){if(X.policy.N){var n=q.timing.wU();n.rst=q.state;n.strm=q.xhr.Nm();n.cncl=q.xhr&&q.j7.T?1:0;X.loader.Ni("rqs",n)}q.j9&&X.loader.Ni("sbwe3",{},!0)}if(!X.E6()&&q.state>=2){zyO(X.timing,q,C);var V=X.loader;X.Yj&&q.cw&&V&&(X.Yj=NaN,X.loader.C9(q.cw),X.loader.pL(),X.loader.Ni("cabrUtcSeek",{mediaTimeSeconds:q.cw}));q.ZA&&X.Yj&&q.ZA&& !q.ZA.action&&(X.loader.zp(X.Yj),X.Yj=NaN,X.loader.Ni("cabrUtcSeekFallback",{targetUtcTimeSeconds:X.Yj}));q.oY&&X.loader.UI(q.oY);X.policy.YF&&(X.k_=q.k_);if(q.state===3){jS(M,q);q7(q.info)&&Z$(X,M,C,!0);if(X.K){var H=q.info.W8();H&&X.K.fA(q.info.eC[0].Vl,C.info.id,H)}X.loader.w0()}else if(q.isComplete()&&q.info.eC[0].type===5){if(q.state!==4)q.EY()&&X.loader.handleError(q.J2(),q.JR());else{var O=(q.info.eC[0].L.info.video?X.videoTrack:X.audioTrack).N[0]||null;O&&O instanceof Rj&&O.HN()&&O.P2()}q.dispose()}else{q.EY()|| u0R(X,q);var u;((u=q.j$)==null?0:u.itagDenylist)&&X.loader.C0(q.j$.itagDenylist);if(q.state===4)oHW(X,q),X.L&&j0v(X.L,q.info,X.K);else if(X.policy.Cu&&q.jQ()&&!q.isComplete()&&!oHW(X,q)&&!q.EY())break a;q.EY()&&(b0v(X,q),isNaN(X.Yj)||(X.loader.zp(X.Yj),X.Yj=NaN));X.policy.sH&&!q.isComplete()?S2m(X.loader):X.loader.w0();var S=O0o(q,X.policy,X.T);dPv(X,q,S)}}}}}catch(Y){D=X.aB?1:0,X.aB=!0,q=y1(D),D=nv(Y,D),X.loader.handleError(D.errorCode,D.details,D.severity),q||X.loader.ES()}},x)}; u0R=function(X,J){if(J.RO&&J.state>=2&&J.state!==3){var L=J.xhr.getResponseHeader("X-Response-Itag");if(L){X.logger.debug(function(){return"Applying streamer-selected format "+L}); var x=IGA(X.N,L),Q=J.info.N;Q&&(Q-=x.hL(),x.N=!0,J.info.eC[0].L.N=!1,qW8(J,x.Yx(Q)),AN(X.loader,X.videoTrack,x),q2z(X.videoTrack,x),X.loader.pK(x.info.video.quality),(Q=J.wM())&&x.info.lastModified&&x.info.lastModified!==+Q&&jS(X.videoTrack,J))}else J.RO=!1}}; b0v=function(X,J){var L=J.info.eC[0].L,x=J.J2();if(s_(L.T6.L)){var Q=g.P5(J.N2(),3);X.loader.Ni("dldbrerr",{em:Q||"none"})}Q=J.info.eC[0].Vl;var K=Fn(X.L,J.info.eC[0].T,Q);x==="net.badstatus"&&(X.B+=1);if(J.canRetry()&&Pb8(X.loader)){if(!(J.info.T6.N>=X.policy.qD&&X.K&&J.info.isDecorated()&&x==="net.badstatus"&&X.K.Q9(K,Q))){Q=(L.info.video&&L.T6.N>1||J.q2===410||J.q2===500||J.q2===503)&&!(UZ(X.N.j).size>0)&&!s_(L.T6.L);K=J.JR();var q=L.info.video?X.videoTrack:X.audioTrack;Q&&(K.stun="1");X.loader.handleError(x, K);X.E6()||(Q&&(X.logger.debug(function(){return"Stunning format "+L.info.id}),JN(X.N,L)),jS(q,J),X.loader.w0())}}else q=1,X.K&&J.info.isDecorated()&&x==="net.badstatus"&&X.K.Q9(K,Q)&&(q=0),X.Yq.isLive&&J.J2()==="net.badstatus"&&X.B<=X.policy.Uv*2?(WKA(X.Yq),X.Yq.Bv||X.Yq.isPremiere?Za(X.loader,0,{B9:"badStatusWorkaround"}):X.Yq.T?Za(X.loader,X.Yq.FE,{B9:"badStatusWorkaround", gJ:!0}):XS(X.loader)):X.loader.handleError(x,J.JR(),q)}; oHW=function(X,J){if(X.policy.useUmp&&J.E6())return!1;try{var L=J.info.eC[0].L,x=L.info.video?X.videoTrack:X.audioTrack;if(X.Yq.isManifestless&&x){X.B=0;x.W&&(J.E6(),J.isComplete()||J.jQ(),x.W=!1);J.CM()&&X.loader.JH.US(1,J.CM());var Q=J.O0(),K=J.QG();N7(X.Yq,Q,K)}if(J.info.z0()&&!KY(J.info))for(var q=g.d(J.bW()),D=q.next();!D.done;D=q.next())U7Z(x,D.value);for(X.loader.getCurrentTime();x.N.length&&x.N[0].state===4;){var C=x.N.shift();Nuz(x,C);x.jC=C.Ty()}x.N.length&&Nuz(x,x.N[0]);var M=!!AZ(x);M&& J instanceof la&&(L.info.g2()?bEO(X.timing):ozm(X.timing));return M}catch(y){J=J.JR();J.origin="hrhs";a:{X=X.loader;L=y;if(L instanceof Error){J.msg||(J.msg=""+L.message);J.name||(J.name=""+L.name);if(L instanceof g.Fm&&L.args)for(x=g.d(Object.entries(L.args)),Q=x.next();!Q.done;Q=x.next())K=g.d(Q.value),Q=K.next().value,K=K.next().value,J["arg"+Q]=""+K;g.PM(L);if(L.level==="WARNING"){X.Lm.md(J);break a}}X.handleError("fmt.unplayable",J,1)}return!1}}; cYS=function(X){var J=X.videoTrack.L.index;X.Yc=new yYO({LA:X.policy.LA,LJ:X.policy.W.LJ,vD:J.oF(),Md:function(){return J.Md()}, Bb:function(){return J.Bb()}})}; Z$=function(X,J,L,x){if(!(L.Fy()||L.v$()||L.N||!R0(L.T6,X.policy,X.T,X.loader.nw())||L.info.XE==="f"||X.policy.L)){if(x){x=X.j;var Q=L.info;x=Utm(x,Q.video?x.policy.xC:x.policy.cq,Q.DY)}else x=0;x=L.Yx(x);X=mp(X,x);KY(x)&&P7(J,X);L.N=!0}}; Ji=function(X,J,L,x,Q,K,q,D){g.G.call(this);var C=this;this.loader=X;this.D2=J;this.videoTrack=L;this.audioTrack=x;this.Yq=Q;this.D=K;this.isAudioOnly=q;this.S=D;this.K=Qh;this.Pl=!1;this.logger=new g.OS("sabr");this.W=this.aB=this.Km=!1;this.videoInfos=this.B=this.D.videoInfos;this.N=this.FE=this.D.L;this.L=new sZ(J,K,function(M,y){C.loader.Ni(M,y)}); this.isAudioOnly&&EHY(this,this.Yq.L["0"])}; Y2Z=function(X,J){var L=[];J=g.d(J);for(var x=J.next();!x.done;x=J.next())L.push(g.fv(x.value,X.Yq.Zw));return L}; EHY=function(X,J,L){J!==X.T&&(X.T&&(X.Pl=!0),X.T=J,X.Xi(J,X.videoTrack,L))}; pam=function(X,J){X.logger.debug("setConstraint: "+Ya(J));dr(X.D2)&&(X.aB=J.reason==="m"||J.reason==="l"?!0:!1);J.reason==="m"?J.isLocked()&&hGA(X,J.L):zGW(X,J)?WBP(X,J.K,J.L):X.videoInfos=X.B;X.K=J}; zGW=function(X,J){return X.D2.TF&&J.reason==="b"||X.D2.Ie&&J.reason==="l"||X.D2.Z4?!1:X.D2.Qd?!0:J.reason==="l"||J.reason==="b"||J.reason==="o"}; rYI=function(X,J){return J.isLocked()&&X.L.K||X.K===void 0?!1:J.equals(X.K)}; vHm=function(X,J){var L,x=(L=X.T)==null?void 0:L.info.video.qualityOrdinal;return X.Pl?!0:X.T?J!==x?!0:!X.L.K||X.D2.s1&&X.L.L===X.T.info.itag?!1:!0:!1}; hGA=function(X,J){var L=X.L.L;if(L){X.videoInfos=X.B;var x=g.Ou(X.videoInfos,function(Q){return Q.id===L}); x&&x.video.qualityOrdinal===J?X.videoInfos=[x]:(x=X.videoInfos.map(function(Q){return Q.id}),X.loader.Ni("sabrpf",{pfid:""+L, vfids:""+x.join(".")}),WBP(X,J,J),mY(X.L,""))}else WBP(X,J,J)}; WBP=function(X,J,L){X.videoInfos=X.B;X.videoInfos=g.SP(X.videoInfos,function(x){return x.video.qualityOrdinal>=J&&x.video.qualityOrdinal<=L})}; jGW=function(X,J,L){if(X.S){var x=g.SP(X.N,function(Q){return Q.id===X.S}); return Lr(x,L).includes(J)}x=g.SP(X.N,function(Q){var K;return!((K=Q.OH)==null||!K.isDefault)}); return x.length>0?Lr(x,L).includes(J):Lr(X.N,L).includes(J)}; Lr=function(X,J){return X.map(function(L){return Bx(g.fv(L,J))})}; TyA=function(X){var J;if((J=X.K)==null?0:J.isLocked())return X.videoInfos;var L=UZ(X.L);J=g.SP(X.videoInfos,function(x){return x.DY>X.D2.DY?!1:!L.has(x.id)}); l9S(X.L)&&(J=g.SP(J,function(x){return x.video.width<=854&&x.video.height<=480})); return J}; f6Y=function(X,J,L){var x=X.Yq,Q=X.Lm.getVideoData(),K=X.cj,q=JeO({TH:Q.G(),Lm:X.Lm,fP:X.fP,D2:X.D2,m8:X.m8,VV:X.VV,KG:X.KG,FS:X.FS,dc:X.dc,isPrefetch:X.isPrefetch,zO:X.zO,sabrLicenseConstraint:Q.sabrLicenseConstraint,KS:X.KS,aP:X.aP,dH:X.dH,I6:X.I6,vp:!!K,authorizedFormats:Q.authorizedFormats}),D=uN(Q,X.mu,X.nextRequestPolicy,X.tL,X.w_,X.zT,X.Up);L&&J&&(L=D.LS?D.LS.map(function(n){return n.type}):[],J("sabr",{stmctxt:L.join("_"), unsntctxt:D.DA?D.DA.join("_"):""}));J=X.tD;L=X.XR;if(L===void 0&&J===void 0){var C;L=GlR(x.Zw,(C=X.Pc)==null?void 0:C.video);var M;J=GlR(x.Zw,(M=X.Pc)==null?void 0:M.audio)}if(Q.vS)var y=Q.vS;Q={NG:q,WK:X.WK,tD:J,XR:L,cj:K,videoPlaybackUstreamerConfig:y,fR:D};X.IV&&(Q.IV=X.IV);Q.hP=X.hP;Q.iX=x.bB;return Q}; GlR=function(X,J){return J?[g.fv(J.info,X)]:[]}; xk=function(X,J,L){var x=this;this.requestType=X;this.T6=J;this.P4=L;this.K=null;this.Zh={O7Y:function(){var Q;return(Q=x.data)==null?void 0:Q.isPrefetch}, w_:function(){var Q;return(Q=x.data)==null?void 0:Q.w_}}}; wxW=function(X,J,L){J=Fa(X.T6,eGv(X,J,L),J);X.Mn()&&J.set("probe","1");return J}; eGv=function(X,J,L){X.Ms===void 0&&(X.Ms=X.T6.Ms(J,L));return X.Ms}; FB8=function(X){var J,L;return((J=X.L)==null?void 0:(L=J.NG)==null?void 0:L.Dq)||0}; l6z=function(X){var J,L;return!!((J=X.L)==null?0:(L=J.NG)==null?0:L.KS)}; RG8=function(X){var J={},L=[],x=[];if(!X.data)return J;for(var Q=0;Q=0&&(J in X.L||(X.L[J]=new sGo),X.L[J].JK(L,x))}; Z0A=function(X,J,L,x,Q){var K=(0,g.uT)(),q=Q?Q(J):void 0,D;Q=(D=q==null?void 0:q.Fx)!=null?D:1;if(Q!==0){var C;D=(C=q==null?void 0:q.profile)!=null?C:L;klm(X,D,K-x,Q)}return J}; AYv=function(X,J,L,x,Q){if(J&&typeof J==="object"){var K=function(q){return Z0A(X,q,L,x,Q)}; if(PC(J))return J.then(K);if(St(J))return z6(J,K)}return Z0A(X,J,L,x,Q)}; XeP=function(){}; Q$=function(X,J){this.L=X;this.cipher=this.L.exports.AES128CTRCipher_create(J.byteOffset)}; xv8=function(X,J){return ph(JD8,function(){var L=this;return function Q(){var K,q,D;return Gm(Q,function(C){switch(C.K){case 1:g.bv(C,2);if(!L.T)throw"wasm.ps.ns";K=X;q=e8;return to(C,rK(Lkz(L,J)),4);case 4:D=q(C.L);if(!D)throw"wasm.ps.um";try{return C.return(new WebAssembly.Instance(D,K))}catch(M){}return to(C,rK(WebAssembly.instantiate(D,K)),5);case 5:return C.return(C.L);case 2:g.WW(C),g.pR(C,0)}})}()})}; i48=function(X,J){X.L||(X.L=z6(Y5(function(){return fetch(J)}),function(L){return L.arrayBuffer()}),WC(X.L,function(L){X.L=void 0; throw"wasm.ps.f: "+L;}))}; Lkz=function(X,J){if(X.K)return X.K;X.K=Qcm(X,J);WC(X.K,function(L){X.K=void 0;throw"wasm.ps.c: "+L;}); return X.K}; Qcm=function(X,J){return ph(X,function(){var L=this;return function Q(){var K,q,D,C,M,y,n,V,H,O,u,S,Y,h;return Gm(Q,function(W){switch(W.K){case 1:g.bv(W,2);K=[];q=window.ywc;if(!q){W.fm(4);break}D=q[J];if(!D){W.fm(4);break}if(D.mod)return W.return(D.mod);if(!D.modP){W.fm(6);break}g.oz(W,7);C=e8;return to(W,rK(D.modP),9);case 9:return W.return(C(W.L));case 7:g.EA(W),K.unshift("pcm");case 6:if(D.bin){L.L=cC(D.bin);W.fm(4);break}if(!D.binP){W.fm(4);break}g.oz(W,12);M=bP;y=cC;n=e8;return to(W,rK(D.binP), 14);case 14:L.L=y.call(M,n(W.L));g.PW(W,4);break;case 12:g.EA(W),L.L=void 0,K.unshift("pfb");case 4:if(!L.L){W.fm(15);break}g.oz(W,16);V=e8;return to(W,rK(L.L),18);case 18:H=V(W.L);if(L.N)try{return W.return(new WebAssembly.Module(H))}catch(T){L.N=!1,K.unshift("f0cs")}O=e8;return to(W,rK(WebAssembly.compile(H)),19);case 19:return W.return(O(W.L));case 16:g.EA(W),L.L=void 0,K.unshift("f0ca");case 15:return g.oz(W,20),i48(L,J),u=e8,to(W,rK(L.L),22);case 22:S=u(W.L);if(L.N)try{return W.return(new WebAssembly.Module(S))}catch(T){L.N= !1,K.unshift("f1cs")}Y=e8;return to(W,rK(WebAssembly.compile(S)),23);case 23:return W.return(Y(W.L));case 20:h=g.EA(W),L.L=void 0,L.T=!1,K.unshift("f1ca: "+h);case 21:throw"["+K.map(function(T){return'"'+T+'"'}).join(", ")+"]"; case 2:g.WW(W),g.pR(W,0)}})}()})}; Kko=function(){}; qTZ=function(){var X=this;this.proc_exit=function(){}; this.fd_write=function(J,L,x){if(!X.exports)return 1;J=new Uint32Array(X.exports.memory.buffer,L,x*2);L=[];for(var Q=0;Q0;C--)L.push(D)}L.length!==q?J.error=!0:(K=L.slice(-K),L.length=Q,zQZ(J,L,K));break;case 1:zQZ(J,Oi,STI);break;case 0:WkR(J, J.L&7);L=G4(J,16);Q=G4(J,16);(L^Q)!==65535&&(J.error=!0);J.output.set(J.data.subarray(J.K,J.K+L),J.N);J.K+=L;J.N+=L;break;default:J.error=!0}X.N>X.output.length&&(X.output=new Uint8Array(X.N*2),X.N=0,X.K=0,X.T=!1,X.L=0,X.register=0)}X.output.length!==X.N&&(X.output=X.output.subarray(0,X.N));return X.error?new Uint8Array(0):X.output}; zQZ=function(X,J,L){J=YT8(J);L=YT8(L);for(var x=X.data,Q=X.output,K=X.N,q=X.register,D=X.L,C=X.K;;){if(D<15){if(C>x.length){X.error=!0;break}q|=(x[C+1]<<8)+x[C]<>=7;M<0;)M=J[(q&1)-M],q>>=1;else q>>=M&15;D-=M&15;M>>=4;if(M<256)Q[K++]=M;else if(X.register=q,X.L=D,X.K=C,M>256){q=wW[M];q+=G4(X,aD[M]);C=hQv(X,L);D=ti[C];D+=G4(X,Pkz[C]);if(rDW&&qL.length&&(X.error=!0);X.register|=(L[x+1]<<8)+L[x]<=0)return WkR(X,L&15),L>>4;for(WkR(X,7);L<0;)L=J[G4(X,1)-L];return L>>4}; G4=function(X,J){for(;X.L=X.data.length)return X.error=!0,0;X.register|=X.data[X.K++]<>=J;X.L-=J;return L}; WkR=function(X,J){X.L-=J;X.register>>=J}; YT8=function(X){for(var J=[],L=g.d(X),x=L.next();!x.done;x=L.next())x=x.value,J[x]||(J[x]=0),J[x]++;var Q=J[0]=0;L=[];var K=0;x=0;for(var q=1;q7&&(K+=J[q]);for(Q=1;Q>C&1;D=K<<4|q;if(q<=7)for(C=1<<7-q;C--;)x[C<>=7;q--;){x[C]||(x[C]=-J,J+=2);var M=Q&1;Q>>=1;C=M-x[C]}x[C]=D}}return x}; v3o=function(X){var J,L,x,Q,K,q,D;return g.p(function(C){switch(C.K){case 1:if(!("DecompressionStream"in window))return C.return(g.pe8(new g.cDA(X)));J=new DecompressionStream("gzip");L=J.writable.getWriter();L.write(X);L.close();x=J.readable.getReader();Q=new iE([]);case 2:return g.z(C,x.read(),5);case 5:K=C.L;q=K.value;if(D=K.done){C.fm(4);break}Q.append(q);C.fm(2);break;case 4:return C.return(gk(Q))}})}; fr=function(X,J){this.L=X;this.K=J}; jco=function(X){return WC(WC(Y5(function(){return z6(X.K,function(J){return X.B6(X.L,J)})}),function(){return X.EB(X.L)}),function(){return X.Zg(X.L)})}; TTI=function(X){S2.call(this,"onesie");this.kF=X;this.L={};this.N=!0;this.T=null;this.queue=new b4R(this);this.j={}}; GTZ=function(X){var J=X.queue;J.L.length&&J.L[0].isEncrypted&&!J.K&&(J.L.length=0);J=g.d(Object.keys(X.L));for(var L=J.next();!L.done;L=J.next()){L=L.value;var x=X.L[L];if(!x.mD){var Q=X.queue;Q.L.push({videoId:x.videoId,formatId:L,isEncrypted:!1});Q.K||Hb(Q)}}}; FkP=function(X,J){var L=J.totalLength,x=!1;switch(X.T){case 0:X.kF.Y("html5_future_onesie_ump_handler_on_player_response")?WC(z6(f0m(X,J,X.N),function(Q){eQP(X.kF,Q)}),function(Q){X.kF.fail(Q)}):X.Rj(J,X.N).then(function(Q){eQP(X.kF,Q)},function(Q){X.kF.fail(Q)}); break;case 2:X.TR("ormk");J=gk(J);X.queue.decrypt(J);break;default:x=!0}X.kF.T7&&X.kF.Ni("ombup","id.11;pt."+X.T+";len."+L+(x?";ignored.1":""));X.T=null}; l0Y=function(X){if(X.I1!==1)throw new g.Mh("onesie.response.badproxystatus",{st:X.I1,webcrypto:!!Dy(),textencoder:!!g.Ao.TextEncoder});if(X.httpStatus!==200)throw new g.Mh("onesie.response.badstatus",{st:X.httpStatus});}; f0m=function(X,J,L){return ph(X,function(){var x=this;return function K(){var q,D,C,M,y,n,V,H,O,u,S,Y,h,W,T,l,Jo,U,QP,Iz,qS,$e;return Gm(K,function(k){switch(k.K){case 1:g.bv(k,2);x.kF.Rj();q=gk(J);g.oz(k,4,5);if(!L){k.fm(7);break}y=e8;return to(k,rK(RQ8(x.kF,q,x.iv)),8);case 8:D=y(k.L);case 7:if(!x.kF.enableCompression){k.fm(9);break}g.oz(k,10);V=e8;var cW=(n=D)!=null?n:q;cW=jco(new fr(cW,x.kF.G().Lp));return to(k,rK(cW),12);case 12:C=V(k.L);g.PW(k,9,4);break;case 10:throw H=g.EA(k,4),{name:"DecompressError", message:""+H};case 9:M=Es((u=(O=C)!=null?O:D)!=null?u:q,y_I);case 5:g.WW(k,0,2);if(Y=(S=x.kF.G())==null?void 0:S.Bl)((h=D)==null?void 0:h.buffer)===Y.exports.memory.buffer&&Y.free(D.byteOffset),((W=C)==null?void 0:W.buffer)===Y.exports.memory.buffer&&Y.free(C.byteOffset);g.pR(k,6);break;case 4:throw l=T=g.EA(k),new g.Mh("onesie.response.parse",{name:(Iz=l.name)!=null?Iz:"unknown",message:(qS=l.message)!=null?qS:"unknown",wasm:((Jo=x.kF.G())==null?0:Jo.Bl)?((U=x.kF.G())==null?0:(QP=U.Bl)==null?0:QP.L)? "1js":"1":"0",enc:x.N,gz:x.kF.enableCompression,webcrypto:!!Dy()});case 6:return l0Y(M),$e=g.nw(M.body),k.return($e);case 2:g.WW(k),g.pR(k,0)}})}()})}; BTR=function(X){return new Promise(function(J){setTimeout(J,X)})}; scP=function(X,J){var L=X.G();L=X.ac&&L.Y("html5_onesie_preload_use_content_owner");var x=X.Ux,Q=Ha(J.m9.experiments,"debug_bandaid_hostname");if(Q)J=y$(J,Q);else if((L===void 0?0:L)&&(x==null?0:x.url)&&!J.K){var K=BK(new g.lI(x.url));J=y$(J,K)}else J=(K=J.L.get(0))==null?void 0:K.location.clone();if(J&&X.videoId){K=dy(X.videoId);X=[];if(K)for(K=g.d(K),L=K.next();!L.done;L=K.next())X.push(L.value.toString(16).padStart(2,"0"));J.set("id",X.join(""));return J}}; NTR=function(X,J,L){L=L===void 0?0:L;var x,Q;return g.p(function(K){if(K.K==1)return x=[],x.push(J.load()),L>0&&x.push(BTR(L)),g.z(K,Promise.race(x),2);Q=scP(X,J);return K.return(Q)})}; Uve=function(X,J,L,x){x=x===void 0?!1:x;X.set("cpn",J.clientPlaybackNonce);X.set("opr","1");var Q=J.G();X.set("por","1");Dy()||X.set("onem","1");J.startSeconds>0&&X.set("osts",""+J.startSeconds);x||(Q.Y("html5_onesie_disable_partial_segments")&&X.set("oses","1"),J=Q.Y("html5_gapless_onesie_no_media_bytes")&&Or(J)&&J.ac,L&&!J?(J=L.audio,X.set("pvi",L.video.join(",")),Q.Y("html5_onesie_disable_audio_bytes")||X.set("pai",J.join(",")),VG||X.set("osh","1")):(X.set("oad","0"),X.set("ovd","0"),X.set("oaad", "0"),X.set("oavd","0")))}; mvP=function(X,J,L,x,Q){Q=Q===void 0?!1:Q;var K="https://youtubei.googleapis.com/youtubei/"+J.M0.innertubeApiVersion+"/player",q=[{name:"Content-Type",value:"application/json"}];x&&q.push({name:"Authorization",value:"Bearer "+x});q.push({name:"User-Agent",value:g.vc()});g.ly("EOM_VISITOR_DATA")?q.push({name:"X-Goog-EOM-Visitor-Id",value:g.ly("EOM_VISITOR_DATA")}):(L=L.visitorData||g.ly("VISITOR_DATA"))&&q.push({name:"X-Goog-Visitor-Id",value:L});(L=g.ly("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&q.push({name:"X-YouTube-Lava-Device-Context", value:L});(J=Ha(J.experiments,"debug_sherlog_username"))&&q.push({name:"X-Youtube-Sherlog-Username",value:J});X=Os(JSON.stringify(X));return{url:K,ML:q,postBody:X,rjl:Q,s3:Q}}; kTm=function(X,J,L,x,Q,K,q){var D=X.Cb,C=X.Wr;X=X.SdI;var M=D!==void 0&&C!==void 0,y=x.getVideoData(),n,V=J.L.encryptedClientKey;J=M?J.iv:void 0;M=va(L.schedule,!0);Q=Q||!!Dy()&&M>1572864;return{innertubeRequest:{s26:X,g4:D,Wr:C,encryptedClientKey:V,iv:J,oUl:!0,PZ:!0,eP:"DecompressionStream"in window||!Q,rJH:L.experiments.Mi("html5_use_jsonformatter_to_parse_player_response")},NG:JeO({TH:L,Lm:x,fP:y.startSeconds*1E3}),onesieUstreamerConfig:K,RY:q,fR:uN(y),reloadPlaybackParams:(n=y.yS)==null?void 0: n.reloadPlaybackParams}}; Z4v=function(X,J,L,x,Q,K){var q=g.Us(X,MNS,X.s3?void 0:L.Bl);if(!X.s3){if(L.Bl){var D;try{J.K||(J.K=new $k(J.L.L,J.T,J.B));var C=D=J.K.K(q,J.iv);(0,g.uT)();var M=J.j,y=J.iv,n=M.Te(J.L.K),V=M.Te(y),H=new Uint8Array(M.exports.memory.buffer,M.malloc(32),32);M.exports.Sha256Hmac(n.byteOffset,n.byteLength,V.byteOffset,V.byteLength,C.byteOffset,C.byteLength,H.byteOffset);M.free(n.byteOffset);M.free(V.byteOffset);var O=M.Uf(H);var u;var S=(u=L.Bl.Uf(D))!=null?u:D;D=void 0}catch(Y){D&&L.Bl.free(D.byteOffset)}}S|| (S=J.encrypt(q));O||(O=S,(0,g.uT)(),O=iLv(new xZP(J.L.K),O,J.iv))}return kTm(S&&O?{Cb:S,Wr:O}:{SdI:q},J,L,x,!!X.s3,Q,K)}; ADz=function(X,J,L,x,Q,K){var q,D,C;return g.p(function(M){if(M.K==1)return q=g.Us(X,MNS),g.z(M,VHv(J,q),2);if(M.K!=3)return D=M.L,g.z(M,H4R(J,D),3);C=M.L;return M.return(kTm({Cb:D,Wr:C},J,L,x,!!X.s3,Q,K))})}; FS=function(X,J){g.G.call(this);var L=this;this.Lm=X;this.playerRequest=J;this.logger=new g.OS("onesie");this.xhr=null;this.state=1;this.nu=new Vy;this.aA=!1;this.playerResponse="";this.Ml=new Kn(this);this.Zp=new TTI(this);this.nj="";this.MY=this.W6=!1;this.JF="";this.enableCompression=this.xe=this.P$=!1;this.wj=[];this.oS=-1;this.hw=0;this.m9=this.Lm.G();this.videoData=this.Lm.getVideoData();this.T7=this.m9.YH();this.h3=this.m9.eX;this.Kr=new Cr(this.h3.L,this.m9.Lp,Byo(this.m9));this.pR=this.m9.Y("html5_onesie_check_timeout"); this.Jy=new g.sn(this.QW,500,this);this.au=new g.sn(this.UJ,1E4,this);this.hG=new g.sn(function(){if(!L.isComplete()){var x=eX(L);L.fail(new g.Mh("net.timeout",x))}},1E3); this.dV=new g.sn(this.miY,2E3,this);this.lR=this.Lm.SE();this.sO=this.Y("html5_onesie_wait_for_media_availability");g.f(this.videoData,this);g.f(this,this.Jy);g.f(this,this.au);g.f(this,this.dV);g.f(this,this.Kr);X=aG();VG&&X&&(this.uZ=new Map);this.hW=new Map;this.n8=new Map;this.N3=new Map;this.nM=new Map}; V$=function(X,J){var L;return(L=X.uZ)==null?void 0:L.get(J)}; RQ8=function(X,J,L){var x;return g.p(function(Q){if(Q.K==1)return X.TR("oprd_s"),Xde(X)?g.z(Q,O4z(X.Kr,J,L),3):(x=X.Kr.decrypt(J,L),Q.fm(2));Q.K!=2&&(x=Q.L);X.TR("oprd_c");return Q.return(x)})}; JvW=function(X){return X.Y("html5_onesie_host_probing")||X.T7?VG:!1}; eQP=function(X,J){X.TR("oprr");X.playerResponse=J;X.xe||(X.sO=!1);ld(X)}; ld=function(X){if(!X.playerResponse)return!1;if(X.P$)return!0;var J=X.videoData.Y("html5_onesie_audio_only_playback")&&al(X.videoData);if(X.uZ&&X.sO){if(!X.uZ.has(X.nj))return!1;var L=X.uZ.get(X.nj),x;if(x=L){x=!1;for(var Q=g.d(L.xF.keys()),K=Q.next();!K.done;K=Q.next())if(K=L.xF.get(K.value))for(var q=g.d(K.Ho),D=q.next();!D.done;D=q.next())D.value.Zo>0&&(K.g2?x=!0:J=!0);x=!(J&&x)}if(x)return!1}X.TR("ofr");X.nu.resolve(X.playerResponse);if(!X.pR){var C;(C=X.hG)==null||C.start();X.au.start()}return X.P$= !0}; xdY=function(X){if(X.uZ&&!X.Y("html5_onesie_media_capabilities")){X.TR("ogsf_s");var J=Nfo(X.Lm.getVideoData(),function(x,Q){X.Ni(x,Q)}),L=L_S(X.Lm); J.video=Tfz(L,J.video);X.TR("ogsf_c");if(J.video.length)return J;X.Ni("ombspf","l."+L.K+";u."+L.L+";o."+L.N+";r."+L.reason)}}; Xde=function(X,J){return X.Y("html5_onesie_sync_request_encryption")||(J==null?0:J.s3)||g.yH(X.m9)&&X.Y("html5_embed_onesie_use_sync_encryption")?!1:!!Dy()}; eX=function(X){if(!X.AP)return{};var J=X.AP.wU(),L;J.d=(L=X.AP.gI)==null?void 0:L.DH();J.shost=X.LC;J.ty="o";return J}; iIR=function(X,J){var L,x;(x=(X=(L=X.uZ)==null?void 0:L.get(J))==null)||(J=X.N?!1:X.N=!0,x=!J);return!x}; QlA=function(X,J,L,x,Q,K,q,D,C,M,y){g.G.call(this);var n=this;this.Lm=X;this.loader=J;this.policy=L;this.audioTrack=x;this.videoTrack=Q;this.Yq=K;this.zi=q;this.J0=D;this.N=C;this.timing=M;this.Km=y;this.L=[];this.j={};this.Hl=this.SC=!1;this.T=this.jC=this.D=this.bB=this.dc=0;this.S=null;this.Pl={hP:[],WK:[]};this.FE={hP:[],WK:[]};this.W=null;this.B=[];this.Zh={gAi:function(){return n.L}, o_E:function(){return n.j}, UIl:function(){n.L.length=0}, D8q:function(){return n.videoData.O6}, cll:function(){return n.D}, Xh9:function(V){n.D=V}, ReE:function(V){n.T=V}, W7:function(V){n.W=V}, n9:function(V){n.B=V}}; this.videoData=this.Lm.getVideoData();this.policy.jl&&(this.Bl=new sB(this.loader,this.policy,this.zi),g.f(this,this.Bl))}; IXO=function(X,J){J=J===void 0?!1:J;if(K_e(X)){X.policy.B&&X.loader.Ni("sabrcrq",{create:1});var L=new xk(0,X.Yq.S,X);X.policy.YU>0&&X.T++;J=qrA(X,L,J);X.L.push(J);var x;(x=X.Bl)==null||nHv(x,X.Yq.S)}}; $de=function(X,J){var L=gUI(X);if(X.policy.HO){var x=X.Pl;var Q=X.FE}else x=RD(X,X.audioTrack),Q=RD(X,X.videoTrack);var K=[].concat(g.nR(x.hP),g.nR(Q.hP));Bb(X)&&K.push.apply(K,g.nR(X.B));var q=[].concat(g.nR(x.WK),g.nR(Q.WK)),D=X.loader.Ka();if(X.policy.N8&&!X.videoData.isLivePlayback){var C=X.videoData.lengthSeconds*1E3;L>=C&&X.loader.Ni("invalidSabrCmt",{cmt:L,vd:C})}var M,y;C=X.Lm;var n=X.Yq,V=X.K,H=X.videoData.O6,O=X.policy,u=X.loader.vg,S=tj8(X.loader)*1E3,Y=(M=X.gI)==null?void 0:M.KG;M=(y= X.gI)==null?void 0:y.FS;var h;y=Number((h=X.N.T)==null?void 0:h.info.itag)||0;var W;h=Number((W=X.N.j)==null?void 0:W.info.itag)||0;J={Lm:C,Yq:n,hP:K,WK:q,fP:L,nextRequestPolicy:V,tL:H,D2:O,m8:u,VV:S,KG:Y,FS:M,dc:X.dc,isPrefetch:J||X.loader.isSuspended,p_:y,Wp:h,mu:D,Up:X.Lm.l_()};L=X.loader.xV();K=dy(L);L&&(J.w_=K);if(L=X.Lm.di())J.KS=L*1E3;var T;L=X.N;K=L.Km;if(((T=L.D2)==null?0:dr(T))&&!K)for(T=g.d(L.N),q=T.next();!q.done;q=T.next())if(q.value.OH){K=!0;break}T=dr(L.D2)&&!K?[]:Y2Z(L,L.N);J.tD=T; T=X.N;dr(T.D2)&&!T.aB?T=[]:(L=TyA(T),L.length===0&&(L=T.B),T=Y2Z(T,L));J.XR=T;J.cj=Bb(X)?[X.W]:void 0;X.policy.Bw&&(J.dH=DdZ(X.loader,X.audioTrack),J.I6=DdZ(X.loader,X.videoTrack));if(X.policy.K){T=X.loader.getCurrentTime();x=si(X,x.hP,T);Q=si(X,Q.hP,T);Q=Math.min(x,Q);Bb(X)&&(x=si(X,X.B,T),X.Lm.YH()&&x0&&X.L[0].Ip()&&(J.zT=X.L[0].F5());return J}; gUI=function(X){var J,L=X.policy.j&&((J=X.loader)==null?void 0:J.Kz());J=X.loader.getCurrentTime()||0;J=ClO(X,J);var x=X.loader.W4()||0;J+=x;x=FQ(X.videoData)||g.ew(X.videoData);var Q=0;L?(x&&(Q=Number.MAX_SAFE_INTEGER),X.videoData.Km&&(Q=Math.ceil(X.videoData.FE*1E3))):Q=Math.ceil(J*1E3);return Math.min(Number.MAX_SAFE_INTEGER,Q)}; Bb=function(X){return X.policy.oT&&!!X.W}; ClO=function(X,J){if(X.loader.isSeeking())return J;var L=X.Lm.tP();if(!L)return J;L=L.SW();if(L.length===0||kr(L,J))return J;if(!eS(X.videoTrack,J)&&!eS(X.audioTrack,J))return X.loader.Ni("sundrn",{b:0,lt:J}),J;for(var x=J,Q=Infinity,K=0;KJ)){var q=J-L.end(K);q=20)?(X.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),J):x}; si=function(X,J,L){X=X.loader.W4()||0;return NW(J,(L+X)*1E3)/1E3+L}; K_e=function(X){if(X.policy.YU>0){var J=Math.floor((0,g.uT)()/1E4);if(J===X.jC){if(X.T>=X.policy.YU){if(X.T===X.policy.YU){var L={reason:"toomanyrequests"};L.limit=X.T;X.loader.handleError("player.exception",L);X.T+=1}return!1}}else X.jC=J,X.T=0}if(X.loader.isSuspended&&X.loader.va)return!1;if(X.aB&&(0,g.uT)()0&&(!X.policy.D||X.L.length!==1||!X.L[0].Ip()))return!1;var x;if((x=X.Yq.S)==null||!R0(x,X.policy,X.j,X.loader.nw())||TV(X.audioTrack)&&TV(X.videoTrack))return!1; if(Ui(X,X.audioTrack)&&Ui(X,X.videoTrack))return X.policy.N&&X.loader.Ni("sabrHeap",{a:""+zV(X.audioTrack),v:""+zV(X.videoTrack)}),!1;if(J=X.policy.K){J=!1;if(X.Km.K===2)J=!0;else if(X.Km.K===3){gUI(X);X.loader.W4();var Q=EB(X.audioTrack,X.loader.isSeeking()).hP;x=EB(X.videoTrack,X.loader.isSeeking()).hP;var K=X.loader.getCurrentTime()||0;Q=si(X,Q,K);x=si(X,x,K);x=Math.min(Q,x);K=X.Km;x>=K.j?(K.Ni("sdai",{haltrq:x,est:K.j}),x=!0):x=!1;x&&(J=!0)}J&&X.policy.B&&X.loader.Ni("sabrcrq",{waitad:1})}if(J)return!1; X.policy.HO&&(X.Pl=RD(X,X.audioTrack),X.FE=RD(X,X.videoTrack));if(!X.K)return X.policy.B&&X.loader.Ni("sabrcrq",{nopolicy:1}),!0;if(X.Lm.di())return X.policy.B&&X.loader.Ni("sabrcrq",{utc:1}),!0;if(X.N.W)return X.policy.B&&X.loader.Ni("sabrcrq",{audio:1}),!0;if(!X.K.targetAudioReadaheadMs||!X.K.targetVideoReadaheadMs)return X.policy.B&&X.loader.Ni("sabrcrq",{noreadahead:1}),!0;if(X.policy.j&&X.loader.Kz())return X.policy.B&&X.loader.Ni("sabrcrq",{seekToHead:1}),!0;J=Math.min(N6(X.loader,X.audioTrack)* 1E3,X.K.targetAudioReadaheadMs);x=Math.min(N6(X.loader,X.videoTrack)*1E3,X.K.targetVideoReadaheadMs);var q=Math.min(J,x);K=p7(X.audioTrack,!0)*1E3;Q=p7(X.videoTrack,!0)*1E3;var D=X.Lm.getCurrentTime()*1E3;if(X.policy.HO){var C=NW(X.Pl.hP,D);var M=NW(X.FE.hP,D)}else C=K,M=Q;var y=CJ||x>=0&&Q.o_>x+1)break;L=Math.max(L,Q.startTimeMs+Q.durationMs);x=Math.max(x,Q.KW)}return Math.max(0,L-J)}; qrA=function(X,J,L){var x={zi:X.zi,e4:function(C,M){X.Lm.qB(C,M)}, z0:X.policy.L1,Ba:X.policy.N};X.zi.K.B&&(x.dg=(X.videoTrack.L.info.DY||0)+(X.audioTrack.L.info.DY||0));X.policy.tb&&(x.vD=X.audioTrack.L.index.oF(),x.z0=!1);var Q=eGv(J,X.policy,X.j)?2:1;Q!==X.D&&(X.D=Q,yvZ(X));L=$de(X,L);if(X.policy.D&&X.policy.N&&L.tL){for(var K=Q="",q=g.d(L.tL),D=q.next();!D.done;D=q.next())D=D.value,X.videoData.sabrContextUpdates.has(D)||X.policy.D&&L.zT&&L.zT.type===D?Q+="_"+D:K+="_"+D;X.loader.Ni("sabrbldrqs",{ctxts:Q,misctxts:K})}!J.setData(L,X.policy,X.j)&&X.policy.D&&X.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);x=new rr(X.policy,J,X.Yq,X.j,X,x,X.loader.SE());vE(X.timing);X.policy.B&&X.loader.Ni("sabrcrq",{rn:x.FL(),probe:J.Mn()});return x}; kk=function(X,J){if(J.E6()||X.E6())X.policy.RV||(X.policy.j?mV(X.loader):X.loader.w0());else{if(X.policy.N&&J.isComplete()&&J instanceof rr){var L=X.loader,x=L.Ni,Q,K,q=Object.assign(J.AP.wU(),{rst:J.state,strm:J.xhr.Nm(),d:(Q=J.AP.gI)==null?void 0:Q.DH(),cncl:J.xhr&&J.j7.T?1:0,rqb:J.a8,cwt:J.R9,swt:(K=J.Rv)==null?void 0:K.NV});Q=Object.assign(RG8(J.info),q);x.call(L,"rqs",Q)}if(J.isComplete()&&J.Mn()&&J instanceof rr)X.policy.t_?J.GM()?(J.dispose(),X.L.length===0?X.loader.w0():(X=X.L[0],X instanceof rr&&X.HN()&&X.P2())):J.EY()&&X.loader.handleError(J.J2(),J.JR()):(J.dispose(),X.loader.w0());else{if(J.SA())J instanceof rr&&zyO(X.timing,J),yvZ(X),nUA(X);else if(J.EY())L=X.Lm.di(),J instanceof rr&&l6z(J.info)&&L&&X.loader.zp(L),J instanceof FS?X.L.pop():(L=1,J.canRetry()&&Pb8(X.loader)&&(Vwm(X,J),L=0),X.loader.handleError(J.J2(),J.JR(),L));else{if(X.loader.isSuspended&&!J.isComplete())return;nUA(X)}J.E6()||J instanceof FS||(J.isComplete()?L=O0o(J,X.policy,X.j):(L=H0o(J,X.policy,X.j),L===1&&(X.SC= !0)),L!==0&&(x=new xk(1,J.info.T6),x.Ms=L===2,qrA(X,x)));X.policy.sH&&!J.isComplete()?S2m(X.loader):X.loader.w0()}}}; nUA=function(X){for(;X.L.length&&X.L[0].P6(X.xU());){var J=X.L.shift();HIZ(X,J)}X.L.length&&HIZ(X,X.L[0])}; HIZ=function(X,J){J instanceof rr&&(X.vl=J);var L=new Set(J.Yh(X.xU()));L=g.d(L);for(var x=L.next();!x.done;x=L.next()){var Q=x.value;if(!(x=!(J instanceof FS))){x=X.N;var K=x.Yq.Zw,q=Lr(x.videoInfos,K);K=jGW(x,Q,K);var D=q.includes(Q);!x.D2.kP||K||D||x.loader.Ni("sabrcpf",{fid:""+Q,vfids:""+q.join("."),said:x.S||""});x=K||q.includes(Q)}if(x&&(x=J.Gm(Q,X.xU()),q=X.policy.oT&&l2(x[0].L.info.mimeType),(!(!q&&X.policy.RE&&x.length>0&&(x[0].L.info.g2()?p7(X.audioTrack):p7(X.videoTrack))>3)||J.isComplete())&& J.jQ(Q,X.xU())))for(Q=J.bW(Q,X.xU()),Q=g.d(Q),K=Q.next();!K.done;K=Q.next())if(K=K.value,X.policy.N&&J instanceof FS&&X.loader.Ni("omblss",{s:K.info.gQ()}),q)D=X.timing,D.Km||(D.Km=(0,g.uT)(),g.Bv("fcb_r",D.Km,D.L)),D=X,D.videoData.Zw()&&D.W&&Bx(D.W)===Bx(g.fv(K.info.L.info,D.Yq.Zw))&&D.Lm.publish("sabrCaptionsDataLoaded",K,D.n9.bind(D));else{D=K.info.L.info.g2();var C=K.info.L;if(D){var M=void 0;var y=X.N,n=(M=J.fT(X.xU()))==null?void 0:M.token;y.W&&C!==y.j?M=!0:(y.W=!1,C!==y.j&&(y.j=C,y.Xi(C,y.audioTrack, n)),M=!1);if(M)continue}else M=void 0,EHY(X.N,C,(M=J.fT(X.xU()))==null?void 0:M.token);M=D?X.audioTrack:X.videoTrack;J instanceof FS&&(M.W=!1,J instanceof FS&&(D?bEO(X.timing):ozm(X.timing)));try{c7(M,x,K)}catch(V){K=nv(V),X.loader.handleError(K.errorCode,K.details,K.severity),M.ES(),X.wB(!1,"pushSlice"),mV(X.loader)}}}}; Vwm=function(X,J){X.policy.D?X.L.splice(X.L.indexOf(J)).forEach(function(L){L.dispose()}):(X.L.pop(),J==null||J.dispose())}; OIP=function(X,J,L){for(var x=[],Q=0;Q0)for(var J=g.d(X.videoData.sabrContextUpdates.keys()),L=J.next();!L.done;L=J.next()){L=L.value;var x=void 0;((x=X.videoData.sabrContextUpdates.get(L))==null?0:x.sendByDefault)&&X.videoData.O6.add(L)}if(X.policy.D&&X.L.length)for(J=g.d(X.L),L=J.next();!L.done;L=J.next())(L=L.value.F5())&&L.type&&L.sendByDefault&&X.videoData.O6.add(L.type)}; aXz=function(X){X.policy.XX&&(X.gI=void 0,X.dc=0)}; wdO=function(X,J){if(J.EY()||J.E6()){var L=X.loader,x=L.Ni,Q=J.state;X=X.xU();var K,q;if((J=(K=J.uZ)==null?void 0:K.get(X))==null)J=void 0;else{K=0;X=J.Yh();for(var D=0;D=J.mediaTime&&g.N(X.Lm.getPlayerState(),8)?(J.resolve([J.mediaTime,J.id]),X.L.delete(J.id)):(J.delay.dispose(),J.delay=new g.sn(function(){oUP(X,J)},(J.mediaTime-L)*1E3/X.Lm.getPlaybackRate()),J.delay.start())}; cvY=function(X,J,L,x){var Q=this;this.N=X;this.cpn=J;this.Lm=L;this.L=x;this.K=new Map;this.j=new Map;this.W=this.S=NaN;this.B=!1;this.A2="";this.isSeeking=!1;this.D=0;this.T=new ddZ(L);this.fW=L.fW;this.Lm.subscribe("SEEK_TO",function(){Q.R6()}); this.Lm.subscribe("SEEK_COMPLETE",function(){Plm(Q)})}; YrI=function(X,J){if(!X.isSeeking&&X.D!==J&&!isNaN(X.S)){X.D=J;var L=X.B?X.W:X.N.P5(J);(L!==X.W||X.B)&&EUZ(X,L,J)}}; EUZ=function(X,J,L){var x=X.K.get(J),Q=X.N.getStartTime(J),K=X.N.getDuration(J);X.B=!1;X.W=J;var q=Q,D;((D=x==null?void 0:x.L)!=null?D:[X.cpn]).forEach(function(C,M){var y;M=(y=x==null?void 0:x.K[M])!=null?y:K;L>=q&&LQ?pdA(X,K,X.K.get(K)):K===Q&&pdA(X,K,X.K.get(K),x-X.N.getStartTime(K))})}; hdO=function(X,J,L,x){J!==X.A2&&(X.Lm.Ni("ssevt",{tag:X.L===0?"sstd-cr":X.L===1?"sstd-tm":X.L===2?"sstd-poll":X.L===3?"sstd-poll100":"sstd-unknown",ad:X.cpn!==J,cpn:J,st:L.toFixed(3),late:Math.round(X.isSeeking?0:(x-L)*1E3)}),X.A2=J)}; rvY=function(X){var J=g.d(X.split("."));X=J.next().value;J=J.next().value;return[Number(X),J]}; W_z=function(X,J,L,x){L=J+"."+L;X.j.has(J)?X.j.get(J).push(L):X.j.set(J,[L]);X.L===1&&bI8(X.T,x,L).then(function(Q){var K=g.d(Q);Q=K.next().value;K=K.next().value;K=g.d(rvY(K));K.next();K=K.next().value;hdO(X,K,Q,uQY(X.T))}); X.L===0&&(X.fW.d_("transitiondetector",L),J=(x+X.Lm.W4())*1E3,X.fW.tj([new g.Rw(J,J+5E3,{id:L,namespace:"transitiondetector",priority:9})]))}; vUO=function(X,J,L,x,Q){this.loader=X;this.policy=J;this.schedule=L;this.hI=x;this.D=Q;this.Km=NaN;this.K=this.W=this.T=null;this.L=this.j=this.B=this.startTimeSecs=NaN;this.N=!1;this.S=NaN}; jlR=function(X,J,L,x,Q,K){return J.gp&&J.jk&&L===3?new vUO(X,J,x,Q,K):null}; TNz=function(X,J){if(X.policy.L0){var L=J.info.DY,x=va(X.schedule);J=J.index.oF();L=Math.max(1,x/L);X.S=Math.round(Math.max(((L-1)*J+X.policy.H9)/L,J-X.policy.yc)*1E3)}}; edZ=function(X,J){var L=Date.now()/1E3,x=L-X.startTimeSecs,Q=L-X.B,K=Q>=X.policy.NK,q=!1;if(K){var D=0;!isNaN(J)&&J>X.j&&(D=J-X.j,X.j=J);D/Q=X.policy.yc&&!X.N;if(!K&&!L&&G$P(X,J))return NaN;L&&(X.N=!0);a:{x=q;L=(0,g.uT)()/1E3-(X.hI.Gc()||0)-X.W.L-X.policy.H9;K=X.K.startTime;L=K+L;if(x){if(isNaN(J)){Zj(X,NaN,"n",J);K=NaN;break a}x=J-X.policy.CA;x=K.T&&x<=K.B){x=!0;break a}x=!1}x=!x}if(x)return X.Ni("ostmf",{ct:X.getCurrentTime(),a:J.L.info.g2()}),!1;(X=X.aB)!=null&&(X.xF.get(L).Qi=!0);return!0}; sle=function(X){if(!X.Yq.Zw)return!0;var J=X.Lm.getVideoData();if(X.Lm.Sl())return X.Ni("ombpa",{}),!1;var L,x;if(!!((L=X.D)==null?0:(x=L.iq)==null?0:x.GRB)!==X.Yq.Bv)return X.Ni("ombplmm",{}),!1;L=J.Nx||J.liveUtcStartSeconds||J.jk;if(X.Yq.Bv&&L)return X.Ni("ombplst",{}),!1;if(X.Yq.D)return X.Ni("ombab",{}),!1;L=Date.now();return US(X.Yq)&&!isNaN(X.Pl)&&L-X.Pl>X.policy.rC*1E3?(X.Ni("ombttl",{}),!1):X.Yq.hO&&X.Yq.T||!X.policy.rO&&X.Yq.isPremiere||YU(J)!==0&&!X.policy.L||J.Y("html5_disable_onesie_media_for_mosaic")&& LO(J)||J.OA()&&!J.Y("html5_enable_onesie_media_for_lifa")&&J.isDaiEnabled()&&J.enableServerStitchedDai||J.Y("html5_disable_onesie_media_for_lifa_eligible")&&Jz(J)?!1:!0}; NNA=function(X,J){var L=J.L,x=X.Yq.Zw;if(sle(X))if(X.aB&&X.aB.xF.has(Bx(g.fv(L.info,x)))){if(x=Bx(g.fv(L.info,x)),BNm(X,J)){var Q=new Qa(X.aB.Gm(x)),K=function(q){try{if(q.EY())X.handleError(q.J2(),q.JR()),jS(J,q),q7(q.info)&&Z$(X.j,J,L,!0),X.w0();else if(oHW(X.j,q)){var D;(D=X.N)==null||j0v(D,q.info,X.Km);X.w0()}}catch(C){q=nv(C),X.handleError(q.errorCode,q.details,q.severity),X.ES()}}; L.N=!0;KY(Q)&&(P7(J,new la(X.policy,x,Q,X.aB,K)),vE(X.timing))}}else X.Ni("ombfmt",{})}; Udz=function(X,J){J=J||X.videoTrack&&X.videoTrack.K&&X.videoTrack.K.startTime||X.getCurrentTime();var L=AN,x=X.videoTrack,Q=X.L;J=Q.nextVideo&&Q.nextVideo.index.P5(J)||0;Q.FE!==J&&(Q.Bl={},Q.FE=J,AQ(Q,Q.L));J=!Q.L.isLocked()&&Q.D>-1&&(0,g.uT)()-Q.DJ.L&&J.reason==="b";x||Q||L?(X.Lm.md({reattachOnConstraint:x?"u":Q?"drm":"perf",lo:J.K,up:J.L}),X.policy.s1||(X.T.L.K=!1)):(X.policy.s1&&(X.T.L.K=!1),mV(X))}}else if(!knI(X.L,J)&&X.videoTrack){X.logger.debug(function(){return"Setting constraint: r="+J.reason+" u="+J.L}); L=X.L.L;xM8(X,AeR(X.L,J));Udz(X);x=J.isLocked()&&J.reason==="m"&&X.L.aB;Q=X.policy.xj&&J.reason==="l"&&GV(X.videoTrack);L=L.L>J.L&&J.reason==="b";var K=X.L.SC&&!K8();x||Q||L||K?X.Lm.md({reattachOnConstraint:x?"u":Q?"drm":K?"codec":"perf"}):mV(X)}}; Qqm=function(X,J,L){if((!X.xq||gs(X.xq)&&!X.policy.Av)&&!X.bZ.isSeeking()&&(X.policy.L||GV(J)&&J.L.Fy()&&X.L.Km)){var x=X.getCurrentTime()+mtv(X.S,J,L);X.logger.debug(function(){return"Clearing back to "+x.toFixed(3)}); XaZ(J,x)}}; xM8=function(X,J){J&&(X.logger.debug(function(){return"Logging new format: "+BU(J.video.info)}),KiP(X.Lm,new BE(J.video,J.reason))); if(X.L.bB){var L=x7R(X.L,"a");X.Lm.Wz(new BE(L.audio,L.reason))}}; mV=function(X){g.Nc(X.sH)}; S2m=function(X){X.policy.sH&&X.policy.Cu&&Math.min(Ajm(X.videoTrack),Ajm(X.audioTrack))*1E3>X.policy.k$?g.Nc(X.If):X.w0()}; q8z=function(X,J){var L=(0,g.uT)()-J,x=p7(X.audioTrack,!0)*1E3,Q=p7(X.videoTrack,!0)*1E3;X.logger.debug(function(){return"Appends paused for "+L}); if(X.policy.N&&(X.Ni("apdpe",{dur:L.toFixed(),abuf:x.toFixed(),vbuf:Q.toFixed()}),RN(X.policy))){var K=G7(X.S);X.Ni("sdps",{ct:J,ah:x.toFixed(),vh:Q.toFixed(),mr:fG(X.S,X.Oy,K),bw:K.toFixed(),js:X.isSeeking(),re:+X.Oy,ps:(X.policy.zJ||"").toString(),rn:(X.policy.F_||"").toString()})}}; Iuz=function(X){if(KBm(X.videoTrack))return X.logger.debug("Pausing appends for server-selectable format"),"ssf";if(X.policy.Hl&&FZ(X.videoTrack)&&FZ(X.audioTrack))return"updateEnd";if(TV(X.audioTrack)||TV(X.videoTrack)&&X.videoTrack.L.info.XE!=="f")return"";if(X.bZ.isSeeking()){var J=X.S;var L=X.videoTrack;var x=X.audioTrack;if(J.policy.L){var Q=J.policy.eX;RN(J.policy)&&(Q=fG(J,!1,G7(J)));J=Q;L=p7(x,!0)>=J&&p7(L,!0)>=J}else L.N.length||x.N.length?(Q=L.L.info.DY+x.L.info.DY,Q=10*(1-G7(J)/Q),J=Math.max(Q, J.policy.eX),L=p7(x,!0)>=J&&p7(L,!0)>=J):L=!0;if(!L)return"abr";L=X.videoTrack;if(L.N.length>0&&L.T.K.length===1&&cjv(L.T).info.S360);x=RN(X.policy)&&X.policy.yS;if(!X.Oy||!x&&L)return"";L=X.policy.OQ;RN(X.policy)&&(L=fG(X.S,X.Oy,G7(X.S)));L=LB8(X.videoTrack,X.getCurrentTime(),L)||LB8(X.audioTrack,X.getCurrentTime(), L);return RN(X.policy)?L?"mbnm":"":(X.videoTrack.N.length>0||X.audioTrack.N.length>0||UB(X.j,X.videoTrack,X.audioTrack)||UB(X.j,X.audioTrack,X.videoTrack))&&L?"nord":""}; gFO=function(X){if(X.W){var J=X.W.w0(X.audioTrack,Ab(X.xq.K.ll()));J&&X.Lm.seekTo(J,{nG:!0,B9:"pollSubsegmentReadahead",gJ:!0})}}; Vy8=function(X,J,L){if(X.policy.Hl&&FZ(J))return!1;if(L.R3())return!0;if(!L.D4())return!1;var x=AZ(J);if(!x||x.info.type===6)return!1;var Q;if(X.policy.Oq||((Q=X.N)==null?0:eyP(Q,J,x.info.Vl)))X.vl=0;else return X.bZ.isSeeking()&&mV(X),X.vl=X.vl||(0,g.uT)(),!1;if(!Ai(X,J,L,x.info))return!1;if(X.Yq.K&&x.info.K===0){if(Q=DMI(J,L,x)){var K=SS(J);X.Ni("initchg",{it:x.info.L.info.id,sr:!!K&&K.L===x.info.L,ty:x.info.type,seg:x.info.Vl})}K=g.Ta(x.info.L.info);X.policy.ek&&K&&!Q&&Jfm(x)}K=X.W&&!!X.W.T&&J.L.info.audio; Q=X.Yq.isManifestless||x.j;if(!(X.Yq.K&&x.info.K!==0||Q&&!K)&&$Mm(X,J,L,x))return!0;if(K)return!1;K=N6(X,J);K=X.getCurrentTime()+K;if(x.info.T>K)return X.policy.L&&C0v(X,J),X.policy.tC&&IPe(J.T,K,!1),!1;Myv(X,J);var q;X.policy.fY&&L===((q=X.xq)==null?void 0:q.L)&&X.O6&&(L.QM()===0?(X.O6=!1,X.policy.fY=!1):X.Cm=L.QM());if(!yzm(X,L,x,J))return!1;X.policy.Hl&&x.info.Ze()?(X.Lm.G().YH()&&X.Ni("eosl",{ls:x.info.gQ()}),x.isLocked=!0):(J.Y4(x),LEI(X.L,x.info),X.logger.debug(function(){return"Appended "+ x.info.gQ()+", buffered: "+Nh(L.ll())})); Q&&nFZ(X,x.info.L.CL);return!0}; C0v=function(X,J){J===X.videoTrack?X.jC=X.jC||(0,g.uT)():X.Bl=X.Bl||(0,g.uT)()}; Myv=function(X,J){J===X.videoTrack?X.jC=0:X.Bl=0}; yzm=function(X,J,L,x){var Q=X.policy.H4?(0,g.uT)():0,K=L.j&&L.info.L.L||void 0,q=L.K;L.j&&(q=HOI(X,L,q)||q);var D=gk(q);q=X.policy.H4?(0,g.uT)():0;J=OOR(X,J,D,L.info,K);(x=x.D)!=null&&(K=L.info,Q=q-Q,q=(0,g.uT)()-q,!x.K||OvP(x.K,K)&&x.K.Vl===K.Vl||x.flush(),x.T+=Q,x.N+=q,Q=1,!x.K&&K.K&&(Q=2),QI(x,Q,J),q=Math.ceil(K.K/1024),Q===2&&x.L.add(q),x.L.add(Math.ceil((K.K+K.N)/1024)-q),x.K=K);X.gI=0;if(J===0)return X.Hl&&(X.logger.debug("Retry succeed, back to normal append logic."),X.Hl=!1,X.H4=!1),X.Lp= 0,!0;if(J===2||J===5)return au8(X,"checked",J,L.info),!1;if(J===1){if(!X.Hl)return X.logger.debug("QuotaExceeded, retrying."),X.Hl=!0,!1;if(!X.H4)return X.H4=!0,X.Lm.seekTo(X.getCurrentTime(),{B9:"quotaExceeded",gJ:!0}),!1;L.info.JO()?(Q=X.policy,Q.vl=Math.floor(Q.vl*.8),Q.Pl=Math.floor(Q.Pl*.8)):(Q=X.policy,Q.O6=Math.floor(Q.O6*.8),Q.Pl=Math.floor(Q.Pl*.8));X.policy.L?NU(X.T.L,L.info.L,!1):JN(X.L,L.info.L)}X.Lm.md({reattachOnAppend:J});return!1}; HOI=function(X,J,L){var x;if(x=X.policy.Bx&&X.xq&&!X.xq.S&&!X.Lm.j_())J=J.info.L.info,x=J.KY()&&za(J)&&J.video&&J.video.width<3840&&J.video.width>J.video.height;if(x&&(X.xq.S=!0,ax('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return L=SSY(L),X.policy.N&&X.Ni("sp4k",{s:!!L}),L}; au8=function(X,J,L,x){var Q="fmt.unplayable",K=1;L===5||L===3?(Q="fmt.unparseable",X.policy.L?!x.L.info.video||UZ(X.T.L).size>0||NU(X.T.L,x.L,!1):!x.L.info.video||UZ(X.L.j).size>0||JN(X.L,x.L)):L===2&&(X.Lp<15?(X.Lp++,Q="html5.invalidstate",K=0):Q="fmt.unplayable");x=xQ(x);var q;x.mrs=(q=X.xq)==null?void 0:yy(q);x.origin=J;x.reason=L;X.policy.L7&&(x.trg="appenderr");X.handleError(Q,x,K)}; lGA=function(X,J,L,x,Q){var K=X.Yq;var q=X.policy.L,D=!1,C=-1;for(H in K.L){var M=l2(K.L[H].info.mimeType)||K.L[H].info.JO();if(x===M)if(M=K.L[H].index,M.n1(J.Vl)){D=M;var y=J,n=D.B_(y.Vl);n&&n.startTime!==y.startTime?(D.segments=[],D.h8(y),D=!0):D=!1;D?C=J.Vl:!J.pending&&q&&(y=M.getDuration(J.Vl),y!==J.duration&&(K.publish("clienttemp","mfldurUpdate",{itag:K.L[H].info.itag,seg:J.Vl,od:y,nd:J.duration},!1),M.h8(J),D=!0))}else M.h8(J),D=!0}C>=0&&(q={},K.publish("clienttemp","resetMflIndex",(q[x?"v": "a"]=C,q),!1));K=D;CIW(X.bZ,J,x,K);if(X.policy.A0&&X.policy.K&&(C=J.ge||null)){var V;q=(V=X.K)==null?void 0:twm(V).requestNumber;if((V=X.FE)!=null){if(V.K.has(C.identifier)){var H=V.K.get(C.identifier);H.event=C.event;H.startTimeSecs=C.startSecs;H.zR=C.zR}else V.K.set(C.identifier,{event:C.event,startTimeSecs:C.startSecs,zR:C.zR,pB:[]});V.N&&q>-1&&qlp(X.Yq)&&(X.Yq.FE=J.startTime+(isNaN(X.timestampOffset)? 0:X.timestampOffset),X.bZ.isSeeking()&&X.bZ.L5)return X.gI= 0,X.Lm.md({initSegStuck:1,as:x.info.gQ()}),!0}else X.gI=0,X.t_=x;X.policy.zg&&(L.abort(),(q=J.D)!=null&&(QI(q,4),q.flush()));Q=OOR(X,L,K,C,Q);var M;(M=J.D)==null||$7S(M,Q,C);if(Q!==0)return w9P(X,Q,x),!0;x.info.JO()?cem(X.timing):Ezo(X.timing);X.logger.debug(function(){return"Appended init for "+x.info.L.info.id}); nFZ(X,x.info.L.CL);return L.BK()}; DMI=function(X,J,L){if(J.En()==null){X=SS(X);if(!(J=!X||X.L!==L.info.L)){a:if(X=X.D,L=L.info.D,X.length!==L.length)L=!1;else{for(J=0;J1)return 6;q.Bl=new g.sn(function(){var D=AZ(q);X.E6()||D==null||!D.isLocked?X.Lm.G().YH()&&X.Ni("eosl",{delayA:D==null?void 0:D.info.gQ()}):tye(q)?(X.Lm.G().YH()&&X.Ni("eosl",{dunlock:D==null?void 0:D.info.gQ()}),dMR(X,q===X.audioTrack)):(X.Ni("nue",{ls:D.info.gQ()}),D.info.Km+=1,X.xq&&X.aq())},1E4,X); X.Lm.G().YH()&&X.Ni("eosl",{delayS:x.gQ()});q.Bl.start()}X.policy.Wx&&(x==null?void 0:x.L)instanceof gu&&x.Ze()&&X.Ni("poseos",{itag:x.L.info.itag,seg:x.Vl,lseg:x.L.index.Md(),es:x.L.index.N});J.appendBuffer(L,x,Q)}catch(D){if(D instanceof DOMException){if(D.code===11)return 2;if(D.code===12)return 5;if(D.code===22||D.message.indexOf("Not enough storage")===0)return J=Object.assign({name:"QuotaExceededError",buffered:Nh(J.ll()).replace(/,/g,"_"),vheap:zV(X.videoTrack),aheap:zV(X.audioTrack),message:g.P5(D.message, 3),track:X.xq?J===X.xq.K?"v":"a":"u"},F_8()),X.handleError("player.exception",J),1;g.Sc(D)}return 4}return X.xq.eW()?3:0}; Za=function(X,J,L){X.policy.jX&&k$m(X,L.B9||"unknown");X.Lm.seekTo(J,L)}; nFZ=function(X,J){J&&X.Lm.xJ(new Ms(J.key,J.type))}; H7=function(X,J){X.Lm.Dy(J)}; N6=function(X,J){if(X.Hl&&!X.Oy)return 3;if(X.isSuspended)return 1;var L;if((L=X.xq)==null?0:L.xq&&L.xq.streaming===!1)return 4;L=(J.L.info.audio?X.policy.O6:X.policy.vl)/(J.DY*X.policy.XB);if(X.policy.II>0&&X.xq&&gs(X.xq)&&(J=J.L.info.video?X.xq.K:X.xq.L)&&!J.BK()){J=J.ll();var x=mL(J,X.getCurrentTime());x>=0&&(J=X.getCurrentTime()-J.start(x),L+=Math.max(0,Math.min(J-X.policy.II,X.policy.BI)))}X.policy.Pl>0&&(L=Math.min(L,X.policy.Pl));return L}; DdZ=function(X,J){return(N6(X,J)+X.policy.gb)*J.DY}; oFW=function(X){X.J0&&!X.isSuspended&&jj(X.schedule)&&(u3v(X,X.J0),X.J0="")}; u3v=function(X,J){rv(J,"cms",function(L){X.policy.N&&X.Ni("pathprobe",L)},function(L){X.Lm.handleError(L)})}; bOz=function(X,J){if(X.xq&&X.xq.T&&!X.xq.eW()&&(J.LG=p7(X.videoTrack),J.K=p7(X.audioTrack),X.policy.N)){var L=zV(X.videoTrack),x=zV(X.audioTrack),Q=Nh(X.xq.K.ll(),"_",5),K=Nh(X.xq.L.ll(),"_",5);Object.assign(J.L,{lvq:L,laq:x,lvb:Q,lab:K})}J.bandwidthEstimate=jZ(X.S);var q;(q=X.audioTrack.D)==null||q.flush();var D;(D=X.videoTrack.D)==null||D.flush();X.logger.debug(function(){return Cv(J.L)})}; S8S=function(X,J){X.Km=J;X.N&&(X.N.N=J);X.Km.DF(X.videoTrack.L.info.KY());X.j.K=X.Km;X.policy.K&&(X.K.S=X.Km)}; Y8e=function(X,J){if(X.xq&&X.xq.K){if(X.policy.hX){var L=gHR(X.audioTrack);if(L&&L.g2()){var x=X.Lm;if(x.sW&&(x.sW.L=L,L=x.xH,L.qoe)){L=L.qoe;x=x.sW;var Q=g.Jy(L.provider);P0R(L,Q,x)}}}X.policy.zL&&(L=gHR(X.videoTrack))&&L.JO()&&(x=X.Lm,x.mF&&(x.mF.L=L,L=x.xH,L.qoe&&czv(L.qoe,x.mF)));J-=isNaN(X.timestampOffset)?0:X.timestampOffset;X.getCurrentTime()!==J&&X.resume();X.bZ.isSeeking()&&X.xq&&!X.xq.eW()&&(x=X.getCurrentTime()<=J&&J=J&&lXI(X,x.startTime,!1)}); return L&&L.startTimeX.getCurrentTime())return L.start/1E3;return Infinity}; MwY=function(X){if(X.Lm.getVideoData().isLivePlayback)return!1;var J=X.Lm.tP();if(!J)return!1;J=J.getDuration();if(X.xq&&X.xq.L&&X.xq.K){var L=X.getCurrentTime(),x=X.xq.L.ll();X=X.xq.K.ll();x=x?Zb(x,L):L;L=X?Zb(X,L):L;L=Math.min(x,L);J=isNaN(L)?!1:L>=J-.01}else J=!1;return J}; w9P=function(X,J,L){X.policy.NH&&Or(X.Lm.getVideoData())?(X.Lm.a5()||au8(X,"sepInit",J,L.info),rzA(X.Lm,"sie")):au8(X,"sepInit",J,L.info)}; Pb8=function(X){return X.Lm.nw()0){var x=L.L.shift();jqW(L,x.info)}L.L.length>0&&(x=L.L[0].time-(0,g.uT)(),L.K.start(Math.max(0,x)))}},0); g.f(this,this.K);J.subscribe("widevine_set_need_key_info",this.T,this)}; jqW=function(X,J){a:{var L=J.cryptoPeriodIndex;if(isNaN(L)&&X.N.size>0)L=!0;else{for(var x=g.d(X.N.values()),Q=x.next();!Q.done;Q=x.next())if(Q.value.cryptoPeriodIndex===L){L=!0;break a}L=!1}}X.publish("log_qoe",{wvagt:"reqnews",canskip:L});L||X.publish("rotated_need_key_info_ready",J)}; TBv=function(){var X={};var J=X.url;var L=X.interval;X=X.retries;this.url=J;this.interval=L;this.retries=X}; Gim=function(X,J){this.statusCode=X;this.message=J;this.K=this.heartbeatParams=this.errorMessage=null;this.L={};this.nextFairplayKeyId=null}; fue=function(X,J,L){L=L===void 0?"":L;g.G.call(this);this.message=X;this.requestNumber=J;this.timer=L;this.onError=this.onSuccess=null;this.L=new g.WI(5E3,2E4,.2)}; eTY=function(X,J,L){X.onSuccess=J;X.onError=L}; luO=function(X,J,L,x){var Q={timeout:3E4,onSuccess:function(K){if(!X.E6()){oo("drm_net_r",void 0,X.timer);var q=K.status==="LICENSE_STATUS_OK"?0:9999,D=null;if(K.license)try{D=c5(K.license)}catch(O){g.Sc(O)}if(q!==0||D){D=new Gim(q,D);q!==0&&K.reason&&(D.errorMessage=K.reason);if(K.authorizedFormats){q={};for(var C=[],M={},y=g.d(K.authorizedFormats),n=y.next();!n.done;n=y.next())if(n=n.value,n.trackType&&n.keyId){var V=FiP[n.trackType];if(V){V==="HD"&&K.isHd720&&(V="HD720");n.isHdr&&(V+="HDR");q[V]|| (C.push(V),q[V]=!0);var H=null;try{H=c5(n.keyId)}catch(O){g.Sc(O)}H&&(M[g.S3(H,4)]=V)}}D.K=C;D.L=M}K.nextFairplayKeyId&&(D.nextFairplayKeyId=K.nextFairplayKeyId);K.sabrLicenseConstraint&&(D.sabrLicenseConstraint=c5(K.sabrLicenseConstraint));K=D}else K=null;if(K)X.onSuccess(K,X.requestNumber);else X.onError(X,"drm.net","t.p;p.i")}}, onError:function(K){if(!X.E6())if(K&&K.error)K=K.error,X.onError(X,"drm.net.badstatus","t.r;p.i;c."+K.code+";s."+K.status,K.code);else X.onError(X,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){X.onError(X,"drm.net","rt.req."+X.requestNumber)}}; x&&(Q.eV="Bearer "+x);g.BP(L,"player/get_drm_license",J,Q)}; RTY=function(X,J,L,x){g.Ly.call(this);this.videoData=X;this.m9=J;this.S=L;this.sessionId=x;this.j={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.Km=this.aB=!1;this.N=null;this.Pl=[];this.T=[];this.authorizedFormats=[];this.W=!1;this.L={};this.status="";this.B=NaN;this.K=X.j;this.cryptoPeriodIndex=L.cryptoPeriodIndex;X={};Object.assign(X,this.m9.L);X.cpn=this.videoData.clientPlaybackNonce;this.videoData.gI&&(X.vvt=this.videoData.gI,this.videoData.mdxEnvironment&&(X.mdx_environment= this.videoData.mdxEnvironment));this.m9.Pl&&(X.authuser=this.m9.Pl);this.m9.pageId&&(X.pageid=this.m9.pageId);isNaN(this.cryptoPeriodIndex)||(X.cpi=this.cryptoPeriodIndex.toString());var Q=(Q=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.vc()))?Q[1]:"";Q==="ATV"&&(X.cdt=Q);this.j=X;this.j.session_id=x;this.D=!0;this.K.flavor==="widevine"&&(this.j.hdr="1");this.K.flavor==="playready"&&(J=Number(Ha(J.experiments,"playready_first_play_expiration")),!isNaN(J)&&J>=0&&(this.j.mfpe=""+J),this.D=!1);J="";g.IG(this.K)? qP(this.K)?(x=L.K)&&(J="https://www.youtube.com/api/drm/fps?ek="+oSY(x)):(J=L.initData.subarray(4),J=new Uint16Array(J.buffer,J.byteOffset,J.byteLength/2),J=String.fromCharCode.apply(null,J).replace("skd://","https://")):J=this.K.K;this.baseUrl=J;this.fairplayKeyId=tV(this.baseUrl,"ek")||"";if(J=tV(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(J);this.Pl=L.KY?[g.S3(L.initData,4)]:L.N;Kt(this,{sessioninit:L.cryptoPeriodIndex});this.status="in"}; kVY=function(X,J){Kt(X,{createkeysession:1});X.status="gr";oo("drm_gk_s",void 0,X.videoData.D);X.url=NiZ(X);try{X.N=J.createSession(X.S,function(L){Kt(X,{m:L})})}catch(L){J="t.g"; L instanceof DOMException&&(J+=";c."+L.code);X.publish("licenseerror","drm.unavailable",1,J,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}X.N&&(UsZ(X.N,function(L,x){msW(X,L,x)},function(L,x,Q){if(!X.E6()){x=void 0; var K=1;g.IG(X.K)&&g.kH(X.m9)&&X.m9.Y("html5_enable_safari_fairplay")&&Q===1212433232&&(x="ERROR_HDCP",K=X.m9.Y("html5_safari_fairplay_ignore_hdcp")?0:K);X.error("drm.keyerror",K,L,x)}},function(){X.E6()||(Kt(X,{onkyadd:1}),X.Km||(X.publish("sessionready"),X.Km=!0))},function(L){X.fu(L)}),g.f(X,X.N))}; NiZ=function(X){var J=X.baseUrl;VcO(J)||X.error("drm.net",2,"t.x");if(!tV(J,"fexp")){var L=["23898307","23914062","23916106","23883098"].filter(function(Q){return X.m9.experiments.experiments[Q]}); L.length>0&&(X.j.fexp=L.join())}L=g.d(Object.keys(X.j));for(var x=L.next();!x.done;x=L.next())x=x.value,J=sWm(J,x,X.j[x]);return J}; msW=function(X,J,L){if(!X.E6())if(J){Kt(X,{onkmtyp:L});X.status="km";switch(L){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":Z78(X,J);return;default:X.publish("ctmp","message_type",{t:L,l:J.byteLength})}X.aB||(oo("drm_gk_f",void 0,X.videoData.D),X.aB=!0,X.publish("newsession",X));if(ib(X.K)&&(J=ANz(J),!J))return;J=new fue(J,++X.requestNumber,X.videoData.D);eTY(J,function(x){XbY(X,x)},function(x,Q,K){if(!X.E6()){var q=0; x.L.K>=3&&(q=1,Q="drm.net.retryexhausted");Kt(X,{onlcsrqerr:Q,info:K});X.error(Q,q,K);X.shouldRetry(y1(q),x)&&JiW(X,x)}}); g.f(X,J);LVY(X,J)}else X.error("drm.unavailable",1,"km.empty")}; Z78=function(X,J){Kt(X,{sdpvrq:1});X.B=Date.now();if(X.K.flavor!=="widevine")X.error("drm.provision",1,"e.flavor;f."+X.K.flavor+";l."+J.byteLength);else{var L={cpn:X.videoData.clientPlaybackNonce};Object.assign(L,X.m9.L);L=g.Hw("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",L);J={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, J)}),responseType:"arraybuffer"};g.bZ(L,J,3,500).then(Ff(function(x){x=x.xhr;if(!X.E6()){x=new Uint8Array(x.response);var Q=String.fromCharCode.apply(null,x);try{var K=JSON.parse(Q)}catch(q){}K&&K.signedResponse?(X.publish("ctmp","drminfo",{provisioning:1}),K=(Date.now()-X.B)/1E3,X.B=NaN,X.publish("ctmp","provs",{et:K.toFixed(3)}),X.N&&X.N.update(x)):(K=K&&K.error&&K.error.message,x="e.parse",K&&(x+=";m."+K),X.error("drm.provision",1,x))}}),Ff(function(x){X.E6()||X.error("drm.provision",1,"e."+x.errorCode+ ";c."+(x.xhr&&x.xhr.status))}))}}; qi=function(X){var J;if(J=X.D&&X.N!=null)X=X.N,J=!(!X.L||!X.L.keyStatuses);return J}; LVY=function(X,J){X.status="km";oo("drm_net_s",void 0,X.videoData.D);var L=new g.Rv(X.m9.M0),x={context:g.qF(L.config_||g.KP())};x.drmSystem=xWS[X.K.flavor];x.videoId=X.videoData.videoId;x.cpn=X.videoData.clientPlaybackNonce;x.sessionId=X.sessionId;x.licenseRequest=g.S3(J.message);x.drmParams=X.videoData.drmParams;isNaN(X.cryptoPeriodIndex)||(x.isKeyRotated=!0,x.cryptoPeriodIndex=X.cryptoPeriodIndex);var Q,K,q=!!((Q=X.videoData.K)==null?0:(K=Q.video)==null?0:K.isHdr());x.drmVideoFeature=q?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(x.context&&x.context.client){if(Q=X.m9.L)x.context.client.deviceMake=Q.cbrand,x.context.client.deviceModel=Q.cmodel,x.context.client.browserName=Q.cbr,x.context.client.browserVersion=Q.cbrver,x.context.client.osName=Q.cos,x.context.client.osVersion=Q.cosver;x.context.user=x.context.user||{};x.context.request=x.context.request||{};X.videoData.gI&&(x.context.user.credentialTransferTokens=[{token:X.videoData.gI,scope:"VIDEO"}]);x.context.request.mdxEnvironment=X.videoData.mdxEnvironment|| x.context.request.mdxEnvironment;X.videoData.YF&&(x.context.user.kidsParent={oauthToken:X.videoData.YF});g.IG(X.K)&&(x.fairplayKeyId=g.S3(bJP(X.fairplayKeyId)));g.wT(X.m9,g.X3(X.videoData)).then(function(D){luO(J,x,L,D);X.status="rs"})}else X.error("drm.net",2,"t.r;ic.0")}; XbY=function(X,J){if(!X.E6())if(Kt(X,{onlcsrsp:1}),X.status="rr",J.statusCode!==0)X.error("drm.auth",1,"t.f;c."+J.statusCode,J.errorMessage||void 0);else{oo("drm_kr_s",void 0,X.videoData.D);if(J.heartbeatParams&&J.heartbeatParams.url&&X.videoData.Y("outertube_streaming_data_always_use_staging_license_service")){var L=X.K.K.match(/(.*)youtube.com/g);L&&(J.heartbeatParams.url=L[0]+J.heartbeatParams.url)}J.heartbeatParams&&X.publish("newlicense",J.heartbeatParams);J.K&&(X.T=J.K,X.videoData.LL||X.publish("newlicense", new TBv),X.videoData.LL=!0,X.W=Fe(X.T,function(x){return x.includes("HDR")})); J.L&&(X.m9.Y("html5_enable_vp9_fairplay")&&qP(X.K)?(L=g.S3(bJP(X.fairplayKeyId),4),X.L[L]={type:J.L[L],status:"unknown"}):X.L=xS(J.L,function(x){return{type:x,status:"unknown"}})); K0(X.K)&&(J.message=fFS(g.S3(J.message)));X.N&&(Kt(X,{updtks:1}),X.status="ku",X.N.update(J.message).then(function(){oo("drm_kr_f",void 0,X.videoData.D);qi(X)||(Kt(X,{ksApiUnsup:1}),X.publish("keystatuseschange",X))},function(x){x="msuf.req."+X.requestNumber+";msg."+g.P5(x.message,3); X.error("drm.keyerror",1,x)})); g.IG(X.K)&&X.publish("fairplay_next_need_key_info",X.baseUrl,J.nextFairplayKeyId);X.m9.Y("html5_enable_vp9_fairplay")&&qP(X.K)&&X.publish("qualitychange",ir8(X.T));J.sabrLicenseConstraint&&X.publish("sabrlicenseconstraint",J.sabrLicenseConstraint)}}; JiW=function(X,J){var L=J.L.getValue();L=new g.sn(function(){LVY(X,J)},L); g.f(X,L);L.start();g.p5(J.L);Kt(X,{rtyrq:1})}; QDZ=function(X,J){for(var L=[],x=g.d(Object.keys(X.L)),Q=x.next();!Q.done;Q=x.next())Q=Q.value,L.push(Q+"_"+X.L[Q].type+"_"+X.L[Q].status);return L.join(J)}; KVP=function(X){var J={};J[X.status]=qi(X)?QDZ(X,"."):X.T.join(".");return J}; qiv=function(X,J,L){var x={};x.isHdr=J.includes("HDR");switch(J.replace("HDR","").replace("720","")){case "AUDIO":x.trackType=1;break;case "SD":x.trackType=2;break;case "HD":x.trackType=3;break;case "UHD1":x.trackType=4;break;case "UHD2":x.trackType=5;break;default:x.trackType=0}!x.trackType||L[J]||qi(X)&&!I1(X,J)||(X.authorizedFormats.push(x),L[J]=!0)}; I1=function(X,J){for(var L in X.L)if(X.L[L].status==="usable"&&X.L[L].type===J)return!0;return!1}; Ijo=function(X,J){for(var L in X.L)if(X.L[L].type===J)return X.L[L].status}; Kt=function(X,J){var L=L===void 0?!1:L;Cv(J);(L||X.m9.YH())&&X.publish("ctmp","drmlog",J)}; gkm=function(X){var J=X[0];X[0]=X[3];X[3]=J;J=X[1];X[1]=X[2];X[2]=J;J=X[4];X[4]=X[5];X[5]=J;J=X[6];X[6]=X[7];X[7]=J}; ir8=function(X){return g.tS(X,"UHD2")||g.tS(X,"UHD2HDR")?"highres":g.tS(X,"UHD1")||g.tS(X,"UHD1HDR")?"hd2160":g.tS(X,"HD")||g.tS(X,"HDHDR")?"hd1080":g.tS(X,"HD720")||g.tS(X,"HD720HDR")?"hd720":"large"}; ANz=function(X){for(var J="",L=0;L'.charCodeAt(x);X=X.N.createSession("video/mp4",J,L);return new g4(null,null,null,null,X)}; HrP=function(X,J){var L=X.B[J.sessionId];!L&&X.T&&(L=X.T,X.T=null,L.sessionId=J.sessionId,X.B[J.sessionId]=L);return L}; yiR=function(X,J){var L=X.subarray(4);L=new Uint16Array(L.buffer,L.byteOffset,L.byteLength/2);L=String.fromCharCode.apply(null,L).match(/ek=([0-9a-f]+)/)[1];for(var x="",Q=0;Q19.2999?(X=L.oI,L=L.JC,L>=X&&(L=X* .75),J=(X-L)*.5,L=new iD(J,X,X-J-L,this)):L=null;break a;case "widevine":L=new Q8(J,this,X);break a;default:L=null}if(this.j=L)g.f(this,this.j),this.j.subscribe("rotated_need_key_info_ready",this.bz,this),this.j.subscribe("log_qoe",this.i6,this);D6(this.m9.experiments);this.i6({cks:this.L.getInfo()})}; ajm=function(X){var J=MXZ(X.T);J?J.then(Ff(function(){tX8(X)}),Ff(function(L){if(!X.E6()){g.Sc(L); var x="t.a";L instanceof DOMException&&(x+=";n."+L.name+";m."+L.message);X.publish("licenseerror","drm.unavailable",1,x,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(X.i6({mdkrdy:1}),X.D=!0); X.Km&&(J=MXZ(X.Km))}; uSR=function(X,J,L){X.jC=!0;L=new Ms(J,L);X.m9.Y("html5_eme_loader_sync")&&(X.B.get(J)||X.B.set(J,L));dWm(X,L)}; dWm=function(X,J){if(!X.E6()){X.i6({onInitData:1});if(X.m9.Y("html5_eme_loader_sync")&&X.videoData.N&&X.videoData.N.L){var L=X.W.get(J.initData);J=X.B.get(J.initData);if(!L||!J)return;J=L;L=J.initData;X.B.remove(L);X.W.remove(L)}X.i6({initd:J.initData.length,ct:J.contentType});if(X.L.flavor==="widevine")if(X.gI&&!X.videoData.isLivePlayback)Ct(X);else{if(!(X.m9.Y("vp9_drm_live")&&X.videoData.isLivePlayback&&J.KY)){X.gI=!0;L=J.cryptoPeriodIndex;var x=J.L;t0Z(J);J.KY||(x&&J.L!==x?X.publish("ctmp","cpsmm", {emsg:x,pssh:J.L}):L&&J.cryptoPeriodIndex!==L&&X.publish("ctmp","cpimm",{emsg:L,pssh:J.cryptoPeriodIndex}));X.publish("widevine_set_need_key_info",J)}}else X.bz(J)}}; tX8=function(X){if(!X.E6())if(X.m9.Y("html5_drm_set_server_cert")||qP(X.L)){var J=X.T.setServerCertificate();J?J.then(Ff(function(L){X.m9.YH()&&X.publish("ctmp","ssc",{success:L})}),Ff(function(L){X.publish("ctmp","ssce",{n:L.name, m:L.message})})).then(Ff(function(){oke(X)})):oke(X)}else oke(X)}; oke=function(X){X.E6()||(X.D=!0,X.i6({onmdkrdy:1}),Ct(X))}; brm=function(X){return X.L.flavor==="widevine"&&X.videoData.Y("html5_drm_cpi_license_key")}; Ct=function(X){if(X.jC&&X.D&&!X.FE){for(;X.N.length;){var J=X.N[0],L=brm(X)?d7v(J):g.S3(J.initData);if(qP(X.L)&&!J.K)X.N.shift();else{if(X.K.get(L))if(X.L.flavor!=="fairplay"||qP(X.L)){X.N.shift();continue}else X.K.delete(L);t0Z(J);break}}X.N.length&&X.createSession(X.N[0])}}; SiY=function(X){var J;if(J=g.fU()){var L;J=!((L=X.T.K)==null||!L.getMetrics)}J&&(J=X.T.getMetrics())&&(J=g.nw(J),X.publish("ctmp","drm",{metrics:J}))}; PdW=function(){var X=rUv();return!(!X||X==="visible")}; EkR=function(X){var J=ci8();J&&document.addEventListener(J,X,!1)}; YiP=function(X){var J=ci8();J&&document.removeEventListener(J,X,!1)}; ci8=function(){if(document.visibilityState)var X="visibilitychange";else{if(!document[$1+"VisibilityState"])return"";X=$1+"visibilitychange"}return X}; hpZ=function(X){g.G.call(this);var J=this;this.Lm=X;this.gH=0;this.B=this.K=this.j=!1;this.T=0;this.TH=this.Lm.G();this.videoData=this.Lm.getVideoData();this.N=g.J_(this.TH.experiments,"html5_delayed_retry_count");this.L=new g.sn(function(){J.Lm.ud()},g.J_(this.TH.experiments,"html5_delayed_retry_delay_ms")); g.f(this,this.L)}; vkA=function(X,J,L){var x=X.videoData.K,Q=X.videoData.T,K=X.TH.Y("html5_disable_codec_fallback_for_drm")&&X.videoData.zC();Or(X.Lm.getVideoData())&&X.TH.Y("html5_gapless_fallback_on_qoe_restart")&&rzA(X.Lm,"pe");if((J==="progressive.net.retryexhausted"||J==="fmt.unplayable"||J==="fmt.decode")&&!X.Lm.WJ.j&&x&&x.itag==="22")return X.Lm.WJ.j=!0,X.NF("qoe.restart",{reason:"fmt.unplayable.22"}),X.Lm.O1(),!0;var q=!1;if(X.videoData.isExternallyHostedPodcast){if(q=X.videoData.ZYB)L.mimeType=q.type,X.Ni("3pp", {url:q.url});L.ns="3pp";X.Lm.kU(J,1,"VIDEO_UNAVAILABLE",Cv((new g.Mh(J,L,1)).details));return!0}var D=X.gH+3E4<(0,g.uT)()||X.L.isActive();if(X.TH.Y("html5_empty_src")&&X.videoData.isAd()&&J==="fmt.unplayable"&&/Empty src/.test(""+L.msg))return L.origin="emptysrc",X.NF("auth",L),!0;D||zpo(X.Lm.QQ())||(L.nonfg="paused",D=!0,X.Lm.pauseVideo());(J==="fmt.decode"||J==="fmt.unplayable")&&(Q==null?0:vU(Q)||ji(Q))&&(J5m(X.TH.j,Q.XE),L.acfallexp=Q.XE,q=D=!0);!D&&X.N>0&&(X.L.start(),D=!0,L.delayed="1",--X.N); Q=X.Lm.loader;D||!((x==null?0:rS(x))||(x==null?0:za(x)))||K||(J5m(X.TH.j,x.XE),q=D=!0,L.cfallexp=x.XE);if(!D)return WVI(X,L);K=!1;X.j?X.gH=(0,g.uT)():K=X.j=!0;D=X.videoData;if(D.SC){D=D.SC.Fo();var C=Date.now()/1E3+1800;D=D6048E5&&fjY(X,"signature");return!1}; fjY=function(X,J){try{J={detail:"pr."+J},g.gT(X.TH)&&X.TH.Y("html5_reload_by_kabuki_app")?X.Lm.kU("qoe.restart",1,void 0,Cv(J),"7"):(X.NF("qoe.restart",J),window.location.reload())}catch(L){}}; FV8=function(X,J){var L=X.TH.j;L.W=!1;L.K=!0;X.NF("qoe.restart",{e:J===void 0?"fmt.noneavailable":J,detail:"hdr"});X.Lm.ud(!0)}; ljY=function(X,J,L,x,Q,K){this.videoData=X;this.L=J;this.reason=L;this.K=x;this.token=Q;this.videoId=K}; Mi=function(X,J,L){this.m9=X;this.bb=J;this.Lm=L;this.S=this.B=this.L=this.T=this.W=this.K=0;this.j=!1;this.D=g.J_(this.m9.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.N=new Map}; BWP=function(X,J,L){!X.m9.Y("html5_tv_ignore_capable_constraint")&&g.nD(X.m9)&&(L=L.compose(Rp8(X,J)));return L}; sDo=function(X){if(X.Lm.QQ().isInline())return Qh;var J;X.Y("html5_exponential_memory_for_sticky")?J=Tl(X.m9.jT,"sticky-lifetime")<.5?"auto":cK[yC()]:J=cK[yC()];return g.bI("auto",J,!1,"s")}; UWY=function(X,J){var L,x=NWY(X,(L=J.L)==null?void 0:L.videoInfos);L=X.Lm.getPlaybackRate();return L>1&&x?(X=kxY(X.m9.j,J.L.videoInfos,L),new ob(0,X,!0,"o")):new ob(0,0,!1,"o")}; NWY=function(X,J){return J&&g.nD(X.m9)?J.some(function(L){return L.video.fps>32}):!1}; mWP=function(X,J){if(X.Y("html5_disable_ustreamer_constraint_for_sabr")&&dN(J.videoData))return Qh;var L=X.Lm.Gf();X.Y("html5_use_video_quality_cap_for_ustreamer_constraint")&&L&&L.mT>0&&PK(J.videoData.RP)&&(X=L.mT,J.videoData.RP=new ob(0,X,!1,"u"));return J.videoData.RP}; Rp8=function(X,J){if(g.nD(X.m9)&&eo(X.m9.j,FV.HEIGHT))var L=J.L.videoInfos[0].video.qualityOrdinal;else{var x=X.nP(!!J.L.L);al(J.videoData)||xF(J.videoData);J=J.L.videoInfos;if(J.length){var Q=g.J_(X.m9.experiments,"html5_override_oversend_fraction")||.85,K=J[0].video;K.projectionType!=="MESH"&&K.projectionType!=="EQUIRECTANGULAR"&&K.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||s2||(Q=.45);X=g.J_(X.m9.experiments,"html5_viewport_undersend_maximum");for(K=0;K0&&(L=Math.min(L,x));if(x=g.J_(X.m9.experiments,"html5_max_vertical_resolution")){X=4320;for(Q=0;Qx&&(X=Math.min(X,K.video.qualityOrdinal));if(X<4320){for(Q=x=0;Q32){Q=!0;break a}}Q=!1}Q&&(L=Math.min(L,x));(x=g.J_(X.m9.experiments,"html5_live_quality_cap"))&&J.videoData.isLivePlayback&&(L=Math.min(L,x));L=ZrZ(X,J,L);X=g.J_(X.m9.experiments,"html5_byterate_soft_cap");return new ob(0,L===4320?0:L,!1,"d",X)}; X$e=function(X){var J,L,x,Q;return g.p(function(K){switch(K.K){case 1:return X.L.L&&typeof((J=navigator.mediaCapabilities)==null?void 0:J.decodingInfo)==="function"?g.z(K,Promise.resolve(),2):K.return(Promise.resolve());case 2:L=g.d(X.L.videoInfos),x=L.next();case 3:if(x.done){K.fm(0);break}Q=x.value;return g.z(K,h9e(Q),4);case 4:x=L.next(),K.fm(3)}})}; LO8=function(X,J){if(!J.videoData.K||X.Y("html5_disable_performance_downgrade"))return!1;Date.now()-X.W>6E4&&(X.K=0);X.K++;X.W=Date.now();if(X.K!==4)return!1;JyS(X,J.videoData.K);return!0}; itv=function(X,J,L,x){if(!J||!L||!J.videoData.K)return!1;var Q=g.J_(X.m9.experiments,"html5_df_downgrade_thresh"),K=X.Y("html5_log_media_perf_info");if(!((0,g.uT)()-X.T<5E3?0:K||Q>0))return!1;var q=((0,g.uT)()-X.T)/1E3;X.T=(0,g.uT)();L=L.getVideoPlaybackQuality();if(!L)return!1;var D=L.droppedVideoFrames-X.B,C=L.totalVideoFrames-X.S;X.B=L.droppedVideoFrames;X.S=L.totalVideoFrames;var M=L.displayCompositedVideoFrames===0?0:L.displayCompositedVideoFrames||-1;K&&X.m9.YH()&&X.Lm.Ni("ddf",{dr:L.droppedVideoFrames, de:L.totalVideoFrames,comp:M});if(x)return X.L=0,!1;if((C-D)/q>X.D||!Q||g.nD(X.m9))return!1;X.L=(C>60?D/C:0)>Q?X.L+1:0;if(X.L!==3)return!1;JyS(X,J.videoData.K);X.Lm.Ni("dfd",Object.assign({dr:L.droppedVideoFrames,de:L.totalVideoFrames},xim()));return!0}; JyS=function(X,J){var L=J.XE,x=J.video.fps,Q=J.video.qualityOrdinal-1,K=X.N;J=""+L+(x>49?"p60":x>32?"p48":"");L=Aj(L,x,K);Q>0&&(L=Math.min(L,Q));if(!y8.has(J)&&HK().includes(J)){var q=L;L=VC();+L[J]>0&&(q=Math.min(+L[J],q));L[J]!==q&&(L[J]=q,g.El("yt-player-performance-cap",L,2592E3))}else if(y8.has(J)||K==null){a:{q=q===void 0?!0:q;x=HK().slice();if(q){if(x.includes(J))break a;x.push(J)}else{if(!x.includes(J))break a;x.splice(x.indexOf(J),1)}g.El("yt-player-performance-cap-active-set",x,2592E3)}ZG.set(J, L)}else y8.add(J),K==null||K.set(J,L);X.Lm.Tm()}; Q1A=function(X,J){if(!J.L.L)return X.j?new ob(0,360,!1,"b"):Qh;for(var L=!1,x=!1,Q=g.d(J.L.videoInfos),K=Q.next();!K.done;K=Q.next())rS(K.value)?L=!0:x=!0;L=L&&x;x=0;Q=g.J_(X.m9.experiments,"html5_performance_cap_floor");Q=X.m9.K?240:Q;J=g.d(J.L.videoInfos);for(K=J.next();!K.done;K=J.next()){var q=K.value;if(!L||!rS(q))if(K=Aj(q.XE,q.video.fps,X.N),q=q.video.qualityOrdinal,Math.max(K,Q)>=q){x=q;break}}return new ob(0,x,!1,"b")}; KOW=function(X,J){var L=X.Lm.QQ();return L.isInline()&&!J.BI?new ob(0,480,!1,"v"):dN(J)?Qh:L.isBackground()&&a4()/1E3>60&&!g.nD(X.m9)?new ob(0,360,!1,"v"):Qh}; q6v=function(X,J,L){if(X.m9.experiments.Mi("html5_disable_client_autonav_cap_for_onesie")&&J.fetchType==="onesie"||g.nD(X.m9)&&(yC(-1)>=1080||J.osid))return Qh;var x=g.J_(X.m9.experiments,"html5_autonav_quality_cap"),Q=g.J_(X.m9.experiments,"html5_autonav_cap_idle_secs");return x&&J.isAutonav&&a4()/1E3>Q?(L&&(x=ZrZ(X,L,x)),new ob(0,x,!1,"e")):Qh}; ZrZ=function(X,J,L){if(X.Y("html5_optimality_defaults_chooses_next_higher")&&L)for(X=J.L.videoInfos,J=1;J=0||(X.provider.Lm.getVisibilityState()===3?X.j=!0:(X.L=g.Jy(X.provider),X.delay.start()))}; Div=function(X){if(!(X.K<0)){var J=g.Jy(X.provider),L=J-X.T;X.T=J;X.playerState.state===8?X.playTimeSecs+=L:X.playerState.isBuffering()&&!g.N(X.playerState,16)&&(X.rebufferTimeSecs+=L)}}; $iv=function(X){var J;switch((J=X.m9.playerCanaryStage)==null?void 0:J.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; CDI=function(X){return window.PressureObserver&&new window.PressureObserver(X)}; MaA=function(X){X=X===void 0?CDI:X;g.G.call(this);var J=this;try{this.N=X(function(x){J.K=x.at(-1)}); var L;this.T=(L=this.N)==null?void 0:L.observe("cpu",{sampleInterval:2E3}).catch(function(x){x instanceof DOMException&&(J.L=x)})}catch(x){x instanceof DOMException&&(this.L=x)}}; yyv=function(X){var J={},L=window.h5vcc;J.hwConcurrency=navigator.hardwareConcurrency;X.L&&(J.cpe=X.L.message);X.K&&(J.cpt=X.K.time,J.cps=X.K.state);if(L==null?0:L.cVal)J.cb2s=L.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),J.cb5s=L.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),J.cb30s=L.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return J}; nZY=function(X){var J;g.p(function(L){switch(L.K){case 1:return g.oz(L,2),g.z(L,X.T,4);case 4:g.PW(L,3);break;case 2:g.EA(L);case 3:(J=X.N)==null||J.disconnect(),g.uv(L)}})}; Ht8=function(X,J){J?Vav.test(X):(X=g.XU(X),Object.keys(X).includes("cpn"))}; aM8=function(X,J,L,x,Q,K,q){var D={format:"RAW"},C={};if(xb(X)&&iZ()){if(q){var M;((M=OtS.uaChPolyfill)==null?void 0:M.state.type)!==2?q=null:(q=OtS.uaChPolyfill.state.data.values,q={"Synth-Sec-CH-UA-Arch":q.architecture,"Synth-Sec-CH-UA-Model":q.model,"Synth-Sec-CH-UA-Platform":q.platform,"Synth-Sec-CH-UA-Platform-Version":q.platformVersion,"Synth-Sec-CH-UA-Full-Version":q.uaFullVersion});C=Object.assign(C,q);D.withCredentials=!0}(q=g.ly("EOM_VISITOR_DATA"))?C["X-Goog-EOM-Visitor-Id"]=q:x?C["X-Goog-Visitor-Id"]= x:g.ly("VISITOR_DATA")&&(C["X-Goog-Visitor-Id"]=g.ly("VISITOR_DATA"));L&&(C["X-Goog-PageId"]=L);(x=J.Pl)&&!C4(J)&&(C["X-Goog-AuthUser"]=x);Q&&(C.Authorization="Bearer "+Q);J.Y("enable_datasync_id_header_in_web_vss_pings")&&J.OQ&&J.datasyncId&&(C["X-YouTube-DataSync-Id"]=J.datasyncId);q||C["X-Goog-Visitor-Id"]||Q||L||x?D.withCredentials=!0:J.Y("html5_send_cpn_with_options")&&Vav.test(X)&&(D.withCredentials=!0)}Object.keys(C).length>0&&(D.headers=C);K&&(D.onFinish=K);return Object.keys(D).length>1? D:null}; w$m=function(X,J,L,x,Q,K,q,D){iZ()&&L.token&&(X=J8(X,{ctt:L.token,cttype:L.dT,mdx_environment:L.mdxEnvironment}));x.Y("net_pings_low_priority")&&(J||(J={}),J.priority="low");K||D&&x.Y("nwl_skip_retry")?(J==null?J={}:Ht8(X,x.Y("html5_assert_cpn_with_regex")),q?FN().sendAndWrite(X,J):FN().sendThenWrite(X,J,D)):J?(Ht8(X,x.Y("html5_assert_cpn_with_regex")),QBI(X,J)):g.zp(X,Q)}; taz=function(X){for(var J=[],L=0;L0&&L>0&&!X.K&&X.N<1E7)try{X.T=X.j({sampleInterval:J,maxBufferSize:L});var x;(x=X.T)==null||x.addEventListener("samplebufferfull",function(){return g.p(function(Q){if(Q.K==1)return g.z(Q,X.stop(),2);oZY(X);g.uv(Q)})})}catch(Q){X.K=u6Z(Q.message)}}; H$=function(X,J){var L,x;return!!((L=window.h5vcc)==null?0:(x=L.settings)==null?0:x.set(X,J))}; S68=function(){var X,J,L,x=(X=window.h5vcc)==null?void 0:(J=X.settings)==null?void 0:(L=J.getPersistentSettingAsString)==null?void 0:L.call(J,"cpu_usage_tracker_intervals");if(x!=null){var Q;X=(Q=JSON.parse(x))!=null?Q:[];Q=X.filter(function(M){return M.type==="total"}).map(function(M){return M.seconds}); J=g.d(btZ);for(L=J.next();!L.done;L=J.next())L=L.value,Q.indexOf(L)===-1&&X.push({type:"total",seconds:L});var K,q;(K=window.h5vcc)==null||(q=K.settings)==null||q.set("cpu_usage_tracker_intervals_enabled",1);var D,C;(D=window.h5vcc)==null||(C=D.settings)==null||C.set("cpu_usage_tracker_intervals",JSON.stringify(X))}}; PDS=function(){var X=window.H5vccPlatformService,J="";if(X&&X.has("dev.cobalt.coat.clientloginfo")&&(X=X.open("dev.cobalt.coat.clientloginfo",function(){}))){var L=X.send(new ArrayBuffer(0)); L&&(J=String.fromCharCode.apply(String,g.nR(new Uint8Array(L))));X.close()}return J}; g.w4=function(X){g.G.call(this);var J=this;this.provider=X;this.logger=new g.OS("qoe");this.L=new Map;this.sequenceNumber=1;this.aB=NaN;this.Sk="N";this.S=this.ub=this.ib=this.Km=this.K=0;this.sH=this.vl=this.B=this.Hl="";this.XX=this.jC=NaN;this.t_=0;this.YF=-1;this.H9=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Lp=this.isEmbargoed=this.gI=this.isOffline=this.isBuffering=!1;this.oT=[];this.D=null;this.A0=this.T=this.Cm=this.W=!1;this.N=-1;this.SC=!1;this.pO=new g.sn(this.M6,750,this);this.D1= this.adCpn=this.FE=this.contentCpn="";this.adFormat=void 0;this.jk=0;this.O6=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.RT=new Set(["gd","pw"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.Nx=!1;this.If=NaN;this.Bl=0;this.z6=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.H4=!1;this.Zh={Bj:function(x){J.Bj(x)}, rlq:function(){return J.j}, PK:function(){return J.contentCpn}, JlB:function(){return J.FE}, reportStats:function(){J.reportStats()}, HuH:function(){return J.L.get("cat")||[]}, La:function(x){return J.L.get(x)||[]}, jgE:function(){return J.L}, IZH:function(){return 0}, v_Y:function(){return{adCpn:J.adCpn,D1:J.D1,adFormat:J.adFormat}}}; this.Pl=this.provider.m9.Y("html5_qoe_relaxed_reporting");var L=g.J_(this.provider.m9.experiments,"html5_qoe_proto_mock_length");L&&!O6.length&&(O6=taz(L));g.f(this,this.pO);try{navigator.getBattery().then(function(x){J.D=x})}catch(x){}g.a1(this,0,"vps",["N"]); X.m9.YH()&&(this.Bl=(0,g.uT)(),this.If=g.CU(function(){var x=(0,g.uT)(),Q=x-J.Bl;Q>500&&J.Ni("vmlock",{diff:Q.toFixed()});J.Bl=x},250)); this.provider.videoData.Az&&(this.remoteControlMode=cyW[this.provider.videoData.Az]||0);this.provider.videoData.Jb&&(L=gw8(this.provider.videoData.Jb),L==null?0:L.length)&&(this.remoteConnectedDevices=L);X.m9.YH()&&(this.J0=new MaA,g.f(this,this.J0));L=g.J_(X.m9.experiments,"html5_js_self_profiler_sample_interval_ms");X=g.J_(X.m9.experiments,"html5_js_self_profiler_max_samples");L>0&&X>0&&(this.bB=new V8(L,X),g.f(this,this.bB))}; ty=function(X,J,L){var x=X.L.get(J);x?x.push(L):X.L.set(J,[L])}; g.a1=function(X,J,L,x){ty(X,L,J.toFixed(3)+":"+x.join(":"))}; EZP=function(X,J){var L=X.adCpn||X.provider.videoData.clientPlaybackNonce,x=X.provider.getCurrentTime(L);g.a1(X,J,"cmt",[x.toFixed(3)]);L=x=X.provider.eT(L);if((!X.j||X.provider.m9.Y("html5_shorts_gapless_no_gllat")&&Or(X.provider.videoData)?0:L*1E3>X.j.bq+100)&&X.j){var Q=X.j;L=Q.isAd;x=x*1E3-Q.bq;X.ZO=J*1E3-Q.jnI-x-Q.iYl;Q=(0,g.uT)()-x;J=X.ZO;x=X.provider.videoData;var K=x.isAd();if(L||K){K=(L?"ad":"video")+"_to_"+(K?"ad":"video");var q={};x.B&&(q.cttAuthInfo={token:x.B,videoId:x.videoId});q.startTime= Q-J;Sq(K,q);g.bV({targetVideoId:x.videoId,targetCpn:x.clientPlaybackNonce},K);oo("pbs",Q,K)}else Q=X.provider.Lm.r5(),Q.B!==x.clientPlaybackNonce?(Q.j=x.clientPlaybackNonce,Q.K=J):x.Ev()||g.PM(new g.Fm("CSI timing logged before gllat",{cpn:x.clientPlaybackNonce}));X.Ni("gllat",{l:X.ZO.toFixed(),prev_ad:+L});delete X.j}}; d4=function(X,J){J=J===void 0?NaN:J;J=J>=0?J:g.Jy(X.provider);var L=X.provider.Lm.U5(),x=L.x4-(X.jC||0);x>0&&g.a1(X,J,"bwm",[x,(L.hC-(X.XX||0)).toFixed(3)]);isNaN(X.jC)&&L.x4&&X.isOffline&&X.Bj(!1);X.jC=L.x4;X.XX=L.hC;isNaN(L.bandwidthEstimate)||g.a1(X,J,"bwe",[L.bandwidthEstimate.toFixed(0)]);X.provider.m9.YH()&&Object.keys(L.L).length!==0&&X.Ni("bwinfo",L.L);if(X.provider.m9.YH()||X.provider.m9.Y("html5_log_meminfo"))x=F_8(),Object.values(x).some(function(K){return K!==void 0})&&X.Ni("meminfo", x); if(X.provider.m9.YH()){var Q;(x=(Q=X.J0)==null?void 0:yyv(Q))&&Object.values(x).some(function(K){return K!=null})&&X.Ni("cpuinfo",x)}X.bB&&X.Ni("jsprof",X.bB.flush()); X.D&&g.a1(X,J,"bat",[X.D.level,X.D.charging?"1":"0"]);Q=X.provider.Lm.getVisibilityState();X.YF!==Q&&(g.a1(X,J,"vis",[Q]),X.YF=Q);EZP(X,J);(Q=Y6e(X.provider))&&Q!==X.t_&&(g.a1(X,J,"conn",[Q]),X.t_=Q);huA(X,J,L)}; huA=function(X,J,L){if(!isNaN(L.LG)){var x=L.LG;L.K96E3&&(new g.sn(X.reportStats,0,X)).start()}}; p$8=function(X){X.provider.videoData.ac&&uD(X,"prefetch");X.provider.videoData.H4&&X.Ni("reload",{r:X.provider.videoData.reloadReason,ct:X.provider.videoData.H4});X.provider.videoData.Cm&&uD(X,"monitor");X.provider.videoData.isLivePlayback&&uD(X,"live");VG&&uD(X,"streaming");X.provider.videoData.Az&&X.Ni("ctrl",{mode:X.provider.videoData.Az},!0);if(X.provider.videoData.Jb){var J=X.provider.videoData.Jb.replace(/,/g,"_");X.Ni("ytp",{type:J},!0)}X.provider.videoData.g$&&(J=X.provider.videoData.g$.replace(/,/g, "."),X.Ni("ytrexp",{ids:J},!0));J=X.provider.videoData;var L=X.provider.m9.Y("enable_white_noise")||X.provider.m9.Y("enable_webgl_noop"),x=g.hv(J)||g.ll(J)||g.Rl(J)||g.Bd(J);(L||x)&&(L=(0,g.o1)())&&X.L.set("gpu",[L]);xF(X.provider.videoData)&&g.a1(X,g.Jy(X.provider),"dt",["1"]);X.provider.Y("html5_record_is_offline_on_playback_attempt_start")&&J.cotn&&!xF(J)&&X.Bj(!0);X.provider.m9.YH()&&(J=(0,g.uT)()-X.provider.m9.In,X.Ni("playerage",{secs:Math.pow(1.6,Math.round(Math.log(J/1E3)/Math.log(1.6))).toFixed()})); X.T=!0;X.aB=g.CU(function(){X.reportStats()},1E4)}; vZm=function(X,J,L){var x=g.Jy(X.provider);ryz(X,x,J,0,L);d4(X,x);WOm(X)}; ryz=function(X,J,L,x,Q){var K=X.provider.m9.L.cbrver;X.provider.m9.L.cbr==="Chrome"&&/^96[.]/.test(K)&&L==="net.badstatus"&&/rc\.500/.test(Q)&&j1o(X,3);X.provider.m9.Y("html5_use_ump")&&/b248180278/.test(Q)&&j1o(X,4);K=X.provider.getCurrentTime(X.adCpn||X.provider.videoData.clientPlaybackNonce);x=x===1?"fatal":"";L=[L,x,K.toFixed(3)];x&&(Q+=";a6s."+NR());Q&&L.push(T4e(Q));g.a1(X,J,"error",L);X.T=!0}; czv=function(X,J){var L=g.Jy(X.provider);if(!X.provider.m9.experiments.Mi("html5_refactor_sabr_video_format_selection_logging")||J.L.id!==X.Hl){var x=[J.L.id,J.K,X.Hl,J.reason];J.token&&x.push(J.token);g.a1(X,L,"vfs",x);X.Hl=J.L.id;x=X.provider.Lm.getPlayerSize();if(x.width>0&&x.height>0){x=[Math.round(x.width),Math.round(x.height)];var Q=g.D0();Q>1&&x.push(Q);g.a1(X,L,"view",x)}X.Cm||(X.provider.m9.YH()&&uD(X,"rqs2"),X.provider.videoData.L&&WK(X.provider.videoData.L)&&X.L.set("preload",["1"]));X.Cm= !0;X.T=!0}J.reason==="m"&&++X.jk===100&&j1o(X,2);g.a1(X,L,"vps",[X.Sk]);X.Pl||X.reportStats(L)}; GAZ=function(X){X.N>=0||(X.provider.m9.qQ||X.provider.Lm.getVisibilityState()!==3?X.N=g.Jy(X.provider):X.SC=!0)}; P0R=function(X,J,L){if(X.provider.m9.experiments.Mi("html5_refactor_sabr_audio_format_selection_logging")){J=L.L;var x=[J.audio&&J.video?J.Ij?J.Ij:"":J.id];J.OH&&J.OH.id&&x.push(J.OH.id);J=x.join(";");J!==X.B&&(x=[J,X.B,L.reason],L.token&&x.push(L.token),g.a1(X,g.Jy(X.provider),"afs",x),X.B=J)}else L.L.id!==X.B&&(x=[L.L.id,X.B,L.reason],L.token&&x.push(L.token),g.a1(X,J,"afs",x),X.B=L.L.id)}; uD=function(X,J){ty(X,"cat",J)}; fMO=function(X,J,L,x,Q){var K=g.Jy(X.provider);J!==1&&J!==3&&J!==5||g.a1(X,K,"vps",[X.Sk]);ty(X,"xvt","t."+K.toFixed(3)+";m."+Q.toFixed(3)+";g.2;tt."+J+";np.0;c."+L+";d."+x)}; j1o=function(X,J){X.A0||(ty(X,"fcnz",""+J),X.A0=!0)}; T4e=function(X){/[^a-zA-Z0-9;.!_-]/.test(X)&&(X=X.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return X}; eue=function(X){this.provider=X;this.W=!1;this.L=0;this.T=-1;this.aY=NaN;this.N=0;this.segments=[];this.B=this.j=0;this.previouslyEnded=!1;this.D=this.provider.Lm.getVolume();this.S=this.provider.Lm.isMuted()?1:0;this.K=bD(this.provider)}; Sa=function(X){X.K.startTime=X.N;X.K.endTime=X.L;var J=!1;X.segments.length&&g.V0(X.segments).isEmpty()?(X.segments[X.segments.length-1].previouslyEnded&&(X.K.previouslyEnded=!0),X.segments[X.segments.length-1]=X.K,J=!0):X.segments.length&&X.K.isEmpty()||(X.segments.push(X.K),J=!0);J?X.K.endTime===0&&(X.previouslyEnded=!1):X.K.previouslyEnded&&(X.previouslyEnded=!0);X.j+=X.L-X.N;X.K=bD(X.provider);X.K.previouslyEnded=X.previouslyEnded;X.previouslyEnded=!1;X.N=X.L}; lM8=function(X){FOR(X);X.B=g.CU(function(){X.update()},100); X.aY=g.Jy(X.provider);X.K=bD(X.provider)}; FOR=function(X){g.yQ(X.B);X.B=NaN}; RuR=function(X,J,L){L-=X.aY;return J===X.L&&L>.5}; B48=function(X,J,L,x){this.m9=J;this.sH=L;this.segments=[];this.experimentIds=[];this.SC=this.If=this.isFinal=this.delayThresholdMet=this.z6=this.YF=this.autoplay=this.autonav=!1;this.t_="yt";this.B=[];this.W=this.D=null;this.sendVisitorIdHeader=this.J0=!1;this.S=this.pageId="";this.j=L==="watchtime";this.N=L==="playback";this.FE=L==="atr";this.o2=L==="engage";this.sendVisitorIdHeader=!1;this.uri=this.FE?"/api/stats/"+L:"//"+J.yS+"/api/stats/"+L;x&&(this.If=x.fs,x.rtn&&(this.W=x.rtn),this.j?(this.playerState= x.state,x.rti>0&&(this.D=x.rti)):(this.YU=x.mos,this.Vq=x.volume,x.at&&(this.adType=x.at)),x.autonav&&(this.autonav=x.autonav),x.inview!=null&&(this.H9=x.inview),x.size&&(this.XX=x.size),x.playerwidth&&(this.BO=x.playerwidth),x.playerheight&&(this.fY=x.playerheight));this.jk=g.Vf(J.L);this.S=Ha(J.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.S==="all"||this.S==="once")this.H4=g.Vf(J.If);this.qQ=J.YF;this.experimentIds=sJY(J.experiments);this.bB=J.jk;this.t_=J.Km;this.region=J.region; this.userAge=J.userAge;this.Cm=J.ac;this.oT=a4();this.sendVisitorIdHeader=J.sendVisitorIdHeader;this.gI=J.Y("vss_pings_using_networkless")||J.Y("kevlar_woffle");this.In=J.Y("vss_final_ping_send_and_write");this.Bl=J.Y("vss_use_send_and_write");this.pageId=J.pageId;this.HO=J.Y("vss_playback_use_send_and_write");J.livingRoomAppMode&&(this.livingRoomAppMode=J.livingRoomAppMode);this.jT=J.T&&J.Y("embeds_append_synth_ch_headers");g.lb(J)&&(this.jC=J.FE);g.qk(g.AY(J))&&this.B.push(1);this.accessToken=g.X3(X); X.C$[this.sH]?this.T=X.C$[this.sH]:X.C$.playback&&(this.T=X.C$.playback);this.adFormat=X.adFormat;this.adQueryId=X.adQueryId;this.autoplay=cEI(X);this.N&&(this.YF=X.Hk&&m_(X)==="adunit"?!0:!1);this.autonav=X.isAutonav||this.autonav;this.contentVideoId=ZX(X);this.clientPlaybackNonce=X.clientPlaybackNonce;this.z6=X.UM;X.B&&(this.aB=X.B,this.Nx=X.SQ);X.mdxEnvironment&&(this.mdxEnvironment=X.mdxEnvironment);this.L=X.t_;this.Lp=X.Lp;X.K&&(this.RT=X.K.itag,X.T&&X.T.itag!==this.RT&&(this.A0=X.T.itag));X.L&& WK(X.L)&&(this.offlineDownloadUserChoice="1");this.eventLabel=m_(X);this.SC=X.HO?!1:X.Vq;this.ek=X.NK;if(J=vd(X))this.LW=J;this.r0=X.YC;this.partnerId=X.partnerId;this.eventId=X.eventId;this.playlistId=X.jV||X.playlistId;this.m7=X.m7;this.Az=X.Az;this.Jb=X.Jb;this.QN=X.QN;this.subscribed=X.subscribed;this.videoId=X.videoId;this.videoMetadata=X.videoMetadata;this.visitorData=X.visitorData;this.osid=X.osid;this.zL=X.zL;this.referrer=X.referrer;this.RV=X.fd||X.RV;this.O6=X.Wx;this.pG=X.pG;this.userGenderAge= X.userGenderAge;this.L7=X.L7;this.embedsRct=X.embedsRct;this.embedsRctn=X.embedsRctn;g.lb(this.m9)&&X.mutedAutoplay&&(X.mutedAutoplayDurationMode===2&&X.limitedPlaybackDurationInSeconds===0&&X.endSeconds===0?this.B.push(7):this.B.push(2));X.isEmbedsShortsMode(new g.B_(this.BO,this.fY),!!this.playlistId)&&this.B.push(3);g.CO(X)&&this.B.push(4);this.Hl=X.TJ;X.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=X.compositeLiveIngestionOffsetToken)}; s1I=function(X,J){var L=X.sendVisitorIdHeader?X.visitorData:void 0;return g.wT(X.m9,X.accessToken).then(function(x){return aM8(X.uri,X.m9,X.pageId,L,x,J,X.jT)})}; miO=function(X,J){return function(){X.m9.Y("html5_simplify_pings")?(X.L=X.vl,X.pO=J(),X.oT=0,X.send()):s1I(X).then(function(L){var x=N4Y(X);x.cmt=x.len;x.lact="0";var Q=J().toFixed(3);x.rt=Number(Q).toString();x=g.Hw(X.uri,x);X.m9.Y("vss_through_gel_double")&&UiA(x);X.gI?(L==null&&(L={}),X.Bl?FN().sendAndWrite(x,L):FN().sendThenWrite(x,L)):L?g.t8(x,L):g.zp(x)})}}; N4Y=function(X){var J={ns:X.t_,el:X.eventLabel,cpn:X.clientPlaybackNonce,ver:2,cmt:X.K(X.L),fmt:X.RT,fs:X.If?"1":"0",rt:X.K(X.pO),adformat:X.adFormat,content_v:X.contentVideoId,euri:X.qQ,lact:X.oT,live:X.LW,cl:(774994103).toString(),mos:X.YU,state:X.playerState,volume:X.Vq};X.subscribed&&(J.subscribed="1");Object.assign(J,X.jk);X.S==="all"?Object.assign(J,X.H4):X.S==="once"&&X.N&&Object.assign(J,X.H4);X.autoplay&&(J.autoplay="1");X.YF&&(J.sautoplay="1");X.z6&&(J.dni="1");!X.j&&X.jC&&(J.epm=kAI[X.jC]); X.isFinal&&(J["final"]="1");X.SC&&(J.splay="1");X.Lp&&(J.delay=X.Lp);X.bB&&(J.hl=X.bB);X.region&&(J.cr=X.region);X.userGenderAge&&(J.uga=X.userGenderAge);X.userAge!==void 0&&X.Cm&&(J.uga=X.Cm+X.userAge);X.vl!==void 0&&(J.len=X.K(X.vl));!X.j&&X.experimentIds.length>0&&(J.fexp=X.experimentIds.toString());X.W!==null&&(J.rtn=X.K(X.W));X.RV&&(J.feature=X.RV);X.Az&&(J.ctrl=X.Az);X.Jb&&(J.ytr=X.Jb);X.A0&&(J.afmt=X.A0);X.offlineDownloadUserChoice&&(J.ODUC=X.offlineDownloadUserChoice);X.Km&&(J.lio=X.K(X.Km)); X.j?(J.idpj=X.ek,J.ldpj=X.r0,X.delayThresholdMet&&(J.dtm="1"),X.D!=null&&(J.rti=X.K(X.D)),X.L7&&(J.ald=X.L7),X.compositeLiveIngestionOffsetToken&&(J.clio=X.compositeLiveIngestionOffsetToken)):X.adType!==void 0&&(J.at=X.adType);X.XX&&(X.N||X.j)&&(J.size=X.XX);X.N&&X.B.length&&(J.pbstyle=X.B.join(","));X.H9!=null&&(X.N||X.j)&&(J.inview=X.K(X.H9));X.j&&(J.volume=P$(X,g.H5(X.segments,function(x){return x.volume})),J.st=P$(X,g.H5(X.segments,function(x){return x.startTime})),J.et=P$(X,g.H5(X.segments,function(x){return x.endTime})), Fe(X.segments,function(x){return x.playbackRate!==1})&&(J.rate=P$(X,g.H5(X.segments,function(x){return x.playbackRate}))),Fe(X.segments,function(x){return x.L!=="-"})&&(J.als=g.H5(X.segments,function(x){return x.L}).join(",")),Fe(X.segments,function(x){return x.previouslyEnded})&&(J.pe=g.H5(X.segments,function(x){return""+ +x.previouslyEnded}).join(","))); J.muted=P$(X,g.H5(X.segments,function(x){return x.muted?1:0})); Fe(X.segments,function(x){return x.visibilityState!==0})&&(J.vis=P$(X,g.H5(X.segments,function(x){return x.visibilityState}))); Fe(X.segments,function(x){return x.connectionType!==0})&&(J.conn=P$(X,g.H5(X.segments,function(x){return x.connectionType}))); Fe(X.segments,function(x){return x.K!==0})&&(J.blo=P$(X,g.H5(X.segments,function(x){return x.K}))); Fe(X.segments,function(x){return!!x.N})&&(J.blo=g.H5(X.segments,function(x){return x.N}).join(",")); Fe(X.segments,function(x){return!!x.compositeLiveStatusToken})&&(J.cbs=g.H5(X.segments,function(x){return x.compositeLiveStatusToken}).join(",")); Fe(X.segments,function(x){return x.T!=="-"})&&(J.cc=g.H5(X.segments,function(x){return x.T}).join(",")); Fe(X.segments,function(x){return x.clipId!=="-"})&&(J.clipid=g.H5(X.segments,function(x){return x.clipId}).join(",")); if(Fe(X.segments,function(x){return!!x.audioId})){var L="au"; X.N&&(L="au_d");J[L]=g.H5(X.segments,function(x){return x.audioId}).join(",")}iZ()&&X.aB&&(J.ctt=X.aB,J.cttype=X.Nx,J.mdx_environment=X.mdxEnvironment); X.o2&&(J.etype=X.Pl!==void 0?X.Pl:0);X.O6&&(J.uoo=X.O6);X.livingRoomAppMode&&X.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(J.clram=ZtW[X.livingRoomAppMode]||X.livingRoomAppMode);X.T?AyW(X,J):(J.docid=X.videoId,J.referrer=X.referrer,J.ei=X.eventId,J.of=X.zL,J.osid=X.osid,J.vm=X.videoMetadata,X.adQueryId&&(J.aqi=X.adQueryId),X.autonav&&(J.autonav="1"),X.playlistId&&(J.list=X.playlistId),X.QN&&(J.ssrt="1"),X.pG&&(J.upt=X.pG));X.N&&(X.embedsRct&&(J.rct=X.embedsRct),X.embedsRctn&&(J.rctn= X.embedsRctn),X.compositeLiveIngestionOffsetToken&&(J.clio=X.compositeLiveIngestionOffsetToken));X.Hl&&(J.host_cpn=X.Hl);return J}; AyW=function(X,J){if(J&&X.T){var L=new Set(["q","feature","mos"]),x=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),Q=new Set(["aqi","autonav","list","ssrt","upt"]);X.T.ns==="3pp"&&(J.ns="3pp");for(var K=g.d(Object.keys(X.T)),q=K.next();!q.done;q=K.next())q=q.value,x.has(q)||L.has(q)||Q.has(q)&&!X.T[q]||(J[q]=X.T[q])}}; P$=function(X,J){return g.H5(J,X.K).join(",")}; UiA=function(X){X.indexOf("watchtime")!==-1&&g.QK("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:X}})}; XSY=function(X,J){X.attestationResponse&&s1I(X).then(function(L){L=L||{};L.method="POST";L.postParams={atr:X.attestationResponse};X.gI?X.Bl?FN().sendAndWrite(J,L):FN().sendThenWrite(J,L):g.t8(J,L)})}; c$=function(X){g.G.call(this);this.provider=X;this.B="paused";this.j=NaN;this.W=[10,10,10,40];this.D=this.S=0;this.aB=this.FE=this.Pl=this.Km=this.N=!1;this.K=this.T=NaN;this.logger=new g.OS("vss");this.L=new eue(X)}; QUW=function(X){if(!X.N){X.provider.videoData.MB===16623&&g.PM(Error("Playback for EmbedPage"));var J=E6(X,"playback");X.W=JrA(X);lM8(X.L);J.W=YZ(X);X.K>0&&(J.L-=X.K);J.send();if(X.provider.videoData.Mm){J=X.provider.m9;var L=X.provider.videoData,x={html5:"1",video_id:L.videoId,cpn:L.clientPlaybackNonce,ei:L.eventId,ptk:L.Mm,oid:L.T5,ptchn:L.PG,pltype:L.fU,content_v:ZX(L)};L.Uq&&Object.assign(x,{m:L.Uq});J=g.Hw(J.VZ+"ptracking",x);LtA(X,J)}X.provider.videoData.Lp||(x9P(X),iSo(X));X.N=!0;X=X.L;X.L= X.eT();X.aY=g.Jy(X.provider);!(X.N===0&&X.L<5)&&X.L-X.N>2&&(X.N=X.L);X.W=!0}}; JrA=function(X){var J=X.provider.videoData.NK,L=X.provider.videoData.YC,x=[10+J,10,10,40+L-J,40],Q,K=(Q=X.provider.videoData.getPlayerResponse())==null?void 0:Q.playbackTracking,q=K==null?void 0:K.videostatsScheduledFlushWalltimeSeconds;Q=K==null?void 0:K.videostatsDefaultFlushIntervalSeconds;if(!(q&&q.length>0&&Q))return X.logger.info("Missing valid scheduled pings config "+q+" "+Q),x;J=[q[0]+J].concat(g.nR(q.slice(1).map(function(D,C){return D-q[C]})),[Q+L-J, Q]);return J.some(function(D){return D<0})?(X.logger.L(347111855,"Neg vss scheduled pings "+q+" "+Q),x):J}; YZ=function(X,J){J=J===void 0?NaN:J;var L=g.Jy(X.provider);J=isNaN(J)?L:J;J=Math.ceil(J);var x=X.W[X.S];X.S+11E3;!(K.length>1)&&K[0].isEmpty()||D||(q.W=YZ(X,Q));q.send();X.D++}},(Q-L)*1E3); return X.T=Q}; hy=function(X){g.MV(X.j);X.j=NaN}; Ktv=function(X){X.L.update();X=X.L;X.segments.length&&X.L===X.N||Sa(X);var J=X.segments;X.segments=[];return J}; E6=function(X,J){var L=Ide(X.provider);Object.assign(L,{state:X.B});J=new B48(X.provider.videoData,X.provider.m9,J,L);J.L=X.provider.Lm.eT();L=X.provider.videoData.clientPlaybackNonce;J.L=X.provider.Lm.A3(L);X.provider.videoData.isLivePlayback||(J.vl=X.provider.Lm.getDuration(L));X.provider.videoData.L&&(L=X.provider.videoData.L.L3(J.L))&&(J.Km=L-J.L,X.provider.m9.Y("html5_disable_live_dvr_shrink_for_cdm_vss")&&tv(X.provider.videoData)&&(J.L+=X.provider.Lm.W4(),J.Km-=X.provider.Lm.W4()));J.pO=g.Jy(X.provider); J.segments=[bD(X.provider)];return J}; qfZ=function(X,J){var L=E6(X,"watchtime");giR(X)&&(L.delayThresholdMet=!0,X.Pl=!0);if(X.K>0){for(var x=g.d(J),Q=x.next();!Q.done;Q=x.next())Q=Q.value,Q.startTime-=X.K,Q.endTime-=X.K;L.L-=X.K}else L.L=X.L.L;L.segments=J;return L}; zA=function(X,J){var L=D9A(X,!isNaN(X.T));J&&(X.T=NaN);return L}; D9A=function(X,J){var L=qfZ(X,Ktv(X));!isNaN(X.T)&&J&&(L.D=X.T);return L}; giR=function(X){var J;if(J=X.provider.videoData.isLoaded()&&X.provider.videoData.Lp&&X.N&&!X.Pl)J=X.L,J=J.j+J.eT()-J.N>=X.provider.videoData.Lp;return!!J}; x9P=function(X){X.provider.videoData.youtubeRemarketingUrl&&!X.FE&&(LtA(X,X.provider.videoData.youtubeRemarketingUrl),X.FE=!0)}; iSo=function(X){X.provider.videoData.googleRemarketingUrl&&!X.aB&&(LtA(X,X.provider.videoData.googleRemarketingUrl),X.aB=!0)}; $9P=function(X){if(!X.E6()&&X.N){X.B="paused";var J=zA(X);J.isFinal=!0;J.send();X.dispose()}}; CXY=function(X,J){if(!X.E6())if(g.N(J.state,2)||g.N(J.state,512)){if(X.B="paused",g.Ds(J,2)||g.Ds(J,512))g.Ds(J,2)&&(X.L.previouslyEnded=!0),X.N&&(hy(X),zA(X).send(),X.T=NaN)}else if(g.N(J.state,8)){X.B="playing";var L=X.N&&isNaN(X.j)?YZ(X):NaN;if(!isNaN(L)&&(gn(J,64)<0||gn(J,512)<0)){var x=D9A(X,!1);x.W=L;x.send()}g.Ds(J,16)&&J.state.seekSource===58&&(X.L.previouslyEnded=!0)}else X.B="paused"}; MdP=function(X,J,L){if(!X.Km){L||(L=E6(X,"atr"));L.attestationResponse=J;try{L.send()}catch(x){if(x.message!=="Unknown Error")throw x;}X.Km=!0}}; LtA=function(X,J){var L=X.provider.m9;g.wT(X.provider.m9,g.X3(X.provider.videoData)).then(function(x){var Q=X.provider.m9.pageId,K=X.provider.m9.sendVisitorIdHeader?X.provider.videoData.visitorData:void 0,q=X.provider.m9.Y("vss_pings_using_networkless")||X.provider.m9.Y("kevlar_woffle"),D=X.provider.m9.Y("allow_skip_networkless");x=aM8(J,L,Q,K,x);w$m(J,x,{token:X.provider.videoData.B,dT:X.provider.videoData.SQ,mdxEnvironment:X.provider.videoData.mdxEnvironment},L,void 0,q&&!D,!1,!0)})}; yrY=function(){this.endTime=this.startTime=-1;this.T="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.K=0;this.compositeLiveStatusToken=this.N=void 0;this.volume=this.connectionType=0;this.muted=!1;this.L=this.clipId="-";this.previouslyEnded=!1}; W$=function(X,J,L){this.videoData=X;this.m9=J;this.Lm=L;this.L=void 0}; g.Jy=function(X){return niR(X)()}; niR=function(X){if(!X.L){var J=g.g3(function(x){var Q=(0,g.uT)();x&&Q<=631152E6&&(X.Lm.Ni("ytnerror",{issue:28799967,value:""+Q}),Q=(new Date).getTime()+2);return Q},X.m9.Y("html5_validate_yt_now")),L=J(); X.L=function(){return Math.round(J()-L)/1E3}; X.Lm.Yt()}return X.L}; Ide=function(X){var J=X.Lm.WN()||{};J.fs=X.Lm.RC();J.volume=X.Lm.getVolume();J.muted=X.Lm.isMuted()?1:0;J.mos=J.muted;J.clipid=X.Lm.dk();var L;J.playerheight=((L=X.Lm.getPlayerSize())==null?void 0:L.height)||0;var x;J.playerwidth=((x=X.Lm.getPlayerSize())==null?void 0:x.width)||0;X=X.videoData;L={};X.K&&(L.fmt=X.K.itag,X.T&&(X.sH?X.T.itag!==X.K.itag:X.T.itag!=X.K.itag)&&(L.afmt=X.T.itag));L.ei=X.eventId;L.list=X.playlistId;L.cpn=X.clientPlaybackNonce;X.videoId&&(L.v=X.videoId);X.M0&&(L.infringe=1); (X.HO?0:X.Vq)&&(L.splay=1);(x=vd(X))&&(L.live=x);X.Hk&&(L.sautoplay=1);X.lZ&&(L.autoplay=1);X.m7&&(L.sdetail=X.m7);X.partnerId&&(L.partnerid=X.partnerId);X.osid&&(L.osid=X.osid);X.XI&&(L.cc=g.XhZ(X.XI));return Object.assign(J,L)}; Y6e=function(X){var J=PAm();if(J)return VdR[J]||VdR.other;if(g.nD(X.m9)){X=navigator.userAgent;if(/[Ww]ireless[)]/.test(X))return 3;if(/[Ww]ired[)]/.test(X))return 30}return 0}; bD=function(X){var J=new yrY,L;J.T=((L=Ide(X).cc)==null?void 0:L.toString())||"-";J.playbackRate=X.Lm.getPlaybackRate();L=X.Lm.getVisibilityState();L!==0&&(J.visibilityState=L);X.m9.A0&&(J.K=1);J.N=X.videoData.bL;J.compositeLiveStatusToken=X.videoData.compositeLiveStatusToken;L=X.Lm.getAudioTrack();L.OH&&L.OH.id&&L.OH.id!=="und"&&(J.audioId=L.OH.id);J.connectionType=Y6e(X);J.volume=X.Lm.getVolume();J.muted=X.Lm.isMuted();J.clipId=X.Lm.dk()||"-";J.L=X.videoData.k$||"-";return J}; g.pt=function(X,J){g.G.call(this);var L=this;this.provider=X;this.N=new Map;this.Sk=new g.ds;this.Zh={P3Y:function(){return L.qoe}, dn9:function(){return L.L}, tZM:function(){return L.K}}; this.provider.videoData.bl()&&!this.provider.videoData.CA&&(this.L=new c$(this.provider),this.L.K=0,g.f(this,this.L),this.qoe=new g.w4(this.provider,J),g.f(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.A2=this.provider.videoData.clientPlaybackNonce)&&this.N.set(this.A2,this.L));if(X.m9.playerCanaryState==="canary"||X.m9.playerCanaryState==="holdback")this.K=new nt(this.provider),g.f(this,this.K)}; HSz=function(X){X.K&&gZI(X.K);X.qoe&&GAZ(X.qoe)}; OSA=function(X){if(X.qoe){X=X.qoe;for(var J=X.provider.videoData,L=X.provider.m9,x=g.d(L.jX),Q=x.next();!Q.done;Q=x.next())uD(X,Q.value);if(X.provider.Y("html5_enable_qoe_cat_list"))for(x=g.d(J.rF),Q=x.next();!Q.done;Q=x.next())uD(X,Q.value);else J.jX&&uD(X,X.provider.videoData.jX);J.Zw()&&(x=J.L,Pd(J)&&uD(X,"manifestless"),x&&Re(x)&&uD(X,"live-segment-"+Re(x).toFixed(1)));dN(J)?uD(X,"sabr"):X.CV(YU(J));if(Jz(J)||J.OA())J.OA()&&uD(X,"ssa"),uD(X,"lifa");tv(J)&&uD(X,"cdm");J.gatewayExperimentGroup&& (x=J.gatewayExperimentGroup,x==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?x="spkadtrt":x==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(x="spkadctrl"),uD(X,x));L.Km!=="yt"&&X.L.set("len",[J.lengthSeconds.toFixed(2)]);J.cotn&&!xF(J)&&X.Bj(!0);L.YH()&&(J=PDS())&&X.Ni("cblt",{m:J});if(L.Y("html5_log_screen_diagonal")){L=X.Ni;var K;J=((K=window.H5vccScreen)==null?0:K.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;L.call(X,"cbltdiag",{v:J})}}}; adO=function(X,J){X.L&&(X=X.L,J===58?X.L.update():X.N&&(hy(X),zA(X).send(),X.T=NaN))}; wS8=function(X,J){if(g.Ds(J,1024)||g.Ds(J,512)||g.Ds(J,4)){if(X.K){var L=X.K;L.K>=0||(L.L=-1,L.delay.stop())}X.qoe&&(L=X.qoe,L.W||(L.N=-1))}if(X.provider.videoData.enableServerStitchedDai&&X.A2){var x;(x=X.N.get(X.A2))==null||CXY(x,J)}else X.L&&CXY(X.L,J);if(X.qoe){x=X.qoe;L=J.state;var Q=g.Jy(x.provider),K=x.getPlayerState(L),q=L.seekSource||void 0;if(K!==x.Sk){x.Pl||Q= 10&&x.playTimeSecs<=180&&(x.L.set("qoealert",["1"]),x.Lp=!0)),K!=="B"||x.Sk!=="PL"&&x.Sk!=="PB"||(x.isBuffering=!0),x.K=Q);x.Sk==="PL"&&(K==="B"||K==="S")||x.provider.m9.YH()?d4(x,Q):(x.Nx||K!=="PL"||(x.Nx=!0,huA(x,Q,x.provider.Lm.U5())),EZP(x,Q));K==="PL"&&g.Nc(x.pO);var D=[K];K==="S"&&q&&D.push("ss."+q);g.a1(x,Q,"vps",D);x.Sk=K;x.Km=Q;x.K=Q;x.T=!0}K=L.pn;g.N(L,128)&&K&&(K.UL=K.UL||"",ryz(x,Q,K.errorCode,K.I4,K.UL));(g.N(L,2)||g.N(L,128))&&x.reportStats(Q);L.isPlaying()&&!x.W&&(x.N>=0&&x.L.set("user_intent", [x.N.toString()]),x.W=!0);WOm(x)}X.K&&(X=X.K,Div(X),X.playerState=J.state,X.K>=0&&g.Ds(J,16)&&X.seekCount++,J.state.isError()&&X.send())}; tdP=function(X){X.K&&X.K.send();if(X.qoe){var J=X.qoe;if(J.T){J.Sk==="PL"&&(J.Sk="N");var L=g.Jy(J.provider);g.a1(J,L,"vps",[J.Sk]);J.W||(J.N>=0&&J.L.set("user_intent",[J.N.toString()]),J.W=!0);J.provider.m9.YH()&&J.Ni("finalized",{});J.gI=!0;J.reportStats(L)}}if(X.provider.videoData.enableServerStitchedDai)for(J=g.d(X.N.values()),L=J.next();!L.done;L=J.next())$9P(L.value);else X.L&&$9P(X.L);X.dispose()}; d9R=function(X,J){X.L&&MdP(X.L,J)}; uDv=function(X){if(!X.L)return null;var J=E6(X.L,"atr");return function(L){X.L&&MdP(X.L,L,J)}}; oiv=function(X,J,L,x){L.adFormat=L.qQ;var Q=J.Lm;J=new c$(new W$(L,J.m9,{getDuration:function(){return L.lengthSeconds}, getCurrentTime:function(){return Q.getCurrentTime()}, eT:function(){return Q.eT()}, A3:function(){return Q.A3()}, U5:function(){return Q.U5()}, getPlayerSize:function(){return Q.getPlayerSize()}, getAudioTrack:function(){return L.getAudioTrack()}, getPlaybackRate:function(){return Q.getPlaybackRate()}, S6:function(){return Q.S6()}, getVisibilityState:function(){return Q.getVisibilityState()}, r5:function(){return Q.r5()}, WN:function(){return Q.WN()}, getVolume:function(){return Q.getVolume()}, isMuted:function(){return Q.isMuted()}, RC:function(){return Q.RC()}, dk:function(){return Q.dk()}, getProximaLatencyPreference:function(){return Q.getProximaLatencyPreference()}, Yt:function(){Q.Yt()}, Ni:function(K,q){Q.Ni(K,q)}, e8:function(){return Q.e8()}, W4:function(){return Q.W4()}})); J.K=x;g.f(X,J);return J}; bSZ=function(){this.LG=0;this.N=this.hC=this.x4=this.K=NaN;this.L={};this.bandwidthEstimate=NaN}; SfP=function(){this.L=g.Bf;this.array=[]}; crY=function(X,J,L){var x=[];for(J=PXA(X,J);JL)break}return x}; EiW=function(X,J){var L=[];X=g.d(X.array);for(var x=X.next();!x.done&&!(x=x.value,x.contains(J)&&L.push(x),x.start>J);x=X.next());return L}; Yfo=function(X){return X.array.slice(PXA(X,0x7ffffffffffff),X.array.length)}; PXA=function(X,J){X=Fv(X.array,function(L){return J-L.start||1}); return X<0?-(X+1):X}; h1v=function(X,J){var L=NaN;X=g.d(X.array);for(var x=X.next();!x.done;x=X.next())if(x=x.value,x.contains(J)&&(isNaN(L)||x.endJ&&(isNaN(L)||x.startX.mediaTime+X.j&&J1)X.T=!0;if((Q===void 0?0:Q)||isNaN(X.K))X.K=J;if(X.L)J!==X.mediaTime&&(X.L=!1);else if(J>0&&X.mediaTime===J){Q=1500;if(X.m9.Y("html5_buffer_underrun_transition_fix")){Q=g.J_(X.m9.experiments,"html5_min_playback_advance_for_steady_state_secs");var K=g.J_(X.m9.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");Q=Q>0&&K>0&&Math.abs(J-X.K)(x||!X.T?Q:400)}X.mediaTime=J;X.N=L;return!1}; e1z=function(X,J){this.videoData=X;this.L=J}; FtY=function(X,J,L){return J.M_(L).then(function(){return c6(new e1z(J,J.N))},function(x){x instanceof Error&&g.PM(x); var Q=HU('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),K=ax('audio/mp4; codecs="mp4a.40.2"'),q=Q||K,D=J.isLivePlayback&&!g.wy(X.j,!0);x="fmt.noneavailable";D?x="html5.unsupportedlive":q||(x="html5.missingapi");q=D||!q?2:1;Q={buildRej:"1",a:J.xx(),d:!!J.XX,drm:J.zC(),f18:J.YU.indexOf("itag=18")>=0,c18:Q};J.L&&(J.zC()?(Q.f142=!!J.L.L["142"],Q.f149=!!J.L.L["149"],Q.f279=!!J.L.L["279"]):(Q.f133=!!J.L.L["133"],Q.f140=!!J.L.L["140"],Q.f242=!!J.L.L["242"]),Q.cAAC=K,Q.cAVC=ax('video/mp4; codecs="avc1.42001E"'), Q.cVP9=ax('video/webm; codecs="vp9"'));J.j&&(Q.drmsys=J.j.keySystem,K=0,J.j.L&&(K=Object.keys(J.j.L).length),Q.drmst=K);return new g.Mh(x,Q,q)})}; TA=function(X){this.data=window.Float32Array?new Float32Array(X):Array(X);this.K=this.L=X-1}; ldm=function(X){return X.data[X.L]||0}; R1W=function(X){this.j=X;this.N=this.K=0;this.T=new TA(50)}; ft=function(X,J,L){g.Ly.call(this);this.videoData=X;this.experiments=J;this.j=L;this.K=[];this.yj=0;this.N=!0;this.T=!1;this.B=0;L=new BlO;X.latencyClass==="ULTRALOW"&&(L.B=!1);X.Cm?L.N=3:g.ew(X)&&(L.N=2);X.latencyClass==="NORMAL"&&(L.j=!0);L.Km=dN(X)&&J.Mi("html5_refactor_decouple_liveness");g.J_(J,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.J_(J,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||X.latencyClass!=="LOW"&&X.latencyClass!=="ULTRALOW"||(L.j=!0);var x= g.J_(J,"html5_liveness_drift_proxima_override");if(YU(X)!==0&&x){L.L=x;var Q;((Q=X.L)==null?0:DrW(Q))&&L.L--}dN(X)&&J.Mi("html5_sabr_parse_live_metadata_playback_boundaries")&&(L.aB=!0);if(g.To("trident/")||g.To("edge/"))Q=g.J_(J,"html5_platform_minimum_readahead_seconds")||3,L.T=Math.max(L.T,Q);g.J_(J,"html5_minimum_readahead_seconds")&&(L.T=g.J_(J,"html5_minimum_readahead_seconds"));g.J_(J,"html5_maximum_readahead_seconds")&&(L.D=g.J_(J,"html5_maximum_readahead_seconds"));J.Mi("html5_force_adaptive_readahead")&& (L.B=!0);if(Q=g.J_(J,"html5_liveness_drift_chunk_override"))L.L=Q;cd(X)&&(L.L=(L.L+1)/5,X.latencyClass==="LOW"&&(L.L*=2));!dN(X)||X.latencyClass!=="ULTRALOW"&&X.latencyClass!=="LOW"||(L.S=g.J_(J,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,L.W=g.J_(J,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=L;this.W=this.policy.N!==1;this.L=GA(this,sUZ(this,isNaN(X.liveChunkReadahead)?3:X.liveChunkReadahead,X))}; NlY=function(X,J){if(J)return J=X.videoData,J=sUZ(X,isNaN(J.liveChunkReadahead)?3:J.liveChunkReadahead,J),GA(X,J);if(X.K.length){if(Math.min.apply(null,X.K)>1)return GA(X,X.L-1);if(X.policy.B)return GA(X,X.L+1)}return X.L}; U9Z=function(X,J){if(!X.K.length)return!1;var L=X.L;X.L=NlY(X,J===void 0?!1:J);if(J=L!==X.L)X.K=[],X.yj=0;return J}; ea=function(X,J){return J>=X.Fb()-m9v(X)}; kzo=function(X,J,L){J=ea(X,J);L||J?J&&(X.N=!0):X.N=!1;X.W=X.policy.N===2||X.policy.N===3&&X.N}; ZSm=function(X,J){J=ea(X,J);X.T!==J&&X.publish("livestatusshift",J);X.T=J}; m9v=function(X){var J=X.policy.L;X.T||(J=Math.max(J-1,0));return J*F6(X)}; sUZ=function(X,J,L){L.Cm&&J--;cd(L)&&(J=1);if(YU(L)!==0&&(X=g.J_(X.experiments,"html5_live_chunk_readahead_proxima_override"))){J=X;var x;((x=L.L)==null?0:DrW(x))&&J++}return J}; F6=function(X){return X.videoData.L?Re(X.videoData.L)||5:5}; GA=function(X,J){J=Math.max(Math.max(1,Math.ceil(X.policy.T/F6(X))),J);return Math.min(Math.min(8,Math.floor(X.policy.D/F6(X))),J)}; BlO=function(){this.T=0;this.D=Infinity;this.B=!0;this.K=this.L=2;this.N=1;this.j=!1;this.W=10;this.aB=!1;this.S=1;this.Km=!1}; B$=function(X){g.G.call(this);this.Lm=X;this.L=0;this.K=null;this.B=this.T=0;this.N={};this.m9=this.Lm.G();this.j=new g.sn(this.w0,1E3,this);this.SC=lD(this,"html5_seek_timeout_delay_ms");this.Pl=lD(this,"html5_long_rebuffer_threshold_ms");this.J0=lD(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.Bl=lD(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.jC=lD(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.Nx=lD(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.Km=lD(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.aB=new R1(2E4);this.vl=lD(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.bB=lD(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.Hl=lD(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.gI=lD(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.S=lD(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.D=lD(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.O6=lD(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.W=lD(this,"html5_ads_preroll_lock_timeout_delay_ms","html5_ads_preroll_lock_timeout_cfl");this.Cm=new R1(g.J_(this.m9.experiments,"html5_skip_slow_ad_delay_ms")|| 5E3,!this.m9.Y("html5_report_slow_ads_as_error"));this.A0=new R1(g.J_(this.m9.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.m9.Y("html5_skip_slow_buffering_ad"));this.Lp=lD(this,"html5_slow_start_timeout_delay_ms");this.FE=lD(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.f(this,this.j)}; lD=function(X,J,L){L=L===void 0?null:L;var x=x===void 0?0:x;return new R1(g.J_(X.m9.experiments,J)||x,L?X.m9.Y(L):!1)}; Arm=function(X,J){X.L=J}; s6=function(X,J,L,x,Q,K,q,D){J.test(L)?(X.NF(Q,J,q),J.B||K()):(!J.K||J.T?L=!1:(L=(0,g.uT)(),x?J.L||(J.L=L):J.L=0,K=!x&&L-J.K>3E4,L=J.L&&L-J.L>1E3||K?J.T=!0:!1),L&&(D=Object.assign({},X.yr(J),D),D.wn=q,D.we=Q,D.wsuc=x,X.Lm.Ni("workaroundReport",D),x&&(J.reset(),X.N[Q]=!1)))}; R1=function(X,J){this.B=J===void 0?!1:J;this.L=this.K=this.N=this.startTimestamp=0;this.T=!1;this.j=Math.ceil(X/1E3)}; xgW=function(X){g.G.call(this);var J=this;this.Lm=X;this.S=this.L=this.loader=this.mediaElement=this.playbackData=null;this.N=0;this.j=this.Pl=this.T=null;this.gI=!1;this.Nx=0;this.aB=!1;this.timestampOffset=0;this.D=!0;this.bB=0;this.J0=this.H4=!1;this.W=0;this.Cm=!1;this.FE=0;this.m9=this.Lm.G();this.videoData=this.Lm.getVideoData();this.policy=new XmR;this.Km=new B$(this.Lm);this.A0=this.Hl=this.jC=this.B=this.K=NaN;this.vl=new g.sn(function(){Jxm(J,!1)},2E3); this.z6=new g.sn(function(){Ni(J)}); this.SC=new g.sn(function(){LGO(J,{})}); this.Lp=NaN;this.Bl=new g.sn(function(){var L=J.m9.jT;L.L+=1E4/36E5;L.L-L.N>1/6&&($Tm(L),L.N=L.L);J.Bl.start()},1E4); g.f(this,this.Km);g.f(this,this.vl);g.f(this,this.SC);g.f(this,this.z6);g.f(this,this.Bl)}; KGR=function(X,J){X.playbackData=J;X.videoData.isLivePlayback&&(X.S=new R1W(function(){a:{if(X.playbackData&&X.playbackData.L.L){if(Pd(X.videoData)&&X.loader){var x=X.loader.JH.Gc()||0;break a}if(X.videoData.L){x=X.videoData.L.gI;break a}}x=0}return x}),X.L=new ft(X.videoData,X.m9.experiments,function(){return X.il(!0)})); if(U6(X.Lm)){var L;(L=X.videoData.yS)!=null&&L.yx||(J=iiv(X),J.rS?(dN(X.videoData)&&X.zw(J.rS,J.startSeconds),X.N=J.startSeconds):J.startSeconds>0&&X.seekTo(J.startSeconds,{B9:"seektimeline_startPlayback",seekSource:15}));X.D=!1}else QEA(X)||(X.N=X.N||X.videoData.startSeconds||0,X.Y("html5_sabr_vod_invalid_start_time_fallback")&&!X.videoData.isLivePlayback&&(J=X.Lm.videoData.il(),X.N>J&&(X.Y("html5_sabr_log_invalid_sabr_current_time")&&X.Lm.Ni("invalidSabrCmtStart",{rt:X.N,mst:J}),X.N=0)))}; ImS=function(X,J){(X.loader=J)?qJe(X,!0):mO(X)}; gCo=function(X,J){g.Nc(X.Km.j);X.Y("html5_exponential_memory_for_sticky")&&(J.state.isPlaying()?g.Nc(X.Bl):X.Bl.stop());if(X.mediaElement)if(J.oldState.state===8&&EH(J.state)&&J.state.isBuffering()){J=X.mediaElement.getCurrentTime();var L=X.mediaElement.SW();var x=X.Y("manifestless_post_live_ufph")||X.Y("manifestless_post_live")?mL(L,Math.max(J-3.5,0)):mL(L,J-3.5);if(x>=0&&J>L.end(x)-1.1&&x+10?(kZ(X.Lm,X.getCurrentTime()+X.videoData.limitedPlaybackDurationInSeconds),X.J0=!0):X.videoData.isLivePlayback&&X.videoData.endSeconds>0&&(kZ(X.Lm,X.getCurrentTime()+X.videoData.endSeconds),X.J0=!0))}; $gz=function(X,J){var L=X.getCurrentTime(),x=X.isAtLiveHead(L);if(X.S&&x){var Q=X.S;if(Q.L&&!(L>=Q.K&&L50&&Q.K.shift())),Q=X.L,kzo(Q,L,J===void 0?!0:J),ZSm(Q,L),J&&Jxm(X,!0));x!==X.H4&&(J=X.getCurrentTime()-X.A0<=500,L=X.Nx>=1E3,J||L||(J=X.Lm.xH,J.qoe&&(J=J.qoe,L=g.Jy(J.provider), g.a1(J,L,"lh",[x?"1":"0"])),X.H4=x,X.Nx++,X.A0=X.getCurrentTime()))}; Jxm=function(X,J){if(X.L){var L=X.L;var x=X.getCurrentTime(),Q=L.Fb();var K=L.policy.K;L.T||(K=Math.max(K-1,0));K*=F6(L);x>=Q-K||!L.m$()?L=x0&&OH(X.mediaElement)>0&&(X.K=ZM(X,X.K,!1)),J=X.Y("html5_pseudogapless_shorts_seek_to_next_start")&&(J==null?void 0:J.seekSource)===60,!X.mediaElement||!Oiv(X,J))X.z6.start(750);else if(!isNaN(X.K)&&isFinite(X.K)&&(J=X.Hl-(X.K-X.timestampOffset),!(J===0||Math.abs(J)<.005)))if(J=X.mediaElement.getCurrentTime()-X.K,Math.abs(J)<=X.bB||Math.abs(J)<.005)amI(X);else{if(X.videoData.RE)X.videoData.RE= !1;else if(!Sw(X.videoData)&&X.K>=X.il()-.1){X.K=X.il();X.T.resolve(X.il());X.Lm.Cj();return}try{var L=X.K-X.timestampOffset;X.mediaElement.seekTo(L);X.Km.L=L;X.Hl=L;X.N=X.K;X.aB=!1}catch(x){}}}; Oiv=function(X,J){J=J===void 0?!1:J;if(!X.mediaElement||X.mediaElement.Ab()===0||X.mediaElement.hasError())return!1;var L=X.mediaElement.getCurrentTime()>0;return X.videoData.N&&X.videoData.N.L||X.videoData.isLivePlayback||!X.videoData.zC()?X.K>=0&&!J&&(J=X.mediaElement.G2(),J.length||!L)?kr(J,X.K-X.timestampOffset):L:L}; amI=function(X){X.T&&(X.T.resolve(X.mediaElement.getCurrentTime()),X.Km.K=null)}; VTz=function(X,J){X.j&&(X.j.resolve(J),X.Lm.I7(),X.m9.YH()||HiA(X))&&(J=X.yr(),J["native"]=""+ +X.aB,J.otgt=""+(X.K+X.timestampOffset),X.Lm.Ni("seekEnd",J));mO(X)}; mO=function(X){X.K=NaN;X.B=NaN;X.Hl=NaN;X.T=null;X.Pl=null;X.j=null;X.gI=!1;X.aB=!1;X.bB=0;X.vl.stop();X.SC.stop()}; tTA=function(X,J){var L=X.mediaElement,x=J.type;switch(x){case "seeking":var Q=L.getCurrentTime()+X.timestampOffset;if(!X.T||X.aB&&Q!==X.K){X.T=new Vy;X.T.then(function(q){VTz(X,q)},function(){mO(X)}); if(X.videoData.isAd()){var K;xAo({adCpn:X.videoData.clientPlaybackNonce,contentCpn:(K=X.videoData.TJ)!=null?K:""},J.L)}X.Hl=Q;Arm(X.Km,L.getCurrentTime());X.seekTo(Q,{seekSource:104,B9:"seektimeline_mediaElementEvent"});X.aB=!0}break;case "seeked":amI(X);break;case "loadedmetadata":U6(X.Lm)||wmI(X);Ni(X);break;case "progress":Ni(X);break;case "pause":X.W=X.getCurrentTime()}X.W&&((x==="play"||x==="playing"||x==="timeupdate"||x==="progress")&&X.getCurrentTime()-X.W>10&&(X.Y("html5_sky_skip_pause_jump")? X.Lm.Ni("skipPauseJump",{evt:x,cmt:X.getCurrentTime(),lpt:X.W}):X.seekTo(X.W,{B9:"pauseJump"})),x!=="pause"&&x!=="play"&&x!=="playing"&&x!=="progress"&&(X.W=0))}; dgA=function(X){return(FQ(X.videoData)||!!X.videoData.liveUtcStartSeconds)&&(!!X.videoData.liveUtcStartSeconds||QEA(X))&&!!X.videoData.L}; QEA=function(X){return!!X.videoData.startSeconds&&isFinite(X.videoData.startSeconds)&&X.videoData.startSeconds>1E9}; iiv=function(X){var J=0,L=NaN,x="";if(!X.D)return{startSeconds:J,rS:L,source:x};X.videoData.Km?J=X.videoData.FE:Sw(X.videoData)&&(J=Infinity);if(g.ew(X.videoData))return{startSeconds:J,rS:L,source:x};X.videoData.startSeconds?(x="ss",J=X.videoData.startSeconds):X.videoData.jk&&(x="stss",J=X.videoData.jk);X.videoData.liveUtcStartSeconds&&(L=X.videoData.liveUtcStartSeconds);if(isFinite(J)&&(J>X.il()||JX.il()||L 0?(x.onesie="0",X.handleError(new g.Mh("html5.missingapi",x)),!1):!0}; hLW=function(X){var J=NM();U8(J,X);return g.lV(J,hMS())}; cxm=function(X,J){var L,x,Q,K,q,D,C,M,y,n,V,H,O,u,S,Y,h,W,T,l,Jo,U,QP,Iz,qS,$e;return g.p(function(k){if(k.K==1)return J.fetchType="onesie",L=BaS(J,X.getPlayerSize(),X.getVisibilityState()),x=new FS(X,L),g.z(k,x.fetch(),2);Q=k.L;K={player_response:Q};J.loading=!1;q=X.dQ.QX;if(x.uZ){D=g.d(x.uZ.entries());for(C=D.next();!C.done;C=D.next())M=C.value,y=g.d(M),n=y.next().value,V=y.next().value,H=n,O=V,q.L.set(H,O,180),H===J.videoId&&(u=O.Yh(),J.NH=u);q.Vw=x}S=g.d(x.hW.entries());for(Y=S.next();!Y.done;Y= S.next())h=Y.value,W=g.d(h),T=W.next().value,l=W.next().value,Jo=T,U=l,q.K.set(Jo,U,180);g.gN(J,K,!0);if(J.loading||qd(J))return k.return(Promise.resolve());q.L.removeAll();q.K.removeAll();J.NH=[];QP={};Iz="onesie.response";qS=0;J.errorCode?(Iz="auth",QP.ec=J.errorCode,QP.ed=J.errorDetail,QP.es=J.ZS||"",qS=2):(QP.successButUnplayable="1",QP.disposed=""+ +J.E6(),QP.afmts=""+ +/adaptiveFormats/.test(Q),QP.cpn=J.clientPlaybackNonce);$e=new g.Mh(Iz,QP,qS);return k.return(Promise.reject($e))})}; SJW=function(X,J){var L,x,Q,K,q,D,C,M,y,n,V;return g.p(function(H){switch(H.K){case 1:L=J.isAd(),x=!L,Q=L?1:3,K=0;case 2:if(!(K0)){H.fm(5);break}return g.z(H,jx(5E3),6);case 6:q=new g.Fm("Retrying OnePlatform request",{attempt:K}),g.PM(q);case 5:return g.oz(H,7),g.z(H,zLW(X,J),9);case 9:return H.return();case 7:D=g.EA(H);C=nv(D);M=C.errorCode;y=X.G();n=y.Y("html5_use_network_error_code_enums")?401:"401";x&&M==="manifest.net.badstatus"&&C.details.rc===n&&(x=!1,K===Q-1&&(Q+= 1));if(K===Q-1)return V=WGo(L,C.details),V.details.backend="op",V.details.originec=M,H.return(Promise.reject(V));if(M==="auth"||M==="manifest.net.retryexhausted")return H.return(Promise.reject(C));X.handleError(C);if(y1(C.severity)){H.fm(4);break}case 3:K++;H.fm(2);break;case 4:return H.return(Promise.reject(WGo(L,{backend:"op"})))}})}; zLW=function(X,J){function L(Iz){Iz.readyState===2&&X.TR("ps_c")} var x,Q,K,q,D,C,M,y,n,V,H,O,u,S,Y,h,W,T,l,Jo,U,QP;return g.p(function(Iz){switch(Iz.K){case 1:J.fetchType="gp";x=X.G();Q=g.wT(x,g.X3(J));if(!Q.L){K=Q.getValue();Iz.fm(2);break}return g.z(Iz,Q.L,3);case 3:K=Iz.L;case 2:return q=K,D=hLW(q),C=BaS(J,X.getPlayerSize(),X.getVisibilityState()),M=g.mr(pmY),y=g.X3(J),n=(0,g.uT)(),V=!1,H="empty",O=0,X.TR("psns"),u={XJ:L},g.z(Iz,g.zH(D,C,M,void 0,u),4);case 4:S=Iz.L;X.TR("psnr");if(J.E6())return Iz.return();S?"error"in S&&S.error?(V=!0,H="esf:"+S.error.message, O=S.error.code):S.errorMetadata&&(V=!0,H="its",O=S.errorMetadata.status):V=!0;if(V)return Y=0,h=((0,g.uT)()-n).toFixed(),W={},W=x.Y("html5_use_network_error_code_enums")?{backend:"op",rc:O,rt:h,reason:H,has_kpt:J.YF?"1":"0",has_mdx_env:J.mdxEnvironment?"1":"0",has_omit_key_flag:g.ly("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:x.pageId?"1":"0",has_token:y?"1":"0",has_vvt:J.gI?"1":"0",is_mdx:J.isMdxPlayback?"1":"0",mdx_ctrl:J.Az||"",token_eq:y===g.X3(J)?"1":"0"}:{backend:"op", rc:""+O,rt:h,reason:H,has_kpt:J.YF?"1":"0",has_mdx_env:J.mdxEnvironment?"1":"0",has_omit_key_flag:g.ly("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:x.pageId?"1":"0",has_token:y?"1":"0",has_vvt:J.gI?"1":"0",is_mdx:J.isMdxPlayback?"1":"0",mdx_ctrl:J.Az||"",token_eq:y===g.X3(J)?"1":"0"},T="manifest.net.connect",O===429?(T="auth",Y=2):O>200&&(T="manifest.net.badstatus",O===400&&(Y=2)),Iz.return(Promise.reject(new g.Mh(T,W,Y)));J.loading=!1;g.gN(J,{raw_player_response:S},!0); l=S;g.mB(J.G())&&l&&l.trackingParams&&k5(l.trackingParams);if(J.errorCode)return Jo={ec:J.errorCode,ed:J.errorDetail,es:J.ZS||""},Iz.return(Promise.reject(new g.Mh("auth",Jo,2)));if(!J.loading&&!qd(J))return U=J.isAd()?"auth":"manifest.net.retryexhausted",QP=J.isAd()?2:1,Iz.return(Promise.reject(new g.Mh(U,{successButUnplayable:"1",hasMedia:g.T$(J)?"1":"0"},QP)));g.uv(Iz)}})}; bi8=function(X,J,L){function x(O){O=nv(O);if(y1(O.severity))return Promise.reject(O);X.handleError(O);return!1} function Q(){return!0} var K,q,D,C,M,y,n,V,H;return g.p(function(O){switch(O.K){case 1:var u=X.G();X.getPlayerSize();X.getVisibilityState();X.isFullscreen();if(J.partnerId===38&&u.playerStyle==="books")u=J.videoId.indexOf(":"),u=g.Hw("//play.google.com/books/volumes/"+J.videoId.slice(0,u)+"/content/media",{aid:J.videoId.slice(u+1),sig:J.jy});else if(J.partnerId===30&&u.playerStyle==="docs")u=g.Hw("https://docs.google.com/get_video_info",{docid:J.videoId,authuser:J.yE,authkey:J.aH,eurl:u.YF});else if(J.partnerId===33&&u.playerStyle=== "google-live")u=g.Hw("//google-liveplayer.appspot.com/get_video_info",{key:J.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+u.Km);K=u;D=(q=J.isAd())?1:3;C=0;case 2:if(!(C0)){O.fm(5);break}return g.z(O,jx(5E3),6);case 6:y={playerretry:C,playerretrysrc:L},q||(y.recover="embedded"),M=LU(K,y);case 5:return g.z(O,rxe(J,M).then(Q,x),7);case 7:if(n=O.L)return O.return();C++;O.fm(2);break;case 4:V=q?"auth":"manifest.net.retryexhausted";H=q?2:1;if(!q&&Math.random()< 1E-4)try{g.PM(new g.Fm("b/152131571",btoa(K)))}catch(S){}return O.return(Promise.reject(new g.Mh(V,{backend:"gvi"},H)))}})}; rxe=function(X,J){function L(S){return x(S.xhr)} function x(S){if(!X.E6()){S=S?S.status:-1;var Y=0,h=((0,g.uT)()-y).toFixed();h=Q.Y("html5_use_network_error_code_enums")?{backend:"gvi",rc:S,rt:h}:{backend:"gvi",rc:""+S,rt:h};var W="manifest.net.connect";S===429?(W="auth",Y=2):S>200&&(W="manifest.net.badstatus",S===400&&(Y=2));return Promise.reject(new g.Mh(W,h,Y))}} var Q,K,q,D,C,M,y,n,V,H,O,u;return g.p(function(S){if(S.K==1){X.fetchType="gvi";Q=X.G();var Y={};X.cV&&(Y.ytrext=X.cV);(D=g.Mx(Y)?void 0:Y)?(K={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:D},q=LU(J,{action_display_post:1})):(K={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},q=J);C={};Q.sendVisitorIdHeader&&X.visitorData&&(C["X-Goog-Visitor-Id"]=X.visitorData);(M=Ha(Q.experiments,"debug_sherlog_username"))&&(C["X-Youtube-Sherlog-Username"]=M);Object.keys(C).length> 0&&(K.headers=C);y=(0,g.uT)();return g.z(S,hj(oh,q,K).then(void 0,L),2)}n=S.L;if(!n||!n.responseText)return S.return(x(n));X.loading=!1;V=ZB(n.responseText);g.gN(X,V,!0);if(X.errorCode)return H={ec:X.errorCode,ed:X.errorDetail,es:X.ZS||""},S.return(Promise.reject(new g.Mh("auth",H,2)));if(!X.loading&&!qd(X))return O=X.isAd()?"auth":"manifest.net.retryexhausted",u=X.isAd()?2:1,S.return(Promise.reject(new g.Mh(O,{successButUnplayable:"1"},u)));g.uv(S)})}; WGo=function(X,J){return new g.Mh(X?"auth":"manifest.net.retryexhausted",J,X?2:1)}; xi=function(X,J,L){L=L===void 0?!1:L;var x,Q,K,q;g.p(function(D){if(D.K==1){x=X.G();if(L&&(!g.yH(x)||m_(J)!=="embedded")||J.yd||m_(J)!=="adunit"&&(g.nD(x)||x3(x)||g.ze(x)||g.Mv(x)||g.kH(x)||n0(x)==="WEB_CREATOR"))return D.return();Q=g.wT(x,g.X3(J));return Q.L?g.z(D,Q.L,3):(K=Q.getValue(),D.fm(2))}D.K!=2&&(K=D.L);q=K;return D.return(vCZ(X,J,q))})}; vCZ=function(X,J,L){var x,Q,K,q,D;return g.p(function(C){if(C.K==1){g.oz(C,2);x=hLW(L);var M=J.G();g.v2();var y={context:g.nO(J),videoId:J.videoId,racyCheckOk:J.racyCheckOk,contentCheckOk:J.contentCheckOk,autonavState:"STATE_NONE"};m_(J)==="adunit"&&(y.isAdPlayback=!0);M.embedConfig&&(y.serializedThirdPartyEmbedConfig=M.embedConfig);M.PN&&(y.showContentOwnerOnly=!0);J.ZG&&(y.showShortsOnly=!0);g.jf(0,141)&&(y.autonavState=g.jf(0,140)?"STATE_OFF":"STATE_ON");if(g.$3(M)){var n=g.jf(0,65);n=n!=null? !n:!1;var V=!!g.Y1("yt-player-sticky-caption");y.captionsRequested=n&&V}var H;if(M=(H=M.getWebPlayerContextConfig())==null?void 0:H.encryptedHostFlags)y.playbackContext={encryptedHostFlags:M};Q=y;K=g.mr(jER);X.TR("wn_s");return g.z(C,g.zH(x,Q,K),4)}if(C.K!=2)return q=C.L,X.TR("wn_r"),!q||"error"in q&&q.error||(D=q,g.mB(J.G())&&D.trackingParams&&k5(D.trackingParams),g.gN(J,{raw_watch_next_response:q},!1)),g.PW(C,0);g.EA(C);g.uv(C)})}; TwS=function(X){X.TR("vir");X.TR("ps_s");E4("vir",void 0,"video_to_ad");var J=YJm(X);J.then(function(){X.TR("virc");E4("virc",void 0,"video_to_ad");X.TR("ps_r");E4("ps_r",void 0,"video_to_ad")},function(){X.TR("virc"); E4("virc",void 0,"video_to_ad")}); return J}; g.KS=function(X,J,L,x,Q,K,q,D,C,M){C=C===void 0?new g.KI(X):C;M=M===void 0?!0:M;g.Ly.call(this);var y=this;this.m9=X;this.playerType=J;this.gt=L;this.bb=x;this.getVisibilityState=K;this.visibility=q;this.dQ=D;this.videoData=C;this.TE=M;this.logger=new g.OS("VideoPlayer");this.C3=null;this.yA=new $Z;this.BN=null;this.Rz=!0;this.xq=this.loader=null;this.Vo=[];this.uL=new LS;this.nY=this.iy=null;this.hs=new LS;this.Zb=null;this.ir=this.yp=!1;this.EL=NaN;this.o1=!1;this.playerState=new g.ds;this.jn=[]; this.bF=new g.dS;this.iW=new hpZ(this);this.mediaElement=null;this.hh=new g.sn(this.FlB,15E3,this);this.W0=this.Uz=!1;this.GZ=NaN;this.bO=!1;this.zS=0;this.Ad=!1;this.Re=NaN;this.wT=new Ay(new Map([["bufferhealth",function(){return Dgz(y.IT)}], ["bandwidth",function(){return y.t3()}], ["networkactivity",function(){return y.m9.schedule.Pl}], ["livelatency",function(){return y.isAtLiveHead()&&y.isPlaying()?Ggm(y):NaN}], ["rawlivelatency",function(){return Ggm(y)}]])); this.gH=0;this.loop=!1;this.playbackRate=1;this.eA=0;this.IT=new xgW(this);this.lz=!1;this.Bd=[];this.z$=this.nk=0;this.B0=this.lx=!1;this.hC=this.x4=0;this.A6=new g.sn(this.dG,0,this);this.Aw=!1;this.S7=null;this.QBI=[this.bF,this.A6,this.hh,this.wT];this.mF=this.sW=null;this.Dt=function(){var n=y.xH;n.provider.m9.qQ||n.provider.Lm.getVisibilityState()===3||(n.provider.m9.qQ=!0);n.FO();if(n.K){var V=n.K;V.j&&V.L<0&&V.provider.Lm.getVisibilityState()!==3&&gZI(V)}n.qoe&&(n=n.qoe,n.SC&&n.N<0&&n.provider.m9.qQ&& GAZ(n),n.T&&d4(n));y.loader&&iX(y);y.m9.M8&&!y.videoData.backgroundable&&y.mediaElement&&!y.Od()&&(y.isBackground()&&y.mediaElement.N_()?(y.Ni("bgmobile",{suspend:1}),y.UQ(!0,!0)):y.isBackground()||Q6(y)&&y.Ni("bgmobile",{resume:1}))}; this.Zh={fu:function(n){y.fu(n)}, csI:function(n){y.C3=n}, yl0:function(){return y.xH}, gg:function(){return y.xq}, q1C:function(){return y.wr}, Y1C:function(){return y.Q2}, FSq:function(){}, G:function(){return y.m9}, tP:function(){return y.mediaElement}, zeB:function(n){y.Ya(n)}, Z7C:function(){return y.bb}}; this.logger.debug(function(){return"creating, type "+J}); this.qE=new fdm(this.m9);this.WJ=new Mi(this.m9,this.bb,this);this.fW=new g.r4(this,function(n,V){n!==g.sq("endcr")||g.N(y.playerState,32)||y.Cj();Q(n,V,y.playerType);if(n===g.sq("transitiondetector")&&(n=y.loader)!=null&&(n=n.A0)!=null){var H=g.d(rvY(V.id));H.next();H=H.next().value;hdO(n,H,V.start/1E3-n.Lm.W4(),uQY(n.T))}}); g.f(this,this.fW);g.f(this,this.IT);fmv(this,C);this.videoData.subscribe("dataupdated",this.zNH,this);this.videoData.subscribe("dataloaded",this.nH,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Ni,this);this.videoData.subscribe("ctmpstr",this.fE,this);!this.xH||this.xH.E6();this.xH=new g.pt(new W$(this.videoData,this.m9,this));EkR(this.Dt);this.visibility.subscribe("visibilitystatechange",this.Dt);this.wr=new g.sn(this.KC,g.J_(this.m9.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.Q2=new g.sn(this.KC,g.J_(this.m9.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.fk=new g.kv(this.vFM,350,this);g.f(this,this.fk)}; fmv=function(X,J){if(X.playerType===2||X.m9.bL)J.hV=!0;var L=iaI(J.qQ,J.FA,X.m9.T,X.m9.S);L&&(J.adFormat=L);X.playerType===2&&(J.lZ=!0);if(X.isFullscreen()||X.m9.T)L=g.Y1("yt-player-autonavstate"),J.autonavState=L||(X.m9.T?2:X.videoData.autonavState);J.endSeconds&&J.endSeconds>J.startSeconds&&kZ(X,J.endSeconds)}; eLY=function(X){var J=X.videoData;TwS(X).then(void 0,function(L){X.videoData!==J||J.E6()||(L=nv(L),L.errorCode==="auth"&&X.videoData.errorDetail?X.kU(L.errorCode,2,unescape(X.videoData.errorReason),Cv(L.details),X.videoData.errorDetail,X.videoData.ZS||void 0):X.handleError(L))})}; RLR=function(X){if(!g.N(X.playerState,128))if(X.videoData.isLoaded(),X.logger.debug("finished loading playback data"),X.Vo=g.Yu(X.videoData.aB),g.T$(X.videoData)){X.gt.tick("bpd_s");q9(X).then(function(){X.gt.tick("bpd_c");if(!X.E6()){X.yp&&(X.iH(bw(bw(X.playerState,512),1)),Q6(X));var x=X.videoData;x.endSeconds&&x.endSeconds>x.startSeconds&&kZ(X,x.endSeconds);X.uL.finished=!0;IU(X,"dataloaded");X.hs.Kj()&&FGv(X);IMe(X.WJ,X.nY)}}); X.Y("html5_log_media_perf_info")&&X.Ni("loudness",{v:X.videoData.oT.toFixed(3)},!0);var J,L=(J=X.mediaElement)==null?void 0:J.kH();if(L&&"disablePictureInPicture"in L&&X.m9.cq)try{L.disablePictureInPicture=X.m9.cf&&!X.videoData.backgroundable}catch(x){g.PM(x)}lm8(X)}else IU(X,"dataloaded")}; q9=function(X){gl(X);X.nY=null;var J=FtY(X.m9,X.videoData,X.Od());X.iy=J;X.iy.then(function(L){Bwz(X,L)},function(L){X.E6()||(L=nv(L),X.visibility.isBackground()?(Dd(X,"vp_none_avail"),X.iy=null,X.uL.reset()):(X.uL.finished=!0,X.kU(L.errorCode,L.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Cv(L.details))))}); return J}; Bwz=function(X,J){if(!X.E6()&&!J.videoData.E6()){X.logger.debug("finished building playback data");X.nY=J;KGR(X.IT,X.nY);if(X.videoData.isLivePlayback){var L=sEW(X.dQ.QX,X.videoData.videoId)||X.loader&&!isNaN(X.loader.Pl);L=X.Y("html5_onesie_live")&&L;U6(X)||X.videoData.Nx>0&&!Pd(X.videoData)||L||X.seekTo(X.il(),{B9:"videoplayer_playbackData",seekSource:18})}if(X.videoData.N.L){if(pZA(X.videoData)){X.Y("html5_sabr_report_missing_url_as_error_terminal")?X.kU("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR", Cv({missabrurl:1})):X.handleError(new g.Mh("fmt.missing",{missabrurl:"1"},2));return}X.loader?g.PM(Error("Duplicated Loader")):(L=g.J_(X.m9.experiments,"html5_onesie_defer_content_loader_ms"))&&X.Sl()&&sEW(X.dQ.QX,X.videoData.aL)?g.$b(function(){X.E6()||X.loader||NwP(X)},L):NwP(X)}else!X.videoData.N.L&&xF(X.videoData)&&X.Dy(new yI(X.videoData.videoId||"",4)); X.eZ();X$e(J).then(function(){var x={};X.Tm(x);X.m9.YH()&&X.Y("html5_log_media_perf_info")&&X.Ni("av1Info",x);iX(X)})}}; FGv=function(X){X.E6();X.logger.debug("try finish readying playback");if(X.hs.finished)X.logger.debug("already finished readying");else if(X.uL.finished)if(g.N(X.playerState,128))X.logger.debug("cannot finish readying because of error");else if(X.Vo.length)X.logger.debug(function(){return"cannot finish readying because of pending preroll: "+X.Vo}); else if(X.fW.started||WtI(X.fW),X.ZK())X.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{X.loader&&(X.ir=WAm(X.loader.timing));X.hs.finished||(X.hs.finished=!0);var J=X.Y("html5_onesie_live")&&X.loader&&!isNaN(X.loader.Pl);!X.videoData.isLivePlayback||X.videoData.Nx>0&&!Pd(X.videoData)||J||U6(X)||(X.logger.debug("seek to head for live"),X.seekTo(Infinity,{B9:"videoplayer_readying",seekSource:18}),X.isBackground()&&(X.W0=!0));OSA(X.xH);X.logger.debug("finished readying playback"); X.publish("playbackready");PQ("pl_c",X.gt.timerName)||(X.gt.tick("pl_c"),E4("pl_c",void 0,"video_to_ad"));PQ("pbr",X.gt.timerName)||(X.gt.tick("pbr"),E4("pbr",void 0,"video_to_ad"))}else X.logger.debug("playback data not loaded")}; kZ=function(X,J){X.BN&&Uge(X);X.BN=new g.Rw(J*1E3,0x7ffffffffffff);X.BN.namespace="endcr";X.addCueRange(X.BN)}; Uge=function(X){X.removeCueRange(X.BN);X.BN=null}; mgY=function(X,J,L,x,Q){var K=X.xH,q=X.videoData;q.K=L;var D=g.$i(X);L=new ljY(q,L,J,D?D.itag:"",x);X.m9.experiments.Mi("html5_refactor_sabr_video_format_selection_logging")?(L.videoId=Q,X.mF=L):K.qoe&&czv(K.qoe,L);Q=X.WJ;Q.K=0;Q.L=0;X.publish("internalvideoformatchange",q,J==="m")}; g.$i=function(X){var J=CS(X);return PK(J)||!X.nY?null:g.Ou(X.nY.L.videoInfos,function(L){return J.T(L)})}; CS=function(X){if(X.nY){var J=X.WJ;var L=X.nY;X=X.jH();var x=sDo(J);if(PK(x)){if(x=Rp8(J,L).compose(k4e(J,L)).compose(AiI(J,L)).compose(KOW(J,L.videoData)).compose(q6v(J,L.videoData,L)).compose(Q1A(J,L)).compose(UWY(J,L)),PK(X)||J.Y("html5_apply_pbr_cap_for_drm"))x=x.compose(mWP(J,L))}else J.Y("html5_perf_cap_override_sticky")&&(x=x.compose(Q1A(J,L))),J.Y("html5_ustreamer_cap_override_sticky")&&(x=x.compose(mWP(J,L)));x=x.compose(UWY(J,L));J=L.videoData.ri.compose(x).compose(L.videoData.EW).compose(X)}else J= Qh;return J}; L_S=function(X){var J=X.WJ;X=X.videoData;var L=KOW(J,X);J.Y("html5_disable_client_autonav_cap_for_onesie")||L.compose(q6v(J,X));return L}; iX=function(X){if(X.videoData.N&&X.videoData.N.L){var J=CS(X);X.loader&&iOO(X.loader,J)}}; kgm=function(X){var J;return!!(X.Y("html5_native_audio_track_switching")&&g.n9&&((J=X.videoData.K)==null?0:Ga(J)))}; Ziv=function(X){if(!kgm(X))return!1;var J;X=(J=X.mediaElement)==null?void 0:J.audioTracks();return!!(X&&X.length>1)}; Xqe=function(X){var J=Ax8(X);if(J)return X.videoData.getAvailableAudioTracks().find(function(L){return L.OH.getName()===J})}; Ax8=function(X){var J;if(X=(J=X.mediaElement)==null?void 0:J.audioTracks())for(J=0;J0&&(J.Vq=L.Sd));J.xj=L.eX;J.PJ=X0(x,{},L.N||void 0,wN(L));J.J0=al(L)&&(g.ze(x)||g.Mv(x));dN(L)&&(J.j=!0,J.Dk=x.Y("html5_estimate_live_partial_slice_duration"),J.jk=!0,x.Y("html5_sabr_report_partial_segment_estimated_duration")&& (J.Xu=!0),J.L=!0,J.Ku=x.Y("html5_sabr_enable_live_clock_offset"),J.yS=x.Y("html5_disable_client_resume_policy_for_sabr"),J.aE=x.Y("html5_trigger_loader_when_idle_network"),J.p6=x.Y("html5_sabr_parse_live_metadata_playback_boundaries"),J.Uq=x.Y("html5_enable_platform_backpressure_with_sabr"),J.rF=x.Y("html5_consume_onesie_next_request_policy_for_sabr"),J.m7=x.Y("html5_sabr_report_next_ad_break_time"),J.ag=x.Y("html5_log_high_res_buffer_timeline")&&x.YH(),J.tC=x.Y("html5_remove_stuck_slices_beyond_max_buffer_limits"), J.KI=x.Y("html5_gapless_sabr_btl_last_slice")&&Or(L),J.RP=x.Y("html5_reset_last_appended_slice_on_seek")&&Or(L),Pd(L)?(J.eI=!0,J.zF=x.Y("html5_estimate_partial_segment_duration"),J.L1=x.Y("html5_disable_variability_tracker_for_live"),J.SC=!0,x.Y("html5_simplified_backup_timeout_sabr_live")&&(J.X7=!0,J.o2=J.mP)):J.t_=x.Y("html5_probe_request_on_sabr_request_progress"),J.b8=x.Y("html5_serve_start_seconds_seek_for_post_live_sabr"),J.r0=x.Y("html5_flush_index_on_updated_timestamp_offset"),J.D=dN(L),J.M0= x.Y("html5_ignore_partial_segment_from_live_readahead"),x.Y("html5_include_partial_segment_for_jumbo_ll")&&cd(L)&&(J.M0=!1),J.Wx=x.Y("html5_use_non_active_broadcast_for_post_live"),J.gI=x.Y("html5_use_centralized_player_time"),J.UV=x.Y("html5_consume_onesie_sabr_seek"),J.aB=x.Y("html5_enable_sabr_seek_loader_refactor"),J.IQ=x.Y("html5_update_segment_start_time_from_media_header"),L.enableServerStitchedDai&&(J.K=!0,J.OG=x.Y("html5_reset_server_stitch_state_for_non_sabr_seek"),J.Oq=x.Y("html5_remove_ssdai_append_pause")&& !L.OA(),J.BO=x.Y("html5_ssdai_log_ssevt_in_loader")||x.Y("html5_ssdai_log_ssevt_in_loader_200ms")||x.Y("html5_ssdai_log_ssevt_in_loader_timers")||x.Y("html5_ssdai_log_ssevt_in_loader_cuerange"),x.Y("html5_ssdai_log_ssevt_in_loader_timers")?J.Cm=1:x.Y("html5_ssdai_log_ssevt_in_loader_200ms")?J.Cm=3:x.Y("html5_ssdai_log_ssevt_in_loader_cuerange")&&(J.Cm=0)),J.M8=x.YH()||L.OA());J.oT=g.z5e(L);eo(x.j,FV.BITRATE)&&(J.DY=NaN);if(D=g.J_(x.experiments,"html5_request_size_max_kb"))J.jC=D*1024;x.j.N?J.x7="; "+ FV.EXPERIMENTAL.name+"=allowed":x.Y("html5_enable_cobalt_tunnel_mode")&&g.fU()&&(D=FV.TUNNELMODE,J.x7="; "+D.name+"="+D.valid);L=L.serverPlaybackStartConfig;(L==null?0:L.enable)&&(L==null?0:L.playbackStartPolicy)&&(J.iJ=!0,B7(J,L.playbackStartPolicy,2));L=J1W(X);X.yA.removeAll();a:{D=X.dQ.QX;if(x=X.videoData.videoId)if(Q=D.L.get(x)){D.L.remove(x);D=Q;break a}D=void 0}X.loader=new g.X6(X,X.m9.schedule,J,X.videoData.L,X.videoData.N,CS(X),L,X.videoData.enableServerStitchedDai,D,X.videoData.D);J=X.videoData.Y("html5_disable_preload_for_ssdai_with_preroll")&& X.videoData.isLivePlayback&&X.Sl()?!0:X.yp&&g.nD(X.m9)&&X.videoData.isLivePlayback;X.loader.initialize(X.getCurrentTime(),CS(X),J);X.videoData.probeUrl&&(X.loader.J0=X.videoData.probeUrl);if(X.Vo.length||X.yp)X.videoData.cotn||M9(X,!1);ImS(X.IT,X.loader);X.S7&&(S8S(X.loader,new g.Lt(X.S7)),X.Ni("sdai",{sdl:1}));g.KO(X.videoData)&&(X=X.loader,X.policy.Uv=X.policy.D$)}; gl=function(X){X.loader&&(X.loader.dispose(),X.loader=null,ImS(X.IT,null));X.rp()?LwW(X):X.q8()}; LwW=function(X){if(X.xq)if(X.logger.debug("release media source"),X.wk(),X.xq.j)try{X.m9.YH()&&X.Ni("rms",{l:"vprms",sr:X.rp(),rs:yy(X.xq)});X.xq.clear();var J;(J=X.mediaElement)!=null&&(J.K=X.xq);X.xq=null}catch(L){J=new g.Fm("Error while clearing Media Source in VideoPlayer: "+L.name+", "+L.message),J=nv(J),X.handleError(J),X.q8()}else X.q8()}; xLR=function(X,J){J=J===void 0?!1:J;if(X.xq)return X.xq.N;X.logger.debug("update media source");a:{J=J===void 0?!1:J;try{g.fU()&&X.videoData.m1()&&e9R(X.mediaElement);var L=X.mediaElement.gg(X.Uw(),X.DT())}catch(Q){if(vkA(X.iW,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",Q);X.kU("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}X.qj(L,!1,!1,J)}var x;return((x=X.gg())==null?void 0:x.N)||null}; iVe=function(X,J){J=J===void 0?!1:J;if(X.loader){X.videoData.enableServerStitchedDai&&p9v(X.loader);var L=X.getCurrentTime()-X.W4();X.loader.seek(L,{NS:J}).S1(function(){})}else NwP(X)}; KwA=function(X,J,L,x){L=L===void 0?!1:L;x=x===void 0?!1:x;if(X.xq&&(!J||X.xq===J)){X.logger.debug("media source opened");var Q=X.getDuration();!Q&&Pd(X.videoData)&&(Q=25200);if(X.xq.isView){var K=Q;X.logger.debug(function(){return"Set media source duration to "+K+", video duration "+Q}); K>X.xq.getDuration()&&Q_O(X,K)}else Q_O(X,Q);Jzz(X.loader,X.xq,L,x);X.publish("mediasourceattached")}}; Q_O=function(X,J){if(X.xq){X.xq.Wq(J);var L;(L=X.loader)!=null&&L.policy.gI&&(L.B=J)}}; KiP=function(X,J){mgY(X,J.reason,J.L.info,J.token,J.videoId)}; IU=function(X,J){X.publish("internalvideodatachange",J===void 0?"dataupdated":J,X.videoData)}; q3W=function(X){for(var J=g.d("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),L=J.next();!L.done;L=J.next())X.bF.J(X.mediaElement,L.value,X.Ya,X);X.m9.C$&&X.mediaElement.Yo()&&(X.bF.J(X.mediaElement,"webkitplaybacktargetavailabilitychanged",X.BIl,X),X.bF.J(X.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",X.jB0,X))}; g9o=function(X){g.yQ(X.EL);I5e(X)||(X.EL=g.CU(function(){return I5e(X)},100))}; I5e=function(X){var J=X.mediaElement;J&&X.Uz&&!X.videoData.Pl&&!PQ("vfp",X.gt.timerName)&&J.Ab()>=2&&!J.isEnded()&&XO(J.SW())&&X.gt.tick("vfp");return(J=X.mediaElement)&&!X.videoData.Pl&&J.getDuration()>0&&(J.isPaused()&&J.Ab()>=2&&XO(J.SW())&&(PQ("pbp",X.gt.timerName)||X.gt.tick("pbp"),!X.videoData.tB||X.o1||J.isSeeking()||(X.o1=!0,X.publish("onPlaybackPauseAtStart"))),J=J.getCurrentTime(),v$(X.qE,J))?(X.nz(),!0):!1}; $Lz=function(X){X.xH.HD();if(Sw(X.videoData)&&Date.now()>X.eA+6283){if(!(!X.isAtLiveHead()||X.videoData.L&&e0(X.videoData.L))){var J=X.xH;if(J.qoe){J=J.qoe;var L=J.provider.Lm.U5(),x=g.Jy(J.provider);huA(J,x,L);L=L.N;isNaN(L)||g.a1(J,x,"e2el",[L.toFixed(3)])}}X.Y("html5_alc_live_log_rawlat")?(J=X.videoData,J=g.M2(J.G())?!0:g.gT(J.G())?J.drmProduct==="6":!1):J=g.M2(X.m9);x=X.Y("html5_always_log_rawlat");(J||x)&&X.Ni("rawlat",{l:Jr(X.wT,"rawlivelatency").toFixed(3)});X.eA=Date.now()}X.videoData.K&& Ga(X.videoData.K)&&(J=X.S5())&&J.videoHeight!==X.z$&&(X.z$=J.videoHeight,mgY(X,"a",DLm(X,X.videoData.SC)))}; DLm=function(X,J){if(J.L.video.quality==="auto"&&Ga(J.getInfo())&&X.videoData.pO)for(var L=g.d(X.videoData.pO),x=L.next();!x.done;x=L.next())if(x=x.value,x.getHeight()===X.z$&&x.L.video.quality!=="auto")return x.getInfo();return J.getInfo()}; Ggm=function(X){if(!Sw(X.videoData))return NaN;var J=0;X.loader&&X.videoData.L&&(J=Pd(X.videoData)?X.loader.JH.Gc()||0:X.videoData.L.gI);return(0,g.uT)()/1E3-X.L3()-J}; MYm=function(X){X.mediaElement&&X.mediaElement.Od()&&(X.Re=(0,g.uT)());X.m9.u3?g.$b(function(){CQz(X)},0):CQz(X)}; CQz=function(X){var J;if((J=X.xq)==null||!J.FB()){if(X.mediaElement)try{X.Zb=X.mediaElement.playVideo()}catch(x){Dd(X,"err."+x)}if(X.Zb){var L=X.Zb;L.then(void 0,function(x){X.logger.debug(function(){return"playMediaElement failed: "+x}); if(!g.N(X.playerState,4)&&!g.N(X.playerState,256)&&X.Zb===L)if(x&&x.name==="AbortError"&&x.message&&x.message.includes("load"))X.logger.debug(function(){return"ignore play media element failure: "+x.message}); else{var Q="promise";x&&x.name&&(Q+=";m."+x.name);Dd(X,Q);X.lz=!0;X.videoData.HO=!0}})}}}; Dd=function(X,J){g.N(X.playerState,128)||(X.iH(Pv(X.playerState,1028,9)),X.Ni("dompaused",{r:J}),X.publish("onAutoplayBlocked"))}; Q6=function(X,J){J=J===void 0?!1:J;if(!X.mediaElement||!X.videoData.N)return!1;var L=J;L=L===void 0?!1:L;var x=null;var Q;if((Q=X.videoData.N)==null?0:Q.L){x=xLR(X,L);var K;(K=X.loader)==null||K.resume()}else gl(X),X.videoData.SC&&(x=X.videoData.SC.Gg());Q=X.mediaElement.N_();L=!1;Q&&Q.equals(x)||(y1Y(X,x),L=!0);g.N(X.playerState,2)||(x=X.IT,J=J===void 0?!1:J,x.j||!(x.N>0)||x.mediaElement&&x.mediaElement.getCurrentTime()>0||(J={B9:"seektimeline_resumeTime",NS:J},x.videoData.Pl||(J.seekSource=15), x.seekTo(x.N,J)));a:{J=L;if(dN(X.videoData)){if(!X.videoData.zC())break a}else if(!g.pI(X.videoData))break a;if(X.mediaElement)if((x=X.videoData.j)&&X.mediaElement.Yo()){Q=X.mediaElement.kH();if(X.C3)if(Q!==X.C3.element)y6(X);else if(J&&x.flavor==="fairplay"&&!e7())y6(X);else break a;if(X.Y("html5_report_error_for_unsupported_tvos_widevine")&&e7()&&x.flavor==="widevine")J=X.Y("html5_log_fmt_unplaybable_trigger")?"trg.unspttvoswidevine":"drm.unspttvoswidevine",X.kU("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK", J);else{X.C3=new wbZ(Q,X.videoData,X.m9);X.C3.subscribe("licenseerror",X.lG,X);X.C3.subscribe("qualitychange",X.gHm,X);X.C3.subscribe("heartbeatparams",X.PW,X);X.C3.subscribe("keystatuseschange",X.fu,X);X.C3.subscribe("ctmp",X.Ni,X);J=g.d(X.yA.keys);for(x=J.next();!x.done;x=J.next())x=X.yA.get(x.value),X.C3.xJ(x);X.Y("html5_eme_loader_sync")||X.yA.removeAll()}}else J=X.Y("html5_log_fmt_unplaybable_trigger")?"trg.updatedrm":"drm.1",X.kU("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",J)}return L}; y1Y=function(X,J){X.gt.tick("vta");E4("vta",void 0,"video_to_ad");X.getCurrentTime()>0&&CfO(X.IT,X.getCurrentTime());X.mediaElement.activate(J);X.xq&&Zl(4);!X.videoData.Pl&&X.playerState.isOrWillBePlaying()&&X.hh.start();if(kgm(X)){var L;if(J=(L=X.mediaElement)==null?void 0:L.audioTracks())J.onchange=function(){X.publish("internalaudioformatchange",X.videoData,!0)}}}; y6=function(X){X.C3&&(X.C3.dispose(),X.C3=null)}; n9A=function(X){var J=J===void 0?!1:J;X.logger.debug("reattachVideoSource");X.mediaElement&&(X.xq?(y6(X),X.q8(),xLR(X,J)):(X.videoData.SC&&X.videoData.SC.Ut(),X.mediaElement.stopVideo()),X.playVideo())}; VYv=function(X,J){X.m9.Y("html5_log_rebuffer_reason")&&(J={r:J,lact:a4()},X.mediaElement&&(J.bh=aJ(X.mediaElement)),X.Ni("bufreason",J))}; HVv=function(X,J){if(X.m9.YH()&&X.mediaElement){var L=X.mediaElement.yr();L.omt=(X.mediaElement.getCurrentTime()+X.W4()).toFixed(3);L.ps=X.playerState.state.toString(16);L.rt=(g.Jy(X.xH.provider)*1E3).toFixed();L.e=J;X.Bd[X.nk++%5]=L}try{if(J==="timeupdate"||J==="progress")return}catch(x){}X.logger.debug(function(){return"video element event "+J})}; OVv=function(X){if(X.m9.YH()){X.Bd.sort(function(x,Q){return+x.rt-+Q.rt}); for(var J=g.d(X.Bd),L=J.next();!L.done;L=J.next())L=L.value,X.Ni("vpe",Object.assign({t:L.rt},L));X.Bd=[];X.nk=0}}; a5I=function(X){if(g.To("cobalt")&&g.To("nintendo switch")){var J=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;X.Ni("nxdock",{d:J})}}; M9=function(X,J){var L;(L=X.loader)==null||mdA(L,J)}; lm8=function(X){Iq(X.videoData,"html5_set_debugging_opt_in")&&(X=g.v2(),g.jf(0,183)||(Gb(183,!0),X.save()))}; rzA=function(X,J){X.dQ.NP()||(X.Ni("sgap",{f:J}),X.dQ.clearQueue(!1,J==="pe"))}; U6=function(X){return X.Y("html5_disable_video_player_initiated_seeks")&&dN(X.videoData)}; wqv=function(X){KG.call(this,X);var J=this;this.events=new g.dS(X);g.f(this,this.events);H9(this.api,"isLifaAdPlaying",function(){return J.api.isLifaAdPlaying()}); this.events.J(X,"serverstitchedvideochange",function(){var L;(L=J.api.getVideoData())!=null&&L.OA()&&(J.api.isLifaAdPlaying()?(J.playbackRate=J.api.getPlaybackRate(),J.api.setPlaybackRate(1)):J.api.setPlaybackRate(J.playbackRate))}); this.playbackRate=1}; nS=function(X){M6.call(this,"En bucle",g.wv.h9);this.Z=X;var J=X.Y("delhi_modern_web_player_icons")?{V:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{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"}}]}:haA();this.setIcon(J);this.subscribe("select",this.K,this);X.createClientVe(this.element,this,28661);this.J(X,"settingsMenuVisibilityChanged",this.L);this.listen("click",this.logClick);this.J(X,"onLoopChange",this.onLoopChange);yv(this,X.getLoopVideo());X.TB().EA(this)}; tYo=function(X){KG.call(this,X);var J=this;X.addEventListener("settingsMenuInitialized",function(){J.menuItem||(J.menuItem=new nS(J.api),g.f(J,J.menuItem))}); X.addEventListener("videodatachange",function(L,x){L=J.api.getPresentingPlayerType()===2;var Q;(Q=J.menuItem)==null||Q.LO(!x.isLivePlayback&&!L)})}; dLo=function(X){KG.call(this,X);var J=this;this.events=new g.dS(X);g.f(this,this.events);H9(this.api,"seekToChapterWithAnimation",function(L){J.seekToChapterWithAnimation(L)}); H9(this.api,"seekToTimeWithAnimation",function(L,x){J.seekToTimeWithAnimation(L,x)}); H9(this.api,"renderChapterSeekingAnimation",function(L,x,Q){J.api.renderChapterSeekingAnimation(L,x,Q)}); H9(this.api,"setMacroMarkers",function(L){J.setMacroMarkers(X,L)}); H9(this.api,"changeMarkerVisibility",function(L,x,Q){J.changeMarkerVisibility(L,x,Q)}); H9(this.api,"isSameMarkerTypeVisible",function(L){return J.isSameMarkerTypeVisible(L)})}; u7R=function(X,J,L){var x=X.api.getCurrentTime()*1E30&&Q>0&&(L.width+=Q,g.lF(J.element,"width",L.width+"px")));X.size=L}}; g.hr=function(X,J){var L=X.L[X.L.length-1];L!==J&&(X.L.push(J),mLe(X,L,J))}; g.zz=function(X){if(!(X.L.length<=1)){var J=X.L.pop(),L=X.L[0];X.L=[L];mLe(X,J,L,!0)}}; mLe=function(X,J,L,x){kCv(X);J&&(J.unsubscribe("size-change",X.Rq,X),J.unsubscribe("back",X.lJ,X));L.subscribe("size-change",X.Rq,X);L.subscribe("back",X.lJ,X);if(X.RB){g.xq(L.element,x?"ytp-panel-animate-back":"ytp-panel-animate-forward");L.zH(X.element);L.focus();X.element.scrollLeft=0;X.element.scrollTop=0;var Q=X.size;ULe(X);g.X9(X.element,Q);X.B=new g.sn(function(){ZVo(X,J,L,x)},20,X); X.B.start()}else L.zH(X.element),J&&J.detach()}; ZVo=function(X,J,L,x){X.B.dispose();X.B=null;g.xq(X.element,"ytp-popup-animating");x?(g.xq(J.element,"ytp-panel-animate-forward"),g.Qd(L.element,"ytp-panel-animate-back")):(g.xq(J.element,"ytp-panel-animate-back"),g.Qd(L.element,"ytp-panel-animate-forward"));g.X9(X.element,X.size);X.W=new g.sn(function(){g.Qd(X.element,"ytp-popup-animating");J.detach();g.Ks(J.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);X.W.dispose();X.W=null},250,X); X.W.start()}; kCv=function(X){X.B&&g.Un(X.B);X.W&&g.Un(X.W)}; WS=function(X){g.Yi.call(this,X,"ytp-shopping-product-menu");this.y0=new g.cS(this.Z);g.f(this,this.y0);this.hide();g.hr(this,this.y0);g.l0(this.Z,this.element,4)}; Xnz=function(X,J,L){var x,Q=J==null?void 0:(x=J.text)==null?void 0:x.simpleText;Q&&(L=A1O(X,L,Q,J==null?void 0:J.icon,J==null?void 0:J.secondaryIcon),J.navigationEndpoint&&L.listen("click",function(){X.Z.GH("innertubeCommand",J.navigationEndpoint);X.hide()},X))}; JXZ=function(X,J,L){var x,Q=J==null?void 0:(x=J.text)==null?void 0:x.simpleText;Q&&A1O(X,L,Q,J==null?void 0:J.icon).listen("click",function(){var K;(J==null?void 0:(K=J.icon)==null?void 0:K.iconType)==="HIDE"?X.Z.publish("featuredproductdismissed"):J.serviceEndpoint&&X.Z.GH("innertubeCommand",J.serviceEndpoint);X.hide()},X)}; A1O=function(X,J,L,x,Q){J=new g.LG(g.xd({},[],!1,!!Q),J,L);Q&&J.updateValue("secondaryIcon",L3v(Q));J.setIcon(L3v(x));g.f(X,J);X.y0.EA(J,!0);return J}; L3v=function(X){if(!X)return null;switch(X.iconType){case "ACCOUNT_CIRCLE":return{V:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{V:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return Olm();case "HIDE":return{V:"svg",X:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"g",C:[{V:"path",X:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}; case "OPEN_IN_NEW":return wh()}}; pS=function(X){Sd.call(this,X,!1,!0);this.isCounterfactual=this.K=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.S=!0;this.overflowButton=new g.R({V:"button",Ql:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.f(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.R({V:"img",U:"ytp-suggested-action-badge-img",X:{src:"{{url}}"}}); this.thumbnailImage.hide();g.f(this,this.thumbnailImage);this.thumbnailIcon=new g.R({V:"div",U:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.f(this,this.thumbnailIcon);this.banner=new g.R({V:"a",U:"ytp-suggested-action-container",C:[this.thumbnailImage,this.thumbnailIcon,{V:"div",U:"ytp-suggested-action-details",C:[{V:"text",U:"ytp-suggested-action-title",iB:"{{title}}"},{V:"text",U:"ytp-suggested-action-subtitle",iB:"{{subtitle}}"},{V:"text",U:"ytp-suggested-action-metadata-text", iB:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.f(this,this.banner);this.banner.zH(this.N.element);this.J(this.Z,"videodatachange",this.onVideoDataChange);this.J(this.Z,g.sq("suggested_action_view_model"),this.Kl0);this.J(this.Z,g.N2("suggested_action_view_model"),this.NtM);this.J(this.overflowButton.element,"click",this.ZP);this.J(X,"featuredproductdismissed",this.YG);this.Z.createServerVe(this.banner.element,this.banner,!0)}; xQA=function(X){X.isInitialized&&(X.enabled=X.isVisible,X.aB=X.isVisible,bX(X),X.G4(),X.thumbnailImage.LO(X.isVisible),X.shouldHideDismissButton||X.dismissButton.LO(X.isVisible),X.shouldShowOverflowButton&&X.overflowButton.LO(X.isVisible))}; rl=function(){pS.apply(this,arguments)}; i$Z=function(X){KG.call(this,X);this.L=new rl(this.api);g.f(this,this.L);g.l0(this.api,this.L.element,4)}; vS=function(X){KG.call(this,X);var J=this;this.L=!0;var L=new g.dS(X);g.f(this,L);L.J(X,"internalaudioformatchange",function(x,Q){QnY(J,x,Q)}); L.J(X,"videoplayerreset",function(){K38(J)}); L.J(X,"videodatachange",function(x,Q){J.onVideoDataChange(x,Q)})}; QnY=function(X,J,L){if(L){var x="";qbz(X,J)&&(x=J,X.api.G().O6=J);if(x&&Iom(X,x)){CPA(X.api,x);var Q;z6(tD(X.api.G(),(Q=X.api.getVideoData())==null?void 0:g.X3(Q)),function(K){gJO(X,x,K)})}}}; K38=function(X){var J;if((J=ab())==null?0:J.size){var L;z6(tD(X.api.G(),(L=X.api.getVideoData())==null?void 0:g.X3(L)),function(x){(x=DQm(x))&&Iom(X,x)&&(X.api.G().O6=x)})}}; gJO=function(X,J,L){DQm(L)!==J&&($Qv([{settingItemId:jd(L),settingOptionValue:{stringValue:J}}]),z6(X.jj(),function(x){VeA(x,jd(L),{stringValue:J})}))}; C3I=function(X,J){WC(z6(z6(X.jj(),function(L){return ykI(L,[jd(J)])}),function(L){if(L){L=g.d(L); for(var x=L.next();!x.done;x=L.next()){var Q=x.value;x=Q.key;Q=Q.value;x&&Q&&($Qv([{settingItemId:x,settingOptionValue:Q}]),K38(X))}}}),function(){X.L=!0})}; qbz=function(X,J){X=X.api.getAvailableAudioTracks();X=g.d(X);for(var L=X.next();!L.done;L=X.next())if(L=L.value,L.getLanguageInfo().getId()===J)return L;return null}; DQm=function(X){X=jd(X);var J=ab();X=J?J.get(X):void 0;return X&&X.stringValue?X.stringValue:""}; jd=function(X){var J=(484).toString();X&&(J=(483).toString());return J}; Iom=function(X,J){var L;return J.split(".")[0]!==""&&((L=X.api.getVideoData())==null?void 0:!LO(L))}; $Qv=function(X){var J=ab();J||(J=new Map);X=g.d(X);for(var L=X.next();!L.done;L=X.next())L=L.value,J.set(L.settingItemId,L.settingOptionValue);J=JSON.stringify(Object.fromEntries(J));g.El("yt-player-user-settings",J,2592E3)}; g.Tz=function(X,J,L,x,Q,K,q){g.LG.call(this,g.xd({"aria-haspopup":"true"}),J,X);this.uh=x;this.S=!1;this.N=null;this.options={};this.K=new g.cS(L,void 0,X,Q,K,q);g.f(this,this.K);this.listen("keydown",this.EC);this.listen("click",this.open)}; MQA=function(X){if(X.N){var J=X.options[X.N];J.element.getAttribute("aria-checked");J.element.setAttribute("aria-checked","false");X.N=null}}; yXm=function(X,J){g.Tz.call(this,"Temporizador de apagado",g.wv.SLEEP_TIMER,X,J);this.Z=X;this.D={};this.B=this.JI("Off");this.W=this.L="";X.Y("web_settings_menu_icons")&&(J=X.Y("delhi_modern_web_player_icons")?{V:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{d:"M12.33 1.00C12.22 1.00 12.11 1.00 12 1C5.92 1 1 5.92 1 12C1 18.07 5.92 23 12 23C13.90 23.00 15.78 22.50 17.44 21.55C19.10 20.61 20.48 19.25 21.46 17.61L21.64 17.29C22.06 16.52 21.21 15.73 20.35 15.88C18.76 16.15 17.12 15.94 15.66 15.27C14.19 14.59 12.97 13.49 12.14 12.11C11.31 10.73 10.91 9.13 11.01 7.52C11.11 5.91 11.69 4.37 12.67 3.09L12.89 2.83C13.45 2.16 13.20 1.03 12.33 1.00ZM15.56 2.60C15.45 2.84 15.43 3.11 15.51 3.36C15.59 3.61 15.77 3.82 16.01 3.94C16.91 4.39 17.73 4.99 18.44 5.71L18.73 6.03L18.80 6.10C18.99 6.27 19.22 6.36 19.47 6.37C19.72 6.37 19.96 6.28 20.15 6.12C20.33 5.95 20.45 5.72 20.48 5.48C20.51 5.23 20.44 4.98 20.29 4.78L20.23 4.70L19.87 4.31C19.01 3.43 18.01 2.70 16.90 2.15C16.67 2.03 16.39 2.01 16.14 2.10C15.89 2.18 15.68 2.36 15.56 2.60M10.24 3.17C9.42 4.64 8.99 6.31 9 8C9 13.42 13.32 17.84 18.71 17.99C17.86 18.93 16.83 19.69 15.67 20.21C14.52 20.73 13.26 21.00 12 21C9.76 21.00 7.60 20.17 5.95 18.67C4.29 17.17 3.25 15.10 3.03 12.88C2.81 10.65 3.43 8.43 4.76 6.63C6.09 4.84 8.05 3.60 10.24 3.17M21.16 7.88C20.93 7.96 20.73 8.12 20.61 8.34C20.49 8.55 20.45 8.81 20.50 9.05L20.53 9.15L20.66 9.56C20.93 10.53 21.04 11.54 20.98 12.55C20.97 12.81 21.06 13.06 21.23 13.26C21.41 13.45 21.65 13.57 21.92 13.59C22.18 13.60 22.44 13.52 22.63 13.34C22.83 13.17 22.95 12.93 22.97 12.67C23.05 11.44 22.92 10.20 22.58 9.02L22.43 8.51L22.39 8.42C22.29 8.19 22.11 8.01 21.88 7.91C21.65 7.81 21.40 7.80 21.16 7.88Z", fill:"white"}}]}:{V:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z",fill:"#fff"}}]},this.setIcon(J)); this.T=new g.R({V:"div",Ql:["ytp-menuitem-label-wrapper"],C:[{V:"div",iB:"Fin del video"},{V:"div",Ql:["ytp-menuitem-sublabel"],iB:"{{content}}"}]});g.f(this,this.T);this.listen("click",this.onClick);this.J(X,"videodatachange",this.onVideoDataChange);this.J(X,"presentingplayerstatechange",this.Wl);this.J(X,"settingsMenuVisibilityChanged",this.BM);X.createClientVe(this.element,this,218889);this.Wl();this.Z.GH("onSleepTimerFeatureAvailable")}; nJo=function(X){var J="Off 10 15 20 30 45 60".split(" "),L;((L=X.Z.getVideoData())==null?0:L.isLivePlayback)||J.push("End of video");L=X.Z.getPlaylist();var x;L&&((x=L.listId)==null?void 0:x.type)!=="RD"&&J.push("End of playlist");X.Rk(g.H5(J,X.JI));X.D=g.ku(J,X.JI,X);J=X.JI("End of video");X.options[J]&&g.JZ(X.options[J],X.T)}; VQW=function(X,J){var L=X.D[J],x=L==="End of video"||L==="End of playlist";L==="Off"&&(X.L="");X.Z.getPlayerState()!==0&&X.Z.getPlayerState()!==5||!x?(X.B=J,g.Tz.prototype.Ln.call(X,J),X.Cn(J),X.Z.GH("onSleepTimerSettingsChanged",L)):X.Z.GH("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"El video ya finaliz\u00f3"}}}}})}; Gz=function(X){KG.call(this,X);var J=this;X.addEventListener("settingsMenuInitialized",function(){J.menuItem||(J.menuItem=new yXm(J.api,J.api.TB()),g.f(J,J.menuItem))}); X.addEventListener("openSettingsMenuItem",function(L){if(L==="menu_item_sleep_timer"){if(!J.menuItem){var x;(x=J.api.TB())==null||x.nO()}J.menuItem.open()}}); H9(X,"resetSleepTimerMenuSettings",function(){J.resetSleepTimerMenuSettings()}); H9(X,"setSleepTimerTimeLeft",function(L){J.setSleepTimerTimeLeft(L)}); H9(X,"setVideoTimeLeft",function(L){J.setVideoTimeLeft(L)})}; H$Y=function(X){KG.call(this,X);var J=this;this.events=new g.dS(X);g.f(this,this.events);this.events.J(X,"onSnackbarMessage",function(L){switch(L){case 1:L=J.api.getPlayerStateObject(),L.isBuffering()&&(J.api.Y("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.N(L,8)&&g.N(L,16))&&J.api.GH("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"\u00bfEl video se interrumpe?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT", text:{runs:[{text:"Descubre los motivos"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}}, durationHintMs:5E3,popupType:"TOAST"}})}})}; g.ed=function(X,J,L,x,Q){J=J===void 0?!1:J;x=x===void 0?!1:x;Q=Q===void 0?!1:Q;g.Ly.call(this);this.D=Q;this.W=!1;this.T=new o2(this);this.j=this.B=null;this.N=this.K=!1;g.f(this,this.T);this.target=X;this.L=J;this.S=L||X;this.W=x;J&&(g.g0&&this.target.setAttribute("draggable","true"),Q||(this.target.style.touchAction="none"));fS(this)}; FD=function(X){g.Sf(X.T,!X.L)}; fS=function(X){X.j=null;X.B=null;X.J(lX("over"),X.QV);X.J("touchstart",X.sj);X.L&&X.J(lX("down"),X.TIE)}; O$S=function(X,J){for(var L=0;LQ.start&&L>=5;u+=Y}V=u.substr(0,4)+" "+u.substr(4,4)+" "+u.substr(8,4)+" "+(u.substr(12,4)+" "+u.substr(16,4))}else V="";q={video_id_and_cpn:String(J.videoId)+" / "+V,codecs:"",dims_and_frames:"",bandwidth_kbps:q.toFixed(0)+" Kbps",buffer_health_seconds:C.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:M?"":"display:none",drm:M,debug_info:L,extra_debug_info:"",bandwidth_style:n,network_activity_style:n,network_activity_bytes:D.toFixed(0)+" KB",shader_info:y,shader_info_style:y?"":"display:none",playback_categories:""};D=x.clientWidth+"x"+x.clientHeight+(Q>1?"*"+Q.toFixed(2):"");C="-";K.totalVideoFrames&&(C=(K.droppedVideoFrames||0)+" dropped of "+K.totalVideoFrames);q.dims_and_frames=D+" / "+C;X=X.getVolume();D=YyS(J);var W;if((W=J.T)==null?0:W.audio.K)W= "VB";else{var T;W=((T=J.T)==null?0:T.audio.L)?"DRC":Math.round(X*D)+"%"}T=Math.round(X)+"% / "+W;W=J.oT.toFixed(1);isFinite(Number(W))&&(T+=" (content loudness "+W+"dB)");q.volume=T;q.resolution=x.videoWidth+"x"+x.videoHeight;if(x=J.K){if(T=x.video)W=T.fps,W>1&&(q.resolution+="@"+W),(W=K.WX)&&W.video&&(q.resolution+=" / "+W.video.width+"x"+W.video.height,W.video.fps>1&&(q.resolution+="@"+W.video.fps)),q.codecs=oJ8(x),!J.T||x.audio&&x.video?x.Ij&&(q.codecs+=" / "+x.Ij+"A"):q.codecs+=" / "+oJ8(J.T), T.L||T.primaries?(W=T.L||"unknown",W==="smpte2084"?W+=" (PQ)":W==="arib-std-b67"&&(W+=" (HLG)"),q.color=W+" / "+(T.primaries||"unknown"),q.color_style=""):q.color_style="display:none";if(x.debugInfo)for(q.fmt_debug_info="",x=g.d(x.debugInfo),T=x.next();!T.done;T=x.next())T=T.value,q.fmt_debug_info+=T.label+":"+T.text+" ";q.fmt_debug_info_style=q.fmt_debug_info&&q.fmt_debug_info.length>0?"":"display:none"}x=J.isLivePlayback;T=J.Bv;q.live_mode_style=x||T?"":"display:none";q.live_latency_style=x?"": "display:none";if(T)q.live_mode="Post-Live"+(Pd(J)?" Manifestless":"");else if(x){T=K.yK;q.live_latency_secs=T.toFixed(2)+"s";x=Pd(J)?"Manifestless, ":"";J.Km&&(x+="Windowed, ");W="Uncertain";if(T>=0&&T<120)if(J.latencyClass&&J.latencyClass!=="UNKNOWN")switch(J.latencyClass){case "NORMAL":W="Optimized for Normal Latency";break;case "LOW":W="Optimized for Low Latency";break;case "ULTRALOW":W="Optimized for Ultra Low Latency";break;default:W="Unknown Latency Setting"}else W=J.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";x+=W;(T=K.sF)&&(x+=", seq "+T.sequence);q.live_mode=x}!K.isGapless||Or(J)&&K.NP||(q.playback_categories+="Gapless ");q.playback_categories_style=q.playback_categories?"":"display:none";q.bandwidth_samples=K.Rs;q.network_activity_samples=K.J1;q.live_latency_samples=K.Nk;q.buffer_health_samples=K.yj;K=g.KO(J);if(J.cotn||K)q.cotn_and_local_media=(J.cotn?J.cotn:"null")+" / "+K;q.cotn_and_local_media_style=q.cotn_and_local_media?"":"display:none"; Iq(J,"web_player_release_debug")?(q.release_name=I[44],q.release_style=""):q.release_style="display:none";q.debug_info&&H.length>0&&q.debug_info.length+H.length<=60?q.debug_info+=" "+H:q.extra_debug_info=H;q.extra_debug_info_style=q.extra_debug_info&&q.extra_debug_info.length>0?"":"display:none";return q}; oJ8=function(X){var J=/codecs="([^"]*)"/.exec(X.mimeType);return J&&J[1]?J[1]+" ("+X.itag+")":X.itag}; ki=function(X,J,L,x,Q){g.R.call(this,{V:"div",U:"ytp-horizonchart"});this.W=J;this.sampleCount=L;this.T=x;this.B=Q;this.index=0;this.heightPx=-1;this.N=this.K=null;this.L=Math.round(X/L);this.element.style.width=this.L*this.sampleCount+"px";this.element.style.height=this.W+"em"}; Zd=function(X,J){if(X.heightPx===-1){var L=null;try{L=g.MG("CANVAS"),X.K=L.getContext("2d")}catch(D){}if(X.K){var x=X.L*X.sampleCount;X.N=L;X.N.width=x;X.N.style.width=x+"px";X.element.appendChild(X.N)}else for(X.sampleCount=Math.floor(X.sampleCount/4),X.L*=4,L=0;L1?2:1,X.N.height=X.heightPx*L,X.N.style.height= X.heightPx+"px",X.K.scale(1,L)));J=g.d(J);for(x=J.next();!x.done;x=J.next()){L=X;var Q=X.index,K=x.value;for(x=0;x+20&&g.HB(J.K.element);x.classList.add("ytp-timely-actions-overlay");J.K.element.appendChild(x)}); g.f(this,this.K);this.Y("web_player_overlay_positioned_layout")?this.events.J(X,"basechromeinitialized",function(){J.api.hB(J.K.element,4,!0);J.K.element.setAttribute("data-overlay-order","10")}):g.l0(this.api,this.K.element,4)}; foo=function(X){X.timelyActions&&(X.T=X.timelyActions.reduce(function(J,L){if(L.cueRangeId===void 0)return J;J[L.cueRangeId]=0;return J},{}))}; xC=function(X,J){if(X.timelyActions){X=g.d(X.timelyActions);for(var L=X.next();!L.done;L=X.next())if(L=L.value,L.cueRangeId===J)return L}}; eC8=function(X,J){if((X=xC(X,J))&&X.onCueRangeExit)return hR(X.onCueRangeExit)}; Li=function(X){if(X.L!==void 0){var J=(J=xC(X,X.L))&&J.onCueRangeEnter?hR(J.onCueRangeEnter):void 0;var L=xC(X,X.L);a:if(L&&L.additionalTrigger){var x=g.d(L.additionalTrigger);for(var Q=x.next();!Q.done;Q=x.next())if(Q=Q.value,Q.type){var K=void 0,q=void 0;if((K=X.Pl[Q.type])==null?0:K((q=Q.args)!=null?q:{})){x=!0;break a}}x=!1}else x=!0;J&&x&&(X.api.GH("innertubeCommand",J),X.setTimeout(L),X.T[X.L]!==void 0&&X.T[X.L]++,X.D=!0)}}; vJz=function(X,J){return X.N===void 0?!1:J.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(J.seekLengthMilliseconds)===5E3?X.N===72:J.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(J.seekLengthMilliseconds)===1E4?X.N===74:J.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(J.seekLengthMilliseconds)===5E3?X.N===71:J.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(J.seekLengthMilliseconds)===1E4?X.N===73:!1}; jnI=function(X){if(X=X.getWatchNextResponse()){var J,L;X=(J=X.playerOverlays)==null?void 0:(L=J.playerOverlayRenderer)==null?void 0:L.timelyActionsOverlayViewModel;J=g.F(X,F3m);if(J!=null&&J.timelyActions)return J==null?void 0:J.timelyActions.map(function(x){return g.F(x,loP)}).filter(function(x){return!!x})}}; RC8=function(X){KG.call(this,X);var J=this;O8(this.api,"getPlaybackRate",function(){return J.api.getPlaybackRate()}); O8(this.api,"setPlaybackRate",function(L){typeof L==="number"&&J.api.setPlaybackRate(L)})}; QM=function(X,J,L,x){M6.call(this,"VOICE_BOOST",g.wv.pg);this.L=!1;this.Z=X;this.uh=X.TB();this.T=J;this.N=L;this.hasVoiceBoostAudioTrack=x;this.J(X,"videodatachange",this.K);this.setIcon(Slm());this.subscribe("select",this.B,this);this.K()}; Ki=function(X){KG.call(this,X);var J=this;this.events=new g.dS(X);g.f(this,this.events);this.events.J(X,"settingsMenuInitialized",function(){BYS(J)}); H9(this.api,"getVoiceBoostUserPreference",function(){return J.getVoiceBoostUserPreference()}); H9(this.api,"setVoiceBoostUserPreference",function(x){J.setVoiceBoostUserPreference(x)}); H9(this.api,"hasVoiceBoostAudioTrack",function(){return J.hasVoiceBoostAudioTrack()}); var L;this.L=(L=LPW())!=null?L:0;this.updateEnvironmentData()}; BYS=function(X){X.menuItem||(X.menuItem=new QM(X.api,function(J){X.setVoiceBoostUserPreference(J)},function(){return X.getVoiceBoostUserPreference()},function(){return X.hasVoiceBoostAudioTrack()}),g.f(X,X.menuItem))}; snz=function(X){X=X.Eo();if(!X)return!1;X=g.XU(X).exp||"";return X.includes("xpv")||X.includes("xpe")}; NYe=function(X){X=g.d(g.qg(X,!0));for(var J=X.next();!J.done;J=X.next())if(snz(J.value))return!0;return!1}; UQS=function(X,J){X=g.d(g.qg(X,!0));for(var L=X.next();!L.done;L=X.next())if(L=L.value,snz(L)){var x={potc:"1",pot:J};L.url&&(L.url=J8(L.url,x))}}; mQZ=function(X){return g.p(function(J){if(J.K==1)return g.oz(J,2),g.z(J,X,4);if(J.K!=2)return g.PW(J,0);g.EA(J);g.uv(J)})}; gw=function(X){KG.call(this,X);var J=this;this.useLivingRoomPoToken=!1;this.j=new g.Cz;this.L=!1;this.gt=null;this.S=!1;this.T=null;this.B=!1;var L=X.G().getWebPlayerContextConfig();this.events=new g.dS(X);g.f(this,this.events);this.events.J(X,"spsumpreject",function(x,Q,K){J.B=Q;x&&J.S&&!J.T&&(J.Y("html5_generate_content_po_token")&&K?J.rN(K):J.Y("html5_generate_session_po_token")&&k8S(J));J.T||J.api.Ni("stp",{s:+J.S,b:+J.B})}); this.events.J(X,"poTokenVideoBindingChange",function(x){J.rN(x)}); this.useLivingRoomPoToken=!(L==null||!L.useLivingRoomPoToken);X.addEventListener("csiinitialized",function(){J.gt=X.r5();var x=(J.Y("html5_generate_session_po_token")||J.Y("html5_generate_content_po_token"))&&!J.useLivingRoomPoToken;try{if(J.Y("html5_use_shared_owl_instance"))Z$o(J);else if(x){J.gt.R2("pot_isc");var Q=g.J_(J.api.G().experiments,"html5_webpo_kaios_defer_timeout_ms");Q?(J.N=Th(),g.$b(function(){IE(J)},Q)):J.Y("html5_webpo_idle_priority_job")?(J.N=Th(),g.Nk(g.mn(),function(){IE(J)})): IE(J)}}catch(K){K instanceof Error&&g.PM(K)}}); X.addEventListener("trackListLoaded",this.Ic.bind(this));X.eg(this)}; AXv=function(X){var J=Ha(X.experiments,"html5_web_po_request_key");return J?J:g.nD(X)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; XAm=function(X){var J=new i5Y,L={},x=(L["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",L);return new Og(J,X,function(){return x})}; JGv=function(X){return new aB(X)}; Dm=function(X,J){X.Y("html5_webpo_bge_ctmp")&&X.api.Ni(J,{hwpo:!!X.K,hwpor:X.L})}; Z$o=function(X){var J,L;g.p(function(x){if(x.K==1)return Dm(X,"swpo_i"),X.N=Th(),$C(X),g.z(x,Ap(),2);if(x.K!=3)return J=x.L,Dm(X,"swpo_co"),g.z(x,psI(J),3);L=x.L;X.Y("html5_web_po_token_disable_caching")||L.LM(150);X.K=L;Dm(X,"swpo_cc");mQZ(L.J3()).then(function(){X.L=!0;X.j.resolve();Dm(X,"swpo_re")}); g.$b(function(){IE(X);Dm(X,"swpo_si")},0); g.uv(x)})}; i1o=function(X){var J=X.api.G(),L=XAm(AXv(J)),x=L.x0.bind(L);L.x0=function(D){var C;return g.p(function(M){if(M.K==1)return g.z(M,x(D),2);C=M.L;X.api.Ni("itr",{});return M.return(C)})}; try{var Q=JGv({Vw:L,qa:{maxAttempts:5},bX:{ej:"CLEn",disable:J.experiments.Mi("html5_web_po_disable_remote_logging")||LgA.includes(g.Dk(J.VZ)||""),YY:BsR(J.experiments),kC:J.experiments.Mi("wpo_gel_strz")?function(D){var C=xXz.get(D);C||(C=new Mkm(D),C=new g.TL(C),xXz.set(D,C));return C}:void 0, hMi:X.Y("wpo_dis_lfdms")?0:1E3},aw9:g.PM});var K=new vO({Oo:Q,Vw:L,onError:g.PM});mQZ(K.J3()).then(function(){X.L=!0;X.j.resolve()}); X.Y("html5_web_po_token_disable_caching")||K.LM(150);g.f(X,Q);g.f(X,K);X.K=K}catch(D){g.PM(D);var q;(q=Q)==null||q.dispose()}}; IE=function(X){var J=X.api.G();X.gt.R2("pot_ist");X.K||i1o(X);X.Y("html5_bandaid_attach_content_po_token")||(X.Y("html5_generate_session_po_token")&&($C(X),k8S(X)),J=g.J_(J.experiments,"html5_session_po_token_interval_time_ms")||0,J>0&&(X.W=g.CU(function(){$C(X)},J)),X.S=!0)}; $C=function(X){var J,L,x,Q;g.p(function(K){if(!X.Y("html5_generate_session_po_token")||X.useLivingRoomPoToken)return K.return();J=X.api.G();L=g.ly("EOM_VISITOR_DATA")||g.ly("VISITOR_DATA");x=J.OQ?J.datasyncId:L;Q=Ha(J.experiments,"html5_mock_content_binding_for_session_token")||J.livingRoomPoTokenId||x;J.LW=Ci(X,Q);g.uv(K)})}; Ci=function(X,J){if(!X.K){if(X.N)try{return X.N(J)}catch(K){g.PM(K)}return""}try{X.gt.R2(X.L?"pot_cms":"pot_csms");var L={x5:!0,p8:!0,wJ:J};X.Y("html5_web_po_token_disable_caching")||(L.Kw={jL:J,M$:!0,LX:!0});var x=X.K.xI(L);X.gt.R2(X.L?"pot_cmf":"pot_csmf");if(X.L){var Q;(Q=X.T)==null||Q.resolve();X.T=null;X.B&&(X.B=!1,X.api.app.nm().fV(!1))}return x}catch(K){return g.PM(K),""}}; k8S=function(X){X.K&&(X.T=new Vy,X.j.promise.then(function(){X.gt.R2("pot_if");$C(X)}))}; g.Mg=function(X,J,L){g.q8(X.element,"ytp-suggestion-set",!!J.videoId);var x=J.playlistId;L=J.TC(L?L:"mqdefault.jpg");var Q=null,K=null;J instanceof f4&&(J.lengthText?(Q=J.lengthText||null,K=J.KV||null):J.lengthSeconds&&(Q=g.aF(J.lengthSeconds),K=g.aF(J.lengthSeconds,!0)));var q=!!x;x=q&&TT(x).type==="RD";var D=J instanceof f4?J.isLivePlayback:null,C=J instanceof f4?J.isUpcoming:null,M=J.author,y=J.shortViewCount,n=J.publishedTimeText,V=[],H=[];M&&V.push(M);y&&(V.push(y),H.push(y));n&&H.push(n);L= {title:J.title,author:M,author_and_views:V.join(" \u2022 "),aria_label:J.ariaLabel||g.is("Ver $TITLE",{TITLE:J.title}),duration:Q,timestamp:K,url:J.Ve(),is_live:D,is_upcoming:C,is_list:q,is_mix:x,background:L?"background-image: url("+L+")":"",views_and_publish_time:H.join(" \u2022 "),autoplayAlternativeHeader:J.mV};J instanceof GT&&(L.playlist_length=J.playlistLength);X.update(L)}; g.yM=function(X){var J=X.G(),L=g.Oc||g.ej?{style:"will-change: opacity"}:void 0,x=J.T,Q=["ytp-modern-videowall-still"];J.K&&Q.push("ytp-videowall-show-text");g.R.call(this,{V:"a",Ql:Q,X:{href:"{{url}}",target:x?J.D:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},C:[{V:"div",U:"ytp-modern-videowall-still-image",X:{style:"{{background}}"},C:[{V:"span",U:"ytp-modern-videowall-still-info-duration",iB:"{{duration}}"}]},{V:"span",U:"ytp-modern-videowall-still-info", X:{"aria-hidden":"true"},C:[{V:"span",U:"ytp-modern-videowall-still-info-bg",C:[{V:"span",U:"ytp-modern-videowall-still-info-content",X:L,C:[{V:"span",U:"ytp-modern-videowall-still-info-title",iB:"{{title}}"},{V:"span",U:"ytp-modern-videowall-still-info-author",iB:"{{author_and_views}}"},{V:"span",U:"ytp-modern-videowall-still-info-live",iB:"En vivo"}]}]}]},{V:"span",Ql:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],X:{"aria-hidden":"true"},C:[{V:"span",U:"ytp-modern-videowall-still-listlabel-icon"}, "Playlist",{V:"span",U:"ytp-modern-videowall-still-listlabel-length",C:[" (",{V:"span",iB:"{{playlist_length}}"},")"]}]},{V:"span",Ql:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],X:{"aria-hidden":"true"},C:[{V:"span",U:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{V:"span",U:"ytp-modern-videowall-still-listlabel-length",iB:" (50+)"}]}]});this.suggestion=null;this.K=x;this.api=X;this.L=new g.dS(this);g.f(this,this.L);this.listen("click",this.onClick); this.listen("keypress",this.onKeyPress);this.L.J(X,"videodatachange",this.onVideoDataChange);X.createServerVe(this.element,this);this.onVideoDataChange()}; g.Qy8=function(X,J){if(X.suggestion!==J){X.suggestion=J;var L=X.api.G();g.Mg(X,J,"hqdefault.jpg");if(g.lb(L)&&!X.api.Y("web_player_log_click_before_generating_ve_conversion_params")){L=J.Ve();var x={};g.wB(X.api,"addEmbedsConversionTrackingParams",[x]);L=g.Hw(L,x);X.updateValue("url",L)}(J=(J=J.sessionData)&&J.itct)&&X.api.setTrackingParams(X.element,J)}}; ni=function(X,J){g.R.call(this,{V:"div",Ql:["ytp-fullscreen-grid"],C:[{V:"div",U:"ytp-fullscreen-grid-hover-overlay",X:{title:"{{title}}","aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid"}},{V:"div",Ql:["ytp-fullscreen-grid-content","ytp-fullscreen-grid-stills-container"]}]});this.player=X;this.stills=[];this.videoData=null;this.currentState=0;this.T=this.element.querySelector(".ytp-fullscreen-grid-stills-container");this.L= new g.dS(this);g.f(this,this.L);this.K=J;if(X=this.element.querySelector(".ytp-fullscreen-grid-hover-overlay"))this.J(X,"click",this.N),W9(this.player,X,this);if(X=this.player.getVideoData(1))this.videoData=X;this.L.J(this.player,"videodatachange",this.onVideoDataChange)}; Hm=function(X){KG.call(this,X);var J=this;this.L=this.K=0;this.B=null;this.T=0;var L=new g.dS(X);g.f(this,L);this.D=this.api.Y("web_player_imax_theater_mode");this.N=this.api.Y("web_player_enable_fullscreen_grid_components");L.J(X,"fullscreentoggled",function(){VM(J)}); L.J(X,"sizestylechange",function(){J.N&&VM(J)}); H9(this.api,"setFullscreenQuickActions",function(x){J.setFullscreenQuickActions(x)}); H9(this.api,"setPlayerOverlayVideoDetailsRenderer",function(x){J.setPlayerOverlayVideoDetailsRenderer(x)}); this.N&&Kgv(this,L,X)}; Kgv=function(X,J,L){J.J(L,"keyboardserviceglobalkeydown",function(x,Q){X.N&&x.keyCode===86&&!x.repeat&&X.K!==0&&(Q&&(Q.Hi=!0),qKA(X))}); J.J(X.api.getRootNode(),"wheel",function(x){var Q;if(X.N&&(Q=X.j)!=null&&Q.element&&X.K!==0)if(X.T===0&&(X.T=window.innerHeight),X.K===1)x.preventDefault(),x.stopPropagation(),X.T!==0&&(X.L+=x.deltaY/X.T,X.L=Math.min(Math.max(X.L,0),.85),X.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+X.L.toString()),IKe(X,Math.abs(X.L)>=.85));else if(X.K===2){Q=x.deltaY<0;var K,q=((K=X.j)==null?void 0:K.element.scrollTop)===0;Q&&q?(x.preventDefault(),x.stopPropagation(),X.T!==0&&(X.L+=x.deltaY/ X.T,X.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+X.L.toString()),IKe(X,Math.abs(X.L)>=.85))):X.L!==0&&(X.L=0,X.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage","0"))}}); J.J(L,"standardControlsInitialized",function(){if(!X.j){X.j=new ni(X.api,X.S.bind(X));g.f(X,X.j);var x=X.api.getRootNode().querySelector(".ytp-chrome-bottom");x&&x.parentNode&&x.parentNode.insertBefore(X.j.element,x.nextSibling)}}); g2P(X,X.K)}; IKe=function(X,J){X.B&&clearTimeout(X.B);J?DXe(X):X.B=window.setTimeout(function(){DXe(X)},150)}; DXe=function(X){X.B&&(clearTimeout(X.B),X.B=null);X.T=0;X.N&&X.K!==0&&(Math.abs(X.L)>=.15&&qKA(X),X.L=0,X.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+X.L.toString()))}; qKA=function(X){X.N&&(X.K===1?OJ(X,2):OJ(X,1))}; VM=function(X){var J=X.api.isFullscreen()||X.D&&X.api.BJ();X.W&&g.LQ(X.W,J);X.playerOverlayVideoDetailsRenderer&&g.LQ(X.playerOverlayVideoDetailsRenderer,J);X.N&&(J?X.K!==2&&OJ(X,1):OJ(X,0))}; OJ=function(X,J){X.K=J;var L;(L=X.j)==null||L.UA(J);X.L=0;X.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+X.L.toString());g2P(X,J)}; g2P=function(X,J){X=X.api.getRootNode();g.q8(X,"ytp-fullscreen-grid-peaking",J===1);g.q8(X,"ytp-fullscreen-grid-active",J===2)}; $XO=function(X){KG.call(this,X);var J=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.dS(X);g.f(this,this.events);this.events.J(X,"heartbeatRequest",function(L){if(J.freePreviewUsageDetails.length||J.freePreviewWatchedDuration!==null)L.heartbeatRequestParams||(L.heartbeatRequestParams={}),L.heartbeatRequestParams.unpluggedParams||(L.heartbeatRequestParams.unpluggedParams={}),J.freePreviewUsageDetails.length>0?L.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= J.freePreviewUsageDetails:L.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+J.freePreviewWatchedDuration}}); H9(X,"setFreePreviewWatchedDuration",function(L){J.freePreviewWatchedDuration=L}); H9(X,"setFreePreviewUsageDetails",function(L){J.freePreviewUsageDetails=L})}; aE=function(X){g.G.call(this);this.features=[];var J=this.L,L=new pG(X),x=new q6(X),Q=new aU(X),K=new gw(X);var q=g.M2(X.G())?void 0:new P0(X);var D=new Of(X),C=new cXz(X),M=new RC8(X),y=new W0(X);var n=g.M2(X.G())?new $XO(X):void 0;var V=X.Y("html5_enable_ssap")?new uTo(X):void 0;var H;var O=(H=X.G().getWebPlayerContextConfig())!=null&&H.cinematicSettingsAvailable?new ua(X):void 0;H=new z7(X);var u=X.Y("enable_courses_player_overlay_purchase")?new lYY(X):void 0;var S=g.$3(X.G())?new G6e(X):void 0; var Y=new c0(X);var h=X.G().T?new WXY(X):void 0;var W=g.lb(X.G())?new zqA(X):void 0;var T=X.Y("web_player_move_autonav_toggle")&&X.G().ek?new o5A(X):void 0;var l=g.$3(X.G())?new dLo(X):void 0;var Jo=X.Y("web_enable_speedmaster")&&g.$3(X.G())?new sf(X):void 0;var U=X.G().GB?void 0:new rXz(X);var QP=X.Y("report_pml_debug_signal")?new wCo(X):void 0;var Iz=new r1I(X),qS=new uX(X);var $e=g.ze(X.G())?new Bx8(X):void 0;var k=navigator.mediaSession&&window.MediaMetadata&&X.G().Cq?new V6(X):void 0;var cW= X.Y("html5_enable_drc")&&!X.G().B?new SZ(X):void 0;var rI=new gv(X);var Xv=g.$3(X.G())?new i$Z(X):void 0;var T0=X.Y("html5_enable_d6de4")?new wl(X):void 0;var aH=g.$3(X.G())&&X.Y("web_sleep_timer")?new Gz(X):void 0;var Tm=g.lb(X.G())?new rle(X):void 0;var ZH=new vS(X),nd=new E58(X),l8=new wqv(X);var LJ=X.Y("enable_sabr_snackbar_message")?new H$Y(X):void 0;var E=X.Y("web_enable_timely_actions")?new G8Y(X):void 0;var jJ=new oj(X);var hS=g.$3(X.G())?new Hm(X):void 0;var xe=X.Y("html5_enable_voice_boost")? new Ki(X):void 0;X=X.Y("web_player_loop_settings_menu")&&X.G().cJ?new tYo(X):void 0;J.call(this,L,x,Q,K,q,D,C,M,y,n,V,O,H,u,S,Y,h,W,T,l,Jo,U,QP,Iz,qS,$e,void 0,k,cW,rI,void 0,Xv,T0,aH,Tm,void 0,ZH,nd,l8,void 0,LJ,E,jJ,hS,xe,void 0,X,void 0)}; COP=function(){this.K=this.L=NaN}; MLm=function(X,J){this.m9=X;this.timerName="";this.N=!1;this.K=NaN;this.T=new COP;this.L=J||null;this.N=!1}; yGz=function(X,J,L){var x=g.mB(J.TH)&&!J.TH.B;if(J.TH.tB&&(Ba(J.TH)||J.TH.gI==="shortspage"||He(J.TH)||x)&&!X.N){X.N=!0;X.B=J.clientPlaybackNonce;g.ly("TIMING_ACTION")||F$("TIMING_ACTION",X.m9.csiPageType);X.m9.csiServiceName&&F$("CSI_SERVICE_NAME",X.m9.csiServiceName);if(X.L){x=X.L.r5();for(var Q=g.d(Object.keys(x)),K=Q.next();!K.done;K=Q.next())K=K.value,oo(K,x[K],X.timerName);x=g.ND(B_z)(X.L.Tf);g.bV(x,X.timerName);x=X.L;x.L={};x.Tf={}}g.bV({playerInfo:{visibilityState:g.ND(RPo)()},playerType:"LATENCY_PLAYER_HTML5"}, X.timerName);X.j!==J.clientPlaybackNonce||Number.isNaN(X.K)||(PQ("_start",X.timerName)?L=g.ND(ao)("_start",X.timerName)+X.K:g.PM(new g.Fm("attempted to log gapless pbs before CSI timeline started",{cpn:J.clientPlaybackNonce})));L&&!PQ("pbs",X.timerName)&&ww(X,L)}}; ww=function(X,J,L){oo("pbs",J!=null?J:(0,g.uT)(),L!=null?L:X.timerName)}; tx=function(X){L2m();JPm();X.timerName=""}; n2A=function(X){if(X.L){var J=X.L;J.L={};J.Tf={}}X.N=!1;X.j=void 0;X.K=NaN}; VLm=function(X,J){g.Ly.call(this);this.TH=X;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.L=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.S={};this.K=0;if(X=J.session_data)this.sessionData=mJ(X,"&");this.index=Math.max(0,Number(J.index)||0);this.loop=!!J.loop;this.startSeconds=Number(J.startSeconds)||0;this.title=J.playlist_title||"";this.description=J.playlist_description||"";this.author= J.author||J.playlist_author||"";J.video_id&&(this.items[this.index]=J);if(X=J.api)typeof X==="string"&&X.length===16?J.list="PL"+X:J.playlist=X;if(X=J.list)switch(J.listType){case "user_uploads":this.listId=new jH("UU","PLAYER_"+X);break;default:var L=J.playlist_length;L&&(this.length=Number(L)||0);this.listId=TT(X);if(X=J.video)this.items=X.slice(0),this.loaded=!0}else if(J.playlist){X=J.playlist.toString().split(",");this.index>0&&(this.items=[]);X=g.d(X);for(L=X.next();!L.done;L=X.next())(L=L.value)&& this.items.push({video_id:L});this.length=this.items.length;if(X=J.video)this.items=X.slice(0),this.loaded=!0}this.setShuffle(!!J.shuffle);if(X=J.suggestedQuality)this.quality=X;this.S=We(J,"playlist_");this.N=(J=J.thumbnail_ids)?J.split(","):[]}; H1z=function(X){return!!(X.playlist||X.list||X.api)}; O1o=function(X){var J=X.index+1;return J>=X.length?0:J}; aK8=function(X){var J=X.index-1;return J<0?X.length-1:J}; g.dw=function(X,J,L,x){J=J!==void 0?J:X.index;J=X.items&&J in X.items?X.items[X.order[J]]:null;var Q=null;J&&(L&&(J.autoplay="1"),x&&(J.autonav="1"),Q=new g.KI(X.TH,J),g.f(X,Q),Q.M9=!0,Q.startSeconds=X.startSeconds||Q.clipStart||0,X.listId&&(Q.playlistId=X.listId.toString()));return Q}; wAS=function(X,J){X.index=g.fW(J,0,X.length-1);X.startSeconds=0}; tLv=function(X,J){if(J.video&&J.video.length){X.title=J.title||"";X.description=J.description;X.views=J.views;X.likes=J.likes;X.dislikes=J.dislikes;X.author=J.author||"";var L=J.loop;L&&(X.loop=L);L=g.dw(X);X.items=[];for(var x=g.d(J.video),Q=x.next();!Q.done;Q=x.next())if(Q=Q.value)Q.video_id=Q.encrypted_id,X.items.push(Q);X.length=X.items.length;(J=J.index)?X.index=J:X.findIndex(L);X.setShuffle(!1);X.loaded=!0;X.K++;X.L&&X.L()}}; o2P=function(X,J){var L,x,Q,K,q,D,C;return g.p(function(M){if(M.K==1){L=g.lV();var y=X.G(),n={context:g.nO(X),playbackContext:{contentPlaybackContext:{ancestorOrigins:y.ancestorOrigins}}},V=y.getWebPlayerContextConfig();if(V==null?0:V.encryptedHostFlags)n.playbackContext.contentPlaybackContext.encryptedHostFlags=V.encryptedHostFlags;if(V==null?0:V.hideInfo)n.playerParams={showinfo:!1};y=y.embedConfig;V=J.docid||J.video_id||J.videoId||J.id;if(!V){V=J.raw_embedded_player_response;if(!V){var H=J.embedded_player_response; H&&(V=JSON.parse(H))}if(V){var O,u,S,Y,h,W;V=((W=g.F((O=V)==null?void 0:(u=O.embedPreview)==null?void 0:(S=u.thumbnailPreviewRenderer)==null?void 0:(Y=S.playButton)==null?void 0:(h=Y.buttonRenderer)==null?void 0:h.navigationEndpoint,g.Md))==null?void 0:W.videoId)||null}else V=null}O=(O=V)?O:void 0;u=X.playlistId?X.playlistId:J.list;S=J.listType;if(u){var T;S==="user_uploads"?T={username:u}:T={playlistId:u};dXm(y,O,J,T);n.playlistRequest=T}else J.playlist?(T={templistVideoIds:J.playlist.toString().split(",")}, dXm(y,O,J,T),n.playlistRequest=T):O&&(T={videoId:O},y&&(T.serializedThirdPartyEmbedConfig=y),n.singleVideoRequest=T);x=n;Q=g.mr(uEA);g.oz(M,2);return g.z(M,g.zH(L,x,Q),4)}if(M.K!=2)return K=M.L,q=X.G(),J.raw_embedded_player_response=K,q.FE=Kl(J,g.lb(q)),q.N=q.FE==="EMBEDDED_PLAYER_MODE_PFL",K&&(D=K,D.trackingParams&&k5(D.trackingParams)),M.return(new g.KI(q,J));C=g.EA(M);C instanceof Error||(C=Error("b259802748"));g.Sc(C);return M.return(X)})}; dXm=function(X,J,L,x){L.index&&(x.playlistIndex=String(Number(L.index)+1));x.videoId=J?J:"";X&&(x.serializedThirdPartyEmbedConfig=X)}; g.oE=function(X,J){uf.get(X);uf.set(X,J)}; g.bf=function(X){g.Ly.call(this);this.loaded=!1;this.player=X}; b1m=function(){this.K=[];this.L=[]}; g.qg=function(X,J){return J?X.L.concat(X.K):X.L}; g.ST=function(X,J){switch(J.kind){case "asr":SKz(J,X.K);break;default:SKz(J,X.L)}}; SKz=function(X,J){g.Ou(J,function(L){return X.equals(L)})||J.push(X)}; g.Pm=function(X){g.G.call(this);this.IB=X;this.K=new b1m;this.T=null;this.j=[];this.S=[]}; g.cm=function(X,J,L){g.Pm.call(this,X);this.videoData=J;this.audioTrack=L;this.L=null;this.N=!1;this.j=J.Ts;this.S=J.EZ;this.N=g.kU(J)}; g.POR=function(X,J){var L;return X.G().Y("safari_live_drm_captions_fix")&&((L=X.getVideoData())==null?0:L.zC())?!1:g.M2(X.G())&&!J.isManifestless}; g.EJ=function(X,J){return l2(X.info.mimeType)?J?X.info.itag===J:!0:!1}; g.cGm=function(X,J){if(X.L!=null&&g.POR(J,X.L)&&X.L.L.rawcc!=null)return!0;if(!X.Zw())return!1;J=!!X.L&&X.L.isManifestless&&Object.values(X.L.L).some(function(L){return g.EJ(L,"386")}); X=!!X.L&&!X.L.isManifestless&&g.$rm(X.L);return J||X}; g.YC=function(X,J,L,x,Q,K){g.Pm.call(this,X);this.videoId=L;this.v6=Q;this.eventId=K;this.B={};this.L=null;X=x||g.XU(J).hl||"";X=X.split("_").join("-");this.N=J8(J,{hl:X})}; E28=function(X,J){g.G.call(this);var L=this;this.Z=X;this.T=J;this.Tf={};this.L={};this.K=null;this.N=new Set;this.j=new g.dS(this);this.Zh={wNq:function(){return L.T}}; this.B=this.Z.Y("web_player_defer_modules");this.Aj=new Map;g.f(this,this.j);this.j.J(X,"videodatachange",this.onVideoDataChange)}; YKP=function(X,J){X.K=J}; g.hx=function(X){return X.Aj.get("captions")}; jym=function(X,J){switch(J){case "ad":return hhm(X);case "annotations_module":return X.Z.isEmbedsShortsMode()?X=!1:(J=X.Z,X=J.G(),J=J.getVideoData(),X=X.N||J.MU||X.controlsType==="3"?!1:X.jC.isEmpty()&&X.playerStyle!=="annotation-editor"&&X.playerStyle!=="live-dashboard"?!!J.jC||!!g.Nd(J)||!!g.Ur(J):!0),X;case "asmjs":return zho(X);case "creatorendscreen":return Wge(X);case "embed":return g.lb(X.Z.G());case "endscreen":return g.pAR(X);case "heartbeat":return X.Rl();case "kids":return x3(X.Z.G()); case "remote":return X.Z.G().Uv;case "miniplayer":return X.Z.G().showMiniplayerUiWhenMinimized;case "offline":return X.Z.G().iJ;case "captions":return rGe(X);case "unplugged":return g.kH(X.Z.G());case "ux":return X.Z.G().J0;case "webgl":return v2z(X);case "ypc":return X.KR();case "ypc_clickwrap":return X=X.Z.getVideoData(),X.LW&&!X.TF;case "yto":return!!X.Z.getVideoData().aB.includes("yto");default:return g.Sc(Error("Module descriptor "+J+" does not match")),!1}}; zg=function(X,J,L,x,Q){var K;L=L===void 0?!1:L;x=x===void 0?!1:x;var q=X.Aj.get(J);if(!q||x)if(Q||(Q=function(){zg(X,J,L,x)}),K||(K=function(){X.Z.Rn(J)}),q=q||T8Y(X,J,jym(X,J),Q,K))X.Aj.set(J,q),q.create(),X.Z.publish("modulecreated",J),L&&X.Z.EM("onApiChange")}; fKS=function(X){var J=J===void 0?!1:J;var L,x,Q,K,q;return g.p(function(D){if(D.K==1)return(L=X.Aj.get("asmjs"))&&!J?D.return(L):(x=uf.get("asmjs"))!=null?(Q=x,D.fm(2)):g.z(D,new Promise(function(C,M){GEe(X,"asmjs",function(){var y=uf.get("asmjs");y?C(y):M("cannot load module asmjs")},M)}),3); D.K!=2&&(Q=D.L);K=Q;if(!K)return D.return(Promise.reject("cannot load module asmjs"));q=new K(X.Z);X.Aj.set("asmjs",q);q.create();return D.return(q)})}; lKI=function(X){ehS(X)&&X.mL();Fgm(X)&&(zg(X,"captions",!0),zg(X,"endscreen"),X.Pa(),zg(X,"creatorendscreen",!0))}; Fgm=function(X){var J=X.Z.getVideoData(),L=X.B&&!J.isInlinePlaybackNoAd;X.Z.Y("html5_defer_modules_on_ads_only")&&!J.isAd()&&(L=!1);return L}; ehS=function(X){X=X.Z.getVideoData();var J;if(J=X.Y("web_player_defer_ad")){if(g.tS(X.aB,"ad")||VzZ(X)||X.enableServerStitchedDai)X=!1;else{J=X.playerResponse;X=X.startSeconds;var L=J==null?void 0:J.adPlacements;if(J=L){J=Number.MAX_VALUE;L=g.d(L);for(var x=L.next();!x.done;x=L.next())if(x=x.value.adPlacementRenderer){var Q=void 0,K=(Q=x.config)==null?void 0:Q.adPlacementConfig;Q=void 0;if(((Q=K)==null?void 0:Q.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var q=Q=void 0;K=Number((Q=K)==null?void 0:(q= Q.adTimeOffset)==null?void 0:q.offsetStartMilliseconds)||0;q=Q=void 0;x=Number(((Q=x.renderer)==null?void 0:(q=Q.adBreakServiceRenderer)==null?void 0:q.prefetchMilliseconds)||0);x=K-x;x=11;X=X.api.G().W&&fi;return!(!J&&!X)}; Ax=function(X,J){return!X.api.isInline()&&!$4S(X,dE(J))&&g.wn(J)}; D4o=function(X){X.ZH.Uc();if(X.nC&&X.Rp)X.Rp=!1;else if(!X.api.G().Hl&&!X.jY()){var J=X.api.getPlayerStateObject();g.N(J,2)&&g.v9(X.api)||X.Na(J);!X.api.G().Nx||J.isCued()||g.N(J,1024)?X.Wh():X.Ue.isActive()?(X.SS(),X.Ue.stop()):X.Ue.start()}}; MnY=function(X,J){var L;if((L=X.api.getVideoData())==null?0:L.mutedAutoplay){var x,Q;if((x=J.target)==null?0:(Q=x.className)==null?0:Q.includes("ytp-info-panel"))return!1}return g.wn(J)&&X.api.isMutedByMutedAutoplay()?(X.api.unMute(),X.api.getPresentingPlayerType()===2&&X.api.playVideo(),J=X.api.getPlayerStateObject(),!g.N(J,4)||g.N(J,8)||g.N(J,2)||X.Wh(),!0):!1}; y6W=function(X,J,L){X.api.isFullscreen()?L<1-J&&X.api.toggleFullscreen():L>1+J&&X.api.toggleFullscreen()}; gAS=function(X){var J=Go()&&v6()>=67&&!X.api.G().W;X=X.api.G().disableOrganicUi;return!g.To("tizen")&&!f0&&!J&&!X}; g.X7=function(X){g.R.call(this,{V:"div",C:[{V:"div",U:"ytp-bezel-text-wrapper",C:[{V:"div",U:"ytp-bezel-text",iB:"{{title}}"}]},{V:"div",U:"ytp-bezel",X:{role:"status","aria-label":"{{label}}"},C:[{V:"div",U:"ytp-bezel-icon",iB:"{{icon}}"}]}]});this.Z=X;this.K=new g.sn(this.show,10,this);X=this.Z.Y("delhi_modern_web_player")?1E3:500;this.L=new g.sn(this.hide,X,this);g.f(this,this.K);g.f(this,this.L);this.hide()}; LV=function(X,J,L){if(J<=0){L=Sl();J="silenciado";var x=0}else L=L?{V:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{V:"path",uH:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{V:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{V:"path",uH:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},x=Math.floor(J),J=x+"volumen";J1(X,L,J,x+"%")}; nAv=function(X,J){J=J?{V:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{V:"path",uH:!0,U:"ytp-svg-fill",X:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:Hlz();var L=X.Z.getPlaybackRate(),x=g.is("La velocidad es de $RATE",{RATE:String(L)});J1(X,J,x,L+"x")}; VnS=function(X,J){J=J?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";J1(X,SpP(X.Z),J)}; J1=function(X,J,L,x){x=x===void 0?"":x;X.updateValue("label",L===void 0?"":L);X.updateValue("icon",J);g.mz(X.L);X.K.start();X.updateValue("title",x);g.q8(X.element,"ytp-bezel-text-hide",!x)}; HmZ=function(X,J){g.R.call(this,{V:"button",Ql:["ytp-button","ytp-cards-button"],X:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.lb(X.G()))},C:[{V:"span",U:"ytp-cards-button-icon-default",C:[{V:"div",U:"ytp-cards-button-icon",C:[X.G().Y("player_new_info_card_format")?w2e():{V:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{V:"path",uH:!0,U:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {V:"div",U:"ytp-cards-button-title",iB:"Informaci\u00f3n"}]},{V:"span",U:"ytp-cards-button-icon-shopping",C:[{V:"div",U:"ytp-cards-button-icon",C:[{V:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{V:"path",U:"ytp-svg-shadow",X:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{V:"path",U:"ytp-svg-fill",X:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{V:"path",U:"ytp-svg-shadow-fill",X:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{V:"div", U:"ytp-cards-button-title",iB:"Shopping"}]}]});this.Z=X;this.K=J;this.L=null;this.fade=new g.kE(this,250,!0,100);g.f(this,this.fade);g.q8(this.K,"ytp-show-cards-title",g.lb(X.G()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.r_(!0)}; Ome=function(X,J){g.R.call(this,{V:"div",U:"ytp-cards-teaser",C:[{V:"div",U:"ytp-cards-teaser-box"},{V:"div",U:"ytp-cards-teaser-text",C:X.G().Y("player_new_info_card_format")?[{V:"button",U:"ytp-cards-teaser-info-icon",X:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},C:[w2e()]},{V:"img",U:"ytp-cards-teaser-channel-avatar",X:{alt:"","aria-hidden":"true"}},{V:"span",U:"ytp-cards-teaser-label",iB:"{{text}}"},{V:"button",U:"ytp-cards-teaser-close-button",X:{"aria-label":"Cerrar"},C:[g.ny()]}]: [{V:"span",U:"ytp-cards-teaser-label",iB:"{{text}}"}]}]});var L=this;this.Z=X;this.ai=J;this.fade=new g.kE(this,250,!1,250);this.L=null;this.W=new g.sn(this.jf6,300,this);this.B=new g.sn(this.Bti,2E3,this);this.T=[];this.K=null;this.S=new g.sn(function(){L.element.style.margin="0"},250); this.onClickCommand=this.N=null;g.f(this,this.fade);g.f(this,this.W);g.f(this,this.B);g.f(this,this.S);X.G().Y("player_new_info_card_format")?(g.xq(X.getRootNode(),"ytp-cards-teaser-dismissible"),this.J(this.kq("ytp-cards-teaser-close-button"),"click",this.HM),this.J(this.kq("ytp-cards-teaser-info-icon"),"click",this.Es),this.J(this.kq("ytp-cards-teaser-label"),"click",this.Es)):this.listen("click",this.Es);this.J(J.element,"mouseover",this.O2);this.J(J.element,"mouseout",this.Mg);this.J(X,"cardsteasershow", this.N09);this.J(X,"cardsteaserhide",this.Vr);this.J(X,"cardstatechange",this.cL);this.J(X,"presentingplayerstatechange",this.cL);this.J(X,"appresize",this.Sq);this.J(X,"onShowControls",this.Sq);this.J(X,"onHideControls",this.Zl);this.listen("mouseenter",this.WM)}; ahe=function(X){g.R.call(this,{V:"button",Ql:[x9.BUTTON,x9.TITLE_NOTIFICATIONS],X:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},C:[{V:"div",U:x9.TITLE_NOTIFICATIONS_ON,X:{title:"Dejar de recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},C:[g.aO()]},{V:"div",U:x9.TITLE_NOTIFICATIONS_OFF,X:{title:"Recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},C:[{V:"svg",X:{fill:"#fff",height:"24px", viewBox:"0 0 24 24",width:"24px"},C:[{V:"path",X:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});this.api=X;this.L=!1;X.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Recibir notificaciones sobre todos los videos nuevos")}; woI=function(X,J){X.L=J;X.element.classList.toggle(x9.NOTIFICATIONS_ENABLED,X.L);var L=X.api.getVideoData();L?(J=J?L.Z$:L.vI)?(X=X.api.jj())?ht(X,J):g.Sc(Error("No innertube service available when updating notification preferences.")):g.Sc(Error("No update preferences command available.")):g.Sc(Error("No video data when updating notification preferences."))}; d4Y=function(X,J,L){var x=x===void 0?800:x;var Q=Q===void 0?600:Q;var K=document.location.protocol;X=Rg8(K+"//"+X+"/signin?context=popup","feature",J,"next",K+"//"+location.hostname+"/post_login");tnI(X,L,x,Q)}; tnI=function(X,J,L,x){L=L===void 0?800:L;x=x===void 0?600:x;if(X=g.nW(window,X,"loginPopup","width="+L+",height="+x+",resizable=yes,scrollbars=yes"))VbY(function(){J()}),X.moveTo((screen.width-L)/2,(screen.height-x)/2)}; g.iQ=function(X,J,L,x,Q,K,q,D,C,M,y,n){X=X.charAt(0)+X.substring(1).toLowerCase();L=L.charAt(0)+L.substring(1).toLowerCase();if(J==="0"||J==="-1")J=null;if(x==="0"||x==="-1")x=null;var V=y.G(),H=V.userDisplayName&&g.mB(V);g.R.call(this,{V:"div",Ql:["ytp-button","ytp-sb"],C:[{V:"div",U:"ytp-sb-subscribe",X:H?{title:g.is("Suscribirse como $USER_NAME",{USER_NAME:V.userDisplayName}),"aria-label":"Suscribirse al canal","data-tooltip-image":OT(V),"data-tooltip-opaque":String(g.lb(V)),tabindex:"0",role:"button"}: {"aria-label":"Suscribirse al canal"},C:[{V:"div",U:"ytp-sb-text",C:[{V:"div",U:"ytp-sb-icon"},X]},J?{V:"div",U:"ytp-sb-count",iB:J}:""]},{V:"div",U:"ytp-sb-unsubscribe",X:H?{title:g.is("Suscrito como $USER_NAME",{USER_NAME:V.userDisplayName}),"aria-label":"Anular la suscripci\u00f3n al canal","data-tooltip-image":OT(V),"data-tooltip-opaque":String(g.lb(V)),tabindex:"0",role:"button"}:{"aria-label":"Anular la suscripci\u00f3n al canal"},C:[{V:"div",U:"ytp-sb-text",C:[{V:"div",U:"ytp-sb-icon"},L]}, x?{V:"div",U:"ytp-sb-count",iB:x}:""]}],X:{"aria-live":"polite"}});var O=this;this.channelId=q;this.Z=y;this.N=n;var u=this.kq("ytp-sb-subscribe"),S=this.kq("ytp-sb-unsubscribe");K&&g.xq(this.element,"ytp-sb-classic");if(Q){D?this.L():this.K();var Y=function(){if(V.Pl){var W=O.channelId;if(C||M){var T={c:W};var l;g.JW.isInitialized()&&(l=fpo(T));T=l||"";if(l=y.getVideoData())if(l=l.subscribeCommand){var Jo=y.jj();Jo?(ht(Jo,l,{botguardResponse:T,feature:C}),y.GH("SUBSCRIBE",W)):g.Sc(Error("No innertube service available when updating subscriptions."))}else g.Sc(Error("No subscribe command in videoData.")); else g.Sc(Error("No video data available when updating subscription."))}S.focus();S.removeAttribute("aria-hidden");u.setAttribute("aria-hidden","true")}else d4Y(g.K4(O.Z.G()),"sb_button",O.T)},h=function(){var W=O.channelId; if(C||M){var T=y.getVideoData();ht(y.jj(),T.unsubscribeCommand,{feature:C});y.GH("UNSUBSCRIBE",W)}u.focus();u.removeAttribute("aria-hidden");S.setAttribute("aria-hidden","true")}; this.J(u,"click",Y);this.J(S,"click",h);this.J(u,"keypress",function(W){W.keyCode===13&&Y(W)}); this.J(S,"keypress",function(W){W.keyCode===13&&h(W)}); this.J(y,"SUBSCRIBE",this.L);this.J(y,"UNSUBSCRIBE",this.K);this.N&&H&&(g5Y(y),W9(y,u,this),W9(y,S,this))}else g.xq(u,"ytp-sb-disabled"),g.xq(S,"ytp-sb-disabled")}; bmY=function(X){g.R.call(this,{V:"div",U:"ytp-title-channel",C:[{V:"div",U:"ytp-title-beacon"},{V:"a",U:"ytp-title-channel-logo",X:{href:"{{channelLink}}",target:X.G().D,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{V:"div",U:"ytp-title-expanded-overlay",X:{"aria-hidden":"{{flyoutUnfocusable}}"},C:[{V:"div",U:"ytp-title-expanded-heading",C:[{V:"div",U:"ytp-title-expanded-title",C:[{V:"a",iB:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:X.G().D,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{V:"div",U:"ytp-title-expanded-subtitle",iB:"{{expandedSubtitle}}",X:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var J=this;this.api=X;this.channel=this.kq("ytp-title-channel");this.K=this.kq("ytp-title-channel-logo");this.channelName=this.kq("ytp-title-expanded-title");this.B=this.kq("ytp-title-expanded-overlay");this.N=this.L=this.subscribeButton=null;this.T=!1;X.createClientVe(this.K,this,36925);X.createClientVe(this.channelName,this, 37220);g.lb(this.api.G())&&uIY(this);this.J(X,"videodatachange",this.Wl);this.J(X,"videoplayerreset",this.Wl);this.J(this.channelName,"click",function(L){J.api.logClick(J.channelName);g.nW(window,oAR(J));L.preventDefault()}); this.J(this.K,"click",this.GHm);this.Wl()}; S5e=function(X){if(!X.api.G().sH){var J=X.api.getVideoData(),L=new g.iQ("Suscribirse",null,"Suscrito/a",null,!0,!1,J.OY,J.subscribed,"channel_avatar",null,X.api,!0);X.api.createServerVe(L.element,X);var x;X.api.setTrackingParams(L.element,((x=J.subscribeButtonRenderer)==null?void 0:x.trackingParams)||null);X.J(L.element,"click",function(){X.api.logClick(L.element)}); X.subscribeButton=L;g.f(X,X.subscribeButton);X.subscribeButton.zH(X.B);X.subscribeButton.hide();var Q=new ahe(X.api);X.L=Q;g.f(X,Q);Q.zH(X.B);Q.hide();X.J(X.api,"SUBSCRIBE",function(){J.X7&&(Q.show(),X.api.logVisibility(Q.element,!0))}); X.J(X.api,"UNSUBSCRIBE",function(){J.X7&&(Q.hide(),X.api.logVisibility(Q.element,!1),woI(Q,!1))})}}; uIY=function(X){var J=X.api.G();S5e(X);X.updateValue("flyoutUnfocusable","true");X.updateValue("channelTitleFocusable","-1");X.updateValue("shouldHideExpandedTitleForA11y","true");X.updateValue("shouldHideExpandedSubtitleForA11y","true");J.K||J.bB||(X.J(X.channel,"mouseenter",X.Ib),X.J(X.channel,"mouseleave",X.OP),X.J(X.channel,"focusin",X.Ib),X.J(X.channel,"focusout",function(L){X.channel.contains(L.relatedTarget)||X.OP()})); X.N=new g.sn(function(){X.isExpanded()&&(X.api.logVisibility(X.channelName,!1),X.subscribeButton&&(X.subscribeButton.hide(),X.api.logVisibility(X.subscribeButton.element,!1)),X.L&&(X.L.hide(),X.api.logVisibility(X.L.element,!1)),X.channel.classList.remove("ytp-title-expanded"),X.channel.classList.add("ytp-title-show-collapsed"))},500); g.f(X,X.N);X.J(X.channel,P1v,function(){c6W(X)}); X.J(X.api,"onHideControls",X.v0);X.J(X.api,"appresize",X.v0);X.J(X.api,"fullscreentoggled",X.v0)}; c6W=function(X){X.channel.classList.remove("ytp-title-show-collapsed");X.channel.classList.remove("ytp-title-show-expanded")}; EAz=function(X){var J=X.api.getPlayerSize();return g.lb(X.api.G())&&J.width>=524}; oAR=function(X){var J=X.api.G(),L=X.api.getVideoData(),x=g.ac(J)+L.A0;g.CO(L)&&(x="https://music.youtube.com"+L.A0);if(!g.lb(J))return x;J={};g.wB(X.api,"addEmbedsConversionTrackingParams",[J]);return g.Hw(x,J)}; QL=function(X){var J=g.xd({"aria-haspopup":"true"});g.LG.call(this,J,X);this.listen("keydown",this.L)}; KV=function(X,J){X.element.setAttribute("aria-haspopup",String(J))}; Y5W=function(X,J){g.R.call(this,{V:"div",U:"ytp-user-info-panel",X:{"aria-label":"Informaci\u00f3n del usuario"},C:X.G().Pl&&!X.Y("embeds_web_always_enable_signed_out_state")?[{V:"div",U:"ytp-user-info-panel-icon",iB:"{{icon}}"},{V:"div",U:"ytp-user-info-panel-content",C:[{V:"div",U:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable}}",role:"text"},iB:"{{watchingAsUsername}}"},{V:"div",U:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable2}}",role:"text"},iB:"{{watchingAsEmail}}"}]}]: [{V:"div",U:"ytp-user-info-panel-icon",iB:"{{icon}}"},{V:"div",U:"ytp-user-info-panel-content",C:[{V:"div",C:[{V:"text",X:{tabIndex:"{{userInfoFocusable}}"},iB:"Saliste de la cuenta"}]},{V:"div",U:"ytp-user-info-panel-login",C:[{V:"a",X:{tabIndex:"{{userInfoFocusable2}}",role:"button"},iB:X.G().sH?"":"Acceder a YouTube"}]}]}]});this.IB=X;this.L=J;X.G().Pl||X.G().sH||this.J(this.kq("ytp-user-info-panel-login"),"click",this.UC);this.closeButton=new g.R({V:"button",Ql:["ytp-collapse","ytp-button"],X:{title:"Cerrar"}, C:[g.bA()]});this.closeButton.zH(this.element);g.f(this,this.closeButton);this.J(window,"blur",this.hide);this.J(document,"click",this.xr);this.Wl()}; W$P=function(X,J,L){g.cS.call(this,X);this.uh=J;this.qF=L;this.getVideoUrl=new QL(6);this.Ug=new QL(5);this.YV=new QL(4);this.yr=new QL(3);this.x8=new g.LG(g.xd({href:"{{href}}",target:this.Z.G().D},void 0,!0),2,"Solucionar problema de reproducci\u00f3n");this.showVideoInfo=new g.LG(g.xd(),1,"Estad\u00edsticas");this.gk=new g.qy({V:"div",Ql:["ytp-copytext","ytp-no-contextmenu"],X:{draggable:"false",tabindex:"1"},iB:"{{text}}"});this.jP=new PS(this.Z,this.gk);this.JY=this.Cw=null;g.lb(this.Z.G())&& (this.closeButton=new g.R({V:"button",Ql:["ytp-collapse","ytp-button"],X:{title:"Cerrar"},C:[g.bA()]}),g.f(this,this.closeButton),this.closeButton.zH(this.element),this.closeButton.listen("click",this.jm,this));g.lb(this.Z.G())&&(this.sY=new g.LG(g.xd(),8,"Cuenta"),g.f(this,this.sY),this.EA(this.sY,!0),this.sY.listen("click",this.APq,this),X.createClientVe(this.sY.element,this.sY,137682));this.Z.G().cJ&&(this.ql=new M6("En bucle",7),g.f(this,this.ql),this.EA(this.ql,!0),this.ql.listen("click",this.w4I, this),X.createClientVe(this.ql.element,this.ql,28661));g.f(this,this.getVideoUrl);this.EA(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.Phl,this);X.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.f(this,this.Ug);this.EA(this.Ug,!0);this.Ug.listen("click",this.k66,this);X.createClientVe(this.Ug.element,this.Ug,28660);g.f(this,this.YV);this.EA(this.YV,!0);this.YV.listen("click",this.hCB,this);X.createClientVe(this.YV.element,this.YV,28658);g.f(this,this.yr);this.EA(this.yr, !0);this.yr.listen("click",this.uXH,this);g.f(this,this.x8);this.EA(this.x8,!0);this.x8.listen("click",this.WZM,this);g.f(this,this.showVideoInfo);this.EA(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.rPE,this);g.f(this,this.gk);this.gk.listen("click",this.c0H,this);g.f(this,this.jP);J=document.queryCommandSupported&&document.queryCommandSupported("copy");NIP("Chromium")>=43&&(J=!0);NIP("Firefox")<=40&&(J=!1);J&&(this.Cw=new g.R({V:"textarea",U:"ytp-html5-clipboard",X:{readonly:"", tabindex:"-1"}}),g.f(this,this.Cw),this.Cw.zH(this.element));var x;(x=this.sY)==null||x.setIcon(blW());var Q;(Q=this.ql)==null||Q.setIcon(haA());this.yr.setIcon({V:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", fill:"white","fill-rule":"evenodd"}}]});this.x8.setIcon(Olm());this.showVideoInfo.setIcon(alv());this.J(X,"onLoopChange",this.onLoopChange);this.J(X,"videodatachange",this.onVideoDataChange);hzP(this);zzo(this,this.Z.getVideoData())}; qL=function(X,J){var L=!1;if(X.Cw){var x=X.Cw.element;x.value=J;x.select();try{L=document.execCommand("copy")}catch(Q){}}L?X.uh.Vr():(X.gk.e7(J,"text"),g.hr(X.uh,X.jP),aj(X.gk.element),X.Cw&&(X.Cw=null,hzP(X)));return L}; zzo=function(X,J){var L=X.Z.G(),x=X.Z.getPresentingPlayerType()===2,Q=!x||J.isListed;Q=!L.aB&&!!J.videoId&&Q;L.playerStyle!=="play"?L="https://support.google.com/youtube/?p=report_playback":(L={contact_type:"playbackissue",html5:1,ei:J.eventId,v:J.videoId,p:"movies_playback"},J.K&&(L.fmt=J.K.itag),J.clientPlaybackNonce&&(L.cpn=J.clientPlaybackNonce),J.partnerId&&(L.partnerid=J.partnerId),L=g.Hw("//support.google.com/googleplay/",L));X.YV.LO(Q&&J.allowEmbed);X.getVideoUrl.LO(Q);X.Ug.LO(Q&&!J.isLivePlayback); X.x8.e7(L,"href");var K;(K=X.ql)==null||K.LO(!J.isLivePlayback&&!x);var q;(q=X.sY)==null||q.LO(!x)}; hzP=function(X){var J=!!X.Cw;g.JZ(X.yr,J?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener la informaci\u00f3n de depuraci\u00f3n");KV(X.yr,!J);g.JZ(X.YV,J?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener el c\u00f3digo de inserci\u00f3n");KV(X.YV,!J);g.JZ(X.getVideoUrl,J?"Copiar URL del video":"Obtener la URL del video");KV(X.getVideoUrl,!J);g.JZ(X.Ug,J?"Copiar URL del video en el momento actual":"Obtener la URL del video en el momento actual");KV(X.Ug,!J);X.YV.setIcon(J?n1W():null);X.getVideoUrl.setIcon(J? H1():null);X.Ug.setIcon(J?H1():null)}; poS=function(X){return g.lb(X.Z.G())?X.sY:X.ql}; vAP=function(X,J){g.Yi.call(this,X);this.qF=J;this.T=new g.dS(this);this.Km=new g.sn(this.T0C,1E3,this);this.aB=this.N=null;g.f(this,this.T);g.f(this,this.Km);J=this.Z.G();X.createClientVe(this.element,this,28656);g.xq(this.element,"ytp-contextmenu");this.Z.G().experiments.Mi("delhi_modern_web_player")&&g.$3(J)&&g.xq(this.element,"ytp-delhi-modern-contextmenu");r6A(this);this.hide()}; r6A=function(X){g.Sf(X.T);var J=X.Z.G();J.playerStyle==="gvn"||J.K||J.bB||(J=X.Z.t0(),X.T.J(J,"contextmenu",X.eMI),X.T.J(J,"touchstart",X.onTouchStart,null,!0),X.T.J(J,"touchmove",X.jp,null,!0),X.T.J(J,"touchend",X.jp,null,!0))}; jsW=function(X){X.Z.isFullscreen()?g.l0(X.Z,X.element,10):X.zH(Zu(X).body)}; I_=function(X,J,L){L=L===void 0?240:L;g.R.call(this,{V:"button",Ql:["ytp-button","ytp-copylink-button"],X:{title:"{{title-attr}}","data-tooltip-opaque":String(g.lb(X.G()))},C:[{V:"div",U:"ytp-copylink-icon",iB:"{{icon}}"},{V:"div",U:"ytp-copylink-title",iB:"Copiar v\u00ednculo",X:{"aria-hidden":"true"}}]});this.api=X;this.L=J;this.K=L;this.visible=!1;this.tooltip=this.L.o0();J=X.G();this.tooltip.element.setAttribute("aria-live","polite");g.q8(this.element,"ytp-show-copylink-title",g.lb(J));X.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.J(X,"videodatachange",this.Wl);this.J(X,"videoplayerreset",this.Wl);this.J(X,"appresize",this.Wl);this.Wl();this.addOnDisposeCallback(g.zi(this.tooltip,this.element))}; Too=function(X){var J=X.api.G(),L=X.api.getVideoData(),x=X.api.t0().getPlayerSize().width;J=J.N;return!!L.videoId&&x>=X.K&&L.IC&&!g.$F(L)&&!X.api.isEmbedsShortsMode()&&!J}; GkS=function(X){X.updateValue("icon",Cy());if(X.api.G().K)X.tooltip.iF(X.element,"Se copi\u00f3 el v\u00ednculo en el portapapeles");else{X.updateValue("title-attr","Se copi\u00f3 el v\u00ednculo en el portapapeles");X.tooltip.H5();X.tooltip.iF(X.element);var J=X.listen("mouseleave",function(){X.VO(J);X.Wl();X.tooltip.yQ()})}}; fhW=function(X,J){return g.p(function(L){if(L.K==1)return g.oz(L,2),g.z(L,navigator.clipboard.writeText(J),4);if(L.K!=2)return L.return(!0);g.EA(L);var x=L.return,Q=!1,K=g.MG("TEXTAREA");K.value=J;K.setAttribute("readonly","");var q=X.api.getRootNode();q.appendChild(K);if(Fh){var D=window.getSelection();D.removeAllRanges();var C=document.createRange();C.selectNodeContents(K);D.addRange(C);K.setSelectionRange(0,J.length)}else K.select();try{Q=document.execCommand("copy")}catch(M){}q.removeChild(K); return x.call(L,Q)})}; ezA=function(X){g.R.call(this,{V:"div",U:"ytp-doubletap-ui-legacy",C:[{V:"div",U:"ytp-doubletap-fast-forward-ve"},{V:"div",U:"ytp-doubletap-rewind-ve"},{V:"div",U:"ytp-doubletap-static-circle",C:[{V:"div",U:"ytp-doubletap-ripple"}]},{V:"div",U:"ytp-doubletap-overlay-a11y"},{V:"div",U:"ytp-doubletap-seek-info-container",C:[{V:"div",U:"ytp-doubletap-arrows-container",C:[{V:"span",U:"ytp-doubletap-base-arrow"},{V:"span",U:"ytp-doubletap-base-arrow"},{V:"span",U:"ytp-doubletap-base-arrow"}]},{V:"div", U:"ytp-doubletap-tooltip",C:[{V:"div",U:"ytp-seek-icon-text-container",C:[{V:"div",U:"ytp-seek-icon",iB:"{{seekIcon}}"},{V:"div",U:"ytp-chapter-seek-text-legacy",iB:"{{seekText}}"}]},{V:"div",U:"ytp-doubletap-tooltip-label",iB:"{{seekTime}}"}]}]}]});this.Z=X;this.T=new g.sn(this.show,10,this);this.K=new g.sn(this.hide,700,this);this.W=this.N=0;this.Km=this.B=!1;this.L=this.kq("ytp-doubletap-static-circle");g.f(this,this.T);g.f(this,this.K);this.hide();this.S=this.kq("ytp-doubletap-fast-forward-ve"); this.D=this.kq("ytp-doubletap-rewind-ve");this.Z.createClientVe(this.S,this,28240);this.Z.createClientVe(this.D,this,28239);this.Z.logVisibility(this.S,!0);this.Z.logVisibility(this.D,!0);this.B=X.Y("web_show_cumulative_seek_time");this.Km=X.Y("web_center_static_circles")}; F$v=function(X,J){J=g.is("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:J.toString()});X.updateValue("seekTime",J)}; lhI=function(X){Sd.call(this,X,!1,!0);this.FE=[];this.If=[];this.element.setAttribute("data-overlay-order","9");this.S=!0;this.badge.element.classList.add("ytp-featured-product");this.gI=new g.R({V:"div",U:"ytp-featured-product-open-in-new"});g.f(this,this.gI);this.countdownTimer=new g.R({V:"text",U:"ytp-featured-product-countdown",iB:"{{content}}"});this.countdownTimer.hide();g.f(this,this.countdownTimer);this.K=new g.R({V:"div",U:"ytp-featured-product-trending",C:[{V:"div",U:"ytp-featured-product-trending-icon"}, {V:"text",U:"ytp-featured-product-trending-text",iB:"{{trendingOffer}}"}]});this.K.hide();g.f(this,this.K);this.overflowButton=new g.R({V:"button",Ql:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.f(this,this.overflowButton);this.W=new g.R({V:"text",U:"ytp-featured-product-exclusive-countdown",iB:"{{content}}",X:{id:"exclusiveCountdown","aria-hidden":"true"}});this.W.hide();g.f(this,this.W);this.B=new g.R({V:"div",U:"ytp-featured-product-exclusive-container", X:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},C:[{V:"div",U:"ytp-featured-product-exclusive-badge-container",C:[{V:"div",U:"ytp-featured-product-exclusive-badge",C:[{V:"text",U:"ytp-featured-product-exclusive-badge-text",iB:"{{exclusive}}",X:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.W]});this.B.hide();g.f(this,this.B);this.banner=new g.R({V:"a",U:"ytp-featured-product-container",C:[{V:"div",U:"ytp-featured-product-thumbnail",C:[{V:"img",X:{src:"{{thumbnail}}"}},this.gI]},{V:"div", U:"ytp-featured-product-details",C:[{V:"text",U:"ytp-featured-product-title",iB:"{{title}}"},this.Z.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{V:"div",U:"ytp-featured-product-price-container",X:{"aria-label":"{{priceA11yText}}"},C:[{V:"text",U:"ytp-featured-product-price-when-promotion-text-enabled",iB:"{{price}}",X:{"aria-hidden":"true"}},{V:"text",U:"ytp-featured-product-promotion-text",iB:"{{promotionText}}",X:{"aria-hidden":"true"}}]}:{V:"div",X:{"aria-label":"{{priceA11yText}}"}, C:[{V:"text",U:"ytp-featured-product-price",iB:"{{price}}",X:{"aria-hidden":"true"}},{V:"text",U:"ytp-featured-product-sales-original-price",iB:"{{salesOriginalPrice}}",X:{"aria-hidden":"true"}},{V:"text",U:"ytp-featured-product-price-drop-reference-price",iB:"{{priceDropReferencePrice}}",X:{"aria-hidden":"true"}}]},this.Z.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{V:"div",U:"ytp-featured-product-when-promotion-text-enabled",C:[{V:"text",U:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", iB:"{{affiliateDisclaimer}}"},this.K,{V:"text",U:"ytp-featured-product-vendor-when-promotion-text-enabled",iB:"{{vendor}}"}]}:{V:"div",C:[{V:"text",U:"ytp-featured-product-affiliate-disclaimer",iB:"{{affiliateDisclaimer}}"},this.Z.Y("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.B:null,this.K,{V:"text",U:"ytp-featured-product-vendor",iB:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.f(this,this.banner);this.banner.zH(this.N.element);this.J(this.Z,g.sq("featured_product"), this.SM9);this.J(this.Z,g.N2("featured_product"),this.Iu);this.J(this.Z,"videodatachange",this.onVideoDataChange);this.J(this.overflowButton.element,"click",this.o$);this.J(X,"featuredproductdismissed",this.YG)}; RzA=function(X){var J,L;X=(J=X.L)==null?void 0:(L=J.bannerData)==null?void 0:L.itemData;var x,Q,K;return(X==null||!X.affiliateDisclaimer)&&(X==null?0:(x=X.exclusivesData)==null?0:x.exclusiveOfferLabelText)&&(X==null?0:(Q=X.exclusivesData)==null?0:Q.expirationTimestampMs)&&(X==null?0:(K=X.exclusivesData)==null?0:K.exclusiveOfferCountdownText)?!0:!1}; ssz=function(X){var J,L,x,Q,K=(J=X.L)==null?void 0:(L=J.bannerData)==null?void 0:(x=L.itemData)==null?void 0:(Q=x.exclusivesData)==null?void 0:Q.expirationTimestampMs;J=(Number(K)-Date.now())/1E3;if(J>0){if(J<604800){var q,D,C,M;L=(q=X.L)==null?void 0:(D=q.bannerData)==null?void 0:(C=D.itemData)==null?void 0:(M=C.exclusivesData)==null?void 0:M.exclusiveOfferCountdownText;if(L!==void 0)for(q=Date.now(),D=g.d(L),C=D.next();!C.done;C=D.next())if(C=C.value,C!==void 0&&C.text!==void 0&&(M=Number(C.textDisplayStartTimestampMs), !isNaN(M)&&q>=M)){C.insertCountdown?(J=C.text.replace(/\$0/,String(fh({seconds:J}))),X.W.e7(J)):X.W.e7(C.text);X.W.show();break}}var y,n,V,H;X.B.update({exclusive:(y=X.L)==null?void 0:(n=y.bannerData)==null?void 0:(V=n.itemData)==null?void 0:(H=V.exclusivesData)==null?void 0:H.exclusiveOfferLabelText});X.B.show();gx(X);var O;(O=X.sH)==null||O.start()}else BoR(X)}; BoR=function(X){var J;(J=X.sH)==null||J.stop();X.W.hide();X.B.hide();D5(X)}; Noz=function(X){var J,L,x=(J=X.L)==null?void 0:(L=J.bannerData)==null?void 0:L.itemData;return X.Z.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(x==null||!x.priceReplacementText)&&(x==null?0:x.promotionText)?x==null?void 0:x.promotionText.content:null}; U4v=function(X){var J,L,x=(J=X.L)==null?void 0:(L=J.bannerData)==null?void 0:L.itemData,Q,K;if(!(x!=null&&x.priceReplacementText||X.Z.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(x==null?0:(Q=x.dealsData)==null?0:(K=Q.sales)==null?0:K.originalPrice)){var q,D;return x==null?void 0:(q=x.dealsData)==null?void 0:(D=q.sales)==null?void 0:D.originalPrice}return null}; m4W=function(X){var J,L,x=(J=X.L)==null?void 0:(L=J.bannerData)==null?void 0:L.itemData,Q,K,q,D;if(!((x==null?0:x.priceReplacementText)||X.Z.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(x==null?0:(Q=x.dealsData)==null?0:(K=Q.sales)==null?0:K.originalPrice))&&(x==null?0:(q=x.dealsData)==null?0:(D=q.priceDrop)==null?0:D.referencePrice)){var C,M;return x==null?void 0:(C=x.dealsData)==null?void 0:(M=C.priceDrop)==null?void 0:M.referencePrice}return null}; kkA=function(X){var J,L,x=(J=X.L)==null?void 0:(L=J.bannerData)==null?void 0:L.itemData;if(x==null?0:x.priceReplacementText)return x==null?void 0:x.priceReplacementText;if((x==null?0:x.promotionText)&&X.Z.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var Q;return(x==null?void 0:x.price)+" "+(x==null?void 0:(Q=x.promotionText)==null?void 0:Q.content)}var K,q;if(x==null?0:(K=x.dealsData)==null?0:(q=K.sales)==null?0:q.originalPrice){var D,C;return x==null?void 0:(D=x.dealsData)== null?void 0:(C=D.sales)==null?void 0:C.salesPriceAccessibilityLabel}var M,y;if(x==null?0:(M=x.dealsData)==null?0:(y=M.priceDrop)==null?0:y.referencePrice){var n,V;return(x==null?void 0:x.price)+" "+(x==null?void 0:(n=x.dealsData)==null?void 0:(V=n.priceDrop)==null?void 0:V.referencePrice)}return x==null?void 0:x.price}; ZmY=function(X){if(X.Z.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var J,L,x;return X.K.RB?null:(J=X.L)==null?void 0:(L=J.bannerData)==null?void 0:(x=L.itemData)==null?void 0:x.vendorName}var Q,K,q,D,C,M;return X.K.RB||X.B.RB||((Q=X.L)==null?0:(K=Q.bannerData)==null?0:(q=K.itemData)==null?0:q.affiliateDisclaimer)?null:(D=X.L)==null?void 0:(C=D.bannerData)==null?void 0:(M=C.itemData)==null?void 0:M.vendorName}; XFR=function(X,J){$9(X);if(J){var L=g.Vh.getState().entities;L=AL(L,"featuredProductsEntity",J);if(L!=null&&L.productsData){J=[];L=g.d(L.productsData);for(var x=L.next();!x.done;x=L.next()){x=x.value;var Q=void 0;if((Q=x)!=null&&Q.identifier&&x.featuredSegments){X.FE.push(x);var K=void 0;Q=g.d((K=x)==null?void 0:K.featuredSegments);for(K=Q.next();!K.done;K=Q.next()){var q=K.value;K=A6P(q.startTimeSec);K!==void 0&&(q=A6P(q.endTimeSec),J.push(new g.Rw(K*1E3,q===void 0?0x7ffffffffffff:q*1E3,{id:x.identifier, namespace:"featured_product"})))}}}X.Z.tj(J)}}}; D5=function(X){if(X.trendingOfferEntityKey){var J=g.Vh.getState().entities;if(J=AL(J,"trendingOfferEntity",X.trendingOfferEntityKey)){var L,x,Q;J.encodedSkuId!==((L=X.L)==null?void 0:(x=L.bannerData)==null?void 0:(Q=x.itemData)==null?void 0:Q.encodedOfferSkuId)?gx(X):(X.K.update({trendingOffer:J.shortLabel+" \u2022 "+J.countLabel}),X.K.show(),X.banner.update({vendor:ZmY(X)}))}else gx(X)}else gx(X)}; gx=function(X){X.K.hide();X.banner.update({vendor:ZmY(X)})}; $9=function(X){X.FE=[];X.Iu();X.Z.Q0("featured_product")}; JsP=function(X){var J,L,x,Q,K=(J=X.L)==null?void 0:(L=J.bannerData)==null?void 0:(x=L.itemData)==null?void 0:(Q=x.hiddenProductOptions)==null?void 0:Q.dropTimestampMs;J=(Number(K)-Date.now())/1E3;X.countdownTimer.e7(fh({seconds:J}));if(J>0){var q;(q=X.z6)==null||q.start()}}; L1m=function(X){var J;(J=X.z6)==null||J.stop();X.countdownTimer.hide()}; A6P=function(X){if(X!==void 0&&X.trim()!==""&&(X=Math.trunc(Number(X.trim())),!(isNaN(X)||X<0)))return X}; qoe=function(X,J,L){g.R.call(this,{V:"div",Ql:["ytp-info-panel-action-item"],C:[{V:"div",U:"ytp-info-panel-action-item-disclaimer",iB:"{{disclaimer}}"},{V:"a",Ql:["ytp-info-panel-action-item-button","ytp-button"],X:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},C:[{V:"div",U:"ytp-info-panel-action-item-icon",iB:"{{icon}}"},{V:"div",U:"ytp-info-panel-action-item-label",iB:"{{label}}"}]}]});this.Z=X;this.L=L;this.disclaimer=this.kq("ytp-info-panel-action-item-disclaimer");this.button= this.kq("ytp-info-panel-action-item-button");this.bl=!1;this.Z.createServerVe(this.element,this,!0);this.listen("click",this.onClick);X="";L=g.F(J==null?void 0:J.onTap,Ew);var x=g.F(L,g.z2);this.bl=!1;x?(X=x.url||"",X.startsWith("//")&&(X="https:"+X),this.bl=!0,g.D3(this.button,g.IQ(X))):(x=g.F(L,xbP))&&!this.L?((X=x.phoneNumbers)&&X.length>0?(X="sms:"+X[0],x.messageText&&(X+="?&body="+encodeURI(x.messageText))):X="",this.bl=!0,g.D3(this.button,g.IQ(X,[iZv]))):(L=g.F(L,QrY))&&!this.L&&(X=L.phoneNumber? "tel:"+L.phoneNumber:"",this.bl=!0,g.D3(this.button,g.IQ(X,[K18])));var Q;if(L=(Q=J.disclaimerText)==null?void 0:Q.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var K;this.update({label:(K=J.bodyText)==null?void 0:K.content,icon:wh(),disclaimer:L})}else{this.disclaimer.style.display="none";var q;this.update({label:(q=J.bodyText)==null?void 0:q.content,icon:wh()})}this.Z.setTrackingParams(this.element,J.trackingParams||null);this.bl&&(this.K={externalLinkData:{url:X}})}; IvY=function(X,J){var L=xE();g.kF.call(this,X,{V:"div",U:"ytp-info-panel-detail-skrim",C:[{V:"div",U:"ytp-info-panel-detail",X:{role:"dialog",id:L},C:[{V:"div",U:"ytp-info-panel-detail-header",C:[{V:"div",U:"ytp-info-panel-detail-title",iB:"{{title}}"},{V:"button",Ql:["ytp-info-panel-detail-close","ytp-button"],X:{"aria-label":"Cerrar"},C:[g.ny()]}]},{V:"div",U:"ytp-info-panel-detail-body",iB:"{{body}}"},{V:"div",U:"ytp-info-panel-detail-items"}]}]},250);this.L=J;this.items=this.kq("ytp-info-panel-detail-items"); this.N=new g.dS(this);this.itemData=[];this.T=L;this.J(this.kq("ytp-info-panel-detail-close"),"click",this.Vr);this.J(this.kq("ytp-info-panel-detail-skrim"),"click",this.Vr);this.J(this.kq("ytp-info-panel-detail"),"click",function(x){x.stopPropagation()}); g.f(this,this.N);this.Z.createServerVe(this.element,this,!0);this.J(X,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",X.getVideoData());this.hide()}; goY=function(X,J){X=g.d(X.itemData);for(var L=X.next();!L.done;L=X.next())L=L.value,L.Z.logVisibility(L.element,J)}; CzW=function(X,J){g.R.call(this,{V:"div",U:"ytp-info-panel-preview",X:{"aria-live":"assertive","aria-atomic":"true","aria-owns":J.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.lb(X.G()))},C:[{V:"div",U:"ytp-info-panel-preview-text",iB:"{{text}}"},{V:"div",U:"ytp-info-panel-preview-chevron",iB:"{{chevron}}"}]});var L=this;this.Z=X;this.Sk=this.L=this.videoId=null;this.N=this.showControls=this.K=!1;this.J(this.element,"click",function(){X.logClick(L.element);X.jY();Az(J)}); this.fade=new g.kE(this,250,!1,100);g.f(this,this.fade);this.Z.createServerVe(this.element,this,!0);this.J(X,"videodatachange",this.onVideoDataChange);this.J(X,"presentingplayerstatechange",this.sC);this.J(this.Z,"paidcontentoverlayvisibilitychange",this.lq);this.J(this.Z,"infopaneldetailvisibilitychange",this.lq);var x=X.getVideoData()||{};DbP(x)&&$bW(this,x);this.J(X,"onShowControls",this.bj);this.J(X,"onHideControls",this.nx)}; $bW=function(X,J){if(!J.LW||!X.Z.ZK()){var L=J.NE||1E4,x=DbP(J);X.L?J.videoId&&J.videoId!==X.videoId&&(g.mz(X.L),X.videoId=J.videoId,x?(M1m(X,L,J),X.nO()):(X.Vr(),X.L.dispose(),X.L=null)):x&&(J.videoId&&(X.videoId=J.videoId),M1m(X,L,J),X.nO())}}; DbP=function(X){var J,L,x,Q;return!!((J=X.BO)==null?0:(L=J.title)==null?0:L.content)||!!((x=X.BO)==null?0:(Q=x.bodyText)==null?0:Q.content)}; M1m=function(X,J,L){X.L&&X.L.dispose();X.L=new g.sn(X.cO6,J,X);g.f(X,X.L);var x;J=((x=L.BO)==null?void 0:x.trackingParams)||null;X.Z.setTrackingParams(X.element,J);var Q;var K,q;if(L==null?0:(K=L.BO)==null?0:(q=K.title)==null?0:q.content){var D;x=(Q=L.BO)==null?void 0:(D=Q.title)==null?void 0:D.content;var C,M;if((C=L.BO)==null?0:(M=C.bodyText)==null?0:M.content)x+=" \u2022 ";Q=x}else Q="";var y,n;L=((y=L.BO)==null?void 0:(n=y.bodyText)==null?void 0:n.content)||"";X.update({text:Q+L,chevron:g.yp()})}; ysv=function(X,J){X.L&&(g.N(J,8)?(X.K=!0,X.nO(),X.L.start()):(g.N(J,2)||g.N(J,64))&&X.videoId&&(X.videoId=null))}; CV=function(X){var J=null;try{J=X.toLocaleString("es-419",{style:"percent"})}catch(L){J=X.toLocaleString(void 0,{style:"percent"})}return J}; ML=function(X,J){var L=0;X=g.d(X);for(var x=X.next();!(x.done||x.value.startTime>J);x=X.next())L++;return L===0?L:L-1}; noI=function(X,J){for(var L=0,x=g.d(X),Q=x.next();!Q.done;Q=x.next()){Q=Q.value;if(J=Q.timeRangeStartMillis&&J0?J[0]:null;var L=g.qG("ytp-chrome-bottom"),x=g.qG("ytp-ad-module");X.T=!(L==null||!L.contains(J));X.S=!(x==null||!x.contains(J));X.D=!(J==null||!J.hasAttribute("data-tooltip-target-fixed"));return J}; zxZ=function(X,J,L){if(!X.B){if(J){X.tooltipRenderer=J;J=X.tooltipRenderer.text;var x=!1,Q;(J==null?0:(Q=J.runs)==null?0:Q.length)&&J.runs[0].text&&(X.update({title:J.runs[0].text.toString()}),x=!0);g.LQ(X.title,x);J=X.tooltipRenderer.detailsText;Q=!1;var K;if((J==null?0:(K=J.runs)==null?0:K.length)&&J.runs[0].text){x=J.runs[0].text.toString();K=x.indexOf("$TARGET_ICON");if(K>-1)if(X.tooltipRenderer.targetId){J=[];x=x.split("$TARGET_ICON");var q=new g.iA({V:"span",U:"ytp-promotooltip-details-icon", C:[Yoz[X.tooltipRenderer.targetId]]});g.f(X,q);for(var D=[],C=g.d(x),M=C.next();!M.done;M=C.next())M=new g.iA({V:"span",U:"ytp-promotooltip-details-component",iB:M.value}),g.f(X,M),D.push(M);x.length===2?(J.push(D[0].element),J.push(q.element),J.push(D[1].element)):x.length===1&&(K===0?(J.push(q.element),J.push(D[0].element)):(J.push(D[0].element),J.push(q.element)));K=J.length?J:null}else K=null;else K=x;if(K){if(typeof K!=="string")for(g.HB(X.details),Q=g.d(K),K=Q.next();!K.done;K=Q.next())X.details.appendChild(K.value); else X.update({details:K});Q=!0}}g.LQ(X.details,Q);Q=X.tooltipRenderer.acceptButton;K=!1;var y,n,V;((y=g.F(Q,g.JE))==null?0:(n=y.text)==null?0:(V=n.runs)==null?0:V.length)&&g.F(Q,g.JE).text.runs[0].text&&(X.update({acceptButtonText:g.F(Q,g.JE).text.runs[0].text.toString()}),K=!0);g.LQ(X.acceptButton,K);y=X.tooltipRenderer.dismissButton;n=!1;var H,O,u;((H=g.F(y,g.JE))==null?0:(O=H.text)==null?0:(u=O.runs)==null?0:u.length)&&g.F(y,g.JE).text.runs[0].text&&(X.update({dismissButtonText:g.F(y,g.JE).text.runs[0].text.toString()}), n=!0);g.LQ(X.dismissButton,n)}L&&(X.N=L);X.L=EoS(X);X.W=!1;X.Z.G().Y("web_player_hide_nitrate_promo_tooltip")||X.LO(!0);hxA(X);X.RB&&!X.Km&&(X.Km=!0,X.Zh.Cr(0));X.K&&X.Z.logVisibility(X.element,X.RB)}}; wx=function(X){X.LO(!1);X.K&&X.Z.logVisibility(X.element,X.RB)}; W1o=function(X){var J,L,x,Q=((J=g.F(X.acceptButton,g.JE))==null?void 0:(L=J.text)==null?void 0:(x=L.runs)==null?void 0:x.length)&&!!g.F(X.acceptButton,g.JE).text.runs[0].text,K,q,D;J=((K=g.F(X.dismissButton,g.JE))==null?void 0:(q=K.text)==null?void 0:(D=q.runs)==null?void 0:D.length)&&!!g.F(X.dismissButton,g.JE).text.runs[0].text;return Q||J}; hxA=function(X){var J;if(!(J=!X.L)){J=X.L;var L=window.getComputedStyle(J);J=L.display==="none"||L.visibility==="hidden"||J.getAttribute("aria-hidden")==="true"}if(J||X.Z.isMinimized())X.LO(!1);else if(J=g.JB(X.L),J.width&&J.height){X.Z.sG(X.element,X.L);var x=X.Z.t0().getPlayerSize().height;L=g.JB(X.kq("ytp-promotooltip-container")).height;X.T?X.element.style.top=x-L-J.height-12+"px":X.D||(x=X.Z.wg().height-L-J.height-12,X.element.style.top=x+"px");x=X.kq("ytp-promotooltip-pointer");var Q=g.Aw(X.L, X.Z.getRootNode()),K=Number(X.element.style.left.replace(/[^\d\.]/g,""));X=X.Z.isFullscreen()?18:12;x.style.left=Q.x-K+J.width/2-X+"px";x.style.top=L+"px"}else X.LO(!1)}; t1=function(X){g.R.call(this,{V:"button",Ql:["ytp-replay-button","ytp-button"],X:{title:"Volver a reproducir"},C:[g.uA()]});this.Z=X;this.J(X,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.UA(X.getPlayerStateObject());W9(this.Z,this.element,this)}; dx=function(X,J){J=J===void 0?240:J;g.R.call(this,{V:"button",Ql:["ytp-button","ytp-search-button"],X:{title:"Buscar","data-tooltip-opaque":String(g.lb(X.G()))},C:[{V:"div",U:"ytp-search-icon",iB:"{{icon}}"},{V:"div",U:"ytp-search-title",iB:"Buscar"}]});this.api=X;this.K=J;this.visible=!1;this.updateValue("icon",{V:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},C:[{V:"path",U:"ytp-svg-fill",X:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); X.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.L();this.J(X,"appresize",this.L);this.J(X,"videodatachange",this.L);W9(X,this.element,this)}; uQ=function(X){g.R.call(this,{V:"div",U:"ytp-seek-overlay",C:[{V:"div",Ql:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],C:[{V:"div",Ql:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],C:[{V:"svg",X:{viewBox:"0 0 22 32",width:"22",height:"32"},C:[{V:"path",X:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]},{V:"div",U:"ytp-seek-overlay-duration",iB:"{{durationBack}}"}]},{V:"div",Ql:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-forward"], C:[{V:"div",U:"ytp-seek-overlay-duration",iB:"{{durationForward}}"},{V:"div",Ql:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],C:[{V:"svg",X:{viewBox:"0 0 22 32",width:"22",height:"32"},C:[{V:"path",X:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]}]},{V:"div",U:"ytp-seek-overlay-message",C:[{V:"div",U:"ytp-seek-overlay-message-icon",iB:"{{icon}}"},{V:"div",U:"ytp-seek-overlay-message-text",iB:"{{text}}"}]}]});var J=this;this.Z=X;this.W=0;this.L="hidden"; this.Km=0;this.S=this.kq("ytp-seek-overlay-animation-back");this.D=this.kq("ytp-seek-overlay-animation-forward");this.aB=this.kq("ytp-seek-overlay-message");this.B=new g.sn(function(){pFo(J)},g.J_(this.Z.G().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.f(this,this.B);this.Z.createClientVe(this.D,this,28240);this.Z.createClientVe(this.S,this,28239);this.Z.logVisibility(this.D,!0);this.Z.logVisibility(this.S,!0);this.hide()}; rsA=function(X,J){X.K=X.N.animate([{offset:0,opacity:J,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:1}],{duration:200,fill:"forwards"});X.K.addEventListener("finish",function(){X.K=void 0;X.B.start();X.L="lingering"})}; voP=function(X,J,L){L=L===void 0?!1:L;var x=[];x.push({offset:0,transform:"translateX("+(X.T===-1?30:-30)+"px)",opacity:L?"0":"1"});L&&x.push({offset:.5,opacity:"1"});x.push({offset:1,transform:"translateX(0)"});L=J.animate(x,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});J.querySelector("path").animate([{offset:0,d:X.T===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'},{offset:1,d:X.T===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'}],{duration:333, easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});return L}; jre=function(X){if((0,g.uT)()-X.Km>=(g.J_(X.Z.G().experiments,"web_player_seek_overlay_additional_arrow_threshold")||200)){var J=X.N.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);J.classList.add("ytp-seek-overlay-arrow-additional");J.classList.remove("ytp-seek-overlay-arrow-persistent");X.N.appendChild(J);voP(X,J,!0).addEventListener("finish",function(){J.remove()})}}; pFo=function(X,J,L){L=L===void 0?!0:L;X.K=X.N.animate([{offset:0,opacity:J===void 0?1:J},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});L&&(X.K.addEventListener("finish",function(){X.K=void 0;T5P(X);X.hide()}),X.L="fading-out")}; GjO=function(X){var J=Number(getComputedStyle(X.N).opacity),L;(L=X.K)==null||L.cancel();X.K=void 0;return J}; T5P=function(X){X.W=0;X.L="hidden";X.T=void 0;X.N=void 0;X.Km=0;X.B.stop();X.K=void 0}; fvo=function(X,J,L){X.updateValue("text",J);if(L){a:{switch(L){case "PREMIUM_STANDALONE":J=c3Y();break a;case "PREMIUM_STANDALONE_CAIRO":J=E1P();break a}J=void 0}X.updateValue("icon",J)}J=g.d(X.aB.getAnimations());for(L=J.next();!L.done;L=J.next())L.value.cancel();X.aB.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){X.updateValue("text","");X.updateValue("icon","")})}; o_=function(X,J,L,x){x=x===void 0?240:x;g.R.call(this,{V:"button",Ql:["ytp-button","ytp-share-button"],X:{title:"Compartir","aria-haspopup":"true","aria-owns":L.element.id,"data-tooltip-opaque":String(g.lb(X.G()))},C:[{V:"div",U:"ytp-share-icon",iB:"{{icon}}"},{V:"div",U:"ytp-share-title",iB:"Compartir"}]});this.api=X;this.L=J;this.K=L;this.N=x;this.visible=!1;this.tooltip=this.L.o0();X.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.J(X,"videodatachange",this.Wl);this.J(X, "videoplayerreset",this.Wl);this.J(X,"appresize",this.Wl);this.J(X,"presentingplayerstatechange",this.Wl);this.Wl();this.addOnDisposeCallback(g.zi(this.tooltip,this.element))}; exv=function(X){var J=X.api.G(),L=X.api.getVideoData(),x=g.lb(J)&&g.Gi(X.api)&&g.N(X.api.getPlayerStateObject(),128);J=J.N||J.disableSharing&&X.api.getPresentingPlayerType()!==2||!L.showShareButton||L.IC||x||g.$F(L)||!1;x=X.api.t0().getPlayerSize().width;return!!L.videoId&&x>=X.N&&!J}; F1A=function(X,J){J.name!=="InvalidStateError"&&J.name!=="AbortError"&&(J.name==="NotAllowedError"?(X.L.jY(),Az(X.K,X.element,!1)):g.Sc(J))}; RxP=function(X,J){var L=xE(),x=X.G();L={V:"div",U:"ytp-share-panel",X:{id:xE(),role:"dialog","aria-labelledby":L},C:[{V:"div",U:"ytp-share-panel-inner-content",C:[{V:"div",U:"ytp-share-panel-title",X:{id:L},iB:"Compartir"},{V:"a",Ql:["ytp-share-panel-link","ytp-no-contextmenu"],X:{href:"{{link}}",target:x.D,title:"Compartir v\u00ednculo","aria-label":"{{shareLinkWithUrl}}"},iB:"{{linkText}}"},{V:"label",U:"ytp-share-panel-include-playlist",C:[{V:"input",U:"ytp-share-panel-include-playlist-checkbox", X:{type:"checkbox",checked:"true"}},"Incluir playlist"]},{V:"div",U:"ytp-share-panel-loading-spinner",C:[O0()]},{V:"div",U:"ytp-share-panel-service-buttons",iB:"{{buttons}}"},{V:"div",U:"ytp-share-panel-error",iB:"Error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{V:"button",Ql:["ytp-share-panel-close","ytp-button"],X:{title:"Cerrar"},C:[g.ny()]}]};g.kF.call(this,X,L,250);var Q=this;this.moreButton=null;this.api=X;this.tooltip=J.o0();this.N=[];this.B= this.kq("ytp-share-panel-inner-content");this.closeButton=this.kq("ytp-share-panel-close");this.J(this.closeButton,"click",this.Vr);this.addOnDisposeCallback(g.zi(this.tooltip,this.closeButton));this.T=this.kq("ytp-share-panel-include-playlist-checkbox");this.J(this.T,"click",this.Wl);this.L=this.kq("ytp-share-panel-link");this.addOnDisposeCallback(g.zi(this.tooltip,this.L));this.api.createClientVe(this.L,this,164503);this.J(this.L,"click",function(K){K.preventDefault();Q.api.logClick(Q.L);var q= Q.api.getVideoUrl(!0,!0,!1,!1);q=lvA(Q,q);g.Vv(q,Q.api,K)&&Q.api.GH("SHARE_CLICKED")}); this.listen("click",this.eh);this.J(X,"videoplayerreset",this.hide);this.J(X,"fullscreentoggled",this.onFullscreenToggled);this.J(X,"onLoopRangeChange",this.C_);this.hide()}; N5z=function(X,J){B5Z(X);for(var L=J.links||J.shareTargets,x=0,Q={},K=0;K0&&!Jo&&!T?(W.length===2&&(W=["noreferrer"]),g.nW(H,u,V,W[0]),H=A$S()):(S=h.join(","),v_()&&H.navigator&&H.navigator.standalone&&V&&V!="_self"?(S=g.MG("A"),g.D3(S,u),S.target=V,Y&&(S.rel="noreferrer"),((O=O.attributionsrc)||O==="")&&S.setAttribute("attributionsrc",O),O=document.createEvent("MouseEvent"), O.initMouseEvent("click",!0,!0,H,1),S.dispatchEvent(O),H=A$S()):Y?(H=g.nW(H,"",V,S),O=g.i$(u),H&&(H.opener=null,O===""&&(O="javascript:''"),O='',O=MK(O),(u=H.document)&&u.write&&(u.write(yR(O)),u.close()))):((H=g.nW(H,u,V,S))&&O.noopener&&(H.opener=null),H&&O.noreferrer&&(H.opener=null)));H&&(H.opener||(H.opener=window),H.focus());n.preventDefault()}}}(Q)); Q.Hq.addOnDisposeCallback(g.zi(X.tooltip,Q.Hq.element));D==="Facebook"?X.api.createClientVe(Q.Hq.element,Q.Hq,164504):D==="Twitter"&&X.api.createClientVe(Q.Hq.element,Q.Hq,164505);X.J(Q.Hq.element,"click",function(y){return function(){X.api.logClick(y.Hq.element)}}(Q)); X.api.logVisibility(Q.Hq.element,!0);X.N.push(Q.Hq);x++}}var C=J.more||J.moreLink,M=new g.R({V:"a",Ql:["ytp-share-panel-service-button","ytp-button"],C:[{V:"span",U:"ytp-share-panel-service-button-more",C:[{V:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},C:[{V:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{V:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],X:{href:C,target:"_blank",title:"M\u00e1s"}});M.listen("click",function(y){var n=C;X.api.logClick(X.moreButton.element);n=lvA(X,n);g.Vv(n,X.api,y)&&X.api.GH("SHARE_CLICKED")}); M.addOnDisposeCallback(g.zi(X.tooltip,M.element));X.api.createClientVe(M.element,M,164506);X.J(M.element,"click",function(){X.api.logClick(M.element)}); X.api.logVisibility(M.element,!0);X.N.push(M);X.moreButton=M;X.updateValue("buttons",X.N)}; lvA=function(X,J){var L={};g.lb(X.api.G())&&(g.wB(X.api,"addEmbedsConversionTrackingParams",[L]),J=g.Hw(J,L));return J}; B5Z=function(X){for(var J=g.d(X.N),L=J.next();!L.done;L=J.next())L=L.value,L.detach(),g.Lq(L);X.N=[]}; bQ=function(X){return X===void 0||X.startSec===void 0||X.endSec===void 0?!1:!0}; UbZ=function(X,J){X.startSec+=J;X.endSec+=J}; kjm=function(X){Sd.call(this,X);this.K=this.L=this.isContentForward=this.W=!1;this.element.setAttribute("data-overlay-order","8");mbm(this);this.J(this.Z,"changeProductsInVideoVisibility",this.ki6);this.J(this.Z,"videodatachange",this.onVideoDataChange)}; ZZI=function(X){X.B&&X.Bl.element.removeChild(X.B.element);X.B=void 0}; XG8=function(X,J){return J.map(function(L){var x,Q;if((L=(x=g.F(L,As8))==null?void 0:(Q=x.thumbnail)==null?void 0:Q.thumbnails)&&L.length!==0)return L[0].url}).filter(function(L){return L!==void 0}).map(function(L){L=new g.R({V:"img", U:"ytp-suggested-action-product-thumbnail",X:{alt:"",src:L}});g.f(X,L);return L})}; Jdm=function(X,J){X.isContentForward=J;g.q8(X.badge.element,"ytp-suggested-action-badge-content-forward",J)}; SY=function(X){var J=X.isContentForward&&!X.ZU();g.q8(X.badge.element,"ytp-suggested-action-badge-preview-collapsed",J&&X.L);g.q8(X.badge.element,"ytp-suggested-action-badge-preview-expanded",J&&X.K)}; Pq=function(X,J,L){return new g.Rw(X*1E3,J*1E3,{priority:9,namespace:L})}; LNz=function(X){X.Z.Q0("shopping_overlay_visible");X.Z.Q0("shopping_overlay_preview_collapsed");X.Z.Q0("shopping_overlay_preview_expanded");X.Z.Q0("shopping_overlay_expanded")}; mbm=function(X){X.J(X.Z,g.sq("shopping_overlay_visible"),function(){X.Dt(!0)}); X.J(X.Z,g.N2("shopping_overlay_visible"),function(){X.Dt(!1)}); X.J(X.Z,g.sq("shopping_overlay_expanded"),function(){X.aB=!0;bX(X)}); X.J(X.Z,g.N2("shopping_overlay_expanded"),function(){X.aB=!1;bX(X)}); X.J(X.Z,g.sq("shopping_overlay_preview_collapsed"),function(){X.L=!0;SY(X)}); X.J(X.Z,g.N2("shopping_overlay_preview_collapsed"),function(){X.L=!1;SY(X)}); X.J(X.Z,g.sq("shopping_overlay_preview_expanded"),function(){X.K=!0;SY(X)}); X.J(X.Z,g.N2("shopping_overlay_preview_expanded"),function(){X.K=!1;SY(X)})}; QRm=function(X){g.R.call(this,{V:"div",U:"ytp-shorts-title-channel",C:[{V:"a",U:"ytp-shorts-title-channel-logo",X:{href:"{{channelLink}}",target:X.G().D,"aria-label":"{{channelLogoLabel}}"}},{V:"div",U:"ytp-shorts-title-expanded-heading",C:[{V:"div",U:"ytp-shorts-title-expanded-title",C:[{V:"a",iB:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:X.G().D,tabIndex:"0"}}]}]}]});var J=this;this.api=X;this.L=this.kq("ytp-shorts-title-channel-logo");this.channelName=this.kq("ytp-shorts-title-expanded-title"); this.subscribeButton=null;X.createClientVe(this.L,this,36925);this.J(this.L,"click",function(L){J.api.logClick(J.L);g.nW(window,x5I(J));L.preventDefault()}); X.createClientVe(this.channelName,this,37220);this.J(this.channelName,"click",function(L){J.api.logClick(J.channelName);g.nW(window,x5I(J));L.preventDefault()}); iK8(this);this.J(X,"videodatachange",this.Wl);this.J(X,"videoplayerreset",this.Wl);this.Wl()}; iK8=function(X){if(!X.api.G().sH){var J=X.api.getVideoData(),L=new g.iQ("Suscribirse",null,"Suscrito/a",null,!0,!1,J.OY,J.subscribed,"channel_avatar",null,X.api,!0);X.api.createServerVe(L.element,X);var x;X.api.setTrackingParams(L.element,((x=J.subscribeButtonRenderer)==null?void 0:x.trackingParams)||null);X.J(L.element,"click",function(){X.api.logClick(L.element)}); X.subscribeButton=L;g.f(X,X.subscribeButton);X.subscribeButton.zH(X.element)}}; x5I=function(X){var J=X.api.G(),L=X.api.getVideoData();L=g.ac(J)+L.A0;if(!g.lb(J))return L;J={};g.wB(X.api,"addEmbedsConversionTrackingParams",[J]);return g.Hw(L,J)}; cq=function(X){g.kF.call(this,X,{V:"button",Ql:["ytp-skip-intro-button","ytp-popup","ytp-button"],C:[{V:"div",U:"ytp-skip-intro-button-text",iB:"Omitir introducci\u00f3n"}]},100);var J=this;this.N=!1;this.L=new g.sn(function(){J.hide()},5E3); this.jT=this.UV=NaN;g.f(this,this.L);this.W=function(){J.show()}; this.B=function(){J.hide()}; this.T=function(){var L=J.Z.getCurrentTime();L>J.UV/1E3&&L0?{V:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},C:[{V:"path",Ql:["ytp-circle-arrow","ytp-svg-fill"],X:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {V:"text",Ql:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"7.05",y:"15.05"}}]}:{V:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},C:[{V:"path",Ql:["ytp-circle-arrow","ytp-svg-fill"],X:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {V:"text",Ql:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"6.5",y:"15"}}]}]});var L=this;this.Z=X;this.L=J;this.K=new g.sn(function(){L.N?(L.N=!1,L.K.start()):L.element.classList.remove("ytp-jump-spin","backwards")},250); this.N=!1;(J=J>0)?this.Z.createClientVe(this.element,this,36843):this.Z.createClientVe(this.element,this,36844);var x=g.is(J?"Avanzar $SECONDS segundos (\u2192)":"Retroceder $SECONDS segundos (\u2190)",{SECONDS:Math.abs(this.L).toString()});this.update({title:x,"data-title-no-tooltip":x,"aria-keyshortcuts":J?"\u2192":"\u2190"});this.T=this.element.querySelector(".ytp-jump-button-text");this.T.textContent=Math.abs(this.L).toString();this.listen("click",this.onClick,this);W9(X,this.element,this)}; MKP=function(X,J){J?X.element.classList.add("ytp-jump-button-enabled"):X.element.classList.remove("ytp-jump-button-enabled");X.Z.logVisibility(X.element,J);X.Z.H5()}; rx=function(X,J){Y9.call(this,X,J,"timedMarkerCueRange","Ver momentos clave");this.J(X,g.N2("timedMarkerCueRange"),this.qd);this.J(X,"updatemarkervisibility",this.updateVideoData)}; ydm=function(X){var J,L=(J=X.Z.getVideoData())==null?void 0:J.J0;if(L)for(X=X.T.bB,L=g.d(L),J=L.next();!J.done;J=L.next())if(J=X[J.value]){var x=void 0,Q=void 0,K=void 0;if(((x=J.onTap)==null?void 0:(Q=x.innertubeCommand)==null?void 0:(K=Q.changeEngagementPanelVisibilityAction)==null?void 0:K.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return J}}; vq=function(X){var J=X.Y("web_enable_pip_on_miniplayer");g.R.call(this,{V:"button",Ql:["ytp-miniplayer-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},C:["{{icon}}"]});this.Z=X;this.visible=!1;this.listen("click",this.onClick);this.J(X,"fullscreentoggled",this.Wl);this.updateValue("title",g.pO(X,"Reproductor en miniatura","i"));this.update({"data-title-no-tooltip":"Reproductor en miniatura", icon:this.Z.Y("delhi_modern_web_player_icons")?{V:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{d:"M21.20 3.01C21.66 3.05 22.08 3.26 22.41 3.58C22.73 3.91 22.94 4.33 22.98 4.79L23 5V19C23.00 19.49 22.81 19.97 22.48 20.34C22.15 20.70 21.69 20.93 21.20 20.99L21 21H3L2.79 20.99C2.30 20.93 1.84 20.70 1.51 20.34C1.18 19.97 .99 19.49 1 19V13H3V19H21V5H11V3H21L21.20 3.01ZM1.29 3.29C1.10 3.48 1.00 3.73 1.00 4C1.00 4.26 1.10 4.51 1.29 4.70L5.58 9H3C2.73 9 2.48 9.10 2.29 9.29C2.10 9.48 2 9.73 2 10C2 10.26 2.10 10.51 2.29 10.70C2.48 10.89 2.73 11 3 11H9V5C9 4.73 8.89 4.48 8.70 4.29C8.51 4.10 8.26 4 8 4C7.73 4 7.48 4.10 7.29 4.29C7.10 4.48 7 4.73 7 5V7.58L2.70 3.29C2.51 3.10 2.26 3.00 2 3.00C1.73 3.00 1.48 3.10 1.29 3.29ZM19.10 11.00L19 11H12L11.89 11.00C11.66 11.02 11.45 11.13 11.29 11.29C11.13 11.45 11.02 11.66 11.00 11.89L11 12V17C10.99 17.24 11.09 17.48 11.25 17.67C11.42 17.85 11.65 17.96 11.89 17.99L12 18H19L19.10 17.99C19.34 17.96 19.57 17.85 19.74 17.67C19.90 17.48 20.00 17.24 20 17V12L19.99 11.89C19.97 11.66 19.87 11.45 19.70 11.29C19.54 11.13 19.33 11.02 19.10 11.00ZM13 16V13H18V16H13Z", fill:"white"}}]}:J?{V:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},C:[{V:"g",X:{transform:"translate(96, -96) scale(0.8)"},C:[{V:"path",uH:!0,X:{d:"M96-480v-72h165L71-743l50-50 191 190v-165h72v288H96Zm72 288q-29.7 0-50.85-21.15Q96-234.3 96-264v-144h72v144h336v72H168Zm624-264v-240H456v-72h336q29.7 0 50.85 21.15Q864-725.7 864-696v240h-72ZM576-192v-192h288v192H576Z"}}]}]}:Puz()});W9(X,this.element,this);X.createClientVe(this.element,this,62946);this.Wl()}; jY=function(X,J,L,x,Q,K){K=K===void 0?!1:K;var q={V:"div",Ql:["ytp-input-slider-section"],C:[{V:"input",U:"ytp-input-slider",X:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};Q&&q.C.unshift(Q);K&&q.Ql.push("ytp-vertical-slider");g.R.call(this,q);this.T=X;this.B=J;this.S=L;this.initialValue=x;this.header=Q;this.K=this.kq("ytp-input-slider");this.L=x?x:X;this.init();this.J(this.K,"input",this.N);this.J(this.K,"keydown", this.W)}; TC=function(X,J){X.L=J;X.updateValue("slidervalue",X.L);X.K.valueAsNumber=X.L;nVI(X,J)}; nVI=function(X,J){X.K.style.setProperty("--yt-slider-shape-gradient-percent",(J-X.T)/(X.B-X.T)*100+"%")}; GC=function(X){var J=X.isMuted()?0:X.getVolume();jY.call(this,0,100,1,J,void 0,!0);this.Z=X;this.Km=r0(this.Pl,10,this);this.D=!1;this.J(X,"onVolumeChange",this.onVolumeChange);this.J(this.element,"wheel",this.aB)}; VKI=function(X,J){g.R.call(this,{V:"div",X:{tabindex:"0",title:"Volumen","data-tooltip-offset-y":"-120"},Ql:["ytp-volume-popover"]});var L=this;this.isVisible=!1;this.tooltip=J.o0();this.K=new GC(X);g.f(this,this.K);this.K.zH(this.element);this.L=new g.sn(function(){fV(L,!1)},300); this.listen("mouseenter",function(){L.L.stop()}); this.listen("mouseleave",function(){L.L.start()}); this.listen("focus",function(){L.L.stop()}); this.J(this.K.K,"focus",function(){L.L.stop()}); this.listen("focusout",function(){L.L.start();L.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.zi(J.o0(),this.element));g.f(this,this.L)}; fV=function(X,J){X.element.classList.toggle("ytp-volume-popover-hovering",J);X.isVisible=J}; eY=function(X,J,L){L=L===void 0?!1:L;var x=X.G().vl?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}"}:{"aria-disabled":"true","aria-haspopup":"true"};x=X.Y("delhi_modern_web_player")?{V:"div",U:"ytp-mute-button",C:[{V:"button",X:x,Ql:["ytp-volume-icon","ytp-button"],iB:"{{icon}}"}]}:{V:"button",Ql:["ytp-mute-button","ytp-button"],X:x,C:[{V:"div",U:"ytp-volume-icon",iB:"{{icon}}"}]}; g.R.call(this,x);this.Z=X;this.vl=L;this.K=null;this.W=this.Pl=this.D=this.S=NaN;this.gI=this.Km=null;this.B=[];this.T=[];this.visible=!1;this.N=this.L=this.aB=null;X.Y("delhi_modern_web_player")&&this.update({"data-priority":4});L=this.Z.G();this.updateValue("icon",Sl());this.tooltip=J.o0();this.updateValue("dataTooltipOffsetY",0);this.N=g.qG("ytp-volume-icon",this.element);x=this.Z.Y("delhi_modern_web_player_icons")?{V:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",Ql:["ytp-svg-fill", "ytp-svg-volume-animation-speaker"],X:{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"}},{V:"path",U:"ytp-svg-volume-animation-small-ripple",X:{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"}},{V:"path",U:"ytp-svg-volume-animation-big-ripple",X:{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"}}]}:{V:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{V:"defs",C:[{V:"clipPath",X:{id:"ytp-svg-volume-animation-mask"},C:[{V:"path",X:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{V:"path",X:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{V:"path",U:"ytp-svg-volume-animation-mover",X:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{V:"clipPath",X:{id:"ytp-svg-volume-animation-slash-mask"},C:[{V:"path",U:"ytp-svg-volume-animation-mover", X:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{V:"path",uH:!0,Ql:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],X:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{V:"path",uH:!0,Ql:["ytp-svg-fill","ytp-svg-volume-animation-hider"],X:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z", fill:"#fff"}}]};this.K=new g.iA(x);g.f(this,this.K);this.Km=this.K.kq("ytp-svg-volume-animation-speaker");this.gI=this.Km.getAttribute("d");this.B=g.Qt("ytp-svg-volume-animation-mover",this.K.element);this.Z.Y("delhi_modern_web_player_icons");this.T=g.Qt("ytp-svg-volume-animation-hider",this.K.element);this.Z.Y("delhi_modern_web_player_icons");this.Bl=new XM;g.f(this,this.Bl);this.FE=new XM;g.f(this,this.FE);this.J(X,"appresize",this.cR);this.J(X,"onVolumeChange",this.onVolumeChange);X.Y("delhi_modern_web_player")? this.listen("click",this.wvE):this.listen("click",this.Zq);L.vl?(X.Y("delhi_modern_web_player")&&(this.L=new VKI(X,J),this.L.zH(this.element),g.f(this,this.L),this.J(this.N,"mouseover",this.tM),this.J(this.N,"focus",this.tM),this.J(this.N,"mouseout",this.gw),this.J(this.N,"blur",this.gw)),L=X.Y("delhi_modern_web_player")?this.N:this.element,this.addOnDisposeCallback(g.zi(J.o0(),L))):HKo(this);this.message=null;X.createClientVe(this.element,this,28662);this.cR(X.t0().getPlayerSize());this.setVolume(X.getVolume(), X.isMuted())}; OKR=function(X,J){if(X.Z.G().vl){var L=g.pO(X.Z,"Silenciar","m"),x=g.pO(X.Z,"Activar sonido","m");X.updateValue("title",J?x:L);X.update({"data-title-no-tooltip":J?"Activar sonido":"Silenciar"});X.tooltip.H5()}}; tKm=function(X,J){X.S=J;var L=X.gI;X.Z.Y("delhi_modern_web_player_icons")?X.K.kq("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(J+") translate(-22,-12)")):J&&(L+=zCA(atR,wGO,J));X.Km.setAttribute("d",L)}; d5A=function(X,J){var L;J===1?L=X.Z.Y("delhi_modern_web_player_icons")?{V:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{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"}}]}:Sl():L=X.K;X.Pl=J;if(X.Z.Y("delhi_modern_web_player_icons"))X.K.kq("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-J+") translate(-18,-12)")),X.K.kq("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(X.S-J+") translate(-22, -12)"));else{for(var x=20*J,Q=0;Q=3&&X.Z.getPresentingPlayerType()!==2}; cdv=function(X){var J=Ti(X.Z.h_());return J?X.L?J.VQ():J.XD():!1}; bKW=function(X){var J={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},L=X.playlist!=null&&X.playlist.VQ();L=g.Gi(X.Z)&&(!X.L||L);var x=X.L&&g.Rq(X.Z),Q=cdv(X),K=X.L&&X.Z.getPresentingPlayerType()===5,q=g.pO(X.Z,"Siguiente","SHIFT+n"),D=g.pO(X.Z,"Anterior","SHIFT+p");if(K)J.title="Iniciar video";else if(X.N)J.title="Volver a reproducir";else if(L){var C=null;X.playlist&&(C=g.dw(X.playlist,X.L?O1o(X.playlist):aK8(X.playlist)));if(C){if(C.videoId){var M= X.playlist.listId;J.url=X.Z.G().getVideoUrl(C.videoId,M?M.toString():void 0)}J.text=C.title;J.duration=C.lengthText?C.lengthText:C.lengthSeconds?g.aF(C.lengthSeconds):null;J.preview=C.TC("mqdefault.jpg")}X.L?(J.title=q,J["data-title-no-tooltip"]="Siguiente",J["aria-keyshortcuts"]="SHIFT+n"):(J.title=D,J["data-title-no-tooltip"]="Anterior",J["aria-keyshortcuts"]="SHIFT+p")}else if(x){if(D=(C=X.videoData)==null?void 0:g.yh(C))J.url=D.Ve(),J.text=D.title,J.duration=D.lengthText?D.lengthText:D.lengthSeconds? g.aF(D.lengthSeconds):null,J.preview=D.TC("mqdefault.jpg");J.title=q;J["data-title-no-tooltip"]="Siguiente";J["aria-keyshortcuts"]="SHIFT+n"}J.disabled=!x&&!L&&!Q&&!K;X.update(J);X.W=!!J.url;x||L||X.N||Q||K?X.K||(X.K=g.zi(X.tooltip,X.element),X.B=X.listen("click",X.onClick,X)):X.K&&(X.K(),X.K=null,X.VO(X.B),X.B=null);X.tooltip.H5();g.q8(X.element,"ytp-playlist-ui",X.L&&(L||X.Z.Y("web_hide_next_button")))}; oVe=function(X,J){return X?J?{V:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{d:"M20 20C20.26 20 20.51 19.89 20.70 19.70C20.89 19.51 21 19.26 21 19V5C21 4.73 20.89 4.48 20.70 4.29C20.51 4.10 20.26 4 20 4C19.73 4 19.48 4.10 19.29 4.29C19.10 4.48 19 4.73 19 5V19C19 19.26 19.10 19.51 19.29 19.70C19.48 19.89 19.73 20 20 20ZM5.04 19.77L18 12L5.04 4.22C4.84 4.10 4.60 4.03 4.36 4.03C4.12 4.03 3.89 4.09 3.68 4.21C3.47 4.32 3.30 4.49 3.18 4.70C3.06 4.91 2.99 5.14 3 5.38V18.61C2.99 18.85 3.06 19.08 3.18 19.29C3.30 19.50 3.47 19.67 3.68 19.79C3.89 19.90 4.12 19.96 4.36 19.96C4.60 19.96 4.84 19.89 5.04 19.77Z", fill:"white"}}]}:OD():J?{V:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{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"}}]}:YlA()}; YXm=function(X,J){g.R.call(this,{V:"div",U:"ytp-fine-scrubbing",C:[{V:"div",U:"ytp-fine-scrubbing-draggable",C:[{V:"div",U:"ytp-fine-scrubbing-thumbnails",X:{tabindex:"0",role:"slider",type:"range","aria-label":"Haz clic en el panel o despl\u00e1zate por \u00e9l para usar la b\u00fasqueda precisa.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{V:"div",X:{"aria-hidden":"true"},U:"ytp-fine-scrubbing-cursor"},{V:"div", U:"ytp-fine-scrubbing-seek-time",X:{"aria-hidden":"true"},iB:"{{seekTime}}"},{V:"div",U:"ytp-fine-scrubbing-play",C:[X.Y("delhi_modern_web_player_icons")?dh():tC()],X:{title:"Reproducir desde este momento",role:"button"}},{V:"div",U:"ytp-fine-scrubbing-dismiss",C:[g.ny()],X:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});var L=this;this.api=X;this.B=this.kq("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.kq("ytp-fine-scrubbing-dismiss");this.Pl=this.kq("ytp-fine-scrubbing-draggable"); this.playButton=this.kq("ytp-fine-scrubbing-play");this.thumbnails=[];this.K=[];this.vl=this.L=0;this.Bl=void 0;this.Km=NaN;this.jC=this.D=this.N=this.S=0;this.T=[];this.interval=this.frameCount=0;this.W=160;this.scale=1;this.Hl=0;this.isEnabled=this.gI=!1;EVm(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.zi(J,this.dismissButton));this.addOnDisposeCallback(g.zi(J,this.playButton));this.FE=new g.ed(this.Pl,!0);this.FE.subscribe("dragstart",this.eq,this);this.FE.subscribe("dragmove",this.Oj, this);this.FE.subscribe("dragend",this.cM,this);this.J(X,"SEEK_COMPLETE",this.Cx);X.Y("web_fix_fine_scrubbing_false_play")&&this.J(X,"rootnodemousedown",function(x){L.aB=x}); this.B.addEventListener("keydown",function(){}); g.f(this,this.FE);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.B,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; EVm=function(X,J){var L=g.aF(J),x=g.is("Saltar a: $PROGRESS",{PROGRESS:g.aF(J,!0)});X.update({ariamin:0,ariamax:Math.floor(X.api.getDuration()),arianow:Math.floor(J),arianowtext:x,seekTime:L})}; hZI=function(X){X.Km=NaN;X.D=0;X.S=X.N}; pGO=function(X){var J=X.api.m4();if(J){var L=90*X.scale,x=Z0(J,160*X.scale);if(J=J.levels[x]){X.W=J.width;if(!X.T.length){x=[];for(var Q=AD(J,J.MD()),K=J.columns*J.rows,q=J.frameCount,D=0;D<=Q;D++)for(var C=qX.T.length;)x= void 0,(x=X.thumbnails.pop())==null||x.dispose();for(;X.thumbnails.lengthL.length;)x=void 0,(x=X.K.pop())==null||x.dispose(); for(;X.K.length-L?-J/L*X.interval*.5:-(J+L/2)/L*X.interval}; rdI=function(X){return-((X.B.offsetWidth||(X.frameCount-1)*X.W*X.scale)-X.L/2)}; zZP=function(){g.R.call(this,{V:"div",U:"ytp-fine-scrubbing-thumbnail"})}; WN8=function(){g.R.call(this,{V:"div",U:"ytp-fine-scrubbing-chapter-title",C:[{V:"div",U:"ytp-fine-scrubbing-chapter-title-content",iB:"{{chapterTitle}}"}]})}; jRW=function(X){g.R.call(this,{V:"div",U:"ytp-heat-map-chapter",C:[{V:"svg",U:"ytp-heat-map-svg",X:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},C:[{V:"defs",C:[{V:"clipPath",X:{id:"{{id}}"},C:[{V:"path",U:"ytp-heat-map-path",X:{d:"",fill:"white"}}]},{V:"linearGradient",X:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},C:[{V:"stop",X:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{V:"stop",X:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{V:"rect",U:"ytp-heat-map-graph",X:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{V:"rect",U:"ytp-heat-map-hover",X:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{V:"rect",U:"ytp-heat-map-play",X:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{V:"path",U:"ytp-modern-heat-map",X:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",style:"display: none;",width:"100%",x:"0",y:"0"}}]}]});this.api=X;this.S=this.kq("ytp-heat-map-svg");this.B=this.kq("ytp-heat-map-path");this.T=this.kq("ytp-heat-map-graph");this.W=this.kq("ytp-heat-map-play");this.L=this.kq("ytp-heat-map-hover");this.N=this.kq("ytp-modern-heat-map");this.bl=!1;this.K=60;X=""+g.qC(this);this.update({id:X});X="url(#"+X+")";this.T.setAttribute("clip-path",X);this.W.setAttribute("clip-path",X);this.L.setAttribute("clip-path", X)}; TU8=function(X,J){J>0&&(X.K=J,X.S.style.height=X.K+"px")}; Bq=function(){g.R.call(this,{V:"div",U:"ytp-chapter-hover-container",C:[{V:"div",U:"ytp-progress-bar-padding"},{V:"div",U:"ytp-progress-list",C:[{V:"div",Ql:["ytp-play-progress","ytp-swatch-background-color"]},{V:"div",U:"ytp-progress-linear-live-buffer"},{V:"div",U:"ytp-load-progress"},{V:"div",U:"ytp-hover-progress"},{V:"div",U:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.K=this.kq("ytp-progress-list");this.B=this.kq("ytp-progress-linear-live-buffer"); this.T=this.kq("ytp-ad-progress-list");this.W=this.kq("ytp-load-progress");this.S=this.kq("ytp-play-progress");this.N=this.kq("ytp-hover-progress");this.L=this.kq("ytp-chapter-hover-container")}; s3=function(X,J){g.lF(X.L,"width",J)}; GZv=function(X,J){g.lF(X.L,"margin-right",J+"px")}; ftW=function(){this.K=this.position=this.N=this.L=this.T=this.width=NaN}; eZR=function(){g.R.call(this,{V:"div",U:"ytp-timed-marker"});this.L=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.U3=function(X,J){g.qy.call(this,{V:"div",U:"ytp-progress-bar-container",X:{"aria-disabled":"true"},C:[{V:"div",Ql:["ytp-heat-map-container"],C:[{V:"div",U:"ytp-heat-map-edu"}]},{V:"div",Ql:["ytp-progress-bar"],X:{tabindex:"0",role:"slider","aria-label":"Control deslizante de b\u00fasqueda","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},C:[{V:"div",U:"ytp-chapters-container"},{V:"div",U:"ytp-timed-markers-container"}, {V:"div",U:"ytp-clip-start-exclude"},{V:"div",U:"ytp-clip-end-exclude"},{V:"div",U:"ytp-scrubber-container",C:[{V:"div",Ql:["ytp-scrubber-button","ytp-swatch-background-color"],C:[{V:"div",U:"ytp-scrubber-pull-indicator"},{V:"img",Ql:["ytp-decorated-scrubber-button"]}]}]}]},{V:"div",Ql:["ytp-fine-scrubbing-container"],C:[{V:"div",U:"ytp-fine-scrubbing-edu"}]},{V:"div",U:"ytp-bound-time-left",iB:"{{boundTimeLeft}}"},{V:"div",U:"ytp-bound-time-right",iB:"{{boundTimeRight}}"},{V:"div",U:"ytp-clip-start", X:{title:"{{clipstarttitle}}"},iB:"{{clipstarticon}}"},{V:"div",U:"ytp-clip-end",X:{title:"{{clipendtitle}}"},iB:"{{clipendicon}}"}]});this.api=X;this.Vq=!1;this.qQ=this.jX=this.J0=this.B=this.iJ=0;this.o2=null;this.jT=!1;this.Hl={};this.t_={};this.clipEnd=Infinity;this.If=this.kq("ytp-clip-end");this.oT=new g.ed(this.If,!0);this.pO=this.kq("ytp-clip-end-exclude");this.RT=this.kq("ytp-clip-start-exclude");this.clipStart=0;this.sH=this.kq("ytp-clip-start");this.jk=new g.ed(this.sH,!0);this.Km=this.Lp= 0;this.progressBar=this.kq("ytp-progress-bar");this.z6={};this.bB={};this.O6=this.kq("ytp-chapters-container");this.ac=this.kq("ytp-timed-markers-container");this.L=[];this.W=[];this.HO={};this.Ii=null;this.gI=-1;this.Nx=this.Bl=0;this.fY=this.S=null;this.YU=this.kq("ytp-scrubber-button");this.Pl=this.kq("ytp-decorated-scrubber-button");this.gp=this.kq("ytp-scrubber-container");this.A0=new g.l$;this.YF=0;this.xj=new ftW;this.N=new c8(0,0);this.FX=null;this.D=this.LW=!1;this.UV=null;this.aB=this.kq("ytp-heat-map-container"); this.r0=this.kq("ytp-heat-map-edu");this.T=[];this.heatMarkersDecorations=[];this.Cm=this.kq("ytp-fine-scrubbing-container");this.ek=this.kq("ytp-fine-scrubbing-edu");this.K=void 0;this.vl=this.BO=this.jC=!1;this.tooltip=J.o0();this.addOnDisposeCallback(g.zi(this.tooltip,this.If));g.f(this,this.oT);this.oT.subscribe("hoverstart",this.cA,this);this.oT.subscribe("hoverend",this.t1,this);this.J(this.If,"click",this.GA);this.addOnDisposeCallback(g.zi(this.tooltip,this.sH));g.f(this,this.jk);this.jk.subscribe("hoverstart", this.cA,this);this.jk.subscribe("hoverend",this.t1,this);this.J(this.sH,"click",this.GA);FNv(this);this.J(X,"resize",this.A_);this.J(X,"presentingplayerstatechange",this.Sy);this.J(X,"videodatachange",this.vK);this.J(X,"videoplayerreset",this.nh);this.J(X,"cuerangesadded",this.cJl);this.J(X,"cuerangesremoved",this.kKB);this.J(X,"onLoopRangeChange",this.Xj);this.J(X,"innertubeCommand",this.onClickCommand);this.J(X,"onRetroModeChanged",this.UdB);this.J(X,g.sq("timedMarkerCueRange"),this.hNm);this.J(X, "updatemarkervisibility",this.CX);this.J(X,"serverstitchedvideochange",this.XDi);this.updateVideoData(X.getVideoData(),!0);this.Xj(X.getLoopRange());NL(this)&&!this.K&&(this.K=new YXm(this.api,this.tooltip),X=g.Z8(this.element).x||0,this.K.A_(X,this.B),this.K.zH(this.Cm),g.f(this,this.K),this.J(this.K.dismissButton,"click",this.Z7),this.J(this.K.playButton,"click",this.pM),this.J(this.K.element,"dblclick",this.pM));this.api.createClientVe(this.aB,this,139609,!0);this.api.createClientVe(this.r0,this, 140127,!0);this.api.createClientVe(this.ek,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; FNv=function(X){if(X.L.length===0){var J=new Bq;X.L.push(J);g.f(X,J);J.zH(X.O6,0)}for(;X.L.length>1;)X.L.pop().dispose();s3(X.L[0],"100%");X.L[0].startTime=0;X.L[0].title=""}; ltm=function(X){var J=J===void 0?NaN:J;var L=new jRW(X.api);X.T.push(L);g.f(X,L);L.zH(X.aB);J>=0&&(L.element.style.width=J+"px")}; RZY=function(X){for(;X.W.length;)X.W.pop().dispose()}; sR8=function(X){var J,L,x,Q,K;return(K=g.F((Q=g.F((J=X.getWatchNextResponse())==null?void 0:(L=J.playerOverlays)==null?void 0:(x=L.playerOverlayRenderer)==null?void 0:x.decoratedPlayerBarRenderer,eH))==null?void 0:Q.playerBar,BUI))==null?void 0:K.chapters}; NU8=function(X){for(var J=X.L,L=[],x=0;x=q&&u<=y&&K.push(V)}C>0&&(X.aB.style.height=C+"px");q=X.T[x];y=K;V=Q;O=C;u=x===0;u=u===void 0?!1:u;TU8(q,O);n=y;H=q.K;u=u===void 0?!1:u;var S=1E3/n.length,Y=[];Y.push({x:0,y:100});for(var h=0;h0&&(L=K[K.length-1])}g.mw(X);D=[];J=g.d(J.heatMarkersDecorations||[]);for(Q=J.next();!Q.done;Q=J.next())if(Q=g.F(Q.value,JhI))C=Q.label,x=L=M=void 0,D.push({visibleTimeRangeStartMillis:(M=Q.visibleTimeRangeStartMillis)!=null?M:-1,visibleTimeRangeEndMillis:(L=Q.visibleTimeRangeEndMillis)!=null?L:-1,decorationTimeMillis:(x=Q.decorationTimeMillis)!=null?x:NaN,label:C?g.Dn(C):""});X.heatMarkersDecorations=D}}; kZP=function(X,J){X.W.push(J);g.f(X,J);J.zH(X.ac,X.ac.children.length)}; ZKW=function(X,J){J=g.d(J);for(var L=J.next();!L.done;L=J.next()){L=L.value;var x=k9(X,L.timeRangeStartMillis/(X.N.L*1E3),Z5(X)),Q=X.api.Y("delhi_modern_web_player")?.667:.6;g.lF(L.element,"transform","translateX("+x+"px) scaleX("+Q+")")}}; U5W=function(X,J){var L=0,x=!1;J=g.d(J);for(var Q=J.next();!Q.done;Q=J.next()){Q=Q.value;if(g.F(Q,xIW)){Q=g.F(Q,xIW);var K={startTime:NaN,title:null,onActiveCommand:void 0},q=Q.title;K.title=q?g.Dn(q):"";q=Q.timeRangeStartMillis;q!=null&&(K.startTime=q);K.onActiveCommand=Q.onActiveCommand;Q=K;L===0&&Q.startTime!==0&&(X.L[L].startTime=0,X.L[L].title="",X.L[L].onActiveCommand=Q.onActiveCommand,L++,x=!0);X.L.length<=L&&(K=new Bq,X.L.push(K),g.f(X,K),K.zH(X.O6,X.O6.children.length));X.L[L].startTime= Q.startTime;X.L[L].title=Q.title?Q.title:"";X.L[L].onActiveCommand=Q.onActiveCommand;X.L[L].index=x?L-1:L}L++}for(;L=0;x--)if(X.L[x].width>0){GZv(X.L[x],0);var Q=Math.floor(X.L[x].width);X.L[x].width=Q;s3(X.L[x],Q+"px");break}X.L[L].width=0;s3(X.L[L],"0")}else L===X.L.length-1?(x=Math.floor(X.L[L].width+J),X.L[L].width=x,s3(X.L[L],x+"px")):(J=X.L[L].width+J,x=Math.round(J),J-=x,X.L[L].width=x,s3(X.L[L],x+"px"));L=0;if(X.T.length===X.L.length)for(J=0;J< X.T.length;J++)x=X.L[J].width,X.T[J].element.style.width=x+"px",X.T[J].element.style.left=L+"px",L+=x+XT(X);X.api.Y("delhi_modern_web_player")&&(X.L.length===1?X.L[0].K.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(X.L[0].K.classList.remove("ytp-progress-bar-end"),X.L[0].K.classList.add("ytp-progress-bar-start"),X.L[X.L.length-1].K.classList.add("ytp-progress-bar-end")))}; icI=function(X,J){var L=0,x=!1,Q=X.L.length,K=X.N.L*1E3;K===0&&(K=X.api.getProgressState().seekableEnd*1E3);if(K>0&&X.B>0){for(var q=X.B-XT(X)*X.Bl,D=X.Nx===0?3:q*X.Nx,C=g.d(X.L),M=C.next();!M.done;M=C.next())M.value.width=0;for(;L1);M=(K===0?0:C/K*q)+X.L[L].width;if(M>D)X.L[L].width=M;else{X.L[L].width=0;var y=X,n=L,V=y.L[n-1];V!==void 0&&V.width>0? V.width+=M:nX.Nx&&(X.Nx=C/K),x=!0)}L++}}return x}; A1=function(X){if(X.B){var J=X.api.getProgressState(),L=X.api.getVideoData();if(!(L&&L.enableServerStitchedDai&&L.p6)||isFinite(J.current)){var x;if(((x=X.api.getVideoData())==null?0:gB(x))&&J.airingStart&&J.airingEnd)var Q=JX(X,J.airingStart,J.airingEnd);else if(X.api.getPresentingPlayerType()===2){var K,q,D;Q=(L=(Q=X.api.getVideoData())==null?void 0:(K=Q.getPlayerResponse())==null?void 0:(q=K.playerConfig)==null?void 0:(D=q.webPlayerConfig)==null?void 0:D.skippableAdProgressBarDuration)?JX(X,J.seekableStart, L/1E3):JX(X,J.seekableStart,J.seekableEnd)}else Q=JX(X,J.seekableStart,J.seekableEnd);K=EL(Q,J.loaded,0);J=EL(Q,J.current,0);q=X.N.K!==Q.K||X.N.L!==Q.L;X.N=Q;L$(X,J,K);q&&Q5I(X);Ko8(X)}}}; JX=function(X,J,L){return qOS(X)?new c8(Math.max(J,X.FX.startTimeMs/1E3),Math.min(L,X.FX.endTimeMs/1E3)):new c8(J,L)}; glY=function(X,J){var L,x,Q;J=g.F((L=J.getWatchNextResponse())==null?void 0:(x=L.playerOverlays)==null?void 0:(Q=x.playerOverlayRenderer)==null?void 0:Q.decoratedPlayerBarRenderer,eH);if(J==null?0:J.progressColor)for(L=0;L1){L=xJ(X,J.N,!0);for(var x=0,Q=0;Q0&&(x+=X.L[Q].width,x+=XT(X));L=(X.L[L].startTime+(J.N-x)/X.L[L].width*((L===X.L.length-1?X.N.L*1E3:X.L[L+1].startTime)-X.L[L].startTime))/1E3||0}return L}; Qr=function(X,J,L,x,Q){J=J<0?0:Math.floor(Math.min(J,X.api.getDuration())*1E3);L=L<0?0:Math.floor(Math.min(L,X.api.getDuration())*1E3);X=X.progressBar.visualElement;x={seekData:{startMediaTimeMs:J,endMediaTimeMs:L,seekSource:x}};(J=g.Ow())&&g.ND(RV)(void 0,J,X,Q,x,void 0)}; $Im=function(X,J,L){if(L>=X.L.length)return!1;var x=X.B-XT(X)*X.Bl;return Math.abs(J-X.L[L].startTime/1E3)/X.N.L*x<4}; Q5I=function(X){X.YU.style.removeProperty("height");for(var J=g.d(Object.keys(X.Hl)),L=J.next();!L.done;L=J.next())C_O(X,L.value);K$(X);L$(X,X.Km,X.Lp)}; Z5=function(X){var J=X.A0.x;J=g.fW(J,0,X.B);X.xj.update(J,X.B);return X.xj}; In=function(X){return(X.D?135:90)-qQ(X)}; qQ=function(X){var J=48,L=X.api.G();X.api.Y("delhi_modern_web_player")?J=X.D&&X.api.getPlayerSize().width>528?96:72:X.D?J=54:g.lb(L)&&!L.K&&(J=40);return J}; L$=function(X,J,L){X.Km=J;X.Lp=L;var x=Z5(X),Q=X.N.L,K=DAO(X.N,X.Km),q=g.is("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.aF(K,!0),DURATION:g.aF(Q,!0)}),D=ML(X.L,K*1E3);D=X.L[D].title;X.update({ariamin:Math.floor(X.N.K),ariamax:Math.floor(Q),arianow:Math.floor(K),arianowtext:D?D+" "+q:q});Q=X.clipStart;K=X.clipEnd;X.FX&&X.api.getPresentingPlayerType()!==2&&(Q=X.FX.startTimeMs/1E3,K=X.FX.endTimeMs/1E3);Q=EL(X.N,Q,0);D=EL(X.N,K,1);q=X.api.getVideoData();K=g.fW(J,Q,D);L=(q==null?0:g.KO(q))?1:g.fW(L, Q,D);J=k9(X,J,x);g.lF(X.gp,"transform","translateX("+J+"px)");X.api.Y("delhi_modern_web_player")&&X.api.Y("delhi_modern_web_player_cutout")&&MVY(X,J);gY(X,x,Q,K,"PLAY_PROGRESS");(q==null?0:gB(q))?(J=X.api.getProgressState().seekableEnd)&&gY(X,x,K,EL(X.N,J),"LIVE_BUFFER"):gY(X,x,Q,L,"LOAD_PROGRESS");if(X.api.Y("web_player_heat_map_played_bar")){var C;(C=X.T[0])!=null&&C.W.setAttribute("width",(K*100).toFixed(2)+"%")}}; MVY=function(X,J){X.api.getPresentingPlayerType()!==1?X.O6.style.removeProperty("clip-path"):(J||(J=k9(X,X.Km,Z5(X))),X.O6.style.clipPath='path("'+(X.jT?yho(X,8,J,X.D?50:36,0,6):yho(X,4,J,X.D?34:24,2,3))+'")')}; yho=function(X,J,L,x,Q,K){var q=L-x/2;L+=x/2;J+=Q;return"M 0 "+Q+" L 0 "+(J+" L ")+(q+" "+J+" C ")+(q+K+" "+J+" "+(q+K)+" "+Q+" "+q+" "+Q+" L 0 ")+(Q+" M ")+(L+" "+Q+" L ")+(X.B+" "+Q+" L ")+(X.B+" "+J+" L ")+(L+" "+J+" C ")+(L-K+" "+J+" "+(L-K)+" "+Q+" "+L+" "+Q)}; gY=function(X,J,L,x,Q){var K=X.L.length,q=J.L-X.Bl*XT(X),D=L*q;L=xJ(X,D);var C=x*q;q=xJ(X,C);Q==="HOVER_PROGRESS"&&(q=xJ(X,J.L*x,!0),C=J.L*x-nlO(X,J.L*x)*XT(X));x=Math.max(D-VVY(X,L),0);for(D=L;D=X.L.length)return X.B;for(var L=0,x=0;x0||X.pO.clientWidth>0?(K=J.clientWidth/L,X=-1*X.RT.clientWidth/L):(K/=L,X=-1*X.L[Q].element.offsetLeft/L),g.lF(J,"background-size",K+"px"),g.lF(J,"background-position-x",X+"px"))}; Do=function(X,J,L,x,Q){Q||X.api.G().K?J.style.width=L+"px":g.lF(J,"transform","scalex("+(x?L/x:0)+")")}; xJ=function(X,J,L){var x=0;(L===void 0?0:L)&&(J-=nlO(X,J)*XT(X));L=g.d(X.L);for(var Q=L.next();!Q.done;Q=L.next()){Q=Q.value;if(J>Q.width)J-=Q.width;else break;x++}return x===X.L.length?x-1:x}; k9=function(X,J,L){var x=J*X.N.L*1E3;for(var Q=-1,K=g.d(X.L),q=K.next();!q.done;q=K.next())q=q.value,x>q.startTime&&q.width>0&&Q++;x=Q<0?0:Q;Q=L.L-XT(X)*X.Bl;return J*Q+XT(X)*x+L.T}; nlO=function(X,J){for(var L=X.L.length,x=0,Q=g.d(X.L),K=Q.next();!K.done;K=Q.next())if(K=K.value,K.width!==0)if(J>K.width)J-=K.width,J-=XT(X),x++;else break;return x===L?L-1:x}; g.aSm=function(X,J,L,x){var Q=X.B!==L,K=X.D!==x;X.iJ=J;X.B=L;X.D=x;NL(X)&&(J=X.K)!=null&&(J.scale=x?1.5:1);Q5I(X);X.L.length===1&&(X.L[0].width=L||0);Q&&g.mw(X);X.K&&K&&NL(X)&&(X.K.isEnabled&&(L=X.D?135:90,x=L-qQ(X),X.Cm.style.height=L+"px",g.lF(X.aB,"transform","translateY("+-x+"px)"),g.lF(X.progressBar,"transform","translateY("+-x+"px)")),pGO(X.K))}; K$=function(X){var J=!!X.FX&&X.api.getPresentingPlayerType()!==2,L=X.clipStart,x=X.clipEnd,Q=!0,K=!0;J&&X.FX?(L=X.FX.startTimeMs/1E3,x=X.FX.endTimeMs/1E3):(Q=L>X.N.K,K=X.N.L>0&&xX.Km);g.q8(X.YU,"ytp-scrubber-button-hover",L===x&&X.L.length>1);if(X.api.Y("web_player_heat_map_played_bar")){var K;(K=X.T[0])!=null&&K.L.setAttribute("width",(J.K*100).toFixed(2)+"%")}}}; C_O=function(X,J){var L=X.Hl[J];J=X.t_[J];var x=Z5(X),Q=EL(X.N,L.start/1E3,0),K=dBY(L,X.D)/x.width;var q=EL(X.N,L.end/1E3,1);K!==Number.POSITIVE_INFINITY&&(Q=g.fW(Q,0,q-K));q=Math.min(q,Q+K);L.color&&(J.style.background=L.color);L=Q;J.style.left=Math.max(L*x.L+x.T,0)+"px";Do(X,J,g.fW((q-L)*x.L+x.T,0,x.width),x.width,!0)}; wJv=function(X,J){var L=J.getId();X.Hl[L]===J&&(g.aW(X.t_[L]),delete X.Hl[L],delete X.t_[L])}; NL=function(X){var J=g.$3(X.api.G())&&(X.api.Y("web_shorts_pip")||X.api.Y("web_watch_pip")),L;return!((L=X.api.getVideoData())==null?0:L.isLivePlayback)&&!X.api.isMinimized()&&!X.api.isInline()&&(!X.api.OS()||!J)}; $J=function(X){X.K&&(X.K.disable(),X.J0=0,X.aB.style.removeProperty("transform"),X.progressBar.style.removeProperty("transform"),X.Cm.style.removeProperty("height"),X.element.parentElement&&X.element.parentElement.style.removeProperty("height"))}; tVm=function(X,J){var L=J/In(X)*qQ(X);g.lF(X.progressBar,"transform","translateY("+-J+"px)");g.lF(X.aB,"transform","translateY("+-J+"px)");g.lF(X.Cm,"transform","translateY("+L+"px)");X.Cm.style.height=J+L+"px";X.element.parentElement&&(X.element.parentElement.style.height=qQ(X)-L+"px")}; dIv=function(X,J){J?X.S||(X.element.removeAttribute("aria-disabled"),X.S=new g.ed(X.progressBar,!0),X.api.Y("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&X.S.subscribe("hoverstart",X.fhl,X),X.S.subscribe("hovermove",X.FZY,X),X.S.subscribe("hoverend",X.gFY,X),X.S.subscribe("dragstart",X.TQM,X),X.S.subscribe("dragmove",X.w9l,X),X.S.subscribe("dragend",X.zx9,X),X.api&&X.api.Y("delhi_modern_web_player")&&X.api.Y("delhi_modern_web_player_cutout")&&(X.fY=new g.ed(X.progressBar, !0),X.fY.subscribe("hoverstart",function(){X.jT=!0;MVY(X)},X),X.fY.subscribe("hoverend",function(){X.jT=!1; MVY(X)},X)),X.UV=X.listen("keydown",X.lj)):X.S&&(X.element.setAttribute("aria-disabled","true"),X.VO(X.UV),X.S.cancel(),X.S.dispose(),X.S=null)}; XT=function(X){return X.api.Y("delhi_modern_web_player")?4:X.D?3:2}; qOS=function(X){var J;return!((J=X.FX)==null||!J.postId)&&X.api.getPresentingPlayerType()!==2}; C$=function(X,J){g.R.call(this,{V:"button",Ql:["ytp-remote-button","ytp-button"],X:{title:"Reproducir en el televisor","aria-haspopup":"true","data-priority":"10"},iB:"{{icon}}"});this.Z=X;this.uh=J;this.L=null;this.J(X,"onMdxReceiversChange",this.Wl);this.J(X,"presentingplayerstatechange",this.Wl);this.J(X,"appresize",this.Wl);X.createClientVe(this.element,this,139118);this.Wl();this.listen("click",this.K,this);W9(X,this.element,this)}; MQ=function(X,J){g.R.call(this,{V:"button",Ql:["ytp-button","ytp-settings-button"],X:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":xE(),title:"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},C:[X.Y("delhi_modern_web_player_icons")?{V:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{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.oO()]});this.Z=X;this.uh=J;this.K=!0;this.listen("click",this.N);this.J(X,"onPlaybackQualityChange",this.updateBadge);this.J(X,"videodatachange",this.updateBadge);this.J(X,"webglsettingschanged",this.updateBadge);this.J(X,"appresize",this.L);W9(X,this.element,this);this.Z.createClientVe(this.element,this,28663);this.updateBadge();this.L(X.t0().getPlayerSize())}; uxz=function(X,J){X.K=!!J;X.L(X.Z.t0().getPlayerSize())}; yr=function(X,J){M6.call(this,"Anotaciones",g.wv.Qg);this.Z=X;this.uh=J;this.L=!1;X.Y("web_settings_menu_icons")&&(J=X.Y("delhi_modern_web_player_icons")?{V:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{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"}}]}:{V:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", fill:"white"}}]},this.setIcon(J));this.J(X,"videodatachange",this.Wl);this.J(X,"onApiChange",this.Wl);this.subscribe("select",this.onSelect,this);this.Wl()}; n$=function(X,J){g.Tz.call(this,"Pista de audio",g.wv.AUDIO,X,J);this.Z=X;this.tracks={};g.xq(this.element,"ytp-audio-menu-item");this.countLabel=new g.R({V:"div",C:[{V:"span",iB:"Pista de audio"},{V:"span",U:"ytp-menuitem-label-count",iB:"{{content}}"}]});X.Y("web_settings_menu_icons")&&(J=X.Y("delhi_modern_web_player_icons")?{V:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{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"}}]}:Slm(),this.setIcon(J));g.f(this,this.countLabel);g.JZ(this,this.countLabel);this.J(X,"videodatachange",this.Wl);this.J(X,"onPlaybackAudioChange",this.Wl);this.Wl()}; Vr=function(X,J){M6.call(this,"Reproducci\u00f3n autom\u00e1tica",g.wv.jF);this.Z=X;this.uh=J;this.L=!1;this.N=[];this.J(X,"presentingplayerstatechange",this.K);this.subscribe("select",this.onSelect,this);X.createClientVe(this.element,this,113682);this.K()}; olA=function(X,J){g.LG.call(this,g.xd({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.Z=X;this.uh=J;this.J(this.element,"click",this.onClick);this.uh.EA(this)}; bcZ=function(X,J){var L;g.$3(X.G())&&(L={V:"div",U:"ytp-panel-footer-content",C:[{V:"span",iB:"Ajusta la calidad de descarga en la "},{V:"a",U:"ytp-panel-footer-content-link",iB:"Configuraci\u00f3n",X:{href:"/account_downloads"}}]});g.Tz.call(this,"Calidad",g.wv.VE,X,J,void 0,void 0,L);this.Z=X;this.Pl={};this.D={};this.T={};this.FE=new Set;this.L=this.B=!1;this.W="unknown";this.Km="";this.aB=new g.Gp;g.f(this,this.aB);this.B=this.Z.Y("web_player_use_new_api_for_quality_pullback");this.L=this.Z.Y("web_player_enable_premium_hbr_playback_cap"); X.Y("web_settings_menu_icons")&&(J=X.Y("delhi_modern_web_player_icons")?{V:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{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"}}]}:{V:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]},this.setIcon(J));g.xq(this.K.element,"ytp-quality-menu");this.J(X,"videodatachange",this.OZ);this.J(X,"videoplayerreset",this.OZ);this.J(X,"onPlaybackQualityChange",this.Cy);this.OZ();X.createClientVe(this.element,this,137721)}; P_o=function(X,J,L){var x=X.Pl[J],Q=g.b2[J];return SOe(X,x?x.qualityLabel:Q?Q+"p":"Autom\u00e1tica",J,L)}; cho=function(X,J,L,x,Q){var K=(J=X.L?X.T[J]:X.D[J])&&J.quality,q=J&&J.qualityLabel;q=q?q:"Autom\u00e1tica";x&&(q="("+q);X=SOe(X,q,K||"",Q);x&&X.C.push(")");(x=(x=J&&J.paygatedQualityDetails)&&x.paygatedIndicatorText)&&L&&X.C.push({V:"div",U:"ytp-premium-label",iB:x});return X}; SOe=function(X,J,L,x){J={V:"span",Ql:x,C:[J]};var Q;x="ytp-swatch-color";if(X.B||X.L)x="ytp-swatch-color-white";L==="highres"?Q="8K":L==="hd2880"?Q="5K":L==="hd2160"?Q="4K":L.indexOf("hd")===0&&L!=="hd720"&&(Q="HD");Q&&(J.C.push(" "),J.C.push({V:"sup",U:x,iB:Q}));return J}; Hn=function(X){jY.call(this,X.getAvailablePlaybackRates()[0],X.getAvailablePlaybackRates()[X.getAvailablePlaybackRates().length-1],.05,X.getPlaybackRate(),{V:"div",U:"ytp-speedslider-indicator-container",C:[{V:"div",U:"ytp-speedslider-badge",X:{"aria-label":"Premium"}},{V:"p",U:"ytp-speedslider-text"}]});this.Z=X;this.Km=r0(this.aB,50,this);g.xq(this.K,"ytp-speedslider");this.D=this.kq("ytp-speedslider-text");this.FE=this.kq("ytp-speedslider-badge");Elo(this);this.J(this.K,"change",this.Pl)}; Elo=function(X){X.D.textContent=X.L.toFixed(2)+"x";X.FE.classList.toggle("ytp-speedslider-premium-badge",X.L>2&&X.Z.Y("enable_web_premium_varispeed"))}; Ob=function(X,J,L,x,Q,K,q){g.R.call(this,{V:"div",U:"ytp-slider-section",X:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},C:[{V:"div",U:"ytp-slider",C:[{V:"div",U:"ytp-slider-handle"}]}]});this.S=X;this.D=J;this.K=L;this.N=x;this.Km=Q;this.gI=K;this.range=this.N-this.K;this.Bl=this.kq("ytp-slider-section");this.T=this.kq("ytp-slider");this.aB=this.kq("ytp-slider-handle");this.W=new g.ed(this.T, !0);this.L=q?q:L;g.f(this,this.W);this.W.subscribe("dragmove",this.AN,this);this.J(this.element,"keydown",this.rl);this.J(this.element,"wheel",this.DP);this.init()}; an=function(X){Ob.call(this,.05,.05,X.getAvailablePlaybackRates()[0],X.getAvailablePlaybackRates()[X.getAvailablePlaybackRates().length-1],150,20,X.getPlaybackRate());this.Z=X;this.B=g.MG("P");this.FE=r0(this.Pl,50,this);g.xq(this.T,"ytp-speedslider");g.xq(this.B,"ytp-speedslider-text");X=this.B;var J=this.T;J.parentNode&&J.parentNode.insertBefore(X,J.nextSibling);YOv(this);this.J(this.Z,"onPlaybackRateChange",this.updateValues)}; YOv=function(X){X.B.textContent=hIv(X,X.L)+"x"}; hIv=function(X,J){X=Number(g.fW(J,X.K,X.N).toFixed(2));J=Math.floor((X+.001)*100%5+2E-15);var L=X;J!==0&&(L=X-J*.01);return Number(L.toFixed(2))}; zIS=function(X){g.qy.call(this,{V:"div",U:"ytp-speedslider-component"});X.Y("web_settings_use_input_slider")?this.L=new Hn(X):this.L=new an(X);g.f(this,this.L);this.element.appendChild(this.L.element)}; WoY=function(X){var J=new zIS(X);PS.call(this,X,J,"Personalizada");g.f(this,J)}; pJm=function(X,J){var L=new WoY(X);g.Tz.call(this,"Velocidad de reproducci\u00f3n",g.wv.Bt,X,J,wY(X)?void 0:"Personalizada",wY(X)?void 0:function(){g.hr(J,L)}); var x=this;this.T=!1;g.f(this,L);this.W=new Hn(X);g.f(this,this.W);if(X.Y("web_settings_menu_icons")){var Q=X.Y("delhi_modern_web_player_icons")?{V:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{d:"M9.80 1.22C8.59 1.46 7.44 1.91 6.38 2.54L5.93 2.82L5.85 2.88C5.66 3.04 5.53 3.26 5.49 3.51C5.45 3.75 5.51 4.00 5.65 4.21C5.78 4.41 5.99 4.56 6.23 4.62C6.47 4.69 6.72 4.66 6.94 4.54L7.03 4.49L7.40 4.26C8.27 3.74 9.21 3.38 10.20 3.18C10.46 3.12 10.69 2.97 10.84 2.75C10.98 2.53 11.04 2.26 10.98 2.00C10.93 1.74 10.77 1.51 10.55 1.36C10.33 1.22 10.06 1.16 9.80 1.22M13.02 2.00C12.99 2.13 12.99 2.26 13.02 2.39C13.04 2.52 13.09 2.64 13.16 2.75C13.24 2.86 13.33 2.95 13.44 3.03C13.55 3.10 13.67 3.15 13.80 3.18L14.20 1.22C14.07 1.19 13.94 1.19 13.81 1.22C13.68 1.24 13.56 1.29 13.45 1.36C13.34 1.44 13.24 1.53 13.17 1.64C13.09 1.75 13.04 1.87 13.02 2.00ZM14.20 1.22L14.00 2.20L13.80 3.18C15.77 3.58 17.54 4.63 18.85 6.15C20.15 7.68 20.90 9.60 20.99 11.61L21.00 12.00C21.00 14.07 20.28 16.08 18.96 17.69C17.65 19.30 15.82 20.40 13.79 20.82L13.99 21.8L14.19 22.78C16.59 22.29 18.77 21.01 20.36 19.14C21.96 17.27 22.88 14.93 22.99 12.47L23.00 12.00C23.00 9.46 22.12 7.00 20.52 5.04C18.91 3.08 16.68 1.73 14.20 1.22ZM2.88 5.85L2.82 5.93L2.54 6.38C1.91 7.44 1.46 8.59 1.22 9.80C1.19 9.93 1.19 10.06 1.21 10.19C1.24 10.32 1.29 10.44 1.36 10.55C1.51 10.77 1.74 10.93 2 10.98C2.25 11.04 2.53 10.98 2.75 10.84C2.97 10.69 3.12 10.46 3.18 10.20C3.38 9.21 3.74 8.27 4.26 7.40L4.49 7.03L4.54 6.95C4.65 6.73 4.68 6.47 4.62 6.23C4.56 5.99 4.41 5.78 4.20 5.65C4.00 5.51 3.75 5.46 3.50 5.49C3.26 5.53 3.03 5.66 2.88 5.85ZM17 12.00L9 7.2V16.8L17 12.00ZM2 13.01C1.87 13.04 1.74 13.09 1.64 13.16C1.53 13.23 1.43 13.33 1.36 13.44C1.29 13.55 1.24 13.67 1.21 13.80C1.19 13.93 1.19 14.06 1.22 14.19C1.46 15.40 1.91 16.55 2.54 17.61L2.82 18.06L2.88 18.14C3.03 18.33 3.26 18.46 3.50 18.50C3.75 18.53 4.00 18.48 4.20 18.34C4.41 18.21 4.56 18.00 4.62 17.76C4.68 17.52 4.65 17.27 4.54 17.05L4.49 16.96L4.26 16.59C3.74 15.72 3.38 14.78 3.18 13.79C3.15 13.66 3.10 13.54 3.02 13.43C2.95 13.32 2.86 13.23 2.75 13.15C2.64 13.08 2.51 13.03 2.39 13.01C2.26 12.98 2.12 12.98 2 13.01ZM5.65 19.79C5.51 19.99 5.46 20.24 5.49 20.49C5.53 20.73 5.66 20.95 5.85 21.11L5.93 21.17L6.38 21.45C7.44 22.08 8.59 22.53 9.80 22.77C10.06 22.83 10.33 22.77 10.55 22.63C10.77 22.48 10.93 22.25 10.98 21.99C11.03 21.73 10.98 21.46 10.84 21.24C10.69 21.02 10.46 20.87 10.20 20.81C9.21 20.61 8.27 20.25 7.40 19.73L7.03 19.50L6.94 19.45C6.72 19.34 6.47 19.31 6.23 19.37C5.99 19.43 5.78 19.58 5.65 19.79ZM14.19 22.78L13.79 20.82C13.66 20.84 13.54 20.89 13.43 20.97C13.32 21.04 13.23 21.13 13.15 21.24C13.08 21.35 13.03 21.48 13.01 21.60C12.98 21.73 12.98 21.87 13.01 22C13.04 22.12 13.09 22.25 13.16 22.35C13.23 22.46 13.33 22.56 13.44 22.63C13.55 22.70 13.67 22.75 13.80 22.78C13.93 22.80 14.06 22.80 14.19 22.78Z", fill:"white"}}]}:{V:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]};this.setIcon(Q)}this.Z=X;this.T=!1;this.Km=null;wY(X)?(this.L=g.is("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.Z.getPlaybackRate().toString()}),this.B=this.Z.getPlaybackRate()):this.B=this.L=null;this.D=this.Z.getAvailablePlaybackRates();this.J(X,"presentingplayerstatechange",this.Wl);var K;((K=this.Z.getVideoData())==null?0:K.OA())&&this.J(X,"serverstitchedvideochange",this.Wl);this.J(this.W.K,"change",function(){x.T=!0;x.Wl()}); this.Wl()}; rhm=function(X,J){var L=tX(J);X.L&&(X.T||J===X.B)?(X.Cn(X.L),X.e7(J.toString())):X.Cn(L)}; j5S=function(X){X.Rk(X.D.map(tX));X.L=null;X.B=null;var J=X.Z.getPlaybackRate();wY(X.Z)&&vlI(X,J);!X.D.includes(J)||X.T?X.Cn(X.L):X.Cn(tX(J))}; vlI=function(X,J){X.B=J;X.L=g.is("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:J.toString()});J=X.D.map(tX);J.unshift(X.L);X.Rk(J)}; tX=function(X){return X.toString()}; wY=function(X){return X.Y("web_settings_menu_surface_custom_playback")}; T$m=function(X){return X.Y("web_settings_menu_surface_custom_playback")&&X.Y("web_settings_use_input_slider")}; fSO=function(X,J,L,x){var Q=new g.cS(J,void 0,"Anulaci\u00f3n de video");g.Tz.call(this,x.text||"",X,J,L,"Anulaci\u00f3n de video",function(){g.hr(L,Q)}); var K=this;g.xq(this.element,"ytp-subtitles-options-menu-item");this.setting=x.option.toString();X=x.options;this.settings=g.ku(X,this.l4,this);this.B=Q;g.f(this,this.B);J=new g.LG({V:"div",U:"ytp-menuitemtitle",iB:"Permitir un estilo de subt\u00edtulos diferente si as\u00ed lo especifica el video."},0);g.f(this,J);this.B.EA(J,!0);this.T=new g.LG({V:"div",U:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},C:[{V:"div",U:"ytp-menuitem-label",iB:"S\u00ed"}]},-1);g.f(this,this.T);this.B.EA(this.T, !0);this.J(this.T.element,"click",function(){G3z(K,!0)}); this.L=new g.LG({V:"div",U:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},C:[{V:"div",U:"ytp-menuitem-label",iB:"No"}]},-2);g.f(this,this.L);this.B.EA(this.L,!0);this.J(this.L.element,"click",function(){G3z(K,!1)}); this.Rk(g.H5(X,this.l4))}; G3z=function(X,J){X.publish("settingChange",X.setting+"Override",!J);X.uh.lJ()}; dY=function(X,J){g.cS.call(this,X,void 0,"Opciones");var L=this;this.vP={};for(var x=0;x=0);if(!(J<0||J===X.T)){X.T=J;J=243*X.scale;var L=141*X.scale,x=Yeo(X.K,X.T,J);ItS(X.bg,x,J,L,!0);X.aB.start()}}; V9o=function(X){var J=X.L;X.type===3&&X.Pl.stop();X.api.removeEventListener("appresize",X.Km);X.S||J.setAttribute("title",X.N);X.N="";X.L=null;X.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});X.wrapper.style.width=""}; ON8=function(X){g.R.call(this,{V:"button",Ql:["ytp-watch-later-button","ytp-button"],X:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.lb(X.G()))},C:[{V:"div",U:"ytp-watch-later-icon",iB:"{{icon}}"},{V:"div",U:"ytp-watch-later-title",iB:"Ver m\u00e1s tarde"}]});this.Z=X;this.icon=null;this.visible=this.isRequestPending=this.L=!1;g5Y(X);X.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.J(X,"videoplayerreset",this.onReset);this.J(X, "appresize",this.cI);this.J(X,"videodatachange",this.cI);this.J(X,"presentingplayerstatechange",this.cI);this.cI();X=this.Z.G();var J=g.Y1("yt-player-watch-later-pending");X.T&&J?(A_I(),HNW(this)):this.Wl(2);g.q8(this.element,"ytp-show-watch-later-title",g.lb(X));W9(this.Z,this.element,this)}; a_P=function(X){var J=X.Z.getPlayerSize(),L=X.Z.G(),x=X.Z.getVideoData(),Q=g.lb(L)&&g.Gi(X.Z)&&g.N(X.Z.getPlayerStateObject(),128),K=L.N;return L.o2&&J.width>=240&&!x.isAd()&&x.o2&&!Q&&!g.$F(x)&&!X.Z.isEmbedsShortsMode()&&!K}; wgm=function(X,J){d4Y(g.K4(X.Z.G()),"wl_button",function(){A_I({videoId:J});window.location.reload()})}; HNW=function(X){if(!X.isRequestPending){X.isRequestPending=!0;X.Wl(3);var J=X.Z.getVideoData();J=X.L?J.removeFromWatchLaterCommand:J.addToWatchLaterCommand;var L=X.Z.jj(),x=X.L?function(){X.L=!1;X.isRequestPending=!1;X.Wl(2);X.Z.G().S&&X.Z.GH("WATCH_LATER_VIDEO_REMOVED")}:function(){X.L=!0; X.isRequestPending=!1;X.Wl(1);X.Z.G().K&&X.Z.iF(X.element);X.Z.G().S&&X.Z.GH("WATCH_LATER_VIDEO_ADDED")}; ht(L,J).then(x,function(){X.isRequestPending=!1;X.Wl(4,"Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.");X.Z.G().S&&X.Z.GH("WATCH_LATER_ERROR","Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; t9Y=function(X,J){if(J!==X.icon){switch(J){case 3:var L=O0();break;case 1:L=Cy();break;case 2:L={V:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{V:"path",uH:!0,U:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:L={V:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{V:"path", uH:!0,X:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}X.updateValue("icon",L);X.icon=J}}; dmY=function(){g.kC.apply(this,arguments);this.GI=(this.SY=g.lb(this.api.G()))&&(this.api.G().K||kb()||Uv());this.bD=48;this.sP=69;this.GF=this.BS=null;this.BP=[];this.JQ=this.QZ=this.ow=this.Qp=this.qF=null;this.Yz=[];this.contextMenu=this.pW=this.overflowButton=this.T_=this.ai=this.searchButton=this.copyLinkButton=this.shareButton=this.FD=this.yq=this.title=this.channelAvatar=this.b5=this.tooltip=null;this.V2=!1;this.zk=this.yw=this.PH=this.Th=null;this.B0l=this.po=this.rr=!1}; uFe=function(X){var J=X.api.G(),L=g.N(X.api.getPlayerStateObject(),128);return J.T&&L&&!X.api.isFullscreen()}; oKS=function(X){if(X.cD()&&!X.api.isEmbedsShortsMode()&&X.T_){var J=X.api.Y("web_player_hide_overflow_button_if_empty_menu");!X.FD||J&&!a_P(X.FD)||oov(X.T_,X.FD);!X.shareButton||J&&!exv(X.shareButton)||oov(X.T_,X.shareButton);!X.copyLinkButton||J&&!Too(X.copyLinkButton)||oov(X.T_,X.copyLinkButton)}else{J=X.api.G().getWebPlayerContextConfig();if(X.T_){for(var L=X.T_,x=g.d(L.actionButtons),Q=x.next();!Q.done;Q=x.next())Q.value.detach();L.actionButtons=[]}X.searchButton&&!g.w0(X.yq.element,X.searchButton.element)&& X.searchButton.zH(X.yq.element);!X.FD||(J==null?0:J.hideTopWatchNextButton)||g.w0(X.yq.element,X.FD.element)||X.FD.zH(X.yq.element);!X.shareButton||(J==null?0:J.hideTopShareButton)||g.w0(X.yq.element,X.shareButton.element)||X.shareButton.zH(X.yq.element);X.copyLinkButton&&!g.w0(X.yq.element,X.copyLinkButton.element)&&X.copyLinkButton.zH(X.yq.element)}}; bN8=function(X,J,L){J=L?J.lastElementChild:J.firstElementChild;for(var x=null;J;){if(s9(J,"display")!=="none"&&J.getAttribute("aria-hidden")!=="true"){var Q=void 0;J.tabIndex>=0?Q=J:Q=bN8(X,J,L);Q&&(x?L?Q.tabIndex>x.tabIndex&&(x=Q):Q.tabIndexx/1E3+1)return{msg:"in-the-past"};if(K.isLivePlayback&&!isFinite(x))return{msg:"live-infinite"};(x=J.tP())&&x.isView()&&(x=x.mediaElement);if(x&&x.IP().length>12&&g.pI(Q))return{msg:"played-ranges"};if(!Q.N)return null;if(!q)return{msg:"no-pvd-formats"};if(!Q.N.L||!q.L)return{msg:"non-dash"};x=q.videoInfos[0];var D=Q.N.videoInfos[0];X.Km&&Or(K)&&(x=J.Uw(), D=L.Uw());if(!x||!D)return{msg:"no-video-info"};if(X.B&&(rS(x)||rS(D)))return{msg:"av1"};J=X.T&&K.Ev()&&K8();if(D.containerType!==x.containerType)if(J)K.Ni("sgap",{ierr:"container"});else return{msg:"container"};if(X.j&&!J&&(D.XE!==x.XE||D.XE===""||x.XE===""))return{msg:"codec"};if(X.W&&D.video&&x.video&&Math.abs(D.video.width/D.video.height-x.video.width/x.video.height)>.01)return{msg:"ratio"};if(g.pI(K)&&g.pI(Q))return{msg:"content-protection"};q=q.L[0];Q=Q.N.L[0];L=q.audio;var C=Q.audio;if(L.sampleRate!== C.sampleRate&&!g.Oc)if(J)K.Ni("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:q.itag,cr:L.sampleRate,ni:Q.itag,nr:C.sampleRate};return(L.numChannels||2)!==(C.numChannels||2)?{msg:"channel-count"}:X.S&&K.Ev()&&x.video.fps!==D.video.fps?{msg:"fps"}:null}; EKz=function(X,J,L){var x=X.getVideoData(),Q=J.getVideoData();if(!x.G().supportsGaplessShorts())return{nq:"env"};if(L.D?x.lZ&&!x.isAd()||Q.lZ&&!Q.isAd():L.K?x.lZ&&!x.isAd()||Q.lZ:L.N?Q.lZ&&!Q.isAd()||x.lZ:x.lZ||Q.lZ)return{nq:"autoplay"};if(x.endSeconds>0)return{nq:"endcr"};if(!x.W)return{nq:"client"};if(!X.NP())return{nq:"no-empty"};X=cFW(L,X,J,Infinity);return X!=null?{nq:X.msg}:null}; T8=function(X){g.G.call(this);this.app=X;this.j=this.T=this.K=this.L=null;this.N=1;this.events=new g.dS(this);this.events.J(this.app.IB,g.N2("gaplessshortslooprange"),this.S);g.f(this,this.events)}; Y$z=function(){this.L=this.W=this.N=this.K=this.D=this.B=this.Km=this.S=this.j=this.T=!1}; h7e=function(X){var J=new Y$z;J.T=X.Y("h5_gapless_support_types_diff");J.S=X.Y("h5_gapless_error_on_fps_diff");J.Km=X.Y("html5_gapless_use_format_info_fix");J.B=X.Y("html5_gapless_disable_on_av1")&&!X.Y("html5_gapless_enable_on_av1");J.j=X.Y("html5_gapless_check_codec_diff_strictly");J.D=X.Y("html5_gapless_on_ad_autoplay");J.W=X.Y("html5_gapless_disable_diff_aspect_radio");J.K=X.Y("html5_gapless_ad_autoplay_on_ad_to_video_only");J.L=X.Y("html5_pseudogapless_shorts_seek_to_next_start");J.N=X.Y("html5_gapless_ad_autoplay_on_video_to_ad_only"); return J}; g.G8=function(X,J,L,x){x=x===void 0?!1:x;Hv.call(this);this.mediaElement=X;this.start=J;this.end=L;this.L=x}; z78=function(X,J,L,x,Q,K){K=K===void 0?0:K;g.G.call(this);var q=this;this.policy=X;this.L=J;this.K=L;this.dQ=Q;this.j=K;this.T=this.N=null;this.currentVideoDuration=this.B=-1;this.W=!1;this.nu=new Vy;this.n$=x-J.W4()*1E3;this.nu.then(void 0,function(){}); this.timeout=new g.sn(function(){q.AJ("timeout")},1E4); g.f(this,this.timeout);this.S=isFinite(x)||this.dQ.G().experiments.Mi("html5_pseudogapless_shorts")&&Or(J.getVideoData());this.status={status:0,error:null}}; pgz=function(X){var J,L,x,Q,K,q,D,C,M;return g.p(function(y){if(y.K==1){if(X.E6())return y.return(Promise.reject(Error(X.status.error||"disposed")));X.timeout.start();return g.z(y,X.nu,2)}J=X.L.tP();if(J.isEnded())return X.AJ("ended_in_finishTransition"),y.return(Promise.reject(Error(X.status.error||"")));if(!X.T||!gs(X.T))return X.AJ("next_mse_closed"),y.return(Promise.reject(Error(X.status.error||"")));if(X.K.gg()!==X.T)return X.AJ("next_mse_mismatch"),y.return(Promise.reject(Error(X.status.error|| "")));L=f$(X);x=L.Wn;Q=L.Wy;K=L.o9;X.L.Fs(!1,!0);q=WyP(J,x,K,!X.K.getVideoData().isAd());X.K.setMediaElement(q);(D=X.L.U7())&&X.K.AZ(D.ib,D.ub);X.S&&(X.K.seekTo(X.K.getCurrentTime()+.001,{nG:!0,IN:3,B9:"gapless_pseudo"}),q.play(),c6());C=J.yr();C.cpn=X.L.getVideoData().clientPlaybackNonce;C.st=""+x;C.et=""+K;X.K.Ni("gapless",C);X.L.Ni("gaplessTo",{cpn:X.K.getVideoData().clientPlaybackNonce});M=X.L.getPlayerType()===X.K.getPlayerType();X.L.EO(Q,!0,!1,M,X.K.getVideoData().clientPlaybackNonce);X.K.EO(X.K.getCurrentTime(), !0,!0,M,X.L.getVideoData().clientPlaybackNonce);X.K.No();g.dJ(function(){!X.K.getVideoData().Pl&&X.K.getPlayerState().isOrWillBePlaying()&&X.K.nz()}); eQ(X,6);X.dispose();return y.return(Promise.resolve())})}; T9A=function(X){if(X.K.getVideoData().N){var J=X.dQ.G().Y("html5_gapless_suspend_next_loader")&&X.j===1;X.K.qj(X.T,J,rFR(X));eQ(X,3);vKm(X);var L=jIP(X);J=L.Ai;L=L.Jw;J.subscribe("updateend",X.tq,X);L.subscribe("updateend",X.tq,X);X.tq(J);X.tq(L)}}; vKm=function(X){X.L.unsubscribe("internalvideodatachange",X.f1,X);X.K.unsubscribe("internalvideodatachange",X.f1,X);X.dQ.G().Y("html5_gapless_use_format_info_fix")&&(X.L.unsubscribe("internalvideoformatchange",X.f1,X),X.K.unsubscribe("internalvideoformatchange",X.f1,X));X.L.unsubscribe("mediasourceattached",X.f1,X);X.K.unsubscribe("statechange",X.rA,X)}; WyP=function(X,J,L,x){X=X.isView()?X.mediaElement:X;return new g.G8(X,J,L,x)}; eQ=function(X,J){J<=X.status.status||(X.status={status:J,error:null},J===5&&X.nu.resolve())}; rFR=function(X){return X.dQ.G().Y("html5_gapless_no_clear_buffer_timeline")&&X.j===1&&dN(X.L.getVideoData())}; f$=function(X){var J=X.L.tP();J=J.isView()?J.start:0;var L=X.L.getVideoData().isLivePlayback?Infinity:X.L.z4(!0);L=Math.min(X.n$/1E3,L)+J;var x=X.S?100:0;X=L-X.K.eT()+x;return{xO:J,Wn:X,Wy:L,o9:Infinity}}; jIP=function(X){return{Ai:X.N.L.rQ,Jw:X.N.K.rQ}}; FT=function(X){g.G.call(this);var J=this;this.app=X;this.B=this.K=this.L=null;this.S=!1;this.N=this.T=null;this.j=h7e(this.app.G());this.W=function(){g.dJ(function(){GyR(J)})}}; f_v=function(X,J,L,x,Q){x=x===void 0?0:x;Q=Q===void 0?0:Q;X.NP()||l3(X);X.T=new Vy;X.L=J;var K=L,q=Q===0;q=q===void 0?!0:q;var D=X.app.nm(),C=D.getVideoData().isLivePlayback?Infinity:D.z4(!0)*1E3;K>C&&(K=C-200,X.S=!0);q&&D.getCurrentTime()>=K/1E3?X.W():(X.K=D,q&&(q=K,K=X.K,X.app.IB.addEventListener(g.sq("vqueued"),X.W),q=isFinite(q)||q/1E3>K.getDuration()?q:0x8000000000000,X.B=new g.Rw(q,0x8000000000000,{namespace:"vqueued"}),K.addCueRange(X.B)));q=x/=1E3;K=J.getVideoData().L;x&&K&&X.K&&(D=x,C=0, J.getVideoData().isLivePlayback&&(q=Math.min(L/1E3,X.K.z4(!0)),C=Math.max(0,q-X.K.getCurrentTime()),D=Math.min(x,J.z4()+C)),q=h_v(K,D)||x,q!==x&&X.L.Ni("qvaln",{st:x,at:q,rm:C,ct:D}));J=q;x=X.L;x.getVideoData().ac=!0;x.getVideoData().W=!0;x.IG(!0);K={};X.K&&(K=X.K.fI(),q=X.K.getVideoData().clientPlaybackNonce,K={crt:(K*1E3).toFixed(),cpn:q});x.Ni("queued",K);J!==0&&x.seekTo(J+.01,{nG:!0,IN:3,B9:"videoqueuer_queued"});X.N=new z78(X.j,X.app.nm(),X.L,L,X.app,Q);L=X.N;L.status.status!==Infinity&&(eQ(L, 1),L.L.subscribe("internalvideodatachange",L.f1,L),L.K.subscribe("internalvideodatachange",L.f1,L),L.dQ.G().Y("html5_gapless_use_format_info_fix")&&(L.L.subscribe("internalvideoformatchange",L.f1,L),L.K.subscribe("internalvideoformatchange",L.f1,L)),L.L.subscribe("mediasourceattached",L.f1,L),L.K.subscribe("statechange",L.rA,L),L.L.subscribe("newelementrequired",L.yT,L),L.f1());return X.T}; GyR=function(X){var J,L,x,Q,K,q,D;g.p(function(C){switch(C.K){case 1:if(X.E6()||!X.T||!X.L)return C.return();X.S&&X.app.nm().Cj(!0,!1);J=null;if(!X.N){C.fm(2);break}g.oz(C,3);return g.z(C,pgz(X.N),5);case 5:g.PW(C,2);break;case 3:J=L=g.EA(C);case 2:if(!X.L)return C.return();e7m.al("vqsp",function(){X.app.jd(X.L)}); if(!X.L)return C.return();x=X.L.tP();X.app.G().Y("html5_gapless_seek_on_negative_time")&&x&&x.getCurrentTime()<-.01&&X.L.seekTo(0);e7m.al("vqpv",function(){X.app.playVideo()}); J&&(X.L?(Q=J?J.message:"forced",(K=X.K)==null||K.Ni("gapfulfbk",{r:Q}),X.L.Br(Q)):(q=X.K)==null||q.Ni("gapsp",{}));D=X.T;l3(X);D&&D.resolve();return C.return(Promise.resolve())}})}; l3=function(X,J){J=J===void 0?!1:J;if(X.K){if(X.B){var L=X.K;X.app.IB.removeEventListener(g.sq("vqueued"),X.W);L.removeCueRange(X.B)}X.K=null;X.B=null}X.N&&(X.N.status.status!==6&&(L=X.N,L.status.status!==Infinity&&L.j!==1&&L.AJ("Canceled")),X.N=null);X.T=null;X.L&&!J&&X.L!==X.app.Kp()&&X.L!==X.app.nm()&&X.L.dispose();X.L&&J&&X.L.q8();X.L=null;X.S=!1}; FyY=function(X){var J;return((J=X.N)==null?void 0:J.currentVideoDuration)||-1}; l_W=function(X,J,L){if(X.NP())return"qie";if(X.L==null||X.L.E6()||X.L.getVideoData()==null)return"qpd";if(J.videoId!==X.L.xU())return"vinm";if(FyY(X)<=0)return"ivd";if(L!==1)return"upt";if((L=X.N)==null)X=void 0;else if(L.getStatus().status!==5)X="niss";else if(cFW(L.policy,L.L,L.K,L.n$)!=null)X="pge";else{J=jIP(L);X=J.Ai;var x=J.Jw;J=g.J_(L.dQ.G().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var Q=L.B+J;L.dQ.G().experiments.Mi("html5_pseudogapless_shorts")&&(Q=f$(L).Wn+J);L=kr(x.ll(), Q);X=kr(X.ll(),Q);X=!(J>0)||L&&X?null:"neb"}return X!=null?X:null}; R78=function(){g.Ly.call(this);var X=this;this.fullscreen=0;this.T=this.N=this.pictureInPicture=this.L=this.K=this.inline=!1;this.j=function(){X.Dt()}; EkR(this.j);this.B=this.getVisibilityState(this.Od(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.OS(),this.kR(),this.VA(),this.BJ())}; zpo=function(X){return!(X.isMinimized()||X.isInline()||X.isBackground()||X.OS()||X.kR()||X.VA()||X.BJ())}; g.Rn=function(X){g.G.call(this);this.m9=X;this.videoData=this.playerState=null}; NQ=function(X,J){g.G.call(this);var L=this;this.data=[];this.N=X||NaN;this.K=J||null;this.L=new g.sn(function(){Bn(L);sb(L)}); g.f(this,this.L)}; $tm=function(X){Bn(X);return X.data.map(function(J){return J.value})}; Bn=function(X){var J=(0,g.uT)();X.data.forEach(function(L){L.expire0));(x=g.J_(J, "html5_cobalt_audio_write_ahead_ms"))&&H$("Media.AudioWriteDurationLocal",x);(x=L("html5_cobalt_enable_decode_to_texture"))&&H$("Media.PlayerConfiguration.DecodeToTexturePreferred",x?1:0);X.YH()&&S68();Error.stackTraceLimit=50;var Q=g.J_(J,"html5_idle_rate_limit_ms");Q&&Object.defineProperty(window,"requestIdleCallback",{value:function(K){return window.setTimeout(K,Q)}}); AfZ(X.j);a9I(L("html5_use_ump_request_slicer"));sKo(L("html5_record_now"));L("html5_disable_streaming_xhr")&&(VG=!1);L("html5_byterate_constraints")&&(So=!0);L("html5_use_non_active_broadcast_for_post_live")&&(M7=!0);L("html5_enable_encrypted_av1")&&(pv=!0);U2S(g.J_(X.experiments,"html5_sticky_duration_mos"))}; ZN8=function(X,J){return X.slice(J.length).replace(/_[a-z]/g,function(L){return L.toUpperCase().replace("_","")}).replace("Dot",".")}; AFW=function(X){var J={},L=Object.keys(X.experiments.flags);L=g.d(L);for(var x=L.next();!x.done;x=L.next())if(x=x.value,x.startsWith("cobalt_h5vcc"))if(x.startsWith("cobalt_h5vcc_string")){var Q=ZN8(x,"cobalt_h5vcc_string");x=Ha(X.experiments,x);Q&&x&&(J[Q]=H$(Q,x))}else x.startsWith("cobalt_h5vcc")&&(Q=ZN8(x,"cobalt_h5vcc"),x=g.J_(X.experiments,x),Q&&x&&(J[Q]=H$(Q,x)));return J}; XLZ=function(X,J,L,x){x=x===void 0?0:x;g.mi.call(this,L.BY());this.S7=X;this.videoData=J;this.duration=x;this.endTime=this.startTime=0}; Jcm=function(X){this.end=this.start=X}; g.AX=function(){this.L=new Map;this.N=new Map;this.K=new Map}; LDW=function(){this.K=[];this.L=new Map;this.T=new Map;this.N=new Map}; g.XE=function(X,J,L,x){g.G.call(this);var Q=this;this.api=X;this.m9=J;this.playback=L;this.app=x;this.FE=new g.AX;this.N=new Map;this.j=[];this.L=new LDW;this.Hl=new Map;this.jC=null;this.H4=NaN;this.Lp=this.z6=null;this.Nx=new g.sn(function(){xNR(Q,Q.H4,Q.z6||void 0)}); this.events=new g.dS(this);this.Cm=15E3;this.aB=new g.sn(function(){Q.Pl=!0;Q.playback.n4(Q.Cm);i_m(Q);if(Q.playback.getVideoData().OA()){var K;Q.lB({togab:(K=Q.Km)==null?void 0:K.identifier})}Q.Gq(!1)},this.Cm); this.Pl=!1;this.W=new Map;this.J0=[];this.Km=null;this.A0=new Set;this.gI=[];this.If=[];this.H9=[];this.XX=[];this.K=void 0;this.Zk=0;this.vl=!0;this.B=!1;this.Bl=[];this.SC=new Set;this.pO=new Set;this.YF=new Set;this.v_=0;this.bB=new Set;this.t_=0;this.aV=this.sH=!1;this.Fc=this.T="";this.S=null;this.logger=new g.OS("dai");this.Zh={QYM:function(){return Q.N}, U8l:function(){return Q.j}, E_C:function(){return Q.L.L}, BUI:function(){return Q.T}, L$q:function(K){Q.onCueRangeEnter(Q.N.get(K))}, PpY:function(K){Q.onCueRangeExit(Q.N.get(K))}, GwC:function(K,q){Q.N.set(K,q)}, OiB:function(K){Q.Fc=K}, kc:function(){return Q.kc()}, Zum:function(K){return Q.L.N.get(K)}, EAB:function(){return Q.S}, VZ0:function(){return Q.L.K}}; this.playback.getPlayerType();this.playback.Ft(this);this.O6=this.m9.YH();g.f(this,this.Nx);g.f(this,this.events);g.f(this,this.aB);this.events.J(this.api,g.sq("serverstitchedcuerange"),this.onCueRangeEnter);this.events.J(this.api,g.N2("serverstitchedcuerange"),this.onCueRangeExit);Zo(this.app.Qe(),this.playback,!1)}; g7v=function(X,J,L,x,Q,K,q,D,C){if(X.m9.Y("html5_ignore_ads_after_noadresponse")&&C&&X.A0.has(C))JG(X,{reason:"addafternoad",cueid:C});else{C=QdZ(X,K,K+Q);X.Pl&&X.lB({adaftto:1});L||X.lB({missadcon:1,enter:K,len:Q,aid:D});X.D&&!X.D.IX&&(X.D.IX=D);X.aV&&X.lB({adfbk:1,enter:K,len:Q,aid:D});var M=X.playback;q=q===void 0?K+Q:q;K===q&&!Q&&X.m9.Y("html5_allow_zero_duration_ads_on_timeline")&&X.lB({attl0d:1});K>q&&JG(X,{reason:"enterTime_greater_than_return",Se:K,K3:q});var y=M.c9()*1E3;KM&&JG(X,{reason:"parent_return_greater_than_content_duration",K3:q,Vdm:M});M=null;y=g.eI(X.L.K,{K3:K},function(n,V){return n.K3-V.K3}); y>=0&&(M=X.L.K[y],M.K3>K&&KDO(X,J.video_id||"",K,q,M));if(C&&M)for(y=0;y.5&&X.lB({ttdtb:1,delta:q,cpn:Q.cpn,enter:J.adCpn,exit:L.adCpn,seek:x,skip:K});X.api.Y("html5_ssdai_enable_media_end_cue_range")&&(!x&&!K&&L.isAd&&L.adCpn?X.api.Js(L.adCpn):(x||K)&&X.lB({mecr:0,seek:x,skip:K}));if(J.isAd&&L.isAd){Q=!!K;if(J.adCpn&&L.adCpn){var D=X.L.L.get(J.adCpn);var C=X.L.L.get(L.adCpn)}Q?X.lB({igtransskip:1,enter:J.adCpn,exit:L.adCpn,seek:x,skip:K}):QF(X,C,D,L.d5,J.d5,x,Q)}else if(!J.isAd&&L.isAd){X.Fc= Q.cpn;X.oW(Q.cpn,Q.Se/1E3);X.api.publish("serverstitchedvideochange");D=x2(X,"a2c");X.lB(D);X.v_=0;if(D=L.Z2)X.Zk=D.end,$NP(X,D.id,D.end);var M;L.adCpn&&(M=X.L.L.get(L.adCpn));M&&X.playback.tZ(M,Q,L.d5,J.d5,x,!!K)}else if(J.isAd&&!L.isAd){var y;J.adCpn&&(y=X.L.L.get(J.adCpn));y&&(X.Zk=0,X.Fc=y.cpn,X.oW(y.cpn,y.Se/1E3),iO(X,y),M=x2(X,"c2a",y),X.lB(M),X.v_=1,X.playback.tZ(Q,y,L.d5,J.d5,x,!!K))}}; qX=function(X,J,L){L=L===void 0?0:L;var x=g.eI(X.L.K,{Se:(J+L)*1E3},function(D,C){return D.Se-C.Se}); x=x<0?(x+2)*-1:x;if(x>=0)for(var Q=J*1E3,K=x;K<=x+1&&K=q.Se-L*1E3&&Q<=q.K3+L*1E3)return{L$:q,qS:J}}return{L$:void 0,qS:J}}; MRR=function(X,J){var L="";(J=CK8(X,J))&&(L=J.getId());return L?X.L.L.get(L):void 0}; CK8=function(X,J){if(X.Fc){var L=X.N.get(X.Fc);if(L&&L.start-200<=J&&L.end+200>=J)return L}X=g.d(X.N.values());for(L=X.next();!L.done;L=X.next())if(L=L.value,L.start<=J&&L.end>=J)return L}; xNR=function(X,J,L){var x=X.Lp||X.app.nm().getPlayerState();Iy(X,!0);X.playback.seekTo(J,L);X=X.app.nm();J=X.getPlayerState();x.isOrWillBePlaying()&&!J.isOrWillBePlaying()?X.playVideo():x.isPaused()&&!J.isPaused()&&X.pauseVideo()}; Iy=function(X,J){X.H4=NaN;X.z6=null;X.Nx.stop();X.jC&&J&&X.jC.jE();X.Lp=null;X.jC=null}; n7Z=function(X){var J=J===void 0?-1:J;var L=L===void 0?Infinity:L;for(var x=[],Q=g.d(X.L.K),K=Q.next();!K.done;K=Q.next())K=K.value,(K.SeL)&&x.push(K);X.L.K=x;x=g.d(X.N.values());for(Q=x.next();!Q.done;Q=x.next())Q=Q.value,Q.start>=J&&Q.end<=L&&(X.playback.removeCueRange(Q),X.N.delete(Q.getId()),X.lB({rmAdCR:1}));x=qX(X,J/1E3);J=x.L$;x=x.qS;if(J&&(x=x*1E3-J.Se,yce(X,J,x,J.Se+x),x=X.N.get(J.cpn))){Q=g.d(X.j);for(K=Q.next();!K.done;K=Q.next())K=K.value,K.start===x.end?K.start=J.Se+J.durationMs: K.end===x.start&&(K.end=J.Se);x.start=J.Se;x.end=J.Se+J.durationMs}if(J=qX(X,L/1E3).L$){var q;x="playback_timelinePlaybackId_"+J.JP+"_video_id_"+((q=J.videoData)==null?void 0:q.videoId)+"_durationMs_"+J.durationMs+"_enterTimeMs_"+J.Se+"_parentReturnTimeMs_"+J.K3;X.ZI("Invalid_clearEndTimeMs_"+L+"_that_falls_during_"+x+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; VRP=function(X){X.FE.clearAll();X.N.clear();X.j=[];X.L.clear();X.W.clear();X.J0=[];X.Km=null;X.A0.clear();X.gI=[];X.If=[];X.H9=[];X.XX=[];X.Bl=[];X.SC.clear();X.pO.clear();X.YF.clear();X.bB.clear();X.Pl=!1;X.K=void 0;X.Zk=0;X.vl=!0;X.B=!1;X.v_=0;X.t_=0;X.sH=!1;X.aV=!1;X.T="";B9m(X.app.Qe());Zo(X.app.Qe(),X.playback,!1);X.Hl.clear();X.aB.isActive()&&L1(X)}; yce=function(X,J,L,x){J.durationMs=L;J.K3=x;(x=X.Hl.get(J.cpn))?x.Wq(L/1E3):X.lB({nop_d:J.cpn})}; O_I=function(X,J,L,x,Q,K){if(!X.aV)if(g.H_8(X,L))X.lB({gdu:"undec",seg:L,itag:Q});else if(J=g8(X,J,L,x,K),!(X.playback.getVideoData().OA()&&(J==null?0:J.ws)))return J}; g8=function(X,J,L,x,Q){var K=X.W.get(L);if(!K){if(K=aLZ(X,J))return K;J=X.MO(L-1,x!=null?x:2);if(Q)return X.lB({misscue:Q,sq:L,type:x,prevsstate:J==null?void 0:J.le,prevrecord:X.W.has(L-1)}),X.W.get(L-1);if((J==null?void 0:J.le)===2)return X.lB({adnf:1,sq:L,type:x,prevrecord:X.W.has(L-1)}),X.W.get(L-1)}return K}; aLZ=function(X,J){J+=X.vJ();if(X.playback.getVideoData().OA())a:{var L=1;L=L===void 0?0:L;var x=J*1E3;X=g.d(X.L.K);for(var Q=X.next();!Q.done;Q=X.next()){Q=Q.value;var K=Q.P_?Q.P_*1E3:Q.Se;if(x>=Q.Se-L*1E3&&x<=K+Q.durationMs+L*1E3){x={L$:Q,qS:J};break a}}x={L$:void 0,qS:J}}else x=qX(X,J),((L=x)==null?0:L.L$)||(x=qX(X,J,1));var q;return(q=x)==null?void 0:q.L$}; wL8=function(X,J){J=J===void 0?"":J;var L=dy(J)||void 0;if(!J||!L){var x;X.lB({adcfg:(x=J)==null?void 0:x.length,dcfg:L==null?void 0:L.length})}return L}; tRm=function(X){if(X.Bl.length)for(var J=g.d(X.Bl),L=J.next();!L.done;L=J.next())X.onCueRangeExit(L.value);J=g.d(X.N.values());for(L=J.next();!L.done;L=J.next())X.playback.removeCueRange(L.value);J=g.d(X.j);for(L=J.next();!L.done;L=J.next())X.playback.removeCueRange(L.value);X.N.clear();X.j=[];X.FE.clearAll();X.K||(X.vl=!0)}; QF=function(X,J,L,x,Q,K,q){if(J&&L){X.Fc=L.cpn;X.oW(L.cpn,L.Se/1E3);iO(X,L);var D=x2(X,"a2a",L);X.lB(D);X.v_++;X.playback.tZ(J,L,x||0,Q||0,!!K,!!q)}else X.lB({misspbkonadtrans:1,enter:(L==null?void 0:L.cpn)||"",exit:(J==null?void 0:J.cpn)||"",seek:K,skip:q})}; uum=function(X,J,L,x){if(x)for(x=0;xL){var K=Q.end;Q.end=J;dNY(X,L,K)}else if(Q.start>=J&&Q.startL)Q.start=L;else if(Q.end>J&&Q.end<=L&&Q.start=J&&Q.end<=L){X.playback.removeCueRange(Q);if(X.Bl.includes(Q))X.onCueRangeExit(Q);X.j.splice(x,1);continue}x++}else dNY(X,J,L)}; dNY=function(X,J,L){J=DNO(J,L);L=!0;g.Uu(X.j,J,function(q,D){return q.start-D.start}); for(var x=0;x0){var Q=X.j[x],K=X.j[x-1];if(Math.round(K.end/1E3)>=Math.round(Q.start/1E3)){K.end=Q.end;Q!==J?X.playback.removeCueRange(Q):L=!1;X.j.splice(x,1);continue}}x++}if(L)for(X.playback.addCueRange(J),J=X.playback.YA("serverstitchedcuerange",36E5),J=g.d(J),L=J.next();!L.done;L=J.next())X.N.delete(L.value.getId())}; DK=function(X,J,L){if(L===void 0||!L){L=g.d(X.J0);for(var x=L.next();!x.done;x=L.next()){x=x.value;if(J>=x.start&&J<=x.end)return;if(J===x.end+1){x.end+=1;return}}X.J0.push(new Jcm(J))}}; g.H_8=function(X,J){X=g.d(X.J0);for(var L=X.next();!L.done;L=X.next())if(L=L.value,J>=L.start&&J<=L.end)return!0;return!1}; $2=function(X,J,L){var x;if(x=X.playback.getVideoData().OA()||X.m9.Y("html5_ssdai_extent_last_unfinished_ad_cue_range"))x=(x=X.L.L.get(J))&&x.u6?(X=X.L.N.get(x==null?void 0:x.u6))&&X.slice(-1)[0].cpn===J:!1;return x&&L===2?1E3:0}; KDO=function(X,J,L,x,Q){var K;J={reason:"overlapping_playbacks",fo0:J,Se:L,K3:x,uWI:Q.JP,hYl:((K=Q.videoData)==null?void 0:K.videoId)||"",akI:Q.durationMs,NcM:Q.Se,iuH:Q.K3};JG(X,J)}; JG=function(X,J,L){X.playback.b$(J,L)}; o7Y=function(X,J){var L=[];X=X.L.N.get(J);if(!X)return[];X=g.d(X);for(J=X.next();!J.done;J=X.next())J=J.value,J.cpn&&L.push(J.cpn);return L}; b_z=function(X,J,L){var x=0;X=X.L.N.get(L);if(!X)return-1;X=g.d(X);for(L=X.next();!L.done;L=X.next()){if(L.value.cpn===J)return x;x++}return-1}; Smm=function(X,J){var L=0;X=X.L.N.get(J);if(!X)return 0;X=g.d(X);for(J=X.next();!J.done;J=X.next())J=J.value,J.durationMs!==0&&J.K3!==J.Se&&L++;return L}; PKe=function(X,J,L){var x=!1;if(L&&(L=X.L.N.get(L))){L=g.d(L);for(var Q=L.next();!Q.done;Q=L.next())Q=Q.value,Q.durationMs!==0&&Q.K3!==Q.Se&&(Q=Q.cpn,J===Q&&(x=!0),x&&!X.pO.has(Q)&&(X.lB({decoratedAd:Q}),X.pO.add(Q)))}}; i_m=function(X){X.O6&&X.lB({adf:"0_"+((new Date).getTime()/1E3-X.t_)+"_isTimeout_"+X.Pl})}; QdZ=function(X,J,L){if(X.gI.length)for(var x=g.d(X.gI),Q=x.next(),K={};!Q.done;K={FY:void 0},Q=x.next()){K.FY=Q.value;Q=K.FY.startSecs*1E3;var q=K.FY.zR*1E3+Q;if(J>Q&&JQ&&L0?X:0}else X.kc().videoData.t_=X.playback.getCurrentTime()}; rce=function(X,J,L,x){g.G.call(this);var Q=this;this.api=X;this.m9=J;this.L=L;this.app=x;this.j=new Map;this.K=[];this.N=this.W=null;this.Km=NaN;this.B=this.T=this.D=null;this.S=new g.sn(function(){pLP(Q,Q.Km,Q.D||void 0)}); this.aB=[];this.Pl=new g.sn(function(){var K=Q.aB.pop();if(K){var q=K.JP,D=K.playerVars;K=K.playerType;D&&(D.prefer_gapless=!0,Q.api.preloadVideoByPlayerVars(D,K,NaN,"",q),Q.aB.length&&g.Nc(Q.Pl,4500))}}); this.events=new g.dS(this);this.Zh={W$l:function(){return Q.K}}; this.L.getPlayerType();g.f(this,this.S);g.f(this,this.Pl);g.f(this,this.events);this.events.J(this.api,g.sq("childplayback"),this.onCueRangeEnter);this.events.J(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.J(this.api,"presentingplayerstatechange",this.Cv)}; Gqm=function(X,J,L,x,Q,K){var q=J.cpn,D=J.docid||J.video_id||J.videoId||J.id,C=X.L;K=K===void 0?Q+x:K;if(Q>K)return MX(X,"enterAfterReturn enterTimeMs="+Q+" is greater than parentReturnTimeMs="+K.toFixed(3),q,D),"";var M=C.c9()*1E3;if(QM)return C="returnAfterDuration parentReturnTimeMs="+K.toFixed(3)+" is greater than parentDurationMs="+M+". And timestampOffset in seconds is "+ C.W4(),MX(X,C,q,D),"";M=null;for(var y=g.d(X.K),n=y.next();!n.done;n=y.next()){n=n.value;if(Q>=n.Se&&Qn.Se)return MX(X,"overlappingReturn",q,D),"";if(K===n.Se)return MX(X,"outOfOrder",q,D),"";Q===n.K3&&(M=n)}q="cs_childplayback_"+v78++;D={Z2:yF(x,!0),n$:Infinity,target:null};var V={JP:q,playerVars:J,playerType:L,durationMs:x,Se:Q,K3:K,Z9:D};X.K=X.K.concat(V).sort(function(u,S){return u.Se-S.Se}); M?jdv(X,M,{Z2:yF(M.durationMs,!0),n$:M.Z9.n$,target:V}):(J={Z2:yF(Q,!1),n$:Q,target:V},X.j.set(J.Z2,J),C.addCueRange(J.Z2));J=!0;if(X.L===X.app.nm()&&(C=C.getCurrentTime()*1E3,C>=V.Se&&CJ)break;if(K>J)return{L$:x,qS:J-Q};L=K-x.K3/1E3}return{L$:null,qS:J-L}}; pLP=function(X,J,L){L=L===void 0?{}:L;var x=X.B||X.app.nm().getPlayerState();HA(X,!0);J=isFinite(J)?J:X.L.Fb();var Q=lLY(X,J);J=Q.qS;var K=(Q=Q.L$)&&!n1(X,Q)||!Q&&X.L!==X.app.nm(),q=J*1E3;q=X.N&&X.N.start<=q&&q<=X.N.end;!K&&q||VF(X);Q?TmI(X,Q,J,L,x):Rj8(X,J,L,x)}; Rj8=function(X,J,L,x){var Q=X.L;Q!==X.app.nm()&&X.app.Dc();Q.seekTo(J,Object.assign({},{B9:"application_timelinemanager"},L));BmP(X,x)}; TmI=function(X,J,L,x,Q){var K=n1(X,J);if(!K){J.playerVars.prefer_gapless=!0;X.m9.Y("html5_enable_ssap_entity_id")&&(J.playerVars.cached_load=!0);var q=new g.KI(X.m9,J.playerVars);q.JP=J.JP;X.api.Tp(q,J.playerType)}q=X.app.nm();K||q.addCueRange(J.Z9.Z2);q.seekTo(L,Object.assign({},{B9:"application_timelinemanager"},x));BmP(X,Q)}; BmP=function(X,J){X=X.app.nm();var L=X.getPlayerState();J.isOrWillBePlaying()&&!L.isOrWillBePlaying()?X.playVideo():J.isPaused()&&!L.isPaused()&&X.pauseVideo()}; HA=function(X,J){X.Km=NaN;X.D=null;X.S.stop();X.T&&J&&X.T.jE();X.B=null;X.T=null}; n1=function(X,J){X=X.app.nm();return!!X&&X.getVideoData().JP===J.JP}; sdo=function(X){var J=X.K.find(function(Q){return n1(X,Q)}); if(J){var L=X.app.nm();VF(X);var x=new g.ds(8);J=FDm(X,J)/1E3;Rj8(X,J,{},x);L.Ni("forceParentTransition",{childPlayback:1});X.L.Ni("forceParentTransition",{parentPlayback:1})}}; UNY=function(X,J,L){J=J===void 0?-1:J;L=L===void 0?Infinity:L;for(var x=J,Q=L,K=g.d(X.j),q=K.next();!q.done;q=K.next()){var D=g.d(q.value);q=D.next().value;D=D.next().value;D.n$>=x&&D.target&&D.target.K3<=Q&&(X.L.removeCueRange(q),X.j.delete(q))}x=J;Q=L;K=[];q=g.d(X.K);for(D=q.next();!D.done;D=q.next())if(D=D.value,D.Se>=x&&D.K3<=Q){var C=X;C.W===D&&VF(C);n1(C,D)&&C.app.Dc()}else K.push(D);X.K=K;x=lLY(X,J/1E3);J=x.L$;x=x.qS;J&&(x*=1E3,NmR(X,J,x,J.K3===J.Se+J.durationMs?J.Se+x:J.K3));(J=lLY(X,L/1E3).L$)&& MX(X,"Invalid clearEndTimeMs="+L+" that falls during playback={timelinePlaybackId="+(J.JP+" video_id="+J.playerVars.video_id+" durationMs="+J.durationMs+" enterTimeMs="+J.Se+" parentReturnTimeMs="+J.K3+"}.Child playbacks can only have duration updated not their start."))}; NmR=function(X,J,L,x){J.durationMs=L;J.K3=x;x={Z2:yF(L,!0),n$:L,target:null};jdv(X,J,x);n1(X,J)&&X.app.nm().getCurrentTime()*1E3>L&&(J=FDm(X,J)/1E3,L=X.app.nm().getPlayerState(),Rj8(X,J,{},L))}; MX=function(X,J,L,x){X.L.Ni("timelineerror",{e:J,cpn:L?L:void 0,videoId:x?x:void 0})}; kqm=function(X){X&&X!=="web"&&mNI.includes(X)}; OK=function(){g.G.call(this);this.L=new NQ(5,null);g.f(this,this.L);this.K=new NQ(15,null);g.f(this,this.K)}; sEW=function(X,J){return J?!!X.L.get(J):!1}; Z_z=function(X,J){X.dataset.version=J}; J7S=function(X){g.R.call(this,{V:"div",Ql:["html5-video-player"],X:{tabindex:X.G().disableOrganicUi?"":"-1",id:X.webPlayerContextConfig.rootElementId},C:[{V:"div",U:g.wf.VIDEO_CONTAINER,X:{"data-layer":"0"}}]});var J=this;this.app=X;this.Pb=this.kq(g.wf.VIDEO_CONTAINER);this.Nj=new g.fj(0,0,0,0);this.aT=null;this.Iv=new g.fj(0,0,0,0);this.qL=this.o5=this.JT=NaN;this.Hr=this.qo=this.AF=this.kO=!1;this.DL=NaN;this.ke=!1;this.qH=null;this.iS=function(){J.element.focus({preventScroll:!0})}; this.i$=function(){J.app.IB.publish("playerUnderlayVisibilityChange","visible");J.aT.classList.remove(g.wf.VIDEO_CONTAINER_TRANSITIONING);J.aT.removeEventListener(tZ,J.i$);J.aT.removeEventListener("transitioncancel",J.i$)}; this.ZF=this.Lq=!1;var L=this.element.addEventListener,x=this.element.removeEventListener;this.addEventListener=function(K,q,D){L.apply(J.element,[K,q,D])}; this.removeEventListener=function(K,q,D){x.apply(J.element,[K,q,D])}; var Q=X.G();Q.transparentBackground&&this.rB("ytp-transparent");Q.controlsType==="0"&&this.rB("ytp-hide-controls");g.xq(this.element,"ytp-exp-bottom-control-flexbox");g.xq(this.element,"ytp-modern-caption");Q.Y("enable_new_paid_product_placement")&&!g.yH(Q)&&g.xq(this.element,"ytp-exp-ppp-update");Q.Y("html5_enable_ssap")&&g.xq(this.element,"ytp-ssap");g.xq(this.element,"ytp-livebadge-color");if(Q.Y("delhi_modern_web_player"))switch(g.xq(this.element,"ytp-delhi-modern"),Q.Y("delhi_modern_web_player_icons")&& g.xq(this.element,"ytp-delhi-modern-icons"),Ha(Q.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.xq(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.xq(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.xq(this.element,"ytp-delhi-modern-with-exclusion")}Z_z(this.element,AcW(X));this.o8=!1;this.hd=new g.B_(NaN,NaN);XDS(this);this.J(X.IB,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; XDS=function(X){function J(){X.aT&&ay(X);w8(X)!==X.ke&&X.resize()} function L(q,D){X.vK(q,D)} function x(q){q.getVideoData()&&X.updateVideoData(q.getVideoData())} function Q(){X.Iv=new g.fj(0,0,0,0);X.Nj=new g.fj(0,0,0,0)} var K=X.app.IB;K.addEventListener("initializingmode",Q);K.addEventListener("videoplayerreset",x);K.addEventListener("videodatachange",L);K.addEventListener("presentingplayerstatechange",J);X.addOnDisposeCallback(function(){K.removeEventListener("initializingmode",Q);K.removeEventListener("videoplayerreset",x);K.removeEventListener("videodatachange",L);K.removeEventListener("presentingplayerstatechange",J)})}; xjP=function(X){var J=X.app.nm();if(J=J?J.getVideoData():null){if(g.ll(J)||g.Rl(J)||g.Bd(J))return 16/9;if(Hd(J)&&J.N.L)return X=J.N.videoInfos[0].video,Le8(X.width,X.height)}return(X=X.aT)?Le8(X.videoWidth,X.videoHeight):16/9}; ixI=function(X,J,L,x){var Q=L,K=Le8(J.width,J.height);X.kO?Q=LK?{width:J.width,height:J.width/Q,aspectRatio:Q}:QQ?X.width=X.height*L:LC;if(w8(X)){var M=xjP(X);var y=isNaN(M)||g.lT||x$&&g.n9||C;Fh&&!g.Gu(601)?M=Q.aspectRatio:y=y||K.controlsType==="3";y?C?(y=K.Y("place_shrunken_video_on_left_of_player")?16:X.getPlayerSize().width-J.width-16,M=Math.max((X.getPlayerSize().height-J.height)/2,0),y=new g.fj(y,M,J.width, J.height),X.aT.style.setProperty("border-radius","12px")):y=new g.fj(0,0,J.width,J.height):(L=Q.aspectRatio/M,y=new g.fj((J.width-Q.width/L)/2,(J.height-Q.height)/2,Q.width/L,Q.height),L===1&&g.n9&&(M=y.width-J.height*M,M>0&&(y.width+=M,y.height+=M)));g.q8(X.element,"ytp-fit-cover-video",Math.max(y.width-Q.width,y.height-Q.height)<1);if(D||X.o8)X.aT.style.display="";X.ke=!0}else{y=-J.height;Fh?y*=window.devicePixelRatio:g.n4&&(y-=window.screen.height);y=new g.fj(0,y,J.width,J.height);if(D||X.o8)X.aT.style.display= "none";X.ke=!1}e6(X.Iv,y)||(X.Iv=y,g.kH(K)?(X.aT.style.setProperty("width",y.width+"px","important"),X.aT.style.setProperty("height",y.height+"px","important")):g.X9(X.aT,y.getSize()),x=new g.l$(y.left,y.top),g.m9(X.aT,Math.round(x.x),Math.round(x.y)),x=!0);J=new g.fj((J.width-Q.width)/2,(J.height-Q.height)/2,Q.width,Q.height);e6(X.Nj,J)||(X.Nj=J,x=!0);g.lF(X.aT,"transform",L===1?"":"scaleX("+L+")");q&&C!==X.qo&&(C&&(X.aT.addEventListener(tZ,X.i$),X.aT.addEventListener("transitioncancel",X.i$),X.aT.classList.add(g.wf.VIDEO_CONTAINER_TRANSITIONING)), X.qo=C,X.app.IB.publish("playerUnderlayVisibilityChange",X.qo?"transitioning":"hidden"));return x}; qPS=function(X){X.Lq=!X.Lq;X.ZF=!0;X.element.classList.toggle("ytp-retro-player",X.Lq);X.resize();X.ZF=!1;X.app.IB.GH("onRetroModeChanged",X.Lq)}; ITR=function(){this.csn=g.Ow();this.clientPlaybackNonce=null;this.elements=new Set;this.N=new Set;this.L=new Set;this.K=new Set}; gMv=function(X){if(X.csn!==g.Ow())if(X.csn==="UNDEFINED_CSN")X.csn=g.Ow();else{var J=g.Ow(),L=g.HM();if(J&&L){X.csn=J;for(var x=g.d(X.elements),Q=x.next();!Q.done;Q=x.next())(Q=Q.value.visualElement)&&Q.isClientVe()&&J&&L&&(g.VQ("combine_ve_grafts")?mX(Nt(),Q,L):g.ND(g.Gc)(void 0,J,L,Q))}if(J)for(X=g.d(X.L),L=X.next();!L.done;L=X.next())(L=L.value.visualElement)&&L.isClientVe()&&g.mj(J,L)}}; g.tG=function(X,J,L,x){g.G.call(this);var Q=this;this.logger=new g.OS("App");this.GN=this.fJ=!1;this.Wd={};this.V1=[];this.Y2=!1;this.AL=null;this.intentionalPlayback=!1;this.CG=!0;this.mR=!1;this.FQ=this.Cc=this.Qa=null;this.TX=!0;this.mediaElement=this.FX=null;this.Oh=NaN;this.NB=!1;this.Uo=this.KQ=this.MF=this.screenLayer=this.playlist=null;this.Ji=[];this.dW=0;this.Zh={Qe:function(){return Q.v9}, VYB:function(){return Q.MF}, Ed0:function(){}}; this.logger.debug("constructor begin");if(!L)throw Error("b/179532961");this.bQ=(J==null?void 0:J.args)||{};this.webPlayerContextConfig=L;Qmm();J=this.bQ;this.m9=new ik(J,L,L.canaryState,x,this);g.f(this,this.m9);ky8(this.m9);L=AFW(this.m9);this.m9.YH()&&this.Nh("h5vcc",L);this.m9.experiments.Mi("jspb_serialize_with_worker")&&Gs8();this.m9.experiments.Mi("gzip_gel_with_worker")&&hbP();this.m9.K&&!Dje&&(window.addEventListener(Gl?"touchstart":"click",PoY,{capture:!0,passive:!0}),Dje=!0);this.Y("html5_onesie")&& (this.oh=new MW(this.m9),g.f(this,this.oh));this.sN=Xm(Ba(this.m9)&&!0,J.enablesizebutton);this.hT=Xm(!1,J.player_wide);this.visibility=new R78;g.f(this,this.visibility);this.Y("web_log_theater_mode_visibility")&&this.U3(Xm(!1,J.player_wide));this.fJ=Xm(!1,J.external_list);this.events=new g.dS(this);g.f(this,this.events);this.Y("start_client_gcf")&&(ur(PX(),{P3:i7,rT:JJO()}),this.d7=PX().resolve(i7),isW(this.d7));this.DFB=new tz;g.f(this,this.DFB);this.b3=new ITR;L=new dB;this.IB=new g.rB(this,L); g.f(this,this.IB);this.template=new J7S(this);g.f(this,this.template);this.appState=1;this.WS=$jW(this);g.f(this,L);L={};this.FG=(L.internalvideodatachange=this.xiM,L.playbackready=this.IY0,L.playbackstarted=this.Hm9,L.statechange=this.W9l,L);this.WZ=new aE(this.IB);this.Hv=Cje(this);L=this.m9.B;!1!==L&&this.Nh("badps",{hbp:L,hostname:window.location.hostname,ps:this.m9.playerStyle});this.gt=new MLm(this.m9,this.Hv);this.IB.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||zho(this.Hv))&& MWA(this);L=10;g.nD(this.m9)&&(L=3);C4(this.m9)&&(L=g.J_(this.m9.experiments,"tvhtml5_unplugged_preload_cache_size"));this.v9=new g.m3(this.IB,L);L=y7o(this);this.v9.uu(L);nMA(this);L={};this.OF=(L.airplayactivechange=this.oHl,L.airplayavailabilitychange=this.nHB,L.beginseeking=this.SHi,L.sabrCaptionsDataLoaded=this.y_I,L.endseeking=this.MeC,L.internalAbandon=this.eCC,L.internalaudioformatchange=this.bpM,L.internalvideodatachange=this.iOY,L.internalvideoformatchange=this.hx6,L.liveviewshift=this.tel, L.playbackstalledatstart=this.NQ0,L.progresssync=this.r_l,L.onAbnormalityDetected=this.J_q,L.onSnackbarMessage=this.ahq,L.onLoadProgress=this.c_l,L.SEEK_COMPLETE=this.md6,L.SEEK_TO=this.LZH,L.onVideoProgress=this.PHl,L.onLoadedMetadata=this.X4l,L.onAutoplayBlocked=this.sfq,L.onPlaybackPauseAtStart=this.lwl,L.playbackready=this.Dx9,L.statechange=this.PX,L.newelementrequired=this.hS,L.heartbeatparams=this.Opi,L.videoelementevent=this.uvM,L.drmoutputrestricted=this.G6q,L.signatureexpired=this.KZ6,L.nonfatalerror= this.ChY,L.reloadplayer=this.RCC,L);this.wv=new g.dS(this);g.f(this,this.wv);this.QX=new OK;g.f(this,this.QX);this.H1=this.xu=-1;this.l$=new g.sn(this.template.resize,16,this.template);g.f(this,this.l$);this.S7=new rce(this.IB,this.m9,this.Kp(),this);this.KJ=new FT(this);g.f(this,this.KJ);this.LF=new T8(this);g.f(this,this.LF);kqm(this.m9.L.c);this.events.J(this.IB,g.sq("appapi"),this.q6B);this.events.J(this.IB,g.N2("appapi"),this.Y6q);this.events.J(this.IB,g.sq("appprogressboundary"),this.QTE);this.events.J(this.IB, g.N2("applooprange"),this.ys);this.events.J(this.IB,"presentingplayerstatechange",this.Cv);this.events.J(this.IB,"resize",this.xdE);this.template.zH(xD(document,X));this.events.J(this.IB,"offlineslatestatechange",this.IwB);this.events.J(this.IB,"sabrCaptionsTrackChanged",this.OOm);this.events.J(this.IB,"sabrCaptionsBufferedRangesUpdated",this.M7m);this.Hv.Z.G().iJ&&zg(this.Hv,"offline");this.m9.J0&&g.oE("ux",g.vn);X=g.J_(this.m9.experiments,"html5_defer_fetch_att_ms");this.Ok=new g.sn(this.LQq,X, this);g.f(this,this.Ok);this.mY().bl()&&(g.zb()&&this.mY().aB.push("remote"),VWv(this));this.gt.tick("fs");HxI(this);this.m9.J0&&zg(this.Hv,"ux",!0);g.lb(this.Hv.Z.G())&&zg(this.Hv,"embed");this.Y("web_player_sentinel_is_uniplayer")||g.PM(new g.Fm("Player experiment flags missing","web_player_sentinel_is_uniplayer"));X=this.Y("web_player_sentinel_yt_experiments_sync");L=g.VQ("web_player_sentinel_yt_experiments_sync");X!==L&&g.PM(new g.Fm("b/195699950",{yt:X,player:L}));this.s_=Oxm(this);if(X=g.J_(this.m9.experiments, "html5_block_pip_safari_delay"))this.Gl=new g.sn(this.N5,X,this),g.f(this,this.Gl);Ev=this.m9.XX;this.IB.publish("applicationInitialized");this.logger.debug("constructor end")}; Oxm=function(X){function J(L){L.stack&&L.stack.indexOf("player")!==-1&&X.nm().er(L)} cM.subscribe("handleError",J);Bu.push(J);return function(){cM.unsubscribe("handleError",J);var L=Bu.indexOf(J);L!==-1&&Bu.splice(L,1)}}; y7o=function(X){var J=new g.KI(X.m9,X.bQ);X.IB.publish("initialvideodatacreated",J);return d8(X,1,J,!1)}; nMA=function(X){var J=X.Kp();J.setPlaybackRate(X.m9.T?1:aTe(X,Number(g.Y1("yt-player-playback-rate"))||1));J.oV(X.FG,X);J.Jm()}; Cje=function(X){var J="",L=AcW(X);L.indexOf("//")===0&&(L=X.m9.protocol+":"+L);var x=L.lastIndexOf("/base.js");x!==-1&&(J=L.substring(0,x+1));if(L=Error().stack)if(L=L.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))L=L[1],L.includes(J)||g.PM(Error("Player module URL mismatch: "+(L+" vs "+J+".")));J=new E28(X.IB,J);L={};YKP(J,(L.destroyed=function(){X.onApiChange()},L)); return J}; $jW=function(X){if(X.m9.storeUserVolume){X=g.Y1("yt-player-volume")||{};var J=X.volume;X={volume:isNaN(J)?100:g.fW(Math.floor(J),0,100),muted:!!X.muted}}else X={volume:100,muted:X.m9.mute};return X}; uO=function(X){X.mediaElement=X.m9.deviceIsAudioOnly?new g.mt(g.MG("AUDIO")):jQ.pop()||new g.mt(g.MG("VIDEO"));g.f(X,X.mediaElement);X.nm().setMediaElement(X.mediaElement);try{X.m9.pO?(X.KQ&&X.events.VO(X.KQ),X.KQ=X.events.J(X.mediaElement,"volumechange",X.EHE)):(X.mediaElement.dN(X.WS.muted),X.mediaElement.setVolume(X.WS.volume/100))}catch(Q){X.AJ("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(Q&&typeof Q==="object"&&"message"in Q&&typeof Q.message==="string"&&Q.message.replace(/[;:,]/g, "_")));return}g.Sf(X.wv);wDS(X);var J=X.template,L=X.mediaElement.kH();J.aT=L;J.Hr=!1;J.aT.parentNode||O9(J.Pb,J.aT,0);J.Iv=new g.fj(0,0,0,0);Kez(J);ay(J);L=J.aT;g.xq(L,"video-stream");g.xq(L,g.wf.MAIN_VIDEO);var x=J.app.G();x.sQ&&L.setAttribute("data-no-fullscreen","true");x.Y("html5_local_playsinline")?"playsInline"in V1()&&(L.playsInline=!0):x.XB&&(L.setAttribute("webkit-playsinline",""),L.setAttribute("playsinline",""));x.Nn&&J.aT&&J.J(L,"click",L.play,L);try{X.mediaElement.activate()}catch(Q){X.AJ("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(Q&&typeof Q==="object"&&"message"in Q&&typeof Q.message==="string"&&Q.message.replace(/[;:,]/g,"_")))}}; djI=function(X){if(!tWA(X)){var J=X.Kp().tP();J&&(J=J.NZ(),J instanceof Promise&&J.catch(function(){})); oy(X,Yj(X.getPlayerStateObject()))}}; wDS=function(X){var J=X.mediaElement;wS()?X.wv.J(J,"webkitpresentationmodechanged",X.t79):window.document.pictureInPictureEnabled&&(X.wv.J(J,"enterpictureinpicture",function(){X.Dd(!0)}),X.wv.J(J,"leavepictureinpicture",function(){X.Dd(!1)})); B6&&(X.wv.J(J,"webkitbeginfullscreen",function(){X.nI(3)}),X.wv.J(J,"webkitendfullscreen",function(){X.nI(0)}))}; uKo=function(X,J){var L=J.getPlayerType(),x=X.v9.N[L]||null;J!==X.Kp()&&J!==x&&(x==null||x.dispose(),X.v9.N[L]=J)}; oMY=function(X,J){J=J===void 0?!0:J;X.logger.debug("start clear presenting player");var L;if(L=X.Uo){L=X.Uo;var x=X.mediaElement;L=!!x&&x===L.mediaElement}L&&(X.Fs(),uO(X));L=X.nm();L.Fs(!J);L.f6(X.OF,X);L.getPlayerType()!==1&&L.dispose();J=X.v9;J.K=J.L;kJ(J);X.logger.debug("finish clear presenting player")}; g.bxZ=function(X,J,L,x){var Q=X.gt;J===2&&(Q=new MLm(X.m9));return new g.KS(X.m9,J,Q,X.template,function(K,q,D){X.IB.publish(K,q,D)},function(){return X.IB.getVisibilityState()},X.visibility,X,L,x)}; d8=function(X,J,L,x,Q){X=g.bxZ(X,J,L,Q);X=new g.mi(X);x&&X.Jm();return X}; bO=function(X,J){return X.cO(J)?X.Kp():J}; SL=function(X,J){var L=X.nm();return J===X.Kp()&&X.cO(J)&&X.cO(L)?L:J}; c7I=function(X){X.logger.debug("start application playback");if(X.Kp().getPlayerState().isError())X.logger.debug("start application playback done, player in error state");else{var J=PA(X);X.mY().isLoaded();J&&X.Wk(6);SPm(X);ehS(X.Hv)||Pj8(X)}}; Pj8=function(X){if(!PA(X)){var J=pi(X.Hv);J&&!J.created&&hhm(X.Hv)&&(X.logger.debug("reload ad module"),J.create())}}; SPm=function(X){X.logger.debug("start presenter playback");var J=X.getVideoData(),L=X.Hv;ehS(L)||L.mL();!g38&&L.Z.Y("html5_allow_asmjs")&&N8W(L);zg(L,"embed");zg(L,"kids");zg(L,"remote");zg(L,"miniplayer");zg(L,"offline");zg(L,"unplugged");zg(L,"ypc",!1,!0);zg(L,"ypc_clickwrap",!1,!0);zg(L,"yto",!1,!0);zg(L,"webgl",!1,!0);Fgm(L)||(zg(L,"captions",!0),zg(L,"endscreen"),L.Pa(),zg(L,"creatorendscreen",!0));L.q5();X.IB.publish("videoready",J)}; cA=function(X){X=X.mY();X.bl();return Av(X)}; HxI=function(X){X.logger.debug("start prepare initial playback");X.fM();var J=X.bQ;uO(X);X.events.J(window,"resize",X.p9B);var L=X.mY();X.IB.EM("onVolumeChange",X.WS);if(J&&H1z(J)){var x=Ic(X.m9);x&&!X.fJ&&(J.fetch=0);var Q=g.lb(X.m9);Q&&!X.fJ&&(J.fetch=0);EK(X,J);g.lb(X.m9)&&X.gt.tick("ep_pr_s");if(!x||X.fJ)if(Q&&!X.fJ)EMm(X);else if(!L.bl())X.playlist.onReady(function(){Y2(X)})}X.jd(X.Kp(),!1,!0); g.N(X.Kp().getPlayerState(),128)||(J=SDZ(!X.m9.deviceIsAudioOnly),J==="fmt.noneavailable"?X.AJ("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):J==="html5.missingapi"?X.AJ(J,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):L&&L.bl()&&cA(X)&&(X.m9.Ii||X.m9.xj)?hG(X):L.gC?X.IB.mutedAutoplay({durationMode:L.mutedAutoplayDurationMode}):g.Y1("yt-player-playback-on-reload")?(g.QK("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!X.m9.Pl}),g.El("yt-player-playback-on-reload",!1), hG(X)):He(X.m9)||YPm(X),g.$3(X.m9)||n0(X.m9)==="MWEB"?(g.Nk(g.mn(),function(){zE(X)}),g.Nk(g.mn(),function(){bPZ()})):(zE(X),bPZ()),X.logger.debug("finish prepare initial playback"))}; zE=function(X){if(!X.Y("use_rta_for_player"))if(X.Y("fetch_att_independently"))g.Nc(X.Ok);else{var J=X.getVideoData().botguardData;J&&g.iI(J,X.m9,X.getVideoData().QH||"")}}; YPm=function(X){X.logger.debug("start initialize to CUED mode");X.IB.publish("initializingmode");X.Wk(2);X.Y("embeds_web_enable_defer_loading_remote_js")&&g.yH(X.m9)?g.Nk(g.mn(),function(){zg(X.Hv,"remote")}):zg(X.Hv,"remote"); zg(X.Hv,"miniplayer");X.logger.debug("initialized to CUED mode")}; hG=function(X){X.logger.debug("start initialize application playback");var J=X.Kp();if(g.N(J.getPlayerState(),128))return!1;J=J.getVideoData();cA(X)&&X.m9.xj&&(jQ.length&&X.GN?(WA(X,{muted:!1,volume:X.WS.volume},!1),p1(X,!1)):jQ.length||X.WS.muted||(WA(X,{muted:!0,volume:X.WS.volume},!1),p1(X,!0)));cA(X)&&g.lb(X.m9)&&J.mutedAutoplay&&(WA(X,{muted:!0,volume:X.WS.volume},!1),p1(X,!0));J.wb&&WA(X,{muted:!0,volume:X.WS.volume},!1);hke(X,1,J,!1);var L=X.Kp();X.IB.publish("initializingmode");X.jd(L);X.Wk(3); var x;if(!(x=!X.m9.rF)){if(x=X.Uo){x=X.Uo;var Q=X.mediaElement;x=!!Q&&Q===x.mediaElement}x=x&&X.Y2}x&&(X.Fs(),uO(X),L.setMediaElement(X.mediaElement));L.SD();if(g.N(L.getPlayerState(),128))return!1;J.tB||oy(X,3);return X.Y2=!0}; PA=function(X){X=Ti(X.Hv);return!!X&&X.loaded}; zk8=function(X,J){if(!X.FX)return!1;var L=X.FX.startTimeMs*.001-1,x=X.FX.endTimeMs*.001;X.FX.type==="repeatChapter"&&x--;return Math.abs(J-L)<=1E-6||Math.abs(J-x)<=1E-6||J>=L&&J<=x}; WeO=function(X){var J=X.nm();Or(J.getVideoData())&&!J.MC()&&(J=r8(X)*1E3-X.getVideoData().Vn,X.Y("html5_gapless_new_slr")?(X=X.LF,vA(X.app,"gaplessshortslooprange"),J=new g.Rw(0,J,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(X=X.app.nm())&&X.addCueRange(J)):X.setLoopRange({startTimeMs:0,endTimeMs:J,type:"shortsLoop"}))}; pDP=function(X){var J=X.Kp();if(!(g.N(J.getPlayerState(),64)&&X.mY().isLivePlayback&&X.FX.startTimeMs<5E3)){if(X.FX.type==="repeatChapter"){var L,x=(L=Jlz(X.h_()))==null?void 0:L.gZ(),Q;L=(Q=X.getVideoData())==null?void 0:Q.Ii;x instanceof g.kC&&L&&(Q=L[ML(L,X.FX.startTimeMs)],x.renderChapterSeekingAnimation(0,Q.title));isNaN(Number(X.FX.loopCount))?X.FX.loopCount=0:X.FX.loopCount++;X.FX.loopCount===1&&X.IB.GH("innertubeCommand",X.getVideoData().YX)}x={B9:"application_loopRangeStart"};if(X.FX.type=== "clips"||X.FX.type==="shortsLoop")x.seekSource=58;J.seekTo(X.FX.startTimeMs*.001,x)}}; aTe=function(X,J){var L=X.IB.getAvailablePlaybackRates();J=Number(J.toFixed(2));X=L[0];L=L[L.length-1];J<=X?J=X:J>=L?J=L:(X=Math.floor(J*100+.001)%5,J=X===0?J:Math.floor((J-X*.01)*100+.001)/100);return J}; r8=function(X,J){J=X.d0({playerType:J});if(!J)return X.v9.L.z4();J=bO(X,J);return jL(X,J.z4(),J)}; jL=function(X,J,L){if(X.cO(L)&&(L=L.getVideoData(),!TE(X))){X=X.S7;for(var x=g.d(X.K),Q=x.next();!Q.done;Q=x.next())if(Q=Q.value,L.JP===Q.JP){J+=Q.Se/1E3;break}x=J;X=g.d(X.K);for(Q=X.next();!Q.done;Q=X.next()){Q=Q.value;if(L.JP===Q.JP)break;var K=Q.Se/1E3;if(K1&&(Q=!1);if(!X.NB||Q!==J){L=L.lock(Q?"portrait":"landscape");if(L!=null)L["catch"](function(){}); X.NB=!0}}else X.NB&&(X.NB=!1,L.unlock())}; Ry=function(X,J,L){X.IB.publish(J,L);var x=g.nD(X.m9)||g.kH(X.m9)||g.ze(X.m9);if(L&&x){switch(J){case "cuerangemarkersupdated":var Q="onCueRangeMarkersUpdated";break;case "cuerangesadded":Q="onCueRangesAdded";break;case "cuerangesremoved":Q="onCueRangesRemoved"}Q&&X.IB.GH(Q,L.map(function(K){return{getId:function(){return this.id}, end:K.end,id:K.getId(),namespace:K.namespace==="ad"?"ad":"",start:K.start,style:K.style,visible:K.visible}}))}}; BA=function(X,J,L,x,Q,K){L=L===void 0?!0:L;var q=X.d0({playerType:Q});if(!q||(q.getPlayerType()!==2||X.cO(q))&&!g.ew(q.getVideoData())){var D=X.v9.kW;D?D.seekTo(J,{CE:!L,nN:x,B9:"application",seekSource:K}):(q&&q===X.Kp()&&X.FX&&!zk8(X,J)&&X.setLoopRange(null),X.seekTo(J,L,x,Q,K))}}; kJS=function(X,J,L,x){L&&(X.Fs(),uO(X));L=X.nm();L.sL(J);var Q=X.getVideoData(),K={};K.video_id=Q.videoId;K.adformat=Q.adFormat;Q.isLivePlayback||(K.start=L.getCurrentTime(),K.resume="1");Q.isLivePlayback&&Pd(Q)&&g.M2(X.m9)&&(K.live_utc_start=L.L3(),K.resume="1");Q.gI&&(K.vvt=Q.gI);Q.B&&(K.vss_credentials_token=Q.B,K.vss_credentials_token_type=Q.SQ);Q.oauthToken&&(K.oauth_token=Q.oauthToken);K.autoplay=1;K.reload_count=Q.H4+1;K.reload_reason=J;Q.Wx&&(K.unplugged_partner_opt_out=Q.Wx);Q.sQ&&(K.ypc_is_premiere_trailer= Q.sQ);Q.playerParams&&(K.player_params=Q.playerParams);X.loadVideoByPlayerVars(K,void 0,!0,void 0,void 0,x);J==="signature"&&X.MF&&Pj8(X)}; ZxP=function(X,J){X.mY().autonavState=J;g.El("yt-player-autonavstate",J);X.IB.publish("autonavchange",J)}; A7v=function(X){var J=X.getVideoData().M0,L=X.m9.A0,x=X.isInline()&&!X.getVideoData().RX,Q=X.mediaElement;J||L||x?Q.F9():(Q.v1(),WA(X,X.WS))}; GE=function(X){var J=pi(X.h_());J&&J.created&&(X.logger.debug("reset ad module"),J.destroy())}; TE=function(X){return X.getVideoData().enableServerStitchedDai&&!!X.MF}; X3Z=function(X,J){J.bounds=X.getBoundingClientRect();for(var L=g.d(["display","opacity","visibility","zIndex"]),x=L.next();!x.done;x=L.next())x=x.value,J[x]=s9(X,x);J.hidden=!!X.hidden}; AcW=function(X){var J=X.webPlayerContextConfig.trustedJsUrl;return J?wC(J).toString():X.webPlayerContextConfig.jsUrl}; J4I=function(X,J){var L=X.d0({playerType:1});if(L){if(L.getVideoData().clientPlaybackNonce===J)return L;if((X=X.KJ.L)&&X.getVideoData().clientPlaybackNonce===J)return X}return null}; MWA=function(X){function J(x){return z6(UXW(X.Hv),function(Q){return Q.f_(x)})} X.gt.tick("wasm_s");X.m9.Lp=Dvo(X.webPlayerContextConfig.wasmModuleUrl,zho(X.Hv)?J:void 0,X.Nh.bind(X));var L;(L=X.m9.Lp)==null||z6(L,function(x){X.m9.Bl=x;X.gt.tick(x.L?"wasm_fa":"wasm_fw")},function(){X.m9.Lp=void 0; X.gt.tick("wasm_ferr")})}; Lqz=function(X){return X.name==="TypeError"&&X.stack.includes("/s/player/")&&v6()<=105}; xqo=function(X){return X.isTimeout?"NO_BID":"ERR_BID"}; i6Y=function(){var X=null;YgP().then(function(J){return X=J},function(J){return X=xqo(J)}); return X}; Q$e=function(){var X=jx(1E3,"NO_BID");return g.W4(siI([YgP(),X]).S1(xqo),function(){X.cancel()})}; sK=function(X){return X.ek?g.jf(g.v2(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; NX=function(X){this.player=X;this.N=this.L=1}; Iwv=function(X,J,L,x,Q,K){J.client||(J.client={});X.player.G().Y("h5_remove_url_for_get_ad_break")||(J.client.originalUrl=L);var q=xb(L),D=g.Dk(L)?!1:!0;(q||D)&&typeof Intl!=="undefined"&&(J.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);D=g.Dk(L)?!1:!0;if(q||D||x!==""){var C={};L=kP(Ih(x)).split("&");var M=new Map;L.forEach(function(y){y=y.split("=");y.length>1&&M.set(y[0].toString(),decodeURIComponent(y[1].toString()))}); M.has("bid")&&(C.bid=M.get("bid"));C.params=[];KqI.forEach(function(y){M.has(y)&&(y={key:y,value:M.get(y)},C.params.push(y))}); q7m(X,C);J.adSignalsInfo=C}J.client.unpluggedAppInfo||(J.client.unpluggedAppInfo={});J.client.unpluggedAppInfo.enableFilterMode=!1;L=Q.L.cosver;L!=null&&L!=="cosver"&&(J.client.osVersion=L);L=Q.L.cplatform;L!=null&&L!=="cplatform"&&L!==""&&(J.client.platform=L);L=Q.L.cmodel;L!=null&&L!=="cmodel"&&(J.client.deviceModel=L);L=Q.L.cplayer;L!=null&&L!=="cplayer"&&(J.client.playerType=L);L=Q.L.cbrand;L!=null&&L!=="cbrand"&&(J.client.deviceMake=L);J.user||(J.user={});J.user.lockedSafetyMode=!1;(Q.Y("embeds_web_enable_iframe_api_send_full_embed_url")|| Q.Y("embeds_enable_autoplay_and_visibility_signals"))&&g.mB(Q)&&QTY(J,K,X.player.getPlayerState(1))}; $q8=function(X,J){var L=!1;if(J==="")return L;J.split(",").forEach(function(x){var Q={},K={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},q="ACTIVE";x[0]==="!"&&(x=x.substring(1),q="INACTIVE");x=x.split("-");x.length<3||(x[0]in gTz&&(K.clientName=gTz[x[0]]),x[1]in Dqz&&(K.platform=Dqz[x[1]]),K.applicationState=q,K.clientVersion=x.length>2?x[2]:"",Q.remoteClient=K,X.remoteContexts?X.remoteContexts.push(Q):X.remoteContexts=[Q],L=!0)}); return L}; Msz=function(X){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in CHY))return!1;X=X.split(RegExp("[:&]"));var J=CHY.FLAG_AUTO_CAPTIONS_DEFAULT_ON,L="f"+(1+Math.floor(J/31)).toString();J=1<=2?q[1]:"";var D=nTA.test(J),C=Vsz.exec(J);C=C!=null&&C.length>=2?C[1]:"";var M=H6R.exec(J);M=M!=null&&M.length>=2&&!Number.isNaN(Number(M[1]))?Number(M[1]):1;var y=O6v.exec(J);y=y!=null&&y.length>=2?y[1]:"0";var n=JD(X.player.G().VZ),V=X.player.getVideoData(1),H=g.sL(V.vl,!0),O="BISCOTTI_ID"in L?L.BISCOTTI_ID:"";Iwv(X,H,J,O.toString(),X.player.G(), V);V={splay:!1,lactMilliseconds:L.LACT.toString(),playerHeightPixels:Math.trunc(L.P_H),playerWidthPixels:Math.trunc(L.P_W),vis:Math.trunc(L.VIS),signatureTimestamp:20263,autonavState:sK(X.player.G())};x&&(x={},$q8(x,L.YT_REMOTE)&&(V.mdxContext=x));if(x=awZ.includes(n)?void 0:g.zo("PREF")){for(var u=x.split(RegExp("[:&]")),S=0,Y=u.length;S1&&h[1].toUpperCase()==="TRUE"){H.user.lockedSafetyMode=!0;break}}V.autoCaptionsDefaultOn= Msz(x)}J=w3S.exec(J);(J=J!=null&&J.length>=2?J[1]:"")&&C&&(H.user.credentialTransferTokens=[{token:J,scope:"VIDEO"}]);J={contentPlaybackContext:V};q={adBlock:Math.trunc(L.AD_BLOCK),params:q,breakIndex:M,breakPositionMs:y,clientPlaybackNonce:L.CPN,topLevelDomain:n,isProxyAdTagRequest:D,context:H,adSignalsInfoString:kP(Ih(O.toString())),overridePlaybackContext:J};Q!==void 0&&(q.cueProcessedMs=Math.round(Q).toString());C&&(q.videoId=C);L.LIVE_TARGETING_CONTEXT&&(q.liveTargetingParams=L.LIVE_TARGETING_CONTEXT); L.AD_BREAK_LENGTH&&(q.breakLengthMs=Math.trunc(L.AD_BREAK_LENGTH*1E3).toString());K&&(q.driftFromHeadMs=K.toString());q.currentMediaTimeMs=Math.round(X.player.getCurrentTime(1)*1E3);(X=X.player.getGetAdBreakContext())&&(q.getAdBreakContext=X);return q}; dqR=function(){NX.apply(this,arguments)}; uGm=function(X,J,L,x,Q){var K=L.fG;var q=L.Z2;var D=X.player.G().x7,C=0;L.cueProcessedMs&&q&&!K&&(L=q.end-q.start,L>0&&(C=Math.floor(L/1E3)));var M={AD_BLOCK:Q,AD_BREAK_LENGTH:K?K.zR:C,AUTONAV_STATE:sK(X.player.G()),CA_TYPE:"image",CPN:X.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:X.player.TD()*1E3,LACT:a4(),LIVE_INDEX:K?X.N++:1,LIVE_TARGETING_CONTEXT:K&&K.context?K.context:"",MIDROLL_POS:q?Math.round(q.start/1E3):0,MIDROLL_POS_MS:q?Math.round(q.start):0,VIS:X.player.getVisibilityState(), P_H:X.player.t0().Lv().height,P_W:X.player.t0().Lv().width,YT_REMOTE:D?D.join(","):""},y=qV(KU);Object.keys(y).forEach(function(n){y[n]!=null&&(M[n.toUpperCase()]=y[n].toString())}); x!==""&&(M.BISCOTTI_ID=x);x={};QQ(J)&&(x.sts="20263",(X=X.player.G().forcedExperiments)&&(x.forced_experiments=X));return LU(g.cN(J,M),x)}; oTP=function(X,J){var L=X.player.G(),x,Q=(x=X.player.getVideoData(1))==null?void 0:x.oauthToken;return g.wT(L,Q).then(function(K){if(K&&iZ()){var q=NM();U8(q,K)}return g.zH(X.player.jj(q),J,"/youtubei/v1/player/ad_break").then(function(D){return D})})}; b6W=function(X){this.ZY=X}; S7P=function(X){this.Z=X}; PHP=function(X){this.ZY=X}; ETP=function(X){g.G.call(this);this.L=X;this.MR=c48(this)}; c48=function(X){var J=new SUz(X.L.Gi);g.f(X,J);X=[new b6W(X.L.ZY),new S7P(X.L.Z),new PHP(X.L.ZY),new we(X.L.jR,X.L.DS),new de,new bY(X.L.AO,X.L.uW,X.L.ZY),new tq,new ap];X=g.d(X);for(var L=X.next();!L.done;L=X.next())Pro(J,L.value);X=g.d(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(L=X.next();!L.done;L=X.next())uY(J,L.value,function(){}); return J}; UK=function(X){var J=X.dI,L=X.h0;X=X.R0;var x=new Rco,Q={Sj:new oEo(J.get(),L),h0:L};return{qx:new uP(L,X,J,Q),context:Q,sV:x}}; mg=function(X,J,L,x,Q){g.G.call(this);this.K=J;this.wI=L;this.dI=x;this.Jj=Q;this.listeners=[];var K=new o2(this);g.f(this,K);K.J(X,"internalAbandon",this.Tt0);this.addOnDisposeCallback(function(){g.Sf(K)})}; k2=function(X){this.Z=X;this.adVideoId=this.L=this.videoId=this.adCpn=this.contentCpn=null;this.j=!0;this.K=this.N=!1;this.adFormat=null;this.T="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; Y7S=function(X){X.contentCpn=null;X.adCpn=null;X.videoId=null;X.adVideoId=null;X.adFormat=null;X.T="AD_PLACEMENT_KIND_UNKNOWN";X.actionType="unknown_type";X.N=!1;X.K=!1}; hJR=function(X,J){X=g.d(J);for(J=X.next();!J.done;J=X.next())if((J=J.value.renderer)&&(J.instreamVideoAdRenderer||J.linearAdSequenceRenderer||J.sandwichedLinearAdRenderer||J.instreamSurveyAdRenderer)){oo("ad_i");g.bV({isMonetized:!0});break}}; zJm=function(X){var J;(J=X.Z.getVideoData(1))!=null&&J.Pl&&(X.K=!1,J={},X.L&&X.videoId&&(J.cttAuthInfo={token:X.L,videoId:X.videoId}),Sq("video_to_ad",J))}; DV=function(X){X.K=!1;var J={};X.L&&X.videoId&&(J.cttAuthInfo={token:X.L,videoId:X.videoId});Sq("ad_to_video",J);Wqv(X)}; Wqv=function(X){if(X.N)if(X.T==="AD_PLACEMENT_KIND_START"&&X.actionType==="video_to_ad")tt("video_to_ad");else{var J={adBreakType:f8(X.T),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:X.videoStreamType};X.actionType==="ad_to_video"?(X.contentCpn&&(J.targetCpn=X.contentCpn),X.videoId&&(J.targetVideoId=X.videoId)):(X.adCpn&&(J.targetCpn=X.adCpn),X.adVideoId&&(J.targetVideoId=X.adVideoId));X.adFormat&&(J.adType=X.adFormat);X.contentCpn&& (J.clientPlaybackNonce=X.contentCpn);X.videoId&&(J.videoId=X.videoId);X.adCpn&&(J.adClientPlaybackNonce=X.adCpn);X.adVideoId&&(J.adVideoId=X.adVideoId);g.bV(J,X.actionType);X.Z.G().experiments.Mi("html5_ads_csi_qoes")&&(J=X.Z.fI(X.actionType==="ad_to_video"?1:2),J=(0,g.uT)()-1E3*J,cQ("qoes",J,X.actionType))}}; ZK=function(X){g.G.call(this);this.Z=X;this.L=new Map;this.K=new o2(this);g.f(this,this.K);this.K.J(this.Z,g.sq("ad"),this.onCueRangeEnter,this);this.K.J(this.Z,g.N2("ad"),this.onCueRangeExit,this)}; p3m=function(X,J,L,x,Q,K){g.Rw.call(this,J,L,{id:X,namespace:"ad",priority:Q,visible:x,associatedClipId:K})}; AG=function(X){this.Z=X}; r4e=function(X,J){X.Z.cueVideoByPlayerVars(J,2)}; XI=function(X){this.Z=X}; J6=function(X){this.Z=X;g.J_(this.Z.G().experiments,"tv_pacf_logging_sample_rate")}; vTW=function(X){return vf(X,"html5_ssap_play_cached_preroll")}; Db=function(X,J){J=J===void 0?!1:J;return X.Z.G().Y("html5_ssap_force_ads_ctmp")?!0:(J||X.Z.G().YH())&&X.Z.G().Y("html5_ssap_pacf_qoe_ctmp")}; Lm=function(X){var J;return(J=X.Z.getVideoData(1)==null?void 0:!1)!=null?J:!1}; vf=function(X,J){return X.Z.G().Y(J)}; j$v=function(X){return X.Z.G().Y("substitute_ad_cpn_macro_in_ssdai")}; ez=function(X){var J,L,x;return((J=X.Z.getVideoData(1).getPlayerResponse())==null?void 0:(L=J.playerConfig)==null?void 0:(x=L.daiConfig)==null?void 0:x.enableServerStitchedDai)||!1}; rqW=function(X){return X.Z.G().Y("html5_enable_vod_slar_with_notify_pacf")}; Tco=function(X){return X.Z.G().Y("html5_recognize_predict_start_cue_point")}; wa=function(X){return X.Z.G().experiments.Mi("enable_desktop_player_underlay")}; Gf8=function(X){return X.Z.G().experiments.Mi("html5_load_empty_player_in_media_break_sub_lra")}; Af=function(X){return X.Z.G().experiments.Mi("html5_load_ads_instead_of_cue")}; XA=function(X){return X.Z.G().experiments.Mi("html5_preload_ads")}; fwP=function(X){return X.Z.G().experiments.Mi("should_ignore_cuepoints_during_lifa_preroll")}; HC=function(X){return X.Z.G().experiments.Mi("enable_ads_control_flow_deterministic_id_generation")}; eJY=function(X){return X.Z.G().experiments.Mi("enable_desktop_discovery_video_abandon_pings")||g.gT(X.Z.G())}; Fqm=function(X){return X.Z.G().experiments.Mi("enable_progres_commands_lr_feeds")}; FL=function(X){return X.Z.G().experiments.Mi("html5_cuepoint_identifier_logging")}; Fbm=function(X){X=X.Z.getVideoData(1);return!!X&&X.Y("html5_preload_first_vod_video_ad")&&!X.isDaiEnabled()&&!X.isLivePlayback}; lwW=function(X){return X.Z.G().experiments.Mi("html5_ssdai_enable_media_end_cue_range")}; RJz=function(X){switch(X){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}}; BcO=function(){g.Ly.call(this);var X=this;this.L={};this.addOnDisposeCallback(function(){for(var J=g.d(Object.keys(X.L)),L=J.next();!L.done;L=J.next())delete X.L[L.value]})}; xA=function(){if(s$e===null){s$e=new BcO;wR(N_).K="b";var X=wR(N_),J=rL(X)=="h"||rL(X)=="b",L=!(x4(),!1);J&&L&&(X.j=!0,X.B=new ChO)}return s$e}; Ncm=function(X,J,L){X.L[J]=L}; Uqo=function(X){switch(X){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}}; i1=function(X,J,L){this.wI=X;this.Z=J;this.h0=L;this.K=new Set;this.L=new Map;xA().subscribe("adactiveviewmeasurable",this.qp,this);xA().subscribe("adfullyviewableaudiblehalfdurationimpression",this.ju,this);xA().subscribe("adviewableimpression",this.YJ,this);xA().subscribe("adaudioaudible",this.EG,this);xA().subscribe("adaudiomeasurable",this.Bz,this)}; Km=function(X,J,L){var x=L.As,Q=L.sR,K=L.listener,q=L.sD;L=L.MX===void 0?!1:L.MX;if(X.L.has(J))qH("Unexpected registration of layout in LidarApi");else{if(q){if(X.K.has(q))return;X.K.add(q)}X.L.set(J,K);bB(x4().QO,"fmd",1);dEe(wR(N_),x);var D=L?J:void 0;Ncm(xA(),J,{mW:function(){if(!Q)return{};var C=X.Z.getPresentingPlayerType(!0),M;return(M=X.Z.getVideoData(C))!=null&&M.isAd()?{currentTime:X.wI.get().getCurrentTimeSec(C,!1,D),duration:Q,isPlaying:QN(X.wI.get(),C).isPlaying(),isVpaid:!1,isYouTube:!0, volume:X.wI.get().isMuted()?0:X.wI.get().getVolume()/100}:{}}})}}; q4=function(X,J){X.L.has(J)?(X.L.delete(J),delete xA().L[J]):qH("Unexpected unregistration of layout in LidarApi")}; mqe=function(X,J){if(X.Z.isLifaAdPlaying()){var L=X.Z.wg(!0,!0);X.zY(J,L.width*.5*1.1,L.height*.25*1.1,L.width*.5*.9,L.height*.5*.9)}}; A4v=function(X,J,L){var x={};kfA(X,x,J,L);Z6P(x);x.LACT=Is(function(){return a4().toString()}); x.VIS=Is(function(){return X.getVisibilityState().toString()}); x.SDKV="h.3.0";x.VOL=Is(function(){return X.isMuted()?"0":Math.round(X.getVolume()).toString()}); x.VED="";return x}; XYY=function(X,J){var L={};if(J||!X||!X.kind)return L;if(X.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||X.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!X.adTimeOffset||!X.adTimeOffset.offsetStartMilliseconds)return g.Sc(Error("malformed AdPlacementConfig")),L;L.MIDROLL_POS=Is(hw(Math.round(W_(X.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else L.MIDROLL_POS=Is(hw("0"));return L}; Is=function(X){return{toString:function(){return X()}}}; J0z=function(X,J,L){function x(D,C){(C=L[C])&&(K[D]=C)} function Q(D,C){(C=L[C])&&(K[D]=q(C))} if(!L||g.Mx(L))return X;var K=Object.assign({},X),q=J?encodeURIComponent:function(D){return D}; Q("DV_VIEWABILITY","doubleVerifyViewability");Q("IAS_VIEWABILITY","integralAdsViewability");Q("MOAT_INIT","moatInit");Q("MOAT_VIEWABILITY","moatViewability");x("GOOGLE_VIEWABILITY","googleViewability");x("VIEWABILITY","viewability");return K}; kfA=function(X,J,L,x){J.CPN=Is(function(){var Q;(Q=X.getVideoData(1))?Q=Q.clientPlaybackNonce:(g.PM(Error("Video data is null.")),Q=null);return Q}); J.AD_MT=Is(function(){if(x!=null)var Q=x;else{var K=L;X.G().Y("html5_ssap_use_cpn_to_get_time")||(K=void 0);if(X.G().Y("enable_h5_shorts_ad_fill_ad_mt_macro")||X.G().Y("enable_desktop_discovery_pings_ad_mt_macro")||g.gT(X.G())){var q=X.getPresentingPlayerType(!0),D;Q=((D=X.getVideoData(q))==null?0:D.isAd())?Lav(X,q,K):0}else Q=Lav(X,2,K)}return x$W(Q)}); J.MT=Is(function(){return x$W(X.getCurrentTime(1,!1))}); J.P_H=Is(function(){return X.t0().Lv().height.toString()}); J.P_W=Is(function(){return X.t0().Lv().width.toString()}); J.PV_H=Is(function(){return X.t0().getVideoContentRect().height.toString()}); J.PV_W=Is(function(){return X.t0().getVideoContentRect().width.toString()})}; x$W=function(X){return Math.round(Math.max(0,X*1E3)).toString()}; Z6P=function(X){X.CONN=Is(hw("0"));X.WT=Is(function(){return Date.now().toString()})}; Lav=function(X,J,L){return L!==void 0?X.getCurrentTime(J,!1,L):X.getCurrentTime(J,!1)}; iom=function(){}; Q7e=function(X,J,L,x,Q){var K,q,D,C,M,y,n,V,H,O,u,S,Y;g.p(function(h){switch(h.K){case 1:K=!!J.scrubReferrer;q=g.cN(J.baseUrl,J0z(L,K,x));D={};if(!J.headers){h.fm(2);break}C=X.T();if(!C.L){M=C.getValue();h.fm(3);break}return g.z(h,C.L,4);case 4:M=h.L;case 3:y=M;n=g.d(J.headers);for(V=n.next();!V.done;V=n.next())switch(H=V.value,H.headerType){case "VISITOR_ID":g.ly("VISITOR_DATA")&&(D["X-Goog-Visitor-Id"]=g.ly("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.ly("EOM_VISITOR_DATA")&&(D["X-Goog-EOM-Visitor-Id"]= g.ly("EOM_VISITOR_DATA"));break;case "USER_AUTH":y&&(D.Authorization="Bearer "+y);break;case "PLUS_PAGE_ID":(O=X.j())&&(D["X-Goog-PageId"]=O);break;case "AUTH_USER":u=X.L();!y&&u&&(D["X-Goog-AuthUser"]=u);break;case "DATASYNC_ID":if(S=void 0,(S=X.N())==null?0:S.Mi("enable_datasync_id_header_in_web_vss_pings"))Y=X.K(),xb(q)&&g.ly("LOGGED_IN")&&Y&&(D["X-YouTube-DataSync-Id"]=Y)}"X-Goog-EOM-Visitor-Id"in D&&"X-Goog-Visitor-Id"in D&&delete D["X-Goog-Visitor-Id"];case 2:g.zp(q,void 0,K,Object.keys(D).length!== 0?D:void 0,"",!0,Q),g.uv(h)}})}; Kae=function(X,J,L,x,Q){this.T=X;this.j=J;this.L=L;this.K=x;this.N=Q}; qhZ=function(X,J){this.L=X;this.h0=J}; go=function(X,J,L,x,Q,K,q){var D=D===void 0?new Kae(function(){var C=X.G(),M=X.getVideoData(1);return g.wT(C,M?g.X3(M):"")},function(){return X.G().pageId},function(){return X.G().Pl},function(){var C; return(C=X.G().datasyncId)!=null?C:""},function(){return X.G().experiments}):D; this.Z=X;this.K=J;this.ih=L;this.dI=x;this.qx=Q;this.h0=K;this.sV=q;this.T=D;this.Vm=null;this.L=new Map;this.N=new qhZ(D,this.h0)}; gpA=function(X,J,L,x,Q){var K=ks(X.K.get(),L);K?(L=VO(X,If8(K),K,void 0,void 0,x),J.hasOwnProperty("baseUrl")?X.T.send(J,L):X.N.send(J,L,{},Q)):qH("Trying to ping from an unknown layout",void 0,void 0,{layoutId:L})}; WjW=function(X,J,L,x,Q,K){x=x===void 0?[]:x;var q=ks(X.K.get(),J);if(q){var D=X.ih.get().OV(J,L),C=VO(X,If8(q),q,Q,K);x.forEach(function(M,y){M.baseUrl&&(X.N.send(M.baseUrl,C,D,M.attributionSrcMode),M.serializedAdPingMetadata&&X.qx.C7("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,q,new CVW(M,y),void 0,void 0,q.adLayoutLoggingData))})}else qH("Trying to track from an unknown layout.",void 0,void 0,{layoutId:J, trackingType:L})}; gV=function(X,J){X.Z.sendVideoStatsEngageEvent(J,void 0,2)}; Oz=function(X,J){g.QK("adsClientStateChange",J)}; D$I=function(X,J){X.L.has(J.nt())?qH("Trying to register an existing AdErrorInfoSupplier."):X.L.set(J.nt(),J)}; $$e=function(X,J){X.L.delete(J.nt())||qH("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; t5=function(X,J,L){typeof L==="string"?X.Z.getVideoData(1).fE(J,L):X.Z.getVideoData(1).Ni(J,L)}; If8=function(X){var J=Nf(X.clientMetadata,"metadata_type_ad_placement_config");X=Nf(X.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:J,Eb:X}}; VO=function(X,J,L,x,Q,K){var q=L?CUe(X):{},D=L?Mmz(X,L.layoutId):{},C=y0Y(X),M,y=Q!=null?Q:(M=vv(X.dI.get(),2))==null?void 0:M.clientPlaybackNonce;Q=void 0;if(L){var n;if((n=X.sV.L.get(L.layoutId))==null?0:n.MX)Q=L.layoutId}n={};X=Object.assign({},A4v(X.Z,Q,x),XYY(J.adPlacementConfig,(L==null?void 0:L.renderingContent)!==void 0),D,q,C,(n.FINAL=Is(function(){return"1"}),n.AD_CPN=Is(function(){return y||""}),n)); (L==null?void 0:L.renderingContent)!==void 0||(X.SLOT_POS=Is(function(){return(J.Eb||0).toString()})); L={};K=Object.assign({},X,K);X=g.d(Object.values(npe));for(x=X.next();!x.done;x=X.next())x=x.value,q=K[x],q!=null&&q.toString()!=null&&(L[x]=q.toString());return L}; CUe=function(X){var J={},L,x=(L=X.Vm)==null?void 0:L.yZ/1E3;x!=null&&(J.SURVEY_ELAPSED_MS=Is(function(){return Math.round(x*1E3).toString()})); J.SURVEY_LOCAL_TIME_EPOCH_S=Is(function(){return Math.round(Date.now()/1E3).toString()}); return J}; Mmz=function(X,J){X=X.L.get(J);if(!X)return{};X=X.Mb();if(!X)return{};J={};return J.YT_ERROR_CODE=X.Nc.toString(),J.ERRORCODE=X.nR.toString(),J.ERROR_MSG=X.errorMessage,J}; y0Y=function(X){var J={},L=X.Z.getVideoData(1);J.ASR=Is(function(){var x;return(x=L==null?void 0:L.Nn)!=null?x:null}); J.EI=Is(function(){var x;return(x=L==null?void 0:L.eventId)!=null?x:null}); return J}; Dh=function(X,J,L){g.G.call(this);this.Z=X;this.SZ=J;this.h0=L;this.listeners=[];this.Eh=null;this.NN=new Map;J=new g.dS(this);g.f(this,J);J.J(X,"videodatachange",this.FYB);J.J(X,"serverstitchedvideochange",this.CHE);this.gi=vv(this)}; vv=function(X,J){var L=X.Z.getVideoData(J);return L?X.M_(L,J||X.Z.getPresentingPlayerType(!0)):null}; VmR=function(X,J,L){var x=X.M_(J,L);X.gi=x;X.listeners.forEach(function(Q){Q.yv(x)})}; HoZ=function(X){switch(X){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}}; $A=function(X,J,L){g.G.call(this);this.Z=X;this.dI=J;this.h0=L;this.listeners=[];this.sU=[];this.L=function(){qH("Called 'doUnlockPreroll' before it's initialized.")}; J=new o2(this);L=new g.dS(this);g.f(this,L);g.f(this,J);J.J(X,"progresssync",this.V79);J.J(X,"presentingplayerstatechange",this.A_I);J.J(X,"fullscreentoggled",this.onFullscreenToggled);J.J(X,"onVolumeChange",this.onVolumeChange);J.J(X,"minimized",this.v5);J.J(X,"overlayvisibilitychange",this.dZ);J.J(X,"shortsadswipe",this.HJ);J.J(X,"resize",this.A_);L.J(X,g.sq("appad"),this.qs)}; Cm=function(X){Lm(X.h0.get())||X.L()}; Ooz=function(X,J){X.sU=X.sU.filter(function(L){return L!==J})}; M4=function(X,J,L){return X.getCurrentTimeSec(J,L)}; yN=function(X,J){var L;J=(L=X.dI.get().NN.get(J))!=null?L:null;if(J===null)return qH("Expected ad video start time on playback timeline"),0;X=X.Z.getCurrentTime(2,!0);return X0){var K=J.end.toString();Q.forEach(function(q){(q=q.config&&q.config.adPlacementConfig)&&q.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&q.adTimeOffset&&q.adTimeOffset.offsetEndMilliseconds==="-1"&&q.adTimeOffset.offsetEndMilliseconds!==K&&(q.adTimeOffset.offsetEndMilliseconds=K)}); x.map(function(q){return g.F(q,i5)}).forEach(function(q){var D; (q=q==null?void 0:(D=q.slotEntryTrigger)==null?void 0:D.mediaTimeRangeTrigger)&&q.offsetEndMilliseconds==="-1"&&(q.offsetEndMilliseconds=K)})}return{l8:Q, adSlots:x,O3:!1,ssdaiAdsConfig:X.ssdaiAdsConfig}}; as=function(X){g.G.call(this);this.Z=X;this.listeners=[];this.L=new o2(this);g.f(this,this.L);this.L.J(this.Z,"aduxclicked",this.onAdUxClicked);this.L.J(this.Z,"aduxmouseover",this.Co);this.L.J(this.Z,"aduxmouseout",this.XV);this.L.J(this.Z,"muteadaccepted",this.EqE)}; u8m=function(X,J,L){J=g.H5(J,function(x){return new ea8(x,L,x.id)}); X.Z.GH("onAdUxUpdate",J)}; wo=function(X,J){X=g.d(X.listeners);for(var L=X.next();!L.done;L=X.next())J(L.value)}; t6=function(X,J){this.K=X;this.N=J===void 0?!1:J;this.L={}}; op8=function(X,J){var L=X.startSecs+X.zR;L=L<=0?null:L;if(L===null)return null;switch(X.event){case "start":case "continue":case "stop":break;case "predictStart":if(J)break;return null;default:return null}J=Math.max(X.startSecs,0);return{nD:new wG(J,L),z8:new q1(J,L-J,X.context,X.identifier,X.event,X.L)}}; boY=function(){this.L=[]}; YLP=function(X,J,L){var x=g.eI(X.L,J);if(x>=0)return J;J=-x-1;return J>=X.L.length||X.L[J]>L?null:X.L[J]}; u1=function(X,J,L){g.G.call(this);this.Z=X;this.h0=J;this.ZY=L;this.listeners=[];this.T=!1;this.Xe=[];this.L=null;this.j=new t6(this,Tco(J.get()));this.N=new boY;this.K=null}; Sh8=function(X,J){X.Xe.push(J);for(var L=!1,x=g.d(X.listeners),Q=x.next();!Q.done;Q=x.next())L=Q.value.Ex(J)||L;X.T=L;FL(X.h0.get())&&t5(X.ZY.get(),"onci","cpi."+J.identifier+";cpe."+J.event+";cps."+J.startSecs+";cbi."+L)}; c0m=function(X,J){Oz(X.ZY.get(),{cuepointTrigger:{event:PUo(J.event),cuepointId:J.identifier,totalCueDurationMs:J.zR*1E3,playheadTimeMs:J.L,cueStartTimeMs:J.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:X.Z.getVideoData(1).clientPlaybackNonce}})}; PUo=function(X){switch(X){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 $0(X,"Unexpected cuepoint event")}}; os=function(X){this.Z=X}; b1=function(X){this.Z=X}; Epm=function(X){switch(X){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:$0(X,"unknown transitionReason")}}; Sn=function(){g.G.apply(this,arguments)}; YhS=function(X){this.Z=X}; hEZ=function(X,J,L,x,Q){g.G.call(this);var K=this,q=Eq(function(){return new Vc(K.h0)}); g.f(this,q);var D=Eq(function(){return new Op(q,K.h0)}); g.f(this,D);var C=Eq(function(){return new Uy}); g.f(this,C);var M=Eq(function(){return new sy(X)}); g.f(this,M);var y=Eq(function(){return new aK(q,D,K.h0)}); g.f(this,y);var n=Eq(function(){return new oK}); g.f(this,n);this.Nd=Eq(function(){return new as(J)}); g.f(this,this.Nd);this.v4=Eq(function(){return new h_(Q)}); g.f(this,this.v4);this.wQ=Eq(function(){return new k2(J)}); g.f(this,this.wQ);this.Ti=Eq(function(){return new ZK(J)}); g.f(this,this.Ti);this.fO=Eq(function(){return new AG(J)}); g.f(this,this.fO);this.Gi=Eq(function(){return new XI(J)}); g.f(this,this.Gi);this.h0=Eq(function(){return new J6(J)}); g.f(this,this.h0);var V=Eq(function(){return new O5(x)}); g.f(this,V);var H=Eq(function(){return new LD(K.h0)}); g.f(this,H);this.YM=Eq(function(){return new os(J)}); g.f(this,this.YM);this.C1=Eq(function(){return new pD}); g.f(this,this.C1);this.dI=Eq(function(){return new Dh(J,n,K.h0)}); g.f(this,this.dI);var O=UK({dI:this.dI,h0:this.h0,R0:H}),u=O.context,S=O.sV;this.qx=O.qx;this.Jj=Eq(function(){return new u1(J,K.h0,K.ZY)}); g.f(this,this.Jj);this.P9=Eq(function(){return new b1(J)}); g.f(this,this.P9);this.wI=Eq(function(){return new $A(J,K.dI,K.h0)}); g.f(this,this.wI);this.w2=Eq(function(){return new Sn}); g.f(this,this.w2);O=Eq(function(){return new jz(q,y,D,K.h0,H,"SLOT_TYPE_ABOVE_FEED",K.wI,K.mf,K.bU)}); g.f(this,O);this.ST=Eq(function(){return new rQ(K.h0)}); this.ih=Eq(function(){return new i1(K.wI,J,K.h0)}); g.f(this,this.ih);this.ZY=Eq(function(){return new go(J,C,K.ih,K.dI,K.qx,K.h0,S)}); g.f(this,this.ZY);this.Hf=new R8(l5,Po,function(h,W,T,l){return a8(D.get(),h,W,T,l)},M,y,D,H,this.h0,this.dI); g.f(this,this.Hf);this.hj=new BZ(M,O,L,this.h0,X,this.dI,this.wI,this.wQ);g.f(this,this.hj);var Y=new mg(J,this.hj,this.wI,this.dI,this.Jj);this.Ed=Eq(function(){return Y}); this.d3=Y;this.mf=new fB(M,y,this.Ed,this.Jj,this.wI,this.h0,this.ZY,this.P9);g.f(this,this.mf);this.Ud=new Na(M,y,this.Ti,this.Ed,u);g.f(this,this.Ud);this.f3=new xs(this.h0,M,y,O,this.dI,this.Ud,L,this.fO);g.f(this,this.f3);this.De=Eq(function(){return new XP(V,D,H,K.h0,K.ZY,K.wI,K.P9)}); g.f(this,this.De);this.iU=Eq(function(){return new JM}); g.f(this,this.iU);this.Kn=new Lh(X,this.Nd,this.h0);g.f(this,this.Kn);this.Mx=new x5(X);g.f(this,this.Mx);this.hU=new iP(X);g.f(this,this.hU);this.W5=new Kh(X,this.Ed,u);g.f(this,this.W5);this.GK=new qt(X,this.Ti,this.wI,this.dI,u);g.f(this,this.GK);this.u5=new IK(X,this.dI);g.f(this,this.u5);this.bU=new $5(X,this.Jj,this.wI,this.ZY,this.Ed);g.f(this,this.bU);this.PO=new gK(X);g.f(this,this.PO);this.vv=new nh(X);g.f(this,this.vv);this.Y6=new DY(X);g.f(this,this.Y6);this.zr=new yc(X);g.f(this,this.zr); this.vv=new nh(X);g.f(this,this.vv);this.LY=Eq(function(){return new ZW}); g.f(this,this.LY);this.Wf=Eq(function(){return new AE(K.wI)}); g.f(this,this.Wf);this.HE=Eq(function(){return new X1S(K.Nd,K.ZY,X,C,K.ih)}); g.f(this,this.HE);this.l6=Eq(function(){return new TX(K.f3,M,q)}); g.f(this,this.l6);this.N0=Eq(function(){return new er(K.h0,K.ZY,K.PO,K.ih)}); g.f(this,this.N0);this.Ik=Eq(function(){return new ck(X,K.vv,K.PO,K.dI,K.P9,K.wI,K.w2,K.ZY,n,K.Jj,K.ih,K.ST,K.fO,K.Ti,K.wQ,K.Gi,K.v4,K.YM,K.h0,C,u,S)}); g.f(this,this.Ik);this.Xp=Eq(function(){return new yCY(K.wI,K.ZY,K.v4,K.h0,K.ih,K.dI)}); g.f(this,this.Xp);this.D9=Eq(function(){return new JtP(K.Nd,K.wI,K.ZY,C,K.ih,K.hU,K.zr,K.v4,K.h0,L)}); g.f(this,this.D9);this.Si=Eq(function(){return new JCY(K.Nd,K.ZY,C)}); g.f(this,this.Si);this.yu=new Ho(X,this.C1,q);g.f(this,this.yu);this.qr={AE:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.f3],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.mf],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Hf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.hj],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ud]]),j5:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.De],["SLOT_TYPE_ABOVE_FEED",this.iU],["SLOT_TYPE_FORECASTING",this.iU], ["SLOT_TYPE_IN_PLAYER",this.iU],["SLOT_TYPE_PLAYER_BYTES",this.iU],["SLOT_TYPE_PLAYER_UNDERLAY",this.iU],["SLOT_TYPE_PLAYBACK_TRACKING",this.iU],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.iU]]),sX:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Kn],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Kn],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Mx],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Mx],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Mx],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Mx],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.Mx],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Mx],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Mx],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Mx],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Mx],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Mx],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Mx],["TRIGGER_TYPE_CLOSE_REQUESTED",this.hU],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.W5],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.GK],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.GK],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.GK],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.GK],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.GK],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.GK],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.GK],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.u5],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.u5],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.PO],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.W5],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Y6],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.zr],["TRIGGER_TYPE_AD_BREAK_STARTED",this.vv],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.bU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.bU],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.bU],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.bU],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.bU]]),L6:new Map([["SLOT_TYPE_ABOVE_FEED",this.LY], ["SLOT_TYPE_AD_BREAK_REQUEST",this.LY],["SLOT_TYPE_FORECASTING",this.LY],["SLOT_TYPE_IN_PLAYER",this.LY],["SLOT_TYPE_PLAYER_BYTES",this.Wf],["SLOT_TYPE_PLAYER_UNDERLAY",this.LY],["SLOT_TYPE_PLAYBACK_TRACKING",this.LY],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.LY]]),PP:new Map([["SLOT_TYPE_ABOVE_FEED",this.HE],["SLOT_TYPE_AD_BREAK_REQUEST",this.l6],["SLOT_TYPE_FORECASTING",this.N0],["SLOT_TYPE_PLAYER_BYTES",this.Ik],["SLOT_TYPE_PLAYBACK_TRACKING",this.Xp],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.Xp],["SLOT_TYPE_IN_PLAYER",this.D9],["SLOT_TYPE_PLAYER_UNDERLAY",this.Si]])};this.listeners=[C.get()];this.q7={f3:this.f3,uW:this.h0.get(),oB:this.v4.get(),KE:this.wI.get(),hj:this.hj,oP:q.get(),wH:this.C1.get(),DS:this.Kn,jR:C.get(),AO:this.dI.get()}}; zEm=function(X,J,L,x,Q){g.G.call(this);var K=this,q=Eq(function(){return new Vc(K.h0)}); g.f(this,q);var D=Eq(function(){return new Op(q,K.h0)}); g.f(this,D);var C=Eq(function(){return new Uy}); g.f(this,C);var M=Eq(function(){return new sy(X)}); g.f(this,M);var y=Eq(function(){return new aK(q,D,K.h0)}); g.f(this,y);var n=Eq(function(){return new oK}); g.f(this,n);this.Nd=Eq(function(){return new as(J)}); g.f(this,this.Nd);this.v4=Eq(function(){return new h_(Q)}); g.f(this,this.v4);this.wQ=Eq(function(){return new k2(J)}); g.f(this,this.wQ);this.Ti=Eq(function(){return new ZK(J)}); g.f(this,this.Ti);this.fO=Eq(function(){return new AG(J)}); g.f(this,this.fO);this.Gi=Eq(function(){return new XI(J)}); g.f(this,this.Gi);this.h0=Eq(function(){return new J6(J)}); g.f(this,this.h0);var V=Eq(function(){return new O5(x)}); g.f(this,V);var H=Eq(function(){return new LD(K.h0)}); g.f(this,H);var O=Eq(function(){return new jz(q,y,D,K.h0,H,null,null,K.mf,K.bU)}); g.f(this,O);this.YM=Eq(function(){return new os(J)}); g.f(this,this.YM);this.C1=Eq(function(){return new pD}); g.f(this,this.C1);this.dI=Eq(function(){return new Dh(J,n,K.h0)}); g.f(this,this.dI);var u=UK({dI:this.dI,h0:this.h0,R0:H}),S=u.context,Y=u.sV;this.qx=u.qx;this.Jj=Eq(function(){return new u1(J,K.h0,K.ZY)}); this.wI=Eq(function(){return new $A(J,K.dI,K.h0)}); g.f(this,this.wI);this.w2=Eq(function(){return new Sn}); g.f(this,this.w2);this.ih=Eq(function(){return new i1(K.wI,J,K.h0)}); g.f(this,this.ih);this.ZY=Eq(function(){return new go(J,C,K.ih,K.dI,K.qx,K.h0,Y)}); g.f(this,this.ZY);this.ST=Eq(function(){return new rQ(K.h0)}); g.f(this,this.ST);this.Hf=new R8(l5,Po,function(W,T,l,Jo){return a8(D.get(),W,T,l,Jo)},M,y,D,H,this.h0,this.dI); g.f(this,this.Hf);this.hj=new BZ(M,O,L,this.h0,X,this.dI,this.wI,this.wQ);g.f(this,this.hj);var h=new mg(J,this.hj,this.wI,this.dI,this.Jj);this.Ed=Eq(function(){return h}); this.d3=h;this.mf=new fB(M,y,this.Ed,this.Jj,this.wI,this.h0,this.ZY);g.f(this,this.mf);this.Ud=new Na(M,y,this.Ti,this.Ed,S);g.f(this,this.Ud);this.f3=new xs(this.h0,M,y,O,this.dI,this.Ud,L,this.fO);g.f(this,this.f3);this.De=Eq(function(){return new XP(V,D,H,K.h0,K.ZY,K.wI)}); g.f(this,this.De);this.iU=Eq(function(){return new JM}); g.f(this,this.iU);this.Kn=new Lh(X,this.Nd,this.h0);g.f(this,this.Kn);this.Mx=new x5(X);g.f(this,this.Mx);this.hU=new iP(X);g.f(this,this.hU);this.W5=new Kh(X,this.Ed,S);g.f(this,this.W5);this.GK=new qt(X,this.Ti,this.wI,this.dI,S);g.f(this,this.GK);this.PO=new gK(X);g.f(this,this.PO);this.Y6=new DY(X);g.f(this,this.Y6);this.zr=new yc(X);g.f(this,this.zr);this.P9=Eq(function(){return new b1(J)}); g.f(this,this.P9);this.vv=new nh(X);g.f(this,this.vv);this.bU=new $5(X,this.Jj,this.wI,this.ZY,this.Ed);g.f(this,this.bU);this.LY=Eq(function(){return new ZW}); g.f(this,this.LY);this.Wf=Eq(function(){return new AE(K.wI)}); g.f(this,this.Wf);this.l6=Eq(function(){return new TX(K.f3,M,q)}); g.f(this,this.l6);this.N0=Eq(function(){return new er(K.h0,K.ZY,K.PO,K.ih)}); g.f(this,this.N0);this.D9=Eq(function(){return new LbA(K.Nd,K.wI,K.ZY,C,K.ih,K.hU,K.zr,K.v4,K.h0,L)}); g.f(this,this.D9);this.Ik=Eq(function(){return new Ez(X,K.vv,K.PO,K.ZY,K.ih,K.ST,K.fO,K.dI,K.wI,K.w2,K.Ti,K.wQ,K.Gi,K.v4,K.YM,K.h0,K.P9,S,Y)}); g.f(this,this.Ik);this.yu=new Ho(X,this.C1,q);g.f(this,this.yu);this.qr={AE:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.f3],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.mf],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Hf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.hj],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ud]]),j5:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.De],["SLOT_TYPE_FORECASTING",this.iU],["SLOT_TYPE_IN_PLAYER",this.iU], ["SLOT_TYPE_PLAYER_BYTES",this.iU]]),sX:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Kn],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Mx],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Mx],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Mx],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Mx],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Mx],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Mx],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Mx],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Mx],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Mx], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Mx],["TRIGGER_TYPE_CLOSE_REQUESTED",this.hU],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.W5],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.GK],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.GK],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.GK],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.PO],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.W5],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Y6],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.zr],["TRIGGER_TYPE_AD_BREAK_STARTED",this.vv],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.bU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.bU],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.bU],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.bU],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.bU]]),L6:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.LY],["SLOT_TYPE_FORECASTING",this.LY],["SLOT_TYPE_IN_PLAYER",this.LY],["SLOT_TYPE_PLAYER_BYTES",this.Wf]]), PP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.l6],["SLOT_TYPE_FORECASTING",this.N0],["SLOT_TYPE_IN_PLAYER",this.D9],["SLOT_TYPE_PLAYER_BYTES",this.Ik]])};this.listeners=[C.get()];this.q7={f3:this.f3,uW:this.h0.get(),oB:this.v4.get(),KE:this.wI.get(),hj:this.hj,oP:q.get(),wH:this.C1.get(),DS:this.Kn,jR:C.get(),AO:this.dI.get()}}; WaA=function(X,J,L,x,Q){g.G.call(this);var K=this,q=Eq(function(){return new Vc(K.h0)}); g.f(this,q);var D=Eq(function(){return new Op(q,K.h0)}); g.f(this,D);var C=Eq(function(){return new Uy}); g.f(this,C);var M=Eq(function(){return new sy(X)}); g.f(this,M);var y=Eq(function(){return new aK(q,D,K.h0)}); g.f(this,y);var n=Eq(function(){return new oK}); g.f(this,n);this.Nd=Eq(function(){return new as(J)}); g.f(this,this.Nd);this.v4=Eq(function(){return new h_(Q)}); g.f(this,this.v4);this.wQ=Eq(function(){return new k2(J)}); g.f(this,this.wQ);this.Ti=Eq(function(){return new ZK(J)}); g.f(this,this.Ti);this.fO=Eq(function(){return new AG(J)}); g.f(this,this.fO);this.Gi=Eq(function(){return new XI(J)}); g.f(this,this.Gi);this.h0=Eq(function(){return new J6(J)}); g.f(this,this.h0);var V=Eq(function(){return new O5(x)}); g.f(this,V);var H=Eq(function(){return new LD(K.h0)}); g.f(this,H);var O=Eq(function(){return new jz(q,y,D,K.h0,H,null,null,null,null)}); g.f(this,O);this.YM=Eq(function(){return new os(J)}); g.f(this,this.YM);this.dI=Eq(function(){return new Dh(J,n,K.h0)}); g.f(this,this.dI);var u=UK({dI:this.dI,h0:this.h0,R0:H}),S=u.context,Y=u.sV;this.qx=u.qx;this.wI=Eq(function(){return new $A(J,K.dI,K.h0)}); g.f(this,this.wI);this.w2=Eq(function(){return new Sn}); g.f(this,this.w2);this.ih=Eq(function(){return new i1(K.wI,J,K.h0)}); g.f(this,this.ih);this.ZY=Eq(function(){return new go(J,C,K.ih,K.dI,K.qx,K.h0,Y)}); g.f(this,this.ZY);this.ST=Eq(function(){return new rQ(K.h0)}); g.f(this,this.ST);this.Hf=new R8(l5,Po,function(W,T,l,Jo){return a8(D.get(),W,T,l,Jo)},M,y,D,H,this.h0,this.dI); g.f(this,this.Hf);this.hj=new BZ(M,O,L,this.h0,X,this.dI,this.wI,this.wQ);g.f(this,this.hj);var h=new mg(J,this.hj,this.wI,this.dI);this.Ed=Eq(function(){return h}); this.d3=h;this.Ud=new Na(M,y,this.Ti,this.Ed,S);g.f(this,this.Ud);this.f3=new xs(this.h0,M,y,O,this.dI,this.Ud,L,this.fO);g.f(this,this.f3);this.De=Eq(function(){return new XP(V,D,H,K.h0,K.ZY,K.wI)}); g.f(this,this.De);this.iU=Eq(function(){return new JM}); g.f(this,this.iU);this.Kn=new Lh(X,this.Nd,this.h0);g.f(this,this.Kn);this.Mx=new x5(X);g.f(this,this.Mx);this.W5=new Kh(X,this.Ed,S);g.f(this,this.W5);this.GK=new qt(X,this.Ti,this.wI,this.dI,S);g.f(this,this.GK);this.PO=new gK(X);g.f(this,this.PO);this.Y6=new DY(X);g.f(this,this.Y6);this.P9=Eq(function(){return new b1(J)}); g.f(this,this.P9);this.vv=new nh(X);g.f(this,this.vv);this.LY=Eq(function(){return new ZW}); g.f(this,this.LY);this.Wf=Eq(function(){return new AE(K.wI)}); g.f(this,this.Wf);this.l6=Eq(function(){return new TX(K.f3,M,q)}); g.f(this,this.l6);this.N0=Eq(function(){return new er(K.h0,K.ZY,K.PO,K.ih)}); g.f(this,this.N0);this.pk=Eq(function(){return new MlY(K.Nd,K.wI,K.ZY,C,L,K.h0)}); g.f(this,this.pk);this.Ik=Eq(function(){return new Ez(X,K.vv,K.PO,K.ZY,K.ih,K.ST,K.fO,K.dI,K.wI,K.w2,K.Ti,K.wQ,K.Gi,K.v4,K.YM,K.h0,K.P9,S,Y)}); g.f(this,this.Ik);this.qr={AE:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.f3],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Hf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.hj],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ud]]),j5:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.De],["SLOT_TYPE_FORECASTING",this.iU],["SLOT_TYPE_IN_PLAYER",this.iU],["SLOT_TYPE_PLAYER_BYTES",this.iU]]),sX:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Kn],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Mx],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Mx],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Mx],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Mx],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Mx],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Mx],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Mx],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Mx],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Mx],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.W5],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.GK],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.GK],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.PO],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.W5],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Y6],["TRIGGER_TYPE_AD_BREAK_STARTED",this.vv]]),L6:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.LY],["SLOT_TYPE_ABOVE_FEED",this.LY],["SLOT_TYPE_FORECASTING",this.LY],["SLOT_TYPE_IN_PLAYER",this.LY],["SLOT_TYPE_PLAYER_BYTES",this.Wf]]),PP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.l6],["SLOT_TYPE_FORECASTING",this.N0],["SLOT_TYPE_IN_PLAYER", this.pk],["SLOT_TYPE_PLAYER_BYTES",this.Ik]])};this.listeners=[C.get()];this.q7={f3:this.f3,uW:this.h0.get(),oB:this.v4.get(),KE:this.wI.get(),hj:this.hj,oP:q.get(),wH:null,DS:this.Kn,jR:C.get(),AO:this.dI.get()}}; pYW=function(X,J,L,x,Q){g.G.call(this);var K=this,q=Eq(function(){return new Vc(K.h0)}); g.f(this,q);var D=Eq(function(){return new Op(q,K.h0)}); g.f(this,D);var C=Eq(function(){return new Uy}); g.f(this,C);var M=Eq(function(){return new sy(X)}); g.f(this,M);var y=Eq(function(){return new aK(q,D,K.h0)}); g.f(this,y);var n=Eq(function(){return new oK}); g.f(this,n);this.K1=Eq(function(){return new YhS(J)}); g.f(this,this.K1);this.Nd=Eq(function(){return new as(J)}); g.f(this,this.Nd);this.v4=Eq(function(){return new h_(Q)}); g.f(this,this.v4);this.wQ=Eq(function(){return new k2(J)}); g.f(this,this.wQ);this.Ti=Eq(function(){return new ZK(J)}); g.f(this,this.Ti);this.fO=Eq(function(){return new AG(J)}); g.f(this,this.fO);this.Gi=Eq(function(){return new XI(J)}); g.f(this,this.Gi);this.h0=Eq(function(){return new J6(J)}); g.f(this,this.h0);var V=Eq(function(){return new O5(x)}); g.f(this,V);var H=Eq(function(){return new LD(K.h0)}); g.f(this,H);var O=Eq(function(){return new jz(q,y,D,K.h0,H,null,null,null,null)}); g.f(this,O);this.YM=Eq(function(){return new os(J)}); g.f(this,this.YM);this.dI=Eq(function(){return new Dh(J,n,K.h0)}); g.f(this,this.dI);var u=UK({dI:this.dI,h0:this.h0,R0:H}),S=u.context,Y=u.sV;this.qx=u.qx;this.wI=Eq(function(){return new $A(J,K.dI,K.h0)}); g.f(this,this.wI);this.w2=Eq(function(){return new Sn}); g.f(this,this.w2);this.ih=Eq(function(){return new i1(K.wI,J,K.h0)}); g.f(this,this.ih);this.ZY=Eq(function(){return new go(J,C,K.ih,K.dI,K.qx,K.h0,Y)}); g.f(this,this.ZY);this.ST=Eq(function(){return new rQ(K.h0)}); g.f(this,this.ST);this.Hf=new R8(ecP,Po,function(W,T,l,Jo){return $fo(D.get(),W,T,l,Jo)},M,y,D,H,this.h0,this.dI); g.f(this,this.Hf);this.hj=new BZ(M,O,L,this.h0,X,this.dI,this.wI,this.wQ);g.f(this,this.hj);var h=new mg(J,this.hj,this.wI,this.dI);this.Ed=Eq(function(){return h}); this.d3=h;this.Ud=new Na(M,y,this.Ti,this.Ed,S);g.f(this,this.Ud);this.f3=new xs(this.h0,M,y,O,this.dI,this.Ud,L,this.fO);g.f(this,this.f3);this.De=Eq(function(){return new XP(V,D,H,K.h0,K.ZY,K.wI)}); g.f(this,this.De);this.iU=Eq(function(){return new JM}); g.f(this,this.iU);this.Kn=new Lh(X,this.Nd,this.h0);g.f(this,this.Kn);this.Mx=new x5(X);g.f(this,this.Mx);this.W5=new Kh(X,this.Ed,S);g.f(this,this.W5);this.GK=new qt(X,this.Ti,this.wI,this.dI,S);g.f(this,this.GK);this.PO=new gK(X);g.f(this,this.PO);this.Y6=new DY(X);g.f(this,this.Y6);this.P9=Eq(function(){return new b1(J)}); g.f(this,this.P9);this.vv=new nh(X);g.f(this,this.vv);this.LY=Eq(function(){return new ZW}); g.f(this,this.LY);this.Wf=Eq(function(){return new AE(K.wI)}); g.f(this,this.Wf);this.l6=Eq(function(){return new TX(K.f3,M,q)}); g.f(this,this.l6);this.N0=Eq(function(){return new er(K.h0,K.ZY,K.PO,K.ih)}); g.f(this,this.N0);this.Ik=Eq(function(){return new Ez(X,K.vv,K.PO,K.ZY,K.ih,K.ST,K.fO,K.dI,K.wI,K.w2,K.Ti,K.wQ,K.Gi,K.v4,K.YM,K.h0,K.P9,S,Y)}); g.f(this,this.Ik);this.u7=Eq(function(){return new iF8(K.Nd,K.wI,K.ZY,C,K.K1,L,K.dI)}); g.f(this,this.u7);this.qr={AE:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.f3],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Hf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.hj],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ud]]),j5:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.De],["SLOT_TYPE_FORECASTING",this.iU],["SLOT_TYPE_IN_PLAYER",this.iU],["SLOT_TYPE_PLAYER_BYTES",this.iU]]),sX:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Kn],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Mx],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Mx],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Mx],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Mx],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Mx],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Mx],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Mx],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Mx],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Mx],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.W5],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.GK],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.GK],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.PO],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.W5],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Y6],["TRIGGER_TYPE_AD_BREAK_STARTED",this.vv]]),L6:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.LY],["SLOT_TYPE_FORECASTING",this.LY],["SLOT_TYPE_IN_PLAYER",this.LY],["SLOT_TYPE_PLAYER_BYTES",this.Wf]]),PP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.l6],["SLOT_TYPE_FORECASTING",this.N0],["SLOT_TYPE_IN_PLAYER",this.u7],["SLOT_TYPE_PLAYER_BYTES", this.Ik]])};this.listeners=[C.get()];this.q7={f3:this.f3,uW:this.h0.get(),oB:this.v4.get(),KE:this.wI.get(),hj:this.hj,oP:q.get(),wH:null,DS:this.Kn,jR:C.get(),AO:this.dI.get()}}; r0e=function(X,J,L,x,Q){g.G.call(this);var K=this,q=Eq(function(){return new Vc(K.h0)}); g.f(this,q);var D=Eq(function(){return new Op(q,K.h0)}); g.f(this,D);var C=Eq(function(){return new Uy}); g.f(this,C);var M=Eq(function(){return new sy(X)}); g.f(this,M);var y=Eq(function(){return new aK(q,D,K.h0)}); g.f(this,y);var n=Eq(function(){return new oK}); g.f(this,n);this.K1=Eq(function(){return new YhS(J)}); g.f(this,this.K1);this.Nd=Eq(function(){return new as(J)}); g.f(this,this.Nd);this.v4=Eq(function(){return new h_(Q)}); g.f(this,this.v4);this.wQ=Eq(function(){return new k2(J)}); g.f(this,this.wQ);this.Ti=Eq(function(){return new ZK(J)}); g.f(this,this.Ti);this.fO=Eq(function(){return new AG(J)}); g.f(this,this.fO);this.Gi=Eq(function(){return new XI(J)}); g.f(this,this.Gi);this.h0=Eq(function(){return new J6(J)}); g.f(this,this.h0);var V=Eq(function(){return new O5(x)}); g.f(this,V);var H=Eq(function(){return new LD(K.h0)}); g.f(this,H);this.YM=Eq(function(){return new os(J)}); g.f(this,this.YM);this.dI=Eq(function(){return new Dh(J,n,K.h0)}); g.f(this,this.dI);var O=UK({dI:this.dI,h0:this.h0,R0:H}),u=O.context,S=O.sV;this.qx=O.qx;this.Jj=Eq(function(){return new u1(J,K.h0,K.ZY)}); g.f(this,this.Jj);this.P9=Eq(function(){return new b1(J)}); g.f(this,this.P9);this.wI=Eq(function(){return new $A(J,K.dI,K.h0)}); g.f(this,this.wI);this.w2=Eq(function(){return new Sn}); g.f(this,this.w2);O=Eq(function(){return new jz(q,y,D,K.h0,H,null,K.wI,K.mf,K.bU,3)}); g.f(this,O);this.ST=Eq(function(){return new rQ(K.h0)}); this.ih=Eq(function(){return new i1(K.wI,J,K.h0)}); g.f(this,this.ih);this.ZY=Eq(function(){return new go(J,C,K.ih,K.dI,K.qx,K.h0,S)}); g.f(this,this.ZY);this.hj=new BZ(M,O,L,this.h0,X,this.dI,this.wI,this.wQ);g.f(this,this.hj);var Y=new mg(J,this.hj,this.wI,this.dI,this.Jj);this.Ed=Eq(function(){return Y}); this.d3=Y;this.Hf=new R8(FSe,Po,function(h,W,T,l){return $fo(D.get(),h,W,T,l)},M,y,D,H,this.h0,this.dI); g.f(this,this.Hf);this.mf=new fB(M,y,this.Ed,this.Jj,this.wI,this.h0,this.ZY,this.P9);g.f(this,this.mf);this.Ud=new Na(M,y,this.Ti,this.Ed,u);g.f(this,this.Ud);this.f3=new xs(this.h0,M,y,O,this.dI,this.Ud,L,this.fO);g.f(this,this.f3);this.De=Eq(function(){return new XP(V,D,H,K.h0,K.ZY,K.wI,K.P9)}); g.f(this,this.De);this.iU=Eq(function(){return new JM}); g.f(this,this.iU);this.Kn=new Lh(X,this.Nd,this.h0);g.f(this,this.Kn);this.Mx=new x5(X);g.f(this,this.Mx);this.W5=new Kh(X,this.Ed,u);g.f(this,this.W5);this.GK=new qt(X,this.Ti,this.wI,this.dI,u);g.f(this,this.GK);this.u5=new IK(X,this.dI);g.f(this,this.u5);this.bU=new $5(X,this.Jj,this.wI,this.ZY,this.Ed);g.f(this,this.bU);this.PO=new gK(X);g.f(this,this.PO);this.Y6=new DY(X);g.f(this,this.Y6);this.vv=new nh(X);g.f(this,this.vv);this.LY=Eq(function(){return new ZW}); g.f(this,this.LY);this.Wf=Eq(function(){return new AE(K.wI)}); g.f(this,this.Wf);this.l6=Eq(function(){return new TX(K.f3,M,q)}); g.f(this,this.l6);this.N0=Eq(function(){return new er(K.h0,K.ZY,K.PO,K.ih)}); g.f(this,this.N0);this.Ik=Eq(function(){return new ck(X,K.vv,K.PO,K.dI,K.P9,K.wI,K.w2,K.ZY,n,K.Jj,K.ih,K.ST,K.fO,K.Ti,K.wQ,K.Gi,K.v4,K.YM,K.h0,C,u,S)}); g.f(this,this.Ik);this.D9=Eq(function(){return new Qom(K.Nd,K.wI,K.ZY,C,K.K1,L,K.h0,K.dI)}); g.f(this,this.D9);this.qr={AE:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.f3],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.mf],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Hf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.hj],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ud]]),j5:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.De],["SLOT_TYPE_FORECASTING",this.iU],["SLOT_TYPE_IN_PLAYER",this.iU],["SLOT_TYPE_PLAYER_BYTES",this.iU]]),sX:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.Kn],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Mx],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Mx],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Mx],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Mx],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Mx],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Mx],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Mx],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Mx],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Mx],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.W5],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.GK],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.GK],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.u5],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.u5],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.PO],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.W5],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Y6],["TRIGGER_TYPE_AD_BREAK_STARTED",this.vv],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.bU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.bU],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.bU],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.bU],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.bU]]),L6:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.LY],["SLOT_TYPE_FORECASTING",this.LY],["SLOT_TYPE_IN_PLAYER",this.LY],["SLOT_TYPE_PLAYER_BYTES",this.Wf]]),PP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.l6],["SLOT_TYPE_FORECASTING",this.N0],["SLOT_TYPE_PLAYER_BYTES",this.Ik],["SLOT_TYPE_IN_PLAYER",this.D9]])};this.listeners=[C.get()]; this.q7={f3:this.f3,uW:this.h0.get(),oB:this.v4.get(),KE:this.wI.get(),hj:this.hj,oP:q.get(),wH:null,DS:this.Kn,jR:C.get(),AO:this.dI.get()}}; j7P=function(X,J,L,x){function Q(){return K.K} g.G.call(this);var K=this;X.G().experiments.Mi("html5_dispose_of_manager_before_dependency")?(this.L=vpP(Q,X,J,L,x),this.K=(new YB(this.L)).N(),g.f(this,this.K),g.f(this,this.L)):(this.L=vpP(Q,X,J,L,x),g.f(this,this.L),this.K=(new YB(this.L)).N(),g.f(this,this.K))}; co=function(X){return X.L.q7}; vpP=function(X,J,L,x,Q){try{var K=J.G();if(g.$3(K))var q=new hEZ(X,J,L,x,Q);else if(g.yH(K))q=new zEm(X,J,L,x,Q);else if(x3(K))q=new WaA(X,J,L,x,Q);else if(g.ze(K))q=new pYW(X,J,L,x,Q);else if(g.kH(K))q=new r0e(X,J,L,x,Q);else throw new TypeError("Unknown web interface");return q}catch(D){return q=J.G(),qH("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:q.L.cplatform,interface:q.L.c,sg6:q.L.cver,b7i:q.L.ctheme,nAB:q.L.cplayer,dfq:q.playerStyle}),new tmm(X,J,L,x,Q)}}; Tpm=function(X){G2.call(this,X)}; GYO=function(X,J,L,x,Q){Ny.call(this,X,{V:"div",U:"ytp-ad-timed-pie-countdown-container",C:[{V:"svg",U:"ytp-ad-timed-pie-countdown",X:{viewBox:"0 0 20 20"},C:[{V:"circle",U:"ytp-ad-timed-pie-countdown-background",X:{r:"10",cx:"10",cy:"10"}},{V:"circle",U:"ytp-ad-timed-pie-countdown-inner",X:{r:"5",cx:"10",cy:"10"}},{V:"circle",U:"ytp-ad-timed-pie-countdown-outer",X:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",J,L,x,Q);this.T=this.kq("ytp-ad-timed-pie-countdown-container");this.N=this.kq("ytp-ad-timed-pie-countdown-inner"); this.B=this.kq("ytp-ad-timed-pie-countdown-outer");this.K=Math.ceil(2*Math.PI*5);this.hide()}; ff8=function(X,J,L,x,Q,K){IO.call(this,X,{V:"div",U:"ytp-ad-action-interstitial",X:{tabindex:"0"},C:[{V:"div",U:"ytp-ad-action-interstitial-background-container"},{V:"div",U:"ytp-ad-action-interstitial-slot",C:[{V:"div",U:"ytp-ad-action-interstitial-instream-info"},{V:"div",U:"ytp-ad-action-interstitial-card",C:[{V:"div",U:"ytp-ad-action-interstitial-image-container"},{V:"div",U:"ytp-ad-action-interstitial-headline-container"},{V:"div",U:"ytp-ad-action-interstitial-description-container"},{V:"div", U:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",J,L,x);this.KN=Q;this.Vb=K;this.navigationEndpoint=this.L=this.skipButton=this.K=this.actionButton=null;this.jC=this.kq("ytp-ad-action-interstitial-instream-info");this.vl=this.kq("ytp-ad-action-interstitial-image-container");this.D=new rh(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,"ytp-ad-action-interstitial-image");g.f(this,this.D);this.D.zH(this.vl);this.gI=this.kq("ytp-ad-action-interstitial-headline-container"); this.B=new B1(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,"ytp-ad-action-interstitial-headline");g.f(this,this.B);this.B.zH(this.gI);this.aB=this.kq("ytp-ad-action-interstitial-description-container");this.N=new B1(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,"ytp-ad-action-interstitial-description");g.f(this,this.N);this.N.zH(this.aB);this.O6=this.kq("ytp-ad-action-interstitial-background-container");this.Hl=new rh(this.api,this.layoutId,this.interactionLoggingClientData, this.oB,"ytp-ad-action-interstitial-background",!0);g.f(this,this.Hl);this.Hl.zH(this.O6);this.J0=this.kq("ytp-ad-action-interstitial-action-button-container");this.slot=this.kq("ytp-ad-action-interstitial-slot");this.WO=this.kq("ytp-ad-action-interstitial-card");this.T=new o2;g.f(this,this.T);this.hide()}; eES=function(X){var J=g.qG("html5-video-player");J&&g.q8(J,"ytp-ad-display-override",X)}; BpR=function(X,J,L,x){IO.call(this,X,{V:"div",U:"ytp-ad-overlay-slot",C:[{V:"div",U:"ytp-ad-overlay-container"}]},"invideo-overlay",J,L,x);this.D=[];this.O6=this.gI=this.T=this.J0=this.jC=null;this.Hl=!1;this.B=null;this.aB=0;X=this.kq("ytp-ad-overlay-container");this.vl=new LX(X,45E3,6E3,.3,.4);g.f(this,this.vl);this.N=Fam(this);g.f(this,this.N);this.N.zH(X);this.K=lfe(this);g.f(this,this.K);this.K.zH(X);this.L=REo(this);g.f(this,this.L);this.L.zH(X);this.hide()}; Fam=function(X){var J=new g.qy({V:"div",U:"ytp-ad-text-overlay",C:[{V:"div",U:"ytp-ad-overlay-ad-info-button-container"},{V:"div",U:"ytp-ad-overlay-close-container",C:[{V:"button",U:"ytp-ad-overlay-close-button",C:[P1(s7I)]}]},{V:"div",U:"ytp-ad-overlay-title",iB:"{{title}}"},{V:"div",U:"ytp-ad-overlay-desc",iB:"{{description}}"},{V:"div",Ql:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],iB:"{{displayUrl}}"}]});X.J(J.kq("ytp-ad-overlay-title"),"click",function(L){E5(X,J.element,L)}); X.J(J.kq("ytp-ad-overlay-link"),"click",function(L){E5(X,J.element,L)}); X.J(J.kq("ytp-ad-overlay-close-container"),"click",X.h6);J.hide();return J}; lfe=function(X){var J=new g.qy({V:"div",Ql:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],C:[{V:"div",U:"ytp-ad-overlay-ad-info-button-container"},{V:"div",U:"ytp-ad-overlay-close-container",C:[{V:"button",U:"ytp-ad-overlay-close-button",C:[P1(s7I)]}]},{V:"div",U:"ytp-ad-overlay-text-image",C:[{V:"img",X:{src:"{{imageUrl}}"}}]},{V:"div",U:"ytp-ad-overlay-title",iB:"{{title}}"},{V:"div",U:"ytp-ad-overlay-desc",iB:"{{description}}"},{V:"div",Ql:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], iB:"{{displayUrl}}"}]});X.J(J.kq("ytp-ad-overlay-title"),"click",function(L){E5(X,J.element,L)}); X.J(J.kq("ytp-ad-overlay-link"),"click",function(L){E5(X,J.element,L)}); X.J(J.kq("ytp-ad-overlay-close-container"),"click",X.h6);X.J(J.kq("ytp-ad-overlay-text-image"),"click",X.i3l);J.hide();return J}; REo=function(X){var J=new g.qy({V:"div",U:"ytp-ad-image-overlay",C:[{V:"div",U:"ytp-ad-overlay-ad-info-button-container"},{V:"div",U:"ytp-ad-overlay-close-container",C:[{V:"button",U:"ytp-ad-overlay-close-button",C:[P1(s7I)]}]},{V:"div",U:"ytp-ad-overlay-image",C:[{V:"img",X:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});X.J(J.kq("ytp-ad-overlay-image"),"click",function(L){E5(X,J.element,L)}); X.J(J.kq("ytp-ad-overlay-close-container"),"click",X.h6);J.hide();return J}; NpP=function(X,J){if(J){var L=g.F(J,A9)||null;L==null?g.Sc(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(J=g.qG("video-ads ytp-ad-module")||null,J==null?g.Sc(Error("Could not locate the root ads container element to attach the ad info dialog.")):(X.gI=new g.qy({V:"div",U:"ytp-ad-overlay-ad-info-dialog-container"}),g.f(X,X.gI),X.gI.zH(J),J=new RO(X.api,X.layoutId,X.interactionLoggingClientData,X.oB,X.gI.element,!1),g.f(X,J),J.init(Xr("ad-info-hover-text-button"),L,X.macros), X.B?(J.zH(X.B,0),J.subscribe("f",X.VCq,X),J.subscribe("e",X.V_,X),X.J(X.B,"click",X.ZmE),X.J(g.qG("ytp-ad-button",J.element),"click",function(){var x;if(g.F((x=g.F(L.button,g.JE))==null?void 0:x.serviceEndpoint,Zlo))X.Hl=X.api.getPlayerState(1)===2,X.api.pauseVideo();else X.api.onAdUxClicked("ad-info-hover-text-button",X.layoutId)}),X.O6=J):g.Sc(Error("Ad info button container within overlay ad was not present."))))}else g.PM(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; m$Z=function(X,J){if(U$8(X,YA)||X.api.isMinimized())return!1;var L=gh(J.title),x=gh(J.description);if(g.YS(L)||g.YS(x))return!1;X.createServerVe(X.N.element,J.trackingParams||null);X.N.updateValue("title",gh(J.title));X.N.updateValue("description",gh(J.description));X.N.updateValue("displayUrl",gh(J.displayUrl));J.navigationEndpoint&&g.pd(X.D,J.navigationEndpoint);X.N.show();X.vl.start();X.logVisibility(X.N.element,!0);X.J(X.N.element,"mouseover",function(){X.aB++}); return!0}; kYP=function(X,J){if(U$8(X,YA)||X.api.isMinimized())return!1;var L=gh(J.title),x=gh(J.description);if(g.YS(L)||g.YS(x))return!1;X.createServerVe(X.K.element,J.trackingParams||null);X.K.updateValue("title",gh(J.title));X.K.updateValue("description",gh(J.description));X.K.updateValue("displayUrl",gh(J.displayUrl));X.K.updateValue("imageUrl",g1O(J.image));J.navigationEndpoint&&g.pd(X.D,J.navigationEndpoint);X.J0=J.imageNavigationEndpoint||null;X.K.show();X.vl.start();X.logVisibility(X.K.element,!0); X.J(X.K.element,"mouseover",function(){X.aB++}); return!0}; ZoY=function(X,J){if(X.api.isMinimized())return!1;var L=DkW(J.image),x=L;L.width0?(J=new YL(X.api,X.L), J.zH(X.playerOverlay),g.f(X,J)):(X=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(J)),g.Sc(X))}}else g.Sc(Error("addCommonComponents() needs to be called before starting countdown."))}; gev=function(X){function J(L){return{toString:function(){return L()}}} X.macros.SURVEY_LOCAL_TIME_EPOCH_S=J(function(){var L=new Date;return(Math.round(L.valueOf()/1E3)+-1*L.getTimezoneOffset()*60).toString()}); X.macros.SURVEY_ELAPSED_MS=J(function(){return(Date.now()-X.N).toString()})}; DSC=function(X,J,L,x,Q){pm.call(this,X,J,L,x,"survey-question-multi-select");this.aB=Q;this.noneOfTheAbove=null;this.submitEndpoints=[];this.B=null;this.hide()}; $SH=function(X,J,L){X.noneOfTheAbove=new iRV(X.api,X.layoutId,X.interactionLoggingClientData,X.oB);X.noneOfTheAbove.zH(X.answers);X.noneOfTheAbove.init(Xr("survey-none-of-the-above"),J,L)}; M8u=function(X){X.K.forEach(function(J){J.L.toggleButton(!1)}); Cv8(X,!0)}; Cv8=function(X,J){var L=X.T;X=yod(X);J=J===void 0?!1:J;L.L&&(X?L.L.hide():L.L.show(),J&&L.L instanceof MH&&!L.L.T&&qVW(L.L,!1));L.K&&(X?L.K.show():L.K.hide())}; yod=function(X){return X.K.some(function(J){return J.L.isToggled()})||X.noneOfTheAbove.button.isToggled()}; ro=function(X,J,L,x,Q){pm.call(this,X,J,L,x,"survey-question-single-select",function(q){K.api.G().Y("supports_multi_step_on_desktop")&&Q([q])}); var K=this;this.hide()}; vo=function(X,J,L,x){IO.call(this,X,{V:"div",U:"ytp-ad-survey",C:[{V:"div",U:"ytp-ad-survey-questions"}]},"survey",J,L,x);this.questions=[];this.K=[];this.conditioningRules=[];this.L=0;this.B=this.kq("ytp-ad-survey-questions");this.api.G().Y("fix_survey_color_contrast_on_destop")&&this.kq("ytp-ad-survey").classList.add("color-contrast-fix");this.api.G().Y("web_enable_speedmaster")&&this.kq("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; HR3=function(X,J){var L=X.K[J],x;(x=X.N)==null||x.dispose();g.F(L,k6)?neF(X,g.F(L,k6),X.macros):g.F(L,ml)&&V8F(X,g.F(L,ml),X.macros);X.L=J}; neF=function(X,J,L){var x=new ro(X.api,X.layoutId,X.interactionLoggingClientData,X.oB,X.T.bind(X));x.zH(X.B);x.init(Xr("survey-question-single-select"),J,L);X.api.G().Y("supports_multi_step_on_desktop")?X.N=x:X.questions.push(x);g.f(X,x)}; V8F=function(X,J,L){var x=new DSC(X.api,X.layoutId,X.interactionLoggingClientData,X.oB,X.T.bind(X));x.zH(X.B);x.init(Xr("survey-question-multi-select"),J,L);X.api.G().Y("supports_multi_step_on_desktop")?X.N=x:X.questions.push(x);g.f(X,x)}; jn=function(X,J,L,x){IO.call(this,X,{V:"div",U:"ytp-ad-survey-interstitial",C:[{V:"div",U:"ytp-ad-survey-interstitial-contents",C:[{V:"div",U:"ytp-ad-survey-interstitial-logo",C:[{V:"div",U:"ytp-ad-survey-interstitial-logo-image"}]},{V:"div",U:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",J,L,x);this.L=this.actionButton=null;this.interstitial=this.kq("ytp-ad-survey-interstitial");this.K=this.kq("ytp-ad-survey-interstitial-contents");this.text=this.kq("ytp-ad-survey-interstitial-text"); this.logoImage=this.kq("ytp-ad-survey-interstitial-logo-image");this.transition=new g.kE(this,500,!1,300);g.f(this,this.transition)}; ORI=function(X,J){J=J&&py(J)||"";if(g.YS(J))g.PM(Error("Found ThumbnailDetails without valid image URL"));else{var L=X.style;X=X.style.cssText;var x=document.implementation.createHTMLDocument("").createElement("DIV");x.style.cssText=X;X=Tgo(x.style);L.cssText=[X,'background-image:url("'+J+'");'].join("")}}; aOH=function(X){var J=g.qG("html5-video-player");J&&g.q8(J,"ytp-ad-display-override",X)}; Tk=function(X,J,L,x,Q,K){K=K===void 0?0:K;Ny.call(this,X,{V:"div",U:"ytp-preview-ad",C:[{V:"div",U:"ytp-preview-ad__text"}]},"preview-ad",J,L,x,Q);var q=this;this.aB=K;this.K=0;this.T=-1;this.N=this.kq("ytp-preview-ad__text");switch(this.aB){case 1:this.N.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.kE(this,400,!1,100,function(){q.hide()}); g.f(this,this.transition);this.hide()}; Gk=function(X,J,L,x){IO.call(this,X,{V:"img",U:"ytp-ad-avatar"},"ad-avatar",J,L,x);this.hide()}; wW0=function(X){switch(X.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}}; fm=function(X,J,L,x,Q,K){Q=Q===void 0?!1:Q;K=K===void 0?!1:K;IO.call(this,X,{V:"button",U:"ytp-ad-button-vm"},"ad-button",J,L,x);this.buttonText=this.buttonIcon=null;this.hide();this.L=Q;this.K=K}; t8v=function(X,J,L,x,Q){Ny.call(this,X,{V:"div",Ql:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],C:[{V:"div",U:"ytp-ad-avatar-lockup-card__avatar_and_text_container",C:[{V:"div",U:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",J,L,x,Q);this.startMilliseconds=0;this.adAvatar=new Gk(this.api,this.layoutId,this.interactionLoggingClientData,this.oB);g.f(this,this.adAvatar);O9(this.element,this.adAvatar.element,0);this.headline=new oF(this.api,this.layoutId, this.interactionLoggingClientData,this.oB);g.f(this,this.headline);this.headline.zH(this.kq("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new oF(this.api,this.layoutId,this.interactionLoggingClientData,this.oB);g.f(this,this.description);this.description.zH(this.kq("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new fm(this.api, this.layoutId,this.interactionLoggingClientData,this.oB);g.f(this,this.adButton);this.adButton.zH(this.element);this.hide()}; en=function(X,J,L,x){IO.call(this,X,{V:"button",U:"ytp-skip-ad-button",C:[{V:"div",U:"ytp-skip-ad-button__text"}]},"skip-button",J,L,x);var Q=this;this.K=!1;this.T=this.kq("ytp-skip-ad-button__text");this.transition=new g.kE(this,500,!1,100,function(){Q.hide()}); g.f(this,this.transition);this.L=new LX(this.element,15E3,5E3,.5,.5,!0);g.f(this,this.L);this.hide()}; dSd=function(X,J,L,x,Q){Ny.call(this,X,{V:"div",U:"ytp-skip-ad"},"skip-ad",J,L,x,Q);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.N=new en(this.api,this.layoutId,this.interactionLoggingClientData,this.oB);g.f(this,this.N);this.N.zH(this.element);this.hide()}; FI=function(X,J,L,x){IO.call(this,X,{V:"div",U:"ytp-visit-advertiser-link"},"visit-advertiser-link",J,L,x);this.hide()}; l1=function(X,J,L,x,Q){IO.call(this,X,{V:"div",U:"ytp-ad-player-overlay-layout",C:[{V:"div",U:"ytp-ad-player-overlay-layout__player-card-container"},{V:"div",U:"ytp-ad-player-overlay-layout__ad-info-container"},{V:"div",U:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{V:"div",U:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",J,L,x);this.K=Q;this.gI=this.kq("ytp-ad-player-overlay-layout__player-card-container");this.L=this.kq("ytp-ad-player-overlay-layout__ad-info-container"); this.D=this.kq("ytp-ad-player-overlay-layout__skip-or-preview-container");this.aB=this.kq("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; uY8=function(X,J,L,x){IO.call(this,X,{V:"div",U:"ytp-ad-grid-card-text",C:[{V:"div",U:"ytp-ad-grid-card-text__metadata",C:[{V:"div",U:"ytp-ad-grid-card-text__metadata__headline"},{V:"div",U:"ytp-ad-grid-card-text__metadata__description",C:[{V:"div",U:"ytp-ad-grid-card-text__metadata__description__line"},{V:"div",U:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{V:"div",U:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",J,L,x);this.headline=new oF(this.api,this.layoutId,this.interactionLoggingClientData, this.oB);g.f(this,this.headline);this.headline.zH(this.kq("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new fm(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,!0);g.f(this,this.moreInfoButton);this.moreInfoButton.zH(this.kq("ytp-ad-grid-card-text__button"))}; Rs=function(X,J,L,x){IO.call(this,X,{V:"div",U:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",J,L,x);this.L=[]}; Bo=function(X,J,L,x,Q,K,q){Ny.call(this,X,K,q,J,L,x,Q);this.playerProgressOffsetMs=0;this.K=!1}; oed=function(X){var J=g.qG("html5-video-player");J&&g.q8(J,"ytp-ad-display-override",X)}; bRu=function(X,J,L,x,Q){Bo.call(this,X,J,L,x,Q,{V:"div",U:"ytp-display-underlay-text-grid-cards",C:[{V:"div",U:"ytp-display-underlay-text-grid-cards__content_container",C:[{V:"div",U:"ytp-display-underlay-text-grid-cards__content_container__header",C:[{V:"div",U:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{V:"div",U:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{V:"div",U:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {V:"div",U:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Rs(this.api,this.layoutId,this.interactionLoggingClientData,this.oB);g.f(this,this.adGridCardCollection);this.adGridCardCollection.zH(this.kq("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new fm(this.api,this.layoutId,this.interactionLoggingClientData,this.oB);g.f(this,this.adButton);this.adButton.zH(this.kq("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.N=this.kq("ytp-display-underlay-text-grid-cards__content_container");this.T=this.kq("ytp-display-underlay-text-grid-cards__content_container__header")}; s5=function(X,J,L,x){IO.call(this,X,{V:"div",U:"ytp-ad-details-line"},"ad-details-line",J,L,x);this.L=[];this.hide()}; N4=function(X,J,L,x){IO.call(this,X,{V:"div",U:"ytp-image-background",C:[{V:"img",U:"ytp-image-background-image"}]},"image-background",J,L,x);this.hide()}; SAH=function(X,J,L,x,Q){Ny.call(this,X,{V:"svg",U:"ytp-timed-pie-countdown",X:{viewBox:"0 0 20 20"},C:[{V:"circle",U:"ytp-timed-pie-countdown__background",X:{r:"10",cx:"10",cy:"10"}},{V:"circle",U:"ytp-timed-pie-countdown__inner",X:{r:"5",cx:"10",cy:"10"}},{V:"circle",U:"ytp-timed-pie-countdown__outer",X:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",J,L,x,Q);this.N=this.kq("ytp-timed-pie-countdown__inner");this.K=Math.ceil(2*Math.PI*5);this.hide()}; U5=function(X,J,L,x){IO.call(this,X,{V:"div",U:"ytp-video-interstitial-buttoned-centered-layout",X:{tabindex:"0"},C:[{V:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content",C:[{V:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{V:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",C:[{V:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{V:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {V:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{V:"div",U:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{V:"div",U:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",J,L,x);this.K=null;this.T=this.kq("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.N=new o2;g.f(this,this.N);this.hide()}; Pve=function(X){var J=g.qG("html5-video-player");J&&g.q8(J,"ytp-ad-display-override",X)}; coV=function(X){if(!X.adAvatar||!g.F(X.adAvatar,m$))return g.Sc(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!X.headline)return g.Sc(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!X.adBadge||!g.F(X.adBadge,kA))return g.Sc(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!X.adButton||!g.F(X.adButton,Zh))return g.Sc(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!X.adInfoRenderer|| !g.F(X.adInfoRenderer,A9))return g.Sc(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;X=X.durationMilliseconds||0;return typeof X!=="number"||X<=0?(g.Sc(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+X)),!1):!0}; A6=function(X,J){J=J===void 0?2:J;g.Ly.call(this);this.api=X;this.L=null;this.Dh=new o2(this);g.f(this,this.Dh);this.K=Ico;this.Dh.J(this.api,"presentingplayerstatechange",this.O8);this.L=this.Dh.J(this.api,"progresssync",this.qd);this.g8=J;this.g8===1&&this.qd()}; X2=function(X,J,L){G2.call(this,X);this.api=X;this.oB=J;this.components={};X=new g.R({V:"div",Ql:["video-ads","ytp-ad-module"]});g.f(this,X);f0&&g.xq(X.element,"ytp-ads-tiny-mode");this.T=new $m(X.element);g.f(this,this.T);g.l0(this.api,X.element,4);wa(L)&&(L=new g.R({V:"div",Ql:["ytp-ad-underlay"]}),g.f(this,L),this.K=new $m(L.element),g.f(this,this.K),g.l0(this.api,L.element,0));g.f(this,v1Z())}; EeS=function(X,J){X=g.yf(X.components,J.id,null);X==null&&g.PM(Error("Component not found for element id: "+J.id));return X||null}; YAH=function(X){g.bf.call(this,X);var J=this;this.K=null;this.created=!1;this.N=X.G().Y("h5_use_refactored_get_ad_break")?new dqR(this.player):new NX(this.player);this.T=function(){if(J.K!=null)return J.K;var x=new ETP({DS:co(J.L).DS,AO:co(J.L).AO,Z:J.player,uW:co(J.L).uW,ZY:J.L.L.ZY,jR:co(J.L).jR,Gi:J.L.L.Gi});J.K=x.MR;return J.K}; this.L=new j7P(this.player,this,this.N,this.T);g.f(this,this.L);var L=X.G();!yw(L)||g.kH(L)||x3(L)||(g.f(this,new X2(X,co(this.L).oB,co(this.L).uW)),g.f(this,new Tpm(X)))}; hmF=function(X){X.created!==X.loaded&&qH("Created and loaded are out of sync")}; pWe=function(X){g.bf.prototype.load.call(X);var J=co(X.L).uW;try{X.player.getRootNode().classList.add("ad-created")}catch(C){qH(C instanceof Error?C:String(C))}var L=X.player.getVideoData(1),x=L&&L.videoId||"",Q=L&&L.getPlayerResponse()||{},K=(Q&&Q.adPlacements||[]).map(function(C){return C.adPlacementRenderer}),q=((Q==null?void 0:Q.adSlots)||[]).map(function(C){return g.F(C,i5)}); Q=Q.playerConfig&&Q.playerConfig.daiConfig&&Q.playerConfig.daiConfig.enableDai||!1;L&&L.Zw();K=zm3(K,q,J,co(X.L).oP);q=L&&L.clientPlaybackNonce||"";L=L&&L.Bu||!1;if(Db(J,!0)&&L){var D;J={};(D=X.player.getVideoData())==null||D.Ni("p_cpb",(J.cc=q,J))}D=1E3*X.player.getDuration(1);WZe(X);X.L.L.d3.Y7(q,D,L,K.Fa,K.J5,K.Fa,Q,x)}; WZe=function(X){var J,L;if(L=(J=X.player.getVideoData(1))==null||!J.Bu)J=X.player.G(),L=yw(J)&&!g.M2(J)&&J.playerStyle==="desktop-polymer";L&&(X=X.player.getInternalApi(),X.addEventListener("updateKevlarOrC3Companion",H9z),X.addEventListener("updateEngagementPanelAction",O9P),X.addEventListener("changeEngagementPanelVisibility",acz),window.addEventListener("yt-navigate-start",tkO))}; Js=function(X,J){J===X.Do&&(X.Do=void 0)}; ro3=function(X){var J=co(X.L).hj,L=J.T().z3("SLOT_TYPE_PLAYER_BYTES",1);J=vv(J.dI.get(),1).clientPlaybackNonce;var x=!1;L=g.d(L);for(var Q=L.next();!Q.done;Q=L.next()){Q=Q.value;var K=Q.slotType==="SLOT_TYPE_PLAYER_BYTES"&&Q.slotEntryTrigger instanceof lR?Q.slotEntryTrigger.TY:void 0;K&&K===J&&(x&&qH("More than 1 preroll playerBytes slot detected",Q),x=!0)}x||Cm(co(X.L).KE)}; veC=function(X){if(Lm(co(X.L).uW))return!0;var J="";X=g.d(co(X.L).jR.Rc.keys());for(var L=X.next();!L.done;L=X.next()){L=L.value;if(L.slotType==="SLOT_TYPE_PLAYER_BYTES"&&L.U6==="core")return!0;J+=L.slotType+" "}Math.random()<.01&&qH("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:J});return!1}; jzV=function(X){X=g.d(co(X.L).jR.Rc.values());for(var J=X.next();!J.done;J=X.next())if(J.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; GHR=function(X,J,L,x,Q,K){L=L===void 0?[]:L;x=x===void 0?"":x;Q=Q===void 0?"":Q;var q=co(X.L).uW,D=X.player.getVideoData(1);D&&D.getPlayerResponse();D&&D.Zw();L=zm3(J,L,q,co(X.L).oP);RVZ(co(X.L).f3,x,L.Fa,L.J5,J,Q,K)}; zm3=function(X,J,L,x){J={Fa:[],J5:J};X=g.d(X);for(var Q=X.next();!Q.done;Q=X.next())if((Q=Q.value)&&Q.renderer!=null){var K=Q.renderer;if(!L.Z.G().Y("html5_enable_vod_lasr_with_notify_pacf")){var q=void 0,D=void 0,C=void 0,M=void 0,y=x;g.F((M=K.sandwichedLinearAdRenderer)==null?void 0:M.adVideoStart,vZ)?(q=g.F((C=K.sandwichedLinearAdRenderer)==null?void 0:C.adVideoStart,vZ),q=qjY(q,y),g.zc(K.sandwichedLinearAdRenderer.adVideoStart,vZ,q)):g.F((D=K.linearAdSequenceRenderer)==null?void 0:D.adStart,vZ)&& (C=g.F((q=K.linearAdSequenceRenderer)==null?void 0:q.adStart,vZ),q=qjY(C,y),g.zc(K.linearAdSequenceRenderer.adStart,vZ,q))}J.Fa.push(Q)}return J}; g.LZ=function(X){if(typeof DOMParser!="undefined")return Sv(new DOMParser,W5O(X),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.xo=function(X){g.G.call(this);this.callback=X;this.L=new OM(0,0,.4,0,.2,1,1,1);this.delay=new g.BN(this.next,window,this);g.f(this,this.delay)}; g.TIv=function(X){var J=X.G();return J.oT&&!J.N&&g.lb(J)?X.isEmbedsShortsMode()?(X=X.wg(),Math.min(X.width,X.height)>=315):!X.cD():!1}; g.iz=function(X){g.R.call(this,{V:"div",U:"ytp-more-videos-view",X:{tabIndex:"-1"}});var J=this;this.api=X;this.K=!0;this.N=new g.dS(this);this.L=[];this.suggestionData=[];this.columns=this.containerWidth=this.S=this.T=this.scrollPosition=0;this.title=new g.R({V:"h2",U:"ytp-related-title",iB:"{{title}}"});this.previous=new g.R({V:"button",Ql:["ytp-button","ytp-previous"],X:{"aria-label":"Mostrar videos sugeridos anteriores"},C:[g.My()]});this.W=new g.xo(function(L){J.suggestions.element.scrollLeft= -L}); this.next=new g.R({V:"button",Ql:["ytp-button","ytp-next"],X:{"aria-label":"Mostrar m\u00e1s videos sugeridos"},C:[g.yp()]});g.f(this,this.N);this.B=X.G().T;g.f(this,this.title);this.title.zH(this.element);this.suggestions=new g.R({V:"div",U:"ytp-suggestions"});g.f(this,this.suggestions);this.suggestions.zH(this.element);g.f(this,this.previous);this.previous.zH(this.element);this.previous.listen("click",this.tV,this);g.f(this,this.W);Gm0(this);g.f(this,this.next);this.next.zH(this.element);this.next.listen("click", this.eF,this);this.N.J(this.api,"appresize",this.A_);this.N.J(this.api,"fullscreentoggled",this.Ih);this.N.J(this.api,"videodatachange",this.onVideoDataChange);this.A_(this.api.t0().getPlayerSize());this.onVideoDataChange()}; Gm0=function(X){for(var J={rk:0};J.rk<16;J={rk:J.rk},++J.rk){var L=new g.R({V:"a",U:"ytp-suggestion-link",X:{href:"{{link}}",target:X.api.G().D,"aria-label":"{{aria_label}}"},C:[{V:"div",U:"ytp-suggestion-image"},{V:"div",U:"ytp-suggestion-overlay",X:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},C:[{V:"div",U:"ytp-suggestion-title",iB:"{{title}}"},{V:"div",U:"ytp-suggestion-author",iB:"{{author_and_views}}"},{V:"div",X:{"data-is-live":"{{is_live}}"},U:"ytp-suggestion-duration", iB:"{{duration}}"}]}]});g.f(X,L);var x=L.kq("ytp-suggestion-link");g.lF(x,"transitionDelay",J.rk/20+"s");X.N.J(x,"click",function(Q){return function(K){var q=Q.rk;if(X.K){var D=X.suggestionData[q],C=D.sessionData;X.B&&X.api.Y("web_player_log_click_before_generating_ve_conversion_params")?(X.api.logClick(X.L[q].element),q=D.Ve(),D={},g.fO(X.api,D),q=g.Hw(q,D),g.Vv(q,X.api,K)):g.nG(K,X.api,X.B,C||void 0)&&X.api.G7(D.videoId,C,D.playlistId)}else K.preventDefault(),document.activeElement.blur()}}(J)); L.zH(X.suggestions.element);X.L.push(L);X.api.createServerVe(L.element,L)}}; fOu=function(X){if(X.api.G().Y("web_player_log_click_before_generating_ve_conversion_params"))for(var J=Math.floor(-X.scrollPosition/(X.T+8)),L=Math.min(J+X.columns,X.suggestionData.length)-1;J<=L;J++)X.api.logVisibility(X.L[J].element,!0)}; g.QJ=function(X){var J=X.api.F4()?32:16;J=X.S/2+J;X.next.element.style.bottom=J+"px";X.previous.element.style.bottom=J+"px";J=X.scrollPosition;var L=X.containerWidth-X.suggestionData.length*(X.T+8);g.q8(X.element,"ytp-scroll-min",J>=0);g.q8(X.element,"ytp-scroll-max",J<=L)}; FZH=function(X){for(var J=X.suggestionData.length,L=0;L>>0)+"_",Q=0;return J}); CR("Symbol.iterator",function(X){if(X)return X;X=Symbol("Symbol.iterator");for(var J="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),L=0;L0&&L>0;)if(x[--L]!=J[--Q])return!1;return Q<=0}}); CR("Array.prototype.find",function(X){return X?X:function(J,L){return Cvv(this,J,L).Rw}}); CR("Array.prototype.entries",function(X){return X?X:function(){return BW(this,function(J,L){return[J,L]})}}); CR("Array.prototype.keys",function(X){return X?X:function(){return BW(this,function(J){return J})}}); CR("String.prototype.startsWith",function(X){return X?X:function(J,L){var x=lv(this,J,"startsWith");J+="";var Q=x.length,K=J.length;L=Math.max(0,Math.min(L|0,x.length));for(var q=0;q=K}}); CR("Number.isFinite",function(X){return X?X:function(J){return typeof J!=="number"?!1:!isNaN(J)&&J!==Infinity&&J!==-Infinity}}); CR("String.prototype.repeat",function(X){return X?X:function(J){var L=lv(this,null,"repeat");if(J<0||J>1342177279)throw new RangeError("Invalid count value");J|=0;for(var x="";J;)if(J&1&&(x+=L),J>>>=1)L+=L;return x}}); CR("Object.entries",function(X){return X?X:function(J){var L=[],x;for(x in J)HW(J,x)&&L.push([x,J[x]]);return L}}); CR("Array.from",function(X){return X?X:function(J,L,x){L=L!=null?L:function(D){return D}; var Q=[],K=typeof Symbol!="undefined"&&Symbol.iterator&&J[Symbol.iterator];if(typeof K=="function"){J=K.call(J);for(var q=0;!(K=J.next()).done;)Q.push(L.call(x,K.value,q++))}else for(K=J.length,q=0;q>>0;if(J===0)return 32;var L=0;(J&4294901760)===0&&(J<<=16,L+=16);(J&4278190080)===0&&(J<<=8,L+=8);(J&4026531840)===0&&(J<<=4,L+=4);(J&3221225472)===0&&(J<<=2,L+=2);(J&2147483648)===0&&L++;return L}}); CR("Number.isNaN",function(X){return X?X:function(J){return typeof J==="number"&&isNaN(J)}}); CR("Array.prototype.values",function(X){return X?X:function(){return BW(this,function(J,L){return L})}}); CR("Array.prototype.fill",function(X){return X?X:function(J,L,x){var Q=this.length||0;L<0&&(L=Math.max(0,Q+L));if(x==null||x>Q)x=Q;x=Number(x);x<0&&(x=Math.max(0,Q+x));for(L=Number(L||0);L0&&L?L.repeat(Math.ceil(J/L.length)).substring(0,J):"")+x}}); CR("Array.prototype.findIndex",function(X){return X?X:function(J,L){return Cvv(this,J,L).D0}}); CR("Promise.prototype.finally",function(X){return X?X:function(J){return this.then(function(L){return Promise.resolve(J()).then(function(){return L})},function(L){return Promise.resolve(J()).then(function(){throw L; })})}}); CR("Math.imul",function(X){return X?X:function(J,L){J=Number(J);L=Number(L);var x=J&65535,Q=L&65535;return x*Q+((J>>>16&65535)*Q+x*(L>>>16&65535)<<16>>>0)|0}}); CR("Math.sign",function(X){return X?X:function(J){J=Number(J);return J===0||isNaN(J)?J:J>0?1:-1}}); CR("WeakSet",function(X){function J(L){this.L=new WeakMap;if(L){L=g.d(L);for(var x;!(x=L.next()).done;)this.add(x.value)}} if(function(){if(!X||!Object.seal)return!1;try{var L=Object.seal({}),x=Object.seal({}),Q=new X([L]);if(!Q.has(L)||Q.has(x))return!1;Q.delete(L);Q.add(x);return!Q.has(L)&&Q.has(x)}catch(K){return!1}}())return X; J.prototype.add=function(L){this.L.set(L,!0);return this}; J.prototype.has=function(L){return this.L.has(L)}; J.prototype.delete=function(L){return this.L.delete(L)}; return J}); CR("AggregateError",function(X){function J(L,x){x=Error(x);"stack"in x&&(this.stack=x.stack);this.errors=L;this.message=x.message} if(X)return X;g.w(J,Error);J.prototype.name="AggregateError";return J}); CR("Array.prototype.copyWithin",function(X){function J(L){L=Number(L);return L===Infinity||L===-Infinity?L:L|0} return X?X:function(L,x,Q){var K=this.length;L=J(L);x=J(x);Q=Q===void 0?K:J(Q);L=L<0?Math.max(K+L,0):Math.min(L,K);x=x<0?Math.max(K+x,0):Math.min(x,K);Q=Q<0?Math.max(K+Q,0):Math.min(Q,K);if(Lx;)--Q in this?this[--L]=this[Q]:delete this[--L];return this}}); CR("Int8Array.prototype.copyWithin",NS);CR("Uint8Array.prototype.copyWithin",NS);CR("Uint8ClampedArray.prototype.copyWithin",NS);CR("Int16Array.prototype.copyWithin",NS);CR("Uint16Array.prototype.copyWithin",NS);CR("Int32Array.prototype.copyWithin",NS);CR("Uint32Array.prototype.copyWithin",NS);CR("Float32Array.prototype.copyWithin",NS);CR("Float64Array.prototype.copyWithin",NS);CR("Array.prototype.at",function(X){return X?X:UA}); CR("Int8Array.prototype.at",mZ);CR("Uint8Array.prototype.at",mZ);CR("Uint8ClampedArray.prototype.at",mZ);CR("Int16Array.prototype.at",mZ);CR("Uint16Array.prototype.at",mZ);CR("Int32Array.prototype.at",mZ);CR("Uint32Array.prototype.at",mZ);CR("Float32Array.prototype.at",mZ);CR("Float64Array.prototype.at",mZ);CR("String.prototype.at",function(X){return X?X:UA}); CR("Array.prototype.findLastIndex",function(X){return X?X:function(J,L){return M8A(this,J,L).D0}}); CR("Int8Array.prototype.findLastIndex",ke);CR("Uint8Array.prototype.findLastIndex",ke);CR("Uint8ClampedArray.prototype.findLastIndex",ke);CR("Int16Array.prototype.findLastIndex",ke);CR("Uint16Array.prototype.findLastIndex",ke);CR("Int32Array.prototype.findLastIndex",ke);CR("Uint32Array.prototype.findLastIndex",ke);CR("Float32Array.prototype.findLastIndex",ke);CR("Float64Array.prototype.findLastIndex",ke);CR("Number.parseInt",function(X){return X||parseInt});var B4,Kd,neZ;B4=B4||{};g.Ao=this||self;Kd="closure_uid_"+(Math.random()*1E9>>>0);neZ=0;g.MC(y0,Error);y0.prototype.name="CustomError";var zev;var dSR,a3,Fe;dSR=Array.prototype.indexOf?function(X,J){return Array.prototype.indexOf.call(X,J,void 0)}:function(X,J){if(typeof X==="string")return typeof J!=="string"||J.length!=1?-1:X.indexOf(J,0); for(var L=0;L=0;L--)if(L in X&&X[L]===J)return L;return-1}; g.mF=Array.prototype.forEach?function(X,J,L){Array.prototype.forEach.call(X,J,L)}:function(X,J,L){for(var x=X.length,Q=typeof X==="string"?X.split(""):X,K=0;K=.3:this.Yi>=.5};var cc={Ovl:0,HJl:1},EDP={NONE:0,zyY:1,n79:2};var veS="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");aS.prototype.getValue=function(){return this.K}; g.w(w6,aS);w6.prototype.N=function(X){this.K===null&&g.$S(this.T,X)&&(this.K=X)}; g.w(tn,aS);tn.prototype.N=function(X){this.K===null&&typeof X==="number"&&(this.K=X)}; g.w(d6,aS);d6.prototype.N=function(X){this.K===null&&typeof X==="string"&&(this.K=X)};uB.prototype.disable=function(){this.K=!1}; uB.prototype.enable=function(){this.K=!0}; uB.prototype.isEnabled=function(){return this.K}; uB.prototype.reset=function(){this.L={};this.K=!0;this.N={}};var Ri=document,YD=window;var km0=xu(1,!0),GU=xu(610401301,!1);xu(899588437,!1);xu(772657768,!1);var ZR8=xu(513659523,!1),Aod=xu(568333945,!1),sre=xu(1331761403,!1);xu(651175828,!1);xu(722764542,!1);xu(748402145,!1);xu(748402146,!1);xu(103340015,!1);xu(555019702,!1);xu(333098724,!1);xu(2147483644,!1);xu(2147483645,!1);xu(2147483646,km0);xu(2147483647,!0);var fJ=!!g.Ld("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var Wc=String.prototype.trim?function(X){return X.trim()}:function(X){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(X)[1]},quP=/&/g,IHo=//g,DCY=/"/g,$Co=/'/g,C8m=/\x00/g,KFI=/[\x00&<>"']/;var eJ,XVH=g.Ao.navigator;eJ=XVH?XVH.userAgentData||null:null;var USY=globalThis.trustedTypes,kS;Xc.prototype.toString=function(){return this.L+""};x0.prototype.toString=function(){return this.L}; var ZRv=new x0("about:invalid#zClosurez");var K18=KW("tel"),iZv=KW("sms"),kmP=[KW("data"),KW("http"),KW("https"),KW("mailto"),KW("ftp"),new QR(function(X){return/^[^:]*([/?#]|$)/.test(X)})],AoR=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;CW.prototype.toString=function(){return this.L+""};H_.prototype.toString=function(){return this.L+""};tH.prototype.toString=function(){return this.L};var oQ={};g.JS3=String.prototype.repeat?function(X,J){return X.repeat(J)}:function(X,J){return Array(J+1).join(X)};Tu[" "]=function(){};var RW,x$,UjA,LFC,xC8,idd,Gl,f0,QHv;g.ej=s1();g.$q=FZO();g.lT=lB("Edge");g.n4=g.lT||g.$q;RW=lB("Gecko")&&!(zU(g.vc(),"WebKit")&&!lB("Edge"))&&!(lB("Trident")||lB("MSIE"))&&!lB("Edge");g.g0=zU(g.vc(),"WebKit")&&!lB("Edge");x$=jv();UjA=OdO();g.mH=Hdv();LFC=rZ();xC8=lB("iPad");idd=lB("iPod");Gl=v_();f0=zU(g.vc(),"KaiOS"); a:{var KF3="",qu0=function(){var X=g.vc();if(RW)return/rv:([^\);]+)(\)|;)/.exec(X);if(g.lT)return/Edge\/([\d\.]+)/.exec(X);if(g.$q)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(X);if(g.g0)return/WebKit\/(\S+)/.exec(X);if(g.ej)return/(?:Version)[ \/]?(\S+)/.exec(X)}(); qu0&&(KF3=qu0?qu0[1]:"");if(g.$q){var KZ,IHS=g.Ao.document;KZ=IHS?IHS.documentMode:void 0;if(KZ!=null&&KZ>parseFloat(KF3)){QHv=String(KZ);break a}}QHv=KF3}var dCz=QHv,wVW={};var B6,NV;g.gy=Nx();B6=rZ()||lB("iPod");NV=lB("iPad");g.F0=RmP();g.Oc=U1();g.n9=mR()&&!v_();var WfZ=!g.$q&&!mR();g.a=g.l$.prototype;g.a.clone=function(){return new g.l$(this.x,this.y)}; g.a.equals=function(X){return X instanceof g.l$&&RQ(this,X)}; g.a.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.a.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.a.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.a.scale=function(X,J){this.x*=X;this.y*=typeof J==="number"?J:X;return this};g.a=g.B_.prototype;g.a.clone=function(){return new g.B_(this.width,this.height)}; g.a.aspectRatio=function(){return this.width/this.height}; g.a.isEmpty=function(){return!NK(this)}; g.a.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.a.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.a.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.a.scale=function(X,J){this.width*=X;this.height*=typeof J==="number"?J:X;return this};mW.prototype.toString=function(){return this.L}; var UR={};new mW(UR,"");var bdP=/^[a-z][a-z\d-]*$/i,Suv="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),cSe="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),YuY=["action","formaction","href"];var WFZ={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.a=Z3.prototype;g.a.kH=function(X){return xD(this.L,X)}; g.a.getElementsByTagName=function(X,J){return(J||this.L).getElementsByTagName(String(X))}; g.a.kq=function(X){return g.qG(X,this.L)}; g.a.setProperties=IW;g.a.createElement=function(X){return $D(this.L,X)}; g.a.appendChild=g.Vt;g.a.append=function(X,J){jHo(AH(X),X,arguments,1)}; g.a.canHaveChildren=function(X){if(X.nodeType!=1)return!1;switch(X.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.a.removeNode=g.aW;g.a.getChildren=function(X){return X.children!=void 0?X.children:Array.prototype.filter.call(X.childNodes,function(J){return J.nodeType==1})}; g.a.contains=g.w0;PB.prototype.now=function(){return 0}; PB.prototype.K=function(){return 0}; PB.prototype.N=function(){return 0}; PB.prototype.L=function(){return 0};g.w(E9,PB);E9.prototype.now=function(){return cB()&&YD.performance.now?YD.performance.now():PB.prototype.now.call(this)}; E9.prototype.K=function(){return cB()&&YD.performance.memory?YD.performance.memory.totalJSHeapSize||0:PB.prototype.K.call(this)}; E9.prototype.N=function(){return cB()&&YD.performance.memory?YD.performance.memory.usedJSHeapSize||0:PB.prototype.N.call(this)}; E9.prototype.L=function(){return cB()&&YD.performance.memory?YD.performance.memory.jsHeapSizeLimit||0:PB.prototype.L.call(this)};var hHZ=function(){if(!g.Ao.addEventListener||!Object.defineProperty)return!1;var X=!1,J=Object.defineProperty({},"passive",{get:function(){X=!0}}); try{var L=function(){}; g.Ao.addEventListener("test",L,J);g.Ao.removeEventListener("test",L,J)}catch(x){}return X}();var P1v=eez("AnimationEnd"),tZ=eez("TransitionEnd");g.a=vB.prototype;g.a.getHeight=function(){return this.bottom-this.top}; g.a.clone=function(){return new vB(this.top,this.right,this.bottom,this.left)}; g.a.contains=function(X){return this&&X?X instanceof vB?X.left>=this.left&&X.right<=this.right&&X.top>=this.top&&X.bottom<=this.bottom:X.x>=this.left&&X.x<=this.right&&X.y>=this.top&&X.y<=this.bottom:!1}; g.a.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.a.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.a.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.a.scale=function(X,J){J=typeof J==="number"?J:X;this.left*=X;this.right*=X;this.top*=J;this.bottom*=J;return this};g.a=g.fj.prototype;g.a.clone=function(){return new g.fj(this.left,this.top,this.width,this.height)}; g.a.contains=function(X){return X instanceof g.l$?X.x>=this.left&&X.x<=this.left+this.width&&X.y>=this.top&&X.y<=this.top+this.height:this.left<=X.left&&this.left+this.width>=X.left+X.width&&this.top<=X.top&&this.top+this.height>=X.top+X.height}; g.a.getSize=function(){return new g.B_(this.width,this.height)}; g.a.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.a.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.a.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.a.scale=function(X,J){J=typeof J==="number"?J:X;this.left*=X;this.width*=X;this.top*=J;this.height*=J;return this};var lHY={};var mCS=WB(function(){var X=!1;try{var J=Object.defineProperty({},"passive",{get:function(){X=!0}}); g.Ao.addEventListener("test",null,J)}catch(L){}return X});k0P.prototype.isVisible=function(){return Q4(Ri)===1};var B6Y=I3(function(X){return typeof X==="number"}),RDP=I3(function(X){return typeof X==="string"}),sSA=I3(function(X){return typeof X==="boolean"}),PC=I3(function(X){return X!=null&&typeof X==="object"&&typeof X.then==="function"}),tOW=I3(function(X){return typeof X==="function"}),guH=I3(function(X){return!!X&&(typeof X==="object"||typeof X==="function")});var ASv={YV9:"allow-forms",drM:"allow-modals",Ixq:"allow-orientation-lock",HnI:"allow-pointer-lock",WXE:"allow-popups",xrm:"allow-popups-to-escape-sandbox",p56:"allow-presentation",Ur6:"allow-same-origin",J26:"allow-scripts",oj6:"allow-top-navigation",njY:"allow-top-navigation-by-user-activation"},xxP=WB(function(){return Xcm()});var q18=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Mz.prototype.Eo=function(X,J,L){X=X+"//"+J+L;var x=$xY(this)-L.length;if(x<0)return"";this.L.sort(function(M,y){return M-y}); L=null;J="";for(var Q=0;Q=C.length){x-=C.length;X+=C;J=this.N;break}L=L==null?K:L}}x="";L!=null&&(x=""+J+"trn="+L);return X+x};tB.prototype.setInterval=function(X,J){return YD.setInterval(X,J)}; tB.prototype.clearInterval=function(X){YD.clearInterval(X)}; tB.prototype.setTimeout=function(X,J){return YD.setTimeout(X,J)}; tB.prototype.clearTimeout=function(X){YD.clearTimeout(X)};var $_=void 0,J2,BZY=typeof TextDecoder!=="undefined",dxS,tJZ=typeof String.prototype.isWellFormed==="function",wcz=typeof TextEncoder!=="undefined";var PBZ={},Et=null,cne=RW||g.g0||typeof g.Ao.btoa=="function";var T6O=typeof Uint8Array!=="undefined",WRv=!g.$q&&typeof btoa==="function",pcI=/[-_.]/g,hDO={"-":"+",_:"/",".":"="},hB={};YI.prototype.isEmpty=function(){return this.L==null}; YI.prototype.sizeBytes=function(){var X=W5(this);return X?X.length:0}; var jSW;var GUO=void 0;var Tt=typeof Symbol==="function"&&typeof Symbol()==="symbol",DCv=j3("jas",void 0,!0),HT=j3(void 0,"1oa"),zR=j3(void 0,Symbol()),$CS=j3(void 0,"0ub"),n0v=j3(void 0,"0ubs"),V6I=j3(void 0,"0ubsb"),o0o=j3(void 0,"0actk"),EY=j3("m_m","NBE",!0),OWR=j3(void 0,"vps"),C80=j3();Math.max.apply(Math,g.nR(Object.values({n6E:1,o66:2,JbB:4,Whl:8,EVH:16,EcM:32,SSE:64,le9:128,Us9:256,D96:512,o7E:1024,Dsl:2048,BgI:4096})));var eDm={gL:{value:0,configurable:!0,writable:!0,enumerable:!1}},fRe=Object.defineProperties,Gt=Tt?DCv:"gL",xc,MI8=[];e3(MI8,7);xc=Object.freeze(MI8);var Yn={},lS={},zwm=Object.freeze({}),Nz={};var mQ=typeof g.Ao.BigInt==="function"&&typeof g.Ao.BigInt(0)==="bigint";var TR=I3(function(X){return mQ?X>=ySv&&X<=nuH:X[0]==="-"?N6A(X,VI0):N6A(X,Hd8)}),VI0=Number.MIN_SAFE_INTEGER.toString(),ySv=mQ?BigInt(Number.MIN_SAFE_INTEGER):void 0,Hd8=Number.MAX_SAFE_INTEGER.toString(),nuH=mQ?BigInt(Number.MAX_SAFE_INTEGER):void 0;var f3A=typeof Uint8Array.prototype.slice==="function",Zx=0,Ja=0,Hjo;var OY=typeof BigInt==="function"?BigInt.asIntN:void 0,g0Y=typeof BigInt==="function"?BigInt.asUintN:void 0,ou=Number.isSafeInteger,CM=Number.isFinite,bt=Math.trunc,AnP=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var a3A={};var OdH={VTB:!0};var vt;var w_m,tvo;var rHo=kI(0),zB={};ep.prototype.init=function(X,J,L,x){var Q=x===void 0?{}:x;x=Q.UW===void 0?!1:Q.UW;Q=Q.bu===void 0?!1:Q.bu;this.UW=x;this.bu=Q;X&&(X=fH(X,this.bu),this.K=X.buffer,this.j=X.L,this.T=J||0,this.N=L!==void 0?this.T+L:this.K.length,this.L=this.T)}; ep.prototype.free=function(){this.clear();md.length<100&&md.push(this)}; ep.prototype.clear=function(){this.K=null;this.j=!1;this.L=this.N=this.T=0;this.UW=!1}; ep.prototype.reset=function(){this.L=this.T}; var md=[];kc.prototype.free=function(){this.L.clear();this.K=this.T=-1;ZD.length<100&&ZD.push(this)}; kc.prototype.reset=function(){this.L.reset();this.N=this.L.L;this.K=this.T=-1}; var ZD=[];var NZo,mKm;nk.prototype.length=function(){return this.L.length}; nk.prototype.end=function(){var X=this.L;this.L=[];return X};var oa=dO(),aHI=dO(),wVV=dO(),tId=dO(),dCH=dO(),uve=dO(),ouu=dO(),bd0=dO(),Su8=dO(),P8u=dO();u9.prototype.toJSON=function(){return fM(this)}; u9.prototype.DH=function(X){return JSON.stringify(fM(this,X))}; u9.prototype.clone=function(){var X=this.rI,J=X[Gt]|0;return sY(this,X,J)?NO(this,X,!0):new this.constructor(Bt(X,J,!1))}; u9.prototype[EY]=Yn;u9.prototype.toString=function(){return this.rI.toString()};var K9I=S4(function(X,J,L,x,Q){if(X.K!==2)return!1;Xd(X,OE(J,x,L),Q);return!0},QWm),q9O=S4(function(X,J,L,x,Q){if(X.K!==2)return!1; Xd(X,OE(J,x,L),Q);return!0},QWm),vs=Symbol(),h2=Symbol(),pk=Symbol(),M68=Symbol(),DGZ=Symbol(),Ps,cs;var cSu=Bs(function(X,J,L){if(X.K!==1)return!1;NE(J,L,Nw(X.L));return!0},Ud,bd0),Eud=Bs(function(X,J,L){if(X.K!==1)return!1; X=Nw(X.L);NE(J,L,X===0?void 0:X);return!0},Ud,bd0),Yuv=Bs(function(X,J,L,x){if(X.K!==1)return!1; nH(J,L,x,Nw(X.L));return!0},Ud,bd0),heH=Bs(function(X,J,L){if(X.K!==0)return!1; NE(J,L,lh(X.L));return!0},mh,uve),ze8=Bs(function(X,J,L){if(X.K!==0)return!1; X=lh(X.L);NE(J,L,X===0?void 0:X);return!0},mh,uve),WFF=Bs(function(X,J,L,x){if(X.K!==0)return!1; nH(J,L,x,lh(X.L));return!0},mh,uve),pVe=Bs(function(X,J,L){if(X.K!==0)return!1; NE(J,L,R6(X.L));return!0},Zr,tId),rSv=Bs(function(X,J,L){if(X.K!==0)return!1; X=R6(X.L);NE(J,L,X===0?void 0:X);return!0},Zr,tId),vue=Bs(function(X,J,L,x){if(X.K!==0)return!1; nH(J,L,x,R6(X.L));return!0},Zr,tId),jHS=Bs(function(X,J,L){if(X.K!==1)return!1; NE(J,L,sE(X.L));return!0},function(X,J,L){L9v(X,L,DKP(J))},ouu),T3v=sd(function(X,J,L){if(X.K!==1&&X.K!==2)return!1; J=DD(J,J[Gt]|0,L);if(X.K==2)for(L=R6(X.L)>>>0,L=X.L.L+L;X.L.L>>0);return!0},function(X,J,L){J=V9(J); J!=null&&J!=null&&(wO(X,L,0),Hs(X.L,J))},dCH),B38=Bs(function(X,J,L){if(X.K!==0)return!1; NE(J,L,R6(X.L));return!0},function(X,J,L){J=nM(J); J!=null&&(J=parseInt(J,10),wO(X,L,0),ZWZ(X.L,J))},P8u);dGR.prototype.register=function(){Tu(this)};g.w(JV,u9);JV.prototype.N=uwm([0,Eud,ze8,-2,rSv]);var Y9Z={AKI:1,xN:2,Fhi:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};zge.prototype.R7=function(X){if(typeof X==="string"&&X.length!=0){var J=this.QO;if(J.K){X=X.split("&");for(var L=X.length-1;L>=0;L--){var x=X[L].split("="),Q=decodeURIComponent(x[0]);x.length>1?(x=decodeURIComponent(x[1]),x=/^[0-9]+$/g.exec(x)?parseInt(x,10):x):x=1;(Q=J.L[Q])&&Q.N(x)}}}};var CZ=null;var qJ=g.Ao.performance,sHv=!!(qJ&&qJ.mark&&qJ.measure&&qJ.clearMarks),Qs=WB(function(){var X;if(X=sHv){var J=J===void 0?window:J;if(CZ===null){CZ="";try{X="";try{X=J.top.location.hash}catch(x){X=J.location.hash}if(X){var L=X.match(/\bdeid=([\d,]+)/);CZ=L?L[1]:""}}catch(x){}}J=CZ;X=!!J.indexOf&&J.indexOf("1337")>=0}return X}); K3.prototype.disable=function(){this.L=!1;this.events!==this.K.google_js_reporting_queue&&(Qs()&&g.mF(this.events,T08),this.events.length=0)}; K3.prototype.start=function(X,J){if(!this.L)return null;var L=vDO()||rwz();X=new jWZ(X,J,L);J="goog_"+X.label+"_"+X.uniqueId+"_start";qJ&&Qs()&&qJ.mark(J);return X}; K3.prototype.end=function(X){if(this.L&&typeof X.value==="number"){var J=vDO()||rwz();X.duration=J-X.value;J="goog_"+X.label+"_"+X.uniqueId+"_end";qJ&&Qs()&&qJ.mark(J);!this.L||this.events.length>2048||this.events.push(X)}};var G1Z=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),wA=/#|$/,B0P=/[?&]($|#)/;N0Z.prototype.Hg=function(X,J,L,x,Q){Q=Q||this.Ao;try{var K=new Mz;K.L.push(1);K.K[1]=y4("context",X);J.error&&J.meta&&J.id||(J=new Pw(cw(J)));if(J.msg){var q=J.msg.substring(0,512);K.L.push(2);K.K[2]=y4("msg",q)}var D=J.meta||{};if(this.uD)try{this.uD(D)}catch(H){}if(x)try{x(D)}catch(H){}x=[D];K.L.push(3);K.K[3]=x;var C=gSA();if(C.K){var M=C.K.url||"";K.L.push(4);K.K[4]=y4("top",M)}var y={url:C.L.url||""};if(C.L.url){var n=g.gA(C.L.url);var V=Ii(n[1],null,n[3],n[4])}else V="";M=[y,{url:V}];K.L.push(5); K.K[5]=M;W9W(this.L,Q,K,L)}catch(H){try{W9W(this.L,Q,{context:"ecmserr",rctx:X,msg:cw(H),url:C&&C.L.url},L)}catch(O){}}return this.uw}; g.w(Pw,pBv);var bL,SG,uL=new K3;bL=new function(){var X="https:";YD&&YD.location&&YD.location.protocol==="http:"&&(X="http:");this.K=X;this.L=.01}; SG=new N0Z;YD&&YD.document&&(YD.document.readyState=="complete"?mGW():uL.L&&iS(YD,"load",function(){mGW()}));var Aw8=Date.now(),rA=-1,Ww=-1,IDY,vw=-1,p3=!1;jG.prototype.equals=function(X,J){return!!X&&(!(J===void 0?0:J)||this.volume==X.volume)&&this.N==X.N&&T1(this.L,X.L)&&!0};TF.prototype.kH=function(){return this.W}; TF.prototype.equals=function(X,J){return this.T.equals(X.T,J===void 0?!1:J)&&this.W==X.W&&T1(this.N,X.N)&&T1(this.B,X.B)&&this.L==X.L&&this.j==X.j&&this.K==X.K&&this.S==X.S};var N3H={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},RM={qA:"start",b7:"firstquartile",Tz:"midpoint",YN:"thirdquartile",COMPLETE:"complete",ERROR:"error",kN:"metric",PAUSE:"pause",ZD:"resume",ED:"skip",Wt:"viewable_impression",gK:"mute",Ir:"unmute",s8:"fullscreen",oD:"exitfullscreen",dY:"bufferstart",YE:"bufferfinish",SF:"fully_viewable_audible_half_duration_impression",Pt:"measurable_impression",zo:"abandon",JV:"engagedview",Go:"impression",Wm:"creativeview",NA:"loaded", m9B:"progress",CLOSE:"close",bvl:"collapse",ncl:"overlay_resize",bIC:"overlay_unmeasurable_impression",sS6:"overlay_unviewable_impression",GDH:"overlay_viewable_immediate_impression",SY6:"overlay_viewable_end_of_session_impression",xE:"custom_metric_viewable",ZV:"audio_audible",Bm:"audio_measurable",E8:"audio_impression"},arv="start firstquartile midpoint thirdquartile resume loaded".split(" "),wso=["start","firstquartile","midpoint","thirdquartile"],Dw8=["abandon"],M_={UNKNOWN:-1,qA:0,b7:1,Tz:2, YN:3,COMPLETE:4,kN:5,PAUSE:6,ZD:7,ED:8,Wt:9,gK:10,Ir:11,s8:12,oD:13,SF:14,Pt:15,zo:16,JV:17,Go:18,Wm:19,NA:20,xE:21,dY:22,YE:23,E8:27,Bm:28,ZV:29};var JBR={w59:"addEventListener",s_q:"getMaxSize",Svl:"getScreenSize",G49:"getState",M1H:"getVersion",k7I:"removeEventListener",bAB:"isViewable"};Ixe.prototype.update=function(X){X&&X.document&&(this.W=GF(!1,X,this.isMobileDevice),this.L=GF(!0,X,this.isMobileDevice),DzO(this,X),gIe(this,X))};sF.prototype.cancel=function(){dR().clearTimeout(this.L);this.L=null}; sF.prototype.schedule=function(){var X=this,J=dR(),L=x4().L.L;this.L=J.setTimeout(L3(L,Y4(143,function(){X.K++;X.N.sample()})),X5Y())};g.a=NJ.prototype;g.a.nQ=function(){return!1}; g.a.initialize=function(){return this.isInitialized=!0}; g.a.Um=function(){return this.L.gI}; g.a.MZ=function(){return this.L.Km}; g.a.fail=function(X,J){if(!this.Km||(J===void 0?0:J))this.Km=!0,this.gI=X,this.S=0,this.L!=this||mC(this)}; g.a.getName=function(){return this.L.jC}; g.a.HB=function(){return this.L.vC()}; g.a.vC=function(){return{}}; g.a.xA=function(){return this.L.S}; g.a.wA=function(){var X=lL();X.L=GF(!0,this.N,X.isMobileDevice)}; g.a.QR=function(){gIe(lL(),this.N)}; g.a.oz=function(){return this.T.L}; g.a.sample=function(){}; g.a.isActive=function(){return this.L.B}; g.a.tI=function(X){var J=this.L;this.L=X.xA()>=this.S?X:this;J!==this.L?(this.B=this.L.B,mC(this)):this.B!==this.L.B&&(this.B=this.L.B,mC(this))}; g.a.O7=function(X){if(X.K===this.L){var J=!this.T.equals(X,this.D);this.T=X;J&&M3v(this)}}; g.a.IY=function(){return this.D}; g.a.dispose=function(){this.FE=!0}; g.a.E6=function(){return this.FE};g.a=k4.prototype;g.a.observe=function(){return!0}; g.a.unobserve=function(){}; g.a.zY=function(X){this.j=X}; g.a.dispose=function(){if(!this.E6()){var X=this.K;g.u8(X.j,this);X.D&&this.IY()&&CSP(X);this.unobserve();this.Pl=!0}}; g.a.E6=function(){return this.Pl}; g.a.HB=function(){return this.K.HB()}; g.a.xA=function(){return this.K.xA()}; g.a.Um=function(){return this.K.Um()}; g.a.MZ=function(){return this.K.MZ()}; g.a.tI=function(){}; g.a.O7=function(){this.aU()}; g.a.IY=function(){return this.FE};g.a=Zk.prototype;g.a.xA=function(){return this.L.xA()}; g.a.Um=function(){return this.L.Um()}; g.a.MZ=function(){return this.L.MZ()}; g.a.create=function(X,J,L){var x=null;this.L&&(x=this.LB(X,J,L),UF(this.L,x));return x}; g.a.vR=function(){return this.b2()}; g.a.b2=function(){return!1}; g.a.init=function(X){return this.L.initialize()?(UF(this.L,this),this.T=X,!0):!1}; g.a.tI=function(X){X.xA()==0&&this.T(X.Um(),this)}; g.a.O7=function(){}; g.a.IY=function(){return!1}; g.a.dispose=function(){this.j=!0}; g.a.E6=function(){return this.j}; g.a.HB=function(){return{}};AV.prototype.add=function(X,J,L){++this.N;X=new nI8(X,J,L);this.L.push(new nI8(X.K,X.L,X.N+this.N/4096));this.K=!0;return this};w5Z.prototype.toString=function(){var X="//pagead2.googlesyndication.com//pagead/gen_204",J=Jm(this.L);J.length>0&&(X+="?"+J);return X};g.G.prototype.s1=!1;g.G.prototype.E6=function(){return this.s1}; g.G.prototype.dispose=function(){this.s1||(this.s1=!0,this.uB())}; g.G.prototype[Symbol.dispose]=function(){this.dispose()}; g.G.prototype.addOnDisposeCallback=function(X,J){this.s1?J!==void 0?X.call(J):X():(this.jl||(this.jl=[]),J&&(X=X.bind(J)),this.jl.push(X))}; g.G.prototype.uB=function(){if(this.jl)for(;this.jl.length;)this.jl.shift()()};iG.prototype.update=function(X,J,L){X&&(this.L+=J,this.K+=J,this.T+=J,this.N=Math.max(this.N,this.T));if(L===void 0?!X:L)this.T=0};var ubo=[1,.75,.5,.3,0];Q7.prototype.update=function(X,J,L,x,Q,K){K=K===void 0?!0:K;J=Q?Math.min(X,J):J;for(Q=0;Q0&&J>=q;q=!(X>0&&X>=q)||L;this.L[Q].update(K&&D,x,!K||q)}};$N.prototype.update=function(X,J,L,x){this.W=this.W!=-1?Math.min(this.W,J.Yi):J.Yi;this.aB=Math.max(this.aB,J.Yi);this.Pl=this.Pl!=-1?Math.min(this.Pl,J.bv):J.bv;this.gI=Math.max(this.gI,J.bv);this.Cm.update(J.bv,L.bv,J.L,X,x);this.vl+=X;J.Yi===0&&(this.jC+=X);this.K.update(J.Yi,L.Yi,J.L,X,x);L=x||L.On!=J.On?L.isVisible()&&J.isVisible():L.isVisible();J=!J.isVisible()||J.L;this.bB.update(L,X,J)}; $N.prototype.cN=function(){return this.bB.N>=this.O6};if(Ri&&Ri.URL){var UCd=Ri.URL,mCC;if(mCC=!!UCd){var k00;a:{if(UCd){var Zd3=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var Mb=Zd3.exec(decodeURIComponent(UCd));if(Mb){k00=Mb[1]&&Mb[1].length>1?Mb[1].substring(1):"true";break a}}catch(X){}}k00=""}mCC=k00.length>0}SG.uw=!mCC};var AS8=new vB(0,0,0,0);var hAS=new vB(0,0,0,0);g.w(V7,g.G);g.a=V7.prototype; g.a.uB=function(){if(this.ye.L){if(this.kx.Mu){var X=this.ye.L;typeof X.removeEventListener==="function"&&X.removeEventListener("mouseover",this.kx.Mu,xI());this.kx.Mu=null}this.kx.G$&&(X=this.ye.L,typeof X.removeEventListener==="function"&&X.removeEventListener("mouseout",this.kx.G$,xI()),this.kx.G$=null)}this.T1&&this.T1.dispose();this.I0&&this.I0.dispose();delete this.zn;delete this.Wg;delete this.Mz;delete this.ye.Fn;delete this.ye.L;delete this.kx;delete this.T1;delete this.I0;delete this.QO; g.G.prototype.uB.call(this)}; g.a.pw=function(){return this.I0?this.I0.L:this.position}; g.a.R7=function(X){x4().R7(X)}; g.a.IY=function(){return!1}; g.a.yC=function(){return new $N}; g.a.wZ=function(){return this.zn}; g.a.BC=function(X){return ra8(this,X,1E4)}; g.a.Wl=function(X,J,L,x,Q,K,q){this.Ae||(this.DJ&&(X=this.Be(X,L,Q,q),x=x&&this.uJ.Yi>=(this.On()?.3:.5),this.tp(K,X,x),this.aY=J,X.Yi>0&&-1===this.Fw&&(this.Fw=J),this.Zm==-1&&this.cN()&&(this.Zm=J),this.Ye==-2&&(this.Ye=y7(this.pw())?X.Yi:-1),this.uJ=X),this.Wg(this))}; g.a.tp=function(X,J,L){this.wZ().update(X,J,this.uJ,L)}; g.a.PY=function(){return new AS}; g.a.Be=function(X,J,L,x){L=this.PY();L.L=J;J=dR().K;J=Q4(Ri)===0?-1:J.isVisible()?0:1;L.K=J;L.Yi=this.CH(X);L.On=this.On();L.bv=x;return L}; g.a.CH=function(X){return this.opacity===0&&SJ(this.QO,"opac")===1?0:X}; g.a.On=function(){return!1}; g.a.Ee=function(){return this.Z6||this.jU}; g.a.QV=function(){zF()}; g.a.S$=function(){zF()}; g.a.MI=function(){return 0}; g.a.cN=function(){return this.zn.cN()}; g.a.Sx=function(){var X=this.DJ;X=(this.hasCompleted||this.E6())&&!X;var J=x4().K!==2||this.Wkm;return this.Ae||J&&X?2:this.cN()?4:3}; g.a.o4=function(){return 0};g.ON.prototype.next=function(){return g.yJ}; g.yJ={done:!0,value:void 0};g.ON.prototype.lW=function(){return this};g.w(eAW,AS);var nZ=leZ([void 0,1,2,3,4,8,16]),VJ=leZ([void 0,4,8,16]),Xce={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:bG("p0",VJ),p1:bG("p1",VJ),p2:bG("p2",VJ),p3:bG("p3",VJ),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:oM("mtos1",[0,2,4],!1,VJ),mtos2:oM("mtos2",[0,2,4],!1,VJ),mtos3:oM("mtos3",[0,2,4],!1,VJ),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:bG("a0",VJ),a1:bG("a1",VJ),a2:bG("a2",VJ),a3:bG("a3",VJ),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:bG("c0",VJ),c1:bG("c1",VJ),c2:bG("c2",VJ),c3:bG("c3",VJ),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:bG("qmtos",nZ),qnc:bG("qnc",nZ),qmv:bG("qmv",nZ),qnv:bG("qnv",nZ), 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:bG("ss0",VJ),ss1:bG("ss1",VJ),ss2:bG("ss2",VJ),ss3:bG("ss3",VJ),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"},JnF=Object.assign({},Xce,{avid:hw("audio"),avas:"avas",vs:"vs"}),LRu={atos:"atos",avt:oM("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(X,J){return function(L){return L[X]===void 0&&J!==void 0?J:L[X]}}("ss",0), t:"t"};EN.prototype.getValue=function(){return this.K}; EN.prototype.update=function(X,J){X>=32||(this.L&1<=.5;eG(J.volume)&&(this.T=this.T!=-1?Math.min(this.T,J.volume):J.volume,this.B=Math.max(this.B,J.volume));K&&(this.FE+=X,this.D+=Q?X:0);this.L.update(J.Yi,L.Yi,J.L,X,x,Q);this.N.update(!0,X);this.j.update(Q,X);this.Km.update(L.fullscreen,X);this.A0.update(Q&&!K,X);X=Math.floor(J.mediaTime/1E3);this.Bl.update(X,J.isVisible());this.J0.update(X,J.Yi>=1);this.SC.update(X, uG(J))}};mOR.prototype.K=function(X){this.N||(this.L(X)?(X=qdz(this.D,this.T,X),this.j|=X,X=X==0):X=!1,this.N=X)};g.w(zv,mOR);zv.prototype.L=function(){return!0}; zv.prototype.B=function(){return!1}; zv.prototype.getId=function(){var X=this,J=CJ(RM,function(L){return L==X.T}); return M_[J].toString()}; zv.prototype.toString=function(){var X="";this.B()&&(X+="c");this.N&&(X+="s");this.j>0&&(X+=":"+this.j);return this.getId()+X};g.w(Wl,zv);Wl.prototype.K=function(X,J){J=J===void 0?null:J;J!=null&&this.W.push(J);zv.prototype.K.call(this,X)};g.w(pq,kRZ);pq.prototype.K=function(){return null}; pq.prototype.N=function(){return[]};g.w(rF,k4);g.a=rF.prototype;g.a.Yw=function(){if(this.element){var X=this.element,J=this.K.L.N;try{try{var L=Q3O(X.getBoundingClientRect())}catch(M){L=new vB(0,0,0,0)}var x=L.right-L.left,Q=L.bottom-L.top,K=sHY(X,J),q=K.x,D=K.y;var C=new vB(Math.round(D),Math.round(q+x),Math.round(D+Q),Math.round(q))}catch(M){C=AS8.clone()}this.N=C;this.L=yBP(this,this.N)}}; g.a.Kb=function(){this.B=this.K.T.L}; g.a.Ju=function(X){var J=SJ(this.QO,"od")==1;return YYI(X,this.B,this.element,J)}; g.a.ao=function(){this.timestamp=zF()}; g.a.aU=function(){this.ao();this.Yw();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var X=this.element;var J=new g.B_(X.videoWidth,X.videoHeight);X=this.L;var L=j6(X),x=X.getHeight(),Q=J.width;J=J.height;Q<=0||J<=0||L<=0||x<=0||(Q/=J,J=L/x,X=X.clone(),Q>J?(L/=Q,x=(x-L)/2,x>0&&(x=X.top+x,X.top=Math.round(x),X.bottom=Math.round(x+L))):(x*=Q,L=Math.round((L-x)/2),L>0&&(L=X.left+L,X.left=Math.round(L),X.right=Math.round(L+x))));this.L=X}this.Kb(); X=this.L;L=this.B;X=X.left<=L.right&&L.left<=X.right&&X.top<=L.bottom&&L.top<=X.bottom?new vB(Math.max(X.top,L.top),Math.min(X.right,L.right),Math.min(X.bottom,L.bottom),Math.max(X.left,L.left)):new vB(0,0,0,0);L=X.top>=X.bottom||X.left>=X.right?new vB(0,0,0,0):X;X=this.K.T;J=Q=x=0;if((this.L.bottom-this.L.top)*(this.L.right-this.L.left)>0)if(this.Ju(L))L=new vB(0,0,0,0);else{x=lL().T;J=new vB(0,x.height,x.width,0);var K;x=nq(L,(K=this.j)!=null?K:this.L);Q=nq(L,lL().L);J=nq(L,J)}K=L.top>=L.bottom|| L.left>=L.right?new vB(0,0,0,0):G1(L,-this.L.left,-this.L.top);Bw()||(Q=x=0);this.D=new TF(X,this.element,this.L,K,x,Q,this.timestamp,J)}; g.a.getName=function(){return this.K.getName()};var xx0=new vB(0,0,0,0);g.w(jP,rF);g.a=jP.prototype;g.a.observe=function(){this.T();return!0}; g.a.O7=function(){rF.prototype.aU.call(this)}; g.a.ao=function(){}; g.a.Yw=function(){}; g.a.aU=function(){this.T();rF.prototype.aU.call(this)}; g.a.tI=function(X){X=X.isActive();X!==this.S&&(X?this.T():(lL().L=new vB(0,0,0,0),this.L=new vB(0,0,0,0),this.B=new vB(0,0,0,0),this.timestamp=-1));this.S=X};var HF={},qEv=(HF.firstquartile=0,HF.midpoint=1,HF.thirdquartile=2,HF.complete=3,HF);g.w(Gv,V7);g.a=Gv.prototype;g.a.IY=function(){return!0}; g.a.Og=function(){return this.EQ==2}; g.a.BC=function(X){return ra8(this,X,Math.max(1E4,this.N/3))}; g.a.Wl=function(X,J,L,x,Q,K,q){var D=this,C=this.W(this)||{};g.O1(C,Q);this.N=C.duration||this.N;this.D=C.isVpaid||this.D;this.jC=C.isYouTube||this.jC;dR();this.Cm=!1;Q=Aae(this,J);ZMP(this)===1&&(K=Q);V7.prototype.Wl.call(this,X,J,L,x,C,K,q);this.l3&&this.l3.N&&g.mF(this.B,function(M){M.K(D)})}; g.a.tp=function(X,J,L){V7.prototype.tp.call(this,X,J,L);Fl(this).update(X,J,this.uJ,L);this.O6=uG(this.uJ)&&uG(J);this.gI==-1&&this.J0&&(this.gI=this.wZ().N.L);this.nW.N=0;X=this.cN();J.isVisible()&&cl(this.nW,"vs");X&&cl(this.nW,"vw");eG(J.volume)&&cl(this.nW,"am");uG(J)?cl(this.nW,"a"):cl(this.nW,"mut");this.Ke&&cl(this.nW,"f");J.K!=-1&&(cl(this.nW,"bm"),J.K==1&&(cl(this.nW,"b"),uG(J)&&cl(this.nW,"umutb")));uG(J)&&J.isVisible()&&cl(this.nW,"avs");this.O6&&X&&cl(this.nW,"avw");J.Yi>0&&cl(this.nW, "pv");lG(this,this.wZ().N.L,!0)&&cl(this.nW,"gdr");gF(this.wZ().K,1)>=2E3&&cl(this.nW,"pmx");this.Cm&&cl(this.nW,"tvoff")}; g.a.yC=function(){return new YN}; g.a.wZ=function(){return this.zn}; g.a.PY=function(){return new eAW}; g.a.Be=function(X,J,L,x){X=V7.prototype.Be.call(this,X,J,L,x===void 0?-1:x);X.fullscreen=this.Ke;X.paused=this.Og();X.volume=L.volume;eG(X.volume)||(this.Lp++,J=this.uJ,eG(J.volume)&&(X.volume=J.volume));L=L.currentTime;X.mediaTime=L!==void 0&&L>=0?L:-1;return X}; g.a.CH=function(X){return lL(),this.Ke?1:V7.prototype.CH.call(this,X)}; g.a.MI=function(){return 1}; g.a.getDuration=function(){return this.N}; g.a.Sx=function(){return this.Ae?2:JKP(this)?5:this.cN()?4:3}; g.a.o4=function(){return this.A0?this.wZ().j.N>=2E3?4:3:2}; g.a.zY=function(X){this.I0&&this.I0.zY(X)};var iJH=g.$u();OHA.prototype.reset=function(){this.L=[];this.K=[]}; var m7=wR(OHA);g.w(Am,Zk);g.a=Am.prototype;g.a.getName=function(){return(this.K?this.K:this.L).getName()}; g.a.HB=function(){return(this.K?this.K:this.L).HB()}; g.a.xA=function(){return(this.K?this.K:this.L).xA()}; g.a.init=function(X){var J=!1;(0,g.mF)(this.N,function(L){L.initialize()&&(J=!0)}); J&&(this.T=X,UF(this.L,this));return J}; g.a.dispose=function(){(0,g.mF)(this.N,function(X){X.dispose()}); Zk.prototype.dispose.call(this)}; g.a.vR=function(){return Fe(this.N,function(X){return X.nQ()})}; g.a.b2=function(){return Fe(this.N,function(X){return X.nQ()})}; g.a.LB=function(X,J,L){return new rF(X,this.L,J,L)}; g.a.O7=function(X){this.K=X.K};var PhP={threshold:[0,.3,.5,.75,1]};g.w(Jp,rF);g.a=Jp.prototype;g.a.observe=function(){var X=this;this.aB||(this.aB=zF());if(ZjY(298,function(){return cKm(X)}))return!0; this.K.fail("msf");return!1}; g.a.unobserve=function(){if(this.T&&this.element)try{this.T.unobserve(this.element),this.S?(this.S.unobserve(this.element),this.S=null):this.W&&(this.W.disconnect(),this.W=null)}catch(X){}}; g.a.aU=function(){var X=Lu(this);X.length>0&&xh(this,X);rF.prototype.aU.call(this)}; g.a.Yw=function(){}; g.a.Ju=function(){return!1}; g.a.Kb=function(){}; g.a.HB=function(){var X={};return Object.assign(this.K.HB(),(X.niot_obs=this.aB,X.niot_cbk=this.Km,X))}; g.a.getName=function(){return"nio"};g.w(Qq,Zk);Qq.prototype.getName=function(){return"nio"}; Qq.prototype.b2=function(){return!lL().K&&this.L.L.N.IntersectionObserver!=null}; Qq.prototype.LB=function(X,J,L){return new Jp(X,this.L,J,L)};g.w(Ku,NJ);Ku.prototype.oz=function(){return lL().L}; Ku.prototype.nQ=function(){var X=YEP();this.S!==X&&(this.L!=this&&X>this.L.S&&(this.L=this,mC(this)),this.S=X);return X==2};q_.prototype.sample=function(){DQ(this,kN(),!1)}; q_.prototype.T=function(){var X=Bw(),J=zF();X?(p3||(rA=J,g.mF(m7.L,function(L){var x=L.wZ();x.Hl=hm(x,J,L.EQ!=1)})),p3=!0):(this.W=rKI(this,J),p3=!1,IDY=J,g.mF(m7.L,function(L){L.DJ&&(L.wZ().S=J)})); DQ(this,kN(),!X)}; var It=wR(q_);var j6v=null,Wi="",zw=!1;var fDA=GBm().Yd,Cu=GBm().d8;var lDv={WUl:"visible",ivY:"audible",RiC:"time",yv9:"timetype"},Rro={visible:function(X){return/^(100|[0-9]{1,2})$/.test(X)}, audible:function(X){return X=="0"||X=="1"}, timetype:function(X){return X=="mtos"||X=="tos"}, time:function(X){return/^(100|[0-9]{1,2})%$/.test(X)||/^([0-9])+ms$/.test(X)}}; FdW.prototype.setTime=function(X,J,L){J=="ms"?(this.N=X,this.T=-1):(this.N=-1,this.T=X);this.j=L===void 0?"tos":L;return this};g.w(Vq,zv);Vq.prototype.getId=function(){return this.W}; Vq.prototype.B=function(){return!0}; Vq.prototype.L=function(X){var J=X.wZ(),L=X.getDuration();return Fe(this.S,function(x){if(x.L!=void 0)var Q=s6e(x,J);else b:{switch(x.j){case "mtos":Q=x.K?J.j.N:J.N.L;break b;case "tos":Q=x.K?J.j.L:J.N.L;break b}Q=0}Q==0?x=!1:(x=x.N!=-1?x.N:L!==void 0&&L>0?x.T*L:-1,x=x!=-1&&Q>=x);return x})};g.w(Hi,Bzo);Hi.prototype.L=function(X){var J=new RAZ;J.L=Pl(X,Xce);J.K=Pl(X,LRu);return J};g.w(Ok,zv);Ok.prototype.L=function(X){return JKP(X)};g.w(at,kRZ);g.w(wL,zv);wL.prototype.L=function(X){return X.wZ().cN()};g.w(tp,Wl);tp.prototype.L=function(X){var J=g.tS(this.W,SJ(x4().QO,"ovms"));return!X.Ae&&(X.EQ!=0||J)};g.w(dL,at);dL.prototype.K=function(){return new tp(this.L)}; dL.prototype.N=function(){return[new wL("viewable_impression",this.L),new Ok(this.L)]};g.w(un,jP);un.prototype.T=function(){var X=g.Ld("ima.admob.getViewability"),J=SJ(this.QO,"queryid");typeof X==="function"&&J&&X(J)}; un.prototype.getName=function(){return"gsv"};g.w(ot,Zk);ot.prototype.getName=function(){return"gsv"}; ot.prototype.b2=function(){var X=lL();x4();return X.K&&!1}; ot.prototype.LB=function(X,J,L){return new un(this.L,J,L)};g.w(bn,jP);bn.prototype.T=function(){var X=this,J=g.Ld("ima.bridge.getNativeViewability"),L=SJ(this.QO,"queryid");typeof J==="function"&&L&&J(L,function(x){g.Mx(x)&&X.W++;var Q=x.opt_nativeViewVisibleBounds||{},K=x.opt_nativeViewHidden;X.L=KQe(x.opt_nativeViewBounds||{});var q=X.K.T;q.L=K?xx0.clone():KQe(Q);X.timestamp=x.opt_nativeTime||-1;lL().L=q.L;x=x.opt_nativeVolume;x!==void 0&&(q.volume=x)})}; bn.prototype.getName=function(){return"nis"};g.w(Su,Zk);Su.prototype.getName=function(){return"nis"}; Su.prototype.b2=function(){var X=lL();x4();return X.K&&!1}; Su.prototype.LB=function(X,J,L){return new bn(this.L,J,L)};g.w(Pi,NJ);g.a=Pi.prototype;g.a.nQ=function(){return this.K.lk!=null}; g.a.vC=function(){var X={};this.Bl&&(X.mraid=this.Bl);this.Pl&&(X.mlc=1);X.mtop=this.K.yOl;this.W&&(X.mse=this.W);this.vl&&(X.msc=1);X.mcp=this.K.compatibility;return X}; g.a.Xn=function(X){var J=g.fR.apply(1,arguments);try{return this.K.lk[X].apply(this.K.lk,J)}catch(L){hV(538,L,.01,function(x){x.method=X})}}; g.a.initialize=function(){var X=this;if(this.isInitialized)return!this.MZ();this.isInitialized=!0;if(this.K.compatibility===2)return this.W="ng",this.fail("w"),!1;if(this.K.compatibility===1)return this.W="mm",this.fail("w"),!1;lL().S=!0;this.N.document.readyState&&this.N.document.readyState=="complete"?kBY(this):M3(this.N,"load",function(){dR().setTimeout(Y4(292,function(){return kBY(X)}),100)},292); return!0}; g.a.wA=function(){var X=lL(),J=LhR(this,"getMaxSize");X.L=new vB(0,J.width,J.height,0)}; g.a.QR=function(){lL().T=LhR(this,"getScreenSize")}; g.a.dispose=function(){AKI(this);NJ.prototype.dispose.call(this)};var PFY=new function(X,J){this.key=X;this.defaultValue=J===void 0?!1:J;this.valueType="boolean"}("45378663");g.a=Ek.prototype;g.a.wu=function(X){Hl(X,!1);dwR(X)}; g.a.Fg=function(){}; g.a.Y8=function(X,J,L,x){var Q=this;X=new Gv(YD,X,L?J:-1,7,this.Nb(),this.YO());X.D3=x;jzW(X.QO);bB(X.QO,"queryid",X.D3);X.R7("");TzI(X,function(){return Q.Xo.apply(Q,g.nR(g.fR.apply(0,arguments)))},function(){return Q.XT.apply(Q,g.nR(g.fR.apply(0,arguments)))}); (x=wR(Zq).L)&&pte(X,x);this.N&&(X.zY(this.N),this.N=null);X.ye.Fn&&wR(hre);return X}; g.a.tI=function(X){switch(X.xA()){case 0:if(X=wR(Zq).L)X=X.L,g.u8(X.j,this),X.D&&this.IY()&&CSP(X);hp();break;case 2:gL()}}; g.a.O7=function(){}; g.a.IY=function(){return!1}; g.a.XT=function(X,J){X.Ae=!0;switch(X.MI()){case 1:Irm(X,J);break;case 2:this.TT(X)}}; g.a.L_=function(X){var J=X.W(X);J&&(J=J.volume,X.A0=eG(J)&&J>0);iHo(X,0);return Bl(X,"start",Bw())}; g.a.Am=function(X,J,L){DQ(It,[X],!Bw());return this.Ow(X,J,L)}; g.a.Ow=function(X,J,L){return Bl(X,L,Bw())}; g.a.A7=function(X){return ju(X,"firstquartile",1)}; g.a.Rx=function(X){X.J0=!0;return ju(X,"midpoint",2)}; g.a.K_=function(X){return ju(X,"thirdquartile",3)}; g.a.Ch=function(X){var J=ju(X,"complete",4);fq(X);return J}; g.a.lc=function(X){X.EQ=3;return Bl(X,"error",Bw())}; g.a.gh=function(X,J,L){J=Bw();if(X.Og()&&!J){var x=X.wZ(),Q=zF();x.S=Q}DQ(It,[X],!J);X.Og()&&(X.EQ=1);return Bl(X,L,J)}; g.a.mH=function(X,J){J=this.Am(X,J||{},"skip");fq(X);return J}; g.a.rG=function(X,J){Hl(X,!0);return this.Am(X,J||{},"fullscreen")}; g.a.Du=function(X,J){Hl(X,!1);return this.Am(X,J||{},"exitfullscreen")}; g.a.Ox=function(X,J,L){J=X.wZ();var x=zF();J.Hl=hm(J,x,X.EQ!=1);DQ(It,[X],!Bw());X.EQ==1&&(X.EQ=2);return Bl(X,L,Bw())}; g.a.yU=function(X){DQ(It,[X],!Bw());return X.K()}; g.a.JL=function(X){DQ(It,[X],!Bw());this.L2(X);fq(X);return X.K()}; g.a.Xo=function(){}; g.a.TT=function(){}; g.a.L2=function(){}; g.a.VR=function(){}; g.a.i_=function(){}; g.a.YO=function(){this.L||(this.L=this.i_());return this.L==null?new pq:new dL(this.L)}; g.a.Nb=function(){return new Hi};g.w(ln,zv);ln.prototype.L=function(X){return X.o4()==4};g.w(Rt,Wl);Rt.prototype.L=function(X){X=X.o4();return X==3||X==4};g.w(Bi,at);Bi.prototype.K=function(){return new Rt(this.L)}; Bi.prototype.N=function(){return[new ln(this.L)]};g.w(sk,Bzo);sk.prototype.L=function(X){X&&(X.e===28&&(X=Object.assign({},X,{avas:3})),X.vs===4||X.vs===5)&&(X=Object.assign({},X,{vs:3}));var J=new RAZ;J.L=Pl(X,JnF);J.K=Pl(X,LRu);return J};C9v.prototype.K=function(){return g.Ld(this.L)};g.w(N_,Ek);g.a=N_.prototype;g.a.Fg=function(X,J){var L=this,x=wR(Zq);if(x.L!=null)switch(x.L.getName()){case "nis":var Q=V4S(this,X,J);break;case "gsv":Q=n_P(this,X,J);break;case "exc":Q=Hkz(this,X)}Q||(J.opt_overlayAdElement?Q=void 0:J.opt_adElement&&(Q=DEv(this,X,J.opt_adElement,J.opt_osdId)));Q&&Q.MI()==1&&(Q.W==g.z1&&(Q.W=function(K){return L.VR(K)}),y2m(this,Q,J)); return Q}; g.a.VR=function(X){X.K=0;X.FE=0;if(X.T=="h"||X.T=="n"){x4();X.SC&&(x4(),rL(this)!="h"&&rL(this));var J=g.Ld("ima.common.getVideoMetadata");if(typeof J==="function")try{var L=J(X.D3)}catch(Q){X.K|=4}else X.K|=2}else if(X.T=="b")if(J=g.Ld("ytads.bulleit.getVideoMetadata"),typeof J==="function")try{L=J(X.D3)}catch(Q){X.K|=4}else X.K|=2;else if(X.T=="ml")if(J=g.Ld("ima.common.getVideoMetadata"),typeof J==="function")try{L=J(X.D3)}catch(Q){X.K|=4}else X.K|=2;else X.K|=1;X.K||(L===void 0?X.K|=8:L===null? X.K|=16:g.Mx(L)?X.K|=32:L.errorCode!=null&&(X.FE=L.errorCode,X.K|=64));L==null&&(L={});J=L;X.S=0;for(var x in N3H)J[x]==null&&(X.S|=N3H[x]);$ER(J,"currentTime");$ER(J,"duration");eG(L.volume)&&eG()&&(L.volume*=NaN);return L}; g.a.i_=function(){x4();rL(this)!="h"&&rL(this);var X=Ok8(this);return X!=null?new C9v(X):null}; g.a.TT=function(X){!X.L&&X.Ae&&vi(this,X,"overlay_unmeasurable_impression")&&(X.L=!0)}; g.a.L2=function(X){X.n2&&(X.cN()?vi(this,X,"overlay_viewable_end_of_session_impression"):vi(this,X,"overlay_unviewable_impression"),X.n2=!1)}; g.a.Xo=function(){}; g.a.Y8=function(X,J,L,x){if(cwW()){var Q=SJ(x4().QO,"mm"),K={};(Q=(K[iL.Vg]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",K[iL.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",K)[Q])&&dEe(this,Q);this.T==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&hV(1044,Error())}X=Ek.prototype.Y8.call(this,X,J,L,x);this.j&&(J=this.B,X.j==null&&(X.j=new GRz),J.L[X.D3]=X.j,X.j.j=iJH);return X}; g.a.wu=function(X){X&&X.MI()==1&&this.j&&delete this.B.L[X.D3];return Ek.prototype.wu.call(this,X)}; g.a.YO=function(){this.L||(this.L=this.i_());return this.L==null?new pq:this.T==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Bi(this.L):new dL(this.L)}; g.a.Nb=function(){return this.T==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new sk:new Hi}; g.a.zY=function(X,J,L,x,Q){J=new vB(L,J+x,L+Q,J);(X=UN(m7,X))?X.zY(J):this.N=J}; var QS8=EF(193,o_Y,void 0,g_Y);g.JS("Goog_AdSense_Lidar_sendVastEvent",QS8);var KRH=Y4(194,function(X,J){J=J===void 0?{}:J;X=t4m(wR(N_),X,J);return udW(X)}); g.JS("Goog_AdSense_Lidar_getViewability",KRH);var q1I=EF(195,function(){return HJW()}); g.JS("Goog_AdSense_Lidar_getUrlSignalsArray",q1I);var IRH=Y4(196,function(){return JSON.stringify(HJW())}); g.JS("Goog_AdSense_Lidar_getUrlSignalsList",IRH);var P98=VP(["//ep2.adtrafficquality.google/sodar/",""]),c28=VP(["//tpc.googlesyndication.com/sodar/",""]);g.w(kh,Error);g.w(Xi,g.G);Xi.prototype.J3=function(){return this.wpc.f()}; Xi.prototype.LM=function(X){this.wpc.c(X)}; Xi.prototype.VX=function(X){return this.wpc.m(zFo(X))}; Xi.prototype.xI=function(X){return this.wpc.mws(zFo(X))}; g.w(ZQ,g.G);ZQ.prototype.snapshot=function(X){return this.Oo.s(Object.assign({},X.wJ&&{c:X.wJ},X.NW&&{s:X.NW},X.Pi!==void 0&&{p:X.Pi}))}; ZQ.prototype.zA=function(X){this.Oo.e(X)}; ZQ.prototype.Qb=function(){return this.Oo.l()};var TOA;g.w(L5,g.G);L5.prototype.share=function(){if(this.E6())throw Error("E:AD");this.T++;return this}; L5.prototype.dispose=function(){--this.T||g.G.prototype.dispose.call(this)}; TOA=Symbol.dispose;GWm.prototype.JK=function(X,J){this.L.JK("/client_streamz/bg/frs",X,J)}; frz.prototype.JK=function(X,J,L,x,Q,K){this.L.JK("/client_streamz/bg/wrl",X,J,L,x,Q,K)}; eF8.prototype.pY=function(X,J){this.L.XL("/client_streamz/bg/ec",X,J)}; FhS.prototype.JK=function(X,J,L){this.L.JK("/client_streamz/bg/el",X,J,L)}; lre.prototype.pY=function(X,J){this.L.XL("/client_streamz/bg/cec",X,J)}; RFm.prototype.pY=function(X,J){this.L.XL("/client_streamz/bg/po/csc",X,J)}; BOI.prototype.pY=function(X,J){this.L.XL("/client_streamz/bg/po/ctav",X,J)}; sao.prototype.pY=function(X,J){this.L.XL("/client_streamz/bg/po/cwsc",X,J)};g.w(NOe,u9);g.w(QY,u9);var C5=[1,2,3];var gSu=[0,C5,FFC,vue,fH0];var DxF=[0,Ir,[0,cSu,heH]];g.w(K5,u9);var $f=[1,2,3];var $xv=[0,$f,WFF,Yuv,Dv,DxF];g.w(qY,u9);var CBF=[0,Ir,gSu,$xv];var MJC=[0,qb];g.w(Ik,u9);var yn3=[0,qb,-1,G00];var nS3=[0,qb,-1,pVe,G00];g.w(gg,u9);var CTA=[1,2,3];var VJC=[0,CTA,Dv,yn3,Dv,nS3,Dv,MJC];g.w(DI,u9);DI.prototype.dU=function(){var X=KH(this,3,Pt,3,!0);B5(X);return X[void 0]};DI.prototype.N=uwm([0,qb,VJC,eeH,Ir,CBF,jHS,T3v]);g.w(mEA,u9);g.a=MY.prototype;g.a.isEnabled=function(){if(!g.Ao.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{YI:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.a.set=function(X,J,L){var x=!1;if(typeof L==="object"){var Q=L.YMB;x=L.secure||!1;var K=L.domain||void 0;var q=L.path||void 0;var D=L.YI}if(/[;=\s]/.test(X))throw Error('Invalid cookie name "'+X+'"');if(/[;\r\n]/.test(J))throw Error('Invalid cookie value "'+J+'"');D===void 0&&(D=-1);L=K?";domain="+K:"";q=q?";path="+q:"";x=x?";secure":"";D=D<0?"":D==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+D*1E3)).toUTCString();this.L.cookie=X+"="+J+L+q+D+x+(Q!=null?";samesite="+ Q:"")}; g.a.get=function(X,J){for(var L=X+"=",x=(this.L.cookie||"").split(";"),Q=0,K;Q=0;J--)this.remove(X[J])}; var Yb=new MY(typeof document=="undefined"?null:document);n5.prototype.compress=function(X){var J,L,x,Q;return g.p(function(K){switch(K.K){case 1:return J=new CompressionStream("gzip"),L=(new Response(J.readable)).arrayBuffer(),x=J.writable.getWriter(),g.z(K,x.write((new TextEncoder).encode(X)),2);case 2:return g.z(K,x.close(),3);case 3:return Q=Uint8Array,g.z(K,L,4);case 4:return K.return(new Q(K.L))}})}; n5.prototype.isSupported=function(X){return X<1024?!1:typeof CompressionStream!=="undefined"};g.w(VY,u9);HI.prototype.setInterval=function(X){this.intervalMs=X;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; HI.prototype.start=function(){var X=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){X.tick()},this.intervalMs),this.K=this.L())}; HI.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; HI.prototype.tick=function(){var X=this;if(this.enabled){var J=Math.max(this.L()-this.K,0);J0?L:void 0));L=JK(L,4,y9(Q>0?Q:void 0));L=JK(L,5,y9(K>0?K:void 0));Q=L.rI;K=Q[Gt]|0;L=R3(L,K)?L:sY(L,Q,K)?NO(L,Q):new L.constructor(Bt(Q,K,!0));tK(q,wg,10,L)}q=this.L.clone();L=Date.now().toString();q=JK(q,4,ut(L));X=dq(q,cI,3,X.slice());x&&(q=new OG,x=JK(q,13,y9(x)),q=new ak, x=tK(q,OG,2,x),q=new PI,x=tK(q,ak,1,x),x=jp(x,2,9),tK(X,PI,18,x));J&&pH(X,14,J);return X};g.WI.prototype.K=0;g.WI.prototype.reset=function(){this.L=this.N=this.T;this.K=0}; g.WI.prototype.getValue=function(){return this.N};g.w(A2,u9);var HJV=Xe(A2);g.w(t6z,u9);var Oo;Oo=new dGR;g.w(jC,g.G);g.a=jC.prototype;g.a.uB=function(){vI(this);this.K.stop();this.Bl.stop();g.G.prototype.uB.call(this)}; g.a.dispatch=function(X){if(X instanceof cI)this.log(X);else try{var J=new cI,L=X.DH();var x=rq(J,8,L);this.log(x)}catch(Q){TD(this,4,1)}}; g.a.log=function(X){TD(this,2,1);if(this.vl){X=X.clone();var J=this.bB++;X=pH(X,21,J);this.componentId&&rq(X,26,this.componentId);J=X;var L=Aa(J,1);var x=x===void 0?!1:x;var Q=typeof L;x=L==null?L:Q==="bigint"?String(OY(64,L)):MO(L)?Q==="string"?Ht(L):x?au(L):wz(L):void 0;x==null&&(x=Date.now(),x=Number.isFinite(x)?x.toString():"0",JK(J,1,ut(x)));x=Aa(J,15);x!=null&&(typeof x==="bigint"?TR(x)?x=Number(x):(x=OY(64,x),x=TR(x)?Number(x):String(x)):x=MO(x)?typeof x==="number"?wz(x):Ht(x):void 0);x!=null|| pH(J,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(x=this.experimentIds.clone(),tK(J,VY,16,x));TD(this,1,1);J=this.L.length-1E3+1;J>0&&(this.L.splice(0,J),this.T+=J,TD(this,3,J));this.L.push(X);this.tH||this.K.enabled||this.K.start()}}; g.a.flush=function(X,J){var L=this;if(this.L.length===0)X&&X();else if(this.gI&&this.Km)this.N.K=3,wwZ(this);else{var x=Date.now();if(this.Hl>x&&this.FE0&&(L.FE=Date.now(),L.Hl=L.FE+V);V=Cd(zR);var u;Tt&&V&&((u=H.rI[V])==null?void 0:u[175237375])!=null&&v5($CS,3);a:{var S=S===void 0?!1:S;if(Cd(C80)&&Cd(zR)&&void 0===C80){u=H.rI;V=u[zR];if(!V)break a;if(V=V.jg)try{V(u,175237375,OdH);break a}catch(Y){o3(Y)}}S&&(S=H.rI, (u=Cd(zR))&&u in S&&(S=S[u])&&delete S[175237375])}S=Oo.L?Oo.K(H,Oo.L,175237375,Oo.N):Oo.K(H,175237375,null,Oo.N);if(S=S===null?void 0:S)S=cT(S,1,-1),S!==-1&&(L.j=new g.WI(S<1?1:S,3E5,.1),L.K.setInterval(L.j.getValue()))}}X&&X();L.B=0},y=function(V,H){var O=wq(K,cI,3); var u=Number(v0O(K,14));g.p5(L.j);L.K.setInterval(L.j.getValue());V===401&&q&&(L.jC=q);u&&(L.T+=u);H===void 0&&(H=L.isRetryable(V));H&&(L.L=O.concat(L.L),L.tH||L.K.enabled||L.K.start());TD(L,7,1);J&&J("net-send-failed",V);++L.B},n=function(){L.network&&L.network.send(C,M,y)}; D?D.then(function(V){TD(L,5,Q);C.requestHeaders["Content-Encoding"]="gzip";C.requestHeaders["Content-Type"]="application/binary";C.body=V;C.hx=2;n()},function(){TD(L,6,Q); n()}):n()}}}}; g.a.isRetryable=function(X){return 500<=X&&X<600||X===401||X===0};GD.prototype.send=function(X,J,L){var x=this,Q,K,q,D,C,M,y,n,V,H;return g.p(function(O){switch(O.K){case 1:return K=(Q=x.UD?new AbortController:void 0)?setTimeout(function(){Q.abort()},X.timeoutMillis):void 0,g.oz(O,2,3),q=Object.assign({},{method:X.requestType, headers:Object.assign({},X.requestHeaders)},X.body&&{body:X.body},X.withCredentials&&{credentials:"include"},{signal:X.timeoutMillis&&Q?Q.signal:null}),g.z(O,fetch(X.url,q),5);case 5:D=O.L;if(D.status!==200){(C=L)==null||C(D.status);O.fm(3);break}if((M=J)==null){O.fm(7);break}return g.z(O,D.text(),8);case 8:M(O.L);case 7:case 3:g.WW(O);clearTimeout(K);g.pR(O,0);break;case 2:y=g.EA(O);switch((n=y)==null?void 0:n.name){case "AbortError":(V=L)==null||V(408);break;default:(H=L)==null||H(400)}O.fm(3)}})}; GD.prototype.TI=function(){return 4};g.w(f5,g.G);f5.prototype.bV=function(){this.j=!0;return this}; f5.prototype.build=function(){this.network||(this.network=new GD);var X=new jC({logSource:this.logSource,YS:this.YS?this.YS:qFS,sessionIndex:this.sessionIndex,lHE:this.zq,eY:this.T,tH:!1,bV:this.j,A5:this.A5,network:this.network});g.f(this,X);if(this.K){var J=this.K,L=zD(X.N);rq(L,7,J)}X.W=new n5;this.componentId&&(X.componentId=this.componentId);this.Su&&(X.Su=this.Su);this.pageId&&(X.pageId=this.pageId);this.L&&((L=this.L)?(X.experimentIds||(X.experimentIds=new VY),J=X.experimentIds,L=L.DH(),rq(J, 4,L)):X.experimentIds&&JK(X.experimentIds,4));this.N&&(X.gI=X.Km);n4R(X.N);this.network.DE&&this.network.DE(this.logSource);this.network.XOH&&this.network.XOH(X);return X};g.w(eC,g.G);eC.prototype.flush=function(X){X=X||[];if(X.length){for(var J=new mEA,L=[],x=0;x-1?(J=X[q],L||(J.CB=!1)):(J=new cVI(J,this.src,K,!!x,Q),J.CB=L,X.push(J));return J}; g.a.remove=function(X,J,L,x){X=X.toString();if(!(X in this.listeners))return!1;var Q=this.listeners[X];J=ZI(Q,J,L,x);return J>-1?(UG(Q[J]),g.d3(Q,J),Q.length==0&&(delete this.listeners[X],this.L--),!0):!1}; g.a.removeAll=function(X){X=X&&X.toString();var J=0,L;for(L in this.listeners)if(!X||L==X){for(var x=this.listeners[L],Q=0;Q-1?X[Q]:null}; g.a.hasListener=function(X,J){var L=X!==void 0,x=L?X.toString():"",Q=J!==void 0;return g.iB(this.listeners,function(K){for(var q=0;q>>0);g.MC(g.$W,g.G);g.$W.prototype[SFO]=!0;g.a=g.$W.prototype;g.a.addEventListener=function(X,J,L,x){g.X1(this,X,J,L,x)}; g.a.removeEventListener=function(X,J,L,x){rVA(this,X,J,L,x)}; g.a.dispatchEvent=function(X){var J=this.sx;if(J){var L=[];for(var x=1;J;J=J.sx)L.push(J),++x}J=this.SG;x=X.type||X;if(typeof X==="string")X=new g.BI(X,J);else if(X instanceof g.BI)X.target=X.target||J;else{var Q=X;X=new g.BI(x,J);g.O1(X,Q)}Q=!0;var K;if(L)for(K=L.length-1;!X.K&&K>=0;K--){var q=X.currentTarget=L[K];Q=Mp(q,x,!0,X)&&Q}X.K||(q=X.currentTarget=J,Q=Mp(q,x,!0,X)&&Q,X.K||(Q=Mp(q,x,!1,X)&&Q));if(L)for(K=0;!X.K&&K0){this.K--;var X=this.L;this.L=X.next;X.next=null}else X=this.N();return X};var Vl;OQ.prototype.add=function(X,J){var L=eHY.get();L.set(X,J);this.K?this.K.next=L:this.L=L;this.K=L}; OQ.prototype.remove=function(){var X=null;this.L&&(X=this.L,this.L=this.L.next,this.L||(this.K=null),X.next=null);return X}; var eHY=new yl(function(){return new ag},function(X){return X.reset()}); ag.prototype.set=function(X,J){this.L=X;this.scope=J;this.next=null}; ag.prototype.reset=function(){this.next=this.scope=this.L=null};var wJ,tg=!1,GFz=new OQ;FCS.prototype.reset=function(){this.context=this.K=this.N=this.L=null;this.T=!1}; var lke=new yl(function(){return new FCS},function(X){X.reset()}); g.og.prototype.then=function(X,J,L){return AVm(this,nA(typeof X==="function"?X:null),nA(typeof J==="function"?J:null),L)}; g.og.prototype.$goog_Thenable=!0;g.a=g.og.prototype;g.a.finally=function(X){var J=this;X=nA(X);return new Promise(function(L,x){NAe(J,function(Q){X();L(Q)},function(Q){X(); x(Q)})})}; g.a.S1=function(X,J){return AVm(this,null,nA(X),J)}; g.a.catch=g.og.prototype.S1;g.a.cancel=function(X){if(this.L==0){var J=new pA(X);g.dJ(function(){UJS(this,J)},this)}}; g.a.nM6=function(X){this.L=0;uq(this,2,X)}; g.a.bWl=function(X){this.L=0;uq(this,3,X)}; g.a.q4=function(){for(var X;X=mJm(this);)kFA(this,X,this.L,this.W);this.B=!1}; var x3m=o3;g.MC(pA,y0);pA.prototype.name="cancel";g.MC(g.rJ,g.$W);g.a=g.rJ.prototype;g.a.enabled=!1;g.a.bH=null;g.a.setInterval=function(X){this.MP=X;this.bH&&this.enabled?(this.stop(),this.start()):this.bH&&this.stop()}; g.a.B2l=function(){if(this.enabled){var X=g.$u()-this.lr;X>0&&X0&&(this.getStatus(),this.B=setTimeout(this.ij.bind(this), this.Km)),this.getStatus(),this.D=!0,this.L.send(X),this.D=!1}catch(q){this.getStatus(),Oqv(this,q)}}; g.a.ij=function(){typeof B4!="undefined"&&this.L&&(this.T="Timed out after "+this.Km+"ms, aborting",this.K=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.a.abort=function(X){this.L&&this.N&&(this.getStatus(),this.N=!1,this.j=!0,this.L.abort(),this.j=!1,this.K=X||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Rg(this))}; g.a.uB=function(){this.L&&(this.N&&(this.N=!1,this.j=!0,this.L.abort(),this.j=!1),Rg(this,!0));g.lq.yD.uB.call(this)}; g.a.gV=function(){this.E6()||(this.Pl||this.D||this.j?aqe(this):this.BQ6())}; g.a.BQ6=function(){aqe(this)}; g.a.isActive=function(){return!!this.L}; g.a.isComplete=function(){return g.sQ(this)==4}; g.a.getStatus=function(){try{return g.sQ(this)>2?this.L.status:-1}catch(X){return-1}}; g.a.getResponseHeader=function(X){if(this.L&&this.isComplete())return X=this.L.getResponseHeader(X),X===null?void 0:X}; g.a.getLastError=function(){return typeof this.T==="string"?this.T:String(this.T)};Zz.prototype.send=function(X,J,L){J=J===void 0?function(){}:J; L=L===void 0?function(){}:L; VP8(X.url,function(x){x=x.target;Np(x)?J(g.UQ(x)):L(x.getStatus())},X.requestType,X.body,X.requestHeaders,X.timeoutMillis,X.withCredentials)}; Zz.prototype.TI=function(){return 1};Xk.prototype.done=function(){this.logger.kJ(this.event,Ag()-this.startTime)}; g.w(JU,L5);g.w(xx,JU);g.a=xx.prototype;g.a.Ef=function(){}; g.a.Pk=function(){}; g.a.kJ=function(){}; g.a.ZI=function(){}; g.a.Fk=function(){}; g.a.Bo=function(X,J,L,x){return x}; g.a.hc=function(){}; g.a.aj=function(){}; g.a.uG=function(){}; g.a.Xt=function(){}; g.w(ix,JU);g.a=ix.prototype;g.a.update=function(X){this.logger.dispose();this.logger=X}; g.a.Pk=function(X){this.logger.Pk(X)}; g.a.kJ=function(X,J){this.logger.kJ(X,J)}; g.a.ZI=function(X){this.logger.ZI(X)}; g.a.Fk=function(){this.logger.Fk()}; g.a.Bo=function(X,J,L,x){return this.logger.Bo(X,J,L,x)}; g.a.hc=function(X){this.logger.hc(X)}; g.a.aj=function(X){this.logger.aj(X)}; g.a.uG=function(X){this.logger.uG(X)}; g.a.Xt=function(X){this.logger.Xt(X)}; g.a.Ef=function(X){this.logger.Ef(X)}; g.w(Q3,g.G);g.w(Kz,JU);g.a=Kz.prototype;g.a.Ef=function(X){this.metrics.LkB.JK(X,this.ej)}; g.a.Pk=function(X){this.metrics.eventCount.pY(X,this.ej)}; g.a.kJ=function(X,J){this.metrics.jK.JK(J,X,this.ej)}; g.a.ZI=function(X){this.metrics.errorCount.pY(X,this.ej)}; g.a.Bo=function(X,J,L,x){function Q(D){if(!K.E6()){var C=Ag()-q;K.metrics.in6.JK(C,X,L,D,J,K.ej)}} var K=this,q=Ag();x.then(function(){return void Q(0)},function(D){return void Q(D instanceof GL?D.code:-1)}); return x}; g.a.hc=function(X){this.metrics.hqE.pY(X,this.ej)}; g.a.aj=function(X){this.metrics.kp.pY(X,this.ej)}; g.a.uG=function(X){this.metrics.u4H.pY(X,this.ej)}; g.w(qn,Kz);qn.prototype.Xt=function(X){var J=this;X=X.slice();g.BV(X);g.NC(X,this.K)||(this.L.dispose(),this.N&&this.service.dispose(),this.service=this.options.kC("49",this.options.iE.concat(X)),this.L=new Q3(function(){return void J.service.PV()},this.options.Ne),this.metrics=d3P(this.service),this.K=X)}; qn.prototype.Fk=function(){oNS(this.L)};g.w(IB,u9);g.w(gj,u9);g.w(DC,u9);var jMY=Xe(DC),SNv=function(X){return I3(function(J){return J instanceof X&&!R3(J)})}(DC); DC.messageId="bfkj";g.w(J$,u9);g.w($x,u9);var PGv=Xe($x);g.w(Mn,g.G);Mn.prototype.snapshot=function(X){if(this.E6())throw Error("Already disposed");this.logger.Pk("n");var J=this.logger.share();return this.N.then(function(L){var x=L.LD;return new Promise(function(Q){var K=new Xk(J,"n");x(function(q){K.done();J.Ef(q.length);J.Fk();J.dispose();Q(q)},[X.wJ, X.NW,X.i7,X.Pi])})})}; Mn.prototype.fN=function(X){var J=this;if(this.E6())throw Error("Already disposed");this.logger.Pk("n");var L=Lz(this.logger,function(){return J.T([X.wJ,X.NW,X.i7,X.Pi])},"n"); this.logger.Ef(L.length);this.logger.Fk();return L}; Mn.prototype.zA=function(X){this.N.then(function(J){var L;(L=J.I2l)==null||L(X)})}; Mn.prototype.Qb=function(){return this.logger.share()};g.w(V3,u9);g.w(HO,u9);Og.prototype.x0=function(X){return eSP(this,X,new xx,0)};g.w(aB,g.G);aB.prototype.snapshot=function(X){var J=this;return g.p(function(L){switch(L.K){case 1:if(J.E6())throw Error("Already disposed");if(J.K||J.W){L.fm(2);break}return g.z(L,J.j.promise,2);case 2:if(!J.K){L.fm(4);break}return g.z(L,J.K.snapshot(X),5);case 5:return L.return(L.L);case 4:throw J.W;}})}; aB.prototype.zA=function(X){var J,L;(J=this.K)==null||(L=J.zA)==null||L.call(J,X)}; aB.prototype.handleError=function(X){if(!this.E6()){this.W=X;this.j.resolve();var J,L;(L=(J=this.options).aw9)==null||L.call(J,X)}}; aB.prototype.Qb=function(){return this.logger.share()}; var RSz={KQq:432E5,gq:3E5,Vx:10,Hc:1E4,xY:3E4,bN:3E4,DQM:6E4,Zz:1E3,Vf:6E4,E4:6E5,BZ:.25,vZ:2,maxAttempts:10};var wcH,Xio=(wcH=Math.imul)!=null?wcH:function(X,J){return X*J|0},ux=[196, 200,224,18];oB.prototype.DH=function(){return String(this.L)+","+this.K.join()}; oB.prototype.oi=function(X,J){var L=void 0;if(this.K[this.L]!==X){var x=this.K.indexOf(X);x!==-1?(this.K.splice(x,1),x0;)J[L++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(X%62),X=Math.floor(X/62);return J.join("")}};var Muz;g.w(SF,g.G);SF.prototype.xI=function(X,J){var L=this.VX(X);J==null||J(L);return Lz(this.logger,function(){return g.S3(L,2)},this.K)}; Muz=Symbol.dispose;g.w(Eg,SF);Eg.prototype.VX=function(X,J){var L=this;this.logger.Pk(this.L);++this.j>=this.B&&this.N.resolve();var x=X();X=Lz(this.logger,function(){return L.T(x)},"C"); if(X===void 0)throw new kh(17,"YNJ:Undefined");if(!(X instanceof Uint8Array))throw new kh(18,"ODM:Invalid");J==null||J(X);return X}; g.w(Yx,SF);Yx.prototype.VX=function(){return this.T}; g.w(hU,SF);hU.prototype.VX=function(){var X=this;return Lz(this.logger,function(){return c5(X.T)},"d")}; hU.prototype.xI=function(){return this.T}; g.w(zh,SF);zh.prototype.VX=function(){if(this.T)return this.T;this.T=ypm(this,function(X){return"_"+CnS(X)}); return ypm(this,function(X){return X})}; g.w(pz,SF);pz.prototype.VX=function(){var X=Math.floor(Date.now()/1E3),J=[Math.random()*255,Math.random()*255],L=J.concat([this.T&255,this.clientState],[X>>24&255,X>>16&255,X>>8&255,X&255]);X=new Uint8Array(2+L.length);X[0]=34;X[1]=L.length;X.set(L,2);L=X.subarray(2);for(var x=J=J.length;x150))try{this.cache=new qkI(X,this.logger)}catch(J){this.reportError(new kh(22,"GBJ:init",J))}}; g.a.reportError=function(X){this.logger.ZI(X.code);this.onError(X);return X}; var Hum=function(X){return I3(function(J){if(!guH(J))return!1;for(var L=g.d(Object.entries(X)),x=L.next();!x.done;x=L.next()){var Q=g.d(x.value);x=Q.next().value;Q=Q.next().value;if(!(x in J)){if(Q.MYM===!0)continue;return!1}if(!Q(J[x]))return!1}return!0})}({Oo:function(X){return I3(function(J){return J instanceof X})}(aB)},"");var kLz=(new Date).getTime();g.w(Gh,u9);var tJF=Xe(Gh);SkR.prototype.getMetadata=function(){return this.metadata};fz.prototype.getMetadata=function(){return this.metadata}; fz.prototype.getStatus=function(){return this.status};eF.prototype.W=function(X,J){J=J===void 0?{}:J;return new SkR(X,this,J)}; eF.prototype.getName=function(){return this.name};var dxC=new eF("/google.internal.waa.v1.Waa/Create",V3,Gh,function(X){return X.DH()},tJF);g.w(Fk,u9);var Gv8=new eF("/google.internal.waa.v1.Waa/GenerateIT",HO,Fk,function(X){return X.DH()},Xe(Fk));var L0o=new Set(["SAPISIDHASH","APISIDHASH"]);g.w(lx,u9);lx.prototype.getValue=function(){var X=Aa(this,2);if(Array.isArray(X)||X instanceof u9)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return I6(this,2)};g.w(RB,u9);RB.prototype.getMessage=function(){return Yc(this,2)}; var zNm=Xe(RB);BO.prototype.yH=function(X,J){X=="data"?this.N.push(J):X=="metadata"?this.j.push(J):X=="status"?this.B.push(J):X=="end"?this.T.push(J):X=="error"&&this.K.push(J);return this}; BO.prototype.removeListener=function(X,J){X=="data"?kx(this.N,J):X=="metadata"?kx(this.j,J):X=="status"?kx(this.B,J):X=="end"?kx(this.T,J):X=="error"&&kx(this.K,J);return this}; BO.prototype.cancel=function(){this.L.abort()}; BO.prototype.cancel=BO.prototype.cancel;BO.prototype.removeListener=BO.prototype.removeListener;BO.prototype.on=BO.prototype.yH;g.w(cpR,Error);g.MC(g.ZC,ymS);g.ZC.prototype.L=function(){var X=new AU(this.T,this.N);this.K&&X.setCredentialsMode(this.K);return X}; g.ZC.prototype.setCredentialsMode=function(X){this.K=X}; g.MC(AU,g.$W);g.a=AU.prototype;g.a.open=function(X,J){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Km=X;this.D=J;this.readyState=1;Xt(this)}; g.a.send=function(X){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.L=!0;var J={headers:this.S,method:this.Km,credentials:this.j,cache:void 0};X&&(J.body=X);(this.aB||g.Ao).fetch(new Request(this.D,J)).then(this.t7.bind(this),this.j2.bind(this))}; g.a.abort=function(){this.response=this.responseText="";this.S=new Headers;this.status=0;this.N&&this.N.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.L&&this.readyState!=4&&(this.L=!1,JA(this));this.readyState=0}; g.a.t7=function(X){if(this.L&&(this.T=X,this.K||(this.status=this.T.status,this.statusText=this.T.statusText,this.K=X.headers,this.readyState=2,Xt(this)),this.L&&(this.readyState=3,Xt(this),this.L)))if(this.responseType==="arraybuffer")X.arrayBuffer().then(this.Oi.bind(this),this.j2.bind(this));else if(typeof g.Ao.ReadableStream!=="undefined"&&"body"in X){this.N=X.body.getReader();if(this.B){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.W=new TextDecoder;WIm(this)}else X.text().then(this.ey.bind(this),this.j2.bind(this))}; g.a.xL=function(X){if(this.L){if(this.B&&X.value)this.response.push(X.value);else if(!this.B){var J=X.value?X.value:new Uint8Array(0);if(J=this.W.decode(J,{stream:!X.done}))this.response=this.responseText+=J}X.done?JA(this):Xt(this);this.readyState==3&&WIm(this)}}; g.a.ey=function(X){this.L&&(this.response=this.responseText=X,JA(this))}; g.a.Oi=function(X){this.L&&(this.response=X,JA(this))}; g.a.j2=function(){this.L&&JA(this)}; g.a.setRequestHeader=function(X,J){this.S.append(X,J)}; g.a.getResponseHeader=function(X){return this.K?this.K.get(X.toLowerCase())||"":""}; g.a.getAllResponseHeaders=function(){if(!this.K)return"";for(var X=[],J=this.K.entries(),L=J.next();!L.done;)L=L.value,X.push(L[0]+": "+L[1]),L=J.next();return X.join("\r\n")}; g.a.setCredentialsMode=function(X){this.j=X}; Object.defineProperty(AU.prototype,"withCredentials",{get:function(){return this.j==="include"}, set:function(X){this.setCredentialsMode(X?"include":"same-origin")}});g.xv.prototype.toString=function(){var X=[],J=this.j;J&&X.push(DZ(J,uX0,!0),":");var L=this.L;if(L||J=="file")X.push("//"),(J=this.S)&&X.push(DZ(J,uX0,!0),"@"),X.push(g.P_(L).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),L=this.N,L!=null&&X.push(":",String(L));if(L=this.K)this.L&&L.charAt(0)!="/"&&X.push("/"),X.push(DZ(L,L.charAt(0)=="/"?oSv:bJ0,!0));(L=this.T.toString())&&X.push("?",L);(L=this.B)&&X.push("#",DZ(L,S1e));return X.join("")}; g.xv.prototype.resolve=function(X){var J=this.clone(),L=!!X.j;L?g.iW(J,X.j):L=!!X.S;L?J.S=X.S:L=!!X.L;L?g.Qj(J,X.L):L=X.N!=null;var x=X.K;if(L)g.KT(J,X.N);else if(L=!!X.K){if(x.charAt(0)!="/")if(this.L&&!this.K)x="/"+x;else{var Q=J.K.lastIndexOf("/");Q!=-1&&(x=J.K.slice(0,Q+1)+x)}Q=x;if(Q==".."||Q==".")x="";else if(g.hn(Q,"./")||g.hn(Q,"/.")){x=E1(Q,"/");Q=Q.split("/");for(var K=[],q=0;q1||K.length==1&&K[0]!="")&&K.pop(), x&&q==Q.length&&K.push("")):(K.push(D),x=!0)}x=K.join("/")}else x=Q}L?J.K=x:L=X.T.toString()!=="";L?qc(J,X.T.clone()):L=!!X.B;L&&(J.B=X.B);return J}; g.xv.prototype.clone=function(){return new g.xv(this)}; var uX0=/[#\/\?@]/g,bJ0=/[#\?:]/g,oSv=/[#\?]/g,jtS=/[#\?@]/g,S1e=/#/g;g.a=gX.prototype;g.a.add=function(X,J){Mc(this);this.N=null;X=yj(this,X);var L=this.L.get(X);L||this.L.set(X,L=[]);L.push(J);this.K=this.K+1;return this}; g.a.remove=function(X){Mc(this);X=yj(this,X);return this.L.has(X)?(this.N=null,this.K=this.K-this.L.get(X).length,this.L.delete(X)):!1}; g.a.clear=function(){this.L=this.N=null;this.K=0}; g.a.isEmpty=function(){Mc(this);return this.K==0}; g.a.forEach=function(X,J){Mc(this);this.L.forEach(function(L,x){L.forEach(function(Q){X.call(J,Q,x,this)},this)},this)}; g.a.bT=function(){Mc(this);for(var X=Array.from(this.L.values()),J=Array.from(this.L.keys()),L=[],x=0;x0?String(X[0]):J}; g.a.toString=function(){if(this.N)return this.N;if(!this.L)return"";for(var X=[],J=Array.from(this.L.keys()),L=0;L>>3;K.N!=1&&K.N!=2&&K.N!=15&&On(K,q,D,"unexpected tag");K.L=1;K.K=0;K.T=0} function L(C){K.T++;K.T==5&&C&240&&On(K,q,D,"message length too long");K.K|=(C&127)<<(K.T-1)*7;C&128||(K.L=2,K.S=0,typeof Uint8Array!=="undefined"?K.j=new Uint8Array(K.K):K.j=Array(K.K),K.K==0&&Q())} function x(C){K.j[K.S++]=C;K.S==K.K&&Q()} function Q(){if(K.N<15){var C={};C[K.N]=K.j;K.W.push(C)}K.L=0} for(var K=this,q=X instanceof Array?X:new Uint8Array(X),D=0;D0?X:null};am.prototype.isInputValid=function(){return this.L===null}; am.prototype.N2=function(){return this.L}; am.prototype.Y$=function(){return!1}; am.prototype.parse=function(X){this.L!==null&&BLW(this,X,"stream already broken");var J=null;try{var L=this.N;L.N||RNm(L,X,"stream already broken");L.L+=X;var x=Math.floor(L.L.length/4);if(x==0)var Q=null;else{try{var K=Y18(L.L.slice(0,x*4))}catch(q){RNm(L,L.L,q.message)}L.K+=x*4;L.L=L.L.slice(x*4);Q=K}J=Q===null?null:this.T.parse(Q)}catch(q){BLW(this,X,q.message)}this.K+=X.length;return J};var cnu={INIT:0,PQ:1,Xm:2,XS:3,hg:4,u2:5,STRING:6,t6:7,yR:8,w$:9,Qn:10,vE:11,z5:12,wf:13,Q4:14,vG:15,N$:16,iz:17,h5:18,wK:19,cT:20};g.a=tA.prototype;g.a.isInputValid=function(){return this.j!=3}; g.a.N2=function(){return this.D}; g.a.done=function(){return this.j===2}; g.a.Y$=function(){return!1}; g.a.parse=function(X){function J(){for(;V0;)if(O=X[V++], K.S===4?K.S=0:K.S++,!O)break a;if(O==='"'&&!K.W){K.L=x();break}if(O==="\\"&&!K.W&&(K.W=!0,O=X[V++],!O))break;if(K.W)if(K.W=!1,O==="u"&&(K.S=1),O=X[V++])continue;else break;D.lastIndex=V;O=D.exec(X);if(!O){V=X.length+1;break}V=O.index+1;O=X[O.index];if(!O)break}K.N+=V-u;continue;case C.w$:if(!O)continue;O==="r"?K.L=C.Qn:dX(K,X,V);continue;case C.Qn:if(!O)continue;O==="u"?K.L=C.vE:dX(K,X,V);continue;case C.vE:if(!O)continue;O==="e"?K.L=x():dX(K,X,V);continue;case C.z5:if(!O)continue;O==="a"?K.L=C.wf: dX(K,X,V);continue;case C.wf:if(!O)continue;O==="l"?K.L=C.Q4:dX(K,X,V);continue;case C.Q4:if(!O)continue;O==="s"?K.L=C.vG:dX(K,X,V);continue;case C.vG:if(!O)continue;O==="e"?K.L=x():dX(K,X,V);continue;case C.N$:if(!O)continue;O==="u"?K.L=C.iz:dX(K,X,V);continue;case C.iz:if(!O)continue;O==="l"?K.L=C.h5:dX(K,X,V);continue;case C.h5:if(!O)continue;O==="l"?K.L=x():dX(K,X,V);continue;case C.wK:O==="."?K.L=C.cT:dX(K,X,V);continue;case C.cT:if("0123456789.eE+-".indexOf(O)!==-1)continue;else V--,K.N--,K.L= x();continue;default:dX(K,X,V)}}} function x(){var O=q.pop();return O!=null?O:C.PQ} function Q(O){K.K>1||(O||(O=n===-1?K.T+X.substring(y,V):X.substring(n,V)),K.Km?K.B.push(O):K.B.push(JSON.parse(O)),n=V)} for(var K=this,q=K.aB,D=K.Pl,C=cnu,M=X.length,y=0,n=-1,V=0;V0?(H=K.B,K.B=[],H):null}return null};uW.prototype.isInputValid=function(){return this.j===null}; uW.prototype.N2=function(){return this.j}; uW.prototype.Y$=function(){return!1}; uW.prototype.parse=function(X){function J(C){K.K=6;K.j="The stream is broken @"+K.L+"/"+q+". Error: "+C+". With input:\n";throw Error(K.j);} function L(){K.N=new tA({Ywi:!0,lK:!0})} function x(C){if(C)for(var M=0;M1)&&J("extra status: "+C);K.B=!0;var M={};M[2]=C[0];K.T.push(M)}} for(var K=this,q=0;q0?(X=K.T,K.T=[],X):null};om.prototype.jS=function(){return this.L}; om.prototype.getStatus=function(){return this.j}; om.prototype.Km=function(X){X=X.target;try{if(X==this.L)a:{var J=g.sQ(this.L),L=this.L.K,x=this.L.getStatus(),Q=g.UQ(this.L);X=[];if(g.m5(this.L)instanceof Array){var K=g.m5(this.L);K.length>0&&K[0]instanceof Uint8Array&&(this.D=!0,X=K)}if(!(J<3||J==3&&!Q&&X.length==0))if(x=x==200||x==206,J==4&&(L==8?bW(this,7):L==7?bW(this,8):x||bW(this,3)),this.K||(this.K=stv(this.L),this.K==null&&bW(this,5)),this.j>2)S$(this);else{if(X.length>this.N){var q=X.length;L=[];try{if(this.K.Y$())for(var D=0;Dthis.N){D=Q.slice(this.N);this.N=Q.length;try{var M=this.K.parse(D);M!=null&&this.T&&this.T(M)}catch(y){bW(this,5);S$(this);break a}}J==4?(Q.length!= 0||this.D?bW(this,2):bW(this,4),S$(this)):bW(this,1)}}}catch(y){bW(this,6),S$(this)}};g.a=NLR.prototype;g.a.yH=function(X,J){var L=this.K[X];L||(L=[],this.K[X]=L);L.push(J);return this}; g.a.addListener=function(X,J){this.yH(X,J);return this}; g.a.removeListener=function(X,J){var L=this.K[X];L&&g.u8(L,J);(X=this.L[X])&&g.u8(X,J);return this}; g.a.once=function(X,J){var L=this.L[X];L||(L=[],this.L[X]=L);L.push(J);return this}; g.a.CB9=function(X){var J=this.K.data;J&&U_v(X,J);(J=this.L.data)&&U_v(X,J);this.L.data=[]}; g.a.KYB=function(){switch(this.N.getStatus()){case 1:PN(this,"readable");break;case 5:case 6:case 4:case 7:case 3:PN(this,"error");break;case 8:PN(this,"close");break;case 2:PN(this,"end")}};m_o.prototype.serverStreaming=function(X,J,L,x){var Q=this,K=X.substring(0,X.length-x.name.length);return xYm(function(q){var D=q.dD,C=q.getMetadata(),M=ApP(Q,!1);C=XIW(Q,C,M,K+D.getName());var y=J$8(M,D.K,!0);q=D.L(q.uo);M.send(C,"POST",q);return y},this.Nz).call(this,x.W(J,L))};i5Y.prototype.create=function(X,J,L){var x=this.L,Q=this.K+"/$rpc/google.internal.waa.v1.Waa/Create";J=J||{};L=L===void 0?{}:L;return fqA(x,Q,X,J,dxC,L)};var Qkm="://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(" "),K0I=/\bocr\b/;var IIm=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(X){throw X;}},{tfi:!0, Xul:!0,CT6:!1,lCC:ZR8,DIY:Aod,rR0:!1,dIB:!1,cRH:!0,e46:!1,F$B:!1,C3I:!1});var Yv=null,zI=!1,wIO=1,H5v=Symbol("SIGNAL"),ar={version:0,c4C:0,ZZ:!1,fv:void 0,g_:void 0,Bk:void 0,Hn:0,Vc:void 0,i5:void 0,Vy:!1,Zr:!1,kind:"unknown",Xf:function(){return!1}, Ck:function(){}, EE:function(){}, sCE:function(){}};var w5=Symbol("UNSET"),ts=Symbol("COMPUTING"),d5=Symbol("ERRORED");Object.assign({},ar,{value:w5,ZZ:!0,error:null,aF:En,kind:"computed",Xf:function(X){return X.value===w5||X.value===ts}, Ck:function(X){if(X.value===ts)throw Error("");var J=X.value;X.value=ts;var L=$YP(X),x=!1;try{var Q=X.Yp();hA(null);x=J!==w5&&J!==d5&&Q!==d5&&X.aF(J,Q)}catch(K){Q=d5,X.error=K}finally{C68(X,L)}x?X.value=J:(X.value=Q,X.version++)}});var VCe=Object.assign({},ar,{aF:En,value:void 0,kind:"signal"});Object.assign({},ar,{value:w5,ZZ:!0,error:null,aF:En,kind:"linkedSignal",Xf:function(X){return X.value===w5||X.value===ts}, Ck:function(X){if(X.value===ts)throw Error("");var J=X.value;X.value=ts;var L=$YP(X);try{var x=X.source();var Q=X.Yp(x,J===w5||J===d5?void 0:{source:X.aHC,value:J});X.aHC=x}catch(K){Q=d5,X.error=K}finally{C68(X,L)}J!==w5&&Q!==d5&&X.aF(J,Q)?X.value=J:(X.value=Q,X.version++)}});Object.assign({},ar,{Zr:!0,Vy:!1,EE:function(X){X.schedule!==null&&X.schedule(X.phm)}, WPB:!1,pul:function(){}});g.w(vN,g.$W);vN.prototype.dispose=function(){window.removeEventListener("offline",this.N);window.removeEventListener("online",this.N);this.c_.rZ(this.j);delete vN.instance}; vN.prototype.w5=function(){return this.L}; vN.prototype.w0=function(){var X=this;this.j=this.c_.xW(function(){var J;return g.p(function(L){if(L.K==1)return X.L?((J=window.navigator)==null?0:J.onLine)?L.fm(3):g.z(L,rX(X),3):g.z(L,rX(X),3);X.w0();g.uv(L)})},3E4)};TI.prototype.set=function(X,J){J=J===void 0?!0:J;0<=X&&X<52&&Number.isInteger(X)&&this.data[X]!==J&&(this.data[X]=J,this.L=-1)}; TI.prototype.get=function(X){return!!this.data[X]};var fT;g.MC(g.BN,g.G);g.a=g.BN.prototype;g.a.start=function(){this.stop();this.T=!1;var X=ofZ(this),J=b5R(this);X&&!J&&this.K.mozRequestAnimationFrame?(this.L=g.X1(this.K,"MozBeforePaint",this.N),this.K.mozRequestAnimationFrame(null),this.T=!0):this.L=X&&J?X.call(this.K,this.N):this.K.setTimeout(FFS(this.N),20)}; g.a.stop=function(){if(this.isActive()){var X=ofZ(this),J=b5R(this);X&&!J&&this.K.mozRequestAnimationFrame?iq(this.L):X&&J?J.call(this.K,this.L):this.K.clearTimeout(this.L)}this.L=null}; g.a.isActive=function(){return this.L!=null}; g.a.uj=function(){this.T&&this.L&&iq(this.L);this.L=null;this.B.call(this.j,g.$u())}; g.a.uB=function(){this.stop();g.BN.yD.uB.call(this)};g.MC(g.sn,g.G);g.a=g.sn.prototype;g.a.sZ=0;g.a.uB=function(){g.sn.yD.uB.call(this);this.stop();delete this.L;delete this.K}; g.a.start=function(X){this.stop();this.sZ=g.v4(this.N,X!==void 0?X:this.MP)}; g.a.stop=function(){this.isActive()&&g.Ao.clearTimeout(this.sZ);this.sZ=0}; g.a.isActive=function(){return this.sZ!=0}; g.a.BR=function(){this.sZ=0;this.L&&this.L.call(this.K)};g.w(g.kv,g.G);g.a=g.kv.prototype;g.a.KB=function(X){this.N=arguments;this.bH||this.K?this.L=!0:ZZ(this)}; g.a.stop=function(){this.bH&&(g.Ao.clearTimeout(this.bH),this.bH=null,this.L=!1,this.N=null)}; g.a.pause=function(){this.K++}; g.a.resume=function(){this.K--;this.K||!this.L||this.bH||(this.L=!1,ZZ(this))}; g.a.uB=function(){g.G.prototype.uB.call(this);this.stop()};g.AA.prototype[Symbol.iterator]=function(){return this}; g.AA.prototype.next=function(){var X=this.L.next();return{value:X.done?void 0:this.K.call(void 0,X.value),done:X.done}};g.MC(g.If,g.$W);g.a=g.If.prototype;g.a.isPlaying=function(){return this.L==1}; g.a.isPaused=function(){return this.L==-1}; g.a.Gn=function(){this.VJ("begin")}; g.a.mS=function(){this.VJ("end")}; g.a.onFinish=function(){this.VJ("finish")}; g.a.onStop=function(){this.VJ("stop")}; g.a.VJ=function(X){this.dispatchEvent(X)};var ES0=WB(function(){var X=g.MG("DIV"),J=g.g0?"-webkit":RW?"-moz":null,L="transition:opacity 1s linear;";J&&(L+=J+"-transition:opacity 1s linear;");J=EuR({style:L});if(X.nodeType===1&&/^(script|style)$/i.test(X.tagName))throw Error("");X.innerHTML=yR(J);return g.BB(X.firstChild,"transition")!=""});g.MC(gG,g.If);g.a=gG.prototype;g.a.play=function(){if(this.isPlaying())return!1;this.Gn();this.VJ("play");this.startTime=g.$u();this.L=1;if(ES0())return g.lF(this.K,this.B),this.N=g.v4(this.nim,void 0,this),!0;this.x9(!1);return!1}; g.a.nim=function(){g.JB(this.K);c$R(this.K,this.W);g.lF(this.K,this.T);this.N=g.v4((0,g.IH)(this.x9,this,!1),this.j*1E3)}; g.a.stop=function(){this.isPlaying()&&this.x9(!0)}; g.a.x9=function(X){g.lF(this.K,"transition","");g.Ao.clearTimeout(this.N);g.lF(this.K,this.T);this.endTime=g.$u();this.L=0;if(X)this.onStop();else this.onFinish();this.mS()}; g.a.uB=function(){this.stop();gG.yD.uB.call(this)}; g.a.pause=function(){};var YGe={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};Dg("Element","attributes")||Dg("Node","attributes");Dg("Element","innerHTML")||Dg("HTMLElement","innerHTML");Dg("Node","nodeName");Dg("Node","nodeType");Dg("Node","parentNode");Dg("Node","childNodes");Dg("HTMLElement","style")||Dg("Element","style");Dg("HTMLStyleElement","sheet");var vfR=zXY("getPropertyValue"),jkY=zXY("setProperty");Dg("Element","namespaceURI")||Dg("Node","namespaceURI");var r$v={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var eXW,emF,fIR,GDm,F0m;eXW=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]");emF=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.Y1I=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.Cs=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]");fIR=/^http:\/\/.*/;g.hDH=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");GDm=/\s+/;F0m=/[\d\u06f0-\u06f9]/;yd.prototype.lW=function(){return new ns(this.K())}; yd.prototype[Symbol.iterator]=function(){return new Vd(this.K())}; yd.prototype.L=function(){return new Vd(this.K())}; g.w(ns,g.ON);ns.prototype.next=function(){return this.K.next()}; ns.prototype[Symbol.iterator]=function(){return new Vd(this.K)}; ns.prototype.L=function(){return new Vd(this.K)}; g.w(Vd,yd);Vd.prototype.next=function(){return this.N.next()};OM.prototype.clone=function(){return new OM(this.L,this.W,this.N,this.j,this.T,this.B,this.K,this.S)}; OM.prototype.equals=function(X){return this.L==X.L&&this.W==X.W&&this.N==X.N&&this.j==X.j&&this.T==X.T&&this.B==X.B&&this.K==X.K&&this.S==X.S};wG.prototype.clone=function(){return new wG(this.start,this.end)};(function(){if(UjA){var X=/Windows NT ([0-9.]+)/;return(X=X.exec(g.vc()))?X[1]:"0"}return x$?(X=/1[0|1][_.][0-9_.]+/,(X=X.exec(g.vc()))?X[0].replace(/_/g,"."):"10"):g.mH?(X=/Android\s+([^\);]+)(\)|;)/,(X=X.exec(g.vc()))?X[1]:""):LFC||xC8||idd?(X=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(X=X.exec(g.vc()))?X[1].replace(/_/g,"."):""):""})();var RXI=function(){if(g.gy)return tJ(/Firefox\/([0-9.]+)/);if(g.$q||g.lT||g.ej)return dCz;if(g.Oc){if(v_()||jv()){var X=tJ(/CriOS\/([0-9.]+)/);if(X)return X}return tJ(/Chrome\/([0-9.]+)/)}if(g.n9&&!v_())return tJ(/Version\/([0-9.]+)/);if(B6||NV){if(X=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.vc()))return X[1]+"."+X[2]}else if(g.F0)return(X=tJ(/Android\s+([0-9.]+)/))?X:tJ(/Version\/([0-9.]+)/);return""}();g.MC(g.uc,g.G);g.a=g.uc.prototype;g.a.subscribe=function(X,J,L){var x=this.K[X];x||(x=this.K[X]=[]);var Q=this.B;this.L[Q]=X;this.L[Q+1]=J;this.L[Q+2]=L;this.B=Q+3;x.push(Q);return Q}; g.a.unsubscribe=function(X,J,L){if(X=this.K[X]){var x=this.L;if(X=X.find(function(Q){return x[Q+1]==J&&x[Q+2]==L}))return this.ez(X)}return!1}; g.a.ez=function(X){var J=this.L[X];if(J){var L=this.K[J];this.T!=0?(this.N.push(X),this.L[X+1]=function(){}):(L&&g.u8(L,X),delete this.L[X],delete this.L[X+1],delete this.L[X+2])}return!!J}; g.a.publish=function(X,J){var L=this.K[X];if(L){var x=Array(arguments.length-1),Q=arguments.length,K;for(K=1;K0&&this.T==0)for(;L=this.N.pop();)this.ez(L)}}return K!=0}return!1}; g.a.clear=function(X){if(X){var J=this.K[X];J&&(J.forEach(this.ez,this),delete this.K[X])}else this.L.length=0,this.K={}}; g.a.uB=function(){g.uc.yD.uB.call(this);this.clear();this.N.length=0};g.of.prototype.set=function(X,J){J===void 0?this.L.remove(X):this.L.set(X,g.fA(J))}; g.of.prototype.get=function(X){try{var J=this.L.get(X)}catch(L){return}if(J!==null)try{return JSON.parse(J)}catch(L){throw"Storage: Invalid value was encountered";}}; g.of.prototype.remove=function(X){this.L.remove(X)};g.MC(bc,g.of);bc.prototype.set=function(X,J){bc.yD.set.call(this,X,NgA(J))}; bc.prototype.K=function(X){X=bc.yD.get.call(this,X);if(X===void 0||X instanceof Object)return X;throw"Storage: Invalid value was encountered";}; bc.prototype.get=function(X){if(X=this.K(X)){if(X=X.data,X===void 0)throw"Storage: Invalid value was encountered";}else X=void 0;return X};g.MC(Sg,bc);Sg.prototype.set=function(X,J,L){if(J=NgA(J)){if(L){if(L=L.length)return g.yJ;var Q=L.key(J++);if(X)return g.aM(Q);Q=L.getItem(Q);if(typeof Q!=="string")throw"Storage mechanism: Invalid value was encountered";return g.aM(Q)}; return x}; g.a.clear=function(){Yq(this);this.L.clear()}; g.a.key=function(X){Yq(this);return this.L.key(X)};g.MC(hJ,EM);g.MC(kDS,EM);g.MC(z9,cp);z9.prototype.set=function(X,J){this.K.set(this.L+X,J)}; z9.prototype.get=function(X){return this.K.get(this.L+X)}; z9.prototype.remove=function(X){this.K.remove(this.L+X)}; z9.prototype.lW=function(X){var J=this.K[Symbol.iterator](),L=this,x=new g.ON;x.next=function(){var Q=J.next();if(Q.done)return Q;for(Q=Q.value;Q.slice(0,L.L.length)!=L.L;){Q=J.next();if(Q.done)return Q;Q=Q.value}return g.aM(X?Q.slice(L.L.length):L.K.get(Q))}; return x};ps.prototype.getValue=function(){return this.K}; ps.prototype.clone=function(){return new ps(this.L,this.K)};g.a=rG.prototype;g.a.oi=function(X,J){var L=this.L;L.push(new ps(X,J));X=L.length-1;J=this.L;for(L=J[X];X>0;){var x=X-1>>1;if(J[x].L>L.L)J[X]=J[x],X=x;else break}J[X]=L}; g.a.remove=function(){var X=this.L,J=X.length,L=X[0];if(!(J<=0)){if(J==1)X.length=0;else{X[0]=X.pop();X=0;J=this.L;for(var x=J.length,Q=J[X];X>1;){var K=X*2+1,q=X*2+2;K=qQ.L)break;J[X]=J[K];X=K}J[X]=Q}return L.getValue()}}; g.a.Pq=function(){for(var X=this.L,J=[],L=X.length,x=0;x>>16&65535|0;for(var K;L!==0;){K=L>2E3?2E3:L;L-=K;do Q=Q+J[x++]|0,X=X+Q|0;while(--K);Q%=65521;X%=65521}return Q|X<<16|0};for(var $P={},uz,vSd=[],or=0;or<256;or++){uz=or;for(var jSV=0;jSV<8;jSV++)uz=uz&1?3988292384^uz>>>1:uz>>>1;vSd[or]=uz}$P=function(X,J,L,x){L=x+L;for(X^=-1;x>>8^vSd[(X^J[x])&255];return X^-1};var JI={};JI={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 N8=[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],kq=[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],dpP=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],$pv=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],QX=Array(576);G9(QX);var Kp=Array(60);G9(Kp);var mM=Array(512);G9(mM);var sM=Array(256);G9(sM);var UM=Array(29);G9(UM);var Zg=Array(30);G9(Zg);var azz,w4I,txP,OAP=!1;var VX;VX=[new np(0,0,0,0,function(X,J){var L=65535;for(L>X.Bq-5&&(L=X.Bq-5);;){if(X.Cp<=1){Cp(X);if(X.Cp===0&&J===0)return 1;if(X.Cp===0)break}X.fp+=X.Cp;X.Cp=0;var x=X.Nl+L;if(X.fp===0||X.fp>=x)if(X.Cp=X.fp-x,X.fp=x,qD(X,!1),X.xi.Xc===0)return 1;if(X.fp-X.Nl>=X.a_-262&&(qD(X,!1),X.xi.Xc===0))return 1}X.oi=0;if(J===4)return qD(X,!0),X.xi.Xc===0?3:4;X.fp>X.Nl&&qD(X,!1);return 1}), new np(4,4,8,4,MD),new np(4,5,16,8,MD),new np(4,6,32,32,MD),new np(4,4,16,16,yX),new np(8,16,32,32,yX),new np(8,16,128,128,yX),new np(8,32,128,256,yX),new np(32,128,258,1024,yX),new np(32,258,258,4096,yX)];var HAR={};HAR=function(){this.input=null;this.wd=this.k7=this.Zc=0;this.output=null;this.Wi=this.Xc=this.M7=0;this.msg="";this.state=null;this.Tl=2;this.g0=0};var u1I=Object.prototype.toString; Hu.prototype.push=function(X,J){var L=this.xi,x=this.options.chunkSize;if(this.ended)return!1;var Q=J===~~J?J:J===!0?4:0;typeof X==="string"?L.input=X4W(X):u1I.call(X)==="[object ArrayBuffer]"?L.input=new Uint8Array(X):L.input=X;L.Zc=0;L.k7=L.input.length;do{L.Xc===0&&(L.output=new T9.Hx(x),L.M7=0,L.Xc=x);X=Vxm(L,Q);if(X!==1&&X!==0)return this.mS(X),this.ended=!0,!1;if(L.Xc===0||L.k7===0&&(Q===4||Q===2))if(this.options.to==="string"){var K=T9.aN(L.output,L.M7);J=K;K=K.length;if(K<65537&&(J.subarray&& rnu||!J.subarray))J=String.fromCharCode.apply(null,T9.aN(J,K));else{for(var q="",D=0;D0||L.Xc===0)&&X!==1);if(Q===4)return(L=this.xi)&&L.state?(x=L.state.status,x!==42&&x!==69&&x!==73&&x!==91&&x!==103&&x!==113&&x!==666?X=Lp(L,-2):(L.state=null,X=x===113?Lp(L,-3):0)):X=-2,this.mS(X),this.ended=!0,X===0;Q===2&&(this.mS(0),L.Xc=0);return!0}; Hu.prototype.mS=function(X){X===0&&(this.result=this.options.to==="string"?this.chunks.join(""):T9.K5(this.chunks));this.chunks=[];this.err=X;this.msg=this.xi.msg};var aY="@@redux/INIT"+OI(),EWW="@@redux/REPLACE"+OI();var YQP=typeof Symbol==="function"&&Symbol.observable||"@@observable";var T6H=[0,lHv,-3,$o];g.w(p4o,u9);var wrZ=function(){var X=[0,B38,Rev,qb,lHv,qb,-1,$o,lHv,$o,-1,B38,$o,Rev,Ir,T6H,qb,-1,$o];return function(J,L){var x={bu:!0};L&&Object.assign(x,L);J=l3e(J,void 0,void 0,x);try{var Q=new p4o,K=Q.rI;Ws(X)(K,J);var q=Q}finally{J.free()}return q}}();var rg8=-81814324;var Zlo=new g.dC("adInfoDialogEndpoint");var Emv=new g.dC("adPingingEndpoint");var k2A=new g.dC("crossDeviceProgressCommand");var aX=new g.dC("actionCompanionAdRenderer");var mP=new g.dC("adActionInterstitialRenderer");var GUH=new g.dC("adDurationRemainingRenderer");var A9=new g.dC("adHoverTextButtonRenderer");var mkY=new g.dC("adInfoDialogRenderer");var vZ=new g.dC("adMessageRenderer");var XL=new g.dC("adPreviewRenderer");var t9=new g.dC("adsEngagementPanelRenderer");var oRR=new g.dC("dismissablePanelTextPortraitImageRenderer");var dRP=new g.dC("adsEngagementPanelSectionListViewModel");var fRu=new g.dC("flyoutCtaRenderer");var wd=new g.dC("imageCompanionAdRenderer");var Ne=new g.dC("instreamAdPlayerOverlayRenderer");var qAd=new g.dC("instreamSurveyAdBackgroundImageRenderer");var ZA=new g.dC("instreamSurveyAdPlayerOverlayRenderer");var GP=new g.dC("instreamSurveyAdRenderer"),k6=new g.dC("instreamSurveyAdSingleSelectQuestionRenderer"),ml=new g.dC("instreamSurveyAdMultiSelectQuestionRenderer"),bz=new g.dC("instreamSurveyAdAnswerRenderer"),eD0=new g.dC("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var j_=new g.dC("instreamVideoAdRenderer");var FRC=new g.dC("textOverlayAdContentRenderer"),lRH=new g.dC("enhancedTextOverlayAdContentRenderer"),RD0=new g.dC("imageOverlayAdContentRenderer");var Ux=new g.dC("playerOverlayLayoutRenderer");var kw=new g.dC("videoInterstitialButtonedCenteredLayoutRenderer");var ERZ=new g.dC("aboveFeedAdLayoutRenderer");var Y4z=new g.dC("belowPlayerAdLayoutRenderer");var ctW=new g.dC("inPlayerAdLayoutRenderer");var Fo=new g.dC("playerBytesAdLayoutRenderer");var Ue=new g.dC("playerBytesSequenceItemAdLayoutRenderer");var No=new g.dC("playerUnderlayAdLayoutRenderer");var TP=new g.dC("adIntroRenderer");var rd=new g.dC("playerBytesSequentialLayoutRenderer");var gyO=new g.dC("slidingTextPlayerOverlayRenderer");var fa=new g.dC("surveyTextInterstitialRenderer");var lg=new g.dC("videoAdTrackingRenderer");var aNW=new g.dC("videoInterstitialCenteredLayoutViewModel");var B6v=new g.dC("simpleAdBadgeRenderer");var bR=new g.dC("skipAdRenderer"),sSu=new g.dC("skipButtonRenderer");var i5=new g.dC("adSlotRenderer");var Bh=new g.dC("squeezebackPlayerSidePanelRenderer");var N6u=new g.dC("timedPieCountdownRenderer");var m$=new g.dC("adAvatarViewModel");var kA=new g.dC("adBadgeViewModel");var Zh=new g.dC("adButtonViewModel");var Ux0=new g.dC("adDetailsLineViewModel");var mx0=new g.dC("adDisclosureBannerViewModel");var kUS=new g.dC("adPodIndexViewModel");var ZJC=new g.dC("imageBackgroundViewModel");var An0=new g.dC("adGridCardCollectionViewModel");var X_F=new g.dC("adGridCardTextViewModel");var JH3=new g.dC("adPreviewViewModel");var LWu=new g.dC("playerAdAvatarLockupCardButtonedViewModel");var xKH=new g.dC("skipAdButtonViewModel");var iWF=new g.dC("skipAdViewModel");var QQS=new g.dC("timedPieCountdownViewModel");var KWI=new g.dC("visitAdvertiserLinkViewModel");var dd=new g.dC("bannerImageLayoutViewModel");var ug=new g.dC("topBannerImageTextIconButtonedLayoutViewModel");var oX=new g.dC("adsEngagementPanelLayoutViewModel");var se=new g.dC("displayUnderlayTextGridCardsLayoutViewModel");g.G$=new g.dC("browseEndpoint");var qR3=new g.dC("confirmDialogEndpoint");var TYo=new g.dC("commandContext");var CZY=new g.dC("rawColdConfigGroup");var $Vm=new g.dC("rawHotConfigGroup");g.CX=new g.dC("commandExecutorCommand");g.w(jgY,u9);var wkR={BJm:0,nVI:1,CkB:32,ytE:61,uDB:67,Kdq:103,LdB:86,X_9:42,lS0:60,sWH:62,RSB:73,AtM:76,aCl:88,N8l:90,h4l:99,tlY:98,iqm:100,rtC:102,PTB:41,kml:69,T8E:70,fC6:71,jSl:2,qY9:27,ANDROID:3,SVY:54,GCq:14,r2B:91,Mz0:55,Onm:24,eqY:20,c2C:18,Cdl:21,lxl:104,y2H:30,K40:29,a36:28,xXB:101,Npl:34,Rqq:36,X5E:38,IOS:5,QkH:15,IIH:92,v69:40,ZAE:25,E60:17,Bz0:19,jkE:64,qQl:66,YQl:26,Wf9:22,x0B:33,pfB:68,U0l:35,d0H:53,HAm:37,VXq:39,hSY:7,PkB:57,k0l:43,fSY:59,TJH:93,L4l:74,gVE:75,FvB:85,zSq:65,QWM:80,vVq:8,i10:10, Z1l:58,VlC:63,w_M:72,mPq:23,z46:11,wuB:13,JzB:12,uxB:16,ctl:56,mIH:31,VRl:77,OJq:84,DXq:87,t1C:89,e1B:94,Ng6:95};g.w(uy,u9);uy.prototype.XU=function(){return Yc(this,3)}; uy.prototype.m_=function(){return Yc(this,5)}; uy.prototype.Ec=function(X){return rq(this,5,X)};g.w(oY,u9);g.w(TJm,u9);g.w(by,u9);g.a=by.prototype;g.a.getDeviceId=function(){return Yc(this,6)}; g.a.xS=function(X){var J=KH(this,9,nM,3,!0);B5(J,X);return J[X]}; g.a.getPlayerType=function(){return hK(this,36)}; g.a.setHomeGroupInfo=function(X){return tK(this,TJm,81,X)}; g.a.clearLocationPlayabilityToken=function(){return JK(this,89)};g.w(Sb,u9);Sb.prototype.getValue=function(){return Yc(this,Vg(this,gb8,2))}; var gb8=[2,3,4,5,6];g.w(Pu,u9);Pu.prototype.setTrackingParams=function(X){return JK(this,1,FRS(X,!1))};g.w(cu,u9);g.w(EI,u9);EI.prototype.xS=function(X){var J=KH(this,5,V9,3,!0);B5(J,X);return J[X]};g.w(YP,u9);YP.prototype.getToken=function(){return WT(this,2)}; YP.prototype.setToken=function(X){return rq(this,2,X)};g.w(hI,u9);hI.prototype.setSafetyMode=function(X){return jp(this,5,X)};g.w(zs,u9);zs.prototype.ly=function(X){return tK(this,by,1,X)};var LB=new g.dC("thumbnailLandscapePortraitRenderer");g.I33=new g.dC("changeEngagementPanelVisibilityAction");var SVO=new g.dC("continuationCommand");g.g0v=new g.dC("openPopupAction");g.S1=new g.dC("webCommandMetadata");var kPI=new g.dC("metadataBadgeRenderer");var b9e=new g.dC("signalServiceEndpoint");var Ew=new g.dC("innertubeCommand");var gGI=new g.dC("loggingDirectives");var ukY={wJB:"EMBEDDED_PLAYER_MODE_UNKNOWN",g7B:"EMBEDDED_PLAYER_MODE_DEFAULT",z1m:"EMBEDDED_PLAYER_MODE_PFP",FUl:"EMBEDDED_PLAYER_MODE_PFL"};var uLe=new g.dC("channelThumbnailEndpoint");var daR=new g.dC("embeddedPlayerErrorMessageRenderer");var OBm=new g.dC("embeddedPlayerOverlayVideoDetailsRenderer"),oso=new g.dC("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),bBv=new g.dC("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var NdZ=new g.dC("embedsInfoPanelRenderer");var DK0=new g.dC("feedbackEndpoint");var $Ku=new g.dC("callToActionButtonViewModel");var C$u=new g.dC("interactionLoggingCommandMetadata");var Oso={eSl:"WEB_DISPLAY_MODE_UNKNOWN",Sgq:"WEB_DISPLAY_MODE_BROWSER",MlE:"WEB_DISPLAY_MODE_MINIMAL_UI",O10:"WEB_DISPLAY_MODE_STANDALONE",G0l:"WEB_DISPLAY_MODE_FULLSCREEN"};g.w(Wu,u9);Wu.prototype.getPlayerType=function(){return hK(this,7)}; Wu.prototype.xU=function(){return Yc(this,19)}; Wu.prototype.setVideoId=function(X){return rq(this,19,X)};g.w(pp,u9);g.w(rC,u9);g.w(vu,u9); var MvF=[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];var yH3=new g.dC("loggingContext");g.w(jb,u9);g.w(Ts,u9);Ts.prototype.xU=function(){return WT(this,Vg(this,xO,1))}; Ts.prototype.setVideoId=function(X){return yg(this,1,xO,SB(X))}; Ts.prototype.getPlaylistId=function(){return WT(this,Vg(this,xO,2))}; var xO=[1,2];g.w(GLR,u9);var nI=new g.dC("changeKeyedMarkersVisibilityCommand");var n08=new g.dC("changeMarkersVisibilityCommand");var A9Z=new g.dC("loadMarkersCommand");var Vvd=new g.dC("suggestedActionDataViewModel");var loP=new g.dC("timelyActionViewModel");var F3m=new g.dC("timelyActionsOverlayViewModel");var As8=new g.dC("productListItemRenderer");var HWd=new g.dC("shoppingOverlayRenderer");var aWI=new g.dC("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var OWd=new g.dC("adFeedbackEndpoint");var a3u=new g.dC("menuEndpoint");var QrY=new g.dC("phoneDialerEndpoint");var xbP=new g.dC("sendSmsEndpoint");var HBA=new g.dC("copyTextEndpoint");var w_e=new g.dC("shareEndpoint"),tvS=new g.dC("shareEntityEndpoint"),dK0=new g.dC("shareEntityServiceEndpoint"),ucH=new g.dC("webPlayerShareEntityServiceEndpoint");g.z2=new g.dC("urlEndpoint");g.Md=new g.dC("watchEndpoint");var o0S=new g.dC("watchPlaylistEndpoint");g.bWV=new g.dC("offlineOrchestrationActionCommand");var hiI=new g.dC("compositeVideoOverlayRenderer");var SRd=new g.dC("miniplayerRenderer");var nsm=new g.dC("paidContentOverlayRenderer");var P$H=new g.dC("playerMutedAutoplayOverlayRenderer"),cH0=new g.dC("playerMutedAutoplayEndScreenRenderer");var g68=new g.dC("unserializedPlayerResponse"),E0v=new g.dC("unserializedPlayerResponse");var YRu=new g.dC("playlistEditEndpoint");var PF;g.JE=new g.dC("buttonRenderer");PF=new g.dC("toggleButtonRenderer");var tqR=new g.dC("counterfactualRenderer");var hwu=new g.dC("resolveUrlCommandMetadata");var zwe=new g.dC("modifyChannelNotificationPreferenceEndpoint");var ckP=new g.dC("pingingEndpoint");var WW3=new g.dC("unsubscribeEndpoint");g.fI=new g.dC("subscribeButtonRenderer");var p_3=new g.dC("subscribeEndpoint");var eqO=new g.dC("buttonViewModel");var uqR=new g.dC("qrCodeRenderer");var dTv={D0I:"LIVING_ROOM_APP_MODE_UNSPECIFIED",Xf9:"LIVING_ROOM_APP_MODE_MAIN",cbl:"LIVING_ROOM_APP_MODE_KIDS",CvB:"LIVING_ROOM_APP_MODE_MUSIC",lIH:"LIVING_ROOM_APP_MODE_UNPLUGGED",tXC:"LIVING_ROOM_APP_MODE_GAMING"};var ROO=new g.dC("autoplaySwitchButtonRenderer");var eH,BUI,V_e,xIW;eH=new g.dC("decoratedPlayerBarRenderer");BUI=new g.dC("chapteredPlayerBarRenderer");V_e=new g.dC("multiMarkersPlayerBarRenderer");xIW=new g.dC("chapterRenderer");g.m5P=new g.dC("markerRenderer");var ISe=new g.dC("decoratedPlayheadRenderer");var UoS=new g.dC("desktopOverlayConfigRenderer");var bFP=new g.dC("engagementPanelSectionListRenderer");var sXA=new g.dC("gatedActionsOverlayViewModel");var XJo=new g.dC("heatMarkerRenderer");var Ad8=new g.dC("heatmapRenderer");var ZaI=new g.dC("watchToWatchTransitionRenderer");var wZz=new g.dC("playlistPanelRenderer");var rHS=new g.dC("productUpsellSuggestedActionViewModel");var v0H=new g.dC("suggestedActionTimeRangeTrigger"),jQ0=new g.dC("suggestedActionsRenderer"),TZ0=new g.dC("suggestedActionRenderer");var JhI=new g.dC("timedMarkerDecorationRenderer");var vwm=new g.dC("cipher");var Doe=new g.dC("playerVars");var GuV=new g.dC("playerVars");var cF=g.Ao.window,f3u,ewd,eb=(cF==null?void 0:(f3u=cF.yt)==null?void 0:f3u.config_)||(cF==null?void 0:(ewd=cF.ytcfg)==null?void 0:ewd.data_)||{};g.JS("yt.config_",eb);var Bu=[];var mpP=/^[\w.]*$/,BJR={q:!0,search_query:!0},R6v=String(mJ);var KU=new function(){var X=window.document;this.L=window;this.K=X}; g.JS("yt.ads_.signals_.getAdSignalsString",function(X){return kP(Ih(X))});g.$u();var ZAY="XMLHttpRequest"in g.Ao?function(){return new XMLHttpRequest}:null;var FWV="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.nR(FWV);var LxS={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"},MFv="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.nR(FWV)),gxR=!1,Kx8=wP;g.w(uZ,y0);S7.prototype.then=function(X,J,L){return this.L?this.L.then(X,J,L):this.N===1&&X?(X=X.call(L,this.K))&&typeof X.then==="function"?X:c6(X):this.N===2&&J?(X=J.call(L,this.K))&&typeof X.then==="function"?X:P6(X):this}; S7.prototype.getValue=function(){return this.K}; S7.prototype.$goog_Thenable=!0;var Ev=!1;var Fh=B6||NV;var tFv=/^([0-9\.]+):([0-9\.]+)$/;g.w(gE,y0);gE.prototype.name="BiscottiError";g.w(I2,y0);I2.prototype.name="BiscottiMissingError";var bzR={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Dl=null;var LFS=VP(["data-"]),pOS={};var l3u=0,$1=g.g0?"webkit":RW?"moz":g.$q?"ms":g.ej?"o":"",RwC=g.Ld("ytDomDomGetNextId")||function(){return++l3u}; g.JS("ytDomDomGetNextId",RwC);var Tjz={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};H2.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; H2.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; H2.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Ol=g.Ao.ytEventsEventsListeners||{};g.JS("ytEventsEventsListeners",Ol);var e3I=g.Ao.ytEventsEventsCounter||{count:0};g.JS("ytEventsEventsCounter",e3I);var Bj8=WB(function(){var X=!1;try{var J=Object.defineProperty({},"passive",{get:function(){X=!0}}); window.addEventListener("test",null,J)}catch(L){}return X}),FxO=WB(function(){var X=!1; try{var J=Object.defineProperty({},"capture",{get:function(){X=!0}}); window.addEventListener("test",null,J)}catch(L){}return X});var Eo;Eo=window;g.uT=Eo.ytcsi&&Eo.ytcsi.now?Eo.ytcsi.now:Eo.performance&&Eo.performance.timing&&Eo.performance.now&&Eo.performance.timing.navigationStart?function(){return Eo.performance.timing.navigationStart+Eo.performance.now()}:function(){return(new Date).getTime()};g.MC(uu,g.G);uu.prototype.D=function(X){X.L===void 0&&GhS(X);var J=X.L;X.K===void 0&&GhS(X);this.L=new g.l$(J,X.K)}; uu.prototype.pw=function(){return this.L||new g.l$}; uu.prototype.Km=function(){if(this.L){var X=(0,g.uT)();if(this.T!=0){var J=this.B,L=this.L,x=J.x-L.x;J=J.y-L.y;x=Math.sqrt(x*x+J*J)/(X-this.T);this.K[this.N]=Math.abs((x-this.j)/this.j)>.5?1:0;for(L=J=0;L<4;L++)J+=this.K[L]||0;J>=3&&this.W();this.j=x}this.T=X;this.B=this.L;this.N=(this.N+1)%4}}; uu.prototype.uB=function(){g.yQ(this.S);g.wE(this.aB)};g.w(o2,g.G);o2.prototype.J=function(X,J,L,x,Q){L=g.ND((0,g.IH)(L,x||this.Nx));L={target:X,name:J,callback:L};var K;Q&&Bj8()&&(K={passive:!0});X.addEventListener(J,L.callback,K);this.W.push(L);return L}; o2.prototype.VO=function(X){for(var J=0;J=l.kV)||S.L.version>=Jo||S.L.objectStoreNames.contains(T)||h.push(T)}C=h;if(C.length===0){u.fm(5);break}M=Object.keys(L.options.Rg); y=D.objectStoreNames();if(L.jL.options.version+1)throw V.close(),L.N=!1,zve(L,H);return u.return(V);case 8:throw J(), n instanceof Error&&!g.VQ("ytidb_async_stack_killswitch")&&(n.stack=n.stack+"\n"+q.substring(q.indexOf("\n")+1)),VK(n,L.name,"",(O=L.options.version)!=null?O:-1);}})} function J(){L.L===x&&(L.L=void 0)} var L=this;if(!this.N)throw zve(this);if(this.L)return this.L;var x,Q={blocking:function(K){K.close()}, closed:J,VWB:J,upgrade:this.options.upgrade};return this.L=x=X()};var f9=new Td("YtIdbMeta",{Rg:{databases:{kV:1}},upgrade:function(X,J){J(1)&&g.bT(X,"databases",{keyPath:"actualName"})}});var BR,RZ=new function(){}(new function(){});new g.Cz;g.w(UV,Td);UV.prototype.K=function(X,J,L){L=L===void 0?{}:L;return(this.options.shared?evR:fZm)(X,J,Object.assign({},L))}; UV.prototype.delete=function(X){X=X===void 0?{}:X;return(this.options.shared?BXR:FzI)(this.name,X)};var XBu={},NXY=g.m4("ytGcfConfig",{Rg:(XBu.coldConfigStore={kV:1},XBu.hotConfigStore={kV:1},XBu),shared:!1,upgrade:function(X,J){J(1)&&(g.hO(g.bT(X,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.hO(g.bT(X,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.w(Zc,g.G);Zc.prototype.uB=function(){for(var X=g.d(this.K),J=X.next();!J.done;J=X.next()){var L=this.L;J=L.indexOf(J.value);J>=0&&L.splice(J,1)}this.K.length=0;g.G.prototype.uB.call(this)};i7.prototype.Ec=function(X){this.hotHashData=X;g.JS("yt.gcf.config.hotHashData",this.hotHashData||null)};var JwC=typeof TextEncoder!=="undefined"?new TextEncoder:null,vqR=JwC?function(X){return JwC.encode(X)}:function(X){X=g.bS(X); for(var J=new Uint8Array(X.length),L=0;L=J?!1:!0}; g.a.AG=function(){var X=this;if(!PP(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.bd.jx("QUEUED",this.MQ).then(function(J){J&&!X.Xa(J,X.AS)?X.c_.xW(function(){return g.p(function(L){if(L.K==1)return J.id===void 0?L.fm(2):g.z(L,X.bd.Vt(J.id,X.MQ),2);X.AG();g.uv(L)})}):X.QY.w5()&&X.eD()})};var Yt;var nbv={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, 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,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};var xG0={},JIm=g.m4("ServiceWorkerLogsDatabase",{Rg:(xG0.SWHealthLog={kV:1},xG0),shared:!0,upgrade:function(X,J){J(1)&&g.hO(g.bT(X,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var WP={},qIA=0;var pP;vP.prototype.requestComplete=function(X,J){J&&(this.K=!0);X=this.removeParams(X);this.L.get(X)||this.L.set(X,J)}; vP.prototype.isEndpointCFR=function(X){X=this.removeParams(X);return(X=this.L.get(X))?!1:X===!1&&this.K?!0:null}; vP.prototype.removeParams=function(X){return X.split("?")[0]}; vP.prototype.removeParams=vP.prototype.removeParams;vP.prototype.isEndpointCFR=vP.prototype.isEndpointCFR;vP.prototype.requestComplete=vP.prototype.requestComplete;vP.getInstance=jE;g.w(Tp,g.$W);g.a=Tp.prototype;g.a.w5=function(){return this.L.w5()}; g.a.vz=function(X){this.L.L=X}; g.a.BF=function(){var X=window.navigator.onLine;return X===void 0?!0:X}; g.a.kY=function(){this.K=!0}; g.a.listen=function(X,J){return this.L.listen(X,J)}; g.a.NU=function(X){X=rX(this.L,X);X.then(function(J){g.VQ("use_cfr_monitor")&&jE().requestComplete("generate_204",J)}); return X}; Tp.prototype.sendNetworkCheckRequest=Tp.prototype.NU;Tp.prototype.listen=Tp.prototype.listen;Tp.prototype.enableErrorFlushing=Tp.prototype.kY;Tp.prototype.getWindowStatus=Tp.prototype.BF;Tp.prototype.networkStatusHint=Tp.prototype.vz;Tp.prototype.isNetworkAvailable=Tp.prototype.w5;Tp.getInstance=DDW;g.w(g.Gp,g.$W);g.Gp.prototype.w5=function(){var X=g.Ld("yt.networkStatusManager.instance.isNetworkAvailable");return X?X.bind(this.K)():!0}; g.Gp.prototype.vz=function(X){var J=g.Ld("yt.networkStatusManager.instance.networkStatusHint").bind(this.K);J&&J(X)}; g.Gp.prototype.NU=function(X){var J=this,L;return g.p(function(x){L=g.Ld("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(J.K);return g.VQ("skip_network_check_if_cfr")&&jE().isEndpointCFR("generate_204")?x.return(new Promise(function(Q){var K;J.vz(((K=window.navigator)==null?void 0:K.onLine)||!0);Q(J.w5())})):L?x.return(L(X)):x.return(!0)})};var fP;g.w(eE,cP);eE.prototype.writeThenSend=function(X,J){J||(J={});J=l7(X,J);g.R2()||(this.L=!1);cP.prototype.writeThenSend.call(this,X,J)}; eE.prototype.sendThenWrite=function(X,J,L){J||(J={});J=l7(X,J);g.R2()||(this.L=!1);cP.prototype.sendThenWrite.call(this,X,J,L)}; eE.prototype.sendAndWrite=function(X,J){J||(J={});J=l7(X,J);g.R2()||(this.L=!1);cP.prototype.sendAndWrite.call(this,X,J)}; eE.prototype.awaitInitialization=function(){return this.N.promise};var nP8=g.Ao.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.JS("ytNetworklessLoggingInitializationOptions",nP8);g.Rv.prototype.isReady=function(){!this.config_&&$8v()&&(this.config_=g.KP());return!!this.config_};var ijH,NF,m2;ijH=g.Ao.ytPubsubPubsubInstance||new g.uc;NF=g.Ao.ytPubsubPubsubSubscribedKeys||{};m2=g.Ao.ytPubsubPubsubTopicToKeys||{};g.Ua=g.Ao.ytPubsubPubsubIsSynchronous||{};g.uc.prototype.subscribe=g.uc.prototype.subscribe;g.uc.prototype.unsubscribeByKey=g.uc.prototype.ez;g.uc.prototype.publish=g.uc.prototype.publish;g.uc.prototype.clear=g.uc.prototype.clear;g.JS("ytPubsubPubsubInstance",ijH);g.JS("ytPubsubPubsubTopicToKeys",m2);g.JS("ytPubsubPubsubIsSynchronous",g.Ua); g.JS("ytPubsubPubsubSubscribedKeys",NF);var tbW={};g.w(Di,g.G);Di.prototype.append=function(X){if(!this.K)throw Error("This does not support the append operation");X=X.kH();this.kH().appendChild(X)}; g.w($m,Di);$m.prototype.kH=function(){return this.L};g.w(CL,g.G);CL.prototype.onTouchStart=function(X){this.W=!0;this.K=X.touches.length;this.L.isActive()&&(this.L.stop(),this.j=!0);X=X.touches;this.B=oPP(this,X)||X.length!=1;var J=X.item(0);this.B||!J?this.D=this.S=Infinity:(this.S=J.clientX,this.D=J.clientY);for(J=this.N.length=0;J=0)}if(J||X&&Math.pow(X.clientX-this.S,2)+Math.pow(X.clientY-this.D,2)>25)this.T=!0}; CL.prototype.onTouchEnd=function(X){var J=X.changedTouches;J&&this.W&&this.K==1&&!this.T&&!this.j&&!this.B&&oPP(this,J)&&(this.Km=X,this.L.start());this.K=X.touches.length;this.K===0&&(this.T=this.W=!1,this.N.length=0);this.j=!1};var MZ=Date.now().toString();var OU={};var o4=Symbol("injectionDeps");wt.prototype.toString=function(){return"InjectionToken("+this.name+")"}; Pyz.prototype.resolve=function(X){return X instanceof tk?br(this,X.key,[],!0):br(this,X,[])};var Se;var cX=window;var zM=g.VQ("web_enable_lifecycle_monitoring")&&EU()!==0,puP=g.VQ("web_enable_lifecycle_monitoring");hRP.prototype.cancel=function(){for(var X=g.d(this.L),J=X.next();!J.done;J=X.next())J=J.value,J.jobId===void 0||J.Hd||this.scheduler.rZ(J.jobId),J.Hd=!0;this.K.resolve()};g.a=WX.prototype;g.a.install=function(X){this.plugins.push(X);return this}; g.a.uninstall=function(){var X=this;g.fR.apply(0,arguments).forEach(function(J){J=X.plugins.indexOf(J);J>-1&&X.plugins.splice(J,1)})}; g.a.transition=function(X,J){var L=this;zM&&EPz(this.state);var x=this.transitions.find(function(K){return Array.isArray(K.from)?K.from.find(function(q){return q===L.state&&K.to===X}):K.from===L.state&&K.to===X}); if(x){this.K&&(zRe(this.K),this.K=void 0);rIO(this,X,J);this.state=X;zM&&Ym(this.state);x=x.action.bind(this);var Q=this.plugins.filter(function(K){return K[X]}).map(function(K){return K[X]}); x(WJZ(this,Q),J)}else throw Error("no transition specified from "+this.state+" to "+X);}; g.a.Be9=function(X){var J=g.fR.apply(1,arguments);g.mn();for(var L=g.d(X),x=L.next(),Q={};!x.done;Q={Qk:void 0},x=L.next())Q.Qk=x.value,iTv(function(K){return function(){rt(K.Qk.name);je(function(){return K.Qk.callback.apply(K.Qk,g.nR(J))}); vX(K.Qk.name)}}(Q))}; g.a.EU9=function(X){var J=g.fR.apply(1,arguments),L,x,Q,K;return g.p(function(q){q.K==1&&(g.mn(),L=g.d(X),x=L.next(),Q={});if(q.K!=3){if(x.done)return q.fm(0);Q.kG=x.value;Q.nB=void 0;K=function(D){return function(){rt(D.kG.name);var C=je(function(){return D.kG.callback.apply(D.kG,g.nR(J))}); PC(C)?D.nB=g.VQ("web_lifecycle_error_handling_killswitch")?C.then(function(){vX(D.kG.name)}):C.then(function(){vX(D.kG.name)},function(M){YIO(M); vX(D.kG.name)}):vX(D.kG.name)}}(Q); iTv(K);return Q.nB?g.z(q,Q.nB,3):q.fm(3)}Q={kG:void 0,nB:void 0};x=L.next();return q.fm(2)})}; g.a.H7=function(X){var J=g.fR.apply(1,arguments),L=this,x=X.map(function(Q){return{T$:function(){rt(Q.name);je(function(){return Q.callback.apply(Q,g.nR(J))}); vX(Q.name)}, priority:pL(L,Q)}}); x.length&&(this.K=new hRP(x))}; g.KR.Object.defineProperties(WX.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var GM;g.w(TM,WX);TM.prototype.j=function(X,J){var L=this;this.L=g.Nk(0,function(){L.currentState==="application_navigating"&&L.transition("none")},5E3); X(J==null?void 0:J.event)}; TM.prototype.B=function(X,J){this.L&&(g.j$.rZ(this.L),this.L=null);X(J==null?void 0:J.event)};var $O=[];g.JS("yt.logging.transport.getScrapedGelPayloads",function(){return $O});fL.prototype.storePayload=function(X,J){X=ee(X);this.store[X]?this.store[X].push(J):(this.K={},this.store[X]=[J]);this.L++;g.VQ("more_accurate_gel_parser")&&(J=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(J));return X}; fL.prototype.smartExtractMatchingEntries=function(X){if(!X.keys.length)return[];for(var J=lr(this,X.keys.splice(0,1)[0]),L=[],x=0;x=0){x=!1;break a}}x=!0}x&&(J=hR(J))&&this.OO(J)}}; g.a.lA=function(X){return X}; g.a.onTouchStart=function(X){this.Pl.onTouchStart(X)}; g.a.onTouchMove=function(X){this.Pl.onTouchMove(X)}; g.a.onTouchEnd=function(X){if(this.Pl)this.Pl.onTouchEnd(X)}; g.a.OO=function(X){this.layoutId?this.oB.executeCommand(X,this.layoutId):(X=new g.Fm("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.Sc(X))}; g.a.createServerVe=function(X,J){this.api.createServerVe(X,this);this.api.setTrackingParams(X,J)}; g.a.logVisibility=function(X,J){this.api.hasVe(X)&&this.api.logVisibility(X,J,this.interactionLoggingClientData)}; g.a.uB=function(){this.clear(null);this.VO(this.Cm);for(var X=g.d(this.FE),J=X.next();!J.done;J=X.next())this.VO(J.value);g.qy.prototype.uB.call(this)};g.w(c1,IO); c1.prototype.init=function(X,J,L){IO.prototype.init.call(this,X,J,L);this.L=J;if(J.text==null&&J.icon==null)g.PM(Error("ButtonRenderer did not have text or an icon set."));else{switch(J.style||null){case "STYLE_UNKNOWN":X="ytp-ad-button-link";break;default:X=null}X!=null&&g.xq(this.element,X);J.text!=null&&(X=g.Dn(J.text),g.YS(X)||(this.element.setAttribute("aria-label",X),this.N=new g.qy({V:"span",U:"ytp-ad-button-text",iB:X}),g.f(this,this.N),this.N.zH(this.element)));J.accessibilityData&&J.accessibilityData.accessibilityData&& J.accessibilityData.accessibilityData.label&&!g.YS(J.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",J.accessibilityData.accessibilityData.label);J.icon!=null&&(J=P1(J.icon,this.T),J!=null&&(this.K=new g.qy({V:"span",U:"ytp-ad-button-icon",C:[J]}),g.f(this,this.K)),this.B?O9(this.element,this.K.element,0):this.K.zH(this.element))}}; c1.prototype.clear=function(){this.hide()}; c1.prototype.onClick=function(X){IO.prototype.onClick.call(this,X);X=g.d(r3W(this));for(var J=X.next();!J.done;J=X.next())J=J.value,this.layoutId?this.oB.executeCommand(J,this.layoutId):g.Sc(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.w(ED,g.G);ED.prototype.uB=function(){this.K&&g.wE(this.K);this.L.clear();YE=null;g.G.prototype.uB.call(this)}; ED.prototype.register=function(X,J){J&&this.L.set(X,J)}; var YE=null;g.w(W1,IO); W1.prototype.init=function(X,J,L){IO.prototype.init.call(this,X,J,L);X=J.hoverText||null;J=J.button&&g.F(J.button,g.JE)||null;J==null?g.Sc(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new c1(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,void 0,void 0,void 0,void 0,this.N),g.f(this,this.button),this.button.init(Xr("button"),J,this.macros),X&&this.button.element.setAttribute("aria-label",g.Dn(X)),this.button.zH(this.element),this.D&&!g.Ls(this.button.element, "ytp-ad-clickable")&&g.xq(this.button.element,"ytp-ad-clickable"),this.N&&g.xq(this.button.element,"ytp-ad-hover-text-button--clean-player"),X&&(this.K=new g.qy({V:"div",U:"ytp-ad-hover-text-container"}),this.B&&(J=new g.qy({V:"div",U:"ytp-ad-hover-text-callout"}),J.zH(this.K.element),g.f(this,J)),g.f(this,this.K),this.K.zH(this.element),J=hC(X),O9(this.K.element,J,0)),this.show())}; W1.prototype.hide=function(){this.button&&this.button.hide();this.K&&this.K.hide();IO.prototype.hide.call(this)}; W1.prototype.show=function(){this.button&&this.button.show();IO.prototype.show.call(this)};g.w(rh,IO); rh.prototype.init=function(X,J,L){IO.prototype.init.call(this,X,J,L);L=(X=J.thumbnail)&&py(X)||"";g.YS(L)?Math.random()<.01&&g.PM(Error("Found AdImage without valid image URL")):(this.L?g.lF(this.element,"backgroundImage","url("+L+")"):IW(this.element,{src:L}),IW(this.element,{alt:X&&X.accessibility&&X.accessibility.label||""}),J&&J.adRendererCommands&&J.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; rh.prototype.clear=function(){this.hide()};g.w(v1,IO);g.a=v1.prototype;g.a.hide=function(){IO.prototype.hide.call(this);this.N&&this.N.focus()}; g.a.show=function(){this.N=document.activeElement;IO.prototype.show.call(this);this.T.focus()}; g.a.init=function(X,J,L){IO.prototype.init.call(this,X,J,L);this.K=J;J.dialogMessages||J.title!=null?J.confirmLabel==null?g.Sc(Error("ConfirmDialogRenderer.confirmLabel was not set.")):J.cancelLabel==null?g.Sc(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Gbo(this,J):g.Sc(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.a.clear=function(){g.Sf(this.L);this.hide()}; g.a.DR=function(){this.hide()}; g.a.pF=function(){var X=this.K.cancelEndpoint;X&&(this.layoutId?this.oB.executeCommand(X,this.layoutId):g.Sc(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.a.AT=function(){var X=this.K.confirmNavigationEndpoint||this.K.confirmEndpoint;X&&(this.layoutId?this.oB.executeCommand(X,this.layoutId):g.Sc(Error("Missing layoutId for confirm dialog.")));this.hide()};g.w(jl,IO);g.a=jl.prototype; g.a.init=function(X,J,L){IO.prototype.init.call(this,X,J,L);this.N=J;if(J.defaultText==null&&J.defaultIcon==null)g.Sc(Error("ToggleButtonRenderer must have either text or icon set."));else if(J.defaultIcon==null&&J.toggledIcon!=null)g.Sc(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(J.style){switch(J.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":X="ytp-ad-toggle-button-default-style";break;default:X=null}X!=null&&g.xq(this.T,X)}X={};J.defaultText? (L=g.Dn(J.defaultText),g.YS(L)||(X.buttonText=L,this.api.G().experiments.Mi("a11y_h5_associate_survey_question")||this.L.setAttribute("aria-label",L),this.api.G().experiments.Mi("fix_h5_toggle_button_a11y")&&this.K.setAttribute("aria-label",L))):g.LQ(this.gI,!1);J.defaultTooltip&&(X.tooltipText=J.defaultTooltip,this.L.hasAttribute("aria-label")||this.K.setAttribute("aria-label",J.defaultTooltip));J.defaultIcon?(L=P1(J.defaultIcon),this.updateValue("untoggledIconTemplateSpec",L),J.toggledIcon?(this.aB= !0,L=P1(J.toggledIcon),this.updateValue("toggledIconTemplateSpec",L)):(g.LQ(this.D,!0),g.LQ(this.B,!1)),g.LQ(this.L,!1)):g.LQ(this.K,!1);g.Mx(X)||this.update(X);J.isToggled&&(g.xq(this.T,"ytp-ad-toggle-button-toggled"),this.toggleButton(J.isToggled));T2(this);this.J(this.element,"change",this.jo);this.show()}}; g.a.onClick=function(X){this.FE.length>0&&(this.toggleButton(!this.isToggled()),this.jo());IO.prototype.onClick.call(this,X)}; g.a.jo=function(){g.q8(this.T,"ytp-ad-toggle-button-toggled",this.isToggled());for(var X=g.d(flP(this,this.isToggled())),J=X.next();!J.done;J=X.next())J=J.value,this.layoutId?this.oB.executeCommand(J,this.layoutId):g.Sc(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);T2(this)}; g.a.clear=function(){this.hide()}; g.a.toggleButton=function(X){g.q8(this.T,"ytp-ad-toggle-button-toggled",X);this.L.checked=X;T2(this)}; g.a.isToggled=function(){return this.L.checked};g.w(G2,o2);G2.prototype.j=function(X){if(Array.isArray(X)){X=g.d(X);for(var J=X.next();!J.done;J=X.next())J=J.value,J instanceof ea8&&this.N(J)}};g.w(fy,IO);g.a=fy.prototype;g.a.init=function(X,J,L){IO.prototype.init.call(this,X,J,L);J.reasons?J.confirmLabel==null?g.Sc(Error("AdFeedbackRenderer.confirmLabel was not set.")):(J.cancelLabel==null&&g.PM(Error("AdFeedbackRenderer.cancelLabel was not set.")),J.title==null&&g.PM(Error("AdFeedbackRenderer.title was not set.")),BEm(this,J)):g.Sc(Error("AdFeedbackRenderer.reasons were not set."))}; g.a.clear=function(){t3(this.B);t3(this.D);this.T.length=0;this.hide()}; g.a.hide=function(){this.L&&this.L.hide();this.K&&this.K.hide();IO.prototype.hide.call(this);this.N&&this.N.focus()}; g.a.show=function(){this.L&&this.L.show();this.K&&this.K.show();this.N=document.activeElement;IO.prototype.show.call(this);this.B.focus()}; g.a.XZ=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.a.gim=function(){this.hide()}; el.prototype.kH=function(){return this.L.element}; el.prototype.getCommand=function(){return this.K}; el.prototype.isChecked=function(){return this.N.checked};g.w(Fr,v1);Fr.prototype.DR=function(X){v1.prototype.DR.call(this,X);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Fr.prototype.pF=function(X){v1.prototype.pF.call(this,X);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Fr.prototype.AT=function(X){v1.prototype.AT.call(this,X);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.w(lA,IO);g.a=lA.prototype; g.a.init=function(X,J,L){IO.prototype.init.call(this,X,J,L);this.B=J;if(J.dialogMessage==null&&J.title==null)g.Sc(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{J.confirmLabel==null&&g.PM(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(X=J.closeOverlayRenderer&&g.F(J.closeOverlayRenderer,g.JE)||null)this.L=new c1(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.f(this,this.L),this.L.init(Xr("button"),X,this.macros),this.L.zH(this.element);J.title&&(X=g.Dn(J.title),this.updateValue("title",X));if(J.adReasons)for(X=J.adReasons,L=0;L=this.vl?(this.aB.hide(),this.Hl=!0,this.publish("i")):this.N&&this.N.isTemplated()&&(X=Math.max(0,Math.ceil((this.vl-X)/1E3)),X!=this.J0&&(sD(this.N,{TIME_REMAINING:String(X)}),this.J0=X)))}};g.w(X4,Ny);g.a=X4.prototype; g.a.init=function(X,J,L){Ny.prototype.init.call(this,X,J,L);if(J.image&&J.image.thumbnail)if(J.headline)if(J.description)if((X=J.actionButton&&g.F(J.actionButton,g.JE))&&X.navigationEndpoint){var x=this.api.getVideoData(2);if(x!=null)if(J.image&&J.image.thumbnail){var Q=J.image.thumbnail.thumbnails;Q!=null&&Q.length>0&&g.YS(g.hH(Q[0].url))&&(Q[0].url=x.profilePicture)}else g.PM(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.N.init(Xr("ad-image"),J.image,L);this.B.init(Xr("ad-text"), J.headline,L);this.T.init(Xr("ad-text"),J.description,L);this.K.init(Xr("button"),X,L);L=Rm(this.K.element);e$(this.K.element,L+" This link opens in new tab");this.aB=X.navigationEndpoint;this.api.zN()||this.show();this.api.G().Y("enable_larger_flyout_cta_on_desktop")&&(this.kq("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.kq("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.kq("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.kq("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.kq("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.kq("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.K.element.classList.add("ytp-flyout-cta-action-button-large"),this.K.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.kq("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.Yf.bind(this));this.gI=J.startMs||0;UD(this)}else g.Sc(Error("FlyoutCtaRenderer has no valid action button."));else g.Sc(Error("FlyoutCtaRenderer has no description AdText."));else g.Sc(Error("FlyoutCtaRenderer has no headline AdText."));else g.PM(Error("FlyoutCtaRenderer has no image."))}; g.a.onClick=function(X){Ny.prototype.onClick.call(this,X);this.api.pauseVideo();!g.w0(this.K.element,X.target)&&this.aB&&(this.layoutId?this.oB.executeCommand(this.aB,this.layoutId):g.Sc(Error("Missing layoutId for flyout cta.")))}; g.a.UY=function(){if(this.L){var X=this.L.getProgressState();(X&&X.current||this.vl)&&1E3*X.current>=this.gI&&(mT(this),g.Qd(this.element,"ytp-flyout-cta-inactive"),this.K.element.removeAttribute("tabIndex"))}}; g.a.q9=function(){this.clear()}; g.a.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Yf.bind(this))}; g.a.show=function(){this.K&&this.K.show();Ny.prototype.show.call(this)}; g.a.hide=function(){this.K&&this.K.hide();Ny.prototype.hide.call(this)}; g.a.Yf=function(X){X=="hidden"?this.show():this.hide()};g.w(Ju,IO);g.a=Ju.prototype; g.a.init=function(X,J,L){IO.prototype.init.call(this,X,J,L);this.L=J;if(this.L.rectangle)for(X=this.L.likeButton&&g.F(this.L.likeButton,PF),J=this.L.dislikeButton&&g.F(this.L.dislikeButton,PF),this.N.init(Xr("toggle-button"),X,L),this.K.init(Xr("toggle-button"),J,L),this.J(this.element,"change",this.dA),this.T.show(100),this.show(),L=g.d(this.L&&this.L.impressionCommands||[]),X=L.next();!X.done;X=L.next())X=X.value,this.layoutId?this.oB.executeCommand(X,this.layoutId):g.Sc(Error("Missing layoutId for instream user sentiment."))}; g.a.clear=function(){this.hide()}; g.a.hide=function(){this.N.hide();this.K.hide();IO.prototype.hide.call(this)}; g.a.show=function(){this.N.show();this.K.show();IO.prototype.show.call(this)}; g.a.dA=function(){P6Z(this.element,"ytp-ad-instream-user-sentiment-selected");this.L.postMessageAction&&this.api.GH("onYtShowToast",this.L.postMessageAction);this.T.hide()}; g.a.onClick=function(X){this.FE.length>0&&this.dA();IO.prototype.onClick.call(this,X)};g.w(LX,g.G);g.a=LX.prototype;g.a.uB=function(){this.reset();g.G.prototype.uB.call(this)}; g.a.reset=function(){g.Sf(this.T);this.B=!1;this.L&&this.L.stop();this.j.stop();this.N&&(this.N=!1,this.W.play())}; g.a.start=function(){this.reset();this.T.J(this.K,"mouseover",this.HR,this);this.T.J(this.K,"mouseout",this.Id,this);this.Km&&(this.T.J(this.K,"focusin",this.HR,this),this.T.J(this.K,"focusout",this.Id,this));this.L?this.L.start():(this.B=this.N=!0,g.lF(this.K,{opacity:this.D}))}; g.a.HR=function(){this.N&&(this.N=!1,this.W.play());this.j.stop();this.L&&this.L.stop()}; g.a.Id=function(){this.B?this.j.start():this.L&&this.L.start()}; g.a.cE=function(){this.N||(this.N=!0,this.S.play(),this.B=!0)};var i9v=[new xL("b.f_",!1,0),new xL("j.s_",!1,2),new xL("r.s_",!1,4),new xL("e.h_",!1,6),new xL("i.s_",!0,8),new xL("s.t_",!1,10),new xL("p.h_",!1,12),new xL("s.i_",!1,14),new xL("f.i_",!1,16),new xL("a.b_",!1,18),new xL("a.o_",!1),new xL("g.o_",!1,22),new xL("p.i_",!1,24),new xL("p.m_",!1),new xL("n.k_",!0,20),new xL("i.f_",!1),new xL("a.s_",!0),new xL("m.c_",!1),new xL("n.h_",!1,26),new xL("o.p_",!1),new xL("m.p_",!0,28),new xL("o.a_",!1),new xL("d.p_",!1),new xL("e.i_",!1)].reduce(function(X,J){X[J.K]= J;return X},{});g.w($L,Ny);g.a=$L.prototype; g.a.init=function(X,J,L){Ny.prototype.init.call(this,X,J,L);this.aB=J;(this.gI=K4o(this))&&g.PM(Error("hasAdControlInClickCommands_ is true."));if(!J||g.Mx(J))g.Sc(Error("SkipButtonRenderer was not specified or empty."));else if(!J.message||g.Mx(J.message))g.Sc(Error("SkipButtonRenderer.message was not specified or empty."));else if(X=this.B?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},J=P1(X),J==null?g.Sc(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+X.iconType+".")): (this.api.G().Y("disable_touch_events_on_skip_button")&&(J.X=Object.assign({},J.X,{"aria-hidden":"true",zY0:"false"})),this.N=new g.qy({V:"button",Ql:[this.B?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],C:[{V:"span",U:this.B?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",C:[J]}]}),g.f(this,this.N),this.N.zH(this.T.element),this.K=new B1(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,"ytp-ad-skip-button-text"),this.B&&this.K.element.classList.add("ytp-ad-skip-button-text-centered"), this.K.init(Xr("ad-text"),this.aB.message,L),g.f(this,this.K),O9(this.N.element,this.K.element,0)),!this.api.G().Y("disable_touch_events_on_skip_button")){var x=x===void 0?null:x;L=this.api.G();!(this.FE.length>0)&&L.K&&(f0?0:"ontouchstart"in document.documentElement&&(ZdI()||gR()))&&(this.VO(this.Cm),x&&this.VO(x),this.FE=[this.J(this.element,"touchstart",this.onTouchStart,this),this.J(this.element,"touchmove",this.onTouchMove,this),this.J(this.element,"touchend",this.onTouchEnd,this)])}}; g.a.clear=function(){this.vl.reset();this.hide()}; g.a.hide=function(){this.T.hide();this.K&&this.K.hide();mT(this);Ny.prototype.hide.call(this)}; g.a.onClick=function(X){if(this.N!=null){if(X){var J=X||window.event;J.returnValue=!1;J.preventDefault&&J.preventDefault()}var L;if(L4W(X,{contentCpn:((L=this.api.getVideoData(1))==null?void 0:L.clientPlaybackNonce)||""})===0)this.api.GH("onAbnormalityDetected");else if(Ny.prototype.onClick.call(this,X),this.publish("j"),this.api.GH("onAdSkip"),this.Hl||!this.gI)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.a.lA=function(X){if(!this.Hl)return this.gI&&qH("SkipButton click commands not pruned while ALC exist"),X;var J,L=(J=g.F(X,g.CX))==null?void 0:J.commands;if(!L)return X;X=[];for(J=0;J=this.B&&qVW(this,!0)};g.w(yZ,c1);yZ.prototype.init=function(X,J,L){c1.prototype.init.call(this,X,J,L);X=!1;J.text!=null&&(X=g.Dn(J.text),X=!g.YS(X));X?J.navigationEndpoint==null?g.PM(Error("No visit advertiser clickthrough provided in renderer,")):J.style!=="STYLE_UNKNOWN"?g.PM(Error("Button style was not a link-style type in renderer,")):this.show():g.PM(Error("No visit advertiser text was present in the renderer."))};g.w(nX,IO); nX.prototype.init=function(X,J,L){IO.prototype.init.call(this,X,J,L);X=J.text;g.YS(gh(X))?g.PM(Error("SimpleAdBadgeRenderer has invalid or empty text")):(X&&X.text&&(J=X.text,this.N&&!this.K&&(J=this.api.G(),J=X.text+" "+(J&&J.K?"\u2022":"\u00b7")),J={text:J,isTemplated:X.isTemplated},X.style&&(J.style=X.style),X.targetId&&(J.targetId=X.targetId),X=new B1(this.api,this.layoutId,this.interactionLoggingClientData,this.oB),X.init(Xr("simple-ad-badge"),J,L),X.zH(this.element),g.f(this,X)),this.show())}; nX.prototype.clear=function(){this.hide()};g.w(VZ,JC);g.w(H8,g.Ly);g.a=H8.prototype;g.a.s0=function(){return this.durationMs}; g.a.stop=function(){this.L&&this.Dh.VO(this.L)}; g.a.qd=function(X){this.K={seekableStart:0,seekableEnd:this.durationMs/1E3,current:X.current};this.publish("h")}; g.a.getProgressState=function(){return this.K}; g.a.hN=function(X){g.Ds(X,2)&&this.publish("g")};g.w(OL,g.Ly);g.a=OL.prototype;g.a.s0=function(){return this.durationMs}; g.a.start=function(){this.L||(this.L=!0,this.timer.start())}; g.a.stop=function(){this.L&&(this.L=!1,this.timer.stop())}; g.a.qd=function(){this.yZ+=100;var X=!1;this.yZ>this.durationMs&&(this.yZ=this.durationMs,this.timer.stop(),X=!0);this.K={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.yZ/1E3};this.publish("h");X&&this.publish("g")}; g.a.getProgressState=function(){return this.K};g.w(tu,Ny);g.a=tu.prototype;g.a.init=function(X,J,L){Ny.prototype.init.call(this,X,J,L);var x;if(J==null?0:(x=J.templatedCountdown)==null?0:x.templatedAdText){X=J.templatedCountdown.templatedAdText;if(!X.isTemplated){g.PM(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.K=new B1(this.api,this.layoutId,this.interactionLoggingClientData,this.oB);this.K.init(Xr("ad-text"),X,{});this.K.zH(this.element);g.f(this,this.K)}this.show()}; g.a.clear=function(){this.hide()}; g.a.hide=function(){mT(this);Ny.prototype.hide.call(this)}; g.a.q9=function(){this.hide()}; g.a.UY=function(){if(this.L!=null){var X=this.L.getProgressState();if(X!=null&&X.current!=null&&this.K){var J=this.L instanceof H8?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:X.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.L instanceof OL?X.seekableEnd:this.api.getDuration(2,!1);X=X.current;var L,x,Q=((L=this.api.getVideoData())==null?0:(x=L.OA)==null?0:x.call(L))?Math.max(J-X,0):J-X;sD(this.K,{FORMATTED_AD_DURATION_REMAINING:String(g.aF(Q)), TIME_REMAINING:String(Math.ceil(Q))})}}}; g.a.show=function(){UD(this);Ny.prototype.show.call(this)};g.w(dn,B1);dn.prototype.onClick=function(X){B1.prototype.onClick.call(this,X);this.api.onAdUxClicked(this.componentType)};g.w(oF,IO);oF.prototype.init=function(X,J){IO.prototype.init.call(this,X,J,{});if(X=J.content){g.tw(this.element,X);var L,x;J=((L=J.interaction)==null?void 0:(x=L.accessibility)==null?void 0:x.label)||X;this.element.setAttribute("aria-label",J)}else g.Sc(Error("AdSimpleAttributedString does not have text content"))}; oF.prototype.clear=function(){this.hide()}; oF.prototype.onClick=function(X){IO.prototype.onClick.call(this,X)};g.w(b4,IO); b4.prototype.init=function(X,J){IO.prototype.init.call(this,X,J,{});(X=J.label)&&X.content&&!g.YS(X.content)?(this.adBadgeText.init(Xr("ad-simple-attributed-string"),new u4(X)),(J=J.adPodIndex)&&J.content&&!g.YS(J.content)&&(this.L=new oF(this.api,this.layoutId,this.interactionLoggingClientData,this.oB),this.L.zH(this.element),g.f(this,this.L),this.L.element.classList.add("ytp-ad-badge__pod-index"),this.L.init(Xr("ad-simple-attributed-string"),new u4(J))),this.element.classList.add(this.K?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.Sc(Error("No label is returned in AdBadgeViewModel."))}; b4.prototype.show=function(){this.adBadgeText.show();var X;(X=this.L)==null||X.show();IO.prototype.show.call(this)}; b4.prototype.hide=function(){this.adBadgeText.hide();var X;(X=this.L)==null||X.hide();IO.prototype.hide.call(this)};g.w(Sh,IO);Sh.prototype.init=function(X,J){IO.prototype.init.call(this,X,J,{});(X=J.adPodIndex)&&X.content&&!g.YS(X.content)&&(this.L=new oF(this.api,this.layoutId,this.interactionLoggingClientData,this.oB),this.L.zH(this.element),g.f(this,this.L),this.L.init(Xr("ad-simple-attributed-string"),new u4(X)),J.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()}; Sh.prototype.show=function(){var X;(X=this.L)==null||X.show();IO.prototype.show.call(this)}; Sh.prototype.hide=function(){var X;(X=this.L)==null||X.hide();IO.prototype.hide.call(this)};g.w(P8,IO); P8.prototype.init=function(X,J){IO.prototype.init.call(this,X,J,{});if(J!=null&&J.text){var L;if(((L=J.text)==null?0:L.content)&&!g.YS(J.text.content)){this.L=new g.qy({V:"div",U:"ytp-ad-disclosure-banner__text",iB:J.text.content});g.f(this,this.L);this.L.zH(this.element);var x,Q;X=((x=J.interaction)==null?void 0:(Q=x.accessibility)==null?void 0:Q.label)||J.text.content;this.element.setAttribute("aria-label",X);var K;if((K=J.interaction)==null?0:K.onTap)this.K=new g.qy({V:"div",U:"ytp-ad-disclosure-banner__chevron",C:[g.yp()]}), g.f(this,this.K),this.K.zH(this.element);this.show()}}else g.Sc(Error("No banner text found in AdDisclosureBanner."))}; P8.prototype.clear=function(){this.hide()};g.w(YL,g.qy);YL.prototype.qd=function(){var X=this.K.getProgressState(),J=X.seekableEnd;this.api.getPresentingPlayerType()===2&&(J=this.N?this.N/1E3:X.seekableEnd);this.progressBar.style.width=EL(new c8(X.seekableStart,J),X.current,0)*100+"%"}; YL.prototype.onStateChange=function(){g.kH(this.api.G())||(this.api.getPresentingPlayerType()===2?this.L===-1&&(this.show(),this.L=this.K.subscribe("h",this.qd,this),this.qd()):this.L!==-1&&(this.hide(),this.K.ez(this.L),this.L=-1))};g.w(hu,IO); hu.prototype.init=function(X,J,L,x){IO.prototype.init.call(this,X,J,L);if(J.skipOrPreviewRenderer){if(X=g.F(J.skipOrPreviewRenderer,bR))L=new MH(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,this.K,this.D),L.zH(this.jC),L.init(Xr("skip-button"),X,this.macros),g.f(this,L);if(X=g.F(J.skipOrPreviewRenderer,bR))var Q=X.skipOffsetMilliseconds}J.brandInteractionRenderer&&(X=J.brandInteractionRenderer.brandInteractionRenderer,L=new Ju(this.api,this.layoutId,this.interactionLoggingClientData,this.oB), L.zH(this.gI),L.init(Xr("instream-user-sentiment"),X,this.macros),g.f(this,L));if(X=g.F(J,fRu))if(X=g.F(X,fRu))L=new X4(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,this.K,!!J.showWithoutLinkedMediaLayout),g.f(this,L),L.zH(this.B),L.init(Xr("flyout-cta"),X,this.macros);x=x&&x.videoAdDurationSeconds;J.adBadgeRenderer&&(L=J.adBadgeRenderer,X=g.F(L,kA),X!=null?(L=new b4(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,!1),g.f(this,L),L.zH(this.L),L.init(Xr("ad-badge"), X,this.macros),this.N=L.element):(X=L.simpleAdBadgeRenderer,X==null&&(X={text:{text:"Anuncio",isTemplated:!1}}),L=new nX(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,!0),g.f(this,L),L.zH(this.L),L.init(Xr("simple-ad-badge"),X,this.macros)));J.adPodIndex&&(X=g.F(J.adPodIndex,kUS),X!=null&&(L=new Sh(this.api,this.layoutId,this.interactionLoggingClientData,this.oB),g.f(this,L),L.zH(this.L),L.init(Xr("ad-pod-index"),X)));J.adDurationRemaining&&!J.showWithoutLinkedMediaLayout&&(X=J.adDurationRemaining.adDurationRemainingRenderer, X==null&&(X={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),x=new tu(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,this.K,x,!1),g.f(this,x),x.zH(this.L),x.init(Xr("ad-duration-remaining"),X,this.macros));J.adInfoRenderer&&(x=g.F(J.adInfoRenderer,A9))&&(X=new RO(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,this.element,void 0,!1),g.f(this,X),this.N!==null?this.L.insertBefore(X.element,this.N.nextSibling):X.zH(this.L), X.init(Xr("ad-info-hover-text-button"),x,this.macros));J.visitAdvertiserRenderer&&(X=g.F(J.visitAdvertiserRenderer,g.JE))&&(L=$AR(this)&&this.T?this.T:this.L)&&(x=new yZ(this.api,this.layoutId,this.interactionLoggingClientData,this.oB),g.f(this,x),x.zH(L),x.init(Xr("visit-advertiser"),X,this.macros),GI(x.element),X=Rm(x.element),e$(x.element,X+" This link opens in new tab"));!(x=this.api.G())||g.U2(x)||g.lb(x)||x.controlsType!="3"&&!x.disableOrganicUi||(Q=new YL(this.api,this.K,Q,!1),Q.zH(this.vl), g.f(this,Q));J.adDisclosureBannerRenderer&&(J=g.F(J.adDisclosureBannerRenderer,mx0))&&(Q=new P8(this.api,this.layoutId,this.interactionLoggingClientData,this.oB),Q.zH(this.aB),Q.init(Xr("ad-disclosure-banner"),J),g.f(this,Q));this.api.G().Y("enable_updated_html5_player_focus_style")&&g.xq(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; hu.prototype.clear=function(){this.hide()};g.pX.prototype.flush=function(X,J){X=X===void 0?[]:X;J=J===void 0?!1:J;if(g.VQ("enable_client_streamz_web")){X=g.d(X);for(var L=X.next();!L.done;L=X.next())L=A2I(L.value),this.L&&tK(L,gg,2,this.L),L={serializedIncrementBatch:g.S3(L.N())},g.QK("streamzIncremented",L,{sendIsolatedPayload:J})}}; g.w(Mkm,g.pX);var xXz=new Map;rn.prototype.set=function(X,J,L){L=L!==void 0?Date.now()+L:void 0;this.L.set(X,J,L)}; rn.prototype.get=function(X){return this.L.get(X)}; rn.prototype.remove=function(X){this.L.remove(X)};var nGZ=null;var fX=null,eh=null,F4=null,wRm=null;g.JS("yt.www.ads.eventcache.getLastCompanionData",function(){return fX}); g.JS("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.JS("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return eh}); g.JS("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return F4}); g.JS("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return wRm});var dAY=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);l4.prototype.handleResponse=function(X,J){if(!J)throw Error("request needs to be passed into ConsistencyService");var L,x;J=((L=J.r8.context)==null?void 0:(x=L.request)==null?void 0:x.consistencyTokenJars)||[];var Q;(X=(Q=X.responseContext)==null?void 0:Q.consistencyTokenJar)&&this.replace(J,X)}; l4.prototype.replace=function(X,J){X=g.d(X);for(var L=X.next();!L.done;L=X.next())delete this.L[L.value.encryptedTokenJarContents];oGA(this,J)};var gD8=window.location.hostname.split(".").slice(-2).join("."),r5;B8.getInstance=function(){r5=g.Ld("yt.clientLocationService.instance");r5||(r5=new B8,g.JS("yt.clientLocationService.instance",r5));return r5}; g.a=B8.prototype; g.a.setLocationOnInnerTubeContext=function(X){X.client||(X.client={});if(this.L)X.client.locationInfo||(X.client.locationInfo={}),X.client.locationInfo.latitudeE7=Math.floor(this.L.coords.latitude*1E7),X.client.locationInfo.longitudeE7=Math.floor(this.L.coords.longitude*1E7),X.client.locationInfo.horizontalAccuracyMeters=Math.round(this.L.coords.accuracy),X.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.N||this.locationPlayabilityToken)X.client.locationPlayabilityToken=this.N|| this.locationPlayabilityToken}; g.a.handleResponse=function(X){var J;X=(J=X.responseContext)==null?void 0:J.locationPlayabilityToken;X!==void 0&&(this.locationPlayabilityToken=X,this.L=void 0,g.ly("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=RF(this))&&this.localStorage.set("yt-location-playability-token",X,15552E3):g.h8("YT_CL",JSON.stringify({loctok:X}),15552E3,gD8,!0))}; g.a.clearLocationPlayabilityToken=function(X){X==="TVHTML5"?(this.localStorage=RF(this))&&this.localStorage.remove("yt-location-playability-token"):g.W6("YT_CL");this.N=void 0;this.K!==-1&&(clearTimeout(this.K),this.K=-1)}; g.a.getCurrentPositionFromGeolocation=function(){var X=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var J=!1,L=1E4;g.ly("INNERTUBE_CLIENT_NAME")==="MWEB"&&(J=!0,L=15E3);return new Promise(function(x,Q){navigator.geolocation.getCurrentPosition(function(K){X.L=K;x(K)},function(K){Q(K)},{enableHighAccuracy:J, maximumAge:0,timeout:L})})}; g.a.createUnpluggedLocationInfo=function(X){var J={};X=X.coords;if(X==null?0:X.latitude)J.latitudeE7=Math.floor(X.latitude*1E7);if(X==null?0:X.longitude)J.longitudeE7=Math.floor(X.longitude*1E7);if(X==null?0:X.accuracy)J.locationRadiusMeters=Math.round(X.accuracy);return J}; g.a.createLocationInfo=function(X){var J={};X=X.coords;if(X==null?0:X.latitude)J.latitudeE7=Math.floor(X.latitude*1E7);if(X==null?0:X.longitude)J.longitudeE7=Math.floor(X.longitude*1E7);return J};g.a=EGz.prototype;g.a.contains=function(X){return Object.prototype.hasOwnProperty.call(this.L,X)}; g.a.get=function(X){if(this.contains(X))return this.L[X]}; g.a.set=function(X,J){this.L[X]=J}; g.a.bT=function(){return Object.keys(this.L)}; g.a.remove=function(X){delete this.L[X]};NH.prototype.getModuleId=function(X){return X.serviceId.getModuleId()}; NH.prototype.get=function(X){a:{var J=this.mappings.get(X.toString());switch(J.type){case "mapping":X=J.value;break a;case "factory":J=J.value();this.mappings.set(X.toString(),{type:"mapping",value:J});X=J;break a;default:X=$0(J)}}return X}; NH.prototype.registerService=function(X,J){this.mappings.set(X.toString(),{type:"mapping",value:J});return X}; new NH;var vF={},YVZ=(vF.WEB_UNPLUGGED="^unplugged/",vF.WEB_UNPLUGGED_ONBOARDING="^unplugged/",vF.WEB_UNPLUGGED_OPS="^unplugged/",vF.WEB_UNPLUGGED_PUBLIC="^unplugged/",vF.WEB_CREATOR="^creator/",vF.WEB_KIDS="^kids/",vF.WEB_EXPERIMENTS="^experiments/",vF.WEB_MUSIC="^music/",vF.WEB_REMIX="^music/",vF.WEB_MUSIC_EMBEDDED_PLAYER="^music/",vF.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",vF);kL.prototype.j=function(X,J,L){J=J===void 0?{}:J;L=L===void 0?Iv:L;var x={context:g.sL(X.clickTrackingParams,!1,this.T)};var Q=this.K(X);if(Q){this.L(x,Q,J);var K;J=g.mr(this.N());(Q=(K=g.F(X.commandMetadata,g.S1))==null?void 0:K.apiUrl)&&(J=Q);K=VFZ(pU(J));X=Object.assign({},{command:X},void 0);x={input:K,cP:rP(K),r8:x,config:X};x.config.AC?x.config.AC.identity=L:x.config.AC={identity:L};return x}L=new g.Fm("Error: Failed to create Request from Command.",X);g.Sc(L)}; g.KR.Object.defineProperties(kL.prototype,{T:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.w(Zs,kL);g.w(Au,Zs);Au.prototype.j=function(){return{input:"/getDatasyncIdsEndpoint",cP:rP("/getDatasyncIdsEndpoint","GET"),r8:{}}}; Au.prototype.N=function(){return[]}; Au.prototype.K=function(){}; Au.prototype.L=function(){};var DGF={},DFv=(DGF.GET_DATASYNC_IDS=UL(Au),DGF);var j1={},$GH=(j1["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",j1["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",j1["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",j1["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",j1["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",j1["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",j1["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", j1["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",j1["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",j1["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",j1["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",j1["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",j1["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",j1["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",j1["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", j1["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",j1["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",j1["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",j1["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",j1["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",j1["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",j1["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", j1["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",j1.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",j1["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",j1["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",j1["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",j1["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",j1["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",j1["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", j1["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",j1["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",j1["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",j1["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",j1["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",j1["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",j1["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",j1["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",j1["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",j1["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",j1.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",j1["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",j1["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",j1["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",j1["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",j1["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",j1["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",j1["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",j1["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",j1["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",j1["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",j1["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",j1["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",j1["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",j1["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",j1["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",j1["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",j1["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",j1["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",j1["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",j1["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",j1["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", j1["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",j1["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",j1["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",j1["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",j1["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",j1["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",j1["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",j1["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",j1["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", j1["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",j1["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",j1["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",j1["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",j1["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",j1["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",j1["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",j1["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", j1),Tj={},jZP=(Tj.auto_search="LATENCY_ACTION_AUTO_SEARCH",Tj.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Tj.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Tj.app_startup="LATENCY_ACTION_APP_STARTUP",Tj.browse="LATENCY_ACTION_BROWSE",Tj.cast_splash="LATENCY_ACTION_CAST_SPLASH",Tj.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Tj.channels="LATENCY_ACTION_CHANNELS",Tj.chips="LATENCY_ACTION_CHIPS",Tj.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Tj.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", Tj.editor="LATENCY_ACTION_EDITOR",Tj.embed="LATENCY_ACTION_EMBED",Tj.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Tj.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Tj.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Tj.explore="LATENCY_ACTION_EXPLORE",Tj.favorites="LATENCY_ACTION_FAVORITES",Tj.home="LATENCY_ACTION_HOME",Tj.inboarding="LATENCY_ACTION_INBOARDING",Tj.landing="LATENCY_ACTION_LANDING",Tj.library="LATENCY_ACTION_LIBRARY",Tj.live= "LATENCY_ACTION_LIVE",Tj.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Tj.management="LATENCY_ACTION_MANAGEMENT",Tj.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Tj.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Tj.onboarding="LATENCY_ACTION_ONBOARDING",Tj.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",Tj.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Tj.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Tj.player_att="LATENCY_ACTION_PLAYER_ATTESTATION", Tj.prebuffer="LATENCY_ACTION_PREBUFFER",Tj.prefetch="LATENCY_ACTION_PREFETCH",Tj.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Tj.profile_switcher="LATENCY_ACTION_LOGIN",Tj.projects="LATENCY_ACTION_PROJECTS",Tj.reel_watch="LATENCY_ACTION_REEL_WATCH",Tj.results="LATENCY_ACTION_RESULTS",Tj.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Tj.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Tj.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Tj.review="LATENCY_ACTION_REVIEW",Tj.search_overview_answer= "LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Tj.search_ui="LATENCY_ACTION_SEARCH_UI",Tj.search_suggest="LATENCY_ACTION_SUGGEST",Tj.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Tj.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Tj.seek="LATENCY_ACTION_PLAYER_SEEK",Tj.settings="LATENCY_ACTION_SETTINGS",Tj.store="LATENCY_ACTION_STORE",Tj.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Tj.tenx="LATENCY_ACTION_TENX",Tj.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Tj.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD", Tj.watch="LATENCY_ACTION_WATCH",Tj.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Tj["watch,watch7"]="LATENCY_ACTION_WATCH",Tj["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Tj["watch,watch7ad"]="LATENCY_ACTION_WATCH",Tj["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Tj.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",Tj.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Tj.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Tj.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Tj.networkless_performance= "LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Tj.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Tj.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Tj.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Tj);Object.assign(jZP,$GH);g.w(Io,gb);var Z9Z=new $t("aft-recorded",Io);var CFV=g.Ao.ytLoggingGelSequenceIdObj_||{};g.JS("ytLoggingGelSequenceIdObj_",CFV);var $R=g.Ao.ytLoggingLatencyUsageStats_||{};g.JS("ytLoggingLatencyUsageStats_",$R);gD.prototype.tick=function(X,J,L,x){CF(this,"tick_"+X+"_"+J)||g.QK("latencyActionTicked",{tickName:X,clientActionNonce:J},{timestamp:L,cttAuthInfo:x})}; gD.prototype.info=function(X,J,L){var x=Object.keys(X).join("");CF(this,"info_"+x+"_"+J)||(X=Object.assign({},X),X.clientActionNonce=J,g.QK("latencyActionInfo",X,{cttAuthInfo:L}))}; gD.prototype.jspbInfo=function(X,J,L){for(var x="",Q=0;Q=Q.length?(J.append(Q),X-=Q.length):X?(J.append(new Uint8Array(Q.buffer,Q.byteOffset,X)),L.append(new Uint8Array(Q.buffer,Q.byteOffset+X,Q.length-X)),X=0):L.append(Q);return{YK:J,SR:L}}; iE.prototype.isFocused=function(X){return X>=this.N&&X=64&&(this.B.set(X.subarray(0,64-this.K),this.K),J=64-this.K,this.K=0,XXY(this,this.B,0));for(;J+64<=L;J+=64)XXY(this,X,J);J=this.start&&(X=2&&L.ssdaiAdsConfig&&qH("Unexpected ad placement renderers length",X.slot,null,{length:x.length});var Q;((Q=L.adSlots)==null?0:Q.some(function(K){var q,D;return((q=g.F(K,i5))==null?void 0:(D=q.adSlotMetadata)==null?void 0:D.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||x.some(function(K){var q,D,C,M; return!!((q=K.renderer)==null?0:(D=q.linearAdSequenceRenderer)==null?0:(C=D.linearAds)==null?0:C.length)||!((M=K.renderer)==null||!M.instreamVideoAdRenderer)})||upe(X)})}; Uq.prototype.He=function(){I4Z(this.L)};mm.prototype.uE=function(){var X=this;qwR(this.K,function(){var J=Nf(X.slot.clientMetadata,"metadata_type_ad_break_request_data");return J.cueProcessedMs?X.L.get().fetch({DB:J.getAdBreakUrl,P1:new g.Rw(J.Tw,J.Ph),cueProcessedMs:J.cueProcessedMs}):X.L.get().fetch({DB:J.getAdBreakUrl,P1:new g.Rw(J.Tw,J.Ph)})})}; mm.prototype.He=function(){I4Z(this.K)};kB.prototype.uE=function(){var X=this.slot.clientMetadata,J,L=(J=this.slot.fulfilledLayout)!=null?J:Nf(X,"metadata_type_fulfilled_layout");fiv(this.callback,this.slot,L)}; kB.prototype.He=function(){q2(this.callback,this.slot,new m("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")};A_.prototype.build=function(X,J){return J.fulfilledLayout||Z7(J,{yO:["metadata_type_fulfilled_layout"]})?new kB(X,J):this.N(X,J)};g.w(XP,A_); XP.prototype.N=function(X,J){if(Z7(J,{yO:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Uq(X,J,this.L,this.K,this.R0,this.h0,this.ZY,this.wI,this.P9);if(Z7(J,{yO:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new mm(X,J,this.L,this.K,this.R0,this.h0);throw new m("Unsupported slot with type: "+J.slotType+" and client metadata: "+Uj(J.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.w(JM,A_);JM.prototype.N=function(X,J){throw new m("Unsupported slot with type: "+J.slotType+" and client metadata: "+Uj(J.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.a=oOv.prototype;g.a.UH=function(){return this.slot}; g.a.pm=function(){return this.layout}; g.a.init=function(){}; g.a.release=function(){}; g.a.startRendering=function(X){if(X.layoutId!==this.layout.layoutId)this.callback.lU(this.slot,X,new BH("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 J=Nf(X.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.Dw(this.slot,X),eV8(this.N, this.slot,J)):qH("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,X)}}; g.a.lH=function(X,J){X.layoutId!==this.layout.layoutId?this.callback.lU(this.slot,X,new BH("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.Fv(this.slot,X,J),SwY(this),Pem(this))};g.w(K2,g.Ly);g.a=K2.prototype;g.a.UH=function(){return this.K.slot}; g.a.pm=function(){return this.K.layout}; g.a.init=function(){this.N.get().addListener(this)}; g.a.release=function(){this.N.get().removeListener(this);this.dispose()}; g.a.WY=function(){}; g.a.I3=function(){}; g.a.dM=function(){}; g.a.Zf=function(){}; g.a.startRendering=function(X){var J=this;QO(this.K,X,function(){return void J.Bs()})}; g.a.Bs=function(){this.N.get().Bs(this.L)}; g.a.lH=function(X,J){var L=this;QO(this.K,X,function(){var x=L.N.get();u8m(x,L.L,3);L.L=[];L.callback.Fv(L.slot,X,J)})}; g.a.uB=function(){this.N.E6()||this.N.get().removeListener(this);g.Ly.prototype.uB.call(this)}; g.KR.Object.defineProperties(K2.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.K.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.K.layout}}});yO.prototype.OV=function(X,J){J=J===void 0?!1:J;var L=(this.N.get(X)||[]).concat();if(J=J&&hlo(X)){var x=this.N.get(J);x&&L.push.apply(L,g.nR(x))}Hy(this,X,L);this.L.add(X);J&&this.L.add(J)}; yO.prototype.J_=function(X,J){J=J===void 0?!1:J;if(!this.L.has(X)){var L=J&&hlo(X);L&&(J=!this.L.has(L));this.OV(X,J)}};g.w(pMv,JC);g.w(dV,K2);g.a=dV.prototype;g.a.iZ=function(X,J){DJ("ads-engagement-panel-layout",X,this.B.get().Rc,this.ZY.get(),this.T,this.j,this.UH(),this.pm(),J)}; g.a.startRendering=function(X){IT(this.s6,this.UH(),this.pm(),g.F(this.pm().renderingContent,oX),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(J,L,x,Q,K){return new pMv(J,L,x,Q,K)},this.L); K2.prototype.startRendering.call(this,X)}; g.a.Dw=function(X,J){this.j===J.layoutId&&(this.T===null?this.T=this.ZY.get().h2():qH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.a.Fv=function(){}; g.a.WD=function(){}; g.a.B5=function(){}; g.a.VY=function(){}; g.a.vO=function(){}; g.a.VD=function(){}; g.a.Zx=function(){}; g.a.EV=function(){}; g.a.Xy=function(){}; g.a.hJ=function(){}; g.a.d2=function(){}; g.a.uB=function(){Qw(this.KO(),this);K2.prototype.uB.call(this)};g.w(vOe,JC);g.w(us,K2);g.a=us.prototype;g.a.iZ=function(X,J){DJ("banner-image",X,this.B.get().Rc,this.ZY.get(),this.T,this.j,this.UH(),this.pm(),J)}; g.a.startRendering=function(X){IT(this.s6,this.UH(),this.pm(),g.F(this.pm().renderingContent,dd),this.callback,"metadata_type_banner_image_layout_view_model",function(J,L,x,Q,K){return new vOe(J,L,x,Q,K)},this.L); K2.prototype.startRendering.call(this,X)}; g.a.Dw=function(X,J){this.j===J.layoutId&&(this.T===null?this.T=this.ZY.get().h2():qH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.a.Fv=function(){}; g.a.WD=function(){}; g.a.B5=function(){}; g.a.VY=function(){}; g.a.vO=function(){}; g.a.VD=function(){}; g.a.Zx=function(){}; g.a.EV=function(){}; g.a.Xy=function(){}; g.a.hJ=function(){}; g.a.d2=function(){}; g.a.uB=function(){Qw(this.KO(),this);K2.prototype.uB.call(this)};g.w(oT,JC);g.w(bs,K2);g.a=bs.prototype;g.a.iZ=function(X,J){DJ("action-companion",X,this.B.get().Rc,this.ZY.get(),this.T,this.j,this.UH(),this.pm(),J)}; g.a.startRendering=function(X){IT(this.s6,this.UH(),this.pm(),g.F(this.pm().renderingContent,aX),this.callback,"metadata_type_action_companion_ad_renderer",function(J,L,x,Q,K){return new oT(J,L,x,Q,K)},this.L); K2.prototype.startRendering.call(this,X)}; g.a.Dw=function(X,J){J.layoutId===this.layout.layoutId?this.s6.J_("impression"):this.j===J.layoutId&&(this.T===null?this.T=this.ZY.get().h2():qH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.a.Fv=function(){}; g.a.WD=function(){}; g.a.B5=function(){}; g.a.VY=function(){}; g.a.vO=function(){}; g.a.VD=function(){}; g.a.Zx=function(){}; g.a.EV=function(){}; g.a.Xy=function(){}; g.a.hJ=function(){}; g.a.d2=function(){}; g.a.uB=function(){Qw(this.KO(),this);K2.prototype.uB.call(this)};g.w(Gcz,JC);g.w(Sr,K2);g.a=Sr.prototype;g.a.iZ=function(X,J){DJ("image-companion",X,this.B.get().Rc,this.ZY.get(),this.T,this.j,this.UH(),this.pm(),J)}; g.a.startRendering=function(X){IT(this.s6,this.UH(),this.pm(),g.F(this.pm().renderingContent,wd),this.callback,"metadata_type_image_companion_ad_renderer",function(J,L,x,Q,K){return new Gcz(J,L,x,Q,K)},this.L); K2.prototype.startRendering.call(this,X)}; g.a.Dw=function(X,J){J.layoutId===this.layout.layoutId?this.s6.J_("impression"):this.j===J.layoutId&&(this.T===null?this.T=this.ZY.get().h2():qH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.a.Fv=function(){}; g.a.WD=function(){}; g.a.B5=function(){}; g.a.VY=function(){}; g.a.vO=function(){}; g.a.VD=function(){}; g.a.Zx=function(){}; g.a.EV=function(){}; g.a.Xy=function(){}; g.a.hJ=function(){}; g.a.d2=function(){}; g.a.uB=function(){Qw(this.KO(),this);K2.prototype.uB.call(this)};g.w(elP,JC);g.w(Py,K2);g.a=Py.prototype;g.a.iZ=function(X,J){DJ("shopping-companion",X,this.B.get().Rc,this.ZY.get(),this.T,this.j,this.UH(),this.pm(),J)}; g.a.startRendering=function(X){IT(this.s6,this.UH(),this.pm(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(J,L,x,Q,K){return new elP(J,L,x,Q,K)},this.L); K2.prototype.startRendering.call(this,X)}; g.a.Dw=function(X,J){J.layoutId===this.layout.layoutId?this.s6.J_("impression"):this.j===J.layoutId&&(this.T===null?this.T=this.ZY.get().h2():qH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.a.Fv=function(){}; g.a.WD=function(){}; g.a.B5=function(){}; g.a.VY=function(){}; g.a.vO=function(){}; g.a.VD=function(){}; g.a.Zx=function(){}; g.a.EV=function(){}; g.a.Xy=function(){}; g.a.hJ=function(){}; g.a.d2=function(){}; g.a.uB=function(){Qw(this.KO(),this);K2.prototype.uB.call(this)};g.w(Ex,K2);g.a=Ex.prototype;g.a.startRendering=function(X){IT(this.s6,this.UH(),this.pm(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(J,L,x,Q,K){return new oT(J,L,x,Q,K)},this.L); K2.prototype.startRendering.call(this,X)}; g.a.Dw=function(){}; g.a.Fv=function(){}; g.a.WD=function(){}; g.a.B5=function(){}; g.a.VY=function(){}; g.a.vO=function(){}; g.a.VD=function(){}; g.a.Zx=function(){}; g.a.EV=function(){}; g.a.Xy=function(){}; g.a.hJ=function(){}; g.a.d2=function(){}; g.a.uB=function(){Qw(this.KO(),this);K2.prototype.uB.call(this)}; g.a.iZ=function(){};g.a=N2Z.prototype;g.a.UH=function(){return this.slot}; g.a.pm=function(){return this.layout}; g.a.init=function(){this.wI.get().addListener(this);this.wI.get().sU.push(this);var X=Nf(this.layout.clientMetadata,"metadata_type_video_length_seconds"),J=Nf(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");$w(this.layout.yl)&&Km(this.ih.get(),this.layout.layoutId,{As:J,sR:X,listener:this})}; g.a.release=function(){this.wI.get().removeListener(this);Ooz(this.wI.get(),this);$w(this.layout.yl)&&q4(this.ih.get(),this.layout.layoutId)}; g.a.startRendering=function(X){this.callback.Dw(this.slot,X)}; g.a.lH=function(X,J){eJY(this.h0.get())&&!this.L&&(this.s6.J_("abandon"),this.L=!0);this.callback.Fv(this.slot,X,J)}; g.a.qs=function(X){switch(X.id){case "part2viewed":this.s6.J_("start");this.s6.J_("impression");break;case "videoplaytime25":this.s6.J_("first_quartile");break;case "videoplaytime50":this.s6.J_("midpoint");break;case "videoplaytime75":this.s6.J_("third_quartile");break;case "videoplaytime100":eJY(this.h0.get())?this.L||(this.s6.J_("complete"),this.L=!0):this.s6.J_("complete");tM(this.s6)&&aT(this.s6,Infinity,!0);Fqm(this.h0.get())&&cy(this.K,Infinity,!0);break;case "engagedview":tM(this.s6)||this.s6.J_("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:qH("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.a.onVolumeChange=function(){}; g.a.cS=function(){}; g.a.v5=function(){}; g.a.dZ=function(){}; g.a.onFullscreenToggled=function(){}; g.a.I2=function(){}; g.a.qP=function(){}; g.a.rW=function(X){Fqm(this.h0.get())&&cy(this.K,X*1E3,!1);tM(this.s6)&&aT(this.s6,X*1E3,!1)}; g.a.HJ=function(){}; g.a.qp=function(){this.s6.J_("active_view_measurable")}; g.a.YJ=function(){this.s6.J_("active_view_viewable")}; g.a.ju=function(){this.s6.J_("active_view_fully_viewable_audible_half_duration")}; g.a.Bz=function(){this.s6.J_("audio_measurable")}; g.a.EG=function(){this.s6.J_("audio_audible")};g.w(Yw,K2);g.a=Yw.prototype;g.a.init=function(){K2.prototype.init.call(this);var X=Nf(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),J={adsClientData:this.layout.B4};this.L.push(new VZ(X,this.layout.layoutId,Nf(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),J,!0))}; g.a.Tu=function(){this.T||this.wI.get().resumeVideo(1)}; g.a.startRendering=function(X){K2.prototype.startRendering.call(this,X);nm(this.wI.get(),"ad-showing");this.callback.Dw(this.slot,X);this.j.Do=this}; g.a.lH=function(X,J){K2.prototype.lH.call(this,X,J);VN(this.wI.get(),"ad-showing");Js(this.j,this)}; g.a.iZ=function(X){switch(X){case "ad-info-icon-button":(this.T=this.wI.get().Og(1))||this.wI.get().pauseVideo();break;case "visit-advertiser":this.wI.get().pauseVideo()}}; g.a.uB=function(){K2.prototype.uB.call(this)};g.w(hM,JC);g.w(zX,K2);g.a=zX.prototype;g.a.startRendering=function(X){IT(this.s6,this.UH(),this.pm(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(J,L,x,Q,K){return new hM(J,L,x,Q,K)},this.L); K2.prototype.startRendering.call(this,X)}; g.a.Dw=function(){}; g.a.Fv=function(){}; g.a.WD=function(){}; g.a.B5=function(){}; g.a.VY=function(){}; g.a.vO=function(){}; g.a.VD=function(){}; g.a.Zx=function(){}; g.a.EV=function(){}; g.a.Xy=function(){}; g.a.hJ=function(){}; g.a.d2=function(){}; g.a.uB=function(){Qw(this.KO(),this);K2.prototype.uB.call(this)}; g.a.iZ=function(){};g.w(Wy,JC);g.w(p2,K2);p2.prototype.init=function(){K2.prototype.init.call(this);this.L.push(new Wy(g.F(this.layout.renderingContent,se),this.layout.layoutId,{adsClientData:this.layout.B4}))}; p2.prototype.iZ=function(){mu(this.T.get(),this.j)&&gV(this.ZY.get(),3)}; p2.prototype.startRendering=function(X){K2.prototype.startRendering.call(this,X);this.callback.Dw(this.slot,X)}; p2.prototype.uB=function(){K2.prototype.uB.call(this)};g.w(rV,JC);g.w(vy,K2);vy.prototype.init=function(){K2.prototype.init.call(this);var X=g.F(this.layout.renderingContent,mP)||Nf(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),J=qe(this.s6);this.L.push(new rV(X,J,this.layout.layoutId,{adsClientData:this.layout.B4},!0,!0))}; vy.prototype.startRendering=function(X){K2.prototype.startRendering.call(this,X);this.callback.Dw(this.slot,X)}; vy.prototype.iZ=function(X,J){if(J===this.layout.layoutId)switch(X){case "skip-button":var L;(X=(L=Nf(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:L.current)&&X.mG(this.UH(),this.layout)}}; vy.prototype.uB=function(){K2.prototype.uB.call(this)};TX.prototype.build=function(X,J,L,x){if(jr(x,{yO:["metadata_type_ad_break_response_data"],GR:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new oOv(X,L,x,this.K,this.N,this.L);throw new BH("Unsupported layout with type: "+x.layoutType+" and client metadata: "+Uj(x.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.w(kcY,JC);g.w(GX,K2);g.a=GX.prototype;g.a.iZ=function(X,J){DJ("ads-engagement-panel",X,this.B.get().Rc,this.ZY.get(),this.T,this.j,this.UH(),this.pm(),J)}; g.a.startRendering=function(X){IT(this.s6,this.UH(),this.pm(),g.F(this.pm().renderingContent,t9),this.callback,"metadata_type_ads_engagement_panel_renderer",function(J,L,x,Q,K){return new kcY(J,L,x,Q,K)},this.L); K2.prototype.startRendering.call(this,X)}; g.a.Dw=function(X,J){J.layoutId===this.layout.layoutId?this.s6.J_("impression"):this.j===J.layoutId&&(this.T===null?this.T=this.ZY.get().h2():qH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.a.Fv=function(){}; g.a.WD=function(){}; g.a.B5=function(){}; g.a.VY=function(){}; g.a.vO=function(){}; g.a.VD=function(){}; g.a.Zx=function(){}; g.a.EV=function(){}; g.a.Xy=function(){}; g.a.hJ=function(){}; g.a.d2=function(){}; g.a.uB=function(){Qw(this.KO(),this);K2.prototype.uB.call(this)};g.w(f2,K2);g.a=f2.prototype;g.a.iZ=function(X,J){DJ("top-banner-image-text-icon-buttoned",X,this.B.get().Rc,this.ZY.get(),this.T,this.j,this.UH(),this.pm(),J)}; g.a.startRendering=function(X){IT(this.s6,this.UH(),this.pm(),g.F(this.pm().renderingContent,ug),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(J,L,x,Q,K){return new hM(J,L,x,Q,K)},this.L); K2.prototype.startRendering.call(this,X)}; g.a.Dw=function(X,J){this.j===J.layoutId&&(this.T===null?this.T=this.ZY.get().h2():qH("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.a.Fv=function(){}; g.a.WD=function(){}; g.a.B5=function(){}; g.a.VY=function(){}; g.a.vO=function(){}; g.a.VD=function(){}; g.a.Zx=function(){}; g.a.EV=function(){}; g.a.Xy=function(){}; g.a.hJ=function(){}; g.a.d2=function(){}; g.a.uB=function(){Qw(this.KO(),this);K2.prototype.uB.call(this)};X1S.prototype.build=function(X,J,L,x){if(jr(x,ZfA())||g.F(x.renderingContent,t9)!==void 0)return new GX(X,L,x,this.Nd,this.ZY,this.KO,this.ih,this.L);if(jr(x,T2I())||g.F(x.renderingContent,aX)!==void 0)return new bs(X,L,x,this.Nd,this.ZY,this.KO,this.ih,this.L);if(jr(x,f4e())||g.F(x.renderingContent,wd)!==void 0)return new Sr(X,L,x,this.Nd,this.ZY,this.KO,this.ih,this.L);if(jr(x,FjP()))return new Py(X,L,x,this.Nd,this.ZY,this.KO,this.ih,this.L);if(jr(x,sVW()))return new Ex(X,L,x,this.Nd,this.ZY,this.KO, this.ih,this.L);if(jr(x,jVO())||g.F(x.renderingContent,dd)!==void 0)return new us(X,L,x,this.Nd,this.ZY,this.KO,this.ih,this.L);if(jr(x,ARm())||g.F(x.renderingContent,ug)!==void 0)return new f2(X,L,x,this.Nd,this.ZY,this.KO,this.ih,this.L);if(jr(x,UBm()))return new zX(X,L,x,this.Nd,this.ZY,this.KO,this.ih,this.L);if(jr(x,rRo())||g.F(x.renderingContent,oX)!==void 0)return new dV(X,L,x,this.Nd,this.ZY,this.KO,this.ih,this.L);throw new BH("Unsupported layout with type: "+x.layoutType+" and client metadata: "+ Uj(x.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};JCY.prototype.build=function(X,J,L,x){if(jr(x,{yO:["metadata_type_linked_player_bytes_layout_id"],GR:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new p2(X,L,x,this.Nd,this.ZY,this.L);throw new BH("Unsupported layout with type: "+x.layoutType+" and client metadata: "+Uj(x.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.a=LTm.prototype;g.a.UH=function(){return this.slot}; g.a.pm=function(){return this.layout}; g.a.init=function(){}; g.a.release=function(){}; g.a.startRendering=function(X){X.layoutId!==this.layout.layoutId?this.callback.lU(this.slot,X,new BH("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.Dw(this.slot,X),this.s6.J_("impression"),$g(this.YW,X,"normal"))}; g.a.lH=function(X,J){X.layoutId!==this.layout.layoutId?this.callback.lU(this.slot,X,new BH("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.Fv(this.slot,X,J)};g.a=iyS.prototype;g.a.UH=function(){return this.slot}; g.a.pm=function(){return this.layout}; g.a.init=function(){}; g.a.release=function(){}; g.a.startRendering=function(X){X.layoutId!==this.layout.layoutId?this.callback.lU(this.slot,X,new BH("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.Dw(this.slot,X),this.s6.J_("impression"),$g(this.YW,X,"normal"))}; g.a.lH=function(X,J){X.layoutId!==this.layout.layoutId?this.callback.lU(this.slot,X,new BH("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.Fv(this.slot,X,J)};er.prototype.build=function(X,J,L,x){if(!this.h0.get().Z.G().Y("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(jr(x,xyz()))return new LTm(X,L,x,this.ZY,this.YW)}else if(jr(x,{yO:[],GR:["LAYOUT_TYPE_FORECASTING"]}))return new iyS(X,L,x,this.ZY,this.YW);throw new BH("Unsupported layout with type: "+x.layoutType+" and client metadata: "+Uj(x.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.w(qDZ,JC);g.w(FP,K2);g.a=FP.prototype;g.a.init=function(){K2.prototype.init.call(this);var X=g.F(this.layout.renderingContent,Ux)||Nf(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),J={adsClientData:this.layout.B4};this.L.push(new qDZ(X,Nf(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,J))}; g.a.Tu=function(){this.T||this.wI.get().resumeVideo(2)}; g.a.startRendering=function(X){K2.prototype.startRendering.call(this,X);this.callback.Dw(this.slot,X);this.j.Do=this}; g.a.lH=function(X,J){K2.prototype.lH.call(this,X,J);Js(this.j,this)}; g.a.iZ=function(X,J){if(!vf(this.h0.get(),"stop_handling_click_for_non_rendering_overlay_layout")||J===this.layout.layoutId){if(mu(this.B.get(),this.W))switch(X){case "visit-advertiser-link":gV(this.ZY.get(),3)}switch(X){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.T||this.wI.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.T=this.wI.get().Og(2))||this.wI.get().pauseVideo();break; case "visit-advertiser-link":this.wI.get().pauseVideo();Inz(this).OL();break;case "skip-button":if(X=Inz(this),this.layout.renderingContent&&!Fg(this.layout.clientMetadata,"metadata_type_dai")||!X||!X.e2){var L;(X=(L=Nf(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:L.current)&&X.mG(this.UH(),this.layout)}else qH("Requesting to skip by LegacyPlayerBytes when components enabled"),X.UG(this.UH(),this.layout)}}}; g.a.uB=function(){K2.prototype.uB.call(this)};g.w(ls,K2);g.a=ls.prototype;g.a.init=function(){K2.prototype.init.call(this);var X=g.F(this.layout.renderingContent,Ne)||Nf(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),J={adsClientData:this.layout.B4},L;(L=!!this.layout.renderingContent)||(L=RT(this),L=!(L&&L.e2));this.L.push(new VZ(X,this.layout.layoutId,Nf(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),J,L))}; g.a.Tu=function(){this.T||this.wI.get().resumeVideo(2)}; g.a.startRendering=function(X){K2.prototype.startRendering.call(this,X);this.callback.Dw(this.slot,X);this.j.Do=this}; g.a.lH=function(X,J){K2.prototype.lH.call(this,X,J);Js(this.j,this)}; g.a.iZ=function(X,J){if(!this.h0||!vf(this.h0.get(),"stop_handling_click_for_non_rendering_overlay_layout")||J===this.layout.layoutId){if(mu(this.B.get(),this.W))switch(X){case "visit-advertiser":gV(this.ZY.get(),3)}switch(X){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.T||this.wI.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.T=this.wI.get().Og(2))||this.wI.get().pauseVideo();break; case "visit-advertiser":this.wI.get().pauseVideo();RT(this).OL();break;case "skip-button":if(X=RT(this),this.layout.renderingContent&&!Fg(this.layout.clientMetadata,"metadata_type_dai")||!X||!X.e2){var L;(X=(L=Nf(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:L.current)&&X.mG(this.UH(),this.layout)}else qH("Requesting to skip by LegacyPlayerBytes"),X.UG(this.UH(),this.layout)}}}; g.a.uB=function(){K2.prototype.uB.call(this)};g.w(Dyo,JC);g.w(By,K2);g.a=By.prototype;g.a.startRendering=function(X){var J=this;QO(this.K,X,function(){J.L.push(new Dyo(Nf(J.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),X.layoutId,X.B4));J.Bs();J.callback.Dw(J.slot,X);g.N(QN(J.wI.get(),1),512)&&J.callback.lU(J.UH(),J.pm(),new BH("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.a.qP=function(){}; g.a.I2=function(X){if(X.state.isError()){var J;this.callback.lU(this.UH(),this.pm(),new BH("A player error happened during adNotify",{playerErrorCode:(J=X.state.pn)==null?void 0:J.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.a.onFullscreenToggled=function(){}; g.a.v5=function(){}; g.a.dZ=function(){}; g.a.cS=function(){}; g.a.onVolumeChange=function(){}; g.a.qs=function(){}; g.a.HJ=function(){}; g.a.iZ=function(){};g.w(CAm,JC);g.w(sx,K2);sx.prototype.init=function(){K2.prototype.init.call(this);var X=g.F(this.layout.renderingContent,kw),J=qe(this.s6);this.L.push(new CAm(X,J,this.layout.layoutId,{adsClientData:this.layout.B4}))}; sx.prototype.startRendering=function(X){K2.prototype.startRendering.call(this,X);this.callback.Dw(this.slot,X)}; sx.prototype.iZ=function(X,J){if(J===this.layout.layoutId)switch(X){case "skip-button":var L;(X=(L=Nf(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:L.current)&&X.mG(this.UH(),this.layout)}}; sx.prototype.uB=function(){K2.prototype.uB.call(this)};MlY.prototype.build=function(X,J,L,x){if(X=ZJ(X,L,x,this.Nd,this.wI,this.ZY,this.K,this.L,this.h0))return X;throw new BH("Unsupported layout with type: "+x.layoutType+" and client metadata: "+Uj(x.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.a=Jb.prototype;g.a.UH=function(){return this.slot}; g.a.pm=function(){return this.layout}; g.a.init=function(){this.wI.get().addListener(this);this.wI.get().sU.push(this);if(this.layout.renderingContent){var X=this.dI.get();X=vv(X,1).JS/1E3}else X=Nf(this.layout.clientMetadata,"metadata_type_video_length_seconds");var J=g.F(this.layout.renderingContent,lg),L=J?C2(J.pings):Nf(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");J=J?YwS(J.pings):Nf(this.layout.clientMetadata,"metadata_type_active_view_identifier");$w(this.layout.yl)&&Km(this.ih.get(),this.layout.layoutId, {As:L,sR:X,listener:this,sD:J})}; g.a.release=function(){this.wI.get().removeListener(this);Ooz(this.wI.get(),this);$w(this.layout.yl)&&q4(this.ih.get(),this.layout.layoutId)}; g.a.startRendering=function(X){this.callback.Dw(this.slot,X)}; g.a.lH=function(X,J){Lv(this,"abandon");this.callback.Fv(this.slot,X,J)}; g.a.qs=function(X){switch(X.id){case "part2viewed":this.s6.J_("start");this.s6.J_("impression");break;case "videoplaytime25":this.s6.J_("first_quartile");break;case "videoplaytime50":this.s6.J_("midpoint");break;case "videoplaytime75":this.s6.J_("third_quartile");break;case "videoplaytime100":Lv(this,"complete");tM(this.s6)&&aT(this.s6,Infinity,!0);break;case "engagedview":tM(this.s6)||this.s6.J_("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:qH("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.a.onVolumeChange=function(){}; g.a.cS=function(){}; g.a.v5=function(){}; g.a.dZ=function(){}; g.a.onFullscreenToggled=function(){}; g.a.I2=function(X){this.L||(g.Ds(X,4)&&!g.Ds(X,2)?Ox(this.s6,"pause"):gn(X,4)<0&&!(gn(X,2)<0)&&Ox(this.s6,"resume"))}; g.a.qP=function(){}; g.a.rW=function(X){tM(this.s6)&&aT(this.s6,X*1E3,!1)}; g.a.HJ=function(){Lv(this,"swipe")}; g.a.qp=function(){this.s6.J_("active_view_measurable")}; g.a.YJ=function(){this.s6.J_("active_view_viewable")}; g.a.ju=function(){this.s6.J_("active_view_fully_viewable_audible_half_duration")}; g.a.Bz=function(){this.s6.J_("audio_measurable")}; g.a.EG=function(){this.s6.J_("audio_audible")};yCY.prototype.build=function(X,J,L,x){if(L.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.F(x.renderingContent,lg)!==void 0)return new Jb(X,L,x,this.wI,this.ZY,this.h0,this.ih,this.dI);J=["metadata_type_ad_placement_config"];for(var Q=g.d(n2()),K=Q.next();!K.done;K=Q.next())J.push(K.value);if(jr(x,{yO:J,GR:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return L.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new Jb(X,L,x,this.wI,this.ZY,this.h0,this.ih,this.dI):new N2Z(X,L,x,this.wI,this.ZY, this.v4,this.h0,this.ih);throw new BH("Unsupported layout with type: "+x.layoutType+" and client metadata: "+Uj(x.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var Kv={contentCpn:"",UU:new Map};oEo.prototype.lB=function(X,J){var L={};J=Object.assign({},J,(L.cc=this.AO.PK(),L));this.AO.Z.Ni(X,J)};var Y9F,lz; Y9F={bnq:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",us9:"AUTHENTICATION_MALFORMED",h9q:"AUTHENTICATION_MISSING",TpH:"BAD_REQUEST",Vjm:"CAST_SESSION_DEVICE_MISMATCHED",ZvE:"CAST_SESSION_VIDEO_MISMATCHED",EWl:"CAST_TOKEN_EXPIRED",Bpm:"CAST_TOKEN_FAILED",jc0:"CAST_TOKEN_MALFORMED",qS6:"CGI_PARAMS_MALFORMED",YSH:"CGI_PARAMS_MISSING",rz6:"DEVICE_FALLBACK",E7B:"GENERIC_WITH_LINK_AND_CPN",BZE:"ERROR_HDCP",j_C:"LICENSE",Yvm:"VIDEO_UNAVAILABLE",pJH:"FORMAT_UNAVAILABLE",bJl:"GEO_FAILURE", m0M:"HTML5_AUDIO_RENDERER_ERROR",LfB:"GENERIC_WITHOUT_LINK",KfM:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",aIl:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",NzI:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",iA6:"HTML5_SPS_UMP_STATUS_REJECTED",wfq:"INVALID_DRM_MESSAGE",KAi:"PURCHASE_NOT_FOUND",apB:"PURCHASE_REFUNDED",TFI:"RENTAL_EXPIRED",vZM:"RETRYABLE_ERROR",d9m:"SERVER_ERROR",b$B:"SIGNATURE_EXPIRED",tQ0:"STOPPED_BY_ANOTHER_PLAYBACK",cvE:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Xqq:"STREAMING_NOT_ALLOWED", Ctl:"STREAM_LICENSE_NOT_FOUND",LvM:"TOO_MANY_REQUESTS",KvB:"TOO_MANY_REQUESTS_WITH_LINK",aSM:"TOO_MANY_STREAMS_PER_ENTITLEMENT",NJ0:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",ISq:"VIDEO_FORBIDDEN",H1B:"VIDEO_NOT_FOUND",wSC:"BROWSER_OR_EXTENSION_ERROR"};lz={}; g.Bm=(lz.ALREADY_PINNED_ON_A_DEVICE="Este video ya se descarg\u00f3 en la cantidad m\u00e1xima de dispositivos permitidos por el propietario de los derechos de autor. Antes de que puedas reproducir el video en este dispositivo, debes desvincularlo de cualquier otro.",lz.DEVICE_FALLBACK="Este video no est\u00e1 disponible en este dispositivo.",lz.GENERIC_WITH_LINK_AND_CPN="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde (ID de reproducci\u00f3n: $CPN). $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK", lz.LICENSE="Se produjo un error de licencia con este video.",lz.VIDEO_UNAVAILABLE="Video no disponible",lz.FORMAT_UNAVAILABLE="Este video no est\u00e1 disponible en la calidad seleccionada. Vuelve a intentarlo.",lz.GEO_FAILURE="Este video no est\u00e1 disponible en tu pa\u00eds.",lz.HTML5_AUDIO_RENDERER_ERROR="Se produjo un error en el procesador de audio. Reinicia tu computadora.",lz.GENERIC_WITHOUT_LINK="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.",lz.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de video.",lz.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="En este momento, tu navegador no reconoce ninguno de los formatos de video disponibles. $BEGIN_LINKHaz clic aqu\u00ed para ver las preguntas frecuentes sobre el video HTML5.$END_LINK",lz.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="No puedes reproducir este video en tu navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",lz.HTML5_SPS_UMP_STATUS_REJECTED="Se produjo un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK", lz.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico para el sistema DRM no es v\u00e1lido.",lz.PURCHASE_NOT_FOUND="Este es un video pagado.",lz.PURCHASE_REFUNDED="La compra de este video se reembols\u00f3.",lz.RENTAL_EXPIRED="El per\u00edodo de alquiler de este video termin\u00f3.",lz.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo en la sesi\u00f3n de transmisi\u00f3n no coincide con el dispositivo solicitado.",lz.CAST_SESSION_VIDEO_MISMATCHED="El video en la sesi\u00f3n de transmisi\u00f3n no coincide con el video solicitado.", lz.CAST_TOKEN_FAILED="La sesi\u00f3n de transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",lz.CAST_TOKEN_EXPIRED="La sesi\u00f3n de transmisi\u00f3n termin\u00f3. Actualiza la p\u00e1gina.",lz.CAST_TOKEN_MALFORMED="Sesi\u00f3n de transmisi\u00f3n no v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",lz.SERVER_ERROR="Se produjo un error interno en el servidor. Vuelve a intentarlo m\u00e1s tarde.",lz.STOPPED_BY_ANOTHER_PLAYBACK= "Tu cuenta est\u00e1 reproduciendo este video en otra ubicaci\u00f3n. Vuelve a cargar la p\u00e1gina para continuar mirando.",lz.STREAM_LICENSE_NOT_FOUND="Se interrumpi\u00f3 la reproducci\u00f3n del video. Vuelve a intentarlo.",lz.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Utilizaste demasiadas direcciones IP o dispositivos durante las \u00faltimas 24 horas.",lz.STREAMING_NOT_ALLOWED="No se puede reproducir el video porque est\u00e1 vinculado con otro dispositivo.",lz.RETRYABLE_ERROR="Se produjo un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.", lz.TOO_MANY_REQUESTS="Accede para mirar el video.",lz.TOO_MANY_REQUESTS_WITH_LINK="Haz $BEGIN_LINKclic aqu\u00ed$END_LINK para mirar este video en YouTube.",lz.TOO_MANY_STREAMS_PER_USER="Se detuvo la reproducci\u00f3n porque se est\u00e1n reproduciendo demasiados videos que pertenecen a la misma cuenta.",lz.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se detuvo la reproducci\u00f3n porque este video se est\u00e1 reproduciendo en demasiados dispositivos.",lz.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.", lz.VIDEO_FORBIDDEN="El acceso a este video est\u00e1 prohibido.",lz.VIDEO_NOT_FOUND="No se puede encontrar este video.",lz.BROWSER_OR_EXTENSION_ERROR="Se produjo un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",lz);var hgF;var zgu=g.vc(),W9V=zgu.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!W9V||W9V.length<2)hgF=void 0;else{var pB8=zgu.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);hgF=pB8&&pB8.length===6?Number(pB8[5].replace("_",".")):0}var Zm=hgF,fi=Zm>=0;g.w(g.dS,o2);g.dS.prototype.J=function(X,J,L,x,Q){return o2.prototype.J.call(this,X,J,L,x,Q)};var Rr={},j0=(Rr.FAIRPLAY="fairplay",Rr.PLAYREADY="playready",Rr.WIDEVINE="widevine",Rr.CLEARKEY=null,Rr.FLASHACCESS=null,Rr.UNKNOWN=null,Rr.WIDEVINE_CLASSIC=null,Rr);u2.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var BF={},FV=(BF.WIDTH={name:"width",video:!0,valid:640,gF:99999},BF.HEIGHT={name:"height",video:!0,valid:360,gF:99999},BF.FRAMERATE={name:"framerate",video:!0,valid:30,gF:9999},BF.BITRATE={name:"bitrate",video:!0,valid:3E5,gF:2E9},BF.EOTF={name:"eotf",video:!0,valid:"bt709",gF:"catavision"},BF.CHANNELS={name:"channels",video:!1,valid:2,gF:99},BF.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",gF:"invalidformat"},BF.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", gF:"nope"},BF.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",gF:"av99.0.05M.08"},BF.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",gF:"invalid"},BF.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",gF:"false"},BF);var rwH=["h","H"],vDH=["9","("],jWF=["9h","(h"],T0I=["8","*"],G1F=["a","A"],f8H=["o","O"],egH=["m","M"],F9I=["mac3","MAC3"],l8d=["meac3","MEAC3"],so={},vjA=(so.h=rwH,so.H=rwH,so["9"]=vDH,so["("]=vDH,so["9h"]=jWF,so["(h"]=jWF,so["8"]=T0I,so["*"]=T0I,so.a=G1F,so.A=G1F,so.o=f8H,so.O=f8H,so.m=egH,so.M=egH,so.mac3=F9I,so.MAC3=F9I,so.meac3=l8d,so.MEAC3=l8d,so),RgI=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),dev=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var Z={},Ec=(Z["0"]="f",Z["160"]="h",Z["133"]="h",Z["134"]="h",Z["135"]="h",Z["136"]="h",Z["137"]="h",Z["264"]="h",Z["266"]="h",Z["138"]="h",Z["298"]="h",Z["299"]="h",Z["304"]="h",Z["305"]="h",Z["214"]="h",Z["216"]="h",Z["374"]="h",Z["375"]="h",Z["140"]="a",Z["141"]="a",Z["327"]="sa",Z["258"]="m",Z["380"]="mac3",Z["328"]="meac3",Z["161"]="H",Z["142"]="H",Z["143"]="H",Z["144"]="H",Z["222"]="H",Z["223"]="H",Z["145"]="H",Z["224"]="H",Z["225"]="H",Z["146"]="H",Z["226"]="H",Z["227"]="H",Z["147"]="H",Z["384"]= "H",Z["376"]="H",Z["385"]="H",Z["377"]="H",Z["149"]="A",Z["261"]="M",Z["381"]="MAC3",Z["329"]="MEAC3",Z["598"]="9",Z["278"]="9",Z["242"]="9",Z["243"]="9",Z["244"]="9",Z["775"]="9",Z["776"]="9",Z["777"]="9",Z["778"]="9",Z["779"]="9",Z["780"]="9",Z["781"]="9",Z["782"]="9",Z["783"]="9",Z["247"]="9",Z["248"]="9",Z["353"]="9",Z["355"]="9",Z["356"]="9",Z["271"]="9",Z["577"]="9",Z["313"]="9",Z["579"]="9",Z["272"]="9",Z["302"]="9",Z["303"]="9",Z["407"]="9",Z["408"]="9",Z["308"]="9",Z["315"]="9",Z["330"]= "9h",Z["331"]="9h",Z["332"]="9h",Z["333"]="9h",Z["334"]="9h",Z["335"]="9h",Z["336"]="9h",Z["337"]="9h",Z["338"]="so",Z["600"]="o",Z["250"]="o",Z["251"]="o",Z["774"]="o",Z["194"]="*",Z["195"]="*",Z["220"]="*",Z["221"]="*",Z["196"]="*",Z["197"]="*",Z["279"]="(",Z["280"]="(",Z["317"]="(",Z["318"]="(",Z["273"]="(",Z["274"]="(",Z["357"]="(",Z["358"]="(",Z["275"]="(",Z["359"]="(",Z["360"]="(",Z["276"]="(",Z["583"]="(",Z["584"]="(",Z["314"]="(",Z["585"]="(",Z["561"]="(",Z["277"]="(",Z["361"]="(h",Z["362"]= "(h",Z["363"]="(h",Z["364"]="(h",Z["365"]="(h",Z["366"]="(h",Z["591"]="(h",Z["592"]="(h",Z["367"]="(h",Z["586"]="(h",Z["587"]="(h",Z["368"]="(h",Z["588"]="(h",Z["562"]="(h",Z["409"]="(",Z["410"]="(",Z["411"]="(",Z["412"]="(",Z["557"]="(",Z["558"]="(",Z["394"]="1",Z["395"]="1",Z["396"]="1",Z["397"]="1",Z["398"]="1",Z["399"]="1",Z["720"]="1",Z["721"]="1",Z["400"]="1",Z["401"]="1",Z["571"]="1",Z["402"]="1",Z["694"]="1h",Z["695"]="1h",Z["696"]="1h",Z["697"]="1h",Z["698"]="1h",Z["699"]="1h",Z["700"]="1h", Z["701"]="1h",Z["702"]="1h",Z["703"]="1h",Z["386"]="3",Z["387"]="w",Z["406"]="6",Z["787"]="1",Z["788"]="1",Z["548"]="1e",Z["549"]="1e",Z["550"]="1e",Z["551"]="1e",Z["809"]="1e",Z["810"]="1e",Z["552"]="1e",Z["811"]="1e",Z["812"]="1e",Z["553"]="1e",Z["813"]="1e",Z["814"]="1e",Z["554"]="1e",Z["815"]="1e",Z["816"]="1e",Z["555"]="1e",Z["817"]="1e",Z["818"]="1e",Z["572"]="1e",Z["556"]="1e",Z["645"]="(",Z["646"]="(",Z["647"]="(",Z["648"]="(",Z["649"]="(",Z["650"]="(",Z["651"]="(",Z["652"]="(",Z["653"]="(", Z["654"]="(",Z["655"]="(",Z["656"]="(",Z["657"]="(",Z["658"]="(",Z["659"]="(",Z["660"]="(",Z["661"]="(",Z["662"]="(",Z["663"]="(",Z["664"]="(",Z["665"]="(",Z["666"]="(",Z["667"]="(",Z["668"]="(",Z["669"]="(",Z["670"]="(",Z["671"]="(",Z["672"]="(",Z["673"]="(",Z["674"]="(h",Z["675"]="(h",Z["676"]="(h",Z["677"]="(h",Z["678"]="(h",Z["679"]="(h",Z["680"]="(h",Z["681"]="(h",Z["682"]="(h",Z["683"]="(h",Z["684"]="(h",Z["685"]="(h",Z["686"]="(h",Z["687"]="(h",Z["688"]="A",Z["689"]="A",Z["690"]="A",Z["691"]= "MEAC3",Z["773"]="i",Z["806"]="I",Z["805"]="I",Z["829"]="9",Z["830"]="9",Z["831"]="9",Z["832"]="9",Z["833"]="9",Z["834"]="9",Z["835"]="9",Z["836"]="9",Z["892"]="9",Z["893"]="9",Z["837"]="9",Z["838"]="9",Z["839"]="9",Z["840"]="9",Z["841"]="(",Z["842"]="(",Z["843"]="(",Z["844"]="(",Z["845"]="(",Z["846"]="(",Z["847"]="(",Z["848"]="(",Z["894"]="(",Z["895"]="(",Z["849"]="(",Z["850"]="(",Z["851"]="(",Z["852"]="(",Z["865"]="9",Z["866"]="9",Z["867"]="9",Z["868"]="9",Z["869"]="9",Z["870"]="9",Z["871"]="9", Z["872"]="9",Z["896"]="9",Z["897"]="9",Z["873"]="9",Z["874"]="9",Z["875"]="9",Z["876"]="9",Z["877"]="(",Z["878"]="(",Z["879"]="(",Z["880"]="(",Z["881"]="(",Z["882"]="(",Z["883"]="(",Z["884"]="(",Z["898"]="(",Z["899"]="(",Z["885"]="(",Z["886"]="(",Z["887"]="(",Z["888"]="(",Z);var Nb={},H8I=(Nb.STEREO_LAYOUT_UNKNOWN=0,Nb.STEREO_LAYOUT_LEFT_RIGHT=1,Nb.STEREO_LAYOUT_TOP_BOTTOM=2,Nb);var Uo,cK;Uo={};g.b2=(Uo.auto=0,Uo.tiny=144,Uo.light=144,Uo.small=240,Uo.medium=360,Uo.large=480,Uo.hd720=720,Uo.hd1080=1080,Uo.hd1440=1440,Uo.hd2160=2160,Uo.hd2880=2880,Uo.highres=4320,Uo);cK={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var PU="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");Si.prototype.isHdr=function(){return this.L==="smpte2084"||this.L==="arib-std-b67"};Yr.prototype.KY=function(){return this.containerType===2}; Yr.prototype.isEncrypted=function(){return!!this.V0}; Yr.prototype.g2=function(){return!!this.audio}; Yr.prototype.JO=function(){return!!this.video}; var pv=!1;g.w(xj,g.Ly);g.a=xj.prototype;g.a.appendBuffer=function(X,J,L){if(this.rQ.F2()!==this.appendWindowStart+this.start||this.rQ.Ja()!==this.appendWindowEnd+this.start||this.rQ.W4()!==this.timestampOffset+this.start)this.rQ.supports(1),this.rQ.ol(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.rQ.aC(this.timestampOffset+this.start);this.rQ.appendBuffer(X,J,L)}; g.a.abort=function(){this.rQ.abort()}; g.a.remove=function(X,J){this.rQ.remove(X+this.start,J+this.start)}; g.a.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.a.clear=function(){this.rQ.clear()}; g.a.ol=function(X,J){this.appendWindowStart=X;this.appendWindowEnd=J}; g.a.Zi=function(){return this.timestampOffset+this.start}; g.a.F2=function(){return this.appendWindowStart}; g.a.Ja=function(){return this.appendWindowEnd}; g.a.aC=function(X){this.timestampOffset=X}; g.a.W4=function(){return this.timestampOffset}; g.a.ll=function(X){X=this.rQ.ll(X===void 0?!1:X);return L8(X,this.start,this.end)}; g.a.BK=function(){return this.rQ.BK()}; g.a.QM=function(){return this.rQ.QM()}; g.a.FB=function(){return this.rQ.FB()}; g.a.R3=function(){return this.rQ.R3()}; g.a.NO=function(){this.rQ.NO()}; g.a.D7=function(X){return this.rQ.D7(X)}; g.a.En=function(){return this.rQ.En()}; g.a.Xq=function(){return this.rQ.Xq()}; g.a.Gx=function(X,J,L){this.rQ.Gx(X,J,L)}; g.a.MW=function(X,J,L){this.rQ.MW(X,J,L)}; g.a.by=function(X,J){return this.rQ.by(X,J)}; g.a.supports=function(X){return this.rQ.supports(X)}; g.a.lm=function(){return this.rQ.lm()}; g.a.isView=function(){return!0}; g.a.D4=function(){return this.rQ.D4()?this.isActive:!1}; g.a.isLocked=function(){return this.Ma&&!this.isActive}; g.a.yr=function(X){X=this.rQ.yr(X);X.vw=this.start+"-"+this.end;return X}; g.a.CP=function(){return this.rQ.CP()}; g.a.j6=function(){return this.rQ.j6()}; g.a.gM=function(){return this.rQ.gM()}; g.a.uB=function(){this.rQ.f6(this.rP);g.Ly.prototype.uB.call(this)};var di=!1;g.w(Qy,g.Ly);g.a=Qy.prototype;g.a.appendBuffer=function(X,J,L){this.HQ=!1;L&&(this.TL=L);if(X.length){var x;((x=this.je)==null?0:x.appendBuffer)?this.je.appendBuffer(X):this.je?this.je.append(X):this.jz&&this.jz.webkitSourceAppend(this.id,X)}J&&(J.isEncrypted()&&(this.wW=this.TL),J.type===3&&(this.XN=J),this.kI.push(J.gQ()),this.kI.length>4&&this.kI.shift());this.v3&&(this.v3.length>=2||X.length>1048576?delete this.v3:this.v3.push(X))}; g.a.abort=function(){try{this.je?this.je.abort():this.jz&&this.jz.webkitSourceAbort(this.id)}catch(J){if(mm8){var X=new g.Fm("Error while abort the source buffer: "+J.name+", "+J.message);g.Sc(X)}}this.TL=this.XN=null}; g.a.remove=function(X,J,L){this.HQ=!1;var x;if((x=this.je)==null?0:x.remove)L&&L({b:Nh(this.ll()),s:X,e:J}),this.je.remove(X,J)}; g.a.removeAll=function(){this.remove(this.F2(),this.Ja())}; g.a.clear=function(){this.FB()||(this.abort(),this.removeAll(),this.wW=this.TL=this.XN=null,this.appendWindowStart=this.timestampOffset=0,this.qN=sc([],[]),this.HQ=!1,this.v3=iw?[]:void 0,this.KP=!0)}; g.a.F2=function(){if(di&&this.JO)return this.appendWindowStart;var X;return((X=this.je)==null?void 0:X.appendWindowStart)||0}; g.a.Ja=function(){var X;return((X=this.je)==null?void 0:X.appendWindowEnd)||0}; g.a.ol=function(X,J){this.je&&(di&&this.JO?(this.appendWindowStart=X,this.je.appendWindowEnd=J):X>this.F2()?(this.je.appendWindowEnd=J,this.je.appendWindowStart=X):(this.je.appendWindowStart=X,this.je.appendWindowEnd=J))}; g.a.Zi=function(){return this.timestampOffset}; g.a.aC=function(X){di?this.timestampOffset=X:this.supports(1)&&(this.je.timestampOffset=X)}; g.a.W4=function(){return di?this.timestampOffset:this.supports(1)?this.je.timestampOffset:0}; g.a.ll=function(X){if(X===void 0?0:X)return this.HQ||this.BK()||(this.qN=this.ll(!1),this.HQ=!0),this.qN;try{return this.je?this.je.buffered:this.jz?this.jz.webkitSourceBuffered(this.id):sc([0],[Infinity])}catch(J){return sc([],[])}}; g.a.BK=function(){var X;return((X=this.je)==null?void 0:X.updating)||!1}; g.a.FB=function(){return this.KP}; g.a.R3=function(){return!this.KP&&this.BK()}; g.a.NO=function(){this.KP=!1}; g.a.D7=function(X){var J=X==null?void 0:X.XE;X=X==null?void 0:X.containerType;return!J&&!X||J===this.XE&&X===this.containerType}; g.a.En=function(){return this.TL}; g.a.Xq=function(){return this.wW}; g.a.by=function(X,J){return this.containerType!==X||this.XE!==J}; g.a.Gx=function(X,J,L){if(this.containerType!==X||L&&this.by(X,L))this.supports(4),K8()&&this.je.changeType(J),L&&(this.XE=L);this.containerType=X}; g.a.MW=function(X,J,L){this.containerType&&this.by(X,J)&&K8()&&this.je.changeType(L);this.containerType=X;this.XE=J}; g.a.lm=function(){return this.XN}; g.a.isView=function(){return!1}; g.a.supports=function(X){switch(X){case 1:var J;return((J=this.je)==null?void 0:J.timestampOffset)!==void 0;case 0:var L;return!((L=this.je)==null||!L.appendBuffer);case 2:var x;return!((x=this.je)==null||!x.remove);case 3:var Q,K;return!!(((Q=this.je)==null?0:Q.addEventListener)&&((K=this.je)==null?0:K.removeEventListener));case 4:return!(!this.je||!this.je.changeType);default:return!1}}; g.a.D4=function(){return!this.BK()}; g.a.isLocked=function(){return!1}; g.a.yr=function(X){X.to=this.W4();X.up=this.BK();var J,L=((J=this.je)==null?void 0:J.appendWindowStart)||0,x;J=((x=this.je)==null?void 0:x.appendWindowEnd)||Infinity;X.aw=L.toFixed(3)+"-"+J.toFixed(3);return X}; g.a.QM=function(){var X;return((X=this.je)==null?void 0:X.writeHead)||0}; g.a.CP=function(){for(var X={},J=0;J=7&&byW(this,function(){g.$b(function(){FTR(X,X.getCurrentTime(),0)},500)}); return J}; g.a.seekTo=function(X){this.Ab()>0&&(fi&&Zm<4&&(X=Math.max(.1,X)),this.setCurrentTime(X))}; g.a.UQ=function(){if(!this.K&&this.xq)if(this.xq.j)try{var X;C8(this,{l:"mer",sr:(X=this.Lm)==null?void 0:X.rp(),rs:yy(this.xq)});this.xq.clear();this.K=this.xq;this.xq=void 0}catch(J){X=new g.Fm("Error while clearing Media Source in MediaElement: "+J.name+", "+J.message),g.Sc(X),this.stopVideo()}else this.stopVideo()}; g.a.stopVideo=function(){var X=this;if(!this.K){var J;(J=this.xq)==null||G2O(J);if(sIm){if(!this.N){var L=new Vy;L.then(void 0,function(){}); this.N=L;N9z&&this.pause();g.$b(function(){X.N===L&&(ws(X),L.resolve())},200)}}else ws(this)}}; g.a.k6=function(){var X=this.SW();return XO(X)&&this.getDuration()?Zb(X,this.getCurrentTime()):0}; g.a.qC=function(){var X=this.getDuration();return X===Infinity?1:X?this.k6()/X:0}; g.a.yr=function(){try{var X=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:Nh(this.IP(),",",3),vbu:Nh(this.SW()),vbs:Nh(this.G2()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Ab(),vns:""+this.R4(),vec:""+this.J2(),vemsg:this.N2(),vvol:""+this.getVolume(),vdom:""+ +this.y$(),vsrc:""+ +!!this.yY(),vw:""+X.width,vh:""+X.height}}catch(J){return{}}}; g.a.hasError=function(){return this.J2()>0}; g.a.addEventListener=function(X,J){this.T.listen(X,J,!1,this);this.El(X)}; g.a.removeEventListener=function(X,J){this.T.VO(X,J,!1,this)}; g.a.dispatchEvent=function(X){if(this.N&&X.type==="pause")return!1;if(Umv){var J,L=((J=X.L)==null?void 0:J.timeStamp)||Infinity;J=L>performance.now()?L-Date.now()+performance.now():L;L=this.K||this.xq;if((L==null?0:L.FB())||J<=((L==null?void 0:L.B)||0)){var x;C8(this,{l:"mede",sr:(x=this.Lm)==null?void 0:x.rp(),et:X.type});return!1}if(this.UK)return C8(this,{l:"medes",et:X.type}),L&&X.type==="seeking"&&(L.B=performance.now(),this.UK=!1),!1}return this.T.dispatchEvent(X)}; g.a.v1=function(){this.B=!1}; g.a.F9=function(){this.B=!0;this.dN(!0)}; g.a.gE=function(){this.B&&!this.Aa()&&this.dN(!0)}; g.a.equals=function(X){return!!X&&X.kH()===this.kH()}; g.a.uB=function(){this.W&&this.removeEventListener("volumechange",this.gE);sIm&&ws(this);g.G.prototype.uB.call(this)}; var sIm=!1,N9z=!1,Umv=!1,BhY=!1;g.a=g.ds.prototype;g.a.isPaused=function(){return g.N(this,4)}; g.a.isPlaying=function(){return g.N(this,8)&&!g.N(this,512)&&!g.N(this,64)&&!g.N(this,2)}; g.a.isOrWillBePlaying=function(){return g.N(this,8)&&!g.N(this,2)&&!g.N(this,1024)}; g.a.isCued=function(){return g.N(this,64)&&!g.N(this,8)&&!g.N(this,4)}; g.a.isBuffering=function(){return g.N(this,1)&&!g.N(this,2)}; g.a.isError=function(){return g.N(this,128)}; g.a.isSuspended=function(){return g.N(this,512)}; g.a.RU=function(){return g.N(this,64)&&g.N(this,4)}; g.a.toString=function(){return"PSt."+this.state.toString(16)}; var m1={},ko=(m1.BUFFERING="buffering-mode",m1.CUED="cued-mode",m1.ENDED="ended-mode",m1.PAUSED="paused-mode",m1.PLAYING="playing-mode",m1.SEEKING="seeking-mode",m1.UNSTARTED="unstarted-mode",m1);g.w(zx,g.G);g.a=zx.prototype;g.a.dJ=function(){return this.N}; g.a.UH=function(){return this.slot}; g.a.pm=function(){return this.layout}; g.a.init=function(){var X=Nf(this.layout.clientMetadata,"metadata_type_video_length_seconds"),J=Nf(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");$w(this.layout.yl)&&Km(this.ih.get(),this.layout.layoutId,{As:J,sR:X,listener:this,MX:this.TK()});D$I(this.ZY.get(),this);X=this.sV;J=this.layout.layoutId;var L={MX:this.TK()};X.L.set(J,L);this.Jk()}; g.a.N7=function(){}; g.a.release=function(){$w(this.layout.yl)&&q4(this.ih.get(),this.layout.layoutId);$$e(this.ZY.get(),this);this.sV.L.delete(this.layout.layoutId);this.l5()}; g.a.iL=function(){}; g.a.Q8=function(){}; g.a.startRendering=function(X){gS(Wv(this));if(p8(this,X)){var J=this.L;Db(J.params.Sj.h0.get(),!0)&&urP(J,"p_sr",{});rs(this);this.Px(X);this.TK()||this.GJ(!1)}}; g.a.Dw=function(X,J){if(J.layoutId===this.layout.layoutId){this.Rf="rendering";this.K=this.wI.get().isMuted()||this.wI.get().getVolume()===0;this.J_("impression");this.J_("start");if(this.wI.get().isMuted()){e5(this,"mute");var L;X=((L=hf(this))==null?void 0:L.muteCommands)||[];zG(this.v4.get(),X,this.layout.layoutId)}if(this.wI.get().isFullscreen()){this.OV("fullscreen");var x;L=((x=hf(this))==null?void 0:x.fullscreenCommands)||[];zG(this.v4.get(),L,this.layout.layoutId)}this.TK()||(x=this.wQ.get(), x.N&&!x.K&&(x.j=!1,x.K=!0,x.actionType!=="ad_to_video"&&(E4("pbs",void 0,x.actionType),g.VQ("finalize_all_timelines")&&xFv(x.actionType))));this.YZ(1);this.fK(J);var Q;J=((Q=hf(this))==null?void 0:Q.impressionCommands)||[];zG(this.v4.get(),J,this.layout.layoutId)}}; g.a.n0=function(X,J,L){this.W={Nc:3,nR:X==="load_timeout"?402:400,errorMessage:J.message};this.J_("error");var x;X=((x=hf(this))==null?void 0:x.errorCommands)||[];zG(this.v4.get(),X,this.layout.layoutId);this.TK()||this.hR.lU(this.slot,this.layout,J,L)}; g.a.WL=function(){if(this.Rf==="rendering"){e5(this,"pause");var X,J=((X=hf(this))==null?void 0:X.pauseCommands)||[];zG(this.v4.get(),J,this.layout.layoutId);this.YZ(2)}}; g.a.xD=function(){if(this.Rf==="rendering"){e5(this,"resume");var X,J=((X=hf(this))==null?void 0:X.resumeCommands)||[];zG(this.v4.get(),J,this.layout.layoutId)}}; g.a.Qj=function(X,J){J=J===void 0?!1:J;if(this.Rf==="rendering"){var L={currentTimeSec:X,flush:J};$r(this.L,"p_ip",L);aT(this.s6,X*1E3,J);this.K||aT(this.s6,X*1E3,J===void 0?!1:J);var x=this.oZ();if(x){x/=1E3;if(X>=x*.25||J)this.J_("first_quartile"),$r(this.L,"p_fq",L);if(X>=x*.5||J)this.J_("midpoint"),$r(this.L,"p_sq",L);if(X>=x*.75||J)this.J_("third_quartile"),$r(this.L,"p_tq",L);this.h0.get().Z.G().experiments.Mi("enable_progress_command_flush_on_kabuki")?cy(this.T,X*1E3,J):cy(this.T,X*1E3,ZyZ(this)? J:!1)}}}; g.a.PK=function(){var X;return((X=vv(this.dI.get(),1))==null?void 0:X.clientPlaybackNonce)||""}; g.a.Z1=function(X,J){X.layoutId!==this.layout.layoutId?this.hR.lU(this.slot,X,new BH("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"):J()}; g.a.Fv=function(X,J,L){if(J.layoutId===this.layout.layoutId)switch(this.Rf="not_rendering",this.layoutExitReason=void 0,this.TK()||(X=L!=="normal"||this.position+1===this.B)&&this.GJ(X),this.HL(L),this.YZ(0),L){case "abandoned":if(wV(this.s6,"impression")){var x,Q=((x=hf(this))==null?void 0:x.abandonCommands)||[];zG(this.v4.get(),Q,this.layout.layoutId)}break;case "normal":x=((Q=hf(this))==null?void 0:Q.completeCommands)||[];zG(this.v4.get(),x,this.layout.layoutId);break;case "skipped":var K;x=((K= hf(this))==null?void 0:K.skipCommands)||[];zG(this.v4.get(),x,this.layout.layoutId)}}; g.a.nt=function(){return this.layout.layoutId}; g.a.Mb=function(){return this.W}; g.a.qp=function(){if(this.Rf==="rendering"){this.s6.J_("active_view_measurable");var X,J=((X=hf(this))==null?void 0:X.activeViewMeasurableCommands)||[];zG(this.v4.get(),J,this.layout.layoutId)}}; g.a.ju=function(){if(this.Rf==="rendering"){this.s6.J_("active_view_fully_viewable_audible_half_duration");var X,J=((X=hf(this))==null?void 0:X.activeViewFullyViewableAudibleHalfDurationCommands)||[];zG(this.v4.get(),J,this.layout.layoutId)}}; g.a.YJ=function(){if(this.Rf==="rendering"){this.s6.J_("active_view_viewable");var X,J=((X=hf(this))==null?void 0:X.activeViewViewableCommands)||[];zG(this.v4.get(),J,this.layout.layoutId)}}; g.a.EG=function(){if(this.Rf==="rendering"){this.s6.J_("audio_audible");var X,J=((X=hf(this))==null?void 0:X.activeViewAudioAudibleCommands)||[];zG(this.v4.get(),J,this.layout.layoutId)}}; g.a.Bz=function(){if(this.Rf==="rendering"){this.s6.J_("audio_measurable");var X,J=((X=hf(this))==null?void 0:X.activeViewAudioMeasurableCommands)||[];zG(this.v4.get(),J,this.layout.layoutId)}}; g.a.GJ=function(X){this.wQ.get().GJ(Nf(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,X,this.position,this.B,!1)}; g.a.onFullscreenToggled=function(X){if(this.Rf==="rendering")if(X){this.OV("fullscreen");var J,L=((J=hf(this))==null?void 0:J.fullscreenCommands)||[];zG(this.v4.get(),L,this.layout.layoutId)}else this.OV("end_fullscreen"),J=((L=hf(this))==null?void 0:L.endFullscreenCommands)||[],zG(this.v4.get(),J,this.layout.layoutId)}; g.a.onVolumeChange=function(){if(this.Rf==="rendering")if(this.wI.get().isMuted()){e5(this,"mute");var X,J=((X=hf(this))==null?void 0:X.muteCommands)||[];zG(this.v4.get(),J,this.layout.layoutId)}else e5(this,"unmute"),X=((J=hf(this))==null?void 0:J.unmuteCommands)||[],zG(this.v4.get(),X,this.layout.layoutId)}; g.a.v5=function(){}; g.a.dZ=function(){}; g.a.cS=function(){}; g.a.qs=function(){}; g.a.HJ=function(){}; g.a.OV=function(X){this.s6.OV(X,!this.K)}; g.a.J_=function(X){this.s6.J_(X,!this.K)}; g.a.TK=function(){var X=Nf(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return X===void 0?(qH("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.h0.get().TK(X)};g.w(sH,zx);g.a=sH.prototype;g.a.Jk=function(){}; g.a.l5=function(){var X=this.ZY.get();X.Vm===this&&(X.Vm=null);this.timer.stop()}; g.a.iL=function(){this.timer.stop();zx.prototype.WL.call(this)}; g.a.Q8=function(){UH(this);zx.prototype.xD.call(this)}; g.a.oZ=function(){return Nf(this.pm().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.a.lH=function(X,J){var L=this;this.Z1(X,function(){L.Rf!=="rendering_stop_requested"&&(L.Rf="rendering_stop_requested",L.layoutExitReason=J,j5(L,J),L.timer.stop())})}; g.a.qd=function(){var X=Date.now(),J=X-this.ZR;this.ZR=X;this.yZ+=J;this.yZ>=this.oZ()?this.Mt():(this.Qj(this.yZ/1E3),Nr(this,this.yZ))}; g.a.HL=function(){}; g.a.qP=function(){}; g.w(mK,sH);g.a=mK.prototype;g.a.I2=function(X){if(this.Rf!=="not_rendering"){X=Tx(this,X);var J=this.wI.get().getPresentingPlayerType()===2;this.Rf==="rendering_start_requested"?J&&AM(X)&&this.im():J?g.Ds(X,2)?qH("Receive player ended event during MediaBreak",this.UH(),this.pm()):Gx(this,X):this.eE()}}; g.a.Px=function(){mym(this);wYW(this.wI.get());this.ZY.get().Vm=this;PQ("pbp")||PQ("pbs")||E4("pbp");PQ("pbp","watch")||PQ("pbs","watch")||E4("pbp",void 0,"watch");this.im()}; g.a.fK=function(X){this.wQ.get();var J=Nf(X.clientMetadata,"metadata_type_ad_placement_config").kind,L=this.position===0;X=Nf(X.clientMetadata,"metadata_type_linked_in_player_layout_type");X={adBreakType:f8(J),adType:gLW(X)};var x=void 0;L?J!=="AD_PLACEMENT_KIND_START"&&(x="video_to_ad"):x="ad_to_ad";oo("ad_mbs",void 0,x);g.bV(X,x);UH(this)}; g.a.eE=function(){this.nL()}; g.a.Mt=function(){X8e(this);this.nL()}; g.w(kj,sH);g.a=kj.prototype;g.a.I2=function(X){this.Rf!=="not_rendering"&&(X=Tx(this,X),Gx(this,X))}; g.a.Px=function(){qH("Not used in SSAP")}; g.a.fK=function(){UH(this)}; g.a.eE=function(){qH("Not used in SSAP")}; g.a.Mt=function(){X8e(this);this.hR.wN(this.UH(),this.pm(),"normal")}; g.w(ZU,kj);ZU.prototype.lH=function(X,J){var L=this;this.Z1(X,function(){i2(L.N,J)&&(L.Rf="rendering_stop_requested",L.layoutExitReason=J,j5(L,J),L.timer.stop())})}; ZU.prototype.startRendering=function(X){gS(Wv(this));p8(this,X)&&(rs(this),this.ZY.get().Vm=this)};g.w(J5,zx);g.a=J5.prototype;g.a.eE=function(){this.nL()}; g.a.I2=function(X){if(this.Rf!=="not_rendering"){X=Tx(this,X);var J=this.wI.get().getPresentingPlayerType()===2;this.Rf==="rendering_start_requested"?J&&AM(X)&&this.im():!J||g.Ds(X,2)?this.nL():Gx(this,X)}}; g.a.Jk=function(){Nf(this.pm().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=Nf(this.pm().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.a.l5=function(){Nf(this.pm().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.Nr){var X=this.context.Sj,J=this.Nr,L=this.pm().layoutId;if(Db(X.h0.get(),!0)){var x={};X.lB("mccru",(x.cid=J,x.p_ac=L,x))}this.Ti.get().removeCueRange(this.Nr)}this.Nr=void 0;var Q;(Q=this.Qv)==null||Q.dispose();this.oO&&this.oO.dispose()}; g.a.Px=function(X){var J=Af(this.h0.get()),L=XA(this.h0.get());if(J&&L&&!this.TK()){L=Nf(X.clientMetadata,"metadata_type_preload_player_vars");var x=this.h0.get();x=g.J_(x.Z.G().experiments,"html5_preload_wait_time_secs");L&&this.oO&&this.oO.start(x*1E3)}xHm(this,X);mym(this);J?(L=this.fO.get(),X=Nf(X.clientMetadata,"metadata_type_player_vars"),L.Z.loadVideoByPlayerVars(X,!1,2)):r4e(this.fO.get(),Nf(X.clientMetadata,"metadata_type_player_vars"));var Q;(Q=this.Qv)==null||Q.start();J||this.fO.get().Z.playVideo(2)}; g.a.fK=function(){var X;(X=this.Qv)==null||X.stop();this.jB();(this.adCpn=Uym(this))||qH("Media layout confirmed started, but ad CPN not set.");this.Gi.get().sI("onAdStart",this.adCpn);this.Uk=Date.now()}; g.a.oZ=function(){var X;return(X=vv(this.dI.get(),2))==null?void 0:X.JS}; g.a.OL=function(){this.s6.OV("clickthrough")}; g.a.lH=function(X,J){var L=this;this.Z1(X,function(){if(L.Rf!=="rendering_stop_requested"){L.Rf="rendering_stop_requested";L.layoutExitReason=J;j5(L,J);var x;(x=L.Qv)==null||x.stop();L.oO&&L.oO.stop();iXZ(L)}})}; g.a.onCueRangeEnter=function(X){if(X!==this.Nr)qH("Received CueRangeEnter signal for unknown layout.",this.UH(),this.pm(),{cueRangeId:X});else{var J=this.context.Sj,L=this.pm().layoutId;if(Db(J.h0.get(),!0)){var x={};J.lB("mccre",(x.cid=X,x.p_ac=L,x))}this.Ti.get().removeCueRange(this.Nr);this.Nr=void 0;vf(this.context.h0.get(),"html5_ssap_flush_at_stop_rendering")&&this.TK()||(X=Nf(this.pm().clientMetadata,"metadata_type_video_length_seconds"),this.Qj(X,!0),this.J_("complete"))}}; g.a.HL=function(X){X!=="abandoned"&&this.Gi.get().sI("onAdComplete");this.Gi.get().sI("onAdEnd",this.adCpn)}; g.a.jB=function(){this.Nr="adcompletioncuerange:"+this.pm().layoutId;this.Ti.get().addCueRange(this.Nr,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var X=this.context.Sj,J=this.Nr,L=this.pm().layoutId;if(Db(X.h0.get(),!0)){var x={};X.lB("mccr",(x.cid=J,x.p_ac=L,x))}}; g.a.onCueRangeExit=function(){}; g.a.qP=function(X){this.Rf==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&X>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.wI.get().x_(!0),this.Qj(X))}; g.a.Qj=function(X,J){zx.prototype.Qj.call(this,X,J===void 0?!1:J);J=Date.now()-this.Uk;var L=X*1E3,x={contentCpn:this.PK(),adCpn:Uym(this)};if(X-this.OB>=5){var Q=J=2||(this.sA.lH(this.layout,J),X=vf(this.params.context.h0.get(),"html5_ssap_pass_transition_reason")&&J==="abandoned",this.S2()&&!X&&(vf(this.params.context.h0.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(J)||qH("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:J})),this.P9.get().finishSegmentByCpn(this.layout.layoutId, vv(this.dI.get(),1).clientPlaybackNonce,lw(J,this.params.context.h0))),this.wI.get().removeListener(this),this.RR()&&Q1(this.sA.dJ())&&this.Hh.Fv(this.slot,this.layout,this.sA.dJ().L))}; g.a.Of=function(X,J,L){tlO({cpn:X,AO:this.dI.get(),t4:!0});this.pm().layoutId!==X||vf(this.params.context.h0.get(),"html5_ssap_pass_transition_reason")&&L===5||(this.sA.dJ().currentState<2&&(X=RJ(L,this.params.context.h0),X==="error"?this.Hh.lU(this.slot,this.layout,new BH("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:L},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):$g(this.PO, this.layout,X)),vf(this.params.context.h0.get(),"html5_ssap_exit_without_waiting_for_transition")||this.Hh.Fv(this.slot,this.layout,this.sA.dJ().L))};g.w(KC,g.G);g.a=KC.prototype;g.a.UH=function(){return this.slot}; g.a.pm=function(){return this.layout}; g.a.yv=function(){}; g.a.OM=function(){return this.Mr[this.vQ]}; g.a.hK=function(){return this.vQ}; g.a.iL=function(X,J){var L=this.OM();J.layoutId!==IL(L,X,J)?qH("pauseLayout for a PlayerBytes layout that is not currently active",X,J):L.iL()}; g.a.Q8=function(X,J){var L=this.OM();J.layoutId!==IL(L,X,J)?qH("resumeLayout for a PlayerBytes layout that is not currently active",X,J):L.Q8()}; g.a.UG=function(X,J){var L=this.OM();yuo(this,X,J);nLo(L,X,J)&&this.Wa(L.UH(),L.pm(),"skipped")}; g.a.mG=function(X,J){var L=this.OM();Vh8(this);HXe(L,X,J)&&(X=OXe(this,L,X,J),X!==void 0&&(this.TK()?qH("Should not happen. Should delete"):w8z(this,L.UH(),L.pm(),X)))}; g.a.Z8=function(X,J){var L=Object.assign({},qT(this),{layoutId:J.layoutId}),x=L.layoutId,Q=L.t4;if(L.MX){var K={};Ix(L.AO,"wrse",(K.ec=x,K.is=Q,K.ctp=qh(x),K))}Vw(this.uT,X,J)}; g.a.Dw=function(X,J){var L;(L=this.OM())==null||L.Dw(X,J)}; g.a.Fv=function(X,J,L){J.layoutId===this.pm().layoutId&&(this.bC=!1,Qw(this.KO(),this));var x;(x=this.OM())==null||x.Fv(X,J,L)}; g.a.qP=function(X){var J;(J=this.OM())==null||J.qP(X)}; g.a.EK=function(X,J,L){this.hK()===-1&&(this.callback.Dw(this.slot,this.layout),this.vQ++);var x=this.OM();x?(x.n0(X,J,L),this.TK()&&this.callback.lU(this.slot,this.layout,J,L)):qH("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.hK()),layoutId:this.pm().layoutId})}; g.a.onFullscreenToggled=function(X){var J;(J=this.OM())==null||J.onFullscreenToggled(X)}; g.a.v5=function(X){var J;(J=this.OM())==null||J.v5(X)}; g.a.cS=function(X){var J;(J=this.OM())==null||J.cS(X)}; g.a.onVolumeChange=function(){var X;(X=this.OM())==null||X.onVolumeChange()}; g.a.lD=function(X,J,L){Hf(this.uT,X,J,L)}; g.a.zx=function(X){X.startRendering(X.pm())}; g.a.init=function(){var X=Nf(this.pm().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");X&&(X.current=this);if(this.Mr.length<1)throw new m("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.Mr.length)});if(X=Nf(this.pm().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))X.current=this;X=g.d(this.Mr);for(var J=X.next();!J.done;J=X.next())J=J.value,J.init(),eYS(this.uT,this.slot,J.pm()),FUP(this.uT,this.slot,J.pm()); if(this.TK())for(this.dI.get().addListener(this),nEA(Mhz(this),this.dI.get()),X=Mhz(this),X=g.d(X),J=X.next();!J.done;J=X.next())this.Pe(J.value)}; g.a.Pe=function(X){var J=Nf(X.clientMetadata,"metadata_type_player_vars");J?(X.layoutType!=="LAYOUT_TYPE_MEDIA"&&qH("Non-video ad contains playerVars",this.slot,X),this.fO.get().addPlayerResponseForAssociation({playerVars:J})):(X=DHR(X),this.fO.get().addPlayerResponseForAssociation({Io:X}))}; g.a.release=function(){var X=Nf(this.pm().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");X&&(X.current=null);if(X=Nf(this.pm().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))X.current=null;X=g.d(this.Mr);for(var J=X.next();!J.done;J=X.next())J=J.value,liW(this.uT,this.slot,J.pm()),J.release();this.TK()&&(this.dI.get().removeListener(this),Vl8())}; g.a.Z1=function(X){return X.layoutId!==this.pm().layoutId?(this.callback.lU(this.UH(),X,new BH("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.pm().layoutId+("and LayoutType: "+this.pm().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.a.x$=function(){this.wI.get().addListener(this);im(this.KO(),this)}; g.a.I2=function(X){if(X.state.isError()){var J,L;this.EK((J=X.state.pn)==null?void 0:J.errorCode,new BH("There was a player error during this media layout.",{playerErrorCode:(L=X.state.pn)==null?void 0:L.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(J=this.OM())&&J.I2(X)}; g.a.TK=function(){var X=Nf(this.UH().clientMetadata,"metadata_type_eligible_for_ssap");return X===void 0?(qH("Expected SSAP eligibility in PlayerBytes slots",this.UH(),this.pm()),!1):this.h0.get().TK(X)}; g.a.dZ=function(){}; g.a.WD=function(){}; g.a.B5=function(){}; g.a.VY=function(){}; g.a.vO=function(){}; g.a.VD=function(){}; g.a.Zx=function(){}; g.a.EV=function(){}; g.a.Xy=function(){}; g.a.hJ=function(){}; g.a.d2=function(){}; g.a.qs=function(){}; g.a.HJ=function(){}; g.w(CC,KC);g.a=CC.prototype;g.a.BX=function(X,J,L){this.Wa(X,J,L)}; g.a.EF=function(X,J){this.Wa(X,J,"error")}; g.a.Wa=function(X,J,L){var x=this;asW(this,X,J,L,function(){g7(x,x.hK()+1)})}; g.a.startRendering=function(X){this.Z1(X)&&(this.x$(),zJm(this.wQ.get()),Gf8(this.h0.get())||wYW(this.wI.get()),this.hK()===-1&&g7(this,this.hK()+1))}; g.a.lH=function(X,J){var L=this;this.bC=!0;this.hK()===this.Mr.length?this.callback.Fv(this.slot,this.layout,J):(X=this.OM(),X.lH(X.pm(),J),this.ww=function(){L.callback.Fv(L.slot,L.layout,J)}); this.wI.get().Z.Dc();r4e(this.fO.get(),{});X=QN(this.wI.get(),1);X.isPaused()&&!g.N(X,2)&&this.wI.get().playVideo();this.wI.get().removeListener(this);this.bC&&thm(this)}; g.a.Of=function(){}; g.a.MH=function(){}; g.a.wN=function(){}; g.w(MT,KC);g.a=MT.prototype;g.a.BX=function(X,J,L){X=Object.assign({},qT(this),{layoutId:J.layoutId,layoutExitReason:L});J=X.layoutId;L=X.layoutExitReason;var x={};Ix(X.AO,"prse",(x.xc=J,x.ler=L,x.ctp=qh(J),x))}; g.a.EF=function(){qH("onSubLayoutError in SSAP")}; g.a.Wa=function(){qH("exitSubLayoutAndPlayNext in SSAP")}; g.a.OM=function(){return this.FN}; g.a.hK=function(){var X=this;return this.Mr.findIndex(function(J){var L;return J.pm().layoutId===((L=X.FN)==null?void 0:L.pm().layoutId)})}; g.a.zx=function(X){KX(this.FN===void 0,"replacing another adapter");this.FN=X;X.startRendering(X.pm())}; g.a.lD=function(X,J,L){Hf(this.uT,X,J,L);var x;KX(J.layoutId===((x=this.FN)==null?void 0:x.pm().layoutId),"currentAdapter does not match exiting layout",{slot:X?"slot: "+X.slotType:"",subLayout:QZ(J)})&&(this.FN=void 0)}; g.a.release=function(){KC.prototype.release.call(this);KX(this.FN===void 0,"currentAdapter is still active during release");this.FN=void 0}; g.a.S2=function(){return this.wI.get().getPresentingPlayerType()===2}; g.a.lH=function(X,J){function L(){yn(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(J)||qH("Composite stopRendering: Unexpected layout exit reason",this.slot,X,{layoutExitReason:J}))} function x(){this.FN&&nC(this,this.FN,J);if(this.S2()&&(!yn(this)||J!=="abandoned")){L.call(this);var K;var q=((K=this.dI.get().Z.getVideoData())==null?void 0:K.clientPlaybackNonce)||"";K=vv(this.dI.get(),1).clientPlaybackNonce;this.P9.get().finishSegmentByCpn(q,K,lw(J,this.h0))}dHP(this,J)} function Q(){if(this.FN){var K=this.FN;K.dJ().currentState<2&&K.lH(K.pm(),J);K=yn(this)&&J==="abandoned";this.S2()&&!K&&(L.call(this),this.P9.get().finishSegmentByCpn(this.FN.pm().layoutId,vv(this.dI.get(),1).clientPlaybackNonce,lw(J,this.h0)))}} KX(X.layoutId===this.pm().layoutId,"StopRendering for wrong layout")&&i2(this.PB.K,J)&&(this.RR()?x.call(this):Q.call(this))}; g.a.Fv=function(X,J,L){KC.prototype.Fv.call(this,X,J,L);J.layoutId===this.pm().layoutId&&this.wI.get().removeListener(this)}; g.a.PK=function(){return vv(this.dI.get(),1).clientPlaybackNonce}; g.a.Of=function(X,J,L){tlO(Object.assign({},qT(this),{cpn:X}));if(!yn(this)||L!==5)if(this.RR()){if(this.FN&&this.FN.pm().layoutId!==J){var x=this.FN.pm().layoutId;x!==X&&qH("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:x,exitingCpn:X,enteringCpn:J});X=RJ(L,this.h0);nC(this,this.FN,X)}else this.FN&&qH("onClipExited: active layout is entering again");J===this.PK()&&oLz(this,L)}else{if(this.FN&&this.FN.pm().layoutId===X)u4m(this,this.FN,L);else{var Q;qH("Exiting cpn does not match active cpn", this.slot,(x=this.FN)==null?void 0:x.pm(),{exitingCpn:X,transitionReason:L,activeCpn:(Q=this.FN)==null?void 0:Q.pm().layoutId})}J===this.PK()&&(this.FN!==void 0&&(qH("active adapter is not properly exited",this.slot,this.layout,{activeLayout:QZ(this.FN.pm())}),u4m(this,this.FN,L)),oLz(this,L),dHP(this,this.PB.K.L))}}; g.a.RR=function(){return vf(this.h0.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.a.startRendering=function(X){this.Z1(X)&&(X=this.PB,KX(X.L===1,"tickStartRendering: state is not initial"),X.L=2,this.x$())}; g.a.MH=function(X){w1Z(Object.assign({},qT(this),{cpn:X}));var J=this.Mr.find(function(L){return L.pm().layoutId===X}); J?(this.PB.L!==2&&(K6Y(this.vv,this.slot.slotId),KX(this.PB.L===2,"Expect started"),this.callback.Dw(this.slot,this.layout)),this.zx(J),Vw(this.uT,this.slot,J.pm())):bXR(this,X)}; g.a.UG=function(X,J){yuo(this,X,J);var L=this.OM();L?nLo(L,X,J)&&SLP(this,"skipped"):P4m(this,"onSkipRequested")}; g.a.mG=function(X,J){var L;a:{if(L=this.OM()){if(Vh8(this),HXe(L,X,J)&&(X=OXe(this,L,X,J),X!==void 0)){L={J9:L,Q20:this.Mr[X]};break a}}else P4m(this,"SkipWithAdPodSkip");L=void 0}if(X=L)L=X.J9,J=X.Q20,X=L.pm().layoutId,this.RR()?nC(this,L,"skipped"):L.lH(L.pm(),"skipped"),L=J.pm().layoutId,this.P9.get().finishSegmentByCpn(X,L,lw("skipped",this.h0))}; g.a.Z8=function(){qH("Not used in html5_ssap_fix_layout_exit")}; g.a.I2=function(X){var J;(J=this.OM())==null||J.I2(X)}; g.a.EK=function(){qH("Not used in html5_ssap_fix_layout_exit")}; g.a.wN=function(X,J,L){var x;if(((x=this.OM())==null?void 0:x.pm().layoutId)!==J.layoutId)return void qH("requestToExitSubLayout: wrong layout");SLP(this,L)};g.w(Vn,g.G);g.a=Vn.prototype;g.a.UH=function(){return this.sA.UH()}; g.a.pm=function(){return this.sA.pm()}; g.a.init=function(){var X=Nf(this.pm().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");X&&(X.current=this);this.Jk()}; g.a.Jk=function(){this.sA.init()}; g.a.release=function(){var X=Nf(this.pm().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");X&&(X.current=null);this.l5()}; g.a.l5=function(){this.sA.release()}; g.a.iL=function(){this.sA.iL()}; g.a.Q8=function(){this.sA.Q8()}; g.a.UG=function(X,J){qH("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.UH(),this.pm(),{requestingSlot:X,requestingLayout:J})}; g.a.startRendering=function(X){X.layoutId!==this.pm().layoutId?this.callback.lU(this.UH(),X,new BH("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.pm().layoutId+("and LayoutType: "+this.pm().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.wI.get().addListener(this),im(this.KO(),this),zJm(this.wQ.get()),Gf8(this.h0.get())||wYW(this.wI.get()),this.sA.startRendering(X))}; g.a.lH=function(X,J){this.bC=!0;this.sA.lH(X,J);this.wI.get().Z.Dc();r4e(this.fO.get(),{});X=QN(this.wI.get(),1);X.isPaused()&&!g.N(X,2)&&this.wI.get().playVideo();this.wI.get().removeListener(this);this.bC&&this.sA.eE()}; g.a.Dw=function(X,J){this.sA.Dw(X,J)}; g.a.Fv=function(X,J,L){J.layoutId===this.pm().layoutId&&(this.bC=!1,Qw(this.KO(),this));this.sA.Fv(X,J,L);J.layoutId===this.pm().layoutId&&DV(this.wQ.get())}; g.a.qP=function(X){this.sA.qP(X)}; g.a.I2=function(X){if(X.state.isError()){var J,L;this.EK((J=X.state.pn)==null?void 0:J.errorCode,new BH("There was a player error during this media layout.",{playerErrorCode:(L=X.state.pn)==null?void 0:L.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.sA.I2(X)}; g.a.EK=function(X,J,L){this.sA.n0(X,J,L)}; g.a.onFullscreenToggled=function(X){this.sA.onFullscreenToggled(X)}; g.a.v5=function(X){this.sA.v5(X)}; g.a.cS=function(X){this.sA.cS(X)}; g.a.onVolumeChange=function(){this.sA.onVolumeChange()}; g.a.dZ=function(){}; g.a.WD=function(){}; g.a.B5=function(){}; g.a.VY=function(){}; g.a.vO=function(){}; g.a.VD=function(){}; g.a.Zx=function(){}; g.a.EV=function(){}; g.a.Xy=function(){}; g.a.hJ=function(){}; g.a.d2=function(){}; g.a.qs=function(){}; g.a.HJ=function(){};g.a=Hk.prototype;g.a.UH=function(){return this.slot}; g.a.pm=function(){return this.layout}; g.a.init=function(){this.Jj.get().addListener(this);this.wI.get().addListener(this);var X=Nf(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var J=Nf(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.T){var L=this.Jj.get().Xe.slice(-1)[0];L!==void 0&&(X=L.startSecs*1E3,J=(L.startSecs+L.zR)*1E3)}this.N7(X,J);var x;L=(x=this.dI.get().gi)==null?void 0:x.clientPlaybackNonce;x=this.layout.B4.adClientDataEntry;Oz(this.ZY.get(),{daiStateTrigger:{filledAdsDurationMs:J-X,contentCpn:L, adClientData:x}});var Q=this.Jj.get();Q=YLP(Q.N,X,J);Q!==null&&(Oz(this.ZY.get(),{daiStateTrigger:{filledAdsDurationMs:Q-X,contentCpn:L,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:x}}),this.P9.get().aZ(Q,J))}; g.a.release=function(){this.l5();this.Jj.get().removeListener(this);this.wI.get().removeListener(this)}; g.a.startRendering=function(){this.Px();this.callback.Dw(this.slot,this.layout)}; g.a.lH=function(X,J){this.mB(J);this.driftRecoveryMs!==null&&(aL(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(hfz(this)-Nf(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.wI.get().Z.TD()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.Fv(this.slot,this.layout,J)}; g.a.Ex=function(){return!1}; g.a.R5=function(X){var J=Nf(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),L=Nf(this.layout.clientMetadata,"metadata_type_layout_exit_ms");X*=1E3;if(J<=X&&X0&&Oq(this.L(),J)}; g.a.B5=function(X){this.j.delete(X.slotId);for(var J=[],L=g.d(this.Qr.values()),x=L.next();!x.done;x=L.next()){x=x.value;var Q=x.trigger;Q instanceof yB&&Q.triggeringSlotId===X.slotId&&J.push(x)}J.length>0&&Oq(this.L(),J)}; g.a.VY=function(X){for(var J=[],L=g.d(this.Qr.values()),x=L.next();!x.done;x=L.next()){x=x.value;var Q=x.trigger;Q instanceof ig&&Q.slotType===X.slotType&&Q.L!==X.slotId&&J.push(x)}J.length>0&&Oq(this.L(),J)}; g.a.vO=function(X){this.N.add(X.slotId);for(var J=[],L=g.d(this.Qr.values()),x=L.next();!x.done;x=L.next())x=x.value,x.trigger instanceof gd&&X.slotId===x.trigger.triggeringSlotId&&J.push(x);J.length>0&&Oq(this.L(),J)}; g.a.VD=function(X){this.N.delete(X.slotId);this.T.add(X.slotId);for(var J=[],L=g.d(this.Qr.values()),x=L.next();!x.done;x=L.next())if(x=x.value,x.trigger instanceof DA)X.slotId===x.trigger.triggeringSlotId&&J.push(x);else if(x.trigger instanceof sz){var Q=x.trigger;X.slotId===Q.slotId&&this.K.has(Q.triggeringLayoutId)&&J.push(x)}J.length>0&&Oq(this.L(),J)}; g.a.Zx=function(X){for(var J=[],L=g.d(this.Qr.values()),x=L.next();!x.done;x=L.next())x=x.value,x.trigger instanceof $6&&X.slotId===x.trigger.triggeringSlotId&&J.push(x);J.length>0&&Oq(this.L(),J)}; g.a.EV=function(X){for(var J=[],L=g.d(this.Qr.values()),x=L.next();!x.done;x=L.next())x=x.value,x.trigger instanceof Ca&&X.slotId===x.trigger.triggeringSlotId&&J.push(x);J.length>0&&Oq(this.L(),J)}; g.a.Xy=function(X,J){this.B.add(J.layoutId)}; g.a.hJ=function(X,J){this.B.delete(J.layoutId)}; g.a.Dw=function(X,J){this.K.add(J.layoutId);for(var L=[],x=g.d(this.Qr.values()),Q=x.next();!Q.done;Q=x.next())if(Q=Q.value,Q.trigger instanceof NT)J.layoutId===Q.trigger.triggeringLayoutId&&L.push(Q);else if(Q.trigger instanceof x6){var K=Q.trigger;X.slotType===K.slotType&&J.layoutType===K.layoutType&&J.layoutId!==K.L&&L.push(Q)}else Q.trigger instanceof sz&&(K=Q.trigger,J.layoutId===K.triggeringLayoutId&&this.T.has(K.slotId)&&L.push(Q));L.length>0&&Oq(this.L(),L)}; g.a.Fv=function(X,J,L){this.K.delete(J.layoutId);X=[];for(var x=g.d(this.Qr.values()),Q=x.next();!Q.done;Q=x.next())if(Q=Q.value,Q.trigger instanceof mc&&J.layoutId===Q.trigger.triggeringLayoutId&&X.push(Q),Q.trigger instanceof Uz){var K=Q.trigger;J.layoutId===K.triggeringLayoutId&&K.L.includes(L)&&X.push(Q)}X.length>0&&Oq(this.L(),X)}; g.a.d2=function(){}; g.a.Y7=function(){this.T.clear()}; g.a.VS=function(){};g.w(iP,g.G);iP.prototype.pA=function(X,J,L,x){if(this.Qr.has(J.triggerId))throw new m("Tried to register duplicate trigger for slot.");if(!(J instanceof RL))throw new m("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in CloseRequestedTriggerAdapter");this.Qr.set(J.triggerId,new Hh(X,J,L,x))}; iP.prototype.SX=function(X){this.Qr.delete(X.triggerId)};g.w(Kh,g.G);Kh.prototype.pA=function(X,J,L,x){if(this.Qr.has(J.triggerId))throw new m("Tried to register duplicate trigger for slot.");if(!(J instanceof lR||J instanceof Ka))throw new m("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Qr.set(J.triggerId,new Hh(X,J,L,x))}; Kh.prototype.SX=function(X){this.Qr.delete(X.triggerId)}; Kh.prototype.Y7=function(X){for(var J=[],L=J.push,x=L.apply,Q=[],K=g.d(this.Qr.values()),q=K.next();!q.done;q=K.next())q=q.value,q.trigger instanceof lR&&q.trigger.TY===X&&Q.push(q);x.call(L,J,g.nR(Q));L=J.push;x=L.apply;Q=[];K=g.d(this.Qr.values());for(q=K.next();!q.done;q=K.next())q=q.value,q.trigger instanceof Ka&&q.trigger.L!==X&&Q.push(q);x.call(L,J,g.nR(Q));J.length&&Oq(this.L(),J)}; Kh.prototype.VS=function(X){for(var J=[],L=J.push,x=L.apply,Q=[],K=g.d(this.Qr.values()),q=K.next();!q.done;q=K.next()){q=q.value;var D=q.trigger;D instanceof Ka&&D.L===X&&Q.push(q)}x.call(L,J,g.nR(Q));J.length&&Oq(this.L(),J)};g.w(qt,g.G);g.a=qt.prototype;g.a.pA=function(X,J,L,x){if(this.Qr.has(J.triggerId))throw new m("Tried to register duplicate trigger for slot.");var Q="adtriggercuerange:"+J.triggerId;if(J instanceof J9)m0m(this,X,J,L,x,Q,J.L.start,J.L.end,J.TY,J.visible);else if(J instanceof Bk)m0m(this,X,J,L,x,Q,0x7ffffffffffff,0x8000000000000,J.TY,J.visible);else throw new m("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in CueRangeTriggerAdapter");}; g.a.SX=function(X){var J=this.Qr.get(X.triggerId);J&&this.Ti.get().removeCueRange(J.cueRangeId);this.Qr.delete(X.triggerId)}; g.a.onCueRangeEnter=function(X){var J=kSP(this,X);if(J&&(J=this.Qr.get(J)))if(g.N(QN(this.wI.get()),32))this.L.add(J.cueRangeId);else{var L=J==null?void 0:J.Yk.trigger;if(L instanceof J9||L instanceof Bk){if(Db(this.context.h0.get())){var x=J.Yk.slot,Q=J.Yk.layout,K={};this.context.Sj.lB("cre",(K.ca=J.Yk.category,K.tt=L.triggerType,K.st=x.slotType,K.lt=Q==null?void 0:Q.layoutType,K.cid=X,K))}Oq(this.K(),[J.Yk])}}}; g.a.onCueRangeExit=function(X){(X=kSP(this,X))&&(X=this.Qr.get(X))&&this.L.delete(X.cueRangeId)}; g.a.I2=function(X){if(gn(X,16)<0){X=g.d(this.L);for(var J=X.next();!J.done;J=X.next())this.onCueRangeEnter(J.value,!0);this.L.clear()}}; g.a.WD=function(){}; g.a.B5=function(){}; g.a.VY=function(){}; g.a.vO=function(){}; g.a.VD=function(){}; g.a.Zx=function(){}; g.a.EV=function(){}; g.a.Xy=function(){}; g.a.hJ=function(){}; g.a.Dw=function(){}; g.a.Fv=function(){}; g.a.d2=function(){}; g.a.qP=function(){}; g.a.onFullscreenToggled=function(){}; g.a.v5=function(){}; g.a.dZ=function(){}; g.a.cS=function(){}; g.a.onVolumeChange=function(){}; g.a.qs=function(){}; g.a.HJ=function(){};g.w(IK,g.G);g.a=IK.prototype; g.a.pA=function(X,J,L,x){if(this.K.has(J.triggerId)||this.N.has(J.triggerId))throw new m("Tried to re-register the trigger.");X=new Hh(X,J,L,x);if(X.trigger instanceof Xo)this.K.set(X.trigger.triggerId,X);else if(X.trigger instanceof kg)this.N.set(X.trigger.triggerId,X);else throw new m("Incorrect TriggerType: Tried to register trigger of type "+X.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.K.has(X.trigger.triggerId)&&X.slot.slotId===this.L&&Oq(this.T(),[X])}; g.a.SX=function(X){this.K.delete(X.triggerId);this.N.delete(X.triggerId)}; g.a.yv=function(X){X=X.slotId;if(this.L!==X){var J=[];this.L!=null&&J.push.apply(J,g.nR(ZbY(this.N,this.L)));X!=null&&J.push.apply(J,g.nR(ZbY(this.K,X)));this.L=X;J.length&&Oq(this.T(),J)}}; g.a.Of=function(){}; g.a.MH=function(){};g.w(gK,g.G);g.a=gK.prototype;g.a.pA=function(X,J,L,x){if(this.Qr.has(J.triggerId))throw new m("Tried to register duplicate trigger for slot.");if(!(J instanceof QB))throw new m("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Qr.set(J.triggerId,new Hh(X,J,L,x))}; g.a.SX=function(X){this.Qr.delete(X.triggerId)}; g.a.Dw=function(){}; g.a.Fv=function(){}; g.a.WD=function(){}; g.a.B5=function(){}; g.a.VY=function(){}; g.a.vO=function(){}; g.a.VD=function(){}; g.a.Zx=function(){}; g.a.EV=function(){}; g.a.Xy=function(){}; g.a.hJ=function(){}; g.a.d2=function(){};g.w(DY,g.G);g.a=DY.prototype;g.a.d2=function(X,J){for(var L=[],x=g.d(this.Qr.values()),Q=x.next();!Q.done;Q=x.next()){Q=Q.value;var K=Q.trigger;K.opportunityType===X&&(K.associatedSlotId&&K.associatedSlotId!==J||L.push(Q))}L.length&&Oq(this.L(),L)}; g.a.pA=function(X,J,L,x){if(this.Qr.has(J.triggerId))throw new m("Tried to register duplicate trigger for slot.");if(!(J instanceof KjS))throw new m("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in OpportunityEventTriggerAdapter");this.Qr.set(J.triggerId,new Hh(X,J,L,x))}; g.a.SX=function(X){this.Qr.delete(X.triggerId)}; g.a.WD=function(){}; g.a.B5=function(){}; g.a.VY=function(){}; g.a.vO=function(){}; g.a.VD=function(){}; g.a.Zx=function(){}; g.a.EV=function(){}; g.a.Xy=function(){}; g.a.hJ=function(){}; g.a.Dw=function(){}; g.a.Fv=function(){};g.w($5,g.G);g.a=$5.prototype;g.a.pA=function(X,J,L,x){X=new Hh(X,J,L,x);if(J instanceof ZV||J instanceof La||J instanceof A5||J instanceof qo||J instanceof KbA){if(this.Qr.has(J.triggerId))throw new m("Tried to register duplicate trigger for slot.");this.Qr.set(J.triggerId,X)}else throw new m("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in PrefetchTriggerAdapter");}; g.a.SX=function(X){this.Qr.delete(X.triggerId)}; g.a.WD=function(X){var J=X.slotFulfillmentTriggers.find(function(L){return L instanceof ZV}); J&&(Ch(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",J.breakDurationMs,new Set([X.slotId]),!0),t5(this.ZY.get(),"ads_css","sid."+X.slotId+";bd."+J.breakDurationMs))}; g.a.B5=function(){}; g.a.VY=function(){}; g.a.vO=function(){}; g.a.VD=function(){}; g.a.Zx=function(){}; g.a.EV=function(){}; g.a.Xy=function(){}; g.a.hJ=function(){}; g.a.Dw=function(){}; g.a.Fv=function(){}; g.a.d2=function(){}; g.a.Ex=function(X){var J=this;if(!this.L)return qH("Unexpected cue break before fetch instructions are available"),!1;this.K&&this.K.stop();this.j&&g.Nc(this.j);var L=L6m(this,X);if(!L){var x=XHA(this),Q=this.W!==void 0&&Date.now()<=this.W+1E4;t5(this.ZY.get(),"ads_ncfs","cid."+X.identifier+";cd."+X.zR.toFixed(3)+";ccs."+Q+";cfa."+this.T+";bdc."+x.length+";"+x.slice(0,6).map(function(K){return";bd."+K}).join("")); return!1}(new g.sn(function(){var K=L.trigger,q=L.slot;Ch(J,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",K.breakDurationMs,new Set,!0);Ch(J,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",K.breakDurationMs,new Set,!1);for(var D=0,C=g.d(J.Qr.values()),M=C.next();!M.done;M=C.next()){M=M.value;var y=M.trigger;M.slot.slotId===q.slotId&&(J.Qr.delete(y.triggerId),D++)}t5(J.ZY.get(),"ads_csf","sid."+q.slotId+";bd."+K.breakDurationMs+";dt."+D)},10)).start(); return!0}; g.a.R5=function(){}; g.a.Y7=function(X){var J=this;this.T=!1;this.W=Date.now();if(this.L&&this.L.contentCpn!==X)qH("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:X,fetchInstructionsCpn:this.L.contentCpn}),Mt(this);else{this.N=new g.sn(function(){if(J.T)delete J.N;else{var x=J.wI.get().getGetAdBreakContext(),Q;if(Number(x==null?void 0:(Q=x.livePlaybackPosition)==null?void 0:Q.utcTimeMillis)>0)delete J.N,JTv(J);else{var K;(K=J.N)==null||K.start()}}},200); var L;(L=this.N)==null||L.start()}}; g.a.VS=function(X){this.L&&this.L.contentCpn!==X&&qH("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:X,fetchInstructionsCpn:this.L.contentCpn},!0);Mt(this)}; g.a.a7=function(X){var J=this;if(this.L)qH("Unexpected multiple fetch instructions for the current content");else{this.L=X;X=igR(X);this.K=new g.sn(function(){JTv(J)},X?X:6E5); this.K.start();this.j=new g.sn(function(){J.L&&(J.K&&(J.K.stop(),J.K.start()),AqO(J,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},xfZ(this.L)); X=this.wI.get().getCurrentTimeSec(1,!1);for(var L=g.d(this.Jj.get().Xe),x=L.next();!x.done;x=L.next())x=x.value,t5(this.ZY.get(),"nocache","ct."+Date.now()+";cmt."+X+";d."+x.zR.toFixed(3)+";tw."+(x.startSecs-X)+";cid."+x.identifier+";")}}; g.a.uB=function(){g.G.prototype.uB.call(this);Mt(this)};g.w(yc,g.G);g.a=yc.prototype;g.a.pA=function(X,J,L,x){if(this.Qr.has(J.triggerId))throw new m("Tried to register duplicate trigger for slot.");if(!(J instanceof VB))throw new m("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Qr.set(J.triggerId,new Hh(X,J,L,x));X=this.L.has(J.triggeringLayoutId)?this.L.get(J.triggeringLayoutId):new Set;X.add(J);this.L.set(J.triggeringLayoutId,X)}; g.a.SX=function(X){this.Qr.delete(X.triggerId);if(!(X instanceof VB))throw new m("Incorrect TriggerType: Tried to unregister trigger of type "+X.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var J=this.K.get(X.triggerId);J&&(J.dispose(),this.K.delete(X.triggerId));if(J=this.L.get(X.triggeringLayoutId))J.delete(X),J.size===0&&this.L.delete(X.triggeringLayoutId)}; g.a.WD=function(){}; g.a.B5=function(){}; g.a.VY=function(){}; g.a.vO=function(){}; g.a.VD=function(){}; g.a.Zx=function(){}; g.a.EV=function(){}; g.a.Xy=function(){}; g.a.hJ=function(){}; g.a.d2=function(){}; g.a.Dw=function(X,J){var L=this;if(this.L.has(J.layoutId)){X=this.L.get(J.layoutId);X=g.d(X);var x=X.next();for(J={};!x.done;J={S3:void 0},x=X.next())J.S3=x.value,x=new g.sn(function(Q){return function(){var K=L.Qr.get(Q.S3.triggerId);Oq(L.N(),[K])}}(J),J.S3.durationMs),x.start(),this.K.set(J.S3.triggerId,x)}}; g.a.Fv=function(){};g.w(nh,g.G);nh.prototype.pA=function(X,J,L,x){if(this.Qr.has(J.triggerId))throw new m("Tried to register duplicate trigger for slot.");if(!(J instanceof eM))throw new m("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in VideoTransitionTriggerAdapter.");this.Qr.set(J.triggerId,new Hh(X,J,L,x))}; nh.prototype.SX=function(X){this.Qr.delete(X.triggerId)};aK.prototype.Lj=function(X){return X.kind==="AD_PLACEMENT_KIND_START"};g.w(dK,g.G);g.a=dK.prototype;g.a.logEvent=function(X){this.C7(X)}; g.a.CJ=function(X,J,L){this.C7(X,void 0,void 0,void 0,J,void 0,void 0,void 0,J.adSlotLoggingData,void 0,void 0,L)}; g.a.X4=function(X,J,L,x){this.C7(X,void 0,void 0,void 0,J,L?L:void 0,void 0,void 0,J.adSlotLoggingData,L?L.adLayoutLoggingData:void 0,void 0,x)}; g.a.J6=function(X,J,L,x){vf(this.h0.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+X,"trigger:",L,"slot:",J,"layout:",x);AT(this.L.get())&&this.C7(X,void 0,void 0,void 0,J,x?x:void 0,void 0,L,J.adSlotLoggingData,x?x.adLayoutLoggingData:void 0)}; g.a.uO=function(X,J,L,x,Q){this.C7(X,J,L,x,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Q)}; g.a.CI=function(X,J,L,x){this.C7("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,L,x,void 0,void 0,L.adSlotLoggingData,x?x.adLayoutLoggingData:void 0,{errorType:X,errorMessage:J})}; g.a.C7=function(X,J,L,x,Q,K,q,D,C,M,y,n){var V=this;n=n===void 0?0:n;vf(this.h0.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+X,"slot:",Q,"layout:",K,"ping:",q,"Opportunity:",{opportunityType:J,associatedSlotId:L,PnY:x,f90:D,adSlotLoggingData:C,adLayoutLoggingData:M});try{var H=function(){if(!V.h0.get().Z.G().Y("html5_disable_client_tmp_logs")&&X!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){X||qH("Empty PACF event type",Q,K);var O=AT(V.L.get()),u={eventType:X,eventOrder:++V.eventCount},S={}; Q&&(S.slotData=Zp(O,Q));K&&(S.layoutData=vmo(O,K));q&&(S.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:q.L.serializedAdPingMetadata,pingIndex:q.index});D&&(S.triggerData=k8(D.trigger,D.category));J&&(S.opportunityData=j4W(O,J,L,x));O={organicPlaybackContext:{contentCpn:vv(V.dI.get(),1).clientPlaybackNonce}};O.organicPlaybackContext.isLivePlayback=vv(V.dI.get(),1).Zw;var Y;O.organicPlaybackContext.isMdxPlayback=(Y=vv(V.dI.get(),1))==null?void 0:Y.isMdxPlayback; var h;if((h=vv(V.dI.get(),1))==null?0:h.daiEnabled)O.organicPlaybackContext.isDaiContent=!0;var W;if(Y=(W=vv(V.dI.get(),2))==null?void 0:W.clientPlaybackNonce)O.adVideoPlaybackContext={adVideoCpn:Y};O&&(S.externalContext=O);u.adClientData=S;C&&(u.serializedSlotAdServingData=C.serializedSlotAdServingDataEntry);M&&(u.serializedAdServingData=M.serializedAdServingDataEntry);y&&(u.errorInfo=y);g.QK("adsClientStateChange",{adsClientEvent:u})}}; n&&n>0?g.Nk(g.mn(),function(){return H()},n):H()}catch(O){vf(this.h0.get(),"html5_log_pacf_logging_errors")&&g.Nk(g.mn(),function(){qH(O instanceof Error?O:String(O),Q,K,{pacf_message:"exception during pacf logging"})})}};var sW0=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.w(uP,dK);g.a=uP.prototype; g.a.CJ=function(X,J,L){dK.prototype.CJ.call(this,X,J,L);Db(this.h0.get())&&(L={},this.context.Sj.lB("pacf",(L.et=X,L.st=J.slotType,L.si=J.slotId,L)))}; g.a.X4=function(X,J,L,x){var Q=sW0.has(X);dK.prototype.X4.call(this,X,J,L,x);Db(this.h0.get(),Q)&&(x={},this.context.Sj.lB("pacf",(x.et=X,x.st=J.slotType,x.si=J.slotId,x.lt=L==null?void 0:L.layoutType,x.li=L==null?void 0:L.layoutId,x.p_ac=L==null?void 0:L.layoutId,x)))}; g.a.uO=function(X,J,L,x,Q){dK.prototype.uO.call(this,X,J,L,x,Q);Db(this.h0.get())&&(L={},this.context.Sj.lB("pacf",(L.et=X,L.ot=J,L.ss=x==null?void 0:x.length,L)))}; g.a.J6=function(X,J,L,x){dK.prototype.J6.call(this,X,J,L,x);if(Db(this.h0.get())){var Q={};this.context.Sj.lB("pacf",(Q.et=X,Q.tt=L.trigger.triggerType,Q.tc=L.category,Q.st=J.slotType,Q.si=J.slotId,Q.lt=x==null?void 0:x.layoutType,Q.li=x==null?void 0:x.layoutId,Q.p_ac=x==null?void 0:x.layoutId,Q))}}; g.a.CI=function(X,J,L,x){dK.prototype.CI.call(this,X,J,L,x);if(Db(this.h0.get(),!0)){var Q={};this.context.Sj.lB("perror",(Q.ert=X,Q.erm=J,Q.st=L.slotType,Q.si=L.slotId,Q.lt=x==null?void 0:x.layoutType,Q.li=x==null?void 0:x.layoutId,Q.p_ac=x==null?void 0:x.layoutId,Q))}}; g.a.C7=function(X,J,L,x,Q,K,q,D,C,M,y){var n=this.h0.get();g.nD(n.Z.G())?(n=this.h0.get(),n=g.J_(n.Z.G().experiments,"H5_async_logging_delay_ms")):n=void 0;dK.prototype.C7.call(this,X,J,L,x,Q,K,q,D,C,M,y,n)};oK.prototype.clear=function(){this.L.clear()};bP.prototype.state=function(){return this.L==="fulfilled"?{state:"fulfilled",value:this.result}:this.L==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; bP.prototype.T=function(X){PC(X)||St(X)?z6(cC(X),this.T.bind(this),this.reject.bind(this)):(this.L="fulfilled",this.result=X,hl(this))}; bP.prototype.reject=function(X){this.L="rejected";this.error=X;hl(this)}; var St=I3(function(X){return guH(X)?X instanceof bP:!1});Object.freeze({V5E:function(X){var J=T6(X);return z6(jt(J,function(L){return J[L].L==="rejected"}),function(L){return Number.isNaN(L)?J.map(function(x){return x.state().value}):J[L]})}, ZwH:function(X){var J=T6(X);return z6(jt(J),function(){return J.map(function(L){return L.state()})})}, EhM:function(X){var J=T6(X);return z6(jt(J,function(L){return J[L].L==="fulfilled"}),function(L){return Number.isNaN(L)?Ep(new AggregateError(J.map(function(x){return x.state().reason}))):J[L].state().value})}, Bom:function(X){var J=T6(X);return z6(jt(J,function(){return!0}),function(L){return J[L]})}});var G6=window.vdH||"es-419";lP.prototype.ly=function(X){this.client=X}; lP.prototype.L=function(){this.clear();this.csn=g.Ow()}; lP.prototype.clear=function(){this.N.clear();this.K.clear();this.T.clear();this.csn=null};BC.prototype.ly=function(X){g.ND(RK().ly).bind(RK())(X)}; BC.prototype.clear=function(){g.ND(RK().clear).bind(RK())()};g.a=sp.prototype;g.a.ly=function(X){this.client=X}; g.a.dE=function(X,J){var L=this;J=J===void 0?{}:J;g.ND(function(){var x,Q,K,q=((x=g.F(X==null?void 0:X.commandMetadata,g.S1))==null?void 0:x.rootVe)||((Q=g.F(X==null?void 0:X.commandMetadata,C$u))==null?void 0:(K=Q.screenVisualElement)==null?void 0:K.uiType);if(q){x=g.F(X==null?void 0:X.commandMetadata,hwu);if(x==null?0:x.parentTrackingParams){var D=g.nf(x.parentTrackingParams);if(x.parentCsn)var C=x.parentCsn}else J.clickedVisualElement?D=J.clickedVisualElement:X.clickTrackingParams&&(D=g.nf(X.clickTrackingParams)); a:{x=g.F(X,g.Md);Q=g.F(X,o0S);if(x){if(Q=ugm(x,"VIDEO")){x={token:Q,videoId:x.videoId};break a}}else if(Q&&(x=ugm(Q,"PLAYLIST"))){x={token:x,playlistId:Q.playlistId};break a}x=void 0}J=Object.assign({},{cttAuthInfo:x,parentCsn:C},J);if(g.VQ("expectation_logging")){var M;J.loggingExpectations=((M=g.F(X==null?void 0:X.commandMetadata,C$u))==null?void 0:M.loggingExpectations)||void 0}Up(L,q,D,J)}else g.PM(new g.Fm("Error: Trying to create a new screen without a rootVeType",X))})()}; g.a.clickCommand=function(X,J,L){X=X.clickTrackingParams;L=L===void 0?0:L;X?(L=g.Ow(L===void 0?0:L))?(BM(this.client,L,g.nf(X),J),J=!0):J=!1:J=!1;return J}; g.a.stateChanged=function(X,J,L){this.visualElementStateChanged(g.nf(X),J,L===void 0?0:L)}; g.a.visualElementStateChanged=function(X,J,L){L=L===void 0?0:L;L===0&&this.K.has(L)?this.S.push([X,J]):E8m(this,X,J,L)};Al.prototype.fetch=function(X,J,L){var x=this,Q=zMe(X,J,L);return new Promise(function(K,q){function D(){if(L==null?0:L.qn)try{var M=x.handleResponse(X,Q.status,Q.response,L);K(M)}catch(y){q(y)}else K(x.handleResponse(X,Q.status,Q.response,L))} Q.onerror=D;Q.onload=D;var C;Q.send((C=J.body)!=null?C:null)})}; Al.prototype.handleResponse=function(X,J,L,x){L=L.replace(")]}'","");try{var Q=JSON.parse(L)}catch(K){g.PM(new g.Fm("JSON parsing failed after XHR fetch",X,J,L));if((x==null?0:x.qn)&&L)throw new g.fF(1,"JSON parsing failed after XHR fetch");Q={}}J!==200&&(g.PM(new g.Fm("XHR API fetch failed",X,J,L)),Q=Object.assign({},Q,{errorMetadata:{status:J}}));return Q};XV.getInstance=function(){var X=g.Ld("ytglobal.storage_");X||(X=new XV,g.JS("ytglobal.storage_",X));return X}; XV.prototype.estimate=function(){var X,J,L;return g.p(function(x){X=navigator;return((J=X.storage)==null?0:J.estimate)?x.return(X.storage.estimate()):((L=X.webkitTemporaryStorage)==null?0:L.queryUsageAndQuota)?x.return(W6R()):x.return()})}; g.JS("ytglobal.storageClass_",XV);xG.prototype.ZI=function(X){this.handleError(X)}; xG.prototype.logEvent=function(X,J){switch(X){case "IDB_DATA_CORRUPTED":g.VQ("idb_data_corrupted_killswitch")||this.L("idbDataCorrupted",J);break;case "IDB_UNEXPECTEDLY_CLOSED":this.L("idbUnexpectedlyClosed",J);break;case "IS_SUPPORTED_COMPLETED":g.VQ("idb_is_supported_completed_killswitch")||this.L("idbIsSupportedCompleted",J);break;case "QUOTA_EXCEEDED":rTP(this,J);break;case "TRANSACTION_ENDED":this.N&&Math.random()<=.1&&this.L("idbTransactionEnded",J);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":X= Object.assign({},J,{hasWindowUnloaded:this.K}),this.L("idbTransactionAborted",X)}};var Zv={},wh8=g.m4("yt-player-local-media",{Rg:(Zv.index={kV:2},Zv.media={kV:2},Zv.captions={kV:5},Zv),shared:!1,upgrade:function(X,J){J(2)&&(g.bT(X,"index"),g.bT(X,"media"));J(5)&&g.bT(X,"captions");J(6)&&(Sk(X,"metadata"),Sk(X,"playerdata"))}, version:5});var N0F={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},As;a:{var XW=g.vc();XW=XW.toLowerCase();if(g.hn(XW,"android")){var UGH=XW.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(UGH){var mGV=parseFloat(UGH[1]);if(mGV<100){As=mGV;break a}}var k1S=XW.match("("+Object.keys(N0F).join("|")+")");As=k1S?N0F[k1S[0]]:0}else As=void 0}var NP=As,s2=NP>=0;var OtS=window;var v8W=WB(function(){var X,J;return(J=(X=window).matchMedia)==null?void 0:J.call(X,"(prefers-reduced-motion: reduce)").matches});var Le;g.JW=new OC;Le=0;var VG=lpe()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.lT?!0:!1;var QC={uF:function(X){X[I[5]]()}, Za:function(X,J){var L=X[0];X[0]=X[J%X[I[1]]];X[J%X[I[1]]]=L}, z1:function(X,J){X[I[27]](0,J)}};var HCe={jiC:"adunit",Az9:"detailpage",k4q:"editpage",feH:"embedded",MX9:"leanback",rKI:"previewpage",yKB:"profilepage",Ht:"unplugged",lKI:"playlistoverview",eim:"sponsorshipsoffer",U99:"shortspage",XJ0:"handlesclaiming",hy0:"immersivelivepage",XSE:"creatormusic",PvM:"immersivelivepreviewpage",Qiq:"admintoolyurt",pqm:"shortsaudiopivot",G_I:"consumption"};var NQo=2592E3;var Jd,Zjv,hX;Jd={};g.wf=(Jd.STOP_EVENT_PROPAGATION="html5-stop-propagation",Jd.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Jd.IV_DRAWER_OPEN="ytp-iv-drawer-open",Jd.MAIN_VIDEO="html5-main-video",Jd.VIDEO_CONTAINER="html5-video-container",Jd.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",Jd.HOUSE_BRAND="house-brand",Jd);Zjv={};hX=(Zjv.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",Zjv.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",Zjv);var xeI={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var qxY={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},IJ8={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"},cyW={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var GPm={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.uI.prototype.getLanguageInfo=function(){return this.OH}; g.uI.prototype.getXtags=function(){if(!this.xtags){var X=this.id.split(";");X.length>1&&(this.xtags=X[1])}return this.xtags}; g.uI.prototype.toString=function(){return this.OH.name}; g.uI.prototype.getLanguageInfo=g.uI.prototype.getLanguageInfo;ob.prototype.equals=function(X){return this.K===X.K&&this.L===X.L&&this.N===X.N&&this.reason===X.reason&&(!So||this.DY===X.DY)}; ob.prototype.isLocked=function(){return this.N&&!!this.K&&this.K===this.L}; ob.prototype.compose=function(X){if(X.N&&PK(X))return Qh;if(X.N||PK(this))return X;if(this.N||PK(X))return this;var J=this.K&&X.K?Math.max(this.K,X.K):this.K||X.K,L=this.L&&X.L?Math.min(this.L,X.L):this.L||X.L;J=Math.min(J,L);var x=0;So&&(x=this.DY!==0&&X.DY!==0?Math.min(this.DY,X.DY):this.DY===0?X.DY:this.DY);return So&&J===this.K&&L===this.L&&x===this.DY||!So&&J===this.K&&L===this.L?this:So?new ob(J,L,!1,L===this.L&&x===this.DY?this.reason:X.reason,x):new ob(J,L,!1,L===this.L?this.reason:X.reason)}; ob.prototype.T=function(X){return!X.video||So&&this.DY!==0&&this.DY=0}; g.a.WB=function(){var X=this.segments[this.segments.length-1];return X?X.endTime:NaN}; g.a.c9=function(){return this.segments[0].startTime}; g.a.bR=function(){return this.segments.length}; g.a.hv=function(){return 0}; g.a.P5=function(X){return(X=this.B8(X))?X.Vl:-1}; g.a.uQ=function(X){return(X=this.B_(X))?X.sourceURL:""}; g.a.getStartTime=function(X){return(X=this.B_(X))?X.startTime:0}; g.a.yh=function(X){return this.getStartTime(X)+this.getDuration(X)}; g.a.kK=XY(1);g.a.isLoaded=function(){return this.segments.length>0}; g.a.B_=function(X){if(this.L&&this.L.Vl===X)return this.L;X=g.eI(this.segments,new ka(X,0,0,0,""),function(J,L){return J.Vl-L.Vl}); return this.L=X>=0?this.segments[X]:null}; g.a.B8=function(X){if(this.L&&this.L.startTime<=X&&X=0?this.segments[X]:this.segments[Math.max(0,-X-2)]}; g.a.append=function(X){if(X.length)if(X=g.Yu(X),this.segments.length){var J=this.segments.length?g.V0(this.segments).endTime:0,L=X[0].Vl-this.Md();L>1&&uYv(this.segments);for(L=L>0?0:-L+1;LX.Vl&&this.index.IW()<=X.Vl+1}; g.a.update=function(X,J,L){this.index.append(X);jTZ(this.index,L);X=this.index;X.K=J;X.N="update"}; g.a.Fy=function(){return this.v$()?!0:sW.prototype.Fy.call(this)}; g.a.lL=function(X,J){var L=this.index.uQ(X),x=this.index.getStartTime(X),Q=this.index.getDuration(X),K;J?Q=K=0:K=this.info.DY>0?this.info.DY*Q:1E3;return new Qa([new Z9(3,this,void 0,"liveCreateRequestInfoForSegment",X,x,Q,0,K,!J)],L)}; g.a.hL=function(){return this.v$()?0:this.initRange.length}; g.a.tF=function(){return!1};CY.prototype.update=function(X){var J=void 0;this.K&&(J=this.K);var L=new CY,x=Array.from(X.getElementsByTagName("S"));if(x.length){var Q=+DG(X,"timescale")||1,K=(+x[0].getAttribute("t")||0)/Q,q=+DG(X,"startNumber")||0;L.T=K;var D=J?J.startSecs+J.zR:0,C=Date.parse(h$Z(DG(X,"yt:segmentIngestTime")))/1E3;L.j=X.parentElement.tagName==="SegmentTemplate";L.j&&(L.W=DG(X,"media"));X=J?q-J.Vl:1;L.B=X>0?0:-X+1;X=g.d(x);for(x=X.next();!x.done;x=X.next()){x=x.value;for(var M=+x.getAttribute("d")/Q,y=(+x.getAttribute("yt:sid")|| 0)/Q,n=+x.getAttribute("r")||0,V=0;V<=n;V++)if(J&&q<=J.Vl)q++;else{var H=new Ero(q,D,M,C+y,K);L.L.push(H);var O=x;var u=Q,S=H.startSecs;H=O.getAttribute("yt:cuepointTimeOffset");var Y=O.getAttribute("yt:cuepointDuration");if(H&&Y){H=Number(H);S=-H/u+S;u=Number(Y)/u;Y=O.getAttribute("yt:cuepointContext")||null;var h=O.getAttribute("yt:cuepointIdentifier")||"";O=O.getAttribute("yt:cuepointEvent")||"";O=new q1(S,u,Y,h,X5v[O]||"unknown",H)}else O=null;O&&L.N.push(O);q++;D+=M;K+=M;C+=M+y}}L.L.length&& (L.K=g.V0(L.L))}this.B=L.B;this.K=L.K||this.K;g.pd(this.L,L.L);g.pd(this.N,L.N);this.j=L.j;this.W=L.W;this.T===-1&&(this.T=L.getStreamTimeOffset())}; CY.prototype.getStreamTimeOffset=function(){return this.T===-1?0:this.T};g.w(ya,g.ZP);g.a=ya.prototype;g.a.oF=function(){return this.vD}; g.a.n1=function(X,J){X=nY(this,X);return X>=0&&(J||!this.segments[X].pending)}; g.a.IW=function(){return this.T0?this.segments.length?this.B8(this.c9()).Vl:-1:g.ZP.prototype.IW.call(this)}; g.a.c9=function(){if(this.Bv)return 0;if(!this.T0)return g.ZP.prototype.c9.call(this);if(!this.segments.length)return 0;var X=Math.max(g.V0(this.segments).endTime-this.Ey,0);return this.hO>0&&this.B8(X).Vl0)return this.f$/1E3;if(!this.segments.length)return g.ZP.prototype.WB.call(this);var X=this.Md();if(!this.T0||X<=this.segments[this.segments.length-1].Vl)X=this.segments[this.segments.length-1];else{var J=this.segments[this.segments.length-1];X=new ka(X,Math.max(0,J.startTime-(J.Vl-X)*this.vD),this.vD,0,"sq/"+X,void 0,void 0,!0)}return this.Bv?Math.min(this.Ey,X.endTime):X.endTime}; g.a.bR=function(){return this.T0?this.segments.length?this.Md()-this.IW()+1:0:g.ZP.prototype.bR.call(this)}; g.a.Md=function(){var X=Math.min(this.PS,Math.max(g.ZP.prototype.Md.call(this),this.lT)),J=this.Ey*1E3;J=this.f$>0&&this.f$0&&this.lT>0&&!J&&(J=this.B8(this.Ey))&&(X=Math.min(J.Vl-1,X));return X}; g.a.Bb=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.a.h8=function(X){var J=nY(this,X.Vl);if(J>=0)this.segments[J]=X;else if(this.segments.splice(-(J+1),0,X),this.U9&&X.Vl%(300/this.vD)===0){var L=this.segments[0].Vl,x=Math.floor(this.U9/this.vD);X=X.Vl-x;J=-(J+1)-x;J>0&&X>L&&(this.segments=this.segments.slice(J))}}; g.a.O0=function(){return this.lT}; g.a.a6=function(X){return M7?!this.K&&X>=0&&this.Md()<=X:g.ZP.prototype.a6.call(this,X)}; g.a.B8=function(X){if(!this.T0)return g.ZP.prototype.B8.call(this,X);if(!this.segments.length)return null;var J=this.segments[this.segments.length-1];if(X=J.endTime)J=J.Vl+Math.floor((X-J.endTime)/this.vD+1);else{J=Fv(this.segments,function(x){return X=x.endTime?1:0}); if(J>=0)return this.segments[J];var L=-(J+1);J=this.segments[L-1];L=this.segments[L];J=Math.floor((X-J.endTime)/((L.startTime-J.endTime)/(L.Vl-J.Vl-1))+1)+J.Vl}return this.B_(J)}; g.a.B_=function(X){if(!this.T0)return g.ZP.prototype.B_.call(this,X);if(!this.segments.length)return null;var J=nY(this,X);if(J>=0)return this.segments[J];var L=-(J+1);J=this.vD;if(L===0)var x=Math.max(0,this.segments[0].startTime-(this.segments[0].Vl-X)*J);else L===this.segments.length?(x=this.segments[this.segments.length-1],x=x.endTime+(X-x.Vl-1)*J):(x=this.segments[L-1],J=this.segments[L],J=(J.startTime-x.endTime)/(J.Vl-x.Vl-1),x=x.endTime+(X-x.Vl-1)*J);return new ka(X,x,J,0,"sq/"+X,void 0,void 0, !0)}; var M7=!1;g.w(Va,gu);g.a=Va.prototype;g.a.TN=function(){return!0}; g.a.Fy=function(){return!0}; g.a.Ci=function(X){return this.tU()&&X.N&&!X.j||!X.L.index.a6(X.Vl)}; g.a.Yx=function(){}; g.a.oU=function(X,J){return typeof X!=="number"||isFinite(X)?gu.prototype.oU.call(this,X,J===void 0?!1:J):new Qa([new Z9(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.nJ,void 0,this.nJ*this.info.DY)],"")}; g.a.lL=function(X,J){var L=L===void 0?!1:L;if(this.index.n1(X))return gu.prototype.lL.call(this,X,J);var x=this.index.getStartTime(X),Q=Math.round(this.nJ*this.info.DY),K=this.nJ;J&&(K=Q=0);return new Qa([new Z9(L?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",X,x,K,void 0,Q,!J)],X>=0?"sq/"+X:"")};g.w(Hr,sW);g.a=Hr.prototype;g.a.z7=function(){return!1}; g.a.tU=function(){return!1}; g.a.TN=function(){return!1}; g.a.Yx=function(){return new Qa([new Z9(1,this,void 0,"otfInit")],this.j)}; g.a.Gr=function(){return null}; g.a.Sv=function(X){this.Ci(X);return Ga8(this,LY(X),!1)}; g.a.oU=function(X,J){J=J===void 0?!1:J;X=this.index.P5(X);J&&(X=Math.min(this.index.Md(),X+1));return Ga8(this,X,!0)}; g.a.HY=function(X){X.info.type===1&&(this.L||(this.L=D1(X.K)),X.L&&X.L.uri==="http://youtube.com/streaming/otf/durations/112015"&&fbA(this,X.L))}; g.a.Ci=function(X){return X.N===0?!0:this.index.Md()>X.Vl&&this.index.IW()<=X.Vl+1}; g.a.hL=function(){return 0}; g.a.tF=function(){return!1};g.OS.prototype.info=function(){}; g.OS.prototype.debug=function(){}; g.OS.prototype.L=function(X){ae.apply(null,[5,this.tag,X].concat(g.nR(g.fR.apply(1,arguments))))}; var lbZ=new Map,sxI=new Map,R$z=new function(){var X=this;this.L=new Map;this.Zh={d80:function(){return X.L}}};g.a=g.Pr.prototype;g.a.n1=function(X){return X<=this.Md()}; g.a.hv=function(X){return this.offsets[X]}; g.a.getStartTime=function(X){return this.startTicks[X]/this.L}; g.a.yh=function(X){return this.getStartTime(X)+this.getDuration(X)}; g.a.kK=XY(0);g.a.L3=function(){return NaN}; g.a.getDuration=function(X){X=this.f5(X);return X>=0?X/this.L:-1}; g.a.f5=function(X){return X+1=0}; g.a.WB=function(){return this.K?this.startTicks[this.count]/this.L:NaN}; g.a.c9=function(){return 0}; g.a.bR=function(){return this.count}; g.a.uQ=function(){return""}; g.a.P5=function(X){X=g.eI(this.startTicks.subarray(0,this.count),X*this.L);return X>=0?X:Math.max(0,-X-2)}; g.a.isLoaded=function(){return this.Md()>=0}; g.a.Zn=function(X,J){if(X>=this.Md())return 0;var L=0;for(J=this.getStartTime(X)+J;Xthis.getStartTime(X);X++)L=Math.max(L,LK8(this,X)/this.getDuration(X));return L}; g.a.resize=function(X){X+=2;var J=this.offsets;this.offsets=new Float64Array(X+1);var L=this.startTicks;this.startTicks=new Float64Array(X+1);for(X=0;X0&&X&&(L=L.range.end+1,X=Math.min(X,this.info.contentLength-L),X>0&&x.push(new Z9(4,this,mA(L,X),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,J)));return new Qa(x)}; g.a.HY=function(X){if(X.info.type===1){if(this.L)return;this.L=D1(X.K)}else if(X.info.type===2){if(this.j||this.index.Md()>=0)return;if(g.Ta(this.info)){var J=this.index,L=g.tj(X);X=X.info.range.start;var x=g.$z(L,0,1936286840);L=kXW(x);J.L=L.timescale;var Q=L.KZ;J.offsets[0]=L.Jf+X+x.size;J.startTicks[0]=Q;J.K=!0;X=L.VL.length;for(x=0;x0&&X===K[0].Nw)for(X=0;X=J+L)break}Q.length||(X=new g.Fm("b189619593",""+X,""+J,""+L),g.Sc(X));return new Qa(Q)}; g.a.WR=function(X){for(var J=this.Q1(X.info),L=X.info.range.start+X.info.K,x=[],Q=0;Q=this.index.hv(L+1);)L++;return this.x3(L,J,X.N).eC}; g.a.Ci=function(X){X.Ze();return this.Fy()?!0:X.range.end+1this.info.contentLength&&(J=new N1(J.start,this.info.contentLength-1)),new Qa([new Z9(4,X.L,J,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,X.clipId)]);X.type===4&&(X=this.Q1(X),X=X[X.length-1]);var L=0,x=X.range.start+X.K+X.N;X.type===3&&(X.Ze(),L=X.Vl,x===X.range.end+1&&(L+=1));return this.x3(L,x,J)}; g.a.Sv=function(){return null}; g.a.oU=function(X,J){J=J===void 0?!1:J;X=this.index.P5(X);J&&(X=Math.min(this.index.Md(),X+1));return this.x3(X,this.index.hv(X),0,void 0)}; g.a.z7=function(){return!0}; g.a.tU=function(){return!0}; g.a.TN=function(){return!1}; g.a.hL=function(){return this.indexRange.length+this.initRange.length}; g.a.tF=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var xV={},O8m=(xV.COLOR_PRIMARIES_BT709="bt709",xV.COLOR_PRIMARIES_BT2020="bt2020",xV.COLOR_PRIMARIES_UNKNOWN=null,xV.COLOR_PRIMARIES_UNSPECIFIED=null,xV),iC={},i88=(iC.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",iC.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",iC.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",iC.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",iC.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,iC.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,iC);g.YQ.prototype.getName=function(){return this.name}; g.YQ.prototype.getId=function(){return this.id}; g.YQ.prototype.getIsDefault=function(){return this.isDefault}; g.YQ.prototype.toString=function(){return this.name}; g.YQ.prototype.getName=g.YQ.prototype.getName;g.YQ.prototype.getId=g.YQ.prototype.getId;g.YQ.prototype.getIsDefault=g.YQ.prototype.getIsDefault;var IUA=/action_display_post/;var gjO,Wr,pY;g.w(ru,g.Ly);g.a=ru.prototype;g.a.isLoading=function(){return this.state===1}; g.a.EY=function(){return this.state===3}; g.a.j0B=function(X){var J=X.getElementsByTagName("Representation");if(X.getElementsByTagName("SegmentList").length>0||X.getElementsByTagName("SegmentTemplate").length>0){this.Zw=this.K=!0;this.timeline||(this.timeline=new WLI);jxZ(this.timeline,X);this.publish("refresh");for(X=0;X=0?y=UW(V):n=n+"?range="+V}C.call(D,new ka(M.Vl,M.startSecs,M.zR,M.L,n,y,M.K))}x=Q}L.update(x,this.isLive,this.Hl)}TSA(this.timeline);return!0}this.duration=YcO(DG(X,"mediaPresentationDuration")); a:{for(X=0;X0))return this.il()-X}}X=this.L;for(var J in X){var L=X[J].index;if(L.isLoaded()&&!l2(X[J].info.mimeType))return L.c9()}return 0}; g.a.getStreamTimeOffset=function(){return this.W}; g.a.L3=function(X){for(var J in this.L){var L=this.L[J].index;if(L.isLoaded()){var x=L.P5(X),Q=L.L3(x);if(Q)return Q+X-L.getStartTime(x)}}return NaN}; var mE=null,JBd,kQ=!((JBd=navigator.mediaCapabilities)==null||!JBd.decodingInfo),ojA={commentary:1,alternate:2,dub:3,main:4};var y8=new Set,ZG=new Map;JY.prototype.clone=function(X){return new JY(this.flavor,X,this.K,this.experiments)}; JY.prototype.yr=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; JY.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 LQu={},$H=(LQu.playready=["com.youtube.playready","com.microsoft.playready"],LQu.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],LQu),Qb={},xWS=(Qb.widevine="DRM_SYSTEM_WIDEVINE",Qb.fairplay="DRM_SYSTEM_FAIRPLAY",Qb.playready="DRM_SYSTEM_PLAYREADY",Qb),KK={},xz3=(KK.widevine=1,KK.fairplay=2,KK.playready=3,KK);var yG;g.w(C0,g.G); C0.prototype.initialize=function(X,J){for(var L=this,x=g.d(Object.keys(X)),Q=x.next();!Q.done;Q=x.next()){Q=g.d(X[Q.value]);for(var K=Q.next();!K.done;K=Q.next())if(K=K.value,K.V0)for(var q=g.d(Object.keys(K.V0)),D=q.next();!D.done;D=q.next()){var C=D.value;D=C;C=$H[C];!C&&this.Y("html5_enable_vp9_fairplay")&&D==="fairplay"&&(C=["com.youtube.fairplay.sbdl"]);if(C){C=g.d(C);for(var M=C.next();!M.done;M=C.next())M=M.value,this.N[M]=this.N[M]||new JY(D,M,K.V0[D],this.TH.experiments),this.L[D]=this.L[D]|| {},this.L[D][K.mimeType]=!0}}}e7()&&(this.N["com.youtube.fairplay"]=new JY("fairplay","com.youtube.fairplay","",this.TH.experiments),this.Y("html5_enable_vp9_fairplay")||(this.L.fairplay=this.L.fairplay||{},this.L.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.L.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.K=jJW(J,this.useCobaltWidevine,this.Y("html5_enable_safari_fairplay")&&!0,this.Y("html5_enable_vp9_fairplay")).filter(function(y){return!!L.N[y]})}; C0.prototype.Y=function(X){return this.TH.experiments.Mi(X)};var iQu={"":"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"};lUI.prototype.Y=function(X){return this.experiments.Mi(X)};var aVm={RED:"red",gdm:"white"};R_m.prototype.Mi=function(X){X=this.flags[X];JSON.stringify(X);return X==="true"};var Nsm=Promise.resolve(),Z8O=window.queueMicrotask?window.queueMicrotask.bind(window):UrA;O2.prototype.canPlayType=function(X,J){X=X.canPlayType?X.canPlayType(J):!1;Fh?X=X||Q3H[J]:NP===2.2?X=X||KQu[J]:Go()&&(X=X||qt0[J]);return!!X}; O2.prototype.isTypeSupported=function(X){return this.D?window.cast.receiver.platform.canDisplayType(X):ax(X)}; var KQu={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},qt0={"application/x-mpegURL":"maybe"},Q3H={"application/x-mpegURL":"maybe"};g.w(tY,g.Ly);tY.prototype.add=function(X,J){if(!this.items[X]&&(J.rb||J.pH||J.YD)){var L=this.items,x=J;Object.isFrozen&&!Object.isFrozen(J)&&(x=Object.create(J),Object.freeze(x));L[X]=x;this.publish("vast_info_card_add",X)}}; tY.prototype.remove=function(X){var J=this.get(X);delete this.items[X];return J}; tY.prototype.get=function(X){return this.items[X]||null}; tY.prototype.isEmpty=function(){return g.Mx(this.items)};var ub;oG.prototype.add=function(X){if(this.pos+20>this.data.length){var J=new Uint8Array(this.data.length*2);J.set(this.data);this.data=J}for(;X>31;)this.data[this.pos++]=ub[(X&31)+32],X>>=5;this.data[this.pos++]=ub[X|0]}; oG.prototype.DH=function(){return g.nw(this.data.subarray(0,this.pos))}; oG.prototype.reset=function(){this.pos=0};Sj.prototype.US=function(X,J){var L=Math.pow(this.alpha,X);this.L=J*(1-L)+L*this.L;this.K+=X}; Sj.prototype.Gc=function(){return this.L/(1-Math.pow(this.alpha,this.K))};Pa.prototype.US=function(X,J){for(var L=0;L<10;L++){var x=this.L[L],Q=x+(L===0?X:0),K=1*Math.pow(2,L);if(Q<=K)break;x=Math.min(1,(Q-K*.5)/x);for(Q=0;Q<16;Q++)K=this.values[L*16+Q]*x,this.values[(L+1)*16+Q]+=K,this.L[L+1]+=K,this.values[L*16+Q]-=K,this.L[L]-=K}x=L=0;Q=8192;J>8192&&(L=Math.ceil(Math.log(J/8192)/Math.log(2)),x=8192*Math.pow(2,L-1),Q=x*2);L+2>16?this.values[15]+=X:(J=(J-x)/(Q-x),this.values[L]+=X*(1-J),this.values[L+1]+=X*J);this.L[0]+=X}; Pa.prototype.Gc=function(){var X=X===void 0?this.K:X;var J=J===void 0?.02:J;var L=L===void 0?.98:L;for(var x=this.N,Q=0;Q<16;Q++)x[Q]=this.values[Q];Q=this.L[0];for(var K=1;K<11;K++){var q=this.L[K];if(q===0)break;for(var D=Math.min(1,(X-Q)/q),C=0;C<16;C++)x[C]+=this.values[K*16+C]*D;Q+=q*D;if(D<1)break}for(K=X=q=0;K<16;K++){D=q+x[K]/Q;X+=Math.max(0,Math.min(D,L)-Math.max(q,J))*(K>0?8192*Math.pow(2,K-1):0);if(D>L)break;q=D}return X/(L-J)};ca.prototype.US=function(X,J){X=Math.min(this.L,Math.max(1,Math.round(X*this.resolution)));X+this.K>=this.L&&(this.N=!0);for(;X--;)this.values[this.K]=J,this.K=(this.K+1)%this.L;this.ZZ=!0}; ca.prototype.percentile=function(X){var J=this;if(!this.N&&this.K===0)return 0;this.ZZ&&(g.BV(this.j,function(L,x){return J.values[L]-J.values[x]}),this.ZZ=!1); return this.values[this.j[Math.round(X*((this.N?this.L:this.K)-1))]]||0}; ca.prototype.Gc=function(){return this.B?(this.percentile(this.T-this.B)+this.percentile(this.T)+this.percentile(this.T+this.B))/3:this.percentile(this.T)};g.w(E2,g.G);E2.prototype.bB=function(){var X;(X=this.jC)==null||X.start();if(jj(this)&&this.policy.S){var J;(J=this.dQ)==null||J.j4()}};DTe.prototype.Y=function(X){return this.experiments.Mi(X)};g.w(CRo,g.G);var OCm="blogger ads-preview gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),oge={Drl:"caoe",A2I:"capsv",F4H:"cbrand",z9E:"cbr",QcH:"cbrver",I3I:"cchip",oWq:"ccappver",nWq:"ccrv",xsE:"cfrmver",TzI:"c",FfB:"cver",g6C:"ctheme",fIm:"cplayer",fKi:"cmodel",Fr:"cnetwork",ocC:"cos",OS_VERSION:"cosver",e86:"cplatform",FA6:"crqyear"};g.w(ik,g.G);g.a=ik.prototype;g.a.Y=function(X){return this.experiments.Mi(X)}; g.a.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.a.getVideoUrl=function(X,J,L,x,Q,K,q){J={list:J};L&&(Q?J.time_continue=L:J.t=L);L=q?"music.youtube.com":g.K4(this);Q=L==="www.youtube.com";!K&&x&&Q?K="https://youtu.be/"+X:g.kH(this)?(K="https://"+L+"/fire",J.v=X):(K&&Q?(K=this.protocol+"://"+L+"/shorts/"+X,x&&(J.feature="share")):(K=this.protocol+"://"+L+"/watch",J.v=X),Fh&&(X=fzz())&&(J.ebc=X));return g.Hw(K,J)}; g.a.getVideoEmbedCode=function(X,J,L,x){J="https://"+g.K4(this)+"/embed/"+J;x&&(J=g.Hw(J,{list:x}));x=L.width;L=L.height;J=Y0(J);X=Y0(X!=null?X:"YouTube video player");return'')}; g.a.supportsGaplessAudio=function(){return g.Oc&&!Fh&&v6()>=74||g.gy&&g.Gu(68)?!0:!1}; g.a.supportsGaplessShorts=function(){return!this.Y("html5_enable_short_gapless")||this.bB||g.n9?!1:!0}; g.a.getPlayerType=function(){return this.L.cplayer}; g.a.YH=function(){return this.YU}; var c5W=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],uAR=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],Szm=[19];var q5={},hBZ=(q5["140"]={numChannels:2},q5["141"]={numChannels:2},q5["251"]={audioSampleRate:48E3,numChannels:2},q5["774"]={audioSampleRate:48E3,numChannels:2},q5["380"]={numChannels:6},q5["328"]={numChannels:6},q5["773"]={},q5),IR={},Egm=(IR["1"]='video/mp4; codecs="av01.0.08M.08"',IR["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',IR["1e"]='video/mp4; codecs="av01.0.08M.08"',IR["9"]='video/webm; codecs="vp9"',IR["("]='video/webm; codecs="vp9"',IR["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', IR.h='video/mp4; codecs="avc1.64001e"',IR.H='video/mp4; codecs="avc1.64001e"',IR.o='audio/webm; codecs="opus"',IR.a='audio/mp4; codecs="mp4a.40.2"',IR.ah='audio/mp4; codecs="mp4a.40.2"',IR.mac3='audio/mp4; codecs="ac-3"; channels=6',IR.meac3='audio/mp4; codecs="ec-3"; channels=6',IR.i='audio/mp4; codecs="iamf.001.001.Opus"',IR),gU={},YzS=(gU["337"]={width:3840,height:2160,bitrate:3E7,fps:30},gU["336"]={width:2560,height:1440,bitrate:15E6,fps:30},gU["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, gU["702"]={width:7680,height:4320,bitrate:4E7,fps:60},gU["701"]={width:3840,height:2160,bitrate:2E7,fps:60},gU["700"]={width:2560,height:1440,bitrate:1E7,fps:60},gU["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},gU["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},gU["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},gU["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, gU["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},gU["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},gU["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},gU["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},gU["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},gU["315"]={width:3840,height:2160,bitrate:2E7,fps:60},gU["308"]={width:2560, height:1440,bitrate:1E7,fps:60},gU["303"]={width:1920,height:1080,bitrate:5E6,fps:60},gU["302"]={width:1280,height:720,bitrate:25E5,fps:60},gU["299"]={width:1920,height:1080,bitrate:75E5,fps:60},gU["298"]={width:1280,height:720,bitrate:35E5,fps:60},gU["571"]={width:7680,height:4320,bitrate:3E7,fps:60},gU["401"]={width:3840,height:2160,bitrate:15E6,fps:60},gU["400"]={width:2560,height:1440,bitrate:75E5,fps:60},gU["399"]={width:1920,height:1080,bitrate:2E6,fps:60},gU["398"]={width:1280,height:720,bitrate:1E6, fps:60},gU["397"]={width:854,height:480,bitrate:4E5,fps:30},gU["396"]={width:640,height:360,bitrate:25E4,fps:30},gU["787"]={width:1080,height:608,bitrate:2E5,fps:30},gU["788"]={width:1080,height:608,bitrate:4E5,fps:30},gU["572"]={width:7680,height:4320,bitrate:3E7,fps:60},gU["555"]={width:3840,height:2160,bitrate:15E6,fps:60},gU["554"]={width:2560,height:1440,bitrate:75E5,fps:60},gU["553"]={width:1920,height:1080,bitrate:2E6,fps:60},gU["552"]={width:1280,height:720,bitrate:1E6,fps:60},gU["551"]={width:854, height:480,bitrate:4E5,fps:30},gU["550"]={width:640,height:360,bitrate:25E4,fps:30},gU["313"]={width:3840,height:2160,bitrate:8E6,fps:30},gU["271"]={width:2560,height:1440,bitrate:4E6,fps:30},gU["248"]={width:1920,height:1080,bitrate:2E6,fps:30},gU["247"]={width:1280,height:720,bitrate:15E5,fps:30},gU["244"]={width:854,height:480,bitrate:52E4,fps:30},gU["243"]={width:640,height:360,bitrate:28E4,fps:30},gU["137"]={width:1920,height:1080,bitrate:4E6,fps:30},gU["136"]={width:1280,height:720,bitrate:3E6, fps:30},gU["135"]={width:854,height:480,bitrate:1E6,fps:30},gU["385"]={width:1920,height:1080,bitrate:6503313,fps:60},gU["376"]={width:1280,height:720,bitrate:5706960,fps:60},gU["384"]={width:1280,height:720,bitrate:3660979,fps:60},gU["225"]={width:1280,height:720,bitrate:5805E3,fps:30},gU["224"]={width:1280,height:720,bitrate:453E4,fps:30},gU["145"]={width:1280,height:720,bitrate:2682052,fps:30},gU);g.a=uk.prototype;g.a.getInfo=function(){return this.L}; g.a.Gg=function(){return null}; g.a.Fo=function(){var X=this.Gg();return X?(X=g.XU(X.T6),Number(X.expire)):NaN}; g.a.Ut=function(){}; g.a.getHeight=function(){return this.L.video.height};r5v.prototype.build=function(){T7m(this);var X=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],J={};a:if(this.L)var L=this.L;else{L="";for(var x=g.d(this.N),Q=x.next();!Q.done;Q=x.next())if(Q=Q.value,Q.OH){if(Q.OH.getIsDefault()){L=Q.OH.getId();break a}L||(L=Q.OH.getId())}}x=g.d(this.N);for(Q=x.next();!Q.done;Q=x.next())if(Q=Q.value,this.B||!Q.OH||Q.OH.getId()===L)J[Q.itag]||(J[Q.itag]=[]),J[Q.itag].push(Q);L=g.d(this.K);for(x=L.next();!x.done;x=L.next())if(x=x.value,Q=J[x.L]){Q=g.d(Q);for(var K=Q.next();!K.done;K= Q.next()){var q=X,D=q.push;K=K.value;var C="#EXT-X-MEDIA:TYPE=AUDIO,",M="YES",y="audio";if(K.OH){y=K.OH;var n=y.getId().split(".")[0];n&&(C+='LANGUAGE="'+n+'",');(this.L?this.L===y.getId():y.getIsDefault())||(M="NO");y=y.getName()}n="";x!==null&&(n=x.itag.toString());n=bk(this,K.url,n);C=C+('NAME="'+y+'",DEFAULT='+(M+',AUTOSELECT=YES,GROUP-ID="'))+(jLP(K,x)+'",URI="'+(n+'"'));D.call(q,C)}}L=g.d(this.j);for(x=L.next();!x.done;x=L.next())x=x.value,Q=Ixu,x=(q=x.OH)?'#EXT-X-MEDIA:URI="'+bk(this,x.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+Q+'",LANGUAGE="'+q.getId()+'",NAME="'+q.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,x&&X.push(x);L=this.j.length>0?Ixu:void 0;x=g.d(this.K);for(Q=x.next();!Q.done;Q=x.next())Q=Q.value,D=J[Q.L],q=void 0,((q=D)==null?void 0:q.length)>0&&(q=Q,D=D[0],D="#EXT-X-STREAM-INF:BANDWIDTH="+(q.bitrate+D.bitrate)+',CODECS="'+(q.codecs+","+D.codecs+'",RESOLUTION=')+(q.width+"x"+q.height+',AUDIO="')+(jLP(D,q)+'",')+(L?'SUBTITLES="'+L+'",':"")+"CLOSED-CAPTIONS=NONE",q.fps>1&&(D+= ",FRAME-RATE="+q.fps),q.LQ&&(D+=",VIDEO-RANGE="+q.LQ),X.push(D),X.push(bk(this,Q.url,"")));return X.join("\n")}; var Ixu="text";g.w(SH,uk);SH.prototype.Fo=function(){return this.expiration}; SH.prototype.Gg=function(){if(!this.T6||this.T6.E6()){var X=this.K.build();X="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(X);this.T6=new qr(X)}return this.T6};g.w(Pe,uk);Pe.prototype.Gg=function(){return new qr(this.K.Eo())}; Pe.prototype.Ut=function(){this.K=U_(this.K)};g.w(ce,uk);ce.prototype.Gg=function(){return new qr(this.K)};var Dt={},UTA=(Dt.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",Dt.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",Dt.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",Dt.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",Dt);g.a=g.ET.prototype;g.a.getId=function(){return this.id}; g.a.getName=function(){return this.name}; g.a.isServable=function(){return this.L}; g.a.Eo=function(){return this.url}; g.a.getXtags=function(){return this.xtags}; g.a.toString=function(){return this.languageCode+": "+g.Y3(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.a.equals=function(X){return X?this.toString()===X.toString():!1}; g.a.bl=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var J9m={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},Lle={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},xoZ=/^(\d*)_((\d*)_?(\d*))$/;var QXZ={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Klo={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var $V={},gIu=($V.ALWAYS=1,$V.BY_REQUEST=3,$V.UNKNOWN=void 0,$V),CK={},DzH=(CK.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",CK.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",CK.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",CK.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",CK);var rPY; rPY=function(X){for(var J=Object.keys(X),L={},x=0;xx-J?-1:X}; g.a.MD=function(){return this.K.Md()}; g.a.oy=function(){return this.K.IW()}; g.a.xf=function(X){this.K=X};g.w(il,LI);il.prototype.K=function(X,J){return LI.prototype.K.call(this,"$N|"+X,J)}; il.prototype.j=function(X,J,L){return new xU(X,J,L,this.isLive)};var lAR=[],DX=new Set;g.w(g.KI,g.Ly);g.a=g.KI.prototype; g.a.setData=function(X){X=X||{};var J=X.errordetail;J!=null&&(this.errorDetail=J);var L=X.errorcode;L!=null?this.errorCode=L:X.status==="fail"&&(this.errorCode="auth");var x=X.reason;x!=null&&(this.errorReason=x);var Q=X.subreason;Q!=null&&(this.ZS=Q);this.Y("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=X.cpn||(this.TH.YH()?"r"+g.nL(15):g.nL(16)));this.Cm=Xm(this.TH.Cm,X.livemonitor);v6Z(this,X);var K=X.raw_player_response;if(K)this.g1=K;else{var q=X.player_response; q&&(K=JSON.parse(q))}if(this.Y("html5_enable_ssap_entity_id")){var D=X.cached_load;D&&(this.Bu=Xm(this.Bu,D));if(!this.clientPlaybackNonce){var C=X.cpn;C?(this.fE("ssei","shdc"),this.clientPlaybackNonce=C):this.clientPlaybackNonce=this.TH.YH()?"r"+g.nL(15):g.nL(16)}}K&&(this.playerResponse=K);if(this.playerResponse){var M=this.playerResponse.annotations;if(M)for(var y=g.d(M),n=y.next();!n.done;n=y.next()){var V=n.value.playerAnnotationsUrlsRenderer;if(V){V.adsOnly&&(this.u3=!0);var H=V.loadPolicy; H&&(this.annotationsLoadPolicy=gIu[H]);var O=V.invideoUrl;O&&(this.jC=Fz(O));break}}var u=this.playerResponse.attestation;u&&IAY(this,u);var S=this.playerResponse.cotn;S&&(this.cotn=S);var Y=this.playerResponse.heartbeatParams;if(Y){this.Ak=!0;var h=Y.heartbeatToken;h&&(this.drmSessionId=Y.drmSessionId||"",this.heartbeatToken=h,this.L0=Number(Y.intervalMilliseconds),this.vn=Number(Y.maxRetries),this.xv=!!Y.softFailOnError,this.rO=!!Y.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=Y.heartbeatServerData; var W;this.cJ=!((W=Y.heartbeatAttestationConfig)==null||!W.requiresAttestation)}var T=this.playerResponse.messages;T&&CgR(this,T);var l=this.playerResponse.overlay;if(l){var Jo=l.playerControlsOverlayRenderer;if(Jo)if(y9R(this,Jo.controlBgHtml),Jo.mutedAutoplay){var U=g.F(Jo.mutedAutoplay,P$H);if(U&&U.endScreen){var QP=g.F(U.endScreen,cH0);QP&&QP.text&&(this.F1=g.Dn(QP.text))}}else this.mutedAutoplay=!1}var Iz=this.playerResponse.playabilityStatus;if(Iz){var qS=Iz.backgroundability;qS&&qS.backgroundabilityRenderer.backgroundable&& (this.backgroundable=!0);var $e,k;if(($e=Iz.offlineability)==null?0:(k=$e.offlineabilityRenderer)==null?0:k.offlineable)this.offlineable=!0;var cW=Iz.contextParams;cW&&(this.contextParams=cW);var rI=Iz.pictureInPicture;rI&&rI.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);Iz.playableInEmbed&&(this.allowEmbed=!0);var Xv=Iz.ypcClickwrap;if(Xv){var T0=Xv.playerLegacyDesktopYpcClickwrapRenderer,aH=Xv.ypcRentalActivationRenderer;if(T0)this.Lu=T0.durationMessage||"",this.LW=!0;else if(aH){var Tm= aH.durationMessage;this.Lu=Tm?g.Dn(Tm):"";this.LW=!0}}var ZH=Iz.errorScreen;if(ZH){if(ZH.playerLegacyDesktopYpcTrailerRenderer){var nd=ZH.playerLegacyDesktopYpcTrailerRenderer;this.Dk=nd.trailerVideoId||"";var l8=ZH.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var LJ=l8&&l8.ypcTrailerRenderer}else if(ZH.playerLegacyDesktopYpcOfferRenderer)nd=ZH.playerLegacyDesktopYpcOfferRenderer;else if(ZH.ypcTrailerRenderer){LJ=ZH.ypcTrailerRenderer;var E=LJ.fullVideoMessage;this.Ku=E?g.Dn(E):"";var jJ,hS;this.Dk= ((jJ=g.F(LJ,E0v))==null?void 0:(hS=jJ.videoDetails)==null?void 0:hS.videoId)||""}nd&&(this.N8=nd.itemTitle||"",nd.itemUrl&&(this.vx=nd.itemUrl),nd.itemBuyUrl&&(this.OG=nd.itemBuyUrl),this.fS=nd.itemThumbnail||"",this.qD=nd.offerHeadline||"",this.jZ=nd.offerDescription||"",this.LI=nd.offerId||"",this.Bx=nd.offerButtonText||"",this.D$=nd.offerButtonFormattedText||null,this.M8=nd.overlayDurationMsec||NaN,this.Ku=nd.fullVideoMessage||"",this.Uv=!0);if(LJ){var xe=g.F(LJ,E0v);if(xe)this.KI={raw_player_response:xe}; else{var cV=g.F(LJ,GuV);this.KI=cV?ZB(cV):null}this.Uv=!0}}}var b=this.playerResponse.playbackTracking;if(b){var LR=X,RS=rT(b.googleRemarketingUrl);RS&&(this.googleRemarketingUrl=RS);var qK=rT(b.youtubeRemarketingUrl);qK&&(this.youtubeRemarketingUrl=qK);var G0={},Rz=rT(b.ptrackingUrl);if(Rz){var ZO=ve(Rz),ZR=ZO.oid;ZR&&(this.T5=ZR);var TU=ZO.pltype;TU&&(this.fU=TU);var P=ZO.ptchn;P&&(this.PG=P);var t=ZO.ptk;t&&(this.Mm=encodeURIComponent(t));var c=ZO.m;c&&(this.Uq=c)}var r=rT(b.qoeUrl);if(r){for(var e= g.XU(r),MS=g.d(Object.keys(e)),B=MS.next();!B.done;B=MS.next()){var A=B.value,v=e[A];e[A]=Array.isArray(v)?v.join(","):v}this.Z4=e;var zm=e.cat;zm&&(this.Y("html5_enable_qoe_cat_list")?this.rF=this.rF.concat(zm.split(",")):this.jX=zm);var FY=e.live;FY&&(this.zF=FY);var gI=e.drm_product;gI&&(this.drmProduct=gI)}var DH=rT(b.videostatsPlaybackUrl);if(DH){var Ye=ve(DH),dI=Ye.adformat;if(dI){LR.adformat=dI;var Xw=this.G(),oH=iaI(dI,this.FA,Xw.T,Xw.S);oH&&(this.adFormat=oH)}var vV=Ye.aqi;vV&&(LR.ad_query_id= vV);var S8=Ye.autoplay;S8&&(this.lZ=S8=="1",this.Hk=S8=="1");var uF=Ye.autonav;uF&&(this.isAutonav=uF=="1");var ho=Ye.delay;ho&&(this.Lp=W_(ho));var z0=Ye.ei;z0&&(this.eventId=z0);if(Ye.adcontext||dI)this.lZ=!0;var b8=Ye.feature;b8&&(this.RV=b8);var IS=Ye.list;IS&&(this.playlistId=IS);var SI=Ye.of;SI&&(this.zL=SI);var Lk=Ye.osid;Lk&&(this.osid=Lk);var Qf=Ye.referrer;Qf&&(this.referrer=Qf);var RH=Ye.sdetail;RH&&(this.m7=RH);var WV=Ye.ssrt;WV&&(this.QN=WV=="1");var ER=Ye.subscribed;ER&&(this.subscribed= ER=="1");var AB=Ye.uga;AB&&(this.userGenderAge=AB);var ta=Ye.upt;ta&&(this.pG=ta);var eB=Ye.vm;eB&&(this.videoMetadata=eB);G0.playback=Ye}var x_=rT(b.videostatsWatchtimeUrl);if(x_){var i9=ve(x_),KQ=i9.ald;KQ&&(this.L7=KQ);G0.watchtime=i9}var oW=rT(b.atrUrl);if(oW){var TW=ve(oW);G0.atr=TW}var Xb=rT(b.engageUrl);if(Xb){var GW=ve(Xb);G0.engage=GW}this.C$=G0;if(b.promotedPlaybackTracking){var Jw=b.promotedPlaybackTracking;Jw.startUrls&&(this.eI=Jw.startUrls);Jw.firstQuartileUrls&&(this.It=Jw.firstQuartileUrls); Jw.secondQuartileUrls&&(this.eM=Jw.secondQuartileUrls);Jw.thirdQuartileUrls&&(this.tY=Jw.thirdQuartileUrls);Jw.completeUrls&&(this.vj=Jw.completeUrls);Jw.engagedViewUrls&&(Jw.engagedViewUrls.length>1&&g.PM(new g.Fm("There are more than one engaged_view_urls.")),this.Xu=Jw.engagedViewUrls[0])}}var dz=this.playerResponse.playerCueRanges;dz&&dz.length>0&&(this.cueRanges=dz);var Fb=this.playerResponse.playerCueRangeSet;Fb&&g.$U(this,Fb);a:{var uh=this.playerResponse.adPlacements;if(uh)for(var Q_=g.d(uh), o6=Q_.next();!o6.done;o6=Q_.next()){var Kk=void 0,qE=void 0,Ia=(Kk=o6.value.adPlacementRenderer)==null?void 0:(qE=Kk.renderer)==null?void 0:qE.videoAdTrackingRenderer;if(Ia){var gO=Ia;break a}}gO=null}var bh=gO;b&&b.promotedPlaybackTracking&&bh&&g.PM(new g.Fm("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var qz;if(!(qz=bh))a:{for(var Dr=g.d(this.playerResponse.adSlots||[]),wF=Dr.next();!wF.done;wF=Dr.next()){var tm=g.F(wF.value,i5);if(tm===void 0||!hVz(tm))break; var Tw=void 0,e4=(Tw=tm.fulfillmentContent)==null?void 0:Tw.fulfilledLayout,Fd=g.F(e4,Ue);if(Fd&&RX(Fd)){qz=!0;break a}}qz=!1}qz&&(this.lQ=!0);var l9=this.playerResponse.playerAds;if(l9)for(var qp=X,Gw=g.d(l9),oi=Gw.next();!oi.done;oi=Gw.next()){var fu=oi.value;if(fu){var Ig=fu.playerLegacyDesktopWatchAdsRenderer;if(Ig){var Ra=Ig.playerAdParams;if(Ra){Ra.autoplay=="1"&&(this.Hk=this.lZ=!0);this.Nn=Ra.encodedAdSafetyReason||null;Ra.showContentThumbnail!==void 0&&(this.tb=!!Ra.showContentThumbnail); qp.enabled_engage_types=Ra.enabledEngageTypes;break}}}}var bF=this.playerResponse.playerConfig;if(bF){var Sp=bF.manifestlessWindowedLiveConfig;if(Sp){var Gs=Number(Sp.minDvrSequence),gJ=Number(Sp.maxDvrSequence),dF=Number(Sp.minDvrMediaTimeMs),Dz=Number(Sp.maxDvrMediaTimeMs),eu=Number(Sp.startWalltimeMs);Gs&&(this.hO=Gs);dF&&(this.FE=dF/1E3,this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&dN(this)&&(this.L1=dF/1E3));gJ&&(this.PS=gJ);Dz&&(this.z6=Dz/1E3,this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&& dN(this)&&(this.Xb=Dz/1E3));eu&&(this.If=eu/1E3);(Gs||dF)&&(gJ||Dz)&&(this.allowLiveDvr=this.isLivePlayback=this.Km=!0,this.Bv=!1)}var FR=bF.daiConfig;if(FR){if(FR.enableDai){this.cO=!0;var DF=FR.enableServerStitchedDai;DF&&(this.enableServerStitchedDai=DF);var Uc=FR.enablePreroll;Uc&&(this.p6=Uc)}var Du;if(FR.daiType==="DAI_TYPE_SS_DISABLED"||((Du=FR.debugInfo)==null?0:Du.isDisabledUnpluggedChannel))this.hH=!0;FR.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.wS=!0)}var CA=bF.audioConfig;if(CA){var fp= CA.loudnessDb;fp!=null&&(this.oT=fp);var BBR=CA.trackAbsoluteLoudnessLkfs;BBR!=null&&(this.vr=BBR);var sq8=CA.loudnessTargetLkfs;sq8!=null&&(this.loudnessTargetLkfs=sq8);CA.audioMuted&&(this.M0=!0);CA.muteOnStart&&(this.wb=!0);var S_=CA.loudnessNormalizationConfig;if(S_){S_.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);S_.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget=!0);var NBY=S_.minimumLoudnessTargetLkfs;NBY!=null&&(this.minimumLoudnessTargetLkfs=NBY); var UMA=S_.maxStatefulTimeThresholdSec;UMA!=null&&(this.maxStatefulTimeThresholdSec=UMA)}CA.playAudioOnly&&(this.In=!0)}var t3z=bF.playbackEndConfig;if(t3z){var mMo=t3z.endSeconds,kiA=t3z.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(mMo&&(this.endSeconds=mMo),kiA&&(this.limitedPlaybackDurationInSeconds=kiA))}var dW=bF.fairPlayConfig;if(dW){var ZOO=dW.certificate;ZOO&&(this.Hl=dy(ZOO));var AzZ=Number(dW.keyRotationPeriodMs);AzZ>0&&(this.oI=AzZ);var X0R=Number(dW.keyPrefetchMarginMs);X0R>0&& (this.JC=X0R)}var jA=bF.playbackStartConfig;if(jA){this.Dp=Number(jA.startSeconds);var JZI=jA.liveUtcStartSeconds,L8e=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;JZI&&!L8e&&(this.liveUtcStartSeconds=Number(JZI));var dzo=jA.startPosition;if(dzo){var x6A=dzo.utcTimeMillis;x6A&&!L8e&&(this.liveUtcStartSeconds=Number(x6A)*.001);var iGP=dzo.streamTimeMillis;iGP&&(this.jk=Number(iGP)*.001)}this.progressBarStartPosition=jA.progressBarStartPosition;this.progressBarEndPosition=jA.progressBarEndPosition}else{var u98= bF.skippableSegmentsConfig;if(u98){var QjW=u98.introSkipDurationMs;QjW&&(this.tv=Number(QjW)/1E3);var K8A=u98.outroSkipDurationMs;K8A&&(this.hX=Number(K8A)/1E3)}}var oIv=bF.skippableIntroConfig;if(oIv){var q0m=Number(oIv.startMs),Iae=Number(oIv.endMs);isNaN(q0m)||isNaN(Iae)||(this.UV=q0m,this.jT=Iae)}var gdR=bF.streamSelectionConfig;gdR&&(this.H9=Number(gdR.maxBitrate));var D6v=bF.vrConfig;D6v&&(this.gs=D6v.partialSpherical=="1");var Ph=bF.webDrmConfig;if(Ph){Ph.skipWidevine&&(this.Ek=!0);var $6Y= Ph.widevineServiceCert;$6Y&&(this.yc=dy($6Y));Ph.useCobaltWidevine&&(this.useCobaltWidevine=!0);Ph.startWithNoQualityConstraint&&(this.eX=!0)}var Ft=bF.mediaCommonConfig;if(Ft){var ud=Ft.dynamicReadaheadConfig;if(ud){this.maxReadAheadMediaTimeMs=ud.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=ud.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=ud.readAheadGrowthRateMs||NaN;var Ca8,MZO=Ft==null?void 0:(Ca8=Ft.mediaUstreamerRequestConfig)==null?void 0:Ca8.videoPlaybackUstreamerConfig; MZO&&(this.vS=dy(MZO));var bQS=Ft==null?void 0:Ft.sabrContextUpdates;if(bQS&&bQS.length>0)for(var yZY=g.d(bQS),Stm=yZY.next();!Stm.done;Stm=yZY.next()){var KL=Stm.value;if(KL.type&&KL.value){var GsI={type:KL.type,scope:KL.scope,value:dy(KL.value)||void 0,sendByDefault:KL.sendByDefault};this.sabrContextUpdates.set(KL.type,GsI)}}}var ndm=Ft.serverPlaybackStartConfig;ndm&&(this.serverPlaybackStartConfig=ndm);Ft.useServerDrivenAbr&&(this.x7=!0);var VZo=Ft.requestPipeliningConfig;VZo&&(this.requestPipeliningConfig= VZo)}var HGR=bF.inlinePlaybackConfig;HGR&&(this.RX=!!HGR.showAudioControls);var oD=bF.embeddedPlayerConfig;if(oD){this.embeddedPlayerConfig=oD;var PSe=oD.embeddedPlayerMode;if(PSe){var OGv=this.G();OGv.FE=PSe;OGv.N=PSe==="EMBEDDED_PLAYER_MODE_PFL"}var aav=oD.permissions;aav&&(this.allowImaMonetization=!!aav.allowImaMonetization)}var bd=bF.webPlayerConfig;bd&&(bd.gatewayExperimentGroup&&(this.gatewayExperimentGroup=bd.gatewayExperimentGroup),bd.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var lW= this.playerResponse.streamingData;if(lW){var cBS=lW.formats;if(cBS){for(var ch=[],w0m=g.d(cBS),EIA=w0m.next();!EIA.done;EIA=w0m.next()){var YtI=EIA.value;ch.push(YtI.itag+"/"+YtI.width+"x"+YtI.height)}this.KL=ch.join(",");ch=[];for(var tZm=g.d(cBS),hWm=tZm.next();!hWm.done;hWm=tZm.next()){var Ee=hWm.value,Y6={itag:Ee.itag,type:Ee.mimeType,quality:Ee.quality},d6I=Ee.url;d6I&&(Y6.url=d6I);var SX=ms(Ee),fBI=SX.xk,eRV=SX.kz,FJu=SX.s;SX.yG&&(Y6.url=fBI,Y6.sp=eRV,Y6.s=FJu);ch.push(g.Vs(Y6))}this.YU=ch.join(",")}var zWO= lW.hlsFormats;if(zWO&&!this.Y("safari_live_drm_captions_fix")){var uBo=bF||null,Pb={};if(uBo){var WQO=uBo.audioPairingConfig;if(WQO&&WQO.pairs)for(var odW=g.d(WQO.pairs),p5A=odW.next();!p5A.done;p5A=odW.next()){var bGz=p5A.value,rBI=bGz.videoItag;Pb[rBI]||(Pb[rBI]=[]);Pb[rBI].push(bGz.audioItag)}}for(var S0A={},Pav=g.d(zWO),vIm=Pav.next();!vIm.done;vIm=Pav.next()){var cZZ=vIm.value;S0A[cZZ.itag]=cZZ.bitrate}for(var Edo=[],Y08=g.d(zWO),j3I=Y08.next();!j3I.done;j3I=Y08.next()){var k_=j3I.value,bq={itag:k_.itag, type:k_.mimeType,url:k_.url,bitrate:k_.bitrate,width:k_.width,height:k_.height,fps:k_.fps},cb=k_.audioTrack;if(cb){var h2Z=cb.displayName;h2Z&&(bq.name=h2Z,bq.audio_track_id=cb.id,cb.audioIsDefault&&(bq.is_default="1"))}if(k_.drmFamilies){for(var z2m=[],W8I=g.d(k_.drmFamilies),TRR=W8I.next();!TRR.done;TRR=W8I.next())z2m.push(j0[TRR.value]);bq.drm_families=z2m.join(",")}var Ei=Pb[k_.itag];if(Ei&&Ei.length){bq.audio_itag=Ei.join(",");var p0m=S0A[Ei[0]];p0m&&(bq.bitrate+=p0m)}var rZY=QJA(k_);rZY&&(bq.eotf= rZY);k_.audioChannels&&(bq.audio_channels=k_.audioChannels);Edo.push(g.Vs(bq))}this.hlsFormats=Edo.join(",")}var GtS=lW.licenseInfos;if(GtS&&GtS.length>0){for(var vdm={},jjv=g.d(GtS),fxY=jjv.next();!fxY.done;fxY=jjv.next()){var Tvv=fxY.value,G78=Tvv.drmFamily,fao=Tvv.url;G78&&fao&&(vdm[j0[G78]]=fao)}this.V0=vdm}var e2v=lW.drmParams;e2v&&(this.drmParams=e2v);var F88=lW.dashManifestUrl;F88&&(this.XX=g.Hw(F88,{cpn:this.clientPlaybackNonce}));var laZ=lW.hlsManifestUrl;laZ&&(this.hlsvp=laZ);var R2A=lW.probeUrl; R2A&&(this.probeUrl=Fz(g.Hw(R2A,{cpn:this.clientPlaybackNonce})));var BvR=lW.serverAbrStreamingUrl;BvR&&(this.gp=new g.lI(BvR,!0))}var sjZ=this.playerResponse.trackingParams;sjZ&&(this.vl=sjZ);var dZ=this.playerResponse.videoDetails;if(dZ){var Sx=X,eWA=dZ.videoId;eWA&&(this.videoId=eWA,Sx.video_id||(Sx.video_id=eWA));var FQm=dZ.title;FQm&&(this.title=FQm,Sx.title||(Sx.title=FQm));var lxP=dZ.lengthSeconds;lxP&&(this.lengthSeconds=Number(lxP),Sx.length_seconds||(Sx.length_seconds=lxP));var NvO=dZ.keywords; NvO&&(this.keywords=eOI(NvO));var RWI=dZ.channelId;RWI&&(this.OY=RWI,Sx.ucid||(Sx.ucid=RWI));var U6z=dZ.viewCount;U6z&&(this.rawViewCount=Number(U6z));var BRS=dZ.author;BRS&&(this.author=BRS,Sx.author||(Sx.author=BRS));var m6A=dZ.shortDescription;m6A&&(this.shortDescription=m6A);var k7I=dZ.isCrawlable;k7I&&(this.isListed=k7I);var ZGW=dZ.musicVideoType;ZGW&&(this.musicVideoType=ZGW);var s3R=dZ.isLive;s3R!=null&&(this.isLivePlayback=s3R);if(s3R||dZ.isUpcoming)this.isPremiere=!dZ.isLiveContent;var AZW= dZ.thumbnail;AZW&&(this.S=p4(AZW));var XEm=dZ.isExternallyHostedPodcast;XEm&&(this.isExternallyHostedPodcast=XEm);var NRO=dZ.viewerLivestreamJoinPosition;if(NRO==null?0:NRO.utcTimeMillis)this.Mp=W_(NRO.utcTimeMillis);var JQO=bF||null,Uzv=X;dZ.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);dZ.isUpcoming&&(this.isUpcoming=!0);if(dZ.isPostLiveDvr){this.Bv=!0;var LYe=dZ.latencyClass;LYe&&(this.latencyClass=DzH[LYe]||"UNKNOWN");dZ.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var mzm= !1;this.Cm?(this.allowLiveDvr=aG()?!0:NV&&Zm<5?!1:!0,this.isLivePlayback=!0):dZ.isLive?(Uzv.livestream="1",this.allowLiveDvr=dZ.isLiveDvrEnabled?aG()?!0:NV&&Zm<5?!1:!0:!1,this.partnerId=27,mzm=!0):dZ.isUpcoming&&(mzm=!0);if(dZ.isLive||this.Cm){dZ.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var xUP=dZ.latencyClass;xUP&&(this.latencyClass=DzH[xUP]||"UNKNOWN");var inA=dZ.liveChunkReadahead;inA&&(this.liveChunkReadahead=inA);var T5=JQO&&JQO.livePlayerConfig;if(T5){T5.hasSubfragmentedFmp4&& (this.hasSubfragmentedFmp4=!0);T5.hasSubfragmentedWebm&&(this.O5=!0);T5.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var QCS=T5.liveExperimentalContentId;QCS&&(this.liveExperimentalContentId=Number(QCS));var KYv=T5.isLiveHeadPlayable;this.Y("html5_live_head_playable")&&KYv!=null&&(this.isLiveHeadPlayable=KYv)}}mzm&&(this.isLivePlayback=!0,Uzv.adformat&&Uzv.adformat.split("_")[1]!=="8"||this.aB.push("heartbeat"))}var qZR=dZ.isPrivate;qZR!==void 0&&(this.isPrivate=Xm(this.isPrivate, qZR))}if(Iz){var I2W=dZ||null,gX8=!1,G5=Iz.errorScreen;gX8=G5&&(G5.playerLegacyDesktopYpcOfferRenderer||G5.playerLegacyDesktopYpcTrailerRenderer||G5.ypcTrailerRenderer)?!0:I2W&&I2W.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(Iz.status);if(!gX8){this.errorCode=mTz(Iz.errorCode)||"auth";var Yk=G5&&G5.playerErrorMessageRenderer;if(Yk){this.playerErrorMessageRenderer=Yk;var DUo=Yk.reason;DUo&&(this.errorReason=g.Dn(DUo));var kt8=Yk.subreason;kt8&&(this.ZS=g.Dn(kt8),this.n6=kt8)}else this.errorReason= Iz.reason||null;var ZQR=Iz.status;if(ZQR==="LOGIN_REQUIRED")this.errorDetail="1";else if(ZQR==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(ZQR==="AGE_CHECK_REQUIRED"){var $Um=Iz.errorScreen,CNv=$Um&&$Um.playerKavRenderer;this.errorDetail=CNv&&CNv.kavUrl?"4":"3"}else this.errorDetail=Iz.isBlockedInRestrictedMode?"5":"0"}}var M2Z=this.playerResponse.interstitialPods;M2Z&&$oR(this,M2Z);this.jC&&this.eventId&&(this.jC=LU(this.jC,{ei:this.eventId}));var ABm=this.playerResponse.captions;if(ABm&& ABm.playerCaptionsTracklistRenderer)a:{var P4=ABm.playerCaptionsTracklistRenderer;this.captionTracks=[];if(P4.captionTracks)for(var yQO=g.d(P4.captionTracks),Xt8=yQO.next();!Xt8.done;Xt8=yQO.next()){var c4=Xt8.value,nXz=TdP(c4.baseUrl);if(!nXz)break a;var Jao={is_translateable:!!c4.isTranslatable,languageCode:c4.languageCode,languageName:c4.name&&g.Dn(c4.name),url:nXz,vss_id:c4.vssId,kind:c4.kind};Jao.name=c4.trackName;Jao.displayName=c4.name&&g.Dn(c4.name);this.captionTracks.push(new g.ET(Jao))}this.Vd= P4.audioTracks||[];this.Bw=P4.defaultAudioTrackIndex||0;this.Ts=[];if(P4.translationLanguages)for(var V2v=g.d(P4.translationLanguages),Lfv=V2v.next();!Lfv.done;Lfv=V2v.next()){var fw=Lfv.value,qZ={};qZ.languageCode=fw.languageCode;qZ.languageName=g.Dn(fw.languageName);if(fw.translationSourceTrackIndices){qZ.translationSourceTrackIndices=[];for(var HnI=g.d(fw.translationSourceTrackIndices),xOo=HnI.next();!xOo.done;xOo=HnI.next())qZ.translationSourceTrackIndices.push(xOo.value)}if(fw.excludeAudioTrackIndices){qZ.excludeAudioTrackIndices= [];for(var OnR=g.d(fw.excludeAudioTrackIndices),iMv=OnR.next();!iMv.done;iMv=OnR.next())qZ.excludeAudioTrackIndices.push(iMv.value)}this.Ts.push(qZ)}this.EZ=[];if(P4.defaultTranslationSourceTrackIndices)for(var a2e=g.d(P4.defaultTranslationSourceTrackIndices),QuP=a2e.next();!QuP.done;QuP=a2e.next())this.EZ.push(QuP.value);this.kA=!!P4.contribute&&!!P4.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.Dp=Number(this.clipConfig.startTimeMs)* .001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&M_A(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var wEm;this.compositeLiveIngestionOffsetToken=(wEm=this.playerResponse.playbackTracking)==null?void 0:wEm.compositeLiveIngestionOffsetToken;var t2Y;this.compositeLiveStatusToken=(t2Y=this.playerResponse.playbackTracking)==null?void 0: t2Y.compositeLiveStatusToken;this.Y("html5_fill_default_mosaic_audio_track_id")&&LO(this)&&(this.TH.O6=h5P(this))}Il(this,X);X.queue_info&&(this.queueInfo=X.queue_info);var dUI=X.hlsdvr;dUI!=null&&(this.allowLiveDvr=Number(dUI)===1?aG()?!0:NV&&Zm<5?!1:!0:!1);this.adQueryId=X.ad_query_id||null;this.Nn||(this.Nn=X.encoded_ad_safety_reason||null);this.M0=Xm(this.M0,X.infringe||X.muted);this.aH=X.authkey;this.yE=X.authuser;this.mutedAutoplay=Xm(this.mutedAutoplay,X&&X.playmuted);this.mutedAutoplayDurationMode= Ll(this.mutedAutoplayDurationMode,X&&X.muted_autoplay_duration_mode);this.gC=Xm(this.gC,X&&X.mutedautoplay);var hi=X.length_seconds;hi&&(this.lengthSeconds=typeof hi==="string"?W_(hi):hi);if(this.isAd()||this.M9||!g.qk(g.AY(this.TH)))this.endSeconds=Ll(this.endSeconds,this.hX||X.end||X.endSeconds);else{var lB3=g.AY(this.TH),z4=this.lengthSeconds;switch(lB3){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":z4>30?this.limitedPlaybackDurationInSeconds=30:z4<30&&z4>10&&(this.limitedPlaybackDurationInSeconds= 10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=z4*.2}}this.vl=x1(this.vl,X.itct);this.fL=Xm(this.fL,X.is_live_destination);this.isLivePlayback=Xm(this.isLivePlayback,X.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.Zw();X.isUpcoming&&(this.isUpcoming=Xm(this.isUpcoming,X.isUpcoming));this.Bv=Xm(this.Bv,X.post_live_playback);this.Km&&(this.Bv=!1);this.isMdxPlayback=Xm(this.isMdxPlayback,X.mdx);var Wb=X.mdx_control_mode; Wb&&(this.mdxControlMode=typeof Wb==="number"?Wb:W_(Wb));this.isInlinePlaybackNoAd=Xm(this.isInlinePlaybackNoAd,X.is_inline_playback_no_ad);this.H4=Ll(this.H4,X.reload_count);this.reloadReason=x1(this.reloadReason,X.reload_reason);this.tb=Xm(this.tb,X.show_content_thumbnail);this.cycToken=X.cyc||null;var un8=We(X);Object.keys(un8).length>0&&(this.S=un8);this.gI=x1(this.gI,X.vvt);this.mdxEnvironment=x1(this.mdxEnvironment,X.mdx_environment);X.source_container_playlist_id&&(this.sourceContainerPlaylistId= X.source_container_playlist_id);X.serialized_mdx_metadata&&(this.serializedMdxMetadata=X.serialized_mdx_metadata);this.jy=X.osig;this.eventId||(this.eventId=X.eventid);this.osid||(this.osid=X.osid);this.playlistId=x1(this.playlistId,X.list);X.index&&(this.playlistIndex=this.playlistIndex===void 0?Ll(0,X.index):Ll(this.playlistIndex,X.index));this.mM=X.pyv_view_beacon_url;this.PE=X.pyv_quartile25_beacon_url;this.kB=X.pyv_quartile50_beacon_url;this.Ta=X.pyv_quartile75_beacon_url;this.Kd=X.pyv_quartile100_beacon_url; var oXY=X.session_data;!this.fd&&oXY&&(this.fd=mJ(oXY,"&").feature);this.isFling=Ll(this.isFling?1:0,X.is_fling)===1;this.vnd=Ll(this.vnd,X.vnd);this.forceAdsUrl=x1(this.forceAdsUrl,X.force_ads_url);this.Az=x1(this.Az,X.ctrl);this.Jb=x1(this.Jb,X.ytr);this.oJ=X.ytrcc;this.g$=X.ytrexp;this.cV=X.ytrext;this.qQ=x1(this.qQ,X.adformat);this.FA=x1(this.FA,X.attrib);this.slotPosition=Ll(this.slotPosition,X.slot_pos);this.breakType=X.break_type;this.QN=Xm(this.QN,X.ssrt);this.videoId=QV(X)||this.videoId; this.B=x1(this.B,X.vss_credentials_token);this.SQ=x1(this.SQ,X.vss_credentials_token_type);this.In=Xm(this.In,X.audio_only);this.bB=Xm(this.bB,X.aac_high);this.IQ=Xm(this.IQ,X.prefer_low_quality_audio);this.BI=Xm(this.BI,X.uncap_inline_quality);this.Y("html5_enable_qoe_cat_list")?X.qoe_cat&&(this.rF=this.rF.concat(X.qoe_cat.split(","))):this.jX=x1(this.jX,X.qoe_cat);this.xo=Xm(this.xo,X.download_media);var bne=X.prefer_gapless;this.W=bne!=null?Xm(this.W,bne):this.W?this.W:this.TH.preferGapless&&this.TH.supportsGaplessShorts(); Ipz(this.playerResponse)&&this.aB.push("ad");var SZA=X.adaptive_fmts;SZA&&(this.adaptiveFormats=SZA,this.Ni("adpfmts",{},!0));var PN8=X.allow_embed;PN8&&(this.allowEmbed=Number(PN8)===1);var cQY=X.backgroundable;cQY&&(this.backgroundable=Number(cQY)===1);var EXY=X.autonav;EXY&&(this.isAutonav=Number(EXY)===1);var YZO=X.autoplay;YZO&&(this.lZ=this.Hk=Number(YZO)===1);var hn8=X.iv_load_policy;hn8&&(this.annotationsLoadPolicy=J3(this.annotationsLoadPolicy,hn8,X_));var znR=X.cc_lang_pref;znR&&(this.captionsLanguagePreference= x1(znR,this.captionsLanguagePreference));var WYY=X.cc_load_policy;WYY&&(this.aE=J3(this.aE,WYY,X_));var pEz;this.deviceCaptionsOn=(pEz=X.device_captions_on)!=null?pEz:void 0;var rQ8;this.q_=(rQ8=X.device_captions_lang_pref)!=null?rQ8:"";var vXP;this.CQ=(vXP=X.viewer_selected_caption_langs)!=null?vXP:[];if(!this.Y("html5_enable_ssap_entity_id")){var jCY=X.cached_load;jCY&&(this.Bu=Xm(this.Bu,jCY))}if(X.dash==="0"||X.dash===0||X.dash===!1)this.l2=!0;var TrA=X.dashmpd;TrA&&(this.XX=g.Hw(TrA,{cpn:this.clientPlaybackNonce})); var GrO=X.delay;GrO&&(this.Lp=W_(GrO));var Kfm=this.hX||X.end;if(this.sH?Kfm!=null:Kfm!=void 0)this.clipEnd=Ll(this.clipEnd,Kfm);var f2P=X.fmt_list;f2P&&(this.KL=f2P);X.heartbeat_preroll&&this.aB.push("heartbeat");this.NK=-Math.floor(Math.random()*10);this.YC=-Math.floor(Math.random()*40);var eno=X.is_listed;eno&&(this.isListed=Xm(this.isListed,eno));var FYz=X.is_private;FYz&&(this.isPrivate=Xm(this.isPrivate,FYz));var l2P=X.is_dni;l2P&&(this.UM=Xm(this.UM,l2P));var Rno=X.dni_color;Rno&&(this.Wu= x1(this.Wu,Rno));var BrY=X.pipable;BrY&&(this.pipable=Xm(this.pipable,BrY));this.BE=(this.F_=this.pipable&&this.TH.kA)&&!this.TH.showMiniplayerButton;var sCY=X.paid_content_overlay_duration_ms;sCY&&(this.paidContentOverlayDurationMs=W_(sCY));var NrY=X.paid_content_overlay_text;NrY&&(this.paidContentOverlayText=NrY);var UUm=X.url_encoded_fmt_stream_map;UUm&&(this.YU=UUm);var mUA=X.hls_formats;mUA&&(this.hlsFormats=mUA);var krW=X.hlsvp;krW&&(this.hlsvp=krW);var pr=X.live_start_walltime;pr&&(this.U4= typeof pr==="number"?pr:W_(pr));var rW=X.live_manifest_duration;rW&&(this.b8=typeof rW==="number"?rW:W_(rW));var ZnS=X.player_params;ZnS&&(this.playerParams=ZnS);var AQo=X.partnerid;AQo&&(this.partnerId=Ll(this.partnerId,AQo));var X7Z=X.probe_url;X7Z&&(this.probeUrl=Fz(g.Hw(X7Z,{cpn:this.clientPlaybackNonce})));var qYZ=X.pyv_billable_url;qYZ&&yRO(qYZ)&&(this.Xu=qYZ);var IeA=X.pyv_conv_url;IeA&&yRO(IeA)&&(this.Ld=IeA);Flv(this,X);this.startSeconds>0?this.Y("html5_log_start_seconds_inconsistency")&& this.startSeconds!==(this.Dp||this.tv||X.start||X.startSeconds)&&this.Ni("lss",{css:this.startSeconds,pcss:this.Dp,iss:this.tv,ps:X.start||void 0,pss:X.startSeconds||void 0}):this.Nx=this.startSeconds=Ll(this.startSeconds,this.Dp||this.tv||X.start||X.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var JNv=X.live_utc_start;if(JNv!=null)this.liveUtcStartSeconds=Number(JNv);else{var gnW=this.startSeconds;gnW&&isFinite(gnW)&&gnW>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&& this.liveUtcStartSeconds>0)){var LpP=X.utc_start_millis;LpP&&(this.liveUtcStartSeconds=Number(LpP)*.001)}var xsY=X.stream_time_start_millis;xsY&&(this.jk=Number(xsY)*.001);var DOS=this.tv||X.start;(this.sH?DOS==null||Number(X.resume)===1:DOS==void 0||X.resume=="1")||this.isLivePlayback||(this.clipStart=Ll(this.clipStart,DOS));var i7z=X.url_encoded_third_party_media;i7z&&(this.CA=AI(i7z));var $OW=X.ypc_offer_button_formatted_text;if($OW){var QNz=JSON.parse($OW);this.D$=QNz!=null?QNz:null;this.YB=$OW}var Kpo= X.ypc_offer_button_text;Kpo&&(this.Bx=Kpo);var qBo=X.ypc_offer_description;qBo&&(this.jZ=qBo);var I$A=X.ypc_offer_headline;I$A&&(this.qD=I$A);var g$Z$=X.ypc_full_video_message;g$Z$&&(this.Ku=g$Z$);var DsP=X.ypc_offer_id;DsP&&(this.LI=DsP);var $sz=X.ypc_buy_url;$sz&&(this.OG=$sz);var CMv=X.ypc_item_thumbnail;CMv&&(this.fS=CMv);var MSm=X.ypc_item_title;MSm&&(this.N8=MSm);var yN8=X.ypc_item_url;yN8&&(this.vx=yN8);var n$m=X.ypc_vid;n$m&&(this.Dk=n$m);X.ypc_overlay_timeout&&(this.M8=Number(X.ypc_overlay_timeout)); var VSY=X.ypc_trailer_player_vars;VSY&&(this.KI=ZB(VSY));var H7P=X.ypc_original_itct;H7P&&(this.LXI=H7P);this.OY=x1(this.OY,X.ucid);this.Qw=X.storyboard_spec||null;this.SI=X.live_storyboard_spec||null;this.To=X.iv_endscreen_url||null;this.Uv=Xm(this.Uv,X.ypc_module);this.LW=Xm(this.LW,X.ypc_clickwrap_module);this.Uv&&this.aB.push("ypc");this.LW&&this.aB.push("ypc_clickwrap");this.Fd={video_id:X.video_id,eventid:X.eventid,cbrand:X.cbrand,cbr:X.cbr,cbrver:X.cbrver,c:X.c,cver:X.cver,ctheme:X.ctheme, cplayer:X.cplayer,cmodel:X.cmodel,cnetwork:X.cnetwork,cos:X.cos,cosver:X.cosver,cplatform:X.cplatform,user_age:X.user_age,user_display_image:X.user_display_image,user_display_name:X.user_display_name,user_gender:X.user_gender,csi_page_type:X.csi_page_type,csi_service_name:X.csi_service_name,enablecsi:X.enablecsi,enabled_engage_types:X.enabled_engage_types};jXz(this,X);var O7O=X.cotn;O7O&&(this.cotn=O7O);if(LuO(this))bl(this)&&(this.isLivePlayback&&this.XX&&(this.xj=!0),this.Hl&&(this.cq=!0));else if(xao(this))this.xj= !0;else{var a$S,w7I,tSe=((a$S=this.playerResponse)==null?void 0:(w7I=a$S.streamingData)==null?void 0:w7I.adaptiveFormats)||[];if(tSe.length>0)var h9=JEm(this,tSe);else{var dsP=this.adaptiveFormats;if(dsP&&!bl(this)){this.TH.j.N&&(kQ=!0);var eA=z$(dsP),CtP=this.V0,uZm=this.lengthSeconds,RR3=this.isLivePlayback,zP=this.Bv,FH=this.TH,BCH=aUm(eA);if(RR3||zP){var o$8=FH==null?void 0:FH.experiments,vl=new ru("",o$8,!0);vl.Zw=!0;vl.isManifestless=!0;vl.K=!zP;vl.isLive=!zP;vl.Bv=zP;for(var b7S=g.d(eA),MBA= b7S.next();!MBA.done;MBA=b7S.next()){var lE=MBA.value,SBe=GO(lE,CtP),I4=fY(lE.url,lE.sp,lE.s),PMP=I4.get("id");PMP&&PMP.includes("%7E")&&(vl.D=!0);var cNm=void 0,sYI=(cNm=o$8)==null?void 0:cNm.Mi("html5_max_known_end_time_rebase"),NCd=Number(lE.target_duration_sec)||5,UDu=Number(lE.max_dvr_duration_sec)||14400,E$m=Number(I4.get("mindsq")||I4.get("min_sq")||"0"),YBS=Number(I4.get("maxdsq")||I4.get("max_sq")||"0")||Infinity;vl.hO=vl.hO||E$m;vl.PS=vl.PS||YBS;var mDv=!l2(SBe.mimeType);I4&&zO(vl,new Va(I4, SBe,{nJ:NCd,T0:mDv,Ey:UDu,hO:E$m,PS:YBS,U9:300,Bv:zP,UR:sYI}))}var hto=vl}else{if(BCH==="FORMAT_STREAM_TYPE_OTF"){var vb=uZm;vb=vb===void 0?0:vb;var R9=new ru("",FH==null?void 0:FH.experiments,!1);R9.duration=vb||0;for(var ztv=g.d(eA),yaP=ztv.next();!yaP.done;yaP=ztv.next()){var Bz=yaP.value,nnO=GO(Bz,CtP,R9.duration),VBP=fY(Bz.url,Bz.sp,Bz.s);if(VBP)if(nnO.streamType==="FORMAT_STREAM_TYPE_OTF")zO(R9,new Hr(VBP,nnO,"sq/0"));else{var ksC=UW(Bz.init),Zpd=UW(Bz.index);zO(R9,new ES(VBP,nnO,ksC,Zpd))}}R9.isOtf= !0;var Wpv=R9}else{var jX=uZm;jX=jX===void 0?0:jX;var T4=new ru("",FH==null?void 0:FH.experiments,!1);T4.duration=jX||0;for(var p7e=g.d(eA),HMR=p7e.next();!HMR.done;HMR=p7e.next()){var Nl=HMR.value,AIe=GO(Nl,CtP,T4.duration),X6e=UW(Nl.init),J80=UW(Nl.index),rNv=fY(Nl.url,Nl.sp,Nl.s);rNv&&zO(T4,new ES(rNv,AIe,X6e,J80))}Wpv=T4}hto=Wpv}var v$Y=hto;if(eA.length>0){var jNP=eA[0];if(this.G().playerStyle==="hangouts-meet"&&jNP.url){var LH3=g.XU(jNP.url);this.Cq=this.Cq||Number(LH3.expire)}}var xVS=this.isLivePlayback&& !this.Bv&&!this.Km&&!this.isPremiere;this.Y("html5_live_head_playable")&&(!Sw(this)&&xVS&&this.Ni("missingLiveHeadPlayable",{}),this.TH.Km==="yt"&&(v$Y.jC=!0));h9=v$Y}else h9=null;this.Ni("pafmts",{isManifestFilled:!!h9})}if(h9){Er(this,h9);var Tie=!0}else Tie=!1;Tie?this.enableServerStitchedDai=this.enableServerStitchedDai&&Pd(this):this.XX&&(this.TH.Km==="yt"&&this.Zw()&&this.Y("drm_manifestless_unplugged")&&this.Y("html5_deprecate_manifestful_fallback")?this.Ni("deprecateMflFallback",{}):this.xj= !0)}var OMP=X.adpings;OMP&&(this.ag=OMP?ZB(OMP):null);var GVS=X.feature;GVS&&(this.RV=GVS);var f$I=X.referrer;f$I&&(this.referrer=f$I);this.clientScreenNonce=x1(this.clientScreenNonce,X.csn);this.MB=Ll(this.MB,X.root_ve_type);this.gy=Ll(this.gy,X.kids_age_up_mode);this.sH||X.kids_app_info==void 0||(this.kidsAppInfo=X.kids_app_info);this.sH&&X.kids_app_info!=null&&(this.kidsAppInfo=X.kids_app_info);this.YP=Xm(this.YP,X.upg_content_filter_mode);this.unpluggedFilterModeType=Ll(this.unpluggedFilterModeType, X.unplugged_filter_mode_type);var ete=X.unplugged_location_info;ete&&(this.ek=ete);var FpY=X.unplugged_partner_opt_out;FpY&&(this.Wx=x1("",FpY));this.yd=Xm(this.yd,X.disable_watch_next);this.uf=x1(this.uf,X.internal_ip_override);this.TF=!!X.is_yto_interstitial;(this.interstitials.length||this.TF)&&this.aB.push("yto");var l$8=X.QS;l$8&&(this.QS=l$8);this.D=x1(this.D,X.csi_timer);X.watchUrl&&(this.watchUrl=X.watchUrl);var gt=X.watch_endpoint;this.Y("html5_attach_watch_endpoint_ustreamer_config")&>&& A5v(this,gt);if(gt==null?0:gt.ustreamerConfig)this.RY=dy(gt.ustreamerConfig);var RtY,BiI,sNW=gt==null?void 0:(RtY=gt.loggingContext)==null?void 0:(BiI=RtY.qoeLoggingContext)==null?void 0:BiI.serializedContextData;sNW&&(this.RNH=sNW);g.lb(this.TH)&&this.TH.LI&&(this.embedsRct=x1(this.embedsRct,X.rct),this.embedsRctn=x1(this.embedsRctn,X.rctn));this.tB=this.tB||!!X.pause_at_start;X.default_active_source_video_id&&(this.defaultActiveSourceVideoId=X.default_active_source_video_id)}; g.a.G=function(){return this.TH}; g.a.Y=function(X){return this.TH.Y(X)}; g.a.tJ=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.a.hasSupportedAudio51Tracks=function(){var X;return!((X=this.fY)==null||!X.O6)}; g.a.getUserAudio51Preference=function(){var X=1;C4(this.TH)&&this.Y("html5_ytv_surround_toggle_default_off")?X=0:g.gT(this.TH)&&this.isLivePlayback&&this.zC()&&(X=0);var J;return(J=g.Y1("yt-player-audio51"))!=null?J:X}; g.a.D5=function(){this.E6()||(this.L.K||this.L.unsubscribe("refresh",this.D5,this),this.TO(-1))}; g.a.TO=function(X){if(!this.isLivePlayback||!this.j||this.j.flavor!=="fairplay"){var J=t5S(this.L,this.F$);if(J.length>0){for(var L=g.d(J),x=L.next();!x.done;x=L.next())x=x.value,x.startSecs=Math.max(x.startSecs,this.c9()),this.Y("html5_cuepoint_identifier_logging")&&x.event==="start"&&this.Ni("cuepoint",{pubCue:x.identifier,segNum:X});this.publish("cuepointupdated",J,X);this.F$+=J.length;if(Pd(this)&&this.TH.YH())for(J=g.d(J),L=J.next();!L.done;L=J.next())L=L.value,this.Ni("cuepoint",{segNum:X,event:L.event, startSecs:L.startSecs,id:L.identifier.slice(-16)}),L.event==="start"&&(L=L.startSecs,this.xC.start=this.t_,this.xC.end=L+3)}}}; g.a.c$=function(){this.E6()||(this.loading=!1,this.publish("dataloaded"))}; g.a.zC=function(){return this.PN!==void 0?this.PN:this.PN=!!this.V0||!!this.L&&vK(this.L)}; g.a.M_=function(X){var J=this;if(this.E6())return P6();this.pO=this.SC=this.N=null;Iq(this,"html5_high_res_logging_always")&&(this.TH.YU=!0);return qyP(this,X).then(void 0,function(){return gsZ(J,X)}).then(void 0,function(){return DaI(J)}).then(void 0,function(){return C5I(J)})}; g.a.TW=function(X){this.N=X;IWO(this,this.N.getAvailableAudioTracks());if(this.N){X=g.d(this.N.videoInfos);for(var J=X.next();!J.done;J=X.next()){J=J.value;var L=J.containerType;L!==0&&(this.II[L]=J.id)}}X=this.getAvailableAudioTracks();X=X.concat(this.OQ);for(J=0;J0?this.N.getAvailableAudioTracks():this.Ov||[]:[]}; g.a.getAudioTrack=function(){var X=this;if(this.T&&!Ga(this.T)){var J=g.Ou(this.getAvailableAudioTracks(),function(Q){return Q.id===X.T.id}),L; if(!J&&((L=this.T.OH)==null?0:L.id)){var x=this.T.OH.id;J=g.Ou(this.getAvailableAudioTracks(),function(Q){return Q.OH.id===x}); this.Ni("nat",{id:this.T.id,track:!!J})}return J||this.OQ}if(this.Ov){if(!this.w8)for(J=g.d(this.Ov),L=J.next();!L.done;L=J.next())if(L=L.value,L.OH.getIsDefault()){this.w8=L;break}return this.w8||this.OQ}return this.OQ}; g.a.getPlayerResponse=function(){return this.playerResponse}; g.a.getWatchNextResponse=function(){return this.Bl}; g.a.getHeartbeatResponse=function(){return this.aJ}; g.a.Ve=function(){return this.watchUrl?this.watchUrl:this.TH.getVideoUrl(this.videoId)}; g.a.m1=function(){return!!this.L&&(Cw8(this.L)||M5S(this.L)||yfR(this.L))}; g.a.getEmbeddedPlayerResponse=function(){return this.BS}; g.a.Ev=function(){return(this.eventLabel||this.TH.gI)==="shortspage"}; g.a.isAd=function(){return!!this.adFormat}; g.a.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.a.OA=function(){var X,J,L;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((X=this.playerResponse)==null?0:(J=X.playerConfig)==null?0:(L=J.daiConfig)==null?0:L.ssaEnabledPlayback)}; g.a.Rl=function(){return this.Ak}; g.a.KR=function(){return this.Uv||this.sQ}; g.a.J8=function(){return Iq(this,"html5_samsung_vp9_live")}; g.a.Ni=function(X,J,L){this.publish("ctmp",X,J,L)}; g.a.fE=function(X,J,L){this.publish("ctmpstr",X,J,L)}; g.a.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.a.getGetAdBreakContext=function(X,J){X=X===void 0?NaN:X;J=J===void 0?NaN:J;var L={isSabr:dN(this)},x,Q=(x=this.getHeartbeatResponse())==null?void 0:x.adBreakHeartbeatParams;Q&&(L.adBreakHeartbeatParams=Q);if(this.Y("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.L&&!isNaN(X)&&!isNaN(J)){J=X-J;for(var K in this.L.L)if(x=this.L.L[K],x.info.JO()||x.info.g2())if(x=x.index,x.isLoaded()){K=x.P5(J);x=x.L3(K)+J-x.getStartTime(K);this.Ni("gabc",{t:X.toFixed(3),mt:J.toFixed(3),sg:K,igt:x.toFixed(3)}); L.livePlaybackPosition={utcTimeMillis:""+(x*1E3).toFixed(0)};break}}return L}; g.a.isEmbedsShortsMode=function(X,J){if(!g.lb(this.TH)||(this.TH.FE||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||J)return!1;var L,x;return!!(((L=this.embeddedPlayerConfig)==null?0:(x=L.embeddedPlayerFlags)==null?0:x.isShortsExperienceEligible)&&X.width<=X.height)}; g.a.uB=function(){g.Ly.prototype.uB.call(this);this.ag=null;delete this.Dl;delete this.accountLinkingConfig;delete this.L;this.N=this.aJ=this.playerResponse=this.Bl=null;this.YU=this.adaptiveFormats="";delete this.botguardData;this.J0=this.suggestions=this.h4=null;this.sabrContextUpdates.clear()};var Fum={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},lWR={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},fWm={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},j8e={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"},GQm={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},Tav={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"},e5z={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.w(VT,g.G);g.a=VT.prototype;g.a.handleExternalCall=function(X,J,L){var x=this.state.W[X],Q=this.state.S[X],K=x;if(Q)if(L&&GG(L,ED0))K=Q;else if(!x)throw Error('API call from an untrusted origin: "'+L+'"');this.logApiCall(X,L);if(K){L=!1;x=g.d(J);for(Q=x.next();!Q.done;Q=x.next())if(String(Q.value).includes("javascript:")){L=!0;break}L&&g.PM(Error('Dangerous call to "'+X+'" with ['+J+"]."));return K.apply(this,J)}throw Error('Unknown API method: "'+X+'".');}; g.a.logApiCall=function(X,J,L){var x=this.app.G();x.QN&&!this.state.D.has(X)&&(this.state.D.add(X),g.QK("webPlayerApiCalled",{callerUrl:x.loaderUrl,methodName:X,origin:J||void 0,playerStyle:x.playerStyle||void 0,embeddedPlayerMode:x.FE,errorCode:L}))}; g.a.publish=function(X){var J=g.fR.apply(1,arguments);this.state.N.publish.apply(this.state.N,[X].concat(g.nR(J)));if(X==="videodatachange"||X==="resize"||X==="cardstatechange")this.state.K.publish.apply(this.state.K,[X].concat(g.nR(J))),this.state.T.publish.apply(this.state.T,[X].concat(g.nR(J)))}; g.a.GH=function(X){var J=g.fR.apply(1,arguments);this.state.N.publish.apply(this.state.N,[X].concat(g.nR(J)));this.state.K.publish.apply(this.state.K,[X].concat(g.nR(J)))}; g.a.Xv=function(X){var J=g.fR.apply(1,arguments);this.state.N.publish.apply(this.state.N,[X].concat(g.nR(J)));this.state.K.publish.apply(this.state.K,[X].concat(g.nR(J)));this.state.T.publish.apply(this.state.T,[X].concat(g.nR(J)))}; g.a.EM=function(X){var J=g.fR.apply(1,arguments);this.state.N.publish.apply(this.state.N,[X].concat(g.nR(J)));this.state.K.publish.apply(this.state.K,[X].concat(g.nR(J)));this.state.T.publish.apply(this.state.T,[X].concat(g.nR(J)));this.state.j.publish.apply(this.state.j,[X].concat(g.nR(J)))}; g.a.Y=function(X){return this.app.G().Y(X)}; g.a.uB=function(){if(this.state.element){var X=this.state.element,J;for(J in this.state.L)this.state.L.hasOwnProperty(J)&&(X[J]=null);this.state.element=null}g.G.prototype.uB.call(this)};g.w(tz,g.uc);tz.prototype.publish=function(X){var J=g.fR.apply(1,arguments);if(this.j.has(X))return this.j.get(X).push(J),!0;var L=!1;try{for(J=[J],this.j.set(X,J);J.length;)L=g.uc.prototype.publish.call.apply(g.uc.prototype.publish,[this,X].concat(g.nR(J.shift())))}finally{this.j.delete(X)}return L};g.w(dB,g.G);dB.prototype.uB=function(){this.j.dispose();this.T.dispose();this.K.dispose();this.N.dispose();this.D=this.L=this.S=this.W=this.B=void 0};var kQA=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.w(oq,VT);g.a=oq.prototype;g.a.getApiInterface=function(){return Array.from(this.state.B)}; g.a.rK=function(X,J){this.state.j.subscribe(X,J)}; g.a.hzl=function(X,J){this.state.j.unsubscribe(X,J)}; g.a.getPlayerState=function(X){return r7Y(this.app,X)}; g.a.PF=function(){return r7Y(this.app)}; g.a.xQ6=function(X,J,L){P9(this)&&(FE(this.app,!0,1),BA(this.app,X,J,L,1))}; g.a.getCurrentTime=function(X,J,L){var x=this.getPlayerState(X);if(this.app.getAppState()===2&&x===5){var Q;return((Q=this.app.getVideoData())==null?void 0:Q.startSeconds)||0}return this.Y("web_player_max_seekable_on_ended")&&x===0?r8(this.app,X):X?this.app.getCurrentTime(X,J,L):this.app.getCurrentTime(X)}; g.a.Dz=function(){return this.app.getCurrentTime(1)}; g.a.Lh=function(){var X=this.app.L3(1);return isNaN(X)?this.getCurrentTime(1):X}; g.a.RH=function(){return this.app.getDuration(1)}; g.a.zW=function(X,J){X=g.fW(Math.floor(X),0,100);isFinite(X)&&WA(this.app,{volume:X,muted:this.isMuted()},J)}; g.a.ltH=function(X){this.zW(X,!1)}; g.a.Yv=function(X){WA(this.app,{muted:!0,volume:this.getVolume()},X)}; g.a.gql=function(){this.Yv(!1)}; g.a.e3=function(X){Sy(this.app)&&!this.Y("embeds_enable_emc3ds_muted_autoplay")||WA(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},X)}; g.a.oME=function(){Sy(this.app)&&this.Y("embeds_enable_emc3ds_muted_autoplay")||this.e3(!1)}; g.a.getPlayerMode=function(){var X={};this.app.getVideoData().UM&&(X.pfp={enableIma:g.$F(this.app.getVideoData())&&this.app.mY().allowImaMonetization,autoplay:Av(this.app.mY()),mutedAutoplay:this.app.mY().mutedAutoplay});return X}; g.a.cW=function(){var X=this.app.getPresentingPlayerType();if(X===2&&!this.app.cO()){var J=pi(this.app.h_());if(!(veC(J)||g.lb(this.app.G())&&g.N(this.app.nm().getPlayerState(),1024))||jzV(J))return}(J=this.app.Qe().kW)?J.playVideo():this.app.playVideo(X)}; g.a.oiB=function(){FE(this.app,!0,1);this.cW()}; g.a.pauseVideo=function(X){var J=this.app.getPresentingPlayerType();if(J!==2||this.app.cO()||veC(pi(this.app.h_()))){var L=this.app.Qe().kW;L?L.pauseVideo():this.app.pauseVideo(J,X)}}; g.a.kcE=function(){var X=this.app,J=!1;X.m9.t_&&(X.IB.publish("pageTransition"),J=!0);X.stopVideo(J)}; g.a.clearVideo=function(){}; g.a.getAvailablePlaybackRates=function(){var X=this.app.G();return X.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(X.T?X.ancestorOrigins[0]:window.location.origin)||X.IC?QWe:X.supportsVarispeedExtendedFeatures?K93:X.Y("web_remix_allow_up_to_3x_playback_rate")&&g.ze(X)?q9H:pZ:[1]}; g.a.getPlaybackQuality=function(X){return(X=this.app.zK(X))?X.getPlaybackQuality():"unknown"}; g.a.OYl=function(){}; g.a.getAvailableQualityLevels=function(X){return(X=this.app.zK(X))?(X=g.H5(X.qX(),function(J){return J.quality}),X.length&&(X[0]==="auto"&&X.shift(),X=X.concat(["auto"])),X):[]}; g.a.tf=function(){return this.getAvailableQualityLevels(1)}; g.a.FT=function(){return this.bI()}; g.a.zP=function(){return 1}; g.a.getVideoLoadedFraction=function(X){return this.app.getVideoLoadedFraction(X)}; g.a.bI=function(){return this.getVideoLoadedFraction()}; g.a.vF=function(){return 0}; g.a.getSize=function(){var X=this.app.t0().getPlayerSize();return{width:X.width,height:X.height}}; g.a.setSize=function(){this.app.t0().resize()}; g.a.loadVideoById=function(X,J,L,x){if(!X)return!1;X=u0(X,J,L);return this.app.loadVideoByPlayerVars(X,x)}; g.a.SU=function(X,J,L){X=this.loadVideoById(X,J,L,1);FE(this.app,X,1)}; g.a.cueVideoById=function(X,J,L,x){X=u0(X,J,L);this.app.cueVideoByPlayerVars(X,x)}; g.a.Sm=function(X,J,L){this.cueVideoById(X,J,L,1)}; g.a.loadVideoByUrl=function(X,J,L,x){X=ma8(X,J,L);return this.app.loadVideoByPlayerVars(X,x)}; g.a.Oa=function(X,J,L){X=this.loadVideoByUrl(X,J,L,1);FE(this.app,X,1)}; g.a.cueVideoByUrl=function(X,J,L,x){X=ma8(X,J,L);this.app.cueVideoByPlayerVars(X,x)}; g.a.Op=function(X,J,L){this.cueVideoByUrl(X,J,L,1)}; g.a.Zu=function(){var X=this.app.G();if(X.aB)return"";var J=this.app.mY(),L=void 0;J.isLivePlayback||(L=Math.floor(this.app.getCurrentTime(1)));return X.getVideoUrl(J.videoId,this.getPlaylistId()||void 0,L)}; g.a.r4=function(){return this.app.getDebugText()}; g.a.getVideoEmbedCode=function(){var X=this.app.G();if(X.aB)return"";var J=this.app.mY();return X.getVideoEmbedCode(J.isPrivate?"":J.title,this.app.mY().videoId,this.app.t0().getPlayerSize(),this.getPlaylistId()||void 0)}; g.a.DD=function(X,J,L){return lTP(this.app,X,J,L)}; g.a.removeCueRange=function(X){return this.app.d_(X)}; g.a.loadPlaylist=function(X,J,L,x){this.app.loadPlaylist(X,J,L,x)}; g.a.n_=function(X,J,L,x){this.loadPlaylist(X,J,L,x);FE(this.app,!0,1)}; g.a.cuePlaylist=function(X,J,L,x){this.app.cuePlaylist(X,J,L,x)}; g.a.nextVideo=function(X,J){this.app.nextVideo(X,J)}; g.a.F9C=function(){this.nextVideo();FE(this.app,!0,1)}; g.a.previousVideo=function(X){this.app.previousVideo(X)}; g.a.XvM=function(){this.previousVideo();FE(this.app,!0,1)}; g.a.playVideoAt=function(X){this.app.playVideoAt(X)}; g.a.Jjq=function(X){this.playVideoAt(X);FE(this.app,!0,1)}; g.a.setShuffle=function(X){var J=this.app.getPlaylist();J&&J.setShuffle(X)}; g.a.setLoop=function(X){var J=this.app.getPlaylist();J&&(J.loop=X)}; g.a.TP=function(){var X=this.app.getPlaylist();if(!X)return null;for(var J=[],L=0;L=400)if(X=this.mY(),this.Z.G().Y("client_respect_autoplay_switch_button_renderer"))X=!!X.autoplaySwitchButtonRenderer;else{var J,L,x,Q;X=!!((J=X.getWatchNextResponse())==null?0:(L=J.contents)==null?0:(x=L.twoColumnWatchNextResults)==null?0:(Q=x.autoplay)==null?0:Q.autoplay)!==!1}if(X)this.L||(this.L=!0,this.LO(this.L),this.Z.G().Y("web_player_autonav_toggle_always_listen")||ttA(this), J=this.mY(),this.py(J.autonavState),this.Z.logVisibility(this.element,this.L));else if(this.L=!1,this.LO(this.L),!this.Z.G().Y("web_player_autonav_toggle_always_listen"))for(this.Z.G().Y("web_player_autonav_toggle_always_listen"),J=g.d(this.K),L=J.next();!L.done;L=J.next())this.VO(L.value)}; g.a.py=function(X){ufm(this)?this.isChecked=X!==1:((X=X!==1)||(g.v2(),X=g.VQ("web_autonav_allow_off_by_default")&&!g.jf(0,141)&&g.ly("AUTONAV_OFF_BY_DEFAULT")?!1:!g.jf(0,140)),this.isChecked=X);dtO(this)}; g.a.onClick=function(){this.isChecked=!this.isChecked;this.Z.tG(this.isChecked?2:1);dtO(this);if(ufm(this)){var X=this.mY().autoplaySwitchButtonRenderer;this.isChecked&&(X==null?0:X.onEnabledCommand)?this.Z.GH("innertubeCommand",X.onEnabledCommand):!this.isChecked&&(X==null?0:X.onDisabledCommand)&&this.Z.GH("innertubeCommand",X.onDisabledCommand)}this.Z.logClick(this.element)}; g.a.getValue=function(){return this.isChecked}; g.a.mY=function(){return this.Z.getVideoData(1)};g.w(o5A,KG);g.w(M6,g.LG);M6.prototype.onClick=function(){this.enabled&&(yv(this,!this.checked),this.publish("select",this.checked))}; M6.prototype.getValue=function(){return this.checked}; M6.prototype.setEnabled=function(X){(this.enabled=X)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var H0=["en-CA","en","es-MX","fr-CA"];g.w(dv,M6);dv.prototype.Wl=function(X){X?this.L||(this.uh.EA(this),this.L=!0):this.L&&(this.uh.xM(this),this.L=!1);this.L&&yv(this,jAZ())}; dv.prototype.T=function(){g.Qd(this.element,"ytp-menuitem-highlight-transition-enabled")}; dv.prototype.N=function(X){var J=jAZ();X!==J&&(J=g.v2(),Gb(190,X),Gb(192,!0),J.save(),this.Z.GH("cinematicSettingsToggleChange",X))}; dv.prototype.uB=function(){this.L&&this.uh.xM(this);M6.prototype.uB.call(this)};g.w(ua,KG);ua.prototype.updateCinematicSettings=function(X){this.L=X;var J;(J=this.menuItem)==null||J.Wl(X);this.api.publish("onCinematicSettingsVisibilityChange",X)};g.w(E58,KG);g.w(oj,KG);oj.prototype.setCreatorEndscreenVisibility=function(X){var J;(J=Tg(this.api.h_()))==null||J.LO(X)}; oj.prototype.L=function(X){function J(x){x==="creatorendscreen"&&(x=Tg(L.api.h_()))&&x.GKm(L.hideButton)} var L=this;this.hideButton=X;this.events.J(this.api,"modulecreated",J);J("creatorendscreen")};g.w(ba,M6);ba.prototype.T=function(X){this.N(X?1:0)}; ba.prototype.K=function(){var X=this.hasDrcAudioTrack(),J=this.L()===1&&X;yv(this,J);this.setEnabled(X)}; ba.prototype.uB=function(){this.uh.xM(this);M6.prototype.uB.call(this)};g.w(SZ,KG);SZ.prototype.getDrcUserPreference=function(){return this.L}; SZ.prototype.setDrcUserPreference=function(X){g.El("yt-player-drc-pref",X,31536E3);X!==this.L&&(this.L=X,this.updateEnvironmentData(),this.K()&&this.api.O1())}; SZ.prototype.updateEnvironmentData=function(){this.api.G().HO=this.L===1}; SZ.prototype.K=function(){var X,J,L=(X=this.api.getVideoData())==null?void 0:(J=X.N)==null?void 0:J.L;if(!L)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.Y("mta_drc_mutual_exclusion_removal")){var x,Q,K=(x=this.api.qO())==null?void 0:(Q=x.OH)==null?void 0:Q.id;return Fe(L,function(q){var D;return q.audio.L&&((D=q.OH)==null?void 0:D.id)===K})}return Fe(L,function(q){var D; return((D=q.audio)==null?void 0:D.L)===!0})};g.w(P0,KG);P0.prototype.onVideoDataChange=function(){var X=this,J=this.api.getVideoData();this.api.Q0("embargo",1);var L=J==null?void 0:J.kP.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(L==null?0:L.length)?hqY(this,L.filter(function(x){return YpA(X,x)})):(J==null?0:J.cueRanges)&&hqY(this,J.cueRanges.filter(function(x){return YpA(X,x)}))}; P0.prototype.K=function(X){return X.embargo!==void 0}; P0.prototype.uB=function(){KG.prototype.uB.call(this);this.L={}};g.w(c0,KG); c0.prototype.addEmbedsConversionTrackingParams=function(X){var J=this.api.G(),L=J.widgetReferrer,x=J.YF,Q=this.L,K="",q=J.getWebPlayerContextConfig();q&&(K=q.embedsIframeOriginParam||"");L.length>0&&(X.embeds_widget_referrer=L);x.length>0&&(X.embeds_referring_euri=x);J.T&&K.length>0&&(X.embeds_referring_origin=K);q&&q.embedsFeature&&(X.feature=q.embedsFeature);Q.length>0&&(J.Y("embeds_web_enable_lite_experiment_control_arm_logging")?Q.unshift(28572):g.qk(g.AY(J))&&Q.unshift(159628),J=Q.join(","),J= g.fU()?J:g.P5(J,4),X.source_ve_path=J);this.L.length=0};g.w(zqA,KG);g.w(WXY,KG);g.w(E0,g.G);E0.prototype.uB=function(){g.G.prototype.uB.call(this);this.L=null;this.K&&this.K.disconnect()};g.w(rle,KG);g.w(Yd,g.R);Yd.prototype.show=function(){g.R.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; Yd.prototype.stopTimer=function(){this.L&&(this.L.dispose(),this.L=null)}; Yd.prototype.onVideoDataChange=function(X){var J,L,x=(J=this.api.getVideoData())==null?void 0:(L=J.getPlayerResponse())==null?void 0:L.playabilityStatus;x&&(J=v5S(x),g.N(this.api.getPlayerStateObject(),128)||X==="dataloaderror"||!J?(this.K=0,this.stopTimer(),this.hide()):(X=(J.remainingTimeSecs||0)*1E3,X>0&&(this.show(),this.updateValue("label",et(J.label)),TKA(this,X))))}; Yd.prototype.uB=function(){this.stopTimer();g.R.prototype.uB.call(this)};g.w(G6e,KG);g.w(hZ,g.R);hZ.prototype.onClick=function(){this.IB.logClick(this.element);this.IB.GH("onFullerscreenEduClicked")}; hZ.prototype.Wl=function(){this.IB.isFullscreen()?this.L?this.fade.hide():this.fade.show():this.hide();this.IB.logVisibility(this.element,this.IB.isFullscreen()&&!this.L)};g.w(z7,KG);z7.prototype.updateFullerscreenEduButtonSubtleModeState=function(X){var J;(J=this.L)!=null&&(g.q8(J.element,"ytp-fullerscreen-edu-button-subtle",X),X&&!J.K&&(J.element.setAttribute("title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"),W9(J.IB,J.element,J),J.K=!0))}; z7.prototype.updateFullerscreenEduButtonVisibility=function(X){var J;(J=this.L)!=null&&(J.L=X,J.Wl())};g.w(fYY,g.R);g.w(lYY,KG);g.w(W0,KG);W0.prototype.getSphericalProperties=function(){var X=g.ey(this.api.h_());return X?X.getSphericalProperties():{}}; W0.prototype.setSphericalProperties=function(X){if(X){var J=g.ey(this.api.h_());J&&J.setSphericalProperties(X,!0)}};g.w(pG,KG);g.a=pG.prototype;g.a.createClientVe=function(X,J,L,x){this.api.createClientVe(X,J,L,x===void 0?!1:x)}; g.a.createServerVe=function(X,J,L){this.api.createServerVe(X,J,L===void 0?!1:L)}; g.a.setTrackingParams=function(X,J){this.api.setTrackingParams(X,J)}; g.a.logClick=function(X,J){this.api.logClick(X,J)}; g.a.logVisibility=function(X,J,L){this.api.logVisibility(X,J,L)}; g.a.hasVe=function(X){return this.api.hasVe(X)}; g.a.destroyVe=function(X){this.api.destroyVe(X)};var BKz=!1;v0.prototype.setPlaybackRate=function(X){this.playbackRate=Math.max(1,X)}; v0.prototype.getPlaybackRate=function(){return this.playbackRate};eZ.prototype.d1=function(X){var J=g.fv(X.info.L.info,this.Yq.Zw),L=X.info.Vl+this.T,x=X.info.startTime*1E3;if(this.policy.SC)try{x=this.policy.SC?g.up(X)*1E3:X.info.startTime*1E3}catch(q){Math.random()>.99&&this.logger&&(x=D1(X.K).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:X.info.gQ(),encodedDataView:g.S3(x,4)})),x=X.info.startTime*1E3}var Q=X.info.clipId,K=this.policy.SC?g.kao(X)*1E3:X.info.duration*1E3;this.policy.SC&&(x<0||K<0)&&(this.logger&&(this.logger({missingSegInfo:X.info.gQ(), startTimeMs:x,durationMs:K}),this.policy.eQ||(x<0&&(x=X.info.startTime*1E3),K<0&&(K=X.info.duration*1E3))),this.policy.eQ&&(x<0&&(x=X.info.startTime*1E3),K<0&&(K=X.info.duration*1E3)));return{formatId:J,Vl:L,startTimeMs:x,clipId:Q,LZ:K}}; eZ.prototype.aC=function(X){this.timestampOffset=X};FB.prototype.seek=function(X,J){X!==this.L&&(this.seekCount=0);this.L=X;var L=this.videoTrack.K,x=this.audioTrack.K,Q=this.audioTrack.je,K=DuY(this,this.videoTrack,X,this.videoTrack.je,J);J=DuY(this,this.audioTrack,this.policy.jk?X:K,Q,J);X=Math.max(X,K,J);this.j=!0;this.Yq.isManifestless&&(QbA(this,this.videoTrack,L),QbA(this,this.audioTrack,x));return X}; FB.prototype.isSeeking=function(){return this.j}; FB.prototype.C9=function(X){this.N=X}; var gae=2/24;var Mom=0;g.a=Xn.prototype;g.a.oR=function(){this.D=this.now();qzY(this.zi,this.D);this.P4.oR()}; g.a.aG=function(X,J){var L=this.policy.K?(0,g.uT)():0;JQ(this,X,J);X-this.B<10&&this.K>0||this.d6(X,J);this.P4.aG(X,J);this.policy.K&&(X=(0,g.uT)()-L,this.z6+=X,this.Cm=Math.max(X,this.Cm))}; g.a.d6=function(X,J){var L=(X-this.B)/1E3,x=J-this.N;this.Hu||(p0(this.zi,L,x),this.e4(L,x));this.B=X;this.N=J}; g.a.rJ=function(){this.FE&&yWm(this);this.P4.rJ()}; g.a.Li=function(X){this.FE||(this.FE=this.j-this.If+X,this.t_=this.j,this.XX=this.W)}; g.a.Gp=function(X,J){X=X===void 0?this.W:X;J=J===void 0?this.j:J;this.K>0||(this.S=X,this.K=J,this.Km=this.isActive=!0)}; g.a.Dj=function(){return this.vD||2}; g.a.R1=function(){}; g.a.wU=function(){var X,J={rn:this.requestNumber,rt:(this.W-this.L).toFixed(),lb:this.j,stall:(1E3*this.T).toFixed(),ht:(this.D-this.L).toFixed(),elt:(this.S-this.L).toFixed(),elb:this.K,d:(X=this.gI)==null?void 0:X.DH()};this.url&&Rqe(J,this.url);this.policy.K&&(J.mph=this.Cm.toFixed(),J.tph=this.z6.toFixed());J.ulb=this.Bl;J.ult=this.aB;return J}; g.a.now=function(){return(0,g.uT)()}; g.a.deactivate=function(){this.isActive&&(this.isActive=!1)};g.w(xX,Xn);g.a=xX.prototype;g.a.wU=function(){var X=Xn.prototype.wU.call(this);X.pb=this.Em;X.pt=(1E3*this.A0).toFixed();X.se=this.sH;return X}; g.a.xd=function(){var X=this.P4;this.SC||(this.SC=X.xd?X.xd():1);return this.SC}; g.a.uY=function(){return this.Yc?this.xd()!==1:!1}; g.a.tT=function(X,J,L){if(!this.H4){this.H4=!0;if(!this.Hu){JQ(this,X,J);this.d6(X,J);var x=this.xd();this.sH=L;if(!this.Hu)if(x===2){x=X-this.S0)||iN(this,x,J),this.K>0&&zl(this.zi,J,this.T));X=(X-this.L)/ 1E3||.01;this.policy.S&&!(this.K>0)||hY(this.zi,X,this.N,VoZ(this),this.z0)}this.deactivate()}}; g.a.xG=function(X,J,L){L&&(this.SC=2);X<0&&this.vD&&(X=this.vD);J?this.bB+=X:this.Hl+=X}; g.a.Dj=function(){return this.Hl||this.bB||Xn.prototype.Dj.call(this)}; g.a.d6=function(X,J){var L=(X-this.B)/1E3,x=J-this.N,Q=this.xd();this.isActive?Q===1&&((x>0||this.policy.j)&&(L>.2||x<1024)?(this.T+=L,x>0&&L>.2&&iN(this,this.dg?L:.05,x),this.Lp=!0):x>0&&(iN(this,L,x),this.Lp=!0)):J&&J>=this.policy.L&&this.Gp(X,J);Xn.prototype.d6.call(this,X,J)}; g.a.bG=function(X){if(!this.Hu){JQ(this,X,this.j);var J=(X-this.L)/1E3;this.xd()!==2&&this.K>0&&(this.T+=(X-this.B)/1E3,zl(this.zi,this.N,this.T));hY(this.zi,J,this.N,VoZ(this),this.z0,!0);X=(X-this.B)/1E3;p0(this.zi,X,0);this.e4(X,0)}}; g.a.Gp=function(X,J){X=X===void 0?this.W:X;J=J===void 0?this.j:J;if(!(this.K>0)&&(Xn.prototype.Gp.call(this,X,J),this.xd()===1)){J=(this.D-this.L)/1E3;var L=(X-this.D)/1E3;this.Yc&&Qz(this,this.now());this.Nx||this.Hu||(this.vD&&(L=Math.max(0,L-this.vD)),X=this.zi,X.S.US(1,J),X.gI.US(1,L))}}; g.a.HC=function(){this.Yc&&Qz(this,this.now());return this.jC}; g.a.XO=function(){var X;if(X=this.N>this.nK)X=(X=this.N)?X>=this.policy.L:!1;return X}; g.a.iQ=function(){return this.J0}; g.a.f9=function(X){X=X===void 0?this.now():X;if(this.Yc){Qz(this,X);if(this.SC?this.uY():this.Pl!==this.vl){var J=this.vl;if(X0?L+X:L+Math.max(X,J)}; g.a.S_=function(){return this.now()-this.S}; g.a.T3=function(){return(this.N-this.K)*1E3/this.S_()||0}; g.a.p5=function(){return this.S};Kn.prototype.feed=function(X){Qm(this.L,X);this.w0()}; Kn.prototype.w0=function(){if(this.T){if(!this.L.totalLength)return;var X=this.L.split(this.N-this.K),J=X.YK;X=X.SR;if(!this.P4.Li(this.T,J,this.K,this.N))return;this.K+=J.totalLength;this.L=X;this.K===this.N&&(this.T=this.N=this.K=void 0)}for(;;){var L=0;X=g.d(wKP(this.L,L));J=X.next().value;L=X.next().value;L=g.d(wKP(this.L,L));X=L.next().value;L=L.next().value;if(J<0||X<0)break;if(!(L+X<=this.L.totalLength)){if(!(this.P4.Li&&L+1<=this.L.totalLength))break;L=this.L.split(L).SR;this.P4.Li(J,L,0, X)&&(this.T=J,this.K=L.totalLength,this.N=X,this.L=new iE([]));break}X=this.L.split(L).SR.split(X);L=X.SR;this.P4.DO(J,X.YK);this.L=L}}; Kn.prototype.dispose=function(){this.L=new iE};g.a=qU.prototype;g.a.CM=function(){return 0}; g.a.O0=function(){return null}; g.a.QG=function(){return null}; g.a.Kj=function(){return this.state>=1}; g.a.isComplete=function(){return this.state>=3}; g.a.EY=function(){return this.state===5}; g.a.onStateChange=function(){}; g.a.UA=function(X){var J=this.state;this.state=X;this.onStateChange(J);this.callback&&this.callback(this,J)}; g.a.O9=function(X){X&&this.state=this.xhr.HEADERS_RECEIVED}; g.a.getResponseHeader=function(X){try{return this.xhr.getResponseHeader(X)}catch(J){return""}}; g.a.vH=function(){return+this.getResponseHeader("content-length")}; g.a.ut=function(){return this.K}; g.a.cz=function(){return this.status>=200&&this.status<300&&!!this.K}; g.a.sy=function(){return this.L.totalLength>0}; g.a.ue=function(){var X=this.L;this.L=new iE;return X}; g.a.Vs=function(){return this.L}; g.a.abort=function(){this.E6=!0;this.xhr.abort()}; g.a.Nm=function(){return!0}; g.a.JG=function(){return this.N}; g.a.N2=function(){return""};g.a=oaR.prototype;g.a.getResponseHeader=function(X){return X==="content-type"?this.L.get("type"):""}; g.a.abort=function(){}; g.a.e5=function(){return!0}; g.a.vH=function(){return this.range.length}; g.a.ut=function(){return this.loaded}; g.a.cz=function(){return!!this.loaded}; g.a.sy=function(){return!!this.K.totalLength}; g.a.ue=function(){var X=this.K;this.K=new iE;return X}; g.a.Vs=function(){return this.K}; g.a.Nm=function(){return!0}; g.a.JG=function(){return!!this.error}; g.a.N2=function(){return this.error};g.a=S_W.prototype;g.a.start=function(X){var J={credentials:"include",cache:"no-store"};Object.assign(J,this.W);this.T&&(J.signal=this.T.signal);X=new Request(X,J);fetch(X).then(this.D,this.onError).then(void 0,iT)}; g.a.onDone=function(){this.E6()||this.P4.rJ()}; g.a.getResponseHeader=function(X){return this.responseHeaders?this.responseHeaders.get(X):null}; g.a.e5=function(){return!!this.responseHeaders}; g.a.ut=function(){return this.K}; g.a.vH=function(){return+this.getResponseHeader("content-length")}; g.a.cz=function(){return this.status>=200&&this.status<300&&!!this.K}; g.a.sy=function(){return!!this.L.totalLength}; g.a.ue=function(){var X=this.L;this.L=new iE;return X}; g.a.Vs=function(){return this.L}; g.a.E6=function(){return this.j}; g.a.abort=function(){this.N&&this.N.cancel().catch(function(){}); this.T&&this.T.abort();this.j=!0}; g.a.Nm=function(){return!0}; g.a.JG=function(){return this.B}; g.a.N2=function(){return this.errorMessage};g.a=PIz.prototype;g.a.onDone=function(){if(!this.E6){this.status=this.xhr.status;try{this.response=this.xhr.response,this.K=this.response.byteLength}catch(X){}this.L=!0;this.P4.rJ()}}; g.a.XJ=function(){this.xhr.readyState===2&&this.P4.oR()}; g.a.HD=function(X){this.E6||(this.status=this.xhr.status,this.L||(this.K=X.loaded),this.P4.aG((0,g.uT)(),X.loaded))}; g.a.e5=function(){return this.xhr.readyState>=2}; g.a.getResponseHeader=function(X){try{return this.xhr.getResponseHeader(X)}catch(J){return g.PM(Error("Could not read XHR header "+X)),""}}; g.a.vH=function(){return+this.getResponseHeader("content-length")}; g.a.ut=function(){return this.K}; g.a.cz=function(){return this.status>=200&&this.status<300&&this.L&&!!this.K}; g.a.sy=function(){return this.L&&!!this.response&&!!this.response.byteLength}; g.a.ue=function(){var X=this.response;this.response=void 0;return new iE([new Uint8Array(X)])}; g.a.Vs=function(){return new iE([new Uint8Array(this.response)])}; g.a.abort=function(){this.E6=!0;this.xhr.abort()}; g.a.Nm=function(){return!1}; g.a.JG=function(){return!1}; g.a.N2=function(){return""};g.w(D2,g.G);D2.prototype.bW=function(){if(!this.sM.length)return[];var X=this.sM;this.sM=[];this.N=g.V0(X).info;return X}; D2.prototype.uy=function(){return this.sM}; D2.prototype.uB=function(){g.G.prototype.uB.call(this);this.L=null;this.sM.length=0;this.eC.length=0;this.N=null};g.w(Cn,g.G);g.a=Cn.prototype; g.a.gUI=function(){if(!this.E6()){var X=(0,g.uT)(),J=!1;if(this.policy.X7){X=X-(this.timing.K>0?this.timing.S:this.timing.L)-this.timing.Dj()*1E3;var L=Tn(MU(this),!1);X>=2E3*L?J=!0:X>=this.policy.mP*L&&(this.L=this.policy.e1)}else if(this.timing.K>0){if(this.j){this.policy.t_&&(this.L=0);return}var x=this.timing.iQ();this.timing.f9();var Q=this.timing.iQ();Q-x>=this.policy.o2*.8?(this.L++,this.logger.debug(function(){return"Mispredicted by "+(Q-x).toFixed(0)}),J=this.L>=5):this.L=0}else{var K=X- this.timing.HC(); this.policy.e1&&K>0&&(this.L+=1);J=Tn(MU(this),!1)*this.policy.gC;(J=K>J*1E3)&&this.logger.debug(function(){return"Elbow late by "+K.toFixed(3)})}this.L>0&&this.P4.xQ(); J?this.P2():this.K.start()}}; g.a.P2=function(){this.T=!0;this.P4.CS();this.lastError="net.timeout";nn(this)}; g.a.canRetry=function(X){var J=MU(this);X=X?this.policy.qD:this.policy.Uv;return J.timedOut0&&(J=$y(J.L,0),X.ubyte=J,L===1&&J===0&&(X.b248180278=!0))}this.q2&&(X.rc=this.policy.M9?this.q2:this.q2.toString());this.policy.YF&&this.vL&&(X.tr=this.vL);X.itag=this.info.eC[0].L.info.itag;X.ml=""+ +this.info.eC[0].L.Fy();X.sq=""+this.info.eC[0].Vl;this.Pv&&(X.ifi=""+ +Nu(this.info.T6.K));this.q2!==410&&this.q2!==500&&this.q2!==503||(X.fmt_unav="true");var x;(L=this.errorMessage||((x=this.xhr)==null?void 0: x.N2()))&&(X.msg=L);this.gj&&(X.smb="1");this.info.isDecorated()&&(X.sdai="1");return X}; g.a.Ty=function(){return He8(this.timing)}; g.a.N2=function(){return this.xhr.N2()||""}; g.a.XO=function(){return this.isComplete()||this.timing.XO()}; g.a.aG=function(){!this.E6()&&this.xhr&&(this.q2=this.xhr.status,this.policy.Ts&&this.PD&&this.kZ(!1),this.jQ()?this.O9(2):!this.Ny&&this.XO()&&(this.O9(),this.Ny=!0))}; g.a.oR=function(){if(!this.E6()&&this.xhr){if(!this.hI&&this.xhr.e5()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var X=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.hI=((0,g.uT)()-X)/1E3}this.xhr.e5()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Ak&&!Xy8()&&g.El("yt-player-headers-readable",!0,2592E3);X=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var J=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),L;(L=this.Zd)==null||L.stop();this.lT=X||this.lT; this.f$=J||this.f$}}; g.a.rJ=function(){var X=this.xhr;if(!this.E6()&&X){this.q2=X.status;X=this.o3(X);if(this.policy.YF){var J;(J=this.Zd)==null||J.stop()}X===5?nn(this.j7):this.UA(X);this.j7.K.stop()}}; g.a.o3=function(X){var J=this;I9e(this);if(Vz(this.j7,this.xhr.status,this.Vp?this.timing.Km||this.Oe:this.xhr.cz(),!1,this.lC))return 5;var L="";HE(this.j7,this.xhr)&&(L=WsZ(this.j7,this.xhr));if(L)return jU(MU(this.j7)),this.info.fA(this.Pv,L),3;L=X.ut();if(this.Ml){this.kZ(!0);I9e(this);if(Vz(this.j7,this.xhr.status,this.timing.Km||this.Oe,!1,this.lC))return 5;if(!this.nX){if(this.Oe)return jU(MU(this.j7)),3;this.j7.lastError="net.closed";return 5}}else{if(Vz(this.j7,this.xhr.status,this.xhr.cz(), !1,this.lC))return 5;var x=this.info.N;if(x&&x!==L||X.JG())return this.j7.lastError="net.closed",5;this.kZ(!0)}x=toW(this)?X.getResponseHeader("X-Bandwidth-Est"):0;if(X=toW(this)?X.getResponseHeader("X-Bandwidth-Est3"):0)this.j9=!0,this.policy.Q3&&(x=X);hsA(this.j7,L,x?Number(x):0,this.info.eC[0].type===5);this.logger.debug(function(){var Q=J.timing;return"Succeeded, rtpd="+(Q.A0*1E3+Q.L-Date.now()).toFixed(0)}); return 4}; g.a.canRetry=function(){this.E6();var X=this.info.isDecorated();return this.j7.canRetry(X)}; g.a.onStateChange=function(){this.isComplete()&&(this.policy.bL?this.CS():this.timing.deactivate())}; g.a.P2=function(){this.j7.P2()}; g.a.xQ=function(){this.callback&&this.callback(this,this.state)}; g.a.HN=function(){return this.j7.HN()}; g.a.dispose=function(){qU.prototype.dispose.call(this);this.j7.dispose();var X;(X=this.Zd)==null||X.dispose();this.policy.bL||this.CS()}; g.a.CS=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.a.bW=function(){if(!this.uy().length)return[];this.nT=!0;return this.PD.bW()}; g.a.jQ=function(){if(this.state<1)return!1;if(this.PD&&this.PD.sM.length)return!0;var X;return((X=this.xhr)==null?0:X.sy())?!0:!1}; g.a.uy=function(){this.kZ(!1);return this.PD?this.PD.uy():[]}; g.a.kZ=function(X){try{if(X||this.xhr.e5()&&this.xhr.sy()&&!HE(this.j7,this.xhr)&&!this.RO)this.PD||(this.PD=new D2(this.policy,this.info.eC)),this.xhr.sy()&&(this.Ml?this.Ml.feed(this.xhr.ue()):$X(this.PD,this.xhr.ue(),X&&!this.xhr.sy()))}catch(J){this.Ml?Q0Z(this,J):g.PM(J)}}; g.a.DO=function(X,J){switch(X){case 21:X=J.split(1).SR;KAS(this,X);break;case 22:this.nX=!0;$X(this.PD,new iE([]),!0);break;case 43:if(X=bE(new a9(J),1))this.info.fA(this.Pv,X),this.Oe=!0;break;case 45:J=Mu(new a9(J));X=J.Il;J=J.H0;X&&J&&(this.cw=X/J);break;case 44:this.ZA=e4A(new a9(J));var L,x,Q;!this.timing.Km&&((L=this.ZA)==null?void 0:L.action)===4&&((x=this.ZA)==null?0:(Q=x.Q6)==null?0:Q.Vp)&&(this.Vp=this.ZA.Q6.Vp);break;case 53:this.policy.YF&&(X=TQm(new a9(J)).k_)&&(this.Zd||(this.k_=X,this.Zd= new g.sn(this.Z5,X,this)),this.Zd.start());break;case 60:this.j$=Ce(new a9(J));break;case 58:if(X=VNW(new a9(J)))this.oY=X,X.oY===3&&(this.lC=!0)}}; g.a.Li=function(X,J,L,x){L||this.timing.Li(x);if(X!==21)return!1;if(X=this.policy.Ts)if(X*=this.info.eC[0].L.info.DY,J.totalLength+L!==x&&J.totalLength0)return!1;if(!this.xhr.e5())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.Ml)var X=!this.info.N;else this.xhr.vH()?X=!1:(X=this.xhr.getResponseHeader("content-type"),X=X==="audio/mp4"||X==="video/mp4"||X==="video/webm");if(!X)return!1;if(isNaN(this.info.fn)){X=this.xhr.getResponseHeader("x-head-seqnum");var J=this.timing.policy.W?1:0;if(!X)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(X)>this.info.eC[0].Vl+J)return!1}return!0}; g.a.wM=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.a.O0=function(){this.xhr&&(this.lT=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.lT}; g.a.QG=function(){this.xhr&&(this.f$=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.f$}; g.a.J2=function(){return this.j7.J2()}; g.a.Z5=function(){if(!this.E6()&&this.xhr){this.vL="heartbeat";var X=this.j7;X.L+=2;this.xQ()}};g.w(bN,Xn);g.a=bN.prototype;g.a.d6=function(X,J){var L=(X-this.B)/1E3,x=J-this.N;this.K>0?x>0&&(this.Pl&&(L>.2||x<1024?(this.T+=L,L>.2&&gzm(this,.05,x)):gzm(this,L,x)),this.vl&&(this.jC+=x,this.Hl+=L)):J>this.policy.L&&this.Gp(X,J);Xn.prototype.d6.call(this,X,J)}; g.a.tT=function(X,J){JQ(this,X,J);this.d6(X,J);this.Pl&&(J=this.N*this.snapshot.stall+this.N/this.snapshot.byterate,this.K>0&&zl(this.zi,this.jC,this.T),X=(X-this.L)/1E3||.01,this.policy.S&&!(this.K>0)||hY(this.zi,X,this.N,J,!1))}; g.a.bG=function(X){JQ(this,X,this.j);var J=(X-this.B)/1E3;p0(this.zi,J,0);this.e4(J,0);!this.Pl&&this.K>0||(J=this.N*this.snapshot.stall+this.N/this.snapshot.byterate,this.K>0&&(this.T+=(X-this.B)/1E3,zl(this.zi,this.jC,this.T)),hY(this.zi,((X-this.L)/1E3||.01)*this.policy.Km,this.N,J,!1,!0))}; g.a.Lr=function(X){X=X.EP||2147483647;(X&2)!==2&&(this.vl=!1);(X&1)===1&&(this.Pl=!0)}; g.a.tX=function(X){X=X.EP||2147483647;(X&2)===2&&(this.vl=!1);(X&1)===1&&(this.Pl=!1)}; g.a.p5=function(){return this.S}; g.a.S_=function(){var X=this.vl?this.now()-this.B:0;return Math.max(this.Hl*1E3+X,1)}; g.a.T3=function(){return this.jC*1E3/this.S_()}; g.a.Gp=function(X,J){X=X===void 0?this.W:X;J=J===void 0?this.j:J;this.K>0||(Xn.prototype.Gp.call(this,X,J),J=this.zi,X=(X-this.D)/1E3,J.S.US(1,(this.D-this.L)/1E3),J.gI.US(1,X))}; g.a.R1=function(X){this.bB=X}; g.a.wU=function(){var X=Xn.prototype.wU.call(this);X.rbw=this.T3();X.rbe=+this.vl;X.gbe=+this.Pl;X.ackt=(this.bB-this.L).toFixed();return X}; g.a.f9=function(){}; g.a.iQ=function(){return NaN}; g.a.HC=function(){return this.L+this.snapshot.delay*1E3};S2.prototype.DO=function(X,J){switch(X){case 20:X=new a9(J);X={DC:dk(X,1),videoId:bE(X,2),itag:dk(X,3),lmt:dk(X,4),xtags:bE(X,5),E3:dk(X,6),G0:uE(X,8),Kq:dk(X,9),Mfi:dk(X,10),startMs:dk(X,11),durationMs:dk(X,12),Zo:dk(X,14),timeRange:SA(X,15,Zgm),JB:dk(X,16),sz:dk(X,17),clipId:bE(X,1E3)};this.w9(X);break;case 21:this.Fp(J,!1);break;case 22:this.FW(J);break;case 31:X=Es(J,YqP);this.HP(X);break;case 52:X=Es(J,GGv);this.Ce(X);break;default:this.KK(X,J)}}; S2.prototype.w9=function(){}; S2.prototype.KK=function(){};g.w(PE,S2);g.a=PE.prototype; g.a.KK=function(X,J){switch(X){case 35:this.wc(J);break;case 44:this.AX(J);break;case 43:this.d9(J);break;case 53:this.BW(J);break;case 55:X=new a9(J);SA(X,1,l7I);SA(X,2,swS);break;case 56:this.l0();break;case 57:this.pV(J);break;case 42:this.uS(J);break;case 45:this.Qo(J);break;case 59:this.DN(J);break;case 51:this.yk(J);break;case 49:this.Lr(J);break;case 50:this.tX(J);break;case 47:this.rH(J);break;case 58:this.UI(J);break;case 61:this.P4.AP.R1((0,g.uT)());break;case 66:this.Ki(J);break;case 46:this.XQ(J); break;case 67:this.onSnackbarMessage(J)}}; g.a.yk=function(X){X=new a9(X);X={sG0:cz(X,1,DP),biC:cz(X,2,DP)};this.P4.yk(X)}; g.a.DN=function(X){var J=new a9(X);X=Pz(J,1);var L=Pz(J,2);J=Pz(J,3);this.P4.DN(X,L,J)}; g.a.Qo=function(X){X=Mu(new a9(X));this.P4.Qo(X)}; g.a.rH=function(X){X=Es(X,WmZ);this.P4.rH(X)}; g.a.uS=function(X){X=new a9(X);X={videoId:bE(X,1),formatId:SA(X,2,DP),endTimeMs:dk(X,3),m8m:dk(X,4),mimeType:bE(X,5),qy:SA(X,6,oBI),indexRange:SA(X,7,oBI),b_:SA(X,8,bDz)};this.P4.uS(X)}; g.a.pV=function(X){X=swS(new a9(X));this.P4.pV(X)}; g.a.l0=function(){this.P4.l0()}; g.a.wc=function(X){X=h4P(new a9(X));this.P4.wc(X)}; g.a.BW=function(X){X=TQm(new a9(X));this.P4.BW(X)}; g.a.AX=function(X){X=e4A(new a9(X));this.P4.AX(X)}; g.a.d9=function(X){X={redirectUrl:bE(new a9(X),1)};this.P4.d9(X)}; g.a.Fp=function(X){var J=$y(X,0);if(X.totalLength!==1){X=X.split(1).SR;var L=this.K[J]||null;L&&pn(this.P4.CY,J,L,X)}}; g.a.FW=function(X){X=$y(X,0);var J=this.K[X]||null;J&&this.P4.FW(X,J)}; g.a.Ce=function(X){this.P4.Ce(X)}; g.a.w9=function(X){var J=X.DC,L=X.G0,x=X.E3,Q=X.sz,K=X.JB,q=X.Kq,D=X.startMs,C=X.durationMs,M=X.timeRange,y=X.Zo,n=X.clipId,V=Bx(X);X=RgI.has(Ec[""+X.itag]);this.K[J]=V;this.P4.xG(V,X,{DC:J,G0:!!L,E3:x!=null?x:-1,Kq:q!=null?q:-1,startMs:D!=null?D:-1,durationMs:C!=null?C:-1,Zo:y,sz:Q,JB:K,clipId:n,timeRange:M})}; g.a.Lr=function(X){X={EP:dk(new a9(X),1)};this.P4.Lr(X)}; g.a.tX=function(X){X={EP:dk(new a9(X),1)};this.P4.tX(X)}; g.a.HP=function(X){this.P4.HP(X)}; g.a.UI=function(X){X=VNW(new a9(X));this.P4.UI(X)}; g.a.Ki=function(X){X={DX:SA(new a9(X),1,vBe)};this.P4.Ki(X)}; g.a.onSnackbarMessage=function(X){X=dk(new a9(X),1);this.P4.onSnackbarMessage(X)}; g.a.XQ=function(X){X=new a9(X);X={reloadPlaybackParams:SA(X,1,nBz),yx:uE(X,2)};this.P4.XQ(X)};g.w(cE,g.G);g.a=cE.prototype;g.a.Yh=function(){return Array.from(this.xF.keys())}; g.a.Y4=function(X){X=this.xF.get(X);var J=X.sM;X.Lt+=J.totalLength;X.sM=new iE;return J}; g.a.eW=function(X){return this.xF.get(X).eW}; g.a.SH=function(X){return this.xF.get(X).SH}; g.a.xG=function(X,J,L,x){this.xF.get(X)||yeo(this,X,J);J=this.xF.get(X);if(this.Yq){X=VUZ(this,X,L);if(x)for(var Q=g.d(X),K=Q.next();!K.done;K=Q.next()){K=K.value;var q=x;K.aB=q;K.startTime+=q;K.T+=q;K.B+=q}nzm(this,L.DC,J,X)}else L.G0?J.jA=L.Zo:J.Ho.push(L),J.xm.push(L)}; g.a.Gm=function(X){var J;return((J=this.xF.get(X))==null?void 0:J.eC)||[]}; g.a.O9=function(){for(var X=g.d(this.xF.values()),J=X.next();!J.done;J=X.next())J=J.value,J.y_&&(J.HD&&J.HD(),J.y_=!1)}; g.a.FW=function(X,J){this.logger.debug(function(){return"[onMediaEnd] formatId: "+J}); var L=this.xF.get(J);EZ?L&&!L.eW&&(L.j1.get(X)?L.j1.get(X).eH=!0:L.j1.set(X,{data:new iE,t8:0,eH:!0}),L.SH=!0):L&&!L.SH&&(L.SH=!0)}; g.a.bW=function(X){if(EZ){var J=this.xF.get(X);if(J)for(var L=g.d(J.j1),x=L.next();!x.done;x=L.next()){var Q=g.d(x.value);x=Q.next().value;Q=Q.next().value;var K=J.hY.get(x);if(Ae(K[0])){if(!Q.eH)continue;var q=Q.data,D=0,C=[];K=g.d(K);for(var M=K.next();!M.done;M=K.next()){M=M.value;var y=M.N,n=Kw(q,D,y);D+=y;C.push(new wu(M,n))}J.zZ.push.apply(J.zZ,g.nR(C))}else if(Q.data.totalLength>0||!K[0].range&&Q.eH)q=void 0,D=K[0],C=Q.t8,K=Q.data,D.range||(q=Q.eH),q=new wu(orI(D,D.K+C,K.totalLength,q),K), Q.t8+=q.info.N,J.zZ.push(q);J.j1.get(x).data=new iE;Q.eH&&J.j1.delete(x)}X=this.xF.get(X);if(!X)return[];J=X.zZ;X.zZ=[];L=g.d(J);for(x=L.next();!x.done;x=L.next())X.Lt+=x.value.info.N;return J||[]}L=(J=this.xF.get(X))==null?void 0:J.PD;if(!L)return[];this.kZ(X,L);return L.bW()}; g.a.jQ=function(X){if(EZ)return WE(this,X);var J,L,x;return!!((L=(J=this.xF.get(X))==null?void 0:J.PD)==null?0:(x=L.uy())==null?0:x.length)||WE(this,X)}; g.a.kZ=function(X,J){for(;WE(this,X);){var L=this.Y4(X);var x=X;x=this.xF.get(x).eW&&!zr(this,x);$X(J,L,x&&MUS(this,X))}}; g.a.uB=function(){g.G.prototype.uB.call(this);for(var X=g.d(this.xF.keys()),J=X.next();!J.done;J=X.next())YX(this,J.value);var L;if((L=this.D2)==null?0:L.Xb)for(X=g.d(this.xF.values()),J=X.next();!J.done;J=X.next())J=J.value,J.j1.clear(),J.hY.clear(),J.zZ.length=0,J.eC.length=0,J.xm.length=0,J.Ho.length=0;this.xF.clear()}; var EZ=!1;g.w(rr,g.G);g.a=rr.prototype;g.a.aG=function(){!this.E6()&&this.xhr&&(this.kZ(!1),kk(this.P4,this))}; g.a.oR=function(){}; g.a.rJ=function(){if(!this.E6()&&this.xhr){var X=this.o3();X===5?nn(this.j7):this.UA(X);this.j7.K.stop();var J;(J=this.UO)==null||J.stop()}}; g.a.o3=function(){var X="";HE(this.j7,this.xhr)&&(X=WsZ(this.j7,this.xhr));if(X)return this.info.T6.fA(this.Pv,X),3;this.kZ(!0);if(Vz(this.j7,this.xhr.status,this.xhr.cz(),this.info.Mn(),this.lC))return 5;if(this.v7)return 3;hsA(this.j7,this.xhr.ut(),0,this.Mn());this.policy.XX&&aXz(this.P4);return 4}; g.a.kZ=function(X){var J=this.xhr;if((X||!HE(this.j7,this.xhr))&&J.sy()){X=J.ue();var L=X.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+L}); this.Ml.feed(X)}}; g.a.DO=function(X,J){this.xhr.Nm()&&X===21&&tUY(this);this.V6.DO(X,J)}; g.a.Li=function(X,J,L,x){L||(this.AP.Li(x),this.policy.FA&&X===21&&tUY(this));if(X!==21)return!1;this.AP.Km=!0;X=J.totalLength;L||(this.k0=$y(J,0),J=J.split(1).SR);var Q=this.policy.Z$,K=this.V6.K[this.k0],q=this.Yq.N.get(K);if(Q&&q&&(Q*=q.info.DY,X+L!==x&&X0){this.policy.X7&&this.j7.K.stop();X=this.AP.S_();J=this.AP.T3();var L=d1e(this,X);if(!(J>L.Ez||L.SB>0&&this.info.rR()>L.SB)){this.FP=(0,g.uT)();var x;(x=this.UO)==null||x.stop();this.policy.XX&&(x=this.P4,X={KG:Math.round(J*X/1E3),FS:X},x.policy.XX&&(x.gI=X,x.dc++));this.P2()}}}}; g.a.P2=function(){this.j7.P2()}; g.a.AX=function(X){this.P4.AX(X,this.FL())}; g.a.d9=function(X){this.v7=!0;this.info.T6.fA(this.Pv,X.redirectUrl)}; g.a.Lr=function(X){this.AP instanceof bN&&this.AP.Lr(X)}; g.a.tX=function(X){this.AP instanceof bN&&this.AP.tX(X)}; g.a.uS=function(X){var J=X.formatId,L=Bx({itag:J.itag,lmt:J.lmt,xtags:J.xtags}),x,Q,K=new N1(((x=X.qy)==null?void 0:x.first)||0,((Q=X.qy)==null?void 0:Q.My)||0),q,D;x=new N1(((q=X.indexRange)==null?void 0:q.first)||0,((D=X.indexRange)==null?void 0:D.My)||0);this.Yq.N.get(L)||(L=X.b_||{},L.mimeType=X.mimeType,L.itag=J.itag,L.lastModified=""+(J.lmt||0),L.xtags=J.xtags,X=this.Yq,J=fY(""),L=TO(L,null),zO(X,new ES(J,L,K,x)))}; g.a.Qo=function(X){this.P4.Qo(X,this.FL())}; g.a.onSnackbarMessage=function(X){if(this.policy.gy)this.P4.onSnackbarMessage(X)}; g.a.HP=function(X){this.Rv=X;this.R9=(0,g.uT)();this.P4.HP(X)}; g.a.DN=function(X,J,L){this.P4.DN(X,J,L)}; g.a.pV=function(X){X.scope===2&&(this.dX=X);this.P4.pV(X)}; g.a.l0=function(){this.Ga=!0;this.P4.l0()}; g.a.yk=function(X){this.policy.jZ&&this.P4.yk(X)}; g.a.rH=function(X){this.P4.rH(X,this.FL())}; g.a.UI=function(X){X.oY===3&&(this.lC=!0);this.P4.UI(X)}; g.a.Ki=function(X){this.P4.Ki(X)}; g.a.XQ=function(X){this.P4.XQ(X)}; g.a.canRetry=function(){this.E6();return this.j7.canRetry(!1)}; g.a.dispose=function(){if(!this.E6()){g.G.prototype.dispose.call(this);this.j7.dispose();var X;(X=this.UO)==null||X.dispose();this.UA(-1);this.CS()}}; g.a.UA=function(X){this.state=X;kk(this.P4,this)}; g.a.Mn=function(){return this.info.Mn()}; g.a.Ip=function(){return this.Ga}; g.a.F5=function(){return this.dX}; g.a.xG=function(X,J,L){L.clipId&&(this.clipId=L.clipId);this.policy.K&&!J&&(this.oS=L.Kq);this.CY.xG(X,J,L,0);if(this.policy.tb&&this.Rv&&this.AP instanceof xX){var x=this.Rv.e6;this.AP.xG(L.durationMs/1E3,J,x>0&&L.Kq+1>=x)}this.CY.xF.get(X).Qi=!0}; g.a.FW=function(X,J){this.CY.FW(X,J)}; g.a.Ce=function(X){this.requestIdentifier=X}; g.a.bW=function(X){return this.CY.bW(X)}; g.a.Gm=function(X){return this.CY.Gm(X)}; g.a.jQ=function(X){return this.CY.jQ(X)}; g.a.Yh=function(){return this.CY.Yh()}; g.a.xd=function(){return 1}; g.a.FL=function(){return this.AP.requestNumber}; g.a.fT=function(){return this.requestIdentifier}; g.a.Eo=function(){return this.Pv.Eo()}; g.a.GX=function(){this.CS()}; g.a.CS=function(){this.AP.deactivate();var X;(X=this.xhr)==null||X.abort()}; g.a.isComplete=function(){return this.state>=3}; g.a.SA=function(){return this.state===3}; g.a.EY=function(){return this.state===5}; g.a.GM=function(){return this.state===4}; g.a.P6=function(){return this.isComplete()}; g.a.Kj=function(){return this.state>=1}; g.a.HN=function(){return this.policy.t_?this.j7.HN():0}; g.a.xQ=function(){this.policy.t_&&kk(this.P4,this)}; g.a.Uu=function(){return FB8(this.info)}; g.a.J2=function(){return this.j7.J2()}; g.a.JR=function(){var X=pKI(this.j7);Object.assign(X,RG8(this.info));X.req="sabr";X.rn=this.FL();var J;if((J=this.xhr)==null?0:J.status)X.rc=this.policy.M9?this.xhr.status:this.xhr.status.toString();var L;(J=(L=this.xhr)==null?void 0:L.N2())&&(X.msg=J);this.FP&&(L=d1e(this,this.FP-this.AP.p5()),X.letm=L.Hp,X.mrbps=L.Ez,X.mram=L.SB);return X};ua8.prototype.tick=function(X,J){this.ticks[X]=J?window.performance.timing.navigationStart+J:(0,g.uT)()};g.w(j2,g.Ly);g.a=j2.prototype; g.a.Ac=function(X,J,L,x){if(this.policy.Lu&&this.policy.K){var Q=X.ge||null;Q?(TMz(this,X.Vl,Fn(this,X.startTime,X.Vl),{ge:Q,Vl:X.Vl,cB:!!J,JO:L},this.N),x&&this.N&&this.N.pj(X.Vl,X.startTime,this.K,(J==null?void 0:J.L)||[],(J==null?void 0:J.K)||[],(J==null?void 0:J.T)||[],L,(J==null?void 0:J.le)||0,(J==null?void 0:J.N)||void 0)):this.K===1&&Gr(this,5,"noad")}else{var K=!1;this.policy.K&&(K=L?this.FE===X.Vl:this.Pl===X.Vl);if(this.N&&x&&!K){x=[];K=[];var q=[],D=void 0,C=0;J&&(x=J.L,K=J.K,q=J.T,D= J.N,C=J.le,this.Ni("sdai",{sq:X.Vl,ssvicpns:x.join("."),ssvid:K.join(".")}));this.policy.K&&(L?this.FE=X.Vl:this.Pl=X.Vl);this.N.pj(X.Vl,X.startTime,this.K,x,K,q,L,C,D)}this.policy.K?L&&(this.K===1&&Gr(this,5,"noad"),X.Vl!==((Q=this.L)==null?void 0:Q.Vl)&&(reZ(this,X,J,L),isNaN(X.startTime)||vzv(this,X.Vl,Fn(this,X.startTime,X.Vl),!!J,this.N))):L&&reZ(this,X,J)}}; g.a.Q_=function(X,J,L){var x=this.videoTrack.L.index.Md()<=J;this.L={ge:X,Vl:J,cB:L};x&&Tr(this,X,J)}; g.a.Wb=function(){this.N&&this.N.Wb()}; g.a.Ni=function(X,J,L){(X!=="sdai"||this.policy.M8||(L===void 0?0:L))&&this.loader.Ni(X,J)}; g.a.p$=function(X,J){var L=this.videoTrack.L.index.P5(X);if(L>=0){var x;var Q=((x=J.S7.MO(L,2))==null?void 0:x.ze)||"";if(this.policy.K||Q)return J.U1(X,L),fn(this.loader,X,X,L),this.Ni("sdai",{cmskpad:1,t:X.toFixed(3),sq:L}),!0}this.Ni("sdai",{cmskpad:0,t:X.toFixed(3),sq:L});return!1};g.a=FAA.prototype;g.a.qf=function(X,J,L){X=X||this.L;if(this.K.has(X)){if(X=this.K.get(X))X.Ry=J,X.pB.push(L)}else J={Ry:J,pB:[],startTimeSecs:0,zR:0},J.pB.push(L),this.K.set(X,J)}; g.a.Q$=function(X,J){X!==void 0&&this.xz(X);if(this.L&&(X=this.K.get(this.L),X!=null&&X.Ry)){var L={C6:X.pB,fH:dy(X.Ry||"")||void 0,cuepointId:this.L};X.Tx&&(L.dS=X.Tx);J&&(L.RN=W_(J.split(";")[0]),L.yL=J.split(";")[1]||"");return L}}; g.a.U1=function(X,J){this.xz(X);var L=this.K.get(this.L);L?(this.Ni("ssskipad",{cid:this.L,sn:J,mt:X.toFixed(3)}),L.Tx=J):this.Ni("ssskipadfail",{cid:this.L,sn:J,mt:X.toFixed(3)})}; g.a.Sw=function(){for(var X=g.d(this.K.values()),J=X.next();!J.done;J=X.next())J.value.Tx=NaN}; g.a.xz=function(X,J){J&&(this.N=J);if(this.L&&(J=this.K.get(this.L))&&J.startTimeSecs<=X&&X<=J.startTimeSecs+J.zR)return;this.L="";J=g.d(this.K.entries());for(var L=J.next();!L.done;L=J.next()){var x=g.d(L.value);L=x.next().value;x=x.next().value;var Q=void 0,K=void 0,q=void 0;if(((Q=x)==null?void 0:Q.startTimeSecs)<=X&&X<=((K=x)==null?void 0:K.startTimeSecs)+((q=x)==null?void 0:q.zR)){this.L=L;break}}};g.w(sZ,g.G);sZ.prototype.Tm=function(X,J,L){L=L===void 0?{}:L;this.policy.PJ=X0(X,L,this.T,J===void 0?!1:J)};Z2.prototype.C0=function(X){var J=this;if(this.policy.uf){var L=new Set(X);L.size===this.gI.size&&[].concat(g.nR(L)).every(function(x){return J.gI.has(x)})||(this.loader.Ni("lwnmow",{itagDenylist:[].concat(g.nR(X)).join(",")}),this.loader.Rh(!!L.size),this.D=-1,this.gI=L,AQ(this,this.L),this.jC=!0)}}; Z2.prototype.Tm=function(X,J,L){L=L===void 0?{}:L;var x=this.policy.PJ;this.j.Tm(X,J===void 0?!1:J,L);if(x!==this.policy.PJ){AQ(this,this.L);XZ(this);var Q,K;x>this.policy.PJ&&((Q=this.N)==null?0:rS(Q.info))&&((K=this.nextVideo)==null||!rS(K.info))&&(this.Km=!0)}};iM.prototype.aC=function(X){this.timestampOffset=X;this.flush()}; iM.prototype.flush=function(){if(this.L.pos>0){var X={a:this.track.g2(),u:this.L.DH(),pd:Math.round(this.T),ad:Math.round(this.N)},J=this.K;if(J){var L=J.L.info;X.itag=L.itag;L.L&&(X.xtags=L.L);X.sq=J.Vl;X.st=J.startTime;X.sd=J.duration;this.track.policy.Tg&&(X.si=J.gQ());J.j&&(X.esl=J.K+J.N);J.Ze()&&(X.eos=1)}isNaN(this.timestampOffset)||(X.to=this.timestampOffset);var x;if(J=(x=this.track.je)==null?void 0:x.yr({})){for(var Q in J)this.B[Q]!==J[Q]&&(X["sb_"+Q]=J[Q]);this.B=J}this.track.Ni("sbu", X);this.L.reset();this.buffered=[];this.j=this.N=this.T=0;this.timestampOffset=this.K=void 0}};K7.prototype.dispose=function(){this.aB=!0}; K7.prototype.E6=function(){return this.aB}; g.w(C7,Error);n7.prototype.skip=function(X){this.offset+=X}; n7.prototype.hv=function(){return this.offset};g.a=PpO.prototype;g.a.Iz=function(){return this.K}; g.a.RW=function(){return this.K.length?this.K[this.K.length-1]:null}; g.a.ES=function(){this.K=[];wi(this);OB(this)}; g.a.Y4=function(X){this.Hl=this.K.shift().info;X.info.equals(this.Hl)}; g.a.Gm=function(){return g.H5(this.K,function(X){return X.info})}; g.a.g2=function(){return!!this.j.info.audio}; g.a.isDrm=function(){return!!this.j.info.V0}; g.a.getDuration=function(){return this.j.index.WB()};g.w(la,qU);g.a=la.prototype;g.a.onStateChange=function(){this.E6()&&(hQ(this.CY,this.formatId),this.L.dispose())}; g.a.JR=function(){var X=Cim(this.CY,this.formatId),J;var L=((J=this.CY.xF.get(this.formatId))==null?void 0:J.bytesReceived)||0;var x;J=((x=this.CY.xF.get(this.formatId))==null?void 0:x.Lt)||0;return{expected:X,received:L,bytesShifted:J,sliceLength:zr(this.CY,this.formatId),isAnyMediaEndReceived:this.CY.SH(this.formatId)}}; g.a.Ty=function(){return 0}; g.a.XO=function(){return!0}; g.a.bW=function(){return this.CY.bW(this.formatId)}; g.a.uy=function(){return[]}; g.a.jQ=function(){return this.CY.jQ(this.formatId)}; g.a.J2=function(){return this.lastError}; g.a.HN=function(){return 0};g.w(oN,g.G);g.a=oN.prototype;g.a.g2=function(){return!!this.L.info.audio}; g.a.RW=function(){return this.T.RW()}; g.a.Y4=function(X){this.T.Y4(X);var J;(J=this.S)!=null&&(J.j.add(X.info.Vl),J.L=AlW(J,J.hP,J.EX,X,J.L),J.N=X,J.B=(0,g.uT)());this.DY=Math.max(this.DY,X.info.L.info.DY||0)}; g.a.getDuration=function(){return this.L.index.WB()}; g.a.ES=function(){B0(this);this.T.ES()}; g.a.u1=function(){return this.T}; g.a.isRequestPending=function(X){return this.N.length?X===this.N[this.N.length-1].info.eC[0].Vl:!1}; g.a.aC=function(X){var J;(J=this.S)==null||J.aC(X);var L;(L=this.D)==null||L.aC(X)}; g.a.Ni=function(X,J){this.loader.Ni(X,J)}; g.a.fI=function(){return this.loader.fI()}; g.a.dispose=function(){var X;(X=this.D)==null||X.flush();g.G.prototype.dispose.call(this)};g.w(sB,g.G);sB.prototype.N=function(){this.K++>15||(this.L=!this.L,new VjR(this.loader,this.policy,this.zi,this.T6,this.L),this.delay.start())}; g.a=VjR.prototype;g.a.oR=function(){}; g.a.aG=function(){}; g.a.rJ=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.ut()===this.size)this.loader.Ni("rqs",this.getInfo());else{var X="net.connect";this.xhr.status>200?X="net.badstatus":this.xhr.e5()&&(X="net.closed");this.onError(X)}}; g.a.onError=function(X){var J=this;this.loader.handleError(X,this.getInfo());rv("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(L){J.loader.Ni("pathprobe",L)},function(L){J.loader.handleError(L.errorCode,L.details)})}; g.a.getInfo=function(){var X=this.timing.wU();X.shost=BK(this.location.Jz);X.pb=this.size;return X};g.w(Ns,g.G); Ns.prototype.W=function(X,J){if(X.W){this.Yq.isLive?(X=this.Yq.hO&&this.Yq.T?X.L.lL(this.Yq.hO,!1):X.L.oU(Infinity),X.fn=this.fn):X=X.L.lL(0,!1);if(this.Km){var L=this.Km;X.fn===0&&(X.j=L.S)}else X.j=this.D;return X}L=X.K;if(!L.L.Fy())return L.L.z7()?(X=T7(this.j,X.L.info.DY,J.L.info.DY,0),X=L.L.Gr(L,X)):X=L.L.Sv(L),X;var x=L.B-this.loader.getCurrentTime(),Q=!L.range||L.N===0&&L.K===0?0:L.range.length-(L.K+L.N),K=L.L;this.Nu(X,x)&&Q===0&&(this.Yq.isManifestless?K=X.L:(K=L.startTime+EFm,L.N&&(K+=L.duration), U0(X,K),L=X.K,K=L.L));K.z7()?(Q=this.N,J=T7(this.j,K.info.DY,J.L.info.DY,x,Q.T.length>0&&Q.S===0&&this.loader.Oy),x=GV(X),X=L.L.Gr(L,J),(J=X.N)&&X.eC.length>1&&(x||X.T6.N||X.eC[0].L!==L.L?X=L.L.Gr(L,X.eC[0].N):(x=X.eC[X.eC.length-1],K=x.N/J,!x.j&&K<.4&&(X=L.L.Gr(L,J-x.N))))):(L.Vl<0&&(J=xQ(L),J.pr=""+X.N.length,this.loader.isSeeking()&&(J.sk="1"),J.snss=L.W,this.loader.Ni("nosq",J)),X=K.Sv(L));if(this.policy.FE)for(L=g.d(X.eC),J=L.next();!J.done;J=L.next())J.value.type=6;return X}; Ns.prototype.Nu=function(X,J){if(!GV(X)||!X.L.Fy())return!1;var L=this.N.jC||JYm(X)||J<=this.policy.fQ||this.N.Km;this.logger.debug(function(){return"ready to adapt: "+L+", upgrade pending: "+JYm(X)+", health: "+J}); return L}; Ns.prototype.uB=function(){g.G.prototype.uB.call(this)}; var EFm=2/24;g.w(Ji,g.G);Ji.prototype.Xi=function(X,J,L){var x;var Q=((x=this.K)==null?void 0:x.reason)==="m"?"m":this.K&&zGW(this,this.K)?this.K.reason:"a";this.loader.Xi(new BE(X,Q,L));AN(this.loader,J,X,!0)}; Ji.prototype.EN=function(X,J){for(var L=g.d(this.FE),x=L.next();!x.done;x=L.next())if(x.value.id===X)return this.j=this.Yq.L[X],dr(this.D2)&&(this.Km=!0),X=new BE(this.j,J?"t":"m"),J&&(this.W=!0),X;this.N=[];return null}; Ji.prototype.Tm=function(X,J,L){L=L===void 0?{}:L;this.L.Tm(X,J===void 0?!1:J,L)};xk.prototype.setData=function(X,J,L){var x=this;L=L===void 0?{}:L;if(J==null?0:J.z6)this.LC=wxW(this,J,L),X.aP=this.T6.aP();if(this.Mn())return!0;this.data=X;this.L=f6Y(X,function(Q,K){var q;(q=x.P4)==null||q.lB(Q,K)},J==null?void 0:J.N); if(!this.L)return!1;this.K=g.Us(this.L,wfe);return!0}; xk.prototype.Mn=function(){return this.requestType===1}; xk.prototype.rR=function(){var X;return((X=this.P4)==null?void 0:X.rR())||0}; xk.prototype.isDecorated=function(){var X;return!((X=this.data)==null||!X.IV)};sGo.prototype.JK=function(X,J){J=J===void 0?1:J;this.Fx+=J;this.K+=X;X/=J;for(var L=0;L0)x+="."+id[Q].toFixed(0)+"_"+L.L[Q].toFixed(0);else break;L=x}L&&(X[J]=L)}this.L=new NyO;return X}; g.a.toString=function(){return""};g.a=XeP.prototype;g.a.isActive=function(){return!1}; g.a.uX=function(){}; g.a.Ds=function(){}; g.a.Ul=function(){}; g.a.al=function(X,J){J()}; g.a.Nt=function(){return{}}; g.a.toString=function(){return""};var $zu=new XeP,CS0=!!+RY("html5_enable_profiler"),M38=!!+RY("html5_onesie_enable_profiler"),td=CS0||M38?new mPe:$zu,e7m=CS0?td:$zu,qW=M38?td:$zu;Q$.prototype.encrypt=function(X){this.L.exports.AES128CTRCipher_encrypt(this.cipher,X.byteOffset,X.byteLength);return X}; Q$.prototype.E6=function(){return this.cipher===0}; Q$.prototype.dispose=function(){this.L.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};Kko.prototype.emscripten_notify_memory_growth=function(){};g.a=Kr.prototype;g.a.malloc=function(X){return this.exports.malloc(X)}; g.a.free=function(X){this.exports.free(X)}; g.a.realloc=function(X,J){return this.exports.realloc(X,J)}; g.a.Te=function(X){if(X.buffer!==this.exports.memory.buffer){var J=this.malloc(X.byteLength);J=new Uint8Array(this.exports.memory.buffer,J,X.byteLength);J.set(X);return J}}; g.a.Uf=function(X){if(X.buffer===this.exports.memory.buffer){var J=X.slice();this.free(X.byteOffset);return J}}; var JD8=new function(){this.N=this.T="WebAssembly"in window},g38="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); qW.uX(Kr,{Te:function(X){return{profile:"copyj2w",Fx:X===void 0?0:Math.ceil(X.byteLength/16)}}, Uf:function(X){return{profile:"copyw2j",Fx:X===void 0?0:Math.ceil(X.byteLength/16)}}});ID.prototype.encrypt=function(X,J){return cC(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:J},this.key,X).catch(function(L){return Promise.reject(L.name+": "+L.message)}).then(function(L){return new Uint8Array(L)}))}; ID.prototype.E6=function(){return this.L}; ID.prototype.dispose=function(){this.L=!0}; gW.prototype.encrypt=function(X,J){return cC(this.K(X,J))}; gW.prototype.K=function(X,J){q0(this.N,J);return this.N.encrypt(X)}; gW.prototype.E6=function(){return this.L}; gW.prototype.dispose=function(){this.L=!0}; Dj.prototype.encrypt=function(X,J){return cC(this.K(X,J))}; Dj.prototype.K=function(X,J){J=this.N.Te(J);var L=this.L;L.L.exports.AES128CTRCipher_setCounter(L.cipher,J.byteOffset);this.N.free(J.byteOffset);J=this.N.Te(X);this.L.encrypt(J!=null?J:X);return J?this.N.Uf(J):X}; Dj.prototype.E6=function(){return this.L.E6()}; Dj.prototype.dispose=function(){this.L.dispose()}; qW.uX(ID,{encrypt:$vO("oan2")});qW.uX(gW,{encrypt:$vO("oap")});qW.uX(Dj,{encrypt:$vO("oalw")});$k.prototype.encrypt=function(X,J){var L=this,x=Ep("");X.length<=this.OR&&this.L&&!this.j&&(x=WC(x,function(){return L.L?L.L.encrypt(X,J):Ep("wasm unavailable")})); X.length<=this.u0&&(this.L&&this.j&&(x=WC(x,function(){return L.L?L.L.encrypt(X,J):Ep("wasm unavailable")})),x=WC(x,function(){return yDR(L,X,J)})); return WC(WC(x,function(){return n3e(L,X,J)}),function(){return yDR(L,X,J)})}; $k.prototype.K=function(X,J){if(this.L)return this.L.K(X,J);this.N||(this.N=new gW(this.key));return this.N.K(X,J)}; $k.prototype.E6=function(){return this.B}; $k.prototype.dispose=function(){this.B=!0;var X;(X=this.T)==null||z6(X,g.Lq);g.Lq(this.L);g.Lq(this.N)};Cr.prototype.encrypt=function(X){(0,g.uT)();return(new g.Cb(this.L.L)).encrypt(X,this.iv)}; Cr.prototype.decrypt=function(X,J){(0,g.uT)();return(new g.Cb(this.L.L)).decrypt(X,J)}; Cr.prototype.E6=function(){return this.N}; Cr.prototype.dispose=function(){this.N=!0;g.Lq(this.K)};g.w(MW,g.G);MW.prototype.N=function(X,J){if(J){J=J instanceof g.lI?J:y$(this,J);var L;((L=this.L.get(X))==null?void 0:BK(L.location))!==BK(J)&&this.L.set(X,new o3m(J,X))}else this.L.delete(X)}; MW.prototype.load=function(){var X=this,J,L,x,Q,K,q,D,C,M,y;return g.p(function(n){switch(n.K){case 1:J=X.L.get(0);g.oz(n,2);var V;if(V=J&&!X.K)V=BK(J.location),V=X.K===yz(V);if(V){n.fm(4);break}return g.z(n,dvS(X,X.K?2:0),5);case 5:if(L=n.L)X.N(0,L),Nu(L)&&X.N(1,U_(L));case 4:g.PW(n,3);break;case 2:x=g.EA(n);g.PM(x);if(!X.K){n.fm(3);break}X.K=!1;return g.z(n,X.load(),7);case 7:return n.return();case 3:if(!X.m9.experiments.Mi("html5_onesie_probe_ec_hosts")){n.fm(0);break}g.oz(n,9);Q=X;K=Q.N;q=3;return g.z(n, dvS(X,1),11);case 11:return K.call(Q,q,n.L),D=X,C=D.N,M=4,g.z(n,dvS(X,2),12);case 12:C.call(D,M,n.L);g.PW(n,0);break;case 9:y=g.EA(n),g.PM(y),g.uv(n)}})}; MW.prototype.W=function(){var X=this,J,L;return g.p(function(x){g.Nc(X.S);J=g.J_(X.m9.experiments,"html5_onesie_prewarm_max_lact_ms");if(a4()>=J)return x.return();(L=X.L.get(0))&&tHY(X,L);g.uv(x)})}; var a0A={R8B:0,qX9:1,uB0:2,YXM:3,DPY:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};b4R.prototype.decrypt=function(X){var J=this,L,x,Q,K,q,D;return g.p(function(C){switch(C.K){case 1:if(J.L.length&&!J.L[0].isEncrypted)return C.return();J.K=!0;J.Zp.TR("omd_s");L=new Uint8Array(16);Dy()?x=new g.$Y(X):Q=new g.Cb(X);case 2:if(!J.L.length||!J.L[0].isEncrypted){C.fm(4);break}K=J.L.shift();if(!x){q=Q.decrypt(gk(K.buffer),L);C.fm(5);break}return g.z(C,x.decrypt(gk(K.buffer),L),6);case 6:q=C.L;case 5:D=q;for(var M=0;M=4)){var J=eX(this),L=this.xhr;J.rc=L.status;X&&(J.ab=!0);if(L.N2()){var x="onesie.net";J.msg=L.N2()}else L.status>=400?x="onesie.net.badstatus":L.cz()?this.aA||(x="onesie.response.noplayerresponse"):x=L.status===204?"onesie.net.nocontent":"onesie.net.connect";x?this.fail(new g.Mh(x,J)):(this.TR("or_fs"),this.AP.tT((0,g.uT)(),L.ut(),0),this.UA(4),this.T7&&this.Ni("rqs",J));this.T7&&this.Ni("ombre", "ok."+ +!x);this.sO=!1;ld(this);GTZ(this.Zp);if(!this.pR){this.au.stop();var Q;(Q=this.hG)==null||Q.stop()}var K;if(X=(K=this.lR)==null?void 0:u_R(K))for(K=0;K1E3){var X;(X=this.AP)==null||X.bG((0,g.uT)());X=eX(this);if(this.m9.YH()&&this.xhr instanceof IC){var J=this.xhr;X.xrs=J.xhr.readyState;X.xpb=J.L.totalLength;X.xdc=J.T}this.fail(new g.Mh("net.timeout",X))}}else(0,g.uT)()-this.AP.L>1E4&&((J=this.AP)==null||J.bG((0,g.uT)()),this.UJ());this.isComplete()||this.Jy.start()}}; g.a.UJ=function(){this.logger.info("Onesie request timed out");this.sO=!1;if(!ld(this)){var X=eX(this);X.timeout="1";this.fail(new g.Mh("onesie.request",X))}}; g.a.fail=function(X){var J=this;X=nv(X);this.P$?this.Lm.NF(X):(this.nu.reject(X),this.P$=!0);GTZ(this.Zp);this.pR||this.au.stop();this.TR("or_fe");var L,x;(L=this.lR)==null||(x=u_R(L))==null||x.forEach(function(Q){J.Ni("pathprobe",Q)}); this.UA(5);this.dispose()}; g.a.isComplete=function(){return this.state>=3}; g.a.GM=function(){return this.state===4}; g.a.P6=function(X){var J,L;return this.isComplete()||!!((J=this.uZ)==null?0:(L=J.get(X))==null?0:L.L)}; g.a.SA=function(){return!1}; g.a.EY=function(){return this.state===5}; g.a.notifySubscribers=function(X){for(var J=0;J102400&&!this.W6&&(this.TR("or100k"),this.W6=!0);if(X.sy()){var J=X.ue(),L=J.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+L}); this.T7&&this.Ni("ombrss","len."+L);this.Ml.feed(J)}if(this.uZ)for(var x=g.d(this.uZ.keys()),Q=x.next();!Q.done;Q=x.next()){var K=Q.value;X=void 0;(X=this.uZ.get(K))==null||X.O9();this.notifySubscribers(K)}}catch(q){this.fail(q)}}; g.a.FL=function(){return this.AP.requestNumber}; g.a.fT=function(X){return this.N3.get(X)};g.w(QlA,g.G);g.a=QlA.prototype;g.a.wB=function(X,J){this.aB=void 0;aXz(this);OIP(this,X,J)}; g.a.Ko=function(X){if(this.L.length===0)return!1;var J=this.L[0];return J instanceof FS?X===this.loader.getCurrentTime()*1E3:!(J instanceof rr&&l6z(J.info))&&Math.abs(J.Uu()-X)<50}; g.a.wc=function(X){this.K=X;this.aB=(0,g.uT)()+(X.backoffTimeMs||0)}; g.a.AX=function(X,J){if(X.action===void 0){var L=this.Lm.di();L!==void 0&&this.loader.zp(L)}else if(X.action!==0||!this.Hl)if(X.action===0&&this.policy.LL&&(X.action=2),X.V5==="sabr.malformed_config"&&this.policy.cf>0&&this.bB++0&&(X.action=2),L={},L.reason=X.V5,L.action=X.action,L.rn=J,X.action){case 1:this.policy.K&&this.S&&this.S.Q9(void 0, void 0,L);break;case 0:this.Hl=!0;this.videoData.OA()&&this.policy.K&&this.S&&this.S.Q9(void 0,void 0,L,!1);this.loader.zl(L);break;case 2:kKv(X.V5)!=="sabr.config"&&delete L.reason;this.loader.handleError(kKv(X.V5),L,1);break;case 3:this.policy.z6&&((X=this.Yq.S)!=null&&(X.S=!0),this.loader.handleError("sabr.hostfallback",L))}}; g.a.pV=function(X){X&&(this.loader.Ni("sabrctxt",{onsbrctxt:X.type,scp:X.scope,dflt:X.sendByDefault}),X.type&&X.sendByDefault&&this.videoData.O6.add(X.type),X.scope!==2&&(X.type&&this.videoData.sabrContextUpdates.set(X.type,X),this.Lm.pV(X)))}; g.a.l0=function(){}; g.a.Qo=function(X,J){if(X.Il!==void 0&&X.H0){var L=X.Il/X.H0;this.audioTrack.W=!1;this.videoTrack.W=!1;if(this.policy.aB||this.policy.UV||this.policy.RV)this.loader.bZ.K=!1;var x=this.loader.gJ(L,1);this.policy.A0&&this.policy.K&&this.loader.xz(x,J);this.Lm.getCurrentTime()!==L&&(J={B9:"sabr_seek",NS:!0,hp:!0},X.seekSource&&(J.seekSource=X.seekSource),Za(this.loader,L+.1,J))}}; g.a.onSnackbarMessage=function(X){this.Lm.publish("onSnackbarMessage",X)}; g.a.HP=function(X){X.e6&&X.XY&&N7(this.Yq,X.e6,X.XY);this.policy.p6&&(X.HA&&X.WA&&(this.Yq.L1=X.HA/X.WA),X.wD&&X.QT&&(this.Yq.Xb=X.wD/X.QT));FQ(this.videoData)&&!this.videoData.Km&&X.XY&&this.loader.gJ(X.XY,1E3);X.K0!=null&&this.Lm.CV(X.K0);this.policy.Ku&&X.NV&&(X=((0,g.uT)()-X.NV)/1E3,this.loader.JH.US(1,X))}; g.a.UI=function(X){this.loader.UI(X)}; g.a.QA=function(X){return this.videoData.O6.has(X)}; g.a.DN=function(X,J,L){this.policy.N&&this.loader.Ni("sabrctxtplc",{start:X?X.join("_"):"",stop:J?J.join("_"):"",discard:L?L.join("_"):""});if(X){X=g.d(X);for(var x=X.next();!x.done;x=X.next())this.videoData.O6.add(x.value)}if(J)for(J=g.d(J),X=J.next();!X.done;X=J.next())X=X.value,this.videoData.O6.has(X)&&this.videoData.O6.delete(X);if(L)for(L=g.d(L),J=L.next();!J.done;J=L.next())if(J=J.value,this.videoData.sabrContextUpdates.has(J)&&(this.videoData.sabrContextUpdates.delete(J),J===3&&(this.videoData.fQ= "")),this.policy.D&&this.L.length)for(X=g.d(this.L),x=X.next();!x.done;x=X.next())if(x=x.value,!(x instanceof FS)){var Q=void 0;((Q=x.dX)==null?void 0:Q.type)===J&&(x.dX=void 0)}}; g.a.yk=function(){}; g.a.W7=function(X){this.W=X}; g.a.n9=function(X){this.B=X}; g.a.rH=function(X,J){B7(this.policy,X,4,J)}; g.a.Ki=function(X){if(X==null?0:X.DX)if(X=X.DX.uI){X=g.d(X);for(var J=X.next();!J.done;J=X.next())if(J=J.value,J.formatId){var L=this.Yq.N.get(Bx(J.formatId));L&&L.info&&(L.info.debugInfo=J.debugInfo)}}}; g.a.XQ=function(X){this.Lm.publish("reloadplayer",X)}; g.a.xU=function(){return this.Lm.xU()||""}; g.a.rR=function(){var X=p7(this.audioTrack,!0)*1E3,J=p7(this.videoTrack,!0)*1E3;return Math.min(X,J)}; g.a.lB=function(X,J){this.loader.Ni(X,J)}; g.a.Ou=function(X){xM8(this.loader,Jje(this.J0,X))}; g.a.uB=function(){g.G.prototype.uB.call(this);this.K=void 0;OIP(this,!0,"i");this.L=[]};cvY.prototype.R6=function(){this.isSeeking=!0;this.L===1&&SrZ(this.T);this.L===0&&this.fW.Q0("transitiondetector");this.B=!1};vUO.prototype.w0=function(X,J){if(this.T)return edZ(this,J);if(J=AZ(X)){var L=J.L;L&&L.N&&L.L&&(X=X.N.length?X.N[0]:null)&&X.state>=2&&!X.EY()&&X.info.fn===0&&(this.T=X,this.W=L,this.K=J.info,this.B=this.startTimeSecs=Date.now()/1E3,this.j=this.K.startTime)}return NaN}; vUO.prototype.clear=function(){this.K=this.W=this.T=null;this.L=this.j=this.B=this.startTimeSecs=NaN;this.N=!1};g.w(g.X6,g.G);g.a=g.X6.prototype;g.a.initialize=function(X,J,L){this.logger.debug(function(){return"Initialized, t="+X}); X=X||0;this.policy.L||(J=x7R(this.L),KiP(this.Lm,new BE(J.video,J.reason)),this.Lm.Wz(new BE(J.audio,J.reason)));this.policy.L&&k$(this);this.Yq.isManifestless&&cYS(this.j);this.W&&TNz(this.W,this.videoTrack.L);J=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var x=!this.Yq.isManifestless;this.policy.b8&&(x=x||this.Yq.Bv);this.policy.gI||(this.currentTime=x?X:J);this.policy.aB&&this.seek(this.getCurrentTime(),{}).S1(function(){}); if(this.policy.L){var Q;((Q=this.D)==null?0:iIR(Q,this.xU()||""))&&sle(this)&&BNm(this,this.videoTrack)&&BNm(this,this.audioTrack)&&(wdO(this.K,this.D),this.policy.j&&Rdm(this))}else this.aB&&(NNA(this,this.videoTrack),NNA(this,this.audioTrack),$1z(this.aB),delete this.aB);L?(mdA(this,!1),g.Nc(this.H$)):(L=this.getCurrentTime()===0,Z$(this.j,this.videoTrack,this.videoTrack.L,L),Z$(this.j,this.audioTrack,this.audioTrack.L,L),this.policy.L&&IXO(this.K,!0),this.policy.aB||this.seek(this.getCurrentTime(), {}).S1(function(){}),this.timing.tick("gv")); (this.Yq.hO||this.Yq.PS||this.Yq.FE||this.Yq.z6||this.Yq.If)&&this.Lm.jw(this.Yq)}; g.a.resume=function(){if(this.isSuspended||this.Oy){this.logger.debug("Resumed.");this.va=this.Oy=this.isSuspended=!1;try{this.w0()}catch(X){g.Sc(X)}}}; g.a.MC=function(){return!this.policy.RT}; g.a.wk=function(X,J){X=X===void 0?!1:X;J=J===void 0?!1:J;this.logger.debug("detaching media source");X98(this);this.Lm.rp()&&(this.B=NaN);X?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Bl&&this.Ni("loader",{setsmb:1}),this.policy.FE=!0,this.ES()):(mdA(this,!1),J||this.ES())}; g.a.setAudioTrack=function(X,J,L){L=L===void 0?!1:L;if(!this.E6()){var x=!isNaN(J);L&&x&&(this.audioTrack.aB=Date.now(),this.policy.fY&&(this.O6=!0));if(this.policy.L){var Q=this.T.EN(X.id,x);this.logger.debug(function(){return"Logging new audio format: "+Q.L.info.id}); this.Lm.Wz(Q)}else{var K=Xrz(this.L,X.id,x);this.logger.debug(function(){return"Logging new audio format: "+K.audio.info.id}); this.Lm.Wz(new BE(K.audio,K.reason))}x?(this.policy.jX&&(this.Nx=Date.now()),L=this.audioTrack.L.index.P5(J),this.Ni("setAudio",{id:X.id,cmt:J,sq:L}),L>=0&&(X=this.policy.F$?L+1:L,this.policy.L&&this.wB(!0,"mosaic"),ri(this.audioTrack,X,NaN,NaN),!this.policy.r0&&this.Yq.isLive&&sS(this.Yq,X,!1))):this.Lm.md()}}; g.a.setPlaybackRate=function(X){X!==this.S.getPlaybackRate()&&this.S.setPlaybackRate(X)}; g.a.xT=function(X){var J=this.K.W;this.K.W7(X);this.Ni("scfidc",{curr:Bx(J),"new":Bx(X)});X&&Bx(X)!==Bx(J)&&(this.wB(!0,"caption change"),this.w0())}; g.a.W3=function(X){this.K.n9(X)}; g.a.Xi=function(X){var J=X.L.info.g2();this.logger.debug(function(){return"New "+(J?"audio":"video")+" format from SABR: "+BU(X.L.info)}); J?this.Lm.Wz(X):KiP(this.Lm,X)}; g.a.Ou=function(X){XJ(X.eC[X.eC.length-1])&&xM8(this,Jje(this.L,X.eC[0].L))}; g.a.xV=function(){return this.Lm.xV()}; g.a.Ka=function(){return this.Lm.Ka()}; g.a.UI=function(X){this.Lm.G().YH()&&this.Ni("sps",{status:X.oY||""});if(X.oY===1)this.Lm.videoData.Tg=0;else if(X.oY===2||X.oY===3){var J=!1;if(X.oY===3){J=this.Lm.nw();var L;this.YF=(L=X.Neq)!=null?L:Infinity;this.Lm.videoData.Tg=J+1;(J=Pb8(this))&&this.fV(!0)}this.Lm.HW(!0,J)}}; g.a.SE=function(){return this.Lm.SE()}; g.a.Ri=function(){return this.Lm.Ri()}; g.a.pK=function(X){this.Lm.pK(X)}; g.a.So9=function(){var X,J=(X=this.Lm.tP())==null?void 0:X.getCurrentTime();J?this.Lm.Ni("rms",{cta:J}):g.Nc(this.H9)}; g.a.w0=function(){Li8(this);if(this.xq&&gs(this.xq)&&!this.xq.BK()&&(!this.policy.gI||isFinite(this.getCurrentTime()))){var X=SS(this.videoTrack);X=this.policy.It&&X&&X.Ze();this.Yq.isManifestless&&this.Yq.T&&FJ(this.Yq)?(this.B=FJ(this.Yq),this.xq.Wq(this.B)):US(this.Yq)&&!X?isNaN(this.B)?(this.B=this.getCurrentTime()+3600,this.xq.Wq(this.B)):this.B<=this.getCurrentTime()+1800&&(this.B=Math.max(this.B+1800,this.getCurrentTime()+3600),this.xq.Wq(this.B)):this.xq.isView||(X=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.B)||this.B!==X)&&X>0&&(this.xq.Wq(X),this.B=X))}if(!this.E6())if(e0(this.Yq)&&this.Yq.EY()){var J=this.Yq;this.handleError("manifest.net.retryexhausted",J.J0?{rc:J.q2}:{rc:J.q2.toString()},1)}else if(this.policy.L)a:{try{nUA(this.K);this.Yq.isManifestless&&this.policy.j&&m8(this.bZ);var L;((L=this.xq)==null?0:Mr(L))&&this.aq();IXO(this.K)}catch(q){g.PM(q);J=q;if(J.message.includes("changeType")){this.Ni("ctype",{exp:J.name,msg:J.message,s:J.stack});break a}this.handleError("fmt.unplayable", {exp:J.name,msg:J.message,s:J.stack},1)}oFW(this);g.Nc(this.SC)}else if(!this.Yq.K||!i0m(this.videoTrack)&&!i0m(this.audioTrack)||(this.videoTrack.j||this.audioTrack.j)&&this.policy.Lp?L=!1:(this.ES(),this.Lm.seekTo(Infinity,{B9:"checkLoaderTracksSync",gJ:!0}),L=!0),!L){Li8(this);this.Yq.isManifestless&&(QGW(this.videoTrack),QGW(this.audioTrack),m8(this.bZ),(L=AZ(this.videoTrack))&&L.L&&(L=L.L.N&&!this.policy.LA,this.Ni(L===this.policy.W.LJ?"strm":"strmbug",{strm:L,sfmp4:this.policy.W.LJ,dfs:this.policy.LA}, !0)));if(this.xq)this.aq();else if(this.policy.T){var x;L=!1;if(this.policy.XI){var Q;X=g.d([this.videoTrack,this.audioTrack]);for(Q=X.next();!Q.done;Q=X.next()){var K=Q.value;for(Q=AZ(K);Q&&K.RW()!==SS(K);Q=AZ(K))K.Y4(Q);L=L||!!Q}}else(J=AZ(this.videoTrack))&&this.videoTrack.Y4(J),(x=AZ(this.audioTrack))&&this.audioTrack.Y4(x);hN(this.videoTrack)&&hN(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(J||x||L)&&mV(this)}Udz(this);Z$(this.j,this.videoTrack,this.videoTrack.L, !1);Z$(this.j,this.audioTrack,this.audioTrack.L,!1);this.policy.KL||Qqm(this,this.videoTrack,this.audioTrack);a6A(this.j,this.videoTrack,this.audioTrack);a6A(this.j,this.audioTrack,this.videoTrack);oFW(this);this.W&&(J=this.W,J.T?(x=J.B+J.policy.NK,J.N||(x=Math.min(x,J.startTimeSecs+J.policy.yc)),J=Math.max(0,x*1E3-Date.now())):J=NaN,isNaN(J)||g.Nc(this.pO,J));g.Nc(this.SC)}}; g.a.zl=function(X){this.Lm.zl(X)}; g.a.aq=function(){var X=this;if(this.xq){var J=this.xq.L,L=this.xq.K;zTP(this,this.audioTrack);zTP(this,this.videoTrack);var x=Iuz(this);if(x){if(this.policy.Cu){if(!J.En()){var Q=AZ(this.audioTrack);if(Q){if(!Ai(this,this.audioTrack,J,Q.info))return;$Mm(this,this.audioTrack,J,Q)}}if(!L.En()&&(Q=AZ(this.videoTrack))){if(!Ai(this,this.videoTrack,L,Q.info))return;$Mm(this,this.videoTrack,L,Q)}}this.ZC||(this.ZC=(0,g.uT)(),this.logger.debug(function(){return"Appends pause start "+X.ZC+" reason "+x}), this.policy.N&&this.Ni("apdps",{r:x}))}else if(this.ZC&&(q8z(this,this.ZC),this.ZC=0),gFO(this),Q=!1,Vy8(this,this.videoTrack,L)&&(Q=!0,SWY(this.timing),YWz(this.timing)),this.xq&&!this.xq.eW()&&(Vy8(this,this.audioTrack,J)&&(Q=!0,PiO(this.timing),hyo(this.timing)),!this.E6()&&this.xq))!this.policy.RT&&hN(this.videoTrack)&&hN(this.audioTrack)&&gs(this.xq)&&!this.xq.BK()&&(L=!1,L=SS(this.audioTrack).L,L=L===this.Yq.L[L.info.id])&&(this.logger.debug("Setting EOS"),jOo(this.xq),IVA(this.schedule)),Q&& !this.xq.isAsync()&&mV(this)}}; g.a.FF=function(X){var J,L=X===((J=this.xq)==null?void 0:J.L)?this.audioTrack:this.videoTrack,x;if((x=AZ(L))==null?0:x.isLocked){if(this.Lm.G().YH()){var Q;this.Ni("eosl",{ounlock:(Q=AZ(L))==null?void 0:Q.info.gQ()})}var K;dMR(this,X===((K=this.xq)==null?void 0:K.L))}var q;if(this.policy.fY&&X===((q=this.xq)==null?void 0:q.L)&&this.Cm){J=this.Cm-this.getCurrentTime();var D;this.Lm.Ni("asl",{l:J,xtag:(D=SS(this.audioTrack))==null?void 0:D.L.info.L});this.O6=!1;this.Cm=0}X.FB()&&X.ll().length===0&& (X.NO(),this.xq&&!this.xq.FB()&&(this.Lm.G().YH()&&this.Lm.Ni("rms",{ld:"seek"}),this.xq.B=performance.now(),this.Lm.ob(),this.Lm.G().YH()&&g.Nc(this.H9)));var C;(C=L.D)!=null&&QI(C,0);this.policy.sH?S2m(this):this.w0()}; g.a.diC=function(X){if(this.xq){var J=SS(X===this.xq.L?this.audioTrack:this.videoTrack);if(X=X.gM())for(var L=0;L 5&&X.Km.shift();J=J.Vl;var D;if((D=this.Lm.getVideoData())==null?0:D.enableServerStitchedDai)D=DPO(this.audioTrack,J),L=DPO(this.videoTrack,J),D!==0&&L!==0&&D!==L&&this.handleError("ssdai.avsync",{sq:J,a:D,v:L},0)}}; g.a.Q_=function(X,J,L,x){X.info.video&&this.N.Q_(J,L,x)}; g.a.C0=function(X){this.L.C0(X)}; g.a.bE=XY(12);g.a.zE=function(){if(g.N(this.Lm.getPlayerState(),8)){var X,J,L=(J=(X=this.Lm.tP())==null?void 0:X.getCurrentTime())!=null?J:this.Lm.getCurrentTime(),x;(x=this.A0)==null||YrI(x,L)}var Q;(Q=this.z6)==null||g.Nc(Q)}; g.a.Kz=function(){return this.videoTrack.W||this.audioTrack.W}; g.a.seek=function(X,J){if(this.E6())return hg();if(this.Kz())return hg("seeking to head");if(this.policy.aB&&!isFinite(X))return q_e(this.bZ),g.YW(Infinity);Li8(this);k$(this);this.policy.L||Udz(this,X);this.xq&&this.xq.L&&this.xq.K&&!this.Lm.getVideoData().zJ&&(this.xq.L.isLocked()||this.xq.K.isLocked())&&this.Lm.md({reattachOnLockedBuffer:1,vsb:""+this.xq.K.isLocked(),asb:""+this.xq.L.isLocked()});var L=this.getCurrentTime(),x=this.bZ.seek(X,J);this.policy.gI||(this.currentTime=x);lN(this.N,X,L, this.policy.OG&&!J.NS);mV(this);return g.YW(x)}; g.a.Ko=function(X){return this.policy.L&&this.K.Ko(X)}; g.a.QA=function(X){return this.K.QA(X)}; g.a.wB=function(X,J){this.K.wB(X,J)}; g.a.getCurrentTime=function(){if(this.policy.gI){var X=this.W4()||0;return this.Lm.getCurrentTime(!0)-X}return this.currentTime}; g.a.DT=function(){return this.audioTrack.L.info}; g.a.Uw=function(){return this.videoTrack.L.info}; g.a.IZ=function(){return this.audioTrack.L.info.XE}; g.a.H8=function(){return this.videoTrack.L.info.XE}; g.a.uB=function(){try{this.wk(),B0(this.audioTrack),B0(this.videoTrack),f7(this.audioTrack),f7(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.G.prototype.uB.call(this)}catch(X){g.Sc(X)}}; g.a.handleError=function(X,J,L){L=L===void 0?0:L;var x=y1(L);X==="fmt.unplayable"&&this.Yq.isLive&&(this.policy.Cu=!1,Br(this.Yq));J=new g.Mh(X,J,L);g.qC(this);Cv(J.details);this.Lm.handleError(J);X!=="html5.invalidstate"&&J.errorCode!=="fmt.unplayable"&&X!=="fmt.unparseable"&&x&&this.dispose()}; g.a.yr=function(){var X=SS(this.audioTrack),J=SS(this.videoTrack);X={lct:this.getCurrentTime().toFixed(3),lsk:this.bZ.isSeeking(),lmf:this.L.L.isLocked(),lbw:ry(this.schedule).toFixed(3),lhd:Wa(this.schedule).toFixed(3),lst:((this.schedule.W.Gc()||0)*1E9).toFixed(3),laa:X?X.gQ():"",lva:J?J.gQ():"",lar:this.audioTrack.K?this.audioTrack.K.gQ():"",lvr:this.videoTrack.K?this.videoTrack.K.gQ():"",laq:""+zV(this.audioTrack),lvq:""+zV(this.videoTrack)};this.xq&&!this.xq.eW()&&this.xq.L&&this.xq.K&&(X.lab= Nh(this.xq.L.ll()),X.lvb=Nh(this.xq.K.ll()));this.ZC&&(X.lapt=((0,g.uT)()-this.ZC).toFixed(0),X.lapr=Iuz(this));this.Bl&&(X.lapmabht=((0,g.uT)()-this.Bl).toFixed(0),X.lapmabh=N6(this,this.audioTrack).toFixed(0));this.jC&&(X.lapmvbht=((0,g.uT)()-this.jC).toFixed(0),X.lapmvbh=N6(this,this.videoTrack).toFixed(0));this.vl&&(X.lapsdai=((0,g.uT)()-this.vl).toFixed(0));return X}; g.a.ES=function(){try{this.policy.L&&this.K.wB(!1,"pending"),this.audioTrack.ES(),this.videoTrack.ES()}catch(X){g.Sc(X)}this.policy.T=""}; g.a.t3=function(){return jZ(this.S)}; g.a.Ni=function(X,J,L){this.Lm.Ni(X,J,L===void 0?!1:L)}; g.a.xU=function(){return this.Lm.xU()}; g.a.gJ=function(X,J){X/=J;isNaN(this.timestampOffset)&&WiW(this,X-Math.min(X,this.policy.vI));return(X-this.timestampOffset)*J}; g.a.W4=function(){return this.timestampOffset}; g.a.isSeeking=function(){return this.bZ.isSeeking()}; g.a.Wb=function(){this.N.Wb()}; g.a.Tm=function(X,J,L){J=J===void 0?!1:J;L=L===void 0?{}:L;this.policy.L?this.T.Tm(X,J,L):this.L.Tm(X,J,L)}; g.a.p$=function(X,J){if(this.Km&&this.N.p$(X,this.Km)){if(this.policy.A0&&this.policy.K){var L=this.videoTrack.L.index.P5(X),x;(x=this.FE)==null||x.U1(X,L)}WiW(this,this.timestampOffset-J);mV(this);this.policy.K&&(Br(this.Yq),f7(this.audioTrack),f7(this.videoTrack),this.ES());return!0}J=this.videoTrack.L.index.P5(X);this.handleError("ad.skipfailed",{dec:!!this.Km,t:X.toFixed(3),sq:J});return!1}; g.a.getManifest=function(){return this.Yq}; g.a.isOffline=function(){return!!this.Lm.getVideoData().cotn}; g.a.qB=function(X,J){this.Lm.qB(X,J)}; g.a.zw=function(X){if(this.policy.L)this.K.wB(!0,"utc"),this.w0();else{var J=this.Lm.getVideoData().vS;if(J){var L=this.j;L.Yj=X;L.vS=J;XS(this)}}}; g.a.zp=function(X){this.videoTrack.W=!1;this.audioTrack.W=!1;this.bZ.K=!1;this.Lm.zp(X)}; g.a.C9=function(X){this.bZ.C9(X-this.W4())}; g.a.pL=function(){this.Lm.pL()}; g.a.fV=function(X){X!==this.policy.Ii&&((this.policy.Ii=X)||this.w0())}; g.a.gN=function(X,J){var L=this.audioTrack.je,x=this.videoTrack.je;L&&x&&(L.remove(X,J),x.remove(X,J))}; g.a.md=function(X){this.Lm.md(X)}; g.a.Rh=function(X){this.Lm.Rh(X)}; g.a.qf=function(X,J,L){var x;(x=this.FE)==null||x.qf(X,J,L)}; g.a.xz=function(X,J){var L;(L=this.FE)==null||L.xz(X,J)}; g.a.Q$=function(X){var J;return(J=this.FE)==null?void 0:J.Q$(void 0,X)}; g.a.nw=function(){return this.Lm.nw()}; g.a.lX=function(){Br(this.Yq);this.ES()};g.a=g.Lt.prototype;g.a.W8=function(X,J,L,x,Q,K){return this.S7.W8(X,J,L,x,Q,K)}; g.a.zI=function(X,J,L,x,Q,K){return this.S7.zI(X,J,L,x,Q,K)}; g.a.vY=function(X){return this.S7.vY(X)}; g.a.VM=function(X){this.S7.VM(X)}; g.a.Q9=function(X,J,L,x){return this.S7.Q9(X,J,L,x)}; g.a.Wb=function(){this.S7.Wb()}; g.a.U1=function(X,J){this.S7.U1(X,J)}; g.a.Sw=function(){this.S7.Sw()}; g.a.VF=XY(56);g.a.fA=function(X,J,L){this.S7.fA(X,J,L)}; g.a.g6=XY(59);g.a.pj=function(X,J,L,x,Q,K,q,D,C){this.S7.pj(X,J,L,x,Q,K,q,D,C)}; g.a.DF=function(X){this.S7.DF(X)}; g.a.IR=function(X){return this.S7.IR(X)}; g.a.Qh=function(X){return this.S7.Qh(X)};g.w(xZ,g.Ly);g.w(iD,xZ);iD.prototype.B=function(X,J){if(X&&J){var L=Number(tV(X,"cpi"))*1+1;isNaN(L)||L<=0||Lthis.N&&(this.N=L,g.Mx(this.L)||(this.L={},this.T.stop(),this.K.stop())),this.L[J]=X,g.Nc(this.K))}}; iD.prototype.j=function(){for(var X=g.d(Object.keys(this.L)),J=X.next();!J.done;J=X.next()){var L=J.value;J=this.publish;for(var x=this.N,Q=g.gA(this.L[L]),K=[],q=g.d(Q[6].split("&")),D=q.next();!D.done;D=q.next())D=D.value,D.indexOf("cpi=")===0?K.push("cpi="+x.toString()):D.indexOf("ek=")===0?K.push("ek="+g.P_(L)):K.push(D);Q[6]="?"+K.join("&");L="skd://"+Q.slice(2).join("");Q=L.length*2;x=new Uint8Array(Q+4);x[0]=Q%256;x[1]=(Q-x[0])/256;for(Q=0;Q0)for(var L=g.d(this.L),x=L.next();!x.done;x=L.next())if(J===x.value.info.cryptoPeriodIndex){J=!0;break a}J=!1}if(!J){J=(0,g.uT)();a:{L=X.cryptoPeriodIndex;if(!isNaN(L)){x=g.d(this.N.values());for(var Q=x.next();!Q.done;Q=x.next())if(Math.abs(Q.value.cryptoPeriodIndex-L)<=1){L=!0;break a}}L=!1}L?(L=X.L,L=Math.max(0,Math.random()*((isNaN(L)?120:L)-30))*1E3):L=0;this.publish("log_qoe",{wvagt:"delay."+L,cpi:X.cryptoPeriodIndex,reqlen:this.L.length}); L<=0?jqW(this,X):(this.L.push({time:J+L,info:X}),g.Nc(this.K,L))}}; Q8.prototype.uB=function(){this.L=[];xZ.prototype.uB.call(this)};var dU={},FiP=(dU.DRM_TRACK_TYPE_AUDIO="AUDIO",dU.DRM_TRACK_TYPE_SD="SD",dU.DRM_TRACK_TYPE_HD="HD",dU.DRM_TRACK_TYPE_UHD1="UHD1",dU);g.w(fue,g.G);g.w(RTY,g.Ly);g.a=RTY.prototype;g.a.fu=function(X){var J=this;if(!(this.E6()||X.size<=0)){var L={};X.forEach(function(x,Q){var K=ib(J.K)?Q:x;Q=new Uint8Array(ib(J.K)?x:Q);ib(J.K)&&gkm(Q);x=g.S3(Q,4);gkm(Q);Q=g.S3(Q,4);J.L[x]?J.L[x].status=K:J.L[Q]?J.L[Q].status=K:J.L[x]={type:"",status:K};qiv(J,J.L[x].type,L)}); QDZ(this,",");Kt(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.a.error=function(X,J,L,x){this.E6()||(this.publish("licenseerror",X,J,L,x),X==="drm.provision"&&(X=(Date.now()-this.B)/1E3,this.B=NaN,this.publish("ctmp","provf",{et:X.toFixed(3)})));y1(J)&&this.dispose()}; g.a.shouldRetry=function(X,J){return!X&&this.requestNumber===J.requestNumber}; g.a.uB=function(){this.L={};g.Ly.prototype.uB.call(this)}; g.a.yr=function(){var X={ctype:this.S.contentType||"",length:this.S.initData.length,requestedKeyIds:this.Pl,cryptoPeriodIndex:this.cryptoPeriodIndex};this.N&&(X.keyStatuses=this.L);return X}; g.a.getInfo=function(){var X=this.T.join();if(qi(this)){var J=new Set,L;for(L in this.L)this.L[L].status!=="usable"&&J.add(this.L[L].type);X+="/UKS."+Array.from(J)}return X+="/"+this.cryptoPeriodIndex}; g.a.Eo=function(){return this.url};g.w(g4,g.G);g.a=g4.prototype;g.a.zV=function(X){if(this.j){var J=X.messageType||"license-request";this.j(new Uint8Array(X.message),J)}}; g.a.fu=function(){this.W&&this.W(this.L.keyStatuses)}; g.a.onClosed=function(){this.E6()||g.To("xboxone")&&this.N&&this.N("closedShouldNotRetry")}; g.a.uA=function(X){this.j&&this.j(X.message,"license-request")}; g.a.iA=function(X){if(this.N){if(this.K){var J=this.K.error.code;X=this.K.error.systemCode}else J=X.errorCode,X=X.systemCode;this.N("t.prefixedKeyError;c."+J+";sc."+X,J,X)}}; g.a.N1=function(){this.B&&this.B()}; g.a.update=function(X){var J=this;if(this.L)return this.L.update(X).then(null,Ff(function(L){$WO(J,"t.update",L)})); this.K?this.K.update(X):this.element.addKey?this.element.addKey(this.S.keySystem,X,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.S.keySystem,X,this.initData,this.sessionId);return c6()}; g.a.uB=function(){this.L&&(this.D?this.L.close().catch(g.PM):this.L.close());this.element=null;g.G.prototype.uB.call(this)};g.w(DM,g.G);g.a=DM.prototype;g.a.setServerCertificate=function(){return this.K.setServerCertificate?this.L.flavor==="widevine"&&this.L.yc?this.K.setServerCertificate(this.L.yc):qP(this.L)&&this.L.Hl?this.K.setServerCertificate(this.L.Hl):null:null}; g.a.createSession=function(X,J){var L=X.initData;if(this.L.keySystemAccess){J&&J("createsession");var x=this.K.createSession();K0(this.L)?L=yiR(L,this.L.Hl):qP(this.L)&&(L=vFm(L)||new Uint8Array(0));J&&J("genreq");X=x.generateRequest(X.contentType,L);var Q=new g4(null,null,null,x,null,this.W);X.then(function(){J&&J("genreqsuccess")},Ff(function(q){$WO(Q,"t.generateRequest",q)})); return Q}if(xH(this.L))return VXe(this,L);if(QG(this.L))return nkI(this,L);if((x=this.element)==null?0:x.generateKeyRequest)this.element.generateKeyRequest(this.L.keySystem,L);else{var K;(K=this.element)==null||K.webkitGenerateKeyRequest(this.L.keySystem,L)}return this.T=new g4(this.element,this.L,L,null,null,this.W)}; g.a.vM=function(X){var J=HrP(this,X);J&&J.uA(X)}; g.a.Qz=function(X){var J=HrP(this,X);J&&J.iA(X)}; g.a.wl=function(X){var J=HrP(this,X);J&&J.N1(X)}; g.a.getMetrics=function(){if(this.K&&this.K.getMetrics)try{var X=this.K.getMetrics()}catch(J){}return X}; g.a.uB=function(){this.N=this.K=null;var X;(X=this.T)==null||X.dispose();X=g.d(Object.values(this.B));for(var J=X.next();!J.done;J=X.next())J.value.dispose();this.B={};g.G.prototype.uB.call(this);delete this.element};g.a=$Z.prototype;g.a.get=function(X){X=this.findIndex(X);return X!==-1?this.values[X]:null}; g.a.remove=function(X){X=this.findIndex(X);X!==-1&&(this.keys.splice(X,1),this.values.splice(X,1))}; g.a.removeAll=function(){this.keys=[];this.values=[]}; g.a.set=function(X,J){var L=this.findIndex(X);L!==-1?this.values[L]=J:(this.keys.push(X),this.values.push(J))}; g.a.findIndex=function(X){return g.w3(this.keys,function(J){return g.NC(X,J)})};g.w(wbZ,g.Ly);g.a=wbZ.prototype;g.a.Llq=function(X){this.i6({onecpt:1});X.initData&&uSR(this,new Uint8Array(X.initData),X.initDataType)}; g.a.YHi=function(X){this.i6({onndky:1});uSR(this,X.initData,X.contentType)}; g.a.xJ=function(X){this.i6({onneedkeyinfo:1});this.m9.Y("html5_eme_loader_sync")&&(this.W.get(X.initData)||this.W.set(X.initData,X));dWm(this,X)}; g.a.bz=function(X){this.N.push(X);Ct(this)}; g.a.createSession=function(X){var J=brm(this)?d7v(X):g.S3(X.initData);this.K.get(J);this.FE=!0;X=new RTY(this.videoData,this.m9,X,this.drmSessionId);this.K.set(J,X);X.subscribe("ctmp",this.eJ,this);X.subscribe("keystatuseschange",this.fu,this);X.subscribe("licenseerror",this.lG,this);X.subscribe("newlicense",this.mE,this);X.subscribe("newsession",this.Lk,this);X.subscribe("sessionready",this.vX,this);X.subscribe("fairplay_next_need_key_info",this.A1,this);this.m9.Y("html5_enable_vp9_fairplay")&&X.subscribe("qualitychange", this.lw,this);X.subscribe("sabrlicenseconstraint",this.exB,this);kVY(X,this.T)}; g.a.mE=function(X){this.E6()||(this.i6({onnelcswhb:1}),X&&!this.heartbeatParams&&(this.heartbeatParams=X,this.publish("heartbeatparams",X)))}; g.a.Lk=function(){this.E6()||(this.i6({newlcssn:1}),this.N.shift(),this.FE=!1,Ct(this))}; g.a.vX=function(){if(xH(this.L)&&(this.i6({onsnrdy:1}),this.vl--,this.vl===0)){var X=this.Km,J,L;(J=X.element)==null||(L=J.msSetMediaKeys)==null||L.call(J,X.N)}}; g.a.fu=function(X){if(!this.E6()){!this.Bl&&this.videoData.Y("html5_log_drm_metrics_on_key_statuses")&&(SiY(this),this.Bl=!0);this.i6({onksch:1});var J=this.lw;if(!qi(X)&&g.lT&&X.K.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var L="large";else{L=[];var x=!0;if(qi(X))for(var Q=g.d(Object.keys(X.L)),K=Q.next();!K.done;K=Q.next())K=K.value,X.L[K].status==="usable"&&L.push(X.L[K].type),X.L[K].status!=="unknown"&&(x=!1);if(!qi(X)||x)L=X.T;L=ir8(L)}J.call(this,L);if(!qi(X))for(J= {},L=g.d(X.T),x=L.next();!x.done;x=L.next())qiv(X,x.value,J);this.videoData.authorizedFormats=X.authorizedFormats;this.publish("keystatuseschange",X)}}; g.a.eJ=function(X,J){this.E6()||this.publish("ctmp",X,J)}; g.a.A1=function(X,J){this.E6()||this.publish("fairplay_next_need_key_info",X,J)}; g.a.lG=function(X,J,L,x){this.E6()||(this.videoData.Y("html5_log_drm_metrics_on_error")&&SiY(this),this.publish("licenseerror",X,J,L,x))}; g.a.jH=function(){return this.S}; g.a.lw=function(X){var J=g.bI("auto",X,!1,"l");if(this.videoData.eX){if(this.S.equals(J))return}else if(Dem(this.S,X))return;this.S=J;this.publish("qualitychange");this.i6({updtlq:X})}; g.a.exB=function(X){this.videoData.sabrLicenseConstraint=X}; g.a.uB=function(){this.L.keySystemAccess&&this.element&&(this.Pl?this.element.setMediaKeys(null).catch(g.PM):this.element.setMediaKeys(null));this.element=null;this.N=[];for(var X=g.d(this.K.values()),J=X.next();!J.done;J=X.next())J=J.value,J.unsubscribe("ctmp",this.eJ,this),J.unsubscribe("keystatuseschange",this.fu,this),J.unsubscribe("licenseerror",this.lG,this),J.unsubscribe("newlicense",this.mE,this),J.unsubscribe("newsession",this.Lk,this),J.unsubscribe("sessionready",this.vX,this),J.unsubscribe("fairplay_next_need_key_info", this.A1,this),this.m9.Y("html5_enable_vp9_fairplay")&&J.unsubscribe("qualitychange",this.lw,this),J.dispose();this.K.clear();this.B.removeAll();this.W.removeAll();this.heartbeatParams=null;g.Ly.prototype.uB.call(this)}; g.a.yr=function(){for(var X={systemInfo:this.L.yr(),sessions:[]},J=g.d(this.K.values()),L=J.next();!L.done;L=J.next())X.sessions.push(L.value.yr());return X}; g.a.getInfo=function(){return this.K.size<=0?"no session":""+this.K.values().next().value.getInfo()+(this.j?"/KR":"")}; g.a.i6=function(X,J){J=J===void 0?!1:J;this.E6()||(Cv(X),(this.m9.YH()||J)&&this.publish("ctmp","drmlog",X))};g.w(hpZ,g.G);g.a=hpZ.prototype;g.a.j_=function(){return!!this.gH}; g.a.AU=function(){return this.K}; g.a.handleError=function(X){var J=this;jDe(this,X);if((X.errorCode!=="html5.invalidstate"&&X.errorCode!=="fmt.unplayable"&&X.errorCode!=="fmt.unparseable"||!vkA(this,X.errorCode,X.details))&&!epW(this,X)){if(this.TH.Km!=="yt"&&G4Z(this,X)&&this.videoData.Cq&&(0,g.uT)()/1E3>this.videoData.Cq&&this.TH.Km==="hm"){var L=Object.assign({e:X.errorCode},X.details);L.stalesigexp="1";L.expire=this.videoData.Cq;L.init=this.videoData.gf/1E3;L.now=(0,g.uT)()/1E3;L.systelapsed=((0,g.uT)()-this.videoData.gf)/1E3; X=new g.Mh(X.errorCode,L,2);this.Lm.kU(X.errorCode,2,"SIGNATURE_EXPIRED",Cv(X.details))}if(y1(X.severity)){var x;L=(x=this.Lm.loader)==null?void 0:x.L.L;if(this.TH.Y("html5_use_network_error_code_enums"))if(TWe(X)&&L&&L.isLocked())var Q="FORMAT_UNAVAILABLE";else if(this.TH.B||X.errorCode!=="auth"||X.details.rc!==429)X.errorCode==="ump.spsrejectfailure"&&(Q="HTML5_SPS_UMP_STATUS_REJECTED");else{Q="TOO_MANY_REQUESTS";var K="6"}else TWe(X)&&L&&L.isLocked()?Q="FORMAT_UNAVAILABLE":this.TH.B||X.errorCode!== "auth"||X.details.rc!=="429"?X.errorCode==="ump.spsrejectfailure"&&(Q="HTML5_SPS_UMP_STATUS_REJECTED"):(Q="TOO_MANY_REQUESTS",K="6");this.Lm.kU(X.errorCode,X.severity,Q,Cv(X.details),K)}else this.Lm.publish("nonfatalerror",X),x=/^pp/.test(this.videoData.clientPlaybackNonce),this.NF(X.errorCode,X.details),x&&X.errorCode==="manifest.net.connect"&&(X="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.uT)(),rv(X,"manifest",function(q){J.B=!0;J.Ni("pathprobe",q)}, function(q){J.NF(q.errorCode,q.details)}))}}; g.a.Ni=function(X,J){this.Lm.xH.Ni(X,J)}; g.a.NF=function(X,J){J=Cv(J);this.Lm.xH.NF(X,J)};Mi.prototype.Ol=function(X){var J=sDo(this);if(!X)return{UF:Qh,oo:Qh,G9:Qh,aD:Qh,lV:Qh,ON:Qh,y6:J};var L=Qh;if(PK(J)||this.Y("html5_perf_cap_override_sticky"))L=Q1A(this,X);return{UF:L,oo:AiI(this,X),G9:k4e(this,X),aD:KOW(this,X.videoData),lV:q6v(this,X.videoData,X),ON:UWY(this,X),y6:J}}; Mi.prototype.nP=function(X){var J;g.U2(this.m9)&&(J=window.screen&&window.screen.width?new g.B_(window.screen.width,window.screen.height):null);J||(J=this.m9.RV?this.m9.RV.clone():this.bb.Lv());(B6||x$||X)&&J.scale(g.D0());return J}; Mi.prototype.Y=function(X){return this.m9.Y(X)};g.w(nt,g.G);nt.prototype.onError=function(X){if(X!=="player.fatalexception"||this.provider.Y("html5_exception_to_health"))X==="sabr.fallback"&&(this.encounteredSabrFallback=!0),X.match(yB0)?this.networkErrorCount++:this.nonNetworkErrorCount++}; nt.prototype.send=function(){if(!(this.N||this.L<0)){Div(this);var X=g.Jy(this.provider)-this.L,J="PLAYER_PLAYBACK_STATE_UNKNOWN",L=this.playerState.pn;this.playerState.isError()?J=L&&L.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.N(this.playerState,2)?J="PLAYER_PLAYBACK_STATE_ENDED":g.N(this.playerState,64)?J="PLAYER_PLAYBACK_STATE_UNSTARTED":g.N(this.playerState,16)||g.N(this.playerState,32)?J="PLAYER_PLAYBACK_STATE_SEEKING":g.N(this.playerState,1)&&g.N(this.playerState, 4)?J="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.N(this.playerState,1)?J="PLAYER_PLAYBACK_STATE_BUFFERING":g.N(this.playerState,4)?J="PLAYER_PLAYBACK_STATE_PAUSED":g.N(this.playerState,8)&&(J="PLAYER_PLAYBACK_STATE_PLAYING");L=iQu[vd(this.provider.videoData)];a:switch(this.provider.m9.playerCanaryState){case "canary":var x="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":x="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:x="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var Q=$iv(this.provider), K=this.K<0?X:this.K-this.L;X=this.provider.m9.In+36E5<(0,g.uT)();J={started:this.K>=0,stateAtSend:J,joinLatencySecs:K,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:x,playerCanaryStage:Q,isAd:this.provider.videoData.isAd(),liveMode:L,hasDrm:!!g.pI(this.provider.videoData),isGapless:this.provider.videoData.W,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:dN(this.provider.videoData)};X||g.QK("html5PlayerHealthEvent",J);this.N=!0;this.dispose()}}; nt.prototype.uB=function(){this.N||this.send();window.removeEventListener("error",this.tE);window.removeEventListener("unhandledrejection",this.tE);g.G.prototype.uB.call(this)}; var yB0=/\bnet\b/;g.w(MaA,g.G);MaA.prototype.uB=function(){nZY(this);g.G.prototype.uB.call(this)};var Vav=/[?&]cpn=/;g.w(V8,g.G);V8.prototype.flush=function(){var X={};this.K&&(X.pe=this.K);this.L.length>0&&(X.pt=this.L.join("."));this.L=[];return X}; V8.prototype.stop=function(){var X=this,J,L,x;return g.p(function(Q){if(Q.K==1)return g.oz(Q,2),g.z(Q,(J=X.T)==null?void 0:J.stop(),4);if(Q.K!=2)return(L=Q.L)&&X.logTrace(L),g.PW(Q,0);x=g.EA(Q);X.K=u6Z(x.message);g.uv(Q)})}; V8.prototype.logTrace=function(X){this.encoder.reset();this.encoder.add(1);this.encoder.add(X.resources.length);for(var J=g.d(X.resources),L=J.next();!L.done;L=J.next()){L=L.value.replace("https://www.youtube.com/s/","");this.encoder.add(L.length);for(var x=0;x=0?X:g.Jy(this.provider),this.Pl?nII.has(this.Sk)&&(this.L.size||(this.Sk==="PL"?X>=this.K+30:X<=this.Km+30||X>=this.K+1200&&X<=this.Km+86400))&&(g.a1(this,X,"vps",[this.Sk]),this.K=X):["PL","B","S"].indexOf(this.Sk)>-1&&(this.L.size||X>=this.K+30)&&(g.a1(this,X,"vps",[this.Sk]),this.K=X),this.L.size)){this.sequenceNumber===7E3&&g.PM(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){d4(this,X);var J=this.provider.Lm.e8(); J=g.d(J);for(var L=J.next();!L.done;L=J.next())L=L.value,this.Ni(L.key,L.value);J=X;L=this.provider.Lm.S6();var x=L.droppedVideoFrames||0,Q=L.totalVideoFrames||0,K=x-this.ib,q=Q&&!this.ub;x>L.totalVideoFrames||K>5E3?vZm(this,"html5.badframedropcount","df."+x+";tf."+L.totalVideoFrames):(K>0||q)&&g.a1(this,J,"df",[K]);this.ib=x;this.ub=Q;this.S>0&&(g.a1(this,X,"glf",[this.S]),this.S=0);td.isActive()&&(X=td.Nt(),Object.keys(X).length>0&&this.Ni("profile",X));this.z6&&uD(this,"lwnmow");this.provider.m9.YH()&& this.provider.Y("html5_record_now")&&this.Ni("now",{wt:(0,g.uT)()});X={};this.provider.videoData.K&&(X.fmt=this.provider.videoData.K.itag,(J=this.provider.videoData.T)&&J.itag!==X.fmt&&(X.afmt=J.itag));X.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(X.adcpn=this.adCpn);this.D1&&(X.addocid=this.D1);this.contentCpn&&(X.ccpn=this.contentCpn);this.FE&&(X.cdocid=this.FE);this.provider.videoData.cotn&&(X.cotn=this.provider.videoData.cotn);X.el=m_(this.provider.videoData);X.content_v=ZX(this.provider.videoData); X.ns=this.provider.m9.Km;X.fexp=sJY(this.provider.m9.experiments).toString();X.cl=(774994103).toString();(J=this.provider.videoData.adFormat||this.adFormat)&&(X.adformat=J);(J=vd(this.provider.videoData))&&(X.live=J);this.provider.videoData.zC()&&(X.drm=1,this.provider.videoData.j&&(X.drm_system=xz3[this.provider.videoData.j.flavor]||0),this.provider.videoData.drmProduct&&(X.drm_product=this.provider.videoData.drmProduct));iZ()&&this.provider.videoData.B&&(X.ctt=this.provider.videoData.B,X.cttype= this.provider.videoData.SQ,this.provider.videoData.mdxEnvironment&&(X.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(X.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.pC&&(X.dai_fallback="1")):this.provider.videoData.JP?X.dai="cs":this.provider.videoData.hH&&(X.dai="disabled");X.seq=this.sequenceNumber++;if(this.provider.videoData.Z4){if(J=this.provider.videoData.Z4,X&&J)for(J.ns==="3pp"&&(X.ns="3pp"),this.RT.has(J.ns)&& uD(this,"hbps"),J.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=J.shbpslc),this.provider.m9.experiments.Mi("html5_use_server_qoe_el_value")&&this.O6.delete("el"),L=g.d(Object.keys(J)),x=L.next();!x.done;x=L.next())x=x.value,this.O6.has(x)||(X[x]=J[x])}else X.event="streamingstats",X.docid=this.provider.videoData.videoId,X.ei=this.provider.videoData.eventId;this.isEmbargoed&&(X.embargoed="1");Object.assign(X,this.provider.m9.L);if(J=X.seq)J={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+J,serializedWatchEndpointLoggingContext:this.provider.videoData.RNH},this.serializedHouseBrandPlayerServiceLoggingContext&&(J.serializedHouseBrandPlayerServiceLoggingContext=c5(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(J.playerResponseCpn=this.provider.videoData.playerResponseCpn),O6.length&&(J.decoderInfo=O6),this.remoteControlMode&&(J.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(J.remoteConnectedDevices= this.remoteConnectedDevices),J=g.Us(J,uzv),J=g.S3(J,4),this.L.set("qclc",[J]);X=g.Hw("//"+this.provider.m9.yS+"/api/stats/qoe",X);L=J="";x=g.d(this.L.entries());for(Q=x.next();!Q.done;Q=x.next())K=g.d(Q.value),Q=K.next().value,K=K.next().value,q=void 0,(q=K)!=null&&q.join&&(Q="&"+Q+"="+K.join(","),Q.length>100?L+=Q:J+=Q);zuv(this,X+J,L.replace(/ /g,"%20"))}this.L.clear()}}; g.a.Rh=function(X){this.z6=X}; g.a.I8=function(){if(this.provider.videoData.j){var X=this.provider.videoData.j;uD(this,"eme-"+(X.keySystemAccess?"final":xH(X)?"ms":K0(X)?"ytfp":QG(X)?"safarifp":"nonfinal"))}}; g.a.IS=XY(53);g.a.x6=function(X){this.isEmbargoed=X}; g.a.Sz=XY(30);g.a.GC=XY(36);g.a.onPlaybackRateChange=function(X){var J=g.Jy(this.provider);X&&X!==this.H9&&(g.a1(this,J,"rate",[X]),this.H9=X);this.Pl||this.reportStats(J)}; g.a.Xs=XY(24);g.a.getPlayerState=function(X){if(g.N(X,128))return"ER";if(g.N(X,2048))return"B";if(g.N(X,512))return"SU";if(g.N(X,16)||g.N(X,32))return"S";if(X.isOrWillBePlaying()&&g.N(X,64))return"B";var J=V30[Yj(X)];g.nD(this.provider.m9)&&J==="B"&&this.provider.Lm.getVisibilityState()===3&&(J="SU");J==="B"&&g.N(X,4)&&(J="PB");return J}; g.a.uB=function(){g.G.prototype.uB.call(this);g.yQ(this.aB);g.yQ(this.If)}; g.a.Bj=function(X){this.isOffline=X;g.a1(this,g.Jy(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.a.Ni=function(X,J,L){var x=this.oT.indexOf(X)!==-1;x||this.oT.push(X);if(!L||!x){var Q=typeof J!=="string"?Cv(J):J;Q=T4e(Q);if(!L&&!/^t[.]/.test(Q)){var K=g.Jy(this.provider)*1E3;Q="t."+K.toFixed()+";"+Q}ty(this,"ctmp",X+":"+Q);this.logger.debug(function(){return"ctmp "+X+" "+Q}); WOm(this);return K}}; g.a.OI=function(X,J,L){this.j={jnI:Number(this.Ni("glrem",{nst:X.toFixed(),rem:J.toFixed(),ca:+L})),bq:X,iYl:J,isAd:L}}; g.a.gB=function(X,J,L){g.a1(this,g.Jy(this.provider),"ad_playback",[X,J,L])}; g.a.MS=function(X,J){var L=g.Jy(this.provider)*1E3;ty(this,"daism","t."+L.toFixed(0)+";smw."+(X*1E3).toFixed(0)+";smo."+(J*1E3).toFixed(0))}; g.a.resume=function(){var X=this;isNaN(this.aB)?p$8(this):this.aB=g.CU(function(){X.reportStats()},1E4)}; var uC={},V30=(uC[5]="N",uC[-1]="N",uC[3]="B",uC[0]="EN",uC[2]="PA",uC[1]="PL",uC[-1E3]="ER",uC[1E3]="N",uC),nII=new Set(["PL","B","S"]),O6=[];eue.prototype.update=function(){if(this.W){var X=this.eT()||0,J=g.Jy(this.provider);X>=this.provider.Lm.getDuration()-.1&&(this.previouslyEnded=!0);if(X!==this.L||RuR(this,X,J)){var L;if(!(L=XJ-this.aY+2||RuR(this,X,J))){L=this.provider.Lm.getVolume();var x=L!==this.D,Q=this.provider.Lm.isMuted()?1:0;Q!==this.S?(this.S=Q,L=!0):(!x||this.T>=0||(this.D=L,this.T=J),L=J-this.T,this.T>=0&&L>2?(this.T=-1,L=!0):L=!1)}L&&(Sa(this),this.N=X);this.aY=J;this.L=X}}}; eue.prototype.eT=function(){var X=this.provider.Lm.eT();return this.provider.m9.Y("html5_disable_live_dvr_shrink_for_cdm_vss")&&tv(this.provider.videoData)?X+this.provider.Lm.W4():X};B48.prototype.send=function(X){var J=this;if(!this.J0){var L=N4Y(this),x=g.Hw(this.uri,L);this.m9.Y("vss_through_gel_double")&&UiA(x);this.FE&&!this.m9.Y("html5_simplify_pings")?XSY(this,x):s1I(this,X).then(function(Q){J.FE&&(Q=Q||{},Q.method="POST",Q.postParams={atr:J.attestationResponse});w$m(x,Q,{token:J.aB,dT:J.Nx,mdxEnvironment:J.mdxEnvironment},J.m9,X,J.gI,J.isFinal&&J.In||J.Bl||J.N&&J.HO)}); this.J0=!0}}; B48.prototype.K=function(X){X===void 0&&(X=NaN);return Number(X.toFixed(3)).toString()}; var oR={},ZtW=(oR.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,oR.LIVING_ROOM_APP_MODE_MAIN=1,oR.LIVING_ROOM_APP_MODE_KIDS=2,oR.LIVING_ROOM_APP_MODE_MUSIC=3,oR.LIVING_ROOM_APP_MODE_UNPLUGGED=4,oR.LIVING_ROOM_APP_MODE_GAMING=5,oR),bC={},kAI=(bC.EMBEDDED_PLAYER_MODE_UNKNOWN=0,bC.EMBEDDED_PLAYER_MODE_DEFAULT=1,bC.EMBEDDED_PLAYER_MODE_PFP=2,bC.EMBEDDED_PLAYER_MODE_PFL=3,bC);g.w(c$,g.G);c$.prototype.HD=function(){this.L.update();giR(this)&&(x9P(this),iSo(this))}; c$.prototype.uB=function(){g.G.prototype.uB.call(this);hy(this);FOR(this.L)}; c$.prototype.yr=function(){return N4Y(E6(this,"playback"))}; c$.prototype.h2=function(X){var J=E6(this,"engage");J.Pl=X;return miO(J,niR(this.provider))};yrY.prototype.isEmpty=function(){return this.endTime===this.startTime};W$.prototype.Y=function(X){return this.m9.Y(X)}; W$.prototype.getCurrentTime=function(){return this.Lm.getCurrentTime()}; W$.prototype.eT=function(){return this.Lm.eT()}; var VdR={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.w(g.pt,g.G);g.a=g.pt.prototype;g.a.HD=function(){if(this.provider.videoData.enableServerStitchedDai&&this.A2){var X;(X=this.N.get(this.A2))==null||X.HD()}else this.L&&this.L.HD()}; g.a.x6=function(X){this.qoe&&this.qoe.x6(X)}; g.a.Sz=XY(29);g.a.GC=XY(35);g.a.MS=function(X,J){this.qoe&&this.qoe.MS(X,J)}; g.a.FO=function(){if(this.provider.videoData.enableServerStitchedDai&&this.A2){var X;(X=this.N.get(this.A2))!=null&&Sa(X.L)}else this.L&&Sa(this.L.L)}; g.a.NF=function(X,J){this.qoe&&vZm(this.qoe,X,J);if(this.K)this.K.onError(X)}; g.a.onPlaybackRateChange=function(X){if(this.qoe)this.qoe.onPlaybackRateChange(X);this.L&&Sa(this.L.L)}; g.a.IS=XY(52);g.a.Ni=function(X,J,L){this.qoe&&this.qoe.Ni(X,J,L)}; g.a.OI=function(X,J,L){this.qoe&&this.qoe.OI(X,J,L)}; g.a.CV=function(X){var J;(J=this.qoe)==null||J.CV(X)}; g.a.jw=function(X){var J;(J=this.qoe)==null||J.jw(X)}; g.a.Rh=function(X){this.qoe&&this.qoe.Rh(X)}; g.a.gB=function(X,J,L){this.qoe&&this.qoe.gB(X,J,L)}; g.a.Xs=XY(23);g.a.qZ=function(){if(this.qoe)return this.qoe.qZ()}; g.a.yr=function(){if(this.provider.videoData.enableServerStitchedDai&&this.A2){var X,J;return(J=(X=this.N.get(this.A2))==null?void 0:X.yr())!=null?J:{}}return this.L?this.L.yr():{}}; g.a.U7=function(){var X;return(X=this.qoe)==null?void 0:X.U7()}; g.a.AZ=function(X,J){var L;(L=this.qoe)==null||L.AZ(X,J)}; g.a.h2=function(X){return this.L?this.L.h2(X):function(){}}; g.a.getVideoData=function(){return this.provider.videoData}; g.a.resume=function(){this.qoe&&this.qoe.resume()};g.w(g.r4,g.G);g.a=g.r4.prototype;g.a.tj=function(X,J){this.sync();J&&this.L.array.length>=2E3&&this.YA("captions",1E4);J=this.L;if(X.length>1&&X.length>J.array.length)J.array=J.array.concat(X),J.array.sort(J.L);else{X=g.d(X);for(var L=X.next();!L.done;L=X.next())L=L.value,!J.array.length||J.L(L,J.array[J.array.length-1])>0?J.array.push(L):g.Uu(J.array,L,J.L)}this.N=NaN;this.sync()}; g.a.nA=function(X){X.length>1E4&&g.PM(new g.Fm("Over 10k cueRanges removal occurs with a sample: ",X[0]));if(!this.E6()){var J=new Set(X);this.K=this.K.filter(function(L){return!J.has(L)}); z1R(this.L,J);this.sync()}}; g.a.d_=function(X,J){if(!this.E6()){var L=this.Ri().find(function(x){return x.id===J&&x.namespace===X}); L&&this.nA([L])}}; g.a.YA=function(X,J){var L=(isNaN(this.N)?jU8(this):this.N)-J;J=this.Ri().filter(function(x){return x.namespace===X&&x.endthis.L,K=g.N(L,8)&&g.N(L,16),q=this.Lm.QQ().isBackground()||L.isSuspended();s6(this,this.SC,K&&!q,Q,"qoe.slowseek",function(){},"timeout"); var D=isFinite(this.L);D=K&&D&&R9R(J,this.L);var C=!x||Math.abs(x-this.L)>10,M=this.m9.Y("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),y=x===0&&this.K&&[11,10].includes(this.K);s6(this,this.J0,D&&C&&!q&&(!M||!y),Q,"qoe.slowseek",function(){J.seekTo(X.L)},"set_cmt"); C=D&&kr(J.SW(),this.L);var n=this.Lm.loader;D=!n||n.MC();var V=function(){J.seekTo(X.L+.001)}; s6(this,this.Bl,C&&D&&!q,Q,"qoe.slowseek",V,"jiggle_cmt");D=function(){return X.Lm.ud()}; s6(this,this.jC,C&&!q,Q,"qoe.slowseek",D,"new_elem");y=EH(L);C=L.isBuffering();var H=J.SW(),O=mL(H,x),u=O>=0&&H.end(O)>x+5,S=y&&C&&u;M=this.Lm.getVideoData();s6(this,this.vl,x<.002&&this.L<.002&&K&&g.nD(this.m9)&&g.kU(M)&&!q,Q,"qoe.slowseek",D,"slow_seek_shorts");s6(this,this.D,M.Ev()&&K&&!q&&!M.Pl,Q,"qoe.slowseek",D,"slow_seek_gapless_shorts");s6(this,this.Km,S&&!q,y&&!C,"qoe.longrebuffer",V,"jiggle_cmt");s6(this,this.aB,S&&!q,y&&!C,"qoe.longrebuffer",D,"new_elem_nnr");if(n){var Y=n.getCurrentTime(); K=J.IP();K=WTY(K,Y);K=!n.isSeeking()&&x===K;s6(this,this.Nx,y&&C&&K&&!q,y&&!C&&!K,"qoe.longrebuffer",function(){J.seekTo(Y)},"seek_to_loader")}K={}; V=mL(H,Math.max(x-3.5,0));S=V>=0&&x>H.end(V)-1.1;var h=V>=0&&V+1=0&&S&&h<11;K.close2edge=S;K.gapsize=h;K.buflen=H.length;this.K&&(K.seekSour=this.K);s6(this,this.Pl,y&&C&&!q,y&&!C,"qoe.longrebuffer",function(){},"timeout",K); K=L.isSuspended();K=this.Lm.Sl()&&!K;s6(this,this.W,K,!K,"qoe.start15s",function(){X.Lm.Rn("ad")},"ads_preroll_timeout"); K=this.m9.experiments.Mi("html5_use_playback_rate_in_skip_slow_ad")?this.Lm.getPlaybackRate()*1E3:1E3;O=x-this.T5;s6(this,this.bB,g.kU(M)&&n,y&&!C,"qoe.longrebuffer",function(){X.Lm.md()},"reset_media_source"); s6(this,this.Hl,g.kU(M)&&n,y&&!C,"qoe.longrebuffer",D,"reset_media_element");this.T===0&&(this.B=x);n=C&&this.L===0&&x>1&&x===this.B;s6(this,this.gI,g.kU(M)&&n,y&&!C,"qoe.slowseek",function(){J.seekTo(0)},"reseek_after_time_jump"); q=L.isOrWillBePlaying()&&!q;u=this.Lm.z4()-x<6&&!u&&this.Lm.Gs();s6(this,this.S,M.Ev()&&q&&C&&u,y&&!C,"qoe.longrebuffer",function(){X.Lm.ud(!1,!0)},"handoff_end_long_buffer_reload"); q=this.K===104||this.Lm.Aw;L=Or(M)&&M.isAd()&&!M.Pl&&q&&(C||g.N(L,8)&&g.N(L,16));s6(this,this.O6,L,Q,"qoe.start15s",D,"gapless_ad_slow_start");this.T=x;this.j.start()}}; B$.prototype.NF=function(X,J,L){J=this.yr(J);J.wn=L;J.wdup=this.N[X]?"1":"0";this.Lm.NF(new g.Mh(X,J));this.N[X]=!0}; B$.prototype.yr=function(X){X=Object.assign(this.Lm.yr(!0),X.yr());this.L&&(X.stt=this.L.toFixed(3));this.Lm.getVideoData().isLivePlayback&&(X.ct=this.Lm.getCurrentTime().toFixed(3),X.to=this.Lm.W4().toFixed(3));delete X.uga;delete X.euri;delete X.referrer;delete X.fexp;delete X.vm;return X}; R1.prototype.reset=function(){this.L=this.K=this.N=this.startTimestamp=0;this.T=!1}; R1.prototype.test=function(X){if(!this.j||this.K)return!1;if(!X)return this.reset(),!1;X=(0,g.uT)();if(!this.startTimestamp)this.startTimestamp=X,this.N=0;else if(this.N>=this.j)return this.K=X,!0;this.N+=1;return!1}; R1.prototype.yr=function(){var X={},J=(0,g.uT)();this.startTimestamp&&(X.wsd=(J-this.startTimestamp).toFixed());this.K&&(X.wtd=(J-this.K).toFixed());this.L&&(X.wssd=(J-this.L).toFixed());return X};g.w(xgW,g.G);g.a=xgW.prototype;g.a.setMediaElement=function(X){(this.mediaElement=X)?(this.mediaElement&&(this.j||this.N||!this.mediaElement.Qt()||this.seekTo(.01,{B9:"seektimeline_setupMediaElement"})),Ni(this)):mO(this)}; g.a.getCurrentTime=function(X){X=X===void 0?!1:X;if(U6(this.Lm)){if(this.Y("html5_use_centralized_player_time")&&!X&&!isNaN(this.B))return this.B;if(!isNaN(this.K))return this.K}else{if(this.Y("html5_use_centralized_player_time")&&!X&&!isNaN(this.B)&&isFinite(this.B))return this.B;if(!isNaN(this.K)&&isFinite(this.K))return this.K}return this.mediaElement&&Oiv(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.N||0}; g.a.di=function(){return this.O6}; g.a.eT=function(){return this.getCurrentTime()-this.W4()}; g.a.Fb=function(){return this.L?this.L.Fb():Infinity}; g.a.isAtLiveHead=function(X){if(!this.L)return!1;X===void 0&&(X=this.getCurrentTime());return ea(this.L,X)}; g.a.m$=function(){return!!this.L&&this.L.m$()}; g.a.seekTo=function(X,J){var L=J===void 0?{}:J;J=L.CE===void 0?!1:L.CE;var x=L.nN===void 0?0:L.nN;var Q=L.nG===void 0?!1:L.nG;var K=L.IN===void 0?0:L.IN;var q=L.B9===void 0?"":L.B9;var D=L.seekSource===void 0?void 0:L.seekSource;var C=L.gJ===void 0?!1:L.gJ;var M=L.NS===void 0?!1:L.NS;L=L.hp===void 0?!1:L.hp;C&&(X+=this.W4());dN(this.videoData)&&D===29&&(this.O6=void 0);C=X=this.il())||!g.ew(this.videoData),u||(S={st:S,mst:this.il()},this.L&&this.Y("html5_high_res_seek_logging")&&(S.ht=this.L.Fb(),S.adft=m9v(this.L)),this.Lm.Ni("seeknotallowed",S)),S=u));if(!S)return this.T&&(this.T=null,nCA(this)),g.YW(this.getCurrentTime());S=.005;M&&this.Y("html5_sabr_seek_no_shift_tolerance")&&(S=0);if(Math.abs(X-this.K)<=S&&this.gI)return this.j;q&&(S=X,(this.m9.YH()||this.Y("html5_log_seek_reasons"))&& this.Lm.Ni("seekreason",{reason:q,tgt:S}));D&&(this.Km.K=D);this.gI&&mO(this);this.j||(this.j=new Vy);X&&!isFinite(X)&&qJe(this,!1);(q=L||C)||(q=X,q=!(this.videoData.isLivePlayback&&this.videoData.N&&!this.videoData.N.L&&!(this.mediaElement&&this.mediaElement.Ab()>0&&OH(this.mediaElement)>0)||Pd(this.videoData)&&this.c9()===this.il(!1)?0:isFinite(q)||!Pd(this.videoData)));q||(X=ZM(this,X,Q));X&&!isFinite(X)&&qJe(this,!1);this.Y("html5_use_centralized_player_time")?this.B=X:this.K=this.N=X;this.bB= K;this.W=0;this.L&&(Q=this.L,K=X,kzo(Q,K,!1),ZSm(Q,K));Q=this.Lm;K=X;q={CE:J,seekSource:D};Q.IT.N=K;L=Q.qE;L.mediaTime=K;L.L=!0;q.CE&&Q.Gd(q);q=K>Q.videoData.endSeconds&&K>Q.videoData.limitedPlaybackDurationInSeconds;Q.BN&&q&&isFinite(K)&&Uge(Q);KJ.start&&Uge(this.Lm);return this.j}; g.a.il=function(X){if(!this.videoData.isLivePlayback)return this.Lm.videoData.il();var J;return gB(this.videoData)&&((J=this.mediaElement)==null?0:J.isPaused())&&this.videoData.L?(X=this.getCurrentTime(),WuW(this.L3(X)*1E3)+X):this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&dN(this.videoData)&&this.videoData.L?X?this.videoData.L.aB||0:this.videoData.L.Xb||0:Pd(this.videoData)&&this.videoData.Km&&this.videoData.L?this.videoData.L.il()+this.timestampOffset:this.videoData.N&&this.videoData.N.L? !X&&this.L?this.L.Fb():this.Lm.videoData.il()+this.timestampOffset:this.mediaElement?e7()?WuW(this.mediaElement.iO().getTime()):OH(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.a.c9=function(){if(this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&dN(this.videoData)){var X;return((X=this.videoData.L)==null?void 0:X.L1)||0}X=this.videoData?this.videoData.c9()+this.timestampOffset:this.timestampOffset;if(gB(this.videoData)&&this.videoData.L){var J,L=Number((J=this.videoData.progressBarStartPosition)==null?void 0:J.utcTimeMillis)/1E3;J=this.getCurrentTime();J=this.L3(J)-J;if(!isNaN(L)&&!isNaN(J))return Math.max(X,L-J)}return X}; g.a.ob=function(){this.j||this.seekTo(this.N,{B9:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.a.Kz=function(){return this.gI&&!isFinite(this.K)}; g.a.uB=function(){ImS(this,null);this.Km.dispose();g.G.prototype.uB.call(this)}; g.a.yr=function(){var X={};this.loader&&Object.assign(X,this.loader.yr());this.mediaElement&&Object.assign(X,this.mediaElement.yr());return X}; g.a.xt=function(X){this.timestampOffset=X}; g.a.getStreamTimeOffset=function(){return Pd(this.videoData)?0:this.videoData.L?this.videoData.L.getStreamTimeOffset():0}; g.a.W4=function(){return this.timestampOffset}; g.a.L3=function(X){return this.videoData&&this.videoData.L?this.videoData.L.L3(X-this.timestampOffset):NaN}; g.a.qC=function(){if(!this.mediaElement)return 0;if(FQ(this.videoData)){var X=this.mediaElement,J=X.SW();X=(XO(J)&&X.getDuration()?J.end(J.length-1):0)+this.timestampOffset-this.c9();J=this.il()-this.c9();return Math.max(0,Math.min(1,X/J))}return this.mediaElement.qC()}; g.a.Wz=function(X){this.S&&(this.S.L=X)}; g.a.zw=function(X,J){this.Lm.Ni("requestUtcSeek",{time:X});dN(this.videoData)&&(this.O6=X);var L;(L=this.loader)==null||L.zw(X);J&&(this.FE=J)}; g.a.zp=function(X){dN(this.videoData)&&(this.O6=void 0);if(this.FE)this.Lm.Ni("utcSeekingFallback",{source:"streamTime",timeSeconds:this.FE}),this.Lm.seekTo(this.FE,{B9:"utcSeekingFallback_streamTime"}),this.FE=0;else{var J=this.getCurrentTime();isNaN(J)||(X=this.L3(J)-X,J-=X,this.Lm.Ni("utcSeekingFallback",{source:"estimate",timeSeconds:J}),this.Lm.seekTo(J,{B9:"utcSeekingFallback_estimate"}))}}; g.a.pL=function(){this.FE=0}; g.a.Y=function(X){return this.m9&&this.m9.Y(X)};g.w(Ay,g.G);Ay.prototype.start=function(){this.K.start()}; Ay.prototype.stop=function(){this.K.stop()}; Ay.prototype.clear=function(){for(var X=g.d(this.L.values()),J=X.next();!J.done;J=X.next())J.value.clear()}; Ay.prototype.sample=function(){for(var X=g.d(this.N),J=X.next();!J.done;J=X.next()){var L=g.d(J.value);J=L.next().value;L=L.next().value;this.L.has(J)||this.L.set(J,new oCe(HQu.has(J)));this.L.get(J).update(L())}this.K.start()}; var HQu=new Set(["networkactivity"]);oCe.prototype.update=function(X){this.K?(this.buffer.add(X-this.L||0),this.L=X):this.buffer.add(X)}; oCe.prototype.clear=function(){this.buffer.clear();this.L=0};LS.prototype.Kj=function(){return this.started}; LS.prototype.start=function(){this.started=!0}; LS.prototype.reset=function(){this.finished=this.started=!1};var ECv=!1;g.w(g.KS,g.Ly);g.a=g.KS.prototype;g.a.uB=function(){this.logger.debug("dispose");g.yQ(this.EL);YiP(this.Dt);this.visibility.unsubscribe("visibilitystatechange",this.Dt);tdP(this.xH);g.Lq(this.xH);gl(this);g.j$.rZ(this.GZ);this.Fs();this.nY=null;g.Lq(this.videoData);g.Lq(this.iW);g.Lq(this.wr);g.Lq(this.Q2);g.xN(this.QBI);this.BN=null;g.Ly.prototype.uB.call(this)}; g.a.gB=function(X,J,L,x,Q){if(this.m9.Y("html5_log_ad_playback_docid")){var K=this.xH;if(K.qoe){K=K.qoe;var q=this.m9.Km||"yt";g.a1(K,g.Jy(K.provider),"ad_playback",[X,J,L,Q,q])}}else this.xH.gB(X,J,L);this.Y("html5_log_media_perf_info")&&this.Ni("adloudness",{ld:x.toFixed(3),cpn:X})}; g.a.IZ=function(){var X;return(X=this.loader)==null?void 0:X.IZ()}; g.a.H8=function(){var X;return(X=this.loader)==null?void 0:X.H8()}; g.a.Uw=function(){var X;return(X=this.loader)==null?void 0:X.Uw()}; g.a.DT=function(){var X;return(X=this.loader)==null?void 0:X.DT()}; g.a.zC=function(){return this.videoData.zC()}; g.a.rp=function(){return this.Y("html5_not_reset_media_source")&&!this.zC()&&!this.videoData.isLivePlayback&&g.kU(this.videoData)&&!this.m9.supportsGaplessShorts()}; g.a.Jm=function(){this.videoData.W&&(this.videoData.Gw=this.videoData.Gw||this.dQ.nm().IZ(),this.videoData.mP=this.videoData.mP||this.dQ.nm().H8());if(tzR(this.videoData)||!qM(this.videoData)){var X=this.videoData.errorDetail;this.kU(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),X,X,this.videoData.ZS||void 0)}this.Y("html5_generate_content_po_token")&&this.rN();this.Y("html5_enable_d6de4")&&this.HV()}; g.a.getVideoData=function(){return this.videoData}; g.a.G=function(){return this.m9}; g.a.Ol=function(){return this.WJ.Ol(this.nY)}; g.a.QQ=function(){return this.visibility}; g.a.S5=function(){return this.mediaElement&&this.mediaElement.Yo()?this.mediaElement.kH():null}; g.a.tP=function(){return this.mediaElement}; g.a.uC=function(){if(this.Y("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.G().B&&this.G().houseBrandUserStatus&&this.Ni("hbut",{status:this.G().houseBrandUserStatus},!0);if(this.videoData.bl())return!0;this.kU("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.a.IG=function(X){(X=X===void 0?!1:X)||HSz(this.xH);this.yp=X;!this.uC()||this.uL.Kj()?g.nD(this.m9)&&this.videoData.isLivePlayback&&this.uL.Kj()&&!this.uL.finished&&!this.yp&&this.nH():(this.uL.start(),X=this.xH,g.Jy(X.provider),X.qoe&&p$8(X.qoe),this.nH())}; g.a.nH=function(){if(this.videoData.isLoaded()){var X=this.iW;g.J_(X.TH.experiments,"html5_player_min_build_cl")>0&&g.J_(X.TH.experiments,"html5_player_min_build_cl")>774994103&&fjY(X,"oldplayer");RLR(this)}else this.videoData.xj||this.videoData.cq?this.yp&&g.nD(this.m9)&&this.videoData.isLivePlayback||(this.videoData.xj?Q8v(this.videoData):(X=this.xH,X.qoe&&(X=X.qoe,uD(X,"protected"),X.provider.videoData.j?X.I8():X.provider.videoData.subscribe("dataloaded",X.I8,X)),XZv(this.videoData))):!this.videoData.loading&& this.TE&&eLY(this)}; g.a.Ft=function(X){this.S7=X;this.loader&&(S8S(this.loader,new g.Lt(X)),this.Ni("sdai",{sdsstm:1}))}; g.a.qf=function(X,J,L){var x;(x=this.loader)==null||x.qf(X,J,L)}; g.a.H_=XY(8);g.a.isFullscreen=function(){return this.visibility.isFullscreen()}; g.a.isBackground=function(){return this.visibility.isBackground()}; g.a.O1=function(){var X=this;this.logger.debug("Updating for format change");q9(this).then(function(){return Q6(X)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.a.SD=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.IG();this.uC()&&!g.N(this.playerState,128)&&(this.hs.Kj()||(this.hs.start(),this.videoData.tB?this.iH(bw(this.playerState,4)):this.iH(bw(bw(this.playerState,8),1))),FGv(this))}; g.a.Lz=function(){return this.uL.finished}; g.a.sendAbandonmentPing=function(){g.N(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.KC(!0),tdP(this.xH),g.Lq(this.xH),g.j$.rZ(this.GZ))}; g.a.Cj=function(X,J){X=X===void 0?!0:X;(J===void 0||J)&&this.mediaElement&&this.mediaElement.pause();this.iH(X?new g.ds(14):new g.ds)}; g.a.oG=function(){this.xH.FO()}; g.a.kU=function(X,J,L,x,Q,K){this.logger.debug(function(){return"set player error: ec="+X+", detail="+Q}); var q,D;g.$S(Y9F,L)?q=L:L?D=L:q="GENERIC_WITHOUT_LINK";x=(x||"")+(";a6s."+NR());if(X==="auth"||X==="drm.auth"||X==="heartbeat.stop")L&&(x+=";r."+L.replaceAll(" ","_")),K&&(x+="sr."+K.replaceAll(" ","_"));J={errorCode:X,errorDetail:Q,errorMessage:D||g.Bm[q]||"",qb:q,ZS:K||"",UL:x,I4:J,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=X;IU(this,"dataloaderror");this.iH(oJ(this.playerState,128,J));g.j$.rZ(this.GZ);gl(this);this.UQ()}; g.a.Rn=function(X){this.Vo=this.Vo.filter(function(J){return X!==J}); this.logger.debug(function(){return"set preroll ready for "+X}); this.hs.Kj()&&FGv(this)}; g.a.ZK=function(){var X;(X=!!this.Vo.length)||(X=this.fW.L.array[0],X=!!X&&X.start<=-0x8000000000000);return X}; g.a.m$=function(){return this.IT.m$()}; g.a.isPlaying=function(){return this.playerState.isPlaying()}; g.a.RU=function(){return this.playerState.RU()&&this.videoData.tB}; g.a.getPlayerState=function(){return this.playerState}; g.a.xT=function(X){var J;(J=this.loader)==null||J.xT(X)}; g.a.W3=function(X){var J;(J=this.loader)==null||J.W3(X)}; g.a.getPlayerType=function(){return this.playerType}; g.a.getPreferredQuality=function(){if(this.nY){var X=this.nY;X=X.videoData.ri.compose(X.videoData.EW);X=E_(X)}else X="auto";return X}; g.a.Sf=XY(16);g.a.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.a.setMediaElement=function(X){this.logger.debug("set media element");if(this.mediaElement&&X.kH()===this.mediaElement.kH()&&(X.isView()||this.mediaElement.isView())){if(X.isView()||!this.mediaElement.isView())this.Fe(),this.mediaElement=X,this.mediaElement.Lm=this,q3W(this),this.IT.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Fs();if(!this.playerState.isError()){var J=S5(this.playerState,512);g.N(J,8)&&!g.N(J,2)&&(J=bw(J,1));X.isView()&&(J=S5(J,64));this.iH(J)}this.mediaElement= X;this.mediaElement.Lm=this;!g.nD(this.m9)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);q3W(this);this.IT.setMediaElement(this.mediaElement);this.Y("html5_prewarm_media_source")&&!this.iW.j_()&&fnP(this.mediaElement)}}; g.a.Fs=function(X,J,L){X=X===void 0?!1:X;J=J===void 0?!1:J;L=L===void 0?!1:L;this.logger.debug("remove media element");if(this.mediaElement){var x=this.getCurrentTime();x>0&&(this.IT.N=x);this.IT.setMediaElement(null);!X&&this.rp()?LwW(this):this.q8(L);this.loader&&(mV(this.loader),M9(this,J));this.hh.stop();if(this.mediaElement&&(!this.hs.Kj()&&!this.Sl()||this.playerState.isError()||g.N(this.playerState,2)||this.iH(bw(this.playerState,512)),this.mediaElement)){this.Fe();if(X||!this.mediaElement.isView())this.gt.u8("mesv_s"), this.mediaElement.stopVideo(),y6(this);this.mediaElement=this.mediaElement.Lm=null}}}; g.a.playVideo=function(X,J){X=X===void 0?!1:X;J=J===void 0?!1:J;var L=this,x,Q,K,q,D,C,M;return g.p(function(y){if(y.K==1){L.logger.debug("start play video");var n=window.google_image_requests;n&&n.length>10&&(window.google_image_requests=n.slice(-10));if(g.N(L.playerState,128))return y.return();if(L.iW.AU())return L.publish("signatureexpired"),y.return();L.mediaElement&&HSz(L.xH);L.SD();(g.N(L.playerState,64)||X)&&L.iH(bw(L.playerState,8));return L.hs.finished&&L.mediaElement?L.nY||!L.iy?y.fm(2): g.z(y,L.iy,3):y.return()}if(y.K!=2&&g.N(L.playerState,128))return y.return();if(!L.videoData.N)return L.videoData.isLivePlayback&&!g.wy(L.m9.j,!0)?(x="html5.unsupportedlive",Q=2):(x=L.videoData.zC()?"fmt.unplayable":"fmt.noneavailable",Q=1),g.PM(Error("selectableFormats")),K=L.Y("html5_log_fmt_unplaybable_trigger")?"trg.selectableFormats":"selectableFormats.1",L.kU(x,Q,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",K),y.return();if(L.Od()&&L.videoData.N.L)return L.logger.debug("rebuild playbackData for airplay"), y.return(q9(L));if(U6(L))n=L.IT,Sw(n.videoData)&&!n.isAtLiveHead(n.getCurrentTime())&&n.m$()&&n.Lm.seekTo(Infinity,{B9:"seektimeline_peggedToLive",seekSource:34});else if(Sw(L.videoData)&&(q=L.getCurrentTime()q;if(!D||!q){K&&D&&(x=Math.max(x,K));var C;K=NWY(J,(C=Q.L)==null?void 0:C.videoInfos);C=J.Lm.getPlaybackRate();C>1&&K&&(C=kxY(J.m9.j,Q.L.videoInfos,C),X.L!==0&&C< X.L&&J.Lm.setPlaybackRate(1));var M,y;X=((M=Q.videoData.K)==null?void 0:(y=M.video)==null?void 0:y.qualityOrdinal)||0;g.El("yt-player-quality",{quality:x,previousQuality:X},31104E3);J.m9.schedule.policy.T=yC()>=480;if(J.Y("html5_exponential_memory_for_sticky")){M=J.m9.jT;y=1;var n=n===void 0?!1:n;MMI(M,"sticky-lifetime");M.values["sticky-lifetime"]&&M.p7["sticky-lifetime"]||(M.values["sticky-lifetime"]=0,M.p7["sticky-lifetime"]=0);n&&Tl(M,"sticky-lifetime")>.0625&&(y=M.p7["sticky-lifetime"]*2);M.values["sticky-lifetime"]+= 1*Math.pow(2,M.L/y);M.p7["sticky-lifetime"]=y;M.T.start()}if(J.Y("html5_perf_cap_override_sticky")){n=J.N;M=J.Y("html5_perserve_av1_perf_cap");M=M===void 0?!1:M;if(M===void 0?0:M){y=VC();X=g.d(Object.keys(y));for(J=X.next();!J.done;J=X.next())J=J.value,J.indexOf("1")!==0&&delete y[J];g.El("yt-player-performance-cap",y,2592E3)}else g.h3("yt-player-performance-cap");ZDm(M);if(M){M=g.d(ZG.keys());for(y=M.next();!y.done;y=M.next())y=y.value,y.startsWith("1")||ZG.delete(y);M=g.d(y8.values());for(y=M.next();!y.done;y= M.next())y=y.value,y.startsWith("1")||y8.delete(y);M=g.d(n.keys());for(y=M.next();!y.done;y=M.next())y=y.value,y.startsWith("1")||n.delete(y)}else ZG.clear(),y8.clear(),n.clear()}}}this.loader&&(n=this.loader,L=L||"",n.policy.L?mY(n.T.L,L):mY(n.L.j,L));this.eZ()}; g.a.getUserPlaybackQualityPreference=function(){return this.videoData.N&&!this.videoData.N.L?E_(this.videoData.ri):cK[yC()]}; g.a.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.a.setUserAudio51Preference=function(X,J){this.getUserAudio51Preference()!==X&&(this.Ni("toggle51",{pref:X}),g.El("yt-player-audio51",X,J?31536E3:2592E3),this.O1())}; g.a.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.a.setProximaLatencyPreference=function(X){var J=this.getProximaLatencyPreference();this.Ni("proxima",{pref:X});g.El("yt-player-proxima-pref",X,31536E3);J!==X&&(X=this.IT,X.Cm=!0,X.Lm.seekTo(Infinity,{B9:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.a.getProximaLatencyPreference=function(){var X;return(X=ne())!=null?X:0}; g.a.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.a.rN=function(){this.videoData.videoId?this.dQ.rN(this.videoData):this.Ni("povid",{})}; g.a.HV=function(){this.videoData.videoId?this.dQ.HV(this.videoData):this.Ni("piavid",{})}; g.a.eZ=function(){if(!this.E6()&&!g.N(this.playerState,128)&&this.videoData.N){if(this.videoData.N.L)iX(this);else{var X=CS(this),J=this.videoData;a:{var L=this.videoData.pO;if(X.L){for(var x=g.d(L),Q=x.next();!Q.done;Q=x.next()){Q=Q.value;var K=Q.getInfo(),q=g.b2[K.video.quality];if((!X.N||K.video.quality!=="auto")&&q<=X.L){L=Q;break a}}L=L[L.length-1]}else L=L[0]}J.SC=L;mgY(this,X.reason,DLm(this,this.videoData.SC))}if(this.Y("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.IT.D= !1,this.playVideo()}}; g.a.Vj=function(X,J){if(this.E6()||g.N(this.playerState,128))return!1;var L,x=!((L=this.videoData.N)==null||!L.L);L=x&&J?this.getCurrentTime()-this.W4():NaN;if(this.m9.experiments.Mi("html5_record_audio_format_intent")){var Q=this.xH;if(Q.qoe){Q=Q.qoe;var K=[X.OH.id,isNaN(L)?"m":"t"];g.a1(Q,g.Jy(Q.provider),"afi",K)}}if(x)return J&&(x=Dgz(this.IT),this.Ni("aswh",{id:X.id,xtags:X.xtags,bh:x.toFixed(3)})),this.loader.setAudioTrack(X,L,J),!0;if(Ziv(this)){a:{J=this.mediaElement.audioTracks();for(x=0;x< J.length;++x)if(L=J[x],L.label===X.OH.getName()){if(L.enabled){J=!1;break a}J=L.enabled=!0;break a}J=void 0}J&&this.Ni("hlsaudio",{id:X.id})}else{a:if(J=this.videoData,J.T&&!Ga(J.T)||X===J.w8||!J.pO||J.pO.length<=0)J=!1;else{x=g.d(J.pO);for(L=x.next();!L.done;L=x.next()){L=L.value;if(!(L instanceof SH)){J=!1;break a}Q=X.OH.getId();L.K&&(vgA(L.K,Q),L.T6=null)}J.w8=X;J=!0}J&&Q6(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.Ni("hlsaudio",{id:X.id}))}return!0}; g.a.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()}; g.a.getAudioTrack=function(){if(Ziv(this)){var X=Xqe(this);if(X)return X}return this.videoData.getAudioTrack()}; g.a.qO=function(){return this.videoData.T}; g.a.j4=function(){if(this.videoData.Y("html5_trigger_loader_when_idle_network")&&!this.videoData.Zw()&&dN(this.videoData)){var X;(X=this.loader)!=null&&X.w0()}}; g.a.Jc=function(){if(Or(this.videoData)&&this.videoData.Y("html5_gapless_append_early")){var X;(X=this.loader)!=null&&X.w0()}}; g.a.onPlayerRequestSent=function(X){this.dQ.onPlayerRequestSent(X)}; g.a.wk=function(X){X=X===void 0?!1:X;if(this.loader){var J=this.loader,L=J.wk;var x=this.videoData;x=x.Y("html5_ssdai_use_post_for_media")&&x.enableServerStitchedDai?!1:Pd(x)&&x.cO&&!x.isAd();L.call(J,x,X)}}; g.a.q8=function(X){X=X===void 0?!1:X;this.xq&&(this.logger.debug("remove media source"),G2O(this.xq),this.wk(X),this.xq.dispose(),this.xq=null)}; g.a.gg=function(){return this.xq}; g.a.qj=function(X,J,L,x){function Q(q){try{KwA(K,q,J,L)}catch(D){g.PM(D),q={msi:"1",ename:D&&typeof D==="object"&&"name"in D?String(D.name):void 0},K.Y("html5_log_fmt_unplaybable_trigger")&&(q.trg="setmediasrc"),K.handleError(new g.Mh("fmt.unplayable",q,1))}} var K=this;J=J===void 0?!1:J;L=L===void 0?!1:L;iVe(this,x===void 0?!1:x);this.xq=X;this.rp()&&yy(this.xq)==="open"?Q(this.xq):rCZ(this.xq,Q)}; g.a.xJ=function(X){this.logger.debug("onNeedKeyInfo");this.yA.set(X.initData,X);this.C3&&(this.C3.xJ(X),this.Y("html5_eme_loader_sync")||this.yA.remove(X.initData))}; g.a.pK=function(X){this.videoData.RP=g.bI("auto",X,!1,"u");iX(this)}; g.a.Wz=function(X){var J=X.reason,L=X.L.info,x=X.token,Q=X.videoId,K=this.xH,q=this.videoData;if(L!==q.T){var D=!q.T;q.T=L;J!=="m"&&J!=="t"&&(J=D?"i":"a");var C=J==="m"||J==="t";this.m9.experiments.Mi("html5_refactor_sabr_audio_format_selection_logging")?this.sW=new ljY(q,L,J,"",x,Q):(J=new ljY(q,L,J,"",x),K.qoe&&(K=K.qoe,L=g.Jy(K.provider),P0R(K,L,J)));this.publish("internalaudioformatchange",q,!D&&C)}this.IT.Wz(X.L.index)}; g.a.Dy=function(X){this.publish("localmediachange",X)}; g.a.Tm=function(X){X=X===void 0?{}:X;var J;(J=this.loader)==null||J.Tm(this.m9,wN(this.videoData),X)}; g.a.AU=function(){return this.iW.AU()}; g.a.sL=function(X){this.NF(new g.Mh("staleconfig",{reason:X}))}; g.a.handleError=function(X){this.iW.handleError(X)}; g.a.j_=function(){return this.iW.j_()}; g.a.zp=function(X){this.IT.zp(X)}; g.a.ud=function(X,J){X=X===void 0?!1:X;J=J===void 0?!1:J;var L=this,x,Q,K;return g.p(function(q){if(q.K==1){L.loader&&L.loader.Wb();L.loader&&L.loader.E6()&&gl(L);if(L.Y("html5_enable_vp9_fairplay")&&L.zC()&&(x=L.videoData.L)!=null)for(var D in x.L)x.L.hasOwnProperty(D)&&(x.L[D].L=null,x.L[D].N=!1);L.iH(bw(L.playerState,2048));L.publish("newelementrequired");return X?g.z(q,q9(L),2):q.fm(2)}L.videoData.Zw()&&((Q=L.loader)==null?0:Q.Pl)&&!U6(L)&&((K=L.isAtLiveHead())&&Sw(L.videoData)?L.seekTo(Infinity, {B9:"videoPlayer_getNewElement"}):L.videoData.Bv&&L.loader&&(D=L.loader,D.Yq.Zw&&(D.Yq.Bv||D.Yq.T||D.Yq.isPremiere?(D.seek(0,{B9:"loader_resetSqless"}),D.videoTrack.W=!0,D.audioTrack.W=!0,D.videoTrack.j=!0,D.audioTrack.j=!0):US(D.Yq)&&XS(D))));J&&L.seekTo(0,{seekSource:105});g.N(L.playerState,8)&&L.playVideo();g.uv(q)})}; g.a.Hb=function(X){this.Ni("hgte",{ne:+X});this.videoData.W=!1;X&&this.ud();this.loader&&AvP(this.loader)}; g.a.Br=function(X){this.Ni("newelem",{r:X});this.ud()}; g.a.pauseVideo=function(X){X=X===void 0?!1:X;if((g.N(this.playerState,64)||g.N(this.playerState,2))&&!X)if(g.N(this.playerState,8))this.iH(Pv(this.playerState,4,8));else if(this.RU())Q6(this);else return;g.N(this.playerState,128)||(X?this.iH(bw(this.playerState,256)):this.iH(Pv(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.ew(this.videoData)&&this.loader&&M9(this,!1)}; g.a.stopVideo=function(){this.pauseVideo();this.loader&&(M9(this,!1),this.loader.ES())}; g.a.UQ=function(X,J){X=X===void 0?!1:X;J=J===void 0?!1:J;if(this.rp()&&J){var L;(L=this.mediaElement)==null||L.UQ()}else{var x;(x=this.mediaElement)==null||x.stopVideo()}y6(this);gl(this);g.N(this.playerState,128)||(X?this.iH(S5(S5(bw(this.playerState,4),8),16)):this.iH(oJ(this.playerState)));this.videoData.videoId&&this.m9.jC.remove(this.videoData.videoId)}; g.a.seekTo=function(X,J){J=J===void 0?{}:J;this.logger.debug(function(){return"SeekTo "+X+", "+JSON.stringify(J)}); g.N(this.playerState,2)&&Q6(this);J.LSY&&this.iH(bw(this.playerState,2048));J.seekSource!==58&&J.seekSource!==60||!this.Y("html5_update_vss_during_gapless_seeking")||adO(this.xH,J.seekSource);this.IT.seekTo(X,J);this.fW.sync()}; g.a.Gd=function(X){this.gt.T.K=(0,g.uT)();g.N(this.playerState,32)||(this.iH(bw(this.playerState,32,X==null?void 0:X.seekSource)),g.N(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.qd()}; g.a.jE=function(X){X=X==null?void 0:X.seekSource;g.N(this.playerState,32)?(this.iH(Pv(this.playerState,16,32,X)),this.publish("endseeking")):g.N(this.playerState,2)||this.iH(bw(this.playerState,16,X));X=this.gt.T;var J=this.videoData,L=this.playerState.isPaused();if(J.clientPlaybackNonce&&!isNaN(X.L)){if(Math.random()<.01){L=L?"pbp":"pbs";var x={startTime:X.L};J.B&&(x.cttAuthInfo={token:J.B,videoId:J.videoId});Sq("seek",x);g.bV({clientPlaybackNonce:J.clientPlaybackNonce},"seek");isNaN(X.K)||oo("pl_ss", X.K,"seek");oo(L,(0,g.uT)(),"seek")}X.reset()}}; g.a.R6=function(X){this.jE(X)}; g.a.I7=function(){this.publish("SEEK_COMPLETE")}; g.a.pV=function(X){var J=this.dQ,L=this.videoData.clientPlaybackNonce,x=this.playerType;if(X.scope===4){var Q=X.type;if(Q){var K=J.Kp(),q=K.getVideoData().clientPlaybackNonce;x===1&&(q=L);if(x=J4I(J,q)){if(L=x.getVideoData())X.writePolicy===2&&L.sabrContextUpdates.has(Q)||(X.sendByDefault&&L.O6.add(Q),L.sabrContextUpdates.set(Q,X)),J.Y("html5_enable_t1_enf_on_sabr")&&(X=Q===5,Q=Ipz(L.playerResponse),X?(X=Q?1:0,i4(X,"m.p_",{}),F$("MBSTAT",X)):X=1,X===0&&J.IB.GH("onAbnormalityDetected"))}else K.Ni("scuset", {ncpf:"1",ccpn:q,crcpn:L})}else g.PM(Error("b/380308491: contextUpdateType is undefined"))}}; g.a.l_=function(){if(this.playerType===2)return this.dQ.l_("")}; g.a.getCurrentTime=function(X){return this.IT.getCurrentTime(X===void 0?!1:X)}; g.a.di=function(){return this.IT.di()}; g.a.eT=function(){return this.IT.eT()}; g.a.A3=function(){return this.eT()}; g.a.Fb=function(){return this.IT.Fb()}; g.a.getPlaylistSequenceForTime=function(X){return this.videoData.getPlaylistSequenceForTime(X-this.W4())}; g.a.k6=function(){var X=NaN;this.mediaElement&&(X=this.mediaElement.k6());return X>=0?X:this.getCurrentTime()}; g.a.L3=function(){var X;return((X=this.videoData.L)==null?0:X.L3)?this.videoData.L.L3(this.getCurrentTime()-this.W4()):this.mediaElement&&(X=this.mediaElement.iO())&&(X=X.getTime(),!isNaN(X))?X/1E3+this.getCurrentTime():NaN}; g.a.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.W4():this.il()?this.il():0}; g.a.U5=function(){var X=new bSZ;if(this.loader){var J=this.m9.schedule,L=this.m9.YH();L=L===void 0?!1:L;X.x4=J.Pl;X.hC=J.Hl;X.bandwidthEstimate=va(J);if(L){L=(J.S.Gc()*1E3).toFixed();var x=(J.gI.Gc()*1E3).toFixed(),Q=Wa(J).toFixed(2),K=((J.W.Gc()||0)*1E9).toFixed(2),q=J.N.Gc().toFixed(0),D=J.Bl.Gc().toFixed(0),C=J.D.percentile(.5).toFixed(2),M=J.D.percentile(.92).toFixed(2),y=J.D.percentile(.96).toFixed(2),n=J.D.percentile(.98).toFixed(2);J.L?J.L.reset():J.L=new oG;J.L.add(J.FE);J.L.add(J.interruptions.length); for(var V=0,H=J.interruptions.length-1;H>=0;H--){var O=J.interruptions[H];J.L.add(O-V);V=O}V=0;for(H=J.T.length-1;H>=0;H--){O=J.T[H];var u=O.stamp/36E5;J.L.add(u-V);V=u;J.L.add(O.net/1E3);J.L.add(O.max)}J=J.L.DH();X.L={ttr:L,ttm:x,d:Q,st:K,bw:q,abw:D,v50:C,v92:M,v96:y,v98:n,"int":J}}bOz(this.loader,X)}else this.mediaElement&&(X.LG=aJ(this.mediaElement));X.x4=this.x4;X.hC=this.hC;X.N=this.isAtLiveHead()&&this.isPlaying()?Ggm(this):NaN;return X}; g.a.qB=function(X,J){this.hC+=X;this.x4+=J}; g.a.qC=function(){return this.mediaElement?g.ew(this.videoData)?1:FQ(this.videoData)?this.isAtLiveHead()||this.m$()?1:this.IT.qC():this.mediaElement.qC():0}; g.a.Om=function(){var X=this.wT,J=Jr(X,"bandwidth"),L=Jr(X,"bufferhealth"),x=Jr(X,"livelatency"),Q=Jr(X,"networkactivity"),K=XD(X,"bandwidth"),q=XD(X,"bufferhealth"),D=XD(X,"livelatency");X=XD(X,"networkactivity");var C=this.S6(),M=C.droppedVideoFrames;C=C.totalVideoFrames;var y=this.getCurrentTime();if(this.C3){var n="IT/"+(this.C3.L.getInfo()+"/"+E_(this.jH()));n+="/"+this.C3.getInfo()}else n="";var V=this.isGapless(),H=this.NP(),O=this.qZ(),u=g.$i(this),S=this.getPlayerState(),Y=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var h=0;var W="";if(this.S7){if(this.S7.aV){W="D,";break a}h=this.S7.v_;W=this.S7.Fc.substring(0,4)}h>0?(h="AD"+h+", ",W&&(h+=W+", "),W=h):W=""}return{Rs:K,yj:q,currentTime:y,CL:n,droppedVideoFrames:M,isGapless:V,NP:H,ZO:O,Dg:J,Au:L,yK:x,L8:Q,Nk:D,J1:X,WX:u,playerState:S,sF:Y,Qx:W,totalVideoFrames:C}}; g.a.yr=function(X){var J={};if(X===void 0?0:X){Object.assign(J,this.xH.yr());this.mediaElement&&(Object.assign(J,this.mediaElement.yr()),X=this.S6(),J.dvf=X.droppedVideoFrames,J.tvf=X.totalVideoFrames);this.loader&&Object.assign(J,this.loader.yr());this.C3&&(J.drm=JSON.stringify(this.C3.yr()));J.state=this.playerState.state.toString(16);g.N(this.playerState,128)&&(J.debug_error=JSON.stringify(this.playerState.pn));this.ZK()&&(J.prerolls=this.Vo.join(","));this.videoData.H9&&(J.ismb=this.videoData.H9); this.videoData.latencyClass!=="UNKNOWN"&&(J.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(J.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)J.is_mosaic=1;this.videoData.cotn&&(J.is_offline=1,J.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(J.playerResponseCpn=this.videoData.playerResponseCpn);this.dQ.isOrchestrationLeader()&&(J.leader=1);this.videoData.isLivePlayback&& (this.videoData.L&&Re(this.videoData.L)&&(J.segduration=Re(this.videoData.L)),X=this.IT,J.lat=X.S?ldm(X.S.T):0,J.liveutcstart=this.videoData.liveUtcStartSeconds);J.relative_loudness=this.videoData.oT.toFixed(3);if(X=g.$i(this))J.optimal_format=X.video.qualityLabel;J.user_qual=yC();J.release_version=I[44]}J.debug_videoId=this.videoData.videoId;return J}; g.a.addCueRange=function(X){this.y8([X])}; g.a.removeCueRange=function(X){this.fW.nA([X])}; g.a.e0=function(){this.fW.sync()}; g.a.YA=function(X,J){return this.fW.YA(X,J)}; g.a.y8=function(X,J){this.fW.tj(X,J)}; g.a.r3=function(X){this.fW.nA(X)}; g.a.Ri=function(){return this.fW.Ri()||[]}; g.a.e_=function(){return this.Ad}; g.a.Od=function(){return this.visibility.Od()}; g.a.NI=function(){this.mediaElement&&this.mediaElement.NI()}; g.a.zNH=function(){IU(this)}; g.a.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.a.Fe=function(){g.Sf(this.bF)}; g.a.vFM=function(){this.qd();this.publish("onLoadProgress",this.qC())}; g.a.Ya=function(X){var J=X.target.yY();if(this.mediaElement&&this.mediaElement.yY()&&this.mediaElement.yY()===J){HVv(this,X.type);switch(X.type){case "error":var L=tf(this.mediaElement)||"",x=this.mediaElement.N2();if(L==="capability.changed"){this.Y("html5_restart_on_capability_change")?(this.Ni("capchg",{msg:x}),this.ud(!0)):q9(this);return}if(this.mediaElement.hasError()&&(x={msg:x},this.Y("html5_log_fmt_unplaybable_trigger")&&(x.trg="elementevt"),vkA(this.iW,L,x)))return;if(this.isBackground()&& this.mediaElement.J2()===4){this.UQ();Dd(this,"unplayable");return}break;case "durationchange":L=this.mediaElement.getDuration();isFinite(L)&&(!this.xq||L>0)&&L!==1&&this.Wq(L);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());WtI(this.fW);this.xH.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":a5I(this);this.publish("onLoadedMetadata");g9o(this);L=this.L3();this.videoData.Mp&&(this.videoData.Mp=L);break;case "loadstart":g9o(this); break;case "progress":case "suspend":this.fk.KB();break;case "playing":this.gt.u8("plev");this.W0&&!U6(this)&&(this.W0=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{B9:"videoplayer_onPlaying"})));break;case "timeupdate":L=this.mediaElement&&!this.mediaElement.getCurrentTime();x=this.mediaElement&&this.mediaElement.Ab()===0;if(L&&(!this.Uz||x))return;this.Uz=this.Uz||!!this.mediaElement.getCurrentTime();I5e(this);this.qd();if(!this.mediaElement||this.mediaElement.yY()!== J)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.IP().length>0&&this.mediaElement.SW().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.Ab()>2||!this.mediaElement.isSeeking()&&kr(this.mediaElement.SW(),this.mediaElement.getCurrentTime()))&&(L=this.mediaElement.yr(),L.bh=aJ(this.mediaElement).toFixed(3), this.Ni("uwe",L));break;case "resize":a5I(this);this.videoData.K&&this.videoData.K.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.lz&&g.N(this.playerState,8)&&!g.N(this.playerState,1024)&&this.getCurrentTime()===0&&g.n9){Dd(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.yY()===J){tTA(this.IT,X);this.publish("videoelementevent",X);J=this.playerState;var Q=this.qE,K=this.mediaElement;L=this.m9.experiments; x=this.videoData.clientPlaybackNonce;if(!g.N(J,128)){var q=J.state;K=K?K:X.target;var D=K.getCurrentTime();if(!g.N(J,64)||X.type!=="ended"&&X.type!=="pause"){var C=K.getDuration();C=K.isEnded()||D>1&&Math.abs(D-C)<1.1;var M=X.type==="pause"&&K.isEnded();D=X.type==="ended"||X.type==="waiting"||X.type==="timeupdate"&&!g.N(J,4)&&!v$(Q,D);if(M||C&&D)K.R4()>0&&K.yY()&&(q=14);else switch(X.type){case "error":tf(K)&&(q|=128);break;case "pause":g.N(J,256)?(q^=256)||(q=64):g.N(J,32)||g.N(J,2)||g.N(J,4)||(q= 4,g.N(J,1)&&g.N(J,8)&&(q|=1));break;case "playing":D=q;q=(q|8)&-1093;D&4?(q|=1,uw(Q,K,!0)):v$(Q,K.getCurrentTime())&&(q&=-2);g.N(J,1)&&uw(Q,K)&&(q|=1);break;case "seeking":q|=16;g.N(J,8)&&(q|=1);q&=-3;break;case "seeked":q&=-17;uw(Q,K,!0);break;case "waiting":g.N(J,2)||(q|=1);uw(Q,K);break;case "timeupdate":D=g.N(J,16),C=g.N(J,4),(g.N(J,8)||D)&&!C&&v$(Q,K.getCurrentTime())&&(q=8),uw(Q,K)&&(q|=1)}}Q=q;q=null;Q&128&&(q=X.target,K=tf(q),D=1,K?(K==="capability.changed"&&(D=2),C="GENERIC_WITHOUT_LINK", M=q.yr(),M.mediaElem="1",L.Mi("html5_log_fmt_unplaybable_trigger")&&(M.trg="melem"),/AUDIO_RENDERER/.test(q.N2())&&(C="HTML5_AUDIO_RENDERER_ERROR"),q={errorCode:K,errorMessage:g.Bm[C]||"",qb:C,UL:Cv(M),I4:D,cpn:J.pn?J.pn.cpn:""}):q=null,q&&(q.cpn=x));J=oJ(J,Q,q)}!g.N(this.playerState,1)&&g.N(J,1)&&VYv(this,"evt"+X.type);this.iH(J)}}}; g.a.BIl=function(X){X=X.L.availability==="available";X!==this.Ad&&(this.Ad=X,this.publish("airplayavailabilitychange"))}; g.a.jB0=function(){var X=(0,g.uT)(),J=this.mediaElement.Od();this.Ni("airplay",{ia:J});!J&&!isNaN(this.Re)&&X-this.Re<2E3||(this.Re=X,J!==this.Od()&&(X=this.visibility,X.L!==J&&(X.L=J,X.Dt()),this.Ni("airplay",{rbld:J}),this.O1()),this.publish("airplayactivechange"))}; g.a.Gq=function(X){if(this.loader){var J=this.loader,L=J.N,x=J.getCurrentTime(),Q=Date.now()-L.D;L.D=NaN;L.Ni("sdai",{adfetchdone:X,d:Q});X&&!isNaN(L.W)&&L.K!==3&&fn(L.loader,x,L.W,L.B);L.policy.K?L.j=NaN:L.T=NaN;Gr(L,4,L.K===3?"adfps":"adf");mV(J)}}; g.a.nz=function(){g.yQ(this.EL);this.hh.stop();this.videoData.Pl=!0;this.m9.w8=!0;this.m9.H4=0;var X=this.iW;if(X.videoData.K){var J=X.TH.j,L=X.videoData.K.XE;J.T.has(L)&&(J.T.delete(L),J.K=!0)}X.L.stop();this.WQ();g.N(this.playerState,8)&&this.iH(S5(this.playerState,65));this.yp=!1;X=this.xH;X.L&&QUW(X.L);X.K&&(X=X.K,J=g.Jy(X.provider),X.L<0&&(X.L=J,X.delay.start()),X.K=J,X.T=J);g.Nc(this.wr);this.publish("playbackstarted");(X=g.Ld("yt.scheduler.instance.clearPriorityThreshold"))?X():Zl(0)}; g.a.WQ=function(){var X=this.dQ.mY(),J={},L={};!PQ("pbs",this.gt.timerName)&&MR.measure&&MR.getEntriesByName&&(MR.getEntriesByName("mark_nr")[0]?iPZ("mark_nr"):iPZ());X.videoId&&(J.videoId=X.videoId);X.clientPlaybackNonce&&!this.Y("web_player_early_cpn")&&(J.clientPlaybackNonce=X.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(L.isPausedOnLoad=!0);L.itag=X.K?Number(X.K.itag):-1;X.ac&&(L.preloadType=String(this.ir?2:1));J.liveStreamMode=iQu[vd(X)];J.playerInfo=L;this.gt.infoGel(J); if(this.loader){X=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(X.N&&(J=window.performance.getEntriesByName(X.N),J.length&&(J=J[0],X.tick("vri",J.fetchStart),X.tick("vdns",J.domainLookupEnd),X.tick("vreq",J.requestStart),X.tick("vrc",J.responseEnd))),X.K&&(J=window.performance.getEntriesByName(X.K),J.length&&(J=J[0],X.tick("ari",J.fetchStart),X.tick("adns",J.domainLookupEnd),X.tick("areq",J.requestStart),X.tick("arc",J.responseEnd))));X=X.ticks;for(var x in X)X.hasOwnProperty(x)&& this.gt.tick(x,X[x])}}; g.a.qd=function(X){var J=this;X=X===void 0?!1:X;if(this.mediaElement&&this.videoData){$gz(this.IT,this.isPlaying());var L=this.getCurrentTime();!this.loader||g.N(this.playerState,4)&&g.ew(this.videoData)||g.N(this.playerState,32)&&dN(this.videoData)||Y8e(this.loader,L);L>5&&(this.IT.N=L);var x=g.k1();x?g.j$.rZ(this.GZ):g.MV(this.GZ);var Q=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!Q||gB(this.videoData))&&!g.N(this.playerState,128)){var K=function(){if(J.mediaElement&&!g.N(J.playerState, 128)){J.m9.YH()&&HVv(J,"pfx");var q=J.getCurrentTime();J.Y("html5_buffer_underrun_transition_fix")&&(q-=J.W4());var D=aJ(J.mediaElement),C=g.N(J.playerState,8),M=v$(J.qE,q),y=sOm(J.qE,q,(0,g.uT)(),D);C&&M?J.iH(S5(J.playerState,1)):C&&y?(C=J.getDuration(),M=Sw(J.videoData),C&&Math.abs(C-q)<1.1?(J.Ni("setended",{ct:q,bh:D,dur:C,live:M}),J.mediaElement.W_()?(J.logger.debug("seek to 0 because of looping"),J.seekTo(0,{B9:"videoplayer_loop",seekSource:37})):J.Cj()):(J.playerState.isBuffering()||VYv(J,"progress_fix"), J.iH(bw(J.playerState,1)))):(C&&!M&&!y&&q>0&&(C=(Date.now()-J.gH)/1E3,M=J.getDuration(),q>M-1&&J.Ni("misspg",{t:q.toFixed(2),d:M.toFixed(2),r:C.toFixed(2),bh:D.toFixed(2)})),J.playerState.isPaused()&&J.playerState.isBuffering()&&aJ(J.mediaElement)>5&&J.iH(S5(J.playerState,1)));J.qd()}}; this.mediaElement.IP().length===0?this.GZ=x?g.j$.xW(K,100):g.$b(K,100):this.GZ=x?g.j$.xW(K,500):g.$b(K,500)}this.videoData.t_=L;!X&&this.isPlaying()&&$Lz(this);itv(this.WJ,this.nY,this.tP(),this.isBackground())&&iX(this);this.publish("progresssync",X);Q&&gB(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.a.dG=function(){this.kU("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.a.qZ=function(){return this.xH.qZ()}; g.a.t3=function(){return this.loader?this.loader.t3():va(this.m9.schedule,!0)}; g.a.iH=function(X){if(!g.cv(this.playerState,X)){this.logger.debug(function(){return"Setting state "+X.toString()}); var J=new g.IF(X,this.playerState);this.playerState=X;OVv(this);var L=!this.jn.length;this.jn.push(J);var x=this.mediaElement&&this.mediaElement.isSeeking();g.Ds(J,1)&&this.loader&&k$m(this.loader);x=J.oldState.state===8&&!x;g.Ds(J,1)&&x&&g.N(this.playerState,8)&&!g.N(this.playerState,64)&&this.loader&&(ZIW(this.loader),this.mediaElement&&aJ(this.mediaElement)>=5&&LO8(this.WJ,this.nY)&&iX(this));(x=g.J_(this.m9.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.N(X,1)&&(g.N(X,8)||g.N(X, 16))?this.A6.start(x):this.A6.stop();(gn(J,8)<0||g.Ds(J,1024))&&this.hh.stop();!g.Ds(J,8)||this.videoData.Pl||g.N(J.state,1024)||this.hh.start();g.N(J.state,8)&&gn(J,16)<0&&!g.N(J.state,32)&&!g.N(J.state,2)&&this.playVideo();g.N(J.state,2)&&FQ(this.videoData)&&(this.Wq(this.getCurrentTime()),this.qd(!0));g.Ds(J,2)&&(this.KC(!0),this.m9.YH()&&this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&dN(this.videoData)&&this.videoData.L&&(x={minst:""+this.videoData.L.L1,cminst:""+(this.videoData.L.c9()+ this.W4()),maxst:""+this.videoData.L.Xb,hts:""+this.videoData.L.aB,cmaxst:""+(this.videoData.L.il()+this.W4())},this.Ni("sabrSeekableBoundaries",x)));g.Ds(J,128)&&this.UQ();this.videoData.L&&this.videoData.isLivePlayback&&!this.lx&&(gn(J,8)<0?EjW(this.videoData.L):g.Ds(J,8)&&this.videoData.L.resume());gCo(this.IT,J);wS8(this.xH,J);if(L&&!this.E6())try{for(var Q=g.d(this.jn),K=Q.next();!K.done;K=Q.next()){var q=K.value;pSZ(this.fW,q);this.publish("statechange",q)}}finally{this.jn.length=0}}}; g.a.Yt=function(){this.gt.tick("qoes")}; g.a.ob=function(){this.IT.ob()}; g.a.lG=function(X,J,L,x){a:{var Q=this.iW;x=x===void 0?"LICENSE":x;L=L.substring(0,256);var K=y1(J);X==="drm.keyerror"&&this.C3&&this.C3.K.keys.length>1&&Q.T<96&&(X="drm.sessionlimitexhausted",K=!1);var q=Q.TH.experiments.Mi("html5_retry_on_drm_unavailable"),D=Q.TH.experiments.Mi("html5_retry_on_drm_key_error"),C=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(q&&X==="drm.unavailable"||D&&X==="drm.keyerror"&&!L.match(C))Q.NF("qoe.restart",{retryOnDrmError:1,e:X,detail:L}),Q.Lm.ud(!0);else{if(K)if(Q.videoData.K&& Q.videoData.K.video.isHdr())FV8(Q,X);else{if(Q.Lm.kU(X,J,x,L),WVI(Q,{detail:L}))break a}else Q.NF(X,{detail:L});X==="drm.sessionlimitexhausted"&&(Q.Ni("retrydrm",{sessionLimitExhausted:1}),Q.T++,n9A(Q.Lm))}}}; g.a.gHm=function(){var X=this,J=g.J_(this.m9.experiments,"html5_license_constraint_delay"),L=ZE();J&&L?(J=new g.sn(function(){X.eZ();IU(X)},J),g.f(this,J),J.start()):(this.eZ(),IU(this))}; g.a.PW=function(X){this.publish("heartbeatparams",X)}; g.a.fu=function(X){this.Ni("keystatuses",KVP(X));var J="auto",L=!1;this.videoData.K&&(J=this.videoData.K.video.quality,L=this.videoData.K.video.isHdr());a:{switch(J){case "highres":case "hd2880":J="UHD2";break;case "hd2160":case "hd1440":J="UHD1";break;case "hd1080":case "hd720":J="HD";break;case "large":case "medium":case "small":case "light":case "tiny":J="SD";break;default:J="";break a}L&&(J+="HDR")}J=qi(X)?I1(X,J):X.T.includes(J);if(this.Y("html5_enable_vp9_fairplay")){if(L)if(X.W){var x;if((x= this.C3)==null?0:qP(x.L))if((L=this.C3)==null)L=0;else{for(var Q=x=void 0,K=g.d(L.K.values()),q=K.next();!q.done;q=K.next())q=q.value,x||(x=Ijo(q,"SD")),Q||(Q=Ijo(q,"AUDIO"));L.i6({sd:x,audio:Q});L=x==="output-restricted"||Q==="output-restricted"}else L=!J;if(L){this.Ni("drm",{dshdr:1});FV8(this.iW);return}}else{this.videoData.Ag||(this.videoData.Ag=!0,this.Ni("drm",{dphdr:1}),this.ud(!0));return}var D;if((D=this.C3)==null?0:qP(D.L))return}else if(D=X.W&&J,L&&!D){FV8(this.iW);return}J||I1(X,"AUDIO")&& I1(X,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),X=KVP(X),this.B0?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.Y("html5_report_fatal_drm_restricted_error_killswitch")||this.kU("drm.keyerror",2,void 0,"info."+X)):(this.B0=!0,this.NF(new g.Mh("qoe.restart",Object.assign({},{retrydrm:1},X))),iX(this),n9A(this)))}; g.a.FlB=function(){if(!this.videoData.Pl&&this.mediaElement&&!this.isBackground()){var X="0";this.mediaElement.Ab()>0&&aJ(this.mediaElement)>=5&&this.videoData.N&&this.videoData.N.L&&(this.iH(bw(this.playerState,1)),VYv(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),X="1");OVv(this);var J=this.videoData.N;X={restartmsg:X,mfmt:!Hd(this.videoData),mdrm:!(!(J&&J.videoInfos&&J.videoInfos.length&&J.videoInfos[0].V0)||this.C3),mfmtinfo:!this.videoData.K,prerolls:this.ZK()?this.Vo.join(","): "0"};if(this.C3){J=this.C3;if(J.K.size<=0){var L="ns;";J.D||(L+="nr;");J=L+="ql."+J.N.length}else J=KVP(J.K.values().next().value),J=Cv(J);X.drmp=J}var x;Object.assign(X,((x=this.loader)==null?void 0:x.yr())||{});var Q;Object.assign(X,((Q=this.mediaElement)==null?void 0:Q.yr())||{});this.xH.NF("qoe.start15s",Cv(X));this.publish("loadsofttimeout")}}; g.a.Wq=function(X){this.videoData.lengthSeconds!==X&&(this.videoData.lengthSeconds=X,IU(this))}; g.a.KC=function(X,J){var L=this;X=X===void 0?!1:X;if(!this.bO)if(PQ("att_s","player_att")||E4("att_s",void 0,"player_att"),this.Y("use_rta_for_player"))(function(){var Q,K,q,D;return g.p(function(C){switch(C.K){case 1:if(!(Q=X)){C.fm(2);break}return g.z(C,g.zUY(),3);case 3:Q=!C.L;case 2:if(Q)return C.return();g.oz(C,4);K=uDv(L.xH);if(!K)throw Error();q={};return g.z(C,g.hUS((q.cpn=L.videoData.clientPlaybackNonce,q.encryptedVideoId=L.videoData.videoId||"",q),3E4),6);case 6:D=C.L;if(L.bO)throw Error(); if(!D.challenge)throw g.PM(Error("Not sending attestation ping; no attestation challenge string")),Error();L.bO=!0;var M=[D.challenge];D.error?M.push("r1c="+D.error):D.webResponse&&M.push("r1a="+D.webResponse);var y;((y=D.adblockReporting)==null?void 0:y.reportingStatus)!==void 0&&M.push("r6a="+D.adblockReporting.reportingStatus);var n;((n=D.adblockReporting)==null?void 0:n.broadSpectrumDetectionResult)!==void 0&&M.push("r6b="+D.adblockReporting.broadSpectrumDetectionResult);K(M.join("&"));E4("att_f", void 0,"player_att");g.PW(C,0);break;case 4:g.EA(C),E4("att_e",void 0,"player_att"),g.uv(C)}})})().then(function(){J==null||J()}); else{var x=new g.eMI(this.videoData);if("c1a"in x.mA&&!g.JW.isInitialized()){E4("att_wb",void 0,"player_att");this.zS===2&&Math.random()<.01&&g.PM(Error("Botguard not available after 2 attempts"));if(X)return;if(this.zS<5){g.Nc(this.Q2);this.zS++;return}}(x=g.F6Y(x))?(E4("att_f",void 0,"player_att"),d9R(this.xH,x),this.bO=!0):E4("att_e",void 0,"player_att")}}; g.a.z4=function(X){X=X===void 0?!1:X;return Sw(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.m$()||g.ew(this.videoData))?this.getCurrentTime():this.il(X)}; g.a.Ig=function(){return this.c9()}; g.a.il=function(X){return this.IT.il(X===void 0?!1:X)}; g.a.c9=function(){return this.IT.c9()}; g.a.W4=function(){return this.IT?this.IT.W4():0}; g.a.getStreamTimeOffset=function(){return this.IT?this.IT.getStreamTimeOffset():0}; g.a.vJ=function(){var X=0;this.m9.Y("web_player_ss_media_time_offset")&&(X=this.getStreamTimeOffset()===0?this.W4():this.getStreamTimeOffset());return X}; g.a.setPlaybackRate=function(X){var J;this.playbackRate!==X&&NWY(this.WJ,(J=this.videoData.N)==null?void 0:J.videoInfos)&&(this.playbackRate=X,iX(this));this.playbackRate=X;this.mediaElement&&this.mediaElement.setPlaybackRate(X)}; g.a.getPlaybackRate=function(){return this.playbackRate}; g.a.getPlaybackQuality=function(){var X="unknown";if(this.videoData.K&&(X=this.videoData.K.video.quality,X==="auto"&&this.mediaElement)){var J=this.S5();J&&J.videoHeight>0&&(X=ox(J.videoWidth,J.videoHeight))}return X}; g.a.isHdr=function(){return!!(this.videoData.K&&this.videoData.K.video&&this.videoData.K.video.isHdr())}; g.a.sendVideoStatsEngageEvent=function(X,J){var L=this.xH;L.L?(L=E6(L.L,"engage"),L.Pl=X,L.send(J)):J&&J()}; g.a.h2=function(X){return this.xH.h2(X)}; g.a.isAtLiveHead=function(X,J){J=J===void 0?!1:J;return Sw(this.videoData)&&(this.Rz||J)?this.IT.isAtLiveHead(X):!1}; g.a.TD=function(){var X=this.il(),J=this.getCurrentTime(),L;(L=!Sw(this.videoData))||(L=this.IT,L=!(L.L&&L.L.N));return L||this.m$()||isNaN(X)||isNaN(J)?0:Math.max(0,X-J)}; g.a.DU=function(X){(this.Rz=X)||this.hh.stop();this.videoData.L&&(X?this.videoData.L.resume():EjW(this.videoData.L));if(this.loader){var J=this.videoData.Y("html5_disable_preload_for_ssdai_with_preroll")&&this.Sl()&&this.videoData.isLivePlayback;X&&!J?this.loader.resume():M9(this,!0)}g.N(this.playerState,2)||X?g.N(this.playerState,512)&&X&&this.iH(S5(this.playerState,512)):this.iH(bw(this.playerState,512));J=this.xH;J.qoe&&(J=J.qoe,g.a1(J,g.Jy(J.provider),"stream",[X?"A":"I"]))}; g.a.er=function(X){this.xH.NF("player.exception",Cv({n:X.name,m:X.message}))}; g.a.Xs=XY(22);g.a.IS=XY(51);g.a.x6=function(X){this.xH.x6(X)}; g.a.CV=function(X){this.xH.CV(X)}; g.a.Rh=function(X){this.xH.Rh(X)}; g.a.Sz=XY(28);g.a.GC=XY(34);g.a.jw=function(X){this.xH.jw(X)}; g.a.Pn=function(){this.Ni("hidden",{},!0)}; g.a.S6=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.a.MC=function(){return this.loader?this.loader.MC():!0}; g.a.setLoop=function(X){this.loop=X;this.mediaElement&&!g.nD(this.m9)&&this.mediaElement.setLoop(X)}; g.a.W_=function(){return this.mediaElement&&!g.nD(this.m9)?this.mediaElement.W_():this.loop}; g.a.xt=function(X){this.Ni("timestamp",{o:X.toString()});this.IT.xt(X)}; g.a.TR=function(X){this.gt.tick(X)}; g.a.R2=function(X){return this.gt.R2(X)}; g.a.u8=function(X){this.gt.u8(X)}; g.a.Ni=function(X,J,L){this.xH.Ni(X,J,L===void 0?!1:L)}; g.a.fE=function(X,J,L){this.xH.Ni(X,J,L===void 0?!1:L)}; g.a.NF=function(X){this.xH.NF(X.errorCode,Cv(X.details));X=X.errorCode;if(this.videoData.isLivePlayback&&(X==="qoe.longrebuffer"||X==="qoe.slowseek")||X==="qoe.restart"){X=this.loader?seO(this.loader.videoTrack):{};var J,L;this.Ni("lasoe",Object.assign(this.loader?seO(this.loader.audioTrack):{},(J=this.xq)==null?void 0:(L=J.L)==null?void 0:L.CP()));var x,Q;this.Ni("lvsoe",Object.assign(X,(x=this.xq)==null?void 0:(Q=x.K)==null?void 0:Q.CP()))}}; g.a.OI=function(X,J,L){this.xH.OI(X,J,L)}; g.a.tZ=function(X,J,L,x,Q,K,q,D){var C;if((C=this.videoData.L)!=null&&C.isLive){var M=J.playerType===2?J:X,y=X.videoData.videoId,n=J.videoData.videoId;if(y&&n){C=this.xH;if(C.qoe){var V=C.qoe,H=X.cpn,O=J.cpn,u=M.videoData.qQ,S=V.provider.videoData.clientPlaybackNonce,Y=V.provider.videoData.videoId,h=O!==S&&n!==Y;S=H!==S&&y!==Y;V.reportStats();V.adCpn&&V.adCpn!==H||(V.adCpn=S?H:"",V.D1=S?y:"",V.adFormat=S?u:void 0,fMO(V,K?4:Q?2:0,O,n,x),V.reportStats(),V.adCpn=h?O:"",V.D1=h?n:"",V.adFormat=h?u:void 0, fMO(V,K?5:Q?3:1,H,y,L),V.reportStats())}L=X.cpn;if(C.N.has(L)){if(Q=C.N.get(L),zA(Q,!0).send(),hy(Q),L!==C.provider.videoData.clientPlaybackNonce){$9P(Q);var W;(W=C.L)==null||Ktv(W);C.N.delete(L)}}else C.A2=C.provider.videoData.clientPlaybackNonce,C.A2&&C.L&&(C.N.set(C.A2,C.L),zA(C.L).send(),hy(C.L));W=J.cpn;M=M.videoData;x-=this.vJ();if(C.N.has(W)){x=C.N.get(W);var T=x.N&&isNaN(x.j)?YZ(x):NaN;x=D9A(x,!1);isNaN(T)||(x.W=T);x.send()}else x=oiv(C,C.provider,M,x),C.N.set(W,x),CXY(x,new g.IF(bw(new g.ds, 8),new g.ds)),QUW(x),(T=C.L)==null||hy(T);C.A2=W;if(this.Y("html5_unify_csi_server_stitched_transition_logging")){if(C=this.gt,T=J.cpn,x=this.videoData.clientPlaybackNonce,J=J.videoData,X=(X.cpn===x?"video":"ad")+"_to_"+(T===x?"video":"ad"),X!=="video_to_ad"){x=X==="ad_to_video"?void 0:J;M=x==null?void 0:x.Io;W={};if(J==null?0:J.B)W.cttAuthInfo={token:J.B,videoId:J.videoId};q&&(W.startTime=q);Sq(X,W);var l,Jo,U;q={targetVideoId:(l=J==null?void 0:J.videoId)!=null?l:"empty_video",targetCpn:T,adVideoId:(Jo= x==null?void 0:x.videoId)!=null?Jo:"empty_video",adClientPlaybackNonce:(U=M==null?void 0:M.cpn)!=null?U:x==null?void 0:x.clientPlaybackNonce};M&&(q.adBreakType=M.adBreakType,q.adType=M.adType);g.bV(q,X);ww(C,D,X)}}else l=this.gt,U=this.videoData.clientPlaybackNonce,Jo=J.videoData,U=(X.cpn===U?"video":"ad")+"_to_"+(J.cpn===U?"video":"ad"),X={},Jo.B&&(X.cttAuthInfo={token:Jo.B,videoId:Jo.videoId}),q&&(X.startTime=q),Sq(U,X),g.bV({targetVideoId:Jo.videoId,targetCpn:J.cpn,isSsdai:!0},U),l.m9.Y("html5_enable_ssdai_transition_with_only_enter_cuerange")? q||ww(l,D,U):ww(l,D,U)}}else this.logger.L(360717806,"SSTEvent for nonSS")}; g.a.e8=function(){var X=this.dQ,J=X.Ji;X.Ji=[];return J}; g.a.zl=function(X){this.videoData.Ie=!0;this.NF(new g.Mh("sabr.fallback",X));this.ud(!0)}; g.a.VC=function(X,J){this.videoData.pC=!0;if(J===void 0||J)this.NF(new g.Mh("qoe.restart",X)),this.ud(!0);this.videoData.OA()&&this.Y("html5_reload_caption_on_ssdai_fallback")&&this.dQ.Ah()}; g.a.n4=function(X){this.Ni("sdai",{aftimeout:X});this.NF(new g.Mh("ad.fetchtimeout",{timeout:X}))}; g.a.b$=function(X,J){this.Ni("timelineerror",X);X=new g.Mh("dai.timelineerror",X);J?this.kU("dai.timelineerror",1,"RETRYABLE_ERROR",Cv(X.details)):this.NF(X)}; g.a.fI=function(){return g.Jy(this.xH.provider)}; g.a.getPlayerSize=function(){return this.bb.getPlayerSize()}; g.a.Lv=function(){return this.bb.Lv()}; g.a.r5=function(){return this.gt}; g.a.WN=function(){return this.dQ.WN()}; g.a.getVolume=function(){return this.dQ.getVolume()}; g.a.RC=function(){return this.dQ.RC()}; g.a.isMuted=function(){return this.dQ.isMuted()}; g.a.dk=function(){return this.dQ.dk()}; g.a.Ps=function(){this.lx=!0}; g.a.Y=function(X){return this.m9.Y(X)}; g.a.EO=function(X,J,L,x,Q){this.Ni("xvt",{m:X,g:J?1:0,tt:L?1:0,np:x?1:0,c:Q})}; g.a.Db=function(){var X;(X=this.loader)==null||X.resume()}; g.a.Sl=function(){return g.tS(this.Vo,"ad")}; g.a.p$=function(){var X=this.getCurrentTime(),J=X-this.W4();var L=this.mediaElement?Ab(this.mediaElement.SW()):0;L=Math.floor(Math.max(L-J,0))+100;var x;return((x=this.loader)==null?0:x.p$(J,L))?(this.Ni("sdai",{skipad:1,ct:J.toFixed(3),adj:L.toFixed(3)}),dN(this.videoData)&&this.loader.seek(J+L,{seekSource:89,B9:"videoplayer_skipServerStitchedAd"}),uMW(this.IT,X),!0):!1}; g.a.YH=function(){return this.m9.YH()}; g.a.xV=function(){if(this.Y("html5_generate_content_po_token"))return this.videoData.jN||"";this.dQ.XC();return this.m9.LW||""}; g.a.Ka=function(){if(this.videoData.videoId)return this.videoData.qK}; g.a.xU=function(){return this.videoData.videoId}; g.a.SE=function(){return this.dQ.oh}; g.a.FJ=function(){return this.yp}; g.a.Gs=function(){return this.dQ.Gs()}; g.a.zw=function(X,J,L){this.Y("html5_report_seek_source_for_utc_seeks")&&this.iH(bw(this.playerState,16,L));this.IT.zw(X,J)}; g.a.pL=function(){this.IT.pL()}; g.a.HW=function(X,J){var L=this.Y("html5_generate_content_po_token")?this.videoData:void 0;this.dQ.HW(X,J,L)}; g.a.gN=function(X,J){var L;(L=this.loader)==null||L.gN(X,J)}; g.a.Kt=function(){var X=this.gg();return!!X&&X.Kt()}; g.a.AZ=function(X,J){this.xH.AZ(X,J)}; g.a.U7=function(){return this.xH.U7()}; g.a.nw=function(){return this.videoData.Tg}; g.a.NP=function(){return this.dQ.NP()}; g.a.a5=function(){return this.dQ.a5(this)}; g.a.No=function(){this.Aw=!0}; g.a.fV=function(X){var J;(J=this.loader)==null||J.fV(X)}; g.a.lX=function(){var X;(X=this.loader)==null||X.lX()};g.w(wqv,KG);g.w(nS,M6);nS.prototype.L=function(X){X&&yv(this,this.Z.getLoopVideo());this.Z.logVisibility(this.element,X)}; nS.prototype.logClick=function(){this.Z.logClick(this.element)}; nS.prototype.onLoopChange=function(X){yv(this,X)}; nS.prototype.K=function(X){this.Z.setLoopVideo(X)};g.w(tYo,KG);g.w(dLo,KG);g.a=dLo.prototype;g.a.seekToChapterWithAnimation=function(X){var J=this;if(g.b0(this.api)&&!(X<0)){var L=this.api.getVideoData(),x=L.Ii;if(x&&X=0)return;J=~J;g.jI(this.items,J,0,X);O9(this.menuItems.element,X.element,J)}X.subscribe("size-change",this.vW,this);this.menuItems.publish("size-change")}; g.a.xM=function(X){X.unsubscribe("size-change",this.vW,this);this.E6()||(g.u8(this.items,X),this.menuItems.element.removeChild(X.element),this.menuItems.publish("size-change"))}; g.a.vW=function(){this.menuItems.publish("size-change")}; g.a.focus=function(){for(var X=0,J=0;J1&&g.zz(this)}; g.a.Rq=function(){kCv(this);this.RB&&(ULe(this),g.X9(this.element,this.size))}; g.a.lJ=function(){var X=this.L.pop();mLe(this,X,this.L[this.L.length-1],!0)}; g.a.Vz=function(X){if(!X.defaultPrevented)switch(X.keyCode){case 27:this.Vr();X.preventDefault();break;case 37:this.L.length>1&&this.lJ();X.preventDefault();break;case 39:X.preventDefault()}}; g.a.focus=function(){this.L.length&&this.L[this.L.length-1].focus()}; g.a.uB=function(){g.kF.prototype.uB.call(this);this.B&&this.B.dispose();this.W&&this.W.dispose()};g.w(WS,g.Yi);WS.prototype.open=function(X,J){this.initialize(X.items)&&this.nO(J,!!J)}; WS.prototype.initialize=function(X){g.Ef(this.y0);if(X===void 0||X.length===0)return!1;var J=X.length;X=g.d(X);for(var L=X.next();!L.done;L=X.next())this.EA(L.value,J--);return!0}; WS.prototype.EA=function(X,J){X.menuNavigationItemRenderer?Xnz(this,X.menuNavigationItemRenderer,J):X.menuServiceItemRenderer&&JXZ(this,X.menuServiceItemRenderer,J)};g.w(pS,Sd);g.a=pS.prototype;g.a.S0=function(X){X.target!==this.dismissButton.element&&X.target!==this.overflowButton.element&&(this.g3(),this.onClickCommand&&this.Z.GH("innertubeCommand",this.onClickCommand))}; g.a.YG=function(){this.enabled=!1;this.D.hide()}; g.a.mx=function(){return!!this.L&&this.enabled}; g.a.onVideoDataChange=function(X,J){this.q3(J);if(this.L){this.dh();a:if(!this.isCounterfactual){var L,x,Q;this.banner.update({title:(L=this.L)==null?void 0:L.title,subtitle:(x=this.L)==null?void 0:x.subtitle,metadata:(Q=this.L)==null?void 0:Q.metadataText});var K;this.onClickCommand=g.F((K=this.L)==null?void 0:K.onTap,Ew);var q;if(X=g.F((q=this.L)==null?void 0:q.onOverflow,Ew))this.W=g.F(X,a3u);var D;if((D=this.L)==null?0:D.thumbnailImage){var C,M;q=((C=this.L)==null?void 0:(M=C.thumbnailImage)== null?void 0:M.sources)||[];if(q.length===0)break a;this.thumbnailImage.update({url:q[0].url})}else{var y;if((y=this.L)==null?0:y.thumbnailIconName){var n;this.thumbnailIcon.update({icon:(n=this.L)==null?void 0:n.thumbnailIconName})}}var V;this.shouldShowOverflowButton=!((V=this.L)==null||!V.shouldShowOverflowButton);var H;this.shouldHideDismissButton=!((H=this.L)==null||!H.shouldHideDismissButton)}var O;this.banner.element.setAttribute("aria-label",((O=this.L)==null?void 0:O.a11yLabel)||"");var u; this.bB=(u=this.L)==null?void 0:u.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;xQA(this)}}; g.a.Kl0=function(){this.isVisible=!0;xQA(this)}; g.a.NtM=function(){this.isVisible=!1;xQA(this)}; g.a.Fi=function(){Sd.prototype.Fi.call(this);this.K&&this.Z.logVisibility(this.banner.element,this.isVisible)}; g.a.g3=function(){Sd.prototype.g3.call(this,!1);this.K&&this.Z.logClick(this.banner.element)}; g.a.ZP=function(X){this.B||(this.B=new WS(this.Z),g.f(this,this.B));var J,L;if((J=this.W)==null?0:(L=J.menu)==null?0:L.menuRenderer)this.B.open(this.W.menu.menuRenderer,X.target),X.preventDefault()}; g.a.q3=function(){}; g.a.dh=function(){}; g.a.uB=function(){this.Z.Q0("suggested_action_view_model");Sd.prototype.uB.call(this)};g.w(rl,pS); rl.prototype.q3=function(X){var J,L,x;this.productUpsellSuggestedActionViewModel=g.F((J=X.getWatchNextResponse())==null?void 0:(L=J.playerOverlays)==null?void 0:(x=L.playerOverlayRenderer)==null?void 0:x.suggestedActionViewModel,rHS);var Q;if((Q=this.productUpsellSuggestedActionViewModel)==null?0:Q.content){var K;this.L=g.F((K=this.productUpsellSuggestedActionViewModel)==null?void 0:K.content,Vvd)}var q,D;if(this.K=!!((q=this.productUpsellSuggestedActionViewModel)==null?0:(D=q.loggingDirectives)==null? 0:D.trackingParams)){var C,M;this.Z.setTrackingParams(this.banner.element,((C=this.productUpsellSuggestedActionViewModel)==null?void 0:(M=C.loggingDirectives)==null?void 0:M.trackingParams)||null)}var y;this.isCounterfactual=!((y=this.productUpsellSuggestedActionViewModel)==null||!y.isCounterfactualServing)}; rl.prototype.dh=function(){var X=[],J,L=g.d(((J=this.productUpsellSuggestedActionViewModel)==null?void 0:J.ranges)||[]);for(J=L.next();!J.done;J=L.next()){var x=J.value;x&&(J=Number(x.startTimeMilliseconds),x=Number(x.endTimeMilliseconds),isNaN(J)||isNaN(x)||X.push(new g.Rw(J,x,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.Z.tj(X)};g.w(i$Z,KG);g.w(vS,KG);vS.prototype.onVideoDataChange=function(X,J){var L=this;if(!LO(J)&&(X==="newdata"&&K38(this),this.L&&X==="dataloaded")){this.L=!1;var x;WC(z6(tD(this.api.G(),(x=this.api.getVideoData())==null?void 0:g.X3(x)),function(Q){C3I(L,Q)}),function(){L.L=!0})}}; vS.prototype.jj=function(){var X=this;if(g.nD(this.api.G())){var J,L=g.wT(this.api.G(),(J=this.api.getVideoData())==null?void 0:g.X3(J));return z6(cC(L),function(x){var Q=NM();U8(Q,x);return X.api.jj(Q)})}return cC(this.api.jj())};g.w(g.Tz,g.LG);g.a=g.Tz.prototype;g.a.open=function(){g.hr(this.uh,this.K)}; g.a.Cn=function(X){MQA(this);var J=this.options[X];J&&(J.element.setAttribute("aria-checked","true"),this.e7(this.rz(X)),this.N=X)}; g.a.Rk=function(X){g.Ef(this.K);for(var J={},L=!1,x=0;x=0?this.L.playbackRate:1}catch(X){return 1}}; g.a.setPlaybackRate=function(X){this.getPlaybackRate()!==X&&(this.L.playbackRate=X);return X}; g.a.W_=function(){return this.L.loop}; g.a.setLoop=function(X){this.L.loop=X}; g.a.canPlayType=function(X,J){return this.L.canPlayType(X,J)}; g.a.isPaused=function(){return this.L.paused}; g.a.isSeeking=function(){return this.L.seeking}; g.a.isEnded=function(){return this.L.ended}; g.a.Aa=function(){return this.L.muted}; g.a.dN=function(X){tb();this.L.muted=X}; g.a.IP=function(){return this.L.played||sc([],[])}; g.a.SW=function(){try{var X=this.L.buffered}catch(J){}return X||sc([],[])}; g.a.G2=function(){return this.L.seekable||sc([],[])}; g.a.iO=function(){var X=this.L;return X.getStartDate?X.getStartDate():null}; g.a.getCurrentTime=function(){return this.L.currentTime}; g.a.setCurrentTime=function(X){this.L.currentTime=X}; g.a.getDuration=function(){return this.L.duration}; g.a.load=function(){var X=this.L.playbackRate;try{this.L.load()}catch(J){}this.L.playbackRate=X}; g.a.pause=function(){this.L.pause()}; g.a.play=function(){var X=this.L.play();if(!X||!X.then)return null;X.then(void 0,function(){}); return X}; g.a.Ab=function(){return this.L.readyState}; g.a.R4=function(){return this.L.networkState}; g.a.J2=function(){return this.L.error?this.L.error.code:null}; g.a.N2=function(){return this.L.error?this.L.error.message:""}; g.a.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.L instanceof window.HTMLVideoElement&&this.L.getVideoPlaybackQuality)return this.L.getVideoPlaybackQuality();if(this.L){var X=this.L,J=X.webkitDroppedFrameCount;if(X=X.webkitDecodedFrameCount)return{droppedVideoFrames:J||0,totalVideoFrames:X}}return{}}; g.a.Od=function(){return!!this.L.webkitCurrentPlaybackTargetIsWireless}; g.a.NI=function(){return!!this.L.webkitShowPlaybackTargetPicker()}; g.a.togglePictureInPicture=function(){var X=this.L,J=window.document;window.document.pictureInPictureEnabled?this.L!==J.pictureInPictureElement?X.requestPictureInPicture():J.exitPictureInPicture():wS()&&X.webkitSetPresentationMode(X.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.a.pw=function(){var X=this.L;return new g.l$(X.offsetLeft,X.offsetTop)}; g.a.getSize=function(){return g.JB(this.L)}; g.a.setSize=function(X){g.X9(this.L,X)}; g.a.getVolume=function(){return this.L.volume}; g.a.setVolume=function(X){tb();this.L.volume=X}; g.a.El=function(X){this.j[X]||(this.L.addEventListener(X,this.listener),this.j[X]=this.listener)}; g.a.setAttribute=function(X,J){this.L.setAttribute(X,J)}; g.a.removeAttribute=function(X){this.L.removeAttribute(X)}; g.a.hasAttribute=function(X){return this.L.hasAttribute(X)}; g.a.ZJ=XY(61);g.a.Qm=XY(63);g.a.vV=XY(65);g.a.iR=XY(67);g.a.NZ=function(){return VV(this.L)}; g.a.rB=function(X){g.xq(this.L,X)}; g.a.Jd=function(X){return g.BB(this.L,X)}; g.a.y$=function(){return g.w0(document.body,this.L)}; g.a.audioTracks=function(){var X=this.L;if("audioTracks"in X)return X.audioTracks}; g.a.uB=function(){for(var X=g.d(Object.keys(this.j)),J=X.next();!J.done;J=X.next())J=J.value,this.L.removeEventListener(J,this.j[J]);Hv.prototype.uB.call(this)}; g.a.Sg=function(X){this.L.disableRemotePlayback=X};g.w(ki,g.R);g.w(Ar,g.R);Ar.prototype.show=function(){g.R.prototype.show.call(this);this.Wl();this.IB.Y("html5_enable_moving_s4n_window")&&g.nD(this.IB.G())&&this.S()}; Ar.prototype.hide=function(){g.R.prototype.hide.call(this);this.delay.stop();this.T.stop()}; Ar.prototype.Wl=function(){var X=(0,g.uT)(),J=b$z(this.IB);Zd(this.L,J.bandwidth_samples);Zd(this.W,J.network_activity_samples);Zd(this.N,J.live_latency_samples);Zd(this.K,J.buffer_health_samples);var L={};J=g.d(Object.entries(J));for(var x=J.next();!x.done;x=J.next()){var Q=g.d(x.value);x=Q.next().value;Q=Q.next().value;this.D[x]!==Q&&(L[x]=" "+String(Q));this.D[x]=Q}this.update(L);X=(0,g.uT)()-X>25?5E3:500;this.delay.start(X)}; Ar.prototype.S=function(){this.B?(this.position+=1,this.position>15&&(this.B=!1)):(--this.position,this.position<=0&&(this.B=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.T.start(2E4)};g.w(cXz,KG);g.w(XM,g.G);XM.prototype.L=function(){var X=(0,g.uT)()-this.startTime;X=Xthis.T[X])&&(this.L=X,Li(this))}; g.a.onCueRangeExit=function(X){var J=eC8(this,X);J&&this.L===X&&this.api.GH("innertubeCommand",J);this.clearTimeout();this.L=void 0}; g.a.onTimeout=function(X){this.L!==void 0&&(X==null?void 0:X.cueRangeId)===this.L&&(this.D=!1,(X=eC8(this,this.L))&&this.api.GH("innertubeCommand",X))}; g.a.R6=function(X){this.N=X}; g.a.I7=function(){Li(this);this.N=void 0}; g.a.setTimeout=function(X){var J=this,L=Number(X==null?void 0:X.maxVisibleDurationMilliseconds);L&&(this.clearTimeout(),this.Km=setTimeout(function(){J.onTimeout(X)},L))}; g.a.clearTimeout=function(){this.Km&&clearTimeout(this.Km);this.Km=void 0;this.D=!1}; g.a.uB=function(){this.timelyActions=this.N=this.L=this.videoId=void 0;this.T={};this.nA();this.clearTimeout();KG.prototype.uB.call(this)};g.w(RC8,KG);g.w(QM,M6);QM.prototype.B=function(X){this.T(X?2:1)}; QM.prototype.K=function(){var X=this.Z.getPresentingPlayerType();X===2||X===3?(this.L=!1,this.uh.xM(this)):this.L||(X=this.hasVoiceBoostAudioTrack(),this.setEnabled(X),X=this.N()===2&&X,yv(this,X),this.uh.EA(this),this.L=!0)}; QM.prototype.uB=function(){this.uh.xM(this);M6.prototype.uB.call(this)};g.w(Ki,KG);Ki.prototype.getVoiceBoostUserPreference=function(){return this.L}; Ki.prototype.setVoiceBoostUserPreference=function(X){this.api.Ni("vb_set",{pref:X});g.El("yt-player-voice-boost",X);X!==this.L&&(this.L=X,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.O1())}; Ki.prototype.hasVoiceBoostAudioTrack=function(){var X,J,L=(X=this.api.getVideoData())==null?void 0:(J=X.N)==null?void 0:J.L;return L?Fe(L,function(x){var Q;return((Q=x.audio)==null?void 0:Q.K)===!0}):!1}; Ki.prototype.updateEnvironmentData=function(){this.api.G().L1=this.L};var LgA=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.w(gw,KG);gw.prototype.uB=function(){this.W&&(g.yQ(this.W),this.W=void 0);KG.prototype.uB.call(this)}; gw.prototype.XC=function(){(this.K?!this.L:this.N)&&$C(this)}; gw.prototype.Ic=function(X,J,L){var x=this;if(NYe(X)){var Q=L||"";if(this.L)J=Ci(this,Q),UQS(X,J);else{var K=new g.Cz;J.push(K.promise);this.j.promise.then(function(){var q=Ci(x,Q);UQS(X,q);K.resolve()})}}}; gw.prototype.rN=function(X){var J=this;if(this.K||this.N)X.jN=Ci(this,X.videoId),this.L||(this.T=new Vy,this.j.promise.then(function(){J.gt.R2("pot_if");X.jN=Ci(J,X.videoId)}))};g.w(g.yM,g.R);g.yM.prototype.select=function(){this.api.G7(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.Z0||void 0)&&this.api.logClick(this.element)}; g.yM.prototype.onClick=function(X){if(g.lb(this.api.G())&&this.api.Y("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var J=this.suggestion.Ve(),L={};g.fO(this.api,L);J=g.Hw(J,L);g.Vv(J,this.api,X)}else g.nG(X,this.api,this.K,this.suggestion.sessionData||void 0)&&this.select()}; g.yM.prototype.onKeyPress=function(X){switch(X.keyCode){case 13:case 32:X.defaultPrevented||(this.select(),X.preventDefault())}}; g.yM.prototype.onVideoDataChange=function(){var X=this.api.getVideoData(),J=this.api.G();this.K=X.UM?!1:J.T};g.w(ni,g.R);ni.prototype.uB=function(){this.hide();g.Sf(this.L);g.xN(this.stills);this.stills.length=0;g.R.prototype.uB.call(this)}; ni.prototype.N=function(X){this.K&&this.K(X)}; ni.prototype.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var X,J,L,x,Q;var K=(((X=this.videoData)==null?0:(J=X.suggestions)==null?0:J.length)?(L=this.videoData)==null?void 0:L.suggestions:((x=this.videoData)==null?0:g.yh(x))?[(Q=this.videoData)==null?void 0:g.yh(Q)]:[]).slice(0,12);X=this.T;g.HB(X);if(K.length)for(this.stills.length>K.length&&g.xN(this.stills.splice(K.length)),this.stills.length=K.length,J=0;J=0;X--)this.features[X].dispose();this.features.length=0;g.G.prototype.uB.call(this)};COP.prototype.reset=function(){this.L=this.K=NaN};g.a=MLm.prototype;g.a.reset=function(){tt(this.timerName)}; g.a.tick=function(X,J){oo(X,J,this.timerName)}; g.a.R2=function(X){return cQ(X,void 0,this.timerName)}; g.a.u8=function(X){g.Bv(X,void 0,this.timerName)}; g.a.infoGel=function(X){g.bV(X,this.timerName)};g.w(VLm,g.Ly);g.a=VLm.prototype;g.a.VQ=function(X){return this.loop||!!X||this.index+1=0}; g.a.setShuffle=function(X){this.shuffle=X;X=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var J=0;J0)||Gg(this,1,!0)}; g.a.So=function(){this.B=!0;this.L.VO(this.j);this.j=this.L.J(document,"mouseup",this.Yr)}; g.a.Yr=function(){this.B=!1;Gg(this,8,!1);this.L.VO(this.j);this.j=this.L.J(this.target,"mousedown",this.So)}; g.a.Gj=function(X){if(X=(X=X.changedTouches)&&X[0])this.Pl=X.identifier,this.L.VO(this.S),this.S=this.L.J(this.target,"touchend",this.dl,void 0,!0),Gg(this,1024,!0)}; g.a.dl=function(X){if(X=X.changedTouches)for(var J=0;J1280||Q>720)if(J=x.TC("maxresdefault.jpg"))break;if(K>640||Q>480)if(J=x.TC("maxresdefault.jpg"))break;if(K>320||Q>180)if(J=x.TC("sddefault.jpg")||x.TC("hqdefault.jpg")||x.TC("mqdefault.jpg"))break;if(J=x.TC("default.jpg"))break}g.yH(X)&&(X=new Image,X.addEventListener("load", function(){gtP()}),X.src=J?J:"",this.api.r5().tick("ftr")); this.T.style.backgroundImage=J?"url("+J+")":""};g.w(g.lf,g.R);g.lf.prototype.resize=function(){}; g.lf.prototype.K=function(X){var J=this;this.N=!1;L$e(this);var L=X.qb,x=this.api.G();L!=="GENERIC_WITHOUT_LINK"||x.B?L==="TOO_MANY_REQUESTS"?(x=this.api.getVideoData(),this.e7(sJ(this,"TOO_MANY_REQUESTS_WITH_LINK",x.Ve(),void 0,void 0,void 0,!1))):L!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||x.B?this.api.G().Y("html5_enable_bandaid_error_screen")&&L==="HTML5_SPS_UMP_STATUS_REJECTED"&&!x.B?(x=x.hostLanguage,X="//support.google.com/youtube?p=videoError",x&&(X=g.Hw(X,{hl:x})),this.e7(sJ(this,"HTML5_SPS_UMP_STATUS_REJECTED", X))):this.api.G().Y("enable_adb_handling_in_sabr")&&L==="BROWSER_OR_EXTENSION_ERROR"&&!x.B?(x=x.hostLanguage,X="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",x&&(X=g.Hw(X,{hl:x})),this.e7(sJ(this,"BROWSER_OR_EXTENSION_ERROR",X))):this.e7(g.RE(X.errorMessage)):this.e7(sJ(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(X=x.hostLanguage,L="//support.google.com/youtube/?p=player_error1",X&&(L=g.Hw(L, {hl:X})),this.e7(sJ(this,"GENERIC_WITH_LINK_AND_CPN",L,!0)),x.t_&&!x.T&&J6I(this,function(K){if(g.nG(K,J.api,!Ic(J.api.G()))){K={as3:!1,html5:!0,player:!0,cpn:J.api.getVideoData().clientPlaybackNonce};var q=J.api;q.Xv("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:K});q.isFullscreen()&&q.toggleFullscreen()}})); if(this.N){var Q=this.kq("ytp-error-link");Q&&(this.api.createClientVe(Q,this,216104),this.api.logVisibility(Q,!0),J6I(this,function(){J.api.logClick(Q)}))}}; var Xom=/([^<>]+)<\/a>/;g.w(x4P,g.R);x4P.prototype.hB=function(X,J,L){L=L===void 0?!1:L;switch(J){case 1:Ng(this,X,this.N,L);break;case 2:Ng(this,X,this.T,L);break;case 3:Ng(this,X,this.L,L);break;case 4:Ng(this,X,this.K,L)}};g.w(imI,g.R);g.a=imI.prototype;g.a.onClick=function(X){this.innertubeCommand?(this.Z.GH("innertubeCommand",this.innertubeCommand),X.preventDefault()):g.nG(X,this.Z,!0);this.Z.logClick(this.element)}; g.a.onVideoDataChange=function(X,J){K$P(this,J);this.Sk&&q5O(this,this.Sk)}; g.a.I$=function(X){var J=this.Z.getVideoData();this.videoId!==J.videoId&&K$P(this,J);this.L&&q5O(this,X.state);this.Sk=X.state}; g.a.nO=function(){this.fade.show();this.Z.publish("paidcontentoverlayvisibilitychange",!0);this.Z.logVisibility(this.element,!0)}; g.a.Vr=function(){this.fade.hide();this.Z.publish("paidcontentoverlayvisibilitychange",!1);this.Z.logVisibility(this.element,!1)};g.w(UJ,g.R);UJ.prototype.hide=function(){this.L.stop();this.message.style.display="none";g.R.prototype.hide.call(this)}; UJ.prototype.onStateChange=function(X){this.UA(X.state)}; UJ.prototype.UA=function(X){if(g.N(X,128)||this.api.FJ())var J=!1;else{var L;J=this.api.Y("web_watch_enable_multiview_manager")&&((L=this.api.getVideoData())==null?0:LO(L))?!1:g.N(X,16)||g.N(X,1)?!0:!1}J?this.L.start():this.hide()}; UJ.prototype.K=function(){this.message.style.display="block"};g.w(mG,g.kF);mG.prototype.onMutedAutoplayChange=function(X){this.N&&(X?(IhZ(this),this.nO()):(this.L&&this.logClick(),this.Vr()))}; mG.prototype.Cv=function(X){this.api.isMutedByMutedAutoplay()&&g.Ds(X,2)&&this.Vr()}; mG.prototype.onClick=function(){this.api.unMute();this.logClick()}; mG.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.w(g.kC,g.dS);g.a=g.kC.prototype;g.a.init=function(){var X=this.api,J=X.getPlayerStateObject();this.oe=X.getPlayerSize();this.iH(J);this.XW();this.A_();this.api.publish("basechromeinitialized",this);this.V$()&&this.api.publish("standardControlsInitialized")}; g.a.onVideoDataChange=function(X,J){var L=this.fz!==J.videoId;if(L||X==="newdata")X=this.api,X.isFullscreen()||(this.oe=X.getPlayerSize());L&&(this.fz=J.videoId,L=this.ZH,L.FE=3E3,Gg(L,512,!0),this.XW());this.api.Y("web_render_jump_buttons")&&J.showSeekingControls&&(this.S9=572)}; g.a.Uxl=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.a.nE=function(){var X=this.api.AB()&&this.api.Ew(),J=this.api.Xg();return this.rr||X||this.sJ||J}; g.a.Fu=function(){var X=!this.nE();g.q8(this.api.getRootNode(),"ytp-menu-shown",!X)}; g.a.A8=function(X){try{if(!g.w0(this.api.getRootNode(),X))return!1}catch(J){return!1}for(;X&&!G0P(X);)X=X===this.api.getRootNode()?null:X.parentElement||null;return!!X}; g.a.e$=function(X){var J=this.api.getRootNode();g.q8(J,"ytp-autohide",X);g.q8(J,"ytp-autohide-active",!0);this.XH.start(X?250:100);X&&(this.nC=!1,g.Qd(J,"ytp-touch-mode"));this.Rp=!X;this.api.hQ(!X)}; g.a.lY=function(){var X=this.api.getRootNode();g.q8(X,"ytp-autohide-active",!1)}; g.a.GiM=function(){this.pN=!0}; g.a.SAY=function(X){if(this.api.G().Y("player_doubletap_to_seek")||this.api.G().W)this.pN=!1,this.Us&&this.VO(this.Us),this.b0===0&&Ax(this,X)?(this.SS(),this.Zj.start(),this.Us=this.J(this.api.t0(),"touchmove",this.GiM,void 0,!0)):this.Zj.stop();C1W(this)&&Ax(this,X)&&!this.api.G().W&&D4o(this);var J=this.Sc.F7();if(!g.lb(this.api.G())&&Gl&&MnY(this,X))J&&X.preventDefault();else if(this.nC=!0,g.xq(this.api.getRootNode(),"ytp-touch-mode"),this.ZH.Uc(),this.api.G().Y("player_doubletap_to_seek")||this.api.G().W)if(J= this.api.getPlayerStateObject(),!(!this.api.tJ()||g.N(J,2)&&g.v9(this.api)||g.N(J,64))){J=Date.now()-this.X6;this.b0+=1;if(J<=350){this.X$=!0;J=this.api.getPlayerSize().width/3;var L=this.api.getRootNode().getBoundingClientRect(),x=X.targetTouches[0].clientX-L.left;L=X.targetTouches[0].clientY-L.top;var Q=(this.b0-1)*10;x>0&&xJ*2&&x=650,x=X.width<528;this.ZH.resize();g.q8(J,"ytp-fullscreen",this.api.isFullscreen());g.q8(J,"ytp-large-width-mode",L);this.api.Y("delhi_modern_web_player")?g.q8(J,"ytp-xsmall-width-mode",x):g.q8(J,"ytp-small-mode",this.cD());g.q8(J,"ytp-tiny-mode",this.Ca());g.q8(J,"ytp-big-mode",this.F4());this.BD&&this.BD.resize(X)}; g.a.Cv=function(X){this.iH(X.state);this.XW()}; g.a.Iq=XY(3);g.a.KT=function(){var X=!!this.fz&&!this.api.QD()&&!this.bS,J=this.api.getPresentingPlayerType()===2,L=this.api.G();return J?(J=pi(this.api.h_()),X&&(J&&J.player?X=(X=J.player.getVideoData(2))?X.isListed&&!g.M2(J.player.G()):!1:(qH("showInfoBarDuringAd: this is null"),X=!1)),X):X&&(L.Dp||this.api.isFullscreen()||L.GB)}; g.a.XW=function(){var X=this.KT();this.bk!==X&&(this.bk=X,g.q8(this.api.getRootNode(),"ytp-hide-info-bar",!X))}; g.a.iH=function(X){var J=X.isCued()||this.api.ZK()&&this.api.getPresentingPlayerType()!==3;J!==this.isCued&&(this.isCued=J,this.Jp&&this.VO(this.Jp),this.Jp=this.J(this.api.t0(),"touchstart",this.SAY,void 0,J));var L=this.ZH,x=X.isPlaying()&&!g.N(X,32)||this.api.mj();Gg(L,128,!x);L=this.ZH;x=this.api.getPresentingPlayerType()===3;Gg(L,256,x);L=this.api.getRootNode();g.N(X,2)?x=[ko.ENDED]:(x=[],g.N(X,8)?x.push(ko.PLAYING):g.N(X,4)&&x.push(ko.PAUSED),g.N(X,1)&&!g.N(X,32)&&x.push(ko.BUFFERING),g.N(X, 32)&&x.push(ko.SEEKING),g.N(X,64)&&x.push(ko.UNSTARTED));g.NC(this.D_,x)||(g.Ks(L,this.D_),this.D_=x,g.ic(L,x));x=this.api.G();var Q=g.N(X,2);a:{var K=this.api.G();var q=K.controlsType;switch(q){case "2":case "0":K=!1;break a}K=q==="3"&&!g.N(X,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:jzV(pi(this.api.h_())))||this.api.Xg()||g.lb(K)&&this.api.getPresentingPlayerType()===2?!1:!0}g.q8(L,"ytp-hide-controls",!K);g.q8(L,"ytp-native-controls",x.controlsType==="3"&&!J&&!Q&&!this.sJ);g.N(X, 128)&&!g.lb(x)?(this.BD||(this.BD=new g.lf(this.api),g.f(this,this.BD),g.l0(this.api,this.BD.element,4)),this.BD.K(X.pn),this.BD.show()):this.BD&&(this.BD.dispose(),this.BD=null)}; g.a.jY=function(){return this.api.AB()&&this.api.Ew()?(this.api.jD(!1,!1),!0):this.api.QD()?(g.jy(this.api,!0),!0):!1}; g.a.onMutedAutoplayChange=function(X){this.sJ=X;this.Fu()}; g.a.F4=function(){return!1}; g.a.cD=function(){return!this.F4()&&(this.api.getPlayerSize().width=0&&J.left>=0&&J.bottom>J.top&&J.right>J.left?J:null;J=this.size;X=X.clone();J=J.clone();x&&(q=J,Q=5,(Q&65)==65&&(X.x=x.right)&&(Q&=-2),(Q&132)==132&&(X.y=x.bottom)&&(Q&=-5),X.xx.right&&(q.width=Math.min(x.right-X.x,K+q.width-x.left),q.width=Math.max(q.width,0))),X.x+q.width>x.right&&Q&1&&(X.x=Math.max(x.right-q.width,x.left)),X.yx.bottom&&(q.height=Math.min(x.bottom-X.y,K+q.height-x.top),q.height=Math.max(q.height,0))),X.y+q.height>x.bottom&&Q&4&&(X.y=Math.max(x.bottom-q.height,x.top)));x=new g.fj(0,0,0,0);x.left=X.x;x.top=X.y;x.width= J.width;x.height=J.height;g.m9(this.element,new g.l$(x.left,x.top));g.Sf(this.T);this.T.J(Zu(this),"contextmenu",this.r0q);this.T.J(this.Z,"fullscreentoggled",this.onFullscreenToggled);this.T.J(this.Z,"pageTransition",this.JN)}; g.a.r0q=function(X){if(!X.defaultPrevented){var J=dE(X);g.w0(this.element,J)||this.Vr();this.Z.G().disableNativeContextMenu&&X.preventDefault()}}; g.a.onFullscreenToggled=function(){this.Vr();jsW(this)}; g.a.JN=function(){this.Vr()};g.w(I_,g.R);I_.prototype.onClick=function(){var X=this,J,L,x,Q;return g.p(function(K){if(K.K==1)return J=X.api.G(),L=X.api.getVideoData(),x=X.api.getPlaylistId(),Q=J.getVideoUrl(L.videoId,x,void 0,!0),g.z(K,fhW(X,Q),2);K.L&&GkS(X);X.api.logClick(X.element);g.uv(K)})}; I_.prototype.Wl=function(){this.updateValue("icon",{V:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{V:"path",uH:!0,U:"ytp-svg-fill",X:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copiar v\u00ednculo");this.visible=Too(this);g.q8(this.element,"ytp-copylink-button-visible", this.visible);this.LO(this.visible);this.tooltip.H5();this.api.logVisibility(this.element,this.visible&&this.j)}; I_.prototype.G6=function(X){g.R.prototype.G6.call(this,X);this.api.logVisibility(this.element,this.visible&&X)}; I_.prototype.uB=function(){g.R.prototype.uB.call(this);g.Qd(this.element,"ytp-copylink-button-visible")};g.w(ezA,g.R);g.a=ezA.prototype;g.a.show=function(){g.R.prototype.show.call(this);g.Nc(this.K)}; g.a.hide=function(){this.T.stop();this.N=0;this.kq("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.Qd(this.element,"ytp-chapter-seek");g.Qd(this.element,"ytp-time-seeking");g.R.prototype.hide.call(this)}; g.a.zd=function(X,J,L,x){this.N=X===this.W?this.N+x:x;this.W=X;var Q=X===-1?this.D:this.S;Q&&this.Z.logClick(Q);this.B?this.K.stop():g.mz(this.K);this.T.start();this.element.setAttribute("data-side",X===-1?"back":"forward");var K=3*this.Z.t0().getPlayerSize().height;Q=this.Z.t0().getPlayerSize();Q=Q.width/3-3*Q.height;this.L.style.width=K+"px";this.L.style.height=K+"px";X===1?(this.L.style.left="",this.L.style.right=Q+"px"):X===-1&&(this.L.style.right="",this.L.style.left=Q+"px");var q=K*2.5;K=q/ 2;var D=this.kq("ytp-doubletap-ripple");D.style.width=q+"px";D.style.height=q+"px";X===1?(X=this.Z.t0().getPlayerSize().width-J+Math.abs(Q),D.style.left="",D.style.right=X-K+"px"):X===-1&&(X=Math.abs(Q)+J,D.style.right="",D.style.left=X-K+"px");D.style.top="calc((33% + "+Math.round(L)+"px) - "+K+"px)";if(L=this.kq("ytp-doubletap-ripple"))L.classList.remove("ytp-doubletap-ripple"),L.classList.add("ytp-doubletap-ripple");F$v(this,this.B?this.N:x)}; g.a.Y_=function(X,J,L){if(L=L===void 0?null:L){var x=X===-1?this.D.visualElement:this.S.visualElement;L={seekData:L};var Q=g.Ow();Q&&g.ND(RV)(void 0,Q,x,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",L,void 0)}this.N=X===this.W?this.N+J:J;this.W=X;x=this.Z.t0().getPlayerSize();this.B?this.K.stop():g.mz(this.K);this.T.start();this.element.setAttribute("data-side",X===-1?"back":"forward");g.xq(this.element,"ytp-time-seeking");this.L.style.width="110px";this.L.style.height="110px";L=x.width*.1-15;X=== 1?this.Km?(this.L.style.right=L+"px",this.L.style.left=""):(this.L.style.right="",this.L.style.left=x.width*.8-30+"px"):X===-1&&(this.Km?(this.L.style.right="",this.L.style.left=L+"px"):(this.L.style.right="",this.L.style.left=x.width*.1-15+"px"));this.L.style.top=x.height*.5+15+"px";F$v(this,this.B?this.N:J)}; g.a.Wj=function(X,J,L){L=L===void 0?null:L;g.mz(this.K);this.T.start();switch(X){case -1:X="back";break;case 1:X="forward";break;default:X=""}this.element.setAttribute("data-side",X);this.L.style.width="0";this.L.style.height="0";g.xq(this.element,"ytp-chapter-seek");this.updateValue("seekText",J);this.updateValue("seekTime","");J=this.kq("ytp-seek-icon");if(L){a:if(L){switch(L){case "PREMIUM_STANDALONE":L=c3Y();break a;case "PREMIUM_STANDALONE_CAIRO":L=E1P();break a}L=void 0}else L=null;this.updateValue("seekIcon", L);J.style.display="inline-block"}else J.style.display="none"};g.w(lhI,Sd);g.a=lhI.prototype;g.a.o$=function(X){this.vl||(this.vl=new WS(this.Z),g.f(this,this.vl));var J,L;if((J=this.Lp)==null?0:(L=J.menu)==null?0:L.menuRenderer)this.vl.open(this.Lp.menu.menuRenderer,X.target),X.preventDefault()}; g.a.mx=function(){return!!this.L}; g.a.ZU=function(){return!!this.L}; g.a.S0=function(X){X.target===this.overflowButton.element?X.preventDefault():(this.XX&&this.Z.GH("innertubeCommand",this.XX),this.g3(!1))}; g.a.YG=function(){this.g3(!0);var X,J;((X=this.L)==null?0:(J=X.bannerData)==null?0:J.dismissedStatusKey)&&this.If.push(this.L.bannerData.dismissedStatusKey);this.Iu()}; g.a.U2=function(){this.Iu();$9(this)}; g.a.SM9=function(X){var J=this,L;if(X.id!==((L=this.L)==null?void 0:L.identifier)){this.Iu();L=g.d(this.FE);for(var x=L.next();!x.done;x=L.next()){var Q=x.value,K=void 0,q=void 0;if((x=(K=Q)==null?void 0:(q=K.bannerData)==null?void 0:q.itemData)&&Q.identifier===X.id){q=K=void 0;var D=((K=Q)==null?void 0:(q=K.bannerData)==null?void 0:q.dismissedStatusKey)||"";if(this.If.includes(D))return;this.L=Q;this.banner.element.setAttribute("aria-label",x.accessibilityLabel||"");x.trackingParams&&(this.T=!0, this.Z.setTrackingParams(this.badge.element,x.trackingParams));this.show();this.D.show();bX(this);this.gI.LO(!x.stayInApp);L1m(this);BoR(this);D5(this);this.XX=g.F(x.onTapCommand,Ew);if(Q=g.F(x.menuOnTap,Ew))this.Lp=g.F(Q,a3u);Q=void 0;this.banner.update({thumbnail:(Q=(x.thumbnailSources||[])[0])==null?void 0:Q.url,title:x.productTitle,price:x.priceReplacementText?x.priceReplacementText:x.price,salesOriginalPrice:U4v(this),priceDropReferencePrice:m4W(this),promotionText:Noz(this),priceA11yText:kkA(this), affiliateDisclaimer:x.affiliateDisclaimer,vendor:ZmY(this)});D=q=K=Q=void 0;((Q=x)==null?0:(K=Q.hiddenProductOptions)==null?0:K.showDropCountdown)&&((q=x)==null?0:(D=q.hiddenProductOptions)==null?0:D.dropTimestampMs)&&(this.z6=new g.sn(function(){JsP(J)},1E3),this.gI.hide(),this.countdownTimer.show(),JsP(this)); this.Z.Y("web_player_enable_featured_product_banner_exclusives_on_desktop")&&RzA(this)&&(this.sH=new g.sn(function(){ssz(J)},1E3),ssz(this))}}this.Z.getRootNode()&&g.xq(this.Z.getRootNode(),"ytp-featured-product-shown")}}; g.a.Iu=function(){this.L&&(this.L=void 0,this.G4(),this.Z.getRootNode()&&g.Qd(this.Z.getRootNode(),"ytp-featured-product-shown"))}; g.a.onVideoDataChange=function(X,J){var L=this;X==="dataloaded"&&$9(this);var x,Q,K;X=g.F((x=J.getWatchNextResponse())==null?void 0:(Q=x.playerOverlays)==null?void 0:(K=Q.playerOverlayRenderer)==null?void 0:K.productsInVideoOverlayRenderer,HWd);this.overflowButton.show();this.dismissButton.hide();var q=X==null?void 0:X.featuredProductsEntityKey;this.trendingOfferEntityKey=X==null?void 0:X.trendingOfferEntityKey;this.FE.length||(XFR(this,q),D5(this));var D;(D=this.H9)==null||D.call(this);this.H9=g.Vh.subscribe(function(){XFR(L, q);D5(L)})}; g.a.uB=function(){$9(this);L1m(this);BoR(this);Sd.prototype.uB.call(this)};g.w(qoe,g.R);qoe.prototype.onClick=function(){this.Z.logClick(this.element,this.K)};g.w(IvY,g.kF);g.a=IvY.prototype;g.a.show=function(){g.kF.prototype.show.call(this);this.Z.publish("infopaneldetailvisibilitychange",!0);this.Z.logVisibility(this.element,!0);goY(this,!0)}; g.a.hide=function(){g.kF.prototype.hide.call(this);this.Z.publish("infopaneldetailvisibilitychange",!1);this.Z.logVisibility(this.element,!1);goY(this,!1)}; g.a.getId=function(){return this.T}; g.a.oC=function(){return this.itemData.length}; g.a.onVideoDataChange=function(X,J){if(J){var L,x,Q,K;this.update({title:((L=J.e1)==null?void 0:(x=L.title)==null?void 0:x.content)||"",body:((Q=J.e1)==null?void 0:(K=Q.bodyText)==null?void 0:K.content)||""});var q;X=((q=J.e1)==null?void 0:q.trackingParams)||null;this.Z.setTrackingParams(this.element,X);q=g.d(this.itemData);for(X=q.next();!X.done;X=q.next())X.value.dispose();this.itemData=[];var D;if((D=J.e1)==null?0:D.ctaButtons)for(J=g.d(J.e1.ctaButtons),D=J.next();!D.done;D=J.next())if(D=g.F(D.value, $Ku))D=new qoe(this.Z,D,this.L),D.bl&&(this.itemData.push(D),D.zH(this.items))}}; g.a.uB=function(){this.hide();g.kF.prototype.uB.call(this)};g.w(CzW,g.R);g.a=CzW.prototype;g.a.onVideoDataChange=function(X,J){$bW(this,J);this.Sk&&ysv(this,this.Sk)}; g.a.sC=function(X){var J=this.Z.getVideoData();this.videoId!==J.videoId&&$bW(this,J);ysv(this,X.state);this.Sk=X.state}; g.a.lq=function(X){(this.N=X)?this.hide():this.L&&this.show()}; g.a.bj=function(){this.K||this.nO();this.showControls=!0}; g.a.nx=function(){this.K||this.Vr();this.showControls=!1}; g.a.nO=function(){var X,J=(X=this.Z)==null?void 0:X.getPlayerSize();X=J.width<380;var L;J=J.height<(((L=this.Z)==null?0:L.isEmbedsShortsMode())?400:280);var x,Q;(((x=this.Z)==null?0:x.getPlayerStateObject().isCued())||((Q=this.Z)==null?0:g.N(Q.getPlayerStateObject(),1024)))&&X&&J||!this.L||this.N||(this.fade.show(),this.Z.publish("infopanelpreviewvisibilitychange",!0),this.Z.logVisibility(this.element,!0))}; g.a.Vr=function(){this.L&&!this.N&&(this.fade.hide(),this.Z.publish("infopanelpreviewvisibilitychange",!1),this.Z.logVisibility(this.element,!1))}; g.a.cO6=function(){this.K=!1;this.showControls||this.Vr()};var t3H={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(t3H).reduce(function(X,J){X[t3H[J]]=J;return X},{}); var dzS={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(dzS).reduce(function(X,J){X[dzS[J]]=J;return X},{}); var u9I={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(u9I).reduce(function(X,J){X[u9I[J]]=J;return X},{});var oI8,bQC;oI8=[{option:"#fff",text:"Blanco"},{option:"#ff0",text:"Amarillo"},{option:"#0f0",text:"Verde"},{option:"#0ff",text:"Cian"},{option:"#00f",text:"Azul"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Rojo"},{option:"#080808",text:"Negro"}];bQC=[{option:0,text:CV(0)},{option:.25,text:CV(.25)},{option:.5,text:CV(.5)},{option:.75,text:CV(.75)},{option:1,text:CV(1)}]; g.VL=[{option:"fontFamily",text:"Familia de fuente",options:[{option:1,text:"Serif monoespaciada"},{option:2,text:"Serif proporcional"},{option:3,text:"Sans-Serif monoespaciada"},{option:4,text:"Sans-Serif proporcional"},{option:5,text:"Informal"},{option:6,text:"Cursiva"},{option:7,text:"Versalitas"}]},{option:"color",text:"Color de fuente",options:oI8},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:CV(.5)},{option:-1,text:CV(.75)},{option:0,text:CV(1)},{option:1, text:CV(1.5)},{option:2,text:CV(2)},{option:3,text:CV(3)},{option:4,text:CV(4)}]},{option:"background",text:"Color de fondo",options:oI8},{option:"backgroundOpacity",text:"Opacidad de fondo",options:bQC},{option:"windowColor",text:"Color de la ventana",options:oI8},{option:"windowOpacity",text:"Opacidad de la ventana",options:bQC},{option:"charEdgeStyle",text:"Estilo de borde de los caracteres",options:[{option:0,text:"Ninguno"},{option:4,text:"Sombra paralela"},{option:1,text:"En relieve"},{option:2, text:"Hundido"},{option:3,text:"Contorno"}]},{option:"textOpacity",text:"Opacidad de fuente",options:[{option:.25,text:CV(.25)},{option:.5,text:CV(.5)},{option:.75,text:CV(.75)},{option:1,text:CV(1)}]}];var Ste=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.w(wFW,g.dS);g.a=wFW.prototype; g.a.C5=function(X){X.repeat||(this.N.td=!1);var J=!1,L=X.keyCode,x=dE(X),Q=!X.altKey&&!X.ctrlKey&&!X.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||Ste.includes(L)),K=!1,q=!1,D=this.api.G();X.defaultPrevented?(Q=!1,q=!0):D.fY&&!this.api.isMutedByEmbedsMutedAutoplay()&&(Q=!1);if(L===9)J=!0;else{if(x)switch(L){case 32:case 13:if(x.tagName==="BUTTON"||x.tagName==="A"||x.tagName==="INPUT")J=!0,Q=!1;else if(Q){var C=x.getAttribute("role");!C||C!=="option"&&C!=="button"&&C.indexOf("menuitem")!==0|| (J=!0,x.click(),K=!0)}break;case 37:case 39:case 36:case 35:J=x.getAttribute("role")==="slider";break;case 38:case 40:C=x.getAttribute("role"),x=L===38?x.previousSibling:x.nextSibling,C==="slider"?J=!0:Q&&(C==="option"?(x&&x.getAttribute("role")==="option"&&x.focus(),K=J=!0):C&&C.indexOf("menuitem")===0&&(x&&x.hasAttribute("role")&&x.getAttribute("role").indexOf("menuitem")===0&&x.focus(),K=J=!0))}if(Q&&!K)switch(L){case 38:K=Math.min(this.api.getVolume()+5,100);LV(this.qF,K,!1);this.api.setVolume(K); q=K=!0;break;case 40:K=Math.max(this.api.getVolume()-5,0);LV(this.qF,K,!0);this.api.setVolume(K);q=K=!0;break;case 36:this.api.tJ()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),q=K=!0);break;case 35:this.api.tJ()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),q=K=!0)}}J&&yL(this,!0);(J||q)&&this.ZH.Uc();(K||Q&&this.handleGlobalKeyDown(L,X.shiftKey,X.ctrlKey,X.altKey,X.metaKey,X.key,X.code,X.repeat))&&X.preventDefault();D.S&&(X={keyCode:X.keyCode, altKey:X.altKey,ctrlKey:X.ctrlKey,metaKey:X.metaKey,shiftKey:X.shiftKey,handled:X.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.EM("onKeyPress",X))}; g.a.lI=function(X){var J=X.keyCode;(!this.api.Y("web_player_spacebar_control_bugfix")||this.api.Y("web_player_spacebar_control_bugfix")&&!this.N.Df)&&this.handleGlobalKeyUp(J,X.shiftKey,X.ctrlKey,X.altKey,X.metaKey,X.key,X.code)&&X.preventDefault()}; g.a.handleGlobalKeyUp=function(X,J,L,x,Q,K,q){this.api.publish("keyboardserviceglobalkeyup",{keyCode:X,shiftKey:J,ctrlKey:L,altKey:x,metaKey:Q,key:K,code:q});J=!1;if(this.N.td)return J;(K=g.ey(this.api.h_()))&&(K=K.dB)&&K.RB&&(K.cC(X),J=!0);switch(X){case 9:yL(this,!0);J=!0;break;case 32:if(this.api.Y("web_speedmaster_spacebar_control")&&(!this.api.Y("web_player_spacebar_control_bugfix")&&!this.N.Df||this.api.Y("web_player_spacebar_control_bugfix"))&&!this.api.G().fY){var D,C;X=(D=this.progressBar)== null?void 0:(C=D.K)==null?void 0:C.isEnabled;J=this.Wh(X)}break;case 39:(x$?x:L)&&!Q&&this.api.tJ()&&this.api.Y("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),D=(D=this.api.getVideoData())?D.Ii:[],C=V18(D,this.api.getCurrentTime()*1E3),C!==-1&&this.L!=null&&(this.L.Wj(1,D[C].title),this.api.seekTo(D[C].startTime/1E3,void 0,void 0,void 0,52),J=!0))}return J}; g.a.handleGlobalKeyDown=function(X,J,L,x,Q,K,q,D){D||(this.N.td=!1);var C=!1,M=this.api.G();if(M.fY&&!this.api.isMutedByEmbedsMutedAutoplay())return C;var y=g.ey(this.api.h_());if(y&&(y=y.dB)&&y.RB)switch(X){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:C=y.tW(X)}M.B||C||(C=K||String.fromCharCode(X).toLowerCase(),this.K+=C,"awesome".indexOf(this.K)===0||this.api.Y("web_player_rtr_ctrls")&&"bday".indexOf(this.K)===0?(C=!0,4===this.K.length&&this.K==="bday"&&this.api.Y("web_player_rtr_ctrls")&& (qPS(this.j),this.ZH.Uc()),7===this.K.length&&this.K==="awesome"&&P6Z(this.api.getRootNode(),"ytp-color-party")):(this.K=C,C="awesome".indexOf(this.K)===0||"bday".indexOf(this.K)===0));if(!C&&(!this.api.isMutedByEmbedsMutedAutoplay()||Ste.includes(X))){var n=this.api.getVideoData(),V,H;y=(V=this.progressBar)==null?void 0:(H=V.K)==null?void 0:H.isEnabled;V=n?n.Ii:[];H=x$?x:L;switch(X){case 80:J&&!M.Hl&&(J1(this.qF,YlA(),"Anterior"),this.api.previousVideo(),C=!0);break;case 78:J&&!M.Hl&&(J1(this.qF, OD(),"Siguiente"),this.api.nextVideo(),C=!0);break;case 74:this.api.tJ()&&(this.api.startSeekCsiAction(),this.L?this.api.Y("enable_key_press_seek_logging")?(C=nV(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.L.Y_(-1,10,C)):this.L.Y_(-1,10):J1(this.qF,{V:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{V:"path",uH:!0,U:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),C=!0);break;case 76:this.api.tJ()&&(this.api.startSeekCsiAction(),this.L?this.api.Y("enable_key_press_seek_logging")?(C=nV(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.L.Y_(1,10,C)):this.L.Y_(1,10):J1(this.qF,{V:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{V:"path",uH:!0,U:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),C=!0);break;case 37:this.api.tJ()&&(this.api.startSeekCsiAction(),H?(H=HZY(V,this.api.getCurrentTime()*1E3),H!==-1&&this.L!=null&&(this.L.Wj(-1,V[H].title),this.api.seekTo(V[H].startTime/1E3,void 0,void 0,void 0,53),C=!0)):(this.L?this.api.Y("enable_key_press_seek_logging")?(C=nV(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.L.Y_(-1,5,C)):this.L.Y_(-1,5):J1(this.qF,{V:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},C:[{V:"path",uH:!0,U:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),C=!0));break;case 39:this.api.tJ()&&(this.api.startSeekCsiAction(),H?this.api.Y("web_enable_keyboard_shortcut_for_timely_actions")||(H=V18(V,this.api.getCurrentTime()*1E3),H!==-1&&this.L!=null&&(this.L.Wj(1,V[H].title),this.api.seekTo(V[H].startTime/1E3,void 0,void 0,void 0,52),C=!0)):(this.L!=null?this.api.Y("enable_key_press_seek_logging")?(C=nV(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.L.Y_(1,5,C)):this.L.Y_(1, 5):J1(this.qF,{V:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{V:"path",uH:!0,U:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),C=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),LV(this.qF,this.api.getVolume(),!1)):(this.api.mute(),LV(this.qF,0,!0));C=!0;break;case 32:C=this.api.Y("web_speedmaster_spacebar_control")?!this.api.G().Hl:this.Wh(y);break;case 75:C=this.Wh(y);break;case 190:J?M.enableSpeedOptions&&dbZ(this)&&(C=this.api.getPlaybackRate(),this.api.setPlaybackRate(C+.25,!0),nAv(this.qF,!1),C=!0):this.api.tJ()&&(this.step(1),C=!0);break;case 188:J? M.enableSpeedOptions&&dbZ(this)&&(C=this.api.getPlaybackRate(),this.api.setPlaybackRate(C-.25,!0),nAv(this.qF,!0),C=!0):this.api.tJ()&&(this.step(-1),C=!0);break;case 70:bhO(this.api)&&(this.api.toggleFullscreen().catch(function(){}),C=!0); break;case 27:y?(this.progressBar.Z7(),C=!0):this.B()&&(C=!0)}if(M.controlsType!=="3")switch(X){case 67:g.hx(this.api.h_())&&(M=this.api.getOption("captions","track"),this.api.toggleSubtitles(),VnS(this.qF,!M||M&&!M.displayName),C=!0);break;case 79:Hq(this,"textOpacity");break;case 87:Hq(this,"windowOpacity");break;case 187:case 61:Hq(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:Hq(this,"fontSizeIncrement",!0,!0)}var O;J||L||x||(X>=48&&X<=57?O=X-48:X>=96&&X<=105&&(O=X-96));O!=null&&this.api.tJ()&& (this.api.startSeekCsiAction(),M=this.api.getProgressState(),this.api.seekTo(O/10*(M.seekableEnd-M.seekableStart)+M.seekableStart,void 0,void 0,void 0,81),C=!0);C&&this.ZH.Uc()}this.N.Hi=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:X,shiftKey:J,ctrlKey:L,altKey:x,metaKey:Q,key:K,code:q,repeat:D},this.N);this.N.Hi&&(C=!0);return C}; g.a.step=function(X){this.api.tJ();if(this.api.getPlayerStateObject().isPaused()){var J=this.api.getVideoData().K;J&&(J=J.video)&&this.api.seekBy(X/(J.fps||30),void 0,void 0,X>0?77:78)}}; g.a.Wh=function(X){if(!this.api.G().Hl){var J;var L,x=(J=this.api.getVideoData())==null?void 0:(L=J.getPlayerResponse())==null?void 0:L.playabilityStatus;if(x){var Q;J=((Q=g.F(x.miniplayer,SRd))==null?void 0:Q.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else J=!1;J&&this.api.GH("onExpandMiniplayer");X?this.progressBar.pM():(X=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.qF.Na(X),X?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.a.uB=function(){g.mz(this.T);g.dS.prototype.uB.call(this)};g.w(O3,g.R);O3.prototype.Wl=function(){var X=this.Z.G(),J=X.N||this.Z.Y("web_player_hide_overflow_button_if_empty_menu")&&this.T_.isEmpty();X=g.lb(X)&&g.Gi(this.Z)&&g.N(this.Z.getPlayerStateObject(),128);var L=this.Z.getPlayerSize();this.visible=this.Z.cD()&&!X&&L.width>=240&&!g.$F(this.Z.getVideoData())&&!J&&!this.Z.isEmbedsShortsMode();g.q8(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.Z.H5();this.Z.logVisibility(this.element,this.visible&&this.j)}; O3.prototype.G6=function(X){g.R.prototype.G6.call(this,X);this.Z.logVisibility(this.element,this.visible&&X)}; O3.prototype.uB=function(){g.R.prototype.uB.call(this);g.Qd(this.element,"ytp-overflow-button-visible")};g.w(u2W,g.kF);g.a=u2W.prototype;g.a.Sh=function(X){X=dE(X);g.w0(this.element,X)&&(g.w0(this.L,X)||g.w0(this.closeButton,X)||Az(this))}; g.a.Vr=function(){g.kF.prototype.Vr.call(this);this.Z.yQ(this.element)}; g.a.show=function(){this.RB&&this.Z.publish("OVERFLOW_PANEL_OPENED");g.kF.prototype.show.call(this);this.element.setAttribute("aria-modal","true");bZA(this,!0)}; g.a.hide=function(){g.kF.prototype.hide.call(this);this.element.removeAttribute("aria-modal");bZA(this,!1)}; g.a.onFullscreenToggled=function(X){!X&&this.F7()&&Az(this)}; g.a.isEmpty=function(){return this.actionButtons.length===0}; g.a.focus=function(){for(var X=g.d(this.actionButtons),J=X.next();!J.done;J=X.next())if(J=J.value,J.RB){J.focus();break}};g.w(SoZ,g.R);SoZ.prototype.onClick=function(X){g.nG(X,this.api)&&this.api.playVideoAt(this.index)};g.w(PzZ,g.kF);g.a=PzZ.prototype;g.a.show=function(){g.kF.prototype.show.call(this);this.L.J(this.api,"videodatachange",this.GG);this.L.J(this.api,"onPlaylistUpdate",this.GG);this.GG()}; g.a.hide=function(){g.kF.prototype.hide.call(this);g.Sf(this.L);this.updatePlaylist(null)}; g.a.GG=function(){this.updatePlaylist(this.api.getPlaylist());this.api.G().N&&(this.kq("ytp-playlist-menu-title-name").removeAttribute("href"),this.N&&(this.VO(this.N),this.N=null))}; g.a.C4=function(){var X=this.playlist,J=X.author,L=J?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",x={CURRENT_POSITION:String(X.index+1),PLAYLIST_LENGTH:String(X.length)};J&&(x.AUTHOR=J);this.update({title:X.title,subtitle:g.is(L,x),playlisturl:this.api.getVideoUrl(!0)});J=X.K;if(J===this.T)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[X.index];else{L=g.d(this.playlistData);for(x=L.next();!x.done;x=L.next())x.value.dispose(); L=X.length;this.playlistData=[];for(x=0;x=this.K&&!X.N&&!J.isAd()&&!this.api.isEmbedsShortsMode()}else X=!1;this.visible=X;this.LO(this.visible);g.q8(this.element,"ytp-search-button-visible",this.visible);g.q8(this.element,"ytp-show-search-title",!this.api.cD());this.api.logVisibility(this.element,this.visible&&this.j)}; dx.prototype.G6=function(X){g.R.prototype.G6.call(this,X);this.api.logVisibility(this.element,this.visible&&X)};g.w(uQ,g.R); uQ.prototype.trigger=function(X,J,L,x){this.show();if(this.T&&X!==this.T){var Q=1;this.K&&(Q=GjO(this));pFo(this,Q,!1);T5P(this)}this.T=X;this.N=this.T===-1?this.S:this.D;X="";J?(this.W+=J,X=g.aF(this.W)):this.W=0;this.updateValue(this.T===-1?"durationBack":"durationForward",X);if(this.L==="hidden"||this.L==="fading-out")J=0,this.L==="fading-out"&&(J=GjO(this),jre(this)),rsA(this,J),this.L!=="fading-out"&&voP(this,this.N.querySelector(".ytp-seek-overlay-arrow-persistent")),this.L="fading-in";else if(this.L=== "fading-in"||this.L==="lingering")J=this.N.querySelector(".ytp-seek-overlay-duration"),X=g.J_(this.Z.G().experiments,"web_player_seek_overlay_duration_bump_scale")||.95,J.animate([{offset:0,transform:"scale(1)"},{offset:.5,transform:"scale("+X+")"},{offset:1,transform:"scale(1)"}],{duration:200,easing:"cubic-bezier(0, 1, 0.1, 1)"}),jre(this),this.L==="lingering"&&(this.B.stop(),this.B.start());this.Km=(0,g.uT)();L&&fvo(this,L,x)}; uQ.prototype.zd=function(X,J,L,x){this.trigger(X,x)}; uQ.prototype.Y_=function(X,J,L){this.trigger(X,J);L&&(X=X===-1?this.D.visualElement:this.S.visualElement,L={seekData:L},(J=g.Ow())&&g.ND(RV)(void 0,J,X,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",L,void 0))}; uQ.prototype.Wj=function(X,J,L){this.trigger(X,void 0,J,L)};g.w(o_,g.R);o_.prototype.onClick=function(){var X=this,J=this.api.G(),L=this.api.getVideoData(this.api.getPresentingPlayerType()),x=this.api.getPlaylistId();J=this.api.Y("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):J.getVideoUrl(L.videoId,x,void 0,!0);if(navigator.share)try{var Q=navigator.share({title:L.title,url:J});Q instanceof Promise&&Q.catch(function(K){F1A(X,K)})}catch(K){K instanceof Error&&F1A(this,K)}else this.L.jY(),Az(this.K,this.element,!1); this.api.logClick(this.element)}; o_.prototype.Wl=function(){var X=this.api.G(),J=this.api.isEmbedsShortsMode();g.q8(this.element,"ytp-show-share-title",g.lb(X)&&!J);this.L.F4()&&J?(X=(this.api.t0().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.lF(this.element,"right",X+"px")):J&&g.lF(this.element,"right","0px");this.updateValue("icon",{V:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{V:"path",uH:!0,U:"ytp-svg-fill",X:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]}); this.visible=exv(this);g.q8(this.element,"ytp-share-button-visible",this.visible);this.LO(this.visible);this.tooltip.H5();this.api.logVisibility(this.element,exv(this)&&this.j)}; o_.prototype.G6=function(X){g.R.prototype.G6.call(this,X);this.api.logVisibility(this.element,this.visible&&X)}; o_.prototype.uB=function(){g.R.prototype.uB.call(this);g.Qd(this.element,"ytp-share-button-visible")};g.w(RxP,g.kF);g.a=RxP.prototype;g.a.eh=function(X){X=dE(X);g.w0(this.B,X)||g.w0(this.closeButton,X)||Az(this)}; g.a.Vr=function(){g.kF.prototype.Vr.call(this);this.tooltip.yQ(this.element);this.api.logVisibility(this.L,!1);for(var X=g.d(this.N),J=X.next();!J.done;J=X.next())J=J.value,this.api.hasVe(J.element)&&this.api.logVisibility(J.element,!1)}; g.a.show=function(){var X=this.RB;g.kF.prototype.show.call(this);this.Wl();X||this.api.GH("onSharePanelOpened")}; g.a.C_=function(){this.RB&&this.Wl()}; g.a.Wl=function(){var X=this;g.xq(this.element,"ytp-share-panel-loading");g.Qd(this.element,"ytp-share-panel-fail");var J=this.api.getVideoData(),L=this.api.getPlaylistId()&&this.T.checked;J.getSharePanelCommand&&ht(this.api.jj(),J.getSharePanelCommand,{includeListId:L}).then(function(x){X.E6()||(g.Qd(X.element,"ytp-share-panel-loading"),N5z(X,x))}); J=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",J);this.updateValue("linkText",J);this.updateValue("shareLinkWithUrl",g.is("Compartir v\u00ednculo $URL",{URL:J}));aj(this.L);this.api.logVisibility(this.L,!0)}; g.a.onFullscreenToggled=function(X){!X&&this.F7()&&Az(this)}; g.a.focus=function(){this.L.focus()}; g.a.uB=function(){g.kF.prototype.uB.call(this);B5Z(this)};g.w(kjm,Sd);g.a=kjm.prototype;g.a.uB=function(){LNz(this);Sd.prototype.uB.call(this)}; g.a.S0=function(X){X.target!==this.dismissButton.element&&(this.g3(!1),this.Z.GH("innertubeCommand",this.onClickCommand))}; g.a.YG=function(){this.SC=!0;this.g3(!0);this.G4()}; g.a.ki6=function(X){this.W=X;this.G4()}; g.a.onVideoDataChange=function(X,J){if(X=!!J.videoId&&this.videoId!==J.videoId)this.videoId=J.videoId,this.SC=!1,this.Pl=!0,this.S=this.aB=!1,LNz(this),Jdm(this,!1),this.K=this.L=!1,SY(this),ZZI(this);if(X||!J.videoId)this.Km=this.T=!1;var L,x;if(J==null?0:(L=J.getPlayerResponse())==null?0:(x=L.videoDetails)==null?0:x.isLiveContent)this.Dt(!1);else{var Q,K,q;J=g.F((Q=J.getWatchNextResponse())==null?void 0:(K=Q.playerOverlays)==null?void 0:(q=K.playerOverlayRenderer)==null?void 0:q.productsInVideoOverlayRenderer, HWd);this.W=this.enabled=!1;if(J){if(Q=J==null?void 0:J.featuredProductsEntityKey){K=g.Vh.getState().entities;var D;if((D=AL(K,"featuredProductsEntity",Q))==null?0:D.productsData){this.Dt(!1);return}}this.enabled=!0;if(!this.T){var C;D=(C=J.badgeInteractionLogging)==null?void 0:C.trackingParams;(this.T=!!D)&&this.Z.setTrackingParams(this.badge.element,D||null)}if(!this.Km){var M;if(this.Km=!((M=J.dismissButton)==null||!M.trackingParams)){var y;this.Z.setTrackingParams(this.dismissButton.element,((y= J.dismissButton)==null?void 0:y.trackingParams)||null)}}J.isContentForward&&(C=J.productsData,Jdm(this,!0),ZZI(this),C=XG8(this,C),M=[],C.length>0&&M.push(C[0]),C.length>1&&(y=new g.R({V:"div",U:"ytp-suggested-action-more-products-icon"}),g.f(this,y),M.push(y),M.push.apply(M,g.nR(C.slice(1)))),this.B=new g.R({V:"div",C:M,U:"ytp-suggested-action-content-forward-container"}),g.f(this,this.B),this.Bl.element.append(this.B.element));this.text=g.Dn(J.text);var n;if(C=(n=J.dismissButton)==null?void 0:n.a11yLabel)this.bB= g.Dn(C);this.onClickCommand=J.onClickCommand;this.timing=J.timing;this.tj()}s_e(this);bX(this);this.G4()}}; g.a.mx=function(){return!this.W&&this.enabled&&!this.SC&&!this.Z.cD()&&!this.Nx&&(this.S||this.Pl)}; g.a.Oz=function(X){Sd.prototype.Oz.call(this,X);if(this.L||this.K)this.timing&&bQ(this.timing.preview)&&(this.L=!1,SY(this),this.K=!1,SY(this),this.Z.Q0("shopping_overlay_preview_collapsed"),this.Z.Q0("shopping_overlay_preview_expanded"),X=Pq(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),bQ(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.Z.Q0("shopping_overlay_expanded"),X.end=this.timing.expanded.endSec*1E3),this.Z.tj([X])), this.aB=!0,bX(this);SY(this)}; g.a.Dt=function(X){(this.S=X)?(oU(this),bX(this,!1)):(LNz(this),this.jC.start());this.G4()}; g.a.tj=function(X){var J=this.timing;X=(X===void 0?0:X)+this.Z.getCurrentTime();var L=[],x=J.visible,Q=J.preview;J=J.expanded;bQ(x)&&(UbZ(x,X),L.push(Pq(x.startSec,x.endSec,"shopping_overlay_visible")));bQ(Q)&&(UbZ(Q,X),x=Q.startSec+1,L.push(Pq(Q.startSec,x,"shopping_overlay_preview_collapsed")),L.push(Pq(x,Q.endSec,"shopping_overlay_preview_expanded")));bQ(J)&&(UbZ(J,X),L.push(Pq(J.startSec,J.endSec,"shopping_overlay_expanded")));this.Z.tj(L)}; g.a.G4=function(){Sd.prototype.G4.call(this);this.Z.getRootNode()&&g.q8(this.Z.getRootNode(),"ytp-shopping-pill-shown",this.mx())};g.w(QRm,g.R); QRm.prototype.Wl=function(){var X=this.api.G();this.LO(g.lb(X)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.RB);var J=this.api.getVideoData(),L=!1;this.api.getPresentingPlayerType()===2?L=!!J.videoId&&!!J.isListed&&!!J.author&&!!J.A0&&!!J.profilePicture:g.lb(X)&&(L=!!J.videoId&&!!J.A0&&!!J.profilePicture&&!g.$F(J)&&!X.N&&!(X.W&&this.api.getPlayerSize().width<200));var x=J.profilePicture;X=g.lb(X)?J.expandedTitle:J.author;x=x===void 0? "":x;X=X===void 0?"":X;L?(this.K!==x&&(this.L.style.backgroundImage="url("+x+")",this.K=x),this.updateValue("channelLogoLabel",g.is("Foto o imagen de $CHANNEL_NAME",{CHANNEL_NAME:X})),g.xq(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Qd(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.L,L&&this.j);this.api.logVisibility(this.channelName,L&&this.j);this.subscribeButton&&(this.subscribeButton.channelId=J.OY);this.updateValue("expandedTitle",J.expandedTitle)};g.w(cq,g.kF);cq.prototype.show=function(){g.kF.prototype.show.call(this);this.L.start()}; cq.prototype.hide=function(){g.kF.prototype.hide.call(this);this.L.stop()}; cq.prototype.vK=function(X,J){X==="dataloaded"&&((this.UV=J.UV,this.jT=J.jT,isNaN(this.UV)||isNaN(this.jT))?this.N&&(this.Z.Q0("intro"),this.Z.removeEventListener(g.sq("intro"),this.W),this.Z.removeEventListener(g.N2("intro"),this.B),this.Z.removeEventListener("onShowControls",this.T),this.hide(),this.N=!1):(this.Z.addEventListener(g.sq("intro"),this.W),this.Z.addEventListener(g.N2("intro"),this.B),this.Z.addEventListener("onShowControls",this.T),X=new g.Rw(this.UV,this.jT,{priority:9,namespace:"intro"}), this.Z.tj([X]),this.N=!0))};g.w(E3,g.R);E3.prototype.onClick=function(){this.Z.NI()}; E3.prototype.Wl=function(){var X=!0;g.lb(this.Z.G())&&(X=X&&this.Z.t0().getPlayerSize().width>=480);this.LO(X);X=this.updateValue;var J=this.Z.Y("delhi_modern_web_player_icons"),L=J?{V:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{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"}}]}:{V:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{V:"path",uH:!0,X:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]};J=J?{V:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{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"}}]}:{V:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{V:"path",uH:!0,U:"ytp-svg-fill",X:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]};X.call(this,"icon",this.Z.Od()?L:J)};g.w(qXZ,g.R);qXZ.prototype.uB=function(){this.L=null;g.R.prototype.uB.call(this)};g.w(Y9,g.R);Y9.prototype.onClick=function(){this.Z.GH("innertubeCommand",this.K)}; Y9.prototype.D=function(){if(this.Z.Y("delhi_modern_web_player")){var X=this.Z.getPlayerSize();X.width&&(this.element.style.maxWidth=X.width*.25+"px")}}; Y9.prototype.aB=function(X){X!==this.W&&(this.update({title:X,ariaLabel:X}),this.W=X);X?this.show():this.hide()}; Y9.prototype.Km=function(){this.L.disabled=this.K==null;g.q8(this.L,"ytp-chapter-container-disabled",this.L.disabled);this.qd()};g.w(h1,Y9);h1.prototype.onClickCommand=function(X){g.F(X,nI)&&this.qd()}; h1.prototype.updateVideoData=function(X,J){var L,x,Q;X=g.F((L=J.getWatchNextResponse())==null?void 0:(x=L.playerOverlays)==null?void 0:(Q=x.playerOverlayRenderer)==null?void 0:Q.decoratedPlayerBarRenderer,eH);L=g.F(X==null?void 0:X.playerBarActionButton,g.JE);if(this.Z.Y("web_player_updated_entrypoint")){this.S=et(L==null?void 0:L.text);var K;x=(K=L==null?void 0:L.tooltip)!=null?K:"Ver cap\u00edtulo";this.B.setAttribute("title",x)}this.K=L==null?void 0:L.command;Y9.prototype.Km.call(this)}; h1.prototype.qd=function(){var X=this.S,J=this.T.L,L,x=((L=this.Z.getLoopRange())==null?void 0:L.type)==="clips";if(J.length>1&&!x){X=this.Z.getProgressState().current*1E3;L=ML(J,X);X=J[L].title||"Cap\u00edtulos";if(L!==this.currentIndex||this.N)this.Z.GH("innertubeCommand",J[L].onActiveCommand),this.currentIndex=L;this.N=!1}else this.N=!0;Y9.prototype.aB.call(this,X)};g.w(zC,g.qy);zC.prototype.K=function(){var X;(X=this.element.parentElement)==null||X.classList.contains("ytp-right-controls-left");(this.L=!this.L)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; zC.prototype.isExpanded=function(){return this.L};g.w(Wq,g.R);Wq.prototype.N=function(X){g.N(X.state,32)?gVY(this,this.api.m4()):this.RB&&(g.N(X.state,16)||g.N(X.state,1))||this.fade.hide()}; Wq.prototype.HD=function(){var X=this.api.getPlayerStateObject();(g.N(X,32)||g.N(X,16))&&D58(this)}; Wq.prototype.T=function(){this.frameIndex=NaN;D58(this)}; Wq.prototype.hide=function(){this.L&&gVY(this,null);g.R.prototype.hide.call(this)};g.w($5I,g.R);g.a=$5I.prototype;g.a.onClick=function(){var X=this;if(this.Z.G().Nx||this.Z.G().W){this.Z.logClick(this.element);try{this.Z.toggleFullscreen().catch(function(J){X.Gh(J)})}catch(J){this.Gh(J)}}else Az(this.message,this.element,!0)}; g.a.Gh=function(X){String(X).includes("fullscreen error")?g.PM(X):g.Sc(X);this.hF()}; g.a.hF=function(){this.disable();this.message.nO(this.element,!0)}; g.a.Ih=function(){nl()===this.Z.getRootNode()?this.N.start():(this.N.stop(),this.message&&this.message.hide())}; g.a.w7=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var X=window.screen.width*.9,J=window.screen.height*.9,L=Math.max(window.outerWidth,window.innerWidth),x=Math.max(window.outerHeight,window.innerHeight);if(L>x!==X>J){var Q=L;L=x;x=Q}X>L&&J>x&&this.hF()}}; g.a.disable=function(){var X=this;if(!this.message){var J=(Cl(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"La opci\u00f3n de pantalla completa no est\u00e1 disponible. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK":"Tu navegador no es compatible con la opci\u00f3n de pantalla completa. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.kF(this.Z,{V:"div",Ql:["ytp-popup","ytp-generic-popup"], X:{role:"alert",tabindex:"0"},C:[J[0],{V:"a",X:{href:"https://support.google.com/youtube/answer/6276924",target:this.Z.G().D},iB:J[2]},J[4]]},100,!0);this.message.hide();g.f(this,this.message);this.message.subscribe("show",function(L){X.K.mw(X.message,L)}); g.l0(this.Z,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.L)();this.L=null}}; g.a.Wl=function(){var X=bhO(this.Z),J=this.Z.G().W&&this.Z.getPlayerSize().width<250;this.LO(X&&!J);var L;((L=this.Z.G())==null?0:L.Y("embeds_use_parent_visibility_in_ve_logging"))?this.Z.logVisibility(this.element,this.RB&&this.j):this.Z.logVisibility(this.element,this.RB)}; g.a.nI=function(X){if(X){var J=g.pO(this.Z,"Salir de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir de pantalla completa"});document.activeElement===this.element&&this.Z.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(L){g.PM(L)})}else J=g.pO(this.Z,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"}); X=CCm(this,X);J=this.message?null:J;this.update({title:J,icon:X});this.K.o0().H5()}; g.a.uB=function(){this.message||((0,this.L)(),this.L=null);g.R.prototype.uB.call(this)}; g.a.G6=function(X){g.R.prototype.G6.call(this,X);var J;((J=this.Z.G())==null?0:J.Y("embeds_use_parent_visibility_in_ve_logging"))&&this.Z.logVisibility(this.element,this.RB&&X)};g.w(pV,g.R);pV.prototype.onClick=function(){this.Z.logClick(this.element);this.Z.seekBy(this.L,!0);var X=this.L>0?1:-1,J=Math.abs(this.L),L=this.Z.gZ().Qp;L&&L.Y_(X,J);this.K.isActive()?this.N=!0:(X=["ytp-jump-spin"],this.L<0&&X.push("backwards"),this.element.classList.add.apply(this.element.classList,g.nR(X)),g.Nc(this.K))};g.w(rx,Y9);rx.prototype.onClickCommand=function(X){g.F(X,n08)&&this.qd()}; rx.prototype.updateVideoData=function(){var X,J;this.K=(X=ydm(this))==null?void 0:(J=X.onTap)==null?void 0:J.innertubeCommand;Y9.prototype.Km.call(this)}; rx.prototype.qd=function(){var X="",J=this.T.W,L,x=(L=ydm(this))==null?void 0:L.headerTitle;L=x?g.Dn(x):"";var Q;x=((Q=this.Z.getLoopRange())==null?void 0:Q.type)==="clips";J.length>1&&!x&&(X=this.Z.getProgressState().current*1E3,Q=noI(J,X),X=Q!=null?J[Q].title:L,Q!=null&&Q!==this.currentIndex&&(this.Z.GH("innertubeCommand",J[Q].onActiveCommand),this.currentIndex=Q));Y9.prototype.aB.call(this,X)};g.w(vq,g.R);vq.prototype.onClick=function(){this.Z.GH("onCollapseMiniplayer");this.Z.logClick(this.element)}; vq.prototype.Wl=function(){this.visible=!this.Z.isFullscreen();this.LO(this.visible);this.Z.logVisibility(this.element,this.visible&&this.j)}; vq.prototype.G6=function(X){g.R.prototype.G6.call(this,X);this.Z.logVisibility(this.element,this.visible&&X)};g.w(jY,g.R);jY.prototype.init=function(){this.updateValue("minvalue",this.T);this.updateValue("maxvalue",this.B);this.updateValue("stepvalue",this.S);this.updateValue("slidervalue",this.L);nVI(this,this.L)}; jY.prototype.N=function(){TC(this,Number(this.K.value));this.K.focus()}; jY.prototype.W=function(X){if(!X.defaultPrevented){switch(X.code){case "ArrowDown":X=-this.S;break;case "ArrowUp":X=this.S;break;default:return}TC(this,Math.min(this.B,Math.max(Number((this.L+X).toFixed(2)),this.T)))}};g.w(GC,jY);GC.prototype.onVolumeChange=function(X){if(this.D)this.D=!1;else{var J=X.volume;J===0||X.muted?TC(this,0):TC(this,J)}}; GC.prototype.N=function(){jY.prototype.N.call(this);this.Km(this.L)}; GC.prototype.aB=function(X){var J=-X.deltaY;J=X.deltaMode===WheelEvent.DOM_DELTA_LINE||X.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.fW(this.L+J,0,100):g.fW(this.L+g.fW(J/10,-10,10),0,100);J===0?TC(this,0):TC(this,J);this.Km(J);X.preventDefault();X.stopPropagation()}; GC.prototype.Pl=function(X,J){this.D=!0;X===0||J?this.Z.mute():(this.Z.isMuted()&&this.Z.unMute(),this.Z.setVolume(X))};g.w(VKI,g.R);g.w(eY,g.R);g.a=eY.prototype;g.a.tM=function(){if(!this.Z.wz()){this.updateValue("dataTooltipOffsetY",-120);var X;(X=this.L)!=null&&fV(X,!0);var J;(J=this.L)!=null&&J.L.stop()}}; g.a.gw=function(){var X;(X=this.L)!=null&&X.L.start()}; g.a.cR=function(X){this.visible=X.width>=300||this.vl;this.LO(this.visible);this.Z.logVisibility(this.element,this.visible&&this.j)}; g.a.Zq=function(){this.Z.G().vl?this.Z.isMuted()?this.Z.unMute():this.Z.mute():Az(this.message,this.element,!0);this.Z.logClick(this.element)}; g.a.wvE=function(X){if(this.Z.G().vl&&this.L)if(X.target===this.N){var J;if(!this.Z.wz()||((J=this.L)==null?0:J.isVisible))this.Zq();else{var L;(L=this.L)!=null&&fV(L,!0)}}else{var x;(x=this.L)!=null&&fV(x,!0)}else this.Zq()}; g.a.onVolumeChange=function(X){this.setVolume(X.volume,X.muted)}; g.a.setVolume=function(X,J){var L=this,x=J?0:X/100;X=x===0?1:X>50?1:0;if(this.D!==X){var Q=this.S;isNaN(Q)?tKm(this,X):hCv(this.Bl,function(q){tKm(L,Q+(L.D-Q)*q)},250); this.D=X}x=x===0?1:0;if(this.W!==x){var K=this.Pl;isNaN(K)?d5A(this,x):hCv(this.FE,function(q){d5A(L,K+(L.W-K)*q)},250); this.W=x}OKR(this,J)}; g.a.G6=function(X){g.R.prototype.G6.call(this,X);this.Z.logVisibility(this.element,this.visible&&X)}; var atR=["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"],wGO=["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.w(g.F7,g.R);g.a=g.F7.prototype;g.a.onStateChange=function(X){this.UA(X.state);var J;((J=this.Z.G())==null?0:J.Y("embeds_use_parent_visibility_in_ve_logging"))&&this.Z.logVisibility(this.element,this.RB&&this.j)}; g.a.UA=function(X){var J=g.ew(this.Z.getVideoData()),L=!1;X.isOrWillBePlaying()?X=J?4:2:g.N(X,2)?(X=3,L=J):X=1;this.element.disabled=L;if(this.L!==X){J=null;switch(X){case 2:J=g.pO(this.Z,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:J="Volver a reproducir";this.update({"data-title-no-tooltip":"Volver a reproducir"});break;case 1:J=g.pO(this.Z,"Reproducir","k");this.update({"data-title-no-tooltip":"Reproducir"});break;case 4:J="Detener la reproducci\u00f3n en vivo",this.update({"data-title-no-tooltip":"Detener la reproducci\u00f3n en vivo"})}X=== 3?this.update({title:J,icon:uWI(this,X)}):(this.update({title:J}),(J=uWI(this,X))&&this.L&&this.L!==3?W3W(this.transition,this.element,J):this.updateValue("icon",J));this.tooltip.H5();this.L=X}}; g.a.onVideoDataChange=function(){g.q8(this.element,"ytp-play-button-playlist",g.Gi(this.Z))}; g.a.Wh=function(X){this.Z.logClick(this.element);if(this.Z.getPlayerStateObject().isOrWillBePlaying())this.Z.pauseVideo();else{if(this.Z.isMinimized()&&this.Z.getPlayerStateObject().isCued()){var J={},L;if((L=this.Z.getVideoData())==null?0:L.B)J.cttAuthInfo={token:this.Z.getVideoData().B,videoId:this.Z.getVideoData().videoId};Sq("direct_playback",J);this.Z.r5().timerName="direct_playback"}this.Z.playVideo()}this.Z.isMinimized()&&(X==null?void 0:X.type)==="click"&&this.element.blur()}; g.a.G6=function(X){g.R.prototype.G6.call(this,X);var J;((J=this.Z.G())==null?0:J.Y("embeds_use_parent_visibility_in_ve_logging"))&&this.Z.logVisibility(this.element,this.RB&&X)};g.w(g.lQ,g.R);g.a=g.lQ.prototype;g.a.onVideoDataChange=function(){SXA(this);this.T&&(this.VO(this.T),this.T=null);this.videoData=this.Z.getVideoData(1);if(this.playlist=this.Z.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.T=this.J(this.Z,"progresssync",this.tN);this.N=PCe(this);bKW(this);this.Mc(this.Z.t0().getPlayerSize())}; g.a.Mc=function(X){X=X===void 0?this.Z.t0().getPlayerSize():X;var J,L=((J=this.Z.getLoopRange())==null?void 0:J.type)==="clips";X=(g.Gi(this.Z)||this.L&&g.Rq(this.Z)&&!this.Z.Y("web_hide_next_button")||cdv(this))&&!L&&(this.L||X.width>=400);this.LO(X);this.Z.logVisibility(this.element,X)}; g.a.onClick=function(X){this.Z.logClick(this.element);var J=!0;this.W?J=g.nG(X,this.Z):X.preventDefault();J&&(this.L&&this.Z.getPresentingPlayerType()===5?this.Z.publish("ytoprerollinternstitialnext"):this.L?(tx(this.Z.r5()),this.Z.publish("playlistnextbuttonclicked",this.element),this.Z.nextVideo(!0)):this.N?this.Z.seekTo(0):(tx(this.Z.r5()),this.Z.publish("playlistprevbuttonclicked",this.element),this.Z.previousVideo(!0)))}; g.a.tN=function(){var X=PCe(this);X!==this.N&&(this.N=X,bKW(this))}; g.a.uB=function(){this.K&&(this.K(),this.K=null);SXA(this);g.R.prototype.uB.call(this)};g.w(YXm,g.R);g.a=YXm.prototype;g.a.XF=function(X){this.eq(X.pageX);this.Oj(X.pageX+X.deltaX);hZI(this)}; g.a.eq=function(X){this.Km=X-this.vl}; g.a.Oj=function(X){X-=this.vl;!isNaN(this.Km)&&this.thumbnails.length>0&&(this.D=X-this.Km,this.thumbnails.length>0&&this.D!==0&&(this.N=this.S+this.D,X=vVe(this,this.N),this.N<=this.L/2&&this.N>=rdI(this)?(this.api.seekTo(X,!1,void 0,void 0,25),g.lF(this.Pl,"transform","translateX("+(this.N-this.L/2)+"px)"),EVm(this,X)):this.N=this.S))}; g.a.cM=function(){this.aB&&(this.aB.Le=!0);var X=(0,g.uT)()-this.Hl<300;if(Math.abs(this.D)<5&&!X){this.Hl=(0,g.uT)();X=this.Km+this.D;var J=this.L/2-X;this.eq(X);this.Oj(X+J);hZI(this);this.api.logClick(this.B)}hZI(this)}; g.a.Cx=function(){R_(this,this.api.getCurrentTime())}; g.a.play=function(X){this.api.seekTo(vVe(this,this.N),void 0,void 0,void 0,26);this.api.playVideo();X&&this.api.logClick(this.playButton)}; g.a.onExit=function(X){this.api.seekTo(this.jC,void 0,void 0,void 0,63);this.api.playVideo();X&&this.api.logClick(this.dismissButton)}; g.a.A_=function(X,J){this.vl=X;this.L=J;R_(this,this.api.getCurrentTime())}; g.a.enable=function(){this.isEnabled||(this.isEnabled=!0,this.jC=this.api.getCurrentTime(),EVm(this,this.jC),g.q8(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Bl=this.J(this.element,"wheel",this.XF),this.logVisibility(this.isEnabled))}; g.a.disable=function(){this.isEnabled=!1;this.hide();g.q8(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Bl&&this.VO(this.Bl);this.logVisibility(this.isEnabled)}; g.a.reset=function(){this.disable();this.T=[];this.gI=!1}; g.a.logVisibility=function(X){this.api.logVisibility(this.element,X);this.api.logVisibility(this.B,X);this.api.logVisibility(this.dismissButton,X);this.api.logVisibility(this.playButton,X)}; g.a.uB=function(){for(;this.K.length;){var X=void 0;(X=this.K.pop())==null||X.dispose()}g.R.prototype.uB.call(this)}; g.w(zZP,g.R);g.w(WN8,g.R);g.w(jRW,g.R);g.w(Bq,g.R);Bq.prototype.kH=function(X){return X==="PLAY_PROGRESS"?this.S:X==="LOAD_PROGRESS"?this.W:X==="LIVE_BUFFER"?this.B:this.N};ftW.prototype.update=function(X,J,L,x){L=L===void 0?0:L;this.width=J;this.T=L;this.L=J-L-(x===void 0?0:x);this.position=g.fW(X,L,L+this.L);this.N=this.position-L;this.K=this.N/this.L};g.w(eZR,g.R);g.w(g.U3,g.qy);g.a=g.U3.prototype; g.a.CX=function(){var X=!1,J=this.api.getVideoData();if(!J)return X;this.api.Q0("timedMarkerCueRange");RZY(this);for(var L=g.d(J.J0),x=L.next();!x.done;x=L.next()){x=x.value;var Q=void 0,K=(Q=this.bB[x])==null?void 0:Q.markerType;Q=void 0;var q=(Q=this.bB[x])==null?void 0:Q.markers;if(!q)break;if(K==="MARKER_TYPE_TIMESTAMPS"){X=g.d(q);for(K=X.next();!K.done;K=X.next()){Q=K.value;K=new eZR;q=void 0;K.title=((q=Q.title)==null?void 0:q.simpleText)||"";K.timeRangeStartMillis=Number(Q.startMillis);K.L= Number(Q.durationMillis);var D=q=void 0;K.onActiveCommand=(D=(q=Q.onActive)==null?void 0:q.innertubeCommand)!=null?D:void 0;kZP(this,K)}ZKW(this,this.W);X=this.W;K=this.HO;Q=[];q=null;for(D=0;DC&&(q.end=C);C=OZP(C,C+y);Q.push(C);q=C;K[C.id]=X[D].onActiveCommand}}this.api.tj(Q);this.Ii=this.bB[x];X=!0}else if(K==="MARKER_TYPE_HEATMAP"){x=this.bB[x];y=M=Q=C=D=q=void 0;if(x&& x.markers){K=(Q=(y=x.markersMetadata)==null?void 0:(M=y.heatmapMetadata)==null?void 0:M.minHeightDp)!=null?Q:0;Q=(q=(C=x.markersMetadata)==null?void 0:(D=C.heatmapMetadata)==null?void 0:D.maxHeightDp)!=null?q:60;q=this.L.length;D=null;for(C=0;C=y&&O<=n&&M.push(H)}Q>0&&(this.aB.style.height= Q+"px");y=this.T[C];n=M;H=K;var u=Q,S=C===0;S=S===void 0?!1:S;TU8(y,u);V=n;O=y.K;S=S===void 0?!1:S;var Y=1E3/V.length,h=[];h.push({x:0,y:100});for(var W=0;W0&&(D=M[M.length-1])}g.mw(this)}Q=void 0;K=[];if(x=(Q=x.markersDecoration)==null?void 0:Q.timedMarkerDecorations)for(x=g.d(x),Q=x.next();!Q.done;Q=x.next())Q=Q.value,C=D=q=void 0,K.push({visibleTimeRangeStartMillis:(q=Q.visibleTimeRangeStartMillis)!=null?q:-1,visibleTimeRangeEndMillis:(D=Q.visibleTimeRangeEndMillis)!=null?D:-1,decorationTimeMillis:(C=Q.decorationTimeMillis)!= null?C:NaN,label:Q.label?g.Dn(Q.label):""});x=K;this.heatMarkersDecorations=x}}J.gb=this.W;g.q8(this.element,"ytp-timed-markers-enabled",X);return X}; g.a.A_=function(){g.mw(this);A1(this);ZKW(this,this.W);if(this.K){var X=g.Z8(this.element).x||0;this.K.A_(X,this.B)}}; g.a.UdB=function(){var X=this.api.getVideoData();X&&glY(this,X)}; g.a.onClickCommand=function(X){if(X=g.F(X,nI)){var J=X.key;X.isVisible&&J&&LoZ(this,J)}}; g.a.hNm=function(X){this.api.GH("innertubeCommand",this.HO[X.id])}; g.a.qd=function(){A1(this);var X=this.api.getCurrentTime();(Xthis.clipEnd)&&this.GA()}; g.a.lj=function(X){if(!X.defaultPrevented){var J=!1;switch(X.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);J=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);J=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);J=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);J=!0;break;case 38:this.api.Y("enable_key_press_seek_logging")&&Qr(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);J=!0;break;case 40:this.api.Y("enable_key_press_seek_logging")&&Qr(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),J=!0}J&&X.preventDefault()}}; g.a.vK=function(X,J){this.updateVideoData(J,X==="newdata")}; g.a.nh=function(){this.vK("newdata",this.api.getVideoData())}; g.a.updateVideoData=function(X,J){J=J===void 0?!1:J;var L=!!X&&X.bl();L&&(gB(X)||qOS(this)?this.LW=!1:this.LW=X.allowLiveDvr,g.q8(this.api.getRootNode(),"ytp-enable-live-buffer",!(X==null||!gB(X))),glY(this,X));dIv(this,this.api.tJ());if(J){if(L){J=X.clipEnd;this.clipStart=X.clipStart;this.clipEnd=J;K$(this);for(L$(this,this.Km,this.Lp);this.T.length>0;)this.T.pop().dispose();this.heatMarkersDecorations=[];this.z6={};var x;(x=this.K)==null||x.reset();$J(this);g.q8(this.api.getRootNode(),"ytp-fine-scrubbing-exp", NL(this))}else this.GA();this.Kv()}if(X){var Q;x=((Q=this.FX)==null?void 0:Q.type)==="clips";if(Q=!X.isLivePlayback){Q=this.api.getVideoData();J=g.F_(Q);L=sR8(Q);var K;Q=J!=null||L!=null&&L.length>0||((K=Q.GY)==null?void 0:K.length)>0}if(Q&&!x){K=this.api.getVideoData();x=g.F_(K);Q=!1;if(x==null?0:x.markersMap){Q=this.api.getVideoData();var q;Q.H2=((q=x.visibleOnLoad)==null?void 0:q.key)||Q.H2;q=g.d(x.markersMap);for(x=q.next();!x.done;x=q.next())x=x.value,x.key&&x.value&&(this.z6[x.key]=x.value, x.value.onChapterRepeat&&(Q.YX=x.value.onChapterRepeat));Q.H2!=null&&LoZ(this,Q.H2);Q=!0}var D;if(((D=K.GY)==null?void 0:D.length)>0){D=g.Vh.getState().entities;q=g.d(K.GY);for(x=q.next();!x.done;x=q.next()){x=x.value;L=void 0;J=(L=AL(D,"macroMarkersListEntity",x))==null?void 0:L.markersList;var C=L=void 0;if(((L=J)==null?void 0:L.markerType)==="MARKER_TYPE_TIMESTAMPS"||((C=J)==null?void 0:C.markerType)==="MARKER_TYPE_HEATMAP")this.bB[x]=J}Q=this.CX()||Q}!Q&&(D=sR8(K))&&(U5W(this,D),K.Ii=this.L,NU8(this)); DIO(this,null);X.fl&&this.T.length===0&&(X=X.fl,D=X.key,X.isVisible&&D&&LoZ(this,D))}else FNv(this),RZY(this)}A1(this)}; g.a.Sy=function(X){this.S&&!g.N(X.state,32)&&this.api.getPresentingPlayerType()!==3&&this.S.cancel();var J;((J=this.K)==null?0:J.isEnabled)&&g.N(X.state,8)&&this.api.pauseVideo();X=this.api.getPresentingPlayerType()===2||!this.api.tJ()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.q8(this.YU,"ytp-hide-scrubber-button",X)}; g.a.Xj=function(X){var J=!!this.FX!==!!X,L=this.FX;this.FX=X;DIO(this,L);(X==null?void 0:X.type)!=="clips"&&X||(X?(this.updateValue("clipstarticon",dkR()),this.updateValue("clipendicon",dkR()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",y3I()),this.updateValue("clipendicon",MfS()),this.updateValue("clipstarttitle","Mirar video completo"),this.updateValue("clipendtitle","Mirar video completo")),J&&(this.updateVideoData(this.api.getVideoData(), !0),g.mw(this)),K$(this));L$(this,this.Km,this.Lp)}; g.a.fhl=function(){this.api.publish("progressBarHoverStart")}; g.a.FZY=function(X,J,L){var x=g.Z8(this.element),Q=Z5(this).L,K=L?L.getAttribute("data-tooltip"):void 0,q=L?L.getAttribute("data-position"):void 0,D=L?L.getAttribute("data-offset-y"):void 0;D=D?Number(D):0;q&&(X=EL(this.N,Number(L.getAttribute("data-position")),0)*Q+g.Z8(this.progressBar).x);this.A0.x=X-x.x;this.A0.y=J-x.y;X=Z5(this);L=i3(this,X);J=0;var C;if((C=this.api.getVideoData())==null?0:gB(C))(C=this.api.getProgressState().seekableEnd)&&L>C&&(L=C,X.position=EL(this.N,C)*Z5(this).L),J=this.N.K; qOS(this)&&(J=this.N.K);C=K||g.aF(this.LW?L-this.N.L:L-J);J=X.position+this.iJ;L-=this.api.W4();var M;if((M=this.K)==null||!M.isEnabled)if(this.api.m4()){if(this.L.length>1){M=xJ(this,this.A0.x,!0);if(!this.FX)for(x=0;x1)for(x=0;x0)for(M=this.A0.x,x=g.d(this.W),Q=x.next();!Q.done;Q=x.next())Q=Q.value,q=k9(this,Q.timeRangeStartMillis/ (this.N.L*1E3),Z5(this)),g.q8(Q.element,"ytp-timed-marker-hover",q<=M&&q+6>=M);x=this.tooltip.scale;M=this.api.Y("delhi_modern_web_player")?67:45;D=(isNaN(D)?0:D)-M*x;this.api.Y("web_key_moments_markers")?this.Ii?(M=noI(this.W,L*1E3),M=M!=null?this.W[M].title:""):(M=ML(this.L,L*1E3),M=this.L[M].title):(M=ML(this.L,L*1E3),M=this.L[M].title);M||(D+=16*x);this.tooltip.scale===.6&&(g.$3(this.api.G())?(D=this.api.t0().getPlayerSize().height-225,x=this.api.Y("delhi_modern_web_player")?70:110,D=M?D+x:D+ x+16):D=M?110:126);x=ML(this.L,L*1E3);this.gI=$Im(this,L,x)?x:$Im(this,L,x+1)?x+1:-1;g.q8(this.api.getRootNode(),"ytp-progress-bar-snap",this.gI!==-1&&this.L.length>1);x=!1;Q=g.d(this.heatMarkersDecorations);for(q=Q.next();!q.done;q=Q.next()){q=q.value;var y=L*1E3;y>=q.visibleTimeRangeStartMillis&&y<=q.visibleTimeRangeEndMillis&&(M=q.label,C=g.aF(q.decorationTimeMillis/1E3),x=!0)}this.BO!==x&&(this.BO=x,this.api.logVisibility(this.r0,this.BO));g.q8(this.api.getRootNode(),"ytp-progress-bar-decoration", x);x=160*this.tooltip.scale*2;Q=M.length*(this.D?8.55:5.7);Q=Q<=x?Q:x;q=Q<160*this.tooltip.scale;x=3;!q&&Q/2>X.position&&(x=1);!q&&Q/2>this.B-X.position&&(x=2);this.api.G().W&&(D-=10);this.T.length&&this.T[0].bl&&(D-=14*(this.D?2:1),this.jC||(this.jC=!0,this.api.logVisibility(this.aB,this.jC)));var n;if(NL(this)&&(((n=this.K)==null?0:n.isEnabled)||this.J0>0)){var V;D-=((V=this.K)==null?0:V.isEnabled)?In(this):this.J0}n=void 0;NL(this)&&!this.api.Y("web_player_hide_fine_scrubbing_edu")&&(n="Arrastra hacia arriba para realizar una b\u00fasqueda m\u00e1s precisa", this.vl||(this.vl=!0,this.api.logVisibility(this.ek,this.vl)));this.tooltip.j3(J,L,C,!!K,D,M,x,n)}else this.tooltip.j3(J,L,C,!!K,D);g.xq(this.api.getRootNode(),"ytp-progress-bar-hover");Ko8(this)}; g.a.gFY=function(){this.Kv();g.Qd(this.api.getRootNode(),"ytp-progress-bar-hover");this.jC&&(this.jC=!1,this.api.logVisibility(this.aB,this.jC));this.vl&&(this.vl=!1,this.api.logVisibility(this.ek,this.vl));this.api.Y("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.a.TQM=function(X,J){var L=g.Z8(this.element);this.YF=X-L.x;NL(this)&&this.K&&(this.K.gI?R_(this.K,this.api.getCurrentTime()):pGO(this.K),this.K.show(),g.q8(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.K.isEnabled));this.o2&&(this.o2.dispose(),this.o2=null);this.jX=J;this.qQ=this.api.getCurrentTime();this.L.length>1&&this.gI!==-1?this.api.seekTo(this.L[this.gI].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(i3(this,Z5(this)),!1,void 0,void 0,7);g.xq(this.element,"ytp-drag");(this.Vq= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.a.zx9=function(){if(NL(this)&&this.K){var X=In(this);this.J0>=X*.5?(this.K.enable(),R_(this.K,this.api.getCurrentTime()),tVm(this,X)):$J(this)}if(g.N(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var J;if((J=this.K)==null?0:J.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.L.length>1&&this.gI!==-1)this.api.Y("html5_enable_progress_bar_slide_seek_logging")&&Qr(this,this.qQ,this.L[this.gI].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.L[this.gI].startTime/1E3,void 0,void 0,void 0,7);else{X=i3(this,Z5(this));this.api.Y("html5_enable_progress_bar_slide_seek_logging")&&Qr(this,this.qQ,X,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(X,void 0,void 0,void 0,7);J=g.d(this.heatMarkersDecorations);for(var L=J.next();!L.done;L=J.next())L=L.value,X*1E3>=L.visibleTimeRangeStartMillis&&X*1E3<=L.visibleTimeRangeEndMillis&& this.api.logClick(this.r0)}g.Qd(this.element,"ytp-drag");this.FE&&(this.Pl.src=this.FE);this.Vq&&!g.N(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.a.w9l=function(X,J){var L=this,x=Z5(this),Q=i3(this,x);this.api.t0().Lq||(x.position>this.YF+2?this.XX&&(this.Pl.src=this.XX):x.position1);this.LO(X&&this.Z.t0().getPlayerSize().width>=400);this.Z.logVisibility(this.element,this.RB);var J=1;X&&this.isActive()&&(J=2);if(this.L!==J){this.L=J;X=this.Z.Y("delhi_modern_web_player_icons");switch(J){case 1:this.updateValue("icon",X?{V:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{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"}}]}:{V:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},C:[{V:"path",uH:!0,X:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",fill:"#fff"}}]});break;case 2:this.updateValue("icon", X?{V:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},C:[{V:"path",X:{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.$km())}g.q8(this.element,"ytp-remote-button-active",this.isActive())}}; C$.prototype.K=function(){if(this.Z.getOption("remote","quickCast"))this.Z.setOption("remote","quickCast",!0);else{var X=this.uh,J=this.element;if(X.F7())X.Vr();else{X.initialize();a:{var L=g.d(X.y0.items);for(var x=L.next();!x.done;x=L.next())if(x=x.value,x.priority===1){L=x;break a}L=null}L&&(L.open(),X.nO(J));X.nO(J)}}this.Z.logClick(this.element)};g.w(MQ,g.R);MQ.prototype.L=function(X){var J=this.Z.G(),L=400;this.Z.Y("web_player_small_hbp_settings_menu")&&J.B?L=300:J.W&&(L=200);X=this.K&&X.width>=L;this.LO(X);this.Z.Y("embeds_use_parent_visibility_in_ve_logging")?this.Z.logVisibility(this.element,X&&this.j):this.Z.logVisibility(this.element,X)}; MQ.prototype.N=function(){if(this.uh.RB)this.uh.Vr();else{var X=g.hx(this.Z.h_());X&&!X.loaded&&(X.Dx("tracklist",{includeAsr:!0}).length||X.load());this.Z.logClick(this.element);this.uh.nO(this.element)}}; MQ.prototype.updateBadge=function(){var X=this.Z.isHdr(),J=this.Z.getPresentingPlayerType(),L=J!==2&&J!==3,x=g.F3(this.Z),Q=L&&!!g.ey(this.Z.h_());J=Q&&x.displayMode===1;x=Q&&x.displayMode===2;L=(Q=J||x)||!L?null:this.Z.getPlaybackQuality();g.q8(this.element,"ytp-hdr-quality-badge",X);g.q8(this.element,"ytp-hd-quality-badge",!X&&(L==="hd1080"||L==="hd1440"));g.q8(this.element,"ytp-4k-quality-badge",!X&&L==="hd2160");g.q8(this.element,"ytp-5k-quality-badge",!X&&L==="hd2880");g.q8(this.element,"ytp-8k-quality-badge", !X&&L==="highres");g.q8(this.element,"ytp-3d-badge-grey",!X&&Q&&J);g.q8(this.element,"ytp-3d-badge",!X&&Q&&x)};g.w(yr,M6);yr.prototype.isLoaded=function(){var X=g.jT(this.Z.h_());return X!==void 0&&X.loaded}; yr.prototype.Wl=function(){g.jT(this.Z.h_())!==void 0&&this.Z.getPresentingPlayerType()!==3?this.L||(this.uh.EA(this),this.L=!0):this.L&&(this.uh.xM(this),this.L=!1);yv(this,this.isLoaded())}; yr.prototype.onSelect=function(X){this.isLoaded();X?this.Z.loadModule("annotations_module"):this.Z.unloadModule("annotations_module");this.Z.publish("annotationvisibility",X)}; yr.prototype.uB=function(){this.L&&this.uh.xM(this);M6.prototype.uB.call(this)};g.w(n$,g.Tz);n$.prototype.Wl=function(){var X=this.Z.getAvailableAudioTracks();X.length>1?(this.Rk(g.H5(X,this.L)),this.tracks=g.ku(X,this.L,this),this.countLabel.e7(X.length?" ("+X.length+")":""),this.publish("size-change"),this.Cn(this.L(this.Z.getAudioTrack())),this.enable(!0)):this.enable(!1)}; n$.prototype.Ln=function(X){g.Tz.prototype.Ln.call(this,X);this.Z.setAudioTrack(this.tracks[X]);this.uh.lJ()}; n$.prototype.L=function(X){return X.toString()};g.w(Vr,M6); Vr.prototype.K=function(){var X=this.Z.getPresentingPlayerType();if(X!==2&&X!==3&&g.Rq(this.Z))this.L||(this.uh.EA(this),this.L=!0,this.N.push(this.J(this.Z,"videodatachange",this.K)),this.N.push(this.J(this.Z,"videoplayerreset",this.K)),this.N.push(this.J(this.Z,"onPlaylistUpdate",this.K)),this.N.push(this.J(this.Z,"autonavchange",this.T)),X=this.Z.getVideoData(),this.T(X.autonavState),this.Z.logVisibility(this.element,this.L));else if(this.L){this.uh.xM(this);this.L=!1;X=g.d(this.N);for(var J=X.next();!J.done;J= X.next())this.VO(J.value)}}; Vr.prototype.T=function(X){yv(this,X!==1)}; Vr.prototype.onSelect=function(X){this.Z.tG(X?2:1);this.L&&(this.Z.logVisibility(this.element,this.L),this.Z.logClick(this.element))}; Vr.prototype.uB=function(){this.L&&this.uh.xM(this);M6.prototype.uB.call(this)};g.w(olA,g.LG);olA.prototype.onClick=function(X){X.preventDefault();var J,L;(J=g.b0(this.Z))==null||(L=J.TB())==null||L.Vr();var x,Q;(x=g.b0(this.Z))==null||(Q=x.PC())==null||Q.nO(X.target)};g.w(bcZ,g.Tz);g.a=bcZ.prototype; g.a.OZ=function(){var X=this.Z.getPresentingPlayerType();if(X!==2&&X!==3){this.Pl=this.Z.qX();var J=this.Z.getAvailableQualityLevels();if(this.L){this.T={};X=g.wB(this.Z,"getAvailableQualityData",[]);X=g.d(X);for(var L=X.next();!L.done;L=X.next())L=L.value,this.T[L.qualityLabel]=L;X=Object.keys(this.T);J[J.length-1]==="auto"&&X.push("auto");this.FE=new Set(J)}else if(this.B){L=g.wB(this.Z,"getAvailableQualityData",[]);X=[];L=g.d(L);for(var x=L.next();!x.done;x=L.next())x=x.value,this.D[x.quality]= x,x.quality&&X.push(x.quality);J[J.length-1]==="auto"&&X.push("auto")}else X=J;g.Dtz(this.Z)&&this.Z.xx()&&X.unshift("missing-qualities");J=this.Z.app.nm();L=J.getVideoData();if(!L.K||!L.K.video||L.K.video.qualityOrdinal<1080||L.xl)J=!1;else{x=/^qsa/.test(L.clientPlaybackNonce);var Q="r";L.K.id.indexOf(";")>=0&&(x=/^[a-p]/.test(L.clientPlaybackNonce),Q="x");x?(J.Ni("iqss",{trigger:Q},!0),J=!0):J=!1}J&&X.unshift("inline-survey");this.Rk(X);J=this.Z.getVideoData().cotn?!0:!1;L=this.aB.w5();L=!g.$3(this.Z.G())|| !(J===void 0?0:J)||!(L===void 0||L);J=this.K;L=L===void 0?!1:L;J.Lc&&g.q8(J.kq("ytp-panel-footer"),"ytp-panel-hide-footer",L===void 0?!1:L);if(X.length){this.Cy();this.enable(!0);return}}this.enable(!1)}; g.a.Cy=function(){if(this.L){var X=this.Z.getPreferredQuality();this.FE.has(X)&&(this.W=this.Z.getPlaybackQuality(),this.Km=this.Z.getPlaybackQualityLabel(),X==="auto"?(this.Cn(X),this.e7(this.rz(X))):this.Cn(this.Km))}else X=this.Z.getPreferredQuality(),this.options[X]&&(this.W=this.Z.getPlaybackQuality(),this.Cn(X),X==="auto"&&this.e7(this.rz(X)))}; g.a.Ln=function(X){if(X!=="missing-qualities"){g.Tz.prototype.Ln.call(this,X);var J=this.L?this.T[X]:this.D[X];var L=J==null?void 0:J.quality,x=J==null?void 0:J.formatId,Q=J==null?void 0:J.paygatedQualityDetails;J=Q==null?void 0:Q.endpoint;if(Q){var K;Q=(K=this.options[X])==null?void 0:K.element;this.Z.logClick(Q)}if(this.L){var q,D;if((q=g.F(J,g.g0v))==null?0:(D=q.popup)==null?0:D.notificationActionRenderer)this.Z.GH("innertubeCommand",J);else if(J){this.Z.GH("innertubeCommand",J);return}x?this.Z.setPlaybackQuality(L, x):this.Z.setPlaybackQuality(L)}else{if(this.B){var C,M;if((C=g.F(J,g.g0v))==null?0:(M=C.popup)==null?0:M.notificationActionRenderer)this.Z.GH("innertubeCommand",J);else if(J){this.Z.GH("innertubeCommand",J);return}}this.Z.setPlaybackQuality(X)}this.uh.Vr();this.OZ()}}; g.a.open=function(){for(var X=g.d(Object.values(this.options)),J=X.next();!J.done;J=X.next()){J=J.value;var L=void 0;this.Z.hasVe((L=J)==null?void 0:L.element)&&(L=void 0,this.Z.logVisibility((L=J)==null?void 0:L.element,!0))}g.Tz.prototype.open.call(this);this.Z.logClick(this.element)}; g.a.ma=function(X,J,L){var x=this;if(X==="missing-qualities")return new g.LG({V:"a",Ql:["ytp-menuitem"],X:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.Z.G().D,tabindex:"0",role:"menuitemradio"},C:[{V:"div",Ql:["ytp-menuitem-label"],iB:"{{label}}"}]},J,this.rz(X));if(X!=="inline-survey"){var Q,K=(Q=this.L?this.T[X]:this.D[X])==null?void 0:Q.paygatedQualityDetails;Q=K==null?void 0:K.veType;K=K==null?void 0:K.trackingParams;J=g.Tz.prototype.ma.call(this,X,J,L);K?(this.Z.createServerVe(J.element, this,!0),this.Z.setTrackingParams(J.element,K)):Q&&this.Z.createClientVe(J.element,this,Q,!0);return J}X=[{V:"span",iB:"\u00bfSe ve bien?"}];L=g.d([!0,!1]);K=L.next();for(Q={};!K.done;Q={OJ:void 0},K=L.next())Q.OJ=K.value,K=new g.R({V:"span",U:"ytp-menuitem-inline-survey-response",C:[Q.OJ?tfS():Vfo()],X:{tabindex:"0",role:"button"}}),K.listen("click",function(q){return function(){var D=x.Z.app.nm();D.Ni("iqsr",{tu:q.OJ});D.getVideoData().xl=!0;x.uh.Vr();x.OZ()}}(Q)),X.push(K); return new g.LG({V:"div",U:"ytp-menuitem",X:{"aria-disabled":"true"},C:[{V:"div",Ql:["ytp-menuitem-label"],C:X}]},J)}; g.a.rz=function(X,J){J=J===void 0?!1:J;if(X==="missing-qualities")return{V:"div",iB:"\u00bfFaltan opciones?"};if(X==="inline-survey")return"";var L=this.B||this.L?[cho(this,X,J,!1)]:[P_o(this,X)];var x=this.Z.getPreferredQuality();J||x!=="auto"||X!=="auto"||(L.push(" "),this.L?L.push(cho(this,this.Km,J,!0,["ytp-menu-label-secondary"])):this.B?L.push(cho(this,this.W,J,!0,["ytp-menu-label-secondary"])):L.push(P_o(this,this.W,["ytp-menu-label-secondary"])));return{V:"div",C:L}};g.w(Hn,jY);Hn.prototype.N=function(){jY.prototype.N.call(this);this.D&&Elo(this)}; Hn.prototype.Pl=function(){this.Km()}; Hn.prototype.aB=function(){this.Z.setPlaybackRate(this.L,!0)}; Hn.prototype.W=function(X){jY.prototype.W.call(this,X);this.Km();Elo(this);X.preventDefault()};g.w(Ob,g.R);g.a=Ob.prototype;g.a.init=function(){this.ND(this.L);this.updateValue("minvalue",this.K);this.updateValue("maxvalue",this.N)}; g.a.rl=function(X){if(!X.defaultPrevented){switch(X.keyCode){case 37:case 40:var J=-this.S;break;case 39:case 38:J=this.S;break;default:return}this.ND(this.L+J);X.preventDefault()}}; g.a.DP=function(X){var J=this.L;J+=(X.deltaX||-X.deltaY)<0?-this.D:this.D;this.ND(J);X.preventDefault()}; g.a.AN=function(X){X=(X-g.Z8(this.T).x)/this.Km*this.range+this.K;this.ND(X)}; g.a.ND=function(X,J){J=J===void 0?"":J;X=g.fW(X,this.K,this.N);J===""&&(J=X.toString());this.updateValue("valuenow",X);this.updateValue("valuetext",J);this.aB.style.left=(X-this.K)/this.range*(this.Km-this.gI)+"px";this.L=X}; g.a.focus=function(){this.Bl.focus()};g.w(an,Ob);an.prototype.Pl=function(){this.Z.setPlaybackRate(this.L,!0)}; an.prototype.ND=function(X){Ob.prototype.ND.call(this,X,hIv(this,X).toString());this.B&&(YOv(this),this.FE())}; an.prototype.updateValues=function(){var X=this.Z.getPlaybackRate();hIv(this,this.L)!==X&&(this.ND(X),YOv(this))};g.w(zIS,g.qy);zIS.prototype.focus=function(){this.L.focus()};g.w(WoY,PS);g.w(pJm,g.Tz);g.a=pJm.prototype;g.a.rz=function(X){return X==="1"?"Normal":X.toLocaleString()}; g.a.Wl=function(){var X,J=(X=this.Z.getVideoData())==null?void 0:X.OA();X=this.Z.getPresentingPlayerType(J);this.enable(X!==2&&X!==3);j5S(this)}; g.a.Rk=function(X){g.Tz.prototype.Rk.call(this,X);this.W&&this.W.K.focus()}; g.a.Or=function(X){g.Tz.prototype.Or.call(this,X);X?(this.Km=this.J(this.Z,"onPlaybackRateChange",this.onPlaybackRateChange),j5S(this),rhm(this,this.Z.getPlaybackRate())):(this.VO(this.Km),this.Km=null)}; g.a.onPlaybackRateChange=function(X){var J=this.Z.getPlaybackRate();!this.T&&this.D.includes(J)||vlI(this,J);rhm(this,X)}; g.a.ma=function(X,J,L){return X===this.L&&T$m(this.Z)?g.Tz.prototype.ma.call(this,X,J,L,{V:"div",U:"ytp-speed-slider-menu-footer",C:[this.W]}):g.Tz.prototype.ma.call(this,X,J,L)}; g.a.Ln=function(X){g.Tz.prototype.Ln.call(this,X);X===this.L?this.Z.setPlaybackRate(this.B,!0):this.Z.setPlaybackRate(Number(X),!0);T$m(this.Z)&&X===this.L||this.uh.lJ()}; g.a.nF=function(X){var J=X===this.L;this.T=!1;J&&wY(this.Z)&&!T$m(this.Z)?(X=new WoY(this.Z),g.hr(this.uh,X)):g.Tz.prototype.nF.call(this,X)};g.w(fSO,g.Tz);g.a=fSO.prototype;g.a.Cn=function(X){g.Tz.prototype.Cn.call(this,X)}; g.a.l4=function(X){return X.option.toString()}; g.a.getOption=function(X){return this.settings[X]}; g.a.rz=function(X){return this.getOption(X).text||""}; g.a.Ln=function(X){g.Tz.prototype.Ln.call(this,X);this.publish("settingChange",this.setting,this.settings[X].option)};g.w(dY,g.cS);dY.prototype.wp=function(X){for(var J=g.d(Object.keys(X)),L=J.next();!L.done;L=J.next()){var x=L.value;if(L=this.vP[x]){var Q=X[x].toString();x=!!X[x+"Override"];L.options[Q]&&(L.Cn(Q),L.T.element.setAttribute("aria-checked",String(!x)),L.L.element.setAttribute("aria-checked",String(x)))}}}; dY.prototype.q0=function(X,J){this.publish("settingChange",X,J)};g.w(u3,g.Tz);u3.prototype.L=function(X){return X.languageCode}; u3.prototype.rz=function(X){return this.languages[X].languageName||""}; u3.prototype.Ln=function(X){this.publish("select",X);this.Z.logClick(this.element);g.zz(this.uh)};g.w(lSo,g.Tz);g.a=lSo.prototype;g.a.ev=function(X){return g.Mx(X)?"__off__":X.displayName}; g.a.rz=function(X){return X==="__off__"?"Desactivados":X==="__translate__"?"Traducci\u00f3n autom\u00e1tica":X==="__contribute__"?"Agregar subt\u00edtulos":X==="__correction__"?"Sugerir correcci\u00f3n de subt\u00edtulos":(X==="__off__"?{}:this.tracks[X]).displayName}; g.a.Ln=function(X){if(X==="__translate__")this.L.open();else if(X==="__contribute__"){this.Z.pauseVideo();this.Z.isFullscreen()&&this.Z.toggleFullscreen();var J=g.xa(this.Z.G(),this.Z.getVideoData());g.Ge(J)}else if(X==="__correction__"){this.Z.pauseVideo();this.Z.isFullscreen()&&this.Z.toggleFullscreen();var L=RIm(this);on(this,L);g.Tz.prototype.Ln.call(this,this.ev(L));var x,Q;L=(J=this.Z.getVideoData().getPlayerResponse())==null?void 0:(x=J.captions)==null?void 0:(Q=x.playerCaptionsTracklistRenderer)== null?void 0:Q.openTranscriptCommand;this.Z.GH("innertubeCommand",L);this.uh.lJ();this.T&&this.Z.logClick(this.T)}else{if(X==="__correction__"){this.Z.pauseVideo();this.Z.isFullscreen()&&this.Z.toggleFullscreen();J=RIm(this);on(this,J);g.Tz.prototype.Ln.call(this,this.ev(J));var K,q;J=(L=this.Z.getVideoData().getPlayerResponse())==null?void 0:(K=L.captions)==null?void 0:(q=K.playerCaptionsTracklistRenderer)==null?void 0:q.openTranscriptCommand;this.Z.GH("innertubeCommand",J)}else this.Z.logClick(this.element), on(this,X==="__off__"?{}:this.tracks[X]),g.Tz.prototype.Ln.call(this,X);this.uh.lJ()}}; g.a.Wl=function(){var X=this.Z.getOptions();X=X&&X.indexOf("captions")!==-1;var J=this.Z.getVideoData(),L=J&&J.kA,x,Q=!((x=this.Z.getVideoData())==null||!g.KO(x));x={};if(X||L){var K;if(X){var q=this.Z.getOption("captions","track");x=this.Z.getOption("captions","tracklist",{includeAsr:!0});var D=Q?[]:this.Z.getOption("captions","translationLanguages");this.tracks=g.ku(x,this.ev,this);Q=g.H5(x,this.ev);var C,M;RIm(this)&&((K=J.getPlayerResponse())==null?0:(C=K.captions)==null?0:(M=C.playerCaptionsTracklistRenderer)== null?0:M.openTranscriptCommand)&&Q.push("__correction__");if(D.length&&!g.Mx(q)){if((K=q.translationLanguage)&&K.languageName){var y=K.languageName;K=D.findIndex(function(n){return n.languageName===y}); YAO(D,K)}eIR(this.L,D);Q.push("__translate__")}K=this.ev(q)}else this.tracks={},Q=[],K="__off__";Q.unshift("__off__");this.tracks.__off__={};L&&Q.unshift("__contribute__");this.tracks[K]||(this.tracks[K]=q,Q.push(K));this.Rk(Q);this.Cn(K);q&&q.translationLanguage?this.L.Cn(this.L.L(q.translationLanguage)):MQA(this.L);X&&this.B.wp(this.Z.getSubtitlesUserSettings());this.countLabel.e7(x&&x.length?" ("+x.length+")":"");this.publish("size-change");this.Z.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.a.R$=function(X){var J=this.Z.getOption("captions","track");J=g.Vf(J);J.translationLanguage=this.L.languages[X];on(this,J)}; g.a.q0=function(X,J){if(X==="reset")this.Z.resetSubtitlesUserSettings();else{var L={};L[X]=J;this.Z.updateSubtitlesUserSettings(L)}Fov(this,!0);this.W.start();this.B.wp(this.Z.getSubtitlesUserSettings())}; g.a.Dd9=function(X){X||g.mz(this.W)}; g.a.uB=function(){g.mz(this.W);g.Tz.prototype.uB.call(this)}; g.a.open=function(){g.Tz.prototype.open.call(this);this.options.__correction__&&!this.T&&(this.T=this.options.__correction__.element,this.Z.createClientVe(this.T,this,167341),this.Z.logVisibility(this.T,!0))};g.w(B$v,g.Yi);g.a=B$v.prototype; g.a.initialize=function(){if(!this.isInitialized){var X=this.Z.G();this.isInitialized=!0;try{this.K9=new bcZ(this.Z,this)}catch(L){g.PM(Error("QualityMenuItem creation failed"))}g.f(this,this.K9);var J=new lSo(this.Z,this);g.f(this,J);X.N||(J=new yr(this.Z,this),g.f(this,J));X.enableSpeedOptions&&(J=new pJm(this.Z,this),g.f(this,J));(g.lb(X)||X.B)&&(X.K||X.bB)&&(J=new olA(this.Z,this),g.f(this,J));X.ek&&!X.Y("web_player_move_autonav_toggle")&&(X=new Vr(this.Z,this),g.f(this,X));X=new n$(this.Z,this); g.f(this,X);this.Z.publish("settingsMenuInitialized");uxz(this.settingsButton,this.y0.oC())}}; g.a.EA=function(X){this.initialize();this.y0.EA(X);uxz(this.settingsButton,this.y0.oC())}; g.a.xM=function(X){this.RB&&this.y0.oC()<=1&&this.hide();this.y0.xM(X);uxz(this.settingsButton,this.y0.oC())}; g.a.nO=function(X){this.initialize();this.y0.oC()>0&&g.Yi.prototype.nO.call(this,X)}; g.a.Vr=function(){this.gO?this.gO=!1:g.Yi.prototype.Vr.call(this)}; g.a.show=function(){g.Yi.prototype.show.call(this);g.xq(this.Z.getRootNode(),"ytp-settings-shown")}; g.a.hide=function(){g.Yi.prototype.hide.call(this);g.Qd(this.Z.getRootNode(),"ytp-settings-shown")}; g.a.Dt=function(X){this.Z.logVisibility(this.element,X);this.Z.publish("settingsMenuVisibilityChanged",X)};g.w(UIW,g.R);g.a=UIW.prototype;g.a.onClick=function(){if(b3(this)&&(this.Z.toggleSubtitles(),this.Z.logClick(this.element),!this.isEnabled())){var X=!1,J=g.jf(g.v2(),65);g.$3(this.Z.G())&&J!=null&&(X=!J);X&&this.Z.G().Y("web_player_nitrate_promo_tooltip")&&this.Z.publish("showpromotooltip",this.element)}}; g.a.kR9=function(X){var J,L;(J=g.b0(this.Z))==null||(L=J.TB())==null||L.nO(X)}; g.a.isEnabled=function(){var X=this.Z.getOption("captions","track");return!(!X||!X.displayName)}; g.a.Wl=function(){var X=b3(this),J=300;this.Z.G().W&&(J=480);this.Z.Y("delhi_modern_web_player_icons")&&this.updateValue("icon",N$A(this));if(this.Z.G().B){this.updateValue("title",g.pO(this.Z,"Subt\u00edtulos","c"));this.update({"data-title-no-tooltip":"Subt\u00edtulos"});var L=X}else{if(X)(L=this.kq("ytp-subtitles-button-icon"))==null||L.setAttribute("fill-opacity","1"),this.updateValue("title",g.pO(this.Z,"Subt\u00edtulos","c")),this.update({"data-title-no-tooltip":"Subt\u00edtulos"});else{if(this.Z.Y("delhi_modern_web_player_icons")){var x; (x=this.kq("ytp-subtitles-button-icon"))==null||x.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var Q;(Q=this.kq("ytp-subtitles-button-icon"))==null||Q.setAttribute("fill-opacity","0.3")}this.updateValue("title","Subt\u00edtulos no disponibles");this.update({"data-title-no-tooltip":"Subt\u00edtulos no disponibles"})}L=!0}this.tooltip.H5();L=L&&this.Z.t0().getPlayerSize().width>=J;this.LO(L);this.Z.Y("embeds_use_parent_visibility_in_ve_logging")?this.Z.logVisibility(this.element, L&&this.j):this.Z.logVisibility(this.element,L);X?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.a.G6=function(X){g.R.prototype.G6.call(this,X);this.Z.G().Y("embeds_use_parent_visibility_in_ve_logging")&&this.Z.logVisibility(this.element,this.RB&&X)};g.w(g.SQ,g.R);g.a=g.SQ.prototype;g.a.canShowCountdown=function(){return!cn(this)&&!Pn(this)}; g.a.qd=function(){var X=this.api.t0().getPlayerSize().width,J=this.D;this.api.G().W&&(J=400);J=X>=J&&(!Pn(this)||!g.N(this.api.getPlayerStateObject(),64));this.LO(J);g.q8(this.element,"ytp-time-display-allow-autohide",J&&X<400);X=this.api.getProgressState();if(J){var L=this.api.getPresentingPlayerType();J=this.api.getCurrentTime(L,!1);this.K&&(J-=X.airingStart);cn(this)&&(J-=this.FX.startTimeMs/1E3);this.canShowCountdown()&&this.N&&(J-=this.api.getDuration(L,!1));var x=g.aF(J);this.T!==x&&(this.updateValue("currenttime", x),this.T=x);L=cn(this)?(this.FX.endTimeMs-this.FX.startTimeMs)/1E3:this.api.getDuration(L,!1);x=g.aF(L);this.B!==x&&(this.updateValue("duration",x),this.B=x,J&&(J=g.is("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.aF(J,!0),DURATION:g.aF(L,!0)}),this.updateValue("timeDisplayAriaLabel",J)))}mIm(this,X.isAtLiveHead);k3I(this,this.api.getLoopRange())}; g.a.onLoopRangeChange=function(X){var J=this.FX!==X;this.FX=X;J&&(this.qd(),ZcI(this))}; g.a.Q09=function(){this.api.setLoopRange(null)}; g.a.Xl6=function(){this.N=!this.N;this.qd()}; g.a.onVideoDataChange=function(X,J,L){this.updateVideoData((this.api.G().Y("enable_topsoil_wta_for_halftime")||this.api.G().Y("enable_topsoil_wta_for_halftime_live_infra"))&&L===2?this.api.getVideoData(1):J);this.qd();ZcI(this)}; g.a.updateVideoData=function(X){this.yF=X.isLivePlayback&&!X.Cm;this.K=gB(X);this.isPremiere=X.isPremiere;g.q8(this.element,"ytp-live",Pn(this));this.api.Y("delhi_modern_web_player")&&this.kq("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.a.onClick=function(X){X.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.a.uB=function(){this.L&&this.L();g.R.prototype.uB.call(this)};g.w(XgY,g.R);g.a=XgY.prototype;g.a.Ih=function(){var X=this.api.F4();this.N!==X&&(this.N=X,AhP(this,this.api.getVolume(),this.api.isMuted()))}; g.a.Da=function(X){this.LO(X.width>=350)}; g.a.Lg=function(X){if(!X.defaultPrevented){var J=X.keyCode,L=null;J===37?L=this.volume-5:J===39?L=this.volume+5:J===36?L=0:J===35&&(L=100);L!==null&&(L=g.fW(L,0,100),L===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(L)),X.preventDefault())}}; g.a.yz=function(X){var J=X.deltaX||-X.deltaY;X.deltaMode?this.api.setVolume(this.volume+(J<0?-10:10)):this.api.setVolume(this.volume+g.fW(J/10,-10,10));X.preventDefault()}; g.a.yPl=function(){Eb(this,this.L,!0,this.K,this.api.wz());this.D=this.volume;this.api.isMuted()&&this.api.unMute()}; g.a.m6=function(X){var J=this.N?78:52,L=this.N?18:12;X-=g.Z8(this.S).x;this.api.setVolume(g.fW((X-L/2)/(J-L),0,1)*100)}; g.a.Rxl=function(){Eb(this,this.L,!1,this.K,this.api.wz());this.volume===0&&(this.api.mute(),this.api.setVolume(this.D))}; g.a.onVolumeChange=function(X){AhP(this,X.volume,X.muted)}; g.a.fb=function(){Eb(this,this.L,this.isDragging,this.K,this.api.wz())}; g.a.uB=function(){g.R.prototype.uB.call(this);g.Qd(this.W,"ytp-volume-slider-active")};g.w(YJ,g.R); YJ.prototype.onVideoDataChange=function(){var X=this.api.G();this.A_();this.visible=!!this.api.getVideoData().videoId&&!g.$F(this.api.getVideoData(1));this.LO(this.visible);this.api.logVisibility(this.element,this.visible&&this.j);if(this.visible){var J=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",J)}X.N&&(this.L&&(this.VO(this.L),this.L=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.xq(this.element,"no-link")); J=this.api.G();X=this.api.getVideoData();var L="";J.N||(J=g.K4(J),J.indexOf("www.")===0&&(J=J.substring(4)),L=g.CO(X)?"Mirar en YouTube Music":J==="youtube.com"?"Mirar en YouTube":g.is("Mirar en $WEBSITE",{WEBSITE:J}));this.updateValue("title",L)}; YJ.prototype.onClick=function(X){this.api.Y("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var J=this.api.G(),L=this.api.getVideoUrl(!g.wn(X),!1,!0,!0);if(g.lb(J)){var x={};g.lb(J)&&g.wB(this.api,"addEmbedsConversionTrackingParams",[x]);L=g.Hw(L,x)}g.Vv(L,this.api,X);this.api.Y("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; YJ.prototype.A_=function(){var X={V:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},C:[{V:"path",uH:!0,U:"ytp-svg-fill",X:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, J=28666,L=this.api.getVideoData();this.api.isEmbedsShortsMode()?X={V:"svg",X:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},C:[{V:"path",X:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z", fill:"#fff"}}]}:g.CO(L)&&(X={V:"svg",X:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},C:[{V:"path",X:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{V:"path",X:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{V:"path",X:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{V:"path",X:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{V:"path",X:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{V:"path",X:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{V:"path",X:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{V:"path",X:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{V:"path",X:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{V:"path",X:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{V:"path",X:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{V:"path",X:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", fill:"white"}}]},J=216163);g.CO(L)?g.xq(this.element,"ytp-youtube-music-button"):g.Qd(this.element,"ytp-youtube-music-button");X.X=Object.assign({},X.X,{"aria-hidden":"true"});this.updateValue("logoSvg",X);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,J,!0)}; YJ.prototype.G6=function(X){g.R.prototype.G6.call(this,X);this.api.logVisibility(this.element,this.visible&&X)};g.w(xme,g.dS);g.a=xme.prototype;g.a.HD=function(){if(this.Z.Y("web_player_max_seekable_on_ended")||!g.N(this.Z.getPlayerStateObject(),2))this.progressBar.qd(),this.Bl.qd()}; g.a.e$=function(){this.CN();this.ZH.K?this.HD():this.progressBar.Kv()}; g.a.Kg=function(){this.HD();this.D.start()}; g.a.CN=function(){var X;if(X=!this.Z.G().K){X=this.progressBar;var J=2*g.D0()*X.B,L=X.N;X=(L.L-L.K)*1E3/X.api.getPlaybackRate()/J<300}X=X&&this.Z.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;J=!X;this.ZH.K||(X=J=!1);J?this.Pl||(this.Pl=this.J(this.Z,"progresssync",this.HD)):this.Pl&&(this.VO(this.Pl),this.Pl=null);X?this.D.isActive()||this.D.start():this.D.stop()}; g.a.A_=function(){var X=this.Z.F4(),J=this.Z.t0().getPlayerSize(),L=this.Z.t0().Lq,x=QIZ(this),Q=KyI(this),K=Math.max(J.width-x*2,100);if(this.Lp!==J.width||this.A0!==X||this.Z.Y("web_player_rtr_ctrls")&&this.FQ!==L)this.Lp=J.width,this.A0=X,this.FQ=L,this.K.element.style.width=Q+"px",this.K.element.style.left=x+"px",g.aSm(this.progressBar,x,Q,X),this.Z.o0().AM=Q;L=this.T;K=Math.min(570*(X?1.5:1),K);X=Math.min(413*(X?1.5:1),Math.round((J.height-q$e(this))*.82));L.maxWidth=K;L.maxHeight=X;L.Rq();this.CN(); this.Z.G().Y("html5_player_dynamic_bottom_gradient")&&KNR(this.Cm,J.height)}; g.a.onVideoDataChange=function(){var X=this.Z.getVideoData();this.bB.style.background=X.UM?X.Wu:"";this.aB&&MKP(this.aB,X.showSeekingControls);this.Km&&MKP(this.Km,X.showSeekingControls)}; g.a.kH=function(){return this.K.element};g.w(I_A,Sd);g.a=I_A.prototype;g.a.S0=function(X){X.target!==this.dismissButton.element&&(this.onClickCommand&&this.Z.GH("innertubeCommand",this.onClickCommand),this.YG())}; g.a.YG=function(){this.enabled=!1;this.D.hide()}; g.a.onVideoDataChange=function(X,J){X==="dataloaded"&&gKR(this);X=[];var L,x,Q,K;if(J=(K=g.F((L=J.getWatchNextResponse())==null?void 0:(x=L.playerOverlays)==null?void 0:(Q=x.playerOverlayRenderer)==null?void 0:Q.suggestedActionsRenderer,jQ0))==null?void 0:K.suggestedActions)for(L=g.d(J),x=L.next();!x.done;x=L.next())(x=g.F(x.value,TZ0))&&g.F(x.trigger,v0H)&&X.push(x);if(X.length!==0){L=[];X=g.d(X);for(x=X.next();!x.done;x=X.next())if(x=x.value,Q=g.F(x.trigger,v0H))K=(K=x.title)?g.Dn(K):"View Chapters", J=Q.timeRangeStartMillis,Q=Q.timeRangeEndMillis,J!=null&&Q!=null&&x.tapCommand&&(L.push(new g.Rw(J,Q,{priority:9,namespace:"suggested_action_button_visible",id:K})),this.suggestedActions[K]=x.tapCommand);this.Z.tj(L)}}; g.a.mx=function(){return this.enabled}; g.a.Dt=function(){this.enabled?this.jC.start():oU(this);this.G4()}; g.a.uB=function(){gKR(this);Sd.prototype.uB.call(this)};var EX={},Wn=(EX.CHANNEL_NAME="ytp-title-channel-name",EX.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",EX.LINK="ytp-title-link",EX.SESSIONLINK="yt-uix-sessionlink",EX.SUBTEXT="ytp-title-subtext",EX.TEXT="ytp-title-text",EX.TITLE="ytp-title",EX);g.w(p$,g.R);p$.prototype.onClick=function(X){this.api.logClick(this.element);var J=this.api.G(),L=this.api.getVideoUrl(!g.wn(X),!1,!0);g.lb(J)&&(J={},g.wB(this.api,"addEmbedsConversionTrackingParams",[J]),L=g.Hw(L,J));g.Vv(L,this.api,X)}; p$.prototype.Wl=function(){var X=this.api.getVideoData(),J=this.api.G();this.updateValue("title",X.title);var L={V:"a",U:Wn.CHANNEL_NAME,X:{href:"{{channelLink}}",target:"_blank"},iB:"{{channelName}}"};this.api.G().N&&(L={V:"span",U:Wn.CHANNEL_NAME,iB:"{{channelName}}",X:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",L);Dmz(this);this.api.getPresentingPlayerType()===2&&(L=this.api.getVideoData(),L.videoId&&L.isListed&&L.author&&L.A0&&L.profilePicture?(this.updateValue("channelLink", L.A0),this.updateValue("channelName",L.author),this.updateValue("channelTitleFocusable","0")):Dmz(this));L=J.externalFullscreen||!this.api.isFullscreen()&&J.GB;g.q8(this.link,Wn.FULLERSCREEN_LINK,L);J.aB||!X.videoId||L||g.$F(X)||J.N?this.L&&(this.updateValue("url",null),this.VO(this.L),this.L=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.L||(this.L=this.J(this.link,"click",this.onClick)));J.N&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.lb(J)?X.expandedTitle: X.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.w(g.rY,g.R);g.a=g.rY.prototype;g.a.setEnabled=function(X){if(this.type!=null)if(X)switch(this.type){case 3:case 2:M9m(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.W=X}; g.a.j3=function(X,J,L,x,Q,K,q,D){if(!this.FE||this.env.W){this.type===3&&this.Kv();this.type!==1&&(g.JJ(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.W&&this.fade.show(),this.K&&this.K.dispose(),(this.K=this.api.m4())&&this.K.subscribe("l",this.rD,this));if(D){var C=g.JB(this.bg).height||141;this.gI.style.bottom=C+2+"px"}else this.gI.style.display="none";this.env.Y("delhi_modern_web_player")?(this.update({pillTimeStamp:L,pillTitle:K!=null?K:"",eduText:D!=null?D:""}),g.xq(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:L,title:K!=null?K:"",eduText:D!=null?D:""}),g.q8(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!K));this.api.isInline()&&g.xq(this.bottomText,"ytp-modern-tooltip-text");g.q8(this.element,"ytp-text-detail",!!x);L=-1;this.K&&(L=Z0(this.K,243*this.scale),this.env.Y("web_l3_storyboard")&&this.K.levels.length===4&&(L=this.K.levels.length-1),L=phR(this.K,L,J));nKS(this,L);if(q)switch(J=g.JB(this.element).width,q){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=J+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=J/2+"px",this.title.style.textAlign="center"}yFW(this,!!x,X,Q)}}; g.a.G3=function(){this.type===1&&this.Kv()}; g.a.iF=function(X,J){if(this.type)if(this.type===3)this.Kv();else return;$mO(this,X,3,J)}; g.a.H5=function(){this.L&&!this.S&&this.L.hasAttribute("title")&&(this.N=this.L.getAttribute("title")||"",this.L.removeAttribute("title"),this.W&&M9m(this))}; g.a.rD=function(X,J){X<=this.T&&this.T<=J&&(X=this.T,this.T=NaN,nKS(this,X))}; g.a.oL=function(){zOA(this.K,this.T,243*this.scale)}; g.a.Kv=function(){switch(this.type){case 2:var X=this.L;X.removeEventListener("mouseout",this.D);X.addEventListener("mouseover",this.B);X.removeEventListener("blur",this.D);X.addEventListener("focus",this.B);V9o(this);break;case 3:V9o(this);break;case 1:this.K&&(this.K.unsubscribe("l",this.rD,this),this.K=null),this.api.removeEventListener("videoready",this.Km),this.aB.stop()}this.type=null;this.W&&this.fade.hide()}; g.a.yQ=function(){if(this.L)for(var X=0;X=0;J--)if(this.BP[J]===X){this.BP.splice(J,1);break}Gg(this.ZH,64,this.BP.length>0)}; g.a.nE=function(){this.api.AB()&&this.api.Ew();return!!this.GF||uFe(this)||g.kC.prototype.nE.call(this)}; g.a.Fu=function(){var X=!this.nE(),J=X&&this.api.AB()&&!g.N(this.api.getPlayerStateObject(),2)&&!g.$F(this.api.getVideoData())&&!this.api.G().N&&!this.api.isEmbedsShortsMode(),L=this.SY&&g.Gi(this.api)&&g.N(this.api.getPlayerStateObject(),128);X||L?(this.JQ.show(),this.ow.show()):(this.JQ.hide(),this.ow.hide(),this.api.yQ(this.QZ.element));J?this.ai.nO():this.ai.Vr();this.pW&&iNv(this.pW,this.B0l||!X);this.api.Y("web_player_hide_overflow_button_if_empty_menu")&&oKS(this);g.kC.prototype.Fu.call(this)}; g.a.sG=function(X,J,L,x,Q){X.style.left="";X.style.top="";X.style.bottom="";var K=g.JB(X),q=x||this.pW&&g.w0(this.pW.kH(),J),D=x=null;L!=null&&q||(x=g.JB(J),D=g.Aw(J,this.api.getRootNode()),L==null&&(L=D.x+x.width/2));L-=K.width/2;q?(J=this.pW,x=QIZ(J),D=KyI(J),q=this.api.t0().getPlayerSize().height,L=g.fW(L,x,x+D-K.width),K=q-q$e(J)-K.height):g.w0(this.QZ.element,J)?(J=this.api.t0().getPlayerSize().width,L=g.fW(L,12,J-K.width-12),K=this.F4()?this.sP:this.bD,this.api.G().playerStyle==="gvn"&&(K+= 20),this.SY&&(K-=this.F4()?26:18)):(J=this.api.t0().getPlayerSize(),L=g.fW(L,12,J.width-K.width-12),K=D.y>(J.height-x.height)/2?D.y-K.height-12:D.y+x.height+12);X.style.top=K+(Q||0)+"px";X.style.left=L+"px"}; g.a.e$=function(X){X&&(this.api.yQ(this.QZ.element),this.pW&&this.api.yQ(this.pW.kH()));this.GI&&(g.q8(this.contextMenu.element,"ytp-autohide",X),g.q8(this.contextMenu.element,"ytp-autohide-active",!0));g.kC.prototype.e$.call(this,X)}; g.a.lY=function(){g.kC.prototype.lY.call(this);this.GI&&(g.q8(this.contextMenu.element,"ytp-autohide-active",!1),this.GI&&(this.contextMenu.hide(),this.T_&&this.T_.hide()))}; g.a.wg=function(X,J){var L=this.api.t0().getPlayerSize();L=new g.fj(0,0,L.width,L.height);if(X||this.ZH.K&&!this.nE()){if(this.api.G().Dp||J)X=this.F4()?this.sP:this.bD,L.top+=X,L.height-=X;this.pW&&(L.height-=q$e(this.pW))}return L}; g.a.Ih=function(X){var J=this.api.getRootNode();X?J.parentElement?(J.setAttribute("aria-label","Reproductor de video de YouTube en pantalla completa"),this.api.G().externalFullscreen||(J.parentElement.insertBefore(this.Th.element,J),J.parentElement.insertBefore(this.PH.element,J.nextSibling))):g.Sc(Error("Player not in DOM.")):(J.setAttribute("aria-label","Reproductor de video de YouTube"),this.Th.detach(),this.PH.detach());this.A_();this.XW()}; g.a.F4=function(){var X=this.api.G();return this.api.isFullscreen()&&!X.W||!1}; g.a.showControls=function(X){this.rr=!X;this.Fu()}; g.a.A_=function(){var X=this.F4();this.tooltip.scale=X?1.5:1;this.contextMenu&&g.q8(this.contextMenu.element,"ytp-big-mode",X);this.Fu();this.api.Y("web_player_hide_overflow_button_if_empty_menu")||oKS(this);this.XW();var J=this.api.isEmbedsShortsMode();J&&X?(X=(this.api.t0().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.lF(this.QZ.element,"padding-left",X+"px"),g.lF(this.QZ.element,"padding-right",X+"px")):J&&(g.lF(this.QZ.element,"padding-left",""),g.lF(this.QZ.element,"padding-right", ""));g.kC.prototype.A_.call(this)}; g.a.KT=function(){if(uFe(this)&&!g.Gi(this.api))return!1;var X=this.api.getVideoData();return!g.lb(this.api.G())||this.api.getPresentingPlayerType()===2||!this.BS||((X=this.BS||X.BS)?(X=X.embedPreview)?(X=X.thumbnailPreviewRenderer,X=X.videoDetails&&g.F(X.videoDetails,OBm)||null):X=null:X=null,X&&X.collapsedRenderer&&X.expandedRenderer)?g.kC.prototype.KT.call(this):!1}; g.a.XW=function(){g.kC.prototype.XW.call(this);this.api.logVisibility(this.title.element,!!this.bk);this.b5&&this.b5.G6(!!this.bk);this.channelAvatar.G6(!!this.bk);this.overflowButton&&this.overflowButton.G6(this.cD()&&!!this.bk);this.shareButton&&this.shareButton.G6(!this.cD()&&!!this.bk);this.FD&&this.FD.G6(!this.cD()&&!!this.bk);this.searchButton&&this.searchButton.G6(!this.cD()&&!!this.bk);this.copyLinkButton&&this.copyLinkButton.G6(!this.cD()&&!!this.bk);if(!this.bk){this.api.yQ(this.QZ.element); for(var X=0;X5&&J.Ni("glrs",{cmt:L});J.seekTo(0,{seekSource:58});J.Ni("glrre",{cmt:L})}}; T8.prototype.uB=function(){this.L=null;g.G.prototype.uB.call(this)};g.w(g.G8,Hv);g.a=g.G8.prototype;g.a.isView=function(){return!0}; g.a.Qt=function(){var X=this.mediaElement.getCurrentTime();if(X1;kr(X.ll(),x-.01)&&!Q&&(eQ(this,4),L.isActive=!1,L.Ma=L.Ma||L.isActive,(this.j===1?this.L:this.K).Ni("sbh",{}),J.isActive=!0,J.Ma=J.Ma||J.isActive,this.j!==0&&(this.L.getVideoData().zJ=!0));X=this.T.K;if(this.T.L.isActive&&X.isActive&&(eQ(this,5),this.j!==0)){X=this.K.Uw();L=this.L.Uw(); this.L.Ni("sbs",{citag:L==null?void 0:L.itag,nitag:X==null?void 0:X.itag});this.K.Ni("gitags",{pitag:L==null?void 0:L.itag,citag:X==null?void 0:X.itag});var K;(K=this.K)==null||K.Jc()}}}; g.a.yT=function(){this.Gs()&&this.AJ("player-reload-after-handoff")}; g.a.AJ=function(X,J){J=J===void 0?{}:J;if(!this.E6()&&this.status.status!==6){var L=this.status.status>=4&&X!=="player-reload-after-handoff";this.status={status:Infinity,error:X};if(this.L&&this.K){var x=this.K.getVideoData().clientPlaybackNonce;this.L.NF(new g.Mh("dai.transitionfailure",Object.assign(J,{cpn:x,transitionTimeMs:this.n$,msg:X})));this.L.Hb(L)}this.nu.reject(X);this.dispose()}}; g.a.Gs=function(){return this.status.status>=4&&this.status.status<6}; g.a.uB=function(){vKm(this);this.L.unsubscribe("newelementrequired",this.yT,this);if(this.N){var X=this.N.K;this.N.L.rQ.unsubscribe("updateend",this.tq,this);X.rQ.unsubscribe("updateend",this.tq,this)}g.G.prototype.uB.call(this)}; g.a.rA=function(X){g.Ds(X,128)&&this.AJ("player-error-event")};g.w(FT,g.G);FT.prototype.clearQueue=function(X,J){X=X===void 0?!1:X;J=J===void 0?!1:J;this.T&&this.T.reject("Queue cleared");this.app.G().Y("html5_gapless_fallback_on_qoe_restart_v2")||J&&this.K&&this.K.Hb(!1);l3(this,X)}; FT.prototype.NP=function(){return!this.L}; FT.prototype.Gs=function(){var X;return((X=this.N)==null?void 0:X.Gs())||!1}; FT.prototype.uB=function(){l3(this);g.G.prototype.uB.call(this)};g.w(R78,g.Ly);g.a=R78.prototype;g.a.getVisibilityState=function(X,J,L,x,Q,K,q,D){return X?4:PdW()?3:J?2:L?1:x?5:Q?7:K?8:q?9:D?10:0}; g.a.nI=function(X){this.fullscreen!==X&&(this.fullscreen=X,this.Dt())}; g.a.setMinimized=function(X){this.K!==X&&(this.K=X,this.Dt())}; g.a.setInline=function(X){this.inline!==X&&(this.inline=X,this.Dt())}; g.a.Dd=function(X){this.pictureInPicture!==X&&(this.pictureInPicture=X,this.Dt())}; g.a.setSqueezeback=function(X){this.N!==X&&(this.N=X,this.Dt())}; g.a.U3=function(X){this.T!==X&&(this.T=X,this.Dt())}; g.a.Od=function(){return this.L}; g.a.RC=function(){return this.fullscreen!==0}; g.a.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.a.BH=function(){return this.fullscreen}; g.a.isMinimized=function(){return this.K}; g.a.isInline=function(){return this.inline}; g.a.isBackground=function(){return PdW()}; g.a.OS=function(){return this.pictureInPicture}; g.a.kR=function(){return!1}; g.a.VA=function(){return this.N}; g.a.BJ=function(){return this.T}; g.a.Dt=function(){this.publish("visibilitychange");var X=this.getVisibilityState(this.Od(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.OS(),this.kR(),this.VA(),this.BJ());X!==this.B&&this.publish("visibilitystatechange");this.B=X}; g.a.uB=function(){YiP(this.j);g.Ly.prototype.uB.call(this)};g.w(g.Rn,g.G);g.a=g.Rn.prototype;g.a.uB=function(){this.videoData=this.playerState=null;g.G.prototype.uB.call(this)}; g.a.addCueRange=function(){}; g.a.y8=function(){}; g.a.WQ=function(){}; g.a.Kt=function(){return!1}; g.a.uC=function(){return!1}; g.a.By=function(){return!1}; g.a.FO=function(){}; g.a.VC=function(){}; g.a.YA=function(){return[]}; g.a.jE=function(){}; g.a.getAudioTrack=function(){return this.getVideoData().OQ}; g.a.qO=function(){return null}; g.a.getAvailableAudioTracks=function(){return[]}; g.a.qX=function(){return[]}; g.a.IU=function(){return[]}; g.a.Pf=function(){return""}; g.a.Ri=function(){return[]}; g.a.IZ=function(){}; g.a.eT=function(){return 0}; g.a.getCurrentTime=function(){return 0}; g.a.H8=function(){}; g.a.Uw=function(){}; g.a.yr=function(){return{}}; g.a.getDuration=function(){return 0}; g.a.Fb=function(){return 0}; g.a.L3=function(){return 0}; g.a.e_=function(){return!1}; g.a.TD=function(){return 0}; g.a.k6=function(){return 0}; g.a.H_=XY(7);g.a.fI=function(){return 0}; g.a.W_=function(){return!1}; g.a.z4=function(){return 0}; g.a.tP=function(){return null}; g.a.gg=function(){return null}; g.a.c9=function(){return 0}; g.a.Ig=function(){return 0}; g.a.ud=function(){return g.p(function(X){g.uv(X)})}; g.a.Sf=XY(15);g.a.getPlaybackQuality=function(){return"auto"}; g.a.getPlaybackRate=function(){return 1}; g.a.getPlayerState=function(){this.playerState||(this.playerState=new g.ds);return this.playerState}; g.a.getPlayerType=function(){return 0}; g.a.getPlaylistSequenceForTime=function(){return null}; g.a.h2=function(){return function(){}}; g.a.xV=function(){return""}; g.a.getPreferredQuality=function(){return"unknown"}; g.a.U7=function(){}; g.a.getProximaLatencyPreference=function(){return 0}; g.a.Pr=function(){return Qh}; g.a.m4=function(){return null}; g.a.getStoryboardFormat=function(){return null}; g.a.getStreamTimeOffset=function(){return 0}; g.a.vJ=function(){return 0}; g.a.W4=function(){return 0}; g.a.Om=function(){return{Rs:[],yj:[],currentTime:0,CL:"",droppedVideoFrames:0,isGapless:!1,NP:!0,ZO:0,Dg:0,Au:0,yK:0,L8:0,Nk:[],J1:[],WX:null,playerState:this.getPlayerState(),sF:null,Qx:"",totalVideoFrames:0}}; g.a.getUserAudio51Preference=function(){return 0}; g.a.getUserPlaybackQualityPreference=function(){return""}; g.a.getVideoData=function(){this.videoData||(this.videoData=new g.KI(this.m9),g.f(this,this.videoData));return this.videoData}; g.a.BY=function(){return null}; g.a.S5=function(){return null}; g.a.xU=function(){}; g.a.getVideoLoadedFraction=function(){return 0}; g.a.Gq=function(){}; g.a.handleError=function(){}; g.a.Hb=function(){}; g.a.Br=function(){}; g.a.tR=XY(40);g.a.ZK=function(){return!1}; g.a.hasSupportedAudio51Tracks=function(){return!1}; g.a.Sl=function(){return!1}; g.a.Od=function(){return!1}; g.a.isAtLiveHead=function(){return!1}; g.a.MC=function(){return!0}; g.a.isGapless=function(){return!1}; g.a.isHdr=function(){return!1}; g.a.RU=function(){return!1}; g.a.Lz=function(){return!1}; g.a.FJ=function(){return!1}; g.a.isProximaLatencyEligible=function(){return!1}; g.a.NP=function(){return!0}; g.a.QA=function(){return!1}; g.a.AU=function(){return!1}; g.a.Pn=function(){}; g.a.fV=function(){}; g.a.Jc=function(){}; g.a.j4=function(){}; g.a.nz=function(){}; g.a.e0=function(){}; g.a.er=function(){}; g.a.IS=XY(50);g.a.Xs=XY(21);g.a.lX=function(){}; g.a.No=function(){}; g.a.pauseVideo=function(){}; g.a.playVideo=function(){return g.p(function(X){return X.return()})}; g.a.gB=function(){}; g.a.Sz=XY(27);g.a.GC=XY(33);g.a.EO=function(){}; g.a.Ni=function(){}; g.a.x6=function(){}; g.a.MS=function(){}; g.a.OI=function(){}; g.a.NF=function(){}; g.a.n4=function(){}; g.a.b$=function(){}; g.a.tZ=function(){}; g.a.yB=function(){}; g.a.sL=function(){}; g.a.UQ=function(){}; g.a.gN=function(){}; g.a.removeCueRange=function(){}; g.a.r3=function(){}; g.a.Q0=function(){return[]}; g.a.q8=function(){}; g.a.Fs=function(){}; g.a.Fe=function(){}; g.a.P7=function(){}; g.a.Db=function(){}; g.a.zw=function(){}; g.a.seekTo=function(){}; g.a.sendAbandonmentPing=function(){}; g.a.sendVideoStatsEngageEvent=function(){}; g.a.Cj=function(){}; g.a.setLoop=function(){}; g.a.Ps=function(){}; g.a.setMediaElement=function(){}; g.a.qj=function(){}; g.a.setPlaybackRate=function(){}; g.a.kU=function(){}; g.a.AZ=function(){}; g.a.Rn=function(){}; g.a.setProximaLatencyPreference=function(){}; g.a.W3=function(){}; g.a.xT=function(){}; g.a.qf=function(){}; g.a.Jm=function(){}; g.a.Ft=function(){}; g.a.setUserAudio51Preference=function(){}; g.a.Ru=function(){}; g.a.rp=function(){return!1}; g.a.NI=function(){}; g.a.p$=function(){return!1}; g.a.IG=function(){}; g.a.SD=function(){}; g.a.Gd=function(){}; g.a.stopVideo=function(){}; g.a.subscribe=function(){return NaN}; g.a.oV=function(){}; g.a.togglePictureInPicture=function(){}; g.a.Js=function(){return 0}; g.a.unsubscribe=function(){return!1}; g.a.f6=function(){}; g.a.Vj=function(){return!1}; g.a.eZ=function(){}; g.a.DU=function(){}; g.a.O1=function(){};g.w(NQ,g.G);g.a=NQ.prototype;g.a.get=function(X){Bn(this);var J=this.data.find(function(L){return L.key===X}); return J?J.value:null}; g.a.set=function(X,J,L){this.remove(X,!0);Bn(this);X={key:X,value:J,expire:Infinity};L&&isFinite(L)&&(L*=1E3,X.expire=(0,g.uT)()+L);for(this.data.push(X);this.data.length>this.N;)(L=this.data.shift())&&Ub(this,L,!0);sb(this)}; g.a.remove=function(X,J){J=J===void 0?!1:J;var L=this.data.find(function(x){return x.key===X}); L&&(Ub(this,L,J),g.PV(this.data,function(x){return x.key===X}),sb(this))}; g.a.removeAll=function(X){if(X=X===void 0?!1:X)for(var J=g.d(this.data),L=J.next();!L.done;L=J.next())Ub(this,L.value,X);this.data=[];sb(this)}; g.a.uB=function(){var X=this;g.G.prototype.uB.call(this);this.data.forEach(function(J){Ub(X,J,!0)}); this.data=[]};g.w(g.m3,g.G);g.a=g.m3.prototype;g.a.uB=function(){for(var X=g.d(Object.values(this.N)),J=X.next();!J.done;J=X.next())J.value.dispose();B9m(this);this.L.dispose();g.G.prototype.uB.call(this)}; g.a.zK=function(X){return X?X===1?this.S:this.K.getVideoData().enableServerStitchedDai&&X===2?this.K.getVideoData().p6?this.N[2]||this.K:this.K:this.N[X]||null:this.K}; g.a.d0=function(X){var J=X.cpn;X=X.playerType;if(J)a:{X=g.d(Object.values(this.N));for(var L=X.next();!L.done;L=X.next())if(L=L.value,L.Pf()===J){J=L;break a}J=this.B[J]||null}else J=X?this.zK(X):this.K;return J}; g.a.Kp=function(){return this.S}; g.a.uu=function(X){this.S=X}; g.a.nm=function(){return this.K}; g.a.jd=function(X){this.K=X;kJ(this)}; g.a.AD=XY(46);g.a.Hj=XY(48);g.w(XLZ,g.mi);g.a=XLZ.prototype;g.a.M5=function(){}; g.a.Pf=function(){return this.videoData.clientPlaybackNonce}; g.a.getVideoData=function(){if(g.mi.prototype.getVideoData.call(this).Y("html5_huli_ssdai_use_playback_state"))var X=this.videoData;else{var J=this.S7;var L=g.mi.prototype.getCurrentTime.call(this);if(J.aV)J=void 0;else{var x=void 0;J.Fc&&(x=J.L.L.get(J.Fc));if(!x){x=MRR(J,L*1E3);var Q,K=(Q=x)==null?void 0:Q.cpn;J.Fc?K&&J.Fc!==K&&J.lB({cpcnm:K+"_"+J.Fc,cmt:L.toFixed(3)}):J.lB({cpcna:K,cmt:L.toFixed(3)})}J=(X=x)==null?void 0:X.videoData}X=J||g.mi.prototype.getVideoData.call(this)}return X}; g.a.getCurrentTime=function(X){var J=g.mi.prototype.getCurrentTime.call(this);g.mi.prototype.getVideoData.call(this).Y("html5_huli_ssdai_use_playback_state")?this.endTime===0?X||(J-=this.startTime):X&&(J=this.endTime-this.startTime):(X?X=this.S7.Zk/1E3||J:(X=J,X=(J=CK8(this.S7,X*1E3))?X-J.start/1E3:X),J=X);return J}; g.a.getDuration=function(){if(g.mi.prototype.getVideoData.call(this).Y("html5_huli_ssdai_use_playback_state"))var X=this.duration;else{X=this.S7;var J=g.mi.prototype.getCurrentTime.call(this);X=(X=MRR(X,J*1E3))?X.durationMs/1E3:0}return X}; g.a.Wq=function(X){this.duration=X};g.AX.prototype.MO=function(X,J){if(J===1)return this.L.get(X);if(J===2)return this.N.get(X);if(J===3)return this.K.get(X)}; g.AX.prototype.g6=XY(58);g.AX.prototype.pj=function(X,J,L,x){L={ze:x,le:L};J?this.N.set(X,L):this.L.set(X,L)}; g.AX.prototype.clearAll=function(){this.L.clear();this.N.clear();this.K.clear()}; LDW.prototype.clear=function(){this.K=[];this.L.clear();this.T.clear();this.N.clear()}; g.w(g.XE,g.G);g.a=g.XE.prototype;g.a.P0=function(X){var J=X.P_?X.P_*1E3:X.Se,L=this.N.get(X.cpn);L&&this.playback.removeCueRange(L);this.N.delete(X.cpn);this.L.L.delete(X.cpn);L=this.L.K.indexOf(X);L>=0&&this.L.K.splice(L,1);L=[];for(var x=g.d(this.j),Q=x.next();!Q.done;Q=x.next())Q=Q.value,Q.end<=J?this.playback.removeCueRange(Q):L.push(Q);this.j=L;dNY(this,0,J+X.durationMs)}; g.a.onCueRangeEnter=function(X){this.Bl.push(X);var J=X.getId();this.lB({oncueEnter:1,cpn:J,start:X.start,end:X.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.eT()||0).toFixed(3)});var L=J==="";this.bB.add(X.K);var x=this.L.L.get(J);if(L){var Q;if(this.playback.getVideoData().OA()&&((Q=this.K)==null?0:Q.OD)&&this.T){this.v_=0;this.K=void 0;this.S&&(this.events.VO(this.S),this.S=null);this.T="";this.vl=!0;return}}else if(this.lB({enterAdCueRange:1}),this.playback.getVideoData().OA()&& (x==null?0:x.ws))return;if(this.vl&&!this.K)this.vl=!1,!L&&x&&(L=this.playback.getCurrentTime(),K1(this,{Z2:X,isAd:!0,yN:!0,d5:L,adCpn:J},{isAd:!1,yN:!1,d5:L}),this.Fc=x.cpn,this.oW(x.cpn,L),iO(this,x),X=x2(this,"midab",x),this.lB(X),this.v_=1),this.B=!1;else if(this.K){if(this.K.yN)this.lB({a_pair_of_same_transition_occurs_enter:1,acpn:this.K.adCpn,transitionTime:this.K.d5,cpn:J,currentTime:this.playback.getCurrentTime()}),x=this.playback.getCurrentTime(),X={Z2:X,isAd:!L,yN:!0,d5:x,adCpn:J},J={Z2:this.K.Z2, isAd:this.K.isAd,yN:!1,d5:x,adCpn:this.K.adCpn},this.K.Z2&&this.bB.delete(this.K.Z2.K),K1(this,X,J);else{if(this.K.Z2===X){this.lB({same_cue_range_pair_enter:1,acpn:this.K.adCpn,transitionTime:this.K.d5,cpn:J,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:X.start,cueRangeEndTime:X.end});this.K=void 0;return}if(this.K.adCpn===J){J&&this.lB({dchtsc:J});this.K=void 0;return}X={Z2:X,isAd:!L,yN:!0,d5:this.playback.getCurrentTime(),adCpn:J};K1(this,X,this.K)}this.K=void 0;this.B=!1}else this.K= {Z2:X,isAd:!L,yN:!0,d5:this.playback.getCurrentTime(),adCpn:J}}; g.a.oW=function(X,J){if(X===this.playback.Pf())Zo(this.app.Qe(),this.playback,!1);else{var L=this.Hl.get(X);L?(L.endTime=0,L.startTime=J,Zo(this.app.Qe(),L,!0)):this.lB({nop_s:X})}}; g.a.onCueRangeExit=function(X){var J=X.getId();this.lB({oncueExit:1,cpn:J,start:X.start,end:X.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.eT()||0).toFixed(3)});var L=J==="",x=this.L.L.get(J);if(this.playback.getVideoData().OA()&&!L&&x){if(x.ws)return;x.ws=!0;this.W.clear();if(this.m9.Y("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.Kt()){var Q=x.Se;this.playback.gN(Q/1E3,(Q+x.durationMs)/1E3)}else this.playback.Ni("lifa",{remove:0})}if(this.bB.has(X.K))if(this.bB.delete(X.K), this.Bl=this.Bl.filter(function(K){return K!==X}),this.vl&&(this.B=this.vl=!1,this.lB({cref:1})),this.K){if(this.K.yN){if(this.K.Z2===X){this.lB({same_cue_range_pair_exit:1, acpn:this.K.adCpn,transitionTime:this.K.d5,cpn:J,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:X.start,cueRangeEndTime:X.end});this.K=void 0;return}if(this.K.adCpn===J){J&&this.lB({dchtsc:J});this.K=void 0;return}J={Z2:X,isAd:!L,yN:!1,d5:this.playback.getCurrentTime(),adCpn:J};K1(this,this.K,J)}else if(this.lB({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.K.adCpn,transitionTime:this.K.d5,upcomingCpn:J,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.K.adCpn===J)return;this.K=void 0;this.B=!1}else this.K={Z2:X,isAd:!L,yN:!1,d5:this.playback.getCurrentTime(),adCpn:J};else this.lB({ignore_single_exit:1})}; g.a.kc=function(){return{cpn:this.playback.Pf(),durationMs:0,Se:0,playerType:1,K3:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.a.hE=function(){if(this.aV)return!1;var X=void 0;this.Fc&&(X=this.L.L.get(this.Fc));return this.playback.getVideoData().OA()?!!X&&!X.ws:!!X}; g.a.seekTo=function(X,J,L,x){X=X===void 0?0:X;J=J===void 0?{}:J;L=L===void 0?!1:L;x=x===void 0?null:x;if(this.playback.getVideoData().OA()&&X<=this.Zk/1E3)this.playback.pauseVideo(),this.Zk=0,this.B=!0,this.playback.ud(),this.playback.seekTo(X),this.playback.playVideo();else if(this.B=!0,L)xNR(this,X,J);else{L=this.app.nm();var Q=L===this.jC?this.Lp:null;Iy(this,!1);this.H4=X;this.z6=J;x!=null&&this.Nx.start(x);L&&(this.Lp=Q||L.getPlayerState(),L.Gd(J),this.jC=L)}}; g.a.uB=function(){Iy(this,!1);n7Z(this);VRP(this);g.G.prototype.uB.call(this)}; g.a.DF=function(X){this.sH=X;this.lB({swebm:X})}; g.a.fA=function(X,J,L){if(L&&J){var x=this.W.get(X);if(x){x.locations||(x.locations=new Map);var Q=Number(J.split(";")[0]);L=new g.lI(L);this.lB({hdlredir:1,itag:J,seg:X,hostport:BK(L)});x.locations.set(Q,L)}}}; g.a.zI=function(X,J,L,x,Q,K){var q=x===3,D=O_I(this,X,J,x,L,K);if(!D){DK(this,J,q);var C=g.H_8(this,J)?"undec":"ncp";this.lB({gvprp:C,mt:X,seg:J,tt:x,itag:L,ce:K});return null}q||this.W.set(J,D);K=D.u6;var M;x=((M=this.MO(J-1,x,Q))==null?void 0:M.ze)||"";x===""&&this.lB({eds:1});M=wL8(this,D.ssdaiAdsConfig);Q=this.playback.getVideoData();var y;q=((y=Q.K)==null?void 0:y.containerType)||0;y=Q.II[q];D=D.Jl&&J>=D.Jl?D.Jl:void 0;y={C6:K?o7Y(this,K):[],fH:M,ze:x,dS:D,RN:W_(y.split(";")[0]),yL:y.split(";")[1]|| ""};D={IV:y};this.O6&&(X={gvprpro:"v",sq:J,mt:X.toFixed(3),itag:L,acpns:((C=y.C6)==null?void 0:C.join("_"))||"none",abid:K},this.lB(X));return D}; g.a.vY=function(X){a:{if(!this.aV){var J=aLZ(this,X);if(!(this.playback.getVideoData().OA()&&(J==null?0:J.ws)))break a}J=void 0}var L=J;if(!L)return this.lB({gvprp:"ncp",mt:X}),null;J=L.u6;var x=wL8(this,L.ssdaiAdsConfig);L=L.Jl&&L.Yg&&X>=L.Yg?L.Jl:void 0;var Q=this.playback.getVideoData(),K,q=((K=Q.K)==null?void 0:K.containerType)||0;K=Q.II[q];K={C6:J?o7Y(this,J):[],fH:x,dS:L,RN:W_(K.split(";")[0]),yL:K.split(";")[1]||""};var D;X={gvprpro:"v",mt:X.toFixed(3),acpns:((D=K.C6)==null?void 0:D.join("_"))|| "none",abid:J};this.lB(X);return K}; g.a.W8=function(X,J,L,x,Q,K){var q=Number(L.split(";")[0]),D=x===3;X=O_I(this,X,J,x,L,K);this.lB({gdu:1,seg:J,itag:q,pb:""+!!X});if(!X)return DK(this,J,D),null;X.locations||(X.locations=new Map);if(!X.locations.has(q)){var C,M;K=(C=X.videoData.getPlayerResponse())==null?void 0:(M=C.streamingData)==null?void 0:M.adaptiveFormats;if(!K)return this.lB({gdu:"noadpfmts",seg:J,itag:q}),DK(this,J,D),null;C=K.find(function(V){return V.itag===q}); if(!C||!C.url){var y=X.videoData.videoId;X=[];var n=g.d(K);for(x=n.next();!x.done;x=n.next())X.push(x.value.itag);this.lB({gdu:"nofmt",seg:J,vid:y,itag:q,fullitag:L,itags:X.join(",")});DK(this,J,D);return null}X.locations.set(q,new g.lI(C.url,!0))}K=X.locations.get(q);if(!K)return this.lB({gdu:"nourl",seg:J,itag:q}),DK(this,J,D),null;K=new rM(K);this.sH&&(K.get("dvc")?this.lB({dvc:K.get("dvc")||""}):K.set("dvc","webm"));(x=(n=this.MO(J-1,x,Q))==null?void 0:n.ze)&&K.set("daistate",x);X.Jl&&J>=X.Jl&& K.set("skipsq",""+X.Jl);(n=this.playback.getVideoData().clientPlaybackNonce)&&K.set("cpn",n);n=[];X.u6&&(n=o7Y(this,X.u6),n.length>0&&K.set("acpns",n.join(",")));D||this.W.set(J,X);D=null;D=K.get("aids");x=K.Eo();(x==null?void 0:x.length)>2048&&this.lB({urltoolong:1,sq:J,itag:q,len:x.length});this.O6&&(x&&(K=X.cpn,Q=X.u6,PKe(this,K,Q),Q&&!this.YF.has(Q)&&(K=b_z(this,K,Q),C=Smm(this,Q),this.lB({iofa:K}),this.lB({noawnzd:C-K}),this.lB({acpns:n.join("."),aids:(y=D)==null?void 0:y.replace(/,/g,".")}), this.YF.add(Q))),this.lB({gdu:"v",seg:J,itag:L,ast:X.Se.toFixed(3),alen:X.durationMs.toFixed(3),acpn:X.cpn,avid:X.videoData.videoId}));return x}; g.a.U1=function(X,J,L){L=L===void 0?!1:L;var x=g8(this,X,J);if(x){var Q=void 0,K=x.u6;if(K){this.lB({skipadonsq:J,sts:L,abid:K,acpn:x.cpn,avid:x.videoData.videoId});L=this.L.N.get(K);if(!L)return;L=g.d(L);for(K=L.next();!K.done;K=L.next())K=K.value,K.Jl=J,K.Yg=X,K.Se>x.Se&&(Q=K)}this.T=x.cpn;tRm(this);X=this.playback.getCurrentTime();QF(this,x,Q,X,X,!1,!0)}}; g.a.Sw=function(){for(var X=g.d(this.L.K),J=X.next();!J.done;J=X.next())J=J.value,J.Jl=NaN,J.Yg=NaN;tRm(this);this.lB({rsac:"resetSkipAd",sac:this.T});this.T=""}; g.a.MO=function(X,J,L){return this.FE.MO(X,J,L)}; g.a.g6=XY(57); g.a.pj=function(X,J,L,x,Q,K,q,D,C){x.length>0&&this.lB({onssinfo:1,sq:X,start:J.toFixed(3),cpns:x.join(","),ds:Q.join(","),isVideo:q?1:0});C&&this.FE.pj(X,q,D,C);if(q){if(x.length&&Q.length)for(this.T&&this.T===x[0]&&this.lB({skipfail:1,sq:X,acpn:this.T}),X=J+this.vJ(),q=0;q0&&(this.v_=0,this.Fc="",this.api.publish("serverstitchedvideochange"));this.playback.VC(L,x);return!0}; g.a.Wb=function(){this.lB({rstdaist:1});this.FE.clearAll()}; g.a.WP=function(X){var J;if(X!==((J=this.Km)==null?void 0:J.identifier))this.lB({ignorenoad:X});else{this.A0.add(X);this.lB({noadrcv:X});var L;((L=this.Km)==null?void 0:L.identifier)===X&&L1(this)}}; g.a.IR=function(X){if(this.aV)return this.lB({dai_disabled:X.event}),!1;if(this.playback.getVideoData().OA()&&(this.m9.Y("html5_lifa_no_gab_on_predict_start")&&X.event==="predictStart"||X.event==="continue"||X.event==="stop"))return!1;var J=pi(this.api.h_());if(J=J?J.IR(X):!1)this.D={oK:X.identifier,Hw:X.startSecs};else if(this.D&&this.D.oK===X.identifier&&X.startSecs>this.D.Hw+1){this.lB({cueStChg:X.identifier,oldSt:this.D.Hw.toFixed(3),newSt:X.startSecs.toFixed(3),abid:this.D.IX});if(this.D.IX){var L= X.startSecs-this.D.Hw,x=this.L.N.get(this.D.IX);if(x){x=g.d(x);for(var Q=x.next();!Q.done;Q=x.next())Q=Q.value,Q.Se>=0&&(Q.Se+=L*1E3,this.m9.Y("html5_ssdai_update_timeline_on_start_time_change")&&(Q.K3+=L*1E3),this.lB({newApEt:Q.Se,newApPrt:Q.K3,acpn:Q.cpn}))}}this.D.Hw=X.startSecs}return J}; g.a.Qh=function(X){return this.aV?!1:!!aLZ(this,X)}; g.a.qU=function(X){var J=this;if(this.m9.Y("html5_lifa_ignore_multiple_skips")&&this.S)return this.lB({ufs_ad:this.T,ufs_cur:this.Fc,ufs_cont:this.kc().cpn}),!1;this.playback.pauseVideo();var L=this.playback.getCurrentTime(),x=this.m9.Y("html5_lifa_reset_segment_index_on_skip"),Q=x?L+this.playback.vJ():L,K=this.L.L.get(this.Fc),q=this.N.get(this.Fc);if(K){this.T=this.Fc;this.B=!1;K.ws=!0;L=this.playback.getCurrentTime();this.K={Z2:q,isAd:!0,yN:!1,d5:L,adCpn:this.Fc,OD:K,h_B:X};this.playback.tZ(K, this.kc(),L,this.playback.getCurrentTime(),!1,!0,X,(0,g.uT)());x&&this.playback.lX();if(q==null?0:q.start)this.Zk=L*1E3-q.start,$NP(this,q.id,L);this.W.clear();this.playback.ud();X=this.kc();this.Fc=X.cpn;this.oW(X.cpn,L);this.api.publish("serverstitchedvideochange");this.playback.seekTo(Q,{seekSource:89,B9:"lifa_skip"});this.playback.playVideo();this.S||(this.S=this.events.J(this.api,"progresssync",function(){J.P0(K)})); return!0}this.lB({skipFail:L},!0);return!1}; g.a.lB=function(X,J){((J===void 0?0:J)||this.O6||this.playback.getVideoData().OA())&&this.playback.Ni("sdai",X)}; var qmP=0;g.w(ccW,g.XE);g.a=ccW.prototype;g.a.onCueRangeEnter=function(X){var J=X.getId();this.playback.Ni("sdai",{oncueEnter:1,cpn:J,start:X.start,end:X.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.eT()||0).toFixed(3)});var L=this.L.L.get(J);this.playback.Ni("sdai",{enterAdCueRange:1});var x=this.Fc||this.kc().cpn,Q;x=(Q=this.L.L.get(x))!=null?Q:this.kc();L&&(Q=this.playback.getCurrentTime(),L={dR:x,B1:L,j8:Q},hjR(this,J,X.start/1E3,Q),Ymz(this,L))}; g.a.onCueRangeExit=function(X){for(var J=this.playback.getCurrentTime()*1E3,L=X.getId(),x=g.d(this.N.values()),Q=x.next();!Q.done;Q=x.next())if(Q=Q.value,Q.getId()!==L&&J>=Q.start&&J<=Q.end)return;if(L=this.L.L.get(L))J=this.playback.getCurrentTime(),L={dR:L,B1:this.kc(),j8:J},hjR(this,this.playback.Pf(),X.end/1E3,J),Ymz(this,L)}; g.a.seekTo=function(X,J,L,x){X=X===void 0?0:X;J=J===void 0?{}:J;L=L===void 0?!1:L;x=x===void 0?null:x;C1(this,this.Fc);this.playback.getVideoData().OA()&&X<=this.oT?(this.playback.pauseVideo(),this.oT=this.Zk=0,zjO(this,X)):g.XE.prototype.seekTo.call(this,X,J,L,x)}; g.a.U1=function(X,J,L){L=L===void 0?!1:L;var x=g8(this,X,J);if(x){var Q=void 0,K=x.u6;if(K){this.playback.Ni("sdai",{skipadonsq:J,sts:L,abid:K,acpn:x.cpn,avid:x.videoData.videoId});L=this.L.N.get(K);if(!L)return;L=g.d(L);for(K=L.next();!K.done;K=L.next())K=K.value,K.Jl=J,K.Yg=X,K.Se>x.Se&&(Q=K)}C1(this,this.Fc);this.T=x.cpn;tRm(this);X=this.playback.getCurrentTime();QF(this,x,Q,X,X,!1,!0);this.T="";this.B=!1}}; g.a.pj=function(X,J,L,x,Q,K,q,D,C){x.length>0&&this.playback.Ni("sdai",{onssinfo:1,sq:X,start:J.toFixed(3),cpns:x.join(","),ds:Q.join(","),isVideo:q?1:0});C&&this.FE.pj(X,q,D,C);if(q){if(x.length&&Q.length)for(this.T&&this.T===x[0]&&this.playback.Ni("sdai",{skipfail:1,sq:X,acpn:this.T}),X=J+this.vJ(),L=0;L=0&&this.L.K.splice(X,1)};g.w(rce,g.G);g.a=rce.prototype;g.a.onCueRangeEnter=function(X){if(this.L===this.app.nm()){var J=this.j.get(X);J?ejA(this,J.target,J.n$,X):this.NF("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:X.toString()})}else if(J=this.K.find(function(Q){return Q.Z9.Z2===X})){var L=J.Z9,x=L.target; L=L.n$;x?ejA(this,x,L,X):fLm(this,J.K3,L,X)}}; g.a.onQueuedVideoLoaded=function(){var X=this.W;VF(this);if(X){if(!n1(this,X)){var J=this.app.nm();this.NF("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:J==null?void 0:J.getVideoData().clientPlaybackNonce,ccpn:""+X.playerVars.cpn})}this.app.nm().addCueRange(X.Z9.Z2)}}; g.a.seekTo=function(X,J,L,x){X=X===void 0?0:X;J=J===void 0?{}:J;x=x===void 0?null:x;if(L===void 0?0:L)pLP(this,X,J);else{L=this.app.nm()||null;var Q=L===this.T?this.B:null;HA(this,!1);this.Km=X;this.D=J;x!=null&&this.S.start(x);L&&(this.B=Q||L.getPlayerState(),L.Gd(),this.T=L)}}; g.a.Cv=function(X){g.Ds(X,128)&&sdo(this)}; g.a.isManifestless=function(){return Pd(this.L.getVideoData())}; g.a.uB=function(){HA(this,!1);UNY(this);g.G.prototype.uB.call(this)}; g.a.NF=function(X,J){this.L.NF(new g.Mh(X,J))}; var v78=0;var mNI="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.w(OK,g.G);OK.prototype.Gf=function(X){if(X)return this.K.get(X)}; OK.prototype.uB=function(){this.L.removeAll();this.K.removeAll();g.G.prototype.uB.call(this)};g.PSu=WB(function(){var X=window.AudioContext||window.webkitAudioContext;try{return new X}catch(J){return J.name}});g.w(J7S,g.R);g.a=J7S.prototype;g.a.rB=function(){g.ic(this.element,g.fR.apply(0,arguments))}; g.a.Fs=function(){this.aT&&(this.aT.removeEventListener("focus",this.iS),g.aW(this.aT),this.aT=null)}; g.a.fM=function(){this.E6();var X=this.app.G();X.rF||this.rB("tag-pool-enabled");X.B&&this.rB(g.wf.HOUSE_BRAND);X.playerStyle==="gvn"&&(this.rB("ytp-gvn"),this.element.style.backgroundColor="transparent");X.t_&&(this.DL=g.kt("yt-dom-content-change",this.resize,this));X.Y("html5_screen_orientation_resize")?window.screen&&window.screen.orientation?this.J(window.screen.orientation,"change",this.resize,this):this.J(window,"orientationchange",this.resize,this):this.J(window,"orientationchange",this.resize, this);this.J(window,"resize",this.resize,this)}; g.a.hQ=function(X){g.U2(this.app.G());this.Hr=!X;ay(this)}; g.a.resize=function(){if(this.aT){var X=this.Lv();if(!X.isEmpty()){var J=!g.sR(X,this.Nj.getSize()),L=Kez(this);J&&(this.Nj.width=X.width,this.Nj.height=X.height);X=this.app.G();(L||J||this.ZF||X.t_)&&this.app.IB.publish("resize",this.getPlayerSize())}}}; g.a.vK=function(X,J){this.updateVideoData(J)}; g.a.updateVideoData=function(X){if(this.aT){var J=this.app.G();Fh&&(this.aT.setAttribute("x-webkit-airplay","allow"),X.title?this.aT.setAttribute("title",X.title):this.aT.removeAttribute("title"));this.aT.setAttribute("controlslist","nodownload");J.Ts&&X.videoId&&(this.aT.poster=X.TC("default.jpg"))}J=g.jw(X,"yt:bgcolor");this.Pb.style.backgroundColor=J?J:"";this.JT=iu(g.jw(X,"yt:stretch"));this.o5=iu(g.jw(X,"yt:crop"),!0);g.q8(this.element,"ytp-dni",X.UM);this.resize()}; g.a.setGlobalCrop=function(X){this.qL=iu(X,!0);this.resize()}; g.a.setCenterCrop=function(X){this.kO=X;this.resize()}; g.a.nI=function(){}; g.a.getPlayerSize=function(){var X=this.app.G(),J=this.app.IB.isFullscreen(),L=X.externalFullscreen&&g.lb(X);if(J&&Go()&&!L)return new g.B_(window.outerWidth,window.outerHeight);L=!isNaN(this.hd.width)&&!isNaN(this.hd.height);var x=this.app.G().Y("kevlar_player_enable_squeezeback_fullscreen_sizing");if(J&&!L&&x)return new g.B_(this.element.clientWidth,this.element.clientHeight);if(J||X.jZ){if(window.matchMedia){X="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.qH&&this.qH.media=== X||(this.qH=window.matchMedia(X));var Q=this.qH&&this.qH.matches}if(Q)return new g.B_(window.innerWidth,window.innerHeight)}else if(L)return this.hd.clone();return new g.B_(this.element.clientWidth,this.element.clientHeight)}; g.a.Lv=function(){var X=this.app.G().Y("enable_desktop_player_underlay"),J=this.getPlayerSize(),L=g.J_(this.app.G().experiments,"player_underlay_min_player_width");return X&&this.AF&&J.width>L?(X=g.J_(this.app.G().experiments,"player_underlay_video_width_fraction"),new g.B_(Math.min(J.height*this.getVideoAspectRatio(),J.width*X),Math.min(J.height,J.width*X/this.getVideoAspectRatio()))):J}; g.a.getVideoAspectRatio=function(){return isNaN(this.JT)?xjP(this):this.JT}; g.a.getVideoContentRect=function(X){var J=this.Lv();X=ixI(this,J,this.getVideoAspectRatio(),X);return new g.fj((J.width-X.width)/2,(J.height-X.height)/2,X.width,X.height)}; g.a.x_=function(X){this.AF=X;this.resize()}; g.a.zN=function(){return this.qo}; g.a.onMutedAutoplayChange=function(){ay(this)}; g.a.setInternalSize=function(X){g.sR(this.hd,X)||(this.hd=X,this.resize())}; g.a.uB=function(){this.DL&&g.ZF(this.DL);this.Fs();g.R.prototype.uB.call(this)};g.a=ITR.prototype;g.a.click=function(X,J){this.elements.has(X);this.L.has(X);var L=g.Ow();L&&X.visualElement&&g.AR(L,X.visualElement,J)}; g.a.createClientVe=function(X,J,L,x){var Q=this;x=x===void 0?!1:x;this.elements.has(X);this.elements.add(X);L=OUY(L);X.visualElement=L;var K=g.Ow(),q=g.HM();K&&q&&(g.VQ("combine_ve_grafts")?mX(Nt(),L,q):g.ND(g.Gc)(void 0,K,q,L));J.addOnDisposeCallback(function(){Q.elements.has(X)&&Q.destroyVe(X)}); x&&this.K.add(X)}; g.a.createServerVe=function(X,J,L){var x=this;L=L===void 0?!1:L;this.elements.has(X);this.elements.add(X);J.addOnDisposeCallback(function(){x.destroyVe(X)}); L&&this.K.add(X)}; g.a.destroyVe=function(X){this.elements.has(X);this.elements.delete(X);this.N.delete(X);this.L.delete(X);this.K.delete(X)}; g.a.dE=function(X,J){this.clientPlaybackNonce!==J&&(this.clientPlaybackNonce=J,Up(Nt(),X),gMv(this))}; g.a.setTrackingParams=function(X,J){this.elements.has(X);J&&(X.visualElement=g.nf(J))}; g.a.LO=function(X,J,L){this.elements.has(X);J?this.L.add(X):this.L.delete(X);var x=g.Ow(),Q=X.visualElement;this.K.has(X)?x&&Q&&(J?g.kO(x,[Q]):g.Z4(x,[Q])):J&&!this.N.has(X)&&(x&&Q&&g.mj(x,Q,void 0,L),this.N.add(X))}; g.a.hasVe=function(X){return this.elements.has(X)};g.w(g.tG,g.G);g.tG.create=function(X,J,L,x){try{var Q=typeof X==="string"?X:"player"+g.qC(X),K=YV[Q];if(K){try{K.dispose()}catch(D){g.Sc(D)}YV[Q]=null}var q=new g.tG(X,J,L,x);q.addOnDisposeCallback(function(){YV[Q]=null;q.s_&&q.s_()}); return YV[Q]=q}catch(D){throw g.Sc(D),(D&&D instanceof Error?D:Error(String(D))).stack;}}; g.a=g.tG.prototype;g.a.QQ=function(){return this.visibility}; g.a.uu=function(X){var J=this.Kp();if(X!==J){X.getVideoData().autonavState=J.getVideoData().autonavState;J.f6(this.FG,this);var L=J.getPlaybackRate();J.dispose();this.v9.uu(X);X.setPlaybackRate(L);X.oV(this.FG,this);VWv(this)}}; g.a.jj=function(){this.AL||(this.AL=g.lV(NM(),hMS()));return this.AL}; g.a.Fs=function(X){if(this.mediaElement){this.KQ&&(this.events.VO(this.KQ),this.KQ=null);g.Sf(this.wv);this.nm().Fs(!0,!1,X);this.template.Fs();try{this.Y("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Mo()}catch(J){g.PM(J)}this.mediaElement=null}}; g.a.jd=function(X,J,L){L=L===void 0?!1:L;if(X!==this.nm()){this.logger.debug(function(){return"start set presenting player, type "+X.getPlayerType()+", vid "+X.getVideoData().videoId}); var x=null;L||(L=this.nm(),x=L.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),Wm(this.Hv,3),Ry(this,"cuerangesremoved",L.Ri()),this.KJ&&!X.isGapless()&&L.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),L=X.rp()&&L.rp(),this.gt.u8("iv_s"),oMY(this,L));X.getPlayerType()===1&&this.uu(X);uKo(this,X);this.v9.jd(X);this.mediaElement&&X.setMediaElement(this.mediaElement);X.oV(this.OF,this);X.AU()?kJS(this,"setPresenting",!1):(this.vK("newdata",X,X.getVideoData()), x&&!g.cv(x,X.getPlayerState())&&this.PX(new g.IF(X.getPlayerState(),x)),J=J&&X.getPlayerType()===1,X.Lz()&&!J&&this.vK("dataloaded",X,X.getVideoData()),(J=(J=X.getVideoData().K)&&J.video)&&this.IB.EM("onPlaybackQualityChange",J.quality),Ry(this,"cuerangesadded",X.Ri()),J=X.getPlayerState(),g.N(J,2)?djI(this):g.N(J,8)?X.playVideo():X.RU()&&X.pauseVideo(),J=this.Kp(),X.getPlayerType()===2&&(X.getVideoData().TJ=J.getVideoData().clientPlaybackNonce),X.getPlayerType()!==2||this.cO()||(x=X.getVideoData(), J.gB(x.clientPlaybackNonce,x.qQ||"",x.breakType||0,x.oT,x.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.a.Dc=function(){if(this.Kp()!==this.nm()){var X=this.nm();this.logger.debug(function(){return"release presenting player, type "+X.getPlayerType()+", vid "+X.getVideoData().videoId}); this.jd(this.Kp())}}; g.a.Qe=function(){return this.v9}; g.a.d0=function(X){return this.v9.d0(X)}; g.a.zK=function(X){return this.v9.zK(X)}; g.a.Kp=function(){return this.v9.Kp()}; g.a.nm=function(){return this.v9.nm()}; g.a.Sb=XY(44);g.a.IY0=function(){PA(this)||(this.logger.debug("application playback ready"),this.Wk(5))}; g.a.Dx9=function(){if(!PA(this)){this.logger.debug("playback ready");sPe(this);var X=this.nm(),J=X.getPlayerState();X.RU()?this.pauseVideo():J.isOrWillBePlaying()&&this.playVideo()}}; g.a.canPlayType=function(X){return HU(X)}; g.a.G=function(){return this.m9}; g.a.getVideoData=function(){return this.nm().getVideoData()}; g.a.bE=XY(11);g.a.mY=function(){return this.Kp().getVideoData()}; g.a.getVideoLoadedFraction=function(X){return(X=this.d0({playerType:X}))?X.getVideoLoadedFraction():this.v9.L.getVideoLoadedFraction()}; g.a.t0=function(){return this.template}; g.a.h_=function(){return this.Hv}; g.a.r5=function(){return this.gt}; g.a.H3=function(X){var J=this.d0({playerType:1});J&&J.Cj(X)}; g.a.WN=function(){var X=this.Hv.WN();this.IB.publish("videoStatsPingCreated",X);return X}; g.a.getVolume=function(){return Math.round(this.IB.getVolume())}; g.a.isMuted=function(){return this.IB.isMuted()}; g.a.dk=function(){if(this.Kp()===this.nm()&&this.FX)return this.FX.postId}; g.a.LQq=function(){var X=this;this.Y("use_rta_for_player")||(g.nD(this.m9)?g.wT(this.m9,g.X3(this.getVideoData())).then(function(J){U8(NM(),J);UaY(X.getVideoData(),X.m9,X.jj())}):UaY(this.getVideoData(),this.m9,this.jj()))}; g.a.rN=function(X){this.IB.publish("poTokenVideoBindingChange",X)}; g.a.HV=function(X){this.IB.publish("d6de4videobindingchange",X)}; g.a.XC=function(){this.Sp&&this.Sp.XC()}; g.a.eg=function(X){this.Sp=X}; g.a.Q5=function(X){if(X===1){this.gt.tick("vr");var J=this.nm();J.WQ();yGz(this.gt,J.getVideoData(),BHY(this));lKI(this.Hv)}J=this.m9;if(He(J)&&J.S||g.kH(J)){var L;(((L=this.nm().getVideoData())==null?0:L.enableServerStitchedDai)||!this.cO())&&this.IB.EM("onAdStateChange",X)}}; g.a.setLoopVideo=function(X){var J=this.nm();J===this.Kp()&&J.W_()!==X&&(J.setLoop(X),this.IB.GH("onLoopChange",X))}; g.a.getLoopVideo=function(){return this.nm().W_()}; g.a.setLoopRange=function(X){var J=!1;!!this.FX!==!!X?J=!0:this.FX&&X&&(J=this.FX.startTimeMs!==X.startTimeMs||this.FX.endTimeMs!==X.endTimeMs||this.FX.postId!==X.postId||this.FX.type!==X.type);if(J){J=this.nm();Or(J.getVideoData())&&J.Ni("slr",{et:(X==null?void 0:X.endTimeMs)||-1});J=this.Kp();J.Q0("applooprange");if(X){var L=new g.Rw(X.startTimeMs,X.endTimeMs,{id:"looprange",namespace:"applooprange"});J.addCueRange(L)}else{this.mY().clipConfig=void 0;var x;((L=this.FX)==null?void 0:L.type)!=="repeatChapter"|| isNaN(Number((x=this.FX)==null?void 0:x.loopCount))||(L={loopCount:String(this.FX.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.QK("repeatChapterLoopEvent",L))}this.FX=X;this.IB.GH("onLoopRangeChange",X||void 0);this.Kp()===this.nm()&&(this.ys(),J.FO())}}; g.a.getLoopRange=function(){return this.FX}; g.a.ys=function(){var X="",J=this.Kp();this.FX?J!==this.nm()?X="pnea":zk8(this,J.getCurrentTime())&&(this.FX.loopCount=0,X="ilr"):X="nlr";var L=this.nm();if(Or(L.getVideoData()))if(this.Y("html5_gapless_log_loop_range_info")){var x,Q;L.Ni("slrre",{rej:X,ct:J.getCurrentTime(),lst:(x=this.FX)==null?void 0:x.startTimeMs,let:(Q=this.FX)==null?void 0:Q.endTimeMs})}else L.Ni("slrre",{});X||pDP(this)}; g.a.setPlaybackRate=function(X,J){if(!isNaN(X)){X=aTe(this,X);var L=this.Kp();L.getPlaybackRate()!==X&&(L.setPlaybackRate(X),J&&!this.m9.T&&g.El("yt-player-playback-rate",X),this.IB.EM("onPlaybackRateChange",X))}}; g.a.getCurrentTime=function(X,J){J=J===void 0?!0:J;var L=this.v9.kW;if(L)return L.getCurrentTime();var x=X===2&&this.getVideoData().enableServerStitchedDai;L=null;x?L=this.nm():L=this.d0({playerType:X});return L?x&&this.MF?(X=this.v9.W)?X.getCurrentTime(J):L.getCurrentTime():J?(J=SL(this,L),jL(this,J.getCurrentTime(),J)):L.getCurrentTime():this.v9.L.getCurrentTime()}; g.a.k6=function(){var X=this.d0({playerType:void 0});if(!X)return this.v9.L.k6();X=SL(this,X);return jL(this,X.k6(),X)}; g.a.getDuration=function(X,J){J=J===void 0?!0:J;var L=this.v9.kW;if(L)return L.getDuration();L=this.getVideoData();var x=X===2&&L.enableServerStitchedDai,Q=null;x?Q=this.nm():Q=this.d0({playerType:X});if(!Q)return this.v9.L.getDuration();if(L.hasProgressBarBoundaries()&&!x){var K,q=Number((K=L.progressBarStartPosition)==null?void 0:K.utcTimeMillis),D;K=Number((D=L.progressBarEndPosition)==null?void 0:D.utcTimeMillis);if(!isNaN(q)&&!isNaN(K))return(K-q)/1E3}if(Or(L)&&!L.isLivePlayback)return r8(this, X);if(J)return X=bO(this,Q),jL(this,X.getDuration(),X);if(x&&this.MF){if(this.Y("html5_huli_ssdai_use_playback_state"))return X=this.v9,X=X.T===X.W?X.T:null,(X==null?void 0:X.getDuration())||0;var C;return((C=this.v9.W)==null?void 0:C.getDuration())||0}return Q.getDuration()}; g.a.L3=function(X){var J=this.d0({playerType:X});return J?this.cO(J)?(J=bO(this,J),J.L3()-J.getCurrentTime()+this.getCurrentTime(X)):J.L3():this.v9.L.L3()}; g.a.finishSegmentByCpn=function(){return[]}; g.a.fM=function(){this.template.fM();var X=this.IB;X.state.element=this.template.element;var J=X.state.element,L;for(L in X.state.L)X.state.L.hasOwnProperty(L)&&(J[L]=X.state.L[L]);(X=vxv(this.template.element))&&this.events.J(this.template,X,this.onFullscreenChange)}; g.a.getDebugText=function(X){var J=this.Kp().yr(X),L=this.nm();if(L!==this.Kp()){L=L.yr(X);for(var x=g.d(Object.keys(L)),Q=x.next();!Q.done;Q=x.next())Q=Q.value,J["ad"+Q]=L[Q];if(X){L=J;x={};if(Q=xD(document,"movie_player"))x.bounds=Q.getBoundingClientRect(),x["class"]=Q.className;Q={};var K=g.qG("video-ads");K?(X3Z(K,Q),Q.html=K.outerHTML):Q.missing=1;K={};var q=g.qG("videoAdUiSkipContainer"),D=g.qG("ytp-ad-skip-button-container"),C=g.qG("ytp-skip-ad-button"),M=q||D||C;M?(X3Z(M,K),K.ima=q?1:0,K.bulleit= D?1:0,K.component=C?1:0):K.missing=1;x=JSON.stringify({player:x,videoAds:Q,skipButton:K});L.ad_skipBtnDbgInfo=x}}X&&this.mediaElement&&(J["0sz"]=""+(+NK(this.mediaElement.getSize())===0),J.op=this.mediaElement.Jd("opacity"),L=this.mediaElement.pw().y+this.mediaElement.getSize().height,J.yof=""+(+L<=0),J.dis=this.mediaElement.Jd("display"));X&&((X=(0,g.o1)())&&(J.gpu=X),(X=this.m9.playerStyle)&&(J.ps=X),this.m9.bB&&(J.webview=1));J.debug_playbackQuality=this.IB.getPlaybackQuality(1);J.debug_date=(new Date).toString(); J.origin=window.origin;J.timestamp=Date.now();delete J.uga;delete J.q;return JSON.stringify(J,null,2)}; g.a.getFeedbackProductData=function(){var X={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.G().experiments.experimentIds.join(", "),player_release:I[44]},J=this.getPlayerStateObject().pn;J&&(X.player_error_code=J.errorCode,X.player_error_details=JSON.stringify(J.errorDetail));return X}; g.a.getPresentingPlayerType=function(X){if(this.appState===1)return 1;if(PA(this))return 3;var J;return X&&((J=this.MF)==null?0:J.hE(this.getCurrentTime()))?2:this.nm().getPlayerType()}; g.a.Xg=function(){return!1}; g.a.getPlayerStateObject=function(X){var J=this.v9.kW;return J?J.getPlayerState():this.d0({playerType:X}).getPlayerState()}; g.a.getAppState=function(){return this.appState}; g.a.uvM=function(X){switch(X.type){case "loadedmetadata":this.l$.start();X=g.d(this.V1);for(var J=X.next();!J.done;J=X.next())J=J.value,RkW(this,J.id,J.mrl,J.yJ9,void 0,!1);this.V1=[];break;case "loadstart":this.gt.u8("gv");break;case "progress":case "timeupdate":Ab(X.target.SW())>=2&&this.gt.u8("l2s");break;case "playing":g.n4&&this.l$.start();if(g.nD(this.m9))X=!1;else{J=g.ey(this.h_());X=this.mediaElement.Jd("display")==="none"||NK(this.mediaElement.getSize())===0;var L=w8(this.template),x=this.nm().getVideoData(), Q=g.ze(this.m9);x=al(x);J=!L||J||Q||x||this.m9.A0;X=X&&!J}X&&(X=this.nm(),X.Pn(),this.getVideoData().H4||(this.getVideoData().H4=1,this.hS(),X.playVideo()))}}; g.a.c_l=function(X){this.IB.Xv("onLoadProgress",X)}; g.a.NQ0=function(){this.IB.publish("playbackstalledatstart")}; g.a.y_I=function(X,J){this.IB.publish("sabrCaptionsDataLoaded",X,J)}; g.a.OOm=function(X){this.nm().xT(X)}; g.a.M7m=function(X){this.nm().W3(X)}; g.a.PHl=function(X){X=SL(this,this.nm());X=jL(this,X.getCurrentTime(),X);this.IB.EM("onVideoProgress",X);this.m9.tv&&fTR(this,this.visibility.OS())&&this.pauseVideo()}; g.a.sfq=function(){this.IB.EM("onAutoplayBlocked");var X=this.nm().getVideoData();X&&(X.Q3=!0);this.Y("embeds_enable_autoplay_and_visibility_signals")&&g.lb(this.m9)&&(X={autoplayBrowserPolicy:tW(),autoplayIntended:df(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.QK("embedsAutoplayStatusChanged",X))}; g.a.r_l=function(){this.IB.publish("progresssync")}; g.a.lwl=function(){this.IB.Xv("onPlaybackPauseAtStart")}; g.a.W9l=function(X){if(this.getPresentingPlayerType()===1){g.Ds(X,1)&&!g.N(X.state,64)&&this.mY().isLivePlayback&&this.Kp().isAtLiveHead()&&this.IB.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Ds(X,2)){if(this.FX&&this.FX.endTimeMs>=(this.getDuration()-1)*1E3){pDP(this);return}djI(this)}if(g.N(X.state,128)){var J=X.state;this.cancelPlayback(5);J=J.pn;JSON.stringify({errorData:J,debugInfo:this.getDebugText(!0)});this.IB.EM("onError",qpz(J.errorCode));this.IB.Xv("onDetailedError",{errorCode:J.errorCode, errorDetail:J.errorDetail,message:J.errorMessage,messageKey:J.qb,cpn:J.cpn});(0,g.uT)()-this.m9.In>6048E5&&this.IB.Xv("onReloadRequired")}J={};if(X.state.isPlaying()&&!X.state.isBuffering()&&!PQ("pbresume","ad_to_video")&&PQ("_start","ad_to_video")){var L=this.getVideoData();J.clientPlaybackNonce=L.clientPlaybackNonce;L.videoId&&(J.videoId=L.videoId);g.bV(J,"ad_to_video");oo("pbresume",void 0,"ad_to_video");lKI(this.Hv)}this.IB.publish("applicationplayerstatechange",X)}}; g.a.PX=function(X){this.v9.kW||this.IB.publish("presentingplayerstatechange",X)}; g.a.Cv=function(X){oy(this,Yj(X.state));g.N(X.state,1024)&&this.IB.isMutedByMutedAutoplay()&&(WA(this,{muted:!1,volume:this.WS.volume},!1),p1(this,!1))}; g.a.onPlayerRequestSent=function(X){this.IB.GH("onPlayerRequestSent",X)}; g.a.xiM=function(X,J){X==="newdata"&&VWv(this);this.IB.publish("applicationvideodatachange",X,J)}; g.a.bpM=function(X,J){this.Y("html5_afmt_change_update_volume")&&sPe(this);this.IB.Xv("onPlaybackAudioChange",this.IB.getAudioTrack().OH.name);this.IB.publish("internalaudioformatchange",this.IB.getAudioTrack().OH.id,J)}; g.a.hx6=function(X){var J=this.nm().getVideoData();X===J&&this.IB.EM("onPlaybackQualityChange",X.K.video.quality)}; g.a.LP=function(){var X=this.v9.N[2]||null;X&&(X=X.getVideoData(),this.nm().Ni("ssdai",{cleanaply:1,acpn:X==null?void 0:X.clientPlaybackNonce,avid:X.videoId,isDai:this.mY().enableServerStitchedDai?1:0}),delete this.v9.N[2])}; g.a.iOY=function(X,J){this.vK(X,this.nm(),J)}; g.a.vK=function(X,J,L){this.logger.debug(function(){return"on video data change "+X+", player type "+J.getPlayerType()+", vid "+L.videoId}); this.m9.YH()&&J.Ni("vdc",{type:X,vid:L.videoId||"",cpn:L.clientPlaybackNonce||""});J===this.Kp()&&(this.m9.gp=L.oauthToken);J===this.Kp()&&(this.getVideoData().enableServerStitchedDai&&!this.MF?(this.Kp().Ni("sdai",{initSstm:1}),this.MF=this.Y("html5_enable_ssdai_transition_with_only_enter_cuerange")?new ccW(this.IB,this.m9,this.Kp(),this):new g.XE(this.IB,this.m9,this.Kp(),this)):!this.getVideoData().enableServerStitchedDai&&this.MF&&(this.MF.dispose(),this.MF=null));if(X==="newdata")this.logger.debug("new video data, destroy modules"), Wm(this.Hv,2),this.IB.publish("videoplayerreset",J);else{if(!this.mediaElement)return;X==="dataloaded"&&(this.Kp()===this.nm()?(L4(L.TH,L.Fd),c7I(this)):SPm(this));J.getPlayerType()===1&&(this.m9.vl&&A7v(this),this.getVideoData().isLivePlayback&&!this.m9.h4&&this.AJ("html5.unsupportedlive",2,"DEVICE_FALLBACK"),L.isLoaded()&&((VzZ(L)||this.getVideoData().ag)&&this.IB.publish("legacyadtrackingpingchange",this.getVideoData()),L.hasProgressBarBoundaries()&&vMZ(this)));this.IB.publish("videodatachange", X,L,J.getPlayerType())}this.IB.EM("onVideoDataChange",{type:X,playertype:J.getPlayerType()});this.ys();var x=L.MB;x?this.b3.dE(x,L.clientPlaybackNonce):gMv(this.b3)}; g.a.GS=function(){EK(this,null);this.IB.Xv("onPlaylistUpdate")}; g.a.QTE=function(X){delete this.Wd[X.getId()];this.Kp().removeCueRange(X);a:{X=this.getVideoData();var J,L,x,Q,K,q,D,C,M,y,n=((J=X.Bl)==null?void 0:(L=J.contents)==null?void 0:(x=L.singleColumnWatchNextResults)==null?void 0:(Q=x.autoplay)==null?void 0:(K=Q.autoplay)==null?void 0:K.sets)||((q=X.Bl)==null?void 0:(D=q.contents)==null?void 0:(C=D.twoColumnWatchNextResults)==null?void 0:(M=C.autoplay)==null?void 0:(y=M.autoplay)==null?void 0:y.sets);if(n)for(J=g.d(n),L=J.next();!L.done;L=J.next())if(L= L.value,Q=x=void 0,L=L.autoplayVideo||((x=L.autoplayVideoRenderer)==null?void 0:(Q=x.autoplayEndpointRenderer)==null?void 0:Q.endpoint),x=g.F(L,g.Md),K=Q=void 0,L!=null&&((Q=x)==null?void 0:Q.videoId)===X.videoId&&((K=x)==null?0:K.continuePlayback)){X=L;break a}X=null}(J=g.F(X,g.Md))&&this.IB.GH("onPlayVideo",{sessionData:{autonav:"1",itct:X==null?void 0:X.clickTrackingParams},videoId:J.videoId,watchEndpoint:J})}; g.a.Wk=function(X){var J=this;X!==this.appState&&(this.logger.debug(function(){return"app state change "+J.appState+" -> "+X}),X===2&&this.getPresentingPlayerType()===1&&(oy(this,-1),oy(this,5)),this.appState=X,this.IB.publish("appstatechange",X))}; g.a.AJ=function(X,J,L,x,Q){this.Kp().kU(X,J,L,x,Q)}; g.a.pu=XY(13);g.a.isAtLiveHead=function(X,J){J=J===void 0?!1:J;var L=this.d0({playerType:X});if(!L)return this.v9.L.isAtLiveHead();X=bO(this,L);L=SL(this,L);return X!==L?X.isAtLiveHead(jL(this,L.getCurrentTime(),L),!0):X.isAtLiveHead(void 0,J)}; g.a.TD=function(){var X=this.d0({playerType:void 0});return X?bO(this,X).TD():this.v9.L.TD()}; g.a.seekTo=function(X,J,L,x,Q){J=J!==!1;if(x=this.d0({playerType:x}))this.appState===2&&hG(this),this.cO(x)?TE(this)?this.MF.seekTo(X,{seekSource:Q},J,L):this.S7.seekTo(X,{seekSource:Q},J,L):x.seekTo(X,{CE:!J,nN:L,B9:"application",seekSource:Q})}; g.a.seekBy=function(X,J,L,x){this.seekTo(this.getCurrentTime()+X,J,L,x)}; g.a.md6=function(){this.IB.EM("SEEK_COMPLETE")}; g.a.J_q=function(){this.IB.GH("onAbnormalityDetected")}; g.a.ahq=function(X){this.IB.GH("onSnackbarMessage",X)}; g.a.LZH=function(X){var J=this.nm(),L=J.getVideoData();if(this.appState===1||this.appState===2)L.startSeconds=X;this.appState===2?g.N(J.getPlayerState(),512)||hG(this):this.IB.EM("SEEK_TO",X)}; g.a.oHl=function(){this.IB.publish("airplayactivechange");this.m9.Y("html5_external_airplay_events")&&this.IB.Xv("onAirPlayActiveChange",this.IB.Od())}; g.a.nHB=function(){this.IB.publish("airplayavailabilitychange");this.m9.Y("html5_external_airplay_events")&&this.IB.Xv("onAirPlayAvailabilityChange",this.IB.Ad())}; g.a.showAirplayPicker=function(){this.nm().NI()}; g.a.SHi=function(){this.IB.publish("beginseeking")}; g.a.MeC=function(){this.IB.publish("endseeking")}; g.a.getStoryboardFormat=function(X){return(X=this.d0({playerType:X}))?bO(this,X).getStoryboardFormat():this.v9.L.getStoryboardFormat()}; g.a.m4=function(X){return(X=this.d0({playerType:X}))?bO(this,X).getVideoData().m4():this.v9.L.m4()}; g.a.cO=function(X){X=(X||this.nm()).getVideoData();if(TE(this))X=X===this.MF.playback.getVideoData();else a:{var J=this.S7;if(X===J.L.getVideoData()&&J.K.length)X=!0;else{J=g.d(J.K);for(var L=J.next();!L.done;L=J.next())if(X.JP===L.value.JP){X=!0;break a}X=!1}}return X}; g.a.Vi=function(X,J,L,x,Q,K,q,D){this.logger.debug(function(){return"Adding video to timeline id="+X.video_id+"\n lengthMs="+x+" enterTimeMs="+Q}); var C="",M=TE(this);this.nm().Ni("appattl",{sstm:this.MF?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:M});M?(L=g7v(this.MF,X,J,L,x,Q,K,q,D),C=(L==null?void 0:L.JP)||"",this.Y("html5_ssdai_new_decoration_logic")&&this.Kp().qf(D||"",J,(L==null?void 0:L.clientPlaybackNonce)||"")):C=Gqm(this.S7,X,L,x,Q,K);this.logger.debug(function(){return"Video added to timeline id="+X.video_id+" timelinePlaybackId="+C}); return C}; g.a.X2=function(X,J,L,x,Q,K,q,D){if(TE(this)){var C=g7v(this.MF,X,J,L,x,Q,K,q,D);this.logger.debug(function(){return"Remaining video added to timeline id="+X.video_id+" timelinePlaybackId="+C})}return""}; g.a.WP=function(X){this.Y("html5_ssdai_new_decoration_logic")&&this.Kp().qf(X,"","");var J;(J=this.MF)==null||J.WP(X)}; g.a.aZ=function(X,J){X=X===void 0?-1:X;J=J===void 0?Infinity:J;TE(this)||UNY(this.S7,X,J)}; g.a.WV=function(X,J,L){if(TE(this)){var x=this.MF,Q=x.L.T.get(X);Q?(L===void 0&&(L=Q.K3),yce(x,Q,J,L)):x.ZI("Invalid_timelinePlaybackId_"+X+"_specified")}else{x=this.S7;Q=null;for(var K=g.d(x.K),q=K.next();!q.done;q=K.next())if(q=q.value,q.JP===X){Q=q;break}Q?(L===void 0&&(L=Q.K3),NmR(x,Q,J,L)):MX(x,"InvalidTimelinePlaybackId timelinePlaybackId="+X)}}; g.a.enqueueVideoByPlayerVars=function(X,J,L,x){L=L===void 0?Infinity:L;x=x===void 0?"":x;this.cO();X=new g.KI(this.m9,X);x&&(X.JP=x);jPz(this,X,J,L)}; g.a.queueNextVideo=function(X,J,L,x,Q){L=L===void 0?NaN:L;X=this.preloadVideoByPlayerVars(X,J===void 0?1:J,L,x===void 0?"":x,Q===void 0?"":Q);J=this.nm();X&&(this.Y("html5_check_queue_on_data_loaded")?this.G().supportsGaplessShorts()&&J.getVideoData().W&&(L=this.LF,x=this.KJ.j,L.T!==X&&(L.K=J,L.T=X,L.N=1,L.L=X.getVideoData(),L.j=x,L.L.isLoaded()?L.B():L.L.subscribe("dataloaded",L.B,L))):(L=EKz(J,X,this.KJ.j),L!=null?(J.Ni("sgap",L),J.getVideoData().W&&J.Hb(!1)):(X=X.getVideoData(),J=this.LF,J.L!== X&&(J.L=X,J.N=1,X.isLoaded()?J.W():J.L.subscribe("dataloaded",J.W,J)))))}; g.a.Yu=function(X,J,L,x){var Q=this;L=L===void 0?0:L;x=x===void 0?0:x;bO(this,this.nm()).Ps();f_v(this.KJ,X,J,L,x).then(function(){Q.IB.Xv("onQueuedVideoLoaded")},function(){})}; g.a.NP=function(){return this.KJ.NP()}; g.a.a5=function(X){var J=this.KJ.L;return J?J.By(X):!1}; g.a.clearQueue=function(X,J){X=X===void 0?!1:X;J=J===void 0?!1:J;this.logger.debug("Clearing queue");this.KJ.clearQueue(X,J)}; g.a.loadVideoByPlayerVars=function(X,J,L,x,Q,K){J=J===void 0?1:J;var q=this.Kp();if(J===2&&this.mY().enableServerStitchedDai&&q&&!q.Sl())return q.Ni("lvonss",{vid:(X==null?void 0:X.videoId)||"",ptype:J}),!1;var D=!1;q=new g.KI(this.m9,X);q.yS=K;g.yH(this.m9)&&!q.lZ&&tx(this.gt);var C;K=this.gt;var M=(C=q.D)!=null?C:"";K.timerName=M;this.gt.R2("pl_i");this.Y("web_player_early_cpn")&&q.clientPlaybackNonce&&this.gt.infoGel({clientPlaybackNonce:q.clientPlaybackNonce});R5P(q).supportsVp9Encoding===!1&& this.nm().Ni("noVp9enc",{});if(this.G().supportsGaplessShorts()){C=l_W(this.KJ,q,J);if(C==null){oy(this,-1);var y;!this.Y("html5_shorts_gapless_reset_ad_module")||((y=this.KJ.L)==null?0:y.getVideoData().isAd())||GE(this);X=this.KJ;X.app.G().Y("html5_gapless_new_slr")?vA(X.app,"gaplessshortslooprange"):X.app.setLoopRange(null);X.app.G().Y("html5_gapless_remove_videoplaytime100_cuerange")&&X.app.d_("videoplaytime100");X.app.getVideoData().RE=!0;var n;(n=X.L)==null||n.Db();var V;(V=X.L)==null||V.yB(); L={B9:"gapless_to_next_video",seekSource:60,hp:X.j.L};x=g.J_(X.app.G().experiments,"html5_gapless_seek_offset");Q=FyY(X);if(X.j.L){var H;q=((H=X.N)==null?void 0:f$(H))||{};H=q.xO;q=q.Wn;q!=null&&H!=null&&(Q=q-H)}var O;(O=X.app.nm())==null||O.seekTo(Q+x,L);if(!X.app.getPlayerStateObject(J).isPlaying()){var u;(u=X.app.nm())==null||u.playVideo(!0)}var S;(S=X.app.nm())==null||S.Fe();X.W();return!0}O=this.Y("html5_shorts_gapless_preload_fallback");u=this.KJ.L;O&&u&&!u.E6()&&(S=u.getVideoData(),S=this.m9.Y("html5_autonav_autoplay_in_preload_key")? f1(this,J,S):eL(this,J,S.videoId,S.JP),this.v9.j.set(S,u,3600));this.KJ.clearQueue(O);this.nm().Ni("sgap",{f:C})}if(Q){for(;q.QS.length&&q.QS[0].isExpired();)q.QS.shift();O=q.QS.length-1;D=O>0&&Q.K(q.QS[O])&&Q.K(q.QS[O-1]);q.QS.push(Q)}L||(X&&H1z(X)?(Ic(this.m9)&&!this.fJ&&(X.fetch=0),EK(this,X)):this.playlist&&EK(this,null),X&&(this.fJ=Xm(!1,X.external_list)));this.IB.publish("loadvideo");O=this.Tp(q,J,x);D&&this.AJ("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+q.QS.join()).replace(/[;:,]/g, "_"));return O}; g.a.preloadVideoByPlayerVars=function(X,J,L,x,Q){J=J===void 0?1:J;L=L===void 0?NaN:L;x=x===void 0?"":x;Q=Q===void 0?"":Q;var K="";if(this.m9.Y("html5_autonav_autoplay_in_preload_key"))K=GJS(this,J,X,Q);else{var q=QV(X);K=eL(this,J,q,Q)}if(this.v9.j.get(K))return this.logger.debug(function(){return"already preloaded "+K}),null; X=new g.KI(this.m9,X);Q&&(X.JP=Q);return THO(this,X,J,L,x)}; g.a.setMinimized=function(X){this.visibility.setMinimized(X);(X=syI(this.Hv))&&(this.isMinimized()?X.load():X.unload());this.IB.publish("minimized")}; g.a.setInline=function(X){this.visibility.setInline(X)}; g.a.setInlinePreview=function(X){this.visibility.setInline(X)}; g.a.Dd=function(X){ekR(this,X)||this.visibility.Dd(X)}; g.a.setSqueezeback=function(X){this.visibility.setSqueezeback(X)}; g.a.N5=function(){var X,J=(X=this.mediaElement)==null?void 0:X.kH();J&&(this.m9.mP&&WC(Y5(function(){return document.exitFullscreen()}),function(){}),WC(Y5(function(){return VV(J)}),function(){}))}; g.a.t79=function(){this.mediaElement.kH();this.mediaElement.kH().webkitPresentationMode==="picture-in-picture"?this.Dd(!0):this.Dd(!1)}; g.a.togglePictureInPicture=function(){this.nm().togglePictureInPicture()}; g.a.Tp=function(X,J,L){J=J===void 0?1:J;this.logger.debug(function(){return"start load video, id "+X.videoId+", type "+J}); PQ("_start",this.gt.timerName)||g.ND(HQ)(void 0,this.gt.timerName);var x=!1,Q=hke(this,J,X,!1);Q?(x=!0,X.dispose()):(Q=d8(this,J,X,!0,L),(this.Y("html5_onesie")||this.Y("html5_load_before_stop"))&&Q.uC()&&Q.IG(),this.l$.stop(),J===1&&J!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,J),this.jd(Q));Q===this.Kp()&&(this.m9.gp=X.oauthToken);if(!Q.uC())return!1;if(Q===this.Kp())return this.Wk(1),L=hG(this),x&&this.Y("html5_player_preload_ad_fix")&&Q.getPlayerType()===1&& Q.Lz()&&this.vK("dataloaded",Q,Q.getVideoData()),L;Q.SD();return!0}; g.a.cueVideoByPlayerVars=function(X,J){var L=this;J=J===void 0?1:J;var x=this.Kp();if(this.mY().enableServerStitchedDai&&x&&!x.Sl()&&X&&Object.keys(X).length>0)x.Ni("qvonss",{vid:(X==null?void 0:X.videoId)||"",ptype:J});else if(X&&H1z(X))if(this.CG=!0,EK(this,X),(X=g.dw(this.playlist))&&X.bl())lO(this,X,J);else this.playlist.onReady(function(){Y2(L)}); else{J||(J=this.getPresentingPlayerType());J===1&&this.GS();x=new g.KI(this.m9,X);var Q=g.lb(this.m9)&&!this.m9.aB&&J===1&&!x.isAd()&&!x.qQ;this.IB.publish("cuevideo");Q?(this.nm().getVideoData().loading=!0,o2P(x,X?X:{}).then(function(K){lO(L,K,J)}),x.dispose()):lO(this,x,J)}}; g.a.G7=function(X,J,L,x,Q,K,q){if(!X&&!L)throw Error("Playback source is invalid");if(Ba(this.m9)||g.M2(this.m9))return J=J||{},J.lact=a4(),J.vis=this.IB.getVisibilityState(),this.IB.GH("onPlayVideo",{videoId:X,watchEndpoint:K,sessionData:J,listId:L}),!1;n2A(this.gt);this.gt.reset();X={video_id:X};x&&(X.autoplay="1");x&&(X.autonav="1");K&&(X.player_params=K.playerParams);q&&(X.oauth_token=q);L?(X.list=L,this.loadPlaylist(X)):this.loadVideoByPlayerVars(X,1);return!0}; g.a.cuePlaylist=function(X,J,L,x){this.CG=!0;Fev(this,X,J,L,x)}; g.a.loadPlaylist=function(X,J,L,x){this.CG=!1;Fev(this,X,J,L,x)}; g.a.QF=function(){return this.IB.isMutedByMutedAutoplay()?!1:this.v9.kW?!0:!(!this.playlist||!this.playlist.VQ())}; g.a.qG=XY(5); g.a.nextVideo=function(X,J){var L=g.yh(this.Kp().getVideoData());g.Rq(this.IB)&&L?this.G7(L.videoId,J?L.Ks:L.sessionData,L.playlistId,J,void 0,L.Cd||void 0):this.fJ?this.IB.Xv("onPlaylistNext"):this.getPresentingPlayerType()===3?Ti(this.Hv).nextVideo():!this.playlist||Ic(this.m9)&&!this.IB.isFullscreen()||(this.playlist.VQ(X)&&wAS(this.playlist,O1o(this.playlist)),this.playlist.loaded?(X=J&&this.m9.Y("html5_player_autonav_logging"),J&&this.IB.publish("playlistautonextvideo"),this.Tp(g.dw(this.playlist,void 0, J,X),1)):this.CG=!1)}; g.a.previousVideo=function(X){this.fJ?this.IB.Xv("onPlaylistPrevious"):this.getPresentingPlayerType()===3?Ti(this.Hv).dO():!this.playlist||Ic(this.m9)&&!this.IB.isFullscreen()||(this.playlist.XD(X)&&wAS(this.playlist,aK8(this.playlist)),this.playlist.loaded?this.Tp(g.dw(this.playlist),1):this.CG=!1)}; g.a.playVideoAt=function(X){this.fJ?this.IB.Xv("onPlaylistIndex",X):this.playlist&&(this.playlist.loaded?this.Tp(g.dw(this.playlist,X),1):this.CG=!1,wAS(this.playlist,X))}; g.a.getPlaylist=function(){return this.playlist}; g.a.IF=XY(19);g.a.d_=function(X){this.V1=g.SP(this.V1,function(K){return K.id!==X}); for(var J=this.Kp(),L=J.Ri(),x=0;x0&&(C=Math.floor(M/1E3))}C=J?J.zR:C;var y={AD_BLOCK:this.L++,AD_BREAK_LENGTH:C,AUTONAV_STATE:sK(this.player.G()),CA_TYPE:"image",CPN:D.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.TD()*1E3,LACT:a4(),LIVE_INDEX:J?this.N++:1,LIVE_TARGETING_CONTEXT:J&&J.context?J.context:"",MIDROLL_POS:K? Math.round(K.start/1E3):0,MIDROLL_POS_MS:K?Math.round(K.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.t0().Lv().height,P_W:this.player.t0().Lv().width,YT_REMOTE:Q?Q.join(","):""},n=qV(KU);Object.keys(n).forEach(function(H){n[H]!=null&&(y[H.toUpperCase()]=n[H].toString())}); L!==""&&(y.BISCOTTI_ID=L);L={};QQ(X)&&(L.sts="20263",(J=this.player.G().forcedExperiments)&&(L.forced_experiments=J));var V=LU(g.cN(X,y),L);return V.split("?").length!==2?hg(Error("Invalid AdBreakInfo URL")):g.wT(this.player.G(),D==null?void 0:D.oauthToken).then(function(H){if(H&&iZ()){var O=NM();U8(O,H)}H=x.player.jj(O);O=tsm(x,V,y,D.isMdxPlayback,q);return g.zH(H,O,"/youtubei/v1/player/ad_break").then(function(u){return u})})}; NX.prototype.reset=function(){this.N=this.L=1};g.w(dqR,NX); dqR.prototype.K=function(X,J,L){J=J===void 0?{}:J;var x=J.fG;var Q=J.Z2;var K=J.cueProcessedMs;L=L===void 0?"":L;J=this.L;this.L++;var q=this.player.G().Y("h5_disable_macro_substitution_in_get_ad_break")?X:uGm(this,X,{fG:x,Z2:Q,cueProcessedMs:K},L,J);if(q.split("?").length!==2)return Math.random()<.1&&g.PM(Error("Invalid AdBreakInfo URL")),hg(Error("Invalid AdBreakInfo URL"));var D=this.player.getVideoData(1).isMdxPlayback,C=L;L=y4e.exec(q);L=L!=null&&L.length>=2?L[1]:"";X=nTA.test(q);var M=Vsz.exec(q); M=M!=null&&M.length>=2?M[1]:"";var y=H6R.exec(q);y=y!=null&&y.length>=2&&!Number.isNaN(Number(y[1]))?Number(y[1]):1;var n=O6v.exec(q);n=n!=null&&n.length>=2?n[1]:"0";var V=JD(this.player.G().VZ),H=g.sL(this.player.getVideoData(1).vl,!0);Iwv(this,H,q,C===""?"":C,this.player.G(),this.player.getVideoData(1));C={splay:!1,lactMilliseconds:String(a4()),playerHeightPixels:Math.trunc(this.player.t0().Lv().height),playerWidthPixels:Math.trunc(this.player.t0().Lv().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20263,autonavState:sK(this.player.G())};if(D){D={};var O=this.player.G().x7;$q8(D,O?O.join(","):"")&&(C.mdxContext=D)}if(D=awZ.includes(V)?void 0:g.zo("PREF")){O=D.split(RegExp("[:&]"));for(var u=0,S=O.length;u1&&Y[1].toUpperCase()==="TRUE"){H.user.lockedSafetyMode=!0;break}}C.autoCaptionsDefaultOn=Msz(D)}q=w3S.exec(q);(q=q!=null&&q.length>=2?q[1]:"")&&M&&(H.user.credentialTransferTokens= [{token:q,scope:"VIDEO"}]);q={contentPlaybackContext:C};C=this.player.getVideoData(1).getGetAdBreakContext();D=this.player.getVideoData(1).clientPlaybackNonce;O=K!==void 0?Math.round(K).toString():void 0;u=(x==null?0:x.context)?x.context:void 0;S=0;K&&Q&&!x&&(Q=Q.end-Q.start,Q>0&&(S=Math.floor(Q/1E3)));x=(x=Math.trunc((x?x.zR:S)*1E3))?String(x):void 0;Q=this.player.TD()*1E3;Q=Number.isNaN(Q)?0:Math.trunc(Q);J={adBlock:J,params:L,breakIndex:y,breakPositionMs:n,clientPlaybackNonce:D,topLevelDomain:V, isProxyAdTagRequest:X,context:H,overridePlaybackContext:q,cueProcessedMs:O,videoId:M?M:void 0,liveTargetingParams:u,breakLengthMs:x,driftFromHeadMs:Q?String(Q):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:C?C:void 0};return oTP(this,J)};var EIu={fp0:"replaceUrlMacros",pKI:"onAboutThisAdPopupClosed",Ie6:"executeCommand"};b6W.prototype.dU=function(){return"adPingingEndpoint"}; b6W.prototype.MG=function(X,J,L){gpA(this.ZY.get(),X,J,L)};S7P.prototype.dU=function(){return"changeEngagementPanelVisibilityAction"}; S7P.prototype.MG=function(X){this.Z.GH("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:X})};PHP.prototype.dU=function(){return"loggingUrls"}; PHP.prototype.MG=function(X,J,L){X=g.d(X);for(var x=X.next();!x.done;x=X.next())x=x.value,gpA(this.ZY.get(),x.baseUrl,J,L,x.attributionSrcMode)};g.w(ETP,g.G);g.w(mg,g.G);g.a=mg.prototype;g.a.addListener=function(X){this.listeners.push(X)}; g.a.removeListener=function(X){this.listeners=this.listeners.filter(function(J){return J!==X})}; g.a.Y7=function(X,J,L,x,Q,K,q,D){if(X==="")qH("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(X!==this.L||L){this.L=X;this.wI.get().Y7(X,J,L,x,Q,K,q,D);this.dI.get().Y7(X,J,L,x,Q,K,q,D);var C;(C=this.Jj)==null||C.get().Y7(X,J,L,x,Q,K,q,D);this.K.Y7(X,J,L,x,Q,K,q,D);C=g.d(this.listeners);for(var M=C.next();!M.done;M=C.next())M.value.Y7(X,J,L,x,Q,K,q,D)}else qH("Duplicate content video loaded signal")}; g.a.Tt0=function(){this.L&&this.VS(this.L)}; g.a.VS=function(X){this.L=void 0;for(var J=g.d(this.listeners),L=J.next();!L.done;L=J.next())L.value.VS(X)};k2.prototype.GJ=function(X,J,L,x,Q){Y7S(this);this.j=!J&&L===0;var K=this.Z.getVideoData(1),q=this.Z.getVideoData(2);K&&(this.contentCpn=K.clientPlaybackNonce,this.videoId=K.videoId,this.L=K.B);q&&(this.adCpn=q.clientPlaybackNonce,this.adVideoId=q.videoId,this.adFormat=q.adFormat);this.T=X;x<=0?(Y7S(this),this.j=!J&&L===0):(this.actionType=this.j?J?"unknown_type":"video_to_ad":J?"ad_to_video":"ad_to_ad",this.videoStreamType=Q?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.N=!0,PQ("_start",this.actionType)&&Wqv(this)))}; k2.prototype.reset=function(){return new k2(this.Z)};g.w(ZK,g.G);ZK.prototype.addCueRange=function(X,J,L,x,Q,K,q,D){K=K===void 0?3:K;q=q===void 0?1:q;this.L.has(X)?qH("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:X}):(X=new p3m(X,J,L,x,K,D),this.L.set(X.id,{Z2:X,listener:Q,g8:q}),this.Z.tj([X],q))}; ZK.prototype.removeCueRange=function(X){var J=this.L.get(X);J?(this.Z.nA([J.Z2],J.g8),this.L.delete(J.Z2.id)):qH("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:X})}; ZK.prototype.onCueRangeEnter=function(X){if(this.L.has(X.id))this.L.get(X.id).listener.onCueRangeEnter(X.id)}; ZK.prototype.onCueRangeExit=function(X){if(this.L.has(X.id))this.L.get(X.id).listener.onCueRangeExit(X.id)}; g.w(p3m,g.Rw);AG.prototype.addPlayerResponseForAssociation=function(X){this.Z.addPlayerResponseForAssociation(X)};XI.prototype.Q5=function(X){this.Z.Q5(X)}; XI.prototype.sI=function(X){var J=g.fR.apply(1,arguments);X==="onAdStart"||X==="onAdEnd"?this.Z.EM.apply(this.Z,[X].concat(g.nR(J))):this.Z.GH.apply(this.Z,[X].concat(g.nR(J)))};J6.prototype.TK=function(X){return X&&Lm(this)};var s$e=null;g.w(BcO,g.Ly);BcO.prototype.mW=function(X){return this.L.hasOwnProperty(X)?this.L[X].mW():{}}; g.JS("ytads.bulleit.getVideoMetadata",function(X){return xA().mW(X)}); g.JS("ytads.bulleit.triggerExternalActivityEvent",function(X,J,L){var x=xA();L=RJz(L);L!==null&&x.publish(L,{queryId:X,viewabilityString:J})});g.a=i1.prototype;g.a.OV=function(X,J){if(!this.L.has(X))return{};if(J==="seek"){J=!1;J=J===void 0?!1:J;var L=wR(N_).Fg(X,{});L?fq(L):J&&(X=wR(N_).Y8(null,zF(),!1,X),X.EQ=3,oc8([X]));return{}}J=Uqo(J);if(J===null)return{};var x=this.Z.S5();if(!x)return{};var Q=this.Z.getPresentingPlayerType(!0);if((L=this.Z.getVideoData(Q))==null||!L.isAd())return{};L={opt_adElement:x,opt_fullscreen:this.wI.get().isFullscreen()};return o_Y(J,X,L)}; g.a.zY=function(X,J,L,x,Q){this.L.has(X)&&(x<=0||Q<=0||wR(N_).zY(X,J,L,x,Q))}; g.a.qp=function(X){var J;(J=this.L.get(X.queryId))==null||J.qp()}; g.a.ju=function(X){var J;(J=this.L.get(X.queryId))==null||J.ju()}; g.a.YJ=function(X){var J;(J=this.L.get(X.queryId))==null||J.YJ()}; g.a.EG=function(X){var J;(J=this.L.get(X.queryId))==null||J.EG()}; g.a.Bz=function(X){var J;(J=this.L.get(X.queryId))==null||J.Bz()};iom.prototype.send=function(X,J,L,x){try{Q7e(this,X,J,L,x===void 0?!1:x)}catch(Q){}};g.w(Kae,iom);qhZ.prototype.send=function(X,J,L,x){var Q=!1;try{if(x==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||x==="ATTRIBUTION_SRC_MODE_XHR_OPTION")Q=!0,X=IBS(X);x=Q;var K=g.gA(X);if(K[1]==="https")var q=X;else K[1]="https",q=Ii("https",K[2],K[3],K[4],K[5],K[6],K[7]);var D=qG8(q);K=[];var C=UpW(q)&&this.h0.get().Z.G().experiments.Mi("add_auth_headers_to_remarketing_google_dot_com_ping");if(QQ(q)||C)K.push({headerType:"USER_AUTH"}),K.push({headerType:"PLUS_PAGE_ID"}),K.push({headerType:"VISITOR_ID"}),K.push({headerType:"EOM_VISITOR_ID"}), K.push({headerType:"AUTH_USER"}),K.push({headerType:"DATASYNC_ID"});this.L.send({baseUrl:q,scrubReferrer:D,headers:K},J,L,x)}catch(M){}};go.prototype.h2=function(){return this.Z.h2(1)};g.w(Dh,g.G);g.a=Dh.prototype;g.a.PK=function(){return this.Z.getVideoData(1).clientPlaybackNonce}; g.a.addListener=function(X){this.listeners.push(X)}; g.a.removeListener=function(X){this.listeners=this.listeners.filter(function(J){return J!==X})}; g.a.Y7=function(){this.NN.clear();this.Eh=null;this.SZ.get().clear()}; g.a.VS=function(){}; g.a.FYB=function(X,J,L,x,Q){J.videoId==="nPpU29QrbiU"&&this.Z.Ni("ads_ssm_vdc_s",{pt:L,dvt:X});ez(this.h0.get())&&X!=="dataloaded"||VmR(this,J,L);if(Lm(this.h0.get())&&X==="newdata"&&Q!==void 0){X=this.PK();var K=J.clientPlaybackNonce,q={};Ix(this,"rte",(q.ec=K,q.xc=x==null?void 0:x.clientPlaybackNonce,q.tr=Q,q.pt=L,q.ia=K!==X,q.ctp=qh(K),q));J=J.clientPlaybackNonce;x=x==null?void 0:x.clientPlaybackNonce;Q=HoZ(Q);if(Q!==1)if(x!==void 0)for(L=g.d(this.listeners),X=L.next();!X.done;X=L.next())X.value.Of(x, J,Q);else qH("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:J,transitionReason:String(Q)});Q=g.d(this.listeners);for(x=Q.next();!x.done;x=Q.next())x.value.MH(J)}}; g.a.CHE=function(X,J){X!==void 0&&(this.Eh=X,J===void 0?qH("Expected ad video start time on SS video changed"):this.NN.set(X,J));var L=this.Z.getPresentingPlayerType(!0),x=this.Z.getVideoData(L),Q;X===void 0?Q=null:Q=this.SZ.get().L.get(X)||null;this.Z.getVideoData(1).Ni("ads_ssvc",{pt:L,cpn:x==null?void 0:x.clientPlaybackNonce,crtt:this.Z.getCurrentTime(1,!1),atlh:this.Z.isAtLiveHead(),adstt:J,pid:X,slid:Q==null?void 0:Q.layoutId});x?VmR(this,x,L):qH("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.Z.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:X})}; g.a.M_=function(X,J){var L=X.author,x=X.clientPlaybackNonce,Q=X.isListed,K=X.JP,q=X.title,D=X.Az,C=X.Jb,M=X.isMdxPlayback,y=X.SQ,n=X.mdxEnvironment,V=X.isAutonav,H=X.Hk,O=X.lZ,u=X.Bu,S=X.videoId||"",Y=X.profilePicture||"",h=X.OY||"",W=X.Ev()||!1,T=X.OA()||!1;X=X.oJ||void 0;K=this.SZ.get().L.get(K)||{layoutId:null,slotId:null};var l=this.Z.getVideoData(1),Jo=l.Zw();l=l.getPlayerResponse();J=1E3*this.Z.getDuration(J);var U=1E3*this.Z.getDuration(1),QP,Iz,qS=(l==null?void 0:(QP=l.playerConfig)==null? void 0:(Iz=QP.daiConfig)==null?void 0:Iz.enableDai)||!1,$e,k;QP=(l==null?void 0:($e=l.playerConfig)==null?void 0:(k=$e.daiConfig)==null?void 0:k.enablePreroll)||!1;return Object.assign({},K,{videoId:S,author:L,clientPlaybackNonce:x,JS:J,sS:U,daiEnabled:qS,UE:QP,isListed:Q,Zw:Jo,profilePicture:Y,title:q,OY:h,Az:D,Jb:C,oJ:X,isMdxPlayback:M,SQ:y,mdxEnvironment:n,isAutonav:V,Hk:H,lZ:O,Bu:u,Ev:W,OA:T})}; g.a.uB=function(){this.listeners.length=0;this.gi=null;g.G.prototype.uB.call(this)};g.w($A,g.G);g.a=$A.prototype;g.a.Y7=function(){var X=this;Lm(this.h0.get())||(this.L=pj(function(){X.Z.E6()||X.Z.Rn("ad",1)}))}; g.a.VS=function(){}; g.a.addListener=function(X){this.listeners.push(X)}; g.a.removeListener=function(X){this.listeners=this.listeners.filter(function(J){return J!==X})}; g.a.rW=function(){}; g.a.playVideo=function(){this.Z.playVideo()}; g.a.pauseVideo=function(){this.Z.pauseVideo()}; g.a.resumeVideo=function(X){this.Og(X)&&this.Z.playVideo()}; g.a.Og=function(X){return this.Z.getPlayerState(X)===2}; g.a.getCurrentTimeSec=function(X,J,L){var x=this.dI.get().Eh;if(X===2&&!J&&x!==null)return yN(this,x);vf(this.h0.get(),"html5_ssap_use_cpn_to_get_time")||(L=void 0);return L!==void 0?this.Z.getCurrentTime(X,J,L):this.Z.getCurrentTime(X,J)}; g.a.getVolume=function(){return this.Z.getVolume()}; g.a.isMuted=function(){return this.Z.isMuted()}; g.a.getPresentingPlayerType=function(){return this.Z.getPresentingPlayerType(!0)}; g.a.getPlayerState=function(X){return this.Z.getPlayerState(X)}; g.a.getGetAdBreakContext=function(){return this.Z.getGetAdBreakContext()}; g.a.isFullscreen=function(){return this.Z.isFullscreen()}; g.a.isAtLiveHead=function(){return this.Z.isAtLiveHead()}; g.a.x_=function(X){this.Z.x_(X)}; g.a.V79=function(){var X=this.Z.getPresentingPlayerType(!0),J=this.getCurrentTimeSec(X,!1);if(X===2){X=g.d(this.listeners);for(var L=X.next();!L.done;L=X.next())L.value.qP(J)}else if(X===1)for(X=g.d(this.sU),L=X.next();!L.done;L=X.next())L.value.rW(J)}; g.a.A_I=function(X){for(var J=g.d(this.listeners),L=J.next();!L.done;L=J.next())L.value.I2(X,this.getPresentingPlayerType())}; g.a.onFullscreenToggled=function(X){for(var J=g.d(this.listeners),L=J.next();!L.done;L=J.next())L.value.onFullscreenToggled(X)}; g.a.onVolumeChange=function(){for(var X=g.d(this.listeners),J=X.next();!J.done;J=X.next())J.value.onVolumeChange()}; g.a.v5=function(){for(var X=this.Z.isMinimized(),J=g.d(this.listeners),L=J.next();!L.done;L=J.next())L.value.v5(X)}; g.a.dZ=function(X){for(var J=g.d(this.listeners),L=J.next();!L.done;L=J.next())L.value.dZ(X)}; g.a.A_=function(){for(var X=this.Z.t0().Lv(),J=g.d(this.listeners),L=J.next();!L.done;L=J.next())L.value.cS(X)}; g.a.qs=function(X){for(var J=g.d(this.listeners),L=J.next();!L.done;L=J.next())L.value.qs(X)}; g.a.HJ=function(){for(var X=g.d(this.listeners),J=X.next();!J.done;J=X.next())J.value.HJ()};g.w(tmm,g.G);g.w(Ho,g.G);Ho.prototype.uB=function(){this.C1.E6()||this.C1.get().removeListener(this);g.G.prototype.uB.call(this)};O5.prototype.fetch=function(X){var J=X.P1;return this.L.fetch(X.DB,{fG:X.fG===void 0?void 0:X.fG,Z2:J,cueProcessedMs:X.cueProcessedMs===void 0?0:X.cueProcessedMs}).then(function(L){return d$Z(L,J)})};g.w(as,g.G);g.a=as.prototype;g.a.addListener=function(X){this.listeners.push(X)}; g.a.removeListener=function(X){this.listeners=this.listeners.filter(function(J){return J!==X})}; g.a.Bs=function(X){u8m(this,X,1)}; g.a.onAdUxClicked=function(X,J){wo(this,function(L){L.iZ(X,J)})}; g.a.Co=function(X){wo(this,function(J){J.I3(X)})}; g.a.XV=function(X){wo(this,function(J){J.dM(X)})}; g.a.EqE=function(X){wo(this,function(J){J.Zf(X)})};t6.prototype.reduce=function(X){switch(X.event){case "unknown":return}var J=X.identifier;var L=this.L[J];L?J=L:(L={ME:null,RA:-Infinity},J=this.L[J]=L);L=X.startSecs+X.L/1E3;if(!(L=this.L.startSecs&&L.startSecs<=this.L.startSecs+this.L.zR)){var x=void 0;if(FL(this.h0.get())&&L.identifier!==((x=this.L)==null?void 0:x.identifier)){var Q=x=void 0,K=void 0,q=void 0;t5(this.ZY.get(),"ocud","ccpi."+L.identifier+";ccpe."+L.event+";ccps."+L.startSecs+";\n ccpd."+L.zR+";pcpi."+((x=this.L)==null?void 0:x.identifier)+ ";pcpe."+((Q=this.L)==null?void 0:Q.event)+";\n pcps."+((K=this.L)==null?void 0:K.startSecs)+";pcpd."+((q=this.L)==null?void 0:q.zR)+";")}x=void 0;L.identifier!==((x=this.L)==null?void 0:x.identifier)&&qH("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.L=L,Sh8(this,L)}}; g.a.uB=function(){this.K!=null&&(this.K.unsubscribe("cuepointupdated",this.ya,this),this.K=null);this.listeners.length=0;this.Xe.length=0;g.G.prototype.uB.call(this)};g.a=b1.prototype;g.a.Vi=function(X,J,L,x,Q,K,q){return this.Z.Vi(X,J,L,x,Q,K,q)}; g.a.aZ=function(X,J){this.Z.aZ(X,J)}; g.a.WV=function(X,J,L){this.Z.WV(X,J,L)}; g.a.WP=function(X){this.Z.WP(X)}; g.a.X2=function(X,J,L,x,Q,K,q){return this.Z.X2(X,J,L,x,Q,K,q)}; g.a.p$=function(X){return this.Z.p$(X)}; g.a.finishSegmentByCpn=function(X,J,L){L=Epm(L);this.Z.finishSegmentByCpn(X,J,L)};g.w(Sn,g.G);g.w(hEZ,g.G);g.w(zEm,g.G);g.w(WaA,g.G);g.w(pYW,g.G);g.w(r0e,g.G);g.w(j7P,g.G);j7P.prototype.N=function(){return this.K};g.w(Tpm,G2); Tpm.prototype.N=function(X){var J=X.content;if(J.componentType==="shopping-companion")switch(X.actionType){case 1:case 2:X=this.L.getVideoData(1);this.L.GH("updateKevlarOrC3Companion",{contentVideoId:X&&X.videoId,shoppingCompanionCarouselRenderer:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.L,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:this.L.GH("updateKevlarOrC3Companion",{})}else if(J.componentType==="action-companion")switch(X.actionType){case 1:case 2:X=this.L.getVideoData(1); this.L.GH("updateKevlarOrC3Companion",{contentVideoId:X&&X.videoId,actionCompanionAdRenderer:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.L,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:J.renderer&&(J=this.L.getVideoData(1),this.L.GH("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId})),this.L.GH("updateKevlarOrC3Companion",{})}else if(J.componentType==="image-companion")switch(X.actionType){case 1:case 2:X=this.L.getVideoData(1);this.L.GH("updateKevlarOrC3Companion", {contentVideoId:X&&X.videoId,imageCompanionAdRenderer:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.L,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:J=this.L.getVideoData(1),this.L.GH("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId}),this.L.GH("updateKevlarOrC3Companion",{})}else if(J.componentType==="top-banner-image-text-icon-buttoned")switch(X.actionType){case 1:case 2:X=this.L.getVideoData(1);this.L.GH("updateKevlarOrC3Companion", {contentVideoId:X&&X.videoId,topBannerImageTextIconButtonedLayoutViewModel:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.L,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:J.renderer&&(J=this.L.getVideoData(1),this.L.GH("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId})),this.L.GH("updateKevlarOrC3Companion",{})}else if(J.componentType==="banner-image")switch(X.actionType){case 1:case 2:X=this.L.getVideoData(1);this.L.GH("updateKevlarOrC3Companion", {contentVideoId:X&&X.videoId,bannerImageLayoutViewModel:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.L,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:J=this.L.getVideoData(1),this.L.GH("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId}),this.L.GH("updateKevlarOrC3Companion",{})}else if(J.componentType==="ads-engagement-panel")switch(J=J.renderer,X.actionType){case 1:case 2:this.L.GH("updateEngagementPanelAction",J.addAction);this.L.GH("changeEngagementPanelVisibility", J.expandAction);break;case 3:this.L.GH("changeEngagementPanelVisibility",J.hideAction),this.L.GH("updateEngagementPanelAction",J.removeAction)}else if(J.componentType==="ads-engagement-panel-layout"){var L=J.renderer;switch(X.actionType){case 1:case 2:this.L.GH("updateEngagementPanelAction",{action:hR(L.addAction),layoutId:J.layoutId,onLayoutVisibleCallback:J.L,interactionLoggingClientData:J.interactionLoggingClientData});this.L.GH("changeEngagementPanelVisibility",hR(L.expandAction));break;case 3:this.L.GH("changeEngagementPanelVisibility", hR(L.hideAction)),this.L.GH("updateEngagementPanelAction",{action:hR(L.removeAction)})}}};g.w(GYO,Ny);g.a=GYO.prototype;g.a.init=function(X,J,L){Ny.prototype.init.call(this,X,J,L);g.lF(this.N,"stroke-dasharray","0 "+this.K);this.N.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.B.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.T.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.a.clear=function(){this.hide()}; g.a.hide=function(){mT(this);Ny.prototype.hide.call(this)}; g.a.show=function(){UD(this);Ny.prototype.show.call(this)}; g.a.q9=function(){this.hide()}; g.a.UY=function(){if(this.L){var X=this.L.getProgressState();X!=null&&X.current!=null&&g.lF(this.N,"stroke-dasharray",X.current/X.seekableEnd*this.K+" "+this.K)}};g.w(ff8,IO);g.a=ff8.prototype; g.a.init=function(X,J,L){IO.prototype.init.call(this,X,J,L);if(J.image&&J.image.thumbnail)if(J.headline)if(J.description)if(J.backgroundImage&&J.backgroundImage.thumbnail)if(J.actionButton&&g.F(J.actionButton,g.JE))if(X=J.durationMilliseconds||0,typeof X!=="number"||X<=0)g.Sc(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+X));else if(J.navigationEndpoint){var x=this.api.getVideoData(2);if(x!=null){var Q=J.image.thumbnail.thumbnails;Q!=null&& Q.length>0&&g.YS(g.hH(Q[0].url))&&(Q[0].url=x.profilePicture,g.YS(g.hH(x.profilePicture))&&e$v("VideoPlayer",239976093,"Expected non-empty profile picture."));Q=J.backgroundImage.thumbnail.thumbnails;Q!=null&&Q.length>0&&g.YS(g.hH(Q[0].url))&&(Q[0].url=x.TC());Q=J.headline;Q!=null&&g.YS(g.hH(Q.text))&&(Q.text=x.author)}this.D.init(Xr("ad-image"),J.image,L);this.B.init(Xr("ad-text"),J.headline,L);this.N.init(Xr("ad-text"),J.description,L);this.Hl.init(Xr("ad-image"),J.backgroundImage,L);x=["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.B.element.classList.add("ytp-ad-action-interstitial-headline-light");this.N.element.classList.add("ytp-ad-action-interstitial-description-light");x.push("ytp-ad-action-interstitial-action-button-dark");this.api.G().K&&(x.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),x.push("ytp-ad-action-interstitial-action-button-dark"));this.api.G().Y("enable_unified_action_endcap_on_web")&& !this.api.G().K&&(x.push("ytp-ad-action-interstitial-action-button-unified"),this.J0.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.D.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.O6.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.WO.classList.add("ytp-ad-action-interstitial-card-unified"),this.aB.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.N.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.gI.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.B.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.vl.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.jC.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new c1(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,x);g.f(this,this.actionButton);this.actionButton.zH(this.J0); this.actionButton.init(Xr("button"),g.F(J.actionButton,g.JE),L);GI(this.actionButton.element);x=Rm(this.actionButton.element);e$(this.actionButton.element,x+" This link opens in new tab");this.navigationEndpoint=J.navigationEndpoint;this.T.J(this.vl,"click",this.Y0,this);this.T.J(this.aB,"click",this.Y0,this);!this.api.G().Y("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.G().K||this.T.J(this.gI,"click",this.Y0,this);this.L=this.KN?new H8(this.api,X):new OL(X);g.f(this,this.L);if(J.skipButton){(X= g.F(J.skipButton,sSu))&&this.L&&(this.skipButton=new $L(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,this.L,this.Vb),g.f(this,this.skipButton),this.skipButton.zH(this.element),this.skipButton.init(Xr("skip-button"),X,L));if(L=J.adBadgeRenderer)if(L=g.F(L,B6v))X=new nX(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,!0,!0),X.zH(this.jC),X.init(Xr("simple-ad-badge"),L,this.macros),g.f(this,X);if(L=J.adInfoRenderer)if(L=g.F(L,A9))X=new RO(this.api,this.layoutId,this.interactionLoggingClientData, this.oB,this.element,void 0,!0),X.zH(this.jC),X.init(Xr("ad-info-hover-text-button"),L,this.macros),g.f(this,X)}else J.nonskippableOverlayRenderer&&(X=g.F(J.nonskippableOverlayRenderer,XL))&&this.L&&(this.K=new AC(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,this.L,!1),g.f(this,this.K),this.K.zH(this.element),this.K.init(Xr("ad-preview"),X,L));J.countdownRenderer&&(J=J.countdownRenderer,g.F(J,N6u)&&this.L&&(L=new GYO(this.api,this.layoutId,this.interactionLoggingClientData,this.oB, this.L),g.f(this,L),L.zH(this.element),L.init(Xr("timed-pie-countdown"),g.F(J,N6u),this.macros)));this.show();this.element.focus()}else g.Sc(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.Sc(Error("AdActionInterstitialRenderer has no button."));else g.Sc(Error("AdActionInterstitialRenderer has no background AdImage."));else g.Sc(Error("AdActionInterstitialRenderer has no description AdText."));else g.Sc(Error("AdActionInterstitialRenderer has no headline AdText."));else g.Sc(Error("AdActionInterstitialRenderer has no image."))}; g.a.clear=function(){g.Sf(this.T);this.hide()}; g.a.show=function(){eES(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.K&&this.K.show();IO.prototype.show.call(this)}; g.a.hide=function(){eES(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.K&&this.K.hide();IO.prototype.hide.call(this)}; g.a.Y0=function(){this.navigationEndpoint&&(this.layoutId?this.oB.executeCommand(this.navigationEndpoint,this.layoutId):g.Sc(Error("Missing layoutId for ad action interstitial.")))};var s7I={iconType:"CLOSE"},YA=new g.B_(320,63);g.w(BpR,IO);g.a=BpR.prototype; g.a.init=function(X,J,L){IO.prototype.init.call(this,X,J,L);this.T=J;this.D=g.Yu(this.T.onClickCommands||[]);this.jC=this.T.onErrorCommand||null;if(X=this.T.contentSupportedRenderer)X=this.T.contentSupportedRenderer,J=this.T.adInfoRenderer||null,g.F(X,FRC)?(this.B=g.qG("ytp-ad-overlay-ad-info-button-container",this.N.element),NpP(this,J),X=m$Z(this,g.F(X,FRC))):g.F(X,lRH)?(this.B=g.qG("ytp-ad-overlay-ad-info-button-container",this.K.element),NpP(this,J),X=kYP(this,g.F(X,lRH))):g.F(X,RD0)?(this.B= g.qG("ytp-ad-overlay-ad-info-button-container",this.L.element),NpP(this,J),X=ZoY(this,g.F(X,RD0))):(g.Sc(Error("InvideoOverlayAdRenderer content could not be initialized.")),X=!1);X&&(this.show(),A0P(this,!0))}; g.a.clear=function(){A0P(this,!1);this.vl.reset();this.aB=0;this.N.hide();this.logVisibility(this.N.element,!1);this.K.hide();this.logVisibility(this.K.element,!1);this.L.hide();this.logVisibility(this.L.element,!1);this.hide();this.dispose()}; g.a.i3l=function(){this.J0&&(this.layoutId?this.oB.executeCommand(this.J0,this.layoutId):g.Sc(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.a.h6=function(){a:{if(this.T&&this.T.closeButton&&this.T.closeButton.buttonRenderer){var X=this.T.closeButton.buttonRenderer;if(X.serviceEndpoint){X=[X.serviceEndpoint];break a}}X=[]}X=g.d(X);for(var J=X.next();!J.done;J=X.next())J=J.value,this.layoutId?this.oB.executeCommand(J,this.layoutId):g.Sc(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.a.VCq=function(){this.Hl||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.a.V_=function(){this.Hl||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.V_("invideo-overlay")}; g.a.ZmE=function(X){X.target===this.B&&g.qG("ytp-ad-button",this.O6.element).click()};g.w(XW0,Ny);g.a=XW0.prototype;g.a.init=function(X,J,L){Ny.prototype.init.call(this,X,J,L);X=J.durationMs;this.N=X==null||X===0?0:X+this.L.getProgressState().current*1E3;if(J.text)var x=J.text.templatedAdText;else J.staticMessage&&(x=J.staticMessage);this.messageText.init(Xr("ad-text"),x,L);this.messageText.zH(this.K.element);this.T.show(100);this.show()}; g.a.clear=function(){this.hide()}; g.a.hide=function(){JoH(this,!1);Ny.prototype.hide.call(this);this.K.hide();this.messageText.hide();mT(this)}; g.a.show=function(){JoH(this,!0);Ny.prototype.show.call(this);UD(this);this.K.show();this.messageText.show()}; g.a.q9=function(){this.hide()}; g.a.UY=function(){if(this.L!=null){var X=this.L.getProgressState();X!=null&&X.current!=null&&(X=1E3*X.current,!this.aB&&X>=this.N?(this.T.hide(),this.aB=!0):this.messageText&&this.messageText.isTemplated()&&(X=Math.max(0,Math.ceil((this.N-X)/1E3)),X!==this.B&&(sD(this.messageText,{TIME_REMAINING:String(X)}),this.B=X)))}};g.w(LZ0,IO);g.a=LZ0.prototype; g.a.init=function(X,J,L){IO.prototype.init.call(this,X,J,{});J.image&&J.image.thumbnail?J.headline?J.description?J.actionButton&&g.F(J.actionButton,g.JE)?(this.N.init(Xr("ad-image"),J.image,L),this.K.init(Xr("ad-text"),J.headline,L),this.T.init(Xr("ad-text"),J.description,L),this.actionButton=new c1(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,["ytp-ad-underlay-action-button"]),J.backgroundColor&&g.lF(this.element,"background-color",g.W8(J.backgroundColor)),g.f(this,this.actionButton), this.actionButton.zH(this.B),this.actionButton.init(Xr("button"),g.F(J.actionButton,g.JE),L),X=g.J_(this.api.G().experiments,"player_underlay_video_width_fraction"),this.api.G().Y("place_shrunken_video_on_left_of_player")?(J=this.L,g.Qd(J,"ytp-ad-underlay-left-container"),g.xq(J,"ytp-ad-underlay-right-container"),g.lF(this.L,"margin-left",Math.round((X+.02)*100)+"%")):(J=this.L,g.Qd(J,"ytp-ad-underlay-right-container"),g.xq(J,"ytp-ad-underlay-left-container")),g.lF(this.L,"width",Math.round((1-X- .04)*100)+"%"),this.api.zN()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.qV.bind(this)),this.api.addEventListener("resize",this.jt.bind(this))):g.Sc(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.Sc(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.Sc(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.Sc(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.a.show=function(){xSI(!0);this.actionButton&&this.actionButton.show();IO.prototype.show.call(this)}; g.a.hide=function(){xSI(!1);this.actionButton&&this.actionButton.hide();IO.prototype.hide.call(this)}; g.a.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.qV.bind(this));this.api.removeEventListener("resize",this.jt.bind(this));this.hide()}; g.a.onClick=function(X){IO.prototype.onClick.call(this,X);this.actionButton&&g.w0(this.actionButton.element,X.target)&&this.api.pauseVideo()}; g.a.qV=function(X){X==="transitioning"?(this.L.classList.remove("ytp-ad-underlay-clickable"),this.show()):X==="visible"?this.L.classList.add("ytp-ad-underlay-clickable"):X==="hidden"&&(this.hide(),this.L.classList.remove("ytp-ad-underlay-clickable"))}; g.a.jt=function(X){X.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):X.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.lF(this.K.element,"font-size",X.width/40+"px")};g.w(h6,IO); h6.prototype.init=function(X,J,L){IO.prototype.init.call(this,X,J,L);J.toggledLoggingParams&&(this.toggledLoggingParams=J.toggledLoggingParams);J.answer&&g.F(J.answer,g.JE)?(X=new c1(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),X.zH(this.answer),X.init(Xr("ytp-ad-survey-answer-button"),g.F(J.answer,g.JE),L),X.show()):J.answer&&g.F(J.answer,PF)&&(this.L=new jl(this.api,this.layoutId,this.interactionLoggingClientData,this.oB, ["ytp-ad-survey-answer-toggle-button"]),this.L.zH(this.answer),g.f(this,this.L),this.L.init(Xr("survey-answer-button"),g.F(J.answer,PF),L));this.show()}; h6.prototype.OO=function(X){this.layoutId?Wf(this.oB,X,this.layoutId,this.macros):(X=new g.Fm("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.Sc(X))}; h6.prototype.onClick=function(X){IO.prototype.onClick.call(this,X);if(this.api.G().Y("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; h6.prototype.clear=function(){this.hide()};g.w(iRV,IO);iRV.prototype.init=function(X,J,L){IO.prototype.init.call(this,X,J,L);J.answer&&g.F(J.answer,PF)&&(this.button=new jl(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.zH(this.L),this.button.init(Xr("survey-none-of-the-above-button"),g.F(J.answer,PF),L));this.show()};g.w(zk,c1);zk.prototype.init=function(X,J,L){c1.prototype.init.call(this,X,J,L);X=!1;J.text&&(J=g.Dn(J.text),X=!g.YS(J));X||g.PM(Error("No submit text was present in the renderer."))}; zk.prototype.onClick=function(X){this.publish("l");c1.prototype.onClick.call(this,X)};g.w(Wo,IO); Wo.prototype.init=function(X,J,L){IO.prototype.init.call(this,X,J,L);if(X=J.skipOrPreviewRenderer)g.F(X,bR)?(X=g.F(X,bR),L=new MH(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,this.T,!0),L.zH(this.skipOrPreview),L.init(Xr("skip-button"),X,this.macros),g.f(this,L),this.L=L):g.F(X,XL)&&(X=g.F(X,XL),L=new AC(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,this.T,!1),L.zH(this.skipOrPreview),L.init(Xr("ad-preview"),X,this.macros),L.aB.show(100),L.show(),g.f(this,L), this.L=L);this.L==null&&(X=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(J)),g.Sc(X));J.submitButton&&(X=J.submitButton,g.F(X,g.JE)&&(X=g.F(X,g.JE),L=new zk(this.api,this.layoutId,this.interactionLoggingClientData,this.oB),L.zH(this.submitButton),L.init(Xr("survey-submit"),X,this.macros),g.f(this,L),this.K=L));if(X=J.adBadgeRenderer)X=g.F(X,B6v),L=new nX(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,!0,!0,!0),L.zH(this.N),L.init(Xr("simple-ad-badge"), X,this.macros),this.adBadge=L.element,g.f(this,L);if(X=J.adDurationRemaining)X=g.F(X,GUH),L=new tu(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,this.T,void 0,!0),L.zH(this.N),L.init(Xr("ad-duration-remaining"),X,this.macros),g.f(this,L);(J=J.adInfoRenderer)&&g.F(J,A9)&&(X=new RO(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,this.element,void 0,!0),g.f(this,X),this.adBadge!==void 0?this.N.insertBefore(X.element,this.adBadge.nextSibling):X.zH(this.N),X.init(Xr("ad-info-hover-text-button"), g.F(J,A9),this.macros));this.show()}; Wo.prototype.clear=function(){this.hide()};g.w(pm,IO);pm.prototype.init=function(X,J,L){IO.prototype.init.call(this,X,J,L);gev(this)}; pm.prototype.show=function(){this.N=Date.now();IO.prototype.show.call(this)}; pm.prototype.mK=function(){};g.w(DSC,pm);g.a=DSC.prototype;g.a.init=function(X,J,L){var x=this;pm.prototype.init.call(this,X,J,L);J.questionText&&QzH(this,J.questionText);J.answers&&J.answers.forEach(function(Q,K){g.F(Q,bz)&&KZu(x,g.F(Q,bz),L,K)}); this.B=new Set(this.K.map(function(Q){return Q.L.L})); (X=J.noneOfTheAbove)&&(X=g.F(X,eD0))&&$SH(this,X,L);J.surveyAdQuestionCommon&&IOu(this,J.surveyAdQuestionCommon);J.submitEndpoints&&(this.submitEndpoints=J.submitEndpoints);this.J(this.element,"change",this.onChange);this.show()}; g.a.mK=function(){Cv8(this,!1);this.T.K.subscribe("l",this.a2q,this)}; g.a.onChange=function(X){X.target===this.noneOfTheAbove.button.L?M8u(this):this.B.has(X.target)&&(this.noneOfTheAbove.button.toggleButton(!1),Cv8(this,!0))}; g.a.a2q=function(){var X=[],J=this.K.reduce(function(Q,K,q){var D=K.toggledLoggingParams;K.L&&K.L.isToggled()&&D&&(Q.push(D),X.push(q));return Q},[]).join("&"),L=this.submitEndpoints.map(function(Q){if(!Q.loggingUrls)return Q; Q=g.Hc(Q);Q.loggingUrls=Q.loggingUrls.map(function(K){K.baseUrl&&(K.baseUrl=OF(K.baseUrl,J));return K}); return Q}); if(L){L=g.d(L);for(var x=L.next();!x.done;x=L.next())x=x.value,this.layoutId?Wf(this.oB,x,this.layoutId,this.macros):g.Sc(Error("Missing layoutId for multi_select_question."))}this.api.G().Y("supports_multi_step_on_desktop")&&this.aB(X)}; g.a.clear=function(){this.api.G().Y("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(ro,pm);ro.prototype.init=function(X,J,L){var x=this;pm.prototype.init.call(this,X,J,L);J.questionText&&QzH(this,J.questionText);J.answers&&J.answers.forEach(function(Q,K){g.F(Q,bz)&&KZu(x,g.F(Q,bz),L,K)}); J.surveyAdQuestionCommon?IOu(this,J.surveyAdQuestionCommon):iT(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(J)));this.show()}; ro.prototype.clear=function(){this.api.G().Y("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(vo,IO);vo.prototype.init=function(X,J,L){var x=this;IO.prototype.init.call(this,X,J,L);if(this.api.G().Y("supports_multi_step_on_desktop")){var Q;this.conditioningRules=(Q=J.conditioningRules)!=null?Q:[];var K;this.K=(K=J.questions)!=null?K:[];var q;((q=J.questions)==null?0:q.length)&&HR3(this,0)}else(J.questions||[]).forEach(function(D){g.F(D,k6)?neF(x,g.F(D,k6),L):g.F(D,ml)&&V8F(x,g.F(D,ml),L)}); this.show()}; vo.prototype.clear=function(){this.api.G().Y("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; vo.prototype.T=function(X){var J=this;if(this.api.G().Y("supports_multi_step_on_desktop")){var L;if((L=this.conditioningRules)==null?0:L.length){var x;if(X.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(Q){return Q.questionIndex===J.L})==null)g.Sc(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(Q){if(Q.questionIndex===J.L)switch(Q.condition){case "CONDITION_ALL_OF":var K;if((K=Q.answerIndices)==null?0:K.every(function(D){return X.includes(D)}))x=Q.nextQuestionIndex; break;case "CONDITION_ANY_OF":var q;if((q=Q.answerIndices)==null?0:q.some(function(D){return X.includes(D)}))x=Q.nextQuestionIndex; break;default:g.Sc(Error("Expected specified condition in survey conditioning rules."))}}),x!=null)HR3(this,x); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.Sc(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.w(jn,IO); jn.prototype.init=function(X,J,L){var x=this;IO.prototype.init.call(this,X,J,L);X=J.timeoutSeconds||0;if(typeof X!=="number"||X<0)g.Sc(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+X));else if(J.timeoutCommands)if(J.text)if(J.ctaButton&&g.F(J.ctaButton,g.JE))if(J.brandImage)if(J.backgroundImage&&g.F(J.backgroundImage,LB)&&g.F(J.backgroundImage,LB).landscape){this.layoutId||g.Sc(Error("Missing layoutId for survey interstitial."));ORI(this.interstitial,g.F(J.backgroundImage, LB).landscape);ORI(this.logoImage,J.brandImage);g.tw(this.text,g.Dn(J.text));var Q=["ytp-ad-survey-interstitial-action-button"];Q.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new c1(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,Q);g.f(this,this.actionButton);this.actionButton.zH(this.K);this.actionButton.init(Xr("button"),g.F(J.ctaButton,g.JE),L);this.actionButton.show();this.L=new H8(this.api,X*1E3);this.L.subscribe("g",function(){x.transition.hide()}); g.f(this,this.L);this.J(this.element,"click",function(K){var q=K.target===x.interstitial;K=x.actionButton.element.contains(K.target);if(q||K)if(x.transition.hide(),q)x.api.onAdUxClicked(x.componentType,x.layoutId)}); this.transition.show(100)}else g.Sc(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.Sc(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.Sc(Error("SurveyTextInterstitialRenderer has no button."));else g.Sc(Error("SurveyTextInterstitialRenderer has no text."));else g.Sc(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; jn.prototype.clear=function(){this.hide()}; jn.prototype.show=function(){aOH(!0);IO.prototype.show.call(this)}; jn.prototype.hide=function(){aOH(!1);IO.prototype.hide.call(this)};g.w(Tk,Ny);g.a=Tk.prototype; g.a.init=function(X,J){Ny.prototype.init.call(this,X,J,{});if(J.durationMilliseconds){if(J.durationMilliseconds<0){g.Sc(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+J.durationMilliseconds));return}this.K=J.durationMilliseconds}else this.K=this.L.s0();var L;if((L=J.previewText)==null||!L.text||g.YS(J.previewText.text))g.Sc(Error("No text is returned for AdPreview."));else{this.B=J.previewText;J.previewText.isTemplated||g.tw(this.N,J.previewText.text);var x; if(((x=this.api.getVideoData(1))==null?0:x.tb)&&J.previewImage){var Q,K;(X=((K=nb(((Q=J.previewImage)==null?void 0:Q.sources)||[],52,!1))==null?void 0:K.url)||"")&&X.length?(this.previewImage=new g.qy({V:"img",U:"ytp-preview-ad__image",X:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",X),g.f(this,this.previewImage),this.previewImage.zH(this.element)):g.Sc(Error("Failed to get imageUrl in AdPreview."))}else this.N.classList.add("ytp-preview-ad__text--padding--wide")}}; g.a.clear=function(){this.hide()}; g.a.hide=function(){mT(this);Ny.prototype.hide.call(this)}; g.a.show=function(){UD(this);Ny.prototype.show.call(this)}; g.a.q9=function(){this.hide()}; g.a.UY=function(){if(this.L){var X=this.L.getProgressState();if(X!=null&&X.current)if(X=1E3*X.current,X>=this.K)this.transition.hide();else{var J;if((J=this.B)==null?0:J.isTemplated)if(J=Math.max(0,Math.ceil((this.K-X)/1E3)),J!==this.T){var L,x;(X=(L=this.B)==null?void 0:(x=L.text)==null?void 0:x.replace("{TIME_REMAINING}",String(J)))&&g.tw(this.N,X);this.T=J}}}};g.w(Gk,IO); Gk.prototype.init=function(X,J){IO.prototype.init.call(this,X,J,{});var L,x;if((X=((x=nb(((L=J.image)==null?void 0:L.sources)||[],wW0(J),!0))==null?void 0:x.url)||"")&&X.length){L=this.kq("ytp-ad-avatar");L.src=X;var Q,K;if(x=(Q=J.interaction)==null?void 0:(K=Q.accessibility)==null?void 0:K.label)L.alt=x;switch(J.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(J.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.Sc(Error("Failed to get imageUrl in AdAvatar."))}; Gk.prototype.clear=function(){this.hide()}; Gk.prototype.onClick=function(X){IO.prototype.onClick.call(this,X)};g.w(fm,IO); fm.prototype.init=function(X,J){IO.prototype.init.call(this,X,J,{});var L;X=(L=J.label)==null?void 0:L.content;if((L=X!=null&&!g.YS(X))||J.iconImage){L&&(this.buttonText=new g.qy({V:"span",U:"ytp-ad-button-vm__text",iB:X}),g.f(this,this.buttonText),this.buttonText.zH(this.element));var x,Q,K=((x=J.interaction)==null?0:(Q=x.accessibility)==null?0:Q.label)||L?X:"";K&&e$(this.element,K+" This link opens in new tab");GI(this.element);if(J.iconImage){x=void 0;if(J.iconImage){a:{Q=J.iconImage;if(Q.sources)for(Q= g.d(Q.sources),X=Q.next();!X.done;X=Q.next())if(X=X.value,K=void 0,(K=X.clientResource)==null?0:K.imageName){Q=X;break a}Q=void 0}if(Q){var q;x={iconType:(q=Q.clientResource)==null?void 0:q.imageName}}}q=P1(x,!1,this.K);q!=null&&(this.buttonIcon=new g.qy({V:"span",U:"ytp-ad-button-vm__icon",C:[q]}),g.f(this,this.buttonIcon),J.iconLeading?(O9(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):L?(this.buttonIcon.zH(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.zH(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(J.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_FILLED":this.api.Y("delhi_modern_web_player")?this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.L?"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(J.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.PM(Error("AdButton does not have label or an icon."))}; fm.prototype.clear=function(){this.hide()}; fm.prototype.onClick=function(X){IO.prototype.onClick.call(this,X)};g.w(t8v,Ny);g.a=t8v.prototype; g.a.init=function(X,J){Ny.prototype.init.call(this,X,J,{});this.api.G().Y("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.kq("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),O9(this.kq("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(X=g.F(J.avatar,m$)){var L=J.headline;if(L){var x=J.description;if(x){var Q=g.F(J.button,Zh);Q?(this.adAvatar.init(Xr("ad-avatar"),X),this.headline.init(Xr("ad-simple-attributed-string"),new u4(L)),this.description.init(Xr("ad-simple-attributed-string"),new u4(x)),L.content&&L.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(Xr("ad-button"),Q),this.startMilliseconds=J.startMs||0,this.api.zN()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Ys.bind(this)),UD(this)):g.Sc(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Sc(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Sc(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Sc(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.a.UY=function(){if(this.L){var X=this.L.getProgressState();X&&X.current&&1E3*X.current>=this.startMilliseconds&&(mT(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.a.q9=function(){this.clear()}; g.a.onClick=function(X){this.api.pauseVideo();Ny.prototype.onClick.call(this,X)}; g.a.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Ys.bind(this))}; g.a.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();Ny.prototype.show.call(this)}; g.a.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();Ny.prototype.hide.call(this)}; g.a.Ys=function(X){X==="hidden"?this.show():this.hide()};g.w(en,IO);g.a=en.prototype; g.a.init=function(X,J){IO.prototype.init.call(this,X,J,{});if(!J.label||g.YS(J.label))g.Sc(Error("No label is returned for SkipAdButton."));else if(g.tw(this.T,J.label),X=P1({iconType:"SKIP_NEXT_NEW"}),X==null)g.Sc(Error("Unable to retrieve icon for SkipAdButton"));else if(this.N=new g.qy({V:"span",U:"ytp-skip-ad-button__icon",C:[X]}),g.f(this,this.N),this.N.zH(this.element),this.api.G().experiments.Mi("enable_skip_to_next_messaging")&&(J=g.hH(J.targetId)))this.K=!0,this.element.setAttribute("data-tooltip-target-id",J), this.element.setAttribute("data-tooltip-target-fixed","")}; g.a.onClick=function(X){X&&X.preventDefault();var J,L;L4W(X,{contentCpn:(L=(J=this.api.getVideoData(1))==null?void 0:J.clientPlaybackNonce)!=null?L:""})===0?this.api.GH("onAbnormalityDetected"):(IO.prototype.onClick.call(this,X),this.api.GH("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.a.clear=function(){this.L.reset();this.hide()}; g.a.hide=function(){IO.prototype.hide.call(this)}; g.a.show=function(){this.L.start();IO.prototype.show.call(this);this.K&&this.api.G().experiments.Mi("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.w(dSd,Ny);g.a=dSd.prototype; g.a.init=function(X,J){Ny.prototype.init.call(this,X,J,{});X=g.F(J.preskipState,JH3);var L;if((L=this.api.getVideoData())==null?0:L.isDaiEnabled()){if(!X){g.Sc(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.K=new Tk(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,this.L);g.f(this,this.K);this.K.zH(this.element);var x;(x=this.K)==null||x.init(Xr("preview-ad"),X);(L=this.K)!=null&&(L.transition.show(100),L.show())}(L=g.F(J.skippableState,xKH))?(J.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=J.skipOffsetMilliseconds:(g.PM(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.N.init(Xr("skip-button"),L),this.show()):g.Sc(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.a.show=function(){UD(this);Ny.prototype.show.call(this)}; g.a.hide=function(){!this.isSkippable&&this.K?this.K.hide():this.N&&this.N.hide();mT(this);Ny.prototype.hide.call(this)}; g.a.clear=function(){var X;(X=this.K)==null||X.clear();this.N&&this.N.clear();mT(this);Ny.prototype.hide.call(this)}; g.a.q9=function(){this.hide()}; g.a.UY=function(){if(1E3*this.L.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var X;(X=this.K)!=null&&X.transition.hide();(X=this.N)!=null&&(X.transition.show(),X.show())}};g.w(FI,IO); FI.prototype.init=function(X,J){IO.prototype.init.call(this,X,J,{});if(J.label){var L;((L=J.label)==null?0:L.content)&&!g.YS(J.label.content)&&(this.linkText=new g.qy({V:"span",U:"ytp-visit-advertiser-link__text",iB:J.label.content}),g.f(this,this.linkText),this.linkText.zH(this.element));var x,Q;if((x=J.interaction)==null?0:(Q=x.accessibility)==null?0:Q.label)e$(this.element,J.interaction.accessibility.label+" This link opens in new tab");else{var K;((K=J.label)==null?0:K.content)&&!g.YS(J.label.content)&&e$(this.element, J.label.content+" This link opens in new tab")}GI(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.Sc(Error("No label found in VisitAdvertiserLink."))}; FI.prototype.onClick=function(X){IO.prototype.onClick.call(this,X);this.api.onAdUxClicked(this.componentType,this.layoutId)}; FI.prototype.clear=function(){this.hide()};g.w(l1,IO); l1.prototype.init=function(X,J,L,x){IO.prototype.init.call(this,X,J,{});if(J.skipOrPreview){L=J.skipOrPreview;X=g.F(L,iWF);L=g.F(L,JH3);if(X)this.U1=new dSd(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,this.K),g.f(this,this.U1),this.U1.zH(this.D),this.U1.init(Xr("skip-ad"),X);else{var Q;L&&((Q=this.api.getVideoData())==null?0:Q.isDaiEnabled())&&(this.T=new Tk(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,this.K,1),g.f(this,this.T),this.T.zH(this.D),this.T.init(Xr("ad-preview"), L),Q=this.T,Q.transition.show(100),Q.show())}if(Q=g.F(J.skipOrPreview,iWF))var K=Q.skipOffsetMilliseconds}J.playerAdCard&&(Q=g.F(J.playerAdCard,LWu))&&(this.playerAdCard=new t8v(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,this.K),g.f(this,this.playerAdCard),this.playerAdCard.zH(this.gI),this.playerAdCard.init(Xr("ad-avatar-lockup-card"),Q));J.adBadgeRenderer&&((Q=g.F(J.adBadgeRenderer,kA))?(this.N=new b4(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,!0),g.f(this, this.N),this.N.zH(this.L),this.N.init(Xr("ad-badge"),Q)):g.Sc(Error("AdBadgeViewModel is not found in player overlay layout.")));J.adPodIndex&&(Q=g.F(J.adPodIndex,kUS))&&(this.adPodIndex=new Sh(this.api,this.layoutId,this.interactionLoggingClientData,this.oB),g.f(this,this.adPodIndex),this.adPodIndex.zH(this.L),this.adPodIndex.init(Xr("ad-pod-index"),Q));J.adInfoRenderer&&((Q=g.F(J.adInfoRenderer,A9))?(this.adInfoButton=new RO(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,this.element, void 0,!0),g.f(this,this.adInfoButton),this.N!==void 0?this.L.insertBefore(this.adInfoButton.element,this.N.element.nextSibling):this.adInfoButton.zH(this.L),this.adInfoButton.init(Xr("ad-info-hover-text-button"),Q,this.macros)):g.PM(Error("AdInfoRenderer is not found in player overlay layout.")));var q;Q=(q=this.api.getVideoData())==null?void 0:q.isDaiEnabled();J.adDurationRemaining&&Q&&(q=g.F(J.adDurationRemaining,GUH))&&(this.adDurationRemaining=new tu(this.api,this.layoutId,this.interactionLoggingClientData, this.oB,this.K,x.videoAdDurationSeconds,!0),g.f(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.L.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.zH(this.L),this.adDurationRemaining.init(Xr("ad-duration-remaining"),q,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));J.visitAdvertiserLink&&(x=g.F(J.visitAdvertiserLink,KWI))&&(this.visitAdvertiserLink=new FI(this.api,this.layoutId, this.interactionLoggingClientData,this.oB),g.f(this,this.visitAdvertiserLink),this.visitAdvertiserLink.zH(this.L),this.visitAdvertiserLink.init(Xr("visit-advertiser-link"),x));J.adDisclosureBanner&&(J=g.F(J.adDisclosureBanner,mx0))&&(this.adDisclosureBanner=new P8(this.api,this.layoutId,this.interactionLoggingClientData,this.oB),g.f(this,this.adDisclosureBanner),this.adDisclosureBanner.zH(this.aB),this.adDisclosureBanner.init(Xr("ad-disclosure-banner"),J));this.B=new YL(this.api,this.K,K,!0);g.f(this, this.B);g.l0(this.api,this.B.element,4);this.show()}; l1.prototype.clear=function(){this.hide()};g.w(uY8,IO);g.a=uY8.prototype; g.a.init=function(X,J){IO.prototype.init.call(this,X,J,{});if(J!=null&&J.title)if(X=J.title)if(this.headline.init(Xr("ad-simple-attributed-string"),new u4(X)),X=g.F(J.moreInfoButton,Zh)){if(this.moreInfoButton.init(Xr("ad-button"),X),J.descriptions)J.descriptions.length>0&&(X=J.descriptions[0])&&(this.L=new oF(this.api,this.layoutId,this.interactionLoggingClientData,this.oB),g.f(this,this.L),this.L.zH(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.L.init(Xr("ad-simple-attributed-string"), new u4(X))),J.descriptions.length>1&&(J=J.descriptions[1])&&(this.K=new oF(this.api,this.layoutId,this.interactionLoggingClientData,this.oB),g.f(this,this.K),this.K.zH(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.K.init(Xr("ad-simple-attributed-string"),new u4(J)))}else g.Sc(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.Sc(Error("No headline found in AdGridCardText."));else g.Sc(Error("No headline found in AdGridCardText."))}; g.a.onClick=function(X){IO.prototype.onClick.call(this,X);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.a.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var X;(X=this.L)==null||X.clear();var J;(J=this.K)==null||J.clear()}; g.a.hide=function(){this.headline.hide();this.moreInfoButton.hide();var X;(X=this.L)==null||X.hide();var J;(J=this.K)==null||J.hide();IO.prototype.hide.call(this)}; g.a.show=function(){IO.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var X;(X=this.L)==null||X.show();var J;(J=this.K)==null||J.show()};g.w(Rs,IO);Rs.prototype.init=function(X,J){IO.prototype.init.call(this,X,J,{});if(J!=null&&J.gridCards)if(J.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.Sc(Error("Only single column style is currently supported in AdGridCardCollection."));else for(X=g.d(J.gridCards),J=X.next();!J.done;J=X.next()){if(J=g.F(J.value,X_F)){var L=new uY8(this.api,this.layoutId,this.interactionLoggingClientData,this.oB);g.f(this,L);L.zH(this.element);L.init(Xr("ad-grid-card-text"),J);this.L.push(L)}}else g.Sc(Error("No grid cards found in AdGridCardCollection."))}; Rs.prototype.show=function(){for(var X=g.d(this.L),J=X.next();!J.done;J=X.next())J.value.show();IO.prototype.show.call(this)}; Rs.prototype.clear=function(){this.hide();for(var X=g.d(this.L),J=X.next();!J.done;J=X.next())J.value.clear()}; Rs.prototype.hide=function(){for(var X=g.d(this.L),J=X.next();!J.done;J=X.next())J.value.hide();IO.prototype.hide.call(this)};g.w(Bo,Ny);g.a=Bo.prototype;g.a.init=function(X,J,L,x,Q){Q=Q===void 0?0:Q;Ny.prototype.init.call(this,X,J,L,x);this.playerProgressOffsetMs=Q;UD(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Dn.bind(this));this.api.addEventListener("resize",this.df.bind(this));this.api.zN()?(this.K=!0,this.api.x_(!0),this.show()):this.hide()}; g.a.UY=function(){if(this.L){var X=this.L.getProgressState();X&&X.current&&!this.K&&1E3*X.current>=this.playerProgressOffsetMs&&(this.K=!0,this.api.x_(!0),this.show())}}; g.a.q9=function(){this.K&&this.api.x_(!1);this.hide()}; g.a.clear=function(){this.api.x_(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Dn.bind(this));this.api.removeEventListener("resize",this.df.bind(this));mT(this);this.hide()}; g.a.hide=function(){oed(!1);Ny.prototype.hide.call(this)}; g.a.show=function(){oed(!0);Ny.prototype.show.call(this)};g.w(bRu,Bo);g.a=bRu.prototype; g.a.init=function(X,J,L,x){if(J!=null&&J.adGridCardCollection)if(J!=null&&J.adButton){var Q=Number(J.playerProgressOffsetMs||"0");isNaN(Q)?Bo.prototype.init.call(this,X,J,L,x):Bo.prototype.init.call(this,X,J,L,x,Q);X=J.headline;L=g.F(J.adAvatar,m$);X&&L?(this.headline=new oF(this.api,this.layoutId,this.interactionLoggingClientData,this.oB),g.f(this,this.headline),this.headline.zH(this.kq("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(Xr("ad-simple-attributed-string"),new u4(X)), this.adAvatar=new Gk(this.api,this.layoutId,this.interactionLoggingClientData,this.oB),g.f(this,this.adAvatar),this.adAvatar.zH(this.kq("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(Xr("ad-avatar"),L)):this.T.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");X=g.F(J.adGridCardCollection,An0);this.adGridCardCollection.init(Xr("ad-grid-card-collection"),X);J=g.F(J.adButton,Zh);this.adButton.init(Xr("ad-button"),J); this.hide()}else g.Sc(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.Sc(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.a.onClick=function(X){(this.adButton&&g.w0(this.adButton.element,X.target)||this.adAvatar&&g.w0(this.adAvatar.element,X.target))&&this.api.pauseVideo();Bo.prototype.onClick.call(this,X);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.a.df=function(){}; g.a.clear=function(){this.hide();var X;(X=this.headline)==null||X.clear();var J;(J=this.adAvatar)==null||J.clear();this.adGridCardCollection.clear();this.adButton.clear();Bo.prototype.clear.call(this)}; g.a.show=function(){var X;(X=this.headline)==null||X.show();var J;(J=this.adAvatar)==null||J.show();this.adGridCardCollection.show();this.adButton.show();Bo.prototype.show.call(this)}; g.a.hide=function(){var X;(X=this.headline)==null||X.hide();var J;(J=this.adAvatar)==null||J.hide();this.adGridCardCollection.hide();this.adButton.hide();Bo.prototype.hide.call(this)}; g.a.Dn=function(X){X==="transitioning"?(this.N.classList.remove("ytp-ad-underlay-clickable"),this.show()):X==="visible"?this.N.classList.add("ytp-ad-underlay-clickable"):X==="hidden"&&(this.hide(),this.N.classList.remove("ytp-ad-underlay-clickable"))};g.w(s5,IO); s5.prototype.init=function(X,J){IO.prototype.init.call(this,X,J,{});if(J.attributes===void 0)g.Sc(Error("No attributes found in AdDetailsLineViewModel."));else if(J.style===void 0)g.Sc(Error("No style found in AdDetailsLineViewModel."));else{X=g.d(J.attributes);for(var L=X.next();!L.done;L=X.next())if(L=L.value,L.text!==void 0){L=L.text;var x=J.style,Q=new oF(this.api,this.layoutId,this.interactionLoggingClientData,this.oB);g.f(this,Q);Q.zH(this.element);a:switch(x){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":x="ytp-ad-details-line__text--style-responsive"; break a;default:x="ytp-ad-details-line__text--style-standard"}Q.element.classList.add(x);Q.init(Xr("ad-simple-attributed-string"),new u4(L));this.L.push(Q)}this.show()}}; s5.prototype.show=function(){this.L.forEach(function(X){X.show()}); IO.prototype.show.call(this)}; s5.prototype.clear=function(){this.hide()}; s5.prototype.hide=function(){this.L.forEach(function(X){X.hide()}); IO.prototype.hide.call(this)};g.w(N4,IO);N4.prototype.init=function(X,J){IO.prototype.init.call(this,X,J,{});var L,x;(X=((x=nb(((L=J.image)==null?void 0:L.sources)||[]))==null?void 0:x.url)||"")&&X.length?(L=this.kq("ytp-image-background-image"),g.lF(L,"backgroundImage","url("+X+")"),J.blurLevel!==void 0&&g.lF(L,"filter","blur("+J.blurLevel+"px)"),J.gradient!==void 0&&(J=new g.R({V:"div",Ql:["ytp-image-background--gradient-vertical"]}),g.f(this,J),J.zH(this.element)),this.show()):g.Sc(Error("Failed to get imageUrl in ImageBackground."))}; N4.prototype.clear=function(){this.hide()};g.w(SAH,Ny);g.a=SAH.prototype;g.a.init=function(X,J){Ny.prototype.init.call(this,X,J,{});g.lF(this.N,"stroke-dasharray","0 "+this.K);this.show()}; g.a.clear=function(){this.hide()}; g.a.hide=function(){mT(this);Ny.prototype.hide.call(this)}; g.a.show=function(){UD(this);Ny.prototype.show.call(this)}; g.a.q9=function(){this.hide()}; g.a.UY=function(){if(this.L){var X=this.L.getProgressState();X!=null&&X.current!=null&&g.lF(this.N,"stroke-dasharray",X.current/X.seekableEnd*this.K+" "+this.K)}};g.w(U5,IO); U5.prototype.init=function(X,J){IO.prototype.init.call(this,X,J,{});if(coV(J)){this.adAvatar=new Gk(this.api,this.layoutId,this.interactionLoggingClientData,this.oB);g.f(this,this.adAvatar);this.adAvatar.zH(this.kq("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(Xr("ad-avatar"),g.F(J.adAvatar,m$));this.headline=new oF(this.api,this.layoutId,this.interactionLoggingClientData,this.oB);g.f(this,this.headline);this.headline.zH(this.kq("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(Xr("ad-simple-attributed-string"),new u4(J.headline));if(X=g.F(J.adDetailsLine,Ux0))this.detailsLine=new s5(this.api,this.layoutId,this.interactionLoggingClientData,this.oB),g.f(this,this.detailsLine),this.detailsLine.zH(this.kq("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(Xr("ad-details-line"),X);this.adButton=new fm(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,!0);g.f(this,this.adButton); this.adButton.zH(this.kq("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(Xr("ad-button"),g.F(J.adButton,Zh));this.adBadge=new b4(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,!0);g.f(this,this.adBadge);this.adBadge.zH(this.T);this.adBadge.init(Xr("ad-badge"),g.F(J.adBadge,kA));this.adInfoButton=new RO(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,this.element,void 0,!0);g.f(this,this.adInfoButton);this.adInfoButton.zH(this.T); this.adInfoButton.init(Xr("ad-info-hover-text-button"),g.F(J.adInfoRenderer,A9),this.macros);if(X=g.F(J.skipAdButton,xKH))this.skipAdButton=new en(this.api,this.layoutId,this.interactionLoggingClientData,this.oB),g.f(this,this.skipAdButton),this.skipAdButton.zH(this.element),this.skipAdButton.init(Xr("skip-button"),X);this.K=new OL(J.durationMilliseconds);g.f(this,this.K);if(X=g.F(J.countdownViewModel,QQS))this.L=new SAH(this.api,this.layoutId,this.interactionLoggingClientData,this.oB,this.K),g.f(this, this.L),this.L.zH(this.kq("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.L.init(Xr("timed-pie-countdown"),X);if(J=g.F(J.imageBackground,ZJC))this.imageBackground=new N4(this.api,this.layoutId,this.interactionLoggingClientData,this.oB),g.f(this,this.imageBackground),this.imageBackground.zH(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(Xr("image-background"), J);this.show();this.element.focus()}}; U5.prototype.clear=function(){g.Sf(this.N);this.hide()}; U5.prototype.show=function(){Pve(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();IO.prototype.show.call(this)}; U5.prototype.hide=function(){Pve(!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.L&&this.L.hide();this.imageBackground&&this.imageBackground.hide();IO.prototype.hide.call(this)};g.w(A6,g.Ly);g.a=A6.prototype;g.a.s0=function(){return 1E3*this.api.getDuration(this.g8,!1)}; g.a.stop=function(){this.L&&this.Dh.VO(this.L)}; g.a.qd=function(){var X=this.api.getProgressState(this.g8);this.K={seekableStart:X.seekableStart,seekableEnd:X.seekableEnd,current:this.api.getCurrentTime(this.g8,!1)};this.publish("h")}; g.a.getProgressState=function(){return this.K}; g.a.O8=function(X){g.Ds(X,2)&&this.publish("g")};var Yt3="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.w(X2,G2); X2.prototype.N=function(X){var J=X.id,L=X.content,x=L.componentType;if(!Yt3.includes(x))switch(X.actionType){case 1:X=this.api;var Q=this.oB,K=L.layoutId,q=L.interactionLoggingClientData,D=L instanceof rV?L.KN:!1,C=L instanceof rV||L instanceof VZ?L.Vb:!1;q=q===void 0?{}:q;D=D===void 0?!1:D;C=C===void 0?!1:C;switch(x){case "invideo-overlay":X=new BpR(X,K,q,Q);break;case "player-overlay":X=new hu(X,K,q,Q,new A6(X),C);break;case "player-overlay-layout":X=new l1(X,K,q,Q,new A6(X));break;case "survey":X= new vo(X,K,q,Q);break;case "ad-action-interstitial":X=new ff8(X,K,q,Q,D,C);break;case "video-interstitial-buttoned-centered":X=new U5(X,K,q,Q);break;case "survey-interstitial":X=new jn(X,K,q,Q);break;case "ad-message":X=new XW0(X,K,q,Q,new A6(X,1));break;case "player-underlay":X=new LZ0(X,K,q,Q);break;case "display-underlay-text-grid-cards":X=new bRu(X,K,q,Q,new A6(X));break;default:X=null}if(!X){g.PM(Error("No UI component returned from ComponentFactory for type: "+x));break}g.DR(this.components, J)?g.PM(Error("Ad UI component already registered: "+J)):this.components[J]=X;X.bind(L);L instanceof Wy?this.K?this.K.append(X.qh):g.PM(Error("Underlay view was not created but UnderlayRenderer was created")):this.T.append(X.qh);break;case 2:J=EeS(this,X);if(J==null)break;J.bind(L);break;case 3:L=EeS(this,X),L!=null&&(g.Lq(L),g.DR(this.components,J)?(L=this.components,J in L&&delete L[J]):g.PM(Error("Ad UI component does not exist: "+J)))}}; X2.prototype.uB=function(){g.xN(Object.values(this.components));this.components={};G2.prototype.uB.call(this)};g.w(YAH,g.bf);g.a=YAH.prototype;g.a.create=function(){try{hmF(this),this.load(),this.created=!0,hmF(this)}catch(X){qH(X instanceof Error?X:String(X))}}; g.a.load=function(){try{pWe(this)}finally{Lm(co(this.L).uW)&&this.player.Rn("ad",1)}}; g.a.destroy=function(){var X=this.player.getVideoData(1);this.L.L.d3.VS(X&&X.clientPlaybackNonce||"");this.unload();this.created=!1}; g.a.unload=function(){g.bf.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(J){qH(J instanceof Error?J:String(J))}if(this.K!=null){var X=this.K;this.K=null;X.dispose()}this.N.reset()}; g.a.xZ=function(){return!1}; g.a.getAdState=function(){return-1}; g.a.getOptions=function(){return Object.values(EIu)}; g.a.Dx=function(X,J){J=J===void 0?{}:J;switch(X){case "replaceUrlMacros":return X=J,X.url?(J=A4v(this.player),Object.assign(J,X.jCE),X=g.cN(X.url,J)):X=null,X;case "onAboutThisAdPopupClosed":this.Tu(J);break;case "executeCommand":X=J;X.command&&X.layoutId&&this.executeCommand(X);break;default:return null}}; g.a.IR=function(X){var J;return!((J=this.L.L.Jj)==null||!J.get().IR(X))}; g.a.Tu=function(X){X.isMuted&&omm(co(this.L).jR,co(this.L).DS,X.layoutId);this.Do&&this.Do.Tu()}; g.a.executeCommand=function(X){co(this.L).oB.executeCommand(X.command,X.layoutId)};g.JS("yt.player.Application.create",g.tG.create);g.JS("yt.player.Application.createAlternate",g.tG.create);r8R(d2(),cBC);var hW0=g.Ld("ytcsi.tick");hW0&&hW0("pe");g.oE("ad",YAH);g.w(g.xo,g.G);g.xo.prototype.start=function(X,J,L){this.config={from:X,to:J,duration:L,startTime:(0,g.uT)()};this.next()}; g.xo.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.xo.prototype.next=function(){if(this.config){var X=this.config,J=X.from,L=X.to,x=X.duration;X=X.startTime;var Q=(0,g.uT)()-X;X=this.L;x=lIm(X,Q/x);if(x==0)X=X.W;else if(x==1)X=X.S;else{Q=Fc(X.W,X.j,x);var K=Fc(X.j,X.B,x);X=Fc(X.B,X.S,x);Q=Fc(Q,K,x);K=Fc(K,X,x);X=Fc(Q,K,x)}X=g.fW(X,0,1);this.callback(J+(L-J)*X);X<1&&this.delay.start()}};g.w(g.iz,g.R);g.a=g.iz.prototype;g.a.hasSuggestions=function(){return this.suggestionData.length>0}; g.a.eF=function(){this.K&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.a.show=function(){g.R.prototype.show.call(this);fOu(this)}; g.a.tV=function(){this.K&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.a.Ih=function(){this.A_(this.api.t0().getPlayerSize())}; g.a.A_=function(X){var J=this.api.isEmbedsShortsMode()?.5625:16/9,L=this.api.F4();X=X.width-(L?112:58);L=Math.ceil(X/(L?320:192));var x=(X-L*8)/L;J=Math.floor(x/J);for(var Q=g.d(this.L),K=Q.next();!K.done;K=Q.next())K=K.value.kq("ytp-suggestion-image"),K.style.width=x+"px",K.style.height=J+"px";this.suggestions.element.style.height=J+"px";this.T=x;this.S=J;this.containerWidth=X;this.columns=L;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.QJ(this)}; g.a.onVideoDataChange=function(){var X=this.api.G(),J=this.api.getVideoData();this.B=J.UM?!1:X.T;this.suggestionData=J.suggestions?g.SP(J.suggestions,function(L){return L&&!L.playlistId}):[]; FZH(this);J.UM?this.title.update({title:g.is("M\u00e1s videos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:J.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s videos"})}; g.a.scrollTo=function(X){X=g.fW(X,this.containerWidth-this.suggestionData.length*(this.T+8),0);this.W.start(this.scrollPosition,X,1E3);this.scrollPosition=X;g.QJ(this);fOu(this)};})(_yt_player);