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 a="cmo=td;;kC;fromCharCode;=;match;length;push;splice;scheme;toString;replace;rr;assign;Jk;Z;redirector.googlevideo.com;slice;path;/initplayback;indexOf;L;startsWith;get;split;/videoplayback;?;url;%3D;join;r;set;local;}][('';mn;reverse;Untrusted URL;://;Y;X;clone;/api/manifest;unshift;1970-01-01T01:16:26.000+01:15;1970-01-01T04:45:00.000+04:45;n;AaAt6o540KgmZ4B5uH-_w8_;fallback_count;/;\\.a1\\.googlevideo\\.com$;JL;,;undefined;file;1;pop;cZ;1969-12-31T13:31:16.000-10:30;1970-01-01T02:01:08.000+02:00;prototype;http://local;cmo=;index.m3u8;sp;1970-01-01T07:00:16.000+07:00;JP;s;youtube.player.web_20250609_22_RC00;https://local;1970-01-01T02:48:58.000+02:45;cmo;cmo=pf;forEach;//;1969-12-31T13:01:11.000-11:00;var;Z1;signatureCipher;&;playerfallback;www.youtube.com;/file/index.m3u8;:;fvip;---;a1.googlevideo.com;\\.googlevideo\\.com$;1970-01-01T05:45:25.000+05:45;O7;rr?[1-9].*\\.c\\.youtube\\.com$;1969-12-31T13:01:13.000-11:00".split(";"), lj,lKq,yc7,or,fKo,KsT,EY,GTs,Wi,aKJ,Lk,OY,ij,uj,sr7,Bqq,Ir,No,Hkr,UY,n7s,jJ,DK,mor,ZK,Jc,V9,Ck,qo,o7Z,tc,fX,AK,cci,E7r,ot,Wss,LsZ,E5,OkJ,iki,LX,uZT,FsZ,NZ,QrZ,JK,$ok,eQ9,jd,bkc,Xic,Tqi,doT,MZ,fp,rc7,v7J,sh,m$,zQs,Oh,iN,Pr,uN,Fz,Qi,IK7,$_,en,bN,Nqr,Uoo,Ta,SYY,vr,w9,k_,Zc,JA,g9,jr7,kTT,Vi,tA,Cp,Do7,ZkT,JcT,g7j,Cj7,M5,RM,lH,yG,fG,Gs,aM,MJo,B4,nG,mH,oM,hM,Ep,W4,RD9,LG,Op,uH,yKr,fUT,AKq,Fw,$J,eq,Ts,dF,v4,zs,mZT,oU9,hDK,cKQ,wF,EUs,xJ,IM,Ns,WUi,pG,LUq,iXs,kJ,Zo,VG,qs,tM,FU9,uSk,X87,eDT,dZK,ya,fS,B0,zDi, xZ9,w8r,nS,oA,IUY,mi,LS,lo,p8Y,NO7,ev,$b,RA,UZr,bo,TP,XT,S57,rX,jto,zP,wX,xb,IA,Nh,pS,Ut,jv,kb,gX,Va,to,DZr,JK9,ZXZ,gUq,Vdk,f$,AW,K$,q5K,sJ,td9,BI,HI,n$,Md9,RJr,fck,lcq,AAs,sLT,om,acr,K$9,hW,cI,B9T,EJ,Hpc,WI,m59,n_9,o_Z,hJk,PI,u4,cAJ,E_J,W$9,Fu,QT,L$7,uzj,$Q,F$j,QLc,T9Y,To,Xrr,$5q,rAT,wrs,vI,wo,Im,xQ,x5q,Nd,p$,UJ,kQ,DC,ZC,go,jL9,VT,kac,qd,YQ,g_Z,fD,KD,ad,Vno,Gm,CNj,qhs,sM,Aa,BY,HY,tnq,nD,od,MnZ,ha,cY,EM,yMs,F9,foc,AMj,KHs,GsJ,uc,OM,WY,RpJ,lo9,aoJ,BFk,HGk,nJc,e4,bc,X9,msi,rt,zm,wt,x9,oJJ,cMK,N2,EJQ, S4,UM,PH9,Zl,Dl,uwQ,QMJ,Vl,Ja,$sr,CD,q2,ta,gt,M2,Y9,lT,Rf,G_,epi,yS,Ab,af,bGr,sI,X4i,BS,HS,cS,EI,WS,nY,of,mJ,OI,TFq,iT,ds9,PS,vJr,ek,zpc,bT,KY,X7,T_,dk,xsZ,rk,vS,wk,xG,If,NS,pY,IoT,UI,NFJ,Sk,jk,kG,Za,Da,Jb,gk,VS,CY,qS,p4c,Sp9,YG,jMZ,kso,Ds9,R7,l7,o7,JM7,hF,VqQ,cE,qpr,Ed,WE,L8,tqk,Od,YpY,i7,MqQ,RIQ,PE,lf7,u7,Fg,QQ,yok,ey,b7,Aok,dQ,afk,ffJ,rQ,z2,wQ,HSr,sAK,I7,p8,nbj,obj,hIj,jy,gQ,VQ,C8,qz,tF,Yz,Wii,LiJ,OSY,PoZ,uTc,ly,yf,Fi9,f4,QAJ,$hZ,bSs,roq,AT,vbc,zIo,w0T,xhT,IfJ,ag,NXZ,BF,Uh9,mE,og,jAs,hT,cF,EQ, kPq,Dhj,OQ,iy,uy,F1,JoK,gbJ,Vvk,dN,TX,X1,Coc,qtT,tvc,rN,vF,zX,Mvs,p4,UQ,lCJ,yWQ,fCY,Sj,jj,AWZ,KbY,km,GoQ,aC9,smj,Bok,gN,Zx,Vf,C4,qu,H$Z,nQY,mdY,tT,Ym,oQ7,Mu,hSK,cW9,EQQ,RR,WbQ,ls,yC,LbY,O$o,i$s,P4Q,uuT,FbT,K_,Gl,aR,BM,eS9,HM,n_,b$r,$d7,sD,eAi,mz,oR,h4,ED,cM,bDr,XYZ,Ttc,WM,raJ,L_,zA7,wYi,x2Y,Il9,NtQ,pYi,U2o,SMs,QC,$F,eb,km9,jdj,D2i,ZDQ,Tl,Jac,da,g9c,V4o,ra,vM,zl,CcZ,wa,xF,qMQ,IR,NH,UD,Sb,jb,kF,DQ,ZQ,t4Q,YMj,M4s,R3T,J4,las,fac,ybY,C_,qH,KJj,Abs,sf7,nGs,HYj,t4,mSo,oGY,h39,EGr,cbi,WJs,YF,LJQ,OY9,Rk,iYi, PTj,u7k,FJY,ln,QfK,y$,$Sr,fa,Al,bYq,Ka,XSZ,Gg,ak,TkY,dSk,sO,HX,vGJ,na,rbo,z3k,wSJ,xSJ,Nks,m_,pSs,cX,EO,SIi,jfY,ZYr,Jbj,WX,La,OO,PX,un,Fb,Q$,$Z,el,bn,Xb,Tg,dr,qIY,CTY,tkK,MkQ,YIK,l17,VkY,Rcc,gGq,rr,vX,f1s,AFi,Kkc,Ik,NX,DT,zg,a1J,ZT,yFi,BQY,H8q,s7q,Jl,gr,V$,Ca,nzT,G2K,mzT,qX,ozQ,hcT,cFi,Ezc,Wkk,i8J,P7Y,ugQ,Fk9,tl,YZ,Q77,$z7,XET,TQQ,MX,lO,rFk,y5,Rs,zcQ,vzj,wEQ,xzq,I1c,Ag,Kr,pEr,Uzj,Sdq,j79,k2Y,DzK,Z8K,JFi,gzQ,VyJ,as,sj,Bb,Hb,nr,mo,C7Q,YdY,Myj,R$r,yT7,lx9,fxZ,cb,Ej,ATi,KEZ,GXJ,Wb,Lr,Oj,iO,Pb,uO,F4,Q5, ax9,eH,BNT,X4,H4k,nmZ,TY,dJ,rJ,vb,mur,omQ,cT7,zY,Rg,iSc,pr,Emj,WEo,Uj,LEq,Ng,i4J,O4r,Is,SH,jH,Pyr,u1q,FEi,Qgo,k2,$uZ,D9,ty7,qdr,Z9,Jg,V5,Cr,XFk,qg,tg,Mg,TNr,duj,Ru,xuo,Kv,vmc,wFi,fv,yL,ou,cK,Ix7,Lv,NNY,OT,ix,pFc,SQQ,kXi,ef,vK,gm7,Vjk,Cyi,zZ,Mji,QL,Z4j,lQZ,YQ9,qQ9,tjJ,y47,Rlc,xv,pv,A4j,Kzr,Glk,aQs,sRJ,Sf,Bao,kv,H_J,oFi,hlc,DY,EFT,Lzo,WzT,O_q,J_,Cv,M_,lG,y_,f3,AR,K3,uRq,Fzq,GN,QRQ,a2,sP,R2,BG,HG,n3,fr,mg,$Hk,hR,XMc,cG,EP,dH9,Taj,r47,vFQ,zlq,WG,wMs,xHQ,IQK,L3,OP,pMj,jRi,klT,iG,gFK,J4q,VbZ,Csr,qDs,PG, tbi,DHk,uG,YDi,MbJ,Fd,lT9,ylc,fTk,Ali,K_7,$l,GgQ,aT7,skY,BrZ,mXT,Haj,e1,bG,Xd,TN,de,re,vG,zN,hms,xl,we,cl9,Nl,L_o,I2,Oak,iaq,$XK,PnK,ubc,F_J,QkT,p3,UP,S1,ems,j1,kl,Dn,Zn,JR,ge,rl7,bas,tR,dXQ,Yl,TrY,ql,V_,XXZ,C3,Rj,zmq,yg,lw,wXQ,xXr,sl,B6,nz,pXq,H6,hI,UXi,c6,ITk,kgT,DX7,Zaq,Lz,Ol,iw,Jlr,P6,uw,FD,Qg,gZq,$A,eC,bw,VlJ,Cno,XD,qOo,SDs,YOj,MlZ,Rq7,l9o,f9c,tlK,Agr,a9q,dU,v6,BJk,Hr9,n2Y,mgZ,hqZ,xA,wU,cgZ,o29,Orj,Los,POk,NT,u4T,Ij,Ul,Foj,SC,kA,DF,Qss,$gr,MT,eqK,l0,brQ,XbZ,ng,TJT,rgJ,mO,v2r,zqY,pbQ,wbs,Ev,WJ, Lg,i0,PJ,Dgr,u0,Ft,QD,JgY,b0,g29,VHj,Xt,qjZ,dx,rx,vJ,z8,tHZ,wx,Ic,N3,pg,Uv,Yji,MHi,Ras,jx,k8,DG,ZG,JU,gx,lYZ,y_q,fYZ,A_q,Kyq,GZj,VD,aYj,l8,sur,BCK,HvK,yX,AZ,KE,GD,Bg,Hg,nE,m_c,hZ,cg,EC,ovk,haY,Wg,c_i,Evr,OC,Qu9,$_Q,eaJ,i8,bv9,XK7,r_9,u8,zac,vvc,wK9,IYc,NCk,$O,eV,pKq,b8,XI,TD,d_,r_,vg,zD,w_,xO,I8,NM,pE,UC,SV,U_j,STq,jus,Ze,g_,kZ9,tZ,YO,MM,Rw,lW,A$,K0,gvY,G9,aw,s1,CxQ,Vfc,D_Y,n0,Hh,Mfo,me,Ph,L0,uW,Fy,lnk,$a,Kgj,fn9,ARQ,ano,mlo,s2Y,H3r,nlK,Rx9,bW,e0,hxY,T9,dg,rg,cRT,Nr,Elc,p0,U1,S0,ka,Wg7,Zb,J$,LgY, gg,Vt,i3i,t$,Mr,Ra,lJ,y8,fF,AD,KF,GI,aa,udi,sG,nF,HW,Q2c,XGJ,exj,b3Q,TeT,dli,vlq,zxs,rRc,xlQ,hD,cW,LF,Inr,Ne7,WW,OG,Ulr,SPQ,Z3c,DlJ,Fr,Q8,$1,eI,bJ,TI,glZ,V1J,CGT,Ia,Nt,qPo,t1J,YPQ,k1,Dd,Zd,M1T,RWq,yIq,AIQ,CF,Kjo,Y1,qt,ld,y1,Av,GSY,nO,mu,oq,hv,EE,Wx,OE,nAj,mTr,Px,oAk,hWT,Fv,cI9,EAr,Q1,$R,Wji,LjJ,izs,Tn,uDj,Fj9,bd,Qji,$TT,bzk,eWY,zn,Pwj,TUJ,dTj,UE,N1,rIK,vA9,SY,jY,zWK,w6k,Zg,xTq,IFY,NUJ,p6Q,q1,UTY,SlQ,jjj,kS9,DT7,Zzo,JIT,gAo,YR,VC7,R1,qlZ,tCZ,YlY,MCT,Rnc,lF,a1,yUT,KOi,s3,G8Z,sc9,lGY,BxJ,Hgi,n87,fGs, AU7,yY,f1,GE,aGK,K1,AL,m3Y,o8j,hnJ,cUT,E8T,WOQ,ut7,LOJ,m9,o1,E3,$3j,XJc,bgo,cv,O3,Txk,uF,d39,v8i,bF,rUj,jcc,znk,Svi,rG,k8o,JUQ,vv,dG,D3K,ZgQ,g8J,wG,C0j,qvr,tx9,Yvk,Mxs,RRq,les,VxT,feT,AZi,K8Y,aeZ,GDT,B_r,p1,HE9,U3,S8,j8,nOQ,mMc,ZA,JL,hR9,oOj,gG,cZs,W8q,OEq,L87,iEr,F8J,P8Y,AS,an,GU,Q8j,K6,m1,on,hS,c$,$MT,W$,bEK,iq,Ox,uq,Fj,QK,$V,XgZ,ec,Xj,T_r,dz,v$,zU,dMk,rZZ,vO7,zR7,wz,In,wgQ,Ne,p6,Ux,IeY,Sc,jc,N_Z,DI,gz,JS,ZI,VK,C6,SCJ,gOr,C8T,JZq,ZEK,VVZ,YV,lr,MVZ,qCq,tVQ,YCY,UMY,swo,nl,abs,na9,G9Y,tS,mp,Kl,By, Bgq,fl,kDo,j87,DMq,RD,Ker,EV,WeK,Wy,O0c,i0T,PWK,OV,uyo,Fej,Qwo,ebq,b0j,ur,Tgc,F6,drQ,r$j,zbq,whJ,xrk,$$,Ibk,phk,eh,UrY,br,X6,aq,J$J,t0s,wP,M0K,yDk,ID,ADr,KKk,GIr,Cl,Vv,adK,J0,enc,D0,gP,Z0,NJ,fi,yN,Ki,aN,B09,s_,HB,ni,HFi,n1i,he,o19,hoT,cDY,Li,E19,WKY,LKJ,OFr,iFJ,PJQ,ur9,O_,FKr,i1,u1,Qaj,$tQ,eoK,bF9,XW9,Fa,QN,T0J,dtK,rDi,v1s,zoJ,wW9,xtQ,Xa,TG,dp,Id7,rp,N0s,zG,UtQ,pWQ,xD,IN,NF,pi,SGK,U_,SW,jaK,kIk,jW,kD,g1K,Dtr,JDJ,ZFk,Dt,Zt,Je,VI9,CJc,qGJ,gp,YG7,lgT,R4o,VN,Ci,qF,te,YD,Rl,lt,yc,fR,A7,KR,yvs,fgi,Av9, Ge,al,sX,BR,nR,ol,ag7,GnY,cR,sqJ,EX,WR,LR,OX,PR,Qc,$i,eE,bt,Xs,Te,di,ri,nRk,vR,ze,wi,m1J,h49,pR,cvZ,UX,SE,LuK,OOk,iOK,uvQ,QqQ,gi,$1r,CR,Vc,Xxk,T47,d17,t7,Yi,vRY,Rh,la,yJ,fJ,wxi,AV,KJ,GB,x1J,ah,z4Y,sn,Bo,N4Z,IgK,Ho,nJ,md,oh,co,U1o,SEY,Wo,LJ,ia,Po,jqi,On,ZOK,Jvi,gRT,VYj,Cd9,qEj,tYc,Fe,ua,D1k,RXq,QJ,yLK,fAk,TB,ALr,ee,ba,K9q,dh,aAY,BGQ,rh,vo,H1r,zB,mp9,wh,L9j,ES9,oSZ,cLo,hXY,Ih,NW,pJ,Un,Se,je,kr,Z3,i1c,F9J,VJ,dzc,CJ,Q1Y,eXi,tV,lE,Yr,R3,MW,TGZ,XvQ,b1T,dp9,yH,rLY,xpY,fn,Kn,NGY,GJ,a3,sR,BO,pvo,Upi,HO,nn, m0,S3K,j1c,hx,Ln,OR,iE,PO,uE,FP,QH,$f,eP,bE,XP,TJ,d8,kEc,DpT,r8,vO,zJ,w8,xf,g8,Z19,JLY,VH,Yf,CFi,q3i,MU,RF,GM,aF,Y3r,Hz,M8Y,RUc,oF,lIT,fIk,ySZ,ASj,K1J,GUK,aIi,snr,Bzc,nVq,H6k,meJ,cS7,W1c,hUo,L1T,O6j,PqZ,cz,Eq,F1Y,ujj,Wz,LH,Oq,$eJ,i5,Pz,u5,b6i,X$7,F8,eUJ,Qo,rSZ,$E,e6,b5,X8,TM,dE,rE,vz,zM,wE,xE,IF,N7,pH,Uq,S6,j6,kE,Dz,Zz,JJ,gE,Vo,CH,q7,tJ,YE,M7,RW,lb,yd,fm,Ah,Km,Gq,aW,sB,Be,He,nm,m5,oW,hh,ce,EB,We,Lm,OB,ib,Pe,ub,FX,Qd,$y,eK,bb,XX,Tq,d1,r1,ve,zq,w1,IW,N0,pm,UB,SK,jK,ky,Zy,Jh,zUZ,g1,q,Vd,Dy,Cm,q0,th, xeq,M0,Nzq,Yy,p$J,lu,Ue9,fd,RI,Aq,Kd,GF,sb,jnq,kUc,DeT,Z69,Wl,Ld,oI,Ob,gVZ,VcK,CqZ,qxZ,Sxo,tcc,aI,Yxq,Mcr,Pl,eN,uu,Hl,RHc,Bl,iu,FM,bu,y0Z,nd,mf,$C,Qx,f0Q,XM,TF,dw,rw,A09,vl,zF,ww,xC,II,Kpc,GwJ,sDc,BPs,Ub,SN,n$Q,jN,c0T,Wpj,OlQ,ilc,D_,u6s,FpZ,qc,QDs,tq,YC,Mc,Ri,lQ,yZ,$Jc,bli,XyJ,eHZ,TPJ,dJJ,Gu,ai,Bt,nV,mL,oi,r07,hP,v$Z,ct,Ez,sz,Oz,iQ,Pt,uQ,zHc,LV,xJT,Fn,I0J,NP7,QZ,pyk,$X,ei,UJo,SVK,bQ,jD7,kwY,Xn,DJY,Zlc,J0r,g$s,Tu,ds,VhJ,CrT,rs,vt,zu,qVi,ws,xX,Ii,N$,thQ,pV,Uz,YVs,Si,Mhr,ji,RdT,ltT,yec,fti,Aek,KFq,kX, GGj,atk,sNi,Ds,Bpk,Zs,HiY,JP,nD9,gs,mFq,oDT,VZ,M$,hdK,Rz,lz,yW,fo,ceT,AO,Ko,GC,ED9,WFs,B9,H9,Oij,no,iij,P1j,LFo,uaJ,FFo,QNr,oz,$F7,hO,Eu,W9,eds,Lo,Ou,P9,biJ,uz,FN,XBY,$5,XN,eM,v9,zC,TpT,wy,dF9,Iz,Nw,po,res,SM,vDK,k5,Dw,Zw,dy,JO,gy,VW,zdJ,Co,tO,Y5,wBj,Mw,Ro,lZ,yh,fw,A2,GA,ao,se,Bs,xFj,Ito,Np9,oo,Hs,h2,cs,pBj,UFZ,S_i,Ee,Ws,Lw,jN9,kGZ,mA,DFj,Zij,Oe,JeK,iZ,Ps,Fp,Qh,$N,eD,bZ,TA,dT,vs,zA,wT,xN,rT,C1i,q_7,NA,pw,Ue,tWY,jD,MWY,kN,Du,Rsj,Zu,gT,Cw,l7q,Vh,qA,t2,YN,y7c,lg,A7j,K2J,Ge7,fZ,yq,a7k,sl7,Biq,A6,nik, SD,HRq,mL7,KZ,oij,G3,hsY,aT,c7q,Eii,W2Y,L2Q,ORJ,s2,Pts,iRi,Bf,mw,uss,oT,F2i,h6,QlY,$Lr,cf,es9,bRY,XRs,Ti7,E2,dLc,Wf,viq,O2,ig,wRQ,zsK,xLk,I77,Nis,ug,FA,Qq,pRk,UL7,SXY,jlk,kej,DLT,ZRj,J7o,gik,VE7,eG,bg,Ct9,qXs,XA,T3,tEj,d5,r5,z3,YXQ,w5,xP,IT,MEY,NB,RiJ,pZ,l37,U2,yVk,f3Y,SG,AVT,Kd7,GBT,jG,kP,D5,Z5,J6,a3Y,shi,g5,Vq,CZ,BhZ,qB,t6,YP,MB,RS,HJi,nrr,lk,yI,mW9,fW,AG,KW,Gc,a0Y,orq,hiq,aS,cVq,Erc,Wdc,s4,Bp,Hp,nW,mV,oS,hG,cp,E4,Wp,LW,Ldj,OJ7,$q,e3,Paj,bk,j3,IS,ZR,bJ9,vrs,XoT,zir,xWo,I3q,woq,NhK,poo,UWZ,fs,kBZ, JVY,ZJo,VeY,CaJ,qnc,aU,sa,YnQ,MeJ,fEs,Bu,AxJ,RMT,Hu,ns,mY,oU,GJo,B8o,aEY,mUY,Onk,L0c,ofs,inY,cu,cxQ,hMo,F0Q,eMq,$UQ,dUq,bn7,Ea,Wu,xU9,iD,IEQ,DUc,kJo,j3q,SRk,pOo,gfi,JxT,UUT,YRY,tPJ,MPY,$s,yJs,Rfr,lzT,N8i,fzr,AJc,Pu,F$,CEQ,VPJ,qRq,K7o,uD,Zno,azr,BET,nEY,oEc,EEi,W7J,OHY,iHc,u8T,P5j,bHc,QFY,F7o,XzZ,rJT,vEZ,zfc,wzq,IU,Ks,NEq,x7k,Ua,SqQ,ks,kMQ,D7o,jFQ,DX,ZHT,ZX,J9,fV,gm,jhQ,Vk,Cs,qj,JJK,gEY,t9,V6q,C5q,qqi,Ys,Mj,R0,lL,yP,fN,Ak,KN,G5,t6r,Yq9,a0,M6J,s$,nZ,B5,H5,yhc,R6j,nN,fyJ,Ah9,K5J,ml,ly7,o0,GqQ,hk,ayi, sWT,grr,U7s,B17,c5,AP,pd,ew,Hms,nyY,W5,wOi,Ls,m0Q,Nj,ps,X$,bD,h9,dm,hfr,L7c,T0,rx7,TE7,oyZ,PEk,EfY,LN,pzZ,G0,chc,h6j,K0q,cJi,Ey7,d7j,wm,vfk,zM7,Q3K,m7r,HHT,nfj,s3k,yxZ,lET,tei,GMk,W0K,$7o,XOT,T8Z,vu,z0,rm,efc,sFQ,L5s,W5K,O$,iL,P5,uL,Ff,QP,Om7,bL,Xf,T5,rZ,v5,imq,dZ,z5,wZ,PbJ,xn,I0,N6,U$,F5c,QWQ,S9,j9,kn,DD,ZD,Jk,gZ,VP,Xe9,q6,T1i,CN,d0T,e6o,bmZ,rhQ,tk,Yn,vyQ,z6Y,M6,weJ,Gn,IyY,x0r,peJ,SB7,jWs,U0i,ZmZ,Jhq,VKq,KA,Gk,Cbk,qBc,ae,sA,tKQ,YBo,MK9,RFQ,Hq,l_i,mc,oe,f_j,AqK,a_9,Bwr,Hdj,sIQ,EA,LA,Wq,nCY,mcq,hF9, oC7,hN,cqj,ECj,Wfs,Lfj,cq,uMi,Ffr,QIs,Pur,idk,OdK,$cj,eFJ,KfQ,bd9,GFr,XlY,Two,zFc,dck,rqi,vCs,I_Y,wlQ,xcT,Nw9,plo,iS,jI9,Ucc,kFY,SbK,DcK,Zdq,Jqi,gCc,VNi,CuY,qbr,tN9,Yb7,MNo,RNT,lsk,Pq,fsY,AP7,KLi,yP9,Gui,asi,HVj,Fq,e2,Xq,nXr,Tk,dM,rM,cPT,WLq,EXZ,OVj,XtJ,PQq,UA,zk,LL7,hNk,oXZ,m$s,pA,wM,NQ,Zp,JN,rPZ,gM,Vz,Dp,x$i,vX9,zNT,Isq,CA,qQ,pt7,YM,MQ,RX,l6,yF,fe,Ay,U$J,SzQ,Ke,Gx,sr,kuj,D$q,aX,ZVc,ViT,CQr,BU,qzZ,mG,tis,oX,cU,Yzo,hy,Er,Mio,Le,lwi,yOi,i6,PU,eg,AOQ,F3,b6,Tx,KxJ,rD,$H,X3,GC7,vU,aws,zx,szs,u6,QF,fw9, dD,wD,Byc,Hos,xH,n59,IX,NO,pe,Ur,mwq,jg,Sg,kH,DH,o5Y,h_j,ZH,Jy,gD,VF,Ce,cOY,qO,ty,E5J,Lxo,YH,MO,RZ,ioQ,Oor,lh,Pzs,uNT,FxK,y6,QzK,$w9,e_Y,boZ,X9J,fK,A1,KK,GL,TyY,dwk,s6,rOZ,BC,HC,v5o,z_k,nK,w99,xw7,UwT,Suj,Iwj,NyK,p9j,oZ,h1,cC,E6,jzi,kCj,DwJ,ZoZ,LK,VMj,O6,qu9,YuZ,tMZ,Q6,FV,RhQ,luK,y2T,fu7,$g,A2q,bh,XV,KAo,auJ,soT,dS,wS,mAs,eNk,xM,hhT,c2J,ENj,WAT,LAi,vq,rS,Nq,pK,PZZ,up7,FAY,U6,bwr,QoQ,$Ak,TTq,dAZ,S5,r2j,Xso,vNk,j5,kg,DV,zhc,wsc,ZV,J1,xAc,gS,Iur,V6,xg,Yg,NTk,bVo,iV7,Mq,R_,yy,fI,Au,KI,GO,li,Bn,UAZ,nI, joc,mn,DAK,kAq,SeK,ZwT,J2Y,gNq,EN,VDQ,CZZ,tDQ,Wn,d$s,LI,MD9,l5J,S2,y6i,f5j,Ie,unJ,Qi7,$$7,Yec,ii,A69,KwY,Pn,G3r,FY,Qy,$h,er,bi,a5q,XY,TO,sTT,B5s,d2,r2,vn,zO,w2,xh,nPJ,HZZ,I_,mBT,hjk,NE,c6i,oP9,fU,l2,An,Gt,aG,hu,EPr,FwJ,cl,yV,nU,bZY,T59,Zq,ES,Dq,Wm,i2,RG,Pm,wf7,u2,Fh,xBZ,I57,N5r,pfr,QV,UBT,S2T,$6,jTs,gPj,J6q,k3q,ZZq,DBo,eu,VGZ,b2,Cgk,q2r,Y2s,MGs,REc,lRr,Gcr,vm,zt,BbZ,w3,x6,HWk,oqK,hEs,cGQ,EqZ,IG,NN,pU,US,WVq,OWk,iWs,CU,Tbo,QSj,$Y9,rG7,qN,vqk,wpK,zET,xYT,Y6,lp,IRK,tn,yE,fC,NbT,UYZ,kcZ,aY,nC,EU,OU,y9k, fX7,QE,F_,eU,bp,A9s,aXr,G09,sUs,Tf,X_,Bm9,nsT,mjk,h0i,vZ,osc,c9Q,Esi,wI,xK,LY7,Gf,rI,V39,pps,Y4r,jU,$K,HsZ,CC,WZ,tt,YK,djq,vs9,r9s,LC,ip,RE,lK,wuj,ys,fM,xj9,PZ,Az,KYj,Gv,FYr,aE,ZWs,DYq,S4r,sW,Nmk,mv,gss,J9T,CDq,qaJ,cd,Wd,LM,EW,iK,Pd,twQ,uK,MwZ,FE,lDj,eF,Rki,bK,XE,Klc,Tv,s0q,BZZ,vd,HNi,onq,ZN,gn,Vs,tz,hk7,M9,Rx,As,Kx,GW,ax,ck9,so,BV,ONJ,HV,nx,iNj,PLq,mN,ufQ,Flj,Q0s,$6Z,ox,hs,ekk,bNJ,X5Z,Lx,Oo,ul,FU,TZ9,d6q,Qu,$e,eZ,bl,rk9,vnQ,XU,zkJ,w5s,TW,IDZ,x6Y,NZc,dV,U6r,p5Y,S$Z,rV,vV,j0j,D6j,ZNJ,zW,wV,xe,Jkr, V9c,Ix,CLo,px,q$7,t9Z,Nk,Uo,SZ,jZ,RgJ,yNJ,Y$r,lp7,fpc,M9T,ANr,KcZ,ke,Gko,seK,nMY,oMZ,mQs,ts,qk,RB,cNT,lX,ym,f2,Wcq,AE,Lck,EMQ,K2,PS7,G6,aB,uqk,si,FcT,FVJ,XpZ,$Qj,Qeo,bAr,egK,Xq7,BQ,HQ,n2,mX,TMr,vMs,cQ,Ei,WQ,wqj,zg7,oB,xQY,Ipr,NMJ,UQo,L2,CS9,FK,Qm,yyj,Z$,Ayi,KGk,Gxk,aHJ,sXY,ea,BD9,bX,XK,T6,HeJ,vQ,nHj,mOk,z6,wl,oHi,hwY,cyi,EHZ,WGc,xc,rl,LGK,Oeo,IB,P6s,u3j,FGj,Nv,QXs,$Oi,ewk,beq,XUs,TDK,dO9,ryr,vHT,zwQ,p2,xOc,Ui,NDs,IHc,UOc,pU9,jXr,Zm,wUQ,Sa,JE,kxZ,gl,Vm,C2,qv,tE,DOo,Yc,ZeY,Rb,qrY,MgQ,Ruk,lVY,y1Z,fu, fVQ,Yrq,C6J,A1K,lI,KCK,aVQ,Mv,yp,gHk,Vgo,AY,sZj,BSK,tgZ,Jyo,HKc,Gp,ngZ,ab,sf,mq7,Bk,c1r,og7,huY,Hk,EgT,nu,mB,ob,hY,WCK,LCY,OKk,ck,Ph9,uVq,Ef,FCo,Wk,Lu,QZZ,$qJ,eu7,bKi,XCs,TSY,wCc,r1q,BMi,iI,IVY,NSQ,vgY,zuj,dqk,FB,kLr,uI,Pk,xqc,ZKi,jZ9,S6J,Uqc,pCT,$x,J1i,D$,eL,bI,XB,ggK,Tp,V5Z,dd,ChK,Mk,q6j,rd,gV,Cx,apj,wd,Ib,M5o,RBT,Ny,Uf,xx,zp,SL,vk,t5o,Y67,jL,lqk,yuc,Dm,Srs,Js,kx,fqY,pu,Aus,Knk,GOT,aq7,Di,Zi,s_7,B29,HIs,nhJ,mEY,GLk,uX,gd,Vp,JY,hBs,OA9,iAY,Cu,cuj,EhQ,WnY,Lno,qy,iIk,tY,PiK,Q_K,OI9,$Ek,bIJ,eBk,dE7, Yx,lM,vhT,ruo,Iq9,wn7,N2s,pnj,zBk,xEY,UEY,yM,SNj,kOo,j_J,fT,ieo,DEj,ZIi,Juj,ghi,Vrs,CiT,qNi,trr,YNi,Mro,RzY,lvY,ynq,KT,KQ7,Gto,An9,avi,sGc,B3j,HUc,G$,mNq,o6Y,sg,hz9,BN,HN,cn7,nT,E6c,WQK,mD,LQ7,OUZ,iUk,P2k,oQ,rNj,hp,QGi,cN,FQT,$N9,ezY,dQi,hE,bUJ,Xmk,T3Z,WN,rnY,dNZ,pmZ,N3r,uM,UNZ,IvZ,ktJ,F2,DNK,ZUq,Jns,C2K,qSY,g6J,YST,Mur,R1i,lPr,ytZ,AtQ,Kh7,GfJ,fPQ,kL,Eg,sYJ,tuK,BI9,VuT,Dh,nKo,aPc,jt,mDZ,oKo,EKr,OCQ,Whi,Jp,iCq,gj,h1j,Zh,VM,cti,tp,Fho,$DK,QYQ,e1r,u_k,bCo,XZj,CT,TIZ,dDT,rtJ,z1k,wZr,vKT,IP7,pZY,NI9,kfY, SUr,xDi,UD7,DDi,jYK,ZCY,Jt9,gKk,qUj,CpQ,VUs,YL,tUZ,MUo,RYY,lNj,yzT,fN7,Azs,kc,Kvj,GvJ,aNi,Bn7,sEi,HMk,m9j,oT9,nTY,qG,Xnr,czj,ET9,Wvq,QEY,iMj,PK7,uEY,$99,bMq,Dqr,MG,OM9,LvQ,eYo,Ye,Fvj,Of,Vu,Lhk,vTi,rzY,zYc,wdK,pdY,U9s,YU9,RQ,My,Tno,SWZ,d9k,jEk,Fni,kvQ,uYj,PpK,Xd7,T2q,f9,AQ,ZM9,K9,Jzr,gTr,VFs,CKJ,qWJ,RZZ,lhq,KDK,ypT,Ap9,G$9,aP,HTi,sQQ,BjJ,oLr,hZq,cpk,s7,ELZ,GV,WDr,mGi,ah7,BT,LDi,fhi,OTT,HT,PM9,iTj,FDT,QQc,$GK,u2i,n9,XNc,bTY,rpk,dGk,Tjr,vLs,zZ9,mP,wN7,xG9,Njk,pNk,Ihs,UGr,ZTJ,jQT,k$T,DGs,JpJ,gLi,Vto, qgY,CMj,ttY,Yg9,oP,Rrc,lk7,fkY,yQK,AQc,MtK,KPY,akq,sP7,H9r,miK,BAJ,oYQ,hr7,cQZ,GVo,EYK,nYr,cT,WPr,LPi,O99,i9j,PVY,u0k,FPi,$ij,b97,XT7,TAK,diJ,rQJ,E7,vY9,WT,wTj,xiQ,PT,NA7,uV,UiY,S79,jPr,kVZ,Z9s,Dij,INs,Vmk,x99,F0,CVi,JQK,gYi,q7T,em,Y7o,tmQ,Mmr,RTZ,lJ7,Afs,yfk,aJY,bV,fJJ,sv7,X0,otk,Bf7,dA,rA,hTs,TV,cfr,vT,LR7,WRj,nt7,m4i,Oyi,iyo,P$r,HyJ,uHQ,zV,FRo,Et9,pTZ,$Y,$4o,eTZ,byi,XAQ,Tfr,d4Z,rfj,vtr,zT9,wAo,IJJ,Nfc,pAk,x49,U4j,SHo,jvQ,kHq,D4c,Zys,VB9,gt9,JfT,C$Y,IP,VWj,qHK,tBq,Ni,YHo,MBY,U7,yCZ,frr,Sm,KIK,GQT, ACJ,lr7,jm,p9,Ryc,Zk,kY,arj,JQ,Dk,nwq,hyc,EwT,WIQ,Oqj,B7T,cCs,iqk,HqZ,PRT,ucr,FIK,tQ,gA,ey9,bqJ,QKj,C9,T7T,dbs,ow9,mbQ,X2q,rCs,LIr,$bi,sKc,YY,Mi,Rv,vwQ,l$,p29,xb9,Ubs,IrT,w27,SFK,zyK,Db9,jKK,yj,Zqs,gwJ,CRc,qFo,MTj,GH,ReZ,tTY,qi,fWQ,AjQ,ny,HC7,fy,KrT,G4s,spJ,aWq,Bvk,yj9,sH,H5j,nBr,mfs,her,oBq,hYi,av,cjj,WrZ,EBr,O5k,LrK,VTr,PPK,i5Z,BA,Af,uxr,ov,FrQ,QpJ,$fc,eer,b5k,mR,YFJ,D9Y,VU,XPc,hf,Tvj,df7,rj9,vB7,zej,cA,EH,IWK,NvK,pP9,wPK,xfs,WA,k47,Syq,jpc,Dfs,Ly,Z5r,Jj7,gBq,OH,VR9,qy9,tRT,Yyo,i$,CPY,PA,u$,MRk, RLk,$t,FH,Qj,lZc,eB,yXQ,fZT,AXj,G1s,KTo,vA,s9r,BcK,aZj,HQY,zH,n0j,wf,mnZ,xt,o0c,hLi,WTZ,iQ7,cXr,LTT,Iv,E0Z,OQr,PeQ,ui9,FTk,Q9T,py,$nT,jB,UH,eLZ,kt,DJ,XwJ,Tcc,Jf,gf,dns,ZJ,rXr,Vj,zLi,v0K,q4,tf,Yt,IZT,wws,xn9,M4,NcQ,j9r,UnZ,pwr,S8o,RK,DnQ,VOq,CeJ,y2,q8r,lR,ZQk,JXs,MOo,fq,AC,RPc,l8k,yws,f8r,AwJ,aK,a87,s$7,BBk,sF,GjK,mP7,GQ,B2,H2,KSK,hP9,cwi,Euk,oK,WSr,c2,LSK,hC,EF,OP7,iPs,W2,P_c,uF7,FS7,Lq,OF,Q$7,$Pq,ePo,bPs,Xas,TBj,dPj,zPJ,rwr,was,xP7,paQ,Jwo,d7,C_K,Y9s,tpT,q9K,DPK,ZP9,UPi,j$j,gur,r7,v2,RKY,N9,ykq, lSc,w7,IK,yB9,fSK,S9T,Vpr,KZY,GrK,aSQ,Nb,Zr,BRo,HhY,n4k,JC,mCo,hKq,o4s,cBo,g7,V2,E4T,Ohq,ihr,tC,LZT,PmJ,uWq,WZQ,Rp,FZK,Q4q,Mb,$Cc,eKQ,bhK,XDo,dCr,TRk,zKT,wDo,rBq,IS7,NRK,v4j,f5,Aj,pD9,j4i,K5,SwZ,UCk,kri,Zhk,DCZ,JBk,G4,g49,VQi,Cmo,qwk,tQc,Ywo,MQY,lBq,RGJ,yHq,fBJ,AHs,K6Z,GRr,sCZ,sy,ap,BP,BLi,Hck,aBs,cH9,Ekk,W6k,icq,OcT,L6Q,PUc,uJq,HP,n5,F6Z,QCo,$K7,eGj,X3s,TLY,op,dKT,mr,cP,bcs,Ey,rHc,vkY,zGi,w3o,xKK,WP,IBo,NLk,SmQ,L5,jCZ,UKj,Oy,iP,PP,DK9,Zcq,JHq,kRs,VX7,gkQ,CU7,uP,qm9,tXJ,MXs,y8Y,Ymr,RVs,Fx,fMK,K3J, GiQ,s67,BW9,QA,$B,H79,A8J,odi,mx9,ndQ,eR,bP,c8s,hVr,Xx,T4,dv,Edc,rv,W3i,L3j,O7K,i7r,vP,PYJ,z4,umk,wv,xB,Ip,F3T,Nf,Q6s,p5,Uy,eVJ,TW7,dxo,$xZ,r8k,w7q,xx9,IM7,zVo,vdT,p77,NWZ,Ux9,kiY,kB,Z7J,Dxs,Skk,j6j,J89,gdk,DW,ZW,V$9,CYc,qkq,t$T,Yks,M$i,l29,yrZ,Hfj,KMY,G7J,f29,maJ,tj,Mf,WMi,LMY,ye,fQ,Ofk,o3T,qf,G1,KQ,R9,P9J,ulr,a9,QHZ,e8Y,$aq,s8,le,C5,FMY,AX,h8Q,ifr,XcQ,Jj,Bw,TYc,dak,YB,crZ,Hw,nQ,rri,mT,o9,hX,v3c,z87,xac,I2i,wcr,cw,NY7,E8,Ww,pcq,UaZ,Sck,jHc,k7q,Daq,JrY,ZfY,O8,LQ,g3J,C9j,Vos,ie,Pw,qcJ,YcK,MoQ,ue,toi, ROK,lOQ,fO7,Fi,y3q,A39,Kqq,Gho,$0,eO,sOQ,aOK,B6Z,be,Xi,njK,HtJ,mmJ,hOk,ojY,c3Z,dc,Eji,Wqj,vw,Lqr,itj,Oto,PC7,u5k,FqQ,QOj,eOq,bts,X1o,$mK,T6K,dmZ,r3i,vjY,zOY,w1s,xm7,IOY,N6Y,I9,p1o,Umj,SL9,khs,gjK,Zti,jOc,U8,Dmr,pQ,J3c,SO,CCQ,Vsr,jO,tsQ,YL9,Msr,Sg7,JX,m6Y,DZ,Ve,ZZ,qn,RCJ,lLZ,Gyk,aLs,s5J,tX,BKr,HBY,np7,L4i,yB,OBQ,W4J,iBs,fP,KP,Gj,ukZ,PBs,m8k,a$,Q5q,$8j,F4T,bBj,s9,Xjj,TKY,d8c,Aw,vp9,rmQ,Ba,Ha,cmT,R$,zCY,wjQ,x89,ILo,opJ,hCj,l_,NKj,U8i,SZY,j5o,kyJ,pji,nP,ZB9,CBs,o$,qZk,t_Z,gpY,ca,YZK,M_Y,D87,Rvi,V_7,ljZ, E9,hw,y5k,A5j,fjZ,mS,Gdi,Wa,lWk,ajQ,Hjc,Bu9,mRq,ooj,noq,O9,LP,c5i,Eoo,Wtq,LtY,bjq,FtZ,QyJ,P3K,TuK,ijr,u_,vo9,dR9,zv7,w_Q,Pa,QB,$u,p_q,Nur,Ijc,b_,evk,rB,Ssi,dB,ep,kdJ,DRi,ZjZ,X_s,wB,I$,J5T,$Rc,URi,XF,goZ,FF,V7s,C3q,qsJ,U9,Sp,jyT,t7s,YsQ,jp,ku,M7k,Tj,r5j,R9k,l49,xu,ydT,va,f47,zj,$T,AdJ,Gbc,D8,Z8,a49,sJZ,B$j,pP,NP,Hbs,syq,nW7,uL7,mIT,oW7,h97,cdj,Jw,gB,Laj,Pf7,FaQ,WaY,rdq,vWK,z9Z,wLJ,xIi,I4s,N$Y,UIi,pL9,VB,CP,qP,S0Y,jJi,kbk,Hf,DIK,tw,ZbZ,Yu,JdT,MP,R4,gWk,mx,lm,Nc,VAs,Sw,IzT,CfK,Oa,q0T,MA,RT,tAr,E$,Y0J, MAQ,jw,DWT,RtZ,l6r,yO,f6Z,Aiq,fh,Kh,Gr,KmK,sVi,BHZ,a4,HLY,GzZ,mVs,a6Y,nIJ,oIj,htc,ciJ,EIY,BD,LmQ,wyZ,Ht,LZ,OLk,iLj,Pf,Wms,Wt,PvQ,uO7,Fms,HD,Io,$VQ,et7,nh,mZ,bLs,o4,XHY,AB,THK,dVs,f7j,hB,cD,riT,Ew,WD,vIT,Lh,ztj,Ow,im,wHr,xVc,r7Z,PD,I6i,pHq,NHr,um,FW,UVr,QO,SKr,jVK,kzc,DVo,ZLq,Jii,Vzs,eQ,gI7,Cvj,qKY,tzk,YK9,ycU,Mzc,RQd,lKO,Ac8,GTU,aKd,srU,KsK,bm,BqO,Hkt,n7U,mot,o7S,Tr,hQA,dR,rR,vD,cc8,E7t,LsS,Okd,ik8,Pjd,FsS,uZK,QrS,zr,wR,bkK,$oX,eQr,x4,XiK,Tq8,I4,NC,doK,ph,rcU,Uw,v7d,SQ,jQ,zQU,k4,DS,wiU,xoU,ZS,JB, IKU,gR,Nqt,pi8,tB,Y4,UoZ,SY5,jrU,ZkK,DoU,MC,JcK,g7A,VJZ,Sn9,kTK,qYU,tJU,MJZ,RQJ,Hi;lj=function(R){return function(){return RQJ[R].apply(this,arguments)}}; g.Kk=function(R,l){return RQJ[R]=l}; lKq=function(R){var l=0;return function(){return l=this.length))return this[R]}; qo=function(R){return R?R:Ck}; o7Z=function(R,l,y){R instanceof String&&(R=String(R));for(var f=R.length-1;f>=0;f--){var A=R[f];if(l.call(y,A,f,R))return{d4:f,Wb:A}}return{d4:-1,Wb:void 0}}; tc=function(R){return R?R:function(l,y){return o7Z(this,l,y).d4}}; g.lA=function(R,l,y){R=R.split(".");y=y||g.Mo;for(var f;R.length&&(f=R.shift());)R.length||l===void 0?y[f]&&y[f]!==Object.prototype[f]?y=y[f]:y=y[f]={}:y[f]=l}; fX=function(R,l){var y=g.yr("CLOSURE_FLAGS");R=y&&y[R];return R!=null?R:l}; g.yr=function(R,l){R=R.split(".");l=l||g.Mo;for(var y=0;y2){var f=Array.prototype.slice.call(arguments,2);return function(){var A=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(A,f);return R.apply(l,A)}}return function(){return R.apply(l,arguments)}}; g.B8=function(R,l,y){g.B8=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?cci:E7r;return g.B8.apply(null,arguments)}; g.nX=function(R,l){var y=Array.prototype.slice.call(arguments,1);return function(){var f=y.slice();f.push.apply(f,arguments);return R.apply(this,f)}}; g.mU=function(){return Date.now()}; ot=function(R){return R}; g.hK=function(R,l){function y(){} y.prototype=l.prototype;R.lO=l.prototype;R.prototype=new y;R.prototype.constructor=R;R.Kw=function(f,A,K){for(var G=Array(arguments.length-2),B=2;B=0;--y)y in f&&l.call(void 0,f[y],y,R)}; g.iA=function(R,l,y){l=LX(R,l,y);return l<0?null:typeof R==="string"?R.charAt(l):R[l]}; LX=function(R,l,y){for(var f=R.length,A=typeof R==="string"?R.split(""):R,K=0;K=0;f--)if(f in A&&l.call(y,A[f],f,R))return f;return-1}; g.uA=function(R,l){return PjJ(R,l)>=0}; uZT=function(R){if(!Array.isArray(R))for(var l=R.length-1;l>=0;l--)delete R[l];R.length=0}; g.bA=function(R,l){l=PjJ(R,l);var y;(y=l>=0)&&g.FS(R,l);return y}; g.FS=function(R,l){return Array.prototype.splice.call(R,l,1).length==1}; g.TK=function(R,l){l=LX(R,l);l>=0&&g.FS(R,l)}; FsZ=function(R,l){var y=0;iki(R,function(f,A){l.call(void 0,f,A,R)&&g.FS(R,A)&&y++})}; g.dO=function(R){return Array.prototype.concat.apply([],arguments)}; g.wO=function(R){var l=R.length;if(l>0){for(var y=Array(l),f=0;f>>1),H=void 0;y?H=l.call(void 0,R[B],B,R):H=l(f,R[B]);H>0?A=B+1:(K=B,G=!H)}return G?A:-A-1}; g.gO=function(R,l){R.sort(l||jd)}; eQ9=function(R,l){var y=jd;g.gO(R,function(f,A){return y(l(f),l(A))})}; g.Vr=function(R,l,y){if(!g.KX(R)||!g.KX(l)||R.length!=l.length)return!1;var f=R.length;y=y||bkc;for(var A=0;Al?1:R0&&(l[A]=f)},R); return l}; Nqr=function(R){R=bN(R);var l=[];g.RL(R,function(y,f){f in Object.prototype||typeof y!="undefined"&&l.push([f,":",y].join(""))}); return l}; Uoo=function(R){Qi(R,"od",pii);Qi(R,"opac",Xz).Z=!0;Qi(R,"sbeos",Xz).Z=!0;Qi(R,"prf",Xz).Z=!0;Qi(R,"mwt",Xz).Z=!0;Qi(R,"iogeo",Xz)}; Ta=function(R,l){return R.lastIndexOf(l,0)==0}; SYY=function(R,l){var y=R.length-l.length;return y>=0&&R.indexOf(l,y)==y}; g.d9=function(R){return/^[\s\xa0]*$/.test(R)}; g.r9=function(R,l){return R.indexOf(l)!=-1}; vr=function(R,l){return g.r9(R.toLowerCase(),l.toLowerCase())}; g.x_=function(R,l){var y=0;R=za(String(R)).split(".");l=za(String(l)).split(".");for(var f=Math.max(R.length,l.length),A=0;y==0&&Al?1:0}; g.pp=function(){var R=g.Mo.navigator;return R&&(R=R.userAgent)?R:""}; k_=function(R){if(!Uh&&!Sn||!jn)return!1;for(var l=0;l0:!1}; g9=function(){return JA()?!1:Zc("Opera")}; jr7=function(){return JA()?!1:Zc("Trident")||Zc("MSIE")}; kTT=function(){return JA()?k_("Microsoft Edge"):Zc("Edg/")}; Vi=function(){return Zc("Firefox")||Zc("FxiOS")}; tA=function(){return Zc("Safari")&&!(Cp()||(JA()?0:Zc("Coast"))||g9()||(JA()?0:Zc("Edge"))||kTT()||(JA()?k_("Opera"):Zc("OPR"))||Vi()||Zc("Silk")||Zc("Android"))}; Cp=function(){return JA()?k_("Chromium"):(Zc("Chrome")||Zc("CriOS"))&&!(JA()?0:Zc("Edge"))||Zc("Silk")}; Do7=function(){return Zc("Android")&&!(Cp()||Vi()||g9()||Zc("Silk"))}; ZkT=function(R){var l={};R.forEach(function(y){l[y[0]]=y[1]}); return function(y){return l[y.find(function(f){return f in l})]||""}}; JcT=function(R){var l=g.pp();if(R==="Internet Explorer"){if(jr7())if((R=/rv: *([\d\.]*)/.exec(l))&&R[1])l=R[1];else{R="";var y=/MSIE +([\d\.]+)/.exec(l);if(y&&y[1])if(l=/Trident\/(\d.\d)/.exec(l),y[1]=="7.0")if(l&&l[1])switch(l[1]){case "4.0":R="8.0";break;case "5.0":R="9.0";break;case "6.0":R="10.0";break;case "7.0":R="11.0"}else R="7.0";else R=y[1];l=R}else l="";return l}var f=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");y=[];for(var A;A=f.exec(l);)y.push([A[1],A[2],A[3]||void 0]); l=ZkT(y);switch(R){case "Opera":if(g9())return l(["Version","Opera"]);if(JA()?k_("Opera"):Zc("OPR"))return l(["OPR"]);break;case "Microsoft Edge":if(JA()?0:Zc("Edge"))return l(["Edge"]);if(kTT())return l(["Edg"]);break;case "Chromium":if(Cp())return l(["Chrome","CriOS","HeadlessChrome"])}return R==="Firefox"&&Vi()||R==="Safari"&&tA()||R==="Android Browser"&&Do7()||R==="Silk"&&Zc("Silk")?(l=y[2])&&l[1]||"":""}; g7j=function(R){if(JA()&&R!=="Silk"){var l=jn.brands.find(function(y){return y.brand===R}); if(!l||!l.version)return NaN;l=l.version.split(".")}else{l=JcT(R);if(l==="")return NaN;l=l.split(".")}return l.length===0?NaN:Number(l[0])}; Cj7=function(){var R=null;if(!VJo)return R;try{var l=function(y){return y}; R=VJo.createPolicy("goog#html",{createHTML:l,createScript:l,createScriptURL:l})}catch(y){}return R}; M5=function(){Y_===void 0&&(Y_=Cj7());return Y_}; RM=function(R){this.Z=R}; lH=function(R){var l=M5();R=l?l.createScriptURL(R):R;return new RM(R)}; yG=function(R){if(R instanceof RM)return R.Z;throw Error("");}; fG=function(R){this.Z=R}; g.AM=function(R){if(R instanceof fG)return R.Z;throw Error("");}; Gs=function(R){this.Nl=R}; aM=function(R){return new Gs(function(l){return l.substr(0,R.length+1).toLowerCase()===R+":"})}; g.sp=function(R,l){l=l===void 0?qYs:l;a:if(l=l===void 0?qYs:l,!(R instanceof fG)){for(var y=0;y4);A++)l[$J(R[A])]||(y+="\nInner error "+f++ +": ",R[A].stack&&R[A].stack.indexOf(R[A].toString())==0||(y+=typeof R[A]==="string"?R[A]:R[A].message+"\n"),y+=Fw(R[A],l));A")!=-1&&(R=R.replace(stj,">")),R.indexOf('"')!=-1&&(R=R.replace(BOq,""")),R.indexOf("'")!=-1&&(R=R.replace(HX7,"'")),R.indexOf("\x00")!=-1&&(R=R.replace(nUY,"�")));return R}; g.rF=function(R){return R==null?"":String(R)}; v4=function(R){for(var l=0,y=0;y>>0;return l}; zs=function(R){var l=Number(R);return l==0&&g.d9(R)?NaN:l}; mZT=function(R){return String(R).replace(/\-([a-z])/g,function(l,y){return y.toUpperCase()})}; oU9=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; hDK=function(R){return R.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(l,y,f){return y+f.toUpperCase()})}; cKQ=function(R){var l=1;R=R.split(":");for(var y=[];l>0&&R.length;)y.push(R.shift()),l--;R.length&&y.push(R.join(":"));return y}; wF=function(){return Uh||Sn?!!jn&&!!jn.platform:!1}; EUs=function(){return wF()?jn.platform==="Android":Zc("Android")}; xJ=function(){return Zc("iPhone")&&!Zc("iPod")&&!Zc("iPad")}; IM=function(){return xJ()||Zc("iPad")||Zc("iPod")}; Ns=function(){return wF()?jn.platform==="macOS":Zc("Macintosh")}; WUi=function(){return wF()?jn.platform==="Windows":Zc("Windows")}; pG=function(R){pG[" "](R);return R}; LUq=function(R,l){try{return pG(R[l]),!0}catch(y){}return!1}; iXs=function(R,l){var y=OX7;return Object.prototype.hasOwnProperty.call(y,R)?y[R]:y[R]=l(R)}; g.Up=function(R){return iXs(R,function(){return g.x_(PAQ,R)>=0})}; g.Sq=function(R,l,y){return Math.min(Math.max(R,l),y)}; g.jq=function(R,l){R%=l;return R*l<0?R+l:R}; kJ=function(R,l,y){return R+y*(l-R)}; g.Do=function(R,l){this.x=R!==void 0?R:0;this.y=l!==void 0?l:0}; Zo=function(R,l){return R==l?!0:R&&l?R.x==l.x&&R.y==l.y:!1}; g.JM=function(R,l){this.width=R;this.height=l}; g.gF=function(R,l){return R==l?!0:R&&l?R.width==l.width&&R.height==l.height:!1}; VG=function(R){return R.width*R.height}; qs=function(R,l){this.Z=R===CG&&l||""}; tM=function(R){if(R instanceof mH)return R;R=String(R).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return oM(R)}; FU9=function(R){return uSk(R)}; uSk=function(R){var l=tM("");return oM(R.map(function(y){return hM(tM(y))}).join(hM(l).toString()))}; X87=function(R){var l;if(!QtT.test("div"))throw Error("");if($ZQ.indexOf("DIV")!==-1)throw Error("");var y="":(R=FU9(l.map(function(f){return f instanceof mH?f:tM(String(f))})),y+=">"+R.toString()+""); return oM(y)}; eDT=function(R){for(var l="",y=Object.keys(R),f=0;f2&&IUY(A,G,f,2);return G}; IUY=function(R,l,y,f){function A(B){B&&l.appendChild(typeof B==="string"?R.createTextNode(B):B)} for(;f0)A(K);else{a:{if(K&&typeof K.length=="number"){if(g.GK(K)){var G=typeof K.item=="function"||typeof K.item=="string";break a}if(typeof K==="function"){G=typeof K.item=="function";break a}}G=!1}g.qZ(G?g.wO(K):K,A)}}}; g.ho=function(R){return mi(document,R)}; mi=function(R,l){l=String(l);R.contentType==="application/xhtml+xml"&&(l=l.toLowerCase());return R.createElement(l)}; g.c0=function(R){return document.createTextNode(String(R))}; g.Et=function(R,l){R.appendChild(l)}; g.W0=function(R){for(var l;l=R.firstChild;)R.removeChild(l)}; LS=function(R,l,y){R.insertBefore(l,R.childNodes[y]||null)}; g.Ot=function(R){return R&&R.parentNode?R.parentNode.removeChild(R):null}; g.io=function(R,l){if(!R||!l)return!1;if(R.contains&&l.nodeType==1)return R==l||R.contains(l);if(typeof R.compareDocumentPosition!="undefined")return R==l||!!(R.compareDocumentPosition(l)&16);for(;l&&R!=l;)l=l.parentNode;return l==R}; lo=function(R){return R.nodeType==9?R:R.ownerDocument||R.document}; g.Qa=function(R,l){if("textContent"in R)R.textContent=l;else if(R.nodeType==3)R.data=String(l);else if(R.firstChild&&R.firstChild.nodeType==3){for(;R.lastChild!=R.firstChild;)R.removeChild(R.lastChild);R.firstChild.data=String(l)}else g.W0(R),R.appendChild(lo(R).createTextNode(String(l)))}; p8Y=function(R){return R.tagName=="A"&&R.hasAttribute("href")||R.tagName=="INPUT"||R.tagName=="TEXTAREA"||R.tagName=="SELECT"||R.tagName=="BUTTON"?!R.disabled&&(!R.hasAttribute("tabindex")||NO7(R)):R.hasAttribute("tabindex")&&NO7(R)}; NO7=function(R){R=R.tabIndex;return typeof R==="number"&&R>=0&&R<32768}; ev=function(R,l,y){if(!l&&!y)return null;var f=l?String(l).toUpperCase():null;return $b(R,function(A){return(!f||A.nodeName==f)&&(!y||typeof A.className==="string"&&g.uA(A.className.split(/\s+/),y))},!0)}; $b=function(R,l,y){R&&!y&&(R=R.parentNode);for(y=0;R;){if(l(R))return R;R=R.parentNode;y++}return null}; RA=function(R){this.Z=R||g.Mo.document||document}; UZr=function(){this.Z=this.IQ=null}; bo=function(){}; TP=function(){if(!XT())throw Error();}; XT=function(){return!(!dX||!dX.performance)}; S57=function(R){return g.H0?"webkit"+R:R.toLowerCase()}; rX=function(R){return function(){return R}}; g.v0=function(){}; jto=function(R){var l=l||0;return function(){return R.apply(this,Array.prototype.slice.call(arguments,0,l))}}; zP=function(R){var l=!1,y;return function(){l||(y=R(),l=!0);return y}}; wX=function(R){var l=R;return function(){if(l){var y=l;l=null;y()}}}; xb=function(R,l,y){var f=0;return function(A){g.Mo.clearTimeout(f);var K=arguments;f=g.Mo.setTimeout(function(){R.apply(y,K)},l)}}; IA=function(R,l,y,f){this.top=R;this.right=l;this.bottom=y;this.left=f}; Nh=function(R){return R.right-R.left}; pS=function(R,l){return R==l?!0:R&&l?R.top==l.top&&R.right==l.right&&R.bottom==l.bottom&&R.left==l.left:!1}; Ut=function(R,l,y){l instanceof g.Do?(R.left+=l.x,R.right+=l.x,R.top+=l.y,R.bottom+=l.y):(R.left+=l,R.right+=l,typeof y==="number"&&(R.top+=y,R.bottom+=y));return R}; g.Sv=function(R,l,y,f){this.left=R;this.top=l;this.width=y;this.height=f}; jv=function(R,l){return R==l?!0:R&&l?R.left==l.left&&R.width==l.width&&R.top==l.top&&R.height==l.height:!1}; g.Df=function(R,l,y){if(typeof l==="string")(l=kb(R,l))&&(R.style[l]=y);else for(var f in l){y=R;var A=l[f],K=kb(y,f);K&&(y.style[K]=A)}}; kb=function(R,l){var y=kKj[l];if(!y){var f=mZT(l);y=f;R.style[f]===void 0&&(f=(g.H0?"Webkit":Zf?"Moz":null)+hDK(f),R.style[f]!==void 0&&(y=f));kKj[l]=y}return y}; g.Jo=function(R,l){var y=R.style[mZT(l)];return typeof y!=="undefined"?y:R.style[kb(R,l)]||""}; gX=function(R,l){var y=lo(R);return y.defaultView&&y.defaultView.getComputedStyle&&(R=y.defaultView.getComputedStyle(R,null))?R[l]||R.getPropertyValue(l)||"":""}; Va=function(R,l){return gX(R,l)||(R.currentStyle?R.currentStyle[l]:null)||R.style&&R.style[l]}; g.qh=function(R,l,y){if(l instanceof g.Do){var f=l.x;l=l.y}else f=l,l=y;R.style.left=g.CS(f,!1);R.style.top=g.CS(l,!1)}; to=function(R){try{return R.getBoundingClientRect()}catch(l){return{left:0,top:0,right:0,bottom:0}}}; DZr=function(R){var l=lo(R),y=Va(R,"position"),f=y=="fixed"||y=="absolute";for(R=R.parentNode;R&&R!=l;R=R.parentNode)if(R.nodeType==11&&R.host&&(R=R.host),y=Va(R,"position"),f=f&&y=="static"&&R!=l.documentElement&&R!=l.body,!f&&(R.scrollWidth>R.clientWidth||R.scrollHeight>R.clientHeight||y=="fixed"||y=="absolute"||y=="relative"))return R;return null}; g.Yb=function(R){var l=lo(R),y=new g.Do(0,0);if(R==(l?lo(l):document).documentElement)return y;R=to(R);l=ya(l);l=xZ9(l.Z);y.x=R.left+l.x;y.y=R.top+l.y;return y}; JK9=function(R,l){var y=new g.Do(0,0),f=nS(lo(R));if(!LUq(f,"parent"))return y;do{var A=f==l?g.Yb(R):ZXZ(R);y.x+=A.x;y.y+=A.y}while(f&&f!=l&&f!=f.parent&&(R=f.frameElement)&&(f=f.parent));return y}; g.Mh=function(R,l){R=gUq(R);l=gUq(l);return new g.Do(R.x-l.x,R.y-l.y)}; ZXZ=function(R){R=to(R);return new g.Do(R.left,R.top)}; gUq=function(R){if(R.nodeType==1)return ZXZ(R);R=R.changedTouches?R.changedTouches[0]:R;return new g.Do(R.clientX,R.clientY)}; g.Rm=function(R,l,y){if(l instanceof g.JM)y=l.height,l=l.width;else if(y==void 0)throw Error("missing height argument");R.style.width=g.CS(l,!0);R.style.height=g.CS(y,!0)}; g.CS=function(R,l){typeof R=="number"&&(R=(l?Math.round(R):R)+"px");return R}; g.l4=function(R){var l=Vdk;if(Va(R,"display")!="none")return l(R);var y=R.style,f=y.display,A=y.visibility,K=y.position;y.visibility="hidden";y.position="absolute";y.display="inline";R=l(R);y.display=f;y.position=K;y.visibility=A;return R}; Vdk=function(R){var l=R.offsetWidth,y=R.offsetHeight,f=g.H0&&!l&&!y;return(l===void 0||f)&&R.getBoundingClientRect?(R=to(R),new g.JM(R.right-R.left,R.bottom-R.top)):new g.JM(l,y)}; g.yT=function(R,l){R.style.display=l?"":"none"}; f$=function(R){return R?R.passive&&CAT()?R:R.capture||!1:!1}; AW=function(R,l,y,f){return typeof R.addEventListener==="function"?(R.addEventListener(l,y,f$(f)),!0):!1}; K$=function(R){if(R.prerendering)return 3;var l;return(l={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[R.visibilityState||R.webkitVisibilityState||R.mozVisibilityState||""])!=null?l:0}; q5K=function(){}; sJ=function(R){R.NFS=!0;return R}; td9=function(){return(Uh||Sn)&&jn?jn.mobile:!BI()&&(Zc("iPod")||Zc("iPhone")||Zc("Android")||Zc("IEMobile"))}; BI=function(){return(Uh||Sn)&&jn?!jn.mobile&&(Zc("iPad")||Zc("Android")||Zc("Silk")):Zc("iPad")||Zc("Android")&&!Zc("Mobile")||Zc("Silk")}; HI=function(R){try{return!!R&&R.location.href!=null&&LUq(R,"foo")}catch(l){return!1}}; n$=function(R,l){if(R)for(var y in R)Object.prototype.hasOwnProperty.call(R,y)&&l(R[y],y,R)}; Md9=function(){var R=[];n$(Y5i,function(l){R.push(l)}); return R}; RJr=function(R){var l,y;return(y=(l=/https?:\/\/[^\/]+/.exec(R))==null?void 0:l[0])!=null?y:""}; fck=function(){var R=lcq("IFRAME"),l={};g.qZ(yAK(),function(y){R.sandbox&&R.sandbox.supports&&R.sandbox.supports(y)&&(l[y]=!0)}); return l}; lcq=function(R,l){l=l===void 0?document:l;return l.createElement(String(R).toLowerCase())}; AAs=function(R){for(var l=R;R&&R!=R.parent;)R=R.parent,HI(R)&&(l=R);return l}; sLT=function(R){R=R||om();for(var l=new K$9(g.Mo.location.href,!1),y=null,f=R.length-1,A=f;A>=0;--A){var K=R[A];!y&&GaJ.test(K.url)&&(y=K);if(K.url&&!K.Z){l=K;break}}A=null;K=R.length&&R[f].url;l.depth!==0&&K&&(A=R[f]);return new acr(l,A,y)}; om=function(){var R=g.Mo,l=[],y=null;do{var f=R;if(HI(f)){var A=f.location.href;y=f.document&&f.document.referrer||null}else A=y,y=null;l.push(new K$9(A||""));try{R=f.parent}catch(K){R=null}}while(R&&f!==R);f=0;for(R=l.length-1;f<=R;++f)l[f].depth=R-f;f=g.Mo;if(f.location&&f.location.ancestorOrigins&&f.location.ancestorOrigins.length===l.length-1)for(R=1;Rl&&(l=y.length);return 3997-l-R.L.length-1}; WI=function(R,l){this.Z=R;this.depth=l}; m59=function(){function R(B,H){return B==null?H:B} var l=om(),y=Math.max(l.length-1,0),f=sLT(l);l=f.Z;var A=f.X,K=f.L,G=[];K&&G.push(new WI([K.url,K.Z?2:0],R(K.depth,1)));A&&A!=K&&G.push(new WI([A.url,2],0));l.url&&l!=K&&G.push(new WI([l.url,0],R(l.depth,y)));f=g.L$(G,function(B,H){return G.slice(0,G.length-H)}); !l.url||(K||A)&&l!=K||(A=RJr(l.url))&&f.push([new WI([A,1],R(l.depth,y))]);f.push([]);return g.L$(f,function(B){return n_9(y,B)})}; n_9=function(R,l){g.OJ(l,function(A){return A.depth>=0}); var y=i4(l,function(A,K){return Math.max(A,K.depth)},-1),f=Xic(y+2); f[0]=R;g.qZ(l,function(A){return f[A.depth+1]=A.Z}); return f}; o_Z=function(){var R=R===void 0?m59():R;return R.map(function(l){return EJ(l)})}; hJk=function(R){var l=!1;l=l===void 0?!1:l;dX.google_image_requests||(dX.google_image_requests=[]);var y=lcq("IMG",dX.document);l&&(y.attributionSrc="");y.src=R;dX.google_image_requests.push(y)}; PI=function(R){var l="a9";if(R.a9&&R.hasOwnProperty(l))return R.a9;var y=new R;R.a9=y;R.hasOwnProperty(l);return y}; u4=function(){this.X=new q5K;this.Z=XT()?new TP:new bo}; cAJ=function(){Fu();var R=dX.document;return!!(R&&R.body&&R.body.getBoundingClientRect&&typeof dX.setInterval==="function"&&typeof dX.clearInterval==="function"&&typeof dX.setTimeout==="function"&&typeof dX.clearTimeout==="function")}; E_J=function(){Fu();return o_Z()}; W$9=function(){}; Fu=function(){var R=PI(W$9);if(!R.Z){if(!dX)throw Error("Context has not been set and window is undefined.");R.Z=PI(u4)}return R.Z}; QT=function(){throw Error("Invalid UTF8");}; L$7=function(R,l){l=String.fromCharCode.apply(null,l);return R==null?l:R+l}; uzj=function(R){var l=!1;l=l===void 0?!1:l;if(Opo){if(l&&(ipq?!R.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(R)))throw Error("Found an unpaired surrogate");R=(PNJ||(PNJ=new TextEncoder)).encode(R)}else{for(var y=0,f=new Uint8Array(3*R.length),A=0;A>6|192;else{if(K>=55296&&K<=57343){if(K<=56319&&A=56320&&G<=57343){K=(K-55296)*1024+ G-56320+65536;f[y++]=K>>18|240;f[y++]=K>>12&63|128;f[y++]=K>>6&63|128;f[y++]=K&63|128;continue}else A--}if(l)throw Error("Found an unpaired surrogate");K=65533}f[y++]=K>>12|224;f[y++]=K>>6&63|128}f[y++]=K&63|128}}R=y===f.length?f:f.subarray(0,y)}return R}; $Q=function(R){g.Mo.setTimeout(function(){throw R;},0)}; F$j=function(R){return Array.prototype.map.call(R,function(l){l=l.toString(16);return l.length>1?l:"0"+l}).join("")}; QLc=function(R){for(var l=[],y=0;y>6|192:((A&64512)==55296&&f+1>18|240,l[y++]=A>>12&63|128):l[y++]=A>>12|224,l[y++]=A>>6&63|128),l[y++]=A&63|128)}return l}; g.b4=function(R,l){l===void 0&&(l=0);$5q();l=eJZ[l];for(var y=Array(Math.floor(R.length/3)),f=l[64]||"",A=0,K=0;A>2];G=l[(G&3)<<4|B>>4];B=l[(B&15)<<2|H>>6];H=l[H&63];y[K++]=""+n+G+B+H}n=0;H=f;switch(R.length-A){case 2:n=R[A+1],H=l[(n&15)<<2]||f;case 1:R=R[A],y[K]=""+l[R>>2]+l[(R&3)<<4|n>>4]+H+f}return y.join("")}; g.Xu=function(R,l){if(bpQ&&!l)R=g.Mo.btoa(R);else{for(var y=[],f=0,A=0;A255&&(y[f++]=K&255,K>>=8);y[f++]=K}R=g.b4(y,l)}return R}; T9Y=function(R){var l=[];Xrr(R,function(y){l.push(y)}); return l}; To=function(R){var l=R.length,y=l*3/4;y%3?y=Math.floor(y):g.r9("=.",R[l-1])&&(y=g.r9("=.",R[l-2])?y-2:y-1);var f=new Uint8Array(y),A=0;Xrr(R,function(K){f[A++]=K}); return A!==y?f.subarray(0,A):f}; Xrr=function(R,l){function y(H){for(;f>4);G!=64&&(l(K<<4&240|G>>2),B!=64&&l(G<<6&192|B))}}; $5q=function(){if(!ro){ro={};for(var R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),l=["+/=","+/","-_=","-_.","-_"],y=0;y<5;y++){var f=R.concat(l[y].split(""));eJZ[y]=f;for(var A=0;A=l||(f[R]=y+1,R=Error(),fUT(R,"incident"),$Q(R))}}; UJ=function(R,l,y){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(y===void 0?0:y)&&Symbol.for&&R?Symbol.for(R):R!=null?Symbol(R):Symbol():l}; kQ=function(R,l){SS||jS in R||U5i(R,ShJ);R[jS]|=l}; DC=function(R,l){SS||jS in R||U5i(R,ShJ);R[jS]=l}; ZC=function(){return typeof BigInt==="function"}; go=function(R,l){return l===void 0?R.Z!==JW&&!!(2&(R.w7[jS]|0)):!!(2&l)&&R.Z!==JW}; jL9=function(R,l){if(R!=null)if(typeof R==="string")R=R?new vI(R,zo):wo();else if(R.constructor!==vI)if(N9r&&R!=null&&R instanceof Uint8Array)R=R.length?new vI(new Uint8Array(R),zo):wo();else{if(!l)throw Error();R=void 0}return R}; VT=function(R,l){if(typeof l!=="number"||l<0||l>=R.length)throw Error();}; kac=function(R,l,y){var f=l&128?0:-1,A=R.length,K;if(K=!!A)K=R[A-1],K=K!=null&&typeof K==="object"&&K.constructor===Object;var G=A+(K?-1:0);for(l=l&128?1:0;ll.length)return!1;if(R.lengthA)return!1;if(f>>0;lc=l;yl=(R-l)/4294967296>>>0}; KD=function(R){if(R<0){fD(0-R);var l=g.u(Aa(lc,yl));R=l.next().value;l=l.next().value;lc=R>>>0;yl=l>>>0}else fD(R)}; ad=function(R,l){var y=l*4294967296+(R>>>0);return Number.isSafeInteger(y)?y:Gm(R,l)}; Vno=function(R,l){var y=l&2147483648;y&&(R=~R+1>>>0,l=~l>>>0,R==0&&(l=l+1>>>0));R=ad(R,l);return typeof R==="number"?y?-R:R:y?"-"+R:R}; Gm=function(R,l){l>>>=0;R>>>=0;if(l<=2097151)var y=""+(4294967296*l+R);else ZC()?y=""+(BigInt(l)<>>24|l<<8)&16777215,l=l>>16&65535,R=(R&16777215)+y*6777216+l*6710656,y+=l*8147497,l*=2,R>=1E7&&(y+=R/1E7>>>0,R%=1E7),y>=1E7&&(l+=y/1E7>>>0,y%=1E7),y=l+CNj(y)+CNj(R));return y}; CNj=function(R){R=String(R);return"0000000".slice(R.length)+R}; qhs=function(){var R=lc,l=yl;l&2147483648?ZC()?R=""+(BigInt(l|0)<>>0)):(l=g.u(Aa(R,l)),R=l.next().value,l=l.next().value,R="-"+Gm(R,l)):R=Gm(R,l);return R}; sM=function(R){if(R.length<16)KD(Number(R));else if(ZC())R=BigInt(R),lc=Number(R&BigInt(4294967295))>>>0,yl=Number(R>>BigInt(32)&BigInt(4294967295));else{var l=+(R[0]==="-");yl=lc=0;for(var y=R.length,f=0+l,A=(y-l)%6+l;A<=y;f=A,A+=6)f=Number(R.slice(f,A)),yl*=1E6,lc=lc*1E6+f,lc>=4294967296&&(yl+=Math.trunc(lc/4294967296),yl>>>=0,lc>>>=0);l&&(l=g.u(Aa(lc,yl)),R=l.next().value,l=l.next().value,lc=R,yl=l)}}; Aa=function(R,l){l=~l;R?R=~R+1:l+=1;return[R,l]}; BY=function(R){return Array.prototype.slice.call(R)}; HY=function(R){if(R!=null&&typeof R!=="number")throw Error("Value of float/double field must be a number, found "+typeof R+": "+R);return R}; tnq=function(R){return R.displayName||R.name||"unknown type name"}; nD=function(R){if(R!=null&&typeof R!=="boolean")throw Error("Expected boolean but got "+AK(R)+": "+R);return R}; od=function(R){switch(typeof R){case "bigint":return!0;case "number":return mW(R);case "string":return Yho.test(R);default:return!1}}; MnZ=function(R){if(typeof R!=="number")throw Nd("int32");if(!mW(R))throw Nd("int32");return R|0}; ha=function(R){return R==null?R:MnZ(R)}; cY=function(R){if(R==null)return R;if(typeof R==="string"&&R)R=+R;else if(typeof R!=="number")return;return mW(R)?R|0:void 0}; EM=function(R){if(R==null)return R;if(typeof R==="string"&&R)R=+R;else if(typeof R!=="number")return;return mW(R)?R>>>0:void 0}; yMs=function(R){var l=0;l=l===void 0?0:l;if(!od(R))throw Nd("int64");var y=typeof R;switch(l){case 512:switch(y){case "string":return WY(R);case "bigint":return String(LD(64,R));default:return OM(R)}case 1024:switch(y){case "string":return RpJ(R);case "bigint":return YQ(LD(64,R));default:return lo9(R)}case 0:switch(y){case "string":return WY(R);case "bigint":return YQ(LD(64,R));default:return uc(R)}default:return nG(l,"Unknown format requested type for int64")}}; F9=function(R){return R==null?R:yMs(R)}; foc=function(R){if(R[0]==="-")return!1;var l=R.length;return l<20?!0:l===20&&Number(R.substring(0,6))<184467}; AMj=function(R){var l=R.length;return R[0]==="-"?l<20?!0:l===20&&Number(R.substring(0,7))>-922337:l<19?!0:l===19&&Number(R.substring(0,6))<922337}; KHs=function(R){if(R<0){KD(R);var l=Gm(lc,yl);R=Number(l);return Ql(R)?R:l}l=String(R);if(foc(l))return l;KD(R);return ad(lc,yl)}; GsJ=function(R){if(AMj(R))return R;sM(R);return qhs()}; uc=function(R){od(R);R=$9(R);Ql(R)||(KD(R),R=Vno(lc,yl));return R}; OM=function(R){od(R);R=$9(R);if(Ql(R))R=String(R);else{var l=String(R);AMj(l)?R=l:(KD(R),R=qhs())}return R}; WY=function(R){od(R);var l=$9(Number(R));if(Ql(l))return String(l);l=R.indexOf(".");l!==-1&&(R=R.substring(0,l));return GsJ(R)}; RpJ=function(R){var l=$9(Number(R));if(Ql(l))return YQ(l);l=R.indexOf(".");l!==-1&&(R=R.substring(0,l));return ZC()?YQ(LD(64,BigInt(R))):YQ(GsJ(R))}; lo9=function(R){return Ql(R)?YQ(uc(R)):YQ(OM(R))}; aoJ=function(R){if(R==null)return R;var l=typeof R;if(l==="bigint")return String(LD(64,R));if(od(R)){if(l==="string")return WY(R);if(l==="number")return uc(R)}}; BFk=function(R){if(R==null)return R;var l=typeof R;if(l==="bigint")return String(sM7(64,R));if(od(R)){if(l==="string")return od(R),l=$9(Number(R)),Ql(l)&&l>=0?R=String(l):(l=R.indexOf("."),l!==-1&&(R=R.substring(0,l)),foc(R)||(sM(R),R=Gm(lc,yl))),R;if(l==="number")return od(R),R=$9(R),R>=0&&Ql(R)?R:KHs(R)}}; HGk=function(R){if(R==null||typeof R=="string"||R instanceof vI)return R}; nJc=function(R){if(typeof R!=="string")throw Error();return R}; e4=function(R){if(R!=null&&typeof R!=="string")throw Error();return R}; bc=function(R){return R==null||typeof R==="string"?R:void 0}; X9=function(R,l){if(!(R instanceof l))throw Error("Expected instanceof "+tnq(l)+" but got "+(R&&tnq(R.constructor)));return R}; msi=function(R,l,y){if(R!=null&&R[Tm]===dt)return R;if(Array.isArray(R)){var f=R[jS]|0;y=f|y&32|y&2;y!==f&&DC(R,y);return new l(R)}}; rt=function(R){return R}; zm=function(R){var l=ot(vY);return l?R[l]:void 0}; wt=function(){}; x9=function(R,l){for(var y in R)!isNaN(y)&&l(R,+y,R[y])}; oJJ=function(R){var l=new wt;x9(R,function(y,f,A){l[f]=BY(A)}); l.CF=R.CF;return l}; cMK=function(R,l){l<100||p$(hps,1)}; N2=function(R,l,y,f){var A=f!==void 0;f=!!f;var K=ot(vY),G;!A&&SS&&K&&(G=R[K])&&x9(G,cMK);K=[];var B=R.length;G=4294967295;var H=!1,n=!!(l&64),m=n?l&128?0:-1:void 0;if(!(l&1)){var h=B&&R[B-1];h!=null&&typeof h==="object"&&h.constructor===Object?(B--,G=B):h=void 0;if(n&&!(l&128)&&!A){H=!0;var c;G=((c=Id)!=null?c:rt)(G-m,m,R,h)+m}}l=void 0;for(c=0;c=G){var W=c-m,Q=void 0;((Q=l)!=null?Q:l={})[W]=E}else K[c]=E}if(h)for(var e in h)B=h[e],B!=null&& (B=y(B,f))!=null&&(c=+e,E=void 0,n&&!Number.isNaN(c)&&(E=c+m)0?void 0:R===0?iG9||(iG9=[0,void 0]):[-R,void 0];case "string":return[0,R];case "object":return R}}; Zl=function(R,l,y){return R=Dl(R,l[0],l[1],y?1:2)}; Dl=function(R,l,y,f){f=f===void 0?0:f;if(R==null){var A=32;y?(R=[y],A|=128):R=[];l&&(A=A&-8380417|(l&1023)<<13)}else{if(!Array.isArray(R))throw Error("narr");A=R[jS]|0;2048&A&&!(2&A)&&uwQ();if(A&256)throw Error("farr");if(A&64)return f!==0||A&2048||DC(R,A|2048),R;if(y&&(A|=128,y!==R[0]))throw Error("mid");a:{y=R;A|=64;var K=y.length;if(K){var G=K-1,B=y[G];if(B!=null&&typeof B==="object"&&B.constructor===Object){l=A&128?0:-1;G-=l;if(G>=1024)throw Error("pvtlmt");for(var H in B)K=+H,K1024)throw Error("spvt");A=A&-8380417|(H&1023)<<13}}}A|=64;f===0&&(A|=2048);DC(R,A);return R}; uwQ=function(){p$(FHY,5)}; QMJ=function(R,l){if(typeof R!=="object")return R;if(Array.isArray(R)){var y=R[jS]|0;R.length===0&&y&1?R=void 0:y&2||(!l||4096&y||16&y?R=Ja(R,y,!1,l&&!(y&16)):(kQ(R,34),y&4&&Object.freeze(R)));return R}if(R!=null&&R[Tm]===dt)return l=R.w7,y=l[jS]|0,go(R,y)?R:gt(R,l,y)?Vl(R,l):Ja(l,y);if(R instanceof vI)return R}; Vl=function(R,l,y){R=new R.constructor(l);y&&(R.Z=JW);R.X=JW;return R}; Ja=function(R,l,y,f){f!=null||(f=!!(34&l));R=N2(R,l,QMJ,f);f=32;y&&(f|=2);l=l&8380609|f;DC(R,l);return R}; $sr=function(R){var l=R.w7,y=l[jS]|0;return go(R,y)?gt(R,l,y)?Vl(R,l,!0):new R.constructor(Ja(l,y,!1)):R}; CD=function(R){if(R.Z!==JW)return!1;var l=R.w7;l=Ja(l,l[jS]|0);kQ(l,2048);R.w7=l;R.Z=void 0;R.X=void 0;return!0}; q2=function(R){if(!CD(R)&&go(R,R.w7[jS]|0))throw Error();}; ta=function(R,l){l===void 0&&(l=R[jS]|0);l&32&&!(l&4096)&&DC(R,l|4096)}; gt=function(R,l,y){return y&2?!0:y&32&&!(y&4096)?(DC(l,y|2),R.Z=JW,!0):!1}; M2=function(R,l,y,f,A){Object.isExtensible(R);l=Y9(R.w7,l,y,A);if(l!==null||f&&R.X!==JW)return l}; Y9=function(R,l,y,f){if(l===-1)return null;var A=l+(y?0:-1),K=R.length-1;if(!(K<1+(y?0:-1))){if(A>=K){var G=R[K];if(G!=null&&typeof G==="object"&&G.constructor===Object){y=G[l];var B=!0}else if(A===K)y=G;else return}else y=R[A];if(f&&y!=null){f=f(y);if(f==null)return f;if(!Object.is(f,y))return B?G[l]=f:R[A]=f,f}return y}}; lT=function(R,l,y,f){q2(R);var A=R.w7;Rf(A,A[jS]|0,l,y,f);return R}; Rf=function(R,l,y,f,A){var K=y+(A?0:-1),G=R.length-1;if(G>=1+(A?0:-1)&&K>=G){var B=R[G];if(B!=null&&typeof B==="object"&&B.constructor===Object)return B[y]=f,l}if(K<=G)return R[K]=f,l;if(f!==void 0){var H;G=((H=l)!=null?H:l=R[jS]|0)>>13&1023||536870912;y>=G?f!=null&&(K={},R[G+(A?0:-1)]=(K[y]=f,K)):R[K]=f}return l}; G_=function(R,l,y,f,A){var K=R.w7,G=K[jS]|0;f=go(R,G)?1:f;A=!!A||f===3;f===2&&CD(R)&&(K=R.w7,G=K[jS]|0);R=yS(K,l);var B=R===fY?7:R[jS]|0,H=Ab(B,G);var n=4&H?!1:!0;if(n){4&H&&(R=BY(R),B=0,H=KY(H,G),G=Rf(K,G,l,R));for(var m=0,h=0;m "+R)}; Sk=function(R,l,y){this.buffer=R;if(y&&!l)throw Error();this.Z=l}; jk=function(R,l){if(typeof R==="string")return new Sk(wrs(R),l);if(Array.isArray(R))return new Sk(new Uint8Array(R),l);if(R.constructor===Uint8Array)return new Sk(R,!1);if(R.constructor===ArrayBuffer)return R=new Uint8Array(R),new Sk(R,!1);if(R.constructor===vI)return l=xQ(R)||new Uint8Array(0),new Sk(l,!0,R);if(R instanceof Uint8Array)return R=R.constructor===Uint8Array?R:new Uint8Array(R.buffer,R.byteOffset,R.byteLength),new Sk(R,!1);throw Error();}; kG=function(R,l,y,f){this.X=null;this.J=!1;this.Z=this.L=this.Y=0;this.init(R,l,y,f)}; Za=function(R){var l=0,y=0,f=0,A=R.X,K=R.Z;do{var G=A[K++];l|=(G&127)<32&&(y|=(G&127)>>4);for(f=3;f<32&&G&128;f+=7)G=A[K++],y|=(G&127)<>>0,y>>>0);throw UI();}; Da=function(R,l){R.Z=l;if(l>R.L)throw NFJ(R.L,l);}; Jb=function(R){var l=R.X,y=R.Z,f=l[y++],A=f&127;if(f&128&&(f=l[y++],A|=(f&127)<<7,f&128&&(f=l[y++],A|=(f&127)<<14,f&128&&(f=l[y++],A|=(f&127)<<21,f&128&&(f=l[y++],A|=f<<28,f&128&&l[y++]&128&&l[y++]&128&&l[y++]&128&&l[y++]&128&&l[y++]&128)))))throw UI();Da(R,y);return A}; gk=function(R){var l=R.X,y=R.Z,f=l[y+0],A=l[y+1],K=l[y+2];l=l[y+3];Da(R,R.Z+4);return(f<<0|A<<8|K<<16|l<<24)>>>0}; VS=function(R){var l=gk(R);R=gk(R);return ad(l,R)}; CY=function(R){var l=gk(R),y=gk(R);R=(y>>31)*2+1;var f=y>>>20&2047;l=4294967296*(y&1048575)+l;return f==2047?l?NaN:R*Infinity:f==0?R*4.9E-324*l:R*Math.pow(2,f-1075)*(l+4503599627370496)}; qS=function(R){for(var l=0,y=R.Z,f=y+10,A=R.X;yR.L)throw NFJ(l,R.L-y);R.Z=f;return y}; Sp9=function(R,l){if(l==0)return wo();var y=p4c(R,l);R.Vv&&R.J?y=R.X.subarray(y,y+l):(R=R.X,l=y+l,y=y===l?new Uint8Array(0):Uss?R.slice(y,l):new Uint8Array(R.subarray(y,l)));return y.length==0?wo():new vI(y,zo)}; YG=function(R,l,y,f){if(tb.length){var A=tb.pop();A.init(R,l,y,f);R=A}else R=new kG(R,l,y,f);this.Z=R;this.L=this.Z.Z;this.X=this.Y=-1;jMZ(this,f)}; jMZ=function(R,l){l=l===void 0?{}:l;R.q4=l.q4===void 0?!1:l.q4}; kso=function(R,l,y,f){if(MS.length){var A=MS.pop();jMZ(A,f);A.Z.init(R,l,y,f);return A}return new YG(R,l,y,f)}; Ds9=function(R){var l=R.Z;if(l.Z==l.L)return!1;R.L=R.Z.Z;var y=Jb(R.Z)>>>0;l=y>>>3;y&=7;if(!(y>=0&&y<=5))throw IoT(y,R.L);if(l<1)throw Error("Invalid field number: "+l+" (at position "+R.L+")");R.Y=l;R.X=y;return!0}; R7=function(R){switch(R.X){case 0:R.X!=0?R7(R):qS(R.Z);break;case 1:R=R.Z;Da(R,R.Z+8);break;case 2:if(R.X!=2)R7(R);else{var l=Jb(R.Z)>>>0;R=R.Z;Da(R,R.Z+l)}break;case 5:R=R.Z;Da(R,R.Z+4);break;case 3:l=R.Y;do{if(!Ds9(R))throw Error("Unmatched start-group tag: stream EOF");if(R.X==4){if(R.Y!=l)throw Error("Unmatched end-group tag");break}R7(R)}while(1);break;default:throw IoT(R.X,R.L);}}; l7=function(R,l,y){var f=R.Z.L,A=Jb(R.Z)>>>0,K=R.Z.Z+A,G=K-f;G<=0&&(R.Z.L=K,y(l,R,void 0,void 0,void 0),G=K-R.Z.Z);if(G)throw Error("Message parsing ended unexpectedly. Expected to read "+(A+" bytes, instead read "+(A-G)+" bytes, either the data ended unexpectedly or the message misreported its own length"));R.Z.Z=K;R.Z.L=f}; o7=function(R){var l=Jb(R.Z)>>>0;R=R.Z;var y=p4c(R,l);R=R.X;if(ZGi){var f=R,A;(A=yQ)||(A=yQ=new TextDecoder("utf-8",{fatal:!0}));l=y+l;f=y===0&&l===f.length?f:f.subarray(y,l);try{var K=A.decode(f)}catch(n){if(mk===void 0){try{A.decode(new Uint8Array([128]))}catch(m){}try{A.decode(new Uint8Array([97])),mk=!0}catch(m){mk=!1}}!mk&&(yQ=void 0);throw n;}}else{K=y;l=K+l;y=[];for(var G=null,B,H;K=l?QT():(H=R[K++],B<194||(H&192)!==128?(K--,QT()):y.push((B&31)<<6|H&63)): B<240?K>=l-1?QT():(H=R[K++],(H&192)!==128||B===224&&H<160||B===237&&H>=160||((A=R[K++])&192)!==128?(K--,QT()):y.push((B&15)<<12|(H&63)<<6|A&63)):B<=244?K>=l-2?QT():(H=R[K++],(H&192)!==128||(B<<28)+(H-144)>>30!==0||((A=R[K++])&192)!==128||((f=R[K++])&192)!==128?(K--,QT()):(B=(B&7)<<18|(H&63)<<12|(A&63)<<6|f&63,B-=65536,y.push((B>>10&1023)+55296,(B&1023)+56320))):QT(),y.length>=8192&&(G=L$7(G,y),y.length=0);K=L$7(G,y)}return K}; JM7=function(R){var l=Jb(R.Z)>>>0;return Sp9(R.Z,l)}; hF=function(R,l){this.X=R>>>0;this.Z=l>>>0}; VqQ=function(R){if(!R)return gJK||(gJK=new hF(0,0));if(!/^\d+$/.test(R))return null;sM(R);return new hF(lc,yl)}; cE=function(R,l){this.X=R>>>0;this.Z=l>>>0}; qpr=function(R){if(!R)return CHZ||(CHZ=new cE(0,0));if(!/^-?\d+$/.test(R))return null;sM(R);return new cE(lc,yl)}; Ed=function(){this.Z=[]}; WE=function(R,l,y){for(;y>0||l>127;)R.Z.push(l&127|128),l=(l>>>7|y<<25)>>>0,y>>>=7;R.Z.push(l)}; L8=function(R,l){for(;l>127;)R.Z.push(l&127|128),l>>>=7;R.Z.push(l)}; tqk=function(R,l){if(l>=0)L8(R,l);else{for(var y=0;y<9;y++)R.Z.push(l&127|128),l>>=7;R.Z.push(1)}}; Od=function(R,l){R.Z.push(l>>>0&255);R.Z.push(l>>>8&255);R.Z.push(l>>>16&255);R.Z.push(l>>>24&255)}; YpY=function(){this.L=[];this.X=0;this.Z=new Ed}; i7=function(R,l){l.length!==0&&(R.L.push(l),R.X+=l.length)}; MqQ=function(R,l){PE(R,l,2);l=R.Z.end();i7(R,l);l.push(R.X);return l}; RIQ=function(R,l){var y=l.pop();for(y=R.X+R.Z.length()-y;y>127;)l.push(y&127|128),y>>>=7,R.X++;l.push(y);R.X++}; PE=function(R,l,y){L8(R.Z,l*8+y)}; lf7=function(R,l,y){if(y!=null){switch(typeof y){case "string":VqQ(y)}PE(R,l,1);switch(typeof y){case "number":R=R.Z;fD(y);Od(R,lc);Od(R,yl);break;case "bigint":y=BigInt.asUintN(64,y);y=new hF(Number(y&BigInt(4294967295)),Number(y>>BigInt(32)));R=R.Z;l=y.Z;Od(R,y.X);Od(R,l);break;default:y=VqQ(y),R=R.Z,l=y.Z,Od(R,y.X),Od(R,l)}}}; u7=function(R,l,y){PE(R,l,2);L8(R.Z,y.length);i7(R,R.Z.end());i7(R,y)}; Fg=function(){function R(){throw Error();} Object.setPrototypeOf(R,R.prototype);return R}; QQ=function(R,l,y){this.w7=Dl(R,l,y)}; yok=function(R,l){if(l==null||l=="")return new R;l=JSON.parse(l);if(!Array.isArray(l))throw Error("dnarr");kQ(l,32);return new R(l)}; ey=function(R,l,y){this.SR=R;this.l$=l;R=ot($z);this.Z=!!R&&y===R||!1}; b7=function(R,l){var y=y===void 0?$z:y;return new ey(R,l,y)}; Aok=function(R,l,y,f,A){l=ffJ(l,f);l!=null&&(y=MqQ(R,y),A(l,R),RIQ(R,y))}; dQ=function(R,l,y,f){var A=f[R];if(A)return A;A={};A.qT=f;A.C2=PH9(f[0]);var K=f[1],G=1;K&&K.constructor===Object&&(A.extensions=K,K=f[++G],typeof K==="function"&&(A.CC=!0,Xg!=null||(Xg=K),T2!=null||(T2=f[G+1]),K=f[G+=2]));for(var B={};K&&Array.isArray(K)&&K.length&&typeof K[0]==="number"&&K[0]>0;){for(var H=0;H>BigInt(32)));WE(R.Z,y.X,y.Z);break;default:y=qpr(l),WE(R.Z,y.X,y.Z)}}}; Yz=function(R,l,y){l=cY(l);l!=null&&l!=null&&(PE(R,y,0),tqk(R.Z,l))}; Wii=function(R,l,y){l=l==null||typeof l==="boolean"?l:typeof l==="number"?!!l:void 0;l!=null&&(PE(R,y,0),R.Z.Z.push(l?1:0))}; LiJ=function(R,l,y){l=bc(l);l!=null&&u7(R,y,uzj(l))}; OSY=function(R,l,y,f,A){l=ffJ(l,f);l!=null&&(y=MqQ(R,y),A(l,R),RIQ(R,y))}; PoZ=function(){var R=Rg;this.Z=iSc;this.isRepeated=0;this.X=iT;this.defaultValue=void 0;this.L=R.messageId!=null?C$:void 0}; uTc=function(R){return function(){var l=new YpY;obj(this.w7,l,dQ(Nz,I7,p8,R));i7(l,l.Z.end());for(var y=new Uint8Array(l.X),f=l.L,A=f.length,K=0,G=0;G-1)return l.apply(null,g.ci(y));try{return R.Z=R.L.Z.now(),l.apply(null,g.ci(y))}finally{R.Y+=R.L.Z.now()-R.Z,R.Z=-1,R.X+=1}}}; QAJ=function(R,l){this.X=R;this.L=l;this.Z=new Fi9(R)}; $hZ=function(){this.Z={}}; bSs=function(){var R=AT().flags,l=eIk;R=R.Z[l.key];if(l.valueType==="proto"){try{var y=JSON.parse(R);if(Array.isArray(y))return y}catch(f){}return l.defaultValue}return typeof R===typeof l.defaultValue?R:l.defaultValue}; roq=function(){this.L=void 0;this.X=this.D=0;this.J=-1;this.xG=new Fz;Qi(this.xG,"mv",X0k).Z=!0;Qi(this.xG,"omid",Xz);Qi(this.xG,"epoh",Xz).Z=!0;Qi(this.xG,"epph",Xz).Z=!0;Qi(this.xG,"umt",Xz).Z=!0;Qi(this.xG,"phel",Xz).Z=!0;Qi(this.xG,"phell",Xz).Z=!0;Qi(this.xG,"oseid",TXQ).Z=!0;var R=this.xG;R.Z.sloi||(R.Z.sloi=new Pr);R.Z.sloi.Z=!0;Qi(this.xG,"mm",K4);Qi(this.xG,"ovms",dhi).Z=!0;Qi(this.xG,"xdi",Xz).Z=!0;Qi(this.xG,"amp",Xz).Z=!0;Qi(this.xG,"prf",Xz).Z=!0;Qi(this.xG,"gtx",Xz).Z=!0;Qi(this.xG, "mvp_lv",Xz).Z=!0;Qi(this.xG,"ssmol",Xz).Z=!0;Qi(this.xG,"fmd",Xz).Z=!0;Qi(this.xG,"gen204simple",Xz);this.Z=new QAJ(Fu(),this.xG);this.Y=!1;this.flags=new $hZ}; AT=function(){return PI(roq)}; vbc=function(R,l,y,f){if(Math.random()<(f||R.Z))try{if(y instanceof hW)var A=y;else A=new hW,n$(y,function(G,B){var H=A,n=H.Y++;G=cI(B,G);H.Z.push(n);H.X[n]=G}); var K=A.Jk(R.X,"pagead2.googlesyndication.com","/pagead/gen_204?id="+l+"&");K&&(Fu(),hJk(K))}catch(G){}}; zIo=function(R,l,y){y=y===void 0?{}:y;this.error=R;this.meta=y;this.context=l.context;this.msg=l.message||"";this.id=l.id||"jserror"}; w0T=function(){var R=R===void 0?g.Mo:R;return(R=R.performance)&&R.now&&R.timing?Math.floor(R.now()+R.timing.navigationStart):g.mU()}; xhT=function(){var R=R===void 0?g.Mo:R;return(R=R.performance)&&R.now?R.now():null}; IfJ=function(R,l,y){this.label=R;this.type=l;this.value=y;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; ag=function(){var R=window;this.events=[];this.X=R||g.Mo;var l=null;R&&(R.google_js_reporting_queue=R.google_js_reporting_queue||[],this.events=R.google_js_reporting_queue,l=R.google_measure_js_timing);this.Z=GX()||(l!=null?l:Math.random()<1)}; NXZ=function(R){R&&sQ&&GX()&&(sQ.clearMarks("goog_"+R.label+"_"+R.uniqueId+"_start"),sQ.clearMarks("goog_"+R.label+"_"+R.uniqueId+"_end"))}; BF=function(R,l,y,f,A,K,G){var B="";R&&(B+=R+":");y&&(B+="//",l&&(B+=l+"@"),B+=y,f&&(B+=":"+f));A&&(B+=A);K&&(B+="?"+K);G&&(B+="#"+G);return B}; g.HF=function(R){return R.match(p0T)}; Uh9=function(R){return R?decodeURI(R):R}; g.n4=function(R){return Uh9(g.HF(R)[3]||null)}; mE=function(R){return Uh9(g.HF(R)[5]||null)}; g.StQ=function(R){R=g.HF(R);return BF(R[1],R[2],R[3],R[4])}; og=function(R){R=g.HF(R);return BF(null,null,null,null,R[5],R[6],R[7])}; jAs=function(R){var l=R.indexOf("#");return l<0?R:R.slice(0,l)}; hT=function(R,l){if(R){R=R.split("&");for(var y=0;y=0){var K=R[y].substring(0,f);A=R[y].substring(f+1)}else K=R[y];l(K,A?Ts(A):"")}}}; cF=function(R,l){if(!l)return R;var y=R.indexOf("#");y<0&&(y=R.length);var f=R.indexOf("?");if(f<0||f>y){f=y;var A=""}else A=R.substring(f+1,y);R=[R.slice(0,f),A,R.slice(y)];y=R[1];R[1]=l?y?y+"&"+l:l:y;return R[0]+(R[1]?"?"+R[1]:"")+R[2]}; EQ=function(R,l,y){if(Array.isArray(l))for(var f=0;f=0&&ly)A=y;f+=l.length+1;return Ts(R.slice(f,A!==-1?A:0))}; F1=function(R,l){for(var y=R.search(PF),f=0,A,K=[];(A=iy(R,f,l,y))>=0;)K.push(R.substring(f,A)),f=Math.min(R.indexOf("&",A)+1||y,y);K.push(R.slice(f));return K.join("").replace(ZST,"$1")}; JoK=function(R,l,y){return OQ(F1(R,l),l,y)}; gbJ=function(){var R=Qf;this.Z=$m;this.jA="jserror";this.wO=!0;this.HG=null;this.X=this.fb;this.oV=R===void 0?null:R}; Vvk=function(R,l,y){var f=by;return f4(AT().Z.Z,function(){try{if(f.oV&&f.oV.Z){var A=f.oV.start(R.toString(),3);var K=l();f.oV.end(A)}else K=l()}catch(B){var G=f.wO;try{NXZ(A),G=f.X(R,new X1(TX(B)),void 0,y)}catch(H){f.fb(217,H)}if(!G)throw B;}return K})()}; dN=function(R,l,y,f){return f4(AT().Z.Z,function(){var A=g.SJ.apply(0,arguments);return Vvk(R,function(){return l.apply(y,A)},f)})}; TX=function(R){var l=R.toString();R.name&&l.indexOf(R.name)==-1&&(l+=": "+R.name);R.message&&l.indexOf(R.message)==-1&&(l+=": "+R.message);if(R.stack)a:{R=R.stack;var y=l;try{R.indexOf(y)==-1&&(R=y+"\n"+R);for(var f;R!=f;)f=R,R=R.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");l=R.replace(/\n */g,"\n");break a}catch(A){l=y;break a}l=void 0}return l}; X1=function(R){zIo.call(this,Error(R),{message:R})}; Coc=function(){dX&&typeof dX.google_measure_js_timing!="undefined"&&(dX.google_measure_js_timing||Qf.disable())}; qtT=function(R){by.HG=function(l){g.qZ(R,function(y){y(l)})}}; tvc=function(R,l){return Vvk(R,l)}; rN=function(R,l){return dN(R,l)}; vF=function(R,l,y,f){by.fb(R,l,y,f)}; zX=function(){return Date.now()-Ytq}; Mvs=function(){var R=AT().L,l=wN>=0?zX()-wN:-1,y=xm?zX()-Ig:-1,f=Nu>=0?zX()-Nu:-1;if(R==947190542)return 100;if(R==79463069)return 200;R=[2E3,4E3];var A=[250,500,1E3];vF(637,Error(),.001);var K=l;y!=-1&&y1500&&f<4E3?500:G}; p4=function(R,l,y){var f=new IA(0,0,0,0);this.time=R;this.volume=null;this.L=l;this.Z=f;this.X=y}; UQ=function(R,l,y,f,A,K,G,B){this.Y=R;this.V=l;this.L=y;this.D=f;this.Z=A;this.J=K;this.X=G;this.W=B}; lCJ=function(R){var l=R!==R.top,y=R.top===AAs(R),f=-1,A=0;if(l&&y&&R.top.mraid){f=3;var K=R.top.mraid}else f=(K=R.mraid)?l?y?2:1:0:-1;K&&(K.IS_GMA_SDK||(A=2),rc7(RSr,function(G){return typeof K[G]==="function"})||(A=1)); return{iR:K,compatibility:A,wAU:f}}; yWQ=function(){var R=window.document;return R&&typeof R.elementFromPoint==="function"}; fCY=function(R,l,y){if(R&&l!==null&&l!=l.top){if(!l.top)return new g.JM(-12245933,-12245933);l=l.top}try{return(y===void 0?0:y)?(new g.JM(l.innerWidth,l.innerHeight)).round():zDi(l||window).round()}catch(f){return new g.JM(-12245933,-12245933)}}; Sj=function(R,l,y){try{if(R){if(!l.top)return new IA(-12245933,-12245933,-12245933,-12245933);l=l.top}var f=fCY(R,l,y),A=f.height,K=f.width;if(K===-12245933)return new IA(K,K,K,K);var G=ya(l.document);var B=xZ9(G.Z);var H=B.x,n=B.y;return new IA(n,H+K,n+A,H)}catch(m){return new IA(-12245933,-12245933,-12245933,-12245933)}}; jj=function(R,l){l=Math.pow(10,l);return Math.floor(R*l)/l}; AWZ=function(R){return new IA(R.top,R.right,R.bottom,R.left)}; KbY=function(R){var l=R.top||0,y=R.left||0;return new IA(l,y+(R.width||0),l+(R.height||0),y)}; km=function(R){return R!=null&&R>=0&&R<=1}; GoQ=function(){var R=g.pp();return R?Dx("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(l){return vr(R,l)})||vr(R,"OMI/")&&!vr(R,"XiaoMi/")?!0:vr(R,"Presto")&&vr(R,"Linux")&&!vr(R,"X11")&&!vr(R,"Android")&&!vr(R,"Mobi"):!1}; aC9=function(){this.L=!HI(dX.top);this.isMobileDevice=BI()||td9();var R=om();this.domain=R.length>0&&R[R.length-1]!=null&&R[R.length-1].url!=null?g.n4(R[R.length-1].url)||"":"";this.Z=new IA(0,0,0,0);this.Y=new g.JM(0,0);this.J=new g.JM(0,0);this.V=new IA(0,0,0,0);this.frameOffset=new g.Do(0,0);this.D=0;this.W=!1;this.X=!(!dX||!lCJ(dX).iR);this.update(dX)}; smj=function(R,l){l&&l.screen&&(R.Y=new g.JM(l.screen.width,l.screen.height))}; Bok=function(R,l){a:{var y=R.Z?new g.JM(Nh(R.Z),R.Z.getHeight()):new g.JM(0,0);l=l===void 0?dX:l;l!==null&&l!=l.top&&(l=l.top);var f=0,A=0;try{var K=l.document,G=K.body,B=K.documentElement;if(K.compatMode=="CSS1Compat"&&B.scrollHeight)f=B.scrollHeight!=y.height?B.scrollHeight:B.offsetHeight,A=B.scrollWidth!=y.width?B.scrollWidth:B.offsetWidth;else{var H=B.scrollHeight,n=B.scrollWidth,m=B.offsetHeight,h=B.offsetWidth;B.clientHeight!=m&&(H=G.scrollHeight,n=G.scrollWidth,m=G.offsetHeight,h=G.offsetWidth); H>y.height?H>m?(f=H,A=n):(f=m,A=h):H0||R.W)return!0;R=Fu().X.isVisible();var l=K$(JT)===0;return R||l}; Zx=function(){return PI(aC9)}; Vf=function(R){this.L=R;this.X=0;this.Z=null}; C4=function(R,l,y){this.L=R;this.v1=y===void 0?"na":y;this.J=[];this.isInitialized=!1;this.Y=new p4(-1,!0,this);this.Z=this;this.W=l;this.LX=this.B=!1;this.sL="uk";this.Dq=!1;this.D=!0}; qu=function(R,l){g.uA(R.J,l)||(R.J.push(l),l.j4(R.Z),l.Oh(R.Y),l.Av()&&(R.B=!0))}; H$Z=function(R){R=R.Z;R.Zs();R.qe();var l=Zx();l.V=Sj(!1,R.L,l.isMobileDevice);Bok(Zx(),R.L);R.Y.Z=R.Fu()}; nQY=function(R){R.B=R.J.length?Dx(R.J,function(l){return l.Av()}):!1}; mdY=function(R){var l=g.wO(R.J);g.qZ(l,function(y){y.Oh(R.Y)})}; tT=function(R){var l=g.wO(R.J);g.qZ(l,function(y){y.j4(R.Z)}); R.Z!=R||mdY(R)}; Ym=function(R,l,y,f){this.element=R;this.Z=new IA(0,0,0,0);this.L=null;this.D=new IA(0,0,0,0);this.X=l;this.xG=y;this.Dq=f;this.xb=!1;this.timestamp=-1;this.B=new UQ(l.Y,this.element,this.Z,new IA(0,0,0,0),0,0,zX(),0);this.J=void 0}; oQ7=function(R,l){return R.J?new IA(Math.max(l.top+R.J.top,l.top),Math.min(l.left+R.J.right,l.right),Math.min(l.top+R.J.bottom,l.bottom),Math.max(l.left+R.J.left,l.left)):l.clone()}; Mu=function(R){this.J=!1;this.Z=R;this.Y=function(){}}; hSK=function(R,l,y){this.L=y===void 0?0:y;this.X=R;this.Z=l==null?"":l}; cW9=function(R){switch(Math.trunc(R.L)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; EQQ=function(R,l){return R.Ll.L?!1:R.Xl.X?!1:typeof R.Ztypeof l.Z?!1:R.Z0?f[y]-f[y-1]:f[y]})}; mz=function(){this.X=new Gl;this.v1=this.CX=0;this.UL=new K_;this.Yb=this.V=-1;this.uQ=1E3;this.B1=new Gl([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.sL=this.xb=-1}; oR=function(R,l){return eS9(R.X,l===void 0?!0:l)}; h4=function(R,l,y,f){var A=A===void 0?!1:A;y=dN(f,y);AW(R,l,y,{capture:A})}; ED=function(R,l){l=cM(l);return l===0?0:cM(R)/l}; cM=function(R){return Math.max(R.bottom-R.top,0)*Math.max(R.right-R.left,0)}; bDr=function(R,l){if(!R||!l)return!1;for(var y=0;R!==null&&y++<100;){if(R===l)return!0;try{if(R=R.parentElement||R){var f=lo(R),A=f&&nS(f),K=A&&A.frameElement;K&&(R=K)}}catch(G){break}}return!1}; XYZ=function(R,l,y){if(!R||!l)return!1;l=Ut(R.clone(),-l.left,-l.top);R=(l.left+l.right)/2;l=(l.top+l.bottom)/2;HI(window.top)&&window.top&&window.top.document&&(window=window.top);if(!yWQ())return!1;R=window.document.elementFromPoint(R,l);if(!R)return!1;l=(l=(l=lo(y))&&l.defaultView&&l.defaultView.frameElement)&&bDr(l,R);var f=R===y;R=!f&&R&&$b(R,function(A){return A===y}); return!(l||f||R)}; Ttc=function(R,l,y,f){return Zx().L?!1:Nh(R)<=0||R.getHeight()<=0?!0:y&&f?tvc(208,function(){return XYZ(R,l,y)}):!1}; WM=function(R,l,y){g.p.call(this);this.position=d2Z.clone();this.mG=this.l6();this.g0=-2;this.timeCreated=Date.now();this.a7=-1;this.a$=l;this.UP=null;this.OW=!1;this.eB=null;this.opacity=-1;this.requestSource=y;this.or7=!1;this.Vn=function(){}; this.df=function(){}; this.Ie=new UZr;this.Ie.IQ=R;this.Ie.Z=R;this.lA=!1;this.TO={UG:null,h3:null};this.gs=!0;this.XA=null;this.cN=this.gA=!1;AT().D++;this.yD=this.rD();this.Xd=-1;this.gQ=null;this.hasCompleted=this.QR=!1;this.xG=new Fz;Uoo(this.xG);raJ(this);this.requestSource==1?$_(this.xG,"od",1):$_(this.xG,"od",0)}; raJ=function(R){R=R.Ie.IQ;var l;if(l=R&&R.getAttribute)l=/-[a-z]/.test("googleAvInapp")?!1:v97&&R.dataset?"googleAvInapp"in R.dataset:R.hasAttribute?R.hasAttribute("data-"+oU9()):!!R.getAttribute("data-"+oU9());l&&(Zx().X=!0)}; L_=function(R,l){l!=R.cN&&(R.cN=l,R=Zx(),l?R.D++:R.D>0&&R.D--)}; zA7=function(R,l){if(R.gQ){if(l.getName()===R.gQ.getName())return;R.gQ.dispose();R.gQ=null}l=l.create(R.Ie.Z,R.xG,R.Av());if(l=l!=null&&l.observe()?l:null)R.gQ=l}; wYi=function(R,l,y){if(!R.UP||R.a$==-1||l.X===-1||R.UP.X===-1)return 0;R=l.X-R.UP.X;return R>y?0:R}; x2Y=function(R,l,y){if(R.gQ){R.gQ.IS();var f=R.gQ.B,A=f.Y,K=A.Z;if(f.D!=null){var G=f.L;R.eB=new g.Do(G.left-K.left,G.top-K.top)}K=R.qk()?Math.max(f.Z,f.J):f.Z;G={};A.volume!==null&&(G.volume=A.volume);A=R.Th(f);R.UP=f;R.oE(K,l,y,!1,G,A,f.W)}}; Il9=function(R){if(R.OW&&R.XA){var l=en(R.xG,"od")==1,y=Zx().Z,f=R.XA,A=R.gQ?R.gQ.getName():"ns",K=R.eB,G=new g.JM(Nh(y),y.getHeight());y=R.qk();R={pfE:A,eB:K,qY$:G,qk:y,e_:R.yD.e_,MY9:l};if(l=f.X){l.IS();A=l.B;K=A.Y.Z;var B=G=null;A.D!=null&&K&&(G=A.L,G=new g.Do(G.left-K.left,G.top-K.top),B=new g.JM(K.right-K.left,K.bottom-K.top));A=y?Math.max(A.Z,A.J):A.Z;y={pfE:l.getName(),eB:G,qY$:B,qk:y,MY9:!1,e_:A}}else y=null;y&&FbT(f,R,y)}}; NtQ=function(R,l,y){l&&(R.Vn=l);y&&(R.df=y)}; g.OD=function(){}; g.is=function(R){return{value:R,done:!1}}; pYi=function(){this.Y=this.Z=this.L=this.X=this.J=0}; U2o=function(R){var l={};var y=g.mU()-R.J;l=(l.ptlt=y,l);(y=R.X)&&(l.pnk=y);(y=R.L)&&(l.pnc=y);(y=R.Y)&&(l.pnmm=y);(R=R.Z)&&(l.pns=R);return l}; SMs=function(){MZ.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; QC=function(R){return km(R.volume)&&R.volume>0}; $F=function(R,l,y,f){y=y===void 0?!0:y;f=f===void 0?function(){return!0}:f; return function(A){var K=A[R];if(Array.isArray(K)&&f(A))return jdj(K,l,y)}}; eb=function(R,l){return function(y){return l(y)?y[R]:void 0}}; km9=function(R){return function(l){for(var y=0;y0?K[A-1]+1:0,f+1).reduce(function(G,B){return G+B},0)})}; D2i=function(){this.X=this.Z=""}; ZDQ=function(){}; Tl=function(R,l){var y={};if(R!==void 0)if(l!=null)for(var f in l){var A=l[f];f in Object.prototype||A!=null&&(y[f]=typeof A==="function"?A(R):R[A])}else g.Lp(y,R);return yC(ls(new RR,y))}; Jac=function(){var R={};this.X=(R.vs=[1,0],R.vw=[0,1],R.am=[2,2],R.a=[4,4],R.f=[8,8],R.bm=[16,16],R.b=[32,32],R.avw=[0,64],R.avs=[64,0],R.pv=[256,256],R.gdr=[0,512],R.p=[0,1024],R.r=[0,2048],R.m=[0,4096],R.um=[0,8192],R.ef=[0,16384],R.s=[0,32768],R.pmx=[0,16777216],R.mut=[33554432,33554432],R.umutb=[67108864,67108864],R.tvoff=[134217728,134217728],R);this.Z={};for(var l in this.X)this.X[l][1]>0&&(this.Z[l]=0);this.L=0}; da=function(R,l){var y=R.X[l],f=y[1];R.L+=y[0];f>0&&R.Z[l]==0&&(R.Z[l]=1)}; g9c=function(R){var l=g.Br(R.X),y=0,f;for(f in R.Z)g.uA(l,f)&&R.Z[f]==1&&(y+=R.X[f][1],R.Z[f]=2);return y}; V4o=function(R){var l=0,y;for(y in R.Z){var f=R.Z[y];if(f==1||f==2)l+=R.X[y][1]}return l}; ra=function(){this.Z=this.X=0}; vM=function(){mz.call(this);this.L=new K_;this.jS=this.B=this.Dq=0;this.W=-1;this.iQ=new K_;this.J=new K_;this.Z=new Gl;this.D=this.Y=-1;this.LX=new K_;this.uQ=2E3;this.P1=new ra;this.W1=new ra;this.tU=new ra}; zl=function(R,l,y){var f=R.jS;xm||y||R.W==-1||(f+=l-R.W);return f}; CcZ=function(){this.L=!1}; wa=function(R,l){this.L=!1;this.Y=R;this.B=l;this.J=0}; xF=function(R,l){wa.call(this,R,l);this.V=[]}; qMQ=function(){}; IR=function(){}; NH=function(R,l,y,f){Ym.call(this,R,l,y,f)}; UD=function(R,l,y){Ym.call(this,null,R,l,y);this.W=R.isActive();this.V=0}; Sb=function(R){return[R.top,R.left,R.bottom,R.right]}; jb=function(R,l,y,f,A,K){K=K===void 0?new IR:K;WM.call(this,l,y,f);this.tq=A;this.iS=0;this.Cw={};this.AL=new Jac;this.rf={};this.Zy="";this.tU=null;this.LA=!1;this.Z=[];this.iG=K.X();this.D=K.L();this.Y=null;this.L=-1;this.v1=this.B=void 0;this.Yb=this.LX=0;this.sL=-1;this.uQ=this.W1=!1;this.Dq=this.W=this.X=this.OV=this.ZL=0;new Gl;this.P1=this.jS=0;this.UL=-1;this.fW=0;this.V=g.v0;this.xb=[this.l6()];this.nA=2;this.yc={};this.yc.pause="p";this.yc.resume="r";this.yc.skip="s";this.yc.mute="m";this.yc.unmute= "um";this.yc.exitfullscreen="ef";this.J=null;this.B1=this.iQ=!1;this.sF=Math.floor(Date.now()/1E3-1704067200);this.CX=0}; kF=function(R){R.hasCompleted=!0;R.fW!=0&&(R.fW=3)}; DQ=function(R){return R===void 0?R:Number(R)?jj(R,3):0}; ZQ=function(R,l){return R.xb[l!=null&&lMath.max(1E4,R.L/3)?0:l);var y=R.V(R)||{};y=y.currentTime!==void 0?y.currentTime:R.LX;var f=y-R.LX,A=0;f>=0?(R.Yb+=l,R.P1+=Math.max(l-f,0),A=Math.min(f,R.Yb)):R.jS+=Math.abs(f);f!=0&&(R.Yb=0);R.UL==-1&&f>0&&(R.UL=Nu>=0?zX()-Nu:-1);R.LX=y;return A}; M4s=function(R,l){Dx(R.D,function(y){return y.Y==l.Y})||R.D.push(l)}; R3T=function(R){var l=BM(R.gN().Z,1);return J4(R,l)}; J4=function(R,l,y){return l>=15E3?!0:R.W1?(y===void 0?0:y)?!0:R.L>0?l>=R.L/2:R.sL>0?l>=R.sL:!1:!1}; las=function(R){var l=jj(R.yD.e_,2),y=R.AL.L,f=R.yD,A=ZQ(R),K=DQ(A.Y),G=DQ(A.D),B=DQ(f.volume),H=jj(A.V,2),n=jj(A.Yb,2),m=jj(f.e_,2),h=jj(A.xb,2),c=jj(A.sL,2);f=jj(f.uV,2);var E=R.V8().clone().round();R=R.gQ&&R.gQ.L?(R.gQ?R.gQ.L:null).clone().round():null;A=oR(A,!1);return{wfb:l,WV:y,XT:K,Bc:G,Is:B,LK:H,Mb:n,e_:m,To:h,rd:c,uV:f,position:E,g6:R,aZ:A}}; fac=function(R,l){ybY(R.Z,l,function(){return{wfb:0,WV:void 0,XT:-1,Bc:-1,Is:-1,LK:-1,Mb:-1,e_:-1,To:-1,rd:-1,uV:-1,position:void 0,g6:void 0,aZ:[]}}); R.Z[l]=las(R)}; ybY=function(R,l,y){for(var f=R.length;f0?1:0;h.atos= aR(n.Z);h.ssb=aR(n.B1,!1);h.amtos=eS9(n.Z,!1);h.uac=R.ZL;h.vpt=n.L.Z;m=="nio"&&(h.nio=1,h.avms="nio");h.gmm="4";h.gdr=J4(R,n.L.Z,!0)?1:0;h.efpf=R.nA;if(m=="gsv"||m=="nis")m=R.gQ,m.V>0&&(h.nnut=m.V);h.tcm=t4Q(R);h.nmt=R.jS;h.bt=R.P1;h.pst=R.UL;h.vpaid=R.B;h.dur=R.L;h.vmtime=R.LX;h.is=R.AL.L;R.Z.length>=1&&(h.i0=R.Z[0].WV,h.a0=[R.Z[0].Is],h.c0=[R.Z[0].e_],h.ss0=[R.Z[0].uV],m=R.Z[0].position,K=R.Z[0].g6,h.p0=m?Sb(m):void 0,m&&K&&!pS(K,m)&&(h.cp0=Sb(K)));R.Z.length>=2&&(h.i1=R.Z[1].WV,h.a1=qH(R.Z[1].XT, R.Z[1].Is,R.Z[1].Bc),h.c1=qH(R.Z[1].LK,R.Z[1].e_,R.Z[1].Mb),h.ss1=qH(R.Z[1].To,R.Z[1].uV,R.Z[1].rd),m=R.Z[1].position,K=R.Z[1].g6,h.p1=m?Sb(m):void 0,m&&K&&!pS(K,m)&&(h.cp1=Sb(K)),h.mtos1=R.Z[1].aZ);R.Z.length>=3&&(h.i2=R.Z[2].WV,h.a2=qH(R.Z[2].XT,R.Z[2].Is,R.Z[2].Bc),h.c2=qH(R.Z[2].LK,R.Z[2].e_,R.Z[2].Mb),h.ss2=qH(R.Z[2].To,R.Z[2].uV,R.Z[2].rd),m=R.Z[2].position,K=R.Z[2].g6,h.p2=m?Sb(m):void 0,m&&K&&!pS(K,m)&&(h.cp2=Sb(K)),h.mtos2=R.Z[2].aZ);R.Z.length>=4&&(h.i3=R.Z[3].WV,h.a3=qH(R.Z[3].XT,R.Z[3].Is, R.Z[3].Bc),h.c3=qH(R.Z[3].LK,R.Z[3].e_,R.Z[3].Mb),h.ss3=qH(R.Z[3].To,R.Z[3].uV,R.Z[3].rd),m=R.Z[3].position,K=R.Z[3].g6,h.p3=m?Sb(m):void 0,m&&K&&!pS(K,m)&&(h.cp3=Sb(K)),h.mtos3=R.Z[3].aZ);h.cs=V4o(R.AL);l&&(h.ic=g9c(R.AL),h.dvpt=n.L.X,h.dvs=n_(n.X,.5),h.dfvs=n_(n.X,1),h.davs=n_(n.Z,.5),h.dafvs=n_(n.Z,1),y&&(n.L.X=0,b$r(n.X),b$r(n.Z)),R.Bo()&&(h.dtos=n.Dq,h.dav=n.B,h.dtoss=R.iS+1,y&&(n.Dq=0,n.B=0,R.iS++)),h.dat=n.J.X,h.dft=n.LX.X,y&&(n.J.X=0,n.LX.X=0));h.ps=[B.J.width,B.J.height];h.bs=[Nh(B.Z),B.Z.getHeight()]; h.scs=[B.Y.width,B.Y.height];h.dom=B.domain;R.OV&&(h.vds=R.OV);if(R.D.length>0||R.iG)l=g.wO(R.D),R.iG&&l.push(R.iG),h.pings=g.L$(l,function(c){return c.toString()}); l=g.L$(g.bs(R.D,function(c){return c.D()}),function(c){return c.getId()}); QrZ(l);h.ces=l;R.X&&(h.vmer=R.X);R.W&&(h.vmmk=R.W);R.Dq&&(h.vmiec=R.Dq);h.avms=R.gQ?R.gQ.getName():"ns";R.gQ&&g.Lp(h,R.gQ.nQ());f?(h.c=jj(R.yD.e_,2),h.ss=jj(R.yD.uV,2)):h.tth=zX()-aaj;h.mc=jj(n.Yb,2);h.nc=jj(n.V,2);h.mv=DQ(n.D);h.nv=DQ(n.Y);h.lte=jj(R.g0,2);f=ZQ(R,A);oR(n);h.qmtos=oR(f);h.qnc=jj(f.V,2);h.qmv=DQ(f.D);h.qnv=DQ(f.Y);h.qas=f.Y>0?1:0;h.qi=R.Zy;h.avms||(h.avms="geo");h.psm=n.P1.Z;h.psv=n.P1.getValue();h.psfv=n.W1.getValue();h.psa=n.tU.getValue();H=Nqr(H.xG);H.length&&(h.veid=H);R.J&&g.Lp(h, U2o(R.J));h.avas=R.NN();h.vs=R.vr();h.co=sf7(R);h.tm=n.CX;h.tu=n.v1;return h}; Abs=function(R,l){if(g.uA(BkY,l))return!0;var y=R.Cw[l];return y!==void 0?(R.Cw[l]=!0,!y):!1}; sf7=function(R){var l=R.CX.toString(10).padStart(2,"0");l=""+R.sF+l;R.CX<99&&R.CX++;return l}; nGs=function(){this.Z={};var R=nS();t4(this,R,document);var l=HYj();try{if("1"==l){for(var y=R.parent;y!=R.top;y=y.parent)t4(this,y,y.document);t4(this,R.top,R.top.document)}}catch(f){}}; HYj=function(){var R=document.documentElement;try{if(!HI(nS().top))return"2";var l=[],y=nS(R.ownerDocument);for(R=y;R!=y.top;R=R.parent)if(R.frameElement)l.push(R.frameElement);else break;return l&&l.length!=0?"1":"0"}catch(f){return"2"}}; t4=function(R,l,y){h4(y,"mousedown",function(){return mSo(R)},301); h4(l,"scroll",function(){return oGY(R)},302); h4(y,"touchmove",function(){return h39(R)},303); h4(y,"mousemove",function(){return cbi(R)},304); h4(y,"keydown",function(){return EGr(R)},305)}; mSo=function(R){g.RL(R.Z,function(l){l.L>1E5||++l.L})}; oGY=function(R){g.RL(R.Z,function(l){l.Z>1E5||++l.Z})}; h39=function(R){g.RL(R.Z,function(l){l.Z>1E5||++l.Z})}; EGr=function(R){g.RL(R.Z,function(l){l.X>1E5||++l.X})}; cbi=function(R){g.RL(R.Z,function(l){l.Y>1E5||++l.Y})}; WJs=function(){this.Z=[];this.X=[]}; YF=function(R,l){return g.iA(R.Z,function(y){return y.Zy==l})}; LJQ=function(R,l){return l?g.iA(R.Z,function(y){return y.Ie.IQ==l}):null}; OY9=function(R,l){return g.iA(R.X,function(y){return y.BR()==2&&y.Zy==l})}; Rk=function(){var R=MH;return R.Z.length==0?R.X:R.X.length==0?R.Z:g.dO(R.X,R.Z)}; iYi=function(R,l){R=l.BR()==1?R.Z:R.X;var y=LX(R,function(f){return f==l}); return y!=-1?(R.splice(y,1),l.gQ&&l.gQ.unobserve(),l.dispose(),!0):!1}; PTj=function(R){var l=MH;if(iYi(l,R)){switch(R.BR()){case 0:var y=function(){return null}; case 2:y=function(){return OY9(l,R.Zy)}; break;case 1:y=function(){return YF(l,R.Zy)}}for(var f=y();f;f=y())iYi(l,f)}}; u7k=function(R){var l=MH;R=g.bs(R,function(y){return!LJQ(l,y.Ie.IQ)}); l.Z.push.apply(l.Z,g.ci(R))}; FJY=function(R){var l=[];g.qZ(R,function(y){Dx(MH.Z,function(f){return f.Ie.IQ===y.Ie.IQ&&f.Zy===y.Zy})||(MH.Z.push(y),l.push(y))})}; ln=function(){this.Z=this.X=null}; QfK=function(R,l){function y(f,A){l(f,A)} if(R.X==null)return!1;R.Z=g.iA(R.X,function(f){return f!=null&&f.X4()}); R.Z&&(R.Z.init(y)?H$Z(R.Z.Z):l(R.Z.Z.Qx(),R.Z));return R.Z!=null}; y$=function(R){R=$Sr(R);Mu.call(this,R.length?R[R.length-1]:new C4(dX,0));this.L=R;this.X=null}; $Sr=function(R){if(!R.length)return[];R=(0,g.bs)(R,function(y){return y!=null&&y.eg()}); for(var l=1;ly.time?l:y},R[0])}; Gg=function(R){R=R===void 0?dX:R;Mu.call(this,new C4(R,2))}; ak=function(){var R=TkY();C4.call(this,dX.top,R,"geo")}; TkY=function(){AT();var R=Zx();return R.L||R.X?0:2}; dSk=function(){}; sO=function(){this.done=!1;this.Z={NT:0,s2:0,Vi4:0,eA:0,K4:-1,fB:0,nB:0,Vo:0,aKS:0};this.J=null;this.D=!1;this.L=null;this.V=0;this.X=new Vf(this)}; HX=function(){var R=BX;R.D||(R.D=!0,rbo(R,function(){return R.Y.apply(R,g.ci(g.SJ.apply(0,arguments)))}),R.Y())}; vGJ=function(){PI(dSk);var R=PI(ln);R.Z!=null&&R.Z.Z?H$Z(R.Z.Z):Zx().update(dX)}; na=function(R,l,y){if(!R.done&&(R.X.cancel(),l.length!=0)){R.L=null;try{vGJ();var f=zX();AT().J=f;if(PI(ln).Z!=null)for(var A=0;A=0?zX()-wN:-1,B=zX();A.Z.K4==-1&&(G=B);var H=Zx(),n=AT(),m=bN(n.xG),h=Rk();try{if(h.length>0){var c=H.Z;c&&(m.bs=[Nh(c),c.getHeight()]);var E=H.J;E&&(m.ps=[E.width,E.height]);dX.screen&&(m.scs=[dX.screen.width,dX.screen.height])}else m.url=encodeURIComponent(dX.location.href.substring(0,512)),K.referrer&&(m.referrer=encodeURIComponent(K.referrer.substring(0,512))); m.tt=G;m.pt=wN;m.bin=n.X;dX.google_osd_load_pub_page_exp!==void 0&&(m.olpp=dX.google_osd_load_pub_page_exp);m.deb=[1,A.Z.NT,A.Z.s2,A.Z.eA,A.Z.K4,0,A.X.X,A.Z.fB,A.Z.nB,A.Z.Vo,A.Z.aKS,-1].join(";");m.tvt=wSJ(A,B);H.X&&(m.inapp=1);if(dX!==null&&dX!=dX.top){h.length>0&&(m.iframe_loc=encodeURIComponent(dX.location.href.substring(0,512)));var W=H.V;m.is=[Nh(W),W.getHeight()]}}catch(Q){m.error=1}BX.L=m}c=g.Eh(BX.L);E=AT().Z;en(E.L,"prf")==1?(W=new yf,A=E.Z,K=0,A.Z>-1&&(K=A.L.Z.now()-A.Z),W=BS(W,1,HY(A.Y+ K),0),A=E.Z,W=BS(W,5,ha(A.Z>-1?A.X+1:A.X),0),W=BS(W,2,F9(E.X.Z.L()),"0"),W=BS(W,3,F9(E.X.Z.X()),"0"),E=BS(W,4,F9(E.X.Z.Z()),"0"),W={},E=(W.pf=g.b4(E.L()),W)):E={};g.Lp(c,E);g.Lp(l,f,y,c,R())}])}; Nks=function(){var R=Ia7||dX;if(!R)return"";var l=[];if(!R.location||!R.location.href)return"";l.push("url="+encodeURIComponent(R.location.href.substring(0,512)));R.document&&R.document.referrer&&l.push("referrer="+encodeURIComponent(R.document.referrer.substring(0,512)));return l.join("&")}; m_=function(){var R="youtube.player.web_20250609_22_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250609_22_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250609_22_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250609_22_RC00".match(/_(\d{8})_\d+_RC\d+$/),l;if(((l=R)==null?void 0:l.length)==2)return R[1];R="youtube.player.web_20250609_22_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var y;return((y=R)==null?void 0:y.length)==3?"20"+R[1]+R[2]:null}; pSs=function(){return"av.default_js".includes("ima_html5_sdk")?{NH:"ima",AI:null}:"av.default_js".includes("ima_native_sdk")?{NH:"nima",AI:null}:"av.default_js".includes("admob-native-video-javascript")?{NH:"an",AI:null}:"youtube.player.web_20250609_22_RC00".includes("cast_js_sdk")?{NH:"cast",AI:m_()}:"youtube.player.web_20250609_22_RC00".includes("youtube.player.web")?{NH:"yw",AI:m_()}:"youtube.player.web_20250609_22_RC00".includes("outstream_web_client")?{NH:"out",AI:m_()}:"youtube.player.web_20250609_22_RC00".includes("drx_rewarded_web")? {NH:"r",AI:m_()}:"youtube.player.web_20250609_22_RC00".includes("gam_native_web_video")?{NH:"n",AI:m_()}:"youtube.player.web_20250609_22_RC00".includes("admob_interstitial_video")?{NH:"int",AI:m_()}:{NH:"j",AI:null}}; cX=function(R,l){var y={sv:"967"};ok!==null&&(y.v=ok);y.cb=USZ;y.nas=MH.Z.length;y.msg=R;l!==void 0&&(R=SIi(l))&&(y.e=hl[R]);return y}; EO=function(R){return Ta(R,"custom_metric_viewable")}; SIi=function(R){var l=EO(R)?"custom_metric_viewable":R.toLowerCase();return m$(VC,function(y){return y==l})}; jfY=function(){this.Z=void 0;this.X=!1;this.L=0;this.Y=-1;this.J="tos"}; ZYr=function(R){try{var l=R.split(",");return l.length>g.Br(k_c).length?null:i4(l,function(y,f){f=f.toLowerCase().split("=");if(f.length!=2||DSo[f[0]]===void 0||!DSo[f[0]](f[1]))throw Error("Entry ("+f[0]+", "+f[1]+") is invalid.");y[f[0]]=f[1];return y},{})}catch(y){return null}}; Jbj=function(R,l){if(R.Z==void 0)return 0;switch(R.J){case "mtos":return R.X?HM(l.Z,R.Z):HM(l.X,R.Z);case "tos":return R.X?BM(l.Z,R.Z):BM(l.X,R.Z)}return 0}; WX=function(R,l,y,f){wa.call(this,l,f);this.V=R;this.W=y}; La=function(){}; OO=function(R){wa.call(this,"fully_viewable_audible_half_duration_impression",R)}; PX=function(R){this.Z=R}; un=function(R,l){wa.call(this,R,l)}; Fb=function(R){xF.call(this,"measurable_impression",R)}; Q$=function(){PX.apply(this,arguments)}; $Z=function(R,l,y){UD.call(this,R,l,y)}; el=function(R){R=R===void 0?dX:R;Mu.call(this,new C4(R,2))}; bn=function(R,l,y){UD.call(this,R,l,y)}; Xb=function(R){R=R===void 0?dX:R;Mu.call(this,new C4(R,2))}; Tg=function(){C4.call(this,dX,2,"mraid");this.P1=0;this.Yb=this.xb=!1;this.V=null;this.X=lCJ(this.L);this.Y.Z=new IA(0,0,0,0);this.CX=!1}; dr=function(R,l,y){R.Ot("addEventListener",l,y)}; qIY=function(R){AT().Y=!!R.Ot("isViewable");dr(R,"viewableChange",gGq);R.Ot("getState")==="loading"?dr(R,"ready",VkY):CTY(R)}; CTY=function(R){typeof R.X.iR.AFMA_LIDAR==="string"?(R.xb=!0,tkK(R)):(R.X.compatibility=3,R.V="nc",R.fail("w"))}; tkK=function(R){R.Yb=!1;var l=en(AT().xG,"rmmt")==1,y=!!R.Ot("isViewable");(l?!y:1)&&Fu().setTimeout(rN(524,function(){R.Yb||(YIK(R),vF(540,Error()),R.V="mt",R.fail("w"))}),500); MkQ(R);dr(R,R.X.iR.AFMA_LIDAR,Rcc)}; MkQ=function(R){var l=en(AT().xG,"sneio")==1,y=R.X.iR.AFMA_LIDAR_EXP_1!==void 0,f=R.X.iR.AFMA_LIDAR_EXP_2!==void 0;(l=l&&f)&&(R.X.iR.AFMA_LIDAR_EXP_2=!0);y&&(R.X.iR.AFMA_LIDAR_EXP_1=!l)}; YIK=function(R){R.Ot("removeEventListener",R.X.iR.AFMA_LIDAR,Rcc);R.xb=!1}; l17=function(R,l){if(R.Ot("getState")==="loading")return new g.JM(-1,-1);l=R.Ot(l);if(!l)return new g.JM(-1,-1);R=parseInt(l.width,10);l=parseInt(l.height,10);return isNaN(R)||isNaN(l)?new g.JM(-1,-1):new g.JM(R,l)}; VkY=function(){try{var R=PI(Tg);R.Ot("removeEventListener","ready",VkY);CTY(R)}catch(l){vF(541,l)}}; Rcc=function(R,l){try{var y=PI(Tg);y.Yb=!0;var f=R?new IA(R.y,R.x+R.width,R.y+R.height,R.x):new IA(0,0,0,0);var A=zX(),K=gN();var G=new p4(A,K,y);G.Z=f;G.volume=l;y.Oh(G)}catch(B){vF(542,B)}}; gGq=function(R){var l=AT(),y=PI(Tg);R&&!l.Y&&(l.Y=!0,y.CX=!0,y.V&&y.fail("w",!0))}; rr=function(){this.isInitialized=!1;this.Z=this.X=null;var R={};this.V=(R.start=this.iW,R.firstquartile=this.lW,R.midpoint=this.BD,R.thirdquartile=this.w5,R.complete=this.uW,R.error=this.kV,R.pause=this.Of,R.resume=this.rG,R.skip=this.r5,R.viewable_impression=this.MH,R.mute=this.dJ,R.unmute=this.dJ,R.fullscreen=this.HD,R.exitfullscreen=this.Sh,R.fully_viewable_audible_half_duration_impression=this.MH,R.measurable_impression=this.MH,R.abandon=this.Of,R.engagedview=this.MH,R.impression=this.MH,R.creativeview= this.MH,R.progress=this.dJ,R.custom_metric_viewable=this.MH,R.bufferstart=this.Of,R.bufferfinish=this.rG,R.audio_measurable=this.MH,R.audio_audible=this.MH,R);R={};this.W=(R.overlay_resize=this.MR,R.abandon=this.n4,R.close=this.n4,R.collapse=this.n4,R.overlay_unmeasurable_impression=function(l){return C_(l,"overlay_unmeasurable_impression",gN())},R.overlay_viewable_immediate_impression=function(l){return C_(l,"overlay_viewable_immediate_impression",gN())},R.overlay_unviewable_impression=function(l){return C_(l, "overlay_unviewable_impression",gN())},R.overlay_viewable_end_of_session_impression=function(l){return C_(l,"overlay_viewable_end_of_session_impression",gN())},R); AT().X=3;yFi(this);this.L=null}; vX=function(R,l,y,f){R=R.QP(null,f,!0,l);R.Y=y;u7k([R]);return R}; f1s=function(R,l,y){doT(l);var f=R.Z;g.qZ(l,function(A){var K=g.L$(A.criteria,function(G){var B=ZYr(G);if(B==null)G=null;else if(G=new jfY,B.visible!=null&&(G.Z=B.visible/100),B.audible!=null&&(G.X=B.audible==1),B.time!=null){var H=B.timetype=="mtos"?"mtos":"tos",n=SYY(B.time,"%")?"%":"ms";B=parseInt(B.time,10);n=="%"&&(B/=100);G.setTime(B,n,H)}return G}); Dx(K,function(G){return G==null})||M4s(y,new WX(A.id,A.event,K,f))})}; AFi=function(){var R=[],l=AT();R.push(PI(ak));en(l.xG,"mvp_lv")&&R.push(PI(Tg));l=[new el,new Xb];l.push(new y$(R));l.push(new Gg(dX));return l}; Kkc=function(R){if(!R.isInitialized){R.isInitialized=!0;try{var l=zX(),y=AT(),f=Zx();wN=l;y.L=79463069;R.X!=="o"&&(Ia7=AAs(dX));if(cAJ()){BX.Z.s2=0;BX.Z.K4=zX()-l;var A=AFi(),K=PI(ln);K.X=A;QfK(K,function(){zg()})?BX.done||(z3k(),qu(K.Z.Z,R),HX()):f.L?zg():HX()}else wr=!0}catch(G){throw MH.reset(),G; }}}; Ik=function(R){BX.X.cancel();xZ=R;BX.done=!0}; NX=function(R){if(R.X)return R.X;var l=PI(ln).Z;if(l)switch(l.getName()){case "nis":R.X="n";break;case "gsv":R.X="m"}R.X||(R.X="h");return R.X}; DT=function(R,l,y){if(R.Z==null)return l.OV|=4,!1;R=G2K(R.Z,y,l);l.OV|=R;return R==0}; zg=function(){var R=[new Gg(dX)],l=PI(ln);l.X=R;QfK(l,function(){Ik("i")})?BX.done||(z3k(),HX()):Ik("i")}; a1J=function(R,l){if(!R.LA){var y=C_(R,"start",gN());y=R.tq.Z(y).Z;var f={id:"lidarv"};f.r=l;f.sv="967";ok!==null&&(f.v=ok);hT(y,function(A,K){return f[A]=A=="mtos"||A=="tos"?K:encodeURIComponent(K)}); l=Nks();hT(l,function(A,K){return f[A]=encodeURIComponent(K)}); l="//pagead2.googlesyndication.com/pagead/gen_204?"+yC(ls(new RR,f));P4Q(l);R.LA=!0}}; ZT=function(R,l,y){na(BX,[R],!gN());fac(R,y);y!=4&&ybY(R.xb,y,R.l6);return C_(R,l,gN())}; yFi=function(R){xSJ(function(){var l=s7q();R.X!=null&&(l.sdk=R.X);var y=PI(ln);y.Z!=null&&(l.avms=y.Z.getName());return l})}; BQY=function(R,l,y,f){var A=LJQ(MH,y);A!==null&&A.Zy!==l&&(R.aF(A),A=null);A||(l=R.QP(y,zX(),!1,l),MH.X.length==0&&(AT().L=79463069),FJY([l]),A=l,A.Y=NX(R),f&&(A.tU=f));return A}; H8q=function(R,l){var y=R[l];y!==void 0&&y>0&&(R[l]=Math.floor(y*1E3))}; s7q=function(){var R=Zx(),l={},y={},f={};return Object.assign({},(l.sv="967",l),ok!==null&&(y.v=ok,y),(f["if"]=R.L?"1":"0",f.nas=String(MH.Z.length),f))}; Jl=function(R){wa.call(this,"audio_audible",R)}; gr=function(R){xF.call(this,"audio_measurable",R)}; V$=function(){PX.apply(this,arguments)}; Ca=function(){}; nzT=function(R){this.Z=R}; G2K=function(R,l,y){R=R.X();if(typeof R==="function"){var f={};var A={};f=Object.assign({},ok!==null&&(f.v=ok,f),(A.sv="967",A.cb=USZ,A.e=mzT(l),A));A=C_(y,l,gN());g.Lp(f,A);y.rf[l]=A;f=y.BR()==2?i$s(f).join("&"):y.tq.Z(f).Z;try{return R(y.Zy,f,l),0}catch(K){return 2}}else return 1}; mzT=function(R){var l=EO(R)?"custom_metric_viewable":R;R=m$(VC,function(y){return y==l}); return hl[R]}; qX=function(){rr.call(this);this.D=null;this.J=!1;this.Y="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; ozQ=function(R,l,y){y=y.opt_configurable_tracking_events;R.Z!=null&&Array.isArray(y)&&f1s(R,y,l)}; hcT=function(R,l,y){var f=YF(MH,l);f||(f=y.opt_nativeTime||-1,f=vX(R,l,NX(R),f),y.opt_osdId&&(f.tU=y.opt_osdId));return f}; cFi=function(R,l,y){var f=YF(MH,l);f||(f=vX(R,l,"n",y.opt_nativeTime||-1));return f}; Ezc=function(R,l){var y=YF(MH,l);y||(y=vX(R,l,"h",-1));return y}; Wkk=function(R){AT();switch(NX(R)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; i8J=function(R,l,y,f){y=y===void 0?{}:y;var A={};g.Lp(A,{opt_adElement:void 0,opt_fullscreen:void 0},y);var K=R.Z3(l,y);y=K?K.tq:R.c8();if(A.opt_bounds)return y.Z(cX("ol",f));if(f!==void 0)if(SIi(f)!==void 0)if(wr)R=cX("ue",f);else if(Kkc(R),xZ=="i")R=cX("i",f),R["if"]=0;else if(l=R.Z3(l,A)){b:{xZ=="i"&&(l.lA=!0);K=A.opt_fullscreen;K!==void 0&&L_(l,!!K);var G;if(K=!Zx().X)(K=vr(g.pp(),"CrKey")&&!(vr(g.pp(),"CrKey")&&vr(g.pp(),"SmartSpeaker"))||vr(g.pp(),"PlayStation")||vr(g.pp(),"Roku")||GoQ()||vr(g.pp(), "Xbox"))||(K=g.pp(),K=vr(K,"AppleTV")||vr(K,"Apple TV")||vr(K,"CFNetwork")||vr(K,"tvOS")),K||(K=g.pp(),K=vr(K,"sdk_google_atv_x86")||vr(K,"Android TV")),K=!K;K&&(Fu(),K=K$(JT)===0);if(G=K){switch(l.BR()){case 1:a1J(l,"pv");break;case 2:R.Yd(l)}Ik("pv")}K=f.toLowerCase();if(G=!G)G=en(AT().xG,"ssmol")&&K==="loaded"?!1:g.uA(Lkr,K);if(G&&l.fW==0){xZ!="i"&&(BX.done=!1);G=A!==void 0?A.opt_nativeTime:void 0;Nu=G=typeof G==="number"?G:zX();l.OW=!0;var B=gN();l.fW=1;l.Cw={};l.Cw.start=!1;l.Cw.firstquartile= !1;l.Cw.midpoint=!1;l.Cw.thirdquartile=!1;l.Cw.complete=!1;l.Cw.resume=!1;l.Cw.pause=!1;l.Cw.skip=!1;l.Cw.mute=!1;l.Cw.unmute=!1;l.Cw.viewable_impression=!1;l.Cw.measurable_impression=!1;l.Cw.fully_viewable_audible_half_duration_impression=!1;l.Cw.fullscreen=!1;l.Cw.exitfullscreen=!1;l.iS=0;B||(l.gN().W=G);na(BX,[l],!B)}(G=l.yc[K])&&da(l.AL,G);en(AT().xG,"fmd")||g.uA(O8Q,K)&&l.iG&&l.iG.X(l,null);switch(l.BR()){case 1:var H=EO(K)?R.V.custom_metric_viewable:R.V[K];break;case 2:H=R.W[K]}if(H&&(f=H.call(R, l,A,f),en(AT().xG,"fmd")&&g.uA(O8Q,K)&&l.iG&&l.iG.X(l,null),f!==void 0)){A=cX(void 0,K);g.Lp(A,f);f=A;break b}f=void 0}l.fW==3&&R.aF(l);R=f}else R=cX("nf",f);else R=void 0;else wr?R=cX("ue"):K?(R=cX(),g.Lp(R,KJj(K,!0,!1,!1))):R=cX("nf");return typeof R==="string"?y.Z():y.Z(R)}; P7Y=function(R,l){l&&(R.Y=l)}; ugQ=function(R){var l={};return l.viewability=R.Z,l.googleViewability=R.X,l}; Fk9=function(R,l,y){y=y===void 0?{}:y;R=i8J(PI(qX),l,y,R);return ugQ(R)}; tl=function(R){var l=g.SJ.apply(1,arguments).filter(Boolean).join("&");if(!l)return R;var y=R.match(/[?&]adurl=/);return y?R.slice(0,y.index+1)+l+"&"+R.slice(y.index+1):R+(R.indexOf("?")<0?"?":"&")+l}; YZ=function(R,l){return l?"&"+R+"="+encodeURIComponent(l):""}; Q77=function(R){var l=R.url;R=R.T$4;this.X=l;this.Y=R;this.L=(new Date).getTime()-17040672E5;this.Z={};for(var y=/[?&]([^&=]+)=([^&]*)/g;R=y.exec(l);)this.Z[R[1]]=R[2]}; $z7=function(R){R=R.Y;if(!R)return"";var l=YZ("uap",R.platform)+YZ("uapv",R.platformVersion)+YZ("uafv",R.uaFullVersion)+YZ("uaa",R.architecture)+YZ("uam",R.model)+YZ("uab",R.bitness);R.fullVersionList&&(l+="&uafvl="+encodeURIComponent(R.fullVersionList.map(function(y){return encodeURIComponent(y.brand)+";"+encodeURIComponent(y.version)}).join("|"))); R.wow64!=null&&(l+="&uaw="+Number(R.wow64));return l.slice(1)}; XET=function(R,l,y,f,A){var K=window;var G=G===void 0?!1:G;var B;y?B=(G===void 0?0:G)?"//ep1.adtrafficquality.google/bg/"+dF(y)+".js":"//pagead2.googlesyndication.com/bg/"+dF(y)+".js":B="";G=G===void 0?!1:G;y=K.document;var H={};l&&(H._scs_=l);H._bgu_=B;H._bgp_=f;H._li_="v_h.3.0.0.0";A&&(H._upb_=A);(l=K.GoogleTyFxhY)&&typeof l.push=="function"||(l=K.GoogleTyFxhY=[]);l.push(H);l=ya(y).createElement("SCRIPT");l.type="text/javascript";l.async=!0;R=(G===void 0?0:G)?dZK(ec9,dF(R)+".js"):dZK(b8T,dF(R)+ ".js");g.iH(l,R);(K=(K.GoogleTyFxhYEET||{})[l.src])?K():y.getElementsByTagName("head")[0].appendChild(l)}; TQQ=function(){try{var R,l;return!!((R=window)==null?0:(l=R.top)==null?0:l.location.href)&&!1}catch(y){return!0}}; MX=function(R,l,y){y=y===void 0?Error():y;var f=Error.call(this);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.code=R;l+=":";y instanceof Error?(this.message=l+y.message,this.stack=y.stack||""):(this.message=l+String(y),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; lO=function(){var R=dzc();R=R===void 0?"bevasrsg":R;return new Promise(function(l){var y=window===window.top?window:TQQ()?window:window.top,f=y[R],A;((A=f)==null?0:A.bevasrs)?l(new Rs(f.bevasrs)):(f||(f={},f=(f.nqfbel=[],f),y[R]=f),f.nqfbel.push(function(K){l(new Rs(K))}))})}; rFk=function(R){var l={c:R.CG,e:R.Y3,mc:R.xj,me:R.yh};R.TY&&(l.co={c:R.TY.GN,a:R.TY.Fe,s:R.TY.EZ});return l}; y5=function(R){g.p.call(this);this.wpc=R}; Rs=function(R){g.p.call(this);var l=this;this.hk=R;this.L="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.X=void 0;this.Hu=this.hk.p;this.Y=this.Mn.bind(this);this.addOnDisposeCallback(function(){return void vzj(l)})}; zcQ=function(R){var l;return g.w(function(y){if(y.X==1){if(!R.hk.wpc)throw new MX(30,"NWA");return R.Z?y.return(R.Z):g.v(y,R.hk.wpc(),2)}l=y.Z;R.Z=new y5(l);return y.return(R.Z)})}; vzj=function(R){R.X!==void 0&&(R.L.forEach(function(l){var y;(y=R.X)==null||y.removeEventListener(l,R.Y)}),R.X=void 0)}; wEQ=function(R){var l=l===void 0?49:l;var y=[];PS(R,fr,6).forEach(function(f){T_(f,2)<=l&&y.push(T_(f,1))}); return y}; xzq=function(R){var l=l===void 0?49:l;var y=[];PS(R,fr,6).forEach(function(f){T_(f,2)>l&&y.push(T_(f,1))}); return y}; I1c=function(R){R.then(function(){},function(){})}; Ag=function(){g.p.apply(this,arguments);this.Y=1;this[NQc]=this.dispose}; Kr=function(R){return{fieldType:2,fieldName:R}}; g.GY=function(R){return{fieldType:3,fieldName:R}}; pEr=function(R){this.Z=R;R.lC("/client_streamz/bg/frs",g.GY("mk"))}; Uzj=function(R){this.Z=R;R.lC("/client_streamz/bg/wrl",g.GY("mn"),Kr("ac"),Kr("sc"),g.GY("rk"),g.GY("mk"))}; Sdq=function(R){this.Z=R;R.Yy("/client_streamz/bg/ec",g.GY("en"),g.GY("mk"))}; j79=function(R){this.Z=R;R.lC("/client_streamz/bg/el",g.GY("en"),g.GY("mk"))}; k2Y=function(R){this.Z=R;R.Yy("/client_streamz/bg/cec",Kr("ec"),g.GY("mk"))}; DzK=function(R){this.Z=R;R.Yy("/client_streamz/bg/po/csc",Kr("cs"),g.GY("mk"))}; Z8K=function(R){this.Z=R;R.Yy("/client_streamz/bg/po/ctav",g.GY("av"),g.GY("mk"))}; JFi=function(R){this.Z=R;R.Yy("/client_streamz/bg/po/cwsc",g.GY("su"),g.GY("mk"))}; gzQ=function(R){this.w7=Dl(R)}; VyJ=function(R,l){return X4i(R,l,MnZ)}; as=function(R){this.w7=Dl(R)}; sj=function(R){this.w7=Dl(R)}; Bb=function(R){this.w7=Dl(R)}; Hb=function(R){this.w7=Dl(R)}; nr=function(R){this.w7=Dl(R)}; mo=function(R){this.w7=Dl(R)}; C7Q=function(R){this.w7=Dl(R)}; YdY=function(R){var l=new mo;l=If(l,1,R.X);var y=qdr(R);l=X4i(l,y,nJc);y=[];for(var f=[],A=g.u(R.Z.keys()),K=A.next();!K.done;K=A.next())f.push(K.value.split(","));for(A=0;A>>31)&4294967295;h=A[0];var W=A[1],Q=A[2],e=A[3],r=A[4];for(E=0;E<80;E++){if(E<40)if(E<20){var d=e^W&(Q^e);var z=1518500249}else d=W^Q^e,z=1859775393;else E<60?(d=W&Q|e&(W|Q),z=2400959708):(d=W^Q^e,z=3395469782);d=((h<<5|h>>>27)&4294967295)+d+r+z+c[E]&4294967295;r=e;e=Q;Q=(W<<30|W>>>2)&4294967295;W=h;h=d}A[0]=A[0]+h&4294967295;A[1]=A[1]+W&4294967295;A[2]= A[2]+Q&4294967295;A[3]=A[3]+e&4294967295;A[4]=A[4]+r&4294967295} function y(h,c){if(typeof h==="string"){h=unescape(encodeURIComponent(h));for(var E=[],W=0,Q=h.length;W=56;E--)K[E]=c&255,c>>>=8;l(K);for(E=c=0;E<5;E++)for(var W=24;W>=0;W-=8)h[c++]=A[E]>>W&255;return h} for(var A=[],K=[],G=[],B=[128],H=1;H<64;++H)B[H]=0;var n,m;R();return{reset:R,update:y,digest:f,lz:function(){for(var h=f(),c="",E=0;E1)));G=G.next)A||(K=G);A&&(y.Z==0&&f==1?Cyi(y,l):(K?(f=K,f.next==y.Y&&(y.Y=f),f.next=f.next.next):qQ9(y),tjJ(y,A,3,l)))}R.L=null}else QL(R,3,l)}; zZ=function(R,l){R.X||R.Z!=2&&R.Z!=3||YQ9(R);R.Y?R.Y.next=l:R.X=l;R.Y=l}; Mji=function(R,l,y,f){var A=ef(null,null,null);A.Z=new g.$v(function(K,G){A.L=l?function(B){try{var H=l.call(f,B);K(H)}catch(n){G(n)}}:K; A.X=y?function(B){try{var H=y.call(f,B);H===void 0&&B instanceof xv?G(B):K(H)}catch(n){G(n)}}:G}); A.Z.L=R;zZ(R,A);return A.Z}; QL=function(R,l,y){R.Z==0&&(R===y&&(l=3,y=new TypeError("Promise cannot resolve to itself")),R.Z=1,Z4j(y,R.hQQ,R.UWx,R)||(R.V=y,R.Z=l,R.L=null,YQ9(R),l!=3||y instanceof xv||Rlc(R,y)))}; Z4j=function(R,l,y,f){if(R instanceof g.$v)return Vjk(R,l,y,f),!0;if(R)try{var A=!!R.$goog_Thenable}catch(G){A=!1}else A=!1;if(A)return R.then(l,y,f),!0;if(g.GK(R))try{var K=R.then;if(typeof K==="function")return lQZ(R,K,l,y,f),!0}catch(G){return y.call(f,G),!0}return!1}; lQZ=function(R,l,y,f,A){function K(H){B||(B=!0,f.call(A,H))} function G(H){B||(B=!0,y.call(A,H))} var B=!1;try{l.call(R,G,K)}catch(H){K(H)}}; YQ9=function(R){R.D||(R.D=!0,g.FC(R.CH,R))}; qQ9=function(R){var l=null;R.X&&(l=R.X,R.X=l.next,l.next=null);R.X||(R.Y=null);return l}; tjJ=function(R,l,y,f){if(y==3&&l.X&&!l.Y)for(;R&&R.J;R=R.L)R.J=!1;if(l.Z)l.Z.L=null,y47(l,y,f);else try{l.Y?l.L.call(l.context):y47(l,y,f)}catch(A){fQZ.call(null,A)}Ix7(DuZ,l)}; y47=function(R,l,y){l==2?R.L.call(R.context,y):R.X&&R.X.call(R.context,y)}; Rlc=function(R,l){R.J=!0;g.FC(function(){R.J&&fQZ.call(null,l)})}; xv=function(R){E5.call(this,R)}; g.Iu=function(R,l){g.sT.call(this);this.H0=R||1;this.b4=l||g.Mo;this.U2=(0,g.B8)(this.grE,this);this.oM=g.mU()}; g.N_=function(R,l,y){if(typeof R==="function")y&&(R=(0,g.B8)(R,y));else if(R&&typeof R.handleEvent=="function")R=(0,g.B8)(R.handleEvent,R);else throw Error("Invalid listener argument");return Number(l)>2147483647?-1:g.Mo.setTimeout(R,l||0)}; pv=function(R,l){var y=null;return(new g.$v(function(f,A){y=g.N_(function(){f(l)},R); y==-1&&A(Error("Failed to schedule timer."))})).H6(function(f){g.Mo.clearTimeout(y); throw f;})}; g.UT=function(R){g.p.call(this);this.V=R;this.Y=0;this.L=100;this.J=!1;this.X=new Map;this.D=new Set;this.flushInterval=3E4;this.Z=new g.Iu(this.flushInterval);this.Z.listen("tick",this.q1,!1,this);g.U(this,this.Z)}; A4j=function(R){R.Z.enabled||R.Z.start();R.Y++;R.Y>=R.L&&R.q1()}; Kzr=function(R,l){return R.D.has(l)?void 0:R.X.get(l)}; Glk=function(R){for(var l=0;l2?R.Z.statusText:""}catch(y){l=""}R.Y=l+" ["+R.getStatus()+"]";WzT(R)}}finally{J_(R)}}}; J_=function(R,l){if(R.Z){R.D&&(clearTimeout(R.D),R.D=null);var y=R.Z;R.Z=null;l||R.dispatchEvent("ready");try{y.onreadystatechange=null}catch(f){}}}; Cv=function(R){var l=R.getStatus();a:switch(l){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var y=!0;break a;default:y=!1}if(!y){if(l=l===0)R=g.HF(String(R.W))[1]||null,!R&&g.Mo.self&&g.Mo.self.location&&(R=g.Mo.self.location.protocol.slice(0,-1)),l=!i_T.test(R?R.toLowerCase():"");y=l}return y}; g.VL=function(R){return R.Z?R.Z.readyState:0}; g.q_=function(R){try{return R.Z?R.Z.responseText:""}catch(l){return""}}; g.t_=function(R){try{if(!R.Z)return null;if("response"in R.Z)return R.Z.response;switch(R.Dq){case "":case "text":return R.Z.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in R.Z)return R.Z.mozResponseArrayBuffer}return null}catch(l){return null}}; g.PsQ=function(R){var l={};R=(R.Z&&g.VL(R)>=2?R.Z.getAllResponseHeaders()||"":"").split("\r\n");for(var y=0;y>1,l),Fd(R,R.length>>1)]}; ylc=function(R){var l=g.u(lT9(R,Q_));R=l.next().value;l=l.next().value;return R.toString(16)+l.toString(16)}; fTk=function(R,l){var y=lT9(l);R=new Uint32Array(R.buffer);l=R[0];var f=g.u(y);y=f.next().value;f=f.next().value;for(var A=1;A>>8|G<<24,G+=K|0,G^=B+38293,K=K<<3|K>>>29,K^=G,H=H>>>8|H<<24,H+=B|0,H^=n+38293,B=B<<3|B>>>29,B^=H;K=[K,G];R[A]^=K[0];A+1=y?(globalThis.sessionStorage.removeItem(R),["e"]):["a",new Uint8Array(f.buffer,l+4)]}; $l=function(R,l,y){y=y===void 0?[]:y;this.maxItems=R;this.Z=l===void 0?0:l;this.X=y}; GgQ=function(R){var l=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!l)return new $l(R);var y=l.split(",");if(y.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new $l(R);l=y.slice(1);l.length===1&&l[0]===""&&(l=[]);y=Number(y[0]);return isNaN(y)||y<0||y>l.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new $l(R)):new $l(R,y,l)}; aT7=function(R,l){this.logger=l;try{var y=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(f){y=!1}y&&(this.index=GgQ(R))}; skY=function(R,l,y,f,A){var K=R.index?f3(R.logger,function(){return Ali(R.index,ylc(l),y,f,A)},"W"):"u"; R.logger.S5(K)}; BrZ=function(R,l,y){var f=g.u(R.index?f3(R.logger,function(){return K_7(ylc(l),y)},"R"):["u"]),A=f.next().value; f=f.next().value;R.logger.EP(A);return f}; mXT=function(R){function l(){y-=f;y-=A;y^=A>>>13;f-=A;f-=y;f^=y<<8;A-=y;A-=f;A^=f>>>13;y-=f;y-=A;y^=A>>>12;f-=A;f-=y;f^=y<<16;A-=y;A-=f;A^=f>>>5;y-=f;y-=A;y^=A>>>3;f-=A;f-=y;f^=y<<10;A-=y;A-=f;A^=f>>>15} R=Haj(R);for(var y=2654435769,f=2654435769,A=314159265,K=R.length,G=K,B=0;G>=12;G-=12,B+=12)y+=e1(R,B),f+=e1(R,B+4),A+=e1(R,B+8),l();A+=K;switch(G){case 11:A+=R[B+10]<<24;case 10:A+=R[B+9]<<16;case 9:A+=R[B+8]<<8;case 8:f+=R[B+7]<<24;case 7:f+=R[B+6]<<16;case 6:f+=R[B+5]<<8;case 5:f+=R[B+4];case 4:y+=R[B+3]<<24;case 3:y+=R[B+2]<<16;case 2:y+=R[B+1]<<8;case 1:y+=R[B+0]}l();return nZZ.toString(A)}; Haj=function(R){for(var l=[],y=0;y>7,R.error.code]);f.set(y,4);return f}; xl=function(R,l,y){bG.call(this,R);this.Y=l;this.clientState=y;this.Z="S";this.X="q"}; we=function(R){return globalThis.TextEncoder?(new TextEncoder).encode(R):g.eS(R)}; cl9=function(R,l,y){return R instanceof OP?jRi(R,y,l,1):R.Rv(y)}; Nl=function(R){g.p.call(this);var l=this;this.L=new g.o2;this.Y=0;this.X=void 0;this.state=2;this.hk=R.hk;this.bT=R.bT;this.sX=Object.assign({},EZ9,R.sX||{});this.logger=R.hk.rV();var y;this.onError=(y=R.onError)!=null?y:function(){}; this.TM=R.TM||!1;if(W_r(R)){var f=this.hk;this.J=function(){return gFK(f).catch(function(G){G=l.reportError(new MX(l.Z?20:32,"TRG:Disposed",G));l.X=G;var B;(B=l.Z)==null||B.dispose();l.Z=void 0;l.L.reject(G)})}; VbZ(f,function(){return void I2(l)}); f.W===2&&I2(this)}else this.J=R.GA$,I2(this);var A=this.logger.share();A.bx("o");var K=new lG(A,"o");this.L.promise.then(function(){K.done();A.Qr();A.dispose()},function(){return void A.dispose()}); this.addOnDisposeCallback(function(){l.Z?(l.Z.dispose(),l.Z=void 0):l.X?l.logger.Qr():(l.X=l.reportError(new MX(32,"TNP:Disposed")),l.logger.Qr(),l.L.reject(l.X))}); g.U(this,this.logger)}; L_o=function(R,l){if(!(l instanceof MX))if(l instanceof Sf){var y=Error(l.toString());y.stack=l.stack;l=new MX(11,"EBH:Error",y)}else l=new MX(12,"BSO:Unknown",l);return R.reportError(l)}; I2=function(R){var l,y,f,A,K,G,B,H,n,m,h,c,E,W,Q;return g.w(function(e){switch(e.X){case 1:l=void 0;R.Y++;y=new g.o2;R.hk instanceof iG&&R.hk.Y.push(y.promise);if(!R.TM){e.bQ(2);break}f=new g.o2;setTimeout(function(){return void f.resolve()}); return g.v(e,f.promise,2);case 2:return A=R.logger.share(),g.$7(e,4,5),R.state=5,K={},G=[],g.v(e,uG(R.hk.snapshot({CG:K,wf:G}),R.sX.Xf$,function(){return Promise.reject(new MX(15,"MDA:Timeout"))}),7); case 7:B=e.Z;if(R.Fx())throw new MX(R.Z?20:32,"MDA:Disposed");H=G[0];R.state=6;return g.v(e,uG(cl9(R.bT,A,B),R.sX.VY,function(){return Promise.reject(new MX(10,"BWB:Timeout"))}),8); case 8:n=e.Z;if(R.Fx())throw new MX(R.Z?20:32,"BWB:Disposed");R.state=7;l=f3(A,function(){var d=Oak(R,n,y,H);d.L.promise.then(function(){return void R.J()}); return d},"i"); case 5:g.zT(e);A.dispose();g.x7(e,6);break;case 4:m=g.TT(e);(h=l)==null||h.dispose();if(!R.X){c=L_o(R,m);y.resolve();var r;if(r=R.hk instanceof iG&&R.Y<2)a:if(m instanceof MX)r=m.code!==32&&m.code!==20&&m.code!==10;else{if(m instanceof Sf)switch(m.code){case 2:case 13:case 14:case 4:break;default:r=!1;break a}r=!0}if(r)return E=(1+Math.random()*.25)*(R.Z?6E4:1E3),W=setTimeout(function(){return void R.J()},E),R.addOnDisposeCallback(function(){return void clearTimeout(W)}),e.return(); R.X=c}A.nW(R.Z?13:14);R.L.reject(R.X);return e.return();case 6:R.state=8,R.Y=0,(Q=R.Z)==null||Q.dispose(),R.Z=l,R.L.resolve(),g.Q9(e)}})}; Oak=function(R,l,y,f){var A=dk(l,2)*1E3;if(A<=0)throw new MX(31,"TTM:Invalid");if(rk(l,4))return new vG(R.logger,rk(l,4),A);if(!dk(l,3))return new re(R.logger,Im(sI(l,1)),A);if(!f)throw new MX(4,"PMD:Undefined");f=f(Im(sI(l,1)));if(!(f instanceof Function))throw new MX(16,"APF:Failed");R.D=Math.floor((Date.now()+A)/1E3);R=new de(R.logger,f,dk(l,3),A);R.addOnDisposeCallback(function(){return void y.resolve()}); return R}; iaq=function(R,l){l=l instanceof MX?l:new MX(5,"TVD:error",l);return R.reportError(l)}; $XK=function(R,l,y){try{if(R.Fx())throw new MX(21,"BNT:disposed");if(!R.Z&&R.X)throw R.X;var f,A;return(A=(f=PnK(R,l,y))!=null?f:ubc(R,l,y))!=null?A:F_J(R,l,y)}catch(K){if(!l.yh)throw iaq(R,K);return QkT(R,y,K)}}; PnK=function(R,l,y){var f;return(f=R.Z)==null?void 0:TN(f,function(){return p3(R,l)},y,function(A){var K; if(R.Z instanceof de&&((K=l.TY)==null?0:K.EZ))try{var G;(G=R.cache)==null||skY(G,p3(R,l),A,l.TY.GN,R.D-120)}catch(B){R.reportError(new MX(24,"ELX:write",B))}})}; ubc=function(R,l,y){var f;if((f=l.TY)!=null&&f.Fe)try{var A,K=(A=R.cache)==null?void 0:BrZ(A,p3(R,l),l.TY.GN);return K?y?f3(R.logger,function(){return g.b4(K,2)},"a"):K:void 0}catch(G){R.reportError(new MX(23,"RXO:read",G))}}; F_J=function(R,l,y){var f={stack:[],error:void 0,hasError:!1};try{if(!l.xj)throw new MX(29,"SDF:notready");return TN(Wss(f,new xl(R.logger,0,R.state)),function(){return p3(R,l)},y)}catch(A){f.error=A,f.hasError=!0}finally{LsZ(f)}}; QkT=function(R,l,y){var f={stack:[],error:void 0,hasError:!1};try{var A=iaq(R,y);return TN(Wss(f,new zN(R.logger,A)),function(){return[]},l)}catch(K){f.error=K,f.hasError=!0}finally{LsZ(f)}}; p3=function(R,l){return l.Y3?l.Y3:l.CG?f3(R.logger,function(){return l.Y3=we(l.CG)},"c"):[]}; UP=function(){var R=0,l;return function(y){l||(l=new AR);var f=new xl(l,R,1),A=TN(f,function(){return we(y)},!0); f.dispose();R++;return A}}; S1=function(R){this.w7=Dl(R)}; ems=function(R,l,y){this.Sl=R;this.TI=l;this.metadata=y}; j1=function(R,l){l=l===void 0?{}:l;this.Q2U=R;this.metadata=l;this.status=null}; kl=function(R,l,y,f,A){this.name=R;this.methodType="unary";this.requestType=l;this.responseType=y;this.Z=f;this.X=A}; Dn=function(R){this.w7=Dl(R)}; Zn=function(R){this.w7=Dl(R)}; JR=function(R){this.w7=Dl(R)}; ge=function(R,l){this.V=R.R9X;this.W=l;this.Z=R.xhr;this.L=[];this.J=[];this.D=[];this.Y=[];this.X=[];this.V&&bas(this)}; rl7=function(R,l){var y=new XXZ;g.lx(R.Z,"complete",function(){if(Cv(R.Z)){var f=g.q_(R.Z);if(l&&R.Z.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");f=atob(f)}try{var A=R.W(f)}catch(B){V_(R,C3(new Sf(13,"Error when deserializing response data; error: "+B+(", response: "+f)),y));return}f=aQs(R.Z.getStatus());ql(R,tR(R));f==0?TrY(R,A):V_(R,C3(new Sf(f,"Xhr succeeded but the status code is not 200"),y))}else{f=g.q_(R.Z);A=tR(R);if(f){var K=dXQ(R, f);f=K.code;var G=K.details;K=K.metadata}else f=2,G="Rpc failed due to xhr error. uri: "+String(R.Z.W)+", error code: "+R.Z.X+", error: "+R.Z.getLastError(),K=A;ql(R,A);V_(R,C3(new Sf(f,G,K),y))}})}; bas=function(R){R.V.Yo("data",function(l){if("1"in l){var y=l["1"];try{var f=R.W(y)}catch(A){V_(R,new Sf(13,"Error when deserializing response data; error: "+A+(", response: "+y)))}f&&TrY(R,f)}if("2"in l)for(l=dXQ(R,l["2"]),y=0;y-1&&R.splice(l,1)}; TrY=function(R,l){for(var y=0;y>4&15).toString(16)+(R&15).toString(16)}; H6=function(R,l){this.X=this.Z=null;this.L=R||null;this.Y=!!l}; hI=function(R){R.Z||(R.Z=new Map,R.X=0,R.L&&hT(R.L,function(l,y){R.add(Ts(l),y)}))}; UXi=function(R,l){hI(R);l=c6(R,l);return R.Z.has(l)}; g.SO7=function(R,l,y){R.remove(l);y.length>0&&(R.L=null,R.Z.set(c6(R,l),g.wO(y)),R.X=R.X+y.length)}; c6=function(R,l){l=String(l);R.Y&&(l=l.toLowerCase());return l}; ITk=function(R,l){l&&!R.Y&&(hI(R),R.L=null,R.Z.forEach(function(y,f){var A=f.toLowerCase();f!=A&&(this.remove(f),g.SO7(this,A,y))},R)); R.Y=l}; g.jkZ=function(R){var l="";g.RL(R,function(y,f){l+=f;l+=":";l+=y;l+="\r\n"}); return l}; g.El=function(R,l,y){if(g.oL(y))return R;y=g.jkZ(y);if(typeof R==="string")return OQ(R,g.bH(l),y);g.mj(R,l,y);return R}; g.W6=function(R){g.p.call(this);this.X=R;this.Z={}}; kgT=function(R,l,y,f,A,K){if(Array.isArray(y))for(var G=0;G=0)return!0;try{var l=new g.AI(R)}catch(y){return g.iA(KoJ,function(f){return R.search(f)>0})!=null}return l.D.match(GYK)?!0:g.iA(KoJ,function(y){return R.match(y)!=null})!=null}; g.TS=function(R,l){return R.replace(ssr,function(y,f){try{var A=g.hA(l,f);if(A==null||A.toString()==null)return y;A=A.toString();if(A==""||!g.d9(g.rF(A)))return encodeURIComponent(A).replace(/%2C/g,",")}catch(K){}return y})}; dU=function(R,l){return Object.is(R,l)}; v6=function(R){var l=rU;rU=R;return l}; BJk=function(R){if(R.v$!==void 0){var l=zS;zS=!0;try{for(var y=g.u(R.v$),f=y.next();!f.done;f=y.next()){var A=f.value;A.FN||(R=void 0,A.FN=!0,BJk(A),(R=A.Xg)==null||R.call(A,A))}}finally{zS=l}}}; Hr9=function(){var R;return((R=rU)==null?void 0:R.qM)!==!1}; n2Y=function(R){R&&(R.yZ=0);return v6(R)}; mgZ=function(R,l){v6(l);if(R&&R.RJ!==void 0&&R.VI!==void 0&&R.XZ!==void 0){if(wU(R))for(l=R.yZ;lR.yZ;)R.RJ.pop(),R.XZ.pop(),R.VI.pop()}}; hqZ=function(R,l,y){o29(R);if(R.v$.length===0&&R.RJ!==void 0)for(var f=0;f0}; cgZ=function(R){R.RJ!=null||(R.RJ=[]);R.VI!=null||(R.VI=[]);R.XZ!=null||(R.XZ=[])}; o29=function(R){R.v$!=null||(R.v$=[]);R.rH!=null||(R.rH=[])}; Orj=function(R){function l(){if(zS)throw Error("");if(rU!==null){var f=rU.yZ++;cgZ(rU);f0?" "+l:l))}}; g.Kg=function(R,l){if(R.classList)Array.prototype.forEach.call(l,function(A){g.AU(R,A)}); else{var y={};Array.prototype.forEach.call(l0(R),function(A){y[A]=!0}); Array.prototype.forEach.call(l,function(A){y[A]=!0}); l="";for(var f in y)l+=l.length>0?" "+f:f;g.yD(R,l)}}; g.G8=function(R,l){R.classList?R.classList.remove(l):g.fg(R,l)&&g.yD(R,Array.prototype.filter.call(l0(R),function(y){return y!=l}).join(" "))}; g.ac=function(R,l){R.classList?Array.prototype.forEach.call(l,function(y){g.G8(R,y)}):g.yD(R,Array.prototype.filter.call(l0(R),function(y){return!g.uA(l,y)}).join(" "))}; g.BJ=function(R,l,y){y?g.AU(R,l):g.G8(R,l)}; brQ=function(R,l){var y=!g.fg(R,l);g.BJ(R,l,y)}; g.HJ=function(){g.sT.call(this);this.Z=0;this.endTime=this.startTime=null}; XbZ=function(R,l){Array.isArray(l)||(l=[l]);l=l.map(function(y){return typeof y==="string"?y:y.property+" "+y.duration+"s "+y.timing+" "+y.delay+"s"}); g.Df(R,"transition",l.join(","))}; ng=function(R,l,y,f,A){g.HJ.call(this);this.X=R;this.J=l;this.D=y;this.Y=f;this.V=Array.isArray(A)?A:[A]}; TJT=function(R,l,y,f){return new ng(R,l,{opacity:y},{opacity:f},{property:"opacity",duration:l,timing:"ease-in",delay:0})}; rgJ=function(R){R=za(R);if(R=="")return null;var l=String(R.slice(0,4)).toLowerCase();if(("url("1||R&&R.split(")"),null;if(R.indexOf("(")>0){if(/"|'/.test(R))return null;l=/([\-\w]+)\(/g;for(var y;y=l.exec(R);)if(!(y[1].toLowerCase()in dgY))return null}return R}; mO=function(R,l){R=g.Mo[R];return R&&R.prototype?(l=Object.getOwnPropertyDescriptor(R.prototype,l))&&l.get||null:null}; v2r=function(R){var l=g.Mo.CSSStyleDeclaration;return l&&l.prototype&&l.prototype[R]||null}; zqY=function(R,l,y,f){if(R)return R.apply(l,f);if(g.oc&&document.documentMode<10){if(!l[y].call)throw Error("IE Clobbering detected");}else if(typeof l[y]!="function")throw Error("Clobbering detected");return l[y].apply(l,f)}; pbQ=function(R){if(!R)return"";var l=document.createElement("div").style;wbs(R).forEach(function(y){var f=g.H0&&y in xgi?y:y.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Ta(f,"--")||Ta(f,"var")||(y=zqY(I97,R,R.getPropertyValue?"getPropertyValue":"getAttribute",[y])||"",y=rgJ(y),y!=null&&zqY(NJc,l,l.setProperty?"setProperty":"setAttribute",[f,y]))}); return l.cssText||""}; wbs=function(R){g.KX(R)?R=g.wO(R):(R=g.Br(R),g.bA(R,"cssText"));return R}; g.cJ=function(R){var l,y=l=0,f=!1;R=R.split(Ug7);for(var A=0;A.4?-1:1;return(l==0?null:l)==-1?"rtl":"ltr"}; g.Ov=function(R){if(R instanceof Ev||R instanceof WJ||R instanceof Lg)return R;if(typeof R.next=="function")return new Ev(function(){return R}); if(typeof R[Symbol.iterator]=="function")return new Ev(function(){return R[Symbol.iterator]()}); if(typeof R.Xr=="function")return new Ev(function(){return R.Xr()}); throw Error("Not an iterator or iterable.");}; Ev=function(R){this.X=R}; WJ=function(R){this.X=R}; Lg=function(R){Ev.call(this,function(){return R}); this.L=R}; i0=function(R,l,y,f,A,K,G,B){this.Z=R;this.V=l;this.L=y;this.J=f;this.Y=A;this.D=K;this.X=G;this.W=B}; PJ=function(R,l){if(l==0)return R.Z;if(l==1)return R.X;var y=kJ(R.Z,R.L,l),f=kJ(R.L,R.Y,l);R=kJ(R.Y,R.X,l);y=kJ(y,f,l);f=kJ(f,R,l);return kJ(y,f,l)}; Dgr=function(R,l){var y=(l-R.Z)/(R.X-R.Z);if(y<=0)return 0;if(y>=1)return 1;for(var f=0,A=1,K=0,G=0;G<8;G++){K=PJ(R,y);var B=(PJ(R,y+1E-6)-K)/1E-6;if(Math.abs(K-l)<1E-6)return y;if(Math.abs(B)<1E-6)break;else K1E-6&&G<8;G++)K=0}; g.$8=function(R){g.p.call(this);this.D=1;this.L=[];this.Y=0;this.Z=[];this.X={};this.V=!!R}; JgY=function(R,l,y){g.FC(function(){R.apply(l,y)})}; g.ex=function(R){this.Z=R}; b0=function(R){this.Z=R}; g29=function(R){this.data=R}; VHj=function(R){return R===void 0||R instanceof g29?R:new g29(R)}; Xt=function(R){this.Z=R}; g.CO9=function(R){var l=R.creation;R=R.expiration;return!!R&&Rg.mU()}; g.T8=function(R){this.Z=R}; qjZ=function(){}; dx=function(){}; rx=function(R){this.Z=R;this.X=null}; vJ=function(R){if(R.Z==null)throw Error("Storage mechanism: Storage unavailable");R.isAvailable()||$Q(Error("Storage mechanism: Storage unavailable"))}; z8=function(){var R=null;try{R=g.Mo.localStorage||null}catch(l){}rx.call(this,R)}; tHZ=function(){var R=null;try{R=g.Mo.sessionStorage||null}catch(l){}rx.call(this,R)}; wx=function(R,l){this.X=R;this.Z=l+"::"}; g.x8=function(R){var l=new z8;return l.isAvailable()?R?new wx(l,R):l:null}; Ic=function(R,l){this.Z=R;this.X=l}; N3=function(R){this.Z=[];if(R)a:{if(R instanceof N3){var l=R.kH();R=R.QX();if(this.Z.length<=0){for(var y=this.Z,f=0;f>>6:(K<65536?B[y++]=224|K>>>12:(B[y++]=240|K>>>18,B[y++]=128|K>>>12&63),B[y++]=128|K>>> 6&63),B[y++]=128|K&63);return B}; jx=function(R){for(var l=R.length;--l>=0;)R[l]=0}; k8=function(R,l,y,f,A){this.UZ=R;this.P4=l;this.gw=y;this.LH=f;this.qo=A;this.Br=R&&R.length}; DG=function(R,l){this.gr=R;this.CL=0;this.Mw=l}; ZG=function(R,l){R.aT[R.pending++]=l&255;R.aT[R.pending++]=l>>>8&255}; JU=function(R,l,y){R.nw>16-y?(R.Rc|=l<>16-R.nw,R.nw+=y-16):(R.Rc|=l<>>=1,y<<=1;while(--l>0);return y>>>1}; y_q=function(R,l,y){var f=Array(16),A=0,K;for(K=1;K<=15;K++)f[K]=A=A+y[K-1]<<1;for(y=0;y<=l;y++)A=R[y*2+1],A!==0&&(R[y*2]=lYZ(f[A]++,A))}; fYZ=function(R){var l;for(l=0;l<286;l++)R.pW[l*2]=0;for(l=0;l<30;l++)R.pV[l*2]=0;for(l=0;l<19;l++)R.Ei[l*2]=0;R.pW[512]=1;R.xo=R.nt=0;R.vO=R.matches=0}; A_q=function(R){R.nw>8?ZG(R,R.Rc):R.nw>0&&(R.aT[R.pending++]=R.Rc);R.Rc=0;R.nw=0}; Kyq=function(R,l,y){A_q(R);ZG(R,y);ZG(R,~y);Sx.OR(R.aT,R.window,l,y,R.pending);R.pending+=y}; GZj=function(R,l,y,f){var A=l*2,K=y*2;return R[A]>>7)];gx(R,G,y);B=M3[G];B!==0&&(A-=R8[G],JU(R,A,B))}}while(f>1;G>=1;G--)VD(R,y,G);H=K;do G=R.QK[1],R.QK[1]=R.QK[R.Ux--],VD(R,y,1),f=R.QK[1],R.QK[--R.N_]=G,R.QK[--R.N_]=f,y[H*2]=y[G*2]+y[f*2],R.depth[H]=(R.depth[G]>=R.depth[f]?R.depth[G]:R.depth[f])+1,y[G*2+1]=y[f*2+1]=H,R.QK[1]=H++,VD(R,y,1);while(R.Ux>= 2);R.QK[--R.N_]=R.QK[1];G=l.gr;H=l.CL;f=l.Mw.UZ;A=l.Mw.Br;K=l.Mw.P4;var n=l.Mw.gw,m=l.Mw.qo,h,c=0;for(h=0;h<=15;h++)R.RB[h]=0;G[R.QK[R.N_]*2+1]=0;for(l=R.N_+1;l<573;l++){var E=R.QK[l];h=G[G[E*2+1]*2+1]+1;h>m&&(h=m,c++);G[E*2+1]=h;if(!(E>H)){R.RB[h]++;var W=0;E>=n&&(W=K[E-n]);var Q=G[E*2];R.xo+=Q*(h+W);A&&(R.nt+=Q*(f[E*2+1]+W))}}if(c!==0){do{for(h=m-1;R.RB[h]===0;)h--;R.RB[h]--;R.RB[h+1]+=2;R.RB[m]--;c-=2}while(c>0);for(h=m;h!==0;h--)for(E=R.RB[h];E!==0;)f=R.QK[--l],f>H||(G[f*2+1]!==h&&(R.xo+=(h-G[f* 2+1])*G[f*2],G[f*2+1]=h),E--)}y_q(y,B,R.RB)}; sur=function(R,l,y){var f,A=-1,K=l[1],G=0,B=7,H=4;K===0&&(B=138,H=3);l[(y+1)*2+1]=65535;for(f=0;f<=y;f++){var n=K;K=l[(f+1)*2+1];++G>>=1)if(l&1&&R.pW[y*2]!==0)return 0;if(R.pW[18]!==0||R.pW[20]!==0||R.pW[26]!==0)return 1;for(y=32;y<256;y++)if(R.pW[y*2]!==0)return 1;return 0}; yX=function(R,l,y){R.aT[R.zH+R.vO*2]=l>>>8&255;R.aT[R.zH+R.vO*2+1]=l&255;R.aT[R.yn+R.vO]=y&255;R.vO++;l===0?R.pW[y*2]++:(R.matches++,l--,R.pW[(Cg[y]+256+1)*2]++,R.pV[(l<256?Y8[l]:Y8[256+(l>>>7)])*2]++);return R.vO===R.GG-1}; AZ=function(R,l){R.msg=fE[l];return l}; KE=function(R){for(var l=R.length;--l>=0;)R[l]=0}; GD=function(R){var l=R.state,y=l.pending;y>R.KS&&(y=R.KS);y!==0&&(Sx.OR(R.output,l.aT,l.mY,y,R.nL),R.nL+=y,l.mY+=y,R.gE+=y,R.KS-=y,l.pending-=y,l.pending===0&&(l.mY=0))}; Bg=function(R,l){var y=R.yl>=0?R.yl:-1,f=R.pA-R.yl,A=0;if(R.level>0){R.fS.M4===2&&(R.fS.M4=HvK(R));l8(R,R.Wc);l8(R,R.IF);sur(R,R.pW,R.Wc.CL);sur(R,R.pV,R.IF.CL);l8(R,R.hH);for(A=18;A>=3&&R.Ei[nv7[A]*2+1]===0;A--);R.xo+=3*(A+1)+5+5+4;var K=R.xo+3+7>>>3;var G=R.nt+3+7>>>3;G<=K&&(K=G)}else K=G=f+5;if(f+4<=K&&y!==-1)JU(R,l?1:0,3),Kyq(R,y,f);else if(R.strategy===4||G===K)JU(R,2+(l?1:0),3),aYj(R,a8,sC);else{JU(R,4+(l?1:0),3);y=R.Wc.CL+1;f=R.IF.CL+1;A+=1;JU(R,y-257,5);JU(R,f-1,5);JU(R,A-4,4);for(K=0;K>>8&255;R.aT[R.pending++]=l&255}; m_c=function(R,l){var y=R.iB,f=R.pA,A=R.ON,K=R.Qh,G=R.pA>R.ac-262?R.pA-(R.ac-262):0,B=R.window,H=R.Gz,n=R.vM,m=R.pA+258,h=B[f+A-1],c=B[f+A];R.ON>=R.nT&&(y>>=2);K>R.KA&&(K=R.KA);do{var E=l;if(B[E+A]===c&&B[E+A-1]===h&&B[E]===B[f]&&B[++E]===B[f+1]){f+=2;for(E++;B[++f]===B[++E]&&B[++f]===B[++E]&&B[++f]===B[++E]&&B[++f]===B[++E]&&B[++f]===B[++E]&&B[++f]===B[++E]&&B[++f]===B[++E]&&B[++f]===B[++E]&&fA){R.Rw=l;A=E;if(E>=K)break;h=B[f+A-1];c=B[f+A]}}}while((l=n[l&H])>G&&--y!== 0);return A<=R.KA?A:R.KA}; hZ=function(R){var l=R.ac,y;do{var f=R.Zh-R.KA-R.pA;if(R.pA>=l+(l-262)){Sx.OR(R.window,R.window,l,l,0);R.Rw-=l;R.pA-=l;R.yl-=l;var A=y=R.bZ;do{var K=R.head[--A];R.head[A]=K>=l?K-l:0}while(--y);A=y=l;do K=R.vM[--A],R.vM[A]=K>=l?K-l:0;while(--y);f+=l}if(R.fS.JO===0)break;A=R.fS;y=R.window;K=R.pA+R.KA;var G=A.JO;G>f&&(G=f);G===0?y=0:(A.JO-=G,Sx.OR(y,A.input,A.pR,G,K),A.state.wrap===1?A.T9=m8(A.T9,y,G,K):A.state.wrap===2&&(A.T9=o8(A.T9,y,G,K)),A.pR+=G,A.TW+=G,y=G);R.KA+=y;if(R.KA+R.Up>=3)for(f=R.pA-R.Up, R.z9=R.window[f],R.z9=(R.z9<=3&&(R.z9=(R.z9<=3)if(y=yX(R,R.pA-R.Rw,R.mM-3),R.KA-=R.mM,R.mM<=R.v_&&R.KA>=3){R.mM--;do R.pA++,R.z9=(R.z9<=3&&(R.z9=(R.z9<4096)&&(R.mM=2));if(R.ON>=3&&R.mM<=R.ON){f=R.pA+R.KA-3;y=yX(R,R.pA-1-R.zv,R.ON-3);R.KA-=R.ON-1;R.ON-=2;do++R.pA<=f&&(R.z9=(R.z9<=3&&R.pA>0&&(f=R.pA-1,y=K[f],y===K[++f]&&y===K[++f]&&y===K[++f])){for(A=R.pA+258;y===K[++f]&&y===K[++f]&&y===K[++f]&&y===K[++f]&&y===K[++f]&&y===K[++f]&&y===K[++f]&&y===K[++f]&&fR.KA&&(R.mM=R.KA)}R.mM>=3?(y=yX(R,1,R.mM-3),R.KA-=R.mM,R.pA+=R.mM,R.mM=0):(y=yX(R,0,R.window[R.pA]),R.KA--,R.pA++);if(y&&(Bg(R,!1),R.fS.KS===0))return 1}R.Up=0;return l=== 4?(Bg(R,!0),R.fS.KS===0?3:4):R.vO&&(Bg(R,!1),R.fS.KS===0)?1:2}; haY=function(R,l){for(var y;;){if(R.KA===0&&(hZ(R),R.KA===0)){if(l===0)return 1;break}R.mM=0;y=yX(R,0,R.window[R.pA]);R.KA--;R.pA++;if(y&&(Bg(R,!1),R.fS.KS===0))return 1}R.Up=0;return l===4?(Bg(R,!0),R.fS.KS===0?3:4):R.vO&&(Bg(R,!1),R.fS.KS===0)?1:2}; Wg=function(R,l,y,f,A){this.eh=R;this.wA=l;this.JU9=y;this.m2=f;this.func=A}; c_i=function(){this.fS=null;this.status=0;this.aT=null;this.wrap=this.pending=this.mY=this.jQ=0;this.Zz=null;this.Uu=0;this.method=8;this.xw=-1;this.Gz=this.Hs=this.ac=0;this.window=null;this.Zh=0;this.head=this.vM=null;this.Qh=this.nT=this.strategy=this.level=this.v_=this.iB=this.ON=this.KA=this.Rw=this.pA=this.Zi=this.zv=this.mM=this.yl=this.hx=this.Wo=this.jp=this.bZ=this.z9=0;this.pW=new Sx.LN(1146);this.pV=new Sx.LN(122);this.Ei=new Sx.LN(78);KE(this.pW);KE(this.pV);KE(this.Ei);this.hH=this.IF= this.Wc=null;this.RB=new Sx.LN(16);this.QK=new Sx.LN(573);KE(this.QK);this.N_=this.Ux=0;this.depth=new Sx.LN(573);KE(this.depth);this.nw=this.Rc=this.Up=this.matches=this.nt=this.xo=this.zH=this.vO=this.GG=this.yn=0}; Evr=function(R,l){if(!R||!R.state||l>5||l<0)return R?AZ(R,-2):-2;var y=R.state;if(!R.output||!R.input&&R.JO!==0||y.status===666&&l!==4)return AZ(R,R.KS===0?-5:-2);y.fS=R;var f=y.xw;y.xw=l;if(y.status===42)if(y.wrap===2)R.T9=0,Hg(y,31),Hg(y,139),Hg(y,8),y.Zz?(Hg(y,(y.Zz.text?1:0)+(y.Zz.cK?2:0)+(y.Zz.extra?4:0)+(y.Zz.name?8:0)+(y.Zz.comment?16:0)),Hg(y,y.Zz.time&255),Hg(y,y.Zz.time>>8&255),Hg(y,y.Zz.time>>16&255),Hg(y,y.Zz.time>>24&255),Hg(y,y.level===9?2:y.strategy>=2||y.level<2?4:0),Hg(y,y.Zz.os& 255),y.Zz.extra&&y.Zz.extra.length&&(Hg(y,y.Zz.extra.length&255),Hg(y,y.Zz.extra.length>>8&255)),y.Zz.cK&&(R.T9=o8(R.T9,y.aT,y.pending,0)),y.Uu=0,y.status=69):(Hg(y,0),Hg(y,0),Hg(y,0),Hg(y,0),Hg(y,0),Hg(y,y.level===9?2:y.strategy>=2||y.level<2?4:0),Hg(y,3),y.status=113);else{var A=8+(y.Hs-8<<4)<<8;A|=(y.strategy>=2||y.level<2?0:y.level<6?1:y.level===6?2:3)<<6;y.pA!==0&&(A|=32);y.status=113;nE(y,A+(31-A%31));y.pA!==0&&(nE(y,R.T9>>>16),nE(y,R.T9&65535));R.T9=1}if(y.status===69)if(y.Zz.extra){for(A= y.pending;y.Uu<(y.Zz.extra.length&65535)&&(y.pending!==y.jQ||(y.Zz.cK&&y.pending>A&&(R.T9=o8(R.T9,y.aT,y.pending-A,A)),GD(R),A=y.pending,y.pending!==y.jQ));)Hg(y,y.Zz.extra[y.Uu]&255),y.Uu++;y.Zz.cK&&y.pending>A&&(R.T9=o8(R.T9,y.aT,y.pending-A,A));y.Uu===y.Zz.extra.length&&(y.Uu=0,y.status=73)}else y.status=73;if(y.status===73)if(y.Zz.name){A=y.pending;do{if(y.pending===y.jQ&&(y.Zz.cK&&y.pending>A&&(R.T9=o8(R.T9,y.aT,y.pending-A,A)),GD(R),A=y.pending,y.pending===y.jQ)){var K=1;break}K=y.UuA&&(R.T9=o8(R.T9,y.aT,y.pending-A,A));K===0&&(y.Uu=0,y.status=91)}else y.status=91;if(y.status===91)if(y.Zz.comment){A=y.pending;do{if(y.pending===y.jQ&&(y.Zz.cK&&y.pending>A&&(R.T9=o8(R.T9,y.aT,y.pending-A,A)),GD(R),A=y.pending,y.pending===y.jQ)){K=1;break}K=y.UuA&&(R.T9=o8(R.T9,y.aT,y.pending-A,A));K===0&&(y.status=103)}else y.status= 103;y.status===103&&(y.Zz.cK?(y.pending+2>y.jQ&&GD(R),y.pending+2<=y.jQ&&(Hg(y,R.T9&255),Hg(y,R.T9>>8&255),R.T9=0,y.status=113)):y.status=113);if(y.pending!==0){if(GD(R),R.KS===0)return y.xw=-1,0}else if(R.JO===0&&(l<<1)-(l>4?9:0)<=(f<<1)-(f>4?9:0)&&l!==4)return AZ(R,-5);if(y.status===666&&R.JO!==0)return AZ(R,-5);if(R.JO!==0||y.KA!==0||l!==0&&y.status!==666){f=y.strategy===2?haY(y,l):y.strategy===3?ovk(y,l):LE[y.level].func(y,l);if(f===3||f===4)y.status=666;if(f===1||f===3)return R.KS===0&&(y.xw= -1),0;if(f===2&&(l===1?(JU(y,2,3),gx(y,256,a8),y.nw===16?(ZG(y,y.Rc),y.Rc=0,y.nw=0):y.nw>=8&&(y.aT[y.pending++]=y.Rc&255,y.Rc>>=8,y.nw-=8)):l!==5&&(JU(y,0,3),Kyq(y,0,0),l===3&&(KE(y.head),y.KA===0&&(y.pA=0,y.yl=0,y.Up=0))),GD(R),R.KS===0))return y.xw=-1,0}if(l!==4)return 0;if(y.wrap<=0)return 1;y.wrap===2?(Hg(y,R.T9&255),Hg(y,R.T9>>8&255),Hg(y,R.T9>>16&255),Hg(y,R.T9>>24&255),Hg(y,R.TW&255),Hg(y,R.TW>>8&255),Hg(y,R.TW>>16&255),Hg(y,R.TW>>24&255)):(nE(y,R.T9>>>16),nE(y,R.T9&65535));GD(R);y.wrap>0&& (y.wrap=-y.wrap);return y.pending!==0?0:1}; OC=function(R){if(!(this instanceof OC))return new OC(R);R=this.options=Sx.assign({level:-1,method:8,chunkSize:16384,xa:15,T74:8,strategy:0,to:""},R||{});R.raw&&R.xa>0?R.xa=-R.xa:R.F_&&R.xa>0&&R.xa<16&&(R.xa+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.fS=new Wy9;this.fS.KS=0;var l=this.fS;var y=R.level,f=R.method,A=R.xa,K=R.T74,G=R.strategy;if(l){var B=1;y===-1&&(y=6);A<0?(B=0,A=-A):A>15&&(B=2,A-=16);if(K<1||K>9||f!==8||A<8||A>15||y<0||y>9||G<0||G>4)l=AZ(l,-2);else{A===8&&(A=9); var H=new c_i;l.state=H;H.fS=l;H.wrap=B;H.Zz=null;H.Hs=A;H.ac=1<>=7;K<30;K++)for(R8[K]=G<<7,A=0;A<1<=n.ac&&(l===0&&(KE(n.head),n.pA=0,n.yl=0,n.Up=0),y=new Sx.RH(n.ac),Sx.OR(y,K,G-n.ac,n.ac,0),K=y,G=n.ac);y=R.JO;f=R.pR;A=R.input;R.JO=G;R.pR=0;R.input=K;for(hZ(n);n.KA>=3;){K=n.pA;G=n.KA-2;do n.z9=(n.z9<-2&&(y[8]<=3?(0,y[45])(y[39]):(0,y[3])(y[39],y[49])),y[32]!=0&&(y[26]>=8||((0,y[67])(y[0],y[64]),0))&&(0,y[3])(y[70],y[22])}catch(f){(0,y[45])(y[39])/(0,y[3])(y[39],y[52])}try{y[new Date(a[87])/1E3]===10?((0,y[3])(y[39],y[27]),(0,y[5])(y[44],y[6])):((0,y[81])(y[51],y[0]),y[71])(y[69],y[77]),y[29]<1&&(y[20]!=5&&((0,y[38])((0,y[14])(y[3]),y[51],((0,y[25])(y[73],y[57]),y[70])(y[3],y[9]),y[79],(0,y[68])(y[29],y[37]), y[48],y[72]),1)||(0,y[13])((0,y[21])(y[55],y[22]),y[30],((0,y[3])(y[55],(0,y[71])(),y[69]),(0,y[3])(y[41],(0,y[new Date(a[74])/1E3])(),y[69]),y[3])(y[72],(0,y[54])(),y[69]),y[11],y[77])),y[46]!==4&&(y[57]==-5||((0,y[70])((0,y[56])(y[72],y[7])*(0,y[56])(y[67],y[34]),y[30],y[39],y[72]),0))&&(((0,y[66])(y[67]),y[3])(y[41],(0,y[54])(),y[69]),y[21])(y[55],y[33]),y[75]==10?(0,y[68])((0,y[19])(y[67],y[85]),y[56],y[77],y[63]):((0,y[30])(y[8],y[24]),y[62])(y[23],y[59]),y[44]!=5&&(((0,y[38])(((((0,y[68])(y[34], y[35]),y[18])(y[39],y[45]),y[18])(y[new Date(a[90])/1E3],y[12]),y[new Date(a[58])/1E3])(y[34],y[11]),(0,y[18])(y[29],y[75]),y[77],y[85],(0,y[6])(y[29],y[38]),(0,y[6])(y[39],y[49]),(0,y[32])((0,y[28])(y[39]),y[3],y[30],y[54]),(0,y[56])((0,y[9])(y[38],y[85]),y[18],y[new Date(a[69])/1E3*41+343+-10030],y[4]),y[12],y[85]),(0,y[60])(y[59]),(0,y[26])(y[18],(0,y[68])(y[34],y[53]),(0,y[52])(y[34],(0,y[54])(),y[63]),(0,y[79])(y[new Date(a[43])/1E3],y[39]),y[50],y[88]),(0,y[37])(y[67],y[76]),y[42])(y[65]),1)|| (0,y[50])(y[41],(((0,y[5])((0,y[3])((0,y[43])(y[79],y[34]),y[43],y[65],y[new Date(a[44])/1E3]),y[41],y[79],y[67]),y[80])(y[7],y[39]),(0,y[3])((0,y[25])(y[65],(0,y[27])(),y[36]),y[25],y[7],(0,y[27])(),y[36])),(0,y[35])((0,y[1])(y[2]),y[25],(0,y[43])(y[65],y[81]),y[7],(0,y[6])(),y[36]),((0,y[3])(((0,y[42])(y[79]),(0,y[25])(y[79],(0,y[78])(),y[36]),((0,y[42])(y[2]),y[41])(y[65],y[62]),(0,y[25])(y[79],(0,y[28])(),y[36])),y[52],y[76],y[65]),(0,y[58])(y[13],y[7])),((0,y[25])(y[65],(0,y[27])(),y[36]),y[43])(y[65], y[70]),y[79],y[21])}catch(f){(0,y[43])(y[7],y[77]),(0,y[25])(y[79],(0,y[6])(),y[36]),(0,y[25])(y[65],(0,y[28])(),y[36]),((0,y[43])(y[7],y[37]),y[41])(y[2],y[new Date(a[64])/1E3])}try{y[31]>=-5&&(((0,y[52])(y[85],y[65]),(0,y[52])(y[45],y[7]),(0,y[1])(y[79]),(0,y[43])(y[65],y[53]),y[80])(y[65],y[32]),(0,y[1])(y[46]),(0,y[47])(y[81],y[71]),y[47])(y[new Date(a[57])/1E3],y[24])}catch(f){(0,y[38])(y[16],y[66])}}catch(f){return a[46]+R}return l[a[29]](a[1])}; g.QX=function(R){this.name=R}; NCk=function(R){this.w7=Dl(R)}; $O=function(R){this.w7=Dl(R)}; eV=function(R){this.w7=Dl(R)}; pKq=function(R){this.w7=Dl(R)}; b8=function(R){this.w7=Dl(R)}; XI=function(R){this.w7=Dl(R)}; TD=function(R){this.w7=Dl(R)}; d_=function(R){this.w7=Dl(R)}; r_=function(R){this.w7=Dl(R)}; vg=function(R){this.w7=Dl(R)}; zD=function(R){this.w7=Dl(R)}; w_=function(R){this.w7=Dl(R)}; xO=function(R){this.w7=Dl(R)}; I8=function(R){this.w7=Dl(R)}; NM=function(R){this.w7=Dl(R)}; pE=function(R){this.w7=Dl(R,500)}; UC=function(R){this.w7=Dl(R)}; SV=function(R){this.w7=Dl(R)}; U_j=function(R){this.w7=Dl(R)}; STq=function(){return g.yr("yt.ads.biscotti.lastId_")||""}; jus=function(R){g.lA("yt.ads.biscotti.lastId_",R)}; Ze=function(){var R=arguments,l=De;R.length>1?l[R[0]]=R[1]:R.length===1&&Object.assign(l,R[0])}; g.JZ=function(R,l){return R in De?De[R]:l}; g_=function(R){var l=De.EXPERIMENT_FLAGS;return l?l[R]:void 0}; kZ9=function(R){VX.forEach(function(l){return l(R)})}; g.qM=function(R){return R&&window.yterr?function(){try{return R.apply(this,arguments)}catch(l){g.CE(l)}}:R}; g.CE=function(R){var l=g.yr("yt.logging.errors.log");l?l(R,"ERROR",void 0,void 0,void 0,void 0,void 0):(l=g.JZ("ERRORS",[]),l.push([R,"ERROR",void 0,void 0,void 0,void 0,void 0]),Ze("ERRORS",l));kZ9(R)}; tZ=function(R,l,y,f,A){var K=g.yr("yt.logging.errors.log");K?K(R,"WARNING",l,y,f,void 0,A):(K=g.JZ("ERRORS",[]),K.push([R,"WARNING",l,y,f,void 0,A]),Ze("ERRORS",K))}; YO=function(R,l){l=R.split(l);for(var y={},f=0,A=l.length;f1?R[1]:R[0])):{}}; A$=function(R,l){return gvY(R,l||{},!0)}; K0=function(R,l){return gvY(R,l||{},!1)}; gvY=function(R,l,y){var f=R.split("#",2);R=f[0];f=f.length>1?"#"+f[1]:"";var A=R.split("?",2);R=A[0];A=Rw(A[1]||"");for(var K in l)if(y||!g.Hr(A,K))A[K]=l[K];return g.L4(R,A)+f}; G9=function(R){if(!l)var l=window.location.href;var y=g.HF(R)[1]||null,f=g.n4(R);y&&f?(R=g.HF(R),l=g.HF(l),R=R[3]==l[3]&&R[1]==l[1]&&R[4]==l[4]):R=f?g.n4(l)===f&&(Number(g.HF(l)[4]||null)||null)===(Number(g.HF(R)[4]||null)||null):!0;return R}; aw=function(R){R||(R=document.location.href);R=g.HF(R)[1]||null;return R!==null&&R==="https"}; s1=function(R){R=Vfc(R);return R===null?!1:R[0]==="com"&&R[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; CxQ=function(R){R=Vfc(R);return R===null?!1:R[1]==="google"?!0:R[2]==="google"?R[0]==="au"&&R[1]==="com"?!0:R[0]==="uk"&&R[1]==="co"?!0:!1:!1}; Vfc=function(R){R=g.n4(R);return R!==null?R.split(".").reverse():null}; D_Y=function(R){return R&&R.match(qTs)?R:Ts(R)}; n0=function(R){var l=Bh;R=R===void 0?STq():R;var y=Object,f=y.assign,A=Hh(l);var K=l.Z;try{var G=K.screenX;var B=K.screenY}catch(r){}try{var H=K.outerWidth;var n=K.outerHeight}catch(r){}try{var m=K.innerWidth;var h=K.innerHeight}catch(r){}try{var c=K.screenLeft;var E=K.screenTop}catch(r){}try{m=K.innerWidth,h=K.innerHeight}catch(r){}try{var W=K.screen.availWidth;var Q=K.screen.availTop}catch(r){}K=[c,E,G,B,W,Q,H,n,m,h];G=fCY(!1,l.Z.top);B={};var e=e===void 0?g.Mo:e;H=new Ul;"SVGElement"in e&&"createElementNS"in e.document&&H.set(0);n=fck();n["allow-top-navigation-by-user-activation"]&&H.set(1);n["allow-popups-to-escape-sandbox"]&&H.set(2);e.crypto&&e.crypto.subtle&&H.set(3);"TextDecoder"in e&&"TextEncoder"in e&&H.set(4);e=Foj(H);l=(B.bc=e,B.bih=G.height,B.biw=G.width,B.brdim=K.join(),B.vis=K$(l.X),B.wgl=!!dX.WebGLRenderingContext,B);y=f.call(y,A,l);y.ca_type="image";R&&(y.bid=R);return y}; Hh=function(R){var l={};l.dt=tfo;l.flash="0";a:{try{var y=R.Z.top.location.href}catch(m){R=2;break a}R=y?y===R.X.location.href?0:1:2}l=(l.frm=R,l);try{l.u_tz=-(new Date).getTimezoneOffset();var f=f===void 0?dX:f;try{var A=f.history.length}catch(m){A=0}l.u_his=A;var K;l.u_h=(K=dX.screen)==null?void 0:K.height;var G;l.u_w=(G=dX.screen)==null?void 0:G.width;var B;l.u_ah=(B=dX.screen)==null?void 0:B.availHeight;var H;l.u_aw=(H=dX.screen)==null?void 0:H.availWidth;var n;l.u_cd=(n=dX.screen)==null?void 0: n.colorDepth}catch(m){}return l}; Mfo=function(){if(!YTJ)return null;var R=YTJ();return"open"in R?R:null}; g.ow=function(R){switch(me(R)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; me=function(R){return R&&"status"in R?R.status:-1}; g.h$=function(R,l){typeof R==="function"&&(R=g.qM(R));return window.setTimeout(R,l)}; g.ch=function(R,l){typeof R==="function"&&(R=g.qM(R));return window.setInterval(R,l)}; g.E1=function(R){window.clearTimeout(R)}; g.Wh=function(R){window.clearInterval(R)}; g.O1=function(R){R=L0(R);return typeof R==="string"&&R==="false"?!1:!!R}; g.iW=function(R,l){R=L0(R);return R===void 0&&l!==void 0?l:Number(R||0)}; Ph=function(){return g.JZ("EXPERIMENTS_TOKEN","")}; L0=function(R){return g.JZ("EXPERIMENT_FLAGS",{})[R]}; uW=function(){for(var R=[],l=g.JZ("EXPERIMENTS_FORCED_FLAGS",{}),y=g.u(Object.keys(l)),f=y.next();!f.done;f=y.next())f=f.value,R.push({key:f,value:String(l[f])});y=g.JZ("EXPERIMENT_FLAGS",{});f=g.u(Object.keys(y));for(var A=f.next();!A.done;A=f.next())A=A.value,A.startsWith("force_")&&l[A]===void 0&&R.push({key:A,value:String(y[A])});return R}; Fy=function(R,l,y,f,A,K,G,B){function H(){(n&&"readyState"in n?n.readyState:0)===4&&l&&g.qM(l)(n)} y=y===void 0?"GET":y;f=f===void 0?"":f;B=B===void 0?!1:B;var n=Mfo();if(!n)return null;"onloadend"in n?n.addEventListener("loadend",H,!1):n.onreadystatechange=H;g.O1("debug_forward_web_query_parameters")&&(R=Rx9(R));n.open(y,R,!0);K&&(n.responseType=K);G&&(n.withCredentials=!0);y=y==="POST"&&(window.FormData===void 0||!(f instanceof FormData));if(A=lnk(R,A))for(var m in A)n.setRequestHeader(m,A[m]),"content-type"===m.toLowerCase()&&(y=!1);y&&n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(B&&"setAttributionReporting"in XMLHttpRequest.prototype){R={eventSourceEligible:!0,triggerEligible:!1};try{n.setAttributionReporting(R)}catch(h){tZ(h)}}n.send(f);return n}; lnk=function(R,l){l=l===void 0?{}:l;var y=G9(R),f=g.JZ("INNERTUBE_CLIENT_NAME"),A=g.O1("web_ajax_ignore_global_headers_if_set"),K;for(K in yRK){var G=g.JZ(yRK[K]),B=K==="X-Goog-AuthUser"||K==="X-Goog-PageId";K!=="X-Goog-Visitor-Id"||G||(G=g.JZ("VISITOR_DATA"));var H;if(!(H=!G)){if(!(H=y||(g.n4(R)?!1:!0))){H=R;var n;if(n=g.O1("add_auth_headers_to_remarketing_google_dot_com_ping")&&K==="Authorization"&&(f==="TVHTML5"||f==="TVHTML5_UNPLUGGED"||f==="TVHTML5_SIMPLY")&&CxQ(H))H=mE(H)||"",H=H.split("/"), H="/"+(H.length>1?H[1]:""),n=H==="/pagead";H=n?!0:!1}H=!H}H||A&&l[K]!==void 0||f==="TVHTML5_UNPLUGGED"&&B||(l[K]=G)}"X-Goog-EOM-Visitor-Id"in l&&"X-Goog-Visitor-Id"in l&&delete l["X-Goog-Visitor-Id"];if(y||!g.n4(R))l["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(y||!g.n4(R)){try{var m=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(h){}m&&(l["X-YouTube-Time-Zone"]=m)}document.location.hostname.endsWith("youtubeeducation.com")||!y&&g.n4(R)||(l["X-YouTube-Ad-Signals"]= MM(n0()));return l}; $a=function(R,l){l.method="POST";l.postParams||(l.postParams={});return g.Qt(R,l)}; Kgj=function(R,l){if(window.fetch&&l.format!=="XML"){var y={method:l.method||"GET",credentials:"same-origin"};l.headers&&(y.headers=l.headers);l.priority&&(y.priority=l.priority);R=fn9(R,l);var f=ARQ(R,l);f&&(y.body=f);l.withCredentials&&(y.credentials="include");var A=l.context||g.Mo,K=!1,G;fetch(R,y).then(function(B){if(!K){K=!0;G&&g.E1(G);var H=B.ok,n=function(m){m=m||{};H?l.onSuccess&&l.onSuccess.call(A,m,B):l.onError&&l.onError.call(A,m,B);l.onFinish&&l.onFinish.call(A,m,B)}; (l.format||"JSON")==="JSON"&&(H||B.status>=400&&B.status<500)?B.json().then(n,function(){n(null)}):n(null)}}).catch(function(){l.onError&&l.onError.call(A,{},{})}); R=l.timeout||0;l.onFetchTimeout&&R>0&&(G=g.h$(function(){K||(K=!0,g.E1(G),l.onFetchTimeout.call(l.context||g.Mo))},R))}else g.Qt(R,l)}; g.Qt=function(R,l){var y=l.format||"JSON";R=fn9(R,l);var f=ARQ(R,l),A=!1,K=GNZ(R,function(H){if(!A){A=!0;B&&g.E1(B);var n=g.ow(H),m=null,h=400<=H.status&&H.status<500,c=500<=H.status&&H.status<600;if(n||h||c)m=ano(R,y,H,l.convertToSafeHtml);n&&(n=s2Y(y,H,m));m=m||{};h=l.context||g.Mo;n?l.onSuccess&&l.onSuccess.call(h,H,m):l.onError&&l.onError.call(h,H,m);l.onFinish&&l.onFinish.call(h,H,m)}},l.method,f,l.headers,l.responseType,l.withCredentials); f=l.timeout||0;if(l.onTimeout&&f>0){var G=l.onTimeout;var B=g.h$(function(){A||(A=!0,K.abort(),g.E1(B),G.call(l.context||g.Mo,K))},f)}return K}; fn9=function(R,l){l.includeDomain&&(R=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+R);var y=g.JZ("XSRF_FIELD_NAME");if(l=l.urlParams)l[y]&&delete l[y],R=A$(R,l);return R}; ARQ=function(R,l){var y=g.JZ("XSRF_FIELD_NAME"),f=g.JZ("XSRF_TOKEN"),A=l.postBody||"",K=l.postParams,G=g.JZ("XSRF_FIELD_NAME"),B;l.headers&&(B=l.headers["Content-Type"]);l.excludeXsrf||g.n4(R)&&!l.withCredentials&&g.n4(R)!==document.location.hostname||l.method!=="POST"||B&&B!=="application/x-www-form-urlencoded"||l.postParams&&l.postParams[G]||(K||(K={}),K[y]=f);(g.O1("ajax_parse_query_data_only_when_filled")&&K&&Object.keys(K).length>0||K)&&typeof A==="string"&&(A=Rw(A),g.Lp(A,K),A=l.postBodyFormat&& l.postBodyFormat==="JSON"?JSON.stringify(A):g.WF(A));K=A||K&&!g.oL(K);!Bes&&K&&l.method!=="POST"&&(Bes=!0,g.CE(Error("AJAX request with postData should use POST")));return A}; ano=function(R,l,y,f){var A=null;switch(l){case "JSON":try{var K=y.responseText}catch(G){throw f=Error("Error reading responseText"),f.params=R,tZ(f),G;}R=y.getResponseHeader("Content-Type")||"";K&&R.indexOf("json")>=0&&(K.substring(0,5)===")]}'\n"&&(K=K.substring(5)),A=JSON.parse(K));break;case "XML":if(R=(R=y.responseXML)?H3r(R):null)A={},g.qZ(R.getElementsByTagName("*"),function(G){A[G.tagName]=nlK(G)})}f&&mlo(A); return A}; mlo=function(R){if(g.GK(R))for(var l in R)l==="html_content"||SYY(l,"_html")?R[l]=oM(R[l]):mlo(R[l])}; s2Y=function(R,l,y){if(l&&l.status===204)return!0;switch(R){case "JSON":return!!y;case "XML":return Number(y&&y.return_code)===0;case "RAW":return!0;default:return!!y}}; H3r=function(R){return R?(R=("responseXML"in R?R.responseXML:R).getElementsByTagName("root"))&&R.length>0?R[0]:null:null}; nlK=function(R){var l="";g.qZ(R.childNodes,function(y){l+=y.nodeValue}); return l}; Rx9=function(R){var l=window.location.search,y=g.n4(R);g.O1("debug_handle_relative_url_for_query_forward_killswitch")||!y&&G9(R)&&(y=document.location.hostname);var f=mE(R);f=(y=y&&(y.endsWith("youtube.com")||y.endsWith("youtube-nocookie.com")))&&f&&f.startsWith("/api/");if(!y||f)return R;var A=Rw(l),K={};g.qZ(olY,function(G){A[G]&&(K[G]=A[G])}); return K0(R,K)}; bW=function(R,l){var y=g.Eh(l),f;return(new g.$v(function(A,K){y.onSuccess=function(G){g.ow(G)?A(new hxY(G)):K(new e0("Request failed, status="+me(G),"net.badstatus",G))}; y.onError=function(G){K(new e0("Unknown request error","net.unknown",G))}; y.onTimeout=function(G){K(new e0("Request timed out","net.timeout",G))}; f=g.Qt(R,y)})).H6(function(A){if(A instanceof xv){var K; (K=f)==null||K.abort()}return vK(A)})}; g.Xy=function(R,l,y,f,A,K){function G(H,n,m){return H.H6(function(h){if(n<=0||me(h.xhr)===403)return vK(new e0("Request retried too many times","net.retryexhausted",h.xhr,h));var c=Math.pow(2,y-n+1)*m,E=A>0?Math.min(A,c):c;return B(m).then(function(){K&&K(h,n-1);return G(bW(R,l),n-1,E)})})} function B(H){return new g.$v(function(n){setTimeout(n,H)})} A=A===void 0?-1:A;return G(bW(R,l),y-1,f)}; e0=function(R,l,y){E5.call(this,R+", errorCode="+l);this.errorCode=l;this.xhr=y;this.name="PromiseAjaxError"}; hxY=function(R){this.xhr=R}; T9=function(R){this.Z=R===void 0?null:R;this.L=0;this.X=null}; dg=function(R){var l=new T9;R=R===void 0?null:R;l.L=2;l.X=R===void 0?null:R;return l}; rg=function(R){var l=new T9;R=R===void 0?null:R;l.L=1;l.X=R===void 0?null:R;return l}; g.wg=function(R,l,y,f,A){vh||z9.set(""+R,l,{DP:y,path:"/",domain:f===void 0?"youtube.com":f,secure:A===void 0?!1:A})}; g.xa=function(R,l){if(!vh)return z9.get(""+R,l)}; g.Iw=function(R,l,y){vh||z9.remove(""+R,l===void 0?"/":l,y===void 0?"youtube.com":y)}; cRT=function(){if(g.O1("embeds_web_enable_cookie_detection_fix")){if(!g.Mo.navigator.cookieEnabled)return!1}else if(!z9.isEnabled())return!1;if(!z9.isEmpty())return!0;g.O1("embeds_web_enable_cookie_detection_fix")?z9.set("TESTCOOKIESENABLED","1",{DP:60,fG$:"none",secure:!0}):z9.set("TESTCOOKIESENABLED","1",{DP:60});if(z9.get("TESTCOOKIESENABLED")!=="1")return!1;z9.remove("TESTCOOKIESENABLED");return!0}; g.k=function(R,l){if(R)return R[l.name]}; Nr=function(R){var l=g.JZ("INNERTUBE_HOST_OVERRIDE");l&&(R=String(l)+String(og(R)));return R}; Elc=function(R){var l={};g.O1("json_condensed_response")&&(l.prettyPrint="false");return R=K0(R,l)}; p0=function(R,l){var y=y===void 0?{}:y;R={method:l===void 0?"POST":l,mode:G9(R)?"same-origin":"cors",credentials:G9(R)?"same-origin":"include"};l={};for(var f=g.u(Object.keys(y)),A=f.next();!A.done;A=f.next())A=A.value,y[A]&&(l[A]=y[A]);Object.keys(l).length>0&&(R.headers=l);return R}; U1=function(){var R=/Chrome\/(\d+)/.exec(g.pp());return R?parseFloat(R[1]):NaN}; S0=function(){var R=/\sCobalt\/(\S+)\s/.exec(g.pp());if(!R)return NaN;var l=[];R=g.u(R[1].split("."));for(var y=R.next();!y.done;y=R.next())y=parseInt(y.value,10),y>=0&&l.push(y);return parseFloat(l.join("."))}; ka=function(){return g.j0("android")&&g.j0("chrome")&&!(g.j0("trident/")||g.j0("edge/"))&&!g.j0("cobalt")}; Wg7=function(){return g.j0("armv7")||g.j0("aarch64")||g.j0("android")}; g.Db=function(){return g.j0("cobalt")}; Zb=function(){return g.j0("cobalt")&&g.j0("appletv")}; J$=function(){return g.j0("(ps3; leanback shell)")||g.j0("ps3")&&g.Db()}; LgY=function(){return g.j0("(ps4; leanback shell)")||g.j0("ps4")&&g.Db()}; g.O3Q=function(){return g.Db()&&(g.j0("ps4 vr")||g.j0("ps4 pro vr"))}; gg=function(){var R=/WebKit\/([0-9]+)/.exec(g.pp());return!!(R&&parseInt(R[1],10)>=600)}; Vt=function(){var R=/WebKit\/([0-9]+)/.exec(g.pp());return!!(R&&parseInt(R[1],10)>=602)}; i3i=function(){return g.j0("iemobile")||g.j0("windows phone")&&g.j0("edge")}; t$=function(){return(C0||qr)&&g.j0("applewebkit")&&!g.j0("version")&&(!g.j0("safari")||g.j0("gsa/"))}; Mr=function(){return g.Ya&&g.j0("version/")}; Ra=function(){return g.j0("smart-tv")&&g.j0("samsung")}; g.j0=function(R){var l=g.pp();return l?l.toLowerCase().indexOf(R)>=0:!1}; lJ=function(){return ATi()||t$()||Mr()?!0:g.JZ("EOM_VISITOR_DATA")?!1:!0}; y8=function(R,l){return l===void 0||l===null?R:l==="1"||l===!0||l===1||l==="True"?!0:!1}; fF=function(R,l,y){for(var f in y)if(y[f]==l)return y[f];return R}; AD=function(R,l){return l===void 0||l===null?R:Number(l)}; KF=function(R,l){return l===void 0||l===null?R:l.toString()}; GI=function(R,l){if(l){if(R==="fullwidth")return Infinity;if(R==="fullheight")return 0}return R&&(l=R.match(PGj))&&(R=Number(l[2]),l=Number(l[1]),!isNaN(R)&&!isNaN(l)&&R>0)?l/R:NaN}; aa=function(R){var l=R.docid||R.video_id||R.videoId||R.id;if(l)return l;l=R.raw_player_response;l||(R=R.player_response)&&(l=JSON.parse(R));return l&&l.videoDetails&&l.videoDetails.videoId||null}; udi=function(R){return sG(R,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.BW=function(R){return R==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||R==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; sG=function(R,l){l=(l===void 0?0:l)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(l="EMBEDDED_PLAYER_MODE_PFL");var y=R.raw_embedded_player_response;if(!y&&(R=R.embedded_player_response))try{y=JSON.parse(R)}catch(f){return l}return y?fF(l,y.embeddedPlayerMode,FgT):l}; nF=function(R){E5.call(this,R.message||R.description||R.name);this.isMissing=R instanceof HW;this.isTimeout=R instanceof e0&&R.errorCode=="net.timeout";this.isCanceled=R instanceof xv}; HW=function(){E5.call(this,"Biscotti ID is missing from server")}; Q2c=function(){if(g.O1("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!lJ())return Error("User has not consented - not fetching biscotti id.");var R=g.JZ("PLAYER_VARS",{});if(g.hA(R,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(udi(R))return Error("Biscotti id fetching has been disabled for pfl.")}; XGJ=function(){var R=Q2c();if(R!==void 0)return vK(R);mK||(mK=bW("//googleads.g.doubleclick.net/pagead/id",$l9).then(exj).H6(function(l){return b3Q(2,l)})); return mK}; exj=function(R){R=R.xhr.responseText;if(!Ta(R,")]}'"))throw new HW;R=JSON.parse(R.substr(4));if((R.type||1)>1)throw new HW;R=R.id;jus(R);mK=rg(R);TeT(18E5,2);return R}; b3Q=function(R,l){l=new nF(l);jus("");mK=dg(l);R>0&&TeT(12E4,R-1);throw l;}; TeT=function(R,l){g.h$(function(){bW("//googleads.g.doubleclick.net/pagead/id",$l9).then(exj,function(y){return b3Q(l,y)}).H6(g.v0)},R)}; dli=function(){try{var R=g.yr("yt.ads.biscotti.getId_");return R?R():XGJ()}catch(l){return vK(l)}}; vlq=function(R){R&&(R.dataset?R.dataset[rRc()]="true":yKr(R))}; zxs=function(R){return R?R.dataset?R.dataset[rRc()]:R.getAttribute("data-loaded"):null}; rRc=function(){return wGK.loaded||(wGK.loaded="loaded".replace(/\-([a-z])/g,function(R,l){return l.toUpperCase()}))}; xlQ=function(){var R=document;if("visibilityState"in R)return R.visibilityState;var l=oa+"VisibilityState";if(l in R)return R[l]}; hD=function(R,l){var y;Dx(R,function(f){y=l[f];return!!y}); return y}; cW=function(R){if(R.requestFullscreen)R=R.requestFullscreen(void 0);else if(R.webkitRequestFullscreen)R=R.webkitRequestFullscreen();else if(R.mozRequestFullScreen)R=R.mozRequestFullScreen();else if(R.msRequestFullscreen)R=R.msRequestFullscreen();else if(R.webkitEnterFullscreen)R=R.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return R instanceof Promise?R:Promise.resolve()}; LF=function(R){var l;g.EG()?WW()==R&&(l=document):l=R;return l&&(R=hD(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],l))?(l=R.call(l),l instanceof Promise?l:Promise.resolve()):Promise.resolve()}; Inr=function(R){return g.iA(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(l){return"on"+l.toLowerCase()in R})}; Ne7=function(){var R=document;return g.iA(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(l){return"on"+l.toLowerCase()in R})}; g.EG=function(){return!!hD(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; WW=function(R){R=R===void 0?!1:R;var l=hD(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(R)for(;l&&l.shadowRoot;)l=l.shadowRoot.fullscreenElement;return l?l:null}; OG=function(R){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(R=R||window.event){this.event=R;for(var l in R)l in pGK||(this[l]=R[l]);this.scale=R.scale;this.rotation=R.rotation;var y=R.target||R.srcElement;y&&y.nodeType==3&&(y=y.parentNode);this.target=y;var f=R.relatedTarget; if(f)try{f=f.nodeName?f:null}catch(A){f=null}else this.type=="mouseover"?f=R.fromElement:this.type=="mouseout"&&(f=R.toElement);this.relatedTarget=f;this.clientX=R.clientX!=void 0?R.clientX:R.pageX;this.clientY=R.clientY!=void 0?R.clientY:R.pageY;this.keyCode=R.keyCode?R.keyCode:R.which;this.charCode=R.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=R.altKey;this.ctrlKey=R.ctrlKey;this.shiftKey=R.shiftKey;this.metaKey=R.metaKey;this.Z=R.pageX;this.X=R.pageY}}catch(A){}}; Ulr=function(R){if(document.body&&document.documentElement){var l=document.body.scrollTop+document.documentElement.scrollTop;R.Z=R.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);R.X=R.clientY+l}}; SPQ=function(R,l,y,f){f=f===void 0?{}:f;R.addEventListener&&(l!="mouseenter"||"onmouseenter"in document?l!="mouseleave"||"onmouseenter"in document?l=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(l="MozMousePixelScroll"):l="mouseout":l="mouseover");return m$(iJ,function(A){var K=typeof A[4]==="boolean"&&A[4]==!!f,G=g.GK(A[4])&&g.GK(f)&&g.cr(A[4],f);return!!A.length&&A[0]==R&&A[1]==l&&A[2]==y&&(K||G)})}; g.PW=function(R,l,y,f){f=f===void 0?{}:f;if(!R||!R.addEventListener&&!R.attachEvent)return"";var A=SPQ(R,l,y,f);if(A)return A;A=++j2i.count+"";var K=!(l!="mouseenter"&&l!="mouseleave"||!R.addEventListener||"onmouseenter"in document);var G=K?function(B){B=new OG(B);if(!$b(B.relatedTarget,function(H){return H==R},!0))return B.currentTarget=R,B.type=l,y.call(R,B)}:function(B){B=new OG(B); B.currentTarget=R;return y.call(R,B)}; G=g.qM(G);R.addEventListener?(l=="mouseenter"&&K?l="mouseover":l=="mouseleave"&&K?l="mouseout":l=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(l="MozMousePixelScroll"),kN9()||typeof f==="boolean"?R.addEventListener(l,G,f):R.addEventListener(l,G,!!f.capture)):R.attachEvent("on"+l,G);iJ[A]=[R,l,y,G,f];return A}; Z3c=function(R){return DlJ(R,function(l){return g.fg(l,"ytp-ad-has-logging-urls")})}; DlJ=function(R,l){var y=document.body||document;return g.PW(y,"click",function(f){var A=$b(f.target,function(K){return K===y||l(K)},!0); A&&A!==y&&!A.disabled&&(f.currentTarget=A,R.call(A,f))})}; g.uJ=function(R){R&&(typeof R=="string"&&(R=[R]),g.qZ(R,function(l){if(l in iJ){var y=iJ[l],f=y[0],A=y[1],K=y[3];y=y[4];f.removeEventListener?kN9()||typeof y==="boolean"?f.removeEventListener(A,K,y):f.removeEventListener(A,K,!!y.capture):f.detachEvent&&f.detachEvent("on"+A,K);delete iJ[l]}}))}; Fr=function(R){for(var l in iJ)iJ[l][0]==R&&g.uJ(l)}; Q8=function(R){R=R||window.event;var l;R.composedPath&&typeof R.composedPath==="function"?l=R.composedPath():l=R.path;l&&l.length?R=l[0]:(R=R||window.event,R=R.target||R.srcElement,R.nodeType==3&&(R=R.parentNode));return R}; $1=function(R){this.V=R;this.Z=null;this.Y=0;this.D=null;this.J=0;this.X=[];for(R=0;R<4;R++)this.X.push(0);this.L=0;this.Yb=g.PW(window,"mousemove",(0,g.B8)(this.B,this));this.W=g.ch((0,g.B8)(this.LX,this),25)}; eI=function(R){g.p.call(this);this.V=[];this.LA=R||this}; bJ=function(R,l,y,f){for(var A=0;A0?y:0;y=f?Date.now()+f*1E3:0;if((f=f?(0,g.d0)():r0())&&window.JSON){typeof l!=="string"&&(l=JSON.stringify(l,void 0));try{f.set(R,l,y)}catch(A){f.remove(R)}}}; g.zI=function(R){var l=r0(),y=(0,g.d0)();if(!l&&!y||!window.JSON)return null;try{var f=l.get(R)}catch(A){}if(typeof f!=="string")try{f=y.get(R)}catch(A){}if(typeof f!=="string")return null;try{f=JSON.parse(f,void 0)}catch(A){}return f}; V1J=function(){var R=(0,g.d0)();if(R&&(R=R.X("yt-player-quality")))return R.creation}; g.w0=function(R){try{var l=r0(),y=(0,g.d0)();l&&l.remove(R);y&&y.remove(R)}catch(f){}}; g.x1=function(){return g.zI("yt-remote-session-screen-id")}; CGT=function(R){var l=this;this.X=void 0;this.Z=!1;R.addEventListener("beforeinstallprompt",function(y){y.preventDefault();l.X=y}); R.addEventListener("appinstalled",function(){l.Z=!0},{once:!0})}; Ia=function(){if(!g.Mo.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Mo.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Mo.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Mo.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Mo.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(R){return"WEB_DISPLAY_MODE_UNKNOWN"}}; Nt=function(){this.MI=!0}; qPo=function(){Nt.instance||(Nt.instance=new Nt);return Nt.instance}; t1J=function(R){switch(R){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}}; YPQ=function(){this.Z=g.JZ("ALT_PREF_COOKIE_NAME","PREF");this.X=g.JZ("ALT_PREF_COOKIE_DOMAIN","youtube.com");var R=g.xa(this.Z);R&&this.parse(R)}; g.UG=function(){pF||(pF=new YPQ);return pF}; g.SI=function(R,l){return!!((M1T("f"+(Math.floor(l/31)+1))||0)&1<0;)switch(R=Bx.shift(),R.type){case "ERROR":KO.nW(R.payload);break;case "EVENT":KO.logEvent(R.eventType,R.payload)}}; nO=function(R){Hx||(KO?KO.nW(R):(Bx.push({type:"ERROR",payload:R}),Bx.length>10&&Bx.shift()))}; mu=function(R,l){Hx||(KO?KO.logEvent(R,l):(Bx.push({type:"EVENT",eventType:R,payload:l}),Bx.length>10&&Bx.shift()))}; oq=function(R){if(R.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; hv=function(R){return R.substr(0,R.indexOf(":"))||R}; g.cx=function(R,l,y,f,A){l=l===void 0?{}:l;y=y===void 0?aFT[R]:y;f=f===void 0?sjs[R]:f;A=A===void 0?BUq[R]:A;g.JD.call(this,y,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:R},l));this.type=R;this.message=y;this.level=f;this.Z=A;Object.setPrototypeOf(this,g.cx.prototype)}; EE=function(R,l){g.cx.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:l,foundObjectStores:R},aFT.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,EE.prototype)}; Wx=function(R,l){var y=Error.call(this);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.index=R;this.objectStore=l;Object.setPrototypeOf(this,Wx.prototype)}; OE=function(R,l,y,f){l=hv(l);var A=R instanceof Error?R:Error("Unexpected error: "+R);if(A instanceof g.cx)return A;R={objectStoreNames:y,dbName:l,dbVersion:f};if(A.name==="QuotaExceededError")return new g.cx("QUOTA_EXCEEDED",R);if(g.LO&&A.name==="UnknownError")return new g.cx("QUOTA_MAYBE_EXCEEDED",R);if(A instanceof Wx)return new g.cx("MISSING_INDEX",Object.assign({},R,{objectStore:A.objectStore,index:A.index}));if(A.name==="InvalidStateError"&&Hzc.some(function(K){return A.message.includes(K)}))return new g.cx("EXECUTE_TRANSACTION_ON_CLOSED_DB", R); if(A.name==="AbortError")return new g.cx("UNKNOWN_ABORT",R,A.message);A.args=[Object.assign({},R,{name:"IdbError",kU:A.name})];A.level="WARNING";return A}; g.id=function(R,l,y){var f=Av();return new g.cx("IDB_NOT_SUPPORTED",{context:{caller:R,publicName:l,version:y,hasSucceededOnce:f==null?void 0:f.hasSucceededOnce}})}; nAj=function(R){if(!R)throw Error();throw R;}; mTr=function(R){return R}; Px=function(R){this.Z=R}; g.ud=function(R){function l(A){if(f.state.status==="PENDING"){f.state={status:"REJECTED",reason:A};A=g.u(f.X);for(var K=A.next();!K.done;K=A.next())K=K.value,K()}} function y(A){if(f.state.status==="PENDING"){f.state={status:"FULFILLED",value:A};A=g.u(f.Z);for(var K=A.next();!K.done;K=A.next())K=K.value,K()}} var f=this;this.state={status:"PENDING"};this.Z=[];this.X=[];R=R.Z;try{R(y,l)}catch(A){l(A)}}; oAk=function(R,l,y,f,A){try{if(R.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var K=y(R.state.value);K instanceof g.ud?Fv(R,l,K,f,A):f(K)}catch(G){A(G)}}; hWT=function(R,l,y,f,A){try{if(R.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var K=y(R.state.reason);K instanceof g.ud?Fv(R,l,K,f,A):f(K)}catch(G){A(G)}}; Fv=function(R,l,y,f,A){l===y?A(new TypeError("Circular promise chain detected.")):y.then(function(K){K instanceof g.ud?Fv(R,l,K,f,A):f(K)},function(K){A(K)})}; cI9=function(R,l,y){function f(){y(R.error);K()} function A(){l(R.result);K()} function K(){try{R.removeEventListener("success",A),R.removeEventListener("error",f)}catch(G){}} R.addEventListener("success",A);R.addEventListener("error",f)}; EAr=function(R){return new Promise(function(l,y){cI9(R,l,y)})}; Q1=function(R){return new g.ud(new Px(function(l,y){cI9(R,l,y)}))}; $R=function(R,l){return new g.ud(new Px(function(y,f){function A(){var K=R?l(R):null;K?K.then(function(G){R=G;A()},f):y()} A()}))}; Wji=function(R,l){this.request=R;this.cursor=l}; LjJ=function(R){return Q1(R).then(function(l){return l?new Wji(R,l):null})}; g.Ozc=function(R){R.cursor.continue(void 0);return LjJ(R.request)}; izs=function(R,l){this.Z=R;this.options=l;this.transactionCount=0;this.L=Math.round((0,g.eY)());this.X=!1}; g.Xv=function(R,l,y){R=R.Z.createObjectStore(l,y);return new bd(R)}; Tn=function(R,l){R.Z.objectStoreNames.contains(l)&&R.Z.deleteObjectStore(l)}; g.vx=function(R,l,y){return g.d4(R,[l],{mode:"readwrite",CA:!0},function(f){return g.r4(f.objectStore(l),y)})}; g.d4=function(R,l,y,f){var A,K,G,B,H,n,m,h,c,E,W,Q;return g.w(function(e){switch(e.X){case 1:var r={mode:"readonly",CA:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof y==="string"?r.mode=y:Object.assign(r,y);A=r;R.transactionCount++;K=A.CA?3:1;G=0;case 2:if(B){e.bQ(4);break}G++;H=Math.round((0,g.eY)());g.$7(e,5);n=R.Z.transaction(l,A.mode);r=new zn(n);r=Pwj(r,f);return g.v(e,r,7);case 7:return m=e.Z,h=Math.round((0,g.eY)()),uDj(R,H,h,G,void 0,l.join(),A),e.return(m);case 5:c=g.TT(e);E=Math.round((0,g.eY)()); W=OE(c,R.Z.name,l.join(),R.Z.version);if((Q=W instanceof g.cx&&!W.Z)||G>=K)uDj(R,H,E,G,W,l.join(),A),B=W;e.bQ(2);break;case 4:return e.return(Promise.reject(B))}})}; uDj=function(R,l,y,f,A,K,G){l=y-l;A?(A instanceof g.cx&&(A.type==="QUOTA_EXCEEDED"||A.type==="QUOTA_MAYBE_EXCEEDED")&&mu("QUOTA_EXCEEDED",{dbName:hv(R.Z.name),objectStoreNames:K,transactionCount:R.transactionCount,transactionMode:G.mode}),A instanceof g.cx&&A.type==="UNKNOWN_ABORT"&&(y-=R.L,y<0&&y>=2147483648&&(y=0),mu("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:K,transactionDuration:l,transactionCount:R.transactionCount,dbDuration:y}),R.X=!0),Fj9(R,!1,f,K,l,G.tag),nO(A)):Fj9(R,!0,f,K,l, G.tag)}; Fj9=function(R,l,y,f,A,K){mu("TRANSACTION_ENDED",{objectStoreNames:f,connectionHasUnknownAbortedTransaction:R.X,duration:A,isSuccessful:l,tryCount:y,tag:K===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":K})}; bd=function(R){this.Z=R}; g.w4=function(R,l,y){R.Z.createIndex(l,y,{unique:!1})}; Qji=function(R,l){return g.xR(R,{query:l},function(y){return y.delete().then(function(){return g.Iq(y)})}).then(function(){})}; $TT=function(R,l,y){var f=[];return g.xR(R,{query:l},function(A){if(!(y!==void 0&&f.length>=y))return f.push(A.getValue()),g.Iq(A)}).then(function(){return f})}; bzk=function(R){return"getAllKeys"in IDBObjectStore.prototype?Q1(R.Z.getAllKeys(void 0,void 0)):eWY(R)}; eWY=function(R){var l=[];return g.X6Q(R,{query:void 0},function(y){l.push(y.cursor.primaryKey);return g.Ozc(y)}).then(function(){return l})}; g.r4=function(R,l,y){return Q1(R.Z.put(l,y))}; g.xR=function(R,l,y){R=R.Z.openCursor(l.query,l.direction);return N1(R).then(function(f){return $R(f,y)})}; g.X6Q=function(R,l,y){var f=l.query;l=l.direction;R="openKeyCursor"in IDBObjectStore.prototype?R.Z.openKeyCursor(f,l):R.Z.openCursor(f,l);return LjJ(R).then(function(A){return $R(A,y)})}; zn=function(R){var l=this;this.Z=R;this.L=new Map;this.X=!1;this.done=new Promise(function(y,f){l.Z.addEventListener("complete",function(){y()}); l.Z.addEventListener("error",function(A){A.currentTarget===A.target&&f(l.Z.error)}); l.Z.addEventListener("abort",function(){var A=l.Z.error;if(A)f(A);else if(!l.X){A=g.cx;for(var K=l.Z.objectStoreNames,G=[],B=0;B=y))return f.push(A.getValue()),g.Iq(A)}).then(function(){return f})}; g.pO=function(R,l,y){R=R.Z.openCursor(l.query===void 0?null:l.query,l.direction===void 0?"next":l.direction);return N1(R).then(function(f){return $R(f,y)})}; UE=function(R,l){this.request=R;this.cursor=l}; N1=function(R){return Q1(R).then(function(l){return l?new UE(R,l):null})}; g.Iq=function(R){R.cursor.continue(void 0);return N1(R.request)}; rIK=function(R,l,y){return new Promise(function(f,A){function K(){c||(c=new izs(G.result,{closed:h}));return c} var G=l!==void 0?self.indexedDB.open(R,l):self.indexedDB.open(R);var B=y.blocked,H=y.blocking,n=y.Ci4,m=y.upgrade,h=y.closed,c;G.addEventListener("upgradeneeded",function(E){try{if(E.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(G.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");E.dataLoss&&E.dataLoss!=="none"&&mu("IDB_DATA_CORRUPTED",{reason:E.dataLossMessage||"unknown reason",dbName:hv(R)});var W=K(),Q=new zn(G.transaction); m&&m(W,function(e){return E.oldVersion=e},Q); Q.done.catch(function(e){A(e)})}catch(e){A(e)}}); G.addEventListener("success",function(){var E=G.result;H&&E.addEventListener("versionchange",function(){H(K())}); E.addEventListener("close",function(){mu("IDB_UNEXPECTEDLY_CLOSED",{dbName:hv(R),dbVersion:E.version});n&&n()}); f(K())}); G.addEventListener("error",function(){A(G.error)}); B&&G.addEventListener("blocked",function(){B()})})}; vA9=function(R,l,y){y=y===void 0?{}:y;return rIK(R,l,y)}; SY=function(R,l){l=l===void 0?{}:l;var y,f,A,K;return g.w(function(G){if(G.X==1)return g.$7(G,2),y=self.indexedDB.deleteDatabase(R),f=l,(A=f.blocked)&&y.addEventListener("blocked",function(){A()}),g.v(G,EAr(y),4); if(G.X!=2)return g.XZ(G,0);K=g.TT(G);throw OE(K,R,"",-1);})}; jY=function(R,l){this.name=R;this.options=l;this.L=!0;this.J=this.Y=0}; zWK=function(R,l){return new g.cx("INCOMPATIBLE_DB_VERSION",{dbName:R.name,oldVersion:R.options.version,newVersion:l})}; g.kR=function(R,l){if(!l)throw g.id("openWithToken",hv(R.name));return R.open()}; w6k=function(R,l){var y;return g.w(function(f){if(f.X==1)return g.v(f,g.kR(Dg,l),2);y=f.Z;return f.return(g.d4(y,["databases"],{CA:!0,mode:"readwrite"},function(A){var K=A.objectStore("databases");return K.get(R.actualName).then(function(G){if(G?R.actualName!==G.actualName||R.publicName!==G.publicName||R.userIdentifier!==G.userIdentifier:1)return g.r4(K,R).then(function(){})})}))})}; Zg=function(R,l){var y;return g.w(function(f){if(f.X==1)return R?g.v(f,g.kR(Dg,l),2):f.return();y=f.Z;return f.return(y.delete("databases",R))})}; xTq=function(R,l){var y,f;return g.w(function(A){return A.X==1?(y=[],g.v(A,g.kR(Dg,l),2)):A.X!=3?(f=A.Z,g.v(A,g.d4(f,["databases"],{CA:!0,mode:"readonly"},function(K){y.length=0;return g.xR(K.objectStore("databases"),{},function(G){R(G.getValue())&&y.push(G.getValue());return g.Iq(G)})}),3)):A.return(y)})}; IFY=function(R,l){return xTq(function(y){return y.publicName===R&&y.userIdentifier!==void 0},l)}; NUJ=function(){var R,l,y,f;return g.w(function(A){switch(A.X){case 1:R=Av();if((l=R)==null?0:l.hasSucceededOnce)return A.return(!0);if(Jv&&gg()&&!Vt()||g.g4)return A.return(!1);try{if(y=self,!(y.indexedDB&&y.IDBIndex&&y.IDBKeyRange&&y.IDBObjectStore))return A.return(!1)}catch(K){return A.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return A.return(!1);g.$7(A,2);f={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.v(A,w6k(f,V1),4);case 4:return g.v(A,Zg("yt-idb-test-do-not-use",V1),5);case 5:return A.return(!0);case 2:return g.TT(A),A.return(!1)}})}; p6Q=function(){if(CO!==void 0)return CO;Hx=!0;return CO=NUJ().then(function(R){Hx=!1;var l;if((l=fO())!=null&&l.Z){var y;l={hasSucceededOnce:((y=Av())==null?void 0:y.hasSucceededOnce)||R};var f;(f=fO())==null||f.set("LAST_RESULT_ENTRY_KEY",l,2592E3,!0)}return R})}; q1=function(){return g.yr("ytglobal.idbToken_")||void 0}; g.tv=function(){var R=q1();return R?Promise.resolve(R):p6Q().then(function(l){(l=l?V1:void 0)&&g.lA("ytglobal.idbToken_",l);return l})}; UTY=function(R){if(!g.V8())throw R=new g.cx("AUTH_INVALID",{dbName:R}),nO(R),R;var l=g.g0();return{actualName:R+":"+l,publicName:R,userIdentifier:l}}; SlQ=function(R,l,y,f){var A,K,G,B,H,n;return g.w(function(m){switch(m.X){case 1:return K=(A=Error().stack)!=null?A:"",g.v(m,g.tv(),2);case 2:G=m.Z;if(!G)throw B=g.id("openDbImpl",R,l),g.O1("ytidb_async_stack_killswitch")||(B.stack=B.stack+"\n"+K.substring(K.indexOf("\n")+1)),nO(B),B;oq(R);H=y?{actualName:R,publicName:R,userIdentifier:void 0}:UTY(R);g.$7(m,3);return g.v(m,w6k(H,G),5);case 5:return g.v(m,vA9(H.actualName,l,f),6);case 6:return m.return(m.Z);case 3:return n=g.TT(m),g.$7(m,7),g.v(m,Zg(H.actualName, G),9);case 9:g.XZ(m,8);break;case 7:g.TT(m);case 8:throw n;}})}; jjj=function(R,l,y){y=y===void 0?{}:y;return SlQ(R,l,!1,y)}; kS9=function(R,l,y){y=y===void 0?{}:y;return SlQ(R,l,!0,y)}; DT7=function(R,l){l=l===void 0?{}:l;var y,f;return g.w(function(A){if(A.X==1)return g.v(A,g.tv(),2);if(A.X!=3){y=A.Z;if(!y)return A.return();oq(R);f=UTY(R);return g.v(A,SY(f.actualName,l),3)}return g.v(A,Zg(f.actualName,y),0)})}; Zzo=function(R,l,y){R=R.map(function(f){return g.w(function(A){return A.X==1?g.v(A,SY(f.actualName,l),2):g.v(A,Zg(f.actualName,y),0)})}); return Promise.all(R).then(function(){})}; JIT=function(R){var l=l===void 0?{}:l;var y,f;return g.w(function(A){if(A.X==1)return g.v(A,g.tv(),2);if(A.X!=3){y=A.Z;if(!y)return A.return();oq(R);return g.v(A,IFY(R,y),3)}f=A.Z;return g.v(A,Zzo(f,l,y),0)})}; gAo=function(R,l){l=l===void 0?{}:l;var y;return g.w(function(f){if(f.X==1)return g.v(f,g.tv(),2);if(f.X!=3){y=f.Z;if(!y)return f.return();oq(R);return g.v(f,SY(R,l),3)}return g.v(f,Zg(R,y),0)})}; YR=function(R,l){jY.call(this,R,l);this.options=l;oq(R)}; VC7=function(R,l){var y;return function(){y||(y=new YR(R,l));return y}}; g.M1=function(R,l){return VC7(R,l)}; R1=function(R){return g.kR(CwJ(),R)}; qlZ=function(R,l,y,f){var A,K,G;return g.w(function(B){switch(B.X){case 1:return A={config:R,hashData:l,timestamp:f!==void 0?f:(0,g.eY)()},g.v(B,R1(y),2);case 2:return K=B.Z,g.v(B,K.clear("hotConfigStore"),3);case 3:return g.v(B,g.vx(K,"hotConfigStore",A),4);case 4:return G=B.Z,B.return(G)}})}; tCZ=function(R,l,y,f,A){var K,G,B;return g.w(function(H){switch(H.X){case 1:return K={config:R,hashData:l,configData:y,timestamp:A!==void 0?A:(0,g.eY)()},g.v(H,R1(f),2);case 2:return G=H.Z,g.v(H,G.clear("coldConfigStore"),3);case 3:return g.v(H,g.vx(G,"coldConfigStore",K),4);case 4:return B=H.Z,H.return(B)}})}; YlY=function(R){var l,y;return g.w(function(f){return f.X==1?g.v(f,R1(R),2):f.X!=3?(l=f.Z,y=void 0,g.v(f,g.d4(l,["coldConfigStore"],{mode:"readwrite",CA:!0},function(A){return g.pO(A.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(K){y=K.getValue()})}),3)):f.return(y)})}; MCT=function(R){var l,y;return g.w(function(f){return f.X==1?g.v(f,R1(R),2):f.X!=3?(l=f.Z,y=void 0,g.v(f,g.d4(l,["hotConfigStore"],{mode:"readwrite",CA:!0},function(A){return g.pO(A.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(K){y=K.getValue()})}),3)):f.return(y)})}; Rnc=function(){return g.w(function(R){return g.v(R,JIT("ytGcfConfig"),0)})}; lF=function(){g.p.call(this);this.X=[];this.Z=[];var R=g.yr("yt.gcf.config.hotUpdateCallbacks");R?(this.X=[].concat(g.ci(R)),this.Z=R):(this.Z=[],g.lA("yt.gcf.config.hotUpdateCallbacks",this.Z))}; a1=function(){var R=this;this.J=!1;this.L=this.Y=0;this.D=new lF;this.yu={VU$:function(){R.J=!0}, vPL:function(){return R.Z}, ti$:function(l){yY(R,l)}, f8:function(l){R.f8(l)}, A9$:function(l){f1(R,l)}, Eq:function(){return R.coldHashData}, Mr:function(){return R.hotHashData}, EPE:function(){return R.X}, AvL:function(){return AL()}, WCq:function(){return K1()}, d2x:function(){return g.yr("yt.gcf.config.coldHashData")}, hjX:function(){return g.yr("yt.gcf.config.hotHashData")}, Lrq:function(){lGY(R)}, voL:function(){R.f8(void 0);GE(R);delete a1.instance}, hB$:function(l){R.L=l}, oPL:function(){return R.L}}}; yUT=function(){if(!a1.instance){var R=new a1;a1.instance=R}return a1.instance}; KOi=function(R){var l;g.w(function(y){if(y.X==1)return g.O1("start_client_gcf")||g.O1("delete_gcf_config_db")?g.O1("start_client_gcf")?g.v(y,g.tv(),3):y.bQ(2):y.return();y.X!=2&&((l=y.Z)&&g.V8()&&!g.O1("delete_gcf_config_db")?(R.J=!0,lGY(R)):(fGs(R),AU7(R)));return g.O1("delete_gcf_config_db")?g.v(y,Rnc(),0):y.bQ(0)})}; s3=function(){var R;return(R=K1())!=null?R:g.JZ("RAW_HOT_CONFIG_GROUP")}; G8Z=function(R){var l,y,f,A,K,G;return g.w(function(B){switch(B.X){case 1:if(R.X)return B.return(K1());if(!R.J)return l=g.id("getHotConfig IDB not initialized"),tZ(l),B.return(Promise.reject(l));y=q1();f=g.JZ("TIME_CREATED_MS");if(!y){A=g.id("getHotConfig token error");tZ(A);B.bQ(2);break}return g.v(B,MCT(y),3);case 3:if((K=B.Z)&&K.timestamp>f)return yY(R,K.config),R.f8(K.hashData),B.return(K1());case 2:AU7(R);if(!(y&&R.X&&R.hotHashData)){B.bQ(4);break}return g.v(B,qlZ(R.X,R.hotHashData,y,f),4);case 4:return R.X? B.return(K1()):(G=new g.JD("Config not available in ytConfig"),tZ(G),B.return(Promise.reject(G)))}})}; sc9=function(R){var l,y,f,A,K,G;return g.w(function(B){switch(B.X){case 1:if(R.Z)return B.return(AL());if(!R.J)return l=g.id("getColdConfig IDB not initialized"),tZ(l),B.return(Promise.reject(l));y=q1();f=g.JZ("TIME_CREATED_MS");if(!y){A=g.id("getColdConfig");tZ(A);B.bQ(2);break}return g.v(B,YlY(y),3);case 3:if((K=B.Z)&&K.timestamp>f)return f1(R,K.config),aGK(R,K.configData),GE(R,K.hashData),B.return(AL());case 2:fGs(R);if(!(y&&R.Z&&R.coldHashData&&R.configData)){B.bQ(4);break}return g.v(B,tCZ(R.Z, R.coldHashData,R.configData,y,f),4);case 4:return R.Z?B.return(AL()):(G=new g.JD("Config not available in ytConfig"),tZ(G),B.return(Promise.reject(G)))}})}; lGY=function(R){if(!R.X||!R.Z){if(!q1()){var l=g.id("scheduleGetConfigs");tZ(l)}R.Y||(R.Y=g.pz.Oi(function(){return g.w(function(y){switch(y.X){case 1:return g.$7(y,2),g.v(y,G8Z(R),4);case 4:g.XZ(y,3);break;case 2:g.TT(y);case 3:return g.$7(y,5),g.v(y,sc9(R),7);case 7:g.XZ(y,6);break;case 5:g.TT(y);case 6:R.Y&&(R.Y=0),g.Q9(y)}})},100))}}; BxJ=function(R,l,y){var f,A,K;return g.w(function(G){switch(G.X){case 1:if(!g.O1("start_client_gcf")){G.bQ(0);break}y&&yY(R,y);R.f8(l);f=q1();if(!f){G.bQ(3);break}if(y){G.bQ(4);break}return g.v(G,MCT(f),5);case 5:A=G.Z,y=(K=A)==null?void 0:K.config;case 4:return g.v(G,qlZ(y,l,f),3);case 3:if(y)for(var B=y,H=g.u(R.D.Z),n=H.next();!n.done;n=H.next())n=n.value,n(B);g.Q9(G)}})}; Hgi=function(R,l,y){var f,A,K,G;return g.w(function(B){if(B.X==1){if(!g.O1("start_client_gcf"))return B.bQ(0);GE(R,l);return(f=q1())?y?B.bQ(4):g.v(B,YlY(f),5):B.bQ(0)}B.X!=4&&(A=B.Z,y=(K=A)==null?void 0:K.config);if(!y)return B.bQ(0);G=y.configData;return g.v(B,tCZ(y,l,G,f),0)})}; n87=function(){var R=yUT(),l=(0,g.eY)()-R.L;if(!(R.L!==0&&l0&&(l.request={internalExperimentFlags:y});o8j(R,void 0,l);hnJ(void 0,l);cUT(void 0,l);E8T(R,void 0,l);WOQ(void 0,l);g.O1("start_client_gcf")&&LOJ(void 0,l);g.JZ("DELEGATED_SESSION_ID")&& !g.O1("pageid_as_header_web")&&(l.user={onBehalfOfUser:g.JZ("DELEGATED_SESSION_ID")});!g.O1("fill_delegate_context_in_gel_killswitch")&&(R=g.JZ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(l.user=Object.assign({},l.user,{serializedDelegationContext:R}));R=g.JZ("INNERTUBE_CONTEXT");var f;if(g.O1("enable_persistent_device_token")&&(R==null?0:(f=R.client)==null?0:f.rolloutToken)){var A;l.client.rolloutToken=R==null?void 0:(A=R.client)==null?void 0:A.rolloutToken}f=Object;A=f.assign;R=l.client; y={};for(var K=g.u(Object.entries(Rw(g.JZ("DEVICE","")))),G=K.next();!G.done;G=K.next()){var B=g.u(G.value);G=B.next().value;B=B.next().value;G==="cbrand"?y.deviceMake=B:G==="cmodel"?y.deviceModel=B:G==="cbr"?y.browserName=B:G==="cbrver"?y.browserVersion=B:G==="cos"?y.osName=B:G==="cosver"?y.osVersion=B:G==="cplatform"&&(y.platform=B)}l.client=A.call(f,R,y);return l}; o8j=function(R,l,y){R=R.EK;if(R==="WEB"||R==="MWEB"||R===1||R===2)if(l){y=iT(l,eV,96)||new eV;var f=Ia();f=Object.keys(Og7).indexOf(f);f=f===-1?null:f;f!==null&&pY(y,3,f);ek(l,eV,96,y)}else y&&(y.client.mainAppWebInfo=(f=y.client.mainAppWebInfo)!=null?f:{},y.client.mainAppWebInfo.webDisplayMode=Ia())}; hnJ=function(R,l){var y=g.yr("yt.embedded_player.embed_url");y&&(R?(l=iT(R,r_,7)||new r_,If(l,4,y),ek(R,r_,7,l)):l&&(l.thirdParty={embedUrl:y}))}; cUT=function(R,l){var y;if(g.O1("web_log_memory_total_kbytes")&&((y=g.Mo.navigator)==null?0:y.deviceMemory)){var f;y=(f=g.Mo.navigator)==null?void 0:f.deviceMemory;R?lT(R,95,F9(y*1E6)):l&&(l.client.memoryTotalKbytes=""+y*1E6)}}; E8T=function(R,l,y){if(R.appInstallData)if(l){var f;y=(f=iT(l,$O,62))!=null?f:new $O;If(y,6,R.appInstallData);ek(l,$O,62,y)}else y&&(y.client.configInfo=y.client.configInfo||{},y.client.configInfo.appInstallData=R.appInstallData)}; WOQ=function(R,l){var y=yIq();y&&(R?pY(R,61,igk[y]):l&&(l.client.connectionType=y));g.O1("web_log_effective_connection_type")&&(y=AIQ())&&(R?pY(R,94,P0k[y]):l&&(l.client.effectiveConnectionType=y))}; ut7=function(R,l,y){y=y===void 0?{}:y;var f={};g.JZ("EOM_VISITOR_DATA")?f={"X-Goog-EOM-Visitor-Id":g.JZ("EOM_VISITOR_DATA")}:f={"X-Goog-Visitor-Id":y.visitorData||g.JZ("VISITOR_DATA","")};if(l&&l.includes("www.youtube-nocookie.com"))return f;l=y.PS||g.JZ("AUTHORIZATION");l||(R?l="Bearer "+g.yr("gapi.auth.getToken")().access_token:(R=qPo().w6(n1),g.O1("pageid_as_header_web")||delete R["X-Goog-PageId"],f=Object.assign({},f,R)));l&&(f.Authorization=l);return f}; LOJ=function(R,l){var y=n87();if(y){var f=y.coldConfigData,A=y.coldHashData;y=y.hotHashData;if(R){var K;l=(K=iT(R,$O,62))!=null?K:new $O;f=If(l,1,f);If(f,3,A).f8(y);ek(R,$O,62,l)}else l&&(l.client.configInfo=l.client.configInfo||{},f&&(l.client.configInfo.coldConfigData=f),A&&(l.client.configInfo.coldHashData=A),y&&(l.client.configInfo.hotHashData=y))}}; m9=function(R,l){this.version=R;this.args=l}; o1=function(R,l){this.topic=R;this.Z=l}; E3=function(R,l){var y=cv();y&&y.publish.call(y,R.toString(),R,l)}; $3j=function(R){var l=FOk,y=cv();if(!y)return 0;var f=y.subscribe(l.toString(),function(A,K){var G=g.yr("ytPubsub2Pubsub2SkipSubKey");G&&G==f||(G=function(){if(Wv[f])try{if(K&&l instanceof o1&&l!=A)try{var B=l.Z,H=K;if(!H.args||!H.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!B.Id){var n=new B;B.Id=n.version}var m=B.Id}catch(h){}if(!m||H.version!=m)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{K=Reflect.construct(B, g.wO(H.args))}catch(h){throw h.message="yt.pubsub2.Data.deserialize(): "+h.message,h;}}catch(h){throw h.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+l.toString()+": "+h.message,h;}R.call(window,K)}catch(h){g.CE(h)}},QcT[l.toString()]?g.Rq()?g.pz.Oi(G):g.h$(G,0):G())}); Wv[f]=!0;L1[l.toString()]||(L1[l.toString()]=[]);L1[l.toString()].push(f);return f}; XJc=function(){var R=enc,l=$3j(function(y){R.apply(void 0,arguments);bgo(l)}); return l}; bgo=function(R){var l=cv();l&&(typeof R==="number"&&(R=[R]),g.qZ(R,function(y){l.unsubscribeByKey(y);delete Wv[y]}))}; cv=function(){return g.yr("ytPubsub2Pubsub2Instance")}; O3=function(R,l,y){y=y===void 0?{sampleRate:.1}:y;Math.random()wJj||G=pJT&&(TE++,g.O1("abandon_compression_after_N_slow_zips")?Xo===g.iW("compression_disable_point")&&TE>U3k&&($S=!1):$S=!1);Svi(l);f.headers||(f.headers={});f.headers["Content-Encoding"]="gzip";f.postBody=R;f.postParams=void 0;A(y,f)}; jcc=function(R){var l=l===void 0?!1:l;var y=y===void 0?!1:y;var f=(0,g.eY)(),A={startTime:f,ticks:{},infos:{}},K=l?g.yr("yt.logging.gzipForFetch",!1):!0;if($S&&K){if(!R.body)return R;try{var G=y?R.body:typeof R.body==="string"?R.body:JSON.stringify(R.body);K=G;if(!y&&typeof G==="string"){var B=znk(G);if(B!=null&&(B>wJj||B=pJT)if(TE++,g.O1("abandon_compression_after_N_slow_zips")||g.O1("abandon_compression_after_N_slow_zips_lr")){l=TE/Xo;var n=U3k/g.iW("compression_disable_point");Xo>0&&Xo%g.iW("compression_disable_point")===0&&l>=n&&($S=!1)}else $S=!1;Svi(A)}}R.headers=Object.assign({},{"Content-Encoding":"gzip"},R.headers||{});R.body=K;return R}catch(m){return tZ(m),R}}else return R}; znk=function(R){try{return(new Blob(R.split(""))).size}catch(l){return tZ(l),null}}; Svi=function(R){g.O1("gel_compression_csi_killswitch")||!g.O1("log_gel_compression_latency")&&!g.O1("log_gel_compression_latency_lr")||O3("gel_compression",R,{sampleRate:.1})}; rG=function(R){var l=this;this.E1=this.Z=!1;this.potentialEsfErrorCounter=this.X=0;this.handleError=function(){}; this.oa=function(){}; this.now=Date.now;this.d6=!1;this.yu={WH$:function(m){l.A7=m}, YhU:function(){l.o_()}, Tm:function(){l.JN()}, zw:function(m){return g.w(function(h){return g.v(h,l.zw(m),0)})}, f3:function(m,h){return l.f3(m,h)}, Nk:function(){l.Nk()}}; var y;this.qI=(y=R.qI)!=null?y:100;var f;this.q3=(f=R.q3)!=null?f:1;var A;this.c5=(A=R.c5)!=null?A:2592E6;var K;this.h4=(K=R.h4)!=null?K:12E4;var G;this.wG=(G=R.wG)!=null?G:5E3;var B;this.A7=(B=R.A7)!=null?B:void 0;this.sJ=!!R.sJ;var H;this.mw=(H=R.mw)!=null?H:.1;var n;this.T1=(n=R.T1)!=null?n:10;R.handleError&&(this.handleError=R.handleError);R.oa&&(this.oa=R.oa);R.d6&&(this.d6=R.d6);R.E1&&(this.E1=R.E1);this.EL=R.EL;this.Bp=R.Bp;this.Op=R.Op;this.JJ=R.JJ;this.sendFn=R.sendFn;this.Nf=R.Nf;this.EG= R.EG;dG(this)&&(!this.EL||this.EL("networkless_logging"))&&k8o(this)}; k8o=function(R){dG(R)&&!R.d6&&(R.Z=!0,R.sJ&&Math.random()<=R.mw&&R.Op.bz(R.A7),R.Nk(),R.JJ.DX()&&R.o_(),R.JJ.listen(R.Nf,R.o_.bind(R)),R.JJ.listen(R.EG,R.JN.bind(R)))}; JUQ=function(R,l){if(!dG(R))throw Error("IndexedDB is not supported: updateRequestHandlers");var y=l.options.onError?l.options.onError:function(){}; l.options.onError=function(A,K){var G,B,H,n;return g.w(function(m){switch(m.X){case 1:G=D3K(K);(B=ZgQ(K))&&R.EL&&R.EL("web_enable_error_204")&&R.handleError(Error("Request failed due to compression"),l.url,K);if(!(R.EL&&R.EL("nwl_consider_error_code")&&G||R.EL&&!R.EL("nwl_consider_error_code")&&R.potentialEsfErrorCounter<=R.T1)){m.bQ(2);break}if(!R.JJ.K3){m.bQ(3);break}return g.v(m,R.JJ.K3(),3);case 3:if(R.JJ.DX()){m.bQ(2);break}y(A,K);if(!R.EL||!R.EL("nwl_consider_error_code")||((H=l)==null?void 0: H.id)===void 0){m.bQ(6);break}return g.v(m,R.Op.DC(l.id,R.A7,!1),6);case 6:return m.return();case 2:if(R.EL&&R.EL("nwl_consider_error_code")&&!G&&R.potentialEsfErrorCounter>R.T1)return m.return();R.potentialEsfErrorCounter++;if(((n=l)==null?void 0:n.id)===void 0){m.bQ(8);break}return l.sendCount=400&&R<=599?!1:!0}; ZgQ=function(R){var l;R=R==null?void 0:(l=R.error)==null?void 0:l.code;return!(R!==400&&R!==415)}; g8J=function(){if(zE)return zE();var R={};zE=g.M1("LogsDatabaseV2",{L8:(R.LogsRequestsStore={y3:2},R),shared:!1,upgrade:function(l,y,f){y(2)&&g.Xv(l,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});y(3);y(5)&&(f=f.objectStore("LogsRequestsStore"),f.Z.indexNames.contains("newRequest")&&f.Z.deleteIndex("newRequest"),g.w4(f,"newRequestV2",["status","interface","timestamp"]));y(7)&&Tn(l,"sapisid");y(9)&&Tn(l,"SWHealthLog")}, version:9});return zE()}; wG=function(R){return g.kR(g8J(),R)}; C0j=function(R,l){var y,f,A,K;return g.w(function(G){if(G.X==1)return y={startTime:(0,g.eY)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.v(G,wG(l),2);if(G.X!=3)return f=G.Z,A=Object.assign({},R,{options:JSON.parse(JSON.stringify(R.options)),interface:g.JZ("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.v(G,g.vx(f,"LogsRequestsStore",A),3);K=G.Z;y.ticks.tc=(0,g.eY)();VxT(y);return G.return(K)})}; qvr=function(R,l){var y,f,A,K,G,B,H,n;return g.w(function(m){if(m.X==1)return y={startTime:(0,g.eY)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.v(m,wG(l),2);if(m.X!=3)return f=m.Z,A=g.JZ("INNERTUBE_CONTEXT_CLIENT_NAME",0),K=[R,A,0],G=[R,A,(0,g.eY)()],B=IDBKeyRange.bound(K,G),H="prev",g.O1("use_fifo_for_networkless")&&(H="next"),n=void 0,g.v(m,g.d4(f,["LogsRequestsStore"],{mode:"readwrite",CA:!0},function(h){return g.pO(h.objectStore("LogsRequestsStore").index("newRequestV2"), {query:B,direction:H},function(c){c.getValue()&&(n=c.getValue(),R==="NEW"&&(n.status="QUEUED",c.update(n)))})}),3); y.ticks.tc=(0,g.eY)();VxT(y);return m.return(n)})}; tx9=function(R,l){var y;return g.w(function(f){if(f.X==1)return g.v(f,wG(l),2);y=f.Z;return f.return(g.d4(y,["LogsRequestsStore"],{mode:"readwrite",CA:!0},function(A){var K=A.objectStore("LogsRequestsStore");return K.get(R).then(function(G){if(G)return G.status="QUEUED",g.r4(K,G).then(function(){return G})})}))})}; Yvk=function(R,l,y,f){y=y===void 0?!0:y;var A;return g.w(function(K){if(K.X==1)return g.v(K,wG(l),2);A=K.Z;return K.return(g.d4(A,["LogsRequestsStore"],{mode:"readwrite",CA:!0},function(G){var B=G.objectStore("LogsRequestsStore");return B.get(R).then(function(H){return H?(H.status="NEW",y&&(H.sendCount+=1),f!==void 0&&(H.options.compress=f),g.r4(B,H).then(function(){return H})):g.ud.resolve(void 0)})}))})}; Mxs=function(R,l){var y;return g.w(function(f){if(f.X==1)return g.v(f,wG(l),2);y=f.Z;return f.return(y.delete("LogsRequestsStore",R))})}; RRq=function(R){var l,y;return g.w(function(f){if(f.X==1)return g.v(f,wG(R),2);l=f.Z;y=(0,g.eY)()-2592E6;return g.v(f,g.d4(l,["LogsRequestsStore"],{mode:"readwrite",CA:!0},function(A){return g.xR(A.objectStore("LogsRequestsStore"),{},function(K){if(K.getValue().timestamp<=y)return K.delete().then(function(){return g.Iq(K)})})}),0)})}; les=function(){g.w(function(R){return g.v(R,JIT("LogsDatabaseV2"),0)})}; VxT=function(R){g.O1("nwl_csi_killswitch")||O3("networkless_performance",R,{sampleRate:1})}; feT=function(R){return g.kR(yZZ(),R)}; AZi=function(R){var l,y;g.w(function(f){if(f.X==1)return g.v(f,feT(R),2);l=f.Z;y=(0,g.eY)()-2592E6;return g.v(f,g.d4(l,["SWHealthLog"],{mode:"readwrite",CA:!0},function(A){return g.xR(A.objectStore("SWHealthLog"),{},function(K){if(K.getValue().timestamp<=y)return K.delete().then(function(){return g.Iq(K)})})}),0)})}; K8Y=function(R){var l;return g.w(function(y){if(y.X==1)return g.v(y,feT(R),2);l=y.Z;return g.v(y,l.clear("SWHealthLog"),0)})}; g.xS=function(R,l,y,f,A,K,G){A=A===void 0?"":A;K=K===void 0?!1:K;G=G===void 0?!1:G;if(R)if(y&&!g.Db())tZ(new g.JD("Legacy referrer-scrubbed ping detected")),R&&GDT(R,void 0,{scrubReferrer:!0});else if(A)Fy(R,l,"POST",A,f);else if(g.JZ("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||f||G)Fy(R,l,"GET","",f,void 0,K,G);else{b:{try{c:{var B=new Q77({url:R});if(B.Z.dsh==="1")var H=null;else{var n=B.Z.ae;if(n==="1"){var m=B.Z.adurl;if(m)try{H={version:3,HX:decodeURIComponent(m),B2:tl(B.X,"act=1","ri=1",$z7(B))}; break c}catch(E){}}H=n==="2"?{version:4,HX:tl(B.X,"dct=1","suid="+B.L,""),B2:tl(B.X,"act=1","ri=1","suid="+B.L)}:null}}if(H){var h=mE(R);var c=!(!h||!h.endsWith("/aclk")||uy(R,"ri")!=="1");break b}}catch(E){}c=!1}c?aeZ(R)?(l&&l(),y=!0):y=!1:y=!1;y||GDT(R,l)}}; aeZ=function(R,l){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(R,l===void 0?"":l))return!0}catch(y){}return!1}; GDT=function(R,l,y){y=y===void 0?{}:y;var f=new Image,A=""+s8q++;I1[A]=f;f.onload=f.onerror=function(){l&&I1[A]&&l();delete I1[A]}; y.scrubReferrer&&(f.referrerPolicy="no-referrer");f.src=R}; B_r=function(R){var l;return((l=document.featurePolicy)==null?0:l.allowedFeatures().includes("attribution-reporting"))?R+"&nis=6":R+"&nis=5"}; p1=function(){Np||(Np=new y1("yt.offline"));return Np}; HE9=function(R){if(g.O1("offline_error_handling")){var l=p1().get("errors",!0)||{};l[R.message]={name:R.name,stack:R.stack};R.level&&(l[R.message].level=R.level);p1().set("errors",l,2592E3,!0)}}; U3=function(){this.Z=new Map;this.X=!1}; S8=function(){if(!U3.instance){var R=g.yr("yt.networkRequestMonitor.instance")||new U3;g.lA("yt.networkRequestMonitor.instance",R);U3.instance=R}return U3.instance}; j8=function(){g.sT.call(this);var R=this;this.X=!1;this.Z=u4T();this.Z.listen("networkstatus-online",function(){if(R.X&&g.O1("offline_error_handling")){var l=p1().get("errors",!0);if(l){for(var y in l)if(l[y]){var f=new g.JD(y,"sent via offline_errors");f.name=l[y].name;f.stack=l[y].stack;f.level=l[y].level;g.CE(f)}p1().set("errors",{},2592E3,!0)}}})}; nOQ=function(){if(!j8.instance){var R=g.yr("yt.networkStatusManager.instance")||new j8;g.lA("yt.networkStatusManager.instance",R);j8.instance=R}return j8.instance}; g.kS=function(R){R=R===void 0?{}:R;g.sT.call(this);var l=this;this.Z=this.Y=0;this.X=nOQ();var y=g.yr("yt.networkStatusManager.instance.listen").bind(this.X);y&&(R.rateLimit?(this.rateLimit=R.rateLimit,y("networkstatus-online",function(){mMc(l,"publicytnetworkstatus-online")}),y("networkstatus-offline",function(){mMc(l,"publicytnetworkstatus-offline")})):(y("networkstatus-online",function(){l.dispatchEvent("publicytnetworkstatus-online")}),y("networkstatus-offline",function(){l.dispatchEvent("publicytnetworkstatus-offline")})))}; mMc=function(R,l){R.rateLimit?R.Z?(g.pz.Yz(R.Y),R.Y=g.pz.Oi(function(){R.L!==l&&(R.dispatchEvent(l),R.L=l,R.Z=(0,g.eY)())},R.rateLimit-((0,g.eY)()-R.Z))):(R.dispatchEvent(l),R.L=l,R.Z=(0,g.eY)()):R.dispatchEvent(l)}; ZA=function(){var R=rG.call;DA||(DA=new g.kS({SxU:!0,H$x:!0}));R.call(rG,this,{Op:{bz:RRq,qQ:Mxs,IY:qvr,Bd:tx9,DC:Yvk,set:C0j},JJ:DA,handleError:function(l,y,f){var A,K=f==null?void 0:(A=f.error)==null?void 0:A.code;if(K===400||K===415){var G;l=new g.JD(l.message,y,f==null?void 0:(G=f.error)==null?void 0:G.code);tZ(l,void 0,void 0,void 0,!0)}else g.CE(l)}, oa:tZ,sendFn:oOj,now:g.eY,X9:HE9,Bp:g.Mt(),Nf:"publicytnetworkstatus-online",EG:"publicytnetworkstatus-offline",sJ:!0,mw:.1,T1:g.iW("potential_esf_error_limit",10),EL:g.O1,d6:!(g.V8()&&g.n4(document.location.toString())!=="www.youtube-nocookie.com")});this.L=new g.o2;g.O1("networkless_immediately_drop_all_requests")&&les();gAo("LogsDatabaseV2")}; JL=function(){var R=g.yr("yt.networklessRequestController.instance");R||(R=new ZA,g.lA("yt.networklessRequestController.instance",R),g.O1("networkless_logging")&&g.tv().then(function(l){R.A7=l;k8o(R);R.L.resolve();R.sJ&&Math.random()<=R.mw&&R.A7&&AZi(R.A7);g.O1("networkless_immediately_drop_sw_health_store")&&hR9(R)})); return R}; hR9=function(R){var l;g.w(function(y){if(!R.A7)throw l=g.id("clearSWHealthLogsDb"),l;return y.return(K8Y(R.A7).catch(function(f){R.handleError(f)}))})}; oOj=function(R,l,y,f){f=f===void 0?!1:f;l=g.O1("web_fp_via_jspb")?Object.assign({},l):l;g.O1("use_cfr_monitor")&&cZs(R,l);if(g.O1("use_request_time_ms_header"))l.headers&&G9(R)&&(l.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.eY)())));else{var A;if((A=l.postParams)==null?0:A.requestTimeMs)l.postParams.requestTimeMs=Math.round((0,g.eY)())}y&&Object.keys(l).length===0?g.xS(R):l.compress?l.postBody?(typeof l.postBody!=="string"&&(l.postBody=JSON.stringify(l.postBody)),bF(R,l.postBody, l,g.Qt,f)):bF(R,JSON.stringify(l.postParams),l,$a,f):g.Qt(R,l)}; gG=function(R,l){g.O1("use_event_time_ms_header")&&G9(R)&&(l.headers||(l.headers={}),l.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.eY)())));return l}; cZs=function(R,l){var y=l.onError?l.onError:function(){}; l.onError=function(A,K){S8().requestComplete(R,!1);y(A,K)}; var f=l.onSuccess?l.onSuccess:function(){}; l.onSuccess=function(A,K){S8().requestComplete(R,!0);f(A,K)}}; g.VY=function(R){this.config_=null;R?this.config_=R:m3Y()&&(this.config_=g.Bv())}; g.C1=function(R,l,y,f){function A(n){try{if((n===void 0?0:n)&&f.retry&&!f.networklessOptions.bypassNetworkless)K.method="POST",f.networklessOptions.writeThenSend?JL().writeThenSend(H,K):JL().sendAndWrite(H,K);else if(f.compress){var m=!f.networklessOptions.writeThenSend;if(K.postBody){var h=K.postBody;typeof h!=="string"&&(h=JSON.stringify(K.postBody));bF(H,h,K,g.Qt,m)}else bF(H,JSON.stringify(K.postParams),K,$a,m)}else g.O1("web_all_payloads_via_jspb")?g.Qt(H,K):$a(H,K)}catch(c){if(c.name==="InvalidAccessError")tZ(Error("An extension is blocking network request.")); else throw c;}} !g.JZ("VISITOR_DATA")&&l!=="visitor_id"&&Math.random()<.01&&tZ(new g.JD("Missing VISITOR_DATA when sending innertube request.",l,y,f));if(!R.isReady())throw R=new g.JD("innertube xhrclient not ready",l,y,f),g.CE(R),R;var K={headers:f.headers||{},method:"POST",postParams:y,postBody:f.postBody,postBodyFormat:f.postBodyFormat||"JSON",onTimeout:function(){f.onTimeout()}, onFetchTimeout:f.onTimeout,onSuccess:function(n,m){if(f.onSuccess)f.onSuccess(m)}, onFetchSuccess:function(n){if(f.onSuccess)f.onSuccess(n)}, onError:function(n,m){if(f.onError)f.onError(m)}, onFetchError:function(n){if(f.onError)f.onError(n)}, timeout:f.timeout,withCredentials:!0,compress:f.compress};K.headers["Content-Type"]||(K.headers["Content-Type"]="application/json");y="";var G=R.config_.ya;G&&(y=G);G=R.config_.bB||!1;var B=ut7(G,y,f);Object.assign(K.headers,B);K.headers.Authorization&&!y&&G&&(K.headers["x-origin"]=window.location.origin);var H=A$(""+y+("/youtubei/"+R.config_.innertubeApiVersion+"/"+l),{alt:"json"});g.yr("ytNetworklessLoggingInitializationOptions")&&EOZ.isNwlInitialized?p6Q().then(function(n){A(n)}):A(!1)}; g.Rn=function(R,l,y){var f=g.qp();if(f&&l){var A=f.subscribe(R,function(){function K(){tL[A]&&l.apply&&typeof l.apply=="function"&&l.apply(y||window,G)} var G=arguments;try{g.YS[R]?K():g.h$(K,0)}catch(B){g.CE(B)}},y); tL[A]=!0;Mp[R]||(Mp[R]=[]);Mp[R].push(A);return A}return 0}; W8q=function(R){var l=g.Rn("LOGGED_IN",function(y){R.apply(void 0,arguments);g.lq(l)})}; g.lq=function(R){var l=g.qp();l&&(typeof R==="number"?R=[R]:typeof R==="string"&&(R=[parseInt(R,10)]),g.qZ(R,function(y){l.unsubscribeByKey(y);delete tL[y]}))}; g.yK=function(R,l){var y=g.qp();return y?y.publish.apply(y,arguments):!1}; OEq=function(R){var l=g.qp();if(l)if(l.clear(R),R)L87(R);else for(var y in Mp)L87(y)}; g.qp=function(){return g.Mo.ytPubsubPubsubInstance}; L87=function(R){Mp[R]&&(R=Mp[R],g.qZ(R,function(l){tL[l]&&delete tL[l]}),R.length=0)}; g.f6=function(R,l,y){iEr(R,l,y===void 0?null:y)}; iEr=function(R,l,y){y=y===void 0?null:y;var f=P8Y(R),A=document.getElementById(f),K=A&&zxs(A),G=A&&!K;K?l&&l():(l&&(K=g.Rn(f,l),l=""+g.s5(l),uIZ[l]=K),G||(A=F8J(R,f,function(){zxs(A)||(vlq(A),g.yK(f),g.h$(function(){OEq(f)},0))},y)))}; F8J=function(R,l,y,f){f=f===void 0?null:f;var A=g.ho("SCRIPT");A.id=l;A.onload=function(){y&&setTimeout(y,0)}; A.onreadystatechange=function(){switch(A.readyState){case "loaded":case "complete":A.onload()}}; f&&A.setAttribute("nonce",f);g.iH(A,g.FI(R));R=document.getElementsByTagName("head")[0]||document.body;R.insertBefore(A,R.firstChild);return A}; P8Y=function(R){var l=document.createElement("a");g.H4(l,R);R=l.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+v4(R)}; AS=function(R,l){if(R===l)R=!0;else if(Array.isArray(R)&&Array.isArray(l))R=g.Vr(R,l,AS);else if(g.GK(R)&&g.GK(l))a:if(g.Br(R).length!=g.Br(l).length)R=!1;else{for(var y in R)if(!AS(R[y],l[y])){R=!1;break a}R=!0}else R=!1;return R}; an=function(R){var l=g.SJ.apply(1,arguments);if(!K6(R)||l.some(function(f){return!K6(f)}))throw Error("Only objects may be merged."); l=g.u(l);for(var y=l.next();!y.done;y=l.next())GU(R,y.value)}; GU=function(R,l){for(var y in l)if(K6(l[y])){if(y in R&&!K6(R[y]))throw Error("Cannot merge an object into a non-object.");y in R||(R[y]={});GU(R[y],l[y])}else if(m1(l[y])){if(y in R&&!m1(R[y]))throw Error("Cannot merge an array into a non-array.");y in R||(R[y]=[]);Q8j(R[y],l[y])}else R[y]=l[y];return R}; Q8j=function(R,l){l=g.u(l);for(var y=l.next();!y.done;y=l.next())y=y.value,K6(y)?R.push(GU({},y)):m1(y)?R.push(Q8j([],y)):R.push(y);return R}; K6=function(R){return typeof R==="object"&&!Array.isArray(R)}; m1=function(R){return typeof R==="object"&&Array.isArray(R)}; on=function(R){g.p.call(this);this.X=R}; hS=function(R){on.call(this,!0);this.Z=R}; c$=function(R,l){g.p.call(this);var y=this;this.L=[];this.V=!1;this.X=0;this.J=this.D=this.Y=!1;this.LX=null;var f=(0,g.B8)(R,l);this.Z=new g.Vg(function(){return f(y.LX)},300); g.U(this,this.Z);this.B=this.W=Infinity}; $MT=function(R,l){if(!l)return!1;for(var y=0;y-1)throw Error("Deps cycle for: "+l);if(R.X.has(l))return R.X.get(l);if(!R.Z.has(l)){if(f)return;throw Error("No provider for: "+l);}f=R.Z.get(l);y.push(l);if(f.Eb!==void 0)var A=f.Eb;else if(f.Bhx)A=f[bq]?T_r(R,f[bq],y):[],A=f.Bhx.apply(f,g.ci(A));else if(f.Kd){A=f.Kd;var K=A[bq]?T_r(R,A[bq],y):[];A=new (Function.prototype.bind.apply(A,[null].concat(g.ci(K))))}else throw Error("Could not resolve providers for: "+l);y.pop();f.i8S||R.X.set(l,A); return A}; T_r=function(R,l,y){return l?l.map(function(f){return f instanceof QK?Xj(R,f.key,y,!0):Xj(R,f,y)}):[]}; dz=function(){TU||(TU=new XgZ);return TU}; v$=function(){var R,l;return"h5vcc"in rz&&((R=rz.h5vcc.traceEvent)==null?0:R.traceBegin)&&((l=rz.h5vcc.traceEvent)==null?0:l.traceEnd)?1:"performance"in rz&&rz.performance.mark&&rz.performance.measure?2:0}; zU=function(R){var l=v$();switch(l){case 1:rz.h5vcc.traceEvent.traceBegin("YTLR",R);break;case 2:rz.performance.mark(R+"-start");break;case 0:break;default:nG(l,"unknown trace type")}}; dMk=function(R){var l=v$();switch(l){case 1:rz.h5vcc.traceEvent.traceEnd("YTLR",R);break;case 2:l=R+"-start";var y=R+"-end";rz.performance.mark(y);rz.performance.measure(R,l,y);break;case 0:break;default:nG(l,"unknown trace type")}}; rZZ=function(R){var l,y;(y=(l=window).onerror)==null||y.call(l,R.message,"",0,0,R)}; vO7=function(R){var l=this;var y=y===void 0?0:y;var f=f===void 0?g.Mt():f;this.L=y;this.scheduler=f;this.X=new g.o2;this.Z=R;for(R={VC:0};R.VC=1E3?A():f>=R?A0||(A0=Kl(function(){A();A0=void 0},0)):K-B>=10&&(qCq(l,y.tier),G.Y=K)}; ZEK=function(R,l){if(R.endpoint==="log_event"){g.O1("more_accurate_gel_parser")&&C6().storePayload({isJspb:!1},R.payload);tS(R);var y=YV(R),f=new Map;f.set(y,[R.payload]);var A=j87(R.payload)||"";l&&(yv=new l);return new g.$v(function(K,G){yv&&yv.isReady()?tVQ(f,yv,K,G,{bypassNetworkless:!0},!0,RD(A)):K()})}}; VVZ=function(R,l,y){if(l.endpoint==="log_event"){tS(void 0,l);var f=YV(l,!0),A=new Map;A.set(f,[S4(l.payload)]);y&&(yv=new y);return new g.$v(function(K){yv&&yv.isReady()?YCY(A,yv,K,{bypassNetworkless:!0},!0,RD(R)):K()})}}; YV=function(R,l){var y="";if(R.dangerousLogToVisitorSession)y="visitorOnlyApprovedKey";else if(R.cttAuthInfo){if(l===void 0?0:l){l=R.cttAuthInfo.token;y=R.cttAuthInfo;var f=new SV;y.videoId?f.setVideoId(y.videoId):y.playlistId&&cS(f,2,Gw,e4(y.playlistId));aD[l]=f}else l=R.cttAuthInfo,y={},l.videoId?y.videoId=l.videoId:l.playlistId&&(y.playlistId=l.playlistId),sV[R.cttAuthInfo.token]=y;y=R.cttAuthInfo.token}return y}; lr=function(R,l,y){R=R===void 0?{}:R;l=l===void 0?!1:l;new g.$v(function(f,A){var K=fl(l,y),G=K.L;K.L=!1;By(K.X);By(K.Z);K.Z=0;yv&&yv.isReady()?y===void 0&&g.O1("enable_web_tiered_gel")?MVZ(f,A,R,l,300,G):MVZ(f,A,R,l,y,G):(qCq(l,y),f())})}; MVZ=function(R,l,y,f,A,K){var G=yv;y=y===void 0?{}:y;f=f===void 0?!1:f;A=A===void 0?200:A;K=K===void 0?!1:K;var B=new Map,H=new Map,n={isJspb:f,cttAuthInfo:void 0,tier:A},m={isJspb:f,cttAuthInfo:void 0};if(f){l=g.u(Object.keys(Me));for(A=l.next();!A.done;A=l.next())A=A.value,H=g.O1("enable_web_tiered_gel")?C6().smartExtractMatchingEntries({keys:[n,m],sizeLimit:1E3}):C6().extractMatchingEntries({isJspb:!0,cttAuthInfo:A}),H.length>0&&B.set(A,H),(g.O1("web_fp_via_jspb_and_json")&&y.writeThenSend||!g.O1("web_fp_via_jspb_and_json"))&& delete Me[A];YCY(B,G,R,y,!1,K)}else{B=g.u(Object.keys(Me));for(n=B.next();!n.done;n=B.next())n=n.value,m=g.O1("enable_web_tiered_gel")?C6().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:n,tier:A},{isJspb:!1,cttAuthInfo:n}],sizeLimit:1E3}):C6().extractMatchingEntries({isJspb:!1,cttAuthInfo:n}),m.length>0&&H.set(n,m),(g.O1("web_fp_via_jspb_and_json")&&y.writeThenSend||!g.O1("web_fp_via_jspb_and_json"))&&delete Me[n];tVQ(H,G,R,l,y,!1,K)}}; qCq=function(R,l){function y(){lr({writeThenSend:!0},R,l)} R=R===void 0?!1:R;l=l===void 0?200:l;var f=fl(R,l),A=f===Rbj||f===lbs?5E3:y$9;g.O1("web_gel_timeout_cap")&&!f.Z&&(A=Kl(function(){y()},A),f.Z=A); By(f.X);A=g.JZ("LOGGING_BATCH_TIMEOUT",g.iW("web_gel_debounce_ms",1E4));g.O1("shorten_initial_gel_batch_timeout")&&Hy&&(A=fbY);A=Kl(function(){g.iW("gel_min_batch_size")>0?C6().getSequenceCount({cttAuthInfo:void 0,isJspb:R,tier:l})>=A$o&&y():y()},A); f.X=A}; tVQ=function(R,l,y,f,A,K,G){A=A===void 0?{}:A;var B=Math.round((0,g.eY)()),H=R.size,n=Ker(G);R=g.u(R);var m=R.next();for(G={};!m.done;G={t3:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,nx:void 0,mP:void 0},m=R.next()){var h=g.u(m.value);m=h.next().value;h=h.next().value;G.batchRequest=g.Wr({context:g.Hv(l.config_||g.Bv())});if(!g.KX(h)&&!g.O1("throw_err_when_logevent_malformed_killswitch")){f();break}G.batchRequest.events=h;(h=sV[m])&&G9Y(G.batchRequest,m,h);delete sV[m];G.dangerousLogToVisitorSession= m==="visitorOnlyApprovedKey";abs(G.batchRequest,B,G.dangerousLogToVisitorSession);swo(A);G.nx=function(c){g.O1("start_client_gcf")&&g.pz.Oi(function(){return g.w(function(E){return g.v(E,Bgq(c),0)})}); H--;H||y()}; G.t3=0;G.mP=function(c){return function(){c.t3++;if(A.bypassNetworkless&&c.t3===1)try{g.C1(l,n,c.batchRequest,nl({writeThenSend:!0},c.dangerousLogToVisitorSession,c.nx,c.mP,K)),Hy=!1}catch(E){g.CE(E),f()}H--;H||y()}}(G); try{g.C1(l,n,G.batchRequest,nl(A,G.dangerousLogToVisitorSession,G.nx,G.mP,K)),Hy=!1}catch(c){g.CE(c),f()}}}; YCY=function(R,l,y,f,A,K){f=f===void 0?{}:f;var G=Math.round((0,g.eY)()),B={value:R.size},H=new Map([].concat(g.ci(R)));H=g.u(H);for(var n=H.next();!n.done;n=H.next()){var m=g.u(n.value).next().value,h=R.get(m);n=new U_j;var c=l.config_||g.Bv(),E=new w_,W=new b8;If(W,1,c.ut);If(W,2,c.cL);pY(W,16,c.pC);If(W,17,c.innertubeContextClientVersion);if(c.FE){var Q=c.FE,e=new $O;Q.coldConfigData&&If(e,1,Q.coldConfigData);Q.appInstallData&&If(e,6,Q.appInstallData);Q.coldHashData&&If(e,3,Q.coldHashData);Q.hotHashData&& e.f8(Q.hotHashData);ek(W,$O,62,e)}(Q=g.Mo.devicePixelRatio)&&Q!=1&&lT(W,65,HY(Q));Q=Ph();Q!==""&&If(W,54,Q);Q=uW();if(Q.length>0){e=new d_;for(var r=0;r65535&&(R=1);Ze("BATCH_CLIENT_COUNTER",R);return R}; G9Y=function(R,l,y){if(y.videoId)var f="VIDEO";else if(y.playlistId)f="PLAYLIST";else return;R.credentialTransferTokenTargetId=y;R.context=R.context||{};R.context.user=R.context.user||{};R.context.user.credentialTransferTokens=[{token:l,scope:f}]}; tS=function(R,l){var y=g.yr("yt.logging.transport.enableScrapingForTest"),f=L0("il_payload_scraping");f=(f!==void 0?String(f):"")==="enable_il_payload_scraping";if(!y)if(f)h0=[],g.lA("yt.logging.transport.enableScrapingForTest",!0),g.lA("yt.logging.transport.scrapedPayloadsForTesting",h0),g.lA("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.lA("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.lA("yt.logging.transport.scrapeClientEvent",!0);else return;y=g.yr("yt.logging.transport.scrapedPayloadsForTesting");f=g.yr("yt.logging.transport.payloadToScrape");l&&(l=l.payload,(l=g.yr("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(l)())&&y.push(l));l=g.yr("yt.logging.transport.scrapeClientEvent");if(f&&f.length>=1)for(var A=0;A0&&drQ(R,l,K)}else drQ(R,l)}; drQ=function(R,l,y){R=r$j(R);l=l?g.WF(l):"";y=y||5;lJ()&&g.wg(R,l,y)}; r$j=function(R){for(var l=g.u(va7),y=l.next();!y.done;y=l.next())R=F1(R,y.value);return"ST-"+v4(R).toString(36)}; zbq=function(R){if(R.name==="JavaException")return!0;R=R.stack;return R.includes("chrome://")||R.includes("-extension://")||R.includes("webkit-masked-url://")}; whJ=function(R){if(!R.stack)return!0;var l=!R.stack.includes("\n");return l&&R.stack.includes("ErrorType: ")||l&&R.stack.includes("Anonymous function (Unknown script")||R.stack.toLowerCase()==="not available"||R.fileName==="user-script"||R.fileName.startsWith("user-script:")?!0:!1}; xrk=function(){this.Qw=[];this.Zx=[]}; $$=function(){if(!Qv){var R=Qv=new xrk;R.Zx.length=0;R.Qw.length=0;Ibk(R,NgY)}return Qv}; Ibk=function(R,l){l.Zx&&R.Zx.push.apply(R.Zx,l.Zx);l.Qw&&R.Qw.push.apply(R.Qw,l.Qw)}; phk=function(R){function l(){return R.charCodeAt(f++)} var y=R.length,f=0;do{var A=eh(l);if(A===Infinity)break;var K=A>>3;switch(A&7){case 0:A=eh(l);if(K===2)return A;break;case 1:if(K===2)return;f+=8;break;case 2:A=eh(l);if(K===2)return R.substr(f,A);f+=A;break;case 5:if(K===2)return;f+=4;break;default:return}}while(f500));f++);f=A}else if(typeof R==="object")for(A in R){if(R[A]){var K=A;var G=R[A],B=l,H=y;K=typeof G!=="string"||K!=="clickTrackingParams"&&K!=="trackingParams"?0:(G=phk(atob(G.replace(/-/g,"+").replace(/_/g,"/"))))?br(K+".ve",G,B,H):0;f+=K;f+=br(A,R[A],l,y);if(f>500)break}}else y[l]=X6(R),f+=y[l].length;else y[l]=X6(R),f+=y[l].length;return f}; br=function(R,l,y,f){y+="."+R;R=X6(l);f[y]=R;return y.length+R.length}; X6=function(R){try{return(typeof R==="string"?R:String(JSON.stringify(R))).substr(0,500)}catch(l){return"unable to serialize "+typeof R+" ("+l.message+")"}}; aq=function(R){g.Tw(R)}; g.dP=function(R){g.Tw(R,"WARNING")}; g.Tw=function(R,l){var y=y===void 0?{}:y;y.name=g.JZ("INNERTUBE_CONTEXT_CLIENT_NAME",1);y.version=g.JZ("INNERTUBE_CONTEXT_CLIENT_VERSION");l=l===void 0?"ERROR":l;var f=!1;l=l===void 0?"ERROR":l;f=f===void 0?!1:f;if(R){R.hasOwnProperty("level")&&R.level&&(l=R.level);if(g.O1("console_log_js_exceptions")){var A=[];A.push("Name: "+R.name);A.push("Message: "+R.message);R.hasOwnProperty("params")&&A.push("Error Params: "+JSON.stringify(R.params));R.hasOwnProperty("args")&&A.push("Error args: "+JSON.stringify(R.args)); A.push("File name: "+R.fileName);A.push("Stacktrace: "+R.stack);window.console.log(A.join("\n"),R)}if(!(S1Q>=5)){A=[];for(var K=g.u(jw9),G=K.next();!G.done;G=K.next()){G=G.value;try{G()&&A.push(G())}catch(Q){}}A=[].concat(g.ci(k9c),g.ci(A));var B=AKq(R);K=B.message||"Unknown Error";G=B.name||"UnknownError";var H=B.stack||R.X||"Not available";if(H.startsWith(G+": "+K)){var n=H.split("\n");n.shift();H=n.join("\n")}n=B.lineNumber||"Not available";B=B.fileName||"Not available";var m=0;if(R.hasOwnProperty("args")&& R.args&&R.args.length)for(var h=0;h=500);h++);else if(R.hasOwnProperty("params")&&R.params){var c=R.params;if(typeof R.params==="object")for(h in c){if(c[h]){var E="params."+h,W=X6(c[h]);y[E]=W;m+=E.length+W.length;if(m>500)break}}else y.params=X6(c)}if(A.length)for(h=0;h=500);h++);navigator.vendor&&!y.hasOwnProperty("vendor")&&(y["device.vendor"]=navigator.vendor);y={message:K,name:G,lineNumber:n, fileName:B,stack:H,params:y,sampleWeight:1};h=Number(R.columnNumber);isNaN(h)||(y.lineNumber=y.lineNumber+":"+h);if(R.level==="IGNORED")R=0;else a:{R=$$();h=g.u(R.Zx);for(A=h.next();!A.done;A=h.next())if(A=A.value,y.message&&y.message.match(A.wF)){R=A.weight;break a}R=g.u(R.Qw);for(h=R.next();!h.done;h=R.next())if(h=h.value,h.callback(y)){R=h.weight;break a}R=1}y.sampleWeight=R;R=g.u(Dri);for(h=R.next();!h.done;h=R.next())if(h=h.value,h.rU[y.name])for(K=g.u(h.rU[y.name]),A=K.next();!A.done;A=K.next())if(G= A.value,A=y.message.match(G.EC)){y.params["params.error.original"]=A[0];K=G.groups;G={};for(n=0;n1E3&&g.dP(new g.JD("IL Attach cache exceeded limit"))}B= D0(y,l);pl.has(B)?Z0(y,l):Sh.set(B,!0)}}f=f.filter(function(m){m.csn!==l?(m.csn=l,m=!0):m=!1;return m}); y={csn:l,parentVe:y.getAsJson(),childVes:g.L$(f,function(m){return m.getAsJson()})}; l==="UNDEFINED_CSN"?J0("visualElementAttached",K,y):R?EV("visualElementAttached",y,R,K):g.sE("visualElementAttached",y,K)}; KKk=function(R,l,y,f,A){gP(y,l);f=NJ({cttAuthInfo:ur(l)||void 0},l);y={csn:l,ve:y.getAsJson(),eventType:1};A&&(y.clientData=A);l==="UNDEFINED_CSN"?J0("visualElementShown",f,y):R?EV("visualElementShown",y,R,f):g.sE("visualElementShown",y,f)}; GIr=function(R,l,y,f){var A=(f=f===void 0?!1:f)?16:8;f=NJ({cttAuthInfo:ur(l)||void 0,endOfSequence:f},l);y={csn:l,ve:y.getAsJson(),eventType:A};l==="UNDEFINED_CSN"?J0("visualElementHidden",f,y):R?EV("visualElementHidden",y,R,f):g.sE("visualElementHidden",y,f)}; Cl=function(R,l,y,f,A){Vv(R,l,y,void 0,f,A)}; Vv=function(R,l,y,f,A){gP(y,l);f=f||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var K=NJ({cttAuthInfo:ur(l)||void 0},l);y={csn:l,ve:y.getAsJson(),gestureType:f};A&&(y.clientData=A);l==="UNDEFINED_CSN"?J0("visualElementGestured",K,y):R?EV("visualElementGestured",y,R,K):g.sE("visualElementGestured",y,K)}; adK=function(){var R=W$(16);for(var l=[],y=0;y0&&y.push(g.ho("BR"));y.push(g.c0(K))}):y.push(g.c0(f))}return y}; s_=function(R,l,y,f){if(y==="child"){g.W0(l);var A;f===void 0?A=void 0:A=!Array.isArray(f)||f&&typeof f.T==="string"?[f]:f;y=B09(R,A);y=g.u(y);for(R=y.next();!R.done;R=y.next())l.appendChild(R.value)}else y==="style"?g.Df(l,"cssText",f?f:""):f===null||f===void 0?l.removeAttribute(y):(R=f.toString(),y==="href"&&(R=g.AM(g.sp(R))),l.setAttribute(y,R))}; g.Z=function(R){g.GG.call(this,R);this.m$=!0;this.J=!1;this.listeners=[]}; g.BB=function(R){g.Z.call(this,R);this.tU=new g.Ae;g.U(this,this.tU)}; HB=function(R,l,y,f,A,K,G){G=G===void 0?null:G;g.BB.call(this,l);this.api=R;this.macros={};this.componentType=y;this.V=this.W=null;this.iQ=G;this.layoutId=f;this.interactionLoggingClientData=A;this.d7=K;this.UL=null;this.eX=new hS(this.element);g.U(this,this.eX);this.B1=this.N(this.element,"click",this.onClick);this.Dq=[];this.xb=new c$(this.onClick,this);g.U(this,this.xb);this.ZL=!1;this.P1=this.LX=null}; ni=function(R,l){R=R===void 0?null:R;l=l===void 0?null:l;if(R==null)return g.dP(Error("Got null or undefined adText object")),"";var y=g.rF(R.text);if(!R.isTemplated)return y;if(l==null)return g.dP(Error("Missing required parameters for a templated message")),y;R=g.u(Object.entries(l));for(l=R.next();!l.done;l=R.next()){var f=g.u(l.value);l=f.next().value;f=f.next().value;y=y.replace("{"+l+"}",f)}return y}; HFi=function(R){R=R===void 0?null:R;return R!=null&&(R=R.thumbnail,R!=null&&R.thumbnails!=null&&R.thumbnails.length!=0&&R.thumbnails[0].url!=null)?g.rF(R.thumbnails[0].url):""}; n1i=function(R){R=R===void 0?null:R;return R!=null&&(R=R.thumbnail,R!=null&&R.thumbnails!=null&&R.thumbnails.length!=0&&R.thumbnails[0].width!=null&&R.thumbnails[0].height!=null)?new g.JM(R.thumbnails[0].width||0,R.thumbnails[0].height||0):new g.JM(0,0)}; g.mF=function(R){if(R.simpleText)return R.simpleText;if(R.runs){var l=[];R=g.u(R.runs);for(var y=R.next();!y.done;y=R.next())y=y.value,y.text&&l.push(y.text);return l.join("")}return""}; g.oN=function(R){if(R.simpleText)return R=document.createTextNode(R.simpleText),R;var l=[];if(R.runs)for(var y=0;y1){for(var l=[R[0]],y=1;y0&&(this.Z=new g.Vg(this.n9,l,this),g.U(this,this.Z));this.J=new g.Vg(this.n9,y,this);g.U(this,this.J);this.W=TJT(this.X,A,1,f);g.U(this,this.W);this.V=TJT(this.X,0,f,1);g.U(this,this.V);this.Y=new eI;g.U(this,this.Y)}; KR=function(R,l,y){this.X=R;this.isAsync=l;this.Z=y}; yvs=function(R){switch(R){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:nG(R,"unknown result type")}}; fgi=function(R,l){var y=1;R.isTrusted===!1&&(y=0);Ze("ISDSTAT",y);Ge(y,"i.s_",{triggerContext:"sk",metadata:l});return y}; Av9=function(R,l){var y=[];l?l.isTrusted===!0?y.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):l.isTrusted===!1?y.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):y.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):y.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");Ge(0,"a.s_",{metadata:R,states:y});Ze("ASDSTAT",0)}; Ge=function(R,l,y){l=Ku9[l];var f,A,K={detected:R===0,source:""+l.X+((f=y.triggerContext)!=null?f:"")+((A=y.hT)!=null?A:""),detectionStates:y.states,durationMs:y.W2};y.metadata&&(K.contentCpn=y.metadata.contentCpn,K.adCpn=y.metadata.adCpn);g.sE("biscottiBasedDetection",K);l.Z!==void 0&&(y=Number(g.JZ("CATSTAT",0)),l.Z!==void 0?(l=l.Z,R=yvs(R),R=y&~(3<0}; ol=function(R,l,y,f,A,K){qF.call(this,R,{T:"div",j:"ytp-ad-skip-button-slot"},"skip-button",l,y,f,A);var G=this;this.Yb=null;this.sL=!1;this.jS=K;this.D=this.api.U().experiments.EL("enable_modern_skip_button_on_web");this.W1=!1;this.Y=new g.BB({T:"span",QL:["ytp-ad-skip-button-container"]});this.D&&this.Y.element.classList.add("ytp-ad-skip-button-container-detached");g.U(this,this.Y);this.Y.JU(this.element);this.X=this.L=null;this.uQ=new g.MF(this.Y,500,!1,100,function(){return G.hide()}); g.U(this,this.uQ);this.CX=new A7(this.Y.element,15E3,5E3,.5,.5,this.D);g.U(this,this.CX);this.hide()}; ag7=function(R){R=R.Yb&&R.Yb.adRendererCommands;return(R&&R.clickCommand&&g.k(R.clickCommand,g.h7)&&g.k(R.clickCommand,g.h7).commands||[]).some(function(l){return l.adLifecycleCommand?GnY(l.adLifecycleCommand):!1})}; GnY=function(R){return R.action==="END_LINEAR_AD"||R.action==="END_LINEAR_AD_PLACEMENT"}; cR=function(R,l,y,f,A,K){qF.call(this,R,{T:"div",j:"ytp-ad-skip-ad-slot"},"skip-ad",l,y,f,A);this.Yb=K;this.Y=!1;this.D=0;this.L=this.X=null;this.hide()}; sqJ=function(R,l){R.Y||(R.Y=!0,R.X&&(l?R.X.Yb.hide():R.X.hide()),l?(R=R.L,R.uQ.show(),R.show()):R.L.show())}; EX=function(R,l,y,f){dp.call(this,R,l,y,f,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; WR=function(R,l,y,f,A,K,G){K=K===void 0?!1:K;G=G===void 0?!1:G;HB.call(this,R,{T:"span",j:"ytp-ad-simple-ad-badge"},"simple-ad-badge",l,y,f);this.L=A;this.Z=this.pX("ytp-ad-simple-ad-badge");(this.X=K)&&this.Z.classList.add("ytp-ad-simple-ad-badge--clean-player");G&&this.Z.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; LR=function(R,l,y,f,A){A=A===void 0?!1:A;fi.call(this,"player-overlay",R,{},l,f);this.videoAdDurationSeconds=y;this.interactionLoggingClientData=f;this.iI=A}; OX=function(R,l){g.Ae.call(this);this.api=R;this.durationMs=l;this.Z=null;this.SZ=new eI(this);g.U(this,this.SZ);this.X=B4J;this.SZ.N(this.api,"presentingplayerstatechange",this.Yn);this.Z=this.SZ.N(this.api,"onAdPlaybackProgress",this.J1)}; PR=function(R){g.Ae.call(this);this.Z=!1;this.TU=0;this.SZ=new eI(this);g.U(this,this.SZ);this.durationMs=R;this.timer=new g.Iu(100);g.U(this,this.timer);this.SZ.N(this.timer,"tick",this.J1);this.X={seekableStart:0,seekableEnd:R/1E3,current:0};this.start()}; g.ut=function(R,l){var y=Math.abs(Math.floor(R)),f=Math.floor(y/86400),A=Math.floor(y%86400/3600),K=Math.floor(y%3600/60);y=Math.floor(y%60);if(l){l="";f>0&&(l+=" "+f+" d\u00edas");if(f>0||A>0)l+=" "+A+" horas";l+=" "+K+" minutos";l+=" "+y+" segundos";f=l.trim()}else{l="";f>0&&(l+=f+":",A<10&&(l+="0"));if(f>0||A>0)l+=A+":",K<10&&(l+="0");l+=K+":";y<10&&(l+="0");f=l+y}return R>=0?f:"-"+f}; g.Fs=function(R){return(!("button"in R)||typeof R.button!=="number"||R.button===0)&&!("shiftKey"in R&&R.shiftKey)&&!("altKey"in R&&R.altKey)&&!("metaKey"in R&&R.metaKey)&&!("ctrlKey"in R&&R.ctrlKey)}; Qc=function(R,l,y,f,A,K,G){qF.call(this,R,{T:"span",j:G?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",l,y,f,A);this.videoAdDurationSeconds=K;this.X=null;G&&this.api.U().X&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),Jv&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; $i=function(R,l,y,f){VN.call(this,R,l,y,f,"ytp-video-ad-top-bar-title","ad-title")}; eE=function(R){this.content=R.content;if(R.commandRuns){R=g.u(R.commandRuns);for(var l=R.next();!l.done;l=R.next())l=l.value,this.loggingDirectives=g.k(l,HOq),l.onTap&&(this.interaction={onTap:l.onTap})}}; bt=function(R,l,y,f){HB.call(this,R,{T:"div",j:"ad-simple-attributed-string"},"ad-simple-attributed-string",l,y,f);this.hide()}; Xs=function(R,l,y,f,A){HB.call(this,R,{T:"span",j:A?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",l,y,f);this.X=A;this.adBadgeText=new bt(this.api,this.layoutId,this.interactionLoggingClientData,this.d7);this.adBadgeText.JU(this.element);g.U(this,this.adBadgeText);A?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),Jv&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; Te=function(R,l,y,f){HB.call(this,R,{T:"span",j:"ytp-ad-pod-index"},"ad-pod-index",l,y,f);this.api.U().X&&(this.element.classList.add("ytp-ad-pod-index--mweb"),Jv&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; di=function(R,l,y,f){HB.call(this,R,{T:"div",j:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",l,y,f);this.hide()}; ri=function(R,l){this.X=R;this.Z=l}; nRk=function(R,l){return R.X+l*(R.Z-R.X)}; vR=function(R,l,y){return R.Z-R.X?g.Sq((l-R.X)/(R.Z-R.X),0,1):y!=null?y:Infinity}; ze=function(R,l,y,f){f=f===void 0?!1:f;g.BB.call(this,{T:"div",j:"ytp-ad-persistent-progress-bar-container",S:[{T:"div",j:"ytp-ad-persistent-progress-bar"}]});this.api=R;this.X=l;this.L=y;f&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.U(this,this.X);this.progressBar=this.pX("ytp-ad-persistent-progress-bar");this.Z=-1;this.N(R,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; wi=function(R,l,y,f,A,K){HB.call(this,R,{T:"div",j:"ytp-ad-player-overlay",S:[{T:"div",j:"ytp-ad-player-overlay-flyout-cta"},{T:"div",j:"ytp-ad-player-overlay-instream-info"},{T:"div",j:"ytp-ad-player-overlay-skip-or-preview"},{T:"div",j:"ytp-ad-player-overlay-progress-bar"},{T:"div",j:"ytp-ad-player-overlay-instream-user-sentiment"},{T:"div",j:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",l,y,f);this.B=K;this.D=this.pX("ytp-ad-player-overlay-flyout-cta");this.D.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.Z=this.pX("ytp-ad-player-overlay-instream-info");this.Y=null;m1J(this)&&(R=oA("div"),g.AU(R,"ytp-ad-player-overlay-top-bar-gradients"),l=this.Z,l.parentNode&&l.parentNode.insertBefore(R,l),(l=this.api.getVideoData(2))&&l.isListed&&l.title&&(y=new $i(this.api,this.layoutId,this.interactionLoggingClientData,this.d7),y.JU(R),y.init(yN("ad-title"),{text:l.title},this.macros),g.U(this,y)),this.Y=R);this.L=null;this.v1=this.pX("ytp-ad-player-overlay-skip-or-preview");this.CX=this.pX("ytp-ad-player-overlay-progress-bar"); this.sL=this.pX("ytp-ad-player-overlay-instream-user-sentiment");this.Yb=this.pX("ytp-ad-player-overlay-ad-disclosure-banner");this.X=A;g.U(this,this.X);this.hide()}; m1J=function(R){R=R.api.U();return g.xi(R)&&R.X}; g.Il=function(R){R&=16777215;var l=[(R&16711680)>>16,(R&65280)>>8,R&255];R=l[0];var y=l[1];l=l[2];R=Number(R);y=Number(y);l=Number(l);if(R!=(R&255)||y!=(y&255)||l!=(l&255))throw Error('"('+R+","+y+","+l+'") is not a valid RGB color');y=R<<16|y<<8|l;return R<16?"#"+(16777216|y).toString(16).slice(1):"#"+y.toString(16)}; g.NL=function(){}; h49=function(R){var l=new nr;var y=new Hb;y=If(y,1,"botguard");R=If(y,2,R);this.Z=zpc(l,Hb,1,oRk,R)}; pR=function(R){this.Z=new Xt(R)}; cvZ=function(){var R=!1;try{R=!!window.sessionStorage.getItem("session_logininfo")}catch(l){R=!0}return(g.JZ("INNERTUBE_CLIENT_NAME")==="WEB"||g.JZ("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&R}; UX=function(){var R=R===void 0?!0:R;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");Ze("LOGIN_INFO","");R&&window.sessionStorage.setItem("from_switch_account","1");R=!0;R=R===void 0?!1:R;var l,y=ERs;y||(y=document.querySelector("#persist_identity"));if(l=y){var f=l.src?(new URL(l.src)).origin:"*";if(R){var A;(A=l.contentWindow)==null||A.postMessage({action:"clear"},f)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var K=window.sessionStorage.getItem("session_logininfo");if(K){var G;(G=l.contentWindow)==null||G.postMessage({loginInfo:K},f)}}}}catch(B){}}; SE=function(R){R&&(R.startsWith("https://accounts.google.com/AddSession")?UX():R.startsWith("https://accounts.google.com/ServiceLogin")?UX():R.startsWith("https://myaccount.google.com")&&g.oj(R).X.endsWith("/youtubeoptions")&&UX());if(g.JZ("LOGGED_IN",!0)&&cvZ()){var l=g.JZ("VALID_SESSION_TEMPDATA_DOMAINS",[]);var y=g.n4(window.location.href);y&&l.push(y);y=g.n4(R);g.uA(l,y)||!y&&Ta(R,"/")?(l=og(R),(l=jAs(l))?(l=r$j(l),l=(l=g.xa(l)||null)?Rw(l):{}):l=null):l=null;l==null&&(l={});y=l;var f=void 0; cvZ()?(f||(f=g.JZ("LOGIN_INFO")),f?(y.session_logininfo=f,y=!0):y=!1):y=!1;y&&F6(R,l)}}; g.Wui=function(R){var l=l===void 0?{}:l;var y=y===void 0?"":y;var f=f===void 0?window:f;R=g.L4(R,l);SE(R);y=g.sp(R+y);f=f.location;y=B4(y);y!==void 0&&(f.href=y)}; g.jE=function(R,l,y){l=l===void 0?{}:l;y=y===void 0?!1:y;var f=g.JZ("EVENT_ID");f&&(l.ei||(l.ei=f));l&&F6(R,l);y||(SE(R),g.Wui(R))}; g.ki=function(R,l,y,f,A){A=A===void 0?!1:A;y&&F6(R,y);y=g.sp(R);var K=g.AM(y);R!=K&&tZ(Error("Unsafe window.open URL: "+R));R=K;l=l||v4(R).toString(36);try{if(A)return A=R,A=B_r(A),SE(A),g.c4(window,A,l,"attributionsrc")}catch(G){g.CE(G)}SE(R);return g.c4(window,y,l,f)}; LuK=function(R){D7=R}; OOk=function(R){Z7=R}; iOK=function(R){J7=R}; uvQ=function(){Pdi=J7=Z7=D7=null}; QqQ=function(){var R=R===void 0?window.location.href:R;if(g.O1("kevlar_disable_theme_param"))return null;var l=mE(R);if(g.O1("enable_dark_theme_only_on_shorts")&&l!=null&&l.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var y=g.f0(R).theme;return FuQ.get(y)||null}catch(f){}return null}; gi=function(){this.Z={};if(this.X=cRT()){var R=g.xa("CONSISTENCY");R&&$1r(this,{encryptedTokenJarContents:R})}}; $1r=function(R,l){if(l.encryptedTokenJarContents&&(R.Z[l.encryptedTokenJarContents]=l,typeof l.expirationSeconds==="string")){var y=Number(l.expirationSeconds);setTimeout(function(){delete R.Z[l.encryptedTokenJarContents]},y*1E3); R.X&&g.wg("CONSISTENCY",l.encryptedTokenJarContents,y,void 0,!0)}}; CR=function(){this.X=-1;var R=g.JZ("LOCATION_PLAYABILITY_TOKEN");g.JZ("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Vc(this))&&(R=this.localStorage.get("yt-location-playability-token"));R&&(this.locationPlayabilityToken=R,this.Z=void 0)}; Vc=function(R){return R.localStorage===void 0?new y1("yt-client-location"):R.localStorage}; g.qL=function(R,l,y){l=l===void 0?!1:l;y=y===void 0?!1:y;var f=g.JZ("INNERTUBE_CONTEXT");if(!f)return g.Tw(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};f=g.Wr(f);g.O1("web_no_tracking_params_in_shell_killswitch")||delete f.clickTracking;f.client||(f.client={});var A=f.client;A.clientName==="MWEB"&&A.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(A.clientFormFactor=g.JZ("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");A.screenWidthPoints=window.innerWidth;A.screenHeightPoints= window.innerHeight;A.screenPixelDensity=Math.round(window.devicePixelRatio||1);A.screenDensityFloat=window.devicePixelRatio||1;A.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var K=K===void 0?!1:K;g.UG();var G="USER_INTERFACE_THEME_LIGHT";g.SI(0,165)?G="USER_INTERFACE_THEME_DARK":g.SI(0,174)?G="USER_INTERFACE_THEME_LIGHT":!g.O1("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (G="USER_INTERFACE_THEME_DARK");K=K?G:QqQ()||G;A.userInterfaceTheme=K;if(!l){if(K=yIq())A.connectionType=K;g.O1("web_log_effective_connection_type")&&(K=AIQ())&&(f.client.effectiveConnectionType=K)}var B;if(g.O1("web_log_memory_total_kbytes")&&((B=g.Mo.navigator)==null?0:B.deviceMemory)){var H;B=(H=g.Mo.navigator)==null?void 0:H.deviceMemory;f.client.memoryTotalKbytes=""+B*1E6}g.O1("web_gcf_hashes_innertube")&&(K=n87())&&(H=K.coldConfigData,B=K.coldHashData,K=K.hotHashData,f.client.configInfo=f.client.configInfo|| {},H&&(f.client.configInfo.coldConfigData=H),B&&(f.client.configInfo.coldHashData=B),K&&(f.client.configInfo.hotHashData=K));H=g.f0(g.Mo.location.href);!g.O1("web_populate_internal_geo_killswitch")&&H.internalcountrycode&&(A.internalGeo=H.internalcountrycode);A.clientName==="MWEB"||A.clientName==="WEB"?(A.mainAppWebInfo={graftUrl:g.Mo.location.href},g.O1("kevlar_woffle")&&CGT.instance&&(H=CGT.instance,A.mainAppWebInfo.pwaInstallabilityStatus=!H.Z&&H.X?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),A.mainAppWebInfo.webDisplayMode=Ia(),A.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):A.clientName==="TVHTML5"&&(!g.O1("web_lr_app_quality_killswitch")&&(H=g.JZ("LIVING_ROOM_APP_QUALITY"))&&(A.tvAppInfo=Object.assign(A.tvAppInfo||{},{appQuality:H})),H=g.JZ("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(A.tvAppInfo=Object.assign(A.tvAppInfo||{},{certificationScope:H}));if(!g.O1("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(N){}n=void 0}n&&(A.timeZone=n)}(n=Ph())?A.experimentsToken=n:delete A.experimentsToken;n=uW();gi.instance||(gi.instance=new gi);f.request=Object.assign({},f.request,{internalExperimentFlags:n,consistencyTokenJars:sh(gi.instance.Z)});!g.O1("web_prequest_context_killswitch")&&(n=g.JZ("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(f.request.externalPrequestContext=n);A=g.UG();n=g.SI(0,58);A=A.get("gsml","");f.user=Object.assign({}, f.user);n&&(f.user.enableSafetyMode=n);A&&(f.user.lockedSafetyMode=!0);g.O1("warm_op_csn_cleanup")?y&&(l=g.Py())&&(f.clientScreenNonce=l):!l&&(l=g.Py())&&(f.clientScreenNonce=l);R&&(f.clickTracking={clickTrackingParams:R});if(R=g.yr("yt.mdx.remote.remoteClient_"))f.remoteClient=R;CR.getInstance().setLocationOnInnerTubeContext(f);try{var m=n0(),h=m.bid;delete m.bid;f.adSignalsInfo={params:[],bid:h};for(var c=g.u(Object.entries(m)),E=c.next();!E.done;E=c.next()){var W=g.u(E.value),Q=W.next().value, e=W.next().value;m=Q;h=e;R=void 0;(R=f.adSignalsInfo.params)==null||R.push({key:m,value:""+h})}var r,d;if(((r=f.client)==null?void 0:r.clientName)==="TVHTML5"||((d=f.client)==null?void 0:d.clientName)==="TVHTML5_UNPLUGGED"){var z=g.JZ("INNERTUBE_CONTEXT");z.adSignalsInfo&&(f.adSignalsInfo.advertisingId=z.adSignalsInfo.advertisingId,f.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",f.adSignalsInfo.limitAdTracking=z.adSignalsInfo.limitAdTracking)}}catch(N){g.Tw(N)}return f}; Xxk=function(R,l){if(!R)return!1;var y,f=(y=g.k(R,e4Y))==null?void 0:y.signal;if(f&&l.mu)return!!l.mu[f];var A;if((y=(A=g.k(R,bOr))==null?void 0:A.request)&&l.hN)return!!l.hN[y];for(var K in R)if(l.zN[K])return!0;return!1}; T47=function(R){var l={"Content-Type":"application/json"};g.JZ("EOM_VISITOR_DATA")?l["X-Goog-EOM-Visitor-Id"]=g.JZ("EOM_VISITOR_DATA"):g.JZ("VISITOR_DATA")&&(l["X-Goog-Visitor-Id"]=g.JZ("VISITOR_DATA"));l["X-Youtube-Bootstrap-Logged-In"]=g.JZ("LOGGED_IN",!1);g.JZ("DEBUG_SETTINGS_METADATA")&&(l["X-Debug-Settings-Metadata"]=g.JZ("DEBUG_SETTINGS_METADATA"));R!=="cors"&&((R=g.JZ("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(l["X-Youtube-Client-Name"]=R),(R=g.JZ("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(l["X-Youtube-Client-Version"]= R),(R=g.JZ("CHROME_CONNECTED_HEADER"))&&(l["X-Youtube-Chrome-Connected"]=R),(R=g.JZ("DOMAIN_ADMIN_STATE"))&&(l["X-Youtube-Domain-Admin-State"]=R),g.JZ("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(R=g.JZ("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(l["X-YouTube-Lava-Device-Context"]=R));return l}; d17=function(){this.Z={}}; t7=function(){this.mappings=new d17}; Yi=function(R){return function(){return new R}}; vRY=function(R){var l=l===void 0?"UNKNOWN_INTERFACE":l;if(R.length===1)return R[0];var y=rvZ[l];if(y){y=new RegExp(y);for(var f=g.u(R),A=f.next();!A.done;A=f.next())if(A=A.value,y.exec(A))return A}var K=[];Object.entries(rvZ).forEach(function(G){var B=g.u(G);G=B.next().value;B=B.next().value;l!==G&&K.push(B)}); y=new RegExp(K.join("|"));R.sort(function(G,B){return G.length-B.length}); f=g.u(R);for(A=f.next();!A.done;A=f.next())if(A=A.value,!y.exec(A))return A;return R[0]}; g.ML=function(R){return"/youtubei/v1/"+vRY(R)}; Rh=function(){}; la=function(){}; yJ=function(){}; fJ=function(R){return g.yr("ytcsi."+(R||"")+"data_")||z4Y(R)}; wxi=function(){var R=fJ();R.info||(R.info={});return R.info}; AV=function(R){R=fJ(R);R.metadata||(R.metadata={});return R.metadata}; KJ=function(R){R=fJ(R);R.tick||(R.tick={});return R.tick}; GB=function(R){R=fJ(R);if(R.gel){var l=R.gel;l.gelInfos||(l.gelInfos={});l.gelTicks||(l.gelTicks={})}else R.gel={gelTicks:{},gelInfos:{}};return R.gel}; x1J=function(R){R=GB(R);R.gelInfos||(R.gelInfos={});return R.gelInfos}; ah=function(R){var l=fJ(R).nonce;l||(l=g.L6(16),fJ(R).nonce=l);return l}; z4Y=function(R){var l={tick:{},info:{}};g.lA("ytcsi."+(R||"")+"data_",l);return l}; sn=function(){var R=g.yr("ytcsi.debug");R||(R=[],g.lA("ytcsi.debug",R),g.lA("ytcsi.reference",{}));return R}; Bo=function(R){R=R||"";var l=IgK();if(l[R])return l[R];var y=sn(),f={timerName:R,info:{},tick:{},span:{},jspbInfo:[]};y.push(f);return l[R]=f}; N4Z=function(R){R=R||"";var l=IgK();l[R]&&delete l[R];var y=sn(),f={timerName:R,info:{},tick:{},span:{},jspbInfo:[]};y.push(f);l[R]=f}; IgK=function(){var R=g.yr("ytcsi.reference");if(R)return R;sn();return g.yr("ytcsi.reference")}; Ho=function(R){return pxo[R]||"LATENCY_ACTION_UNKNOWN"}; nJ=function(R,l){m9.call(this,1,arguments);this.timer=l}; md=function(){this.Z=0}; oh=function(){md.instance||(md.instance=new md);return md.instance}; co=function(R,l){hV[l]=hV[l]||{count:0};var y=hV[l];y.count++;y.time=(0,g.eY)();R.Z||(R.Z=g.tD(0,function(){var f=(0,g.eY)(),A;for(A in hV)hV[A]&&f-hV[A].time>6E4&&delete hV[A];R&&(R.Z=0)},5E3)); return y.count>5?(y.count===6&&Math.random()*1E5<1&&(y=new g.JD("CSI data exceeded logging limit with key",l.split("_")),l.indexOf("plev")>=0||g.dP(y)),!0):!1}; U1o=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; SEY=function(){var R;if(g.O1("csi_use_performance_navigation_timing")){var l,y,f,A=En==null?void 0:(R=En.getEntriesByType)==null?void 0:(l=R.call(En,"navigation"))==null?void 0:(y=l[0])==null?void 0:(f=y.toJSON)==null?void 0:f.call(y);A?(A.requestStart=Wo(A.requestStart),A.responseEnd=Wo(A.responseEnd),A.redirectStart=Wo(A.redirectStart),A.redirectEnd=Wo(A.redirectEnd),A.domainLookupEnd=Wo(A.domainLookupEnd),A.connectStart=Wo(A.connectStart),A.connectEnd=Wo(A.connectEnd),A.responseStart=Wo(A.responseStart), A.secureConnectionStart=Wo(A.secureConnectionStart),A.domainLookupStart=Wo(A.domainLookupStart),A.isPerformanceNavigationTiming=!0,R=A):R=En.timing}else R=g.O1("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(En.timing)):En.timing;return R}; Wo=function(R){return Math.round(LJ()+R)}; LJ=function(){return(g.O1("csi_use_time_origin")||g.O1("csi_use_time_origin_tvhtml5"))&&En.timeOrigin?Math.floor(En.timeOrigin):En.timing.navigationStart}; ia=function(R,l){On("_start",R,l)}; Po=function(R,l){if(!g.O1("web_csi_action_sampling_enabled")||!fJ(l).actionDisabled){var y=Bo(l||"");an(y.info,R);R.loadType&&(y=R.loadType,AV(l).loadType=y);an(x1J(l),R);y=ah(l);l=fJ(l).cttAuthInfo;oh().info(R,y,l)}}; jqi=function(){var R,l,y,f;return((f=dz().resolve($V(a1))==null?void 0:(R=s3())==null?void 0:(l=R.loggingHotConfig)==null?void 0:(y=l.csiConfig)==null?void 0:y.debugTicks)!=null?f:[]).map(function(A){return Object.values(A)[0]})}; On=function(R,l,y){if(!g.O1("web_csi_action_sampling_enabled")||!fJ(y).actionDisabled){var f=ah(y),A;if(A=g.O1("web_csi_debug_sample_enabled")&&f){(dz().resolve($V(a1))==null?0:s3())&&!knq&&(knq=!0,On("gcfl",(0,g.eY)(),y));var K,G,B;A=(dz().resolve($V(a1))==null?void 0:(K=s3())==null?void 0:(G=K.loggingHotConfig)==null?void 0:(B=G.csiConfig)==null?void 0:B.debugSampleWeight)||0;if(K=A!==0)b:{K=jqi();if(K.length>0)for(G=0;Gy.duration?f:y},{duration:0}))&&l.startTime>0&&l.responseEnd>0&&(On("wffs",Wo(l.startTime)),On("wffe",Wo(l.responseEnd)))}; qEj=function(R,l,y){En&&En.measure&&(R.startsWith("measure_")||(R="measure_"+R),y?En.measure(R,l,y):l?En.measure(R,l):En.measure(R))}; tYc=function(R){var l=ua("aft",R);if(l)return l;l=g.JZ((R||"")+"TIMING_AFT_KEYS",["ol"]);for(var y=l.length,f=0;f0&&Po(l);l={isNavigation:!0,actionType:Ho(g.JZ("TIMING_ACTION"))};var y=g.JZ("PREVIOUS_ACTION");y&&(l.previousAction=Ho(y));if(y=g.JZ("CLIENT_PROTOCOL"))l.httpProtocol=y;if(y=g.JZ("CLIENT_TRANSPORT"))l.transportProtocol=y;(y=g.Py())&&y!=="UNDEFINED_CSN"&&(l.clientScreenNonce=y);y=Jvi();if(y===1||y===-1)l.isVisible= !0;y=AV().loadType==="cold";var f=wxi();y||(y=f.yt_lt==="cold");if(y){l.loadType="cold";y=wxi();f=SEY();var A=LJ(),K=g.JZ("CSI_START_TIMESTAMP_MILLIS",0);K>0&&!g.O1("embeds_web_enable_csi_start_override_killswitch")&&(A=K);A&&(On("srt",f.responseStart),y.prerender!==1&&ia(A));y=RXq();y>0&&On("fpt",y);y=SEY();y.isPerformanceNavigationTiming&&Po({performanceNavigationTiming:!0},void 0);On("nreqs",y.requestStart,void 0);On("nress",y.responseStart,void 0);On("nrese",y.responseEnd,void 0);y.redirectEnd- y.redirectStart>0&&(On("nrs",y.redirectStart,void 0),On("nre",y.redirectEnd,void 0));y.domainLookupEnd-y.domainLookupStart>0&&(On("ndnss",y.domainLookupStart,void 0),On("ndnse",y.domainLookupEnd,void 0));y.connectEnd-y.connectStart>0&&(On("ntcps",y.connectStart,void 0),On("ntcpe",y.connectEnd,void 0));y.secureConnectionStart>=LJ()&&y.connectEnd-y.secureConnectionStart>0&&(On("nstcps",y.secureConnectionStart,void 0),On("ntcpe",y.connectEnd,void 0));En&&"getEntriesByType"in En&&Cd9();y=[];if(document.querySelector&& En&&En.getEntriesByName)for(var G in $r)$r.hasOwnProperty(G)&&(f=$r[G],VYj(G,f)&&y.push(f));if(y.length>0)for(l.resourceInfo=[],G=g.u(y),y=G.next();!y.done;y=G.next())l.resourceInfo.push({resourceCache:y.value})}Po(l);l=GB();l.preLoggedGelInfos||(l.preLoggedGelInfos=[]);G=l.preLoggedGelInfos;l=x1J();y=void 0;for(f=0;f-1&&(delete Pi["@type"],C=Pi);Q&&R.X.has(Q)&&R.X.delete(Q);((Rt=l.config)==null?0:Rt.COL)&&ba(l.config.COL);if(C||(pX=R.L)==null||!pX.nHQ(l.input,l.XC)){pk.bQ(15);break}return g.v(pk,R.L.EOx(l.input,l.XC),16);case 16:C=pk.Z;case 15:return L9j(R, C,l),((O5=l.config)==null?0:O5.iSU)&&ba(l.config.iSU),f(),pk.return(C||void 0)}})}; oSZ=function(R,l){a:{R=R.T0;var y,f=(y=g.k(l,e4Y))==null?void 0:y.signal;if(f&&R.mu&&(y=R.mu[f])){var A=y();break a}var K;if((y=(K=g.k(l,bOr))==null?void 0:K.request)&&R.hN&&(K=R.hN[y])){A=K();break a}for(A in l)if(R.zN[A]&&(l=R.zN[A])){A=l();break a}A=void 0}if(A!==void 0)return Promise.resolve(A)}; cLo=function(R,l,y){var f,A,K,G,B,H,n;return g.w(function(m){if(m.X==1){K=((f=l)==null?void 0:(A=f.SC)==null?void 0:A.identity)||n1;H=(G=l)==null?void 0:(B=G.SC)==null?void 0:B.sessionIndex;var h=g.rC(R.Z.w6(K,{sessionIndex:H}));return g.v(m,h,2)}n=m.Z;return m.return(Promise.resolve(Object.assign({},T47(y),n)))})}; hXY=function(R,l,y){var f,A=(l==null?void 0:(f=l.SC)==null?void 0:f.identity)||n1,K;l=l==null?void 0:(K=l.SC)==null?void 0:K.sessionIndex;R=R.Z.w6(A,{sessionIndex:l});return Object.assign({},T47(y),R)}; Ih=function(){}; NW=function(){}; pJ=function(R){this.D=R}; Un=function(){}; Se=function(){}; je=function(){}; kr=function(){}; g.D3=function(R,l){var y=g.SJ.apply(2,arguments);R=R===void 0?0:R;g.JD.call(this,l,y);this.errorType=R;Object.setPrototypeOf(this,this.constructor.prototype)}; Z3=function(R,l,y,f){this.Z=R;this.X=l;this.L=y;this.Y=f}; i1c=function(R,l,y){if(R.Z){var f=mE(F1(l,"key"))||"/UNKNOWN_PATH";R.Z.start(f)}f=y;g.O1("wug_networking_gzip_request")&&(f=jcc(y));var A;return new ((A=R.Y)!=null?A:window.Request)(l,f)}; g.gh=function(R,l){if(!JV){var y=dz();ec(y,{Bj:PFZ,Kd:Z3});var f={zN:{feedbackEndpoint:Yi(Un),modifyChannelNotificationPreferenceEndpoint:Yi(Se),playlistEditEndpoint:Yi(je),shareEntityEndpoint:Yi(pJ),subscribeEndpoint:Yi(Ih),unsubscribeEndpoint:Yi(NW),webPlayerShareEntityServiceEndpoint:Yi(kr)}},A=CR.getInstance(),K={};A&&(K.client_location=A);R===void 0&&(R=qPo());l===void 0&&(l=y.resolve(PFZ));mp9(f,l,R,K);ec(y,{Bj:uoi,Eb:zB.instance});JV=y.resolve(uoi)}return JV}; F9J=function(R){var l=new n3;if(R.interpreterJavascript){var y=r_9(R.interpreterJavascript);y=LG(y).toString();var f=new BG;If(f,6,y);ek(l,BG,1,f,C$)}else R.interpreterUrl&&(y=u8(R.interpreterUrl),y=yG(y).toString(),f=new HG,If(f,4,y),ek(l,HG,2,f,C$));R.interpreterHash&&NS(l,3,R.interpreterHash,C$);R.program&&NS(l,4,R.program,C$);R.globalName&&NS(l,5,R.globalName,C$);R.clientExperimentsStateBlob&&NS(l,7,R.clientExperimentsStateBlob,C$);return l}; VJ=function(R){var l={};R=R.split("&");R=g.u(R);for(var y=R.next();!y.done;y=R.next())y=y.value.split("="),y.length===2&&(l[y[0]]=y[1]);return l}; dzc=function(){if(g.O1("bg_st_hr"))return"havuokmhhs-0";var R,l=((R=performance)==null?void 0:R.timeOrigin)||0;return"havuokmhhs-"+Math.floor(l)}; CJ=function(R){this.Z=R}; Q1Y=function(){return new Promise(function(R){var l=window.top;l.ntpevasrs!==void 0?R(new CJ(l.ntpevasrs)):(l.ntpqfbel===void 0&&(l.ntpqfbel=[]),l.ntpqfbel.push(function(y){R(new CJ(y))}))})}; eXi=function(){if(lJ()){var R=g.JZ("PLAYER_VARS",{});if(g.hA(R,"privembed",!1)!="1"&&!udi(R)){var l=function(){qW=!0;"google_ad_status"in window?Ze("DCLKSTAT",1):Ze("DCLKSTAT",2)}; try{g.f6("//static.doubleclick.net/instream/ad_status.js",l)}catch(y){}$pj.push(g.pz.Oi(function(){if(!(qW||"google_ad_status"in window)){try{if(l){var y=""+g.s5(l),f=uIZ[y];f&&g.lq(f)}}catch(A){}qW=!0;Ze("DCLKSTAT",3)}},5E3))}}}; tV=function(){var R=Number(g.JZ("DCLKSTAT",0));return isNaN(R)?0:R}; lE=function(R,l,y){var f=this;this.network=R;this.options=l;this.X=y;this.Z=null;if(l.IOL){var A=new g.o2;this.Z=A.promise;g.Mo.ytAtRC&&qt(function(){var K,G;return g.w(function(B){if(B.X==1){if(!g.Mo.ytAtRC)return B.return();K=Yr(null);return g.v(B,MW(f,K),2)}G=B.Z;g.Mo.ytAtRC&&g.Mo.ytAtRC(JSON.stringify(G));g.Q9(B)})},2); Q1Y().then(function(K){var G,B,H,n;return g.w(function(m){if(m.X==1)return K.bindInnertubeChallengeFetcher(function(h){return MW(f,Yr(h))}),g.v(m,lO(),2); G=m.Z;B=K.getLatestChallengeResponse();H=B.challenge;if(!H)throw Error("BGE_MACIL");n={challenge:H,pm:VJ(H),hk:G,bgChallenge:new n3};A.resolve(n);K.registerChallengeFetchedCallback(function(h){h=h.challenge;if(!h)throw Error("BGE_MACR");h={challenge:h,pm:VJ(h),hk:G,bgChallenge:new n3};f.Z=Promise.resolve(h)}); g.Q9(m)})})}else l.preload&&b1T(this,new Promise(function(K){g.tD(0,function(){K(R3(f))},0)}))}; Yr=function(R){var l={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};R&&(l.interpreterHash=R);return l}; R3=function(R,l){l=l===void 0?0:l;var y,f,A,K,G,B,H,n,m,h,c,E;return g.w(function(W){switch(W.X){case 1:y=Yr(EP().Z);if(g.O1("att_fet_ks"))return g.$7(W,7),g.v(W,MW(R,y),9);g.$7(W,4);return g.v(W,XvQ(R,y),6);case 6:G=W.Z;A=G.n6x;K=G.fzE;f=G;g.XZ(W,3);break;case 4:return g.TT(W),g.dP(Error("Failed to fetch attestation challenge after "+(l+" attempts; not retrying for 24h."))),yH(R,864E5),W.return({challenge:"",pm:{},hk:void 0,bgChallenge:void 0});case 9:f=W.Z;if(!f)throw Error("Fetching Attestation challenge returned falsy"); if(!f.challenge)throw Error("Missing Attestation challenge");A=f.challenge;K=VJ(A);if("c1a"in K&&(!f.bgChallenge||!f.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.XZ(W,3);break;case 7:B=g.TT(W);g.dP(B);l++;if(l>=5)return g.dP(Error("Failed to fetch attestation challenge after "+(l+" attempts; not retrying for 24h."))),yH(R,864E5),W.return({challenge:"",pm:{},hk:void 0,bgChallenge:void 0});H=1E3*Math.pow(2,l-1)+Math.random()*1E3;return W.return(new Promise(function(Q){g.tD(0, function(){Q(R3(R,l))},H)})); case 3:n=Number(K.t)||7200;yH(R,n*1E3);m=void 0;if(!("c1a"in K&&f.bgChallenge)){W.bQ(10);break}h=F9J(f.bgChallenge);g.$7(W,11);return g.v(W,dH9(EP(),h),13);case 13:g.XZ(W,12);break;case 11:return c=g.TT(W),g.dP(c),W.return({challenge:A,pm:K,hk:m,bgChallenge:h});case 12:return g.$7(W,14),m=new hR({challenge:h,FL:{MP:"aGIf"}}),g.v(W,m.Hu,16);case 16:g.XZ(W,10);break;case 14:E=g.TT(W),g.dP(E),m=void 0;case 10:return W.return({challenge:A,pm:K,hk:m,bgChallenge:h})}})}; MW=function(R,l){var y;return g.w(function(f){y=R.X;if(!y||y.DX())return f.return(MW(R.network,l));vo("att_pna",void 0,"attestation_challenge_fetch");return f.return(new Promise(function(A){y.IN("publicytnetworkstatus-online",function(){MW(R.network,l).then(A)})}))})}; TGZ=function(R){if(!R)throw Error("Fetching Attestation challenge returned falsy");if(!R.challenge)throw Error("Missing Attestation challenge");var l=R.challenge,y=VJ(l);if("c1a"in y&&(!R.bgChallenge||!R.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},R,{n6x:l,fzE:y})}; XvQ=function(R,l){var y,f,A,K,G;return g.w(function(B){switch(B.X){case 1:y=void 0,f=0,A={};case 2:if(!(f<5)){B.bQ(4);break}if(!(f>0)){B.bQ(5);break}A.dI=1E3*Math.pow(2,f-1)+Math.random()*1E3;return g.v(B,new Promise(function(H){return function(n){g.tD(0,function(){n(void 0)},H.dI)}}(A)),5); case 5:return g.$7(B,7),g.v(B,MW(R,l),9);case 9:return K=B.Z,B.return(TGZ(K));case 7:y=G=g.TT(B),G instanceof Error&&g.dP(G);case 8:f++;A={dI:void 0};B.bQ(2);break;case 4:throw y;}})}; b1T=function(R,l){R.Z=l}; dp9=function(R){var l,y,f;return g.w(function(A){if(A.X==1)return g.v(A,Promise.race([R.Z,null]),2);l=A.Z;var K=R3(R);R.Z=K;(y=l)==null||(f=y.hk)==null||f.dispose();g.Q9(A)})}; yH=function(R,l){function y(){var A;return g.w(function(K){A=f-Date.now();return A<1E3?g.v(K,dp9(R),0):(qt(y,0,Math.min(A,6E4)),K.bQ(0))})} var f=Date.now()+l;y()}; rLY=function(R,l){return new Promise(function(y){g.tD(0,function(){y(l())},R)})}; g.vSk=function(R,l){var y;return g.w(function(f){var A=g.yr("yt.aba.att");return(y=A?A:lE.instance!==void 0?lE.instance.L.bind(lE.instance):null)?f.return(y("ENGAGEMENT_TYPE_PLAYBACK",R,l)):f.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.zXZ=function(){var R;return(R=(R=g.yr("yt.aba.att2"))?R:lE.instance!==void 0?lE.instance.Y.bind(lE.instance):null)?R():Promise.resolve(!1)}; xpY=function(R,l){var y=g.yr("ytDebugData.callbacks");y||(y={},g.lA("ytDebugData.callbacks",y));if(g.O1("web_dd_iu")||wvZ.includes(R))y[R]=l}; fn=function(){var R=IAZ;var l=l===void 0?[]:l;var y=y===void 0?[]:y;l=$_Q.apply(null,[eaJ.apply(null,g.ci(l))].concat(g.ci(y)));this.store=XK7(R,void 0,l)}; g.Ax=function(R,l,y){for(var f=Object.assign({},R),A=g.u(Object.keys(l)),K=A.next();!K.done;K=A.next()){K=K.value;var G=R[K],B=l[K];if(B===void 0)delete f[K];else if(G===void 0)f[K]=B;else if(Array.isArray(B)&&Array.isArray(G))f[K]=y?[].concat(g.ci(G),g.ci(B)):B;else if(!Array.isArray(B)&&g.GK(B)&&!Array.isArray(G)&&g.GK(G))f[K]=g.Ax(G,B,y);else if(typeof B===typeof G)f[K]=B;else return l=new g.JD("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:K,xyE:G,updateValue:B}),g.Tw(l), R}return f}; Kn=function(R){var l=this;R=R===void 0?[]:R;this.Z=[];this.L=this.X=0;this.Y=void 0;this.totalLength=0;R.forEach(function(y){l.append(y)})}; NGY=function(R,l){return R.Z.length===0?!1:(R=R.Z[R.Z.length-1])&&R.buffer===l.buffer&&R.byteOffset+R.length===l.byteOffset}; GJ=function(R,l){l=g.u(l.Z);for(var y=l.next();!y.done;y=l.next())R.append(y.value)}; a3=function(R,l,y){return R.split(l).SK.split(y).sP}; sR=function(R){R.Y=void 0;R.X=0;R.L=0}; BO=function(R,l,y){R.isFocused(l);return l-R.L+y<=R.Z[R.X].length}; pvo=function(R){if(!R.Y){var l=R.Z[R.X];R.Y=new DataView(l.buffer,l.byteOffset,l.length)}return R.Y}; Upi=function(R,l,y){l=l===void 0?0:l;y=y===void 0?-1:y;if(!R.totalLength||!y)return new DataView(new ArrayBuffer(0));y<0&&(y=R.totalLength-l);R.focus(l);if(!BO(R,l,y)){var f=R.X,A=R.L;R.focus(l+y-1);A=new Uint8Array(R.L+R.Z[R.X].length-A);for(var K=0,G=f;G<=R.X;G++)A.set(R.Z[G],K),K+=R.Z[G].length;R.Z.splice(f,R.X-f+1,A);sR(R);R.focus(l)}f=R.Z[R.X];return new DataView(f.buffer,f.byteOffset+l-R.L,y)}; HO=function(R,l,y){R=Upi(R,l===void 0?0:l,y===void 0?-1:y);return new Uint8Array(R.buffer,R.byteOffset,R.byteLength)}; nn=function(R,l,y){R=HO(R,l===void 0?0:l,y===void 0?-1:y);l=new Uint8Array(R.length);try{l.set(R)}catch(f){for(y=0;y>10;K=56320|K&1023}cO[A++]=K}}K=String.fromCharCode.apply(String,cO); A<1024&&(K=K.substring(0,A));y.push(K)}return y.join("")}; Ln=function(R,l){var y;if((y=WO)==null?0:y.encodeInto)return l=WO.encodeInto(R,l),l.read>6|192:((A&64512)===55296&&f+1>18|240,l[y++]=A>>12&63|128):l[y++]=A>>12|224,l[y++]=A>>6&63|128),l[y++]=A&63|128)}return y}; OR=function(R){if(WO)return WO.encode(R);var l=new Uint8Array(Math.ceil(R.length*1.2)),y=Ln(R,l);l.lengthy&&(l=l.subarray(0,y));return l}; iE=function(R){this.Z=R;this.pos=0;this.X=-1}; PO=function(R){var l=m0(R.Z,R.pos);++R.pos;if(l<128)return l;for(var y=l&127,f=1;l>=128;)l=m0(R.Z,R.pos),++R.pos,f*=128,y+=(l&127)*f;return y}; uE=function(R,l){var y=R.X;for(R.X=-1;R.pos+1<=R.Z.totalLength;){y<0&&(y=PO(R));var f=y>>3,A=y&7;if(f===l)return!0;if(f>l){R.X=y;break}y=-1;switch(A){case 0:PO(R);break;case 1:R.pos+=8;break;case 2:f=PO(R);R.pos+=f;break;case 5:R.pos+=4}}return!1}; FP=function(R,l){if(uE(R,l))return PO(R)}; QH=function(R,l){if(uE(R,l))return!!PO(R)}; $f=function(R,l){if(uE(R,l)){l=PO(R);var y=HO(R.Z,R.pos,l);R.pos+=l;return y}}; eP=function(R,l){if(R=$f(R,l))return g.ER(R)}; bE=function(R,l,y){if(R=$f(R,l))return y(new iE(new Kn([R])))}; XP=function(R,l){for(var y=[];uE(R,l);)y.push(PO(R));return y.length?y:void 0}; TJ=function(R,l,y){for(var f=[],A;A=$f(R,l);)f.push(y(new iE(new Kn([A]))));return f.length?f:void 0}; d8=function(R,l){R=R instanceof Uint8Array?new Kn([R]):R;return l(new iE(R))}; kEc=function(R,l,y){if(l&&y&&y.buffer===l.exports.memory.buffer){var f=l.realloc(y.byteOffset,R);if(f)return new Uint8Array(l.exports.memory.buffer,f,R)}R=l?new Uint8Array(l.exports.memory.buffer,l.malloc(R),R):new Uint8Array(R);y&&R.set(y);return R}; DpT=function(R,l){this.L=l;this.pos=0;this.X=[];this.Z=kEc(R===void 0?4096:R,l);this.view=new DataView(this.Z.buffer,this.Z.byteOffset,this.Z.byteLength)}; r8=function(R,l){l=R.pos+l;if(!(R.Z.length>=l)){for(var y=R.Z.length*2;y268435455){r8(R,4);for(var y=l&1073741823,f=0;f<4;f++)R.view.setUint8(R.pos,y&127|128),y>>=7,R.pos+=1;l=Math.floor(l/268435456)}for(r8(R,4);l>127;)R.view.setUint8(R.pos,l&127|128),l>>=7,R.pos+=1;R.view.setUint8(R.pos,l);R.pos+=1}; zJ=function(R,l,y){y!==void 0&&(vO(R,l*8),vO(R,y))}; w8=function(R,l,y){y!==void 0&&zJ(R,l,y?1:0)}; xf=function(R,l,y){y!==void 0&&(vO(R,l*8+2),l=y.length,vO(R,l),r8(R,l),R.Z.set(y,R.pos),R.pos+=l)}; g8=function(R,l,y){y!==void 0&&(Z19(R,l,Math.ceil(Math.log2(y.length*4+2)/7)),r8(R,y.length*1.2),l=Ln(y,R.Z.subarray(R.pos)),R.pos+l>R.Z.length&&(r8(R,l),l=Ln(y,R.Z.subarray(R.pos))),R.pos+=l,JLY(R))}; Z19=function(R,l,y){y=y===void 0?2:y;vO(R,l*8+2);R.X.push(R.pos);R.X.push(y);R.pos+=y}; JLY=function(R){for(var l=R.X.pop(),y=R.X.pop(),f=R.pos-y-l;l--;){var A=l?128:0;R.view.setUint8(y++,f&127|A);f>>=7}}; VH=function(R,l,y,f,A){y&&(Z19(R,l,A===void 0?3:A),f(R,y),JLY(R))}; g.Cn=function(R,l,y){y=new DpT(4096,y);l(y,R);return new Uint8Array(y.Z.buffer,y.Z.byteOffset,y.pos)}; g.qU=function(R){var l=new iE(new Kn([To(decodeURIComponent(R))]));R=eP(l,2);l=FP(l,4);var y=gSY[l];if(typeof y==="undefined")throw R=new g.JD("Failed to recognize field number",{name:"EntityKeyHelperError",GnL:l}),g.Tw(R),R;return{pH:l,entityType:y,entityId:R}}; g.tx=function(R,l){var y=y===void 0?0:y;var f=new DpT;xf(f,2,OR(R));R=V8s[l];if(typeof R==="undefined")throw y=new g.JD("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:l}),g.Tw(y),y;zJ(f,4,R);zJ(f,5,1);l=new Uint8Array(f.Z.buffer,f.Z.byteOffset,f.pos);return encodeURIComponent(g.b4(l,y))}; Yf=function(R,l,y,f){if(f===void 0)return f=Object.assign({},R[l]||{}),y=(delete f[y],f),f={},Object.assign({},R,(f[l]=y,f));var A={},K={};return Object.assign({},R,(K[l]=Object.assign({},R[l],(A[y]=f,A)),K))}; CFi=function(R,l,y,f,A){var K=R[l];if(K==null||!K[y])return R;f=g.Ax(K[y],f,A==="REPEATED_FIELDS_MERGE_OPTION_APPEND");A={};K={};return Object.assign({},R,(K[l]=Object.assign({},R[l],(A[y]=f,A)),K))}; q3i=function(R,l){R=R===void 0?{}:R;switch(l.type){case "ENTITY_LOADED":return l.payload.reduce(function(f,A){var K,G=(K=A.options)==null?void 0:K.persistenceOption;if(G&&G!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&G!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return f;if(!A.entityKey)return g.Tw(Error("Missing entity key")),f;if(A.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!A.payload)return A=new g.JD("REPLACE entity mutation is missing a payload",{entityKey:A.entityKey}),g.Tw(A),f;var B=g.Ga(A.payload); return Yf(f,B,A.entityKey,A.payload[B])}if(A.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{A=A.entityKey;try{var H=g.qU(A).entityType;B=Yf(f,H,A);break a}catch(h){if(h instanceof Error){A=new g.JD("Failed to deserialize entity key",{entityKey:A,originalMessage:h.message});g.Tw(A);B=f;break a}throw h;}B=void 0}return B}if(A.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!A.payload)return A=new g.JD("UPDATE entity mutation is missing a payload",{entityKey:A.entityKey}),g.Tw(A),f;B=g.Ga(A.payload);var n,m;return CFi(f, B,A.entityKey,A.payload[B],(n=A.fieldMask)==null?void 0:(m=n.mergeOptions)==null?void 0:m.repeatedFieldsMergeOption)}return f},R); case "REPLACE_ENTITY":var y=l.payload;return Yf(R,y.entityType,y.key,y.xJ);case "REPLACE_ENTITIES":return Object.keys(l.payload).reduce(function(f,A){var K=l.payload[A];return Object.keys(K).reduce(function(G,B){return Yf(G,A,B,K[B])},f)},R); case "UPDATE_ENTITY":return y=l.payload,CFi(R,y.entityType,y.key,y.xJ,y.MUU);default:return R}}; MU=function(R,l,y){return R[l]?R[l][y]||null:null}; RF=function(R){return window.Int32Array?new Int32Array(R):Array(R)}; GM=function(R){g.p.call(this);this.counter=[0,0,0,0];this.X=new Uint8Array(16);this.Z=16;if(!t8Z){var l,y=new Uint8Array(256),f=new Uint8Array(256);var A=1;for(l=0;l<256;l++)y[A]=l,f[l]=A,A^=A<<1^(A>>7&&283);l5=new Uint8Array(256);yo=RF(256);fH=RF(256);AJ=RF(256);KH=RF(256);for(var K=0;K<256;K++){A=K?f[255^y[K]]:0;A^=A<<1^A<<2^A<<3^A<<4;A=A&255^A>>>8^99;l5[K]=A;l=A<<1^(A>>7&&283);var G=l^A;yo[K]=l<<24|A<<16|A<<8|G;fH[K]=G<<24|yo[K]>>>8;AJ[K]=A<<24|fH[K]>>>8;KH[K]=A<<24|AJ[K]>>>8}t8Z=!0}A=RF(44);for(y= 0;y<4;y++)A[y]=R[4*y]<<24|R[4*y+1]<<16|R[4*y+2]<<8|R[4*y+3];for(f=1;y<44;y++)R=A[y-1],y%4||(R=(l5[R>>16&255]^f)<<24|l5[R>>8&255]<<16|l5[R&255]<<8|l5[R>>>24],f=f<<1^(f>>7&&283)),A[y]=A[y-4]^R;this.key=A}; aF=function(R,l){for(var y=0;y<4;y++)R.counter[y]=l[y*4]<<24|l[y*4+1]<<16|l[y*4+2]<<8|l[y*4+3];R.Z=16}; Y3r=function(R){for(var l=R.key,y=R.counter[0]^l[0],f=R.counter[1]^l[1],A=R.counter[2]^l[2],K=R.counter[3]^l[3],G=3;G>=0&&!(R.counter[G]=-~R.counter[G]);G--);for(var B,H,n=4;n<40;)G=yo[y>>>24]^fH[f>>16&255]^AJ[A>>8&255]^KH[K&255]^l[n++],B=yo[f>>>24]^fH[A>>16&255]^AJ[K>>8&255]^KH[y&255]^l[n++],H=yo[A>>>24]^fH[K>>16&255]^AJ[y>>8&255]^KH[f&255]^l[n++],K=yo[K>>>24]^fH[y>>16&255]^AJ[f>>8&255]^KH[A&255]^l[n++],y=G,f=B,A=H;R=R.X;G=l[40];R[0]=l5[y>>>24]^G>>>24;R[1]=l5[f>>16&255]^G>>16&255;R[2]=l5[A>>8&255]^ G>>8&255;R[3]=l5[K&255]^G&255;G=l[41];R[4]=l5[f>>>24]^G>>>24;R[5]=l5[A>>16&255]^G>>16&255;R[6]=l5[K>>8&255]^G>>8&255;R[7]=l5[y&255]^G&255;G=l[42];R[8]=l5[A>>>24]^G>>>24;R[9]=l5[K>>16&255]^G>>16&255;R[10]=l5[y>>8&255]^G>>8&255;R[11]=l5[f&255]^G&255;G=l[43];R[12]=l5[K>>>24]^G>>>24;R[13]=l5[y>>16&255]^G>>16&255;R[14]=l5[f>>8&255]^G>>8&255;R[15]=l5[A&255]^G&255}; Hz=function(){if(!sq&&!g.g4){if(Bz)return Bz;var R;Bz=(R=window.crypto)==null?void 0:R.subtle;var l,y,f;if(((l=Bz)==null?0:l.importKey)&&((y=Bz)==null?0:y.sign)&&((f=Bz)==null?0:f.encrypt))return Bz;Bz=void 0}}; g.nH=function(R){this.X=R}; M8Y=function(R,l,y,f){var A,K;return g.w(function(G){switch(G.X){case 1:if(R.L){G.bQ(2);break}return g.v(G,f.importKey("raw",R.X,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:R.L=G.Z;case 2:return A={name:"AES-CTR",counter:y,length:128},g.v(G,f.encrypt(A,R.L,l),4);case 4:return K=G.Z,G.return(new Uint8Array(K))}})}; RUc=function(R,l,y){R.Z||(R.Z=new GM(R.X));aF(R.Z,y);return R.Z.encrypt(l)}; g.m7=function(R){this.X=R}; oF=function(R){this.J=new Uint8Array(64);this.L=new Uint8Array(64);this.Y=0;this.D=new Uint8Array(64);this.X=0;this.J.set(R);this.L.set(R);for(R=0;R<64;R++)this.J[R]^=92,this.L[R]^=54;this.reset()}; lIT=function(R,l,y){for(var f=R.V,A=R.Z[0],K=R.Z[1],G=R.Z[2],B=R.Z[3],H=R.Z[4],n=R.Z[5],m=R.Z[6],h=R.Z[7],c,E,W,Q=0;Q<64;)Q<16?(f[Q]=W=l[y]<<24|l[y+1]<<16|l[y+2]<<8|l[y+3],y+=4):(c=f[Q-2],E=f[Q-15],W=f[Q-7]+f[Q-16]+((c>>>17|c<<15)^(c>>>19|c<<13)^c>>>10)+((E>>>7|E<<25)^(E>>>18|E<<14)^E>>>3),f[Q]=W),c=h+hJ[Q]+W+((H>>>6|H<<26)^(H>>>11|H<<21)^(H>>>25|H<<7))+(H&n^~H&m),E=((A>>>2|A<<30)^(A>>>13|A<<19)^(A>>>22|A<<10))+(A&K^A&G^K&G),h=c+E,B+=c,Q++,Q<16?(f[Q]=W=l[y]<<24|l[y+1]<<16|l[y+2]<<8|l[y+3],y+=4):(c= f[Q-2],E=f[Q-15],W=f[Q-7]+f[Q-16]+((c>>>17|c<<15)^(c>>>19|c<<13)^c>>>10)+((E>>>7|E<<25)^(E>>>18|E<<14)^E>>>3),f[Q]=W),c=m+hJ[Q]+W+((B>>>6|B<<26)^(B>>>11|B<<21)^(B>>>25|B<<7))+(B&H^~B&n),E=((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+(h&A^h&K^A&K),m=c+E,G+=c,Q++,Q<16?(f[Q]=W=l[y]<<24|l[y+1]<<16|l[y+2]<<8|l[y+3],y+=4):(c=f[Q-2],E=f[Q-15],W=f[Q-7]+f[Q-16]+((c>>>17|c<<15)^(c>>>19|c<<13)^c>>>10)+((E>>>7|E<<25)^(E>>>18|E<<14)^E>>>3),f[Q]=W),c=n+hJ[Q]+W+((G>>>6|G<<26)^(G>>>11|G<<21)^(G>>>25|G<<7))+(G&B^ ~G&H),E=((m>>>2|m<<30)^(m>>>13|m<<19)^(m>>>22|m<<10))+(m&h^m&A^h&A),n=c+E,K+=c,Q++,Q<16?(f[Q]=W=l[y]<<24|l[y+1]<<16|l[y+2]<<8|l[y+3],y+=4):(c=f[Q-2],E=f[Q-15],W=f[Q-7]+f[Q-16]+((c>>>17|c<<15)^(c>>>19|c<<13)^c>>>10)+((E>>>7|E<<25)^(E>>>18|E<<14)^E>>>3),f[Q]=W),c=H+hJ[Q]+W+((K>>>6|K<<26)^(K>>>11|K<<21)^(K>>>25|K<<7))+(K&G^~K&B),E=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&m^n&h^m&h),W=h,h=B,B=W,W=m,m=G,G=W,W=n,n=K,K=W,H=A+c,A=c+E,Q++;R.Z[0]=A+R.Z[0]|0;R.Z[1]=K+R.Z[1]|0;R.Z[2]=G+R.Z[2]|0;R.Z[3]= B+R.Z[3]|0;R.Z[4]=H+R.Z[4]|0;R.Z[5]=n+R.Z[5]|0;R.Z[6]=m+R.Z[6]|0;R.Z[7]=h+R.Z[7]|0}; fIk=function(R){var l=new Uint8Array(32),y=64-R.X;R.X>55&&(y+=64);var f=new Uint8Array(y);f[0]=128;for(var A=R.Y*8,K=1;K<9;K++){var G=A%256;f[y-K]=G;A=(A-G)/256}R.update(f);for(y=0;y<8;y++)l[y*4]=R.Z[y]>>>24,l[y*4+1]=R.Z[y]>>>16&255,l[y*4+2]=R.Z[y]>>>8&255,l[y*4+3]=R.Z[y]&255;ySZ(R);return l}; ySZ=function(R){R.Z=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];R.V=[];R.V.length=64;R.Y=0;R.X=0}; ASj=function(R){this.Z=R}; K1J=function(R,l,y){R=new oF(R.Z);R.update(l);R.update(y);l=fIk(R);R.update(R.J);R.update(l);l=fIk(R);R.reset();return l}; GUK=function(R){this.X=R}; aIi=function(R,l,y,f){var A,K,G;return g.w(function(B){switch(B.X){case 1:if(R.Z){B.bQ(2);break}return g.v(B,f.importKey("raw",R.X,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:R.Z=B.Z;case 2:return A=new Uint8Array(l.length+y.length),A.set(l),A.set(y,l.length),K={name:"HMAC",hash:"SHA-256"},g.v(B,f.sign(K,R.Z,A),4);case 4:return G=B.Z,B.return(new Uint8Array(G))}})}; snr=function(R,l,y){R.L||(R.L=new ASj(R.X));return K1J(R.L,l,y)}; Bzc=function(R,l,y){var f,A;return g.w(function(K){if(K.X==1){f=Hz();if(!f)return K.return(snr(R,l,y));g.$7(K,3);return g.v(K,aIi(R,l,y,f),5)}if(K.X!=3)return K.return(K.Z);A=g.TT(K);g.dP(A);sq=!0;return K.return(snr(R,l,y))})}; nVq=function(R){for(var l="",y=0;y=0||iy(R,0,"gad_source",R.search(PF))>=0}; O6j=function(){this.Z=new Map}; PqZ=function(R,l){var y=dz().resolve(i6Z);if(L1T(l)){var f=uy(l,"gclid");l={handleEvent:function(B){R&&!R.closed&&typeof R.postMessage==="function"&&B&&B.origin&&B.source===R&&B.data&&B.data.action==="gcl_setup"&&R.postMessage(Object.assign({},{action:"gcl_transfer"},f&&{gclid:f},{gadSource:2}),B.origin)}}; for(var A=g.u(y.Z),K=A.next();!K.done;K=A.next()){var G=g.u(K.value);K=G.next().value;G=G.next().value;if(K.closed)try{window.removeEventListener("message",G),y.Z.delete(K)}catch(B){g.Tw(B)}}R&&y.Z.size<15&&(y.Z.set(R,l),window.addEventListener("message",l))}}; cz=function(R,l,y){if(!l)return R.length>=1?R[R.length-1]:null;for(var f=g.u(R),A=f.next();!A.done;A=f.next())if(A=A.value,A.width&&A.height&&(y&&A.width>=l||!y&&A.height>=l))return A;for(l=R.length-1;l>=0;l--)if(y&&R[l].width||!y&&R[l].height)return R[l];return R[0]}; Eq=function(){this.state=1;this.hk=null;this.v0=void 0}; F1Y=function(R,l,y,f,A,K){var G=G===void 0?"trayride":G;y?(R.vl(2),g.f6(y,function(){if(window[G])ujj(R,f,G,A);else{R.vl(3);var B=P8Y(y),H=document.getElementById(B);H&&(OEq(B),H.parentNode.removeChild(H));g.dP(new g.JD("BL:ULB",""+y))}},K)):l?(K=g.ho("SCRIPT"),l instanceof W4?(K.textContent=LG(l),Op(K)):K.textContent=l,K.nonce=Ep(document),document.head.appendChild(K),document.head.removeChild(K),window[G]?ujj(R,f,G,A):(R.vl(4),g.dP(new g.JD("BL:ULBJ")))):g.dP(new g.JD("BL:ULV"))}; ujj=function(R,l,y,f){R.vl(5);var A=!!R.v0&&QnZ.includes(g.n4(R.v0)||"");try{var K=new hR({program:l,globalName:y,FL:{disable:!g.O1("att_web_record_metrics")||!g.O1("att_skip_metrics_for_cookieless_domains_ks")&&A,MP:"aGIf"}});K.Hu.then(function(){R.vl(6);f&&f(l)}); R.c7(K)}catch(G){R.vl(7),G instanceof Error&&g.dP(G)}}; Wz=function(){var R=g.yr("yt.abuse.playerAttLoader");return R&&["bgvma","bgvmb","bgvmc"].every(function(l){return l in R})?R:null}; LH=function(){Eq.apply(this,arguments)}; Oq=function(){}; $eJ=function(R,l,y){for(var f=!1,A=g.u(R.Yh.entries()),K=A.next();!K.done;K=A.next())K=g.u(K.value).next().value,K.slotType==="SLOT_TYPE_PLAYER_BYTES"&&K.AU==="core"&&(f=!0);if(f){a:if(!y){R=g.u(R.Yh.entries());for(y=R.next();!y.done;y=R.next())if(f=g.u(y.value),y=f.next().value,f=f.next().value,y.slotType==="SLOT_TYPE_IN_PLAYER"&&y.AU==="core"){y=f.layoutId;break a}y=void 0}y?l.Fy(y):BR("No triggering layout ID available when attempting to mute.")}}; i5=function(R,l){this.NC=R;this.ma=l}; Pz=function(){}; u5=function(){}; b6i=function(R){g.p.call(this);var l=this;this.dc=R;this.Z=new Map;F8(this,"commandExecutorCommand",function(y,f,A){eUJ(l,y.commands,f,A)}); F8(this,"clickTrackingParams",function(){})}; X$7=function(R,l){F8(R,l.jU(),function(y,f,A){l.Uh(y,f,A)})}; F8=function(R,l,y){R.Fx();R.Z.get(l)&&g.Tw(Error("Extension name "+l+" already registered"));R.Z.set(l,y)}; eUJ=function(R,l,y,f){l=l===void 0?[]:l;R.Fx();var A=[],K=[];l=g.u(l);for(var G=l.next();!G.done;G=l.next())G=G.value,g.k(G,Tzq)||g.k(G,dej)?A.push(G):K.push(G);A=g.u(A);for(l=A.next();!l.done;l=A.next())Qo(R,l.value,y,f);K=g.u(K);for(A=K.next();!A.done;A=K.next())Qo(R,A.value,y,f)}; Qo=function(R,l,y,f){R.Fx();l.loggingUrls&&rSZ(R,"loggingUrls",l.loggingUrls,y,f);l=g.u(Object.entries(l));for(var A=l.next();!A.done;A=l.next()){var K=g.u(A.value);A=K.next().value;K=K.next().value;A==="openPopupAction"?R.dc.get().oQ("innertubeCommand",{openPopupAction:K}):A==="confirmDialogEndpoint"?R.dc.get().oQ("innertubeCommand",{confirmDialogEndpoint:K}):vV7.hasOwnProperty(A)||rSZ(R,A,K,y,f)}}; rSZ=function(R,l,y,f,A){if((R=R.Z.get(l))&&typeof R==="function")try{R(y,f,A)}catch(K){g.Tw(K)}else l=new g.JD("Unhandled field",l),g.dP(l)}; $E=function(R,l,y){this.uO=R;this.Z=l;this.g7=y;ec(dz(),{Bj:i6Z,Kd:O6j})}; e6=function(R){this.value=R}; b5=function(R){this.value=R}; X8=function(R){this.value=R}; TM=function(R){this.value=R}; dE=function(R){this.value=R}; rE=function(R){this.value=R}; vz=function(R){this.value=R}; zM=function(){e6.apply(this,arguments)}; wE=function(R){this.value=R}; xE=function(R){this.value=R}; IF=function(R){this.value=R}; N7=function(R){this.value=R}; pH=function(R){this.value=R}; Uq=function(R){this.value=R}; S6=function(R){this.value=R}; j6=function(R){this.value=R}; kE=function(R){this.value=R}; Dz=function(R){this.value=R}; Zz=function(){e6.apply(this,arguments)}; JJ=function(R){this.value=R}; gE=function(R){this.value=R}; Vo=function(R){this.value=R}; CH=function(R){this.value=R}; q7=function(R){this.value=R}; tJ=function(R){this.value=R}; YE=function(R){this.value=R}; M7=function(R){this.value=R}; RW=function(R){this.value=R}; lb=function(R){this.value=R}; yd=function(R){this.value=R}; fm=function(R){this.value=R}; Ah=function(R){this.value=R}; Km=function(R){this.value=R}; Gq=function(R){this.value=R}; aW=function(R){this.value=R}; sB=function(R){this.value=R}; Be=function(R){this.value=R}; He=function(R){this.value=R}; nm=function(R){this.value=R}; m5=function(R){this.value=R}; oW=function(R){this.value=R}; hh=function(R){this.value=R}; ce=function(R){this.value=R}; EB=function(R){this.value=R}; We=function(R){this.value=R}; Lm=function(R){this.value=R}; OB=function(R){this.value=R}; ib=function(R){this.value=R}; Pe=function(R){this.value=R}; ub=function(R){this.value=R}; FX=function(R){this.value=R}; Qd=function(R){this.value=R}; $y=function(R){this.value=R}; eK=function(R){this.value=R}; bb=function(R){this.value=R}; XX=function(R){this.value=R}; Tq=function(R){this.value=R}; d1=function(){e6.apply(this,arguments)}; r1=function(R){this.value=R}; ve=function(){e6.apply(this,arguments)}; zq=function(){e6.apply(this,arguments)}; w1=function(){e6.apply(this,arguments)}; IW=function(){e6.apply(this,arguments)}; N0=function(){e6.apply(this,arguments)}; pm=function(R){this.value=R}; UB=function(R){this.value=R}; SK=function(R){this.value=R}; jK=function(R){this.value=R}; ky=function(R){this.value=R}; Zy=function(R,l,y){if(y&&!y.includes(R.layoutType))return!1;l=g.u(l);for(y=l.next();!y.done;y=l.next())if(!Dy(R.clientMetadata,y.value))return!1;return!0}; Jh=function(){return""}; zUZ=function(R,l){switch(R){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 l(R),8}}; g1=function(R,l,y,f){f=f===void 0?!1:f;E5.call(this,R);this.p7=y;this.u3=f;this.args=[];l&&this.args.push(l)}; q=function(R,l,y,f){f=f===void 0?!1:f;E5.call(this,R);this.p7=y;this.u3=f;this.args=[];l&&this.args.push(l)}; Vd=function(R){var l=new Map;R.forEach(function(y){l.set(y.Z(),y)}); this.Z=l}; Dy=function(R,l){return R.Z.has(l)}; Cm=function(R,l){R=R.Z.get(l);if(R!==void 0)return R.get()}; q0=function(R){return Array.from(R.Z.keys())}; th=function(R,l,y){if(y&&y!==R.slotType)return!1;l=g.u(l);for(y=l.next();!y.done;y=l.next())if(!Dy(R.clientMetadata,y.value))return!1;return!0}; xeq=function(R){var l;return((l=w$T.get(R))==null?void 0:l.Zk)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; M0=function(R,l){var y={type:l.slotType,controlFlowManagerLayer:IIT.get(l.AU)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};l.slotEntryTrigger&&(y.entryTriggerType=l.slotEntryTrigger.triggerType);l.slotPhysicalPosition!==1&&(y.slotPhysicalPosition=l.slotPhysicalPosition);if(R){y.debugData={slotId:l.slotId};if(R=l.slotEntryTrigger)y.debugData.slotEntryTriggerData=Yy(R);R=l.slotFulfillmentTriggers;y.debugData.fulfillmentTriggerData=[];R=g.u(R);for(var f=R.next();!f.done;f=R.next())y.debugData.fulfillmentTriggerData.push(Yy(f.value)); l=l.slotExpirationTriggers;y.debugData.expirationTriggerData=[];l=g.u(l);for(R=l.next();!R.done;R=l.next())y.debugData.expirationTriggerData.push(Yy(R.value))}return y}; Nzq=function(R,l){var y={type:l.layoutType,controlFlowManagerLayer:IIT.get(l.AU)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};R&&(y.debugData={layoutId:l.layoutId});return y}; Yy=function(R,l){var y={type:R.triggerType};l!=null&&(y.category=l);R.triggeringSlotId!=null&&(y.triggerSourceData||(y.triggerSourceData={}),y.triggerSourceData.associatedSlotId=R.triggeringSlotId);R.triggeringLayoutId!=null&&(y.triggerSourceData||(y.triggerSourceData={}),y.triggerSourceData.associatedLayoutId=R.triggeringLayoutId);return y}; p$J=function(R,l,y,f){l={opportunityType:l};R&&(f||y)&&(f=g.L$(f||[],function(A){return M0(R,A)}),l.debugData=Object.assign({},y&&y.length>0?{associatedSlotId:y}:{},f.length>0?{slots:f}:{})); return l}; lu=function(R,l){return function(y){return Ue9(RI(R),l.slotId,l.slotType,l.slotPhysicalPosition,l.AU,l.slotEntryTrigger,l.slotFulfillmentTriggers,l.slotExpirationTriggers,y.layoutId,y.layoutType,y.AU)}}; Ue9=function(R,l,y,f,A,K,G,B,H,n,m){return{adClientDataEntry:{slotData:M0(R,{slotId:l,slotType:y,slotPhysicalPosition:f,AU:A,slotEntryTrigger:K,slotFulfillmentTriggers:G,slotExpirationTriggers:B,clientMetadata:new Vd([])}),layoutData:Nzq(R,{layoutId:H,layoutType:n,AU:m,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pl:[],qU:new Map,clientMetadata:new Vd([]),e1:{}})}}}; fd=function(R){this.aE=R;R=Math.random();var l=this.aE.get();l=g.yx(l.G.U().experiments,"html5_debug_data_log_probability");l=Number.isFinite(l)&&l>=0&&l<=1?l:0;this.Z=R1){g.dP(new g.JD("Exit already started",{current:R.currentState}));var y=!1}else y=!0;if(!y)return!1;R.currentState=2;R.Z=l;return!0}; GC=function(R){if(R.currentState!==2)return!1;R.currentState=3;return!0}; ED9=function(R,l){var y=new Map;R=g.u(R);for(var f=R.next();!f.done;f=R.next()){f=f.value;if(f.layoutType==="LAYOUT_TYPE_MEDIA")var A="v";else f.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(A=Cm(f.clientMetadata,"metadata_type_linked_in_player_layout_type"),A=A==="LAYOUT_TYPE_ENDCAP"||A==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":A==="LAYOUT_TYPE_SURVEY"?"s":A==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):A="u";y.set(f.layoutId,A);if(A==="u"){var K={};A=l;f=(K.c=f.layoutId,K);A.G.T4("uct",f)}}R= l.J2();az={contentCpn:R,Q9:y};f={};y=(f.ct=y.size,f.c=R,f);l.G.T4("acc",y)}; WFs=function(){az={contentCpn:"",Q9:new Map}}; B9=function(R){var l;return(l=az.Q9.get(R))!=null?l:"u"}; H9=function(R,l,y){R.G.T4(l,y);LFo(R)}; Oij=function(R){var l=R.layoutId,y=R.Ho;if(R.lR){var f={};H9(R.uO,"slso",(f.ec=l,f.is=y,f.ctp=B9(l),f))}}; no=function(R){var l=R.layoutId,y=R.Ho;if(R.lR){var f={};H9(R.uO,"slse",(f.ec=l,f.is=y,f.ctp=B9(l),f))}}; iij=function(R){var l=R.layoutId,y=R.Ho,f=R.uO;R.lR&&(R={},H9(f,"sleo",(R.xc=l,R.is=y,R.ctp=B9(l),R)),LFo(f))}; P1j=function(R){var l=R.cpn,y=R.uO;R=R.Ho;var f=y.J2(),A={};H9(y,"ce",(A.ec=l,A.ia=l!==f,A.r=az.Q9.has(l),A.is=R,A.ctp=B9(l),A))}; LFo=function(R){if(R.J2()!==az.contentCpn){var l={};l=(l.c=az.contentCpn,l);R.G.T4("ccm",l)}}; uaJ=function(R){var l=R.cpn,y=R.uO;R=R.Ho;var f=y.J2(),A={};H9(y,"cx",(A.xc=l,A.ia=l!==f,A.r=az.Q9.has(l),A.is=R,A.ctp=B9(l),A))}; FFo=function(R){this.params=R;this.Z=new Set}; QNr=function(R,l,y){if(!R.Z.has(l)){R.Z.add(l);var f={};R.params.Sa.MU(l,Object.assign({},y,(f.p_ac=R.params.adCpn,f.p_isv=R.params.Pd&&R.params.fJ,f)))}}; oz=function(R,l,y){if(mx(R.params.Sa.aE.get(),!0)){var f=y.flush,A={};QNr(R,l,(A.cts=y.currentTimeSec,A.f=f,A))}}; $F7=function(R,l){this.uO=R;this.aE=l}; hO=function(R){var l=[];if(R){R=g.u(Object.entries(R));for(var y=R.next();!y.done;y=R.next()){var f=g.u(y.value);y=f.next().value;f=f.next().value;f!==void 0&&(f=typeof f==="boolean"?""+ +f:(""+f).replace(/[:,=]/g,"_"),l.push(y+"."+f))}}return l.join(";")}; g.c9=function(R,l,y){l=l===void 0?{}:l;this.errorCode=R;this.details=l;this.severity=y===void 0?0:y}; Eu=function(R){return R===1||R===2}; W9=function(R,l){l=l===void 0?0:l;if(R instanceof g.c9)return R;R=R&&R instanceof Error?R:Error(""+R);Eu(l)?g.Tw(R):g.dP(R);return new g.c9(l===1?"player.fatalexception":"player.exception",{name:""+R.name,message:""+R.message},l)}; eds=function(R,l){function y(){var f=g.SJ.apply(0,arguments);R.removeEventListener("playing",y);l.apply(null,g.ci(f))} R.addEventListener("playing",y)}; Lo=function(){var R=g.yr("yt.player.utils.videoElement_");R||(R=g.ho("VIDEO"),g.lA("yt.player.utils.videoElement_",R));return R}; Ou=function(R){var l=Lo();return!!(l&&l.canPlayType&&l.canPlayType(R))}; P9=function(R){if(/opus/.test(R)&&g.iz&&!QD("38")&&!g.Db())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(R);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(R);if(/webm/.test(R)&&!LgY())return!1;R==='audio/mp4; codecs="mp4a.40.2"'&&(R='video/mp4; codecs="avc1.4d401f"');return!!Ou(R)}; biJ=function(R){try{var l=P9('video/mp4; codecs="avc1.42001E"')||P9('video/webm; codecs="vp9"');return(P9('audio/mp4; codecs="mp4a.40.2"')||P9('audio/webm; codecs="opus"'))&&(l||!R)||Ou('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(y){return"html5.missingapi"}}; uz=function(){var R=Lo();return!(!R.webkitSupportsPresentationMode||typeof R.webkitSetPresentationMode!=="function")}; FN=function(){var R=Lo();try{var l=R.muted;R.muted=!l;return R.muted!==l}catch(y){}return!1}; XBY=function(){var R;return((R=navigator.connection)==null?void 0:R.type)||""}; g.QW=function(){eI.apply(this,arguments)}; $5=function(R,l,y,f,A,K,G,B){this.sampleRate=R===void 0?0:R;this.numChannels=l===void 0?0:l;this.spatialAudioType=y===void 0?"SPATIAL_AUDIO_TYPE_NONE":y;this.Z=f===void 0?!1:f;this.L=A;this.Y=K;this.audioQuality=G===void 0?"AUDIO_QUALITY_UNKNOWN":G;this.X=B===void 0?!1:B}; XN=function(R,l,y,f,A,K,G,B,H){this.width=R;this.height=l;this.quality=K||eM(R,l);this.qualityOrdinal=g.bz[this.quality];this.fps=y||0;this.stereoLayout=!A||f!=null&&f!=="UNKNOWN"&&f!=="RECTANGULAR"?0:A;this.projectionType=f?f==="EQUIRECTANGULAR"&&A===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":f:"UNKNOWN";(R=G)||(R=g.bz[this.quality],R===0?R="Autom\u00e1tica":(l=this.fps,y=this.projectionType,R=R.toString()+(y==="EQUIRECTANGULAR"||y==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||y==="MESH"?"s":"p")+(l>55?"60": l>49?"50":l>39?"48":"")));this.qualityLabel=R;this.Z=B||"";this.primaries=H||""}; eM=function(R,l){var y=Math.max(R,l);R=Math.min(R,l);l=TC[0];for(var f=0;f=Math.floor(K*16/9)*1.3||R>=K*1.3)return l;l=A}return"tiny"}; v9=function(R,l,y){y=y===void 0?{}:y;this.id=R;this.mimeType=l;y.r7>0||(y.r7=16E3);Object.assign(this,y);R=g.u(this.id.split(";"));this.itag=R.next().value;this.Z=R.next().value;this.containerType=dy(l);this.H1=ry[this.itag]||""}; zC=function(R){return R.H1==="9"||R.H1==="("||R.H1==="9h"||R.H1==="(h"}; TpT=function(R){return R.H1==="H"||R.H1==="h"}; wy=function(R){return R.H1==="9h"||R.H1==="(h"}; dF9=function(R){return!!R.sS&&!!R.sS.fairplay&&(R.H1==="("||R.H1==="(h"||R.H1==="A"||R.H1==="MEAC3")||x5&&!!R.sS&&R.H1==="1e"}; Iz=function(R){return R.H1==="1"||R.H1==="1h"||x5&&R.H1==="1e"}; Nw=function(R){return R.H1==="mac3"||R.H1==="meac3"||R.H1==="m"||R.H1==="i"}; po=function(R){return R.H1==="MAC3"||R.H1==="MEAC3"||R.H1==="M"||R.H1==="I"}; g.Uu=function(R){return R.containerType===1}; res=function(R){return R.H1==="("||R.H1==="(h"||R.H1==="H"||x5&&R.H1==="1e"}; SM=function(R){return R.mimeType==="application/x-mpegURL"}; g.jM=function(R,l){return{itag:+R.itag,lmt:l?0:R.lastModified,xtags:R.Z||""}}; vDK=function(R){var l=navigator.mediaCapabilities;if(l==null||!l.decodingInfo||R.H1==="f")return Promise.resolve();var y={type:R.audio&&R.video?"file":"media-source"};R.video&&(y.video={contentType:R.mimeType,width:R.video.width||640,height:R.video.height||360,bitrate:R.r7*8||1E6,framerate:R.video.fps||30});R.audio&&(y.audio={contentType:R.mimeType,channels:""+(R.audio.numChannels||2),bitrate:R.r7*8||128E3,samplerate:R.audio.sampleRate||44100});return l.decodingInfo(y).then(function(f){R.X=f})}; k5=function(R){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(R)}; Dw=function(R){return/(vp9|vp09|vp8|avc1|av01)/.test(R)}; Zw=function(R){return R.includes("vtt")||R.includes("text/mp4")}; dy=function(R){return R.indexOf("/mp4")>=0?1:R.indexOf("/webm")>=0?2:R.indexOf("/x-flv")>=0?3:R.indexOf("/vtt")>=0?4:0}; JO=function(R,l,y,f,A,K){var G=new $5;l in g.bz||(l="small");l==="light"&&(l="tiny");f&&A?(A=Number(A),f=Number(f)):(A=g.bz[l],f=Math.round(A*16/9));K=new XN(f,A,0,null,void 0,l,K);R=unescape(R.replace(/"/g,'"'));return new v9(y,R,{audio:G,video:K})}; gy=function(R){var l="id="+R.id;R.video&&(l+=", res="+R.video.qualityLabel);var y,f;return l+", byterate=("+((y=R.Hv)==null?void 0:y.toFixed(0))+", "+((f=R.r7)==null?void 0:f.toFixed(0))+")"}; VW=function(R,l){return{start:function(y){return R[y]}, end:function(y){return l[y]}, length:R.length}}; zdJ=function(R,l,y){for(var f=[],A=[],K=0;K=l)return y}catch(f){}return-1}; Y5=function(R,l){return tO(R,l)>=0}; wBj=function(R,l){if(!R)return NaN;l=tO(R,l);return l>=0?R.start(l):NaN}; Mw=function(R,l){if(!R)return NaN;l=tO(R,l);return l>=0?R.end(l):NaN}; Ro=function(R){return R&&R.length?R.end(R.length-1):NaN}; lZ=function(R){return Ro(R)>0}; yh=function(R,l){R=Mw(R,l);return R>=0?R-l:0}; fw=function(R,l,y){for(var f=[],A=[],K=0;Ky||(f.push(Math.max(l,R.start(K))-l),A.push(Math.min(y,R.end(K))-l));return VW(f,A)}; A2=function(R,l,y,f){g.Ae.call(this);var A=this;this.Bl=R;this.start=l;this.end=y;this.isActive=f;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.hQ={error:function(){!A.Fx()&&A.isActive&&A.publish("error",A)}, updateend:function(){!A.Fx()&&A.isActive&&A.publish("updateend",A)}}; this.Bl.SQ(this.hQ);this.zB=this.isActive}; GA=function(R,l,y,f,A,K){g.Ae.call(this);var G=this;this.Fo=R;this.PE=l;this.id=y;this.containerType=f;this.H1=A;this.fJ=K;this.Dt=this.wy=this.t7=null;this.qd=!1;this.appendWindowStart=this.timestampOffset=0;this.xu=VW([],[]);this.sW=!1;this.il=[];this.Lt=Kw?[]:void 0;this.SZ=function(H){return G.publish(H.type,G)}; var B;if((B=this.Fo)==null?0:B.addEventListener)this.Fo.addEventListener("updateend",this.SZ),this.Fo.addEventListener("error",this.SZ)}; ao=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; se=function(R,l){this.x$=R;this.Z=l===void 0?!1:l;this.X=!1}; Bs=function(R,l,y){y=y===void 0?!1:y;g.p.call(this);this.mediaElement=R;this.z4=l;this.isView=y;this.D=0;this.Y=!1;this.J=!0;this.B=0;this.callback=null;this.W=!1;this.z4||(this.PE=this.mediaElement.al());this.events=new g.QW(this);g.U(this,this.events);this.L=new se(this.z4?window.URL.createObjectURL(this.z4):this.PE.webkitMediaSourceURL,!0);R=this.z4||this.PE;bJ(this.events,R,["sourceopen","webkitsourceopen"],this.Xh$);bJ(this.events,R,["sourceclose","webkitsourceclose"],this.ZS4);this.V={updateend:this.TJ}}; xFj=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; Ito=function(R,l){Hs(R)?g.FC(function(){l(R)}):R.callback=l}; Np9=function(R,l,y){if(nw){var f;mA(R.mediaElement,{l:"mswssb",sr:(f=R.mediaElement.Xx)==null?void 0:f.Lf()},!1);l.SQ(R.V,R);y.SQ(R.V,R)}R.Z=l;R.X=y;g.U(R,l);g.U(R,y)}; oo=function(R){return!!R.Z||!!R.X}; Hs=function(R){try{return h2(R)==="open"}catch(l){return!1}}; h2=function(R){if(R.z4)return R.z4.readyState;switch(R.PE.webkitSourceState){case R.PE.SOURCE_OPEN:return"open";case R.PE.SOURCE_ENDED:return"ended";default:return"closed"}}; cs=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; pBj=function(R){Hs(R)&&(R.z4?R.z4.endOfStream():R.PE.webkitSourceEndOfStream(R.PE.EOS_NO_ERROR))}; UFZ=function(R,l,y,f){if(!R.Z||!R.X)return null;var A=R.Z.isView()?R.Z.Bl:R.Z,K=R.X.isView()?R.X.Bl:R.X,G=new Bs(R.mediaElement,R.z4,!0);G.L=R.L;Np9(G,new A2(A,l,y,f),new A2(K,l,y,f));Hs(R)||R.Z.IA(R.Z.fA());return G}; S_i=function(R){var l;(l=R.Z)==null||l.S8();var y;(y=R.X)==null||y.S8();R.J=!1}; Ee=function(){var R=this;this.Xs=this.l7=OkJ;this.promise=new g.$v(function(l,y){R.l7=l;R.Xs=y})}; Ws=function(){g.p.call(this);this.Qf=!1;this.x$=null;this.V=this.D=!1;this.Y=new g.sT;this.Xx=null;g.U(this,this.Y)}; Lw=function(R){R=R.vN();return R.length<1?NaN:R.end(R.length-1)}; jN9=function(R){!R.X&&xFj()&&(R.L?R.L.then(function(){return jN9(R)}):R.Yv()||(R.X=R.eK()))}; kGZ=function(R){R.X&&(R.X.dispose(),R.X=void 0)}; mA=function(R,l,y){var f;((f=R.Xx)==null?0:f.PZ())&&R.Xx.T4("rms",l,y===void 0?!1:y)}; DFj=function(R,l,y){R.isPaused()||R.getCurrentTime()>l||y>10||(R.play(),g.h$(function(){DFj(R,R.getCurrentTime(),y+1)},500))}; Zij=function(R,l){R.x$&&R.x$.equals(l)||(R.x$&&R.x$.dispose(),R.x$=l)}; Oe=function(R){return yh(R.Wf(),R.getCurrentTime())}; JeK=function(R,l){if(R.Tc()===0||R.hasError())return!1;var y=R.getCurrentTime()>0;return l>=0&&(R=R.vN(),R.length||!y)?Y5(R,l):y}; iZ=function(R){R.Yv()&&(R.Xx&&R.Xx.m1("rs_s"),Jv&&R.getCurrentTime()>0&&R.seekTo(0),R.gV(),R.load(),Zij(R,null));delete R.L}; Ps=function(R){switch(R.hJ()){case 2:return"progressive.net.retryexhausted";case 3:return R=R.iO(),(R==null?0:R.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||gDj&&(R==null?0:R.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.uZ=function(R,l,y){this.WE=l===void 0?null:l;this.seekSource=y===void 0?null:y;this.state=R||64}; Fp=function(R,l,y){y=y===void 0?!1:y;return VWj(R,l.getCurrentTime(),(0,g.eY)(),Oe(l),y)}; Qh=function(R,l,y,f){if(!(l===R.state&&y===R.WE&&f===R.seekSource||l!==void 0&&(l&128&&!y||l&2&&l&16))){var A;if(A=l)A=l||R.state,A=!!(A&16||A&32);R=new g.uZ(l,y,A?f?f:R.seekSource:null)}return R}; $N=function(R,l,y){return Qh(R,R.state|l,null,y===void 0?null:y)}; eD=function(R,l){return Qh(R,R.state&~l,null,null)}; bZ=function(R,l,y,f){return Qh(R,(R.state|l)&~y,null,f===void 0?null:f)}; g.V=function(R,l){return!!(R.state&l)}; g.Xp=function(R,l){return l.state===R.state&&l.WE===R.WE}; TA=function(R){return R.isPlaying()&&!g.V(R,16)&&!g.V(R,32)}; dT=function(R){return g.V(R,128)?-1:g.V(R,2)?0:g.V(R,2048)?3:g.V(R,64)?-1:g.V(R,1)&&!g.V(R,32)?3:g.V(R,8)?1:g.V(R,4)?2:-1}; vs=function(R,l,y,f,A,K,G,B,H,n,m,h,c,E,W,Q,e){g.p.call(this);var r=this;this.p$=R;this.slot=l;this.layout=y;this.g7=f;this.Y$=A;this.fX=K;this.RE=G;this.aV=B;this.JF=H;this.Az=n;this.position=h;this.D=c;this.aE=E;this.iA=W;this.tJ=Q;this.context=e;this.OY=!0;this.J=!1;this.k$="not_rendering";this.X=!1;this.L=new AO;R=Cm(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.OL=new ct(y.qU,this.g7,R,y.layoutId);var d;R=((d=rT(this))==null?void 0:d.progressCommands)||[];this.Y=new g$s(H, R,y.layoutId,function(){return r.e4()}); this.Z=new FFo({adCpn:this.layout.layoutId,Sa:e.Sa,Pd:this.iA,fJ:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; zA=function(R){return{layoutId:R.Fm(),Ho:R.iA,uO:R.fX.get(),lR:R.Y4()}}; wT=function(R,l){return l.layoutId!==R.layout.layoutId?(R.p$.E9(R.slot,l,new g1("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+R.layout.layoutId+("and LayoutType: "+R.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; xN=function(R){R.k$="rendering_start_requested";R.Az(-1)}; rT=function(R){return Cm(R.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; C1i=function(R){BR("Received layout exit signal when not in layout exit flow.",R.slot,R.layout)}; q_7=function(R){var l;return((l=Io(R.fX.get(),2))==null?void 0:l.clientPlaybackNonce)||""}; NA=function(R,l){switch(l){case "normal":R.AF("complete");break;case "skipped":R.AF("skip");break;case "abandoned":Pt(R.OL,"impression")&&R.AF("abandon")}}; pw=function(R,l){R.J||(l=new g.HR(l.state,new g.uZ),R.J=!0);return l}; Ue=function(R,l){Rz(l)?R.Az(1):g.m2(l,4)&&!g.m2(l,2)&&R.Ce();nR(l,4)<0&&!(nR(l,2)<0)&&R.eN()}; tWY=function(R){R.position===0&&(R.aV.get(),R=Cm(R.layout.clientMetadata,"metadata_type_ad_placement_config").kind,R={adBreakType:SD(R)},ba("ad_bl"),g.Xe(R))}; jD=function(R,l){Oz(R.OL,l,!R.X)}; MWY=function(R){var l;return(((l=rT(R))==null?void 0:l.progressCommands)||[]).findIndex(function(y){return!!g.k(y==null?void 0:y.command,Y_q)})!==-1}; kN=function(R,l){var y=Cm(R.clientMetadata,"metadata_type_eligible_for_ssap");return y===void 0?(BR("Expected SSAP eligibility in PlayerBytes factory",R),!1):l.Y4(y)}; Du=function(R,l){if(!Nc(l.get(),"html5_ssap_pass_transition_reason"))return 3;switch(R){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return BR("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return BR("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:R}),3;default:nG(R,"unknown layoutExitReason")}}; Rsj=function(R){BR("getExitReason: unexpected reason",void 0,void 0,{reason:R})}; Zu=function(R,l){if(Nc(l.get(),"html5_ssap_pass_transition_reason"))switch(R){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return Rsj(R),"abandoned";case 3:case 1:return Rsj(R),"error";default:nG(R,"unexpected transition reason")}else switch(R){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return BR("getExitReason: unexpected reason",void 0,void 0,{reason:R}),"error";default:nG(R,"unexpected transition reason")}}; g.J2=function(R,l,y){dh(R,y)||vo(R,l,y);dh(R,"video_to_ad")||vo(R,l,"video_to_ad");dh(R,"ad_to_video")||vo(R,l,"ad_to_video");dh(R,"ad_to_ad")||vo(R,l,"ad_to_ad")}; gT=function(R,l,y,f,A,K,G,B,H,n,m,h,c,E,W,Q,e,r){vs.call(this,R,l,y,f,A,K,G,B,n,m,h,c,E,W,Q,e,r);var d=this;this.dc=H;this.Z7=h;this.fz=!0;this.Cb=this.TU=0;this.Ly=wX(function(){Oij(zA(d));d.p$.EF(d.slot,d.layout)}); this.Fk=wX(function(){iij(zA(d));d.k$!=="rendering_stop_requested"&&d.Z7(d);d.layoutExitReason?d.p$.Tr(d.slot,d.layout,d.layoutExitReason):C1i(d)}); this.timer=new g.Iu(200);this.timer.listen("tick",function(){d.J1()}); g.U(this,this.timer)}; Cw=function(R){R.Cb=Date.now();Vh(R,R.TU);R.timer.start()}; l7q=function(R){R.TU=R.e4();R.IH(R.TU/1E3,!0);Vh(R,R.TU)}; Vh=function(R,l){l={current:l/1E3,duration:R.e4()/1E3};R.dc.get().oQ("onAdPlaybackProgress",l)}; qA=function(R){gT.call(this,R.p$,R.slot,R.pM,R.g7,R.Y$,R.fX,R.RE,R.aV,R.dc,R.JF,R.Az,R.Z7,R.cO,R.Jy,R.aE,R.iA,R.tJ,R.context)}; t2=function(R){gT.call(this,R.p$,R.slot,R.pM,R.g7,R.Y$,R.fX,R.RE,R.aV,R.dc,R.JF,R.Az,R.Z7,R.cO,R.Jy,R.aE,R.iA,R.tJ,R.context)}; YN=function(){t2.apply(this,arguments)}; y7c=function(R){return kN(R.slot,R.aE.get())?new YN(R):new qA(R)}; lg=function(R){vs.call(this,R.callback,R.slot,R.pM,R.g7,R.Y$,R.fX,R.RE,R.aV,R.JF,R.Az,R.Z7,R.cO,R.Jy,R.aE,R.iA,R.tJ,R.context);var l=this;this.adCpn="";this.Pq=this.JH=0;this.Ly=wX(function(){Oij(zA(l));l.p$.EF(l.slot,l.layout)}); this.Fk=wX(function(){iij(zA(l));l.k$!=="rendering_stop_requested"&&l.Z7(l);l.layoutExitReason?l.p$.Tr(l.slot,l.layout,l.layoutExitReason):C1i(l)}); this.zD=R.zD;this.L_=R.L_;this.Fc=R.Fc;this.dc=R.dc;this.eY=R.eY;this.Z7=R.Z7;if(!this.Y4()){Nc(this.aE.get(),"html5_disable_media_load_timeout")||(this.qb=new g.Vg(function(){l.RZ("load_timeout",new g1("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); R=MA(this.aE.get());var y=RT(this.aE.get());R&&y&&(this.e6=new g.Vg(function(){var f=Cm(l.layout.clientMetadata,"metadata_type_preload_player_vars");f&&l.L_.get().G.preloadVideoByPlayerVars(f,2,300)}))}}; A7j=function(R,l){var y=Cm(l.clientMetadata,"metadata_type_ad_video_id"),f=Cm(l.clientMetadata,"metadata_type_legacy_info_card_vast_extension");y&&f&&R.eY.get().G.U().CX.add(y,{rl:f});(l=Cm(l.clientMetadata,"metadata_type_sodar_extension_data"))&&Kpc(R.zD.get(),l);f7j(R.RE.get(),!1)}; K2J=function(R){f7j(R.RE.get(),!0);var l;((l=R.shrunkenPlayerBytesConfig)==null?0:l.shouldRequestShrunkenPlayerBytes)&&R.RE.get().UO(!1)}; Ge7=function(R){return new yq(R)}; fZ=function(){lg.apply(this,arguments)}; yq=function(){fZ.apply(this,arguments)}; a7k=function(R){return y7c(Object.assign({},R,{p$:R.callback,Az:function(){}}))}; sl7=function(R){return new lg(Object.assign({},R,{Az:function(l){R.dc.get().oQ("onAdIntroStateChange",l)}}))}; Biq=function(R){function l(y){R.dc.get().In(y)} return kN(R.slot,R.aE.get())?Ge7(Object.assign({},R,{Az:l})):new lg(Object.assign({},R,{Az:l}))}; A6=function(R){for(var l=R.pM,y=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],f=g.u(Ez()),A=f.next();!A.done;A=f.next())y.push(A.value);if(pV(l,{i8:y,dQ:["LAYOUT_TYPE_MEDIA_BREAK"]}))return a7k(R);l=R.pM;y=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];f=g.u(Ez());for(A=f.next();!A.done;A=f.next())y.push(A.value);if(pV(l,{i8:y,dQ:["LAYOUT_TYPE_MEDIA"]}))return Dy(R.pM.clientMetadata,"metadata_type_ad_intro")?sl7(R):Biq(R)}; nik=function(R){var l=Cm(R.clientMetadata,"metadata_type_ad_placement_config").kind,y=Cm(R.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:R.layoutId,adType:HRq(y),adBreakType:SD(l)}}; SD=function(R){switch(R){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"}}; HRq=function(R){switch(R){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; mL7=function(R){try{return new KZ(R.du,R.slot,R.layout,R.bj,R.XR,R.fX,R.ZN,R.L_,R.BZ,R.RE,R.yLq,R)}catch(l){}}; KZ=function(R,l,y,f,A,K,G,B,H,n,m,h){g.p.call(this);this.du=R;this.slot=l;this.layout=y;this.bj=f;this.XR=A;this.fX=K;this.ZN=G;this.L_=B;this.BZ=H;this.RE=n;this.params=h;this.OY=!0;R=A6(m);if(!R)throw Error("Invalid params for sublayout");this.zr=R}; oij=function(){this.Z=1;this.X=new AO}; G3=function(R,l,y,f,A,K,G,B,H,n,m,h,c,E){g.p.call(this);this.callback=R;this.fX=l;this.ZN=y;this.L_=f;this.RE=A;this.xr=K;this.aV=G;this.xH=B;this.slot=H;this.layout=n;this.bj=m;this.AR=h;this.BZ=c;this.aE=E;this.OY=!0;this.NO=!1;this.Ep=[];this.Lh=-1;this.HL=!1;this.aS=new oij}; hsY=function(R){var l;return(l=R.layout.uP)!=null?l:Cm(R.layout.clientMetadata,"metadata_type_sub_layouts")}; aT=function(R){return{uO:R.fX.get(),Ho:!1,lR:R.Y4()}}; c7q=function(R,l,y){if(R.DT()===R.Ep.length-1){var f,A;BR("Unexpected skip requested during the last sublayout",(f=R.WA())==null?void 0:f.ze(),(A=R.WA())==null?void 0:A.NU(),{requestingSlot:l,requestingLayout:y})}}; Eii=function(R,l,y){return y.layoutId!==s2(R,l,y)?(BR("onSkipRequested for a PlayerBytes layout that is not currently active",R.ze(),R.NU()),!1):!0}; W2Y=function(R){R.DT()===R.Ep.length-1&&BR("Unexpected skip with target requested during the last sublayout")}; L2Q=function(R,l,y){return y.renderingContent===void 0&&y.layoutId!==s2(R,l,y)?(BR("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",R.ze(),R.NU(),{requestingSlot:l,requestingLayout:y}),!1):!0}; ORJ=function(R,l,y,f){var A=Cm(l.NU().clientMetadata,"metadata_type_ad_pod_skip_target");if(A&&A>0&&A0)){BR("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",R.slot,R.layout,{indexToPlay:l,layoutId:R.layout.layoutId});break a}R.Lh=l;l=R.WA();if(R.DT()>0&&!R.Y4()){var y=R.aV.get();y.X=!1;var f={};y.Z&&y.videoId&&(f.cttAuthInfo={token:y.Z,videoId:y.videoId});TB("ad_to_ad",f)}R.Ix(l)}}; mw=function(R){G3.call(this,R.du,R.fX,R.ZN,R.L_,R.RE,R.xr,R.aV,R.xH,R.slot,R.layout,R.bj,R.AR,R.BZ,R.aE)}; uss=function(R){(R=R.WA())&&R.Vx()}; oT=function(R){G3.call(this,R.du,R.fX,R.ZN,R.L_,R.RE,R.xr,R.aV,R.xH,R.slot,R.layout,R.bj,R.AR,R.BZ,R.aE);this.GD=void 0}; F2i=function(R,l){R.uM()&&!GC(R.aS.X)||R.callback.Tr(R.slot,R.layout,l)}; h6=function(R){return Nc(R.aE.get(),"html5_ssap_pass_transition_reason")}; QlY=function(R,l,y){l.oL().currentState<2&&(y=Zu(y,R.aE),l.kG(l.NU(),y));y=l.oL().Z;R.dB(R.slot,l.NU(),y)}; $Lr=function(R,l){if(R.aS.X.currentState<2){var y=Zu(l,R.aE);y==="error"?R.callback.E9(R.slot,R.layout,new g1("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:l},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):nZ(R.AR,R.layout,y)}}; cf=function(R,l,y){l.oL().currentState>=2||(l.kG(l.NU(),y),GC(l.oL())&&(Ld(R.xH,R.slot,l.NU(),y),R.GD=void 0))}; es9=function(R,l){R.aS.Z===2&&l!==R.J2()&&BR("onClipEntered: unknown cpn",R.slot,R.layout,{cpn:l})}; bRY=function(R,l){var y=R.WA();if(y){var f=y.NU().layoutId,A=R.DT()+1;R.uM()?cf(R,y,l):y.kG(y.NU(),l);A>=0&&AA&&G.C6(m,A-f);return m}; I77=function(R,l,y){var f=Cm(l.clientMetadata,"metadata_type_sodar_extension_data");if(f)try{Kpc(y,f)}catch(A){BR("Unexpected error when loading Sodar",R,l,{error:A})}}; Nis=function(R,l,y,f,A,K,G){ug(R,l,new g.HR(y,new g.uZ),f,A,G,!1,K)}; ug=function(R,l,y,f,A,K,G,B){G=G===void 0?!0:G;Rz(y)&&lz(A,0,null)&&(!Pt(R,"impression")&&B&&B(),R.AF("impression"));Pt(R,"impression")&&(g.m2(y,4)&&!g.m2(y,2)&&R.cE("pause"),nR(y,4)<0&&!(nR(y,2)<0)&&R.cE("resume"),g.m2(y,16)&&A>=.5&&R.cE("seek"),G&&g.m2(y,2)&&FA(R,y.state,l,f,A,K))}; FA=function(R,l,y,f,A,K,G,B){Pt(R,"impression")&&(K?(K=A-f,K=K>=-1&&K<=2):K=Math.abs(f-A)<=1,Qq(R,l,K?f:A,y,f,G,B&&K),K&&R.AF("complete"))}; Qq=function(R,l,y,f,A,K,G){iQ(R,y*1E3,G);A<=0||y<=0||(l==null?0:g.V(l,16))||(l==null?0:g.V(l,32))||(lz(y,A*.25,f)&&(K&&!Pt(R,"first_quartile")&&K("first"),R.AF("first_quartile")),lz(y,A*.5,f)&&(K&&!Pt(R,"midpoint")&&K("second"),R.AF("midpoint")),lz(y,A*.75,f)&&(K&&!Pt(R,"third_quartile")&&K("third"),R.AF("third_quartile")))}; pRk=function(R,l){Pt(R,"impression")&&R.cE(l?"fullscreen":"end_fullscreen")}; UL7=function(R){Pt(R,"impression")&&R.cE("clickthrough")}; SXY=function(R){R.cE("active_view_measurable")}; jlk=function(R){Pt(R,"impression")&&!Pt(R,"seek")&&R.cE("active_view_fully_viewable_audible_half_duration")}; kej=function(R){Pt(R,"impression")&&!Pt(R,"seek")&&R.cE("active_view_viewable")}; DLT=function(R){Pt(R,"impression")&&!Pt(R,"seek")&&R.cE("audio_audible")}; ZRj=function(R){Pt(R,"impression")&&!Pt(R,"seek")&&R.cE("audio_measurable")}; J7o=function(R,l,y,f,A,K,G,B,H,n,m,h){this.callback=R;this.slot=l;this.layout=y;this.ZN=f;this.OL=A;this.RE=K;this.ST=G;this.Y$=B;this.zD=H;this.aE=n;this.g7=m;this.fX=h;this.fz=!0;this.A1=this.k$=null;this.adCpn=void 0;this.Z=!1}; gik=function(R,l,y){var f;Pf(R.g7.get(),"ads_qua","cpn."+Cm(R.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((f=Io(R.fX.get(),2))==null?void 0:f.clientPlaybackNonce)+";qt."+l+";clr."+y)}; VE7=function(R,l){var y,f;Pf(R.g7.get(),"ads_imp","cpn."+Cm(R.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((y=Io(R.fX.get(),2))==null?void 0:y.clientPlaybackNonce)+";clr."+l+";skp."+!!g.k((f=Cm(R.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:f.skipOrPreviewRenderer,$P))}; eG=function(R){return{enterMs:Cm(R.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:Cm(R.clientMetadata,"metadata_type_layout_exit_ms")}}; bg=function(R,l,y,f,A,K,G,B,H,n,m,h,c,E){Wf.call(this,R,l,y,f,A,G,B,H,n,h);this.ST=K;this.zD=m;this.Y$=c;this.aE=E;this.A1=this.k$=null}; Ct9=function(R,l){var y;Pf(R.g7.get(),"ads_imp","acpn."+((y=Io(R.fX.get(),2))==null?void 0:y.clientPlaybackNonce)+";clr."+l)}; qXs=function(R,l,y){var f;Pf(R.g7.get(),"ads_qua","cpn."+Cm(R.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((f=Io(R.fX.get(),2))==null?void 0:f.clientPlaybackNonce)+";qt."+l+";clr."+y)}; XA=function(R,l,y,f,A,K,G,B,H,n,m,h,c,E,W,Q,e,r,d,z,N,D){this.BZ=R;this.bj=l;this.AR=y;this.fX=f;this.ZN=A;this.RE=K;this.xr=G;this.g7=B;this.ST=H;this.j_=n;this.Y$=m;this.zD=h;this.L_=c;this.Fc=E;this.aV=W;this.dc=Q;this.JF=e;this.eY=r;this.aE=d;this.Z=z;this.context=N;this.tJ=D}; T3=function(R,l,y,f,A,K,G,B,H,n,m,h,c,E,W,Q,e,r,d){this.BZ=R;this.bj=l;this.AR=y;this.g7=f;this.Y$=A;this.zD=K;this.L_=G;this.fX=B;this.RE=H;this.xr=n;this.Fc=m;this.aV=h;this.dc=c;this.JF=E;this.eY=W;this.aE=Q;this.ZN=e;this.context=r;this.tJ=d}; tEj=function(R,l,y,f){fi.call(this,"survey-interstitial",R,l,y,f)}; d5=function(R,l,y,f,A){ai.call(this,y,R,l,f);this.g7=A;R=Cm(l.clientMetadata,"metadata_type_ad_placement_config");this.OL=new ct(l.qU,A,R,l.layoutId)}; r5=function(R){return Math.round(R.width)+"x"+Math.round(R.height)}; z3=function(R,l,y){y=y===void 0?vf:y;y.widthR.width*R.height*.2)return{u$:3,n6:501,errorMessage:"ad("+r5(y)+") to container("+r5(R)+") ratio exceeds limit."};if(y.height>R.height/3-l)return{u$:3,n6:501,errorMessage:"ad("+r5(y)+") covers container("+r5(R)+") center."}}; YXQ=function(R,l){var y=Cm(R.clientMetadata,"metadata_type_ad_placement_config");return new ct(R.qU,l,y,R.layoutId)}; w5=function(R){return Cm(R.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; xP=function(R,l,y,f){fi.call(this,"invideo-overlay",R,l,y,f);this.interactionLoggingClientData=f}; IT=function(R,l,y,f,A,K,G,B,H,n,m,h){ai.call(this,K,R,l,A);this.g7=y;this.Y=G;this.RE=B;this.JF=H;this.aE=n;this.D=m;this.J=h;this.OL=YXQ(l,y)}; MEY=function(){var R=["metadata_type_invideo_overlay_ad_renderer"];Ez().forEach(function(l){R.push(l)}); return{i8:R,dQ:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; NB=function(R,l,y,f,A,K,G,B,H,n,m,h,c){ai.call(this,K,R,l,A);this.g7=y;this.Y=G;this.W=B;this.RE=H;this.JF=n;this.aE=m;this.D=h;this.J=c;this.OL=YXQ(l,y)}; RiJ=function(){for(var R=["metadata_type_invideo_overlay_ad_renderer"],l=g.u(Ez()),y=l.next();!y.done;y=l.next())R.push(y.value);return{i8:R,dQ:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; pZ=function(R){this.RE=R;this.Z=!1}; l37=function(R,l,y){fi.call(this,"survey",R,{},l,y)}; U2=function(R,l,y,f,A,K,G){ai.call(this,y,R,l,f);this.Y=A;this.RE=K;this.aE=G}; yVk=function(R,l,y,f,A,K,G,B,H,n){this.mj=R;this.RE=l;this.g7=y;this.Y=f;this.Y$=A;this.X=K;this.L=G;this.JF=B;this.aE=H;this.Z=n}; f3Y=function(R,l,y,f,A,K,G,B,H,n){this.mj=R;this.RE=l;this.g7=y;this.Y=f;this.Y$=A;this.X=K;this.L=G;this.JF=B;this.aE=H;this.Z=n}; SG=function(R,l,y,f,A,K,G,B,H,n){Zs.call(this,R,l,y,f,A,K,G,H);this.aL=B;this.fX=n}; AVT=function(){var R=HiY();R.i8.push("metadata_type_ad_info_ad_metadata");return R}; Kd7=function(R,l,y,f,A,K,G){this.mj=R;this.RE=l;this.g7=y;this.X=f;this.aL=A;this.Z=K;this.fX=G}; GBT=function(R,l,y,f,A,K,G,B){this.mj=R;this.RE=l;this.g7=y;this.X=f;this.aL=A;this.Z=K;this.aE=G;this.fX=B}; jG=function(R,l){this.slotId=l;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=R(this.triggerType)}; kP=function(R,l){this.adPodIndex=R;this.Z=l.length;this.adBreakLengthSeconds=l.reduce(function(f,A){return f+A},0); var y=0;for(R+=1;R0}; $q=function(R){return!!(R.s_&&R.slot&&R.layout)}; e3=function(R){var l,y=(l=R.config)==null?void 0:l.adPlacementConfig;R=R.renderer;return!(!y||y.kind==null||!R)}; Paj=function(R){if(!LW(R.adLayoutMetadata))return!1;R=R.renderingContent;return g.k(R,tP)||g.k(R,YX)||g.k(R,iJr)||g.k(R,CV)||g.k(R,q$)?!0:!1}; bk=function(R){return R.playerVars!==void 0&&R.pings!==void 0&&R.externalVideoId!==void 0}; j3=function(R){if(!LW(R.adLayoutMetadata))return!1;R=R.renderingContent;var l=g.k(R,xq);return l?IS(l):(l=g.k(R,NY))?bk(l):(l=g.k(R,pW))?l.playerVars!==void 0:(l=g.k(R,tP))?l.durationMilliseconds!==void 0:g.k(R,U4)||g.k(R,S3)?!0:!1}; IS=function(R){R=(R.sequentialLayouts||[]).map(function(l){return g.k(l,kq)}); return R.length>0&&R.every(j3)}; ZR=function(R){return LW(R.adLayoutMetadata)?(R=g.k(R.renderingContent,DR))&&R.pings?!0:!1:!1}; bJ9=function(R){if(!LW(R.adLayoutMetadata))return!1;if(g.k(R.renderingContent,uer)||g.k(R.renderingContent,Fdi))return!0;var l=g.k(R.renderingContent,JG);return g.k(R.renderingContent,gb)||g.k(l==null?void 0:l.sidePanel,QhY)||g.k(l==null?void 0:l.sidePanel,$WK)||g.k(l==null?void 0:l.sidePanel,eik)?!0:!1}; vrs=function(R){var l;(l=!R)||(l=R.adSlotMetadata,l=!((l==null?void 0:l.slotId)!==void 0&&(l==null?void 0:l.slotType)!==void 0));if(l||!(XoT(R)||R.slotEntryTrigger&&R.slotFulfillmentTriggers&&R.slotExpirationTriggers))return!1;var y;R=(y=R.fulfillmentContent)==null?void 0:y.fulfilledLayout;return(y=g.k(R,kq))?j3(y):(y=g.k(R,VI))?bJ9(y):(y=g.k(R,Thc))?Paj(y):(y=g.k(R,dWQ))?Ldj(y):(y=g.k(R,rVY))?LW(y.adLayoutMetadata)?g.k(y.renderingContent,O4)?!0:!1:!1:(R=g.k(R,CW))?ZR(R):!1}; XoT=function(R){var l;R=g.k((l=R.fulfillmentContent)==null?void 0:l.fulfilledLayout,VI);var y;return R&&((y=R.adLayoutMetadata)==null?void 0:y.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&R.layoutExitNormalTriggers===void 0}; zir=function(R){var l;return(R==null?void 0:(l=R.adSlotMetadata)==null?void 0:l.slotType)==="SLOT_TYPE_IN_PLAYER"}; xWo=function(R,l){var y;if((y=R.questions)==null||!y.length||!R.playbackCommands||(l===void 0||!l)&&R.questions.length!==1)return!1;R=g.u(R.questions);for(l=R.next();!l.done;l=R.next()){l=l.value;var f=y=void 0,A=((y=g.k(l,qY))==null?void 0:y.surveyAdQuestionCommon)||((f=g.k(l,tG))==null?void 0:f.surveyAdQuestionCommon);if(!woq(A))return!1}return!0}; I3q=function(R){R=((R==null?void 0:R.playerOverlay)||{}).instreamSurveyAdRenderer;var l;if(R)if(R.playbackCommands&&R.questions&&R.questions.length===1){var y,f=((l=g.k(R.questions[0],qY))==null?void 0:l.surveyAdQuestionCommon)||((y=g.k(R.questions[0],tG))==null?void 0:y.surveyAdQuestionCommon);l=woq(f)}else l=!1;else l=!1;return l}; woq=function(R){if(!R)return!1;R=g.k(R.instreamAdPlayerOverlay,Yq);var l=g.k(R==null?void 0:R.skipOrPreviewRenderer,$P),y=g.k(R==null?void 0:R.adInfoRenderer,MY);return(g.k(R==null?void 0:R.skipOrPreviewRenderer,RU)||l)&&y?!0:!1}; NhK=function(R){return R.linearAds!=null&&LW(R.adLayoutMetadata)}; poo=function(R){return R.linearAd!=null&&R.adVideoStart!=null}; UWZ=function(R){if(isNaN(Number(R.timeoutSeconds))||!R.text||!R.ctaButton||!g.k(R.ctaButton,g.lD)||!R.brandImage)return!1;var l;return R.backgroundImage&&g.k(R.backgroundImage,yk)&&((l=g.k(R.backgroundImage,yk))==null?0:l.landscape)?!0:!1}; fs=function(R,l,y,f,A,K,G,B){g.p.call(this);this.aE=R;this.Z=l;this.X=f;this.fX=A;this.Y=K;this.L=G;this.L_=B}; kBZ=function(R,l,y){var f,A=((f=y.adSlots)!=null?f:[]).map(function(B){return g.k(B,A9)}); if(y.jD)if(Cm(l.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))fV(R.Z.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},l.slotId); else{if(R.aE.get().G.U().C("h5_check_forecasting_renderer_for_throttled_midroll")){var K=y.EH.filter(function(B){var H;return((H=B.renderer)==null?void 0:H.clientForecastingAdRenderer)!=null}); K.length!==0?Sn9(R.L,K,A,l.slotId,y.ssdaiAdsConfig):fV(R.Z.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},l.slotId)}else fV(R.Z.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},l.slotId); jhQ(R.Y,l)}else{var G;f={J9:Math.round(((K=Cm(l.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:K.J9)||0),Dx:(G=Cm(l.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:G.Dx};Sn9(R.L,y.EH,A,l.slotId,y.ssdaiAdsConfig,f)}}; JVY=function(R,l,y,f,A,K,G){var B=Io(R.fX.get(),1);if(DWT(R.aE.get())){var H=Ks(R.X.get(),y,f,A,B.clientPlaybackNonce,B.uH,B.daiEnabled,B,K,G);ZJo(R,H);fV(R.Z.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return H},l)}else fV(R.Z.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Ks(R.X.get(),y,f,A,B.clientPlaybackNonce,B.uH,B.daiEnabled,B,K,G)},l)}; ZJo=function(R,l){l=g.u(l);for(var y=l.next();!y.done;y=l.next()){var f=y.value;if(f.slotType==="SLOT_TYPE_PLAYER_BYTES"&&f.fulfilledLayout)if(y=void 0,f.fulfilledLayout.renderingContent)y=Cm(f.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(f.fulfilledLayout.uP){f=g.u(f.fulfilledLayout.uP);for(var A=f.next();!A.done&&(A=A.value,!A.renderingContent||!(y=Cm(A.clientMetadata,"metadata_type_player_vars")));A=f.next());}}else y=void 0;if(y){R.L_.get().G.preloadVideoByPlayerVars(y, 2,300);break}}}; VeY=function(R,l,y,f,A,K,G){l=grr(l,K,Number(f.prefetchMilliseconds)||0,G);R=l instanceof q?l:G0(R,f,A,l,y);return R instanceof q?R:[R]}; CaJ=function(R,l,y,f,A){var K=AP(R.X.get(),"SLOT_TYPE_AD_BREAK_REQUEST");f=[new $y({getAdBreakUrl:f.getAdBreakUrl,J9:0,Dx:0}),new SK(!0)];R=l.pauseDurationMs?l.lactThresholdMs?{slotId:K,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new oS(R.Z,K),slotFulfillmentTriggers:[new shi(R.Z)],slotExpirationTriggers:[new Gc(R.Z,A),new Hp(R.Z,K)],AU:"core",clientMetadata:new Vd(f),adSlotLoggingData:y}:new q("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new q("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return R instanceof q?R:[R]}; qnc=function(R){var l,y;return((l=R.renderer)==null?void 0:(y=l.adBreakServiceRenderer)==null?void 0:y.getAdBreakUrl)!==void 0}; aU=function(R,l,y){if(R.beforeContentVideoIdStartedTrigger)R=R.beforeContentVideoIdStartedTrigger?new D5(Jh,l,R.id):new q("Not able to create BeforeContentVideoIdStartedTrigger");else{if(R.layoutIdExitedTrigger){var f;l=(f=R.layoutIdExitedTrigger)!=null&&f.triggeringLayoutId?new qB(Jh,R.layoutIdExitedTrigger.triggeringLayoutId,R.id):new q("Not able to create LayoutIdExitedTrigger")}else{if(R.layoutExitedForReasonTrigger){var A,K;((A=R.layoutExitedForReasonTrigger)==null?0:A.triggeringLayoutId)&&((K= R.layoutExitedForReasonTrigger)==null?0:K.layoutExitReason)?(l=BhZ(R.layoutExitedForReasonTrigger.layoutExitReason),R=l instanceof q?l:new CZ(Jh,R.layoutExitedForReasonTrigger.triggeringLayoutId,[l],R.id)):R=new q("Not able to create LayoutIdExitedForReasonTrigger")}else{if(R.onLayoutSelfExitRequestedTrigger){var G;l=(G=R.onLayoutSelfExitRequestedTrigger)!=null&&G.triggeringLayoutId?new KW(Jh,R.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,R.id):new q("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(R.onNewPlaybackAfterContentVideoIdTrigger)R= R.onNewPlaybackAfterContentVideoIdTrigger?new Gc(Jh,l,R.id):new q("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(R.skipRequestedTrigger){var B;l=(B=R.skipRequestedTrigger)!=null&&B.triggeringLayoutId?new s4(Jh,R.skipRequestedTrigger.triggeringLayoutId,R.id):new q("Not able to create SkipRequestedTrigger")}else if(R.slotIdEnteredTrigger){var H;l=(H=R.slotIdEnteredTrigger)!=null&&H.triggeringSlotId?new Bp(Jh,R.slotIdEnteredTrigger.triggeringSlotId,R.id):new q("Not able to create SlotIdEnteredTrigger")}else if(R.slotIdExitedTrigger){var n; l=(n=R.slotIdExitedTrigger)!=null&&n.triggeringSlotId?new Hp(Jh,R.slotIdExitedTrigger.triggeringSlotId,R.id):new q("Not able to create SkipRequestedTrigger")}else if(R.surveySubmittedTrigger){var m;l=(m=R.surveySubmittedTrigger)!=null&&m.triggeringLayoutId?new cp(Jh,R.surveySubmittedTrigger.triggeringLayoutId,R.id):new q("Not able to create SurveySubmittedTrigger")}else{if(R.mediaResumedTrigger)R=R.mediaResumedTrigger&&R.id?new HJi(R.id):new q("Not able to create MediaResumedTrigger");else{if(R.closeRequestedTrigger){var h; l=(h=R.closeRequestedTrigger)!=null&&h.triggeringLayoutId?new Z5(Jh,R.closeRequestedTrigger.triggeringLayoutId,R.id):new q("Not able to create CloseRequestedTrigger")}else if(R.slotIdScheduledTrigger){var c;l=(c=R.slotIdScheduledTrigger)!=null&&c.triggeringSlotId?new oS(Jh,R.slotIdScheduledTrigger.triggeringSlotId,R.id):new q("Not able to create SlotIdScheduledTrigger")}else{if(R.mediaTimeRangeTrigger){var E;f=Number((E=R.mediaTimeRangeTrigger)==null?void 0:E.offsetStartMilliseconds);var W;G=Number((W= R.mediaTimeRangeTrigger)==null?void 0:W.offsetEndMilliseconds);isFinite(f)&&isFinite(G)?(W=G,W===-1&&(W=y),y=f>W?new q("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:f,offsetEndMs:W},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",W===y&&f-500<=W):new u0(f,W),R=y instanceof q?y:new lk(Jh,l,y,!1,R.id)):R=new q("Not able to create MediaTimeRangeTrigger")}else if(R.contentVideoIdEndedTrigger)R=R.contentVideoIdEndedTrigger?new J6(Jh,l,!1,R.id):new q("Not able to create ContentVideoIdEndedTrigger"); else{if(R.layoutIdEnteredTrigger){var Q;l=(Q=R.layoutIdEnteredTrigger)!=null&&Q.triggeringLayoutId?new Vq(Jh,R.layoutIdEnteredTrigger.triggeringLayoutId,R.id):new q("Not able to create LayoutIdEnteredTrigger")}else if(R.timeRelativeToLayoutEnterTrigger){var e;l=(e=R.timeRelativeToLayoutEnterTrigger)!=null&&e.triggeringLayoutId?new E4(Jh,Number(R.timeRelativeToLayoutEnterTrigger.durationMs),R.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,R.id):new q("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(R.onDifferentLayoutIdEnteredTrigger){var r; l=(r=R.onDifferentLayoutIdEnteredTrigger)!=null&&r.triggeringLayoutId&&R.onDifferentLayoutIdEnteredTrigger.slotType&&R.onDifferentLayoutIdEnteredTrigger.layoutType?new fW(Jh,R.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,R.onDifferentLayoutIdEnteredTrigger.slotType,R.onDifferentLayoutIdEnteredTrigger.layoutType,R.id):new q("Not able to create CloseRequestedTrigger")}else{if(R.liveStreamBreakStartedTrigger)R=R.liveStreamBreakStartedTrigger&&R.id?new RS(Jh,R.id):new q("Not able to create LiveStreamBreakStartedTrigger"); else if(R.liveStreamBreakEndedTrigger)R=R.liveStreamBreakEndedTrigger&&R.id?new t6(Jh,R.id):new q("Not able to create LiveStreamBreakEndedTrigger");else{if(R.liveStreamBreakScheduledDurationMatchedTrigger){var d;l=(d=R.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&d.breakDurationMs?new YP(Number(R.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,R.id):new q("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(R.liveStreamBreakScheduledDurationNotMatchedTrigger){var z; l=(z=R.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&z.breakDurationMs?new MB(Number(R.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,R.id):new q("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(R.newSlotScheduledWithBreakDurationTrigger){var N;l=(N=R.newSlotScheduledWithBreakDurationTrigger)!=null&&N.breakDurationMs?new yI(Number(R.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,R.id):new q("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else l= R.prefetchCacheExpiredTrigger?new aS(Jh,R.id):new q("Not able to convert an AdsControlflowTrigger.");R=l}l=R}R=l}l=R}R=l}l=R}R=l}l=R}R=l}l=R}R=l}return R}; sa=function(R,l){l.Z>=2&&(R.slot_pos=l.adPodIndex);R.autoplay="1"}; YnQ=function(R,l,y,f,A,K,G,B){return l===null?new q("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:l,ActionCompanionAdRenderer:f}):[tei(R,l,G,K,function(H){var n=H.slotId;H=B(H);var m=f.adLayoutLoggingData,h=new Vd([new b5(f),new Uq(A)]);n=pd(y.X.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var c={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",AU:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",qU:new Map, layoutExitNormalTriggers:[new Gc(y.Z,G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pl:[],AU:"core",clientMetadata:h,e1:H(c),adLayoutLoggingData:m}})]}; MeJ=function(R,l,y,f,A,K,G,B){return l===null?new q("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:l,TopBannerImageTextIconButtonedLayoutViewModel:f}):[tei(R,l,G,K,function(H){var n=H.slotId;H=B(H);var m=f.adLayoutLoggingData,h=new Vd([new X8(f),new Uq(A)]);n=pd(y.X.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var c={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",AU:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", qU:new Map,layoutExitNormalTriggers:[new Gc(y.Z,G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pl:[],AU:"core",clientMetadata:h,e1:H(c),adLayoutLoggingData:m}})]}; fEs=function(R,l,y,f,A,K){if(!K)for(l=g.u(l),K=l.next();!K.done;K=l.next())K=K.value,Bu(R,K.renderer,K.config.adPlacementConfig.kind);R=Array.from(R.values()).filter(function(m){return RMT(m)}); l=[];K=g.u(R);for(var G=K.next(),B={};!G.done;B={qF:void 0},G=K.next()){B.qF=G.value;G=g.u(B.qF.uC);for(var H=G.next(),n={};!H.done;n={x8:void 0},H=G.next())n.x8=H.value,H=function(m,h){return function(c){return m.x8.E$(c,h.qF.instreamVideoAdRenderer.elementId,m.x8.cG)}}(n,B),n.x8.isContentVideoCompanion?l.push(lET(y,f,A,B.qF.instreamVideoAdRenderer.elementId,n.x8.associatedCompositePlayerBytesLayoutId,n.x8.adSlotLoggingData,H)):R.length>1?l.push(yxZ(y,f,A,B.qF.instreamVideoAdRenderer.elementId,n.x8.adSlotLoggingData, function(m,h){return function(c){return m.x8.E$(c,h.qF.instreamVideoAdRenderer.elementId,m.x8.cG,m.x8.associatedCompositePlayerBytesLayoutId)}}(n,B))):l.push(yxZ(y,f,A,B.qF.instreamVideoAdRenderer.elementId,n.x8.adSlotLoggingData,H))}return l}; Bu=function(R,l,y){if(l=AxJ(l)){l=g.u(l);for(var f=l.next();!f.done;f=l.next())if((f=f.value)&&f.externalVideoId){var A=Hu(R,f.externalVideoId);A.instreamVideoAdRenderer||(A.instreamVideoAdRenderer=f,A.hm=y)}else BR("InstreamVideoAdRenderer without externalVideoId")}}; AxJ=function(R){var l=[],y=R.sandwichedLinearAdRenderer&&R.sandwichedLinearAdRenderer.linearAd&&g.k(R.sandwichedLinearAdRenderer.linearAd,NY);if(y)return l.push(y),l;if(R.instreamVideoAdRenderer)return l.push(R.instreamVideoAdRenderer),l;if(R.linearAdSequenceRenderer&&R.linearAdSequenceRenderer.linearAds){R=g.u(R.linearAdSequenceRenderer.linearAds);for(y=R.next();!y.done;y=R.next())y=y.value,g.k(y,NY)&&l.push(g.k(y,NY));return l}return null}; RMT=function(R){if(R.instreamVideoAdRenderer===void 0)return BR("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var l=g.u(R.uC),y=l.next();!y.done;y=l.next()){y=y.value;if(y.E$===void 0)return!1;if(y.cG===void 0)return BR("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(R.hm===void 0||y.Px===void 0||R.hm!==y.Px&&y.Px!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(R.instreamVideoAdRenderer.elementId===void 0)return BR("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:R.hm,"matching APSR kind":y.Px}),!1}return!0}; Hu=function(R,l){R.has(l)||R.set(l,{instreamVideoAdRenderer:void 0,hm:void 0,adVideoId:l,uC:[]});return R.get(l)}; ns=function(R,l,y,f,A,K,G,B,H){A?Hu(R,A).uC.push({JI4:l,Px:y,isContentVideoCompanion:f,cG:G,associatedCompositePlayerBytesLayoutId:K,adSlotLoggingData:B,E$:H}):BR("Companion AdPlacementSupportedRenderer without adVideoId")}; mY=function(R){var l=0;R=g.u(R.questions);for(var y=R.next();!y.done;y=R.next())if(y=y.value,y=g.k(y,qY)||g.k(y,tG)){var f=void 0;l+=((f=y.surveyAdQuestionCommon)==null?void 0:f.durationMilliseconds)||0}return l}; oU=function(R){var l,y,f,A,K=((y=g.k((l=R.questions)==null?void 0:l[0],qY))==null?void 0:y.surveyAdQuestionCommon)||((A=g.k((f=R.questions)==null?void 0:f[0],tG))==null?void 0:A.surveyAdQuestionCommon),G;l=[].concat(g.ci(((G=R.playbackCommands)==null?void 0:G.instreamAdCompleteCommands)||[]),g.ci((K==null?void 0:K.timeoutCommands)||[]));var B,H,n,m,h,c,E,W,Q,e,r,d,z,N,D,t,C,Ac,Bi,ar;return{impressionCommands:(B=R.playbackCommands)==null?void 0:B.impressionCommands,errorCommands:(H=R.playbackCommands)== null?void 0:H.errorCommands,muteCommands:(n=R.playbackCommands)==null?void 0:n.muteCommands,unmuteCommands:(m=R.playbackCommands)==null?void 0:m.unmuteCommands,pauseCommands:(h=R.playbackCommands)==null?void 0:h.pauseCommands,rewindCommands:(c=R.playbackCommands)==null?void 0:c.rewindCommands,resumeCommands:(E=R.playbackCommands)==null?void 0:E.resumeCommands,skipCommands:(W=R.playbackCommands)==null?void 0:W.skipCommands,progressCommands:(Q=R.playbackCommands)==null?void 0:Q.progressCommands,oH1:(e= R.playbackCommands)==null?void 0:e.clickthroughCommands,fullscreenCommands:(r=R.playbackCommands)==null?void 0:r.fullscreenCommands,activeViewViewableCommands:(d=R.playbackCommands)==null?void 0:d.activeViewViewableCommands,activeViewMeasurableCommands:(z=R.playbackCommands)==null?void 0:z.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(N=R.playbackCommands)==null?void 0:N.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(D=R.playbackCommands)== null?void 0:(t=D.activeViewTracking)==null?void 0:t.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(C=R.playbackCommands)==null?void 0:(Ac=C.activeViewTracking)==null?void 0:Ac.activeViewAudioMeasurableCommands,endFullscreenCommands:(Bi=R.playbackCommands)==null?void 0:Bi.endFullscreenCommands,abandonCommands:(ar=R.playbackCommands)==null?void 0:ar.abandonCommands,completeCommands:l}}; GJo=function(R,l,y,f,A,K,G){return function(B,H){return K0q(R,H.slotId,B,K,function(n,m){var h=H.layoutId;n=G(n);return h9(l,h,m,A,n,"LAYOUT_TYPE_SURVEY",[new yd(y),f],y.adLayoutLoggingData)})}}; B8o=function(R,l,y,f,A,K,G){if(!aEY(R))return new q("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:R});var B=R.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[s3k(K,l,y,f,function(H){var n=H.slotId;H=G(H);n=pd(A.X.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",n);var m={layoutId:n,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",AU:"core"},h=new qB(A.Z,f);return{layoutId:n,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",qU:new Map,layoutExitNormalTriggers:[h], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pl:[],AU:"core",clientMetadata:new Vd([new fm(B)]),e1:H(m)}})]}; aEY=function(R){R=g.k(R==null?void 0:R.additionalPlayerOverlay,Hnq);if(!R)return!1;var l=R.slidingMessages;return R.title&&l&&l.length!==0?!0:!1}; mUY=function(R,l,y,f,A){var K;if((K=R.playerOverlay)==null||!K.instreamSurveyAdRenderer)return function(){return[]}; if(!I3q(R))return function(){return new q("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:R})}; var G=R.playerOverlay.instreamSurveyAdRenderer,B=mY(G);return B<=0?function(){return new q("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:G})}:function(H,n){var m=nfj(H,y,f,function(h){var c=h.slotId; h=n(h);var E=oU(G);c=pd(A.X.get(),"LAYOUT_TYPE_SURVEY",c);var W={layoutId:c,layoutType:"LAYOUT_TYPE_SURVEY",AU:"core"},Q=new qB(A.Z,f),e=new s4(A.Z,c),r=new cp(A.Z,c),d=new hiq(A.Z);return{layoutId:c,layoutType:"LAYOUT_TYPE_SURVEY",qU:new Map,layoutExitNormalTriggers:[Q,d],layoutExitSkipTriggers:[e],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[r],Pl:[],AU:"core",clientMetadata:new Vd([new lb(G),new Uq(l),new XX(B/1E3),new ve(E)]),e1:h(W),adLayoutLoggingData:G.adLayoutLoggingData}}); H=B8o(R,y,m.slotId,f,A,H,n);return H instanceof q?H:[m].concat(g.ci(H))}}; Onk=function(R,l,y,f,A,K,G){G=G===void 0?!1:G;var B=[];try{var H=[];if(y.renderer.linearAdSequenceRenderer)var n=function(Q){Q=ofs(Q.slotId,y,l,A(Q),f,K,G);H=Q.JLL;return Q.KB}; else if(y.renderer.instreamVideoAdRenderer)n=function(Q){var e=Q.slotId;Q=A(Q);var r=G,d=y.config.adPlacementConfig,z=hMo(d),N=z.VM,D=z.AG;z=y.renderer.instreamVideoAdRenderer;var t;if(z==null?0:(t=z.playerOverlay)==null?0:t.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var C=cu(z,r);t=Math.min(N+C.videoLengthSeconds*1E3,D);r=new kP(0,[C.videoLengthSeconds]);D=C.videoLengthSeconds;var Ac=C.playerVars,Bi=C.instreamAdPlayerOverlayRenderer,ar=C.playerOverlayLayoutRenderer, nk=C.adVideoId,Y=cxQ(y),Pi=C.qU;C=C.wu;var wq=z==null?void 0:z.adLayoutLoggingData;z=z==null?void 0:z.sodarExtensionData;e=pd(l.X.get(),"LAYOUT_TYPE_MEDIA",e);var Rt={layoutId:e,layoutType:"LAYOUT_TYPE_MEDIA",AU:"core"};return{layoutId:e,layoutType:"LAYOUT_TYPE_MEDIA",qU:Pi,layoutExitNormalTriggers:[new t6(l.Z)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pl:[],AU:"core",clientMetadata:new Vd([new JJ(f),new oW(D),new hh(Ac),new We(N),new Lm(t),Bi&&new gE(Bi), ar&&new Vo(ar),new Uq(d),new Zz(nk),new S6(r),new FX(Y),z&&new EB(z),new Be({current:null}),new ib({}),new IW(C)].filter(EfY)),e1:Q(Rt),adLayoutLoggingData:wq}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var m=W0K(R,f,y.adSlotLoggingData,n);B.push(m);for(var h=g.u(H),c=h.next();!c.done;c=h.next()){var E=c.value,W=E(R,A);if(W instanceof q)return W;B.push.apply(B,g.ci(W))}}catch(Q){return new q(Q,{errorMessage:Q.message,AdPlacementRenderer:y,numberOfSurveyRenderers:L0c(y)})}return B}; L0c=function(R){R=(R.renderer.linearAdSequenceRenderer||{}).linearAds;return R!=null&&R.length?R.filter(function(l){var y,f;return((y=g.k(l,NY))==null?void 0:(f=y.playerOverlay)==null?void 0:f.instreamSurveyAdRenderer)!=null}).length:0}; ofs=function(R,l,y,f,A,K,G){var B=l.config.adPlacementConfig,H=hMo(B),n=H.VM,m=H.AG;H=(l.renderer.linearAdSequenceRenderer||{}).linearAds;if(H==null||!H.length)throw new TypeError("Expected linear ads");var h=[],c={Ye:n,cO:0,bM7:h};H=H.map(function(W){return inY(R,W,c,y,f,B,A,m,G)}).map(function(W,Q){Q=new kP(Q,h); return W(Q)}); var E=H.map(function(W){return W.Ew}); return{KB:PEk(y,R,n,E,B,cxQ(l),f,m,K),JLL:H.map(function(W){return W.DW4})}}; inY=function(R,l,y,f,A,K,G,B,H){var n=cu(g.k(l,NY),H),m=y.Ye,h=y.cO,c=Math.min(m+n.videoLengthSeconds*1E3,B);y.Ye=c;y.cO++;y.bM7.push(n.videoLengthSeconds);var E,W,Q=(E=g.k(l,NY))==null?void 0:(W=E.playerOverlay)==null?void 0:W.instreamSurveyAdRenderer;if(n.adVideoId==="nPpU29QrbiU"&&Q==null)throw new TypeError("Survey slate media has no survey overlay");return function(e){sa(n.playerVars,e);var r,d,z=n.videoLengthSeconds,N=n.playerVars,D=n.qU,t=n.wu,C=n.instreamAdPlayerOverlayRenderer,Ac=n.playerOverlayLayoutRenderer, Bi=n.adVideoId,ar=(r=g.k(l,NY))==null?void 0:r.adLayoutLoggingData;r=(d=g.k(l,NY))==null?void 0:d.sodarExtensionData;d=pd(f.X.get(),"LAYOUT_TYPE_MEDIA",R);var nk={layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA",AU:"adapter"};e={layoutId:d,layoutType:"LAYOUT_TYPE_MEDIA",qU:D,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pl:[],AU:"adapter",clientMetadata:new Vd([new JJ(G),new oW(z),new hh(N),new We(m),new Lm(c),new OB(h),new Be({current:null}), C&&new gE(C),Ac&&new Vo(Ac),new Uq(K),new Zz(Bi),new S6(e),r&&new EB(r),Q&&new w1(Q),new ib({}),new IW(t)].filter(EfY)),e1:A(nk),adLayoutLoggingData:ar};z=mUY(g.k(l,NY),K,G,e.layoutId,f);return{Ew:e,DW4:z}}}; cu=function(R,l){if(!R)throw new TypeError("Expected instream video ad renderer");if(!R.playerVars)throw new TypeError("Expected player vars in url encoded string");var y=Rw(R.playerVars),f=Number(y.length_seconds);if(isNaN(f))throw new TypeError("Expected valid length seconds in player vars");var A=Number(R.trimmedMaxNonSkippableAdDurationMs);f=isNaN(A)?f:Math.min(f,A/1E3);A=R.playerOverlay||{};A=A.instreamAdPlayerOverlayRenderer===void 0?null:A.instreamAdPlayerOverlayRenderer;var K=R.playerOverlay|| {};K=K.playerOverlayLayoutRenderer===void 0?null:K.playerOverlayLayoutRenderer;var G=y.video_id;G||(G=(G=R.externalVideoId)?G:void 0);if(!G)throw new TypeError("Expected valid video id in IVAR");if(l&&f===0){var B;l=(B=uPq[G])!=null?B:f}else l=f;return{playerVars:y,videoLengthSeconds:l,instreamAdPlayerOverlayRenderer:A,playerOverlayLayoutRenderer:K,adVideoId:G,qU:R.pings?hP(R.pings):new Map,wu:oi(R.pings)}}; cxQ=function(R){R=Number(R.driftRecoveryMs);return isNaN(R)||R<=0?null:R}; hMo=function(R){var l=R.adTimeOffset||{};R=l.offsetEndMilliseconds;l=Number(l.offsetStartMilliseconds);if(isNaN(l))throw new TypeError("Expected valid start offset");R=Number(R);if(isNaN(R))throw new TypeError("Expected valid end offset");return{VM:l,AG:R}}; F0Q=function(R){var l,y=(l=Cm(R.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:l.current;if(!y)return null;l=Cm(R.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var f=R.layoutId,A=Cm(R.clientMetadata,"metadata_type_content_cpn"),K=Cm(R.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),G=Cm(R.clientMetadata,"metadata_type_player_underlay_renderer"),B=Cm(R.clientMetadata,"metadata_type_ad_placement_config"),H=Cm(R.clientMetadata,"metadata_type_video_length_seconds"); var n=Dy(R.clientMetadata,"metadata_type_layout_enter_ms")&&Dy(R.clientMetadata,"metadata_type_layout_exit_ms")?(Cm(R.clientMetadata,"metadata_type_layout_exit_ms")-Cm(R.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{lx:f,contentCpn:A,uX:y,kF:l,instreamAdPlayerOverlayRenderer:K,instreamAdPlayerUnderlayRenderer:G,adPlacementConfig:B,videoLengthSeconds:H,wd:n,inPlayerLayoutId:Cm(R.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Cm(R.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; eMq=function(R,l,y,f,A,K,G,B,H,n,m,h,c,E,W){f=AP(f,"SLOT_TYPE_PLAYER_BYTES");R=Q3K(A,R,G,y,f,H,n);if(R instanceof q)return R;var Q;n=(Q=Cm(R.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:Q.layoutId;if(!n)return new q("Invalid adNotify layout");l=$UQ(n,A,K,y,B,l,H,m,h,c,E,W,G);return l instanceof q?l:[R].concat(g.ci(l))}; $UQ=function(R,l,y,f,A,K,G,B,H,n,m,h,c){y=bn7(l,y,f,K,G,B,H,n,m,h,c);if(y instanceof q)return y;R=XOT(l,R,G,A,y);return R instanceof q?R:[].concat(g.ci(R.s9),[R.VB])}; dUq=function(R,l,y,f,A,K,G,B,H,n,m,h,c,E){l=bn7(R,l,y,A,K,B,H,n,m,h,c,E);if(l instanceof q)return l;R=T8Z(R,y,K,G,f,B.QS,l);return R instanceof q?R:R.s9.concat(R.VB)}; bn7=function(R,l,y,f,A,K,G,B,H,n,m,h){var c=Ea(f,y,n);return c instanceof g1?new q(c):n.G.U().experiments.EL("html5_refactor_in_player_slot_generation")?function(E){var W=new kP(0,[c.n$]);E=rx7(l,c.layoutId,c.JI,y,Wu(c.playerVars,c.rq,K,H,W),c.n$,A,W,G(E),B.get(c.JI.externalVideoId),h);W=[];if(c.JI.playerOverlay.instreamAdPlayerOverlayRenderer){var Q=F0Q(E);if(!Q)return BR("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,E),{layout:E,s9:[]}; W=[vfk(R,Q.contentCpn,Q.lx,function(r){return Ls(l,r.slotId,"core",Q,lu(m,r))},Q.inPlayerSlotId)].concat(g.ci(W)); if(Q.instreamAdPlayerUnderlayRenderer&&Oa(n)){var e=Q.instreamAdPlayerUnderlayRenderer;W=[zM7(R,Q.contentCpn,Q.lx,function(r){return wOi(l,r.slotId,e,Q.adPlacementConfig,Q.lx,lu(m,r))})].concat(g.ci(W))}}return{layout:E, s9:W}}:function(E){var W=new kP(0,[c.n$]); return{layout:rx7(l,c.layoutId,c.JI,y,Wu(c.playerVars,c.rq,K,H,W),c.n$,A,W,G(E),B.get(c.JI.externalVideoId),h),s9:[]}}}; Ea=function(R,l,y){if(!R.playerVars)return new g1("No playerVars available in InstreamVideoAdRenderer.");var f,A;if(R.elementId==null||R.playerVars==null||R.playerOverlay==null||((f=R.playerOverlay)==null?void 0:f.instreamAdPlayerOverlayRenderer)==null&&((A=R.playerOverlay)==null?void 0:A.playerOverlayLayoutRenderer)==null||R.pings==null||R.externalVideoId==null)return new g1("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:R});f=Rw(R.playerVars);A=Number(f.length_seconds); isNaN(A)&&(A=0,BR("Expected valid length seconds in player vars but got NaN"));if(y.Y4(l.kind==="AD_PLACEMENT_KIND_START")){if(R.layoutId===void 0)return new g1("Expected server generated layout ID in instreamVideoAdRenderer");l=R.layoutId}else l=R.elementId;return{layoutId:l,JI:R,playerVars:f,rq:R.playerVars,n$:A}}; Wu=function(R,l,y,f,A){R.iv_load_policy=f;l=Rw(l);if(l.cta_conversion_urls)try{R.cta_conversion_urls=JSON.parse(l.cta_conversion_urls)}catch(K){BR(K)}y.XO&&(R.ctrl=y.XO);y.EU&&(R.ytr=y.EU);y.e7&&(R.ytrcc=y.e7);y.isMdxPlayback&&(R.mdx="1");R.vvt&&(R.vss_credentials_token=R.vvt,y.BO&&(R.vss_credentials_token_type=y.BO),y.mdxEnvironment&&(R.mdx_environment=y.mdxEnvironment));sa(R,A);return R}; xU9=function(R){var l=new Map;R=g.u(R);for(var y=R.next();!y.done;y=R.next())(y=y.value.renderer.remoteSlotsRenderer)&&y.hostElementId&&l.set(y.hostElementId,y);return l}; iD=function(R){return R.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; IEQ=function(R){return R!=null}; DUc=function(R,l,y,f,A,K,G,B,H,n,m,h,c,E){for(var W=[],Q=g.u(R),e=Q.next();!e.done;e=Q.next())if(e=e.value,!XoT(e)&&!zir(e)){var r=iD(e)&&!!e.slotEntryTrigger.beforeContentVideoIdStartedTrigger,d=H.Y4(r),z=N8i(e,n,f,y.uH,d);if(z instanceof q)return z;var N=void 0,D={slotId:e.adSlotMetadata.slotId,slotType:e.adSlotMetadata.slotType,slotPhysicalPosition:(N=e.adSlotMetadata.slotPhysicalPosition)!=null?N:1,AU:"core",slotEntryTrigger:z.slotEntryTrigger,slotFulfillmentTriggers:z.slotFulfillmentTriggers, slotExpirationTriggers:z.slotExpirationTriggers},t=g.k(e.fulfillmentContent.fulfilledLayout,kq);if(t){if(!j3(t))return new q("Invalid PlayerBytesAdLayoutRenderer");N=h&&!(iD(e)&&e.slotEntryTrigger.beforeContentVideoIdStartedTrigger);z=z.slotFulfillmentTriggers.some(function(C){return C instanceof YP}); d=N?pOo(D,e.adSlotMetadata.triggerEvent,t,y,f,K,n,R,d,c,z,E):UUT(D,e.adSlotMetadata.triggerEvent,t,l,y,f,A,K,G,B,H,n,R,m,d,e.adSlotMetadata.triggeringSourceLayoutId);if(d instanceof q)return d;z=[];iD(e)&&z.push(new jK({MS:iD(e)&&!!e.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));N&&z.push(new ib({}));y.QS&&z.push(new zq({}));z.push(new UB(r));e=Object.assign({},D,{clientMetadata:new Vd(z),fulfilledLayout:d.layout,adSlotLoggingData:e.adSlotMetadata.adSlotLoggingData});W.push.apply(W,g.ci(d.s9)); W.push(e)}else if(r=g.k(e.fulfillmentContent.fulfilledLayout,VI)){if(!bJ9(r))return new q("Invalid PlayerUnderlayAdLayoutRenderer");r=SRk(r,f,y.uH,K,D,e.adSlotMetadata.triggerEvent,e.adSlotMetadata.triggeringSourceLayoutId);if(r instanceof q)return r;e=Object.assign({},D,{clientMetadata:new Vd([]),fulfilledLayout:r,adSlotLoggingData:e.adSlotMetadata.adSlotLoggingData});W.push(e)}else if(r=g.k(e.fulfillmentContent.fulfilledLayout,dWQ)){if(!Ldj(r))return new q("Invalid AboveFeedAdLayoutRenderer");r= j3q(r,f,y.uH,K,D,e.adSlotMetadata.triggerEvent,e.adSlotMetadata.triggeringSourceLayoutId);if(r instanceof q)return r;e=Object.assign({},D,{clientMetadata:new Vd([]),fulfilledLayout:r,adSlotLoggingData:e.adSlotMetadata.adSlotLoggingData});W.push(e)}else if(r=g.k(e.fulfillmentContent.fulfilledLayout,rVY)){if(!LW(r.adLayoutMetadata)||!g.k(r.renderingContent,O4))return new q("Invalid BelowPlayerAdLayoutRenderer");r=j3q(r,f,y.uH,K,D,e.adSlotMetadata.triggerEvent,e.adSlotMetadata.triggeringSourceLayoutId); if(r instanceof q)return r;e=Object.assign({},D,{clientMetadata:new Vd([]),fulfilledLayout:r,adSlotLoggingData:e.adSlotMetadata.adSlotLoggingData});W.push(e)}else if(r=g.k(e.fulfillmentContent.fulfilledLayout,CW)){if(!ZR(r))return new q("Invalid PlayerBytesSequenceItemAdLayoutRenderer");r=kJo(r,f,y.uH,K,D,e.adSlotMetadata.triggerEvent);if(r instanceof q)return r;e=Object.assign({},D,{clientMetadata:new Vd([]),fulfilledLayout:r,adSlotLoggingData:e.adSlotMetadata.adSlotLoggingData});W.push(e)}else return new q("Unable to retrieve a client slot ["+ D.slotType+"] from a given AdSlotRenderer")}return W}; kJo=function(R,l,y,f,A,K){var G={layoutId:R.adLayoutMetadata.layoutId,layoutType:R.adLayoutMetadata.layoutType,AU:"core"};l=Pu(R,l,y);return l instanceof q?l:(y=g.k(R.renderingContent,DR))&&y.pings?Object.assign({},G,{renderingContent:R.renderingContent,qU:hP(y.pings)},l,{e1:lu(f,A)(G),clientMetadata:new Vd([new Uq(uD(K))]),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData}):new q("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; j3q=function(R,l,y,f,A,K,G){var B={layoutId:R.adLayoutMetadata.layoutId,layoutType:R.adLayoutMetadata.layoutType,AU:"core"};l=Pu(R,l,y);if(l instanceof q)return l;y=[];y.push(new Uq(uD(K)));K==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&G!==void 0&&y.push(new Ah(G));return Object.assign({},B,{renderingContent:R.renderingContent,qU:new Map([["impression",Zno(R)]])},l,{e1:lu(f,A)(B),clientMetadata:new Vd(y),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData})}; SRk=function(R,l,y,f,A,K,G){if(R.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(G=g.k(R.renderingContent,JG))if(G=g.k(G.sidePanel,$WK)){var B={layoutId:R.adLayoutMetadata.layoutId,layoutType:R.adLayoutMetadata.layoutType,AU:"core"};l=Pu(R,l,y);R=l instanceof q?l:Object.assign({},B,{renderingContent:R.renderingContent,qU:new Map([["impression",G.impressionPings||[]],["resume",G.resumePings||[]]])},l,{e1:lu(f,A)(B),clientMetadata:new Vd([new Uq(uD(K))]),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData})}else R= new q("DismissablePanelTextPortraitImageRenderer is missing");else R=new q("SqueezebackPlayerSidePanelRenderer is missing");else R.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.k(R.renderingContent,uer)?(G={layoutId:R.adLayoutMetadata.layoutId,layoutType:R.adLayoutMetadata.layoutType,AU:"core"},l=Pu(R,l,y),R=l instanceof q?l:Object.assign({},G,{renderingContent:R.renderingContent,qU:new Map},l,{e1:lu(f,A)(G),clientMetadata:new Vd([new Uq(uD(K))]),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData})): R=new q("CounterfactualRenderer is missing"):R.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?R=new q("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):R.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?R=new q("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):R.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.k(R.renderingContent,gb)?(K={layoutId:R.adLayoutMetadata.layoutId,layoutType:R.adLayoutMetadata.layoutType, AU:"core"},l=Pu(R,l,y),R=l instanceof q?l:G?Object.assign({},K,{renderingContent:R.renderingContent,qU:new Map},l,{e1:lu(f,A)(K),clientMetadata:new Vd([new Ah(G)]),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData}):new q("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):R=new q("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):R.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.k(R.renderingContent,Fdi)? (K={layoutId:R.adLayoutMetadata.layoutId,layoutType:R.adLayoutMetadata.layoutType,AU:"core"},l=Pu(R,l,y),R=l instanceof q?l:Object.assign({},K,{renderingContent:R.renderingContent,qU:new Map([])},l,{e1:lu(f,A)(K),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new Vd([])})):R=new q("AdsEngagementPanelSectionListViewModel is missing"):R=new q("LayoutType ["+R.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return R}; pOo=function(R,l,y,f,A,K,G,B,H,n,m,h){if((h==null?void 0:h.J9)===void 0||(h==null?void 0:h.Dx)===void 0)return new q("Cached ad break range from cue point is missing");var c=Pu(y,A,f.uH);if(c instanceof q)return c;c={layoutExitMuteTriggers:[],layoutExitNormalTriggers:c.layoutExitNormalTriggers,layoutExitSkipTriggers:[],Pl:[],layoutExitUserInputSubmittedTriggers:[]};if(g.k(y.renderingContent,NY))return R=JxT(R,l,y,c,A,K,B,H,f.uH,G,h.J9,h.Dx),R instanceof q?R:R.nS===void 0?new q("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:R.layout,s9:[R.nS]};var E=g.k(y.renderingContent,xq);if(E){if(!LW(y.adLayoutMetadata))return new q("Invalid ad layout metadata");if(!IS(E))return new q("Invalid sequential layout");E=E.sequentialLayouts.map(function(W){return W.playerBytesAdLayoutRenderer}); R=gfi(R,l,y,c,E,A,f,K,G,H,B,n,h.J9,h.Dx,m);return R instanceof q?R:{layout:R.N4,s9:R.s9}}return new q("Not able to convert a sequential layout")}; gfi=function(R,l,y,f,A,K,G,B,H,n,m,h,c,E,W){var Q=VPJ(A,c,E);if(Q instanceof q)return Q;var e=[],r=[];Q=g.u(Q);for(var d=Q.next();!d.done;d=Q.next()){var z=d.value;d=R;var N=A[z.cO],D=z,t=l;z=K;var C=G,Ac=B,Bi=H,ar=n,nk=m,Y=F$(N);if(Y instanceof q)d=Y;else{var Pi={layoutId:N.adLayoutMetadata.layoutId,layoutType:N.adLayoutMetadata.layoutType,AU:"adapter"};D=CEQ(t,N,D,z);D instanceof q?d=D:(d=Object.assign({},Pi,Qk,{qU:Y,renderingContent:N.renderingContent,clientMetadata:new Vd(D),e1:lu(Ac,d)(Pi),adLayoutLoggingData:N.adLayoutMetadata.adLayoutLoggingData}), d=(N=$s(nk,d,z,C.uH,Ac,Bi,ar,void 0,!0))?N instanceof q?N:{layout:d,nS:N}:new q("Expecting associatedInPlayerSlot"))}if(d instanceof q)return d;e.push(d.layout);r.push(d.nS)}A={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType,AU:"core"};l=[new FX(Number(y.driftRecoveryMs)),new We(c),new Lm(E),new Uq(uD(l)),new pm(h),new ib({})];W&&l.push(new ky({}));return{N4:Object.assign({},A,f,{uP:e,qU:new Map,clientMetadata:new Vd(l),e1:lu(B,R)(A)}),s9:r}}; JxT=function(R,l,y,f,A,K,G,B,H,n,m,h){if(!j3(y))return new q("Invalid PlayerBytesAdLayoutRenderer");var c=F$(y);if(c instanceof q)return c;var E={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType,AU:"core"},W=g.k(y.renderingContent,NY);if(!W)return new q("Invalid rendering content for DAI media layout");W=cu(W,!1);m={Gl:W,cO:0,Ye:m,Sq:Math.min(m+W.videoLengthSeconds*1E3,h),vR:new kP(0,[W.videoLengthSeconds])};var Q;h=(Q=Number(y.driftRecoveryMs))!=null?Q:void 0;l=CEQ(l, y,m,A,h);if(l instanceof q)return l;R=Object.assign({},E,f,{qU:c,renderingContent:y.renderingContent,clientMetadata:new Vd(l),e1:lu(K,R)(E),adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData});return(A=$s(G,R,A,H,K,n,B,void 0,!0))?A instanceof q?A:{layout:R,nS:A}:new q("Expecting associatedInPlayerSlot")}; UUT=function(R,l,y,f,A,K,G,B,H,n,m,h,c,E,W,Q){var e=Pu(y,K,A.uH);if(e instanceof q)return e;if(g.k(y.renderingContent,NY)){H=qRq([y],A,H);if(H instanceof q)return H;if(H.length!==1)return new q("Only expected one media layout.");R=tPJ(R,l,y,e,H[0],void 0,"core",f,K,G,B,n,c,E,W,A.uH,h,void 0,Q);return R instanceof q?R:{layout:R.layout,s9:R.nS?[R.nS]:[]}}var r=g.k(y.renderingContent,xq);if(r){if(!LW(y.adLayoutMetadata))return new q("Invalid ad layout metadata");if(!IS(r))return new q("Invalid sequential layout"); r=r.sequentialLayouts.map(function(d){return d.playerBytesAdLayoutRenderer}); R=YRY(R,l,y.adLayoutMetadata,e,r,f,K,A,H,G,B,n,m,h,W,c,E,Q);return R instanceof q?R:{layout:R.N4,s9:R.s9}}return new q("Not able to convert a sequential layout")}; YRY=function(R,l,y,f,A,K,G,B,H,n,m,h,c,E,W,Q,e,r){var d=new Dz({current:null}),z=qRq(A,B,H);if(z instanceof q)return z;H=[];for(var N=[],D=void 0,t=0;t0&&(t.push(r),t.push(new kE(D.adPodSkipTarget)));(K=n.get(D.externalVideoId))&&t.push(new bb(K));K=t}else K=new q("Invalid vod media renderer")}if(K instanceof q)return K;R=Object.assign({},G,f,{qU:z,renderingContent:y.renderingContent,clientMetadata:new Vd(K),e1:lu(m,R)(G),adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData});y=g.k(y.renderingContent,NY);if(!y||!bk(y))return new q("Invalid meida renderer");h=Hu(h,y.externalVideoId);h.instreamVideoAdRenderer=y;h.hm="AD_PLACEMENT_KIND_START";return E?(H=$s(c,R,H,Q,m,e,W,r,!1),H instanceof q?H:lzT(R.layoutId,c)&&H?{layout:Object.assign({},R,{clientMetadata:new Vd(K.concat(new tJ(H)))})}:{layout:R,nS:H}): {layout:R}}; MPY=function(R,l,y,f,A){if(!j3(l))return new q("Invalid PlayerBytesAdLayoutRenderer");var K=g.k(l.renderingContent,tP);if(!K||K.durationMilliseconds===void 0)return new q("Invalid endcap renderer");var G={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,AU:"adapter"};f=[new Tq(K.durationMilliseconds),new ve({impressionCommands:void 0,abandonCommands:K.abandonCommands?[{commandExecutorCommand:K.abandonCommands}]:void 0,completeCommands:K.completionCommands}),new Uq(f), new Gq("LAYOUT_TYPE_ENDCAP")];if(A){f.push(new j6(A.vR.adPodIndex-1));f.push(new OB(A.vR.adPodIndex));var B;f.push(new kE((B=A.adPodSkipTarget)!=null?B:-1))}return Object.assign({},G,Qk,{renderingContent:l.renderingContent,clientMetadata:new Vd(f),qU:K.skipPings?new Map([["skip",K.skipPings]]):new Map,e1:lu(y,R)(G),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData})}; $s=function(R,l,y,f,A,K,G,B,H){R=R.filter(function(m){return m.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&m.adSlotMetadata.triggeringSourceLayoutId===l.layoutId}); if(R.length!==0){if(R.length!==1)return new q("Invalid InPlayer slot association for the given PlayerBytes layout");R=R[0];G=N8i(R,K,y,f,G);if(G instanceof q)return G;var n;K={slotId:R.adSlotMetadata.slotId,slotType:R.adSlotMetadata.slotType,slotPhysicalPosition:(n=R.adSlotMetadata.slotPhysicalPosition)!=null?n:1,AU:"core",slotEntryTrigger:G.slotEntryTrigger,slotFulfillmentTriggers:G.slotFulfillmentTriggers,slotExpirationTriggers:G.slotExpirationTriggers};n=g.k(R.fulfillmentContent.fulfilledLayout, Thc);if(!n||!Paj(n))return new q("Invalid InPlayerAdLayoutRenderer");G={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,AU:"core"};y=Pu(n,y,f);if(y instanceof q)return y;f=[];H&&f.push(new ib({}));if(n.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")f.push.apply(f,g.ci(yJs(R.adSlotMetadata.triggerEvent,l)));else if(n.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")f.push(new Uq(uD(R.adSlotMetadata.triggerEvent))),B&&f.push(B);else return new q("Not able to parse an SDF InPlayer layout"); A=Object.assign({},G,y,{renderingContent:n.renderingContent,qU:new Map,e1:lu(A,K)(G),clientMetadata:new Vd(f),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},K,{fulfilledLayout:A,clientMetadata:new Vd([])})}}; yJs=function(R,l){var y=[];y.push(new Uq(uD(R)));y.push(new Ah(l.layoutId));(R=Cm(l.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&y.push(new Be(R));(R=Cm(l.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&y.push(new Dz(R));(R=Cm(l.clientMetadata,"metadata_type_remote_slots_data"))&&y.push(new bb(R));(R=Cm(l.clientMetadata,"metadata_type_ad_next_params"))&&y.push(new rE(R));(R=Cm(l.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&y.push(new vz(R));(R= Cm(l.clientMetadata,"metadata_type_ad_pod_info"))&&y.push(new S6(R));(l=Cm(l.clientMetadata,"metadata_type_ad_video_id"))&&y.push(new Zz(l));return y}; Rfr=function(R,l,y,f,A,K){function G(n){return ew(l,n)} var B=f.Qm.inPlayerSlotId,H={layoutId:f.Qm.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",AU:"core"};y={slotId:B,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,AU:"core",slotEntryTrigger:new Vq(G,R),slotFulfillmentTriggers:[new Bp(G,B)],slotExpirationTriggers:[new Hp(G,B),new Gc(G,y)]};R=Object.assign({},H,{layoutExitNormalTriggers:[new qB(G,R)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pl:[],qU:new Map,clientMetadata:new Vd([new M7(f.Qm), new Uq(f.adPlacementConfig),A]),e1:lu(K,y)(H),adLayoutLoggingData:f.Qm.adLayoutLoggingData});return Object.assign({},y,{clientMetadata:new Vd([new Qd(R)])})}; lzT=function(R,l){l=g.u(l);for(var y=l.next();!y.done;y=l.next())if(y=y.value,y.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var f=g.k(y.fulfillmentContent.fulfilledLayout,VI);if(f&&(f=g.k(f.renderingContent,JG))&&f.associatedPlayerBytesLayoutId===R)return y}}; N8i=function(R,l,y,f,A){var K=fzr(aU(R.slotEntryTrigger,y,f),A,R,l);if(K instanceof q)return K;for(var G=[],B=g.u(R.slotFulfillmentTriggers),H=B.next();!H.done;H=B.next()){H=aU(H.value,y,f);if(H instanceof q)return H;G.push(H)}G=AJc(G,A,R,l);l=[];R=g.u(R.slotExpirationTriggers);for(A=R.next();!A.done;A=R.next()){A=aU(A.value,y,f);if(A instanceof q)return A;l.push(A)}return{slotEntryTrigger:K,slotFulfillmentTriggers:G,slotExpirationTriggers:l}}; fzr=function(R,l,y,f){return l&&y.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&R instanceof D5?new jG(function(A){return ew(f,A)},y.adSlotMetadata.slotId):R}; AJc=function(R,l,y,f){return l&&y.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?R.map(function(A){return A instanceof Bp?new oS(function(K){return ew(f,K)},y.adSlotMetadata.slotId):A}):R}; Pu=function(R,l,y){for(var f=[],A=g.u(R.layoutExitNormalTriggers||[]),K=A.next();!K.done;K=A.next()){K=aU(K.value,l,y);if(K instanceof q)return K;f.push(K)}A=[];K=g.u(R.layoutExitSkipTriggers||[]);for(var G=K.next();!G.done;G=K.next()){G=aU(G.value,l,y);if(G instanceof q)return G;A.push(G)}K=[];G=g.u(R.layoutExitMuteTriggers||[]);for(var B=G.next();!B.done;B=G.next()){B=aU(B.value,l,y);if(B instanceof q)return B;K.push(B)}G=[];R=g.u(R.layoutExitUserInputSubmittedTriggers||[]);for(B=R.next();!B.done;B= R.next()){B=aU(B.value,l,y);if(B instanceof q)return B;G.push(B)}return{layoutExitNormalTriggers:f,layoutExitSkipTriggers:A,layoutExitMuteTriggers:K,layoutExitUserInputSubmittedTriggers:G,Pl:[]}}; F$=function(R){var l=g.k(R.renderingContent,NY);if(l==null?0:l.pings)return hP(l.pings);R=g.k(R.renderingContent,tP);return(R==null?0:R.skipPings)?new Map([["skip",R.skipPings]]):new Map}; CEQ=function(R,l,y,f,A){l=g.k(l.renderingContent,NY);if(!l)return new q("Invalid rendering content for DAI media layout");R=[new JJ(f),new oW(y.Gl.videoLengthSeconds),new hh(y.Gl.playerVars),new We(y.Ye),new Lm(y.Sq),new OB(y.cO),new Uq(uD(R)),new Zz(y.Gl.adVideoId),new S6(y.vR),l.sodarExtensionData&&new EB(l.sodarExtensionData),new Be({current:null}),new ib({}),new IW(oi(l.pings))].filter(IEQ);A!==void 0&&R.push(new FX(A));return R}; VPJ=function(R,l,y){R=R.map(function(H){return cu(g.k(H.renderingContent,NY),!1)}); var f=R.map(function(H){return H.videoLengthSeconds}),A=f.map(function(H,n){return new kP(n,f)}),K=l,G=y,B=[]; R.forEach(function(H,n){G=Math.min(K+H.videoLengthSeconds*1E3,y);sa(H.playerVars,A[n]);B.push({Gl:H,Ye:K,Sq:G,cO:n,vR:A[n]});K=G}); return B}; qRq=function(R,l,y){for(var f=[],A=g.u(R),K=A.next();!K.done;K=A.next())if(K=g.k(K.value.renderingContent,NY)){if(!bk(K))return new q("Invalid vod media renderer");f.push(K7o(K))}A=f.map(function(h){return h.n$}); K=[];for(var G=0,B=0;B0?ar:-1;else if(Pi=g.k(Y,tP)){Y= EEi(R,l,y,Pi,K,Q,B,C,ar);if(Y instanceof q){E=Y;break a}Y=Y(c);e.push(Y.pM);r=[].concat(g.ci(Y.bP),g.ci(r));d=[].concat(g.ci(Y.T8),g.ci(d));Y.nS&&(Bi=[Y.nS].concat(g.ci(Bi)))}else if(Pi=g.k(Y,U4)){if(E===void 0){E=new q("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:Pi});break a}Y=OHY(R,l,y,K,Pi,t,B,E,Q,Nc(m,"supports_multi_step_on_desktop"));if(Y instanceof q){E=Y;break a}Y=Y(c);e.push(Y.pM);Y.nS&&Bi.push(Y.nS);r=[].concat(g.ci(Y.bP),g.ci(r)); d=[].concat(g.ci(Y.T8),g.ci(d));z=[].concat(g.ci(Y.rP),g.ci(z));N=[].concat(g.ci(Y.MQ),g.ci(N));D=[t].concat(g.ci(D))}else if(Y=g.k(Y,S3)){Y=iHc(R,l,y,K,Y,t,B,Q);if(Y instanceof q){E=Y;break a}Y=Y(c);e.push(Y.pM);Y.nS&&Bi.push(Y.nS);d=[].concat(g.ci(Y.T8),g.ci(d))}else{E=new q("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}E={uP:e,layoutExitSkipTriggers:r,layoutExitUserInputSubmittedTriggers:z,Pl:N,layoutExitMuteTriggers:d,HP:D,s9:Bi}}}else a:if(Q=XzZ(f,y,m),Q instanceof q)E=Q; else{e=0;r=[];d=[];z=[];N=[];D=[];t=[];C=new He({current:null});Ac=new Dz({current:null});Bi=!1;nk=[];ar=-1;W=g.u(f);for(Y=W.next();!Y.done;Y=W.next())if(Y=Y.value,g.k(Y,pW)){Y=W7J(l,y,g.k(Y,pW),B);if(Y instanceof q){E=Y;break a}Y=Y(c);r.push(Y.pM);d=[].concat(g.ci(Y.bP),g.ci(d));z=[].concat(g.ci(Y.T8),g.ci(z));Y.nS&&(nk=[Y.nS].concat(g.ci(nk)))}else if(g.k(Y,NY)){ar=Ea(g.k(Y,NY),y,m);if(ar instanceof g1){E=new q(ar);break a}Y=new kP(e,Q);Y=TE7(l,ar.layoutId,ar.JI,y,Wu(ar.playerVars,ar.rq,G,n,Y), ar.n$,K,Y,B(c),Ac,H.get(ar.JI.externalVideoId),void 0,h);e++;r.push(Y.pM);d=[].concat(g.ci(Y.bP),g.ci(d));z=[].concat(g.ci(Y.T8),g.ci(z));Bi||(t.push(Ac),Bi=!0);ar=(ar=ar.JI.adPodSkipTarget)&&ar>0?ar:-1}else if(g.k(Y,tP)){Y=EEi(R,l,y,g.k(Y,tP),K,e,B,Ac,ar);if(Y instanceof q){E=Y;break a}Y=Y(c);r.push(Y.pM);d=[].concat(g.ci(Y.bP),g.ci(d));z=[].concat(g.ci(Y.T8),g.ci(z));Y.nS&&(nk=[Y.nS].concat(g.ci(nk)))}else if(g.k(Y,U4)){if(E===void 0){E=new q("Composite Survey must already have a Survey Bundle with required metadata.", {instreamSurveyAdRenderer:g.k(Y,U4)});break a}Y=OHY(R,l,y,K,g.k(Y,U4),C,B,E,e,Nc(m,"supports_multi_step_on_desktop"));if(Y instanceof q){E=Y;break a}Y=Y(c);r.push(Y.pM);Y.nS&&nk.push(Y.nS);d=[].concat(g.ci(Y.bP),g.ci(d));z=[].concat(g.ci(Y.T8),g.ci(z));N=[].concat(g.ci(Y.rP),g.ci(N));D=[].concat(g.ci(Y.MQ),g.ci(D));t=[C].concat(g.ci(t))}else if(g.k(Y,S3)){Y=iHc(R,l,y,K,g.k(Y,S3),C,B,e);if(Y instanceof q){E=Y;break a}Y=Y(c);r.push(Y.pM);Y.nS&&nk.push(Y.nS);z=[].concat(g.ci(Y.T8),g.ci(z))}else{E=new q("Unsupported linearAd found in LinearAdSequenceRenderer."); break a}E={uP:r,layoutExitSkipTriggers:d,layoutExitUserInputSubmittedTriggers:N,Pl:D,layoutExitMuteTriggers:z,HP:t,s9:nk}}E instanceof q?c=E:(D=c.slotId,Q=E.uP,e=E.layoutExitSkipTriggers,r=E.layoutExitMuteTriggers,d=E.layoutExitUserInputSubmittedTriggers,z=E.HP,c=B(c),N=A?A.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",D=A?A.layoutId:pd(l.X.get(),N,D),t={layoutId:D,layoutType:N,AU:"core"},c={layout:{layoutId:D,layoutType:N,qU:new Map,layoutExitNormalTriggers:[new KW(l.Z,D)],layoutExitSkipTriggers:e, layoutExitMuteTriggers:r,layoutExitUserInputSubmittedTriggers:d,Pl:[],AU:"core",clientMetadata:new Vd([new nm(Q)].concat(g.ci(z))),e1:c(t)},s9:E.s9});return c}}; XzZ=function(R,l,y){var f=[];R=g.u(R);for(var A=R.next();!A.done;A=R.next())if(A=A.value,g.k(A,NY)){A=Ea(g.k(A,NY),l,y);if(A instanceof g1)return new q(A);f.push(A.n$)}return f}; rJT=function(R,l,y,f,A,K,G,B){if(!xWo(y,B===void 0?!1:B))return new q("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:y});var H=mY(y);if(H<=0)return new q("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:y});var n=new He({current:null}),m=GJo(R,l,y,n,f,K,G);return d7j(R,f,K,H,A,function(h,c){var E=h.slotId,W=oU(y);h=G(h);var Q,e=(Q=dm(l,f,y.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?Q: pd(l.X.get(),"LAYOUT_TYPE_MEDIA_BREAK",E);E={layoutId:e,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",AU:"core"};Q=m(e,c);var r=Cm(Q.clientMetadata,"metadata_type_fulfilled_layout");r||BR("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");W=[new Uq(f),new Tq(H),new ve(W),n];r&&W.push(new Gq(r.layoutType));return{L$b:{layoutId:e,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",qU:new Map,layoutExitNormalTriggers:[new KW(l.Z,e)],layoutExitSkipTriggers:[new s4(l.Z, c.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new cp(l.Z,c.layoutId)],Pl:[],AU:"core",clientMetadata:new Vd(W),e1:h(E)},TQ:Q}})}; vEZ=function(R){if(!poo(R))return!1;var l=g.k(R.adVideoStart,xs);return l?g.k(R.linearAd,NY)&&$q(l)?!0:(BR("Invalid Sandwich with notify"),!1):!1}; zfc=function(R){if(R.linearAds==null)return!1;R=g.k(R.adStart,xs);return R?$q(R)?!0:(BR("Invalid LASR with notify"),!1):!1}; wzq=function(R){if(!NhK(R))return!1;R=g.k(R.adStart,xs);return R?$q(R)?!0:(BR("Invalid LASR with notify"),!1):!1}; IU=function(R,l,y,f,A,K,G,B,H,n){this.Y=R;this.X=l;this.Z=y;this.aE=f;this.Hh=A;this.L=K;this.RE=G;this.G8=B;this.jI=H;this.loadPolicy=n===void 0?1:n}; Ks=function(R,l,y,f,A,K,G,B,H,n){var m=[];if(l.length===0&&f.length===0&&y.length===0)return m;l=l.filter(e3);var h=y.filter(vrs),c=f.filter(e3),E=new Map,W=xU9(l),Q=y.some(function(wq){var Rt;return(wq==null?void 0:(Rt=wq.adSlotMetadata)==null?void 0:Rt.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),e=y.some(function(wq){var Rt; return(wq==null?void 0:(Rt=wq.adSlotMetadata)==null?void 0:Rt.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),r=y.some(function(wq){var Rt; return(wq==null?void 0:(Rt=wq.adSlotMetadata)==null?void 0:Rt.slotType)==="SLOT_TYPE_IN_PLAYER"}),d=y.some(function(wq){var Rt,pX; return(wq==null?void 0:(Rt=wq.adSlotMetadata)==null?void 0:Rt.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(wq==null?void 0:(pX=wq.adSlotMetadata)==null?void 0:pX.slotType)==="SLOT_TYPE_ABOVE_FEED"}); y=y.some(function(wq){var Rt;return(wq==null?void 0:(Rt=wq.adSlotMetadata)==null?void 0:Rt.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(Q||e||r||d||y)n=DUc(h,l,B,A,W,R.Hh.get(),R.loadPolicy,E,R.aE.get(),R.Y.get(),r,G,H,n),n instanceof q?BR(n,void 0,void 0,{contentCpn:A}):m.push.apply(m,g.ci(n));n=g.u(l);for(y=n.next();!y.done;y=n.next())y=y.value,e=x7k(R,E,y,A,K,G,Q,B,W,H,h),e instanceof q?BR(e,void 0,void 0,{renderer:y.renderer,config:y.config.adPlacementConfig,kind:y.config.adPlacementConfig.kind,contentCpn:A,daiEnabled:G}):m.push.apply(m,g.ci(e));IzT(R.aE.get())||(K=NEq(R,c,A,B,W,E),m.push.apply(m,g.ci(K)));if(R.L===null||G&& !B.s6){var z,N,D;R=B.QS&&l.length===1&&((z=l[0].config)==null?void 0:(N=z.adPlacementConfig)==null?void 0:N.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((D=l[0].renderer)==null?void 0:D.adBreakServiceRenderer);if(!m.length&&!R){var t,C,Ac,Bi;BR("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":l.length,contentCpn:A,"first APR kind":(t=l[0])==null?void 0:(C=t.config)==null?void 0:(Ac=C.adPlacementConfig)==null?void 0:Ac.kind,renderer:(Bi=l[0])== null?void 0:Bi.renderer})}return m}z=f.filter(e3);m.push.apply(m,g.ci(fEs(E,z,R.X.get(),R.L,A,Q)));if(!m.length){var ar,nk,Y,Pi;BR("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":l.length,contentCpn:A,daiEnabled:G.toString(),"first APR kind":(ar=l[0])==null?void 0:(nk=ar.config)==null?void 0:(Y=nk.adPlacementConfig)==null?void 0:Y.kind,renderer:(Pi=l[0])==null?void 0:Pi.renderer})}return m}; NEq=function(R,l,y,f,A,K){function G(c){return lu(R.Hh.get(),c)} var B=[];l=g.u(l);for(var H=l.next();!H.done;H=l.next()){H=H.value;var n=H.renderer,m=n.sandwichedLinearAdRenderer,h=n.linearAdSequenceRenderer;m&&vEZ(m)?(BR("Found AdNotify with SandwichedLinearAdRenderer"),h=g.k(m.adVideoStart,xs),m=g.k(m.linearAd,NY),Bu(K,n,H.config.adPlacementConfig.kind),n=void 0,h=$UQ((n=h)==null?void 0:n.layout.layoutId,R.X.get(),R.Z.get(),H.config.adPlacementConfig,H.adSlotLoggingData,m,y,f,G,A,R.loadPolicy,R.aE.get(),R.Hh.get()),h instanceof q?BR(h):B.push.apply(B,g.ci(h))): h&&(!h.adLayoutMetadata&&zfc(h)||h.adLayoutMetadata&&wzq(h))&&(BR("Found AdNotify with LinearAdSequenceRenderer"),Bu(K,n,H.config.adPlacementConfig.kind),n=void 0,m=P5j((n=g.k(h.adStart,xs))==null?void 0:n.layout.layoutId,R.X.get(),R.Z.get(),H.config.adPlacementConfig,H.adSlotLoggingData,h.linearAds,LW(h.adLayoutMetadata)?h.adLayoutMetadata:void 0,y,f,G,A,R.loadPolicy,R.aE.get()),m instanceof q?BR(m):B.push.apply(B,g.ci(m)))}return B}; x7k=function(R,l,y,f,A,K,G,B,H,n,m){function h(r){return lu(R.Hh.get(),r)} var c=y.renderer,E=y.config.adPlacementConfig,W=E.kind,Q=y.adSlotLoggingData,e=B.s6&&W==="AD_PLACEMENT_KIND_START";e=K&&!e;if(c.adsEngagementPanelRenderer!=null)return ns(l,y.elementId,W,c.adsEngagementPanelRenderer.isContentVideoEngagementPanel,c.adsEngagementPanelRenderer.adVideoId,c.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,E,Q,function(r,d,z,N){var D=R.Z.get(),t=r.slotId,C=c.adsEngagementPanelRenderer;r=lu(R.Hh.get(),r);return Nj(D,t,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new TM(C),d,z,C.impressionPings,r,c.adsEngagementPanelRenderer.adLayoutLoggingData,N)}),[]; if(c.adsEngagementPanelLayoutViewModel)return ns(l,y.elementId,W,c.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,c.adsEngagementPanelLayoutViewModel.adVideoId,c.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,E,Q,function(r,d,z,N){var D=R.Z.get(),t=r.slotId,C=c.adsEngagementPanelLayoutViewModel;r=lu(R.Hh.get(),r);return ps(D,t,"LAYOUT_TYPE_PANEL",new dE(C),d,z,r,c.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,N)}),[]; if(c.actionCompanionAdRenderer!=null){if(c.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return YnQ(R.X.get(),R.L,R.Z.get(),c.actionCompanionAdRenderer,E,Q,f,h);ns(l,y.elementId,W,c.actionCompanionAdRenderer.isContentVideoCompanion,c.actionCompanionAdRenderer.adVideoId,c.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,E,Q,function(r,d,z,N){var D=R.Z.get(),t=r.slotId,C=c.actionCompanionAdRenderer;r=lu(R.Hh.get(),r);return Nj(D,t,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new b5(C),d,z,C.impressionPings,r,c.actionCompanionAdRenderer.adLayoutLoggingData,N)})}else if(c.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(c.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return MeJ(R.X.get(),R.L,R.Z.get(),c.topBannerImageTextIconButtonedLayoutViewModel,E,Q,f,h); ns(l,y.elementId,W,c.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,c.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,c.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,E,Q,function(r,d,z,N){var D=R.Z.get(),t=r.slotId,C=c.topBannerImageTextIconButtonedLayoutViewModel;r=lu(R.Hh.get(),r);return ps(D,t,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new X8(C),d,z,r,c.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,N)})}else if(c.imageCompanionAdRenderer)ns(l, y.elementId,W,c.imageCompanionAdRenderer.isContentVideoCompanion,c.imageCompanionAdRenderer.adVideoId,c.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,E,Q,function(r,d,z,N){var D=R.Z.get(),t=r.slotId,C=c.imageCompanionAdRenderer; r=lu(R.Hh.get(),r);return Nj(D,t,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new wE(C),d,z,C.impressionPings,r,c.imageCompanionAdRenderer.adLayoutLoggingData,N)}); else if(c.bannerImageLayoutViewModel)ns(l,y.elementId,W,c.bannerImageLayoutViewModel.isContentVideoCompanion,c.bannerImageLayoutViewModel.adVideoId,c.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,E,Q,function(r,d,z,N){var D=R.Z.get(),t=r.slotId,C=c.bannerImageLayoutViewModel;r=lu(R.Hh.get(),r);return ps(D,t,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new xE(C),d,z,r,c.bannerImageLayoutViewModel.adLayoutLoggingData,N)}); else if(c.shoppingCompanionCarouselRenderer)ns(l,y.elementId,W,c.shoppingCompanionCarouselRenderer.isContentVideoCompanion,c.shoppingCompanionCarouselRenderer.adVideoId,c.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,E,Q,function(r,d,z,N){var D=R.Z.get(),t=r.slotId,C=c.shoppingCompanionCarouselRenderer;r=lu(R.Hh.get(),r);return Nj(D,t,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new IF(C),d,z,C.impressionPings,r,c.shoppingCompanionCarouselRenderer.adLayoutLoggingData,N)}); else if(c.adBreakServiceRenderer){if(!qnc(y))return[];if(W==="AD_PLACEMENT_KIND_PAUSE")return CaJ(R.X.get(),E,Q,y.renderer.adBreakServiceRenderer,f);if(W!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&W!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return VeY(R.X.get(),E,Q,y.renderer.adBreakServiceRenderer,f,A,K);B.QS||BR("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:W,adPlacementConfig:E,daiEnabledForContentVideo:String(K),isServedFromLiveInfra:String(B.QS),clientPlaybackNonce:B.clientPlaybackNonce}); if(W==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!R.RE)return new q("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!R.jI)return new q("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");R.jI.qJ({adPlacementRenderer:y,contentCpn:f,uH:A});A=R.RE.get().getCurrentTimeSec(1,!1);return pzZ(R.X.get(),y.renderer.adBreakServiceRenderer,E,A,f,Q,K)}if(!R.G8)return new q("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); R.G8.qJ({adPlacementRenderer:y,contentCpn:f,uH:A})}else{if(c.clientForecastingAdRenderer)return BET(R.X.get(),R.Z.get(),E,Q,c.clientForecastingAdRenderer,f,A,h);if(c.invideoOverlayAdRenderer)return oEc(R.X.get(),R.Z.get(),E,Q,c.invideoOverlayAdRenderer,f,A,h);if(c.instreamAdPlayerOverlayRenderer)return nEY(R.X.get(),R.Z.get(),E,Q,c.instreamAdPlayerOverlayRenderer,f,h);if((c.linearAdSequenceRenderer||c.instreamVideoAdRenderer)&&e)return Onk(R.X.get(),R.Z.get(),y,f,h,n,!R.aE.get().G.U().C("html5_override_ad_video_length_killswitch")); if(c.linearAdSequenceRenderer&&!e){if(G)return[];Bu(l,c,W);if(c.linearAdSequenceRenderer.adLayoutMetadata){if(!NhK(c.linearAdSequenceRenderer))return new q("Received invalid LinearAdSequenceRenderer.")}else if(c.linearAdSequenceRenderer.linearAds==null)return new q("Received invalid LinearAdSequenceRenderer.");if(g.k(c.linearAdSequenceRenderer.adStart,xs)){BR("Found AdNotify in LinearAdSequenceRenderer");y=g.k(c.linearAdSequenceRenderer.adStart,xs);if(!OJ7(y))return new q("Invalid AdMessageRenderer."); K=c.linearAdSequenceRenderer.linearAds;return u8T(R.Y.get(),R.X.get(),R.Z.get(),R.Hh.get(),E,Q,y,LW(c.linearAdSequenceRenderer.adLayoutMetadata)?c.linearAdSequenceRenderer.adLayoutMetadata:void 0,K,f,A,B,h,H,R.loadPolicy,R.aE.get())}return bHc(R.X.get(),R.Z.get(),E,Q,c.linearAdSequenceRenderer.linearAds,LW(c.linearAdSequenceRenderer.adLayoutMetadata)?c.linearAdSequenceRenderer.adLayoutMetadata:void 0,f,A,B,h,H,R.loadPolicy,R.aE.get(),m)}if(!c.remoteSlotsRenderer||K){if(c.instreamVideoAdRenderer&& !e){if(G)return[];Bu(l,c,W);return dUq(R.X.get(),R.Z.get(),E,Q,c.instreamVideoAdRenderer,f,A,B,h,H,R.loadPolicy,R.aE.get(),R.Hh.get(),m)}if(c.instreamSurveyAdRenderer)return rJT(R.X.get(),R.Z.get(),c.instreamSurveyAdRenderer,E,Q,f,h,Nc(R.aE.get(),"supports_multi_step_on_desktop"));if(c.sandwichedLinearAdRenderer!=null)return poo(c.sandwichedLinearAdRenderer)?g.k(c.sandwichedLinearAdRenderer.adVideoStart,xs)?(BR("Found AdNotify in SandwichedLinearAdRenderer"),y=g.k(c.sandwichedLinearAdRenderer.adVideoStart, xs),OJ7(y)?(K=g.k(c.sandwichedLinearAdRenderer.linearAd,NY))?eMq(y,K,E,R.Y.get(),R.X.get(),R.Z.get(),R.Hh.get(),Q,f,A,B,h,H,R.loadPolicy,R.aE.get()):new q("Missing IVAR from Sandwich"):new q("Invalid AdMessageRenderer.")):bHc(R.X.get(),R.Z.get(),E,Q,[c.sandwichedLinearAdRenderer.adVideoStart,c.sandwichedLinearAdRenderer.linearAd],void 0,f,A,B,h,H,R.loadPolicy,R.aE.get()):new q("Received invalid SandwichedLinearAdRenderer.");if(c.videoAdTrackingRenderer!=null)return azr(R.X.get(),R.Z.get(),c.videoAdTrackingRenderer, E,Q,f,A,B.VU,h)}}return[]}; Ua=function(R,l,y,f,A,K,G,B){g.p.call(this);var H=this;this.X=R;this.L=l;this.j_=f;this.RE=A;this.aE=K;this.g7=G;this.ZN=B;this.Z=null;y.get().addListener(this);this.addOnDisposeCallback(function(){y.Fx()||y.get().removeListener(H)}); f.get().addListener(this);this.addOnDisposeCallback(function(){f.Fx()||f.get().removeListener(H)})}; SqQ=function(R,l,y){var f=R.RE.get().getCurrentTimeSec(1,!1);R.aE.get().G.U().PZ()&&Pf(R.g7.get(),"sdai","onopp.1;evt."+y.event+";start."+y.startSecs.toFixed(3)+";d."+y.G9.toFixed(3));fV(R.X.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var A=R.L.get(),K=l.adPlacementRenderer.renderer.adBreakServiceRenderer,G=l.contentCpn,B=l.adPlacementRenderer.adSlotLoggingData,H=Sw(R.aE.get()),n=R.g7;if(A.aE.get().G.U().experiments.EL("enable_smearing_expansion_dai")){var m=A.aE.get();m=g.yx(m.G.U().experiments, "max_prefetch_window_sec_for_livestream_optimization");H=A.aE.get();var h=g.yx(H.G.U().experiments,"min_prefetch_offset_sec_for_livestream_optimization");H={dk:U7s(y),MB:!1,cueProcessedMs:f*1E3};var c=y.startSecs+y.G9;if(f===0)H.vp=new u0(0,c*1E3);else{h=y.startSecs-h;var E=h-f;H.vp=E<=0?new u0(h*1E3,c*1E3):new u0(Math.floor(f+Math.random()*Math.min(E,m))*1E3,c*1E3)}m=H}else m={dk:U7s(y),MB:!1},c=y.startSecs+y.G9,y.startSecs<=f?H=new u0((y.startSecs-4)*1E3,c*1E3):(h=Math.max(0,y.startSecs-f-10),H= new u0(Math.floor(f+Math.random()*(H?f===0?0:Math.min(h,5):h))*1E3,c*1E3)),m.vp=H;K=G0(A,K,G,m,B,[new m5(y)]);jw(A.aE.get())&&Pf(n.get(),"abrsm","cpi."+y.identifier+";cps."+y.startSecs+";cpd."+y.G9+";cts."+f+";rbf."+m.vp.start);n.get().G.A6(y.startSecs-f,m.vp.start/1E3-f);return[K]})}; ks=function(R){var l,y=(l=Cm(R.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:l.current;if(!y)return null;l=Cm(R.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var f=R.layoutId,A=Cm(R.clientMetadata,"metadata_type_content_cpn"),K=Cm(R.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),G=Cm(R.clientMetadata,"metadata_type_player_overlay_layout_renderer"),B=Cm(R.clientMetadata,"metadata_type_player_underlay_renderer"),H=Cm(R.clientMetadata, "metadata_type_ad_placement_config"),n=Cm(R.clientMetadata,"metadata_type_video_length_seconds");var m=Dy(R.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?Cm(R.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):Dy(R.clientMetadata,"metadata_type_layout_enter_ms")&&Dy(R.clientMetadata,"metadata_type_layout_exit_ms")?(Cm(R.clientMetadata,"metadata_type_layout_exit_ms")-Cm(R.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{lx:f,contentCpn:A,uX:y,kF:l,instreamAdPlayerOverlayRenderer:K, playerOverlayLayoutRenderer:G,instreamAdPlayerUnderlayRenderer:B,adPlacementConfig:H,videoLengthSeconds:n,wd:m,inPlayerLayoutId:Cm(R.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Cm(R.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; kMQ=function(R,l){return jFQ(R,l)}; D7o=function(R,l){l=jFQ(R,l);if(!l)return null;var y;l.wd=(y=Cm(R.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:y.adBreakRemainingLengthSeconds;return l}; jFQ=function(R,l){var y,f=(y=Cm(R.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:y.current;if(!f)return null;y=atk(R,l);return{AT:GGj(R,l),adPlacementConfig:Cm(R.clientMetadata,"metadata_type_ad_placement_config"),UD:y,contentCpn:Cm(R.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:Cm(R.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Cm(R.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:Cm(R.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,wd:void 0,uX:f,lx:R.layoutId,videoLengthSeconds:Cm(R.clientMetadata,"metadata_type_video_length_seconds")}}; DX=function(R,l,y,f,A,K,G,B,H){g.p.call(this);this.Y=R;this.D=l;this.J=y;this.L=f;this.Z=A;this.X=K;this.Hh=G;this.aE=B;this.fX=H;this.OY=!0}; ZHT=function(R,l,y){return zM7(R.Z.get(),l.contentCpn,l.lx,function(f){return wOi(R.X.get(),f.slotId,y,l.adPlacementConfig,l.lx,lu(R.Hh.get(),f))})}; ZX=function(R,l,y,f,A,K,G,B){g.p.call(this);this.X=R;this.Z=l;this.L=y;this.aE=f;this.Y=A;this.fX=K;this.RE=G;this.aV=B}; J9=function(R){g.p.call(this);this.Z=R}; fV=function(R,l,y,f){R.Z().FJ(l,f);y=y();R=R.Z();R.gm.w1("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",l,f,y);l=g.u(y);for(y=l.next();!y.done;y=l.next())a:{f=R;y=y.value;f.gm.q$("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",y);f.gm.q$("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",y);try{var A=f.Z;if(g.d9(y.slotId))throw new q("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(Hl(A,y))throw new q("Duplicate registration for slot.",{slotId:y.slotId,slotEntryTriggerType:y.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!A.vE.FD.has(y.slotType))throw new q("No fulfillment adapter factory registered for slot of type: "+y.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!A.vE.Hi.has(y.slotType))throw new q("No SlotAdapterFactory registered for slot of type: "+y.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");bu(A,"TRIGGER_CATEGORY_SLOT_ENTRY",y.slotEntryTrigger?[y.slotEntryTrigger]:[]);bu(A,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", y.slotFulfillmentTriggers);bu(A,"TRIGGER_CATEGORY_SLOT_EXPIRATION",y.slotExpirationTriggers);var K=f.Z,G=y.slotType+"_"+y.slotPhysicalPosition,B=uu(K,G);if(Hl(K,y))throw new q("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");B.set(y.slotId,new Mcr(y));K.Z.set(G,B)}catch(Ac){Ac instanceof q&&Ac.p7?(f.gm.qC("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",Ac.p7,y),BR(Ac,y,void 0,void 0,Ac.u3)):(f.gm.qC("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", y),BR(Ac,y));break a}Hl(f.Z,y).D=!0;try{var H=f.Z,n=Hl(H,y),m=y.slotEntryTrigger,h=H.vE.HO.get(m.triggerType);h&&(h.OU("TRIGGER_CATEGORY_SLOT_ENTRY",m,y,null),n.xb.set(m.triggerId,h));for(var c=g.u(y.slotFulfillmentTriggers),E=c.next();!E.done;E=c.next()){var W=E.value,Q=H.vE.HO.get(W.triggerType);Q&&(Q.OU("TRIGGER_CATEGORY_SLOT_FULFILLMENT",W,y,null),n.LX.set(W.triggerId,Q))}for(var e=g.u(y.slotExpirationTriggers),r=e.next();!r.done;r=e.next()){var d=r.value,z=H.vE.HO.get(d.triggerType);z&&(z.OU("TRIGGER_CATEGORY_SLOT_EXPIRATION", d,y,null),n.B.set(d.triggerId,z))}var N=H.vE.FD.get(y.slotType).get().build(H.L,y);n.V=N;var D=H.vE.Hi.get(y.slotType).get().build(H.J,y);D.init();n.X=D}catch(Ac){Ac instanceof q&&Ac.p7?(f.gm.qC("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",Ac.p7,y),BR(Ac,y,void 0,void 0,Ac.u3)):(f.gm.qC("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",y),BR(Ac,y));aI(f,y,!0);break a}f.gm.q$("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",y);f.Z.nM(y);for(var t=g.u(f.X),C=t.next();!C.done;C= t.next())C.value.nM(y);oI(f,y)}}; gm=function(R,l,y,f,A){g.p.call(this);var K=this;this.X=R;this.L=l;this.Fc=y;this.context=A;this.Z=new Map;f.get().addListener(this);this.addOnDisposeCallback(function(){f.Fx()||f.get().removeListener(K)})}; jhQ=function(R,l){var y=0x8000000000000;var f=0;for(var A=g.u(l.slotFulfillmentTriggers),K=A.next();!K.done;K=A.next())K=K.value,K instanceof lk?(y=Math.min(y,K.Z.start),f=Math.max(f,K.Z.end)):BR("Found unexpected fulfillment trigger for throttled slot.",l,null,{fulfillmentTrigger:K});f=new u0(y,f);y="throttledadcuerange:"+l.slotId;R.Z.set(y,l);R.Fc.get().addCueRange(y,f.start,f.end,!1,R);mx(R.context.aE.get())&&(l=f.start,f=f.end,A={},R.context.Sa.MU("tcrr",(A.cid=y,A.sm=l,A.em=f,A)))}; Vk=function(){g.p.apply(this,arguments);this.OY=!0;this.Yh=new Map;this.Z=new Map}; Cs=function(R,l){R=g.u(R.Yh.values());for(var y=R.next();!y.done;y=R.next())if(y.value.layoutId===l)return!0;return!1}; qj=function(R,l){R=g.u(R.Z.values());for(var y=R.next();!y.done;y=R.next()){y=g.u(y.value);for(var f=y.next();!f.done;f=y.next())if(f=f.value,f.layoutId===l)return f}BR("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.d9(l)),layoutId:l})}; JJK=function(){this.Z=new Map}; gEY=function(R,l){this.callback=R;this.slot=l}; t9=function(){}; V6q=function(R,l,y){this.callback=R;this.slot=l;this.RE=y}; C5q=function(R,l,y){this.callback=R;this.slot=l;this.RE=y;this.X=!1;this.Z=0}; qqi=function(R,l,y){this.callback=R;this.slot=l;this.RE=y}; Ys=function(R){this.RE=R}; Mj=function(R){g.p.call(this);this.QF=R;this.DL=new Map}; R0=function(R,l){for(var y=[],f=g.u(R.DL.values()),A=f.next();!A.done;A=f.next()){A=A.value;var K=A.trigger;K instanceof cp&&K.triggeringLayoutId===l&&y.push(A)}y.length?Ob(R.QF(),y):BR("Survey is submitted but no registered triggers can be activated.")}; lL=function(R,l,y){Mj.call(this,R);var f=this;this.aE=y;l.get().addListener(this);this.addOnDisposeCallback(function(){l.Fx()||l.get().removeListener(f)})}; yP=function(R){g.p.call(this);this.Z=R;this.OY=!0;this.DL=new Map;this.J=new Set;this.L=new Set;this.Y=new Set;this.D=new Set;this.X=new Set}; fN=function(R){g.p.call(this);this.Z=R;this.DL=new Map}; Ak=function(R,l){for(var y=[],f=g.u(R.DL.values()),A=f.next();!A.done;A=f.next())A=A.value,A.trigger.Z===l.layoutId&&y.push(A);y.length&&Ob(R.Z(),y)}; KN=function(R,l,y){g.p.call(this);var f=this;this.Z=R;this.context=y;this.DL=new Map;l.get().addListener(this);this.addOnDisposeCallback(function(){l.Fx()||l.get().removeListener(f)})}; G5=function(R,l,y,f,A){g.p.call(this);var K=this;this.X=R;this.Fc=l;this.RE=y;this.fX=f;this.context=A;this.OY=!0;this.DL=new Map;this.Z=new Set;y.get().addListener(this);this.addOnDisposeCallback(function(){y.Fx()||y.get().removeListener(K)})}; t6r=function(R,l,y,f,A,K,G,B,H,n){if(Io(R.fX.get(),1).clientPlaybackNonce!==H)throw new q("Cannot register CueRange-based trigger for different content CPN",{trigger:y});R.DL.set(y.triggerId,{y9:new Wp(l,y,f,A),cueRangeId:K});R.Fc.get().addCueRange(K,G,B,n,R);mx(R.context.aE.get())&&(H={},R.context.Sa.MU("crr",(H.ca=l,H.tt=y.triggerType,H.st=f.slotType,H.lt=A==null?void 0:A.layoutType,H.cid=K,H.sm=G,H.em=B,H)))}; Yq9=function(R,l){R=g.u(R.DL.entries());for(var y=R.next();!y.done;y=R.next()){var f=g.u(y.value);y=f.next().value;f=f.next().value;if(l===f.cueRangeId)return y}return""}; a0=function(R,l){g.p.call(this);var y=this;this.Y=R;this.X=new Map;this.L=new Map;this.Z=null;l.get().addListener(this);this.addOnDisposeCallback(function(){l.Fx()||l.get().removeListener(y)}); var f;this.Z=((f=l.get().GO)==null?void 0:f.slotId)||null}; M6J=function(R,l){var y=[];R=g.u(R.values());for(var f=R.next();!f.done;f=R.next())f=f.value,f.slot.slotId===l&&y.push(f);return y}; s$=function(R){g.p.call(this);this.Z=R;this.OY=!0;this.DL=new Map}; nZ=function(R,l,y){l=l.layoutId;for(var f=[],A=g.u(R.DL.values()),K=A.next();!K.done;K=A.next())if(K=K.value,K.trigger instanceof KW){var G;if(G=K.trigger.layoutId===l){G=y;var B=JSq.get(K.category);G=B?B===G:!1}G&&f.push(K)}f.length&&Ob(R.Z(),f)}; B5=function(R){g.p.call(this);this.Z=R;this.OY=!0;this.DL=new Map}; H5=function(R,l,y,f,A){g.p.call(this);var K=this;this.D=R;this.j_=l;this.RE=y;this.g7=f;this.Z=null;this.J=this.L=!1;this.OY=!0;this.DL=new Map;l.get().addListener(this);this.addOnDisposeCallback(function(){l.Fx()||l.get().removeListener(K)}); A.get().addListener(this);this.addOnDisposeCallback(function(){A.Fx()||A.get().removeListener(K)})}; yhc=function(R){R.Z&&(R.L=!0,R.X&&(R.X.stop(),R.X.start()),R6j(R,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"),Pf(R.g7.get(),"ads_ce","bdc."+ly7(R).length))}; R6j=function(R,l){for(var y=[],f=g.u(R.DL.values()),A=f.next();!A.done;A=f.next())A=A.value,A.trigger.triggerType===l&&y.push(A);y.length>0&&Ob(R.D(),y)}; nN=function(R,l,y,f,A){for(var K=[],G=g.u(R.DL.values()),B=G.next();!B.done;B=G.next()){var H=B=B.value,n=H.trigger;H=H.slot;if(n.triggerType===l){if(n instanceof YP||n instanceof MB||n instanceof yI){if(A&&n.breakDurationMs!==y)continue;if(!A&&n.breakDurationMs===y)continue;if(f.has(H.slotId))continue}K.push(B)}}K.length>0&&Ob(R.D(),K)}; fyJ=function(R,l){l=(l.G9+1)*1E3;var y=void 0;R=g.u(R.DL.values());for(var f=R.next();!f.done;f=R.next()){var A=f.value;f=A.trigger;A=A.slot;f instanceof YP&&f.breakDurationMs<=l&&(!y||f.breakDurationMs>y.trigger.breakDurationMs)&&(y={slot:A,trigger:f})}return y}; Ah9=function(R){R=R.adPlacementRenderer.config.adPlacementConfig;if(!R.prefetchModeConfig||!R.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;R=Number(R.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(R)||R<=0?0:Math.floor(Math.random()*R)}; K5J=function(R){R=R.adPlacementRenderer.config.adPlacementConfig;if(R.prefetchModeConfig&&R.prefetchModeConfig.cacheFetchRefreshDurationMs&&(R=Number(R.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(R)||R<=0)))return R}; ml=function(R){R.Z=null;R.DL.clear();R.X&&R.X.stop();R.Y&&R.Y.stop()}; ly7=function(R){var l=[];R=g.u(R.DL.values());for(var y=R.next();!y.done;y=R.next())y=y.value.trigger,y instanceof YP&&l.push(y.breakDurationMs);return l}; o0=function(R){g.p.call(this);this.L=R;this.OY=!0;this.DL=new Map;this.Z=new Map;this.X=new Map}; GqQ=function(R,l){var y=[];if(l=R.Z.get(l.layoutId)){l=g.u(l);for(var f=l.next();!f.done;f=l.next())(f=R.X.get(f.value.triggerId))&&y.push(f)}return y}; hk=function(R){g.p.call(this);this.Z=R;this.DL=new Map}; ayi=function(R,l){for(var y=[],f=g.u(R.DL.values()),A=f.next();!A.done;A=f.next())A=A.value,A.trigger instanceof jG&&A.trigger.slotId===l&&y.push(A);y.length>=1&&Ob(R.Z(),y)}; sWT=function(R,l){var y={slotId:AP(l,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],AU:"surface",clientMetadata:new Vd([])},f=Object,A=f.assign;l=pd(l,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",y.slotId);l={layoutId:l,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",qU:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pl:[],AU:"surface", clientMetadata:new Vd([]),e1:Ue9(!1,y.slotId,y.slotType,y.slotPhysicalPosition,y.AU,y.slotEntryTrigger,y.slotFulfillmentTriggers,y.slotExpirationTriggers,l,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return A.call(f,{},R,{s_:!0,slot:y,layout:l})}; grr=function(R,l,y,f){var A=R.kind;f=f?!1:!R.hideCueRangeMarker;switch(A){case "AD_PLACEMENT_KIND_START":return f={dk:new u0(-0x8000000000000,-0x8000000000000),MB:f},y!=null&&(f.vp=new u0(-0x8000000000000,-0x8000000000000)),f;case "AD_PLACEMENT_KIND_END":return f={dk:new u0(0x7ffffffffffff,0x8000000000000),MB:f},y!=null&&(f.vp=new u0(Math.max(0,l-y),0x8000000000000)),f;case "AD_PLACEMENT_KIND_MILLISECONDS":A=R.adTimeOffset;A.offsetStartMilliseconds||BR("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); A.offsetEndMilliseconds||BR("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");R=Number(A.offsetStartMilliseconds);A=Number(A.offsetEndMilliseconds);A===-1&&(A=l);if(Number.isNaN(R)||Number.isNaN(A)||R>A)return new q("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:R,offsetEndMs:A},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",A===l&&R-500<=A);f={dk:new u0(R,A),MB:f};if(y!=null){R=Math.max(0,R-y);if(R===A)return f;f.vp=new u0(R,A)}return f; default:return new q("AdPlacementKind not supported in convertToRange.",{kind:A,adPlacementConfig:R})}}; U7s=function(R){var l=R.startSecs*1E3;return new u0(l,l+R.G9*1E3)}; B17=function(R){if(!R||!R.adPlacements&&!R.adSlots)return!1;for(var l=g.u(R.adPlacements||[]),y=l.next();!y.done;y=l.next())if(y=y.value)if(y=y.adPlacementRenderer,y!=null&&(y.config&&y.config.adPlacementConfig&&y.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;R=g.u(R.adSlots||[]);for(l=R.next();!l.done;l=R.next()){var f=y=void 0;if(((y=g.k(l.value,A9))==null?void 0:(f=y.adSlotMetadata)==null?void 0:f.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; c5=function(R){this.aE=R;this.X=new Map;this.Z=new Map;this.L=new Map}; AP=function(R,l){if(E$(R.aE.get())){var y=R.X.get(l)||0;y++;R.X.set(l,y);return l+"_"+y}return g.L6(16)}; pd=function(R,l,y){if(E$(R.aE.get())){var f=R.Z.get(l)||0;f++;R.Z.set(l,f);return y+"_"+l+"_"+f}return g.L6(16)}; ew=function(R,l){if(E$(R.aE.get())){var y=R.L.get(l)||0;y++;R.L.set(l,y);return l+"_"+y}return g.L6(16)}; Hms=function(R){var l=[new Ah(R.lx),new sB(R.uX),new Uq(R.adPlacementConfig),new oW(R.videoLengthSeconds),new XX(R.wd)];R.instreamAdPlayerOverlayRenderer&&l.push(new gE(R.instreamAdPlayerOverlayRenderer));R.playerOverlayLayoutRenderer&&l.push(new Vo(R.playerOverlayLayoutRenderer));R.kF&&l.push(new Dz(R.kF));return l}; nyY=function(R,l,y,f,A,K){R=y.inPlayerLayoutId?y.inPlayerLayoutId:pd(K,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",R);var G,B,H=y.instreamAdPlayerOverlayRenderer?(G=y.instreamAdPlayerOverlayRenderer)==null?void 0:G.adLayoutLoggingData:(B=y.playerOverlayLayoutRenderer)==null?void 0:B.adLayoutLoggingData;G={layoutId:R,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",AU:l};return{layoutId:R,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",qU:new Map,layoutExitNormalTriggers:[new qB(function(n){return ew(K, n)},y.lx)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pl:[],AU:l,clientMetadata:f,e1:A(G),adLayoutLoggingData:H}}; W5=function(R,l){var y=this;this.X=R;this.aE=l;this.Z=function(f){return ew(y.X.get(),f)}}; wOi=function(R,l,y,f,A,K){y=new Vd([new CH(y),new Uq(f)]);l=pd(R.X.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",l);f={layoutId:l,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",AU:"core"};return{layoutId:l,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",qU:new Map,layoutExitNormalTriggers:[new qB(function(G){return ew(R.X.get(),G)},A)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pl:[],AU:"core",clientMetadata:y,e1:K(f),adLayoutLoggingData:void 0}}; Ls=function(R,l,y,f,A){var K=Hms(f);return nyY(l,y,f,new Vd(K),A,R.X.get())}; m0Q=function(R,l,y,f,A){var K=Hms(f);K.push(new N7(f.AT));K.push(new pH(f.UD));return nyY(l,y,f,new Vd(K),A,R.X.get())}; Nj=function(R,l,y,f,A,K,G,B,H,n){l=pd(R.X.get(),y,l);var m={layoutId:l,layoutType:y,AU:"core"},h=new Map;G&&h.set("impression",G);G=[new fW(R.Z,A,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];n&&G.push(new CZ(R.Z,n,["normal"]));return{layoutId:l,layoutType:y,qU:h,layoutExitNormalTriggers:G,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pl:[],AU:"core",clientMetadata:new Vd([f,new Uq(K),new Ah(A)]),e1:B(m),adLayoutLoggingData:H}}; ps=function(R,l,y,f,A,K,G,B,H){l=pd(R.X.get(),y,l);var n={layoutId:l,layoutType:y,AU:"core"},m=[new fW(R.Z,A,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];H&&m.push(new CZ(R.Z,H,["normal"]));return{layoutId:l,layoutType:y,qU:new Map,layoutExitNormalTriggers:m,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pl:[],AU:"core",clientMetadata:new Vd([f,new Uq(K),new Ah(A)]),e1:G(n),adLayoutLoggingData:B}}; X$=function(R,l,y){var f=[];f.push(new AG(R.Z,y));l&&f.push(l);return f}; bD=function(R,l,y,f,A,K,G){var B={layoutId:l,layoutType:y,AU:"core"};return{layoutId:l,layoutType:y,qU:new Map,layoutExitNormalTriggers:G,layoutExitSkipTriggers:[new Z5(R.Z,l)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pl:[],AU:"core",clientMetadata:new Vd([new zM(f),new Uq(A)]),e1:K(B),adLayoutLoggingData:f.adLayoutLoggingData}}; h9=function(R,l,y,f,A,K,G,B){var H={layoutId:l,layoutType:K,AU:"core"};return{layoutId:l,layoutType:K,qU:new Map,layoutExitNormalTriggers:[new qB(R.Z,y)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pl:[],AU:"core",clientMetadata:new Vd([new Uq(f)].concat(g.ci(G))),e1:A(H),adLayoutLoggingData:B}}; dm=function(R,l,y,f){if(R.aE.get().Y4(l.kind==="AD_PLACEMENT_KIND_START"))if(y===void 0)BR("Expected SSAP layout ID in renderer",void 0,void 0,{caller:f});else return y}; hfr=function(R,l,y,f,A,K,G,B,H,n,m,h,c){R=T0(R,l,y,A,K,G,B,H,h,dm(R,y,f.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),c);l=R.HP;y=new Km(R.SB);f=R.layoutExitSkipTriggers;n>0&&(l.push(y),l.push(new kE(n)),f=[]);l.push(new j6(m));return{pM:{layoutId:R.layoutId,layoutType:R.layoutType,qU:R.qU,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pl:[],AU:R.AU,clientMetadata:new Vd(l),e1:R.e1,adLayoutLoggingData:R.adLayoutLoggingData}, bP:f,T8:R.layoutExitMuteTriggers,rP:R.layoutExitUserInputSubmittedTriggers,MQ:R.Pl,nS:R.nS}}; L7c=function(R,l,y,f,A,K,G,B,H,n){l=T0(R,l,y,f,K,new Map,G,function(m){return B(m,H)},void 0,dm(R,y,A.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); R=new cp(R.Z,l.SB);y=new Km(l.SB);n=new j6(n);return{pM:{layoutId:l.layoutId,layoutType:l.layoutType,qU:l.qU,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pl:[],AU:l.AU,clientMetadata:new Vd([].concat(g.ci(l.HP),[y,n])),e1:l.e1,adLayoutLoggingData:l.adLayoutLoggingData},bP:l.layoutExitSkipTriggers,T8:l.layoutExitMuteTriggers,rP:[].concat(g.ci(l.layoutExitUserInputSubmittedTriggers),[R]),MQ:l.Pl,nS:l.nS}}; T0=function(R,l,y,f,A,K,G,B,H,n,m){l=n!=null?n:pd(R.X.get(),"LAYOUT_TYPE_MEDIA_BREAK",l);n={layoutId:l,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",AU:"adapter"};B=B(l);var h=Cm(B.clientMetadata,"metadata_type_fulfilled_layout");h||BR("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var c=h?h.layoutId:"";y=[new Uq(y),new Tq(f),new ve(A)];h&&y.push(new Gq(h.layoutType));m&&y.push(new OB(m));return{layoutId:l,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", qU:K,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new s4(R.Z,c)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pl:[],AU:"adapter",HP:y,e1:G(n),adLayoutLoggingData:H,nS:B,SB:c}}; rx7=function(R,l,y,f,A,K,G,B,H,n,m){R=oyZ(R,l,"core",y,f,A,K,G,B,H,n,void 0,m);return{layoutId:R.layoutId,layoutType:R.layoutType,qU:R.qU,layoutExitNormalTriggers:R.layoutExitNormalTriggers,layoutExitSkipTriggers:R.layoutExitSkipTriggers,layoutExitMuteTriggers:R.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:R.layoutExitUserInputSubmittedTriggers,Pl:R.Pl,AU:R.AU,clientMetadata:new Vd(R.BS),e1:R.e1,adLayoutLoggingData:R.adLayoutLoggingData}}; TE7=function(R,l,y,f,A,K,G,B,H,n,m,h,c){l=oyZ(R,l,"adapter",y,f,A,K,G,B,H,m,h,c);f=l.layoutExitSkipTriggers;A=l.BS;y.adPodSkipTarget&&y.adPodSkipTarget>0&&(A.push(n),A.push(new kE(y.adPodSkipTarget)),f=[]);A.push(new j6(B.adPodIndex));y.isCritical&&(f=[new CZ(R.Z,l.layoutId,["error"])].concat(g.ci(f)));return{pM:{layoutId:l.layoutId,layoutType:l.layoutType,qU:l.qU,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pl:[],AU:l.AU, clientMetadata:new Vd(A),e1:l.e1,adLayoutLoggingData:l.adLayoutLoggingData},bP:f,T8:l.layoutExitMuteTriggers,rP:l.layoutExitUserInputSubmittedTriggers,MQ:l.Pl}}; oyZ=function(R,l,y,f,A,K,G,B,H,n,m,h,c){var E={layoutId:l,layoutType:"LAYOUT_TYPE_MEDIA",AU:y};A=[new Uq(A),new S6(H),new Zz(f.externalVideoId),new JJ(B),new ve({impressionCommands:f.impressionCommands,abandonCommands:f.onAbandonCommands,completeCommands:f.completeCommands,progressCommands:f.adVideoProgressCommands}),new hh(K),new Be({current:null}),new oW(G)];(K=f.playerOverlay.instreamAdPlayerOverlayRenderer)&&A.push(new gE(K));(G=f.playerOverlay.playerOverlayLayoutRenderer)&&A.push(new Vo(G)); h&&A.push(new ce(h));(h=f.playerUnderlay)&&A.push(new CH(h));B=AP(R.X.get(),"SLOT_TYPE_IN_PLAYER");h=(h=K?K.elementId:G==null?void 0:G.layoutId)?h:pd(R.X.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",B);A.push(new Km(h));A.push(new aW(B));A.push(new OB(H.adPodIndex));f.adNextParams&&A.push(new rE(f.adNextParams));f.shrunkenPlayerBytesConfig&&A.push(new YE(f.shrunkenPlayerBytesConfig));f.clickthroughEndpoint&&A.push(new vz(f.clickthroughEndpoint));f.legacyInfoCardVastExtension&&A.push(new d1(f.legacyInfoCardVastExtension)); f.sodarExtensionData&&A.push(new EB(f.sodarExtensionData));m&&A.push(new bb(m));A.push(new IW(oi(f.pings)));H=hP(f.pings);if(c){a:{c=g.u(c);for(m=c.next();!m.done;m=c.next())if(m=m.value,m.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(K=g.k(m.fulfillmentContent.fulfilledLayout,VI))&&(K=g.k(K.renderingContent,JG))&&K.associatedPlayerBytesLayoutId===l){c=m;break a}c=void 0}c&&A.push(new q7(c))}return{layoutId:l,layoutType:"LAYOUT_TYPE_MEDIA",qU:H,layoutExitNormalTriggers:[new KW(R.Z,l)],layoutExitSkipTriggers:f.skipOffsetMilliseconds? [new s4(R.Z,h)]:[],layoutExitMuteTriggers:[new s4(R.Z,h)],layoutExitUserInputSubmittedTriggers:[],Pl:[],AU:y,BS:A,e1:n(E),adLayoutLoggingData:f.adLayoutLoggingData}}; PEk=function(R,l,y,f,A,K,G,B,H){f.every(function(m){return Zy(m,[],["LAYOUT_TYPE_MEDIA"])})||BR("Unexpect subLayout type for DAI composite layout"); l=pd(R.X.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",l);var n={layoutId:l,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",AU:"core"};return{layoutId:l,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",qU:new Map,layoutExitNormalTriggers:[new t6(R.Z)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Pl:[],AU:"core",clientMetadata:new Vd([new We(y),new Lm(B),new nm(f),new Uq(A),new FX(K),new ib({}),new pm(H)]),e1:G(n)}}; EfY=function(R){return R!=null}; LN=function(R,l,y){var f=this;this.X=R;this.L=l;this.aE=y;this.Z=function(A){return ew(f.X.get(),A)}}; pzZ=function(R,l,y,f,A,K,G){if(!y.prefetchModeConfig)return new q("AdPlacementConfig for Live Prefetch is missing prefetch_config");y=y.prefetchModeConfig;f*=1E3;var B=[];if(!y.breakLengthMs)return new q("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var H=g.u(y.breakLengthMs),n=H.next();!n.done;n=H.next())if(n=n.value,Number(n)>0){var m=f+Number(y.startTimeOffsetMs),h=m+Number(y.cacheFetchSmearingDurationMs);n={dk:new u0(h,h+Number(n)),MB:!1,vp:new u0(Math.floor(m+Math.random()* Number(y.cacheFetchSmearingDurationMs)),h),cueProcessedMs:f?f:m};m=[];m.push(new ky({}));h=[];h.push(new aS(R.Z));h.push(new a3Y(R.Z));G&&m.push(new ib({}));B.push(G0(R,l,A,n,K,m,h))}return B}; G0=function(R,l,y,f,A,K,G){K=K===void 0?[]:K;var B=AP(R.X.get(),"SLOT_TYPE_AD_BREAK_REQUEST");G||(G=[],f.vp&&f.vp.start!==f.dk.start&&G.push(new lk(R.Z,y,new u0(f.vp.start,f.dk.start),!1)),G.push(new lk(R.Z,y,new u0(f.dk.start,f.dk.end),f.MB)));f={getAdBreakUrl:l.getAdBreakUrl,J9:f.dk.start,Dx:f.dk.end,cueProcessedMs:f.cueProcessedMs};l=new mV(R.Z,B);K=[new $y(f)].concat(g.ci(K));return{slotId:B,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:G, slotExpirationTriggers:[new Gc(R.Z,y),new Hp(R.Z,B),new nW(R.Z,B)],AU:"core",clientMetadata:new Vd(K),adSlotLoggingData:A}}; chc=function(R,l,y){var f=[];y=g.u(y);for(var A=y.next();!A.done;A=y.next())f.push(h6j(R,l,A.value));return f}; h6j=function(R,l,y){return y.triggeringSlotId!=null&&y.triggeringSlotId===R?y.clone(l):y}; K0q=function(R,l,y,f,A){return Ey7(R,l,y,f,A)}; cJi=function(R,l,y,f){var A=AP(R.X.get(),"SLOT_TYPE_IN_PLAYER");return Ey7(R,A,l,y,f)}; Ey7=function(R,l,y,f,A){var K=new Vq(R.Z,y),G=[new Bp(R.Z,l)];R=[new Hp(R.Z,l),new Gc(R.Z,f)];return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:K,slotFulfillmentTriggers:G,slotExpirationTriggers:R,AU:"core",clientMetadata:new Vd([new Qd(A({slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,AU:"core",slotEntryTrigger:K,slotFulfillmentTriggers:G,slotExpirationTriggers:R},y))]),adSlotLoggingData:void 0}}; d7j=function(R,l,y,f,A,K){var G=AP(R.X.get(),"SLOT_TYPE_PLAYER_BYTES"),B=AP(R.X.get(),"SLOT_TYPE_IN_PLAYER"),H=pd(R.X.get(),"LAYOUT_TYPE_SURVEY",B);f=O$(R,l,y,f);var n=[new Bp(R.Z,G)];y=[new Hp(R.Z,G),new Gc(R.Z,y),new Z5(R.Z,H)];if(f instanceof q)return f;B=K({slotId:G,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,AU:"core",slotEntryTrigger:f,slotFulfillmentTriggers:n,slotExpirationTriggers:y},{slotId:B,layoutId:H});K=B.L$b;B=B.TQ;return[{slotId:G,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:vu(R,l,G,f),slotFulfillmentTriggers:z0(R,l,G,n),slotExpirationTriggers:y,AU:"core",clientMetadata:new Vd([new Qd(K),new UB(wm(l)),new jK({MS:R.MS(l)})]),adSlotLoggingData:A},B]}; wm=function(R){return R.kind==="AD_PLACEMENT_KIND_START"}; vfk=function(R,l,y,f,A){A=A?A:AP(R.X.get(),"SLOT_TYPE_IN_PLAYER");y=new Vq(R.Z,y);var K=[new Bp(R.Z,A)];R=[new Gc(R.Z,l),new Hp(R.Z,A)];return{slotId:A,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:y,slotFulfillmentTriggers:K,slotExpirationTriggers:R,AU:"core",clientMetadata:new Vd([new Qd(f({slotId:A,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,AU:"core",slotEntryTrigger:y,slotFulfillmentTriggers:K,slotExpirationTriggers:R}))])}}; zM7=function(R,l,y,f){var A=AP(R.X.get(),"SLOT_TYPE_PLAYER_UNDERLAY");y=new Vq(R.Z,y);var K=[new Bp(R.Z,A)];R=[new Gc(R.Z,l),new Hp(R.Z,A)];return{slotId:A,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:y,slotFulfillmentTriggers:K,slotExpirationTriggers:R,AU:"core",clientMetadata:new Vd([new Qd(f({slotId:A,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,AU:"core",slotEntryTrigger:y,slotFulfillmentTriggers:K,slotExpirationTriggers:R}))])}}; Q3K=function(R,l,y,f,A,K,G){var B=AP(R.X.get(),"SLOT_TYPE_IN_PLAYER"),H=pd(R.X.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",B);f=W5K(R,f,K,G,H);if(f instanceof q)return f;G=[new Bp(R.Z,B)];A=[new Gc(R.Z,K),new Bp(R.Z,A),new hG(R.Z,A)];y=lu(y,{slotId:B,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,AU:"core",slotEntryTrigger:f,slotFulfillmentTriggers:G,slotExpirationTriggers:A});R=R.L.get();K={layoutId:H,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",AU:"core"};l={layoutId:H,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", qU:new Map,layoutExitNormalTriggers:[new cVq(R.Z,H,l.durationMs)],layoutExitSkipTriggers:[new Wdc(R.Z,H,l.durationMs)],Pl:[new Erc(R.Z,H)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],AU:"core",clientMetadata:new Vd([new r1(l)]),e1:y(K)};return{slotId:B,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,AU:"core",slotEntryTrigger:f,slotFulfillmentTriggers:G,slotExpirationTriggers:A,clientMetadata:new Vd([new Qd(l)])}}; m7r=function(R,l,y,f,A,K){l=O$(R,l,y,f);if(l instanceof q)return l;var G=l instanceof lk?new mW9(R.Z,y,l.Z):null;f=AP(R.X.get(),"SLOT_TYPE_IN_PLAYER");var B=[new Bp(R.Z,f)];R=[new Gc(R.Z,y),new Hp(R.Z,f)];K=K({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,AU:"core",slotEntryTrigger:l,slotFulfillmentTriggers:B,slotExpirationTriggers:R},G);return K instanceof g1?new q(K):{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:B,slotExpirationTriggers:R, AU:"core",clientMetadata:new Vd([new Qd(K)]),adSlotLoggingData:A}}; HHT=function(R,l,y,f){var A=AP(R.X.get(),"SLOT_TYPE_IN_PLAYER"),K=new D5(R.Z,l),G=[new oS(R.Z,A)];R=[new Gc(R.Z,l),new Hp(R.Z,A)];return{slotId:A,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:K,slotFulfillmentTriggers:G,slotExpirationTriggers:R,AU:"core",clientMetadata:new Vd([new Qd(f({slotId:A,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,AU:"core",slotEntryTrigger:K,slotFulfillmentTriggers:G,slotExpirationTriggers:R}))]),adSlotLoggingData:y}}; nfj=function(R,l,y,f){var A=AP(R.X.get(),"SLOT_TYPE_IN_PLAYER");y=new Vq(R.Z,y);var K=[new Bp(R.Z,A)],G=[new Hp(R.Z,A),new Gc(R.Z,l)];K={slotId:A,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,AU:"core",slotEntryTrigger:y,slotFulfillmentTriggers:K,slotExpirationTriggers:G};return{slotId:A,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:y,slotFulfillmentTriggers:[new Bp(R.Z,A)],slotExpirationTriggers:[new Gc(R.Z,l),new Hp(R.Z,A)],AU:"core",clientMetadata:new Vd([new Qd(f(K))])}}; s3k=function(R,l,y,f,A){var K=AP(R.X.get(),"SLOT_TYPE_IN_PLAYER");y=new g5(R.Z,f,y);f=[new Bp(R.Z,K)];R=[new Gc(R.Z,l)];return{slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:y,slotFulfillmentTriggers:f,slotExpirationTriggers:R,AU:"core",clientMetadata:new Vd([new Qd(A({slotId:K,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,AU:"core",slotEntryTrigger:y,slotFulfillmentTriggers:f,slotExpirationTriggers:R}))])}}; yxZ=function(R,l,y,f,A,K){var G=AP(R.X.get(),l);return iL(R,G,l,new Vq(R.Z,f),[new Gc(R.Z,y),new Hp(R.Z,G),new CZ(R.Z,f,["error"])],A,K)}; lET=function(R,l,y,f,A,K,G){var B=AP(R.X.get(),l);return iL(R,B,l,new CZ(R.Z,A,["normal"]),[new Gc(R.Z,y),new Hp(R.Z,B),new CZ(R.Z,f,["error"])],K,G)}; tei=function(R,l,y,f,A){var K=AP(R.X.get(),l);return iL(R,K,l,new D5(R.Z,y),[new Gc(R.Z,y),new Hp(R.Z,K)],f,A)}; GMk=function(R,l,y,f,A){y=y?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var K=AP(R.X.get(),y);l=new D5(R.Z,l);var G=[new Bp(R.Z,K)];R=[new Hp(R.Z,K)];return{slotId:K,slotType:y,slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:G,slotExpirationTriggers:R,AU:"core",clientMetadata:new Vd([new Qd(A({slotId:K,slotType:y,slotPhysicalPosition:1,AU:"core",slotEntryTrigger:l,slotFulfillmentTriggers:G,slotExpirationTriggers:R}))]),adSlotLoggingData:f}}; W0K=function(R,l,y,f){var A=AP(R.X.get(),"SLOT_TYPE_PLAYER_BYTES"),K=new RS(R.Z),G=[new oS(R.Z,A)];R=[new Gc(R.Z,l)];return{slotId:A,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:K,slotFulfillmentTriggers:G,slotExpirationTriggers:R,AU:"core",clientMetadata:new Vd([new Qd(f({slotId:A,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,AU:"core",slotEntryTrigger:K,slotFulfillmentTriggers:G,slotExpirationTriggers:R})),new ib({})]),adSlotLoggingData:y}}; $7o=function(R,l){return IzT(R.aE.get())?new CZ(R.Z,l,["normal","error","skipped"]):new CZ(R.Z,l,["normal"])}; XOT=function(R,l,y,f,A){l=$7o(R,l);R=rm(R,l,y);A=A({slotId:R.slotId,slotType:R.slotType,slotPhysicalPosition:R.slotPhysicalPosition,slotEntryTrigger:R.slotEntryTrigger,slotFulfillmentTriggers:R.slotFulfillmentTriggers,slotExpirationTriggers:R.slotExpirationTriggers,AU:R.AU});return A instanceof q?A:{VB:Object.assign({},R,{clientMetadata:new Vd([new Qd(A.layout)]),adSlotLoggingData:f}),s9:A.s9}}; T8Z=function(R,l,y,f,A,K,G){y=efc(R,l,y,f);if(y instanceof q)return y;G=G({slotId:y.slotId,slotType:y.slotType,slotPhysicalPosition:y.slotPhysicalPosition,slotEntryTrigger:y.slotEntryTrigger,slotFulfillmentTriggers:y.slotFulfillmentTriggers,slotExpirationTriggers:y.slotExpirationTriggers,AU:y.AU});if(G instanceof q)return G;f=[new UB(wm(l)),new Qd(G.layout),new jK({MS:R.MS(l)})];K&&f.push(new zq({}));return{VB:{slotId:y.slotId,slotType:y.slotType,slotPhysicalPosition:y.slotPhysicalPosition,slotEntryTrigger:vu(R, l,y.slotId,y.slotEntryTrigger),slotFulfillmentTriggers:z0(R,l,y.slotId,y.slotFulfillmentTriggers),slotExpirationTriggers:y.slotExpirationTriggers,AU:y.AU,clientMetadata:new Vd(f),adSlotLoggingData:A},s9:G.s9}}; vu=function(R,l,y,f){return R.aE.get().Y4(wm(l))?new jG(R.Z,y):f}; z0=function(R,l,y,f){return R.aE.get().Y4(wm(l))?[new oS(R.Z,y)]:f}; rm=function(R,l,y){var f=AP(R.X.get(),"SLOT_TYPE_PLAYER_BYTES"),A=[new Bp(R.Z,f)];R=[new Hp(R.Z,f),new Gc(R.Z,y)];return{slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:A,slotExpirationTriggers:R,AU:"core"}}; efc=function(R,l,y,f){l=O$(R,l,y,f);return l instanceof q?l:rm(R,l,y)}; sFQ=function(R,l,y,f,A,K){var G=AP(R.X.get(),"SLOT_TYPE_FORECASTING");l=O$(R,l,y,f);if(l instanceof q)return l;f=[new Bp(R.Z,G)];R=[new Hp(R.Z,G),new Gc(R.Z,y)];return{slotId:G,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:f,slotExpirationTriggers:R,AU:"core",clientMetadata:new Vd([new Qd(K({slotId:G,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,AU:"core",slotEntryTrigger:l,slotFulfillmentTriggers:f,slotExpirationTriggers:R}))]),adSlotLoggingData:A}}; L5s=function(R,l,y,f,A){var K=!l.hideCueRangeMarker;switch(l.kind){case "AD_PLACEMENT_KIND_START":return new D5(R.Z,y);case "AD_PLACEMENT_KIND_MILLISECONDS":return R=grr(l,f),R instanceof q?R:A(R.dk,K);case "AD_PLACEMENT_KIND_END":return new J6(R.Z,y,K);default:return new q("Cannot construct entry trigger",{kind:l.kind})}}; W5K=function(R,l,y,f,A){return L5s(R,l,y,f,function(K,G){return new nrr(R.Z,y,K,G,A)})}; O$=function(R,l,y,f){return L5s(R,l,y,f,function(A,K){return new lk(R.Z,y,A,K)})}; iL=function(R,l,y,f,A,K,G){R=[new oS(R.Z,l)];return{slotId:l,slotType:y,slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:R,slotExpirationTriggers:A,AU:"core",clientMetadata:new Vd([new Qd(G({slotId:l,slotType:y,slotPhysicalPosition:1,AU:"core",slotEntryTrigger:f,slotFulfillmentTriggers:R,slotExpirationTriggers:A}))]),adSlotLoggingData:K}}; P5=function(R,l){g.p.call(this);this.aE=R;this.Z=l;this.eventCount=0}; uL=function(R,l,y,f){P5.call(this,R,l);this.aE=R;this.fX=y;this.context=f}; Ff=function(){this.Z=new Map}; QP=function(R){this.Z="pending";this.X=[];this.L=[];try{R(this.Y.bind(this),this.reject.bind(this))}catch(l){this.reject(l)}}; Om7=function(){var R,l;return{oF:new QP(function(y,f){R=y;l=f}), resolve:R,reject:l}}; bL=function(R){return $n(R)?R:e9(R)?new QP(function(l,y){R.then(l,y)}):new QP(function(l){l(R)})}; Xf=function(R){return new QP(function(l,y){y(R)})}; T5=function(R){try{return bL(R())}catch(l){return Xf(l)}}; rZ=function(R,l,y){var f=Om7(),A=f.oF,K=f.resolve,G=f.reject;R.X.push(function(B){if(l)try{var H=l(B);K(H)}catch(n){G(n)}else K(B)}); R.L.push(function(B){if(y)try{var H=y(B);K(H)}catch(n){G(n)}else G(B)}); dZ(R);return A}; v5=function(R,l){return rZ(R,void 0,l)}; imq=function(R,l){rZ(R,function(y){return rZ(bL(l()),function(){return y})},function(y){return rZ(bL(l()),function(){return Xf(y)})})}; dZ=function(R){if(R.Z==="fulfilled"){var l=R.X;R.X=[];R.L=[];l=g.u(l);for(var y=l.next();!y.done;y=l.next())y=y.value,y(R.result)}else if(R.Z==="rejected")for(l=R.L,R.X=[],R.L=[],l=g.u(l),y=l.next();!y.done;y=l.next())y=y.value,y(R.error)}; z5=function(R,l){return PbJ(l.call(R))}; wZ=function(R){return function y(){return UY(y,function(f){if(f.X==1)return g.eJ(f,2),g.v(f,{oF:bL(R)},4);if(f.X!=2)return f.return(f.Z);g.zT(f);return g.x7(f,0)})}()}; PbJ=function(R){return T5(function(){return xn(R,R.next())})}; xn=function(R,l){return l.done?bL(l.value):v5(rZ(l.value.oF,function(y){return xn(R,R.next(y))}),function(y){return xn(R,R.throw(y))})}; I0=function(R,l){if(R.length===0)return bL(NaN);var y=Om7(),f=y.oF,A=y.resolve,K=R.length;R=g.u(R.entries());var G=R.next();for(y={};!G.done;y={hW:void 0},G=R.next()){var B=g.u(G.value);G=B.next().value;B=B.next().value;y.hW=G;imq(B,function(H){return function(){f.Z==="pending"&&(uXT(l)&&l(H.hW)&&f.Z==="pending"?A(H.hW):(--K,K===0&&A(NaN)))}}(y))}return f}; N6=function(R){return R.map(function(l){return bL(l)})}; U$=function(R){var l=R.hours||0;var y=R.minutes||0,f=R.seconds||0;l=f+y*60+l*3600+(R.days||0)*86400+(R.weeks||0)*604800+(R.months||0)*2629800+(R.years||0)*31557600;l<=0?l={hours:0,minutes:0,seconds:0}:(R=l,l=Math.floor(R/3600),R%=3600,y=Math.floor(R/60),f=Math.floor(R%60),l={hours:l,minutes:y,seconds:f});var A=l.hours===void 0?0:l.hours;y=l.minutes===void 0?0:l.minutes;R=l.seconds===void 0?0:l.seconds;f=A>0;l=[];if(f){A=(new Intl.NumberFormat("en-u-nu-latn")).format(A);var K=["fr"],G="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(" "); A="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(pN)?A.replace(",","\u00a0"):K.includes(pN)?A.replace(",","\u202f"):G.includes(pN)?A.replace(",","."):A;l.push(A)}f=f===void 0?!1:f;y=(["af","be","lt"].includes(pN)||f)&&y<10?F5c().format(y):(new Intl.NumberFormat("en-u-nu-latn")).format(y);l.push(y);y=F5c().format(R);l.push(y);y=":";"da fi id si sr sr-Latn".split(" ").includes(pN)&&(y=".");return l.join(y)}; F5c=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; QWQ=function(R,l){var y,f;R=((y=R.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(f=y.videoAuthorizationToken)==null?void 0:f.credentialTransferTokens)||[];for(y=0;yl;R=y}else R=!1;return R}; g.yz=function(R,l){return R.v0+"timedtext_video?ref=player&v="+l.videoId}; g.kqQ=function(R){var l=this;this.videoData=R;R={};this.Z=(R.c1a=function(){var y=[];if(g.Re.isInitialized()){var f="";l.videoData&&l.videoData.Jx&&(f=l.videoData.Jx+("&r1b="+l.videoData.clientPlaybackNonce));var A={};f=(A.atr_challenge=f,A);vo("bg_v",void 0,"player_att");(f=jWs(f))?(vo("bg_s",void 0,"player_att"),y.push("r1a="+f)):(vo("bg_e",void 0,"player_att"),y.push("r1c=2"))}else vo("bg_e",void 0,"player_att"),window.trayride||window.botguard?y.push("r1c=1"):y.push("r1c=4");y.push("r1d="+g.Re.getState()); return y.join("&")},R.c6a=function(y){return"r6a="+(Number(y.c)^tV())},R.c6b=function(y){return"r6b="+(Number(y.c)^Number(g.JZ("CATSTAT",0)))},R); this.videoData&&this.videoData.Jx?this.pm=Rw(this.videoData.Jx):this.pm={}}; g.D0q=function(R){if(R.videoData&&R.videoData.Jx){for(var l=[R.videoData.Jx],y=g.u(Object.keys(R.Z)),f=y.next();!f.done;f=y.next())f=f.value,R.pm[f]&&R.Z[f]&&(f=R.Z[f](R.pm))&&l.push(f);return l.join("&")}return null}; g.fA=function(R,l){SB7(R,{Y9$:g.yx(l.experiments,"bg_vm_reinit_threshold"),cspNonce:l.cspNonce,v0:l.v0||""})}; ZmZ=function(){var R=XMLHttpRequest.prototype.fetch;return!!R&&R.length===3}; Jhq=function(R){R=R[a[24]](a[1]);AN[a[56]](R,36);AN[a[2]](R,2);AN[a[50]](R,2);AN[a[56]](R,48);AN[a[2]](R,18);AN[a[56]](R,17);AN[a[56]](R,46);AN[a[50]](R,2);AN[a[2]](R,29);return R[a[29]](a[1])}; VKq=function(R){gyK=2592E3*(R||1)}; KA=function(R){R=R===void 0?gyK:R;if(R>0&&!(V1J()>(0,g.eY)()-R*1E3))return 0;R=g.zI("yt-player-quality");if(typeof R==="string"){if(R=g.bz[R],R>0)return R}else if(R instanceof Object)return R.quality;return 0}; Gk=function(){var R=g.zI("yt-player-proxima-pref");return R==null?null:R}; Cbk=function(){var R=g.zI("yt-player-quality");if(R instanceof Object&&R.quality&&R.previousQuality){if(R.quality>R.previousQuality)return 1;if(R.quality0&&l[0]?R.getAutoplayPolicy(l[0]):R.getAutoplayPolicy("mediaelement");if(yqK[y])return yqK[y]}}catch(f){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; oe=function(R){return R.o9||R.Hf||R.mutedAutoplay}; f_j=function(R,l){return oe(R)?l!==1&&l!==2&&l!==0?"AUTOPLAY_STATUS_UNAVAILABLE":R.yv?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; AqK=function(R,l,y){var f=l.U();R.thirdParty||(R.thirdParty={});f.ancestorOrigins&&(R.thirdParty.embeddedPlayerContext=Object.assign({},R.thirdParty.embeddedPlayerContext,{ancestorOrigins:f.ancestorOrigins}));f.C("embeds_enable_autoplay_and_visibility_signals")&&(f.ZT!=null&&(R.thirdParty.embeddedPlayerContext=Object.assign({},R.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(f.ZT)})),f.XW&&(R.thirdParty.embeddedPlayerContext=Object.assign({},R.thirdParty.embeddedPlayerContext,{visibilityFractionSource:f.XW})), R.thirdParty.embeddedPlayerContext=Object.assign({},R.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:mc(),autoplayIntended:oe(l),autoplayStatus:f_j(l,y)}))}; a_9=function(R,l){VH(R,2,l.CN,hN,3);VH(R,3,l.kq,KfQ,3);xf(R,4,l.onesieUstreamerConfig);xf(R,9,l.QW);VH(R,10,l.VQ,cq,3);VH(R,15,l.reloadPlaybackParams,GFr,3)}; Bwr=function(R,l){VH(R,1,l.formatId,EA,3);zJ(R,2,l.startTimeMs);zJ(R,3,l.durationMs);zJ(R,4,l.kh);zJ(R,5,l.Mj);VH(R,9,l.eM7,sIQ,3);VH(R,11,l.s4X,Wq,1);VH(R,12,l.hq,Wq,1)}; Hdj=function(R,l){g8(R,1,l.videoId);zJ(R,2,l.lmt)}; sIQ=function(R,l){if(l.DJ)for(var y=0;y>31));zJ(R,16,l.zQ);zJ(R,17,l.detailedNetworkType);zJ(R,18,l.Qo);zJ(R,19,l.R5);zJ(R,21,l.IKb);zJ(R,23,l.wX);zJ(R,28,l.SL);zJ(R,29,l.vr$);zJ(R,34,l.visibility);y=l.playbackRate;if(y!==void 0){var f=new ArrayBuffer(4);(new Float32Array(f))[0]=y;y=(new Uint32Array(f))[0];if(y!==void 0)for(vO(R,285),r8(R,4),f=0;f<4;)R.view.setUint8(R.pos,y&255),y>>=8,R.pos+=1,f+=1}zJ(R,36,l.Xl); VH(R,38,l.mediaCapabilities,cqj,3);zJ(R,39,l.Piq);zJ(R,40,l.EW);zJ(R,44,l.playerState);w8(R,46,l.iz);zJ(R,48,l.Bt);zJ(R,50,l.mA);zJ(R,51,l.Li);zJ(R,54,l.N2);if(l.vS)for(y=0;y>31));g8(R,2,l.message)}; QIs=function(R,l){zJ(R,1,l.clientState);VH(R,2,l.wo7,uMi,1)}; Pur=function(R,l){xf(R,1,l.dl1);VH(R,2,l.Ak9,Ffr,3);VH(R,3,l.coldStartInfo,QIs,3)}; idk=function(R,l){zJ(R,1,l.type);xf(R,2,l.value)}; OdK=function(R,l){g8(R,1,l.hl);g8(R,12,l.deviceMake);g8(R,13,l.deviceModel);zJ(R,16,l.clientName);g8(R,17,l.clientVersion);g8(R,18,l.osName);g8(R,19,l.osVersion)}; $cj=function(R,l){g8(R,1,l.name);g8(R,2,l.value)}; eFJ=function(R,l){g8(R,1,l.url);if(l.dK)for(var y=0;y1&&(this.J=R[1]==="2")}; Fq=function(R,l,y,f,A){this.X=R;this.Z=l;this.L=y;this.reason=f;this.r7=A===void 0?0:A}; g.Qz=function(R,l,y,f){return new Fq(g.bz[R]||0,g.bz[l]||0,y,f)}; e2=function(R){if($M&&R.r7)return!1;var l=g.bz.auto;return R.X===l&&R.Z===l}; Xq=function(R){return bS[R.Z||R.X]||"auto"}; nXr=function(R,l){l=g.bz[l];return R.X<=l&&(!R.Z||R.Z>=l)}; Tk=function(R){return"["+R.X+"-"+R.Z+", override: "+(R.L+", reason: "+R.reason+"]")}; dM=function(R,l,y){this.videoInfos=R;this.Z=l;this.audioTracks=[];if(this.Z){R=new Set;y==null||y({ainfolen:this.Z.length});l=g.u(this.Z);for(var f=l.next();!f.done;f=l.next())if(f=f.value,!f.hF||R.has(f.hF.id)){var A=void 0,K=void 0,G=void 0;(G=y)==null||G({atkerr:!!f.hF,itag:f.itag,xtag:f.Z,lang:((A=f.hF)==null?void 0:A.name)||"",langid:((K=f.hF)==null?void 0:K.id)||""})}else A=new g.uS(f.id,f.hF),R.add(f.hF.id),this.audioTracks.push(A);y==null||y({atklen:this.audioTracks.length})}}; rM=function(){g.p.apply(this,arguments);this.Z=null}; cPT=function(R,l,y,f,A,K,G){if(R.Z)return R.Z;var B={},H=new Set,n={};if(vq(f)){for(var m in f.Z)f.Z.hasOwnProperty(m)&&(R=f.Z[m],n[R.info.H1]=[R.info]);return n}m=m$s(l,f,B);K&&A({aftsrt:zk(m)});for(var h={},c=g.u(Object.keys(m)),E=c.next();!E.done;E=c.next()){E=E.value;for(var W=g.u(m[E]),Q=W.next();!Q.done;Q=W.next()){Q=Q.value;var e=Q.itag,r=void 0,d=E+"_"+(((r=Q.video)==null?void 0:r.fps)||0);h.hasOwnProperty(d)?h[d]===!0?n[E].push(Q):B[e]=h[d]:(r=wM(l,Q,y,f.isLive,H),r!==!0?(G.add(E),B[e]=r, r==="disablevp9hfr"&&(h[d]="disablevp9hfr")):(n[E]=n[E]||[],n[E].push(Q),h[d]=!0))}}K&&A({bfflt:zk(n)});for(var z in n)n.hasOwnProperty(z)&&(f=z,n[f]&&n[f][0].fJ()&&(n[f]=n[f],n[f]=oXZ(l,n[f],B),n[f]=hNk(n[f],B)));K&&Object.keys(B).length>0&&A({rjr:hO(B)});l=g.u(H.values());for(f=l.next();!f.done;f=l.next())(f=y.Y.get(f.value))&&--f.mQ;K&&A({aftflt:zk(n)});R.Z=g.yi(n,function(N){return!!N.length}); return R.Z}; WLq=function(R,l,y,f,A,K,G,B){B=B===void 0?!1:B;if(l.f_&&G&&G.length>1&&!(l.Dy>0||l.W)){for(var H=l.X||!!A,n=H&&l.vZ?K:void 0,m=m$s(l,f),h=[],c=[],E={},W=0;W0&&c&&A&&(m=[G,y],z=A.concat(c).filter(function(N){return N})); if(z.length&&!l.Xv){NQ(z,m);if(H){H=[];l=g.u(z);for(f=l.next();!f.done;f=l.next())H.push(f.value.itag);K({hbdfmt:H.join(".")})}return rg(new dM(z,R,n))}z=bVo(l);z=g.iA(z,B);if(!z){if(h[G])return K=h[G],NQ(K),rg(new dM(K,R,n));H&&K({novideo:1});return dg()}l.eZ&&(z==="1"||z==="1h")&&h[y]&&(G=pA(h[z]),m=pA(h[y]),m>G?z=y:m===G&&XtJ(h[y])&&(z=y));z==="9"&&h.h&&pA(h.h)>pA(h["9"])&&(z="h");l.iQ&&f.isLive&&z==="("&&h.H&&pA(h["("])<1440&&(z="H");H&&K({vfmly:UA(z)});l=h[z];if(!l.length)return H&&K({novfmly:UA(z)}), dg();NQ(l);return rg(new dM(l,R,n))}; OVj=function(R,l){var y=!(!R.m&&!R.M),f=!(!R.mac3&&!R.MAC3),A=!(!R.meac3&&!R.MEAC3);R=!(!R.i&&!R.I);l.Ms=R;return y||f||A||R}; XtJ=function(R){R=g.u(R);for(var l=R.next();!l.done;l=R.next())if(l=l.value,l.itag&&Tsk.has(l.itag))return!0;return!1}; PQq=function(R){R=g.u(R);for(var l=R.next();!l.done;l=R.next())if(l.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; UA=function(R){switch(R){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return R}}; zk=function(R){var l=[],y;for(y in R)if(R.hasOwnProperty(y)){var f=y;l.push(UA(f));f=g.u(R[f]);for(var A=f.next();!A.done;A=f.next())l.push(A.value.itag)}return l.join(".")}; LL7=function(R,l,y,f,A,K){var G={},B={};g.RL(l,function(H,n){H=H.filter(function(m){var h=m.itag;if(!m.sS)return B[h]="noenc",!1;if(K.sF&&m.H1==="(h"&&K.B1)return B[h]="lichdr",!1;if(!R.J&&m.H1==="1e")return B[h]="noav1enc",!1;if(m.H1==="("||m.H1==="(h"){if(R.L&&y&&y.flavor==="widevine"){var c=m.mimeType+"; experimental=allowed";(c=!!m.sS[y.flavor]&&!!y.Z[c])||(B[h]=m.sS[y.flavor]?"unspt":"noflv");return c}if(!S2(R,j2.CRYPTOBLOCKFORMAT)&&!R.sL||R.xb)return B[h]=R.xb?"disvp":"vpsub",!1}return y&&m.sS[y.flavor]&& y.Z[m.mimeType]?!0:(B[h]=y?m.sS[y.flavor]?"unspt":"noflv":"nosys",!1)}); H.length&&(G[n]=H)}); f&&Object.entries(B).length&&A({rjr:hO(B)});return G}; hNk=function(R,l){var y=i4(R,function(f,A){return A.video.fps>32?Math.min(f,A.video.width):f},Infinity); y32||f.video.widthR.D)return"max"+R.D;if(R.W1&&l.H1==="h"&&l.video&&l.video.qualityOrdinal>1080)return"blkhigh264";if(l.H1==="(h"&&!y.V)return"enchdr";if((f===void 0?0:f)&&po(l)&&!R.P1)return"blk51live";if((l.H1==="MAC3"||l.H1==="mac3")&&!R.Y)return"blkac3";if((l.H1==="MEAC3"||l.H1==="meac3")&&!R.J)return"blkeac3";if(l.H1==="M"||l.H1==="m")return"blkaac51"; if((l.H1==="so"||l.H1==="sa")&&!R.LX)return"blkamb";if(!R.sF&&dF9(l)&&(!y.J||l.H1!=="1e"))return"cbc";if(!y.J&&dF9(l)&&l.H1==="1e")return"cbcav1";if((l.H1==="i"||l.H1==="I")&&!R.nA)return"blkiamf";var K;if(R.LA&&((K=l.audio)==null?void 0:K.X)===!0)return"blkvbcabr";var G,B;if(R.jS&&(l.H1==="1"||l.H1==="1h"||y.J&&l.H1==="1e")&&((G=l.video)==null?0:G.qualityOrdinal)&&((B=l.video)==null?void 0:B.qualityOrdinal)>R.jS)return"av1cap";f=y.Y.get(l.H1);if(!R.ZL&&f&&f.mQ>0)return A.add(l.H1),"byerr";var H; if((H=l.video)==null?0:H.fps>32){if(!y.Dq&&!S2(y,j2.FRAMERATE))return"capHfr";if(R.tU&&l.video.qualityOrdinal>=4320)return"blk8khfr";if(zC(l)&&R.US&&l.sS&&l.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(R.r7&&l.r7>R.r7)return"ratecap";R=d$s(y,l);return R!==!0?R:!0}; NQ=function(R,l){l=l===void 0?[]:l;g.gO(R,function(y,f){var A=f.r7-y.r7;if(!y.fJ()||!f.fJ())return A;var K=f.video.height*f.video.width-y.video.height*y.video.width;!K&&l&&l.length>0&&(y=l.indexOf(y.H1)+1,f=l.indexOf(f.H1)+1,K=y===0||f===0?f||-1:y-f);K||(K=A);return K})}; g.kM=function(R,l){this[a[39]]=R;this[a[38]]=l===void 0?!1:l;this[a[21]]=this[a[18]]=this[a[9]]=a[1];this[a[15]]={};this[a[27]]=a[1]}; Zp=function(R){Dp(R);return R[a[21]]}; JN=function(R){return R[a[39]]?R[a[39]][a[22]](a[32]):R[a[9]]===a[32]}; rPZ=function(R){Dp(R);return g.Kp(R[a[15]],function(l){return l!==null})}; gM=function(R){Dp(R);var l=decodeURIComponent(R[a[23]](a[34])||a[1])[a[24]](a[51]);return R[a[18]]===a[25]&&l[a[6]]>1&&!!l[1]}; Vz=function(R,l){l=l===void 0?!1:l;Dp(R);if(R[a[18]]!==a[25]){var y=R[a[40]]();y[a[31]](a[79],a[54]);return y}var f=R[a[14]]();y=new g.AI(f);var A=R[a[23]](a[83]),K=decodeURIComponent(R[a[23]](a[34])||a[1])[a[24]](a[51]);if(A&&K&&K[a[6]]>1&&K[1])return f=y.Z,R=f[a[11]](/^[^.]*/,a[1]),g.GS(y,(f[a[20]](a[12])===0?a[12]:a[30])+A+a[84]+K[1]+R),y=new g.kM(y[a[10]]()),y[a[31]](a[47],a[54]),y;if(l)return y=R[a[40]](),y[a[31]](a[47],a[54]),y;A=y.Z[a[5]](a[49]);y.Z[a[5]](a[86])?(g.GS(y,a[16]),f=y[a[10]]()): y.Z[a[5]](a[89])?(g.GS(y,a[80]),f=y[a[10]]()):(y=ilc(f),jN(y)&&(f=y));y=new g.kM(f);y[a[31]](a[71],a[54]);A&&y[a[31]](a[0],a[85]);return y}; Dp=function(R){if(R[a[39]]){if(!(jN(R[a[39]])||R[a[39]][a[22]](a[32])||R[a[39]][a[22]](a[68])||R[a[39]][a[22]](a[60])))throw new g.JD(a[36],R[a[39]]);var l=g.oj(R[a[39]]);R[a[9]]=l.J;R[a[21]]=l.Z+(l.L!=null?a[82]+l.L:a[1]);var y=l.X;if(y[a[22]](a[25]))R[a[18]]=a[25],y=y[a[17]](14);else if(y[a[22]](a[19]))R[a[18]]=a[19],y=y[a[17]](13);else if(y[a[22]](a[41])){var f=y[a[20]](a[48],12),A=y[a[20]](a[48],f+1);f>0&&A>0?(R[a[18]]=y[a[17]](0,A),y=y[a[17]](A+1)):(R[a[18]]=y,y=a[1])}else R[a[18]]=y,y=a[1]; f=R[a[15]];R[a[15]]=vX9(y);Object[a[13]](R[a[15]],zNT(l.Y.toString()));Object[a[13]](R[a[15]],f);R[a[15]][a[53]]===a[62]&&(delete R[a[15]][a[53]],R[a[18]]+=a[81]);R[a[39]]=a[1];R[a[27]]=a[1];R[a[38]]&&(Dp(R),l=R[a[15]][a[45]]||null)&&(l=wtT[0](l),R[a[31]](a[45],l))}}; x$i=function(R){Dp(R);var l=R[a[9]]+(R[a[9]]?a[37]:a[73])+R[a[21]]+R[a[18]];if(rPZ(R)){var y=[];g.RL(R[a[15]],function(f,A){f!==null&&y[a[7]](A+a[4]+f)}); l+=a[26]+y[a[29]](a[78])}return l}; vX9=function(R){R=R[a[24]](a[48]);var l=0;R[0]||l++;for(var y={};l0?Isq(l,f[a[17]](0,A),f[a[17]](A+1)):f&&(l[f]=a[1])}return l}; Isq=function(R,l,y){if(l===a[70]){var f;(f=y[a[20]](a[4]))>=0?(l=a[61]+y[a[17]](0,f),y=y[a[17]](f+1)):(f=y[a[20]](a[28]))>=0&&(l=a[61]+y[a[17]](0,f),y=y[a[17]](f+3))}R[l]=y}; CA=function(R){var l=g.k(R,NsT)||R[a[77]];R={O7:!1,JP:a[1],Z1:a[1],s:a[1]};if(!l)return R;l=Rw(l);R[a[88]]=!0;R[a[65]]=l[a[27]];R[a[76]]=l[a[63]];R[a[66]]=l[a[66]];return R}; qQ=function(R,l,y,f,A,K,G,B,H){this.eS=R;this.startTime=l;this.duration=y;this.ingestionTime=f;this.sourceURL=A;this.I2=H;this.endTime=l+y;this.Z=G||0;this.range=K||null;this.pending=B||!1;this.I2=H||null}; g.tN=function(){this.segments=[];this.Z=null;this.X=!0;this.L=""}; pt7=function(R,l){if(l>R.Wl())R.segments=[];else{var y=LX(R.segments,function(f){return f.eS>=l},R); y>0&&R.segments.splice(0,y)}}; YM=function(R,l,y,f,A){A=A===void 0?!1:A;this.data=R;this.offset=l;this.size=y;this.type=f;this.Z=(this.X=A)?0:8;this.dataOffset=this.offset+this.Z}; MQ=function(R){var l=R.data.getUint8(R.offset+R.Z);R.Z+=1;return l}; RX=function(R){var l=R.data.getUint16(R.offset+R.Z);R.Z+=2;return l}; l6=function(R){var l=R.data.getInt32(R.offset+R.Z);R.Z+=4;return l}; yF=function(R){var l=R.data.getUint32(R.offset+R.Z);R.Z+=4;return l}; fe=function(R){var l=R.data;var y=R.offset+R.Z;l=l.getUint32(y)*4294967296+l.getUint32(y+4);R.Z+=8;return l}; Ay=function(R,l){l=l===void 0?NaN:l;if(isNaN(l))var y=R.size;else for(y=R.Z;y1?Math.ceil(A*l):Math.floor(A*l))}R.skip(1);y=MQ(R)<<16|RX(R);if(y&256){f=y&1;A=y&4;var K=y&512,G=y&1024,B=y&2048;y=yF(R);f&&R.skip(4);A&&R.skip(4);f=(K?4:0)+(G?4:0)+(B?4:0);for(A=0;A1?Math.ceil(G*l):Math.floor(G*l)),R.skip(f)}}}; mG=function(R){R=new DataView(R.buffer,R.byteOffset,R.byteLength);return(R=g.HU(R,0,1836476516))?g.ne(R):NaN}; tis=function(R){var l=g.HU(R,0,1937011556);if(!l)return null;l=oX(R,l.dataOffset+8,1635148593)||oX(R,l.dataOffset+8,1635135537);if(!l)return null;var y=oX(R,l.dataOffset+78,1936995172),f=oX(R,l.dataOffset+78,1937126244);if(!f)return null;l=null;if(y)switch(y.skip(4),MQ(y)){default:l=0;break;case 1:l=2;break;case 2:l=1;break;case 3:l=255}var A=y=null,K=null;if(f=oX(R,f.dataOffset,1886547818)){var G=oX(R,f.dataOffset,1886546020),B=oX(R,f.dataOffset,2037673328);if(!B&&(B=oX(R,f.dataOffset,1836279920), !B))return null;G&&(G.skip(4),y=l6(G)/65536,K=l6(G)/65536,A=l6(G)/65536);R=U$J(B);R=new DataView(R.buffer,R.byteOffset+8,R.byteLength-8);return new CQr(l,y,K,A,R)}return null}; oX=function(R,l,y){for(;hy(R,l);){var f=cU(R,l);if(f.type===y)return f;l+=f.size}return null}; g.HU=function(R,l,y){for(;hy(R,l);){var f=cU(R,l);if(f.type===y)return f;l=Er(f.type)?l+8:l+f.size}return null}; g.WU=function(R){if(R.data.getUint8(R.dataOffset)){var l=R.data;R=R.dataOffset+4;l=l.getUint32(R)*4294967296+l.getUint32(R+4)}else l=R.data.getUint32(R.dataOffset+4);return l}; cU=function(R,l){var y=R.getUint32(l),f=R.getUint32(l+4);return new YM(R,l,y,f)}; g.ne=function(R){var l=R.data.getUint8(R.dataOffset)?20:12;return R.data.getUint32(R.dataOffset+l)}; Yzo=function(R){R=new YM(R.data,R.offset,R.size,R.type,R.X);var l=MQ(R);R.skip(7);var y=yF(R);if(l===0){l=yF(R);var f=yF(R)}else l=fe(R),f=fe(R);R.skip(2);for(var A=RX(R),K=[],G=[],B=0;B122)return!1}return!0}; Er=function(R){return R===1701082227||R===1836019558||R===1836019574||R===1835297121||R===1835626086||R===1937007212||R===1953653094||R===1953653099||R===1836475768}; Mio=function(R){R.skip(4);return{VIL:Ay(R,0),value:Ay(R,0),timescale:yF(R),FHL:yF(R),i$$:yF(R),id:yF(R),L1:Ay(R),offset:R.offset}}; g.R_Q=function(R){var l=oX(R,0,1701671783);if(!l)return null;var y=Mio(l),f=y.VIL;y=BU(y.L1);if(R=oX(R,l.offset+l.size,1701671783))if(R=Mio(R),R=BU(R.L1),y&&R){l=g.u(Object.keys(R));for(var A=l.next();!A.done;A=l.next())A=A.value,y[A]=R[A]}return y?new sr(y,f):null}; Le=function(R,l){for(var y=oX(R,0,l);y;){var f=y;f.type=1936419184;f.data.setUint32(f.offset+4,1936419184);y=oX(R,y.offset+y.size,l)}}; g.Or=function(R,l){for(var y=0,f=[];hy(R,y);){var A=cU(R,y);A.type===l&&f.push(A);y=Er(A.type)?y+8:y+A.size}return f}; lwi=function(R,l){var y=g.HU(R,0,1937011556),f=g.HU(R,0,1953654136);if(!y||!f||R.getUint32(y.offset+12)>=2)return null;var A=new DataView(l.buffer,l.byteOffset,l.length),K=g.HU(A,0,1937011556);if(!K)return null;l=A.getUint32(K.dataOffset+8);f=A.getUint32(K.dataOffset+12);if(f!==1701733217&&f!==1701733238)return null;f=new SzQ(R.byteLength+l);Ke(f,R,0,y.offset+12);f.data.setInt32(f.offset,2);f.offset+=4;Ke(f,R,y.offset+16,y.size-16);Ke(f,A,A.byteOffset+K.dataOffset+8,l);Ke(f,R,y.offset+y.size,R.byteLength- (y.offset+y.size));y=g.u([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(A=y.next();!A.done;A=y.next())A=g.HU(R,0,A.value),f.data.setUint32(A.offset,A.size+l);R=g.HU(f.data,0,1953654136);f.data.setUint32(R.offset+16,2);return f.data}; yOi=function(R){var l=g.HU(R,0,1937011556);if(!l)return null;var y=R.getUint32(l.dataOffset+12);if(y!==1701733217&&y!==1701733238)return null;l=oX(R,l.offset+24+(y===1701733217?28:78),1936289382);if(!l)return null;y=oX(R,l.offset+8,1935894637);if(!y||R.getUint32(y.offset+12)!==1667392371)return null;l=oX(R,l.offset+8,1935894633);if(!l)return null;l=oX(R,l.offset+8,1952804451);if(!l)return null;y=new Uint8Array(16);for(var f=0;f<16;f++)y[f]=R.getInt8(l.offset+16+f);return y}; i6=function(R,l){this.Z=R;this.pos=0;this.start=l||0}; PU=function(R){return R.pos>=R.Z.byteLength}; eg=function(R,l,y){var f=new i6(y);if(!u6(f,R))return!1;f=F3(f);if(!QF(f,l))return!1;for(R=0;l;)l>>>=8,R++;l=f.start+f.pos;var A=$H(f,!0);f=R+(f.start+f.pos-l)+A;f=f>9?fw9(f-9,8):fw9(f-2,1);R=l-R;y.setUint8(R++,236);for(l=0;ly;A++)y=y*256+rD(R),f*=128;return l?y-f:y}; X3=function(R){var l=$H(R,!0);R.pos+=l}; GC7=function(R){if(!QF(R,440786851,!0))return null;var l=R.pos;$H(R,!1);var y=$H(R,!0)+R.pos-l;R.pos=l+y;if(!QF(R,408125543,!1))return null;$H(R,!0);if(!QF(R,357149030,!0))return null;var f=R.pos;$H(R,!1);var A=$H(R,!0)+R.pos-f;R.pos=f+A;if(!QF(R,374648427,!0))return null;var K=R.pos;$H(R,!1);var G=$H(R,!0)+R.pos-K,B=new Uint8Array(y+12+A+G),H=new DataView(B.buffer);B.set(new Uint8Array(R.Z.buffer,R.Z.byteOffset+l,y));H.setUint32(y,408125543);H.setUint32(y+4,33554431);H.setUint32(y+8,4294967295); B.set(new Uint8Array(R.Z.buffer,R.Z.byteOffset+f,A),y+12);B.set(new Uint8Array(R.Z.buffer,R.Z.byteOffset+K,G),y+12+A);return B}; vU=function(R){var l=R.pos;R.pos=0;var y=1E6;u6(R,[408125543,357149030,2807729])&&(y=b6(R));R.pos=l;return y}; aws=function(R,l){var y=R.pos;R.pos=0;if(R.Z.getUint8(R.pos)!==160&&!zx(R)||!QF(R,160))return R.pos=y,NaN;$H(R,!0);var f=R.pos;if(!QF(R,161))return R.pos=y,NaN;$H(R,!0);rD(R);var A=rD(R)<<8|rD(R);R.pos=f;if(!QF(R,155))return R.pos=y,NaN;f=b6(R);R.pos=y;return(A+f)*l/1E9}; zx=function(R){if(!szs(R)||!QF(R,524531317))return!1;$H(R,!0);return!0}; szs=function(R){if(R.Sb()){if(!QF(R,408125543))return!1;$H(R,!0)}return!0}; u6=function(R,l){for(var y=0;y0){var f=zNT(l.substring(y+1));g.RL(f,function(A,K){this.set(K,A)},R); l=l.substring(0,y)}l=vX9(l);g.RL(l,function(A,K){this.set(K,A)},R)}; Hos=function(R){var l=R.Kw.Jk(),y=[];g.RL(R.Z,function(A,K){y.push(K+"="+A)}); if(!y.length)return l;var f=y.join("&");R=rPZ(R.Kw)?"&":"?";return l+R+f}; xH=function(R,l){var y=new g.kM(l);(l=y.get("req_id"))&&R.set("req_id",l);g.RL(R.Z,function(f,A){y["set"](A,null)}); return y}; n59=function(){this.Y=this.L=this.Z=this.timedOut=this.started=this.J=this.X=0}; IX=function(R){R.J=(0,g.eY)();R.started=0;R.timedOut=0;R.Z=0}; NO=function(R,l){var y=R.started+R.Z*4;l&&(y+=R.L);y=Math.max(0,y-3);return Math.pow(1.6,y)}; pe=function(R,l){R[l]||(R[l]=new n59);return R[l]}; Ur=function(R){this.B=this.V=this.J=this.L=0;this.W=this.D=!1;this.Z=R;this.X=R.clone()}; mwq=function(R,l,y){if(JN(R.Z))return!1;var f=pe(y,Zp(R.Z));if(f.timedOut<1&&f.Z<1)return!1;f=f.timedOut+f.Z;R=Sg(R,l);y=pe(y,Zp(R));return y.timedOut+y.Z+01?l=l.AX:(y=pe(y,kH(R,R.M$(l,y),l)),l=Math.max(R.J,y.timedOut)+l.Wx*(R.L-R.J)+.25*R.V,l=l>3?1E3*Math.pow(1.6,l-3):0);return l===0?!0:R.B+l<(0,g.eY)()}; o5Y=function(R,l,y){R.Z.set(l,y);R.X.set(l,y);R.Y&&R.Y.set(l,y)}; h_j=function(R,l,y,f,A){++R.L;l&&++R.J;Zp(y.Kw).startsWith("redirector.")&&(R.Z=R.X.clone(),delete R.Y,f.Qv&&delete A[Zp(R.Z)])}; ZH=function(R){return R?(R.itag||"")+";"+(R.lmt||0)+";"+(R.xtags||""):""}; Jy=function(R,l,y,f){this.initRange=y;this.indexRange=f;this.Z=null;this.L=!1;this.D=0;this.Y=this.hP=this.X=null;this.info=l;this.x$=new Ur(R)}; gD=function(R,l){this.start=R;this.end=l;this.length=l-R+1}; VF=function(R){R=R.split("-");var l=Number(R[0]),y=Number(R[1]);if(!isNaN(l)&&!isNaN(y)&&R.length===2&&(R=new gD(l,y),!isNaN(R.start)&&!isNaN(R.end)&&!isNaN(R.length)&&R.length>0))return R}; Ce=function(R,l){return new gD(R,R+l-1)}; cOY=function(R){return R.end==null?{start:String(R.start)}:{start:String(R.start),end:String(R.end)}}; qO=function(R){if(!R)return new gD(0,0);var l=Number(R.start);R=Number(R.end);if(!isNaN(l)&&!isNaN(R)&&(l=new gD(l,R),l.length>0))return l}; ty=function(R,l,y,f,A,K,G,B,H,n,m,h){f=f===void 0?"":f;this.type=R;this.Z=l;this.range=y;this.source=f;this.uE=m;this.clipId=h===void 0?"":h;this.B=[];this.W="";this.eS=-1;this.LX=this.Yb=0;this.W=f;this.eS=A>=0?A:-1;this.startTime=K||0;this.duration=G||0;this.X=B||0;this.L=H>=0?H:this.range?this.range.length:NaN;this.J=this.range?this.X+this.L===this.range.length:n===void 0?!!this.L:n;this.range?(this.Y=this.startTime+this.duration*this.X/this.range.length,this.V=this.duration*this.L/this.range.length, this.D=this.Y+this.V):E5J(this)}; E5J=function(R){WxZ?(R.Y=R.startTime+Math.min(R.duration*R.X/R.Z.info.r7,R.duration),R.V=Math.min(R.duration,R.duration*R.L/R.Z.info.r7),R.D=Math.min(R.Y+R.V,R.startTime+R.duration)):(R.Y=R.startTime,R.V=R.duration,R.D=R.Y+R.V)}; Lxo=function(R,l,y){var f=!(!l||l.Z!==R.Z||l.type!==R.type||l.eS!==R.eS);return y?f&&!!l&&(R.range&&l.range?l.range.end===R.range.end:l.range===R.range)&&l.X+l.L===R.X+R.L:f}; YH=function(R){return R.type===1||R.type===2}; MO=function(R){return R.type===3||R.type===6}; RZ=function(R,l){return R.Z===l.Z?R.range&&l.range?R.range.start+R.X+R.L===l.range.start+l.X:R.eS===l.eS?R.X+R.L===l.X:R.eS+1===l.eS&&l.X===0&&R.J:!1}; ioQ=function(R,l){return R.eS!==l.eS&&l.eS!==R.eS+1||R.type!==l.type?!1:RZ(R,l)?!0:Math.abs(R.Y-l.Y)<=1E-6&&R.eS===l.eS?!1:Oor(R,l)}; Oor=function(R,l){return RZ(R,l)||Math.abs(R.D-l.Y)<=1E-6||R.eS+1===l.eS&&l.X===0&&R.J?!0:!1}; lh=function(R){return R.eS+(R.J?1:0)}; Pzs=function(R){R.length===1||g.OJ(R,function(y){return!!y.range}); for(var l=1;l=l.range.start+l.X&&R.range.start+R.X+R.L<=l.range.start+l.X+l.L:R.eS===l.eS&&R.X>=l.X&&(R.X+R.L<=l.X+l.L||l.J)}; X9J=function(R,l){return R.Z!==l.Z?!1:R.type===4&&l.type===3&&R.Z.Gf()?(R=R.Z.X5(R),Dx(R,function(y){return X9J(y,l)})):R.eS===l.eS&&!!l.L&&l.X+l.L>R.X&&l.X+l.L<=R.X+R.L}; fK=function(R,l){var y=l.eS;R.W="updateWithSegmentInfo";R.eS=y;if(R.startTime!==l.startTime||R.duration!==l.duration)R.startTime=l.startTime+R.Yb,R.duration=l.duration,E5J(R)}; A1=function(R,l){var y=this;this.SS=R;this.Y=this.Z=null;this.J=this.GL=NaN;this.M$=this.requestId=null;this.yu={LyU:function(){return y.range}}; this.x$=R[0].Z.x$;this.X=l||"";this.SS[0].range&&this.SS[0].L>0&&(uNT(R)?(this.range=Pzs(R),this.L=this.range.length):(this.range=this.SS[this.SS.length-1].range,this.L=FxK(R)))}; KK=function(R){return!YH(R.SS[R.SS.length-1])}; GL=function(R){return R.SS[R.SS.length-1].type===4}; g.aZ=function(R,l,y){y=R.M$===null?R.x$.M$(l,y,R.SS[0].type):R.M$;if(R.Z){l=y?Vz(R.Z,l.XK):R.Z;var f=new wD(l);f.get("alr")||f.set("alr","yes");R.X&&Byc(f,R.X)}else/http[s]?:\/\//.test(R.X)?f=new wD(new g.kM(R.X)):(f=jg(R.x$,y,l),R.X&&Byc(f,R.X));(l=R.range)?f.set("range",l.toString()):R.SS[0].Z.Ov()&&R.SS.length===1&&R.SS[0].X&&f.set("range",R.SS[0].X+"-");R.requestId&&f.set("req_id",R.requestId);isNaN(R.GL)||f.set("headm",R.GL.toString());isNaN(R.J)||f.set("mffa",R.J+"ms");R.urlParams&&g.RL(R.urlParams, function(A,K){f.set(K,A)}); return f}; TyY=function(R){if(R.range)return R.L;R=R.SS[0];return Math.round(R.V*R.Z.info.r7)}; dwk=function(R,l){return Math.max(0,R.SS[0].Y-l)}; s6=function(R,l,y,f,A,K){K=K===void 0?0:K;Jy.call(this,R,l,f,void 0);this.J=y;this.Sv=K;this.index=A||new g.tN}; rOZ=function(R,l,y,f,A){this.eS=R;this.startSecs=l;this.G9=y;this.Z=f||NaN;this.X=A||NaN}; BC=function(R,l,y){for(;R;R=R.parentNode)if(R.attributes&&(!y||R.nodeName===y)){var f=R.getAttribute(l);if(f)return f}return""}; HC=function(R,l){for(;R;R=R.parentNode){var y=R.getElementsByTagName(l);if(y.length>0)return y[0]}return null}; v5o=function(R){if(!R)return 0;var l=R.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return l?(Number(l[2])|0)*3600+(Number(l[4])|0)*60+(Number(l[6])|0):Number(R)|0}; z_k=function(R){return R.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?R+"Z":R}; nK=function(){this.Z=[];this.X=null;this.D=0;this.L=[];this.J=!1;this.V="";this.Y=-1}; w99=function(R){var l=R.L;R.L=[];return l}; xw7=function(){this.Y=[];this.Z=null;this.X={};this.L={}}; UwT=function(R,l){var y=[];l=Array.from(l.getElementsByTagName("SegmentTimeline"));l=g.u(l);for(var f=l.next();!f.done;f=l.next()){f=f.value;var A=f.parentNode.parentNode,K=null;A.nodeName==="Period"?K=Iwj(R):A.nodeName==="AdaptationSet"?(A=A.getAttribute("id")||A.getAttribute("mimetype")||"",K=NyK(R,A)):A.nodeName==="Representation"&&(A=A.getAttribute("id")||"",K=p9j(R,A));if(K==null)return;K.update(f);g.xU(y,w99(K))}g.xU(R.Y,y);eQ9(R.Y,function(G){return G.startSecs*1E3+G.Z})}; Suj=function(R){R.Z&&(R.Z.Z=[]);g.RL(R.X,function(l){l.Z=[]}); g.RL(R.L,function(l){l.Z=[]})}; Iwj=function(R){R.Z||(R.Z=new nK);return R.Z}; NyK=function(R,l){R.X[l]||(R.X[l]=new nK);return R.X[l]}; p9j=function(R,l){R.L[l]||(R.L[l]=new nK);return R.L[l]}; oZ=function(R){var l=R===void 0?{}:R;R=l.Sv===void 0?0:l.Sv;var y=l.bR===void 0?!1:l.bR;var f=l.gF===void 0?0:l.gF;var A=l.ZG===void 0?0:l.ZG;var K=l.bH===void 0?Infinity:l.bH;var G=l.Qd===void 0?0:l.Qd;var B=l.Rz===void 0?!1:l.Rz;l=l.PJ===void 0?!1:l.PJ;g.tN.call(this);this.Fr=this.qH=-1;this.yK=R;this.gF=f;this.bR=y;this.ZG=A;this.bH=K;this.Qd=G;((this.Rz=B)||isFinite(K)&&this.bH>0)&&y&&mC&&(this.X=!1,this.L="postLive");this.PJ=l}; h1=function(R,l){return JK(R.segments,function(y){return l-y.eS})}; cC=function(R,l,y){y=y===void 0?{}:y;s6.call(this,R,l,"",void 0,void 0,y.Sv||0);this.index=new oZ(y)}; E6=function(R,l,y){Jy.call(this,R,l);this.J=y;R=this.index=new g.tN;R.X=!1;R.L="d"}; jzi=function(R,l,y){var f=R.index.ri(l),A=R.index.getStartTime(l),K=R.index.getDuration(l);y?K=y=0:y=R.info.r7*K;return new A1([new ty(3,R,void 0,"otfCreateRequestInfoForSegment",l,A,K,0,y)],f)}; kCj=function(R,l){if(!R.index.isLoaded()){var y=[],f=l.Y;l=l.J.split(",").filter(function(m){return m.length>0}); for(var A=0,K=0,G=0,B=/^(\d+)/,H=/r=(\d+)/,n=0;n0&&(A.Z=Math.min(A.Z+G,10),A.X=K);A.Z>0?(A.Z--,A=!0):A=!1;if(A)typeof f==="function"&&(f=f()),console.log("plyr."+l,f);else{var B;f=((B=Czi.get(l))!=null?B:0)+1;Czi.set(l,f);f%100===1&&console.warn("plyr","plyr."+l+" is chatty, dropping logs.")}}}; VMj=function(){this.Z=10;this.X=Date.now()}; O6=function(R,l){this.info=R;this.X=l;this.Z=null;this.Y=this.L=-1;this.timestampOffset=0;this.isLocked=this.D=!1;this.J=this.info.Z.TT()&&!this.info.X}; g.ih=function(R){return Upi(R.X)}; qu9=function(R,l){l=Math.min(l,R.info.L);var y=R.X.split(l),f=y.SK;y=new O6(new ty(R.info.type,R.info.Z,R.info.range,R.info.W,R.info.eS,R.info.startTime,R.info.duration,R.info.X,l,!1,R.info.uE,R.info.clipId),y.sP);y.Y=R.Y;y.L=R.L;l=new O6(new ty(R.info.type,R.info.Z,R.info.range,R.info.W,R.info.eS,R.info.startTime,R.info.duration,R.info.X+l,R.info.L-l,R.info.J,R.info.uE,R.info.clipId),f);l.Y=R.Y;l.L=R.L;return[y,l]}; g.PC=function(R,l,y,f){y=y===void 0?!1:y;f=f===void 0?0:f;if(R.isLocked||l.isLocked||!RZ(R.info,l.info)||R.info.J)return null;if(f){if(R.X.totalLength+l.X.totalLength>f)return null}else if(y&&(y=R.X,f=l.X,y=!(f.Z.length?NGY(y,f.Z[0]):1)),y)return null;y=new ty(R.info.type,R.info.Z,R.info.range,R.info.W,R.info.eS,R.info.startTime,R.info.duration,R.info.X,R.info.L,R.info.J,R.info.uE,R.info.clipId);f=l.info;y.L+=f.L;y.range&&(y.V+=f.V);y.D=f.D;y.J=f.J;f=new Kn;GJ(f,R.X);GJ(f,l.X);y=new O6(y,f);y.Z!= null&&l.Z!=null&&(new g.WC("dash")).Z(414627957,"merged slice emsg overridden; prev: "+y.Z.Eh()+" next: "+l.Z.Eh());y.Z=l.Z||R.Z;y.L=R.L!==-1?R.L:l.L;y.Y=R.Y!==-1?R.Y:l.Y;return y}; g.uh=function(R){g.Uu(R.info.Z.info)||R.info.Z.info.ij();if(R.L!==-1)return R.L;if(R.Z&&D$q(R.Z))return R.L=D$q(R.Z),R.L;if(g.Uu(R.info.Z.info)){var l=g.ih(R);for(var y=R.info.Z.Z,f=NaN,A=NaN,K=0;hy(l,K);){var G=cU(l,K);G.type===1936286840?A=G.data.getUint32(G.dataOffset+8):G.type===1836476516?A=g.ne(G):G.type===1952867444&&isNaN(f)&&(f=g.WU(G));K=Er(G.type)?K+8:K+G.size}!A&&y&&(A=mG(y));l=f/A}else l=new i6(g.ih(R)),y=R.J?l:new i6(new DataView(R.info.Z.Z.buffer)),f=vU(y),y=l.pos,l.pos=0,zx(l)?QF(l, 231)?(f=b6(l)*f/1E9,l.pos=y,l=f):(l.pos=y,l=NaN):(l.pos=y,l=NaN);R.L=l||R.info.Y;return R.L}; YuZ=function(R,l){R.timestampOffset>0&&(l-=R.timestampOffset);var y=g.uh(R)+l;tMZ(R,y);R.timestampOffset=l}; tMZ=function(R,l){g.Uu(R.info.Z.info)||R.info.Z.info.ij();R.L=l;if(g.Uu(R.info.Z.info)){var y=g.ih(R);R=R.info.Z.Z;for(var f=NaN,A=NaN,K=0;hy(y,K);){var G=cU(y,K);isNaN(f)&&(G.type===1936286840?f=G.data.getUint32(G.dataOffset+8):G.type===1836476516&&(f=g.ne(G)));if(G.type===1952867444){!f&&R&&(f=mG(R));var B=g.WU(G);isNaN(A)&&(A=Math.round(l*f)-B);var H=G;B+=A;if(H.data.getUint8(H.dataOffset)){var n=H.data;H=H.dataOffset+4;n.setUint32(H,Math.floor(B/4294967296));n.setUint32(H+4,B&4294967295)}else H.data.setUint32(H.dataOffset+ 4,B)}K=Er(G.type)?K+8:K+G.size}return!0}y=new i6(g.ih(R));R=R.J?y:new i6(new DataView(R.info.Z.Z.buffer));f=vU(R);R=y.pos;y.pos=0;if(zx(y)&&QF(y,231))if(A=$H(y,!0),l=Math.floor(l*1E9/f),Math.ceil(Math.log(l)/Math.log(2)/8)>A)l=!1;else{for(f=A-1;f>=0;f--)y.Z.setUint8(y.pos+f,l&255),l>>>=8;y.pos=R;l=!0}else l=!1;return l}; Q6=function(R,l){l=l===void 0?!1:l;var y=FV(R);R=l?0:R.info.V;return y||R}; FV=function(R){g.Uu(R.info.Z.info)||R.info.Z.info.ij();if(R.Z&&R.info.type===6)return R.Z.Sv;if(g.Uu(R.info.Z.info)){var l=g.ih(R);var y=0;l=g.Or(l,1936286840);l=g.u(l);for(var f=l.next();!f.done;f=l.next())f=Yzo(f.value),y+=f.yj[0]/f.timescale;y=y||NaN;if(!(y>=0))a:{y=g.ih(R);l=R.info.Z.Z;for(var A=f=0,K=0;hy(y,f);){var G=cU(y,f);if(G.type===1836476516)A=g.ne(G);else if(G.type===1836019558){!A&&l&&(A=mG(l));if(!A){y=NaN;break a}var B=oX(G.data,G.dataOffset,1953653094),H=B;B=A;var n=oX(H.data,H.dataOffset, 1952868452);H=oX(H.data,H.dataOffset,1953658222);var m=l6(n);l6(n);m&2&&l6(n);n=m&8?l6(n):0;var h=l6(H),c=h&1;m=h&4;var E=h&256,W=h&512,Q=h&1024;h&=2048;var e=yF(H);c&&l6(H);m&&l6(H);for(var r=c=0;r2048?"":l.indexOf("https://")===0?l:""}; dS=function(R,l,y){l.match(HwT);return R(l,y).then(function(f){var A=g.BTk(f.xhr);return A?dS(R,A,y):f.xhr})}; wS=function(R,l,y){R=R===void 0?"":R;l=l===void 0?null:l;y=y===void 0?!1:y;g.Ae.call(this);var f=this;this.sourceUrl=R;this.isLivePlayback=y;this.jS=this.duration=0;this.isPremiere=this.Rz=this.Y=this.isLiveHeadPlayable=this.isLive=this.X=!1;this.bH=this.ZG=0;this.isOtf=this.QS=!1;this.CX=(0,g.eY)();this.LX=Infinity;this.Z={};this.L=new Map;this.state=this.CM=0;this.timeline=null;this.isManifestless=!1;this.xb=[];this.D=null;this.sL=0;this.J="";this.P1=NaN;this.Dq=this.sF=this.timestampOffset=this.V= 0;this.mS=this.Fv=NaN;this.vZ=0;this.v1=this.B=!1;this.UL=[];this.tU={};this.Yb=NaN;this.yu={QAS:function(B){rS(f,B)}}; var A;this.W1=(A=l)==null?void 0:A.EL("html5_use_network_error_code_enums");nN7=!!l&&l.EL("html5_modern_vp9_mime_type");var K;vC=!((K=l)==null||!K.EL("html5_enable_flush_during_seek"))&&g.Db();var G;zL=!((G=l)==null||!G.EL("html5_enable_reset_audio_decoder"))&&g.Db()}; mAs=function(R){return g.Kp(R.Z,function(l){return!!l.info.video&&l.info.video.qualityOrdinal>=2160})}; eNk=function(R){return g.Kp(R.Z,function(l){return!!l.info.video&&l.info.video.isHdr()})}; xM=function(R){return g.Kp(R.Z,function(l){return!!l.info.sS})}; g.oNo=function(R){return g.Kp(R.Z,function(l){return Zw(l.info.mimeType)})}; hhT=function(R){return g.Kp(R.Z,function(l){return l.info.video?l.info.video.projectionType==="EQUIRECTANGULAR":!1})}; c2J=function(R){return g.Kp(R.Z,function(l){return l.info.video?l.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; ENj=function(R){return g.Kp(R.Z,function(l){return l.info.video?l.info.video.projectionType==="MESH":!1})}; WAT=function(R){return g.Kp(R.Z,function(l){return l.info.video?l.info.video.stereoLayout===1:!1})}; LAi=function(R){return rc7(R.Z,function(l){return l.info.video?l.Kx():!0})}; vq=function(R){return g.Kp(R.Z,function(l){return JN(l.x$.Z)})}; rS=function(R,l){R.Z[l.info.id]=l;R.L.set(ZH(g.jM(l.info,R.QS)),l)}; Nq=function(R,l,y){y=y===void 0?0:y;var f=R.mimeType||"",A=R.itag;var K=R.xtags;A=A?A.toString():"";K&&(A+=";"+K);K=A;if(Dw(f)){var G=R.width||640;A=R.height||360;var B=R.fps,H=R.qualityLabel,n=R.colorInfo,m=R.projectionType,h;R.stereoLayout&&(h=Owq[R.stereoLayout]);var c=auJ(R)||void 0;if(n==null?0:n.primaries)var E=iws[n.primaries]||void 0;G=new XN(G,A,B,m,h,void 0,H,c,E);f=xg(f,G,ry[R.itag||""]);vC&&(f+="; enableflushduringseek=true");zL&&(f+="; enableresetaudiodecoder=true")}var W;if(k5(f)){var Q= R.audioSampleRate;h=R.audioTrack;Q=new $5(Q?+Q:void 0,R.audioChannels,R.spatialAudioType,R.isDrc,R.loudnessDb,R.trackAbsoluteLoudnessLkfs,R.audioQuality||"AUDIO_QUALITY_UNKNOWN",R.isVb);h&&(E=h.displayName,A=h.id,h=h.audioIsDefault,E&&(W=new g.TL(E,A||"",!!h)))}var e;R.captionTrack&&(H=R.captionTrack,h=H.displayName,E=H.vssId,A=H.languageCode,B=H.kind,H=H.id,h&&E&&A&&(e=new KAo(h,E,A,B,R.xtags,H)));h=Number(R.bitrate)/8;E=Number(R.contentLength);A=Number(R.lastModified);H=R.drmFamilies;B=R.type;y= y&&E?E/y:0;R=Number(R.approxDurationMs);if(l&&H){var r={};H=g.u(H);for(n=H.next();!n.done;n=H.next())(n=IZ[n.value])&&(r[n]=l[n])}return new v9(K,f,{audio:Q,video:G,hF:W,sS:r,r7:h,Hv:y,contentLength:E,lastModified:A,captionTrack:e,streamType:B,approxDurationMs:R})}; pK=function(R,l,y){y=y===void 0?0:y;var f=R.type;var A=R.itag;var K=R.xtags;K&&(A=R.itag+";"+K);if(Dw(f)){var G=(R.size||"640x360").split("x");G=new XN(+G[0],+G[1],+R.fps,R.projection_type,+R.stereo_layout,void 0,R.quality_label,R.eotf,R.primaries);f=xg(f,G,ry[R.itag]);vC&&(f+="; enableflushduringseek=true");zL&&(f+="; enableresetaudiodecoder=true")}var B;if(k5(f)){var H=new $5(+R.audio_sample_rate||void 0,+R.audio_channels||0,R.spatial_audio_type,!!R.drc);R.name&&(B=new g.TL(R.name,R.audio_track_id, R.isDefault==="1"))}var n;R.caption_display_name&&R.caption_vss_id&&R.caption_language_code&&(n=new KAo(R.caption_display_name,R.caption_vss_id,R.caption_language_code,R.caption_kind,R.xtags,R.caption_id));K=Number(R.bitrate)/8;var m=Number(R.clen),h=Number(R.lmt);y=y&&m?m/y:0;if(l&&R.drm_families){var c={};for(var E=g.u(R.drm_families.split(",")),W=E.next();!W.done;W=E.next())W=W.value,c[W]=l[W]}return new v9(A,f,{audio:H,video:G,hF:B,sS:c,r7:K,Hv:y,contentLength:m,lastModified:h,captionTrack:n, streamType:R.stream_type,approxDurationMs:Number(R.approx_duration_ms)})}; PZZ=function(R){return Dx(R,function(l){return"FORMAT_STREAM_TYPE_OTF"===l.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; up7=function(R){return Dx(R,function(l){return"FORMAT_STREAM_TYPE_OTF"===l.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; FAY=function(R,l){return R.timeline?NZ(R.timeline.Y,l):R.xb.length?NZ(R.xb,l):[]}; U6=function(R,l,y){l=l===void 0?"":l;y=y===void 0?"":y;R=new g.kM(R,!0);R.set("alr","yes");y&&(y=Jhq(decodeURIComponent(y)),R[a[31]](l,encodeURIComponent(y)));return R}; bwr=function(R,l){var y=BC(l,"id");y=y.replace(":",";");var f=BC(l,"mimeType"),A=BC(l,"codecs");f=A?f+'; codecs="'+A+'"':f;A=Number(BC(l,"bandwidth"))/8;var K=Number(HC(l,"BaseURL").getAttribute(R.J+":contentLength")),G=R.duration&&K?K/R.duration:0;if(Dw(f)){var B=Number(BC(l,"width"));var H=Number(BC(l,"height")),n=Number(BC(l,"frameRate")),m=QoQ(BC(l,R.J+":projectionType"));a:switch(BC(l,R.J+":stereoLayout")){case "layout_left_right":var h=1;break a;case "layout_top_bottom":h=2;break a;default:h= 0}B=new XN(B,H,n,m,h)}if(k5(f)){var c=Number(BC(l,"audioSamplingRate"));var E=Number(BC(l.getElementsByTagName("AudioChannelConfiguration")[0],"value"));H=$Ak(BC(l,R.J+":spatialAudioType"));c=new $5(c,E,H);a:{E=BC(l,"lang")||"und";if(H=HC(l,"Role"))if(m=BC(H,"value")||"",g.Hr(eho,m)){H=E+"."+eho[m];n=m==="main";R=BC(l,R.J+":langName")||E+" - "+m;E=new g.TL(R,H,n);break a}E=void 0}}if(l=HC(l,"ContentProtection"))if(l.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var W={};for(l= l.firstChild;l!=null;l=l.nextSibling)l instanceof Element&&/SystemURL/.test(l.nodeName)&&(R=l.getAttribute("type"),H=l.textContent,R&&H&&(W[R]=H.trim()))}else W=void 0;return new v9(y,f,{audio:c,video:B,hF:E,sS:W,r7:A,Hv:G,contentLength:K})}; QoQ=function(R){switch(R){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"}}; $Ak=function(R){switch(R){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"}}; TTq=function(R,l){l=l===void 0?"":l;R.state=1;R.CX=(0,g.eY)();return soT(l||R.sourceUrl).then(function(y){if(!R.Fx()){R.CM=y.status;y=y.responseText;var f=new DOMParser;y=eq(f,zac(y),"text/xml").getElementsByTagName("MPD")[0];R.LX=v5o(BC(y,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(y.attributes){f=g.u(y.attributes);for(var A=f.next();!A.done;A=f.next())if(A=A.value,A.value==="http://youtube.com/yt/2012/10/10"){f=A.name.split(":")[1];break b}}f=""}R.J=f;R.isLive=R.LX=R.LX}; r2j=function(R){R.D&&R.D.stop()}; Xso=function(R){var l=R.LX;isFinite(l)&&(S5(R)?R.refresh():(l=Math.max(0,R.CX+l-(0,g.eY)()),R.D||(R.D=new g.Vg(R.refresh,l,R),g.U(R,R.D)),R.D.start(l)))}; vNk=function(R){R=R.Z;for(var l in R){var y=R[l].index;if(y.isLoaded())return y.Wl()+1}return 0}; j5=function(R){return R.sF?R.sF-(R.V||R.timestampOffset):0}; kg=function(R){return R.Dq?R.Dq-(R.V||R.timestampOffset):0}; DV=function(R){if(!isNaN(R.P1))return R.P1;var l=R.Z,y;for(y in l){var f=l[y].index;if(f.isLoaded()&&!Zw(l[y].info.mimeType)){l=0;for(y=f.N5();y<=f.Wl();y++)l+=f.getDuration(y);l/=f.g4();l=Math.round(l/.5)*.5;f.g4()>10&&(R.P1=l);return l}if(R.isLive&&(f=l[y],f.Sv))return f.Sv}return NaN}; zhc=function(R,l){R=zQs(R.Z,function(f){return f.index.isLoaded()}); if(!R)return NaN;R=R.index;var y=R.TL(l);return R.getStartTime(y)===l?l:y=0&&A.segments.splice(K,1)}}}; xAc=function(R){for(var l in R.Z)Zw(R.Z[l].info.mimeType)||pt7(R.Z[l].index,Infinity)}; gS=function(R,l,y){for(var f in R.Z){var A=R.Z[f].index,K=l,G=y;A.bR&&(K&&(A.qH=Math.max(A.qH,K)),G&&(A.Fr=Math.max(A.Fr||0,G)))}y&&(R.Yb=y/1E3)}; Iur=function(R){R.Dq=0;R.sF=0;R.vZ=0}; V6=function(R){return R.v1&&R.isManifestless?R.isLiveHeadPlayable:R.isLive}; xg=function(R,l,y){CK===null&&(CK=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(nN7&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return CK||y!=="9"&&y!=="("?CK||y!=="9h"&&y!=="(h"||(R='video/webm; codecs="vp9.2"'):R='video/webm; codecs="vp9"',R;if(!CK&&!qq||R!=='video/webm; codecs="vp9"'&&R!=='video/webm; codecs="vp9.2"')return R; y="00";var f="08",A="01",K="01",G="01";R==='video/webm; codecs="vp9.2"'&&(y="02",f="10",l.primaries==="bt2020"&&(G=A="09"),l.Z==="smpte2084"&&(K="16"),l.Z==="arib-std-b67"&&(K="18"));return'video/webm; codecs="'+["vp09",y,"51",f,"01",A,K,G,"00"].join(".")+'"'}; Yg=function(R,l,y){R=""+R+(l>49?"p60":l>32?"p48":"");l=ae()[R];if(l!=null&&l>0)return l;l=t1.get(R);if(l!=null&&l>0)return l;y=y==null?void 0:y.get(R);return y!=null&&y>0?y:8192}; NTk=function(R){this.yL=R;this.tF=this.Xv=this.sL=this.J=this.Y=this.UL=this.v1=this.LX=!1;this.V=this.D=0;this.W1=!1;this.Yb=!0;this.tU=!1;this.Dy=0;this.jz=this.xb=!1;this.eZ=!0;this.CX=this.P1=!1;this.Z={};this.ZL=this.LA=this.OF=this.disableAv1=this.B1=this.Ms=this.uQ=this.iQ=this.X=this.W=!1;this.Qb=this.yL.C("html5_disable_aac_preference");this.ol=Infinity;this.Dq=0;this.vZ=this.yL.PZ();this.sF=this.yL.experiments.EL("html5_enable_vp9_fairplay");this.lj=this.yL.C("html5_force_av1_for_testing"); this.jS=g.yx(this.yL.experiments,"html5_av1_ordinal_cap");this.US=this.yL.C("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.f_=this.yL.C("html5_account_onesie_format_selection_during_format_filter");this.r7=g.yx(this.yL.experiments,"html5_max_byterate");this.nA=this.yL.C("html5_enable_iamf_audio");this.Vu=this.yL.experiments.EL("html5_allow_capability_merge");this.RV=this.yL.C("html5_enable_encrypted_av1")}; bVo=function(R){if(R.v1)return["f"];if(g.j0("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var l=["9h","9","h","8"];R.RV&&l.push("1e");l=l.concat(["(h","(","H","*"]);R.xb&&(l.unshift("1"),l.unshift("1h"));R.Xv&&l.unshift("h");R.B&&(l=(psq[R.B]||[R.B]).concat(l));return l}; iV7=function(R){var l=["o","a","A"];R.Dq===1&&(R.Y&&(l=["mac3","MAC3"].concat(l)),R.J&&(l=["meac3","MEAC3"].concat(l)),R.nA&&(l=["i","I"].concat(l)));R.LX&&(l=["so","sa"].concat(l));!R.tF||R.sL||R.L||R.Qb||l.unshift("a");R.L&&(l=(psq[R.L]||[R.L]).concat(l));return l}; Mq=function(R,l,y,f){l=l===void 0?{}:l;if(f===void 0?0:f)return l.disabled=1,0;if(S2(R.J,j2.AV1_CODECS)&&S2(R.J,j2.HEIGHT)&&S2(R.J,j2.BITRATE))return l.isCapabilityUsable=1,8192;try{var A=RFQ();if(A&&!R.C("disable_av1_setting"))return l.localPref=A}catch(B){}f=1080;A=navigator.hardwareConcurrency;A<=2&&(f=480);l.coreCount=A;if(A=g.yx(R.experiments,"html5_default_av1_threshold"))f=l["default"]=A;!R.C("html5_disable_av1_arm_check")&&Wg7()&&(l.isArm=1,f=240);if(R=R.J.Yb)l.mcap=R,f=Math.max(f,R);if(y){var K, G;if(R=(K=y.videoInfos.find(function(B){return Iz(B)}))==null?void 0:(G=K.X)==null?void 0:G.powerEfficient)f=8192,l.isEfficient=1; y=y.videoInfos[0].video;K=Math.min(Yg("1",y.fps),Yg("1",30));l.perfCap=K;f=Math.min(f,K);y.isHdr()&&!R&&(l.hdr=1,f*=.75)}else y=Yg("1",30),l.perfCap30=y,f=Math.min(f,y),y=Yg("1",60),l.perfCap60=y,f=Math.min(f,y);return l.av1Threshold=f}; R_=function(R,l,y,f){this.flavor=R;this.keySystem=l;this.X=y;this.experiments=f;this.Z={};this.jS=this.keySystemAccess=null;this.fY=this.V_=-1;this.aU=null;this.L=!!f&&f.EL("edge_nonprefixed_eme");f&&f.EL("html5_enable_vp9_fairplay")}; yy=function(R){return R.L?!1:!R.keySystemAccess&&!!li()&&R.keySystem==="com.microsoft.playready"}; fI=function(R){return R.keySystem==="com.microsoft.playready"}; Au=function(R){return!R.keySystemAccess&&!!li()&&R.keySystem==="com.apple.fps.1_0"}; KI=function(R){return R.keySystem==="com.youtube.fairplay"}; GO=function(R){return R.keySystem==="com.youtube.fairplay.sbdl"}; g.a_=function(R){return R.flavor==="fairplay"}; li=function(){var R=window,l=R.MSMediaKeys;gg()&&!l&&(l=R.WebKitMediaKeys);return l&&l.isTypeSupported?l:null}; Bn=function(R){return navigator.requestMediaKeySystemAccess?g.iz&&!g.Db()?QD("45"):g.g4||g.oc?R.EL("edge_nonprefixed_eme"):g.sN?QD("47"):g.LO&&R.EL("html5_enable_safari_fairplay")?!1:!0:!1}; UAZ=function(R,l,y,f){var A=Zb(),K=(y=A||y&&gg())?["com.youtube.fairplay"]:["com.widevine.alpha"];l&&K.unshift("com.youtube.widevine.l3");A&&f&&K.unshift("com.youtube.fairplay.sbdl");return y?K:R?[].concat(g.ci(K),g.ci(Hn.playready)):[].concat(g.ci(Hn.playready),g.ci(K))}; nI=function(R,l,y,f,A){f=f===void 0?!1:f;g.p.call(this);this.yL=l;this.useCobaltWidevine=f;this.T4=A;this.X=[];this.L={};this.Z={};this.callback=null;this.J=!1;this.Y=[];this.initialize(R,!y)}; joc=function(R,l){R.callback=l;R.Y=[];Bn(R.yL.experiments)?mn(R):SeK(R)}; mn=function(R){if(!R.Fx())if(R.X.length===0)R.callback(R.Y);else{var l=R.X[0],y=R.L[l],f=kAq(R,y);if(o_&&o_.keySystem===l&&o_.J7U===JSON.stringify(f))R.T4("remksa",{re:!0}),DAK(R,y,o_.keySystemAccess);else{var A,K;R.T4("remksa",{re:!1,ok:(K=(A=o_)==null?void 0:A.keySystem)!=null?K:""});o_=void 0;navigator.requestMediaKeySystemAccess(l,f).then(j9(function(G){DAK(R,y,G,f)}),j9(function(){R.J=!R.J&&R.L[R.X[0]].flavor==="widevine"; R.J||R.X.shift();mn(R)}))}}}; DAK=function(R,l,y,f){if(!R.Fx()){f&&(o_={keySystem:l.keySystem,keySystemAccess:y,J7U:JSON.stringify(f)});l.keySystemAccess=y;if(fI(l)){y=Lo();f=g.u(Object.keys(R.Z[l.flavor]));for(var A=f.next();!A.done;A=f.next())A=A.value,l.Z[A]=!!y.canPlayType(A)}else{y=l.keySystemAccess.getConfiguration();if(y.audioCapabilities)for(f=g.u(y.audioCapabilities),A=f.next();!A.done;A=f.next())l.Z[A.value.contentType]=!0;if(y.videoCapabilities)for(y=g.u(y.videoCapabilities),f=y.next();!f.done;f=y.next())l.Z[f.value.contentType]= !0}R.Y.push(l);R.useCobaltWidevine||R.C("html5_enable_vp9_fairplay")&&GO(l)?(R.X.shift(),mn(R)):R.callback(R.Y)}}; kAq=function(R,l){var y={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(R.C("html5_enable_vp9_fairplay")&&KI(l))return y.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),y.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[y];fI(l)&&(y.initDataTypes=["keyids","cenc"]);for(var f=g.u(Object.keys(R.Z[l.flavor])),A=f.next();!A.done;A=f.next()){A=A.value;var K=A.indexOf("audio/")===0,G=K?y.audioCapabilities:y.videoCapabilities;l.flavor!== "widevine"||R.J?G.push({contentType:A}):K?G.push({contentType:A,robustness:"SW_SECURE_CRYPTO"}):(g.iz&&g.j0("windows nt")&&!R.C("html5_drm_enable_moho")||G.push({contentType:A,robustness:"HW_SECURE_ALL"}),K=A,R.yL.J.L&&A.includes("vp09")&&(K=A+"; experimental=allowed"),G.push({contentType:K,robustness:"SW_SECURE_DECODE"}),hu(R.yL)==="MWEB"&&(Mr()||ka())&&(R.T4("swcrypto",{}),G.push({contentType:A,robustness:"SW_SECURE_CRYPTO"})))}return[y]}; SeK=function(R){if(li()&&(g.LO||C0))R.Y.push(new R_("fairplay","com.apple.fps.1_0","",R.yL.experiments));else{var l=ZwT(),y=g.iA(R.X,function(f){var A=R.L[f],K=!1,G=!1,B;for(B in R.Z[A.flavor])l(B,f)&&(A.Z[B]=!0,K=K||B.indexOf("audio/")===0,G=G||B.indexOf("video/")===0);return K&&G}); y&&R.Y.push(R.L[y]);R.X=[]}R.callback(R.Y)}; ZwT=function(){var R=li();if(R){var l=R.isTypeSupported;return function(f,A){return l(A,f)}}var y=Lo(); return y&&(y.addKey||y.webkitAddKey)?function(f,A){return!!y.canPlayType(f,A)}:function(){return!1}}; J2Y=function(R){this.experiments=R;this.Z=2048;this.Y=0;this.Yb=(this.V=this.C("html5_streaming_resilience"))?.5:.25;var l=l===void 0?0:l;this.L=g.yx(this.experiments,"html5_media_time_weight_prop")||l;this.LX=g.yx(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.B=(this.J=this.experiments.EL("html5_consider_end_stall"))&&cn;this.X=this.experiments.EL("html5_measure_max_progress_handling");this.W=this.C("html5_treat_requests_pre_elbow_as_metadata");this.D=this.C("html5_media_time_weight")|| !!this.L;this.C("html5_sabr_live_audio_early_return_fix")&&cn&&(this.Z=65536)}; gNq=function(R,l){this.Z=void 0;this.experimentIds=R?R.split(","):[];this.flags=YO(l||"","&");R={};l=g.u(this.experimentIds);for(var y=l.next();!y.done;y=l.next())R[y.value]=!0;this.experiments=R}; g.yx=function(R,l){R=R.flags[l];JSON.stringify(R);return Number(R)||0}; EN=function(R,l){return(R=R.flags[l])?R.toString():""}; VDQ=function(R){if(R=R.flags.html5_web_po_experiment_ids)if(R=R.replace(/\[ *(.*?) *\]/,"$1"))return R.split(",").map(Number);return[]}; CZZ=function(R){if(R.Z)return R.Z;if(R.experimentIds.length<=1)return R.Z=R.experimentIds,R.Z;var l=[].concat(g.ci(R.experimentIds)).map(function(f){return Number(f)}); l.sort();for(var y=l.length-1;y>0;--y)l[y]-=l[y-1];R.Z=l.map(function(f){return f.toString()}); R.Z.unshift("v1");return R.Z}; tDQ=function(R){return qeo.then(R)}; Wn=function(R,l,y){this.experiments=R;this.Dq=l;this.sL=y===void 0?!1:y;this.B=!!g.yr("cast.receiver.platform.canDisplayType");this.W={};this.LX=!1;this.Y=new Map;this.V=!0;this.X=this.L=!1;this.Z=new Map;this.Yb=0;this.xb=this.experiments.EL("html5_disable_vp9_encrypted");this.J=this.experiments.EL("html5_enable_encrypted_av1");R=g.yr("cast.receiver.platform.getValue");this.D=!this.B&&R&&R("max-video-resolution-vpx")||null;Yec(this);this.L=!!(Zb()&&S0()>=21)}; d$s=function(R,l,y){y=y===void 0?1:y;var f=l.itag;if(f==="0")return!0;var A=l.mimeType;if(l.H1==="1e"&&!R.J)return"dav1enc";if(Iz(l)&&R.LX)return"dav1";if(l.video&&(l.video.isHdr()||l.video.primaries==="bt2020")&&!(S2(R,j2.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(f==="338"&&!(g.iz?QD(53):g.sN&&QD(64)))return"dopus";var K=y;K=K===void 0?1: K;y={};l.video&&(l.video.width&&(y[j2.WIDTH.name]=l.video.width),l.video.height&&(y[j2.HEIGHT.name]=l.video.height),l.video.fps&&(y[j2.FRAMERATE.name]=l.video.fps*K),l.video.Z&&(y[j2.EOTF.name]=l.video.Z),l.r7&&(y[j2.BITRATE.name]=l.r7*8*K),l.H1==="("&&(y[j2.CRYPTOBLOCKFORMAT.name]="subsample"),l.video.projectionType==="EQUIRECTANGULAR"||l.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||l.video.projectionType==="MESH")&&(y[j2.DECODETOTEXTURE.name]="true");l.audio&&l.audio.numChannels&& (y[j2.CHANNELS.name]=l.audio.numChannels);R.L&&zC(l)&&(y[j2.EXPERIMENTAL.name]="allowed");K=g.u(Object.keys(j2));for(var G=K.next();!G.done;G=K.next()){G=j2[G.value];var B;if(B=y[G.name])if(B=!(G===j2.EOTF&&l.mimeType.indexOf("vp09.02")>0)){B=G;var H=l;B=!(R.experiments.EL("html5_ignore_h264_framerate_cap")&&B===j2.FRAMERATE&&TpT(H))}if(B)if(S2(R,G))if(R.D){if(R.D[G.name] 1080&&l.sS&&(A+="; hdcp=2.2");return f==="227"?"hqcenc":f!=="585"&&f!=="588"&&f!=="583"&&f!=="586"&&f!=="584"&&f!=="587"&&f!=="591"&&f!=="592"||R.experiments.EL("html5_enable_new_hvc_enc")?Zb()&&S0()>=21&&g.j0("appletv5")&&(f==="410"||f==="845")?!0:R.isTypeSupported(A)?!0:"tpus":"newhvc"}; LI=function(){var R=ka()&&!QD(29),l=g.j0("google tv")&&g.j0("chrome")&&!QD(30);return R||l?!1:xFj()}; MD9=function(R,l,y){var f=480;l=g.u(l);for(var A=l.next();!A.done;A=l.next()){A=A.value;var K=A.video.qualityOrdinal;K<=1080&&K>f&&d$s(R,A,y)===!0&&(f=K)}return f}; g.ON=function(R,l){l=l===void 0?!1:l;return LI()&&R.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!l&&R.canPlayType(Lo(),"application/x-mpegURL")?!0:!1}; l5J=function(R){RjJ(function(){for(var l=g.u(Object.keys(j2)),y=l.next();!y.done;y=l.next())S2(R,j2[y.value])})}; S2=function(R,l){l.name in R.W||(R.W[l.name]=y6i(R,l));return R.W[l.name]}; y6i=function(R,l){if(R.D)return!!R.D[l.name];if(l===j2.BITRATE&&R.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!R.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(l===j2.AV1_CODECS)return R.isTypeSupported("video/mp4; codecs="+l.valid)&&!R.isTypeSupported("video/mp4; codecs="+l.Eu);if(l.video){var y='video/webm; codecs="vp9"';R.isTypeSupported(y)||(y='video/mp4; codecs="avc1.4d401e"')}else y='audio/webm; codecs="opus"', R.isTypeSupported(y)||(y='audio/mp4; codecs="mp4a.40.2"');return R.isTypeSupported(y+"; "+l.name+"="+l.valid)&&!R.isTypeSupported(y+"; "+l.name+"="+l.Eu)}; f5j=function(R,l){var y=0;R.Y.has(l)&&(y=R.Y.get(l).v4);R.Y.set(l,{v4:y+1,mQ:Math.pow(2,y+1)});R.X=!0}; Ie=function(R){for(var l=[],y=g.u(R.Z.keys()),f=y.next();!f.done;f=y.next()){f=f.value;var A=R.Z.get(f);l.push(f+"_"+A.maxWidth+"_"+A.maxHeight)}return l.join(".")}; unJ=function(R,l){for(var y=new Map,f=g.u(R.Z.keys()),A=f.next();!A.done;A=f.next()){A=A.value;var K=A.split("_")[0];l.has(K)||y.set(A,R.Z.get(A))}R.Z=y}; Qi7=function(R,l,y){var f,A=((f=y.video)==null?void 0:f.fps)||0;f=l+"_"+A;var K=!!y.audio,G={itag:y.itag,H1:l,IT:K};if(K)G.numChannels=y.audio.numChannels;else{var B=y.video;G.maxWidth=B==null?void 0:B.width;G.maxHeight=B==null?void 0:B.height;G.maxFramerate=A;S2(R,j2.BITRATE)&&(G.maxBitrateBps=y.r7*8);G.Kj=B==null?void 0:B.isHdr()}B=R.Z.get(f);B?K||(y=Math.max(B.maxWidth||0,B.maxHeight||0)>Math.max(G.maxWidth||0,G.maxHeight||0)?B:G,l={itag:y.itag,H1:l,IT:K,maxWidth:Math.max(B.maxWidth||0,G.maxWidth|| 0),maxHeight:Math.max(B.maxHeight||0,G.maxHeight||0),maxFramerate:A,Kj:y.Kj},S2(R,j2.BITRATE)&&(l.maxBitrateBps=y.maxBitrateBps),R.Z.set(f,l)):R.Z.set(f,G)}; $$7=function(R,l,y){var f,A=((f=y.video)==null?void 0:f.fps)||0;f=l+"_"+A;var K=!!y.audio,G=R.Z.get(f);a:{var B=R.Z.get(f),H=!!y.audio;if(B){if(H){var n=!1;break a}var m;if(!H&&((n=y.video)==null?0:n.height)&&B.maxHeight&&B.maxHeight>=((m=y.video)==null?void 0:m.height)){n=!1;break a}}n=!0}n&&(n=y.itag,l=G?G:{itag:n,H1:l,IT:K},K?l.numChannels=y.audio.numChannels:(K=y.video,l.maxWidth=K==null?void 0:K.width,l.maxHeight=K==null?void 0:K.height,l.maxFramerate=A,S2(R,j2.BITRATE)&&(l.maxBitrateBps=y.r7* 8),l.Kj=K==null?void 0:K.isHdr()),R.Z.set(f,l))}; Yec=function(R){var l;(l=navigator.mediaCapabilities)!=null&&l.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(y){y.smooth&&y.powerEfficient&&(R.Yb=2160)})}; ii=function(){g.Ae.call(this);this.items={}}; A69=function(R,l,y){this.encryptedClientKey=l;this.J=y;this.Z=new Uint8Array(R.buffer,0,16);this.L=new Uint8Array(R.buffer,16)}; KwY=function(R){R.X||(R.X=new g.nH(R.Z));return R.X}; Pn=function(R){try{return To(R)}catch(l){return null}}; G3r=function(R,l){if(!l&&R)try{l=JSON.parse(R)}catch(A){}if(l){R=l.clientKey?Pn(l.clientKey):null;var y=l.encryptedClientKey?Pn(l.encryptedClientKey):null,f=l.keyExpiresInSeconds?Number(l.keyExpiresInSeconds)*1E3+(0,g.eY)():null;R&&y&&f&&(this.Z=new A69(R,y,f));l.onesieUstreamerConfig&&(this.onesieUstreamerConfig=Pn(l.onesieUstreamerConfig)||void 0);this.baseUrl=l.baseUrl}}; FY=function(){this.data=new Uint8Array(2048);this.pos=0;ui||(ui=OR("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; Qy=function(R,l){R.add(l==null||isNaN(l)?0:l+1)}; $h=function(R){this.Z=this.X=0;this.alpha=Math.exp(Math.log(.5)/R)}; er=function(R){this.X=R===void 0?15:R;this.values=new Float64Array(176);this.Z=new Float64Array(11);this.L=new Float64Array(16)}; bi=function(R,l,y,f){y=y===void 0?.5:y;f=f===void 0?0:f;this.resolution=l;this.X=0;this.L=!1;this.FN=!0;this.Z=Math.round(R*this.resolution);this.values=Array(this.Z);for(R=0;R0)l=R.byterate,this.LX=!0;else{var f; y=(((f=navigator.connection)==null?void 0:f.downlink)||0)*64*1024;y>0&&(l=y,this.LX=!0)}this.L.tR(this.policy.D,l);R.delay>0&&this.W.tR(1,Math.min(R.delay,2));R.stall>0&&this.V.tR(1,R.stall);R.init>0&&(this.CX=Math.min(R.init,this.CX));R.interruptions&&(this.Y=this.Y.concat(R.interruptions),this.Y.length>16&&this.Y.pop());this.Yb=(0,g.eY)();this.policy.V>0&&(this.v1=new g.Vg(this.UL,this.policy.V,this),g.U(this,this.v1),this.v1.start())}; TO=function(R,l,y,f){R.L.tR(f===void 0?l:f,y/l);R.D=(0,g.eY)()}; sTT=function(R){R.J||(R.J=(0,g.eY)());R.policy.B&&(R.D=(0,g.eY)())}; B5s=function(R,l){if(R.J){var y=l-R.J;if(y<6E4){if(y>1E3){var f=R.interruptions;f.push(Math.ceil(y));f.sort(function(A,K){return K-A}); f.length>16&&f.pop()}R.Dq+=y}}R.J=l}; d2=function(R,l,y,f,A,K){K=K===void 0?!1:K;R.P1.tR(l,y/l);R.D=(0,g.eY)();A||R.B.tR(1,l-f);K||(R.J=0);R.Yb>-1&&(0,g.eY)()-R.Yb>3E4&&HZZ(R)}; r2=function(R,l,y){l=Math.max(l,R.X.Z);R.V.tR(1,y/l)}; vn=function(R){R=R.W.hL()+R.sL.hL()||0;R=isNaN(R)?.5:R;return R=Math.min(R,5)}; zO=function(R,l,y){isNaN(y)||(R.xb+=y);isNaN(l)||(R.jS+=l)}; w2=function(R){R=R.L.hL();return R>0?R:1}; xh=function(R,l,y){l=l===void 0?!1:l;y=y===void 0?1048576:y;var f=w2(R);f=1/((R.V.hL()||0)*R.policy.LX+1/f);var A=R.P1.hL();A=A>0?A:1;var K=Math.max(f,A);R.policy.J>0&&A=4E3}; mBT=function(R){this.experiments=R;this.Z=17;this.L=13E4;this.D=.5;this.Y=this.X=!1;this.Yb=this.C("html5_use_histogram_for_bandwidth");this.J=g.yx(this.experiments,"html5_auxiliary_estimate_weight");this.LX=g.yx(this.experiments,"html5_stall_factor")||1;this.V=g.yx(this.experiments,"html5_check_for_idle_network_interval_ms");this.W=this.experiments.EL("html5_trigger_loader_when_idle_network");this.B=this.experiments.EL("html5_sabr_fetch_on_idle_network_preloaded_players")}; hjk=function(R,l){R=R===void 0?{}:R;l=l===void 0?{}:l;g.p.call(this);var y=this;this.values=R;this.dF=l;this.X={};this.L=this.Z=0;this.Y=new g.Vg(function(){oP9(y)},1E4); g.U(this,this.Y)}; NE=function(R,l){c6i(R,l);return R.values[l]&&R.dF[l]?R.values[l]/Math.pow(2,R.Z/R.dF[l]):0}; c6i=function(R,l){R.values[l]||(l=qBc(),R.values=l.values||{},R.dF=l.halfLives||{},R.X=l.values?Object.assign({},l.values):{})}; oP9=function(R){var l=qBc();if(l.values){l=l.values;for(var y={},f=g.u(Object.keys(R.values)),A=f.next();!A.done;A=f.next())A=A.value,l[A]&&R.X[A]&&(R.values[A]+=l[A]-R.X[A]),y[A]=NE(R,A);R.X=y}l=R.dF;y={};y.values=R.X;y.halfLives=l;g.vW("yt-player-memory",y,2592E3)}; fU=function(R,l,y,f,A){g.p.call(this);this.webPlayerContextConfig=l;this.aU=f;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.pw=this.sF=this.lj=this.ZW=this.userDisplayName=this.userDisplayImage=this.AJ="";this.Z={};this.vZ={};this.controlsType="0";this.eZ=NaN;this.iQ=!1;this.eI=(0,g.eY)();this.nA=0;this.xI=this.Fv=!1;this.LG=!0;this.preferGapless=this.L7=this.CJ=this.L=this.Qq=!1;this.jo=[];this.FR=!1;this.Gu=0;R=R?g.Eh(R):{};l&&l.csiPageType&&(this.csiPageType=l.csiPageType);l&&l.csiServiceName&& (this.csiServiceName=l.csiServiceName);l&&l.preferGapless&&(this.preferGapless=l.preferGapless);this.experiments=new gNq(l?l.serializedExperimentIds:R.fexp,l?l.serializedExperimentFlags:R.fflags);this.forcedExperiments=l?l.serializedForcedExperimentIds:KF("",R.forced_experiments)||void 0;this.cspNonce=(l==null?0:l.cspNonce)?l.cspNonce:KF("",R.csp_nonce);this.C("web_player_deprecated_uvr_killswitch");try{var K=document.location.toString()}catch(Ac){K=""}this.J7=K;this.ancestorOrigins=(f=window.location.ancestorOrigins)? Array.from(f):[];this.Y=y8(!1,l?l.isEmbed:R.is_embed);if(l&&l.device){if(f=l.device,f.androidOsExperience&&(this.Z.caoe=""+f.androidOsExperience),f.androidPlayServicesVersion&&(this.Z.capsv=""+f.androidPlayServicesVersion),f.brand&&(this.Z.cbrand=f.brand),f.browser&&(this.Z.cbr=f.browser),f.browserVersion&&(this.Z.cbrver=f.browserVersion),f.cobaltReleaseVehicle&&(this.Z.ccrv=""+f.cobaltReleaseVehicle),this.Z.c=f.interfaceName||"WEB",this.Z.cver=f.interfaceVersion||"html5",f.interfaceTheme&&(this.Z.ctheme= f.interfaceTheme),this.Z.cplayer=f.interfacePlayerType||"UNIPLAYER",f.model&&(this.Z.cmodel=f.model),f.network&&(this.Z.cnetwork=f.network),f.os&&(this.Z.cos=f.os),f.osVersion&&(this.Z.cosver=f.osVersion),f.platform&&(this.Z.cplatform=f.platform),K=EN(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),K==="all"||K==="once")f.chipset&&(this.vZ.cchip=f.chipset),f.cobaltAppVersion&&(this.vZ.ccappver=f.cobaltAppVersion),f.firmwareVersion&&(this.vZ.cfrmver=f.firmwareVersion),f.deviceYear&&(this.vZ.crqyear= f.deviceYear)}else this.Z.c=R.c||"web",this.Z.cver=R.cver||"html5",this.Z.cplayer="UNIPLAYER";this.loaderUrl=l?this.Y||EPr(this)&&l.loaderUrl?l.loaderUrl||"":this.J7:this.Y||EPr(this)&&R.loaderUrl?KF("",R.loaderUrl):this.J7;this.Y&&g.lA("yt.embedded_player.embed_url",this.loaderUrl);this.W=SN(this.loaderUrl,WwK);f=this.loaderUrl;var G=G===void 0?!1:G;this.mC=Ub(SN(f,Lwi),f,G,"Trusted Ad Domain URL");this.tF=y8(!1,R.privembed);this.protocol=this.J7.indexOf("http:")===0?"http":"https";this.v0=n$Q((l? l.customBaseYoutubeUrl:R.BASE_YT_URL)||"")||n$Q(this.J7)||this.protocol+"://www.youtube.com/";G=l?l.eventLabel:R.el;f="detailpage";G==="adunit"?f=this.Y?"embedded":"detailpage":G==="embedded"||this.W?f=fF(f,G,OZ9):G&&(f="embedded");this.sL=f;bEK();G=null;f=l?l.playerStyle:R.ps;K=g.uA(iZj,f);!f||K&&!this.W||(G=f);this.playerStyle=G;this.D=g.uA(iZj,this.playerStyle);this.houseBrandUserStatus=l==null?void 0:l.houseBrandUserStatus;this.Yb=this.D&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.HM=!this.Yb;this.jS=y8(!1,R.disableplaybackui);this.disablePaidContentOverlay=y8(!1,l==null?void 0:l.disablePaidContentOverlay);this.disableSeek=y8(!1,l==null?void 0:l.disableSeek);this.enableSpeedOptions=(l==null?void 0:l.enableSpeedOptions)||(Lo().defaultPlaybackRate?pI||g.Ya||UN?g.sN&&QD("20")||g.iz&&QD("4")||g.Sr&&QD("11")||Vt():!(g.Sr&&!g.j0("chrome")||pI||g.j0("android")||g.j0("silk")):!1);this.PR=y8(!1,R.enable_faster_speeds);var B;this.supportsVarispeedExtendedFeatures=(B=l==null?void 0: l.supportsVarispeedExtendedFeatures)!=null?B:!1;this.X=y8(this.playerStyle==="blazer",R.is_html5_mobile_device||l&&l.isMobileDevice);this.UL=t$()||Mr();this.jT=this.C("mweb_allow_background_playback")?!1:this.X&&!this.D;this.P1=FN();this.TK=g.jr;var H;this.Zj=!!(l==null?0:(H=l.embedsHostFlags)==null?0:H.optOutApiDeprecation);var n;this.wp=!!(l==null?0:(n=l.embedsHostFlags)==null?0:n.allowPfpImaIntegration);this.Gn=this.C("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var m;l?l.hideInfo!== void 0&&(m=!l.hideInfo):m=R.showinfo;this.Zo=g.kh(this)&&!this.Zj||y8(!Dq(this)&&!Zq(this)&&!this.D,m);this.wk=l?!!l.mobileIphoneSupportsInlinePlayback:y8(!1,R.playsinline);B=this.X&&Ju&&g2!=null&&g2>0&&g2<=2.3;H=l?l.useNativeControls:R.use_native_controls;this.V=g.kh(this)&&this.X;n=this.X&&!this.V;H=g.Vy(this)||!B&&y8(n,H)?"3":"1";this.disableOrganicUi=!(l==null||!l.disableOrganicUi);n=l?l.controlsType:R.controls;this.controlsType=this.disableOrganicUi||n==="0"||n===0?"0":H;this.wN=this.X;this.color= fF("red",l?l.progressBarColor:R.color,Pgj);this.ET=this.controlsType==="3";this.OF=!this.Y;this.XK=(H=!this.OF&&!Zq(this)&&!this.Yb&&!this.D&&!Dq(this))&&!this.ET&&this.controlsType==="1";this.Ms=g.CI(this)&&H&&this.controlsType==="0"&&!this.XK&&!(l==null?0:l.embedsEnableEmc3ds);this.xO=this.YO=B;this.f_=(this.controlsType==="3"||this.X||y8(!1,R.use_media_volume))&&!this.V;this.Y8=C0&&!g.Up(601)?!1:!0;this.xP=this.Y||!1;this.RV=Zq(this)?"":(this.loaderUrl||R.post_message_origin||"").substring(0,128); this.widgetReferrer=KF("",l?l.widgetReferrer:R.widget_referrer);var h;l?l.disableCastApi&&(h=!1):h=R.enablecastapi;h=!this.W||y8(!0,h);B=!0;l&&l.disableMdxCast&&(B=!1);this.Kf=this.C("enable_cast_for_web_unplugged")&&g.qE(this)&&B||g.xi(this)&&B||h&&B&&this.controlsType==="1"&&!this.X&&(Zq(this)||g.CI(this)||g.tu(this));this.aB=!!window.document.pictureInPictureEnabled||uz();h=l?!!l.supportsAutoplayOverride:y8(!1,R.autoplayoverride);this.o9=!(this.X&&!g.kh(this))&&!g.j0("nintendo wiiu")||h;this.zL= (l?!!l.enableMutedAutoplay:y8(!1,R.mutedautoplay))&&!1;h=(Zq(this)||Dq(this))&&this.playerStyle==="blazer";this.c6=l?!!l.disableFullscreen:!y8(!0,R.fs);B=g.BW(g.Yh(this))&&g.kh(this);this.LA=!this.c6&&(h||g.EG())&&!B;this.ZS=this.C("html5_picture_in_picture_logging_onresize");var c;this.XN=(c=g.yx(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?c:.33;this.rk=this.C("html5_picture_in_picture_blocking_onresize");this.iP=this.C("html5_picture_in_picture_blocking_ontimeupdate"); this.cC=this.C("html5_picture_in_picture_blocking_document_fullscreen");this.mN=this.C("html5_picture_in_picture_blocking_standard_api");c=ka()&&QD(58)&&!Mr();h=Jv||typeof MediaSource==="undefined";this.mS=this.C("uniplayer_block_pip")&&(c||h)||this.rk||this.iP||this.mN;c=g.kh(this)&&!this.Zj;var E;l?l.disableRelatedVideos!==void 0&&(E=!l.disableRelatedVideos):E=R.rel;this.Vu=c||y8(!this.D,E);this.GK=y8(!1,l?l.enableContentOwnerRelatedVideos:R.co_rel);this.B=Mr()&&g2>0&&g2<=4.4?"_top":"_blank";this.BA= g.tu(this);this.m8=y8(this.playerStyle==="blazer",l?l.enableCsiLogging:R.enablecsi);switch(this.playerStyle){case "blogger":E="bl";break;case "gmail":E="gm";break;case "gac":E="ga";break;case "ads-preview":E="ap";break;case "books":E="gb";break;case "docs":case "flix":E="gd";break;case "duo":E="gu";break;case "google-live":E="gl";break;case "google-one":E="go";break;case "play":case "play-ads":E="gp";break;case "chat":E="hc";break;case "hangouts-meet":E="hm";break;case "photos-edu":case "picasaweb":E= "pw";break;default:E="yt"}this.LX=E;this.xb=KF("",l?l.authorizedUserIndex:R.authuser);this.ol=g.kh(this)&&(this.tF||!cRT()||this.UL);var W;l?l.disableWatchLater!==void 0&&(W=!l.disableWatchLater):W=R.showwatchlater;this.NW=((E=!this.ol)||!!this.xb&&E)&&y8(!this.Yb,this.W?W:void 0);this.TD=l?l.isMobileDevice||!!l.disableKeyboardControls:y8(!1,R.disablekb);this.loop=y8(!1,R.loop);this.pageId=KF("",l?l.initialDelegatedSessionId:R.pageid);this.IB=y8(!0,R.canplaylive);this.B1=y8(!1,R.livemonitor);this.disableSharing= y8(this.D,l?l.disableSharing:R.ss);(W=l&&this.C("fill_video_container_size_override_from_wpcc")?l.videoContainerOverride:R.video_container_override)?(E=W.split("x"),E.length!==2?W=null:(W=Number(E[0]),E=Number(E[1]),W=isNaN(W)||isNaN(E)||W*E<=0?null:new g.JM(W,E))):W=null;this.Tu=W;this.mute=l?!!l.startMuted:y8(!1,R.mute);this.storeUserVolume=!this.mute&&y8(this.controlsType!=="0",l?l.storeUserVolume:R.store_user_volume);W=l?l.annotationsLoadPolicy:R.iv_load_policy;this.annotationsLoadPolicy=this.controlsType=== "3"?3:fF(void 0,W,ME);this.captionsLanguagePreference=l?l.captionsLanguagePreference||"":KF("",R.cc_lang_pref);W=fF(2,l?l.captionsLanguageLoadPolicy:R.cc_load_policy,ME);this.controlsType==="3"&&W===2&&(W=3);this.iV=W;this.Qb=l?l.hl||"en_US":KF("en_US",R.hl);this.region=l?l.contentRegion||"US":KF("US",R.cr);this.hostLanguage=l?l.hostLanguage||"en":KF("en",R.host_language);this.gp=!this.tF&&Math.random()=480;this.schedule=new XY(h,new J2Y(this.experiments),A);g.U(this,this.schedule);var Q;this.enableSafetyMode=(Q=l==null?void 0:l.initialEnableSafetyMode)!=null? Q:y8(!1,R.enable_safety_mode);A=this.jS?!1:Zq(this)&&this.playerStyle!=="blazer";var e;l?l.disableAutonav!=null&&(e=!l.disableAutonav):e=R.allow_autonav;this.US=y8(A,!this.Yb&&e);this.sendVisitorIdHeader=l?!!l.sendVisitorIdHeader:y8(!1,R.send_visitor_id_header);var r;this.playerStyle==="docs"&&(l?r=l.disableNativeContextMenu:r=R.disable_native_context_menu);this.disableNativeContextMenu=y8(!1,r);this.I$=cl(this)&&this.C("enable_skip_intro_button");this.embedConfig=KF("",l?l.serializedEmbedConfig: R.embed_config);this.Dq=sG(R,g.kh(this));this.L=this.Dq==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(l==null||!l.embedsErrorLinks);this.kz=y8(!1,R.full_window);var d;this.W1=!((d=this.webPlayerContextConfig)==null?0:d.chromeless);var z;this.livingRoomAppMode=fF("LIVING_ROOM_APP_MODE_UNSPECIFIED",R.living_room_app_mode||(l==null?void 0:(z=l.device)==null?void 0:z.livingRoomAppMode),QTZ);var N;e=AD(NaN,l==null?void 0:(N=l.device)==null?void 0:N.deviceYear);isNaN(e)||(this.deviceYear=e);this.transparentBackground= l?!!l.transparentBackground:y8(!1,R.transparent_background);this.showMiniplayerButton=l?!!l.showMiniplayerButton:y8(!1,R.show_miniplayer_button);var D;g.kh(this)&&!(l==null?0:(D=l.embedsHostFlags)==null?0:D.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=l?!!l.externalFullscreen:y8(!1,R.external_fullscreen);this.showMiniplayerUiWhenMinimized=l?!!l.showMiniplayerUiWhenMinimized:y8(!1,R.use_miniplayer_ui);var t;this.LG=(t=R.show_loop_video_toggle)!=null?t:!0;this.K8=Math.random()< 1E-4;this.B$=R.onesie_hot_config||(l==null?0:l.onesieHotConfig)?new G3r(R.onesie_hot_config,l==null?void 0:l.onesieHotConfig):void 0;this.isTectonic=l?!!l.isTectonic:!!R.isTectonic;this.playerCanaryState=y;this.playerCanaryStage=l==null?void 0:l.canaryStage;this.R2=new hjk;g.U(this,this.R2);this.datasyncId=(l==null?void 0:l.datasyncId)||g.JZ("DATASYNC_ID");this.H$=g.JZ("LOGGED_IN",!1);this.aJ=(l==null?void 0:l.allowWoffleManagement)||!1;this.ML=Infinity;this.iE=NaN;this.livingRoomPoTokenId=l==null? void 0:l.livingRoomPoTokenId;this.C("html5_high_res_logging_always")?this.CJ=!0:this.CJ=Math.random()*100=0&&R<$Bc.length?$Bc[R]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"}; l2=function(R,l,y){y=y===void 0?!1:y;R.sF=KF(R.sF,l.video_id);R.lj=KF(R.lj,l.eventid);R.lj&&(Ex=R.lj);for(var f=[],A=g.u(Object.keys(ejY)),K=A.next();!K.done;K=A.next()){K=ejY[K.value];var G=l[K];G!=null&&(G!==R.Z[K]&&f.push(K),R.Z[K]=G)}!y&&f.length>0&&R.K8&&(f.sort(),g.dP(new g.JD("Player client parameters changed after startup",f)));R.userAge=AD(R.userAge,l.user_age);R.AJ=KF(R.AJ,l.user_display_email);R.userDisplayImage=KF(R.userDisplayImage,l.user_display_image);g.kC(R.userDisplayImage)||(R.userDisplayImage= "");R.userDisplayName=KF(R.userDisplayName,l.user_display_name);R.ZW=KF(R.ZW,l.user_gender);R.csiPageType=KF(R.csiPageType,l.csi_page_type);R.csiServiceName=KF(R.csiServiceName,l.csi_service_name);R.m8=y8(R.m8,l.enablecsi);R.pageId=KF(R.pageId,l.pageid);if(y=l.enabled_engage_types)R.enabledEngageTypes=new Set(y.split(","));l.living_room_session_po_token&&(R.HA=l.living_room_session_po_token.toString())}; An=function(R,l){return!R.D&&ka()&&QD(55)&&R.controlsType==="3"&&!l}; g.KU=function(R){R=RG(R.v0);return R==="www.youtube-nocookie.com"?"www.youtube.com":R}; Gt=function(R,l,y){return R.protocol+"://i1.ytimg.com/vi/"+l+"/"+(y||"hqdefault.jpg")}; aG=function(R){return Zq(R)&&!g.qE(R)}; g.Vy=function(R){return R.C("html5_local_playsinline")?C0&&!g.Up(602)&&!("playsInline"in Lo()):C0&&!R.wk||g.j0("nintendo wiiu")?!0:!1}; hu=function(R){return R.Z.c}; g.Eb=function(R){return/^TVHTML5/.test(hu(R))}; g.sS=function(R){return hu(R)==="TVHTML5"}; EPr=function(R){return hu(R)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; FwJ=function(R){return R.Z.cmodel==="CHROMECAST ULTRA/STEAK"||R.Z.cmodel==="CHROMECAST/STEAK"}; g.Bm=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; cl=function(R){return/web/i.test(hu(R))}; g.Hm=function(R){return hu(R).toUpperCase()==="WEB"}; yV=function(R){return hu(R)==="WEB_KIDS"}; g.qE=function(R){return hu(R)==="WEB_UNPLUGGED"}; nU=function(R){return hu(R)==="TVHTML5_UNPLUGGED"}; g.hq=function(R){return g.qE(R)||hu(R)==="TV_UNPLUGGED_CAST"||nU(R)}; g.xi=function(R){return hu(R)==="WEB_REMIX"}; g.mQ=function(R){return hu(R)==="WEB_MUSIC_INTEGRATIONS"}; g.oG=function(R){return hu(R)==="WEB_EMBEDDED_PLAYER"}; g.cm=function(R){return(R.deviceIsAudioOnly||!g.iz||Jv||R.controlsType==="3"?!1:g.Ya?R.Y&&g.Up(51):!0)||(R.deviceIsAudioOnly||!g.sN||Jv||R.controlsType==="3"?!1:g.Ya?R.Y&&g.Up(48):g.Up(38))||(R.deviceIsAudioOnly||!g.Sr||Jv||R.controlsType==="3"?!1:g.Ya?R.Y&&g.Up(37):g.Up(27))||!R.deviceIsAudioOnly&&g.hn&&!i3i()&&g.Up(11)||!R.deviceIsAudioOnly&&g.LO&&g.Up("604.4")}; bZY=function(R){if(g.CI(R)&&Ju)return!1;if(g.sN){if(!g.Up(47)||!g.Up(52)&&g.Up(51))return!1}else if(g.LO)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; T59=function(R,l){return R.enabledEngageTypes.has(l.toString())||Xfs.includes(l)}; Zq=function(R){return R.sL==="detailpage"}; g.CI=function(R){return R.sL==="embedded"}; ES=function(R){return R.sL==="leanback"}; Dq=function(R){return R.sL==="adunit"||R.playerStyle==="gvn"}; g.tu=function(R){return R.sL==="profilepage"}; g.kh=function(R){return R.Y&&g.CI(R)&&!Dq(R)&&!R.D}; Wm=function(R){if(!R.userDisplayImage)return"";var l=R.userDisplayImage.split("/");if(l.length===5)return R=l[l.length-1].split("="),R[1]="s20-c",l[l.length-1]=R.join("="),l.join("/");if(l.length===8)return l.splice(7,0,"s20-c"),l.join("/");if(l.length===9)return l[7]+="-s20-c",l.join("/");g.dP(new g.JD("Profile image not a FIFE URL.",R.userDisplayImage));return R.userDisplayImage}; g.LU=function(R){var l=g.KU(R);dBZ.includes(l)&&(l="www.youtube.com");return R.protocol+"://"+l}; g.OS=function(R,l){l=l===void 0?"":l;if(R.aU){var y=new Ee,f,A=R.aU();A.signedOut?f="":A.token?f=A.token:A.pendingResult.then(function(K){A.signedOut?y.resolve(""):y.resolve(K.token)},function(K){g.dP(new g.JD("b189348328_oauth_callback_failed",{error:K})); y.resolve(l)}); return f!==void 0?rg(f):new T9(y)}return rg(l)}; i2=function(R,l){l=l===void 0?"":l;return R.H$?bL(!0):v5(rZ(bL(g.OS(R,l)),function(y){return bL(!!y)}),function(){return bL(!1)})}; RG=function(R){var l=g.n4(R);return(R=Number(g.HF(R)[4]||null)||null)?l+":"+R:l}; Pm=function(R,l){l=l===void 0?!1:l;var y=ry[R],f=r6Y[y],A=vP9[R];if(!A||!f)return null;l=new XN(l?A.height:A.width,l?A.width:A.height,A.fps);f=xg(f,l,y);return new v9(R,f,{video:l,r7:A.bitrate/8})}; wf7=function(R){var l=r6Y[ry[R]],y=zjK[R];return y&&l?new v9(R,l,{audio:new $5(y.audioSampleRate,y.numChannels)}):null}; u2=function(R){this.Z=R}; Fh=function(R,l,y,f){if(y)return dg();y={};var A=Lo();l=g.u(l);for(var K=l.next();!K.done;K=l.next())if(K=K.value,R.canPlayType(A,K.getInfo().mimeType)||f){var G=K.Z.video.quality;if(!y[G]||y[G].getInfo().ij())y[G]=K}R=[];y.auto&&R.push(y.auto);f=g.u(TC);for(A=f.next();!A.done;A=f.next())(A=y[A.value])&&R.push(A);return R.length?rg(R):dg()}; xBZ=function(R){this.itag=R.itag;this.url=R.url;this.codecs=R.codecs;this.width=R.width;this.height=R.height;this.fps=R.fps;this.bitrate=R.bitrate;var l;this.X=((l=R.audioItag)==null?void 0:l.split(","))||[];this.tV=R.tV;this.sS=R.sS||"";this.hF=R.hF;this.audioChannels=R.audioChannels;this.Z=""}; I57=function(R,l,y,f){l=l===void 0?!1:l;y=y===void 0?!0:y;f=f===void 0?{}:f;var A={};R=g.u(R);for(var K=R.next();!K.done;K=R.next()){K=K.value;if(l&&MediaSource&&MediaSource.isTypeSupported){var G=K.type;K.audio_channels&&(G=G+"; channels="+K.audio_channels);if(!MediaSource.isTypeSupported(G)){f[K.itag]="tpus";continue}}if(y||!K.drm_families||K.eotf!=="smpte2084"&&K.eotf!=="arib-std-b67"){G=void 0;var B={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},H=K.type.match(/codecs="([^"]*)"/); H=H?H[1]:"";K.audio_track_id&&(G=new g.TL(K.name,K.audio_track_id,!!K.is_default));var n=K.eotf;K=new xBZ({itag:K.itag,url:K.url,codecs:H,width:Number(K.width),height:Number(K.height),fps:Number(K.fps),bitrate:Number(K.bitrate),audioItag:K.audio_itag,tV:n?B[n]:void 0,sS:K.drm_families,hF:G,audioChannels:Number(K.audio_channels)});A[K.itag]=A[K.itag]||[];A[K.itag].push(K)}else f[K.itag]="enchdr"}return A}; N5r=function(R,l,y,f,A){this.L=R;this.X=l;this.J=y;this.cpn=f;this.D=A;this.Y=0;this.Z=""}; pfr=function(R,l){R.L.some(function(y){var f;return((f=y.hF)==null?void 0:f.getId())===l}); R.Z=l}; QV=function(R,l,y){R.cpn&&(l=g.L4(l,{cpn:R.cpn}));y&&(l=g.L4(l,{paired:y}));return l}; UBT=function(R,l){R=R.itag.toString();l!==null&&(R+=l.itag.toString());return R}; S2T=function(R){for(var l=[],y=[],f=g.u(R.X),A=f.next();!A.done;A=f.next())A=A.value,A.bitrate<=R.Y?l.push(A):y.push(A);l.sort(function(K,G){return G.bitrate-K.bitrate}); y.sort(function(K,G){return K.bitrate-G.bitrate}); R.X=l.concat(y)}; $6=function(R,l,y){this.Z=R;this.X=l;this.expiration=y;this.x$=null}; jTs=function(R,l){if(!(Jv||gg()||Zb()))return null;R=I57(l,R.C("html5_filter_fmp4_in_hls"));if(!R)return null;l=[];for(var y={},f=g.u(Object.keys(R)),A=f.next();!A.done;A=f.next()){A=g.u(R[A.value]);for(var K=A.next();!K.done;K=A.next()){var G=K.value;G.hF&&(K=G.hF.getId(),y[K]||(G=new g.uS(K,G.hF),y[K]=G,l.push(G)))}}return l.length>0?l:null}; gPj=function(R,l,y,f,A,K,G){if(!(Jv||gg()||Zb()))return dg();var B={},H=k3q(y),n=I57(y,R.C("html5_filter_fmp4_in_hls"),R.J.V,B);if(!n)return G({noplst:1}),dg();DBo(n);y={};var m=(y.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",y),h;y=[];var c=[],E=[],W=null,Q="";f=f&&f.match(/hls_timedtext_playlist/)?new xBZ({itag:"0",url:f,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,hF:new g.TL("English","en",!1)}):null;for(var e=g.u(Object.keys(n)),r=e.next();!r.done;r=e.next())if(r=r.value,!R.C("html5_disable_drm_hfr_1080")|| r!=="383"&&r!=="373"){r=g.u(n[r]);for(var d=r.next();!d.done;d=r.next())if(d=d.value,d.width){for(var z=g.u(d.X),N=z.next();!N.done;N=z.next())if(N=N.value,n[N]){d.Z=N;break}d.Z||(d.Z=ZZq(n,d));if(z=n[d.Z])if(y.push(d),d.sS==="fairplay"&&(h=m),N="",d.tV==="PQ"?N="smpte2084":d.tV==="HLG"&&(N="arib-std-b67"),N&&(Q=N),E.push(J6q(z,[d],f,K,d.itag,d.width,d.height,d.fps,H,void 0,void 0,h,N)),!W||d.width*d.height*d.fps>W.width*W.height*W.fps)W=d}else c.push(d)}else B[r]="disdrmhfr";E.reduce(function(D, t){return t.getInfo().isEncrypted()&&D},!0)&&(h=m); A=Math.max(A,0);m=W||{};n=m.fps===void 0?0:m.fps;W=m.width===void 0?0:m.width;m=m.height===void 0?0:m.height;e=R.C("html5_native_audio_track_switching");E.push(J6q(c,y,f,K,"93",W,m,n,H,"auto",A,h,Q,e));Object.entries(B).length&&G(B);return Fh(R.J,E,An(R,l),!1)}; J6q=function(R,l,y,f,A,K,G,B,H,n,m,h,c,E){for(var W=0,Q="",e=g.u(R),r=e.next();!r.done;r=e.next())r=r.value,Q||(Q=r.itag),r.audioChannels&&r.audioChannels>W&&(W=r.audioChannels,Q=r.itag);A=new v9(A,"application/x-mpegURL",{audio:new $5(0,W),video:new XN(K,G,B,null,void 0,n,void 0,c),sS:h,pK:Q});R=new N5r(R,l,y?[y]:[],f,!!E);R.Y=m?m:1369843;return new $6(A,R,H)}; k3q=function(R){R=g.u(R);for(var l=R.next();!l.done;l=R.next())if(l=l.value,l.url&&(l=l.url.split("expire/"),!(l.length<=1)))return+l[1].split("/")[0];return NaN}; ZZq=function(R,l){for(var y=g.u(Object.keys(R)),f=y.next();!f.done;f=y.next()){f=f.value;var A=R[f][0];if(!A.width&&A.sS===l.sS&&!A.audioChannels)return f}return""}; DBo=function(R){for(var l=new Set,y=g.u(Object.values(R)),f=y.next();!f.done;f=y.next())f=f.value,f.length&&(f=f[0],f.height&&f.codecs.startsWith("vp09")&&l.add(f.height));y=[];if(l.size){f=g.u(Object.keys(R));for(var A=f.next();!A.done;A=f.next())if(A=A.value,R[A].length){var K=R[A][0];K.height&&l.has(K.height)&&!K.codecs.startsWith("vp09")&&y.push(A)}}l=g.u(y);for(y=l.next();!y.done;y=l.next())delete R[y.value]}; eu=function(R,l){this.Z=R;this.X=l}; VGZ=function(R,l,y,f){var A=[];y=g.u(y);for(var K=y.next();!K.done;K=y.next()){var G=K.value;if(G.url){K=new g.kM(G.url,!0);if(G.s){var B=K,H=G.sp,n=Jhq(decodeURIComponent(G.s));B[a[31]](H,encodeURIComponent(n))}B=g.u(Object.keys(f));for(H=B.next();!H.done;H=B.next())H=H.value,K.set(H,f[H]);G=JO(G.type,G.quality,G.itag,G.width,G.height);A.push(new eu(G,K))}}return Fh(R.J,A,An(R,l),!1)}; b2=function(R,l){this.Z=R;this.X=l}; Cgk=function(R,l,y){var f=[];y=g.u(y);for(var A=y.next();!A.done;A=y.next())if((A=A.value)&&A.url){var K=JO(A.type,"medium","0");f.push(new b2(K,A.url))}return Fh(R.J,f,An(R,l),!1)}; q2r=function(R,l){var y=[],f=JO(l.type,"auto",l.itag);y.push(new b2(f,l.url));return Fh(R.J,y,!1,!0)}; Y2s=function(R){return R&&tGk[R]?tGk[R]:null}; MGs=function(R){switch(R){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 R;default:return"sabr.config"}}; REc=function(R){if(R=R.commonConfig)this.url=R.url,this.urlQueryOverride=R.urlQueryOverride,R.ustreamerConfig&&(this.QW=Pn(R.ustreamerConfig)||void 0)}; lRr=function(R,l){var y;if(l=l==null?void 0:(y=l.watchEndpointSupportedOnesieConfig)==null?void 0:y.html5PlaybackOnesieConfig)R.oW=new REc(l)}; g.Xh=function(R){R=R===void 0?{}:R;this.languageCode=R.languageCode||"";this.languageName=R.languageName||null;this.kind=R.kind||"";this.name=R.name===void 0?null:R.name;this.displayName=R.displayName||null;this.id=R.id||null;this.Z=R.is_servable||!1;this.isTranslateable=R.is_translateable||!1;this.url=R.url||null;this.vssId=R.vss_id||"";this.isDefault=R.is_default||!1;this.translationLanguage=R.translationLanguage||null;this.xtags=R.xtags||"";this.captionId=R.captionId||""}; g.d3=function(R){var l={languageCode:R.languageCode,languageName:R.languageName,displayName:g.Tt(R),kind:R.kind,name:R.name,id:R.id,is_servable:R.Z,is_default:R.isDefault,is_translateable:R.isTranslateable,vss_id:R.vssId};R.xtags&&(l.xtags=R.xtags);R.captionId&&(l.captionId=R.captionId);R.translationLanguage&&(l.translationLanguage=R.translationLanguage);return l}; g.r3=function(R){return R.translationLanguage?R.translationLanguage.languageCode:R.languageCode}; g.yGr=function(R){var l=R.vssId;R.translationLanguage&&l&&(l="t"+l+"."+g.r3(R));return l}; g.Tt=function(R){var l=[];if(R.displayName)l.push(R.displayName);else{var y=R.languageName||"";l.push(y);R.kind==="asr"&&y.indexOf("(")===-1&&l.push(" (Subt\u00edtulos autom\u00e1ticos)");R.name&&l.push(" - "+R.name)}R.translationLanguage&&l.push(" >> "+R.translationLanguage.languageName);return l.join("")}; Gcr=function(R,l,y,f){R||(R=l&&fR7.hasOwnProperty(l)&&AGZ.hasOwnProperty(l)?AGZ[l]+"_"+fR7[l]:void 0);l=R;if(!l)return null;R=l.match(KV9);if(!R||R.length!==5)return null;if(R=l.match(KV9)){var A=Number(R[3]),K=[7,8,10,5,6];R=!(Number(R[1])===1&&A===8)&&K.indexOf(A)>=0}else R=!1;return y||f||R?l:null}; vm=function(R,l){for(var y={},f=g.u(Object.keys(aRs)),A=f.next();!A.done;A=f.next()){A=A.value;var K=l?l+A:A;K=R[K+"_webp"]||R[K];g.kC(K)&&(y[aRs[A]]=K)}return y}; zt=function(R){var l={};if(!R||!R.thumbnails)return l;R=R.thumbnails.filter(function(B){return!!B.url}); R.sort(function(B,H){return B.width-H.width||B.height-H.height}); for(var y=g.u(Object.keys(sSY)),f=y.next();!f.done;f=y.next()){var A=Number(f.value);f=sSY[A];for(var K=g.u(R),G=K.next();!G.done;G=K.next())if(G=G.value,G.width>=A){A=BbZ(G.url);g.kC(A)&&(l[f]=A);break}}(R=R.pop())&&R.width>=1280&&(R=BbZ(R.url),g.kC(R)&&(l["maxresdefault.jpg"]=R));return l}; BbZ=function(R){return R.startsWith("//")?"https:"+R:R}; w3=function(R){return R&&R.baseUrl||""}; x6=function(R){R=g.f0(R);for(var l=g.u(Object.keys(R)),y=l.next();!y.done;y=l.next()){y=y.value;var f=R[y];R[y]=Array.isArray(f)?f[0]:f}return R}; HWk=function(R,l){R.botguardData=l.playerAttestationRenderer.botguardData;l=l.playerAttestationRenderer.challenge;l!=null&&(R.Jx=l)}; oqK=function(R,l){l=g.u(l);for(var y=l.next();!y.done;y=l.next()){y=y.value;var f=y.interstitials.map(function(G){var B=g.k(G,nqQ);if(B)return{is_yto_interstitial:!0,raw_player_response:B};if(G=g.k(G,mYY))return Object.assign({is_yto_interstitial:!0},Rw(G))}); f=g.u(f);for(var A=f.next();!A.done;A=f.next())switch(A=A.value,y.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":R.interstitials=R.interstitials.concat({time:0,playerVars:A,RA:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":R.interstitials=R.interstitials.concat({time:0x7ffffffffffff,playerVars:A,RA:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var K=Number(y.podConfig.timeToInsertAtMillis);R.interstitials=R.interstitials.concat({time:K,playerVars:A, RA:K===0?5:7})}}}; hEs=function(R,l){if(l=l.find(function(y){return!(!y||!y.tooltipRenderer)}))R.tooltipRenderer=l.tooltipRenderer}; cGQ=function(R,l){l.subscribeCommand&&(R.subscribeCommand=l.subscribeCommand);l.unsubscribeCommand&&(R.unsubscribeCommand=l.unsubscribeCommand);l.addToWatchLaterCommand&&(R.addToWatchLaterCommand=l.addToWatchLaterCommand);l.removeFromWatchLaterCommand&&(R.removeFromWatchLaterCommand=l.removeFromWatchLaterCommand);l.getSharePanelCommand&&(R.getSharePanelCommand=l.getSharePanelCommand)}; EqZ=function(R,l){l!=null?(R.UI=l,R.nJ=!0):(R.UI="",R.nJ=!1)}; IG=function(R,l){this.type=R||"";this.id=l||""}; NN=function(R){return new IG(R.substring(0,2),R.substring(2))}; pU=function(R,l){this.yL=R;this.author="";this.cg=null;this.playlistLength=0;this.Z=this.sessionData=null;this.W={};this.title="";if(l){this.author=l.author||l.playlist_author||"";this.title=l.playlist_title||"";if(R=l.session_data)this.sessionData=YO(R,"&");var y;this.Z=((y=l.thumbnail_ids)==null?void 0:y.split(",")[0])||null;this.W=vm(l,"playlist_");this.videoId=l.video_id||void 0;if(y=l.list)switch(l.listType){case "user_uploads":this.playlistId=(new IG("UU","PLAYER_"+y)).toString();break;default:if(R= l.playlist_length)this.playlistLength=Number(R)||0;this.playlistId=NN(y).toString();if(l=l.video)this.videoId=(l[0]||null).video_id||void 0}else l.playlist&&(this.playlistLength=l.playlist.toString().split(",").length)}}; US=function(R,l){this.yL=R;this.LQ=this.author="";this.cg=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.BU=this.lengthText="";this.sessionData=null;this.W={};this.title="";if(l){this.ariaLabel=l.aria_label||void 0;this.author=l.author||"";this.LQ=l.LQ||"";if(R=l.endscreen_autoplay_session_data)this.cg=YO(R,"&");this.Tk=l.Tk;this.isLivePlayback=l.live_playback==="1";this.isUpcoming=!!l.isUpcoming;if(R=l.length_seconds)this.lengthSeconds=typeof R==="string"?Number(R):R;this.lengthText= l.lengthText||"";this.BU=l.BU||"";this.publishedTimeText=l.publishedTimeText||void 0;if(R=l.session_data)this.sessionData=YO(R,"&");this.shortViewCount=l.short_view_count_text||void 0;this.W=vm(l);this.title=l.title||"";this.videoId=l.docid||l.video_id||l.videoId||l.id||void 0;this.watchUrl=l.watchUrl||void 0}}; WVq=function(R){var l,y,f=(l=R.getWatchNextResponse())==null?void 0:(y=l.contents)==null?void 0:y.twoColumnWatchNextResults,A,K,G,B,H;R=(A=R.getWatchNextResponse())==null?void 0:(K=A.playerOverlays)==null?void 0:(G=K.playerOverlayRenderer)==null?void 0:(B=G.endScreen)==null?void 0:(H=B.watchNextEndScreenRenderer)==null?void 0:H.results;if(!R){var n,m;R=f==null?void 0:(n=f.endScreen)==null?void 0:(m=n.endScreen)==null?void 0:m.results}return R}; g.ju=function(R){var l,y,f;R=g.k((l=R.getWatchNextResponse())==null?void 0:(y=l.playerOverlays)==null?void 0:(f=y.playerOverlayRenderer)==null?void 0:f.decoratedPlayerBarRenderer,Su);return g.k(R==null?void 0:R.playerBar,LVZ)}; OWk=function(R){this.Z=R.playback_progress_0s_url;this.L=R.playback_progress_2s_url;this.X=R.playback_progress_10s_url}; iWs=function(){if(k6===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(l){}a:{try{var R=!!self.localStorage}catch(l){R=!1}if(R&&(R=g.x8(g.g0()+"::yt-player"))){k6=new pR(R);break a}k6=void 0}}return k6}; g.Dv=function(){var R=iWs();if(!R)return{};try{var l=R.get("yt-player-lv");return JSON.parse(l||"{}")}catch(y){return{}}}; g.Pkr=function(R){var l=iWs();l&&(R=JSON.stringify(R),l.set("yt-player-lv",R))}; g.Zv=function(R){return g.Dv()[R]||0}; g.Jn=function(R,l){var y=g.Dv();l!==y[R]&&(l!==0?y[R]=l:delete y[R],g.Pkr(y))}; g.g3=function(R){return g.w(function(l){return l.return(g.kR(uQZ(),R))})}; CU=function(R,l,y,f,A,K,G,B){var H,n,m,h,c,E;return g.w(function(W){switch(W.X){case 1:return H=g.Zv(R),H===4?W.return(4):g.v(W,g.tv(),2);case 2:n=W.Z;if(!n)throw g.id("wiac");if(!B||G===void 0){W.bQ(3);break}return g.v(W,FVJ(B,G),4);case 4:G=W.Z;case 3:return m=y.lastModified||"0",g.v(W,g.g3(n),5);case 5:return h=W.Z,g.$7(W,6),VV++,g.v(W,g.d4(h,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",CA:!0},function(Q){if(K!==void 0&&G!==void 0){var e=""+R+"|"+l.id+"|"+m+"|"+String(K).padStart(10, "0");e=g.r4(Q.objectStore("media"),G,e)}else e=g.ud.resolve(void 0);var r=QSj(R,l.fJ()),d=QSj(R,!l.fJ()),z={fmts:$Y9(f),format:y||{}};r=g.r4(Q.objectStore("index"),z,r);var N=f.downloadedEndTime===-1;z=N?Q.objectStore("index").get(d):g.ud.resolve(void 0);var D={fmts:"music",format:{}};Q=N&&A&&!l.fJ()?g.r4(Q.objectStore("index"),D,d):g.ud.resolve(void 0);return g.ud.all([Q,z,e,r]).then(function(t){t=g.u(t);t.next();t=t.next().value;VV--;var C=g.Zv(R);if(C!==4&&N&&A||t!==void 0&&g.eEo(t.fmts))C=1,g.Jn(R, C);return C})}),8); case 8:return W.return(W.Z);case 6:c=g.TT(W);VV--;E=g.Zv(R);if(E===4)return W.return(E);g.Jn(R,4);throw c;}})}; g.bWi=function(R){var l,y;return g.w(function(f){if(f.X==1)return g.v(f,g.tv(),2);if(f.X!=3){l=f.Z;if(!l)throw g.id("ri");return g.v(f,g.g3(l),3)}y=f.Z;return f.return(g.d4(y,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(A){var K=IDBKeyRange.bound(R+"|",R+"~");return A.objectStore("index").getAll(K).then(function(G){return G.map(function(B){return B?B.format:{}})})}))})}; Tbo=function(R,l,y,f,A){var K,G,B;return g.w(function(H){if(H.X==1)return g.v(H,g.tv(),2);if(H.X!=3){K=H.Z;if(!K)throw g.id("rc");return g.v(H,g.g3(K),3)}G=H.Z;B=g.d4(G,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(n){var m=""+R+"|"+l+"|"+y+"|"+String(f).padStart(10,"0");return n.objectStore("media").get(m)}); return A?H.return(B.then(function(n){if(n===void 0)throw Error("No data from indexDb");return XpZ(A,n)}).catch(function(n){throw new g.JD("Error while reading chunk: "+n.name+", "+n.message); })):H.return(B)})}; g.eEo=function(R){return R?R==="music"?!0:R.includes("dlt=-1")||!R.includes("dlt="):!1}; QSj=function(R,l){return""+R+"|"+(l?"v":"a")}; $Y9=function(R){var l={};return MM((l.dlt=R.downloadedEndTime.toString(),l.mket=R.maxKnownEndTime.toString(),l.avbr=R.averageByteRate.toString(),l))}; rG7=function(R){var l={},y={};R=g.u(R);for(var f=R.next();!f.done;f=R.next()){var A=f.value,K=A.split("|");A.match(g.dYQ)?(f=Number(K.pop()),isNaN(f)?y[A]="?":(K=K.join("|"),(A=l[K])?(K=A[A.length-1],f===K.end+1?K.end=f:A.push({start:f,end:f})):l[K]=[{start:f,end:f}])):y[A]="?"}R=g.u(Object.keys(l));for(f=R.next();!f.done;f=R.next())f=f.value,y[f]=l[f].map(function(G){return G.start+"-"+G.end}).join(","); return y}; qN=function(R){g.Ae.call(this);this.Z=null;this.L=new pg;this.Z=null;this.D=new Set;this.crossOrigin=R||""}; vqk=function(R,l,y){for(y=tn(R,y);y>=0;){var f=R.levels[y];if(f.isLoaded(Y6(f,l))&&(f=g.MN(f,l)))return f;y--}return g.MN(R.levels[0],l)}; wpK=function(R,l,y){y=tn(R,y);for(var f,A;y>=0;y--)if(f=R.levels[y],A=Y6(f,l),!f.isLoaded(A)){f=R;var K=y,G=K+"-"+A;f.D.has(G)||(f.D.add(G),f.L.enqueue(K,{Uc:K,bJ:A}))}zET(R)}; zET=function(R){if(!R.Z&&!R.L.isEmpty()){var l=R.L.remove();R.Z=xYT(R,l)}}; xYT=function(R,l){var y=document.createElement("img");R.crossOrigin&&(y.crossOrigin=R.crossOrigin);y.src=R.levels[l.Uc].Jk(l.bJ);y.onload=function(){var f=l.Uc,A=l.bJ;R.Z!==null&&(R.Z.onload=null,R.Z=null);f=R.levels[f];f.loaded.add(A);zET(R);var K=f.columns*f.rows;A*=K;f=Math.min(A+K-1,f.UJ()-1);A=[A,f];R.publish("l",A[0],A[1])}; return y}; g.RY=function(R,l,y,f){this.level=R;this.Y=l;this.loaded=new Set;this.level=R;this.Y=l;R=y.split("#");this.width=Math.floor(Number(R[0]));this.height=Math.floor(Number(R[1]));this.frameCount=Math.floor(Number(R[2]));this.columns=Math.floor(Number(R[3]));this.rows=Math.floor(Number(R[4]));this.Z=Math.floor(Number(R[5]));this.L=R[6];this.signature=R[7];this.videoLength=f}; Y6=function(R,l){return Math.floor(l/(R.columns*R.rows))}; g.MN=function(R,l){l>=R.eH()&&R.oH();var y=Y6(R,l),f=R.columns*R.rows,A=l%f;l=A%R.columns;A=Math.floor(A/R.columns);var K=R.oH()+1-f*y;if(K1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; IRK=function(R,l,y){return(R=R.levels[l])?R.XQ(y):-1}; tn=function(R,l){var y=R.Y.get(l);if(y)return y;y=R.levels.length;for(var f=0;f=l)return R.Y.set(l,f),f;R.Y.set(l,y-1);return y-1}; yE=function(R,l,y,f){y=y.split("#");y=[y[1],y[2],0,y[3],y[4],-1,y[0],""].join("#");g.RY.call(this,R,l,y,0);this.X=null;this.J=f?2:0}; fC=function(R,l,y,f){lp.call(this,R,0,void 0,l,!(f===void 0||!f));for(R=0;R50&&(l=JGj.shift())&&BZ.delete(l),l=f),f!==l&&R.iD("ssei","dcpn_"+f+"_"+l+"_"+R.clientPlaybackNonce),l)}; aY=function(R,l){var y=l.raw_watch_next_response;if(!y){var f=l.watch_next_response;f&&(y=JSON.parse(f))}if(y){R.P1=y;var A=R.P1.playerCueRangeSet;A&&g.HZ(R,A);var K=R.P1.playerOverlays;if(K){var G=K.playerOverlayRenderer;if(G){var B=G.autonavToggle;B&&(R.autoplaySwitchButtonRenderer=g.k(B,gqi),R.C("web_player_autonav_use_server_provided_state")&&nC(R)&&(R.autonavState=R.autoplaySwitchButtonRenderer.enabled?2:1));var H=G.videoDetails;if(H){var n=H.embeddedPlayerOverlayVideoDetailsRenderer;var m=H.playerOverlayVideoDetailsRenderer; m&&(m.title&&(l.title=g.mF(m.title)),m.subtitle&&(l.subtitle=g.mF(m.subtitle)))}g.CI(R.yL)&&(R.NW=!!G.addToMenu);V39(R,G.shareButton);G.startPosition&&G.endPosition&&(R.progressBarStartPosition=G.startPosition,R.progressBarEndPosition=G.endPosition);var h=G.gatedActionsOverlayRenderer;h&&(R.I5=g.k(h,Ckj));var c,E,W,Q=g.k((c=R.getWatchNextResponse())==null?void 0:(E=c.playerOverlays)==null?void 0:(W=E.playerOverlayRenderer)==null?void 0:W.infoPanel,q4q);if(Q){R.Sg=Number(Q==null?void 0:Q.durationMs)|| NaN;if(Q==null?0:Q.infoPanelOverviewViewModel)R.J7=Q==null?void 0:Q.infoPanelOverviewViewModel;if(Q==null?0:Q.infoPanelDetailsViewModel)R.m8=Q==null?void 0:Q.infoPanelDetailsViewModel}R.showSeekingControls=!!G.showSeekingControls}}var e,r,d=(e=R.getWatchNextResponse())==null?void 0:(r=e.contents)==null?void 0:r.twoColumnWatchNextResults;if(d){var z=d.desktopOverlay&&g.k(d.desktopOverlay,t3r);z&&(z.suppressShareButton&&(R.showShareButton=!1),z.suppressWatchLaterButton&&(R.NW=!1))}n&&Y4r(R,l,n);var N= AD(0,l.autoplay_count),D=R.getWatchNextResponse(),t,C=(t=D.contents)==null?void 0:t.twoColumnWatchNextResults,Ac,Bi,ar,nk=(Ac=D.playerOverlays)==null?void 0:(Bi=Ac.playerOverlayRenderer)==null?void 0:(ar=Bi.autoplay)==null?void 0:ar.playerOverlayAutoplayRenderer,Y=WVq(R),Pi,wq=(Pi=D.contents)==null?void 0:Pi.singleColumnWatchNextResults;if(wq){var Rt;if(((Rt=wq.autoplay)==null?0:Rt.autoplay)&&!wq.playlist){var pX=wq.autoplay.autoplay.sets,O5={},pk=new US(R.U()),tK=null,c8;if(pX){for(var DU=g.u(pX), lN=DU.next();!lN.done;lN=DU.next()){var T=lN.value.autoplayVideoRenderer;if(T&&T.compactVideoRenderer){tK=T.compactVideoRenderer;break}}if(c8=pX[0].autoplayVideo){var IL=c8.clickTrackingParams;IL&&(O5.itct=IL);O5.autonav="1";O5.playnext=String(N)}}else O5.feature="related-auto";var rO=g.k(c8,g.mh);if(tK){pk.videoId=tK.videoId;var fk=tK.shortBylineText;fk&&(pk.author=g.mF(fk));var XS=tK.title;XS&&(pk.title=g.mF(XS))}else rO!=null&&rO.videoId&&(pk.videoId=rO.videoId);pk.cg=O5;R.suggestions=[];R.GK= pk}}if(Y){for(var F=[],y9=g.u(Y),Dc=y9.next();!Dc.done;Dc=y9.next()){var KG=Dc.value,U5=void 0,gq=null;if(KG.endScreenVideoRenderer){var Y7=KG.endScreenVideoRenderer,q5=Y7.title;gq=new US(R.U());gq.videoId=Y7.videoId;gq.lengthSeconds=Y7.lengthInSeconds||0;var N5=Y7.publishedTimeText;N5&&(gq.publishedTimeText=g.mF(N5));var b=Y7.shortBylineText;b&&(gq.author=g.mF(b));var P=Y7.shortViewCountText;P&&(gq.shortViewCount=g.mF(P));if(q5){gq.title=g.mF(q5);var X=q5.accessibility;if(X){var x=X.accessibilityData; x&&x.label&&(gq.ariaLabel=x.label)}}var S=Y7.navigationEndpoint;if(S){U5=S.clickTrackingParams;var ms=g.k(S,g.mh),J=g.k(S,g.wp);ms?gq.Tk=ms:J!=null&&(gq.watchUrl=J.url)}var Rr=Y7.thumbnailOverlays;if(Rr)for(var I=g.u(Rr),vi=I.next();!vi.done;vi=I.next()){var k7=vi.value.thumbnailOverlayTimeStatusRenderer;if(k7)if(k7.style==="LIVE"){gq.isLivePlayback=!0;break}else if(k7.style==="UPCOMING"){gq.isUpcoming=!0;break}}gq.W=zt(Y7.thumbnail)}else if(KG.endScreenPlaylistRenderer){var sY=KG.endScreenPlaylistRenderer, H8=sY.navigationEndpoint;if(!H8)continue;var dq=g.k(H8,g.mh);if(!dq)continue;var FZ=dq.videoId;gq=new pU(R.U());gq.playlistId=sY.playlistId;gq.playlistLength=Number(sY.videoCount)||0;gq.Z=FZ||null;gq.videoId=FZ;var YJ=sY.title;YJ&&(gq.title=g.mF(YJ));var Qr=sY.shortBylineText;Qr&&(gq.author=g.mF(Qr));U5=H8.clickTrackingParams;gq.W=zt(sY.thumbnail)}gq&&(U5&&(gq.sessionData={itct:U5}),F.push(gq))}R.suggestions=F}if(nk){R.TX=!!nk.preferImmediateRedirect;R.Ms=R.Ms||!!nk.webShowNewAutonavCountdown;R.ZT= R.ZT||!!nk.webShowBigThumbnailEndscreen;if(R.Ms||R.ZT){var It=C||null,bj=new US(R.U());bj.videoId=nk.videoId;var P0=nk.videoTitle;if(P0){bj.title=g.mF(P0);var rq=P0.accessibility;if(rq){var v8=rq.accessibilityData;v8&&v8.label&&(bj.ariaLabel=v8.label)}}var $U=nk.byline;$U&&(bj.author=g.mF($U));var aL=nk.publishedTimeText;aL&&(bj.publishedTimeText=g.mF(aL));var ed=nk.shortViewCountText;ed&&(bj.shortViewCount=g.mF(ed));var f8=nk.thumbnailOverlays;if(f8)for(var AA=g.u(f8),ZU=AA.next();!ZU.done;ZU=AA.next()){var zK= ZU.value.thumbnailOverlayTimeStatusRenderer;if(zK)if(zK.style==="LIVE"){bj.isLivePlayback=!0;break}else if(zK.style==="UPCOMING"){bj.isUpcoming=!0;break}else if(zK.style==="DEFAULT"&&zK.text){bj.lengthText=g.mF(zK.text);var Xw=zK.text.accessibility;if(Xw){var Md=Xw.accessibilityData;Md&&Md.label&&(bj.BU=Md.label||"")}break}}bj.W=zt(nk.background);var ic=nk.nextButton;if(ic){var j4=ic.buttonRenderer;if(j4){var AF=j4.navigationEndpoint;if(AF){var K8=g.k(AF,g.mh);K8&&(bj.Tk=K8)}}}if(nk.topBadges){var Go= nk.topBadges[0];if(Go){var uo=g.k(Go,M3j);uo&&uo.style==="BADGE_STYLE_TYPE_PREMIUM"&&(bj.r7x=!0)}}var Ud=nk.alternativeTitle;Ud&&(bj.LQ=g.mF(Ud));var Rd={autonav:"1",playnext:String(N)};bj.playlistId&&(Rd.autoplay="1");if(It){var Sy,Ms,PY,k9,uT=(Sy=It.autoplay)==null?void 0:(Ms=Sy.autoplay)==null?void 0:(PY=Ms.sets)==null?void 0:(k9=PY[0])==null?void 0:k9.autoplayVideo;if(uT){var G2=uT.clickTrackingParams;G2&&(Rd.itct=G2);var F7=g.k(uT,g.mh);F7&&(bj.VV=F7)}}else if(nk){var a7,sd,BE,HE=(a7=nk.nextButton)== null?void 0:(sd=a7.buttonRenderer)==null?void 0:(BE=sd.navigationEndpoint)==null?void 0:BE.clickTrackingParams;HE&&(Rd.itct=HE)}Rd.itct||(Rd.feature="related-auto");bj.cg=Rd;R.suggestions||(R.suggestions=[]);R.GK=bj}nk.countDownSecs!=null&&(R.b_=nk.countDownSecs*1E3);nk.countDownSecsForFullscreen!=null&&(R.wJ=nk.countDownSecsForFullscreen>=0?nk.countDownSecsForFullscreen*1E3:-1);R.C("web_autonav_color_transition")&&nk.watchToWatchTransitionRenderer&&(R.watchToWatchTransitionRenderer=g.k(nk.watchToWatchTransitionRenderer, R0o))}var QS=WVq(R);if(QS){var am,n8,PM,us=QS==null?void 0:(am=QS[0])==null?void 0:(n8=am.endScreenVideoRenderer)==null?void 0:(PM=n8.navigationEndpoint)==null?void 0:PM.clickTrackingParams,pa=g.oY(R);us&&pa&&(pa.sessionData={itct:us})}R.P1.currentVideoThumbnail&&(R.W=zt(R.P1.currentVideoThumbnail));var kz,D1,Z1,BK,UO,ej=(kz=R.P1)==null?void 0:(D1=kz.contents)==null?void 0:(Z1=D1.twoColumnWatchNextResults)==null?void 0:(BK=Z1.results)==null?void 0:(UO=BK.results)==null?void 0:UO.contents;if(ej&&ej[1]){var Sl, HK,JF,FT,$G=(Sl=ej[1].videoSecondaryInfoRenderer)==null?void 0:(HK=Sl.owner)==null?void 0:(JF=HK.videoOwnerRenderer)==null?void 0:(FT=JF.thumbnail)==null?void 0:FT.thumbnails;$G&&$G.length&&(R.profilePicture=$G[$G.length-1].url)}var jV=aa(l),nv,FR=(nv=R.getWatchNextResponse())==null?void 0:nv.onResponseReceivedEndpoints;if(FR)for(var my=g.u(FR),jl=my.next();!jl.done;jl=my.next()){var kZ=jl.value;g.k(kZ,ht)&&(R.Y2=g.k(kZ,ht));var hL=g.k(kZ,lXq),qw=void 0;if((qw=hL)==null?0:qw.entityKeys)R.Ag=hL.entityKeys|| [],hL.visibleOnLoadKeys&&(R.visibleOnLoadKeys=hL.visibleOnLoadKeys)}if(R.C("web_key_moments_markers")){var nM=g.cZ.getState().entities,h_=g.tx("visibility_override","markersVisibilityOverrideEntity");var kO=MU(nM,"markersVisibilityOverrideEntity",h_);R.W1=(kO==null?void 0:kO.videoId)===(R.videoId||jV)&&(kO==null?0:kO.visibilityOverrideMarkersKey)?kO.visibilityOverrideMarkersKey:R.visibleOnLoadKeys;R.visibleOnLoadKeys=[].concat(g.ci(R.W1))}}}; nC=function(R){var l;return((l=R.autoplaySwitchButtonRenderer)==null?void 0:l.enabled)!==void 0}; EU=function(R){return!!(R.L&&R.L.videoInfos&&R.L.videoInfos.length)}; g.up=function(R){var l=R.V;R.C("html5_gapless_unlimit_format_selection")&&WZ(R)&&(l=!1);var y=!!R.Z&&R.Z.QS,f=R.yL,A=R.rK(),K=LC(R),G=R.UL,B=l,H=R.isOtf();l=R.jz();var n=R.B1,m=R.getUserAudio51Preference(),h=OU(R),c=ip(R),E=new NTk(f);if(f.PZ()||f.C("html5_logging_format_selection"))E.X=!0;E.v1=K;E.UL=G&&f.W;E.Dq=m;g.j0("windows nt 5.1")&&!g.sN&&(E.Xv=!0);if(K=A)K=g.cm(f)?bZY(f):!1;K&&(E.LX=!0);B&&(E.Xv=!0,E.tF=!0);H&&!f.C("html5_otf_prefer_vp9")&&(E.Xv=!0);f.playerStyle==="picasaweb"&&(H&&(E.Xv= !1),E.Yb=!1);n&&(E.Xv=!0);S2(f.J,j2.CHANNELS)&&(f.C("html5_enable_ac3")&&(E.Y=!0),f.C("html5_enable_eac3")&&(E.J=!0),f.C("html5_enable_ac3_gapless")&&(E.sL=!0));f.C("html5_block_8k_hfr")&&(E.tU=!0);E.D=g.yx(f.experiments,"html5_max_selectable_quality_ordinal");E.V=g.yx(f.experiments,"html5_min_selectable_quality_ordinal");UN&&(E.ol=480);if(y||A)E.Yb=!1;E.W1=!1;E.disableAv1=h;y=Mq(f,E.Z,void 0,E.disableAv1);y>0&&y<2160&&(ao()||f.C("html5_format_hybridization"))&&(E.Z.supportsChangeType=+ao(),E.Dy= y);y>=2160&&(E.xb=!0);RFQ()&&!f.C("disable_av1_setting")&&(E.Z.serveVp9OverAv1IfHigherRes=0,E.eZ=!1);E.jz=l;E.CX=g.g4||Ra()&&!l?!1:!0;E.W=f.C("html5_format_hybridization");E.iQ=f.C("html5_disable_encrypted_vp9_live_non_2k_4k");f.C("disable_cdm_format_fallback")&&c&&(E.ZL=!0);PZ(R)&&(E.OF=R.C("html5_prefer_language_over_codec"));Zb()&&R.playerResponse&&R.playerResponse.playerConfig&&R.playerResponse.playerConfig.webPlayerConfig&&R.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&& (E.Y=!0,E.J=!0);R.V&&R.isAd()&&(R.ZS&&(E.B=R.ZS),R.cC&&(E.L=R.cC));E.P1=R.isLivePlayback&&R.yT()&&R.yL.C("html5_drm_live_audio_51");E.B1=R.d2;E.LA=!PZ(R);return R.TD=E}; OU=function(R){return R.yL.C("html5_disable_av1")||R.C("html5_gapless_shorts_disable_av1")&&WZ(R)?!0:!1}; y9k=function(R){ba("drm_pb_s",void 0,R.B);R.jS||R.Z&&xM(R.Z);var l={};R.Z&&(l=cPT(R.g9,g.up(R),R.yL.J,R.Z,function(y){return R.publish("ctmp","fmtflt",y)},!0,new Set)); l=new nI(l,R.yL,R.YM,R.useCobaltWidevine?Zb()?F_(R):!1:!1,function(y,f){R.T4(y,f)}); g.U(R,l);R.Zo=!1;R.loading=!0;joc(l,function(y){ba("drm_pb_f",void 0,R.B);for(var f=g.u(y),A=f.next();!A.done;A=f.next())switch(A=A.value,A.flavor){case "fairplay":A.jS=R.jS;A.V_=R.V_;A.fY=R.fY;break;case "widevine":A.aU=R.aU}R.Tu=y;if(R.Tu.length>0&&(R.J=R.Tu[0],R.yL.PZ())){y={};f=g.u(Object.entries(R.J.Z));for(A=f.next();!A.done;A=f.next()){var K=g.u(A.value);A=K.next().value;K=K.next().value;var G="unk";(A=A.match(/(.*)codecs="(.*)"/))&&(G=A[2]);y[G]=K}R.T4("drmProbe",y)}R.ow()})}; fX7=function(R,l){if(l.length===0||QE(R))return null;R.yL.J.L&&(qq=!0);var y=R.sS;var f=R.lengthSeconds,A=R.isLivePlayback,K=R.Rz,G=R.yL,B=up7(l);if(A||K){G=G.experiments;f=new wS("",G,!0);f.X=!K;f.QS=!0;f.isManifestless=!0;f.isLive=!K;f.Rz=K;l=g.u(l);for(A=l.next();!A.done;A=l.next()){var H=A.value;A=Nq(H,y);B=CA(H);B=U6(B.JP||H.url||"",B.Z1,B.s);var n=B.get("id");n&&n.includes("%7E")&&(f.B=!0);var m=void 0;n=(m=G)==null?void 0:m.EL("html5_max_known_end_time_rebase");m=Number(H.targetDurationSec|| 5);H=Number(H.maxDvrDurationSec||14400);var h=Number(B.get("mindsq")||B.get("min_sq")||"0"),c=Number(B.get("maxdsq")||B.get("max_sq")||"0")||Infinity;f.ZG=f.ZG||h;f.bH=f.bH||c;var E=!Zw(A.mimeType);B&&rS(f,new cC(B,A,{Sv:m,bR:E,gF:H,ZG:h,bH:c,Qd:300,Rz:K,PJ:n}))}y=f}else if(B==="FORMAT_STREAM_TYPE_OTF"){f=f===void 0?0:f;K=new wS("",G.experiments,!1);K.duration=f||0;G=g.u(l);for(f=G.next();!f.done;f=G.next())f=f.value,l=Nq(f,y,K.duration),A=CA(f),(A=U6(A.JP||f.url||"",A.Z1,A.s))&&(l.streamType==="FORMAT_STREAM_TYPE_OTF"? rS(K,new E6(A,l,"sq/0")):rS(K,new XV(A,l,qO(f.initRange),qO(f.indexRange))));K.isOtf=!0;y=K}else{f=f===void 0?0:f;K=new wS("",G.experiments,!1);K.duration=f||0;G=g.u(l);for(f=G.next();!f.done;f=G.next())B=f.value,f=Nq(B,y,K.duration),l=qO(B.initRange),A=qO(B.indexRange),n=CA(B),(B=U6(n.JP||B.url||"",n.Z1,n.s))&&rS(K,new XV(B,f,l,A));y=K}K=R.isLivePlayback&&!R.Rz&&!R.LX&&!R.isPremiere;R.C("html5_live_head_playable")&&(!$K(R)&&K&&R.T4("missingLiveHeadPlayable",{}),R.yL.LX==="yt"&&(y.v1=!0));return y}; QE=function(R){return Zb()?!F_(R):gg()?!(!R.jS||!R.C("html5_enable_safari_fairplay")&&LI()):!1}; F_=function(R){return R.C("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.HZ=function(R,l){l=g.u(l);for(var y=l.next();!y.done;y=l.next())if(y=y.value,y.cueRangeSetIdentifier){var f=void 0;R.SD.set(y.cueRangeSetIdentifier,(f=y.playerCueRanges)!=null?f:[])}}; eU=function(R){return!(!R.Z||!R.Z.isManifestless)}; bp=function(R){return R.ol?R.isLowLatencyLiveStream&&R.Z!=null&&DV(R.Z)>=5:R.isLowLatencyLiveStream&&R.Z!=void 0&&DV(R.Z)>=5}; A9s=function(R){return Zb()&&F_(R)?!1:QE(R)&&(g.hq(R.yL)?!R.isLivePlayback:R.hlsvp)||!LI()||R.N8?!0:!1}; aXr=function(R){R.loading=!0;R.AJ=!1;if(KYj(R))g.bWi(R.videoId).then(function(f){G09(R,f)}).then(function(){R.ow()}); else{jN(R.tF)||g.dP(new g.JD("DASH MPD Origin invalid: ",R.tF));var l=R.tF,y=g.yx(R.yL.experiments,"dash_manifest_version")||4;l=g.L4(l,{mpd_version:y});R.isLowLatencyLiveStream&&R.latencyClass!=="NORMAL"||(l=g.L4(l,{pacing:0}));dAZ(l,R.yL.experiments,R.isLivePlayback).then(function(f){R.Fx()||(X_(R,f,!0),ba("mrc",void 0,R.B),R.ow())},function(f){R.Fx()||(R.loading=!1,R.publish("dataloaderror",new g.c9("manifest.net.retryexhausted",{backend:"manifest", rc:f.status},1)))}); ba("mrs",void 0,R.B)}}; G09=function(R,l){var y=l.map(function(H){return H.itag}),f; if((f=R.playerResponse)!=null&&f.streamingData){f=[];if(R.C("html5_offline_always_use_local_formats")){y=0;for(var A=g.u(l),K=A.next();!K.done;K=A.next()){K=K.value;var G=Object.assign({},K);G.signatureCipher="";f.push(G);G=g.u(R.playerResponse.streamingData.adaptiveFormats);for(var B=G.next();!B.done;B=G.next())if(B=B.value,K.itag===B.itag&&K.xtags===B.xtags){y+=1;break}}ym&&(m=E.getInfo().audio.numChannels)}m>2&&R.T4("hlschl",{mn:m});var e;((e=R.TD)==null?0:e.X)&&R.T4("hlsfmtaf",{itags:h.join(".")});var r;if(R.C("html5_enable_vp9_fairplay")&&((r=R.J)==null?0:GO(r)))for(R.T4("drm",{sbdlfbk:1}),m=g.u(R.Tu),h=m.next();!h.done;h=m.next())if(h=h.value,KI(h)){R.J=h;break}vZ(R,n)})}return dg()}; mjk=function(R){if(R.isExternallyHostedPodcast&&R.eI){var l=rI(R.eI);if(!l[0])return dg();R.FeQ=l[0];return q2r(R.yL,l[0]).then(function(y){vZ(R,y)})}return R.L7&&R.Kr?Cgk(R.yL,R.isAd(),R.L7).then(function(y){vZ(R,y)}):dg()}; h0i=function(R){if(R.isExternallyHostedPodcast)return dg();var l=rI(R.eI,R.uN);if(R.hlsvp){var y=NbT(R.hlsvp,R.clientPlaybackNonce,R.eZ);l.push(y)}return VGZ(R.yL,R.isAd(),l,osc(R)).then(function(f){vZ(R,f)})}; vZ=function(R,l){R.f_=l;R.kx(new dM(g.L$(R.f_,function(y){return y.getInfo()})))}; osc=function(R){var l={cpn:R.clientPlaybackNonce,c:R.yL.Z.c,cver:R.yL.Z.cver};R.d9&&(l.ptk=R.d9,l.oid=R.i9,l.ptchn=R.rE,l.pltype=R.m9,R.nY&&(l.m=R.nY));return l}; g.zf=function(R){return QE(R)&&R.jS?(R={},R.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",R):R.X&&R.X.sS||null}; c9Q=function(R){var l=wI(R);return l&&l.text?g.mF(l.text):R.paidContentOverlayText}; Esi=function(R){var l=wI(R);return l&&l.durationMs?zs(l.durationMs):R.paidContentOverlayDurationMs}; wI=function(R){var l,y,f;return R.playerResponse&&R.playerResponse.paidContentOverlay&&R.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.k((l=R.P1)==null?void 0:(y=l.playerOverlays)==null?void 0:(f=y.playerOverlayRenderer)==null?void 0:f.playerDisclosure,WYZ)||null}; xK=function(R){var l="";if(R.q8)return R.q8;R.isLivePlayback&&(l=R.allowLiveDvr?"dvr":R.isPremiere?"lp":R.LX?"window":"live");R.Rz&&(l="post");return l}; g.IY=function(R,l){return typeof R.keywords[l]!=="string"?null:R.keywords[l]}; LY7=function(R){return!!R.OH||!!R.V6||!!R.hg||!!R.UH||R.zs}; g.ND=function(R){return!!(R.tF||R.eI||R.L7||R.hlsvp||R.nV())}; Gf=function(R){if(R.C("html5_onesie")&&R.errorCode)return!1;var l=g.uA(R.Yb,"ypc");R.ypcPreview&&(l=!1);return R.Nl()&&!R.loading&&(g.ND(R)||g.uA(R.Yb,"heartbeat")||l)}; rI=function(R,l){R=lW(R);var y={};if(l){l=g.u(l.split(","));for(var f=l.next();!f.done;f=l.next())(f=f.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(y[f[1]]={width:f[2],height:f[3]})}l=g.u(R);for(f=l.next();!f.done;f=l.next()){f=f.value;var A=y[f.itag];A&&(f.width=A.width,f.height=A.height)}return R}; V39=function(R,l){R.showShareButton=!!l;var y,f,A=((y=g.k(l,g.lD))==null?void 0:y.navigationEndpoint)||((f=g.k(l,g.lD))==null?void 0:f.command);A&&(R.WR=!!g.k(A,Osc))}; pps=function(R,l){var y=l.raw_embedded_player_response;if(!y){var f=l.embedded_player_response;f&&(y=JSON.parse(f))}y&&(R.oJ=y);if(R.oJ){R.embeddedPlayerConfig=R.oJ.embeddedPlayerConfig||null;if(y=R.oJ.videoFlags)y.playableInEmbed&&(R.allowEmbed=!0),y.isPrivate&&(R.isPrivate=!0),y.userDisplayName&&(l.user_display_name=y.userDisplayName),y.userDisplayImage&&(l.user_display_image=y.userDisplayImage);if(y=R.oJ.embedPreview){y=y.thumbnailPreviewRenderer;EqZ(R,y.controlBgHtml);if(f=y.defaultThumbnail)R.W= zt(f);R.C("embeds_web_enable_search_button")&&y.searchButton&&(f=g.k(y.searchButton,g.lD))&&(R.NQU=g.k(f.navigationEndpoint,g.pC));(f=g.k(y==null?void 0:y.videoDetails,isi))&&Y4r(R,l,f);f=g.k(y==null?void 0:y.videoDetails,PDo);R.NW=!!y.addToWatchLaterButton;V39(R,y.shareButton);if(f==null?0:f.musicVideoType)R.musicVideoType=f.musicVideoType;var A,K,G,B,H;if(f=g.k((A=R.getEmbeddedPlayerResponse())==null?void 0:(K=A.embedPreview)==null?void 0:(G=K.thumbnailPreviewRenderer)==null?void 0:(B=G.playButton)== null?void 0:(H=B.buttonRenderer)==null?void 0:H.navigationEndpoint,g.mh))lRr(R,f),R.videoId=f.videoId||R.videoId;y.videoDurationSeconds&&(R.lengthSeconds=zs(y.videoDurationSeconds));y.webPlayerActionsPorting&&cGQ(R,y.webPlayerActionsPorting);if(A=g.k(y==null?void 0:y.playlist,u$q)){R.iP=!0;K=[];G=Number(A.currentIndex);if(A.contents)for(B=0,H=A.contents.length;B0:R.HA?!1:R.yL.o9||R.yL.zL||!g.kh(R.yL)?!0:!1:(R.HA?0:R.o9)&&g.kh(R.yL)?!0:!1;R.C("html5_log_detailpage_autoplay")&&CC(R)==="detailpage"&&R.T4("autoplay_info",{autoplay:R.Hf,autonav:R.isAutonav,wasDompaused:R.HA,result:l});return l}; g.MD=function(R){return R.oauthToken||R.yL.pw}; vs9=function(R){if(R.C("html5_stateful_audio_normalization")){var l=1,y=g.yx(R.yL.experiments,"html5_default_ad_gain");y&&R.isAd()&&(l=y);var f,A;y=(A=(f=R.Y)==null?void 0:f.audio.Y)!=null?A:R.Ts;if(y==null||isNaN(y))R=r9s(R);else{f=(0,g.eY)();R.XK=2;A=f-R.yL.iE<=R.maxStatefulTimeThresholdSec*1E3;R.applyStatefulNormalization&&A?R.XK=4:A||(R.yL.ML=Infinity,R.yL.iE=NaN);A=(R.XK===4?g.Sq(R.yL.ML,R.minimumLoudnessTargetLkfs,R.loudnessTargetLkfs):R.loudnessTargetLkfs)-y;if(R.XK!==4){var K,G,B,H,n=((K= R.playerResponse)==null?void 0:(G=K.playerConfig)==null?void 0:(B=G.audioConfig)==null?void 0:(H=B.loudnessNormalizationConfig)==null?void 0:H.statelessLoudnessAdjustmentGain)||0;A+=n}A=Math.min(A,0);R.preserveStatefulLoudnessTarget&&(R.yL.ML=y+A,R.yL.iE=f);R=Math.min(1,Math.pow(10,A/20))||l}}else R=r9s(R);return R}; r9s=function(R){var l=1,y=g.yx(R.yL.experiments,"html5_default_ad_gain");y&&R.isAd()&&(l=y);if(R.yL.experiments.EL("html5_audio_gain_null_coalescing")){var f,A;y=(A=(f=R.Y)==null?void 0:f.audio.L)!=null?A:R.Vu;y==0&&R.T4("db0fix",{rldb:R.Vu},!0)}else{var K;y=((K=R.Y)==null?void 0:K.audio.L)||R.Vu}isNaN(y)||(R.XK=1);return Math.min(1,Math.pow(10,-y/20))||l}; LC=function(R){var l=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],y=hu(R.yL)==="TVHTML5_SIMPLY"&&R.yL.Z.ctheme==="MUSIC";!R.FR&&(g.xi(R.yL)||g.mQ(R.yL)||y)&&(l.includes(R.musicVideoType)||R.isExternallyHostedPodcast)&&(R.FR=!0);if(l=g.Db())l=/Starboard\/([0-9]+)/.exec(g.pp()),l=(l?parseInt(l[1],10):NaN)<10;y=R.yL;y=(hu(y)==="TVHTML5_CAST"||hu(y)==="TVHTML5"&&(y.Z.cver.startsWith("6.20130725")||y.Z.cver.startsWith("6.20130726")))&&R.yL.Z.ctheme==="MUSIC";var f;if(f=!R.FR)y||(y= R.yL,y=hu(y)==="TVHTML5"&&y.Z.cver.startsWith("7")),f=y;f&&!l&&(l=R.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",y=(R.C("cast_prefer_audio_only_for_atv_and_uploads")||R.C("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&R.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",l||y||R.isExternallyHostedPodcast)&&(R.FR=!0);return R.yL.deviceIsAudioOnly||R.FR&&R.yL.W}; ip=function(R){var l,y,f;return((l=R.playerResponse)==null?void 0:(y=l.playerConfig)==null?void 0:(f=y.compositeVideoConfig)==null?void 0:f.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; g.z0o=function(R){return R.C("html5_enable_sabr_live_captions")&&R.QS()&&PZ(R)||ip(R)}; RE=function(R){var l,y,f;return!!((l=R.playerResponse)==null?0:(y=l.playerConfig)==null?0:(f=y.mediaCommonConfig)==null?0:f.splitScreenEligible)}; lK=function(R){var l;return!((l=R.playerResponse)==null||!l.compositePlayabilityStatus)}; wuj=function(R){return isNaN(R)?0:Math.max((Date.now()-R)/1E3-30,0)}; ys=function(R){return!(!R.Pv||!R.yL.W)&&R.nV()}; fM=function(R){return R.vv&&R.enableServerStitchedDai}; xj9=function(R){return R.Kf&&!R.tO}; PZ=function(R){var l=R.C("html5_enable_sabr_on_drive")&&R.yL.LX==="gd";if(R.D3)return R.Kf&&R.T4("fds",{fds:!0},!0),!1;if(R.yL.LX!=="yt"&&!l)return R.Kf&&R.T4("dsvn",{ns:R.yL.LX},!0),!1;if(R.cotn||!R.Z||R.Z.isOtf&&!R.C("html5_enable_sabr_otf_in_client")||R.C("html5_disable_sabr_for_hls")&&R.L&&!R.L.Z||R.Mk&&!R.C("html5_enable_sabr_csdai"))return!1;if(R.C("html5_use_sabr_requests_for_debugging"))return!0;R.Kf&&R.T4("esfw",{usbc:R.Kf,hsu:!!R.tO},!0);if(R.Kf&&R.tO)return!0;if(R.C("html5_remove_client_sabr_determination"))return!1; var y=!R.Z.QS&&!R.yT();l=y&&cn&&R.C("html5_enable_sabr_vod_streaming_xhr");y=y&&!cn&&R.C("html5_enable_sabr_vod_non_streaming_xhr");var f=Az(R),A=R.C("html5_enable_sabr_drm_vod_streaming_xhr")&&cn&&R.yT()&&!R.Z.QS&&(R.drmProduct==="1"?!1:!0);(l=l||y||f||A)&&!R.tO&&R.T4("sabr",{loc:"m"},!0);return l&&!!R.tO}; Az=function(R){var l;if(!(l=cn&&R.QS()&&R.yT()&&(R.drmProduct==="1"?!1:!0)&&R.C("html5_sabr_live_drm_streaming_xhr"))){l=R.QS()&&!R.yT()&&cn;var y=R.QS()&&R.latencyClass!=="ULTRALOW"&&!R.isLowLatencyLiveStream&&R.C("html5_sabr_live_normal_latency_streaming_xhr"),f=R.isLowLatencyLiveStream&&R.C("html5_sabr_live_low_latency_streaming_xhr"),A=R.latencyClass==="ULTRALOW"&&R.C("html5_sabr_live_ultra_low_latency_streaming_xhr");l=l&&(y||f||A)}y=l;l=R.enableServerStitchedDai&&y&&R.C("html5_enable_sabr_ssdai_streaming_xhr"); y=!R.enableServerStitchedDai&&y;f=R.QS()&&!cn&&R.C("html5_enable_sabr_live_non_streaming_xhr");R=cn&&(R.h1()||RE(R)&&R.C("html5_enable_sabr_for_lifa_eligible_streams"));return l||y||f||R}; KYj=function(R){var l;if(l=!!R.cotn)l=R.videoId,l=!!l&&g.Zv(l)===1;return l&&!R.Pv}; g.KM=function(R){if(!R.Z||!R.X||!R.Y)return!1;var l=R.Z.Z,y=!!l[R.X.id]&&JN(l[R.X.id].x$.Z);l=!!l[R.Y.id]&&JN(l[R.Y.id].x$.Z);return(R.X.itag==="0"||y)&&l}; Gv=function(R){return R.Wv?["OK","LIVE_STREAM_OFFLINE"].includes(R.Wv.status):!0}; FYr=function(R){return(R=R.wk)&&R.showError?R.showError:!1}; aE=function(R,l){return R.C(l)?!0:(R.fflags||"").includes(l+"=true")}; ZWs=function(R,l){l.inlineMetricEnabled&&(R.inlineMetricEnabled=!0);l.playback_progress_0s_url&&(R.UH=new OWk(l));if(l=l.video_masthead_ad_quartile_urls)R.V6=l.quartile_0_url,R.GX=l.quartile_25_url,R.a8=l.quartile_50_url,R.Ue=l.quartile_75_url,R.I8=l.quartile_100_url,R.hg=l.quartile_0_urls,R.RP=l.quartile_25_urls,R.Ay=l.quartile_50_urls,R.d1=l.quartile_75_urls,R.Gq=l.quartile_100_urls}; DYq=function(R){var l={};R=g.u(R);for(var y=R.next();!y.done;y=R.next()){y=y.value;var f=y.split("=");f.length===2?l[f[0]]=f[1]:l[y]=!0}return l}; S4r=function(R){if(R){if(OlQ(R))return R;R=ilc(R);if(OlQ(R,!0))return R}return""}; g.IXK=function(R){return R.captionsLanguagePreference||R.yL.captionsLanguagePreference||g.IY(R,"yt:cc_default_lang")||R.yL.Qb}; sW=function(R){return!(!R.isLivePlayback||!R.hasProgressBarBoundaries())}; g.oY=function(R){var l;return R.GK||((l=R.suggestions)==null?void 0:l[0])||null}; g.Bd=function(R){return R.nJ&&(R.C("embeds_enable_pfp_always_unbranded")||R.yL.wp)}; g.Hd=function(R){var l,y;return!!((l=R.embeddedPlayerConfig)==null?0:(y=l.embeddedPlayerFlags)==null?0:y.enableMusicUx)}; Nmk=function(R){return R.V||R.C("web_player_media_session_infinity")&&R.isLivePlayback}; mv=function(R){return R.yL.Y&&R.isPrivate}; g.hz=function(R){var l=R.U(),y=g.oE(l),f=l.RV;(l.C("embeds_web_enable_iframe_api_send_full_embed_url")||l.C("embeds_web_enable_rcat_validation_in_havs")||l.C("embeds_enable_autoplay_and_visibility_signals"))&&g.CI(l)&&(f&&(y.thirdParty=Object.assign({},y.thirdParty,{embedUrl:f})),AqK(y,R));if(f=R.CX)y.clickTracking={clickTrackingParams:f};else if(g.CI(R.U())&&g.JZ("EVENT_ID"))y.clickTracking={clickTrackingParams:g.JZ("EVENT_ID")};else if(l.C("html5_log_missing_itct")){var A;f=new g.JD("Missing ITCT in InnerTubeContext", {isAd:R.isAd(),Wi1:(A=l.getWebPlayerContextConfig())==null?void 0:A.contextId});g.Tw(f)}A=y.client||{};f="EMBED";var K=CC(R);K==="leanback"?f="WATCH":l.C("gvi_channel_client_screen")&&K==="profilepage"?f="CHANNEL":R.B1?f="LIVE_MONITOR":K==="detailpage"?f="WATCH_FULL_SCREEN":K==="adunit"?f="ADUNIT":K==="sponsorshipsoffer"&&(f="UNKNOWN");A.clientScreen=f;if(l=R.kidsAppInfo)A.kidsAppInfo=JSON.parse(l);(f=R.mp)&&!l&&(A.kidsAppInfo={contentSettings:{ageUpMode:pu9[f]}});if(l=R.GS)A.unpluggedAppInfo={enableFilterMode:!0}; (f=R.unpluggedFilterModeType)&&!l&&(A.unpluggedAppInfo={filterModeType:UjY[f]});if(l=R.US)A.unpluggedLocationInfo=l;y.client=A;A=y.request||{};R.aJ&&(A.isPrefetch=!0);if(l=R.mdxEnvironment)A.mdxEnvironment=l;if(l=R.mdxControlMode)A.mdxControlMode=SaQ[l];y.request=A;A=y.user||{};if(l=R.sL)A.credentialTransferTokens=[{token:l,scope:"VIDEO"}];if(l=R.RV)A.delegatePurchases={oauthToken:l},A.kidsParent={oauthToken:l};y.user=A;if(A=R.contextParams)y.activePlayers=[{playerContextParams:A}];if(R=R.clientScreenNonce)y.clientScreenNonce= R;return y}; g.oE=function(R){var l=g.qL(),y=l.client||{};if(R.forcedExperiments){var f=R.forcedExperiments.split(","),A=[];f=g.u(f);for(var K=f.next();!K.done;K=f.next())A.push(Number(K.value));y.experimentIds=A}if(A=R.homeGroupInfo)y.homeGroupInfo=JSON.parse(A);if(A=R.getPlayerType())y.playerType=A;if(A=R.Z.ctheme)y.theme=A;if(A=R.livingRoomAppMode)y.tvAppInfo=Object.assign({},y.tvAppInfo,{livingRoomAppMode:A});A=R.deviceYear;R.C("html5_propagate_device_year")&&A&&(y.tvAppInfo=Object.assign({},y.tvAppInfo,{deviceYear:A})); if(A=R.livingRoomPoTokenId)y.tvAppInfo=Object.assign({},y.tvAppInfo,{livingRoomPoTokenId:A});l.client=y;y=l.user||{};R.enableSafetyMode&&(y=Object.assign({},y,{enableSafetyMode:!0}));R.pageId&&(y=Object.assign({},y,{onBehalfOfUser:R.pageId}));l.user=y;y=R.RV;R.C("embeds_web_enable_iframe_api_send_full_embed_url")||R.C("embeds_web_enable_rcat_validation_in_havs")||R.C("embeds_enable_autoplay_and_visibility_signals")||!y||(l.thirdParty={embedUrl:y});return l}; gss=function(R,l,y){var f=R.videoId,A=g.hz(R),K=R.U(),G={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(uq()),referer:document.location.toString(),signatureTimestamp:20249};g.UG();R.isAutonav&&(G.autonav=!0);g.SI(0,141)&&(G.autonavState=g.SI(0,140)?"STATE_OFF":"STATE_ON");G.autoCaptionsDefaultOn=g.SI(0,66);djq(R)&&(G.autoplay=!0);K.W&&R.cycToken&&(G.cycToken=R.cycToken);K.enablePrivacyFilter&&(G.enablePrivacyFilter=!0);R.isFling&&(G.fling=!0);var B=R.forceAdsUrl;if(B){var H={},n=[];B= B.split(",");B=g.u(B);for(var m=B.next();!m.done;m=B.next()){m=m.value;var h=m.split("|");h.length!==3||m.includes("=")||(h[0]="breaktype="+h[0],h[1]="offset="+h[1],h[2]="url="+h[2]);m={adtype:"video_ad"};h=g.u(h);for(var c=h.next();!c.done;c=h.next()){var E=g.u(c.value.split("="));c=E.next().value;E=KsT(E);m[c]=E.join("=")}h=m.url;c=m.presetad;E=m.viralresponseurl;var W=Number(m.campaignid);if(m.adtype==="in_display_ad")h&&(H.url=h),c&&(H.presetAd=c),E&&(H.viralAdResponseUrl=E),W&&(H.viralCampaignId= String(W));else if(m.adtype==="video_ad"){var Q={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(m.offset)||0)}};if(m=jUJ[m.breaktype])Q.breakType=m;h&&(Q.url=h);c&&(Q.presetAd=c);E&&(Q.viralAdResponseUrl=E);W&&(Q.viralCampaignId=String(W));n.push(Q)}}G.forceAdParameters={videoAds:n,inDisplayAd:H}}R.isInlinePlaybackNoAd&&(G.isInlinePlaybackNoAd=!0);R.isLivingRoomDeeplink&&(G.isLivingRoomDeeplink=!0);H=R.jx;if(H!=null){H={startWalltime:String(H)};if(n=R.zz)H.manifestDuration=String(n||14400); G.liveContext=H}if(R.mutedAutoplay){G.mutedAutoplay=!0;H=K.getWebPlayerContextConfig();var e,r;(H==null?0:(e=H.embedsHostFlags)==null?0:e.allowMutedAutoplayDurationMode)&&(H==null?0:(r=H.embedsHostFlags)==null?0:r.allowMutedAutoplayDurationMode.includes(k09[R.mutedAutoplayDurationMode]))&&(G.mutedAutoplayDurationMode=k09[R.mutedAutoplayDurationMode])}if(R.HA?0:R.o9)G.splay=!0;e=R.vnd;e===5&&(G.vnd=e);e={};if(r=R.isMdxPlayback)e.triggeredByMdx=r;if(r=R.e7)e.skippableAdsSupported=r.split(",").includes("ska"); if(n=R.EU){r=R.WJ;H=[];n=g.u(asi(n));for(B=n.next();!B.done;B=n.next()){B=B.value;m=B.platform;B={applicationState:B.ZR?"INACTIVE":"ACTIVE",clientFormFactor:Dj7[m]||"UNKNOWN_FORM_FACTOR",clientName:Bsk[B.fk]||"UNKNOWN_INTERFACE",clientVersion:B.deviceVersion||"",platform:Zsq[m]||"UNKNOWN_PLATFORM"};m={};if(r){h=void 0;try{h=JSON.parse(r)}catch(z){g.dP(z)}h&&(m={params:[{key:"ms",value:h.ms}]},h.advertising_id&&(m.advertisingId=h.advertising_id),h.limit_ad_tracking!==void 0&&h.limit_ad_tracking!== null&&(m.limitAdTracking=h.limit_ad_tracking),B.osName=h.os_name,B.userAgent=h.user_agent,B.windowHeightPoints=h.window_height_points,B.windowWidthPoints=h.window_width_points)}H.push({adSignalsInfo:m,remoteClient:B})}e.remoteContexts=H}r=R.sourceContainerPlaylistId;H=R.serializedMdxMetadata;if(r||H)n={},r&&(n.mdxPlaybackContainerInfo={sourceContainerPlaylistId:r}),H&&(n.serializedMdxMetadata=H),e.mdxPlaybackSourceContext=n;G.mdxContext=e;e=l.width;e>0&&(G.playerWidthPixels=Math.round(e));if(l=l.height)G.playerHeightPixels= Math.round(l);y!==0&&(G.vis=y);if(y=K.widgetReferrer)G.widgetReferrer=y.substring(0,128);g.kh(K)&&G&&(G.ancestorOrigins=K.ancestorOrigins);R.defaultActiveSourceVideoId&&(G.compositeVideoContext={defaultActiveSourceVideoId:R.defaultActiveSourceVideoId});if(K=K.getWebPlayerContextConfig())G.encryptedHostFlags=K.encryptedHostFlags;f={videoId:f,context:A,playbackContext:{contentPlaybackContext:G}};if(R.CJ){var d;f.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(d=R.CJ)==null?void 0:d.reloadPlaybackParams}}R.contentCheckOk&& (f.contentCheckOk=!0);if(d=R.clientPlaybackNonce)f.cpn=d;if(d=R.playerParams)f.params=d;if(d=R.playlistId)f.playlistId=d;R.racyCheckOk&&(f.racyCheckOk=!0);d=R.U();if(A=d.embedConfig)f.serializedThirdPartyEmbedConfig=A;f.captionParams={};A=g.SI(g.UG(),65);R.deviceCaptionsOn!=null?f.captionParams.deviceCaptionsOn=R.deviceCaptionsOn:g.Hm(d)&&(f.captionParams.deviceCaptionsOn=A!=null?!A:!1);R.Qv&&(f.captionParams.deviceCaptionsLangPref=R.Qv);R.zS.length?f.captionParams.viewerSelectedCaptionLangs=R.zS: g.Hm(d)&&(A=g.Bq(),A==null?0:A.length)&&(f.captionParams.viewerSelectedCaptionLangs=A);A=R.fetchType==="onesie"&&R.C("html5_onesie_attach_po_token");G=R.fetchType!=="onesie"&&R.C("html5_non_onesie_attach_po_token");if(A||G)A=R.U(),A.HA&&(f.serviceIntegrityDimensions={},f.serviceIntegrityDimensions.poToken=A.HA);d.C("fetch_att_independently")&&(f.attestationRequest={omitBotguardData:!0});f.playbackContext||(f.playbackContext={});f.playbackContext.devicePlaybackCapabilities=J9T(R);f.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== !1&&R.T4("noVp9",{});return f}; J9T=function(R){var l=!(R==null?0:R.jz())&&(R==null?void 0:R.QS())&&Ra(),y;if(!(y=R==null)){y=g.up(R);R=R.U().J;var f=Pm("243");y=!(f&&wM(y,f,R,!0)===!0)}return{supportsVp9Encoding:!(y||l),supportXhr:cn}}; CDq=function(R,l){var y,f,A;return g.w(function(K){if(K.X==1)return y={context:g.oE(R.U()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:R.videoId,cpn:R.clientPlaybackNonce}}]},f=g.ML(VwQ),g.v(K,g.xr(l,y,f),2);A=K.Z;return K.return(A)})}; qaJ=function(R,l,y){var f=g.yx(l.experiments,"bg_vm_reinit_threshold");(!lS||(0,g.eY)()-lS>f)&&CDq(R,y).then(function(A){A&&(A=A.botguardData)&&g.fA(A,l)},function(A){R.Fx()||(A=W9(A),R.T4("attf",A.details))})}; cd=function(R,l){g.p.call(this);this.app=R;this.state=l}; Wd=function(R,l,y){R.state.Z.hasOwnProperty(l)||EW(R,l,y);R.state.V[l]=function(){return y.apply(R,g.SJ.apply(0,arguments))}; R.state.D.add(l)}; LM=function(R,l,y){R.state.Z.hasOwnProperty(l)||EW(R,l,y);R.app.U().W&&(R.state.W[l]=function(){return y.apply(R,g.SJ.apply(0,arguments))},R.state.D.add(l))}; EW=function(R,l,y){R.state.Z[l]=function(){return y.apply(R,g.SJ.apply(0,arguments))}}; g.OW=function(R,l,y){return R.state.Z[l].apply(R.state.Z,g.ci(y))}; iK=function(){g.$8.call(this);this.J=new Map}; Pd=function(){g.p.apply(this,arguments);this.element=null;this.D=new Set;this.V={};this.W={};this.Z={};this.B=new Set;this.L=new iK;this.X=new iK;this.Y=new iK;this.J=new iK}; twQ=function(R,l,y){typeof R==="string"&&(R={mediaContentUrl:R,startSeconds:l,suggestedQuality:y});a:{if((l=R.mediaContentUrl)&&(l=/\/([ve]|embed)\/([^#?]+)/.exec(l))&&l[2]){l=l[2];break a}l=null}R.videoId=l;return uK(R)}; uK=function(R,l,y){if(typeof R==="string")return{videoId:R,startSeconds:l,suggestedQuality:y};l={};y=g.u(YaJ);for(var f=y.next();!f.done;f=y.next())f=f.value,R[f]&&(l[f]=R[f]);return l}; MwZ=function(R,l,y,f){if(g.GK(R)&&!Array.isArray(R)){l="playlist list listType index startSeconds suggestedQuality".split(" ");y={};for(f=0;f32&&f.push("hfr");l.isHdr()&&f.push("hdr");l.primaries==="bt2020"&&f.push("wcg");y.video_quality_features=f}}if(R=R.getPlaylistId())y.list=R;return y}; bK=function(){FE.apply(this,arguments)}; XE=function(R,l){var y={};if(R.app.U().Yb){R=g.u(fDY);for(var f=R.next();!f.done;f=R.next())f=f.value,l.hasOwnProperty(f)&&(y[f]=l[f]);if(l=y.qoe_cat)R="",typeof l==="string"&&l.length>0&&(R=l.split(",").filter(function(A){return AkQ.includes(A)}).join(",")),y.qoe_cat=R; Klc(y)}else for(R=g.u(G5Z),f=R.next();!f.done;f=R.next())f=f.value,l.hasOwnProperty(f)&&(y[f]=l[f]);return y}; Klc=function(R){var l=R.raw_player_response;if(!l){var y=R.player_response;y&&(l=JSON.parse(y))}delete R.player_response;delete R.raw_player_response;if(l){R.raw_player_response={streamingData:l.streamingData,playerConfig:l.playerConfig};var f;if((f=l.playbackTracking)==null?0:f.qoeUrl)R.raw_player_response=Object.assign({},R.raw_player_response,{playbackTracking:{qoeUrl:l.playbackTracking.qoeUrl}});l.videoDetails&&(l.videoDetails.videoId||l.videoDetails.lengthSeconds)&&(y={},l.videoDetails.videoId&& (y.videoId=l.videoDetails.videoId),l.videoDetails.lengthSeconds&&(y.lengthSeconds=l.videoDetails.lengthSeconds),R.raw_player_response=Object.assign({},R.raw_player_response,{videoDetails:y}))}}; Tv=function(R,l,y){var f=R.app.wc(y);if(!f)return 0;R=f-R.app.getCurrentTime(y);return l-R}; s0q=function(R){var l=l===void 0?5:l;return R?aDJ[R]||l:l}; g.dn=function(){bK.apply(this,arguments)}; BZZ=function(R){EW(R,"getInternalApiInterface",R.getInternalApiInterface);EW(R,"addEventListener",R.KZ);EW(R,"removeEventListener",R.GD4);EW(R,"cueVideoByPlayerVars",R.hZ);EW(R,"loadVideoByPlayerVars",R.Ku);EW(R,"preloadVideoByPlayerVars",R.k9U);EW(R,"getAdState",R.getAdState);EW(R,"sendAbandonmentPing",R.sendAbandonmentPing);EW(R,"setLoopRange",R.setLoopRange);EW(R,"getLoopRange",R.getLoopRange);EW(R,"setAutonavState",R.setAutonavState);EW(R,"seekTo",R.zTL);EW(R,"seekBy",R.j21);EW(R,"seekToLiveHead", R.seekToLiveHead);EW(R,"requestSeekToWallTimeSeconds",R.requestSeekToWallTimeSeconds);EW(R,"seekToStreamTime",R.seekToStreamTime);EW(R,"startSeekCsiAction",R.startSeekCsiAction);EW(R,"getStreamTimeOffset",R.getStreamTimeOffset);EW(R,"getVideoData",R.y$);EW(R,"setInlinePreview",R.setInlinePreview);EW(R,"getAppState",R.getAppState);EW(R,"updateLastActiveTime",R.updateLastActiveTime);EW(R,"setBlackout",R.setBlackout);EW(R,"setUserEngagement",R.setUserEngagement);EW(R,"updateSubtitlesUserSettings",R.updateSubtitlesUserSettings); EW(R,"getPresentingPlayerType",R.JQ);EW(R,"canPlayType",R.canPlayType);EW(R,"updatePlaylist",R.updatePlaylist);EW(R,"updateVideoData",R.updateVideoData);EW(R,"updateEnvironmentData",R.updateEnvironmentData);EW(R,"sendVideoStatsEngageEvent",R.Weq);EW(R,"productsInVideoVisibilityUpdated",R.productsInVideoVisibilityUpdated);EW(R,"setSafetyMode",R.setSafetyMode);EW(R,"isAtLiveHead",function(l){return R.isAtLiveHead(void 0,l)}); EW(R,"getVideoAspectRatio",R.getVideoAspectRatio);EW(R,"getPreferredQuality",R.getPreferredQuality);EW(R,"getPlaybackQualityLabel",R.getPlaybackQualityLabel);EW(R,"setPlaybackQualityRange",R.uR7);EW(R,"onAdUxClicked",R.onAdUxClicked);EW(R,"getFeedbackProductData",R.getFeedbackProductData);EW(R,"getStoryboardFrame",R.getStoryboardFrame);EW(R,"getStoryboardFrameIndex",R.getStoryboardFrameIndex);EW(R,"getStoryboardLevel",R.getStoryboardLevel);EW(R,"getNumberOfStoryboardLevels",R.getNumberOfStoryboardLevels); EW(R,"getCaptionWindowContainerId",R.getCaptionWindowContainerId);EW(R,"getAvailableQualityLabels",R.getAvailableQualityLabels);EW(R,"addCueRange",R.addCueRange);EW(R,"addUtcCueRange",R.addUtcCueRange);EW(R,"showAirplayPicker",R.showAirplayPicker);EW(R,"dispatchReduxAction",R.dispatchReduxAction);EW(R,"getPlayerResponse",R.qr);EW(R,"getWatchNextResponse",R.Rm);EW(R,"getHeartbeatResponse",R.B4);EW(R,"getCurrentTime",R.uY);EW(R,"getDuration",R.MX);EW(R,"getPlayerState",R.getPlayerState);EW(R,"getPlayerStateObject", R.Zv);EW(R,"getVideoLoadedFraction",R.getVideoLoadedFraction);EW(R,"getProgressState",R.getProgressState);EW(R,"getVolume",R.getVolume);EW(R,"setVolume",R.BI);EW(R,"isMuted",R.isMuted);EW(R,"mute",R.xU);EW(R,"unMute",R.V7);EW(R,"loadModule",R.loadModule);EW(R,"unloadModule",R.unloadModule);EW(R,"getOption",R.aY);EW(R,"getOptions",R.getOptions);EW(R,"setOption",R.setOption);EW(R,"loadVideoById",R.cq);EW(R,"loadVideoByUrl",R.uB);EW(R,"playVideo",R.Ef);EW(R,"loadPlaylist",R.loadPlaylist);EW(R,"nextVideo", R.nextVideo);EW(R,"previousVideo",R.previousVideo);EW(R,"playVideoAt",R.playVideoAt);EW(R,"getDebugText",R.getDebugText);EW(R,"getWebPlayerContextConfig",R.getWebPlayerContextConfig);EW(R,"notifyShortsAdSwipeEvent",R.notifyShortsAdSwipeEvent);EW(R,"getVideoContentRect",R.getVideoContentRect);EW(R,"setSqueezeback",R.setSqueezeback);EW(R,"toggleSubtitlesOn",R.toggleSubtitlesOn);EW(R,"isSubtitlesOn",R.isSubtitlesOn);EW(R,"reportPlaybackIssue",R.reportPlaybackIssue);EW(R,"setAutonav",R.setAutonav);EW(R, "isNotServable",R.isNotServable);EW(R,"channelSubscribed",R.channelSubscribed);EW(R,"channelUnsubscribed",R.channelUnsubscribed);EW(R,"togglePictureInPicture",R.togglePictureInPicture);EW(R,"supportsGaplessAudio",R.supportsGaplessAudio);EW(R,"supportsGaplessShorts",R.supportsGaplessShorts);EW(R,"enqueueVideoByPlayerVars",function(l){return void R.enqueueVideoByPlayerVars(l)}); EW(R,"clearQueue",R.clearQueue);EW(R,"getAudioTrack",R.W4);EW(R,"setAudioTrack",R.hT$);EW(R,"getAvailableAudioTracks",R.Oq);EW(R,"getMaxPlaybackQuality",R.getMaxPlaybackQuality);EW(R,"getUserPlaybackQualityPreference",R.getUserPlaybackQualityPreference);EW(R,"getSubtitlesUserSettings",R.getSubtitlesUserSettings);EW(R,"resetSubtitlesUserSettings",R.resetSubtitlesUserSettings);EW(R,"setMinimized",R.setMinimized);EW(R,"setOverlayVisibility",R.setOverlayVisibility);EW(R,"confirmYpcRental",R.confirmYpcRental); EW(R,"queueNextVideo",R.queueNextVideo);EW(R,"handleExternalCall",R.handleExternalCall);EW(R,"logApiCall",R.logApiCall);EW(R,"isExternalMethodAvailable",R.isExternalMethodAvailable);EW(R,"setScreenLayer",R.setScreenLayer);EW(R,"getCurrentPlaylistSequence",R.getCurrentPlaylistSequence);EW(R,"getPlaylistSequenceForTime",R.getPlaylistSequenceForTime);EW(R,"shouldSendVisibilityState",R.shouldSendVisibilityState);EW(R,"syncVolume",R.syncVolume);EW(R,"highlightSettingsMenuItem",R.highlightSettingsMenuItem); EW(R,"openSettingsMenuItem",R.openSettingsMenuItem);EW(R,"getEmbeddedPlayerResponse",R.getEmbeddedPlayerResponse);EW(R,"getVisibilityState",R.getVisibilityState);EW(R,"isMutedByMutedAutoplay",R.isMutedByMutedAutoplay);EW(R,"isMutedByEmbedsMutedAutoplay",R.isMutedByEmbedsMutedAutoplay);EW(R,"setGlobalCrop",R.setGlobalCrop);EW(R,"setInternalSize",R.setInternalSize);EW(R,"setFauxFullscreen",R.setFauxFullscreen);EW(R,"setAppFullscreen",R.setAppFullscreen)}; vd=function(R,l,y){R=g.rn(R.oz(),l);return y?(y.addOnDisposeCallback(R),null):R}; g.zv=function(R,l,y){return R.app.U().TD?l:g.KV("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:l,SHORTCUT:y})}; HNi=function(R){R.oz().element.setAttribute("aria-live","polite")}; g.wn=function(R,l){g.dn.call(this,R,l);BZZ(this);LM(this,"addEventListener",this.u1);LM(this,"removeEventListener",this.xjL);LM(this,"cueVideoByPlayerVars",this.Uw);LM(this,"loadVideoByPlayerVars",this.E_);LM(this,"preloadVideoByPlayerVars",this.SSx);LM(this,"loadVideoById",this.cq);LM(this,"loadVideoByUrl",this.uB);LM(this,"playVideo",this.Ef);LM(this,"loadPlaylist",this.loadPlaylist);LM(this,"nextVideo",this.nextVideo);LM(this,"previousVideo",this.previousVideo);LM(this,"playVideoAt",this.playVideoAt); LM(this,"getVideoData",this.gg);LM(this,"seekBy",this.o4$);LM(this,"seekTo",this.A7Q);LM(this,"showControls",this.showControls);LM(this,"hideControls",this.hideControls);LM(this,"cancelPlayback",this.cancelPlayback);LM(this,"getProgressState",this.getProgressState);LM(this,"isInline",this.isInline);LM(this,"setInline",this.setInline);LM(this,"setLoopVideo",this.setLoopVideo);LM(this,"getLoopVideo",this.getLoopVideo);LM(this,"getVideoContentRect",this.getVideoContentRect);LM(this,"getVideoStats",this.Dv); LM(this,"getCurrentTime",this.Sx);LM(this,"getDuration",this.MX);LM(this,"getPlayerState",this.Lp);LM(this,"getVideoLoadedFraction",this.bW);LM(this,"mute",this.xU);LM(this,"unMute",this.V7);LM(this,"setVolume",this.BI);LM(this,"loadModule",this.loadModule);LM(this,"unloadModule",this.unloadModule);LM(this,"getOption",this.aY);LM(this,"getOptions",this.getOptions);LM(this,"setOption",this.setOption);LM(this,"addCueRange",this.addCueRange);LM(this,"getDebugText",this.getDebugText);LM(this,"getStoryboardFormat", this.getStoryboardFormat);LM(this,"toggleFullscreen",this.toggleFullscreen);LM(this,"isFullscreen",this.isFullscreen);LM(this,"getPlayerSize",this.getPlayerSize);LM(this,"toggleSubtitles",this.toggleSubtitles);LM(this,"setCenterCrop",this.setCenterCrop);LM(this,"setFauxFullscreen",this.setFauxFullscreen);LM(this,"setSizeStyle",this.setSizeStyle);LM(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);LM(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);lDj(this)}; g.xT=function(R){R=R.Il();var l=R.S_.get("endscreen");return l&&l.S9()?!0:R.M1()}; g.IE=function(R,l){R.getPresentingPlayerType()===3?R.publish("mdxautoplaycancel"):R.KX("onAutonavCancelled",l)}; g.pM=function(R){var l=N9(R.Il());return R.app.QU&&!R.isFullscreen()||R.getPresentingPlayerType()===3&&l&&l.Vl()&&l.ip()||!!R.getPlaylist()}; g.UW=function(R,l){g.OW(R,"addEmbedsConversionTrackingParams",[l])}; g.jF=function(R){return(R=g.SF(R.Il()))?R.i6():{}}; g.nnK=function(R){R=(R=R.getVideoData())&&R.X;return!!R&&!(!R.audio||!R.video)&&R.mimeType!=="application/x-mpegURL"}; g.kT=function(R,l,y){R=R.lQ().element;var f=JK(R.children,function(A){A=Number(A.getAttribute("data-layer"));return y-A||1}); f<0&&(f=-(f+1));LS(R,l,f);l.setAttribute("data-layer",String(y))}; g.DN=function(R){var l=R.U();if(!l.US)return!1;var y=R.getVideoData();if(!y||R.getPresentingPlayerType()===3)return!1;var f=(!y.isLiveDefaultBroadcast||l.C("allow_poltergust_autoplay"))&&!sW(y);f=y.isLivePlayback&&(!l.C("allow_live_autoplay")||!f);var A=y.isLivePlayback&&l.C("allow_live_autoplay_on_mweb");R=R.getPlaylist();R=!!R&&R.Vl();var K=y.P1&&y.P1.playerOverlays||null;K=!!(K&&K.playerOverlayRenderer&&K.playerOverlayRenderer.autoplay);K=y.nJ&&K;return!y.ypcPreview&&(!f||A)&&!g.uA(y.Yb,"ypc")&& !R&&(!g.kh(l)||K)}; onq=function(R,l){R=m6Y(R.app.FW().Y);R=g.u(R);for(var y=R.next();!y.done;y=R.next()){y=y.value;var f=y.getAvailableAudioTracks(),A=null;f=g.u(f);for(var K=f.next();!K.done;K=f.next())if(K=K.value,K.getLanguageInfo().getId()===l){A=K;break}A&&y.aH(A,!0)}}; ZN=function(){Nt.apply(this,arguments);this.requestHeaders={}}; gn=function(){Jz||(Jz=new ZN);return Jz}; Vs=function(R,l){l?R.requestHeaders.Authorization="Bearer "+l:delete R.requestHeaders.Authorization}; g.CM=function(R){g.p.call(this);var l=this;this.Xx=R;this.yu={xq:function(){return l.Xx}}}; g.q9=function(R,l,y,f){f=f===void 0?!1:f;g.BB.call(this,l);var A=this;this.G=R;this.xb=f;this.W=new g.QW(this);this.fade=new g.MF(this,y,!0,void 0,void 0,function(){A.Kg()}); g.U(this,this.W);g.U(this,this.fade)}; tz=function(R){var l=R.G.getRootNode();return R.G.C("web_watch_pip")||R.G.C("web_shorts_pip")?lo(l):document}; hk7=function(R){R.X&&(document.activeElement&&g.io(R.element,document.activeElement)&&R.X.focus(),R.X.setAttribute("aria-expanded","false"),R.X=void 0);g.Xr(R.W);R.B=void 0}; M9=function(R,l,y){R.Qs()?R.Rl():R.jZ(l,y)}; Rx=function(R,l,y,f){f=new g.Z({T:"div",QL:["ytp-linked-account-popup-button"],IE:f,K:{role:"button",tabindex:"0"}});l=new g.Z({T:"div",j:"ytp-linked-account-popup",K:{role:"dialog","aria-modal":"true",tabindex:"-1"},S:[{T:"div",j:"ytp-linked-account-popup-title",IE:l},{T:"div",j:"ytp-linked-account-popup-description",IE:y},{T:"div",j:"ytp-linked-account-popup-buttons",S:[f]}]});g.q9.call(this,R,{T:"div",j:"ytp-linked-account-popup-container",S:[l]},100);var A=this;this.dialog=l;g.U(this,this.dialog); f.listen("click",function(){A.Rl()}); g.U(this,f);g.kT(this.G,this.element,4);this.hide()}; g.yu=function(R,l,y,f){g.BB.call(this,R);this.priority=l;y&&g.ll(this,y);f&&this.Oj(f)}; g.fx=function(R,l,y,f){R=R===void 0?{}:R;l=l===void 0?[]:l;y=y===void 0?!1:y;f=f===void 0?!1:f;l.push("ytp-menuitem");var A=R;"role"in A||(A.role="menuitem");y||(A=R,"tabindex"in A||(A.tabindex="0"));R={T:y?"a":"div",QL:l,K:R,S:[{T:"div",j:"ytp-menuitem-icon",IE:"{{icon}}"},{T:"div",j:"ytp-menuitem-label",IE:"{{label}}"},{T:"div",j:"ytp-menuitem-content",IE:"{{content}}"}]};f&&R.S.push({T:"div",j:"ytp-menuitem-secondary-icon",IE:"{{secondaryIcon}}"});return R}; g.ll=function(R,l){R.updateValue("label",l)}; As=function(R){g.yu.call(this,g.fx({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var l=this;this.G=R;this.X=this.Z=!1;this.Te=R.Ju();R.createServerVe(this.element,this,!0);this.N(this.G,"settingsMenuVisibilityChanged",function(y){l.Nx(y)}); this.N(this.G,"videodatachange",this.Y);this.listen("click",this.onClick);this.Y()}; Kx=function(R){return R?g.mF(R):""}; GW=function(R){g.p.call(this);this.api=R}; ax=function(R){GW.call(this,R);var l=this;EW(R,"setAccountLinkState",function(y){l.setAccountLinkState(y)}); EW(R,"updateAccountLinkingConfig",function(y){l.updateAccountLinkingConfig(y)}); R.addEventListener("videodatachange",function(y,f){l.onVideoDataChange(f)}); R.addEventListener("settingsMenuInitialized",function(){l.menuItem=new As(l.api);g.U(l,l.menuItem)})}; ck9=function(R){this.api=R;this.Z={}}; so=function(R,l,y,f){l in R.Z||(y=new g.Jq(y,f,{id:l,priority:2,namespace:"appad"}),R.api.OS([y],1),R.Z[l]=y)}; BV=function(R){GW.call(this,R);var l=this;this.events=new g.QW(this);g.U(this,this.events);this.Z=new ck9(this.api);this.events.N(this.api,"legacyadtrackingpingreset",function(){l.Z.Z={}}); this.events.N(this.api,"legacyadtrackingpingchange",function(y){var f=l.Z;so(f,"part2viewed",1,0x8000000000000);so(f,"engagedview",Math.max(1,y.ZL*1E3),0x8000000000000);if(!y.isLivePlayback){var A=y.lengthSeconds*1E3;WZ(y)&&f.api.C("html5_shorts_gapless_ads_duration_fix")&&(A=f.api.getProgressState().seekableEnd*1E3-y.Xe);so(f,"videoplaytime25",A*.25,A);so(f,"videoplaytime50",A*.5,A);so(f,"videoplaytime75",A*.75,A);so(f,"videoplaytime100",A,0x8000000000000);so(f,"conversionview",A,0x8000000000000); so(f,"videoplaybackstart",1,A);so(f,"videoplayback2s",2E3,A);so(f,"videoplayback10s",1E4,A)}}); this.events.N(this.api,g.Vx("appad"),this.X);this.events.N(this.api,g.Cd("appad"),this.X)}; ONJ=function(R,l,y){if(!(y in l))return!1;l=l[y];Array.isArray(l)||(l=[l]);l=g.u(l);for(y=l.next();!y.done;y=l.next()){y=y.value;var f={CPN:R.api.getVideoData().clientPlaybackNonce};y=g.TS(y,f);f=void 0;f=f===void 0?!1:f;(f=Ub(SN(y,En7),y,f,"Active View 3rd Party Integration URL"))||(f=void 0,f=f===void 0?!1:f,f=Ub(SN(y,Wlk),y,f,"Google/YouTube Brand Lift URL"));f||(f=void 0,f=f===void 0?!1:f,f=Ub(SN(y,Ll7),y,f,"Nielsen OCR URL"));g.xS(y,void 0,f)}return!0}; HV=function(R,l){iNj(R,l).then(function(y){g.xS(l,void 0,void 0,y)})}; nx=function(R,l){l.forEach(function(y){HV(R,y)})}; iNj=function(R,l){return g.Eb(R.api.U())&&s1(l)&&aw(l)?g.OS(R.api.U(),g.MD(R.api.getVideoData())).then(function(y){var f;y&&(f={Authorization:"Bearer "+y});return f},void 0):rg()}; PLq=function(R){GW.call(this,R);this.events=new g.QW(R);g.U(this,this.events);this.events.N(R,"videoready",function(l){if(R.getPresentingPlayerType()===1){var y,f,A={playerDebugData:{pmlSignal:!!((y=l.getPlayerResponse())==null?0:(f=y.adPlacements)==null?0:f.some(function(K){var G;return K==null?void 0:(G=K.adPlacementRenderer)==null?void 0:G.renderer})), contentCpn:l.clientPlaybackNonce}};g.sE("adsClientStateChange",A)}})}; mN=function(R){g.Z.call(this,{T:"button",QL:["ytp-button","ytp-autonav-toggle"],K:{title:"{{title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},S:[{T:"div",j:"ytp-autonav-toggle-button-container",S:[{T:"div",j:"ytp-autonav-toggle-button",K:{"aria-checked":"true"}}]}]});this.G=R;this.X=[];this.Z=!1;this.isChecked=!0;R.createClientVe(this.element,this,113681);this.N(R,"presentingplayerstatechange",this.nD);this.listen("click",this.onClick);this.G.U().C("web_player_autonav_toggle_always_listen")&& ufQ(this);vd(R,this.element,this);this.nD()}; ufQ=function(R){R.X.push(R.N(R.G,"videodatachange",R.nD));R.X.push(R.N(R.G,"videoplayerreset",R.nD));R.X.push(R.N(R.G,"onPlaylistUpdate",R.nD));R.X.push(R.N(R.G,"autonavchange",R.Q1))}; Flj=function(R){R.isChecked=R.isChecked;R.pX("ytp-autonav-toggle-button").setAttribute("aria-checked",String(R.isChecked));var l=R.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";R.updateValue("title",l);R.updateValue("label",l);R.G.mW()}; Q0s=function(R){return R.G.U().C("web_player_autonav_use_server_provided_state")&&nC(R.mL())}; $6Z=function(R){GW.call(this,R);var l=this;this.events=new g.QW(R);g.U(this,this.events);this.events.N(R,"standardControlsInitialized",function(){var y=new mN(R);g.U(l,y);R.UR(y,"RIGHT_CONTROLS_LEFT")})}; ox=function(R,l){g.yu.call(this,g.fx({role:"menuitemcheckbox","aria-checked":"false"}),l,R,{T:"div",j:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; hs=function(R,l){R.checked=l;R.element.setAttribute("aria-checked",String(R.checked))}; ekk=function(R){var l=!R.U().c6&&R.getPresentingPlayerType()!==3;return R.isFullscreen()||l}; g.cV=function(R,l,y,f){var A=R.currentTarget;if((y===void 0||!y)&&g.Fs(R))return R.preventDefault(),!0;l.pauseVideo();R=A.getAttribute("href");g.jE(R,f,!0);return!1}; g.Eo=function(R,l,y){if(aG(l.U())&&l.getPresentingPlayerType()!==2){if(g.Fs(y))return l.isFullscreen()&&!l.U().externalFullscreen&&l.toggleFullscreen(),y.preventDefault(),!0}else{var f=g.Fs(y);f&&l.pauseVideo();g.jE(R,void 0,!0);f&&(g.ki(R),y.preventDefault())}return!1}; bNJ=function(R){R=WV.includes("es-419")?R.C("delhi_modern_web_player_icons")?Li():{T:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{T:"path",wm:!0,K:{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"}}]}:R.C("delhi_modern_web_player_icons")?xtQ():{T:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{T:"path",wm:!0,K:{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"}}]};R.j="ytp-subtitles-button-icon"; return R}; X5Z=function(R){return WV.includes("es-419")?R?Li():{T:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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"}}]}:R?{T:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},S:[{T:"path",K:{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"}}]}:{T:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; Lx=function(){return{T:"div",j:"ytp-spinner-container",S:[{T:"div",j:"ytp-spinner-rotator",S:[{T:"div",j:"ytp-spinner-left",S:[{T:"div",j:"ytp-spinner-circle"}]},{T:"div",j:"ytp-spinner-right",S:[{T:"div",j:"ytp-spinner-circle"}]}]}]}}; Oo=function(R){if(document.createRange){var l=document.createRange();l&&(l.selectNodeContents(R),R=window.getSelection())&&(R.removeAllRanges(),R.addRange(l))}}; ul=function(R){var l=R.C("web_player_use_cinematic_label_2")?"Modo ambiente":"Iluminaci\u00f3n cinematogr\u00e1fica";ox.call(this,l,g.il.vW);var y=this;this.G=R;this.Z=!1;this.X=new g.Vg(function(){g.G8(y.element,"ytp-menuitem-highlighted")},0); this.Te=R.Ju();R=R.C("delhi_modern_web_player_icons")?{T:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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"}}]}:{T:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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(R);this.subscribe("select",this.L,this);this.listen(PV,this.Y);g.U(this,this.X)}; FU=function(R){GW.call(this,R);var l=this;this.Z=!1;R.addEventListener("settingsMenuInitialized",function(){TZ9(l)}); R.addEventListener("highlightSettingsMenu",function(y){TZ9(l);var f=l.menuItem;y==="menu_item_cinematic_lighting"&&(g.AU(f.element,"ytp-menuitem-highlighted"),g.AU(f.element,"ytp-menuitem-highlight-transition-enabled"),f.X.start())}); EW(R,"updateCinematicSettings",function(y){l.updateCinematicSettings(y)})}; TZ9=function(R){R.menuItem||(R.menuItem=new ul(R.api),g.U(R,R.menuItem),R.menuItem.oE(R.Z))}; d6q=function(R){GW.call(this,R);var l=this;this.events=new g.QW(R);g.U(this,this.events);this.events.N(R,"applicationvideodatachange",function(y,f){f=f.clipConfig;y==="dataloaded"&&f&&f.startTimeMs!=null&&f.endTimeMs!=null&&l.api.setLoopRange({startTimeMs:Math.floor(Number(f.startTimeMs)),endTimeMs:Math.floor(Number(f.endTimeMs)),postId:f.postId,type:"clips"})})}; Qu=function(R){GW.call(this,R);this.events=new g.QW(R);g.U(this,this.events);EW(R,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));EW(R,"setCreatorEndscreenHideButton",this.Z.bind(this))}; $e=function(R,l,y,f){ox.call(this,"Volumen estable",g.il.QO);g.AU(this.element,"ytp-drc-menu-item");this.Te=R.Ju();this.L=l;this.Z=y;this.hasDrcAudioTrack=f;R.addEventListener("videodatachange",this.X.bind(this));R.C("mta_drc_mutual_exclusion_removal")&&this.N(R,"onPlaybackAudioChange",this.X);l=this.Z()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());R=R.C("delhi_modern_web_player_icons")?{T:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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"}}]}:{T:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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(R);this.subscribe("select",this.Y,this);hs(this,l);this.Te.sj(this)}; eZ=function(R){GW.call(this,R);var l=this;this.events=new g.QW(R);g.U(this,this.events);R.C("html5_show_drc_toggle")&&R.addEventListener("settingsMenuInitialized",function(){l.menuItem||(l.menuItem=new $e(l.api,l.setDrcUserPreference.bind(l),l.getDrcUserPreference.bind(l),l.X.bind(l)),g.U(l,l.menuItem))}); EW(this.api,"setDrcUserPreference",function(f){l.setDrcUserPreference(f)}); EW(this.api,"getDrcUserPreference",function(){return l.getDrcUserPreference()}); EW(this.api,"hasDrcAudioTrack",function(){return l.X()}); var y;this.Z=(y=g.zI("yt-player-drc-pref"))!=null?y:1;this.updateEnvironmentData()}; bl=function(R){GW.call(this,R);var l=this;this.Z={};this.events=new g.QW(R);g.U(this,this.events);this.events.N(R,"videodatachange",function(){l.onVideoDataChange()}); this.events.N(R,g.Vx("embargo"),function(y){l.api.UU(!0);var f,A=(f=l.Z[y.id])!=null?f:[];f=g.u(A);for(A=f.next();!A.done;A=f.next()){var K=A.value;l.api.hideControls();l.api.LJ("auth",2,"This video isn't available in your current playback area",hO({embargoed:1,id:y.id,idx:y.X,start:y.start}));A=void 0;(K=(A=K.embargo)==null?void 0:A.onTrigger)&&l.api.KX("innertubeCommand",K)}})}; rk9=function(R,l){var y;return(y=l.onEnter)==null?void 0:y.some(R.X)}; vnQ=function(R,l){l=g.u(l);for(var y=l.next();!y.done;y=l.next()){y=y.value;var f=void 0,A=Number((f=y.playbackPosition)==null?void 0:f.utcTimeMillis)/1E3,K=void 0;f=A+Number((K=y.duration)==null?void 0:K.seconds);K="embargo_"+A;R.api.addUtcCueRange(K,A,f,"embargo",!1);y.onEnter&&(R.Z[K]=y.onEnter.filter(R.X))}}; XU=function(R){GW.call(this,R);var l=this;this.Z=[];this.events=new g.QW(R);g.U(this,this.events);EW(R,"addEmbedsConversionTrackingParams",function(y){l.api.U().Gn&&l.addEmbedsConversionTrackingParams(y)}); this.events.N(R,"veClickLogged",function(y){l.api.hasVe(y)&&(y=y.visualElement.getAsJspb(),y=T_(y,2),l.Z.push(y))})}; zkJ=function(R){GW.call(this,R);EW(R,"isEmbedsShortsMode",function(){return R.isEmbedsShortsMode()})}; w5s=function(R){GW.call(this,R);var l=this;this.events=new g.QW(R);g.U(this,this.events);this.events.N(R,"initialvideodatacreated",function(y){VP(gZ(),16623);l.Z=g.Py();var f=R.U().o9&&!y.HA;if(YK(y)&&f){VP(gZ(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(y.getWatchNextResponse()){var A,K=(A=y.getWatchNextResponse())==null?void 0:A.trackingParams;K&&q6(K)}if(y.getPlayerResponse()){var G;(y=(G=y.getPlayerResponse())==null?void 0:G.trackingParams)&&q6(y)}}else VP(gZ(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),y.getEmbeddedPlayerResponse()&&(G=(K=y.getEmbeddedPlayerResponse())==null?void 0:K.trackingParams)&&q6(G)}); this.events.N(R,"loadvideo",function(){VP(gZ(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:l.Z})}); this.events.N(R,"cuevideo",function(){VP(gZ(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:l.Z})}); this.events.N(R,"largeplaybuttonclicked",function(y){VP(gZ(),27240,y.visualElement)}); this.events.N(R,"playlistnextbuttonclicked",function(y){VP(gZ(),27240,y.visualElement)}); this.events.N(R,"playlistprevbuttonclicked",function(y){VP(gZ(),27240,y.visualElement)}); this.events.N(R,"playlistautonextvideo",function(){VP(gZ(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; TW=function(R,l){g.p.call(this);var y=this;this.Z=null;this.L=l;l=[];for(var f=0;f<=100;f++)l.push(f/100);l={threshold:l,trackVisibility:!0,delay:1E3};(this.X=window.IntersectionObserver?new IntersectionObserver(function(A){A=A[A.length-1];typeof A.isVisible==="undefined"?document.visibilityState==="visible"&&A.isIntersecting&&A.intersectionRatio>0?y.Z=A.intersectionRatio:document.visibilityState==="hidden"?y.Z=0:y.Z=null:y.Z=A.isVisible?A.intersectionRatio:0;typeof y.L==="function"&&y.L(y.Z)},l): null)&&this.X.observe(R)}; IDZ=function(R){GW.call(this,R);var l=this;this.events=new g.QW(R);g.U(this,this.events);this.events.N(R,"applicationInitialized",function(){x6Y(l)})}; x6Y=function(R){var l=R.api.getRootNode(),y,f=R.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((y=l.parentElement)==null?void 0:y.parentElement)||l:l;R.Z=new TW(f,function(A){A!=null&&(R.api.U().ZT=A,R.api.U().XW="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.U(R,R.Z);R.events.N(R.api,"videoStatsPingCreated",function(A){var K=R.Z;K=K.Z==null?null:Math.round(K.Z*100)/100;A.inview=K!=null?K:void 0;K=R.api.getPlayerSize();if(K.height>0&&K.width>0){K=[Math.round(K.width),Math.round(K.height)];var G=g.Bm();G>1&&K.push(G);K=K.join(":")}else K=void 0;A.size=K})}; NZc=function(R){var l;return((l=((R==null?void 0:R.messageRenderers)||[]).find(function(y){return!!y.timeCounterRenderer}))==null?void 0:l.timeCounterRenderer)||null}; dV=function(R){g.Z.call(this,{T:"div",QL:["ytp-player-content","ytp-iv-player-content"],S:[{T:"div",j:"ytp-free-preview-countdown-timer",S:[{T:"span",IE:"{{label}}"},{T:"span",j:"ytp-free-preview-countdown-timer-separator",IE:"\u2022"},{T:"span",IE:"{{duration}}"}]}]});this.api=R;this.Z=null;this.L=this.X=0;this.N(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; U6r=function(R,l){R.Z||(R.X=l,R.L=(0,g.eY)(),R.Z=new g.ZF(function(){p5Y(R)},null),p5Y(R))}; p5Y=function(R){var l=Math,y=l.round,f=Math.min((0,g.eY)()-R.L,R.X);l=y.call(l,(R.X-f)/1E3);R.updateValue("duration",U$({seconds:l}));l<=0&&R.Z?R.stopTimer():R.Z&&R.Z.start()}; S$Z=function(R){GW.call(this,R);var l=this;this.events=new g.QW(R);g.U(this,this.events);this.events.N(R,"basechromeinitialized",function(){l.Z=new dV(R);g.U(l,l.Z);g.kT(R,l.Z.element,4);l.Z.hide()})}; rV=function(R){g.Z.call(this,{T:"button",QL:["ytp-fullerscreen-edu-button","ytp-button"],S:[{T:"div",QL:["ytp-fullerscreen-edu-text"],IE:"Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"},{T:"div",QL:["ytp-fullerscreen-edu-chevron"],S:[{T:"svg",K:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{T:"path",K:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],K:{"data-priority":"2"}});this.VL=R;this.fade=new g.MF(this,250,void 0,100);this.X=this.Z= !1;R.createClientVe(this.element,this,61214);g.U(this,this.fade);this.N(R,"fullscreentoggled",this.oE);this.N(R,"presentingplayerstatechange",this.oE);this.listen("click",this.onClick);this.oE()}; vV=function(R){GW.call(this,R);var l=this;this.events=new g.QW(R);g.U(this,this.events);EW(this.api,"updateFullerscreenEduButtonSubtleModeState",function(f){l.updateFullerscreenEduButtonSubtleModeState(f)}); EW(this.api,"updateFullerscreenEduButtonVisibility",function(f){l.updateFullerscreenEduButtonVisibility(f)}); var y=R.U();R.C("external_fullscreen_with_edu")&&y.externalFullscreen&&aG(y)&&y.controlsType==="1"&&this.events.N(R,"standardControlsInitialized",function(){l.Z=new rV(R);g.U(l,l.Z);R.UR(l.Z)})}; j0j=function(R){g.Z.call(this,{T:"div",j:"ytp-gated-actions-overlay",S:[{T:"div",j:"ytp-gated-actions-overlay-background",S:[{T:"div",j:"ytp-gated-actions-overlay-background-overlay"}]},{T:"button",QL:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],K:{"aria-label":"Cerrar"},S:[g.WB()]},{T:"div",j:"ytp-gated-actions-overlay-bar",S:[{T:"div",j:"ytp-gated-actions-overlay-text-container",S:[{T:"div",j:"ytp-gated-actions-overlay-title",IE:"{{title}}"},{T:"div",j:"ytp-gated-actions-overlay-subtitle", IE:"{{subtitle}}"}]},{T:"div",j:"ytp-gated-actions-overlay-button-container"}]}]});var l=this;this.api=R;this.background=this.pX("ytp-gated-actions-overlay-background");this.X=this.pX("ytp-gated-actions-overlay-button-container");this.Z=[];this.N(this.pX("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){l.api.KX("onCloseMiniplayer")}); this.hide()}; D6j=function(R,l){var y=0;y=0;for(var f={};y A&&(A=B.width,K="url("+B.url+")")}y.background.style.backgroundImage=K;D6j(y,f.actionButtons||[]);y.show()}else y.hide()}); g.kT(this.api,this.Z.element,4)}; zW=function(R){GW.call(this,R);var l=this;LM(this.api,"getSphericalProperties",function(){return l.getSphericalProperties()}); LM(this.api,"setSphericalProperties",function(){l.setSphericalProperties.apply(l,g.ci(g.SJ.apply(0,arguments)))}); Wd(this.api,"getSphericalProperties",function(){return l.api.getPresentingPlayerType()===2?{}:l.getSphericalProperties()}); Wd(this.api,"setSphericalProperties",function(){var y=g.SJ.apply(0,arguments);l.api.getPresentingPlayerType()!==2&&l.setSphericalProperties.apply(l,g.ci(y))})}; wV=function(R){GW.call(this,R);EW(R,"createClientVe",this.createClientVe.bind(this));EW(R,"createServerVe",this.createServerVe.bind(this));EW(R,"destroyVe",this.destroyVe.bind(this));EW(R,"hasVe",this.hasVe.bind(this));EW(R,"logClick",this.logClick.bind(this));EW(R,"logVisibility",this.logVisibility.bind(this));EW(R,"setTrackingParams",this.setTrackingParams.bind(this))}; xe=function(R,l,y,f){function A(G){var B=!(G.status!==204&&G.status!==200&&!G.response),H;G={succ:""+ +B,rc:G.status,lb:((H=G.response)==null?void 0:H.byteLength)||0,rt:((0,g.eY)()-K).toFixed(),shost:g.n4(R),trigger:l};Jkr(G,R);y&&y(G);f&&!B&&f(new g.c9("pathprobe.net",G))} var K=(0,g.eY)();g.Qt(R,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:A,onTimeout:A})}; Jkr=function(R,l){var y;((y=window.performance)==null?0:y.getEntriesByName)&&(l=performance.getEntriesByName(l))&&l.length&&(l=l[0],R.pedns=(l.domainLookupEnd-l.startTime).toFixed(),R.pecon=(l.connectEnd-l.domainLookupEnd).toFixed(),R.perqs=(l.requestStart-l.connectEnd).toFixed(),gni&&(R.perqsa=l.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; V9c=function(R){gni=R}; Ix=function(R,l){this.Gr=R;this.policy=l;this.playbackRate=1}; CLo=function(R,l){var y=Math.min(2.5,vn(R.Gr));R=Nk(R);return l-y*R}; px=function(R,l,y,f,A){A=A===void 0?!1:A;if(R.policy.mC)return Math.ceil(R.policy.mC*l);R.policy.rk&&(f=Math.abs(f));f/=R.playbackRate;var K=1/xh(R.Gr);y=Math.max(.9*(f-3),vn(R.Gr)+R.Gr.X.Z*K)/K*.8/(l+y);y=Math.min(y,f);R.policy.kz>0&&A&&(y=Math.max(y,R.policy.kz));return q$7(R,y,l)}; q$7=function(R,l,y){return Math.ceil(Math.max(Math.max(R.policy.m8,R.policy.MF*y),Math.min(Math.min(R.policy.v1,31*y),Math.ceil(l*y))))||R.policy.m8}; t9Z=function(R,l,y){y=px(R,l.Z.info.r7,y.Z.info.r7,0);var f=vn(R.Gr)+y/xh(R.Gr);return Math.max(f,f+R.policy.Al-y/l.Z.info.r7)}; Nk=function(R){return xh(R.Gr,!R.policy.lV,R.policy.OH)}; Uo=function(R){return Nk(R)/R.playbackRate}; SZ=function(R,l,y){var f=R.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],A=R.policy.playbackStartPolicy.startMinReadaheadPolicy||[];R=Infinity;l=g.u(l&&f.length>0?f:A);for(f=l.next();!f.done;f=l.next())f=f.value,A=f.minReadaheadMs||0,y<(f.minBandwidthBytesPerSec||0)||R>A&&(R=A);return R0&&(this.X=y.Fw)}; RgJ=function(R,l,y,f,A){if(!f.info.J){if(y.length===0)y.push(f);else{var K;(R=(K=y.pop())==null?void 0:g.PC(K,f))?y.push(R):y.push(f)}return A}var G;(y=(G=y.pop())==null?void 0:g.PC(G,f))||(y=f);if(y.info.X)return R.logger&&R.logger({incompleteSegment:y.info.YG()}),A;f=R.xK(y);A=f.eS;f={clipId:f.clipId,formatId:f.formatId,startTimeMs:f.startTimeMs,durationMs:f.mq,kh:A,Mj:A};A=Y$r(l,f.startTimeMs);if(K=y=A>=0?l[A]:null){K=f;var B=A;G=y.startTimeMs+y.durationMs;var H=K.startTimeMs+K.durationMs;if(K.startTimeMs- G>R.X)K=!1;else if(M9T(R,y.formatId,K.formatId))y.durationMs=Math.max(G,H)-y.startTimeMs,y.Mj=Math.max(y.Mj,K.Mj),K=!0;else if(Math.abs(y.startTimeMs-K.startTimeMs)<=R.X)if(y.durationMs>K.durationMs+R.X){var n=y.formatId,m=y.kh;B=y.Mj;y.formatId=K.formatId;y.durationMs=K.durationMs;y.kh=K.kh;y.Mj=K.Mj;K.formatId=n;K.startTimeMs=H;K.durationMs=G-H;K.kh=m;K.Mj=B;K=!1}else y.formatId=K.formatId,K=!0;else G>K.startTimeMs&&(G>H&&(l.splice(B+1,0,{formatId:y.formatId,startTimeMs:H,durationMs:G-H,kh:K.Mj+ 1,Mj:y.Mj}),R.logger&&R.logger({splitOldStart:(n=y.startTimeMs)==null?void 0:n.toFixed(3),splitOldEnd:G==null?void 0:G.toFixed(3),splitNewStart:(m=K.startTimeMs)==null?void 0:m.toFixed(3),splitNewEnd:H==null?void 0:H.toFixed(3)})),y.durationMs=K.startTimeMs-y.startTimeMs,y.Mj=K.kh-1),K=!1}K?f=y:(A+=1,l.splice(A,0,f));n=0;for(m=A+1;m=H+y.X?y=!0:B+y.X=0?R:-R-2}; lp7=function(R,l){if(R.Fo){var y=R.Fo.uj();if(y.length!==0){if(R.L&&l){var f=R.L,A=f.info.Y;!Y5(y,A)&&f.info.V>0&&(0,g.eY)()-R.D<5E3&&(R.logger&&R.logger({dend:f.info.YG()}),y=zdJ(y,A,A+.01))}R.policy.aU&&R.logger&&R.logger({cbri:""+R.Z});f=[];for(var K=A=0;A=G){var m=Object.assign({},R.qx[K]),h=R.nX.L.get(ZH(R.qx[K].formatId)),c=Math.max(H,G);G=h.index.TL(c+R.X/ 1E3);H=h.index.getStartTime(G);var E=G+ +(Math.abs(H-c)>R.X/1E3);c=E+R.Y;E=h.index.getStartTime(E)*1E3;K!==R.Z||l?(m.kh=c,m.startTimeMs=E):(R.logger&&R.logger({pEvict:"1",og:m.startTimeMs,adj:H*1E3}),m.kh=G+R.Y,m.startTimeMs=H*1E3);G=void 0;H=((G=R.L)==null?void 0:G.info.duration)||11;K===R.Z&&BR.X/1E3);G=H+R.Y;h=h.index.Kn(H)*1E3;m.Mj=G;m.durationMs=h-m.startTimeMs;m.kh<=m.Mj&&f.push(m)}n=0&&gV(R.audioTrack,R.Z)>=0&&K?((R.videoTrack.J||R.audioTrack.J)&&R.loader.T4("iterativeSeeking",{status:"done",count:R.seekCount}),R.videoTrack.J=!1,R.audioTrack.J=!1):f&&g.FC(function(){if(R.X||!R.policy.ZL)qk(R);else{var G=l.startTime,B=l.duration;if(!R.policy.J){var H=y?R.videoTrack.J:R.audioTrack.J,n=R.videoTrack.D!==-1&&R.audioTrack.D!==-1,m=R.Z>=G&&R.Z432E3&&Iur(R.nX);R.L&&(A=R.L,R.L=0);g.FC(function(){R.policy.J||ts(R,A,102)}); R.loader.T4("initManifestlessSync",{st:A,ost:A+R.loader.fA(),a:R.audioTrack.D,v:R.videoTrack.D});R.Y&&(R.Y.resolve(A+.1),R.Y=null);R.policy.J&&ts(R,A,102)}}}; RB=function(R,l){var y=this;this.Ge=R;this.requestNumber=++hgs;this.Z=this.now();this.W=this.B=NaN;this.V=this.Z;this.L=this.vZ=this.J=0;this.D=this.Z;this.uQ=this.Yb=this.P1=this.tF=this.OF=this.Dq=this.X=this.Y=0;this.LX=this.isActive=!1;this.sF=this.B1=0;this.yu={hrb:function(){return y.Q3}}; this.Gr=l.Gr;this.snapshot=nPJ(this.Gr);this.policy=this.Gr.X;this.hI=!!l.hI;this.Wi=l.Wi;this.WQ=l.WQ||0;this.yK=l.yK||0;l.DI&&(this.sL=new FY);var f;this.Q3=(f=l.Q3)!=null?f:!1;this.hI||sTT(this.Gr)}; cNT=function(R){R.P1=Math.max(R.P1,R.J-R.OF);R.Yb=Math.max(R.Yb,R.V-R.tF);R.Dq=0}; lX=function(R,l,y){B5s(R.Gr,l);R.sL&&(R.sL.add(Math.ceil(l)-Math.ceil(R.V)),R.sL.add(Math.max(0,Math.ceil(y/1024)-Math.ceil(R.J/1024))));var f=l-R.V,A=y-R.J;R.vZ=A;R.uQ=Math.max(R.uQ,A/(f+.01)*1E3);R.V=l;R.J=y;R.Dq&&y>R.Dq&&cNT(R)}; ym=function(R,l){R.url=l;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; f2=function(R,l){RB.call(this,R,l);this.ZL=this.nA=!1;this.CX=this.xb=Infinity;this.v1=NaN;this.LA=!1;this.W1=NaN;this.ol=this.jS=this.UL=0;this.Ia=l.Ia||1;this.Aq=l.Aq||this.Ia;this.d3=l.d3;this.eS=l.eS;this.GL=l.GL;EMQ(this);this.T6(this.Z);this.iQ=(this.W1-this.Z)/1E3}; Wcq=function(R){var l=R.jS||R.UL;return l?R.snapshot.delay+Math.min(R.yK,(R.W-R.B)/1E3)+l:R.iQ}; AE=function(R,l,y){if(!R.hI){l=Math.max(l,.01);var f=R.WQ?Math.max(l,y/R.WQ):l,A=R.Gr.X.L;A&&(f=l,R.WQ&&(f=Math.max(l,y/R.WQ*A)));TO(R.Gr,l,y,f)}}; Lck=function(R){return(R.D-R.Z)/1E3}; EMQ=function(R){R.v1=R.Z+R.snapshot.delay*1E3;R.LA=!1}; K2=function(R,l){if(R.d3&&R.eS!==void 0&&R.GL!==void 0){var y=Math,f=y.min,A=R.xb;var K=R.d3;var G=R.Z;if(OA9(K,R.eS))K=l;else{var B=0;K.GU&&(B=.2);K=G+(K.yK+B)*1E3}R.xb=f.call(y,A,K);y=Math;f=y.min;A=R.CX;K=R.d3;G=R.Z;B=iAY(K,R.eS,R.GL);B!==2&&(l=B?l:G+K.yK*1E3,K.GU&&(l+=K.yK*1E3));R.CX=f.call(y,A,l);R.xb<=R.Z?EMQ(R):(R.v1=R.xb,R.LA=!0)}}; PS7=function(R,l){if(l+1<=R.totalLength){var y=m0(R,l);y=y<128?1:y<192?2:y<224?3:y<240?4:5}else y=0;if(y<1||!(l+y<=R.totalLength))return[-1,l];if(y===1)R=m0(R,l++);else if(y===2)y=m0(R,l++),R=m0(R,l++),R=(y&63)+64*R;else if(y===3){y=m0(R,l++);var f=m0(R,l++);R=m0(R,l++);R=(y&31)+32*(f+256*R)}else if(y===4){y=m0(R,l++);f=m0(R,l++);var A=m0(R,l++);R=m0(R,l++);R=(y&15)+16*(f+256*(A+256*R))}else y=l+1,R.focus(y),BO(R,y,4)?R=pvo(R).getUint32(y-R.L,!0):(f=m0(R,y+2)+256*m0(R,y+3),R=m0(R,y)+256*(m0(R,y+1)+ 256*f)),l+=5;return[R,l]}; G6=function(R){this.Ge=R;this.Z=new Kn}; aB=function(R,l){this.info=R;this.callback=l;this.state=1;this.OQ=this.Vk=!1;this.XJ=null}; uqk=function(R){return g.OJ(R.info.SS,function(l){return l.type===3})}; si=function(R,l,y,f){var A=this;f=f===void 0?{}:f;this.policy=l;this.Ge=y;this.status=0;this.Z=new Kn;this.X=0;this.Fx=this.Y=this.L=!1;this.xhr=new XMLHttpRequest;this.xhr.open(f.method||"GET",R);if(f.headers)for(R=f.headers,l=g.u(Object.keys(R)),y=l.next();!y.done;y=l.next())y=y.value,this.xhr.setRequestHeader(y,R[y]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return A.zT()}; this.xhr.onload=function(){return A.onDone()}; this.xhr.onerror=function(){return A.onError()}; this.xhr.fetch(function(K){A.Z.append(K);A.X+=K.length;K=(0,g.eY)();A.Ge.a4(K,A.X)},function(){},f.body||null)}; FcT=function(R,l){this.X=(new TextEncoder).encode(R);this.Z=(new TextEncoder).encode(l)}; FVJ=function(R,l){var y;return g.w(function(f){if(!l)return f.return(l);y=new g.nH(R.X);return f.return(y.encrypt(l,R.Z))})}; XpZ=function(R,l){var y;return g.w(function(f){if(f.X==1){if(!l)return f.return(l);y=new g.nH(R.X);return g.v(f,y.decrypt(l,R.Z),2)}return f.return(f.Z)})}; $Qj=function(R,l){var y=this;this.Z=R;this.Ge=l;this.loaded=this.status=0;this.error="";R=VF(this.Z.get("range")||"");if(!R)throw Error("bad range");this.range=R;this.X=new Kn;Qeo(this).then(function(){y.Ge.q5()},function(f){y.error=""+f||"unknown_err"; y.Ge.q5()})}; Qeo=function(R){var l,y,f,A,K,G,B,H,n,m,h,c,E,W,Q;return g.w(function(e){if(e.X==1){R.status=200;l=R.Z.get("docid");y=Ts(R.Z.get("fmtid")||"");f=R.Z.get("lmt")||"0";A=+(R.Z.get("csz")||0);if(!l||!y||!A)throw Error("Invalid local URL");R.Z.get("ck")&&R.Z.get("civ")&&(K=new FcT(R.Z.get("ck"),R.Z.get("civ")));G=R.range;B=Math.floor(G.start/A);H=Math.floor(G.end/A);n=B}if(e.X!=5)return n<=H?g.v(e,Tbo(l,y,f,n,K),5):e.bQ(0);m=e.Z;if(m===void 0)throw Error("invariant: data is undefined");h=n*A;c=(n+1)*A; E=Math.max(0,G.start-h);W=Math.min(G.end+1,c)-(E+h);Q=new Uint8Array(m.buffer,E,W);R.X.append(Q);R.loaded+=W;R.loaded=400?(R.lastError="net.badstatus",!0):(A===void 0?0:A)?(R.lastError="ump.spsrejectfailure",!0):y||f!==void 0&&f?!1:(R.lastError=l===204?"net.nocontent":"net.connect",!0)}; WQ=function(R,l){if(R.policy.Oo)return!1;var y=l.getResponseHeader("content-type"),f=l.Z8();R=!f||f<=R.policy.GK;return(!l.rT()||!y||y.indexOf("text/plain")!==-1)&&R}; wqj=function(R,l){var y="";l=l.wU();l.totalLength<=R.policy.GK&&(y=zg7(R,HO(l)));return y}; zg7=function(R,l){var y=hx(l);return jN(y)?(R.logger.debug(function(){return"Redirecting to "+y}),y):""}; oB=function(R){return pe(R.L,Zp(R.LS.Kw))}; xQY=function(R){var l=R.timing.DS();l.shost=Zp(R.LS.Kw);return l}; Ipr=function(R,l){return(R==null?void 0:R.maxWidth)>(l==null?void 0:l.maxWidth)||(R==null?void 0:R.maxHeight)>(l==null?void 0:l.maxHeight)}; NMJ=function(R,l){for(var y=g.u(l.keys()),f=y.next();!f.done;f=y.next())if(f=l.get(f.value),f.length!==0){g.gO(f,function(B,H){return H.maxFramerate-B.maxFramerate}); for(var A=[f[0]],K=0,G=1;GR.Z||y.push(f)}return y}; L2=function(R,l,y){var f=SAK[R]||[];y.C("html5_shorts_onesie_mismatched_fix")&&(f=jej[R]||[]);l.push.apply(l,g.ci(f));y.C("html5_early_media_for_drm")&&l.push.apply(l,g.ci(kkY[R]||[]))}; CS9=function(R,l){var y=g.up(R),f=R.U(),A=f.J;f=f.C("html5_shorts_onesie_mismatched_fix");var K=R.VU();if(f){if(!A.X){if(K&&Oi)return Oi;if(iX)return iX}}else if(iX&&!A.X)return iX;var G=[],B=[],H={},n=PQ.concat(DQQ);f&&(n=PQ.concat(ZAZ));R.C("html5_early_media_for_drm")&&(n=n.concat(JNj),R.C("allow_vp9_1080p_mq_enc")&&n.push(gMj));var m=[].concat(g.ci(V2j));R.C("html5_iamf_audio_onesie_fmt")&&m.push(["773"]);n=g.u(n);for(var h=n.next();!h.done;h=n.next()){var c=!1;h=g.u(h.value);for(var E=h.next();!E.done;E= h.next()){E=E.value;var W=Pm(E,K&&f);if(W&&W.video&&!(Iz(W)&&!y.xb&&W.video.qualityOrdinal>y.Dy)){var Q=g.yx(R.U().experiments,"html5_drm_byterate_soft_cap");Q>0&&res(W)&&W.r7>Q||(c?(G.push(E),L2(E,G,R)):(W=wM(y,W,A),W===!0?(c=!0,G.push(E),L2(E,G,R)):H[E]=W))}}}m=g.u(m);for(n=m.next();!n.done;n=m.next())for(n=g.u(n.value),c=n.next();!c.done;c=n.next())if(c=c.value,(h=wf7(c))&&h.audio&&(R.C("html5_onesie_51_audio")||!Nw(h)&&!po(h)))if(h=wM(y,h,A),h===!0){B.push(c);L2(c,B,R);break}else H[c]=h;if(!R.C("html5_enable_audio_quality_setting"))for(R= g.u(["141","774"]),m=R.next();!m.done;m=R.next())m=m.value,B.includes(m)&&(g.bA(B,m),H[m]="blkhqa");y.X&&l("orfmts",H);if(f)return A.X&&(A.X=!1,Oi=iX=void 0),K?Oi={video:G,audio:B}:iX={video:G,audio:B};iX={video:G,audio:B};A.X=!1;return iX}; g.YAK=function(R,l,y){var f=y.J,A=[],K=[],G=y.C("html5_shorts_onesie_mismatched_fix");R=R.VU();var B=PQ.concat(DQQ);G&&(B=PQ.concat(ZAZ));y.C("html5_early_media_for_drm")&&(B=B.concat(JNj),y.C("allow_vp9_1080p_mq_enc")&&B.push(gMj));var H=[].concat(g.ci(V2j));y.C("html5_iamf_audio_onesie_fmt")&&H.push(["773"]);B=g.u(B);for(var n=B.next();!n.done;n=B.next()){n=g.u(n.value);for(var m=n.next();!m.done;m=n.next()){m=m.value;var h=Pm(m,R&&G);if(h&&h.video){var c=g.yx(y.experiments,"html5_drm_byterate_soft_cap"); if(!(c>0&&res(h)&&h.r7>c)&&wM(l,h,f)===!0){A.push({videoCodec:qAk[ry[m]],maxWidth:h.video.width,maxHeight:h.video.height,maxFramerate:h.video.fps});break}}}}G=g.u(H);for(R=G.next();!R.done;R=G.next())for(R=g.u(R.value),H=R.next();!H.done;H=R.next())if(H=H.value,(B=wf7(H))&&B.audio&&(y.C("html5_onesie_51_audio")||!Nw(B)&&!po(B))&&wM(l,B,f)===!0){K.push({audioCodec:t2Z[ry[H]],numChannels:B.audio.numChannels});break}return{videoFormatCapabilities:A,audioFormatCapabilities:K}}; FK=function(R){var l={},y=R.Xx,f=R.yL,A=y.getVideoData(),K=KA(0),G=y.getVisibilityState();if(f.C("html5_enable_audio_quality_setting")){var B=g.yx(f.experiments,"html5_default_audio_quality_setting_lr"),H;l.rX=(H=M2s[B])!=null?H:0}K&&(l.zQ=K,l.lastManualDirection=Cbk(),K=V1J()||0,K>0&&(K=(f.C("html5_use_date_now_for_local_storage")?Date.now():(0,g.eY)())-K,f.C("html5_use_date_now_for_local_storage")?K>0&&(l.timeSinceLastManualFormatSelectionMs=K):l.timeSinceLastManualFormatSelectionMs=K));K=f.C("html5_use_streamer_bandwidth_for_low_latency_live")&& A.isLowLatencyLiveStream;if(f.schedule.LX&&!K){var n;K=f.C("html5_disable_bandwidth_cofactors_for_sabr_live")?!((n=R.k6)==null||!n.lV):!1;l.wX=xh(f.schedule,!K)}n=g.bz.medium;K=Math.floor(n*16/9);(B=A.VU())||(A.Z&&A.L&&A.L.videoInfos.length!==0?(B=A.L.videoInfos[0],B=!!B.video&&B.video.width 0&&(l.Fn.authorizedFormats=R.authorizedFormats);R.sabrLicenseConstraint&&(l.Fn.sabrLicenseConstraint=R.sabrLicenseConstraint);if(f.C("html5_onesie_media_capabilities")||f.C("html5_enable_server_format_filter"))l.EW=3;f.C("html5_onesie_audio_only_playback")&&LC(A)&&(l.EW=1);var r;((r=R.k6)==null?0:r.Vu)&&R.Js&&(l.EW=l.EW===void 0?7:l.EW|4);m=A.TD?A.TD:g.up(A);f.C("html5_onesie_media_capabilities")&&(l.mediaCapabilities=g.YAK(A,m,f));var d;if((d=R.k6)==null?0:uX(d)){c=f.J;d=[];h=[];E=new Map;W=Array.from(c.Z.values()); W=g.u(W);for(Q=W.next();!Q.done;Q=W.next())e=Q.value,e.IT?h.push({audioCodec:t2Z[e.H1],numChannels:e.numChannels,spatialCapabilityBitmask:Rwo[e.H1]}):(r=qAk[e.H1],Q={videoCodec:r,maxWidth:e.maxWidth||0,maxHeight:e.maxHeight||0,maxFramerate:e.maxFramerate||0,is10BitSupported:e.Kj||!1},e.maxBitrateBps&&(Q.maxBitrateBps=e.maxBitrateBps,G=Pm(e.itag),n=void 0,((n=G)==null?0:n.video)&&wM(m,G,c)===!0&&(G=G.r7*8,G>Q.maxBitrateBps&&(Q.maxBitrateBps=G))),e=r+"_"+e.Kj,r=E.get(e)||[],r.push(Q),E.set(e,r));d= NMJ(d,E);c={};f.C("html5_ssff_denylist_opus_low")&&(c={itagDenylist:[249,350]});l.mediaCapabilities={videoFormatCapabilities:d,audioFormatCapabilities:h,hdrModeBitmask:3,perPlaybackAttributes:c}}var z;if((z=R.k6)==null?0:z.Z){l.Xv=m.Xv;var N;l.Dy=(N=R.k6)==null?void 0:N.Dy}f.FR&&(l.iz=f.FR);l.SL=R.j7;l.Jd=R.Jd;l.RN=R.RN;l.Bt=R.Bt;R.OP&&(l.vr$=(0,g.eY)()-R.OP);R.isPrefetch&&f.C("html5_report_prefetch_requests")&&(l.isPrefetch=!0);cn||(l.xUL=!0);z=vn(f.schedule)*1E3;z>0&&(l.PX=z);var D;((D=R.k6)==null? 0:D.UH)&&R.xf&&R.xf0?t:f.schedule.interruptions[0]||0;var C;if((C=R.k6)==null?0:C.sF)l.w9=R.w9;if(A.rk||f.ZL)l.audioTrackId=A.rk||f.ZL;if(lK(A)&&!l.audioTrackId){var Ac;a:{var Bi,ar,nk;R=(Bi=A.playerResponse)==null? void 0:(ar=Bi.playerConfig)==null?void 0:(nk=ar.compositeVideoConfig)==null?void 0:nk.sourceConfigs;var Y,Pi;Bi=(Ac=A.playerResponse)==null?void 0:(Y=Ac.playerConfig)==null?void 0:(Pi=Y.compositeVideoConfig)==null?void 0:Pi.defaultActiveSourceVideoId;if(R&&Bi)for(Ac=g.u(R),Y=Ac.next();!Y.done;Y=Ac.next())if(Y=Y.value,Y.videoId===Bi&&Y.audioTracks)for(Y=g.u(Y.audioTracks),Pi=Y.next();!Pi.done;Pi=Y.next())if(Pi=Pi.value,Pi.isDefaultForSource){Ac=Pi.id||"";break a}Ac=""}l.audioTrackId=Ac;A==null||A.T4("misstrkchg", {"default":l.audioTrackId})}if(A=XBY())l.detailedNetworkType=lHZ[A]||lHZ.other;f.C("html5_enable_voice_boost")&&(l.Zs7=f.Gu);return l}; Qm=function(R,l,y,f,A,K,G){var B={};l&&(B.KL=l);if(!R)return B;B.playbackCookie=y==null?void 0:y.playbackCookie;A&&(B.Tq=A);B.AV=[];B.Ht=[];if(G==null?0:G.size)for(l=g.u(G.values()),y=l.next();!y.done;y=l.next())B.Ht.push(y.value);if(R.sabrContextUpdates.size>0)for(l=g.u(R.sabrContextUpdates.values()),y=l.next();!y.done;y=l.next())yyj(B,y.value,f);PZ(R)&&K&&yyj(B,K,f);R.HT&&(B.mjX=R.HT);f=R.U().Z;B.clientInfo={clientName:fHT[f.c.toUpperCase()]||0};f.cbrand&&(B.clientInfo.deviceMake=f.cbrand);f.cmodel&& (B.clientInfo.deviceModel=f.cmodel);f.cver&&(B.clientInfo.clientVersion=f.cver);f.cos&&(B.clientInfo.osName=f.cos);f.cosver&&(B.clientInfo.osVersion=f.cosver);f=R.U();f.C("html5_sabr_enable_server_xtag_selection")&&f.Qb&&(B.clientInfo.hl=f.Qb);R.QW&&(B.QW=R.QW);return B}; yyj=function(R,l,y){var f=l.type||0;(y==null?0:y.has(f))?R.Ht.push(l):R.AV.push(f)}; Z$=function(R,l,y,f,A,K){var G=K===void 0?{}:K;var B=G.wZ===void 0?[]:G.wZ;var H=G.L6===void 0?!1:G.L6;var n=G.r9===void 0?0:G.r9;var m=G.poToken===void 0?"":G.poToken;var h=G.nR===void 0?void 0:G.nR;var c=G.pP===void 0?"":G.pP;var E=G.VT===void 0?0:G.VT;var W=G.P0===void 0?new Uint8Array(0):G.P0;var Q=G.aO===void 0?!1:G.aO;K=G.sO===void 0?0:G.sO;G=G.KL===void 0?void 0:G.KL;aB.call(this,l,A);var e=this;this.policy=R;this.logger=new g.WC("dash/request");this.BP=this.CM=0;this.x9=!1;this.Fr=this.qH= null;this.kc=!1;this.P0=this.VT=null;this.Pb=this.jN=!1;this.kt=null;this.sO=this.RS=0;this.Ev=!1;this.yu={vl:function(d){e.vl(d)}, ISb:function(){return e.XJ}, c99:function(d){e.XJ=d}, EoU:function(d){e.CM=d}, KH$:function(d){e.DN.lastError=d}, yk:function(){return e.xhr}}; this.timing=new f2(this,y);this.L6=H;this.VT=E;this.P0=W;this.LS=g.aZ(this.info,this.policy,f);this.LS.set("rn",this.g3().toString());this.LS.set("rbuf",(n*1E3).toFixed().toString());this.L6&&this.LS.set("smb","1");this.policy.mN&&m&&this.LS.set("pot",m);c&&this.LS.set("bbs",c);this.policy.useUmp&&!JN(this.LS.Kw)&&(this.HQ=new G6(this),this.LS.set("ump","1"),this.LS.set("srfvp","1"));if(R=this.policy.ix?this.policy.i_&&!isNaN(this.info.GL)&&this.info.GL>this.policy.qc?!1:!0:!1)l=null,this.policy.d1&& this.policy.xz?l=[1]:Q&&(l=[]),l!=null&&(this.policy.Je&&l.push(2),this.LS.set("defsel",l.join(",")));this.DN=new mX(this,this.policy,this.LS,this.info.x$,this.timing,this.logger,f,h);this.wZ=B||null;this.OQ=Ayi(this);TMr(this.DN);f=void 0;if(this.policy.gM||this.HQ||this.policy.P1)f={method:"POST"},B=(0,g.$c)([120,0]),h={},this.policy.M8&&G&&(G=Qm(void 0,G),h.VQ=G),this.policy.S0&&this.P0&&(h.videoPlaybackUstreamerConfig=this.P0),this.policy.P1&&(G=this.info.Y)&&Object.assign(h,G),Object.keys(h).length> 0?f.body=g.Cn(h,g.OA):f.body=B;if(this.VT&&this.P0){this.LS.set("iwts","1");f={method:"POST"};G={Bt:this.VT*1E3};var r;B=(r=this.info.Y)==null?void 0:r.WO;r=g.Cn({CN:G,WO:B||void 0,videoPlaybackUstreamerConfig:this.P0},g.OA);f.body=r}try{this.xhr=BQ(this.LS,this.policy.V,this.timing,R,f),this.DN.X.start(),K&&(this.bM=new g.Vg(this.w_,K,this),this.bM.start(K+(this.timing.Gr.W.hL()||0)*1E3)),this.policy.NF&&ym(this.timing,this.Jk()),this.logger.debug(function(){return"Sent, itag="+e.LS.get("itag")+ " seg="+e.info.SS[0].eS+" range="+e.LS.get("range")+" time="+Math.round(e.info.SS[0].Y)+"-"+Math.round(g.W8(e.info.SS).D)+" rtp="+(e.timing.MN()-Date.now()).toFixed(0)}),g.FC(function(){})}catch(d){KGk(this,d,!0)}}; Ayi=function(R){if(!(GL(R.info)&&R.info.Q3()&&R.policy.CJ&&R.wZ)||R.info.x$.L>=2||KA()>0||!MK9())return!1;var l=R.LS.get("aitags");if(!l)return!1;l=Ts(l).split(",");for(var y=[],f=g.u(R.wZ),A=f.next();!A.done;A=f.next())A=A.value,g.uA(l,A)&&y.push(A);if(!y.length)return!1;R.LS.set("altitags",g.bH(y.join(",")));return!0}; KGk=function(R,l,y){y=y===void 0?!1:y;g.Tw(l);R.DN.lastError="player.exception";R.errorMessage=l.name+"_"+l.message;y?g.FC(function(){cQ(R.DN)}):cQ(R.DN)}; Gxk=function(R,l){R.timing.LX=!0;R.xhr.rT()&&R.timing.Nw();if(R.policy.RV){var y;(y=R.bM)==null||y.stop()}n2(R.XJ,l,!1)}; aHJ=function(R,l){R.info=l;if(R.XJ){var y=R.XJ;l=l.SS;(l.length!==y.SS.length||l.length0){l=g.u(l.SS);for(var y=l.next();!y.done;y=l.next()){var f=void 0;R+=((f=y.value.range)==null?void 0:f.length)||0}return R}if(l.Q6.length>0)for(y=g.u(l.Q6),f=y.next();!f.done;f=y.next())R+=f.value.n8||0;return R+l.G5}; z6=function(R,l){if(dl){var y=0;R=R.n_.get(l);if(R==null||!R.N$)return 0;R=g.u(R.N$.values());for(l=R.next();!l.done;l=R.next())y+=l.value.data.totalLength;return y}return((y=R.n_.get(l))==null?void 0:y.o2.totalLength)||0}; wl=function(R,l){R=R.n_.get(l);if(dl){if(R==null||!R.Xk)return!1;l=R.N$.size>0;return R.Ta.length>0||l}return!(R==null||!R.Xk)&&!(R==null||!R.o2.totalLength)}; oHi=function(R,l){var y=R.n_.get(l),f=mOk(R,l),A=!f&&!!y.bytesReceived;if(dl){var K;if((K=R.nX)==null?0:K.QS){R=g.u(y.N$.values());for(l=R.next();!l.done;l=R.next())if(!l.value.Uv)return!1;return A}}else if(K=R.Aj(l),A&&R.Z&&K!==void 0)return K;return(A||y.bytesReceived===f)&&y.cP+z6(R,l)===y.bytesReceived}; hwY=function(R,l,y){R.n_.set(l,{o2:new Kn,cP:0,bytesReceived:0,G5:0,Mf:!1,KM:!1,Aj:!1,IT:y,fF:[],SS:[],Q6:[],Xk:!1,N$:new Map,wW:new Map,Ta:[]});R.logger.debug(function(){return"[initStream] formatId: "+l})}; cyi=function(R,l,y,f){y.SS.push.apply(y.SS,g.ci(f));if(dl){y.wW.has(l)||y.wW.set(l,[]);var A;(A=y.wW.get(l)).push.apply(A,g.ci(f))}else if(y.XJ)for(R=g.u(f),l=R.next();!l.done;l=R.next())y.XJ.SS.push(l.value);else{y.XJ=new HQ(R.k6,[].concat(g.ci(y.SS)));var K;((K=R.k6)==null?0:K.iV)&&g.U(R,y.XJ)}}; EHZ=function(R,l,y){var f,A=(f=R.nX)==null?void 0:f.L.get(l);if(!A)return[];if(y.Sb){var K;return((K=A.e0(0,y.clipId))==null?void 0:K.SS)||[]}if(A.PO()){var G=y.startMs,B=y.durationMs;f=1E3;var H;if(((H=R.k6)==null?0:H.Z)&&y.timeRange){var n;G=(n=y.timeRange.startTicks)!=null?n:-1;var m;B=(m=y.timeRange.UW)!=null?m:-1;var h;f=(h=y.timeRange.timescale)!=null?h:-1}if(y.I_<0||y.TC<0||B<0||G<0||y.n8<0||f<0)return vQ(R,l),[];R=Ce(y.I_,y.n8);l=y.CK||0;return[new ty(3,A,R,"makeSliceInfosMediaBytes",y.TC- 1,G/f,B/f,l,R.length-l,void 0,y.uE,y.clipId)]}if(y.TC<0)return vQ(R,l),[];var c;return((c=R.nX)==null?0:c.QS)?(l=A.Sv,H=l*A.info.r7,n=y.CK,((B=R.k6)==null?0:B.Dk)&&y.timeRange&&!n&&(G=y.timeRange.startTicks/y.timeRange.timescale),[new ty(3,A,void 0,"makeSliceInfosMediaBytes",y.TC,G,l,n,H,!0,y.uE,y.clipId)]):[]}; WGc=function(R,l,y){R.nX=l;R.k6=y;l=g.u(R.n_);for(y=l.next();!y.done;y=l.next()){var f=g.u(y.value);y=f.next().value;f=f.next().value;for(var A=g.u(f.fF),K=A.next();!K.done;K=A.next()){K=K.value;var G=EHZ(R,y,K);cyi(R,K.KG,f,G)}}}; xc=function(R,l,y,f){R.logger.debug(function(){return"[addStreamData] formatId: "+y+",headerId: "+l+" bytes: "+f.totalLength}); (R=R.n_.get(y))&&!R.KM&&(dl?(R.N$.has(l)||R.N$.set(l,{data:new Kn,u_:0,Uv:!1}),GJ(R.N$.get(l).data,f)):GJ(R.o2,f),R.bytesReceived+=f.totalLength,R.Mf=!0)}; rl=function(R,l){R.logger.debug(function(){return"[closeStream] formatId: "+l}); var y=R.n_.get(l);y&&!y.KM&&(y.KM=!0,y.Pf&&y.Pf(),LGK(R)&&R.Y.e$())}; LGK=function(R){R=g.u(R.n_.values());for(var l=R.next();!l.done;l=R.next())if(!l.value.KM)return!1;return!0}; Oeo=function(R){dl=R}; IB=function(R,l,y,f,A,K,G){g.p.call(this);this.policy=R;this.info=l;this.nX=y;this.Ge=A;this.logger=new g.WC("sabr");this.HQ=new G6(this);this.Lk=new XK(this);this.KJ=new T6(this);this.state=1;this.X2=!1;this.G6=0;this.clipId="";this.EN=-1;this.uu=0;this.B8=-1;this.Ev=this.er=!1;this.WF=0;this.vn=!1;this.policy.mp?this.Hl=new ea(this,K):this.Hl=new f2(this,K);this.LS=this.policy.sF?l.U0:ieo(l,this.policy,f);this.LS.set("rn",""+this.g3());this.LS.set("alr","yes");WGc(this.KJ,y,R);this.DN=new mX(this, this.policy,this.LS,l.x$,this.Hl,this.logger,f,G,this.policy.enableServerDrivenRequestCancellation);TMr(this.DN);var B;if((B=this.policy)==null?0:B.iV)g.U(this,this.KJ),g.U(this,this.DN);R=l.X;l={method:"POST",body:R};R&&(this.uu=R.length);try{this.xhr=BQ(this.LS,this.policy.V,this.Hl,cn,l),this.policy.NF&&ym(this.Hl,this.Jk()),this.DN.X.start()}catch(H){g.dP(H)}}; P6s=function(R){R.policy.kL&&R.dV&&!R.vn?R.vn=!0:R.Hl.Nw()}; u3j=function(R,l){var y=-1,f=-1,A=-1,K;if((K=R.Ik)==null?0:K.items)for(R=g.u(R.Ik.items),K=R.next();!K.done;K=R.next())K=K.value,l=B,H=R.nX.isManifestless&&R.policy.zz,G){var n;if(((n=R.Z)==null?void 0:n.I2.event)==="predictStart"&&R.Z.eSR.D&&(R.D=NaN,R.V=NaN);R.Z&&R.Z.eS===l?pU9(R,l,y,R.Z,A):R.X===1&&Sa(R,5,"noad")}; UOc=function(R,l,y,f,A){f.Eh?Sa(R,4,"cue"):(R.D=l,R.V=y,R.T4("sdai",{joinad:R.X,sg:R.D,st:R.V.toFixed(3)}),R.B=Date.now(),Sa(R,2,R.X===3?"staftpred":"join"),A.Ir(f.I2))}; pU9=function(R,l,y,f,A){if(A&&f){var K=f.I2,G=A.CE(K);K.event==="predictStart"&&(R.Yb=l);R.T4("sdai",{onqevt:K.event,sq:l,mt:y,gab:G,cst:K.startSecs,cueid:R.policy.d2&&(G||K.event==="start")?K.identifier:void 0},!0);if(G)K.event!=="predictStart"?(K.event==="start"&&R.Yb===l-1&&R.T4("sdai",{gabonstart:l}),UOc(R,l,y,f,A)):R.policy.FR?Sa(R,3,"predict"):(l+=Math.max(Math.ceil(-K.Z/5E3),1),K=Math.floor(y-K.Z/1E3),R.policy.X?R.J=K:R.Y=l,R.T4("sdai",{onpred:y,estsq:l,estmt:K.toFixed(3)}),kc(R.loader,K,K, l),R.B=Date.now(),Sa(R,3,"predict"),A.Ir(f.I2));else if(R.X===1){var B;((B=R.L)==null?0:B.ZY(y))?(kc(R.loader,y,y,l),Sa(R,4,"sk2head")):Sa(R,5,"nogab")}else K.event==="predictStart"?R.policy.X&&R.J>0?(y=Math.floor(y-K.Z/1E3),R.J!==y&&R.T4("sdai",{updateSt:y,old:R.J}),R.J=y):R.Y>0&&(y=l+Math.max(Math.ceil(-K.Z/5E3),1),R.Y!==y&&(R.T4("sdai",{updateSt:y,old:R.Y}),R.Y=y)):R.policy.FR&&R.X===3&&UOc(R,l,y,f,A)}else R.T4("sdai",{nulldec:1,sq:l,mt:y.toFixed(3),evt:(f==null?void 0:(K=f.I2)==null?void 0:K.event)|| "none"})}; jXr=function(R,l,y){if(R.policy.wp&&R.policy.X)return!(R.X===1||R.X===2||!R.policy.FR&&R.X===3&&y>=R.Y);if(R.X===1||R.X===2)return!1;if(R.X!==0&&l===R.audioTrack){if(R.policy.X)return Srs(R.videoTrack,y)||Srs(R.videoTrack,y+1);R=Dm(R.videoTrack);if(y>(R?R.eS:-1))return!1}return!0}; Zm=function(R,l,y){return(y<0||y===R.D)&&!isNaN(R.V)?R.V:l}; wUQ=function(R,l){if(R.Z){var y=R.Z.I2.G9-(l.startTime+R.W-R.Z.I2.startSecs);y<=0||(y=new Gx(R.Z.I2.startSecs-(isNaN(R.W)?0:R.W),y,R.Z.I2.context,R.Z.I2.identifier,"stop",R.Z.I2.Z+l.duration*1E3),R.T4("cuepointdiscontinuity",{segNum:l.eS}),Ui(R,y,l.eS))}}; Sa=function(R,l,y){R.X!==l&&(R.T4("sdai",{setsst:l,old:R.X,r:y}),R.X=l)}; JE=function(R,l,y,f){(f===void 0?0:f)?Sa(R,1,"seek"):l>0&&Math.abs(l-y)>=5&&R.X===4&&Sa(R,5,"sk2t")}; kxZ=function(R){this.T4=R;this.Z="";this.X=new Map}; gl=function(R,l,y){this.audio=R;this.video=l;this.reason=y}; Vm=function(R,l,y){this.Z=R;this.reason=l;this.token=y;this.videoId=void 0}; C2=function(R,l,y){g.p.call(this);this.policy=R;this.Y=l;this.T4=y;this.L=new Map;this.J=0;this.D=!1;this.Z="";this.X=!1}; qv=function(R,l,y){if(y===void 0?0:y)R.D=!0;++R.J;y=6E4*Math.pow(2,R.J);y=(0,g.eY)()+y;R.L.set(l.info.id,y)}; tE=function(R){for(var l=g.u(R.L.entries()),y=l.next();!y.done;y=l.next()){var f=g.u(y.value);y=f.next().value;f=f.next().value;f<(0,g.eY)()&&R.L.delete(y)}return R.L}; DOo=function(R){return R.D&&tE(R).size>0}; Yc=function(R,l){R.Z!==l&&(R.Z=l,R.X=!0)}; ZeY=function(R,l){var y;l&&(y=g.iA(R.Y.Z,function(A){return A.id===l})); if(!y&&(y=g.iA(R.Y.Z,function(A){var K;return!((K=A.hF)==null||!K.isDefault)}),l)){var f; R.T4("iaf",{id:l,sid:(f=y)==null?void 0:f.id})}return y}; Rb=function(R,l,y,f,A,K){var G=this;K=K===void 0?[]:K;this.loader=R;this.xb=l;this.policy=y;this.nX=f;this.D=A;this.uQ=K;this.logger=new g.WC("dash/abr");this.Z=At;this.L=this.V=null;this.B=-1;this.CX=!1;this.nextVideo=this.X=null;this.Y=[];this.jS=new Set;this.P1={};this.W1=new $h(1);this.W=0;this.UL=this.Yb=this.LX=!1;this.Dq=0;this.tU=!1;this.sL=new Set;this.v1=!1;this.yu={Tx:function(){Mv(G)}}; this.J=new C2(this.policy,A,function(B,H){G.loader.T4(B,H)})}; qrY=function(R,l,y){lI(R,l);l=ZeY(R.J,y);y||l||(l=Jyo(R));l=l||R.D.Z[0];R.X=R.nX.Z[l.id];Mv(R);R.V=R.X;gHk(R);Vgo(R);R.L=R.nextVideo;R.V=R.X;return C6J(R)}; MgQ=function(R,l){if(tgZ(R,l))return null;if(l.reason==="m"&&l.isLocked())return R.logger.debug(function(){return"User sets constraint to: "+Tk(l)}),lI(R,l),R.W=R.Y.length-1,Mv(R),yp(R),R.Yb=R.Yb||R.L!==R.nextVideo,R.L=R.nextVideo,new gl(R.X,R.L,l.reason); l.reason==="r"&&(R.B=-1);lI(R,l);yp(R);if(l.reason==="r"&&R.nextVideo===R.L)return new gl(R.X,R.nextVideo,l.reason);Yrq(R);return null}; Ruk=function(R,l,y){R.X=R.nX.Z[l];R.V=R.X;return new gl(R.V,R.L,y?"t":"m")}; lVY=function(R,l){if(l.info.video){if(R.L!==l)return R.L=l,C6J(R)}else R.UL=R.V!==l,R.V=l;return null}; y1Z=function(R,l){if(l.Z.info.video&&l.J){var y=(l.X+l.L)/l.duration,f=l.Z.info.r7;y&&f&&(R.W1.tR(1,y/f),R.policy.L&&y/f>1.5&&R.loader.T4("overshoot",{sq:l.eS,br:y,max:f}))}}; fu=function(R,l,y){qv(R.J,l,y===void 0?!1:y);R.B=-1;lI(R,R.Z)}; fVQ=function(R,l){return new gl(R.V,R.L,l||R.Z.reason)}; Yrq=function(R){if(R.L&&R.nextVideo&&AY(R,R.L.info)R.policy.Dy,B=A<=R.policy.Dy?Iz(f):zC(f);if(!K||G||B)y[A]=f}return y}; lI=function(R,l){R.Z=l;var y=R.D.videoInfos;if(!R.Z.isLocked()){var f=(0,g.eY)();y=g.bs(y,function(B){if(B.r7>this.policy.r7)return!1;var H=this.nX.Z[B.id];return tE(this.J).get(B.id)>f?!1:H.x$.L>4||H.D>4?(this.logger.debug(function(){return"Remove "+gy(B)+"; 4 load failures"}),!1):this.sL.has(+B.itag)?!1:!0},R); DOo(R.J)&&(y=g.bs(y,function(B){return B.video.width<=854&&B.video.height<=480}))}y.length||(y=R.D.videoInfos); var A=y;R.policy.K8&&(A=KCK(R,A,l));A=g.bs(A,l.Y,l);if(R.Z.isLocked()&&R.J.Z){var K=g.iA(y,function(B){return B.id===R.J.Z}); K?A=[K]:Yc(R.J,"")}R.policy.K8||(A=KCK(R,A,l));A.length||(A=[y[0]]);A.sort(function(B,H){return AY(R,B)-AY(R,H)}); l={};for(y=1;yl.Yu.video.width?(g.FS(A,y),y--):AY(R,l.WG)*R.policy.W>AY(R,l.Yu)&&(g.FS(A,y-1),y--);var G=A[A.length-1];R.tU=!!R.L&&!!R.L.info&&R.L.info.H1!==G.H1;R.logger.debug(function(){return"Constraint: "+Tk(R.Z)+", "+A.length+" fmts selectable, max selectable fmt: "+gy(G)}); R.Y=A;R.jS.clear();l=!1;for(y=0;y=1080&&(l=!0);GLk(R.policy,G,R.nX.QS)}; KCK=function(R,l,y){var f=y.reason==="m"||y.reason==="s";R.policy.ll&&Ku&&g.LO&&(!f||y.Z<1080)&&(l=l.filter(function(n){return n.video&&(!n.X||n.X.powerEfficient)})); if(l.length>0)if(ao()){var A=A1K(R,l);l=l.filter(function(n){return!!n&&!!n.video&&n.H1===A[n.video.qualityOrdinal].H1})}else{var K,G,B=(K=l[0])==null?void 0:(G=K.video)==null?void 0:G.qualityOrdinal; if(B){y=l.filter(function(n){return!!n&&!!n.video&&n.video.qualityOrdinal===B}); var H=A1K(R,y)[B].H1;l=l.filter(function(n){return!!n&&!!n.video&&n.H1===H})}}return l}; aVQ=function(R,l){for(var y=0;y+1f}; Mv=function(R){if(!R.X||!R.policy.Y&&!R.X.info.hF){var l=R.D.Z;R.X&&(l=l.filter(function(f){return f.audio.Z===R.X.info.audio.Z}),l.length||(l=R.D.Z)); R.X=R.nX.Z[l[0].id];if(l.length>1&&!R.policy.UL){if(!R.policy.PR){var y=g.iA(l,function(f){return f.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); y&&(R.X=R.nX.Z[y.id])}y=!1;if(y=R.policy.f_?!0:R.Z.isLocked()?R.Z.Z<240:aVQ(R,R.X))R.X=R.nX.Z[g.W8(l).id]}}}; yp=function(R){if(!R.nextVideo||!R.policy.Y)if(R.Z.isLocked())R.nextVideo=R.Z.Z<=360?R.nX.Z[R.Y[0].id]:R.nX.Z[g.W8(R.Y).id],R.logger.debug(function(){return"Select max fmt: "+gy(R.nextVideo.info)}); else{for(var l=Math.min(R.W,R.Y.length-1),y=Uo(R.xb),f=AY(R,R.X.info),A=y/R.policy.LX-f;l>0&&!(AY(R,R.Y[l])<=A);l--);for(var K=y/R.policy.W-f;l=K);l++);R.nextVideo=R.nX.Z[R.Y[l].id];R.W!==l&&R.logger.info(function(){return"Adapt to: "+gy(R.nextVideo.info)+", bandwidth: "+y.toFixed(0)+", bandwidth to downgrade: "+A.toFixed(0)+", bandwidth to upgrade: "+K.toFixed(0)+", constraint: "+Tk(R.Z)}); R.W=l}}; gHk=function(R){var l=R.policy.LX,y=Uo(R.xb),f=y/l-AY(R,R.X.info);l=g.P8(R.Y,function(A){return AY(this,A)K?A=0:f[G]>R.buffered[G]&&(G===K-1?A=2:G===K-2&&f[G+1]>R.buffered[G+1]&&(A=3))}R.Z.add(l<<3|(y&&4)|A);l=Math.ceil(R.track.C7()*1E3);R.Z.add(l-R.J);R.J=l;if(A===1)for(R.Z.add(K),G=l=0;G=2&&R.Z.add(f[K- 1]-R.buffered[K-1]);y&&R.Z.add(y);R.buffered=f}; sf=function(R,l,y){var f=this;this.policy=R;this.Z=l;this.Dq=y;this.Y=this.X=0;this.t7=null;this.LX=new Set;this.B=[];this.indexRange=this.initRange=null;this.W=new Ee;this.Yb=this.xb=!1;this.yu={qOU:function(){return f.L}, Px$:function(){return f.chunkSize}, Jv1:function(){return f.V}, D21:function(){return f.D}}; (l=mq7(this))?(this.chunkSize=l.csz,this.L=Math.floor(l.clen/l.csz),this.V=l.ck,this.D=l.civ):(this.chunkSize=R.kp,this.L=0,this.V=g.L6(16),this.D=g.L6(16));this.J=new Uint8Array(this.chunkSize);this.V&&this.D&&(this.crypto=new FcT(this.V,this.D))}; mq7=function(R){if(R.policy.o9&&R.policy.lN)for(var l=g.u(R.policy.o9),y=l.next(),f={};!y.done;f={jj:void 0,Sj:void 0},y=l.next())if(y=g.f0(y.value),f.jj=+y.clen,f.Sj=+y.csz,f.jj>0&&f.Sj>0&&R.policy.Y===y.docid&&R.Z.info.id===y.fmtid&&R.Z.info.lastModified===+y.lmt)return R={},R.clen=f.jj,R.csz=f.Sj,R.ck=y.ck,R.civ=y.civ,R}; Bk=function(R){return!!R.t7&&R.t7.nf()}; c1r=function(R,l){if(!Bk(R)&&!R.Fx()){if(!(R.xb||(R.xb=!0,R.L>0))){var y=Hk(R);y=CU(R.policy.Y,R.Z.info,nu(R),y,R.policy.W1);mB(R,y)}if(l.info.type===1){if(R.t7){ob(R,Error("Woffle: Expect INIT slices to always start us off"));return}R.initRange=Ce(0,l.X.totalLength)}else if(l.info.type===2)R.t7&&R.t7.type===1||ob(R,Error("Woffle: Index before init")),R.indexRange=Ce(R.initRange.end+1,l.X.totalLength);else if(l.info.type===3){if(!R.t7){ob(R,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(R.t7.type===3&&!RZ(R.t7,l.info)&&(R.B=[],l.info.eS!==lh(R.t7)||l.info.X!==0))return;if(l.info.J){y=g.u(R.B);for(var f=y.next();!f.done;f=y.next())og7(R,f.value);R.B=[]}else{R.B.push(l);R.t7=l.info;return}}else{ob(R,Error("Woffle: Unexpected slice type"));return}R.t7=l.info;og7(R,l);huY(R)}}; og7=function(R,l){var y=0,f=HO(l.X);if(R.Y=f.length)return;if(y<0)throw Error("Missing data");R.Y=R.L;R.X=0}for(A={};y0){var G=f.getUint32(y+28);K+=G*16+4}var B=f.getUint32(y+K-4);try{var H=iKJ(l.subarray(y+K,y+K+B));if(H!==null){var n=H;break a}}catch(m){}}y+=A}n=null;break a}catch(m){n=null;break a}n=void 0}if(n!=null)for(l=EM(M2(n,7,void 0,z_)),l==null||R.ij||(R.cryptoPeriodIndex=l),l=EM(M2(n,10,void 0,z_)),l!=null&&l>0&& !R.ij&&(R.Z=l),n=G_(n,2,bGr,void 0===rMK?2:4),n=g.u(n),f=n.next();!f.done;f=n.next())l=R.L,y=l.push,f=Im(f.value),f=g.b4(f,4),y.call(l,f)}; uVq=function(R){return isNaN(R.cryptoPeriodIndex)?g.b4(R.initData):""+R.cryptoPeriodIndex}; Ef=function(R,l,y){var f=y===void 0?{}:y;y=f.videoDuration===void 0?0:f.videoDuration;var A=f.LP===void 0?void 0:f.LP;f=f.Rr===void 0?!1:f.Rr;this.videoId=R;this.status=l;this.videoDuration=y;this.LP=A;this.Rr=f}; FCo=function(R,l,y,f,A){this.videoId=R;this.Pm=l;this.X=y;this.bytesDownloaded=f;this.Z=A}; Wk=function(R){this.Z=R;this.offset=0}; Lu=function(R){if(R.offset>=R.Z.totalLength)throw Error();return m0(R.Z,R.offset++)}; QZZ=function(R,l){l=l===void 0?!1:l;var y=Lu(R);if(y===1){l=-1;for(y=0;y<7;y++){var f=Lu(R);l===-1&&f!==255&&(l=0);l>-1&&(l=l*256+f)}return l}f=128;for(var A=0;A<6&&f>y;A++)y=y*256+Lu(R),f*=128;return l?y:y-f}; $qJ=function(R){try{var l=QZZ(R,!0),y=QZZ(R,!1);return{id:l,size:y}}catch(f){return{id:-1,size:-1}}}; eu7=function(R){for(var l=new Wk(R),y=-1,f=0,A=0;!f||!A;){var K=$qJ(l),G=K.id;K=K.size;if(G<0)return;if(G===176){if(K!==2)return;f=l.Rt()}else if(G===186){if(K!==2)return;A=l.Rt()}G===374648427?y=l.Rt()+K:G!==408125543&&G!==174&&G!==224&&l.skip(K)}l=nn(R,0,y);y=new DataView(l.buffer);y.setUint16(f,3840);y.setUint16(A,2160);f=new Kn([l]);GJ(f,R);return f}; bKi=function(R,l,y){var f=this;this.loader=R;this.policy=l;this.J=y;this.logger=new g.WC("dash");this.X=[];this.Z=null;this.xb=-1;this.B=0;this.sL=NaN;this.LX=0;this.L=NaN;this.W=this.CX=0;this.tU=-1;this.P1=this.Y=this.D=this.Dq=null;this.W1=this.UL=NaN;this.V=this.Yb=this.jS=this.uQ=null;this.B1=!1;this.v1=this.timestampOffset=0;this.yu={s7:function(){return f.X}}; if(this.policy.Y){var A=this.J,K=this.policy.Y;this.policy.W1&&R.T4("atv",{ap:this.policy.W1});this.V=new sf(this.policy,A,function(G,B,H){Of(R,new Ef(f.policy.Y,2,{LP:new FCo(K,G,A.info,B,H)}))}); this.V.W.promise.then(function(G){f.V=null;G===1?Of(R,new Ef(f.policy.Y,G)):f.loader.T4("offlineerr",{status:G.toString()})},function(G){var B=(G.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); G instanceof hY&&!G.Z?(f.logger.info(function(){return"Assertion failed: "+B}),f.loader.T4("offlinenwerr",{em:B}),iI(f),Of(R,new Ef(f.policy.Y,4))):(f.logger.info(function(){return"Failed to write to disk: "+B}),f.loader.T4("dldbwerr",{em:B}),iI(f),Of(R,new Ef(f.policy.Y,4,{Rr:!0})))})}}; XCs=function(R){return R.X.length?R.X[0]:null}; TSY=function(R,l){return R.X.some(function(y){return y.info.eS===l})}; wCc=function(R,l,y,f){f=f===void 0?0:f;if(R.Y){var A=R.Y.X+R.Y.L;if(y.info.X>0)if(y.info.eS===R.Y.eS&&y.info.X=0&&R.Y.eS>=0&&!RZ(R.Y,y.info))throw new g.JD("improper_continuation",R.Y.YG(),y.info.YG());ioQ(R.Y,y.info)||Pk(R,"d")}else if(y.info.X>0)throw new g.JD("continuation_of_null",y.info.YG());R.Y=y.info;R.J=y.info.Z;if(y.info.X===0){if(R.Z)if(!R.loader.isOffline()||R.policy.ML)R.loader.T4("slice_not_fully_processed", {buffered:R.Z.info.YG(),push:y.info.YG()});else throw new g.JD("slice_not_fully_processed",R.Z.info.YG(),y.info.YG());uI(R);R.CX=f}else{if(R.CX&&f&&R.CX!==f)throw R=new g.JD("lmt_mismatch",y.info.eS,R.CX,f),R.level="WARNING",R;!y.info.Z.PO()&&R.D&&(f=y.info,A=R.D.EN,f.W="updateWithEmsg",f.eS=A)}if(R.Z){f=g.PC(R.Z,y);if(!f)throw new g.JD("failed_to_merge",R.Z.info.YG(),y.info.YG());R.Z=f}else R.Z=y;a:{y=g.Uu(R.Z.info.Z.info);if(R.Z.info.type!==3){if(!R.Z.info.J)break a;R.Z.info.type===6?dqk(R,l,R.Z): r1q(R,R.Z);R.Z=null}for(;R.Z;){f=R.Z.X.totalLength;if(R.xb<=0&&R.B===0){var K=R.Z.X,G=-1;A=-1;if(y){for(var B=0;B+80))break;if(h!==408125543)if(h===524531317)B=!0,m>=0&&(A=K.Rt()+m,H=!0);else{if(B&&(h===160||h===163)&&(G<0&&(G=n),H))break;h===163&&(G=Math.max(0,G),A=K.Rt()+m);if(h===160){G<0&&(A=G=K.Rt()+ m);break}K.skip(m)}}G<0&&(A=-1)}if(G<0)break;R.xb=G;R.B=A-G}if(R.xb>f)break;R.xb?(f=vgY(R,R.xb),f.J&&zuj(R,f),dqk(R,l,f),FB(R,f),R.xb=0):R.B&&(f=vgY(R,R.B<0?Infinity:R.B),R.B-=f.X.totalLength,FB(R,f))}}R.Z&&R.Z.info.J&&(FB(R,R.Z),R.Z=null)}; r1q=function(R,l){!l.info.Z.PO()&&l.info.X===0&&(g.Uu(l.info.Z.info)||l.info.Z.info.ij())&&y2T(l);if(l.info.type===1)try{zuj(R,l),xqc(R,l)}catch(A){g.Tw(A);var y=y6(l.info);y.hms="1";R.loader.handleError("fmt.unparseable",y||{},1)}y=l.info.Z;y.C4(l);R.V&&c1r(R.V,l);if(y.Gf()&&R.policy.Z)a:{R=R.loader.nX;l=l.info.clipId;y=g.jM(y.info,R.QS);if(l){var f=ZH({itag:y.itag,lmt:R.QS?0:y.lmt||0,xtags:y.xtags});if(R.tU[f])break a;R.tU[f]=l}R.UL.push(y)}}; BMi=function(R,l,y){if(R.X.length!==0&&(y||R.X.some(function(K){return K.info.Y=$x(G)+B):l=R.getDuration()>=G.getDuration(),l=!l;l&&pCT(y)&&(l=R.Dq,Qp?(B=RhQ(y),G=1/B,B=$x(R,B),l=$x(l)+G-B):l=l.getDuration()- R.getDuration(),l=1+l/y.info.duration,qzZ(g.ih(y),l))}else{G=!1;R.D||(y2T(y),y.Z&&(R.D=y.Z,G=!0,A=y.info,K=y.Z.EN,A.W="updateWithEmsg",A.eS=K,A=y.Z,A.nf&&(K=R.J.index,K.X=!A.nf,K.L="emsg"),A=y.info.Z.info,K=g.ih(y),g.Uu(A)?Le(K,1701671783):A.ij()&&eg([408125543],307544935,K)));a:if((A=Q6(y,R.policy.vZ))&&luK(y))B=Uqc(R,y),R.W+=B,A-=B,R.LX+=A,R.L=R.policy.wN?R.L+A:NaN;else{if(R.policy.Wt){if(K=H=R.loader.Jf(g.uh(y),1),R.L>=0&&y.info.type!==6){if(R.policy.wN&&isNaN(R.UL)){g.dP(new g.JD("Missing duration while processing previous chunk", y.info.YG()));R.loader.isOffline()&&!R.policy.ML||S6J(R,y,K);Pk(R,"m");break a}f=H-R.L;var n=f-R.W,m=y.info.eS,h=R.P1?R.P1.eS:-1,c=R.W1,E=R.UL,W=R.policy.TK&&f>R.policy.TK,Q=Math.abs(n)>10,e=Math.abs(R.L-K)<1E-7;if(Math.abs(n)>1E-4){R.v1+=1;var r=(B=R.D)==null?void 0:ZVc(B);B={audio:""+ +R.IT(),sq:m.toFixed(),sliceStart:H,lastSq:h.toFixed(),lastSliceStart:c,lastSliceDuration:E,totalDrift:(f*1E3).toFixed(),segDrift:(n*1E3).toFixed(),skipRewrite:""+ +(W||Q)};if(r==null?0:r.length)B.adCpn=r[0];R.loader.handleError("qoe.avsync", B);R.tU=m}W||Q||e||(K=R.L);B=Uqc(R,y,H);A-=B;R.W=f+B}}else K=isNaN(R.L)?y.info.startTime:R.L;S6J(R,y,K)&&(R.LX+=A,R.L=K+A,R.policy.YO&&R.v1>=R.policy.YO&&(R.v1=0,R.loader.L$({resetForRewrites:"count"})))}R.P1=y.info;R.UL=FV(y);y.L>=0&&(R.W1=y.L);if(G&&R.D){G=jZ9(R,!0);fK(y.info,G);R.Z&&fK(R.Z.info,G);l=g.u(l);for(B=l.next();!B.done;B=l.next())B=B.value,A=void 0,R.policy.J&&B.eS!==((A=R.D)==null?void 0:A.EN)||fK(B,G);(y.info.J||R.Z&&R.Z.info.J)&&y.info.type!==6||(R.Yb=G,R.policy.X?(l=kLr(R.D),R.loader.Nn(R.J, G,l)):(l=R.loader,l.nX.isManifestless&&Dqr(l,G,null,!!R.J.info.video)),R.policy.BA||ZKi(R))}}xqc(R,y);R.timestampOffset&&YuZ(y,R.timestampOffset)}; FB=function(R,l){if(l.info.J){R.uQ=l.info;if(R.D){var y=R.D,f=jZ9(R,!1);y=kLr(y);R.loader.Nn(R.J,f,y);R.Yb||R.policy.BA||ZKi(R);R.Yb=null}uI(R)}R.V&&c1r(R.V,l);if(f=R.ZE())if(f=g.PC(f,l,R.policy.Zw,R.policy.Qq)){R.X.pop();R.X.push(f);return}R.X.push(l)}; kLr=function(R){if(R.Eh()){var l=R.data["Stitched-Video-Id"]?R.data["Stitched-Video-Id"].split(",").slice(0,-1):[],y=ZVc(R),f=[];if(R.data["Stitched-Video-Duration-Us"])for(var A=g.u(R.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),K=A.next();!K.done;K=A.next())f.push((Number(K.value)||0)/1E6);A=[];if(R.data["Stitched-Video-Start-Frame-Index"]){K=g.u(R.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var G=K.next();!G.done;G=K.next())A.push(Number(G.value)||0)}A=[]; if(R.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(K=g.u(R.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),G=K.next();!G.done;G=K.next())A.push((Number(G.value)||0)/1E6);R=new OKk(l,y,f,A,g.JPQ(R),g.gXJ(R))}else R=null;return R}; uI=function(R){R.Z=null;R.xb=-1;R.B=0;R.D=null;R.sL=NaN;R.LX=0;R.Yb=null}; Pk=function(R,l){l={rst4disc:l,cd:R.W.toFixed(3),sq:R.P1?R.P1.eS:-1};R.L=NaN;R.W=0;R.tU=-1;R.P1=null;R.W1=NaN;R.UL=NaN;R.jS=null;R.loader.T4("mdstm",l)}; xqc=function(R,l){if(R.isDrm()){if(l.info.Z.info.ij()){var y=new i6(g.ih(l));if(u6(y,[408125543,374648427,174,28032,25152,20533,18402])){var f=$H(y,!0);y=f!==16?null:dD(y,f)}else y=null;f="webm"}else l.info.B=WCK(g.ih(l)),y=LCY(l.info.B),f="cenc";y&&y.length&&(y=new ck(y,f),R.policy.Tt&&g.Uu(l.info.Z.info)&&(f=yOi(g.ih(l)))&&(y.X=f),y.ij=l.info.Z.info.ij(),l.Z&&l.Z.cryptoPeriodIndex&&(y.cryptoPeriodIndex=l.Z.cryptoPeriodIndex),l.Z&&l.Z.X&&(y.Z=l.Z.X),R.loader.Ff(y))}}; ZKi=function(R){var l=R.D,y=kuj(l);y&&(y.startSecs+=R.sL,R.loader.sf(R.J,y,l.EN,l.Eh()))}; jZ9=function(R,l){var y,f=R.D;if(y=kuj(f))y.startSecs+=R.sL;return new qQ(f.EN,R.sL,l?f.Sv:R.LX,f.ingestionTime,"sq/"+f.EN,void 0,void 0,l,y)}; S6J=function(R,l,y){if(!tMZ(l,y))return l=y6(l.info),l.smst="1",R.loader.handleError("fmt.unparseable",l||{},1),!1;isNaN(R.sL)&&(R.sL=y);return!0}; Uqc=function(R,l,y){var f=0;if(l.info.Z.info.ij()&&!luK(l))return 0;if(R.Dq&&!R.IT()){var A=0;y&&g.Uu(l.info.Z.info)?A=y-R.L:l.info.Z.info.ij()&&(A=R.W);var K=l.info.eS;y=Q6(l,R.policy.vZ);var G=R.Dq;var B=G.tU;G=G.W;var H=Math.abs(G-A)>.02;if((K===B||K>B&&K>R.tU)&&H){f=Math.max(.95,Math.min(1.05,(y-(G-A))/y));if(g.Uu(l.info.Z.info))qzZ(g.ih(l),f);else if(l.info.Z.info.ij()&&(K=A-G,!g.Uu(l.info.Z.info)&&(l.info.Z.info.ij(),f=new i6(g.ih(l)),B=l.J?f:new i6(new DataView(l.info.Z.Z.buffer)),Q6(l,!0)))){var n= K*1E3,m=vU(B);B=f.pos;f.pos=0;if(f.Z.getUint8(f.pos)===160||zx(f))if(QF(f,160))if($H(f,!0),QF(f,155)){if(K=f.pos,H=$H(f,!0),f.pos=K,n=n*1E9/m,m=b6(f),n=m+Math.max(-m*.7,Math.min(m,n)),n=Math.sign(n)*Math.floor(Math.abs(n)),!(Math.ceil(Math.log(n)/Math.log(2)/8)>H)){f.pos=K+1;for(K=H-1;K>=0;K--)f.Z.setUint8(f.pos+K,n&255),n>>>=8;f.pos=B}}else f.pos=B;else f.pos=B;else f.pos=B}f=Q6(l,R.policy.vZ);f=y-f}f&&l.info.Z.info.ij()&&R.loader.T4("webmDurationAdjustment",{durationAdjustment:f,videoDrift:A+f, audioDrift:G})}return f}; pCT=function(R){return R.info.Z.PO()&&R.info.eS===R.info.Z.index.Wl()}; $x=function(R,l){l=(l=l===void 0?0:l)?Math.round(R.timestampOffset*l)/l:R.timestampOffset;R.J.Y&&l&&(l+=R.J.Y.Z);return l+R.getDuration()}; J1i=function(R,l){l<0||(R.X.forEach(function(y){YuZ(y,l)}),R.timestampOffset=l)}; D$=function(R,l,y,f,A){aB.call(this,y,A);var K=this;this.policy=R;this.formatId=l;this.KJ=f;this.lastError=null;this.Pf=function(){K.Fx()||(K.KJ.n_.has(K.formatId)?(K.isComplete()||K.Z.start(),wl(K.KJ,K.formatId)&&K.fL(2),K.KJ.KM(K.formatId)&&(oHi(K.KJ,K.formatId)?K.vl(4):(K.lastError="net.closed",K.vl(5)))):(K.lastError="player.exception",K.vl(5)))}; this.Z=new g.Vg(function(){K.isComplete()||(K.lastError="net.timeout",K.vl(5))},1E3); this.Z.start();HeJ(this.KJ,this.formatId,this.Pf);g.FC(this.Pf)}; eL=function(R,l,y,f){g.p.call(this);var A=this;this.loader=R;this.policy=l;this.Z=y;this.timing=f;this.logger=new g.WC("dash");this.L=[];this.Dq=[];this.X=this.Fo=null;this.jS=!1;this.CX=this.v1=0;this.D=-1;this.xb=!1;this.sL=-1;this.P1=null;this.Yb=NaN;this.LX=[];this.yu={Bm:function(){return A.Y}, m2U:function(){return A.L}, ejL:function(){return A.W}}; this.Y=new bKi(R,l,y);this.policy.Z&&(this.W=new jZ(this.Y,this.loader.getManifest(),this.policy,function(K){A.policy.ZS&&A.T4("buftl",K)})); this.policy.nA&&(this.B=new Gp(this));this.r7=y.info.r7;this.V=this.policy.Yb?!1:y.w4();this.isManifestless=y.w4();this.J=this.V;g.U(this,this.P1)}; bI=function(R,l,y){y=y===void 0?!1:y;l&&Qp&&J1i(R.Y,l.Gy());if(!y){var f;(f=R.W)==null||KcZ(f)}R.Fo=l;(l=R.W)!=null&&(l.Fo=R.Fo)}; XB=function(R){var l=R.Fo&&R.Fo.cY();if(R.policy.xI){if((R=R.W)==null)R=void 0;else{var y;R=(y=R.L)==null?void 0:y.info}return R||null}return l}; ggK=function(R){for(var l={},y=0;y4&&R.Dq.shift()}; V5Z=function(R,l){if(l.z3()){var y=l.uy();y=g.u(y);for(var f=y.next();!f.done;f=y.next())f=f.value,R.policy.L&&l instanceof D$&&R.T4("omblss",{s:f.info.YG()}),dd(R,l.info.SS,f,l.L4())}}; dd=function(R,l,y,f){f=f===void 0?0:f;isNaN(R.Yb)||(R.T4("aswm",{sq:l[0].eS,id:l[0].Z.info.itag,xtag:l[0].Z.info.Z,ep:Date.now()-R.Yb}),R.Yb=NaN);switch(y.info.type){case 1:case 2:ChK(R,y);break;case 4:var A=y.info.Z,K=A.Jr(y),G;((G=R.X)==null?0:G.type===4)&&boZ(y.info,R.X)&&(R.X=A.X5(R.X).pop());y=g.u(K);for(A=y.next();!A.done;A=y.next())dd(R,l,A.value,f);break;case 3:y.info.Z.info.video?(A=R.timing,A.sL||(A.sL=(0,g.eY)(),g.J2("fvb_r",A.sL,A.Z))):(A=R.timing,A.D||(A.D=(0,g.eY)(),g.J2("fab_r",A.D, A.Z)));wCc(R.Y,l,y,f);R.policy.Z&&q6j(R);break;case 6:wCc(R.Y,l,y,f),R.X=y.info}}; ChK=function(R,l){if(l.info.type===1)if(l.info.Z.info.video){var y=R.timing;y.CX||(y.CX=(0,g.eY)(),g.J2("vis_r",y.CX,y.Z))}else y=R.timing,y.W||(y.W=(0,g.eY)(),g.J2("ais_r",y.W,y.Z));r1q(R.Y,l);R=R.loader;R.videoTrack.Z.Gf()&&R.audioTrack.Z.Gf()&&R.policy.Z&&!R.nX.QS&&(l=R.audioTrack.getDuration(),y=R.videoTrack.getDuration(),Math.abs(l-y)>1&&R.T4("trBug",{af:""+g.jM(R.audioTrack.Z.info,!1),vf:""+g.jM(R.videoTrack.Z.info,!1),a:""+l,v:""+y}))}; Mk=function(R){return XCs(R.Y)}; q6j=function(R){R.L.length?R.X=g.W8(g.W8(R.L).info.SS):R.Y.X.length?R.X=R.Y.ZE().info:R.X=XB(R)}; rd=function(R,l){var y={qx:[],UN:[]},f;if((R=R.W)==null)R=void 0;else{ANr(R,R.qx,"og");lp7(R,l);ANr(R,R.qx,"trim");var A=fpc(R);l=A.qx;A=A.VX;for(var K=[],G=0;G0){var c=tO(h,H);c>=0&&(m=(h.end(c)-H+.1)*1E3)}K.push({formatId:g.jM(B.info.Z.info,R.nX.QS), uE:B.info.uE,sequenceNumber:B.info.eS+R.Y,jd:n,hE:B.info.L,oR:m})}R={qx:l,UN:K}}return(f=R)!=null?f:y}; gV=function(R,l,y){y=y===void 0?!1:y;if(R.Fo){var f=R.Fo.uj(),A=Mw(f,l),K=NaN,G=XB(R);G&&(K=Mw(f,G.Z.index.getStartTime(G.eS)));if(A===K&&R.X&&R.X.L&&t5o(vk(R),0))return l}R=Y67(R,l,y);return R>=0?R:NaN}; Cx=function(R,l,y){R.Z.Gf();var f=Y67(R,l);if(f>=0)return f;var A;(A=R.W)==null||yNJ(A,l,y);f=Math;A=f.min;var K=R.Y;if(K.V)if(K=K.V,K.t7&&K.t7.type===3)K=K.t7.startTime;else if(K.L>0){var G=K.Z.index;G=g.kU(G.offsets.subarray(0,G.count),K.L*K.chunkSize);K=K.Z.index.getStartTime(G>=0?G:Math.max(0,-G-2))}else K=0;else K=Infinity;l=A.call(f,l,K);R.X=R.policy.Yb?null:R.Z.zY(l).SS[0];zp(R)&&(R.policy.Xp&&(y==null?void 0:y.seekSource)===60||R.Fo&&R.Fo.abort(),R.policy.fV&&(y=R.W)!=null&&(y.L=void 0)); R.CX=0;return R.X?R.X.startTime:l}; apj=function(R){R.V=!0;R.J=!0;R.D=-1;Cx(R,Infinity)}; wd=function(R){for(var l=0,y=g.u(R.L),f=y.next();!f.done;f=y.next())l+=TyY(f.value.info);return l+=IVY(R.Y)}; Ib=function(R,l){l=l===void 0?!1:l;var y=R.loader.getCurrentTime(),f=R.Y.ZE(),A=(f==null?void 0:f.info.D)||0;R.policy.TD&&(f==null?0:f.info.Z.w4())&&!f.info.J&&(A=f.info.Y);if(!R.Fo)return R.policy.Z&&l&&!isNaN(y)&&f?A-y:0;var K=XB(R);if(K&&xx(K))return K.D;var G=R.Fo.uj(!0);if(l&&f)return K=0,R.policy.Z&&(K=yh(G,A+.02)),K+A-y;A=yh(G,y);R.policy.N8&&K&&(l=tO(G,y),G=tO(G,K.Y-.02),l===G&&(y=K.D-y,R.policy.L&&y>A+.02&&R.T4("abh",{bh:A,bhtls:y}),A=Math.max(A,y)));return A}; M5o=function(R){var l=XB(R);return l?l.D-R.loader.getCurrentTime():0}; RBT=function(R,l){if(R.L.length){if(R.L[0].info.SS[0].startTime<=l)return;Js(R)}for(var y=R.Y,f=y.X.length-1;f>=0;f--)y.X[f].info.startTime>l&&y.X.pop();q6j(R);R.X&&l=0;G--){var B=A.X[G];B.info.eS>=l&&(A.X.pop(),A.L-=Q6(B,A.policy.vZ),K=B.info)}K&&(A.Y=A.X.length>0?A.X[A.X.length-1].info:A.jS,A.X.length!==0||A.Y||Pk(A,"r"));A.loader.T4("mdstm",{rollbk:1,itag:K?K.Z.info.itag:"",popped:K?K.eS:-1,sq:l,lastslc:A.Y?A.Y.eS:-1,lastfraget:A.L.toFixed(3)});if(R.policy.Z)return R.X=null,!0;f>y?Cx(R,f):R.X=R.Z.My(l-1,!1).SS[0]}catch(H){return l=W9(H),l.details.reason="rollbkerr", R.loader.handleError(l.errorCode,l.details,l.severity),!1}return!0}; Uf=function(R,l){var y;for(y=0;y0?y||l.eS>=R.sL:y}; SL=function(R){var l;return zp(R)||xx((l=R.Y.ZE())==null?void 0:l.info)}; vk=function(R){var l=[],y=XB(R);y&&l.push(y);l=g.dO(l,R.Y.HR());y=g.u(R.L);for(var f=y.next();!f.done;f=y.next()){f=f.value;for(var A=g.u(f.info.SS),K=A.next(),G={};!K.done;G={fP:void 0},K=A.next())G.fP=K.value,f.Vk&&(l=g.bs(l,function(B){return function(H){return!boZ(H,B.fP)}}(G))),(MO(G.fP)||G.fP.type===4)&&l.push(G.fP)}R.X&&!Lxo(R.X,g.W8(l),R.X.Z.PO())&&l.push(R.X); return l}; t5o=function(R,l){if(!R.length)return!1;for(l+=1;l=l){l=K;break a}}l=A}return l<0?NaN:t5o(R,y?l:0)?R[l].startTime:NaN}; jL=function(R){return!(!R.X||R.X.Z===R.Z)}; lqk=function(R){return jL(R)&&R.Z.Gf()&&R.X.Z.info.r7l&&R.D1080&&!R.vv&&(R.CX=36700160,R.uQ=5242880,R.v1=Math.max(4194304,R.v1),R.vv=!0);l.video.qualityOrdinal>2160&&!R.nY&&(R.CX=104857600,R.r7=13107200,R.nY=!0);g.yx(R.yL.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?l.isEncrypted()&&g.Db()&&g.j0("samsung")&&(g.j0("kant")||g.j0("muse"))&&(R.r7=g.yx(R.yL.experiments,"html5_samsung_kant_limit_max_bitrate")):l.isEncrypted()&&g.Db()&&g.j0("kant")&&(R.r7=1310720);R.Fv!==0&&l.isEncrypted()&& (R.r7=R.Fv);R.gp!==0&&l.isEncrypted()&&y&&(R.r7=R.gp);l.r7&&(R.OH=Math.max(R.m8,Math.min(R.v1,5*l.r7)))}; uX=function(R){return R.Z&&R.xP}; gd=function(R){return R.Z&&R.pw&&R.playbackStartPolicy}; Vp=function(R,l,y,f){R.pw&&(R.playbackStartPolicy=l,R.xt=y,R.aq=f)}; JY=function(R,l,y){y=y===void 0?0:y;return g.yx(R.yL.experiments,l)||y}; hBs=function(R){var l=R===void 0?{}:R;R=l.xz;var y=l.GU;var f=l.yK;var A=l.Wl;l=l.RK;this.xz=R;this.GU=y;this.yK=f;this.Wl=A;this.RK=l}; OA9=function(R,l){if(l<0)return!0;var y=R.Wl();return l0)return 2;if(l<0)return 1;y=R.Wl();return l(0,g.eY)()?0:1}; qy=function(R,l,y,f,A,K,G,B,H,n,m,h,c,E){E=E===void 0?null:E;g.p.call(this);var W=this;this.loader=R;this.policy=l;this.videoTrack=y;this.audioTrack=f;this.Y=A;this.Z=K;this.timing=G;this.J=B;this.schedule=H;this.nX=n;this.L=m;this.LX=h;this.aO=c;this.P0=E;this.Yb=!1;this.pP="";this.d3=null;this.GL=NaN;this.xb=!1;this.X=null;this.VT=this.B=NaN;this.sO=this.D=0;this.logger=new g.WC("dash");this.yu={Xn:function(Q,e){return W.Xn(Q,e)}}; this.policy.eC>0&&(this.pP=g.L6(this.policy.eC));this.policy.fG&&(this.W=new Cu(this.loader,this.policy,this.schedule),g.U(this,this.W))}; iIk=function(R,l,y){var f=l.X?l.X.Z.x$:l.Z.x$;var A=R.Y,K;(K=!R.policy.s1)||(K=Zp(f.Z)===Zp(f.X));K?f=!1:(A=pe(A,Zp(f.X)),K=6E4*Math.pow(A.Y,1.6),(0,g.eY)()=A.Y?(A.T4("sdai",{haltrq:K+1,est:A.Y}),f=!1):f=A.X!==2;if(!f||!DH(l.X?l.X.Z.x$:l.Z.x$,R.policy,R.Y,R.loader.NS())||R.loader.isSuspended&&(!I_(R.schedule)||R.loader.py))return!1;if(R.policy.Y&&VV>=5)return g.Cz(R.loader.DU),!1;if(R.nX.isManifestless){if(l.L.length>0&&l.X&&l.X.eS===-1||l.L.length>=R.policy.XN||!R.policy.Iq&&l.L.length>0&&!R.policy.V.GU)return!1;if(l.V)return!R.nX.isLive|| !isNaN(R.GL)}if(GOT(l))return R.logger.debug("Pending request with server-selectable format found"),!1;if(!l.X){if(!l.Z.Gf())return!1;Cx(l,R.loader.getCurrentTime())}if(Mk(l)&&(l.ZE()!==Mk(l)||R.loader.isSuspended))return!1;A=(f=R.policy.LD)&&!l.L.length&&Ib(l,!0)=R.policy.IB)return!1;f=l.X;if(!f)return!0;f.type===4&&f.Z.Gf()&&(l.X=g.W8(f.Z.X5(f)),f= l.X);if(!f.nf()&&!f.Z.BC(f))return!1;K=R.nX.Rz||R.nX.Y;if(R.nX.isManifestless&&K){K=l.Z.index.Wl();var G=y.Z.index.Wl();K=Math.min(K,G);if(l.Z.index.OJ()>0&&K>0&&f.eS>=K)return l.sL=K,y.sL=K,!1}if(f.Z.info.audio&&f.type===4||f.nf())return!1;K=!l.J&&!y.J;if(A=!A)A=f.D,A=!!(y.X&&!xx(y.X)&&y.X.DPiK(R,l)?(PiK(R,l),!1):(R=l.Fo)&&R.isLocked()?!1:!0}; PiK=function(R,l){var y=R.Z;y=y.Z?y.Z.I2:null;if(R.policy.Dq&&y)return y.startSecs+y.G9+15;l=Vu(R.loader,l);R.policy.LA>0&&(y=((0,g.eY)()-R.loader.R1)/1E3,l=Math.min(l,R.policy.LA+R.policy.aJ*y));l=R.loader.getCurrentTime()+l;return R.policy.fY&&(y=uYj(R.loader)+R.policy.fY,y=0||l.x$.HY("defrag")==="1"||l.x$.HY("otf")==="1"){l=null;break a}A=Ce(0,4096)}A=new A1([new ty(5,f.Z,A,"createProbeRequestInfo"+f.W,f.eS)],l.X);A.M$=y;A.Z=l.Z;l=A}l&&OI9(R,l)}}; OI9=function(R,l){R.loader.V2(l);var y=TyY(l),f=R.loader.BY();y={Gr:R.schedule,Ia:y,Aq:CLo(R.J,y),Q3:YH(l.SS[0]),hI:JN(l.x$.Z),DI:R.policy.L,Wi:function(G,B){R.loader.Rn(G,B)}}; if(R.schedule.X.D){var A,K;y.WQ=(((A=R.videoTrack.Z)==null?void 0:A.info.r7)||0)+(((K=R.audioTrack.Z)==null?void 0:K.info.r7)||0)}R.d3&&(y.eS=l.SS[0].eS,y.GL=l.GL,y.d3=R.d3);f={r9:dwk(l,R.loader.getCurrentTime()),wZ:R.policy.CJ&&GL(l)&&l.SS[0].Z.info.video?BSK(R.L):void 0,L6:R.policy.Dq,poToken:R.loader.Wp(),nR:R.loader.PN(),pP:R.pP,VT:isNaN(R.VT)?null:R.VT,P0:R.P0,aO:R.aO,sO:R.sO,KL:f};return new Z$(R.policy,l,y,R.Y,function(G,B){try{a:{var H=G.info.SS[0].Z,n=H.info.video?R.videoTrack:R.audioTrack; if(!(G.state>=2)||G.isComplete()||G.zK()||!(!R.loader.z4||R.loader.isSuspended||Ib(n)>3)){var m=WnY(G,R.policy,R.Y);m===1&&(R.xb=!0);Q_K(R,G,m);if(G.isComplete()||G.Fx()&&B<3){if(R.policy.L){var h=G.timing.DS();h.rst=G.state;h.strm=G.xhr.rT();h.cncl=G.xhr&&G.DN.Y?1:0;R.loader.T4("rqs",h)}G.x9&&R.loader.T4("sbwe3",{},!0)}if(!R.Fx()&&G.state>=2){vHT(R.timing,G,H);var c=R.loader;R.VT&&G.kt&&c&&(R.VT=NaN,R.loader.EM(G.kt),R.loader.Rs(),R.loader.T4("cabrUtcSeek",{mediaTimeSeconds:G.kt}));G.T7&&R.VT&&G.T7&& !G.T7.action&&(R.loader.Gi(R.VT),R.VT=NaN,R.loader.T4("cabrUtcSeekFallback",{targetUtcTimeSeconds:R.VT}));G.EO&&R.loader.nE(G.EO);R.policy.RV&&(R.sO=G.sO);if(G.state===3){Uf(n,G);GL(G.info)&&Yx(R,n,H,!0);if(R.X){var E=G.info.Jt();E&&R.X.Re(G.info.SS[0].eS,H.info.id,E)}R.loader.pS()}else if(G.isComplete()&&G.info.SS[0].type===5){if(G.state!==4)G.oU()&&R.loader.handleError(G.hJ(),G.K$());else{var W=(G.info.SS[0].Z.info.video?R.videoTrack:R.audioTrack).L[0]||null;W&&W instanceof Z$&&W.zK()&&W.qw()}G.dispose()}else{G.oU()|| $Ek(R,G);var Q;((Q=G.yd)==null?0:Q.itagDenylist)&&R.loader.VZ(G.yd.itagDenylist);if(G.state===4)eBk(R,G),R.Z&&NDs(R.Z,G.info,R.X);else if(R.policy.ix&&G.z3()&&!G.isComplete()&&!eBk(R,G)&&!G.oU())break a;G.oU()&&(bIJ(R,G),isNaN(R.VT)||(R.loader.Gi(R.VT),R.VT=NaN));R.policy.ol&&!G.isComplete()?Xnr(R.loader):R.loader.pS();var e=Lno(G,R.policy,R.Y);Q_K(R,G,e)}}}}}catch(r){B=R.Yb?1:0,R.Yb=!0,G=Eu(B),B=W9(r,B),R.loader.handleError(B.errorCode,B.details,B.severity),G||R.loader.VD()}},f)}; $Ek=function(R,l){if(l.OQ&&l.state>=2&&l.state!==3){var y=l.xhr.getResponseHeader("X-Response-Itag");if(y){R.logger.debug(function(){return"Applying streamer-selected format "+y}); var f=sZj(R.L,y),A=l.info.L;A&&(A-=f.Mv(),f.L=!0,l.info.SS[0].Z.L=!1,aHJ(l,f.e0(A)),My(R.loader,R.videoTrack,f),aq7(R.videoTrack,f),R.loader.jL(f.info.video.quality),(A=l.L4())&&f.info.lastModified&&f.info.lastModified!==+A&&Uf(R.videoTrack,l))}else l.OQ=!1}}; bIJ=function(R,l){var y=l.info.SS[0].Z,f=l.hJ();if(JN(y.x$.Z)){var A=g.Xu(l.iO(),3);R.loader.T4("dldbrerr",{em:A||"none"})}A=l.info.SS[0].eS;var K=Zm(R.Z,l.info.SS[0].Y,A);f==="net.badstatus"&&(R.D+=1);if(l.canRetry()&&T2q(R.loader)){if(!(l.info.x$.L>=R.policy.b5&&R.X&&l.info.isDecorated()&&f==="net.badstatus"&&R.X.Xm(K,A))){A=(y.info.video&&y.x$.L>1||l.CM===410||l.CM===500||l.CM===503)&&!(tE(R.L.J).size>0)&&!JN(y.x$.Z);K=l.K$();var G=y.info.video?R.videoTrack:R.audioTrack;A&&(K.stun="1");R.loader.handleError(f, K);R.Fx()||(A&&(R.logger.debug(function(){return"Stunning format "+y.info.id}),fu(R.L,y)),Uf(G,l),R.loader.pS())}}else G=1,R.X&&l.info.isDecorated()&&f==="net.badstatus"&&R.X.Xm(K,A)&&(G=0),R.nX.isLive&&l.hJ()==="net.badstatus"&&R.D<=R.policy.c6*2?(xAc(R.nX),R.nX.Rz||R.nX.isPremiere?Ye(R.loader,0,{b8:"badStatusWorkaround"}):R.nX.Y?Ye(R.loader,R.nX.Dq,{b8:"badStatusWorkaround", Jf:!0}):RQ(R.loader)):R.loader.handleError(f,l.K$(),G)}; eBk=function(R,l){if(R.policy.useUmp&&l.Fx())return!1;try{var y=l.info.SS[0].Z,f=y.info.video?R.videoTrack:R.audioTrack;if(R.nX.isManifestless&&f){R.D=0;f.V&&(l.Fx(),l.isComplete()||l.z3(),f.V=!1);l.dD()&&R.loader.Ch.tR(1,l.dD());var A=l.OJ(),K=l.qX();gS(R.nX,A,K)}if(l.info.Q3()&&!KK(l.info))for(var G=g.u(l.uy()),B=G.next();!B.done;B=G.next())ChK(f,B.value);for(R.loader.getCurrentTime();f.L.length&&f.L[0].state===4;){var H=f.L.shift();V5Z(f,H);f.v1=H.Hn()}f.L.length&&V5Z(f,f.L[0]);var n=!!Mk(f);n&& l instanceof D$&&(y.info.IT()?$Oi(R.timing):QXs(R.timing));return n}catch(m){l=l.K$();l.origin="hrhs";a:{R=R.loader;y=m;if(y instanceof Error){l.msg||(l.msg=""+y.message);l.name||(l.name=""+y.name);if(y instanceof g.JD&&y.args)for(f=g.u(Object.entries(y.args)),A=f.next();!A.done;A=f.next())K=g.u(A.value),A=K.next().value,K=K.next().value,l["arg"+A]=""+K;g.dP(y);if(y.level==="WARNING"){R.Xx.L$(l);break a}}R.handleError("fmt.unplayable",l,1)}return!1}}; dE7=function(R){var l=R.videoTrack.Z.index;R.d3=new hBs({xz:R.policy.xz,GU:R.policy.V.GU,yK:l.QN(),Wl:function(){return l.Wl()}, RK:function(){return l.RK()}})}; Yx=function(R,l,y,f){if(!(y.Gf()||y.TT()||y.L||!DH(y.x$,R.policy,R.Y,R.loader.NS())||y.info.H1==="f"||R.policy.Z)){if(f){f=R.J;var A=y.info;f=q$7(f,A.video?f.policy.Ci:f.policy.wk,A.r7)}else f=0;f=y.e0(f);R=OI9(R,f);KK(f)&&Tp(l,R);y.L=!0}}; lM=function(R,l,y,f,A,K,G,B){g.p.call(this);var H=this;this.loader=R;this.k6=l;this.videoTrack=y;this.audioTrack=f;this.nX=A;this.B=K;this.isAudioOnly=G;this.W=B;this.X=At;this.xb=!1;this.logger=new g.WC("sabr");this.V=this.Yb=this.LX=!1;this.videoInfos=this.D=this.B.videoInfos;this.L=this.Dq=this.B.Z;this.Z=new C2(l,K,function(n,m){H.loader.T4(n,m)}); this.isAudioOnly&&ruo(this,this.nX.Z["0"])}; vhT=function(R,l){var y=[];l=g.u(l);for(var f=l.next();!f.done;f=l.next())y.push(g.jM(f.value,R.nX.QS));return y}; ruo=function(R,l,y){l!==R.Y&&(R.Y&&(R.xb=!0),R.Y=l,R.fK(l,R.videoTrack,y))}; Iq9=function(R,l){R.logger.debug("setConstraint: "+Tk(l));uX(R.k6)&&(R.Yb=l.reason==="m"||l.reason==="l"?!0:!1);l.reason==="m"?l.isLocked()&&zBk(R,l.Z):wn7(R,l)?xEY(R,l.X,l.Z):R.videoInfos=R.D;R.X=l}; wn7=function(R,l){return R.k6.iN&&l.reason==="b"||R.k6.zs&&l.reason==="l"||R.k6.DA?!1:R.k6.wJ?!0:l.reason==="l"||l.reason==="b"||l.reason==="o"}; N2s=function(R,l){return l.isLocked()&&R.Z.X||R.X===void 0?!1:l.equals(R.X)}; pnj=function(R,l){var y,f=(y=R.Y)==null?void 0:y.info.video.qualityOrdinal;return R.xb?!0:R.Y?l!==f?!0:!R.Z.X||R.k6.kP&&R.Z.Z===R.Y.info.itag?!1:!0:!1}; zBk=function(R,l){var y=R.Z.Z;if(y){R.videoInfos=R.D;var f=g.iA(R.videoInfos,function(A){return A.id===y}); f&&f.video.qualityOrdinal===l?R.videoInfos=[f]:(f=R.videoInfos.map(function(A){return A.id}),R.loader.T4("sabrpf",{pfid:""+y, vfids:""+f.join(".")}),xEY(R,l,l),Yc(R.Z,""))}else xEY(R,l,l)}; xEY=function(R,l,y){R.videoInfos=R.D;R.videoInfos=g.bs(R.videoInfos,function(f){return f.video.qualityOrdinal>=l&&f.video.qualityOrdinal<=y})}; UEY=function(R,l,y){if(R.W){var f=g.bs(R.L,function(A){return A.id===R.W}); return yM(f,y).includes(l)}f=g.bs(R.L,function(A){var K;return!((K=A.hF)==null||!K.isDefault)}); return f.length>0?yM(f,y).includes(l):yM(R.L,y).includes(l)}; yM=function(R,l){return R.map(function(y){return ZH(g.jM(y,l))})}; SNj=function(R){var l;if((l=R.X)==null?0:l.isLocked())return R.videoInfos;var y=tE(R.Z);l=g.bs(R.videoInfos,function(f){return f.r7>R.k6.r7?!1:!y.has(f.id)}); DOo(R.Z)&&(l=g.bs(l,function(f){return f.video.width<=854&&f.video.height<=480})); return l}; kOo=function(R,l,y){var f=R.nX,A=R.Xx.getVideoData(),K=R.Um,G=FK({yL:A.U(),Xx:R.Xx,j7:R.j7,k6:R.k6,OP:R.OP,xf:R.xf,mA:R.mA,Li:R.Li,N2:R.N2,isPrefetch:R.isPrefetch,MM:R.MM,sabrLicenseConstraint:A.sabrLicenseConstraint,Bt:R.Bt,w9:R.w9,Jd:R.Jd,RN:R.RN,Js:!!K,authorizedFormats:A.authorizedFormats}),B=Qm(A,R.KL,R.nextRequestPolicy,R.UK,R.Tq,R.xd,R.jy);y&&l&&(y=B.Ht?B.Ht.map(function(h){return h.type}):[],l("sabr",{stmctxt:y.join("_"), unsntctxt:B.AV?B.AV.join("_"):""}));l=R.hn;y=R.Om;if(y===void 0&&l===void 0){var H;y=j_J(f.QS,(H=R.Xj)==null?void 0:H.video);var n;l=j_J(f.QS,(n=R.Xj)==null?void 0:n.audio)}if(A.P0)var m=A.P0;A={CN:G,UN:R.UN,hn:l,Om:y,Um:K,videoPlaybackUstreamerConfig:m,VQ:B};R.WO&&(A.WO=R.WO);A.qx=R.qx;A.HN=f.UL;return A}; j_J=function(R,l){return l?[g.jM(l.info,R)]:[]}; fT=function(R,l,y){var f=this;this.requestType=R;this.x$=l;this.Ge=y;this.X=null;this.yu={WyL:function(){var A;return(A=f.data)==null?void 0:A.isPrefetch}, Tq:function(){var A;return(A=f.data)==null?void 0:A.Tq}}}; ieo=function(R,l,y){l=jg(R.x$,DEj(R,l,y),l);R.kO()&&l.set("probe","1");return l}; DEj=function(R,l,y){R.M$===void 0&&(R.M$=R.x$.M$(l,y));return R.M$}; ZIi=function(R){var l,y;return((l=R.Z)==null?void 0:(y=l.CN)==null?void 0:y.SL)||0}; Juj=function(R){var l,y;return!!((l=R.Z)==null?0:(y=l.CN)==null?0:y.Bt)}; ghi=function(R){var l={},y=[],f=[];if(!R.data)return l;for(var A=0;A=0&&(l in R.Z||(R.Z[l]=new CiT),R.Z[l].K7(y,f))}; RzY=function(R,l,y,f,A){var K=(0,g.eY)(),G=A?A(l):void 0,B;A=(B=G==null?void 0:G.RL)!=null?B:1;if(A!==0){var H;B=(H=G==null?void 0:G.profile)!=null?H:y;Mro(R,B,K-f,A)}return l}; lvY=function(R,l,y,f,A){if(l&&typeof l==="object"){var K=function(G){return RzY(R,G,y,f,A)}; if(e9(l))return l.then(K);if($n(l))return rZ(l,K)}return RzY(R,l,y,f,A)}; ynq=function(){}; KT=function(R,l){this.Z=R;this.cipher=this.Z.exports.AES128CTRCipher_create(l.byteOffset)}; KQ7=function(R,l){return z5(fvc,function(){var y=this;return function A(){var K,G,B;return UY(A,function(H){switch(H.X){case 1:g.eJ(H,2);if(!y.Y)throw"wasm.ps.ns";K=R;G=jJ;return uj(H,wZ(An9(y,l)),4);case 4:B=G(H.Z);if(!B)throw"wasm.ps.um";try{return H.return(new WebAssembly.Instance(B,K))}catch(n){}return uj(H,wZ(WebAssembly.instantiate(B,K)),5);case 5:return H.return(H.Z);case 2:g.zT(H),g.x7(H,0)}})}()})}; Gto=function(R,l){R.Z||(R.Z=rZ(T5(function(){return fetch(l)}),function(y){return y.arrayBuffer()}),v5(R.Z,function(y){R.Z=void 0; throw"wasm.ps.f: "+y;}))}; An9=function(R,l){if(R.X)return R.X;R.X=avi(R,l);v5(R.X,function(y){R.X=void 0;throw"wasm.ps.c: "+y;}); return R.X}; avi=function(R,l){return z5(R,function(){var y=this;return function A(){var K,G,B,H,n,m,h,c,E,W,Q,e,r,d;return UY(A,function(z){switch(z.X){case 1:g.eJ(z,2);K=[];G=window.ywc;if(!G){z.bQ(4);break}B=G[l];if(!B){z.bQ(4);break}if(B.mod)return z.return(B.mod);if(!B.modP){z.bQ(6);break}g.$7(z,7);H=jJ;return uj(z,wZ(B.modP),9);case 9:return z.return(H(z.Z));case 7:g.TT(z),K.unshift("pcm");case 6:if(B.bin){y.Z=bL(B.bin);z.bQ(4);break}if(!B.binP){z.bQ(4);break}g.$7(z,12);n=QP;m=bL;h=jJ;return uj(z,wZ(B.binP), 14);case 14:y.Z=m.call(n,h(z.Z));g.XZ(z,4);break;case 12:g.TT(z),y.Z=void 0,K.unshift("pfb");case 4:if(!y.Z){z.bQ(15);break}g.$7(z,16);c=jJ;return uj(z,wZ(y.Z),18);case 18:E=c(z.Z);if(y.L)try{return z.return(new WebAssembly.Module(E))}catch(N){y.L=!1,K.unshift("f0cs")}W=jJ;return uj(z,wZ(WebAssembly.compile(E)),19);case 19:return z.return(W(z.Z));case 16:g.TT(z),y.Z=void 0,K.unshift("f0ca");case 15:return g.$7(z,20),Gto(y,l),Q=jJ,uj(z,wZ(y.Z),22);case 22:e=Q(z.Z);if(y.L)try{return z.return(new WebAssembly.Module(e))}catch(N){y.L= !1,K.unshift("f1cs")}r=jJ;return uj(z,wZ(WebAssembly.compile(e)),23);case 23:return z.return(r(z.Z));case 20:d=g.TT(z),y.Z=void 0,y.Y=!1,K.unshift("f1ca: "+d);case 21:throw"["+K.map(function(N){return'"'+N+'"'}).join(", ")+"]"; case 2:g.zT(z),g.x7(z,0)}})}()})}; sGc=function(){}; B3j=function(){var R=this;this.proc_exit=function(){}; this.fd_write=function(l,y,f){if(!R.exports)return 1;l=new Uint32Array(R.exports.memory.buffer,y,f*2);y=[];for(var A=0;A0;H--)y.push(B)}y.length!==G?l.error=!0:(K=y.slice(-K),y.length=A,pmZ(l,y,K));break;case 1:pmZ(l,LT,v6s);break;case 0:UNZ(l, l.Z&7);y=uM(l,16);A=uM(l,16);(y^A)!==65535&&(l.error=!0);l.output.set(l.data.subarray(l.X,l.X+y),l.L);l.X+=y;l.L+=y;break;default:l.error=!0}R.L>R.output.length&&(R.output=new Uint8Array(R.L*2),R.L=0,R.X=0,R.Y=!1,R.Z=0,R.register=0)}R.output.length!==R.L&&(R.output=R.output.subarray(0,R.L));return R.error?new Uint8Array(0):R.output}; pmZ=function(R,l,y){l=IvZ(l);y=IvZ(y);for(var f=R.data,A=R.output,K=R.L,G=R.register,B=R.Z,H=R.X;;){if(B<15){if(H>f.length){R.error=!0;break}G|=(f[H+1]<<8)+f[H]<>=7;n<0;)n=l[(G&1)-n],G>>=1;else G>>=n&15;B-=n&15;n>>=4;if(n<256)A[K++]=n;else if(R.register=G,R.Z=B,R.X=H,n>256){G=iM[n];G+=uM(R,Og[n]);H=N3r(R,y);B=PN[H];B+=uM(R,zzc[H]);if(jGi&&Gy.length&&(R.error=!0);R.register|=(y[f+1]<<8)+y[f]<=0)return UNZ(R,y&15),y>>4;for(UNZ(R,7);y<0;)y=l[uM(R,1)-y];return y>>4}; uM=function(R,l){for(;R.Z=R.data.length)return R.error=!0,0;R.register|=R.data[R.X++]<>=l;R.Z-=l;return y}; UNZ=function(R,l){R.Z-=l;R.register>>=l}; IvZ=function(R){for(var l=[],y=g.u(R),f=y.next();!f.done;f=y.next())f=f.value,l[f]||(l[f]=0),l[f]++;var A=l[0]=0;y=[];var K=0;f=0;for(var G=1;G7&&(K+=l[G]);for(A=1;A>H&1;B=K<<4|G;if(G<=7)for(H=1<<7-G;H--;)f[H<>=7;G--;){f[H]||(f[H]=-l,l+=2);var n=A&1;A>>=1;H=n-f[H]}f[H]=B}}return f}; ktJ=function(R){var l,y,f,A,K,G,B;return g.w(function(H){switch(H.X){case 1:if(!("DecompressionStream"in window))return H.return(g.SSZ(new g.wmq(R)));l=new DecompressionStream("gzip");y=l.writable.getWriter();y.write(R);y.close();f=l.readable.getReader();A=new Kn([]);case 2:return g.v(H,f.read(),5);case 5:K=H.Z;G=K.value;if(B=K.done){H.bQ(4);break}A.append(G);H.bQ(2);break;case 4:return H.return(HO(A))}})}; F2=function(R,l){this.Z=R;this.X=l}; DNK=function(R){return v5(v5(T5(function(){return rZ(R.X,function(l){return R.IM(R.Z,l)})}),function(){return R.T5(R.Z)}),function(){return R.Y_(R.Z)})}; ZUq=function(R){bX.call(this,"onesie");this.ib=R;this.Z={};this.L=!0;this.Y=null;this.queue=new Xmk(this);this.J={}}; Jns=function(R){var l=R.queue;l.Z.length&&l.Z[0].isEncrypted&&!l.X&&(l.Z.length=0);l=g.u(Object.keys(R.Z));for(var y=l.next();!y.done;y=l.next()){y=y.value;var f=R.Z[y];if(!f.tQ){var A=R.queue;A.Z.push({videoId:f.videoId,formatId:y,isEncrypted:!1});A.X||WN(A)}}}; C2K=function(R,l){var y=l.totalLength,f=!1;switch(R.Y){case 0:R.ib.C("html5_future_onesie_ump_handler_on_player_response")?v5(rZ(g6J(R,l,R.L),function(A){VuT(R.ib,A)}),function(A){R.ib.fail(A)}):R.AS(l,R.L).then(function(A){VuT(R.ib,A)},function(A){R.ib.fail(A)}); break;case 2:R.Uj("ormk");l=HO(l);R.ib.C("html5_future_onesie_ump_handler_on_media_decryption_key")?rnY(R.queue,l,R.ib.U().uQ):R.queue.decrypt(l);break;default:f=!0}R.ib.eQ&&R.ib.T4("ombup","id.11;pt."+R.Y+";len."+y+(f?";ignored.1":""));R.Y=null}; qSY=function(R){if(R.yg!==1)throw new g.c9("onesie.response.badproxystatus",{st:R.yg,webcrypto:!!Hz(),textencoder:!!g.Mo.TextEncoder});if(R.httpStatus!==200)throw new g.c9("onesie.response.badstatus",{st:R.httpStatus});}; g6J=function(R,l,y){return z5(R,function(){var f=this;return function K(){var G,B,H,n,m,h,c,E,W,Q,e,r,d,z,N,D,t,C,Ac,Bi,ar,nk,Y;return UY(K,function(Pi){switch(Pi.X){case 1:g.eJ(Pi,2);f.ib.AS();G=HO(l);g.$7(Pi,4,5);if(!y){Pi.bQ(7);break}g.$7(Pi,8);m=jJ;return uj(Pi,wZ(tuK(f.ib,G,f.iv)),10);case 10:B=m(Pi.Z);g.XZ(Pi,7,4);break;case 8:throw h=g.TT(Pi,4),{name:"DecryptError",message:""+h};case 7:if(!f.ib.enableCompression){Pi.bQ(11);break}g.$7(Pi,12);E=jJ;var wq=(c=B)!=null?c:G;wq=DNK(new F2(wq,f.ib.U().uQ)); return uj(Pi,wZ(wq),14);case 14:H=E(Pi.Z);g.XZ(Pi,11,4);break;case 12:throw W=g.TT(Pi,4),{name:"DecompressError",message:""+W};case 11:n=d8((e=(Q=H)!=null?Q:B)!=null?e:G,bd9);case 5:g.zT(Pi,0,2);if(d=(r=f.ib.U())==null?void 0:r.v1)((z=B)==null?void 0:z.buffer)===d.exports.memory.buffer&&d.free(B.byteOffset),((N=H)==null?void 0:N.buffer)===d.exports.memory.buffer&&d.free(H.byteOffset);g.x7(Pi,6);break;case 4:throw t=D=g.TT(Pi),new g.c9("onesie.response.parse",{name:(ar=t.name)!=null?ar:"unknown",message:(nk= t.message)!=null?nk:"unknown",wasm:((C=f.ib.U())==null?0:C.v1)?((Ac=f.ib.U())==null?0:(Bi=Ac.v1)==null?0:Bi.Z)?"1js":"1":"0",enc:f.L,gz:f.ib.enableCompression,webcrypto:!!Hz()});case 6:return qSY(n),Y=g.ER(n.body),Pi.return(Y);case 2:g.zT(Pi),g.x7(Pi,0)}})}()})}; YST=function(R){return new Promise(function(l){setTimeout(l,R)})}; Mur=function(R,l){var y=R.U();y=R.aJ&&y.C("html5_onesie_preload_use_content_owner");var f=R.oW,A=EN(l.Zq.experiments,"debug_bandaid_hostname");if(A)l=hp(l,A);else if((y===void 0?0:y)&&(f==null?0:f.url)&&!l.X){var K=Zp(new g.kM(f.url));l=hp(l,K)}else l=(K=l.Z.get(0))==null?void 0:K.location.clone();if(l&&R.videoId){K=Pn(R.videoId);R=[];if(K)for(K=g.u(K),y=K.next();!y.done;y=K.next())R.push(y.value.toString(16).padStart(2,"0"));l.set("id",R.join(""));return l}}; R1i=function(R,l,y){y=y===void 0?0:y;var f,A;return g.w(function(K){if(K.X==1)return f=[],f.push(l.load()),y>0&&f.push(YST(y)),g.v(K,Promise.race(f),2);A=Mur(R,l);return K.return(A)})}; lPr=function(R,l,y,f){f=f===void 0?!1:f;R.set("cpn",l.clientPlaybackNonce);R.set("opr","1");var A=l.U();R.set("por","1");Hz()||R.set("onem","1");l.startSeconds>0&&R.set("osts",""+l.startSeconds);f||(A.C("html5_onesie_disable_partial_segments")&&R.set("oses","1"),l=A.C("html5_gapless_onesie_no_media_bytes")&&WZ(l)&&l.aJ,y&&!l?(l=y.audio,R.set("pvi",y.video.join(",")),A.C("html5_onesie_disable_audio_bytes")||R.set("pai",l.join(",")),cn||R.set("osh","1")):(R.set("oad","0"),R.set("ovd","0"),R.set("oaad", "0"),R.set("oavd","0")))}; ytZ=function(R,l,y,f,A){A=A===void 0?!1:A;var K="https://youtubei.googleapis.com/youtubei/"+l.lV.innertubeApiVersion+"/player",G=[{name:"Content-Type",value:"application/json"}];f&&G.push({name:"Authorization",value:"Bearer "+f});G.push({name:"User-Agent",value:g.pp()});g.JZ("EOM_VISITOR_DATA")?G.push({name:"X-Goog-EOM-Visitor-Id",value:g.JZ("EOM_VISITOR_DATA")}):(y=y.visitorData||g.JZ("VISITOR_DATA"))&&G.push({name:"X-Goog-Visitor-Id",value:y});(y=g.JZ("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&G.push({name:"X-YouTube-Lava-Device-Context", value:y});(l=EN(l.experiments,"debug_sherlog_username"))&&G.push({name:"X-Youtube-Sherlog-Username",value:l});R=OR(JSON.stringify(R));return{url:K,dK:G,postBody:R,mlU:A,gJ:A}}; AtQ=function(R,l,y,f,A,K){var G=g.Cn(R,eFJ,R.gJ?void 0:y.v1),B={encryptedClientKey:l.Z.encryptedClientKey,Gx:!0,Pn:!0,Ln:fPQ(y,!!R.gJ),lL:y.experiments.EL("html5_use_jsonformatter_to_parse_player_response")};if(R.gJ)B.OML=G;else{if(y.v1){R=LQ7(l).X(G,l.iv);var H;B.RF=(H=y.v1.Go(R))!=null?H:R}else B.RF=l.encrypt(G);H=B.RF;(0,g.eY)();H=K1J(new ASj(l.Z.L),H,l.iv);B.MG=H;B.iv=l.iv}l=f.getVideoData();y=FK({yL:y,Xx:f,j7:l.startSeconds*1E3});A={kq:B,CN:y,onesieUstreamerConfig:A,QW:K,VQ:Qm(l)};if(l.CJ){var n; A.reloadPlaybackParams=(n=l.CJ)==null?void 0:n.reloadPlaybackParams}return A}; Kh7=function(R,l,y){var f,A,K;return g.w(function(G){if(G.X==1)return f=g.Cn(l,eFJ),g.v(G,OUZ(y,f),2);if(G.X!=3)return A=G.Z,g.v(G,iUk(y,A),3);K=G.Z;return G.return({RF:A,encryptedClientKey:y.Z.encryptedClientKey,iv:y.iv,MG:K,Gx:!0,Pn:!0,Ln:fPQ(R,!!l.gJ),lL:R.experiments.EL("html5_use_jsonformatter_to_parse_player_response")})})}; GfJ=function(R,l,y,f,A,K){var G,B,H,n,m;return g.w(function(h){if(h.X==1)return g.v(h,Kh7(y,R,l),2);G=h.Z;B=f.getVideoData();H=FK({yL:y,Xx:f,j7:B.startSeconds*1E3});n={kq:G,CN:H,onesieUstreamerConfig:A,QW:K,VQ:Qm(B)};B.CJ&&(n.reloadPlaybackParams=(m=B.CJ)==null?void 0:m.reloadPlaybackParams);return h.return(n)})}; fPQ=function(R,l){R=xh(R.schedule,!0);l=l||!!Hz()&&R>1572864;return"DecompressionStream"in window||!l}; kL=function(R,l){g.p.call(this);var y=this;this.Xx=R;this.playerRequest=l;this.logger=new g.WC("onesie");this.xhr=null;this.state=1;this.cM=new Ee;this.us=!1;this.playerResponse="";this.HQ=new G6(this);this.wz=new ZUq(this);this.j9="";this.nz=this.DR=!1;this.z2="";this.enableCompression=this.jw=this.r4=!1;this.TB=[];this.EN=-1;this.Zq=this.Xx.U();this.videoData=this.Xx.getVideoData();this.eQ=this.Zq.PZ();this.lS=this.Zq.B$;this.h$=new mD(this.lS.Z,this.Zq.uQ,Vrs(this.Zq));this.g1=this.Zq.C("html5_onesie_check_timeout"); this.ej=new g.Vg(this.pB,500,this);this.H9=new g.Vg(this.vL,1E4,this);this.EA=new g.Vg(function(){if(!y.isComplete()){var f=jt(y);y.fail(new g.c9("net.timeout",f))}},1E3); this.pU=new g.Vg(this.ZXx,2E3,this);this.At=this.Xx.PN();this.j2=this.C("html5_onesie_wait_for_media_availability");g.U(this.videoData,this);g.U(this,this.ej);g.U(this,this.H9);g.U(this,this.pU);g.U(this,this.h$);R=LI();cn&&R&&(this.qj=new Map);this.cn=new Map;this.Jc=new Map;this.kD=new Map;this.gD=new Map}; Eg=function(R,l){var y;return(y=R.qj)==null?void 0:y.get(l)}; sYJ=function(R,l,y){var f;return g.w(function(A){if(A.X==1)return R.Uj("oprd_s"),aPc(R)?g.v(A,P2k(R.h$,l,y),3):(f=R.h$.decrypt(l,y),A.bQ(2));A.X!=2&&(f=A.Z);R.Uj("oprd_c");return A.return(f)})}; tuK=function(R,l,y){R.Uj("oprd_s");l=LQ7(R.h$).encrypt(l,y);rZ(l,function(){R.Uj("oprd_c")}); return l}; BI9=function(R){return R.C("html5_onesie_host_probing")||R.eQ?cn:!1}; VuT=function(R,l){R.Uj("oprr");R.playerResponse=l;R.jw||(R.j2=!1);Dh(R)}; Dh=function(R){if(!R.playerResponse)return!1;if(R.r4)return!0;var l=R.videoData.C("html5_onesie_audio_only_playback")&&LC(R.videoData);if(R.qj&&R.j2){if(!R.qj.has(R.j9))return!1;var y=R.qj.get(R.j9),f;if(f=y){f=!1;for(var A=g.u(y.n_.keys()),K=A.next();!K.done;K=A.next())if(K=y.n_.get(K.value))for(var G=g.u(K.Q6),B=G.next();!B.done;B=G.next())B.value.n8>0&&(K.IT?f=!0:l=!0);f=!(l&&f)}if(f)return!1}R.Uj("ofr");R.cM.resolve(R.playerResponse);if(!R.g1){var H;(H=R.EA)==null||H.start();R.H9.start()}return R.r4= !0}; nKo=function(R){if(R.qj&&!R.C("html5_onesie_media_capabilities")){R.Uj("ogsf_s");var l=CS9(R.Xx.getVideoData(),function(f,A){R.T4(f,A)}),y=HC7(R.Xx); l.video=UQo(y,l.video);R.Uj("ogsf_c");if(l.video.length)return l;R.T4("ombspf","l."+y.X+";u."+y.Z+";o."+y.L+";r."+y.reason)}}; aPc=function(R,l){return R.C("html5_onesie_sync_request_encryption")||(l==null?0:l.gJ)||g.oG(R.Zq)&&R.C("html5_embed_onesie_use_sync_encryption")?!1:!!Hz()}; jt=function(R){if(!R.Hl)return{};var l=R.Hl.DS(),y;l.d=(y=R.Hl.sL)==null?void 0:y.Bf();l.shost=R.U0;l.ty="o";return l}; mDZ=function(R,l){var y,f;(f=(R=(y=R.qj)==null?void 0:y.get(l))==null)||(l=R.L?!1:R.L=!0,f=!l);return!f}; oKo=function(R,l,y,f,A,K,G,B,H,n,m){g.p.call(this);var h=this;this.Xx=R;this.loader=l;this.policy=y;this.audioTrack=f;this.videoTrack=A;this.nX=K;this.Gr=G;this.W1=B;this.L=H;this.timing=n;this.LX=m;this.Z=[];this.J={};this.jS=this.tU=!1;this.Y=this.v1=this.B=this.UL=this.N2=0;this.W=null;this.xb={qx:[],UN:[]};this.Dq={qx:[],UN:[]};this.V=null;this.D=[];this.yu={TF7:function(){return h.Z}, VTE:function(){return h.J}, jA$:function(){h.Z.length=0}, cvx:function(){return h.videoData.uQ}, OaX:function(){return h.B}, O89:function(c){h.B=c}, uqX:function(c){h.Y=c}, Ji:function(c){h.V=c}, A_:function(c){h.D=c}}; this.videoData=this.Xx.getVideoData();this.policy.fG&&(this.P1=new Cu(this.loader,this.policy,this.Gr),g.U(this,this.P1))}; EKr=function(R,l){l=l===void 0?!1:l;if(h1j(R)){R.policy.D&&R.loader.T4("sabrcrq",{create:1});var y=new fT(0,R.nX.W,R);R.policy.eI>0&&R.Y++;l=cti(R,y,l);R.Z.push(l);var f;(f=R.P1)==null||cuj(f,R.nX.W)}}; OCQ=function(R,l){var y=Whi(R);if(R.policy.HA){var f=R.xb;var A=R.Dq}else f=Zh(R,R.audioTrack),A=Zh(R,R.videoTrack);var K=[].concat(g.ci(f.qx),g.ci(A.qx));Jp(R)&&K.push.apply(K,g.ci(R.D));var G=[].concat(g.ci(f.UN),g.ci(A.UN)),B=R.loader.BY();if(R.policy.Gn&&!R.videoData.isLivePlayback){var H=R.videoData.lengthSeconds*1E3;y>=H&&R.loader.T4("invalidSabrCmt",{cmt:y,vd:H})}var n,m;H=R.Xx;var h=R.nX,c=R.X,E=R.videoData.uQ,W=R.policy,Q=R.loader.R1,e=uYj(R.loader)*1E3,r=(n=R.sL)==null?void 0:n.mA;n=(m= R.sL)==null?void 0:m.Li;var d;m=Number((d=R.L.Y)==null?void 0:d.info.itag)||0;var z;d=Number((z=R.L.J)==null?void 0:z.info.itag)||0;l={Xx:H,nX:h,qx:K,UN:G,j7:y,nextRequestPolicy:c,UK:E,k6:W,OP:Q,xf:e,mA:r,Li:n,N2:R.N2,isPrefetch:l||R.loader.isSuspended,No:m,oi:d,KL:B,jy:R.Xx.Wm()};y=R.loader.Wp();K=Pn(y);y&&(l.Tq=K);if(y=R.Xx.F$())l.Bt=y*1E3;var N;y=R.L;K=y.LX;if(((N=y.k6)==null?0:uX(N))&&!K)for(N=g.u(y.L),G=N.next();!G.done;G=N.next())if(G.value.hF){K=!0;break}N=uX(y.k6)&&!K?[]:vhT(y,y.L);l.hn=N; N=R.L;uX(N.k6)&&!N.Yb?N=[]:(y=SNj(N),y.length===0&&(y=N.D),N=vhT(N,y));l.Om=N;l.Um=Jp(R)?[R.V]:void 0;R.policy.Rq&&(l.Jd=Lhk(R.loader,R.audioTrack),l.RN=Lhk(R.loader,R.videoTrack));if(R.policy.X){N=R.loader.getCurrentTime();f=gj(R,f.qx,N);A=gj(R,A.qx,N);A=Math.min(f,A);Jp(R)&&R.policy.Yf&&(f=gj(R,R.D,N),R.Xx.PZ()&&f0&&R.Z[0].s$()&&(l.xd=R.Z[0].ZV());return l}; Whi=function(R){var l,y=R.policy.J&&((l=R.loader)==null?void 0:l.kK());l=R.loader.getCurrentTime()||0;l=iCq(R,l);var f=R.loader.fA()||0;l+=f;f=jU(R.videoData)||g.SU(R.videoData);var A=0;y?(f&&(A=Number.MAX_SAFE_INTEGER),R.videoData.LX&&(A=Math.ceil(R.videoData.Dq*1E3))):A=Math.ceil(l*1E3);return Math.min(Number.MAX_SAFE_INTEGER,A)}; Jp=function(R){return R.policy.Vu&&!!R.V}; iCq=function(R,l){if(R.loader.isSeeking())return l;var y=R.Xx.t1();if(!y)return l;y=y.Wf();if(y.length===0||Y5(y,l))return l;if(!Di(R.videoTrack,l)&&!Di(R.audioTrack,l))return R.loader.T4("sundrn",{b:0,lt:l}),l;for(var f=l,A=Infinity,K=0;Kl)){var G=l-y.end(K);G=20)?(R.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),l):f}; gj=function(R,l,y){R=R.loader.fA()||0;return VM(l,(y+R)*1E3)/1E3+y}; h1j=function(R){if(R.policy.eI>0){var l=Math.floor((0,g.eY)()/1E4);if(l===R.v1){if(R.Y>=R.policy.eI){if(R.Y===R.policy.eI){var y={reason:"toomanyrequests"};y.limit=R.Y;R.loader.handleError("player.exception",y);R.Y+=1}return!1}}else R.v1=l,R.Y=0}if(R.loader.isSuspended&&R.loader.py)return!1;if(R.Yb&&(0,g.eY)()0&&(!R.policy.B||R.Z.length!==1||!R.Z[0].s$()))return!1;var f;if((f=R.nX.W)==null||!DH(f,R.policy,R.J,R.loader.NS())||SL(R.audioTrack)&&SL(R.videoTrack))return!1; if(CT(R,R.audioTrack)&&CT(R,R.videoTrack))return R.policy.L&&R.loader.T4("sabrHeap",{a:""+wd(R.audioTrack),v:""+wd(R.videoTrack)}),!1;if(l=R.policy.X){l=!1;if(R.LX.X===2)l=!0;else if(R.LX.X===3){Whi(R);R.loader.fA();var A=rd(R.audioTrack,R.loader.isSeeking()).qx;f=rd(R.videoTrack,R.loader.isSeeking()).qx;var K=R.loader.getCurrentTime()||0;A=gj(R,A,K);f=gj(R,f,K);f=Math.min(A,f);K=R.LX;f>=K.J?(K.T4("sdai",{haltrq:f,est:K.J}),f=!0):f=!1;f&&(l=!0)}l&&R.policy.D&&R.loader.T4("sabrcrq",{waitad:1})}if(l)return!1; R.policy.HA&&(R.xb=Zh(R,R.audioTrack),R.Dq=Zh(R,R.videoTrack));if(!R.X)return R.policy.D&&R.loader.T4("sabrcrq",{nopolicy:1}),!0;if(R.Xx.F$())return R.policy.D&&R.loader.T4("sabrcrq",{utc:1}),!0;if(R.L.V)return R.policy.D&&R.loader.T4("sabrcrq",{audio:1}),!0;if(!R.X.targetAudioReadaheadMs||!R.X.targetVideoReadaheadMs)return R.policy.D&&R.loader.T4("sabrcrq",{noreadahead:1}),!0;if(R.policy.J&&R.loader.kK())return R.policy.D&&R.loader.T4("sabrcrq",{seekToHead:1}),!0;l=Math.min(Vu(R.loader,R.audioTrack)* 1E3,R.X.targetAudioReadaheadMs);f=Math.min(Vu(R.loader,R.videoTrack)*1E3,R.X.targetVideoReadaheadMs);var G=Math.min(l,f);K=Ib(R.audioTrack,!0)*1E3;A=Ib(R.videoTrack,!0)*1E3;var B=R.Xx.getCurrentTime()*1E3;if(R.policy.HA){var H=VM(R.xb.qx,B);var n=VM(R.Dq.qx,B)}else H=K,n=A;var m=Hl||f>=0&&A.kh>f+1)break;y=Math.max(y,A.startTimeMs+A.durationMs);f=Math.max(f,A.Mj)}return Math.max(0,y-l)}; cti=function(R,l,y){var f={Gr:R.Gr,Wi:function(H,n){R.Xx.Rn(H,n)}, Q3:R.policy.Gu,DI:R.policy.L};R.Gr.X.D&&(f.WQ=(R.videoTrack.Z.info.r7||0)+(R.audioTrack.Z.info.r7||0));R.policy.mS&&(f.yK=R.audioTrack.Z.index.QN(),f.Q3=!1);var A=DEj(l,R.policy,R.J)?2:1;A!==R.B&&(R.B=A,u_k(R));y=OCQ(R,y);if(R.policy.B&&R.policy.L&&y.UK){for(var K=A="",G=g.u(y.UK),B=G.next();!B.done;B=G.next())B=B.value,R.videoData.sabrContextUpdates.has(B)||R.policy.B&&y.xd&&y.xd.type===B?A+="_"+B:K+="_"+B;R.loader.T4("sabrbldrqs",{ctxts:A,misctxts:K})}!l.setData(y,R.policy,R.J)&&R.policy.B&&R.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);f=new IB(R.policy,l,R.nX,R.J,R,f,R.loader.PN());Nv(R.timing);R.policy.D&&R.loader.T4("sabrcrq",{rn:f.g3(),probe:l.kO()});return f}; tp=function(R,l){if(l.Fx()||R.Fx())R.policy.Tu||(R.policy.J?qG(R.loader):R.loader.pS());else{if(R.policy.L&&l.isComplete()&&l instanceof IB){var y=R.loader,f=y.T4,A,K,G=Object.assign(l.Hl.DS(),{rst:l.state,strm:l.xhr.rT(),d:(A=l.Hl.sL)==null?void 0:A.Bf(),cncl:l.xhr&&l.DN.Y?1:0,rqb:l.uu,cwt:l.WF,swt:(K=l.dV)==null?void 0:K.Bs});A=Object.assign(ghi(l.info),G);f.call(y,"rqs",A)}if(l.isComplete()&&l.kO()&&l instanceof IB)R.policy.OF?l.FS()?(l.dispose(),R.Z.length===0?R.loader.pS():(R=R.Z[0],R instanceof IB&&R.zK()&&R.qw())):l.oU()&&R.loader.handleError(l.hJ(),l.K$()):(l.dispose(),R.loader.pS());else{if(l.eV())l instanceof IB&&vHT(R.timing,l),u_k(R),Fho(R);else if(l.oU())y=R.Xx.F$(),l instanceof IB&&Juj(l.info)&&y&&R.loader.Gi(y),l instanceof kL?R.Z.pop():(y=1,l.canRetry()&&T2q(R.loader)&&(QYQ(R,l),y=0),R.loader.handleError(l.hJ(),l.K$(),y));else{if(R.loader.isSuspended&&!l.isComplete())return;Fho(R)}l.Fx()||l instanceof kL||(l.isComplete()?y=Lno(l,R.policy,R.J):(y=WnY(l,R.policy,R.J),y===1&&(R.tU= !0)),y!==0&&(f=new fT(1,l.info.x$),f.M$=y===2,cti(R,f)));R.policy.ol&&!l.isComplete()?Xnr(R.loader):R.loader.pS()}}}; Fho=function(R){for(;R.Z.length&&R.Z[0].Hr(R.PA());){var l=R.Z.shift();$DK(R,l)}R.Z.length&&$DK(R,R.Z[0])}; $DK=function(R,l){l instanceof IB&&(R.CX=l);var y=new Set(l.PK(R.PA()));y=g.u(y);for(var f=y.next();!f.done;f=y.next()){var A=f.value;if(!(f=!(l instanceof kL))){f=R.L;var K=f.nX.QS,G=yM(f.videoInfos,K);K=UEY(f,A,K);var B=G.includes(A);!f.k6.l2||K||B||f.loader.T4("sabrcpf",{fid:""+A,vfids:""+G.join("."),said:f.W||""});f=K||G.includes(A)}if(f&&(f=l.HR(A,R.PA()),G=R.policy.Vu&&Zw(f[0].Z.info.mimeType),(!(!G&&R.policy.Uo&&f.length>0&&(f[0].Z.info.IT()?Ib(R.audioTrack):Ib(R.videoTrack))>3)||l.isComplete())&& l.z3(A,R.PA())))for(A=l.uy(A,R.PA()),A=g.u(A),K=A.next();!K.done;K=A.next())if(K=K.value,R.policy.L&&l instanceof kL&&R.loader.T4("omblss",{s:K.info.YG()}),G)B=R.timing,B.LX||(B.LX=(0,g.eY)(),g.J2("fcb_r",B.LX,B.Z)),B=R,B.videoData.QS()&&B.V&&ZH(B.V)===ZH(g.jM(K.info.Z.info,B.nX.QS))&&B.Xx.publish("sabrCaptionsDataLoaded",K,B.A_.bind(B));else{B=K.info.Z.info.IT();var H=K.info.Z;if(B){var n=void 0;var m=R.L,h=(n=l.wD(R.PA()))==null?void 0:n.token;m.V&&H!==m.J?n=!0:(m.V=!1,H!==m.J&&(m.J=H,m.fK(H,m.audioTrack, h)),n=!1);if(n)continue}else n=void 0,ruo(R.L,H,(n=l.wD(R.PA()))==null?void 0:n.token);n=B?R.audioTrack:R.videoTrack;l instanceof kL&&(n.V=!1,l instanceof kL&&(B?$Oi(R.timing):QXs(R.timing)));try{dd(n,f,K)}catch(c){K=W9(c),R.loader.handleError(K.errorCode,K.details,K.severity),n.VD(),R.Fq(!1,"pushSlice"),qG(R.loader)}}}}; QYQ=function(R,l){R.policy.B?R.Z.splice(R.Z.indexOf(l)).forEach(function(y){y.dispose()}):(R.Z.pop(),l==null||l.dispose())}; e1r=function(R,l,y){for(var f=[],A=0;A0)for(var l=g.u(R.videoData.sabrContextUpdates.keys()),y=l.next();!y.done;y=l.next()){y=y.value;var f=void 0;((f=R.videoData.sabrContextUpdates.get(y))==null?0:f.sendByDefault)&&R.videoData.uQ.add(y)}if(R.policy.B&&R.Z.length)for(l=g.u(R.Z),y=l.next();!y.done;y=l.next())(y=y.value.ZV())&&y.type&&y.sendByDefault&&R.videoData.uQ.add(y.type)}; bCo=function(R){R.policy.tF&&(R.sL=void 0,R.N2=0)}; XZj=function(R,l){if(l.oU()||l.Fx()){var y=R.loader,f=y.T4,A=l.state;R=R.PA();var K,G;if((l=(K=l.qj)==null?void 0:K.get(R))==null)l=void 0;else{K=0;R=l.PK();for(var B=0;B=l.mediaTime&&g.V(R.Xx.getPlayerState(),8)?(l.resolve([l.mediaTime,l.id]),R.Z.delete(l.id)):(l.delay.dispose(),l.delay=new g.Vg(function(){vKT(R,l)},(l.mediaTime-y)*1E3/R.Xx.getPlaybackRate()),l.delay.start())}; IP7=function(R,l,y,f){var A=this;this.L=R;this.cpn=l;this.Xx=y;this.Z=f;this.X=new Map;this.J=new Map;this.V=this.W=NaN;this.D=!1;this.qD="";this.isSeeking=!1;this.B=0;this.Y=new dDT(y);this.Tf=y.Tf;this.Xx.subscribe("SEEK_TO",function(){A.E8()}); this.Xx.subscribe("SEEK_COMPLETE",function(){xDi(A)})}; pZY=function(R,l){if(!R.isSeeking&&R.B!==l&&!isNaN(R.W)){R.B=l;var y=R.D?R.V:R.L.TL(l);(y!==R.V||R.D)&&NI9(R,y,l)}}; NI9=function(R,l,y){var f=R.X.get(l),A=R.L.getStartTime(l),K=R.L.getDuration(l);R.D=!1;R.V=l;var G=A,B;((B=f==null?void 0:f.Z)!=null?B:[R.cpn]).forEach(function(H,n){var m;n=(m=f==null?void 0:f.X[n])!=null?m:K;y>=G&&yA?kfY(R,K,R.X.get(K)):K===A&&kfY(R,K,R.X.get(K),f-R.L.getStartTime(K))})}; UD7=function(R,l,y,f){l!==R.qD&&(R.Xx.T4("ssevt",{tag:R.Z===0?"sstd-cr":R.Z===1?"sstd-tm":R.Z===2?"sstd-poll":R.Z===3?"sstd-poll100":"sstd-unknown",ad:R.cpn!==l,cpn:l,st:y.toFixed(3),late:Math.round(R.isSeeking?0:(f-y)*1E3)}),R.qD=l)}; DDi=function(R){var l=g.u(R.split("."));R=l.next().value;l=l.next().value;return[Number(R),l]}; jYK=function(R,l,y,f){y=l+"."+y;R.J.has(l)?R.J.get(l).push(y):R.J.set(l,[y]);R.Z===1&&z1k(R.Y,f,y).then(function(A){var K=g.u(A);A=K.next().value;K=K.next().value;K=g.u(DDi(K));K.next();K=K.next().value;UD7(R,K,A,rtJ(R.Y))}); R.Z===0&&(R.Tf.CP("transitiondetector",y),l=(f+R.Xx.fA())*1E3,R.Tf.OS([new g.Jq(l,l+5E3,{id:y,namespace:"transitiondetector",priority:9})]))}; ZCY=function(R,l,y,f,A){this.loader=R;this.policy=l;this.schedule=y;this.BP=f;this.B=A;this.LX=NaN;this.X=this.V=this.Y=null;this.Z=this.J=this.D=this.startTimeSecs=NaN;this.L=!1;this.W=NaN}; Jt9=function(R,l,y,f,A,K){return l.tO&&l.Qb&&y===3?new ZCY(R,l,f,A,K):null}; gKk=function(R,l){if(R.policy.Zc){var y=l.info.r7,f=xh(R.schedule);l=l.index.QN();y=Math.max(1,f/y);R.W=Math.round(Math.max(((y-1)*l+R.policy.eZ)/y,l-R.policy.L7)*1E3)}}; qUj=function(R,l){var y=Date.now()/1E3,f=y-R.startTimeSecs,A=y-R.D,K=A>=R.policy.EV,G=!1;if(K){var B=0;!isNaN(l)&&l>R.J&&(B=l-R.J,R.J=l);B/A=R.policy.L7&&!R.L;if(!K&&!y&&VUs(R,l))return NaN;y&&(R.L=!0);a:{f=G;y=(0,g.eY)()/1E3-(R.BP.hL()||0)-R.V.Z-R.policy.eZ;K=R.X.startTime;y=K+y;if(f){if(isNaN(l)){YL(R,NaN,"n",l);K=NaN;break a}f=l-R.policy.XW;f=K.Y&&f<=K.D){f=!0;break a}f=!1}f=!f}if(f)return R.T4("ostmf",{ct:R.getCurrentTime(),a:l.Z.info.IT()}),!1;(R=R.Yb)!=null&&(R.n_.get(y).Xk=!0);return!0}; lNj=function(R){if(!R.nX.QS)return!0;var l=R.Xx.getVideoData();if(R.Xx.k8())return R.T4("ombpa",{}),!1;var y,f;if(!!((y=R.B)==null?0:(f=y.tE)==null?0:f.E6U)!==R.nX.Rz)return R.T4("ombplmm",{}),!1;y=l.LA||l.liveUtcStartSeconds||l.Qb;if(R.nX.Rz&&y)return R.T4("ombplst",{}),!1;if(R.nX.B)return R.T4("ombab",{}),!1;y=Date.now();return V6(R.nX)&&!isNaN(R.xb)&&y-R.xb>R.policy.Ll*1E3?(R.T4("ombttl",{}),!1):R.nX.ZG&&R.nX.Y||!R.policy.Mk&&R.nX.isPremiere||Tf(l)!==0&&!R.policy.Z||l.C("html5_disable_onesie_media_for_mosaic")&& lK(l)||l.h1()&&!l.C("html5_enable_onesie_media_for_lifa")&&l.isDaiEnabled()&&l.enableServerStitchedDai||l.C("html5_disable_onesie_media_for_lifa_eligible")&&RE(l)?!1:!0}; yzT=function(R,l){var y=l.Z,f=R.nX.QS;if(lNj(R))if(R.Yb&&R.Yb.n_.has(ZH(g.jM(y.info,f)))){if(f=ZH(g.jM(y.info,f)),RYY(R,l)){var A=new A1(R.Yb.HR(f)),K=function(G){try{if(G.oU())R.handleError(G.hJ(),G.K$()),Uf(l,G),GL(G.info)&&Yx(R.J,l,y,!0),R.pS();else if(eBk(R.J,G)){var B;(B=R.L)==null||NDs(B,G.info,R.LX);R.pS()}}catch(H){G=W9(H),R.handleError(G.errorCode,G.details,G.severity),R.VD()}}; y.L=!0;KK(A)&&(Tp(l,new D$(R.policy,f,A,R.Yb,K)),Nv(R.timing))}}else R.T4("ombfmt",{})}; fN7=function(R,l){l=l||R.videoTrack&&R.videoTrack.X&&R.videoTrack.X.startTime||R.getCurrentTime();var y=My,f=R.videoTrack,A=R.Z;l=A.nextVideo&&A.nextVideo.index.TL(l)||0;A.Dq!==l&&(A.P1={},A.Dq=l,lI(A,A.Z));l=!A.Z.isLocked()&&A.B>-1&&(0,g.eY)()-A.Bl.Z&&l.reason==="b";f||A||y?(R.Xx.L$({reattachOnConstraint:f?"u":A?"drm":"perf",lo:l.X,up:l.Z}),R.policy.kP||(R.Y.Z.X=!1)):(R.policy.kP&&(R.Y.Z.X=!1),qG(R))}}else if(!tgZ(R.Z,l)&&R.videoTrack){R.logger.debug(function(){return"Setting constraint: r="+l.reason+" u="+l.Z}); y=R.Z.Z;nTY(R,MgQ(R.Z,l));fN7(R);f=l.isLocked()&&l.reason==="m"&&R.Z.Yb;A=R.policy.AJ&&l.reason==="l"&&jL(R.videoTrack);y=y.Z>l.Z&&l.reason==="b";var K=R.Z.tU&&!ao();f||A||y||K?R.Xx.L$({reattachOnConstraint:f?"u":A?"drm":K?"codec":"perf"}):qG(R)}}; oT9=function(R,l,y){if((!R.z4||Hs(R.z4)&&!R.policy.LG)&&!R.dh.isSeeking()&&(R.policy.Z||jL(l)&&l.Z.Gf()&&R.Z.LX)){var f=R.getCurrentTime()+t9Z(R.W,l,y);R.logger.debug(function(){return"Clearing back to "+f.toFixed(3)}); RBT(l,f)}}; nTY=function(R,l){l&&(R.logger.debug(function(){return"Logging new format: "+gy(l.video.info)}),hYi(R.Xx,new Vm(l.video,l.reason))); if(R.Z.UL){var y=fVQ(R.Z,"a");R.Xx.ek(new Vm(y.audio,y.reason))}}; qG=function(R){g.Cz(R.ol)}; Xnr=function(R){R.policy.ol&&R.policy.ix&&Math.min(M5o(R.videoTrack),M5o(R.audioTrack))*1E3>R.policy.Yt?g.Cz(R.vZ):R.pS()}; czj=function(R,l){var y=(0,g.eY)()-l,f=Ib(R.audioTrack,!0)*1E3,A=Ib(R.videoTrack,!0)*1E3;R.logger.debug(function(){return"Appends paused for "+y}); if(R.policy.L&&(R.T4("apdpe",{dur:y.toFixed(),abuf:f.toFixed(),vbuf:A.toFixed()}),gd(R.policy))){var K=Uo(R.W);R.T4("sdps",{ct:l,ah:f.toFixed(),vh:A.toFixed(),mr:SZ(R.W,R.SU,K),bw:K.toFixed(),js:R.isSeeking(),re:+R.SU,ps:(R.policy.xt||"").toString(),rn:(R.policy.aq||"").toString()})}}; ET9=function(R){if(GOT(R.videoTrack))return R.logger.debug("Pausing appends for server-selectable format"),"ssf";if(R.policy.jS&&Zi(R.videoTrack)&&Zi(R.audioTrack))return"updateEnd";if(SL(R.audioTrack)||SL(R.videoTrack)&&R.videoTrack.Z.info.H1!=="f")return"";if(R.dh.isSeeking()){var l=R.W;var y=R.videoTrack;var f=R.audioTrack;if(l.policy.Z){var A=l.policy.B$;gd(l.policy)&&(A=SZ(l,!1,Uo(l)));l=A;y=Ib(f,!0)>=l&&Ib(y,!0)>=l}else y.L.length||f.L.length?(A=y.Z.info.r7+f.Z.info.r7,A=10*(1-Uo(l)/A),l=Math.max(A, l.policy.B$),y=Ib(f,!0)>=l&&Ib(y,!0)>=l):y=!0;if(!y)return"abr";y=R.videoTrack;if(y.L.length>0&&y.Y.X.length===1&&XCs(y.Y).info.V360);f=gd(R.policy)&&R.policy.IL;if(!R.SU||!f&&y)return"";y=R.policy.H$;gd(R.policy)&&(y=SZ(R.W,R.SU,Uo(R.W)));y=yuc(R.videoTrack,R.getCurrentTime(),y)||yuc(R.audioTrack,R.getCurrentTime(), y);return gd(R.policy)?y?"mbnm":"":(R.videoTrack.L.length>0||R.audioTrack.L.length>0||tY(R.J,R.videoTrack,R.audioTrack)||tY(R.J,R.audioTrack,R.videoTrack))&&y?"nord":""}; Wvq=function(R){if(R.V){var l=R.V.pS(R.audioTrack,Ro(R.z4.X.uj()));l&&R.Xx.seekTo(l,{zO:!0,b8:"pollSubsegmentReadahead",Jf:!0})}}; QEY=function(R,l,y){if(R.policy.jS&&Zi(l))return!1;if(y.BL())return!0;if(!y.Bx())return!1;var f=Mk(l);if(!f||f.info.type===6)return!1;var A;if(R.policy.Ag||((A=R.L)==null?0:jXr(A,l,f.info.eS)))R.CX=0;else return R.dh.isSeeking()&&qG(R),R.CX=R.CX||(0,g.eY)(),!1;if(!MG(R,l,y,f.info))return!1;if(R.nX.X&&f.info.X===0){if(A=LvQ(l,y,f)){var K=XB(l);R.T4("initchg",{it:f.info.Z.info.id,sr:!!K&&K.Z===f.info.Z,ty:f.info.type,seg:f.info.eS})}K=g.Uu(f.info.Z.info);R.policy.US&&K&&!A&&fu7(f)}K=R.V&&!!R.V.Y&&l.Z.info.audio; A=R.nX.isManifestless||f.J;if(!(R.nX.X&&f.info.X!==0||A&&!K)&&OM9(R,l,y,f))return!0;if(K)return!1;K=Vu(R,l);K=R.getCurrentTime()+K;if(f.info.Y>K)return R.policy.Z&&iMj(R,l),R.policy.Wv&&BMi(l.Y,K,!1),!1;PK7(R,l);var G;R.policy.J7&&y===((G=R.z4)==null?void 0:G.Z)&&R.uQ&&(y.Lz()===0?(R.uQ=!1,R.policy.J7=!1):R.B1=y.Lz());if(!uEY(R,y,f,l))return!1;R.policy.jS&&f.info.nf()?(R.Xx.U().PZ()&&R.T4("eosl",{ls:f.info.YG()}),f.isLocked=!0):(l.zA(f),y1Z(R.Z,f.info),R.logger.debug(function(){return"Appended "+ f.info.YG()+", buffered: "+Co(y.uj())})); A&&Fvj(R,f.info.Z.hP);return!0}; iMj=function(R,l){l===R.videoTrack?R.v1=R.v1||(0,g.eY)():R.P1=R.P1||(0,g.eY)()}; PK7=function(R,l){l===R.videoTrack?R.v1=0:R.P1=0}; uEY=function(R,l,y,f){var A=R.policy.nA?(0,g.eY)():0,K=y.J&&y.info.Z.Z||void 0,G=y.X;y.J&&(G=$99(R,y,G)||G);var B=HO(G);G=R.policy.nA?(0,g.eY)():0;l=eYo(R,l,B,y.info,K);(f=f.B)!=null&&(K=y.info,A=G-A,G=(0,g.eY)()-G,!f.X||ioQ(f.X,K)&&f.X.eS===K.eS||f.flush(),f.Y+=A,f.L+=G,A=1,!f.X&&K.X&&(A=2),ab(f,A,l),G=Math.ceil(K.X/1024),A===2&&f.Z.add(G),f.Z.add(Math.ceil((K.X+K.L)/1024)-G),f.X=K);R.sL=0;if(l===0)return R.jS&&(R.logger.debug("Retry succeed, back to normal append logic."),R.jS=!1,R.nA=!1),R.ZL= 0,!0;if(l===2||l===5)return bMq(R,"checked",l,y.info),!1;if(l===1){if(!R.jS)return R.logger.debug("QuotaExceeded, retrying."),R.jS=!0,!1;if(!R.nA)return R.nA=!0,R.Xx.seekTo(R.getCurrentTime(),{b8:"quotaExceeded",Jf:!0}),!1;y.info.fJ()?(A=R.policy,A.CX=Math.floor(A.CX*.8),A.xb=Math.floor(A.xb*.8)):(A=R.policy,A.uQ=Math.floor(A.uQ*.8),A.xb=Math.floor(A.xb*.8));R.policy.Z?qv(R.Y.Z,y.info.Z,!1):fu(R.Z,y.info.Z)}R.Xx.L$({reattachOnAppend:l});return!1}; $99=function(R,l,y){var f;if(f=R.policy.GW&&R.z4&&!R.z4.W&&!R.Xx.Jp())l=l.info.Z.info,f=l.ij()&&zC(l)&&l.video&&l.video.width<3840&&l.video.width>l.video.height;if(f&&(R.z4.W=!0,P9('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return y=eu7(y),R.policy.L&&R.T4("sp4k",{s:!!y}),y}; bMq=function(R,l,y,f){var A="fmt.unplayable",K=1;y===5||y===3?(A="fmt.unparseable",R.policy.Z?!f.Z.info.video||tE(R.Y.Z).size>0||qv(R.Y.Z,f.Z,!1):!f.Z.info.video||tE(R.Z.J).size>0||fu(R.Z,f.Z)):y===2&&(R.ZL<15?(R.ZL++,A="html5.invalidstate",K=0):A="fmt.unplayable");f=y6(f);var G;f.mrs=(G=R.z4)==null?void 0:h2(G);f.origin=l;f.reason=y;R.policy.cC&&(f.trg="appenderr");R.handleError(A,f,K)}; Dqr=function(R,l,y,f,A){var K=R.nX;var G=R.policy.Z,B=!1,H=-1;for(E in K.Z){var n=Zw(K.Z[E].info.mimeType)||K.Z[E].info.fJ();if(f===n)if(n=K.Z[E].index,n.tf(l.eS)){B=n;var m=l,h=B.nG(m.eS);h&&h.startTime!==m.startTime?(B.segments=[],B.ZA(m),B=!0):B=!1;B?H=l.eS:!l.pending&&G&&(m=n.getDuration(l.eS),m!==l.duration&&(K.publish("clienttemp","mfldurUpdate",{itag:K.Z[E].info.itag,seg:l.eS,od:m,nd:l.duration},!1),n.ZA(l),B=!0))}else n.ZA(l),B=!0}H>=0&&(G={},K.publish("clienttemp","resetMflIndex",(G[f?"v": "a"]=H,G),!1));K=B;oMZ(R.dh,l,f,K);if(R.policy.iQ&&R.policy.X&&(H=l.I2||null)){var c;G=(c=R.X)==null?void 0:TIZ(c).requestNumber;if((c=R.Dq)!=null){if(c.X.has(H.identifier)){var E=c.X.get(H.identifier);E.event=H.event;E.startTimeSecs=H.startSecs;E.G9=H.G9}else c.X.set(H.identifier,{event:H.event,startTimeSecs:H.startSecs,G9:H.G9,fl:[]});c.L&&G>-1&&Gkg(R.nX)&&(R.nX.Dq=l.startTime+(isNaN(R.timestampOffset)? 0:R.timestampOffset),R.dh.isSeeking()&&R.dh.Z5)return R.sL= 0,R.Xx.L$({initSegStuck:1,as:f.info.YG()}),!0}else R.sL=0,R.OF=f;R.policy.rJ&&(y.abort(),(G=l.B)!=null&&(ab(G,4),G.flush()));A=eYo(R,y,K,H,A);var n;(n=l.B)==null||ngZ(n,A,H);if(A!==0)return Xd7(R,A,f),!0;f.info.fJ()?XUs(R.timing):TDK(R.timing);R.logger.debug(function(){return"Appended init for "+f.info.Z.info.id}); Fvj(R,f.info.Z.hP);return y.zc()}; LvQ=function(R,l,y){if(l.Jj()==null){R=XB(R);if(!(l=!R||R.Z!==y.info.Z)){a:if(R=R.B,y=y.info.B,R.length!==y.length)y=!1;else{for(l=0;l1)return 6;G.P1=new g.Vg(function(){var B=Mk(G);R.Fx()||B==null||!B.isLocked?R.Xx.U().PZ()&&R.T4("eosl",{delayA:B==null?void 0:B.info.YG()}):Tno(G)?(R.Xx.U().PZ()&&R.T4("eosl",{dunlock:B==null?void 0:B.info.YG()}),d9k(R,G===R.audioTrack)):(R.T4("nue",{ls:B.info.YG()}),B.info.LX+=1,R.z4&&R.cj())},1E4,R); R.Xx.U().PZ()&&R.T4("eosl",{delayS:f.YG()});G.P1.start()}R.policy.Qc&&(f==null?void 0:f.Z)instanceof s6&&f.nf()&&R.T4("poseos",{itag:f.Z.info.itag,seg:f.eS,lseg:f.Z.index.Wl(),es:f.Z.index.L});l.appendBuffer(y,f,A)}catch(B){if(B instanceof DOMException){if(B.code===11)return 2;if(B.code===12)return 5;if(B.code===22||B.message.indexOf("Not enough storage")===0)return l=Object.assign({name:"QuotaExceededError",buffered:Co(l.uj()).replace(/,/g,"_"),vheap:wd(R.videoTrack),aheap:wd(R.audioTrack),message:g.Xu(B.message, 3),track:R.z4?l===R.z4.X?"v":"a":"u"},tUZ(R.policy.Sg)),R.handleError("player.exception",l),1;g.Tw(B)}return 4}return R.z4.KM()?3:0}; Ye=function(R,l,y){R.policy.jo&&Kvj(R,y.b8||"unknown");R.Xx.seekTo(l,y)}; Fvj=function(R,l){l&&R.Xx.Ff(new ck(l.key,l.type))}; Of=function(R,l){R.Xx.oZ(l)}; Vu=function(R,l){if(R.jS&&!R.SU)return 3;if(R.isSuspended)return 1;var y;if((y=R.z4)==null?0:y.z4&&y.z4.streaming===!1)return 4;y=(l.Z.info.audio?R.policy.uQ:R.policy.CX)/(l.r7*R.policy.qA);if(R.policy.xO>0&&R.z4&&Hs(R.z4)&&(l=l.Z.info.video?R.z4.X:R.z4.Z)&&!l.zc()){l=l.uj();var f=tO(l,R.getCurrentTime());f>=0&&(l=R.getCurrentTime()-l.start(f),y+=Math.max(0,Math.min(l-R.policy.xO,R.policy.GS)))}R.policy.xb>0&&(y=Math.min(y,R.policy.xb));return y}; Lhk=function(R,l){return(Vu(R,l)+R.policy.Gt)*l.r7}; vTi=function(R){R.W1&&!R.isSuspended&&I_(R.schedule)&&(rzY(R,R.W1),R.W1="")}; rzY=function(R,l){xe(l,"cms",function(y){R.policy.L&&R.T4("pathprobe",y)},function(y){R.Xx.handleError(y)})}; zYc=function(R,l){if(R.z4&&R.z4.Y&&!R.z4.KM()&&(l.r9=Ib(R.videoTrack),l.X=Ib(R.audioTrack),R.policy.L)){var y=wd(R.videoTrack),f=wd(R.audioTrack),A=Co(R.z4.X.uj(),"_",5),K=Co(R.z4.Z.uj(),"_",5);Object.assign(l.Z,{lvq:y,laq:f,lvb:A,lab:K})}l.bandwidthEstimate=Nk(R.W);var G;(G=R.audioTrack.B)==null||G.flush();var B;(B=R.videoTrack.B)==null||B.flush();R.logger.debug(function(){return hO(l.Z)})}; wdK=function(R,l){R.LX=l;R.L&&(R.L.L=l);R.LX.kd(R.videoTrack.Z.info.ij());R.J.X=R.LX;R.policy.X&&(R.X.W=R.LX)}; pdY=function(R,l){if(R.z4&&R.z4.X){if(R.policy.L2){var y=B29(R.audioTrack);if(y&&y.IT()){var f=R.Xx;if(f.dl&&(f.dl.Z=y,y=f.VS,y.qoe)){y=y.qoe;f=f.dl;var A=g.lV(y.provider);x99(y,A,f)}}}R.policy.V6&&(y=B29(R.videoTrack))&&y.fJ()&&(f=R.Xx,f.Uk&&(f.Uk.Z=y,y=f.VS,y.qoe&&INs(y.qoe,f.Uk)));l-=isNaN(R.timestampOffset)?0:R.timestampOffset;R.getCurrentTime()!==l&&R.resume();R.dh.isSeeking()&&R.z4&&!R.z4.KM()&&(f=R.getCurrentTime()<=l&&l=l&&YU9(R,f.startTime,!1)}); return y&&y.startTimeR.getCurrentTime())return y.start/1E3;return Infinity}; PpK=function(R){if(R.Xx.getVideoData().isLivePlayback)return!1;var l=R.Xx.t1();if(!l)return!1;l=l.getDuration();if(R.z4&&R.z4.Z&&R.z4.X){var y=R.getCurrentTime(),f=R.z4.Z.uj();R=R.z4.X.uj();f=f?Mw(f,y):y;y=R?Mw(R,y):y;y=Math.min(f,y);l=isNaN(y)?!1:y>=l-.01}else l=!1;return l}; Xd7=function(R,l,y){R.policy.BV&&WZ(R.Xx.getVideoData())?(R.Xx.Zt()||bMq(R,"sepInit",l,y.info),D9Y(R.Xx,"sie")):bMq(R,"sepInit",l,y.info)}; T2q=function(R){return R.Xx.NS()0){var f=y.Z.shift();Jzr(y,f.info)}y.Z.length>0&&(f=y.Z[0].time-(0,g.eY)(),y.X.start(Math.max(0,f)))}},0); g.U(this,this.X);l.subscribe("widevine_set_need_key_info",this.Y,this)}; Jzr=function(R,l){a:{var y=l.cryptoPeriodIndex;if(isNaN(y)&&R.L.size>0)y=!0;else{for(var f=g.u(R.L.values()),A=f.next();!A.done;A=f.next())if(A.value.cryptoPeriodIndex===y){y=!0;break a}y=!1}}R.publish("log_qoe",{wvagt:"reqnews",canskip:y});y||R.publish("rotated_need_key_info_ready",l)}; gTr=function(){var R={};var l=R.url;var y=R.interval;R=R.retries;this.url=l;this.interval=y;this.retries=R}; VFs=function(R,l){this.statusCode=R;this.message=l;this.X=this.heartbeatParams=this.errorMessage=null;this.Z={};this.nextFairplayKeyId=null}; CKJ=function(R,l,y){y=y===void 0?"":y;g.p.call(this);this.message=R;this.requestNumber=l;this.timer=y;this.onError=this.onSuccess=null;this.Z=new g.wJ(5E3,2E4,.2)}; qWJ=function(R,l,y){R.onSuccess=l;R.onError=y}; RZZ=function(R,l,y,f){var A={timeout:3E4,onSuccess:function(K){if(!R.Fx()){ba("drm_net_r",void 0,R.timer);var G=K.status==="LICENSE_STATUS_OK"?0:9999,B=null;if(K.license)try{B=To(K.license)}catch(W){g.Tw(W)}if(G!==0||B){B=new VFs(G,B);G!==0&&K.reason&&(B.errorMessage=K.reason);if(K.authorizedFormats){G={};for(var H=[],n={},m=g.u(K.authorizedFormats),h=m.next();!h.done;h=m.next())if(h=h.value,h.trackType&&h.keyId){var c=MLT[h.trackType];if(c){c==="HD"&&K.isHd720&&(c="HD720");h.isHdr&&(c+="HDR");G[c]|| (H.push(c),G[c]=!0);var E=null;try{E=To(h.keyId)}catch(W){g.Tw(W)}E&&(n[g.b4(E,4)]=c)}}B.X=H;B.Z=n}K.nextFairplayKeyId&&(B.nextFairplayKeyId=K.nextFairplayKeyId);K.sabrLicenseConstraint&&(B.sabrLicenseConstraint=To(K.sabrLicenseConstraint));K=B}else K=null;if(K)R.onSuccess(K,R.requestNumber);else R.onError(R,"drm.net","t.p;p.i")}}, onError:function(K){if(!R.Fx())if(K&&K.error)K=K.error,R.onError(R,"drm.net.badstatus","t.r;p.i;c."+K.code+";s."+K.status,K.code);else R.onError(R,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){R.onError(R,"drm.net","rt.req."+R.requestNumber)}}; f&&(A.PS="Bearer "+f);g.C1(y,"player/get_drm_license",l,A)}; lhq=function(R,l,y,f){g.Ae.call(this);this.videoData=R;this.Zq=l;this.W=y;this.sessionId=f;this.J={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.LX=this.Yb=!1;this.L=null;this.xb=[];this.Y=[];this.authorizedFormats=[];this.V=!1;this.Z={};this.status="";this.D=NaN;this.X=R.J;this.cryptoPeriodIndex=y.cryptoPeriodIndex;R={};Object.assign(R,this.Zq.Z);R.cpn=this.videoData.clientPlaybackNonce;this.videoData.sL&&(R.vvt=this.videoData.sL,this.videoData.mdxEnvironment&&(R.mdx_environment= this.videoData.mdxEnvironment));this.Zq.xb&&(R.authuser=this.Zq.xb);this.Zq.pageId&&(R.pageid=this.Zq.pageId);isNaN(this.cryptoPeriodIndex)||(R.cpi=this.cryptoPeriodIndex.toString());var A=(A=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.pp()))?A[1]:"";A==="ATV"&&(R.cdt=A);this.J=R;this.J.session_id=f;this.B=!0;this.X.flavor==="widevine"&&(this.J.hdr="1");this.X.flavor==="playready"&&(l=Number(EN(l.experiments,"playready_first_play_expiration")),!isNaN(l)&&l>=0&&(this.J.mfpe=""+l),this.B=!1);l="";g.a_(this.X)? GO(this.X)?(f=y.X)&&(l="https://www.youtube.com/api/drm/fps?ek="+F$j(f)):(l=y.initData.subarray(4),l=new Uint16Array(l.buffer,l.byteOffset,l.byteLength/2),l=String.fromCharCode.apply(null,l).replace("skd://","https://")):l=this.X.X;this.baseUrl=l;this.fairplayKeyId=uy(this.baseUrl,"ek")||"";if(l=uy(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(l);this.xb=y.ij?[g.b4(y.initData,4)]:y.L;GV(this,{sessioninit:y.cryptoPeriodIndex});this.status="in"}; KDK=function(R,l){GV(R,{createkeysession:1});R.status="gr";ba("drm_gk_s",void 0,R.videoData.B);R.url=ypT(R);try{R.L=l.createSession(R.W,function(y){GV(R,{m:y})})}catch(y){l="t.g"; y instanceof DOMException&&(l+=";c."+y.code);R.publish("licenseerror","drm.unavailable",1,l,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}R.L&&(fhi(R.L,function(y,f){Ap9(R,y,f)},function(y,f,A){if(!R.Fx()){f=void 0; var K=1;g.a_(R.X)&&g.qE(R.Zq)&&R.Zq.C("html5_enable_safari_fairplay")&&A===1212433232&&(f="ERROR_HDCP",K=R.Zq.C("html5_safari_fairplay_ignore_hdcp")?0:K);R.error("drm.keyerror",K,y,f)}},function(){R.Fx()||(GV(R,{onkyadd:1}),R.LX||(R.publish("sessionready"),R.LX=!0))},function(y){R.Jv(y)}),g.U(R,R.L))}; ypT=function(R){var l=R.baseUrl;Wpj(l)||R.error("drm.net",2,"t.x");if(!uy(l,"fexp")){var y=["23898307","23914062","23916106","23883098"].filter(function(A){return R.Zq.experiments.experiments[A]}); y.length>0&&(R.J.fexp=y.join())}y=g.u(Object.keys(R.J));for(var f=y.next();!f.done;f=y.next())f=f.value,l=JoK(l,f,R.J[f]);return l}; Ap9=function(R,l,y){if(!R.Fx())if(l){GV(R,{onkmtyp:y});R.status="km";switch(y){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":G$9(R,l);return;default:R.publish("ctmp","message_type",{t:y,l:l.byteLength})}R.Yb||(ba("drm_gk_f",void 0,R.videoData.B),R.Yb=!0,R.publish("newsession",R));if(fI(R.X)&&(l=ah7(l),!l))return;l=new CKJ(l,++R.requestNumber,R.videoData.B);qWJ(l,function(f){sQQ(R,f)},function(f,A,K){if(!R.Fx()){var G=0; f.Z.X>=3&&(G=1,A="drm.net.retryexhausted");GV(R,{onlcsrqerr:A,info:K});R.error(A,G,K);R.shouldRetry(Eu(G),f)&&BjJ(R,f)}}); g.U(R,l);HTi(R,l)}else R.error("drm.unavailable",1,"km.empty")}; G$9=function(R,l){GV(R,{sdpvrq:1});R.D=Date.now();if(R.X.flavor!=="widevine")R.error("drm.provision",1,"e.flavor;f."+R.X.flavor+";l."+l.byteLength);else{var y={cpn:R.videoData.clientPlaybackNonce};Object.assign(y,R.Zq.Z);y=g.L4("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",y);l={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, l)}),responseType:"arraybuffer"};g.Xy(y,l,3,500).then(j9(function(f){f=f.xhr;if(!R.Fx()){f=new Uint8Array(f.response);var A=String.fromCharCode.apply(null,f);try{var K=JSON.parse(A)}catch(G){}K&&K.signedResponse?(R.publish("ctmp","drminfo",{provisioning:1}),K=(Date.now()-R.D)/1E3,R.D=NaN,R.publish("ctmp","provs",{et:K.toFixed(3)}),R.L&&R.L.update(f)):(K=K&&K.error&&K.error.message,f="e.parse",K&&(f+=";m."+K),R.error("drm.provision",1,f))}}),j9(function(f){R.Fx()||R.error("drm.provision",1,"e."+f.errorCode+ ";c."+(f.xhr&&f.xhr.status))}))}}; aP=function(R){var l;if(l=R.B&&R.L!=null)R=R.L,l=!(!R.Z||!R.Z.keyStatuses);return l}; HTi=function(R,l){R.status="km";ba("drm_net_s",void 0,R.videoData.B);var y=new g.VY(R.Zq.lV),f={context:g.Hv(y.config_||g.Bv())};f.drmSystem=nLc[R.X.flavor];f.videoId=R.videoData.videoId;f.cpn=R.videoData.clientPlaybackNonce;f.sessionId=R.sessionId;f.licenseRequest=g.b4(l.message);f.drmParams=R.videoData.drmParams;isNaN(R.cryptoPeriodIndex)||(f.isKeyRotated=!0,f.cryptoPeriodIndex=R.cryptoPeriodIndex);var A,K,G=!!((A=R.videoData.X)==null?0:(K=A.video)==null?0:K.isHdr());f.drmVideoFeature=G?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(f.context&&f.context.client){if(A=R.Zq.Z)f.context.client.deviceMake=A.cbrand,f.context.client.deviceModel=A.cmodel,f.context.client.browserName=A.cbr,f.context.client.browserVersion=A.cbrver,f.context.client.osName=A.cos,f.context.client.osVersion=A.cosver;f.context.user=f.context.user||{};f.context.request=f.context.request||{};R.videoData.sL&&(f.context.user.credentialTransferTokens=[{token:R.videoData.sL,scope:"VIDEO"}]);f.context.request.mdxEnvironment=R.videoData.mdxEnvironment|| f.context.request.mdxEnvironment;R.videoData.RV&&(f.context.user.kidsParent={oauthToken:R.videoData.RV});g.a_(R.X)&&(f.fairplayKeyId=g.b4(QLc(R.fairplayKeyId)));g.OS(R.Zq,g.MD(R.videoData)).then(function(B){RZZ(l,f,y,B);R.status="rs"})}else R.error("drm.net",2,"t.r;ic.0")}; sQQ=function(R,l){if(!R.Fx())if(GV(R,{onlcsrsp:1}),R.status="rr",l.statusCode!==0)R.error("drm.auth",1,"t.f;c."+l.statusCode,l.errorMessage||void 0);else{ba("drm_kr_s",void 0,R.videoData.B);if(l.heartbeatParams&&l.heartbeatParams.url&&R.videoData.C("outertube_streaming_data_always_use_staging_license_service")){var y=R.X.X.match(/(.*)youtube.com/g);y&&(l.heartbeatParams.url=y[0]+l.heartbeatParams.url)}l.heartbeatParams&&R.publish("newlicense",l.heartbeatParams);l.X&&(R.Y=l.X,R.videoData.Eo||R.publish("newlicense", new gTr),R.videoData.Eo=!0,R.V=Dx(R.Y,function(f){return f.includes("HDR")})); l.Z&&(R.Zq.C("html5_enable_vp9_fairplay")&&GO(R.X)?(y=g.b4(QLc(R.fairplayKeyId),4),R.Z[y]={type:l.Z[y],status:"unknown"}):R.Z=fp(l.Z,function(f){return{type:f,status:"unknown"}})); KI(R.X)&&(l.message=j1c(g.b4(l.message)));R.L&&(GV(R,{updtks:1}),R.status="ku",R.L.update(l.message).then(function(){ba("drm_kr_f",void 0,R.videoData.B);aP(R)||(GV(R,{ksApiUnsup:1}),R.publish("keystatuseschange",R))},function(f){f="msuf.req."+R.requestNumber+";msg."+g.Xu(f.message,3); R.error("drm.keyerror",1,f)})); g.a_(R.X)&&R.publish("fairplay_next_need_key_info",R.baseUrl,l.nextFairplayKeyId);R.Zq.C("html5_enable_vp9_fairplay")&&GO(R.X)&&R.publish("qualitychange",mGi(R.Y));l.sabrLicenseConstraint&&R.publish("sabrlicenseconstraint",l.sabrLicenseConstraint)}}; BjJ=function(R,l){var y=l.Z.getValue();y=new g.Vg(function(){HTi(R,l)},y); g.U(R,y);y.start();g.x2(l.Z);GV(R,{rtyrq:1})}; oLr=function(R,l){for(var y=[],f=g.u(Object.keys(R.Z)),A=f.next();!A.done;A=f.next())A=A.value,y.push(A+"_"+R.Z[A].type+"_"+R.Z[A].status);return y.join(l)}; hZq=function(R){var l={};l[R.status]=aP(R)?oLr(R,"."):R.Y.join(".");return l}; cpk=function(R,l,y){var f={};f.isHdr=l.includes("HDR");switch(l.replace("HDR","").replace("720","")){case "AUDIO":f.trackType=1;break;case "SD":f.trackType=2;break;case "HD":f.trackType=3;break;case "UHD1":f.trackType=4;break;case "UHD2":f.trackType=5;break;default:f.trackType=0}!f.trackType||y[l]||aP(R)&&!s7(R,l)||(R.authorizedFormats.push(f),y[l]=!0)}; s7=function(R,l){for(var y in R.Z)if(R.Z[y].status==="usable"&&R.Z[y].type===l)return!0;return!1}; ELZ=function(R,l){for(var y in R.Z)if(R.Z[y].type===l)return R.Z[y].status}; GV=function(R,l){var y=y===void 0?!1:y;hO(l);(y||R.Zq.PZ())&&R.publish("ctmp","drmlog",l)}; WDr=function(R){var l=R[0];R[0]=R[3];R[3]=l;l=R[1];R[1]=R[2];R[2]=l;l=R[4];R[4]=R[5];R[5]=l;l=R[6];R[6]=R[7];R[7]=l}; mGi=function(R){return g.uA(R,"UHD2")||g.uA(R,"UHD2HDR")?"highres":g.uA(R,"UHD1")||g.uA(R,"UHD1HDR")?"hd2160":g.uA(R,"HD")||g.uA(R,"HDHDR")?"hd1080":g.uA(R,"HD720")||g.uA(R,"HD720HDR")?"hd720":"large"}; ah7=function(R){for(var l="",y=0;y'.charCodeAt(f);R=R.L.createSession("video/mp4",l,y);return new BT(null,null,null,null,R)}; $GK=function(R,l){var y=R.D[l.sessionId];!y&&R.Y&&(y=R.Y,R.Y=null,y.sessionId=l.sessionId,R.D[l.sessionId]=y);return y}; u2i=function(R,l){var y=R.subarray(4);y=new Uint16Array(y.buffer,y.byteOffset,y.byteLength/2);y=String.fromCharCode.apply(null,y).match(/ek=([0-9a-f]+)/)[1];for(var f="",A=0;A19.2999?(R=y.V_,y=y.fY,y>=R&&(y=R* .75),l=(R-y)*.5,y=new AQ(l,R,R-l-y,this)):y=null;break a;case "widevine":y=new K9(l,this,R);break a;default:y=null}if(this.J=y)g.U(this,this.J),this.J.subscribe("rotated_need_key_info_ready",this.QV,this),this.J.subscribe("log_qoe",this.bE,this);Bn(this.Zq.experiments);this.bE({cks:this.Z.getInfo()})}; bTY=function(R){var l=PM9(R.Y);l?l.then(j9(function(){Tjr(R)}),j9(function(y){if(!R.Fx()){g.Tw(y); var f="t.a";y instanceof DOMException&&(f+=";n."+y.name+";m."+y.message);R.publish("licenseerror","drm.unavailable",1,f,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(R.bE({mdkrdy:1}),R.B=!0); R.LX&&(l=PM9(R.LX))}; rpk=function(R,l,y){R.v1=!0;y=new ck(l,y);R.Zq.C("html5_eme_loader_sync")&&(R.D.get(l)||R.D.set(l,y));dGk(R,y)}; dGk=function(R,l){if(!R.Fx()){R.bE({onInitData:1});if(R.Zq.C("html5_eme_loader_sync")&&R.videoData.L&&R.videoData.L.Z){var y=R.V.get(l.initData);l=R.D.get(l.initData);if(!y||!l)return;l=y;y=l.initData;R.D.remove(y);R.V.remove(y)}R.bE({initd:l.initData.length,ct:l.contentType});if(R.Z.flavor==="widevine")if(R.sL&&!R.videoData.isLivePlayback)mP(R);else{if(!(R.Zq.C("vp9_drm_live")&&R.videoData.isLivePlayback&&l.ij)){R.sL=!0;y=l.cryptoPeriodIndex;var f=l.Z;Ph9(l);l.ij||(f&&l.Z!==f?R.publish("ctmp","cpsmm", {emsg:f,pssh:l.Z}):y&&l.cryptoPeriodIndex!==y&&R.publish("ctmp","cpimm",{emsg:y,pssh:l.cryptoPeriodIndex}));R.publish("widevine_set_need_key_info",l)}}else R.QV(l)}}; Tjr=function(R){if(!R.Fx())if(R.Zq.C("html5_drm_set_server_cert")||GO(R.Z)){var l=R.Y.setServerCertificate();l?l.then(j9(function(y){R.Zq.PZ()&&R.publish("ctmp","ssc",{success:y})}),j9(function(y){R.publish("ctmp","ssce",{n:y.name, m:y.message})})).then(j9(function(){vLs(R)})):vLs(R)}else vLs(R)}; vLs=function(R){R.Fx()||(R.B=!0,R.bE({onmdkrdy:1}),mP(R))}; zZ9=function(R){return R.Z.flavor==="widevine"&&R.videoData.C("html5_drm_cpi_license_key")}; mP=function(R){if(R.v1&&R.B&&!R.Dq){for(;R.L.length;){var l=R.L[0],y=zZ9(R)?uVq(l):g.b4(l.initData);if(GO(R.Z)&&!l.X)R.L.shift();else{if(R.X.get(y))if(R.Z.flavor!=="fairplay"||GO(R.Z)){R.L.shift();continue}else R.X.delete(y);Ph9(l);break}}R.L.length&&R.createSession(R.L[0])}}; wN7=function(R){var l;if(l=g.Db()){var y;l=!((y=R.Y.X)==null||!y.getMetrics)}l&&(l=R.Y.getMetrics())&&(l=g.ER(l),R.publish("ctmp","drm",{metrics:l}))}; xG9=function(){var R=xlQ();return!(!R||R==="visible")}; Njk=function(R){var l=Ihs();l&&document.addEventListener(l,R,!1)}; pNk=function(R){var l=Ihs();l&&document.removeEventListener(l,R,!1)}; Ihs=function(){if(document.visibilityState)var R="visibilitychange";else{if(!document[oa+"VisibilityState"])return"";R=oa+"visibilitychange"}return R}; UGr=function(R){g.p.call(this);var l=this;this.Xx=R;this.ZP=0;this.D=this.X=this.J=!1;this.Y=0;this.yL=this.Xx.U();this.videoData=this.Xx.getVideoData();this.L=g.yx(this.yL.experiments,"html5_delayed_retry_count");this.Z=new g.Vg(function(){l.Xx.UY()},g.yx(this.yL.experiments,"html5_delayed_retry_delay_ms")); g.U(this,this.Z)}; ZTJ=function(R,l,y){var f=R.videoData.X,A=R.videoData.Y,K=R.yL.C("html5_disable_codec_fallback_for_drm")&&R.videoData.yT();WZ(R.Xx.getVideoData())&&R.yL.C("html5_gapless_fallback_on_qoe_restart")&&D9Y(R.Xx,"pe");if((l==="progressive.net.retryexhausted"||l==="fmt.unplayable"||l==="fmt.decode")&&!R.Xx.OC.J&&f&&f.itag==="22")return R.Xx.OC.J=!0,R.l8("qoe.restart",{reason:"fmt.unplayable.22"}),R.Xx.BM(),!0;var G=!1;if(R.videoData.isExternallyHostedPodcast){if(G=R.videoData.FeQ)y.mimeType=G.type,R.T4("3pp", {url:G.url});y.ns="3pp";R.Xx.LJ(l,1,"VIDEO_UNAVAILABLE",hO((new g.c9(l,y,1)).details));return!0}var B=R.ZP+3E4<(0,g.eY)()||R.Z.isActive();if(R.yL.C("html5_empty_src")&&R.videoData.isAd()&&l==="fmt.unplayable"&&/Empty src/.test(""+y.msg))return y.origin="emptysrc",R.l8("auth",y),!0;B||Sg7(R.Xx.n7())||(y.nonfg="paused",B=!0,R.Xx.pauseVideo());(l==="fmt.decode"||l==="fmt.unplayable")&&(A==null?0:Nw(A)||po(A))&&(f5j(R.yL.J,A.H1),y.acfallexp=A.H1,G=B=!0);!B&&R.L>0&&(R.Z.start(),B=!0,y.delayed="1",--R.L); A=R.Xx.loader;B||!((f==null?0:Iz(f))||(f==null?0:zC(f)))||K||(f5j(R.yL.J,f.H1),G=B=!0,y.cfallexp=f.H1);if(!B)return jQT(R,y);K=!1;R.J?R.ZP=(0,g.eY)():K=R.J=!0;B=R.videoData;if(B.tU){B=B.tU.rr();var H=Date.now()/1E3+1800;B=B6048E5&&CMj(R,"signature");return!1}; CMj=function(R,l){try{l={detail:"pr."+l},g.sS(R.yL)&&R.yL.C("html5_reload_by_kabuki_app")?R.Xx.LJ("qoe.restart",1,void 0,hO(l),"7"):(R.l8("qoe.restart",l),window.location.reload())}catch(y){}}; ttY=function(R,l){var y=R.yL.J;y.V=!1;y.X=!0;R.l8("qoe.restart",{e:l===void 0?"fmt.noneavailable":l,detail:"hdr"});R.Xx.UY(!0)}; Yg9=function(R,l,y,f,A,K){this.videoData=R;this.Z=l;this.reason=y;this.X=f;this.token=A;this.videoId=K}; oP=function(R,l,y){this.Zq=R;this.F5=l;this.Xx=y;this.W=this.D=this.Z=this.Y=this.V=this.X=0;this.J=!1;this.B=g.yx(this.Zq.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.L=new Map}; Rrc=function(R,l,y){!R.Zq.C("html5_tv_ignore_capable_constraint")&&g.Eb(R.Zq)&&(y=y.compose(MtK(R,l)));return y}; lk7=function(R){if(R.Xx.n7().isInline())return At;var l;R.C("html5_exponential_memory_for_sticky")?l=NE(R.Zq.R2,"sticky-lifetime")<.5?"auto":bS[KA()]:l=bS[KA()];return g.Qz("auto",l,!1,"s")}; fkY=function(R,l){var y,f=yQK(R,(y=l.Z)==null?void 0:y.videoInfos);y=R.Xx.getPlaybackRate();return y>1&&f?(R=MD9(R.Zq.J,l.Z.videoInfos,y),new Fq(0,R,!0,"o")):new Fq(0,0,!1,"o")}; yQK=function(R,l){return l&&g.Eb(R.Zq)?l.some(function(y){return y.video.fps>32}):!1}; AQc=function(R,l){if(R.C("html5_disable_ustreamer_constraint_for_sabr")&&PZ(l.videoData))return At;var y=R.Xx.hp();R.C("html5_use_video_quality_cap_for_ustreamer_constraint")&&y&&y.Se>0&&e2(l.videoData.S0)&&(R=y.Se,l.videoData.S0=new Fq(0,R,!1,"u"));return l.videoData.S0}; MtK=function(R,l){if(g.Eb(R.Zq)&&S2(R.Zq.J,j2.HEIGHT))var y=l.Z.videoInfos[0].video.qualityOrdinal;else{var f=R.Ap(!!l.Z.Z);LC(l.videoData)||ys(l.videoData);l=l.Z.videoInfos;if(l.length){var A=g.yx(R.Zq.experiments,"html5_override_oversend_fraction")||.85,K=l[0].video;K.projectionType!=="MESH"&&K.projectionType!=="EQUIRECTANGULAR"&&K.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Ju||(A=.45);R=g.yx(R.Zq.experiments,"html5_viewport_undersend_maximum");for(K=0;K0&&(y=Math.min(y,f));if(f=g.yx(R.Zq.experiments,"html5_max_vertical_resolution")){R=4320;for(A=0;Af&&(R=Math.min(R,K.video.qualityOrdinal));if(R<4320){for(A=f=0;A32){A=!0;break a}}A=!1}A&&(y=Math.min(y,f));(f=g.yx(R.Zq.experiments,"html5_live_quality_cap"))&&l.videoData.isLivePlayback&&(y=Math.min(y,f));y=GVo(R,l,y);R=g.yx(R.Zq.experiments,"html5_byterate_soft_cap");return new Fq(0,y===4320?0:y,!1,"d",R)}; sP7=function(R){var l,y,f,A;return g.w(function(K){switch(K.X){case 1:return R.Z.Z&&typeof((l=navigator.mediaCapabilities)==null?void 0:l.decodingInfo)==="function"?g.v(K,Promise.resolve(),2):K.return(Promise.resolve());case 2:y=g.u(R.Z.videoInfos),f=y.next();case 3:if(f.done){K.bQ(0);break}A=f.value;return g.v(K,vDK(A),4);case 4:f=y.next(),K.bQ(3)}})}; H9r=function(R,l){if(!l.videoData.X||R.C("html5_disable_performance_downgrade"))return!1;Date.now()-R.V>6E4&&(R.X=0);R.X++;R.V=Date.now();if(R.X!==4)return!1;BAJ(R,l.videoData.X);return!0}; miK=function(R,l,y,f){if(!l||!y||!l.videoData.X)return!1;var A=g.yx(R.Zq.experiments,"html5_df_downgrade_thresh"),K=R.C("html5_log_media_perf_info");if(!((0,g.eY)()-R.Y<5E3?0:K||A>0))return!1;var G=((0,g.eY)()-R.Y)/1E3;R.Y=(0,g.eY)();y=y.getVideoPlaybackQuality();if(!y)return!1;var B=y.droppedVideoFrames-R.D,H=y.totalVideoFrames-R.W;R.D=y.droppedVideoFrames;R.W=y.totalVideoFrames;var n=y.displayCompositedVideoFrames===0?0:y.displayCompositedVideoFrames||-1;K&&R.Zq.PZ()&&R.Xx.T4("ddf",{dr:y.droppedVideoFrames, de:y.totalVideoFrames,comp:n});if(f)return R.Z=0,!1;if((H-B)/G>R.B||!A||g.Eb(R.Zq))return!1;R.Z=(H>60?B/H:0)>A?R.Z+1:0;if(R.Z!==3)return!1;BAJ(R,l.videoData.X);R.Xx.T4("dfd",Object.assign({dr:y.droppedVideoFrames,de:y.totalVideoFrames},nYr()));return!0}; BAJ=function(R,l){var y=l.H1,f=l.video.fps,A=l.video.qualityOrdinal-1,K=R.L;l=""+y+(f>49?"p60":f>32?"p48":"");y=Yg(y,f,K);A>0&&(y=Math.min(y,A));if(!hQ.has(l)&&sA().includes(l)){var G=y;y=ae();+y[l]>0&&(G=Math.min(+y[l],G));y[l]!==G&&(y[l]=G,g.vW("yt-player-performance-cap",y,2592E3))}else if(hQ.has(l)||K==null){a:{G=G===void 0?!0:G;f=sA().slice();if(G){if(f.includes(l))break a;f.push(l)}else{if(!f.includes(l))break a;f.splice(f.indexOf(l),1)}g.vW("yt-player-performance-cap-active-set",f,2592E3)}t1.set(l, y)}else hQ.add(l),K==null||K.set(l,y);R.Xx.DE()}; oYQ=function(R,l){if(!l.Z.Z)return R.J?new Fq(0,360,!1,"b"):At;for(var y=!1,f=!1,A=g.u(l.Z.videoInfos),K=A.next();!K.done;K=A.next())Iz(K.value)?y=!0:f=!0;y=y&&f;f=0;A=g.yx(R.Zq.experiments,"html5_performance_cap_floor");A=R.Zq.X?240:A;l=g.u(l.Z.videoInfos);for(K=l.next();!K.done;K=l.next()){var G=K.value;if(!y||!Iz(G))if(K=Yg(G.H1,G.video.fps,R.L),G=G.video.qualityOrdinal,Math.max(K,A)>=G){f=G;break}}return new Fq(0,f,!1,"b")}; hr7=function(R,l){var y=R.Xx.n7();return y.isInline()&&!l.Yp?new Fq(0,480,!1,"v"):PZ(l)?At:y.isBackground()&&uq()/1E3>60&&!g.Eb(R.Zq)?new Fq(0,360,!1,"v"):At}; cQZ=function(R,l,y){if(R.Zq.experiments.EL("html5_disable_client_autonav_cap_for_onesie")&&l.fetchType==="onesie"||g.Eb(R.Zq)&&(KA(-1)>=1080||l.osid))return At;var f=g.yx(R.Zq.experiments,"html5_autonav_quality_cap"),A=g.yx(R.Zq.experiments,"html5_autonav_cap_idle_secs");return f&&l.isAutonav&&uq()/1E3>A?(y&&(f=GVo(R,y,f)),new Fq(0,f,!1,"e")):At}; GVo=function(R,l,y){if(R.C("html5_optimality_defaults_chooses_next_higher")&&y)for(R=l.Z.videoInfos,l=1;l=0||(R.provider.Xx.getVisibilityState()===3?R.J=!0:(R.Z=g.lV(R.provider),R.delay.start()))}; LPi=function(R){if(!(R.X<0)){var l=g.lV(R.provider),y=l-R.Y;R.Y=l;R.playerState.state===8?R.playTimeSecs+=y:R.playerState.isBuffering()&&!g.V(R.playerState,16)&&(R.rebufferTimeSecs+=y)}}; O99=function(R){var l;switch((l=R.Zq.playerCanaryStage)==null?void 0:l.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"}}; i9j=function(R){return window.PressureObserver&&new window.PressureObserver(R)}; PVY=function(R){R=R===void 0?i9j:R;g.p.call(this);var l=this;try{this.L=R(function(f){l.X=f.at(-1)}); var y;this.Y=(y=this.L)==null?void 0:y.observe("cpu",{sampleInterval:2E3}).catch(function(f){f instanceof DOMException&&(l.Z=f)})}catch(f){f instanceof DOMException&&(this.Z=f)}}; u0k=function(R){var l={},y=window.h5vcc;l.hwConcurrency=navigator.hardwareConcurrency;R.Z&&(l.cpe=R.Z.message);R.X&&(l.cpt=R.X.time,l.cps=R.X.state);if(y==null?0:y.cVal)l.cb2s=y.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),l.cb5s=y.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),l.cb30s=y.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return l}; FPi=function(R){var l;g.w(function(y){switch(y.X){case 1:return g.$7(y,2),g.v(y,R.Y,4);case 4:g.XZ(y,3);break;case 2:g.TT(y);case 3:(l=R.L)==null||l.disconnect(),g.Q9(y)}})}; $ij=function(R,l){l?QPs.test(R):(R=g.f0(R),Object.keys(R).includes("cpn"))}; b97=function(R,l,y,f,A,K,G){var B={format:"RAW"},H={};if(G9(R)&&aw()){if(G){var n;((n=erK.uaChPolyfill)==null?void 0:n.state.type)!==2?G=null:(G=erK.uaChPolyfill.state.data.values,G={"Synth-Sec-CH-UA-Arch":G.architecture,"Synth-Sec-CH-UA-Model":G.model,"Synth-Sec-CH-UA-Platform":G.platform,"Synth-Sec-CH-UA-Platform-Version":G.platformVersion,"Synth-Sec-CH-UA-Full-Version":G.uaFullVersion});H=Object.assign(H,G);B.withCredentials=!0}(G=g.JZ("EOM_VISITOR_DATA"))?H["X-Goog-EOM-Visitor-Id"]=G:f?H["X-Goog-Visitor-Id"]= f:g.JZ("VISITOR_DATA")&&(H["X-Goog-Visitor-Id"]=g.JZ("VISITOR_DATA"));y&&(H["X-Goog-PageId"]=y);(f=l.xb)&&!nU(l)&&(H["X-Goog-AuthUser"]=f);A&&(H.Authorization="Bearer "+A);l.C("enable_datasync_id_header_in_web_vss_pings")&&l.H$&&l.datasyncId&&(H["X-YouTube-DataSync-Id"]=l.datasyncId);G||H["X-Goog-Visitor-Id"]||A||y||f?B.withCredentials=!0:l.C("html5_send_cpn_with_options")&&QPs.test(R)&&(B.withCredentials=!0)}Object.keys(H).length>0&&(B.headers=H);K&&(B.onFinish=K);return Object.keys(B).length>1? B:null}; XT7=function(R,l,y,f,A,K,G,B){aw()&&y.token&&(R=A$(R,{ctt:y.token,cttype:y.Qj,mdx_environment:y.mdxEnvironment}));f.C("net_pings_low_priority")&&(l||(l={}),l.priority="low");K||B&&f.C("nwl_skip_retry")?(l==null?l={}:$ij(R,f.C("html5_assert_cpn_with_regex")),G?JL().sendAndWrite(R,l):JL().sendThenWrite(R,l,B)):l?($ij(R,f.C("html5_assert_cpn_with_regex")),Kgj(R,l)):g.xS(R,A)}; TAK=function(R){for(var l=[],y=0;y0&&y>0&&!R.X&&R.L<1E7)try{R.Y=R.J({sampleInterval:l,maxBufferSize:y});var f;(f=R.Y)==null||f.addEventListener("samplebufferfull",function(){return g.w(function(A){if(A.X==1)return g.v(A,R.stop(),2);vY9(R);g.Q9(A)})})}catch(A){R.X=rQJ(A.message)}}; WT=function(R,l){var y,f;return!!((y=window.h5vcc)==null?0:(f=y.settings)==null?0:f.set(R,l))}; wTj=function(){var R,l,y,f=(R=window.h5vcc)==null?void 0:(l=R.settings)==null?void 0:(y=l.getPersistentSettingAsString)==null?void 0:y.call(l,"cpu_usage_tracker_intervals");if(f!=null){var A;R=(A=JSON.parse(f))!=null?A:[];A=R.filter(function(n){return n.type==="total"}).map(function(n){return n.seconds}); l=g.u(zrZ);for(y=l.next();!y.done;y=l.next())y=y.value,A.indexOf(y)===-1&&R.push({type:"total",seconds:y});var K,G;(K=window.h5vcc)==null||(G=K.settings)==null||G.set("cpu_usage_tracker_intervals_enabled",1);var B,H;(B=window.h5vcc)==null||(H=B.settings)==null||H.set("cpu_usage_tracker_intervals",JSON.stringify(R))}}; xiQ=function(){var R=window.H5vccPlatformService,l="";if(R&&R.has("dev.cobalt.coat.clientloginfo")&&(R=R.open("dev.cobalt.coat.clientloginfo",function(){}))){var y=R.send(new ArrayBuffer(0)); y&&(l=String.fromCharCode.apply(String,g.ci(new Uint8Array(y))));R.close()}return l}; g.iV=function(R){g.p.call(this);var l=this;this.provider=R;this.logger=new g.WC("qoe");this.Z=new Map;this.sequenceNumber=1;this.Yb=NaN;this.Ak="N";this.W=this.lD=this.S6=this.LX=this.X=0;this.ol=this.CX=this.D=this.jS="";this.tF=this.v1=NaN;this.OF=0;this.RV=-1;this.eZ=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.ZL=this.isEmbargoed=this.sL=this.isOffline=this.isBuffering=!1;this.Vu=[];this.B=null;this.iQ=this.Y=this.B1=this.V=!1;this.L=-1;this.tU=!1;this.f_=new g.Vg(this.U5,750,this);this.h5= this.adCpn=this.Dq=this.contentCpn="";this.adFormat=void 0;this.Qb=0;this.uQ=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.Ms=new Set(["gd","pw"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.LA=!1;this.vZ=NaN;this.P1=0;this.sF=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.nA=!1;this.yu={DM:function(f){l.DM(f)}, kn7:function(){return l.J}, J2:function(){return l.contentCpn}, f7Q:function(){return l.Dq}, reportStats:function(){l.reportStats()}, FCU:function(){return l.Z.get("cat")||[]}, HY:function(f){return l.Z.get(f)||[]}, Jx4:function(){return l.Z}, erq:function(){return 0}, pMQ:function(){return{adCpn:l.adCpn,h5:l.h5,adFormat:l.adFormat}}}; this.xb=this.provider.Zq.C("html5_qoe_relaxed_reporting");var y=g.yx(this.provider.Zq.experiments,"html5_qoe_proto_mock_length");y&&!L9.length&&(L9=TAK(y));g.U(this,this.f_);try{navigator.getBattery().then(function(f){l.B=f})}catch(f){}g.O7(this,0,"vps",["N"]); R.Zq.PZ()&&(this.P1=(0,g.eY)(),this.vZ=g.ch(function(){var f=(0,g.eY)(),A=f-l.P1;A>500&&l.T4("vmlock",{diff:A.toFixed()});l.P1=f},250)); this.provider.videoData.XO&&(this.remoteControlMode=Ik7[this.provider.videoData.XO]||0);this.provider.videoData.EU&&(y=HVj(this.provider.videoData.EU),y==null?0:y.length)&&(this.remoteConnectedDevices=y);R.Zq.PZ()&&(this.W1=new PVY,g.U(this,this.W1));y=g.yx(R.Zq.experiments,"html5_js_self_profiler_sample_interval_ms");R=g.yx(R.Zq.experiments,"html5_js_self_profiler_max_samples");y>0&&R>0&&(this.UL=new E7(y,R),g.U(this,this.UL))}; PT=function(R,l,y){var f=R.Z.get(l);f?f.push(y):R.Z.set(l,[y])}; g.O7=function(R,l,y,f){PT(R,y,l.toFixed(3)+":"+f.join(":"))}; NA7=function(R,l){var y=R.adCpn||R.provider.videoData.clientPlaybackNonce,f=R.provider.getCurrentTime(y);g.O7(R,l,"cmt",[f.toFixed(3)]);f=R.provider.h7(y);if(R.J&&f*1E3>R.J.RC+100&&R.J){var A=R.J;y=A.isAd;f=f*1E3-A.RC;R.GT=l*1E3-A.v4Q-f-A.IGL;A=(0,g.eY)()-f;l=R.GT;f=R.provider.videoData;var K=f.isAd();if(y||K){K=(y?"ad":"video")+"_to_"+(K?"ad":"video");var G={};f.D&&(G.cttAuthInfo={token:f.D,videoId:f.videoId});G.startTime=A-l;TB(K,G);g.Xe({targetVideoId:f.videoId,targetCpn:f.clientPlaybackNonce}, K);ba("pbs",A,K)}else A=R.provider.Xx.X3(),A.D!==f.clientPlaybackNonce?(A.J=f.clientPlaybackNonce,A.X=l):f.VU()||g.dP(new g.JD("CSI timing logged before gllat",{cpn:f.clientPlaybackNonce}));R.T4("gllat",{l:R.GT.toFixed(),prev_ad:+y});delete R.J}}; uV=function(R,l){l=l===void 0?NaN:l;l=l>=0?l:g.lV(R.provider);var y=R.provider.Xx.Jm(),f=y.h9-(R.v1||0);f>0&&g.O7(R,l,"bwm",[f,(y.wT-(R.tF||0)).toFixed(3)]);isNaN(R.v1)&&y.h9&&R.isOffline&&R.DM(!1);R.v1=y.h9;R.tF=y.wT;isNaN(y.bandwidthEstimate)||g.O7(R,l,"bwe",[y.bandwidthEstimate.toFixed(0)]);R.provider.Zq.PZ()&&Object.keys(y.Z).length!==0&&R.T4("bwinfo",y.Z);if(R.provider.Zq.PZ()||R.provider.Zq.C("html5_log_meminfo"))f=tUZ(R.provider.C("html5_enable_chrobalt_media_source_memory_apis")),Object.values(f).some(function(K){return K!== void 0})&&R.T4("meminfo",f); if(R.provider.Zq.PZ()){var A;(f=(A=R.W1)==null?void 0:u0k(A))&&Object.values(f).some(function(K){return K!=null})&&R.T4("cpuinfo",f)}R.UL&&R.T4("jsprof",R.UL.flush()); R.B&&g.O7(R,l,"bat",[R.B.level,R.B.charging?"1":"0"]);A=R.provider.Xx.getVisibilityState();R.RV!==A&&(g.O7(R,l,"vis",[A]),R.RV=A);NA7(R,l);(A=pTZ(R.provider))&&A!==R.OF&&(g.O7(R,l,"conn",[A]),R.OF=A);UiY(R,l,y)}; UiY=function(R,l,y){if(!isNaN(y.r9)){var f=y.r9;y.X96E3&&(new g.Vg(R.reportStats,0,R)).start()}}; kVZ=function(R){R.provider.videoData.aJ&&F0(R,"prefetch");R.provider.videoData.nA&&R.T4("reload",{r:R.provider.videoData.reloadReason,ct:R.provider.videoData.nA});R.provider.videoData.B1&&F0(R,"monitor");R.provider.videoData.isLivePlayback&&F0(R,"live");cn&&F0(R,"streaming");R.provider.videoData.XO&&R.T4("ctrl",{mode:R.provider.videoData.XO},!0);if(R.provider.videoData.EU){var l=R.provider.videoData.EU.replace(/,/g,"_");R.T4("ytp",{type:l},!0)}R.provider.videoData.iq&&(l=R.provider.videoData.iq.replace(/,/g, "."),R.T4("ytrexp",{ids:l},!0));l=R.provider.videoData;var y=R.provider.Zq.C("enable_white_noise")||R.provider.Zq.C("enable_webgl_noop"),f=g.dI(l)||g.kK(l)||g.DP(l)||g.ZP(l);(y||f)&&(y=(0,g.QU)())&&R.Z.set("gpu",[y]);ys(R.provider.videoData)&&g.O7(R,g.lV(R.provider),"dt",["1"]);R.provider.C("html5_record_is_offline_on_playback_attempt_start")&&l.cotn&&!ys(l)&&R.DM(!0);R.provider.Zq.PZ()&&(l=(0,g.eY)()-R.provider.Zq.eI,R.T4("playerage",{secs:Math.pow(1.6,Math.round(Math.log(l/1E3)/Math.log(1.6))).toFixed()})); R.Y=!0;R.Yb=g.ch(function(){R.reportStats()},1E4)}; Z9s=function(R,l,y){var f=g.lV(R.provider);Dij(R,f,l,0,y);uV(R,f);jPr(R)}; Dij=function(R,l,y,f,A){var K=R.provider.Zq.Z.cbrver;R.provider.Zq.Z.cbr==="Chrome"&&/^96[.]/.test(K)&&y==="net.badstatus"&&/rc\.500/.test(A)&&JQK(R,3);R.provider.Zq.C("html5_use_ump")&&/b248180278/.test(A)&&JQK(R,4);K=R.provider.getCurrentTime(R.adCpn||R.provider.videoData.clientPlaybackNonce);f=f===1?"fatal":"";y=[y,f,K.toFixed(3)];f&&(A+=";a6s."+tV());A&&y.push(gYi(A));g.O7(R,l,"error",y);R.Y=!0}; INs=function(R,l){var y=g.lV(R.provider);if(!R.provider.Zq.experiments.EL("html5_refactor_sabr_video_format_selection_logging")||l.Z.id!==R.jS){var f=[l.Z.id,l.X,R.jS,l.reason];l.token&&f.push(l.token);g.O7(R,y,"vfs",f);R.jS=l.Z.id;f=R.provider.Xx.getPlayerSize();if(f.width>0&&f.height>0){f=[Math.round(f.width),Math.round(f.height)];var A=g.Bm();A>1&&f.push(A);g.O7(R,y,"view",f)}R.B1||(R.provider.Zq.PZ()&&F0(R,"rqs2"),R.provider.videoData.Z&&vq(R.provider.videoData.Z)&&R.Z.set("preload",["1"]));R.B1= !0;R.Y=!0}l.reason==="m"&&++R.Qb===100&&JQK(R,2);g.O7(R,y,"vps",[R.Ak]);R.xb||R.reportStats(y)}; Vmk=function(R){R.L>=0||(R.provider.Zq.Qq||R.provider.Xx.getVisibilityState()!==3?R.L=g.lV(R.provider):R.tU=!0)}; x99=function(R,l,y){if(R.provider.Zq.experiments.EL("html5_refactor_sabr_audio_format_selection_logging")){l=y.Z;var f=[l.audio&&l.video?l.pK?l.pK:"":l.id];l.hF&&l.hF.id&&f.push(l.hF.id);l=f.join(";");l!==R.D&&(f=[l,R.D,y.reason],y.token&&f.push(y.token),g.O7(R,g.lV(R.provider),"afs",f),R.D=l)}else y.Z.id!==R.D&&(f=[y.Z.id,R.D,y.reason],y.token&&f.push(y.token),g.O7(R,l,"afs",f),R.D=y.Z.id)}; F0=function(R,l){PT(R,"cat",l)}; CVi=function(R,l,y,f,A){var K=g.lV(R.provider);l!==1&&l!==3&&l!==5||g.O7(R,K,"vps",[R.Ak]);PT(R,"xvt","t."+K.toFixed(3)+";m."+A.toFixed(3)+";g.2;tt."+l+";np.0;c."+y+";d."+f)}; JQK=function(R,l){R.iQ||(PT(R,"fcnz",""+l),R.iQ=!0)}; gYi=function(R){/[^a-zA-Z0-9;.!_-]/.test(R)&&(R=R.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return R}; q7T=function(R){this.provider=R;this.V=!1;this.Z=0;this.Y=-1;this.a$=NaN;this.L=0;this.segments=[];this.D=this.J=0;this.previouslyEnded=!1;this.B=this.provider.Xx.getVolume();this.W=this.provider.Xx.isMuted()?1:0;this.X=$Y(this.provider)}; em=function(R){R.X.startTime=R.L;R.X.endTime=R.Z;var l=!1;R.segments.length&&g.W8(R.segments).isEmpty()?(R.segments[R.segments.length-1].previouslyEnded&&(R.X.previouslyEnded=!0),R.segments[R.segments.length-1]=R.X,l=!0):R.segments.length&&R.X.isEmpty()||(R.segments.push(R.X),l=!0);l?R.X.endTime===0&&(R.previouslyEnded=!1):R.X.previouslyEnded&&(R.previouslyEnded=!0);R.J+=R.Z-R.L;R.X=$Y(R.provider);R.X.previouslyEnded=R.previouslyEnded;R.previouslyEnded=!1;R.L=R.Z}; Y7o=function(R){tmQ(R);R.D=g.ch(function(){R.update()},100); R.a$=g.lV(R.provider);R.X=$Y(R.provider)}; tmQ=function(R){g.Wh(R.D);R.D=NaN}; Mmr=function(R,l,y){y-=R.a$;return l===R.Z&&y>.5}; RTZ=function(R,l,y,f){this.Zq=l;this.ol=y;this.segments=[];this.experimentIds=[];this.tU=this.vZ=this.isFinal=this.delayThresholdMet=this.sF=this.RV=this.autoplay=this.autonav=!1;this.OF="yt";this.D=[];this.V=this.B=null;this.sendVisitorIdHeader=this.W1=!1;this.W=this.pageId="";this.J=y==="watchtime";this.L=y==="playback";this.Dq=y==="atr";this.CJ=y==="engage";this.sendVisitorIdHeader=!1;this.uri=this.Dq?"/api/stats/"+y:"//"+l.IL+"/api/stats/"+y;f&&(this.vZ=f.fs,f.rtn&&(this.V=f.rtn),this.J?(this.playerState= f.state,f.rti>0&&(this.B=f.rti)):(this.NW=f.mos,this.BA=f.volume,f.at&&(this.adType=f.at)),f.autonav&&(this.autonav=f.autonav),f.inview!=null&&(this.eZ=f.inview),f.size&&(this.tF=f.size),f.playerwidth&&(this.J7=f.playerwidth),f.playerheight&&(this.TD=f.playerheight));this.Qb=g.Eh(l.Z);this.W=EN(l.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.W==="all"||this.W==="once")this.nA=g.Eh(l.vZ);this.Qq=l.RV;this.experimentIds=CZZ(l.experiments);this.UL=l.Qb;this.OF=l.LX;this.region=l.region; this.userAge=l.userAge;this.B1=l.ZW;this.Vu=uq();this.sendVisitorIdHeader=l.sendVisitorIdHeader;this.sL=l.C("vss_pings_using_networkless")||l.C("kevlar_woffle");this.eI=l.C("vss_final_ping_send_and_write");this.P1=l.C("vss_use_send_and_write");this.pageId=l.pageId;this.FR=l.C("vss_playback_use_send_and_write");l.livingRoomAppMode&&(this.livingRoomAppMode=l.livingRoomAppMode);this.R2=l.Y&&l.C("embeds_append_synth_ch_headers");g.kh(l)&&(this.v1=l.Dq);g.BW(g.Yh(l))&&this.D.push(1);this.accessToken=g.MD(R); R.LG[this.ol]?this.Y=R.LG[this.ol]:R.LG.playback&&(this.Y=R.LG.playback);this.adFormat=R.adFormat;this.adQueryId=R.adQueryId;this.autoplay=djq(R);this.L&&(this.RV=R.WM&&CC(R)==="adunit"?!0:!1);this.autonav=R.isAutonav||this.autonav;this.contentVideoId=tt(R);this.clientPlaybackNonce=R.clientPlaybackNonce;this.sF=R.nJ;R.D&&(this.Yb=R.D,this.LA=R.BO);R.mdxEnvironment&&(this.mdxEnvironment=R.mdxEnvironment);this.Z=R.OF;this.ZL=R.ZL;R.X&&(this.Ms=R.X.itag,R.Y&&R.Y.itag!==this.Ms&&(this.iQ=R.Y.itag));R.Z&& vq(R.Z)&&(this.offlineDownloadUserChoice="1");this.eventLabel=CC(R);this.tU=R.HA?!1:R.o9;this.US=R.cT;if(l=xK(R))this.HA=l;this.lj=R.Dk;this.partnerId=R.partnerId;this.eventId=R.eventId;this.playlistId=R.I3||R.playlistId;this.MF=R.MF;this.XO=R.XO;this.EU=R.EU;this.PR=R.PR;this.subscribed=R.subscribed;this.videoId=R.videoId;this.videoMetadata=R.videoMetadata;this.visitorData=R.visitorData;this.osid=R.osid;this.L2=R.L2;this.referrer=R.referrer;this.Gu=R.rY||R.Gu;this.uQ=R.Qc;this.fV=R.fV;this.userGenderAge= R.userGenderAge;this.XN=R.XN;this.embedsRct=R.embedsRct;this.embedsRctn=R.embedsRctn;g.kh(this.Zq)&&R.mutedAutoplay&&(R.mutedAutoplayDurationMode===2&&R.limitedPlaybackDurationInSeconds===0&&R.endSeconds===0?this.D.push(7):this.D.push(2));R.isEmbedsShortsMode(new g.JM(this.J7,this.TD),!!this.playlistId)&&this.D.push(3);g.Hd(R)&&this.D.push(4);this.jS=R.Yt;R.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=R.compositeLiveIngestionOffsetToken)}; lJ7=function(R,l){var y=R.sendVisitorIdHeader?R.visitorData:void 0;return g.OS(R.Zq,R.accessToken).then(function(f){return b97(R.uri,R.Zq,R.pageId,y,f,l,R.R2)})}; Afs=function(R,l){return function(){R.Zq.C("html5_simplify_pings")?(R.Z=R.CX,R.f_=l(),R.Vu=0,R.send()):lJ7(R).then(function(y){var f=yfk(R);f.cmt=f.len;f.lact="0";var A=l().toFixed(3);f.rt=Number(A).toString();f=g.L4(R.uri,f);R.Zq.C("vss_through_gel_double")&&fJJ(f);R.sL?(y==null&&(y={}),R.P1?JL().sendAndWrite(f,y):JL().sendThenWrite(f,y)):y?g.Qt(f,y):g.xS(f)})}}; yfk=function(R){var l={ns:R.OF,el:R.eventLabel,cpn:R.clientPlaybackNonce,ver:2,cmt:R.X(R.Z),fmt:R.Ms,fs:R.vZ?"1":"0",rt:R.X(R.f_),adformat:R.adFormat,content_v:R.contentVideoId,euri:R.Qq,lact:R.Vu,live:R.HA,cl:(769383743).toString(),mos:R.NW,state:R.playerState,volume:R.BA};R.subscribed&&(l.subscribed="1");Object.assign(l,R.Qb);R.W==="all"?Object.assign(l,R.nA):R.W==="once"&&R.L&&Object.assign(l,R.nA);R.autoplay&&(l.autoplay="1");R.RV&&(l.sautoplay="1");R.sF&&(l.dni="1");!R.J&&R.v1&&(l.epm=KRr[R.v1]); R.isFinal&&(l["final"]="1");R.tU&&(l.splay="1");R.ZL&&(l.delay=R.ZL);R.UL&&(l.hl=R.UL);R.region&&(l.cr=R.region);R.userGenderAge&&(l.uga=R.userGenderAge);R.userAge!==void 0&&R.B1&&(l.uga=R.B1+R.userAge);R.CX!==void 0&&(l.len=R.X(R.CX));!R.J&&R.experimentIds.length>0&&(l.fexp=R.experimentIds.toString());R.V!==null&&(l.rtn=R.X(R.V));R.Gu&&(l.feature=R.Gu);R.XO&&(l.ctrl=R.XO);R.EU&&(l.ytr=R.EU);R.iQ&&(l.afmt=R.iQ);R.offlineDownloadUserChoice&&(l.ODUC=R.offlineDownloadUserChoice);R.LX&&(l.lio=R.X(R.LX)); R.J?(l.idpj=R.US,l.ldpj=R.lj,R.delayThresholdMet&&(l.dtm="1"),R.B!=null&&(l.rti=R.X(R.B)),R.XN&&(l.ald=R.XN),R.compositeLiveIngestionOffsetToken&&(l.clio=R.compositeLiveIngestionOffsetToken)):R.adType!==void 0&&(l.at=R.adType);R.tF&&(R.L||R.J)&&(l.size=R.tF);R.L&&R.D.length&&(l.pbstyle=R.D.join(","));R.eZ!=null&&(R.L||R.J)&&(l.inview=R.X(R.eZ));R.J&&(l.volume=bV(R,g.L$(R.segments,function(f){return f.volume})),l.st=bV(R,g.L$(R.segments,function(f){return f.startTime})),l.et=bV(R,g.L$(R.segments,function(f){return f.endTime})), Dx(R.segments,function(f){return f.playbackRate!==1})&&(l.rate=bV(R,g.L$(R.segments,function(f){return f.playbackRate}))),Dx(R.segments,function(f){return f.Z!=="-"})&&(l.als=g.L$(R.segments,function(f){return f.Z}).join(",")),Dx(R.segments,function(f){return f.previouslyEnded})&&(l.pe=g.L$(R.segments,function(f){return""+ +f.previouslyEnded}).join(","))); l.muted=bV(R,g.L$(R.segments,function(f){return f.muted?1:0})); Dx(R.segments,function(f){return f.visibilityState!==0})&&(l.vis=bV(R,g.L$(R.segments,function(f){return f.visibilityState}))); Dx(R.segments,function(f){return f.connectionType!==0})&&(l.conn=bV(R,g.L$(R.segments,function(f){return f.connectionType}))); Dx(R.segments,function(f){return f.X!==0})&&(l.blo=bV(R,g.L$(R.segments,function(f){return f.X}))); Dx(R.segments,function(f){return!!f.L})&&(l.blo=g.L$(R.segments,function(f){return f.L}).join(",")); Dx(R.segments,function(f){return!!f.compositeLiveStatusToken})&&(l.cbs=g.L$(R.segments,function(f){return f.compositeLiveStatusToken}).join(",")); Dx(R.segments,function(f){return f.Y!=="-"})&&(l.cc=g.L$(R.segments,function(f){return f.Y}).join(",")); Dx(R.segments,function(f){return f.clipId!=="-"})&&(l.clipid=g.L$(R.segments,function(f){return f.clipId}).join(",")); if(Dx(R.segments,function(f){return!!f.audioId})){var y="au"; R.L&&(y="au_d");l[y]=g.L$(R.segments,function(f){return f.audioId}).join(",")}aw()&&R.Yb&&(l.ctt=R.Yb,l.cttype=R.LA,l.mdx_environment=R.mdxEnvironment); R.CJ&&(l.etype=R.xb!==void 0?R.xb:0);R.uQ&&(l.uoo=R.uQ);R.livingRoomAppMode&&R.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(l.clram=GHk[R.livingRoomAppMode]||R.livingRoomAppMode);R.Y?aJY(R,l):(l.docid=R.videoId,l.referrer=R.referrer,l.ei=R.eventId,l.of=R.L2,l.osid=R.osid,l.vm=R.videoMetadata,R.adQueryId&&(l.aqi=R.adQueryId),R.autonav&&(l.autonav="1"),R.playlistId&&(l.list=R.playlistId),R.PR&&(l.ssrt="1"),R.fV&&(l.upt=R.fV));R.L&&(R.embedsRct&&(l.rct=R.embedsRct),R.embedsRctn&&(l.rctn= R.embedsRctn),R.compositeLiveIngestionOffsetToken&&(l.clio=R.compositeLiveIngestionOffsetToken));R.jS&&(l.host_cpn=R.jS);return l}; aJY=function(R,l){if(l&&R.Y){var y=new Set(["q","feature","mos"]),f=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),A=new Set(["aqi","autonav","list","ssrt","upt"]);R.Y.ns==="3pp"&&(l.ns="3pp");for(var K=g.u(Object.keys(R.Y)),G=K.next();!G.done;G=K.next())G=G.value,f.has(G)||y.has(G)||A.has(G)&&!R.Y[G]||(l[G]=R.Y[G])}}; bV=function(R,l){return g.L$(l,R.X).join(",")}; fJJ=function(R){R.indexOf("watchtime")!==-1&&g.sE("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:R}})}; sv7=function(R,l){R.attestationResponse&&lJ7(R).then(function(y){y=y||{};y.method="POST";y.postParams={atr:R.attestationResponse};R.sL?R.P1?JL().sendAndWrite(l,y):JL().sendThenWrite(l,y):g.Qt(l,y)})}; X0=function(R){g.p.call(this);this.provider=R;this.D="paused";this.J=NaN;this.V=[10,10,10,40];this.B=this.W=0;this.Yb=this.Dq=this.xb=this.LX=this.L=!1;this.X=this.Y=NaN;this.logger=new g.WC("vss");this.Z=new q7T(R)}; otk=function(R){if(!R.L){R.provider.videoData.An===16623&&g.dP(Error("Playback for EmbedPage"));var l=TV(R,"playback");R.V=Bf7(R);Y7o(R.Z);l.V=dA(R);R.X>0&&(l.Z-=R.X);l.send();if(R.provider.videoData.d9){l=R.provider.Zq;var y=R.provider.videoData,f={html5:"1",video_id:y.videoId,cpn:y.clientPlaybackNonce,ei:y.eventId,ptk:y.d9,oid:y.i9,ptchn:y.rE,pltype:y.m9,content_v:tt(y)};y.nY&&Object.assign(f,{m:y.nY});l=g.L4(l.v0+"ptracking",f);HyJ(R,l)}R.provider.videoData.ZL||(nt7(R),m4i(R));R.L=!0;R=R.Z;R.Z= R.h7();R.a$=g.lV(R.provider);!(R.L===0&&R.Z<5)&&R.Z-R.L>2&&(R.L=R.Z);R.V=!0}}; Bf7=function(R){var l=R.provider.videoData.cT,y=R.provider.videoData.Dk,f=[10+l,10,10,40+y-l,40],A,K=(A=R.provider.videoData.getPlayerResponse())==null?void 0:A.playbackTracking,G=K==null?void 0:K.videostatsScheduledFlushWalltimeSeconds;A=K==null?void 0:K.videostatsDefaultFlushIntervalSeconds;if(!(G&&G.length>0&&A))return R.logger.info("Missing valid scheduled pings config "+G+" "+A),f;l=[G[0]+l].concat(g.ci(G.slice(1).map(function(B,H){return B-G[H]})),[A+y-l, A]);return l.some(function(B){return B<0})?(R.logger.Z(347111855,"Neg vss scheduled pings "+G+" "+A),f):l}; dA=function(R,l){l=l===void 0?NaN:l;var y=g.lV(R.provider);l=isNaN(l)?y:l;l=Math.ceil(l);var f=R.V[R.W];R.W+11E3;!(K.length>1)&&K[0].isEmpty()||B||(G.V=dA(R,A));G.send();R.B++}},(A-y)*1E3); return R.Y=A}; rA=function(R){g.E1(R.J);R.J=NaN}; hTs=function(R){R.Z.update();R=R.Z;R.segments.length&&R.Z===R.L||em(R);var l=R.segments;R.segments=[];return l}; TV=function(R,l){var y=Et9(R.provider);Object.assign(y,{state:R.D});l=new RTZ(R.provider.videoData,R.provider.Zq,l,y);l.Z=R.provider.Xx.h7();y=R.provider.videoData.clientPlaybackNonce;l.Z=R.provider.Xx.UE(y);R.provider.videoData.isLivePlayback||(l.CX=R.provider.Xx.getDuration(y));R.provider.videoData.Z&&(y=R.provider.videoData.Z.wc(l.Z))&&(l.LX=y-l.Z,R.provider.Zq.C("html5_disable_live_dvr_shrink_for_cdm_vss")&&ip(R.provider.videoData)&&(l.Z+=R.provider.Xx.fA(),l.LX-=R.provider.Xx.fA()));l.f_=g.lV(R.provider); l.segments=[$Y(R.provider)];return l}; cfr=function(R,l){var y=TV(R,"watchtime");WRj(R)&&(y.delayThresholdMet=!0,R.xb=!0);if(R.X>0){for(var f=g.u(l),A=f.next();!A.done;A=f.next())A=A.value,A.startTime-=R.X,A.endTime-=R.X;y.Z-=R.X}else y.Z=R.Z.Z;y.segments=l;return y}; vT=function(R,l){var y=LR7(R,!isNaN(R.Y));l&&(R.Y=NaN);return y}; LR7=function(R,l){var y=cfr(R,hTs(R));!isNaN(R.Y)&&l&&(y.B=R.Y);return y}; WRj=function(R){var l;if(l=R.provider.videoData.isLoaded()&&R.provider.videoData.ZL&&R.L&&!R.xb)l=R.Z,l=l.J+l.h7()-l.L>=R.provider.videoData.ZL;return!!l}; nt7=function(R){R.provider.videoData.youtubeRemarketingUrl&&!R.Dq&&(HyJ(R,R.provider.videoData.youtubeRemarketingUrl),R.Dq=!0)}; m4i=function(R){R.provider.videoData.googleRemarketingUrl&&!R.Yb&&(HyJ(R,R.provider.videoData.googleRemarketingUrl),R.Yb=!0)}; Oyi=function(R){if(!R.Fx()&&R.L){R.D="paused";var l=vT(R);l.isFinal=!0;l.send();R.dispose()}}; iyo=function(R,l){if(!R.Fx())if(g.V(l.state,2)||g.V(l.state,512)){if(R.D="paused",g.m2(l,2)||g.m2(l,512))g.m2(l,2)&&(R.Z.previouslyEnded=!0),R.L&&(rA(R),vT(R).send(),R.Y=NaN)}else if(g.V(l.state,8)){R.D="playing";var y=R.L&&isNaN(R.J)?dA(R):NaN;if(!isNaN(y)&&(nR(l,64)<0||nR(l,512)<0)){var f=LR7(R,!1);f.V=y;f.send()}g.m2(l,16)&&l.state.seekSource===58&&(R.Z.previouslyEnded=!0)}else R.D="paused"}; P$r=function(R,l,y){if(!R.LX){y||(y=TV(R,"atr"));y.attestationResponse=l;try{y.send()}catch(f){if(f.message!=="Unknown Error")throw f;}R.LX=!0}}; HyJ=function(R,l){var y=R.provider.Zq;g.OS(R.provider.Zq,g.MD(R.provider.videoData)).then(function(f){var A=R.provider.Zq.pageId,K=R.provider.Zq.sendVisitorIdHeader?R.provider.videoData.visitorData:void 0,G=R.provider.Zq.C("vss_pings_using_networkless")||R.provider.Zq.C("kevlar_woffle"),B=R.provider.Zq.C("allow_skip_networkless");f=b97(l,y,A,K,f);XT7(l,f,{token:R.provider.videoData.D,Qj:R.provider.videoData.BO,mdxEnvironment:R.provider.videoData.mdxEnvironment},y,void 0,G&&!B,!1,!0)})}; uHQ=function(){this.endTime=this.startTime=-1;this.Y="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.X=0;this.compositeLiveStatusToken=this.L=void 0;this.volume=this.connectionType=0;this.muted=!1;this.Z=this.clipId="-";this.previouslyEnded=!1}; zV=function(R,l,y){this.videoData=R;this.Zq=l;this.Xx=y;this.Z=void 0}; g.lV=function(R){return FRo(R)()}; FRo=function(R){if(!R.Z){var l=g.nX(function(f){var A=(0,g.eY)();f&&A<=631152E6&&(R.Xx.T4("ytnerror",{issue:28799967,value:""+A}),A=(new Date).getTime()+2);return A},R.Zq.C("html5_validate_yt_now")),y=l(); R.Z=function(){return Math.round(l()-y)/1E3}; R.Xx.F7()}return R.Z}; Et9=function(R){var l=R.Xx.Nu()||{};l.fs=R.Xx.La();l.volume=R.Xx.getVolume();l.muted=R.Xx.isMuted()?1:0;l.mos=l.muted;l.clipid=R.Xx.bd();var y;l.playerheight=((y=R.Xx.getPlayerSize())==null?void 0:y.height)||0;var f;l.playerwidth=((f=R.Xx.getPlayerSize())==null?void 0:f.width)||0;R=R.videoData;y={};R.X&&(y.fmt=R.X.itag,R.Y&&(R.ol?R.Y.itag!==R.X.itag:R.Y.itag!=R.X.itag)&&(y.afmt=R.Y.itag));y.ei=R.eventId;y.list=R.playlistId;y.cpn=R.clientPlaybackNonce;R.videoId&&(y.v=R.videoId);R.H$&&(y.infringe=1); (R.HA?0:R.o9)&&(y.splay=1);(f=xK(R))&&(y.live=f);R.WM&&(y.sautoplay=1);R.Hf&&(y.autoplay=1);R.MF&&(y.sdetail=R.MF);R.partnerId&&(y.partnerid=R.partnerId);R.osid&&(y.osid=R.osid);R.oG&&(y.cc=g.yGr(R.oG));return Object.assign(l,y)}; pTZ=function(R){var l=XBY();if(l)return Qvc[l]||Qvc.other;if(g.Eb(R.Zq)){R=navigator.userAgent;if(/[Ww]ireless[)]/.test(R))return 3;if(/[Ww]ired[)]/.test(R))return 30}return 0}; $Y=function(R){var l=new uHQ,y;l.Y=((y=Et9(R).cc)==null?void 0:y.toString())||"-";l.playbackRate=R.Xx.getPlaybackRate();y=R.Xx.getVisibilityState();y!==0&&(l.visibilityState=y);R.Zq.iQ&&(l.X=1);l.L=R.videoData.K8;l.compositeLiveStatusToken=R.videoData.compositeLiveStatusToken;y=R.Xx.getAudioTrack();y.hF&&y.hF.id&&y.hF.id!=="und"&&(l.audioId=y.hF.id);l.connectionType=pTZ(R);l.volume=R.Xx.getVolume();l.muted=R.Xx.isMuted();l.clipId=R.Xx.bd()||"-";l.Z=R.videoData.Ll||"-";return l}; g.wA=function(R,l){g.p.call(this);var y=this;this.provider=R;this.L=new Map;this.Ak=new g.uZ;this.yu={ZNS:function(){return y.qoe}, CG4:function(){return y.Z}, U2U:function(){return y.X}}; this.provider.videoData.Nl()&&!this.provider.videoData.L7&&(this.Z=new X0(this.provider),this.Z.X=0,g.U(this,this.Z),this.qoe=new g.iV(this.provider,l),g.U(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.qD=this.provider.videoData.clientPlaybackNonce)&&this.L.set(this.qD,this.Z));if(R.Zq.playerCanaryState==="canary"||R.Zq.playerCanaryState==="holdback")this.X=new cT(this.provider),g.U(this,this.X)}; $4o=function(R){R.X&&WPr(R.X);R.qoe&&Vmk(R.qoe)}; eTZ=function(R){if(R.qoe){R=R.qoe;for(var l=R.provider.videoData,y=R.provider.Zq,f=g.u(y.jo),A=f.next();!A.done;A=f.next())F0(R,A.value);if(R.provider.C("html5_enable_qoe_cat_list"))for(f=g.u(l.IL),A=f.next();!A.done;A=f.next())F0(R,A.value);else l.jo&&F0(R,R.provider.videoData.jo);l.QS()&&(f=l.Z,eU(l)&&F0(R,"manifestless"),f&&DV(f)&&F0(R,"live-segment-"+DV(f).toFixed(1)));PZ(l)?F0(R,"sabr"):R.Os(Tf(l));if(RE(l)||l.h1())l.h1()&&F0(R,"ssa"),F0(R,"lifa");ip(l)&&F0(R,"cdm");l.gatewayExperimentGroup&& (f=l.gatewayExperimentGroup,f==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?f="spkadtrt":f==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(f="spkadctrl"),F0(R,f));y.LX!=="yt"&&R.Z.set("len",[l.lengthSeconds.toFixed(2)]);l.cotn&&!ys(l)&&R.DM(!0);y.PZ()&&(l=xiQ())&&R.T4("cblt",{m:l});if(y.C("html5_log_screen_diagonal")){y=R.T4;var K;l=((K=window.H5vccScreen)==null?0:K.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;y.call(R,"cbltdiag",{v:l})}}}; byi=function(R,l){R.Z&&(R=R.Z,l===58?R.Z.update():R.L&&(rA(R),vT(R).send(),R.Y=NaN))}; XAQ=function(R,l){if(g.m2(l,1024)||g.m2(l,512)||g.m2(l,4)){if(R.X){var y=R.X;y.X>=0||(y.Z=-1,y.delay.stop())}R.qoe&&(y=R.qoe,y.V||(y.L=-1))}if(R.provider.videoData.enableServerStitchedDai&&R.qD){var f;(f=R.L.get(R.qD))==null||iyo(f,l)}else R.Z&&iyo(R.Z,l);if(R.qoe){f=R.qoe;y=l.state;var A=g.lV(f.provider),K=f.getPlayerState(y),G=y.seekSource||void 0;if(K!==f.Ak){f.xb||A= 10&&f.playTimeSecs<=180&&(f.Z.set("qoealert",["1"]),f.ZL=!0)),K!=="B"||f.Ak!=="PL"&&f.Ak!=="PB"||(f.isBuffering=!0),f.X=A);f.Ak==="PL"&&(K==="B"||K==="S")||f.provider.Zq.PZ()?uV(f,A):(f.LA||K!=="PL"||(f.LA=!0,UiY(f,A,f.provider.Xx.Jm())),NA7(f,A));K==="PL"&&g.Cz(f.f_);var B=[K];K==="S"&&G&&B.push("ss."+G);g.O7(f,A,"vps",B);f.Ak=K;f.LX=A;f.X=A;f.Y=!0}K=y.WE;g.V(y,128)&&K&&(K.s0=K.s0||"",Dij(f,A,K.errorCode,K.gi,K.s0));(g.V(y,2)||g.V(y,128))&&f.reportStats(A);y.isPlaying()&&!f.V&&(f.L>=0&&f.Z.set("user_intent", [f.L.toString()]),f.V=!0);jPr(f)}R.X&&(R=R.X,LPi(R),R.playerState=l.state,R.X>=0&&g.m2(l,16)&&R.seekCount++,l.state.isError()&&R.send())}; Tfr=function(R){R.X&&R.X.send();if(R.qoe){var l=R.qoe;if(l.Y){l.Ak==="PL"&&(l.Ak="N");var y=g.lV(l.provider);g.O7(l,y,"vps",[l.Ak]);l.V||(l.L>=0&&l.Z.set("user_intent",[l.L.toString()]),l.V=!0);l.provider.Zq.PZ()&&l.T4("finalized",{});l.sL=!0;l.reportStats(y)}}if(R.provider.videoData.enableServerStitchedDai)for(l=g.u(R.L.values()),y=l.next();!y.done;y=l.next())Oyi(y.value);else R.Z&&Oyi(R.Z);R.dispose()}; d4Z=function(R,l){R.Z&&P$r(R.Z,l)}; rfj=function(R){if(!R.Z)return null;var l=TV(R.Z,"atr");return function(y){R.Z&&P$r(R.Z,y,l)}}; vtr=function(R,l,y,f){y.adFormat=y.Qq;var A=l.Xx;l=new X0(new zV(y,l.Zq,{getDuration:function(){return y.lengthSeconds}, getCurrentTime:function(){return A.getCurrentTime()}, h7:function(){return A.h7()}, UE:function(){return A.UE()}, Jm:function(){return A.Jm()}, getPlayerSize:function(){return A.getPlayerSize()}, getAudioTrack:function(){return y.getAudioTrack()}, getPlaybackRate:function(){return A.getPlaybackRate()}, gy:function(){return A.gy()}, getVisibilityState:function(){return A.getVisibilityState()}, X3:function(){return A.X3()}, Nu:function(){return A.Nu()}, getVolume:function(){return A.getVolume()}, isMuted:function(){return A.isMuted()}, La:function(){return A.La()}, bd:function(){return A.bd()}, getProximaLatencyPreference:function(){return A.getProximaLatencyPreference()}, F7:function(){A.F7()}, T4:function(K,G){A.T4(K,G)}, z0:function(){return A.z0()}, fA:function(){return A.fA()}})); l.X=f;g.U(R,l);return l}; zT9=function(){this.r9=0;this.L=this.wT=this.h9=this.X=NaN;this.Z={};this.bandwidthEstimate=NaN}; wAo=function(){this.Z=g.gw;this.array=[]}; IJJ=function(R,l,y){var f=[];for(l=x49(R,l);ly)break}return f}; Nfc=function(R,l){var y=[];R=g.u(R.array);for(var f=R.next();!f.done&&!(f=f.value,f.contains(l)&&y.push(f),f.start>l);f=R.next());return y}; pAk=function(R){return R.array.slice(x49(R,0x7ffffffffffff),R.array.length)}; x49=function(R,l){R=JK(R.array,function(y){return l-y.start||1}); return R<0?-(R+1):R}; U4j=function(R,l){var y=NaN;R=g.u(R.array);for(var f=R.next();!f.done;f=R.next())if(f=f.value,f.contains(l)&&(isNaN(y)||f.endl&&(isNaN(y)||f.startR.mediaTime+R.J&&l1)R.Y=!0;if((A===void 0?0:A)||isNaN(R.X))R.X=l;if(R.Z)l!==R.mediaTime&&(R.Z=!1);else if(l>0&&R.mediaTime===l){A=1500;if(R.Zq.C("html5_buffer_underrun_transition_fix")){A=g.yx(R.Zq.experiments,"html5_min_playback_advance_for_steady_state_secs");var K=g.yx(R.Zq.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");A=A>0&&K>0&&Math.abs(l-R.X)(f||!R.Y?A:400)}R.mediaTime=l;R.L=y;return!1}; qHK=function(R,l){this.videoData=R;this.Z=l}; tBq=function(R,l,y){return l.O1(y).then(function(){return rg(new qHK(l,l.L))},function(f){f instanceof Error&&g.dP(f); var A=Ou('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),K=P9('audio/mp4; codecs="mp4a.40.2"'),G=A||K,B=l.isLivePlayback&&!g.ON(R.J,!0);f="fmt.noneavailable";B?f="html5.unsupportedlive":G||(f="html5.missingapi");G=B||!G?2:1;A={buildRej:"1",a:l.nV(),d:!!l.tF,drm:l.yT(),f18:l.eI.indexOf("itag=18")>=0,c18:A};l.Z&&(l.yT()?(A.f142=!!l.Z.Z["142"],A.f149=!!l.Z.Z["149"],A.f279=!!l.Z.Z["279"]):(A.f133=!!l.Z.Z["133"],A.f140=!!l.Z.Z["140"],A.f242=!!l.Z.Z["242"]),A.cAAC=K,A.cAVC=P9('video/mp4; codecs="avc1.42001E"'), A.cVP9=P9('video/webm; codecs="vp9"'));l.J&&(A.drmsys=l.J.keySystem,K=0,l.J.Z&&(K=Object.keys(l.J.Z).length),A.drmst=K);return new g.c9(f,A,G)})}; Ni=function(R){this.data=window.Float32Array?new Float32Array(R):Array(R);this.X=this.Z=R-1}; YHo=function(R){return R.data[R.Z]||0}; MBY=function(R){this.J=R;this.L=this.X=0;this.Y=new Ni(50)}; U7=function(R,l,y){g.Ae.call(this);this.videoData=R;this.experiments=l;this.J=y;this.X=[];this.Ki=0;this.L=!0;this.Y=!1;this.D=0;y=new Ryc;R.latencyClass==="ULTRALOW"&&(y.D=!1);R.B1?y.L=3:g.SU(R)&&(y.L=2);R.latencyClass==="NORMAL"&&(y.J=!0);y.LX=PZ(R)&&l.EL("html5_refactor_decouple_liveness");g.yx(l,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.yx(l,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||R.latencyClass!=="LOW"&&R.latencyClass!=="ULTRALOW"||(y.J=!0);var f= g.yx(l,"html5_liveness_drift_proxima_override");if(Tf(R)!==0&&f){y.Z=f;var A;((A=R.Z)==null?0:mAs(A))&&y.Z--}PZ(R)&&l.EL("html5_sabr_parse_live_metadata_playback_boundaries")&&(y.Yb=!0);if(g.j0("trident/")||g.j0("edge/"))A=g.yx(l,"html5_platform_minimum_readahead_seconds")||3,y.Y=Math.max(y.Y,A);g.yx(l,"html5_minimum_readahead_seconds")&&(y.Y=g.yx(l,"html5_minimum_readahead_seconds"));g.yx(l,"html5_maximum_readahead_seconds")&&(y.B=g.yx(l,"html5_maximum_readahead_seconds"));l.EL("html5_force_adaptive_readahead")&& (y.D=!0);if(A=g.yx(l,"html5_liveness_drift_chunk_override"))y.Z=A;bp(R)&&(y.Z=(y.Z+1)/5,R.latencyClass==="LOW"&&(y.Z*=2));!PZ(R)||R.latencyClass!=="ULTRALOW"&&R.latencyClass!=="LOW"||(y.W=g.yx(l,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,y.V=g.yx(l,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=y;this.V=this.policy.L!==1;this.Z=p9(this,lr7(this,isNaN(R.liveChunkReadahead)?3:R.liveChunkReadahead,R))}; yCZ=function(R,l){if(l)return l=R.videoData,l=lr7(R,isNaN(l.liveChunkReadahead)?3:l.liveChunkReadahead,l),p9(R,l);if(R.X.length){if(Math.min.apply(null,R.X)>1)return p9(R,R.Z-1);if(R.policy.D)return p9(R,R.Z+1)}return R.Z}; frr=function(R,l){if(!R.X.length)return!1;var y=R.Z;R.Z=yCZ(R,l===void 0?!1:l);if(l=y!==R.Z)R.X=[],R.Ki=0;return l}; Sm=function(R,l){return l>=R.ev()-ACJ(R)}; KIK=function(R,l,y){l=Sm(R,l);y||l?l&&(R.L=!0):R.L=!1;R.V=R.policy.L===2||R.policy.L===3&&R.L}; GQT=function(R,l){l=Sm(R,l);R.Y!==l&&R.publish("livestatusshift",l);R.Y=l}; ACJ=function(R){var l=R.policy.Z;R.Y||(l=Math.max(l-1,0));return l*jm(R)}; lr7=function(R,l,y){y.B1&&l--;bp(y)&&(l=1);if(Tf(y)!==0&&(R=g.yx(R.experiments,"html5_live_chunk_readahead_proxima_override"))){l=R;var f;((f=y.Z)==null?0:mAs(f))&&l++}return l}; jm=function(R){return R.videoData.Z?DV(R.videoData.Z)||5:5}; p9=function(R,l){l=Math.max(Math.max(1,Math.ceil(R.policy.Y/jm(R))),l);return Math.min(Math.min(8,Math.floor(R.policy.B/jm(R))),l)}; Ryc=function(){this.Y=0;this.B=Infinity;this.D=!0;this.X=this.Z=2;this.L=1;this.J=!1;this.V=10;this.Yb=!1;this.W=1;this.LX=!1}; Zk=function(R){g.p.call(this);this.Xx=R;this.Z=0;this.X=null;this.D=this.Y=0;this.L={};this.Zq=this.Xx.U();this.J=new g.Vg(this.pS,1E3,this);this.tU=kY(this,"html5_seek_timeout_delay_ms");this.xb=kY(this,"html5_long_rebuffer_threshold_ms");this.W1=kY(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.P1=kY(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.v1=kY(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.LA=kY(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.LX=kY(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.Yb=new Dk(2E4);this.CX=kY(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.UL=kY(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.jS=kY(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.sL=kY(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.W=kY(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.B=kY(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.uQ=kY(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.V=kY(this,"html5_ads_preroll_lock_timeout_delay_ms","html5_ads_preroll_lock_timeout_cfl");this.B1=new Dk(g.yx(this.Zq.experiments,"html5_skip_slow_ad_delay_ms")|| 5E3,!this.Zq.C("html5_report_slow_ads_as_error"));this.iQ=new Dk(g.yx(this.Zq.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.Zq.C("html5_skip_slow_buffering_ad"));this.ZL=kY(this,"html5_slow_start_timeout_delay_ms");this.Dq=kY(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.U(this,this.J)}; kY=function(R,l,y){y=y===void 0?null:y;var f=f===void 0?0:f;return new Dk(g.yx(R.Zq.experiments,l)||f,y?R.Zq.C(y):!1)}; arj=function(R,l){R.Z=l}; JQ=function(R,l,y,f,A,K,G,B){l.test(y)?(R.l8(A,l,G),l.D||K()):(!l.X||l.Y?y=!1:(y=(0,g.eY)(),f?l.Z||(l.Z=y):l.Z=0,K=!f&&y-l.X>3E4,y=l.Z&&y-l.Z>1E3||K?l.Y=!0:!1),y&&(B=Object.assign({},R.S1(l),B),B.wn=G,B.we=A,B.wsuc=f,R.Xx.T4("workaroundReport",B),f&&(l.reset(),R.L[A]=!1)))}; Dk=function(R,l){this.D=l===void 0?!1:l;this.Z=this.X=this.L=this.startTimestamp=0;this.Y=!1;this.J=Math.ceil(R/1E3)}; nwq=function(R){g.p.call(this);var l=this;this.Xx=R;this.W=this.Z=this.loader=this.mediaElement=this.playbackData=null;this.L=0;this.J=this.xb=this.Y=null;this.sL=!1;this.LA=0;this.Yb=!1;this.timestampOffset=0;this.B=!0;this.UL=0;this.W1=this.nA=!1;this.V=0;this.B1=!1;this.Dq=0;this.Zq=this.Xx.U();this.videoData=this.Xx.getVideoData();this.policy=new sKc;this.LX=new Zk(this.Xx);this.iQ=this.jS=this.v1=this.D=this.X=NaN;this.CX=new g.Vg(function(){B7T(l,!1)},2E3); this.sF=new g.Vg(function(){gA(l)}); this.tU=new g.Vg(function(){HqZ(l,{})}); this.ZL=NaN;this.P1=new g.Vg(function(){var y=l.Zq.R2;y.Z+=1E4/36E5;y.Z-y.L>1/6&&(oP9(y),y.L=y.Z);l.P1.start()},1E4); g.U(this,this.LX);g.U(this,this.CX);g.U(this,this.tU);g.U(this,this.sF);g.U(this,this.P1)}; hyc=function(R,l){R.playbackData=l;R.videoData.isLivePlayback&&(R.W=new MBY(function(){a:{if(R.playbackData&&R.playbackData.Z.Z){if(eU(R.videoData)&&R.loader){var f=R.loader.Ch.hL()||0;break a}if(R.videoData.Z){f=R.videoData.Z.sL;break a}}f=0}return f}),R.Z=new U7(R.videoData,R.Zq.experiments,function(){return R.x6(!0)})); if(VU(R.Xx)){var y;(y=R.videoData.CJ)!=null&&y.He||(l=mbQ(R),l.dM?(PZ(R.videoData)&&R.C8(l.dM,l.startSeconds),R.L=l.startSeconds):l.startSeconds>0&&R.seekTo(l.startSeconds,{b8:"seektimeline_startPlayback",seekSource:15}));R.B=!1}else ow9(R)||(R.L=R.L||R.videoData.startSeconds||0)}; EwT=function(R,l){(R.loader=l)?cCs(R,!0):C9(R)}; WIQ=function(R,l){g.Cz(R.LX.J);R.C("html5_exponential_memory_for_sticky")&&(l.state.isPlaying()?g.Cz(R.P1):R.P1.stop());if(R.mediaElement)if(l.oldState.state===8&&TA(l.state)&&l.state.isBuffering()){l=R.mediaElement.getCurrentTime();var y=R.mediaElement.Wf();var f=R.C("manifestless_post_live_ufph")||R.C("manifestless_post_live")?tO(y,Math.max(l-3.5,0)):tO(y,l-3.5);if(f>=0&&l>y.end(f)-1.1&&f+10?(qi(R.Xx,R.getCurrentTime()+R.videoData.limitedPlaybackDurationInSeconds),R.W1=!0):R.videoData.isLivePlayback&&R.videoData.endSeconds>0&&(qi(R.Xx,R.getCurrentTime()+R.videoData.endSeconds),R.W1=!0))}; Oqj=function(R,l){var y=R.getCurrentTime(),f=R.isAtLiveHead(y);if(R.W&&f){var A=R.W;if(A.Z&&!(y>=A.X&&y50&&A.X.shift())),A=R.Z,KIK(A,y,l===void 0?!0:l),GQT(A,y),l&&B7T(R,!0));f!==R.nA&&(l=R.getCurrentTime()-R.iQ<=500,y=R.LA>=1E3,l||y||(l=R.Xx.VS,l.qoe&&(l=l.qoe,y=g.lV(l.provider), g.O7(l,y,"lh",[f?"1":"0"])),R.nA=f,R.LA++,R.iQ=R.getCurrentTime()))}; B7T=function(R,l){if(R.Z){var y=R.Z;var f=R.getCurrentTime(),A=y.ev();var K=y.policy.X;y.Y||(K=Math.max(K-1,0));K*=jm(y);f>=A-K||!y.Tn()?y=f0&&Lw(R.mediaElement)>0&&(R.X=tQ(R,R.X,!1)),l=R.C("html5_pseudogapless_shorts_seek_to_next_start")&&(l==null?void 0:l.seekSource)===60,!R.mediaElement||!ey9(R,l))R.sF.start(750);else if(!isNaN(R.X)&&isFinite(R.X)&&(l=R.jS-(R.X-R.timestampOffset),!(l===0||Math.abs(l)<.005)))if(l=R.mediaElement.getCurrentTime()-R.X,Math.abs(l)<=R.UL||Math.abs(l)<.005)bqJ(R);else{if(R.videoData.Uo)R.videoData.Uo= !1;else if(!$K(R.videoData)&&R.X>=R.x6()-.1){R.X=R.x6();R.Y.resolve(R.x6());R.Xx.t6();return}try{var y=R.X-R.timestampOffset;R.mediaElement.seekTo(y);R.LX.Z=y;R.jS=y;R.L=R.X;R.Yb=!1}catch(f){}}}; ey9=function(R,l){l=l===void 0?!1:l;if(!R.mediaElement||R.mediaElement.Tc()===0||R.mediaElement.hasError())return!1;var y=R.mediaElement.getCurrentTime()>0;return R.videoData.L&&R.videoData.L.Z||R.videoData.isLivePlayback||!R.videoData.yT()?R.X>=0&&!l&&(l=R.mediaElement.vN(),l.length||!y)?Y5(l,R.X-R.timestampOffset):y:y}; bqJ=function(R){R.Y&&(R.Y.resolve(R.mediaElement.getCurrentTime()),R.LX.X=null)}; QKj=function(R,l){R.J&&(R.J.resolve(l),R.Xx.PH(),R.Zq.PZ()||$bi(R))&&(l=R.S1(),l["native"]=""+ +R.Yb,l.otgt=""+(R.X+R.timestampOffset),R.Xx.T4("seekEnd",l));C9(R)}; C9=function(R){R.X=NaN;R.D=NaN;R.jS=NaN;R.Y=null;R.xb=null;R.J=null;R.sL=!1;R.Yb=!1;R.UL=0;R.CX.stop();R.tU.stop()}; T7T=function(R,l){var y=R.mediaElement,f=l.type;switch(f){case "seeking":var A=y.getCurrentTime()+R.timestampOffset;if(!R.Y||R.Yb&&A!==R.X){R.Y=new Ee;R.Y.then(function(G){QKj(R,G)},function(){C9(R)}); if(R.videoData.isAd()){var K;Av9({adCpn:R.videoData.clientPlaybackNonce,contentCpn:(K=R.videoData.Yt)!=null?K:""},l.Z)}R.jS=A;arj(R.LX,y.getCurrentTime());R.seekTo(A,{seekSource:104,b8:"seektimeline_mediaElementEvent"});R.Yb=!0}break;case "seeked":bqJ(R);break;case "loadedmetadata":VU(R.Xx)||X2q(R);gA(R);break;case "progress":gA(R);break;case "pause":R.V=R.getCurrentTime()}R.V&&((f==="play"||f==="playing"||f==="timeupdate"||f==="progress")&&R.getCurrentTime()-R.V>10&&(R.C("html5_enable_new_media_element_puase_jump")? (R.Xx.l8(new g.c9("qoe.restart",{reason:"pauseJump"})),R.Xx.UY(),R.seekTo(R.V,{b8:"pauseJumpNewElement"})):R.seekTo(R.V,{b8:"pauseJump"})),f!=="pause"&&f!=="play"&&f!=="playing"&&f!=="progress"&&(R.V=0))}; dbs=function(R){return(jU(R.videoData)||!!R.videoData.liveUtcStartSeconds)&&(!!R.videoData.liveUtcStartSeconds||ow9(R))&&!!R.videoData.Z}; ow9=function(R){return!!R.videoData.startSeconds&&isFinite(R.videoData.startSeconds)&&R.videoData.startSeconds>1E9}; mbQ=function(R){var l=0,y=NaN,f="";if(!R.B)return{startSeconds:l,dM:y,source:f};R.videoData.LX?l=R.videoData.Dq:$K(R.videoData)&&(l=Infinity);if(g.SU(R.videoData))return{startSeconds:l,dM:y,source:f};R.videoData.startSeconds?(f="ss",l=R.videoData.startSeconds):R.videoData.Qb&&(f="stss",l=R.videoData.Qb);R.videoData.liveUtcStartSeconds&&(y=R.videoData.liveUtcStartSeconds);if(isFinite(l)&&(l>R.x6()||lR.x6()||y 0?(f.onesie="0",R.handleError(new g.c9("html5.missingapi",f)),!1):!0}; Ubs=function(R){var l=gn();Vs(l,R);return g.gh(l,vyQ())}; IrT=function(R,l){var y,f,A,K,G,B,H,n,m,h,c,E,W,Q,e,r,d,z,N,D,t,C,Ac,Bi,ar,nk;return g.w(function(Y){if(Y.X==1)return l.fetchType="onesie",y=gss(l,R.getPlayerSize(),R.getVisibilityState()),f=new kL(R,y),g.v(Y,f.fetch(),2);A=Y.Z;K={player_response:A};l.loading=!1;G=R.Qu.xs;if(f.qj){B=g.u(f.qj.entries());for(H=B.next();!H.done;H=B.next())n=H.value,m=g.u(n),h=m.next().value,c=m.next().value,E=h,W=c,G.Z.set(E,W,180),E===l.videoId&&(Q=W.PK(),l.ll=Q);G.bT=f}e=g.u(f.cn.entries());for(r=e.next();!r.done;r= e.next())d=r.value,z=g.u(d),N=z.next().value,D=z.next().value,t=N,C=D,G.X.set(t,C,180);g.sU(l,K,!0);if(l.loading||Gf(l))return Y.return(Promise.resolve());G.Z.removeAll();G.X.removeAll();l.ll=[];Ac={};Bi="onesie.response";ar=0;l.errorCode?(Bi="auth",Ac.ec=l.errorCode,Ac.ed=l.errorDetail,Ac.es=l.Pp||"",ar=2):(Ac.successButUnplayable="1",Ac.disposed=""+ +l.Fx(),Ac.afmts=""+ +/adaptiveFormats/.test(A),Ac.cpn=l.clientPlaybackNonce);nk=new g.c9(Bi,Ac,ar);return Y.return(Promise.reject(nk))})}; w27=function(R,l){var y,f,A,K,G,B,H,n,m,h,c;return g.w(function(E){switch(E.X){case 1:y=l.isAd(),f=!y,A=y?1:3,K=0;case 2:if(!(K0)){E.bQ(5);break}return g.v(E,pv(5E3),6);case 6:G=new g.JD("Retrying OnePlatform request",{attempt:K}),g.dP(G);case 5:return g.$7(E,7),g.v(E,SFK(R,l),9);case 9:return E.return();case 7:B=g.TT(E);H=W9(B);n=H.errorCode;m=R.U();h=m.C("html5_use_network_error_code_enums")?401:"401";f&&n==="manifest.net.badstatus"&&H.details.rc===h&&(f=!1,K===A-1&&(A+= 1));if(K===A-1)return c=jKK(y,H.details),c.details.backend="op",c.details.originec=n,E.return(Promise.reject(c));if(n==="auth"||n==="manifest.net.retryexhausted")return E.return(Promise.reject(H));R.handleError(H);if(Eu(H.severity)){E.bQ(4);break}case 3:K++;E.bQ(2);break;case 4:return E.return(Promise.reject(jKK(y,{backend:"op"})))}})}; SFK=function(R,l){function y(Bi){Bi.readyState===2&&R.Uj("ps_c")} var f,A,K,G,B,H,n,m,h,c,E,W,Q,e,r,d,z,N,D,t,C,Ac;return g.w(function(Bi){switch(Bi.X){case 1:l.fetchType="gp";f=R.U();A=g.OS(f,g.MD(l));if(!A.Z){K=A.getValue();Bi.bQ(2);break}return g.v(Bi,A.Z,3);case 3:K=Bi.Z;case 2:return G=K,B=Ubs(G),H=gss(l,R.getPlayerSize(),R.getVisibilityState()),n=g.ML(kQY),m=g.MD(l),h=(0,g.eY)(),c=!1,E="empty",W=0,R.Uj("psns"),Q={zT:y},g.v(Bi,g.xr(B,H,n,void 0,Q),4);case 4:e=Bi.Z;R.Uj("psnr");if(l.Fx())return Bi.return();e?"error"in e&&e.error?(c=!0,E="esf:"+e.error.message, W=e.error.code):e.errorMetadata&&(c=!0,E="its",W=e.errorMetadata.status):c=!0;if(c)return r=0,d=((0,g.eY)()-h).toFixed(),z={},z=f.C("html5_use_network_error_code_enums")?{backend:"op",rc:W,rt:d,reason:E,has_kpt:l.RV?"1":"0",has_mdx_env:l.mdxEnvironment?"1":"0",has_omit_key_flag:g.JZ("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:f.pageId?"1":"0",has_token:m?"1":"0",has_vvt:l.sL?"1":"0",is_mdx:l.isMdxPlayback?"1":"0",mdx_ctrl:l.XO||"",token_eq:m===g.MD(l)?"1":"0"}:{backend:"op", rc:""+W,rt:d,reason:E,has_kpt:l.RV?"1":"0",has_mdx_env:l.mdxEnvironment?"1":"0",has_omit_key_flag:g.JZ("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:f.pageId?"1":"0",has_token:m?"1":"0",has_vvt:l.sL?"1":"0",is_mdx:l.isMdxPlayback?"1":"0",mdx_ctrl:l.XO||"",token_eq:m===g.MD(l)?"1":"0"},N="manifest.net.connect",W===429?(N="auth",r=2):W>200&&(N="manifest.net.badstatus",W===400&&(r=2)),Bi.return(Promise.reject(new g.c9(N,z,r)));l.loading=!1;g.sU(l,{raw_player_response:e},!0); D=e;g.CI(l.U())&&D&&D.trackingParams&&q6(D.trackingParams);if(l.errorCode)return t={ec:l.errorCode,ed:l.errorDetail,es:l.Pp||""},Bi.return(Promise.reject(new g.c9("auth",t,2)));if(!l.loading&&!Gf(l))return C=l.isAd()?"auth":"manifest.net.retryexhausted",Ac=l.isAd()?2:1,Bi.return(Promise.reject(new g.c9(C,{successButUnplayable:"1",hasMedia:g.ND(l)?"1":"0"},Ac)));g.Q9(Bi)}})}; zyK=function(R,l,y){function f(W){W=W9(W);if(Eu(W.severity))return Promise.reject(W);R.handleError(W);return!1} function A(){return!0} var K,G,B,H,n,m,h,c,E;return g.w(function(W){switch(W.X){case 1:var Q=R.U();R.getPlayerSize();R.getVisibilityState();R.isFullscreen();if(l.partnerId===38&&Q.playerStyle==="books")Q=l.videoId.indexOf(":"),Q=g.L4("//play.google.com/books/volumes/"+l.videoId.slice(0,Q)+"/content/media",{aid:l.videoId.slice(Q+1),sig:l.Cp});else if(l.partnerId===30&&Q.playerStyle==="docs")Q=g.L4("https://docs.google.com/get_video_info",{docid:l.videoId,authuser:l.SW,authkey:l.Z9,eurl:Q.RV});else if(l.partnerId===33&&Q.playerStyle=== "google-live")Q=g.L4("//google-liveplayer.appspot.com/get_video_info",{key:l.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+Q.LX);K=Q;B=(G=l.isAd())?1:3;H=0;case 2:if(!(H0)){W.bQ(5);break}return g.v(W,pv(5E3),6);case 6:m={playerretry:H,playerretrysrc:y},G||(m.recover="embedded"),n=K0(K,m);case 5:return g.v(W,Db9(l,n).then(A,f),7);case 7:if(h=W.Z)return W.return();H++;W.bQ(2);break;case 4:c=G?"auth":"manifest.net.retryexhausted";E=G?2:1;if(!G&&Math.random()< 1E-4)try{g.dP(new g.JD("b/152131571",btoa(K)))}catch(e){}return W.return(Promise.reject(new g.c9(c,{backend:"gvi"},E)))}})}; Db9=function(R,l){function y(e){return f(e.xhr)} function f(e){if(!R.Fx()){e=e?e.status:-1;var r=0,d=((0,g.eY)()-m).toFixed();d=A.C("html5_use_network_error_code_enums")?{backend:"gvi",rc:e,rt:d}:{backend:"gvi",rc:""+e,rt:d};var z="manifest.net.connect";e===429?(z="auth",r=2):e>200&&(z="manifest.net.badstatus",e===400&&(r=2));return Promise.reject(new g.c9(z,d,r))}} var A,K,G,B,H,n,m,h,c,E,W,Q;return g.w(function(e){if(e.X==1){R.fetchType="gvi";A=R.U();var r={};R.WJ&&(r.ytrext=R.WJ);(B=g.oL(r)?void 0:r)?(K={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:B},G=K0(l,{action_display_post:1})):(K={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},G=l);H={};A.sendVisitorIdHeader&&R.visitorData&&(H["X-Goog-Visitor-Id"]=R.visitorData);(n=EN(A.experiments,"debug_sherlog_username"))&&(H["X-Youtube-Sherlog-Username"]=n);Object.keys(H).length> 0&&(K.headers=H);m=(0,g.eY)();return g.v(e,dS(bW,G,K).then(void 0,y),2)}h=e.Z;if(!h||!h.responseText)return e.return(f(h));R.loading=!1;c=Rw(h.responseText);g.sU(R,c,!0);if(R.errorCode)return E={ec:R.errorCode,ed:R.errorDetail,es:R.Pp||""},e.return(Promise.reject(new g.c9("auth",E,2)));if(!R.loading&&!Gf(R))return W=R.isAd()?"auth":"manifest.net.retryexhausted",Q=R.isAd()?2:1,e.return(Promise.reject(new g.c9(W,{successButUnplayable:"1"},Q)));g.Q9(e)})}; jKK=function(R,l){return new g.c9(R?"auth":"manifest.net.retryexhausted",l,R?2:1)}; yj=function(R,l,y){y=y===void 0?!1:y;var f,A,K,G;g.w(function(B){if(B.X==1){f=R.U();if(y&&(!g.oG(f)||CC(l)!=="embedded")||l.Oo||CC(l)!=="adunit"&&(g.Eb(f)||yV(f)||g.xi(f)||g.mQ(f)||g.qE(f)||hu(f)==="WEB_CREATOR"))return B.return();A=g.OS(f,g.MD(l));return A.Z?g.v(B,A.Z,3):(K=A.getValue(),B.bQ(2))}B.X!=2&&(K=B.Z);G=K;return B.return(Zqs(R,l,G))})}; Zqs=function(R,l,y){var f,A,K,G,B;return g.w(function(H){if(H.X==1){g.$7(H,2);f=Ubs(y);var n=l.U();g.UG();var m={context:g.hz(l),videoId:l.videoId,racyCheckOk:l.racyCheckOk,contentCheckOk:l.contentCheckOk,autonavState:"STATE_NONE"};CC(l)==="adunit"&&(m.isAdPlayback=!0);n.embedConfig&&(m.serializedThirdPartyEmbedConfig=n.embedConfig);n.GK&&(m.showContentOwnerOnly=!0);l.L9&&(m.showShortsOnly=!0);g.SI(0,141)&&(m.autonavState=g.SI(0,140)?"STATE_OFF":"STATE_ON");if(g.Hm(n)){var h=g.SI(0,65);h=h!=null? !h:!1;var c=!!g.zI("yt-player-sticky-caption");m.captionsRequested=h&&c}var E;if(n=(E=n.getWebPlayerContextConfig())==null?void 0:E.encryptedHostFlags)m.playbackContext={encryptedHostFlags:n};A=m;K=g.ML(JCZ);R.Uj("wn_s");return g.v(H,g.xr(f,A,K),4)}if(H.X!=2)return G=H.Z,R.Uj("wn_r"),!G||"error"in G&&G.error||(B=G,g.CI(l.U())&&B.trackingParams&&q6(B.trackingParams),g.sU(l,{raw_watch_next_response:G},!1)),g.XZ(H,0);g.TT(H);g.Q9(H)})}; gwJ=function(R){R.Uj("vir");R.Uj("ps_s");vo("vir",void 0,"video_to_ad");var l=p29(R);l.then(function(){R.Uj("virc");vo("virc",void 0,"video_to_ad");R.Uj("ps_r");vo("ps_r",void 0,"video_to_ad")},function(){R.Uj("virc"); vo("virc",void 0,"video_to_ad")}); return l}; g.Ky=function(R,l,y,f,A,K,G,B,H,n){H=H===void 0?new g.KC(R):H;n=n===void 0?!0:n;g.Ae.call(this);var m=this;this.Zq=R;this.playerType=l;this.yS=y;this.F5=f;this.getVisibilityState=K;this.visibility=G;this.Qu=B;this.videoData=H;this.YC=n;this.logger=new g.WC("VideoPlayer");this.ES=null;this.t$=new n9;this.Po=null;this.U7=!0;this.z4=this.loader=null;this.FC=[];this.yr=new l$;this.Vq=this.M6=null;this.sT=new l$;this.qn=null;this.St=this.BK=!1;this.Za=NaN;this.CU=!1;this.playerState=new g.uZ;this.L3=[]; this.f6=new g.QW;this.by=new UGr(this);this.mediaElement=null;this.m3=new g.Vg(this.Dx$,15E3,this);this.nF=this.Dc=!1;this.AD=NaN;this.Ae=!1;this.qq=0;this.Od=!1;this.hX=NaN;this.Gb=new YY(new Map([["bufferhealth",function(){return LIr(m.C_)}], ["bandwidth",function(){return m.Nv()}], ["networkactivity",function(){return m.Zq.schedule.xb}], ["livelatency",function(){return m.isAtLiveHead()&&m.isPlaying()?VTr(m):NaN}], ["rawlivelatency",function(){return VTr(m)}]])); this.ZP=0;this.loop=!1;this.playbackRate=1;this.nC=0;this.C_=new nwq(this);this.jr=!1;this.Xa=[];this.sG=this.gG=0;this.Qp=this.tA=!1;this.wT=this.h9=0;this.tb=new g.Vg(this.g5,0,this);this.Wk=!1;this.Ns=null;this.QEL=[this.f6,this.tb,this.m3,this.Gb];this.Uk=this.dl=null;this.cA=function(){var h=m.VS;h.provider.Zq.Qq||h.provider.Xx.getVisibilityState()===3||(h.provider.Zq.Qq=!0);h.aK();if(h.X){var c=h.X;c.J&&c.Z<0&&c.provider.Xx.getVisibilityState()!==3&&WPr(c)}h.qoe&&(h=h.qoe,h.tU&&h.L<0&&h.provider.Zq.Qq&& Vmk(h),h.Y&&uV(h));m.loader&&fy(m);m.Zq.jT&&!m.videoData.backgroundable&&m.mediaElement&&!m.tL()&&(m.isBackground()&&m.mediaElement.i4()?(m.T4("bgmobile",{suspend:1}),m.KW(!0,!0)):m.isBackground()||Af(m)&&m.T4("bgmobile",{resume:1}))}; this.yu={Jv:function(h){m.Jv(h)}, Uy4:function(h){m.ES=h}, l77:function(){return m.VS}, eK:function(){return m.z4}, RjS:function(){return m.Zl}, Q$b:function(){return m.Xz}, Tuq:function(){}, U:function(){return m.Zq}, t1:function(){return m.mediaElement}, Ixb:function(h){m.xD(h)}, bNS:function(){return m.F5}}; this.logger.debug(function(){return"creating, type "+l}); this.ph=new C$Y(this.Zq);this.OC=new oP(this.Zq,this.F5,this);this.Tf=new g.xY(this,function(h,c){h!==g.Vx("endcr")||g.V(m.playerState,32)||m.t6();A(h,c,m.playerType);if(h===g.Vx("transitiondetector")&&(h=m.loader)!=null&&(h=h.iQ)!=null){var E=g.u(DDi(c.id));E.next();E=E.next().value;UD7(h,E,c.start/1E3-h.Xx.fA(),rtJ(h.Y))}}); g.U(this,this.Tf);g.U(this,this.C_);CRc(this,H);this.videoData.subscribe("dataupdated",this.JkE,this);this.videoData.subscribe("dataloaded",this.Fz,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.T4,this);this.videoData.subscribe("ctmpstr",this.iD,this);!this.VS||this.VS.Fx();this.VS=new g.wA(new zV(this.videoData,this.Zq,this));Njk(this.cA);this.visibility.subscribe("visibilitystatechange",this.cA);this.Zl=new g.Vg(this.O0,g.yx(this.Zq.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.Xz=new g.Vg(this.O0,g.yx(this.Zq.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.BF=new g.YA(this.C84,350,this);g.U(this,this.BF)}; CRc=function(R,l){if(R.playerType===2||R.Zq.mC)l.Kr=!0;var y=Gcr(l.Qq,l.Yf,R.Zq.Y,R.Zq.W);y&&(l.adFormat=y);R.playerType===2&&(l.Hf=!0);if(R.isFullscreen()||R.Zq.Y)y=g.zI("yt-player-autonavstate"),l.autonavState=y||(R.Zq.Y?2:R.videoData.autonavState);l.endSeconds&&l.endSeconds>l.startSeconds&&qi(R,l.endSeconds)}; qFo=function(R){var l=R.videoData;gwJ(R).then(void 0,function(y){R.videoData!==l||l.Fx()||(y=W9(y),y.errorCode==="auth"&&R.videoData.errorDetail?R.LJ(y.errorCode,2,unescape(R.videoData.errorReason),hO(y.details),R.videoData.errorDetail,R.videoData.Pp||void 0):R.handleError(y))})}; MTj=function(R){if(!g.V(R.playerState,128))if(R.videoData.isLoaded(),R.logger.debug("finished loading playback data"),R.FC=g.wO(R.videoData.Yb),g.ND(R.videoData)){R.yS.tick("bpd_s");GH(R).then(function(){R.yS.tick("bpd_c");if(!R.Fx()){R.BK&&(R.Xc($N($N(R.playerState,512),1)),Af(R));var f=R.videoData;f.endSeconds&&f.endSeconds>f.startSeconds&&qi(R,f.endSeconds);R.yr.finished=!0;av(R,"dataloaded");R.sT.r$()&&tTY(R);EYK(R.OC,R.Vq)}}); R.C("html5_log_media_perf_info")&&R.T4("loudness",{v:R.videoData.Vu.toFixed(3)},!0);var l,y=(l=R.mediaElement)==null?void 0:l.al();if(y&&"disablePictureInPicture"in y&&R.Zq.mN)try{y.disablePictureInPicture=R.Zq.mS&&!R.videoData.backgroundable}catch(f){g.dP(f)}YFJ(R)}else av(R,"dataloaded")}; GH=function(R){sH(R);R.Vq=null;var l=tBq(R.Zq,R.videoData,R.tL());R.M6=l;R.M6.then(function(y){ReZ(R,y)},function(y){R.Fx()||(y=W9(y),R.visibility.isBackground()?(BA(R,"vp_none_avail"),R.M6=null,R.yr.reset()):(R.yr.finished=!0,R.LJ(y.errorCode,y.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",hO(y.details))))}); return l}; ReZ=function(R,l){if(!R.Fx()&&!l.videoData.Fx()){R.logger.debug("finished building playback data");R.Vq=l;hyc(R.C_,R.Vq);if(R.videoData.isLivePlayback){var y=lWk(R.Qu.xs,R.videoData.videoId)||R.loader&&!isNaN(R.loader.xb);y=R.C("html5_onesie_live")&&y;VU(R)||R.videoData.LA>0&&!eU(R.videoData)||y||R.seekTo(R.x6(),{b8:"videoplayer_playbackData",seekSource:18})}if(R.videoData.L.Z){if(xj9(R.videoData)){R.C("html5_sabr_report_missing_url_as_error_terminal")?R.LJ("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR", hO({missabrurl:1})):R.handleError(new g.c9("fmt.missing",{missabrurl:"1"},2));return}R.loader?g.dP(Error("Duplicated Loader")):(y=g.yx(R.Zq.experiments,"html5_onesie_defer_content_loader_ms"))&&R.k8()&&lWk(R.Qu.xs,R.videoData.qR)?g.h$(function(){R.Fx()||R.loader||yj9(R)},y):yj9(R)}else!R.videoData.L.Z&&ys(R.videoData)&&R.oZ(new Ef(R.videoData.videoId||"",4)); R.M2();sP7(l).then(function(){var f={};R.DE(f);R.Zq.PZ()&&R.C("html5_log_media_perf_info")&&R.T4("av1Info",f);fy(R)})}}; tTY=function(R){R.Fx();R.logger.debug("try finish readying playback");if(R.sT.finished)R.logger.debug("already finished readying");else if(R.yr.finished)if(g.V(R.playerState,128))R.logger.debug("cannot finish readying because of error");else if(R.FC.length)R.logger.debug(function(){return"cannot finish readying because of pending preroll: "+R.FC}); else if(R.Tf.started||jvQ(R.Tf),R.jK())R.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{R.loader&&(R.St=zwQ(R.loader.timing));R.sT.finished||(R.sT.finished=!0);var l=R.C("html5_onesie_live")&&R.loader&&!isNaN(R.loader.xb);!R.videoData.isLivePlayback||R.videoData.LA>0&&!eU(R.videoData)||l||VU(R)||(R.logger.debug("seek to head for live"),R.seekTo(Infinity,{b8:"videoplayer_readying",seekSource:18}),R.isBackground()&&(R.nF=!0));eTZ(R.VS);R.logger.debug("finished readying playback"); R.publish("playbackready");dh("pl_c",R.yS.timerName)||(R.yS.tick("pl_c"),vo("pl_c",void 0,"video_to_ad"));dh("pbr",R.yS.timerName)||(R.yS.tick("pbr"),vo("pbr",void 0,"video_to_ad"))}else R.logger.debug("playback data not loaded")}; qi=function(R,l){R.Po&&fWQ(R);R.Po=new g.Jq(l*1E3,0x7ffffffffffff);R.Po.namespace="endcr";R.addCueRange(R.Po)}; fWQ=function(R){R.removeCueRange(R.Po);R.Po=null}; AjQ=function(R,l,y,f,A){var K=R.VS,G=R.videoData;G.X=y;var B=g.HA(R);y=new Yg9(G,y,l,B?B.itag:"",f);R.Zq.experiments.EL("html5_refactor_sabr_video_format_selection_logging")?(y.videoId=A,R.Uk=y):K.qoe&&INs(K.qoe,y);A=R.OC;A.X=0;A.Z=0;R.publish("internalvideoformatchange",G,l==="m")}; g.HA=function(R){var l=ny(R);return e2(l)||!R.Vq?null:g.iA(R.Vq.Z.videoInfos,function(y){return l.Y(y)})}; ny=function(R){if(R.Vq){var l=R.OC;var y=R.Vq;R=R.QC();var f=lk7(l);if(e2(f)){if(f=MtK(l,y).compose(KPY(l,y)).compose(akq(l,y)).compose(hr7(l,y.videoData)).compose(cQZ(l,y.videoData,y)).compose(oYQ(l,y)).compose(fkY(l,y)),e2(R)||l.C("html5_apply_pbr_cap_for_drm"))f=f.compose(AQc(l,y))}else l.C("html5_perf_cap_override_sticky")&&(f=f.compose(oYQ(l,y))),l.C("html5_ustreamer_cap_override_sticky")&&(f=f.compose(AQc(l,y)));f=f.compose(fkY(l,y));l=y.videoData.kL.compose(f).compose(y.videoData.DA).compose(R)}else l= At;return l}; HC7=function(R){var l=R.OC;R=R.videoData;var y=hr7(l,R);l.C("html5_disable_client_autonav_cap_for_onesie")||y.compose(cQZ(l,R));return y}; fy=function(R){if(R.videoData.L&&R.videoData.L.Z){var l=ny(R);R.loader&&m9j(R.loader,l)}}; KrT=function(R){var l;return!!(R.C("html5_native_audio_track_switching")&&g.LO&&((l=R.videoData.X)==null?0:SM(l)))}; G4s=function(R){if(!KrT(R))return!1;var l;R=(l=R.mediaElement)==null?void 0:l.audioTracks();return!!(R&&R.length>1)}; spJ=function(R){var l=aWq(R);if(l)return R.videoData.getAvailableAudioTracks().find(function(y){return y.hF.getName()===l})}; aWq=function(R){var l;if(R=(l=R.mediaElement)==null?void 0:l.audioTracks())for(l=0;l0&&(l.o9=f.ET));l.AJ=f.ML;l.Dy=Mq(y,{},f.L||void 0,OU(f));l.W1=LC(f)&&(g.xi(y)||g.mQ(y));PZ(f)&&(l.J=!0,l.Qb=!0,y.C("html5_sabr_report_partial_segment_estimated_duration")&&(l.hg=!0),l.Z=!0,l.I$=y.C("html5_sabr_enable_live_clock_offset"), l.IL=y.C("html5_disable_client_resume_policy_for_sabr"),l.sR=y.C("html5_trigger_loader_when_idle_network"),l.g9=y.C("html5_sabr_parse_live_metadata_playback_boundaries"),l.Pv=y.C("html5_enable_platform_backpressure_with_sabr"),l.Y8=y.C("html5_consume_onesie_next_request_policy_for_sabr"),l.UH=y.C("html5_sabr_report_next_ad_break_time"),l.ZS=y.C("html5_log_high_res_buffer_timeline")&&y.PZ(),l.Wv=y.C("html5_remove_stuck_slices_beyond_max_buffer_limits"),l.xI=y.C("html5_gapless_sabr_btl_last_slice")&& WZ(f),l.fV=y.C("html5_reset_last_appended_slice_on_seek")&&WZ(f),eU(f)?(l.d9=!0,l.r6=y.C("html5_estimate_partial_segment_duration"),l.Gu=y.C("html5_disable_variability_tracker_for_live"),l.tU=!0,y.C("html5_simplified_backup_timeout_sabr_live")&&(l.ZT=!0,l.NW=l.ET)):l.OF=y.C("html5_probe_request_on_sabr_request_progress"),l.V_=y.C("html5_serve_start_seconds_seek_for_post_live_sabr"),l.lj=y.C("html5_flush_index_on_updated_timestamp_offset"),l.B=PZ(f),l.TD=y.C("html5_ignore_partial_segment_from_live_readahead"), y.C("html5_include_partial_segment_for_jumbo_ll")&&bp(f)&&(l.TD=!1),l.J5=y.C("html5_use_buffer_health_for_readahead"),l.Qc=y.C("html5_use_non_active_broadcast_for_post_live"),l.sL=y.C("html5_use_centralized_player_time"),l.ZW=y.C("html5_consume_onesie_sabr_seek"),l.Yb=y.C("html5_enable_sabr_seek_loader_refactor"),l.Dk=y.C("html5_update_segment_start_time_from_media_header"),f.enableServerStitchedDai&&(l.X=!0,l.dS=y.C("html5_reset_server_stitch_state_for_non_sabr_seek"),l.Ag=y.C("html5_remove_ssdai_append_pause")&& !f.h1(),l.R2=y.C("html5_ssdai_log_ssevt_in_loader")||y.C("html5_ssdai_log_ssevt_in_loader_200ms")||y.C("html5_ssdai_log_ssevt_in_loader_timers")||y.C("html5_ssdai_log_ssevt_in_loader_cuerange"),y.C("html5_ssdai_log_ssevt_in_loader_timers")?l.B1=1:y.C("html5_ssdai_log_ssevt_in_loader_200ms")?l.B1=3:y.C("html5_ssdai_log_ssevt_in_loader_cuerange")&&(l.B1=0)),l.jT=y.PZ()||f.h1());l.Vu=g.z0o(f);S2(y.J,j2.BITRATE)&&(l.r7=NaN);if(B=g.yx(y.experiments,"html5_request_size_max_kb"))l.v1=B*1024;y.J.L?l.Kf="; "+ j2.EXPERIMENTAL.name+"=allowed":y.C("html5_enable_cobalt_tunnel_mode")&&(l.Kf="; tunnelmode=true");B=f.serverPlaybackStartConfig;(B==null?0:B.enable)&&(B==null?0:B.playbackStartPolicy)&&(l.pw=!0,Vp(l,B.playbackStartPolicy,2));B=Bvk(R);R.t$.removeAll();a:{y=R.Qu.xs;if(f=R.videoData.videoId)if(A=y.Z.get(f)){y.Z.remove(f);y=A;break a}y=void 0}R.loader=new g.RP(R,R.Zq.schedule,l,R.videoData.Z,R.videoData.L,ny(R),B,R.videoData.enableServerStitchedDai,y,R.videoData.B);l=R.videoData.C("html5_disable_preload_for_ssdai_with_preroll")&& R.videoData.isLivePlayback&&R.k8()?!0:R.BK&&g.Eb(R.Zq)&&R.videoData.isLivePlayback;R.loader.initialize(R.getCurrentTime(),ny(R),l);R.videoData.probeUrl&&(R.loader.W1=R.videoData.probeUrl);if(R.FC.length||R.BK)R.videoData.cotn||mR(R,!1);EwT(R.C_,R.loader);R.Ns&&(wdK(R.loader,new g.yU(R.Ns)),R.T4("sdai",{sdl:1}));g.KM(R.videoData)&&(R=R.loader,R.policy.c6=R.policy.Wy)}; sH=function(R){R.loader&&(R.loader.dispose(),R.loader=null,EwT(R.C_,null));R.Lf()?H5j(R):R.o$()}; H5j=function(R){if(R.z4)if(R.logger.debug("release media source"),R.Ze(),R.z4.J)try{R.Zq.PZ()&&R.T4("rms",{l:"vprms",sr:R.Lf(),rs:h2(R.z4)});R.z4.clear();var l;(l=R.mediaElement)!=null&&(l.X=R.z4);R.z4=null}catch(y){l=new g.JD("Error while clearing Media Source in VideoPlayer: "+y.name+", "+y.message),l=W9(l),R.handleError(l),R.o$()}else R.o$()}; nBr=function(R,l){l=l===void 0?!1:l;if(R.z4)return R.z4.L;R.logger.debug("update media source");a:{l=l===void 0?!1:l;try{g.Db()&&R.videoData.rK()&&kGZ(R.mediaElement);var y=R.mediaElement.eK(R.tI(),R.hK())}catch(A){if(ZTJ(R.by,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",A);R.LJ("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}R.x7(y,!1,!1,l)}var f;return((f=R.eK())==null?void 0:f.L)||null}; mfs=function(R,l){l=l===void 0?!1:l;if(R.loader){R.videoData.enableServerStitchedDai&&kvQ(R.loader);var y=R.getCurrentTime()-R.fA();R.loader.seek(y,{w$:l}).H6(function(){})}else yj9(R)}; her=function(R,l,y,f){y=y===void 0?!1:y;f=f===void 0?!1:f;if(R.z4&&(!l||R.z4===l)){R.logger.debug("media source opened");var A=R.getDuration();!A&&eU(R.videoData)&&(A=25200);if(R.z4.isView){var K=A;R.logger.debug(function(){return"Set media source duration to "+K+", video duration "+A}); K>R.z4.getDuration()&&oBq(R,K)}else oBq(R,A);Bn7(R.loader,R.z4,y,f);R.publish("mediasourceattached")}}; oBq=function(R,l){if(R.z4){R.z4.Oz(l);var y;(y=R.loader)!=null&&y.policy.sL&&(y.D=l)}}; hYi=function(R,l){AjQ(R,l.reason,l.Z.info,l.token,l.videoId)}; av=function(R,l){R.publish("internalvideodatachange",l===void 0?"dataupdated":l,R.videoData)}; cjj=function(R){for(var l=g.u("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),y=l.next();!y.done;y=l.next())R.f6.N(R.mediaElement,y.value,R.xD,R);R.Zq.qA&&R.mediaElement.Q_()&&(R.f6.N(R.mediaElement,"webkitplaybacktargetavailabilitychanged",R.PQ7,R),R.f6.N(R.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",R.vbU,R))}; WrZ=function(R){g.Wh(R.Za);EBr(R)||(R.Za=g.ch(function(){return EBr(R)},100))}; EBr=function(R){var l=R.mediaElement;l&&R.Dc&&!R.videoData.xb&&!dh("vfp",R.yS.timerName)&&l.Tc()>=2&&!l.isEnded()&&lZ(l.Wf())&&R.yS.tick("vfp");return(l=R.mediaElement)&&!R.videoData.xb&&l.getDuration()>0&&(l.isPaused()&&l.Tc()>=2&&lZ(l.Wf())&&(dh("pbp",R.yS.timerName)||R.yS.tick("pbp"),!R.videoData.wN||R.CU||l.isSeeking()||(R.CU=!0,R.publish("onPlaybackPauseAtStart"))),l=l.getCurrentTime(),IP(R.ph,l))?(R.n2(),!0):!1}; O5k=function(R){R.VS.Pf();if($K(R.videoData)&&Date.now()>R.nC+6283){if(!(!R.isAtLiveHead()||R.videoData.Z&&S5(R.videoData.Z))){var l=R.VS;if(l.qoe){l=l.qoe;var y=l.provider.Xx.Jm(),f=g.lV(l.provider);UiY(l,f,y);y=y.L;isNaN(y)||g.O7(l,f,"e2el",[y.toFixed(3)])}}R.C("html5_alc_live_log_rawlat")?(l=R.videoData,l=g.hq(l.U())?!0:g.sS(l.U())?l.drmProduct==="6":!1):l=g.hq(R.Zq);l&&R.T4("rawlat",{l:Rv(R.Gb,"rawlivelatency").toFixed(3)});R.nC=Date.now()}R.videoData.X&&SM(R.videoData.X)&&(l=R.d$())&&l.videoHeight!== R.sG&&(R.sG=l.videoHeight,AjQ(R,"a",LrK(R,R.videoData.tU)))}; LrK=function(R,l){if(l.Z.video.quality==="auto"&&SM(l.getInfo())&&R.videoData.f_)for(var y=g.u(R.videoData.f_),f=y.next();!f.done;f=y.next())if(f=f.value,f.getHeight()===R.sG&&f.Z.video.quality!=="auto")return f.getInfo();return l.getInfo()}; VTr=function(R){if(!$K(R.videoData))return NaN;var l=0;R.loader&&R.videoData.Z&&(l=eU(R.videoData)?R.loader.Ch.hL()||0:R.videoData.Z.sL);return(0,g.eY)()/1E3-R.wc()-l}; PPK=function(R){R.mediaElement&&R.mediaElement.tL()&&(R.hX=(0,g.eY)());R.Zq.TK?g.h$(function(){i5Z(R)},0):i5Z(R)}; i5Z=function(R){var l;if((l=R.z4)==null||!l.gk()){if(R.mediaElement)try{R.qn=R.mediaElement.playVideo()}catch(f){BA(R,"err."+f)}if(R.qn){var y=R.qn;y.then(void 0,function(f){R.logger.debug(function(){return"playMediaElement failed: "+f}); if(!g.V(R.playerState,4)&&!g.V(R.playerState,256)&&R.qn===y)if(f&&f.name==="AbortError"&&f.message&&f.message.includes("load"))R.logger.debug(function(){return"ignore play media element failure: "+f.message}); else{var A="promise";f&&f.name&&(A+=";m."+f.name);BA(R,A);R.jr=!0;R.videoData.HA=!0}})}}}; BA=function(R,l){g.V(R.playerState,128)||(R.Xc(bZ(R.playerState,1028,9)),R.T4("dompaused",{r:l}),R.publish("onAutoplayBlocked"))}; Af=function(R,l){l=l===void 0?!1:l;if(!R.mediaElement||!R.videoData.L)return!1;var y=l;y=y===void 0?!1:y;var f=null;var A;if((A=R.videoData.L)==null?0:A.Z){f=nBr(R,y);var K;(K=R.loader)==null||K.resume()}else sH(R),R.videoData.tU&&(f=R.videoData.tU.vy());A=R.mediaElement.i4();y=!1;A&&A.equals(f)||(uxr(R,f),y=!0);g.V(R.playerState,2)||(f=R.C_,l=l===void 0?!1:l,f.J||!(f.L>0)||f.mediaElement&&f.mediaElement.getCurrentTime()>0||(l={b8:"seektimeline_resumeTime",w$:l},f.videoData.xb||(l.seekSource=15), f.seekTo(f.L,l)));a:{l=y;if(PZ(R.videoData)){if(!R.videoData.yT())break a}else if(!g.zf(R.videoData))break a;if(R.mediaElement)if((f=R.videoData.J)&&R.mediaElement.Q_()){A=R.mediaElement.al();if(R.ES)if(A!==R.ES.element)ov(R);else if(l&&f.flavor==="fairplay"&&!Zb())ov(R);else break a;if(R.C("html5_report_error_for_unsupported_tvos_widevine")&&Zb()&&f.flavor==="widevine")l=R.C("html5_log_fmt_unplaybable_trigger")?"trg.unspttvoswidevine":"drm.unspttvoswidevine",R.LJ("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK", l);else{R.ES=new XNc(A,R.videoData,R.Zq);R.ES.subscribe("licenseerror",R.jB,R);R.ES.subscribe("qualitychange",R.slb,R);R.ES.subscribe("heartbeatparams",R.T2,R);R.ES.subscribe("keystatuseschange",R.Jv,R);R.ES.subscribe("ctmp",R.T4,R);l=g.u(R.t$.keys);for(f=l.next();!f.done;f=l.next())f=R.t$.get(f.value),R.ES.Ff(f);R.C("html5_eme_loader_sync")||R.t$.removeAll()}}else l=R.C("html5_log_fmt_unplaybable_trigger")?"trg.updatedrm":"drm.1",R.LJ("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",l)}return y}; uxr=function(R,l){R.yS.tick("vta");vo("vta",void 0,"video_to_ad");R.getCurrentTime()>0&&iqk(R.C_,R.getCurrentTime());R.mediaElement.activate(l);R.z4&&ld(4);!R.videoData.xb&&R.playerState.isOrWillBePlaying()&&R.m3.start();if(KrT(R)){var y;if(l=(y=R.mediaElement)==null?void 0:y.audioTracks())l.onchange=function(){R.publish("internalaudioformatchange",R.videoData,!0)}}}; ov=function(R){R.ES&&(R.ES.dispose(),R.ES=null)}; FrQ=function(R){var l=l===void 0?!1:l;R.logger.debug("reattachVideoSource");R.mediaElement&&(R.z4?(ov(R),R.o$(),nBr(R,l)):(R.videoData.tU&&R.videoData.tU.jX(),R.mediaElement.stopVideo()),R.playVideo())}; QpJ=function(R,l){R.Zq.C("html5_log_rebuffer_reason")&&(l={r:l,lact:uq()},R.mediaElement&&(l.bh=Oe(R.mediaElement)),R.T4("bufreason",l))}; $fc=function(R,l){if(R.Zq.PZ()&&R.mediaElement){var y=R.mediaElement.S1();y.omt=(R.mediaElement.getCurrentTime()+R.fA()).toFixed(3);y.ps=R.playerState.state.toString(16);y.rt=(g.lV(R.VS.provider)*1E3).toFixed();y.e=l;R.Xa[R.gG++%5]=y}try{if(l==="timeupdate"||l==="progress")return}catch(f){}R.logger.debug(function(){return"video element event "+l})}; eer=function(R){if(R.Zq.PZ()){R.Xa.sort(function(f,A){return+f.rt-+A.rt}); for(var l=g.u(R.Xa),y=l.next();!y.done;y=l.next())y=y.value,R.T4("vpe",Object.assign({t:y.rt},y));R.Xa=[];R.gG=0}}; b5k=function(R){if(g.j0("cobalt")&&g.j0("nintendo switch")){var l=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;R.T4("nxdock",{d:l})}}; mR=function(R,l){var y;(y=R.loader)==null||Azs(y,l)}; YFJ=function(R){aE(R.videoData,"html5_set_debugging_opt_in")&&(R=g.UG(),g.SI(0,183)||(k1(183,!0),R.save()))}; D9Y=function(R,l){R.Qu.xv()||(R.T4("sgap",{f:l}),R.Qu.clearQueue(!1,l==="pe"))}; VU=function(R){return R.C("html5_disable_video_player_initiated_seeks")&&PZ(R.videoData)}; XPc=function(R){GW.call(this,R);var l=this;this.events=new g.QW(R);g.U(this,this.events);EW(this.api,"isLifaAdPlaying",function(){return l.api.isLifaAdPlaying()}); this.events.N(R,"serverstitchedvideochange",function(){var y;(y=l.api.getVideoData())!=null&&y.h1()&&(l.api.isLifaAdPlaying()?(l.playbackRate=l.api.getPlaybackRate(),l.api.setPlaybackRate(1)):l.api.setPlaybackRate(l.playbackRate))}); this.playbackRate=1}; hf=function(R){ox.call(this,"En bucle",g.il.Z_);this.G=R;var l=R.C("delhi_modern_web_player_icons")?{T:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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"}}]}:v1s();this.setIcon(l);this.subscribe("select",this.X,this);R.createClientVe(this.element,this,28661);this.N(R,"settingsMenuVisibilityChanged",this.Z);this.listen("click",this.logClick);this.N(R,"onLoopChange",this.onLoopChange);hs(this,R.getLoopVideo());R.Ju().sj(this)}; Tvj=function(R){GW.call(this,R);var l=this;R.addEventListener("settingsMenuInitialized",function(){l.menuItem||(l.menuItem=new hf(l.api),g.U(l,l.menuItem))}); R.addEventListener("videodatachange",function(y,f){y=l.api.getPresentingPlayerType()===2;var A;(A=l.menuItem)==null||A.UF(!f.isLivePlayback&&!y)})}; df7=function(R){GW.call(this,R);var l=this;this.events=new g.QW(R);g.U(this,this.events);EW(this.api,"seekToChapterWithAnimation",function(y){l.seekToChapterWithAnimation(y)}); EW(this.api,"seekToTimeWithAnimation",function(y,f){l.seekToTimeWithAnimation(y,f)}); EW(this.api,"renderChapterSeekingAnimation",function(y,f,A){l.api.renderChapterSeekingAnimation(y,f,A)}); EW(this.api,"setMacroMarkers",function(y){l.setMacroMarkers(R,y)}); EW(this.api,"changeMarkerVisibility",function(y,f,A){l.changeMarkerVisibility(y,f,A)}); EW(this.api,"isSameMarkerTypeVisible",function(y){return l.isSameMarkerTypeVisible(y)})}; rj9=function(R,l,y){var f=R.api.getCurrentTime()*1E30&&A>0&&(y.width+=A,g.Df(l.element,"width",y.width+"px")));R.size=y}}; g.df=function(R,l){var y=R.Z[R.Z.length-1];y!==l&&(R.Z.push(l),AXj(R,y,l))}; g.rf=function(R){if(!(R.Z.length<=1)){var l=R.Z.pop(),y=R.Z[0];R.Z=[y];AXj(R,l,y,!0)}}; AXj=function(R,l,y,f){KTo(R);l&&(l.unsubscribe("size-change",R.UV,R),l.unsubscribe("back",R.qP,R));y.subscribe("size-change",R.UV,R);y.subscribe("back",R.qP,R);if(R.m$){g.AU(y.element,f?"ytp-panel-animate-back":"ytp-panel-animate-forward");y.JU(R.element);y.focus();R.element.scrollLeft=0;R.element.scrollTop=0;var A=R.size;fZT(R);g.Rm(R.element,A);R.D=new g.Vg(function(){G1s(R,l,y,f)},20,R); R.D.start()}else y.JU(R.element),l&&l.detach()}; G1s=function(R,l,y,f){R.D.dispose();R.D=null;g.AU(R.element,"ytp-popup-animating");f?(g.AU(l.element,"ytp-panel-animate-forward"),g.G8(y.element,"ytp-panel-animate-back")):(g.AU(l.element,"ytp-panel-animate-back"),g.G8(y.element,"ytp-panel-animate-forward"));g.Rm(R.element,R.size);R.V=new g.Vg(function(){g.G8(R.element,"ytp-popup-animating");l.detach();g.ac(l.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);R.V.dispose();R.V=null},250,R); R.V.start()}; KTo=function(R){R.D&&g.qT(R.D);R.V&&g.qT(R.V)}; vA=function(R){g.TH.call(this,R,"ytp-shopping-product-menu");this.Bh=new g.b$(this.G);g.U(this,this.Bh);this.hide();g.df(this,this.Bh);g.kT(this.G,this.element,4)}; s9r=function(R,l,y){var f,A=l==null?void 0:(f=l.text)==null?void 0:f.simpleText;A&&(y=aZj(R,y,A,l==null?void 0:l.icon,l==null?void 0:l.secondaryIcon),l.navigationEndpoint&&y.listen("click",function(){R.G.KX("innertubeCommand",l.navigationEndpoint);R.hide()},R))}; BcK=function(R,l,y){var f,A=l==null?void 0:(f=l.text)==null?void 0:f.simpleText;A&&aZj(R,y,A,l==null?void 0:l.icon).listen("click",function(){var K;(l==null?void 0:(K=l.icon)==null?void 0:K.iconType)==="HIDE"?R.G.publish("featuredproductdismissed"):l.serviceEndpoint&&R.G.KX("innertubeCommand",l.serviceEndpoint);R.hide()},R)}; aZj=function(R,l,y,f,A){l=new g.yu(g.fx({},[],!1,!!A),l,y);A&&l.updateValue("secondaryIcon",HQY(A));l.setIcon(HQY(f));g.U(R,l);R.Bh.sj(l,!0);return l}; HQY=function(R){if(!R)return null;switch(R.iconType){case "ACCOUNT_CIRCLE":return{T:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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{T:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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 OFr();case "HIDE":return{T:"svg",K:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"g",S:[{T:"path",K:{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 u1()}}; zH=function(R){$t.call(this,R,!1,!0);this.isCounterfactual=this.X=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.W=!0;this.overflowButton=new g.Z({T:"button",QL:["ytp-featured-product-overflow-icon","ytp-button"],K:{"aria-haspopup":"true"}});this.overflowButton.hide();g.U(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.Z({T:"img",j:"ytp-suggested-action-badge-img",K:{src:"{{url}}"}}); this.thumbnailImage.hide();g.U(this,this.thumbnailImage);this.thumbnailIcon=new g.Z({T:"div",j:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.U(this,this.thumbnailIcon);this.banner=new g.Z({T:"a",j:"ytp-suggested-action-container",S:[this.thumbnailImage,this.thumbnailIcon,{T:"div",j:"ytp-suggested-action-details",S:[{T:"text",j:"ytp-suggested-action-title",IE:"{{title}}"},{T:"text",j:"ytp-suggested-action-subtitle",IE:"{{subtitle}}"},{T:"text",j:"ytp-suggested-action-metadata-text", IE:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.U(this,this.banner);this.banner.JU(this.L.element);this.N(this.G,"videodatachange",this.onVideoDataChange);this.N(this.G,g.Vx("suggested_action_view_model"),this.LjS);this.N(this.G,g.Cd("suggested_action_view_model"),this.Tm7);this.N(this.overflowButton.element,"click",this.DD);this.N(R,"featuredproductdismissed",this.Qe);this.G.createServerVe(this.banner.element,this.banner,!0)}; n0j=function(R){R.isInitialized&&(R.enabled=R.isVisible,R.Yb=R.isVisible,Qj(R),R.B6(),R.thumbnailImage.UF(R.isVisible),R.shouldHideDismissButton||R.dismissButton.UF(R.isVisible),R.shouldShowOverflowButton&&R.overflowButton.UF(R.isVisible))}; wf=function(){zH.apply(this,arguments)}; mnZ=function(R){GW.call(this,R);this.Z=new wf(this.api);g.U(this,this.Z);g.kT(this.api,this.Z.element,4)}; xt=function(R){GW.call(this,R);var l=this;this.Z=!0;var y=new g.QW(R);g.U(this,y);y.N(R,"internalaudioformatchange",function(f,A){o0c(l,f,A)}); y.N(R,"videoplayerreset",function(){hLi(l)}); y.N(R,"videodatachange",function(f,A){l.onVideoDataChange(f,A)})}; o0c=function(R,l,y){if(y){var f="";if(cXr(R,l)){f=l;if(y=R.api.getVideoData(void 0,!0))y.rk=l;R.api.U().ZL=l}if(f&&E0Z(R,f)){onq(R.api,f);var A;rZ(i2(R.api.U(),(A=R.api.getVideoData())==null?void 0:g.MD(A)),function(K){WTZ(R,f,K)})}}}; hLi=function(R){var l;if((l=Hq())==null?0:l.size){var y;rZ(i2(R.api.U(),(y=R.api.getVideoData())==null?void 0:g.MD(y)),function(f){if((f=LTT(f))&&E0Z(R,f)){var A=R.api.getVideoData(void 0,!0);A&&(A.rk=f);R.api.U().ZL=f}})}}; WTZ=function(R,l,y){LTT(y)!==l&&(OQr([{settingItemId:Iv(y),settingOptionValue:{stringValue:l}}]),rZ(R.zg(),function(f){W1c(f,Iv(y),{stringValue:l})}))}; iQ7=function(R,l){v5(rZ(rZ(R.zg(),function(y){return cS7(y,[Iv(l)])}),function(y){if(y){y=g.u(y); for(var f=y.next();!f.done;f=y.next()){var A=f.value;f=A.key;A=A.value;f&&A&&(OQr([{settingItemId:f,settingOptionValue:A}]),hLi(R))}}}),function(){R.Z=!0})}; cXr=function(R,l){R=R.api.getAvailableAudioTracks();R=g.u(R);for(var y=R.next();!y.done;y=R.next())if(y=y.value,y.getLanguageInfo().getId()===l)return y;return null}; LTT=function(R){R=Iv(R);var l=Hq();R=l?l.get(R):void 0;return R&&R.stringValue?R.stringValue:""}; Iv=function(R){var l=(484).toString();R&&(l=(483).toString());return l}; E0Z=function(R,l){var y;return l.split(".")[0]!==""&&((y=R.api.getVideoData())==null?void 0:!lK(y))}; OQr=function(R){var l=Hq();l||(l=new Map);R=g.u(R);for(var y=R.next();!y.done;y=R.next())y=y.value,l.set(y.settingItemId,y.settingOptionValue);l=JSON.stringify(Object.fromEntries(l));g.vW("yt-player-user-settings",l,2592E3)}; g.N4=function(R,l,y,f,A,K,G){g.yu.call(this,g.fx({"aria-haspopup":"true"}),l,R);this.Te=f;this.W=!1;this.L=null;this.options={};this.X=new g.b$(y,void 0,R,A,K,G);g.U(this,this.X);this.listen("keydown",this.JB);this.listen("click",this.open)}; PeQ=function(R){if(R.L){var l=R.options[R.L];l.element.getAttribute("aria-checked");l.element.setAttribute("aria-checked","false");R.L=null}}; ui9=function(R,l){g.N4.call(this,"Temporizador de apagado",g.il.SLEEP_TIMER,R,l);this.G=R;this.B={};this.D=this.CI("Off");this.V=this.Z="";R.C("web_settings_menu_icons")&&(l=R.C("delhi_modern_web_player_icons")?{T:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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"}}]}:{T:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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(l)); this.Y=new g.Z({T:"div",QL:["ytp-menuitem-label-wrapper"],S:[{T:"div",IE:"Fin del video"},{T:"div",QL:["ytp-menuitem-sublabel"],IE:"{{content}}"}]});g.U(this,this.Y);this.listen("click",this.onClick);this.N(R,"videodatachange",this.onVideoDataChange);this.N(R,"presentingplayerstatechange",this.oE);this.N(R,"settingsMenuVisibilityChanged",this.RI);R.createClientVe(this.element,this,218889);this.oE();this.G.KX("onSleepTimerFeatureAvailable")}; FTk=function(R){var l="Off 10 15 20 30 45 60".split(" "),y;((y=R.G.getVideoData())==null?0:y.isLivePlayback)||l.push("End of video");y=R.G.getPlaylist();var f;y&&((f=y.listId)==null?void 0:f.type)!=="RD"&&l.push("End of playlist");R.Gc(g.L$(l,R.CI));R.B=g.YU(l,R.CI,R);l=R.CI("End of video");R.options[l]&&g.ll(R.options[l],R.Y)}; Q9T=function(R,l){var y=R.B[l],f=y==="End of video"||y==="End of playlist";y==="Off"&&(R.Z="");R.G.getPlayerState()!==0&&R.G.getPlayerState()!==5||!f?(R.D=l,g.N4.prototype.ZX.call(R,l),R.BE(l),R.G.KX("onSleepTimerSettingsChanged",y)):R.G.KX("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"El video ya finaliz\u00f3"}}}}})}; py=function(R){GW.call(this,R);var l=this;R.addEventListener("settingsMenuInitialized",function(){l.menuItem||(l.menuItem=new ui9(l.api,l.api.Ju()),g.U(l,l.menuItem))}); R.addEventListener("openSettingsMenuItem",function(y){if(y==="menu_item_sleep_timer"){if(!l.menuItem){var f;(f=l.api.Ju())==null||f.jZ()}l.menuItem.open()}}); EW(R,"resetSleepTimerMenuSettings",function(){l.resetSleepTimerMenuSettings()}); EW(R,"setSleepTimerTimeLeft",function(y){l.setSleepTimerTimeLeft(y)}); EW(R,"setVideoTimeLeft",function(y){l.setVideoTimeLeft(y)})}; $nT=function(R){GW.call(this,R);var l=this;this.events=new g.QW(R);g.U(this,this.events);this.events.N(R,"onSnackbarMessage",function(y){switch(y){case 1:y=l.api.getPlayerStateObject(),y.isBuffering()&&(l.api.C("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.V(y,8)&&g.V(y,16))&&l.api.KX("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.SB=function(R,l,y,f,A){l=l===void 0?!1:l;f=f===void 0?!1:f;A=A===void 0?!1:A;g.Ae.call(this);this.B=A;this.V=!1;this.Y=new eI(this);this.J=this.D=null;this.L=this.X=!1;g.U(this,this.Y);this.target=R;this.Z=l;this.W=y||R;this.V=f;l&&(g.H0&&this.target.setAttribute("draggable","true"),A||(this.target.style.touchAction="none"));UH(this)}; jB=function(R){g.Xr(R.Y,!R.Z)}; UH=function(R){R.J=null;R.D=null;R.N(kt("over"),R.Ga);R.N("touchstart",R.vG);R.Z&&R.N(kt("down"),R.yU4)}; eLZ=function(R,l){for(var y=0;yA.start&&y>=5;Q+=r}c=Q.substr(0,4)+" "+Q.substr(4,4)+" "+Q.substr(8,4)+" "+(Q.substr(12,4)+" "+Q.substr(16,4))}else c="";G={video_id_and_cpn:String(l.videoId)+" / "+c,codecs:"",dims_and_frames:"",bandwidth_kbps:G.toFixed(0)+" Kbps",buffer_health_seconds:H.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:n?"":"display:none",drm:n,debug_info:y,extra_debug_info:"",bandwidth_style:h,network_activity_style:h,network_activity_bytes:B.toFixed(0)+" KB",shader_info:m,shader_info_style:m?"":"display:none",playback_categories:""};B=f.clientWidth+"x"+f.clientHeight+(A>1?"*"+A.toFixed(2):"");H="-";K.totalVideoFrames&&(H=(K.droppedVideoFrames||0)+" dropped of "+K.totalVideoFrames);G.dims_and_frames=B+" / "+H;R=R.getVolume();B=vs9(l);var z;if((z=l.Y)==null?0:z.audio.X)z= "VB";else{var N;z=((N=l.Y)==null?0:N.audio.Z)?"DRC":Math.round(R*B)+"%"}N=Math.round(R)+"% / "+z;z=l.Vu.toFixed(1);isFinite(Number(z))&&(N+=" (content loudness "+z+"dB)");G.volume=N;G.resolution=f.videoWidth+"x"+f.videoHeight;if(f=l.X){if(N=f.video)z=N.fps,z>1&&(G.resolution+="@"+z),(z=K.sy)&&z.video&&(G.resolution+=" / "+z.video.width+"x"+z.video.height,z.video.fps>1&&(G.resolution+="@"+z.video.fps)),G.codecs=v0K(f),!l.Y||f.audio&&f.video?f.pK&&(G.codecs+=" / "+f.pK+"A"):G.codecs+=" / "+v0K(l.Y), N.Z||N.primaries?(z=N.Z||"unknown",z==="smpte2084"?z+=" (PQ)":z==="arib-std-b67"&&(z+=" (HLG)"),G.color=z+" / "+(N.primaries||"unknown"),G.color_style=""):G.color_style="display:none";if(f.debugInfo)for(G.fmt_debug_info="",f=g.u(f.debugInfo),N=f.next();!N.done;N=f.next())N=N.value,G.fmt_debug_info+=N.label+":"+N.text+" ";G.fmt_debug_info_style=G.fmt_debug_info&&G.fmt_debug_info.length>0?"":"display:none"}f=l.isLivePlayback;N=l.Rz;G.live_mode_style=f||N?"":"display:none";G.live_latency_style=f?"": "display:none";if(N)G.live_mode="Post-Live"+(eU(l)?" Manifestless":"");else if(f){N=K.d_;G.live_latency_secs=N.toFixed(2)+"s";f=eU(l)?"Manifestless, ":"";l.LX&&(f+="Windowed, ");z="Uncertain";if(N>=0&&N<120)if(l.latencyClass&&l.latencyClass!=="UNKNOWN")switch(l.latencyClass){case "NORMAL":z="Optimized for Normal Latency";break;case "LOW":z="Optimized for Low Latency";break;case "ULTRALOW":z="Optimized for Ultra Low Latency";break;default:z="Unknown Latency Setting"}else z=l.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";f+=z;(N=K.v5)&&(f+=", seq "+N.sequence);G.live_mode=f}!K.isGapless||WZ(l)&&K.xv||(G.playback_categories+="Gapless ");G.playback_categories_style=G.playback_categories?"":"display:none";G.bandwidth_samples=K.WS;G.network_activity_samples=K.s4;G.live_latency_samples=K.Oc;G.buffer_health_samples=K.Ki;K=g.KM(l);if(l.cotn||K)G.cotn_and_local_media=(l.cotn?l.cotn:"null")+" / "+K;G.cotn_and_local_media_style=G.cotn_and_local_media?"":"display:none"; aE(l,"web_player_release_debug")?(G.release_name=a[67],G.release_style=""):G.release_style="display:none";G.debug_info&&E.length>0&&G.debug_info.length+E.length<=60?G.debug_info+=" "+E:G.extra_debug_info=E;G.extra_debug_info_style=G.extra_debug_info&&G.extra_debug_info.length>0?"":"display:none";return G}; v0K=function(R){var l=/codecs="([^"]*)"/.exec(R.mimeType);return l&&l[1]?l[1]+" ("+R.itag+")":R.itag}; q4=function(R,l,y,f,A){g.Z.call(this,{T:"div",j:"ytp-horizonchart"});this.V=l;this.sampleCount=y;this.Y=f;this.D=A;this.index=0;this.heightPx=-1;this.L=this.X=null;this.Z=Math.round(R/y);this.element.style.width=this.Z*this.sampleCount+"px";this.element.style.height=this.V+"em"}; tf=function(R,l){if(R.heightPx===-1){var y=null;try{y=g.ho("CANVAS"),R.X=y.getContext("2d")}catch(B){}if(R.X){var f=R.Z*R.sampleCount;R.L=y;R.L.width=f;R.L.style.width=f+"px";R.element.appendChild(R.L)}else for(R.sampleCount=Math.floor(R.sampleCount/4),R.Z*=4,y=0;y1?2:1,R.L.height=R.heightPx*y,R.L.style.height= R.heightPx+"px",R.X.scale(1,y)));l=g.u(l);for(f=l.next();!f.done;f=l.next()){y=R;var A=R.index,K=f.value;for(f=0;f+20&&g.W0(l.L.element);f.classList.add("ytp-timely-actions-overlay");l.L.element.appendChild(f)}); g.U(this,this.L);g.kT(this.api,this.L.element,4)}; CeJ=function(R){R.timelyActions&&(R.Y=R.timelyActions.reduce(function(l,y){if(y.cueRangeId===void 0)return l;l[y.cueRangeId]=0;return l},{}))}; y2=function(R,l){if(R.timelyActions){R=g.u(R.timelyActions);for(var y=R.next();!y.done;y=R.next())if(y=y.value,y.cueRangeId===l)return y}}; q8r=function(R,l){if((R=y2(R,l))&&R.onCueRangeExit)return wP(R.onCueRangeExit)}; lR=function(R){if(R.Z!==void 0){var l=(l=y2(R,R.Z))&&l.onCueRangeEnter?wP(l.onCueRangeEnter):void 0;var y=y2(R,R.Z);a:if(y&&y.additionalTrigger){var f=g.u(y.additionalTrigger);for(var A=f.next();!A.done;A=f.next())if(A=A.value,A.type){var K=void 0,G=void 0;if((K=R.xb[A.type])==null?0:K((G=A.args)!=null?G:{})){f=!0;break a}}f=!1}else f=!0;l&&f&&(R.api.KX("innertubeCommand",l),R.setTimeout(y),R.Y[R.Z]!==void 0&&R.Y[R.Z]++,R.B=!0)}}; ZQk=function(R,l){return R.X===void 0?!1:l.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(l.seekLengthMilliseconds)===5E3?R.X===72:l.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(l.seekLengthMilliseconds)===1E4?R.X===74:l.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(l.seekLengthMilliseconds)===5E3?R.X===71:l.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(l.seekLengthMilliseconds)===1E4?R.X===73:!1}; JXs=function(R){if(R=R.getWatchNextResponse()){var l,y;R=(l=R.playerOverlays)==null?void 0:(y=l.playerOverlayRenderer)==null?void 0:y.timelyActionsOverlayViewModel;l=g.k(R,tOi);if(l!=null&&l.timelyActions)return l==null?void 0:l.timelyActions.map(function(f){return g.k(f,Y87)}).filter(function(f){return!!f})}}; MOo=function(R){GW.call(this,R);var l=this;Wd(this.api,"getPlaybackRate",function(){return l.api.getPlaybackRate()}); Wd(this.api,"setPlaybackRate",function(y){typeof y==="number"&&l.api.setPlaybackRate(y)})}; fq=function(R,l,y,f){ox.call(this,"VOICE_BOOST",g.il.fZ);this.Z=!1;this.G=R;this.Te=R.Ju();this.Y=l;this.L=y;this.hasVoiceBoostAudioTrack=f;this.N(R,"videodatachange",this.X);this.setIcon(bF9());this.subscribe("select",this.D,this);this.X()}; AC=function(R){GW.call(this,R);var l=this;this.events=new g.QW(R);g.U(this,this.events);this.events.N(R,"settingsMenuInitialized",function(){RPc(l)}); EW(this.api,"getVoiceBoostUserPreference",function(){return l.getVoiceBoostUserPreference()}); EW(this.api,"setVoiceBoostUserPreference",function(f){l.setVoiceBoostUserPreference(f)}); EW(this.api,"hasVoiceBoostAudioTrack",function(){return l.hasVoiceBoostAudioTrack()}); var y;this.Z=(y=l_i())!=null?y:0;this.updateEnvironmentData()}; RPc=function(R){R.menuItem||(R.menuItem=new fq(R.api,function(l){R.setVoiceBoostUserPreference(l)},function(){return R.getVoiceBoostUserPreference()},function(){return R.hasVoiceBoostAudioTrack()}),g.U(R,R.menuItem))}; l8k=function(R){R=R.Jk();if(!R)return!1;R=g.f0(R).exp||"";return R.includes("xpv")||R.includes("xpe")}; yws=function(R){R=g.u(g.Kq(R,!0));for(var l=R.next();!l.done;l=R.next())if(l8k(l.value))return!0;return!1}; f8r=function(R,l){R=g.u(g.Kq(R,!0));for(var y=R.next();!y.done;y=R.next())if(y=y.value,l8k(y)){var f={potc:"1",pot:l};y.url&&(y.url=A$(y.url,f))}}; AwJ=function(R){return g.w(function(l){if(l.X==1)return g.$7(l,2),g.v(l,R,4);if(l.X!=2)return g.XZ(l,0);g.TT(l);g.Q9(l)})}; aK=function(R){GW.call(this,R);var l=this;this.useLivingRoomPoToken=!1;this.J=new g.o2;this.Z=!1;this.yS=null;this.W=!1;this.Y=null;this.D=!1;var y=R.U().getWebPlayerContextConfig();this.events=new g.QW(R);g.U(this,this.events);this.events.N(R,"spsumpreject",function(f,A,K){l.D=A;f&&l.W&&!l.Y&&(l.C("html5_generate_content_po_token")&&K?l.hV(K):l.C("html5_generate_session_po_token")&&KSK(l));l.Y||l.api.T4("stp",{s:+l.W,b:+l.D})}); this.events.N(R,"poTokenVideoBindingChange",function(f){l.hV(f)}); this.useLivingRoomPoToken=!(y==null||!y.useLivingRoomPoToken);R.addEventListener("csiinitialized",function(){l.yS=R.X3();var f=(l.C("html5_generate_session_po_token")||l.C("html5_generate_content_po_token"))&&!l.useLivingRoomPoToken;try{if(l.C("html5_use_shared_owl_instance"))GjK(l);else if(f){l.yS.rh("pot_isc");var A=g.yx(l.api.U().experiments,"html5_webpo_kaios_defer_timeout_ms");A?(l.L=UP(),g.h$(function(){GQ(l)},A)):l.C("html5_webpo_idle_priority_job")?(l.L=UP(),g.tD(g.Mt(),function(){GQ(l)})): GQ(l)}}catch(K){K instanceof Error&&g.dP(K)}}); R.addEventListener("trackListLoaded",this.W0.bind(this));R.t_(this)}; a87=function(R){var l=EN(R.experiments,"html5_web_po_request_key");return l?l:g.Eb(R)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; s$7=function(R){var l=new Agr,y={},f=(y["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",y);return new OP(l,R,function(){return f})}; BBk=function(R){return new iG(R)}; sF=function(R,l){R.C("html5_webpo_bge_ctmp")&&R.api.T4(l,{hwpo:!!R.X,hwpor:R.Z})}; GjK=function(R){var l,y;g.w(function(f){if(f.X==1)return sF(R,"swpo_i"),R.L=UP(),B2(R),g.v(f,lO(),2);if(f.X!=3)return l=f.Z,sF(R,"swpo_co"),g.v(f,zcQ(l),3);y=f.Z;R.C("html5_web_po_token_disable_caching")||y.Kc(150);R.X=y;sF(R,"swpo_cc");AwJ(y.eF()).then(function(){R.Z=!0;R.J.resolve();sF(R,"swpo_re")}); g.h$(function(){GQ(R);sF(R,"swpo_si")},0); g.Q9(f)})}; mP7=function(R){var l=R.api.U(),y=s$7(a87(l)),f=y.Rv.bind(y);y.Rv=function(B){var H;return g.w(function(n){if(n.X==1)return g.v(n,f(B),2);H=n.Z;R.api.T4("itr",{});return n.return(H)})}; try{var A=BBk({bT:y,sX:{maxAttempts:5},FL:{MP:"CLEn",disable:l.experiments.EL("html5_web_po_disable_remote_logging")||HPT.includes(g.n4(l.v0)||""),Fl:VDQ(l.experiments),qV:l.experiments.EL("wpo_gel_strz")?function(B){var H=nuK.get(B);H||(H=new h49(B),H=new g.UT(H),nuK.set(B,H));return H}:void 0, aqb:R.C("wpo_dis_lfdms")?0:1E3},YFS:g.dP});var K=new Nl({hk:A,bT:y,onError:g.dP});AwJ(K.eF()).then(function(){R.Z=!0;R.J.resolve()}); R.C("html5_web_po_token_disable_caching")||K.Kc(150);g.U(R,A);g.U(R,K);R.X=K}catch(B){g.dP(B);var G;(G=A)==null||G.dispose()}}; GQ=function(R){var l=R.api.U();R.yS.rh("pot_ist");R.X||mP7(R);R.C("html5_bandaid_attach_content_po_token")||(R.C("html5_generate_session_po_token")&&(B2(R),KSK(R)),l=g.yx(l.experiments,"html5_session_po_token_interval_time_ms")||0,l>0&&(R.V=g.ch(function(){B2(R)},l)),R.W=!0)}; B2=function(R){var l,y,f,A;g.w(function(K){if(!R.C("html5_generate_session_po_token")||R.useLivingRoomPoToken)return K.return();l=R.api.U();y=g.JZ("EOM_VISITOR_DATA")||g.JZ("VISITOR_DATA");f=l.H$?l.datasyncId:y;A=EN(l.experiments,"html5_mock_content_binding_for_session_token")||l.livingRoomPoTokenId||f;l.HA=H2(R,A);g.Q9(K)})}; H2=function(R,l){if(!R.X){if(R.L)try{return R.L(l)}catch(K){g.dP(K)}return""}try{R.yS.rh(R.Z?"pot_cms":"pot_csms");var y={xj:!0,yh:!0,CG:l};R.C("html5_web_po_token_disable_caching")||(y.TY={GN:l,Fe:!0,EZ:!0});var f=R.X.F8(y);R.yS.rh(R.Z?"pot_cmf":"pot_csmf");if(R.Z){var A;(A=R.Y)==null||A.resolve();R.Y=null;R.D&&(R.D=!1,R.api.app.hU().Xf(!1))}return f}catch(K){return g.dP(K),""}}; KSK=function(R){R.X&&(R.Y=new Ee,R.J.promise.then(function(){R.yS.rh("pot_if");B2(R)}))}; g.nq=function(R,l,y){g.BJ(R.element,"ytp-suggestion-set",!!l.videoId);var f=l.playlistId;y=l.I9(y?y:"mqdefault.jpg");var A=null,K=null;l instanceof US&&(l.lengthText?(A=l.lengthText||null,K=l.BU||null):l.lengthSeconds&&(A=g.ut(l.lengthSeconds),K=g.ut(l.lengthSeconds,!0)));var G=!!f;f=G&&NN(f).type==="RD";var B=l instanceof US?l.isLivePlayback:null,H=l instanceof US?l.isUpcoming:null,n=l.author,m=l.shortViewCount,h=l.publishedTimeText,c=[],E=[];n&&c.push(n);m&&(c.push(m),E.push(m));h&&E.push(h);y= {title:l.title,author:n,author_and_views:c.join(" \u2022 "),aria_label:l.ariaLabel||g.KV("Ver $TITLE",{TITLE:l.title}),duration:A,timestamp:K,url:l.v6(),is_live:B,is_upcoming:H,is_list:G,is_mix:f,background:y?"background-image: url("+y+")":"",views_and_publish_time:E.join(" \u2022 "),autoplayAlternativeHeader:l.LQ};l instanceof pU&&(y.playlist_length=l.playlistLength);R.update(y)}; g.mI=function(R){var l=R.U(),y=g.iz||g.Sr?{style:"will-change: opacity"}:void 0,f=l.Y,A=["ytp-modern-videowall-still"];l.X&&A.push("ytp-videowall-show-text");g.Z.call(this,{T:"a",QL:A,K:{href:"{{url}}",target:f?l.B:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},S:[{T:"div",j:"ytp-modern-videowall-still-image",K:{style:"{{background}}"},S:[{T:"span",j:"ytp-modern-videowall-still-info-duration",IE:"{{duration}}"}]},{T:"span",j:"ytp-modern-videowall-still-info", K:{"aria-hidden":"true"},S:[{T:"span",j:"ytp-modern-videowall-still-info-bg",S:[{T:"span",j:"ytp-modern-videowall-still-info-content",K:y,S:[{T:"span",j:"ytp-modern-videowall-still-info-title",IE:"{{title}}"},{T:"span",j:"ytp-modern-videowall-still-info-author",IE:"{{author_and_views}}"},{T:"span",j:"ytp-modern-videowall-still-info-live",IE:"En vivo"}]}]}]},{T:"span",QL:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],K:{"aria-hidden":"true"},S:[{T:"span",j:"ytp-modern-videowall-still-listlabel-icon"}, "Playlist",{T:"span",j:"ytp-modern-videowall-still-listlabel-length",S:[" (",{T:"span",IE:"{{playlist_length}}"},")"]}]},{T:"span",QL:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],K:{"aria-hidden":"true"},S:[{T:"span",j:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{T:"span",j:"ytp-modern-videowall-still-listlabel-length",IE:" (50+)"}]}]});this.suggestion=null;this.X=f;this.api=R;this.Z=new g.QW(this);g.U(this,this.Z);this.listen("click",this.onClick); this.listen("keypress",this.onKeyPress);this.Z.N(R,"videodatachange",this.onVideoDataChange);R.createServerVe(this.element,this);this.onVideoDataChange()}; g.ou7=function(R,l){if(R.suggestion!==l){R.suggestion=l;var y=R.api.U();g.nq(R,l,"hqdefault.jpg");if(g.kh(y)&&!R.api.C("web_player_log_click_before_generating_ve_conversion_params")){y=l.v6();var f={};g.OW(R.api,"addEmbedsConversionTrackingParams",[f]);y=g.L4(y,f);R.updateValue("url",y)}(l=(l=l.sessionData)&&l.itct)&&R.api.setTrackingParams(R.element,l)}}; hP9=function(R){g.Z.call(this,{T:"div",QL:["ytp-fullscreen-grid","ytp-fullscreen-grid-content"]});this.player=R;this.stills=[];this.videoData=null;this.currentState=0;this.Z=new g.QW(this);g.U(this,this.Z);if(R=this.player.getVideoData(1))this.videoData=R;this.Z.N(this.player,"videodatachange",this.onVideoDataChange)}; cwi=function(R){var l,y,f,A,K;return(((l=R.videoData)==null?0:(y=l.suggestions)==null?0:y.length)?(f=R.videoData)==null?void 0:f.suggestions:((A=R.videoData)==null?0:g.oY(A))?[(K=R.videoData)==null?void 0:g.oY(K)]:[]).slice(0,12)}; Euk=function(R){if(R.m$){var l=cwi(R);if(l.length){var y=R.element;g.W0(y);g.A4(R.stills.slice(l.length));R.stills.length=l.length;for(var f=0;f0?y.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= l.freePreviewUsageDetails:y.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+l.freePreviewWatchedDuration}}); EW(R,"setFreePreviewWatchedDuration",function(y){l.freePreviewWatchedDuration=y}); EW(R,"setFreePreviewUsageDetails",function(y){l.freePreviewUsageDetails=y})}; W2=function(R){g.p.call(this);this.features=[];var l=this.Z,y=new wV(R),f=new ax(R),A=new Ly(R),K=new aK(R);var G=g.hq(R.U())?void 0:new bl(R);var B=new WA(R),H=new IZT(R),n=new MOo(R),m=new zW(R);var h=g.hq(R.U())?new iPs(R):void 0;var c=R.C("html5_enable_ssap")?new rXr(R):void 0;var E;var W=(E=R.U().getWebPlayerContextConfig())!=null&&E.cinematicSettingsAvailable?new FU(R):void 0;E=new vV(R);var Q=R.C("enable_courses_player_overlay_purchase")?new ZNJ(R):void 0;var e=g.Hm(R.U())?new S$Z(R):void 0; var r=new XU(R);var d=R.U().Y?new w5s(R):void 0;var z=g.kh(R.U())?new zkJ(R):void 0;var N=R.C("web_player_move_autonav_toggle")&&R.U().US?new $6Z(R):void 0;var D=g.Hm(R.U())?new df7(R):void 0;var t=R.C("web_enable_speedmaster")&&g.Hm(R.U())?new Jf(R):void 0;var C=R.U().kz?void 0:new DnQ(R);var Ac=R.C("report_pml_debug_signal")?new PLq(R):void 0;var Bi=new Dfs(R),ar=new u$(R);var nk=g.xi(R.U())?new RLk(R):void 0;var Y=navigator.mediaSession&&window.MediaMetadata&&R.U().WR?new cA(R):void 0;var Pi=R.C("html5_enable_drc")&& !R.U().D?new eZ(R):void 0;var wq=new BV(R);var Rt=g.Hm(R.U())?new mnZ(R):void 0;var pX=R.C("html5_enable_d6de4")?new OH(R):void 0;var O5=g.Hm(R.U())&&R.C("web_sleep_timer")?new py(R):void 0;var pk=g.kh(R.U())?new IDZ(R):void 0;var tK=new xt(R),c8=new d6q(R),DU=new XPc(R);var lN=R.C("enable_sabr_snackbar_message")?new $nT(R):void 0;var T=R.C("web_enable_timely_actions")?new VOq(R):void 0;var IL=new Qu(R);var rO=g.Hm(R.U())?new c2(R):void 0;var fk=R.C("html5_enable_voice_boost")?new AC(R):void 0;R= R.C("web_player_loop_settings_menu")?new Tvj(R):void 0;l.call(this,y,f,A,K,G,B,H,n,m,h,c,W,E,Q,e,r,d,z,N,D,t,C,Ac,Bi,ar,nk,void 0,Y,Pi,wq,void 0,Rt,pX,O5,pk,void 0,tK,c8,DU,void 0,lN,T,IL,rO,fk,void 0,R,void 0)}; P_c=function(){this.X=this.Z=NaN}; uF7=function(R,l){this.Zq=R;this.timerName="";this.L=!1;this.X=NaN;this.Y=new P_c;this.Z=l||null;this.L=!1}; FS7=function(R,l,y){var f=g.CI(l.yL)&&!l.yL.D;if(l.yL.m8&&(Zq(l.yL)||l.yL.sL==="shortspage"||ES(l.yL)||f)&&!R.L){R.L=!0;R.D=l.clientPlaybackNonce;g.JZ("TIMING_ACTION")||Ze("TIMING_ACTION",R.Zq.csiPageType);R.Zq.csiServiceName&&Ze("CSI_SERVICE_NAME",R.Zq.csiServiceName);if(R.Z){f=R.Z.X3();for(var A=g.u(Object.keys(f)),K=A.next();!K.done;K=A.next())K=K.value,ba(K,f[K],R.timerName);f=g.qM(gRT)(R.Z.Tl);g.Xe(f,R.timerName);f=R.Z;f.Z={};f.Tl={}}g.Xe({playerInfo:{visibilityState:g.qM(Jvi)()},playerType:"LATENCY_PLAYER_HTML5"}, R.timerName);R.J!==l.clientPlaybackNonce||Number.isNaN(R.X)||(dh("_start",R.timerName)?y=g.qM(ua)("_start",R.timerName)+R.X:g.dP(new g.JD("attempted to log gapless pbs before CSI timeline started",{cpn:l.clientPlaybackNonce})));y&&!dh("pbs",R.timerName)&&Lq(R,y)}}; Lq=function(R,l,y){ba("pbs",l!=null?l:(0,g.eY)(),y!=null?y:R.timerName)}; OF=function(R){fAk();yLK();R.timerName=""}; Q$7=function(R){if(R.Z){var l=R.Z;l.Z={};l.Tl={}}R.L=!1;R.J=void 0;R.X=NaN}; $Pq=function(R,l){g.Ae.call(this);this.yL=R;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.Z=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.W={};this.X=0;if(R=l.session_data)this.sessionData=YO(R,"&");this.index=Math.max(0,Number(l.index)||0);this.loop=!!l.loop;this.startSeconds=Number(l.startSeconds)||0;this.title=l.playlist_title||"";this.description=l.playlist_description||"";this.author= l.author||l.playlist_author||"";l.video_id&&(this.items[this.index]=l);if(R=l.api)typeof R==="string"&&R.length===16?l.list="PL"+R:l.playlist=R;if(R=l.list)switch(l.listType){case "user_uploads":this.listId=new IG("UU","PLAYER_"+R);break;default:var y=l.playlist_length;y&&(this.length=Number(y)||0);this.listId=NN(R);if(R=l.video)this.items=R.slice(0),this.loaded=!0}else if(l.playlist){R=l.playlist.toString().split(",");this.index>0&&(this.items=[]);R=g.u(R);for(y=R.next();!y.done;y=R.next())(y=y.value)&& this.items.push({video_id:y});this.length=this.items.length;if(R=l.video)this.items=R.slice(0),this.loaded=!0}this.setShuffle(!!l.shuffle);if(R=l.suggestedQuality)this.quality=R;this.W=vm(l,"playlist_");this.L=(l=l.thumbnail_ids)?l.split(","):[]}; ePo=function(R){return!!(R.playlist||R.list||R.api)}; bPs=function(R){var l=R.index+1;return l>=R.length?0:l}; Xas=function(R){var l=R.index-1;return l<0?R.length-1:l}; g.iR=function(R,l,y,f){l=l!==void 0?l:R.index;l=R.items&&l in R.items?R.items[R.order[l]]:null;var A=null;l&&(y&&(l.autoplay="1"),f&&(l.autonav="1"),A=new g.KC(R.yL,l),g.U(R,A),A.iP=!0,A.startSeconds=R.startSeconds||A.clipStart||0,R.listId&&(A.playlistId=R.listId.toString()));return A}; TBj=function(R,l){R.index=g.Sq(l,0,R.length-1);R.startSeconds=0}; dPj=function(R,l){if(l.video&&l.video.length){R.title=l.title||"";R.description=l.description;R.views=l.views;R.likes=l.likes;R.dislikes=l.dislikes;R.author=l.author||"";var y=l.loop;y&&(R.loop=y);y=g.iR(R);R.items=[];for(var f=g.u(l.video),A=f.next();!A.done;A=f.next())if(A=A.value)A.video_id=A.encrypted_id,R.items.push(A);R.length=R.items.length;(l=l.index)?R.index=l:R.findIndex(y);R.setShuffle(!1);R.loaded=!0;R.X++;R.Z&&R.Z()}}; zPJ=function(R,l){var y,f,A,K,G,B,H;return g.w(function(n){if(n.X==1){y=g.gh();var m=R.U(),h={context:g.hz(R),playbackContext:{contentPlaybackContext:{ancestorOrigins:m.ancestorOrigins}}},c=m.getWebPlayerContextConfig();if(c==null?0:c.encryptedHostFlags)h.playbackContext.contentPlaybackContext.encryptedHostFlags=c.encryptedHostFlags;if(c==null?0:c.hideInfo)h.playerParams={showinfo:!1};m=m.embedConfig;c=l.docid||l.video_id||l.videoId||l.id;if(!c){c=l.raw_embedded_player_response;if(!c){var E=l.embedded_player_response; E&&(c=JSON.parse(E))}if(c){var W,Q,e,r,d,z;c=((z=g.k((W=c)==null?void 0:(Q=W.embedPreview)==null?void 0:(e=Q.thumbnailPreviewRenderer)==null?void 0:(r=e.playButton)==null?void 0:(d=r.buttonRenderer)==null?void 0:d.navigationEndpoint,g.mh))==null?void 0:z.videoId)||null}else c=null}W=(W=c)?W:void 0;Q=R.playlistId?R.playlistId:l.list;e=l.listType;if(Q){var N;e==="user_uploads"?N={username:Q}:N={playlistId:Q};rwr(m,W,l,N);h.playlistRequest=N}else l.playlist?(N={templistVideoIds:l.playlist.toString().split(",")}, rwr(m,W,l,N),h.playlistRequest=N):W&&(N={videoId:W},m&&(N.serializedThirdPartyEmbedConfig=m),h.singleVideoRequest=N);f=h;A=g.ML(vuQ);g.$7(n,2);return g.v(n,g.xr(y,f,A),4)}if(n.X!=2)return K=n.Z,G=R.U(),l.raw_embedded_player_response=K,G.Dq=sG(l,g.kh(G)),G.L=G.Dq==="EMBEDDED_PLAYER_MODE_PFL",K&&(B=K,B.trackingParams&&q6(B.trackingParams)),n.return(new g.KC(G,l));H=g.TT(n);H instanceof Error||(H=Error("b259802748"));g.Tw(H);return n.return(R)})}; rwr=function(R,l,y,f){y.index&&(f.playlistIndex=String(Number(y.index)+1));f.videoId=l?l:"";R&&(f.serializedThirdPartyEmbedConfig=R)}; g.uR=function(R,l){P2.get(R);P2.set(R,l)}; g.Fc=function(R){g.Ae.call(this);this.loaded=!1;this.player=R}; was=function(){this.X=[];this.Z=[]}; g.Kq=function(R,l){return l?R.Z.concat(R.X):R.Z}; g.Q2=function(R,l){switch(l.kind){case "asr":xP7(l,R.X);break;default:xP7(l,R.Z)}}; xP7=function(R,l){g.iA(l,function(y){return R.equals(y)})||l.push(R)}; g.$w=function(R){g.p.call(this);this.VL=R;this.X=new was;this.Y=null;this.J=[];this.W=[]}; g.eT=function(R,l,y){g.$w.call(this,R);this.videoData=l;this.audioTrack=y;this.Z=null;this.L=!1;this.J=l.pY;this.W=l.LD;this.L=g.qD(l)}; g.I89=function(R,l){var y;return R.U().C("safari_live_drm_captions_fix")&&((y=R.getVideoData())==null?0:y.yT())?!1:g.hq(R.U())&&!l.isManifestless}; g.bR=function(R,l){return Zw(R.info.mimeType)?l?R.info.itag===l:!0:!1}; g.NBZ=function(R,l){if(R.Z!=null&&g.I89(l,R.Z)&&R.Z.Z.rawcc!=null)return!0;if(!R.QS())return!1;l=!!R.Z&&R.Z.isManifestless&&Object.values(R.Z.Z).some(function(y){return g.bR(y,"386")}); R=!!R.Z&&!R.Z.isManifestless&&g.oNo(R.Z);return l||R}; g.Xc=function(R,l,y,f,A,K){g.$w.call(this,R);this.videoId=y;this.XS=A;this.eventId=K;this.D={};this.Z=null;R=f||g.f0(l).hl||"";R=R.split("_").join("-");this.L=A$(l,{hl:R})}; paQ=function(R,l){g.p.call(this);var y=this;this.G=R;this.Y=l;this.Tl={};this.Z={};this.X=null;this.L=new Set;this.J=new g.QW(this);this.yu={aS9:function(){return y.Y}}; this.D=this.G.C("web_player_defer_modules");this.S_=new Map;g.U(this,this.J);this.J.N(R,"videodatachange",this.onVideoDataChange)}; g.TQ=function(R){return R.S_.get("captions")}; Jwo=function(R,l){switch(l){case "ad":return UPi(R);case "annotations_module":return R.G.isEmbedsShortsMode()?R=!1:(l=R.G,R=l.U(),l=l.getVideoData(),R=R.L||l.gM||R.controlsType==="3"?!1:R.CX.isEmpty()&&R.playerStyle!=="annotation-editor"&&R.playerStyle!=="live-dashboard"?!!l.v1||!!g.gI(l)||!!g.VE(l):!0),R;case "asmjs":return S9T(R);case "creatorendscreen":return j$j(R);case "embed":return g.kh(R.G.U());case "endscreen":return g.kjQ(R);case "heartbeat":return R.lm();case "kids":return yV(R.G.U()); case "remote":return R.G.U().Kf;case "miniplayer":return R.G.U().showMiniplayerUiWhenMinimized;case "offline":return R.G.U().aJ;case "captions":return DPK(R);case "unplugged":return g.qE(R.G.U());case "ux":return R.G.U().W1;case "webgl":return ZP9(R);case "ypc":return R.M1();case "ypc_clickwrap":return R=R.G.getVideoData(),R.BA&&!R.M8;case "yto":return!!R.G.getVideoData().Yb.includes("yto");default:return g.Tw(Error("Module descriptor "+l+" does not match")),!1}}; d7=function(R,l,y,f,A){var K;y=y===void 0?!1:y;f=f===void 0?!1:f;var G=R.S_.get(l);if(!G||f)if(A||(A=function(){d7(R,l,y,f)}),K||(K=function(){R.G.SI(l)}),G=G||gur(R,l,Jwo(R,l),A,K))R.S_.set(l,G),G.create(),R.G.publish("modulecreated",l),y&&R.G.DG("onApiChange")}; C_K=function(R){var l=l===void 0?!1:l;var y,f,A,K,G;return g.w(function(B){if(B.X==1)return(y=R.S_.get("asmjs"))&&!l?B.return(y):(f=P2.get("asmjs"))!=null?(A=f,B.bQ(2)):g.v(B,new Promise(function(H,n){Vpr(R,"asmjs",function(){var m=P2.get("asmjs");m?H(m):n("cannot load module asmjs")},n)}),3); B.X!=2&&(A=B.Z);K=A;if(!K)return B.return(Promise.reject("cannot load module asmjs"));G=new K(R.G);R.S_.set("asmjs",G);G.create();return B.return(G)})}; Y9s=function(R){q9K(R)&&R.tN();tpT(R)&&(d7(R,"captions",!0),d7(R,"endscreen"),R.YZ(),d7(R,"creatorendscreen",!0))}; tpT=function(R){var l=R.G.getVideoData(),y=R.D&&!l.isInlinePlaybackNoAd;R.G.C("html5_defer_modules_on_ads_only")&&!l.isAd()&&(y=!1);return y}; q9K=function(R){R=R.G.getVideoData();var l;if(l=R.C("web_player_defer_ad")){if(g.uA(R.Yb,"ad")||LY7(R)||R.enableServerStitchedDai)R=!1;else{l=R.playerResponse;R=R.startSeconds;var y=l==null?void 0:l.adPlacements;if(l=y){l=Number.MAX_VALUE;y=g.u(y);for(var f=y.next();!f.done;f=y.next())if(f=f.value.adPlacementRenderer){var A=void 0,K=(A=f.config)==null?void 0:A.adPlacementConfig;A=void 0;if(((A=K)==null?void 0:A.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var G=A=void 0;K=Number((A=K)==null?void 0:(G= A.adTimeOffset)==null?void 0:G.offsetStartMilliseconds)||0;G=A=void 0;f=Number(((A=f.renderer)==null?void 0:(G=A.adBreakServiceRenderer)==null?void 0:G.prefetchMilliseconds)||0);f=K-f;f=11;R=R.api.U().V&&pq;return!(!l&&!R)}; tC=function(R,l){return!R.api.isInline()&&!Ohq(R,Q8(l))&&g.Fs(l)}; LZT=function(R){R.sY.UT();if(R.Q7&&R.O$)R.O$=!1;else if(!R.api.U().jS&&!R.nN()){var l=R.api.getPlayerStateObject();g.V(l,2)&&g.xT(R.api)||R.rW(l);!R.api.U().LA||l.isCued()||g.V(l,1024)?R.WC():R.DZ.isActive()?(R.zy(),R.DZ.stop()):R.DZ.start()}}; PmJ=function(R,l){var y;if((y=R.api.getVideoData())==null?0:y.mutedAutoplay){var f,A;if((f=l.target)==null?0:(A=f.className)==null?0:A.includes("ytp-info-panel"))return!1}return g.Fs(l)&&R.api.isMutedByMutedAutoplay()?(R.api.unMute(),R.api.getPresentingPlayerType()===2&&R.api.playVideo(),l=R.api.getPlayerStateObject(),!g.V(l,4)||g.V(l,8)||g.V(l,2)||R.WC(),!0):!1}; uWq=function(R,l,y){R.api.isFullscreen()?y<1-l&&R.api.toggleFullscreen():y>1+l&&R.api.toggleFullscreen()}; WZQ=function(R){var l=ka()&&U1()>=67&&!R.api.U().V;R=R.api.U().disableOrganicUi;return!g.j0("tizen")&&!UN&&!l&&!R}; g.Yw=function(R){g.Z.call(this,{T:"div",S:[{T:"div",j:"ytp-bezel-text-wrapper",S:[{T:"div",j:"ytp-bezel-text",IE:"{{title}}"}]},{T:"div",j:"ytp-bezel",K:{role:"status","aria-label":"{{label}}"},S:[{T:"div",j:"ytp-bezel-icon",IE:"{{icon}}"}]}]});this.G=R;this.X=new g.Vg(this.show,10,this);R=this.G.C("delhi_modern_web_player")?1E3:500;this.Z=new g.Vg(this.hide,R,this);g.U(this,this.X);g.U(this,this.Z);this.hide()}; Rp=function(R,l,y){if(l<=0){y=Xa();l="silenciado";var f=0}else y=y?{T:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{T:"path",wm:!0,K:{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"}}]}:{T:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{T:"path",wm:!0,K:{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"}}]},f=Math.floor(l),l=f+"volumen";Mb(R,y,l,f+"%")}; FZK=function(R,l){l=l?{T:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{T:"path",wm:!0,j:"ytp-svg-fill",K:{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"}}]}:LKJ();var y=R.G.getPlaybackRate(),f=g.KV("La velocidad es de $RATE",{RATE:String(y)});Mb(R,l,f,y+"x")}; Q4q=function(R,l){l=l?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";Mb(R,bNJ(R.G),l)}; Mb=function(R,l,y,f){f=f===void 0?"":f;R.updateValue("label",y===void 0?"":y);R.updateValue("icon",l);g.tI(R.Z);R.X.start();R.updateValue("title",f);g.BJ(R.element,"ytp-bezel-text-hide",!f)}; $Cc=function(R,l){g.Z.call(this,{T:"button",QL:["ytp-button","ytp-cards-button"],K:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.kh(R.U()))},S:[{T:"span",j:"ytp-cards-button-icon-default",S:[{T:"div",j:"ytp-cards-button-icon",S:[R.U().C("player_new_info_card_format")?PJQ():{T:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{T:"path",wm:!0,j:"ytp-svg-fill",K:{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"}}]}]}, {T:"div",j:"ytp-cards-button-title",IE:"Informaci\u00f3n"}]},{T:"span",j:"ytp-cards-button-icon-shopping",S:[{T:"div",j:"ytp-cards-button-icon",S:[{T:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{T:"path",j:"ytp-svg-shadow",K:{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"}},{T:"path",j:"ytp-svg-fill",K:{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"}},{T:"path",j:"ytp-svg-shadow-fill",K:{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"}}]}]},{T:"div", j:"ytp-cards-button-title",IE:"Shopping"}]}]});this.G=R;this.X=l;this.Z=null;this.fade=new g.MF(this,250,!0,100);g.U(this,this.fade);g.BJ(this.X,"ytp-show-cards-title",g.kh(R.U()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.S2(!0)}; eKQ=function(R,l){g.Z.call(this,{T:"div",j:"ytp-cards-teaser",S:[{T:"div",j:"ytp-cards-teaser-box"},{T:"div",j:"ytp-cards-teaser-text",S:R.U().C("player_new_info_card_format")?[{T:"button",j:"ytp-cards-teaser-info-icon",K:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},S:[PJQ()]},{T:"img",j:"ytp-cards-teaser-channel-avatar",K:{alt:"","aria-hidden":"true"}},{T:"span",j:"ytp-cards-teaser-label",IE:"{{text}}"},{T:"button",j:"ytp-cards-teaser-close-button",K:{"aria-label":"Cerrar"},S:[g.WB()]}]: [{T:"span",j:"ytp-cards-teaser-label",IE:"{{text}}"}]}]});var y=this;this.G=R;this.Ls=l;this.fade=new g.MF(this,250,!1,250);this.Z=null;this.V=new g.Vg(this.v$x,300,this);this.D=new g.Vg(this.PbS,2E3,this);this.Y=[];this.X=null;this.W=new g.Vg(function(){y.element.style.margin="0"},250); this.onClickCommand=this.L=null;g.U(this,this.fade);g.U(this,this.V);g.U(this,this.D);g.U(this,this.W);R.U().C("player_new_info_card_format")?(g.AU(R.getRootNode(),"ytp-cards-teaser-dismissible"),this.N(this.pX("ytp-cards-teaser-close-button"),"click",this.Pw),this.N(this.pX("ytp-cards-teaser-info-icon"),"click",this.b9),this.N(this.pX("ytp-cards-teaser-label"),"click",this.b9)):this.listen("click",this.b9);this.N(l.element,"mouseover",this.V1);this.N(l.element,"mouseout",this.fv);this.N(R,"cardsteasershow", this.TQ9);this.N(R,"cardsteaserhide",this.Rl);this.N(R,"cardstatechange",this.hA);this.N(R,"presentingplayerstatechange",this.hA);this.N(R,"appresize",this.n0);this.N(R,"onShowControls",this.n0);this.N(R,"onHideControls",this.JZ);this.listen("mouseenter",this.n5)}; bhK=function(R){g.Z.call(this,{T:"button",QL:[lP.BUTTON,lP.TITLE_NOTIFICATIONS],K:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},S:[{T:"div",j:lP.TITLE_NOTIFICATIONS_ON,K:{title:"Dejar de recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},S:[g.PB()]},{T:"div",j:lP.TITLE_NOTIFICATIONS_OFF,K:{title:"Recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},S:[{T:"svg",K:{fill:"#fff",height:"24px", viewBox:"0 0 24 24",width:"24px"},S:[{T:"path",K:{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=R;this.Z=!1;R.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")}; XDo=function(R,l){R.Z=l;R.element.classList.toggle(lP.NOTIFICATIONS_ENABLED,R.Z);var y=R.api.getVideoData();y?(l=l?y.XU:y.qc)?(R=R.api.zg())?wh(R,l):g.Tw(Error("No innertube service available when updating notification preferences.")):g.Tw(Error("No update preferences command available.")):g.Tw(Error("No video data when updating notification preferences."))}; dCr=function(R,l,y){var f=f===void 0?800:f;var A=A===void 0?600:A;var K=document.location.protocol;R=Dhj(K+"//"+R+"/signin?context=popup","feature",l,"next",K+"//"+location.hostname+"/post_login");TRk(R,y,f,A)}; TRk=function(R,l,y,f){y=y===void 0?800:y;f=f===void 0?600:f;if(R=g.c4(window,R,"loginPopup","width="+y+",height="+f+",resizable=yes,scrollbars=yes"))W8q(function(){l()}),R.moveTo((screen.width-y)/2,(screen.height-f)/2)}; g.yA=function(R,l,y,f,A,K,G,B,H,n,m,h){R=R.charAt(0)+R.substring(1).toLowerCase();y=y.charAt(0)+y.substring(1).toLowerCase();if(l==="0"||l==="-1")l=null;if(f==="0"||f==="-1")f=null;var c=m.U(),E=c.userDisplayName&&g.CI(c);g.Z.call(this,{T:"div",QL:["ytp-button","ytp-sb"],S:[{T:"div",j:"ytp-sb-subscribe",K:E?{title:g.KV("Suscribirse como $USER_NAME",{USER_NAME:c.userDisplayName}),"aria-label":"Suscribirse al canal","data-tooltip-image":Wm(c),"data-tooltip-opaque":String(g.kh(c)),tabindex:"0",role:"button"}: {"aria-label":"Suscribirse al canal"},S:[{T:"div",j:"ytp-sb-text",S:[{T:"div",j:"ytp-sb-icon"},R]},l?{T:"div",j:"ytp-sb-count",IE:l}:""]},{T:"div",j:"ytp-sb-unsubscribe",K:E?{title:g.KV("Suscrito como $USER_NAME",{USER_NAME:c.userDisplayName}),"aria-label":"Anular la suscripci\u00f3n al canal","data-tooltip-image":Wm(c),"data-tooltip-opaque":String(g.kh(c)),tabindex:"0",role:"button"}:{"aria-label":"Anular la suscripci\u00f3n al canal"},S:[{T:"div",j:"ytp-sb-text",S:[{T:"div",j:"ytp-sb-icon"},y]}, f?{T:"div",j:"ytp-sb-count",IE:f}:""]}],K:{"aria-live":"polite"}});var W=this;this.channelId=G;this.G=m;this.L=h;var Q=this.pX("ytp-sb-subscribe"),e=this.pX("ytp-sb-unsubscribe");K&&g.AU(this.element,"ytp-sb-classic");if(A){B?this.Z():this.X();var r=function(){if(c.xb){var z=W.channelId;if(H||n){var N={c:z};var D;g.Re.isInitialized()&&(D=jWs(N));N=D||"";if(D=m.getVideoData())if(D=D.subscribeCommand){var t=m.zg();t?(wh(t,D,{botguardResponse:N,feature:H}),m.KX("SUBSCRIBE",z)):g.Tw(Error("No innertube service available when updating subscriptions."))}else g.Tw(Error("No subscribe command in videoData.")); else g.Tw(Error("No video data available when updating subscription."))}e.focus();e.removeAttribute("aria-hidden");Q.setAttribute("aria-hidden","true")}else dCr(g.KU(W.G.U()),"sb_button",W.Y)},d=function(){var z=W.channelId; if(H||n){var N=m.getVideoData();wh(m.zg(),N.unsubscribeCommand,{feature:H});m.KX("UNSUBSCRIBE",z)}Q.focus();Q.removeAttribute("aria-hidden");e.setAttribute("aria-hidden","true")}; this.N(Q,"click",r);this.N(e,"click",d);this.N(Q,"keypress",function(z){z.keyCode===13&&r(z)}); this.N(e,"keypress",function(z){z.keyCode===13&&d(z)}); this.N(m,"SUBSCRIBE",this.Z);this.N(m,"UNSUBSCRIBE",this.X);this.L&&E&&(HNi(m),vd(m,Q,this),vd(m,e,this))}else g.AU(Q,"ytp-sb-disabled"),g.AU(e,"ytp-sb-disabled")}; zKT=function(R){g.Z.call(this,{T:"div",j:"ytp-title-channel",S:[{T:"div",j:"ytp-title-beacon"},{T:"a",j:"ytp-title-channel-logo",K:{href:"{{channelLink}}",target:R.U().B,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{T:"div",j:"ytp-title-expanded-overlay",K:{"aria-hidden":"{{flyoutUnfocusable}}"},S:[{T:"div",j:"ytp-title-expanded-heading",S:[{T:"div",j:"ytp-title-expanded-title",S:[{T:"a",IE:"{{expandedTitle}}",K:{href:"{{channelTitleLink}}",target:R.U().B,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{T:"div",j:"ytp-title-expanded-subtitle",IE:"{{expandedSubtitle}}",K:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var l=this;this.api=R;this.channel=this.pX("ytp-title-channel");this.X=this.pX("ytp-title-channel-logo");this.channelName=this.pX("ytp-title-expanded-title");this.D=this.pX("ytp-title-expanded-overlay");this.L=this.Z=this.subscribeButton=null;this.Y=!1;R.createClientVe(this.X,this,36925);R.createClientVe(this.channelName,this, 37220);g.kh(this.api.U())&&rBq(this);this.N(R,"videodatachange",this.oE);this.N(R,"videoplayerreset",this.oE);this.N(this.channelName,"click",function(y){l.api.logClick(l.channelName);g.c4(window,v4j(l));y.preventDefault()}); this.N(this.X,"click",this.Ebb);this.oE()}; wDo=function(R){if(!R.api.U().ol){var l=R.api.getVideoData(),y=new g.yA("Suscribirse",null,"Suscrito/a",null,!0,!1,l.BQ,l.subscribed,"channel_avatar",null,R.api,!0);R.api.createServerVe(y.element,R);var f;R.api.setTrackingParams(y.element,((f=l.subscribeButtonRenderer)==null?void 0:f.trackingParams)||null);R.N(y.element,"click",function(){R.api.logClick(y.element)}); R.subscribeButton=y;g.U(R,R.subscribeButton);R.subscribeButton.JU(R.D);R.subscribeButton.hide();var A=new bhK(R.api);R.Z=A;g.U(R,A);A.JU(R.D);A.hide();R.N(R.api,"SUBSCRIBE",function(){l.XW&&(A.show(),R.api.logVisibility(A.element,!0))}); R.N(R.api,"UNSUBSCRIBE",function(){l.XW&&(A.hide(),R.api.logVisibility(A.element,!1),XDo(A,!1))})}}; rBq=function(R){var l=R.api.U();wDo(R);R.updateValue("flyoutUnfocusable","true");R.updateValue("channelTitleFocusable","-1");R.updateValue("shouldHideExpandedTitleForA11y","true");R.updateValue("shouldHideExpandedSubtitleForA11y","true");l.X||l.UL||(R.N(R.channel,"mouseenter",R.DY),R.N(R.channel,"mouseleave",R.o0),R.N(R.channel,"focusin",R.DY),R.N(R.channel,"focusout",function(y){R.channel.contains(y.relatedTarget)||R.o0()})); R.L=new g.Vg(function(){R.isExpanded()&&(R.api.logVisibility(R.channelName,!1),R.subscribeButton&&(R.subscribeButton.hide(),R.api.logVisibility(R.subscribeButton.element,!1)),R.Z&&(R.Z.hide(),R.api.logVisibility(R.Z.element,!1)),R.channel.classList.remove("ytp-title-expanded"),R.channel.classList.add("ytp-title-show-collapsed"))},500); g.U(R,R.L);R.N(R.channel,xCj,function(){IS7(R)}); R.N(R.api,"onHideControls",R.sM);R.N(R.api,"appresize",R.sM);R.N(R.api,"fullscreentoggled",R.sM)}; IS7=function(R){R.channel.classList.remove("ytp-title-show-collapsed");R.channel.classList.remove("ytp-title-show-expanded")}; NRK=function(R){var l=R.api.getPlayerSize();return g.kh(R.api.U())&&l.width>=524}; v4j=function(R){var l=R.api.U(),y=R.api.getVideoData(),f=g.LU(l)+y.iQ;g.Hd(y)&&(f="https://music.youtube.com"+y.iQ);if(!g.kh(l))return f;l={};g.OW(R.api,"addEmbedsConversionTrackingParams",[l]);return g.L4(f,l)}; f5=function(R){var l=g.fx({"aria-haspopup":"true"});g.yu.call(this,l,R);this.listen("keydown",this.Z)}; Aj=function(R,l){R.element.setAttribute("aria-haspopup",String(l))}; pD9=function(R,l){g.Z.call(this,{T:"div",j:"ytp-user-info-panel",K:{"aria-label":"Informaci\u00f3n del usuario"},S:R.U().xb&&!R.C("embeds_web_always_enable_signed_out_state")?[{T:"div",j:"ytp-user-info-panel-icon",IE:"{{icon}}"},{T:"div",j:"ytp-user-info-panel-content",S:[{T:"div",j:"ytp-user-info-panel-info",K:{tabIndex:"{{userInfoFocusable}}",role:"text"},IE:"{{watchingAsUsername}}"},{T:"div",j:"ytp-user-info-panel-info",K:{tabIndex:"{{userInfoFocusable2}}",role:"text"},IE:"{{watchingAsEmail}}"}]}]: [{T:"div",j:"ytp-user-info-panel-icon",IE:"{{icon}}"},{T:"div",j:"ytp-user-info-panel-content",S:[{T:"div",S:[{T:"text",K:{tabIndex:"{{userInfoFocusable}}"},IE:"Saliste de la cuenta"}]},{T:"div",j:"ytp-user-info-panel-login",S:[{T:"a",K:{tabIndex:"{{userInfoFocusable2}}",role:"button"},IE:R.U().ol?"":"Acceder a YouTube"}]}]}]});this.VL=R;this.Z=l;R.U().xb||R.U().ol||this.N(this.pX("ytp-user-info-panel-login"),"click",this.VE);this.closeButton=new g.Z({T:"button",QL:["ytp-collapse","ytp-button"],K:{title:"Cerrar"}, S:[g.b1()]});this.closeButton.JU(this.element);g.U(this,this.closeButton);this.N(window,"blur",this.hide);this.N(document,"click",this.f5);this.oE()}; j4i=function(R,l,y){g.b$.call(this,R);this.Te=l;this.CS=y;this.getVideoUrl=new f5(6);this.hf=new f5(5);this.jb=new f5(4);this.S1=new f5(3);this.Pu=new g.yu(g.fx({href:"{{href}}",target:this.G.U().B},void 0,!0),2,"Solucionar problema de reproducci\u00f3n");this.showVideoInfo=new g.yu(g.fx(),1,"Estad\u00edsticas");this.mF=new g.BB({T:"div",QL:["ytp-copytext","ytp-no-contextmenu"],K:{draggable:"false",tabindex:"1"},IE:"{{text}}"});this.Y1=new eB(this.G,this.mF);this.vJ=this.uA=null;g.kh(this.G.U())&& (this.closeButton=new g.Z({T:"button",QL:["ytp-collapse","ytp-button"],K:{title:"Cerrar"},S:[g.b1()]}),g.U(this,this.closeButton),this.closeButton.JU(this.element),this.closeButton.listen("click",this.CB,this));g.kh(this.G.U())&&(this.kI=new g.yu(g.fx(),8,"Cuenta"),g.U(this,this.kI),this.sj(this.kI,!0),this.kI.listen("click",this.i_4,this),R.createClientVe(this.kI.element,this.kI,137682));this.G.U().LG&&!R.C("web_player_loop_settings_menu")&&(this.A2=new ox("En bucle",7),g.U(this,this.A2),this.sj(this.A2, !0),this.A2.listen("click",this.Ro$,this),R.createClientVe(this.A2.element,this.A2,28661));g.U(this,this.getVideoUrl);this.sj(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.xxL,this);R.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.U(this,this.hf);this.sj(this.hf,!0);this.hf.listen("click",this.pZL,this);R.createClientVe(this.hf.element,this.hf,28660);g.U(this,this.jb);this.sj(this.jb,!0);this.jb.listen("click",this.aL$,this);R.createClientVe(this.jb.element,this.jb, 28658);g.U(this,this.S1);this.sj(this.S1,!0);this.S1.listen("click",this.Geb,this);g.U(this,this.Pu);this.sj(this.Pu,!0);this.Pu.listen("click",this.zE4,this);g.U(this,this.showVideoInfo);this.sj(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.ms1,this);g.U(this,this.mF);this.mF.listen("click",this.lqX,this);g.U(this,this.Y1);l=document.queryCommandSupported&&document.queryCommandSupported("copy");g7j("Chromium")>=43&&(l=!0);g7j("Firefox")<=40&&(l=!1);l&&(this.uA=new g.Z({T:"textarea", j:"ytp-html5-clipboard",K:{readonly:"",tabindex:"-1"}}),g.U(this,this.uA),this.uA.JU(this.element));var f;(f=this.kI)==null||f.setIcon(eoK());var A;(A=this.A2)==null||A.setIcon(v1s());this.S1.setIcon({T:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{"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.Pu.setIcon(OFr());this.showVideoInfo.setIcon(iFJ());this.N(R,"onLoopChange",this.onLoopChange);this.N(R,"videodatachange",this.onVideoDataChange);UCk(this);SwZ(this,this.G.getVideoData())}; K5=function(R,l){var y=!1;if(R.uA){var f=R.uA.element;f.value=l;f.select();try{y=document.execCommand("copy")}catch(A){}}y?R.Te.Rl():(R.mF.Oj(l,"text"),g.df(R.Te,R.Y1),Oo(R.mF.element),R.uA&&(R.uA=null,UCk(R)));return y}; SwZ=function(R,l){var y=R.G.U(),f=R.G.getPresentingPlayerType()===2,A=!f||l.isListed;A=!y.Yb&&!!l.videoId&&A;y.playerStyle!=="play"?y="https://support.google.com/youtube/?p=report_playback":(y={contact_type:"playbackissue",html5:1,ei:l.eventId,v:l.videoId,p:"movies_playback"},l.X&&(y.fmt=l.X.itag),l.clientPlaybackNonce&&(y.cpn=l.clientPlaybackNonce),l.partnerId&&(y.partnerid=l.partnerId),y=g.L4("//support.google.com/googleplay/",y));R.jb.UF(A&&l.allowEmbed);R.getVideoUrl.UF(A);R.hf.UF(A&&!l.isLivePlayback); R.Pu.Oj(y,"href");var K;(K=R.A2)==null||K.UF(!l.isLivePlayback&&!f);var G;(G=R.kI)==null||G.UF(!f)}; UCk=function(R){var l=!!R.uA;g.ll(R.S1,l?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener la informaci\u00f3n de depuraci\u00f3n");Aj(R.S1,!l);g.ll(R.jb,l?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener el c\u00f3digo de inserci\u00f3n");Aj(R.jb,!l);g.ll(R.getVideoUrl,l?"Copiar URL del video":"Obtener la URL del video");Aj(R.getVideoUrl,!l);g.ll(R.hf,l?"Copiar URL del video en el momento actual":"Obtener la URL del video en el momento actual");Aj(R.hf,!l);R.jb.setIcon(l?E19():null);R.getVideoUrl.setIcon(l? O_():null);R.hf.setIcon(l?O_():null)}; kri=function(R){return g.kh(R.G.U())?R.kI:R.G.C("web_player_loop_settings_menu")?R.getVideoUrl:R.A2}; Zhk=function(R,l){g.TH.call(this,R);this.CS=l;this.Y=new g.QW(this);this.LX=new g.Vg(this.yk7,1E3,this);this.Yb=this.L=null;g.U(this,this.Y);g.U(this,this.LX);l=this.G.U();R.createClientVe(this.element,this,28656);g.AU(this.element,"ytp-contextmenu");this.G.U().experiments.EL("delhi_modern_web_player")&&g.Hm(l)&&g.AU(this.element,"ytp-delhi-modern-contextmenu");DCZ(this);this.hide()}; DCZ=function(R){g.Xr(R.Y);var l=R.G.U();l.playerStyle==="gvn"||l.X||l.UL||(l=R.G.lQ(),R.Y.N(l,"contextmenu",R.k4b),R.Y.N(l,"touchstart",R.onTouchStart,null,!0),R.Y.N(l,"touchmove",R.Gv,null,!0),R.Y.N(l,"touchend",R.Gv,null,!0))}; JBk=function(R){R.G.isFullscreen()?g.kT(R.G,R.element,10):R.JU(tz(R).body)}; G4=function(R,l,y){y=y===void 0?240:y;g.Z.call(this,{T:"button",QL:["ytp-button","ytp-copylink-button"],K:{title:"{{title-attr}}","data-tooltip-opaque":String(g.kh(R.U()))},S:[{T:"div",j:"ytp-copylink-icon",IE:"{{icon}}"},{T:"div",j:"ytp-copylink-title",IE:"Copiar v\u00ednculo",K:{"aria-hidden":"true"}}]});this.api=R;this.Z=l;this.X=y;this.visible=!1;this.tooltip=this.Z.oz();l=R.U();this.tooltip.element.setAttribute("aria-live","polite");g.BJ(this.element,"ytp-show-copylink-title",g.kh(l));R.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.N(R,"videodatachange",this.oE);this.N(R,"videoplayerreset",this.oE);this.N(R,"appresize",this.oE);this.oE();this.addOnDisposeCallback(g.rn(this.tooltip,this.element))}; g49=function(R){var l=R.api.U(),y=R.api.getVideoData(),f=R.api.lQ().getPlayerSize().width;l=l.L;return!!y.videoId&&f>=R.X&&y.WR&&!g.Bd(y)&&!R.api.isEmbedsShortsMode()&&!l}; VQi=function(R){R.updateValue("icon",he());if(R.api.U().X)R.tooltip.mB(R.element,"Se copi\u00f3 el v\u00ednculo en el portapapeles");else{R.updateValue("title-attr","Se copi\u00f3 el v\u00ednculo en el portapapeles");R.tooltip.mW();R.tooltip.mB(R.element);var l=R.listen("mouseleave",function(){R.p_(l);R.oE();R.tooltip.G3()})}}; Cmo=function(R,l){return g.w(function(y){if(y.X==1)return g.$7(y,2),g.v(y,navigator.clipboard.writeText(l),4);if(y.X!=2)return y.return(!0);g.TT(y);var f=y.return,A=!1,K=g.ho("TEXTAREA");K.value=l;K.setAttribute("readonly","");var G=R.api.getRootNode();G.appendChild(K);if(Jv){var B=window.getSelection();B.removeAllRanges();var H=document.createRange();H.selectNodeContents(K);B.addRange(H);K.setSelectionRange(0,l.length)}else K.select();try{A=document.execCommand("copy")}catch(n){}G.removeChild(K); return f.call(y,A)})}; qwk=function(R){g.Z.call(this,{T:"div",j:"ytp-doubletap-ui-legacy",S:[{T:"div",j:"ytp-doubletap-fast-forward-ve"},{T:"div",j:"ytp-doubletap-rewind-ve"},{T:"div",j:"ytp-doubletap-static-circle",S:[{T:"div",j:"ytp-doubletap-ripple"}]},{T:"div",j:"ytp-doubletap-overlay-a11y"},{T:"div",j:"ytp-doubletap-seek-info-container",S:[{T:"div",j:"ytp-doubletap-arrows-container",S:[{T:"span",j:"ytp-doubletap-base-arrow"},{T:"span",j:"ytp-doubletap-base-arrow"},{T:"span",j:"ytp-doubletap-base-arrow"}]},{T:"div", j:"ytp-doubletap-tooltip",S:[{T:"div",j:"ytp-seek-icon-text-container",S:[{T:"div",j:"ytp-seek-icon",IE:"{{seekIcon}}"},{T:"div",j:"ytp-chapter-seek-text-legacy",IE:"{{seekText}}"}]},{T:"div",j:"ytp-doubletap-tooltip-label",IE:"{{seekTime}}"}]}]}]});this.G=R;this.Y=new g.Vg(this.show,10,this);this.X=new g.Vg(this.hide,700,this);this.V=this.L=0;this.LX=this.D=!1;this.Z=this.pX("ytp-doubletap-static-circle");g.U(this,this.Y);g.U(this,this.X);this.hide();this.W=this.pX("ytp-doubletap-fast-forward-ve"); this.B=this.pX("ytp-doubletap-rewind-ve");this.G.createClientVe(this.W,this,28240);this.G.createClientVe(this.B,this,28239);this.G.logVisibility(this.W,!0);this.G.logVisibility(this.B,!0);this.D=R.C("web_show_cumulative_seek_time");this.LX=R.C("web_center_static_circles")}; tQc=function(R,l){l=g.KV("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:l.toString()});R.updateValue("seekTime",l)}; Ywo=function(R){$t.call(this,R,!1,!0);this.Dq=[];this.vZ=[];this.W=!0;this.badge.element.classList.add("ytp-featured-product");this.sL=new g.Z({T:"div",j:"ytp-featured-product-open-in-new"});g.U(this,this.sL);this.countdownTimer=new g.Z({T:"text",j:"ytp-featured-product-countdown",IE:"{{content}}"});this.countdownTimer.hide();g.U(this,this.countdownTimer);this.X=new g.Z({T:"div",j:"ytp-featured-product-trending",S:[{T:"div",j:"ytp-featured-product-trending-icon"},{T:"text",j:"ytp-featured-product-trending-text", IE:"{{trendingOffer}}"}]});this.X.hide();g.U(this,this.X);this.overflowButton=new g.Z({T:"button",QL:["ytp-featured-product-overflow-icon","ytp-button"],K:{"aria-haspopup":"true"}});this.overflowButton.hide();g.U(this,this.overflowButton);this.V=new g.Z({T:"text",j:"ytp-featured-product-exclusive-countdown",IE:"{{content}}",K:{id:"exclusiveCountdown","aria-hidden":"true"}});this.V.hide();g.U(this,this.V);this.D=new g.Z({T:"div",j:"ytp-featured-product-exclusive-container",K:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, S:[{T:"div",j:"ytp-featured-product-exclusive-badge-container",S:[{T:"div",j:"ytp-featured-product-exclusive-badge",S:[{T:"text",j:"ytp-featured-product-exclusive-badge-text",IE:"{{exclusive}}",K:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.V]});this.D.hide();g.U(this,this.D);this.banner=new g.Z({T:"a",j:"ytp-featured-product-container",S:[{T:"div",j:"ytp-featured-product-thumbnail",S:[{T:"img",K:{src:"{{thumbnail}}"}},this.sL]},{T:"div",j:"ytp-featured-product-details",S:[{T:"text",j:"ytp-featured-product-title", IE:"{{title}}"},this.G.C("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{T:"div",j:"ytp-featured-product-price-container",K:{"aria-label":"{{priceA11yText}}"},S:[{T:"text",j:"ytp-featured-product-price-when-promotion-text-enabled",IE:"{{price}}",K:{"aria-hidden":"true"}},{T:"text",j:"ytp-featured-product-promotion-text",IE:"{{promotionText}}",K:{"aria-hidden":"true"}}]}:{T:"div",K:{"aria-label":"{{priceA11yText}}"},S:[{T:"text",j:"ytp-featured-product-price",IE:"{{price}}", K:{"aria-hidden":"true"}},{T:"text",j:"ytp-featured-product-sales-original-price",IE:"{{salesOriginalPrice}}",K:{"aria-hidden":"true"}},{T:"text",j:"ytp-featured-product-price-drop-reference-price",IE:"{{priceDropReferencePrice}}",K:{"aria-hidden":"true"}}]},this.G.C("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{T:"div",j:"ytp-featured-product-when-promotion-text-enabled",S:[{T:"text",j:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",IE:"{{affiliateDisclaimer}}"}, this.X,{T:"text",j:"ytp-featured-product-vendor-when-promotion-text-enabled",IE:"{{vendor}}"}]}:{T:"div",S:[{T:"text",j:"ytp-featured-product-affiliate-disclaimer",IE:"{{affiliateDisclaimer}}"},this.G.C("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.D:null,this.X,{T:"text",j:"ytp-featured-product-vendor",IE:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.U(this,this.banner);this.banner.JU(this.L.element);this.N(this.G,g.Vx("featured_product"),this.tIX);this.N(this.G, g.Cd("featured_product"),this.e2);this.N(this.G,"videodatachange",this.onVideoDataChange);this.N(this.overflowButton.element,"click",this.oI);this.N(R,"featuredproductdismissed",this.Qe)}; MQY=function(R){var l,y;R=(l=R.Z)==null?void 0:(y=l.bannerData)==null?void 0:y.itemData;var f,A,K;return(R==null||!R.affiliateDisclaimer)&&(R==null?0:(f=R.exclusivesData)==null?0:f.exclusiveOfferLabelText)&&(R==null?0:(A=R.exclusivesData)==null?0:A.expirationTimestampMs)&&(R==null?0:(K=R.exclusivesData)==null?0:K.exclusiveOfferCountdownText)?!0:!1}; lBq=function(R){var l,y,f,A,K=(l=R.Z)==null?void 0:(y=l.bannerData)==null?void 0:(f=y.itemData)==null?void 0:(A=f.exclusivesData)==null?void 0:A.expirationTimestampMs;l=(Number(K)-Date.now())/1E3;if(l>0){if(l<604800){var G,B,H,n;y=(G=R.Z)==null?void 0:(B=G.bannerData)==null?void 0:(H=B.itemData)==null?void 0:(n=H.exclusivesData)==null?void 0:n.exclusiveOfferCountdownText;if(y!==void 0)for(G=Date.now(),B=g.u(y),H=B.next();!H.done;H=B.next())if(H=H.value,H!==void 0&&H.text!==void 0&&(n=Number(H.textDisplayStartTimestampMs), !isNaN(n)&&G>=n)){H.insertCountdown?(l=H.text.replace(/\$0/,String(U$({seconds:l}))),R.V.Oj(l)):R.V.Oj(H.text);R.V.show();break}}var m,h,c,E;R.D.update({exclusive:(m=R.Z)==null?void 0:(h=m.bannerData)==null?void 0:(c=h.itemData)==null?void 0:(E=c.exclusivesData)==null?void 0:E.exclusiveOfferLabelText});R.D.show();ap(R);var W;(W=R.ol)==null||W.start()}else RGJ(R)}; RGJ=function(R){var l;(l=R.ol)==null||l.stop();R.V.hide();R.D.hide();sy(R)}; yHq=function(R){var l,y,f=(l=R.Z)==null?void 0:(y=l.bannerData)==null?void 0:y.itemData;return R.G.C("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(f==null||!f.priceReplacementText)&&(f==null?0:f.promotionText)?f==null?void 0:f.promotionText.content:null}; fBJ=function(R){var l,y,f=(l=R.Z)==null?void 0:(y=l.bannerData)==null?void 0:y.itemData,A,K;if(!(f!=null&&f.priceReplacementText||R.G.C("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(f==null?0:(A=f.dealsData)==null?0:(K=A.sales)==null?0:K.originalPrice)){var G,B;return f==null?void 0:(G=f.dealsData)==null?void 0:(B=G.sales)==null?void 0:B.originalPrice}return null}; AHs=function(R){var l,y,f=(l=R.Z)==null?void 0:(y=l.bannerData)==null?void 0:y.itemData,A,K,G,B;if(!((f==null?0:f.priceReplacementText)||R.G.C("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(f==null?0:(A=f.dealsData)==null?0:(K=A.sales)==null?0:K.originalPrice))&&(f==null?0:(G=f.dealsData)==null?0:(B=G.priceDrop)==null?0:B.referencePrice)){var H,n;return f==null?void 0:(H=f.dealsData)==null?void 0:(n=H.priceDrop)==null?void 0:n.referencePrice}return null}; K6Z=function(R){var l,y,f=(l=R.Z)==null?void 0:(y=l.bannerData)==null?void 0:y.itemData;if(f==null?0:f.priceReplacementText)return f==null?void 0:f.priceReplacementText;if((f==null?0:f.promotionText)&&R.G.C("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var A;return(f==null?void 0:f.price)+" "+(f==null?void 0:(A=f.promotionText)==null?void 0:A.content)}var K,G;if(f==null?0:(K=f.dealsData)==null?0:(G=K.sales)==null?0:G.originalPrice){var B,H;return f==null?void 0:(B=f.dealsData)== null?void 0:(H=B.sales)==null?void 0:H.salesPriceAccessibilityLabel}var n,m;if(f==null?0:(n=f.dealsData)==null?0:(m=n.priceDrop)==null?0:m.referencePrice){var h,c;return(f==null?void 0:f.price)+" "+(f==null?void 0:(h=f.dealsData)==null?void 0:(c=h.priceDrop)==null?void 0:c.referencePrice)}return f==null?void 0:f.price}; GRr=function(R){if(R.G.C("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var l,y,f;return R.X.m$?null:(l=R.Z)==null?void 0:(y=l.bannerData)==null?void 0:(f=y.itemData)==null?void 0:f.vendorName}var A,K,G,B,H,n;return R.X.m$||R.D.m$||((A=R.Z)==null?0:(K=A.bannerData)==null?0:(G=K.itemData)==null?0:G.affiliateDisclaimer)?null:(B=R.Z)==null?void 0:(H=B.bannerData)==null?void 0:(n=H.itemData)==null?void 0:n.vendorName}; sCZ=function(R,l){BP(R);if(l){var y=g.cZ.getState().entities;y=MU(y,"featuredProductsEntity",l);if(y!=null&&y.productsData){l=[];y=g.u(y.productsData);for(var f=y.next();!f.done;f=y.next()){f=f.value;var A=void 0;if((A=f)!=null&&A.identifier&&f.featuredSegments){R.Dq.push(f);var K=void 0;A=g.u((K=f)==null?void 0:K.featuredSegments);for(K=A.next();!K.done;K=A.next()){var G=K.value;K=aBs(G.startTimeSec);K!==void 0&&(G=aBs(G.endTimeSec),l.push(new g.Jq(K*1E3,G===void 0?0x7ffffffffffff:G*1E3,{id:f.identifier, namespace:"featured_product"})))}}}R.G.OS(l)}}}; sy=function(R){if(R.trendingOfferEntityKey){var l=g.cZ.getState().entities;if(l=MU(l,"trendingOfferEntity",R.trendingOfferEntityKey)){var y,f,A;l.encodedSkuId!==((y=R.Z)==null?void 0:(f=y.bannerData)==null?void 0:(A=f.itemData)==null?void 0:A.encodedOfferSkuId)?ap(R):(R.X.update({trendingOffer:l.shortLabel+" \u2022 "+l.countLabel}),R.X.show(),R.banner.update({vendor:GRr(R)}))}else ap(R)}else ap(R)}; ap=function(R){R.X.hide();R.banner.update({vendor:GRr(R)})}; BP=function(R){R.Dq=[];R.e2();R.G.yb("featured_product")}; BLi=function(R){var l,y,f,A,K=(l=R.Z)==null?void 0:(y=l.bannerData)==null?void 0:(f=y.itemData)==null?void 0:(A=f.hiddenProductOptions)==null?void 0:A.dropTimestampMs;l=(Number(K)-Date.now())/1E3;R.countdownTimer.Oj(U$({seconds:l}));if(l>0){var G;(G=R.sF)==null||G.start()}}; Hck=function(R){var l;(l=R.sF)==null||l.stop();R.countdownTimer.hide()}; aBs=function(R){if(R!==void 0&&R.trim()!==""&&(R=Math.trunc(Number(R.trim())),!(isNaN(R)||R<0)))return R}; cH9=function(R,l,y){g.Z.call(this,{T:"div",QL:["ytp-info-panel-action-item"],S:[{T:"div",j:"ytp-info-panel-action-item-disclaimer",IE:"{{disclaimer}}"},{T:"a",QL:["ytp-info-panel-action-item-button","ytp-button"],K:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},S:[{T:"div",j:"ytp-info-panel-action-item-icon",IE:"{{icon}}"},{T:"div",j:"ytp-info-panel-action-item-label",IE:"{{label}}"}]}]});this.G=R;this.Z=y;this.disclaimer=this.pX("ytp-info-panel-action-item-disclaimer");this.button= this.pX("ytp-info-panel-action-item-button");this.Nl=!1;this.G.createServerVe(this.element,this,!0);this.listen("click",this.onClick);R="";y=g.k(l==null?void 0:l.onTap,vy);var f=g.k(y,g.wp);this.Nl=!1;f?(R=f.url||"",R.startsWith("//")&&(R="https:"+R),this.Nl=!0,g.H4(this.button,g.sp(R))):(f=g.k(y,nkq))&&!this.Z?((R=f.phoneNumbers)&&R.length>0?(R="sms:"+R[0],f.messageText&&(R+="?&body="+encodeURI(f.messageText))):R="",this.Nl=!0,g.H4(this.button,g.sp(R,[mKQ]))):(y=g.k(y,ok7))&&!this.Z&&(R=y.phoneNumber? "tel:"+y.phoneNumber:"",this.Nl=!0,g.H4(this.button,g.sp(R,[hGY])));var A;if(y=(A=l.disclaimerText)==null?void 0:A.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var K;this.update({label:(K=l.bodyText)==null?void 0:K.content,icon:u1(),disclaimer:y})}else{this.disclaimer.style.display="none";var G;this.update({label:(G=l.bodyText)==null?void 0:G.content,icon:u1()})}this.G.setTrackingParams(this.element,l.trackingParams||null);this.Nl&&(this.X={externalLinkData:{url:R}})}; Ekk=function(R,l){var y=Ki();g.q9.call(this,R,{T:"div",j:"ytp-info-panel-detail-skrim",S:[{T:"div",j:"ytp-info-panel-detail",K:{role:"dialog",id:y},S:[{T:"div",j:"ytp-info-panel-detail-header",S:[{T:"div",j:"ytp-info-panel-detail-title",IE:"{{title}}"},{T:"button",QL:["ytp-info-panel-detail-close","ytp-button"],K:{"aria-label":"Cerrar"},S:[g.WB()]}]},{T:"div",j:"ytp-info-panel-detail-body",IE:"{{body}}"},{T:"div",j:"ytp-info-panel-detail-items"}]}]},250);this.Z=l;this.items=this.pX("ytp-info-panel-detail-items"); this.L=new g.QW(this);this.itemData=[];this.Y=y;this.N(this.pX("ytp-info-panel-detail-close"),"click",this.Rl);this.N(this.pX("ytp-info-panel-detail-skrim"),"click",this.Rl);this.N(this.pX("ytp-info-panel-detail"),"click",function(f){f.stopPropagation()}); g.U(this,this.L);this.G.createServerVe(this.element,this,!0);this.N(R,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",R.getVideoData());this.hide()}; W6k=function(R,l){R=g.u(R.itemData);for(var y=R.next();!y.done;y=R.next())y=y.value,y.G.logVisibility(y.element,l)}; icq=function(R,l){g.Z.call(this,{T:"div",j:"ytp-info-panel-preview",K:{"aria-live":"assertive","aria-atomic":"true","aria-owns":l.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.kh(R.U()))},S:[{T:"div",j:"ytp-info-panel-preview-text",IE:"{{text}}"},{T:"div",j:"ytp-info-panel-preview-chevron",IE:"{{chevron}}"}]});var y=this;this.G=R;this.Ak=this.Z=this.videoId=null;this.L=this.showControls=this.X=!1;this.N(this.element,"click",function(){R.logClick(y.element);R.nN();M9(l)}); this.fade=new g.MF(this,250,!1,100);g.U(this,this.fade);this.G.createServerVe(this.element,this,!0);this.N(R,"videodatachange",this.onVideoDataChange);this.N(R,"presentingplayerstatechange",this.AB);this.N(this.G,"paidcontentoverlayvisibilitychange",this.oC);this.N(this.G,"infopaneldetailvisibilitychange",this.oC);var f=R.getVideoData()||{};L6Q(f)&&OcT(this,f);this.N(R,"onShowControls",this.Ng);this.N(R,"onHideControls",this.zJ)}; OcT=function(R,l){if(!l.BA||!R.G.jK()){var y=l.Sg||1E4,f=L6Q(l);R.Z?l.videoId&&l.videoId!==R.videoId&&(g.tI(R.Z),R.videoId=l.videoId,f?(PUc(R,y,l),R.jZ()):(R.Rl(),R.Z.dispose(),R.Z=null)):f&&(l.videoId&&(R.videoId=l.videoId),PUc(R,y,l),R.jZ())}}; L6Q=function(R){var l,y,f,A;return!!((l=R.J7)==null?0:(y=l.title)==null?0:y.content)||!!((f=R.J7)==null?0:(A=f.bodyText)==null?0:A.content)}; PUc=function(R,l,y){R.Z&&R.Z.dispose();R.Z=new g.Vg(R.S94,l,R);g.U(R,R.Z);var f;l=((f=y.J7)==null?void 0:f.trackingParams)||null;R.G.setTrackingParams(R.element,l);var A;var K,G;if(y==null?0:(K=y.J7)==null?0:(G=K.title)==null?0:G.content){var B;f=(A=y.J7)==null?void 0:(B=A.title)==null?void 0:B.content;var H,n;if((H=y.J7)==null?0:(n=H.bodyText)==null?0:n.content)f+=" \u2022 ";A=f}else A="";var m,h;y=((m=y.J7)==null?void 0:(h=m.bodyText)==null?void 0:h.content)||"";R.update({text:A+y,chevron:g.E_()})}; uJq=function(R,l){R.Z&&(g.V(l,8)?(R.X=!0,R.jZ(),R.Z.start()):(g.V(l,2)||g.V(l,64))&&R.videoId&&(R.videoId=null))}; HP=function(R){var l=null;try{l=R.toLocaleString("es-419",{style:"percent"})}catch(y){l=R.toLocaleString(void 0,{style:"percent"})}return l}; n5=function(R,l){var y=0;R=g.u(R);for(var f=R.next();!(f.done||f.value.startTime>l);f=R.next())y++;return y===0?y:y-1}; F6Z=function(R,l){for(var y=0,f=g.u(R),A=f.next();!A.done;A=f.next()){A=A.value;if(l=A.timeRangeStartMillis&&l0?l[0]:null;var y=g.aA("ytp-chrome-bottom"),f=g.aA("ytp-ad-module");R.Y=!(y==null||!y.contains(l));R.W=!(f==null||!f.contains(l));R.B=!(l==null||!l.hasAttribute("data-tooltip-target-fixed"));return l}; SmQ=function(R,l,y){if(!R.D){if(l){R.tooltipRenderer=l;l=R.tooltipRenderer.text;var f=!1,A;(l==null?0:(A=l.runs)==null?0:A.length)&&l.runs[0].text&&(R.update({title:l.runs[0].text.toString()}),f=!0);g.yT(R.title,f);l=R.tooltipRenderer.detailsText;A=!1;var K;if((l==null?0:(K=l.runs)==null?0:K.length)&&l.runs[0].text){f=l.runs[0].text.toString();K=f.indexOf("$TARGET_ICON");if(K>-1)if(R.tooltipRenderer.targetId){l=[];f=f.split("$TARGET_ICON");var G=new g.GG({T:"span",j:"ytp-promotooltip-details-icon", S:[p3Q[R.tooltipRenderer.targetId]]});g.U(R,G);for(var B=[],H=g.u(f),n=H.next();!n.done;n=H.next())n=new g.GG({T:"span",j:"ytp-promotooltip-details-component",IE:n.value}),g.U(R,n),B.push(n);f.length===2?(l.push(B[0].element),l.push(G.element),l.push(B[1].element)):f.length===1&&(K===0?(l.push(G.element),l.push(B[0].element)):(l.push(B[0].element),l.push(G.element)));K=l.length?l:null}else K=null;else K=f;if(K){if(typeof K!=="string")for(g.W0(R.details),A=g.u(K),K=A.next();!K.done;K=A.next())R.details.appendChild(K.value); else R.update({details:K});A=!0}}g.yT(R.details,A);A=R.tooltipRenderer.acceptButton;K=!1;var m,h,c;((m=g.k(A,g.lD))==null?0:(h=m.text)==null?0:(c=h.runs)==null?0:c.length)&&g.k(A,g.lD).text.runs[0].text&&(R.update({acceptButtonText:g.k(A,g.lD).text.runs[0].text.toString()}),K=!0);g.yT(R.acceptButton,K);m=R.tooltipRenderer.dismissButton;h=!1;var E,W,Q;((E=g.k(m,g.lD))==null?0:(W=E.text)==null?0:(Q=W.runs)==null?0:Q.length)&&g.k(m,g.lD).text.runs[0].text&&(R.update({dismissButtonText:g.k(m,g.lD).text.runs[0].text.toString()}), h=!0);g.yT(R.dismissButton,h)}y&&(R.L=y);R.Z=NLk(R);R.V=!1;R.G.U().C("web_player_hide_nitrate_promo_tooltip")||R.UF(!0);UKj(R);R.m$&&!R.LX&&(R.LX=!0,R.yu.KP(0));R.X&&R.G.logVisibility(R.element,R.m$)}}; L5=function(R){R.UF(!1);R.X&&R.G.logVisibility(R.element,R.m$)}; jCZ=function(R){var l,y,f,A=((l=g.k(R.acceptButton,g.lD))==null?void 0:(y=l.text)==null?void 0:(f=y.runs)==null?void 0:f.length)&&!!g.k(R.acceptButton,g.lD).text.runs[0].text,K,G,B;l=((K=g.k(R.dismissButton,g.lD))==null?void 0:(G=K.text)==null?void 0:(B=G.runs)==null?void 0:B.length)&&!!g.k(R.dismissButton,g.lD).text.runs[0].text;return A||l}; UKj=function(R){var l;if(!(l=!R.Z)){l=R.Z;var y=window.getComputedStyle(l);l=y.display==="none"||y.visibility==="hidden"||l.getAttribute("aria-hidden")==="true"}if(l||R.G.isMinimized())R.UF(!1);else if(l=g.l4(R.Z),l.width&&l.height){R.G.o6(R.element,R.Z);var f=R.G.lQ().getPlayerSize().height;y=g.l4(R.pX("ytp-promotooltip-container")).height;R.Y?R.element.style.top=f-y-l.height-12+"px":R.B||(f=R.G.vQ().height-y-l.height-12,R.element.style.top=f+"px");f=R.pX("ytp-promotooltip-pointer");var A=g.Mh(R.Z, R.G.getRootNode()),K=Number(R.element.style.left.replace(/[^\d\.]/g,""));R=R.G.isFullscreen()?18:12;f.style.left=A.x-K+l.width/2-R+"px";f.style.top=y+"px"}else R.UF(!1)}; Oy=function(R){g.Z.call(this,{T:"button",QL:["ytp-replay-button","ytp-button"],K:{title:"Volver a reproducir"},S:[g.$D()]});this.G=R;this.N(R,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.vl(R.getPlayerStateObject());vd(this.G,this.element,this)}; iP=function(R,l){l=l===void 0?240:l;g.Z.call(this,{T:"button",QL:["ytp-button","ytp-search-button"],K:{title:"Buscar","data-tooltip-opaque":String(g.kh(R.U()))},S:[{T:"div",j:"ytp-search-icon",IE:"{{icon}}"},{T:"div",j:"ytp-search-title",IE:"Buscar"}]});this.api=R;this.X=l;this.visible=!1;this.updateValue("icon",{T:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},S:[{T:"path",j:"ytp-svg-fill",K:{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"}}]}); R.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.Z();this.N(R,"appresize",this.Z);this.N(R,"videodatachange",this.Z);vd(R,this.element,this)}; PP=function(R){g.Z.call(this,{T:"div",j:"ytp-seek-overlay",S:[{T:"div",QL:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],S:[{T:"div",QL:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],S:[{T:"svg",K:{viewBox:"0 0 22 32",width:"22",height:"32"},S:[{T:"path",K:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]},{T:"div",j:"ytp-seek-overlay-duration",IE:"{{durationBack}}"}]},{T:"div",QL:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-forward"], S:[{T:"div",j:"ytp-seek-overlay-duration",IE:"{{durationForward}}"},{T:"div",QL:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],S:[{T:"svg",K:{viewBox:"0 0 22 32",width:"22",height:"32"},S:[{T:"path",K:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]}]},{T:"div",j:"ytp-seek-overlay-message",S:[{T:"div",j:"ytp-seek-overlay-message-icon",IE:"{{icon}}"},{T:"div",j:"ytp-seek-overlay-message-text",IE:"{{text}}"}]}]});var l=this;this.G=R;this.V=0;this.Z="hidden"; this.LX=0;this.W=this.pX("ytp-seek-overlay-animation-back");this.B=this.pX("ytp-seek-overlay-animation-forward");this.Yb=this.pX("ytp-seek-overlay-message");this.D=new g.Vg(function(){kRs(l)},g.yx(this.G.U().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.U(this,this.D);this.G.createClientVe(this.B,this,28240);this.G.createClientVe(this.W,this,28239);this.G.logVisibility(this.B,!0);this.G.logVisibility(this.W,!0);this.hide()}; DK9=function(R,l){R.X=R.L.animate([{offset:0,opacity:l,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:1}],{duration:200,fill:"forwards"});R.X.addEventListener("finish",function(){R.X=void 0;R.D.start();R.Z="lingering"})}; Zcq=function(R,l,y){y=y===void 0?!1:y;var f=[];f.push({offset:0,transform:"translateX("+(R.Y===-1?30:-30)+"px)",opacity:y?"0":"1"});y&&f.push({offset:.5,opacity:"1"});f.push({offset:1,transform:"translateX(0)"});y=l.animate(f,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});l.querySelector("path").animate([{offset:0,d:R.Y===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'},{offset:1,d:R.Y===-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 y}; JHq=function(R){if((0,g.eY)()-R.LX>=(g.yx(R.G.U().experiments,"web_player_seek_overlay_additional_arrow_threshold")||200)){var l=R.L.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);l.classList.add("ytp-seek-overlay-arrow-additional");l.classList.remove("ytp-seek-overlay-arrow-persistent");R.L.appendChild(l);Zcq(R,l,!0).addEventListener("finish",function(){l.remove()})}}; kRs=function(R,l,y){y=y===void 0?!0:y;R.X=R.L.animate([{offset:0,opacity:l===void 0?1:l},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});y&&(R.X.addEventListener("finish",function(){R.X=void 0;gkQ(R);R.hide()}),R.Z="fading-out")}; VX7=function(R){var l=Number(getComputedStyle(R.L).opacity),y;(y=R.X)==null||y.cancel();R.X=void 0;return l}; gkQ=function(R){R.V=0;R.Z="hidden";R.Y=void 0;R.L=void 0;R.LX=0;R.D.stop();R.X=void 0}; CU7=function(R,l,y){R.updateValue("text",l);if(y){a:{switch(y){case "PREMIUM_STANDALONE":l=T0J();break a;case "PREMIUM_STANDALONE_CAIRO":l=dtK();break a}l=void 0}R.updateValue("icon",l)}l=g.u(R.Yb.getAnimations());for(y=l.next();!y.done;y=l.next())y.value.cancel();R.Yb.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){R.updateValue("text","");R.updateValue("icon","")})}; uP=function(R,l,y,f){f=f===void 0?240:f;g.Z.call(this,{T:"button",QL:["ytp-button","ytp-share-button"],K:{title:"Compartir","aria-haspopup":"true","aria-owns":y.element.id,"data-tooltip-opaque":String(g.kh(R.U()))},S:[{T:"div",j:"ytp-share-icon",IE:"{{icon}}"},{T:"div",j:"ytp-share-title",IE:"Compartir"}]});this.api=R;this.Z=l;this.X=y;this.L=f;this.visible=!1;this.tooltip=this.Z.oz();R.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.N(R,"videodatachange",this.oE);this.N(R, "videoplayerreset",this.oE);this.N(R,"appresize",this.oE);this.N(R,"presentingplayerstatechange",this.oE);this.oE();this.addOnDisposeCallback(g.rn(this.tooltip,this.element))}; qm9=function(R){var l=R.api.U(),y=R.api.getVideoData(),f=g.kh(l)&&g.pM(R.api)&&g.V(R.api.getPlayerStateObject(),128);l=l.L||l.disableSharing&&R.api.getPresentingPlayerType()!==2||!y.showShareButton||y.WR||f||g.Bd(y)||!1;f=R.api.lQ().getPlayerSize().width;return!!y.videoId&&f>=R.L&&!l}; tXJ=function(R,l){l.name!=="InvalidStateError"&&l.name!=="AbortError"&&(l.name==="NotAllowedError"?(R.Z.nN(),M9(R.X,R.element,!1)):g.Tw(l))}; MXs=function(R,l){var y=Ki(),f=R.U();y={T:"div",j:"ytp-share-panel",K:{id:Ki(),role:"dialog","aria-labelledby":y},S:[{T:"div",j:"ytp-share-panel-inner-content",S:[{T:"div",j:"ytp-share-panel-title",K:{id:y},IE:"Compartir"},{T:"a",QL:["ytp-share-panel-link","ytp-no-contextmenu"],K:{href:"{{link}}",target:f.B,title:"Compartir v\u00ednculo","aria-label":"{{shareLinkWithUrl}}"},IE:"{{linkText}}"},{T:"label",j:"ytp-share-panel-include-playlist",S:[{T:"input",j:"ytp-share-panel-include-playlist-checkbox", K:{type:"checkbox",checked:"true"}},"Incluir playlist"]},{T:"div",j:"ytp-share-panel-loading-spinner",S:[Lx()]},{T:"div",j:"ytp-share-panel-service-buttons",IE:"{{buttons}}"},{T:"div",j:"ytp-share-panel-error",IE:"Error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{T:"button",QL:["ytp-share-panel-close","ytp-button"],K:{title:"Cerrar"},S:[g.WB()]}]};g.q9.call(this,R,y,250);var A=this;this.moreButton=null;this.api=R;this.tooltip=l.oz();this.L=[];this.D= this.pX("ytp-share-panel-inner-content");this.closeButton=this.pX("ytp-share-panel-close");this.N(this.closeButton,"click",this.Rl);this.addOnDisposeCallback(g.rn(this.tooltip,this.closeButton));this.Y=this.pX("ytp-share-panel-include-playlist-checkbox");this.N(this.Y,"click",this.oE);this.Z=this.pX("ytp-share-panel-link");this.addOnDisposeCallback(g.rn(this.tooltip,this.Z));this.api.createClientVe(this.Z,this,164503);this.N(this.Z,"click",function(K){K.preventDefault();A.api.logClick(A.Z);var G= A.api.getVideoUrl(!0,!0,!1,!1);G=Ymr(A,G);g.Eo(G,A.api,K)&&A.api.KX("SHARE_CLICKED")}); this.listen("click",this.OB);this.N(R,"videoplayerreset",this.hide);this.N(R,"fullscreentoggled",this.onFullscreenToggled);this.N(R,"onLoopRangeChange",this.Hd);this.hide()}; y8Y=function(R,l){RVs(R);for(var y=l.links||l.shareTargets,f=0,A={},K=0;K0&&!t&&!N?(z.length===2&&(z=["noreferrer"]),g.c4(E,Q,c,z[0]),E=MHi()):(e=d.join(","),IM()&&E.navigator&&E.navigator.standalone&&c&&c!="_self"?(e=g.ho("A"),g.H4(e,Q),e.target=c,r&&(e.rel="noreferrer"),((W=W.attributionsrc)||W==="")&&e.setAttribute("attributionsrc",W),W=document.createEvent("MouseEvent"), W.initMouseEvent("click",!0,!0,E,1),e.dispatchEvent(W),E=MHi()):r?(E=g.c4(E,"",c,e),W=g.AM(Q),E&&(E.opener=null,W===""&&(W="javascript:''"),W='',W=oM(W),(Q=E.document)&&Q.write&&(Q.write(hM(W)),Q.close()))):((E=g.c4(E,Q,c,e))&&W.noopener&&(E.opener=null),E&&W.noreferrer&&(E.opener=null)));E&&(E.opener||(E.opener=window),E.focus());h.preventDefault()}}}(A)); A.Uz.addOnDisposeCallback(g.rn(R.tooltip,A.Uz.element));B==="Facebook"?R.api.createClientVe(A.Uz.element,A.Uz,164504):B==="Twitter"&&R.api.createClientVe(A.Uz.element,A.Uz,164505);R.N(A.Uz.element,"click",function(m){return function(){R.api.logClick(m.Uz.element)}}(A)); R.api.logVisibility(A.Uz.element,!0);R.L.push(A.Uz);f++}}var H=l.more||l.moreLink,n=new g.Z({T:"a",QL:["ytp-share-panel-service-button","ytp-button"],S:[{T:"span",j:"ytp-share-panel-service-button-more",S:[{T:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{T:"rect",K:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{T:"path",K:{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"}}]}]}],K:{href:H,target:"_blank",title:"M\u00e1s"}});n.listen("click",function(m){var h=H;R.api.logClick(R.moreButton.element);h=Ymr(R,h);g.Eo(h,R.api,m)&&R.api.KX("SHARE_CLICKED")}); n.addOnDisposeCallback(g.rn(R.tooltip,n.element));R.api.createClientVe(n.element,n,164506);R.N(n.element,"click",function(){R.api.logClick(n.element)}); R.api.logVisibility(n.element,!0);R.L.push(n);R.moreButton=n;R.updateValue("buttons",R.L)}; Ymr=function(R,l){var y={};g.kh(R.api.U())&&(g.OW(R.api,"addEmbedsConversionTrackingParams",[y]),l=g.L4(l,y));return l}; RVs=function(R){for(var l=g.u(R.L),y=l.next();!y.done;y=l.next())y=y.value,y.detach(),g.f_(y);R.L=[]}; Fx=function(R){return R===void 0||R.startSec===void 0||R.endSec===void 0?!1:!0}; fMK=function(R,l){R.startSec+=l;R.endSec+=l}; K3J=function(R){$t.call(this,R);this.X=this.Z=this.isContentForward=this.V=!1;A8J(this);this.N(this.G,"changeProductsInVideoVisibility",this.plU);this.N(this.G,"videodatachange",this.onVideoDataChange)}; GiQ=function(R){R.D&&R.P1.element.removeChild(R.D.element);R.D=void 0}; s67=function(R,l){return l.map(function(y){var f,A;if((y=(f=g.k(y,aMJ))==null?void 0:(A=f.thumbnail)==null?void 0:A.thumbnails)&&y.length!==0)return y[0].url}).filter(function(y){return y!==void 0}).map(function(y){y=new g.Z({T:"img", j:"ytp-suggested-action-product-thumbnail",K:{alt:"",src:y}});g.U(R,y);return y})}; BW9=function(R,l){R.isContentForward=l;g.BJ(R.badge.element,"ytp-suggested-action-badge-content-forward",l)}; QA=function(R){var l=R.isContentForward&&!R.wV();g.BJ(R.badge.element,"ytp-suggested-action-badge-preview-collapsed",l&&R.Z);g.BJ(R.badge.element,"ytp-suggested-action-badge-preview-expanded",l&&R.X)}; $B=function(R,l,y){return new g.Jq(R*1E3,l*1E3,{priority:9,namespace:y})}; H79=function(R){R.G.yb("shopping_overlay_visible");R.G.yb("shopping_overlay_preview_collapsed");R.G.yb("shopping_overlay_preview_expanded");R.G.yb("shopping_overlay_expanded")}; A8J=function(R){R.N(R.G,g.Vx("shopping_overlay_visible"),function(){R.cA(!0)}); R.N(R.G,g.Cd("shopping_overlay_visible"),function(){R.cA(!1)}); R.N(R.G,g.Vx("shopping_overlay_expanded"),function(){R.Yb=!0;Qj(R)}); R.N(R.G,g.Cd("shopping_overlay_expanded"),function(){R.Yb=!1;Qj(R)}); R.N(R.G,g.Vx("shopping_overlay_preview_collapsed"),function(){R.Z=!0;QA(R)}); R.N(R.G,g.Cd("shopping_overlay_preview_collapsed"),function(){R.Z=!1;QA(R)}); R.N(R.G,g.Vx("shopping_overlay_preview_expanded"),function(){R.X=!0;QA(R)}); R.N(R.G,g.Cd("shopping_overlay_preview_expanded"),function(){R.X=!1;QA(R)})}; odi=function(R){g.Z.call(this,{T:"div",j:"ytp-shorts-title-channel",S:[{T:"a",j:"ytp-shorts-title-channel-logo",K:{href:"{{channelLink}}",target:R.U().B,"aria-label":"{{channelLogoLabel}}"}},{T:"div",j:"ytp-shorts-title-expanded-heading",S:[{T:"div",j:"ytp-shorts-title-expanded-title",S:[{T:"a",IE:"{{expandedTitle}}",K:{href:"{{channelTitleLink}}",target:R.U().B,tabIndex:"0"}}]}]}]});var l=this;this.api=R;this.Z=this.pX("ytp-shorts-title-channel-logo");this.channelName=this.pX("ytp-shorts-title-expanded-title"); this.subscribeButton=null;R.createClientVe(this.Z,this,36925);this.N(this.Z,"click",function(y){l.api.logClick(l.Z);g.c4(window,ndQ(l));y.preventDefault()}); R.createClientVe(this.channelName,this,37220);this.N(this.channelName,"click",function(y){l.api.logClick(l.channelName);g.c4(window,ndQ(l));y.preventDefault()}); mx9(this);this.N(R,"videodatachange",this.oE);this.N(R,"videoplayerreset",this.oE);this.oE()}; mx9=function(R){if(!R.api.U().ol){var l=R.api.getVideoData(),y=new g.yA("Suscribirse",null,"Suscrito/a",null,!0,!1,l.BQ,l.subscribed,"channel_avatar",null,R.api,!0);R.api.createServerVe(y.element,R);var f;R.api.setTrackingParams(y.element,((f=l.subscribeButtonRenderer)==null?void 0:f.trackingParams)||null);R.N(y.element,"click",function(){R.api.logClick(y.element)}); R.subscribeButton=y;g.U(R,R.subscribeButton);R.subscribeButton.JU(R.element)}}; ndQ=function(R){var l=R.api.U(),y=R.api.getVideoData();y=g.LU(l)+y.iQ;if(!g.kh(l))return y;l={};g.OW(R.api,"addEmbedsConversionTrackingParams",[l]);return g.L4(y,l)}; eR=function(R){g.q9.call(this,R,{T:"button",QL:["ytp-skip-intro-button","ytp-popup","ytp-button"],S:[{T:"div",j:"ytp-skip-intro-button-text",IE:"Omitir introducci\u00f3n"}]},100);var l=this;this.L=!1;this.Z=new g.Vg(function(){l.hide()},5E3); this.R2=this.ZW=NaN;g.U(this,this.Z);this.V=function(){l.show()}; this.D=function(){l.hide()}; this.Y=function(){var y=l.G.getCurrentTime();y>l.ZW/1E3&&y0?{T:"svg",K:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},S:[{T:"path",QL:["ytp-circle-arrow","ytp-svg-fill"],K:{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"}}, {T:"text",QL:["ytp-jump-button-text","ytp-svg-fill"],K:{x:"7.05",y:"15.05"}}]}:{T:"svg",K:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},S:[{T:"path",QL:["ytp-circle-arrow","ytp-svg-fill"],K:{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"}}, {T:"text",QL:["ytp-jump-button-text","ytp-svg-fill"],K:{x:"6.5",y:"15"}}]}]});var y=this;this.G=R;this.Z=l;this.X=new g.Vg(function(){y.L?(y.L=!1,y.X.start()):y.element.classList.remove("ytp-jump-spin","backwards")},250); this.L=!1;(l=l>0)?this.G.createClientVe(this.element,this,36843):this.G.createClientVe(this.element,this,36844);var f=g.KV(l?"Avanzar $SECONDS segundos (\u2192)":"Retroceder $SECONDS segundos (\u2190)",{SECONDS:Math.abs(this.Z).toString()});this.update({title:f,"data-title-no-tooltip":f,"aria-keyshortcuts":l?"\u2192":"\u2190"});this.Y=this.element.querySelector(".ytp-jump-button-text");this.Y.textContent=Math.abs(this.Z).toString();this.listen("click",this.onClick,this);vd(R,this.element,this)}; PYJ=function(R,l){l?R.element.classList.add("ytp-jump-button-enabled"):R.element.classList.remove("ytp-jump-button-enabled");R.G.logVisibility(R.element,l);R.G.mW()}; z4=function(R,l){Xx.call(this,R,l,"timedMarkerCueRange","Ver momentos clave");this.N(R,g.Cd("timedMarkerCueRange"),this.J1);this.N(R,"updatemarkervisibility",this.updateVideoData)}; umk=function(R){var l,y=(l=R.G.getVideoData())==null?void 0:l.W1;if(y)for(R=R.Y.UL,y=g.u(y),l=y.next();!l.done;l=y.next())if(l=R[l.value]){var f=void 0,A=void 0,K=void 0;if(((f=l.onTap)==null?void 0:(A=f.innertubeCommand)==null?void 0:(K=A.changeEngagementPanelVisibilityAction)==null?void 0:K.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return l}}; wv=function(R){var l=R.C("web_enable_pip_on_miniplayer");g.Z.call(this,{T:"button",QL:["ytp-miniplayer-button","ytp-button"],K:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},S:["{{icon}}"]});this.G=R;this.visible=!1;this.listen("click",this.onClick);this.N(R,"fullscreentoggled",this.oE);this.updateValue("title",g.zv(R,"Reproductor en miniatura","i"));this.update({"data-title-no-tooltip":"Reproductor en miniatura", icon:this.G.C("delhi_modern_web_player_icons")?{T:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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"}}]}:l?{T:"svg",K:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},S:[{T:"g",K:{transform:"translate(96, -96) scale(0.8)"},S:[{T:"path",wm:!0,K:{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"}}]}]}:XW9()});vd(R,this.element,this);R.createClientVe(this.element,this,62946);this.oE()}; xB=function(R,l,y,f,A,K){K=K===void 0?!1:K;var G={T:"div",QL:["ytp-input-slider-section"],S:[{T:"input",j:"ytp-input-slider",K:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};A&&G.S.unshift(A);K&&G.QL.push("ytp-vertical-slider");g.Z.call(this,G);this.Y=R;this.D=l;this.W=y;this.initialValue=f;this.header=A;this.X=this.pX("ytp-input-slider");this.Z=f?f:R;this.init();this.N(this.X,"input",this.L);this.N(this.X,"keydown", this.V)}; Ip=function(R,l){R.Z=l;R.updateValue("slidervalue",R.Z);R.X.valueAsNumber=R.Z;F3T(R,l)}; F3T=function(R,l){R.X.style.setProperty("--yt-slider-shape-gradient-percent",(l-R.Y)/(R.D-R.Y)*100+"%")}; Nf=function(R){var l=R.isMuted()?0:R.getVolume();xB.call(this,0,100,1,l,void 0,!0);this.G=R;this.LX=xb(this.xb,10,this);this.B=!1;this.N(R,"onVolumeChange",this.onVolumeChange);this.N(this.element,"wheel",this.Yb)}; Q6s=function(R,l){g.Z.call(this,{T:"div",K:{tabindex:"0",title:"Volumen","data-tooltip-offset-y":"-120"},QL:["ytp-volume-popover"]});var y=this;this.isVisible=!1;this.tooltip=l.oz();this.X=new Nf(R);g.U(this,this.X);this.X.JU(this.element);this.Z=new g.Vg(function(){p5(y,!1)},300); this.listen("mouseenter",function(){y.Z.stop()}); this.listen("mouseleave",function(){y.Z.start()}); this.listen("focus",function(){y.Z.stop()}); this.N(this.X.X,"focus",function(){y.Z.stop()}); this.listen("blur",function(){y.Z.start()}); this.addOnDisposeCallback(g.rn(l.oz(),this.element));g.U(this,this.Z)}; p5=function(R,l){R.element.classList.toggle("ytp-volume-popover-hovering",l);R.isVisible=l}; Uy=function(R,l,y){y=y===void 0?!1:y;g.Z.call(this,{T:"button",QL:["ytp-mute-button","ytp-button"],K:R.U().P1?{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"},S:[{T:"div",j:"ytp-volume-icon",IE:"{{icon}}"}]});var f=this;this.G=R;this.CX=y;this.X=null;this.V=this.xb=this.B=this.W=NaN;this.sL=this.LX=null;this.D=[];this.Y= [];this.visible=!1;this.L=this.Z=this.Yb=null;R.C("delhi_modern_web_player")&&this.update({"data-priority":4});y=this.G.U();this.updateValue("icon",Xa());this.tooltip=l.oz();this.updateValue("dataTooltipOffsetY",0);this.L=g.aA("ytp-volume-icon",this.element);var A=this.G.C("delhi_modern_web_player_icons")?{T:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",QL:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],K:{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"}},{T:"path",j:"ytp-svg-volume-animation-small-ripple",K:{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"}},{T:"path",j:"ytp-svg-volume-animation-big-ripple",K:{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"}}]}:{T:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{T:"defs",S:[{T:"clipPath",K:{id:"ytp-svg-volume-animation-mask"},S:[{T:"path",K:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{T:"path",K:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{T:"path",j:"ytp-svg-volume-animation-mover",K:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{T:"clipPath",K:{id:"ytp-svg-volume-animation-slash-mask"},S:[{T:"path",j:"ytp-svg-volume-animation-mover", K:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{T:"path",wm:!0,QL:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],K:{"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"}},{T:"path",wm:!0,QL:["ytp-svg-fill","ytp-svg-volume-animation-hider"],K:{"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.X=new g.GG(A);g.U(this,this.X);this.LX=this.X.pX("ytp-svg-volume-animation-speaker");this.sL=this.LX.getAttribute("d");this.D=g.KS("ytp-svg-volume-animation-mover",this.X.element);this.G.C("delhi_modern_web_player_icons");this.Y=g.KS("ytp-svg-volume-animation-hider",this.X.element);this.G.C("delhi_modern_web_player_icons");this.P1=new M4;g.U(this,this.P1);this.Dq=new M4;g.U(this,this.Dq);this.N(R,"appresize",this.j3);this.N(R,"onVolumeChange",this.onVolumeChange);R.C("delhi_modern_web_player")? this.listen("click",this.R0U):this.listen("click",this.RW);y.P1?(R.C("delhi_modern_web_player")&&(this.Z=new Q6s(R,l),this.Z.JU(this.element),g.U(this,this.Z),this.N(this.L,"mouseover",function(){if(!f.G.gt()){f.updateValue("dataTooltipOffsetY",-120);var K;(K=f.Z)!=null&&p5(K,!0);var G;(G=f.Z)!=null&&G.Z.stop()}}),this.N(this.L,"mouseout",function(){var K; (K=f.Z)!=null&&K.Z.start()})),this.addOnDisposeCallback(g.rn(l.oz(),this.element))):$xZ(this); this.message=null;R.createClientVe(this.element,this,28662);this.j3(R.lQ().getPlayerSize());this.setVolume(R.getVolume(),R.isMuted())}; eVJ=function(R,l){if(R.G.U().P1){var y=g.zv(R.G,"Silenciar","m"),f=g.zv(R.G,"Activar sonido","m");R.updateValue("title",l?f:y);R.update({"data-title-no-tooltip":l?"Activar sonido":"Silenciar"});R.tooltip.mW()}}; TW7=function(R,l){R.W=l;var y=R.sL;R.G.C("delhi_modern_web_player_icons")?R.X.pX("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(l+") translate(-22,-12)")):l&&(y+=S8o(b7o,X7s,l));R.LX.setAttribute("d",y)}; dxo=function(R,l){var y;l===1?y=R.G.C("delhi_modern_web_player_icons")?{T:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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"}}]}:Xa():y=R.X;R.xb=l;if(R.G.C("delhi_modern_web_player_icons"))R.X.pX("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-l+") translate(-18,-12)")),R.X.pX("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(R.W-l+") translate(-22, -12)"));else{for(var f=20*l,A=0;A=3&&R.G.getPresentingPlayerType()!==2}; IM7=function(R){var l=N9(R.G.Il());return l?R.Z?l.Vl():l.ip():!1}; zVo=function(R){var l={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},y=R.playlist!=null&&R.playlist.Vl();y=g.pM(R.G)&&(!R.Z||y);var f=R.Z&&g.DN(R.G),A=IM7(R),K=R.Z&&R.G.getPresentingPlayerType()===5,G=g.zv(R.G,"Siguiente","SHIFT+n"),B=g.zv(R.G,"Anterior","SHIFT+p");if(K)l.title="Iniciar video";else if(R.L)l.title="Volver a reproducir";else if(y){var H=null;R.playlist&&(H=g.iR(R.playlist,R.Z?bPs(R.playlist):Xas(R.playlist)));if(H){if(H.videoId){var n= R.playlist.listId;l.url=R.G.U().getVideoUrl(H.videoId,n?n.toString():void 0)}l.text=H.title;l.duration=H.lengthText?H.lengthText:H.lengthSeconds?g.ut(H.lengthSeconds):null;l.preview=H.I9("mqdefault.jpg")}R.Z?(l.title=G,l["data-title-no-tooltip"]="Siguiente",l["aria-keyshortcuts"]="SHIFT+n"):(l.title=B,l["data-title-no-tooltip"]="Anterior",l["aria-keyshortcuts"]="SHIFT+p")}else if(f){if(B=(H=R.videoData)==null?void 0:g.oY(H))l.url=B.v6(),l.text=B.title,l.duration=B.lengthText?B.lengthText:B.lengthSeconds? g.ut(B.lengthSeconds):null,l.preview=B.I9("mqdefault.jpg");l.title=G;l["data-title-no-tooltip"]="Siguiente";l["aria-keyshortcuts"]="SHIFT+n"}l.disabled=!f&&!y&&!A&&!K;R.update(l);R.V=!!l.url;f||y||R.L||A||K?R.X||(R.X=g.rn(R.tooltip,R.element),R.D=R.listen("click",R.onClick,R)):R.X&&(R.X(),R.X=null,R.p_(R.D),R.D=null);R.tooltip.mW();g.BJ(R.element,"ytp-playlist-ui",R.Z&&(y||R.G.C("web_hide_next_button")))}; vdT=function(R,l){return R?l?{T:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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"}}]}:i1():l?{T:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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"}}]}:rDi()}; p77=function(R,l){g.Z.call(this,{T:"div",j:"ytp-fine-scrubbing",S:[{T:"div",j:"ytp-fine-scrubbing-draggable",S:[{T:"div",j:"ytp-fine-scrubbing-thumbnails",K:{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}}"}}]},{T:"div",K:{"aria-hidden":"true"},j:"ytp-fine-scrubbing-cursor"},{T:"div", j:"ytp-fine-scrubbing-seek-time",K:{"aria-hidden":"true"},IE:"{{seekTime}}"},{T:"div",j:"ytp-fine-scrubbing-play",S:[R.C("delhi_modern_web_player_icons")?QN():Fa()],K:{title:"Reproducir desde este momento",role:"button"}},{T:"div",j:"ytp-fine-scrubbing-dismiss",S:[g.WB()],K:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});var y=this;this.api=R;this.D=this.pX("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.pX("ytp-fine-scrubbing-dismiss");this.xb=this.pX("ytp-fine-scrubbing-draggable"); this.playButton=this.pX("ytp-fine-scrubbing-play");this.thumbnails=[];this.X=[];this.CX=this.Z=0;this.P1=void 0;this.LX=NaN;this.v1=this.B=this.L=this.W=0;this.Y=[];this.interval=this.frameCount=0;this.V=160;this.scale=1;this.jS=0;this.isEnabled=this.sL=!1;NWZ(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.rn(l,this.dismissButton));this.addOnDisposeCallback(g.rn(l,this.playButton));this.Dq=new g.SB(this.xb,!0);this.Dq.subscribe("dragstart",this.zj,this);this.Dq.subscribe("dragmove",this.jH, this);this.Dq.subscribe("dragend",this.K5,this);this.N(R,"SEEK_COMPLETE",this.cw);R.C("web_fix_fine_scrubbing_false_play")&&this.N(R,"rootnodemousedown",function(f){y.Yb=f}); this.D.addEventListener("keydown",function(){}); g.U(this,this.Dq);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.D,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; NWZ=function(R,l){var y=g.ut(l),f=g.KV("Saltar a: $PROGRESS",{PROGRESS:g.ut(l,!0)});R.update({ariamin:0,ariamax:Math.floor(R.api.getDuration()),arianow:Math.floor(l),arianowtext:f,seekTime:y})}; Ux9=function(R){R.LX=NaN;R.B=0;R.W=R.L}; kiY=function(R){var l=R.api.Tg();if(l){var y=90*R.scale,f=tn(l,160*R.scale);if(l=l.levels[f]){R.V=l.width;if(!R.Y.length){f=[];for(var A=Y6(l,l.oH()),K=l.columns*l.rows,G=l.frameCount,B=0;B<=A;B++)for(var H=GR.Y.length;)f= void 0,(f=R.thumbnails.pop())==null||f.dispose();for(;R.thumbnails.lengthy.length;)f=void 0,(f=R.X.pop())==null||f.dispose(); for(;R.X.length-y?-l/y*R.interval*.5:-(l+y/2)/y*R.interval}; Dxs=function(R){return-((R.D.offsetWidth||(R.frameCount-1)*R.V*R.scale)-R.Z/2)}; Skk=function(){g.Z.call(this,{T:"div",j:"ytp-fine-scrubbing-thumbnail"})}; j6j=function(){g.Z.call(this,{T:"div",j:"ytp-fine-scrubbing-chapter-title",S:[{T:"div",j:"ytp-fine-scrubbing-chapter-title-content",IE:"{{chapterTitle}}"}]})}; J89=function(R){g.Z.call(this,{T:"div",j:"ytp-heat-map-chapter",S:[{T:"svg",j:"ytp-heat-map-svg",K:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},S:[{T:"defs",S:[{T:"clipPath",K:{id:"{{id}}"},S:[{T:"path",j:"ytp-heat-map-path",K:{d:"",fill:"white"}}]},{T:"linearGradient",K:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},S:[{T:"stop",K:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{T:"stop",K:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{T:"rect",j:"ytp-heat-map-graph",K:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{T:"rect",j:"ytp-heat-map-hover",K:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{T:"rect",j:"ytp-heat-map-play",K:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{T:"path",j:"ytp-modern-heat-map",K:{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=R;this.W=this.pX("ytp-heat-map-svg");this.D=this.pX("ytp-heat-map-path");this.Y=this.pX("ytp-heat-map-graph");this.V=this.pX("ytp-heat-map-play");this.Z=this.pX("ytp-heat-map-hover");this.L=this.pX("ytp-modern-heat-map");this.Nl=!1;this.X=60;R=""+g.s5(this);this.update({id:R});R="url(#"+R+")";this.Y.setAttribute("clip-path",R);this.V.setAttribute("clip-path",R);this.Z.setAttribute("clip-path", R)}; gdk=function(R,l){l>0&&(R.X=l,R.W.style.height=R.X+"px")}; DW=function(){g.Z.call(this,{T:"div",j:"ytp-chapter-hover-container",S:[{T:"div",j:"ytp-progress-bar-padding"},{T:"div",j:"ytp-progress-list",S:[{T:"div",QL:["ytp-play-progress","ytp-swatch-background-color"]},{T:"div",j:"ytp-progress-linear-live-buffer"},{T:"div",j:"ytp-load-progress"},{T:"div",j:"ytp-hover-progress"},{T:"div",j:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.X=this.pX("ytp-progress-list");this.D=this.pX("ytp-progress-linear-live-buffer"); this.Y=this.pX("ytp-ad-progress-list");this.V=this.pX("ytp-load-progress");this.W=this.pX("ytp-play-progress");this.L=this.pX("ytp-hover-progress");this.Z=this.pX("ytp-chapter-hover-container")}; ZW=function(R,l){g.Df(R.Z,"width",l)}; V$9=function(R,l){g.Df(R.Z,"margin-right",l+"px")}; CYc=function(){this.X=this.position=this.L=this.Z=this.Y=this.width=NaN}; qkq=function(){g.Z.call(this,{T:"div",j:"ytp-timed-marker"});this.Z=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.gv=function(R,l){g.BB.call(this,{T:"div",j:"ytp-progress-bar-container",K:{"aria-disabled":"true"},S:[{T:"div",QL:["ytp-heat-map-container"],S:[{T:"div",j:"ytp-heat-map-edu"}]},{T:"div",QL:["ytp-progress-bar"],K:{tabindex:"0",role:"slider","aria-label":"Control deslizante de b\u00fasqueda","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},S:[{T:"div",j:"ytp-chapters-container"},{T:"div",j:"ytp-timed-markers-container"}, {T:"div",j:"ytp-clip-start-exclude"},{T:"div",j:"ytp-clip-end-exclude"},{T:"div",j:"ytp-scrubber-container",S:[{T:"div",QL:["ytp-scrubber-button","ytp-swatch-background-color"],S:[{T:"div",j:"ytp-scrubber-pull-indicator"},{T:"img",QL:["ytp-decorated-scrubber-button"]}]}]}]},{T:"div",QL:["ytp-fine-scrubbing-container"],S:[{T:"div",j:"ytp-fine-scrubbing-edu"}]},{T:"div",j:"ytp-bound-time-left",IE:"{{boundTimeLeft}}"},{T:"div",j:"ytp-bound-time-right",IE:"{{boundTimeRight}}"},{T:"div",j:"ytp-clip-start", K:{title:"{{clipstarttitle}}"},IE:"{{clipstarticon}}"},{T:"div",j:"ytp-clip-end",K:{title:"{{clipendtitle}}"},IE:"{{clipendicon}}"}]});this.api=R;this.BA=!1;this.Qq=this.pw=this.W1=this.D=this.aJ=0;this.CJ=null;this.R2=!1;this.jS={};this.OF={};this.clipEnd=Infinity;this.vZ=this.pX("ytp-clip-end");this.Vu=new g.SB(this.vZ,!0);this.f_=this.pX("ytp-clip-end-exclude");this.Ms=this.pX("ytp-clip-start-exclude");this.clipStart=0;this.ol=this.pX("ytp-clip-start");this.Qb=new g.SB(this.ol,!0);this.LX=this.ZL= 0;this.progressBar=this.pX("ytp-progress-bar");this.sF={};this.UL={};this.uQ=this.pX("ytp-chapters-container");this.ZW=this.pX("ytp-timed-markers-container");this.Z=[];this.V=[];this.FR={};this.o9=null;this.sL=-1;this.LA=this.P1=0;this.TD=this.W=null;this.NW=this.pX("ytp-scrubber-button");this.xb=this.pX("ytp-decorated-scrubber-button");this.jo=this.pX("ytp-scrubber-container");this.iQ=new g.Do;this.RV=0;this.zL=new CYc;this.L=new ri(0,0);this.bb=null;this.B=this.HA=!1;this.AJ=null;this.Yb=this.pX("ytp-heat-map-container"); this.lj=this.pX("ytp-heat-map-edu");this.Y=[];this.heatMarkersDecorations=[];this.B1=this.pX("ytp-fine-scrubbing-container");this.US=this.pX("ytp-fine-scrubbing-edu");this.X=void 0;this.CX=this.J7=this.v1=!1;this.tooltip=l.oz();this.addOnDisposeCallback(g.rn(this.tooltip,this.vZ));g.U(this,this.Vu);this.Vu.subscribe("hoverstart",this.f1,this);this.Vu.subscribe("hoverend",this.n1,this);this.N(this.vZ,"click",this.Fa);this.addOnDisposeCallback(g.rn(this.tooltip,this.ol));g.U(this,this.Qb);this.Qb.subscribe("hoverstart", this.f1,this);this.Qb.subscribe("hoverend",this.n1,this);this.N(this.ol,"click",this.Fa);t$T(this);this.N(R,"resize",this.ub);this.N(R,"presentingplayerstatechange",this.WD);this.N(R,"videodatachange",this.f7);this.N(R,"videoplayerreset",this.d5);this.N(R,"cuerangesadded",this.kfL);this.N(R,"cuerangesremoved",this.pAX);this.N(R,"onLoopRangeChange",this.ou);this.N(R,"innertubeCommand",this.onClickCommand);this.N(R,"onRetroModeChanged",this.dsL);this.N(R,g.Vx("timedMarkerCueRange"),this.azE);this.N(R, "updatemarkervisibility",this.On);this.N(R,"serverstitchedvideochange",this.SYL);this.updateVideoData(R.getVideoData(),!0);this.ou(R.getLoopRange());Jj(this)&&!this.X&&(this.X=new p77(this.api,this.tooltip),R=g.Yb(this.element).x||0,this.X.ub(R,this.D),this.X.JU(this.B1),g.U(this,this.X),this.N(this.X.dismissButton,"click",this.Dr),this.N(this.X.playButton,"click",this.Qy),this.N(this.X.element,"dblclick",this.Qy));this.api.createClientVe(this.Yb,this,139609,!0);this.api.createClientVe(this.lj,this, 140127,!0);this.api.createClientVe(this.US,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; t$T=function(R){if(R.Z.length===0){var l=new DW;R.Z.push(l);g.U(R,l);l.JU(R.uQ,0)}for(;R.Z.length>1;)R.Z.pop().dispose();ZW(R.Z[0],"100%");R.Z[0].startTime=0;R.Z[0].title=""}; Yks=function(R){var l=l===void 0?NaN:l;var y=new J89(R.api);R.Y.push(y);g.U(R,y);y.JU(R.Yb);l>=0&&(y.element.style.width=l+"px")}; M$i=function(R){for(;R.V.length;)R.V.pop().dispose()}; l29=function(R){var l,y,f,A,K;return(K=g.k((A=g.k((l=R.getWatchNextResponse())==null?void 0:(y=l.playerOverlays)==null?void 0:(f=y.playerOverlayRenderer)==null?void 0:f.decoratedPlayerBarRenderer,Su))==null?void 0:A.playerBar,R8r))==null?void 0:K.chapters}; yrZ=function(R){for(var l=R.Z,y=[],f=0;f=G&&Q<=m&&K.push(c)}H>0&&(R.Yb.style.height=H+"px");G=R.Y[f];m=K;c=A;W=H;Q=f===0;Q=Q===void 0?!1:Q;gdk(G,W);h=m;E=G.X;Q=Q===void 0?!1:Q;var e=1E3/h.length,r=[];r.push({x:0,y:100});for(var d=0;d0&&(y=K[K.length-1])}g.VA(R);B=[];l=g.u(l.heatMarkersDecorations||[]);for(A=l.next();!A.done;A=l.next())if(A=g.k(A.value,BYo))H=A.label,f=y=n=void 0,B.push({visibleTimeRangeStartMillis:(n=A.visibleTimeRangeStartMillis)!=null?n:-1,visibleTimeRangeEndMillis:(y=A.visibleTimeRangeEndMillis)!=null?y:-1,decorationTimeMillis:(f=A.decorationTimeMillis)!=null?f:NaN,label:H?g.mF(H):""});R.heatMarkersDecorations=B}}; KMY=function(R,l){R.V.push(l);g.U(R,l);l.JU(R.ZW,R.ZW.children.length)}; G7J=function(R,l){l=g.u(l);for(var y=l.next();!y.done;y=l.next()){y=y.value;var f=C5(R,y.timeRangeStartMillis/(R.L.Z*1E3),qf(R)),A=R.api.C("delhi_modern_web_player")?.667:.6;g.Df(y.element,"transform","translateX("+f+"px) scaleX("+A+")")}}; f29=function(R,l){var y=0,f=!1;l=g.u(l);for(var A=l.next();!A.done;A=l.next()){A=A.value;if(g.k(A,n37)){A=g.k(A,n37);var K={startTime:NaN,title:null,onActiveCommand:void 0},G=A.title;K.title=G?g.mF(G):"";G=A.timeRangeStartMillis;G!=null&&(K.startTime=G);K.onActiveCommand=A.onActiveCommand;A=K;y===0&&A.startTime!==0&&(R.Z[y].startTime=0,R.Z[y].title="",R.Z[y].onActiveCommand=A.onActiveCommand,y++,f=!0);R.Z.length<=y&&(K=new DW,R.Z.push(K),g.U(R,K),K.JU(R.uQ,R.uQ.children.length));R.Z[y].startTime= A.startTime;R.Z[y].title=A.title?A.title:"";R.Z[y].onActiveCommand=A.onActiveCommand;R.Z[y].index=f?y-1:y}y++}for(;y=0;f--)if(R.Z[f].width>0){V$9(R.Z[f],0);var A=Math.floor(R.Z[f].width);R.Z[f].width=A;ZW(R.Z[f],A+"px");break}R.Z[y].width=0;ZW(R.Z[y],"0")}else y===R.Z.length-1?(f=Math.floor(R.Z[y].width+l),R.Z[y].width=f,ZW(R.Z[y],f+"px")):(l=R.Z[y].width+l,f=Math.round(l),l-=f,R.Z[y].width=f,ZW(R.Z[y],f+"px"));y=0;if(R.Y.length===R.Z.length)for(l=0;l< R.Y.length;l++)f=R.Z[l].width,R.Y[l].element.style.width=f+"px",R.Y[l].element.style.left=y+"px",y+=f+YB(R);R.api.C("delhi_modern_web_player")&&(R.Z.length===1?R.Z[0].X.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(R.Z[0].X.classList.remove("ytp-progress-bar-end"),R.Z[0].X.classList.add("ytp-progress-bar-start"),R.Z[R.Z.length-1].X.classList.add("ytp-progress-bar-end")))}; maJ=function(R,l){var y=0,f=!1,A=R.Z.length,K=R.L.Z*1E3;K===0&&(K=R.api.getProgressState().seekableEnd*1E3);if(K>0&&R.D>0){for(var G=R.D-YB(R)*R.P1,B=R.LA===0?3:G*R.LA,H=g.u(R.Z),n=H.next();!n.done;n=H.next())n.value.width=0;for(;y1);n=(K===0?0:H/K*G)+R.Z[y].width;if(n>B)R.Z[y].width=n;else{R.Z[y].width=0;var m=R,h=y,c=m.Z[h-1];c!==void 0&&c.width>0? c.width+=n:hR.LA&&(R.LA=H/K),f=!0)}y++}}return f}; tj=function(R){if(R.D){var l=R.api.getProgressState(),y=R.api.getVideoData();if(!(y&&y.enableServerStitchedDai&&y.vv)||isFinite(l.current)){var f;if(((f=R.api.getVideoData())==null?0:sW(f))&&l.airingStart&&l.airingEnd)var A=Mf(R,l.airingStart,l.airingEnd);else if(R.api.getPresentingPlayerType()===2){var K,G,B;A=(y=(A=R.api.getVideoData())==null?void 0:(K=A.getPlayerResponse())==null?void 0:(G=K.playerConfig)==null?void 0:(B=G.webPlayerConfig)==null?void 0:B.skippableAdProgressBarDuration)?Mf(R,l.seekableStart, y/1E3):Mf(R,l.seekableStart,l.seekableEnd)}else A=Mf(R,l.seekableStart,l.seekableEnd);K=vR(A,l.loaded,0);l=vR(A,l.current,0);G=R.L.X!==A.X||R.L.Z!==A.Z;R.L=A;R9(R,l,K);G&&o3T(R);h8Q(R)}}}; Mf=function(R,l,y){return crZ(R)?new ri(Math.max(l,R.bb.startTimeMs/1E3),Math.min(y,R.bb.endTimeMs/1E3)):new ri(l,y)}; WMi=function(R,l){var y,f,A;l=g.k((y=l.getWatchNextResponse())==null?void 0:(f=y.playerOverlays)==null?void 0:(A=f.playerOverlayRenderer)==null?void 0:A.decoratedPlayerBarRenderer,Su);if(l==null?0:l.progressColor)for(y=0;y1){y=le(R,l.L,!0);for(var f=0,A=0;A0&&(f+=R.Z[A].width,f+=YB(R));y=(R.Z[y].startTime+(l.L-f)/R.Z[y].width*((y===R.Z.length-1?R.L.Z*1E3:R.Z[y+1].startTime)-R.Z[y].startTime))/1E3||0}return y}; fQ=function(R,l,y,f,A){l=l<0?0:Math.floor(Math.min(l,R.api.getDuration())*1E3);y=y<0?0:Math.floor(Math.min(y,R.api.getDuration())*1E3);R=R.progressBar.visualElement;f={seekData:{startMediaTimeMs:l,endMediaTimeMs:y,seekSource:f}};(l=g.Py())&&g.qM(Vv)(void 0,l,R,A,f,void 0)}; Ofk=function(R,l,y){if(y>=R.Z.length)return!1;var f=R.D-YB(R)*R.P1;return Math.abs(l-R.Z[y].startTime/1E3)/R.L.Z*f<4}; o3T=function(R){R.NW.style.removeProperty("height");for(var l=g.u(Object.keys(R.jS)),y=l.next();!y.done;y=l.next())ifr(R,y.value);AX(R);R9(R,R.LX,R.ZL)}; qf=function(R){var l=R.iQ.x;l=g.Sq(l,0,R.D);R.zL.update(l,R.D);return R.zL}; G1=function(R){return(R.B?135:90)-KQ(R)}; KQ=function(R){var l=48,y=R.api.U();R.api.C("delhi_modern_web_player")?l=R.B?96:68:R.B?l=54:g.kh(y)&&!y.X&&(l=40);return l}; R9=function(R,l,y){R.LX=l;R.ZL=y;var f=qf(R),A=R.L.Z,K=nRk(R.L,R.LX),G=g.KV("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.ut(K,!0),DURATION:g.ut(A,!0)}),B=n5(R.Z,K*1E3);B=R.Z[B].title;R.update({ariamin:Math.floor(R.L.X),ariamax:Math.floor(A),arianow:Math.floor(K),arianowtext:B?B+" "+G:G});A=R.clipStart;K=R.clipEnd;R.bb&&R.api.getPresentingPlayerType()!==2&&(A=R.bb.startTimeMs/1E3,K=R.bb.endTimeMs/1E3);A=vR(R.L,A,0);B=vR(R.L,K,1);G=R.api.getVideoData();K=g.Sq(l,A,B);y=(G==null?0:g.KM(G))?1:g.Sq(y, A,B);l=C5(R,l,f);g.Df(R.jo,"transform","translateX("+l+"px)");R.api.C("delhi_modern_web_player")&&R.api.C("delhi_modern_web_player_cutout")&&P9J(R,l);a9(R,f,A,K,"PLAY_PROGRESS");(G==null?0:sW(G))?(l=R.api.getProgressState().seekableEnd)&&a9(R,f,K,vR(R.L,l),"LIVE_BUFFER"):a9(R,f,A,y,"LOAD_PROGRESS");if(R.api.C("web_player_heat_map_played_bar")){var H;(H=R.Y[0])!=null&&H.V.setAttribute("width",(K*100).toFixed(2)+"%")}}; P9J=function(R,l){R.api.getPresentingPlayerType()!==1?R.uQ.style.removeProperty("clip-path"):(l||(l=C5(R,R.LX,qf(R))),R.uQ.style.clipPath='path("'+(R.R2?ulr(R,8,l,R.B?50:36,0,6):ulr(R,4,l,R.B?34:24,2,3))+'")')}; ulr=function(R,l,y,f,A,K){var G=y-f/2;y+=f/2;l+=A;return"M 0 "+A+" L 0 "+(l+" L ")+(G+" "+l+" C ")+(G+K+" "+l+" "+(G+K)+" "+A+" "+G+" "+A+" L 0 ")+(A+" M ")+(y+" "+A+" L ")+(R.D+" "+A+" L ")+(R.D+" "+l+" L ")+(y+" "+l+" C ")+(y-K+" "+l+" "+(y-K)+" "+A+" "+y+" "+A)}; a9=function(R,l,y,f,A){var K=R.Z.length,G=l.Z-R.P1*YB(R),B=y*G;y=le(R,B);var H=f*G;G=le(R,H);A==="HOVER_PROGRESS"&&(G=le(R,l.Z*f,!0),H=l.Z*f-FMY(R,l.Z*f)*YB(R));f=Math.max(B-QHZ(R,y),0);for(B=y;B=R.Z.length)return R.D;for(var y=0,f=0;f0||R.f_.clientWidth>0?(K=l.clientWidth/y,R=-1*R.Ms.clientWidth/y):(K/=y,R=-1*R.Z[A].element.offsetLeft/y),g.Df(l,"background-size",K+"px"),g.Df(l,"background-position-x",R+"px"))}; s8=function(R,l,y,f,A){A||R.api.U().X?l.style.width=y+"px":g.Df(l,"transform","scalex("+(f?y/f:0)+")")}; le=function(R,l,y){var f=0;(y===void 0?0:y)&&(l-=FMY(R,l)*YB(R));y=g.u(R.Z);for(var A=y.next();!A.done;A=y.next()){A=A.value;if(l>A.width)l-=A.width;else break;f++}return f===R.Z.length?f-1:f}; C5=function(R,l,y){var f=l*R.L.Z*1E3;for(var A=-1,K=g.u(R.Z),G=K.next();!G.done;G=K.next())G=G.value,f>G.startTime&&G.width>0&&A++;f=A<0?0:A;A=y.Z-YB(R)*R.P1;return l*A+YB(R)*f+y.Y}; FMY=function(R,l){for(var y=R.Z.length,f=0,A=g.u(R.Z),K=A.next();!K.done;K=A.next())if(K=K.value,K.width!==0)if(l>K.width)l-=K.width,l-=YB(R),f++;else break;return f===y?y-1:f}; g.bfj=function(R,l,y,f){var A=R.D!==y,K=R.B!==f;R.aJ=l;R.D=y;R.B=f;Jj(R)&&(l=R.X)!=null&&(l.scale=f?1.5:1);o3T(R);R.Z.length===1&&(R.Z[0].width=y||0);A&&g.VA(R);R.X&&K&&Jj(R)&&(R.X.isEnabled&&(y=R.B?135:90,f=y-KQ(R),R.B1.style.height=y+"px",g.Df(R.Yb,"transform","translateY("+-f+"px)"),g.Df(R.progressBar,"transform","translateY("+-f+"px)")),kiY(R.X))}; AX=function(R){var l=!!R.bb&&R.api.getPresentingPlayerType()!==2,y=R.clipStart,f=R.clipEnd,A=!0,K=!0;l&&R.bb?(y=R.bb.startTimeMs/1E3,f=R.bb.endTimeMs/1E3):(A=y>R.L.X,K=R.L.Z>0&&fR.LX);g.BJ(R.NW,"ytp-scrubber-button-hover",y===f&&R.Z.length>1);if(R.api.C("web_player_heat_map_played_bar")){var K;(K=R.Y[0])!=null&&K.Z.setAttribute("width",(l.X*100).toFixed(2)+"%")}}}; ifr=function(R,l){var y=R.jS[l];l=R.OF[l];var f=qf(R),A=vR(R.L,y.start/1E3,0),K=FpZ(y,R.B)/f.width;var G=vR(R.L,y.end/1E3,1);K!==Number.POSITIVE_INFINITY&&(A=g.Sq(A,0,G-K));G=Math.min(G,A+K);y.color&&(l.style.background=y.color);y=A;l.style.left=Math.max(y*f.Z+f.Y,0)+"px";s8(R,l,g.Sq((G-y)*f.Z+f.Y,0,f.width),f.width,!0)}; XcQ=function(R,l){var y=l.getId();R.jS[y]===l&&(g.Ot(R.OF[y]),delete R.jS[y],delete R.OF[y])}; Jj=function(R){var l=g.Hm(R.api.U())&&(R.api.C("web_shorts_pip")||R.api.C("web_watch_pip")),y;return!((y=R.api.getVideoData())==null?0:y.isLivePlayback)&&!R.api.isMinimized()&&!R.api.isInline()&&(!R.api.B0()||!l)}; Bw=function(R){R.X&&(R.X.disable(),R.W1=0,R.Yb.style.removeProperty("transform"),R.progressBar.style.removeProperty("transform"),R.B1.style.removeProperty("height"),R.element.parentElement&&R.element.parentElement.style.removeProperty("height"))}; TYc=function(R,l){var y=l/G1(R)*KQ(R);g.Df(R.progressBar,"transform","translateY("+-l+"px)");g.Df(R.Yb,"transform","translateY("+-l+"px)");g.Df(R.B1,"transform","translateY("+y+"px)");R.B1.style.height=l+y+"px";R.element.parentElement&&(R.element.parentElement.style.height=KQ(R)-y+"px")}; dak=function(R,l){l?R.W||(R.element.removeAttribute("aria-disabled"),R.W=new g.SB(R.progressBar,!0),R.api.C("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&R.W.subscribe("hoverstart",R.b_E,R),R.W.subscribe("hovermove",R.DsL,R),R.W.subscribe("hoverend",R.sV1,R),R.W.subscribe("dragstart",R.y1x,R),R.W.subscribe("dragmove",R.REU,R),R.W.subscribe("dragend",R.J11,R),R.api&&R.api.C("delhi_modern_web_player")&&R.api.C("delhi_modern_web_player_cutout")&&(R.TD=new g.SB(R.progressBar, !0),R.TD.subscribe("hoverstart",function(){R.R2=!0;P9J(R)},R),R.TD.subscribe("hoverend",function(){R.R2=!1; P9J(R)},R)),R.AJ=R.listen("keydown",R.uw)):R.W&&(R.element.setAttribute("aria-disabled","true"),R.p_(R.AJ),R.W.cancel(),R.W.dispose(),R.W=null)}; YB=function(R){return R.api.C("delhi_modern_web_player")?4:R.B?3:2}; crZ=function(R){var l;return!((l=R.bb)==null||!l.postId)&&R.api.getPresentingPlayerType()!==2}; Hw=function(R,l){g.Z.call(this,{T:"button",QL:["ytp-remote-button","ytp-button"],K:{title:"Reproducir en el televisor","aria-haspopup":"true","data-priority":"10"},IE:"{{icon}}"});this.G=R;this.Te=l;this.Z=null;this.N(R,"onMdxReceiversChange",this.oE);this.N(R,"presentingplayerstatechange",this.oE);this.N(R,"appresize",this.oE);R.createClientVe(this.element,this,139118);this.oE();this.listen("click",this.X,this);vd(R,this.element,this)}; nQ=function(R,l){g.Z.call(this,{T:"button",QL:["ytp-button","ytp-settings-button"],K:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":Ki(),title:"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},S:[R.C("delhi_modern_web_player_icons")?{T:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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.eW()]});this.G=R;this.Te=l;this.X=!0;this.listen("click",this.L);this.N(R,"onPlaybackQualityChange",this.updateBadge);this.N(R,"videodatachange",this.updateBadge);this.N(R,"webglsettingschanged",this.updateBadge);this.N(R,"appresize",this.Z);vd(R,this.element,this);this.G.createClientVe(this.element,this,28663);this.updateBadge();this.Z(R.lQ().getPlayerSize())}; rri=function(R,l){R.X=!!l;R.Z(R.G.lQ().getPlayerSize())}; mT=function(R,l){ox.call(this,"Anotaciones",g.il.yG);this.G=R;this.Te=l;this.Z=!1;R.C("web_settings_menu_icons")&&(l=R.C("delhi_modern_web_player_icons")?{T:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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"}}]}:{T:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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(l));this.N(R,"videodatachange",this.oE);this.N(R,"onApiChange",this.oE);this.subscribe("select",this.onSelect,this);this.oE()}; o9=function(R,l){g.N4.call(this,"Pista de audio",g.il.AUDIO,R,l);this.G=R;this.tracks={};g.AU(this.element,"ytp-audio-menu-item");this.countLabel=new g.Z({T:"div",S:[{T:"span",IE:"Pista de audio"},{T:"span",j:"ytp-menuitem-label-count",IE:"{{content}}"}]});R.C("web_settings_menu_icons")&&(l=R.C("delhi_modern_web_player_icons")?{T:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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"}}]}:bF9(),this.setIcon(l));g.U(this,this.countLabel);g.ll(this,this.countLabel);this.N(R,"videodatachange",this.oE);this.N(R,"onPlaybackAudioChange",this.oE);this.oE()}; hX=function(R,l){ox.call(this,"Reproducci\u00f3n autom\u00e1tica",g.il.QG);this.G=R;this.Te=l;this.Z=!1;this.L=[];this.N(R,"presentingplayerstatechange",this.X);this.subscribe("select",this.onSelect,this);R.createClientVe(this.element,this,113682);this.X()}; v3c=function(R,l){g.yu.call(this,g.fx({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.G=R;this.Te=l;this.N(this.element,"click",this.onClick);this.Te.sj(this)}; z87=function(R,l){var y;g.Hm(R.U())&&(y={T:"div",j:"ytp-panel-footer-content",S:[{T:"span",IE:"Ajusta la calidad de descarga en la "},{T:"a",j:"ytp-panel-footer-content-link",IE:"Configuraci\u00f3n",K:{href:"/account_downloads"}}]});g.N4.call(this,"Calidad",g.il.sD,R,l,void 0,void 0,y);this.G=R;this.xb={};this.B={};this.Y={};this.Dq=new Set;this.Z=this.D=!1;this.V="unknown";this.LX="";this.Yb=new g.kS;g.U(this,this.Yb);this.D=this.G.C("web_player_use_new_api_for_quality_pullback");this.Z=this.G.C("web_player_enable_premium_hbr_playback_cap"); R.C("web_settings_menu_icons")&&(l=R.C("delhi_modern_web_player_icons")?{T:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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"}}]}:{T:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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(l));g.AU(this.X.element,"ytp-quality-menu");this.N(R,"videodatachange",this.fD);this.N(R,"videoplayerreset",this.fD);this.N(R,"onPlaybackQualityChange",this.zV);this.fD();R.createClientVe(this.element,this,137721)}; xac=function(R,l,y){var f=R.xb[l],A=g.bz[l];return wcr(R,f?f.qualityLabel:A?A+"p":"Autom\u00e1tica",l,y)}; I2i=function(R,l,y,f,A){var K=(l=R.Z?R.Y[l]:R.B[l])&&l.quality,G=l&&l.qualityLabel;G=G?G:"Autom\u00e1tica";f&&(G="("+G);R=wcr(R,G,K||"",A);f&&R.S.push(")");(f=(f=l&&l.paygatedQualityDetails)&&f.paygatedIndicatorText)&&y&&R.S.push({T:"div",j:"ytp-premium-label",IE:f});return R}; wcr=function(R,l,y,f){l={T:"span",QL:f,S:[l]};var A;f="ytp-swatch-color";if(R.D||R.Z)f="ytp-swatch-color-white";y==="highres"?A="8K":y==="hd2880"?A="5K":y==="hd2160"?A="4K":y.indexOf("hd")===0&&y!=="hd720"&&(A="HD");A&&(l.S.push(" "),l.S.push({T:"sup",j:f,IE:A}));return l}; cw=function(R){xB.call(this,R.getAvailablePlaybackRates()[0],R.getAvailablePlaybackRates()[R.getAvailablePlaybackRates().length-1],.05,R.getPlaybackRate(),{T:"div",j:"ytp-speedslider-indicator-container",S:[{T:"div",j:"ytp-speedslider-badge"},{T:"p",j:"ytp-speedslider-text"}]});this.G=R;this.LX=xb(this.Yb,50,this);g.AU(this.X,"ytp-speedslider");this.B=this.pX("ytp-speedslider-text");this.Dq=this.pX("ytp-speedslider-badge");NY7(this);this.N(this.X,"change",this.xb)}; NY7=function(R){R.B.textContent=R.Z.toFixed(2)+"x";R.Dq.classList.toggle("ytp-speedslider-premium-badge",R.Z>2&&R.G.C("enable_web_premium_varispeed"))}; E8=function(R,l,y,f,A,K,G){g.Z.call(this,{T:"div",j:"ytp-slider-section",K:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},S:[{T:"div",j:"ytp-slider",S:[{T:"div",j:"ytp-slider-handle"}]}]});this.W=R;this.B=l;this.X=y;this.L=f;this.LX=A;this.sL=K;this.range=this.L-this.X;this.P1=this.pX("ytp-slider-section");this.Y=this.pX("ytp-slider");this.Yb=this.pX("ytp-slider-handle");this.V=new g.SB(this.Y, !0);this.Z=G?G:y;g.U(this,this.V);this.V.subscribe("dragmove",this.lw,this);this.N(this.element,"keydown",this.Hw);this.N(this.element,"wheel",this.SG);this.init()}; Ww=function(R){E8.call(this,.05,.05,R.getAvailablePlaybackRates()[0],R.getAvailablePlaybackRates()[R.getAvailablePlaybackRates().length-1],150,20,R.getPlaybackRate());this.G=R;this.D=g.ho("P");this.Dq=xb(this.xb,50,this);g.AU(this.Y,"ytp-speedslider");g.AU(this.D,"ytp-speedslider-text");R=this.D;var l=this.Y;l.parentNode&&l.parentNode.insertBefore(R,l.nextSibling);pcq(this);this.N(this.G,"onPlaybackRateChange",this.updateValues)}; pcq=function(R){R.D.textContent=UaZ(R,R.Z)+"x"}; UaZ=function(R,l){R=Number(g.Sq(l,R.X,R.L).toFixed(2));l=Math.floor((R+.001)*100%5+2E-15);var y=R;l!==0&&(y=R-l*.01);return Number(y.toFixed(2))}; Sck=function(R){g.BB.call(this,{T:"div",j:"ytp-speedslider-component"});R.C("web_settings_use_input_slider")?this.Z=new cw(R):this.Z=new Ww(R);g.U(this,this.Z);this.element.appendChild(this.Z.element)}; jHc=function(R){var l=new Sck(R);eB.call(this,R,l,"Personalizada");g.U(this,l)}; k7q=function(R,l){var y=new jHc(R);g.N4.call(this,"Velocidad de reproducci\u00f3n",g.il.Rb,R,l,LQ(R)?void 0:"Personalizada",LQ(R)?void 0:function(){g.df(l,y)}); var f=this;this.Y=!1;g.U(this,y);this.V=new cw(R);g.U(this,this.V);if(R.C("web_settings_menu_icons")){var A=R.C("delhi_modern_web_player_icons")?{T:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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"}}]}:{T:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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(A)}this.G=R;this.Y=!1;this.LX=null;LQ(R)?(this.Z=g.KV("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.G.getPlaybackRate().toString()}),this.D=this.G.getPlaybackRate()):this.D=this.Z=null;this.B=this.G.getAvailablePlaybackRates();this.N(R,"presentingplayerstatechange",this.oE);var K;((K=this.G.getVideoData())==null?0:K.h1())&&this.N(R,"serverstitchedvideochange",this.oE);this.N(this.V.X,"change",function(){f.Y=!0;f.oE()}); this.oE()}; Daq=function(R,l){var y=O8(l);R.Z&&(R.Y||l===R.D)?(R.BE(R.Z),R.Oj(l.toString())):R.BE(y)}; JrY=function(R){R.Gc(R.B.map(O8));R.Z=null;R.D=null;var l=R.G.getPlaybackRate();LQ(R.G)&&ZfY(R,l);!R.B.includes(l)||R.Y?R.BE(R.Z):R.BE(O8(l))}; ZfY=function(R,l){R.D=l;R.Z=g.KV("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:l.toString()});l=R.B.map(O8);l.unshift(R.Z);R.Gc(l)}; O8=function(R){return R.toString()}; LQ=function(R){return R.C("web_settings_menu_surface_custom_playback")}; g3J=function(R){return R.C("web_settings_menu_surface_custom_playback")&&R.C("web_settings_use_input_slider")}; C9j=function(R,l,y,f){var A=new g.b$(l,void 0,"Anulaci\u00f3n de video");g.N4.call(this,f.text||"",R,l,y,"Anulaci\u00f3n de video",function(){g.df(y,A)}); var K=this;g.AU(this.element,"ytp-subtitles-options-menu-item");this.setting=f.option.toString();R=f.options;this.settings=g.YU(R,this.Nz,this);this.D=A;g.U(this,this.D);l=new g.yu({T:"div",j:"ytp-menuitemtitle",IE:"Permitir un estilo de subt\u00edtulos diferente si as\u00ed lo especifica el video."},0);g.U(this,l);this.D.sj(l,!0);this.Y=new g.yu({T:"div",j:"ytp-menuitem",K:{role:"menuitemradio",tabindex:"0"},S:[{T:"div",j:"ytp-menuitem-label",IE:"S\u00ed"}]},-1);g.U(this,this.Y);this.D.sj(this.Y, !0);this.N(this.Y.element,"click",function(){Vos(K,!0)}); this.Z=new g.yu({T:"div",j:"ytp-menuitem",K:{role:"menuitemradio",tabindex:"0"},S:[{T:"div",j:"ytp-menuitem-label",IE:"No"}]},-2);g.U(this,this.Z);this.D.sj(this.Z,!0);this.N(this.Z.element,"click",function(){Vos(K,!1)}); this.Gc(g.L$(R,this.Nz))}; Vos=function(R,l){R.publish("settingChange",R.setting+"Override",!l);R.Te.qP()}; ie=function(R,l){g.b$.call(this,R,void 0,"Opciones");var y=this;this.pE={};for(var f=0;f=0);if(!(l<0||l===R.Y)){R.Y=l;l=243*R.scale;var y=141*R.scale,f=vqk(R.X,R.Y,l);Edc(R.bg,f,l,y,!0);R.Yb.start()}}; QOj=function(R){var l=R.Z;R.type===3&&R.xb.stop();R.api.removeEventListener("appresize",R.LX);R.W||l.setAttribute("title",R.L);R.L="";R.Z=null;R.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});R.wrapper.style.width=""}; eOq=function(R){g.Z.call(this,{T:"button",QL:["ytp-watch-later-button","ytp-button"],K:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.kh(R.U()))},S:[{T:"div",j:"ytp-watch-later-icon",IE:"{{icon}}"},{T:"div",j:"ytp-watch-later-title",IE:"Ver m\u00e1s tarde"}]});this.G=R;this.icon=null;this.visible=this.isRequestPending=this.Z=!1;HNi(R);R.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.N(R,"videoplayerreset",this.onReset);this.N(R, "appresize",this.jg);this.N(R,"videodatachange",this.jg);this.N(R,"presentingplayerstatechange",this.jg);this.jg();R=this.G.U();var l=g.zI("yt-player-watch-later-pending");R.Y&&l?(YBo(),$mK(this)):this.oE(2);g.BJ(this.element,"ytp-show-watch-later-title",g.kh(R));vd(this.G,this.element,this)}; bts=function(R){var l=R.G.getPlayerSize(),y=R.G.U(),f=R.G.getVideoData(),A=g.kh(y)&&g.pM(R.G)&&g.V(R.G.getPlayerStateObject(),128),K=y.L;return y.NW&&l.width>=240&&!f.isAd()&&f.NW&&!A&&!g.Bd(f)&&!R.G.isEmbedsShortsMode()&&!K}; X1o=function(R,l){dCr(g.KU(R.G.U()),"wl_button",function(){YBo({videoId:l});window.location.reload()})}; $mK=function(R){if(!R.isRequestPending){R.isRequestPending=!0;R.oE(3);var l=R.G.getVideoData();l=R.Z?l.removeFromWatchLaterCommand:l.addToWatchLaterCommand;var y=R.G.zg(),f=R.Z?function(){R.Z=!1;R.isRequestPending=!1;R.oE(2);R.G.U().W&&R.G.KX("WATCH_LATER_VIDEO_REMOVED")}:function(){R.Z=!0; R.isRequestPending=!1;R.oE(1);R.G.U().X&&R.G.mB(R.element);R.G.U().W&&R.G.KX("WATCH_LATER_VIDEO_ADDED")}; wh(y,l).then(f,function(){R.isRequestPending=!1;R.oE(4,"Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.");R.G.U().W&&R.G.KX("WATCH_LATER_ERROR","Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; T6K=function(R,l){if(l!==R.icon){switch(l){case 3:var y=Lx();break;case 1:y=he();break;case 2:y={T:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{T:"path",wm:!0,j:"ytp-svg-fill",K:{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:y={T:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{T:"path", wm:!0,K:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}R.updateValue("icon",y);R.icon=l}}; dmZ=function(){g.Cq.apply(this,arguments);this.vc=(this.Ex=g.kh(this.api.U()))&&(this.api.U().X||Mr()||t$());this.gB=48;this.P8=69;this.fh=this.oJ=null;this.Db=[];this.Jw=this.F3=this.RO=this.DO=this.CS=null;this.D1=[];this.contextMenu=this.jY=this.overflowButton=this.JR=this.Ls=this.searchButton=this.copyLinkButton=this.shareButton=this.C$=this.wh=this.title=this.channelAvatar=this.jk=this.tooltip=null;this.Lc=!1;this.YQ=this.lT=this.Bg=this.M0=null;this.PjS=this.o1=this.U$=!1}; r3i=function(R){var l=R.api.U(),y=g.V(R.api.getPlayerStateObject(),128);return l.Y&&y&&!R.api.isFullscreen()}; vjY=function(R){if(R.cf()&&!R.api.isEmbedsShortsMode()&&R.JR){var l=R.api.C("web_player_hide_overflow_button_if_empty_menu");!R.C$||l&&!bts(R.C$)||vkY(R.JR,R.C$);!R.shareButton||l&&!qm9(R.shareButton)||vkY(R.JR,R.shareButton);!R.copyLinkButton||l&&!g49(R.copyLinkButton)||vkY(R.JR,R.copyLinkButton)}else{l=R.api.U().getWebPlayerContextConfig();if(R.JR){for(var y=R.JR,f=g.u(y.actionButtons),A=f.next();!A.done;A=f.next())A.value.detach();y.actionButtons=[]}R.searchButton&&!g.io(R.wh.element,R.searchButton.element)&& R.searchButton.JU(R.wh.element);!R.C$||(l==null?0:l.hideTopWatchNextButton)||g.io(R.wh.element,R.C$.element)||R.C$.JU(R.wh.element);!R.shareButton||(l==null?0:l.hideTopShareButton)||g.io(R.wh.element,R.shareButton.element)||R.shareButton.JU(R.wh.element);R.copyLinkButton&&!g.io(R.wh.element,R.copyLinkButton.element)&&R.copyLinkButton.JU(R.wh.element)}}; zOY=function(R,l,y){l=y?l.lastElementChild:l.firstElementChild;for(var f=null;l;){if(gX(l,"display")!=="none"&&l.getAttribute("aria-hidden")!=="true"){var A=void 0;l.tabIndex>=0?A=l:A=zOY(R,l,y);A&&(f?y?A.tabIndex>f.tabIndex&&(f=A):A.tabIndexf/1E3+1)return{msg:"in-the-past"};if(K.isLivePlayback&&!isFinite(f))return{msg:"live-infinite"};(f=l.t1())&&f.isView()&&(f=f.mediaElement);if(f&&f.gH().length>12&&g.zf(A))return{msg:"played-ranges"};if(!A.L)return null;if(!G)return{msg:"no-pvd-formats"};if(!A.L.Z||!G.Z)return{msg:"non-dash"};f=G.videoInfos[0];var B=A.L.videoInfos[0];R.LX&&WZ(K)&&(f=l.tI(), B=y.tI());if(!f||!B)return{msg:"no-video-info"};if(R.D&&(Iz(f)||Iz(B)))return{msg:"av1"};l=R.Y&&K.VU()&&ao();if(B.containerType!==f.containerType)if(l)K.T4("sgap",{ierr:"container"});else return{msg:"container"};if(R.J&&!l&&(B.H1!==f.H1||B.H1===""||f.H1===""))return{msg:"codec"};if(R.V&&B.video&&f.video&&Math.abs(B.video.width/B.video.height-f.video.width/f.video.height)>.01)return{msg:"ratio"};if(g.zf(K)&&g.zf(A))return{msg:"content-protection"};G=G.Z[0];A=A.L.Z[0];y=G.audio;var H=A.audio;if(y.sampleRate!== H.sampleRate&&!g.iz)if(l)K.T4("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:G.itag,cr:y.sampleRate,ni:A.itag,nr:H.sampleRate};return(y.numChannels||2)!==(H.numChannels||2)?{msg:"channel-count"}:R.W&&K.VU()&&f.video.fps!==B.video.fps?{msg:"fps"}:null}; N6Y=function(R,l,y){var f=R.getVideoData(),A=l.getVideoData();if(!f.U().supportsGaplessShorts())return{nq:"env"};if(y.B?f.Hf&&!f.isAd()||A.Hf&&!A.isAd():y.X?f.Hf&&!f.isAd()||A.Hf:y.L?A.Hf&&!A.isAd()||f.Hf:f.Hf||A.Hf)return{nq:"autoplay"};if(f.endSeconds>0)return{nq:"endcr"};if(!f.V)return{nq:"client"};if(!R.xv())return{nq:"no-empty"};R=IOY(y,R,l,Infinity);return R!=null?{nq:R.msg}:null}; I9=function(R){g.p.call(this);this.app=R;this.J=this.Y=this.X=this.Z=null;this.L=1;this.events=new g.QW(this);this.events.N(this.app.VL,g.Cd("gaplessshortslooprange"),this.W);g.U(this,this.events)}; p1o=function(){this.Z=this.V=this.L=this.X=this.B=this.D=this.LX=this.W=this.J=this.Y=!1}; Umj=function(R){var l=new p1o;l.Y=R.C("h5_gapless_support_types_diff");l.W=R.C("h5_gapless_error_on_fps_diff");l.LX=R.C("html5_gapless_use_format_info_fix");l.D=R.C("html5_gapless_disable_on_av1")&&!R.C("html5_gapless_enable_on_av1");l.J=R.C("html5_gapless_check_codec_diff_strictly");l.B=R.C("html5_gapless_on_ad_autoplay");l.V=R.C("html5_gapless_disable_diff_aspect_radio");l.X=R.C("html5_gapless_ad_autoplay_on_ad_to_video_only");l.Z=R.C("html5_pseudogapless_shorts_seek_to_next_start");l.L=R.C("html5_gapless_ad_autoplay_on_video_to_ad_only"); return l}; g.Nn=function(R,l,y,f){f=f===void 0?!1:f;Ws.call(this);this.mediaElement=R;this.start=l;this.end=y;this.Z=f}; SL9=function(R,l,y,f,A,K){K=K===void 0?0:K;g.p.call(this);var G=this;this.policy=R;this.Z=l;this.X=y;this.Qu=A;this.J=K;this.Y=this.L=null;this.currentVideoDuration=this.D=-1;this.V=!1;this.cM=new Ee;this.lP=f-l.fA()*1E3;this.cM.then(void 0,function(){}); this.timeout=new g.Vg(function(){G.MW("timeout")},1E4); g.U(this,this.timeout);this.W=isFinite(f)||this.Qu.U().experiments.EL("html5_pseudogapless_shorts")&&WZ(l.getVideoData());this.status={status:0,error:null}}; khs=function(R){var l,y,f,A,K,G,B,H,n;return g.w(function(m){if(m.X==1){if(R.Fx())return m.return(Promise.reject(Error(R.status.error||"disposed")));R.timeout.start();return g.v(m,R.cM,2)}l=R.Z.t1();if(l.isEnded())return R.MW("ended_in_finishTransition"),m.return(Promise.reject(Error(R.status.error||"")));if(!R.Y||!Hs(R.Y))return R.MW("next_mse_closed"),m.return(Promise.reject(Error(R.status.error||"")));if(R.X.eK()!==R.Y)return R.MW("next_mse_mismatch"),m.return(Promise.reject(Error(R.status.error|| "")));y=pQ(R);f=y.bU;A=y.yM;K=y.D6;R.Z.QD(!1,!0);G=jOc(l,f,K,!R.X.getVideoData().isAd());R.X.setMediaElement(G);(B=R.Z.jP())&&R.X.Et(B.S6,B.lD);R.W&&(R.X.seekTo(R.X.getCurrentTime()+.001,{zO:!0,Cd:3,b8:"gapless_pseudo"}),G.play(),rg());H=l.S1();H.cpn=R.Z.getVideoData().clientPlaybackNonce;H.st=""+f;H.et=""+K;R.X.T4("gapless",H);R.Z.T4("gaplessTo",{cpn:R.X.getVideoData().clientPlaybackNonce});n=R.Z.getPlayerType()===R.X.getPlayerType();R.Z.yP(A,!0,!1,n,R.X.getVideoData().clientPlaybackNonce);R.X.yP(R.X.getCurrentTime(), !0,!0,n,R.Z.getVideoData().clientPlaybackNonce);R.X.OA();g.FC(function(){!R.X.getVideoData().xb&&R.X.getPlayerState().isOrWillBePlaying()&&R.X.n2()}); U8(R,6);R.dispose();return m.return(Promise.resolve())})}; gjK=function(R){if(R.X.getVideoData().L){var l=R.Qu.U().C("html5_gapless_suspend_next_loader")&&R.J===1;R.X.x7(R.Y,l,Dmr(R));U8(R,3);Zti(R);var y=J3c(R);l=y.SX;y=y.Ck;l.subscribe("updateend",R.NQ,R);y.subscribe("updateend",R.NQ,R);R.NQ(l);R.NQ(y)}}; Zti=function(R){R.Z.unsubscribe("internalvideodatachange",R.Do,R);R.X.unsubscribe("internalvideodatachange",R.Do,R);R.Qu.U().C("html5_gapless_use_format_info_fix")&&(R.Z.unsubscribe("internalvideoformatchange",R.Do,R),R.X.unsubscribe("internalvideoformatchange",R.Do,R));R.Z.unsubscribe("mediasourceattached",R.Do,R);R.X.unsubscribe("statechange",R.Wa,R)}; jOc=function(R,l,y,f){R=R.isView()?R.mediaElement:R;return new g.Nn(R,l,y,f)}; U8=function(R,l){l<=R.status.status||(R.status={status:l,error:null},l===5&&R.cM.resolve())}; Dmr=function(R){return R.Qu.U().C("html5_gapless_no_clear_buffer_timeline")&&R.J===1&&PZ(R.Z.getVideoData())}; pQ=function(R){var l=R.Z.t1();l=l.isView()?l.start:0;var y=R.Z.getVideoData().isLivePlayback?Infinity:R.Z.FO(!0);y=Math.min(R.lP/1E3,y)+l;var f=R.W?100:0;R=y-R.X.h7()+f;return{tZ:l,bU:R,yM:y,D6:Infinity}}; J3c=function(R){return{SX:R.L.Z.Bl,Ck:R.L.X.Bl}}; SO=function(R){g.p.call(this);var l=this;this.app=R;this.D=this.X=this.Z=null;this.W=!1;this.L=this.Y=null;this.J=Umj(this.app.U());this.V=function(){g.FC(function(){Vsr(l)})}}; CCQ=function(R,l,y,f,A){f=f===void 0?0:f;A=A===void 0?0:A;R.xv()||jO(R);R.Y=new Ee;R.Z=l;var K=y,G=A===0;G=G===void 0?!0:G;var B=R.app.hU(),H=B.getVideoData().isLivePlayback?Infinity:B.FO(!0)*1E3;K>H&&(K=H-200,R.W=!0);G&&B.getCurrentTime()>=K/1E3?R.V():(R.X=B,G&&(G=K,K=R.X,R.app.VL.addEventListener(g.Vx("vqueued"),R.V),G=isFinite(G)||G/1E3>K.getDuration()?G:0x8000000000000,R.D=new g.Jq(G,0x8000000000000,{namespace:"vqueued"}),K.addCueRange(R.D)));G=f/=1E3;K=l.getVideoData().Z;f&&K&&R.X&&(B=f,H=0, l.getVideoData().isLivePlayback&&(G=Math.min(y/1E3,R.X.FO(!0)),H=Math.max(0,G-R.X.getCurrentTime()),B=Math.min(f,l.FO()+H)),G=zhc(K,B)||f,G!==f&&R.Z.T4("qvaln",{st:f,at:G,rm:H,ct:B}));l=G;f=R.Z;f.getVideoData().aJ=!0;f.getVideoData().V=!0;f.A9(!0);K={};R.X&&(K=R.X.C7(),G=R.X.getVideoData().clientPlaybackNonce,K={crt:(K*1E3).toFixed(),cpn:G});f.T4("queued",K);l!==0&&f.seekTo(l+.01,{zO:!0,Cd:3,b8:"videoqueuer_queued"});R.L=new SL9(R.J,R.app.hU(),R.Z,y,R.app,A);y=R.L;y.status.status!==Infinity&&(U8(y, 1),y.Z.subscribe("internalvideodatachange",y.Do,y),y.X.subscribe("internalvideodatachange",y.Do,y),y.Qu.U().C("html5_gapless_use_format_info_fix")&&(y.Z.subscribe("internalvideoformatchange",y.Do,y),y.X.subscribe("internalvideoformatchange",y.Do,y)),y.Z.subscribe("mediasourceattached",y.Do,y),y.X.subscribe("statechange",y.Wa,y),y.Z.subscribe("newelementrequired",y.hc,y),y.Do());return R.Y}; Vsr=function(R){var l,y,f,A,K,G,B;g.w(function(H){switch(H.X){case 1:if(R.Fx()||!R.Y||!R.Z)return H.return();R.W&&R.app.hU().t6(!0,!1);l=null;if(!R.L){H.bQ(2);break}g.$7(H,3);return g.v(H,khs(R.L),5);case 5:g.XZ(H,2);break;case 3:l=y=g.TT(H);case 2:if(!R.Z)return H.return();qLY.wR("vqsp",function(){R.app.ji(R.Z)}); if(!R.Z)return H.return();f=R.Z.t1();R.app.U().C("html5_gapless_seek_on_negative_time")&&f&&f.getCurrentTime()<-.01&&R.Z.seekTo(0);qLY.wR("vqpv",function(){R.app.playVideo()}); l&&(R.Z?(A=l?l.message:"forced",(K=R.X)==null||K.T4("gapfulfbk",{r:A}),R.Z.pz(A)):(G=R.X)==null||G.T4("gapsp",{}));B=R.Y;jO(R);B&&B.resolve();return H.return(Promise.resolve())}})}; jO=function(R,l){l=l===void 0?!1:l;if(R.X){if(R.D){var y=R.X;R.app.VL.removeEventListener(g.Vx("vqueued"),R.V);y.removeCueRange(R.D)}R.X=null;R.D=null}R.L&&(R.L.status.status!==6&&(y=R.L,y.status.status!==Infinity&&y.J!==1&&y.MW("Canceled")),R.L=null);R.Y=null;R.Z&&!l&&R.Z!==R.app.Xo()&&R.Z!==R.app.hU()&&R.Z.dispose();R.Z&&l&&R.Z.o$();R.Z=null;R.W=!1}; tsQ=function(R){var l;return((l=R.L)==null?void 0:l.currentVideoDuration)||-1}; YL9=function(R,l,y){if(R.xv())return"qie";if(R.Z==null||R.Z.Fx()||R.Z.getVideoData()==null)return"qpd";if(l.videoId!==R.Z.PA())return"vinm";if(tsQ(R)<=0)return"ivd";if(y!==1)return"upt";if((y=R.L)==null)R=void 0;else if(y.getStatus().status!==5)R="niss";else if(IOY(y.policy,y.Z,y.X,y.lP)!=null)R="pge";else{l=J3c(y);R=l.SX;var f=l.Ck;l=g.yx(y.Qu.U().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var A=y.D+l;y.Qu.U().experiments.EL("html5_pseudogapless_shorts")&&(A=pQ(y).bU+l);y=Y5(f.uj(), A);R=Y5(R.uj(),A);R=!(l>0)||y&&R?null:"neb"}return R!=null?R:null}; Msr=function(){g.Ae.call(this);var R=this;this.fullscreen=0;this.Y=this.L=this.pictureInPicture=this.Z=this.X=this.inline=!1;this.J=function(){R.cA()}; Njk(this.J);this.D=this.getVisibilityState(this.tL(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.B0(),this.mT(),this.Iw(),this.zU())}; Sg7=function(R){return!(R.isMinimized()||R.isInline()||R.isBackground()||R.B0()||R.mT()||R.Iw()||R.zU())}; g.k0=function(R){g.p.call(this);this.Zq=R;this.videoData=this.playerState=null}; JX=function(R,l){g.p.call(this);var y=this;this.data=[];this.L=R||NaN;this.X=l||null;this.Z=new g.Vg(function(){DZ(y);ZZ(y)}); g.U(this,this.Z)}; m6Y=function(R){DZ(R);return R.data.map(function(l){return l.value})}; DZ=function(R){var l=(0,g.eY)();R.data.forEach(function(y){y.expire0));(f=g.yx(l, "html5_cobalt_audio_write_ahead_ms"))&&WT("Media.AudioWriteDurationLocal",f);(f=y("html5_cobalt_enable_decode_to_texture"))&&WT("Media.PlayerConfiguration.DecodeToTexturePreferred",f?1:0);R.PZ()&&wTj();Error.stackTraceLimit=50;var A=g.yx(l,"html5_idle_rate_limit_ms");A&&Object.defineProperty(window,"requestIdleCallback",{value:function(K){return window.setTimeout(K,A)}}); l5J(R.J);Oeo(y("html5_use_ump_request_slicer"));V9c(y("html5_record_now"));y("html5_disable_streaming_xhr")&&(cn=!1);y("html5_byterate_constraints")&&($M=!0);y("html5_use_non_active_broadcast_for_post_live")&&(mC=!0);y("html5_enable_encrypted_av1")&&(x5=!0);VKq(g.yx(R.experiments,"html5_sticky_duration_mos"));R.C("html5_estimate_live_partial_slice_duration")&&(WxZ=!0)}; aLs=function(R,l){return R.slice(l.length).replace(/_[a-z]/g,function(y){return y.toUpperCase().replace("_","")}).replace("Dot",".")}; s5J=function(R){var l={},y=Object.keys(R.experiments.flags);y=g.u(y);for(var f=y.next();!f.done;f=y.next())if(f=f.value,f.startsWith("cobalt_h5vcc"))if(f.startsWith("cobalt_h5vcc_string")){var A=aLs(f,"cobalt_h5vcc_string");f=EN(R.experiments,f);A&&f&&(l[A]=WT(A,f))}else f.startsWith("cobalt_h5vcc")&&(A=aLs(f,"cobalt_h5vcc"),f=g.yx(R.experiments,f),A&&f&&(l[A]=WT(A,f)));return l}; tX=function(R,l,y,f,A){A=A===void 0?[]:A;g.p.call(this);this.Zq=R;this.j1=l;this.segments=A;this.Z=new Map}; BKr=function(R,l,y,f){f=f===void 0?0:f;g.CM.call(this,y.xq());this.Ns=R;this.videoData=l;this.duration=f;this.endTime=this.startTime=0}; HBY=function(R){this.end=this.start=R}; g.Y0=function(){this.Z=new Map;this.L=new Map;this.X=new Map}; np7=function(){this.X=[];this.Z=new Map;this.Y=new Map;this.L=new Map}; g.Mn=function(R,l,y,f){g.p.call(this);var A=this;this.api=R;this.Zq=l;this.playback=y;this.app=f;this.Dq=new g.Y0;this.L=new Map;this.J=[];this.Z=new np7;this.B1=new Map;this.v1=null;this.nA=NaN;this.ZL=this.sF=null;this.LA=new g.Vg(function(){m8k(A,A.nA,A.sF||void 0)}); this.events=new g.QW(this);this.uQ=15E3;this.Yb=new g.Vg(function(){A.xb=!0;A.playback.Rj(A.uQ);opJ(A);if(A.playback.getVideoData().h1()){var K;A.MU({togab:(K=A.LX)==null?void 0:K.identifier})}A.WK(!1)},this.uQ); this.xb=!1;this.V=new Map;this.tU=[];this.LX=null;this.iQ=new Set;this.sL=[];this.vZ=[];this.eZ=[];this.tF=[];this.X=void 0;this.PM=0;this.CX=!0;this.D=!1;this.P1=[];this.UL=new Set;this.f_=new Set;this.RV=new Set;this.FK=0;this.jS=new Set;this.OF=0;this.sz=this.ol=!1;this.Iz=this.Y="";this.W=null;this.logger=new g.WC("dai");this.yu={x2L:function(){return A.L}, nPS:function(){return A.J}, s$b:function(){return A.Z.Z}, Dux:function(){return A.Y}, rIq:function(K){A.onCueRangeEnter(A.L.get(K))}, LCL:function(K){A.onCueRangeExit(A.L.get(K))}, NuE:function(K,G){A.L.set(K,G)}, dyU:function(K){A.Iz=K}, RU:function(){return A.RU()}, ba$:function(K){return A.Z.L.get(K)}, sBQ:function(){return A.W}, yv$:function(){return A.Z.X}}; this.playback.getPlayerType();this.playback.HI(this);this.W1=this.Zq.PZ();g.U(this,this.LA);g.U(this,this.events);g.U(this,this.Yb);this.events.N(this.api,g.Vx("serverstitchedcuerange"),this.onCueRangeEnter);this.events.N(this.api,g.Cd("serverstitchedcuerange"),this.onCueRangeExit);lLZ(this.app.FW(),this.playback,!1)}; L4i=function(R,l,y,f,A,K,G,B,H){if(R.Zq.C("html5_ignore_ads_after_noadresponse")&&H&&R.iQ.has(H))R$(R,{reason:"addafternoad",cueid:H});else{H=hCj(R,K,K+A);R.xb&&R.MU({adaftto:1});y||R.MU({missadcon:1,enter:K,len:A,aid:B});R.B&&!R.B.ez&&(R.B.ez=B);R.sz&&R.MU({adfbk:1,enter:K,len:A,aid:B});var n=R.playback;G=G===void 0?K+A:G;K===G&&!A&&R.Zq.C("html5_allow_zero_duration_ads_on_timeline")&&R.MU({attl0d:1});K>G&&R$(R,{reason:"enterTime_greater_than_return",j1:K,qs:G});var m=n.K_()*1E3;Kn&&R$(R,{reason:"parent_return_greater_than_content_duration",qs:G,pC4:n});n=null;m=g.kU(R.Z.X,{qs:K},function(h,c){return h.qs-c.qs}); m>=0&&(n=R.Z.X[m],n.qs>K&&cmT(R,l.video_id||"",K,G,n));if(H&&n)for(m=0;m.5&&R.MU({ttdtb:1,delta:G,cpn:A.cpn,enter:l.adCpn,exit:y.adCpn,seek:f,skip:K});R.api.C("html5_ssdai_enable_media_end_cue_range")&&(!f&&!K&&y.isAd&&y.adCpn?R.api.OT(y.adCpn):(f||K)&&R.MU({mecr:0,seek:f,skip:K}));if(l.isAd&&y.isAd){A=!!K;if(l.adCpn&&y.adCpn){var B=R.Z.Z.get(l.adCpn);var H=R.Z.Z.get(y.adCpn)}A?R.MU({igtransskip:1,enter:l.adCpn,exit:y.adCpn,seek:f,skip:K}):Aw(R,H,B,y.jJ,l.jJ,f,A)}else if(!l.isAd&&y.isAd){R.Iz= A.cpn;R.Ou(A.cpn,A.j1/1E3);R.api.publish("serverstitchedvideochange");B=yB(R,"a2c");R.MU(B);R.FK=0;if(B=y.Dz)R.PM=B.end,iBs(R,B.id,B.end);var n;y.adCpn&&(n=R.Z.Z.get(y.adCpn));n&&R.playback.h6(n,A,y.jJ,l.jJ,f,!!K)}else if(l.isAd&&!y.isAd){var m;l.adCpn&&(m=R.Z.Z.get(l.adCpn));m&&(R.PM=0,R.Iz=m.cpn,R.Ou(m.cpn,m.j1/1E3),fP(R,m),n=yB(R,"c2a",m),R.MU(n),R.FK=1,R.playback.h6(A,m,y.jJ,l.jJ,f,!!K))}}; Gj=function(R,l,y){y=y===void 0?0:y;var f=g.kU(R.Z.X,{j1:(l+y)*1E3},function(B,H){return B.j1-H.j1}); f=f<0?(f+2)*-1:f;if(f>=0)for(var A=l*1E3,K=f;K<=f+1&&K=G.j1-y*1E3&&A<=G.qs+y*1E3)return{yX:G,RQ:l}}return{yX:void 0,RQ:l}}; ukZ=function(R,l){var y="";(l=PBs(R,l))&&(y=l.getId());return y?R.Z.Z.get(y):void 0}; PBs=function(R,l){if(R.Iz){var y=R.L.get(R.Iz);if(y&&y.start-200<=l&&y.end+200>=l)return y}R=g.u(R.L.values());for(y=R.next();!y.done;y=R.next())if(y=y.value,y.start<=l&&y.end>=l)return y}; m8k=function(R,l,y){var f=R.ZL||R.app.hU().getPlayerState();a$(R,!0);R.playback.seekTo(l,y);R=R.app.hU();l=R.getPlayerState();f.isOrWillBePlaying()&&!l.isOrWillBePlaying()?R.playVideo():f.isPaused()&&!l.isPaused()&&R.pauseVideo()}; a$=function(R,l){R.nA=NaN;R.sF=null;R.LA.stop();R.v1&&l&&R.v1.xl();R.ZL=null;R.v1=null}; Q5q=function(R){var l=l===void 0?-1:l;var y=y===void 0?Infinity:y;for(var f=[],A=g.u(R.Z.X),K=A.next();!K.done;K=A.next())K=K.value,(K.j1y)&&f.push(K);R.Z.X=f;f=g.u(R.L.values());for(A=f.next();!A.done;A=f.next())A=A.value,A.start>=l&&A.end<=y&&(R.playback.removeCueRange(A),R.L.delete(A.getId()),R.MU({rmAdCR:1}));f=Gj(R,l/1E3);l=f.yX;f=f.RQ;if(l&&(f=f*1E3-l.j1,F4T(R,l,f,l.j1+f),f=R.L.get(l.cpn))){A=g.u(R.J);for(K=A.next();!K.done;K=A.next())K=K.value,K.start===f.end?K.start=l.j1+l.durationMs: K.end===f.start&&(K.end=l.j1);f.start=l.j1;f.end=l.j1+l.durationMs}if(l=Gj(R,y/1E3).yX){var G;f="playback_timelinePlaybackId_"+l.A1+"_video_id_"+((G=l.videoData)==null?void 0:G.videoId)+"_durationMs_"+l.durationMs+"_enterTimeMs_"+l.j1+"_parentReturnTimeMs_"+l.qs;R.nW("Invalid_clearEndTimeMs_"+y+"_that_falls_during_"+f+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; $8j=function(R){R.Dq.clearAll();R.L.clear();R.J=[];R.Z.clear();R.V.clear();R.tU=[];R.LX=null;R.iQ.clear();R.sL=[];R.vZ=[];R.eZ=[];R.tF=[];R.P1=[];R.UL.clear();R.f_.clear();R.RV.clear();R.jS.clear();R.xb=!1;R.X=void 0;R.PM=0;R.CX=!0;R.D=!1;R.FK=0;R.OF=0;R.ol=!1;R.sz=!1;R.Y="";R.Yb.isActive()&&l_(R)}; F4T=function(R,l,y,f){l.durationMs=y;l.qs=f;(f=R.B1.get(l.cpn))?f.Oz(y/1E3):R.MU({nop_d:l.cpn})}; bBj=function(R,l,y,f,A,K){if(!R.sz)if(g.eCJ(R,y))R.MU({gdu:"undec",seg:y,itag:A});else if(l=s9(R,l,y,f,K),!(R.playback.getVideoData().h1()&&(l==null?0:l.LL)))return l}; s9=function(R,l,y,f,A){var K=R.V.get(y);if(!K){if(K=Xjj(R,l))return K;l=R.nI(y-1,f!=null?f:2);if(A)return R.MU({misscue:A,sq:y,type:f,prevsstate:l==null?void 0:l.WP,prevrecord:R.V.has(y-1)}),R.V.get(y-1);if((l==null?void 0:l.WP)===2)return R.MU({adnf:1,sq:y,type:f,prevrecord:R.V.has(y-1)}),R.V.get(y-1)}return K}; Xjj=function(R,l){l+=R.P6();if(R.playback.getVideoData().h1())a:{var y=1;y=y===void 0?0:y;var f=l*1E3;R=g.u(R.Z.X);for(var A=R.next();!A.done;A=R.next()){A=A.value;var K=A.pG?A.pG*1E3:A.j1;if(f>=A.j1-y*1E3&&f<=K+A.durationMs+y*1E3){f={yX:A,RQ:l};break a}}f={yX:void 0,RQ:l}}else f=Gj(R,l),((y=f)==null?0:y.yX)||(f=Gj(R,l,1));var G;return(G=f)==null?void 0:G.yX}; TKY=function(R,l){l=l===void 0?"":l;var y=Pn(l)||void 0;if(!l||!y){var f;R.MU({adcfg:(f=l)==null?void 0:f.length,dcfg:y==null?void 0:y.length})}return y}; d8c=function(R){if(R.P1.length)for(var l=g.u(R.P1),y=l.next();!y.done;y=l.next())R.onCueRangeExit(y.value);l=g.u(R.L.values());for(y=l.next();!y.done;y=l.next())R.playback.removeCueRange(y.value);l=g.u(R.J);for(y=l.next();!y.done;y=l.next())R.playback.removeCueRange(y.value);R.L.clear();R.J=[];R.Dq.clearAll();R.X||(R.CX=!0)}; Aw=function(R,l,y,f,A,K,G){if(l&&y){R.Iz=y.cpn;R.Ou(y.cpn,y.j1/1E3);fP(R,y);var B=yB(R,"a2a",y);R.MU(B);R.FK++;R.playback.h6(l,y,f||0,A||0,!!K,!!G)}else R.MU({misspbkonadtrans:1,enter:(y==null?void 0:y.cpn)||"",exit:(l==null?void 0:l.cpn)||"",seek:K,skip:G})}; vp9=function(R,l,y,f){if(f)for(f=0;fy){var K=A.end;A.end=l;rmQ(R,y,K)}else if(A.start>=l&&A.starty)A.start=y;else if(A.end>l&&A.end<=y&&A.start=l&&A.end<=y){R.playback.removeCueRange(A);if(R.P1.includes(A))R.onCueRangeExit(A);R.J.splice(f,1);continue}f++}else rmQ(R,l,y)}; rmQ=function(R,l,y){l=OBQ(l,y);y=!0;g.CX(R.J,l,function(G,B){return G.start-B.start}); for(var f=0;f0){var A=R.J[f],K=R.J[f-1];if(Math.round(K.end/1E3)>=Math.round(A.start/1E3)){K.end=A.end;A!==l?R.playback.removeCueRange(A):y=!1;R.J.splice(f,1);continue}}f++}if(y)for(R.playback.addCueRange(l),l=R.playback.Vw("serverstitchedcuerange",36E5),l=g.u(l),y=l.next();!y.done;y=l.next())R.L.delete(y.value.getId())}; Ba=function(R,l,y){if(y===void 0||!y){y=g.u(R.tU);for(var f=y.next();!f.done;f=y.next()){f=f.value;if(l>=f.start&&l<=f.end)return;if(l===f.end+1){f.end+=1;return}}R.tU.push(new HBY(l))}}; g.eCJ=function(R,l){R=g.u(R.tU);for(var y=R.next();!y.done;y=R.next())if(y=y.value,l>=y.start&&l<=y.end)return!0;return!1}; Ha=function(R,l,y){var f;if(f=R.playback.getVideoData().h1()||R.Zq.C("html5_ssdai_extent_last_unfinished_ad_cue_range"))f=(f=R.Z.Z.get(l))&&f.sC?(R=R.Z.L.get(f==null?void 0:f.sC))&&R.slice(-1)[0].cpn===l:!1;return f&&y===2?1E3:0}; cmT=function(R,l,y,f,A){var K;l={reason:"overlapping_playbacks",LH7:l,j1:y,qs:f,Za7:A.A1,XMU:((K=A.videoData)==null?void 0:K.videoId)||"",mHq:A.durationMs,wR9:A.j1,qIL:A.qs};R$(R,l)}; R$=function(R,l,y){R.playback.Qi(l,y)}; zCY=function(R,l){var y=[];R=R.Z.L.get(l);if(!R)return[];R=g.u(R);for(l=R.next();!l.done;l=R.next())l=l.value,l.cpn&&y.push(l.cpn);return y}; wjQ=function(R,l,y){var f=0;R=R.Z.L.get(y);if(!R)return-1;R=g.u(R);for(y=R.next();!y.done;y=R.next()){if(y.value.cpn===l)return f;f++}return-1}; x89=function(R,l){var y=0;R=R.Z.L.get(l);if(!R)return 0;R=g.u(R);for(l=R.next();!l.done;l=R.next())l=l.value,l.durationMs!==0&&l.qs!==l.j1&&y++;return y}; ILo=function(R,l,y){var f=!1;if(y&&(y=R.Z.L.get(y))){y=g.u(y);for(var A=y.next();!A.done;A=y.next())A=A.value,A.durationMs!==0&&A.qs!==A.j1&&(A=A.cpn,l===A&&(f=!0),f&&!R.f_.has(A)&&(R.MU({decoratedAd:A}),R.f_.add(A)))}}; opJ=function(R){R.W1&&R.MU({adf:"0_"+((new Date).getTime()/1E3-R.OF)+"_isTimeout_"+R.xb})}; hCj=function(R,l,y){if(R.sL.length)for(var f=g.u(R.sL),A=f.next(),K={};!A.done;K={wP:void 0},A=f.next()){K.wP=A.value;A=K.wP.startSecs*1E3;var G=K.wP.G9*1E3+A;if(l>A&&lA&&y0?R:0}else R.RU().videoData.OF=R.playback.getCurrentTime()}; ZB9=function(R,l,y,f){g.p.call(this);var A=this;this.api=R;this.Zq=l;this.Z=y;this.app=f;this.J=new Map;this.X=[];this.L=this.V=null;this.LX=NaN;this.D=this.Y=this.B=null;this.W=new g.Vg(function(){D87(A,A.LX,A.B||void 0)}); this.Yb=[];this.xb=new g.Vg(function(){var K=A.Yb.pop();if(K){var G=K.A1,B=K.playerVars;K=K.playerType;B&&(B.prefer_gapless=!0,A.api.preloadVideoByPlayerVars(B,K,NaN,"",G),A.Yb.length&&g.Cz(A.xb,4500))}}); this.events=new g.QW(this);this.yu={gPQ:function(){return A.X}}; this.Z.getPlayerType();g.U(this,this.W);g.U(this,this.xb);g.U(this,this.events);this.events.N(this.api,g.Vx("childplayback"),this.onCueRangeEnter);this.events.N(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.N(this.api,"presentingplayerstatechange",this.mV)}; CBs=function(R,l,y,f,A,K){var G=l.cpn,B=l.docid||l.video_id||l.videoId||l.id,H=R.Z;K=K===void 0?A+f:K;if(A>K)return mS(R,"enterAfterReturn enterTimeMs="+A+" is greater than parentReturnTimeMs="+K.toFixed(3),G,B),"";var n=H.K_()*1E3;if(An)return H="returnAfterDuration parentReturnTimeMs="+K.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+ H.fA(),mS(R,H,G,B),"";n=null;for(var m=g.u(R.X),h=m.next();!h.done;h=m.next()){h=h.value;if(A>=h.j1&&Ah.j1)return mS(R,"overlappingReturn",G,B),"";if(K===h.j1)return mS(R,"outOfOrder",G,B),"";A===h.qs&&(n=h)}G="cs_childplayback_"+Jmj++;B={Dz:o$(f,!0),lP:Infinity,target:null};var c={A1:G,playerVars:l,playerType:y,durationMs:f,j1:A,qs:K,Q8:B};R.X=R.X.concat(c).sort(function(Q,e){return Q.j1-e.j1}); n?gpY(R,n,{Dz:o$(n.durationMs,!0),lP:n.Q8.lP,target:c}):(l={Dz:o$(A,!1),lP:A,target:c},R.J.set(l.Dz,l),H.addCueRange(l.Dz));l=!0;if(R.Z===R.app.hU()&&(H=H.getCurrentTime()*1E3,H>=c.j1&&Hl)break;if(K>l)return{yX:f,RQ:l-A};y=K-f.qs/1E3}return{yX:null,RQ:l-y}}; D87=function(R,l,y){y=y===void 0?{}:y;var f=R.D||R.app.hU().getPlayerState();E9(R,!0);l=isFinite(l)?l:R.Z.ev();var A=M_Y(R,l);l=A.RQ;var K=(A=A.yX)&&!hw(R,A)||!A&&R.Z!==R.app.hU(),G=l*1E3;G=R.L&&R.L.start<=G&&G<=R.L.end;!K&&G||ca(R);A?V_7(R,A,l,y,f):Rvi(R,l,y,f)}; Rvi=function(R,l,y,f){var A=R.Z;A!==R.app.hU()&&R.app.KR();A.seekTo(l,Object.assign({},{b8:"application_timelinemanager"},y));ljZ(R,f)}; V_7=function(R,l,y,f,A){var K=hw(R,l);if(!K){l.playerVars.prefer_gapless=!0;R.Zq.C("html5_enable_ssap_entity_id")&&(l.playerVars.cached_load=!0);var G=new g.KC(R.Zq,l.playerVars);G.A1=l.A1;R.api.Ti(G,l.playerType)}G=R.app.hU();K||G.addCueRange(l.Q8.Dz);G.seekTo(y,Object.assign({},{b8:"application_timelinemanager"},f));ljZ(R,A)}; ljZ=function(R,l){R=R.app.hU();var y=R.getPlayerState();l.isOrWillBePlaying()&&!y.isOrWillBePlaying()?R.playVideo():l.isPaused()&&!y.isPaused()&&R.pauseVideo()}; E9=function(R,l){R.LX=NaN;R.B=null;R.W.stop();R.Y&&l&&R.Y.xl();R.D=null;R.Y=null}; hw=function(R,l){R=R.app.hU();return!!R&&R.getVideoData().A1===l.A1}; y5k=function(R){var l=R.X.find(function(A){return hw(R,A)}); if(l){var y=R.app.hU();ca(R);var f=new g.uZ(8);l=YZK(R,l)/1E3;Rvi(R,l,{},f);y.T4("forceParentTransition",{childPlayback:1});R.Z.T4("forceParentTransition",{parentPlayback:1})}}; A5j=function(R,l,y){l=l===void 0?-1:l;y=y===void 0?Infinity:y;for(var f=l,A=y,K=g.u(R.J),G=K.next();!G.done;G=K.next()){var B=g.u(G.value);G=B.next().value;B=B.next().value;B.lP>=f&&B.target&&B.target.qs<=A&&(R.Z.removeCueRange(G),R.J.delete(G))}f=l;A=y;K=[];G=g.u(R.X);for(B=G.next();!B.done;B=G.next())if(B=B.value,B.j1>=f&&B.qs<=A){var H=R;H.V===B&&ca(H);hw(H,B)&&H.app.KR()}else K.push(B);R.X=K;f=M_Y(R,l/1E3);l=f.yX;f=f.RQ;l&&(f*=1E3,fjZ(R,l,f,l.qs===l.j1+l.durationMs?l.j1+f:l.qs));(l=M_Y(R,y/1E3).yX)&& mS(R,"Invalid clearEndTimeMs="+y+" that falls during playback={timelinePlaybackId="+(l.A1+" video_id="+l.playerVars.video_id+" durationMs="+l.durationMs+" enterTimeMs="+l.j1+" parentReturnTimeMs="+l.qs+"}.Child playbacks can only have duration updated not their start."))}; fjZ=function(R,l,y,f){l.durationMs=y;l.qs=f;f={Dz:o$(y,!0),lP:y,target:null};gpY(R,l,f);hw(R,l)&&R.app.hU().getCurrentTime()*1E3>y&&(l=YZK(R,l)/1E3,y=R.app.hU().getPlayerState(),Rvi(R,l,{},y))}; mS=function(R,l,y,f){R.Z.T4("timelineerror",{e:l,cpn:y?y:void 0,videoId:f?f:void 0})}; Gdi=function(R){R&&R!=="web"&&Ktj.includes(R)}; Wa=function(){g.p.call(this);this.Z=new JX(5,null);g.U(this,this.Z);this.X=new JX(15,null);g.U(this,this.X)}; lWk=function(R,l){return l?!!R.Z.get(l):!1}; ajQ=function(R,l){R.dataset.version=l}; Hjc=function(R){g.Z.call(this,{T:"div",QL:["html5-video-player"],K:{tabindex:R.U().disableOrganicUi?"":"-1",id:R.webPlayerContextConfig?R.webPlayerContextConfig.rootElementId:R.config.attrs.id},S:[{T:"div",j:g.nA.VIDEO_CONTAINER,K:{"data-layer":"0"}}]});var l=this;this.app=R;this.YL=this.pX(g.nA.VIDEO_CONTAINER);this.uD=new g.Sv(0,0,0,0);this.Mx=null;this.G1=new g.Sv(0,0,0,0);this.sK=this.A3=this.NJ=NaN;this.JX=this.Yx=this.lX=this.kM=!1;this.W8=NaN;this.G$=!1;this.s8=null;this.X7=function(){l.element.focus({preventScroll:!0})}; this.tS=function(){l.app.VL.publish("playerUnderlayVisibilityChange","visible");l.Mx.classList.remove(g.nA.VIDEO_CONTAINER_TRANSITIONING);l.Mx.removeEventListener(PV,l.tS);l.Mx.removeEventListener("transitioncancel",l.tS)}; this.J_=this.YH=!1;var y=this.element.addEventListener,f=this.element.removeEventListener;this.addEventListener=function(K,G,B){y.apply(l.element,[K,G,B])}; this.removeEventListener=function(K,G,B){f.apply(l.element,[K,G,B])}; var A=R.U();A.transparentBackground&&this.qy("ytp-transparent");A.controlsType==="0"&&this.qy("ytp-hide-controls");g.AU(this.element,"ytp-exp-bottom-control-flexbox");g.AU(this.element,"ytp-modern-caption");A.C("enable_new_paid_product_placement")&&!g.oG(A)&&g.AU(this.element,"ytp-exp-ppp-update");A.C("html5_enable_ssap")&&g.AU(this.element,"ytp-ssap");g.AU(this.element,"ytp-livebadge-color");if(A.C("delhi_modern_web_player"))switch(g.AU(this.element,"ytp-delhi-modern"),A.C("delhi_modern_web_player_icons")&& g.AU(this.element,"ytp-delhi-modern-icons"),EN(A.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.AU(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.AU(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.AU(this.element,"ytp-delhi-modern-with-exclusion")}ajQ(this.element,syq(R));this.F2=!1;this.Hg=new g.JM(NaN,NaN);Bu9(this);this.N(R.VL,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; Bu9=function(R){function l(){R.Mx&&LP(R);O9(R)!==R.G$&&R.resize()} function y(G,B){R.f7(G,B)} function f(G){G.getVideoData()&&R.updateVideoData(G.getVideoData())} function A(){R.G1=new g.Sv(0,0,0,0);R.uD=new g.Sv(0,0,0,0)} var K=R.app.VL;K.addEventListener("initializingmode",A);K.addEventListener("videoplayerreset",f);K.addEventListener("videodatachange",y);K.addEventListener("presentingplayerstatechange",l);R.addOnDisposeCallback(function(){K.removeEventListener("initializingmode",A);K.removeEventListener("videoplayerreset",f);K.removeEventListener("videodatachange",y);K.removeEventListener("presentingplayerstatechange",l)})}; mRq=function(R){var l=R.app.hU();if(l=l?l.getVideoData():null){if(g.kK(l)||g.DP(l)||g.ZP(l))return 16/9;if(EU(l)&&l.L.Z)return R=l.L.videoInfos[0].video,noq(R.width,R.height)}return(R=R.Mx)?noq(R.videoWidth,R.videoHeight):16/9}; ooj=function(R,l,y,f){var A=y,K=noq(l.width,l.height);R.kM?A=yK?{width:l.width,height:l.width/A,aspectRatio:A}:AA?R.width=R.height*y:yH;if(O9(R)){var n=mRq(R);var m=isNaN(n)||g.g4||Ku&&g.LO||H;Jv&&!g.Up(601)?n=A.aspectRatio:m=m||K.controlsType==="3";m?H?(m=K.C("place_shrunken_video_on_left_of_player")?16:R.getPlayerSize().width-l.width-16,n=Math.max((R.getPlayerSize().height-l.height)/2,0),m=new g.Sv(m,n,l.width, l.height),R.Mx.style.setProperty("border-radius","12px")):m=new g.Sv(0,0,l.width,l.height):(y=A.aspectRatio/n,m=new g.Sv((l.width-A.width/y)/2,(l.height-A.height)/2,A.width/y,A.height),y===1&&g.LO&&(n=m.width-l.height*n,n>0&&(m.width+=n,m.height+=n)));g.BJ(R.element,"ytp-fit-cover-video",Math.max(m.width-A.width,m.height-A.height)<1);if(B||R.F2)R.Mx.style.display="";R.G$=!0}else{m=-l.height;Jv?m*=window.devicePixelRatio:g.hn&&(m-=window.screen.height);m=new g.Sv(0,m,l.width,l.height);if(B||R.F2)R.Mx.style.display= "none";R.G$=!1}jv(R.G1,m)||(R.G1=m,g.qE(K)?(R.Mx.style.setProperty("width",m.width+"px","important"),R.Mx.style.setProperty("height",m.height+"px","important")):g.Rm(R.Mx,m.getSize()),f=new g.Do(m.left,m.top),g.qh(R.Mx,Math.round(f.x),Math.round(f.y)),f=!0);l=new g.Sv((l.width-A.width)/2,(l.height-A.height)/2,A.width,A.height);jv(R.uD,l)||(R.uD=l,f=!0);g.Df(R.Mx,"transform",y===1?"":"scaleX("+y+")");G&&H!==R.Yx&&(H&&(R.Mx.addEventListener(PV,R.tS),R.Mx.addEventListener("transitioncancel",R.tS),R.Mx.classList.add(g.nA.VIDEO_CONTAINER_TRANSITIONING)), R.Yx=H,R.app.VL.publish("playerUnderlayVisibilityChange",R.Yx?"transitioning":"hidden"));return f}; Eoo=function(R){R.YH=!R.YH;R.J_=!0;R.element.classList.toggle("ytp-retro-player",R.YH);R.resize();R.J_=!1;R.app.VL.KX("onRetroModeChanged",R.YH)}; Wtq=function(){this.csn=g.Py();this.clientPlaybackNonce=null;this.elements=new Set;this.L=new Set;this.Z=new Set;this.X=new Set}; LtY=function(R){if(R.csn!==g.Py())if(R.csn==="UNDEFINED_CSN")R.csn=g.Py();else{var l=g.Py(),y=g.ir();if(l&&y){R.csn=l;for(var f=g.u(R.elements),A=f.next();!A.done;A=f.next())(A=A.value.visualElement)&&A.isClientVe()&&l&&y&&(g.O1("combine_ve_grafts")?CN(gZ(),A,y):g.qM(g.k$)(void 0,l,y,A))}if(l)for(R=g.u(R.Z),y=R.next();!y.done;y=R.next())(y=y.value.visualElement)&&y.isClientVe()&&g.Y$(l,y)}}; g.i_=function(R,l,y,f){g.p.call(this);var A=this;this.logger=new g.WC("App");this.vj=this.QU=!1;this.xx={};this.Y7=[];this.x_=!1;this.Sp=null;this.intentionalPlayback=!1;this.KV=!0;this.H7=!1;this.X8=this.jV=this.J3=null;this.k_=!0;this.mediaElement=this.bb=null;this.OG=NaN;this.B9=!1;this.Vb=this.Kt=this.Wh=this.screenLayer=this.playlist=null;this.z6=[];this.P_=0;this.yu={FW:function(){return A.IV}, yxx:function(){return A.Wh}, RM4:function(){}}; this.logger.debug("constructor begin");if(!y)throw Error("b/179532961");this.config=glZ(l||{});this.webPlayerContextConfig=y;GSY();l=this.config.args||{};this.Zq=new fU(l,y,y?y.canaryState:this.config.assets.player_canary_state,f,this);g.U(this,this.Zq);Gyk(this.Zq);y=s5J(this.Zq);this.Zq.PZ()&&this.qf("h5vcc",y);this.Zq.experiments.EL("jspb_serialize_with_worker")&&SCJ();this.Zq.experiments.EL("gzip_gel_with_worker")&&v8i();this.Zq.X&&!Ojc&&(window.addEventListener(pI?"touchstart":"click",xm7,{capture:!0, passive:!0}),Ojc=!0);this.C("html5_onesie")&&(this.nR=new oQ(this.Zq),g.U(this,this.nR));this.Pk=y8(Zq(this.Zq)&&!0,l.enablesizebutton);this.T$=y8(!1,l.player_wide);this.visibility=new Msr;g.U(this,this.visibility);this.C("web_log_theater_mode_visibility")&&this.QQ(y8(!1,l.player_wide));this.QU=y8(!1,l.external_list);this.events=new g.QW(this);g.U(this,this.events);this.C("start_client_gcf")&&(ec(dz(),{Bj:a1,Eb:yUT()}),this.ge=dz().resolve(a1),KOi(this.ge));this.rkL=new iK;g.U(this,this.rkL);this.Ox= new Wtq;y=new Pd;this.VL=new g.wn(this,y);g.U(this,this.VL);this.template=new Hjc(this);g.U(this,this.template);this.appState=1;this.Ui=ijr(this);g.U(this,y);y={};this.mD=(y.internalvideodatachange=this.N7$,y.playbackready=this.jEX,y.playbackstarted=this.obQ,y.statechange=this.z9x,y);this.nH=new W2(this.VL);this.Ph=P3K(this);y=this.Zq.D;!1!==y&&this.qf("badps",{hbp:y,hostname:window.location.hostname,ps:this.Zq.playerStyle});this.yS=new uF7(this.Zq,this.Ph);this.VL.publish("csiinitialized");var K; (((K=this.webPlayerContextConfig)==null?0:K.wasmModuleUrl)||S9T(this.Ph))&&uL7(this);K=10;g.Eb(this.Zq)&&(K=3);nU(this.Zq)&&(K=g.yx(this.Zq.experiments,"tvhtml5_unplugged_preload_cache_size"));this.IV=new g.CQ(this.VL,K);K=FtZ(this);this.IV.E0(K);QyJ(this);K={};this.jl=(K.airplayactivechange=this.ho4,K.airplayavailabilitychange=this.UxL,K.beginseeking=this.KjU,K.sabrCaptionsDataLoaded=this.qFU,K.endseeking=this.cF1,K.internalAbandon=this.keQ,K.internalaudioformatchange=this.OAL,K.internalvideodatachange= this.IN$,K.internalvideoformatchange=this.aN1,K.liveviewshift=this.SFq,K.playbackstalledatstart=this.TcU,K.progresssync=this.mxL,K.onAbnormalityDetected=this.Wj1,K.onSnackbarMessage=this.Yj1,K.onLoadProgress=this.lLx,K.SEEK_COMPLETE=this.Z_E,K.SEEK_TO=this.XlL,K.onVideoProgress=this.xsx,K.onLoadedMetadata=this.HAX,K.onAutoplayBlocked=this.t1S,K.onPlaybackPauseAtStart=this.M14,K.playbackready=this.rFX,K.statechange=this.lJ,K.newelementrequired=this.S$,K.heartbeatparams=this.uo1,K.videoelementevent= this.Grq,K.drmoutputrestricted=this.E$9,K.signatureexpired=this.LLb,K.nonfatalerror=this.BmL,K.reloadplayer=this.wZE,K);this.aQ=new g.QW(this);g.U(this,this.aQ);this.xs=new Wa;g.U(this,this.xs);this.JK=this.Vm=-1;this.jM=new g.Vg(this.template.resize,16,this.template);g.U(this,this.jM);this.Ns=new ZB9(this.VL,this.Zq,this.Xo(),this);this.F1=new tX(this.Zq);this.rN=new SO(this);g.U(this,this.rN);this.Ok=new I9(this);g.U(this,this.Ok);Gdi(this.Zq.Z.c);this.events.N(this.VL,g.Vx("appapi"),this.nbQ); this.events.N(this.VL,g.Cd("appapi"),this.fqL);this.events.N(this.VL,g.Vx("appprogressboundary"),this.QVx);this.events.N(this.VL,g.Cd("applooprange"),this.WI);this.events.N(this.VL,"presentingplayerstatechange",this.mV);this.events.N(this.VL,"resize",this.Nc9);this.template.JU(fS(document,R));this.events.N(this.VL,"offlineslatestatechange",this.jlX);this.events.N(this.VL,"sabrCaptionsTrackChanged",this.ucE);this.events.N(this.VL,"sabrCaptionsBufferedRangesUpdated",this.c1E);this.Ph.G.U().aJ&&d7(this.Ph, "offline");this.Zq.W1&&g.uR("ux",g.wc);R=g.yx(this.Zq.experiments,"html5_defer_fetch_att_ms");this.gI=new g.Vg(this.XA9,R,this);g.U(this,this.gI);this.mL().Nl()&&(g.x1()&&this.mL().Yb.push("remote"),$Rc(this));this.yS.tick("fs");evk(this);this.Zq.W1&&d7(this.Ph,"ux",!0);g.kh(this.Ph.G.U())&&d7(this.Ph,"embed");this.C("web_player_sentinel_is_uniplayer")||g.dP(new g.JD("Player experiment flags missing","web_player_sentinel_is_uniplayer"));R=this.C("web_player_sentinel_yt_experiments_sync");K=g.O1("web_player_sentinel_yt_experiments_sync"); R!==K&&g.dP(new g.JD("b/195699950",{yt:R,player:K}));this.zR=bjq(this);if(R=g.yx(this.Zq.experiments,"html5_block_pip_safari_delay"))this.Vy=new g.Vg(this.K9,R,this),g.U(this,this.Vy);vh=this.Zq.tF;this.VL.publish("applicationInitialized");this.logger.debug("constructor end")}; bjq=function(R){function l(y){y.stack&&y.stack.indexOf("player")!==-1&&R.hU().v3(y)} rP.subscribe("handleError",l);VX.push(l);return function(){rP.unsubscribe("handleError",l);var y=VX.indexOf(l);y!==-1&&VX.splice(y,1)}}; FtZ=function(R){var l=new g.KC(R.Zq,R.config.args);R.VL.publish("initialvideodatacreated",l);return Pa(R,1,l,!1)}; QyJ=function(R){var l=R.Xo();l.setPlaybackRate(R.Zq.Y?1:X_s(R,Number(g.zI("yt-player-playback-rate"))||1));l.SQ(R.mD,R);l.Ct()}; P3K=function(R){var l="",y=syq(R);y.indexOf("//")===0&&(y=R.Zq.protocol+":"+y);var f=y.lastIndexOf("/base.js");f!==-1&&(l=y.substring(0,f+1));if(y=Error().stack)if(y=y.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))y=y[1],y.includes(l)||g.dP(Error("Player module URL mismatch: "+(y+" vs "+l+".")));l=new paQ(R.VL,l);TuK(R,l);return l}; TuK=function(R,l){var y={};y=(y.destroyed=function(){R.onApiChange()},y); l.X=y}; ijr=function(R){if(R.Zq.storeUserVolume){R=g.zI("yt-player-volume")||{};var l=R.volume;R={volume:isNaN(l)?100:g.Sq(Math.floor(l),0,100),muted:!!R.muted}}else R={volume:100,muted:R.Zq.mute};return R}; u_=function(R){R.mediaElement=R.Zq.deviceIsAudioOnly?new g.Cy(g.ho("AUDIO")):x0.pop()||new g.Cy(g.ho("VIDEO"));g.U(R,R.mediaElement);R.hU().setMediaElement(R.mediaElement);try{R.Zq.f_?(R.Kt&&R.events.p_(R.Kt),R.Kt=R.events.N(R.mediaElement,"volumechange",R.g$$)):(R.mediaElement.yQ(R.Ui.muted),R.mediaElement.setVolume(R.Ui.volume/100))}catch(A){R.MW("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(A&&typeof A==="object"&&"message"in A&&typeof A.message==="string"&&A.message.replace(/[;:,]/g, "_")));return}g.Xr(R.aQ);dR9(R);var l=R.template,y=R.mediaElement.al();l.Mx=y;l.JX=!1;l.Mx.parentNode||LS(l.YL,l.Mx,0);l.G1=new g.Sv(0,0,0,0);c5i(l);LP(l);y=l.Mx;g.AU(y,"video-stream");g.AU(y,g.nA.MAIN_VIDEO);var f=l.app.U();f.c6&&y.setAttribute("data-no-fullscreen","true");f.C("html5_local_playsinline")?"playsInline"in Lo()&&(y.playsInline=!0):f.wk&&(y.setAttribute("webkit-playsinline",""),y.setAttribute("playsinline",""));f.YO&&l.Mx&&l.N(y,"click",y.play,y);try{R.mediaElement.activate()}catch(A){R.MW("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(A&&typeof A==="object"&&"message"in A&&typeof A.message==="string"&&A.message.replace(/[;:,]/g,"_")))}}; vo9=function(R){if(!r5j(R)){var l=R.Xo().t1();l&&(l=l.kW(),l instanceof Promise&&l.catch(function(){})); FF(R,dT(R.getPlayerStateObject()))}}; dR9=function(R){var l=R.mediaElement;uz()?R.aQ.N(l,"webkitpresentationmodechanged",R.SjS):window.document.pictureInPictureEnabled&&(R.aQ.N(l,"enterpictureinpicture",function(){R.KE(!0)}),R.aQ.N(l,"leavepictureinpicture",function(){R.KE(!1)})); C0&&(R.aQ.N(l,"webkitbeginfullscreen",function(){R.cQ(3)}),R.aQ.N(l,"webkitendfullscreen",function(){R.cQ(0)}))}; zv7=function(R,l){var y=l.getPlayerType(),f=R.IV.L[y]||null;l!==R.Xo()&&l!==f&&(f==null||f.dispose(),R.IV.L[y]=l)}; w_Q=function(R,l){l=l===void 0?!0:l;R.logger.debug("start clear presenting player");var y;if(y=R.Vb){y=R.Vb;var f=R.mediaElement;y=!!f&&f===y.mediaElement}y&&(R.QD(),u_(R));y=R.hU();y.QD(!l);y.Xw(R.jl,R);y.getPlayerType()!==1&&y.dispose();l=R.IV;l.X=l.Z;qn(l);R.logger.debug("finish clear presenting player")}; g.xRs=function(R,l,y,f){var A=R.yS;l===2&&(A=new uF7(R.Zq));return new g.Ky(R.Zq,l,A,R.template,function(K,G,B){R.VL.publish(K,G,B)},function(){return R.VL.getVisibilityState()},R.visibility,R,y,f)}; Pa=function(R,l,y,f,A){R=g.xRs(R,l,y,A);R=new g.CM(R);f&&R.Ct();return R}; QB=function(R,l){return R.O9(l)?R.Xo():l}; $u=function(R,l){var y=R.hU();return l===R.Xo()&&R.O9(l)&&R.O9(y)?y:l}; p_q=function(R){R.logger.debug("start application playback");if(R.Xo().getPlayerState().isError())R.logger.debug("start application playback done, player in error state");else{var l=ep(R);R.mL().isLoaded();l&&R.hv(6);Ijc(R);q9K(R.Ph)||Nur(R)}}; Nur=function(R){if(!ep(R)){var l=v2(R.Ph);l&&!l.created&&UPi(R.Ph)&&(R.logger.debug("reload ad module"),l.create())}}; Ijc=function(R){R.logger.debug("start presenter playback");var l=R.getVideoData(),y=R.Ph;q9K(y)||y.tN();!n6Z&&y.G.C("html5_allow_asmjs")&&yB9(y);d7(y,"embed");d7(y,"kids");d7(y,"remote");d7(y,"miniplayer");d7(y,"offline");d7(y,"unplugged");d7(y,"ypc",!1,!0);d7(y,"ypc_clickwrap",!1,!0);d7(y,"yto",!1,!0);d7(y,"webgl",!1,!0);tpT(y)||(d7(y,"captions",!0),d7(y,"endscreen"),y.YZ(),d7(y,"creatorendscreen",!0));y.TP();R.VL.publish("videoready",l)}; b_=function(R){R=R.mL();R.Nl();return YK(R)}; evk=function(R){R.logger.debug("start prepare initial playback");R.rB();var l=R.config.args;u_(R);R.events.N(window,"resize",R.A1q);var y=R.mL();R.VL.DG("onVolumeChange",R.Ui);if(l&&ePo(l)){var f=aG(R.Zq);f&&!R.QU&&(l.fetch=0);var A=g.kh(R.Zq);A&&!R.QU&&(l.fetch=0);XF(R,l);g.kh(R.Zq)&&R.yS.tick("ep_pr_s");if(!f||R.QU)if(A&&!R.QU)URi(R);else if(!y.Nl())R.playlist.onReady(function(){Tj(R)})}R.ji(R.Xo(),!1,!0); g.V(R.Xo().getPlayerState(),128)||(l=biJ(!R.Zq.deviceIsAudioOnly),l==="fmt.noneavailable"?R.MW("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):l==="html5.missingapi"?R.MW(l,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):y&&y.Nl()&&b_(R)&&(R.Zq.o9||R.Zq.zL)?dB(R):y.BT?R.VL.mutedAutoplay({durationMode:y.mutedAutoplayDurationMode}):g.zI("yt-player-playback-on-reload")?(g.sE("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!R.Zq.xb}),g.vW("yt-player-playback-on-reload",!1), dB(R)):ES(R.Zq)||Ssi(R),g.Hm(R.Zq)||hu(R.Zq)==="MWEB"?(g.tD(g.Mt(),function(){rB(R)}),g.tD(g.Mt(),function(){eXi()})):(rB(R),eXi()),R.logger.debug("finish prepare initial playback"))}; rB=function(R){if(!R.C("use_rta_for_player"))if(R.C("fetch_att_independently"))g.Cz(R.gI);else{var l=R.getVideoData().botguardData;l&&g.fA(l,R.Zq,R.getVideoData().Jx||"")}}; Ssi=function(R){R.logger.debug("start initialize to CUED mode");R.VL.publish("initializingmode");R.hv(2);R.C("embeds_web_enable_defer_loading_remote_js")&&g.oG(R.Zq)?g.tD(g.Mt(),function(){d7(R.Ph,"remote")}):d7(R.Ph,"remote"); d7(R.Ph,"miniplayer");R.logger.debug("initialized to CUED mode")}; dB=function(R){R.logger.debug("start initialize application playback");var l=R.Xo();if(g.V(l.getPlayerState(),128))return!1;l=l.getVideoData();b_(R)&&R.Zq.zL&&(x0.length&&R.vj?(va(R,{muted:!1,volume:R.Ui.volume},!1),zj(R,!1)):x0.length||R.Ui.muted||(va(R,{muted:!0,volume:R.Ui.volume},!1),zj(R,!0)));b_(R)&&g.kh(R.Zq)&&l.mutedAutoplay&&(va(R,{muted:!0,volume:R.Ui.volume},!1),zj(R,!0));l.xt&&va(R,{muted:!0,volume:R.Ui.volume},!1);jyT(R,1,l,!1);var y=R.Xo();R.VL.publish("initializingmode");R.ji(y);R.hv(3); var f;if(!(f=!R.Zq.Y8)){if(f=R.Vb){f=R.Vb;var A=R.mediaElement;f=!!A&&A===f.mediaElement}f=f&&R.x_}f&&(R.QD(),u_(R),y.setMediaElement(R.mediaElement));y.PT();if(g.V(y.getPlayerState(),128))return!1;l.wN||FF(R,3);return R.x_=!0}; ep=function(R){R=N9(R.Ph);return!!R&&R.loaded}; kdJ=function(R,l){if(!R.bb)return!1;var y=R.bb.startTimeMs*.001-1,f=R.bb.endTimeMs*.001;R.bb.type==="repeatChapter"&&f--;return Math.abs(l-y)<=1E-6||Math.abs(l-f)<=1E-6||l>=y&&l<=f}; DRi=function(R){var l=R.hU();WZ(l.getVideoData())&&!l.WU()&&(l=wB(R)*1E3-R.getVideoData().Xe,R.C("html5_gapless_new_slr")?(R=R.Ok,xu(R.app,"gaplessshortslooprange"),l=new g.Jq(0,l,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(R=R.app.hU())&&R.addCueRange(l)):R.setLoopRange({startTimeMs:0,endTimeMs:l,type:"shortsLoop"}))}; ZjZ=function(R){var l=R.Xo();if(!(g.V(l.getPlayerState(),64)&&R.mL().isLivePlayback&&R.bb.startTimeMs<5E3)){if(R.bb.type==="repeatChapter"){var y,f=(y=ykq(R.Il()))==null?void 0:y.Cf(),A;y=(A=R.getVideoData())==null?void 0:A.zL;f instanceof g.Cq&&y&&(A=y[n5(y,R.bb.startTimeMs)],f.renderChapterSeekingAnimation(0,A.title));isNaN(Number(R.bb.loopCount))?R.bb.loopCount=0:R.bb.loopCount++;R.bb.loopCount===1&&R.VL.KX("innertubeCommand",R.getVideoData().nu)}f={b8:"application_loopRangeStart"};if(R.bb.type=== "clips"||R.bb.type==="shortsLoop")f.seekSource=58;l.seekTo(R.bb.startTimeMs*.001,f)}}; X_s=function(R,l){var y=R.VL.getAvailablePlaybackRates();l=Number(l.toFixed(2));R=y[0];y=y[y.length-1];l<=R?l=R:l>=y?l=y:(R=Math.floor(l*100+.001)%5,l=R===0?l:Math.floor((l-R*.01)*100+.001)/100);return l}; wB=function(R,l){l=R.Fh({playerType:l});if(!l)return R.IV.Z.FO();l=QB(R,l);return I$(R,l.FO(),l)}; I$=function(R,l,y){if(R.O9(y)&&(y=y.getVideoData(),!NP(R))){R=R.Ns;for(var f=g.u(R.X),A=f.next();!A.done;A=f.next())if(A=A.value,y.A1===A.A1){l+=A.j1/1E3;break}f=l;R=g.u(R.X);for(A=R.next();!A.done;A=R.next()){A=A.value;if(y.A1===A.A1)break;var K=A.j1/1E3;if(K1&&(A=!1);if(!R.B9||A!==l){y=y.lock(A?"portrait":"landscape");if(y!=null)y["catch"](function(){}); R.B9=!0}}else R.B9&&(R.B9=!1,y.unlock())}; D8=function(R,l,y){R.VL.publish(l,y);var f=g.Eb(R.Zq)||g.qE(R.Zq)||g.xi(R.Zq);if(y&&f){switch(l){case "cuerangemarkersupdated":var A="onCueRangeMarkersUpdated";break;case "cuerangesadded":A="onCueRangesAdded";break;case "cuerangesremoved":A="onCueRangesRemoved"}A&&R.VL.KX(A,y.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}}))}}; Z8=function(R,l,y,f,A,K){y=y===void 0?!0:y;var G=R.Fh({playerType:A});if(!G||(G.getPlayerType()!==2||R.O9(G))&&!g.SU(G.getVideoData())){var B=R.IV.DW;B?B.seekTo(l,{Nc:!y,ox:f,b8:"application",seekSource:K}):(G&&G===R.Xo()&&R.bb&&!kdJ(R,l)&&R.setLoopRange(null),R.seekTo(l,y,f,A,K))}}; a49=function(R,l,y,f){y&&(R.QD(),u_(R));y=R.hU();y.C3(l);var A=R.getVideoData(),K={};K.video_id=A.videoId;K.adformat=A.adFormat;A.isLivePlayback||(K.start=y.getCurrentTime(),K.resume="1");A.isLivePlayback&&eU(A)&&g.hq(R.Zq)&&(K.live_utc_start=y.wc(),K.resume="1");A.sL&&(K.vvt=A.sL);A.D&&(K.vss_credentials_token=A.D,K.vss_credentials_token_type=A.BO);A.oauthToken&&(K.oauth_token=A.oauthToken);K.autoplay=1;K.reload_count=A.nA+1;K.reload_reason=l;A.Qc&&(K.unplugged_partner_opt_out=A.Qc);A.kz&&(K.ypc_is_premiere_trailer= A.kz);A.playerParams&&(K.player_params=A.playerParams);R.loadVideoByPlayerVars(K,void 0,!0,void 0,void 0,f);l==="signature"&&R.Wh&&Nur(R)}; sJZ=function(R,l){R.mL().autonavState=l;g.vW("yt-player-autonavstate",l);R.VL.publish("autonavchange",l)}; B$j=function(R){var l=R.getVideoData().H$,y=R.Zq.iQ,f=R.isInline()&&!R.getVideoData().i_,A=R.mediaElement;l||y||f?A.mx():(A.XP(),va(R,R.Ui))}; pP=function(R){var l=v2(R.Il());l&&l.created&&(R.logger.debug("reset ad module"),l.destroy())}; NP=function(R){return R.getVideoData().enableServerStitchedDai&&!!R.Wh}; Hbs=function(R,l){l.bounds=R.getBoundingClientRect();for(var y=g.u(["display","opacity","visibility","zIndex"]),f=y.next();!f.done;f=y.next())f=f.value,l[f]=gX(R,f);l.hidden=!!R.hidden}; syq=function(R){if(R.webPlayerContextConfig){var l=R.webPlayerContextConfig.trustedJsUrl;return l?u8(l).toString():R.webPlayerContextConfig.jsUrl}return R.config.assets&&R.config.assets.js?R.config.assets.js:""}; nW7=function(R,l){var y=R.Fh({playerType:1});if(y){if(y.getVideoData().clientPlaybackNonce===l)return y;if((R=R.rN.Z)&&R.getVideoData().clientPlaybackNonce===l)return R}return null}; uL7=function(R){function l(A){return rZ(fSK(R.Ph),function(K){return K.ai(A)})} R.yS.tick("wasm_s");var y;R.Zq.uQ=mNq((y=R.webPlayerContextConfig)==null?void 0:y.wasmModuleUrl,S9T(R.Ph)?l:void 0,R.qf.bind(R));var f;(f=R.Zq.uQ)==null||rZ(f,function(A){R.Zq.v1=A;R.yS.tick(A.Z?"wasm_fa":"wasm_fw")},function(){R.Zq.uQ=void 0; R.yS.tick("wasm_ferr")})}; mIT=function(R){return R.name==="TypeError"&&R.stack.includes("/s/player/")&&U1()<=105}; oW7=function(R){return R.isTimeout?"NO_BID":"ERR_BID"}; h97=function(){var R=null;dli().then(function(l){return R=l},function(l){return R=oW7(l)}); return R}; cdj=function(){var R=pv(1E3,"NO_BID");return g.wC(gm7([dli(),R]).H6(oW7),function(){R.cancel()})}; Jw=function(R){return R.US?g.SI(g.UG(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; gB=function(R){this.player=R;this.L=this.Z=1}; Laj=function(R,l,y,f,A,K){l.client||(l.client={});R.player.U().C("h5_remove_url_for_get_ad_break")||(l.client.originalUrl=y);var G=G9(y),B=g.n4(y)?!1:!0;(G||B)&&typeof Intl!=="undefined"&&(l.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);B=g.n4(y)?!1:!0;if(G||B||f!==""){var H={};y=MM(n0(f)).split("&");var n=new Map;y.forEach(function(m){m=m.split("=");m.length>1&&n.set(m[0].toString(),decodeURIComponent(m[1].toString()))}); n.has("bid")&&(H.bid=n.get("bid"));H.params=[];EWi.forEach(function(m){n.has(m)&&(m={key:m,value:n.get(m)},H.params.push(m))}); WaY(R,H);l.adSignalsInfo=H}l.client.unpluggedAppInfo||(l.client.unpluggedAppInfo={});l.client.unpluggedAppInfo.enableFilterMode=!1;y=A.Z.cosver;y!=null&&y!=="cosver"&&(l.client.osVersion=y);y=A.Z.cplatform;y!=null&&y!=="cplatform"&&y!==""&&(l.client.platform=y);y=A.Z.cmodel;y!=null&&y!=="cmodel"&&(l.client.deviceModel=y);y=A.Z.cplayer;y!=null&&y!=="cplayer"&&(l.client.playerType=y);y=A.Z.cbrand;y!=null&&y!=="cbrand"&&(l.client.deviceMake=y);l.user||(l.user={});l.user.lockedSafetyMode=!1;(A.C("embeds_web_enable_iframe_api_send_full_embed_url")|| A.C("embeds_enable_autoplay_and_visibility_signals"))&&g.CI(A)&&AqK(l,K,R.player.getPlayerState(1))}; Pf7=function(R,l){var y=!1;if(l==="")return y;l.split(",").forEach(function(f){var A={},K={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},G="ACTIVE";f[0]==="!"&&(f=f.substring(1),G="INACTIVE");f=f.split("-");f.length<3||(f[0]in ObK&&(K.clientName=ObK[f[0]]),f[1]in ibJ&&(K.platform=ibJ[f[1]]),K.applicationState=G,K.clientVersion=f.length>2?f[2]:"",A.remoteClient=K,R.remoteContexts?R.remoteContexts.push(A):R.remoteContexts=[A],y=!0)}); return y}; FaQ=function(R){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in uGT))return!1;R=R.split(RegExp("[:&]"));var l=uGT.FLAG_AUTO_CAPTIONS_DEFAULT_ON,y="f"+(1+Math.floor(l/31)).toString();l=1<=2?G[1]:"";var B=$IQ.test(l),H=e9k.exec(l);H=H!=null&&H.length>=2?H[1]:"";var n=bbi.exec(l);n=n!=null&&n.length>=2&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var m=XLs.exec(l);m=m!=null&&m.length>=2?m[1]:"0";var h=RG(R.player.U().v0),c=R.player.getVideoData(1),E=g.qL(c.CX,!0),W="BISCOTTI_ID"in y?y.BISCOTTI_ID:"";Laj(R,E,l,W.toString(),R.player.U(), c);c={splay:!1,lactMilliseconds:y.LACT.toString(),playerHeightPixels:Math.trunc(y.P_H),playerWidthPixels:Math.trunc(y.P_W),vis:Math.trunc(y.VIS),signatureTimestamp:20249,autonavState:Jw(R.player.U())};f&&(f={},Pf7(f,y.YT_REMOTE)&&(c.mdxContext=f));if(f=T$T.includes(h)?void 0:g.xa("PREF")){for(var Q=f.split(RegExp("[:&]")),e=0,r=Q.length;e1&&d[1].toUpperCase()==="TRUE"){E.user.lockedSafetyMode=!0;break}}c.autoCaptionsDefaultOn= FaQ(f)}l=dIj.exec(l);(l=l!=null&&l.length>=2?l[1]:"")&&H&&(E.user.credentialTransferTokens=[{token:l,scope:"VIDEO"}]);l={contentPlaybackContext:c};G={adBlock:Math.trunc(y.AD_BLOCK),params:G,breakIndex:n,breakPositionMs:m,clientPlaybackNonce:y.CPN,topLevelDomain:h,isProxyAdTagRequest:B,context:E,adSignalsInfoString:MM(n0(W.toString())),overridePlaybackContext:l};A!==void 0&&(G.cueProcessedMs=Math.round(A).toString());H&&(G.videoId=H);y.LIVE_TARGETING_CONTEXT&&(G.liveTargetingParams=y.LIVE_TARGETING_CONTEXT); y.AD_BREAK_LENGTH&&(G.breakLengthMs=Math.trunc(y.AD_BREAK_LENGTH*1E3).toString());K&&(G.driftFromHeadMs=K.toString());G.currentMediaTimeMs=Math.round(R.player.getCurrentTime(1)*1E3);(R=R.player.getGetAdBreakContext())&&(G.getAdBreakContext=R);return G}; vWK=function(){gB.apply(this,arguments)}; z9Z=function(R,l,y,f,A){var K=y.IK;var G=y.Dz;var B=R.player.U().tO,H=0;y.cueProcessedMs&&G&&!K&&(y=G.end-G.start,y>0&&(H=Math.floor(y/1E3)));var n={AD_BLOCK:A,AD_BREAK_LENGTH:K?K.G9:H,AUTONAV_STATE:Jw(R.player.U()),CA_TYPE:"image",CPN:R.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:R.player.Ql()*1E3,LACT:uq(),LIVE_INDEX:K?R.L++:1,LIVE_TARGETING_CONTEXT:K&&K.context?K.context:"",MIDROLL_POS:G?Math.round(G.start/1E3):0,MIDROLL_POS_MS:G?Math.round(G.start):0,VIS:R.player.getVisibilityState(), P_H:R.player.lQ().IJ().height,P_W:R.player.lQ().IJ().width,YT_REMOTE:B?B.join(","):""},m=Hh(Bh);Object.keys(m).forEach(function(h){m[h]!=null&&(n[h.toUpperCase()]=m[h].toString())}); f!==""&&(n.BISCOTTI_ID=f);f={};s1(l)&&(f.sts="20249",(R=R.player.U().forcedExperiments)&&(f.forced_experiments=R));return K0(g.TS(l,n),f)}; wLJ=function(R,l){var y=R.player.U(),f,A=(f=R.player.getVideoData(1))==null?void 0:f.oauthToken;return g.OS(y,A).then(function(K){if(K&&aw()){var G=gn();Vs(G,K)}return g.xr(R.player.zg(G),l,"/youtubei/v1/player/ad_break").then(function(B){return B})})}; xIi=function(R){this.g7=R}; I4s=function(R){this.G=R}; N$Y=function(R){this.g7=R}; UIi=function(R){g.p.call(this);this.Z=R;this.tM=pL9(this)}; pL9=function(R){var l=new b6i(R.Z.dc);g.U(R,l);R=[new xIi(R.Z.g7),new I4s(R.Z.G),new N$Y(R.Z.g7),new i5(R.Z.NC,R.Z.ma),new u5,new $E(R.Z.uO,R.Z.sN,R.Z.g7),new Pz,new Oq];R=g.u(R);for(var y=R.next();!y.done;y=R.next())X$7(l,y.value);R=g.u(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(y=R.next();!y.done;y=R.next())F8(l,y.value,function(){}); return l}; VB=function(R){var l=R.fX,y=R.aE;R=R.Hh;var f=new JJK,A={Sa:new $F7(l.get(),y),aE:y};return{gm:new uL(y,R,l,A),context:A,tJ:f}}; CP=function(R,l,y,f,A){g.p.call(this);this.X=l;this.RE=y;this.fX=f;this.j_=A;this.listeners=[];var K=new eI(this);g.U(this,K);K.N(R,"internalAbandon",this.yF1);this.addOnDisposeCallback(function(){g.Xr(K)})}; qP=function(R){this.G=R;this.adVideoId=this.Z=this.videoId=this.adCpn=this.contentCpn=null;this.J=!0;this.X=this.L=!1;this.adFormat=null;this.Y="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; S0Y=function(R){R.contentCpn=null;R.adCpn=null;R.videoId=null;R.adVideoId=null;R.adFormat=null;R.Y="AD_PLACEMENT_KIND_UNKNOWN";R.actionType="unknown_type";R.L=!1;R.X=!1}; jJi=function(R,l){R=g.u(l);for(l=R.next();!l.done;l=R.next())if((l=l.value.renderer)&&(l.instreamVideoAdRenderer||l.linearAdSequenceRenderer||l.sandwichedLinearAdRenderer||l.instreamSurveyAdRenderer)){ba("ad_i");g.Xe({isMonetized:!0});break}}; kbk=function(R){var l;(l=R.G.getVideoData(1))!=null&&l.xb&&(R.X=!1,l={},R.Z&&R.videoId&&(l.cttAuthInfo={token:R.Z,videoId:R.videoId}),TB("video_to_ad",l))}; Hf=function(R){R.X=!1;var l={};R.Z&&R.videoId&&(l.cttAuthInfo={token:R.Z,videoId:R.videoId});TB("ad_to_video",l);DIK(R)}; DIK=function(R){if(R.L)if(R.Y==="AD_PLACEMENT_KIND_START"&&R.actionType==="video_to_ad")QJ("video_to_ad");else{var l={adBreakType:SD(R.Y),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:R.videoStreamType};R.actionType==="ad_to_video"?(R.contentCpn&&(l.targetCpn=R.contentCpn),R.videoId&&(l.targetVideoId=R.videoId)):(R.adCpn&&(l.targetCpn=R.adCpn),R.adVideoId&&(l.targetVideoId=R.adVideoId));R.adFormat&&(l.adType=R.adFormat);R.contentCpn&& (l.clientPlaybackNonce=R.contentCpn);R.videoId&&(l.videoId=R.videoId);R.adCpn&&(l.adClientPlaybackNonce=R.adCpn);R.adVideoId&&(l.adVideoId=R.adVideoId);g.Xe(l,R.actionType);R.G.U().experiments.EL("html5_ads_csi_qoes")&&(l=R.G.C7(R.actionType==="ad_to_video"?1:2),l=(0,g.eY)()-1E3*l,rh("qoes",l,R.actionType))}}; tw=function(R){g.p.call(this);this.G=R;this.Z=new Map;this.X=new eI(this);g.U(this,this.X);this.X.N(this.G,g.Vx("ad"),this.onCueRangeEnter,this);this.X.N(this.G,g.Cd("ad"),this.onCueRangeExit,this)}; ZbZ=function(R,l,y,f,A){g.Jq.call(this,l,y,{id:R,namespace:"ad",priority:A,visible:f})}; Yu=function(R){this.G=R}; JdT=function(R,l){R.G.cueVideoByPlayerVars(l,2)}; MP=function(R){this.G=R}; R4=function(R){this.G=R;g.yx(this.G.U().experiments,"tv_pacf_logging_sample_rate")}; gWk=function(R){return Nc(R,"html5_ssap_play_cached_preroll")}; mx=function(R,l){l=l===void 0?!1:l;return R.G.U().C("html5_ssap_force_ads_ctmp")?!0:(l||R.G.U().PZ())&&R.G.U().C("html5_ssap_pacf_qoe_ctmp")}; lm=function(R){var l;return(l=R.G.getVideoData(1)==null?void 0:!1)!=null?l:!1}; Nc=function(R,l){return R.G.U().C(l)}; VAs=function(R){return R.G.U().C("substitute_ad_cpn_macro_in_ssdai")}; Sw=function(R){var l,y,f;return((l=R.G.getVideoData(1).getPlayerResponse())==null?void 0:(y=l.playerConfig)==null?void 0:(f=y.daiConfig)==null?void 0:f.enableServerStitchedDai)||!1}; IzT=function(R){return R.G.U().C("html5_enable_vod_slar_with_notify_pacf")}; CfK=function(R){return R.G.U().C("html5_recognize_predict_start_cue_point")}; Oa=function(R){return R.G.U().experiments.EL("enable_desktop_player_underlay")}; q0T=function(R){return R.G.U().experiments.EL("html5_load_empty_player_in_media_break_sub_lra")}; MA=function(R){return R.G.U().experiments.EL("html5_load_ads_instead_of_cue")}; RT=function(R){return R.G.U().experiments.EL("html5_preload_ads")}; tAr=function(R){return R.G.U().experiments.EL("should_ignore_cuepoints_during_lifa_preroll")}; E$=function(R){return R.G.U().experiments.EL("enable_ads_control_flow_deterministic_id_generation")}; Y0J=function(R){return R.G.U().experiments.EL("enable_desktop_discovery_video_abandon_pings")||g.sS(R.G.U())}; MAQ=function(R){return R.G.U().experiments.EL("enable_progres_commands_lr_feeds")}; jw=function(R){return R.G.U().experiments.EL("html5_cuepoint_identifier_logging")}; DWT=function(R){R=R.G.getVideoData(1);return!!R&&R.C("html5_preload_first_vod_video_ad")&&!R.isDaiEnabled()&&!R.isLivePlayback}; RtZ=function(R){switch(R){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}}; l6r=function(){g.Ae.call(this);var R=this;this.Z={};this.addOnDisposeCallback(function(){for(var l=g.u(Object.keys(R.Z)),y=l.next();!y.done;y=l.next())delete R.Z[y.value]})}; yO=function(){if(yik===null){yik=new l6r;PI(qX).X="b";var R=PI(qX),l=NX(R)=="h"||NX(R)=="b",y=!(AT(),!1);l&&y&&(R.J=!0,R.D=new nGs)}return yik}; f6Z=function(R,l,y){R.Z[l]=y}; Aiq=function(R){switch(R){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}}; fh=function(R,l,y){this.RE=R;this.G=l;this.aE=y;this.X=new Set;this.Z=new Map;yO().subscribe("adactiveviewmeasurable",this.JD,this);yO().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Di,this);yO().subscribe("adviewableimpression",this.R6,this);yO().subscribe("adaudioaudible",this.yB,this);yO().subscribe("adaudiomeasurable",this.b7,this)}; Kh=function(R,l,y){var f=y.wu,A=y.V4,K=y.listener,G=y.ob;y=y.lR===void 0?!1:y.lR;if(R.Z.has(l))BR("Unexpected registration of layout in LidarApi");else{if(G){if(R.X.has(G))return;R.X.add(G)}R.Z.set(l,K);$_(AT().xG,"fmd",1);P7Y(PI(qX),f);var B=y?l:void 0;f6Z(yO(),l,{EE:function(){if(!A)return{};var H=R.G.getPresentingPlayerType(!0),n;return(n=R.G.getVideoData(H))!=null&&n.isAd()?{currentTime:R.RE.get().getCurrentTimeSec(H,!1,B),duration:A,isPlaying:AB(R.RE.get(),H).isPlaying(),isVpaid:!1,isYouTube:!0, volume:R.RE.get().isMuted()?0:R.RE.get().getVolume()/100}:{}}})}}; Gr=function(R,l){R.Z.has(l)?(R.Z.delete(l),delete yO().Z[l]):BR("Unexpected unregistration of layout in LidarApi")}; KmK=function(R,l){if(R.G.isLifaAdPlaying()){var y=R.G.vQ(!0,!0);R.Tz(l,y.width*.5*1.1,y.height*.25*1.1,y.width*.5*.9,y.height*.5*.9)}}; sVi=function(R,l,y){var f={};GzZ(R,f,l,y);a6Y(f);f.LACT=a4(function(){return uq().toString()}); f.VIS=a4(function(){return R.getVisibilityState().toString()}); f.SDKV="h.3.0";f.VOL=a4(function(){return R.isMuted()?"0":Math.round(R.getVolume()).toString()}); f.VED="";return f}; BHZ=function(R,l){var y={};if(l||!R||!R.kind)return y;if(R.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||R.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!R.adTimeOffset||!R.adTimeOffset.offsetStartMilliseconds)return g.Tw(Error("malformed AdPlacementConfig")),y;y.MIDROLL_POS=a4(rX(Math.round(zs(R.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else y.MIDROLL_POS=a4(rX("0"));return y}; a4=function(R){return{toString:function(){return R()}}}; HLY=function(R,l,y){function f(B,H){(H=y[H])&&(K[B]=H)} function A(B,H){(H=y[H])&&(K[B]=G(H))} if(!y||g.oL(y))return R;var K=Object.assign({},R),G=l?encodeURIComponent:function(B){return B}; A("DV_VIEWABILITY","doubleVerifyViewability");A("IAS_VIEWABILITY","integralAdsViewability");A("MOAT_INIT","moatInit");A("MOAT_VIEWABILITY","moatViewability");f("GOOGLE_VIEWABILITY","googleViewability");f("VIEWABILITY","viewability");return K}; GzZ=function(R,l,y,f){l.CPN=a4(function(){var A;(A=R.getVideoData(1))?A=A.clientPlaybackNonce:(g.dP(Error("Video data is null.")),A=null);return A}); l.AD_MT=a4(function(){if(f!=null)var A=f;else{var K=y;R.U().C("html5_ssap_use_cpn_to_get_time")||(K=void 0);if(R.U().C("enable_h5_shorts_ad_fill_ad_mt_macro")||R.U().C("enable_desktop_discovery_pings_ad_mt_macro")||g.sS(R.U())){var G=R.getPresentingPlayerType(!0),B;A=((B=R.getVideoData(G))==null?0:B.isAd())?nIJ(R,G,K):0}else A=nIJ(R,2,K)}return mVs(A)}); l.MT=a4(function(){return mVs(R.getCurrentTime(1,!1))}); l.P_H=a4(function(){return R.lQ().IJ().height.toString()}); l.P_W=a4(function(){return R.lQ().IJ().width.toString()}); l.PV_H=a4(function(){return R.lQ().getVideoContentRect().height.toString()}); l.PV_W=a4(function(){return R.lQ().getVideoContentRect().width.toString()})}; mVs=function(R){return Math.round(Math.max(0,R*1E3)).toString()}; a6Y=function(R){R.CONN=a4(rX("0"));R.WT=a4(function(){return Date.now().toString()})}; nIJ=function(R,l,y){return y!==void 0?R.getCurrentTime(l,!1,y):R.getCurrentTime(l,!1)}; oIj=function(){}; htc=function(R,l,y,f,A){var K,G,B,H,n,m,h,c,E,W,Q,e,r;g.w(function(d){switch(d.X){case 1:K=!!l.scrubReferrer;G=g.TS(l.baseUrl,HLY(y,K,f));B={};if(!l.headers){d.bQ(2);break}H=R.Y();if(!H.Z){n=H.getValue();d.bQ(3);break}return g.v(d,H.Z,4);case 4:n=d.Z;case 3:m=n;h=g.u(l.headers);for(c=h.next();!c.done;c=h.next())switch(E=c.value,E.headerType){case "VISITOR_ID":g.JZ("VISITOR_DATA")&&(B["X-Goog-Visitor-Id"]=g.JZ("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.JZ("EOM_VISITOR_DATA")&&(B["X-Goog-EOM-Visitor-Id"]= g.JZ("EOM_VISITOR_DATA"));break;case "USER_AUTH":m&&(B.Authorization="Bearer "+m);break;case "PLUS_PAGE_ID":(W=R.J())&&(B["X-Goog-PageId"]=W);break;case "AUTH_USER":Q=R.Z();!m&&Q&&(B["X-Goog-AuthUser"]=Q);break;case "DATASYNC_ID":if(e=void 0,(e=R.L())==null?0:e.EL("enable_datasync_id_header_in_web_vss_pings"))r=R.X(),G9(G)&&g.JZ("LOGGED_IN")&&r&&(B["X-YouTube-DataSync-Id"]=r)}"X-Goog-EOM-Visitor-Id"in B&&"X-Goog-Visitor-Id"in B&&delete B["X-Goog-Visitor-Id"];case 2:g.xS(G,void 0,K,Object.keys(B).length!== 0?B:void 0,"",!0,A),g.Q9(d)}})}; ciJ=function(R,l,y,f,A){this.Y=R;this.J=l;this.Z=y;this.X=f;this.L=A}; EIY=function(R,l){this.Z=R;this.aE=l}; BD=function(R,l,y,f,A,K,G){var B=B===void 0?new ciJ(function(){var H=R.U(),n=R.getVideoData(1);return g.OS(H,n?g.MD(n):"")},function(){return R.U().pageId},function(){return R.U().xb},function(){var H; return(H=R.U().datasyncId)!=null?H:""},function(){return R.U().experiments}):B; this.G=R;this.X=l;this.Y$=y;this.fX=f;this.gm=A;this.aE=K;this.tJ=G;this.Y=B;this.aP=null;this.Z=new Map;this.L=new EIY(B,this.aE)}; LmQ=function(R,l,y,f,A){var K=qj(R.X.get(),y);K?(y=Wt(R,Wms(K),K,void 0,void 0,f),l.hasOwnProperty("baseUrl")?R.Y.send(l,y):R.L.send(l,y,{},A)):BR("Trying to ping from an unknown layout",void 0,void 0,{layoutId:y})}; wyZ=function(R,l,y,f,A,K){f=f===void 0?[]:f;var G=qj(R.X.get(),l);if(G){var B=R.Y$.get().cE(l,y),H=Wt(R,Wms(G),G,A,K);f.forEach(function(n,m){n.baseUrl&&(R.L.send(n.baseUrl,H,B,n.attributionSrcMode),n.serializedAdPingMetadata&&R.gm.rF("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,G,new orq(n,m),void 0,void 0,G.adLayoutLoggingData))})}else BR("Trying to track from an unknown layout.",void 0,void 0,{layoutId:l, trackingType:y})}; Ht=function(R,l){R.G.sendVideoStatsEngageEvent(l,void 0,2)}; LZ=function(R,l){g.sE("adsClientStateChange",l)}; OLk=function(R,l){R.Z.has(l.Fm())?BR("Trying to register an existing AdErrorInfoSupplier."):R.Z.set(l.Fm(),l)}; iLj=function(R,l){R.Z.delete(l.Fm())||BR("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; Pf=function(R,l,y){typeof y==="string"?R.G.getVideoData(1).iD(l,y):R.G.getVideoData(1).T4(l,y)}; Wms=function(R){var l=Cm(R.clientMetadata,"metadata_type_ad_placement_config");R=Cm(R.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:l,qZ:R}}; Wt=function(R,l,y,f,A,K){var G=y?PvQ(R):{},B=y?uO7(R,y.layoutId):{},H=Fms(R),n,m=A!=null?A:(n=Io(R.fX.get(),2))==null?void 0:n.clientPlaybackNonce;A=void 0;if(y){var h;if((h=R.tJ.Z.get(y.layoutId))==null?0:h.lR)A=y.layoutId}h={};R=Object.assign({},sVi(R.G,A,f),BHZ(l.adPlacementConfig,(y==null?void 0:y.renderingContent)!==void 0),B,G,H,(h.FINAL=a4(function(){return"1"}),h.AD_CPN=a4(function(){return m||""}),h)); (y==null?void 0:y.renderingContent)!==void 0||(R.SLOT_POS=a4(function(){return(l.qZ||0).toString()})); y={};K=Object.assign({},R,K);R=g.u(Object.values(QVZ));for(f=R.next();!f.done;f=R.next())f=f.value,G=K[f],G!=null&&G.toString()!=null&&(y[f]=G.toString());return y}; PvQ=function(R){var l={},y,f=(y=R.aP)==null?void 0:y.TU/1E3;f!=null&&(l.SURVEY_ELAPSED_MS=a4(function(){return Math.round(f*1E3).toString()})); l.SURVEY_LOCAL_TIME_EPOCH_S=a4(function(){return Math.round(Date.now()/1E3).toString()}); return l}; uO7=function(R,l){R=R.Z.get(l);if(!R)return{};R=R.jF();if(!R)return{};l={};return l.YT_ERROR_CODE=R.u$.toString(),l.ERRORCODE=R.n6.toString(),l.ERROR_MSG=R.errorMessage,l}; Fms=function(R){var l={},y=R.G.getVideoData(1);l.ASR=a4(function(){var f;return(f=y==null?void 0:y.TK)!=null?f:null}); l.EI=a4(function(){var f;return(f=y==null?void 0:y.eventId)!=null?f:null}); return l}; HD=function(R,l,y){g.p.call(this);this.G=R;this.ST=l;this.aE=y;this.listeners=[];this.ew=null;this.SH=new Map;l=new g.QW(this);g.U(this,l);l.N(R,"videodatachange",this.DlS);l.N(R,"serverstitchedvideochange",this.Bcq);this.GO=Io(this)}; Io=function(R,l){var y=R.G.getVideoData(l);return y?R.O1(y,l||R.G.getPresentingPlayerType(!0)):null}; $VQ=function(R,l,y){var f=R.O1(l,y);R.GO=f;R.listeners.forEach(function(A){A.dU(f)})}; et7=function(R){switch(R){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}}; nh=function(R,l,y){g.p.call(this);this.G=R;this.fX=l;this.aE=y;this.listeners=[];this.Pg=[];this.Z=function(){BR("Called 'doUnlockPreroll' before it's initialized.")}; l=new eI(this);y=new g.QW(this);g.U(this,y);g.U(this,l);l.N(R,"progresssync",this.eEU);l.N(R,"presentingplayerstatechange",this.iAL);l.N(R,"fullscreentoggled",this.onFullscreenToggled);l.N(R,"onVolumeChange",this.onVolumeChange);l.N(R,"minimized",this.R9);l.N(R,"overlayvisibilitychange",this.W6);l.N(R,"shortsadswipe",this.UC);l.N(R,"resize",this.ub);y.N(R,g.Vx("appad"),this.AO)}; mZ=function(R){lm(R.aE.get())||R.Z()}; bLs=function(R,l){R.Pg=R.Pg.filter(function(y){return y!==l})}; o4=function(R,l,y){return R.getCurrentTimeSec(l,y)}; XHY=function(R,l){var y;l=(y=R.fX.get().SH.get(l))!=null?y:null;if(l===null)return BR("Expected ad video start time on playback timeline"),0;R=R.G.getCurrentTime(2,!0);return R0){var K=l.end.toString();A.forEach(function(G){(G=G.config&&G.config.adPlacementConfig)&&G.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&G.adTimeOffset&&G.adTimeOffset.offsetEndMilliseconds==="-1"&&G.adTimeOffset.offsetEndMilliseconds!==K&&(G.adTimeOffset.offsetEndMilliseconds=K)}); f.map(function(G){return g.k(G,A9)}).forEach(function(G){var B; (G=G==null?void 0:(B=G.slotEntryTrigger)==null?void 0:B.mediaTimeRangeTrigger)&&G.offsetEndMilliseconds==="-1"&&(G.offsetEndMilliseconds=K)})}return{EH:A, adSlots:f,jD:!1,ssdaiAdsConfig:R.ssdaiAdsConfig}}; Lh=function(R){g.p.call(this);this.G=R;this.listeners=[];this.Z=new eI(this);g.U(this,this.Z);this.Z.N(this.G,"aduxclicked",this.onAdUxClicked);this.Z.N(this.G,"aduxmouseover",this.kA);this.Z.N(this.G,"aduxmouseout",this.c_);this.Z.N(this.G,"muteadaccepted",this.gbS)}; ztj=function(R,l,y){l=g.L$(l,function(f){return new kIk(f,y,f.id)}); R.G.KX("onAdUxUpdate",l)}; Ow=function(R,l){R=g.u(R.listeners);for(var y=R.next();!y.done;y=R.next())l(y.value)}; im=function(R,l){this.X=R;this.L=l===void 0?!1:l;this.Z={}}; wHr=function(R,l){var y=R.startSecs+R.G9;y=y<=0?null:y;if(y===null)return null;switch(R.event){case "start":case "continue":case "stop":break;case "predictStart":if(l)break;return null;default:return null}l=Math.max(R.startSecs,0);return{Np:new u0(l,y),yR:new Gx(l,y-l,R.context,R.identifier,R.event,R.Z)}}; xVc=function(){this.Z=[]}; r7Z=function(R,l,y){var f=g.kU(R.Z,l);if(f>=0)return l;l=-f-1;return l>=R.Z.length||R.Z[l]>y?null:R.Z[l]}; PD=function(R,l,y){g.p.call(this);this.G=R;this.aE=l;this.g7=y;this.listeners=[];this.Y=!1;this.z7=[];this.Z=null;this.J=new im(this,CfK(l.get()));this.L=new xVc;this.X=null}; I6i=function(R,l){R.z7.push(l);for(var y=!1,f=g.u(R.listeners),A=f.next();!A.done;A=f.next())y=A.value.Q0(l)||y;R.Y=y;jw(R.aE.get())&&Pf(R.g7.get(),"onci","cpi."+l.identifier+";cpe."+l.event+";cps."+l.startSecs+";cbi."+y)}; pHq=function(R,l){LZ(R.g7.get(),{cuepointTrigger:{event:NHr(l.event),cuepointId:l.identifier,totalCueDurationMs:l.G9*1E3,playheadTimeMs:l.Z,cueStartTimeMs:l.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:R.G.getVideoData(1).clientPlaybackNonce}})}; NHr=function(R){switch(R){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 nG(R,"Unexpected cuepoint event")}}; um=function(R){this.G=R}; FW=function(R){this.G=R}; UVr=function(R){switch(R){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:nG(R,"unknown transitionReason")}}; QO=function(){g.p.apply(this,arguments)}; SKr=function(R){this.G=R}; jVK=function(R,l,y,f,A){g.p.call(this);var K=this,G=dw(function(){return new c5(K.aE)}); g.U(this,G);var B=dw(function(){return new W5(G,K.aE)}); g.U(this,B);var H=dw(function(){return new Vk}); g.U(this,H);var n=dw(function(){return new J9(R)}); g.U(this,n);var m=dw(function(){return new LN(G,B,K.aE)}); g.U(this,m);var h=dw(function(){return new Ff}); g.U(this,h);this.mj=dw(function(){return new Lh(l)}); g.U(this,this.mj);this.JF=dw(function(){return new vl(A)}); g.U(this,this.JF);this.aV=dw(function(){return new qP(l)}); g.U(this,this.aV);this.Fc=dw(function(){return new tw(l)}); g.U(this,this.Fc);this.L_=dw(function(){return new Yu(l)}); g.U(this,this.L_);this.dc=dw(function(){return new MP(l)}); g.U(this,this.dc);this.aE=dw(function(){return new R4(l)}); g.U(this,this.aE);var c=dw(function(){return new WD(f)}); g.U(this,c);var E=dw(function(){return new fd(K.aE)}); g.U(this,E);this.eY=dw(function(){return new um(l)}); g.U(this,this.eY);this.rL=dw(function(){return new xC}); g.U(this,this.rL);this.fX=dw(function(){return new HD(l,h,K.aE)}); g.U(this,this.fX);var W=VB({fX:this.fX,aE:this.aE,Hh:E}),Q=W.context,e=W.tJ;this.gm=W.gm;this.j_=dw(function(){return new PD(l,K.aE,K.g7)}); g.U(this,this.j_);this.ZN=dw(function(){return new FW(l)}); g.U(this,this.ZN);this.RE=dw(function(){return new nh(l,K.fX,K.aE)}); g.U(this,this.RE);this.xr=dw(function(){return new QO}); g.U(this,this.xr);W=dw(function(){return new IU(G,m,B,K.aE,E,"SLOT_TYPE_ABOVE_FEED",K.RE,K.G8,K.jI)}); g.U(this,W);this.zD=dw(function(){return new II(K.aE)}); this.Y$=dw(function(){return new fh(K.RE,l,K.aE)}); g.U(this,this.Y$);this.g7=dw(function(){return new BD(l,H,K.Y$,K.fX,K.gm,K.aE,e)}); g.U(this,this.g7);this.Au=new DX(ks,$4,function(d,z,N,D){return Ls(B.get(),d,z,N,D)},n,m,B,E,this.aE,this.fX); g.U(this,this.Au);this.Xh=new ZX(n,W,y,this.aE,R,this.fX,this.RE,this.aV);g.U(this,this.Xh);var r=new CP(l,this.Xh,this.RE,this.fX,this.j_);this.DK=dw(function(){return r}); this.QB=r;this.G8=new Ua(n,m,this.DK,this.j_,this.RE,this.aE,this.g7,this.ZN);g.U(this,this.G8);this.oT=new gm(n,m,this.Fc,this.DK,Q);g.U(this,this.oT);this.Y6=new fs(this.aE,n,m,W,this.fX,this.oT,y,this.L_);g.U(this,this.Y6);this.XM=dw(function(){return new lQ(c,B,E,K.aE,K.g7,K.RE,K.ZN)}); g.U(this,this.XM);this.wQ=dw(function(){return new yZ}); g.U(this,this.wQ);this.X0=new lL(R,this.mj,this.aE);g.U(this,this.X0);this.WZ=new yP(R);g.U(this,this.WZ);this.LV=new fN(R);g.U(this,this.LV);this.ND=new KN(R,this.DK,Q);g.U(this,this.ND);this.Nj=new G5(R,this.Fc,this.RE,this.fX,Q);g.U(this,this.Nj);this.iT=new a0(R,this.fX);g.U(this,this.iT);this.jI=new H5(R,this.j_,this.RE,this.g7,this.DK);g.U(this,this.jI);this.XR=new s$(R);g.U(this,this.XR);this.bj=new hk(R);g.U(this,this.bj);this.z8=new B5(R);g.U(this,this.z8);this.YY=new o0(R);g.U(this,this.YY); this.bj=new hk(R);g.U(this,this.bj);this.rQ=dw(function(){return new t9}); g.U(this,this.rQ);this.W$=dw(function(){return new Ys(K.RE)}); g.U(this,this.W$);this.bF=dw(function(){return new ltT(K.mj,K.g7,R,H,K.Y$)}); g.U(this,this.bF);this.Zm=dw(function(){return new Uz(K.Y6,n,G)}); g.U(this,this.Zm);this.ys=dw(function(){return new kX(K.aE,K.g7,K.XR,K.Y$)}); g.U(this,this.ys);this.NL=dw(function(){return new XA(R,K.bj,K.XR,K.fX,K.ZN,K.RE,K.xr,K.g7,h,K.j_,K.Y$,K.zD,K.L_,K.Fc,K.aV,K.dc,K.JF,K.eY,K.aE,H,Q,e)}); g.U(this,this.NL);this.cH=dw(function(){return new ceT(K.RE,K.g7,K.JF,K.aE,K.Y$,K.fX)}); g.U(this,this.cH);this.SP=dw(function(){return new yVk(K.mj,K.RE,K.g7,H,K.Y$,K.LV,K.YY,K.JF,K.aE,y)}); g.U(this,this.SP);this.N7=dw(function(){return new yec(K.mj,K.g7,H)}); g.U(this,this.N7);this.Er=new Ew(R,this.rL,G);g.U(this,this.Er);this.vE={UQ:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Y6],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.G8],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Au],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Xh],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.oT]]),FD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.XM],["SLOT_TYPE_ABOVE_FEED",this.wQ],["SLOT_TYPE_FORECASTING",this.wQ], ["SLOT_TYPE_IN_PLAYER",this.wQ],["SLOT_TYPE_PLAYER_BYTES",this.wQ],["SLOT_TYPE_PLAYER_UNDERLAY",this.wQ],["SLOT_TYPE_PLAYBACK_TRACKING",this.wQ],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.wQ]]),HO:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.X0],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.X0],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.WZ],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.WZ],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.WZ],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.WZ],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.WZ],["TRIGGER_TYPE_SLOT_ID_EXITED",this.WZ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.WZ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.WZ],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.WZ],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.WZ],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.WZ],["TRIGGER_TYPE_CLOSE_REQUESTED",this.LV],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.ND],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Nj],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.Nj],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Nj],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Nj],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Nj],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Nj],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Nj],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.iT],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.iT],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.XR],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.ND],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.z8],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.YY],["TRIGGER_TYPE_AD_BREAK_STARTED",this.bj],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.jI],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.jI],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.jI],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.jI],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.jI]]),Hi:new Map([["SLOT_TYPE_ABOVE_FEED",this.rQ], ["SLOT_TYPE_AD_BREAK_REQUEST",this.rQ],["SLOT_TYPE_FORECASTING",this.rQ],["SLOT_TYPE_IN_PLAYER",this.rQ],["SLOT_TYPE_PLAYER_BYTES",this.W$],["SLOT_TYPE_PLAYER_UNDERLAY",this.rQ],["SLOT_TYPE_PLAYBACK_TRACKING",this.rQ],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.rQ]]),Xt:new Map([["SLOT_TYPE_ABOVE_FEED",this.bF],["SLOT_TYPE_AD_BREAK_REQUEST",this.Zm],["SLOT_TYPE_FORECASTING",this.ys],["SLOT_TYPE_PLAYER_BYTES",this.NL],["SLOT_TYPE_PLAYBACK_TRACKING",this.cH],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.cH],["SLOT_TYPE_IN_PLAYER",this.SP],["SLOT_TYPE_PLAYER_UNDERLAY",this.N7]])};this.listeners=[H.get()];this.bD={Y6:this.Y6,sN:this.aE.get(),d7:this.JF.get(),EQ:this.RE.get(),Xh:this.Xh,oK:G.get(),Y5:this.rL.get(),ma:this.X0,NC:H.get(),uO:this.fX.get()}}; kzc=function(R,l,y,f,A){g.p.call(this);var K=this,G=dw(function(){return new c5(K.aE)}); g.U(this,G);var B=dw(function(){return new W5(G,K.aE)}); g.U(this,B);var H=dw(function(){return new Vk}); g.U(this,H);var n=dw(function(){return new J9(R)}); g.U(this,n);var m=dw(function(){return new LN(G,B,K.aE)}); g.U(this,m);var h=dw(function(){return new Ff}); g.U(this,h);this.mj=dw(function(){return new Lh(l)}); g.U(this,this.mj);this.JF=dw(function(){return new vl(A)}); g.U(this,this.JF);this.aV=dw(function(){return new qP(l)}); g.U(this,this.aV);this.Fc=dw(function(){return new tw(l)}); g.U(this,this.Fc);this.L_=dw(function(){return new Yu(l)}); g.U(this,this.L_);this.dc=dw(function(){return new MP(l)}); g.U(this,this.dc);this.aE=dw(function(){return new R4(l)}); g.U(this,this.aE);var c=dw(function(){return new WD(f)}); g.U(this,c);var E=dw(function(){return new fd(K.aE)}); g.U(this,E);var W=dw(function(){return new IU(G,m,B,K.aE,E,null,null,K.G8,K.jI)}); g.U(this,W);this.eY=dw(function(){return new um(l)}); g.U(this,this.eY);this.rL=dw(function(){return new xC}); g.U(this,this.rL);this.fX=dw(function(){return new HD(l,h,K.aE)}); g.U(this,this.fX);var Q=VB({fX:this.fX,aE:this.aE,Hh:E}),e=Q.context,r=Q.tJ;this.gm=Q.gm;this.j_=dw(function(){return new PD(l,K.aE,K.g7)}); this.RE=dw(function(){return new nh(l,K.fX,K.aE)}); g.U(this,this.RE);this.xr=dw(function(){return new QO}); g.U(this,this.xr);this.Y$=dw(function(){return new fh(K.RE,l,K.aE)}); g.U(this,this.Y$);this.g7=dw(function(){return new BD(l,H,K.Y$,K.fX,K.gm,K.aE,r)}); g.U(this,this.g7);this.zD=dw(function(){return new II(K.aE)}); g.U(this,this.zD);this.Au=new DX(ks,$4,function(z,N,D,t){return Ls(B.get(),z,N,D,t)},n,m,B,E,this.aE,this.fX); g.U(this,this.Au);this.Xh=new ZX(n,W,y,this.aE,R,this.fX,this.RE,this.aV);g.U(this,this.Xh);var d=new CP(l,this.Xh,this.RE,this.fX,this.j_);this.DK=dw(function(){return d}); this.QB=d;this.G8=new Ua(n,m,this.DK,this.j_,this.RE,this.aE,this.g7);g.U(this,this.G8);this.oT=new gm(n,m,this.Fc,this.DK,e);g.U(this,this.oT);this.Y6=new fs(this.aE,n,m,W,this.fX,this.oT,y,this.L_);g.U(this,this.Y6);this.XM=dw(function(){return new lQ(c,B,E,K.aE,K.g7,K.RE)}); g.U(this,this.XM);this.wQ=dw(function(){return new yZ}); g.U(this,this.wQ);this.X0=new lL(R,this.mj,this.aE);g.U(this,this.X0);this.WZ=new yP(R);g.U(this,this.WZ);this.LV=new fN(R);g.U(this,this.LV);this.ND=new KN(R,this.DK,e);g.U(this,this.ND);this.Nj=new G5(R,this.Fc,this.RE,this.fX,e);g.U(this,this.Nj);this.XR=new s$(R);g.U(this,this.XR);this.z8=new B5(R);g.U(this,this.z8);this.YY=new o0(R);g.U(this,this.YY);this.ZN=dw(function(){return new FW(l)}); g.U(this,this.ZN);this.bj=new hk(R);g.U(this,this.bj);this.jI=new H5(R,this.j_,this.RE,this.g7,this.DK);g.U(this,this.jI);this.rQ=dw(function(){return new t9}); g.U(this,this.rQ);this.W$=dw(function(){return new Ys(K.RE)}); g.U(this,this.W$);this.Zm=dw(function(){return new Uz(K.Y6,n,G)}); g.U(this,this.Zm);this.ys=dw(function(){return new kX(K.aE,K.g7,K.XR,K.Y$)}); g.U(this,this.ys);this.SP=dw(function(){return new f3Y(K.mj,K.RE,K.g7,H,K.Y$,K.LV,K.YY,K.JF,K.aE,y)}); g.U(this,this.SP);this.NL=dw(function(){return new T3(R,K.bj,K.XR,K.g7,K.Y$,K.zD,K.L_,K.fX,K.RE,K.xr,K.Fc,K.aV,K.dc,K.JF,K.eY,K.aE,K.ZN,e,r)}); g.U(this,this.NL);this.Er=new Ew(R,this.rL,G);g.U(this,this.Er);this.vE={UQ:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Y6],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.G8],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Au],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Xh],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.oT]]),FD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.XM],["SLOT_TYPE_FORECASTING",this.wQ],["SLOT_TYPE_IN_PLAYER",this.wQ], ["SLOT_TYPE_PLAYER_BYTES",this.wQ]]),HO:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.X0],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.WZ],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.WZ],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.WZ],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.WZ],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.WZ],["TRIGGER_TYPE_SLOT_ID_EXITED",this.WZ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.WZ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.WZ],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.WZ], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.WZ],["TRIGGER_TYPE_CLOSE_REQUESTED",this.LV],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.ND],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Nj],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Nj],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Nj],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.XR],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.ND],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.z8],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.YY],["TRIGGER_TYPE_AD_BREAK_STARTED",this.bj],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.jI],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.jI],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.jI],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.jI],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.jI]]),Hi:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rQ],["SLOT_TYPE_FORECASTING",this.rQ],["SLOT_TYPE_IN_PLAYER",this.rQ],["SLOT_TYPE_PLAYER_BYTES",this.W$]]), Xt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zm],["SLOT_TYPE_FORECASTING",this.ys],["SLOT_TYPE_IN_PLAYER",this.SP],["SLOT_TYPE_PLAYER_BYTES",this.NL]])};this.listeners=[H.get()];this.bD={Y6:this.Y6,sN:this.aE.get(),d7:this.JF.get(),EQ:this.RE.get(),Xh:this.Xh,oK:G.get(),Y5:this.rL.get(),ma:this.X0,NC:H.get(),uO:this.fX.get()}}; DVo=function(R,l,y,f,A){g.p.call(this);var K=this,G=dw(function(){return new c5(K.aE)}); g.U(this,G);var B=dw(function(){return new W5(G,K.aE)}); g.U(this,B);var H=dw(function(){return new Vk}); g.U(this,H);var n=dw(function(){return new J9(R)}); g.U(this,n);var m=dw(function(){return new LN(G,B,K.aE)}); g.U(this,m);var h=dw(function(){return new Ff}); g.U(this,h);this.mj=dw(function(){return new Lh(l)}); g.U(this,this.mj);this.JF=dw(function(){return new vl(A)}); g.U(this,this.JF);this.aV=dw(function(){return new qP(l)}); g.U(this,this.aV);this.Fc=dw(function(){return new tw(l)}); g.U(this,this.Fc);this.L_=dw(function(){return new Yu(l)}); g.U(this,this.L_);this.dc=dw(function(){return new MP(l)}); g.U(this,this.dc);this.aE=dw(function(){return new R4(l)}); g.U(this,this.aE);var c=dw(function(){return new WD(f)}); g.U(this,c);var E=dw(function(){return new fd(K.aE)}); g.U(this,E);var W=dw(function(){return new IU(G,m,B,K.aE,E,null,null,null,null)}); g.U(this,W);this.eY=dw(function(){return new um(l)}); g.U(this,this.eY);this.fX=dw(function(){return new HD(l,h,K.aE)}); g.U(this,this.fX);var Q=VB({fX:this.fX,aE:this.aE,Hh:E}),e=Q.context,r=Q.tJ;this.gm=Q.gm;this.RE=dw(function(){return new nh(l,K.fX,K.aE)}); g.U(this,this.RE);this.xr=dw(function(){return new QO}); g.U(this,this.xr);this.Y$=dw(function(){return new fh(K.RE,l,K.aE)}); g.U(this,this.Y$);this.g7=dw(function(){return new BD(l,H,K.Y$,K.fX,K.gm,K.aE,r)}); g.U(this,this.g7);this.zD=dw(function(){return new II(K.aE)}); g.U(this,this.zD);this.Au=new DX(ks,$4,function(z,N,D,t){return Ls(B.get(),z,N,D,t)},n,m,B,E,this.aE,this.fX); g.U(this,this.Au);this.Xh=new ZX(n,W,y,this.aE,R,this.fX,this.RE,this.aV);g.U(this,this.Xh);var d=new CP(l,this.Xh,this.RE,this.fX);this.DK=dw(function(){return d}); this.QB=d;this.oT=new gm(n,m,this.Fc,this.DK,e);g.U(this,this.oT);this.Y6=new fs(this.aE,n,m,W,this.fX,this.oT,y,this.L_);g.U(this,this.Y6);this.XM=dw(function(){return new lQ(c,B,E,K.aE,K.g7,K.RE)}); g.U(this,this.XM);this.wQ=dw(function(){return new yZ}); g.U(this,this.wQ);this.X0=new lL(R,this.mj,this.aE);g.U(this,this.X0);this.WZ=new yP(R);g.U(this,this.WZ);this.ND=new KN(R,this.DK,e);g.U(this,this.ND);this.Nj=new G5(R,this.Fc,this.RE,this.fX,e);g.U(this,this.Nj);this.XR=new s$(R);g.U(this,this.XR);this.z8=new B5(R);g.U(this,this.z8);this.ZN=dw(function(){return new FW(l)}); g.U(this,this.ZN);this.bj=new hk(R);g.U(this,this.bj);this.rQ=dw(function(){return new t9}); g.U(this,this.rQ);this.W$=dw(function(){return new Ys(K.RE)}); g.U(this,this.W$);this.Zm=dw(function(){return new Uz(K.Y6,n,G)}); g.U(this,this.Zm);this.ys=dw(function(){return new kX(K.aE,K.g7,K.XR,K.Y$)}); g.U(this,this.ys);this.J4=dw(function(){return new hdK(K.mj,K.RE,K.g7,H,y,K.aE)}); g.U(this,this.J4);this.NL=dw(function(){return new T3(R,K.bj,K.XR,K.g7,K.Y$,K.zD,K.L_,K.fX,K.RE,K.xr,K.Fc,K.aV,K.dc,K.JF,K.eY,K.aE,K.ZN,e,r)}); g.U(this,this.NL);this.vE={UQ:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Y6],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Au],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Xh],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.oT]]),FD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.XM],["SLOT_TYPE_FORECASTING",this.wQ],["SLOT_TYPE_IN_PLAYER",this.wQ],["SLOT_TYPE_PLAYER_BYTES",this.wQ]]),HO:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.X0],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.WZ],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.WZ],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.WZ],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.WZ],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.WZ],["TRIGGER_TYPE_SLOT_ID_EXITED",this.WZ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.WZ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.WZ],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.WZ],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.ND],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Nj],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Nj],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.XR],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.ND],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.z8],["TRIGGER_TYPE_AD_BREAK_STARTED",this.bj]]),Hi:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rQ],["SLOT_TYPE_ABOVE_FEED",this.rQ],["SLOT_TYPE_FORECASTING",this.rQ],["SLOT_TYPE_IN_PLAYER",this.rQ],["SLOT_TYPE_PLAYER_BYTES",this.W$]]),Xt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zm],["SLOT_TYPE_FORECASTING",this.ys],["SLOT_TYPE_IN_PLAYER", this.J4],["SLOT_TYPE_PLAYER_BYTES",this.NL]])};this.listeners=[H.get()];this.bD={Y6:this.Y6,sN:this.aE.get(),d7:this.JF.get(),EQ:this.RE.get(),Xh:this.Xh,oK:G.get(),Y5:null,ma:this.X0,NC:H.get(),uO:this.fX.get()}}; ZLq=function(R,l,y,f,A){g.p.call(this);var K=this,G=dw(function(){return new c5(K.aE)}); g.U(this,G);var B=dw(function(){return new W5(G,K.aE)}); g.U(this,B);var H=dw(function(){return new Vk}); g.U(this,H);var n=dw(function(){return new J9(R)}); g.U(this,n);var m=dw(function(){return new LN(G,B,K.aE)}); g.U(this,m);var h=dw(function(){return new Ff}); g.U(this,h);this.aL=dw(function(){return new SKr(l)}); g.U(this,this.aL);this.mj=dw(function(){return new Lh(l)}); g.U(this,this.mj);this.JF=dw(function(){return new vl(A)}); g.U(this,this.JF);this.aV=dw(function(){return new qP(l)}); g.U(this,this.aV);this.Fc=dw(function(){return new tw(l)}); g.U(this,this.Fc);this.L_=dw(function(){return new Yu(l)}); g.U(this,this.L_);this.dc=dw(function(){return new MP(l)}); g.U(this,this.dc);this.aE=dw(function(){return new R4(l)}); g.U(this,this.aE);var c=dw(function(){return new WD(f)}); g.U(this,c);var E=dw(function(){return new fd(K.aE)}); g.U(this,E);var W=dw(function(){return new IU(G,m,B,K.aE,E,null,null,null,null)}); g.U(this,W);this.eY=dw(function(){return new um(l)}); g.U(this,this.eY);this.fX=dw(function(){return new HD(l,h,K.aE)}); g.U(this,this.fX);var Q=VB({fX:this.fX,aE:this.aE,Hh:E}),e=Q.context,r=Q.tJ;this.gm=Q.gm;this.RE=dw(function(){return new nh(l,K.fX,K.aE)}); g.U(this,this.RE);this.xr=dw(function(){return new QO}); g.U(this,this.xr);this.Y$=dw(function(){return new fh(K.RE,l,K.aE)}); g.U(this,this.Y$);this.g7=dw(function(){return new BD(l,H,K.Y$,K.fX,K.gm,K.aE,r)}); g.U(this,this.g7);this.zD=dw(function(){return new II(K.aE)}); g.U(this,this.zD);this.Au=new DX(kMQ,$4,function(z,N,D,t){return m0Q(B.get(),z,N,D,t)},n,m,B,E,this.aE,this.fX); g.U(this,this.Au);this.Xh=new ZX(n,W,y,this.aE,R,this.fX,this.RE,this.aV);g.U(this,this.Xh);var d=new CP(l,this.Xh,this.RE,this.fX);this.DK=dw(function(){return d}); this.QB=d;this.oT=new gm(n,m,this.Fc,this.DK,e);g.U(this,this.oT);this.Y6=new fs(this.aE,n,m,W,this.fX,this.oT,y,this.L_);g.U(this,this.Y6);this.XM=dw(function(){return new lQ(c,B,E,K.aE,K.g7,K.RE)}); g.U(this,this.XM);this.wQ=dw(function(){return new yZ}); g.U(this,this.wQ);this.X0=new lL(R,this.mj,this.aE);g.U(this,this.X0);this.WZ=new yP(R);g.U(this,this.WZ);this.ND=new KN(R,this.DK,e);g.U(this,this.ND);this.Nj=new G5(R,this.Fc,this.RE,this.fX,e);g.U(this,this.Nj);this.XR=new s$(R);g.U(this,this.XR);this.z8=new B5(R);g.U(this,this.z8);this.ZN=dw(function(){return new FW(l)}); g.U(this,this.ZN);this.bj=new hk(R);g.U(this,this.bj);this.rQ=dw(function(){return new t9}); g.U(this,this.rQ);this.W$=dw(function(){return new Ys(K.RE)}); g.U(this,this.W$);this.Zm=dw(function(){return new Uz(K.Y6,n,G)}); g.U(this,this.Zm);this.ys=dw(function(){return new kX(K.aE,K.g7,K.XR,K.Y$)}); g.U(this,this.ys);this.NL=dw(function(){return new T3(R,K.bj,K.XR,K.g7,K.Y$,K.zD,K.L_,K.fX,K.RE,K.xr,K.Fc,K.aV,K.dc,K.JF,K.eY,K.aE,K.ZN,e,r)}); g.U(this,this.NL);this.q7=dw(function(){return new Kd7(K.mj,K.RE,K.g7,H,K.aL,y,K.fX)}); g.U(this,this.q7);this.vE={UQ:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Y6],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Au],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Xh],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.oT]]),FD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.XM],["SLOT_TYPE_FORECASTING",this.wQ],["SLOT_TYPE_IN_PLAYER",this.wQ],["SLOT_TYPE_PLAYER_BYTES",this.wQ]]),HO:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.X0],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.WZ],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.WZ],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.WZ],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.WZ],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.WZ],["TRIGGER_TYPE_SLOT_ID_EXITED",this.WZ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.WZ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.WZ],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.WZ],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.ND],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Nj],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Nj],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.XR],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.ND],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.z8],["TRIGGER_TYPE_AD_BREAK_STARTED",this.bj]]),Hi:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rQ],["SLOT_TYPE_FORECASTING",this.rQ],["SLOT_TYPE_IN_PLAYER",this.rQ],["SLOT_TYPE_PLAYER_BYTES",this.W$]]),Xt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zm],["SLOT_TYPE_FORECASTING",this.ys],["SLOT_TYPE_IN_PLAYER",this.q7],["SLOT_TYPE_PLAYER_BYTES", this.NL]])};this.listeners=[H.get()];this.bD={Y6:this.Y6,sN:this.aE.get(),d7:this.JF.get(),EQ:this.RE.get(),Xh:this.Xh,oK:G.get(),Y5:null,ma:this.X0,NC:H.get(),uO:this.fX.get()}}; Jii=function(R,l,y,f,A){g.p.call(this);var K=this,G=dw(function(){return new c5(K.aE)}); g.U(this,G);var B=dw(function(){return new W5(G,K.aE)}); g.U(this,B);var H=dw(function(){return new Vk}); g.U(this,H);var n=dw(function(){return new J9(R)}); g.U(this,n);var m=dw(function(){return new LN(G,B,K.aE)}); g.U(this,m);var h=dw(function(){return new Ff}); g.U(this,h);this.aL=dw(function(){return new SKr(l)}); g.U(this,this.aL);this.mj=dw(function(){return new Lh(l)}); g.U(this,this.mj);this.JF=dw(function(){return new vl(A)}); g.U(this,this.JF);this.aV=dw(function(){return new qP(l)}); g.U(this,this.aV);this.Fc=dw(function(){return new tw(l)}); g.U(this,this.Fc);this.L_=dw(function(){return new Yu(l)}); g.U(this,this.L_);this.dc=dw(function(){return new MP(l)}); g.U(this,this.dc);this.aE=dw(function(){return new R4(l)}); g.U(this,this.aE);var c=dw(function(){return new WD(f)}); g.U(this,c);var E=dw(function(){return new fd(K.aE)}); g.U(this,E);this.eY=dw(function(){return new um(l)}); g.U(this,this.eY);this.fX=dw(function(){return new HD(l,h,K.aE)}); g.U(this,this.fX);var W=VB({fX:this.fX,aE:this.aE,Hh:E}),Q=W.context,e=W.tJ;this.gm=W.gm;this.j_=dw(function(){return new PD(l,K.aE,K.g7)}); g.U(this,this.j_);this.ZN=dw(function(){return new FW(l)}); g.U(this,this.ZN);this.RE=dw(function(){return new nh(l,K.fX,K.aE)}); g.U(this,this.RE);this.xr=dw(function(){return new QO}); g.U(this,this.xr);W=dw(function(){return new IU(G,m,B,K.aE,E,null,K.RE,K.G8,K.jI,3)}); g.U(this,W);this.zD=dw(function(){return new II(K.aE)}); this.Y$=dw(function(){return new fh(K.RE,l,K.aE)}); g.U(this,this.Y$);this.g7=dw(function(){return new BD(l,H,K.Y$,K.fX,K.gm,K.aE,e)}); g.U(this,this.g7);this.Xh=new ZX(n,W,y,this.aE,R,this.fX,this.RE,this.aV);g.U(this,this.Xh);var r=new CP(l,this.Xh,this.RE,this.fX,this.j_);this.DK=dw(function(){return r}); this.QB=r;this.Au=new DX(D7o,$4,function(d,z,N,D){return m0Q(B.get(),d,z,N,D)},n,m,B,E,this.aE,this.fX); g.U(this,this.Au);this.G8=new Ua(n,m,this.DK,this.j_,this.RE,this.aE,this.g7,this.ZN);g.U(this,this.G8);this.oT=new gm(n,m,this.Fc,this.DK,Q);g.U(this,this.oT);this.Y6=new fs(this.aE,n,m,W,this.fX,this.oT,y,this.L_);g.U(this,this.Y6);this.XM=dw(function(){return new lQ(c,B,E,K.aE,K.g7,K.RE,K.ZN)}); g.U(this,this.XM);this.wQ=dw(function(){return new yZ}); g.U(this,this.wQ);this.X0=new lL(R,this.mj,this.aE);g.U(this,this.X0);this.WZ=new yP(R);g.U(this,this.WZ);this.ND=new KN(R,this.DK,Q);g.U(this,this.ND);this.Nj=new G5(R,this.Fc,this.RE,this.fX,Q);g.U(this,this.Nj);this.iT=new a0(R,this.fX);g.U(this,this.iT);this.jI=new H5(R,this.j_,this.RE,this.g7,this.DK);g.U(this,this.jI);this.XR=new s$(R);g.U(this,this.XR);this.z8=new B5(R);g.U(this,this.z8);this.bj=new hk(R);g.U(this,this.bj);this.rQ=dw(function(){return new t9}); g.U(this,this.rQ);this.W$=dw(function(){return new Ys(K.RE)}); g.U(this,this.W$);this.Zm=dw(function(){return new Uz(K.Y6,n,G)}); g.U(this,this.Zm);this.ys=dw(function(){return new kX(K.aE,K.g7,K.XR,K.Y$)}); g.U(this,this.ys);this.NL=dw(function(){return new XA(R,K.bj,K.XR,K.fX,K.ZN,K.RE,K.xr,K.g7,h,K.j_,K.Y$,K.zD,K.L_,K.Fc,K.aV,K.dc,K.JF,K.eY,K.aE,H,Q,e)}); g.U(this,this.NL);this.SP=dw(function(){return new GBT(K.mj,K.RE,K.g7,H,K.aL,y,K.aE,K.fX)}); g.U(this,this.SP);this.vE={UQ:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Y6],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.G8],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Au],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Xh],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.oT]]),FD:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.XM],["SLOT_TYPE_FORECASTING",this.wQ],["SLOT_TYPE_IN_PLAYER",this.wQ],["SLOT_TYPE_PLAYER_BYTES",this.wQ]]),HO:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.X0],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.WZ],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.WZ],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.WZ],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.WZ],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.WZ],["TRIGGER_TYPE_SLOT_ID_EXITED",this.WZ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.WZ],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.WZ],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.WZ],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.ND],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.Nj],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Nj],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.iT],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.iT],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.XR],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.ND],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.z8],["TRIGGER_TYPE_AD_BREAK_STARTED",this.bj],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.jI],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.jI],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.jI],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.jI],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.jI]]),Hi:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.rQ],["SLOT_TYPE_FORECASTING",this.rQ],["SLOT_TYPE_IN_PLAYER",this.rQ],["SLOT_TYPE_PLAYER_BYTES",this.W$]]),Xt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zm],["SLOT_TYPE_FORECASTING",this.ys],["SLOT_TYPE_PLAYER_BYTES",this.NL],["SLOT_TYPE_IN_PLAYER",this.SP]])};this.listeners=[H.get()]; this.bD={Y6:this.Y6,sN:this.aE.get(),d7:this.JF.get(),EQ:this.RE.get(),Xh:this.Xh,oK:G.get(),Y5:null,ma:this.X0,NC:H.get(),uO:this.fX.get()}}; Vzs=function(R,l,y,f){function A(){return K.X} g.p.call(this);var K=this;R.U().experiments.EL("html5_dispose_of_manager_before_dependency")?(this.Z=gI7(A,R,l,y,f),this.X=(new rw(this.Z)).L(),g.U(this,this.X),g.U(this,this.Z)):(this.Z=gI7(A,R,l,y,f),g.U(this,this.Z),this.X=(new rw(this.Z)).L(),g.U(this,this.X))}; eQ=function(R){return R.Z.bD}; gI7=function(R,l,y,f,A){try{var K=l.U();if(g.Hm(K))var G=new jVK(R,l,y,f,A);else if(g.oG(K))G=new kzc(R,l,y,f,A);else if(yV(K))G=new DVo(R,l,y,f,A);else if(g.xi(K))G=new ZLq(R,l,y,f,A);else if(g.qE(K))G=new Jii(R,l,y,f,A);else throw new TypeError("Unknown web interface");return G}catch(B){return G=l.U(),BR("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:G.Z.cplatform,interface:G.Z.c,zrx:G.Z.cver,oOQ:G.Z.ctheme,jBU:G.Z.cplayer,Q47:G.playerStyle}),new riT(R,l,y,f,A)}}; Cvj=function(R){jW.call(this,R)}; qKY=function(R,l,y,f,A){qF.call(this,R,{T:"div",j:"ytp-ad-timed-pie-countdown-container",S:[{T:"svg",j:"ytp-ad-timed-pie-countdown",K:{viewBox:"0 0 20 20"},S:[{T:"circle",j:"ytp-ad-timed-pie-countdown-background",K:{r:"10",cx:"10",cy:"10"}},{T:"circle",j:"ytp-ad-timed-pie-countdown-inner",K:{r:"5",cx:"10",cy:"10"}},{T:"circle",j:"ytp-ad-timed-pie-countdown-outer",K:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",l,y,f,A);this.Y=this.pX("ytp-ad-timed-pie-countdown-container");this.L=this.pX("ytp-ad-timed-pie-countdown-inner"); this.D=this.pX("ytp-ad-timed-pie-countdown-outer");this.X=Math.ceil(2*Math.PI*5);this.hide()}; tzk=function(R,l,y,f,A,K){HB.call(this,R,{T:"div",j:"ytp-ad-action-interstitial",K:{tabindex:"0"},S:[{T:"div",j:"ytp-ad-action-interstitial-background-container"},{T:"div",j:"ytp-ad-action-interstitial-slot",S:[{T:"div",j:"ytp-ad-action-interstitial-instream-info"},{T:"div",j:"ytp-ad-action-interstitial-card",S:[{T:"div",j:"ytp-ad-action-interstitial-image-container"},{T:"div",j:"ytp-ad-action-interstitial-headline-container"},{T:"div",j:"ytp-ad-action-interstitial-description-container"},{T:"div", j:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",l,y,f);this.M9=A;this.iI=K;this.navigationEndpoint=this.Z=this.skipButton=this.X=this.actionButton=null;this.v1=this.pX("ytp-ad-action-interstitial-instream-info");this.CX=this.pX("ytp-ad-action-interstitial-image-container");this.B=new NF(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,"ytp-ad-action-interstitial-image");g.U(this,this.B);this.B.JU(this.CX);this.sL=this.pX("ytp-ad-action-interstitial-headline-container"); this.D=new VN(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,"ytp-ad-action-interstitial-headline");g.U(this,this.D);this.D.JU(this.sL);this.Yb=this.pX("ytp-ad-action-interstitial-description-container");this.L=new VN(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,"ytp-ad-action-interstitial-description");g.U(this,this.L);this.L.JU(this.Yb);this.uQ=this.pX("ytp-ad-action-interstitial-background-container");this.jS=new NF(this.api,this.layoutId,this.interactionLoggingClientData, this.d7,"ytp-ad-action-interstitial-background",!0);g.U(this,this.jS);this.jS.JU(this.uQ);this.W1=this.pX("ytp-ad-action-interstitial-action-button-container");this.slot=this.pX("ytp-ad-action-interstitial-slot");this.gx=this.pX("ytp-ad-action-interstitial-card");this.Y=new eI;g.U(this,this.Y);this.hide()}; YK9=function(R){var l=g.aA("html5-video-player");l&&g.BJ(l,"ytp-ad-display-override",R)}; ycU=function(R,l,y,f){HB.call(this,R,{T:"div",j:"ytp-ad-overlay-slot",S:[{T:"div",j:"ytp-ad-overlay-container"}]},"invideo-overlay",l,y,f);this.B=[];this.uQ=this.sL=this.Y=this.W1=this.v1=null;this.jS=!1;this.D=null;this.Yb=0;R=this.pX("ytp-ad-overlay-container");this.CX=new A7(R,45E3,6E3,.3,.4);g.U(this,this.CX);this.L=Mzc(this);g.U(this,this.L);this.L.JU(R);this.X=RQd(this);g.U(this,this.X);this.X.JU(R);this.Z=lKO(this);g.U(this,this.Z);this.Z.JU(R);this.hide()}; Mzc=function(R){var l=new g.BB({T:"div",j:"ytp-ad-text-overlay",S:[{T:"div",j:"ytp-ad-overlay-ad-info-button-container"},{T:"div",j:"ytp-ad-overlay-close-container",S:[{T:"button",j:"ytp-ad-overlay-close-button",S:[TG(fKZ)]}]},{T:"div",j:"ytp-ad-overlay-title",IE:"{{title}}"},{T:"div",j:"ytp-ad-overlay-desc",IE:"{{description}}"},{T:"div",QL:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],IE:"{{displayUrl}}"}]});R.N(l.pX("ytp-ad-overlay-title"),"click",function(y){bm(R,l.element,y)}); R.N(l.pX("ytp-ad-overlay-link"),"click",function(y){bm(R,l.element,y)}); R.N(l.pX("ytp-ad-overlay-close-container"),"click",R.Hb);l.hide();return l}; RQd=function(R){var l=new g.BB({T:"div",QL:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],S:[{T:"div",j:"ytp-ad-overlay-ad-info-button-container"},{T:"div",j:"ytp-ad-overlay-close-container",S:[{T:"button",j:"ytp-ad-overlay-close-button",S:[TG(fKZ)]}]},{T:"div",j:"ytp-ad-overlay-text-image",S:[{T:"img",K:{src:"{{imageUrl}}"}}]},{T:"div",j:"ytp-ad-overlay-title",IE:"{{title}}"},{T:"div",j:"ytp-ad-overlay-desc",IE:"{{description}}"},{T:"div",QL:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], IE:"{{displayUrl}}"}]});R.N(l.pX("ytp-ad-overlay-title"),"click",function(y){bm(R,l.element,y)}); R.N(l.pX("ytp-ad-overlay-link"),"click",function(y){bm(R,l.element,y)}); R.N(l.pX("ytp-ad-overlay-close-container"),"click",R.Hb);R.N(l.pX("ytp-ad-overlay-text-image"),"click",R.Iz4);l.hide();return l}; lKO=function(R){var l=new g.BB({T:"div",j:"ytp-ad-image-overlay",S:[{T:"div",j:"ytp-ad-overlay-ad-info-button-container"},{T:"div",j:"ytp-ad-overlay-close-container",S:[{T:"button",j:"ytp-ad-overlay-close-button",S:[TG(fKZ)]}]},{T:"div",j:"ytp-ad-overlay-image",S:[{T:"img",K:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});R.N(l.pX("ytp-ad-overlay-image"),"click",function(y){bm(R,l.element,y)}); R.N(l.pX("ytp-ad-overlay-close-container"),"click",R.Hb);l.hide();return l}; Ac8=function(R,l){if(l){var y=g.k(l,MY)||null;y==null?g.Tw(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(l=g.aA("video-ads ytp-ad-module")||null,l==null?g.Tw(Error("Could not locate the root ads container element to attach the ad info dialog.")):(R.sL=new g.BB({T:"div",j:"ytp-ad-overlay-ad-info-dialog-container"}),g.U(R,R.sL),R.sL.JU(l),l=new gp(R.api,R.layoutId,R.interactionLoggingClientData,R.d7,R.sL.element,!1),g.U(R,l),l.init(yN("ad-info-hover-text-button"),y,R.macros), R.D?(l.JU(R.D,0),l.subscribe("f",R.e9X,R),l.subscribe("e",R.Jq,R),R.N(R.D,"click",R.F$Q),R.N(g.aA("ytp-ad-button",l.element),"click",function(){var f;if(g.k((f=g.k(y.button,g.lD))==null?void 0:f.serviceEndpoint,MIj))R.jS=R.api.getPlayerState(1)===2,R.api.pauseVideo();else R.api.onAdUxClicked("ad-info-hover-text-button",R.layoutId)}),R.uQ=l):g.Tw(Error("Ad info button container within overlay ad was not present."))))}else g.dP(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; GTU=function(R,l){if(KsK(R,XW)||R.api.isMinimized())return!1;var y=ni(l.title),f=ni(l.description);if(g.d9(y)||g.d9(f))return!1;R.createServerVe(R.L.element,l.trackingParams||null);R.L.updateValue("title",ni(l.title));R.L.updateValue("description",ni(l.description));R.L.updateValue("displayUrl",ni(l.displayUrl));l.navigationEndpoint&&g.xU(R.B,l.navigationEndpoint);R.L.show();R.CX.start();R.logVisibility(R.L.element,!0);R.N(R.L.element,"mouseover",function(){R.Yb++}); return!0}; aKd=function(R,l){if(KsK(R,XW)||R.api.isMinimized())return!1;var y=ni(l.title),f=ni(l.description);if(g.d9(y)||g.d9(f))return!1;R.createServerVe(R.X.element,l.trackingParams||null);R.X.updateValue("title",ni(l.title));R.X.updateValue("description",ni(l.description));R.X.updateValue("displayUrl",ni(l.displayUrl));R.X.updateValue("imageUrl",HFi(l.image));l.navigationEndpoint&&g.xU(R.B,l.navigationEndpoint);R.W1=l.imageNavigationEndpoint||null;R.X.show();R.CX.start();R.logVisibility(R.X.element,!0); R.N(R.X.element,"mouseover",function(){R.Yb++}); return!0}; srU=function(R,l){if(R.api.isMinimized())return!1;var y=n1i(l.image),f=y;y.width0?(l=new ze(R.api,R.Z), l.JU(R.playerOverlay),g.U(R,l)):(R=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(l)),g.Tw(R))}}else g.Tw(Error("addCommonComponents() needs to be called before starting countdown."))}; Okd=function(R){function l(y){return{toString:function(){return y()}}} R.macros.SURVEY_LOCAL_TIME_EPOCH_S=l(function(){var y=new Date;return(Math.round(y.valueOf()/1E3)+-1*y.getTimezoneOffset()*60).toString()}); R.macros.SURVEY_ELAPSED_MS=l(function(){return(Date.now()-R.L).toString()})}; ik8=function(R,l,y,f,A){vD.call(this,R,l,y,f,"survey-question-multi-select");this.Yb=A;this.noneOfTheAbove=null;this.submitEndpoints=[];this.D=null;this.hide()}; Pjd=function(R,l,y){R.noneOfTheAbove=new hQA(R.api,R.layoutId,R.interactionLoggingClientData,R.d7);R.noneOfTheAbove.JU(R.answers);R.noneOfTheAbove.init(yN("survey-none-of-the-above"),l,y)}; FsS=function(R){R.X.forEach(function(l){l.Z.toggleButton(!1)}); uZK(R,!0)}; uZK=function(R,l){var y=R.Y;R=QrS(R);l=l===void 0?!1:l;y.Z&&(R?y.Z.hide():y.Z.show(),l&&y.Z instanceof cR&&!y.Z.Y&&sqJ(y.Z,!1));y.X&&(R?y.X.show():y.X.hide())}; QrS=function(R){return R.X.some(function(l){return l.Z.isToggled()})||R.noneOfTheAbove.button.isToggled()}; zr=function(R,l,y,f,A){vD.call(this,R,l,y,f,"survey-question-single-select",function(G){K.api.U().C("supports_multi_step_on_desktop")&&A([G])}); var K=this;this.hide()}; wR=function(R,l,y,f){HB.call(this,R,{T:"div",j:"ytp-ad-survey",S:[{T:"div",j:"ytp-ad-survey-questions"}]},"survey",l,y,f);this.questions=[];this.X=[];this.conditioningRules=[];this.Z=0;this.D=this.pX("ytp-ad-survey-questions");this.api.U().C("fix_survey_color_contrast_on_destop")&&this.pX("ytp-ad-survey").classList.add("color-contrast-fix");this.api.U().C("web_enable_speedmaster")&&this.pX("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; bkK=function(R,l){var y=R.X[l],f;(f=R.L)==null||f.dispose();g.k(y,tG)?$oX(R,g.k(y,tG),R.macros):g.k(y,qY)&&eQr(R,g.k(y,qY),R.macros);R.Z=l}; $oX=function(R,l,y){var f=new zr(R.api,R.layoutId,R.interactionLoggingClientData,R.d7,R.Y.bind(R));f.JU(R.D);f.init(yN("survey-question-single-select"),l,y);R.api.U().C("supports_multi_step_on_desktop")?R.L=f:R.questions.push(f);g.U(R,f)}; eQr=function(R,l,y){var f=new ik8(R.api,R.layoutId,R.interactionLoggingClientData,R.d7,R.Y.bind(R));f.JU(R.D);f.init(yN("survey-question-multi-select"),l,y);R.api.U().C("supports_multi_step_on_desktop")?R.L=f:R.questions.push(f);g.U(R,f)}; x4=function(R,l,y,f){HB.call(this,R,{T:"div",j:"ytp-ad-survey-interstitial",S:[{T:"div",j:"ytp-ad-survey-interstitial-contents",S:[{T:"div",j:"ytp-ad-survey-interstitial-logo",S:[{T:"div",j:"ytp-ad-survey-interstitial-logo-image"}]},{T:"div",j:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",l,y,f);this.Z=this.actionButton=null;this.interstitial=this.pX("ytp-ad-survey-interstitial");this.X=this.pX("ytp-ad-survey-interstitial-contents");this.text=this.pX("ytp-ad-survey-interstitial-text"); this.logoImage=this.pX("ytp-ad-survey-interstitial-logo-image");this.transition=new g.MF(this,500,!1,300);g.U(this,this.transition)}; XiK=function(R,l){l=l&&IN(l)||"";if(g.d9(l))g.dP(Error("Found ThumbnailDetails without valid image URL"));else{var y=R.style;R=R.style.cssText;var f=document.implementation.createHTMLDocument("").createElement("DIV");f.style.cssText=R;R=pbQ(f.style);y.cssText=[R,'background-image:url("'+l+'");'].join("")}}; Tq8=function(R){var l=g.aA("html5-video-player");l&&g.BJ(l,"ytp-ad-display-override",R)}; I4=function(R,l,y,f,A,K){K=K===void 0?0:K;qF.call(this,R,{T:"div",j:"ytp-preview-ad",S:[{T:"div",j:"ytp-preview-ad__text"}]},"preview-ad",l,y,f,A);var G=this;this.Yb=K;this.X=0;this.Y=-1;this.L=this.pX("ytp-preview-ad__text");switch(this.Yb){case 1:this.L.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.MF(this,400,!1,100,function(){G.hide()}); g.U(this,this.transition);this.hide()}; NC=function(R,l,y,f){HB.call(this,R,{T:"img",j:"ytp-ad-avatar"},"ad-avatar",l,y,f);this.hide()}; doK=function(R){switch(R.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}}; ph=function(R,l,y,f,A,K){A=A===void 0?!1:A;K=K===void 0?!1:K;HB.call(this,R,{T:"button",j:"ytp-ad-button-vm"},"ad-button",l,y,f);this.buttonText=this.buttonIcon=null;this.hide();this.Z=A;this.X=K}; rcU=function(R,l,y,f,A){qF.call(this,R,{T:"div",QL:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],S:[{T:"div",j:"ytp-ad-avatar-lockup-card__avatar_and_text_container",S:[{T:"div",j:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",l,y,f,A);this.startMilliseconds=0;this.adAvatar=new NC(this.api,this.layoutId,this.interactionLoggingClientData,this.d7);g.U(this,this.adAvatar);LS(this.element,this.adAvatar.element,0);this.headline=new bt(this.api,this.layoutId, this.interactionLoggingClientData,this.d7);g.U(this,this.headline);this.headline.JU(this.pX("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new bt(this.api,this.layoutId,this.interactionLoggingClientData,this.d7);g.U(this,this.description);this.description.JU(this.pX("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new ph(this.api, this.layoutId,this.interactionLoggingClientData,this.d7);g.U(this,this.adButton);this.adButton.JU(this.element);this.hide()}; Uw=function(R,l,y,f){HB.call(this,R,{T:"button",j:"ytp-skip-ad-button",S:[{T:"div",j:"ytp-skip-ad-button__text"}]},"skip-button",l,y,f);var A=this;this.X=!1;this.Y=this.pX("ytp-skip-ad-button__text");this.transition=new g.MF(this,500,!1,100,function(){A.hide()}); g.U(this,this.transition);this.Z=new A7(this.element,15E3,5E3,.5,.5,!0);g.U(this,this.Z);this.hide()}; v7d=function(R,l,y,f,A){qF.call(this,R,{T:"div",j:"ytp-skip-ad"},"skip-ad",l,y,f,A);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.L=new Uw(this.api,this.layoutId,this.interactionLoggingClientData,this.d7);g.U(this,this.L);this.L.JU(this.element);this.hide()}; SQ=function(R,l,y,f){HB.call(this,R,{T:"div",j:"ytp-visit-advertiser-link"},"visit-advertiser-link",l,y,f);this.hide()}; jQ=function(R,l,y,f,A){HB.call(this,R,{T:"div",j:"ytp-ad-player-overlay-layout",S:[{T:"div",j:"ytp-ad-player-overlay-layout__player-card-container"},{T:"div",j:"ytp-ad-player-overlay-layout__ad-info-container"},{T:"div",j:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{T:"div",j:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",l,y,f);this.X=A;this.sL=this.pX("ytp-ad-player-overlay-layout__player-card-container");this.Z=this.pX("ytp-ad-player-overlay-layout__ad-info-container"); this.B=this.pX("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Yb=this.pX("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; zQU=function(R,l,y,f){HB.call(this,R,{T:"div",j:"ytp-ad-grid-card-text",S:[{T:"div",j:"ytp-ad-grid-card-text__metadata",S:[{T:"div",j:"ytp-ad-grid-card-text__metadata__headline"},{T:"div",j:"ytp-ad-grid-card-text__metadata__description",S:[{T:"div",j:"ytp-ad-grid-card-text__metadata__description__line"},{T:"div",j:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{T:"div",j:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",l,y,f);this.headline=new bt(this.api,this.layoutId,this.interactionLoggingClientData, this.d7);g.U(this,this.headline);this.headline.JU(this.pX("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new ph(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,!0);g.U(this,this.moreInfoButton);this.moreInfoButton.JU(this.pX("ytp-ad-grid-card-text__button"))}; k4=function(R,l,y,f){HB.call(this,R,{T:"div",j:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",l,y,f);this.Z=[]}; DS=function(R,l,y,f,A,K,G){qF.call(this,R,K,G,l,y,f,A);this.playerProgressOffsetMs=0;this.X=!1}; wiU=function(R){var l=g.aA("html5-video-player");l&&g.BJ(l,"ytp-ad-display-override",R)}; xoU=function(R,l,y,f,A){DS.call(this,R,l,y,f,A,{T:"div",j:"ytp-display-underlay-text-grid-cards",S:[{T:"div",j:"ytp-display-underlay-text-grid-cards__content_container",S:[{T:"div",j:"ytp-display-underlay-text-grid-cards__content_container__header",S:[{T:"div",j:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{T:"div",j:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{T:"div",j:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {T:"div",j:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new k4(this.api,this.layoutId,this.interactionLoggingClientData,this.d7);g.U(this,this.adGridCardCollection);this.adGridCardCollection.JU(this.pX("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new ph(this.api,this.layoutId,this.interactionLoggingClientData,this.d7);g.U(this,this.adButton);this.adButton.JU(this.pX("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.L=this.pX("ytp-display-underlay-text-grid-cards__content_container");this.Y=this.pX("ytp-display-underlay-text-grid-cards__content_container__header")}; ZS=function(R,l,y,f){HB.call(this,R,{T:"div",j:"ytp-ad-details-line"},"ad-details-line",l,y,f);this.Z=[];this.hide()}; JB=function(R,l,y,f){HB.call(this,R,{T:"div",j:"ytp-image-background",S:[{T:"img",j:"ytp-image-background-image"}]},"image-background",l,y,f);this.hide()}; IKU=function(R,l,y,f,A){qF.call(this,R,{T:"svg",j:"ytp-timed-pie-countdown",K:{viewBox:"0 0 20 20"},S:[{T:"circle",j:"ytp-timed-pie-countdown__background",K:{r:"10",cx:"10",cy:"10"}},{T:"circle",j:"ytp-timed-pie-countdown__inner",K:{r:"5",cx:"10",cy:"10"}},{T:"circle",j:"ytp-timed-pie-countdown__outer",K:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",l,y,f,A);this.L=this.pX("ytp-timed-pie-countdown__inner");this.X=Math.ceil(2*Math.PI*5);this.hide()}; gR=function(R,l,y,f){HB.call(this,R,{T:"div",j:"ytp-video-interstitial-buttoned-centered-layout",K:{tabindex:"0"},S:[{T:"div",j:"ytp-video-interstitial-buttoned-centered-layout__content",S:[{T:"div",j:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{T:"div",j:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",S:[{T:"div",j:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{T:"div",j:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {T:"div",j:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{T:"div",j:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{T:"div",j:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",l,y,f);this.X=null;this.Y=this.pX("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.L=new eI;g.U(this,this.L);this.hide()}; Nqt=function(R){var l=g.aA("html5-video-player");l&&g.BJ(l,"ytp-ad-display-override",R)}; pi8=function(R){if(!R.adAvatar||!g.k(R.adAvatar,VO))return g.Tw(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!R.headline)return g.Tw(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!R.adBadge||!g.k(R.adBadge,Ch))return g.Tw(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!R.adButton||!g.k(R.adButton,qC))return g.Tw(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!R.adInfoRenderer|| !g.k(R.adInfoRenderer,MY))return g.Tw(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;R=R.durationMilliseconds||0;return typeof R!=="number"||R<=0?(g.Tw(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+R)),!1):!0}; tB=function(R,l){l=l===void 0?2:l;g.Ae.call(this);this.api=R;this.Z=null;this.SZ=new eI(this);g.U(this,this.SZ);this.X=B4J;this.SZ.N(this.api,"presentingplayerstatechange",this.Ko);this.Z=this.SZ.N(this.api,"progresssync",this.J1);this.RA=l;this.RA===1&&this.J1()}; Y4=function(R,l,y){jW.call(this,R);this.api=R;this.d7=l;this.X={};R=new g.Z({T:"div",QL:["video-ads","ytp-ad-module"]});g.U(this,R);UN&&g.AU(R.element,"ytp-ads-tiny-mode");this.J=new hS(R.element);g.U(this,this.J);g.kT(this.api,R.element,4);Oa(y)&&(y=new g.Z({T:"div",QL:["ytp-ad-underlay"]}),g.U(this,y),this.L=new hS(y.element),g.U(this,this.L),g.kT(this.api,y.element,0));g.U(this,N0s())}; UoZ=function(R,l){R=g.hA(R.X,l.id,null);R==null&&g.dP(Error("Component not found for element id: "+l.id));return R||null}; SY5=function(R){g.Fc.call(this,R);var l=this;this.X=null;this.created=!1;this.L=R.U().C("h5_use_refactored_get_ad_break")?new vWK(this.player):new gB(this.player);this.Y=function(){if(l.X!=null)return l.X;var f=new UIi({ma:eQ(l.Z).ma,uO:eQ(l.Z).uO,G:l.player,sN:eQ(l.Z).sN,g7:l.Z.Z.g7,NC:eQ(l.Z).NC,dc:l.Z.Z.dc});l.X=f.tM;return l.X}; this.Z=new Vzs(this.player,this,this.L,this.Y);g.U(this,this.Z);var y=R.U();!cl(y)||g.qE(y)||yV(y)||(g.U(this,new Y4(R,eQ(this.Z).d7,eQ(this.Z).sN)),g.U(this,new Cvj(R)))}; jrU=function(R){R.created!==R.loaded&&BR("Created and loaded are out of sync")}; ZkK=function(R){g.Fc.prototype.load.call(R);var l=eQ(R.Z).sN;try{R.player.getRootNode().classList.add("ad-created")}catch(H){BR(H instanceof Error?H:String(H))}var y=R.player.getVideoData(1),f=y&&y.videoId||"",A=y&&y.getPlayerResponse()||{},K=(!R.player.U().experiments.EL("debug_ignore_ad_placements")&&A&&A.adPlacements||[]).map(function(H){return H.adPlacementRenderer}),G=((A==null?void 0:A.adSlots)||[]).map(function(H){return g.k(H,A9)}); A=A.playerConfig&&A.playerConfig.daiConfig&&A.playerConfig.daiConfig.enableDai||!1;y&&y.QS();K=kTK(K,G,l,eQ(R.Z).oK);G=y&&y.clientPlaybackNonce||"";y=y&&y.jO||!1;if(mx(l,!0)&&y){var B;l={};(B=R.player.getVideoData())==null||B.T4("p_cpb",(l.cc=G,l))}B=1E3*R.player.getDuration(1);DoU(R);R.Z.Z.QB.dN(G,B,y,K.B3,K.R3,K.B3,A,f)}; DoU=function(R){var l,y;if(y=(l=R.player.getVideoData(1))==null||!l.jO)l=R.player.U(),y=cl(l)&&!g.hq(l)&&l.playerStyle==="desktop-polymer";y&&(R=R.player.getInternalApi(),R.addEventListener("updateKevlarOrC3Companion",LuK),R.addEventListener("updateEngagementPanelAction",OOk),R.addEventListener("changeEngagementPanelVisibility",iOK),window.addEventListener("yt-navigate-start",uvQ))}; MC=function(R,l){l===R.mH&&(R.mH=void 0)}; JcK=function(R){var l=eQ(R.Z).Xh,y=l.Y().Xy("SLOT_TYPE_PLAYER_BYTES",1);l=Io(l.fX.get(),1).clientPlaybackNonce;var f=!1;y=g.u(y);for(var A=y.next();!A.done;A=y.next()){A=A.value;var K=A.slotType==="SLOT_TYPE_PLAYER_BYTES"&&A.slotEntryTrigger instanceof D5?A.slotEntryTrigger.Z0:void 0;K&&K===l&&(f&&BR("More than 1 preroll playerBytes slot detected",A),f=!0)}f||mZ(eQ(R.Z).EQ)}; g7A=function(R){if(lm(eQ(R.Z).sN))return!0;var l="";R=g.u(eQ(R.Z).NC.Yh.keys());for(var y=R.next();!y.done;y=R.next()){y=y.value;if(y.slotType==="SLOT_TYPE_PLAYER_BYTES"&&y.AU==="core")return!0;l+=y.slotType+" "}Math.random()<.01&&BR("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:l});return!1}; VJZ=function(R){R=g.u(eQ(R.Z).NC.Yh.values());for(var l=R.next();!l.done;l=R.next())if(l.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; Sn9=function(R,l,y,f,A,K){y=y===void 0?[]:y;f=f===void 0?"":f;A=A===void 0?"":A;var G=eQ(R.Z).sN,B=R.player.getVideoData(1);B&&B.getPlayerResponse();B&&B.QS();y=kTK(l,y,G,eQ(R.Z).oK);JVY(eQ(R.Z).Y6,f,y.B3,y.R3,l,A,K)}; kTK=function(R,l,y,f){l={B3:[],R3:l};R=g.u(R);for(var A=R.next();!A.done;A=R.next())if((A=A.value)&&A.renderer!=null){var K=A.renderer;if(!y.G.U().C("html5_enable_vod_lasr_with_notify_pacf")){var G=void 0,B=void 0,H=void 0,n=void 0,m=f;g.k((n=K.sandwichedLinearAdRenderer)==null?void 0:n.adVideoStart,xs)?(G=g.k((H=K.sandwichedLinearAdRenderer)==null?void 0:H.adVideoStart,xs),G=sWT(G,m),g.x$(K.sandwichedLinearAdRenderer.adVideoStart,xs,G)):g.k((B=K.linearAdSequenceRenderer)==null?void 0:B.adStart,xs)&& (H=g.k((G=K.linearAdSequenceRenderer)==null?void 0:G.adStart,xs),G=sWT(H,m),g.x$(K.linearAdSequenceRenderer.adStart,xs,G))}l.B3.push(A)}return l}; g.RC=function(R){if(typeof DOMParser!="undefined")return eq(new DOMParser,zac(R),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.lU=function(R){g.p.call(this);this.callback=R;this.Z=new i0(0,0,.4,0,.2,1,1,1);this.delay=new g.ZF(this.next,window,this);g.U(this,this.delay)}; g.CjU=function(R){var l=R.U();return l.Vu&&!l.L&&g.kh(l)?R.isEmbedsShortsMode()?(R=R.vQ(),Math.min(R.width,R.height)>=315):!R.cf():!1}; g.yn=function(R){g.Z.call(this,{T:"div",j:"ytp-more-videos-view",K:{tabIndex:"-1"}});var l=this;this.api=R;this.X=!0;this.L=new g.QW(this);this.Z=[];this.suggestionData=[];this.columns=this.containerWidth=this.W=this.Y=this.scrollPosition=0;this.title=new g.Z({T:"h2",j:"ytp-related-title",IE:"{{title}}"});this.previous=new g.Z({T:"button",QL:["ytp-button","ytp-previous"],K:{"aria-label":"Mostrar videos sugeridos anteriores"},S:[g.cB()]});this.V=new g.lU(function(y){l.suggestions.element.scrollLeft= -y}); this.next=new g.Z({T:"button",QL:["ytp-button","ytp-next"],K:{"aria-label":"Mostrar m\u00e1s videos sugeridos"},S:[g.E_()]});g.U(this,this.L);this.D=R.U().Y;g.U(this,this.title);this.title.JU(this.element);this.suggestions=new g.Z({T:"div",j:"ytp-suggestions"});g.U(this,this.suggestions);this.suggestions.JU(this.element);g.U(this,this.previous);this.previous.JU(this.element);this.previous.listen("click",this.cW,this);g.U(this,this.V);qYU(this);g.U(this,this.next);this.next.JU(this.element);this.next.listen("click", this.El,this);this.L.N(this.api,"appresize",this.ub);this.L.N(this.api,"fullscreentoggled",this.CR);this.L.N(this.api,"videodatachange",this.onVideoDataChange);this.ub(this.api.lQ().getPlayerSize());this.onVideoDataChange()}; qYU=function(R){for(var l={U3:0};l.U3<16;l={U3:l.U3},++l.U3){var y=new g.Z({T:"a",j:"ytp-suggestion-link",K:{href:"{{link}}",target:R.api.U().B,"aria-label":"{{aria_label}}"},S:[{T:"div",j:"ytp-suggestion-image"},{T:"div",j:"ytp-suggestion-overlay",K:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},S:[{T:"div",j:"ytp-suggestion-title",IE:"{{title}}"},{T:"div",j:"ytp-suggestion-author",IE:"{{author_and_views}}"},{T:"div",K:{"data-is-live":"{{is_live}}"},j:"ytp-suggestion-duration", IE:"{{duration}}"}]}]});g.U(R,y);var f=y.pX("ytp-suggestion-link");g.Df(f,"transitionDelay",l.U3/20+"s");R.L.N(f,"click",function(A){return function(K){var G=A.U3;if(R.X){var B=R.suggestionData[G],H=B.sessionData;R.D&&R.api.C("web_player_log_click_before_generating_ve_conversion_params")?(R.api.logClick(R.Z[G].element),G=B.v6(),B={},g.UW(R.api,B),G=g.L4(G,B),g.Eo(G,R.api,K)):g.cV(K,R.api,R.D,H||void 0)&&R.api.MA(B.videoId,H,B.playlistId)}else K.preventDefault(),document.activeElement.blur()}}(l)); y.JU(R.suggestions.element);R.Z.push(y);R.api.createServerVe(y.element,y)}}; tJU=function(R){if(R.api.U().C("web_player_log_click_before_generating_ve_conversion_params"))for(var l=Math.floor(-R.scrollPosition/(R.Y+8)),y=Math.min(l+R.columns,R.suggestionData.length)-1;l<=y;l++)R.api.logVisibility(R.Z[l].element,!0)}; g.fc=function(R){var l=R.api.x0()?32:16;l=R.W/2+l;R.next.element.style.bottom=l+"px";R.previous.element.style.bottom=l+"px";l=R.scrollPosition;var y=R.containerWidth-R.suggestionData.length*(R.Y+8);g.BJ(R.element,"ytp-scroll-min",l>=0);g.BJ(R.element,"ytp-scroll-max",l<=y)}; MJZ=function(R){for(var l=R.suggestionData.length,y=0;y>>0)+"_",A=0;return l}); or("Symbol.iterator",function(R){if(R)return R;R=Symbol("Symbol.iterator");for(var l="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),y=0;y0&&y>0;)if(f[--y]!=l[--A])return!1;return A<=0}}); or("Array.prototype.find",function(R){return R?R:function(l,y){return mor(this,l,y).Wb}}); or("Array.prototype.entries",function(R){return R?R:function(){return ZK(this,function(l,y){return[l,y]})}}); or("Array.prototype.keys",function(R){return R?R:function(){return ZK(this,function(l){return l})}}); or("String.prototype.startsWith",function(R){return R?R:function(l,y){var f=DK(this,l,"startsWith");l+="";var A=f.length,K=l.length;y=Math.max(0,Math.min(y|0,f.length));for(var G=0;G=K}}); or("Number.isFinite",function(R){return R?R:function(l){return typeof l!=="number"?!1:!isNaN(l)&&l!==Infinity&&l!==-Infinity}}); or("String.prototype.repeat",function(R){return R?R:function(l){var y=DK(this,null,"repeat");if(l<0||l>1342177279)throw new RangeError("Invalid count value");l|=0;for(var f="";l;)if(l&1&&(f+=y),l>>>=1)y+=y;return f}}); or("Object.entries",function(R){return R?R:function(l){var y=[],f;for(f in l)Wi(l,f)&&y.push([f,l[f]]);return y}}); or("Array.from",function(R){return R?R:function(l,y,f){y=y!=null?y:function(B){return B}; var A=[],K=typeof Symbol!="undefined"&&Symbol.iterator&&l[Symbol.iterator];if(typeof K=="function"){l=K.call(l);for(var G=0;!(K=l.next()).done;)A.push(y.call(f,K.value,G++))}else for(K=l.length,G=0;G>>16&65535)*A+f*(y>>>16&65535)<<16>>>0)|0}}); or("Math.trunc",function(R){return R?R:function(l){l=Number(l);if(isNaN(l)||l===Infinity||l===-Infinity||l===0)return l;var y=Math.floor(Math.abs(l));return l<0?-y:y}}); or("Math.clz32",function(R){return R?R:function(l){l=Number(l)>>>0;if(l===0)return 32;var y=0;(l&4294901760)===0&&(l<<=16,y+=16);(l&4278190080)===0&&(l<<=8,y+=8);(l&4026531840)===0&&(l<<=4,y+=4);(l&3221225472)===0&&(l<<=2,y+=2);(l&2147483648)===0&&y++;return y}}); or("Number.isNaN",function(R){return R?R:function(l){return typeof l==="number"&&isNaN(l)}}); or("Array.prototype.values",function(R){return R?R:function(){return ZK(this,function(l,y){return y})}}); or("Array.prototype.fill",function(R){return R?R:function(l,y,f){var A=this.length||0;y<0&&(y=Math.max(0,A+y));if(f==null||f>A)f=A;f=Number(f);f<0&&(f=Math.max(0,A+f));for(y=Number(y||0);y0&&y?y.repeat(Math.ceil(l/y.length)).substring(0,l):"")+f}}); or("Array.prototype.findIndex",function(R){return R?R:function(l,y){return mor(this,l,y).d4}}); or("Promise.prototype.finally",function(R){return R?R:function(l){return this.then(function(y){return Promise.resolve(l()).then(function(){return y})},function(y){return Promise.resolve(l()).then(function(){throw y; })})}}); or("Math.sign",function(R){return R?R:function(l){l=Number(l);return l===0||isNaN(l)?l:l>0?1:-1}}); or("WeakSet",function(R){function l(y){this.Z=new WeakMap;if(y){y=g.u(y);for(var f;!(f=y.next()).done;)this.add(f.value)}} if(function(){if(!R||!Object.seal)return!1;try{var y=Object.seal({}),f=Object.seal({}),A=new R([y]);if(!A.has(y)||A.has(f))return!1;A.delete(y);A.add(f);return!A.has(y)&&A.has(f)}catch(K){return!1}}())return R; l.prototype.add=function(y){this.Z.set(y,!0);return this}; l.prototype.has=function(y){return this.Z.has(y)}; l.prototype.delete=function(y){return this.Z.delete(y)}; return l}); or("AggregateError",function(R){function l(y,f){f=Error(f);"stack"in f&&(this.stack=f.stack);this.errors=y;this.message=f.message} if(R)return R;g.O(l,Error);l.prototype.name="AggregateError";return l}); or("Array.prototype.copyWithin",function(R){function l(y){y=Number(y);return y===Infinity||y===-Infinity?y:y|0} return R?R:function(y,f,A){var K=this.length;y=l(y);f=l(f);A=A===void 0?K:l(A);y=y<0?Math.max(K+y,0):Math.min(y,K);f=f<0?Math.max(K+f,0):Math.min(f,K);A=A<0?Math.max(K+A,0):Math.min(A,K);if(yf;)--A in this?this[--y]=this[A]:delete this[--y];return this}}); or("Int8Array.prototype.copyWithin",V9);or("Uint8Array.prototype.copyWithin",V9);or("Uint8ClampedArray.prototype.copyWithin",V9);or("Int16Array.prototype.copyWithin",V9);or("Uint16Array.prototype.copyWithin",V9);or("Int32Array.prototype.copyWithin",V9);or("Uint32Array.prototype.copyWithin",V9);or("Float32Array.prototype.copyWithin",V9);or("Float64Array.prototype.copyWithin",V9);or("Array.prototype.at",function(R){return R?R:Ck}); or("Int8Array.prototype.at",qo);or("Uint8Array.prototype.at",qo);or("Uint8ClampedArray.prototype.at",qo);or("Int16Array.prototype.at",qo);or("Uint16Array.prototype.at",qo);or("Int32Array.prototype.at",qo);or("Uint32Array.prototype.at",qo);or("Float32Array.prototype.at",qo);or("Float64Array.prototype.at",qo);or("String.prototype.at",function(R){return R?R:Ck}); or("Array.prototype.findLastIndex",function(R){return R?R:function(l,y){return o7Z(this,l,y).d4}}); or("Int8Array.prototype.findLastIndex",tc);or("Uint8Array.prototype.findLastIndex",tc);or("Uint8ClampedArray.prototype.findLastIndex",tc);or("Int16Array.prototype.findLastIndex",tc);or("Uint16Array.prototype.findLastIndex",tc);or("Int32Array.prototype.findLastIndex",tc);or("Uint32Array.prototype.findLastIndex",tc);or("Float32Array.prototype.findLastIndex",tc);or("Float64Array.prototype.findLastIndex",tc);or("Number.parseInt",function(R){return R||parseInt});var gC,at,hQj;gC=gC||{};g.Mo=this||self;at="closure_uid_"+(Math.random()*1E9>>>0);hQj=0;g.hK(E5,Error);E5.prototype.name="CustomError";var rKq;var PjJ,i4,Dx;PjJ=Array.prototype.indexOf?function(R,l){return Array.prototype.indexOf.call(R,l,void 0)}:function(R,l){if(typeof R==="string")return typeof l!=="string"||l.length!=1?-1:R.indexOf(l,0); for(var y=0;y=0;y--)if(y in R&&R[y]===l)return y;return-1}; g.qZ=Array.prototype.forEach?function(R,l,y){Array.prototype.forEach.call(R,l,y)}:function(R,l,y){for(var f=R.length,A=typeof R==="string"?R.split(""):R,K=0;K=.3:this.e_>=.5};var Xz={Ow7:0,vh4:1},X0k={NONE:0,p$S:1,NNL:2};var xos="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Oh.prototype.getValue=function(){return this.X}; g.O(iN,Oh);iN.prototype.L=function(R){this.X===null&&g.np(this.Y,R)&&(this.X=R)}; g.O(Pr,Oh);Pr.prototype.L=function(R){this.X===null&&typeof R==="number"&&(this.X=R)}; g.O(uN,Oh);uN.prototype.L=function(R){this.X===null&&typeof R==="string"&&(this.X=R)};Fz.prototype.disable=function(){this.X=!1}; Fz.prototype.enable=function(){this.X=!0}; Fz.prototype.isEnabled=function(){return this.X}; Fz.prototype.reset=function(){this.Z={};this.X=!0;this.L={}};var JT=document,dX=window;var aUD=fX(1,!0),Uh=fX(610401301,!1);fX(899588437,!1);fX(725719775,!1);var stA=fX(513659523,!1),BOO=fX(568333945,!1),lMJ=fX(1331761403,!1);fX(651175828,!1);fX(722764542,!1);fX(748402145,!1);fX(748402146,!1);fX(103340015,!1);fX(555019702,!1);fX(2147483644,!1);fX(2147483645,!1);fX(2147483646,aUD);fX(2147483647,!0);var Sn=!!g.yr("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var za=String.prototype.trim?function(R){return R.trim()}:function(R){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(R)[1]},GKk=/&/g,aUQ=//g,BOq=/"/g,HX7=/'/g,nUY=/\x00/g,KUr=/[\x00&<>"']/;var jn,HXU=g.Mo.navigator;jn=HXU?HXU.userAgentData||null:null;var VJo=globalThis.trustedTypes,Y_;RM.prototype.toString=function(){return this.Z+""};fG.prototype.toString=function(){return this.Z}; var tJs=new fG("about:invalid#zClosurez");var hGY=aM("tel"),mKQ=aM("sms"),qYs=[aM("data"),aM("http"),aM("https"),aM("mailto"),aM("ftp"),new Gs(function(R){return/^[^:]*([/?#]|$)/.test(R)})],YYq=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;mH.prototype.toString=function(){return this.Z+""};W4.prototype.toString=function(){return this.Z+""};uH.prototype.toString=function(){return this.Z};var QG={};g.nU5=String.prototype.repeat?function(R,l){return R.repeat(l)}:function(R,l){return Array(l+1).join(R)};pG[" "]=function(){};var Zf,Ku,Ka7,mZK,oUr,hDU,pI,UN,cKD;g.Sr=g9();g.oc=jr7();g.g4=Zc("Edge");g.hn=g.g4||g.oc;Zf=Zc("Gecko")&&!(vr(g.pp(),"WebKit")&&!Zc("Edge"))&&!(Zc("Trident")||Zc("MSIE"))&&!Zc("Edge");g.H0=vr(g.pp(),"WebKit")&&!Zc("Edge");Ku=Ns();Ka7=WUi();g.Ya=EUs();mZK=xJ();oUr=Zc("iPad");hDU=Zc("iPod");pI=IM();UN=vr(g.pp(),"KaiOS"); a:{var EUU="",WU8=function(){var R=g.pp();if(Zf)return/rv:([^\);]+)(\)|;)/.exec(R);if(g.g4)return/Edge\/([\d\.]+)/.exec(R);if(g.oc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(R);if(g.H0)return/WebKit\/(\S+)/.exec(R);if(g.Sr)return/(?:Version)[ \/]?(\S+)/.exec(R)}(); WU8&&(EUU=WU8?WU8[1]:"");if(g.oc){var AH,LUO=g.Mo.document;AH=LUO?LUO.documentMode:void 0;if(AH!=null&&AH>parseFloat(EUU)){cKD=String(AH);break a}}cKD=EUU}var PAQ=cKD,OX7={};var C0,qr;g.sN=Vi();C0=xJ()||Zc("iPod");qr=Zc("iPad");g.jr=Do7();g.iz=Cp();g.LO=tA()&&!IM();var v97=!g.oc&&!tA();g.L=g.Do.prototype;g.L.clone=function(){return new g.Do(this.x,this.y)}; g.L.equals=function(R){return R instanceof g.Do&&Zo(this,R)}; g.L.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.L.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.L.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.L.scale=function(R,l){this.x*=R;this.y*=typeof l==="number"?l:R;return this};g.L=g.JM.prototype;g.L.clone=function(){return new g.JM(this.width,this.height)}; g.L.aspectRatio=function(){return this.width/this.height}; g.L.isEmpty=function(){return!VG(this)}; g.L.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.L.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.L.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.L.scale=function(R,l){this.width*=R;this.height*=typeof l==="number"?l:R;return this};qs.prototype.toString=function(){return this.Z}; var CG={};new qs(CG,"");var QtT=/^[a-z][a-z\d-]*$/i,$ZQ="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),bXk="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),TOY=["action","formaction","href"];var vUK={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.L=RA.prototype;g.L.al=function(R){return fS(this.Z,R)}; g.L.getElementsByTagName=function(R,l){return(l||this.Z).getElementsByTagName(String(R))}; g.L.pX=function(R){return g.aA(R,this.Z)}; g.L.setProperties=B0;g.L.createElement=function(R){return mi(this.Z,R)}; g.L.appendChild=g.Et;g.L.append=function(R,l){IUY(lo(R),R,arguments,1)}; g.L.canHaveChildren=function(R){if(R.nodeType!=1)return!1;switch(R.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.L.removeNode=g.Ot;g.L.getChildren=function(R){return R.children!=void 0?R.children:Array.prototype.filter.call(R.childNodes,function(l){return l.nodeType==1})}; g.L.contains=g.io;bo.prototype.now=function(){return 0}; bo.prototype.X=function(){return 0}; bo.prototype.L=function(){return 0}; bo.prototype.Z=function(){return 0};g.O(TP,bo);TP.prototype.now=function(){return XT()&&dX.performance.now?dX.performance.now():bo.prototype.now.call(this)}; TP.prototype.X=function(){return XT()&&dX.performance.memory?dX.performance.memory.totalJSHeapSize||0:bo.prototype.X.call(this)}; TP.prototype.L=function(){return XT()&&dX.performance.memory?dX.performance.memory.usedJSHeapSize||0:bo.prototype.L.call(this)}; TP.prototype.Z=function(){return XT()&&dX.performance.memory?dX.performance.memory.jsHeapSizeLimit||0:bo.prototype.Z.call(this)};var rT9=function(){if(!g.Mo.addEventListener||!Object.defineProperty)return!1;var R=!1,l=Object.defineProperty({},"passive",{get:function(){R=!0}}); try{var y=function(){}; g.Mo.addEventListener("test",y,l);g.Mo.removeEventListener("test",y,l)}catch(f){}return R}();var xCj=S57("AnimationEnd"),PV=S57("TransitionEnd");g.L=IA.prototype;g.L.getHeight=function(){return this.bottom-this.top}; g.L.clone=function(){return new IA(this.top,this.right,this.bottom,this.left)}; g.L.contains=function(R){return this&&R?R instanceof IA?R.left>=this.left&&R.right<=this.right&&R.top>=this.top&&R.bottom<=this.bottom:R.x>=this.left&&R.x<=this.right&&R.y>=this.top&&R.y<=this.bottom:!1}; g.L.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.L.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.L.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.L.scale=function(R,l){l=typeof l==="number"?l:R;this.left*=R;this.right*=R;this.top*=l;this.bottom*=l;return this};g.L=g.Sv.prototype;g.L.clone=function(){return new g.Sv(this.left,this.top,this.width,this.height)}; g.L.contains=function(R){return R instanceof g.Do?R.x>=this.left&&R.x<=this.left+this.width&&R.y>=this.top&&R.y<=this.top+this.height:this.left<=R.left&&this.left+this.width>=R.left+R.width&&this.top<=R.top&&this.top+this.height>=R.top+R.height}; g.L.getSize=function(){return new g.JM(this.width,this.height)}; g.L.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.L.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.L.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.L.scale=function(R,l){l=typeof l==="number"?l:R;this.left*=R;this.width*=R;this.top*=l;this.height*=l;return this};var kKj={};var CAT=zP(function(){var R=!1;try{var l=Object.defineProperty({},"passive",{get:function(){R=!0}}); g.Mo.addEventListener("test",null,l)}catch(y){}return R});q5K.prototype.isVisible=function(){return K$(JT)===1};var Zpk=sJ(function(R){return typeof R==="number"}),D5J=sJ(function(R){return typeof R==="string"}),JAY=sJ(function(R){return typeof R==="boolean"}),e9=sJ(function(R){return R!=null&&typeof R==="object"&&typeof R.then==="function"}),uXT=sJ(function(R){return typeof R==="function"}),OXU=sJ(function(R){return!!R&&(typeof R==="object"||typeof R==="function")});var Y5i={g0x:"allow-forms",Pnq:"allow-modals",v0q:"allow-orientation-lock",n0Q:"allow-pointer-lock",fXb:"allow-popups",VJU:"allow-popups-to-escape-sandbox",j9E:"allow-presentation",o0U:"allow-same-origin",zJ4:"allow-scripts",NoE:"allow-top-navigation",AJU:"allow-top-navigation-by-user-activation"},yAK=zP(function(){return Md9()});var GaJ=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");hW.prototype.Jk=function(R,l,y){R=R+"//"+l+y;var f=Hpc(this)-y.length;if(f<0)return"";this.Z.sort(function(n,m){return n-m}); y=null;l="";for(var A=0;A=H.length){f-=H.length;R+=H;l=this.L;break}y=y==null?K:y}}f="";y!=null&&(f=""+l+"trn="+y);return R+f};u4.prototype.setInterval=function(R,l){return dX.setInterval(R,l)}; u4.prototype.clearInterval=function(R){dX.clearInterval(R)}; u4.prototype.setTimeout=function(R,l){return dX.setTimeout(R,l)}; u4.prototype.clearTimeout=function(R){dX.clearTimeout(R)};var mk=void 0,yQ,ZGi=typeof TextDecoder!=="undefined",PNJ,ipq=typeof String.prototype.isWellFormed==="function",Opo=typeof TextEncoder!=="undefined";var eJZ={},ro=null,bpQ=Zf||g.H0||typeof g.Mo.btoa=="function";var N9r=typeof Uint8Array!=="undefined",v_K=!g.oc&&typeof btoa==="function",zJT=/[-_.]/g,d5Y={"-":"+",_:"/",".":"="},zo={};vI.prototype.isEmpty=function(){return this.Z==null}; vI.prototype.sizeBytes=function(){var R=xQ(this);return R?R.length:0}; var Icc;var prJ=void 0;var SS=typeof Symbol==="function"&&typeof Symbol()==="symbol",iXU=UJ("jas",void 0,!0),LY=UJ(void 0,"1oa"),vY=UJ(void 0,Symbol()),PAD=UJ(void 0,"0ub"),hps=UJ(void 0,"0ubs"),coi=UJ(void 0,"0ubsb"),FHY=UJ(void 0,"0actk"),Tm=UJ("m_m","rxb",!0),WHs=UJ(void 0,"vps"),uSX=UJ();Math.max.apply(Math,g.ci(Object.values({Au$:1,Nt9:2,zb7:4,nIS:8,RCS:16,RKL:32,WV7:64,kUU:128,jcU:256,Sz9:512,zN4:1024,SCS:2048,QU1:4096})));var ShJ={xN:{value:0,configurable:!0,writable:!0,enumerable:!1}},U5i=Object.defineProperties,jS=SS?iXU:"xN",fY,FUr=[];DC(FUr,7);fY=Object.freeze(FUr);var dt={},JW={},rMK=Object.freeze({}),C$={};var tW=typeof g.Mo.BigInt==="function"&&typeof g.Mo.BigInt(0)==="bigint";var pD=sJ(function(R){return tW?R>=QtK&&R<=$ZD:R[0]==="-"?g_Z(R,eDK):g_Z(R,bXX)}),eDK=Number.MIN_SAFE_INTEGER.toString(),QtK=tW?BigInt(Number.MIN_SAFE_INTEGER):void 0,bXX=Number.MAX_SAFE_INTEGER.toString(),$ZD=tW?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Uss=typeof Uint8Array.prototype.slice==="function",lc=0,yl=0,Eb7;var LD=typeof BigInt==="function"?BigInt.asIntN:void 0,sM7=typeof BigInt==="function"?BigInt.asUintN:void 0,Ql=Number.isSafeInteger,mW=Number.isFinite,$9=Math.trunc,Yho=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var LHq={};var X8U={eTx:!0};var Id;var OGj,iG9;var w4q=YQ(0),z_={};kG.prototype.init=function(R,l,y,f){var A=f===void 0?{}:f;f=A.Vv===void 0?!1:A.Vv;A=A.Cr===void 0?!1:A.Cr;this.Vv=f;this.Cr=A;R&&(R=jk(R,this.Cr),this.X=R.buffer,this.J=R.Z,this.Y=l||0,this.L=y!==void 0?this.Y+y:this.X.length,this.Z=this.Y)}; kG.prototype.free=function(){this.clear();tb.length<100&&tb.push(this)}; kG.prototype.clear=function(){this.X=null;this.J=!1;this.Z=this.L=this.Y=0;this.Vv=!1}; kG.prototype.reset=function(){this.Z=this.Y}; var tb=[];YG.prototype.free=function(){this.Z.clear();this.X=this.Y=-1;MS.length<100&&MS.push(this)}; YG.prototype.reset=function(){this.Z.reset();this.L=this.Z.Z;this.X=this.Y=-1}; var MS=[];var gJK,CHZ;Ed.prototype.length=function(){return this.Z.length}; Ed.prototype.end=function(){var R=this.Z;this.Z=[];return R};var $z=Fg(),TO5=Fg(),dZU=Fg(),rKO=Fg(),vUU=Fg(),zD8=Fg(),w8t=Fg(),xZr=Fg(),IU5=Fg(),NOU=Fg();QQ.prototype.toJSON=function(){return S4(this)}; QQ.prototype.Bf=function(R){return JSON.stringify(S4(this,R))}; QQ.prototype.clone=function(){var R=this.w7,l=R[jS]|0;return gt(this,R,l)?Vl(this,R,!0):new this.constructor(Ja(R,l,!1))}; QQ.prototype[Tm]=dt;QQ.prototype.toString=function(){return this.w7.toString()};var Ki9=b7(function(R,l,y,f,A){if(R.X!==2)return!1;l7(R,OI(l,f,y),A);return!0},Aok),GPQ=b7(function(R,l,y,f,A){if(R.X!==2)return!1; l7(R,OI(l,f,y),A);return!0},Aok),Nz=Symbol(),vE=Symbol(),xz=Symbol(),mhY=Symbol(),BXk=Symbol(),Xg,T2;var p85=gQ(function(R,l,y){if(R.X!==1)return!1;C8(l,y,CY(R.Z));return!0},qz,xZr),UZt=gQ(function(R,l,y){if(R.X!==1)return!1; R=CY(R.Z);C8(l,y,R===0?void 0:R);return!0},qz,xZr),S5U=gQ(function(R,l,y,f){if(R.X!==1)return!1; EI(l,y,f,CY(R.Z));return!0},qz,xZr),jtZ=gQ(function(R,l,y){if(R.X!==0)return!1; C8(l,y,Za(R.Z));return!0},tF,zD8),kKA=gQ(function(R,l,y){if(R.X!==0)return!1; R=Za(R.Z);C8(l,y,R===0?void 0:R);return!0},tF,zD8),DZt=gQ(function(R,l,y,f){if(R.X!==0)return!1; EI(l,y,f,Za(R.Z));return!0},tF,zD8),ZXS=gQ(function(R,l,y){if(R.X!==0)return!1; C8(l,y,Jb(R.Z));return!0},Yz,rKO),JKr=gQ(function(R,l,y){if(R.X!==0)return!1; R=Jb(R.Z);C8(l,y,R===0?void 0:R);return!0},Yz,rKO),gUO=gQ(function(R,l,y,f){if(R.X!==0)return!1; EI(l,y,f,Jb(R.Z));return!0},Yz,rKO),VdX=gQ(function(R,l,y){if(R.X!==1)return!1; C8(l,y,VS(R.Z));return!0},function(R,l,y){lf7(R,y,BFk(l))},w8t),CAK=VQ(function(R,l,y){if(R.X!==1&&R.X!==2)return!1; l=HS(l,l[jS]|0,y);if(R.X==2)for(y=Jb(R.Z)>>>0,y=R.Z.Z+y;R.Z.Z>>0);return!0},function(R,l,y){l=EM(l); l!=null&&l!=null&&(PE(R,y,0),L8(R.Z,l))},vUU),yAU=gQ(function(R,l,y){if(R.X!==0)return!1; C8(l,y,Jb(R.Z));return!0},function(R,l,y){l=cY(l); l!=null&&(l=parseInt(l,10),PE(R,y,0),tqk(R.Z,l))},NOU);PoZ.prototype.register=function(){pG(this)};g.O(yf,QQ);yf.prototype.L=uTc([0,UZt,kKA,-2,JKr]);var TXQ={lTL:1,nZ:2,xCQ:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};roq.prototype.BH=function(R){if(typeof R==="string"&&R.length!=0){var l=this.xG;if(l.X){R=R.split("&");for(var y=R.length-1;y>=0;y--){var f=R[y].split("="),A=decodeURIComponent(f[0]);f.length>1?(f=decodeURIComponent(f[1]),f=/^[0-9]+$/g.exec(f)?parseInt(f,10):f):f=1;(A=l.Z[A])&&A.L(f)}}}};var H3=null;var sQ=g.Mo.performance,fcX=!!(sQ&&sQ.mark&&sQ.measure&&sQ.clearMarks),GX=zP(function(){var R;if(R=fcX){var l=l===void 0?window:l;if(H3===null){H3="";try{R="";try{R=l.top.location.hash}catch(f){R=l.location.hash}if(R){var y=R.match(/\bdeid=([\d,]+)/);H3=y?y[1]:""}}catch(f){}}l=H3;R=!!l.indexOf&&l.indexOf("1337")>=0}return R}); ag.prototype.disable=function(){this.Z=!1;this.events!==this.X.google_js_reporting_queue&&(GX()&&g.qZ(this.events,NXZ),this.events.length=0)}; ag.prototype.start=function(R,l){if(!this.Z)return null;var y=xhT()||w0T();R=new IfJ(R,l,y);l="goog_"+R.label+"_"+R.uniqueId+"_start";sQ&&GX()&&sQ.mark(l);return R}; ag.prototype.end=function(R){if(this.Z&&typeof R.value==="number"){var l=xhT()||w0T();R.duration=l-R.value;l="goog_"+R.label+"_"+R.uniqueId+"_end";sQ&&GX()&&sQ.mark(l);!this.Z||this.events.length>2048||this.events.push(R)}};var p0T=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),PF=/#|$/,ZST=/[?&]($|#)/;gbJ.prototype.fb=function(R,l,y,f,A){A=A||this.jA;try{var K=new hW;K.Z.push(1);K.X[1]=cI("context",R);l.error&&l.meta&&l.id||(l=new X1(TX(l)));if(l.msg){var G=l.msg.substring(0,512);K.Z.push(2);K.X[2]=cI("msg",G)}var B=l.meta||{};if(this.HG)try{this.HG(B)}catch(E){}if(f)try{f(B)}catch(E){}f=[B];K.Z.push(3);K.X[3]=f;var H=sLT();if(H.X){var n=H.X.url||"";K.Z.push(4);K.X[4]=cI("top",n)}var m={url:H.Z.url||""};if(H.Z.url){var h=g.HF(H.Z.url);var c=BF(h[1],null,h[3],h[4])}else c="";n=[m,{url:c}];K.Z.push(5); K.X[5]=n;vbc(this.Z,A,K,y)}catch(E){try{vbc(this.Z,A,{context:"ecmserr",rctx:R,msg:TX(E),url:H&&H.Z.url},y)}catch(W){}}return this.wO}; g.O(X1,zIo);var $m,by,Qf=new ag;$m=new function(){var R="https:";dX&&dX.location&&dX.location.protocol==="http:"&&(R="http:");this.X=R;this.Z=.01}; by=new gbJ;dX&&dX.document&&(dX.document.readyState=="complete"?Coc():Qf.Z&&AW(dX,"load",function(){Coc()}));var Ytq=Date.now(),Ig=-1,wN=-1,aaj,Nu=-1,xm=!1;p4.prototype.equals=function(R,l){return!!R&&(!(l===void 0?0:l)||this.volume==R.volume)&&this.L==R.L&&pS(this.Z,R.Z)&&!0};UQ.prototype.al=function(){return this.V}; UQ.prototype.equals=function(R,l){return this.Y.equals(R.Y,l===void 0?!1:l)&&this.V==R.V&&pS(this.L,R.L)&&pS(this.D,R.D)&&this.Z==R.Z&&this.J==R.J&&this.X==R.X&&this.W==R.W};var AAU={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},VC={CZ:"start",WW:"firstquartile",Yk:"midpoint",eW:"thirdquartile",COMPLETE:"complete",ERROR:"error",LZ:"metric",PAUSE:"pause",D_:"resume",JT:"skip",v2:"viewable_impression",Ib:"mute",gX:"unmute",hM:"fullscreen",AM:"exitfullscreen",gb:"bufferstart",F9:"bufferfinish",Ul:"fully_viewable_audible_half_duration_impression",XB:"measurable_impression",GM:"abandon",Nm:"engagedview",Ol:"impression",VG:"creativeview",qg:"loaded", r2Q:"progress",CLOSE:"close",AR9:"collapse",N3E:"overlay_resize",A27:"overlay_unmeasurable_impression",dCE:"overlay_unviewable_impression",hK7:"overlay_viewable_immediate_impression",Wox:"overlay_viewable_end_of_session_impression",jf:"custom_metric_viewable",Dh:"audio_audible",Rf:"audio_measurable",JM:"audio_impression"},Lkr="start firstquartile midpoint thirdquartile resume loaded".split(" "),O8Q=["start","firstquartile","midpoint","thirdquartile"],BkY=["abandon"],hl={UNKNOWN:-1,CZ:0,WW:1,Yk:2, eW:3,COMPLETE:4,LZ:5,PAUSE:6,D_:7,JT:8,v2:9,Ib:10,gX:11,hM:12,AM:13,Ul:14,XB:15,GM:16,Nm:17,Ol:18,VG:19,qg:20,jf:21,gb:22,F9:23,JM:27,Rf:28,Dh:29};var RSr={bsX:"addEventListener",d$$:"getMaxSize",W87:"getScreenSize",hNX:"getState",U$S:"getVersion",TkL:"removeEventListener",dLU:"isViewable"};aC9.prototype.update=function(R){R&&R.document&&(this.V=Sj(!1,R,this.isMobileDevice),this.Z=Sj(!0,R,this.isMobileDevice),Bok(this,R),smj(this,R))};Vf.prototype.cancel=function(){Fu().clearTimeout(this.Z);this.Z=null}; Vf.prototype.schedule=function(){var R=this,l=Fu(),y=AT().Z.Z;this.Z=l.setTimeout(f4(y,rN(143,function(){R.X++;R.L.sample()})),Mvs())};g.L=C4.prototype;g.L.eg=function(){return!1}; g.L.initialize=function(){return this.isInitialized=!0}; g.L.Qx=function(){return this.Z.sL}; g.L.vV=function(){return this.Z.LX}; g.L.fail=function(R,l){if(!this.LX||(l===void 0?0:l))this.LX=!0,this.sL=R,this.W=0,this.Z!=this||tT(this)}; g.L.getName=function(){return this.Z.v1}; g.L.nQ=function(){return this.Z.Zu()}; g.L.Zu=function(){return{}}; g.L.Ax=function(){return this.Z.W}; g.L.qe=function(){var R=Zx();R.Z=Sj(!0,this.L,R.isMobileDevice)}; g.L.Zs=function(){smj(Zx(),this.L)}; g.L.Fu=function(){return this.Y.Z}; g.L.sample=function(){}; g.L.isActive=function(){return this.Z.D}; g.L.j4=function(R){var l=this.Z;this.Z=R.Ax()>=this.W?R:this;l!==this.Z?(this.D=this.Z.D,tT(this)):this.D!==this.Z.D&&(this.D=this.Z.D,tT(this))}; g.L.Oh=function(R){if(R.X===this.Z){var l=!this.Y.equals(R,this.B);this.Y=R;l&&mdY(this)}}; g.L.Av=function(){return this.B}; g.L.dispose=function(){this.Dq=!0}; g.L.Fx=function(){return this.Dq};g.L=Ym.prototype;g.L.observe=function(){return!0}; g.L.unobserve=function(){}; g.L.Tz=function(R){this.J=R}; g.L.dispose=function(){if(!this.Fx()){var R=this.X;g.bA(R.J,this);R.B&&this.Av()&&nQY(R);this.unobserve();this.xb=!0}}; g.L.Fx=function(){return this.xb}; g.L.nQ=function(){return this.X.nQ()}; g.L.Ax=function(){return this.X.Ax()}; g.L.Qx=function(){return this.X.Qx()}; g.L.vV=function(){return this.X.vV()}; g.L.j4=function(){}; g.L.Oh=function(){this.IS()}; g.L.Av=function(){return this.Dq};g.L=Mu.prototype;g.L.Ax=function(){return this.Z.Ax()}; g.L.Qx=function(){return this.Z.Qx()}; g.L.vV=function(){return this.Z.vV()}; g.L.create=function(R,l,y){var f=null;this.Z&&(f=this.HJ(R,l,y),qu(this.Z,f));return f}; g.L.X4=function(){return this.FU()}; g.L.FU=function(){return!1}; g.L.init=function(R){return this.Z.initialize()?(qu(this.Z,this),this.Y=R,!0):!1}; g.L.j4=function(R){R.Ax()==0&&this.Y(R.Qx(),this)}; g.L.Oh=function(){}; g.L.Av=function(){return!1}; g.L.dispose=function(){this.J=!0}; g.L.Fx=function(){return this.J}; g.L.nQ=function(){return{}};RR.prototype.add=function(R,l,y){++this.L;R=new hSK(R,l,y);this.Z.push(new hSK(R.X,R.Z,R.L+this.L/4096));this.X=!0;return this};O$o.prototype.toString=function(){var R="//pagead2.googlesyndication.com//pagead/gen_204",l=yC(this.Z);l.length>0&&(R+="?"+l);return R};g.p.prototype.kP=!1;g.p.prototype.Fx=function(){return this.kP}; g.p.prototype.dispose=function(){this.kP||(this.kP=!0,this.G4())}; g.p.prototype[Symbol.dispose]=function(){this.dispose()}; g.p.prototype.addOnDisposeCallback=function(R,l){this.kP?l!==void 0?R.call(l):R():(this.fG||(this.fG=[]),l&&(R=R.bind(l)),this.fG.push(R))}; g.p.prototype.G4=function(){if(this.fG)for(;this.fG.length;)this.fG.shift()()};K_.prototype.update=function(R,l,y){R&&(this.Z+=l,this.X+=l,this.Y+=l,this.L=Math.max(this.L,this.Y));if(y===void 0?!R:y)this.Y=0};var QmQ=[1,.75,.5,.3,0];Gl.prototype.update=function(R,l,y,f,A,K){K=K===void 0?!0:K;l=A?Math.min(R,l):l;for(A=0;A0&&l>=G;G=!(R>0&&R>=G)||y;this.Z[A].update(K&&B,f,!K||G)}};mz.prototype.update=function(R,l,y,f){this.V=this.V!=-1?Math.min(this.V,l.e_):l.e_;this.Yb=Math.max(this.Yb,l.e_);this.xb=this.xb!=-1?Math.min(this.xb,l.uV):l.uV;this.sL=Math.max(this.sL,l.uV);this.B1.update(l.uV,y.uV,l.Z,R,f);this.CX+=R;l.e_===0&&(this.v1+=R);this.X.update(l.e_,y.e_,l.Z,R,f);y=f||y.hj!=l.hj?y.isVisible()&&l.isVisible():y.isVisible();l=!l.isVisible()||l.Z;this.UL.update(y,R,l)}; mz.prototype.Bo=function(){return this.UL.L>=this.uQ};if(JT&&JT.URL){var K$r=JT.URL,Gad;if(Gad=!!K$r){var act;a:{if(K$r){var sLK=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var nc=sLK.exec(decodeURIComponent(K$r));if(nc){act=nc[1]&&nc[1].length>1?nc[1].substring(1):"true";break a}}catch(R){}}act=""}Gad=act.length>0}by.wO=!Gad};var B9K=new IA(0,0,0,0);var d2Z=new IA(0,0,0,0);g.O(WM,g.p);g.L=WM.prototype; g.L.G4=function(){if(this.Ie.Z){if(this.TO.UG){var R=this.Ie.Z;typeof R.removeEventListener==="function"&&R.removeEventListener("mouseover",this.TO.UG,f$());this.TO.UG=null}this.TO.h3&&(R=this.Ie.Z,typeof R.removeEventListener==="function"&&R.removeEventListener("mouseout",this.TO.h3,f$()),this.TO.h3=null)}this.XA&&this.XA.dispose();this.gQ&&this.gQ.dispose();delete this.mG;delete this.Vn;delete this.df;delete this.Ie.IQ;delete this.Ie.Z;delete this.TO;delete this.XA;delete this.gQ;delete this.xG; g.p.prototype.G4.call(this)}; g.L.V8=function(){return this.gQ?this.gQ.Z:this.position}; g.L.BH=function(R){AT().BH(R)}; g.L.Av=function(){return!1}; g.L.l6=function(){return new mz}; g.L.gN=function(){return this.mG}; g.L.Th=function(R){return wYi(this,R,1E4)}; g.L.oE=function(R,l,y,f,A,K,G){this.lA||(this.OW&&(R=this.I0(R,y,A,G),f=f&&this.yD.e_>=(this.hj()?.3:.5),this.Ws(K,R,f),this.a$=l,R.e_>0&&-1===this.Xd&&(this.Xd=l),this.a7==-1&&this.Bo()&&(this.a7=l),this.g0==-2&&(this.g0=cM(this.V8())?R.e_:-1),this.yD=R),this.Vn(this))}; g.L.Ws=function(R,l,y){this.gN().update(R,l,this.yD,y)}; g.L.rD=function(){return new MZ}; g.L.I0=function(R,l,y,f){y=this.rD();y.Z=l;l=Fu().X;l=K$(JT)===0?-1:l.isVisible()?0:1;y.X=l;y.e_=this.AN(R);y.hj=this.hj();y.uV=f;return y}; g.L.AN=function(R){return this.opacity===0&&en(this.xG,"opac")===1?0:R}; g.L.hj=function(){return!1}; g.L.qk=function(){return this.QR||this.gA}; g.L.Ga=function(){zX()}; g.L.Pj=function(){zX()}; g.L.BR=function(){return 0}; g.L.Bo=function(){return this.mG.Bo()}; g.L.vr=function(){var R=this.OW;R=(this.hasCompleted||this.Fx())&&!R;var l=AT().X!==2||this.or7;return this.lA||l&&R?2:this.Bo()?4:3}; g.L.NN=function(){return 0};g.OD.prototype.next=function(){return g.m6}; g.m6={done:!0,value:void 0};g.OD.prototype.Xr=function(){return this};g.O(SMs,MZ);var oC=km9([void 0,1,2,3,4,8,16]),hH=km9([void 0,4,8,16]),HpK={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:eb("p0",hH),p1:eb("p1",hH),p2:eb("p2",hH),p3:eb("p3",hH),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:$F("mtos1",[0,2,4],!1,hH),mtos2:$F("mtos2",[0,2,4],!1,hH),mtos3:$F("mtos3",[0,2,4],!1,hH),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:eb("a0",hH),a1:eb("a1",hH),a2:eb("a2",hH),a3:eb("a3",hH),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:eb("c0",hH),c1:eb("c1",hH),c2:eb("c2",hH),c3:eb("c3",hH),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:eb("qmtos",oC),qnc:eb("qnc",oC),qmv:eb("qmv",oC),qnv:eb("qnv",oC), 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:eb("ss0",hH),ss1:eb("ss1",hH),ss2:eb("ss2",hH),ss3:eb("ss3",hH),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"},n_r=Object.assign({},HpK,{avid:rX("audio"),avas:"avas",vs:"vs"}),m5r={atos:"atos",avt:$F("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(R,l){return function(y){return y[R]===void 0&&l!==void 0?l:y[R]}}("ss",0), t:"t"};ra.prototype.getValue=function(){return this.X}; ra.prototype.update=function(R,l){R>=32||(this.Z&1<=.5;km(l.volume)&&(this.Y=this.Y!=-1?Math.min(this.Y,l.volume):l.volume,this.D=Math.max(this.D,l.volume));K&&(this.Dq+=R,this.B+=A?R:0);this.Z.update(l.e_,y.e_,l.Z,R,f,A);this.L.update(!0,R);this.J.update(A,R);this.LX.update(y.fullscreen,R);this.iQ.update(A&&!K,R);R=Math.floor(l.mediaTime/1E3);this.P1.update(R,l.isVisible());this.W1.update(R,l.e_>=1);this.tU.update(R, QC(l))}};CcZ.prototype.X=function(R){this.L||(this.Z(R)?(R=G2K(this.B,this.Y,R),this.J|=R,R=R==0):R=!1,this.L=R)};g.O(wa,CcZ);wa.prototype.Z=function(){return!0}; wa.prototype.D=function(){return!1}; wa.prototype.getId=function(){var R=this,l=m$(VC,function(y){return y==R.Y}); return hl[l].toString()}; wa.prototype.toString=function(){var R="";this.D()&&(R+="c");this.L&&(R+="s");this.J>0&&(R+=":"+this.J);return this.getId()+R};g.O(xF,wa);xF.prototype.X=function(R,l){l=l===void 0?null:l;l!=null&&this.V.push(l);wa.prototype.X.call(this,R)};g.O(IR,qMQ);IR.prototype.X=function(){return null}; IR.prototype.L=function(){return[]};g.O(NH,Ym);g.L=NH.prototype;g.L.bS=function(){if(this.element){var R=this.element,l=this.X.Z.L;try{try{var y=AWZ(R.getBoundingClientRect())}catch(n){y=new IA(0,0,0,0)}var f=y.right-y.left,A=y.bottom-y.top,K=JK9(R,l),G=K.x,B=K.y;var H=new IA(Math.round(B),Math.round(G+f),Math.round(B+A),Math.round(G))}catch(n){H=B9K.clone()}this.L=H;this.Z=oQ7(this,this.L)}}; g.L.O2=function(){this.D=this.X.Y.Z}; g.L.RM=function(R){var l=en(this.xG,"od")==1;return Ttc(R,this.D,this.element,l)}; g.L.tH=function(){this.timestamp=zX()}; g.L.IS=function(){this.tH();this.bS();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var R=this.element;var l=new g.JM(R.videoWidth,R.videoHeight);R=this.Z;var y=Nh(R),f=R.getHeight(),A=l.width;l=l.height;A<=0||l<=0||y<=0||f<=0||(A/=l,l=y/f,R=R.clone(),A>l?(y/=A,f=(f-y)/2,f>0&&(f=R.top+f,R.top=Math.round(f),R.bottom=Math.round(f+y))):(f*=A,y=Math.round((y-f)/2),y>0&&(y=R.left+y,R.left=Math.round(y),R.right=Math.round(y+f))));this.Z=R}this.O2(); R=this.Z;y=this.D;R=R.left<=y.right&&y.left<=R.right&&R.top<=y.bottom&&y.top<=R.bottom?new IA(Math.max(R.top,y.top),Math.min(R.right,y.right),Math.min(R.bottom,y.bottom),Math.max(R.left,y.left)):new IA(0,0,0,0);y=R.top>=R.bottom||R.left>=R.right?new IA(0,0,0,0):R;R=this.X.Y;l=A=f=0;if((this.Z.bottom-this.Z.top)*(this.Z.right-this.Z.left)>0)if(this.RM(y))y=new IA(0,0,0,0);else{f=Zx().Y;l=new IA(0,f.height,f.width,0);var K;f=ED(y,(K=this.J)!=null?K:this.Z);A=ED(y,Zx().Z);l=ED(y,l)}K=y.top>=y.bottom|| y.left>=y.right?new IA(0,0,0,0):Ut(y,-this.Z.left,-this.Z.top);gN()||(A=f=0);this.B=new UQ(R,this.element,this.Z,K,f,A,this.timestamp,l)}; g.L.getName=function(){return this.X.getName()};var o_S=new IA(0,0,0,0);g.O(UD,NH);g.L=UD.prototype;g.L.observe=function(){this.Y();return!0}; g.L.Oh=function(){NH.prototype.IS.call(this)}; g.L.tH=function(){}; g.L.bS=function(){}; g.L.IS=function(){this.Y();NH.prototype.IS.call(this)}; g.L.j4=function(R){R=R.isActive();R!==this.W&&(R?this.Y():(Zx().Z=new IA(0,0,0,0),this.Z=new IA(0,0,0,0),this.D=new IA(0,0,0,0),this.timestamp=-1));this.W=R};var c3={},G_q=(c3.firstquartile=0,c3.midpoint=1,c3.thirdquartile=2,c3.complete=3,c3);g.O(jb,WM);g.L=jb.prototype;g.L.Av=function(){return!0}; g.L.Hp=function(){return this.fW==2}; g.L.Th=function(R){return wYi(this,R,Math.max(1E4,this.L/3))}; g.L.oE=function(R,l,y,f,A,K,G){var B=this,H=this.V(this)||{};g.Lp(H,A);this.L=H.duration||this.L;this.B=H.isVpaid||this.B;this.v1=H.isYouTube||this.v1;Fu();this.B1=!1;A=YMj(this,l);t4Q(this)===1&&(K=A);WM.prototype.oE.call(this,R,l,y,f,H,K,G);this.iG&&this.iG.L&&g.qZ(this.D,function(n){n.X(B)})}; g.L.Ws=function(R,l,y){WM.prototype.Ws.call(this,R,l,y);ZQ(this).update(R,l,this.yD,y);this.uQ=QC(this.yD)&&QC(l);this.sL==-1&&this.W1&&(this.sL=this.gN().L.Z);this.AL.L=0;R=this.Bo();l.isVisible()&&da(this.AL,"vs");R&&da(this.AL,"vw");km(l.volume)&&da(this.AL,"am");QC(l)?da(this.AL,"a"):da(this.AL,"mut");this.cN&&da(this.AL,"f");l.X!=-1&&(da(this.AL,"bm"),l.X==1&&(da(this.AL,"b"),QC(l)&&da(this.AL,"umutb")));QC(l)&&l.isVisible()&&da(this.AL,"avs");this.uQ&&R&&da(this.AL,"avw");l.e_>0&&da(this.AL, "pv");J4(this,this.gN().L.Z,!0)&&da(this.AL,"gdr");HM(this.gN().X,1)>=2E3&&da(this.AL,"pmx");this.B1&&da(this.AL,"tvoff")}; g.L.l6=function(){return new vM}; g.L.gN=function(){return this.mG}; g.L.rD=function(){return new SMs}; g.L.I0=function(R,l,y,f){R=WM.prototype.I0.call(this,R,l,y,f===void 0?-1:f);R.fullscreen=this.cN;R.paused=this.Hp();R.volume=y.volume;km(R.volume)||(this.ZL++,l=this.yD,km(l.volume)&&(R.volume=l.volume));y=y.currentTime;R.mediaTime=y!==void 0&&y>=0?y:-1;return R}; g.L.AN=function(R){return Zx(),this.cN?1:WM.prototype.AN.call(this,R)}; g.L.BR=function(){return 1}; g.L.getDuration=function(){return this.L}; g.L.vr=function(){return this.lA?2:R3T(this)?5:this.Bo()?4:3}; g.L.NN=function(){return this.iQ?this.gN().J.L>=2E3?4:3:2}; g.L.Tz=function(R){this.gQ&&this.gQ.Tz(R)};var hJX=g.mU();WJs.prototype.reset=function(){this.Z=[];this.X=[]}; var MH=PI(WJs);g.O(y$,Mu);g.L=y$.prototype;g.L.getName=function(){return(this.X?this.X:this.Z).getName()}; g.L.nQ=function(){return(this.X?this.X:this.Z).nQ()}; g.L.Ax=function(){return(this.X?this.X:this.Z).Ax()}; g.L.init=function(R){var l=!1;(0,g.qZ)(this.L,function(y){y.initialize()&&(l=!0)}); l&&(this.Y=R,qu(this.Z,this));return l}; g.L.dispose=function(){(0,g.qZ)(this.L,function(R){R.dispose()}); Mu.prototype.dispose.call(this)}; g.L.X4=function(){return Dx(this.L,function(R){return R.eg()})}; g.L.FU=function(){return Dx(this.L,function(R){return R.eg()})}; g.L.HJ=function(R,l,y){return new NH(R,this.Z,l,y)}; g.L.Oh=function(R){this.X=R.X};var e3q={threshold:[0,.3,.5,.75,1]};g.O(fa,NH);g.L=fa.prototype;g.L.observe=function(){var R=this;this.Yb||(this.Yb=zX());if(tvc(298,function(){return bYq(R)}))return!0; this.X.fail("msf");return!1}; g.L.unobserve=function(){if(this.Y&&this.element)try{this.Y.unobserve(this.element),this.W?(this.W.unobserve(this.element),this.W=null):this.V&&(this.V.disconnect(),this.V=null)}catch(R){}}; g.L.IS=function(){var R=Al(this);R.length>0&&Ka(this,R);NH.prototype.IS.call(this)}; g.L.bS=function(){}; g.L.RM=function(){return!1}; g.L.O2=function(){}; g.L.nQ=function(){var R={};return Object.assign(this.X.nQ(),(R.niot_obs=this.Yb,R.niot_cbk=this.LX,R))}; g.L.getName=function(){return"nio"};g.O(Gg,Mu);Gg.prototype.getName=function(){return"nio"}; Gg.prototype.FU=function(){return!Zx().X&&this.Z.Z.L.IntersectionObserver!=null}; Gg.prototype.HJ=function(R,l,y){return new fa(R,this.Z,l,y)};g.O(ak,C4);ak.prototype.Fu=function(){return Zx().Z}; ak.prototype.eg=function(){var R=TkY();this.W!==R&&(this.Z!=this&&R>this.Z.W&&(this.Z=this,tT(this)),this.W=R);return R==2};sO.prototype.sample=function(){na(this,Rk(),!1)}; sO.prototype.Y=function(){var R=gN(),l=zX();R?(xm||(Ig=l,g.qZ(MH.Z,function(y){var f=y.gN();f.jS=zl(f,l,y.fW!=1)})),xm=!0):(this.V=wSJ(this,l),xm=!1,aaj=l,g.qZ(MH.Z,function(y){y.OW&&(y.gN().W=l)})); na(this,Rk(),!R)}; var BX=PI(sO);var Ia7=null,xZ="",wr=!1;var USZ=pSs().NH,ok=pSs().AI;var k_c={nhS:"visible",Zw4:"audible",BkL:"time",MQL:"timetype"},DSo={visible:function(R){return/^(100|[0-9]{1,2})$/.test(R)}, audible:function(R){return R=="0"||R=="1"}, timetype:function(R){return R=="mtos"||R=="tos"}, time:function(R){return/^(100|[0-9]{1,2})%$/.test(R)||/^([0-9])+ms$/.test(R)}}; jfY.prototype.setTime=function(R,l,y){l=="ms"?(this.L=R,this.Y=-1):(this.L=-1,this.Y=R);this.J=y===void 0?"tos":y;return this};g.O(WX,wa);WX.prototype.getId=function(){return this.V}; WX.prototype.D=function(){return!0}; WX.prototype.Z=function(R){var l=R.gN(),y=R.getDuration();return Dx(this.W,function(f){if(f.Z!=void 0)var A=Jbj(f,l);else b:{switch(f.J){case "mtos":A=f.X?l.J.L:l.L.Z;break b;case "tos":A=f.X?l.J.Z:l.L.Z;break b}A=0}A==0?f=!1:(f=f.L!=-1?f.L:y!==void 0&&y>0?f.Y*y:-1,f=f!=-1&&A>=f);return f})};g.O(La,ZDQ);La.prototype.Z=function(R){var l=new D2i;l.Z=Tl(R,HpK);l.X=Tl(R,m5r);return l};g.O(OO,wa);OO.prototype.Z=function(R){return R3T(R)};g.O(PX,qMQ);g.O(un,wa);un.prototype.Z=function(R){return R.gN().Bo()};g.O(Fb,xF);Fb.prototype.Z=function(R){var l=g.uA(this.V,en(AT().xG,"ovms"));return!R.lA&&(R.fW!=0||l)};g.O(Q$,PX);Q$.prototype.X=function(){return new Fb(this.Z)}; Q$.prototype.L=function(){return[new un("viewable_impression",this.Z),new OO(this.Z)]};g.O($Z,UD);$Z.prototype.Y=function(){var R=g.yr("ima.admob.getViewability"),l=en(this.xG,"queryid");typeof R==="function"&&l&&R(l)}; $Z.prototype.getName=function(){return"gsv"};g.O(el,Mu);el.prototype.getName=function(){return"gsv"}; el.prototype.FU=function(){var R=Zx();AT();return R.X&&!1}; el.prototype.HJ=function(R,l,y){return new $Z(this.Z,l,y)};g.O(bn,UD);bn.prototype.Y=function(){var R=this,l=g.yr("ima.bridge.getNativeViewability"),y=en(this.xG,"queryid");typeof l==="function"&&y&&l(y,function(f){g.oL(f)&&R.V++;var A=f.opt_nativeViewVisibleBounds||{},K=f.opt_nativeViewHidden;R.Z=KbY(f.opt_nativeViewBounds||{});var G=R.X.Y;G.Z=K?o_S.clone():KbY(A);R.timestamp=f.opt_nativeTime||-1;Zx().Z=G.Z;f=f.opt_nativeVolume;f!==void 0&&(G.volume=f)})}; bn.prototype.getName=function(){return"nis"};g.O(Xb,Mu);Xb.prototype.getName=function(){return"nis"}; Xb.prototype.FU=function(){var R=Zx();AT();return R.X&&!1}; Xb.prototype.HJ=function(R,l,y){return new bn(this.Z,l,y)};g.O(Tg,C4);g.L=Tg.prototype;g.L.eg=function(){return this.X.iR!=null}; g.L.Zu=function(){var R={};this.P1&&(R.mraid=this.P1);this.xb&&(R.mlc=1);R.mtop=this.X.wAU;this.V&&(R.mse=this.V);this.CX&&(R.msc=1);R.mcp=this.X.compatibility;return R}; g.L.Ot=function(R){var l=g.SJ.apply(1,arguments);try{return this.X.iR[R].apply(this.X.iR,l)}catch(y){vF(538,y,.01,function(f){f.method=R})}}; g.L.initialize=function(){var R=this;if(this.isInitialized)return!this.vV();this.isInitialized=!0;if(this.X.compatibility===2)return this.V="ng",this.fail("w"),!1;if(this.X.compatibility===1)return this.V="mm",this.fail("w"),!1;Zx().W=!0;this.L.document.readyState&&this.L.document.readyState=="complete"?qIY(this):h4(this.L,"load",function(){Fu().setTimeout(rN(292,function(){return qIY(R)}),100)},292); return!0}; g.L.qe=function(){var R=Zx(),l=l17(this,"getMaxSize");R.Z=new IA(0,l.width,l.height,0)}; g.L.Zs=function(){Zx().Y=l17(this,"getScreenSize")}; g.L.dispose=function(){YIK(this);C4.prototype.dispose.call(this)};var eIk=new function(R,l){this.key=R;this.defaultValue=l===void 0?!1:l;this.valueType="boolean"}("45378663");g.L=rr.prototype;g.L.aF=function(R){L_(R,!1);PTj(R)}; g.L.Z3=function(){}; g.L.QP=function(R,l,y,f){var A=this;R=new jb(dX,R,y?l:-1,7,this.c8(),this.IR());R.Zy=f;IK7(R.xG);$_(R.xG,"queryid",R.Zy);R.BH("");NtQ(R,function(){return A.NG.apply(A,g.ci(g.SJ.apply(0,arguments)))},function(){return A.cD.apply(A,g.ci(g.SJ.apply(0,arguments)))}); (f=PI(ln).Z)&&zA7(R,f);this.L&&(R.Tz(this.L),this.L=null);R.Ie.IQ&&PI(dSk);return R}; g.L.j4=function(R){switch(R.Ax()){case 0:if(R=PI(ln).Z)R=R.Z,g.bA(R.J,this),R.B&&this.Av()&&nQY(R);zg();break;case 2:HX()}}; g.L.Oh=function(){}; g.L.Av=function(){return!1}; g.L.cD=function(R,l){R.lA=!0;switch(R.BR()){case 1:a1J(R,l);break;case 2:this.Yd(R)}}; g.L.iW=function(R){var l=R.V(R);l&&(l=l.volume,R.iQ=km(l)&&l>0);fac(R,0);return C_(R,"start",gN())}; g.L.dJ=function(R,l,y){na(BX,[R],!gN());return this.MH(R,l,y)}; g.L.MH=function(R,l,y){return C_(R,y,gN())}; g.L.lW=function(R){return ZT(R,"firstquartile",1)}; g.L.BD=function(R){R.W1=!0;return ZT(R,"midpoint",2)}; g.L.w5=function(R){return ZT(R,"thirdquartile",3)}; g.L.uW=function(R){var l=ZT(R,"complete",4);kF(R);return l}; g.L.kV=function(R){R.fW=3;return C_(R,"error",gN())}; g.L.rG=function(R,l,y){l=gN();if(R.Hp()&&!l){var f=R.gN(),A=zX();f.W=A}na(BX,[R],!l);R.Hp()&&(R.fW=1);return C_(R,y,l)}; g.L.r5=function(R,l){l=this.dJ(R,l||{},"skip");kF(R);return l}; g.L.HD=function(R,l){L_(R,!0);return this.dJ(R,l||{},"fullscreen")}; g.L.Sh=function(R,l){L_(R,!1);return this.dJ(R,l||{},"exitfullscreen")}; g.L.Of=function(R,l,y){l=R.gN();var f=zX();l.jS=zl(l,f,R.fW!=1);na(BX,[R],!gN());R.fW==1&&(R.fW=2);return C_(R,y,gN())}; g.L.MR=function(R){na(BX,[R],!gN());return R.X()}; g.L.n4=function(R){na(BX,[R],!gN());this.Ey(R);kF(R);return R.X()}; g.L.NG=function(){}; g.L.Yd=function(){}; g.L.Ey=function(){}; g.L.Lv=function(){}; g.L.uS=function(){}; g.L.IR=function(){this.Z||(this.Z=this.uS());return this.Z==null?new IR:new Q$(this.Z)}; g.L.c8=function(){return new La};g.O(Jl,wa);Jl.prototype.Z=function(R){return R.NN()==4};g.O(gr,xF);gr.prototype.Z=function(R){R=R.NN();return R==3||R==4};g.O(V$,PX);V$.prototype.X=function(){return new gr(this.Z)}; V$.prototype.L=function(){return[new Jl(this.Z)]};g.O(Ca,ZDQ);Ca.prototype.Z=function(R){R&&(R.e===28&&(R=Object.assign({},R,{avas:3})),R.vs===4||R.vs===5)&&(R=Object.assign({},R,{vs:3}));var l=new D2i;l.Z=Tl(R,n_r);l.X=Tl(R,m5r);return l};nzT.prototype.X=function(){return g.yr(this.Z)};g.O(qX,rr);g.L=qX.prototype;g.L.Z3=function(R,l){var y=this,f=PI(ln);if(f.Z!=null)switch(f.Z.getName()){case "nis":var A=cFi(this,R,l);break;case "gsv":A=hcT(this,R,l);break;case "exc":A=Ezc(this,R)}A||(l.opt_overlayAdElement?A=void 0:l.opt_adElement&&(A=BQY(this,R,l.opt_adElement,l.opt_osdId)));A&&A.BR()==1&&(A.V==g.v0&&(A.V=function(K){return y.Lv(K)}),ozQ(this,A,l)); return A}; g.L.Lv=function(R){R.X=0;R.Dq=0;if(R.Y=="h"||R.Y=="n"){AT();R.tU&&(AT(),NX(this)!="h"&&NX(this));var l=g.yr("ima.common.getVideoMetadata");if(typeof l==="function")try{var y=l(R.Zy)}catch(A){R.X|=4}else R.X|=2}else if(R.Y=="b")if(l=g.yr("ytads.bulleit.getVideoMetadata"),typeof l==="function")try{y=l(R.Zy)}catch(A){R.X|=4}else R.X|=2;else if(R.Y=="ml")if(l=g.yr("ima.common.getVideoMetadata"),typeof l==="function")try{y=l(R.Zy)}catch(A){R.X|=4}else R.X|=2;else R.X|=1;R.X||(y===void 0?R.X|=8:y===null? R.X|=16:g.oL(y)?R.X|=32:y.errorCode!=null&&(R.Dq=y.errorCode,R.X|=64));y==null&&(y={});l=y;R.W=0;for(var f in AAU)l[f]==null&&(R.W|=AAU[f]);H8q(l,"currentTime");H8q(l,"duration");km(y.volume)&&km()&&(y.volume*=NaN);return y}; g.L.uS=function(){AT();NX(this)!="h"&&NX(this);var R=Wkk(this);return R!=null?new nzT(R):null}; g.L.Yd=function(R){!R.Z&&R.lA&&DT(this,R,"overlay_unmeasurable_impression")&&(R.Z=!0)}; g.L.Ey=function(R){R.gs&&(R.Bo()?DT(this,R,"overlay_viewable_end_of_session_impression"):DT(this,R,"overlay_unviewable_impression"),R.gs=!1)}; g.L.NG=function(){}; g.L.QP=function(R,l,y,f){if(bSs()){var A=en(AT().xG,"mm"),K={};(A=(K[K4.b0]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",K[K4.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",K)[A])&&P7Y(this,A);this.Y==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&vF(1044,Error())}R=rr.prototype.QP.call(this,R,l,y,f);this.J&&(l=this.D,R.J==null&&(R.J=new pYi),l.Z[R.Zy]=R.J,R.J.J=hJX);return R}; g.L.aF=function(R){R&&R.BR()==1&&this.J&&delete this.D.Z[R.Zy];return rr.prototype.aF.call(this,R)}; g.L.IR=function(){this.Z||(this.Z=this.uS());return this.Z==null?new IR:this.Y==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new V$(this.Z):new Q$(this.Z)}; g.L.c8=function(){return this.Y==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Ca:new La}; g.L.Tz=function(R,l,y,f,A){l=new IA(y,l+f,y+A,l);(R=YF(MH,R))?R.Tz(l):this.L=l}; var cAd=dN(193,Fk9,void 0,s7q);g.lA("Goog_AdSense_Lidar_sendVastEvent",cAd);var E_d=rN(194,function(R,l){l=l===void 0?{}:l;R=i8J(PI(qX),R,l);return ugQ(R)}); g.lA("Goog_AdSense_Lidar_getViewability",E_d);var W$r=dN(195,function(){return E_J()}); g.lA("Goog_AdSense_Lidar_getUrlSignalsArray",W$r);var L$U=rN(196,function(){return JSON.stringify(E_J())}); g.lA("Goog_AdSense_Lidar_getUrlSignalsList",L$U);var ec9=EY(["//ep2.adtrafficquality.google/sodar/",""]),b8T=EY(["//tpc.googlesyndication.com/sodar/",""]);g.O(MX,Error);g.O(y5,g.p);y5.prototype.eF=function(){return this.wpc.f()}; y5.prototype.Kc=function(R){this.wpc.c(R)}; y5.prototype.ye=function(R){return this.wpc.m(rFk(R))}; y5.prototype.F8=function(R){return this.wpc.mws(rFk(R))}; g.O(Rs,g.p);Rs.prototype.snapshot=function(R){return this.hk.s(Object.assign({},R.CG&&{c:R.CG},R.im&&{s:R.im},R.Z2!==void 0&&{p:R.Z2}))}; Rs.prototype.Mn=function(R){this.hk.e(R)}; Rs.prototype.rV=function(){return this.hk.l()};var NQc;g.O(Ag,g.p);Ag.prototype.share=function(){if(this.Fx())throw Error("E:AD");this.Y++;return this}; Ag.prototype.dispose=function(){--this.Y||g.p.prototype.dispose.call(this)}; NQc=Symbol.dispose;pEr.prototype.K7=function(R,l){this.Z.K7("/client_streamz/bg/frs",R,l)}; Uzj.prototype.K7=function(R,l,y,f,A,K){this.Z.K7("/client_streamz/bg/wrl",R,l,y,f,A,K)}; Sdq.prototype.vA=function(R,l){this.Z.w3("/client_streamz/bg/ec",R,l)}; j79.prototype.K7=function(R,l,y){this.Z.K7("/client_streamz/bg/el",R,l,y)}; k2Y.prototype.vA=function(R,l){this.Z.w3("/client_streamz/bg/cec",R,l)}; DzK.prototype.vA=function(R,l){this.Z.w3("/client_streamz/bg/po/csc",R,l)}; Z8K.prototype.vA=function(R,l){this.Z.w3("/client_streamz/bg/po/ctav",R,l)}; JFi.prototype.vA=function(R,l){this.Z.w3("/client_streamz/bg/po/cwsc",R,l)};g.O(gzQ,QQ);g.O(as,QQ);var hg=[1,2,3];var OpZ=[0,hg,Mdr,gUO,tdr];var ipO=[0,GR,[0,p85,jtZ]];g.O(sj,QQ);var os=[1,2,3];var PNd=[0,os,DZt,S5U,sm,ipO];g.O(Bb,QQ);var uzA=[0,GR,OpZ,PNd];var F$A=[0,Kc];g.O(Hb,QQ);var QLK=[0,Kc,-1,q5U];var $5O=[0,Kc,-1,ZXS,q5U];g.O(nr,QQ);var oRk=[1,2,3];var eJS=[0,oRk,sm,QLK,sm,$5O,sm,F$A];g.O(mo,QQ);mo.prototype.jU=function(){var R=G_(this,3,bc,3,!0);VT(R);return R[void 0]};mo.prototype.L=uTc([0,Kc,eJS,Y58,GR,uzA,VdX,CAK]);g.O(C7Q,QQ);g.L=cb.prototype;g.L.isEnabled=function(){if(!g.Mo.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{DP:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.L.set=function(R,l,y){var f=!1;if(typeof y==="object"){var A=y.fG$;f=y.secure||!1;var K=y.domain||void 0;var G=y.path||void 0;var B=y.DP}if(/[;=\s]/.test(R))throw Error('Invalid cookie name "'+R+'"');if(/[;\r\n]/.test(l))throw Error('Invalid cookie value "'+l+'"');B===void 0&&(B=-1);y=K?";domain="+K:"";G=G?";path="+G:"";f=f?";secure":"";B=B<0?"":B==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+B*1E3)).toUTCString();this.Z.cookie=R+"="+l+y+G+B+f+(A!=null?";samesite="+ A:"")}; g.L.get=function(R,l){for(var y=R+"=",f=(this.Z.cookie||"").split(";"),A=0,K;A=0;l--)this.remove(R[l])}; var z9=new cb(typeof document=="undefined"?null:document);Wb.prototype.compress=function(R){var l,y,f,A;return g.w(function(K){switch(K.X){case 1:return l=new CompressionStream("gzip"),y=(new Response(l.readable)).arrayBuffer(),f=l.writable.getWriter(),g.v(K,f.write((new TextEncoder).encode(R)),2);case 2:return g.v(K,f.close(),3);case 3:return A=Uint8Array,g.v(K,y,4);case 4:return K.return(new A(K.Z))}})}; Wb.prototype.isSupported=function(R){return R<1024?!1:typeof CompressionStream!=="undefined"};g.O(Lr,QQ);Oj.prototype.setInterval=function(R){this.intervalMs=R;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; Oj.prototype.start=function(){var R=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){R.tick()},this.intervalMs),this.X=this.Z())}; Oj.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; Oj.prototype.tick=function(){var R=this;if(this.enabled){var l=Math.max(this.Z()-this.X,0);l0?y:void 0));y=lT(y,4,ha(A>0?A:void 0));y=lT(y,5,ha(K>0?K:void 0));A=y.w7;K=A[jS]|0;y=go(y,K)?y:gt(y,A,K)?Vl(y,A):new y.constructor(Ja(A,K,!0));ek(G,uO,10,y)}G=this.Z.clone();y=Date.now().toString();G=lT(G,4,F9(y));R=bT(G,dJ,3,R.slice());f&&(G=new iO,f=lT(G,13,ha(f)),G=new Pb, f=ek(G,iO,2,f),G=new TY,f=ek(G,Pb,1,f),f=pY(f,2,9),ek(R,TY,18,f));l&&xG(R,14,l);return R};g.wJ.prototype.X=0;g.wJ.prototype.reset=function(){this.Z=this.L=this.Y;this.X=0}; g.wJ.prototype.getValue=function(){return this.L};g.O(Rg,QQ);var bpD=ly(Rg);g.O(iSc,QQ);var Em;Em=new PoZ;g.O(pr,g.p);g.L=pr.prototype;g.L.G4=function(){Ng(this);this.X.stop();this.P1.stop();g.p.prototype.G4.call(this)}; g.L.dispatch=function(R){if(R instanceof dJ)this.log(R);else try{var l=new dJ,y=R.Bf();var f=If(l,8,y);this.log(f)}catch(A){Uj(this,4,1)}}; g.L.log=function(R){Uj(this,2,1);if(this.CX){R=R.clone();var l=this.UL++;R=xG(R,21,l);this.componentId&&If(R,26,this.componentId);l=R;var y=M2(l,1);var f=f===void 0?!1:f;var A=typeof y;f=y==null?y:A==="bigint"?String(LD(64,y)):od(y)?A==="string"?WY(y):f?OM(y):uc(y):void 0;f==null&&(f=Date.now(),f=Number.isFinite(f)?f.toString():"0",lT(l,1,F9(f)));f=M2(l,15);f!=null&&(typeof f==="bigint"?pD(f)?f=Number(f):(f=LD(64,f),f=pD(f)?Number(f):String(f)):f=od(f)?typeof f==="number"?uc(f):WY(f):void 0);f!=null|| xG(l,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(f=this.experimentIds.clone(),ek(l,Lr,16,f));Uj(this,1,1);l=this.Z.length-1E3+1;l>0&&(this.Z.splice(0,l),this.Y+=l,Uj(this,3,l));this.Z.push(R);this.AP||this.X.enabled||this.X.start()}}; g.L.flush=function(R,l){var y=this;if(this.Z.length===0)R&&R();else if(this.sL&&this.LX)this.L.X=3,i4J(this);else{var f=Date.now();if(this.jS>f&&this.Dq0&&(y.Dq=Date.now(),y.jS=y.Dq+c);c=ot(vY);var Q;SS&&c&&((Q=E.w7[c])==null?void 0:Q[175237375])!=null&&p$(PAD,3);a:{var e=e===void 0?!1:e;if(ot(uSX)&&ot(vY)&&void 0===uSX){Q=E.w7;c=Q[vY];if(!c)break a;if(c=c.CF)try{c(Q,175237375,X8U);break a}catch(r){$Q(r)}}e&&(e=E.w7, (Q=ot(vY))&&Q in e&&(e=e[Q])&&delete e[175237375])}e=Em.Z?Em.X(E,Em.Z,175237375,Em.L):Em.X(E,175237375,null,Em.L);if(e=e===null?void 0:e)e=T_(e,1,-1),e!==-1&&(y.J=new g.wJ(e<1?1:e,3E5,.1),y.X.setInterval(y.J.getValue()))}}R&&R();y.D=0},m=function(c,E){var W=PS(K,dJ,3); var Q=Number(xsZ(K,14));g.x2(y.J);y.X.setInterval(y.J.getValue());c===401&&G&&(y.v1=G);Q&&(y.Y+=Q);E===void 0&&(E=y.isRetryable(c));E&&(y.Z=W.concat(y.Z),y.AP||y.X.enabled||y.X.start());Uj(y,7,1);l&&l("net-send-failed",c);++y.D},h=function(){y.network&&y.network.send(H,n,m)}; B?B.then(function(c){Uj(y,5,A);H.requestHeaders["Content-Encoding"]="gzip";H.requestHeaders["Content-Type"]="application/binary";H.body=c;H.ZH=2;h()},function(){Uj(y,6,A); h()}):h()}}}}; g.L.isRetryable=function(R){return 500<=R&&R<600||R===401||R===0};SH.prototype.send=function(R,l,y){var f=this,A,K,G,B,H,n,m,h,c,E;return g.w(function(W){switch(W.X){case 1:return K=(A=f.VO?new AbortController:void 0)?setTimeout(function(){A.abort()},R.timeoutMillis):void 0,g.$7(W,2,3),G=Object.assign({},{method:R.requestType, headers:Object.assign({},R.requestHeaders)},R.body&&{body:R.body},R.withCredentials&&{credentials:"include"},{signal:R.timeoutMillis&&A?A.signal:null}),g.v(W,fetch(R.url,G),5);case 5:B=W.Z;if(B.status!==200){(H=y)==null||H(B.status);W.bQ(3);break}if((n=l)==null){W.bQ(7);break}return g.v(W,B.text(),8);case 8:n(W.Z);case 7:case 3:g.zT(W);clearTimeout(K);g.x7(W,0);break;case 2:m=g.TT(W);switch((h=m)==null?void 0:h.name){case "AbortError":(c=y)==null||c(408);break;default:(E=y)==null||E(400)}W.bQ(3)}})}; SH.prototype.qN=function(){return 4};g.O(jH,g.p);jH.prototype.RR=function(){this.J=!0;return this}; jH.prototype.build=function(){this.network||(this.network=new SH);var R=new pr({logSource:this.logSource,yx:this.yx?this.yx:GXJ,sessionIndex:this.sessionIndex,HMX:this.bA,lG:this.Y,AP:!1,RR:this.J,z_:this.z_,network:this.network});g.U(this,R);if(this.X){var l=this.X,y=zY(R.L);If(y,7,l)}R.V=new Wb;this.componentId&&(R.componentId=this.componentId);this.NV&&(R.NV=this.NV);this.pageId&&(R.pageId=this.pageId);this.Z&&((y=this.Z)?(R.experimentIds||(R.experimentIds=new Lr),l=R.experimentIds,y=y.Bf(),If(l, 4,y)):R.experimentIds&&lT(R.experimentIds,4));this.L&&(R.sL=R.LX);cT7(R.L);this.network.uc&&this.network.uc(this.logSource);this.network.lGL&&this.network.lGL(R);return R};g.O(k2,g.p);k2.prototype.flush=function(R){R=R||[];if(R.length){for(var l=new C7Q,y=[],f=0;f-1?(l=R[G],y||(l.l_=!1)):(l=new XFk(l,this.src,K,!!f,A),l.l_=y,R.push(l));return l}; g.L.remove=function(R,l,y,f){R=R.toString();if(!(R in this.listeners))return!1;var A=this.listeners[R];l=Mg(A,l,y,f);return l>-1?(qg(A[l]),g.FS(A,l),A.length==0&&(delete this.listeners[R],this.Z--),!0):!1}; g.L.removeAll=function(R){R=R&&R.toString();var l=0,y;for(y in this.listeners)if(!R||y==R){for(var f=this.listeners[y],A=0;A-1?R[A]:null}; g.L.hasListener=function(R,l){var y=R!==void 0,f=y?R.toString():"",A=l!==void 0;return g.Kp(this.listeners,function(K){for(var G=0;G>>0);g.hK(g.sT,g.p);g.sT.prototype[e$j]=!0;g.L=g.sT.prototype;g.L.addEventListener=function(R,l,y,f){g.lx(this,R,l,y,f)}; g.L.removeEventListener=function(R,l,y,f){xuo(this,R,l,y,f)}; g.L.dispatchEvent=function(R){var l=this.WH;if(l){var y=[];for(var f=1;l;l=l.WH)y.push(l),++f}l=this.zp;f=R.type||R;if(typeof R==="string")R=new g.gJ(R,l);else if(R instanceof g.gJ)R.target=R.target||l;else{var A=R;R=new g.gJ(f,l);g.Lp(R,A)}A=!0;var K;if(y)for(K=y.length-1;!R.X&&K>=0;K--){var G=R.currentTarget=y[K];A=ou(G,f,!0,R)&&A}R.X||(G=R.currentTarget=l,A=ou(G,f,!0,R)&&A,R.X||(A=ou(G,f,!1,R)&&A));if(y)for(K=0;!R.X&&K0){this.X--;var R=this.Z;this.Z=R.next;R.next=null}else R=this.L();return R};var WK;OT.prototype.add=function(R,l){var y=jgZ.get();y.set(R,l);this.X?this.X.next=y:this.Z=y;this.X=y}; OT.prototype.remove=function(){var R=null;this.Z&&(R=this.Z,this.Z=this.Z.next,this.Z||(this.X=null),R.next=null);return R}; var jgZ=new cK(function(){return new ix},function(R){return R.reset()}); ix.prototype.set=function(R,l){this.Z=R;this.scope=l;this.next=null}; ix.prototype.reset=function(){this.next=this.scope=this.Z=null};var PK,ux=!1,UuZ=new OT;kXi.prototype.reset=function(){this.context=this.X=this.L=this.Z=null;this.Y=!1}; var DuZ=new cK(function(){return new kXi},function(R){R.reset()}); g.$v.prototype.then=function(R,l,y){return Mji(this,ET(typeof R==="function"?R:null),ET(typeof l==="function"?l:null),y)}; g.$v.prototype.$goog_Thenable=!0;g.L=g.$v.prototype;g.L.finally=function(R){var l=this;R=ET(R);return new Promise(function(y,f){Vjk(l,function(A){R();y(A)},function(A){R(); f(A)})})}; g.L.H6=function(R,l){return Mji(this,null,ET(R),l)}; g.L.catch=g.$v.prototype.H6;g.L.cancel=function(R){if(this.Z==0){var l=new xv(R);g.FC(function(){Cyi(this,l)},this)}}; g.L.hQQ=function(R){this.Z=0;QL(this,2,R)}; g.L.UWx=function(R){this.Z=0;QL(this,3,R)}; g.L.CH=function(){for(var R;R=qQ9(this);)tjJ(this,R,this.Z,this.V);this.D=!1}; var fQZ=$Q;g.hK(xv,E5);xv.prototype.name="cancel";g.hK(g.Iu,g.sT);g.L=g.Iu.prototype;g.L.enabled=!1;g.L.oV=null;g.L.setInterval=function(R){this.H0=R;this.oV&&this.enabled?(this.stop(),this.start()):this.oV&&this.stop()}; g.L.grE=function(){if(this.enabled){var R=g.mU()-this.oM;R>0&&R0&&(this.getStatus(),this.D=setTimeout(this.XX.bind(this), this.LX)),this.getStatus(),this.B=!0,this.Z.send(R),this.B=!1}catch(G){this.getStatus(),Lzo(this,G)}}; g.L.XX=function(){typeof gC!="undefined"&&this.Z&&(this.Y="Timed out after "+this.LX+"ms, aborting",this.X=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.L.abort=function(R){this.Z&&this.L&&(this.getStatus(),this.L=!1,this.J=!0,this.Z.abort(),this.J=!1,this.X=R||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),J_(this))}; g.L.G4=function(){this.Z&&(this.L&&(this.L=!1,this.J=!0,this.Z.abort(),this.J=!1),J_(this,!0));g.ZY.lO.G4.call(this)}; g.L.ME=function(){this.Fx()||(this.xb||this.B||this.J?O_q(this):this.P8L())}; g.L.P8L=function(){O_q(this)}; g.L.isActive=function(){return!!this.Z}; g.L.isComplete=function(){return g.VL(this)==4}; g.L.getStatus=function(){try{return g.VL(this)>2?this.Z.status:-1}catch(R){return-1}}; g.L.getResponseHeader=function(R){if(this.Z&&this.isComplete())return R=this.Z.getResponseHeader(R),R===null?void 0:R}; g.L.getLastError=function(){return typeof this.Y==="string"?this.Y:String(this.Y)};M_.prototype.send=function(R,l,y){l=l===void 0?function(){}:l; y=y===void 0?function(){}:y; EFT(R.url,function(f){f=f.target;Cv(f)?l(g.q_(f)):y(f.getStatus())},R.requestType,R.body,R.requestHeaders,R.timeoutMillis,R.withCredentials)}; M_.prototype.qN=function(){return 1};lG.prototype.done=function(){this.logger.qO(this.event,R2()-this.startTime)}; g.O(y_,Ag);g.O(AR,y_);g.L=AR.prototype;g.L.aN=function(){}; g.L.bx=function(){}; g.L.qO=function(){}; g.L.nW=function(){}; g.L.Qr=function(){}; g.L.x5=function(R,l,y,f){return f}; g.L.lZ=function(){}; g.L.EP=function(){}; g.L.S5=function(){}; g.L.oO=function(){}; g.O(K3,y_);g.L=K3.prototype;g.L.update=function(R){this.logger.dispose();this.logger=R}; g.L.bx=function(R){this.logger.bx(R)}; g.L.qO=function(R,l){this.logger.qO(R,l)}; g.L.nW=function(R){this.logger.nW(R)}; g.L.Qr=function(){this.logger.Qr()}; g.L.x5=function(R,l,y,f){return this.logger.x5(R,l,y,f)}; g.L.lZ=function(R){this.logger.lZ(R)}; g.L.EP=function(R){this.logger.EP(R)}; g.L.S5=function(R){this.logger.S5(R)}; g.L.oO=function(R){this.logger.oO(R)}; g.L.aN=function(R){this.logger.aN(R)}; g.O(GN,g.p);g.O(a2,y_);g.L=a2.prototype;g.L.aN=function(R){this.metrics.ZML.K7(R,this.MP)}; g.L.bx=function(R){this.metrics.eventCount.vA(R,this.MP)}; g.L.qO=function(R,l){this.metrics.QY.K7(l,R,this.MP)}; g.L.nW=function(R){this.metrics.errorCount.vA(R,this.MP)}; g.L.x5=function(R,l,y,f){function A(B){if(!K.Fx()){var H=R2()-G;K.metrics.XE4.K7(H,R,y,B,l,K.MP)}} var K=this,G=R2();f.then(function(){return void A(0)},function(B){return void A(B instanceof Sf?B.code:-1)}); return f}; g.L.lZ=function(R){this.metrics.YpL.vA(R,this.MP)}; g.L.EP=function(R){this.metrics.LB.vA(R,this.MP)}; g.L.S5=function(R){this.metrics.LWb.vA(R,this.MP)}; g.O(sP,a2);sP.prototype.oO=function(R){var l=this;R=R.slice();g.gO(R);g.Vr(R,this.X)||(this.Z.dispose(),this.L&&this.service.dispose(),this.service=this.options.qV("49",this.options.S7.concat(R)),this.Z=new GN(function(){return void l.service.q1()},this.options.uZ),this.metrics=uRq(this.service),this.X=R)}; sP.prototype.Qr=function(){QRQ(this.Z)};g.O(BG,QQ);g.O(HG,QQ);g.O(n3,QQ);var NaT=ly(n3),el9=function(R){return sJ(function(l){return l instanceof R&&!go(l)})}(n3); n3.messageId="bfkj";g.O(fr,QQ);g.O(mg,QQ);var b_r=ly(mg);g.O(hR,g.p);hR.prototype.snapshot=function(R){if(this.Fx())throw Error("Already disposed");this.logger.bx("n");var l=this.logger.share();return this.L.then(function(y){var f=y.H2;return new Promise(function(A){var K=new lG(l,"n");f(function(G){K.done();l.aN(G.length);l.Qr();l.dispose();A(G)},[R.CG, R.im,R.wf,R.Z2])})})}; hR.prototype.Ld=function(R){var l=this;if(this.Fx())throw Error("Already disposed");this.logger.bx("n");var y=f3(this.logger,function(){return l.Y([R.CG,R.im,R.wf,R.Z2])},"n"); this.logger.aN(y.length);this.logger.Qr();return y}; hR.prototype.Mn=function(R){this.L.then(function(l){var y;(y=l.jz1)==null||y(R)})}; hR.prototype.rV=function(){return this.logger.share()};g.O(WG,QQ);g.O(L3,QQ);OP.prototype.Rv=function(R){return jRi(this,R,new AR,0)};g.O(iG,g.p);iG.prototype.snapshot=function(R){var l=this;return g.w(function(y){switch(y.X){case 1:if(l.Fx())throw Error("Already disposed");if(l.X||l.V){y.bQ(2);break}return g.v(y,l.J.promise,2);case 2:if(!l.X){y.bQ(4);break}return g.v(y,l.X.snapshot(R),5);case 5:return y.return(y.Z);case 4:throw l.V;}})}; iG.prototype.Mn=function(R){var l,y;(l=this.X)==null||(y=l.Mn)==null||y.call(l,R)}; iG.prototype.handleError=function(R){if(!this.Fx()){this.V=R;this.J.resolve();var l,y;(y=(l=this.options).YFS)==null||y.call(l,R)}}; iG.prototype.rV=function(){return this.logger.share()}; var Z_r={LeS:432E5,ZF:3E5,GR:10,vX:1E4,fH:3E4,U_:3E4,MIQ:6E4,D9:1E3,bY:6E4,J8:6E5,Ro:.25,yY:2,maxAttempts:10};var d55,Rm9=(d55=Math.imul)!=null?d55:function(R,l){return R*l|0},Q_=[196, 200,224,18];$l.prototype.Bf=function(){return String(this.Z)+","+this.X.join()}; $l.prototype.Up=function(R,l){var y=void 0;if(this.X[this.Z]!==R){var f=this.X.indexOf(R);f!==-1?(this.X.splice(f,1),f0;)l[y++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(R%62),R=Math.floor(R/62);return l.join("")}};var oZZ;g.O(bG,g.p);bG.prototype.F8=function(R,l){var y=this.ye(R);l==null||l(y);return f3(this.logger,function(){return g.b4(y,2)},this.X)}; oZZ=Symbol.dispose;g.O(de,bG);de.prototype.ye=function(R,l){var y=this;this.logger.bx(this.Z);++this.J>=this.D&&this.L.resolve();var f=R();R=f3(this.logger,function(){return y.Y(f)},"C"); if(R===void 0)throw new MX(17,"YNJ:Undefined");if(!(R instanceof Uint8Array))throw new MX(18,"ODM:Invalid");l==null||l(R);return R}; g.O(re,bG);re.prototype.ye=function(){return this.Y}; g.O(vG,bG);vG.prototype.ye=function(){var R=this;return f3(this.logger,function(){return To(R.Y)},"d")}; vG.prototype.F8=function(){return this.Y}; g.O(zN,bG);zN.prototype.ye=function(){if(this.Y)return this.Y;this.Y=hms(this,function(R){return"_"+mXT(R)}); return hms(this,function(R){return R})}; g.O(xl,bG);xl.prototype.ye=function(){var R=Math.floor(Date.now()/1E3),l=[Math.random()*255,Math.random()*255],y=l.concat([this.Y&255,this.clientState],[R>>24&255,R>>16&255,R>>8&255,R&255]);R=new Uint8Array(2+y.length);R[0]=34;R[1]=y.length;R.set(y,2);y=R.subarray(2);for(var f=l=l.length;f150))try{this.cache=new aT7(R,this.logger)}catch(l){this.reportError(new MX(22,"GBJ:init",l))}}; g.L.reportError=function(R){this.logger.nW(R.code);this.onError(R);return R}; var W_r=function(R){return sJ(function(l){if(!OXU(l))return!1;for(var y=g.u(Object.entries(R)),f=y.next();!f.done;f=y.next()){var A=g.u(f.value);f=A.next().value;A=A.next().value;if(!(f in l)){if(A.duQ===!0)continue;return!1}if(!A(l[f]))return!1}return!0})}({hk:function(R){return sJ(function(l){return l instanceof R})}(iG)},"");var tfo=(new Date).getTime();g.O(S1,QQ);var rAK=ly(S1);ems.prototype.getMetadata=function(){return this.metadata};j1.prototype.getMetadata=function(){return this.metadata}; j1.prototype.getStatus=function(){return this.status};kl.prototype.V=function(R,l){l=l===void 0?{}:l;return new ems(R,this,l)}; kl.prototype.getName=function(){return this.name};var v_U=new kl("/google.internal.waa.v1.Waa/Create",WG,S1,function(R){return R.Bf()},rAK);g.O(Dn,QQ);var UHQ=new kl("/google.internal.waa.v1.Waa/GenerateIT",L3,Dn,function(R){return R.Bf()},ly(Dn));var ygY=new Set(["SAPISIDHASH","APISIDHASH"]);g.O(Zn,QQ);Zn.prototype.getValue=function(){var R=M2(this,2);if(Array.isArray(R)||R instanceof QQ)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return sI(this,2)};g.O(JR,QQ);JR.prototype.getMessage=function(){return rk(this,2)}; var vZQ=ly(JR);ge.prototype.Yo=function(R,l){R=="data"?this.L.push(l):R=="metadata"?this.J.push(l):R=="status"?this.D.push(l):R=="end"?this.Y.push(l):R=="error"&&this.X.push(l);return this}; ge.prototype.removeListener=function(R,l){R=="data"?Yl(this.L,l):R=="metadata"?Yl(this.J,l):R=="status"?Yl(this.D,l):R=="end"?Yl(this.Y,l):R=="error"&&Yl(this.X,l);return this}; ge.prototype.cancel=function(){this.Z.abort()}; ge.prototype.cancel=ge.prototype.cancel;ge.prototype.removeListener=ge.prototype.removeListener;ge.prototype.on=ge.prototype.Yo;g.O(XXZ,Error);g.hK(g.Ml,hlc);g.Ml.prototype.Z=function(){var R=new Rj(this.Y,this.L);this.X&&R.setCredentialsMode(this.X);return R}; g.Ml.prototype.setCredentialsMode=function(R){this.X=R}; g.hK(Rj,g.sT);g.L=Rj.prototype;g.L.open=function(R,l){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.LX=R;this.B=l;this.readyState=1;lw(this)}; g.L.send=function(R){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.Z=!0;var l={headers:this.W,method:this.LX,credentials:this.J,cache:void 0};R&&(l.body=R);(this.Yb||g.Mo).fetch(new Request(this.B,l)).then(this.Kp.bind(this),this.yf.bind(this))}; g.L.abort=function(){this.response=this.responseText="";this.W=new Headers;this.status=0;this.L&&this.L.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.Z&&this.readyState!=4&&(this.Z=!1,yg(this));this.readyState=0}; g.L.Kp=function(R){if(this.Z&&(this.Y=R,this.X||(this.status=this.Y.status,this.statusText=this.Y.statusText,this.X=R.headers,this.readyState=2,lw(this)),this.Z&&(this.readyState=3,lw(this),this.Z)))if(this.responseType==="arraybuffer")R.arrayBuffer().then(this.O5.bind(this),this.yf.bind(this));else if(typeof g.Mo.ReadableStream!=="undefined"&&"body"in R){this.L=R.body.getReader();if(this.D){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.V=new TextDecoder;zmq(this)}else R.text().then(this.t0.bind(this),this.yf.bind(this))}; g.L.V$=function(R){if(this.Z){if(this.D&&R.value)this.response.push(R.value);else if(!this.D){var l=R.value?R.value:new Uint8Array(0);if(l=this.V.decode(l,{stream:!R.done}))this.response=this.responseText+=l}R.done?yg(this):lw(this);this.readyState==3&&zmq(this)}}; g.L.t0=function(R){this.Z&&(this.response=this.responseText=R,yg(this))}; g.L.O5=function(R){this.Z&&(this.response=R,yg(this))}; g.L.yf=function(){this.Z&&yg(this)}; g.L.setRequestHeader=function(R,l){this.W.append(R,l)}; g.L.getResponseHeader=function(R){return this.X?this.X.get(R.toLowerCase())||"":""}; g.L.getAllResponseHeaders=function(){if(!this.X)return"";for(var R=[],l=this.X.entries(),y=l.next();!y.done;)y=y.value,R.push(y[0]+": "+y[1]),y=l.next();return R.join("\r\n")}; g.L.setCredentialsMode=function(R){this.J=R}; Object.defineProperty(Rj.prototype,"withCredentials",{get:function(){return this.J==="include"}, set:function(R){this.setCredentialsMode(R?"include":"same-origin")}});g.AI.prototype.toString=function(){var R=[],l=this.J;l&&R.push(nz(l,zJK,!0),":");var y=this.Z;if(y||l=="file")R.push("//"),(l=this.W)&&R.push(nz(l,zJK,!0),"@"),R.push(g.bH(y).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),y=this.L,y!=null&&R.push(":",String(y));if(y=this.X)this.Z&&y.charAt(0)!="/"&&R.push("/"),R.push(nz(y,y.charAt(0)=="/"?wrU:x5O,!0));(y=this.Y.toString())&&R.push("?",y);(y=this.D)&&R.push("#",nz(y,IcK));return R.join("")}; g.AI.prototype.resolve=function(R){var l=this.clone(),y=!!R.J;y?g.Kz(l,R.J):y=!!R.W;y?l.W=R.W:y=!!R.Z;y?g.GS(l,R.Z):y=R.L!=null;var f=R.X;if(y)g.aj(l,R.L);else if(y=!!R.X){if(f.charAt(0)!="/")if(this.Z&&!this.X)f="/"+f;else{var A=l.X.lastIndexOf("/");A!=-1&&(f=l.X.slice(0,A+1)+f)}A=f;if(A==".."||A==".")f="";else if(g.r9(A,"./")||g.r9(A,"/.")){f=Ta(A,"/");A=A.split("/");for(var K=[],G=0;G1||K.length==1&&K[0]!="")&&K.pop(), f&&G==A.length&&K.push("")):(K.push(B),f=!0)}f=K.join("/")}else f=A}y?l.X=f:y=R.Y.toString()!=="";y?sl(l,R.Y.clone()):y=!!R.D;y&&(l.D=R.D);return l}; g.AI.prototype.clone=function(){return new g.AI(this)}; var zJK=/[#\/\?@]/g,x5O=/[#\?:]/g,wrU=/[#\?]/g,NrZ=/[#\?@]/g,IcK=/#/g;g.L=H6.prototype;g.L.add=function(R,l){hI(this);this.L=null;R=c6(this,R);var y=this.Z.get(R);y||this.Z.set(R,y=[]);y.push(l);this.X=this.X+1;return this}; g.L.remove=function(R){hI(this);R=c6(this,R);return this.Z.has(R)?(this.L=null,this.X=this.X-this.Z.get(R).length,this.Z.delete(R)):!1}; g.L.clear=function(){this.Z=this.L=null;this.X=0}; g.L.isEmpty=function(){hI(this);return this.X==0}; g.L.forEach=function(R,l){hI(this);this.Z.forEach(function(y,f){y.forEach(function(A){R.call(l,A,f,this)},this)},this)}; g.L.kH=function(){hI(this);for(var R=Array.from(this.Z.values()),l=Array.from(this.Z.keys()),y=[],f=0;f0?String(R[0]):l}; g.L.toString=function(){if(this.L)return this.L;if(!this.Z)return"";for(var R=[],l=Array.from(this.Z.keys()),y=0;y>>3;K.L!=1&&K.L!=2&&K.L!=15&&Ol(K,G,B,"unexpected tag");K.Z=1;K.X=0;K.Y=0} function y(H){K.Y++;K.Y==5&&H&240&&Ol(K,G,B,"message length too long");K.X|=(H&127)<<(K.Y-1)*7;H&128||(K.Z=2,K.W=0,typeof Uint8Array!=="undefined"?K.J=new Uint8Array(K.X):K.J=Array(K.X),K.X==0&&A())} function f(H){K.J[K.W++]=H;K.W==K.X&&A()} function A(){if(K.L<15){var H={};H[K.L]=K.J;K.V.push(H)}K.Z=0} for(var K=this,G=R instanceof Array?R:new Uint8Array(R),B=0;B0?R:null};iw.prototype.isInputValid=function(){return this.Z===null}; iw.prototype.iO=function(){return this.Z}; iw.prototype.Cl=function(){return!1}; iw.prototype.parse=function(R){this.Z!==null&&Jlr(this,R,"stream already broken");var l=null;try{var y=this.L;y.L||Zaq(y,R,"stream already broken");y.Z+=R;var f=Math.floor(y.Z.length/4);if(f==0)var A=null;else{try{var K=T9Y(y.Z.slice(0,f*4))}catch(G){Zaq(y,y.Z,G.message)}y.X+=f*4;y.Z=y.Z.slice(f*4);A=K}l=A===null?null:this.Y.parse(A)}catch(G){Jlr(this,R,G.message)}this.X+=R.length;return l};var prd={INIT:0,By:1,dn:2,A5:3,k7:4,u2:5,STRING:6,Nq:7,Oe:8,wY:9,qz:10,ZJ:11,Zn:12,Xb:13,LO:14,YS:15,kX:16,S3:17,lq:18,pZ:19,Ab:20};g.L=uw.prototype;g.L.isInputValid=function(){return this.J!=3}; g.L.iO=function(){return this.B}; g.L.done=function(){return this.J===2}; g.L.Cl=function(){return!1}; g.L.parse=function(R){function l(){for(;c0;)if(W=R[c++], K.W===4?K.W=0:K.W++,!W)break a;if(W==='"'&&!K.V){K.Z=f();break}if(W==="\\"&&!K.V&&(K.V=!0,W=R[c++],!W))break;if(K.V)if(K.V=!1,W==="u"&&(K.W=1),W=R[c++])continue;else break;B.lastIndex=c;W=B.exec(R);if(!W){c=R.length+1;break}c=W.index+1;W=R[W.index];if(!W)break}K.L+=c-Q;continue;case H.wY:if(!W)continue;W==="r"?K.Z=H.qz:FD(K,R,c);continue;case H.qz:if(!W)continue;W==="u"?K.Z=H.ZJ:FD(K,R,c);continue;case H.ZJ:if(!W)continue;W==="e"?K.Z=f():FD(K,R,c);continue;case H.Zn:if(!W)continue;W==="a"?K.Z=H.Xb: FD(K,R,c);continue;case H.Xb:if(!W)continue;W==="l"?K.Z=H.LO:FD(K,R,c);continue;case H.LO:if(!W)continue;W==="s"?K.Z=H.YS:FD(K,R,c);continue;case H.YS:if(!W)continue;W==="e"?K.Z=f():FD(K,R,c);continue;case H.kX:if(!W)continue;W==="u"?K.Z=H.S3:FD(K,R,c);continue;case H.S3:if(!W)continue;W==="l"?K.Z=H.lq:FD(K,R,c);continue;case H.lq:if(!W)continue;W==="l"?K.Z=f():FD(K,R,c);continue;case H.pZ:W==="."?K.Z=H.Ab:FD(K,R,c);continue;case H.Ab:if("0123456789.eE+-".indexOf(W)!==-1)continue;else c--,K.L--,K.Z= f();continue;default:FD(K,R,c)}}} function f(){var W=G.pop();return W!=null?W:H.By} function A(W){K.X>1||(W||(W=h===-1?K.Y+R.substring(m,c):R.substring(h,c)),K.LX?K.D.push(W):K.D.push(JSON.parse(W)),h=c)} for(var K=this,G=K.Yb,B=K.xb,H=prd,n=R.length,m=0,h=-1,c=0;c0?(E=K.D,K.D=[],E):null}return null};Qg.prototype.isInputValid=function(){return this.J===null}; Qg.prototype.iO=function(){return this.J}; Qg.prototype.Cl=function(){return!1}; Qg.prototype.parse=function(R){function l(H){K.X=6;K.J="The stream is broken @"+K.Z+"/"+G+". Error: "+H+". With input:\n";throw Error(K.J);} function y(){K.L=new uw({FiL:!0,cX:!0})} function f(H){if(H)for(var n=0;n1)&&l("extra status: "+H);K.D=!0;var n={};n[2]=H[0];K.Y.push(n)}} for(var K=this,G=0;G0?(R=K.Y,K.Y=[],R):null};$A.prototype.yk=function(){return this.Z}; $A.prototype.getStatus=function(){return this.J}; $A.prototype.LX=function(R){R=R.target;try{if(R==this.Z)a:{var l=g.VL(this.Z),y=this.Z.X,f=this.Z.getStatus(),A=g.q_(this.Z);R=[];if(g.t_(this.Z)instanceof Array){var K=g.t_(this.Z);K.length>0&&K[0]instanceof Uint8Array&&(this.B=!0,R=K)}if(!(l<3||l==3&&!A&&R.length==0))if(f=f==200||f==206,l==4&&(y==8?eC(this,7):y==7?eC(this,8):f||eC(this,3)),this.X||(this.X=gZq(this.Z),this.X==null&&eC(this,5)),this.J>2)bw(this);else{if(R.length>this.L){var G=R.length;y=[];try{if(this.X.Cl())for(var B=0;Bthis.L){B=A.slice(this.L);this.L=A.length;try{var n=this.X.parse(B);n!=null&&this.Y&&this.Y(n)}catch(m){eC(this,5);bw(this);break a}}l==4?(A.length!= 0||this.B?eC(this,2):eC(this,4),bw(this)):eC(this,1)}}}catch(m){eC(this,6),bw(this)}};g.L=VlJ.prototype;g.L.Yo=function(R,l){var y=this.X[R];y||(y=[],this.X[R]=y);y.push(l);return this}; g.L.addListener=function(R,l){this.Yo(R,l);return this}; g.L.removeListener=function(R,l){var y=this.X[R];y&&g.bA(y,l);(R=this.Z[R])&&g.bA(R,l);return this}; g.L.once=function(R,l){var y=this.Z[R];y||(y=[],this.Z[R]=y);y.push(l);return this}; g.L.B74=function(R){var l=this.X.data;l&&Cno(R,l);(l=this.Z.data)&&Cno(R,l);this.Z.data=[]}; g.L.LML=function(){switch(this.L.getStatus()){case 1:XD(this,"readable");break;case 5:case 6:case 4:case 7:case 3:XD(this,"error");break;case 8:XD(this,"close");break;case 2:XD(this,"end")}};qOo.prototype.serverStreaming=function(R,l,y,f){var A=this,K=R.substring(0,R.length-f.name.length);return f9c(function(G){var B=G.TI,H=G.getMetadata(),n=MlZ(A,!1);H=Rq7(A,H,n,K+B.getName());var m=l9o(n,B.X,!0);G=B.Z(G.Sl);n.send(H,"POST",G);return m},this.k9).call(this,f.V(l,y))};Agr.prototype.create=function(R,l,y){var f=this.Z,A=this.X+"/$rpc/google.internal.waa.v1.Waa/Create";l=l||{};y=y===void 0?{}:y;return SDs(f,A,R,l,v_U,y)};var KoJ="://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(" "),GYK=/\bocr\b/;var ssr=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(R){throw R;}},{KiL:!0, cIL:!0,uv9:!1,kCQ:stA,SI1:BOO,lE4:!1,gHX:!1,EHx:!0,tO1:!1});var rU=null,zS=!1,irJ=1,WoZ=Symbol("SIGNAL"),W3={version:0,ONS:0,FN:!1,RJ:void 0,XZ:void 0,VI:void 0,yZ:0,v$:void 0,rH:void 0,qM:!1,Zd:!1,kind:"unknown",N3:function(){return!1}, A4:function(){}, Xg:function(){}, dHL:function(){}};var Lc=Symbol("UNSET"),Om=Symbol("COMPUTING"),iU=Symbol("ERRORED");Object.assign({},W3,{value:Lc,FN:!0,error:null,uf:dU,kind:"computed",N3:function(R){return R.value===Lc||R.value===Om}, A4:function(R){if(R.value===Om)throw Error("");var l=R.value;R.value=Om;var y=n2Y(R),f=!1;try{var A=R.Fj();v6(null);f=l!==Lc&&l!==iU&&A!==iU&&R.uf(l,A)}catch(K){A=iU,R.error=K}finally{mgZ(R,y)}f?R.value=l:(R.value=A,R.version++)}});var E2J=Object.assign({},W3,{uf:dU,value:void 0,kind:"signal"});Object.assign({},W3,{value:Lc,FN:!0,error:null,uf:dU,kind:"linkedSignal",N3:function(R){return R.value===Lc||R.value===Om}, A4:function(R){if(R.value===Om)throw Error("");var l=R.value;R.value=Om;var y=n2Y(R);try{var f=R.source();var A=R.Fj(f,l===Lc||l===iU?void 0:{source:R.LkE,value:l});R.LkE=f}catch(K){A=iU,R.error=K}finally{mgZ(R,y)}l!==Lc&&A!==iU&&R.uf(l,A)?R.value=l:(R.value=A,R.version++)}});Object.assign({},W3,{Zd:!0,qM:!1,Xg:function(R){R.schedule!==null&&R.schedule(R.Pox)}, gOE:!1,VO7:function(){}});g.O(NT,g.sT);NT.prototype.dispose=function(){window.removeEventListener("offline",this.L);window.removeEventListener("online",this.L);this.Bp.Yz(this.J);delete NT.instance}; NT.prototype.DX=function(){return this.Z}; NT.prototype.pS=function(){var R=this;this.J=this.Bp.Oi(function(){var l;return g.w(function(y){if(y.X==1)return R.Z?((l=window.navigator)==null?0:l.onLine)?y.bQ(3):g.v(y,Ij(R),3):g.v(y,Ij(R),3);R.pS();g.Q9(y)})},3E4)};Ul.prototype.set=function(R,l){l=l===void 0?!0:l;0<=R&&R<52&&Number.isInteger(R)&&this.data[R]!==l&&(this.data[R]=l,this.Z=-1)}; Ul.prototype.get=function(R){return!!this.data[R]};var jC;g.hK(g.ZF,g.p);g.L=g.ZF.prototype;g.L.start=function(){this.stop();this.Y=!1;var R=Qss(this),l=$gr(this);R&&!l&&this.X.mozRequestAnimationFrame?(this.Z=g.lx(this.X,"MozBeforePaint",this.L),this.X.mozRequestAnimationFrame(null),this.Y=!0):this.Z=R&&l?R.call(this.X,this.L):this.X.setTimeout(jto(this.L),20)}; g.L.stop=function(){if(this.isActive()){var R=Qss(this),l=$gr(this);R&&!l&&this.X.mozRequestAnimationFrame?Kv(this.Z):R&&l?l.call(this.X,this.Z):this.X.clearTimeout(this.Z)}this.Z=null}; g.L.isActive=function(){return this.Z!=null}; g.L.L5=function(){this.Y&&this.Z&&Kv(this.Z);this.Z=null;this.D.call(this.J,g.mU())}; g.L.G4=function(){this.stop();g.ZF.lO.G4.call(this)};g.hK(g.Vg,g.p);g.L=g.Vg.prototype;g.L.g2=0;g.L.G4=function(){g.Vg.lO.G4.call(this);this.stop();delete this.Z;delete this.X}; g.L.start=function(R){this.stop();this.g2=g.N_(this.L,R!==void 0?R:this.H0)}; g.L.stop=function(){this.isActive()&&g.Mo.clearTimeout(this.g2);this.g2=0}; g.L.isActive=function(){return this.g2!=0}; g.L.TV=function(){this.g2=0;this.Z&&this.Z.call(this.X)};g.O(g.YA,g.p);g.L=g.YA.prototype;g.L.BJ=function(R){this.L=arguments;this.oV||this.X?this.Z=!0:MT(this)}; g.L.stop=function(){this.oV&&(g.Mo.clearTimeout(this.oV),this.oV=null,this.Z=!1,this.L=null)}; g.L.pause=function(){this.X++}; g.L.resume=function(){this.X--;this.X||!this.Z||this.oV||(this.Z=!1,MT(this))}; g.L.G4=function(){g.p.prototype.G4.call(this);this.stop()};g.Rc.prototype[Symbol.iterator]=function(){return this}; g.Rc.prototype.next=function(){var R=this.Z.next();return{value:R.done?void 0:this.X.call(void 0,R.value),done:R.done}};g.hK(g.HJ,g.sT);g.L=g.HJ.prototype;g.L.isPlaying=function(){return this.Z==1}; g.L.isPaused=function(){return this.Z==-1}; g.L.FT=function(){this.gL("begin")}; g.L.TA=function(){this.gL("end")}; g.L.onFinish=function(){this.gL("finish")}; g.L.onStop=function(){this.gL("stop")}; g.L.gL=function(R){this.dispatchEvent(R)};var U58=zP(function(){var R=g.ho("DIV"),l=g.H0?"-webkit":Zf?"-moz":null,y="transition:opacity 1s linear;";l&&(y+=l+"-transition:opacity 1s linear;");l=X87({style:y});if(R.nodeType===1&&/^(script|style)$/i.test(R.tagName))throw Error("");R.innerHTML=hM(l);return g.Jo(R.firstChild,"transition")!=""});g.hK(ng,g.HJ);g.L=ng.prototype;g.L.play=function(){if(this.isPlaying())return!1;this.FT();this.gL("play");this.startTime=g.mU();this.Z=1;if(U58())return g.Df(this.X,this.D),this.L=g.N_(this.UlE,void 0,this),!0;this.Jb(!1);return!1}; g.L.UlE=function(){g.l4(this.X);XbZ(this.X,this.V);g.Df(this.X,this.Y);this.L=g.N_((0,g.B8)(this.Jb,this,!1),this.J*1E3)}; g.L.stop=function(){this.isPlaying()&&this.Jb(!0)}; g.L.Jb=function(R){g.Df(this.X,"transition","");g.Mo.clearTimeout(this.L);g.Df(this.X,this.Y);this.endTime=g.mU();this.Z=0;if(R)this.onStop();else this.onFinish();this.TA()}; g.L.G4=function(){this.stop();ng.lO.G4.call(this)}; g.L.pause=function(){};var dgY={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};mO("Element","attributes")||mO("Node","attributes");mO("Element","innerHTML")||mO("HTMLElement","innerHTML");mO("Node","nodeName");mO("Node","nodeType");mO("Node","parentNode");mO("Node","childNodes");mO("HTMLElement","style")||mO("Element","style");mO("HTMLStyleElement","sheet");var I97=v2r("getPropertyValue"),NJc=v2r("setProperty");mO("Element","namespaceURI")||mO("Node","namespaceURI");var xgi={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var jsi,YYO,SjJ,Ug7,kY9;jsi=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]");YYO=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.Shd=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.hU=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]");SjJ=/^http:\/\/.*/;g.jLr=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Ug7=/\s+/;kY9=/[\d\u06f0-\u06f9]/;Ev.prototype.Xr=function(){return new WJ(this.X())}; Ev.prototype[Symbol.iterator]=function(){return new Lg(this.X())}; Ev.prototype.Z=function(){return new Lg(this.X())}; g.O(WJ,g.OD);WJ.prototype.next=function(){return this.X.next()}; WJ.prototype[Symbol.iterator]=function(){return new Lg(this.X)}; WJ.prototype.Z=function(){return new Lg(this.X)}; g.O(Lg,Ev);Lg.prototype.next=function(){return this.L.next()};i0.prototype.clone=function(){return new i0(this.Z,this.V,this.L,this.J,this.Y,this.D,this.X,this.W)}; i0.prototype.equals=function(R){return this.Z==R.Z&&this.V==R.V&&this.L==R.L&&this.J==R.J&&this.Y==R.Y&&this.D==R.D&&this.X==R.X&&this.W==R.W};u0.prototype.clone=function(){return new u0(this.start,this.end)};(function(){if(Ka7){var R=/Windows NT ([0-9.]+)/;return(R=R.exec(g.pp()))?R[1]:"0"}return Ku?(R=/1[0|1][_.][0-9_.]+/,(R=R.exec(g.pp()))?R[0].replace(/_/g,"."):"10"):g.Ya?(R=/Android\s+([^\);]+)(\)|;)/,(R=R.exec(g.pp()))?R[1]:""):mZK||oUr||hDU?(R=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(R=R.exec(g.pp()))?R[1].replace(/_/g,"."):""):""})();var Zrs=function(){if(g.sN)return Ft(/Firefox\/([0-9.]+)/);if(g.oc||g.g4||g.Sr)return PAQ;if(g.iz){if(IM()||Ns()){var R=Ft(/CriOS\/([0-9.]+)/);if(R)return R}return Ft(/Chrome\/([0-9.]+)/)}if(g.LO&&!IM())return Ft(/Version\/([0-9.]+)/);if(C0||qr){if(R=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.pp()))return R[1]+"."+R[2]}else if(g.jr)return(R=Ft(/Android\s+([0-9.]+)/))?R:Ft(/Version\/([0-9.]+)/);return""}();g.hK(g.$8,g.p);g.L=g.$8.prototype;g.L.subscribe=function(R,l,y){var f=this.X[R];f||(f=this.X[R]=[]);var A=this.D;this.Z[A]=R;this.Z[A+1]=l;this.Z[A+2]=y;this.D=A+3;f.push(A);return A}; g.L.unsubscribe=function(R,l,y){if(R=this.X[R]){var f=this.Z;if(R=R.find(function(A){return f[A+1]==l&&f[A+2]==y}))return this.un(R)}return!1}; g.L.un=function(R){var l=this.Z[R];if(l){var y=this.X[l];this.Y!=0?(this.L.push(R),this.Z[R+1]=function(){}):(y&&g.bA(y,R),delete this.Z[R],delete this.Z[R+1],delete this.Z[R+2])}return!!l}; g.L.publish=function(R,l){var y=this.X[R];if(y){var f=Array(arguments.length-1),A=arguments.length,K;for(K=1;K0&&this.Y==0)for(;y=this.L.pop();)this.un(y)}}return K!=0}return!1}; g.L.clear=function(R){if(R){var l=this.X[R];l&&(l.forEach(this.un,this),delete this.X[R])}else this.Z.length=0,this.X={}}; g.L.G4=function(){g.$8.lO.G4.call(this);this.clear();this.L.length=0};g.ex.prototype.set=function(R,l){l===void 0?this.Z.remove(R):this.Z.set(R,g.jf(l))}; g.ex.prototype.get=function(R){try{var l=this.Z.get(R)}catch(y){return}if(l!==null)try{return JSON.parse(l)}catch(y){throw"Storage: Invalid value was encountered";}}; g.ex.prototype.remove=function(R){this.Z.remove(R)};g.hK(b0,g.ex);b0.prototype.set=function(R,l){b0.lO.set.call(this,R,VHj(l))}; b0.prototype.X=function(R){R=b0.lO.get.call(this,R);if(R===void 0||R instanceof Object)return R;throw"Storage: Invalid value was encountered";}; b0.prototype.get=function(R){if(R=this.X(R)){if(R=R.data,R===void 0)throw"Storage: Invalid value was encountered";}else R=void 0;return R};g.hK(Xt,b0);Xt.prototype.set=function(R,l,y){if(l=VHj(l)){if(y){if(y=y.length)return g.m6;var A=y.key(l++);if(R)return g.is(A);A=y.getItem(A);if(typeof A!=="string")throw"Storage mechanism: Invalid value was encountered";return g.is(A)}; return f}; g.L.clear=function(){vJ(this);this.Z.clear()}; g.L.key=function(R){vJ(this);return this.Z.key(R)};g.hK(z8,rx);g.hK(tHZ,rx);g.hK(wx,dx);wx.prototype.set=function(R,l){this.X.set(this.Z+R,l)}; wx.prototype.get=function(R){return this.X.get(this.Z+R)}; wx.prototype.remove=function(R){this.X.remove(this.Z+R)}; wx.prototype.Xr=function(R){var l=this.X[Symbol.iterator](),y=this,f=new g.OD;f.next=function(){var A=l.next();if(A.done)return A;for(A=A.value;A.slice(0,y.Z.length)!=y.Z;){A=l.next();if(A.done)return A;A=A.value}return g.is(R?A.slice(y.Z.length):y.X.get(A))}; return f};Ic.prototype.getValue=function(){return this.X}; Ic.prototype.clone=function(){return new Ic(this.Z,this.X)};g.L=N3.prototype;g.L.Up=function(R,l){var y=this.Z;y.push(new Ic(R,l));R=y.length-1;l=this.Z;for(y=l[R];R>0;){var f=R-1>>1;if(l[f].Z>y.Z)l[R]=l[f],R=f;else break}l[R]=y}; g.L.remove=function(){var R=this.Z,l=R.length,y=R[0];if(!(l<=0)){if(l==1)R.length=0;else{R[0]=R.pop();R=0;l=this.Z;for(var f=l.length,A=l[R];R>1;){var K=R*2+1,G=R*2+2;K=GA.Z)break;l[R]=l[K];R=K}l[R]=A}return y.getValue()}}; g.L.QX=function(){for(var R=this.Z,l=[],y=R.length,f=0;f>>16&65535|0;for(var K;y!==0;){K=y>2E3?2E3:y;y-=K;do A=A+l[f++]|0,R=R+A|0;while(--K);A%=65521;R%=65521}return A|R<<16|0};for(var o8={},P3,g_S=[],uU=0;uU<256;uU++){P3=uU;for(var VnZ=0;VnZ<8;VnZ++)P3=P3&1?3988292384^P3>>>1:P3>>>1;g_S[uU]=P3}o8=function(R,l,y,f){y=f+y;for(R^=-1;f>>8^g_S[(R^l[f])&255];return R^-1};var fE={};fE={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 q3=[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],M3=[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],uCs=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],nv7=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],a8=Array(576);jx(a8);var sC=Array(60);jx(sC);var Y8=Array(512);jx(Y8);var Cg=Array(256);jx(Cg);var tU=Array(29);jx(tU);var R8=Array(30);jx(R8);var Ov9,ivK,Pxs,Lyc=!1;var LE;LE=[new Wg(0,0,0,0,function(R,l){var y=65535;for(y>R.jQ-5&&(y=R.jQ-5);;){if(R.KA<=1){hZ(R);if(R.KA===0&&l===0)return 1;if(R.KA===0)break}R.pA+=R.KA;R.KA=0;var f=R.yl+y;if(R.pA===0||R.pA>=f)if(R.KA=R.pA-f,R.pA=f,Bg(R,!1),R.fS.KS===0)return 1;if(R.pA-R.yl>=R.ac-262&&(Bg(R,!1),R.fS.KS===0))return 1}R.Up=0;if(l===4)return Bg(R,!0),R.fS.KS===0?3:4;R.pA>R.yl&&Bg(R,!1);return 1}), new Wg(4,4,8,4,cg),new Wg(4,5,16,8,cg),new Wg(4,6,32,32,cg),new Wg(4,4,16,16,EC),new Wg(8,16,32,32,EC),new Wg(8,16,128,128,EC),new Wg(8,32,128,256,EC),new Wg(32,128,258,1024,EC),new Wg(32,258,258,4096,EC)];var Wy9={};Wy9=function(){this.input=null;this.TW=this.JO=this.pR=0;this.output=null;this.gE=this.KS=this.nL=0;this.msg="";this.state=null;this.M4=2;this.T9=0};var FyZ=Object.prototype.toString; OC.prototype.push=function(R,l){var y=this.fS,f=this.options.chunkSize;if(this.ended)return!1;var A=l===~~l?l:l===!0?4:0;typeof R==="string"?y.input=Ras(R):FyZ.call(R)==="[object ArrayBuffer]"?y.input=new Uint8Array(R):y.input=R;y.pR=0;y.JO=y.input.length;do{y.KS===0&&(y.output=new Sx.RH(f),y.nL=0,y.KS=f);R=Evr(y,A);if(R!==1&&R!==0)return this.TA(R),this.ended=!0,!1;if(y.KS===0||y.JO===0&&(A===4||A===2))if(this.options.to==="string"){var K=Sx.rO(y.output,y.nL);l=K;K=K.length;if(K<65537&&(l.subarray&& JA5||!l.subarray))l=String.fromCharCode.apply(null,Sx.rO(l,K));else{for(var G="",B=0;B0||y.KS===0)&&R!==1);if(A===4)return(y=this.fS)&&y.state?(f=y.state.status,f!==42&&f!==69&&f!==73&&f!==91&&f!==103&&f!==113&&f!==666?R=AZ(y,-2):(y.state=null,R=f===113?AZ(y,-3):0)):R=-2,this.TA(R),this.ended=!0,R===0;A===2&&(this.TA(0),y.KS=0);return!0}; OC.prototype.TA=function(R){R===0&&(this.result=this.options.to==="string"?this.chunks.join(""):Sx.O6(this.chunks));this.chunks=[];this.err=R;this.msg=this.fS.msg};var Pg="@@redux/INIT"+i8(),TCq="@@redux/REPLACE"+i8();var d_Q=typeof Symbol==="function"&&Symbol.observable||"@@observable";var CNA=[0,RJt,-3,B3];g.O(wK9,QQ);var iKJ=function(){var R=[0,yAU,lcO,Kc,RJt,Kc,-1,B3,RJt,B3,-1,yAU,B3,lcO,GR,CNA,Kc,-1,B3];return function(l,y){var f={Cr:!0};y&&Object.assign(f,y);l=kso(l,void 0,void 0,f);try{var A=new wK9,K=A.w7;wQ(R)(K,l);var G=A}finally{l.free()}return G}}();var x_r=45263041;var MIj=new g.QX("adInfoDialogEndpoint");var dej=new g.QX("adPingingEndpoint");var Y_q=new g.QX("crossDeviceProgressCommand");var O4=new g.QX("actionCompanionAdRenderer");var tP=new g.QX("adActionInterstitialRenderer");var qhU=new g.QX("adDurationRemainingRenderer");var MY=new g.QX("adHoverTextButtonRenderer");var tIk=new g.QX("adInfoDialogRenderer");var xs=new g.QX("adMessageRenderer");var RU=new g.QX("adPreviewRenderer");var Pp=new g.QX("adsEngagementPanelRenderer");var $WK=new g.QX("dismissablePanelTextPortraitImageRenderer");var Fdi=new g.QX("adsEngagementPanelSectionListViewModel");var tnO=new g.QX("flyoutCtaRenderer");var ik=new g.QX("imageCompanionAdRenderer");var CV=new g.QX("instreamAdPlayerOverlayRenderer");var WsU=new g.QX("instreamSurveyAdBackgroundImageRenderer");var Yq=new g.QX("instreamSurveyAdPlayerOverlayRenderer");var U4=new g.QX("instreamSurveyAdRenderer"),tG=new g.QX("instreamSurveyAdSingleSelectQuestionRenderer"),qY=new g.QX("instreamSurveyAdMultiSelectQuestionRenderer"),FJ=new g.QX("instreamSurveyAdAnswerRenderer"),YhZ=new g.QX("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var NY=new g.QX("instreamVideoAdRenderer");var MnS=new g.QX("textOverlayAdContentRenderer"),Rpd=new g.QX("enhancedTextOverlayAdContentRenderer"),lor=new g.QX("imageOverlayAdContentRenderer");var q$=new g.QX("playerOverlayLayoutRenderer");var YX=new g.QX("videoInterstitialButtonedCenteredLayoutRenderer");var dWQ=new g.QX("aboveFeedAdLayoutRenderer");var rVY=new g.QX("belowPlayerAdLayoutRenderer");var Thc=new g.QX("inPlayerAdLayoutRenderer");var kq=new g.QX("playerBytesAdLayoutRenderer");var CW=new g.QX("playerBytesSequenceItemAdLayoutRenderer");var VI=new g.QX("playerUnderlayAdLayoutRenderer");var pW=new g.QX("adIntroRenderer");var xq=new g.QX("playerBytesSequentialLayoutRenderer");var Hnq=new g.QX("slidingTextPlayerOverlayRenderer");var S3=new g.QX("surveyTextInterstitialRenderer");var DR=new g.QX("videoAdTrackingRenderer");var iJr=new g.QX("videoInterstitialCenteredLayoutViewModel");var yMU=new g.QX("simpleAdBadgeRenderer");var $P=new g.QX("skipAdRenderer"),foK=new g.QX("skipButtonRenderer");var A9=new g.QX("adSlotRenderer");var JG=new g.QX("squeezebackPlayerSidePanelRenderer");var AMA=new g.QX("timedPieCountdownRenderer");var VO=new g.QX("adAvatarViewModel");var Ch=new g.QX("adBadgeViewModel");var qC=new g.QX("adButtonViewModel");var KHU=new g.QX("adDetailsLineViewModel");var Gsd=new g.QX("adDisclosureBannerViewModel");var aod=new g.QX("adPodIndexViewModel");var sMU=new g.QX("imageBackgroundViewModel");var BFX=new g.QX("adGridCardCollectionViewModel");var HGX=new g.QX("adGridCardTextViewModel");var nJK=new g.QX("adPreviewViewModel");var ms8=new g.QX("playerAdAvatarLockupCardButtonedViewModel");var oJd=new g.QX("skipAdButtonViewModel");var hpU=new g.QX("skipAdViewModel");var cMU=new g.QX("timedPieCountdownViewModel");var EJD=new g.QX("visitAdvertiserLinkViewModel");var uk=new g.QX("bannerImageLayoutViewModel");var FQ=new g.QX("topBannerImageTextIconButtonedLayoutViewModel");var QI=new g.QX("adsEngagementPanelLayoutViewModel");var gb=new g.QX("displayUnderlayTextGridCardsLayoutViewModel");g.pC=new g.QX("browseEndpoint");var WHU=new g.QX("confirmDialogEndpoint");var g0Z=new g.QX("commandContext");var oak=new g.QX("rawColdConfigGroup");var mr9=new g.QX("rawHotConfigGroup");g.h7=new g.QX("commandExecutorCommand");g.O(NCk,QQ);var uAk={QLU:0,NLX:1,uKU:32,MbS:61,XR$:67,m5L:103,iGL:86,cfE:42,kuQ:60,d5L:62,BL1:73,loL:76,wpq:88,quL:90,LiS:99,Kab:98,Z$U:100,HGX:102,YIq:41,Tp4:69,IE9:70,GCb:71,Cy1:2,eK9:27,ANDROID:3,hJX:54,UDb:14,Hsx:91,OsU:55,tJ$:24,KWS:20,E0x:18,u0X:21,kLE:104,MJU:30,mDx:29,wE9:28,foU:101,qpE:34,BoX:36,cJ1:38,IOS:5,bW1:15,vzQ:92,DL4:40,RbQ:25,QeU:17,CV1:19,eb7:64,FSb:66,gz9:26,fmQ:22,Vo$:33,jeQ:68,oz9:35,PVL:53,nz4:37,JuQ:39,LaQ:7,Yux:57,TLL:43,Gu1:59,Io4:93,is1:74,aoS:75,x57:85,pp$:65,bGE:80,sL4:8,ZG1:10, Jf4:58,D5S:63,yfX:72,rJ4:23,pRX:11,yI7:13,ovX:12,Xpx:16,E84:56,rfQ:31,DCx:77,OfX:84,SuQ:87,K8L:89,tvU:94,Z7S:95};g.O($O,QQ);$O.prototype.Eq=function(){return rk(this,3)}; $O.prototype.Mr=function(){return rk(this,5)}; $O.prototype.f8=function(R){return If(this,5,R)};g.O(eV,QQ);g.O(pKq,QQ);g.O(b8,QQ);g.L=b8.prototype;g.L.getDeviceId=function(){return rk(this,6)}; g.L.Ra=function(R){var l=G_(this,9,cY,3,!0);VT(l,R);return l[R]}; g.L.getPlayerType=function(){return vS(this,36)}; g.L.setHomeGroupInfo=function(R){return ek(this,pKq,81,R)}; g.L.clearLocationPlayabilityToken=function(){return lT(this,89)};g.O(XI,QQ);XI.prototype.getValue=function(){return rk(this,WS(this,H0c,2))}; var H0c=[2,3,4,5,6];g.O(TD,QQ);TD.prototype.setTrackingParams=function(R){return lT(this,1,jL9(R,!1))};g.O(d_,QQ);g.O(r_,QQ);r_.prototype.Ra=function(R){var l=G_(this,5,EM,3,!0);VT(l,R);return l[R]};g.O(vg,QQ);vg.prototype.getToken=function(){return wk(this,2)}; vg.prototype.setToken=function(R){return If(this,2,R)};g.O(zD,QQ);zD.prototype.setSafetyMode=function(R){return pY(this,5,R)};g.O(w_,QQ);w_.prototype.Em=function(R){return ek(this,b8,1,R)};var yk=new g.QX("thumbnailLandscapePortraitRenderer");g.LHO=new g.QX("changeEngagementPanelVisibilityAction");var bOr=new g.QX("continuationCommand");g.OGA=new g.QX("openPopupAction");g.Qn=new g.QX("webCommandMetadata");var M3j=new g.QX("metadataBadgeRenderer");var e4Y=new g.QX("signalServiceEndpoint");var vy=new g.QX("innertubeCommand");var HOq=new g.QX("loggingDirectives");var FgT={yO1:"EMBEDDED_PLAYER_MODE_UNKNOWN",ay1:"EMBEDDED_PLAYER_MODE_DEFAULT",p69:"EMBEDDED_PLAYER_MODE_PFP",x$1:"EMBEDDED_PLAYER_MODE_PFL"};var $ji=new g.QX("channelThumbnailEndpoint");var QUi=new g.QX("embeddedPlayerErrorMessageRenderer");var isi=new g.QX("embeddedPlayerOverlayVideoDetailsRenderer"),e0r=new g.QX("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),bsk=new g.QX("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var q4q=new g.QX("embedsInfoPanelRenderer");var iGr=new g.QX("feedbackEndpoint");var PHr=new g.QX("callToActionButtonViewModel");var uwD=new g.QX("interactionLoggingCommandMetadata");var Og7={tb1:"WEB_DISPLAY_MODE_UNKNOWN",WaL:"WEB_DISPLAY_MODE_BROWSER",U51:"WEB_DISPLAY_MODE_MINIMAL_UI",OGQ:"WEB_DISPLAY_MODE_STANDALONE",hCQ:"WEB_DISPLAY_MODE_FULLSCREEN"};g.O(xO,QQ);xO.prototype.getPlayerType=function(){return vS(this,7)}; xO.prototype.PA=function(){return rk(this,19)}; xO.prototype.setVideoId=function(R){return If(this,19,R)};g.O(I8,QQ);g.O(NM,QQ);g.O(pE,QQ); var FH5=[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 QMd=new g.QX("loggingContext");g.O(UC,QQ);g.O(SV,QQ);SV.prototype.PA=function(){return wk(this,WS(this,Gw,1))}; SV.prototype.setVideoId=function(R){return cS(this,1,Gw,e4(R))}; SV.prototype.getPlaylistId=function(){return wk(this,WS(this,Gw,2))}; var Gw=[1,2];g.O(U_j,QQ);var ht=new g.QX("changeKeyedMarkersVisibilityCommand");var $st=new g.QX("changeMarkersVisibilityCommand");var lXq=new g.QX("loadMarkersCommand");var ep8=new g.QX("suggestedActionDataViewModel");var Y87=new g.QX("timelyActionViewModel");var tOi=new g.QX("timelyActionsOverlayViewModel");var aMJ=new g.QX("productListItemRenderer");var bGt=new g.QX("shoppingOverlayRenderer");var PDo=new g.QX("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var X48=new g.QX("adFeedbackEndpoint");var TFO=new g.QX("menuEndpoint");var ok7=new g.QX("phoneDialerEndpoint");var nkq=new g.QX("sendSmsEndpoint");var Osc=new g.QX("copyTextEndpoint");var dsr=new g.QX("shareEndpoint"),rMU=new g.QX("shareEntityEndpoint"),vJt=new g.QX("shareEntityServiceEndpoint"),zpK=new g.QX("webPlayerShareEntityServiceEndpoint");g.wp=new g.QX("urlEndpoint");g.mh=new g.QX("watchEndpoint");var w4O=new g.QX("watchPlaylistEndpoint");g.xsS=new g.QX("offlineOrchestrationActionCommand");var Ufi=new g.QX("compositeVideoOverlayRenderer");var IoK=new g.QX("miniplayerRenderer");var WYZ=new g.QX("paidContentOverlayRenderer");var NFd=new g.QX("playerMutedAutoplayOverlayRenderer"),p4K=new g.QX("playerMutedAutoplayEndScreenRenderer");var nqQ=new g.QX("unserializedPlayerResponse"),UsU=new g.QX("unserializedPlayerResponse");var Spr=new g.QX("playlistEditEndpoint");var $k;g.lD=new g.QX("buttonRenderer");$k=new g.QX("toggleButtonRenderer");var uer=new g.QX("counterfactualRenderer");var jMS=new g.QX("resolveUrlCommandMetadata");var ksZ=new g.QX("modifyChannelNotificationPreferenceEndpoint");var Tzq=new g.QX("pingingEndpoint");var Dsr=new g.QX("unsubscribeEndpoint");g.UU=new g.QX("subscribeButtonRenderer");var ZG8=new g.QX("subscribeEndpoint");var k5i=new g.QX("buttonViewModel");var QhY=new g.QX("qrCodeRenderer");var QTZ={lmS:"LIVING_ROOM_APP_MODE_UNSPECIFIED",uM1:"LIVING_ROOM_APP_MODE_MAIN",cuQ:"LIVING_ROOM_APP_MODE_KIDS",k8U:"LIVING_ROOM_APP_MODE_MUSIC",SUE:"LIVING_ROOM_APP_MODE_UNPLUGGED",EzU:"LIVING_ROOM_APP_MODE_GAMING"};var gqi=new g.QX("autoplaySwitchButtonRenderer");var Su,R8r,LVZ,n37;Su=new g.QX("decoratedPlayerBarRenderer");R8r=new g.QX("chapteredPlayerBarRenderer");LVZ=new g.QX("multiMarkersPlayerBarRenderer");n37=new g.QX("chapterRenderer");g.ArT=new g.QX("markerRenderer");var E3k=new g.QX("decoratedPlayheadRenderer");var t3r=new g.QX("desktopOverlayConfigRenderer");var eik=new g.QX("engagementPanelSectionListRenderer");var Ckj=new g.QX("gatedActionsOverlayViewModel");var sHZ=new g.QX("heatMarkerRenderer");var a27=new g.QX("heatmapRenderer");var R0o=new g.QX("watchToWatchTransitionRenderer");var u$q=new g.QX("playlistPanelRenderer");var JMU=new g.QX("productUpsellSuggestedActionViewModel");var gJU=new g.QX("suggestedActionTimeRangeTrigger"),VqD=new g.QX("suggestedActionsRenderer"),CHS=new g.QX("suggestedActionRenderer");var BYo=new g.QX("timedMarkerDecorationRenderer");var NsT=new g.QX("cipher");var mYY=new g.QX("playerVars");var qpt=new g.QX("playerVars");var eX=g.Mo.window,tqX,Yp5,De=(eX==null?void 0:(tqX=eX.yt)==null?void 0:tqX.config_)||(eX==null?void 0:(Yp5=eX.ytcfg)==null?void 0:Yp5.data_)||{};g.lA("yt.config_",De);var VX=[];var qTs=/^[\w.]*$/,J_7={q:!0,search_query:!0},ZvZ=String(YO);var Bh=new function(){var R=window.document;this.Z=window;this.X=R}; g.lA("yt.ads_.signals_.getAdSignalsString",function(R){return MM(n0(R))});g.mU();var YTJ="XMLHttpRequest"in g.Mo?function(){return new XMLHttpRequest}:null;var MqD="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.ci(MqD);var yRK={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"},olY="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.ci(MqD)),Bes=!1,GNZ=Fy;g.O(e0,E5);T9.prototype.then=function(R,l,y){return this.Z?this.Z.then(R,l,y):this.L===1&&R?(R=R.call(y,this.X))&&typeof R.then==="function"?R:rg(R):this.L===2&&l?(R=l.call(y,this.X))&&typeof R.then==="function"?R:dg(R):this}; T9.prototype.getValue=function(){return this.X}; T9.prototype.$goog_Thenable=!0;var vh=!1;var Jv=C0||qr;var PGj=/^([0-9\.]+):([0-9\.]+)$/;g.O(nF,E5);nF.prototype.name="BiscottiError";g.O(HW,E5);HW.prototype.name="BiscottiMissingError";var $l9={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},mK=null;var lUq=EY(["data-"]),wGK={};var RID=0,oa=g.H0?"webkit":Zf?"moz":g.oc?"ms":g.Sr?"o":"",lfU=g.yr("ytDomDomGetNextId")||function(){return++RID}; g.lA("ytDomDomGetNextId",lfU);var pGK={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};OG.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; OG.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; OG.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var iJ=g.Mo.ytEventsEventsListeners||{};g.lA("ytEventsEventsListeners",iJ);var j2i=g.Mo.ytEventsEventsCounter||{count:0};g.lA("ytEventsEventsCounter",j2i);var JRK=zP(function(){var R=!1;try{var l=Object.defineProperty({},"passive",{get:function(){R=!0}}); window.addEventListener("test",null,l)}catch(y){}return R}),kN9=zP(function(){var R=!1; try{var l=Object.defineProperty({},"capture",{get:function(){R=!0}}); window.addEventListener("test",null,l)}catch(y){}return R});var bU;bU=window;g.eY=bU.ytcsi&&bU.ytcsi.now?bU.ytcsi.now:bU.performance&&bU.performance.timing&&bU.performance.now&&bU.performance.timing.navigationStart?function(){return bU.performance.timing.navigationStart+bU.performance.now()}:function(){return(new Date).getTime()};g.hK($1,g.p);$1.prototype.B=function(R){R.Z===void 0&&Ulr(R);var l=R.Z;R.X===void 0&&Ulr(R);this.Z=new g.Do(l,R.X)}; $1.prototype.V8=function(){return this.Z||new g.Do}; $1.prototype.LX=function(){if(this.Z){var R=(0,g.eY)();if(this.Y!=0){var l=this.D,y=this.Z,f=l.x-y.x;l=l.y-y.y;f=Math.sqrt(f*f+l*l)/(R-this.Y);this.X[this.L]=Math.abs((f-this.J)/this.J)>.5?1:0;for(y=l=0;y<4;y++)l+=this.X[y]||0;l>=3&&this.V();this.J=f}this.Y=R;this.D=this.Z;this.L=(this.L+1)%4}}; $1.prototype.G4=function(){g.Wh(this.W);g.uJ(this.Yb)};g.O(eI,g.p);eI.prototype.N=function(R,l,y,f,A){y=g.qM((0,g.B8)(y,f||this.LA));y={target:R,name:l,callback:y};var K;A&&JRK()&&(K={passive:!0});R.addEventListener(l,y.callback,K);this.V.push(y);return y}; eI.prototype.p_=function(R){for(var l=0;l=D.y3)||e.Z.version>=t||e.Z.objectStoreNames.contains(N)||d.push(N)}H=d;if(H.length===0){Q.bQ(5);break}n=Object.keys(y.options.L8); m=B.objectStoreNames();if(y.Jy.options.version+1)throw c.close(),y.L=!1,zWK(y,E);return Q.return(c);case 8:throw l(), h instanceof Error&&!g.O1("ytidb_async_stack_killswitch")&&(h.stack=h.stack+"\n"+G.substring(G.indexOf("\n")+1)),OE(h,y.name,"",(W=y.options.version)!=null?W:-1);}})} function l(){y.Z===f&&(y.Z=void 0)} var y=this;if(!this.L)throw zWK(this);if(this.Z)return this.Z;var f,A={blocking:function(K){K.close()}, closed:l,Ci4:l,upgrade:this.options.upgrade};return this.Z=f=R()};var Dg=new jY("YtIdbMeta",{L8:{databases:{y3:1}},upgrade:function(R,l){l(1)&&g.Xv(R,"databases",{keyPath:"actualName"})}});var CO,V1=new function(){}(new function(){});new g.o2;g.O(YR,jY);YR.prototype.X=function(R,l,y){y=y===void 0?{}:y;return(this.options.shared?kS9:jjj)(R,l,Object.assign({},y))}; YR.prototype.delete=function(R){R=R===void 0?{}:R;return(this.options.shared?gAo:DT7)(this.name,R)};var HSt={},CwJ=g.M1("ytGcfConfig",{L8:(HSt.coldConfigStore={y3:1},HSt.hotConfigStore={y3:1},HSt),shared:!1,upgrade:function(R,l){l(1)&&(g.w4(g.Xv(R,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.w4(g.Xv(R,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.O(lF,g.p);lF.prototype.G4=function(){for(var R=g.u(this.X),l=R.next();!l.done;l=R.next()){var y=this.Z;l=y.indexOf(l.value);l>=0&&y.splice(l,1)}this.X.length=0;g.p.prototype.G4.call(this)};a1.prototype.f8=function(R){this.hotHashData=R;g.lA("yt.gcf.config.hotHashData",this.hotHashData||null)};var nbA=typeof TextEncoder!=="undefined"?new TextEncoder:null,Nxj=nbA?function(R){return nbA.encode(R)}:function(R){R=g.eS(R); for(var l=new Uint8Array(R.length),y=0;y=l?!1:!0}; g.L.Nk=function(){var R=this;if(!dG(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Op.IY("QUEUED",this.A7).then(function(l){l&&!R.f3(l,R.h4)?R.Bp.Oi(function(){return g.w(function(y){if(y.X==1)return l.id===void 0?y.bQ(2):g.v(y,R.Op.DC(l.id,R.A7),2);R.Nk();g.Q9(y)})}):R.JJ.DX()&&R.o_()})};var zE;var Eak={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 obA={},yZZ=g.M1("ServiceWorkerLogsDatabase",{L8:(obA.SWHealthLog={y3:1},obA),shared:!0,upgrade:function(R,l){l(1)&&g.w4(g.Xv(R,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var I1={},s8q=0;var Np;U3.prototype.requestComplete=function(R,l){l&&(this.X=!0);R=this.removeParams(R);this.Z.get(R)||this.Z.set(R,l)}; U3.prototype.isEndpointCFR=function(R){R=this.removeParams(R);return(R=this.Z.get(R))?!1:R===!1&&this.X?!0:null}; U3.prototype.removeParams=function(R){return R.split("?")[0]}; U3.prototype.removeParams=U3.prototype.removeParams;U3.prototype.isEndpointCFR=U3.prototype.isEndpointCFR;U3.prototype.requestComplete=U3.prototype.requestComplete;U3.getInstance=S8;g.O(j8,g.sT);g.L=j8.prototype;g.L.DX=function(){return this.Z.DX()}; g.L.a6=function(R){this.Z.Z=R}; g.L.Q$=function(){var R=window.navigator.onLine;return R===void 0?!0:R}; g.L.YJ=function(){this.X=!0}; g.L.listen=function(R,l){return this.Z.listen(R,l)}; g.L.K3=function(R){R=Ij(this.Z,R);R.then(function(l){g.O1("use_cfr_monitor")&&S8().requestComplete("generate_204",l)}); return R}; j8.prototype.sendNetworkCheckRequest=j8.prototype.K3;j8.prototype.listen=j8.prototype.listen;j8.prototype.enableErrorFlushing=j8.prototype.YJ;j8.prototype.getWindowStatus=j8.prototype.Q$;j8.prototype.networkStatusHint=j8.prototype.a6;j8.prototype.isNetworkAvailable=j8.prototype.DX;j8.getInstance=nOQ;g.O(g.kS,g.sT);g.kS.prototype.DX=function(){var R=g.yr("yt.networkStatusManager.instance.isNetworkAvailable");return R?R.bind(this.X)():!0}; g.kS.prototype.a6=function(R){var l=g.yr("yt.networkStatusManager.instance.networkStatusHint").bind(this.X);l&&l(R)}; g.kS.prototype.K3=function(R){var l=this,y;return g.w(function(f){y=g.yr("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(l.X);return g.O1("skip_network_check_if_cfr")&&S8().isEndpointCFR("generate_204")?f.return(new Promise(function(A){var K;l.a6(((K=window.navigator)==null?void 0:K.onLine)||!0);A(l.DX())})):y?f.return(y(R)):f.return(!0)})};var DA;g.O(ZA,rG);ZA.prototype.writeThenSend=function(R,l){l||(l={});l=gG(R,l);g.V8()||(this.Z=!1);rG.prototype.writeThenSend.call(this,R,l)}; ZA.prototype.sendThenWrite=function(R,l,y){l||(l={});l=gG(R,l);g.V8()||(this.Z=!1);rG.prototype.sendThenWrite.call(this,R,l,y)}; ZA.prototype.sendAndWrite=function(R,l){l||(l={});l=gG(R,l);g.V8()||(this.Z=!1);rG.prototype.sendAndWrite.call(this,R,l)}; ZA.prototype.awaitInitialization=function(){return this.L.promise};var EOZ=g.Mo.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.lA("ytNetworklessLoggingInitializationOptions",EOZ);g.VY.prototype.isReady=function(){!this.config_&&m3Y()&&(this.config_=g.Bv());return!!this.config_};var hIA,tL,Mp;hIA=g.Mo.ytPubsubPubsubInstance||new g.$8;tL=g.Mo.ytPubsubPubsubSubscribedKeys||{};Mp=g.Mo.ytPubsubPubsubTopicToKeys||{};g.YS=g.Mo.ytPubsubPubsubIsSynchronous||{};g.$8.prototype.subscribe=g.$8.prototype.subscribe;g.$8.prototype.unsubscribeByKey=g.$8.prototype.un;g.$8.prototype.publish=g.$8.prototype.publish;g.$8.prototype.clear=g.$8.prototype.clear;g.lA("ytPubsubPubsubInstance",hIA);g.lA("ytPubsubPubsubTopicToKeys",Mp);g.lA("ytPubsubPubsubIsSynchronous",g.YS); g.lA("ytPubsubPubsubSubscribedKeys",tL);var uIZ={};g.O(on,g.p);on.prototype.append=function(R){if(!this.X)throw Error("This does not support the append operation");R=R.al();this.al().appendChild(R)}; g.O(hS,on);hS.prototype.al=function(){return this.Z};g.O(c$,g.p);c$.prototype.onTouchStart=function(R){this.V=!0;this.X=R.touches.length;this.Z.isActive()&&(this.Z.stop(),this.J=!0);R=R.touches;this.D=$MT(this,R)||R.length!=1;var l=R.item(0);this.D||!l?this.B=this.W=Infinity:(this.W=l.clientX,this.B=l.clientY);for(l=this.L.length=0;l=0)}if(l||R&&Math.pow(R.clientX-this.W,2)+Math.pow(R.clientY-this.B,2)>25)this.Y=!0}; c$.prototype.onTouchEnd=function(R){var l=R.changedTouches;l&&this.V&&this.X==1&&!this.Y&&!this.J&&!this.D&&$MT(this,l)&&(this.LX=R,this.Z.start());this.X=R.touches.length;this.X===0&&(this.Y=this.V=!1,this.L.length=0);this.J=!1};var Ex=Date.now().toString();var P$={};var bq=Symbol("injectionDeps");Fj.prototype.toString=function(){return"InjectionToken("+this.name+")"}; XgZ.prototype.resolve=function(R){return R instanceof QK?Xj(this,R.key,[],!0):Xj(this,R,[])};var TU;var rz=window;var xV=g.O1("web_enable_lifecycle_monitoring")&&v$()!==0,xMJ=g.O1("web_enable_lifecycle_monitoring");vO7.prototype.cancel=function(){for(var R=g.u(this.Z),l=R.next();!l.done;l=R.next())l=l.value,l.jobId===void 0||l.aj||this.scheduler.Yz(l.jobId),l.aj=!0;this.X.resolve()};g.L=In.prototype;g.L.install=function(R){this.plugins.push(R);return this}; g.L.uninstall=function(){var R=this;g.SJ.apply(0,arguments).forEach(function(l){l=R.plugins.indexOf(l);l>-1&&R.plugins.splice(l,1)})}; g.L.transition=function(R,l){var y=this;xV&&dMk(this.state);var f=this.transitions.find(function(K){return Array.isArray(K.from)?K.from.find(function(G){return G===y.state&&K.to===R}):K.from===y.state&&K.to===R}); if(f){this.X&&(zR7(this.X),this.X=void 0);IeY(this,R,l);this.state=R;xV&&zU(this.state);f=f.action.bind(this);var A=this.plugins.filter(function(K){return K[R]}).map(function(K){return K[R]}); f(wgQ(this,A),l)}else throw Error("no transition specified from "+this.state+" to "+R);}; g.L.POX=function(R){var l=g.SJ.apply(1,arguments);g.Mt();for(var y=g.u(R),f=y.next(),A={};!f.done;A={TG:void 0},f=y.next())A.TG=f.value,Kjo(function(K){return function(){p6(K.TG.name);Sc(function(){return K.TG.callback.apply(K.TG,g.ci(l))}); Ux(K.TG.name)}}(A))}; g.L.g4L=function(R){var l=g.SJ.apply(1,arguments),y,f,A,K;return g.w(function(G){G.X==1&&(g.Mt(),y=g.u(R),f=y.next(),A={});if(G.X!=3){if(f.done)return G.bQ(0);A.Ys=f.value;A.Nd=void 0;K=function(B){return function(){p6(B.Ys.name);var H=Sc(function(){return B.Ys.callback.apply(B.Ys,g.ci(l))}); e9(H)?B.Nd=g.O1("web_lifecycle_error_handling_killswitch")?H.then(function(){Ux(B.Ys.name)}):H.then(function(){Ux(B.Ys.name)},function(n){rZZ(n); Ux(B.Ys.name)}):Ux(B.Ys.name)}}(A); Kjo(K);return A.Nd?g.v(G,A.Nd,3):G.bQ(3)}A={Ys:void 0,Nd:void 0};f=y.next();return G.bQ(2)})}; g.L.Df=function(R){var l=g.SJ.apply(1,arguments),y=this,f=R.map(function(A){return{xA:function(){p6(A.name);Sc(function(){return A.callback.apply(A,g.ci(l))}); Ux(A.name)}, priority:Ne(y,A)}}); f.length&&(this.X=new vO7(f))}; g.GT.Object.defineProperties(In.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var kV;g.O(jc,In);jc.prototype.J=function(R,l){var y=this;this.Z=g.tD(0,function(){y.currentState==="application_navigating"&&y.transition("none")},5E3); R(l==null?void 0:l.event)}; jc.prototype.D=function(R,l){this.Z&&(g.pz.Yz(this.Z),this.Z=null);R(l==null?void 0:l.event)};var h0=[];g.lA("yt.logging.transport.getScrapedGelPayloads",function(){return h0});DI.prototype.storePayload=function(R,l){R=ZI(R);this.store[R]?this.store[R].push(l):(this.X={},this.store[R]=[l]);this.Z++;g.O1("more_accurate_gel_parser")&&(l=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(l));return R}; DI.prototype.smartExtractMatchingEntries=function(R){if(!R.keys.length)return[];for(var l=gz(this,R.keys.splice(0,1)[0]),y=[],f=0;f=0){f=!1;break a}}f=!0}f&&(l=wP(l))&&this.dW(l)}}; g.L.dG=function(R){return R}; g.L.onTouchStart=function(R){this.xb.onTouchStart(R)}; g.L.onTouchMove=function(R){this.xb.onTouchMove(R)}; g.L.onTouchEnd=function(R){if(this.xb)this.xb.onTouchEnd(R)}; g.L.dW=function(R){this.layoutId?this.d7.executeCommand(R,this.layoutId):(R=new g.JD("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.Tw(R))}; g.L.createServerVe=function(R,l){this.api.createServerVe(R,this);this.api.setTrackingParams(R,l)}; g.L.logVisibility=function(R,l){this.api.hasVe(R)&&this.api.logVisibility(R,l,this.interactionLoggingClientData)}; g.L.G4=function(){this.clear(null);this.p_(this.B1);for(var R=g.u(this.Dq),l=R.next();!l.done;l=R.next())this.p_(l.value);g.BB.prototype.G4.call(this)};g.O(dp,HB); dp.prototype.init=function(R,l,y){HB.prototype.init.call(this,R,l,y);this.Z=l;if(l.text==null&&l.icon==null)g.dP(Error("ButtonRenderer did not have text or an icon set."));else{switch(l.style||null){case "STYLE_UNKNOWN":R="ytp-ad-button-link";break;default:R=null}R!=null&&g.AU(this.element,R);l.text!=null&&(R=g.mF(l.text),g.d9(R)||(this.element.setAttribute("aria-label",R),this.L=new g.BB({T:"span",j:"ytp-ad-button-text",IE:R}),g.U(this,this.L),this.L.JU(this.element)));l.accessibilityData&&l.accessibilityData.accessibilityData&& l.accessibilityData.accessibilityData.label&&!g.d9(l.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",l.accessibilityData.accessibilityData.label);l.icon!=null&&(l=TG(l.icon,this.Y),l!=null&&(this.X=new g.BB({T:"span",j:"ytp-ad-button-icon",S:[l]}),g.U(this,this.X)),this.D?LS(this.element,this.X.element,0):this.X.JU(this.element))}}; dp.prototype.clear=function(){this.hide()}; dp.prototype.onClick=function(R){HB.prototype.onClick.call(this,R);R=g.u(Id7(this));for(var l=R.next();!l.done;l=R.next())l=l.value,this.layoutId?this.d7.executeCommand(l,this.layoutId):g.Tw(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.O(rp,g.p);rp.prototype.G4=function(){this.X&&g.uJ(this.X);this.Z.clear();vB=null;g.p.prototype.G4.call(this)}; rp.prototype.register=function(R,l){l&&this.Z.set(R,l)}; var vB=null;g.O(xD,HB); xD.prototype.init=function(R,l,y){HB.prototype.init.call(this,R,l,y);R=l.hoverText||null;l=l.button&&g.k(l.button,g.lD)||null;l==null?g.Tw(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new dp(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,void 0,void 0,void 0,void 0,this.L),g.U(this,this.button),this.button.init(yN("button"),l,this.macros),R&&this.button.element.setAttribute("aria-label",g.mF(R)),this.button.JU(this.element),this.B&&!g.fg(this.button.element, "ytp-ad-clickable")&&g.AU(this.button.element,"ytp-ad-clickable"),this.L&&g.AU(this.button.element,"ytp-ad-hover-text-button--clean-player"),R&&(this.X=new g.BB({T:"div",j:"ytp-ad-hover-text-container"}),this.D&&(l=new g.BB({T:"div",j:"ytp-ad-hover-text-callout"}),l.JU(this.X.element),g.U(this,l)),g.U(this,this.X),this.X.JU(this.element),l=zG(R),LS(this.X.element,l,0)),this.show())}; xD.prototype.hide=function(){this.button&&this.button.hide();this.X&&this.X.hide();HB.prototype.hide.call(this)}; xD.prototype.show=function(){this.button&&this.button.show();HB.prototype.show.call(this)};g.O(NF,HB); NF.prototype.init=function(R,l,y){HB.prototype.init.call(this,R,l,y);y=(R=l.thumbnail)&&IN(R)||"";g.d9(y)?Math.random()<.01&&g.dP(Error("Found AdImage without valid image URL")):(this.Z?g.Df(this.element,"backgroundImage","url("+y+")"):B0(this.element,{src:y}),B0(this.element,{alt:R&&R.accessibility&&R.accessibility.label||""}),l&&l.adRendererCommands&&l.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; NF.prototype.clear=function(){this.hide()};g.O(pi,HB);g.L=pi.prototype;g.L.hide=function(){HB.prototype.hide.call(this);this.L&&this.L.focus()}; g.L.show=function(){this.L=document.activeElement;HB.prototype.show.call(this);this.Y.focus()}; g.L.init=function(R,l,y){HB.prototype.init.call(this,R,l,y);this.X=l;l.dialogMessages||l.title!=null?l.confirmLabel==null?g.Tw(Error("ConfirmDialogRenderer.confirmLabel was not set.")):l.cancelLabel==null?g.Tw(Error("ConfirmDialogRenderer.cancelLabel was not set.")):SGK(this,l):g.Tw(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.L.clear=function(){g.Xr(this.Z);this.hide()}; g.L.lk=function(){this.hide()}; g.L.Rp=function(){var R=this.X.cancelEndpoint;R&&(this.layoutId?this.d7.executeCommand(R,this.layoutId):g.Tw(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.L.H_=function(){var R=this.X.confirmNavigationEndpoint||this.X.confirmEndpoint;R&&(this.layoutId?this.d7.executeCommand(R,this.layoutId):g.Tw(Error("Missing layoutId for confirm dialog.")));this.hide()};g.O(U_,HB);g.L=U_.prototype; g.L.init=function(R,l,y){HB.prototype.init.call(this,R,l,y);this.L=l;if(l.defaultText==null&&l.defaultIcon==null)g.Tw(Error("ToggleButtonRenderer must have either text or icon set."));else if(l.defaultIcon==null&&l.toggledIcon!=null)g.Tw(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(l.style){switch(l.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":R="ytp-ad-toggle-button-default-style";break;default:R=null}R!=null&&g.AU(this.Y,R)}R={};l.defaultText? (y=g.mF(l.defaultText),g.d9(y)||(R.buttonText=y,this.api.U().experiments.EL("a11y_h5_associate_survey_question")||this.Z.setAttribute("aria-label",y),this.api.U().experiments.EL("fix_h5_toggle_button_a11y")&&this.X.setAttribute("aria-label",y))):g.yT(this.sL,!1);l.defaultTooltip&&(R.tooltipText=l.defaultTooltip,this.Z.hasAttribute("aria-label")||this.X.setAttribute("aria-label",l.defaultTooltip));l.defaultIcon?(y=TG(l.defaultIcon),this.updateValue("untoggledIconTemplateSpec",y),l.toggledIcon?(this.Yb= !0,y=TG(l.toggledIcon),this.updateValue("toggledIconTemplateSpec",y)):(g.yT(this.B,!0),g.yT(this.D,!1)),g.yT(this.Z,!1)):g.yT(this.X,!1);g.oL(R)||this.update(R);l.isToggled&&(g.AU(this.Y,"ytp-ad-toggle-button-toggled"),this.toggleButton(l.isToggled));SW(this);this.N(this.element,"change",this.Iu);this.show()}}; g.L.onClick=function(R){this.Dq.length>0&&(this.toggleButton(!this.isToggled()),this.Iu());HB.prototype.onClick.call(this,R)}; g.L.Iu=function(){g.BJ(this.Y,"ytp-ad-toggle-button-toggled",this.isToggled());for(var R=g.u(jaK(this,this.isToggled())),l=R.next();!l.done;l=R.next())l=l.value,this.layoutId?this.d7.executeCommand(l,this.layoutId):g.Tw(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);SW(this)}; g.L.clear=function(){this.hide()}; g.L.toggleButton=function(R){g.BJ(this.Y,"ytp-ad-toggle-button-toggled",R);this.Z.checked=R;SW(this)}; g.L.isToggled=function(){return this.Z.checked};g.O(jW,eI);jW.prototype.D=function(R){if(Array.isArray(R)){R=g.u(R);for(var l=R.next();!l.done;l=R.next())l=l.value,l instanceof kIk&&this.Y(l)}};g.O(kD,HB);g.L=kD.prototype;g.L.init=function(R,l,y){HB.prototype.init.call(this,R,l,y);l.reasons?l.confirmLabel==null?g.Tw(Error("AdFeedbackRenderer.confirmLabel was not set.")):(l.cancelLabel==null&&g.dP(Error("AdFeedbackRenderer.cancelLabel was not set.")),l.title==null&&g.dP(Error("AdFeedbackRenderer.title was not set.")),g1K(this,l)):g.Tw(Error("AdFeedbackRenderer.reasons were not set."))}; g.L.clear=function(){Fr(this.D);Fr(this.B);this.Y.length=0;this.hide()}; g.L.hide=function(){this.Z&&this.Z.hide();this.X&&this.X.hide();HB.prototype.hide.call(this);this.L&&this.L.focus()}; g.L.show=function(){this.Z&&this.Z.show();this.X&&this.X.show();this.L=document.activeElement;HB.prototype.show.call(this);this.D.focus()}; g.L.Vh=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.L.sz$=function(){this.hide()}; Dt.prototype.al=function(){return this.Z.element}; Dt.prototype.getCommand=function(){return this.X}; Dt.prototype.isChecked=function(){return this.L.checked};g.O(Zt,pi);Zt.prototype.lk=function(R){pi.prototype.lk.call(this,R);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Zt.prototype.Rp=function(R){pi.prototype.Rp.call(this,R);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Zt.prototype.H_=function(R){pi.prototype.H_.call(this,R);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.O(Je,HB);g.L=Je.prototype; g.L.init=function(R,l,y){HB.prototype.init.call(this,R,l,y);this.D=l;if(l.dialogMessage==null&&l.title==null)g.Tw(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{l.confirmLabel==null&&g.dP(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(R=l.closeOverlayRenderer&&g.k(l.closeOverlayRenderer,g.lD)||null)this.Z=new dp(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.U(this,this.Z),this.Z.init(yN("button"),R,this.macros),this.Z.JU(this.element);l.title&&(R=g.mF(l.title),this.updateValue("title",R));if(l.adReasons)for(R=l.adReasons,y=0;y=this.CX?(this.Yb.hide(),this.jS=!0,this.publish("i")):this.L&&this.L.isTemplated()&&(R=Math.max(0,Math.ceil((this.CX-R)/1E3)),R!=this.W1&&(Ci(this.L,{TIME_REMAINING:String(R)}),this.W1=R)))}};g.O(yc,qF);g.L=yc.prototype; g.L.init=function(R,l,y){qF.prototype.init.call(this,R,l,y);if(l.image&&l.image.thumbnail)if(l.headline)if(l.description)if((R=l.actionButton&&g.k(l.actionButton,g.lD))&&R.navigationEndpoint){var f=this.api.getVideoData(2);if(f!=null)if(l.image&&l.image.thumbnail){var A=l.image.thumbnail.thumbnails;A!=null&&A.length>0&&g.d9(g.rF(A[0].url))&&(A[0].url=f.profilePicture)}else g.dP(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.L.init(yN("ad-image"),l.image,y);this.D.init(yN("ad-text"), l.headline,y);this.Y.init(yN("ad-text"),l.description,y);this.X.init(yN("button"),R,y);y=DF(this.X.element);kA(this.X.element,y+" This link opens in new tab");this.Yb=R.navigationEndpoint;this.api.XL()||this.show();this.api.U().C("enable_larger_flyout_cta_on_desktop")&&(this.pX("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.pX("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.pX("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.pX("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.pX("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.pX("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.X.element.classList.add("ytp-flyout-cta-action-button-large"),this.X.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.pX("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.au.bind(this));this.sL=l.startMs||0;te(this)}else g.Tw(Error("FlyoutCtaRenderer has no valid action button."));else g.Tw(Error("FlyoutCtaRenderer has no description AdText."));else g.Tw(Error("FlyoutCtaRenderer has no headline AdText."));else g.dP(Error("FlyoutCtaRenderer has no image."))}; g.L.onClick=function(R){qF.prototype.onClick.call(this,R);this.api.pauseVideo();!g.io(this.X.element,R.target)&&this.Yb&&(this.layoutId?this.d7.executeCommand(this.Yb,this.layoutId):g.Tw(Error("Missing layoutId for flyout cta.")))}; g.L.t2=function(){if(this.Z){var R=this.Z.getProgressState();(R&&R.current||this.CX)&&1E3*R.current>=this.sL&&(YD(this),g.G8(this.element,"ytp-flyout-cta-inactive"),this.X.element.removeAttribute("tabIndex"))}}; g.L.NA=function(){this.clear()}; g.L.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.au.bind(this))}; g.L.show=function(){this.X&&this.X.show();qF.prototype.show.call(this)}; g.L.hide=function(){this.X&&this.X.hide();qF.prototype.hide.call(this)}; g.L.au=function(R){R=="hidden"?this.show():this.hide()};g.O(fR,HB);g.L=fR.prototype; g.L.init=function(R,l,y){HB.prototype.init.call(this,R,l,y);this.Z=l;if(this.Z.rectangle)for(R=this.Z.likeButton&&g.k(this.Z.likeButton,$k),l=this.Z.dislikeButton&&g.k(this.Z.dislikeButton,$k),this.L.init(yN("toggle-button"),R,y),this.X.init(yN("toggle-button"),l,y),this.N(this.element,"change",this.xX),this.Y.show(100),this.show(),y=g.u(this.Z&&this.Z.impressionCommands||[]),R=y.next();!R.done;R=y.next())R=R.value,this.layoutId?this.d7.executeCommand(R,this.layoutId):g.Tw(Error("Missing layoutId for instream user sentiment."))}; g.L.clear=function(){this.hide()}; g.L.hide=function(){this.L.hide();this.X.hide();HB.prototype.hide.call(this)}; g.L.show=function(){this.L.show();this.X.show();HB.prototype.show.call(this)}; g.L.xX=function(){brQ(this.element,"ytp-ad-instream-user-sentiment-selected");this.Z.postMessageAction&&this.api.KX("onYtShowToast",this.Z.postMessageAction);this.Y.hide()}; g.L.onClick=function(R){this.Dq.length>0&&this.xX();HB.prototype.onClick.call(this,R)};g.O(A7,g.p);g.L=A7.prototype;g.L.G4=function(){this.reset();g.p.prototype.G4.call(this)}; g.L.reset=function(){g.Xr(this.Y);this.D=!1;this.Z&&this.Z.stop();this.J.stop();this.L&&(this.L=!1,this.V.play())}; g.L.start=function(){this.reset();this.Y.N(this.X,"mouseover",this.Ds,this);this.Y.N(this.X,"mouseout",this.bq,this);this.LX&&(this.Y.N(this.X,"focusin",this.Ds,this),this.Y.N(this.X,"focusout",this.bq,this));this.Z?this.Z.start():(this.D=this.L=!0,g.Df(this.X,{opacity:this.B}))}; g.L.Ds=function(){this.L&&(this.L=!1,this.V.play());this.J.stop();this.Z&&this.Z.stop()}; g.L.bq=function(){this.D?this.J.start():this.Z&&this.Z.start()}; g.L.n9=function(){this.L||(this.L=!0,this.W.play(),this.D=!0)};var Ku9=[new KR("b.f_",!1,0),new KR("j.s_",!1,2),new KR("r.s_",!1,4),new KR("e.h_",!1,6),new KR("i.s_",!0,8),new KR("s.t_",!1,10),new KR("p.h_",!1,12),new KR("s.i_",!1,14),new KR("f.i_",!1,16),new KR("a.b_",!1,18),new KR("a.o_",!1),new KR("g.o_",!1,22),new KR("p.i_",!1,24),new KR("p.m_",!1),new KR("n.k_",!0,20),new KR("i.f_",!1),new KR("a.s_",!0),new KR("m.c_",!1),new KR("n.h_",!1,26),new KR("o.p_",!1),new KR("m.p_",!0,28),new KR("o.a_",!1),new KR("d.p_",!1),new KR("e.i_",!1)].reduce(function(R,l){R[l.X]= l;return R},{});g.O(ol,qF);g.L=ol.prototype; g.L.init=function(R,l,y){qF.prototype.init.call(this,R,l,y);this.Yb=l;(this.sL=ag7(this))&&g.dP(Error("hasAdControlInClickCommands_ is true."));if(!l||g.oL(l))g.Tw(Error("SkipButtonRenderer was not specified or empty."));else if(!l.message||g.oL(l.message))g.Tw(Error("SkipButtonRenderer.message was not specified or empty."));else if(R=this.D?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},l=TG(R),l==null?g.Tw(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+R.iconType+".")): (this.L=new g.BB({T:"button",QL:[this.D?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],S:[{T:"span",j:this.D?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",S:[l]}]}),g.U(this,this.L),this.L.JU(this.Y.element),this.X=new VN(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,"ytp-ad-skip-button-text"),this.D&&this.X.element.classList.add("ytp-ad-skip-button-text-centered"),this.X.init(yN("ad-text"),this.Yb.message,y),g.U(this,this.X),LS(this.L.element,this.X.element, 0)),!this.api.U().C("disable_touch_events_on_skip_button")){var f=f===void 0?null:f;y=this.api.U();!(this.Dq.length>0)&&y.X&&(UN?0:"ontouchstart"in document.documentElement&&(td9()||BI()))&&(this.p_(this.B1),f&&this.p_(f),this.Dq=[this.N(this.element,"touchstart",this.onTouchStart,this),this.N(this.element,"touchmove",this.onTouchMove,this),this.N(this.element,"touchend",this.onTouchEnd,this)])}}; g.L.clear=function(){this.CX.reset();this.hide()}; g.L.hide=function(){this.Y.hide();this.X&&this.X.hide();YD(this);qF.prototype.hide.call(this)}; g.L.onClick=function(R){if(this.L!=null){if(R){var l=R||window.event;l.returnValue=!1;l.preventDefault&&l.preventDefault()}var y;if(fgi(R,{contentCpn:((y=this.api.getVideoData(1))==null?void 0:y.clientPlaybackNonce)||""})===0)this.api.KX("onAbnormalityDetected");else if(qF.prototype.onClick.call(this,R),this.publish("j"),this.api.KX("onAdSkip"),this.jS||!this.sL)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.L.dG=function(R){if(!this.jS)return this.sL&&BR("SkipButton click commands not pruned while ALC exist"),R;var l,y=(l=g.k(R,g.h7))==null?void 0:l.commands;if(!y)return R;R=[];for(l=0;l=this.D&&sqJ(this,!0)};g.O(EX,dp);EX.prototype.init=function(R,l,y){dp.prototype.init.call(this,R,l,y);R=!1;l.text!=null&&(R=g.mF(l.text),R=!g.d9(R));R?l.navigationEndpoint==null?g.dP(Error("No visit advertiser clickthrough provided in renderer,")):l.style!=="STYLE_UNKNOWN"?g.dP(Error("Button style was not a link-style type in renderer,")):this.show():g.dP(Error("No visit advertiser text was present in the renderer."))};g.O(WR,HB); WR.prototype.init=function(R,l,y){HB.prototype.init.call(this,R,l,y);R=l.text;g.d9(ni(R))?g.dP(Error("SimpleAdBadgeRenderer has invalid or empty text")):(R&&R.text&&(l=R.text,this.L&&!this.X&&(l=this.api.U(),l=R.text+" "+(l&&l.X?"\u2022":"\u00b7")),l={text:l,isTemplated:R.isTemplated},R.style&&(l.style=R.style),R.targetId&&(l.targetId=R.targetId),R=new VN(this.api,this.layoutId,this.interactionLoggingClientData,this.d7),R.init(yN("simple-ad-badge"),l,y),R.JU(this.element),g.U(this,R)),this.show())}; WR.prototype.clear=function(){this.hide()};g.O(LR,fi);g.O(OX,g.Ae);g.L=OX.prototype;g.L.di=function(){return this.durationMs}; g.L.stop=function(){this.Z&&this.SZ.p_(this.Z)}; g.L.J1=function(R){this.X={seekableStart:0,seekableEnd:this.durationMs/1E3,current:R.current};this.publish("h")}; g.L.getProgressState=function(){return this.X}; g.L.Yn=function(R){g.m2(R,2)&&this.publish("g")};g.O(PR,g.Ae);g.L=PR.prototype;g.L.di=function(){return this.durationMs}; g.L.start=function(){this.Z||(this.Z=!0,this.timer.start())}; g.L.stop=function(){this.Z&&(this.Z=!1,this.timer.stop())}; g.L.J1=function(){this.TU+=100;var R=!1;this.TU>this.durationMs&&(this.TU=this.durationMs,this.timer.stop(),R=!0);this.X={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.TU/1E3};this.publish("h");R&&this.publish("g")}; g.L.getProgressState=function(){return this.X};g.O(Qc,qF);g.L=Qc.prototype;g.L.init=function(R,l,y){qF.prototype.init.call(this,R,l,y);var f;if(l==null?0:(f=l.templatedCountdown)==null?0:f.templatedAdText){R=l.templatedCountdown.templatedAdText;if(!R.isTemplated){g.dP(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.X=new VN(this.api,this.layoutId,this.interactionLoggingClientData,this.d7);this.X.init(yN("ad-text"),R,{});this.X.JU(this.element);g.U(this,this.X)}this.show()}; g.L.clear=function(){this.hide()}; g.L.hide=function(){YD(this);qF.prototype.hide.call(this)}; g.L.NA=function(){this.hide()}; g.L.t2=function(){if(this.Z!=null){var R=this.Z.getProgressState();if(R!=null&&R.current!=null&&this.X){var l=this.Z instanceof OX?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:R.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.Z instanceof PR?R.seekableEnd:this.api.getDuration(2,!1);R=R.current;var y,f,A=((y=this.api.getVideoData())==null?0:(f=y.h1)==null?0:f.call(y))?Math.max(l-R,0):l-R;Ci(this.X,{FORMATTED_AD_DURATION_REMAINING:String(g.ut(A)), TIME_REMAINING:String(Math.ceil(A))})}}}; g.L.show=function(){te(this);qF.prototype.show.call(this)};g.O($i,VN);$i.prototype.onClick=function(R){VN.prototype.onClick.call(this,R);this.api.onAdUxClicked(this.componentType)};g.O(bt,HB);bt.prototype.init=function(R,l){HB.prototype.init.call(this,R,l,{});if(R=l.content){g.Qa(this.element,R);var y,f;l=((y=l.interaction)==null?void 0:(f=y.accessibility)==null?void 0:f.label)||R;this.element.setAttribute("aria-label",l)}else g.Tw(Error("AdSimpleAttributedString does not have text content"))}; bt.prototype.clear=function(){this.hide()}; bt.prototype.onClick=function(R){HB.prototype.onClick.call(this,R)};g.O(Xs,HB); Xs.prototype.init=function(R,l){HB.prototype.init.call(this,R,l,{});(R=l.label)&&R.content&&!g.d9(R.content)?(this.adBadgeText.init(yN("ad-simple-attributed-string"),new eE(R)),(l=l.adPodIndex)&&l.content&&!g.d9(l.content)&&(this.Z=new bt(this.api,this.layoutId,this.interactionLoggingClientData,this.d7),this.Z.JU(this.element),g.U(this,this.Z),this.Z.element.classList.add("ytp-ad-badge__pod-index"),this.Z.init(yN("ad-simple-attributed-string"),new eE(l))),this.element.classList.add(this.X?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.Tw(Error("No label is returned in AdBadgeViewModel."))}; Xs.prototype.show=function(){this.adBadgeText.show();var R;(R=this.Z)==null||R.show();HB.prototype.show.call(this)}; Xs.prototype.hide=function(){this.adBadgeText.hide();var R;(R=this.Z)==null||R.hide();HB.prototype.hide.call(this)};g.O(Te,HB);Te.prototype.init=function(R,l){HB.prototype.init.call(this,R,l,{});(R=l.adPodIndex)&&R.content&&!g.d9(R.content)&&(this.Z=new bt(this.api,this.layoutId,this.interactionLoggingClientData,this.d7),this.Z.JU(this.element),g.U(this,this.Z),this.Z.init(yN("ad-simple-attributed-string"),new eE(R)),l.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()}; Te.prototype.show=function(){var R;(R=this.Z)==null||R.show();HB.prototype.show.call(this)}; Te.prototype.hide=function(){var R;(R=this.Z)==null||R.hide();HB.prototype.hide.call(this)};g.O(di,HB); di.prototype.init=function(R,l){HB.prototype.init.call(this,R,l,{});if(l!=null&&l.text){var y;if(((y=l.text)==null?0:y.content)&&!g.d9(l.text.content)){this.Z=new g.BB({T:"div",j:"ytp-ad-disclosure-banner__text",IE:l.text.content});g.U(this,this.Z);this.Z.JU(this.element);var f,A;R=((f=l.interaction)==null?void 0:(A=f.accessibility)==null?void 0:A.label)||l.text.content;this.element.setAttribute("aria-label",R);var K;if((K=l.interaction)==null?0:K.onTap)this.X=new g.BB({T:"div",j:"ytp-ad-disclosure-banner__chevron",S:[g.E_()]}), g.U(this,this.X),this.X.JU(this.element);this.show()}}else g.Tw(Error("No banner text found in AdDisclosureBanner."))}; di.prototype.clear=function(){this.hide()};g.O(ze,g.BB);ze.prototype.J1=function(){var R=this.X.getProgressState(),l=R.seekableEnd;this.api.getPresentingPlayerType()===2&&(l=this.L?this.L/1E3:R.seekableEnd);this.progressBar.style.width=vR(new ri(R.seekableStart,l),R.current,0)*100+"%"}; ze.prototype.onStateChange=function(){g.qE(this.api.U())||(this.api.getPresentingPlayerType()===2?this.Z===-1&&(this.show(),this.Z=this.X.subscribe("h",this.J1,this),this.J1()):this.Z!==-1&&(this.hide(),this.X.un(this.Z),this.Z=-1))};g.O(wi,HB); wi.prototype.init=function(R,l,y,f){HB.prototype.init.call(this,R,l,y);if(l.skipOrPreviewRenderer){if(R=g.k(l.skipOrPreviewRenderer,$P))y=new cR(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,this.X,this.B),y.JU(this.v1),y.init(yN("skip-button"),R,this.macros),g.U(this,y);if(R=g.k(l.skipOrPreviewRenderer,$P))var A=R.skipOffsetMilliseconds}l.brandInteractionRenderer&&(R=l.brandInteractionRenderer.brandInteractionRenderer,y=new fR(this.api,this.layoutId,this.interactionLoggingClientData,this.d7), y.JU(this.sL),y.init(yN("instream-user-sentiment"),R,this.macros),g.U(this,y));if(R=g.k(l,tnO))if(R=g.k(R,tnO))y=new yc(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,this.X,!!l.showWithoutLinkedMediaLayout),g.U(this,y),y.JU(this.D),y.init(yN("flyout-cta"),R,this.macros);f=f&&f.videoAdDurationSeconds;l.adBadgeRenderer&&(y=l.adBadgeRenderer,R=g.k(y,Ch),R!=null?(y=new Xs(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,!1),g.U(this,y),y.JU(this.Z),y.init(yN("ad-badge"), R,this.macros),this.L=y.element):(R=y.simpleAdBadgeRenderer,R==null&&(R={text:{text:"Anuncio",isTemplated:!1}}),y=new WR(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,!0),g.U(this,y),y.JU(this.Z),y.init(yN("simple-ad-badge"),R,this.macros)));l.adPodIndex&&(R=g.k(l.adPodIndex,aod),R!=null&&(y=new Te(this.api,this.layoutId,this.interactionLoggingClientData,this.d7),g.U(this,y),y.JU(this.Z),y.init(yN("ad-pod-index"),R)));l.adDurationRemaining&&!l.showWithoutLinkedMediaLayout&&(R=l.adDurationRemaining.adDurationRemainingRenderer, R==null&&(R={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),f=new Qc(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,this.X,f,!1),g.U(this,f),f.JU(this.Z),f.init(yN("ad-duration-remaining"),R,this.macros));l.adInfoRenderer&&(f=g.k(l.adInfoRenderer,MY))&&(R=new gp(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,this.element,void 0,!1),g.U(this,R),this.L!==null?this.Z.insertBefore(R.element,this.L.nextSibling):R.JU(this.Z), R.init(yN("ad-info-hover-text-button"),f,this.macros));l.visitAdvertiserRenderer&&(R=g.k(l.visitAdvertiserRenderer,g.lD))&&(y=m1J(this)&&this.Y?this.Y:this.Z)&&(f=new EX(this.api,this.layoutId,this.interactionLoggingClientData,this.d7),g.U(this,f),f.JU(y),f.init(yN("visit-advertiser"),R,this.macros),SC(f.element),R=DF(f.element),kA(f.element,R+" This link opens in new tab"));!(f=this.api.U())||g.Vy(f)||g.kh(f)||f.controlsType!="3"&&!f.disableOrganicUi||(A=new ze(this.api,this.X,A,!1),A.JU(this.CX), g.U(this,A));l.adDisclosureBannerRenderer&&(l=g.k(l.adDisclosureBannerRenderer,Gsd))&&(A=new di(this.api,this.layoutId,this.interactionLoggingClientData,this.d7),A.JU(this.Yb),A.init(yN("ad-disclosure-banner"),l),g.U(this,A));this.api.U().C("enable_updated_html5_player_focus_style")&&g.AU(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; wi.prototype.clear=function(){this.hide()};g.NL.prototype.flush=function(R,l){R=R===void 0?[]:R;l=l===void 0?!1:l;if(g.O1("enable_client_streamz_web")){R=g.u(R);for(var y=R.next();!y.done;y=R.next())y=YdY(y.value),this.Z&&ek(y,nr,2,this.Z),y={serializedIncrementBatch:g.b4(y.L())},g.sE("streamzIncremented",y,{sendIsolatedPayload:l})}}; g.O(h49,g.NL);var nuK=new Map;pR.prototype.set=function(R,l,y){y=y!==void 0?Date.now()+y:void 0;this.Z.set(R,l,y)}; pR.prototype.get=function(R){return this.Z.get(R)}; pR.prototype.remove=function(R){this.Z.remove(R)};var ERs=null;var D7=null,Z7=null,J7=null,Pdi=null;g.lA("yt.www.ads.eventcache.getLastCompanionData",function(){return D7}); g.lA("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.lA("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return Z7}); g.lA("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return J7}); g.lA("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Pdi});var FuQ=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);gi.prototype.handleResponse=function(R,l){if(!l)throw Error("request needs to be passed into ConsistencyService");var y,f;l=((y=l.XC.context)==null?void 0:(f=y.request)==null?void 0:f.consistencyTokenJars)||[];var A;(R=(A=R.responseContext)==null?void 0:A.consistencyTokenJar)&&this.replace(l,R)}; gi.prototype.replace=function(R,l){R=g.u(R);for(var y=R.next();!y.done;y=R.next())delete this.Z[y.value.encryptedTokenJarContents];$1r(this,l)};var OS5=window.location.hostname.split(".").slice(-2).join("."),zR;CR.getInstance=function(){zR=g.yr("yt.clientLocationService.instance");zR||(zR=new CR,g.lA("yt.clientLocationService.instance",zR));return zR}; g.L=CR.prototype; g.L.setLocationOnInnerTubeContext=function(R){R.client||(R.client={});if(this.Z)R.client.locationInfo||(R.client.locationInfo={}),R.client.locationInfo.latitudeE7=Math.floor(this.Z.coords.latitude*1E7),R.client.locationInfo.longitudeE7=Math.floor(this.Z.coords.longitude*1E7),R.client.locationInfo.horizontalAccuracyMeters=Math.round(this.Z.coords.accuracy),R.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.L||this.locationPlayabilityToken)R.client.locationPlayabilityToken=this.L|| this.locationPlayabilityToken}; g.L.handleResponse=function(R){var l;R=(l=R.responseContext)==null?void 0:l.locationPlayabilityToken;R!==void 0&&(this.locationPlayabilityToken=R,this.Z=void 0,g.JZ("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Vc(this))&&this.localStorage.set("yt-location-playability-token",R,15552E3):g.wg("YT_CL",JSON.stringify({loctok:R}),15552E3,OS5,!0))}; g.L.clearLocationPlayabilityToken=function(R){R==="TVHTML5"?(this.localStorage=Vc(this))&&this.localStorage.remove("yt-location-playability-token"):g.Iw("YT_CL");this.L=void 0;this.X!==-1&&(clearTimeout(this.X),this.X=-1)}; g.L.getCurrentPositionFromGeolocation=function(){var R=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var l=!1,y=1E4;g.JZ("INNERTUBE_CLIENT_NAME")==="MWEB"&&(l=!0,y=15E3);return new Promise(function(f,A){navigator.geolocation.getCurrentPosition(function(K){R.Z=K;f(K)},function(K){A(K)},{enableHighAccuracy:l, maximumAge:0,timeout:y})})}; g.L.createUnpluggedLocationInfo=function(R){var l={};R=R.coords;if(R==null?0:R.latitude)l.latitudeE7=Math.floor(R.latitude*1E7);if(R==null?0:R.longitude)l.longitudeE7=Math.floor(R.longitude*1E7);if(R==null?0:R.accuracy)l.locationRadiusMeters=Math.round(R.accuracy);return l}; g.L.createLocationInfo=function(R){var l={};R=R.coords;if(R==null?0:R.latitude)l.latitudeE7=Math.floor(R.latitude*1E7);if(R==null?0:R.longitude)l.longitudeE7=Math.floor(R.longitude*1E7);return l};g.L=d17.prototype;g.L.contains=function(R){return Object.prototype.hasOwnProperty.call(this.Z,R)}; g.L.get=function(R){if(this.contains(R))return this.Z[R]}; g.L.set=function(R,l){this.Z[R]=l}; g.L.kH=function(){return Object.keys(this.Z)}; g.L.remove=function(R){delete this.Z[R]};t7.prototype.getModuleId=function(R){return R.serviceId.getModuleId()}; t7.prototype.get=function(R){a:{var l=this.mappings.get(R.toString());switch(l.type){case "mapping":R=l.value;break a;case "factory":l=l.value();this.mappings.set(R.toString(),{type:"mapping",value:l});R=l;break a;default:R=nG(l)}}return R}; t7.prototype.registerService=function(R,l){this.mappings.set(R.toString(),{type:"mapping",value:l});return R}; new t7;var wL={},rvZ=(wL.WEB_UNPLUGGED="^unplugged/",wL.WEB_UNPLUGGED_ONBOARDING="^unplugged/",wL.WEB_UNPLUGGED_OPS="^unplugged/",wL.WEB_UNPLUGGED_PUBLIC="^unplugged/",wL.WEB_CREATOR="^creator/",wL.WEB_KIDS="^kids/",wL.WEB_EXPERIMENTS="^experiments/",wL.WEB_MUSIC="^music/",wL.WEB_REMIX="^music/",wL.WEB_MUSIC_EMBEDDED_PLAYER="^music/",wL.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",wL);Rh.prototype.J=function(R,l,y){l=l===void 0?{}:l;y=y===void 0?n1:y;var f={context:g.qL(R.clickTrackingParams,!1,this.Y)};var A=this.X(R);if(A){this.Z(f,A,l);var K;l=g.ML(this.L());(A=(K=g.k(R.commandMetadata,g.Qn))==null?void 0:K.apiUrl)&&(l=A);K=Elc(Nr(l));R=Object.assign({},{command:R},void 0);f={input:K,Ut:p0(K),XC:f,config:R};f.config.SC?f.config.SC.identity=y:f.config.SC={identity:y};return f}y=new g.JD("Error: Failed to create Request from Command.",R);g.Tw(y)}; g.GT.Object.defineProperties(Rh.prototype,{Y:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.O(la,Rh);g.O(yJ,la);yJ.prototype.J=function(){return{input:"/getDatasyncIdsEndpoint",Ut:p0("/getDatasyncIdsEndpoint","GET"),XC:{}}}; yJ.prototype.L=function(){return[]}; yJ.prototype.X=function(){}; yJ.prototype.Z=function(){};var iSK={},nSq=(iSK.GET_DATASYNC_IDS=Yi(yJ),iSK);var xk={},PoS=(xk["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",xk["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",xk["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",xk["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",xk["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",xk["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",xk["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", xk["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",xk["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",xk["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",xk["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",xk["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",xk["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",xk["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",xk["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", xk["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",xk["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",xk["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",xk["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",xk["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",xk["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",xk["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", xk["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",xk.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",xk["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",xk["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",xk["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",xk["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",xk["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",xk["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", xk["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",xk["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",xk["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",xk["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",xk["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",xk["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",xk["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",xk["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",xk["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",xk["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",xk.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",xk["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",xk["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",xk["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",xk["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",xk["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",xk["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",xk["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",xk["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",xk["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",xk["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",xk["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",xk["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",xk["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",xk["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",xk["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",xk["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",xk["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",xk["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",xk["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",xk["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",xk["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", xk["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",xk["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",xk["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",xk["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",xk["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",xk["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",xk["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",xk["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",xk["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", xk["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",xk["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",xk["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",xk["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",xk["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",xk["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",xk["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",xk["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", xk),IC={},pxo=(IC.auto_search="LATENCY_ACTION_AUTO_SEARCH",IC.ad_to_ad="LATENCY_ACTION_AD_TO_AD",IC.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",IC.app_startup="LATENCY_ACTION_APP_STARTUP",IC.browse="LATENCY_ACTION_BROWSE",IC.cast_splash="LATENCY_ACTION_CAST_SPLASH",IC.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",IC.channels="LATENCY_ACTION_CHANNELS",IC.chips="LATENCY_ACTION_CHIPS",IC.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",IC.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", IC.editor="LATENCY_ACTION_EDITOR",IC.embed="LATENCY_ACTION_EMBED",IC.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",IC.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",IC.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",IC.explore="LATENCY_ACTION_EXPLORE",IC.favorites="LATENCY_ACTION_FAVORITES",IC.home="LATENCY_ACTION_HOME",IC.inboarding="LATENCY_ACTION_INBOARDING",IC.landing="LATENCY_ACTION_LANDING",IC.library="LATENCY_ACTION_LIBRARY",IC.live= "LATENCY_ACTION_LIVE",IC.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",IC.management="LATENCY_ACTION_MANAGEMENT",IC.mini_app="LATENCY_ACTION_MINI_APP_PLAY",IC.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",IC.onboarding="LATENCY_ACTION_ONBOARDING",IC.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",IC.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",IC.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",IC.player_att="LATENCY_ACTION_PLAYER_ATTESTATION", IC.prebuffer="LATENCY_ACTION_PREBUFFER",IC.prefetch="LATENCY_ACTION_PREFETCH",IC.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",IC.profile_switcher="LATENCY_ACTION_LOGIN",IC.projects="LATENCY_ACTION_PROJECTS",IC.reel_watch="LATENCY_ACTION_REEL_WATCH",IC.results="LATENCY_ACTION_RESULTS",IC.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",IC.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",IC.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",IC.review="LATENCY_ACTION_REVIEW",IC.search_overview_answer= "LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",IC.search_ui="LATENCY_ACTION_SEARCH_UI",IC.search_suggest="LATENCY_ACTION_SUGGEST",IC.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",IC.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",IC.seek="LATENCY_ACTION_PLAYER_SEEK",IC.settings="LATENCY_ACTION_SETTINGS",IC.store="LATENCY_ACTION_STORE",IC.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",IC.tenx="LATENCY_ACTION_TENX",IC.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",IC.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD", IC.watch="LATENCY_ACTION_WATCH",IC.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",IC["watch,watch7"]="LATENCY_ACTION_WATCH",IC["watch,watch7_html5"]="LATENCY_ACTION_WATCH",IC["watch,watch7ad"]="LATENCY_ACTION_WATCH",IC["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",IC.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",IC.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",IC.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",IC.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",IC.networkless_performance= "LATENCY_ACTION_NETWORKLESS_PERFORMANCE",IC.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",IC.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",IC.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",IC);Object.assign(pxo,PoS);g.O(nJ,m9);var MYQ=new o1("aft-recorded",nJ);var uTK=g.Mo.ytLoggingGelSequenceIdObj_||{};g.lA("ytLoggingGelSequenceIdObj_",uTK);var hV=g.Mo.ytLoggingLatencyUsageStats_||{};g.lA("ytLoggingLatencyUsageStats_",hV);md.prototype.tick=function(R,l,y,f){co(this,"tick_"+R+"_"+l)||g.sE("latencyActionTicked",{tickName:R,clientActionNonce:l},{timestamp:y,cttAuthInfo:f})}; md.prototype.info=function(R,l,y){var f=Object.keys(R).join("");co(this,"info_"+f+"_"+l)||(R=Object.assign({},R),R.clientActionNonce=l,g.sE("latencyActionInfo",R,{cttAuthInfo:y}))}; md.prototype.jspbInfo=function(R,l,y){for(var f="",A=0;A=A.length?(l.append(A),R-=A.length):R?(l.append(new Uint8Array(A.buffer,A.byteOffset,R)),y.append(new Uint8Array(A.buffer,A.byteOffset+R,A.length-R)),R=0):y.append(A);return{sP:l,SK:y}}; Kn.prototype.isFocused=function(R){return R>=this.L&&R=64&&(this.D.set(R.subarray(0,64-this.X),this.X),l=64-this.X,this.X=0,lIT(this,this.D,0));for(;l+64<=y;l+=64)lIT(this,R,l);l=this.start&&(R=2&&y.ssdaiAdsConfig&&BR("Unexpected ad placement renderers length",R.slot,null,{length:f.length});var A;((A=y.adSlots)==null?0:A.some(function(K){var G,B;return((G=g.k(K,A9))==null?void 0:(B=G.adSlotMetadata)==null?void 0:B.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||f.some(function(K){var G,B,H,n; return!!((G=K.renderer)==null?0:(B=G.linearAdSequenceRenderer)==null?0:(H=B.linearAds)==null?0:H.length)||!((n=K.renderer)==null||!n.instreamVideoAdRenderer)})||QDs(R)})}; qc.prototype.Dl=function(){BPs(this.Z)};tq.prototype.lf=function(){var R=this;sDc(this.X,function(){var l=Cm(R.slot.clientMetadata,"metadata_type_ad_break_request_data");return l.cueProcessedMs?R.Z.get().fetch({tC:l.getAdBreakUrl,H8:new g.Jq(l.J9,l.Dx),cueProcessedMs:l.cueProcessedMs}):R.Z.get().fetch({tC:l.getAdBreakUrl,H8:new g.Jq(l.J9,l.Dx)})})}; tq.prototype.Dl=function(){BPs(this.X)};YC.prototype.lf=function(){var R=this.slot.clientMetadata,l,y=(l=this.slot.fulfilledLayout)!=null?l:Cm(R,"metadata_type_fulfilled_layout");jnq(this.callback,this.slot,y)}; YC.prototype.Dl=function(){sb(this.callback,this.slot,new q("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")};Ri.prototype.build=function(R,l){return l.fulfilledLayout||Mc(l,{i8:["metadata_type_fulfilled_layout"]})?new YC(R,l):this.L(R,l)};g.O(lQ,Ri); lQ.prototype.L=function(R,l){if(Mc(l,{i8:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new qc(R,l,this.Z,this.X,this.Hh,this.aE,this.g7,this.RE,this.ZN);if(Mc(l,{i8:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new tq(R,l,this.Z,this.X,this.Hh,this.aE);throw new q("Unsupported slot with type: "+l.slotType+" and client metadata: "+q0(l.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.O(yZ,Ri);yZ.prototype.L=function(R,l){throw new q("Unsupported slot with type: "+l.slotType+" and client metadata: "+q0(l.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.L=$Jc.prototype;g.L.ze=function(){return this.slot}; g.L.NU=function(){return this.layout}; g.L.init=function(){}; g.L.release=function(){}; g.L.startRendering=function(R){if(R.layoutId!==this.layout.layoutId)this.callback.E9(this.slot,R,new g1("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 l=Cm(R.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.EF(this.slot,R),kBZ(this.L, this.slot,l)):BR("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,R)}}; g.L.kG=function(R,l){R.layoutId!==this.layout.layoutId?this.callback.E9(this.slot,R,new g1("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.Tr(this.slot,R,l),bli(this),XyJ(this))};g.O(ai,g.Ae);g.L=ai.prototype;g.L.ze=function(){return this.X.slot}; g.L.NU=function(){return this.X.layout}; g.L.init=function(){this.L.get().addListener(this)}; g.L.release=function(){this.L.get().removeListener(this);this.dispose()}; g.L.Fy=function(){}; g.L.Qk=function(){}; g.L.RD=function(){}; g.L.Gs=function(){}; g.L.startRendering=function(R){var l=this;Gu(this.X,R,function(){return void l.ZZ()})}; g.L.ZZ=function(){this.L.get().ZZ(this.Z)}; g.L.kG=function(R,l){var y=this;Gu(this.X,R,function(){var f=y.L.get();ztj(f,y.Z,3);y.Z=[];y.callback.Tr(y.slot,R,l)})}; g.L.G4=function(){this.L.Fx()||this.L.get().removeListener(this);g.Ae.prototype.G4.call(this)}; g.GT.Object.defineProperties(ai.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.X.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.X.layout}}});ct.prototype.cE=function(R,l){l=l===void 0?!1:l;var y=(this.L.get(R)||[]).concat();if(l=l&&v$Z(R)){var f=this.L.get(l);f&&y.push.apply(y,g.ci(f))}LV(this,R,y);this.Z.add(R);l&&this.Z.add(l)}; ct.prototype.AF=function(R,l){l=l===void 0?!1:l;if(!this.Z.has(R)){var y=l&&v$Z(R);y&&(l=!this.Z.has(y));this.cE(R,l)}};g.O(xJT,fi);g.O(Fn,ai);g.L=Fn.prototype;g.L.wx=function(R,l){nV("ads-engagement-panel-layout",R,this.D.get().Yh,this.g7.get(),this.Y,this.J,this.ze(),this.NU(),l)}; g.L.startRendering=function(R){Bt(this.OL,this.ze(),this.NU(),g.k(this.NU().renderingContent,QI),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(l,y,f,A,K){return new xJT(l,y,f,A,K)},this.Z); ai.prototype.startRendering.call(this,R)}; g.L.EF=function(R,l){this.J===l.layoutId&&(this.Y===null?this.Y=this.g7.get().Y0():BR("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.L.Tr=function(){}; g.L.nM=function(){}; g.L.F0=function(){}; g.L.QT=function(){}; g.L.yq=function(){}; g.L.bO=function(){}; g.L.Cs=function(){}; g.L.eJ=function(){}; g.L.SY=function(){}; g.L.ZK=function(){}; g.L.FJ=function(){}; g.L.G4=function(){GF(this.BZ(),this);ai.prototype.G4.call(this)};g.O(NP7,fi);g.O(QZ,ai);g.L=QZ.prototype;g.L.wx=function(R,l){nV("banner-image",R,this.D.get().Yh,this.g7.get(),this.Y,this.J,this.ze(),this.NU(),l)}; g.L.startRendering=function(R){Bt(this.OL,this.ze(),this.NU(),g.k(this.NU().renderingContent,uk),this.callback,"metadata_type_banner_image_layout_view_model",function(l,y,f,A,K){return new NP7(l,y,f,A,K)},this.Z); ai.prototype.startRendering.call(this,R)}; g.L.EF=function(R,l){this.J===l.layoutId&&(this.Y===null?this.Y=this.g7.get().Y0():BR("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.L.Tr=function(){}; g.L.nM=function(){}; g.L.F0=function(){}; g.L.QT=function(){}; g.L.yq=function(){}; g.L.bO=function(){}; g.L.Cs=function(){}; g.L.eJ=function(){}; g.L.SY=function(){}; g.L.ZK=function(){}; g.L.FJ=function(){}; g.L.G4=function(){GF(this.BZ(),this);ai.prototype.G4.call(this)};g.O($X,fi);g.O(ei,ai);g.L=ei.prototype;g.L.wx=function(R,l){nV("action-companion",R,this.D.get().Yh,this.g7.get(),this.Y,this.J,this.ze(),this.NU(),l)}; g.L.startRendering=function(R){Bt(this.OL,this.ze(),this.NU(),g.k(this.NU().renderingContent,O4),this.callback,"metadata_type_action_companion_ad_renderer",function(l,y,f,A,K){return new $X(l,y,f,A,K)},this.Z); ai.prototype.startRendering.call(this,R)}; g.L.EF=function(R,l){l.layoutId===this.layout.layoutId?this.OL.AF("impression"):this.J===l.layoutId&&(this.Y===null?this.Y=this.g7.get().Y0():BR("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.L.Tr=function(){}; g.L.nM=function(){}; g.L.F0=function(){}; g.L.QT=function(){}; g.L.yq=function(){}; g.L.bO=function(){}; g.L.Cs=function(){}; g.L.eJ=function(){}; g.L.SY=function(){}; g.L.ZK=function(){}; g.L.FJ=function(){}; g.L.G4=function(){GF(this.BZ(),this);ai.prototype.G4.call(this)};g.O(SVK,fi);g.O(bQ,ai);g.L=bQ.prototype;g.L.wx=function(R,l){nV("image-companion",R,this.D.get().Yh,this.g7.get(),this.Y,this.J,this.ze(),this.NU(),l)}; g.L.startRendering=function(R){Bt(this.OL,this.ze(),this.NU(),g.k(this.NU().renderingContent,ik),this.callback,"metadata_type_image_companion_ad_renderer",function(l,y,f,A,K){return new SVK(l,y,f,A,K)},this.Z); ai.prototype.startRendering.call(this,R)}; g.L.EF=function(R,l){l.layoutId===this.layout.layoutId?this.OL.AF("impression"):this.J===l.layoutId&&(this.Y===null?this.Y=this.g7.get().Y0():BR("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.L.Tr=function(){}; g.L.nM=function(){}; g.L.F0=function(){}; g.L.QT=function(){}; g.L.yq=function(){}; g.L.bO=function(){}; g.L.Cs=function(){}; g.L.eJ=function(){}; g.L.SY=function(){}; g.L.ZK=function(){}; g.L.FJ=function(){}; g.L.G4=function(){GF(this.BZ(),this);ai.prototype.G4.call(this)};g.O(kwY,fi);g.O(Xn,ai);g.L=Xn.prototype;g.L.wx=function(R,l){nV("shopping-companion",R,this.D.get().Yh,this.g7.get(),this.Y,this.J,this.ze(),this.NU(),l)}; g.L.startRendering=function(R){Bt(this.OL,this.ze(),this.NU(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(l,y,f,A,K){return new kwY(l,y,f,A,K)},this.Z); ai.prototype.startRendering.call(this,R)}; g.L.EF=function(R,l){l.layoutId===this.layout.layoutId?this.OL.AF("impression"):this.J===l.layoutId&&(this.Y===null?this.Y=this.g7.get().Y0():BR("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.L.Tr=function(){}; g.L.nM=function(){}; g.L.F0=function(){}; g.L.QT=function(){}; g.L.yq=function(){}; g.L.bO=function(){}; g.L.Cs=function(){}; g.L.eJ=function(){}; g.L.SY=function(){}; g.L.ZK=function(){}; g.L.FJ=function(){}; g.L.G4=function(){GF(this.BZ(),this);ai.prototype.G4.call(this)};g.O(ds,ai);g.L=ds.prototype;g.L.startRendering=function(R){Bt(this.OL,this.ze(),this.NU(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(l,y,f,A,K){return new $X(l,y,f,A,K)},this.Z); ai.prototype.startRendering.call(this,R)}; g.L.EF=function(){}; g.L.Tr=function(){}; g.L.nM=function(){}; g.L.F0=function(){}; g.L.QT=function(){}; g.L.yq=function(){}; g.L.bO=function(){}; g.L.Cs=function(){}; g.L.eJ=function(){}; g.L.SY=function(){}; g.L.ZK=function(){}; g.L.FJ=function(){}; g.L.G4=function(){GF(this.BZ(),this);ai.prototype.G4.call(this)}; g.L.wx=function(){};g.L=CrT.prototype;g.L.ze=function(){return this.slot}; g.L.NU=function(){return this.layout}; g.L.init=function(){this.RE.get().addListener(this);this.RE.get().Pg.push(this);var R=Cm(this.layout.clientMetadata,"metadata_type_video_length_seconds"),l=Cm(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");mL(this.layout.qU)&&Kh(this.Y$.get(),this.layout.layoutId,{wu:l,V4:R,listener:this})}; g.L.release=function(){this.RE.get().removeListener(this);bLs(this.RE.get(),this);mL(this.layout.qU)&&Gr(this.Y$.get(),this.layout.layoutId)}; g.L.startRendering=function(R){this.callback.EF(this.slot,R)}; g.L.kG=function(R,l){Y0J(this.aE.get())&&!this.Z&&(this.OL.AF("abandon"),this.Z=!0);this.callback.Tr(this.slot,R,l)}; g.L.AO=function(R){switch(R.id){case "part2viewed":this.OL.AF("start");this.OL.AF("impression");break;case "videoplaytime25":this.OL.AF("first_quartile");break;case "videoplaytime50":this.OL.AF("midpoint");break;case "videoplaytime75":this.OL.AF("third_quartile");break;case "videoplaytime100":Y0J(this.aE.get())?this.Z||(this.OL.AF("complete"),this.Z=!0):this.OL.AF("complete");uQ(this.OL)&&iQ(this.OL,Infinity,!0);MAQ(this.aE.get())&&Tu(this.X,Infinity,!0);break;case "engagedview":uQ(this.OL)||this.OL.AF("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:BR("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.L.onVolumeChange=function(){}; g.L.rz=function(){}; g.L.R9=function(){}; g.L.W6=function(){}; g.L.onFullscreenToggled=function(){}; g.L.gh=function(){}; g.L.NP=function(){}; g.L.B_=function(R){MAQ(this.aE.get())&&Tu(this.X,R*1E3,!1);uQ(this.OL)&&iQ(this.OL,R*1E3,!1)}; g.L.UC=function(){}; g.L.JD=function(){this.OL.AF("active_view_measurable")}; g.L.R6=function(){this.OL.AF("active_view_viewable")}; g.L.Di=function(){this.OL.AF("active_view_fully_viewable_audible_half_duration")}; g.L.b7=function(){this.OL.AF("audio_measurable")}; g.L.yB=function(){this.OL.AF("audio_audible")};g.O(rs,ai);g.L=rs.prototype;g.L.init=function(){ai.prototype.init.call(this);var R=Cm(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),l={adsClientData:this.layout.e1};this.Z.push(new LR(R,this.layout.layoutId,Cm(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),l,!0))}; g.L.D7=function(){this.Y||this.RE.get().resumeVideo(1)}; g.L.startRendering=function(R){ai.prototype.startRendering.call(this,R);hB(this.RE.get(),"ad-showing");this.callback.EF(this.slot,R);this.J.mH=this}; g.L.kG=function(R,l){ai.prototype.kG.call(this,R,l);cD(this.RE.get(),"ad-showing");MC(this.J,this)}; g.L.wx=function(R){switch(R){case "ad-info-icon-button":(this.Y=this.RE.get().Hp(1))||this.RE.get().pauseVideo();break;case "visit-advertiser":this.RE.get().pauseVideo()}}; g.L.G4=function(){ai.prototype.G4.call(this)};g.O(vt,fi);g.O(zu,ai);g.L=zu.prototype;g.L.startRendering=function(R){Bt(this.OL,this.ze(),this.NU(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(l,y,f,A,K){return new vt(l,y,f,A,K)},this.Z); ai.prototype.startRendering.call(this,R)}; g.L.EF=function(){}; g.L.Tr=function(){}; g.L.nM=function(){}; g.L.F0=function(){}; g.L.QT=function(){}; g.L.yq=function(){}; g.L.bO=function(){}; g.L.Cs=function(){}; g.L.eJ=function(){}; g.L.SY=function(){}; g.L.ZK=function(){}; g.L.FJ=function(){}; g.L.G4=function(){GF(this.BZ(),this);ai.prototype.G4.call(this)}; g.L.wx=function(){};g.O(ws,fi);g.O(xX,ai);xX.prototype.init=function(){ai.prototype.init.call(this);this.Z.push(new ws(g.k(this.layout.renderingContent,gb),this.layout.layoutId,{adsClientData:this.layout.e1}))}; xX.prototype.wx=function(){Cs(this.Y.get(),this.J)&&Ht(this.g7.get(),3)}; xX.prototype.startRendering=function(R){ai.prototype.startRendering.call(this,R);this.callback.EF(this.slot,R)}; xX.prototype.G4=function(){ai.prototype.G4.call(this)};g.O(Ii,fi);g.O(N$,ai);N$.prototype.init=function(){ai.prototype.init.call(this);var R=g.k(this.layout.renderingContent,tP)||Cm(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),l=sz(this.OL);this.Z.push(new Ii(R,l,this.layout.layoutId,{adsClientData:this.layout.e1},!0,!0))}; N$.prototype.startRendering=function(R){ai.prototype.startRendering.call(this,R);this.callback.EF(this.slot,R)}; N$.prototype.wx=function(R,l){if(l===this.layout.layoutId)switch(R){case "skip-button":var y;(R=(y=Cm(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:y.current)&&R.k5(this.ze(),this.layout)}}; N$.prototype.G4=function(){ai.prototype.G4.call(this)};Uz.prototype.build=function(R,l,y,f){if(pV(f,{i8:["metadata_type_ad_break_response_data"],dQ:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new $Jc(R,y,f,this.X,this.L,this.Z);throw new g1("Unsupported layout with type: "+f.layoutType+" and client metadata: "+q0(f.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.O(YVs,fi);g.O(Si,ai);g.L=Si.prototype;g.L.wx=function(R,l){nV("ads-engagement-panel",R,this.D.get().Yh,this.g7.get(),this.Y,this.J,this.ze(),this.NU(),l)}; g.L.startRendering=function(R){Bt(this.OL,this.ze(),this.NU(),g.k(this.NU().renderingContent,Pp),this.callback,"metadata_type_ads_engagement_panel_renderer",function(l,y,f,A,K){return new YVs(l,y,f,A,K)},this.Z); ai.prototype.startRendering.call(this,R)}; g.L.EF=function(R,l){l.layoutId===this.layout.layoutId?this.OL.AF("impression"):this.J===l.layoutId&&(this.Y===null?this.Y=this.g7.get().Y0():BR("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.L.Tr=function(){}; g.L.nM=function(){}; g.L.F0=function(){}; g.L.QT=function(){}; g.L.yq=function(){}; g.L.bO=function(){}; g.L.Cs=function(){}; g.L.eJ=function(){}; g.L.SY=function(){}; g.L.ZK=function(){}; g.L.FJ=function(){}; g.L.G4=function(){GF(this.BZ(),this);ai.prototype.G4.call(this)};g.O(ji,ai);g.L=ji.prototype;g.L.wx=function(R,l){nV("top-banner-image-text-icon-buttoned",R,this.D.get().Yh,this.g7.get(),this.Y,this.J,this.ze(),this.NU(),l)}; g.L.startRendering=function(R){Bt(this.OL,this.ze(),this.NU(),g.k(this.NU().renderingContent,FQ),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(l,y,f,A,K){return new vt(l,y,f,A,K)},this.Z); ai.prototype.startRendering.call(this,R)}; g.L.EF=function(R,l){this.J===l.layoutId&&(this.Y===null?this.Y=this.g7.get().Y0():BR("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.L.Tr=function(){}; g.L.nM=function(){}; g.L.F0=function(){}; g.L.QT=function(){}; g.L.yq=function(){}; g.L.bO=function(){}; g.L.Cs=function(){}; g.L.eJ=function(){}; g.L.SY=function(){}; g.L.ZK=function(){}; g.L.FJ=function(){}; g.L.G4=function(){GF(this.BZ(),this);ai.prototype.G4.call(this)};ltT.prototype.build=function(R,l,y,f){if(pV(f,Mhr())||g.k(f.renderingContent,Pp)!==void 0)return new Si(R,y,f,this.mj,this.g7,this.BZ,this.Y$,this.Z);if(pV(f,UJo())||g.k(f.renderingContent,O4)!==void 0)return new ei(R,y,f,this.mj,this.g7,this.BZ,this.Y$,this.Z);if(pV(f,jD7())||g.k(f.renderingContent,ik)!==void 0)return new bQ(R,y,f,this.mj,this.g7,this.BZ,this.Y$,this.Z);if(pV(f,DJY()))return new Xn(R,y,f,this.mj,this.g7,this.BZ,this.Y$,this.Z);if(pV(f,VhJ()))return new ds(R,y,f,this.mj,this.g7,this.BZ, this.Y$,this.Z);if(pV(f,pyk())||g.k(f.renderingContent,uk)!==void 0)return new QZ(R,y,f,this.mj,this.g7,this.BZ,this.Y$,this.Z);if(pV(f,RdT())||g.k(f.renderingContent,FQ)!==void 0)return new ji(R,y,f,this.mj,this.g7,this.BZ,this.Y$,this.Z);if(pV(f,qVi()))return new zu(R,y,f,this.mj,this.g7,this.BZ,this.Y$,this.Z);if(pV(f,I0J())||g.k(f.renderingContent,QI)!==void 0)return new Fn(R,y,f,this.mj,this.g7,this.BZ,this.Y$,this.Z);throw new g1("Unsupported layout with type: "+f.layoutType+" and client metadata: "+ q0(f.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};yec.prototype.build=function(R,l,y,f){if(pV(f,{i8:["metadata_type_linked_player_bytes_layout_id"],dQ:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new xX(R,y,f,this.mj,this.g7,this.Z);throw new g1("Unsupported layout with type: "+f.layoutType+" and client metadata: "+q0(f.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.L=fti.prototype;g.L.ze=function(){return this.slot}; g.L.NU=function(){return this.layout}; g.L.init=function(){}; g.L.release=function(){}; g.L.startRendering=function(R){R.layoutId!==this.layout.layoutId?this.callback.E9(this.slot,R,new g1("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.EF(this.slot,R),this.OL.AF("impression"),nZ(this.AR,R,"normal"))}; g.L.kG=function(R,l){R.layoutId!==this.layout.layoutId?this.callback.E9(this.slot,R,new g1("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.Tr(this.slot,R,l)};g.L=KFq.prototype;g.L.ze=function(){return this.slot}; g.L.NU=function(){return this.layout}; g.L.init=function(){}; g.L.release=function(){}; g.L.startRendering=function(R){R.layoutId!==this.layout.layoutId?this.callback.E9(this.slot,R,new g1("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.EF(this.slot,R),this.OL.AF("impression"),nZ(this.AR,R,"normal"))}; g.L.kG=function(R,l){R.layoutId!==this.layout.layoutId?this.callback.E9(this.slot,R,new g1("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.Tr(this.slot,R,l)};kX.prototype.build=function(R,l,y,f){if(!this.aE.get().G.U().C("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(pV(f,Aek()))return new fti(R,y,f,this.g7,this.AR)}else if(pV(f,{i8:[],dQ:["LAYOUT_TYPE_FORECASTING"]}))return new KFq(R,y,f,this.g7,this.AR);throw new g1("Unsupported layout with type: "+f.layoutType+" and client metadata: "+q0(f.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.O(sNi,fi);g.O(Ds,ai);g.L=Ds.prototype;g.L.init=function(){ai.prototype.init.call(this);var R=g.k(this.layout.renderingContent,q$)||Cm(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),l={adsClientData:this.layout.e1};this.Z.push(new sNi(R,Cm(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,l))}; g.L.D7=function(){this.Y||this.RE.get().resumeVideo(2)}; g.L.startRendering=function(R){ai.prototype.startRendering.call(this,R);this.callback.EF(this.slot,R);this.J.mH=this}; g.L.kG=function(R,l){ai.prototype.kG.call(this,R,l);MC(this.J,this)}; g.L.wx=function(R,l){if(!Nc(this.aE.get(),"stop_handling_click_for_non_rendering_overlay_layout")||l===this.layout.layoutId){if(Cs(this.D.get(),this.V))switch(R){case "visit-advertiser-link":Ht(this.g7.get(),3)}switch(R){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.Y||this.RE.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.Y=this.RE.get().Hp(2))||this.RE.get().pauseVideo();break; case "visit-advertiser-link":this.RE.get().pauseVideo();Bpk(this).vI();break;case "skip-button":if(R=Bpk(this),this.layout.renderingContent&&!Dy(this.layout.clientMetadata,"metadata_type_dai")||!R.fz){var y;(R=(y=Cm(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:y.current)&&R.k5(this.ze(),this.layout)}else BR("Requesting to skip by LegacyPlayerBytes when components enabled"),R.Pt(this.ze(),this.layout)}}}; g.L.G4=function(){ai.prototype.G4.call(this)};g.O(Zs,ai);g.L=Zs.prototype;g.L.init=function(){ai.prototype.init.call(this);var R=g.k(this.layout.renderingContent,CV)||Cm(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),l={adsClientData:this.layout.e1},y;(y=!!this.layout.renderingContent)||(y=!JP(this).fz);this.Z.push(new LR(R,this.layout.layoutId,Cm(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),l,y))}; g.L.D7=function(){this.Y||this.RE.get().resumeVideo(2)}; g.L.startRendering=function(R){ai.prototype.startRendering.call(this,R);this.callback.EF(this.slot,R);this.J.mH=this}; g.L.kG=function(R,l){ai.prototype.kG.call(this,R,l);MC(this.J,this)}; g.L.wx=function(R,l){if(!this.aE||!Nc(this.aE.get(),"stop_handling_click_for_non_rendering_overlay_layout")||l===this.layout.layoutId){if(Cs(this.D.get(),this.V))switch(R){case "visit-advertiser":Ht(this.g7.get(),3)}switch(R){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.Y||this.RE.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.Y=this.RE.get().Hp(2))||this.RE.get().pauseVideo();break; case "visit-advertiser":this.RE.get().pauseVideo();JP(this).vI();break;case "skip-button":if(R=JP(this),this.layout.renderingContent&&!Dy(this.layout.clientMetadata,"metadata_type_dai")||!R.fz){var y;(R=(y=Cm(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:y.current)&&R.k5(this.ze(),this.layout)}else BR("Requesting to skip by LegacyPlayerBytes"),R.Pt(this.ze(),this.layout)}}}; g.L.G4=function(){ai.prototype.G4.call(this)};g.O(nD9,fi);g.O(gs,ai);g.L=gs.prototype;g.L.startRendering=function(R){var l=this;Gu(this.X,R,function(){l.Z.push(new nD9(Cm(l.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),R.layoutId,R.e1));l.ZZ();l.callback.EF(l.slot,R);g.V(AB(l.RE.get(),1),512)&&l.callback.E9(l.ze(),l.NU(),new g1("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.L.NP=function(){}; g.L.gh=function(R){if(R.state.isError()){var l;this.callback.E9(this.ze(),this.NU(),new g1("A player error happened during adNotify",{playerErrorCode:(l=R.state.WE)==null?void 0:l.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.L.onFullscreenToggled=function(){}; g.L.R9=function(){}; g.L.W6=function(){}; g.L.rz=function(){}; g.L.onVolumeChange=function(){}; g.L.AO=function(){}; g.L.UC=function(){}; g.L.wx=function(){};g.O(oDT,fi);g.O(VZ,ai);VZ.prototype.init=function(){ai.prototype.init.call(this);var R=g.k(this.layout.renderingContent,YX),l=sz(this.OL);this.Z.push(new oDT(R,l,this.layout.layoutId,{adsClientData:this.layout.e1}))}; VZ.prototype.startRendering=function(R){ai.prototype.startRendering.call(this,R);this.callback.EF(this.slot,R)}; VZ.prototype.wx=function(R,l){if(l===this.layout.layoutId)switch(R){case "skip-button":var y;(R=(y=Cm(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:y.current)&&R.k5(this.ze(),this.layout)}}; VZ.prototype.G4=function(){ai.prototype.G4.call(this)};hdK.prototype.build=function(R,l,y,f){if(R=M$(R,y,f,this.mj,this.RE,this.g7,this.X,this.Z,this.aE))return R;throw new g1("Unsupported layout with type: "+f.layoutType+" and client metadata: "+q0(f.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.L=yW.prototype;g.L.ze=function(){return this.slot}; g.L.NU=function(){return this.layout}; g.L.init=function(){this.RE.get().addListener(this);this.RE.get().Pg.push(this);if(this.layout.renderingContent){var R=this.fX.get();R=Io(R,1).Qg/1E3}else R=Cm(this.layout.clientMetadata,"metadata_type_video_length_seconds");var l=g.k(this.layout.renderingContent,DR),y=l?oi(l.pings):Cm(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");l=l?r07(l.pings):Cm(this.layout.clientMetadata,"metadata_type_active_view_identifier");mL(this.layout.qU)&&Kh(this.Y$.get(),this.layout.layoutId, {wu:y,V4:R,listener:this,ob:l})}; g.L.release=function(){this.RE.get().removeListener(this);bLs(this.RE.get(),this);mL(this.layout.qU)&&Gr(this.Y$.get(),this.layout.layoutId)}; g.L.startRendering=function(R){this.callback.EF(this.slot,R)}; g.L.kG=function(R,l){fo(this,"abandon");this.callback.Tr(this.slot,R,l)}; g.L.AO=function(R){switch(R.id){case "part2viewed":this.OL.AF("start");this.OL.AF("impression");break;case "videoplaytime25":this.OL.AF("first_quartile");break;case "videoplaytime50":this.OL.AF("midpoint");break;case "videoplaytime75":this.OL.AF("third_quartile");break;case "videoplaytime100":fo(this,"complete");uQ(this.OL)&&iQ(this.OL,Infinity,!0);break;case "engagedview":uQ(this.OL)||this.OL.AF("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:BR("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.L.onVolumeChange=function(){}; g.L.rz=function(){}; g.L.R9=function(){}; g.L.W6=function(){}; g.L.onFullscreenToggled=function(){}; g.L.gh=function(R){this.Z||(g.m2(R,4)&&!g.m2(R,2)?Oz(this.OL,"pause"):nR(R,4)<0&&!(nR(R,2)<0)&&Oz(this.OL,"resume"))}; g.L.NP=function(){}; g.L.B_=function(R){uQ(this.OL)&&iQ(this.OL,R*1E3,!1)}; g.L.UC=function(){fo(this,"swipe")}; g.L.JD=function(){this.OL.AF("active_view_measurable")}; g.L.R6=function(){this.OL.AF("active_view_viewable")}; g.L.Di=function(){this.OL.AF("active_view_fully_viewable_audible_half_duration")}; g.L.b7=function(){this.OL.AF("audio_measurable")}; g.L.yB=function(){this.OL.AF("audio_audible")};ceT.prototype.build=function(R,l,y,f){if(y.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.k(f.renderingContent,DR)!==void 0)return new yW(R,y,f,this.RE,this.g7,this.aE,this.Y$,this.fX);l=["metadata_type_ad_placement_config"];for(var A=g.u(Ez()),K=A.next();!K.done;K=A.next())l.push(K.value);if(pV(f,{i8:l,dQ:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return y.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new yW(R,y,f,this.RE,this.g7,this.aE,this.Y$,this.fX):new CrT(R,y,f,this.RE,this.g7, this.JF,this.aE,this.Y$);throw new g1("Unsupported layout with type: "+f.layoutType+" and client metadata: "+q0(f.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var az={contentCpn:"",Q9:new Map};$F7.prototype.MU=function(R,l){var y={};l=Object.assign({},l,(y.cc=this.uO.J2(),y));this.uO.G.T4(R,l)};var StD,jX; StD={dD4:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",X0X:"AUTHENTICATION_MALFORMED",LVx:"AUTHENTICATION_MISSING",IWq:"BAD_REQUEST",DPq:"CAST_SESSION_DEVICE_MISMATCHED",JRq:"CAST_SESSION_VIDEO_MISMATCHED",RHU:"CAST_TOKEN_EXPIRED",QJL:"CAST_TOKEN_FAILED",CHx:"CAST_TOKEN_MALFORMED",eHx:"CGI_PARAMS_MALFORMED",FVS:"CGI_PARAMS_MISSING",Hw4:"DEVICE_FALLBACK",RN4:"GENERIC_WITH_LINK_AND_CPN",Qc4:"ERROR_HDCP",CE9:"LICENSE",F8S:"VIDEO_UNAVAILABLE",VvX:"FORMAT_UNAVAILABLE",AO9:"GEO_FAILURE", rOx:"HTML5_AUDIO_RENDERER_ERROR",ifE:"GENERIC_WITHOUT_LINK",m$$:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",w6X:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",qC7:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",ZW$:"HTML5_SPS_UMP_STATUS_REJECTED",yuU:"INVALID_DRM_MESSAGE",mCU:"PURCHASE_NOT_FOUND",wQ7:"PURCHASE_REFUNDED",IjU:"RENTAL_EXPIRED",stQ:"RETRYABLE_ERROR",gyq:"SERVER_ERROR",Az$:"SIGNATURE_EXPIRED",KNX:"STOPPED_BY_ANOTHER_PLAYBACK",Eyb:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",czQ:"STREAMING_NOT_ALLOWED", urL:"STREAM_LICENSE_NOT_FOUND",im7:"TOO_MANY_REQUESTS",mA$:"TOO_MANY_REQUESTS_WITH_LINK",wO1:"TOO_MANY_STREAMS_PER_ENTITLEMENT",qzx:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",PR4:"VIDEO_FORBIDDEN",v81:"VIDEO_NOT_FOUND",yRq:"BROWSER_OR_EXTENSION_ERROR"};jX={}; g.Dr=(jX.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.",jX.DEVICE_FALLBACK="Este video no est\u00e1 disponible en este dispositivo.",jX.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", jX.LICENSE="Se produjo un error de licencia con este video.",jX.VIDEO_UNAVAILABLE="Video no disponible",jX.FORMAT_UNAVAILABLE="Este video no est\u00e1 disponible en la calidad seleccionada. Vuelve a intentarlo.",jX.GEO_FAILURE="Este video no est\u00e1 disponible en tu pa\u00eds.",jX.HTML5_AUDIO_RENDERER_ERROR="Se produjo un error en el procesador de audio. Reinicia tu computadora.",jX.GENERIC_WITHOUT_LINK="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.",jX.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de video.",jX.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",jX.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="No puedes reproducir este video en tu navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",jX.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", jX.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico para el sistema DRM no es v\u00e1lido.",jX.PURCHASE_NOT_FOUND="Este es un video pagado.",jX.PURCHASE_REFUNDED="La compra de este video se reembols\u00f3.",jX.RENTAL_EXPIRED="El per\u00edodo de alquiler de este video termin\u00f3.",jX.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo en la sesi\u00f3n de transmisi\u00f3n no coincide con el dispositivo solicitado.",jX.CAST_SESSION_VIDEO_MISMATCHED="El video en la sesi\u00f3n de transmisi\u00f3n no coincide con el video solicitado.", jX.CAST_TOKEN_FAILED="La sesi\u00f3n de transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",jX.CAST_TOKEN_EXPIRED="La sesi\u00f3n de transmisi\u00f3n termin\u00f3. Actualiza la p\u00e1gina.",jX.CAST_TOKEN_MALFORMED="Sesi\u00f3n de transmisi\u00f3n no v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",jX.SERVER_ERROR="Se produjo un error interno en el servidor. Vuelve a intentarlo m\u00e1s tarde.",jX.STOPPED_BY_ANOTHER_PLAYBACK= "Tu cuenta est\u00e1 reproduciendo este video en otra ubicaci\u00f3n. Vuelve a cargar la p\u00e1gina para continuar mirando.",jX.STREAM_LICENSE_NOT_FOUND="Se interrumpi\u00f3 la reproducci\u00f3n del video. Vuelve a intentarlo.",jX.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Utilizaste demasiadas direcciones IP o dispositivos durante las \u00faltimas 24 horas.",jX.STREAMING_NOT_ALLOWED="No se puede reproducir el video porque est\u00e1 vinculado con otro dispositivo.",jX.RETRYABLE_ERROR="Se produjo un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.", jX.TOO_MANY_REQUESTS="Accede para mirar el video.",jX.TOO_MANY_REQUESTS_WITH_LINK="Haz $BEGIN_LINKclic aqu\u00ed$END_LINK para mirar este video en YouTube.",jX.TOO_MANY_STREAMS_PER_USER="Se detuvo la reproducci\u00f3n porque se est\u00e1n reproduciendo demasiados videos que pertenecen a la misma cuenta.",jX.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se detuvo la reproducci\u00f3n porque este video se est\u00e1 reproduciendo en demasiados dispositivos.",jX.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.", jX.VIDEO_FORBIDDEN="El acceso a este video est\u00e1 prohibido.",jX.VIDEO_NOT_FOUND="No se puede encontrar este video.",jX.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",jX);var jAU;var kPO=g.pp(),DhA=kPO.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!DhA||DhA.length<2)jAU=void 0;else{var ZSK=kPO.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);jAU=ZSK&&ZSK.length===6?Number(ZSK[5].replace("_",".")):0}var qb=jAU,pq=qb>=0;g.O(g.QW,eI);g.QW.prototype.N=function(R,l,y,f,A){return eI.prototype.N.call(this,R,l,y,f,A)};var kk={},IZ=(kk.FAIRPLAY="fairplay",kk.PLAYREADY="playready",kk.WIDEVINE="widevine",kk.CLEARKEY=null,kk.FLASHACCESS=null,kk.UNKNOWN=null,kk.WIDEVINE_CLASSIC=null,kk);$5.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var DB={},j2=(DB.WIDTH={name:"width",video:!0,valid:640,Eu:99999},DB.HEIGHT={name:"height",video:!0,valid:360,Eu:99999},DB.FRAMERATE={name:"framerate",video:!0,valid:30,Eu:9999},DB.BITRATE={name:"bitrate",video:!0,valid:3E5,Eu:2E9},DB.EOTF={name:"eotf",video:!0,valid:"bt709",Eu:"catavision"},DB.CHANNELS={name:"channels",video:!1,valid:2,Eu:99},DB.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",Eu:"invalidformat"},DB.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", Eu:"nope"},DB.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",Eu:"av99.0.05M.08"},DB.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",Eu:"invalid"},DB);var JoU=["h","H"],gbd=["9","("],VvX=["9h","(h"],CoK=["8","*"],qtK=["a","A"],tvK=["o","O"],YtO=["m","M"],MvU=["mac3","MAC3"],RSt=["meac3","MEAC3"],ZB={},psq=(ZB.h=JoU,ZB.H=JoU,ZB["9"]=gbd,ZB["("]=gbd,ZB["9h"]=VvX,ZB["(h"]=VvX,ZB["8"]=CoK,ZB["*"]=CoK,ZB.a=qtK,ZB.A=qtK,ZB.o=tvK,ZB.O=tvK,ZB.m=YtO,ZB.M=YtO,ZB.mac3=MvU,ZB.MAC3=MvU,ZB.meac3=RSt,ZB.MEAC3=RSt,ZB),lCd=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),FLJ=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var M={},ry=(M["0"]="f",M["160"]="h",M["133"]="h",M["134"]="h",M["135"]="h",M["136"]="h",M["137"]="h",M["264"]="h",M["266"]="h",M["138"]="h",M["298"]="h",M["299"]="h",M["304"]="h",M["305"]="h",M["214"]="h",M["216"]="h",M["374"]="h",M["375"]="h",M["140"]="a",M["141"]="a",M["327"]="sa",M["258"]="m",M["380"]="mac3",M["328"]="meac3",M["161"]="H",M["142"]="H",M["143"]="H",M["144"]="H",M["222"]="H",M["223"]="H",M["145"]="H",M["224"]="H",M["225"]="H",M["146"]="H",M["226"]="H",M["227"]="H",M["147"]="H",M["384"]= "H",M["376"]="H",M["385"]="H",M["377"]="H",M["149"]="A",M["261"]="M",M["381"]="MAC3",M["329"]="MEAC3",M["598"]="9",M["278"]="9",M["242"]="9",M["243"]="9",M["244"]="9",M["775"]="9",M["776"]="9",M["777"]="9",M["778"]="9",M["779"]="9",M["780"]="9",M["781"]="9",M["782"]="9",M["783"]="9",M["247"]="9",M["248"]="9",M["353"]="9",M["355"]="9",M["356"]="9",M["271"]="9",M["577"]="9",M["313"]="9",M["579"]="9",M["272"]="9",M["302"]="9",M["303"]="9",M["407"]="9",M["408"]="9",M["308"]="9",M["315"]="9",M["330"]= "9h",M["331"]="9h",M["332"]="9h",M["333"]="9h",M["334"]="9h",M["335"]="9h",M["336"]="9h",M["337"]="9h",M["338"]="so",M["600"]="o",M["250"]="o",M["251"]="o",M["774"]="o",M["194"]="*",M["195"]="*",M["220"]="*",M["221"]="*",M["196"]="*",M["197"]="*",M["279"]="(",M["280"]="(",M["317"]="(",M["318"]="(",M["273"]="(",M["274"]="(",M["357"]="(",M["358"]="(",M["275"]="(",M["359"]="(",M["360"]="(",M["276"]="(",M["583"]="(",M["584"]="(",M["314"]="(",M["585"]="(",M["561"]="(",M["277"]="(",M["361"]="(h",M["362"]= "(h",M["363"]="(h",M["364"]="(h",M["365"]="(h",M["366"]="(h",M["591"]="(h",M["592"]="(h",M["367"]="(h",M["586"]="(h",M["587"]="(h",M["368"]="(h",M["588"]="(h",M["562"]="(h",M["409"]="(",M["410"]="(",M["411"]="(",M["412"]="(",M["557"]="(",M["558"]="(",M["394"]="1",M["395"]="1",M["396"]="1",M["397"]="1",M["398"]="1",M["399"]="1",M["720"]="1",M["721"]="1",M["400"]="1",M["401"]="1",M["571"]="1",M["402"]="1",M["694"]="1h",M["695"]="1h",M["696"]="1h",M["697"]="1h",M["698"]="1h",M["699"]="1h",M["700"]="1h", M["701"]="1h",M["702"]="1h",M["703"]="1h",M["386"]="3",M["387"]="w",M["406"]="6",M["787"]="1",M["788"]="1",M["548"]="1e",M["549"]="1e",M["550"]="1e",M["551"]="1e",M["809"]="1e",M["810"]="1e",M["552"]="1e",M["811"]="1e",M["812"]="1e",M["553"]="1e",M["813"]="1e",M["814"]="1e",M["554"]="1e",M["815"]="1e",M["816"]="1e",M["555"]="1e",M["817"]="1e",M["818"]="1e",M["572"]="1e",M["556"]="1e",M["645"]="(",M["646"]="(",M["647"]="(",M["648"]="(",M["649"]="(",M["650"]="(",M["651"]="(",M["652"]="(",M["653"]="(", M["654"]="(",M["655"]="(",M["656"]="(",M["657"]="(",M["658"]="(",M["659"]="(",M["660"]="(",M["661"]="(",M["662"]="(",M["663"]="(",M["664"]="(",M["665"]="(",M["666"]="(",M["667"]="(",M["668"]="(",M["669"]="(",M["670"]="(",M["671"]="(",M["672"]="(",M["673"]="(",M["674"]="(h",M["675"]="(h",M["676"]="(h",M["677"]="(h",M["678"]="(h",M["679"]="(h",M["680"]="(h",M["681"]="(h",M["682"]="(h",M["683"]="(h",M["684"]="(h",M["685"]="(h",M["686"]="(h",M["687"]="(h",M["688"]="A",M["689"]="A",M["690"]="A",M["691"]= "MEAC3",M["773"]="i",M["806"]="I",M["805"]="I",M["829"]="9",M["830"]="9",M["831"]="9",M["832"]="9",M["833"]="9",M["834"]="9",M["835"]="9",M["836"]="9",M["892"]="9",M["893"]="9",M["837"]="9",M["838"]="9",M["839"]="9",M["840"]="9",M["841"]="(",M["842"]="(",M["843"]="(",M["844"]="(",M["845"]="(",M["846"]="(",M["847"]="(",M["848"]="(",M["894"]="(",M["895"]="(",M["849"]="(",M["850"]="(",M["851"]="(",M["852"]="(",M["865"]="9",M["866"]="9",M["867"]="9",M["868"]="9",M["869"]="9",M["870"]="9",M["871"]="9", M["872"]="9",M["896"]="9",M["897"]="9",M["873"]="9",M["874"]="9",M["875"]="9",M["876"]="9",M["877"]="(",M["878"]="(",M["879"]="(",M["880"]="(",M["881"]="(",M["882"]="(",M["883"]="(",M["884"]="(",M["898"]="(",M["899"]="(",M["885"]="(",M["886"]="(",M["887"]="(",M["888"]="(",M);var JH={},Owq=(JH.STEREO_LAYOUT_UNKNOWN=0,JH.STEREO_LAYOUT_LEFT_RIGHT=1,JH.STEREO_LAYOUT_TOP_BOTTOM=2,JH);var gL,bS;gL={};g.bz=(gL.auto=0,gL.tiny=144,gL.light=144,gL.small=240,gL.medium=360,gL.large=480,gL.hd720=720,gL.hd1080=1080,gL.hd1440=1440,gL.hd2160=2160,gL.hd2880=2880,gL.highres=4320,gL);bS={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var TC="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");XN.prototype.isHdr=function(){return this.Z==="smpte2084"||this.Z==="arib-std-b67"};v9.prototype.ij=function(){return this.containerType===2}; v9.prototype.isEncrypted=function(){return!!this.sS}; v9.prototype.IT=function(){return!!this.audio}; v9.prototype.fJ=function(){return!!this.video}; var x5=!1;g.O(A2,g.Ae);g.L=A2.prototype;g.L.appendBuffer=function(R,l,y){if(this.Bl.mJ()!==this.appendWindowStart+this.start||this.Bl.zl()!==this.appendWindowEnd+this.start||this.Bl.fA()!==this.timestampOffset+this.start)this.Bl.supports(1),this.Bl.N9(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Bl.IA(this.timestampOffset+this.start);this.Bl.appendBuffer(R,l,y)}; g.L.abort=function(){this.Bl.abort()}; g.L.remove=function(R,l){this.Bl.remove(R+this.start,l+this.start)}; g.L.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.L.clear=function(){this.Bl.clear()}; g.L.N9=function(R,l){this.appendWindowStart=R;this.appendWindowEnd=l}; g.L.Gy=function(){return this.timestampOffset+this.start}; g.L.mJ=function(){return this.appendWindowStart}; g.L.zl=function(){return this.appendWindowEnd}; g.L.IA=function(R){this.timestampOffset=R}; g.L.fA=function(){return this.timestampOffset}; g.L.uj=function(R){R=this.Bl.uj(R===void 0?!1:R);return fw(R,this.start,this.end)}; g.L.zc=function(){return this.Bl.zc()}; g.L.Lz=function(){return this.Bl.Lz()}; g.L.gk=function(){return this.Bl.gk()}; g.L.BL=function(){return this.Bl.BL()}; g.L.S8=function(){this.Bl.S8()}; g.L.cU=function(R){return this.Bl.cU(R)}; g.L.Jj=function(){return this.Bl.Jj()}; g.L.Ky=function(){return this.Bl.Ky()}; g.L.NK=function(R,l,y){this.Bl.NK(R,l,y)}; g.L.AC=function(R,l,y){this.Bl.AC(R,l,y)}; g.L.VP=function(R,l){return this.Bl.VP(R,l)}; g.L.supports=function(R){return this.Bl.supports(R)}; g.L.cY=function(){return this.Bl.cY()}; g.L.isView=function(){return!0}; g.L.Bx=function(){return this.Bl.Bx()?this.isActive:!1}; g.L.isLocked=function(){return this.zB&&!this.isActive}; g.L.S1=function(R){R=this.Bl.S1(R);R.vw=this.start+"-"+this.end;return R}; g.L.EJ=function(){return this.Bl.EJ()}; g.L.Ig=function(){return this.Bl.Ig()}; g.L.qv=function(){return this.Bl.qv()}; g.L.G4=function(){this.Bl.Xw(this.hQ);g.Ae.prototype.G4.call(this)};var Qp=!1;g.O(GA,g.Ae);g.L=GA.prototype;g.L.appendBuffer=function(R,l,y){this.sW=!1;y&&(this.wy=y);if(R.length){var f;((f=this.Fo)==null?0:f.appendBuffer)?this.Fo.appendBuffer(R):this.Fo?this.Fo.append(R):this.PE&&this.PE.webkitSourceAppend(this.id,R)}l&&(l.isEncrypted()&&(this.Dt=this.wy),l.type===3&&(this.t7=l),this.il.push(l.YG()),this.il.length>4&&this.il.shift());this.Lt&&(this.Lt.length>=2||R.length>1048576?delete this.Lt:this.Lt.push(R))}; g.L.abort=function(){try{this.Fo?this.Fo.abort():this.PE&&this.PE.webkitSourceAbort(this.id)}catch(l){if(K4c){var R=new g.JD("Error while abort the source buffer: "+l.name+", "+l.message);g.Tw(R)}}this.wy=this.t7=null}; g.L.remove=function(R,l,y){this.sW=!1;var f;if((f=this.Fo)==null?0:f.remove)y&&y({b:Co(this.uj()),s:R,e:l}),this.Fo.remove(R,l)}; g.L.removeAll=function(){this.remove(this.mJ(),this.zl())}; g.L.clear=function(){this.gk()||(this.abort(),this.removeAll(),this.Dt=this.wy=this.t7=null,this.appendWindowStart=this.timestampOffset=0,this.xu=VW([],[]),this.sW=!1,this.Lt=Kw?[]:void 0,this.qd=!0)}; g.L.mJ=function(){if(Qp&&this.fJ)return this.appendWindowStart;var R;return((R=this.Fo)==null?void 0:R.appendWindowStart)||0}; g.L.zl=function(){var R;return((R=this.Fo)==null?void 0:R.appendWindowEnd)||0}; g.L.N9=function(R,l){this.Fo&&(Qp&&this.fJ?(this.appendWindowStart=R,this.Fo.appendWindowEnd=l):R>this.mJ()?(this.Fo.appendWindowEnd=l,this.Fo.appendWindowStart=R):(this.Fo.appendWindowStart=R,this.Fo.appendWindowEnd=l))}; g.L.Gy=function(){return this.timestampOffset}; g.L.IA=function(R){Qp?this.timestampOffset=R:this.supports(1)&&(this.Fo.timestampOffset=R)}; g.L.fA=function(){return Qp?this.timestampOffset:this.supports(1)?this.Fo.timestampOffset:0}; g.L.uj=function(R){if(R===void 0?0:R)return this.sW||this.zc()||(this.xu=this.uj(!1),this.sW=!0),this.xu;try{return this.Fo?this.Fo.buffered:this.PE?this.PE.webkitSourceBuffered(this.id):VW([0],[Infinity])}catch(l){return VW([],[])}}; g.L.zc=function(){var R;return((R=this.Fo)==null?void 0:R.updating)||!1}; g.L.gk=function(){return this.qd}; g.L.BL=function(){return!this.qd&&this.zc()}; g.L.S8=function(){this.qd=!1}; g.L.cU=function(R){var l=R==null?void 0:R.H1;R=R==null?void 0:R.containerType;return!l&&!R||l===this.H1&&R===this.containerType}; g.L.Jj=function(){return this.wy}; g.L.Ky=function(){return this.Dt}; g.L.VP=function(R,l){return this.containerType!==R||this.H1!==l}; g.L.NK=function(R,l,y){if(this.containerType!==R||y&&this.VP(R,y))this.supports(4),ao()&&this.Fo.changeType(l),y&&(this.H1=y);this.containerType=R}; g.L.AC=function(R,l,y){this.containerType&&this.VP(R,l)&&ao()&&this.Fo.changeType(y);this.containerType=R;this.H1=l}; g.L.cY=function(){return this.t7}; g.L.isView=function(){return!1}; g.L.supports=function(R){switch(R){case 1:var l;return((l=this.Fo)==null?void 0:l.timestampOffset)!==void 0;case 0:var y;return!((y=this.Fo)==null||!y.appendBuffer);case 2:var f;return!((f=this.Fo)==null||!f.remove);case 3:var A,K;return!!(((A=this.Fo)==null?0:A.addEventListener)&&((K=this.Fo)==null?0:K.removeEventListener));case 4:return!(!this.Fo||!this.Fo.changeType);default:return!1}}; g.L.Bx=function(){return!this.zc()}; g.L.isLocked=function(){return!1}; g.L.S1=function(R){R.to=this.fA();R.up=this.zc();var l,y=((l=this.Fo)==null?void 0:l.appendWindowStart)||0,f;l=((f=this.Fo)==null?void 0:f.appendWindowEnd)||Infinity;R.aw=y.toFixed(3)+"-"+l.toFixed(3);return R}; g.L.Lz=function(){var R;return((R=this.Fo)==null?void 0:R.writeHead)||0}; g.L.EJ=function(){for(var R={},l=0;l=7&&eds(this,function(){g.h$(function(){DFj(R,R.getCurrentTime(),0)},500)}); return l}; g.L.seekTo=function(R){this.Tc()>0&&(pq&&qb<4&&(R=Math.max(.1,R)),this.setCurrentTime(R))}; g.L.KW=function(){if(!this.X&&this.z4)if(this.z4.J)try{var R;mA(this,{l:"mer",sr:(R=this.Xx)==null?void 0:R.Lf(),rs:h2(this.z4)});this.z4.clear();this.X=this.z4;this.z4=void 0}catch(l){R=new g.JD("Error while clearing Media Source in MediaElement: "+l.name+", "+l.message),g.Tw(R),this.stopVideo()}else this.stopVideo()}; g.L.stopVideo=function(){var R=this;if(!this.X){var l;(l=this.z4)==null||S_i(l);if(ymo){if(!this.L){var y=new Ee;y.then(void 0,function(){}); this.L=y;fLQ&&this.pause();g.h$(function(){R.L===y&&(iZ(R),y.resolve())},200)}}else iZ(this)}}; g.L.Dm=function(){var R=this.Wf();return lZ(R)&&this.getDuration()?Mw(R,this.getCurrentTime()):0}; g.L.CV=function(){var R=this.getDuration();return R===Infinity?1:R?this.Dm()/R:0}; g.L.S1=function(){try{var R=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:Co(this.gH(),",",3),vbu:Co(this.Wf()),vbs:Co(this.vN()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Tc(),vns:""+this.Sd(),vec:""+this.hJ(),vemsg:this.iO(),vvol:""+this.getVolume(),vdom:""+ +this.Mh(),vsrc:""+ +!!this.Yv(),vw:""+R.width,vh:""+R.height}}catch(l){return{}}}; g.L.hasError=function(){return this.hJ()>0}; g.L.addEventListener=function(R,l){this.Y.listen(R,l,!1,this);this.Iv(R)}; g.L.removeEventListener=function(R,l){this.Y.p_(R,l,!1,this)}; g.L.dispatchEvent=function(R){if(this.L&&R.type==="pause")return!1;if(Amk){var l,y=((l=R.Z)==null?void 0:l.timeStamp)||Infinity;l=y>performance.now()?y-Date.now()+performance.now():y;y=this.X||this.z4;if((y==null?0:y.gk())||l<=((y==null?void 0:y.D)||0)){var f;mA(this,{l:"mede",sr:(f=this.Xx)==null?void 0:f.Lf(),et:R.type});return!1}if(this.Qf)return mA(this,{l:"medes",et:R.type}),y&&R.type==="seeking"&&(y.D=performance.now(),this.Qf=!1),!1}return this.Y.dispatchEvent(R)}; g.L.XP=function(){this.D=!1}; g.L.mx=function(){this.D=!0;this.yQ(!0)}; g.L.HS=function(){this.D&&!this.kZ()&&this.yQ(!0)}; g.L.equals=function(R){return!!R&&R.al()===this.al()}; g.L.G4=function(){this.V&&this.removeEventListener("volumechange",this.HS);ymo&&iZ(this);g.p.prototype.G4.call(this)}; var ymo=!1,fLQ=!1,Amk=!1,gDj=!1;g.L=g.uZ.prototype;g.L.isPaused=function(){return g.V(this,4)}; g.L.isPlaying=function(){return g.V(this,8)&&!g.V(this,512)&&!g.V(this,64)&&!g.V(this,2)}; g.L.isOrWillBePlaying=function(){return g.V(this,8)&&!g.V(this,2)&&!g.V(this,1024)}; g.L.isCued=function(){return g.V(this,64)&&!g.V(this,8)&&!g.V(this,4)}; g.L.isBuffering=function(){return g.V(this,1)&&!g.V(this,2)}; g.L.isError=function(){return g.V(this,128)}; g.L.isSuspended=function(){return g.V(this,512)}; g.L.HK=function(){return g.V(this,64)&&g.V(this,4)}; g.L.toString=function(){return"PSt."+this.state.toString(16)}; var Vn={},Cc=(Vn.BUFFERING="buffering-mode",Vn.CUED="cued-mode",Vn.ENDED="ended-mode",Vn.PAUSED="paused-mode",Vn.PLAYING="playing-mode",Vn.SEEKING="seeking-mode",Vn.UNSTARTED="unstarted-mode",Vn);g.O(vs,g.p);g.L=vs.prototype;g.L.oL=function(){return this.L}; g.L.ze=function(){return this.slot}; g.L.NU=function(){return this.layout}; g.L.init=function(){var R=Cm(this.layout.clientMetadata,"metadata_type_video_length_seconds"),l=Cm(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");mL(this.layout.qU)&&Kh(this.Y$.get(),this.layout.layoutId,{wu:l,V4:R,listener:this,lR:this.Y4()});OLk(this.g7.get(),this);R=this.tJ;l=this.layout.layoutId;var y={lR:this.Y4()};R.Z.set(l,y);this.Cz()}; g.L.S4=function(){}; g.L.release=function(){mL(this.layout.qU)&&Gr(this.Y$.get(),this.layout.layoutId);iLj(this.g7.get(),this);this.tJ.Z.delete(this.layout.layoutId);this.tD()}; g.L.p8=function(){}; g.L.PC=function(){}; g.L.startRendering=function(R){no(zA(this));if(wT(this,R)){var l=this.Z;mx(l.params.Sa.aE.get(),!0)&&QNr(l,"p_sr",{});xN(this);this.wS(R);this.Y4()||this.U1(!1)}}; g.L.EF=function(R,l){if(l.layoutId===this.layout.layoutId){this.k$="rendering";this.X=this.RE.get().isMuted()||this.RE.get().getVolume()===0;this.AF("impression");this.AF("start");if(this.RE.get().isMuted()){jD(this,"mute");var y;R=((y=rT(this))==null?void 0:y.muteCommands)||[];zF(this.JF.get(),R,this.layout.layoutId)}if(this.RE.get().isFullscreen()){this.cE("fullscreen");var f;y=((f=rT(this))==null?void 0:f.fullscreenCommands)||[];zF(this.JF.get(),y,this.layout.layoutId)}this.Y4()||(f=this.aV.get(), f.L&&!f.X&&(f.J=!1,f.X=!0,f.actionType!=="ad_to_video"&&(vo("pbs",void 0,f.actionType),g.O1("finalize_all_timelines")&&ALr(f.actionType))));this.Az(1);this.aW(l);var A;l=((A=rT(this))==null?void 0:A.impressionCommands)||[];zF(this.JF.get(),l,this.layout.layoutId)}}; g.L.RZ=function(R,l,y){this.V={u$:3,n6:R==="load_timeout"?402:400,errorMessage:l.message};this.AF("error");var f;R=((f=rT(this))==null?void 0:f.errorCommands)||[];zF(this.JF.get(),R,this.layout.layoutId);this.Y4()||this.p$.E9(this.slot,this.layout,l,y)}; g.L.Ce=function(){if(this.k$==="rendering"){jD(this,"pause");var R,l=((R=rT(this))==null?void 0:R.pauseCommands)||[];zF(this.JF.get(),l,this.layout.layoutId);this.Az(2)}}; g.L.eN=function(){if(this.k$==="rendering"){jD(this,"resume");var R,l=((R=rT(this))==null?void 0:R.resumeCommands)||[];zF(this.JF.get(),l,this.layout.layoutId)}}; g.L.IH=function(R,l){l=l===void 0?!1:l;if(this.k$==="rendering"){var y={currentTimeSec:R,flush:l};oz(this.Z,"p_ip",y);iQ(this.OL,R*1E3,l);this.X||iQ(this.OL,R*1E3,l===void 0?!1:l);var f=this.e4();if(f){f/=1E3;if(R>=f*.25||l)this.AF("first_quartile"),oz(this.Z,"p_fq",y);if(R>=f*.5||l)this.AF("midpoint"),oz(this.Z,"p_sq",y);if(R>=f*.75||l)this.AF("third_quartile"),oz(this.Z,"p_tq",y);this.aE.get().G.U().experiments.EL("enable_progress_command_flush_on_kabuki")?Tu(this.Y,R*1E3,l):Tu(this.Y,R*1E3,MWY(this)? l:!1)}}}; g.L.J2=function(){var R;return((R=Io(this.fX.get(),1))==null?void 0:R.clientPlaybackNonce)||""}; g.L.xY=function(R,l){R.layoutId!==this.layout.layoutId?this.p$.E9(this.slot,R,new g1("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"):l()}; g.L.Tr=function(R,l,y){if(l.layoutId===this.layout.layoutId)switch(this.k$="not_rendering",this.layoutExitReason=void 0,this.Y4()||(R=y!=="normal"||this.position+1===this.D)&&this.U1(R),this.Q5(y),this.Az(0),y){case "abandoned":if(Pt(this.OL,"impression")){var f,A=((f=rT(this))==null?void 0:f.abandonCommands)||[];zF(this.JF.get(),A,this.layout.layoutId)}break;case "normal":f=((A=rT(this))==null?void 0:A.completeCommands)||[];zF(this.JF.get(),f,this.layout.layoutId);break;case "skipped":var K;f=((K= rT(this))==null?void 0:K.skipCommands)||[];zF(this.JF.get(),f,this.layout.layoutId)}}; g.L.Fm=function(){return this.layout.layoutId}; g.L.jF=function(){return this.V}; g.L.JD=function(){if(this.k$==="rendering"){this.OL.AF("active_view_measurable");var R,l=((R=rT(this))==null?void 0:R.activeViewMeasurableCommands)||[];zF(this.JF.get(),l,this.layout.layoutId)}}; g.L.Di=function(){if(this.k$==="rendering"){this.OL.AF("active_view_fully_viewable_audible_half_duration");var R,l=((R=rT(this))==null?void 0:R.activeViewFullyViewableAudibleHalfDurationCommands)||[];zF(this.JF.get(),l,this.layout.layoutId)}}; g.L.R6=function(){if(this.k$==="rendering"){this.OL.AF("active_view_viewable");var R,l=((R=rT(this))==null?void 0:R.activeViewViewableCommands)||[];zF(this.JF.get(),l,this.layout.layoutId)}}; g.L.yB=function(){if(this.k$==="rendering"){this.OL.AF("audio_audible");var R,l=((R=rT(this))==null?void 0:R.activeViewAudioAudibleCommands)||[];zF(this.JF.get(),l,this.layout.layoutId)}}; g.L.b7=function(){if(this.k$==="rendering"){this.OL.AF("audio_measurable");var R,l=((R=rT(this))==null?void 0:R.activeViewAudioMeasurableCommands)||[];zF(this.JF.get(),l,this.layout.layoutId)}}; g.L.U1=function(R){this.aV.get().U1(Cm(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,R,this.position,this.D,!1)}; g.L.onFullscreenToggled=function(R){if(this.k$==="rendering")if(R){this.cE("fullscreen");var l,y=((l=rT(this))==null?void 0:l.fullscreenCommands)||[];zF(this.JF.get(),y,this.layout.layoutId)}else this.cE("end_fullscreen"),l=((y=rT(this))==null?void 0:y.endFullscreenCommands)||[],zF(this.JF.get(),l,this.layout.layoutId)}; g.L.onVolumeChange=function(){if(this.k$==="rendering")if(this.RE.get().isMuted()){jD(this,"mute");var R,l=((R=rT(this))==null?void 0:R.muteCommands)||[];zF(this.JF.get(),l,this.layout.layoutId)}else jD(this,"unmute"),R=((l=rT(this))==null?void 0:l.unmuteCommands)||[],zF(this.JF.get(),R,this.layout.layoutId)}; g.L.R9=function(){}; g.L.W6=function(){}; g.L.rz=function(){}; g.L.AO=function(){}; g.L.UC=function(){}; g.L.cE=function(R){this.OL.cE(R,!this.X)}; g.L.AF=function(R){this.OL.AF(R,!this.X)}; g.L.Y4=function(){var R=Cm(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return R===void 0?(BR("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.aE.get().Y4(R)};g.O(gT,vs);g.L=gT.prototype;g.L.Cz=function(){}; g.L.tD=function(){var R=this.g7.get();R.aP===this&&(R.aP=null);this.timer.stop()}; g.L.p8=function(){this.timer.stop();vs.prototype.Ce.call(this)}; g.L.PC=function(){Cw(this);vs.prototype.eN.call(this)}; g.L.e4=function(){return Cm(this.NU().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.L.kG=function(R,l){var y=this;this.xY(R,function(){y.k$!=="rendering_stop_requested"&&(y.k$="rendering_stop_requested",y.layoutExitReason=l,NA(y,l),y.timer.stop())})}; g.L.J1=function(){var R=Date.now(),l=R-this.Cb;this.Cb=R;this.TU+=l;this.TU>=this.e4()?this.fT():(this.IH(this.TU/1E3),Vh(this,this.TU))}; g.L.Q5=function(){}; g.L.NP=function(){}; g.O(qA,gT);g.L=qA.prototype;g.L.gh=function(R){if(this.k$!=="not_rendering"){R=pw(this,R);var l=this.RE.get().getPresentingPlayerType()===2;this.k$==="rendering_start_requested"?l&&Rz(R)&&this.Ly():l?g.m2(R,2)?BR("Receive player ended event during MediaBreak",this.ze(),this.NU()):Ue(this,R):this.Vx()}}; g.L.wS=function(){tWY(this);dVs(this.RE.get());this.g7.get().aP=this;dh("pbp")||dh("pbs")||vo("pbp");dh("pbp","watch")||dh("pbs","watch")||vo("pbp",void 0,"watch");this.Ly()}; g.L.aW=function(R){this.aV.get();var l=Cm(R.clientMetadata,"metadata_type_ad_placement_config").kind,y=this.position===0;R=Cm(R.clientMetadata,"metadata_type_linked_in_player_layout_type");R={adBreakType:SD(l),adType:HRq(R)};var f=void 0;y?l!=="AD_PLACEMENT_KIND_START"&&(f="video_to_ad"):f="ad_to_ad";ba("ad_mbs",void 0,f);g.Xe(R,f);Cw(this)}; g.L.Vx=function(){this.Fk()}; g.L.fT=function(){l7q(this);this.Fk()}; g.O(t2,gT);g.L=t2.prototype;g.L.gh=function(R){this.k$!=="not_rendering"&&(R=pw(this,R),Ue(this,R))}; g.L.wS=function(){BR("Not used in SSAP")}; g.L.aW=function(){Cw(this)}; g.L.Vx=function(){BR("Not used in SSAP")}; g.L.fT=function(){l7q(this);this.p$.Z$(this.ze(),this.NU(),"normal")}; g.O(YN,t2);YN.prototype.kG=function(R,l){var y=this;this.xY(R,function(){Ko(y.L,l)&&(y.k$="rendering_stop_requested",y.layoutExitReason=l,NA(y,l),y.timer.stop())})}; YN.prototype.startRendering=function(R){no(zA(this));wT(this,R)&&(xN(this),this.g7.get().aP=this)};g.O(lg,vs);g.L=lg.prototype;g.L.Vx=function(){this.Fk()}; g.L.gh=function(R){if(this.k$!=="not_rendering"){R=pw(this,R);var l=this.RE.get().getPresentingPlayerType()===2;this.k$==="rendering_start_requested"?l&&Rz(R)&&this.Ly():!l||g.m2(R,2)?this.Fk():Ue(this,R)}}; g.L.Cz=function(){Cm(this.NU().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=Cm(this.NU().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.L.tD=function(){Cm(this.NU().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.eU){var R=this.context.Sa,l=this.eU,y=this.NU().layoutId;if(mx(R.aE.get(),!0)){var f={};R.MU("mccru",(f.cid=l,f.p_ac=y,f))}this.Fc.get().removeCueRange(this.eU)}this.eU=void 0;var A;(A=this.qb)==null||A.dispose();this.e6&&this.e6.dispose()}; g.L.wS=function(R){var l=MA(this.aE.get()),y=RT(this.aE.get());if(l&&y&&!this.Y4()){y=Cm(R.clientMetadata,"metadata_type_preload_player_vars");var f=this.aE.get();f=g.yx(f.G.U().experiments,"html5_preload_wait_time_secs");y&&this.e6&&this.e6.start(f*1E3)}A7j(this,R);tWY(this);l?(y=this.L_.get(),R=Cm(R.clientMetadata,"metadata_type_player_vars"),y.G.loadVideoByPlayerVars(R,!1,2)):JdT(this.L_.get(),Cm(R.clientMetadata,"metadata_type_player_vars"));var A;(A=this.qb)==null||A.start();l||this.L_.get().G.playVideo(2)}; g.L.aW=function(){var R;(R=this.qb)==null||R.stop();this.eU="adcompletioncuerange:"+this.NU().layoutId;this.Fc.get().addCueRange(this.eU,0x7ffffffffffff,0x8000000000000,!1,this,2,2);R=this.context.Sa;var l=this.eU,y=this.NU().layoutId;if(mx(R.aE.get(),!0)){var f={};R.MU("mccr",(f.cid=l,f.p_ac=y,f))}(this.adCpn=q_7(this))||BR("Media layout confirmed started, but ad CPN not set.");this.dc.get().oQ("onAdStart",this.adCpn);this.JH=Date.now()}; g.L.e4=function(){var R;return(R=Io(this.fX.get(),2))==null?void 0:R.Qg}; g.L.vI=function(){this.OL.cE("clickthrough")}; g.L.kG=function(R,l){var y=this;this.xY(R,function(){if(y.k$!=="rendering_stop_requested"){y.k$="rendering_stop_requested";y.layoutExitReason=l;NA(y,l);var f;(f=y.qb)==null||f.stop();y.e6&&y.e6.stop();K2J(y)}})}; g.L.onCueRangeEnter=function(R){if(R!==this.eU)BR("Received CueRangeEnter signal for unknown layout.",this.ze(),this.NU(),{cueRangeId:R});else{var l=this.context.Sa,y=this.NU().layoutId;if(mx(l.aE.get(),!0)){var f={};l.MU("mccre",(f.cid=R,f.p_ac=y,f))}this.Fc.get().removeCueRange(this.eU);this.eU=void 0;Nc(this.context.aE.get(),"html5_ssap_flush_at_stop_rendering")&&this.Y4()||(R=Cm(this.NU().clientMetadata,"metadata_type_video_length_seconds"),this.IH(R,!0),this.AF("complete"))}}; g.L.Q5=function(R){R!=="abandoned"&&this.dc.get().oQ("onAdComplete");this.dc.get().oQ("onAdEnd",this.adCpn)}; g.L.onCueRangeExit=function(){}; g.L.NP=function(R){this.k$==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&R>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.RE.get().UO(!0),this.IH(R))}; g.L.IH=function(R,l){vs.prototype.IH.call(this,R,l===void 0?!1:l);l=Date.now()-this.JH;var y=R*1E3,f={contentCpn:this.J2(),adCpn:q_7(this)};if(R-this.Pq>=5){var A=l=2||(this.zr.kG(this.layout,l),R=Nc(this.params.context.aE.get(),"html5_ssap_pass_transition_reason")&&l==="abandoned",this.Pc()&&!R&&(Nc(this.params.context.aE.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(l)||BR("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:l})),this.ZN.get().finishSegmentByCpn(this.layout.layoutId, Io(this.fX.get(),1).clientPlaybackNonce,Du(l,this.params.context.aE))),this.RE.get().removeListener(this),this.uM()&&GC(this.zr.oL())&&this.du.Tr(this.slot,this.layout,this.zr.oL().Z))}; g.L.N6=function(R,l,y){uaJ({cpn:R,uO:this.fX.get(),Ho:!0});this.NU().layoutId!==R||Nc(this.params.context.aE.get(),"html5_ssap_pass_transition_reason")&&y===5||(this.zr.oL().currentState<2&&(R=Zu(y,this.params.context.aE),R==="error"?this.du.E9(this.slot,this.layout,new g1("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:y},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):nZ(this.XR, this.layout,R)),Nc(this.params.context.aE.get(),"html5_ssap_exit_without_waiting_for_transition")||this.du.Tr(this.slot,this.layout,this.zr.oL().Z))};g.O(G3,g.p);g.L=G3.prototype;g.L.ze=function(){return this.slot}; g.L.NU=function(){return this.layout}; g.L.dU=function(){}; g.L.WA=function(){return this.Ep[this.Lh]}; g.L.DT=function(){return this.Lh}; g.L.p8=function(R,l){var y=this.WA();l.layoutId!==s2(y,R,l)?BR("pauseLayout for a PlayerBytes layout that is not currently active",R,l):y.p8()}; g.L.PC=function(R,l){var y=this.WA();l.layoutId!==s2(y,R,l)?BR("resumeLayout for a PlayerBytes layout that is not currently active",R,l):y.PC()}; g.L.Pt=function(R,l){var y=this.WA();c7q(this,R,l);Eii(y,R,l)&&this.vY(y.ze(),y.NU(),"skipped")}; g.L.k5=function(R,l){var y=this.WA();W2Y(this);L2Q(y,R,l)&&(R=ORJ(this,y,R,l),R!==void 0&&(this.Y4()?BR("Should not happen. Should delete"):Pts(this,y.ze(),y.NU(),R)))}; g.L.YD=function(R,l){var y=Object.assign({},aT(this),{layoutId:l.layoutId}),f=y.layoutId,A=y.Ho;if(y.lR){var K={};H9(y.uO,"wrse",(K.ec=f,K.is=A,K.ctp=B9(f),K))}Wl(this.xH,R,l)}; g.L.EF=function(R,l){var y;(y=this.WA())==null||y.EF(R,l)}; g.L.Tr=function(R,l,y){l.layoutId===this.NU().layoutId&&(this.NO=!1,GF(this.BZ(),this));var f;(f=this.WA())==null||f.Tr(R,l,y)}; g.L.NP=function(R){var l;(l=this.WA())==null||l.NP(R)}; g.L.xT=function(R,l,y){this.DT()===-1&&(this.callback.EF(this.slot,this.layout),this.Lh++);var f=this.WA();f?(f.RZ(R,l,y),this.Y4()&&this.callback.E9(this.slot,this.layout,l,y)):BR("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.DT()),layoutId:this.NU().layoutId})}; g.L.onFullscreenToggled=function(R){var l;(l=this.WA())==null||l.onFullscreenToggled(R)}; g.L.R9=function(R){var l;(l=this.WA())==null||l.R9(R)}; g.L.rz=function(R){var l;(l=this.WA())==null||l.rz(R)}; g.L.onVolumeChange=function(){var R;(R=this.WA())==null||R.onVolumeChange()}; g.L.dB=function(R,l,y){Ld(this.xH,R,l,y)}; g.L.Ix=function(R){R.startRendering(R.NU())}; g.L.init=function(){var R=Cm(this.NU().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");R&&(R.current=this);if(this.Ep.length<1)throw new q("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.Ep.length)});if(R=Cm(this.NU().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))R.current=this;R=g.u(this.Ep);for(var l=R.next();!l.done;l=R.next())l=l.value,l.init(),kUc(this.xH,this.slot,l.NU()),DeT(this.xH,this.slot,l.NU()); if(this.Y4())for(this.fX.get().addListener(this),ED9(hsY(this),this.fX.get()),R=hsY(this),R=g.u(R),l=R.next();!l.done;l=R.next())this.BG(l.value)}; g.L.BG=function(R){var l=Cm(R.clientMetadata,"metadata_type_player_vars");l?(R.layoutType!=="LAYOUT_TYPE_MEDIA"&&BR("Non-video ad contains playerVars",this.slot,R),this.L_.get().addPlayerResponseForAssociation({playerVars:l})):(R=nik(R),this.L_.get().addPlayerResponseForAssociation({aR:R}))}; g.L.release=function(){var R=Cm(this.NU().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");R&&(R.current=null);if(R=Cm(this.NU().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))R.current=null;R=g.u(this.Ep);for(var l=R.next();!l.done;l=R.next())l=l.value,Z69(this.xH,this.slot,l.NU()),l.release();this.Y4()&&(this.fX.get().removeListener(this),WFs())}; g.L.xY=function(R){return R.layoutId!==this.NU().layoutId?(this.callback.E9(this.ze(),R,new g1("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.NU().layoutId+("and LayoutType: "+this.NU().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.L.vx=function(){this.RE.get().addListener(this);Kd(this.BZ(),this)}; g.L.gh=function(R){if(R.state.isError()){var l,y;this.xT((l=R.state.WE)==null?void 0:l.errorCode,new g1("There was a player error during this media layout.",{playerErrorCode:(y=R.state.WE)==null?void 0:y.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(l=this.WA())&&l.gh(R)}; g.L.Y4=function(){var R=Cm(this.ze().clientMetadata,"metadata_type_eligible_for_ssap");return R===void 0?(BR("Expected SSAP eligibility in PlayerBytes slots",this.ze(),this.NU()),!1):this.aE.get().Y4(R)}; g.L.W6=function(){}; g.L.nM=function(){}; g.L.F0=function(){}; g.L.QT=function(){}; g.L.yq=function(){}; g.L.bO=function(){}; g.L.Cs=function(){}; g.L.eJ=function(){}; g.L.SY=function(){}; g.L.ZK=function(){}; g.L.FJ=function(){}; g.L.AO=function(){}; g.L.UC=function(){}; g.O(mw,G3);g.L=mw.prototype;g.L.IX=function(R,l,y){this.vY(R,l,y)}; g.L.Tv=function(R,l){this.vY(R,l,"error")}; g.L.vY=function(R,l,y){var f=this;iRi(this,R,l,y,function(){Bf(f,f.DT()+1)})}; g.L.startRendering=function(R){this.xY(R)&&(this.vx(),kbk(this.aV.get()),q0T(this.aE.get())||dVs(this.RE.get()),this.DT()===-1&&Bf(this,this.DT()+1))}; g.L.kG=function(R,l){var y=this;this.NO=!0;this.DT()===this.Ep.length?this.callback.Tr(this.slot,this.layout,l):(R=this.WA(),R.kG(R.NU(),l),this.qG=function(){y.callback.Tr(y.slot,y.layout,l)}); this.RE.get().G.KR();JdT(this.L_.get(),{});R=AB(this.RE.get(),1);R.isPaused()&&!g.V(R,2)&&this.RE.get().playVideo();this.RE.get().removeListener(this);this.NO&&uss(this)}; g.L.N6=function(){}; g.L.zG=function(){}; g.L.Z$=function(){}; g.O(oT,G3);g.L=oT.prototype;g.L.IX=function(R,l,y){R=Object.assign({},aT(this),{layoutId:l.layoutId,layoutExitReason:y});l=R.layoutId;y=R.layoutExitReason;var f={};H9(R.uO,"prse",(f.xc=l,f.ler=y,f.ctp=B9(l),f))}; g.L.Tv=function(){BR("onSubLayoutError in SSAP")}; g.L.vY=function(){BR("exitSubLayoutAndPlayNext in SSAP")}; g.L.WA=function(){return this.GD}; g.L.DT=function(){var R=this;return this.Ep.findIndex(function(l){var y;return l.NU().layoutId===((y=R.GD)==null?void 0:y.NU().layoutId)})}; g.L.Ix=function(R){sX(this.GD===void 0,"replacing another adapter");this.GD=R;R.startRendering(R.NU())}; g.L.dB=function(R,l,y){Ld(this.xH,R,l,y);var f;sX(l.layoutId===((f=this.GD)==null?void 0:f.NU().layoutId),"currentAdapter does not match exiting layout",{slot:R?"slot: "+R.slotType:"",subLayout:al(l)})&&(this.GD=void 0)}; g.L.release=function(){G3.prototype.release.call(this);sX(this.GD===void 0,"currentAdapter is still active during release");this.GD=void 0}; g.L.Pc=function(){return this.RE.get().getPresentingPlayerType()===2}; g.L.kG=function(R,l){function y(){h6(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(l)||BR("Composite stopRendering: Unexpected layout exit reason",this.slot,R,{layoutExitReason:l}))} function f(){this.GD&&cf(this,this.GD,l);if(this.Pc()&&(!h6(this)||l!=="abandoned")){y.call(this);var K;var G=((K=this.fX.get().G.getVideoData())==null?void 0:K.clientPlaybackNonce)||"";K=Io(this.fX.get(),1).clientPlaybackNonce;this.ZN.get().finishSegmentByCpn(G,K,Du(l,this.aE))}F2i(this,l)} function A(){if(this.GD){var K=this.GD;K.oL().currentState<2&&K.kG(K.NU(),l);K=h6(this)&&l==="abandoned";this.Pc()&&!K&&(y.call(this),this.ZN.get().finishSegmentByCpn(this.GD.NU().layoutId,Io(this.fX.get(),1).clientPlaybackNonce,Du(l,this.aE)))}} sX(R.layoutId===this.NU().layoutId,"StopRendering for wrong layout")&&Ko(this.aS.X,l)&&(this.uM()?f.call(this):A.call(this))}; g.L.Tr=function(R,l,y){G3.prototype.Tr.call(this,R,l,y);l.layoutId===this.NU().layoutId&&this.RE.get().removeListener(this)}; g.L.J2=function(){return Io(this.fX.get(),1).clientPlaybackNonce}; g.L.N6=function(R,l,y){uaJ(Object.assign({},aT(this),{cpn:R}));if(!h6(this)||y!==5)if(this.uM()){if(this.GD&&this.GD.NU().layoutId!==l){var f=this.GD.NU().layoutId;f!==R&&BR("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:f,exitingCpn:R,enteringCpn:l});R=Zu(y,this.aE);cf(this,this.GD,R)}else this.GD&&BR("onClipExited: active layout is entering again");l===this.J2()&&$Lr(this,y)}else{if(this.GD&&this.GD.NU().layoutId===R)QlY(this,this.GD,y);else{var A;BR("Exiting cpn does not match active cpn", this.slot,(f=this.GD)==null?void 0:f.NU(),{exitingCpn:R,transitionReason:y,activeCpn:(A=this.GD)==null?void 0:A.NU().layoutId})}l===this.J2()&&(this.GD!==void 0&&(BR("active adapter is not properly exited",this.slot,this.layout,{activeLayout:al(this.GD.NU())}),QlY(this,this.GD,y)),$Lr(this,y),F2i(this,this.aS.X.Z))}}; g.L.uM=function(){return Nc(this.aE.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.L.startRendering=function(R){this.xY(R)&&(R=this.aS,sX(R.Z===1,"tickStartRendering: state is not initial"),R.Z=2,this.vx())}; g.L.zG=function(R){P1j(Object.assign({},aT(this),{cpn:R}));var l=this.Ep.find(function(y){return y.NU().layoutId===R}); l?(this.aS.Z!==2&&(ayi(this.bj,this.slot.slotId),sX(this.aS.Z===2,"Expect started"),this.callback.EF(this.slot,this.layout)),this.Ix(l),Wl(this.xH,this.slot,l.NU())):es9(this,R)}; g.L.Pt=function(R,l){c7q(this,R,l);var y=this.WA();y?Eii(y,R,l)&&bRY(this,"skipped"):XRs(this,"onSkipRequested")}; g.L.k5=function(R,l){var y;a:{if(y=this.WA()){if(W2Y(this),L2Q(y,R,l)&&(R=ORJ(this,y,R,l),R!==void 0)){y={jW:y,RQS:this.Ep[R]};break a}}else XRs(this,"SkipWithAdPodSkip");y=void 0}if(R=y)y=R.jW,l=R.RQS,R=y.NU().layoutId,this.uM()?cf(this,y,"skipped"):y.kG(y.NU(),"skipped"),y=l.NU().layoutId,this.ZN.get().finishSegmentByCpn(R,y,Du("skipped",this.aE))}; g.L.YD=function(){BR("Not used in html5_ssap_fix_layout_exit")}; g.L.gh=function(R){var l;(l=this.WA())==null||l.gh(R)}; g.L.xT=function(){BR("Not used in html5_ssap_fix_layout_exit")}; g.L.Z$=function(R,l,y){var f;if(((f=this.WA())==null?void 0:f.NU().layoutId)!==l.layoutId)return void BR("requestToExitSubLayout: wrong layout");bRY(this,y)};g.O(E2,g.p);g.L=E2.prototype;g.L.ze=function(){return this.zr.ze()}; g.L.NU=function(){return this.zr.NU()}; g.L.init=function(){var R=Cm(this.NU().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");R&&(R.current=this);this.Cz()}; g.L.Cz=function(){this.zr.init()}; g.L.release=function(){var R=Cm(this.NU().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");R&&(R.current=null);this.tD()}; g.L.tD=function(){this.zr.release()}; g.L.p8=function(){this.zr.p8()}; g.L.PC=function(){this.zr.PC()}; g.L.Pt=function(R,l){BR("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.ze(),this.NU(),{requestingSlot:R,requestingLayout:l})}; g.L.startRendering=function(R){R.layoutId!==this.NU().layoutId?this.callback.E9(this.ze(),R,new g1("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.NU().layoutId+("and LayoutType: "+this.NU().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.RE.get().addListener(this),Kd(this.BZ(),this),kbk(this.aV.get()),q0T(this.aE.get())||dVs(this.RE.get()),this.zr.startRendering(R))}; g.L.kG=function(R,l){this.NO=!0;this.zr.kG(R,l);this.RE.get().G.KR();JdT(this.L_.get(),{});R=AB(this.RE.get(),1);R.isPaused()&&!g.V(R,2)&&this.RE.get().playVideo();this.RE.get().removeListener(this);this.NO&&this.zr.Vx()}; g.L.EF=function(R,l){this.zr.EF(R,l)}; g.L.Tr=function(R,l,y){l.layoutId===this.NU().layoutId&&(this.NO=!1,GF(this.BZ(),this));this.zr.Tr(R,l,y);l.layoutId===this.NU().layoutId&&Hf(this.aV.get())}; g.L.NP=function(R){this.zr.NP(R)}; g.L.gh=function(R){if(R.state.isError()){var l,y;this.xT((l=R.state.WE)==null?void 0:l.errorCode,new g1("There was a player error during this media layout.",{playerErrorCode:(y=R.state.WE)==null?void 0:y.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.zr.gh(R)}; g.L.xT=function(R,l,y){this.zr.RZ(R,l,y)}; g.L.onFullscreenToggled=function(R){this.zr.onFullscreenToggled(R)}; g.L.R9=function(R){this.zr.R9(R)}; g.L.rz=function(R){this.zr.rz(R)}; g.L.onVolumeChange=function(){this.zr.onVolumeChange()}; g.L.W6=function(){}; g.L.nM=function(){}; g.L.F0=function(){}; g.L.QT=function(){}; g.L.yq=function(){}; g.L.bO=function(){}; g.L.Cs=function(){}; g.L.eJ=function(){}; g.L.SY=function(){}; g.L.ZK=function(){}; g.L.FJ=function(){}; g.L.AO=function(){}; g.L.UC=function(){};g.L=Wf.prototype;g.L.ze=function(){return this.slot}; g.L.NU=function(){return this.layout}; g.L.init=function(){this.j_.get().addListener(this);this.RE.get().addListener(this);var R=Cm(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var l=Cm(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.Y){var y=this.j_.get().z7.slice(-1)[0];y!==void 0&&(R=y.startSecs*1E3,l=(y.startSecs+y.G9)*1E3)}this.S4(R,l);var f;y=(f=this.fX.get().GO)==null?void 0:f.clientPlaybackNonce;f=this.layout.e1.adClientDataEntry;LZ(this.g7.get(),{daiStateTrigger:{filledAdsDurationMs:l-R,contentCpn:y, adClientData:f}});var A=this.j_.get();A=r7Z(A.L,R,l);A!==null&&(LZ(this.g7.get(),{daiStateTrigger:{filledAdsDurationMs:A-R,contentCpn:y,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:f}}),this.ZN.get().kY(A,l))}; g.L.release=function(){this.tD();this.j_.get().removeListener(this);this.RE.get().removeListener(this)}; g.L.startRendering=function(){this.wS();this.callback.EF(this.slot,this.layout)}; g.L.kG=function(R,l){this.Kk(l);this.driftRecoveryMs!==null&&(O2(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(viq(this)-Cm(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.RE.get().G.Ql()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.Tr(this.slot,this.layout,l)}; g.L.Q0=function(){return!1}; g.L.MJ=function(R){var l=Cm(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),y=Cm(this.layout.clientMetadata,"metadata_type_layout_exit_ms");R*=1E3;if(l<=R&&R0&&Ob(this.Z(),l)}; g.L.F0=function(R){this.J.delete(R.slotId);for(var l=[],y=g.u(this.DL.values()),f=y.next();!f.done;f=y.next()){f=f.value;var A=f.trigger;A instanceof hG&&A.triggeringSlotId===R.slotId&&l.push(f)}l.length>0&&Ob(this.Z(),l)}; g.L.QT=function(R){for(var l=[],y=g.u(this.DL.values()),f=y.next();!f.done;f=y.next()){f=f.value;var A=f.trigger;A instanceof AG&&A.slotType===R.slotType&&A.Z!==R.slotId&&l.push(f)}l.length>0&&Ob(this.Z(),l)}; g.L.yq=function(R){this.L.add(R.slotId);for(var l=[],y=g.u(this.DL.values()),f=y.next();!f.done;f=y.next())f=f.value,f.trigger instanceof Bp&&R.slotId===f.trigger.triggeringSlotId&&l.push(f);l.length>0&&Ob(this.Z(),l)}; g.L.bO=function(R){this.L.delete(R.slotId);this.Y.add(R.slotId);for(var l=[],y=g.u(this.DL.values()),f=y.next();!f.done;f=y.next())if(f=f.value,f.trigger instanceof Hp)R.slotId===f.trigger.triggeringSlotId&&l.push(f);else if(f.trigger instanceof g5){var A=f.trigger;R.slotId===A.slotId&&this.X.has(A.triggeringLayoutId)&&l.push(f)}l.length>0&&Ob(this.Z(),l)}; g.L.Cs=function(R){for(var l=[],y=g.u(this.DL.values()),f=y.next();!f.done;f=y.next())f=f.value,f.trigger instanceof nW&&R.slotId===f.trigger.triggeringSlotId&&l.push(f);l.length>0&&Ob(this.Z(),l)}; g.L.eJ=function(R){for(var l=[],y=g.u(this.DL.values()),f=y.next();!f.done;f=y.next())f=f.value,f.trigger instanceof mV&&R.slotId===f.trigger.triggeringSlotId&&l.push(f);l.length>0&&Ob(this.Z(),l)}; g.L.SY=function(R,l){this.D.add(l.layoutId)}; g.L.ZK=function(R,l){this.D.delete(l.layoutId)}; g.L.EF=function(R,l){this.X.add(l.layoutId);for(var y=[],f=g.u(this.DL.values()),A=f.next();!A.done;A=f.next())if(A=A.value,A.trigger instanceof Vq)l.layoutId===A.trigger.triggeringLayoutId&&y.push(A);else if(A.trigger instanceof fW){var K=A.trigger;R.slotType===K.slotType&&l.layoutType===K.layoutType&&l.layoutId!==K.Z&&y.push(A)}else A.trigger instanceof g5&&(K=A.trigger,l.layoutId===K.triggeringLayoutId&&this.Y.has(K.slotId)&&y.push(A));y.length>0&&Ob(this.Z(),y)}; g.L.Tr=function(R,l,y){this.X.delete(l.layoutId);R=[];for(var f=g.u(this.DL.values()),A=f.next();!A.done;A=f.next())if(A=A.value,A.trigger instanceof qB&&l.layoutId===A.trigger.triggeringLayoutId&&R.push(A),A.trigger instanceof CZ){var K=A.trigger;l.layoutId===K.triggeringLayoutId&&K.Z.includes(y)&&R.push(A)}R.length>0&&Ob(this.Z(),R)}; g.L.FJ=function(){}; g.L.dN=function(){this.Y.clear()}; g.L.fm=function(){};g.O(fN,g.p);fN.prototype.OU=function(R,l,y,f){if(this.DL.has(l.triggerId))throw new q("Tried to register duplicate trigger for slot.");if(!(l instanceof Z5))throw new q("Incorrect TriggerType: Tried to register trigger of type "+l.triggerType+" in CloseRequestedTriggerAdapter");this.DL.set(l.triggerId,new Wp(R,l,y,f))}; fN.prototype.So=function(R){this.DL.delete(R.triggerId)};g.O(KN,g.p);KN.prototype.OU=function(R,l,y,f){if(this.DL.has(l.triggerId))throw new q("Tried to register duplicate trigger for slot.");if(!(l instanceof D5||l instanceof Gc))throw new q("Incorrect TriggerType: Tried to register trigger of type "+l.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.DL.set(l.triggerId,new Wp(R,l,y,f))}; KN.prototype.So=function(R){this.DL.delete(R.triggerId)}; KN.prototype.dN=function(R){for(var l=[],y=l.push,f=y.apply,A=[],K=g.u(this.DL.values()),G=K.next();!G.done;G=K.next())G=G.value,G.trigger instanceof D5&&G.trigger.Z0===R&&A.push(G);f.call(y,l,g.ci(A));y=l.push;f=y.apply;A=[];K=g.u(this.DL.values());for(G=K.next();!G.done;G=K.next())G=G.value,G.trigger instanceof Gc&&G.trigger.Z!==R&&A.push(G);f.call(y,l,g.ci(A));l.length&&Ob(this.Z(),l)}; KN.prototype.fm=function(R){for(var l=[],y=l.push,f=y.apply,A=[],K=g.u(this.DL.values()),G=K.next();!G.done;G=K.next()){G=G.value;var B=G.trigger;B instanceof Gc&&B.Z===R&&A.push(G)}f.call(y,l,g.ci(A));l.length&&Ob(this.Z(),l)};g.O(G5,g.p);g.L=G5.prototype;g.L.OU=function(R,l,y,f){if(this.DL.has(l.triggerId))throw new q("Tried to register duplicate trigger for slot.");var A="adtriggercuerange:"+l.triggerId;if(l instanceof lk)t6r(this,R,l,y,f,A,l.Z.start,l.Z.end,l.Z0,l.visible);else if(l instanceof J6)t6r(this,R,l,y,f,A,0x7ffffffffffff,0x8000000000000,l.Z0,l.visible);else throw new q("Incorrect TriggerType: Tried to register trigger of type "+l.triggerType+" in CueRangeTriggerAdapter");}; g.L.So=function(R){var l=this.DL.get(R.triggerId);l&&this.Fc.get().removeCueRange(l.cueRangeId);this.DL.delete(R.triggerId)}; g.L.onCueRangeEnter=function(R){var l=Yq9(this,R);if(l&&(l=this.DL.get(l)))if(g.V(AB(this.RE.get()),32))this.Z.add(l.cueRangeId);else{var y=l==null?void 0:l.y9.trigger;if(y instanceof lk||y instanceof J6){if(mx(this.context.aE.get())){var f=l.y9.slot,A=l.y9.layout,K={};this.context.Sa.MU("cre",(K.ca=l.y9.category,K.tt=y.triggerType,K.st=f.slotType,K.lt=A==null?void 0:A.layoutType,K.cid=R,K))}Ob(this.X(),[l.y9])}}}; g.L.onCueRangeExit=function(R){(R=Yq9(this,R))&&(R=this.DL.get(R))&&this.Z.delete(R.cueRangeId)}; g.L.gh=function(R){if(nR(R,16)<0){R=g.u(this.Z);for(var l=R.next();!l.done;l=R.next())this.onCueRangeEnter(l.value,!0);this.Z.clear()}}; g.L.nM=function(){}; g.L.F0=function(){}; g.L.QT=function(){}; g.L.yq=function(){}; g.L.bO=function(){}; g.L.Cs=function(){}; g.L.eJ=function(){}; g.L.SY=function(){}; g.L.ZK=function(){}; g.L.EF=function(){}; g.L.Tr=function(){}; g.L.FJ=function(){}; g.L.NP=function(){}; g.L.onFullscreenToggled=function(){}; g.L.R9=function(){}; g.L.W6=function(){}; g.L.rz=function(){}; g.L.onVolumeChange=function(){}; g.L.AO=function(){}; g.L.UC=function(){};g.O(a0,g.p);g.L=a0.prototype; g.L.OU=function(R,l,y,f){if(this.X.has(l.triggerId)||this.L.has(l.triggerId))throw new q("Tried to re-register the trigger.");R=new Wp(R,l,y,f);if(R.trigger instanceof RS)this.X.set(R.trigger.triggerId,R);else if(R.trigger instanceof t6)this.L.set(R.trigger.triggerId,R);else throw new q("Incorrect TriggerType: Tried to register trigger of type "+R.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.X.has(R.trigger.triggerId)&&R.slot.slotId===this.Z&&Ob(this.Y(),[R])}; g.L.So=function(R){this.X.delete(R.triggerId);this.L.delete(R.triggerId)}; g.L.dU=function(R){R=R.slotId;if(this.Z!==R){var l=[];this.Z!=null&&l.push.apply(l,g.ci(M6J(this.L,this.Z)));R!=null&&l.push.apply(l,g.ci(M6J(this.X,R)));this.Z=R;l.length&&Ob(this.Y(),l)}}; g.L.N6=function(){}; g.L.zG=function(){};g.O(s$,g.p);g.L=s$.prototype;g.L.OU=function(R,l,y,f){if(this.DL.has(l.triggerId))throw new q("Tried to register duplicate trigger for slot.");if(!(l instanceof KW))throw new q("Incorrect TriggerType: Tried to register trigger of type "+l.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.DL.set(l.triggerId,new Wp(R,l,y,f))}; g.L.So=function(R){this.DL.delete(R.triggerId)}; g.L.EF=function(){}; g.L.Tr=function(){}; g.L.nM=function(){}; g.L.F0=function(){}; g.L.QT=function(){}; g.L.yq=function(){}; g.L.bO=function(){}; g.L.Cs=function(){}; g.L.eJ=function(){}; g.L.SY=function(){}; g.L.ZK=function(){}; g.L.FJ=function(){};g.O(B5,g.p);g.L=B5.prototype;g.L.FJ=function(R,l){for(var y=[],f=g.u(this.DL.values()),A=f.next();!A.done;A=f.next()){A=A.value;var K=A.trigger;K.opportunityType===R&&(K.associatedSlotId&&K.associatedSlotId!==l||y.push(A))}y.length&&Ob(this.Z(),y)}; g.L.OU=function(R,l,y,f){if(this.DL.has(l.triggerId))throw new q("Tried to register duplicate trigger for slot.");if(!(l instanceof a0Y))throw new q("Incorrect TriggerType: Tried to register trigger of type "+l.triggerType+" in OpportunityEventTriggerAdapter");this.DL.set(l.triggerId,new Wp(R,l,y,f))}; g.L.So=function(R){this.DL.delete(R.triggerId)}; g.L.nM=function(){}; g.L.F0=function(){}; g.L.QT=function(){}; g.L.yq=function(){}; g.L.bO=function(){}; g.L.Cs=function(){}; g.L.eJ=function(){}; g.L.SY=function(){}; g.L.ZK=function(){}; g.L.EF=function(){}; g.L.Tr=function(){};g.O(H5,g.p);g.L=H5.prototype;g.L.OU=function(R,l,y,f){R=new Wp(R,l,y,f);if(l instanceof YP||l instanceof yI||l instanceof MB||l instanceof aS||l instanceof a3Y){if(this.DL.has(l.triggerId))throw new q("Tried to register duplicate trigger for slot.");this.DL.set(l.triggerId,R)}else throw new q("Incorrect TriggerType: Tried to register trigger of type "+l.triggerType+" in PrefetchTriggerAdapter");}; g.L.So=function(R){this.DL.delete(R.triggerId)}; g.L.nM=function(R){var l=R.slotFulfillmentTriggers.find(function(y){return y instanceof YP}); l&&(nN(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",l.breakDurationMs,new Set([R.slotId]),!0),Pf(this.g7.get(),"ads_css","sid."+R.slotId+";bd."+l.breakDurationMs))}; g.L.F0=function(){}; g.L.QT=function(){}; g.L.yq=function(){}; g.L.bO=function(){}; g.L.Cs=function(){}; g.L.eJ=function(){}; g.L.SY=function(){}; g.L.ZK=function(){}; g.L.EF=function(){}; g.L.Tr=function(){}; g.L.FJ=function(){}; g.L.Q0=function(R){var l=this;if(!this.Z)return BR("Unexpected cue break before fetch instructions are available"),!1;this.X&&this.X.stop();this.Y&&g.Cz(this.Y);var y=fyJ(this,R);if(!y){var f=ly7(this),A=this.V!==void 0&&Date.now()<=this.V+1E4;Pf(this.g7.get(),"ads_ncfs","cid."+R.identifier+";cd."+R.G9.toFixed(3)+";ccs."+A+";cfa."+this.L+";bdc."+f.length+";"+f.slice(0,6).map(function(K){return";bd."+K}).join("")); return A&&this.L&&f.length===0&&!this.J?this.J=!0:!1}(new g.Vg(function(){var K=y.trigger,G=y.slot;nN(l,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",K.breakDurationMs,new Set,!0);nN(l,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",K.breakDurationMs,new Set,!1);for(var B=0,H=g.u(l.DL.values()),n=H.next();!n.done;n=H.next()){n=n.value;var m=n.trigger;n.slot.slotId===G.slotId&&(l.DL.delete(m.triggerId),B++)}Pf(l.g7.get(),"ads_csf","sid."+G.slotId+";bd."+K.breakDurationMs+ ";dt."+B)},10)).start(); return!0}; g.L.MJ=function(){}; g.L.dN=function(R){this.J=this.L=!1;this.V=Date.now();this.Z&&this.Z.contentCpn!==R?(BR("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:R,fetchInstructionsCpn:this.Z.contentCpn}),ml(this)):yhc(this)}; g.L.fm=function(R){this.Z&&this.Z.contentCpn!==R&&BR("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:R,fetchInstructionsCpn:this.Z.contentCpn},!0);ml(this)}; g.L.qJ=function(R){var l=this;if(this.Z)BR("Unexpected multiple fetch instructions for the current content");else{this.Z=R;R=K5J(R);this.X=new g.Vg(function(){yhc(l)},R?R:6E5); this.X.start();this.Y=new g.Vg(function(){l.Z&&(l.X&&(l.X.stop(),l.X.start()),R6j(l,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},Ah9(this.Z)); R=this.RE.get().getCurrentTimeSec(1,!1);for(var y=g.u(this.j_.get().z7),f=y.next();!f.done;f=y.next())f=f.value,Pf(this.g7.get(),"nocache","ct."+Date.now()+";cmt."+R+";d."+f.G9.toFixed(3)+";tw."+(f.startSecs-R)+";cid."+f.identifier+";")}}; g.L.G4=function(){g.p.prototype.G4.call(this);ml(this)};g.O(o0,g.p);g.L=o0.prototype;g.L.OU=function(R,l,y,f){if(this.DL.has(l.triggerId))throw new q("Tried to register duplicate trigger for slot.");if(!(l instanceof E4))throw new q("Incorrect TriggerType: Tried to register trigger of type "+l.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.DL.set(l.triggerId,new Wp(R,l,y,f));R=this.Z.has(l.triggeringLayoutId)?this.Z.get(l.triggeringLayoutId):new Set;R.add(l);this.Z.set(l.triggeringLayoutId,R)}; g.L.So=function(R){this.DL.delete(R.triggerId);if(!(R instanceof E4))throw new q("Incorrect TriggerType: Tried to unregister trigger of type "+R.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var l=this.X.get(R.triggerId);l&&(l.dispose(),this.X.delete(R.triggerId));if(l=this.Z.get(R.triggeringLayoutId))l.delete(R),l.size===0&&this.Z.delete(R.triggeringLayoutId)}; g.L.nM=function(){}; g.L.F0=function(){}; g.L.QT=function(){}; g.L.yq=function(){}; g.L.bO=function(){}; g.L.Cs=function(){}; g.L.eJ=function(){}; g.L.SY=function(){}; g.L.ZK=function(){}; g.L.FJ=function(){}; g.L.EF=function(R,l){var y=this;if(this.Z.has(l.layoutId)){R=this.Z.get(l.layoutId);R=g.u(R);var f=R.next();for(l={};!f.done;l={eR:void 0},f=R.next())l.eR=f.value,f=new g.Vg(function(A){return function(){var K=y.DL.get(A.eR.triggerId);Ob(y.L(),[K])}}(l),l.eR.durationMs),f.start(),this.X.set(l.eR.triggerId,f)}}; g.L.Tr=function(){};g.O(hk,g.p);hk.prototype.OU=function(R,l,y,f){if(this.DL.has(l.triggerId))throw new q("Tried to register duplicate trigger for slot.");if(!(l instanceof jG))throw new q("Incorrect TriggerType: Tried to register trigger of type "+l.triggerType+" in VideoTransitionTriggerAdapter.");this.DL.set(l.triggerId,new Wp(R,l,y,f))}; hk.prototype.So=function(R){this.DL.delete(R.triggerId)};LN.prototype.MS=function(R){return R.kind==="AD_PLACEMENT_KIND_START"};g.O(P5,g.p);g.L=P5.prototype;g.L.logEvent=function(R){this.rF(R)}; g.L.q$=function(R,l,y){this.rF(R,void 0,void 0,void 0,l,void 0,void 0,void 0,l.adSlotLoggingData,void 0,void 0,y)}; g.L.HE=function(R,l,y,f){this.rF(R,void 0,void 0,void 0,l,y?y:void 0,void 0,void 0,l.adSlotLoggingData,y?y.adLayoutLoggingData:void 0,void 0,f)}; g.L.C0=function(R,l,y,f){Nc(this.aE.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+R,"trigger:",y,"slot:",l,"layout:",f);RI(this.Z.get())&&this.rF(R,void 0,void 0,void 0,l,f?f:void 0,void 0,y,l.adSlotLoggingData,f?f.adLayoutLoggingData:void 0)}; g.L.w1=function(R,l,y,f,A){this.rF(R,l,y,f,void 0,void 0,void 0,void 0,void 0,void 0,void 0,A)}; g.L.qC=function(R,l,y,f){this.rF("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,y,f,void 0,void 0,y.adSlotLoggingData,f?f.adLayoutLoggingData:void 0,{errorType:R,errorMessage:l})}; g.L.rF=function(R,l,y,f,A,K,G,B,H,n,m,h){var c=this;h=h===void 0?0:h;Nc(this.aE.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+R,"slot:",A,"layout:",K,"ping:",G,"Opportunity:",{opportunityType:l,associatedSlotId:y,wCU:f,XKb:B,adSlotLoggingData:H,adLayoutLoggingData:n});try{var E=function(){if(!c.aE.get().G.U().C("html5_disable_client_tmp_logs")&&R!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){R||BR("Empty PACF event type",A,K);var W=RI(c.Z.get()),Q={eventType:R,eventOrder:++c.eventCount},e={}; A&&(e.slotData=M0(W,A));K&&(e.layoutData=Nzq(W,K));G&&(e.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:G.Z.serializedAdPingMetadata,pingIndex:G.index});B&&(e.triggerData=Yy(B.trigger,B.category));l&&(e.opportunityData=p$J(W,l,y,f));W={organicPlaybackContext:{contentCpn:Io(c.fX.get(),1).clientPlaybackNonce}};W.organicPlaybackContext.isLivePlayback=Io(c.fX.get(),1).QS;var r;W.organicPlaybackContext.isMdxPlayback=(r=Io(c.fX.get(),1))==null?void 0:r.isMdxPlayback; var d;if((d=Io(c.fX.get(),1))==null?0:d.daiEnabled)W.organicPlaybackContext.isDaiContent=!0;var z;if(r=(z=Io(c.fX.get(),2))==null?void 0:z.clientPlaybackNonce)W.adVideoPlaybackContext={adVideoCpn:r};W&&(e.externalContext=W);Q.adClientData=e;H&&(Q.serializedSlotAdServingData=H.serializedSlotAdServingDataEntry);n&&(Q.serializedAdServingData=n.serializedAdServingDataEntry);m&&(Q.errorInfo=m);g.sE("adsClientStateChange",{adsClientEvent:Q})}}; h&&h>0?g.tD(g.Mt(),function(){return E()},h):E()}catch(W){Nc(this.aE.get(),"html5_log_pacf_logging_errors")&&g.tD(g.Mt(),function(){BR(W instanceof Error?W:String(W),A,K,{pacf_message:"exception during pacf logging"})})}};var fC5=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.O(uL,P5);g.L=uL.prototype; g.L.q$=function(R,l,y){P5.prototype.q$.call(this,R,l,y);mx(this.aE.get())&&(y={},this.context.Sa.MU("pacf",(y.et=R,y.st=l.slotType,y.si=l.slotId,y)))}; g.L.HE=function(R,l,y,f){var A=fC5.has(R);P5.prototype.HE.call(this,R,l,y,f);mx(this.aE.get(),A)&&(f={},this.context.Sa.MU("pacf",(f.et=R,f.st=l.slotType,f.si=l.slotId,f.lt=y==null?void 0:y.layoutType,f.li=y==null?void 0:y.layoutId,f.p_ac=y==null?void 0:y.layoutId,f)))}; g.L.w1=function(R,l,y,f,A){P5.prototype.w1.call(this,R,l,y,f,A);mx(this.aE.get())&&(y={},this.context.Sa.MU("pacf",(y.et=R,y.ot=l,y.ss=f==null?void 0:f.length,y)))}; g.L.C0=function(R,l,y,f){P5.prototype.C0.call(this,R,l,y,f);if(mx(this.aE.get())){var A={};this.context.Sa.MU("pacf",(A.et=R,A.tt=y.trigger.triggerType,A.tc=y.category,A.st=l.slotType,A.si=l.slotId,A.lt=f==null?void 0:f.layoutType,A.li=f==null?void 0:f.layoutId,A.p_ac=f==null?void 0:f.layoutId,A))}}; g.L.qC=function(R,l,y,f){P5.prototype.qC.call(this,R,l,y,f);if(mx(this.aE.get(),!0)){var A={};this.context.Sa.MU("perror",(A.ert=R,A.erm=l,A.st=y.slotType,A.si=y.slotId,A.lt=f==null?void 0:f.layoutType,A.li=f==null?void 0:f.layoutId,A.p_ac=f==null?void 0:f.layoutId,A))}}; g.L.rF=function(R,l,y,f,A,K,G,B,H,n,m){var h=this.aE.get();g.Eb(h.G.U())?(h=this.aE.get(),h=g.yx(h.G.U().experiments,"H5_async_logging_delay_ms")):h=void 0;P5.prototype.rF.call(this,R,l,y,f,A,K,G,B,H,n,m,h)};Ff.prototype.clear=function(){this.Z.clear()};QP.prototype.state=function(){return this.Z==="fulfilled"?{state:"fulfilled",value:this.result}:this.Z==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; QP.prototype.Y=function(R){e9(R)||$n(R)?rZ(bL(R),this.Y.bind(this),this.reject.bind(this)):(this.Z="fulfilled",this.result=R,dZ(this))}; QP.prototype.reject=function(R){this.Z="rejected";this.error=R;dZ(this)}; var $n=sJ(function(R){return OXU(R)?R instanceof QP:!1});Object.freeze({pK7:function(R){var l=N6(R);return rZ(I0(l,function(y){return l[y].Z==="rejected"}),function(y){return Number.isNaN(y)?l.map(function(f){return f.state().value}):l[y]})}, yoX:function(R){var l=N6(R);return rZ(I0(l),function(){return l.map(function(y){return y.state()})})}, bQU:function(R){var l=N6(R);return rZ(I0(l,function(y){return l[y].Z==="fulfilled"}),function(y){return Number.isNaN(y)?Xf(new AggregateError(l.map(function(f){return f.state().reason}))):l[y].state().value})}, sSL:function(R){var l=N6(R);return rZ(I0(l,function(){return!0}),function(y){return l[y]})}});var pN=window.sAq||"es-419";kn.prototype.Em=function(R){this.client=R}; kn.prototype.Z=function(){this.clear();this.csn=g.Py()}; kn.prototype.clear=function(){this.L.clear();this.X.clear();this.Y.clear();this.csn=null};ZD.prototype.Em=function(R){g.qM(DD().Em).bind(DD())(R)}; ZD.prototype.clear=function(){g.qM(DD().clear).bind(DD())()};g.L=Jk.prototype;g.L.Em=function(R){this.client=R}; g.L.GP=function(R,l){var y=this;l=l===void 0?{}:l;g.qM(function(){var f,A,K,G=((f=g.k(R==null?void 0:R.commandMetadata,g.Qn))==null?void 0:f.rootVe)||((A=g.k(R==null?void 0:R.commandMetadata,uwD))==null?void 0:(K=A.screenVisualElement)==null?void 0:K.uiType);if(G){f=g.k(R==null?void 0:R.commandMetadata,jMS);if(f==null?0:f.parentTrackingParams){var B=g.Ll(f.parentTrackingParams);if(f.parentCsn)var H=f.parentCsn}else l.clickedVisualElement?B=l.clickedVisualElement:R.clickTrackingParams&&(B=g.Ll(R.clickTrackingParams)); a:{f=g.k(R,g.mh);A=g.k(R,w4O);if(f){if(A=QWQ(f,"VIDEO")){f={token:A,videoId:f.videoId};break a}}else if(A&&(f=QWQ(A,"PLAYLIST"))){f={token:f,playlistId:A.playlistId};break a}f=void 0}l=Object.assign({},{cttAuthInfo:f,parentCsn:H},l);if(g.O1("expectation_logging")){var n;l.loggingExpectations=((n=g.k(R==null?void 0:R.commandMetadata,uwD))==null?void 0:n.loggingExpectations)||void 0}VP(y,G,B,l)}else g.dP(new g.JD("Error: Trying to create a new screen without a rootVeType",R))})()}; g.L.clickCommand=function(R,l,y){R=R.clickTrackingParams;y=y===void 0?0:y;R?(y=g.Py(y===void 0?0:y))?(Cl(this.client,y,g.Ll(R),l),l=!0):l=!1:l=!1;return l}; g.L.stateChanged=function(R,l,y){this.visualElementStateChanged(g.Ll(R),l,y===void 0?0:y)}; g.L.visualElementStateChanged=function(R,l,y){y=y===void 0?0:y;y===0&&this.X.has(y)?this.W.push([R,l]):d0T(this,R,l,y)};Yn.prototype.fetch=function(R,l,y){var f=this,A=z6Y(R,l,y);return new Promise(function(K,G){function B(){if(y==null?0:y.fN)try{var n=f.handleResponse(R,A.status,A.response,y);K(n)}catch(m){G(m)}else K(f.handleResponse(R,A.status,A.response,y))} A.onerror=B;A.onload=B;var H;A.send((H=l.body)!=null?H:null)})}; Yn.prototype.handleResponse=function(R,l,y,f){y=y.replace(")]}'","");try{var A=JSON.parse(y)}catch(K){g.dP(new g.JD("JSON parsing failed after XHR fetch",R,l,y));if((f==null?0:f.fN)&&y)throw new g.D3(1,"JSON parsing failed after XHR fetch");A={}}l!==200&&(g.dP(new g.JD("XHR API fetch failed",R,l,y)),A=Object.assign({},A,{errorMetadata:{status:l}}));return A};M6.getInstance=function(){var R=g.yr("ytglobal.storage_");R||(R=new M6,g.lA("ytglobal.storage_",R));return R}; M6.prototype.estimate=function(){var R,l,y;return g.w(function(f){R=navigator;return((l=R.storage)==null?0:l.estimate)?f.return(R.storage.estimate()):((y=R.webkitTemporaryStorage)==null?0:y.queryUsageAndQuota)?f.return(weJ()):f.return()})}; g.lA("ytglobal.storageClass_",M6);Gn.prototype.nW=function(R){this.handleError(R)}; Gn.prototype.logEvent=function(R,l){switch(R){case "IDB_DATA_CORRUPTED":g.O1("idb_data_corrupted_killswitch")||this.Z("idbDataCorrupted",l);break;case "IDB_UNEXPECTEDLY_CLOSED":this.Z("idbUnexpectedlyClosed",l);break;case "IS_SUPPORTED_COMPLETED":g.O1("idb_is_supported_completed_killswitch")||this.Z("idbIsSupportedCompleted",l);break;case "QUOTA_EXCEEDED":IyY(this,l);break;case "TRANSACTION_ENDED":this.L&&Math.random()<=.1&&this.Z("idbTransactionEnded",l);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":R= Object.assign({},l,{hasWindowUnloaded:this.X}),this.Z("idbTransactionAborted",R)}};var qK={},uQZ=g.M1("yt-player-local-media",{L8:(qK.index={y3:2},qK.media={y3:2},qK.captions={y3:5},qK),shared:!1,upgrade:function(R,l){l(2)&&(g.Xv(R,"index"),g.Xv(R,"media"));l(5)&&g.Xv(R,"captions");l(6)&&(Tn(R,"metadata"),Tn(R,"playerdata"))}, version:5});var AWS={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},tH;a:{var Yk=g.pp();Yk=Yk.toLowerCase();if(g.r9(Yk,"android")){var Kb5=Yk.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Kb5){var GoD=parseFloat(Kb5[1]);if(GoD<100){tH=GoD;break a}}var aCr=Yk.match("("+Object.keys(AWS).join("|")+")");tH=aCr?AWS[aCr[0]]:0}else tH=void 0}var g2=tH,Ju=g2>=0;var erK=window;var N1T=zP(function(){var R,l;return(l=(R=window).matchMedia)==null?void 0:l.call(R,"(prefers-reduced-motion: reduce)").matches});var lS;g.Re=new LH;lS=0;var cn=ZmZ()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.g4?!0:!1;var AN={cZ:function(R,l){var y=R[0];R[0]=R[l%R[a[6]]];R[l%R[a[6]]]=y}, kC:function(R){R[a[35]]()}, JL:function(R,l){R[a[8]](0,l)}};var OZ9={eJx:"adunit",lWX:"detailpage",TNE:"editpage",GUq:"embedded",OWX:"leanback",H7L:"previewpage",MKL:"profilepage",P2:"unplugged",kcx:"playlistoverview",tQU:"sponsorshipsoffer",jtU:"shortspage",cOL:"handlesclaiming",LSq:"immersivelivepage",cR4:"creatormusic",YUL:"immersivelivepreviewpage",s9E:"admintoolyurt",VQ1:"shortsaudiopivot",hH$:"consumption"};var gyK=2592E3;var MK,smA,T1;MK={};g.nA=(MK.STOP_EVENT_PROPAGATION="html5-stop-propagation",MK.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",MK.IV_DRAWER_OPEN="ytp-iv-drawer-open",MK.MAIN_VIDEO="html5-main-video",MK.VIDEO_CONTAINER="html5-video-container",MK.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",MK.HOUSE_BRAND="house-brand",MK);smA={};T1=(smA.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",smA.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",smA);var yqK={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var siq={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},Bsk={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"},Ik7={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var jSi={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.uS.prototype.getLanguageInfo=function(){return this.hF}; g.uS.prototype.getXtags=function(){if(!this.xtags){var R=this.id.split(";");R.length>1&&(this.xtags=R[1])}return this.xtags}; g.uS.prototype.toString=function(){return this.hF.name}; g.uS.prototype.getLanguageInfo=g.uS.prototype.getLanguageInfo;Fq.prototype.equals=function(R){return this.X===R.X&&this.Z===R.Z&&this.L===R.L&&this.reason===R.reason&&(!$M||this.r7===R.r7)}; Fq.prototype.isLocked=function(){return this.L&&!!this.X&&this.X===this.Z}; Fq.prototype.compose=function(R){if(R.L&&e2(R))return At;if(R.L||e2(this))return R;if(this.L||e2(R))return this;var l=this.X&&R.X?Math.max(this.X,R.X):this.X||R.X,y=this.Z&&R.Z?Math.min(this.Z,R.Z):this.Z||R.Z;l=Math.min(l,y);var f=0;$M&&(f=this.r7!==0&&R.r7!==0?Math.min(this.r7,R.r7):this.r7===0?R.r7:this.r7);return $M&&l===this.X&&y===this.Z&&f===this.r7||!$M&&l===this.X&&y===this.Z?this:$M?new Fq(l,y,!1,y===this.Z&&f===this.r7?this.reason:R.reason,f):new Fq(l,y,!1,y===this.Z?this.reason:R.reason)}; Fq.prototype.Y=function(R){return!R.video||$M&&this.r7!==0&&this.r7=0}; g.L.fQ=function(){var R=this.segments[this.segments.length-1];return R?R.endTime:NaN}; g.L.K_=function(){return this.segments[0].startTime}; g.L.g4=function(){return this.segments.length}; g.L.Rt=function(){return 0}; g.L.TL=function(R){return(R=this.Gk(R))?R.eS:-1}; g.L.ri=function(R){return(R=this.nG(R))?R.sourceURL:""}; g.L.getStartTime=function(R){return(R=this.nG(R))?R.startTime:0}; g.L.Kn=function(R){return this.getStartTime(R)+this.getDuration(R)}; g.L.wi=lj(1);g.L.isLoaded=function(){return this.segments.length>0}; g.L.nG=function(R){if(this.Z&&this.Z.eS===R)return this.Z;R=g.kU(this.segments,new qQ(R,0,0,0,""),function(l,y){return l.eS-y.eS}); return this.Z=R>=0?this.segments[R]:null}; g.L.Gk=function(R){if(this.Z&&this.Z.startTime<=R&&R=0?this.segments[R]:this.segments[Math.max(0,-R-2)]}; g.L.append=function(R){if(R.length)if(R=g.wO(R),this.segments.length){var l=this.segments.length?g.W8(this.segments).endTime:0,y=R[0].eS-this.Wl();y>1&&uZT(this.segments);for(y=y>0?0:-y+1;yR.eS&&this.index.N5()<=R.eS+1}; g.L.update=function(R,l,y){this.index.append(R);pt7(this.index,y);R=this.index;R.X=l;R.L="update"}; g.L.Gf=function(){return this.TT()?!0:Jy.prototype.Gf.call(this)}; g.L.My=function(R,l){var y=this.index.ri(R),f=this.index.getStartTime(R),A=this.index.getDuration(R),K;l?A=K=0:K=this.info.r7>0?this.info.r7*A:1E3;return new A1([new ty(3,this,void 0,"liveCreateRequestInfoForSegment",R,f,A,0,K,!l)],y)}; g.L.Mv=function(){return this.TT()?0:this.initRange.length}; g.L.Kx=function(){return!1};nK.prototype.update=function(R){var l=void 0;this.X&&(l=this.X);var y=new nK,f=Array.from(R.getElementsByTagName("S"));if(f.length){var A=+BC(R,"timescale")||1,K=(+f[0].getAttribute("t")||0)/A,G=+BC(R,"startNumber")||0;y.Y=K;var B=l?l.startSecs+l.G9:0,H=Date.parse(z_k(BC(R,"yt:segmentIngestTime")))/1E3;y.J=R.parentElement.tagName==="SegmentTemplate";y.J&&(y.V=BC(R,"media"));R=l?G-l.eS:1;y.D=R>0?0:-R+1;R=g.u(f);for(f=R.next();!f.done;f=R.next()){f=f.value;for(var n=+f.getAttribute("d")/A,m=(+f.getAttribute("yt:sid")|| 0)/A,h=+f.getAttribute("r")||0,c=0;c<=h;c++)if(l&&G<=l.eS)G++;else{var E=new rOZ(G,B,n,H+m,K);y.Z.push(E);var W=f;var Q=A,e=E.startSecs;E=W.getAttribute("yt:cuepointTimeOffset");var r=W.getAttribute("yt:cuepointDuration");if(E&&r){E=Number(E);e=-E/Q+e;Q=Number(r)/Q;r=W.getAttribute("yt:cuepointContext")||null;var d=W.getAttribute("yt:cuepointIdentifier")||"";W=W.getAttribute("yt:cuepointEvent")||"";W=new Gx(e,Q,r,d,H$S[W]||"unknown",E)}else W=null;W&&y.L.push(W);G++;B+=n;K+=n;H+=n+m}}y.Z.length&& (y.X=g.W8(y.Z))}this.D=y.D;this.X=y.X||this.X;g.xU(this.Z,y.Z);g.xU(this.L,y.L);this.J=y.J;this.V=y.V;this.Y===-1&&(this.Y=y.getStreamTimeOffset())}; nK.prototype.getStreamTimeOffset=function(){return this.Y===-1?0:this.Y};g.O(oZ,g.tN);g.L=oZ.prototype;g.L.QN=function(){return this.yK}; g.L.tf=function(R,l){R=h1(this,R);return R>=0&&(l||!this.segments[R].pending)}; g.L.N5=function(){return this.bR?this.segments.length?this.Gk(this.K_()).eS:-1:g.tN.prototype.N5.call(this)}; g.L.K_=function(){if(this.Rz)return 0;if(!this.bR)return g.tN.prototype.K_.call(this);if(!this.segments.length)return 0;var R=Math.max(g.W8(this.segments).endTime-this.gF,0);return this.ZG>0&&this.Gk(R).eS0)return this.Fr/1E3;if(!this.segments.length)return g.tN.prototype.fQ.call(this);var R=this.Wl();if(!this.bR||R<=this.segments[this.segments.length-1].eS)R=this.segments[this.segments.length-1];else{var l=this.segments[this.segments.length-1];R=new qQ(R,Math.max(0,l.startTime-(l.eS-R)*this.yK),this.yK,0,"sq/"+R,void 0,void 0,!0)}return this.Rz?Math.min(this.gF,R.endTime):R.endTime}; g.L.g4=function(){return this.bR?this.segments.length?this.Wl()-this.N5()+1:0:g.tN.prototype.g4.call(this)}; g.L.Wl=function(){var R=Math.min(this.bH,Math.max(g.tN.prototype.Wl.call(this),this.qH)),l=this.gF*1E3;l=this.Fr>0&&this.Fr0&&this.qH>0&&!l&&(l=this.Gk(this.gF))&&(R=Math.min(l.eS-1,R));return R}; g.L.RK=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.L.ZA=function(R){var l=h1(this,R.eS);if(l>=0)this.segments[l]=R;else if(this.segments.splice(-(l+1),0,R),this.Qd&&R.eS%(300/this.yK)===0){var y=this.segments[0].eS,f=Math.floor(this.Qd/this.yK);R=R.eS-f;l=-(l+1)-f;l>0&&R>y&&(this.segments=this.segments.slice(l))}}; g.L.OJ=function(){return this.qH}; g.L.Sn=function(R){return mC?!this.X&&R>=0&&this.Wl()<=R:g.tN.prototype.Sn.call(this,R)}; g.L.Gk=function(R){if(!this.bR)return g.tN.prototype.Gk.call(this,R);if(!this.segments.length)return null;var l=this.segments[this.segments.length-1];if(R=l.endTime)l=l.eS+Math.floor((R-l.endTime)/this.yK+1);else{l=JK(this.segments,function(f){return R=f.endTime?1:0}); if(l>=0)return this.segments[l];var y=-(l+1);l=this.segments[y-1];y=this.segments[y];l=Math.floor((R-l.endTime)/((y.startTime-l.endTime)/(y.eS-l.eS-1))+1)+l.eS}return this.nG(l)}; g.L.nG=function(R){if(!this.bR)return g.tN.prototype.nG.call(this,R);if(!this.segments.length)return null;var l=h1(this,R);if(l>=0)return this.segments[l];var y=-(l+1);l=this.yK;if(y===0)var f=Math.max(0,this.segments[0].startTime-(this.segments[0].eS-R)*l);else y===this.segments.length?(f=this.segments[this.segments.length-1],f=f.endTime+(R-f.eS-1)*l):(f=this.segments[y-1],l=this.segments[y],l=(l.startTime-f.endTime)/(l.eS-f.eS-1),f=f.endTime+(R-f.eS-1)*l);return new qQ(R,f,l,0,"sq/"+R,void 0,void 0, !0)}; var mC=!1;g.O(cC,s6);g.L=cC.prototype;g.L.w4=function(){return!0}; g.L.Gf=function(){return!0}; g.L.BC=function(R){return this.Ov()&&R.L&&!R.J||!R.Z.index.Sn(R.eS)}; g.L.e0=function(){}; g.L.zY=function(R,l){return typeof R!=="number"||isFinite(R)?s6.prototype.zY.call(this,R,l===void 0?!1:l):new A1([new ty(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Sv,void 0,this.Sv*this.info.r7)],"")}; g.L.My=function(R,l){var y=y===void 0?!1:y;if(this.index.tf(R))return s6.prototype.My.call(this,R,l);var f=this.index.getStartTime(R),A=Math.round(this.Sv*this.info.r7),K=this.Sv;l&&(K=A=0);return new A1([new ty(y?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",R,f,K,void 0,A,!l)],R>=0?"sq/"+R:"")};g.O(E6,Jy);g.L=E6.prototype;g.L.PO=function(){return!1}; g.L.Ov=function(){return!1}; g.L.w4=function(){return!1}; g.L.e0=function(){return new A1([new ty(1,this,void 0,"otfInit")],this.J)}; g.L.j8=function(){return null}; g.L.Py=function(R){this.BC(R);return jzi(this,lh(R),!1)}; g.L.zY=function(R,l){l=l===void 0?!1:l;R=this.index.TL(R);l&&(R=Math.min(this.index.Wl(),R+1));return jzi(this,R,!0)}; g.L.C4=function(R){R.info.type===1&&(this.Z||(this.Z=nn(R.X)),R.Z&&R.Z.uri==="http://youtube.com/streaming/otf/durations/112015"&&kCj(this,R.Z))}; g.L.BC=function(R){return R.L===0?!0:this.index.Wl()>R.eS&&this.index.N5()<=R.eS+1}; g.L.Mv=function(){return 0}; g.L.Kx=function(){return!1};g.WC.prototype.info=function(){}; g.WC.prototype.debug=function(){}; g.WC.prototype.Z=function(R){LK.apply(null,[5,this.tag,R].concat(g.ci(g.SJ.apply(1,arguments))))}; var JOY=new Map,Czi=new Map,g5Z=new function(){var R=this;this.Z=new Map;this.yu={Cx9:function(){return R.Z}}};g.L=g.e5.prototype;g.L.tf=function(R){return R<=this.Wl()}; g.L.Rt=function(R){return this.offsets[R]}; g.L.getStartTime=function(R){return this.startTicks[R]/this.Z}; g.L.Kn=function(R){return this.getStartTime(R)+this.getDuration(R)}; g.L.wi=lj(0);g.L.wc=function(){return NaN}; g.L.getDuration=function(R){R=this.Bn(R);return R>=0?R/this.Z:-1}; g.L.Bn=function(R){return R+1=0}; g.L.fQ=function(){return this.X?this.startTicks[this.count]/this.Z:NaN}; g.L.K_=function(){return 0}; g.L.g4=function(){return this.count}; g.L.ri=function(){return""}; g.L.TL=function(R){R=g.kU(this.startTicks.subarray(0,this.count),R*this.Z);return R>=0?R:Math.max(0,-R-2)}; g.L.isLoaded=function(){return this.Wl()>=0}; g.L.LT=function(R,l){if(R>=this.Wl())return 0;var y=0;for(l=this.getStartTime(R)+l;Rthis.getStartTime(R);R++)y=Math.max(y,A2q(this,R)/this.getDuration(R));return y}; g.L.resize=function(R){R+=2;var l=this.offsets;this.offsets=new Float64Array(R+1);var y=this.startTicks;this.startTicks=new Float64Array(R+1);for(R=0;R0&&R&&(y=y.range.end+1,R=Math.min(R,this.info.contentLength-y),R>0&&f.push(new ty(4,this,Ce(y,R),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,l)));return new A1(f)}; g.L.C4=function(R){if(R.info.type===1){if(this.Z)return;this.Z=nn(R.X)}else if(R.info.type===2){if(this.J||this.index.Wl()>=0)return;if(g.Uu(this.info)){var l=this.index,y=g.ih(R);R=R.info.range.start;var f=g.HU(y,0,1936286840);y=Yzo(f);l.Z=y.timescale;var A=y.qp;l.offsets[0]=y.oo+R+f.size;l.startTicks[0]=A;l.X=!0;R=y.yj.length;for(f=0;f0&&R===K[0].XI)for(R=0;R=l+y)break}A.length||(R=new g.JD("b189619593",""+R,""+l,""+y),g.Tw(R));return new A1(A)}; g.L.Jr=function(R){for(var l=this.X5(R.info),y=R.info.range.start+R.info.X,f=[],A=0;A=this.index.Rt(y+1);)y++;return this.D8(y,l,R.L).SS}; g.L.BC=function(R){R.nf();return this.Gf()?!0:R.range.end+1this.info.contentLength&&(l=new gD(l.start,this.info.contentLength-1)),new A1([new ty(4,R.Z,l,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,R.clipId)]);R.type===4&&(R=this.X5(R),R=R[R.length-1]);var y=0,f=R.range.start+R.X+R.L;R.type===3&&(R.nf(),y=R.eS,f===R.range.end+1&&(y+=1));return this.D8(y,f,l)}; g.L.Py=function(){return null}; g.L.zY=function(R,l){l=l===void 0?!1:l;R=this.index.TL(R);l&&(R=Math.min(this.index.Wl(),R+1));return this.D8(R,this.index.Rt(R),0,void 0)}; g.L.PO=function(){return!0}; g.L.Ov=function(){return!0}; g.L.w4=function(){return!1}; g.L.Mv=function(){return this.indexRange.length+this.initRange.length}; g.L.Kx=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var lY={},iws=(lY.COLOR_PRIMARIES_BT709="bt709",lY.COLOR_PRIMARIES_BT2020="bt2020",lY.COLOR_PRIMARIES_UNKNOWN=null,lY.COLOR_PRIMARIES_UNSPECIFIED=null,lY),yR={},GAs=(yR.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",yR.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",yR.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",yR.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",yR.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,yR.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,yR);g.TL.prototype.getName=function(){return this.name}; g.TL.prototype.getId=function(){return this.id}; g.TL.prototype.getIsDefault=function(){return this.isDefault}; g.TL.prototype.toString=function(){return this.name}; g.TL.prototype.getName=g.TL.prototype.getName;g.TL.prototype.getId=g.TL.prototype.getId;g.TL.prototype.getIsDefault=g.TL.prototype.getIsDefault;var HwT=/action_display_post/;var nN7,vC,zL;g.O(wS,g.Ae);g.L=wS.prototype;g.L.isLoading=function(){return this.state===1}; g.L.oU=function(){return this.state===3}; g.L.v6$=function(R){var l=R.getElementsByTagName("Representation");if(R.getElementsByTagName("SegmentList").length>0||R.getElementsByTagName("SegmentTemplate").length>0){this.QS=this.X=!0;this.timeline||(this.timeline=new xw7);UwT(this.timeline,R);this.publish("refresh");for(R=0;R=0?m=VF(c):h=h+"?range="+c}H.call(B,new qQ(n.eS,n.startSecs,n.G9,n.Z,h,m,n.X))}f=A}y.update(f,this.isLive,this.jS)}Suj(this.timeline);return!0}this.duration=v5o(BC(R,"mediaPresentationDuration")); a:{for(R=0;R0))return this.x6()-R}}R=this.Z;for(var l in R){var y=R[l].index;if(y.isLoaded()&&!Zw(R[l].info.mimeType))return y.K_()}return 0}; g.L.getStreamTimeOffset=function(){return this.V}; g.L.wc=function(R){for(var l in this.Z){var y=this.Z[l].index;if(y.isLoaded()){var f=y.TL(R),A=y.wc(f);if(A)return A+R-y.getStartTime(f)}}return NaN}; var CK=null,nQ5,qq=!((nQ5=navigator.mediaCapabilities)==null||!nQ5.decodingInfo),eho={commentary:1,alternate:2,dub:3,main:4};var hQ=new Set,t1=new Map;R_.prototype.clone=function(R){return new R_(this.flavor,R,this.X,this.experiments)}; R_.prototype.S1=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; R_.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 md5={},Hn=(md5.playready=["com.youtube.playready","com.microsoft.playready"],md5.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],md5),f7={},nLc=(f7.widevine="DRM_SYSTEM_WIDEVINE",f7.fairplay="DRM_SYSTEM_FAIRPLAY",f7.playready="DRM_SYSTEM_PLAYREADY",f7),A8={},oQU=(A8.widevine=1,A8.fairplay=2,A8.playready=3,A8);var o_;g.O(nI,g.p); nI.prototype.initialize=function(R,l){for(var y=this,f=g.u(Object.keys(R)),A=f.next();!A.done;A=f.next()){A=g.u(R[A.value]);for(var K=A.next();!K.done;K=A.next())if(K=K.value,K.sS)for(var G=g.u(Object.keys(K.sS)),B=G.next();!B.done;B=G.next()){var H=B.value;B=H;H=Hn[H];!H&&this.C("html5_enable_vp9_fairplay")&&B==="fairplay"&&(H=["com.youtube.fairplay.sbdl"]);if(H){H=g.u(H);for(var n=H.next();!n.done;n=H.next())n=n.value,this.L[n]=this.L[n]||new R_(B,n,K.sS[B],this.yL.experiments),this.Z[B]=this.Z[B]|| {},this.Z[B][K.mimeType]=!0}}}Zb()&&(this.L["com.youtube.fairplay"]=new R_("fairplay","com.youtube.fairplay","",this.yL.experiments),this.C("html5_enable_vp9_fairplay")||(this.Z.fairplay=this.Z.fairplay||{},this.Z.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.Z.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.X=UAZ(l,this.useCobaltWidevine,this.C("html5_enable_safari_fairplay")&&!0,this.C("html5_enable_vp9_fairplay")).filter(function(m){return!!y.L[m]})}; nI.prototype.C=function(R){return this.yL.experiments.EL(R)};var hSU={"":"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"};J2Y.prototype.C=function(R){return this.experiments.EL(R)};var Pgj={RED:"red",aEL:"white"};gNq.prototype.EL=function(R){R=this.flags[R];JSON.stringify(R);return R==="true"};var qeo=Promise.resolve(),RjJ=window.queueMicrotask?window.queueMicrotask.bind(window):tDQ;Wn.prototype.canPlayType=function(R,l){R=R.canPlayType?R.canPlayType(l):!1;Jv?R=R||cWr[l]:g2===2.2?R=R||EQD[l]:ka()&&(R=R||WbD[l]);return!!R}; Wn.prototype.isTypeSupported=function(R){return this.B?window.cast.receiver.platform.canDisplayType(R):P9(R)}; var EQD={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},WbD={"application/x-mpegURL":"maybe"},cWr={"application/x-mpegURL":"maybe"};g.O(ii,g.Ae);ii.prototype.add=function(R,l){if(!this.items[R]&&(l.rl||l.Qt||l.JA)){var y=this.items,f=l;Object.isFrozen&&!Object.isFrozen(l)&&(f=Object.create(l),Object.freeze(f));y[R]=f;this.publish("vast_info_card_add",R)}}; ii.prototype.remove=function(R){var l=this.get(R);delete this.items[R];return l}; ii.prototype.get=function(R){return this.items[R]||null}; ii.prototype.isEmpty=function(){return g.oL(this.items)};var ui;FY.prototype.add=function(R){if(this.pos+20>this.data.length){var l=new Uint8Array(this.data.length*2);l.set(this.data);this.data=l}for(;R>31;)this.data[this.pos++]=ui[(R&31)+32],R>>=5;this.data[this.pos++]=ui[R|0]}; FY.prototype.Bf=function(){return g.ER(this.data.subarray(0,this.pos))}; FY.prototype.reset=function(){this.pos=0};$h.prototype.tR=function(R,l){var y=Math.pow(this.alpha,R);this.Z=l*(1-y)+y*this.Z;this.X+=R}; $h.prototype.hL=function(){return this.Z/(1-Math.pow(this.alpha,this.X))};er.prototype.tR=function(R,l){for(var y=0;y<10;y++){var f=this.Z[y],A=f+(y===0?R:0),K=1*Math.pow(2,y);if(A<=K)break;f=Math.min(1,(A-K*.5)/f);for(A=0;A<16;A++)K=this.values[y*16+A]*f,this.values[(y+1)*16+A]+=K,this.Z[y+1]+=K,this.values[y*16+A]-=K,this.Z[y]-=K}f=y=0;A=8192;l>8192&&(y=Math.ceil(Math.log(l/8192)/Math.log(2)),f=8192*Math.pow(2,y-1),A=f*2);y+2>16?this.values[15]+=R:(l=(l-f)/(A-f),this.values[y]+=R*(1-l),this.values[y+1]+=R*l);this.Z[0]+=R}; er.prototype.hL=function(){var R=R===void 0?this.X:R;var l=l===void 0?.02:l;var y=y===void 0?.98:y;for(var f=this.L,A=0;A<16;A++)f[A]=this.values[A];A=this.Z[0];for(var K=1;K<11;K++){var G=this.Z[K];if(G===0)break;for(var B=Math.min(1,(R-A)/G),H=0;H<16;H++)f[H]+=this.values[K*16+H]*B;A+=G*B;if(B<1)break}for(K=R=G=0;K<16;K++){B=G+f[K]/A;R+=Math.max(0,Math.min(B,y)-Math.max(G,l))*(K>0?8192*Math.pow(2,K-1):0);if(B>y)break;G=B}return R/(y-l)};bi.prototype.tR=function(R,l){R=Math.min(this.Z,Math.max(1,Math.round(R*this.resolution)));R+this.X>=this.Z&&(this.L=!0);for(;R--;)this.values[this.X]=l,this.X=(this.X+1)%this.Z;this.FN=!0}; bi.prototype.percentile=function(R){var l=this;if(!this.L&&this.X===0)return 0;this.FN&&(g.gO(this.J,function(y,f){return l.values[y]-l.values[f]}),this.FN=!1); return this.values[this.J[Math.round(R*((this.L?this.Z:this.X)-1))]]||0}; bi.prototype.hL=function(){return this.D?(this.percentile(this.Y-this.D)+this.percentile(this.Y)+this.percentile(this.Y+this.D))/3:this.percentile(this.Y)};g.O(XY,g.p);XY.prototype.UL=function(){var R;(R=this.v1)==null||R.start();if(I_(this)&&this.policy.W){var l;(l=this.Qu)==null||l.J6()}};mBT.prototype.C=function(R){return this.experiments.EL(R)};g.O(hjk,g.p);var iZj="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(" "),ejY={SpL:"caoe",lX7:"capsv",xPb:"cbrand",p04:"cbr",bwE:"cbrver",PHL:"cchip",zHU:"ccappver",Nz7:"ccrv",fyS:"cfrmver",ImU:"c",xLX:"cver",am7:"ctheme",G8x:"cplayer",aTb:"cmodel",Gp:"cnetwork",zK4:"cos",OS_VERSION:"cosver",tK9:"cplatform",xAU:"crqyear"};g.O(fU,g.p);g.L=fU.prototype;g.L.C=function(R){return this.experiments.EL(R)}; g.L.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.L.getVideoUrl=function(R,l,y,f,A,K,G){l={list:l};y&&(A?l.time_continue=y:l.t=y);y=G?"music.youtube.com":g.KU(this);A=y==="www.youtube.com";!K&&f&&A?K="https://youtu.be/"+R:g.qE(this)?(K="https://"+y+"/fire",l.v=R):(K&&A?(K=this.protocol+"://"+y+"/shorts/"+R,f&&(l.feature="share")):(K=this.protocol+"://"+y+"/watch",l.v=R),Jv&&(R=STq())&&(l.ebc=R));return g.L4(K,l)}; g.L.getVideoEmbedCode=function(R,l,y,f){l="https://"+g.KU(this)+"/embed/"+l;f&&(l=g.L4(l,{list:f}));f=y.width;y=y.height;l=dF(l);R=dF(R!=null?R:"YouTube video player");return'')}; g.L.supportsGaplessAudio=function(){return g.iz&&!Jv&&U1()>=74||g.sN&&g.Up(68)?!0:!1}; g.L.supportsGaplessShorts=function(){return!this.C("html5_enable_short_gapless")||this.UL||g.LO?!1:!0}; g.L.getPlayerType=function(){return this.Z.cplayer}; g.L.PZ=function(){return this.CJ}; var dBZ=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],$Bc=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],Xfs=[19];var K7={},zjK=(K7["140"]={numChannels:2},K7["141"]={numChannels:2},K7["251"]={audioSampleRate:48E3,numChannels:2},K7["774"]={audioSampleRate:48E3,numChannels:2},K7["380"]={numChannels:6},K7["328"]={numChannels:6},K7["773"]={},K7),Gi={},r6Y=(Gi["1"]='video/mp4; codecs="av01.0.08M.08"',Gi["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',Gi["1e"]='video/mp4; codecs="av01.0.08M.08"',Gi["9"]='video/webm; codecs="vp9"',Gi["("]='video/webm; codecs="vp9"',Gi["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', Gi.h='video/mp4; codecs="avc1.64001e"',Gi.H='video/mp4; codecs="avc1.64001e"',Gi.o='audio/webm; codecs="opus"',Gi.a='audio/mp4; codecs="mp4a.40.2"',Gi.ah='audio/mp4; codecs="mp4a.40.2"',Gi.mac3='audio/mp4; codecs="ac-3"; channels=6',Gi.meac3='audio/mp4; codecs="ec-3"; channels=6',Gi.i='audio/mp4; codecs="iamf.001.001.Opus"',Gi),a6={},vP9=(a6["337"]={width:3840,height:2160,bitrate:3E7,fps:30},a6["336"]={width:2560,height:1440,bitrate:15E6,fps:30},a6["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, a6["702"]={width:7680,height:4320,bitrate:4E7,fps:60},a6["701"]={width:3840,height:2160,bitrate:2E7,fps:60},a6["700"]={width:2560,height:1440,bitrate:1E7,fps:60},a6["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},a6["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},a6["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},a6["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, a6["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},a6["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},a6["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},a6["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},a6["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},a6["315"]={width:3840,height:2160,bitrate:2E7,fps:60},a6["308"]={width:2560, height:1440,bitrate:1E7,fps:60},a6["303"]={width:1920,height:1080,bitrate:5E6,fps:60},a6["302"]={width:1280,height:720,bitrate:25E5,fps:60},a6["299"]={width:1920,height:1080,bitrate:75E5,fps:60},a6["298"]={width:1280,height:720,bitrate:35E5,fps:60},a6["571"]={width:7680,height:4320,bitrate:3E7,fps:60},a6["401"]={width:3840,height:2160,bitrate:15E6,fps:60},a6["400"]={width:2560,height:1440,bitrate:75E5,fps:60},a6["399"]={width:1920,height:1080,bitrate:2E6,fps:60},a6["398"]={width:1280,height:720,bitrate:1E6, fps:60},a6["397"]={width:854,height:480,bitrate:4E5,fps:30},a6["396"]={width:640,height:360,bitrate:25E4,fps:30},a6["787"]={width:1080,height:608,bitrate:2E5,fps:30},a6["788"]={width:1080,height:608,bitrate:4E5,fps:30},a6["572"]={width:7680,height:4320,bitrate:3E7,fps:60},a6["555"]={width:3840,height:2160,bitrate:15E6,fps:60},a6["554"]={width:2560,height:1440,bitrate:75E5,fps:60},a6["553"]={width:1920,height:1080,bitrate:2E6,fps:60},a6["552"]={width:1280,height:720,bitrate:1E6,fps:60},a6["551"]={width:854, height:480,bitrate:4E5,fps:30},a6["550"]={width:640,height:360,bitrate:25E4,fps:30},a6["313"]={width:3840,height:2160,bitrate:8E6,fps:30},a6["271"]={width:2560,height:1440,bitrate:4E6,fps:30},a6["248"]={width:1920,height:1080,bitrate:2E6,fps:30},a6["247"]={width:1280,height:720,bitrate:15E5,fps:30},a6["244"]={width:854,height:480,bitrate:52E4,fps:30},a6["243"]={width:640,height:360,bitrate:28E4,fps:30},a6["137"]={width:1920,height:1080,bitrate:4E6,fps:30},a6["136"]={width:1280,height:720,bitrate:3E6, fps:30},a6["135"]={width:854,height:480,bitrate:1E6,fps:30},a6["385"]={width:1920,height:1080,bitrate:6503313,fps:60},a6["376"]={width:1280,height:720,bitrate:5706960,fps:60},a6["384"]={width:1280,height:720,bitrate:3660979,fps:60},a6["225"]={width:1280,height:720,bitrate:5805E3,fps:30},a6["224"]={width:1280,height:720,bitrate:453E4,fps:30},a6["145"]={width:1280,height:720,bitrate:2682052,fps:30},a6);g.L=u2.prototype;g.L.getInfo=function(){return this.Z}; g.L.vy=function(){return null}; g.L.rr=function(){var R=this.vy();return R?(R=g.f0(R.x$),Number(R.expire)):NaN}; g.L.jX=function(){}; g.L.getHeight=function(){return this.Z.video.height};N5r.prototype.build=function(){S2T(this);var R=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],l={};a:if(this.Z)var y=this.Z;else{y="";for(var f=g.u(this.L),A=f.next();!A.done;A=f.next())if(A=A.value,A.hF){if(A.hF.getIsDefault()){y=A.hF.getId();break a}y||(y=A.hF.getId())}}f=g.u(this.L);for(A=f.next();!A.done;A=f.next())if(A=A.value,this.D||!A.hF||A.hF.getId()===y)l[A.itag]||(l[A.itag]=[]),l[A.itag].push(A);y=g.u(this.X);for(f=y.next();!f.done;f=y.next())if(f=f.value,A=l[f.Z]){A=g.u(A);for(var K=A.next();!K.done;K= A.next()){var G=R,B=G.push;K=K.value;var H="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",m="audio";if(K.hF){m=K.hF;var h=m.getId().split(".")[0];h&&(H+='LANGUAGE="'+h+'",');(this.Z?this.Z===m.getId():m.getIsDefault())||(n="NO");m=m.getName()}h="";f!==null&&(h=f.itag.toString());h=QV(this,K.url,h);H=H+('NAME="'+m+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(UBT(K,f)+'",URI="'+(h+'"'));B.call(G,H)}}y=g.u(this.J);for(f=y.next();!f.done;f=y.next())f=f.value,A=Lb5,f=(G=f.hF)?'#EXT-X-MEDIA:URI="'+QV(this,f.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+A+'",LANGUAGE="'+G.getId()+'",NAME="'+G.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,f&&R.push(f);y=this.J.length>0?Lb5:void 0;f=g.u(this.X);for(A=f.next();!A.done;A=f.next())A=A.value,B=l[A.Z],G=void 0,((G=B)==null?void 0:G.length)>0&&(G=A,B=B[0],B="#EXT-X-STREAM-INF:BANDWIDTH="+(G.bitrate+B.bitrate)+',CODECS="'+(G.codecs+","+B.codecs+'",RESOLUTION=')+(G.width+"x"+G.height+',AUDIO="')+(UBT(B,G)+'",')+(y?'SUBTITLES="'+y+'",':"")+"CLOSED-CAPTIONS=NONE",G.fps>1&&(B+= ",FRAME-RATE="+G.fps),G.tV&&(B+=",VIDEO-RANGE="+G.tV),R.push(B),R.push(QV(this,A.url,"")));return R.join("\n")}; var Lb5="text";g.O($6,u2);$6.prototype.rr=function(){return this.expiration}; $6.prototype.vy=function(){if(!this.x$||this.x$.Fx()){var R=this.X.build();R="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(R);this.x$=new se(R)}return this.x$};g.O(eu,u2);eu.prototype.vy=function(){return new se(this.X.Jk())}; eu.prototype.jX=function(){this.X=Vz(this.X)};g.O(b2,u2);b2.prototype.vy=function(){return new se(this.X)};var sk={},tGk=(sk.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",sk.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",sk.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",sk);g.L=g.Xh.prototype;g.L.getId=function(){return this.id}; g.L.getName=function(){return this.name}; g.L.isServable=function(){return this.Z}; g.L.Jk=function(){return this.url}; g.L.getXtags=function(){return this.xtags}; g.L.toString=function(){return this.languageCode+": "+g.Tt(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.L.equals=function(R){return R?this.toString()===R.toString():!1}; g.L.Nl=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var fR7={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},AGZ={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},KV9=/^(\d*)_((\d*)_?(\d*))$/;var aRs={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},sSY={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var B7={},O$Z=(B7.ALWAYS=1,B7.BY_REQUEST=3,B7.UNKNOWN=void 0,B7),H7={},i$U=(H7.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",H7.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",H7.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",H7.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",H7);var IAZ; IAZ=function(R){for(var l=Object.keys(R),y={},f=0;ff-l?-1:R}; g.L.oH=function(){return this.X.Wl()}; g.L.eH=function(){return this.X.N5()}; g.L.Ru=function(R){this.X=R};g.O(fC,lp);fC.prototype.X=function(R,l){return lp.prototype.X.call(this,"$N|"+R,l)}; fC.prototype.J=function(R,l,y){return new yE(R,l,y,this.isLive)};var JGj=[],BZ=new Set;g.O(g.KC,g.Ae);g.L=g.KC.prototype; g.L.setData=function(R){R=R||{};var l=R.errordetail;l!=null&&(this.errorDetail=l);var y=R.errorcode;y!=null?this.errorCode=y:R.status==="fail"&&(this.errorCode="auth");var f=R.reason;f!=null&&(this.errorReason=f);var A=R.subreason;A!=null&&(this.Pp=A);this.C("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=R.cpn||(this.yL.PZ()?"r"+g.L6(15):g.L6(16)));this.B1=y8(this.yL.B1,R.livemonitor);pps(this,R);var K=R.raw_player_response;if(K)this.r6=K;else{var G=R.player_response; G&&(K=JSON.parse(G))}if(this.C("html5_enable_ssap_entity_id")){var B=R.cached_load;B&&(this.jO=y8(this.jO,B));if(!this.clientPlaybackNonce){var H=R.cpn;H?(this.iD("ssei","shdc"),this.clientPlaybackNonce=H):this.clientPlaybackNonce=this.yL.PZ()?"r"+g.L6(15):g.L6(16)}}K&&(this.playerResponse=K);if(this.playerResponse){var n=this.playerResponse.annotations;if(n)for(var m=g.u(n),h=m.next();!h.done;h=m.next()){var c=h.value.playerAnnotationsUrlsRenderer;if(c){c.adsOnly&&(this.IB=!0);var E=c.loadPolicy; E&&(this.annotationsLoadPolicy=O$Z[E]);var W=c.invideoUrl;W&&(this.v1=D_(W));break}}var Q=this.playerResponse.attestation;Q&&HWk(this,Q);var e=this.playerResponse.cotn;e&&(this.cotn=e);var r=this.playerResponse.heartbeatParams;if(r){this.AX=!0;var d=r.heartbeatToken;d&&(this.drmSessionId=r.drmSessionId||"",this.heartbeatToken=d,this.tX=Number(r.intervalMilliseconds),this.Zc=Number(r.maxRetries),this.sA=!!r.softFailOnError,this.Aa=!!r.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=r.heartbeatServerData; var z;this.iV=!((z=r.heartbeatAttestationConfig)==null||!z.requiresAttestation)}var N=this.playerResponse.messages;N&&hEs(this,N);var D=this.playerResponse.overlay;if(D){var t=D.playerControlsOverlayRenderer;if(t)if(EqZ(this,t.controlBgHtml),t.mutedAutoplay){var C=g.k(t.mutedAutoplay,NFd);if(C&&C.endScreen){var Ac=g.k(C.endScreen,p4K);Ac&&Ac.text&&(this.If=g.mF(Ac.text))}}else this.mutedAutoplay=!1}var Bi=this.playerResponse.playabilityStatus;if(Bi){var ar=Bi.backgroundability;ar&&ar.backgroundabilityRenderer.backgroundable&& (this.backgroundable=!0);var nk,Y;if((nk=Bi.offlineability)==null?0:(Y=nk.offlineabilityRenderer)==null?0:Y.offlineable)this.offlineable=!0;var Pi=Bi.contextParams;Pi&&(this.contextParams=Pi);var wq=Bi.pictureInPicture;wq&&wq.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);Bi.playableInEmbed&&(this.allowEmbed=!0);var Rt=Bi.ypcClickwrap;if(Rt){var pX=Rt.playerLegacyDesktopYpcClickwrapRenderer,O5=Rt.ypcRentalActivationRenderer;if(pX)this.I$=pX.durationMessage||"",this.BA=!0;else if(O5){var pk= O5.durationMessage;this.I$=pk?g.mF(pk):"";this.BA=!0}}var tK=Bi.errorScreen;if(tK){if(tK.playerLegacyDesktopYpcTrailerRenderer){var c8=tK.playerLegacyDesktopYpcTrailerRenderer;this.mC=c8.trailerVideoId||"";var DU=tK.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var lN=DU&&DU.ypcTrailerRenderer}else if(tK.playerLegacyDesktopYpcOfferRenderer)c8=tK.playerLegacyDesktopYpcOfferRenderer;else if(tK.ypcTrailerRenderer){lN=tK.ypcTrailerRenderer;var T=lN.fullVideoMessage;this.Gn=T?g.mF(T):"";var IL,rO;this.mC= ((IL=g.k(lN,UsU))==null?void 0:(rO=IL.videoDetails)==null?void 0:rO.videoId)||""}c8&&(this.xP=c8.itemTitle||"",c8.itemUrl&&(this.GW=c8.itemUrl),c8.itemBuyUrl&&(this.Wt=c8.itemBuyUrl),this.Xp=c8.itemThumbnail||"",this.sR=c8.offerHeadline||"",this.jT=c8.offerDescription||"",this.xI=c8.offerId||"",this.b5=c8.offerButtonText||"",this.Al=c8.offerButtonFormattedText||null,this.HM=c8.overlayDurationMsec||NaN,this.Gn=c8.fullVideoMessage||"",this.c6=!0);if(lN){var fk=g.k(lN,UsU);if(fk)this.Zj={raw_player_response:fk}; else{var XS=g.k(lN,qpt);this.Zj=XS?Rw(XS):null}this.c6=!0}}}var F=this.playerResponse.playbackTracking;if(F){var y9=R,Dc=w3(F.googleRemarketingUrl);Dc&&(this.googleRemarketingUrl=Dc);var KG=w3(F.youtubeRemarketingUrl);KG&&(this.youtubeRemarketingUrl=KG);var U5={},gq=w3(F.ptrackingUrl);if(gq){var Y7=x6(gq),q5=Y7.oid;q5&&(this.i9=q5);var N5=Y7.pltype;N5&&(this.m9=N5);var b=Y7.ptchn;b&&(this.rE=b);var P=Y7.ptk;P&&(this.d9=encodeURIComponent(P));var X=Y7.m;X&&(this.nY=X)}var x=w3(F.qoeUrl);if(x){for(var S= g.f0(x),ms=g.u(Object.keys(S)),J=ms.next();!J.done;J=ms.next()){var Rr=J.value,I=S[Rr];S[Rr]=Array.isArray(I)?I.join(","):I}this.s1=S;var vi=S.cat;vi&&(this.C("html5_enable_qoe_cat_list")?this.IL=this.IL.concat(vi.split(",")):this.jo=vi);var k7=S.live;k7&&(this.q8=k7);var sY=S.drm_product;sY&&(this.drmProduct=sY)}var H8=w3(F.videostatsPlaybackUrl);if(H8){var dq=x6(H8),FZ=dq.adformat;if(FZ){y9.adformat=FZ;var YJ=this.U(),Qr=Gcr(FZ,this.Yf,YJ.Y,YJ.W);Qr&&(this.adFormat=Qr)}var It=dq.aqi;It&&(y9.ad_query_id= It);var bj=dq.autoplay;bj&&(this.Hf=bj=="1",this.WM=bj=="1");var P0=dq.autonav;P0&&(this.isAutonav=P0=="1");var rq=dq.delay;rq&&(this.ZL=zs(rq));var v8=dq.ei;v8&&(this.eventId=v8);if(dq.adcontext||FZ)this.Hf=!0;var $U=dq.feature;$U&&(this.Gu=$U);var aL=dq.list;aL&&(this.playlistId=aL);var ed=dq.of;ed&&(this.L2=ed);var f8=dq.osid;f8&&(this.osid=f8);var AA=dq.referrer;AA&&(this.referrer=AA);var ZU=dq.sdetail;ZU&&(this.MF=ZU);var zK=dq.ssrt;zK&&(this.PR=zK=="1");var Xw=dq.subscribed;Xw&&(this.subscribed= Xw=="1");var Md=dq.uga;Md&&(this.userGenderAge=Md);var ic=dq.upt;ic&&(this.fV=ic);var j4=dq.vm;j4&&(this.videoMetadata=j4);U5.playback=dq}var AF=w3(F.videostatsWatchtimeUrl);if(AF){var K8=x6(AF),Go=K8.ald;Go&&(this.XN=Go);U5.watchtime=K8}var uo=w3(F.atrUrl);if(uo){var Ud=x6(uo);U5.atr=Ud}var Rd=w3(F.engageUrl);if(Rd){var Sy=x6(Rd);U5.engage=Sy}this.LG=U5;if(F.promotedPlaybackTracking){var Ms=F.promotedPlaybackTracking;Ms.startUrls&&(this.hg=Ms.startUrls);Ms.firstQuartileUrls&&(this.RP=Ms.firstQuartileUrls); Ms.secondQuartileUrls&&(this.Ay=Ms.secondQuartileUrls);Ms.thirdQuartileUrls&&(this.d1=Ms.thirdQuartileUrls);Ms.completeUrls&&(this.Gq=Ms.completeUrls);Ms.engagedViewUrls&&(Ms.engagedViewUrls.length>1&&g.dP(new g.JD("There are more than one engaged_view_urls.")),this.OH=Ms.engagedViewUrls[0])}}var PY=this.playerResponse.playerCueRanges;PY&&PY.length>0&&(this.cueRanges=PY);var k9=this.playerResponse.playerCueRangeSet;k9&&g.HZ(this,k9);a:{var uT=this.playerResponse.adPlacements;if(uT)for(var G2=g.u(uT), F7=G2.next();!F7.done;F7=G2.next()){var a7=void 0,sd=void 0,BE=(a7=F7.value.adPlacementRenderer)==null?void 0:(sd=a7.renderer)==null?void 0:sd.videoAdTrackingRenderer;if(BE){var HE=BE;break a}}HE=null}var QS=HE;F&&F.promotedPlaybackTracking&&QS&&g.dP(new g.JD("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var am;if(!(am=QS))a:{for(var n8=g.u(this.playerResponse.adSlots||[]),PM=n8.next();!PM.done;PM=n8.next()){var us=g.k(PM.value,A9);if(us===void 0||!vrs(us))break; var pa=void 0,kz=(pa=us.fulfillmentContent)==null?void 0:pa.fulfilledLayout,D1=g.k(kz,CW);if(D1&&ZR(D1)){am=!0;break a}}am=!1}am&&(this.zs=!0);var Z1=this.playerResponse.playerAds;if(Z1)for(var BK=R,UO=g.u(Z1),ej=UO.next();!ej.done;ej=UO.next()){var Sl=ej.value;if(Sl){var HK=Sl.playerLegacyDesktopWatchAdsRenderer;if(HK){var JF=HK.playerAdParams;if(JF){JF.autoplay=="1"&&(this.WM=this.Hf=!0);this.TK=JF.encodedAdSafetyReason||null;JF.showContentThumbnail!==void 0&&(this.qL=!!JF.showContentThumbnail); BK.enabled_engage_types=JF.enabledEngageTypes;break}}}}var FT=this.playerResponse.playerConfig;if(FT){var $G=FT.manifestlessWindowedLiveConfig;if($G){var jV=Number($G.minDvrSequence),nv=Number($G.maxDvrSequence),FR=Number($G.minDvrMediaTimeMs),my=Number($G.maxDvrMediaTimeMs),jl=Number($G.startWalltimeMs);jV&&(this.ZG=jV);FR&&(this.Dq=FR/1E3,this.C("html5_sabr_parse_live_metadata_playback_boundaries")&&PZ(this)&&(this.Fv=FR/1E3));nv&&(this.bH=nv);my&&(this.sF=my/1E3,this.C("html5_sabr_parse_live_metadata_playback_boundaries")&& PZ(this)&&(this.mS=my/1E3));jl&&(this.vZ=jl/1E3);(jV||FR)&&(nv||my)&&(this.allowLiveDvr=this.isLivePlayback=this.LX=!0,this.Rz=!1)}var kZ=FT.daiConfig;if(kZ){if(kZ.enableDai){this.O9=!0;var hL=kZ.enableServerStitchedDai;hL&&(this.enableServerStitchedDai=hL);var qw=kZ.enablePreroll;qw&&(this.vv=qw)}var nM;if(kZ.daiType==="DAI_TYPE_SS_DISABLED"||((nM=kZ.debugInfo)==null?0:nM.isDisabledUnpluggedChannel))this.Hy=!0;kZ.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.Mk=!0)}var h_=FT.audioConfig;if(h_){var kO= h_.loudnessDb;kO!=null&&(this.Vu=kO);var tFj=h_.trackAbsoluteLoudnessLkfs;tFj!=null&&(this.Ts=tFj);var YWr=h_.loudnessTargetLkfs;YWr!=null&&(this.loudnessTargetLkfs=YWr);h_.audioMuted&&(this.H$=!0);h_.muteOnStart&&(this.xt=!0);var XQ=h_.loudnessNormalizationConfig;if(XQ){XQ.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);XQ.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget=!0);var MFj=XQ.minimumLoudnessTargetLkfs;MFj!=null&&(this.minimumLoudnessTargetLkfs=MFj); var R59=XQ.maxStatefulTimeThresholdSec;R59!=null&&(this.maxStatefulTimeThresholdSec=R59)}h_.playAudioOnly&&(this.FR=!0)}var XIi=FT.playbackEndConfig;if(XIi){var l$J=XIi.endSeconds,ysj=XIi.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(l$J&&(this.endSeconds=l$J),ysj&&(this.limitedPlaybackDurationInSeconds=ysj))}var QM=FT.fairPlayConfig;if(QM){var f$q=QM.certificate;f$q&&(this.jS=Pn(f$q));var AsJ=Number(QM.keyRotationPeriodMs);AsJ>0&&(this.V_=AsJ);var KNk=Number(QM.keyPrefetchMarginMs);KNk>0&& (this.fY=KNk)}var I3=FT.playbackStartConfig;if(I3){this.Y8=Number(I3.startSeconds);var GWT=I3.liveUtcStartSeconds,a$o=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;GWT&&!a$o&&(this.liveUtcStartSeconds=Number(GWT));var Toc=I3.startPosition;if(Toc){var sxq=Toc.utcTimeMillis;sxq&&!a$o&&(this.liveUtcStartSeconds=Number(sxq)*.001);var BVJ=Toc.streamTimeMillis;BVJ&&(this.Qb=Number(BVJ)*.001)}this.progressBarStartPosition=I3.progressBarStartPosition;this.progressBarEndPosition=I3.progressBarEndPosition}else{var dds= FT.skippableSegmentsConfig;if(dds){var Hxq=dds.introSkipDurationMs;Hxq&&(this.qA=Number(Hxq)/1E3);var nes=dds.outroSkipDurationMs;nes&&(this.BV=Number(nes)/1E3)}}var rWs=FT.skippableIntroConfig;if(rWs){var mkZ=Number(rWs.startMs),oek=Number(rWs.endMs);isNaN(mkZ)||isNaN(oek)||(this.ZW=mkZ,this.R2=oek)}var h59=FT.streamSelectionConfig;h59&&(this.eZ=Number(h59.maxBitrate));var csq=FT.vrConfig;csq&&(this.q_=csq.partialSpherical=="1");var Tc=FT.webDrmConfig;if(Tc){Tc.skipWidevine&&(this.YM=!0);var Eec= Tc.widevineServiceCert;Eec&&(this.aU=Pn(Eec));Tc.useCobaltWidevine&&(this.useCobaltWidevine=!0);Tc.startWithNoQualityConstraint&&(this.ML=!0)}var JI=FT.mediaCommonConfig;if(JI){var $L=JI.dynamicReadaheadConfig;if($L){this.maxReadAheadMediaTimeMs=$L.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=$L.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=$L.readAheadGrowthRateMs||NaN;var WNJ,LNr=JI==null?void 0:(WNJ=JI.mediaUstreamerRequestConfig)==null?void 0:WNJ.videoPlaybackUstreamerConfig; LNr&&(this.P0=Pn(LNr));var vQr=JI==null?void 0:JI.sabrContextUpdates;if(vQr&&vQr.length>0)for(var OxT=g.u(vQr),zS7=OxT.next();!zS7.done;zS7=OxT.next()){var sx=zS7.value;if(sx.type&&sx.value){var qCO={type:sx.type,scope:sx.scope,value:Pn(sx.value)||void 0,sendByDefault:sx.sendByDefault};this.sabrContextUpdates.set(sx.type,qCO)}}}var ixq=JI.serverPlaybackStartConfig;ixq&&(this.serverPlaybackStartConfig=ixq);JI.useServerDrivenAbr&&(this.Kf=!0);var PlT=JI.requestPipeliningConfig;PlT&&(this.requestPipeliningConfig= PlT)}var uUo=FT.inlinePlaybackConfig;uUo&&(this.i_=!!uUo.showAudioControls);var et=FT.embeddedPlayerConfig;if(et){this.embeddedPlayerConfig=et;var wIK=et.embeddedPlayerMode;if(wIK){var FNj=this.U();FNj.Dq=wIK;FNj.L=wIK==="EMBEDDED_PLAYER_MODE_PFL"}var QxQ=et.permissions;QxQ&&(this.allowImaMonetization=!!QxQ.allowImaMonetization)}var bM=FT.webPlayerConfig;bM&&(bM.gatewayExperimentGroup&&(this.gatewayExperimentGroup=bM.gatewayExperimentGroup),bM.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var gU= this.playerResponse.streamingData;if(gU){var xdZ=gU.formats;if(xdZ){for(var db=[],$kT=g.u(xdZ),ICZ=$kT.next();!ICZ.done;ICZ=$kT.next()){var Nor=ICZ.value;db.push(Nor.itag+"/"+Nor.width+"x"+Nor.height)}this.uN=db.join(",");db=[];for(var e5r=g.u(xdZ),pI7=e5r.next();!pI7.done;pI7=e5r.next()){var rb=pI7.value,vp={itag:rb.itag,type:rb.mimeType,quality:rb.quality},bxs=rb.url;bxs&&(vp.url=bxs);var X2=CA(rb),tVD=X2.JP,YC5=X2.Z1,MVS=X2.s;X2.O7&&(vp.url=tVD,vp.sp=YC5,vp.s=MVS);db.push(g.WF(vp))}this.eI=db.join(",")}var Udr= gU.hlsFormats;if(Udr&&!this.C("safari_live_drm_captions_fix")){var XVK=FT||null,T$={};if(XVK){var SJi=XVK.audioPairingConfig;if(SJi&&SJi.pairs)for(var TVZ=g.u(SJi.pairs),jmZ=TVZ.next();!jmZ.done;jmZ=TVZ.next()){var dkk=jmZ.value,koq=dkk.videoItag;T$[koq]||(T$[koq]=[]);T$[koq].push(dkk.audioItag)}}for(var rsY={},veo=g.u(Udr),Dds=veo.next();!Dds.done;Dds=veo.next()){var z57=Dds.value;rsY[z57.itag]=z57.bitrate}for(var wVi=[],xkk=g.u(Udr),Z$c=xkk.next();!Z$c.done;Z$c=xkk.next()){var Mz=Z$c.value,bx={itag:Mz.itag, type:Mz.mimeType,url:Mz.url,bitrate:Mz.bitrate,width:Mz.width,height:Mz.height,fps:Mz.fps},dj=Mz.audioTrack;if(dj){var I$Y=dj.displayName;I$Y&&(bx.name=I$Y,bx.audio_track_id=dj.id,dj.audioIsDefault&&(bx.is_default="1"))}if(Mz.drmFamilies){for(var NVK=[],pVQ=g.u(Mz.drmFamilies),JWo=pVQ.next();!JWo.done;JWo=pVQ.next())NVK.push(IZ[JWo.value]);bx.drm_families=NVK.join(",")}var rj=T$[Mz.itag];if(rj&&rj.length){bx.audio_itag=rj.join(",");var Ukq=rsY[rj[0]];Ukq&&(bx.bitrate+=Ukq)}var Sos=auJ(Mz);Sos&&(bx.eotf= Sos);Mz.audioChannels&&(bx.audio_channels=Mz.audioChannels);wVi.push(g.WF(bx))}this.hlsFormats=wVi.join(",")}var gQY=gU.licenseInfos;if(gQY&&gQY.length>0){for(var jxs={},kWK=g.u(gQY),VSZ=kWK.next();!VSZ.done;VSZ=kWK.next()){var Dki=VSZ.value,Zx9=Dki.drmFamily,Js9=Dki.url;Zx9&&Js9&&(jxs[IZ[Zx9]]=Js9)}this.sS=jxs}var geZ=gU.drmParams;geZ&&(this.drmParams=geZ);var VZc=gU.dashManifestUrl;VZc&&(this.tF=g.L4(VZc,{cpn:this.clientPlaybackNonce}));var ClK=gU.hlsManifestUrl;ClK&&(this.hlsvp=ClK);var qo7=gU.probeUrl; qo7&&(this.probeUrl=D_(g.L4(qo7,{cpn:this.clientPlaybackNonce})));var tZQ=gU.serverAbrStreamingUrl;tZQ&&(this.tO=new g.kM(tZQ,!0))}var Yor=this.playerResponse.trackingParams;Yor&&(this.CX=Yor);var P4=this.playerResponse.videoDetails;if(P4){var XC=R,C4Y=P4.videoId;C4Y&&(this.videoId=C4Y,XC.video_id||(XC.video_id=C4Y));var qJ7=P4.title;qJ7&&(this.title=qJ7,XC.title||(XC.title=qJ7));var tS7=P4.lengthSeconds;tS7&&(this.lengthSeconds=Number(tS7),XC.length_seconds||(XC.length_seconds=tS7));var MZK=P4.keywords; MZK&&(this.keywords=DYq(MZK));var YJT=P4.channelId;YJT&&(this.BQ=YJT,XC.ucid||(XC.ucid=YJT));var R7J=P4.viewCount;R7J&&(this.rawViewCount=Number(R7J));var MSQ=P4.author;MSQ&&(this.author=MSQ,XC.author||(XC.author=MSQ));var lmJ=P4.shortDescription;lmJ&&(this.shortDescription=lmJ);var yE7=P4.isCrawlable;yE7&&(this.isListed=yE7);var fmj=P4.musicVideoType;fmj&&(this.musicVideoType=fmj);var RAs=P4.isLive;RAs!=null&&(this.isLivePlayback=RAs);if(RAs||P4.isUpcoming)this.isPremiere=!P4.isLiveContent;var AEo= P4.thumbnail;AEo&&(this.W=zt(AEo));var KXi=P4.isExternallyHostedPodcast;KXi&&(this.isExternallyHostedPodcast=KXi);var llq=P4.viewerLivestreamJoinPosition;if(llq==null?0:llq.utcTimeMillis)this.dS=zs(llq.utcTimeMillis);var G67=FT||null,ya9=R;P4.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);P4.isUpcoming&&(this.isUpcoming=!0);if(P4.isPostLiveDvr){this.Rz=!0;var amq=P4.latencyClass;amq&&(this.latencyClass=i$U[amq]||"UNKNOWN");P4.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var fl9= !1;this.B1?(this.allowLiveDvr=LI()?!0:qr&&qb<5?!1:!0,this.isLivePlayback=!0):P4.isLive?(ya9.livestream="1",this.allowLiveDvr=P4.isLiveDvrEnabled?LI()?!0:qr&&qb<5?!1:!0:!1,this.partnerId=27,fl9=!0):P4.isUpcoming&&(fl9=!0);if(P4.isLive||this.B1){P4.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var sBj=P4.latencyClass;sBj&&(this.latencyClass=i$U[sBj]||"UNKNOWN");var BlK=P4.liveChunkReadahead;BlK&&(this.liveChunkReadahead=BlK);var NU=G67&&G67.livePlayerConfig;if(NU){NU.hasSubfragmentedFmp4&& (this.hasSubfragmentedFmp4=!0);NU.hasSubfragmentedWebm&&(this.nj=!0);NU.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var H2q=NU.liveExperimentalContentId;H2q&&(this.liveExperimentalContentId=Number(H2q));var nc9=NU.isLiveHeadPlayable;this.C("html5_live_head_playable")&&nc9!=null&&(this.isLiveHeadPlayable=nc9)}}fl9&&(this.isLivePlayback=!0,ya9.adformat&&ya9.adformat.split("_")[1]!=="8"||this.Yb.push("heartbeat"))}var mv9=P4.isPrivate;mv9!==void 0&&(this.isPrivate=y8(this.isPrivate, mv9))}if(Bi){var ocJ=P4||null,h77=!1,pn=Bi.errorScreen;h77=pn&&(pn.playerLegacyDesktopYpcOfferRenderer||pn.playerLegacyDesktopYpcTrailerRenderer||pn.ypcTrailerRenderer)?!0:ocJ&&ocJ.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(Bi.status);if(!h77){this.errorCode=Y2s(Bi.errorCode)||"auth";var vN=pn&&pn.playerErrorMessageRenderer;if(vN){this.playerErrorMessageRenderer=vN;var cEq=vN.reason;cEq&&(this.errorReason=g.mF(cEq));var Aa7=vN.subreason;Aa7&&(this.Pp=g.mF(Aa7),this.jC=Aa7)}else this.errorReason= Bi.reason||null;var KWJ=Bi.status;if(KWJ==="LOGIN_REQUIRED")this.errorDetail="1";else if(KWJ==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(KWJ==="AGE_CHECK_REQUIRED"){var EcQ=Bi.errorScreen,WXZ=EcQ&&EcQ.playerKavRenderer;this.errorDetail=WXZ&&WXZ.kavUrl?"4":"3"}else this.errorDetail=Bi.isBlockedInRestrictedMode?"5":"0"}}var LXq=this.playerResponse.interstitialPods;LXq&&oqK(this,LXq);this.v1&&this.eventId&&(this.v1=K0(this.v1,{ei:this.eventId}));var Gm9=this.playerResponse.captions;if(Gm9&& Gm9.playerCaptionsTracklistRenderer)a:{var TZ=Gm9.playerCaptionsTracklistRenderer;this.captionTracks=[];if(TZ.captionTracks)for(var O2k=g.u(TZ.captionTracks),alj=O2k.next();!alj.done;alj=O2k.next()){var dC=alj.value,i2Z=S4r(dC.baseUrl);if(!i2Z)break a;var sdc={is_translateable:!!dC.isTranslatable,languageCode:dC.languageCode,languageName:dC.name&&g.mF(dC.name),url:i2Z,vss_id:dC.vssId,kind:dC.kind};sdc.name=dC.trackName;sdc.displayName=dC.name&&g.mF(dC.name);this.captionTracks.push(new g.Xh(sdc))}this.Zw= TZ.audioTracks||[];this.Je=TZ.defaultAudioTrackIndex||0;this.pY=[];if(TZ.translationLanguages)for(var PXY=g.u(TZ.translationLanguages),Bto=PXY.next();!Bto.done;Bto=PXY.next()){var UR=Bto.value,B$={};B$.languageCode=UR.languageCode;B$.languageName=g.mF(UR.languageName);if(UR.translationSourceTrackIndices){B$.translationSourceTrackIndices=[];for(var uKc=g.u(UR.translationSourceTrackIndices),HDZ=uKc.next();!HDZ.done;HDZ=uKc.next())B$.translationSourceTrackIndices.push(HDZ.value)}if(UR.excludeAudioTrackIndices){B$.excludeAudioTrackIndices= [];for(var FX7=g.u(UR.excludeAudioTrackIndices),n9Y=FX7.next();!n9Y.done;n9Y=FX7.next())B$.excludeAudioTrackIndices.push(n9Y.value)}this.pY.push(B$)}this.LD=[];if(TZ.defaultTranslationSourceTrackIndices)for(var QBq=g.u(TZ.defaultTranslationSourceTrackIndices),m2o=QBq.next();!m2o.done;m2o=QBq.next())this.LD.push(m2o.value);this.xO=!!TZ.contribute&&!!TZ.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.Y8=Number(this.clipConfig.startTimeMs)* .001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&cGQ(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var $vK;this.compositeLiveIngestionOffsetToken=($vK=this.playerResponse.playbackTracking)==null?void 0:$vK.compositeLiveIngestionOffsetToken;var e7T;this.compositeLiveStatusToken=(e7T=this.playerResponse.playbackTracking)==null?void 0: e7T.compositeLiveStatusToken}aY(this,R);R.queue_info&&(this.queueInfo=R.queue_info);var b2c=R.hlsdvr;b2c!=null&&(this.allowLiveDvr=Number(b2c)===1?LI()?!0:qr&&qb<5?!1:!0:!1);this.adQueryId=R.ad_query_id||null;this.TK||(this.TK=R.encoded_ad_safety_reason||null);this.H$=y8(this.H$,R.infringe||R.muted);this.Z9=R.authkey;this.SW=R.authuser;this.mutedAutoplay=y8(this.mutedAutoplay,R&&R.playmuted);this.mutedAutoplayDurationMode=AD(this.mutedAutoplayDurationMode,R&&R.muted_autoplay_duration_mode);this.BT= y8(this.BT,R&&R.mutedautoplay);var z$=R.length_seconds;z$&&(this.lengthSeconds=typeof z$==="string"?zs(z$):z$);if(this.isAd()||this.iP||!g.BW(g.Yh(this.yL)))this.endSeconds=AD(this.endSeconds,this.BV||R.end||R.endSeconds);else{var RbA=g.Yh(this.yL),wj=this.lengthSeconds;switch(RbA){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":wj>30?this.limitedPlaybackDurationInSeconds=30:wj<30&&wj>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds= wj*.2}}this.CX=KF(this.CX,R.itct);this.iN=y8(this.iN,R.is_live_destination);this.isLivePlayback=y8(this.isLivePlayback,R.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.QS();R.isUpcoming&&(this.isUpcoming=y8(this.isUpcoming,R.isUpcoming));this.Rz=y8(this.Rz,R.post_live_playback);this.LX&&(this.Rz=!1);this.isMdxPlayback=y8(this.isMdxPlayback,R.mdx);var xL=R.mdx_control_mode;xL&&(this.mdxControlMode=typeof xL==="number"?xL:zs(xL));this.isInlinePlaybackNoAd=y8(this.isInlinePlaybackNoAd, R.is_inline_playback_no_ad);this.nA=AD(this.nA,R.reload_count);this.reloadReason=KF(this.reloadReason,R.reload_reason);this.qL=y8(this.qL,R.show_content_thumbnail);this.cycToken=R.cyc||null;var XQj=vm(R);Object.keys(XQj).length>0&&(this.W=XQj);this.sL=KF(this.sL,R.vvt);this.mdxEnvironment=KF(this.mdxEnvironment,R.mdx_environment);R.source_container_playlist_id&&(this.sourceContainerPlaylistId=R.source_container_playlist_id);R.serialized_mdx_metadata&&(this.serializedMdxMetadata=R.serialized_mdx_metadata); this.Cp=R.osig;this.eventId||(this.eventId=R.eventid);this.osid||(this.osid=R.osid);this.playlistId=KF(this.playlistId,R.list);R.index&&(this.playlistIndex=this.playlistIndex===void 0?AD(0,R.index):AD(this.playlistIndex,R.index));this.Kv=R.pyv_view_beacon_url;this.Ha=R.pyv_quartile25_beacon_url;this.Ba=R.pyv_quartile50_beacon_url;this.Mz=R.pyv_quartile75_beacon_url;this.uq=R.pyv_quartile100_beacon_url;var Tlc=R.session_data;!this.rY&&Tlc&&(this.rY=YO(Tlc,"&").feature);this.isFling=AD(this.isFling? 1:0,R.is_fling)===1;this.vnd=AD(this.vnd,R.vnd);this.forceAdsUrl=KF(this.forceAdsUrl,R.force_ads_url);this.XO=KF(this.XO,R.ctrl);this.EU=KF(this.EU,R.ytr);this.e7=R.ytrcc;this.iq=R.ytrexp;this.WJ=R.ytrext;this.Qq=KF(this.Qq,R.adformat);this.Yf=KF(this.Yf,R.attrib);this.slotPosition=AD(this.slotPosition,R.slot_pos);this.breakType=R.break_type;this.PR=y8(this.PR,R.ssrt);this.videoId=aa(R)||this.videoId;this.D=KF(this.D,R.vss_credentials_token);this.BO=KF(this.BO,R.vss_credentials_token_type);this.FR= y8(this.FR,R.audio_only);this.UL=y8(this.UL,R.aac_high);this.J5=y8(this.J5,R.prefer_low_quality_audio);this.Yp=y8(this.Yp,R.uncap_inline_quality);this.C("html5_enable_qoe_cat_list")?R.qoe_cat&&(this.IL=this.IL.concat(R.qoe_cat.split(","))):this.jo=KF(this.jo,R.qoe_cat);this.Pv=y8(this.Pv,R.download_media);var dvo=R.prefer_gapless;this.V=dvo!=null?y8(this.V,dvo):this.V?this.V:this.yL.preferGapless&&this.yL.supportsGaplessShorts();B17(this.playerResponse)&&this.Yb.push("ad");var rEs=R.adaptive_fmts; rEs&&(this.adaptiveFormats=rEs,this.T4("adpfmts",{},!0));var vcs=R.allow_embed;vcs&&(this.allowEmbed=Number(vcs)===1);var z7J=R.backgroundable;z7J&&(this.backgroundable=Number(z7J)===1);var wQq=R.autonav;wQq&&(this.isAutonav=Number(wQq)===1);var xvJ=R.autoplay;xvJ&&(this.Hf=this.WM=Number(xvJ)===1);var Imo=R.iv_load_policy;Imo&&(this.annotationsLoadPolicy=fF(this.annotationsLoadPolicy,Imo,ME));var NlZ=R.cc_lang_pref;NlZ&&(this.captionsLanguagePreference=KF(NlZ,this.captionsLanguagePreference));var pQ9= R.cc_load_policy;pQ9&&(this.EV=fF(this.EV,pQ9,ME));var Uv7;this.deviceCaptionsOn=(Uv7=R.device_captions_on)!=null?Uv7:void 0;var SiZ;this.Qv=(SiZ=R.device_captions_lang_pref)!=null?SiZ:"";var jBc;this.zS=(jBc=R.viewer_selected_caption_langs)!=null?jBc:[];if(!this.C("html5_enable_ssap_entity_id")){var k6Y=R.cached_load;k6Y&&(this.jO=y8(this.jO,k6Y))}if(R.dash==="0"||R.dash===0||R.dash===!1)this.N8=!0;var Dvc=R.dashmpd;Dvc&&(this.tF=g.L4(Dvc,{cpn:this.clientPlaybackNonce}));var Z2Y=R.delay;Z2Y&&(this.ZL= zs(Z2Y));var o99=this.BV||R.end;if(this.ol?o99!=null:o99!=void 0)this.clipEnd=AD(this.clipEnd,o99);var JET=R.fmt_list;JET&&(this.uN=JET);R.heartbeat_preroll&&this.Yb.push("heartbeat");this.cT=-Math.floor(Math.random()*10);this.Dk=-Math.floor(Math.random()*40);var gck=R.is_listed;gck&&(this.isListed=y8(this.isListed,gck));var Vaj=R.is_private;Vaj&&(this.isPrivate=y8(this.isPrivate,Vaj));var CXZ=R.is_dni;CXZ&&(this.nJ=y8(this.nJ,CXZ));var qij=R.dni_color;qij&&(this.UI=KF(this.UI,qij));var tar=R.pipable; tar&&(this.pipable=y8(this.pipable,tar));this.T_=(this.Gt=this.pipable&&this.yL.aB)&&!this.yL.showMiniplayerButton;var Yi9=R.paid_content_overlay_duration_ms;Yi9&&(this.paidContentOverlayDurationMs=zs(Yi9));var MaY=R.paid_content_overlay_text;MaY&&(this.paidContentOverlayText=MaY);var R2Y=R.url_encoded_fmt_stream_map;R2Y&&(this.eI=R2Y);var lii=R.hls_formats;lii&&(this.hlsFormats=lii);var yYK=R.hlsvp;yYK&&(this.hlsvp=yYK);var IQ=R.live_start_walltime;IQ&&(this.jx=typeof IQ==="number"?IQ:zs(IQ));var NG= R.live_manifest_duration;NG&&(this.zz=typeof NG==="number"?NG:zs(NG));var fij=R.player_params;fij&&(this.playerParams=fij);var AYj=R.partnerid;AYj&&(this.partnerId=AD(this.partnerId,AYj));var KBQ=R.probe_url;KBQ&&(this.probeUrl=D_(g.L4(KBQ,{cpn:this.clientPlaybackNonce})));var hAo=R.pyv_billable_url;hAo&&c0T(hAo)&&(this.OH=hAo);var cak=R.pyv_conv_url;cak&&c0T(cak)&&(this.Ee=cak);ZWs(this,R);this.startSeconds>0?this.C("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.Y8||this.qA|| R.start||R.startSeconds)&&this.T4("lss",{css:this.startSeconds,pcss:this.Y8,iss:this.qA,ps:R.start||void 0,pss:R.startSeconds||void 0}):this.LA=this.startSeconds=AD(this.startSeconds,this.Y8||this.qA||R.start||R.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var GpT=R.live_utc_start;if(GpT!=null)this.liveUtcStartSeconds=Number(GpT);else{var E9T=this.startSeconds;E9T&&isFinite(E9T)&&E9T>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds> 0)){var aiQ=R.utc_start_millis;aiQ&&(this.liveUtcStartSeconds=Number(aiQ)*.001)}var sbq=R.stream_time_start_millis;sbq&&(this.Qb=Number(sbq)*.001);var WWq=this.qA||R.start;(this.ol?WWq==null||Number(R.resume)===1:WWq==void 0||R.resume=="1")||this.isLivePlayback||(this.clipStart=AD(this.clipStart,WWq));var Bdk=R.url_encoded_third_party_media;Bdk&&(this.L7=lW(Bdk));var LW7=R.ypc_offer_button_formatted_text;if(LW7){var HuT=JSON.parse(LW7);this.Al=HuT!=null?HuT:null;this.xM=LW7}var nxo=R.ypc_offer_button_text; nxo&&(this.b5=nxo);var myQ=R.ypc_offer_description;myQ&&(this.jT=myQ);var oxZ=R.ypc_offer_headline;oxZ&&(this.sR=oxZ);var h2s=R.ypc_full_video_message;h2s&&(this.Gn=h2s);var cYo=R.ypc_offer_id;cYo&&(this.xI=cYo);var Exc=R.ypc_buy_url;Exc&&(this.Wt=Exc);var WB9=R.ypc_item_thumbnail;WB9&&(this.Xp=WB9);var LBJ=R.ypc_item_title;LBJ&&(this.xP=LBJ);var Ouq=R.ypc_item_url;Ouq&&(this.GW=Ouq);var iuT=R.ypc_vid;iuT&&(this.mC=iuT);R.ypc_overlay_timeout&&(this.HM=Number(R.ypc_overlay_timeout));var PIr=R.ypc_trailer_player_vars; PIr&&(this.Zj=Rw(PIr));var uBc=R.ypc_original_itct;uBc&&(this.mWL=uBc);this.BQ=KF(this.BQ,R.ucid);this.yC=R.storyboard_spec||null;this.NF=R.live_storyboard_spec||null;this.Lo=R.iv_endscreen_url||null;this.c6=y8(this.c6,R.ypc_module);this.BA=y8(this.BA,R.ypc_clickwrap_module);this.c6&&this.Yb.push("ypc");this.BA&&this.Yb.push("ypc_clickwrap");this.qK={video_id:R.video_id,eventid:R.eventid,cbrand:R.cbrand,cbr:R.cbr,cbrver:R.cbrver,c:R.c,cver:R.cver,ctheme:R.ctheme,cplayer:R.cplayer,cmodel:R.cmodel, cnetwork:R.cnetwork,cos:R.cos,cosver:R.cosver,cplatform:R.cplatform,user_age:R.user_age,user_display_image:R.user_display_image,user_display_name:R.user_display_name,user_gender:R.user_gender,csi_page_type:R.csi_page_type,csi_service_name:R.csi_service_name,enablecsi:R.enablecsi,enabled_engage_types:R.enabled_engage_types};UYZ(this,R);var FBJ=R.cotn;FBJ&&(this.cotn=FBJ);if(A9s(this))QE(this)&&(this.isLivePlayback&&this.tF&&(this.AJ=!0),this.jS&&(this.Zo=!0));else if(KYj(this))this.AJ=!0;else{var QbY, $ys,e2j=((QbY=this.playerResponse)==null?void 0:($ys=QbY.streamingData)==null?void 0:$ys.adaptiveFormats)||[];if(e2j.length>0)var zc=fX7(this,e2j);else{var bu9=this.adaptiveFormats;if(bu9&&!QE(this)){this.yL.J.L&&(qq=!0);var SP=rI(bu9),ODj=this.sS,XkT=this.lengthSeconds,lbU=this.isLivePlayback,wb=this.Rz,jP=this.yL,y$r=PZZ(SP);if(lbU||wb){var Td9=jP==null?void 0:jP.experiments,p_=new wS("",Td9,!0);p_.QS=!0;p_.isManifestless=!0;p_.X=!wb;p_.isLive=!wb;p_.Rz=wb;for(var dyo=g.u(SP),iDs=dyo.next();!iDs.done;iDs= dyo.next()){var kf=iDs.value,rYq=pK(kf,ODj),H$=U6(kf.url,kf.sp,kf.s),vxj=H$.get("id");vxj&&vxj.includes("%7E")&&(p_.B=!0);var z2Q=void 0,fb5=(z2Q=Td9)==null?void 0:z2Q.EL("html5_max_known_end_time_rebase"),A$Z=Number(kf.target_duration_sec)||5,Ket=Number(kf.max_dvr_duration_sec)||14400,wkk=Number(H$.get("mindsq")||H$.get("min_sq")||"0"),xyr=Number(H$.get("maxdsq")||H$.get("max_sq")||"0")||Infinity;p_.ZG=p_.ZG||wkk;p_.bH=p_.bH||xyr;var G95=!Zw(rYq.mimeType);H$&&rS(p_,new cC(H$,rYq,{Sv:A$Z,bR:G95,gF:Ket, ZG:wkk,bH:xyr,Qd:300,Rz:wb,PJ:fb5}))}var IiT=p_}else{if(y$r==="FORMAT_STREAM_TYPE_OTF"){var pT=XkT;pT=pT===void 0?0:pT;var DE=new wS("",jP==null?void 0:jP.experiments,!1);DE.duration=pT||0;for(var Nds=g.u(SP),Pcq=Nds.next();!Pcq.done;Pcq=Nds.next()){var ZE=Pcq.value,u9J=pK(ZE,ODj,DE.duration),FWi=U6(ZE.url,ZE.sp,ZE.s);if(FWi)if(u9J.streamType==="FORMAT_STREAM_TYPE_OTF")rS(DE,new E6(FWi,u9J,"sq/0"));else{var abU=VF(ZE.init),swZ=VF(ZE.index);rS(DE,new XV(FWi,u9J,abU,swZ))}}DE.isOtf=!0;var pkZ=DE}else{var Ug= XkT;Ug=Ug===void 0?0:Ug;var St=new wS("",jP==null?void 0:jP.experiments,!1);St.duration=Ug||0;for(var UyT=g.u(SP),Qds=UyT.next();!Qds.done;Qds=UyT.next()){var Jx=Qds.value,BgO=pK(Jx,ODj,St.duration),H0K=VF(Jx.init),nar=VF(Jx.index),Sf9=U6(Jx.url,Jx.sp,Jx.s);Sf9&&rS(St,new XV(Sf9,BgO,H0K,nar))}pkZ=St}IiT=pkZ}var jb7=IiT;if(SP.length>0){var kpo=SP[0];if(this.U().playerStyle==="hangouts-meet"&&kpo.url){var mrr=g.f0(kpo.url);this.wp=this.wp||Number(mrr.expire)}}var oaX=this.isLivePlayback&&!this.Rz&& !this.LX&&!this.isPremiere;this.C("html5_live_head_playable")&&(!$K(this)&&oaX&&this.T4("missingLiveHeadPlayable",{}),this.yL.LX==="yt"&&(jb7.v1=!0));zc=jb7}else zc=null;this.T4("pafmts",{isManifestFilled:!!zc})}if(zc){X_(this,zc);var Dyc=!0}else Dyc=!1;Dyc?this.enableServerStitchedDai=this.enableServerStitchedDai&&eU(this):this.tF&&(this.yL.LX==="yt"&&this.QS()&&this.C("drm_manifestless_unplugged")&&this.C("html5_deprecate_manifestful_fallback")?this.T4("deprecateMflFallback",{}):this.AJ=!0)}var $2c= R.adpings;$2c&&(this.YO=$2c?Rw($2c):null);var Zuk=R.feature;Zuk&&(this.Gu=Zuk);var JYT=R.referrer;JYT&&(this.referrer=JYT);this.clientScreenNonce=KF(this.clientScreenNonce,R.csn);this.An=AD(this.An,R.root_ve_type);this.mp=AD(this.mp,R.kids_age_up_mode);this.ol||R.kids_app_info==void 0||(this.kidsAppInfo=R.kids_app_info);this.ol&&R.kids_app_info!=null&&(this.kidsAppInfo=R.kids_app_info);this.GS=y8(this.GS,R.upg_content_filter_mode);this.unpluggedFilterModeType=AD(this.unpluggedFilterModeType,R.unplugged_filter_mode_type); var gxk=R.unplugged_location_info;gxk&&(this.US=gxk);var VLQ=R.unplugged_partner_opt_out;VLQ&&(this.Qc=KF("",VLQ));this.Oo=y8(this.Oo,R.disable_watch_next);this.lN=KF(this.lN,R.internal_ip_override);this.M8=!!R.is_yto_interstitial;(this.interstitials.length||this.M8)&&this.Yb.push("yto");var CIi=R.nm;CIi&&(this.nm=CIi);this.B=KF(this.B,R.csi_timer);R.watchUrl&&(this.watchUrl=R.watchUrl);var n6=R.watch_endpoint;this.C("html5_attach_watch_endpoint_ustreamer_config")&&n6&&lRr(this,n6);if(n6==null?0: n6.ustreamerConfig)this.QW=Pn(n6.ustreamerConfig);var qfs,tLj,Yfc=n6==null?void 0:(qfs=n6.loggingContext)==null?void 0:(tLj=qfs.qoeLoggingContext)==null?void 0:tLj.serializedContextData;Yfc&&(this.whS=Yfc);g.kh(this.yL)&&this.yL.L7&&(this.embedsRct=KF(this.embedsRct,R.rct),this.embedsRctn=KF(this.embedsRctn,R.rctn));this.wN=this.wN||!!R.pause_at_start;R.default_active_source_video_id&&(this.defaultActiveSourceVideoId=R.default_active_source_video_id)}; g.L.U=function(){return this.yL}; g.L.C=function(R){return this.yL.C(R)}; g.L.EY=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.L.hasSupportedAudio51Tracks=function(){var R;return!((R=this.TD)==null||!R.uQ)}; g.L.getUserAudio51Preference=function(){var R=1;nU(this.yL)&&this.C("html5_ytv_surround_toggle_default_off")?R=0:g.sS(this.yL)&&this.isLivePlayback&&this.yT()&&(R=0);var l;return(l=g.zI("yt-player-audio51"))!=null?l:R}; g.L.zI=function(){this.Fx()||(this.Z.X||this.Z.unsubscribe("refresh",this.zI,this),this.Sr(-1))}; g.L.Sr=function(R){if(!this.isLivePlayback||!this.J||this.J.flavor!=="fairplay"){var l=FAY(this.Z,this.w2);if(l.length>0){for(var y=g.u(l),f=y.next();!f.done;f=y.next())f=f.value,f.startSecs=Math.max(f.startSecs,this.K_()),this.C("html5_cuepoint_identifier_logging")&&f.event==="start"&&this.T4("cuepoint",{pubCue:f.identifier,segNum:R});this.publish("cuepointupdated",l,R);this.w2+=l.length;if(eU(this)&&this.yL.PZ())for(l=g.u(l),y=l.next();!y.done;y=l.next())y=y.value,this.T4("cuepoint",{segNum:R,event:y.event, startSecs:y.startSecs,id:y.identifier.slice(-16)}),y.event==="start"&&(y=y.startSecs,this.Ci.start=this.OF,this.Ci.end=y+3)}}}; g.L.ow=function(){this.Fx()||(this.loading=!1,this.publish("dataloaded"))}; g.L.yT=function(){return this.aB!==void 0?this.aB:this.aB=!!this.sS||!!this.Z&&xM(this.Z)}; g.L.O1=function(R){var l=this;if(this.Fx())return dg();this.f_=this.tU=this.L=null;aE(this,"html5_high_res_logging_always")&&(this.yL.CJ=!0);return Bm9(this,R).then(void 0,function(){return nsT(l,R)}).then(void 0,function(){return mjk(l)}).then(void 0,function(){return h0i(l)})}; g.L.kx=function(R){this.L=R;HsZ(this,this.L.getAvailableAudioTracks());if(this.L){R=g.u(this.L.videoInfos);for(var l=R.next();!l.done;l=R.next()){l=l.value;var y=l.containerType;y!==0&&(this.eC[y]=l.id)}}R=this.getAvailableAudioTracks();R=R.concat(this.B$);for(l=0;l0?this.L.getAvailableAudioTracks():this.iE||[]:[]}; g.L.getAudioTrack=function(){var R=this;if(this.Y&&!SM(this.Y)){var l=g.iA(this.getAvailableAudioTracks(),function(A){return A.id===R.Y.id}),y; if(!l&&((y=this.Y.hF)==null?0:y.id)){var f=this.Y.hF.id;l=g.iA(this.getAvailableAudioTracks(),function(A){return A.hF.id===f}); this.T4("nat",{id:this.Y.id,track:!!l})}return l||this.B$}if(this.iE){if(!this.gp)for(l=g.u(this.iE),y=l.next();!y.done;y=l.next())if(y=y.value,y.hF.getIsDefault()){this.gp=y;break}return this.gp||this.B$}return this.B$}; g.L.getPlayerResponse=function(){return this.playerResponse}; g.L.getWatchNextResponse=function(){return this.P1}; g.L.getHeartbeatResponse=function(){return this.kp}; g.L.v6=function(){return this.watchUrl?this.watchUrl:this.yL.getVideoUrl(this.videoId)}; g.L.rK=function(){return!!this.Z&&(hhT(this.Z)||c2J(this.Z)||ENj(this.Z))}; g.L.getEmbeddedPlayerResponse=function(){return this.oJ}; g.L.VU=function(){return(this.eventLabel||this.yL.sL)==="shortspage"}; g.L.isAd=function(){return!!this.adFormat}; g.L.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.L.h1=function(){var R,l,y;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((R=this.playerResponse)==null?0:(l=R.playerConfig)==null?0:(y=l.daiConfig)==null?0:y.ssaEnabledPlayback)}; g.L.lm=function(){return this.AX}; g.L.M1=function(){return this.c6||this.kz}; g.L.jz=function(){return aE(this,"html5_samsung_vp9_live")}; g.L.T4=function(R,l,y){this.publish("ctmp",R,l,y)}; g.L.iD=function(R,l,y){this.publish("ctmpstr",R,l,y)}; g.L.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.L.getGetAdBreakContext=function(R,l){R=R===void 0?NaN:R;l=l===void 0?NaN:l;var y={isSabr:PZ(this)},f,A=(f=this.getHeartbeatResponse())==null?void 0:f.adBreakHeartbeatParams;A&&(y.adBreakHeartbeatParams=A);if(this.C("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.Z&&!isNaN(R)&&!isNaN(l)){l=R-l;for(var K in this.Z.Z)if(f=this.Z.Z[K],f.info.fJ()||f.info.IT())if(f=f.index,f.isLoaded()){K=f.TL(l);f=f.wc(K)+l-f.getStartTime(K);this.T4("gabc",{t:R.toFixed(3),mt:l.toFixed(3),sg:K,igt:f.toFixed(3)}); y.livePlaybackPosition={utcTimeMillis:""+(f*1E3).toFixed(0)};break}}return y}; g.L.isEmbedsShortsMode=function(R,l){if(!g.kh(this.yL)||(this.yL.Dq||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||l)return!1;var y,f;return!!(((y=this.embeddedPlayerConfig)==null?0:(f=y.embeddedPlayerFlags)==null?0:f.isShortsExperienceEligible)&&R.width<=R.height)}; g.L.G4=function(){g.Ae.prototype.G4.call(this);this.YO=null;delete this.Sy;delete this.accountLinkingConfig;delete this.Z;this.L=this.kp=this.playerResponse=this.P1=null;this.eI=this.adaptiveFormats="";delete this.botguardData;this.W1=this.suggestions=this.GK=null;this.sabrContextUpdates.clear()};var Dj7={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},Zsq={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},jUJ={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},pu9={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"},SaQ={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},UjY={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"},k09={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.O(cd,g.p);g.L=cd.prototype;g.L.handleExternalCall=function(R,l,y){var f=this.state.V[R],A=this.state.W[R],K=f;if(A)if(y&&SN(y,Uhr))K=A;else if(!f)throw Error('API call from an untrusted origin: "'+y+'"');this.logApiCall(R,y);if(K){y=!1;f=g.u(l);for(A=f.next();!A.done;A=f.next())if(String(A.value).includes("javascript:")){y=!0;break}y&&g.dP(Error('Dangerous call to "'+R+'" with ['+l+"]."));return K.apply(this,l)}throw Error('Unknown API method: "'+R+'".');}; g.L.logApiCall=function(R,l,y){var f=this.app.U();f.gp&&!this.state.B.has(R)&&(this.state.B.add(R),g.sE("webPlayerApiCalled",{callerUrl:f.loaderUrl,methodName:R,origin:l||void 0,playerStyle:f.playerStyle||void 0,embeddedPlayerMode:f.Dq,errorCode:y}))}; g.L.publish=function(R){var l=g.SJ.apply(1,arguments);this.state.L.publish.apply(this.state.L,[R].concat(g.ci(l)));if(R==="videodatachange"||R==="resize"||R==="cardstatechange")this.state.X.publish.apply(this.state.X,[R].concat(g.ci(l))),this.state.Y.publish.apply(this.state.Y,[R].concat(g.ci(l)))}; g.L.KX=function(R){var l=g.SJ.apply(1,arguments);this.state.L.publish.apply(this.state.L,[R].concat(g.ci(l)));this.state.X.publish.apply(this.state.X,[R].concat(g.ci(l)))}; g.L.Ej=function(R){var l=g.SJ.apply(1,arguments);this.state.L.publish.apply(this.state.L,[R].concat(g.ci(l)));this.state.X.publish.apply(this.state.X,[R].concat(g.ci(l)));this.state.Y.publish.apply(this.state.Y,[R].concat(g.ci(l)))}; g.L.DG=function(R){var l=g.SJ.apply(1,arguments);this.state.L.publish.apply(this.state.L,[R].concat(g.ci(l)));this.state.X.publish.apply(this.state.X,[R].concat(g.ci(l)));this.state.Y.publish.apply(this.state.Y,[R].concat(g.ci(l)));this.state.J.publish.apply(this.state.J,[R].concat(g.ci(l)))}; g.L.C=function(R){return this.app.U().C(R)}; g.L.G4=function(){if(this.state.element){var R=this.state.element,l;for(l in this.state.Z)this.state.Z.hasOwnProperty(l)&&(R[l]=null);this.state.element=null}g.p.prototype.G4.call(this)};g.O(iK,g.$8);iK.prototype.publish=function(R){var l=g.SJ.apply(1,arguments);if(this.J.has(R))return this.J.get(R).push(l),!0;var y=!1;try{for(l=[l],this.J.set(R,l);l.length;)y=g.$8.prototype.publish.call.apply(g.$8.prototype.publish,[this,R].concat(g.ci(l.shift())))}finally{this.J.delete(R)}return y};g.O(Pd,g.p);Pd.prototype.G4=function(){this.J.dispose();this.Y.dispose();this.X.dispose();this.L.dispose();this.B=this.Z=this.W=this.V=this.D=void 0};var YaJ=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.O(FE,cd);g.L=FE.prototype;g.L.getApiInterface=function(){return Array.from(this.state.D)}; g.L.ED=function(R,l){this.state.J.subscribe(R,l)}; g.L.aGq=function(R,l){this.state.J.unsubscribe(R,l)}; g.L.getPlayerState=function(R){return J5T(this.app,R)}; g.L.X_=function(){return J5T(this.app)}; g.L.NxQ=function(R,l,y){eF(this)&&(jp(this.app,!0,1),Z8(this.app,R,l,y,1))}; g.L.getCurrentTime=function(R,l,y){var f=this.getPlayerState(R);if(this.app.getAppState()===2&&f===5){var A;return((A=this.app.getVideoData())==null?void 0:A.startSeconds)||0}return this.C("web_player_max_seekable_on_ended")&&f===0?wB(this.app,R):R?this.app.getCurrentTime(R,l,y):this.app.getCurrentTime(R)}; g.L.kJ=function(){return this.app.getCurrentTime(1)}; g.L.iY=function(){var R=this.app.wc(1);return isNaN(R)?this.getCurrentTime(1):R}; g.L.H4=function(){return this.app.getDuration(1)}; g.L.BI=function(R,l){R=g.Sq(Math.floor(R),0,100);isFinite(R)&&va(this.app,{volume:R,muted:this.isMuted()},l)}; g.L.BxS=function(R){this.BI(R,!1)}; g.L.xU=function(R){va(this.app,{muted:!0,volume:this.getVolume()},R)}; g.L.sE1=function(){this.xU(!1)}; g.L.V7=function(R){$T(this.app)&&!this.C("embeds_enable_emc3ds_muted_autoplay")||va(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},R)}; g.L.WkX=function(){$T(this.app)&&this.C("embeds_enable_emc3ds_muted_autoplay")||this.V7(!1)}; g.L.getPlayerMode=function(){var R={};this.app.getVideoData().nJ&&(R.pfp={enableIma:g.Bd(this.app.getVideoData())&&this.app.mL().allowImaMonetization,autoplay:YK(this.app.mL()),mutedAutoplay:this.app.mL().mutedAutoplay});return R}; g.L.Ef=function(){var R=this.app.getPresentingPlayerType();if(R===2&&!this.app.O9()){var l=v2(this.app.Il());if(!(g7A(l)||g.kh(this.app.U())&&g.V(this.app.hU().getPlayerState(),1024))||VJZ(l))return}(l=this.app.FW().DW)?l.playVideo():this.app.playVideo(R)}; g.L.h01=function(){jp(this.app,!0,1);this.Ef()}; g.L.pauseVideo=function(R){var l=this.app.getPresentingPlayerType();if(l!==2||this.app.O9()||g7A(v2(this.app.Il()))){var y=this.app.FW().DW;y?y.pauseVideo():this.app.pauseVideo(l,R)}}; g.L.xWU=function(){var R=this.app,l=!1;R.Zq.OF&&(R.VL.publish("pageTransition"),l=!0);R.stopVideo(l)}; g.L.clearVideo=function(){}; g.L.getAvailablePlaybackRates=function(){var R=this.app.U();return R.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(R.Y?R.ancestorOrigins[0]:window.location.origin)||R.PR?co8:R.supportsVarispeedExtendedFeatures?EbU:R.C("web_remix_allow_up_to_3x_playback_rate")&&g.xi(R)?Wi8:v3:[1]}; g.L.getPlaybackQuality=function(R){return(R=this.app.x4(R))?R.getPlaybackQuality():"unknown"}; g.L.c77=function(){}; g.L.getAvailableQualityLevels=function(R){return(R=this.app.x4(R))?(R=g.L$(R.V3(),function(l){return l.quality}),R.length&&(R[0]==="auto"&&R.shift(),R=R.concat(["auto"])),R):[]}; g.L.t8=function(){return this.getAvailableQualityLevels(1)}; g.L.GZ=function(){return this.Pr()}; g.L.xV=function(){return 1}; g.L.getVideoLoadedFraction=function(R){return this.app.getVideoLoadedFraction(R)}; g.L.Pr=function(){return this.getVideoLoadedFraction()}; g.L.s5=function(){return 0}; g.L.getSize=function(){var R=this.app.lQ().getPlayerSize();return{width:R.width,height:R.height}}; g.L.setSize=function(){this.app.lQ().resize()}; g.L.loadVideoById=function(R,l,y,f){if(!R)return!1;R=uK(R,l,y);return this.app.loadVideoByPlayerVars(R,f)}; g.L.O_=function(R,l,y){R=this.loadVideoById(R,l,y,1);jp(this.app,R,1)}; g.L.cueVideoById=function(R,l,y,f){R=uK(R,l,y);this.app.cueVideoByPlayerVars(R,f)}; g.L.WX=function(R,l,y){this.cueVideoById(R,l,y,1)}; g.L.loadVideoByUrl=function(R,l,y,f){R=twQ(R,l,y);return this.app.loadVideoByPlayerVars(R,f)}; g.L.ue=function(R,l,y){R=this.loadVideoByUrl(R,l,y,1);jp(this.app,R,1)}; g.L.cueVideoByUrl=function(R,l,y,f){R=twQ(R,l,y);this.app.cueVideoByPlayerVars(R,f)}; g.L.Ow=function(R,l,y){this.cueVideoByUrl(R,l,y,1)}; g.L.J0=function(){var R=this.app.U();if(R.Yb)return"";var l=this.app.mL(),y=void 0;l.isLivePlayback||(y=Math.floor(this.app.getCurrentTime(1)));return R.getVideoUrl(l.videoId,this.getPlaylistId()||void 0,y)}; g.L.lY=function(){return this.app.getDebugText()}; g.L.getVideoEmbedCode=function(){var R=this.app.U();if(R.Yb)return"";var l=this.app.mL();return R.getVideoEmbedCode(l.isPrivate?"":l.title,this.app.mL().videoId,this.app.lQ().getPlayerSize(),this.getPlaylistId()||void 0)}; g.L.tT=function(R,l,y){return R9k(this.app,R,l,y)}; g.L.removeCueRange=function(R){return this.app.CP(R)}; g.L.loadPlaylist=function(R,l,y,f){this.app.loadPlaylist(R,l,y,f)}; g.L.hs=function(R,l,y,f){this.loadPlaylist(R,l,y,f);jp(this.app,!0,1)}; g.L.cuePlaylist=function(R,l,y,f){this.app.cuePlaylist(R,l,y,f)}; g.L.nextVideo=function(R,l){this.app.nextVideo(R,l)}; g.L.DUU=function(){this.nextVideo();jp(this.app,!0,1)}; g.L.previousVideo=function(R){this.app.previousVideo(R)}; g.L.HSE=function(){this.previousVideo();jp(this.app,!0,1)}; g.L.playVideoAt=function(R){this.app.playVideoAt(R)}; g.L.WM1=function(R){this.playVideoAt(R);jp(this.app,!0,1)}; g.L.setShuffle=function(R){var l=this.app.getPlaylist();l&&l.setShuffle(R)}; g.L.setLoop=function(R){var l=this.app.getPlaylist();l&&(l.loop=R)}; g.L.YV=function(){var R=this.app.getPlaylist();if(!R)return null;for(var l=[],y=0;y=400)if(R=this.mL(),this.G.U().C("client_respect_autoplay_switch_button_renderer"))R=!!R.autoplaySwitchButtonRenderer;else{var l,y,f,A;R=!!((l=R.getWatchNextResponse())==null?0:(y=l.contents)==null?0:(f=y.twoColumnWatchNextResults)==null?0:(A=f.autoplay)==null?0:A.autoplay)!==!1}if(R)this.Z||(this.Z=!0,this.UF(this.Z),this.G.U().C("web_player_autonav_toggle_always_listen")||ufQ(this), l=this.mL(),this.Q1(l.autonavState),this.G.logVisibility(this.element,this.Z));else if(this.Z=!1,this.UF(this.Z),!this.G.U().C("web_player_autonav_toggle_always_listen"))for(this.G.U().C("web_player_autonav_toggle_always_listen"),l=g.u(this.X),y=l.next();!y.done;y=l.next())this.p_(y.value)}; g.L.Q1=function(R){Q0s(this)?this.isChecked=R!==1:((R=R!==1)||(g.UG(),R=g.O1("web_autonav_allow_off_by_default")&&!g.SI(0,141)&&g.JZ("AUTONAV_OFF_BY_DEFAULT")?!1:!g.SI(0,140)),this.isChecked=R);Flj(this)}; g.L.onClick=function(){this.isChecked=!this.isChecked;this.G.n3(this.isChecked?2:1);Flj(this);if(Q0s(this)){var R=this.mL().autoplaySwitchButtonRenderer;this.isChecked&&(R==null?0:R.onEnabledCommand)?this.G.KX("innertubeCommand",R.onEnabledCommand):!this.isChecked&&(R==null?0:R.onDisabledCommand)&&this.G.KX("innertubeCommand",R.onDisabledCommand)}this.G.logClick(this.element)}; g.L.getValue=function(){return this.isChecked}; g.L.mL=function(){return this.G.getVideoData(1)};g.O($6Z,GW);g.O(ox,g.yu);ox.prototype.onClick=function(){this.enabled&&(hs(this,!this.checked),this.publish("select",this.checked))}; ox.prototype.getValue=function(){return this.checked}; ox.prototype.setEnabled=function(R){(this.enabled=R)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var WV=["en-CA","en","es-MX","fr-CA"];g.O(ul,ox);ul.prototype.oE=function(R){R?this.Z||(this.Te.sj(this),this.Z=!0):this.Z&&(this.Te.VK(this),this.Z=!1);this.Z&&hs(this,peJ())}; ul.prototype.Y=function(){g.G8(this.element,"ytp-menuitem-highlight-transition-enabled")}; ul.prototype.L=function(R){var l=peJ();R!==l&&(l=g.UG(),k1(190,R),k1(192,!0),l.save(),this.G.KX("cinematicSettingsToggleChange",R))}; ul.prototype.G4=function(){this.Z&&this.Te.VK(this);ox.prototype.G4.call(this)};g.O(FU,GW);FU.prototype.updateCinematicSettings=function(R){this.Z=R;var l;(l=this.menuItem)==null||l.oE(R);this.api.publish("onCinematicSettingsVisibilityChange",R)};g.O(d6q,GW);g.O(Qu,GW);Qu.prototype.setCreatorEndscreenVisibility=function(R){var l;(l=IK(this.api.Il()))==null||l.UF(R)}; Qu.prototype.Z=function(R){function l(f){f==="creatorendscreen"&&(f=IK(y.api.Il()))&&f.KeE(y.hideButton)} var y=this;this.hideButton=R;this.events.N(this.api,"modulecreated",l);l("creatorendscreen")};g.O($e,ox);$e.prototype.Y=function(R){this.L(R?1:0)}; $e.prototype.X=function(){var R=this.hasDrcAudioTrack(),l=this.Z()===1&&R;hs(this,l);this.setEnabled(R)}; $e.prototype.G4=function(){this.Te.VK(this);ox.prototype.G4.call(this)};g.O(eZ,GW);eZ.prototype.getDrcUserPreference=function(){return this.Z}; eZ.prototype.setDrcUserPreference=function(R){g.vW("yt-player-drc-pref",R,31536E3);R!==this.Z&&(this.Z=R,this.updateEnvironmentData(),this.X()&&this.api.BM())}; eZ.prototype.updateEnvironmentData=function(){this.api.U().FR=this.Z===1}; eZ.prototype.X=function(){var R,l,y=(R=this.api.getVideoData())==null?void 0:(l=R.L)==null?void 0:l.Z;if(!y)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.C("mta_drc_mutual_exclusion_removal")){var f,A,K=(f=this.api.pI())==null?void 0:(A=f.hF)==null?void 0:A.id;return Dx(y,function(G){var B;return G.audio.Z&&((B=G.hF)==null?void 0:B.id)===K})}return Dx(y,function(G){var B; return((B=G.audio)==null?void 0:B.Z)===!0})};g.O(bl,GW);bl.prototype.onVideoDataChange=function(){var R=this,l=this.api.getVideoData();this.api.yb("embargo",1);var y=l==null?void 0:l.SD.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(y==null?0:y.length)?vnQ(this,y.filter(function(f){return rk9(R,f)})):(l==null?0:l.cueRanges)&&vnQ(this,l.cueRanges.filter(function(f){return rk9(R,f)}))}; bl.prototype.X=function(R){return R.embargo!==void 0}; bl.prototype.G4=function(){GW.prototype.G4.call(this);this.Z={}};g.O(XU,GW); XU.prototype.addEmbedsConversionTrackingParams=function(R){var l=this.api.U(),y=l.widgetReferrer,f=l.RV,A=this.Z,K="",G=l.getWebPlayerContextConfig();G&&(K=G.embedsIframeOriginParam||"");y.length>0&&(R.embeds_widget_referrer=y);f.length>0&&(R.embeds_referring_euri=f);l.Y&&K.length>0&&(R.embeds_referring_origin=K);G&&G.embedsFeature&&(R.feature=G.embedsFeature);A.length>0&&(l.C("embeds_web_enable_lite_experiment_control_arm_logging")?A.unshift(28572):g.BW(g.Yh(l))&&A.unshift(159628),l=A.join(","),l= g.Db()?l:g.Xu(l,4),R.source_ve_path=l);this.Z.length=0};g.O(zkJ,GW);g.O(w5s,GW);g.O(TW,g.p);TW.prototype.G4=function(){g.p.prototype.G4.call(this);this.Z=null;this.X&&this.X.disconnect()};g.O(IDZ,GW);g.O(dV,g.Z);dV.prototype.show=function(){g.Z.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; dV.prototype.stopTimer=function(){this.Z&&(this.Z.dispose(),this.Z=null)}; dV.prototype.onVideoDataChange=function(R){var l,y,f=(l=this.api.getVideoData())==null?void 0:(y=l.getPlayerResponse())==null?void 0:y.playabilityStatus;f&&(l=NZc(f),g.V(this.api.getPlayerStateObject(),128)||R==="dataloaderror"||!l?(this.X=0,this.stopTimer(),this.hide()):(R=(l.remainingTimeSecs||0)*1E3,R>0&&(this.show(),this.updateValue("label",S9(l.label)),U6r(this,R))))}; dV.prototype.G4=function(){this.stopTimer();g.Z.prototype.G4.call(this)};g.O(S$Z,GW);g.O(rV,g.Z);rV.prototype.onClick=function(){this.VL.logClick(this.element);this.VL.KX("onFullerscreenEduClicked")}; rV.prototype.oE=function(){this.VL.isFullscreen()?this.Z?this.fade.hide():this.fade.show():this.hide();this.VL.logVisibility(this.element,this.VL.isFullscreen()&&!this.Z)};g.O(vV,GW);vV.prototype.updateFullerscreenEduButtonSubtleModeState=function(R){var l;(l=this.Z)!=null&&(g.BJ(l.element,"ytp-fullerscreen-edu-button-subtle",R),R&&!l.X&&(l.element.setAttribute("title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"),vd(l.VL,l.element,l),l.X=!0))}; vV.prototype.updateFullerscreenEduButtonVisibility=function(R){var l;(l=this.Z)!=null&&(l.Z=R,l.oE())};g.O(j0j,g.Z);g.O(ZNJ,GW);g.O(zW,GW);zW.prototype.getSphericalProperties=function(){var R=g.SF(this.api.Il());return R?R.getSphericalProperties():{}}; zW.prototype.setSphericalProperties=function(R){if(R){var l=g.SF(this.api.Il());l&&l.setSphericalProperties(R,!0)}};g.O(wV,GW);g.L=wV.prototype;g.L.createClientVe=function(R,l,y,f){this.api.createClientVe(R,l,y,f===void 0?!1:f)}; g.L.createServerVe=function(R,l,y){this.api.createServerVe(R,l,y===void 0?!1:y)}; g.L.setTrackingParams=function(R,l){this.api.setTrackingParams(R,l)}; g.L.logClick=function(R,l){this.api.logClick(R,l)}; g.L.logVisibility=function(R,l,y){this.api.logVisibility(R,l,y)}; g.L.hasVe=function(R){return this.api.hasVe(R)}; g.L.destroyVe=function(R){this.api.destroyVe(R)};var gni=!1;Ix.prototype.setPlaybackRate=function(R){this.playbackRate=Math.max(1,R)}; Ix.prototype.getPlaybackRate=function(){return this.playbackRate};jZ.prototype.xK=function(R){var l=g.jM(R.info.Z.info,this.nX.QS),y=R.info.eS+this.Y,f=R.info.startTime*1E3;if(this.policy.tU)try{f=this.policy.tU?g.uh(R)*1E3:R.info.startTime*1E3}catch(G){Math.random()>.99&&this.logger&&(f=nn(R.X).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:R.info.YG(),encodedDataView:g.b4(f,4)})),f=R.info.startTime*1E3}var A=R.info.clipId,K=this.policy.tU?g.MMq(R)*1E3:R.info.duration*1E3;this.policy.tU&&(f<0||K<0)&&(this.logger&&(this.logger({missingSegInfo:R.info.YG(), startTimeMs:f,durationMs:K}),this.policy.iP||(f<0&&(f=R.info.startTime*1E3),K<0&&(K=R.info.duration*1E3))),this.policy.iP&&(f<0&&(f=R.info.startTime*1E3),K<0&&(K=R.info.duration*1E3)));return{formatId:l,eS:y,startTimeMs:f,clipId:A,mq:K}}; jZ.prototype.IA=function(R){this.timestampOffset=R};ke.prototype.seek=function(R,l){R!==this.Z&&(this.seekCount=0);this.Z=R;var y=this.videoTrack.X,f=this.audioTrack.X,A=this.audioTrack.Fo,K=nMY(this,this.videoTrack,R,this.videoTrack.Fo,l);l=nMY(this,this.audioTrack,this.policy.Qb?R:K,A,l);R=Math.max(R,K,l);this.J=!0;this.nX.isManifestless&&(Gko(this,this.videoTrack,y),Gko(this,this.audioTrack,f));return R}; ke.prototype.isSeeking=function(){return this.J}; ke.prototype.EM=function(R){this.L=R}; var HAk=2/24;var hgs=0;g.L=RB.prototype;g.L.Ve=function(){this.B=this.now();B5s(this.Gr,this.B);this.Ge.Ve()}; g.L.a4=function(R,l){var y=this.policy.X?(0,g.eY)():0;lX(this,R,l);R-this.D<10&&this.X>0||this.CY(R,l);this.Ge.a4(R,l);this.policy.X&&(R=(0,g.eY)()-y,this.sF+=R,this.B1=Math.max(R,this.B1))}; g.L.CY=function(R,l){var y=(R-this.D)/1E3,f=l-this.L;this.hI||(zO(this.Gr,y,f),this.Wi(y,f));this.D=R;this.L=l}; g.L.q5=function(){this.Dq&&cNT(this);this.Ge.q5()}; g.L.I4=function(R){this.Dq||(this.Dq=this.J-this.vZ+R,this.OF=this.J,this.tF=this.V)}; g.L.Nw=function(R,l){R=R===void 0?this.V:R;l=l===void 0?this.J:l;this.X>0||(this.W=R,this.X=l,this.LX=this.isActive=!0)}; g.L.u6=function(){return this.yK||2}; g.L.Oy=function(){}; g.L.DS=function(){var R,l={rn:this.requestNumber,rt:(this.V-this.Z).toFixed(),lb:this.J,stall:(1E3*this.Y).toFixed(),ht:(this.B-this.Z).toFixed(),elt:(this.W-this.Z).toFixed(),elb:this.X,d:(R=this.sL)==null?void 0:R.Bf()};this.url&&Jkr(l,this.url);this.policy.X&&(l.mph=this.B1.toFixed(),l.tph=this.sF.toFixed());l.ulb=this.P1;l.ult=this.Yb;return l}; g.L.now=function(){return(0,g.eY)()}; g.L.deactivate=function(){this.isActive&&(this.isActive=!1)};g.O(f2,RB);g.L=f2.prototype;g.L.DS=function(){var R=RB.prototype.DS.call(this);R.pb=this.Ia;R.pt=(1E3*this.iQ).toFixed();R.se=this.ol;return R}; g.L.OI=function(){var R=this.Ge;this.tU||(this.tU=R.OI?R.OI():1);return this.tU}; g.L.YA=function(){return this.d3?this.OI()!==1:!1}; g.L.Kb=function(R,l,y){if(!this.nA){this.nA=!0;if(!this.hI){lX(this,R,l);this.CY(R,l);var f=this.OI();this.ol=y;if(!this.hI)if(f===2){f=R-this.W0)||AE(this,f,l),this.X>0&&r2(this.Gr,l,this.Y));R=(R-this.Z)/ 1E3||.01;this.policy.W&&!(this.X>0)||d2(this.Gr,R,this.L,Wcq(this),this.Q3)}this.deactivate()}}; g.L.gT=function(R,l,y){y&&(this.tU=2);R<0&&this.yK&&(R=this.yK);l?this.UL+=R:this.jS+=R}; g.L.u6=function(){return this.jS||this.UL||RB.prototype.u6.call(this)}; g.L.CY=function(R,l){var y=(R-this.D)/1E3,f=l-this.L,A=this.OI();this.isActive?A===1&&((f>0||this.policy.J)&&(y>.2||f<1024)?(this.Y+=y,f>0&&y>.2&&AE(this,this.WQ?y:.05,f),this.ZL=!0):f>0&&(AE(this,y,f),this.ZL=!0)):l&&l>=this.policy.Z&&this.Nw(R,l);RB.prototype.CY.call(this,R,l)}; g.L.QZ=function(R){if(!this.hI){lX(this,R,this.J);var l=(R-this.Z)/1E3;this.OI()!==2&&this.X>0&&(this.Y+=(R-this.D)/1E3,r2(this.Gr,this.L,this.Y));d2(this.Gr,l,this.L,Wcq(this),this.Q3,!0);R=(R-this.D)/1E3;zO(this.Gr,R,0);this.Wi(R,0)}}; g.L.Nw=function(R,l){R=R===void 0?this.V:R;l=l===void 0?this.J:l;if(!(this.X>0)&&(RB.prototype.Nw.call(this,R,l),this.OI()===1)){l=(this.B-this.Z)/1E3;var y=(R-this.B)/1E3;this.d3&&K2(this,this.now());this.LA||this.hI||(this.yK&&(y=Math.max(0,y-this.yK)),R=this.Gr,R.W.tR(1,l),R.sL.tR(1,y))}}; g.L.Du=function(){this.d3&&K2(this,this.now());return this.v1}; g.L.tj=function(){var R;if(R=this.L>this.Aq)R=(R=this.L)?R>=this.policy.Z:!1;return R}; g.L.MN=function(){return this.W1}; g.L.T6=function(R){R=R===void 0?this.now():R;if(this.d3){K2(this,R);if(this.tU?this.YA():this.xb!==this.CX){var l=this.CX;if(R0?y+R:y+Math.max(R,l)}; g.L.WY=function(){return this.now()-this.W}; g.L.m_=function(){return(this.L-this.X)*1E3/this.WY()||0}; g.L.RY=function(){return this.W};G6.prototype.feed=function(R){GJ(this.Z,R);this.pS()}; G6.prototype.pS=function(){if(this.Y){if(!this.Z.totalLength)return;var R=this.Z.split(this.L-this.X),l=R.sP;R=R.SK;if(!this.Ge.I4(this.Y,l,this.X,this.L))return;this.X+=l.totalLength;this.Z=R;this.X===this.L&&(this.Y=this.L=this.X=void 0)}for(;;){var y=0;R=g.u(PS7(this.Z,y));l=R.next().value;y=R.next().value;y=g.u(PS7(this.Z,y));R=y.next().value;y=y.next().value;if(l<0||R<0)break;if(!(y+R<=this.Z.totalLength)){if(!(this.Ge.I4&&y+1<=this.Z.totalLength))break;y=this.Z.split(y).SK;this.Ge.I4(l,y,0, R)&&(this.Y=l,this.X=y.totalLength,this.L=R,this.Z=new Kn([]));break}R=this.Z.split(y).SK.split(R);y=R.SK;this.Ge.Wj(l,R.sP);this.Z=y}}; G6.prototype.dispose=function(){this.Z=new Kn};g.L=aB.prototype;g.L.dD=function(){return 0}; g.L.OJ=function(){return null}; g.L.qX=function(){return null}; g.L.r$=function(){return this.state>=1}; g.L.isComplete=function(){return this.state>=3}; g.L.oU=function(){return this.state===5}; g.L.onStateChange=function(){}; g.L.vl=function(R){var l=this.state;this.state=R;this.onStateChange(l);this.callback&&this.callback(this,l)}; g.L.fL=function(R){R&&this.state=this.xhr.HEADERS_RECEIVED}; g.L.getResponseHeader=function(R){try{return this.xhr.getResponseHeader(R)}catch(l){return""}}; g.L.Z8=function(){return+this.getResponseHeader("content-length")}; g.L.Jz=function(){return this.X}; g.L.hD=function(){return this.status>=200&&this.status<300&&!!this.X}; g.L.KN=function(){return this.Z.totalLength>0}; g.L.i7=function(){var R=this.Z;this.Z=new Kn;return R}; g.L.wU=function(){return this.Z}; g.L.abort=function(){this.Fx=!0;this.xhr.abort()}; g.L.rT=function(){return!0}; g.L.Da=function(){return this.L}; g.L.iO=function(){return""};g.L=$Qj.prototype;g.L.getResponseHeader=function(R){return R==="content-type"?this.Z.get("type"):""}; g.L.abort=function(){}; g.L.KQ=function(){return!0}; g.L.Z8=function(){return this.range.length}; g.L.Jz=function(){return this.loaded}; g.L.hD=function(){return!!this.loaded}; g.L.KN=function(){return!!this.X.totalLength}; g.L.i7=function(){var R=this.X;this.X=new Kn;return R}; g.L.wU=function(){return this.X}; g.L.rT=function(){return!0}; g.L.Da=function(){return!!this.error}; g.L.iO=function(){return this.error};g.L=bAr.prototype;g.L.start=function(R){var l={credentials:"include",cache:"no-store"};Object.assign(l,this.V);this.Y&&(l.signal=this.Y.signal);R=new Request(R,l);fetch(R).then(this.B,this.onError).then(void 0,aq)}; g.L.onDone=function(){this.Fx()||this.Ge.q5()}; g.L.getResponseHeader=function(R){return this.responseHeaders?this.responseHeaders.get(R):null}; g.L.KQ=function(){return!!this.responseHeaders}; g.L.Jz=function(){return this.X}; g.L.Z8=function(){return+this.getResponseHeader("content-length")}; g.L.hD=function(){return this.status>=200&&this.status<300&&!!this.X}; g.L.KN=function(){return!!this.Z.totalLength}; g.L.i7=function(){var R=this.Z;this.Z=new Kn;return R}; g.L.wU=function(){return this.Z}; g.L.Fx=function(){return this.J}; g.L.abort=function(){this.L&&this.L.cancel().catch(function(){}); this.Y&&this.Y.abort();this.J=!0}; g.L.rT=function(){return!0}; g.L.Da=function(){return this.D}; g.L.iO=function(){return this.errorMessage};g.L=Xq7.prototype;g.L.onDone=function(){if(!this.Fx){this.status=this.xhr.status;try{this.response=this.xhr.response,this.X=this.response.byteLength}catch(R){}this.Z=!0;this.Ge.q5()}}; g.L.zT=function(){this.xhr.readyState===2&&this.Ge.Ve()}; g.L.Pf=function(R){this.Fx||(this.status=this.xhr.status,this.Z||(this.X=R.loaded),this.Ge.a4((0,g.eY)(),R.loaded))}; g.L.KQ=function(){return this.xhr.readyState>=2}; g.L.getResponseHeader=function(R){try{return this.xhr.getResponseHeader(R)}catch(l){return g.dP(Error("Could not read XHR header "+R)),""}}; g.L.Z8=function(){return+this.getResponseHeader("content-length")}; g.L.Jz=function(){return this.X}; g.L.hD=function(){return this.status>=200&&this.status<300&&this.Z&&!!this.X}; g.L.KN=function(){return this.Z&&!!this.response&&!!this.response.byteLength}; g.L.i7=function(){var R=this.response;this.response=void 0;return new Kn([new Uint8Array(R)])}; g.L.wU=function(){return new Kn([new Uint8Array(this.response)])}; g.L.abort=function(){this.Fx=!0;this.xhr.abort()}; g.L.rT=function(){return!1}; g.L.Da=function(){return!1}; g.L.iO=function(){return""};g.O(HQ,g.p);HQ.prototype.uy=function(){if(!this.o2.length)return[];var R=this.o2;this.o2=[];this.L=g.W8(R).info;return R}; HQ.prototype.rZ=function(){return this.o2}; HQ.prototype.G4=function(){g.p.prototype.G4.call(this);this.Z=null;this.o2.length=0;this.SS.length=0;this.L=null};g.O(mX,g.p);g.L=mX.prototype; g.L.s2L=function(){if(!this.Fx()){var R=(0,g.eY)(),l=!1;if(this.policy.ZT){R=R-(this.timing.X>0?this.timing.W:this.timing.Z)-this.timing.u6()*1E3;var y=NO(oB(this),!1);R>=2E3*y?l=!0:R>=this.policy.ET*y&&(this.Z=this.policy.iE)}else if(this.timing.X>0){if(this.J){this.policy.OF&&(this.Z=0);return}var f=this.timing.MN();this.timing.T6();var A=this.timing.MN();A-f>=this.policy.NW*.8?(this.Z++,this.logger.debug(function(){return"Mispredicted by "+(A-f).toFixed(0)}),l=this.Z>=5):this.Z=0}else{var K=R- this.timing.Du(); this.policy.iE&&K>0&&(this.Z+=1);l=NO(oB(this),!1)*this.policy.mO;(l=K>l*1E3)&&this.logger.debug(function(){return"Elbow late by "+K.toFixed(3)})}this.Z>0&&this.Ge.gK(); l?this.qw():this.X.start()}}; g.L.qw=function(){this.Y=!0;this.Ge.dP();this.lastError="net.timeout";cQ(this)}; g.L.canRetry=function(R){var l=oB(this);R=R?this.policy.b5:this.policy.c6;return l.timedOut0&&(l=m0(l.Z,0),R.ubyte=l,y===1&&l===0&&(R.b248180278=!0))}this.CM&&(R.rc=this.policy.Zj?this.CM:this.CM.toString());this.policy.RV&&this.I7&&(R.tr=this.I7);R.itag=this.info.SS[0].Z.info.itag;R.ml=""+ +this.info.SS[0].Z.Gf();R.sq=""+this.info.SS[0].eS;this.LS&&(R.ifi=""+ +gM(this.info.x$.X));this.CM!==410&&this.CM!==500&&this.CM!==503||(R.fmt_unav="true");var f;(y=this.errorMessage||((f=this.xhr)==null?void 0: f.iO()))&&(R.msg=y);this.L6&&(R.smb="1");this.info.isDecorated()&&(R.sdai="1");return R}; g.L.Hn=function(){return Lck(this.timing)}; g.L.iO=function(){return this.xhr.iO()||""}; g.L.tj=function(){return this.isComplete()||this.timing.tj()}; g.L.a4=function(){!this.Fx()&&this.xhr&&(this.CM=this.xhr.status,this.policy.aB&&this.XJ&&this.Cm(!1),this.z3()?this.fL(2):!this.kc&&this.tj()&&(this.fL(),this.kc=!0))}; g.L.Ve=function(){if(!this.Fx()&&this.xhr){if(!this.BP&&this.xhr.KQ()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var R=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.BP=((0,g.eY)()-R)/1E3}this.xhr.KQ()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.tX&&!MK9()&&g.vW("yt-player-headers-readable",!0,2592E3);R=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var l=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),y;(y=this.bM)==null||y.stop();this.qH=R||this.qH; this.Fr=l||this.Fr}}; g.L.q5=function(){var R=this.xhr;if(!this.Fx()&&R){this.CM=R.status;R=this.f4(R);if(this.policy.RV){var l;(l=this.bM)==null||l.stop()}R===5?cQ(this.DN):this.vl(R);this.DN.X.stop()}}; g.L.f4=function(R){var l=this;sXY(this);if(Ei(this.DN,this.xhr.status,this.RS?this.timing.LX||this.Pb:this.xhr.hD(),!1,this.Ev))return 5;var y="";WQ(this.DN,this.xhr)&&(y=wqj(this.DN,this.xhr));if(y)return IX(oB(this.DN)),this.info.Re(this.LS,y),3;y=R.Jz();if(this.HQ){this.Cm(!0);sXY(this);if(Ei(this.DN,this.xhr.status,this.timing.LX||this.Pb,!1,this.Ev))return 5;if(!this.jN){if(this.Pb)return IX(oB(this.DN)),3;this.DN.lastError="net.closed";return 5}}else{if(Ei(this.DN,this.xhr.status,this.xhr.hD(), !1,this.Ev))return 5;var f=this.info.L;if(f&&f!==y||R.Da())return this.DN.lastError="net.closed",5;this.Cm(!0)}f=uqk(this)?R.getResponseHeader("X-Bandwidth-Est"):0;if(R=uqk(this)?R.getResponseHeader("X-Bandwidth-Est3"):0)this.x9=!0,this.policy.b_&&(f=R);vMs(this.DN,y,f?Number(f):0,this.info.SS[0].type===5);this.logger.debug(function(){var A=l.timing;return"Succeeded, rtpd="+(A.iQ*1E3+A.Z-Date.now()).toFixed(0)}); return 4}; g.L.canRetry=function(){this.Fx();var R=this.info.isDecorated();return this.DN.canRetry(R)}; g.L.onStateChange=function(){this.isComplete()&&(this.policy.HM?this.dP():this.timing.deactivate())}; g.L.qw=function(){this.DN.qw()}; g.L.gK=function(){this.callback&&this.callback(this,this.state)}; g.L.zK=function(){return this.DN.zK()}; g.L.dispose=function(){aB.prototype.dispose.call(this);this.DN.dispose();var R;(R=this.bM)==null||R.dispose();this.policy.HM||this.dP()}; g.L.dP=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.L.uy=function(){if(!this.rZ().length)return[];this.Vk=!0;return this.XJ.uy()}; g.L.z3=function(){if(this.state<1)return!1;if(this.XJ&&this.XJ.o2.length)return!0;var R;return((R=this.xhr)==null?0:R.KN())?!0:!1}; g.L.rZ=function(){this.Cm(!1);return this.XJ?this.XJ.rZ():[]}; g.L.Cm=function(R){try{if(R||this.xhr.KQ()&&this.xhr.KN()&&!WQ(this.DN,this.xhr)&&!this.OQ)this.XJ||(this.XJ=new HQ(this.policy,this.info.SS)),this.xhr.KN()&&(this.HQ?this.HQ.feed(this.xhr.i7()):n2(this.XJ,this.xhr.i7(),R&&!this.xhr.KN()))}catch(l){this.HQ?KGk(this,l):g.dP(l)}}; g.L.Wj=function(R,l){switch(R){case 21:R=l.split(1).SK;Gxk(this,R);break;case 22:this.jN=!0;n2(this.XJ,new Kn([]),!0);break;case 43:if(R=eP(new iE(l),1))this.info.Re(this.LS,R),this.Pb=!0;break;case 45:l=Pq(new iE(l));R=l.P7;l=l.v7;R&&l&&(this.kt=R/l);break;case 44:this.T7=lsk(new iE(l));var y,f,A;!this.timing.LX&&((y=this.T7)==null?void 0:y.action)===4&&((f=this.T7)==null?0:(A=f.Zf)==null?0:A.RS)&&(this.RS=this.T7.Zf.RS);break;case 53:this.policy.RV&&(R=Yb7(new iE(l)).sO)&&(this.bM||(this.sO=R,this.bM= new g.Vg(this.w_,R,this)),this.bM.start());break;case 60:this.yd=iS(new iE(l));break;case 58:if(R=Two(new iE(l)))this.EO=R,R.EO===3&&(this.Ev=!0)}}; g.L.I4=function(R,l,y,f){y||this.timing.I4(f);if(R!==21)return!1;if(R=this.policy.aB)if(R*=this.info.SS[0].Z.info.r7,l.totalLength+y!==f&&l.totalLength0)return!1;if(!this.xhr.KQ())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.HQ)var R=!this.info.L;else this.xhr.Z8()?R=!1:(R=this.xhr.getResponseHeader("content-type"),R=R==="audio/mp4"||R==="video/mp4"||R==="video/webm");if(!R)return!1;if(isNaN(this.info.GL)){R=this.xhr.getResponseHeader("x-head-seqnum");var l=this.timing.policy.V?1:0;if(!R)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(R)>this.info.SS[0].eS+l)return!1}return!0}; g.L.L4=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.L.OJ=function(){this.xhr&&(this.qH=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.qH}; g.L.qX=function(){this.xhr&&(this.Fr=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Fr}; g.L.hJ=function(){return this.DN.hJ()}; g.L.w_=function(){if(!this.Fx()&&this.xhr){this.I7="heartbeat";var R=this.DN;R.Z+=2;this.gK()}};g.O(ea,RB);g.L=ea.prototype;g.L.CY=function(R,l){var y=(R-this.D)/1E3,f=l-this.L;this.X>0?f>0&&(this.xb&&(y>.2||f<1024?(this.Y+=y,y>.2&&BD9(this,.05,f)):BD9(this,y,f)),this.CX&&(this.v1+=f,this.jS+=y)):l>this.policy.Z&&this.Nw(R,l);RB.prototype.CY.call(this,R,l)}; g.L.Kb=function(R,l){lX(this,R,l);this.CY(R,l);this.xb&&(l=this.L*this.snapshot.stall+this.L/this.snapshot.byterate,this.X>0&&r2(this.Gr,this.v1,this.Y),R=(R-this.Z)/1E3||.01,this.policy.W&&!(this.X>0)||d2(this.Gr,R,this.L,l,!1))}; g.L.QZ=function(R){lX(this,R,this.J);var l=(R-this.D)/1E3;zO(this.Gr,l,0);this.Wi(l,0);!this.xb&&this.X>0||(l=this.L*this.snapshot.stall+this.L/this.snapshot.byterate,this.X>0&&(this.Y+=(R-this.D)/1E3,r2(this.Gr,this.v1,this.Y)),d2(this.Gr,((R-this.Z)/1E3||.01)*this.policy.LX,this.L,l,!1,!0))}; g.L.Sc=function(R){R=R.TN||2147483647;(R&2)!==2&&(this.CX=!1);(R&1)===1&&(this.xb=!0)}; g.L.dZ=function(R){R=R.TN||2147483647;(R&2)===2&&(this.CX=!1);(R&1)===1&&(this.xb=!1)}; g.L.RY=function(){return this.W}; g.L.WY=function(){var R=this.CX?this.now()-this.D:0;return Math.max(this.jS*1E3+R,1)}; g.L.m_=function(){return this.v1*1E3/this.WY()}; g.L.Nw=function(R,l){R=R===void 0?this.V:R;l=l===void 0?this.J:l;this.X>0||(RB.prototype.Nw.call(this,R,l),l=this.Gr,R=(R-this.B)/1E3,l.W.tR(1,(this.B-this.Z)/1E3),l.sL.tR(1,R))}; g.L.Oy=function(R){this.UL=R}; g.L.DS=function(){var R=RB.prototype.DS.call(this);R.rbw=this.m_();R.rbe=+this.CX;R.gbe=+this.xb;R.ackt=(this.UL-this.Z).toFixed();return R}; g.L.T6=function(){}; g.L.MN=function(){return NaN}; g.L.Du=function(){return this.Z+this.snapshot.delay*1E3};bX.prototype.Wj=function(R,l){switch(R){case 20:R=new iE(l);R={KG:FP(R,1),videoId:eP(R,2),itag:FP(R,3),lmt:FP(R,4),xtags:eP(R,5),I_:FP(R,6),Sb:QH(R,8),TC:FP(R,9),UH9:FP(R,10),startMs:FP(R,11),durationMs:FP(R,12),n8:FP(R,14),timeRange:bE(R,15,nCY),uE:FP(R,16),CK:FP(R,17),clipId:eP(R,1E3)};this.bX(R);break;case 21:this.y0(l,!1);break;case 22:this.R$(l);break;case 31:R=d8(l,DcK);this.e9(R);break;case 52:R=d8(l,MNo);this.NB(R);break;default:this.w0(R,l)}}; bX.prototype.bX=function(){}; bX.prototype.w0=function(){};g.O(XK,bX);g.L=XK.prototype; g.L.w0=function(R,l){switch(R){case 35:this.QI(l);break;case 44:this.td(l);break;case 43:this.gR(l);break;case 53:this.Cx(l);break;case 55:R=new iE(l);bE(R,1,fsY);bE(R,2,Gui);break;case 56:this.U8();break;case 57:this.gS(l);break;case 42:this.Lx(l);break;case 45:this.Ca(l);break;case 59:this.O8(l);break;case 51:this.c9(l);break;case 49:this.Sc(l);break;case 50:this.dZ(l);break;case 47:this.K2(l);break;case 58:this.nE(l);break;case 61:this.Ge.Hl.Oy((0,g.eY)());break;case 66:this.GA(l);break;case 46:this.W9(l); break;case 67:this.onSnackbarMessage(l)}}; g.L.c9=function(R){R=new iE(R);R={ooQ:TJ(R,1,LA),j41:TJ(R,2,LA)};this.Ge.c9(R)}; g.L.O8=function(R){var l=new iE(R);R=XP(l,1);var y=XP(l,2);l=XP(l,3);this.Ge.O8(R,y,l)}; g.L.Ca=function(R){R=Pq(new iE(R));this.Ge.Ca(R)}; g.L.K2=function(R){R=d8(R,gCc);this.Ge.K2(R)}; g.L.Lx=function(R){R=new iE(R);R={videoId:eP(R,1),formatId:bE(R,2,LA),endTimeMs:FP(R,3),MOU:FP(R,4),mimeType:eP(R,5),aM:bE(R,6,Nw9),indexRange:bE(R,7,Nw9),Pm:bE(R,8,plo)};this.Ge.Lx(R)}; g.L.gS=function(R){R=Gui(new iE(R));this.Ge.gS(R)}; g.L.U8=function(){this.Ge.U8()}; g.L.QI=function(R){R=Zdq(new iE(R));this.Ge.QI(R)}; g.L.Cx=function(R){R=Yb7(new iE(R));this.Ge.Cx(R)}; g.L.td=function(R){R=lsk(new iE(R));this.Ge.td(R)}; g.L.gR=function(R){R={redirectUrl:eP(new iE(R),1)};this.Ge.gR(R)}; g.L.y0=function(R){var l=m0(R,0);if(R.totalLength!==1){R=R.split(1).SK;var y=this.X[l]||null;y&&xc(this.Ge.KJ,l,y,R)}}; g.L.R$=function(R){R=m0(R,0);var l=this.X[R]||null;l&&this.Ge.R$(R,l)}; g.L.NB=function(R){this.Ge.NB(R)}; g.L.bX=function(R){var l=R.KG,y=R.Sb,f=R.I_,A=R.CK,K=R.uE,G=R.TC,B=R.startMs,H=R.durationMs,n=R.timeRange,m=R.n8,h=R.clipId,c=ZH(R);R=lCd.has(ry[""+R.itag]);this.X[l]=c;this.Ge.gT(c,R,{KG:l,Sb:!!y,I_:f!=null?f:-1,TC:G!=null?G:-1,startMs:B!=null?B:-1,durationMs:H!=null?H:-1,n8:m,CK:A,uE:K,clipId:h,timeRange:n})}; g.L.Sc=function(R){R={TN:FP(new iE(R),1)};this.Ge.Sc(R)}; g.L.dZ=function(R){R={TN:FP(new iE(R),1)};this.Ge.dZ(R)}; g.L.e9=function(R){this.Ge.e9(R)}; g.L.nE=function(R){R=Two(new iE(R));this.Ge.nE(R)}; g.L.GA=function(R){R={Ud:bE(new iE(R),1,qbr)};this.Ge.GA(R)}; g.L.onSnackbarMessage=function(R){R=FP(new iE(R),1);this.Ge.onSnackbarMessage(R)}; g.L.W9=function(R){R=new iE(R);R={reloadPlaybackParams:bE(R,1,XlY),He:QH(R,2)};this.Ge.W9(R)};g.O(T6,g.p);g.L=T6.prototype;g.L.PK=function(){return Array.from(this.n_.keys())}; g.L.zA=function(R){R=this.n_.get(R);var l=R.o2;R.cP+=l.totalLength;R.o2=new Kn;return l}; g.L.KM=function(R){return this.n_.get(R).KM}; g.L.Aj=function(R){return this.n_.get(R).Aj}; g.L.gT=function(R,l,y,f){this.n_.get(R)||hwY(this,R,l);l=this.n_.get(R);if(this.nX){R=EHZ(this,R,y);if(f)for(var A=g.u(R),K=A.next();!K.done;K=A.next()){K=K.value;var G=f;K.Yb=G;K.startTime+=G;K.Y+=G;K.D+=G}cyi(this,y.KG,l,R)}else y.Sb?l.G5=y.n8:l.Q6.push(y),l.fF.push(y)}; g.L.HR=function(R){var l;return((l=this.n_.get(R))==null?void 0:l.SS)||[]}; g.L.fL=function(){for(var R=g.u(this.n_.values()),l=R.next();!l.done;l=R.next())l=l.value,l.Mf&&(l.Pf&&l.Pf(),l.Mf=!1)}; g.L.R$=function(R,l){this.logger.debug(function(){return"[onMediaEnd] formatId: "+l}); var y=this.n_.get(l);dl?y&&!y.KM&&(y.N$.get(R)?y.N$.get(R).Uv=!0:y.N$.set(R,{data:new Kn,u_:0,Uv:!0}),y.Aj=!0):y&&!y.Aj&&(y.Aj=!0)}; g.L.uy=function(R){if(dl){var l=this.n_.get(R);if(l)for(var y=g.u(l.N$),f=y.next();!f.done;f=y.next()){var A=g.u(f.value);f=A.next().value;A=A.next().value;var K=l.wW.get(f);if(YH(K[0])){if(!A.Uv)continue;var G=A.data,B=0,H=[];K=g.u(K);for(var n=K.next();!n.done;n=K.next()){n=n.value;var m=n.L,h=a3(G,B,m);B+=m;H.push(new O6(n,h))}l.Ta.push.apply(l.Ta,g.ci(H))}else if(A.data.totalLength>0||!K[0].range&&A.Uv)G=void 0,B=K[0],H=A.u_,K=A.data,B.range||(G=A.Uv),G=new O6(e_Y(B,B.X+H,K.totalLength,G),K), A.u_+=G.info.L,l.Ta.push(G);l.N$.get(f).data=new Kn;A.Uv&&l.N$.delete(f)}R=this.n_.get(R);if(!R)return[];l=R.Ta;R.Ta=[];y=g.u(l);for(f=y.next();!f.done;f=y.next())R.cP+=f.value.info.L;return l||[]}y=(l=this.n_.get(R))==null?void 0:l.XJ;if(!y)return[];this.Cm(R,y);return y.uy()}; g.L.z3=function(R){if(dl)return wl(this,R);var l,y,f;return!!((y=(l=this.n_.get(R))==null?void 0:l.XJ)==null?0:(f=y.rZ())==null?0:f.length)||wl(this,R)}; g.L.Cm=function(R,l){for(;wl(this,R);){var y=this.zA(R);var f=R;f=this.n_.get(f).KM&&!z6(this,f);n2(l,y,f&&oHi(this,R))}}; g.L.G4=function(){g.p.prototype.G4.call(this);for(var R=g.u(this.n_.keys()),l=R.next();!l.done;l=R.next())rl(this,l.value);var y;if((y=this.k6)==null?0:y.iV)for(R=g.u(this.n_.values()),l=R.next();!l.done;l=R.next())l=l.value,l.N$.clear(),l.wW.clear(),l.Ta.length=0,l.SS.length=0,l.fF.length=0,l.Q6.length=0;this.n_.clear()}; var dl=!1;g.O(IB,g.p);g.L=IB.prototype;g.L.a4=function(){!this.Fx()&&this.xhr&&(this.Cm(!1),tp(this.Ge,this))}; g.L.Ve=function(){}; g.L.q5=function(){if(!this.Fx()&&this.xhr){var R=this.f4();R===5?cQ(this.DN):this.vl(R);this.DN.X.stop();var l;(l=this.vu)==null||l.stop()}}; g.L.f4=function(){var R="";WQ(this.DN,this.xhr)&&(R=wqj(this.DN,this.xhr));if(R)return this.info.x$.Re(this.LS,R),3;this.Cm(!0);if(Ei(this.DN,this.xhr.status,this.xhr.hD(),this.info.kO(),this.Ev))return 5;if(this.X2)return 3;vMs(this.DN,this.xhr.Jz(),0,this.kO());this.policy.tF&&bCo(this.Ge);return 4}; g.L.Cm=function(R){var l=this.xhr;if((R||!WQ(this.DN,this.xhr))&&l.KN()){R=l.i7();var y=R.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+y}); this.HQ.feed(R)}}; g.L.Wj=function(R,l){this.xhr.rT()&&R===21&&P6s(this);this.Lk.Wj(R,l)}; g.L.I4=function(R,l,y,f){y||(this.Hl.I4(f),this.policy.kL&&R===21&&P6s(this));if(R!==21)return!1;this.Hl.LX=!0;R=l.totalLength;y||(this.B8=m0(l,0),l=l.split(1).SK);var A=this.policy.Yp,K=this.Lk.X[this.B8],G=this.nX.L.get(K);if(A&&G&&(A*=G.info.r7,R+y!==f&&R0){this.policy.ZT&&this.DN.X.stop();R=this.Hl.WY();l=this.Hl.m_();var y=u3j(this,R);if(!(l>y.YU||y.W_>0&&this.info.OE()>y.W_)){this.G6=(0,g.eY)();var f;(f=this.vu)==null||f.stop();this.policy.tF&&(f=this.Ge,R={mA:Math.round(l*R/1E3),Li:R},f.policy.tF&&(f.sL=R,f.N2++));this.qw()}}}}; g.L.qw=function(){this.DN.qw()}; g.L.td=function(R){this.Ge.td(R,this.g3())}; g.L.gR=function(R){this.X2=!0;this.info.x$.Re(this.LS,R.redirectUrl)}; g.L.Sc=function(R){this.Hl instanceof ea&&this.Hl.Sc(R)}; g.L.dZ=function(R){this.Hl instanceof ea&&this.Hl.dZ(R)}; g.L.Lx=function(R){var l=R.formatId,y=ZH({itag:l.itag,lmt:l.lmt,xtags:l.xtags}),f,A,K=new gD(((f=R.aM)==null?void 0:f.first)||0,((A=R.aM)==null?void 0:A.g_)||0),G,B;f=new gD(((G=R.indexRange)==null?void 0:G.first)||0,((B=R.indexRange)==null?void 0:B.g_)||0);this.nX.L.get(y)||(y=R.Pm||{},y.mimeType=R.mimeType,y.itag=l.itag,y.lastModified=""+(l.lmt||0),y.xtags=l.xtags,R=this.nX,l=U6(""),y=Nq(y,null),rS(R,new XV(l,y,K,f)))}; g.L.Ca=function(R){this.Ge.Ca(R,this.g3())}; g.L.onSnackbarMessage=function(R){if(this.policy.w2)this.Ge.onSnackbarMessage(R)}; g.L.e9=function(R){this.dV=R;this.WF=(0,g.eY)();this.Ge.e9(R)}; g.L.O8=function(R,l,y){this.Ge.O8(R,l,y)}; g.L.gS=function(R){R.scope===2&&(this.gO=R);this.Ge.gS(R)}; g.L.U8=function(){this.er=!0;this.Ge.U8()}; g.L.c9=function(R){this.policy.xP&&this.Ge.c9(R)}; g.L.K2=function(R){this.Ge.K2(R,this.g3())}; g.L.nE=function(R){R.EO===3&&(this.Ev=!0);this.Ge.nE(R)}; g.L.GA=function(R){this.Ge.GA(R)}; g.L.W9=function(R){this.Ge.W9(R)}; g.L.canRetry=function(){this.Fx();return this.DN.canRetry(!1)}; g.L.dispose=function(){if(!this.Fx()){g.p.prototype.dispose.call(this);this.DN.dispose();var R;(R=this.vu)==null||R.dispose();this.vl(-1);this.dP()}}; g.L.vl=function(R){this.state=R;tp(this.Ge,this)}; g.L.kO=function(){return this.info.kO()}; g.L.s$=function(){return this.er}; g.L.ZV=function(){return this.gO}; g.L.gT=function(R,l,y){y.clipId&&(this.clipId=y.clipId);this.policy.X&&!l&&(this.EN=y.TC);this.KJ.gT(R,l,y,0);if(this.policy.mS&&this.dV&&this.Hl instanceof f2){var f=this.dV.VN;this.Hl.gT(y.durationMs/1E3,l,f>0&&y.TC+1>=f)}this.KJ.n_.get(R).Xk=!0}; g.L.R$=function(R,l){this.KJ.R$(R,l)}; g.L.NB=function(R){this.requestIdentifier=R}; g.L.uy=function(R){return this.KJ.uy(R)}; g.L.HR=function(R){return this.KJ.HR(R)}; g.L.z3=function(R){return this.KJ.z3(R)}; g.L.PK=function(){return this.KJ.PK()}; g.L.OI=function(){return 1}; g.L.g3=function(){return this.Hl.requestNumber}; g.L.wD=function(){return this.requestIdentifier}; g.L.Jk=function(){return this.LS.Jk()}; g.L.e$=function(){this.dP()}; g.L.dP=function(){this.Hl.deactivate();var R;(R=this.xhr)==null||R.abort()}; g.L.isComplete=function(){return this.state>=3}; g.L.eV=function(){return this.state===3}; g.L.oU=function(){return this.state===5}; g.L.FS=function(){return this.state===4}; g.L.Hr=function(){return this.isComplete()}; g.L.r$=function(){return this.state>=1}; g.L.zK=function(){return this.policy.OF?this.DN.zK():0}; g.L.gK=function(){this.policy.OF&&tp(this.Ge,this)}; g.L.Q2=function(){return ZIi(this.info)}; g.L.hJ=function(){return this.DN.hJ()}; g.L.K$=function(){var R=xQY(this.DN);Object.assign(R,ghi(this.info));R.req="sabr";R.rn=this.g3();var l;if((l=this.xhr)==null?0:l.status)R.rc=this.policy.Zj?this.xhr.status:this.xhr.status.toString();var y;(l=(y=this.xhr)==null?void 0:y.iO())&&(R.msg=l);this.G6&&(y=u3j(this,this.G6-this.Hl.RY()),R.letm=y.jm,R.mrbps=y.YU,R.mram=y.W_);return R};FGj.prototype.tick=function(R,l){this.ticks[R]=l?window.performance.timing.navigationStart+l:(0,g.eY)()};g.O(p2,g.Ae);g.L=p2.prototype; g.L.Nn=function(R,l,y,f){if(this.policy.wp&&this.policy.X){var A=R.I2||null;A?(pU9(this,R.eS,Zm(this,R.startTime,R.eS),{I2:A,eS:R.eS,Eh:!!l,fJ:y},this.L),f&&this.L&&this.L.Pi(R.eS,R.startTime,this.X,(l==null?void 0:l.Z)||[],(l==null?void 0:l.X)||[],(l==null?void 0:l.Y)||[],y,(l==null?void 0:l.WP)||0,(l==null?void 0:l.L)||void 0)):this.X===1&&Sa(this,5,"noad")}else{var K=!1;this.policy.X&&(K=y?this.Dq===R.eS:this.xb===R.eS);if(this.L&&f&&!K){f=[];K=[];var G=[],B=void 0,H=0;l&&(f=l.Z,K=l.X,G=l.Y,B= l.L,H=l.WP,this.T4("sdai",{sq:R.eS,ssvicpns:f.join("."),ssvid:K.join(".")}));this.policy.X&&(y?this.Dq=R.eS:this.xb=R.eS);this.L.Pi(R.eS,R.startTime,this.X,f,K,G,y,H,B)}this.policy.X?y&&(this.X===1&&Sa(this,5,"noad"),R.eS!==((A=this.Z)==null?void 0:A.eS)&&(xOc(this,R,l,y),isNaN(R.startTime)||IHc(this,R.eS,Zm(this,R.startTime,R.eS),!!l,this.L))):y&&xOc(this,R,l)}}; g.L.sf=function(R,l,y){var f=this.videoTrack.Z.index.Wl()<=l;this.Z={I2:R,eS:l,Eh:y};f&&Ui(this,R,l)}; g.L.vU=function(){this.L&&this.L.vU()}; g.L.T4=function(R,l,y){(R!=="sdai"||this.policy.jT||(y===void 0?0:y))&&this.loader.T4(R,l)}; g.L.Ez=function(R,l){var y=this.videoTrack.Z.index.TL(R);if(y>=0){var f;var A=((f=l.Ns.nI(y,2))==null?void 0:f.xL)||"";if(this.policy.X||A)return l.tv(R,y),kc(this.loader,R,R,y),this.T4("sdai",{cmskpad:1,t:R.toFixed(3),sq:y}),!0}this.T4("sdai",{cmskpad:0,t:R.toFixed(3),sq:y});return!1};g.L=kxZ.prototype;g.L.o4=function(R,l,y){R=R||this.Z;if(this.X.has(R)){if(R=this.X.get(R))R.K0=l,R.fl.push(y)}else l={K0:l,fl:[],startTimeSecs:0,G9:0},l.fl.push(y),this.X.set(R,l)}; g.L.Yq=function(R,l){R!==void 0&&this.FA(R);if(this.Z&&(R=this.X.get(this.Z),R!=null&&R.K0)){var y={KY:R.fl,Mq:Pn(R.K0||"")||void 0,cuepointId:this.Z};R.X6&&(y.Td=R.X6);l&&(y.u9=zs(l.split(";")[0]),y.kB=l.split(";")[1]||"");return y}}; g.L.tv=function(R,l){this.FA(R);var y=this.X.get(this.Z);y?(this.T4("ssskipad",{cid:this.Z,sn:l,mt:R.toFixed(3)}),y.X6=l):this.T4("ssskipadfail",{cid:this.Z,sn:l,mt:R.toFixed(3)})}; g.L.zq=function(){for(var R=g.u(this.X.values()),l=R.next();!l.done;l=R.next())l.value.X6=NaN}; g.L.FA=function(R,l){l&&(this.L=l);if(this.Z&&(l=this.X.get(this.Z))&&l.startTimeSecs<=R&&R<=l.startTimeSecs+l.G9)return;this.Z="";l=g.u(this.X.entries());for(var y=l.next();!y.done;y=l.next()){var f=g.u(y.value);y=f.next().value;f=f.next().value;var A=void 0,K=void 0,G=void 0;if(((A=f)==null?void 0:A.startTimeSecs)<=R&&R<=((K=f)==null?void 0:K.startTimeSecs)+((G=f)==null?void 0:G.G9)){this.Z=y;break}}};g.O(C2,g.p);C2.prototype.DE=function(R,l,y){y=y===void 0?{}:y;this.policy.Dy=Mq(R,y,this.Y,l===void 0?!1:l)};Rb.prototype.VZ=function(R){var l=this;if(this.policy.Hy){var y=new Set(R);y.size===this.sL.size&&[].concat(g.ci(y)).every(function(f){return l.sL.has(f)})||(this.loader.T4("lwnmow",{itagDenylist:[].concat(g.ci(R)).join(",")}),this.loader.kf(!!y.size),this.B=-1,this.sL=y,lI(this,this.Z),this.v1=!0)}}; Rb.prototype.DE=function(R,l,y){y=y===void 0?{}:y;var f=this.policy.Dy;this.J.DE(R,l===void 0?!1:l,y);if(f!==this.policy.Dy){lI(this,this.Z);yp(this);var A,K;f>this.policy.Dy&&((A=this.L)==null?0:Iz(A.info))&&((K=this.nextVideo)==null||!Iz(K.info))&&(this.LX=!0)}};Gp.prototype.IA=function(R){this.timestampOffset=R;this.flush()}; Gp.prototype.flush=function(){if(this.Z.pos>0){var R={a:this.track.IT(),u:this.Z.Bf(),pd:Math.round(this.Y),ad:Math.round(this.L)},l=this.X;if(l){var y=l.Z.info;R.itag=y.itag;y.Z&&(R.xtags=y.Z);R.sq=l.eS;R.st=l.startTime;R.sd=l.duration;this.track.policy.HT&&(R.si=l.YG());l.J&&(R.esl=l.X+l.L);l.nf()&&(R.eos=1)}isNaN(this.timestampOffset)||(R.to=this.timestampOffset);var f;if(l=(f=this.track.Fo)==null?void 0:f.S1({})){for(var A in l)this.D[A]!==l[A]&&(R["sb_"+A]=l[A]);this.D=l}this.track.T4("sbu", R);this.Z.reset();this.buffered=[];this.J=this.L=this.Y=0;this.timestampOffset=this.X=void 0}};sf.prototype.dispose=function(){this.Yb=!0}; sf.prototype.Fx=function(){return this.Yb}; g.O(hY,Error);Wk.prototype.skip=function(R){this.offset+=R}; Wk.prototype.Rt=function(){return this.offset};g.L=bKi.prototype;g.L.s7=function(){return this.X}; g.L.ZE=function(){return this.X.length?this.X[this.X.length-1]:null}; g.L.VD=function(){this.X=[];uI(this);iI(this)}; g.L.zA=function(R){this.jS=this.X.shift().info;R.info.equals(this.jS)}; g.L.HR=function(){return g.L$(this.X,function(R){return R.info})}; g.L.IT=function(){return!!this.J.info.audio}; g.L.isDrm=function(){return!!this.J.info.sS}; g.L.getDuration=function(){return this.J.index.fQ()};g.O(D$,aB);g.L=D$.prototype;g.L.onStateChange=function(){this.Fx()&&(vQ(this.KJ,this.formatId),this.Z.dispose())}; g.L.K$=function(){var R=mOk(this.KJ,this.formatId),l;var y=((l=this.KJ.n_.get(this.formatId))==null?void 0:l.bytesReceived)||0;var f;l=((f=this.KJ.n_.get(this.formatId))==null?void 0:f.cP)||0;return{expected:R,received:y,bytesShifted:l,sliceLength:z6(this.KJ,this.formatId),isAnyMediaEndReceived:this.KJ.Aj(this.formatId)}}; g.L.Hn=function(){return 0}; g.L.tj=function(){return!0}; g.L.uy=function(){return this.KJ.uy(this.formatId)}; g.L.rZ=function(){return[]}; g.L.z3=function(){return this.KJ.z3(this.formatId)}; g.L.hJ=function(){return this.lastError}; g.L.zK=function(){return 0};g.O(eL,g.p);g.L=eL.prototype;g.L.IT=function(){return!!this.Z.info.audio}; g.L.ZE=function(){return this.Y.ZE()}; g.L.zA=function(R){this.Y.zA(R);var l;(l=this.W)!=null&&(l.J.add(R.info.eS),l.Z=RgJ(l,l.qx,l.VX,R,l.Z),l.L=R,l.D=(0,g.eY)());this.r7=Math.max(this.r7,R.info.Z.info.r7||0)}; g.L.getDuration=function(){return this.Z.index.fQ()}; g.L.VD=function(){Js(this);this.Y.VD()}; g.L.Bm=function(){return this.Y}; g.L.isRequestPending=function(R){return this.L.length?R===this.L[this.L.length-1].info.SS[0].eS:!1}; g.L.IA=function(R){var l;(l=this.W)==null||l.IA(R);var y;(y=this.B)==null||y.IA(R)}; g.L.T4=function(R,l){this.loader.T4(R,l)}; g.L.C7=function(){return this.loader.C7()}; g.L.dispose=function(){var R;(R=this.B)==null||R.flush();g.p.prototype.dispose.call(this)};g.O(Cu,g.p);Cu.prototype.L=function(){this.X++>15||(this.Z=!this.Z,new EhQ(this.loader,this.policy,this.Gr,this.x$,this.Z),this.delay.start())}; g.L=EhQ.prototype;g.L.Ve=function(){}; g.L.a4=function(){}; g.L.q5=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Jz()===this.size)this.loader.T4("rqs",this.getInfo());else{var R="net.connect";this.xhr.status>200?R="net.badstatus":this.xhr.KQ()&&(R="net.closed");this.onError(R)}}; g.L.onError=function(R){var l=this;this.loader.handleError(R,this.getInfo());xe("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(y){l.loader.T4("pathprobe",y)},function(y){l.loader.handleError(y.errorCode,y.details)})}; g.L.getInfo=function(){var R=this.timing.DS();R.shost=Zp(this.location.Kw);R.pb=this.size;return R};g.O(qy,g.p); qy.prototype.V=function(R,l){if(R.V){this.nX.isLive?(R=this.nX.ZG&&this.nX.Y?R.Z.My(this.nX.ZG,!1):R.Z.zY(Infinity),R.GL=this.GL):R=R.Z.My(0,!1);if(this.LX){var y=this.LX;R.GL===0&&(R.J=y.W)}else R.J=this.B;return R}y=R.X;if(!y.Z.Gf())return y.Z.PO()?(R=px(this.J,R.Z.info.r7,l.Z.info.r7,0),R=y.Z.j8(y,R)):R=y.Z.Py(y),R;var f=y.D-this.loader.getCurrentTime(),A=!y.range||y.L===0&&y.X===0?0:y.range.length-(y.X+y.L),K=y.Z;this.Xn(R,f)&&A===0&&(this.nX.isManifestless?K=R.Z:(K=y.startTime+Nnc,y.L&&(K+=y.duration), Cx(R,K),y=R.X,K=y.Z));K.PO()?(A=this.L,l=px(this.J,K.info.r7,l.Z.info.r7,f,A.Y.length>0&&A.W===0&&this.loader.SU),f=jL(R),R=y.Z.j8(y,l),(l=R.L)&&R.SS.length>1&&(f||R.x$.L||R.SS[0].Z!==y.Z?R=y.Z.j8(y,R.SS[0].L):(f=R.SS[R.SS.length-1],K=f.L/l,!f.J&&K<.4&&(R=y.Z.j8(y,l-f.L))))):(y.eS<0&&(l=y6(y),l.pr=""+R.L.length,this.loader.isSeeking()&&(l.sk="1"),l.snss=y.W,this.loader.T4("nosq",l)),R=K.Py(y));if(this.policy.Dq)for(y=g.u(R.SS),l=y.next();!l.done;l=y.next())l.value.type=6;return R}; qy.prototype.Xn=function(R,l){if(!jL(R)||!R.Z.Gf())return!1;var y=this.L.v1||lqk(R)||l<=this.policy.BT||this.L.LX;this.logger.debug(function(){return"ready to adapt: "+y+", upgrade pending: "+lqk(R)+", health: "+l}); return y}; qy.prototype.G4=function(){g.p.prototype.G4.call(this)}; var Nnc=2/24;g.O(lM,g.p);lM.prototype.fK=function(R,l,y){var f;var A=((f=this.X)==null?void 0:f.reason)==="m"?"m":this.X&&wn7(this,this.X)?this.X.reason:"a";this.loader.fK(new Vm(R,A,y));My(this.loader,l,R,!0)}; lM.prototype.Tx=function(R,l){for(var y=g.u(this.Dq),f=y.next();!f.done;f=y.next())if(f.value.id===R)return this.J=this.nX.Z[R],uX(this.k6)&&(this.LX=!0),R=new Vm(this.J,l?"t":"m"),l&&(this.V=!0),R;this.L=[];return null}; lM.prototype.DE=function(R,l,y){y=y===void 0?{}:y;this.Z.DE(R,l===void 0?!1:l,y)};fT.prototype.setData=function(R,l,y){var f=this;y=y===void 0?{}:y;if(l==null?0:l.sF)this.U0=ieo(this,l,y),R.w9=this.x$.w9();if(this.kO())return!0;this.data=R;this.Z=kOo(R,function(A,K){var G;(G=f.Ge)==null||G.MU(A,K)},l==null?void 0:l.L); if(!this.Z)return!1;this.X=g.Cn(this.Z,zFc);return!0}; fT.prototype.kO=function(){return this.requestType===1}; fT.prototype.OE=function(){var R;return((R=this.Ge)==null?void 0:R.OE())||0}; fT.prototype.isDecorated=function(){var R;return!((R=this.data)==null||!R.WO)};CiT.prototype.K7=function(R,l){l=l===void 0?1:l;this.RL+=l;this.X+=R;R/=l;for(var y=0;y0)f+="."+Ap[A].toFixed(0)+"_"+y.Z[A].toFixed(0);else break;y=f}y&&(R[l]=y)}this.Z=new qNi;return R}; g.L.toString=function(){return""};g.L=ynq.prototype;g.L.isActive=function(){return!1}; g.L.BN=function(){}; g.L.Ai=function(){}; g.L.Cn=function(){}; g.L.wR=function(R,l){l()}; g.L.tG=function(){return{}}; g.L.toString=function(){return""};var P4D=new ynq,uuK=!!+g_("html5_enable_profiler"),FbK=!!+g_("html5_onesie_enable_profiler"),Ok=uuK||FbK?new YNi:P4D,qLY=uuK?Ok:P4D,aQ=FbK?Ok:P4D;KT.prototype.encrypt=function(R){this.Z.exports.AES128CTRCipher_encrypt(this.cipher,R.byteOffset,R.byteLength);return R}; KT.prototype.Fx=function(){return this.cipher===0}; KT.prototype.dispose=function(){this.Z.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};sGc.prototype.emscripten_notify_memory_growth=function(){};g.L=G$.prototype;g.L.malloc=function(R){return this.exports.malloc(R)}; g.L.free=function(R){this.exports.free(R)}; g.L.realloc=function(R,l){return this.exports.realloc(R,l)}; g.L.vg=function(R){if(R.buffer!==this.exports.memory.buffer){var l=this.malloc(R.byteLength);l=new Uint8Array(this.exports.memory.buffer,l,R.byteLength);l.set(R);return l}}; g.L.Go=function(R){if(R.buffer===this.exports.memory.buffer){var l=R.slice();this.free(R.byteOffset);return l}}; var fvc=new function(){this.L=this.Y="WebAssembly"in window},n6Z="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); aQ.BN(G$,{vg:function(R){return{profile:"copyj2w",RL:R===void 0?0:Math.ceil(R.byteLength/16)}}, Go:function(R){return{profile:"copyw2j",RL:R===void 0?0:Math.ceil(R.byteLength/16)}}});sg.prototype.encrypt=function(R,l){return bL(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:l},this.key,R).catch(function(y){return Promise.reject(y.name+": "+y.message)}).then(function(y){return new Uint8Array(y)}))}; sg.prototype.Fx=function(){return this.Z}; sg.prototype.dispose=function(){this.Z=!0}; BN.prototype.encrypt=function(R,l){return bL(this.X(R,l))}; BN.prototype.X=function(R,l){aF(this.L,l);return this.L.encrypt(R)}; BN.prototype.Fx=function(){return this.Z}; BN.prototype.dispose=function(){this.Z=!0}; HN.prototype.encrypt=function(R,l){return bL(this.X(R,l))}; HN.prototype.X=function(R,l){l=this.L.vg(l);var y=this.Z;y.Z.exports.AES128CTRCipher_setCounter(y.cipher,l.byteOffset);this.L.free(l.byteOffset);l=this.L.vg(R);this.Z.encrypt(l!=null?l:R);return l?this.L.Go(l):R}; HN.prototype.Fx=function(){return this.Z.Fx()}; HN.prototype.dispose=function(){this.Z.dispose()}; aQ.BN(sg,{encrypt:o6Y("oan2")});aQ.BN(BN,{encrypt:o6Y("oap")});aQ.BN(HN,{encrypt:o6Y("oalw")});nT.prototype.encrypt=function(R,l){var y=this,f=Xf("");R.length<=this.Ni&&this.Z&&!this.J&&(f=v5(f,function(){return y.Z?y.Z.encrypt(R,l):Xf("wasm unavailable")})); R.length<=this.HV&&(this.Z&&this.J&&(f=v5(f,function(){return y.Z?y.Z.encrypt(R,l):Xf("wasm unavailable")})),f=v5(f,function(){return E6c(y,R,l)})); return v5(v5(f,function(){return WQK(y,R,l)}),function(){return E6c(y,R,l)})}; nT.prototype.X=function(R,l){if(this.Z)return this.Z.X(R,l);this.L||(this.L=new BN(this.key));return this.L.X(R,l)}; nT.prototype.Fx=function(){return this.D}; nT.prototype.dispose=function(){this.D=!0;var R;(R=this.Y)==null||rZ(R,g.f_);g.f_(this.Z);g.f_(this.L)};mD.prototype.encrypt=function(R){(0,g.eY)();return(new g.m7(this.Z.Z)).encrypt(R,this.iv)}; mD.prototype.decrypt=function(R,l){(0,g.eY)();return(new g.m7(this.Z.Z)).decrypt(R,l)}; mD.prototype.Fx=function(){return this.L}; mD.prototype.dispose=function(){this.L=!0;g.f_(this.X)};g.O(oQ,g.p);oQ.prototype.L=function(R,l){if(l){l=l instanceof g.kM?l:hp(this,l);var y;((y=this.Z.get(R))==null?void 0:Zp(y.location))!==Zp(l)&&this.Z.set(R,new bUJ(l,R))}else this.Z.delete(R)}; oQ.prototype.load=function(){var R=this,l,y,f,A,K,G,B,H,n,m;return g.w(function(h){switch(h.X){case 1:l=R.Z.get(0);g.$7(h,2);var c;if(c=l&&!R.X)c=Zp(l.location),c=R.X===hE(c);if(c){h.bQ(4);break}return g.v(h,$N9(R,R.X?2:0),5);case 5:if(y=h.Z)R.L(0,y),gM(y)&&R.L(1,Vz(y));case 4:g.XZ(h,3);break;case 2:f=g.TT(h);g.dP(f);if(!R.X){h.bQ(3);break}R.X=!1;return g.v(h,R.load(),7);case 7:return h.return();case 3:if(!R.Zq.experiments.EL("html5_onesie_probe_ec_hosts")){h.bQ(0);break}g.$7(h,9);A=R;K=A.L;G=3;return g.v(h, $N9(R,1),11);case 11:return K.call(A,G,h.Z),B=R,H=B.L,n=4,g.v(h,$N9(R,2),12);case 12:H.call(B,n,h.Z);g.XZ(h,0);break;case 9:m=g.TT(h),g.dP(m),g.Q9(h)}})}; oQ.prototype.V=function(){var R=this,l,y;return g.w(function(f){g.Cz(R.W);l=g.yx(R.Zq.experiments,"html5_onesie_prewarm_max_lact_ms");if(uq()>=l)return f.return();(y=R.Z.get(0))&&QGi(R,y);g.Q9(f)})}; var uhZ={B3Q:0,e37:1,XO4:2,FNQ:3,Six:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};Xmk.prototype.decrypt=function(R){var l=this,y,f,A,K,G,B;return g.w(function(H){switch(H.X){case 1:if(T3Z(l))return H.return();l.X=!0;l.wz.Uj("omd_s");y=new Uint8Array(16);Hz()?f=new g.nH(R):A=new g.m7(R);case 2:if(!l.Z.length||!l.Z[0].isEncrypted){H.bQ(4);break}K=l.Z.shift();if(!f){G=A.decrypt(HO(K.buffer),y);H.bQ(5);break}return g.v(H,f.decrypt(HO(K.buffer),y),6);case 6:G=H.Z;case 5:B=G;dNZ(y);var n=l.wz,m=K.videoId,h=K.KG,c=K.formatId,E=new Kn([B]),W;(W=Eg(n.ib,m))==null||xc(W,h,c,E);H.bQ(2);break; case 4:l.wz.Uj("omd_c"),WN(l),l.X=!1,l.wz.zo(),g.Q9(H)}})}; Xmk.prototype.enqueue=function(R,l,y,f,A){this.Z.push({videoId:R,KG:l,formatId:y,buffer:f,isEncrypted:A});this.X||WN(this)};var jGi=!!Uint8Array.prototype.copyWithin,LT=[],v6s=[],xNk=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],iM=[],Og=[],PN=[],zzc=[];F2.prototype.Y_=function(R){return g.SSZ(new g.wmq(R))}; F2.prototype.T5=function(R){function l(G){if(!G.done)return K.append(G.value),A.read().then(function(B){return l(B)})} if(!("DecompressionStream"in window))return Xf("native decompression unavailable");var y=new DecompressionStream("gzip"),f=y.writable.getWriter();f.write(R).then(function(){return f.close()}); var A=y.readable.getReader(),K=new Kn([]);return v5(rZ(rZ(bL(A.read()),l),function(){return HO(K)}),function(G){return Xf(G.message)})}; F2.prototype.IM=function(R,l){var y=void 0,f=l.vg(R);f&&(y=f.byteOffset,R=f);f=l.exports.getInflatedSize(R.byteOffset,R.length);if(f===0)return Xf("bad compressed input");var A=l.malloc(f);if(l.exports.inflateGzip(R.byteOffset,R.length,A))return l.free(A),Xf("inflateGzip failed");y&&l.free(y);return bL(new Uint8Array(l.exports.memory.buffer,A,f))}; aQ.BN(F2,{Y_:function(R){return{profile:"gzjb",RL:Math.ceil(R.byteLength/16)}}, T5:function(R){return{profile:"gznb",RL:Math.ceil(R.byteLength/16)}}, IM:function(R){return{profile:"gzwb",RL:Math.ceil(R.byteLength/16)}}});g.O(ZUq,bX);g.L=ZUq.prototype;g.L.zo=function(){this.ib.zo()}; g.L.w0=function(R,l){switch(R){case 10:var y=d8(l,jI9);R=y.V_b;var f=!1;switch(R){case 0:this.L=!y.P5.Ri;this.iv=y.P5.iv;break;case 2:break;case 23:var A=this.ib;y=y.YLL;A.Uj("omp_r");y.videoId&&(A.j9=y.videoId);A.j9!==A.videoData.videoId&&(A.videoData.qR=A.j9,A.T4("ompp","vid."+A.j9));A.jw=!0;break;case 24:y=this.ib;y.Uj("omp_c");y.jw=!1;y.j2=!1;var K=(A=y.qj)==null?void 0:A.get(y.j9);y.notifySubscribers(y.j9);K!=null&&(K.Z=!0);Dh(y);break;default:f=!0}this.ib.eQ&&this.ib.T4("ombup","id.10;pt."+ R+";len."+l.totalLength+(f?";ignored.1":""));this.Y=R;break;case 11:C2K(this,l);break;case 12:this.y0(l,!0);break;case 37:l=d8(l,kFY);(l.mR||l.Se)&&l.videoId&&this.ib.cn.set(l.videoId,l);break;case 60:this.G2(l);break;case 47:this.C("html5_server_playback_start_policy")&&(l=d8(l,gCc),this.ib.playbackStartPolicy=l);break;case 35:this.QI(l);break;case 45:this.Ca(l);break;case 66:this.GA(l);break;default:this.ib.eQ&&this.ib.T4("ombup","id."+R+";len."+l.totalLength+";ignored.1")}}; g.L.e9=function(R){this.ib.e9(R)}; g.L.G2=function(R){R=d8(R,iS);this.ib.G2(R)}; g.L.Ca=function(R){R=d8(R,Pq);this.ib.Ca(R)}; g.L.bX=function(R){var l=R.KG,y=R.Sb,f=R.I_,A=R.uE,K=R.TC,G=R.startMs,B=R.durationMs,H=R.timeRange,n=R.n8,m=ZH(R),h=lCd.has(ry[""+R.itag]);y&&this.Uj(h?"oais_r":"ovis_r");var c=this.Z[m]!==void 0;this.ib.eQ&&this.ib.T4("ombup","id.20;hid."+l+";fid."+m);var E=R.videoId||"";this.X[l]=m;this.J[l]=E;c||(this.Z[m]={videoId:E,tQ:!1,IT:h,headers:[]});this.Z[m].headers.push(R);this.ib.gT(E,m,h,{KG:l,Sb:!!y,I_:f!=null?f:-1,TC:K!=null?K:-1,startMs:G!=null?G:-1,durationMs:B!=null?B:-1,n8:n!=null?n:0,uE:A,timeRange:H})}; g.L.y0=function(R,l){var y=m0(R,0);this.ib.eQ&&this.ib.T4("ombup","id."+(l?12:21)+";len."+R.totalLength+";hid."+y);if(R.totalLength!==1){R=R.split(1).SK;var f=this.X[y]||null,A=this.J[y]||"";f&&(this.rh(this.Z[f].IT?"oafs_r":"ovfs_r"),this.queue.enqueue(A,y,f,R,l))}}; g.L.R$=function(R){var l=m0(R,0);this.ib.eQ&&this.ib.T4("ombup","id.22;len."+R.totalLength+";hid."+l);R=this.X[l]||null;var y=this.J[l]||"";if(R)if(this.C("html5_use_ump_request_slicer")){var f=this.queue;f.Z.push({videoId:y,KG:l,formatId:R,isEncrypted:!1,dw:!0});f.X||WN(f)}else this.ib.R$(y,l,R)}; g.L.NB=function(R){this.ib.NB(R)}; g.L.AS=function(R,l){var y=this,f,A,K,G,B,H,n,m,h,c;return g.w(function(E){switch(E.X){case 1:y.ib.AS();f=HO(R);if(!l){K=f;E.bQ(2);break}return g.v(E,sYJ(y.ib,f,y.iv),3);case 3:K=E.Z;case 2:A=K;if(!y.ib.enableCompression){E.bQ(4);break}B=(G=performance)==null?void 0:G.now();return g.v(E,ktJ(A),5);case 5:A=E.Z,y.ib.T4("decompression",{ds:"DecompressionStream"in window,rt:((H=performance)==null?NaN:H.now())-B});case 4:try{n=d8(A,bd9)}catch(W){return m=W instanceof Error?{name:W.name,message:W.message}: {},m.webcrypto=""+ +!!Hz(),m.enc=""+ +y.L,h=new g.c9("onesie.response.parse",m),E.return(Promise.reject(h))}qSY(n);c=g.ER(n.body);return E.return(c)}})}; g.L.QI=function(R){this.C("html5_consume_onesie_next_request_policy_for_sabr")&&(R=d8(R,Zdq),this.ib.QI(R))}; g.L.GA=function(R){R={Ud:bE(new iE(R),1,qbr)};this.ib.GA(R)}; g.L.Uj=function(R){this.ib.Uj(R)}; g.L.rh=function(R){return this.ib.rh(R)}; g.L.C=function(R){return this.ib.C(R)};g.O(kL,g.p);g.L=kL.prototype;g.L.PK=function(R){var l,y;return((y=(l=this.qj)==null?void 0:l.get(R))==null?void 0:y.PK())||[]}; g.L.z3=function(R,l){var y;return!((y=Eg(this,l))==null||!y.z3(R))}; g.L.uy=function(R,l){var y;return((y=Eg(this,l))==null?void 0:y.uy(R))||[]}; g.L.HR=function(R,l){var y;return((y=Eg(this,l))==null?void 0:y.HR(R))||[]}; g.L.vl=function(R){this.state=R;this.notifySubscribers()}; g.L.kO=function(){return!1}; g.L.s$=function(){return!1}; g.L.ZV=function(){}; g.L.Uj=function(R){this.Xx.Uj(R)}; g.L.rh=function(R){return this.Xx.rh(R)}; g.L.I4=function(R,l,y,f){y||this.Hl.I4(f);return!1}; g.L.Wj=function(R,l){this.wz.Wj(R,l)}; g.L.Zp=function(){this.Uj("orfb");this.nz=!0;if(BI9(this)&&this.xhr){var R={rc:this.xhr.status,lb:this.xhr.Jz(),rt:(1E3*Lck(this.Hl)).toFixed(),shost:g.n4(this.z2),trigger:"o1"};this.T4("pathprobe",hO(R))}}; g.L.AS=function(){this.Uj("opr_r");this.us=!0}; g.L.gT=function(R,l,y,f){if(this.qj){if(!this.qj.has(R)){var A=new T6(this);this.qj.set(R,A);g.U(this,A)}var K;(K=this.qj.get(R))==null||K.gT(l,y,f);Dh(this);y||(this.EN=f.TC)}else Dh(this)}; g.L.e9=function(R){this.tE=R;R.Kz!=null&&this.Xx.Os(R.Kz)}; g.L.G2=function(R){this.yd=R}; g.L.QI=function(R){R.videoId&&this.Jc.set(R.videoId,R)}; g.L.zo=function(){if(this.qj)for(var R=g.u(this.qj.keys()),l=R.next();!l.done;l=R.next()){var y=void 0;(y=this.qj.get(l.value))==null||y.fL()}}; g.L.Ca=function(R){this.bu=R}; g.L.GA=function(R){if(R==null?0:R.Ud)if(R=R.Ud.E6){R=g.u(R);for(var l=R.next();!l.done;l=R.next())l=l.value,l.videoId&&this.gD.set(l.videoId,l)}}; g.L.T4=function(R,l,y){this.Xx.T4(R,l,y===void 0?!1:y)}; g.L.R$=function(R,l,y){var f;(f=Eg(this,R))==null||f.R$(l,y)}; g.L.NB=function(R){this.kD.set(R.videoId,R)}; g.L.fetch=function(){var R=this,l,y,f,A,K,G,B,H,n,m,h,c,E,W,Q,e,r,d,z,N,D;return g.w(function(t){switch(t.X){case 1:R.logger.debug("Onesie fetch started.");R.g1?R.ej.start():R.H9.start();R.Uj("or_i");l=R.Zq.experiments.EL("html5_onesie_verbose_timing");y={};f=(0,g.eY)();A=function(C){l&&(y[C]=(0,g.eY)()-f)}; A("loc_s");if(K=Mur(R.videoData,R.At)){t.bQ(2);break}A("loc_async");G=g.yx(R.Zq.experiments,"html5_onesie_redirector_timeout_ms");return g.v(t,R1i(R.videoData,R.At,G),3);case 3:K=t.Z;case 2:if(!K)return R.logger.info("Onesie URL creation failed."),B={url:"0"},H=new g.c9("onesie.unavailable.hotconfig",B),R.fail(H),t.return(R.cM);R.U0=Zp(K);A("loc_e");n=g.OS(R.Zq,g.MD(R.videoData));m=!!n.Z;if(!m){h=n.getValue();t.bQ(4);break}return g.v(t,n.Z,5);case 5:h=t.Z;case 4:c=h;R.C("html5_log_onesie_empty_oauth")&& !c&&R.T4("no_token",{async:m});A("oauth");E=ytZ(R.playerRequest,R.Zq,R.videoData,c,hE(R.U0));g.$7(t,6);if(!aPc(R,E)){A("or_s_sync");R.uU=AtQ(E,R.h$,R.Zq,R.Xx,R.lS.onesieUstreamerConfig,(W=R.videoData.oW)==null?void 0:W.QW);t.bQ(8);break}A("or_s_async");return g.v(t,GfJ(E,R.h$,R.Zq,R.Xx,R.lS.onesieUstreamerConfig,(Q=R.videoData.oW)==null?void 0:Q.QW),9);case 9:R.uU=t.Z;case 8:g.XZ(t,7);break;case 6:return e=g.TT(t),R.logger.info("Failed to create OnesieRequestProto."),R.fail(e),t.return(R.cM);case 7:A("or_e"); l&&R.T4("oreqvt",y);R.enableCompression=R.uU.kq.Ln;R.Uj("osor");r=mEY();d=g.Cn(R.uU,a_9);z={method:"POST",body:d,headers:{"Content-Type":"text/plain",Referer:location.origin}};N=R.C("html5_onesie_media_capabilities");lPr(K,R.videoData,nKo(R),N);R.logger.debug("Starting Onesie network request.");R.eQ&&R.T4("ombrs","1");D=R.Xx.U().schedule;R.Hl=new f2(R,{Gr:D,DI:R.eQ,Wi:function(C,Ac){R.Xx.Rn(C,Ac)}, Q3:!0});K.set("rn",""+R.Hl.requestNumber);R.z2=K.Jk();ym(R.Hl,R.z2);R.Uj("or_p");R.xhr=BQ(new wD(K),r,R.Hl,cn,z);R.pU.start();if(R.C("html5_publish_player_request_sent_event"))R.Xx.onPlayerRequestSent(R.videoData.videoId);return t.return(R.cM)}})}; g.L.OI=function(){return 2}; g.L.Ve=function(){this.Uj("orh_r")}; g.L.a4=function(){!this.nz&&this.xhr.Jz()&&this.Zp();if(this.r4&&!this.g1){var R;(R=this.EA)==null||R.start()}this.Cm()}; g.L.q5=function(R){R=R===void 0?!1:R;this.logger.debug("onXhrDone");this.Cm();if(!(this.Fx()||this.state>=4)){var l=jt(this),y=this.xhr;l.rc=y.status;R&&(l.ab=!0);if(y.iO()){var f="onesie.net";l.msg=y.iO()}else y.status>=400?f="onesie.net.badstatus":y.hD()?this.us||(f="onesie.response.noplayerresponse"):f=y.status===204?"onesie.net.nocontent":"onesie.net.connect";f?this.fail(new g.c9(f,l)):(this.Uj("or_fs"),this.Hl.Kb((0,g.eY)(),y.Jz(),0),this.vl(4),this.eQ&&this.T4("rqs",l));this.eQ&&this.T4("ombre", "ok."+ +!f);this.j2=!1;Dh(this);Jns(this.wz);if(!this.g1){this.H9.stop();var A;(A=this.EA)==null||A.stop()}var K;if(R=(K=this.At)==null?void 0:ezY(K))for(K=0;K1E3){var R;(R=this.Hl)==null||R.QZ((0,g.eY)());R=jt(this);if(this.Zq.PZ()&&this.xhr instanceof si){var l=this.xhr;R.xrs=l.xhr.readyState;R.xpb=l.Z.totalLength;R.xdc=l.Y}this.fail(new g.c9("net.timeout",R))}}else(0,g.eY)()-this.Hl.Z>1E4&&((l=this.Hl)==null||l.QZ((0,g.eY)()),this.vL());this.isComplete()||this.ej.start()}}; g.L.vL=function(){this.logger.info("Onesie request timed out");this.j2=!1;if(!Dh(this)){var R=jt(this);R.timeout="1";this.fail(new g.c9("onesie.request",R))}}; g.L.fail=function(R){var l=this;R=W9(R);this.r4?this.Xx.l8(R):(this.cM.reject(R),this.r4=!0);Jns(this.wz);this.g1||this.H9.stop();this.Uj("or_fe");var y,f;(y=this.At)==null||(f=ezY(y))==null||f.forEach(function(A){l.T4("pathprobe",A)}); this.vl(5);this.dispose()}; g.L.isComplete=function(){return this.state>=3}; g.L.FS=function(){return this.state===4}; g.L.Hr=function(R){var l,y;return this.isComplete()||!!((l=this.qj)==null?0:(y=l.get(R))==null?0:y.Z)}; g.L.eV=function(){return!1}; g.L.oU=function(){return this.state===5}; g.L.notifySubscribers=function(R){for(var l=0;l102400&&!this.DR&&(this.Uj("or100k"),this.DR=!0);if(R.KN()){var l=R.i7(),y=l.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+y}); this.eQ&&this.T4("ombrss","len."+y);this.HQ.feed(l)}if(this.qj)for(var f=g.u(this.qj.keys()),A=f.next();!A.done;A=f.next()){var K=A.value;R=void 0;(R=this.qj.get(K))==null||R.fL();this.notifySubscribers(K)}}catch(G){this.fail(G)}}; g.L.g3=function(){return this.Hl.requestNumber}; g.L.wD=function(R){return this.kD.get(R)};g.O(oKo,g.p);g.L=oKo.prototype;g.L.Fq=function(R,l){this.Yb=void 0;bCo(this);e1r(this,R,l)}; g.L.qh=function(R){if(this.Z.length===0)return!1;var l=this.Z[0];return l instanceof kL?R===this.loader.getCurrentTime()*1E3:!(l instanceof IB&&Juj(l.info))&&Math.abs(l.Q2()-R)<50}; g.L.QI=function(R){this.X=R;this.Yb=(0,g.eY)()+(R.backoffTimeMs||0)}; g.L.td=function(R,l){if(R.action===void 0){var y=this.Xx.F$();y!==void 0&&this.loader.Gi(y)}else if(R.action!==0||!this.jS)if(R.action===0&&this.policy.Eo&&(R.action=2),R.xQ==="sabr.malformed_config"&&this.policy.qL>0&&this.UL++0&&(R.action=2),y={},y.reason=R.xQ,y.action=R.action,y.rn=l,R.action){case 1:this.policy.X&&this.W&&this.W.Xm(void 0, void 0,y);break;case 0:this.jS=!0;this.videoData.h1()&&this.policy.X&&this.W&&this.W.Xm(void 0,void 0,y,!1);this.loader.wB(y);break;case 2:MGs(R.xQ)!=="sabr.config"&&delete y.reason;this.loader.handleError(MGs(R.xQ),y,1);break;case 3:this.policy.sF&&((R=this.nX.W)!=null&&(R.W=!0),this.loader.handleError("sabr.hostfallback",y))}}; g.L.gS=function(R){R&&(this.loader.T4("sabrctxt",{onsbrctxt:R.type,scp:R.scope,dflt:R.sendByDefault}),R.type&&R.sendByDefault&&this.videoData.uQ.add(R.type),R.scope!==2&&(R.type&&this.videoData.sabrContextUpdates.set(R.type,R),this.Xx.gS(R)))}; g.L.U8=function(){}; g.L.Ca=function(R,l){if(R.P7!==void 0&&R.v7){var y=R.P7/R.v7;this.audioTrack.V=!1;this.videoTrack.V=!1;if(this.policy.Yb||this.policy.ZW||this.policy.Tu)this.loader.dh.X=!1;var f=this.loader.Jf(y,1);this.policy.iQ&&this.policy.X&&this.loader.FA(f,l);this.Xx.getCurrentTime()!==y&&(l={b8:"sabr_seek",w$:!0,q9:!0},R.seekSource&&(l.seekSource=R.seekSource),Ye(this.loader,y+.1,l))}}; g.L.onSnackbarMessage=function(R){this.Xx.publish("onSnackbarMessage",R)}; g.L.e9=function(R){R.VN&&R.zk&&gS(this.nX,R.VN,R.zk);this.policy.g9&&(R.GI&&R.aC&&(this.nX.Fv=R.GI/R.aC),R.MZ&&R.r_&&(this.nX.mS=R.MZ/R.r_));jU(this.videoData)&&!this.videoData.LX&&R.zk&&this.loader.Jf(R.zk,1E3);R.Kz!=null&&this.Xx.Os(R.Kz);this.policy.I$&&R.Bs&&(R=((0,g.eY)()-R.Bs)/1E3,this.loader.Ch.tR(1,R))}; g.L.nE=function(R){this.loader.nE(R)}; g.L.Yw=function(R){return this.videoData.uQ.has(R)}; g.L.O8=function(R,l,y){this.policy.L&&this.loader.T4("sabrctxtplc",{start:R?R.join("_"):"",stop:l?l.join("_"):"",discard:y?y.join("_"):""});if(R){R=g.u(R);for(var f=R.next();!f.done;f=R.next())this.videoData.uQ.add(f.value)}if(l)for(l=g.u(l),R=l.next();!R.done;R=l.next())R=R.value,this.videoData.uQ.has(R)&&this.videoData.uQ.delete(R);if(y)for(y=g.u(y),l=y.next();!l.done;l=y.next())if(l=l.value,this.videoData.sabrContextUpdates.has(l)&&(this.videoData.sabrContextUpdates.delete(l),l===3&&(this.videoData.HT= "")),this.policy.B&&this.Z.length)for(R=g.u(this.Z),f=R.next();!f.done;f=R.next())if(f=f.value,!(f instanceof kL)){var A=void 0;((A=f.gO)==null?void 0:A.type)===l&&(f.gO=void 0)}}; g.L.c9=function(){}; g.L.Ji=function(R){this.V=R}; g.L.A_=function(R){this.D=R}; g.L.K2=function(R,l){Vp(this.policy,R,4,l)}; g.L.GA=function(R){if(R==null?0:R.Ud)if(R=R.Ud.E6){R=g.u(R);for(var l=R.next();!l.done;l=R.next())if(l=l.value,l.formatId){var y=this.nX.L.get(ZH(l.formatId));y&&y.info&&(y.info.debugInfo=l.debugInfo)}}}; g.L.W9=function(R){this.Xx.publish("reloadplayer",R)}; g.L.PA=function(){return this.Xx.PA()||""}; g.L.OE=function(){var R=Ib(this.audioTrack,!0)*1E3,l=Ib(this.videoTrack,!0)*1E3;return Math.min(R,l)}; g.L.MU=function(R,l){this.loader.T4(R,l)}; g.L.V2=function(R){nTY(this.loader,lVY(this.W1,R))}; g.L.G4=function(){g.p.prototype.G4.call(this);this.X=void 0;e1r(this,!0,"i");this.Z=[]};IP7.prototype.E8=function(){this.isSeeking=!0;this.Z===1&&wZr(this.Y);this.Z===0&&this.Tf.yb("transitiondetector");this.D=!1};ZCY.prototype.pS=function(R,l){if(this.Y)return qUj(this,l);if(l=Mk(R)){var y=l.Z;y&&y.L&&y.Z&&(R=R.L.length?R.L[0]:null)&&R.state>=2&&!R.oU()&&R.info.GL===0&&(this.Y=R,this.V=y,this.X=l.info,this.D=this.startTimeSecs=Date.now()/1E3,this.J=this.X.startTime)}return NaN}; ZCY.prototype.clear=function(){this.X=this.V=this.Y=null;this.Z=this.J=this.D=this.startTimeSecs=NaN;this.L=!1};g.O(g.RP,g.p);g.L=g.RP.prototype;g.L.initialize=function(R,l,y){this.logger.debug(function(){return"Initialized, t="+R}); R=R||0;this.policy.Z||(l=fVQ(this.Z),hYi(this.Xx,new Vm(l.video,l.reason)),this.Xx.ek(new Vm(l.audio,l.reason)));this.policy.Z&&Fni(this);this.nX.isManifestless&&dE7(this.J);this.V&&gKk(this.V,this.videoTrack.Z);l=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var f=!this.nX.isManifestless;this.policy.V_&&(f=f||this.nX.Rz);this.policy.sL||(this.currentTime=f?R:l);this.policy.Yb&&this.seek(this.getCurrentTime(),{}).H6(function(){}); if(this.policy.Z){var A;((A=this.B)==null?0:mDZ(A,this.PA()||""))&&lNj(this)&&RYY(this,this.videoTrack)&&RYY(this,this.audioTrack)&&(XZj(this.X,this.B),this.policy.J&&MUo(this))}else this.Yb&&(yzT(this,this.videoTrack),yzT(this,this.audioTrack),nHj(this.Yb),delete this.Yb);y?(Azs(this,!1),g.Cz(this.DU)):(y=this.getCurrentTime()===0,Yx(this.J,this.videoTrack,this.videoTrack.Z,y),Yx(this.J,this.audioTrack,this.audioTrack.Z,y),this.policy.Z&&EKr(this.X,!0),this.policy.Yb||this.seek(this.getCurrentTime(), {}).H6(function(){}),this.timing.tick("gv")); (this.nX.ZG||this.nX.bH||this.nX.Dq||this.nX.sF||this.nX.vZ)&&this.Xx.Jn(this.nX)}; g.L.resume=function(){if(this.isSuspended||this.SU){this.logger.debug("Resumed.");this.py=this.SU=this.isSuspended=!1;try{this.pS()}catch(R){g.Tw(R)}}}; g.L.WU=function(){return!this.policy.Ms}; g.L.Ze=function(R,l){R=R===void 0?!1:R;l=l===void 0?!1:l;this.logger.debug("detaching media source");sEi(this);this.Xx.Lf()&&(this.D=NaN);R?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.P1&&this.T4("loader",{setsmb:1}),this.policy.Dq=!0,this.VD()):(Azs(this,!1),l||this.VD())}; g.L.setAudioTrack=function(R,l,y){y=y===void 0?!1:y;if(!this.Fx()){var f=!isNaN(l);y&&f&&(this.audioTrack.Yb=Date.now(),this.policy.J7&&(this.uQ=!0));if(this.policy.Z){var A=this.Y.Tx(R.id,f);this.logger.debug(function(){return"Logging new audio format: "+A.Z.info.id}); this.Xx.ek(A)}else{var K=Ruk(this.Z,R.id,f);this.logger.debug(function(){return"Logging new audio format: "+K.audio.info.id}); this.Xx.ek(new Vm(K.audio,K.reason))}f?(this.policy.jo&&(this.LA=Date.now()),y=this.audioTrack.Z.index.TL(l),this.T4("setAudio",{id:R.id,cmt:l,sq:y}),y>=0&&(R=this.policy.q8?y+1:y,this.policy.Z&&this.Fq(!0,"mosaic"),Ny(this.audioTrack,R,NaN,NaN),!this.policy.lj&&this.nX.isLive&&J1(this.nX,R,!1))):this.Xx.L$()}}; g.L.setPlaybackRate=function(R){R!==this.W.getPlaybackRate()&&this.W.setPlaybackRate(R)}; g.L.JV=function(R){var l=this.X.V;this.X.Ji(R);this.T4("scfidc",{curr:ZH(l),"new":ZH(R)});R&&ZH(R)!==ZH(l)&&(this.Fq(!0,"caption change"),this.pS())}; g.L.D$=function(R){this.X.A_(R)}; g.L.fK=function(R){var l=R.Z.info.IT();this.logger.debug(function(){return"New "+(l?"audio":"video")+" format from SABR: "+gy(R.Z.info)}); l?this.Xx.ek(R):hYi(this.Xx,R)}; g.L.V2=function(R){MO(R.SS[R.SS.length-1])&&nTY(this,lVY(this.Z,R.SS[0].Z))}; g.L.Wp=function(){return this.Xx.Wp()}; g.L.BY=function(){return this.Xx.BY()}; g.L.nE=function(R){this.Xx.U().PZ()&&this.T4("sps",{status:R.EO||""});if(R.EO===1)this.Xx.videoData.l2=0;else if(R.EO===2||R.EO===3){var l=!1;if(R.EO===3){l=this.Xx.NS();var y;this.RV=(y=R.TxX)!=null?y:Infinity;this.Xx.videoData.l2=l+1;(l=T2q(this))&&this.Xf(!0)}this.Xx.vH(!0,l)}}; g.L.PN=function(){return this.Xx.PN()}; g.L.Lw=function(){return this.Xx.Lw()}; g.L.jL=function(R){this.Xx.jL(R)}; g.L.KML=function(){var R,l=(R=this.Xx.t1())==null?void 0:R.getCurrentTime();l?this.Xx.T4("rms",{cta:l}):g.Cz(this.eZ)}; g.L.pS=function(){HMk(this);if(this.z4&&Hs(this.z4)&&!this.z4.zc()&&(!this.policy.sL||isFinite(this.getCurrentTime()))){var R=XB(this.videoTrack);R=this.policy.Ay&&R&&R.nf();this.nX.isManifestless&&this.nX.Y&&j5(this.nX)?(this.D=j5(this.nX),this.z4.Oz(this.D)):V6(this.nX)&&!R?isNaN(this.D)?(this.D=this.getCurrentTime()+3600,this.z4.Oz(this.D)):this.D<=this.getCurrentTime()+1800&&(this.D=Math.max(this.D+1800,this.getCurrentTime()+3600),this.z4.Oz(this.D)):this.z4.isView||(R=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.D)||this.D!==R)&&R>0&&(this.z4.Oz(R),this.D=R))}if(!this.Fx())if(S5(this.nX)&&this.nX.oU()){var l=this.nX;this.handleError("manifest.net.retryexhausted",l.W1?{rc:l.CM}:{rc:l.CM.toString()},1)}else if(this.policy.Z)a:{try{Fho(this.X);this.nX.isManifestless&&this.policy.J&&qk(this.dh);var y;((y=this.z4)==null?0:oo(y))&&this.cj();EKr(this.X)}catch(G){g.dP(G);l=G;if(l.message.includes("changeType")){this.T4("ctype",{exp:l.name,msg:l.message,s:l.stack});break a}this.handleError("fmt.unplayable", {exp:l.name,msg:l.message,s:l.stack},1)}vTi(this);g.Cz(this.tU)}else if(!this.nX.X||!Aus(this.videoTrack)&&!Aus(this.audioTrack)||(this.videoTrack.J||this.audioTrack.J)&&this.policy.ZL?y=!1:(this.VD(),this.Xx.seekTo(Infinity,{b8:"checkLoaderTracksSync",Jf:!0}),y=!0),!y){HMk(this);this.nX.isManifestless&&(Knk(this.videoTrack),Knk(this.audioTrack),qk(this.dh),(y=Mk(this.videoTrack))&&y.Z&&(y=y.Z.L&&!this.policy.xz,this.T4(y===this.policy.V.GU?"strm":"strmbug",{strm:y,sfmp4:this.policy.V.GU,dfs:this.policy.xz}, !0)));if(this.z4)this.cj();else if(this.policy.Y){var f;y=!1;if(this.policy.oG){var A;R=g.u([this.videoTrack,this.audioTrack]);for(A=R.next();!A.done;A=R.next()){var K=A.value;for(A=Mk(K);A&&K.ZE()!==XB(K);A=Mk(K))K.zA(A);y=y||!!A}}else(l=Mk(this.videoTrack))&&this.videoTrack.zA(l),(f=Mk(this.audioTrack))&&this.audioTrack.zA(f);zp(this.videoTrack)&&zp(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(l||f||y)&&qG(this)}fN7(this);Yx(this.J,this.videoTrack,this.videoTrack.Z, !1);Yx(this.J,this.audioTrack,this.audioTrack.Z,!1);this.policy.uN||oT9(this,this.videoTrack,this.audioTrack);iIk(this.J,this.videoTrack,this.audioTrack);iIk(this.J,this.audioTrack,this.videoTrack);vTi(this);this.V&&(l=this.V,l.Y?(f=l.D+l.policy.EV,l.L||(f=Math.min(f,l.startTimeSecs+l.policy.L7)),l=Math.max(0,f*1E3-Date.now())):l=NaN,isNaN(l)||g.Cz(this.f_,l));g.Cz(this.tU)}}; g.L.wB=function(R){this.Xx.wB(R)}; g.L.cj=function(){var R=this;if(this.z4){var l=this.z4.Z,y=this.z4.X;SWZ(this,this.audioTrack);SWZ(this,this.videoTrack);var f=ET9(this);if(f){if(this.policy.ix){if(!l.Jj()){var A=Mk(this.audioTrack);if(A){if(!MG(this,this.audioTrack,l,A.info))return;OM9(this,this.audioTrack,l,A)}}if(!y.Jj()&&(A=Mk(this.videoTrack))){if(!MG(this,this.videoTrack,y,A.info))return;OM9(this,this.videoTrack,y,A)}}this.f$||(this.f$=(0,g.eY)(),this.logger.debug(function(){return"Appends pause start "+R.f$+" reason "+f}), this.policy.L&&this.T4("apdps",{r:f}))}else if(this.f$&&(czj(this,this.f$),this.f$=0),Wvq(this),A=!1,QEY(this,this.videoTrack,y)&&(A=!0,ewk(this.timing),dO9(this.timing)),this.z4&&!this.z4.KM()&&(QEY(this,this.audioTrack,l)&&(A=!0,beq(this.timing),ryr(this.timing)),!this.Fx()&&this.z4))!this.policy.Ms&&zp(this.videoTrack)&&zp(this.audioTrack)&&Hs(this.z4)&&!this.z4.zc()&&(y=!1,y=XB(this.audioTrack).Z,y=y===this.nX.Z[y.info.id])&&(this.logger.debug("Setting EOS"),pBj(this.z4),HZZ(this.schedule)),A&& !this.z4.isAsync()&&qG(this)}}; g.L.GJ=function(R){var l,y=R===((l=this.z4)==null?void 0:l.Z)?this.audioTrack:this.videoTrack,f;if((f=Mk(y))==null?0:f.isLocked){if(this.Xx.U().PZ()){var A;this.T4("eosl",{ounlock:(A=Mk(y))==null?void 0:A.info.YG()})}var K;d9k(this,R===((K=this.z4)==null?void 0:K.Z))}var G;if(this.policy.J7&&R===((G=this.z4)==null?void 0:G.Z)&&this.B1){l=this.B1-this.getCurrentTime();var B;this.Xx.T4("asl",{l:l,xtag:(B=XB(this.audioTrack))==null?void 0:B.Z.info.Z});this.uQ=!1;this.B1=0}R.gk()&&R.uj().length===0&& (R.S8(),this.z4&&!this.z4.gk()&&(this.Xx.U().PZ()&&this.Xx.T4("rms",{ld:"seek"}),this.z4.D=performance.now(),this.Xx.FP(),this.Xx.U().PZ()&&g.Cz(this.eZ)));var H;(H=y.B)!=null&&ab(H,0);this.policy.ol?Xnr(this):this.pS()}; g.L.VSx=function(R){if(this.z4){var l=XB(R===this.z4.Z?this.audioTrack:this.videoTrack);if(R=R.qv())for(var y=0;y 5&&R.LX.shift();l=l.eS;var B;if((B=this.Xx.getVideoData())==null?0:B.enableServerStitchedDai)B=HIs(this.audioTrack,l),y=HIs(this.videoTrack,l),B!==0&&y!==0&&B!==y&&this.handleError("ssdai.avsync",{sq:l,a:B,v:y},0)}}; g.L.sf=function(R,l,y,f){R.info.video&&this.L.sf(l,y,f)}; g.L.VZ=function(R){this.Z.VZ(R)}; g.L.Cj=lj(12);g.L.a5=function(){if(g.V(this.Xx.getPlayerState(),8)){var R,l,y=(l=(R=this.Xx.t1())==null?void 0:R.getCurrentTime())!=null?l:this.Xx.getCurrentTime(),f;(f=this.iQ)==null||pZY(f,y)}var A;(A=this.sF)==null||g.Cz(A)}; g.L.kK=function(){return this.videoTrack.V||this.audioTrack.V}; g.L.seek=function(R,l){if(this.Fx())return vK();if(this.kK())return vK("seeking to head");if(this.policy.Yb&&!isFinite(R))return seK(this.dh),g.rC(Infinity);HMk(this);Fni(this);this.policy.Z||fN7(this,R);this.z4&&this.z4.Z&&this.z4.X&&!this.Xx.getVideoData().aq&&(this.z4.Z.isLocked()||this.z4.X.isLocked())&&this.Xx.L$({reattachOnLockedBuffer:1,vsb:""+this.z4.X.isLocked(),asb:""+this.z4.Z.isLocked()});var y=this.getCurrentTime(),f=this.dh.seek(R,l);this.policy.sL||(this.currentTime=f);JE(this.L,R, y,this.policy.dS&&!l.w$);qG(this);return g.rC(f)}; g.L.qh=function(R){return this.policy.Z&&this.X.qh(R)}; g.L.Yw=function(R){return this.X.Yw(R)}; g.L.Fq=function(R,l){this.X.Fq(R,l)}; g.L.getCurrentTime=function(){if(this.policy.sL){var R=this.fA()||0;return this.Xx.getCurrentTime(!0)-R}return this.currentTime}; g.L.hK=function(){return this.audioTrack.Z.info}; g.L.tI=function(){return this.videoTrack.Z.info}; g.L.s3=function(){return this.audioTrack.Z.info.H1}; g.L.De=function(){return this.videoTrack.Z.info.H1}; g.L.G4=function(){try{this.Ze(),Js(this.audioTrack),Js(this.videoTrack),kx(this.audioTrack),kx(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.p.prototype.G4.call(this)}catch(R){g.Tw(R)}}; g.L.handleError=function(R,l,y){y=y===void 0?0:y;var f=Eu(y);R==="fmt.unplayable"&&this.nX.isLive&&(this.policy.ix=!1,ZV(this.nX));l=new g.c9(R,l,y);g.s5(this);hO(l.details);this.Xx.handleError(l);R!=="html5.invalidstate"&&l.errorCode!=="fmt.unplayable"&&R!=="fmt.unparseable"&&f&&this.dispose()}; g.L.S1=function(){var R=XB(this.audioTrack),l=XB(this.videoTrack);R={lct:this.getCurrentTime().toFixed(3),lsk:this.dh.isSeeking(),lmf:this.Z.Z.isLocked(),lbw:w2(this.schedule).toFixed(3),lhd:vn(this.schedule).toFixed(3),lst:((this.schedule.V.hL()||0)*1E9).toFixed(3),laa:R?R.YG():"",lva:l?l.YG():"",lar:this.audioTrack.X?this.audioTrack.X.YG():"",lvr:this.videoTrack.X?this.videoTrack.X.YG():"",laq:""+wd(this.audioTrack),lvq:""+wd(this.videoTrack)};this.z4&&!this.z4.KM()&&this.z4.Z&&this.z4.X&&(R.lab= Co(this.z4.Z.uj()),R.lvb=Co(this.z4.X.uj()));this.f$&&(R.lapt=((0,g.eY)()-this.f$).toFixed(0),R.lapr=ET9(this));this.P1&&(R.lapmabht=((0,g.eY)()-this.P1).toFixed(0),R.lapmabh=Vu(this,this.audioTrack).toFixed(0));this.v1&&(R.lapmvbht=((0,g.eY)()-this.v1).toFixed(0),R.lapmvbh=Vu(this,this.videoTrack).toFixed(0));this.CX&&(R.lapsdai=((0,g.eY)()-this.CX).toFixed(0));return R}; g.L.VD=function(){try{this.policy.Z&&this.X.Fq(!1,"pending"),this.audioTrack.VD(),this.videoTrack.VD()}catch(R){g.Tw(R)}this.policy.Y=""}; g.L.Nv=function(){return Nk(this.W)}; g.L.T4=function(R,l,y){this.Xx.T4(R,l,y===void 0?!1:y)}; g.L.PA=function(){return this.Xx.PA()}; g.L.Jf=function(R,l){R/=l;isNaN(this.timestampOffset)&&jEk(this,R-Math.min(R,this.policy.XU));return(R-this.timestampOffset)*l}; g.L.fA=function(){return this.timestampOffset}; g.L.isSeeking=function(){return this.dh.isSeeking()}; g.L.vU=function(){this.L.vU()}; g.L.DE=function(R,l,y){l=l===void 0?!1:l;y=y===void 0?{}:y;this.policy.Z?this.Y.DE(R,l,y):this.Z.DE(R,l,y)}; g.L.Ez=function(R,l){if(this.LX&&this.L.Ez(R,this.LX)){if(this.policy.iQ&&this.policy.X){var y=this.videoTrack.Z.index.TL(R),f;(f=this.Dq)==null||f.tv(R,y)}jEk(this,this.timestampOffset-l);qG(this);this.policy.X&&(ZV(this.nX),kx(this.audioTrack),kx(this.videoTrack),this.VD());return!0}l=this.videoTrack.Z.index.TL(R);this.handleError("ad.skipfailed",{dec:!!this.LX,t:R.toFixed(3),sq:l});return!1}; g.L.getManifest=function(){return this.nX}; g.L.isOffline=function(){return!!this.Xx.getVideoData().cotn}; g.L.Rn=function(R,l){this.Xx.Rn(R,l)}; g.L.C8=function(R){if(this.policy.Z)this.X.Fq(!0,"utc"),this.pS();else{var l=this.Xx.getVideoData().P0;if(l){var y=this.J;y.VT=R;y.P0=l;RQ(this)}}}; g.L.Gi=function(R){this.videoTrack.V=!1;this.audioTrack.V=!1;this.dh.X=!1;this.Xx.Gi(R)}; g.L.EM=function(R){this.dh.EM(R-this.fA())}; g.L.Rs=function(){this.Xx.Rs()}; g.L.Xf=function(R){R!==this.policy.zL&&((this.policy.zL=R)||this.pS())}; g.L.m6=function(R,l){var y=this.audioTrack.Fo,f=this.videoTrack.Fo;y&&f&&(y.remove(R,l),f.remove(R,l))}; g.L.L$=function(R){this.Xx.L$(R)}; g.L.kf=function(R){this.Xx.kf(R)}; g.L.o4=function(R,l,y){var f;(f=this.Dq)==null||f.o4(R,l,y)}; g.L.FA=function(R,l){var y;(y=this.Dq)==null||y.FA(R,l)}; g.L.Yq=function(R){var l;return(l=this.Dq)==null?void 0:l.Yq(void 0,R)}; g.L.NS=function(){return this.Xx.NS()}; g.L.A$=function(){ZV(this.nX);this.VD()};g.L=g.yU.prototype;g.L.Jt=function(R,l,y,f,A,K){return this.Ns.Jt(R,l,y,f,A,K)}; g.L.XE=function(R,l,y,f,A,K){return this.Ns.XE(R,l,y,f,A,K)}; g.L.Ty=function(R){return this.Ns.Ty(R)}; g.L.Ir=function(R){this.Ns.Ir(R)}; g.L.Xm=function(R,l,y,f){return this.Ns.Xm(R,l,y,f)}; g.L.vU=function(){this.Ns.vU()}; g.L.tv=function(R,l){this.Ns.tv(R,l)}; g.L.zq=function(){this.Ns.zq()}; g.L.XG=lj(56);g.L.Re=function(R,l,y){this.Ns.Re(R,l,y)}; g.L.LY=lj(59);g.L.Pi=function(R,l,y,f,A,K,G,B,H){this.Ns.Pi(R,l,y,f,A,K,G,B,H)}; g.L.kd=function(R){this.Ns.kd(R)}; g.L.CE=function(R){return this.Ns.CE(R)}; g.L.ZY=function(R){return this.Ns.ZY(R)};g.O(f9,g.Ae);g.O(AQ,f9);AQ.prototype.D=function(R,l){if(R&&l){var y=Number(uy(R,"cpi"))*1+1;isNaN(y)||y<=0||ythis.L&&(this.L=y,g.oL(this.Z)||(this.Z={},this.Y.stop(),this.X.stop())),this.Z[l]=R,g.Cz(this.X))}}; AQ.prototype.J=function(){for(var R=g.u(Object.keys(this.Z)),l=R.next();!l.done;l=R.next()){var y=l.value;l=this.publish;for(var f=this.L,A=g.HF(this.Z[y]),K=[],G=g.u(A[6].split("&")),B=G.next();!B.done;B=G.next())B=B.value,B.indexOf("cpi=")===0?K.push("cpi="+f.toString()):B.indexOf("ek=")===0?K.push("ek="+g.bH(y)):K.push(B);A[6]="?"+K.join("&");y="skd://"+A.slice(2).join("");A=y.length*2;f=new Uint8Array(A+4);f[0]=A%256;f[1]=(A-f[0])/256;for(A=0;A0)for(var y=g.u(this.Z),f=y.next();!f.done;f=y.next())if(l===f.value.info.cryptoPeriodIndex){l=!0;break a}l=!1}if(!l){l=(0,g.eY)();a:{y=R.cryptoPeriodIndex;if(!isNaN(y)){f=g.u(this.L.values());for(var A=f.next();!A.done;A=f.next())if(Math.abs(A.value.cryptoPeriodIndex-y)<=1){y=!0;break a}}y=!1}y?(y=R.Z,y=Math.max(0,Math.random()*((isNaN(y)?120:y)-30))*1E3):y=0;this.publish("log_qoe",{wvagt:"delay."+y,cpi:R.cryptoPeriodIndex,reqlen:this.Z.length}); y<=0?Jzr(this,R):(this.Z.push({time:l+y,info:R}),g.Cz(this.X,y))}}; K9.prototype.G4=function(){this.Z=[];f9.prototype.G4.call(this)};var iY={},MLT=(iY.DRM_TRACK_TYPE_AUDIO="AUDIO",iY.DRM_TRACK_TYPE_SD="SD",iY.DRM_TRACK_TYPE_HD="HD",iY.DRM_TRACK_TYPE_UHD1="UHD1",iY);g.O(CKJ,g.p);g.O(lhq,g.Ae);g.L=lhq.prototype;g.L.Jv=function(R){var l=this;if(!(this.Fx()||R.size<=0)){var y={};R.forEach(function(f,A){var K=fI(l.X)?A:f;A=new Uint8Array(fI(l.X)?f:A);fI(l.X)&&WDr(A);f=g.b4(A,4);WDr(A);A=g.b4(A,4);l.Z[f]?l.Z[f].status=K:l.Z[A]?l.Z[A].status=K:l.Z[f]={type:"",status:K};cpk(l,l.Z[f].type,y)}); oLr(this,",");GV(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.L.error=function(R,l,y,f){this.Fx()||(this.publish("licenseerror",R,l,y,f),R==="drm.provision"&&(R=(Date.now()-this.D)/1E3,this.D=NaN,this.publish("ctmp","provf",{et:R.toFixed(3)})));Eu(l)&&this.dispose()}; g.L.shouldRetry=function(R,l){return!R&&this.requestNumber===l.requestNumber}; g.L.G4=function(){this.Z={};g.Ae.prototype.G4.call(this)}; g.L.S1=function(){var R={ctype:this.W.contentType||"",length:this.W.initData.length,requestedKeyIds:this.xb,cryptoPeriodIndex:this.cryptoPeriodIndex};this.L&&(R.keyStatuses=this.Z);return R}; g.L.getInfo=function(){var R=this.Y.join();if(aP(this)){var l=new Set,y;for(y in this.Z)this.Z[y].status!=="usable"&&l.add(this.Z[y].type);R+="/UKS."+Array.from(l)}return R+="/"+this.cryptoPeriodIndex}; g.L.Jk=function(){return this.url};g.O(BT,g.p);g.L=BT.prototype;g.L.aI=function(R){if(this.J){var l=R.messageType||"license-request";this.J(new Uint8Array(R.message),l)}}; g.L.Jv=function(){this.V&&this.V(this.Z.keyStatuses)}; g.L.onClosed=function(){this.Fx()||g.j0("xboxone")&&this.L&&this.L("closedShouldNotRetry")}; g.L.uJ=function(R){this.J&&this.J(R.message,"license-request")}; g.L.cF=function(R){if(this.L){if(this.X){var l=this.X.error.code;R=this.X.error.systemCode}else l=R.errorCode,R=R.systemCode;this.L("t.prefixedKeyError;c."+l+";sc."+R,l,R)}}; g.L.E4=function(){this.D&&this.D()}; g.L.update=function(R){var l=this;if(this.Z)return this.Z.update(R).then(null,j9(function(y){OTT(l,"t.update",y)})); this.X?this.X.update(R):this.element.addKey?this.element.addKey(this.W.keySystem,R,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.W.keySystem,R,this.initData,this.sessionId);return rg()}; g.L.G4=function(){this.Z&&(this.B?this.Z.close().catch(g.dP):this.Z.close());this.element=null;g.p.prototype.G4.call(this)};g.O(HT,g.p);g.L=HT.prototype;g.L.setServerCertificate=function(){return this.X.setServerCertificate?this.Z.flavor==="widevine"&&this.Z.aU?this.X.setServerCertificate(this.Z.aU):GO(this.Z)&&this.Z.jS?this.X.setServerCertificate(this.Z.jS):null:null}; g.L.createSession=function(R,l){var y=R.initData;if(this.Z.keySystemAccess){l&&l("createsession");var f=this.X.createSession();KI(this.Z)?y=u2i(y,this.Z.jS):GO(this.Z)&&(y=ZM9(y)||new Uint8Array(0));l&&l("genreq");R=f.generateRequest(R.contentType,y);var A=new BT(null,null,null,f,null,this.V);R.then(function(){l&&l("genreqsuccess")},j9(function(G){OTT(A,"t.generateRequest",G)})); return A}if(yy(this.Z))return QQc(this,y);if(Au(this.Z))return FDT(this,y);if((f=this.element)==null?0:f.generateKeyRequest)this.element.generateKeyRequest(this.Z.keySystem,y);else{var K;(K=this.element)==null||K.webkitGenerateKeyRequest(this.Z.keySystem,y)}return this.Y=new BT(this.element,this.Z,y,null,null,this.V)}; g.L.yE=function(R){var l=$GK(this,R);l&&l.uJ(R)}; g.L.p5=function(R){var l=$GK(this,R);l&&l.cF(R)}; g.L.xn=function(R){var l=$GK(this,R);l&&l.E4(R)}; g.L.getMetrics=function(){if(this.X&&this.X.getMetrics)try{var R=this.X.getMetrics()}catch(l){}return R}; g.L.G4=function(){this.L=this.X=null;var R;(R=this.Y)==null||R.dispose();R=g.u(Object.values(this.D));for(var l=R.next();!l.done;l=R.next())l.value.dispose();this.D={};g.p.prototype.G4.call(this);delete this.element};g.L=n9.prototype;g.L.get=function(R){R=this.findIndex(R);return R!==-1?this.values[R]:null}; g.L.remove=function(R){R=this.findIndex(R);R!==-1&&(this.keys.splice(R,1),this.values.splice(R,1))}; g.L.removeAll=function(){this.keys=[];this.values=[]}; g.L.set=function(R,l){var y=this.findIndex(R);y!==-1?this.values[y]=l:(this.keys.push(R),this.values.push(l))}; g.L.findIndex=function(R){return g.P8(this.keys,function(l){return g.Vr(R,l)})};g.O(XNc,g.Ae);g.L=XNc.prototype;g.L.XZQ=function(R){this.bE({onecpt:1});R.initData&&rpk(this,new Uint8Array(R.initData),R.initDataType)}; g.L.fL9=function(R){this.bE({onndky:1});rpk(this,R.initData,R.contentType)}; g.L.Ff=function(R){this.bE({onneedkeyinfo:1});this.Zq.C("html5_eme_loader_sync")&&(this.V.get(R.initData)||this.V.set(R.initData,R));dGk(this,R)}; g.L.QV=function(R){this.L.push(R);mP(this)}; g.L.createSession=function(R){var l=zZ9(this)?uVq(R):g.b4(R.initData);this.X.get(l);this.Dq=!0;R=new lhq(this.videoData,this.Zq,R,this.drmSessionId);this.X.set(l,R);R.subscribe("ctmp",this.vF,this);R.subscribe("keystatuseschange",this.Jv,this);R.subscribe("licenseerror",this.jB,this);R.subscribe("newlicense",this.U4,this);R.subscribe("newsession",this.O4,this);R.subscribe("sessionready",this.X1,this);R.subscribe("fairplay_next_need_key_info",this.NE,this);this.Zq.C("html5_enable_vp9_fairplay")&&R.subscribe("qualitychange", this.Ob,this);R.subscribe("sabrlicenseconstraint",this.kr1,this);KDK(R,this.Y)}; g.L.U4=function(R){this.Fx()||(this.bE({onnelcswhb:1}),R&&!this.heartbeatParams&&(this.heartbeatParams=R,this.publish("heartbeatparams",R)))}; g.L.O4=function(){this.Fx()||(this.bE({newlcssn:1}),this.L.shift(),this.Dq=!1,mP(this))}; g.L.X1=function(){if(yy(this.Z)&&(this.bE({onsnrdy:1}),this.CX--,this.CX===0)){var R=this.LX,l,y;(l=R.element)==null||(y=l.msSetMediaKeys)==null||y.call(l,R.L)}}; g.L.Jv=function(R){if(!this.Fx()){!this.P1&&this.videoData.C("html5_log_drm_metrics_on_key_statuses")&&(wN7(this),this.P1=!0);this.bE({onksch:1});var l=this.Ob;if(!aP(R)&&g.g4&&R.X.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var y="large";else{y=[];var f=!0;if(aP(R))for(var A=g.u(Object.keys(R.Z)),K=A.next();!K.done;K=A.next())K=K.value,R.Z[K].status==="usable"&&y.push(R.Z[K].type),R.Z[K].status!=="unknown"&&(f=!1);if(!aP(R)||f)y=R.Y;y=mGi(y)}l.call(this,y);if(!aP(R))for(l= {},y=g.u(R.Y),f=y.next();!f.done;f=y.next())cpk(R,f.value,l);this.videoData.authorizedFormats=R.authorizedFormats;this.publish("keystatuseschange",R)}}; g.L.vF=function(R,l){this.Fx()||this.publish("ctmp",R,l)}; g.L.NE=function(R,l){this.Fx()||this.publish("fairplay_next_need_key_info",R,l)}; g.L.jB=function(R,l,y,f){this.Fx()||(this.videoData.C("html5_log_drm_metrics_on_error")&&wN7(this),this.publish("licenseerror",R,l,y,f))}; g.L.QC=function(){return this.W}; g.L.Ob=function(R){var l=g.Qz("auto",R,!1,"l");if(this.videoData.ML){if(this.W.equals(l))return}else if(nXr(this.W,R))return;this.W=l;this.publish("qualitychange");this.bE({updtlq:R})}; g.L.kr1=function(R){this.videoData.sabrLicenseConstraint=R}; g.L.G4=function(){this.Z.keySystemAccess&&this.element&&(this.xb?this.element.setMediaKeys(null).catch(g.dP):this.element.setMediaKeys(null));this.element=null;this.L=[];for(var R=g.u(this.X.values()),l=R.next();!l.done;l=R.next())l=l.value,l.unsubscribe("ctmp",this.vF,this),l.unsubscribe("keystatuseschange",this.Jv,this),l.unsubscribe("licenseerror",this.jB,this),l.unsubscribe("newlicense",this.U4,this),l.unsubscribe("newsession",this.O4,this),l.unsubscribe("sessionready",this.X1,this),l.unsubscribe("fairplay_next_need_key_info", this.NE,this),this.Zq.C("html5_enable_vp9_fairplay")&&l.unsubscribe("qualitychange",this.Ob,this),l.dispose();this.X.clear();this.D.removeAll();this.V.removeAll();this.heartbeatParams=null;g.Ae.prototype.G4.call(this)}; g.L.S1=function(){for(var R={systemInfo:this.Z.S1(),sessions:[]},l=g.u(this.X.values()),y=l.next();!y.done;y=l.next())R.sessions.push(y.value.S1());return R}; g.L.getInfo=function(){return this.X.size<=0?"no session":""+this.X.values().next().value.getInfo()+(this.J?"/KR":"")}; g.L.bE=function(R,l){l=l===void 0?!1:l;this.Fx()||(hO(R),(this.Zq.PZ()||l)&&this.publish("ctmp","drmlog",R))};g.O(UGr,g.p);g.L=UGr.prototype;g.L.Jp=function(){return!!this.ZP}; g.L.uT=function(){return this.X}; g.L.handleError=function(R){var l=this;JpJ(this,R);if((R.errorCode!=="html5.invalidstate"&&R.errorCode!=="fmt.unplayable"&&R.errorCode!=="fmt.unparseable"||!ZTJ(this,R.errorCode,R.details))&&!qgY(this,R)){if(this.yL.LX!=="yt"&&Vto(this,R)&&this.videoData.wp&&(0,g.eY)()/1E3>this.videoData.wp&&this.yL.LX==="hm"){var y=Object.assign({e:R.errorCode},R.details);y.stalesigexp="1";y.expire=this.videoData.wp;y.init=this.videoData.wE/1E3;y.now=(0,g.eY)()/1E3;y.systelapsed=((0,g.eY)()-this.videoData.wE)/1E3; R=new g.c9(R.errorCode,y,2);this.Xx.LJ(R.errorCode,2,"SIGNATURE_EXPIRED",hO(R.details))}if(Eu(R.severity)){var f;y=(f=this.Xx.loader)==null?void 0:f.Z.Z;if(this.yL.C("html5_use_network_error_code_enums"))if(gLi(R)&&y&&y.isLocked())var A="FORMAT_UNAVAILABLE";else if(this.yL.D||R.errorCode!=="auth"||R.details.rc!==429)R.errorCode==="ump.spsrejectfailure"&&(A="HTML5_SPS_UMP_STATUS_REJECTED");else{A="TOO_MANY_REQUESTS";var K="6"}else gLi(R)&&y&&y.isLocked()?A="FORMAT_UNAVAILABLE":this.yL.D||R.errorCode!== "auth"||R.details.rc!=="429"?R.errorCode==="ump.spsrejectfailure"&&(A="HTML5_SPS_UMP_STATUS_REJECTED"):(A="TOO_MANY_REQUESTS",K="6");this.Xx.LJ(R.errorCode,R.severity,A,hO(R.details),K)}else this.Xx.publish("nonfatalerror",R),f=/^pp/.test(this.videoData.clientPlaybackNonce),this.l8(R.errorCode,R.details),f&&R.errorCode==="manifest.net.connect"&&(R="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.eY)(),xe(R,"manifest",function(G){l.D=!0;l.T4("pathprobe",G)}, function(G){l.l8(G.errorCode,G.details)}))}}; g.L.T4=function(R,l){this.Xx.VS.T4(R,l)}; g.L.l8=function(R,l){l=hO(l);this.Xx.VS.l8(R,l)};oP.prototype.ov=function(R){var l=lk7(this);if(!R)return{RX:At,JG:At,nk:At,iL:At,fg:At,Vz:At,OZ:l};var y=At;if(e2(l)||this.C("html5_perf_cap_override_sticky"))y=oYQ(this,R);return{RX:y,JG:akq(this,R),nk:KPY(this,R),iL:hr7(this,R.videoData),fg:cQZ(this,R.videoData,R),Vz:fkY(this,R),OZ:l}}; oP.prototype.Ap=function(R){var l;g.Vy(this.Zq)&&(l=window.screen&&window.screen.width?new g.JM(window.screen.width,window.screen.height):null);l||(l=this.Zq.Tu?this.Zq.Tu.clone():this.F5.IJ());(C0||Ku||R)&&l.scale(g.Bm());return l}; oP.prototype.C=function(R){return this.Zq.C(R)};g.O(cT,g.p);cT.prototype.onError=function(R){if(R!=="player.fatalexception"||this.provider.C("html5_exception_to_health"))R==="sabr.fallback"&&(this.encounteredSabrFallback=!0),R.match(QmD)?this.networkErrorCount++:this.nonNetworkErrorCount++}; cT.prototype.send=function(){if(!(this.L||this.Z<0)){LPi(this);var R=g.lV(this.provider)-this.Z,l="PLAYER_PLAYBACK_STATE_UNKNOWN",y=this.playerState.WE;this.playerState.isError()?l=y&&y.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.V(this.playerState,2)?l="PLAYER_PLAYBACK_STATE_ENDED":g.V(this.playerState,64)?l="PLAYER_PLAYBACK_STATE_UNSTARTED":g.V(this.playerState,16)||g.V(this.playerState,32)?l="PLAYER_PLAYBACK_STATE_SEEKING":g.V(this.playerState,1)&&g.V(this.playerState, 4)?l="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.V(this.playerState,1)?l="PLAYER_PLAYBACK_STATE_BUFFERING":g.V(this.playerState,4)?l="PLAYER_PLAYBACK_STATE_PAUSED":g.V(this.playerState,8)&&(l="PLAYER_PLAYBACK_STATE_PLAYING");y=hSU[xK(this.provider.videoData)];a:switch(this.provider.Zq.playerCanaryState){case "canary":var f="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":f="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:f="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var A=O99(this.provider), K=this.X<0?R:this.X-this.Z;R=this.provider.Zq.eI+36E5<(0,g.eY)();l={started:this.X>=0,stateAtSend:l,joinLatencySecs:K,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:f,playerCanaryStage:A,isAd:this.provider.videoData.isAd(),liveMode:y,hasDrm:!!g.zf(this.provider.videoData),isGapless:this.provider.videoData.V,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:PZ(this.provider.videoData)};R||g.sE("html5PlayerHealthEvent",l);this.L=!0;this.dispose()}}; cT.prototype.G4=function(){this.L||this.send();window.removeEventListener("error",this.j6);window.removeEventListener("unhandledrejection",this.j6);g.p.prototype.G4.call(this)}; var QmD=/\bnet\b/;g.O(PVY,g.p);PVY.prototype.G4=function(){FPi(this);g.p.prototype.G4.call(this)};var QPs=/[?&]cpn=/;g.O(E7,g.p);E7.prototype.flush=function(){var R={};this.X&&(R.pe=this.X);this.Z.length>0&&(R.pt=this.Z.join("."));this.Z=[];return R}; E7.prototype.stop=function(){var R=this,l,y,f;return g.w(function(A){if(A.X==1)return g.$7(A,2),g.v(A,(l=R.Y)==null?void 0:l.stop(),4);if(A.X!=2)return(y=A.Z)&&R.logTrace(y),g.XZ(A,0);f=g.TT(A);R.X=rQJ(f.message);g.Q9(A)})}; E7.prototype.logTrace=function(R){this.encoder.reset();this.encoder.add(1);this.encoder.add(R.resources.length);for(var l=g.u(R.resources),y=l.next();!y.done;y=l.next()){y=y.value.replace("https://www.youtube.com/s/","");this.encoder.add(y.length);for(var f=0;f=0?R:g.lV(this.provider),this.xb?$dU.has(this.Ak)&&(this.Z.size||(this.Ak==="PL"?R>=this.X+30:R<=this.LX+30||R>=this.X+1200&&R<=this.LX+86400))&&(g.O7(this,R,"vps",[this.Ak]),this.X=R):["PL","B","S"].indexOf(this.Ak)>-1&&(this.Z.size||R>=this.X+30)&&(g.O7(this,R,"vps",[this.Ak]),this.X=R),this.Z.size)){this.sequenceNumber===7E3&&g.dP(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){uV(this,R);var l=this.provider.Xx.z0(); l=g.u(l);for(var y=l.next();!y.done;y=l.next())y=y.value,this.T4(y.key,y.value);l=R;y=this.provider.Xx.gy();var f=y.droppedVideoFrames||0,A=y.totalVideoFrames||0,K=f-this.S6,G=A&&!this.lD;f>y.totalVideoFrames||K>5E3?Z9s(this,"html5.badframedropcount","df."+f+";tf."+y.totalVideoFrames):(K>0||G)&&g.O7(this,l,"df",[K]);this.S6=f;this.lD=A;this.W>0&&(g.O7(this,R,"glf",[this.W]),this.W=0);Ok.isActive()&&(R=Ok.tG(),Object.keys(R).length>0&&this.T4("profile",R));this.sF&&F0(this,"lwnmow");this.provider.Zq.PZ()&& this.provider.C("html5_record_now")&&this.T4("now",{wt:(0,g.eY)()});R={};this.provider.videoData.X&&(R.fmt=this.provider.videoData.X.itag,(l=this.provider.videoData.Y)&&l.itag!==R.fmt&&(R.afmt=l.itag));R.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(R.adcpn=this.adCpn);this.h5&&(R.addocid=this.h5);this.contentCpn&&(R.ccpn=this.contentCpn);this.Dq&&(R.cdocid=this.Dq);this.provider.videoData.cotn&&(R.cotn=this.provider.videoData.cotn);R.el=CC(this.provider.videoData);R.content_v=tt(this.provider.videoData); R.ns=this.provider.Zq.LX;R.fexp=CZZ(this.provider.Zq.experiments).toString();R.cl=(769383743).toString();(l=this.provider.videoData.adFormat||this.adFormat)&&(R.adformat=l);(l=xK(this.provider.videoData))&&(R.live=l);this.provider.videoData.yT()&&(R.drm=1,this.provider.videoData.J&&(R.drm_system=oQU[this.provider.videoData.J.flavor]||0),this.provider.videoData.drmProduct&&(R.drm_product=this.provider.videoData.drmProduct));aw()&&this.provider.videoData.D&&(R.ctt=this.provider.videoData.D,R.cttype= this.provider.videoData.BO,this.provider.videoData.mdxEnvironment&&(R.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(R.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.b$&&(R.dai_fallback="1")):this.provider.videoData.A1?R.dai="cs":this.provider.videoData.Hy&&(R.dai="disabled");R.seq=this.sequenceNumber++;if(this.provider.videoData.s1){if(l=this.provider.videoData.s1,R&&l)for(l.ns==="3pp"&&(R.ns="3pp"),this.Ms.has(l.ns)&& F0(this,"hbps"),l.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=l.shbpslc),this.provider.Zq.experiments.EL("html5_use_server_qoe_el_value")&&this.uQ.delete("el"),y=g.u(Object.keys(l)),f=y.next();!f.done;f=y.next())f=f.value,this.uQ.has(f)||(R[f]=l[f])}else R.event="streamingstats",R.docid=this.provider.videoData.videoId,R.ei=this.provider.videoData.eventId;this.isEmbargoed&&(R.embargoed="1");Object.assign(R,this.provider.Zq.Z);if(l=R.seq)l={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+l,serializedWatchEndpointLoggingContext:this.provider.videoData.whS},this.serializedHouseBrandPlayerServiceLoggingContext&&(l.serializedHouseBrandPlayerServiceLoggingContext=To(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(l.playerResponseCpn=this.provider.videoData.playerResponseCpn),L9.length&&(l.decoderInfo=L9),this.remoteControlMode&&(l.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(l.remoteConnectedDevices= this.remoteConnectedDevices),l=g.Cn(l,I_Y),l=g.b4(l,4),this.Z.set("qclc",[l]);R=g.L4("//"+this.provider.Zq.IL+"/api/stats/qoe",R);y=l="";f=g.u(this.Z.entries());for(A=f.next();!A.done;A=f.next())K=g.u(A.value),A=K.next().value,K=K.next().value,G=void 0,(G=K)!=null&&G.join&&(A="&"+A+"="+K.join(","),A.length>100?y+=A:l+=A);S79(this,R+l,y.replace(/ /g,"%20"))}this.Z.clear()}}; g.L.kf=function(R){this.sF=R}; g.L.sZ=function(){if(this.provider.videoData.J){var R=this.provider.videoData.J;F0(this,"eme-"+(R.keySystemAccess?"final":yy(R)?"ms":KI(R)?"ytfp":Au(R)?"safarifp":"nonfinal"))}}; g.L.h2=lj(53);g.L.UU=function(R){this.isEmbargoed=R}; g.L.fM=lj(30);g.L.Ks=lj(36);g.L.onPlaybackRateChange=function(R){var l=g.lV(this.provider);R&&R!==this.eZ&&(g.O7(this,l,"rate",[R]),this.eZ=R);this.xb||this.reportStats(l)}; g.L.iH=lj(24);g.L.getPlayerState=function(R){if(g.V(R,128))return"ER";if(g.V(R,2048))return"B";if(g.V(R,512))return"SU";if(g.V(R,16)||g.V(R,32))return"S";if(R.isOrWillBePlaying()&&g.V(R,64))return"B";var l=eSr[dT(R)];g.Eb(this.provider.Zq)&&l==="B"&&this.provider.Xx.getVisibilityState()===3&&(l="SU");l==="B"&&g.V(R,4)&&(l="PB");return l}; g.L.G4=function(){g.p.prototype.G4.call(this);g.Wh(this.Yb);g.Wh(this.vZ)}; g.L.DM=function(R){this.isOffline=R;g.O7(this,g.lV(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.L.T4=function(R,l,y){var f=this.Vu.indexOf(R)!==-1;f||this.Vu.push(R);if(!y||!f){var A=typeof l!=="string"?hO(l):l;A=gYi(A);if(!y&&!/^t[.]/.test(A)){var K=g.lV(this.provider)*1E3;A="t."+K.toFixed()+";"+A}PT(this,"ctmp",R+":"+A);this.logger.debug(function(){return"ctmp "+R+" "+A}); jPr(this);return K}}; g.L.dT=function(R,l,y){this.J={v4Q:Number(this.T4("glrem",{nst:R.toFixed(),rem:l.toFixed(),ca:+y})),RC:R,IGL:l,isAd:y}}; g.L.R4=function(R,l,y){g.O7(this,g.lV(this.provider),"ad_playback",[R,l,y])}; g.L.A6=function(R,l){var y=g.lV(this.provider)*1E3;PT(this,"daism","t."+y.toFixed(0)+";smw."+(R*1E3).toFixed(0)+";smo."+(l*1E3).toFixed(0))}; g.L.resume=function(){var R=this;isNaN(this.Yb)?kVZ(this):this.Yb=g.ch(function(){R.reportStats()},1E4)}; var P7={},eSr=(P7[5]="N",P7[-1]="N",P7[3]="B",P7[0]="EN",P7[2]="PA",P7[1]="PL",P7[-1E3]="ER",P7[1E3]="N",P7),$dU=new Set(["PL","B","S"]),L9=[];q7T.prototype.update=function(){if(this.V){var R=this.h7()||0,l=g.lV(this.provider);R>=this.provider.Xx.getDuration()-.1&&(this.previouslyEnded=!0);if(R!==this.Z||Mmr(this,R,l)){var y;if(!(y=Rl-this.a$+2||Mmr(this,R,l))){y=this.provider.Xx.getVolume();var f=y!==this.B,A=this.provider.Xx.isMuted()?1:0;A!==this.W?(this.W=A,y=!0):(!f||this.Y>=0||(this.B=y,this.Y=l),y=l-this.Y,this.Y>=0&&y>2?(this.Y=-1,y=!0):y=!1)}y&&(em(this),this.L=R);this.a$=l;this.Z=R}}}; q7T.prototype.h7=function(){var R=this.provider.Xx.h7();return this.provider.Zq.C("html5_disable_live_dvr_shrink_for_cdm_vss")&&ip(this.provider.videoData)?R+this.provider.Xx.fA():R};RTZ.prototype.send=function(R){var l=this;if(!this.W1){var y=yfk(this),f=g.L4(this.uri,y);this.Zq.C("vss_through_gel_double")&&fJJ(f);this.Dq&&!this.Zq.C("html5_simplify_pings")?sv7(this,f):lJ7(this,R).then(function(A){l.Dq&&(A=A||{},A.method="POST",A.postParams={atr:l.attestationResponse});XT7(f,A,{token:l.Yb,Qj:l.LA,mdxEnvironment:l.mdxEnvironment},l.Zq,R,l.sL,l.isFinal&&l.eI||l.P1||l.L&&l.FR)}); this.W1=!0}}; RTZ.prototype.X=function(R){R===void 0&&(R=NaN);return Number(R.toFixed(3)).toString()}; var uY={},GHk=(uY.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,uY.LIVING_ROOM_APP_MODE_MAIN=1,uY.LIVING_ROOM_APP_MODE_KIDS=2,uY.LIVING_ROOM_APP_MODE_MUSIC=3,uY.LIVING_ROOM_APP_MODE_UNPLUGGED=4,uY.LIVING_ROOM_APP_MODE_GAMING=5,uY),Fm={},KRr=(Fm.EMBEDDED_PLAYER_MODE_UNKNOWN=0,Fm.EMBEDDED_PLAYER_MODE_DEFAULT=1,Fm.EMBEDDED_PLAYER_MODE_PFP=2,Fm.EMBEDDED_PLAYER_MODE_PFL=3,Fm);g.O(X0,g.p);X0.prototype.Pf=function(){this.Z.update();WRj(this)&&(nt7(this),m4i(this))}; X0.prototype.G4=function(){g.p.prototype.G4.call(this);rA(this);tmQ(this.Z)}; X0.prototype.S1=function(){return yfk(TV(this,"playback"))}; X0.prototype.Y0=function(R){var l=TV(this,"engage");l.xb=R;return Afs(l,FRo(this.provider))};uHQ.prototype.isEmpty=function(){return this.endTime===this.startTime};zV.prototype.C=function(R){return this.Zq.C(R)}; zV.prototype.getCurrentTime=function(){return this.Xx.getCurrentTime()}; zV.prototype.h7=function(){return this.Xx.h7()}; var Qvc={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.O(g.wA,g.p);g.L=g.wA.prototype;g.L.Pf=function(){if(this.provider.videoData.enableServerStitchedDai&&this.qD){var R;(R=this.L.get(this.qD))==null||R.Pf()}else this.Z&&this.Z.Pf()}; g.L.UU=function(R){this.qoe&&this.qoe.UU(R)}; g.L.fM=lj(29);g.L.Ks=lj(35);g.L.A6=function(R,l){this.qoe&&this.qoe.A6(R,l)}; g.L.aK=function(){if(this.provider.videoData.enableServerStitchedDai&&this.qD){var R;(R=this.L.get(this.qD))!=null&&em(R.Z)}else this.Z&&em(this.Z.Z)}; g.L.l8=function(R,l){this.qoe&&Z9s(this.qoe,R,l);if(this.X)this.X.onError(R)}; g.L.onPlaybackRateChange=function(R){if(this.qoe)this.qoe.onPlaybackRateChange(R);this.Z&&em(this.Z.Z)}; g.L.h2=lj(52);g.L.T4=function(R,l,y){this.qoe&&this.qoe.T4(R,l,y)}; g.L.dT=function(R,l,y){this.qoe&&this.qoe.dT(R,l,y)}; g.L.Os=function(R){var l;(l=this.qoe)==null||l.Os(R)}; g.L.Jn=function(R){var l;(l=this.qoe)==null||l.Jn(R)}; g.L.kf=function(R){this.qoe&&this.qoe.kf(R)}; g.L.R4=function(R,l,y){this.qoe&&this.qoe.R4(R,l,y)}; g.L.iH=lj(23);g.L.Gw=function(){if(this.qoe)return this.qoe.Gw()}; g.L.S1=function(){if(this.provider.videoData.enableServerStitchedDai&&this.qD){var R,l;return(l=(R=this.L.get(this.qD))==null?void 0:R.S1())!=null?l:{}}return this.Z?this.Z.S1():{}}; g.L.jP=function(){var R;return(R=this.qoe)==null?void 0:R.jP()}; g.L.Et=function(R,l){var y;(y=this.qoe)==null||y.Et(R,l)}; g.L.Y0=function(R){return this.Z?this.Z.Y0(R):function(){}}; g.L.getVideoData=function(){return this.provider.videoData}; g.L.resume=function(){this.qoe&&this.qoe.resume()};g.O(g.xY,g.p);g.L=g.xY.prototype;g.L.OS=function(R,l){this.sync();l&&this.Z.array.length>=2E3&&this.Vw("captions",1E4);l=this.Z;if(R.length>1&&R.length>l.array.length)l.array=l.array.concat(R),l.array.sort(l.Z);else{R=g.u(R);for(var y=R.next();!y.done;y=R.next())y=y.value,!l.array.length||l.Z(y,l.array[l.array.length-1])>0?l.array.push(y):g.CX(l.array,y,l.Z)}this.L=NaN;this.sync()}; g.L.c$=function(R){R.length>1E4&&g.dP(new g.JD("Over 10k cueRanges removal occurs with a sample: ",R[0]));if(!this.Fx()){var l=new Set(R);this.X=this.X.filter(function(y){return!l.has(y)}); SHo(this.Z,l);this.sync()}}; g.L.CP=function(R,l){if(!this.Fx()){var y=this.Lw().find(function(f){return f.id===l&&f.namespace===R}); y&&this.c$([y])}}; g.L.Vw=function(R,l){var y=(isNaN(this.L)?JfT(this):this.L)-l;l=this.Lw().filter(function(f){return f.namespace===R&&f.endthis.Z,K=g.V(y,8)&&g.V(y,16),G=this.Xx.n7().isBackground()||y.isSuspended();JQ(this,this.tU,K&&!G,A,"qoe.slowseek",function(){},"timeout"); var B=isFinite(this.Z);B=K&&B&&JeK(l,this.Z);var H=!f||Math.abs(f-this.Z)>10,n=this.Zq.C("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),m=f===0&&this.X&&[11,10].includes(this.X);JQ(this,this.W1,B&&H&&!G&&(!n||!m),A,"qoe.slowseek",function(){l.seekTo(R.Z)},"set_cmt"); H=B&&Y5(l.Wf(),this.Z);var h=this.Xx.loader;B=!h||h.WU();var c=function(){l.seekTo(R.Z+.001)}; JQ(this,this.P1,H&&B&&!G,A,"qoe.slowseek",c,"jiggle_cmt");B=function(){return R.Xx.UY()}; JQ(this,this.v1,H&&!G,A,"qoe.slowseek",B,"new_elem");m=TA(y);H=y.isBuffering();var E=l.Wf(),W=tO(E,f),Q=W>=0&&E.end(W)>f+5,e=m&&H&&Q;n=this.Xx.getVideoData();JQ(this,this.CX,f<.002&&this.Z<.002&&K&&g.Eb(this.Zq)&&g.qD(n)&&!G,A,"qoe.slowseek",B,"slow_seek_shorts");JQ(this,this.B,n.VU()&&K&&!G&&!n.xb,A,"qoe.slowseek",B,"slow_seek_gapless_shorts");JQ(this,this.LX,e&&!G,m&&!H,"qoe.longrebuffer",c,"jiggle_cmt");JQ(this,this.Yb,e&&!G,m&&!H,"qoe.longrebuffer",B,"new_elem_nnr");if(h){var r=h.getCurrentTime(); K=l.gH();K=wBj(K,r);K=!h.isSeeking()&&f===K;JQ(this,this.LA,m&&H&&K&&!G,m&&!H&&!K,"qoe.longrebuffer",function(){l.seekTo(r)},"seek_to_loader")}K={}; c=tO(E,Math.max(f-3.5,0));e=c>=0&&f>E.end(c)-1.1;var d=c>=0&&c+1=0&&e&&d<11;K.close2edge=e;K.gapsize=d;K.buflen=E.length;this.X&&(K.seekSour=this.X);JQ(this,this.xb,m&&H&&!G,m&&!H,"qoe.longrebuffer",function(){},"timeout",K); K=y.isSuspended();K=this.Xx.k8()&&!K;JQ(this,this.V,K,!K,"qoe.start15s",function(){R.Xx.SI("ad")},"ads_preroll_timeout"); K=this.Zq.experiments.EL("html5_use_playback_rate_in_skip_slow_ad")?this.Xx.getPlaybackRate()*1E3:1E3;W=f-this.Y5;JQ(this,this.UL,g.qD(n)&&h,m&&!H,"qoe.longrebuffer",function(){R.Xx.L$()},"reset_media_source"); JQ(this,this.jS,g.qD(n)&&h,m&&!H,"qoe.longrebuffer",B,"reset_media_element");this.Y===0&&(this.D=f);h=H&&this.Z===0&&f>1&&f===this.D;JQ(this,this.sL,g.qD(n)&&h,m&&!H,"qoe.slowseek",function(){l.seekTo(0)},"reseek_after_time_jump"); G=y.isOrWillBePlaying()&&!G;Q=this.Xx.FO()-f<6&&!Q&&this.Xx.uG();JQ(this,this.W,n.VU()&&G&&H&&Q,m&&!H,"qoe.longrebuffer",function(){R.Xx.UY(!1,!0)},"handoff_end_long_buffer_reload"); G=this.X===104||this.Xx.Wk;y=WZ(n)&&n.isAd()&&!n.xb&&G&&(H||g.V(y,8)&&g.V(y,16));JQ(this,this.uQ,y,A,"qoe.start15s",B,"gapless_ad_slow_start");this.Y=f;this.J.start()}}; Zk.prototype.l8=function(R,l,y){l=this.S1(l);l.wn=y;l.wdup=this.L[R]?"1":"0";this.Xx.l8(new g.c9(R,l));this.L[R]=!0}; Zk.prototype.S1=function(R){R=Object.assign(this.Xx.S1(!0),R.S1());this.Z&&(R.stt=this.Z.toFixed(3));this.Xx.getVideoData().isLivePlayback&&(R.ct=this.Xx.getCurrentTime().toFixed(3),R.to=this.Xx.fA().toFixed(3));delete R.uga;delete R.euri;delete R.referrer;delete R.fexp;delete R.vm;return R}; Dk.prototype.reset=function(){this.Z=this.X=this.L=this.startTimestamp=0;this.Y=!1}; Dk.prototype.test=function(R){if(!this.J||this.X)return!1;if(!R)return this.reset(),!1;R=(0,g.eY)();if(!this.startTimestamp)this.startTimestamp=R,this.L=0;else if(this.L>=this.J)return this.X=R,!0;this.L+=1;return!1}; Dk.prototype.S1=function(){var R={},l=(0,g.eY)();this.startTimestamp&&(R.wsd=(l-this.startTimestamp).toFixed());this.X&&(R.wtd=(l-this.X).toFixed());this.Z&&(R.wssd=(l-this.Z).toFixed());return R};g.O(nwq,g.p);g.L=nwq.prototype;g.L.setMediaElement=function(R){(this.mediaElement=R)?(this.mediaElement&&(this.J||this.L||!this.mediaElement.yp()||this.seekTo(.01,{b8:"seektimeline_setupMediaElement"})),gA(this)):C9(this)}; g.L.getCurrentTime=function(R){R=R===void 0?!1:R;if(VU(this.Xx)){if(this.C("html5_use_centralized_player_time")&&!R&&!isNaN(this.D))return this.D;if(!isNaN(this.X))return this.X}else{if(this.C("html5_use_centralized_player_time")&&!R&&!isNaN(this.D)&&isFinite(this.D))return this.D;if(!isNaN(this.X)&&isFinite(this.X))return this.X}return this.mediaElement&&ey9(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.L||0}; g.L.F$=function(){return this.uQ}; g.L.h7=function(){return this.getCurrentTime()-this.fA()}; g.L.ev=function(){return this.Z?this.Z.ev():Infinity}; g.L.isAtLiveHead=function(R){if(!this.Z)return!1;R===void 0&&(R=this.getCurrentTime());return Sm(this.Z,R)}; g.L.Tn=function(){return!!this.Z&&this.Z.Tn()}; g.L.seekTo=function(R,l){var y=l===void 0?{}:l;l=y.Nc===void 0?!1:y.Nc;var f=y.ox===void 0?0:y.ox;var A=y.zO===void 0?!1:y.zO;var K=y.Cd===void 0?0:y.Cd;var G=y.b8===void 0?"":y.b8;var B=y.seekSource===void 0?void 0:y.seekSource;var H=y.Jf===void 0?!1:y.Jf;var n=y.w$===void 0?!1:y.w$;y=y.q9===void 0?!1:y.q9;H&&(R+=this.fA());PZ(this.videoData)&&B===29&&(this.uQ=void 0);H=R=this.x6())||!g.SU(this.videoData),Q||(e={st:e,mst:this.x6()},this.Z&&this.C("html5_high_res_seek_logging")&&(e.ht=this.Z.ev(),e.adft=ACJ(this.Z)),this.Xx.T4("seeknotallowed",e)),e=Q));if(!e)return this.Y&&(this.Y=null,FIK(this)),g.rC(this.getCurrentTime());e=.005;n&&this.C("html5_sabr_seek_no_shift_tolerance")&&(e=0);if(Math.abs(R-this.X)<=e&&this.sL)return this.J;G&&(e=R,(this.Zq.PZ()||this.C("html5_log_seek_reasons"))&& this.Xx.T4("seekreason",{reason:G,tgt:e}));B&&(this.LX.X=B);this.sL&&C9(this);this.J||(this.J=new Ee);R&&!isFinite(R)&&cCs(this,!1);(G=y||H)||(G=R,G=!(this.videoData.isLivePlayback&&this.videoData.L&&!this.videoData.L.Z&&!(this.mediaElement&&this.mediaElement.Tc()>0&&Lw(this.mediaElement)>0)||eU(this.videoData)&&this.K_()===this.x6(!1)?0:isFinite(G)||!eU(this.videoData)));G||(R=tQ(this,R,A));R&&!isFinite(R)&&cCs(this,!1);this.C("html5_use_centralized_player_time")?this.D=R:this.X=this.L=R;this.UL= K;this.V=0;this.Z&&(A=this.Z,K=R,KIK(A,K,!1),GQT(A,K));A=this.Xx;K=R;G={Nc:l,seekSource:B};A.C_.L=K;y=A.ph;y.mediaTime=K;y.Z=!0;G.Nc&&A.vT(G);G=K>A.videoData.endSeconds&&K>A.videoData.limitedPlaybackDurationInSeconds;A.Po&&G&&isFinite(K)&&fWQ(A);Kl.start&&fWQ(this.Xx);return this.J}; g.L.x6=function(R){if(!this.videoData.isLivePlayback)return this.Xx.videoData.x6();var l;return sW(this.videoData)&&((l=this.mediaElement)==null?0:l.isPaused())&&this.videoData.Z?(R=this.getCurrentTime(),wuj(this.wc(R)*1E3)+R):this.C("html5_sabr_parse_live_metadata_playback_boundaries")&&PZ(this.videoData)&&this.videoData.Z?R?this.videoData.Z.Yb||0:this.videoData.Z.mS||0:eU(this.videoData)&&this.videoData.LX&&this.videoData.Z?this.videoData.Z.x6()+this.timestampOffset:this.videoData.L&&this.videoData.L.Z? !R&&this.Z?this.Z.ev():this.Xx.videoData.x6()+this.timestampOffset:this.mediaElement?Zb()?wuj(this.mediaElement.mE().getTime()):Lw(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.L.K_=function(){if(this.C("html5_sabr_parse_live_metadata_playback_boundaries")&&PZ(this.videoData)){var R;return((R=this.videoData.Z)==null?void 0:R.Fv)||0}R=this.videoData?this.videoData.K_()+this.timestampOffset:this.timestampOffset;if(sW(this.videoData)&&this.videoData.Z){var l,y=Number((l=this.videoData.progressBarStartPosition)==null?void 0:l.utcTimeMillis)/1E3;l=this.getCurrentTime();l=this.wc(l)-l;if(!isNaN(y)&&!isNaN(l))return Math.max(R,y-l)}return R}; g.L.FP=function(){this.J||this.seekTo(this.L,{b8:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.L.kK=function(){return this.sL&&!isFinite(this.X)}; g.L.G4=function(){EwT(this,null);this.LX.dispose();g.p.prototype.G4.call(this)}; g.L.S1=function(){var R={};this.loader&&Object.assign(R,this.loader.S1());this.mediaElement&&Object.assign(R,this.mediaElement.S1());return R}; g.L.V0=function(R){this.timestampOffset=R}; g.L.getStreamTimeOffset=function(){return eU(this.videoData)?0:this.videoData.Z?this.videoData.Z.getStreamTimeOffset():0}; g.L.fA=function(){return this.timestampOffset}; g.L.wc=function(R){return this.videoData&&this.videoData.Z?this.videoData.Z.wc(R-this.timestampOffset):NaN}; g.L.CV=function(){if(!this.mediaElement)return 0;if(jU(this.videoData)){var R=this.mediaElement,l=R.Wf();R=(lZ(l)&&R.getDuration()?l.end(l.length-1):0)+this.timestampOffset-this.K_();l=this.x6()-this.K_();return Math.max(0,Math.min(1,R/l))}return this.mediaElement.CV()}; g.L.ek=function(R){this.W&&(this.W.Z=R)}; g.L.C8=function(R,l){this.Xx.T4("requestUtcSeek",{time:R});PZ(this.videoData)&&(this.uQ=R);var y;(y=this.loader)==null||y.C8(R);l&&(this.Dq=l)}; g.L.Gi=function(R){PZ(this.videoData)&&(this.uQ=void 0);if(this.Dq)this.Xx.T4("utcSeekingFallback",{source:"streamTime",timeSeconds:this.Dq}),this.Xx.seekTo(this.Dq,{b8:"utcSeekingFallback_streamTime"}),this.Dq=0;else{var l=this.getCurrentTime();isNaN(l)||(R=this.wc(l)-R,l-=R,this.Xx.T4("utcSeekingFallback",{source:"estimate",timeSeconds:l}),this.Xx.seekTo(l,{b8:"utcSeekingFallback_estimate"}))}}; g.L.Rs=function(){this.Dq=0}; g.L.C=function(R){return this.Zq&&this.Zq.C(R)};g.O(YY,g.p);YY.prototype.start=function(){this.X.start()}; YY.prototype.stop=function(){this.X.stop()}; YY.prototype.clear=function(){for(var R=g.u(this.Z.values()),l=R.next();!l.done;l=R.next())l.value.clear()}; YY.prototype.sample=function(){for(var R=g.u(this.L),l=R.next();!l.done;l=R.next()){var y=g.u(l.value);l=y.next().value;y=y.next().value;this.Z.has(l)||this.Z.set(l,new vwQ(b$t.has(l)));this.Z.get(l).update(y())}this.X.start()}; var b$t=new Set(["networkactivity"]);vwQ.prototype.update=function(R){this.X?(this.buffer.add(R-this.Z||0),this.Z=R):this.buffer.add(R)}; vwQ.prototype.clear=function(){this.buffer.clear();this.Z=0};l$.prototype.r$=function(){return this.started}; l$.prototype.start=function(){this.started=!0}; l$.prototype.reset=function(){this.finished=this.started=!1};var N7s=!1;g.O(g.Ky,g.Ae);g.L=g.Ky.prototype;g.L.G4=function(){this.logger.debug("dispose");g.Wh(this.Za);pNk(this.cA);this.visibility.unsubscribe("visibilitystatechange",this.cA);Tfr(this.VS);g.f_(this.VS);sH(this);g.pz.Yz(this.AD);this.QD();this.Vq=null;g.f_(this.videoData);g.f_(this.by);g.f_(this.Zl);g.f_(this.Xz);g.A4(this.QEL);this.Po=null;g.Ae.prototype.G4.call(this)}; g.L.R4=function(R,l,y,f,A){if(this.Zq.C("html5_log_ad_playback_docid")){var K=this.VS;if(K.qoe){K=K.qoe;var G=this.Zq.LX||"yt";g.O7(K,g.lV(K.provider),"ad_playback",[R,l,y,A,G])}}else this.VS.R4(R,l,y);this.C("html5_log_media_perf_info")&&this.T4("adloudness",{ld:f.toFixed(3),cpn:R})}; g.L.s3=function(){var R;return(R=this.loader)==null?void 0:R.s3()}; g.L.De=function(){var R;return(R=this.loader)==null?void 0:R.De()}; g.L.tI=function(){var R;return(R=this.loader)==null?void 0:R.tI()}; g.L.hK=function(){var R;return(R=this.loader)==null?void 0:R.hK()}; g.L.yT=function(){return this.videoData.yT()}; g.L.Lf=function(){return this.C("html5_not_reset_media_source")&&!this.yT()&&!this.videoData.isLivePlayback&&g.qD(this.videoData)&&!this.Zq.supportsGaplessShorts()}; g.L.Ct=function(){this.videoData.V&&(this.videoData.cC=this.videoData.cC||this.Qu.hU().s3(),this.videoData.ZS=this.videoData.ZS||this.Qu.hU().De());if(FYr(this.videoData)||!Gv(this.videoData)){var R=this.videoData.errorDetail;this.LJ(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),R,R,this.videoData.Pp||void 0)}this.C("html5_generate_content_po_token")&&this.hV();this.C("html5_enable_d6de4")&&this.Q4()}; g.L.getVideoData=function(){return this.videoData}; g.L.U=function(){return this.Zq}; g.L.ov=function(){return this.OC.ov(this.Vq)}; g.L.n7=function(){return this.visibility}; g.L.d$=function(){return this.mediaElement&&this.mediaElement.Q_()?this.mediaElement.al():null}; g.L.t1=function(){return this.mediaElement}; g.L.X$=function(){if(this.C("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.U().D&&this.U().houseBrandUserStatus&&this.T4("hbut",{status:this.U().houseBrandUserStatus},!0);if(this.videoData.Nl())return!0;this.LJ("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.L.A9=function(R){(R=R===void 0?!1:R)||$4o(this.VS);this.BK=R;!this.X$()||this.yr.r$()?g.Eb(this.Zq)&&this.videoData.isLivePlayback&&this.yr.r$()&&!this.yr.finished&&!this.BK&&this.Fz():(this.yr.start(),R=this.VS,g.lV(R.provider),R.qoe&&kVZ(R.qoe),this.Fz())}; g.L.Fz=function(){if(this.videoData.isLoaded()){var R=this.by;g.yx(R.yL.experiments,"html5_player_min_build_cl")>0&&g.yx(R.yL.experiments,"html5_player_min_build_cl")>769383743&&CMj(R,"oldplayer");MTj(this)}else this.videoData.AJ||this.videoData.Zo?this.BK&&g.Eb(this.Zq)&&this.videoData.isLivePlayback||(this.videoData.AJ?aXr(this.videoData):(R=this.VS,R.qoe&&(R=R.qoe,F0(R,"protected"),R.provider.videoData.J?R.sZ():R.provider.videoData.subscribe("dataloaded",R.sZ,R)),y9k(this.videoData))):!this.videoData.loading&& this.YC&&qFo(this)}; g.L.HI=function(R){this.Ns=R;this.loader&&(wdK(this.loader,new g.yU(R)),this.T4("sdai",{sdsstm:1}))}; g.L.o4=function(R,l,y){var f;(f=this.loader)==null||f.o4(R,l,y)}; g.L.Af=lj(8);g.L.isFullscreen=function(){return this.visibility.isFullscreen()}; g.L.isBackground=function(){return this.visibility.isBackground()}; g.L.BM=function(){var R=this;this.logger.debug("Updating for format change");GH(this).then(function(){return Af(R)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.L.PT=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.A9();this.X$()&&!g.V(this.playerState,128)&&(this.sT.r$()||(this.sT.start(),this.videoData.wN?this.Xc($N(this.playerState,4)):this.Xc($N($N(this.playerState,8),1))),tTY(this))}; g.L.ul=function(){return this.yr.finished}; g.L.sendAbandonmentPing=function(){g.V(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.O0(!0),Tfr(this.VS),g.f_(this.VS),g.pz.Yz(this.AD))}; g.L.t6=function(R,l){R=R===void 0?!0:R;(l===void 0||l)&&this.mediaElement&&this.mediaElement.pause();this.Xc(R?new g.uZ(14):new g.uZ)}; g.L.t9=function(){this.VS.aK()}; g.L.LJ=function(R,l,y,f,A,K){this.logger.debug(function(){return"set player error: ec="+R+", detail="+A}); var G,B;g.np(StD,y)?G=y:y?B=y:G="GENERIC_WITHOUT_LINK";f=(f||"")+(";a6s."+tV());if(R==="auth"||R==="drm.auth"||R==="heartbeat.stop")y&&(f+=";r."+y.replaceAll(" ","_")),K&&(f+="sr."+K.replaceAll(" ","_"));l={errorCode:R,errorDetail:A,errorMessage:B||g.Dr[G]||"",pn:G,Pp:K||"",s0:f,gi:l,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=R;av(this,"dataloaderror");this.Xc(Qh(this.playerState,128,l));g.pz.Yz(this.AD);sH(this);this.KW()}; g.L.SI=function(R){this.FC=this.FC.filter(function(l){return R!==l}); this.logger.debug(function(){return"set preroll ready for "+R}); this.sT.r$()&&tTY(this)}; g.L.jK=function(){var R;(R=!!this.FC.length)||(R=this.Tf.Z.array[0],R=!!R&&R.start<=-0x8000000000000);return R}; g.L.Tn=function(){return this.C_.Tn()}; g.L.isPlaying=function(){return this.playerState.isPlaying()}; g.L.HK=function(){return this.playerState.HK()&&this.videoData.wN}; g.L.getPlayerState=function(){return this.playerState}; g.L.JV=function(R){var l;(l=this.loader)==null||l.JV(R)}; g.L.D$=function(R){var l;(l=this.loader)==null||l.D$(R)}; g.L.getPlayerType=function(){return this.playerType}; g.L.getPreferredQuality=function(){if(this.Vq){var R=this.Vq;R=R.videoData.kL.compose(R.videoData.DA);R=Xq(R)}else R="auto";return R}; g.L.SO=lj(16);g.L.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.L.setMediaElement=function(R){this.logger.debug("set media element");if(this.mediaElement&&R.al()===this.mediaElement.al()&&(R.isView()||this.mediaElement.isView())){if(R.isView()||!this.mediaElement.isView())this.wq(),this.mediaElement=R,this.mediaElement.Xx=this,cjj(this),this.C_.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.QD();if(!this.playerState.isError()){var l=eD(this.playerState,512);g.V(l,8)&&!g.V(l,2)&&(l=$N(l,1));R.isView()&&(l=eD(l,64));this.Xc(l)}this.mediaElement= R;this.mediaElement.Xx=this;!g.Eb(this.Zq)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);cjj(this);this.C_.setMediaElement(this.mediaElement);this.C("html5_prewarm_media_source")&&!this.by.Jp()&&jN9(this.mediaElement)}}; g.L.QD=function(R,l,y){R=R===void 0?!1:R;l=l===void 0?!1:l;y=y===void 0?!1:y;this.logger.debug("remove media element");if(this.mediaElement){var f=this.getCurrentTime();f>0&&(this.C_.L=f);this.C_.setMediaElement(null);!R&&this.Lf()?H5j(this):this.o$(y);this.loader&&(qG(this.loader),mR(this,l));this.m3.stop();if(this.mediaElement&&(!this.sT.r$()&&!this.k8()||this.playerState.isError()||g.V(this.playerState,2)||this.Xc($N(this.playerState,512)),this.mediaElement)){this.wq();if(R||!this.mediaElement.isView())this.yS.m1("mesv_s"), this.mediaElement.stopVideo(),ov(this);this.mediaElement=this.mediaElement.Xx=null}}}; g.L.playVideo=function(R,l){R=R===void 0?!1:R;l=l===void 0?!1:l;var y=this,f,A,K,G,B,H,n;return g.w(function(m){if(m.X==1){y.logger.debug("start play video");var h=window.google_image_requests;h&&h.length>10&&(window.google_image_requests=h.slice(-10));if(g.V(y.playerState,128))return m.return();if(y.by.uT())return y.publish("signatureexpired"),m.return();y.mediaElement&&$4o(y.VS);y.PT();(g.V(y.playerState,64)||R)&&y.Xc($N(y.playerState,8));return y.sT.finished&&y.mediaElement?y.Vq||!y.M6?m.bQ(2): g.v(m,y.M6,3):m.return()}if(m.X!=2&&g.V(y.playerState,128))return m.return();if(!y.videoData.L)return y.videoData.isLivePlayback&&!g.ON(y.Zq.J,!0)?(f="html5.unsupportedlive",A=2):(f=y.videoData.yT()?"fmt.unplayable":"fmt.noneavailable",A=1),g.dP(Error("selectableFormats")),K=y.C("html5_log_fmt_unplaybable_trigger")?"trg.selectableFormats":"selectableFormats.1",y.LJ(f,A,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",K),m.return();if(y.tL()&&y.videoData.L.Z)return y.logger.debug("rebuild playbackData for airplay"), m.return(GH(y));if(VU(y))h=y.C_,$K(h.videoData)&&!h.isAtLiveHead(h.getCurrentTime())&&h.Tn()&&h.Xx.seekTo(Infinity,{b8:"seektimeline_peggedToLive",seekSource:34});else if($K(y.videoData)&&(G=y.getCurrentTime()G;if(!B||!G){K&&B&&(f=Math.max(f,K));var H;K=yQK(l,(H=A.Z)==null?void 0:H.videoInfos);H=l.Xx.getPlaybackRate();H>1&&K&&(H=MD9(l.Zq.J,A.Z.videoInfos,H),R.Z!==0&&H< R.Z&&l.Xx.setPlaybackRate(1));var n,m;R=((n=A.videoData.X)==null?void 0:(m=n.video)==null?void 0:m.qualityOrdinal)||0;g.vW("yt-player-quality",{quality:f,previousQuality:R},31104E3);l.Zq.schedule.policy.Y=KA()>=480;if(l.C("html5_exponential_memory_for_sticky")){n=l.Zq.R2;m=1;var h=h===void 0?!1:h;c6i(n,"sticky-lifetime");n.values["sticky-lifetime"]&&n.dF["sticky-lifetime"]||(n.values["sticky-lifetime"]=0,n.dF["sticky-lifetime"]=0);h&&NE(n,"sticky-lifetime")>.0625&&(m=n.dF["sticky-lifetime"]*2);n.values["sticky-lifetime"]+= 1*Math.pow(2,n.Z/m);n.dF["sticky-lifetime"]=m;n.Y.start()}if(l.C("html5_perf_cap_override_sticky")){h=l.L;n=l.C("html5_perserve_av1_perf_cap");n=n===void 0?!1:n;if(n===void 0?0:n){m=ae();R=g.u(Object.keys(m));for(l=R.next();!l.done;l=R.next())l=l.value,l.indexOf("1")!==0&&delete m[l];g.vW("yt-player-performance-cap",m,2592E3)}else g.w0("yt-player-performance-cap");tKQ(n);if(n){n=g.u(t1.keys());for(m=n.next();!m.done;m=n.next())m=m.value,m.startsWith("1")||t1.delete(m);n=g.u(hQ.values());for(m=n.next();!m.done;m= n.next())m=m.value,m.startsWith("1")||hQ.delete(m);n=g.u(h.keys());for(m=n.next();!m.done;m=n.next())m=m.value,m.startsWith("1")||h.delete(m)}else t1.clear(),hQ.clear(),h.clear()}}}this.loader&&(h=this.loader,y=y||"",h.policy.Z?Yc(h.Y.Z,y):Yc(h.Z.J,y));this.M2()}; g.L.getUserPlaybackQualityPreference=function(){return this.videoData.L&&!this.videoData.L.Z?Xq(this.videoData.kL):bS[KA()]}; g.L.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.L.setUserAudio51Preference=function(R,l){this.getUserAudio51Preference()!==R&&(this.T4("toggle51",{pref:R}),g.vW("yt-player-audio51",R,l?31536E3:2592E3),this.BM())}; g.L.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.L.setProximaLatencyPreference=function(R){var l=this.getProximaLatencyPreference();this.T4("proxima",{pref:R});g.vW("yt-player-proxima-pref",R,31536E3);l!==R&&(R=this.C_,R.B1=!0,R.Xx.seekTo(Infinity,{b8:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.L.getProximaLatencyPreference=function(){var R;return(R=Gk())!=null?R:0}; g.L.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.L.hV=function(){this.videoData.videoId?this.Qu.hV(this.videoData):this.T4("povid",{})}; g.L.Q4=function(){this.videoData.videoId?this.Qu.Q4(this.videoData):this.T4("piavid",{})}; g.L.M2=function(){if(!this.Fx()&&!g.V(this.playerState,128)&&this.videoData.L){if(this.videoData.L.Z)fy(this);else{var R=ny(this),l=this.videoData;a:{var y=this.videoData.f_;if(R.Z){for(var f=g.u(y),A=f.next();!A.done;A=f.next()){A=A.value;var K=A.getInfo(),G=g.bz[K.video.quality];if((!R.L||K.video.quality!=="auto")&&G<=R.Z){y=A;break a}}y=y[y.length-1]}else y=y[0]}l.tU=y;AjQ(this,R.reason,LrK(this,this.videoData.tU))}if(this.C("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.C_.B= !1,this.playVideo()}}; g.L.aH=function(R,l){if(this.Fx()||g.V(this.playerState,128))return!1;var y,f=!((y=this.videoData.L)==null||!y.Z);y=f&&l?this.getCurrentTime()-this.fA():NaN;if(this.Zq.experiments.EL("html5_record_audio_format_intent")){var A=this.VS;if(A.qoe){A=A.qoe;var K=[R.hF.id,isNaN(y)?"m":"t"];g.O7(A,g.lV(A.provider),"afi",K)}}if(f)return l&&(f=LIr(this.C_),this.T4("aswh",{id:R.id,xtags:R.xtags,bh:f.toFixed(3)})),this.loader.setAudioTrack(R,y,l),!0;if(G4s(this)){a:{l=this.mediaElement.audioTracks();for(f=0;f< l.length;++f)if(y=l[f],y.label===R.hF.getName()){if(y.enabled){l=!1;break a}l=y.enabled=!0;break a}l=void 0}l&&this.T4("hlsaudio",{id:R.id})}else{a:if(l=this.videoData,l.Y&&!SM(l.Y)||R===l.gp||!l.f_||l.f_.length<=0)l=!1;else{f=g.u(l.f_);for(y=f.next();!y.done;y=f.next()){y=y.value;if(!(y instanceof $6)){l=!1;break a}A=R.hF.getId();y.X&&(pfr(y.X,A),y.x$=null)}l.gp=R;l=!0}l&&Af(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.T4("hlsaudio",{id:R.id}))}return!0}; g.L.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()}; g.L.getAudioTrack=function(){if(G4s(this)){var R=spJ(this);if(R)return R}return this.videoData.getAudioTrack()}; g.L.pI=function(){return this.videoData.Y}; g.L.J6=function(){if(this.videoData.C("html5_trigger_loader_when_idle_network")&&!this.videoData.QS()&&PZ(this.videoData)){var R;(R=this.loader)!=null&&R.pS()}}; g.L.JS=function(){if(WZ(this.videoData)&&this.videoData.C("html5_gapless_append_early")){var R;(R=this.loader)!=null&&R.pS()}}; g.L.onPlayerRequestSent=function(R){this.Qu.onPlayerRequestSent(R)}; g.L.Ze=function(R){R=R===void 0?!1:R;if(this.loader){var l=this.loader,y=l.Ze;var f=this.videoData;f=f.C("html5_ssdai_use_post_for_media")&&f.enableServerStitchedDai?!1:eU(f)&&f.O9&&!f.isAd();y.call(l,f,R)}}; g.L.o$=function(R){R=R===void 0?!1:R;this.z4&&(this.logger.debug("remove media source"),S_i(this.z4),this.Ze(R),this.z4.dispose(),this.z4=null)}; g.L.eK=function(){return this.z4}; g.L.x7=function(R,l,y,f){function A(G){try{her(K,G,l,y)}catch(B){g.dP(B),G={msi:"1",ename:B&&typeof B==="object"&&"name"in B?String(B.name):void 0},K.C("html5_log_fmt_unplaybable_trigger")&&(G.trg="setmediasrc"),K.handleError(new g.c9("fmt.unplayable",G,1))}} var K=this;l=l===void 0?!1:l;y=y===void 0?!1:y;mfs(this,f===void 0?!1:f);this.z4=R;this.Lf()&&h2(this.z4)==="open"?A(this.z4):Ito(this.z4,A)}; g.L.Ff=function(R){this.logger.debug("onNeedKeyInfo");this.t$.set(R.initData,R);this.ES&&(this.ES.Ff(R),this.C("html5_eme_loader_sync")||this.t$.remove(R.initData))}; g.L.jL=function(R){this.videoData.S0=g.Qz("auto",R,!1,"u");fy(this)}; g.L.ek=function(R){var l=R.reason,y=R.Z.info,f=R.token,A=R.videoId,K=this.VS,G=this.videoData;if(y!==G.Y){var B=!G.Y;G.Y=y;l!=="m"&&l!=="t"&&(l=B?"i":"a");var H=l==="m"||l==="t";this.Zq.experiments.EL("html5_refactor_sabr_audio_format_selection_logging")?this.dl=new Yg9(G,y,l,"",f,A):(l=new Yg9(G,y,l,"",f),K.qoe&&(K=K.qoe,y=g.lV(K.provider),x99(K,y,l)));this.publish("internalaudioformatchange",G,!B&&H)}this.C_.ek(R.Z.index)}; g.L.oZ=function(R){this.publish("localmediachange",R)}; g.L.DE=function(R){R=R===void 0?{}:R;var l;(l=this.loader)==null||l.DE(this.Zq,OU(this.videoData),R)}; g.L.uT=function(){return this.by.uT()}; g.L.C3=function(R){this.l8(new g.c9("staleconfig",{reason:R}))}; g.L.handleError=function(R){this.by.handleError(R)}; g.L.Jp=function(){return this.by.Jp()}; g.L.Gi=function(R){this.C_.Gi(R)}; g.L.UY=function(R,l){R=R===void 0?!1:R;l=l===void 0?!1:l;var y=this,f,A,K;return g.w(function(G){if(G.X==1){y.loader&&y.loader.vU();y.loader&&y.loader.Fx()&&sH(y);if(y.C("html5_enable_vp9_fairplay")&&y.yT()&&(f=y.videoData.Z)!=null)for(var B in f.Z)f.Z.hasOwnProperty(B)&&(f.Z[B].Z=null,f.Z[B].L=!1);y.Xc($N(y.playerState,2048));y.publish("newelementrequired");return R?g.v(G,GH(y),2):G.bQ(2)}y.videoData.QS()&&((A=y.loader)==null?0:A.xb)&&!VU(y)&&((K=y.isAtLiveHead())&&$K(y.videoData)?y.seekTo(Infinity, {b8:"videoPlayer_getNewElement"}):y.videoData.Rz&&y.loader&&(B=y.loader,B.nX.QS&&(B.nX.Rz||B.nX.Y||B.nX.isPremiere?(B.seek(0,{b8:"loader_resetSqless"}),B.videoTrack.V=!0,B.audioTrack.V=!0,B.videoTrack.J=!0,B.audioTrack.J=!0):V6(B.nX)&&RQ(B))));l&&y.seekTo(0,{seekSource:105});g.V(y.playerState,8)&&y.playVideo();g.Q9(G)})}; g.L.PU=function(R){this.T4("hgte",{ne:+R});this.videoData.V=!1;R&&this.UY();this.loader&&aNi(this.loader)}; g.L.pz=function(R){this.T4("newelem",{r:R});this.UY()}; g.L.pauseVideo=function(R){R=R===void 0?!1:R;if((g.V(this.playerState,64)||g.V(this.playerState,2))&&!R)if(g.V(this.playerState,8))this.Xc(bZ(this.playerState,4,8));else if(this.HK())Af(this);else return;g.V(this.playerState,128)||(R?this.Xc($N(this.playerState,256)):this.Xc(bZ(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.SU(this.videoData)&&this.loader&&mR(this,!1)}; g.L.stopVideo=function(){this.pauseVideo();this.loader&&(mR(this,!1),this.loader.VD())}; g.L.KW=function(R,l){R=R===void 0?!1:R;l=l===void 0?!1:l;if(this.Lf()&&l){var y;(y=this.mediaElement)==null||y.KW()}else{var f;(f=this.mediaElement)==null||f.stopVideo()}ov(this);sH(this);g.V(this.playerState,128)||(R?this.Xc(eD(eD($N(this.playerState,4),8),16)):this.Xc(Qh(this.playerState)));this.videoData.videoId&&this.Zq.CX.remove(this.videoData.videoId)}; g.L.seekTo=function(R,l){l=l===void 0?{}:l;this.logger.debug(function(){return"SeekTo "+R+", "+JSON.stringify(l)}); g.V(this.playerState,2)&&Af(this);l.HN1&&this.Xc($N(this.playerState,2048));l.seekSource!==58&&l.seekSource!==60||!this.C("html5_update_vss_during_gapless_seeking")||byi(this.VS,l.seekSource);this.C_.seekTo(R,l);this.Tf.sync()}; g.L.vT=function(R){this.yS.Y.X=(0,g.eY)();g.V(this.playerState,32)||(this.Xc($N(this.playerState,32,R==null?void 0:R.seekSource)),g.V(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.J1()}; g.L.xl=function(R){R=R==null?void 0:R.seekSource;g.V(this.playerState,32)?(this.Xc(bZ(this.playerState,16,32,R)),this.publish("endseeking")):g.V(this.playerState,2)||this.Xc($N(this.playerState,16,R));R=this.yS.Y;var l=this.videoData,y=this.playerState.isPaused();if(l.clientPlaybackNonce&&!isNaN(R.Z)){if(Math.random()<.01){y=y?"pbp":"pbs";var f={startTime:R.Z};l.D&&(f.cttAuthInfo={token:l.D,videoId:l.videoId});TB("seek",f);g.Xe({clientPlaybackNonce:l.clientPlaybackNonce},"seek");isNaN(R.X)||ba("pl_ss", R.X,"seek");ba(y,(0,g.eY)(),"seek")}R.reset()}}; g.L.E8=function(R){this.xl(R)}; g.L.PH=function(){this.publish("SEEK_COMPLETE")}; g.L.gS=function(R){var l=this.Qu,y=this.videoData.clientPlaybackNonce,f=this.playerType;if(R.scope===4){var A=R.type;if(A){var K=l.Xo(),G=K.getVideoData().clientPlaybackNonce;f===1&&(G=y);if(f=nW7(l,G)){if(y=f.getVideoData())R.writePolicy===2&&y.sabrContextUpdates.has(A)||(l.C("html5_update_included_sabr_context_cross_playback")&&R.sendByDefault&&y.uQ.add(A),y.sabrContextUpdates.set(A,R)),l.C("html5_enable_t1_enf_on_sabr")&&(R=A===5,A=B17(y.playerResponse),R?(R=A?1:0,Ge(R,"m.p_",{}),Ze("MBSTAT",R)): R=1,R===0&&l.VL.KX("onAbnormalityDetected"))}else K.T4("scuset",{ncpf:"1",ccpn:G,crcpn:y})}else g.dP(Error("b/380308491: contextUpdateType is undefined"))}}; g.L.Wm=function(){if(this.playerType===2)return this.Qu.Wm("")}; g.L.getCurrentTime=function(R){return this.C_.getCurrentTime(R===void 0?!1:R)}; g.L.F$=function(){return this.C_.F$()}; g.L.h7=function(){return this.C_.h7()}; g.L.UE=function(){return this.h7()}; g.L.ev=function(){return this.C_.ev()}; g.L.getPlaylistSequenceForTime=function(R){return this.videoData.getPlaylistSequenceForTime(R-this.fA())}; g.L.Dm=function(){var R=NaN;this.mediaElement&&(R=this.mediaElement.Dm());return R>=0?R:this.getCurrentTime()}; g.L.wc=function(){var R;return((R=this.videoData.Z)==null?0:R.wc)?this.videoData.Z.wc(this.getCurrentTime()-this.fA()):this.mediaElement&&(R=this.mediaElement.mE())&&(R=R.getTime(),!isNaN(R))?R/1E3+this.getCurrentTime():NaN}; g.L.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.fA():this.x6()?this.x6():0}; g.L.Jm=function(){var R=new zT9;if(this.loader){var l=this.Zq.schedule,y=this.Zq.PZ();y=y===void 0?!1:y;R.h9=l.xb;R.wT=l.jS;R.bandwidthEstimate=xh(l);if(y){y=(l.W.hL()*1E3).toFixed();var f=(l.sL.hL()*1E3).toFixed(),A=vn(l).toFixed(2),K=((l.V.hL()||0)*1E9).toFixed(2),G=l.L.hL().toFixed(0),B=l.P1.hL().toFixed(0),H=l.B.percentile(.5).toFixed(2),n=l.B.percentile(.92).toFixed(2),m=l.B.percentile(.96).toFixed(2),h=l.B.percentile(.98).toFixed(2);l.Z?l.Z.reset():l.Z=new FY;l.Z.add(l.Dq);l.Z.add(l.interruptions.length); for(var c=0,E=l.interruptions.length-1;E>=0;E--){var W=l.interruptions[E];l.Z.add(W-c);c=W}c=0;for(E=l.Y.length-1;E>=0;E--){W=l.Y[E];var Q=W.stamp/36E5;l.Z.add(Q-c);c=Q;l.Z.add(W.net/1E3);l.Z.add(W.max)}l=l.Z.Bf();R.Z={ttr:y,ttm:f,d:A,st:K,bw:G,abw:B,v50:H,v92:n,v96:m,v98:h,"int":l}}zYc(this.loader,R)}else this.mediaElement&&(R.r9=Oe(this.mediaElement));R.h9=this.h9;R.wT=this.wT;R.L=this.isAtLiveHead()&&this.isPlaying()?VTr(this):NaN;return R}; g.L.Rn=function(R,l){this.wT+=R;this.h9+=l}; g.L.CV=function(){return this.mediaElement?g.SU(this.videoData)?1:jU(this.videoData)?this.isAtLiveHead()||this.Tn()?1:this.C_.CV():this.mediaElement.CV():0}; g.L.fI=function(){var R=this.Gb,l=Rv(R,"bandwidth"),y=Rv(R,"bufferhealth"),f=Rv(R,"livelatency"),A=Rv(R,"networkactivity"),K=Mi(R,"bandwidth"),G=Mi(R,"bufferhealth"),B=Mi(R,"livelatency");R=Mi(R,"networkactivity");var H=this.gy(),n=H.droppedVideoFrames;H=H.totalVideoFrames;var m=this.getCurrentTime();if(this.ES){var h="IT/"+(this.ES.Z.getInfo()+"/"+Xq(this.QC()));h+="/"+this.ES.getInfo()}else h="";var c=this.isGapless(),E=this.xv(),W=this.Gw(),Q=g.HA(this),e=this.getPlayerState(),r=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var d=0;var z="";if(this.Ns){if(this.Ns.sz){z="D,";break a}d=this.Ns.FK;z=this.Ns.Iz.substring(0,4)}d>0?(d="AD"+d+", ",z&&(d+=z+", "),z=d):z=""}return{WS:K,Ki:G,currentTime:m,hP:h,droppedVideoFrames:n,isGapless:c,xv:E,GT:W,z5:l,NZ:y,d_:f,Wq:A,Oc:B,s4:R,sy:Q,playerState:e,v5:r,TR:z,totalVideoFrames:H}}; g.L.S1=function(R){var l={};if(R===void 0?0:R){Object.assign(l,this.VS.S1());this.mediaElement&&(Object.assign(l,this.mediaElement.S1()),R=this.gy(),l.dvf=R.droppedVideoFrames,l.tvf=R.totalVideoFrames);this.loader&&Object.assign(l,this.loader.S1());this.ES&&(l.drm=JSON.stringify(this.ES.S1()));l.state=this.playerState.state.toString(16);g.V(this.playerState,128)&&(l.debug_error=JSON.stringify(this.playerState.WE));this.jK()&&(l.prerolls=this.FC.join(","));this.videoData.eZ&&(l.ismb=this.videoData.eZ); this.videoData.latencyClass!=="UNKNOWN"&&(l.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(l.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)l.is_mosaic=1;this.videoData.cotn&&(l.is_offline=1,l.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(l.playerResponseCpn=this.videoData.playerResponseCpn);this.Qu.isOrchestrationLeader()&&(l.leader=1);this.videoData.isLivePlayback&& (this.videoData.Z&&DV(this.videoData.Z)&&(l.segduration=DV(this.videoData.Z)),R=this.C_,l.lat=R.W?YHo(R.W.Y):0,l.liveutcstart=this.videoData.liveUtcStartSeconds);l.relative_loudness=this.videoData.Vu.toFixed(3);if(R=g.HA(this))l.optimal_format=R.video.qualityLabel;l.user_qual=KA();l.release_version=a[67]}l.debug_videoId=this.videoData.videoId;return l}; g.L.addCueRange=function(R){this.ZO([R])}; g.L.removeCueRange=function(R){this.Tf.c$([R])}; g.L.Ad=function(){this.Tf.sync()}; g.L.Vw=function(R,l){return this.Tf.Vw(R,l)}; g.L.ZO=function(R,l){this.Tf.OS(R,l)}; g.L.u7=function(R){this.Tf.c$(R)}; g.L.Lw=function(){return this.Tf.Lw()||[]}; g.L.tp=function(){return this.Od}; g.L.tL=function(){return this.visibility.tL()}; g.L.GC=function(){this.mediaElement&&this.mediaElement.GC()}; g.L.JkE=function(){av(this)}; g.L.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.L.wq=function(){g.Xr(this.f6)}; g.L.C84=function(){this.J1();this.publish("onLoadProgress",this.CV())}; g.L.xD=function(R){var l=R.target.Yv();if(this.mediaElement&&this.mediaElement.Yv()&&this.mediaElement.Yv()===l){$fc(this,R.type);switch(R.type){case "error":var y=Ps(this.mediaElement)||"",f=this.mediaElement.iO();if(y==="capability.changed"){this.C("html5_restart_on_capability_change")?(this.T4("capchg",{msg:f}),this.UY(!0)):GH(this);return}if(this.mediaElement.hasError()&&(f={msg:f},this.C("html5_log_fmt_unplaybable_trigger")&&(f.trg="elementevt"),ZTJ(this.by,y,f)))return;if(this.isBackground()&& this.mediaElement.hJ()===4){this.KW();BA(this,"unplayable");return}break;case "durationchange":y=this.mediaElement.getDuration();isFinite(y)&&(!this.z4||y>0)&&y!==1&&this.Oz(y);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());jvQ(this.Tf);this.VS.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":b5k(this);this.publish("onLoadedMetadata");WrZ(this);y=this.wc();this.videoData.dS&&(this.videoData.dS=y);break;case "loadstart":WrZ(this); break;case "progress":case "suspend":this.BF.BJ();break;case "playing":this.yS.m1("plev");this.nF&&!VU(this)&&(this.nF=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{b8:"videoplayer_onPlaying"})));break;case "timeupdate":y=this.mediaElement&&!this.mediaElement.getCurrentTime();f=this.mediaElement&&this.mediaElement.Tc()===0;if(y&&(!this.Dc||f))return;this.Dc=this.Dc||!!this.mediaElement.getCurrentTime();EBr(this);this.J1();if(!this.mediaElement||this.mediaElement.Yv()!== l)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.gH().length>0&&this.mediaElement.Wf().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.C("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.Tc()>2||!this.mediaElement.isSeeking()&&Y5(this.mediaElement.Wf(),this.mediaElement.getCurrentTime()))&&(y=this.mediaElement.S1(),y.bh=Oe(this.mediaElement).toFixed(3), this.T4("uwe",y));break;case "resize":b5k(this);this.videoData.X&&this.videoData.X.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.jr&&g.V(this.playerState,8)&&!g.V(this.playerState,1024)&&this.getCurrentTime()===0&&g.LO){BA(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Yv()===l){T7T(this.C_,R);this.publish("videoelementevent",R);l=this.playerState;f=this.ph;var A=this.mediaElement;y=this.videoData.clientPlaybackNonce; if(!g.V(l,128)){var K=l.state;A=A?A:R.target;var G=A.getCurrentTime();if(!g.V(l,64)||R.type!=="ended"&&R.type!=="pause"){var B=A.getDuration();B=A.isEnded()||G>1&&Math.abs(G-B)<1.1;var H=R.type==="pause"&&A.isEnded();G=R.type==="ended"||R.type==="waiting"||R.type==="timeupdate"&&!g.V(l,4)&&!IP(f,G);if(H||B&&G)A.Sd()>0&&A.Yv()&&(K=14);else switch(R.type){case "error":Ps(A)&&(K|=128);break;case "pause":g.V(l,256)?(K^=256)||(K=64):g.V(l,32)||g.V(l,2)||g.V(l,4)||(K=4,g.V(l,1)&&g.V(l,8)&&(K|=1));break; case "playing":G=K;K=(K|8)&-1093;G&4?(K|=1,Fp(f,A,!0)):IP(f,A.getCurrentTime())&&(K&=-2);g.V(l,1)&&Fp(f,A)&&(K|=1);break;case "seeking":K|=16;g.V(l,8)&&(K|=1);K&=-3;break;case "seeked":K&=-17;Fp(f,A,!0);break;case "waiting":g.V(l,2)||(K|=1);Fp(f,A);break;case "timeupdate":G=g.V(l,16),B=g.V(l,4),(g.V(l,8)||G)&&!B&&IP(f,A.getCurrentTime())&&(K=8),Fp(f,A)&&(K|=1)}}f=K;K=null;f&128&&(K=R.target,A=Ps(K),G=1,A?(A==="capability.changed"&&(G=2),B="GENERIC_WITHOUT_LINK",H=K.S1(),H.mediaElem="1",/AUDIO_RENDERER/.test(K.iO())&& (B="HTML5_AUDIO_RENDERER_ERROR"),K={errorCode:A,errorMessage:g.Dr[B]||"",pn:B,s0:hO(H),gi:G,cpn:l.WE?l.WE.cpn:""}):K=null,K&&(K.cpn=y));l=Qh(l,f,K)}!g.V(this.playerState,1)&&g.V(l,1)&&QpJ(this,"evt"+R.type);this.Xc(l)}}}; g.L.PQ7=function(R){R=R.Z.availability==="available";R!==this.Od&&(this.Od=R,this.publish("airplayavailabilitychange"))}; g.L.vbU=function(){var R=(0,g.eY)(),l=this.mediaElement.tL();this.T4("airplay",{ia:l});!l&&!isNaN(this.hX)&&R-this.hX<2E3||(this.hX=R,l!==this.tL()&&(R=this.visibility,R.Z!==l&&(R.Z=l,R.cA()),this.T4("airplay",{rbld:l}),this.BM()),this.publish("airplayactivechange"))}; g.L.WK=function(R){if(this.loader){var l=this.loader,y=l.L,f=l.getCurrentTime(),A=Date.now()-y.B;y.B=NaN;y.T4("sdai",{adfetchdone:R,d:A});R&&!isNaN(y.V)&&y.X!==3&&kc(y.loader,f,y.V,y.D);y.policy.X?y.J=NaN:y.Y=NaN;Sa(y,4,y.X===3?"adfps":"adf");qG(l)}}; g.L.n2=function(){g.Wh(this.Za);this.m3.stop();this.videoData.xb=!0;this.Zq.Fv=!0;this.Zq.nA=0;var R=this.by;if(R.videoData.X){var l=R.yL.J,y=R.videoData.X.H1;l.Y.has(y)&&(l.Y.delete(y),l.X=!0)}R.Z.stop();this.D5();g.V(this.playerState,8)&&this.Xc(eD(this.playerState,65));this.BK=!1;R=this.VS;R.Z&&otk(R.Z);R.X&&(R=R.X,l=g.lV(R.provider),R.Z<0&&(R.Z=l,R.delay.start()),R.X=l,R.Y=l);g.Cz(this.Zl);this.publish("playbackstarted");(R=g.yr("yt.scheduler.instance.clearPriorityThreshold"))?R():ld(0)}; g.L.D5=function(){var R=this.Qu.mL(),l={},y={};!dh("pbs",this.yS.timerName)&&En.measure&&En.getEntriesByName&&(En.getEntriesByName("mark_nr")[0]?K9q("mark_nr"):K9q());R.videoId&&(l.videoId=R.videoId);R.clientPlaybackNonce&&!this.C("web_player_early_cpn")&&(l.clientPlaybackNonce=R.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(y.isPausedOnLoad=!0);y.itag=R.X?Number(R.X.itag):-1;R.aJ&&(y.preloadType=String(this.St?2:1));l.liveStreamMode=hSU[xK(R)];l.playerInfo=y;this.yS.infoGel(l); if(this.loader){R=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(R.L&&(l=window.performance.getEntriesByName(R.L),l.length&&(l=l[0],R.tick("vri",l.fetchStart),R.tick("vdns",l.domainLookupEnd),R.tick("vreq",l.requestStart),R.tick("vrc",l.responseEnd))),R.X&&(l=window.performance.getEntriesByName(R.X),l.length&&(l=l[0],R.tick("ari",l.fetchStart),R.tick("adns",l.domainLookupEnd),R.tick("areq",l.requestStart),R.tick("arc",l.responseEnd))));R=R.ticks;for(var f in R)R.hasOwnProperty(f)&& this.yS.tick(f,R[f])}}; g.L.J1=function(R){var l=this;R=R===void 0?!1:R;if(this.mediaElement&&this.videoData){Oqj(this.C_,this.isPlaying());var y=this.getCurrentTime();!this.loader||g.V(this.playerState,4)&&g.SU(this.videoData)||g.V(this.playerState,32)&&PZ(this.videoData)||pdY(this.loader,y);y>5&&(this.C_.L=y);var f=g.Rq();f?g.pz.Yz(this.AD):g.E1(this.AD);var A=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!A||sW(this.videoData))&&!g.V(this.playerState,128)){var K=function(){if(l.mediaElement&&!g.V(l.playerState, 128)){l.Zq.PZ()&&$fc(l,"pfx");var G=l.getCurrentTime();l.C("html5_buffer_underrun_transition_fix")&&(G-=l.fA());var B=Oe(l.mediaElement),H=g.V(l.playerState,8),n=IP(l.ph,G),m=VWj(l.ph,G,(0,g.eY)(),B);H&&n?l.Xc(eD(l.playerState,1)):H&&m?(H=l.getDuration(),n=$K(l.videoData),H&&Math.abs(H-G)<1.1?(l.T4("setended",{ct:G,bh:B,dur:H,live:n}),l.mediaElement.dL()?(l.logger.debug("seek to 0 because of looping"),l.seekTo(0,{b8:"videoplayer_loop",seekSource:37})):l.t6()):(l.playerState.isBuffering()||QpJ(l,"progress_fix"), l.Xc($N(l.playerState,1)))):(H&&!n&&!m&&G>0&&(H=(Date.now()-l.ZP)/1E3,n=l.getDuration(),G>n-1&&l.T4("misspg",{t:G.toFixed(2),d:n.toFixed(2),r:H.toFixed(2),bh:B.toFixed(2)})),l.playerState.isPaused()&&l.playerState.isBuffering()&&Oe(l.mediaElement)>5&&l.Xc(eD(l.playerState,1)));l.J1()}}; this.mediaElement.gH().length===0?this.AD=f?g.pz.Oi(K,100):g.h$(K,100):this.AD=f?g.pz.Oi(K,500):g.h$(K,500)}this.videoData.OF=y;!R&&this.isPlaying()&&O5k(this);miK(this.OC,this.Vq,this.t1(),this.isBackground())&&fy(this);this.publish("progresssync",R);A&&sW(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.L.g5=function(){this.LJ("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.L.Gw=function(){return this.VS.Gw()}; g.L.Nv=function(){return this.loader?this.loader.Nv():xh(this.Zq.schedule,!0)}; g.L.Xc=function(R){if(!g.Xp(this.playerState,R)){this.logger.debug(function(){return"Setting state "+R.toString()}); var l=new g.HR(R,this.playerState);this.playerState=R;eer(this);var y=!this.L3.length;this.L3.push(l);var f=this.mediaElement&&this.mediaElement.isSeeking();g.m2(l,1)&&this.loader&&Kvj(this.loader);f=l.oldState.state===8&&!f;g.m2(l,1)&&f&&g.V(this.playerState,8)&&!g.V(this.playerState,64)&&this.loader&&(GvJ(this.loader),this.mediaElement&&Oe(this.mediaElement)>=5&&H9r(this.OC,this.Vq)&&fy(this));(f=g.yx(this.Zq.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.V(R,1)&&(g.V(R,8)||g.V(R, 16))?this.tb.start(f):this.tb.stop();(nR(l,8)<0||g.m2(l,1024))&&this.m3.stop();!g.m2(l,8)||this.videoData.xb||g.V(l.state,1024)||this.m3.start();g.V(l.state,8)&&nR(l,16)<0&&!g.V(l.state,32)&&!g.V(l.state,2)&&this.playVideo();g.V(l.state,2)&&jU(this.videoData)&&(this.Oz(this.getCurrentTime()),this.J1(!0));g.m2(l,2)&&(this.O0(!0),this.Zq.PZ()&&this.C("html5_sabr_parse_live_metadata_playback_boundaries")&&PZ(this.videoData)&&this.videoData.Z&&(f={minst:""+this.videoData.Z.Fv,cminst:""+(this.videoData.Z.K_()+ this.fA()),maxst:""+this.videoData.Z.mS,hts:""+this.videoData.Z.Yb,cmaxst:""+(this.videoData.Z.x6()+this.fA())},this.T4("sabrSeekableBoundaries",f)));g.m2(l,128)&&this.KW();this.videoData.Z&&this.videoData.isLivePlayback&&!this.tA&&(nR(l,8)<0?r2j(this.videoData.Z):g.m2(l,8)&&this.videoData.Z.resume());WIQ(this.C_,l);XAQ(this.VS,l);if(y&&!this.Fx())try{for(var A=g.u(this.L3),K=A.next();!K.done;K=A.next()){var G=K.value;kHq(this.Tf,G);this.publish("statechange",G)}}finally{this.L3.length=0}}}; g.L.F7=function(){this.yS.tick("qoes")}; g.L.FP=function(){this.C_.FP()}; g.L.jB=function(R,l,y,f){a:{var A=this.by;f=f===void 0?"LICENSE":f;y=y.substring(0,256);var K=Eu(l);R==="drm.keyerror"&&this.ES&&this.ES.X.keys.length>1&&A.Y<96&&(R="drm.sessionlimitexhausted",K=!1);var G=A.yL.experiments.EL("html5_retry_on_drm_unavailable"),B=A.yL.experiments.EL("html5_retry_on_drm_key_error"),H=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(G&&R==="drm.unavailable"||B&&R==="drm.keyerror"&&!y.match(H))A.l8("qoe.restart",{retryOnDrmError:1,e:R,detail:y}),A.Xx.UY(!0);else{if(K)if(A.videoData.X&& A.videoData.X.video.isHdr())ttY(A,R);else{if(A.Xx.LJ(R,l,f,y),jQT(A,{detail:y}))break a}else A.l8(R,{detail:y});R==="drm.sessionlimitexhausted"&&(A.T4("retrydrm",{sessionLimitExhausted:1}),A.Y++,FrQ(A.Xx))}}}; g.L.slb=function(){var R=this,l=g.yx(this.Zq.experiments,"html5_license_constraint_delay"),y=Ra();l&&y?(l=new g.Vg(function(){R.M2();av(R)},l),g.U(this,l),l.start()):(this.M2(),av(this))}; g.L.T2=function(R){this.publish("heartbeatparams",R)}; g.L.Jv=function(R){this.T4("keystatuses",hZq(R));var l="auto",y=!1;this.videoData.X&&(l=this.videoData.X.video.quality,y=this.videoData.X.video.isHdr());a:{switch(l){case "highres":case "hd2880":l="UHD2";break;case "hd2160":case "hd1440":l="UHD1";break;case "hd1080":case "hd720":l="HD";break;case "large":case "medium":case "small":case "light":case "tiny":l="SD";break;default:l="";break a}y&&(l+="HDR")}l=aP(R)?s7(R,l):R.Y.includes(l);if(this.C("html5_enable_vp9_fairplay")){if(y)if(R.V){var f;if((f= this.ES)==null?0:GO(f.Z))if((y=this.ES)==null)y=0;else{for(var A=f=void 0,K=g.u(y.X.values()),G=K.next();!G.done;G=K.next())G=G.value,f||(f=ELZ(G,"SD")),A||(A=ELZ(G,"AUDIO"));y.bE({sd:f,audio:A});y=f==="output-restricted"||A==="output-restricted"}else y=!l;if(y){this.T4("drm",{dshdr:1});ttY(this.by);return}}else{this.videoData.d2||(this.videoData.d2=!0,this.T4("drm",{dphdr:1}),this.UY(!0));return}var B;if((B=this.ES)==null?0:GO(B.Z))return}else if(B=R.V&&l,y&&!B){ttY(this.by);return}l||s7(R,"AUDIO")&& s7(R,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),R=hZq(R),this.Qp?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.C("html5_report_fatal_drm_restricted_error_killswitch")||this.LJ("drm.keyerror",2,void 0,"info."+R)):(this.Qp=!0,this.l8(new g.c9("qoe.restart",Object.assign({},{retrydrm:1},R))),fy(this),FrQ(this)))}; g.L.Dx$=function(){if(!this.videoData.xb&&this.mediaElement&&!this.isBackground()){var R="0";this.mediaElement.Tc()>0&&Oe(this.mediaElement)>=5&&this.videoData.L&&this.videoData.L.Z&&(this.Xc($N(this.playerState,1)),QpJ(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),R="1");eer(this);var l=this.videoData.L;R={restartmsg:R,mfmt:!EU(this.videoData),mdrm:!(!(l&&l.videoInfos&&l.videoInfos.length&&l.videoInfos[0].sS)||this.ES),mfmtinfo:!this.videoData.X,prerolls:this.jK()?this.FC.join(","): "0"};if(this.ES){l=this.ES;if(l.X.size<=0){var y="ns;";l.B||(y+="nr;");l=y+="ql."+l.L.length}else l=hZq(l.X.values().next().value),l=hO(l);R.drmp=l}var f;Object.assign(R,((f=this.loader)==null?void 0:f.S1())||{});var A;Object.assign(R,((A=this.mediaElement)==null?void 0:A.S1())||{});this.VS.l8("qoe.start15s",hO(R));this.publish("loadsofttimeout")}}; g.L.Oz=function(R){this.videoData.lengthSeconds!==R&&(this.videoData.lengthSeconds=R,av(this))}; g.L.O0=function(R,l){var y=this;R=R===void 0?!1:R;if(!this.Ae)if(dh("att_s","player_att")||vo("att_s",void 0,"player_att"),this.C("use_rta_for_player"))(function(){var A,K,G,B;return g.w(function(H){switch(H.X){case 1:if(!(A=R)){H.bQ(2);break}return g.v(H,g.zXZ(),3);case 3:A=!H.Z;case 2:if(A)return H.return();g.$7(H,4);K=rfj(y.VS);if(!K)throw Error();G={};return g.v(H,g.vSk((G.cpn=y.videoData.clientPlaybackNonce,G.encryptedVideoId=y.videoData.videoId||"",G),3E4),6);case 6:B=H.Z;if(y.Ae)throw Error(); if(!B.challenge)throw g.dP(Error("Not sending attestation ping; no attestation challenge string")),Error();y.Ae=!0;var n=[B.challenge];B.error?n.push("r1c="+B.error):B.webResponse&&n.push("r1a="+B.webResponse);var m;((m=B.adblockReporting)==null?void 0:m.reportingStatus)!==void 0&&n.push("r6a="+B.adblockReporting.reportingStatus);var h;((h=B.adblockReporting)==null?void 0:h.broadSpectrumDetectionResult)!==void 0&&n.push("r6b="+B.adblockReporting.broadSpectrumDetectionResult);K(n.join("&"));vo("att_f", void 0,"player_att");g.XZ(H,0);break;case 4:g.TT(H),vo("att_e",void 0,"player_att"),g.Q9(H)}})})().then(function(){l==null||l()}); else{var f=new g.kqQ(this.videoData);if("c1a"in f.pm&&!g.Re.isInitialized()){vo("att_wb",void 0,"player_att");this.qq===2&&Math.random()<.01&&g.dP(Error("Botguard not available after 2 attempts"));if(R)return;if(this.qq<5){g.Cz(this.Xz);this.qq++;return}}(f=g.D0q(f))?(vo("att_f",void 0,"player_att"),d4Z(this.VS,f),this.Ae=!0):vo("att_e",void 0,"player_att")}}; g.L.FO=function(R){R=R===void 0?!1:R;return $K(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.Tn()||g.SU(this.videoData))?this.getCurrentTime():this.x6(R)}; g.L.oB=function(){return this.K_()}; g.L.x6=function(R){return this.C_.x6(R===void 0?!1:R)}; g.L.K_=function(){return this.C_.K_()}; g.L.fA=function(){return this.C_?this.C_.fA():0}; g.L.getStreamTimeOffset=function(){return this.C_?this.C_.getStreamTimeOffset():0}; g.L.P6=function(){var R=0;this.Zq.C("web_player_ss_media_time_offset")&&(R=this.getStreamTimeOffset()===0?this.fA():this.getStreamTimeOffset());return R}; g.L.setPlaybackRate=function(R){var l;this.playbackRate!==R&&yQK(this.OC,(l=this.videoData.L)==null?void 0:l.videoInfos)&&(this.playbackRate=R,fy(this));this.playbackRate=R;this.mediaElement&&this.mediaElement.setPlaybackRate(R)}; g.L.getPlaybackRate=function(){return this.playbackRate}; g.L.getPlaybackQuality=function(){var R="unknown";if(this.videoData.X&&(R=this.videoData.X.video.quality,R==="auto"&&this.mediaElement)){var l=this.d$();l&&l.videoHeight>0&&(R=eM(l.videoWidth,l.videoHeight))}return R}; g.L.isHdr=function(){return!!(this.videoData.X&&this.videoData.X.video&&this.videoData.X.video.isHdr())}; g.L.sendVideoStatsEngageEvent=function(R,l){var y=this.VS;y.Z?(y=TV(y.Z,"engage"),y.xb=R,y.send(l)):l&&l()}; g.L.Y0=function(R){return this.VS.Y0(R)}; g.L.isAtLiveHead=function(R,l){l=l===void 0?!1:l;return $K(this.videoData)&&(this.U7||l)?this.C_.isAtLiveHead(R):!1}; g.L.Ql=function(){var R=this.x6(),l=this.getCurrentTime(),y;(y=!$K(this.videoData))||(y=this.C_,y=!(y.Z&&y.Z.L));return y||this.Tn()||isNaN(R)||isNaN(l)?0:Math.max(0,R-l)}; g.L.Nt=function(R){(this.U7=R)||this.m3.stop();this.videoData.Z&&(R?this.videoData.Z.resume():r2j(this.videoData.Z));if(this.loader){var l=this.videoData.C("html5_disable_preload_for_ssdai_with_preroll")&&this.k8()&&this.videoData.isLivePlayback;R&&!l?this.loader.resume():mR(this,!0)}g.V(this.playerState,2)||R?g.V(this.playerState,512)&&R&&this.Xc(eD(this.playerState,512)):this.Xc($N(this.playerState,512));l=this.VS;l.qoe&&(l=l.qoe,g.O7(l,g.lV(l.provider),"stream",[R?"A":"I"]))}; g.L.v3=function(R){this.VS.l8("player.exception",hO({n:R.name,m:R.message}))}; g.L.iH=lj(22);g.L.h2=lj(51);g.L.UU=function(R){this.VS.UU(R)}; g.L.Os=function(R){this.VS.Os(R)}; g.L.kf=function(R){this.VS.kf(R)}; g.L.fM=lj(28);g.L.Ks=lj(34);g.L.Jn=function(R){this.VS.Jn(R)}; g.L.Hc=function(){this.T4("hidden",{},!0)}; g.L.gy=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.L.WU=function(){return this.loader?this.loader.WU():!0}; g.L.setLoop=function(R){this.loop=R;this.mediaElement&&!g.Eb(this.Zq)&&this.mediaElement.setLoop(R)}; g.L.dL=function(){return this.mediaElement&&!g.Eb(this.Zq)?this.mediaElement.dL():this.loop}; g.L.V0=function(R){this.T4("timestamp",{o:R.toString()});this.C_.V0(R)}; g.L.Uj=function(R){this.yS.tick(R)}; g.L.rh=function(R){return this.yS.rh(R)}; g.L.m1=function(R){this.yS.m1(R)}; g.L.T4=function(R,l,y){this.VS.T4(R,l,y===void 0?!1:y)}; g.L.iD=function(R,l,y){this.VS.T4(R,l,y===void 0?!1:y)}; g.L.l8=function(R){this.VS.l8(R.errorCode,hO(R.details));R=R.errorCode;if(this.videoData.isLivePlayback&&(R==="qoe.longrebuffer"||R==="qoe.slowseek")||R==="qoe.restart"){R=this.loader?ggK(this.loader.videoTrack):{};var l,y;this.T4("lasoe",Object.assign(this.loader?ggK(this.loader.audioTrack):{},(l=this.z4)==null?void 0:(y=l.Z)==null?void 0:y.EJ()));var f,A;this.T4("lvsoe",Object.assign(R,(f=this.z4)==null?void 0:(A=f.X)==null?void 0:A.EJ()))}}; g.L.dT=function(R,l,y){this.VS.dT(R,l,y)}; g.L.h6=function(R,l,y,f,A,K,G,B){var H;if((H=this.videoData.Z)!=null&&H.isLive){var n=l.playerType===2?l:R,m=R.videoData.videoId,h=l.videoData.videoId;if(m&&h){H=this.VS;if(H.qoe){var c=H.qoe,E=R.cpn,W=l.cpn,Q=n.videoData.Qq,e=c.provider.videoData.clientPlaybackNonce,r=c.provider.videoData.videoId,d=W!==e&&h!==r;e=E!==e&&m!==r;c.reportStats();c.adCpn&&c.adCpn!==E||(c.adCpn=e?E:"",c.h5=e?m:"",c.adFormat=e?Q:void 0,CVi(c,K?4:A?2:0,W,h,f),c.reportStats(),c.adCpn=d?W:"",c.h5=d?h:"",c.adFormat=d?Q:void 0, CVi(c,K?5:A?3:1,E,m,y),c.reportStats())}y=R.cpn;if(H.L.has(y)){if(A=H.L.get(y),vT(A,!0).send(),rA(A),y!==H.provider.videoData.clientPlaybackNonce){Oyi(A);var z;(z=H.Z)==null||hTs(z);H.L.delete(y)}}else H.qD=H.provider.videoData.clientPlaybackNonce,H.qD&&H.Z&&(H.L.set(H.qD,H.Z),vT(H.Z).send(),rA(H.Z));z=l.cpn;n=n.videoData;f-=this.P6();if(H.L.has(z)){f=H.L.get(z);var N=f.L&&isNaN(f.J)?dA(f):NaN;f=LR7(f,!1);isNaN(N)||(f.V=N);f.send()}else f=vtr(H,H.provider,n,f),H.L.set(z,f),iyo(f,new g.HR($N(new g.uZ, 8),new g.uZ)),otk(f),(N=H.Z)==null||rA(N);H.qD=z;if(this.C("html5_unify_csi_server_stitched_transition_logging")){if(H=this.yS,N=l.cpn,f=this.videoData.clientPlaybackNonce,l=l.videoData,R=(R.cpn===f?"video":"ad")+"_to_"+(N===f?"video":"ad"),R!=="video_to_ad"){f=R==="ad_to_video"?void 0:l;n=f==null?void 0:f.aR;z={};if(l==null?0:l.D)z.cttAuthInfo={token:l.D,videoId:l.videoId};G&&(z.startTime=G);TB(R,z);var D,t,C;G={targetVideoId:(D=l==null?void 0:l.videoId)!=null?D:"empty_video",targetCpn:N,adVideoId:(t= f==null?void 0:f.videoId)!=null?t:"empty_video",adClientPlaybackNonce:(C=n==null?void 0:n.cpn)!=null?C:f==null?void 0:f.clientPlaybackNonce};n&&(G.adBreakType=n.adBreakType,G.adType=n.adType);g.Xe(G,R);Lq(H,B,R)}}else D=this.yS,C=this.videoData.clientPlaybackNonce,t=l.videoData,C=(R.cpn===C?"video":"ad")+"_to_"+(l.cpn===C?"video":"ad"),R={},t.D&&(R.cttAuthInfo={token:t.D,videoId:t.videoId}),G&&(R.startTime=G),TB(C,R),g.Xe({targetVideoId:t.videoId,targetCpn:l.cpn,isSsdai:!0},C),D.Zq.C("html5_enable_ssdai_transition_with_only_enter_cuerange")? G||Lq(D,B,C):Lq(D,B,C)}}else this.logger.Z(360717806,"SSTEvent for nonSS")}; g.L.z0=function(){var R=this.Qu,l=R.z6;R.z6=[];return l}; g.L.wB=function(R){this.videoData.D3=!0;this.l8(new g.c9("sabr.fallback",R));this.UY(!0)}; g.L.ym=function(R,l){this.videoData.b$=!0;if(l===void 0||l)this.l8(new g.c9("qoe.restart",R)),this.UY(!0);this.videoData.h1()&&this.C("html5_reload_caption_on_ssdai_fallback")&&this.Qu.Es()}; g.L.Rj=function(R){this.T4("sdai",{aftimeout:R});this.l8(new g.c9("ad.fetchtimeout",{timeout:R}))}; g.L.Qi=function(R,l){this.T4("timelineerror",R);R=new g.c9("dai.timelineerror",R);l?this.LJ("dai.timelineerror",1,"RETRYABLE_ERROR",hO(R.details)):this.l8(R)}; g.L.C7=function(){return g.lV(this.VS.provider)}; g.L.getPlayerSize=function(){return this.F5.getPlayerSize()}; g.L.IJ=function(){return this.F5.IJ()}; g.L.X3=function(){return this.yS}; g.L.Nu=function(){return this.Qu.Nu()}; g.L.getVolume=function(){return this.Qu.getVolume()}; g.L.La=function(){return this.Qu.La()}; g.L.isMuted=function(){return this.Qu.isMuted()}; g.L.bd=function(){return this.Qu.bd()}; g.L.uI=function(){this.tA=!0}; g.L.C=function(R){return this.Zq.C(R)}; g.L.yP=function(R,l,y,f,A){this.T4("xvt",{m:R,g:l?1:0,tt:y?1:0,np:f?1:0,c:A})}; g.L.z1=function(){var R;(R=this.loader)==null||R.resume()}; g.L.k8=function(){return g.uA(this.FC,"ad")}; g.L.Ez=function(){var R=this.getCurrentTime(),l=R-this.fA();var y=this.mediaElement?Ro(this.mediaElement.Wf()):0;y=Math.floor(Math.max(y-l,0))+100;var f;return((f=this.loader)==null?0:f.Ez(l,y))?(this.T4("sdai",{skipad:1,ct:l.toFixed(3),adj:y.toFixed(3)}),PZ(this.videoData)&&this.loader.seek(l+y,{seekSource:89,b8:"videoplayer_skipServerStitchedAd"}),rCs(this.C_,R),!0):!1}; g.L.PZ=function(){return this.Zq.PZ()}; g.L.Wp=function(){if(this.C("html5_generate_content_po_token"))return this.videoData.Rq||"";this.Qu.hC();return this.Zq.HA||""}; g.L.BY=function(){if(this.videoData.videoId)return this.videoData.IG}; g.L.PA=function(){return this.videoData.videoId}; g.L.PN=function(){return this.Qu.nR}; g.L.ZU=function(){return this.BK}; g.L.uG=function(){return this.Qu.uG()}; g.L.C8=function(R,l){this.C_.C8(R,l)}; g.L.Rs=function(){this.C_.Rs()}; g.L.vH=function(R,l){var y=this.C("html5_generate_content_po_token")?this.videoData:void 0;this.Qu.vH(R,l,y)}; g.L.m6=function(R,l){var y;(y=this.loader)==null||y.m6(R,l)}; g.L.u5=function(){var R=this.eK();return!!R&&R.u5()}; g.L.Et=function(R,l){this.VS.Et(R,l)}; g.L.jP=function(){return this.VS.jP()}; g.L.NS=function(){return this.videoData.l2}; g.L.xv=function(){return this.Qu.xv()}; g.L.Zt=function(){return this.Qu.Zt(this)}; g.L.OA=function(){this.Wk=!0}; g.L.Xf=function(R){var l;(l=this.loader)==null||l.Xf(R)}; g.L.A$=function(){var R;(R=this.loader)==null||R.A$()};g.O(XPc,GW);g.O(hf,ox);hf.prototype.Z=function(R){R&&hs(this,this.G.getLoopVideo());this.G.logVisibility(this.element,R)}; hf.prototype.logClick=function(){this.G.logClick(this.element)}; hf.prototype.onLoopChange=function(R){hs(this,R)}; hf.prototype.X=function(R){this.G.setLoopVideo(R)};g.O(Tvj,GW);g.O(df7,GW);g.L=df7.prototype;g.L.seekToChapterWithAnimation=function(R){var l=this;if(g.Qs(this.api)&&!(R<0)){var y=this.api.getVideoData(),f=y.zL;if(f&&R=0)return;l=~l;g.Sd(this.items,l,0,R);LS(this.menuItems.element,R.element,l)}R.subscribe("size-change",this.Dp,this);this.menuItems.publish("size-change")}; g.L.VK=function(R){R.unsubscribe("size-change",this.Dp,this);this.Fx()||(g.bA(this.items,R),this.menuItems.element.removeChild(R.element),this.menuItems.publish("size-change"))}; g.L.Dp=function(){this.menuItems.publish("size-change")}; g.L.focus=function(){for(var R=0,l=0;l1&&g.rf(this)}; g.L.UV=function(){KTo(this);this.m$&&(fZT(this),g.Rm(this.element,this.size))}; g.L.qP=function(){var R=this.Z.pop();AXj(this,R,this.Z[this.Z.length-1],!0)}; g.L.sB=function(R){if(!R.defaultPrevented)switch(R.keyCode){case 27:this.Rl();R.preventDefault();break;case 37:this.Z.length>1&&this.qP();R.preventDefault();break;case 39:R.preventDefault()}}; g.L.focus=function(){this.Z.length&&this.Z[this.Z.length-1].focus()}; g.L.G4=function(){g.q9.prototype.G4.call(this);this.D&&this.D.dispose();this.V&&this.V.dispose()};g.O(vA,g.TH);vA.prototype.open=function(R,l){this.initialize(R.items)&&this.jZ(l,!!l)}; vA.prototype.initialize=function(R){g.XH(this.Bh);if(R===void 0||R.length===0)return!1;var l=R.length;R=g.u(R);for(var y=R.next();!y.done;y=R.next())this.sj(y.value,l--);return!0}; vA.prototype.sj=function(R,l){R.menuNavigationItemRenderer?s9r(this,R.menuNavigationItemRenderer,l):R.menuServiceItemRenderer&&BcK(this,R.menuServiceItemRenderer,l)};g.O(zH,$t);g.L=zH.prototype;g.L.jc=function(R){R.target!==this.dismissButton.element&&R.target!==this.overflowButton.element&&(this.LR(),this.onClickCommand&&this.G.KX("innertubeCommand",this.onClickCommand))}; g.L.Qe=function(){this.enabled=!1;this.B.hide()}; g.L.lM=function(){return!!this.Z&&this.enabled}; g.L.onVideoDataChange=function(R,l){this.pk(l);if(this.Z){this.bv();a:if(!this.isCounterfactual){var y,f,A;this.banner.update({title:(y=this.Z)==null?void 0:y.title,subtitle:(f=this.Z)==null?void 0:f.subtitle,metadata:(A=this.Z)==null?void 0:A.metadataText});var K;this.onClickCommand=g.k((K=this.Z)==null?void 0:K.onTap,vy);var G;if(R=g.k((G=this.Z)==null?void 0:G.onOverflow,vy))this.V=g.k(R,TFO);var B;if((B=this.Z)==null?0:B.thumbnailImage){var H,n;G=((H=this.Z)==null?void 0:(n=H.thumbnailImage)== null?void 0:n.sources)||[];if(G.length===0)break a;this.thumbnailImage.update({url:G[0].url})}else{var m;if((m=this.Z)==null?0:m.thumbnailIconName){var h;this.thumbnailIcon.update({icon:(h=this.Z)==null?void 0:h.thumbnailIconName})}}var c;this.shouldShowOverflowButton=!((c=this.Z)==null||!c.shouldShowOverflowButton);var E;this.shouldHideDismissButton=!((E=this.Z)==null||!E.shouldHideDismissButton)}var W;this.banner.element.setAttribute("aria-label",((W=this.Z)==null?void 0:W.a11yLabel)||"");var Q; this.UL=(Q=this.Z)==null?void 0:Q.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;n0j(this)}}; g.L.LjS=function(){this.isVisible=!0;n0j(this)}; g.L.Tm7=function(){this.isVisible=!1;n0j(this)}; g.L.iZ=function(){$t.prototype.iZ.call(this);this.X&&this.G.logVisibility(this.banner.element,this.isVisible)}; g.L.LR=function(){$t.prototype.LR.call(this,!1);this.X&&this.G.logClick(this.banner.element)}; g.L.DD=function(R){this.D||(this.D=new vA(this.G),g.U(this,this.D));var l,y;if((l=this.V)==null?0:(y=l.menu)==null?0:y.menuRenderer)this.D.open(this.V.menu.menuRenderer,R.target),R.preventDefault()}; g.L.pk=function(){}; g.L.bv=function(){}; g.L.G4=function(){this.G.yb("suggested_action_view_model");$t.prototype.G4.call(this)};g.O(wf,zH); wf.prototype.pk=function(R){var l,y,f;this.productUpsellSuggestedActionViewModel=g.k((l=R.getWatchNextResponse())==null?void 0:(y=l.playerOverlays)==null?void 0:(f=y.playerOverlayRenderer)==null?void 0:f.suggestedActionViewModel,JMU);var A;if((A=this.productUpsellSuggestedActionViewModel)==null?0:A.content){var K;this.Z=g.k((K=this.productUpsellSuggestedActionViewModel)==null?void 0:K.content,ep8)}var G,B;if(this.X=!!((G=this.productUpsellSuggestedActionViewModel)==null?0:(B=G.loggingDirectives)==null? 0:B.trackingParams)){var H,n;this.G.setTrackingParams(this.banner.element,((H=this.productUpsellSuggestedActionViewModel)==null?void 0:(n=H.loggingDirectives)==null?void 0:n.trackingParams)||null)}var m;this.isCounterfactual=!((m=this.productUpsellSuggestedActionViewModel)==null||!m.isCounterfactualServing)}; wf.prototype.bv=function(){var R=[],l,y=g.u(((l=this.productUpsellSuggestedActionViewModel)==null?void 0:l.ranges)||[]);for(l=y.next();!l.done;l=y.next()){var f=l.value;f&&(l=Number(f.startTimeMilliseconds),f=Number(f.endTimeMilliseconds),isNaN(l)||isNaN(f)||R.push(new g.Jq(l,f,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.G.OS(R)};g.O(mnZ,GW);g.O(xt,GW);xt.prototype.onVideoDataChange=function(R,l){var y=this;if(!lK(l)&&(R==="newdata"&&hLi(this),this.Z&&R==="dataloaded")){this.Z=!1;var f;v5(rZ(i2(this.api.U(),(f=this.api.getVideoData())==null?void 0:g.MD(f)),function(A){iQ7(y,A)}),function(){y.Z=!0})}}; xt.prototype.zg=function(){var R=this;if(g.Eb(this.api.U())){var l,y=g.OS(this.api.U(),(l=this.api.getVideoData())==null?void 0:g.MD(l));return rZ(bL(y),function(f){var A=gn();Vs(A,f);return R.api.zg(A)})}return bL(this.api.zg())};g.O(g.N4,g.yu);g.L=g.N4.prototype;g.L.open=function(){g.df(this.Te,this.X)}; g.L.BE=function(R){PeQ(this);var l=this.options[R];l&&(l.element.setAttribute("aria-checked","true"),this.Oj(this.IU(R)),this.L=R)}; g.L.Gc=function(R){g.XH(this.X);for(var l={},y=!1,f=0;f=0?this.Z.playbackRate:1}catch(R){return 1}}; g.L.setPlaybackRate=function(R){this.getPlaybackRate()!==R&&(this.Z.playbackRate=R);return R}; g.L.dL=function(){return this.Z.loop}; g.L.setLoop=function(R){this.Z.loop=R}; g.L.canPlayType=function(R,l){return this.Z.canPlayType(R,l)}; g.L.isPaused=function(){return this.Z.paused}; g.L.isSeeking=function(){return this.Z.seeking}; g.L.isEnded=function(){return this.Z.ended}; g.L.kZ=function(){return this.Z.muted}; g.L.yQ=function(R){FN();this.Z.muted=R}; g.L.gH=function(){return this.Z.played||VW([],[])}; g.L.Wf=function(){try{var R=this.Z.buffered}catch(l){}return R||VW([],[])}; g.L.vN=function(){return this.Z.seekable||VW([],[])}; g.L.mE=function(){var R=this.Z;return R.getStartDate?R.getStartDate():null}; g.L.getCurrentTime=function(){return this.Z.currentTime}; g.L.setCurrentTime=function(R){this.Z.currentTime=R}; g.L.getDuration=function(){return this.Z.duration}; g.L.load=function(){var R=this.Z.playbackRate;try{this.Z.load()}catch(l){}this.Z.playbackRate=R}; g.L.pause=function(){this.Z.pause()}; g.L.play=function(){var R=this.Z.play();if(!R||!R.then)return null;R.then(void 0,function(){}); return R}; g.L.Tc=function(){return this.Z.readyState}; g.L.Sd=function(){return this.Z.networkState}; g.L.hJ=function(){return this.Z.error?this.Z.error.code:null}; g.L.iO=function(){return this.Z.error?this.Z.error.message:""}; g.L.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.Z instanceof window.HTMLVideoElement&&this.Z.getVideoPlaybackQuality)return this.Z.getVideoPlaybackQuality();if(this.Z){var R=this.Z,l=R.webkitDroppedFrameCount;if(R=R.webkitDecodedFrameCount)return{droppedVideoFrames:l||0,totalVideoFrames:R}}return{}}; g.L.tL=function(){return!!this.Z.webkitCurrentPlaybackTargetIsWireless}; g.L.GC=function(){return!!this.Z.webkitShowPlaybackTargetPicker()}; g.L.togglePictureInPicture=function(){var R=this.Z,l=window.document;window.document.pictureInPictureEnabled?this.Z!==l.pictureInPictureElement?R.requestPictureInPicture():l.exitPictureInPicture():uz()&&R.webkitSetPresentationMode(R.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.L.V8=function(){var R=this.Z;return new g.Do(R.offsetLeft,R.offsetTop)}; g.L.getSize=function(){return g.l4(this.Z)}; g.L.setSize=function(R){g.Rm(this.Z,R)}; g.L.getVolume=function(){return this.Z.volume}; g.L.setVolume=function(R){FN();this.Z.volume=R}; g.L.Iv=function(R){this.J[R]||(this.Z.addEventListener(R,this.listener),this.J[R]=this.listener)}; g.L.setAttribute=function(R,l){this.Z.setAttribute(R,l)}; g.L.removeAttribute=function(R){this.Z.removeAttribute(R)}; g.L.hasAttribute=function(R){return this.Z.hasAttribute(R)}; g.L.TH=lj(61);g.L.IP=lj(63);g.L.GB=lj(65);g.L.l5=lj(67);g.L.kW=function(){return LF(this.Z)}; g.L.qy=function(R){g.AU(this.Z,R)}; g.L.Rg=function(R){return g.Jo(this.Z,R)}; g.L.Mh=function(){return g.io(document.body,this.Z)}; g.L.audioTracks=function(){var R=this.Z;if("audioTracks"in R)return R.audioTracks}; g.L.G4=function(){for(var R=g.u(Object.keys(this.J)),l=R.next();!l.done;l=R.next())l=l.value,this.Z.removeEventListener(l,this.J[l]);Ws.prototype.G4.call(this)}; g.L.W7=function(R){this.Z.disableRemotePlayback=R};g.O(q4,g.Z);g.O(Yt,g.Z);Yt.prototype.show=function(){g.Z.prototype.show.call(this);this.oE();this.VL.C("html5_enable_moving_s4n_window")&&g.Eb(this.VL.U())&&this.W()}; Yt.prototype.hide=function(){g.Z.prototype.hide.call(this);this.delay.stop();this.Y.stop()}; Yt.prototype.oE=function(){var R=(0,g.eY)(),l=zLi(this.VL);tf(this.Z,l.bandwidth_samples);tf(this.V,l.network_activity_samples);tf(this.L,l.live_latency_samples);tf(this.X,l.buffer_health_samples);var y={};l=g.u(Object.entries(l));for(var f=l.next();!f.done;f=l.next()){var A=g.u(f.value);f=A.next().value;A=A.next().value;this.B[f]!==A&&(y[f]=" "+String(A));this.B[f]=A}this.update(y);R=(0,g.eY)()-R>25?5E3:500;this.delay.start(R)}; Yt.prototype.W=function(){this.D?(this.position+=1,this.position>15&&(this.D=!1)):(--this.position,this.position<=0&&(this.D=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.Y.start(2E4)};g.O(IZT,GW);g.O(M4,g.p);M4.prototype.Z=function(){var R=(0,g.eY)()-this.startTime;R=Rthis.Y[R])&&(this.Z=R,lR(this))}; g.L.onCueRangeExit=function(R){var l=q8r(this,R);l&&this.Z===R&&this.api.KX("innertubeCommand",l);this.clearTimeout();this.Z=void 0}; g.L.onTimeout=function(R){this.Z!==void 0&&(R==null?void 0:R.cueRangeId)===this.Z&&(this.B=!1,(R=q8r(this,this.Z))&&this.api.KX("innertubeCommand",R))}; g.L.E8=function(R){this.X=R}; g.L.PH=function(){lR(this);this.X=void 0}; g.L.setTimeout=function(R){var l=this,y=Number(R==null?void 0:R.maxVisibleDurationMilliseconds);y&&(this.clearTimeout(),this.LX=setTimeout(function(){l.onTimeout(R)},y))}; g.L.clearTimeout=function(){this.LX&&clearTimeout(this.LX);this.LX=void 0;this.B=!1}; g.L.G4=function(){this.timelyActions=this.X=this.Z=this.videoId=void 0;this.Y={};this.c$();this.clearTimeout();GW.prototype.G4.call(this)};g.O(MOo,GW);g.O(fq,ox);fq.prototype.D=function(R){this.Y(R?2:1)}; fq.prototype.X=function(){var R=this.G.getPresentingPlayerType();R===2||R===3?(this.Z=!1,this.Te.VK(this)):this.Z||(R=this.hasVoiceBoostAudioTrack(),this.setEnabled(R),R=this.L()===2&&R,hs(this,R),this.Te.sj(this),this.Z=!0)}; fq.prototype.G4=function(){this.Te.VK(this);ox.prototype.G4.call(this)};g.O(AC,GW);AC.prototype.getVoiceBoostUserPreference=function(){return this.Z}; AC.prototype.setVoiceBoostUserPreference=function(R){this.api.T4("vb_set",{pref:R});g.vW("yt-player-voice-boost",R);R!==this.Z&&(this.Z=R,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.BM())}; AC.prototype.hasVoiceBoostAudioTrack=function(){var R,l,y=(R=this.api.getVideoData())==null?void 0:(l=R.L)==null?void 0:l.Z;return y?Dx(y,function(f){var A;return((A=f.audio)==null?void 0:A.X)===!0}):!1}; AC.prototype.updateEnvironmentData=function(){this.api.U().Gu=this.Z};var HPT=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.O(aK,GW);aK.prototype.G4=function(){this.V&&(g.Wh(this.V),this.V=void 0);GW.prototype.G4.call(this)}; aK.prototype.hC=function(){(this.X?!this.Z:this.L)&&B2(this)}; aK.prototype.W0=function(R,l,y){var f=this;if(yws(R)){var A=y||"";if(this.Z)l=H2(this,A),f8r(R,l);else{var K=new g.o2;l.push(K.promise);this.J.promise.then(function(){var G=H2(f,A);f8r(R,G);K.resolve()})}}}; aK.prototype.hV=function(R){var l=this;if(this.X||this.L)R.Rq=H2(this,R.videoId),this.Z||(this.Y=new Ee,this.J.promise.then(function(){l.yS.rh("pot_if");R.Rq=H2(l,R.videoId)}))};g.O(g.mI,g.Z);g.mI.prototype.select=function(){this.api.MA(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.Tk||void 0)&&this.api.logClick(this.element)}; g.mI.prototype.onClick=function(R){if(g.kh(this.api.U())&&this.api.C("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var l=this.suggestion.v6(),y={};g.UW(this.api,y);l=g.L4(l,y);g.Eo(l,this.api,R)}else g.cV(R,this.api,this.X,this.suggestion.sessionData||void 0)&&this.select()}; g.mI.prototype.onKeyPress=function(R){switch(R.keyCode){case 13:case 32:R.defaultPrevented||(this.select(),R.preventDefault())}}; g.mI.prototype.onVideoDataChange=function(){var R=this.api.getVideoData(),l=this.api.U();this.X=R.nJ?!1:l.Y};g.O(hP9,g.Z);g.L=hP9.prototype;g.L.G4=function(){this.hide();g.Xr(this.Z);g.A4(this.stills);this.stills.length=0;g.Z.prototype.G4.call(this)}; g.L.show=function(){!this.m$&&cwi(this).length&&(g.Z.prototype.show.call(this),this.player.logVisibility(this.element,!0),Euk(this))}; g.L.hide=function(){if(this.m$){var R=this.m$;g.Z.prototype.hide.call(this);g.G8(this.element,"ytp-fullscreen-grid-active");R&&this.player.logVisibility(this.element,!1)}}; g.L.vl=function(R){this.currentState!==R&&(this.currentState=R,this.element.scrollTop=0,R===0?this.hide():this.show(),Euk(this))}; g.L.onVideoDataChange=function(){var R=this.player.getVideoData(1);this.videoData!==R&&(this.videoData=R,this.m$&&Euk(this))};g.O(oK,g.Z);oK.prototype.onClick=function(){this.G.logClick(this.element)}; oK.prototype.vl=function(R){this.UF([1,2].includes(R));WSr(this,R)}; oK.prototype.UF=function(R){g.Z.prototype.UF.call(this,R);this.element.setAttribute("aria-hidden",String(!R))};g.O(c2,GW);c2.prototype.D=function(){this.X&&this.Z!==0&&(this.Z===1?EF(this,2):EF(this,1))}; c2.prototype.setFullscreenQuickActions=function(R){this.J&&this.api.getRootNode().removeChild(this.J);R?(g.AU(R,"ytp-fullscreen-quick-actions"),g.AU(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions"),g.kT(this.api,R,4)):g.G8(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions");this.J=R;hC(this)}; c2.prototype.setPlayerOverlayVideoDetailsRenderer=function(R){this.playerOverlayVideoDetailsRenderer&&this.playerOverlayVideoDetailsRenderer.remove();if(R){g.AU(R,"ytp-fullscreen-metadata");R.setAttribute("data-overlay-order","1");if(this.api.C("delhi_modern_web_player_fullscreen_metadata_bottom")){g.AU(this.api.getRootNode(),"ytp-fullscreen-metadata-bottom");var l=3}else g.AU(this.api.getRootNode(),"ytp-fullscreen-metadata-top"),l=1;this.C("web_player_overlay_positioned_layout")?this.api.XD(R,l): g.kT(this.api,R,4)}else g.G8(this.api.getRootNode(),"ytp-hide-fullscreen-title"),g.G8(this.api.getRootNode(),"ytp-fullscreen-metadata-bottom");this.playerOverlayVideoDetailsRenderer=R;hC(this)};g.O(iPs,GW);g.O(W2,g.p);W2.prototype.Z=function(){for(var R=g.u(g.SJ.apply(0,arguments)),l=R.next();!l.done;l=R.next())(l=l.value)&&this.features.push(l)}; W2.prototype.G4=function(){for(var R=this.features.length-1;R>=0;R--)this.features[R].dispose();this.features.length=0;g.p.prototype.G4.call(this)};P_c.prototype.reset=function(){this.Z=this.X=NaN};g.L=uF7.prototype;g.L.reset=function(){QJ(this.timerName)}; g.L.tick=function(R,l){ba(R,l,this.timerName)}; g.L.rh=function(R){return rh(R,void 0,this.timerName)}; g.L.m1=function(R){g.J2(R,void 0,this.timerName)}; g.L.infoGel=function(R){g.Xe(R,this.timerName)};g.O($Pq,g.Ae);g.L=$Pq.prototype;g.L.Vl=function(R){return this.loop||!!R||this.index+1=0}; g.L.setShuffle=function(R){this.shuffle=R;R=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var l=0;l0)||Nb(this,1,!0)}; g.L.Pa=function(){this.D=!0;this.Z.p_(this.J);this.J=this.Z.N(document,"mouseup",this.eG)}; g.L.eG=function(){this.D=!1;Nb(this,8,!1);this.Z.p_(this.J);this.J=this.Z.N(this.target,"mousedown",this.Pa)}; g.L.va=function(R){if(R=(R=R.changedTouches)&&R[0])this.xb=R.identifier,this.Z.p_(this.W),this.W=this.Z.N(this.target,"touchend",this.FX,void 0,!0),Nb(this,1024,!0)}; g.L.FX=function(R){if(R=R.changedTouches)for(var l=0;l1280||A>720)if(l=f.I9("maxresdefault.jpg"))break;if(K>640||A>480)if(l=f.I9("maxresdefault.jpg"))break;if(K>320||A>180)if(l=f.I9("sddefault.jpg")||f.I9("hqdefault.jpg")||f.I9("mqdefault.jpg"))break;if(l=f.I9("default.jpg"))break}g.oG(R)&&(R=new Image,R.addEventListener("load", function(){H1r()}),R.src=l?l:"",this.api.X3().tick("ftr")); this.Y.style.backgroundImage=l?"url("+l+")":""};g.O(g.jT,g.Z);g.jT.prototype.resize=function(){}; g.jT.prototype.X=function(R){var l=this;this.L=!1;HhY(this);var y=R.pn,f=this.api.U();y!=="GENERIC_WITHOUT_LINK"||f.D?y==="TOO_MANY_REQUESTS"?(f=this.api.getVideoData(),this.Oj(Zr(this,"TOO_MANY_REQUESTS_WITH_LINK",f.v6(),void 0,void 0,void 0,!1))):y!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||f.D?this.api.U().C("html5_enable_bandaid_error_screen")&&y==="HTML5_SPS_UMP_STATUS_REJECTED"&&!f.D?(f=f.hostLanguage,R="//support.google.com/youtube?p=videoError",f&&(R=g.L4(R,{hl:f})),this.Oj(Zr(this,"HTML5_SPS_UMP_STATUS_REJECTED", R))):this.api.U().C("enable_adb_handling_in_sabr")&&y==="BROWSER_OR_EXTENSION_ERROR"&&!f.D?(f=f.hostLanguage,R="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",f&&(R=g.L4(R,{hl:f})),this.Oj(Zr(this,"BROWSER_OR_EXTENSION_ERROR",R))):this.Oj(g.kw(R.errorMessage)):this.Oj(Zr(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(R=f.hostLanguage,y="//support.google.com/youtube/?p=player_error1",R&&(y=g.L4(y, {hl:R})),this.Oj(Zr(this,"GENERIC_WITH_LINK_AND_CPN",y,!0)),f.OF&&!f.Y&&BRo(this,function(K){if(g.cV(K,l.api,!aG(l.api.U()))){K={as3:!1,html5:!0,player:!0,cpn:l.api.getVideoData().clientPlaybackNonce};var G=l.api;G.Ej("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:K});G.isFullscreen()&&G.toggleFullscreen()}})); if(this.L){var A=this.pX("ytp-error-link");A&&(this.api.createClientVe(A,this,216104),this.api.logVisibility(A,!0),BRo(this,function(){l.api.logClick(A)}))}}; var s4k=/([^<>]+)<\/a>/;g.O(n4k,g.Z);n4k.prototype.XD=function(R,l){switch(l){case 1:JC(R,this.L);break;case 2:JC(R,this.Y);break;case 3:JC(R,this.Z);break;case 4:JC(R,this.X)}};g.O(mCo,g.Z);g.L=mCo.prototype;g.L.onClick=function(R){this.innertubeCommand?(this.G.KX("innertubeCommand",this.innertubeCommand),R.preventDefault()):g.cV(R,this.G,!0);this.G.logClick(this.element)}; g.L.onVideoDataChange=function(R,l){hKq(this,l);this.Ak&&cBo(this,this.Ak)}; g.L.gj=function(R){var l=this.G.getVideoData();this.videoId!==l.videoId&&hKq(this,l);this.Z&&cBo(this,R.state);this.Ak=R.state}; g.L.jZ=function(){this.fade.show();this.G.publish("paidcontentoverlayvisibilitychange",!0);this.G.logVisibility(this.element,!0)}; g.L.Rl=function(){this.fade.hide();this.G.publish("paidcontentoverlayvisibilitychange",!1);this.G.logVisibility(this.element,!1)};g.O(g7,g.Z);g7.prototype.hide=function(){this.Z.stop();this.message.style.display="none";g.Z.prototype.hide.call(this)}; g7.prototype.onStateChange=function(R){this.vl(R.state)}; g7.prototype.vl=function(R){if(g.V(R,128)||this.api.ZU())var l=!1;else{var y;l=this.api.C("web_watch_enable_multiview_manager")&&((y=this.api.getVideoData())==null?0:lK(y))?!1:g.V(R,16)||g.V(R,1)?!0:!1}l?this.Z.start():this.hide()}; g7.prototype.X=function(){this.message.style.display="block"};g.O(V2,g.q9);V2.prototype.onMutedAutoplayChange=function(R){this.L&&(R?(E4T(this),this.jZ()):(this.Z&&this.logClick(),this.Rl()))}; V2.prototype.mV=function(R){this.api.isMutedByMutedAutoplay()&&g.m2(R,2)&&this.Rl()}; V2.prototype.onClick=function(){this.api.unMute();this.logClick()}; V2.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.O(g.Cq,g.QW);g.L=g.Cq.prototype;g.L.init=function(){var R=this.api,l=R.getPlayerStateObject();this.e5=R.getPlayerSize();this.Xc(l);this.ra();this.ub();this.api.publish("basechromeinitialized",this);this.ID()&&this.api.publish("standardControlsInitialized")}; g.L.onVideoDataChange=function(R,l){var y=this.qY!==l.videoId;if(y||R==="newdata")R=this.api,R.isFullscreen()||(this.e5=R.getPlayerSize());y&&(this.qY=l.videoId,y=this.sY,y.Dq=3E3,Nb(y,512,!0),this.ra());this.api.C("web_render_jump_buttons")&&l.showSeekingControls&&(this.vk=572)}; g.L.dxU=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.L.eD=function(){var R=this.api.LW()&&this.api.VW(),l=this.api.Vf();return this.U$||R||this.oD||l}; g.L.Ya=function(){var R=!this.eD();g.BJ(this.api.getRootNode(),"ytp-menu-shown",!R)}; g.L.Md=function(R){try{if(!g.io(this.api.getRootNode(),R))return!1}catch(l){return!1}for(;R&&!p8Y(R);)R=R===this.api.getRootNode()?null:R.parentElement||null;return!!R}; g.L.Vd=function(R){var l=this.api.getRootNode();g.BJ(l,"ytp-autohide",R);g.BJ(l,"ytp-autohide-active",!0);this.f9.start(R?250:100);R&&(this.Q7=!1,g.G8(l,"ytp-touch-mode"));this.O$=!R;this.api.cI(!R)}; g.L.Sw=function(){var R=this.api.getRootNode();g.BJ(R,"ytp-autohide-active",!1)}; g.L.EGE=function(){this.Ps=!0}; g.L.KL1=function(R){if(this.api.U().C("player_doubletap_to_seek")||this.api.U().V)this.Ps=!1,this.fd&&this.p_(this.fd),this.f2===0&&tC(this,R)?(this.zy(),this.b6.start(),this.fd=this.N(this.api.lQ(),"touchmove",this.EGE,void 0,!0)):this.b6.stop();ihr(this)&&tC(this,R)&&!this.api.U().V&&LZT(this);var l=this.zb.Qs();if(!g.kh(this.api.U())&&pI&&PmJ(this,R))l&&R.preventDefault();else if(this.Q7=!0,g.AU(this.api.getRootNode(),"ytp-touch-mode"),this.sY.UT(),this.api.U().C("player_doubletap_to_seek")||this.api.U().V)if(l= this.api.getPlayerStateObject(),!(!this.api.EY()||g.V(l,2)&&g.xT(this.api)||g.V(l,64))){l=Date.now()-this.Va;this.f2+=1;if(l<=350){this.Wg=!0;l=this.api.getPlayerSize().width/3;var y=this.api.getRootNode().getBoundingClientRect(),f=R.targetTouches[0].clientX-y.left;y=R.targetTouches[0].clientY-y.top;var A=(this.f2-1)*10;f>0&&fl*2&&f=650,f=R.width<528;this.sY.resize();g.BJ(l,"ytp-fullscreen",this.api.isFullscreen());g.BJ(l,"ytp-large-width-mode",y);this.api.C("delhi_modern_web_player")?g.BJ(l,"ytp-xsmall-width-mode",f):g.BJ(l,"ytp-small-mode",this.cf());g.BJ(l,"ytp-tiny-mode",this.j5());g.BJ(l,"ytp-big-mode",this.x0());this.RT&&this.RT.resize(R)}; g.L.mV=function(R){this.Xc(R.state);this.ra()}; g.L.b2=lj(3);g.L.SF=function(){var R=!!this.qY&&!this.api.pJ()&&!this.dR,l=this.api.getPresentingPlayerType()===2,y=this.api.U();return l?(l=v2(this.api.Il()),R&&(l&&l.player?R=(R=l.player.getVideoData(2))?R.isListed&&!g.hq(l.player.U()):!1:(BR("showInfoBarDuringAd: this is null"),R=!1)),R):R&&(y.Zo||this.api.isFullscreen()||y.kz)}; g.L.ra=function(){var R=this.SF();this.uR!==R&&(this.uR=R,g.BJ(this.api.getRootNode(),"ytp-hide-info-bar",!R))}; g.L.Xc=function(R){var l=R.isCued()||this.api.jK()&&this.api.getPresentingPlayerType()!==3;l!==this.isCued&&(this.isCued=l,this.Vj&&this.p_(this.Vj),this.Vj=this.N(this.api.lQ(),"touchstart",this.KL1,void 0,l));var y=this.sY,f=R.isPlaying()&&!g.V(R,32)||this.api.cV();Nb(y,128,!f);y=this.sY;f=this.api.getPresentingPlayerType()===3;Nb(y,256,f);y=this.api.getRootNode();g.V(R,2)?f=[Cc.ENDED]:(f=[],g.V(R,8)?f.push(Cc.PLAYING):g.V(R,4)&&f.push(Cc.PAUSED),g.V(R,1)&&!g.V(R,32)&&f.push(Cc.BUFFERING),g.V(R, 32)&&f.push(Cc.SEEKING),g.V(R,64)&&f.push(Cc.UNSTARTED));g.Vr(this.Or,f)||(g.ac(y,this.Or),this.Or=f,g.Kg(y,f));f=this.api.U();var A=g.V(R,2);a:{var K=this.api.U();var G=K.controlsType;switch(G){case "2":case "0":K=!1;break a}K=G==="3"&&!g.V(R,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:VJZ(v2(this.api.Il())))||this.api.Vf()||g.kh(K)&&this.api.getPresentingPlayerType()===2?!1:!0}g.BJ(y,"ytp-hide-controls",!K);g.BJ(y,"ytp-native-controls",f.controlsType==="3"&&!l&&!A&&!this.oD);g.V(R, 128)&&!g.kh(f)?(this.RT||(this.RT=new g.jT(this.api),g.U(this,this.RT),g.kT(this.api,this.RT.element,4)),this.RT.X(R.WE),this.RT.show()):this.RT&&(this.RT.dispose(),this.RT=null)}; g.L.nN=function(){return this.api.LW()&&this.api.VW()?(this.api.a_(!1,!1),!0):this.api.pJ()?(g.IE(this.api,!0),!0):!1}; g.L.onMutedAutoplayChange=function(R){this.oD=R;this.Ya()}; g.L.x0=function(){return!1}; g.L.cf=function(){return!this.x0()&&(this.api.getPlayerSize().width=0&&l.left>=0&&l.bottom>l.top&&l.right>l.left?l:null;l=this.size;R=R.clone();l=l.clone();f&&(G=l,A=5,(A&65)==65&&(R.x=f.right)&&(A&=-2),(A&132)==132&&(R.y=f.bottom)&&(A&=-5),R.xf.right&&(G.width=Math.min(f.right-R.x,K+G.width-f.left),G.width=Math.max(G.width,0))),R.x+G.width>f.right&&A&1&&(R.x=Math.max(f.right-G.width,f.left)),R.yf.bottom&&(G.height=Math.min(f.bottom-R.y,K+G.height-f.top),G.height=Math.max(G.height,0))),R.y+G.height>f.bottom&&A&4&&(R.y=Math.max(f.bottom-G.height,f.top)));f=new g.Sv(0,0,0,0);f.left=R.x;f.top=R.y;f.width= l.width;f.height=l.height;g.qh(this.element,new g.Do(f.left,f.top));g.Xr(this.Y);this.Y.N(tz(this),"contextmenu",this.mUL);this.Y.N(this.G,"fullscreentoggled",this.onFullscreenToggled);this.Y.N(this.G,"pageTransition",this.jG)}; g.L.mUL=function(R){if(!R.defaultPrevented){var l=Q8(R);g.io(this.element,l)||this.Rl();this.G.U().disableNativeContextMenu&&R.preventDefault()}}; g.L.onFullscreenToggled=function(){this.Rl();JBk(this)}; g.L.jG=function(){this.Rl()};g.O(G4,g.Z);G4.prototype.onClick=function(){var R=this,l,y,f,A;return g.w(function(K){if(K.X==1)return l=R.api.U(),y=R.api.getVideoData(),f=R.api.getPlaylistId(),A=l.getVideoUrl(y.videoId,f,void 0,!0),g.v(K,Cmo(R,A),2);K.Z&&VQi(R);R.api.logClick(R.element);g.Q9(K)})}; G4.prototype.oE=function(){this.updateValue("icon",{T:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{T:"path",wm:!0,j:"ytp-svg-fill",K:{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=g49(this);g.BJ(this.element,"ytp-copylink-button-visible", this.visible);this.UF(this.visible);this.tooltip.mW();this.api.logVisibility(this.element,this.visible&&this.J)}; G4.prototype.Nx=function(R){g.Z.prototype.Nx.call(this,R);this.api.logVisibility(this.element,this.visible&&R)}; G4.prototype.G4=function(){g.Z.prototype.G4.call(this);g.G8(this.element,"ytp-copylink-button-visible")};g.O(qwk,g.Z);g.L=qwk.prototype;g.L.show=function(){g.Z.prototype.show.call(this);g.Cz(this.X)}; g.L.hide=function(){this.Y.stop();this.L=0;this.pX("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.G8(this.element,"ytp-chapter-seek");g.G8(this.element,"ytp-time-seeking");g.Z.prototype.hide.call(this)}; g.L.qB=function(R,l,y,f){this.L=R===this.V?this.L+f:f;this.V=R;var A=R===-1?this.B:this.W;A&&this.G.logClick(A);this.D?this.X.stop():g.tI(this.X);this.Y.start();this.element.setAttribute("data-side",R===-1?"back":"forward");var K=3*this.G.lQ().getPlayerSize().height;A=this.G.lQ().getPlayerSize();A=A.width/3-3*A.height;this.Z.style.width=K+"px";this.Z.style.height=K+"px";R===1?(this.Z.style.left="",this.Z.style.right=A+"px"):R===-1&&(this.Z.style.right="",this.Z.style.left=A+"px");var G=K*2.5;K=G/ 2;var B=this.pX("ytp-doubletap-ripple");B.style.width=G+"px";B.style.height=G+"px";R===1?(R=this.G.lQ().getPlayerSize().width-l+Math.abs(A),B.style.left="",B.style.right=R-K+"px"):R===-1&&(R=Math.abs(A)+l,B.style.right="",B.style.left=R-K+"px");B.style.top="calc((33% + "+Math.round(y)+"px) - "+K+"px)";if(y=this.pX("ytp-doubletap-ripple"))y.classList.remove("ytp-doubletap-ripple"),y.classList.add("ytp-doubletap-ripple");tQc(this,this.D?this.L:f)}; g.L.zn=function(R,l,y){if(y=y===void 0?null:y){var f=R===-1?this.B.visualElement:this.W.visualElement;y={seekData:y};var A=g.Py();A&&g.qM(Vv)(void 0,A,f,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",y,void 0)}this.L=R===this.V?this.L+l:l;this.V=R;f=this.G.lQ().getPlayerSize();this.D?this.X.stop():g.tI(this.X);this.Y.start();this.element.setAttribute("data-side",R===-1?"back":"forward");g.AU(this.element,"ytp-time-seeking");this.Z.style.width="110px";this.Z.style.height="110px";y=f.width*.1-15;R=== 1?this.LX?(this.Z.style.right=y+"px",this.Z.style.left=""):(this.Z.style.right="",this.Z.style.left=f.width*.8-30+"px"):R===-1&&(this.LX?(this.Z.style.right="",this.Z.style.left=y+"px"):(this.Z.style.right="",this.Z.style.left=f.width*.1-15+"px"));this.Z.style.top=f.height*.5+15+"px";tQc(this,this.D?this.L:l)}; g.L.gW=function(R,l,y){y=y===void 0?null:y;g.tI(this.X);this.Y.start();switch(R){case -1:R="back";break;case 1:R="forward";break;default:R=""}this.element.setAttribute("data-side",R);this.Z.style.width="0";this.Z.style.height="0";g.AU(this.element,"ytp-chapter-seek");this.updateValue("seekText",l);this.updateValue("seekTime","");l=this.pX("ytp-seek-icon");if(y){a:if(y){switch(y){case "PREMIUM_STANDALONE":y=T0J();break a;case "PREMIUM_STANDALONE_CAIRO":y=dtK();break a}y=void 0}else y=null;this.updateValue("seekIcon", y);l.style.display="inline-block"}else l.style.display="none"};g.O(Ywo,$t);g.L=Ywo.prototype;g.L.oI=function(R){this.CX||(this.CX=new vA(this.G),g.U(this,this.CX));var l,y;if((l=this.ZL)==null?0:(y=l.menu)==null?0:y.menuRenderer)this.CX.open(this.ZL.menu.menuRenderer,R.target),R.preventDefault()}; g.L.lM=function(){return!!this.Z}; g.L.wV=function(){return!!this.Z}; g.L.jc=function(R){R.target===this.overflowButton.element?R.preventDefault():(this.tF&&this.G.KX("innertubeCommand",this.tF),this.LR(!1))}; g.L.Qe=function(){this.LR(!0);var R,l;((R=this.Z)==null?0:(l=R.bannerData)==null?0:l.dismissedStatusKey)&&this.vZ.push(this.Z.bannerData.dismissedStatusKey);this.e2()}; g.L.Cv=function(){this.e2();BP(this)}; g.L.tIX=function(R){var l=this,y;if(R.id!==((y=this.Z)==null?void 0:y.identifier)){this.e2();y=g.u(this.Dq);for(var f=y.next();!f.done;f=y.next()){var A=f.value,K=void 0,G=void 0;if((f=(K=A)==null?void 0:(G=K.bannerData)==null?void 0:G.itemData)&&A.identifier===R.id){G=K=void 0;var B=((K=A)==null?void 0:(G=K.bannerData)==null?void 0:G.dismissedStatusKey)||"";if(this.vZ.includes(B))return;this.Z=A;this.banner.element.setAttribute("aria-label",f.accessibilityLabel||"");f.trackingParams&&(this.Y=!0, this.G.setTrackingParams(this.badge.element,f.trackingParams));this.B.show();Qj(this);this.sL.UF(!f.stayInApp);Hck(this);RGJ(this);sy(this);this.tF=g.k(f.onTapCommand,vy);if(A=g.k(f.menuOnTap,vy))this.ZL=g.k(A,TFO);A=void 0;this.banner.update({thumbnail:(A=(f.thumbnailSources||[])[0])==null?void 0:A.url,title:f.productTitle,price:f.priceReplacementText?f.priceReplacementText:f.price,salesOriginalPrice:fBJ(this),priceDropReferencePrice:AHs(this),promotionText:yHq(this),priceA11yText:K6Z(this),affiliateDisclaimer:f.affiliateDisclaimer, vendor:GRr(this)});B=G=K=A=void 0;((A=f)==null?0:(K=A.hiddenProductOptions)==null?0:K.showDropCountdown)&&((G=f)==null?0:(B=G.hiddenProductOptions)==null?0:B.dropTimestampMs)&&(this.sF=new g.Vg(function(){BLi(l)},1E3),this.sL.hide(),this.countdownTimer.show(),BLi(this)); this.G.C("web_player_enable_featured_product_banner_exclusives_on_desktop")&&MQY(this)&&(this.ol=new g.Vg(function(){lBq(l)},1E3),lBq(this))}}this.G.getRootNode()&&g.AU(this.G.getRootNode(),"ytp-featured-product-shown")}}; g.L.e2=function(){this.Z&&(this.Z=void 0,this.B6(),this.G.getRootNode()&&g.G8(this.G.getRootNode(),"ytp-featured-product-shown"))}; g.L.onVideoDataChange=function(R,l){var y=this;R==="dataloaded"&&BP(this);var f,A,K;R=g.k((f=l.getWatchNextResponse())==null?void 0:(A=f.playerOverlays)==null?void 0:(K=A.playerOverlayRenderer)==null?void 0:K.productsInVideoOverlayRenderer,bGt);this.overflowButton.show();this.dismissButton.hide();var G=R==null?void 0:R.featuredProductsEntityKey;this.trendingOfferEntityKey=R==null?void 0:R.trendingOfferEntityKey;this.Dq.length||(sCZ(this,G),sy(this));var B;(B=this.eZ)==null||B.call(this);this.eZ=g.cZ.subscribe(function(){sCZ(y, G);sy(y)})}; g.L.G4=function(){BP(this);Hck(this);RGJ(this);$t.prototype.G4.call(this)};g.O(cH9,g.Z);cH9.prototype.onClick=function(){this.G.logClick(this.element,this.X)};g.O(Ekk,g.q9);g.L=Ekk.prototype;g.L.show=function(){g.q9.prototype.show.call(this);this.G.publish("infopaneldetailvisibilitychange",!0);this.G.logVisibility(this.element,!0);W6k(this,!0)}; g.L.hide=function(){g.q9.prototype.hide.call(this);this.G.publish("infopaneldetailvisibilitychange",!1);this.G.logVisibility(this.element,!1);W6k(this,!1)}; g.L.getId=function(){return this.Y}; g.L.cR=function(){return this.itemData.length}; g.L.onVideoDataChange=function(R,l){if(l){var y,f,A,K;this.update({title:((y=l.m8)==null?void 0:(f=y.title)==null?void 0:f.content)||"",body:((A=l.m8)==null?void 0:(K=A.bodyText)==null?void 0:K.content)||""});var G;R=((G=l.m8)==null?void 0:G.trackingParams)||null;this.G.setTrackingParams(this.element,R);G=g.u(this.itemData);for(R=G.next();!R.done;R=G.next())R.value.dispose();this.itemData=[];var B;if((B=l.m8)==null?0:B.ctaButtons)for(l=g.u(l.m8.ctaButtons),B=l.next();!B.done;B=l.next())if(B=g.k(B.value, PHr))B=new cH9(this.G,B,this.Z),B.Nl&&(this.itemData.push(B),B.JU(this.items))}}; g.L.G4=function(){this.hide();g.q9.prototype.G4.call(this)};g.O(icq,g.Z);g.L=icq.prototype;g.L.onVideoDataChange=function(R,l){OcT(this,l);this.Ak&&uJq(this,this.Ak)}; g.L.AB=function(R){var l=this.G.getVideoData();this.videoId!==l.videoId&&OcT(this,l);uJq(this,R.state);this.Ak=R.state}; g.L.oC=function(R){(this.L=R)?this.hide():this.Z&&this.show()}; g.L.Ng=function(){this.X||this.jZ();this.showControls=!0}; g.L.zJ=function(){this.X||this.Rl();this.showControls=!1}; g.L.jZ=function(){var R,l=(R=this.G)==null?void 0:R.getPlayerSize();R=l.width<380;var y;l=l.height<(((y=this.G)==null?0:y.isEmbedsShortsMode())?400:280);var f,A;(((f=this.G)==null?0:f.getPlayerStateObject().isCued())||((A=this.G)==null?0:g.V(A.getPlayerStateObject(),1024)))&&R&&l||!this.Z||this.L||(this.fade.show(),this.G.publish("infopanelpreviewvisibilitychange",!0),this.G.logVisibility(this.element,!0))}; g.L.Rl=function(){this.Z&&!this.L&&(this.fade.hide(),this.G.publish("infopanelpreviewvisibilitychange",!1),this.G.logVisibility(this.element,!1))}; g.L.S94=function(){this.X=!1;this.showControls||this.Rl()};var rWU={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(rWU).reduce(function(R,l){R[rWU[l]]=l;return R},{}); var vQt={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(vQt).reduce(function(R,l){R[vQt[l]]=l;return R},{}); var zSU={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(zSU).reduce(function(R,l){R[zSU[l]]=l;return R},{});var wIU,xdS;wIU=[{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"}];xdS=[{option:0,text:HP(0)},{option:.25,text:HP(.25)},{option:.5,text:HP(.5)},{option:.75,text:HP(.75)},{option:1,text:HP(1)}]; g.hj=[{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:wIU},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:HP(.5)},{option:-1,text:HP(.75)},{option:0,text:HP(1)},{option:1, text:HP(1.5)},{option:2,text:HP(2)},{option:3,text:HP(3)},{option:4,text:HP(4)}]},{option:"background",text:"Color de fondo",options:wIU},{option:"backgroundOpacity",text:"Opacidad de fondo",options:xdS},{option:"windowColor",text:"Color de la ventana",options:wIU},{option:"windowOpacity",text:"Opacidad de la ventana",options:xdS},{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:HP(.25)},{option:.5,text:HP(.5)},{option:.75,text:HP(.75)},{option:1,text:HP(1)}]}];var ICS=[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.O(X3s,g.QW);g.L=X3s.prototype; g.L.AQ=function(R){R.repeat||(this.L.jn=!1);var l=!1,y=R.keyCode,f=Q8(R),A=!R.altKey&&!R.ctrlKey&&!R.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||ICS.includes(y)),K=!1,G=!1,B=this.api.U();R.defaultPrevented?(A=!1,G=!0):B.TD&&!this.api.isMutedByEmbedsMutedAutoplay()&&(A=!1);if(y===9)l=!0;else{if(f)switch(y){case 32:case 13:if(f.tagName==="BUTTON"||f.tagName==="A"||f.tagName==="INPUT")l=!0,A=!1;else if(A){var H=f.getAttribute("role");!H||H!=="option"&&H!=="button"&&H.indexOf("menuitem")!==0|| (l=!0,f.click(),K=!0)}break;case 37:case 39:case 36:case 35:l=f.getAttribute("role")==="slider";break;case 38:case 40:H=f.getAttribute("role"),f=y===38?f.previousSibling:f.nextSibling,H==="slider"?l=!0:A&&(H==="option"?(f&&f.getAttribute("role")==="option"&&f.focus(),K=l=!0):H&&H.indexOf("menuitem")===0&&(f&&f.hasAttribute("role")&&f.getAttribute("role").indexOf("menuitem")===0&&f.focus(),K=l=!0))}if(A&&!K)switch(y){case 38:K=Math.min(this.api.getVolume()+5,100);Rp(this.CS,K,!1);this.api.setVolume(K); G=K=!0;break;case 40:K=Math.max(this.api.getVolume()-5,0);Rp(this.CS,K,!0);this.api.setVolume(K);G=K=!0;break;case 36:this.api.EY()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),G=K=!0);break;case 35:this.api.EY()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),G=K=!0)}}l&&mr(this,!0);(l||G)&&this.sY.UT();(K||A&&this.handleGlobalKeyDown(y,R.shiftKey,R.ctrlKey,R.altKey,R.metaKey,R.key,R.code,R.repeat))&&R.preventDefault();B.W&&(R={keyCode:R.keyCode, altKey:R.altKey,ctrlKey:R.ctrlKey,metaKey:R.metaKey,shiftKey:R.shiftKey,handled:R.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.DG("onKeyPress",R))}; g.L.dg=function(R){var l=R.keyCode;(!this.api.C("web_player_spacebar_control_bugfix")||this.api.C("web_player_spacebar_control_bugfix")&&!this.L.Nb)&&this.handleGlobalKeyUp(l,R.shiftKey,R.ctrlKey,R.altKey,R.metaKey,R.key,R.code)&&R.preventDefault()}; g.L.handleGlobalKeyUp=function(R,l,y,f,A,K,G){this.api.publish("keyboardserviceglobalkeyup",{keyCode:R,shiftKey:l,ctrlKey:y,altKey:f,metaKey:A,key:K,code:G});l=!1;if(this.L.jn)return l;(K=g.SF(this.api.Il()))&&(K=K.Ny)&&K.m$&&(K.oY(R),l=!0);switch(R){case 9:mr(this,!0);l=!0;break;case 32:if(this.api.C("web_speedmaster_spacebar_control")&&(!this.api.C("web_player_spacebar_control_bugfix")&&!this.L.Nb||this.api.C("web_player_spacebar_control_bugfix"))&&!this.api.U().TD){var B,H;R=(B=this.progressBar)== null?void 0:(H=B.X)==null?void 0:H.isEnabled;l=this.WC(R)}break;case 39:(Ku?f:y)&&!A&&this.api.EY()&&this.api.C("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),B=(B=this.api.getVideoData())?B.zL:[],H=QCo(B,this.api.getCurrentTime()*1E3),H!==-1&&this.Z!=null&&(this.Z.gW(1,B[H].title),this.api.seekTo(B[H].startTime/1E3,void 0,void 0,void 0,52),l=!0))}return l}; g.L.handleGlobalKeyDown=function(R,l,y,f,A,K,G,B){B||(this.L.jn=!1);var H=!1,n=this.api.U();if(n.TD&&!this.api.isMutedByEmbedsMutedAutoplay())return H;var m=g.SF(this.api.Il());if(m&&(m=m.Ny)&&m.m$)switch(R){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:H=m.jt(R)}n.D||H||(H=K||String.fromCharCode(R).toLowerCase(),this.X+=H,"awesome".indexOf(this.X)===0||this.api.C("web_player_rtr_ctrls")&&"bday".indexOf(this.X)===0?(H=!0,4===this.X.length&&this.X==="bday"&&this.api.C("web_player_rtr_ctrls")&& (Eoo(this.J),this.sY.UT()),7===this.X.length&&this.X==="awesome"&&brQ(this.api.getRootNode(),"ytp-color-party")):(this.X=H,H="awesome".indexOf(this.X)===0||"bday".indexOf(this.X)===0));if(!H&&(!this.api.isMutedByEmbedsMutedAutoplay()||ICS.includes(R))){var h=this.api.getVideoData(),c,E;m=(c=this.progressBar)==null?void 0:(E=c.X)==null?void 0:E.isEnabled;c=h?h.zL:[];E=Ku?f:y;switch(R){case 80:l&&!n.jS&&(Mb(this.CS,rDi(),"Anterior"),this.api.previousVideo(),H=!0);break;case 78:l&&!n.jS&&(Mb(this.CS, i1(),"Siguiente"),this.api.nextVideo(),H=!0);break;case 74:this.api.EY()&&(this.api.startSeekCsiAction(),this.Z?this.api.C("enable_key_press_seek_logging")?(H=op(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.Z.zn(-1,10,H)):this.Z.zn(-1,10):Mb(this.CS,{T:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{T:"path",wm:!0,j:"ytp-svg-fill",K:{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),H=!0);break;case 76:this.api.EY()&&(this.api.startSeekCsiAction(),this.Z?this.api.C("enable_key_press_seek_logging")?(H=op(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.Z.zn(1,10,H)):this.Z.zn(1,10):Mb(this.CS,{T:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{T:"path",wm:!0,j:"ytp-svg-fill",K:{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),H=!0);break;case 37:this.api.EY()&&(this.api.startSeekCsiAction(),E?(E=$K7(c,this.api.getCurrentTime()*1E3),E!==-1&&this.Z!=null&&(this.Z.gW(-1,c[E].title),this.api.seekTo(c[E].startTime/1E3,void 0,void 0,void 0,53),H=!0)):(this.Z?this.api.C("enable_key_press_seek_logging")?(H=op(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.Z.zn(-1,5,H)):this.Z.zn(-1,5):Mb(this.CS,{T:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},S:[{T:"path",wm:!0,j:"ytp-svg-fill",K:{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),H=!0));break;case 39:this.api.EY()&&(this.api.startSeekCsiAction(),E?this.api.C("web_enable_keyboard_shortcut_for_timely_actions")||(E=QCo(c,this.api.getCurrentTime()*1E3),E!==-1&&this.Z!=null&&(this.Z.gW(1,c[E].title),this.api.seekTo(c[E].startTime/1E3,void 0,void 0,void 0,52),H=!0)):(this.Z!=null?this.api.C("enable_key_press_seek_logging")?(H=op(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.Z.zn(1,5,H)):this.Z.zn(1, 5):Mb(this.CS,{T:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{T:"path",wm:!0,j:"ytp-svg-fill",K:{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),H=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),Rp(this.CS,this.api.getVolume(),!1)):(this.api.mute(),Rp(this.CS,0,!0));H=!0;break;case 32:H=this.api.C("web_speedmaster_spacebar_control")?!this.api.U().jS:this.WC(m);break;case 75:H=this.WC(m);break;case 190:l?n.enableSpeedOptions&&dKT(this)&&(H=this.api.getPlaybackRate(),this.api.setPlaybackRate(H+.25,!0),FZK(this.CS,!1),H=!0):this.api.EY()&&(this.step(1),H=!0);break;case 188:l? n.enableSpeedOptions&&dKT(this)&&(H=this.api.getPlaybackRate(),this.api.setPlaybackRate(H-.25,!0),FZK(this.CS,!0),H=!0):this.api.EY()&&(this.step(-1),H=!0);break;case 70:ekk(this.api)&&(this.api.toggleFullscreen().catch(function(){}),H=!0); break;case 27:m?(this.progressBar.Dr(),H=!0):this.D()&&(H=!0)}if(n.controlsType!=="3")switch(R){case 67:g.TQ(this.api.Il())&&(n=this.api.getOption("captions","track"),this.api.toggleSubtitles(),Q4q(this.CS,!n||n&&!n.displayName),H=!0);break;case 79:cP(this,"textOpacity");break;case 87:cP(this,"windowOpacity");break;case 187:case 61:cP(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:cP(this,"fontSizeIncrement",!0,!0)}var W;l||y||f||(R>=48&&R<=57?W=R-48:R>=96&&R<=105&&(W=R-96));W!=null&&this.api.EY()&& (this.api.startSeekCsiAction(),n=this.api.getProgressState(),this.api.seekTo(W/10*(n.seekableEnd-n.seekableStart)+n.seekableStart,void 0,void 0,void 0,81),H=!0);H&&this.sY.UT()}this.L.F6=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:R,shiftKey:l,ctrlKey:y,altKey:f,metaKey:A,key:K,code:G,repeat:B},this.L);this.L.F6&&(H=!0);return H}; g.L.step=function(R){this.api.EY();if(this.api.getPlayerStateObject().isPaused()){var l=this.api.getVideoData().X;l&&(l=l.video)&&this.api.seekBy(R/(l.fps||30),void 0,void 0,R>0?77:78)}}; g.L.WC=function(R){if(!this.api.U().jS){var l;var y,f=(l=this.api.getVideoData())==null?void 0:(y=l.getPlayerResponse())==null?void 0:y.playabilityStatus;if(f){var A;l=((A=g.k(f.miniplayer,IoK))==null?void 0:A.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else l=!1;l&&this.api.KX("onExpandMiniplayer");R?this.progressBar.Qy():(R=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.CS.rW(R),R?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.L.G4=function(){g.tI(this.Y);g.QW.prototype.G4.call(this)};g.O(Ey,g.Z);Ey.prototype.oE=function(){var R=this.G.U(),l=R.L||this.G.C("web_player_hide_overflow_button_if_empty_menu")&&this.JR.isEmpty();R=g.kh(R)&&g.pM(this.G)&&g.V(this.G.getPlayerStateObject(),128);var y=this.G.getPlayerSize();this.visible=this.G.cf()&&!R&&y.width>=240&&!g.Bd(this.G.getVideoData())&&!l&&!this.G.isEmbedsShortsMode();g.BJ(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.G.mW();this.G.logVisibility(this.element,this.visible&&this.J)}; Ey.prototype.Nx=function(R){g.Z.prototype.Nx.call(this,R);this.G.logVisibility(this.element,this.visible&&R)}; Ey.prototype.G4=function(){g.Z.prototype.G4.call(this);g.G8(this.element,"ytp-overflow-button-visible")};g.O(rHc,g.q9);g.L=rHc.prototype;g.L.dj=function(R){R=Q8(R);g.io(this.element,R)&&(g.io(this.Z,R)||g.io(this.closeButton,R)||M9(this))}; g.L.Rl=function(){g.q9.prototype.Rl.call(this);this.G.G3(this.element)}; g.L.show=function(){this.m$&&this.G.publish("OVERFLOW_PANEL_OPENED");g.q9.prototype.show.call(this);this.element.setAttribute("aria-modal","true");zGi(this,!0)}; g.L.hide=function(){g.q9.prototype.hide.call(this);this.element.removeAttribute("aria-modal");zGi(this,!1)}; g.L.onFullscreenToggled=function(R){!R&&this.Qs()&&M9(this)}; g.L.isEmpty=function(){return this.actionButtons.length===0}; g.L.focus=function(){for(var R=g.u(this.actionButtons),l=R.next();!l.done;l=R.next())if(l=l.value,l.m$){l.focus();break}};g.O(w3o,g.Z);w3o.prototype.onClick=function(R){g.cV(R,this.api)&&this.api.playVideoAt(this.index)};g.O(xKK,g.q9);g.L=xKK.prototype;g.L.show=function(){g.q9.prototype.show.call(this);this.Z.N(this.api,"videodatachange",this.f0);this.Z.N(this.api,"onPlaylistUpdate",this.f0);this.f0()}; g.L.hide=function(){g.q9.prototype.hide.call(this);g.Xr(this.Z);this.updatePlaylist(null)}; g.L.f0=function(){this.updatePlaylist(this.api.getPlaylist());this.api.U().L&&(this.pX("ytp-playlist-menu-title-name").removeAttribute("href"),this.L&&(this.p_(this.L),this.L=null))}; g.L.Vi=function(){var R=this.playlist,l=R.author,y=l?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",f={CURRENT_POSITION:String(R.index+1),PLAYLIST_LENGTH:String(R.length)};l&&(f.AUTHOR=l);this.update({title:R.title,subtitle:g.KV(y,f),playlisturl:this.api.getVideoUrl(!0)});l=R.X;if(l===this.Y)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[R.index];else{y=g.u(this.playlistData);for(f=y.next();!f.done;f=y.next())f.value.dispose(); y=R.length;this.playlistData=[];for(f=0;f=this.X&&!R.L&&!l.isAd()&&!this.api.isEmbedsShortsMode()}else R=!1;this.visible=R;this.UF(this.visible);g.BJ(this.element,"ytp-search-button-visible",this.visible);g.BJ(this.element,"ytp-show-search-title",!this.api.cf());this.api.logVisibility(this.element,this.visible&&this.J)}; iP.prototype.Nx=function(R){g.Z.prototype.Nx.call(this,R);this.api.logVisibility(this.element,this.visible&&R)};g.O(PP,g.Z); PP.prototype.trigger=function(R,l,y,f){this.show();if(this.Y&&R!==this.Y){var A=1;this.X&&(A=VX7(this));kRs(this,A,!1);gkQ(this)}this.Y=R;this.L=this.Y===-1?this.W:this.B;R="";l?(this.V+=l,R=g.ut(this.V)):this.V=0;this.updateValue(this.Y===-1?"durationBack":"durationForward",R);if(this.Z==="hidden"||this.Z==="fading-out")l=0,this.Z==="fading-out"&&(l=VX7(this),JHq(this)),DK9(this,l),this.Z!=="fading-out"&&Zcq(this,this.L.querySelector(".ytp-seek-overlay-arrow-persistent")),this.Z="fading-in";else if(this.Z=== "fading-in"||this.Z==="lingering")l=this.L.querySelector(".ytp-seek-overlay-duration"),R=g.yx(this.G.U().experiments,"web_player_seek_overlay_duration_bump_scale")||.95,l.animate([{offset:0,transform:"scale(1)"},{offset:.5,transform:"scale("+R+")"},{offset:1,transform:"scale(1)"}],{duration:200,easing:"cubic-bezier(0, 1, 0.1, 1)"}),JHq(this),this.Z==="lingering"&&(this.D.stop(),this.D.start());this.LX=(0,g.eY)();y&&CU7(this,y,f)}; PP.prototype.qB=function(R,l,y,f){this.trigger(R,f)}; PP.prototype.zn=function(R,l,y){this.trigger(R,l);y&&(R=R===-1?this.B.visualElement:this.W.visualElement,y={seekData:y},(l=g.Py())&&g.qM(Vv)(void 0,l,R,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",y,void 0))}; PP.prototype.gW=function(R,l,y){this.trigger(R,void 0,l,y)};g.O(uP,g.Z);uP.prototype.onClick=function(){var R=this,l=this.api.U(),y=this.api.getVideoData(this.api.getPresentingPlayerType()),f=this.api.getPlaylistId();l=this.api.C("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):l.getVideoUrl(y.videoId,f,void 0,!0);if(navigator.share)try{var A=navigator.share({title:y.title,url:l});A instanceof Promise&&A.catch(function(K){tXJ(R,K)})}catch(K){K instanceof Error&&tXJ(this,K)}else this.Z.nN(),M9(this.X,this.element,!1); this.api.logClick(this.element)}; uP.prototype.oE=function(){var R=this.api.U(),l=this.api.isEmbedsShortsMode();g.BJ(this.element,"ytp-show-share-title",g.kh(R)&&!l);this.Z.x0()&&l?(R=(this.api.lQ().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Df(this.element,"right",R+"px")):l&&g.Df(this.element,"right","0px");this.updateValue("icon",{T:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{T:"path",wm:!0,j:"ytp-svg-fill",K:{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=qm9(this);g.BJ(this.element,"ytp-share-button-visible",this.visible);this.UF(this.visible);this.tooltip.mW();this.api.logVisibility(this.element,qm9(this)&&this.J)}; uP.prototype.Nx=function(R){g.Z.prototype.Nx.call(this,R);this.api.logVisibility(this.element,this.visible&&R)}; uP.prototype.G4=function(){g.Z.prototype.G4.call(this);g.G8(this.element,"ytp-share-button-visible")};g.O(MXs,g.q9);g.L=MXs.prototype;g.L.OB=function(R){R=Q8(R);g.io(this.D,R)||g.io(this.closeButton,R)||M9(this)}; g.L.Rl=function(){g.q9.prototype.Rl.call(this);this.tooltip.G3(this.element);this.api.logVisibility(this.Z,!1);for(var R=g.u(this.L),l=R.next();!l.done;l=R.next())l=l.value,this.api.hasVe(l.element)&&this.api.logVisibility(l.element,!1)}; g.L.show=function(){var R=this.m$;g.q9.prototype.show.call(this);this.oE();R||this.api.KX("onSharePanelOpened")}; g.L.Hd=function(){this.m$&&this.oE()}; g.L.oE=function(){var R=this;g.AU(this.element,"ytp-share-panel-loading");g.G8(this.element,"ytp-share-panel-fail");var l=this.api.getVideoData(),y=this.api.getPlaylistId()&&this.Y.checked;l.getSharePanelCommand&&wh(this.api.zg(),l.getSharePanelCommand,{includeListId:y}).then(function(f){R.Fx()||(g.G8(R.element,"ytp-share-panel-loading"),y8Y(R,f))}); l=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",l);this.updateValue("linkText",l);this.updateValue("shareLinkWithUrl",g.KV("Compartir v\u00ednculo $URL",{URL:l}));Oo(this.Z);this.api.logVisibility(this.Z,!0)}; g.L.onFullscreenToggled=function(R){!R&&this.Qs()&&M9(this)}; g.L.focus=function(){this.Z.focus()}; g.L.G4=function(){g.q9.prototype.G4.call(this);RVs(this)};g.O(K3J,$t);g.L=K3J.prototype;g.L.G4=function(){H79(this);$t.prototype.G4.call(this)}; g.L.jc=function(R){R.target!==this.dismissButton.element&&(this.LR(!1),this.G.KX("innertubeCommand",this.onClickCommand))}; g.L.Qe=function(){this.tU=!0;this.LR(!0);this.B6()}; g.L.plU=function(R){this.V=R;this.B6()}; g.L.onVideoDataChange=function(R,l){if(R=!!l.videoId&&this.videoId!==l.videoId)this.videoId=l.videoId,this.tU=!1,this.xb=!0,this.W=this.Yb=!1,H79(this),BW9(this,!1),this.X=this.Z=!1,QA(this),GiQ(this);if(R||!l.videoId)this.LX=this.Y=!1;var y,f;if(l==null?0:(y=l.getPlayerResponse())==null?0:(f=y.videoDetails)==null?0:f.isLiveContent)this.cA(!1);else{var A,K,G;l=g.k((A=l.getWatchNextResponse())==null?void 0:(K=A.playerOverlays)==null?void 0:(G=K.playerOverlayRenderer)==null?void 0:G.productsInVideoOverlayRenderer, bGt);this.V=this.enabled=!1;if(l){if(A=l==null?void 0:l.featuredProductsEntityKey){K=g.cZ.getState().entities;var B;if((B=MU(K,"featuredProductsEntity",A))==null?0:B.productsData){this.cA(!1);return}}this.enabled=!0;if(!this.Y){var H;B=(H=l.badgeInteractionLogging)==null?void 0:H.trackingParams;(this.Y=!!B)&&this.G.setTrackingParams(this.badge.element,B||null)}if(!this.LX){var n;if(this.LX=!((n=l.dismissButton)==null||!n.trackingParams)){var m;this.G.setTrackingParams(this.dismissButton.element,((m= l.dismissButton)==null?void 0:m.trackingParams)||null)}}l.isContentForward&&(H=l.productsData,BW9(this,!0),GiQ(this),H=s67(this,H),n=[],H.length>0&&n.push(H[0]),H.length>1&&(m=new g.Z({T:"div",j:"ytp-suggested-action-more-products-icon"}),g.U(this,m),n.push(m),n.push.apply(n,g.ci(H.slice(1)))),this.D=new g.Z({T:"div",S:n,j:"ytp-suggested-action-content-forward-container"}),g.U(this,this.D),this.P1.element.append(this.D.element));this.text=g.mF(l.text);var h;if(H=(h=l.dismissButton)==null?void 0:h.a11yLabel)this.UL= g.mF(H);this.onClickCommand=l.onClickCommand;this.timing=l.timing;this.OS()}lZc(this);Qj(this);this.B6()}}; g.L.lM=function(){return!this.V&&this.enabled&&!this.tU&&!this.G.cf()&&!this.LA&&(this.W||this.xb)}; g.L.P3=function(R){$t.prototype.P3.call(this,R);if(this.Z||this.X)this.timing&&Fx(this.timing.preview)&&(this.Z=!1,QA(this),this.X=!1,QA(this),this.G.yb("shopping_overlay_preview_collapsed"),this.G.yb("shopping_overlay_preview_expanded"),R=$B(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),Fx(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.G.yb("shopping_overlay_expanded"),R.end=this.timing.expanded.endSec*1E3),this.G.OS([R])), this.Yb=!0,Qj(this);QA(this)}; g.L.cA=function(R){(this.W=R)?(FH(this),Qj(this,!1)):(H79(this),this.v1.start());this.B6()}; g.L.OS=function(R){var l=this.timing;R=(R===void 0?0:R)+this.G.getCurrentTime();var y=[],f=l.visible,A=l.preview;l=l.expanded;Fx(f)&&(fMK(f,R),y.push($B(f.startSec,f.endSec,"shopping_overlay_visible")));Fx(A)&&(fMK(A,R),f=A.startSec+1,y.push($B(A.startSec,f,"shopping_overlay_preview_collapsed")),y.push($B(f,A.endSec,"shopping_overlay_preview_expanded")));Fx(l)&&(fMK(l,R),y.push($B(l.startSec,l.endSec,"shopping_overlay_expanded")));this.G.OS(y)}; g.L.B6=function(){$t.prototype.B6.call(this);this.G.getRootNode()&&g.BJ(this.G.getRootNode(),"ytp-shopping-pill-shown",this.lM())};g.O(odi,g.Z); odi.prototype.oE=function(){var R=this.api.U();this.UF(g.kh(R)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.m$);var l=this.api.getVideoData(),y=!1;this.api.getPresentingPlayerType()===2?y=!!l.videoId&&!!l.isListed&&!!l.author&&!!l.iQ&&!!l.profilePicture:g.kh(R)&&(y=!!l.videoId&&!!l.iQ&&!!l.profilePicture&&!g.Bd(l)&&!R.L&&!(R.V&&this.api.getPlayerSize().width<200));var f=l.profilePicture;R=g.kh(R)?l.expandedTitle:l.author;f=f===void 0? "":f;R=R===void 0?"":R;y?(this.X!==f&&(this.Z.style.backgroundImage="url("+f+")",this.X=f),this.updateValue("channelLogoLabel",g.KV("Foto o imagen de $CHANNEL_NAME",{CHANNEL_NAME:R})),g.AU(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.G8(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.Z,y&&this.J);this.api.logVisibility(this.channelName,y&&this.J);this.subscribeButton&&(this.subscribeButton.channelId=l.BQ);this.updateValue("expandedTitle",l.expandedTitle)};g.O(eR,g.q9);eR.prototype.show=function(){g.q9.prototype.show.call(this);this.Z.start()}; eR.prototype.hide=function(){g.q9.prototype.hide.call(this);this.Z.stop()}; eR.prototype.f7=function(R,l){R==="dataloaded"&&((this.ZW=l.ZW,this.R2=l.R2,isNaN(this.ZW)||isNaN(this.R2))?this.L&&(this.G.yb("intro"),this.G.removeEventListener(g.Vx("intro"),this.V),this.G.removeEventListener(g.Cd("intro"),this.D),this.G.removeEventListener("onShowControls",this.Y),this.hide(),this.L=!1):(this.G.addEventListener(g.Vx("intro"),this.V),this.G.addEventListener(g.Cd("intro"),this.D),this.G.addEventListener("onShowControls",this.Y),R=new g.Jq(this.ZW,this.R2,{priority:9,namespace:"intro"}), this.G.OS([R]),this.L=!0))};g.O(bP,g.Z);bP.prototype.onClick=function(){this.G.GC()}; bP.prototype.oE=function(){var R=!0;g.kh(this.G.U())&&(R=R&&this.G.lQ().getPlayerSize().width>=480);this.UF(R);R=this.updateValue;var l=this.G.C("delhi_modern_web_player_icons"),y=l?{T:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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"}}]}:{T:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{T:"path",wm:!0,K:{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"}}]};l=l?{T:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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"}}]}:{T:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{T:"path",wm:!0,j:"ytp-svg-fill",K:{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"}}]};R.call(this,"icon",this.G.tL()?y:l)};g.O(c8s,g.Z);c8s.prototype.G4=function(){this.Z=null;g.Z.prototype.G4.call(this)};g.O(Xx,g.Z);Xx.prototype.onClick=function(){this.G.KX("innertubeCommand",this.X)}; Xx.prototype.LX=function(R){R!==this.V&&(this.update({title:R,ariaLabel:R}),this.V=R);R?this.show():this.hide()}; Xx.prototype.B=function(){this.Z.disabled=this.X==null;g.BJ(this.Z,"ytp-chapter-container-disabled",this.Z.disabled);this.J1()};g.O(T4,Xx);T4.prototype.onClickCommand=function(R){g.k(R,ht)&&this.J1()}; T4.prototype.updateVideoData=function(R,l){var y,f,A;R=g.k((y=l.getWatchNextResponse())==null?void 0:(f=y.playerOverlays)==null?void 0:(A=f.playerOverlayRenderer)==null?void 0:A.decoratedPlayerBarRenderer,Su);y=g.k(R==null?void 0:R.playerBarActionButton,g.lD);if(this.G.C("web_player_updated_entrypoint")){this.W=S9(y==null?void 0:y.text);var K;f=(K=y==null?void 0:y.tooltip)!=null?K:"Ver cap\u00edtulo";this.D.setAttribute("title",f)}this.X=y==null?void 0:y.command;Xx.prototype.B.call(this)}; T4.prototype.J1=function(){var R=this.W,l=this.Y.Z,y,f=((y=this.G.getLoopRange())==null?void 0:y.type)==="clips";if(l.length>1&&!f){R=this.G.getProgressState().current*1E3;y=n5(l,R);R=l[y].title||"Cap\u00edtulos";if(y!==this.currentIndex||this.L)this.G.KX("innertubeCommand",l[y].onActiveCommand),this.currentIndex=y;this.L=!1}else this.L=!0;Xx.prototype.LX.call(this,R)};g.O(dv,g.BB);dv.prototype.X=function(){var R;(R=this.element.parentElement)==null||R.classList.contains("ytp-right-controls-left");(this.Z=!this.Z)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; dv.prototype.isExpanded=function(){return this.Z};g.O(rv,g.Z);rv.prototype.L=function(R){g.V(R.state,32)?W3i(this,this.api.Tg()):this.m$&&(g.V(R.state,16)||g.V(R.state,1))||this.fade.hide()}; rv.prototype.Pf=function(){var R=this.api.getPlayerStateObject();(g.V(R,32)||g.V(R,16))&&L3j(this)}; rv.prototype.Y=function(){this.frameIndex=NaN;L3j(this)}; rv.prototype.hide=function(){this.Z&&W3i(this,null);g.Z.prototype.hide.call(this)};g.O(O7K,g.Z);g.L=O7K.prototype;g.L.onClick=function(){var R=this;if(this.G.U().LA||this.G.U().V){this.G.logClick(this.element);try{this.G.toggleFullscreen().catch(function(l){R.PV(l)})}catch(l){this.PV(l)}}else M9(this.message,this.element,!0)}; g.L.PV=function(R){String(R).includes("fullscreen error")?g.dP(R):g.Tw(R);this.YE()}; g.L.YE=function(){this.disable();this.message.jZ(this.element,!0)}; g.L.CR=function(){WW()===this.G.getRootNode()?this.L.start():(this.L.stop(),this.message&&this.message.hide())}; g.L.xC=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var R=window.screen.width*.9,l=window.screen.height*.9,y=Math.max(window.outerWidth,window.innerWidth),f=Math.max(window.outerHeight,window.innerHeight);if(y>f!==R>l){var A=y;y=f;f=A}R>y&&l>f&&this.YE()}}; g.L.disable=function(){var R=this;if(!this.message){var l=(hD(["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.q9(this.G,{T:"div",QL:["ytp-popup","ytp-generic-popup"], K:{role:"alert",tabindex:"0"},S:[l[0],{T:"a",K:{href:"https://support.google.com/youtube/answer/6276924",target:this.G.U().B},IE:l[2]},l[4]]},100,!0);this.message.hide();g.U(this,this.message);this.message.subscribe("show",function(y){R.X.Kh(R.message,y)}); g.kT(this.G,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.Z)();this.Z=null}}; g.L.oE=function(){var R=ekk(this.G),l=this.G.U().V&&this.G.getPlayerSize().width<250;this.UF(R&&!l);var y;((y=this.G.U())==null?0:y.C("embeds_use_parent_visibility_in_ve_logging"))?this.G.logVisibility(this.element,this.m$&&this.J):this.G.logVisibility(this.element,this.m$)}; g.L.cQ=function(R){if(R){var l=g.zv(this.G,"Salir de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir de pantalla completa"});document.activeElement===this.element&&this.G.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(y){g.dP(y)})}else l=g.zv(this.G,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"}); R=i7r(this,R);l=this.message?null:l;this.update({title:l,icon:R});this.X.oz().mW()}; g.L.G4=function(){this.message||((0,this.Z)(),this.Z=null);g.Z.prototype.G4.call(this)}; g.L.Nx=function(R){g.Z.prototype.Nx.call(this,R);var l;((l=this.G.U())==null?0:l.C("embeds_use_parent_visibility_in_ve_logging"))&&this.G.logVisibility(this.element,this.m$&&R)};g.O(vP,g.Z);vP.prototype.onClick=function(){this.G.logClick(this.element);this.G.seekBy(this.Z,!0);var R=this.Z>0?1:-1,l=Math.abs(this.Z),y=this.G.Cf().DO;y&&y.zn(R,l);this.X.isActive()?this.L=!0:(R=["ytp-jump-spin"],this.Z<0&&R.push("backwards"),this.element.classList.add.apply(this.element.classList,g.ci(R)),g.Cz(this.X))};g.O(z4,Xx);z4.prototype.onClickCommand=function(R){g.k(R,$st)&&this.J1()}; z4.prototype.updateVideoData=function(){var R,l;this.X=(R=umk(this))==null?void 0:(l=R.onTap)==null?void 0:l.innertubeCommand;Xx.prototype.B.call(this)}; z4.prototype.J1=function(){var R="",l=this.Y.V,y,f=(y=umk(this))==null?void 0:y.headerTitle;y=f?g.mF(f):"";var A;f=((A=this.G.getLoopRange())==null?void 0:A.type)==="clips";l.length>1&&!f&&(R=this.G.getProgressState().current*1E3,A=F6Z(l,R),R=A!=null?l[A].title:y,A!=null&&A!==this.currentIndex&&(this.G.KX("innertubeCommand",l[A].onActiveCommand),this.currentIndex=A));Xx.prototype.LX.call(this,R)};g.O(wv,g.Z);wv.prototype.onClick=function(){this.G.KX("onCollapseMiniplayer");this.G.logClick(this.element)}; wv.prototype.oE=function(){this.visible=!this.G.isFullscreen();this.UF(this.visible);this.G.logVisibility(this.element,this.visible&&this.J)}; wv.prototype.Nx=function(R){g.Z.prototype.Nx.call(this,R);this.G.logVisibility(this.element,this.visible&&R)};g.O(xB,g.Z);xB.prototype.init=function(){this.updateValue("minvalue",this.Y);this.updateValue("maxvalue",this.D);this.updateValue("stepvalue",this.W);this.updateValue("slidervalue",this.Z);F3T(this,this.Z)}; xB.prototype.L=function(){Ip(this,Number(this.X.value));this.X.focus()}; xB.prototype.V=function(R){if(!R.defaultPrevented){switch(R.code){case "ArrowDown":R=-this.W;break;case "ArrowUp":R=this.W;break;default:return}Ip(this,Math.min(this.D,Math.max(Number((this.Z+R).toFixed(2)),this.Y)))}};g.O(Nf,xB);Nf.prototype.onVolumeChange=function(R){if(this.B)this.B=!1;else{var l=R.volume;l===0||R.muted?Ip(this,0):Ip(this,l)}}; Nf.prototype.L=function(){xB.prototype.L.call(this);this.LX(this.Z)}; Nf.prototype.Yb=function(R){var l=R.deltaX||R.deltaY;l=R.deltaMode?g.Sq(this.Z+l,0,100):g.Sq(this.Z+g.Sq(l/10,-10,10),0,100);l===0?Ip(this,0):Ip(this,l);this.LX(l);R.preventDefault()}; Nf.prototype.xb=function(R,l){this.B=!0;R===0||l?this.G.mute():(this.G.isMuted()&&this.G.unMute(),this.G.setVolume(R))};g.O(Q6s,g.Z);g.O(Uy,g.Z);g.L=Uy.prototype;g.L.j3=function(R){this.visible=R.width>=300||this.CX;this.UF(this.visible);this.G.logVisibility(this.element,this.visible&&this.J)}; g.L.RW=function(){this.G.U().P1?this.G.isMuted()?this.G.unMute():this.G.mute():M9(this.message,this.element,!0);this.G.logClick(this.element)}; g.L.R0U=function(R){if(this.G.U().P1&&this.Z)if(R.target===this.L){var l;if(!this.G.gt()||((l=this.Z)==null?0:l.isVisible))this.RW();else{var y;(y=this.Z)!=null&&p5(y,!0)}}else{var f;(f=this.Z)!=null&&p5(f,!0)}else this.RW()}; g.L.onVolumeChange=function(R){this.setVolume(R.volume,R.muted)}; g.L.setVolume=function(R,l){var y=this,f=l?0:R/100;R=f===0?1:R>50?1:0;if(this.B!==R){var A=this.W;isNaN(A)?TW7(this,R):UnZ(this.P1,function(G){TW7(y,A+(y.B-A)*G)},250); this.B=R}f=f===0?1:0;if(this.V!==f){var K=this.xb;isNaN(K)?dxo(this,f):UnZ(this.Dq,function(G){dxo(y,K+(y.V-K)*G)},250); this.V=f}eVJ(this,l)}; g.L.Nx=function(R){g.Z.prototype.Nx.call(this,R);this.G.logVisibility(this.element,this.visible&&R)}; var b7o=["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"],X7s=["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.O(g.SR,g.Z);g.L=g.SR.prototype;g.L.onStateChange=function(R){this.vl(R.state);var l;((l=this.G.U())==null?0:l.C("embeds_use_parent_visibility_in_ve_logging"))&&this.G.logVisibility(this.element,this.m$&&this.J)}; g.L.vl=function(R){var l=g.SU(this.G.getVideoData()),y=!1;R.isOrWillBePlaying()?R=l?4:2:g.V(R,2)?(R=3,y=l):R=1;this.element.disabled=y;if(this.Z!==R){l=null;switch(R){case 2:l=g.zv(this.G,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:l="Volver a reproducir";this.update({"data-title-no-tooltip":"Volver a reproducir"});break;case 1:l=g.zv(this.G,"Reproducir","k");this.update({"data-title-no-tooltip":"Reproducir"});break;case 4:l="Detener la reproducci\u00f3n en vivo",this.update({"data-title-no-tooltip":"Detener la reproducci\u00f3n en vivo"})}R=== 3?this.update({title:l,icon:r8k(this,R)}):(this.update({title:l}),(l=r8k(this,R))&&this.Z&&this.Z!==3?j9r(this.transition,this.element,l):this.updateValue("icon",l));this.tooltip.mW();this.Z=R}}; g.L.onVideoDataChange=function(){g.BJ(this.element,"ytp-play-button-playlist",g.pM(this.G))}; g.L.WC=function(R){this.G.logClick(this.element);if(this.G.getPlayerStateObject().isOrWillBePlaying())this.G.pauseVideo();else{if(this.G.isMinimized()&&this.G.getPlayerStateObject().isCued()){var l={},y;if((y=this.G.getVideoData())==null?0:y.D)l.cttAuthInfo={token:this.G.getVideoData().D,videoId:this.G.getVideoData().videoId};TB("direct_playback",l);this.G.X3().timerName="direct_playback"}this.G.playVideo()}this.G.isMinimized()&&(R==null?void 0:R.type)==="click"&&this.element.blur()}; g.L.Nx=function(R){g.Z.prototype.Nx.call(this,R);var l;((l=this.G.U())==null?0:l.C("embeds_use_parent_visibility_in_ve_logging"))&&this.G.logVisibility(this.element,this.m$&&R)};g.O(g.jR,g.Z);g.L=g.jR.prototype;g.L.onVideoDataChange=function(){w7q(this);this.Y&&(this.p_(this.Y),this.Y=null);this.videoData=this.G.getVideoData(1);if(this.playlist=this.G.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.Y=this.N(this.G,"progresssync",this.tB);this.L=xx9(this);zVo(this);this.VF(this.G.lQ().getPlayerSize())}; g.L.VF=function(R){R=R===void 0?this.G.lQ().getPlayerSize():R;var l,y=((l=this.G.getLoopRange())==null?void 0:l.type)==="clips";R=(g.pM(this.G)||this.Z&&g.DN(this.G)&&!this.G.C("web_hide_next_button")||IM7(this))&&!y&&(this.Z||R.width>=400);this.UF(R);this.G.logVisibility(this.element,R)}; g.L.onClick=function(R){this.G.logClick(this.element);var l=!0;this.V?l=g.cV(R,this.G):R.preventDefault();l&&(this.Z&&this.G.getPresentingPlayerType()===5?this.G.publish("ytoprerollinternstitialnext"):this.Z?(OF(this.G.X3()),this.G.publish("playlistnextbuttonclicked",this.element),this.G.nextVideo(!0)):this.L?this.G.seekTo(0):(OF(this.G.X3()),this.G.publish("playlistprevbuttonclicked",this.element),this.G.previousVideo(!0)))}; g.L.tB=function(){var R=xx9(this);R!==this.L&&(this.L=R,zVo(this))}; g.L.G4=function(){this.X&&(this.X(),this.X=null);w7q(this);g.Z.prototype.G4.call(this)};g.O(p77,g.Z);g.L=p77.prototype;g.L.EB=function(R){this.zj(R.pageX);this.jH(R.pageX+R.deltaX);Ux9(this)}; g.L.zj=function(R){this.LX=R-this.CX}; g.L.jH=function(R){R-=this.CX;!isNaN(this.LX)&&this.thumbnails.length>0&&(this.B=R-this.LX,this.thumbnails.length>0&&this.B!==0&&(this.L=this.W+this.B,R=Z7J(this,this.L),this.L<=this.Z/2&&this.L>=Dxs(this)?(this.api.seekTo(R,!1,void 0,void 0,25),g.Df(this.xb,"transform","translateX("+(this.L-this.Z/2)+"px)"),NWZ(this,R)):this.L=this.W))}; g.L.K5=function(){this.Yb&&(this.Yb.E3=!0);var R=(0,g.eY)()-this.jS<300;if(Math.abs(this.B)<5&&!R){this.jS=(0,g.eY)();R=this.LX+this.B;var l=this.Z/2-R;this.zj(R);this.jH(R+l);Ux9(this);this.api.logClick(this.D)}Ux9(this)}; g.L.cw=function(){kB(this,this.api.getCurrentTime())}; g.L.play=function(R){this.api.seekTo(Z7J(this,this.L),void 0,void 0,void 0,26);this.api.playVideo();R&&this.api.logClick(this.playButton)}; g.L.onExit=function(R){this.api.seekTo(this.v1,void 0,void 0,void 0,63);this.api.playVideo();R&&this.api.logClick(this.dismissButton)}; g.L.ub=function(R,l){this.CX=R;this.Z=l;kB(this,this.api.getCurrentTime())}; g.L.enable=function(){this.isEnabled||(this.isEnabled=!0,this.v1=this.api.getCurrentTime(),NWZ(this,this.v1),g.BJ(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.P1=this.N(this.element,"wheel",this.EB),this.logVisibility(this.isEnabled))}; g.L.disable=function(){this.isEnabled=!1;this.hide();g.BJ(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.P1&&this.p_(this.P1);this.logVisibility(this.isEnabled)}; g.L.reset=function(){this.disable();this.Y=[];this.sL=!1}; g.L.logVisibility=function(R){this.api.logVisibility(this.element,R);this.api.logVisibility(this.D,R);this.api.logVisibility(this.dismissButton,R);this.api.logVisibility(this.playButton,R)}; g.L.G4=function(){for(;this.X.length;){var R=void 0;(R=this.X.pop())==null||R.dispose()}g.Z.prototype.G4.call(this)}; g.O(Skk,g.Z);g.O(j6j,g.Z);g.O(J89,g.Z);g.O(DW,g.Z);DW.prototype.al=function(R){return R==="PLAY_PROGRESS"?this.W:R==="LOAD_PROGRESS"?this.V:R==="LIVE_BUFFER"?this.D:this.L};CYc.prototype.update=function(R,l,y,f){y=y===void 0?0:y;this.width=l;this.Y=y;this.Z=l-y-(f===void 0?0:f);this.position=g.Sq(R,y,y+this.Z);this.L=this.position-y;this.X=this.L/this.Z};g.O(qkq,g.Z);g.O(g.gv,g.BB);g.L=g.gv.prototype; g.L.On=function(){var R=!1,l=this.api.getVideoData();if(!l)return R;this.api.yb("timedMarkerCueRange");M$i(this);for(var y=g.u(l.W1),f=y.next();!f.done;f=y.next()){f=f.value;var A=void 0,K=(A=this.UL[f])==null?void 0:A.markerType;A=void 0;var G=(A=this.UL[f])==null?void 0:A.markers;if(!G)break;if(K==="MARKER_TYPE_TIMESTAMPS"){R=g.u(G);for(K=R.next();!K.done;K=R.next()){A=K.value;K=new qkq;G=void 0;K.title=((G=A.title)==null?void 0:G.simpleText)||"";K.timeRangeStartMillis=Number(A.startMillis);K.Z= Number(A.durationMillis);var B=G=void 0;K.onActiveCommand=(B=(G=A.onActive)==null?void 0:G.innertubeCommand)!=null?B:void 0;KMY(this,K)}G7J(this,this.V);R=this.V;K=this.FR;A=[];G=null;for(B=0;BH&&(G.end=H);H=eGj(H,H+m);A.push(H);G=H;K[H.id]=R[B].onActiveCommand}}this.api.OS(A);this.o9=this.UL[f];R=!0}else if(K==="MARKER_TYPE_HEATMAP"){f=this.UL[f];m=n=A=H=B=G=void 0;if(f&& f.markers){K=(A=(m=f.markersMetadata)==null?void 0:(n=m.heatmapMetadata)==null?void 0:n.minHeightDp)!=null?A:0;A=(G=(H=f.markersMetadata)==null?void 0:(B=H.heatmapMetadata)==null?void 0:B.maxHeightDp)!=null?G:60;G=this.Z.length;B=null;for(H=0;H=m&&W<=h&&n.push(E)}A>0&&(this.Yb.style.height= A+"px");m=this.Y[H];h=n;E=K;var Q=A,e=H===0;e=e===void 0?!1:e;gdk(m,Q);c=h;W=m.X;e=e===void 0?!1:e;var r=1E3/c.length,d=[];d.push({x:0,y:100});for(var z=0;z0&&(B=n[n.length-1])}g.VA(this)}A=void 0;K=[];if(f=(A=f.markersDecoration)==null?void 0:A.timedMarkerDecorations)for(f=g.u(f),A=f.next();!A.done;A=f.next())A=A.value,H=B=G=void 0,K.push({visibleTimeRangeStartMillis:(G=A.visibleTimeRangeStartMillis)!=null?G:-1,visibleTimeRangeEndMillis:(B=A.visibleTimeRangeEndMillis)!=null?B:-1,decorationTimeMillis:(H=A.decorationTimeMillis)!= null?H:NaN,label:A.label?g.mF(A.label):""});f=K;this.heatMarkersDecorations=f}}l.Iq=this.V;g.BJ(this.element,"ytp-timed-markers-enabled",R);return R}; g.L.ub=function(){g.VA(this);tj(this);G7J(this,this.V);if(this.X){var R=g.Yb(this.element).x||0;this.X.ub(R,this.D)}}; g.L.dsL=function(){var R=this.api.getVideoData();R&&WMi(this,R)}; g.L.onClickCommand=function(R){if(R=g.k(R,ht)){var l=R.key;R.isVisible&&l&&Hfj(this,l)}}; g.L.azE=function(R){this.api.KX("innertubeCommand",this.FR[R.id])}; g.L.J1=function(){tj(this);var R=this.api.getCurrentTime();(Rthis.clipEnd)&&this.Fa()}; g.L.uw=function(R){if(!R.defaultPrevented){var l=!1;switch(R.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);l=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);l=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);l=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);l=!0;break;case 38:this.api.C("enable_key_press_seek_logging")&&fQ(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);l=!0;break;case 40:this.api.C("enable_key_press_seek_logging")&&fQ(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),l=!0}l&&R.preventDefault()}}; g.L.f7=function(R,l){this.updateVideoData(l,R==="newdata")}; g.L.d5=function(){this.f7("newdata",this.api.getVideoData())}; g.L.updateVideoData=function(R,l){l=l===void 0?!1:l;var y=!!R&&R.Nl();y&&(sW(R)||crZ(this)?this.HA=!1:this.HA=R.allowLiveDvr,g.BJ(this.api.getRootNode(),"ytp-enable-live-buffer",!(R==null||!sW(R))),WMi(this,R));dak(this,this.api.EY());if(l){if(y){l=R.clipEnd;this.clipStart=R.clipStart;this.clipEnd=l;AX(this);for(R9(this,this.LX,this.ZL);this.Y.length>0;)this.Y.pop().dispose();this.heatMarkersDecorations=[];this.sF={};var f;(f=this.X)==null||f.reset();Bw(this);g.BJ(this.api.getRootNode(),"ytp-fine-scrubbing-exp", Jj(this))}else this.Fa();this.Gg()}if(R){var A;f=((A=this.bb)==null?void 0:A.type)==="clips";if(A=!R.isLivePlayback){A=this.api.getVideoData();l=g.ju(A);y=l29(A);var K;A=l!=null||y!=null&&y.length>0||((K=A.Ag)==null?void 0:K.length)>0}if(A&&!f){K=this.api.getVideoData();f=g.ju(K);A=!1;if(f==null?0:f.markersMap){A=this.api.getVideoData();var G;A.Fw=((G=f.visibleOnLoad)==null?void 0:G.key)||A.Fw;G=g.u(f.markersMap);for(f=G.next();!f.done;f=G.next())f=f.value,f.key&&f.value&&(this.sF[f.key]=f.value, f.value.onChapterRepeat&&(A.nu=f.value.onChapterRepeat));A.Fw!=null&&Hfj(this,A.Fw);A=!0}var B;if(((B=K.Ag)==null?void 0:B.length)>0){B=g.cZ.getState().entities;G=g.u(K.Ag);for(f=G.next();!f.done;f=G.next()){f=f.value;y=void 0;l=(y=MU(B,"macroMarkersListEntity",f))==null?void 0:y.markersList;var H=y=void 0;if(((y=l)==null?void 0:y.markerType)==="MARKER_TYPE_TIMESTAMPS"||((H=l)==null?void 0:H.markerType)==="MARKER_TYPE_HEATMAP")this.UL[f]=l}A=this.On()||A}!A&&(B=l29(K))&&(f29(this,B),K.zL=this.Z,yrZ(this)); LMY(this,null);R.Y2&&this.Y.length===0&&(R=R.Y2,B=R.key,R.isVisible&&B&&Hfj(this,B))}else t$T(this),M$i(this)}tj(this)}; g.L.WD=function(R){this.W&&!g.V(R.state,32)&&this.api.getPresentingPlayerType()!==3&&this.W.cancel();var l;((l=this.X)==null?0:l.isEnabled)&&g.V(R.state,8)&&this.api.pauseVideo();R=this.api.getPresentingPlayerType()===2||!this.api.EY()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.BJ(this.NW,"ytp-hide-scrubber-button",R)}; g.L.ou=function(R){var l=!!this.bb!==!!R,y=this.bb;this.bb=R;LMY(this,y);(R==null?void 0:R.type)!=="clips"&&R||(R?(this.updateValue("clipstarticon",FKr()),this.updateValue("clipendicon",FKr()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",cDY()),this.updateValue("clipendicon",hoT()),this.updateValue("clipstarttitle","Mirar video completo"),this.updateValue("clipendtitle","Mirar video completo")),l&&(this.updateVideoData(this.api.getVideoData(), !0),g.VA(this)),AX(this));R9(this,this.LX,this.ZL)}; g.L.b_E=function(){this.api.publish("progressBarHoverStart")}; g.L.DsL=function(R,l,y){var f=g.Yb(this.element),A=qf(this).Z,K=y?y.getAttribute("data-tooltip"):void 0,G=y?y.getAttribute("data-position"):void 0,B=y?y.getAttribute("data-offset-y"):void 0;B=B?Number(B):0;G&&(R=vR(this.L,Number(y.getAttribute("data-position")),0)*A+g.Yb(this.progressBar).x);this.iQ.x=R-f.x;this.iQ.y=l-f.y;R=qf(this);y=ye(this,R);l=0;var H;if((H=this.api.getVideoData())==null?0:sW(H))(H=this.api.getProgressState().seekableEnd)&&y>H&&(y=H,R.position=vR(this.L,H)*qf(this).Z),l=this.L.X; crZ(this)&&(l=this.L.X);H=K||g.ut(this.HA?y-this.L.Z:y-l);l=R.position+this.aJ;y-=this.api.fA();var n;if((n=this.X)==null||!n.isEnabled)if(this.api.Tg()){if(this.Z.length>1){n=le(this,this.iQ.x,!0);if(!this.bb)for(f=0;f1)for(f=0;f0)for(n=this.iQ.x,f=g.u(this.V),A=f.next();!A.done;A=f.next())A=A.value,G=C5(this,A.timeRangeStartMillis/ (this.L.Z*1E3),qf(this)),g.BJ(A.element,"ytp-timed-marker-hover",G<=n&&G+6>=n);f=this.tooltip.scale;n=this.api.C("delhi_modern_web_player")?67:45;B=(isNaN(B)?0:B)-n*f;this.api.C("web_key_moments_markers")?this.o9?(n=F6Z(this.V,y*1E3),n=n!=null?this.V[n].title:""):(n=n5(this.Z,y*1E3),n=this.Z[n].title):(n=n5(this.Z,y*1E3),n=this.Z[n].title);n||(B+=16*f);this.tooltip.scale===.6&&(g.Hm(this.api.U())?(B=this.api.lQ().getPlayerSize().height-225,f=this.api.C("delhi_modern_web_player")?70:110,B=n?B+f:B+ f+16):B=n?110:126);f=n5(this.Z,y*1E3);this.sL=Ofk(this,y,f)?f:Ofk(this,y,f+1)?f+1:-1;g.BJ(this.api.getRootNode(),"ytp-progress-bar-snap",this.sL!==-1&&this.Z.length>1);f=!1;A=g.u(this.heatMarkersDecorations);for(G=A.next();!G.done;G=A.next()){G=G.value;var m=y*1E3;m>=G.visibleTimeRangeStartMillis&&m<=G.visibleTimeRangeEndMillis&&(n=G.label,H=g.ut(G.decorationTimeMillis/1E3),f=!0)}this.J7!==f&&(this.J7=f,this.api.logVisibility(this.lj,this.J7));g.BJ(this.api.getRootNode(),"ytp-progress-bar-decoration", f);f=160*this.tooltip.scale*2;A=n.length*(this.B?8.55:5.7);A=A<=f?A:f;G=A<160*this.tooltip.scale;f=3;!G&&A/2>R.position&&(f=1);!G&&A/2>this.D-R.position&&(f=2);this.api.U().V&&(B-=10);this.Y.length&&this.Y[0].Nl&&(B-=14*(this.B?2:1),this.v1||(this.v1=!0,this.api.logVisibility(this.Yb,this.v1)));var h;if(Jj(this)&&(((h=this.X)==null?0:h.isEnabled)||this.W1>0)){var c;B-=((c=this.X)==null?0:c.isEnabled)?G1(this):this.W1}h=void 0;Jj(this)&&!this.api.C("web_player_hide_fine_scrubbing_edu")&&(h="Arrastra hacia arriba para realizar una b\u00fasqueda m\u00e1s precisa", this.CX||(this.CX=!0,this.api.logVisibility(this.US,this.CX)));this.tooltip.XH(l,y,H,!!K,B,n,f,h)}else this.tooltip.XH(l,y,H,!!K,B);g.AU(this.api.getRootNode(),"ytp-progress-bar-hover");h8Q(this)}; g.L.sV1=function(){this.Gg();g.G8(this.api.getRootNode(),"ytp-progress-bar-hover");this.v1&&(this.v1=!1,this.api.logVisibility(this.Yb,this.v1));this.CX&&(this.CX=!1,this.api.logVisibility(this.US,this.CX));this.api.C("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.L.y1x=function(R,l){var y=g.Yb(this.element);this.RV=R-y.x;Jj(this)&&this.X&&(this.X.sL?kB(this.X,this.api.getCurrentTime()):kiY(this.X),this.X.show(),g.BJ(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.X.isEnabled));this.CJ&&(this.CJ.dispose(),this.CJ=null);this.pw=l;this.Qq=this.api.getCurrentTime();this.Z.length>1&&this.sL!==-1?this.api.seekTo(this.Z[this.sL].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(ye(this,qf(this)),!1,void 0,void 0,7);g.AU(this.element,"ytp-drag");(this.BA= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.L.J11=function(){if(Jj(this)&&this.X){var R=G1(this);this.W1>=R*.5?(this.X.enable(),kB(this.X,this.api.getCurrentTime()),TYc(this,R)):Bw(this)}if(g.V(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var l;if((l=this.X)==null?0:l.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.Z.length>1&&this.sL!==-1)this.api.C("html5_enable_progress_bar_slide_seek_logging")&&fQ(this,this.Qq,this.Z[this.sL].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.Z[this.sL].startTime/1E3,void 0,void 0,void 0,7);else{R=ye(this,qf(this));this.api.C("html5_enable_progress_bar_slide_seek_logging")&&fQ(this,this.Qq,R,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(R,void 0,void 0,void 0,7);l=g.u(this.heatMarkersDecorations);for(var y=l.next();!y.done;y=l.next())y=y.value,R*1E3>=y.visibleTimeRangeStartMillis&&R*1E3<=y.visibleTimeRangeEndMillis&& this.api.logClick(this.lj)}g.G8(this.element,"ytp-drag");this.Dq&&(this.xb.src=this.Dq);this.BA&&!g.V(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.L.REU=function(R,l){var y=this,f=qf(this),A=ye(this,f);this.api.lQ().YH||(f.position>this.RV+2?this.tF&&(this.xb.src=this.tF):f.position1);this.UF(R&&this.G.lQ().getPlayerSize().width>=400);this.G.logVisibility(this.element,this.m$);var l=1;R&&this.isActive()&&(l=2);if(this.Z!==l){this.Z=l;R=this.G.C("delhi_modern_web_player_icons");switch(l){case 1:this.updateValue("icon",R?{T:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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"}}]}:{T:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{T:"path",wm:!0,K:{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", R?{T:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{T:"path",K:{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.mtj())}g.BJ(this.element,"ytp-remote-button-active",this.isActive())}}; Hw.prototype.X=function(){if(this.G.getOption("remote","quickCast"))this.G.setOption("remote","quickCast",!0);else{var R=this.Te,l=this.element;if(R.Qs())R.Rl();else{R.initialize();a:{var y=g.u(R.Bh.items);for(var f=y.next();!f.done;f=y.next())if(f=f.value,f.priority===1){y=f;break a}y=null}y&&(y.open(),R.jZ(l));R.jZ(l)}}this.G.logClick(this.element)};g.O(nQ,g.Z);nQ.prototype.Z=function(R){var l=this.G.U(),y=400;this.G.C("web_player_small_hbp_settings_menu")&&l.D?y=300:l.V&&(y=200);R=this.X&&R.width>=y;this.UF(R);this.G.C("embeds_use_parent_visibility_in_ve_logging")?this.G.logVisibility(this.element,R&&this.J):this.G.logVisibility(this.element,R)}; nQ.prototype.L=function(){if(this.Te.m$)this.Te.Rl();else{var R=g.TQ(this.G.Il());R&&!R.loaded&&(R.MD("tracklist",{includeAsr:!0}).length||R.load());this.G.logClick(this.element);this.Te.jZ(this.element)}}; nQ.prototype.updateBadge=function(){var R=this.G.isHdr(),l=this.G.getPresentingPlayerType(),y=l!==2&&l!==3,f=g.jF(this.G),A=y&&!!g.SF(this.G.Il());l=A&&f.displayMode===1;f=A&&f.displayMode===2;y=(A=l||f)||!y?null:this.G.getPlaybackQuality();g.BJ(this.element,"ytp-hdr-quality-badge",R);g.BJ(this.element,"ytp-hd-quality-badge",!R&&(y==="hd1080"||y==="hd1440"));g.BJ(this.element,"ytp-4k-quality-badge",!R&&y==="hd2160");g.BJ(this.element,"ytp-5k-quality-badge",!R&&y==="hd2880");g.BJ(this.element,"ytp-8k-quality-badge", !R&&y==="highres");g.BJ(this.element,"ytp-3d-badge-grey",!R&&A&&l);g.BJ(this.element,"ytp-3d-badge",!R&&A&&f)};g.O(mT,ox);mT.prototype.isLoaded=function(){var R=g.xw(this.G.Il());return R!==void 0&&R.loaded}; mT.prototype.oE=function(){g.xw(this.G.Il())!==void 0&&this.G.getPresentingPlayerType()!==3?this.Z||(this.Te.sj(this),this.Z=!0):this.Z&&(this.Te.VK(this),this.Z=!1);hs(this,this.isLoaded())}; mT.prototype.onSelect=function(R){this.isLoaded();R?this.G.loadModule("annotations_module"):this.G.unloadModule("annotations_module");this.G.publish("annotationvisibility",R)}; mT.prototype.G4=function(){this.Z&&this.Te.VK(this);ox.prototype.G4.call(this)};g.O(o9,g.N4);o9.prototype.oE=function(){var R=this.G.getAvailableAudioTracks();R.length>1?(this.Gc(g.L$(R,this.Z)),this.tracks=g.YU(R,this.Z,this),this.countLabel.Oj(R.length?" ("+R.length+")":""),this.publish("size-change"),this.BE(this.Z(this.G.getAudioTrack())),this.enable(!0)):this.enable(!1)}; o9.prototype.ZX=function(R){g.N4.prototype.ZX.call(this,R);this.G.setAudioTrack(this.tracks[R]);this.Te.qP()}; o9.prototype.Z=function(R){return R.toString()};g.O(hX,ox); hX.prototype.X=function(){var R=this.G.getPresentingPlayerType();if(R!==2&&R!==3&&g.DN(this.G))this.Z||(this.Te.sj(this),this.Z=!0,this.L.push(this.N(this.G,"videodatachange",this.X)),this.L.push(this.N(this.G,"videoplayerreset",this.X)),this.L.push(this.N(this.G,"onPlaylistUpdate",this.X)),this.L.push(this.N(this.G,"autonavchange",this.Y)),R=this.G.getVideoData(),this.Y(R.autonavState),this.G.logVisibility(this.element,this.Z));else if(this.Z){this.Te.VK(this);this.Z=!1;R=g.u(this.L);for(var l=R.next();!l.done;l= R.next())this.p_(l.value)}}; hX.prototype.Y=function(R){hs(this,R!==1)}; hX.prototype.onSelect=function(R){this.G.n3(R?2:1);this.Z&&(this.G.logVisibility(this.element,this.Z),this.G.logClick(this.element))}; hX.prototype.G4=function(){this.Z&&this.Te.VK(this);ox.prototype.G4.call(this)};g.O(v3c,g.yu);v3c.prototype.onClick=function(R){R.preventDefault();var l,y;(l=g.Qs(this.G))==null||(y=l.Ju())==null||y.Rl();var f,A;(f=g.Qs(this.G))==null||(A=f.SA())==null||A.jZ(R.target)};g.O(z87,g.N4);g.L=z87.prototype; g.L.fD=function(){var R=this.G.getPresentingPlayerType();if(R!==2&&R!==3){this.xb=this.G.V3();var l=this.G.getAvailableQualityLevels();if(this.Z){this.Y={};R=g.OW(this.G,"getAvailableQualityData",[]);R=g.u(R);for(var y=R.next();!y.done;y=R.next())y=y.value,this.Y[y.qualityLabel]=y;R=Object.keys(this.Y);l[l.length-1]==="auto"&&R.push("auto");this.Dq=new Set(l)}else if(this.D){y=g.OW(this.G,"getAvailableQualityData",[]);R=[];y=g.u(y);for(var f=y.next();!f.done;f=y.next())f=f.value,this.B[f.quality]= f,f.quality&&R.push(f.quality);l[l.length-1]==="auto"&&R.push("auto")}else R=l;g.nnK(this.G)&&this.G.nV()&&R.unshift("missing-qualities");l=this.G.app.hU();y=l.getVideoData();if(!y.X||!y.X.video||y.X.video.qualityOrdinal<1080||y.bI)l=!1;else{f=/^qsa/.test(y.clientPlaybackNonce);var A="r";y.X.id.indexOf(";")>=0&&(f=/^[a-p]/.test(y.clientPlaybackNonce),A="x");f?(l.T4("iqss",{trigger:A},!0),l=!0):l=!1}l&&R.unshift("inline-survey");this.Gc(R);l=this.G.getVideoData().cotn?!0:!1;y=this.Yb.DX();y=!g.Hm(this.G.U())|| !(l===void 0?0:l)||!(y===void 0||y);l=this.X;y=y===void 0?!1:y;l.KT&&g.BJ(l.pX("ytp-panel-footer"),"ytp-panel-hide-footer",y===void 0?!1:y);if(R.length){this.zV();this.enable(!0);return}}this.enable(!1)}; g.L.zV=function(){if(this.Z){var R=this.G.getPreferredQuality();this.Dq.has(R)&&(this.V=this.G.getPlaybackQuality(),this.LX=this.G.getPlaybackQualityLabel(),R==="auto"?(this.BE(R),this.Oj(this.IU(R))):this.BE(this.LX))}else R=this.G.getPreferredQuality(),this.options[R]&&(this.V=this.G.getPlaybackQuality(),this.BE(R),R==="auto"&&this.Oj(this.IU(R)))}; g.L.ZX=function(R){if(R!=="missing-qualities"){g.N4.prototype.ZX.call(this,R);var l=this.Z?this.Y[R]:this.B[R];var y=l==null?void 0:l.quality,f=l==null?void 0:l.formatId,A=l==null?void 0:l.paygatedQualityDetails;l=A==null?void 0:A.endpoint;if(A){var K;A=(K=this.options[R])==null?void 0:K.element;this.G.logClick(A)}if(this.Z){var G,B;if((G=g.k(l,g.OGA))==null?0:(B=G.popup)==null?0:B.notificationActionRenderer)this.G.KX("innertubeCommand",l);else if(l){this.G.KX("innertubeCommand",l);return}f?this.G.setPlaybackQuality(y, f):this.G.setPlaybackQuality(y)}else{if(this.D){var H,n;if((H=g.k(l,g.OGA))==null?0:(n=H.popup)==null?0:n.notificationActionRenderer)this.G.KX("innertubeCommand",l);else if(l){this.G.KX("innertubeCommand",l);return}}this.G.setPlaybackQuality(R)}this.Te.Rl();this.fD()}}; g.L.open=function(){for(var R=g.u(Object.values(this.options)),l=R.next();!l.done;l=R.next()){l=l.value;var y=void 0;this.G.hasVe((y=l)==null?void 0:y.element)&&(y=void 0,this.G.logVisibility((y=l)==null?void 0:y.element,!0))}g.N4.prototype.open.call(this);this.G.logClick(this.element)}; g.L.ER=function(R,l,y){var f=this;if(R==="missing-qualities")return new g.yu({T:"a",QL:["ytp-menuitem"],K:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.G.U().B,tabindex:"0",role:"menuitemradio"},S:[{T:"div",QL:["ytp-menuitem-label"],IE:"{{label}}"}]},l,this.IU(R));if(R!=="inline-survey"){var A,K=(A=this.Z?this.Y[R]:this.B[R])==null?void 0:A.paygatedQualityDetails;A=K==null?void 0:K.veType;K=K==null?void 0:K.trackingParams;l=g.N4.prototype.ER.call(this,R,l,y);K?(this.G.createServerVe(l.element, this,!0),this.G.setTrackingParams(l.element,K)):A&&this.G.createClientVe(l.element,this,A,!0);return l}R=[{T:"span",IE:"\u00bfSe ve bien?"}];y=g.u([!0,!1]);K=y.next();for(A={};!K.done;A={WL:void 0},K=y.next())A.WL=K.value,K=new g.Z({T:"span",j:"ytp-menuitem-inline-survey-response",S:[A.WL?ur9():WKY()],K:{tabindex:"0",role:"button"}}),K.listen("click",function(G){return function(){var B=f.G.app.hU();B.T4("iqsr",{tu:G.WL});B.getVideoData().bI=!0;f.Te.Rl();f.fD()}}(A)),R.push(K); return new g.yu({T:"div",j:"ytp-menuitem",K:{"aria-disabled":"true"},S:[{T:"div",QL:["ytp-menuitem-label"],S:R}]},l)}; g.L.IU=function(R,l){l=l===void 0?!1:l;if(R==="missing-qualities")return{T:"div",IE:"\u00bfFaltan opciones?"};if(R==="inline-survey")return"";var y=this.D||this.Z?[I2i(this,R,l,!1)]:[xac(this,R)];var f=this.G.getPreferredQuality();l||f!=="auto"||R!=="auto"||(y.push(" "),this.Z?y.push(I2i(this,this.LX,l,!0,["ytp-menu-label-secondary"])):this.D?y.push(I2i(this,this.V,l,!0,["ytp-menu-label-secondary"])):y.push(xac(this,this.V,["ytp-menu-label-secondary"])));return{T:"div",S:y}};g.O(cw,xB);cw.prototype.L=function(){xB.prototype.L.call(this);this.B&&NY7(this)}; cw.prototype.xb=function(){this.LX()}; cw.prototype.Yb=function(){this.G.setPlaybackRate(this.Z,!0)}; cw.prototype.V=function(R){xB.prototype.V.call(this,R);this.LX();NY7(this);R.preventDefault()};g.O(E8,g.Z);g.L=E8.prototype;g.L.init=function(){this.rS(this.Z);this.updateValue("minvalue",this.X);this.updateValue("maxvalue",this.L)}; g.L.Hw=function(R){if(!R.defaultPrevented){switch(R.keyCode){case 37:case 40:var l=-this.W;break;case 39:case 38:l=this.W;break;default:return}this.rS(this.Z+l);R.preventDefault()}}; g.L.SG=function(R){var l=this.Z;l+=(R.deltaX||-R.deltaY)<0?-this.B:this.B;this.rS(l);R.preventDefault()}; g.L.lw=function(R){R=(R-g.Yb(this.Y).x)/this.LX*this.range+this.X;this.rS(R)}; g.L.rS=function(R,l){l=l===void 0?"":l;R=g.Sq(R,this.X,this.L);l===""&&(l=R.toString());this.updateValue("valuenow",R);this.updateValue("valuetext",l);this.Yb.style.left=(R-this.X)/this.range*(this.LX-this.sL)+"px";this.Z=R}; g.L.focus=function(){this.P1.focus()};g.O(Ww,E8);Ww.prototype.xb=function(){this.G.setPlaybackRate(this.Z,!0)}; Ww.prototype.rS=function(R){E8.prototype.rS.call(this,R,UaZ(this,R).toString());this.D&&(pcq(this),this.Dq())}; Ww.prototype.updateValues=function(){var R=this.G.getPlaybackRate();UaZ(this,this.Z)!==R&&(this.rS(R),pcq(this))};g.O(Sck,g.BB);Sck.prototype.focus=function(){this.Z.focus()};g.O(jHc,eB);g.O(k7q,g.N4);g.L=k7q.prototype;g.L.IU=function(R){return R==="1"?"Normal":R.toLocaleString()}; g.L.oE=function(){var R,l=(R=this.G.getVideoData())==null?void 0:R.h1();R=this.G.getPresentingPlayerType(l);this.enable(R!==2&&R!==3);JrY(this)}; g.L.Gc=function(R){g.N4.prototype.Gc.call(this,R);this.V&&this.V.X.focus()}; g.L.zW=function(R){g.N4.prototype.zW.call(this,R);R?(this.LX=this.N(this.G,"onPlaybackRateChange",this.onPlaybackRateChange),JrY(this),Daq(this,this.G.getPlaybackRate())):(this.p_(this.LX),this.LX=null)}; g.L.onPlaybackRateChange=function(R){var l=this.G.getPlaybackRate();!this.Y&&this.B.includes(l)||ZfY(this,l);Daq(this,R)}; g.L.ER=function(R,l,y){return R===this.Z&&g3J(this.G)?g.N4.prototype.ER.call(this,R,l,y,{T:"div",j:"ytp-speed-slider-menu-footer",S:[this.V]}):g.N4.prototype.ER.call(this,R,l,y)}; g.L.ZX=function(R){g.N4.prototype.ZX.call(this,R);R===this.Z?this.G.setPlaybackRate(this.D,!0):this.G.setPlaybackRate(Number(R),!0);g3J(this.G)&&R===this.Z||this.Te.qP()}; g.L.FY=function(R){var l=R===this.Z;this.Y=!1;l&&LQ(this.G)&&!g3J(this.G)?(R=new jHc(this.G),g.df(this.Te,R)):g.N4.prototype.FY.call(this,R)};g.O(C9j,g.N4);g.L=C9j.prototype;g.L.BE=function(R){g.N4.prototype.BE.call(this,R)}; g.L.Nz=function(R){return R.option.toString()}; g.L.getOption=function(R){return this.settings[R]}; g.L.IU=function(R){return this.getOption(R).text||""}; g.L.ZX=function(R){g.N4.prototype.ZX.call(this,R);this.publish("settingChange",this.setting,this.settings[R].option)};g.O(ie,g.b$);ie.prototype.ea=function(R){for(var l=g.u(Object.keys(R)),y=l.next();!y.done;y=l.next()){var f=y.value;if(y=this.pE[f]){var A=R[f].toString();f=!!R[f+"Override"];y.options[A]&&(y.BE(A),y.Y.element.setAttribute("aria-checked",String(!f)),y.Z.element.setAttribute("aria-checked",String(f)))}}}; ie.prototype.oe=function(R,l){this.publish("settingChange",R,l)};g.O(Pw,g.N4);Pw.prototype.Z=function(R){return R.languageCode}; Pw.prototype.IU=function(R){return this.languages[R].languageName||""}; Pw.prototype.ZX=function(R){this.publish("select",R);this.G.logClick(this.element);g.rf(this.Te)};g.O(YcK,g.N4);g.L=YcK.prototype;g.L.VA=function(R){return g.oL(R)?"__off__":R.displayName}; g.L.IU=function(R){return R==="__off__"?"Desactivados":R==="__translate__"?"Traducci\u00f3n autom\u00e1tica":R==="__contribute__"?"Agregar subt\u00edtulos":R==="__correction__"?"Sugerir correcci\u00f3n de subt\u00edtulos":(R==="__off__"?{}:this.tracks[R]).displayName}; g.L.ZX=function(R){if(R==="__translate__")this.Z.open();else if(R==="__contribute__"){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();var l=g.yz(this.G.U(),this.G.getVideoData());g.ki(l)}else if(R==="__correction__"){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();var y=MoQ(this);ue(this,y);g.N4.prototype.ZX.call(this,this.VA(y));var f,A;y=(l=this.G.getVideoData().getPlayerResponse())==null?void 0:(f=l.captions)==null?void 0:(A=f.playerCaptionsTracklistRenderer)== null?void 0:A.openTranscriptCommand;this.G.KX("innertubeCommand",y);this.Te.qP();this.Y&&this.G.logClick(this.Y)}else{if(R==="__correction__"){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();l=MoQ(this);ue(this,l);g.N4.prototype.ZX.call(this,this.VA(l));var K,G;l=(y=this.G.getVideoData().getPlayerResponse())==null?void 0:(K=y.captions)==null?void 0:(G=K.playerCaptionsTracklistRenderer)==null?void 0:G.openTranscriptCommand;this.G.KX("innertubeCommand",l)}else this.G.logClick(this.element), ue(this,R==="__off__"?{}:this.tracks[R]),g.N4.prototype.ZX.call(this,R);this.Te.qP()}}; g.L.oE=function(){var R=this.G.getOptions();R=R&&R.indexOf("captions")!==-1;var l=this.G.getVideoData(),y=l&&l.xO,f,A=!((f=this.G.getVideoData())==null||!g.KM(f));f={};if(R||y){var K;if(R){var G=this.G.getOption("captions","track");f=this.G.getOption("captions","tracklist",{includeAsr:!0});var B=A?[]:this.G.getOption("captions","translationLanguages");this.tracks=g.YU(f,this.VA,this);A=g.L$(f,this.VA);var H,n;MoQ(this)&&((K=l.getPlayerResponse())==null?0:(H=K.captions)==null?0:(n=H.playerCaptionsTracklistRenderer)== null?0:n.openTranscriptCommand)&&A.push("__correction__");if(B.length&&!g.oL(G)){if((K=G.translationLanguage)&&K.languageName){var m=K.languageName;K=B.findIndex(function(h){return h.languageName===m}); Tqi(B,K)}qcJ(this.Z,B);A.push("__translate__")}K=this.VA(G)}else this.tracks={},A=[],K="__off__";A.unshift("__off__");this.tracks.__off__={};y&&A.unshift("__contribute__");this.tracks[K]||(this.tracks[K]=G,A.push(K));this.Gc(A);this.BE(K);G&&G.translationLanguage?this.Z.BE(this.Z.Z(G.translationLanguage)):PeQ(this.Z);R&&this.D.ea(this.G.getSubtitlesUserSettings());this.countLabel.Oj(f&&f.length?" ("+f.length+")":"");this.publish("size-change");this.G.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.L.Bw=function(R){var l=this.G.getOption("captions","track");l=g.Eh(l);l.translationLanguage=this.Z.languages[R];ue(this,l)}; g.L.oe=function(R,l){if(R==="reset")this.G.resetSubtitlesUserSettings();else{var y={};y[R]=l;this.G.updateSubtitlesUserSettings(y)}toi(this,!0);this.V.start();this.D.ea(this.G.getSubtitlesUserSettings())}; g.L.r17=function(R){R||g.tI(this.V)}; g.L.G4=function(){g.tI(this.V);g.N4.prototype.G4.call(this)}; g.L.open=function(){g.N4.prototype.open.call(this);this.options.__correction__&&!this.Y&&(this.Y=this.options.__correction__.element,this.G.createClientVe(this.Y,this,167341),this.G.logVisibility(this.Y,!0))};g.O(ROK,g.TH);g.L=ROK.prototype; g.L.initialize=function(){if(!this.isInitialized){var R=this.G.U();this.isInitialized=!0;try{this.iX=new z87(this.G,this)}catch(y){g.dP(Error("QualityMenuItem creation failed"))}g.U(this,this.iX);var l=new YcK(this.G,this);g.U(this,l);R.L||(l=new mT(this.G,this),g.U(this,l));R.enableSpeedOptions&&(l=new k7q(this.G,this),g.U(this,l));(g.kh(R)||R.D)&&(R.X||R.UL)&&(l=new v3c(this.G,this),g.U(this,l));R.US&&!R.C("web_player_move_autonav_toggle")&&(R=new hX(this.G,this),g.U(this,R));R=new o9(this.G,this); g.U(this,R);this.G.publish("settingsMenuInitialized");rri(this.settingsButton,this.Bh.cR())}}; g.L.sj=function(R){this.initialize();this.Bh.sj(R);rri(this.settingsButton,this.Bh.cR())}; g.L.VK=function(R){this.m$&&this.Bh.cR()<=1&&this.hide();this.Bh.VK(R);rri(this.settingsButton,this.Bh.cR())}; g.L.jZ=function(R){this.initialize();this.Bh.cR()>0&&g.TH.prototype.jZ.call(this,R)}; g.L.Rl=function(){this.H3?this.H3=!1:g.TH.prototype.Rl.call(this)}; g.L.show=function(){g.TH.prototype.show.call(this);g.AU(this.G.getRootNode(),"ytp-settings-shown")}; g.L.hide=function(){g.TH.prototype.hide.call(this);g.G8(this.G.getRootNode(),"ytp-settings-shown")}; g.L.cA=function(R){this.G.logVisibility(this.element,R);this.G.publish("settingsMenuVisibilityChanged",R)};g.O(fO7,g.Z);g.L=fO7.prototype;g.L.onClick=function(){if(Fi(this)&&(this.G.toggleSubtitles(),this.G.logClick(this.element),!this.isEnabled())){var R=!1,l=g.SI(g.UG(),65);g.Hm(this.G.U())&&l!=null&&(R=!l);R&&this.G.U().C("web_player_nitrate_promo_tooltip")&&this.G.publish("showpromotooltip",this.element)}}; g.L.phX=function(R){var l,y;(l=g.Qs(this.G))==null||(y=l.Ju())==null||y.jZ(R)}; g.L.isEnabled=function(){var R=this.G.getOption("captions","track");return!(!R||!R.displayName)}; g.L.oE=function(){var R=Fi(this),l=300;this.G.U().V&&(l=480);this.G.C("delhi_modern_web_player_icons")&&this.updateValue("icon",y3q(this));if(this.G.U().D){this.updateValue("title",g.zv(this.G,"Subt\u00edtulos","c"));this.update({"data-title-no-tooltip":"Subt\u00edtulos"});var y=R}else{if(R)(y=this.pX("ytp-subtitles-button-icon"))==null||y.setAttribute("fill-opacity","1"),this.updateValue("title",g.zv(this.G,"Subt\u00edtulos","c")),this.update({"data-title-no-tooltip":"Subt\u00edtulos"});else{if(this.G.C("delhi_modern_web_player_icons")){var f; (f=this.pX("ytp-subtitles-button-icon"))==null||f.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var A;(A=this.pX("ytp-subtitles-button-icon"))==null||A.setAttribute("fill-opacity","0.3")}this.updateValue("title","Subt\u00edtulos no disponibles");this.update({"data-title-no-tooltip":"Subt\u00edtulos no disponibles"})}y=!0}this.tooltip.mW();y=y&&this.G.lQ().getPlayerSize().width>=l;this.UF(y);this.G.C("embeds_use_parent_visibility_in_ve_logging")?this.G.logVisibility(this.element, y&&this.J):this.G.logVisibility(this.element,y);R?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.L.Nx=function(R){g.Z.prototype.Nx.call(this,R);this.G.U().C("embeds_use_parent_visibility_in_ve_logging")&&this.G.logVisibility(this.element,this.m$&&R)};g.O(g.Qe,g.Z);g.L=g.Qe.prototype; g.L.J1=function(){var R=this.api.lQ().getPlayerSize().width,l=this.B;this.api.U().V&&(l=400);l=R>=l&&(!$0(this)||!g.V(this.api.getPlayerStateObject(),64));this.UF(l);g.BJ(this.element,"ytp-time-display-allow-autohide",l&&R<400);R=this.api.getProgressState();if(l){var y=this.api.getPresentingPlayerType();l=this.api.getCurrentTime(y,!1);this.X&&(l-=R.airingStart);eO(this)&&(l-=this.bb.startTimeMs/1E3);eO(this)||$0(this)||!this.L||(l-=this.api.getDuration(y,!1));var f=g.ut(l);this.Y!==f&&(this.updateValue("currenttime", f),this.Y=f);y=eO(this)?(this.bb.endTimeMs-this.bb.startTimeMs)/1E3:this.api.getDuration(y,!1);f=g.ut(y);this.D!==f&&(this.updateValue("duration",f),this.D=f,l&&(l=g.KV("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.ut(l,!0),DURATION:g.ut(y,!0)}),this.updateValue("timeDisplayAriaLabel",l)))}A39(this,R.isAtLiveHead);Kqq(this,this.api.getLoopRange())}; g.L.onLoopRangeChange=function(R){var l=this.bb!==R;this.bb=R;l&&(this.J1(),Gho(this))}; g.L.Qzq=function(){this.api.setLoopRange(null)}; g.L.HXb=function(){this.L=!this.L;this.J1()}; g.L.onVideoDataChange=function(R,l,y){this.updateVideoData((this.api.U().C("enable_topsoil_wta_for_halftime")||this.api.U().C("enable_topsoil_wta_for_halftime_live_infra"))&&y===2?this.api.getVideoData(1):l);this.J1();Gho(this)}; g.L.updateVideoData=function(R){this.Ed=R.isLivePlayback&&!R.B1;this.X=sW(R);this.isPremiere=R.isPremiere;g.BJ(this.element,"ytp-live",$0(this))}; g.L.onClick=function(R){R.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.L.G4=function(){this.Z&&this.Z();g.Z.prototype.G4.call(this)};g.O(sOQ,g.Z);g.L=sOQ.prototype;g.L.CR=function(){var R=this.api.x0();this.L!==R&&(this.L=R,aOK(this,this.api.getVolume(),this.api.isMuted()))}; g.L.Ar=function(R){this.UF(R.width>=350)}; g.L.mX=function(R){if(!R.defaultPrevented){var l=R.keyCode,y=null;l===37?y=this.volume-5:l===39?y=this.volume+5:l===36?y=0:l===35&&(y=100);y!==null&&(y=g.Sq(y,0,100),y===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(y)),R.preventDefault())}}; g.L.Mg=function(R){var l=R.deltaX||-R.deltaY;R.deltaMode?this.api.setVolume(this.volume+(l<0?-10:10)):this.api.setVolume(this.volume+g.Sq(l/10,-10,10));R.preventDefault()}; g.L.qjx=function(){be(this,this.Z,!0,this.X,this.api.gt());this.B=this.volume;this.api.isMuted()&&this.api.unMute()}; g.L.rj=function(R){var l=this.L?78:52,y=this.L?18:12;R-=g.Yb(this.W).x;this.api.setVolume(g.Sq((R-y/2)/(l-y),0,1)*100)}; g.L.wl9=function(){be(this,this.Z,!1,this.X,this.api.gt());this.volume===0&&(this.api.mute(),this.api.setVolume(this.B))}; g.L.onVolumeChange=function(R){aOK(this,R.volume,R.muted)}; g.L.lF=function(){be(this,this.Z,this.isDragging,this.X,this.api.gt())}; g.L.G4=function(){g.Z.prototype.G4.call(this);g.G8(this.V,"ytp-volume-slider-active")};g.O(Xi,g.Z); Xi.prototype.onVideoDataChange=function(){var R=this.api.U();this.ub();this.visible=!!this.api.getVideoData().videoId&&!g.Bd(this.api.getVideoData(1));this.UF(this.visible);this.api.logVisibility(this.element,this.visible&&this.J);if(this.visible){var l=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",l)}R.L&&(this.Z&&(this.p_(this.Z),this.Z=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.AU(this.element,"no-link")); l=this.api.U();R=this.api.getVideoData();var y="";l.L||(l=g.KU(l),l.indexOf("www.")===0&&(l=l.substring(4)),y=g.Hd(R)?"Mirar en YouTube Music":l==="youtube.com"?"Mirar en YouTube":g.KV("Mirar en $WEBSITE",{WEBSITE:l}));this.updateValue("title",y)}; Xi.prototype.onClick=function(R){this.api.C("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var l=this.api.U(),y=this.api.getVideoUrl(!g.Fs(R),!1,!0,!0);if(g.kh(l)){var f={};g.kh(l)&&g.OW(this.api,"addEmbedsConversionTrackingParams",[f]);y=g.L4(y,f)}g.Eo(y,this.api,R);this.api.C("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; Xi.prototype.ub=function(){var R={T:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},S:[{T:"path",wm:!0,j:"ytp-svg-fill",K:{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 "}}]}, l=28666,y=this.api.getVideoData();this.api.isEmbedsShortsMode()?R={T:"svg",K:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},S:[{T:"path",K:{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.Hd(y)&&(R={T:"svg",K:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},S:[{T:"path",K:{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"}},{T:"path",K:{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"}},{T:"path",K:{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"}},{T:"path",K:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{T:"path",K:{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"}},{T:"path",K:{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"}},{T:"path",K:{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"}},{T:"path",K:{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"}},{T:"path",K:{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"}},{T:"path",K:{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"}},{T:"path",K:{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"}},{T:"path",K:{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"}}]},l=216163);g.Hd(y)?g.AU(this.element,"ytp-youtube-music-button"):g.G8(this.element,"ytp-youtube-music-button");R.K=Object.assign({},R.K,{"aria-hidden":"true"});this.updateValue("logoSvg",R);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,l,!0)}; Xi.prototype.Nx=function(R){g.Z.prototype.Nx.call(this,R);this.api.logVisibility(this.element,this.visible&&R)};g.O(njK,g.QW);g.L=njK.prototype;g.L.Pf=function(){if(this.G.C("web_player_max_seekable_on_ended")||!g.V(this.G.getPlayerStateObject(),2))this.progressBar.J1(),this.P1.J1()}; g.L.Vd=function(){this.Ub();this.sY.X?this.Pf():this.progressBar.Gg()}; g.L.wj=function(){this.Pf();this.B.start()}; g.L.Ub=function(){var R;if(R=!this.G.U().X){R=this.progressBar;var l=2*g.Bm()*R.D,y=R.L;R=(y.Z-y.X)*1E3/R.api.getPlaybackRate()/l<300}R=R&&this.G.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;l=!R;this.sY.X||(R=l=!1);l?this.xb||(this.xb=this.N(this.G,"progresssync",this.Pf)):this.xb&&(this.p_(this.xb),this.xb=null);R?this.B.isActive()||this.B.start():this.B.stop()}; g.L.ub=function(){var R=this.G.x0(),l=this.G.lQ().getPlayerSize(),y=this.G.lQ().YH,f=ojY(this),A=hOk(this),K=Math.max(l.width-f*2,100);if(this.ZL!==l.width||this.iQ!==R||this.G.C("web_player_rtr_ctrls")&&this.X8!==y)this.ZL=l.width,this.iQ=R,this.X8=y,this.X.element.style.width=A+"px",this.X.element.style.left=f+"px",g.bfj(this.progressBar,f,A,R),this.G.oz().dY=A;y=this.Y;K=Math.min(570*(R?1.5:1),K);R=Math.min(413*(R?1.5:1),Math.round((l.height-c3Z(this))*.82));y.maxWidth=K;y.maxHeight=R;y.UV();this.Ub(); this.G.U().C("html5_player_dynamic_bottom_gradient")&&hVr(this.B1,l.height)}; g.L.onVideoDataChange=function(){var R=this.G.getVideoData();this.UL.style.background=R.nJ?R.UI:"";this.Yb&&PYJ(this.Yb,R.showSeekingControls);this.LX&&PYJ(this.LX,R.showSeekingControls)}; g.L.al=function(){return this.X.element};g.O(Eji,$t);g.L=Eji.prototype;g.L.jc=function(R){R.target!==this.dismissButton.element&&(this.onClickCommand&&this.G.KX("innertubeCommand",this.onClickCommand),this.Qe())}; g.L.Qe=function(){this.enabled=!1;this.B.hide()}; g.L.onVideoDataChange=function(R,l){R==="dataloaded"&&Wqj(this);R=[];var y,f,A,K;if(l=(K=g.k((y=l.getWatchNextResponse())==null?void 0:(f=y.playerOverlays)==null?void 0:(A=f.playerOverlayRenderer)==null?void 0:A.suggestedActionsRenderer,VqD))==null?void 0:K.suggestedActions)for(y=g.u(l),f=y.next();!f.done;f=y.next())(f=g.k(f.value,CHS))&&g.k(f.trigger,gJU)&&R.push(f);if(R.length!==0){y=[];R=g.u(R);for(f=R.next();!f.done;f=R.next())if(f=f.value,A=g.k(f.trigger,gJU))K=(K=f.title)?g.mF(K):"View Chapters", l=A.timeRangeStartMillis,A=A.timeRangeEndMillis,l!=null&&A!=null&&f.tapCommand&&(y.push(new g.Jq(l,A,{priority:9,namespace:"suggested_action_button_visible",id:K})),this.suggestedActions[K]=f.tapCommand);this.G.OS(y)}}; g.L.lM=function(){return this.enabled}; g.L.cA=function(){this.enabled?this.v1.start():FH(this);this.B6()}; g.L.G4=function(){Wqj(this);$t.prototype.G4.call(this)};var bY={},rc=(bY.CHANNEL_NAME="ytp-title-channel-name",bY.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",bY.LINK="ytp-title-link",bY.SESSIONLINK="yt-uix-sessionlink",bY.SUBTEXT="ytp-title-subtext",bY.TEXT="ytp-title-text",bY.TITLE="ytp-title",bY);g.O(vw,g.Z);vw.prototype.onClick=function(R){this.api.logClick(this.element);var l=this.api.U(),y=this.api.getVideoUrl(!g.Fs(R),!1,!0);g.kh(l)&&(l={},g.OW(this.api,"addEmbedsConversionTrackingParams",[l]),y=g.L4(y,l));g.Eo(y,this.api,R)}; vw.prototype.oE=function(){var R=this.api.getVideoData(),l=this.api.U();this.updateValue("title",R.title);var y={T:"a",j:rc.CHANNEL_NAME,K:{href:"{{channelLink}}",target:"_blank"},IE:"{{channelName}}"};this.api.U().L&&(y={T:"span",j:rc.CHANNEL_NAME,IE:"{{channelName}}",K:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",y);Lqr(this);this.api.getPresentingPlayerType()===2&&(y=this.api.getVideoData(),y.videoId&&y.isListed&&y.author&&y.iQ&&y.profilePicture?(this.updateValue("channelLink", y.iQ),this.updateValue("channelName",y.author),this.updateValue("channelTitleFocusable","0")):Lqr(this));y=l.externalFullscreen||!this.api.isFullscreen()&&l.kz;g.BJ(this.link,rc.FULLERSCREEN_LINK,y);l.Yb||!R.videoId||y||g.Bd(R)||l.L?this.Z&&(this.updateValue("url",null),this.p_(this.Z),this.Z=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.Z||(this.Z=this.N(this.link,"click",this.onClick)));l.L&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.kh(l)?R.expandedTitle: R.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.O(g.z1,g.Z);g.L=g.z1.prototype;g.L.setEnabled=function(R){if(this.type!=null)if(R)switch(this.type){case 3:case 2:PC7(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.V=R}; g.L.XH=function(R,l,y,f,A,K,G,B){if(!this.Dq||this.env.V){this.type===3&&this.Gg();this.type!==1&&(g.yD(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.V&&this.fade.show(),this.X&&this.X.dispose(),(this.X=this.api.Tg())&&this.X.subscribe("l",this.Ac,this));if(B){var H=g.l4(this.bg).height||141;this.sL.style.bottom=H+2+"px"}else this.sL.style.display="none";this.env.C("delhi_modern_web_player")?(this.update({pillTimeStamp:y,pillTitle:K!=null?K:"",eduText:B!=null?B:""}),g.AU(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:y,title:K!=null?K:"",eduText:B!=null?B:""}),g.BJ(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!K));this.api.isInline()&&g.AU(this.bottomText,"ytp-modern-tooltip-text");g.BJ(this.element,"ytp-text-detail",!!f);y=-1;this.X&&(y=tn(this.X,243*this.scale),this.env.C("web_l3_storyboard")&&this.X.levels.length===4&&(y=this.X.levels.length-1),y=IRK(this.X,y,l));FqQ(this,y);if(G)switch(l=g.l4(this.element).width,G){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=l+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=l/2+"px",this.title.style.textAlign="center"}u5k(this,!!f,R,A)}}; g.L.Nh=function(){this.type===1&&this.Gg()}; g.L.mB=function(R,l){if(this.type)if(this.type===3)this.Gg();else return;Oto(this,R,3,l)}; g.L.mW=function(){this.Z&&!this.W&&this.Z.hasAttribute("title")&&(this.L=this.Z.getAttribute("title")||"",this.Z.removeAttribute("title"),this.V&&PC7(this))}; g.L.Ac=function(R,l){R<=this.Y&&this.Y<=l&&(R=this.Y,this.Y=NaN,FqQ(this,R))}; g.L.Wd=function(){wpK(this.X,this.Y,243*this.scale)}; g.L.Gg=function(){switch(this.type){case 2:var R=this.Z;R.removeEventListener("mouseout",this.B);R.addEventListener("mouseover",this.D);R.removeEventListener("blur",this.B);R.addEventListener("focus",this.D);QOj(this);break;case 3:QOj(this);break;case 1:this.X&&(this.X.unsubscribe("l",this.Ac,this),this.X=null),this.api.removeEventListener("videoready",this.LX),this.Yb.stop()}this.type=null;this.V&&this.fade.hide()}; g.L.G3=function(){if(this.Z)for(var R=0;R=0;l--)if(this.Db[l]===R){this.Db.splice(l,1);break}Nb(this.sY,64,this.Db.length>0)}; g.L.eD=function(){this.api.LW()&&this.api.VW();return!!this.fh||r3i(this)||g.Cq.prototype.eD.call(this)}; g.L.Ya=function(){var R=!this.eD(),l=R&&this.api.LW()&&!g.V(this.api.getPlayerStateObject(),2)&&!g.Bd(this.api.getVideoData())&&!this.api.U().L&&!this.api.isEmbedsShortsMode(),y=this.Ex&&g.pM(this.api)&&g.V(this.api.getPlayerStateObject(),128);R||y?(this.Jw.show(),this.RO.show()):(this.Jw.hide(),this.RO.hide(),this.api.G3(this.F3.element));l?this.Ls.jZ():this.Ls.Rl();this.jY&&mmJ(this.jY,this.PjS||!R);this.api.C("web_player_hide_overflow_button_if_empty_menu")&&vjY(this);g.Cq.prototype.Ya.call(this)}; g.L.o6=function(R,l,y,f,A){R.style.left="";R.style.top="";R.style.bottom="";var K=g.l4(R),G=f||this.jY&&g.io(this.jY.al(),l),B=f=null;y!=null&&G||(f=g.l4(l),B=g.Mh(l,this.api.getRootNode()),y==null&&(y=B.x+f.width/2));y-=K.width/2;G?(l=this.jY,f=ojY(l),B=hOk(l),G=this.api.lQ().getPlayerSize().height,y=g.Sq(y,f,f+B-K.width),K=G-c3Z(l)-K.height):g.io(this.F3.element,l)?(l=this.api.lQ().getPlayerSize().width,y=g.Sq(y,12,l-K.width-12),K=this.x0()?this.P8:this.gB,this.api.U().playerStyle==="gvn"&&(K+= 20),this.Ex&&(K-=this.x0()?26:18)):(l=this.api.lQ().getPlayerSize(),y=g.Sq(y,12,l.width-K.width-12),K=B.y>(l.height-f.height)/2?B.y-K.height-12:B.y+f.height+12);R.style.top=K+(A||0)+"px";R.style.left=y+"px"}; g.L.Vd=function(R){R&&(this.api.G3(this.F3.element),this.jY&&this.api.G3(this.jY.al()));this.vc&&(g.BJ(this.contextMenu.element,"ytp-autohide",R),g.BJ(this.contextMenu.element,"ytp-autohide-active",!0));g.Cq.prototype.Vd.call(this,R)}; g.L.Sw=function(){g.Cq.prototype.Sw.call(this);this.vc&&(g.BJ(this.contextMenu.element,"ytp-autohide-active",!1),this.vc&&(this.contextMenu.hide(),this.JR&&this.JR.hide()))}; g.L.vQ=function(R,l){var y=this.api.lQ().getPlayerSize();y=new g.Sv(0,0,y.width,y.height);if(R||this.sY.X&&!this.eD()){if(this.api.U().Zo||l)R=this.x0()?this.P8:this.gB,y.top+=R,y.height-=R;this.jY&&(y.height-=c3Z(this.jY))}return y}; g.L.CR=function(R){var l=this.api.getRootNode();R?l.parentElement?(l.setAttribute("aria-label","Reproductor de video de YouTube en pantalla completa"),this.api.U().externalFullscreen||(l.parentElement.insertBefore(this.M0.element,l),l.parentElement.insertBefore(this.Bg.element,l.nextSibling))):g.Tw(Error("Player not in DOM.")):(l.setAttribute("aria-label","Reproductor de video de YouTube"),this.M0.detach(),this.Bg.detach());this.ub();this.ra()}; g.L.x0=function(){var R=this.api.U();return this.api.isFullscreen()&&!R.V||!1}; g.L.showControls=function(R){this.U$=!R;this.Ya()}; g.L.ub=function(){var R=this.x0();this.tooltip.scale=R?1.5:1;this.contextMenu&&g.BJ(this.contextMenu.element,"ytp-big-mode",R);this.Ya();this.api.C("web_player_hide_overflow_button_if_empty_menu")||vjY(this);this.ra();var l=this.api.isEmbedsShortsMode();l&&R?(R=(this.api.lQ().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Df(this.F3.element,"padding-left",R+"px"),g.Df(this.F3.element,"padding-right",R+"px")):l&&(g.Df(this.F3.element,"padding-left",""),g.Df(this.F3.element,"padding-right", ""));g.Cq.prototype.ub.call(this)}; g.L.SF=function(){if(r3i(this)&&!g.pM(this.api))return!1;var R=this.api.getVideoData();return!g.kh(this.api.U())||this.api.getPresentingPlayerType()===2||!this.oJ||((R=this.oJ||R.oJ)?(R=R.embedPreview)?(R=R.thumbnailPreviewRenderer,R=R.videoDetails&&g.k(R.videoDetails,isi)||null):R=null:R=null,R&&R.collapsedRenderer&&R.expandedRenderer)?g.Cq.prototype.SF.call(this):!1}; g.L.ra=function(){g.Cq.prototype.ra.call(this);this.api.logVisibility(this.title.element,!!this.uR);this.jk&&this.jk.Nx(!!this.uR);this.channelAvatar.Nx(!!this.uR);this.overflowButton&&this.overflowButton.Nx(this.cf()&&!!this.uR);this.shareButton&&this.shareButton.Nx(!this.cf()&&!!this.uR);this.C$&&this.C$.Nx(!this.cf()&&!!this.uR);this.searchButton&&this.searchButton.Nx(!this.cf()&&!!this.uR);this.copyLinkButton&&this.copyLinkButton.Nx(!this.cf()&&!!this.uR);if(!this.uR){this.api.G3(this.F3.element); for(var R=0;R5&&l.T4("glrs",{cmt:y});l.seekTo(0,{seekSource:58});l.T4("glrre",{cmt:y})}}; I9.prototype.G4=function(){this.Z=null;g.p.prototype.G4.call(this)};g.O(g.Nn,Ws);g.L=g.Nn.prototype;g.L.isView=function(){return!0}; g.L.yp=function(){var R=this.mediaElement.getCurrentTime();if(R1;Y5(R.uj(),f-.01)&&!A&&(U8(this,4),y.isActive=!1,y.zB=y.zB||y.isActive,(this.J===1?this.Z:this.X).T4("sbh",{}),l.isActive=!0,l.zB=l.zB||l.isActive,this.J!==0&&(this.Z.getVideoData().aq=!0));R=this.Y.X;if(this.Y.Z.isActive&&R.isActive&&(U8(this,5),this.J!==0)){R=this.X.tI();y=this.Z.tI(); this.Z.T4("sbs",{citag:y==null?void 0:y.itag,nitag:R==null?void 0:R.itag});this.X.T4("gitags",{pitag:y==null?void 0:y.itag,citag:R==null?void 0:R.itag});var K;(K=this.X)==null||K.JS()}}}; g.L.hc=function(){this.uG()&&this.MW("player-reload-after-handoff")}; g.L.MW=function(R,l){l=l===void 0?{}:l;if(!this.Fx()&&this.status.status!==6){var y=this.status.status>=4&&R!=="player-reload-after-handoff";this.status={status:Infinity,error:R};if(this.Z&&this.X){var f=this.X.getVideoData().clientPlaybackNonce;this.Z.l8(new g.c9("dai.transitionfailure",Object.assign(l,{cpn:f,transitionTimeMs:this.lP,msg:R})));this.Z.PU(y)}this.cM.reject(R);this.dispose()}}; g.L.uG=function(){return this.status.status>=4&&this.status.status<6}; g.L.G4=function(){Zti(this);this.Z.unsubscribe("newelementrequired",this.hc,this);if(this.L){var R=this.L.X;this.L.Z.Bl.unsubscribe("updateend",this.NQ,this);R.Bl.unsubscribe("updateend",this.NQ,this)}g.p.prototype.G4.call(this)}; g.L.Wa=function(R){g.m2(R,128)&&this.MW("player-error-event")};g.O(SO,g.p);SO.prototype.clearQueue=function(R,l){R=R===void 0?!1:R;l=l===void 0?!1:l;this.Y&&this.Y.reject("Queue cleared");this.app.U().C("html5_gapless_fallback_on_qoe_restart_v2")||l&&this.X&&this.X.PU(!1);jO(this,R)}; SO.prototype.xv=function(){return!this.Z}; SO.prototype.uG=function(){var R;return((R=this.L)==null?void 0:R.uG())||!1}; SO.prototype.G4=function(){jO(this);g.p.prototype.G4.call(this)};g.O(Msr,g.Ae);g.L=Msr.prototype;g.L.getVisibilityState=function(R,l,y,f,A,K,G,B){return R?4:xG9()?3:l?2:y?1:f?5:A?7:K?8:G?9:B?10:0}; g.L.cQ=function(R){this.fullscreen!==R&&(this.fullscreen=R,this.cA())}; g.L.setMinimized=function(R){this.X!==R&&(this.X=R,this.cA())}; g.L.setInline=function(R){this.inline!==R&&(this.inline=R,this.cA())}; g.L.KE=function(R){this.pictureInPicture!==R&&(this.pictureInPicture=R,this.cA())}; g.L.setSqueezeback=function(R){this.L!==R&&(this.L=R,this.cA())}; g.L.QQ=function(R){this.Y!==R&&(this.Y=R,this.cA())}; g.L.tL=function(){return this.Z}; g.L.La=function(){return this.fullscreen!==0}; g.L.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.L.Tw=function(){return this.fullscreen}; g.L.isMinimized=function(){return this.X}; g.L.isInline=function(){return this.inline}; g.L.isBackground=function(){return xG9()}; g.L.B0=function(){return this.pictureInPicture}; g.L.mT=function(){return!1}; g.L.Iw=function(){return this.L}; g.L.zU=function(){return this.Y}; g.L.cA=function(){this.publish("visibilitychange");var R=this.getVisibilityState(this.tL(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.B0(),this.mT(),this.Iw(),this.zU());R!==this.D&&this.publish("visibilitystatechange");this.D=R}; g.L.G4=function(){pNk(this.J);g.Ae.prototype.G4.call(this)};g.O(g.k0,g.p);g.L=g.k0.prototype;g.L.G4=function(){this.videoData=this.playerState=null;g.p.prototype.G4.call(this)}; g.L.addCueRange=function(){}; g.L.ZO=function(){}; g.L.D5=function(){}; g.L.u5=function(){return!1}; g.L.X$=function(){return!1}; g.L.Lg=function(){return!1}; g.L.aK=function(){}; g.L.ym=function(){}; g.L.Vw=function(){return[]}; g.L.xl=function(){}; g.L.getAudioTrack=function(){return this.getVideoData().B$}; g.L.pI=function(){return null}; g.L.getAvailableAudioTracks=function(){return[]}; g.L.V3=function(){return[]}; g.L.vK=function(){return[]}; g.L.sU=function(){return""}; g.L.Lw=function(){return[]}; g.L.s3=function(){}; g.L.h7=function(){return 0}; g.L.getCurrentTime=function(){return 0}; g.L.De=function(){}; g.L.tI=function(){}; g.L.S1=function(){return{}}; g.L.getDuration=function(){return 0}; g.L.ev=function(){return 0}; g.L.wc=function(){return 0}; g.L.tp=function(){return!1}; g.L.Ql=function(){return 0}; g.L.Dm=function(){return 0}; g.L.Af=lj(7);g.L.C7=function(){return 0}; g.L.dL=function(){return!1}; g.L.FO=function(){return 0}; g.L.t1=function(){return null}; g.L.eK=function(){return null}; g.L.K_=function(){return 0}; g.L.oB=function(){return 0}; g.L.UY=function(){return g.w(function(R){g.Q9(R)})}; g.L.SO=lj(15);g.L.getPlaybackQuality=function(){return"auto"}; g.L.getPlaybackRate=function(){return 1}; g.L.getPlayerState=function(){this.playerState||(this.playerState=new g.uZ);return this.playerState}; g.L.getPlayerType=function(){return 0}; g.L.getPlaylistSequenceForTime=function(){return null}; g.L.Y0=function(){return function(){}}; g.L.Wp=function(){return""}; g.L.getPreferredQuality=function(){return"unknown"}; g.L.jP=function(){}; g.L.getProximaLatencyPreference=function(){return 0}; g.L.mZ=function(){return At}; g.L.Tg=function(){return null}; g.L.getStoryboardFormat=function(){return null}; g.L.getStreamTimeOffset=function(){return 0}; g.L.P6=function(){return 0}; g.L.fA=function(){return 0}; g.L.fI=function(){return{WS:[],Ki:[],currentTime:0,hP:"",droppedVideoFrames:0,isGapless:!1,xv:!0,GT:0,z5:0,NZ:0,d_:0,Wq:0,Oc:[],s4:[],sy:null,playerState:this.getPlayerState(),v5:null,TR:"",totalVideoFrames:0}}; g.L.getUserAudio51Preference=function(){return 0}; g.L.getUserPlaybackQualityPreference=function(){return""}; g.L.getVideoData=function(){this.videoData||(this.videoData=new g.KC(this.Zq),g.U(this,this.videoData));return this.videoData}; g.L.xq=function(){return null}; g.L.d$=function(){return null}; g.L.PA=function(){}; g.L.getVideoLoadedFraction=function(){return 0}; g.L.WK=function(){}; g.L.handleError=function(){}; g.L.PU=function(){}; g.L.pz=function(){}; g.L.rp=lj(40);g.L.jK=function(){return!1}; g.L.hasSupportedAudio51Tracks=function(){return!1}; g.L.k8=function(){return!1}; g.L.tL=function(){return!1}; g.L.isAtLiveHead=function(){return!1}; g.L.WU=function(){return!0}; g.L.isGapless=function(){return!1}; g.L.isHdr=function(){return!1}; g.L.HK=function(){return!1}; g.L.ul=function(){return!1}; g.L.ZU=function(){return!1}; g.L.isProximaLatencyEligible=function(){return!1}; g.L.xv=function(){return!0}; g.L.Yw=function(){return!1}; g.L.uT=function(){return!1}; g.L.Hc=function(){}; g.L.Xf=function(){}; g.L.JS=function(){}; g.L.J6=function(){}; g.L.n2=function(){}; g.L.Ad=function(){}; g.L.v3=function(){}; g.L.h2=lj(50);g.L.iH=lj(21);g.L.A$=function(){}; g.L.OA=function(){}; g.L.pauseVideo=function(){}; g.L.playVideo=function(){return g.w(function(R){return R.return()})}; g.L.R4=function(){}; g.L.fM=lj(27);g.L.Ks=lj(33);g.L.yP=function(){}; g.L.T4=function(){}; g.L.UU=function(){}; g.L.A6=function(){}; g.L.dT=function(){}; g.L.l8=function(){}; g.L.Rj=function(){}; g.L.Qi=function(){}; g.L.h6=function(){}; g.L.t4=function(){}; g.L.C3=function(){}; g.L.KW=function(){}; g.L.m6=function(){}; g.L.removeCueRange=function(){}; g.L.u7=function(){}; g.L.yb=function(){return[]}; g.L.o$=function(){}; g.L.QD=function(){}; g.L.wq=function(){}; g.L.H5=function(){}; g.L.z1=function(){}; g.L.C8=function(){}; g.L.seekTo=function(){}; g.L.sendAbandonmentPing=function(){}; g.L.sendVideoStatsEngageEvent=function(){}; g.L.t6=function(){}; g.L.setLoop=function(){}; g.L.uI=function(){}; g.L.setMediaElement=function(){}; g.L.x7=function(){}; g.L.setPlaybackRate=function(){}; g.L.LJ=function(){}; g.L.Et=function(){}; g.L.SI=function(){}; g.L.setProximaLatencyPreference=function(){}; g.L.D$=function(){}; g.L.JV=function(){}; g.L.o4=function(){}; g.L.Ct=function(){}; g.L.HI=function(){}; g.L.setUserAudio51Preference=function(){}; g.L.lc=function(){}; g.L.Lf=function(){return!1}; g.L.GC=function(){}; g.L.Ez=function(){return!1}; g.L.A9=function(){}; g.L.PT=function(){}; g.L.vT=function(){}; g.L.stopVideo=function(){}; g.L.subscribe=function(){return NaN}; g.L.SQ=function(){}; g.L.togglePictureInPicture=function(){}; g.L.OT=function(){return 0}; g.L.unsubscribe=function(){return!1}; g.L.Xw=function(){}; g.L.aH=function(){return!1}; g.L.M2=function(){}; g.L.Nt=function(){}; g.L.BM=function(){};g.O(JX,g.p);g.L=JX.prototype;g.L.get=function(R){DZ(this);var l=this.data.find(function(y){return y.key===R}); return l?l.value:null}; g.L.set=function(R,l,y){this.remove(R,!0);DZ(this);R={key:R,value:l,expire:Infinity};y&&isFinite(y)&&(y*=1E3,R.expire=(0,g.eY)()+y);for(this.data.push(R);this.data.length>this.L;)(y=this.data.shift())&&Ve(this,y,!0);ZZ(this)}; g.L.remove=function(R,l){l=l===void 0?!1:l;var y=this.data.find(function(f){return f.key===R}); y&&(Ve(this,y,l),g.TK(this.data,function(f){return f.key===R}),ZZ(this))}; g.L.removeAll=function(R){if(R=R===void 0?!1:R)for(var l=g.u(this.data),y=l.next();!y.done;y=l.next())Ve(this,y.value,R);this.data=[];ZZ(this)}; g.L.G4=function(){var R=this;g.p.prototype.G4.call(this);this.data.forEach(function(l){Ve(R,l,!0)}); this.data=[]};g.O(g.CQ,g.p);g.L=g.CQ.prototype;g.L.G4=function(){for(var R=g.u(Object.values(this.L)),l=R.next();!l.done;l=R.next())l.value.dispose();RCJ(this);this.Z.dispose();g.p.prototype.G4.call(this)}; g.L.x4=function(R){return R?R===1?this.W:this.X.getVideoData().enableServerStitchedDai&&R===2?this.X.getVideoData().vv?this.L[2]||this.X:this.X:this.L[R]||null:this.X}; g.L.Fh=function(R){var l=R.cpn;R=R.playerType;if(l)a:{R=g.u(Object.values(this.L));for(var y=R.next();!y.done;y=R.next())if(y=y.value,y.sU()===l){l=y;break a}l=this.V[l]||null}else l=R?this.x4(R):this.X;return l}; g.L.Xo=function(){return this.W}; g.L.E0=function(R){this.W=R}; g.L.hU=function(){return this.X}; g.L.ji=function(R){this.X=R;qn(this)}; g.L.kQ=lj(46);g.L.FZ=lj(48);g.O(tX,g.p);tX.prototype.enqueue=function(R){if(R.Z()!==this)return!1;this.segments.push(R);return!0}; tX.prototype.removeAll=function(){for(;this.segments.length;){var R=void 0;(R=this.segments.pop())==null||R.dispose()}this.Z.clear()}; tX.prototype.G4=function(){this.removeAll();g.p.prototype.G4.call(this)};g.O(BKr,g.CM);g.L=BKr.prototype;g.L.Fg=function(){}; g.L.sU=function(){return this.videoData.clientPlaybackNonce}; g.L.getVideoData=function(){if(g.CM.prototype.getVideoData.call(this).C("html5_huli_ssdai_use_playback_state"))var R=this.videoData;else{var l=this.Ns;var y=g.CM.prototype.getCurrentTime.call(this);if(l.sz)l=void 0;else{var f=void 0;l.Iz&&(f=l.Z.Z.get(l.Iz));if(!f){f=ukZ(l,y*1E3);var A,K=(A=f)==null?void 0:A.cpn;l.Iz?K&&l.Iz!==K&&l.MU({cpcnm:K+"_"+l.Iz,cmt:y.toFixed(3)}):l.MU({cpcna:K,cmt:y.toFixed(3)})}l=(R=f)==null?void 0:R.videoData}R=l||g.CM.prototype.getVideoData.call(this)}return R}; g.L.getCurrentTime=function(R){var l=g.CM.prototype.getCurrentTime.call(this);g.CM.prototype.getVideoData.call(this).C("html5_huli_ssdai_use_playback_state")?this.endTime===0?R||(l-=this.startTime):R&&(l=this.endTime-this.startTime):(R?R=this.Ns.PM/1E3||l:(R=l,R=(l=PBs(this.Ns,R*1E3))?R-l.start/1E3:R),l=R);return l}; g.L.getDuration=function(){if(g.CM.prototype.getVideoData.call(this).C("html5_huli_ssdai_use_playback_state"))var R=this.duration;else{R=this.Ns;var l=g.CM.prototype.getCurrentTime.call(this);R=(R=ukZ(R,l*1E3))?R.durationMs/1E3:0}return R}; g.L.Oz=function(R){this.duration=R};g.Y0.prototype.nI=function(R,l){if(l===1)return this.Z.get(R);if(l===2)return this.L.get(R);if(l===3)return this.X.get(R)}; g.Y0.prototype.LY=lj(58);g.Y0.prototype.Pi=function(R,l,y,f){y={xL:f,WP:y};l?this.L.set(R,y):this.Z.set(R,y)}; g.Y0.prototype.clearAll=function(){this.Z.clear();this.L.clear();this.X.clear()}; np7.prototype.clear=function(){this.X=[];this.Z.clear();this.Y.clear();this.L.clear()}; g.O(g.Mn,g.p);g.L=g.Mn.prototype;g.L.LF=function(R){var l=R.pG?R.pG*1E3:R.j1,y=this.L.get(R.cpn);y&&this.playback.removeCueRange(y);this.L.delete(R.cpn);this.Z.Z.delete(R.cpn);y=this.Z.X.indexOf(R);y>=0&&this.Z.X.splice(y,1);y=[];for(var f=g.u(this.J),A=f.next();!A.done;A=f.next())A=A.value,A.end<=l?this.playback.removeCueRange(A):y.push(A);this.J=y;rmQ(this,0,l+R.durationMs)}; g.L.onCueRangeEnter=function(R){this.P1.push(R);var l=R.getId();this.MU({oncueEnter:1,cpn:l,start:R.start,end:R.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.h7()||0).toFixed(3)});var y=l==="";this.jS.add(R.X);var f=this.Z.Z.get(l);if(y){var A;if(this.playback.getVideoData().h1()&&((A=this.X)==null?0:A.dX)&&this.Y){this.FK=0;this.X=void 0;this.W&&(this.events.p_(this.W),this.W=null);this.Y="";this.CX=!0;return}}else if(this.MU({enterAdCueRange:1}),this.playback.getVideoData().h1()&& (f==null?0:f.LL))return;if(this.CX&&!this.X)this.CX=!1,!y&&f&&(y=this.playback.getCurrentTime(),KP(this,{Dz:R,isAd:!0,YP:!0,jJ:y,adCpn:l},{isAd:!1,YP:!1,jJ:y}),this.Iz=f.cpn,this.Ou(f.cpn,y),fP(this,f),R=yB(this,"midab",f),this.MU(R),this.FK=1),this.D=!1;else if(this.X){if(this.X.YP)this.MU({a_pair_of_same_transition_occurs_enter:1,acpn:this.X.adCpn,transitionTime:this.X.jJ,cpn:l,currentTime:this.playback.getCurrentTime()}),f=this.playback.getCurrentTime(),R={Dz:R,isAd:!y,YP:!0,jJ:f,adCpn:l},l={Dz:this.X.Dz, isAd:this.X.isAd,YP:!1,jJ:f,adCpn:this.X.adCpn},this.X.Dz&&this.jS.delete(this.X.Dz.X),KP(this,R,l);else{if(this.X.Dz===R){this.MU({same_cue_range_pair_enter:1,acpn:this.X.adCpn,transitionTime:this.X.jJ,cpn:l,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:R.start,cueRangeEndTime:R.end});this.X=void 0;return}if(this.X.adCpn===l){l&&this.MU({dchtsc:l});this.X=void 0;return}R={Dz:R,isAd:!y,YP:!0,jJ:this.playback.getCurrentTime(),adCpn:l};KP(this,R,this.X)}this.X=void 0;this.D=!1}else this.X= {Dz:R,isAd:!y,YP:!0,jJ:this.playback.getCurrentTime(),adCpn:l}}; g.L.Ou=function(R,l){if(R===this.playback.sU())lLZ(this.app.FW(),this.playback,!1);else{var y=this.B1.get(R);y?(y.endTime=0,y.startTime=l,lLZ(this.app.FW(),y,!0)):this.MU({nop_s:R})}}; g.L.onCueRangeExit=function(R){var l=R.getId();this.MU({oncueExit:1,cpn:l,start:R.start,end:R.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.h7()||0).toFixed(3)});var y=l==="",f=this.Z.Z.get(l);if(this.playback.getVideoData().h1()&&!y&&f){if(f.LL)return;f.LL=!0;this.V.clear();if(this.Zq.C("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.u5()){var A=f.j1;this.playback.m6(A/1E3,(A+f.durationMs)/1E3)}else this.playback.T4("lifa",{remove:0})}if(this.jS.has(R.X))if(this.jS.delete(R.X), this.P1=this.P1.filter(function(K){return K!==R}),this.CX&&(this.D=this.CX=!1,this.MU({cref:1})),this.X){if(this.X.YP){if(this.X.Dz===R){this.MU({same_cue_range_pair_exit:1, acpn:this.X.adCpn,transitionTime:this.X.jJ,cpn:l,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:R.start,cueRangeEndTime:R.end});this.X=void 0;return}if(this.X.adCpn===l){l&&this.MU({dchtsc:l});this.X=void 0;return}l={Dz:R,isAd:!y,YP:!1,jJ:this.playback.getCurrentTime(),adCpn:l};KP(this,this.X,l)}else if(this.MU({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.X.adCpn,transitionTime:this.X.jJ,upcomingCpn:l,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.X.adCpn===l)return;this.X=void 0;this.D=!1}else this.X={Dz:R,isAd:!y,YP:!1,jJ:this.playback.getCurrentTime(),adCpn:l};else this.MU({ignore_single_exit:1})}; g.L.RU=function(){return{cpn:this.playback.sU(),durationMs:0,j1:0,playerType:1,qs:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.L.M_=function(){if(this.sz)return!1;var R=void 0;this.Iz&&(R=this.Z.Z.get(this.Iz));return this.playback.getVideoData().h1()?!!R&&!R.LL:!!R}; g.L.seekTo=function(R,l,y,f){R=R===void 0?0:R;l=l===void 0?{}:l;y=y===void 0?!1:y;f=f===void 0?null:f;if(this.playback.getVideoData().h1()&&R<=this.PM/1E3)this.playback.pauseVideo(),this.PM=0,this.D=!0,this.playback.UY(),this.playback.seekTo(R),this.playback.playVideo();else if(this.D=!0,y)m8k(this,R,l);else{y=this.app.hU();var A=y===this.v1?this.ZL:null;a$(this,!1);this.nA=R;this.sF=l;f!=null&&this.LA.start(f);y&&(this.ZL=A||y.getPlayerState(),y.vT(l),this.v1=y)}}; g.L.G4=function(){a$(this,!1);Q5q(this);$8j(this);g.p.prototype.G4.call(this)}; g.L.kd=function(R){this.ol=R;this.MU({swebm:R})}; g.L.Re=function(R,l,y){if(y&&l){var f=this.V.get(R);if(f){f.locations||(f.locations=new Map);var A=Number(l.split(";")[0]);y=new g.kM(y);this.MU({hdlredir:1,itag:l,seg:R,hostport:Zp(y)});f.locations.set(A,y)}}}; g.L.XE=function(R,l,y,f,A,K){var G=f===3,B=bBj(this,R,l,f,y,K);if(!B){Ba(this,l,G);var H=g.eCJ(this,l)?"undec":"ncp";this.MU({gvprp:H,mt:R,seg:l,tt:f,itag:y,ce:K});return null}G||this.V.set(l,B);K=B.sC;var n;f=((n=this.nI(l-1,f,A))==null?void 0:n.xL)||"";f===""&&this.MU({eds:1});n=TKY(this,B.ssdaiAdsConfig);A=this.playback.getVideoData();var m;G=((m=A.X)==null?void 0:m.containerType)||0;m=A.eC[G];B=B.Ka&&l>=B.Ka?B.Ka:void 0;m={KY:K?zCY(this,K):[],Mq:n,xL:f,Td:B,u9:zs(m.split(";")[0]),kB:m.split(";")[1]|| ""};B={WO:m};this.W1&&(R={gvprpro:"v",sq:l,mt:R.toFixed(3),itag:y,acpns:((H=m.KY)==null?void 0:H.join("_"))||"none",abid:K},this.MU(R));return B}; g.L.Ty=function(R){a:{if(!this.sz){var l=Xjj(this,R);if(!(this.playback.getVideoData().h1()&&(l==null?0:l.LL)))break a}l=void 0}var y=l;if(!y)return this.MU({gvprp:"ncp",mt:R}),null;l=y.sC;var f=TKY(this,y.ssdaiAdsConfig);y=y.Ka&&y.Ym&&R>=y.Ym?y.Ka:void 0;var A=this.playback.getVideoData(),K,G=((K=A.X)==null?void 0:K.containerType)||0;K=A.eC[G];K={KY:l?zCY(this,l):[],Mq:f,Td:y,u9:zs(K.split(";")[0]),kB:K.split(";")[1]||""};var B;R={gvprpro:"v",mt:R.toFixed(3),acpns:((B=K.KY)==null?void 0:B.join("_"))|| "none",abid:l};this.MU(R);return K}; g.L.Jt=function(R,l,y,f,A,K){var G=Number(y.split(";")[0]),B=f===3;R=bBj(this,R,l,f,y,K);this.MU({gdu:1,seg:l,itag:G,pb:""+!!R});if(!R)return Ba(this,l,B),null;R.locations||(R.locations=new Map);if(!R.locations.has(G)){var H,n;K=(H=R.videoData.getPlayerResponse())==null?void 0:(n=H.streamingData)==null?void 0:n.adaptiveFormats;if(!K)return this.MU({gdu:"noadpfmts",seg:l,itag:G}),Ba(this,l,B),null;H=K.find(function(c){return c.itag===G}); if(!H||!H.url){var m=R.videoData.videoId;R=[];var h=g.u(K);for(f=h.next();!f.done;f=h.next())R.push(f.value.itag);this.MU({gdu:"nofmt",seg:l,vid:m,itag:G,fullitag:y,itags:R.join(",")});Ba(this,l,B);return null}R.locations.set(G,new g.kM(H.url,!0))}K=R.locations.get(G);if(!K)return this.MU({gdu:"nourl",seg:l,itag:G}),Ba(this,l,B),null;K=new wD(K);this.ol&&(K.get("dvc")?this.MU({dvc:K.get("dvc")||""}):K.set("dvc","webm"));(f=(h=this.nI(l-1,f,A))==null?void 0:h.xL)&&K.set("daistate",f);R.Ka&&l>=R.Ka&& K.set("skipsq",""+R.Ka);(h=this.playback.getVideoData().clientPlaybackNonce)&&K.set("cpn",h);h=[];R.sC&&(h=zCY(this,R.sC),h.length>0&&K.set("acpns",h.join(",")));B||this.V.set(l,R);B=null;B=K.get("aids");f=K.Jk();(f==null?void 0:f.length)>2048&&this.MU({urltoolong:1,sq:l,itag:G,len:f.length});this.W1&&(f&&(K=R.cpn,A=R.sC,ILo(this,K,A),A&&!this.RV.has(A)&&(K=wjQ(this,K,A),H=x89(this,A),this.MU({iofa:K}),this.MU({noawnzd:H-K}),this.MU({acpns:h.join("."),aids:(m=B)==null?void 0:m.replace(/,/g,".")}), this.RV.add(A))),this.MU({gdu:"v",seg:l,itag:y,ast:R.j1.toFixed(3),alen:R.durationMs.toFixed(3),acpn:R.cpn,avid:R.videoData.videoId}));return f}; g.L.tv=function(R,l,y){y=y===void 0?!1:y;var f=s9(this,R,l);if(f){var A=void 0,K=f.sC;if(K){this.MU({skipadonsq:l,sts:y,abid:K,acpn:f.cpn,avid:f.videoData.videoId});y=this.Z.L.get(K);if(!y)return;y=g.u(y);for(K=y.next();!K.done;K=y.next())K=K.value,K.Ka=l,K.Ym=R,K.j1>f.j1&&(A=K)}this.Y=f.cpn;d8c(this);R=this.playback.getCurrentTime();Aw(this,f,A,R,R,!1,!0)}}; g.L.zq=function(){for(var R=g.u(this.Z.X),l=R.next();!l.done;l=R.next())l=l.value,l.Ka=NaN,l.Ym=NaN;d8c(this);this.MU({rsac:"resetSkipAd",sac:this.Y});this.Y=""}; g.L.nI=function(R,l,y){return this.Dq.nI(R,l,y)}; g.L.LY=lj(57); g.L.Pi=function(R,l,y,f,A,K,G,B,H){f.length>0&&this.MU({onssinfo:1,sq:R,start:l.toFixed(3),cpns:f.join(","),ds:A.join(","),isVideo:G?1:0});H&&this.Dq.Pi(R,G,B,H);if(G){if(f.length&&A.length)for(this.Y&&this.Y===f[0]&&this.MU({skipfail:1,sq:R,acpn:this.Y}),R=l+this.P6(),G=0;G0&&(this.FK=0,this.Iz="",this.api.publish("serverstitchedvideochange"));this.playback.ym(y,f);return!0}; g.L.vU=function(){this.MU({rstdaist:1});this.Dq.clearAll()}; g.L.Ft=function(R){var l;if(R!==((l=this.LX)==null?void 0:l.identifier))this.MU({ignorenoad:R});else{this.iQ.add(R);this.MU({noadrcv:R});var y;((y=this.LX)==null?void 0:y.identifier)===R&&l_(this)}}; g.L.CE=function(R){if(this.sz)return this.MU({dai_disabled:R.event}),!1;if(this.playback.getVideoData().h1()&&(this.Zq.C("html5_lifa_no_gab_on_predict_start")&&R.event==="predictStart"||R.event==="continue"||R.event==="stop"))return!1;var l=v2(this.api.Il());if(l=l?l.CE(R):!1)this.B={zm:R.identifier,FQ:R.startSecs};else if(this.B&&this.B.zm===R.identifier&&R.startSecs>this.B.FQ+1){this.MU({cueStChg:R.identifier,oldSt:this.B.FQ.toFixed(3),newSt:R.startSecs.toFixed(3),abid:this.B.ez});if(this.B.ez){var y= R.startSecs-this.B.FQ,f=this.Z.L.get(this.B.ez);if(f){f=g.u(f);for(var A=f.next();!A.done;A=f.next())A=A.value,A.j1>=0&&(A.j1+=y*1E3,this.Zq.C("html5_ssdai_update_timeline_on_start_time_change")&&(A.qs+=y*1E3),this.MU({newApEt:A.j1,newApPrt:A.qs,acpn:A.cpn}))}}this.B.FQ=R.startSecs}return l}; g.L.ZY=function(R){return this.sz?!1:!!Xjj(this,R)}; g.L.Lr=function(R){var l=this;if(this.Zq.C("html5_lifa_ignore_multiple_skips")&&this.W)return this.MU({ufs_ad:this.Y,ufs_cur:this.Iz,ufs_cont:this.RU().cpn}),!1;this.playback.pauseVideo();var y=this.playback.getCurrentTime(),f=this.Zq.C("html5_lifa_reset_segment_index_on_skip"),A=f?y+this.playback.P6():y,K=this.Z.Z.get(this.Iz),G=this.L.get(this.Iz);if(K){this.Y=this.Iz;this.D=!1;K.LL=!0;y=this.playback.getCurrentTime();this.X={Dz:G,isAd:!0,YP:!1,jJ:y,adCpn:this.Iz,dX:K,my9:R};this.playback.h6(K, this.RU(),y,this.playback.getCurrentTime(),!1,!0,R,(0,g.eY)());f&&this.playback.A$();if(G==null?0:G.start)this.PM=y*1E3-G.start,iBs(this,G.id,y);this.V.clear();this.playback.UY();R=this.RU();this.Iz=R.cpn;this.Ou(R.cpn,y);this.api.publish("serverstitchedvideochange");this.playback.seekTo(A,{seekSource:89,b8:"lifa_skip"});this.playback.playVideo();this.W||(this.W=this.events.N(this.api,"progresssync",function(){l.LF(K)})); return!0}this.MU({skipFail:y},!0);return!1}; g.L.MU=function(R,l){((l===void 0?0:l)||this.W1||this.playback.getVideoData().h1())&&this.playback.T4("sdai",R)}; var EpQ=0;g.O(NKj,g.Mn);g.L=NKj.prototype;g.L.onCueRangeEnter=function(R){var l=R.getId();this.playback.T4("sdai",{oncueEnter:1,cpn:l,start:R.start,end:R.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.h7()||0).toFixed(3)});var y=this.Z.Z.get(l);this.playback.T4("sdai",{enterAdCueRange:1});var f=this.Iz||this.RU().cpn,A;f=(A=this.Z.Z.get(f))!=null?A:this.RU();y&&(A=this.playback.getCurrentTime(),y={sE:f,G0:y,x3:A},SZY(this,l,R.start/1E3,A),U8i(this,y))}; g.L.onCueRangeExit=function(R){for(var l=this.playback.getCurrentTime()*1E3,y=R.getId(),f=g.u(this.L.values()),A=f.next();!A.done;A=f.next())if(A=A.value,A.getId()!==y&&l>=A.start&&l<=A.end)return;if(y=this.Z.Z.get(y))l=this.playback.getCurrentTime(),y={sE:y,G0:this.RU(),x3:l},SZY(this,this.playback.sU(),R.end/1E3,l),U8i(this,y)}; g.L.seekTo=function(R,l,y,f){R=R===void 0?0:R;l=l===void 0?{}:l;y=y===void 0?!1:y;f=f===void 0?null:f;nP(this,this.Iz);this.playback.getVideoData().h1()&&R<=this.Vu?(this.playback.pauseVideo(),this.Vu=this.PM=0,j5o(this,R)):g.Mn.prototype.seekTo.call(this,R,l,y,f)}; g.L.tv=function(R,l,y){y=y===void 0?!1:y;var f=s9(this,R,l);if(f){var A=void 0,K=f.sC;if(K){this.playback.T4("sdai",{skipadonsq:l,sts:y,abid:K,acpn:f.cpn,avid:f.videoData.videoId});y=this.Z.L.get(K);if(!y)return;y=g.u(y);for(K=y.next();!K.done;K=y.next())K=K.value,K.Ka=l,K.Ym=R,K.j1>f.j1&&(A=K)}nP(this,this.Iz);this.Y=f.cpn;d8c(this);R=this.playback.getCurrentTime();Aw(this,f,A,R,R,!1,!0);this.Y="";this.D=!1}}; g.L.Pi=function(R,l,y,f,A,K,G,B,H){f.length>0&&this.playback.T4("sdai",{onssinfo:1,sq:R,start:l.toFixed(3),cpns:f.join(","),ds:A.join(","),isVideo:G?1:0});H&&this.Dq.Pi(R,G,B,H);if(G){if(f.length&&A.length)for(this.Y&&this.Y===f[0]&&this.playback.T4("sdai",{skipfail:1,sq:R,acpn:this.Y}),R=l+this.P6(),y=0;y=0&&this.Z.X.splice(R,1)};g.O(ZB9,g.p);g.L=ZB9.prototype;g.L.onCueRangeEnter=function(R){if(this.Z===this.app.hU()){var l=this.J.get(R);l?t_Z(this,l.target,l.lP,R):this.l8("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:R.toString()})}else if(l=this.X.find(function(A){return A.Q8.Dz===R})){var y=l.Q8,f=y.target; y=y.lP;f?t_Z(this,f,y,R):qZk(this,l.qs,y,R)}}; g.L.onQueuedVideoLoaded=function(){var R=this.V;ca(this);if(R){if(!hw(this,R)){var l=this.app.hU();this.l8("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:l==null?void 0:l.getVideoData().clientPlaybackNonce,ccpn:""+R.playerVars.cpn})}this.app.hU().addCueRange(R.Q8.Dz)}}; g.L.seekTo=function(R,l,y,f){R=R===void 0?0:R;l=l===void 0?{}:l;f=f===void 0?null:f;if(y===void 0?0:y)D87(this,R,l);else{y=this.app.hU()||null;var A=y===this.Y?this.D:null;E9(this,!1);this.LX=R;this.B=l;f!=null&&this.W.start(f);y&&(this.D=A||y.getPlayerState(),y.vT(),this.Y=y)}}; g.L.mV=function(R){g.m2(R,128)&&y5k(this)}; g.L.isManifestless=function(){return eU(this.Z.getVideoData())}; g.L.G4=function(){E9(this,!1);A5j(this);g.p.prototype.G4.call(this)}; g.L.l8=function(R,l){this.Z.l8(new g.c9(R,l))}; var Jmj=0;var Ktj="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.O(Wa,g.p);Wa.prototype.hp=function(R){if(R)return this.X.get(R)}; Wa.prototype.G4=function(){this.Z.removeAll();this.X.removeAll();g.p.prototype.G4.call(this)};g.Not=zP(function(){var R=window.AudioContext||window.webkitAudioContext;try{return new R}catch(l){return l.name}});g.O(Hjc,g.Z);g.L=Hjc.prototype;g.L.qy=function(){g.Kg(this.element,g.SJ.apply(0,arguments))}; g.L.QD=function(){this.Mx&&(this.Mx.removeEventListener("focus",this.X7),g.Ot(this.Mx),this.Mx=null)}; g.L.rB=function(){this.Fx();var R=this.app.U();R.Y8||this.qy("tag-pool-enabled");R.D&&this.qy(g.nA.HOUSE_BRAND);R.playerStyle==="gvn"&&(this.qy("ytp-gvn"),this.element.style.backgroundColor="transparent");R.OF&&(this.W8=g.Rn("yt-dom-content-change",this.resize,this));this.N(window,"orientationchange",this.resize,this);this.N(window,"resize",this.resize,this)}; g.L.cI=function(R){g.Vy(this.app.U());this.JX=!R;LP(this)}; g.L.resize=function(){if(this.Mx){var R=this.IJ();if(!R.isEmpty()){var l=!g.gF(R,this.uD.getSize()),y=c5i(this);l&&(this.uD.width=R.width,this.uD.height=R.height);R=this.app.U();(y||l||this.J_||R.OF)&&this.app.VL.publish("resize",this.getPlayerSize())}}}; g.L.f7=function(R,l){this.updateVideoData(l)}; g.L.updateVideoData=function(R){if(this.Mx){var l=this.app.U();Jv&&(this.Mx.setAttribute("x-webkit-airplay","allow"),R.title?this.Mx.setAttribute("title",R.title):this.Mx.removeAttribute("title"));this.Mx.setAttribute("controlslist","nodownload");l.xO&&R.videoId&&(this.Mx.poster=R.I9("default.jpg"))}l=g.IY(R,"yt:bgcolor");this.YL.style.backgroundColor=l?l:"";this.NJ=GI(g.IY(R,"yt:stretch"));this.A3=GI(g.IY(R,"yt:crop"),!0);g.BJ(this.element,"ytp-dni",R.nJ);this.resize()}; g.L.setGlobalCrop=function(R){this.sK=GI(R,!0);this.resize()}; g.L.setCenterCrop=function(R){this.kM=R;this.resize()}; g.L.cQ=function(){}; g.L.getPlayerSize=function(){var R=this.app.U(),l=this.app.VL.isFullscreen(),y=R.externalFullscreen&&g.kh(R);if(l&&ka()&&!y)return new g.JM(window.outerWidth,window.outerHeight);y=!isNaN(this.Hg.width)&&!isNaN(this.Hg.height);var f=this.app.U().C("kevlar_player_enable_squeezeback_fullscreen_sizing");if(l&&!y&&f)return new g.JM(this.element.clientWidth,this.element.clientHeight);if(l||R.xP){if(window.matchMedia){R="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.s8&&this.s8.media=== R||(this.s8=window.matchMedia(R));var A=this.s8&&this.s8.matches}if(A)return new g.JM(window.innerWidth,window.innerHeight)}else if(y)return this.Hg.clone();return new g.JM(this.element.clientWidth,this.element.clientHeight)}; g.L.IJ=function(){var R=this.app.U().C("enable_desktop_player_underlay"),l=this.getPlayerSize(),y=g.yx(this.app.U().experiments,"player_underlay_min_player_width");return R&&this.lX&&l.width>y?(R=g.yx(this.app.U().experiments,"player_underlay_video_width_fraction"),new g.JM(Math.min(l.height*this.getVideoAspectRatio(),l.width*R),Math.min(l.height,l.width*R/this.getVideoAspectRatio()))):l}; g.L.getVideoAspectRatio=function(){return isNaN(this.NJ)?mRq(this):this.NJ}; g.L.getVideoContentRect=function(R){var l=this.IJ();R=ooj(this,l,this.getVideoAspectRatio(),R);return new g.Sv((l.width-R.width)/2,(l.height-R.height)/2,R.width,R.height)}; g.L.UO=function(R){this.lX=R;this.resize()}; g.L.XL=function(){return this.Yx}; g.L.onMutedAutoplayChange=function(){LP(this)}; g.L.setInternalSize=function(R){g.gF(this.Hg,R)||(this.Hg=R,this.resize())}; g.L.G4=function(){this.W8&&g.lq(this.W8);this.QD();g.Z.prototype.G4.call(this)};g.L=Wtq.prototype;g.L.click=function(R,l){this.elements.has(R);this.Z.has(R);var y=g.Py();y&&R.visualElement&&g.l1(y,R.visualElement,l)}; g.L.createClientVe=function(R,l,y,f){var A=this;f=f===void 0?!1:f;this.elements.has(R);this.elements.add(R);y=O0c(y);R.visualElement=y;var K=g.Py(),G=g.ir();K&&G&&(g.O1("combine_ve_grafts")?CN(gZ(),y,G):g.qM(g.k$)(void 0,K,G,y));l.addOnDisposeCallback(function(){A.elements.has(R)&&A.destroyVe(R)}); f&&this.X.add(R)}; g.L.createServerVe=function(R,l,y){var f=this;y=y===void 0?!1:y;this.elements.has(R);this.elements.add(R);l.addOnDisposeCallback(function(){f.destroyVe(R)}); y&&this.X.add(R)}; g.L.destroyVe=function(R){this.elements.has(R);this.elements.delete(R);this.L.delete(R);this.Z.delete(R);this.X.delete(R)}; g.L.GP=function(R,l){this.clientPlaybackNonce!==l&&(this.clientPlaybackNonce=l,VP(gZ(),R),LtY(this))}; g.L.setTrackingParams=function(R,l){this.elements.has(R);l&&(R.visualElement=g.Ll(l))}; g.L.UF=function(R,l,y){this.elements.has(R);l?this.Z.add(R):this.Z.delete(R);var f=g.Py(),A=R.visualElement;this.X.has(R)?f&&A&&(l?g.MJ(f,[A]):g.RN(f,[A])):l&&!this.L.has(R)&&(f&&A&&g.Y$(f,A,void 0,y),this.L.add(R))}; g.L.hasVe=function(R){return this.elements.has(R)};g.O(g.i_,g.p);g.i_.create=function(R,l,y,f){try{var A=typeof R==="string"?R:"player"+g.s5(R),K=Xm[A];if(K){try{K.dispose()}catch(B){g.Tw(B)}Xm[A]=null}var G=new g.i_(R,l,y,f);G.addOnDisposeCallback(function(){Xm[A]=null;G.zR&&G.zR()}); return Xm[A]=G}catch(B){throw g.Tw(B),(B&&B instanceof Error?B:Error(String(B))).stack;}}; g.L=g.i_.prototype;g.L.n7=function(){return this.visibility}; g.L.E0=function(R){var l=this.Xo();if(R!==l){R.getVideoData().autonavState=l.getVideoData().autonavState;l.Xw(this.mD,this);var y=l.getPlaybackRate();l.dispose();this.IV.E0(R);R.setPlaybackRate(y);R.SQ(this.mD,this);$Rc(this)}}; g.L.zg=function(){this.Sp||(this.Sp=g.gh(gn(),vyQ()));return this.Sp}; g.L.QD=function(R){if(this.mediaElement){this.Kt&&(this.events.p_(this.Kt),this.Kt=null);g.Xr(this.aQ);this.hU().QD(!0,!1,R);this.template.QD();try{this.C("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.gV()}catch(l){g.dP(l)}this.mediaElement=null}}; g.L.ji=function(R,l,y){y=y===void 0?!1:y;if(R!==this.hU()){this.logger.debug(function(){return"start set presenting player, type "+R.getPlayerType()+", vid "+R.getVideoData().videoId}); var f=null;y||(y=this.hU(),f=y.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),r7(this.Ph,3),D8(this,"cuerangesremoved",y.Lw()),this.rN&&!R.isGapless()&&y.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),y=R.Lf()&&y.Lf(),this.yS.m1("iv_s"),w_Q(this,y));R.getPlayerType()===1&&this.E0(R);zv7(this,R);this.IV.ji(R);this.mediaElement&&R.setMediaElement(this.mediaElement);R.SQ(this.jl,this);R.uT()?a49(this,"setPresenting",!1):(this.f7("newdata",R,R.getVideoData()), f&&!g.Xp(f,R.getPlayerState())&&this.lJ(new g.HR(R.getPlayerState(),f)),l=l&&this.C("html5_player_preload_ad_fix")&&R.getPlayerType()===1,R.ul()&&!l&&this.f7("dataloaded",R,R.getVideoData()),(l=(l=R.getVideoData().X)&&l.video)&&this.VL.DG("onPlaybackQualityChange",l.quality),D8(this,"cuerangesadded",R.Lw()),l=R.getPlayerState(),g.V(l,2)?vo9(this):g.V(l,8)?R.playVideo():R.HK()&&R.pauseVideo(),l=this.Xo(),R.getPlayerType()===2&&(R.getVideoData().Yt=l.getVideoData().clientPlaybackNonce),R.getPlayerType()!== 2||this.O9()||(f=R.getVideoData(),l.R4(f.clientPlaybackNonce,f.Qq||"",f.breakType||0,f.Vu,f.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.L.KR=function(){if(this.Xo()!==this.hU()){var R=this.hU();this.logger.debug(function(){return"release presenting player, type "+R.getPlayerType()+", vid "+R.getVideoData().videoId}); this.ji(this.Xo())}}; g.L.FW=function(){return this.IV}; g.L.Fh=function(R){return this.IV.Fh(R)}; g.L.x4=function(R){return this.IV.x4(R)}; g.L.Xo=function(){return this.IV.Xo()}; g.L.hU=function(){return this.IV.hU()}; g.L.nh=lj(44);g.L.jEX=function(){ep(this)||(this.logger.debug("application playback ready"),this.hv(5))}; g.L.rFX=function(){if(!ep(this)){this.logger.debug("playback ready");f47(this);var R=this.hU(),l=R.getPlayerState();R.HK()?this.pauseVideo():l.isOrWillBePlaying()&&this.playVideo()}}; g.L.canPlayType=function(R){return Ou(R)}; g.L.U=function(){return this.Zq}; g.L.getVideoData=function(){return this.hU().getVideoData()}; g.L.Cj=lj(11);g.L.mL=function(){return this.Xo().getVideoData()}; g.L.getVideoLoadedFraction=function(R){return(R=this.Fh({playerType:R}))?R.getVideoLoadedFraction():this.IV.Z.getVideoLoadedFraction()}; g.L.lQ=function(){return this.template}; g.L.Il=function(){return this.Ph}; g.L.X3=function(){return this.yS}; g.L.sV=function(R){var l=this.Fh({playerType:1});l&&l.t6(R)}; g.L.Nu=function(){var R=this.Ph.Nu();this.VL.publish("videoStatsPingCreated",R);return R}; g.L.getVolume=function(){return Math.round(this.VL.getVolume())}; g.L.isMuted=function(){return this.VL.isMuted()}; g.L.bd=function(){if(this.Xo()===this.hU()&&this.bb)return this.bb.postId}; g.L.XA9=function(){var R=this;this.C("use_rta_for_player")||(g.Eb(this.Zq)?g.OS(this.Zq,g.MD(this.getVideoData())).then(function(l){Vs(gn(),l);qaJ(R.getVideoData(),R.Zq,R.zg())}):qaJ(this.getVideoData(),this.Zq,this.zg()))}; g.L.hV=function(R){this.VL.publish("poTokenVideoBindingChange",R)}; g.L.Q4=function(R){this.VL.publish("d6de4videobindingchange",R)}; g.L.hC=function(){this.nU&&this.nU.hC()}; g.L.t_=function(R){this.nU=R}; g.L.In=function(R){if(R===1){this.yS.tick("vr");var l=this.hU();l.D5();FS7(this.yS,l.getVideoData(),ydT(this));Y9s(this.Ph)}l=this.Zq;if(ES(l)&&l.W||g.qE(l)){var y;(((y=this.hU().getVideoData())==null?0:y.enableServerStitchedDai)||!this.O9())&&this.VL.DG("onAdStateChange",R)}}; g.L.setLoopVideo=function(R){var l=this.hU();l===this.Xo()&&l.dL()!==R&&(l.setLoop(R),this.VL.KX("onLoopChange",R))}; g.L.getLoopVideo=function(){return this.hU().dL()}; g.L.setLoopRange=function(R){var l=!1;!!this.bb!==!!R?l=!0:this.bb&&R&&(l=this.bb.startTimeMs!==R.startTimeMs||this.bb.endTimeMs!==R.endTimeMs||this.bb.postId!==R.postId||this.bb.type!==R.type);if(l){l=this.hU();WZ(l.getVideoData())&&l.T4("slr",{et:(R==null?void 0:R.endTimeMs)||-1});l=this.Xo();l.yb("applooprange");if(R){var y=new g.Jq(R.startTimeMs,R.endTimeMs,{id:"looprange",namespace:"applooprange"});l.addCueRange(y)}else{this.mL().clipConfig=void 0;var f;((y=this.bb)==null?void 0:y.type)!=="repeatChapter"|| isNaN(Number((f=this.bb)==null?void 0:f.loopCount))||(y={loopCount:String(this.bb.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.sE("repeatChapterLoopEvent",y))}this.bb=R;this.VL.KX("onLoopRangeChange",R||void 0);this.Xo()===this.hU()&&(this.WI(),l.aK())}}; g.L.getLoopRange=function(){return this.bb}; g.L.WI=function(){var R="",l=this.Xo();this.bb?l!==this.hU()?R="pnea":kdJ(this,l.getCurrentTime())&&(this.bb.loopCount=0,R="ilr"):R="nlr";var y=this.hU();if(WZ(y.getVideoData()))if(this.C("html5_gapless_log_loop_range_info")){var f,A;y.T4("slrre",{rej:R,ct:l.getCurrentTime(),lst:(f=this.bb)==null?void 0:f.startTimeMs,let:(A=this.bb)==null?void 0:A.endTimeMs})}else y.T4("slrre",{});R||ZjZ(this)}; g.L.setPlaybackRate=function(R,l){if(!isNaN(R)){R=X_s(this,R);var y=this.Xo();y.getPlaybackRate()!==R&&(y.setPlaybackRate(R),l&&!this.Zq.Y&&g.vW("yt-player-playback-rate",R),this.VL.DG("onPlaybackRateChange",R))}}; g.L.getCurrentTime=function(R,l){l=l===void 0?!0:l;var y=this.IV.DW;if(y)return y.getCurrentTime();var f=R===2&&this.getVideoData().enableServerStitchedDai;y=null;f?y=this.hU():y=this.Fh({playerType:R});return y?f&&this.Wh?(R=this.IV.D)?R.getCurrentTime(l):y.getCurrentTime():l?(l=$u(this,y),I$(this,l.getCurrentTime(),l)):y.getCurrentTime():this.IV.Z.getCurrentTime()}; g.L.Dm=function(){var R=this.Fh({playerType:void 0});if(!R)return this.IV.Z.Dm();R=$u(this,R);return I$(this,R.Dm(),R)}; g.L.getDuration=function(R,l){l=l===void 0?!0:l;var y=this.IV.DW;if(y)return y.getDuration();y=this.getVideoData();var f=R===2&&y.enableServerStitchedDai,A=null;f?A=this.hU():A=this.Fh({playerType:R});if(!A)return this.IV.Z.getDuration();if(y.hasProgressBarBoundaries()&&!f){var K,G=Number((K=y.progressBarStartPosition)==null?void 0:K.utcTimeMillis),B;K=Number((B=y.progressBarEndPosition)==null?void 0:B.utcTimeMillis);if(!isNaN(G)&&!isNaN(K))return(K-G)/1E3}if(WZ(y)&&!y.isLivePlayback)return wB(this, R);if(l)return R=QB(this,A),I$(this,R.getDuration(),R);if(f&&this.Wh){if(this.C("html5_huli_ssdai_use_playback_state"))return R=this.IV,R=R.J===R.D?R.J:null,(R==null?void 0:R.getDuration())||0;var H;return((H=this.IV.D)==null?void 0:H.getDuration())||0}return A.getDuration()}; g.L.wc=function(R){var l=this.Fh({playerType:R});return l?this.O9(l)?(l=QB(this,l),l.wc()-l.getCurrentTime()+this.getCurrentTime(R)):l.wc():this.IV.Z.wc()}; g.L.addPlayerResponseForAssociation=function(){}; g.L.finishSegmentByCpn=function(){return[]}; g.L.rB=function(){this.template.rB();var R=this.VL;R.state.element=this.template.element;var l=R.state.element,y;for(y in R.state.Z)R.state.Z.hasOwnProperty(y)&&(l[y]=R.state.Z[y]);(R=Inr(this.template.element))&&this.events.N(this.template,R,this.onFullscreenChange)}; g.L.getDebugText=function(R){var l=this.Xo().S1(R),y=this.hU();if(y!==this.Xo()){y=y.S1(R);for(var f=g.u(Object.keys(y)),A=f.next();!A.done;A=f.next())A=A.value,l["ad"+A]=y[A];if(R){y=l;f={};if(A=fS(document,"movie_player"))f.bounds=A.getBoundingClientRect(),f["class"]=A.className;A={};var K=g.aA("video-ads");K?(Hbs(K,A),A.html=K.outerHTML):A.missing=1;K={};var G=g.aA("videoAdUiSkipContainer"),B=g.aA("ytp-ad-skip-button-container"),H=g.aA("ytp-skip-ad-button"),n=G||B||H;n?(Hbs(n,K),K.ima=G?1:0,K.bulleit= B?1:0,K.component=H?1:0):K.missing=1;f=JSON.stringify({player:f,videoAds:A,skipButton:K});y.ad_skipBtnDbgInfo=f}}R&&this.mediaElement&&(l["0sz"]=""+(+VG(this.mediaElement.getSize())===0),l.op=this.mediaElement.Rg("opacity"),y=this.mediaElement.V8().y+this.mediaElement.getSize().height,l.yof=""+(+y<=0),l.dis=this.mediaElement.Rg("display"));R&&((R=(0,g.QU)())&&(l.gpu=R),(R=this.Zq.playerStyle)&&(l.ps=R),this.Zq.UL&&(l.webview=1));l.debug_playbackQuality=this.VL.getPlaybackQuality(1);l.debug_date=(new Date).toString(); l.origin=window.origin;l.timestamp=Date.now();delete l.uga;delete l.q;return JSON.stringify(l,null,2)}; g.L.getFeedbackProductData=function(){var R={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.U().experiments.experimentIds.join(", "),player_release:a[67]},l=this.getPlayerStateObject().WE;l&&(R.player_error_code=l.errorCode,R.player_error_details=JSON.stringify(l.errorDetail));return R}; g.L.getPresentingPlayerType=function(R){if(this.appState===1)return 1;if(ep(this))return 3;var l;return R&&((l=this.Wh)==null?0:l.M_(this.getCurrentTime()))?2:this.hU().getPlayerType()}; g.L.Vf=function(){return!1}; g.L.getPlayerStateObject=function(R){var l=this.IV.DW;return l?l.getPlayerState():this.Fh({playerType:R}).getPlayerState()}; g.L.getAppState=function(){return this.appState}; g.L.Grq=function(R){switch(R.type){case "loadedmetadata":this.jM.start();R=g.u(this.Y7);for(var l=R.next();!l.done;l=R.next())l=l.value,l49(this,l.id,l.iMQ,l.rLL,void 0,!1);this.Y7=[];break;case "loadstart":this.yS.m1("gv");break;case "progress":case "timeupdate":Ro(R.target.Wf())>=2&&this.yS.m1("l2s");break;case "playing":g.hn&&this.jM.start();if(g.Eb(this.Zq))R=!1;else{l=g.SF(this.Il());R=this.mediaElement.Rg("display")==="none"||VG(this.mediaElement.getSize())===0;var y=O9(this.template),f=this.hU().getVideoData(), A=g.xi(this.Zq);f=LC(f);l=!y||l||A||f||this.Zq.iQ;R=R&&!l}R&&(R=this.hU(),R.Hc(),this.getVideoData().nA||(this.getVideoData().nA=1,this.S$(),R.playVideo()))}}; g.L.lLx=function(R){this.VL.Ej("onLoadProgress",R)}; g.L.TcU=function(){this.VL.publish("playbackstalledatstart")}; g.L.qFU=function(R,l){this.VL.publish("sabrCaptionsDataLoaded",R,l)}; g.L.ucE=function(R){this.hU().JV(R)}; g.L.c1E=function(R){this.hU().D$(R)}; g.L.xsx=function(R){R=$u(this,this.hU());R=I$(this,R.getCurrentTime(),R);this.VL.DG("onVideoProgress",R);this.Zq.iP&&t7s(this,this.visibility.B0())&&this.pauseVideo()}; g.L.t1S=function(){this.VL.DG("onAutoplayBlocked");var R=this.hU().getVideoData();R&&(R.yv=!0);this.C("embeds_enable_autoplay_and_visibility_signals")&&g.kh(this.Zq)&&(R={autoplayBrowserPolicy:mc(),autoplayIntended:oe(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.sE("embedsAutoplayStatusChanged",R))}; g.L.mxL=function(){this.VL.publish("progresssync")}; g.L.M14=function(){this.VL.Ej("onPlaybackPauseAtStart")}; g.L.z9x=function(R){if(this.getPresentingPlayerType()===1){g.m2(R,1)&&!g.V(R.state,64)&&this.mL().isLivePlayback&&this.Xo().isAtLiveHead()&&this.VL.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.m2(R,2)){if(this.bb&&this.bb.endTimeMs>=(this.getDuration()-1)*1E3){ZjZ(this);return}vo9(this)}if(g.V(R.state,128)){var l=R.state;this.cancelPlayback(5);l=l.WE;JSON.stringify({errorData:l,debugInfo:this.getDebugText(!0)});this.VL.DG("onError",s0q(l.errorCode));this.VL.Ej("onDetailedError",{errorCode:l.errorCode, errorDetail:l.errorDetail,message:l.errorMessage,messageKey:l.pn,cpn:l.cpn});(0,g.eY)()-this.Zq.eI>6048E5&&this.VL.Ej("onReloadRequired")}l={};if(R.state.isPlaying()&&!R.state.isBuffering()&&!dh("pbresume","ad_to_video")&&dh("_start","ad_to_video")){var y=this.getVideoData();l.clientPlaybackNonce=y.clientPlaybackNonce;y.videoId&&(l.videoId=y.videoId);g.Xe(l,"ad_to_video");ba("pbresume",void 0,"ad_to_video");Y9s(this.Ph)}this.VL.publish("applicationplayerstatechange",R)}}; g.L.lJ=function(R){this.IV.DW||this.VL.publish("presentingplayerstatechange",R)}; g.L.mV=function(R){FF(this,dT(R.state));g.V(R.state,1024)&&this.VL.isMutedByMutedAutoplay()&&(va(this,{muted:!1,volume:this.Ui.volume},!1),zj(this,!1))}; g.L.onPlayerRequestSent=function(R){this.VL.KX("onPlayerRequestSent",R)}; g.L.N7$=function(R,l){R==="newdata"&&$Rc(this);this.VL.publish("applicationvideodatachange",R,l)}; g.L.OAL=function(R,l){this.C("html5_afmt_change_update_volume")&&f47(this);this.VL.Ej("onPlaybackAudioChange",this.VL.getAudioTrack().hF.name);this.VL.publish("internalaudioformatchange",this.VL.getAudioTrack().hF.id,l)}; g.L.aN1=function(R){var l=this.hU().getVideoData();R===l&&this.VL.DG("onPlaybackQualityChange",R.X.video.quality)}; g.L.wl=function(){var R=this.IV.L[2]||null;R&&(R=R.getVideoData(),this.hU().T4("ssdai",{cleanaply:1,acpn:R==null?void 0:R.clientPlaybackNonce,avid:R.videoId,isDai:this.mL().enableServerStitchedDai?1:0}),delete this.IV.L[2])}; g.L.IN$=function(R,l){this.f7(R,this.hU(),l)}; g.L.f7=function(R,l,y){this.logger.debug(function(){return"on video data change "+R+", player type "+l.getPlayerType()+", vid "+y.videoId}); this.Zq.PZ()&&l.T4("vdc",{type:R,vid:y.videoId||"",cpn:y.clientPlaybackNonce||""});l===this.Xo()&&(this.Zq.pw=y.oauthToken);l===this.Xo()&&(this.getVideoData().enableServerStitchedDai&&!this.Wh?(this.Xo().T4("sdai",{initSstm:1}),this.Wh=this.C("html5_enable_ssdai_transition_with_only_enter_cuerange")?new NKj(this.VL,this.Zq,this.Xo(),this):new g.Mn(this.VL,this.Zq,this.Xo(),this)):!this.getVideoData().enableServerStitchedDai&&this.Wh&&(this.Wh.dispose(),this.Wh=null,RCJ(this.IV)));if(R==="newdata")this.logger.debug("new video data, destroy modules"), r7(this.Ph,2),this.VL.publish("videoplayerreset",l);else{if(!this.mediaElement)return;R==="dataloaded"&&(this.Xo()===this.hU()?(l2(y.yL,y.qK),p_q(this)):Ijc(this));l.getPlayerType()===1&&(this.Zq.P1&&B$j(this),this.getVideoData().isLivePlayback&&!this.Zq.IB&&this.MW("html5.unsupportedlive",2,"DEVICE_FALLBACK"),y.isLoaded()&&((LY7(y)||this.getVideoData().YO)&&this.VL.publish("legacyadtrackingpingchange",this.getVideoData()),y.hasProgressBarBoundaries()&&goZ(this)));this.VL.publish("videodatachange", R,y,l.getPlayerType())}this.VL.DG("onVideoDataChange",{type:R,playertype:l.getPlayerType()});this.WI();var f=y.An;f?this.Ox.GP(f,y.clientPlaybackNonce):LtY(this.Ox)}; g.L.Vt=function(){XF(this,null);this.VL.Ej("onPlaylistUpdate")}; g.L.QVx=function(R){delete this.xx[R.getId()];this.Xo().removeCueRange(R);a:{R=this.getVideoData();var l,y,f,A,K,G,B,H,n,m,h=((l=R.P1)==null?void 0:(y=l.contents)==null?void 0:(f=y.singleColumnWatchNextResults)==null?void 0:(A=f.autoplay)==null?void 0:(K=A.autoplay)==null?void 0:K.sets)||((G=R.P1)==null?void 0:(B=G.contents)==null?void 0:(H=B.twoColumnWatchNextResults)==null?void 0:(n=H.autoplay)==null?void 0:(m=n.autoplay)==null?void 0:m.sets);if(h)for(l=g.u(h),y=l.next();!y.done;y=l.next())if(y= y.value,A=f=void 0,y=y.autoplayVideo||((f=y.autoplayVideoRenderer)==null?void 0:(A=f.autoplayEndpointRenderer)==null?void 0:A.endpoint),f=g.k(y,g.mh),K=A=void 0,y!=null&&((A=f)==null?void 0:A.videoId)===R.videoId&&((K=f)==null?0:K.continuePlayback)){R=y;break a}R=null}(l=g.k(R,g.mh))&&this.VL.KX("onPlayVideo",{sessionData:{autonav:"1",itct:R==null?void 0:R.clickTrackingParams},videoId:l.videoId,watchEndpoint:l})}; g.L.hv=function(R){var l=this;R!==this.appState&&(this.logger.debug(function(){return"app state change "+l.appState+" -> "+R}),R===2&&this.getPresentingPlayerType()===1&&(FF(this,-1),FF(this,5)),this.appState=R,this.VL.publish("appstatechange",R))}; g.L.MW=function(R,l,y,f,A){this.Xo().LJ(R,l,y,f,A)}; g.L.OO=lj(13);g.L.isAtLiveHead=function(R,l){l=l===void 0?!1:l;var y=this.Fh({playerType:R});if(!y)return this.IV.Z.isAtLiveHead();R=QB(this,y);y=$u(this,y);return R!==y?R.isAtLiveHead(I$(this,y.getCurrentTime(),y),!0):R.isAtLiveHead(void 0,l)}; g.L.Ql=function(){var R=this.Fh({playerType:void 0});return R?QB(this,R).Ql():this.IV.Z.Ql()}; g.L.seekTo=function(R,l,y,f,A){l=l!==!1;if(f=this.Fh({playerType:f}))this.appState===2&&dB(this),this.O9(f)?NP(this)?this.Wh.seekTo(R,{seekSource:A},l,y):this.Ns.seekTo(R,{seekSource:A},l,y):f.seekTo(R,{Nc:!l,ox:y,b8:"application",seekSource:A})}; g.L.seekBy=function(R,l,y,f){this.seekTo(this.getCurrentTime()+R,l,y,f)}; g.L.Z_E=function(){this.VL.DG("SEEK_COMPLETE")}; g.L.Wj1=function(){this.VL.KX("onAbnormalityDetected")}; g.L.Yj1=function(R){this.VL.KX("onSnackbarMessage",R)}; g.L.XlL=function(R){var l=this.hU(),y=l.getVideoData();if(this.appState===1||this.appState===2)y.startSeconds=R;this.appState===2?g.V(l.getPlayerState(),512)||dB(this):this.VL.DG("SEEK_TO",R)}; g.L.ho4=function(){this.VL.publish("airplayactivechange");this.Zq.C("html5_external_airplay_events")&&this.VL.Ej("onAirPlayActiveChange",this.VL.tL())}; g.L.UxL=function(){this.VL.publish("airplayavailabilitychange");this.Zq.C("html5_external_airplay_events")&&this.VL.Ej("onAirPlayAvailabilityChange",this.VL.Od())}; g.L.showAirplayPicker=function(){this.hU().GC()}; g.L.KjU=function(){this.VL.publish("beginseeking")}; g.L.cF1=function(){this.VL.publish("endseeking")}; g.L.getStoryboardFormat=function(R){return(R=this.Fh({playerType:R}))?QB(this,R).getStoryboardFormat():this.IV.Z.getStoryboardFormat()}; g.L.Tg=function(R){return(R=this.Fh({playerType:R}))?QB(this,R).getVideoData().Tg():this.IV.Z.Tg()}; g.L.O9=function(R){R=(R||this.hU()).getVideoData();if(NP(this))R=R===this.Wh.playback.getVideoData();else a:{var l=this.Ns;if(R===l.Z.getVideoData()&&l.X.length)R=!0;else{l=g.u(l.X);for(var y=l.next();!y.done;y=l.next())if(R.A1===y.value.A1){R=!0;break a}R=!1}}return R}; g.L.YW=function(R,l,y,f,A,K,G,B){this.logger.debug(function(){return"Adding video to timeline id="+R.video_id+"\n lengthMs="+f+" enterTimeMs="+A}); var H="",n=NP(this);this.hU().T4("appattl",{sstm:this.Wh?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:n});n?(y=L4i(this.Wh,R,l,y,f,A,K,G,B),H=(y==null?void 0:y.A1)||"",this.C("html5_ssdai_new_decoration_logic")&&this.Xo().o4(B||"",l,(y==null?void 0:y.clientPlaybackNonce)||"")):H=CBs(this.Ns,R,y,f,A,K);this.logger.debug(function(){return"Video added to timeline id="+R.video_id+" timelinePlaybackId="+H}); return H}; g.L.Am=function(R,l,y,f,A,K,G,B){if(NP(this)){var H=L4i(this.Wh,R,l,y,f,A,K,G,B);this.logger.debug(function(){return"Remaining video added to timeline id="+R.video_id+" timelinePlaybackId="+H})}return""}; g.L.Ft=function(R){this.C("html5_ssdai_new_decoration_logic")&&this.Xo().o4(R,"","");var l;(l=this.Wh)==null||l.Ft(R)}; g.L.kY=function(R,l){R=R===void 0?-1:R;l=l===void 0?Infinity:l;NP(this)||A5j(this.Ns,R,l)}; g.L.C6=function(R,l,y){if(NP(this)){var f=this.Wh,A=f.Z.Y.get(R);A?(y===void 0&&(y=A.qs),F4T(f,A,l,y)):f.nW("Invalid_timelinePlaybackId_"+R+"_specified")}else{f=this.Ns;A=null;for(var K=g.u(f.X),G=K.next();!G.done;G=K.next())if(G=G.value,G.A1===R){A=G;break}A?(y===void 0&&(y=A.qs),fjZ(f,A,l,y)):mS(f,"InvalidTimelinePlaybackId timelinePlaybackId="+R)}}; g.L.enqueueVideoByPlayerVars=function(R,l,y,f){y=y===void 0?Infinity:y;f=f===void 0?"":f;this.O9();R=new g.KC(this.Zq,R);f&&(R.A1=f);V7s(this,R,l,y)}; g.L.queueNextVideo=function(R,l,y,f,A){y=y===void 0?NaN:y;R=this.preloadVideoByPlayerVars(R,l===void 0?1:l,y,f===void 0?"":f,A===void 0?"":A);l=this.hU();R&&(this.C("html5_check_queue_on_data_loaded")?this.U().supportsGaplessShorts()&&l.getVideoData().V&&(y=this.Ok,f=this.rN.J,y.Y!==R&&(y.X=l,y.Y=R,y.L=1,y.Z=R.getVideoData(),y.J=f,y.Z.isLoaded()?y.D():y.Z.subscribe("dataloaded",y.D,y))):(y=N6Y(l,R,this.rN.J),y!=null?(l.T4("sgap",y),l.getVideoData().V&&l.PU(!1)):(R=R.getVideoData(),l=this.Ok,l.Z!== R&&(l.Z=R,l.L=1,R.isLoaded()?l.V():l.Z.subscribe("dataloaded",l.V,l)))))}; g.L.Cy=function(R,l,y,f){var A=this;y=y===void 0?0:y;f=f===void 0?0:f;QB(this,this.hU()).uI();CCQ(this.rN,R,l,y,f).then(function(){A.VL.Ej("onQueuedVideoLoaded")},function(){})}; g.L.xv=function(){return this.rN.xv()}; g.L.Zt=function(R){var l=this.rN.Z;return l?l.Lg(R):!1}; g.L.clearQueue=function(R,l){R=R===void 0?!1:R;l=l===void 0?!1:l;this.logger.debug("Clearing queue");this.rN.clearQueue(R,l)}; g.L.loadVideoByPlayerVars=function(R,l,y,f,A,K){l=l===void 0?1:l;var G=this.Xo();if(l===2&&this.mL().enableServerStitchedDai&&G&&!G.k8())return G.T4("lvonss",{vid:(R==null?void 0:R.videoId)||"",ptype:l}),!1;var B=!1;G=new g.KC(this.Zq,R);G.CJ=K;g.oG(this.Zq)&&!G.Hf&&OF(this.yS);var H;K=this.yS;var n=(H=G.B)!=null?H:"";K.timerName=n;this.yS.rh("pl_i");this.C("web_player_early_cpn")&&G.clientPlaybackNonce&&this.yS.infoGel({clientPlaybackNonce:G.clientPlaybackNonce});J9T(G).supportsVp9Encoding===!1&& this.hU().T4("noVp9enc",{});if(this.U().supportsGaplessShorts()){H=YL9(this.rN,G,l);if(H==null){FF(this,-1);R=this.rN;R.app.U().C("html5_gapless_new_slr")?xu(R.app,"gaplessshortslooprange"):R.app.setLoopRange(null);R.app.U().C("html5_gapless_remove_videoplaytime100_cuerange")&&R.app.CP("videoplaytime100");R.app.getVideoData().Uo=!0;var m;(m=R.Z)==null||m.z1();var h;(h=R.Z)==null||h.t4();y={b8:"gapless_to_next_video",seekSource:60,q9:R.J.Z};f=g.yx(R.app.U().experiments,"html5_gapless_seek_offset"); if(R.J.Z){var c,E;A=(E=(c=R.L)==null?void 0:pQ(c).bU)!=null?E:tsQ(R)}else A=tsQ(R);var W;(W=R.app.hU())==null||W.seekTo(A+f,y);if(!R.app.getPlayerStateObject(l).isPlaying()){var Q;(Q=R.app.hU())==null||Q.playVideo(!0)}var e;(e=R.app.hU())==null||e.wq();R.V();return!0}c=this.C("html5_shorts_gapless_preload_fallback");E=this.rN.Z;c&&E&&!E.Fx()&&(W=E.getVideoData(),W=this.Zq.C("html5_autonav_autoplay_in_preload_key")?U9(this,l,W):Sp(this,l,W.videoId,W.A1),this.IV.Y.set(W,E,3600));this.rN.clearQueue(c); this.hU().T4("sgap",{f:H})}if(A){for(;G.nm.length&&G.nm[0].isExpired();)G.nm.shift();c=G.nm.length-1;B=c>0&&A.X(G.nm[c])&&A.X(G.nm[c-1]);G.nm.push(A)}y||(R&&ePo(R)?(aG(this.Zq)&&!this.QU&&(R.fetch=0),XF(this,R)):this.playlist&&XF(this,null),R&&(this.QU=y8(!1,R.external_list)));this.VL.publish("loadvideo");l=this.Ti(G,l,f);B&&this.MW("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+G.nm.join()).replace(/[;:,]/g,"_"));return l}; g.L.preloadVideoByPlayerVars=function(R,l,y,f,A){l=l===void 0?1:l;y=y===void 0?NaN:y;f=f===void 0?"":f;A=A===void 0?"":A;var K="";if(this.Zq.C("html5_autonav_autoplay_in_preload_key"))K=qsJ(this,l,R,A);else{var G=aa(R);K=Sp(this,l,G,A)}if(this.IV.Y.get(K))return this.logger.debug(function(){return"already preloaded "+K}),null; R=new g.KC(this.Zq,R);A&&(R.A1=A);return C3q(this,R,l,y,f)}; g.L.setMinimized=function(R){this.visibility.setMinimized(R);(R=lSc(this.Ph))&&(this.isMinimized()?R.load():R.unload());this.VL.publish("minimized")}; g.L.setInline=function(R){this.visibility.setInline(R)}; g.L.setInlinePreview=function(R){this.visibility.setInline(R)}; g.L.KE=function(R){YsQ(this,R)||this.visibility.KE(R)}; g.L.setSqueezeback=function(R){this.visibility.setSqueezeback(R)}; g.L.K9=function(){var R,l=(R=this.mediaElement)==null?void 0:R.al();l&&(this.Zq.cC&&v5(T5(function(){return document.exitFullscreen()}),function(){}),v5(T5(function(){return LF(l)}),function(){}))}; g.L.SjS=function(){this.mediaElement.al();this.mediaElement.al().webkitPresentationMode==="picture-in-picture"?this.KE(!0):this.KE(!1)}; g.L.togglePictureInPicture=function(){this.hU().togglePictureInPicture()}; g.L.Ti=function(R,l,y){l=l===void 0?1:l;this.logger.debug(function(){return"start load video, id "+R.videoId+", type "+l}); dh("_start",this.yS.timerName)||g.qM(ia)(void 0,this.yS.timerName);var f=!1,A=jyT(this,l,R,!1);A?(f=!0,R.dispose()):(A=Pa(this,l,R,!0,y),(this.C("html5_onesie")||this.C("html5_load_before_stop"))&&A.X$()&&A.A9(),this.jM.stop(),l===1&&l!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,l),this.ji(A));A===this.Xo()&&(this.Zq.pw=R.oauthToken);if(!A.X$())return!1;if(A===this.Xo())return this.hv(1),y=dB(this),f&&this.C("html5_player_preload_ad_fix")&&A.getPlayerType()===1&& A.ul()&&this.f7("dataloaded",A,A.getVideoData()),y;A.PT();return!0}; g.L.cueVideoByPlayerVars=function(R,l){var y=this;l=l===void 0?1:l;var f=this.Xo();if(this.mL().enableServerStitchedDai&&f&&!f.k8()&&R&&Object.keys(R).length>0)f.T4("qvonss",{vid:(R==null?void 0:R.videoId)||"",ptype:l});else if(R&&ePo(R))if(this.KV=!0,XF(this,R),(R=g.iR(this.playlist))&&R.Nl())ku(this,R,l);else this.playlist.onReady(function(){Tj(y)}); else{l||(l=this.getPresentingPlayerType());l===1&&this.Vt();f=new g.KC(this.Zq,R);var A=g.kh(this.Zq)&&!this.Zq.Yb&&l===1&&!f.isAd()&&!f.Qq;this.VL.publish("cuevideo");A?(this.hU().getVideoData().loading=!0,zPJ(f,R?R:{}).then(function(K){ku(y,K,l)}),f.dispose()):ku(this,f,l)}}; g.L.MA=function(R,l,y,f,A,K,G){if(!R&&!y)throw Error("Playback source is invalid");if(Zq(this.Zq)||g.hq(this.Zq))return l=l||{},l.lact=uq(),l.vis=this.VL.getVisibilityState(),this.VL.KX("onPlayVideo",{videoId:R,watchEndpoint:K,sessionData:l,listId:y}),!1;Q$7(this.yS);this.yS.reset();R={video_id:R};f&&(R.autoplay="1");f&&(R.autonav="1");K&&(R.player_params=K.playerParams);G&&(R.oauth_token=G);y?(R.list=y,this.loadPlaylist(R)):this.loadVideoByPlayerVars(R,1);return!0}; g.L.cuePlaylist=function(R,l,y,f){this.KV=!0;M7k(this,R,l,y,f)}; g.L.loadPlaylist=function(R,l,y,f){this.KV=!1;M7k(this,R,l,y,f)}; g.L.q0=function(){return this.VL.isMutedByMutedAutoplay()?!1:this.IV.DW?!0:!(!this.playlist||!this.playlist.Vl())}; g.L.g$=lj(5); g.L.nextVideo=function(R,l){var y=g.oY(this.Xo().getVideoData());g.DN(this.VL)&&y?this.MA(y.videoId,l?y.cg:y.sessionData,y.playlistId,l,void 0,y.VV||void 0):this.QU?this.VL.Ej("onPlaylistNext"):this.getPresentingPlayerType()===3?N9(this.Ph).nextVideo():!this.playlist||aG(this.Zq)&&!this.VL.isFullscreen()||(this.playlist.Vl(R)&&TBj(this.playlist,bPs(this.playlist)),this.playlist.loaded?(R=l&&this.Zq.C("html5_player_autonav_logging"),l&&this.VL.publish("playlistautonextvideo"),this.Ti(g.iR(this.playlist,void 0, l,R),1)):this.KV=!1)}; g.L.previousVideo=function(R){this.QU?this.VL.Ej("onPlaylistPrevious"):this.getPresentingPlayerType()===3?N9(this.Ph).Ij():!this.playlist||aG(this.Zq)&&!this.VL.isFullscreen()||(this.playlist.ip(R)&&TBj(this.playlist,Xas(this.playlist)),this.playlist.loaded?this.Ti(g.iR(this.playlist),1):this.KV=!1)}; g.L.playVideoAt=function(R){this.QU?this.VL.Ej("onPlaylistIndex",R):this.playlist&&(this.playlist.loaded?this.Ti(g.iR(this.playlist,R),1):this.KV=!1,TBj(this.playlist,R))}; g.L.getPlaylist=function(){return this.playlist}; g.L.pj=lj(19);g.L.CP=function(R){this.Y7=g.bs(this.Y7,function(K){return K.id!==R}); for(var l=this.Xo(),y=l.Lw(),f=0;f0&&(H=Math.floor(n/1E3))}H=l?l.G9:H;var m={AD_BLOCK:this.Z++,AD_BREAK_LENGTH:H,AUTONAV_STATE:Jw(this.player.U()),CA_TYPE:"image",CPN:B.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.Ql()*1E3,LACT:uq(),LIVE_INDEX:l?this.L++:1,LIVE_TARGETING_CONTEXT:l&&l.context?l.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.lQ().IJ().height,P_W:this.player.lQ().IJ().width,YT_REMOTE:A?A.join(","):""},h=Hh(Bh);Object.keys(h).forEach(function(E){h[E]!=null&&(m[E.toUpperCase()]=h[E].toString())}); y!==""&&(m.BISCOTTI_ID=y);y={};s1(R)&&(y.sts="20249",(l=this.player.U().forcedExperiments)&&(y.forced_experiments=l));var c=K0(g.TS(R,m),y);return c.split("?").length!==2?vK(Error("Invalid AdBreakInfo URL")):g.OS(this.player.U(),B==null?void 0:B.oauthToken).then(function(E){if(E&&aw()){var W=gn();Vs(W,E)}E=f.player.zg(W);W=rdq(f,c,m,B.isMdxPlayback,G);return g.xr(E,W,"/youtubei/v1/player/ad_break").then(function(Q){return Q})})}; gB.prototype.reset=function(){this.L=this.Z=1};g.O(vWK,gB); vWK.prototype.X=function(R,l,y){l=l===void 0?{}:l;var f=l.IK;var A=l.Dz;var K=l.cueProcessedMs;y=y===void 0?"":y;l=this.Z;this.Z++;var G=this.player.U().C("h5_disable_macro_substitution_in_get_ad_break")?R:z9Z(this,R,{IK:f,Dz:A,cueProcessedMs:K},y,l);if(G.split("?").length!==2)return Math.random()<.1&&g.dP(Error("Invalid AdBreakInfo URL")),vK(Error("Invalid AdBreakInfo URL"));var B=this.player.getVideoData(1).isMdxPlayback,H=y;y=QJY.exec(G);y=y!=null&&y.length>=2?y[1]:"";R=$IQ.test(G);var n=e9k.exec(G); n=n!=null&&n.length>=2?n[1]:"";var m=bbi.exec(G);m=m!=null&&m.length>=2&&!Number.isNaN(Number(m[1]))?Number(m[1]):1;var h=XLs.exec(G);h=h!=null&&h.length>=2?h[1]:"0";var c=RG(this.player.U().v0),E=g.qL(this.player.getVideoData(1).CX,!0);Laj(this,E,G,H===""?"":H,this.player.U(),this.player.getVideoData(1));H={splay:!1,lactMilliseconds:String(uq()),playerHeightPixels:Math.trunc(this.player.lQ().IJ().height),playerWidthPixels:Math.trunc(this.player.lQ().IJ().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20249,autonavState:Jw(this.player.U())};if(B){B={};var W=this.player.U().tO;Pf7(B,W?W.join(","):"")&&(H.mdxContext=B)}if(B=T$T.includes(c)?void 0:g.xa("PREF")){W=B.split(RegExp("[:&]"));for(var Q=0,e=W.length;Q1&&r[1].toUpperCase()==="TRUE"){E.user.lockedSafetyMode=!0;break}}H.autoCaptionsDefaultOn=FaQ(B)}G=dIj.exec(G);(G=G!=null&&G.length>=2?G[1]:"")&&n&&(E.user.credentialTransferTokens= [{token:G,scope:"VIDEO"}]);G={contentPlaybackContext:H};H=this.player.getVideoData(1).getGetAdBreakContext();B=this.player.getVideoData(1).clientPlaybackNonce;W=K!==void 0?Math.round(K).toString():void 0;Q=(f==null?0:f.context)?f.context:void 0;e=0;K&&A&&!f&&(A=A.end-A.start,A>0&&(e=Math.floor(A/1E3)));f=(f=Math.trunc((f?f.G9:e)*1E3))?String(f):void 0;A=this.player.Ql()*1E3;A=Number.isNaN(A)?0:Math.trunc(A);l={adBlock:l,params:y,breakIndex:m,breakPositionMs:h,clientPlaybackNonce:B,topLevelDomain:c, isProxyAdTagRequest:R,context:E,overridePlaybackContext:G,cueProcessedMs:W,videoId:n?n:void 0,liveTargetingParams:Q,breakLengthMs:f,driftFromHeadMs:A?String(A):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:H?H:void 0};return wLJ(this,l)};var Udt={G3E:"replaceUrlMacros",VK7:"onAboutThisAdPopupClosed",PEX:"executeCommand"};xIi.prototype.jU=function(){return"adPingingEndpoint"}; xIi.prototype.Uh=function(R,l,y){LmQ(this.g7.get(),R,l,y)};I4s.prototype.jU=function(){return"changeEngagementPanelVisibilityAction"}; I4s.prototype.Uh=function(R){this.G.KX("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:R})};N$Y.prototype.jU=function(){return"loggingUrls"}; N$Y.prototype.Uh=function(R,l,y){R=g.u(R);for(var f=R.next();!f.done;f=R.next())f=f.value,LmQ(this.g7.get(),f.baseUrl,l,y,f.attributionSrcMode)};g.O(UIi,g.p);g.O(CP,g.p);g.L=CP.prototype;g.L.addListener=function(R){this.listeners.push(R)}; g.L.removeListener=function(R){this.listeners=this.listeners.filter(function(l){return l!==R})}; g.L.dN=function(R,l,y,f,A,K,G,B){if(R==="")BR("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(R!==this.Z||y){this.Z=R;this.RE.get().dN(R,l,y,f,A,K,G,B);this.fX.get().dN(R,l,y,f,A,K,G,B);var H;(H=this.j_)==null||H.get().dN(R,l,y,f,A,K,G,B);this.X.dN(R,l,y,f,A,K,G,B);H=g.u(this.listeners);for(var n=H.next();!n.done;n=H.next())n.value.dN(R,l,y,f,A,K,G,B)}else BR("Duplicate content video loaded signal")}; g.L.yF1=function(){this.Z&&this.fm(this.Z)}; g.L.fm=function(R){this.Z=void 0;for(var l=g.u(this.listeners),y=l.next();!y.done;y=l.next())y.value.fm(R)};qP.prototype.U1=function(R,l,y,f,A){S0Y(this);this.J=!l&&y===0;var K=this.G.getVideoData(1),G=this.G.getVideoData(2);K&&(this.contentCpn=K.clientPlaybackNonce,this.videoId=K.videoId,this.Z=K.D);G&&(this.adCpn=G.clientPlaybackNonce,this.adVideoId=G.videoId,this.adFormat=G.adFormat);this.Y=R;f<=0?(S0Y(this),this.J=!l&&y===0):(this.actionType=this.J?l?"unknown_type":"video_to_ad":l?"ad_to_video":"ad_to_ad",this.videoStreamType=A?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.L=!0,dh("_start",this.actionType)&&DIK(this)))}; qP.prototype.reset=function(){return new qP(this.G)};g.O(tw,g.p);tw.prototype.addCueRange=function(R,l,y,f,A,K,G){K=K===void 0?3:K;G=G===void 0?1:G;this.Z.has(R)?BR("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:R}):(R=new ZbZ(R,l,y,f,K),this.Z.set(R.id,{Dz:R,listener:A,RA:G}),this.G.OS([R],G))}; tw.prototype.removeCueRange=function(R){var l=this.Z.get(R);l?(this.G.c$([l.Dz],l.RA),this.Z.delete(l.Dz.id)):BR("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:R})}; tw.prototype.onCueRangeEnter=function(R){if(this.Z.has(R.id))this.Z.get(R.id).listener.onCueRangeEnter(R.id)}; tw.prototype.onCueRangeExit=function(R){if(this.Z.has(R.id))this.Z.get(R.id).listener.onCueRangeExit(R.id)}; g.O(ZbZ,g.Jq);Yu.prototype.addPlayerResponseForAssociation=function(R){this.G.addPlayerResponseForAssociation(R)};MP.prototype.In=function(R){this.G.In(R)}; MP.prototype.oQ=function(R){var l=g.SJ.apply(1,arguments);R==="onAdStart"||R==="onAdEnd"?this.G.DG.apply(this.G,[R].concat(g.ci(l))):this.G.KX.apply(this.G,[R].concat(g.ci(l)))};R4.prototype.Y4=function(R){return R&&lm(this)};var yik=null;g.O(l6r,g.Ae);l6r.prototype.EE=function(R){return this.Z.hasOwnProperty(R)?this.Z[R].EE():{}}; g.lA("ytads.bulleit.getVideoMetadata",function(R){return yO().EE(R)}); g.lA("ytads.bulleit.triggerExternalActivityEvent",function(R,l,y){var f=yO();y=RtZ(y);y!==null&&f.publish(y,{queryId:R,viewabilityString:l})});g.L=fh.prototype;g.L.cE=function(R,l){if(!this.Z.has(R))return{};if(l==="seek"){l=!1;l=l===void 0?!1:l;var y=PI(qX).Z3(R,{});y?kF(y):l&&(R=PI(qX).QP(null,zX(),!1,R),R.fW=3,FJY([R]));return{}}l=Aiq(l);if(l===null)return{};var f=this.G.d$();if(!f)return{};var A=this.G.getPresentingPlayerType(!0);if((y=this.G.getVideoData(A))==null||!y.isAd())return{};y={opt_adElement:f,opt_fullscreen:this.RE.get().isFullscreen()};return Fk9(l,R,y)}; g.L.Tz=function(R,l,y,f,A){this.Z.has(R)&&(f<=0||A<=0||PI(qX).Tz(R,l,y,f,A))}; g.L.JD=function(R){var l;(l=this.Z.get(R.queryId))==null||l.JD()}; g.L.Di=function(R){var l;(l=this.Z.get(R.queryId))==null||l.Di()}; g.L.R6=function(R){var l;(l=this.Z.get(R.queryId))==null||l.R6()}; g.L.yB=function(R){var l;(l=this.Z.get(R.queryId))==null||l.yB()}; g.L.b7=function(R){var l;(l=this.Z.get(R.queryId))==null||l.b7()};oIj.prototype.send=function(R,l,y,f){try{htc(this,R,l,y,f===void 0?!1:f)}catch(A){}};g.O(ciJ,oIj);EIY.prototype.send=function(R,l,y,f){var A=!1;try{if(f==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||f==="ATTRIBUTION_SRC_MODE_XHR_OPTION")A=!0,R=B_r(R);f=A;var K=g.HF(R);if(K[1]==="https")var G=R;else K[1]="https",G=BF("https",K[2],K[3],K[4],K[5],K[6],K[7]);var B=a9q(G);K=[];var H=CxQ(G)&&this.aE.get().G.U().experiments.EL("add_auth_headers_to_remarketing_google_dot_com_ping");if(s1(G)||H)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.Z.send({baseUrl:G,scrubReferrer:B,headers:K},l,y,f)}catch(n){}};BD.prototype.Y0=function(){return this.G.Y0(1)};g.O(HD,g.p);g.L=HD.prototype;g.L.J2=function(){return this.G.getVideoData(1).clientPlaybackNonce}; g.L.addListener=function(R){this.listeners.push(R)}; g.L.removeListener=function(R){this.listeners=this.listeners.filter(function(l){return l!==R})}; g.L.dN=function(){this.SH.clear();this.ew=null;this.ST.get().clear()}; g.L.fm=function(){}; g.L.DlS=function(R,l,y,f,A){l.videoId==="nPpU29QrbiU"&&this.G.T4("ads_ssm_vdc_s",{pt:y,dvt:R});Sw(this.aE.get())&&R!=="dataloaded"||$VQ(this,l,y);if(lm(this.aE.get())&&R==="newdata"&&A!==void 0){R=this.J2();var K=l.clientPlaybackNonce,G={};H9(this,"rte",(G.ec=K,G.xc=f==null?void 0:f.clientPlaybackNonce,G.tr=A,G.pt=y,G.ia=K!==R,G.ctp=B9(K),G));l=l.clientPlaybackNonce;f=f==null?void 0:f.clientPlaybackNonce;A=et7(A);if(A!==1)if(f!==void 0)for(y=g.u(this.listeners),R=y.next();!R.done;R=y.next())R.value.N6(f, l,A);else BR("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:l,transitionReason:String(A)});A=g.u(this.listeners);for(f=A.next();!f.done;f=A.next())f.value.zG(l)}}; g.L.Bcq=function(R,l){R!==void 0&&(this.ew=R,l===void 0?BR("Expected ad video start time on SS video changed"):this.SH.set(R,l));var y=this.G.getPresentingPlayerType(!0),f=this.G.getVideoData(y),A;R===void 0?A=null:A=this.ST.get().Z.get(R)||null;this.G.getVideoData(1).T4("ads_ssvc",{pt:y,cpn:f==null?void 0:f.clientPlaybackNonce,crtt:this.G.getCurrentTime(1,!1),atlh:this.G.isAtLiveHead(),adstt:l,pid:R,slid:A==null?void 0:A.layoutId});f?$VQ(this,f,y):BR("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.G.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:R})}; g.L.O1=function(R,l){var y=R.author,f=R.clientPlaybackNonce,A=R.isListed,K=R.A1,G=R.title,B=R.XO,H=R.EU,n=R.isMdxPlayback,m=R.BO,h=R.mdxEnvironment,c=R.isAutonav,E=R.WM,W=R.Hf,Q=R.jO,e=R.videoId||"",r=R.profilePicture||"",d=R.BQ||"",z=R.VU()||!1,N=R.h1()||!1;R=R.e7||void 0;K=this.ST.get().Z.get(K)||{layoutId:null,slotId:null};var D=this.G.getVideoData(1),t=D.QS();D=D.getPlayerResponse();l=1E3*this.G.getDuration(l);var C=1E3*this.G.getDuration(1),Ac,Bi,ar=(D==null?void 0:(Ac=D.playerConfig)==null? void 0:(Bi=Ac.daiConfig)==null?void 0:Bi.enableDai)||!1,nk,Y;Ac=(D==null?void 0:(nk=D.playerConfig)==null?void 0:(Y=nk.daiConfig)==null?void 0:Y.enablePreroll)||!1;return Object.assign({},K,{videoId:e,author:y,clientPlaybackNonce:f,Qg:l,uH:C,daiEnabled:ar,s6:Ac,isListed:A,QS:t,profilePicture:r,title:G,BQ:d,XO:B,EU:H,e7:R,isMdxPlayback:n,BO:m,mdxEnvironment:h,isAutonav:c,WM:E,Hf:W,jO:Q,VU:z,h1:N})}; g.L.G4=function(){this.listeners.length=0;this.GO=null;g.p.prototype.G4.call(this)};g.O(nh,g.p);g.L=nh.prototype;g.L.dN=function(){var R=this;lm(this.aE.get())||(this.Z=wX(function(){R.G.Fx()||R.G.SI("ad",1)}))}; g.L.fm=function(){}; g.L.addListener=function(R){this.listeners.push(R)}; g.L.removeListener=function(R){this.listeners=this.listeners.filter(function(l){return l!==R})}; g.L.B_=function(){}; g.L.playVideo=function(){this.G.playVideo()}; g.L.pauseVideo=function(){this.G.pauseVideo()}; g.L.resumeVideo=function(R){this.Hp(R)&&this.G.playVideo()}; g.L.Hp=function(R){return this.G.getPlayerState(R)===2}; g.L.getCurrentTimeSec=function(R,l,y){var f=this.fX.get().ew;if(R===2&&!l&&f!==null)return XHY(this,f);Nc(this.aE.get(),"html5_ssap_use_cpn_to_get_time")||(y=void 0);return y!==void 0?this.G.getCurrentTime(R,l,y):this.G.getCurrentTime(R,l)}; g.L.getVolume=function(){return this.G.getVolume()}; g.L.isMuted=function(){return this.G.isMuted()}; g.L.getPresentingPlayerType=function(){return this.G.getPresentingPlayerType(!0)}; g.L.getPlayerState=function(R){return this.G.getPlayerState(R)}; g.L.isFullscreen=function(){return this.G.isFullscreen()}; g.L.isAtLiveHead=function(){return this.G.isAtLiveHead()}; g.L.UO=function(R){this.G.UO(R)}; g.L.eEU=function(){var R=this.G.getPresentingPlayerType(!0),l=this.getCurrentTimeSec(R,!1);if(R===2){R=g.u(this.listeners);for(var y=R.next();!y.done;y=R.next())y.value.NP(l)}else if(R===1)for(R=g.u(this.Pg),y=R.next();!y.done;y=R.next())y.value.B_(l)}; g.L.iAL=function(R){for(var l=g.u(this.listeners),y=l.next();!y.done;y=l.next())y.value.gh(R,this.getPresentingPlayerType())}; g.L.onFullscreenToggled=function(R){for(var l=g.u(this.listeners),y=l.next();!y.done;y=l.next())y.value.onFullscreenToggled(R)}; g.L.onVolumeChange=function(){for(var R=g.u(this.listeners),l=R.next();!l.done;l=R.next())l.value.onVolumeChange()}; g.L.R9=function(){for(var R=this.G.isMinimized(),l=g.u(this.listeners),y=l.next();!y.done;y=l.next())y.value.R9(R)}; g.L.W6=function(R){for(var l=g.u(this.listeners),y=l.next();!y.done;y=l.next())y.value.W6(R)}; g.L.ub=function(){for(var R=this.G.lQ().IJ(),l=g.u(this.listeners),y=l.next();!y.done;y=l.next())y.value.rz(R)}; g.L.AO=function(R){for(var l=g.u(this.listeners),y=l.next();!y.done;y=l.next())y.value.AO(R)}; g.L.UC=function(){for(var R=g.u(this.listeners),l=R.next();!l.done;l=R.next())l.value.UC()};g.O(riT,g.p);g.O(Ew,g.p);Ew.prototype.G4=function(){this.rL.Fx()||this.rL.get().removeListener(this);g.p.prototype.G4.call(this)};WD.prototype.fetch=function(R){var l=R.H8;return this.Z.fetch(R.tC,{IK:R.IK===void 0?void 0:R.IK,Dz:l,cueProcessedMs:R.cueProcessedMs===void 0?0:R.cueProcessedMs}).then(function(y){return vIT(y,l)})};g.O(Lh,g.p);g.L=Lh.prototype;g.L.addListener=function(R){this.listeners.push(R)}; g.L.removeListener=function(R){this.listeners=this.listeners.filter(function(l){return l!==R})}; g.L.ZZ=function(R){ztj(this,R,1)}; g.L.onAdUxClicked=function(R,l){Ow(this,function(y){y.wx(R,l)})}; g.L.kA=function(R){Ow(this,function(l){l.Qk(R)})}; g.L.c_=function(R){Ow(this,function(l){l.RD(R)})}; g.L.gbS=function(R){Ow(this,function(l){l.Gs(R)})};im.prototype.reduce=function(R){switch(R.event){case "unknown":return}var l=R.identifier;var y=this.Z[l];y?l=y:(y={V9:null,AE:-Infinity},l=this.Z[l]=y);y=R.startSecs+R.Z/1E3;if(!(y=this.Z.startSecs&&y.startSecs<=this.Z.startSecs+this.Z.G9)){var f=void 0;if(jw(this.aE.get())&&y.identifier!==((f=this.Z)==null?void 0:f.identifier)){var A=f=void 0,K=void 0,G=void 0;Pf(this.g7.get(),"ocud","ccpi."+y.identifier+";ccpe."+y.event+";ccps."+y.startSecs+";\n ccpd."+y.G9+";pcpi."+((f=this.Z)==null?void 0:f.identifier)+ ";pcpe."+((A=this.Z)==null?void 0:A.event)+";\n pcps."+((K=this.Z)==null?void 0:K.startSecs)+";pcpd."+((G=this.Z)==null?void 0:G.G9)+";")}f=void 0;y.identifier!==((f=this.Z)==null?void 0:f.identifier)&&BR("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.Z=y,I6i(this,y)}}; g.L.G4=function(){this.X!=null&&(this.X.unsubscribe("cuepointupdated",this.r0,this),this.X=null);this.listeners.length=0;this.z7.length=0;g.p.prototype.G4.call(this)};g.L=FW.prototype;g.L.YW=function(R,l,y,f,A,K,G){return this.G.YW(R,l,y,f,A,K,G)}; g.L.kY=function(R,l){this.G.kY(R,l)}; g.L.C6=function(R,l,y){this.G.C6(R,l,y)}; g.L.Ft=function(R){this.G.Ft(R)}; g.L.Am=function(R,l,y,f,A,K,G){return this.G.Am(R,l,y,f,A,K,G)}; g.L.Ez=function(R){return this.G.Ez(R)}; g.L.finishSegmentByCpn=function(R,l,y){y=UVr(y);this.G.finishSegmentByCpn(R,l,y)};g.O(QO,g.p);g.O(jVK,g.p);g.O(kzc,g.p);g.O(DVo,g.p);g.O(ZLq,g.p);g.O(Jii,g.p);g.O(Vzs,g.p);Vzs.prototype.L=function(){return this.X};g.O(Cvj,jW); Cvj.prototype.Y=function(R){var l=R.content;if(l.componentType==="shopping-companion")switch(R.actionType){case 1:case 2:R=this.Z.getVideoData(1);this.Z.KX("updateKevlarOrC3Companion",{contentVideoId:R&&R.videoId,shoppingCompanionCarouselRenderer:l.renderer,layoutId:l.layoutId,macros:l.macros,onLayoutVisibleCallback:l.Z,interactionLoggingClientData:l.interactionLoggingClientData});break;case 3:this.Z.KX("updateKevlarOrC3Companion",{})}else if(l.componentType==="action-companion")switch(R.actionType){case 1:case 2:R=this.Z.getVideoData(1); this.Z.KX("updateKevlarOrC3Companion",{contentVideoId:R&&R.videoId,actionCompanionAdRenderer:l.renderer,layoutId:l.layoutId,macros:l.macros,onLayoutVisibleCallback:l.Z,interactionLoggingClientData:l.interactionLoggingClientData});break;case 3:l.renderer&&(l=this.Z.getVideoData(1),this.Z.KX("updateKevlarOrC3Companion",{contentVideoId:l&&l.videoId})),this.Z.KX("updateKevlarOrC3Companion",{})}else if(l.componentType==="image-companion")switch(R.actionType){case 1:case 2:R=this.Z.getVideoData(1);this.Z.KX("updateKevlarOrC3Companion", {contentVideoId:R&&R.videoId,imageCompanionAdRenderer:l.renderer,layoutId:l.layoutId,macros:l.macros,onLayoutVisibleCallback:l.Z,interactionLoggingClientData:l.interactionLoggingClientData});break;case 3:l=this.Z.getVideoData(1),this.Z.KX("updateKevlarOrC3Companion",{contentVideoId:l&&l.videoId}),this.Z.KX("updateKevlarOrC3Companion",{})}else if(l.componentType==="top-banner-image-text-icon-buttoned")switch(R.actionType){case 1:case 2:R=this.Z.getVideoData(1);this.Z.KX("updateKevlarOrC3Companion", {contentVideoId:R&&R.videoId,topBannerImageTextIconButtonedLayoutViewModel:l.renderer,layoutId:l.layoutId,macros:l.macros,onLayoutVisibleCallback:l.Z,interactionLoggingClientData:l.interactionLoggingClientData});break;case 3:l.renderer&&(l=this.Z.getVideoData(1),this.Z.KX("updateKevlarOrC3Companion",{contentVideoId:l&&l.videoId})),this.Z.KX("updateKevlarOrC3Companion",{})}else if(l.componentType==="banner-image")switch(R.actionType){case 1:case 2:R=this.Z.getVideoData(1);this.Z.KX("updateKevlarOrC3Companion", {contentVideoId:R&&R.videoId,bannerImageLayoutViewModel:l.renderer,layoutId:l.layoutId,macros:l.macros,onLayoutVisibleCallback:l.Z,interactionLoggingClientData:l.interactionLoggingClientData});break;case 3:l=this.Z.getVideoData(1),this.Z.KX("updateKevlarOrC3Companion",{contentVideoId:l&&l.videoId}),this.Z.KX("updateKevlarOrC3Companion",{})}else if(l.componentType==="ads-engagement-panel")switch(l=l.renderer,R.actionType){case 1:case 2:this.Z.KX("updateEngagementPanelAction",l.addAction);this.Z.KX("changeEngagementPanelVisibility", l.expandAction);break;case 3:this.Z.KX("changeEngagementPanelVisibility",l.hideAction),this.Z.KX("updateEngagementPanelAction",l.removeAction)}else if(l.componentType==="ads-engagement-panel-layout"){var y=l.renderer;switch(R.actionType){case 1:case 2:this.Z.KX("updateEngagementPanelAction",{action:wP(y.addAction),layoutId:l.layoutId,onLayoutVisibleCallback:l.Z,interactionLoggingClientData:l.interactionLoggingClientData});this.Z.KX("changeEngagementPanelVisibility",wP(y.expandAction));break;case 3:this.Z.KX("changeEngagementPanelVisibility", wP(y.hideAction)),this.Z.KX("updateEngagementPanelAction",{action:wP(y.removeAction)})}}};g.O(qKY,qF);g.L=qKY.prototype;g.L.init=function(R,l,y){qF.prototype.init.call(this,R,l,y);g.Df(this.L,"stroke-dasharray","0 "+this.X);this.L.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.D.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.Y.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.L.clear=function(){this.hide()}; g.L.hide=function(){YD(this);qF.prototype.hide.call(this)}; g.L.show=function(){te(this);qF.prototype.show.call(this)}; g.L.NA=function(){this.hide()}; g.L.t2=function(){if(this.Z){var R=this.Z.getProgressState();R!=null&&R.current!=null&&g.Df(this.L,"stroke-dasharray",R.current/R.seekableEnd*this.X+" "+this.X)}};g.O(tzk,HB);g.L=tzk.prototype; g.L.init=function(R,l,y){HB.prototype.init.call(this,R,l,y);if(l.image&&l.image.thumbnail)if(l.headline)if(l.description)if(l.backgroundImage&&l.backgroundImage.thumbnail)if(l.actionButton&&g.k(l.actionButton,g.lD))if(R=l.durationMilliseconds||0,typeof R!=="number"||R<=0)g.Tw(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+R));else if(l.navigationEndpoint){var f=this.api.getVideoData(2);if(f!=null){var A=l.image.thumbnail.thumbnails;A!=null&& A.length>0&&g.d9(g.rF(A[0].url))&&(A[0].url=f.profilePicture,g.d9(g.rF(f.profilePicture))&&DwJ("VideoPlayer",239976093,"Expected non-empty profile picture."));A=l.backgroundImage.thumbnail.thumbnails;A!=null&&A.length>0&&g.d9(g.rF(A[0].url))&&(A[0].url=f.I9());A=l.headline;A!=null&&g.d9(g.rF(A.text))&&(A.text=f.author)}this.B.init(yN("ad-image"),l.image,y);this.D.init(yN("ad-text"),l.headline,y);this.L.init(yN("ad-text"),l.description,y);this.jS.init(yN("ad-image"),l.backgroundImage,y);f=["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.D.element.classList.add("ytp-ad-action-interstitial-headline-light");this.L.element.classList.add("ytp-ad-action-interstitial-description-light");f.push("ytp-ad-action-interstitial-action-button-dark");this.api.U().X&&(f.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),f.push("ytp-ad-action-interstitial-action-button-dark"));this.api.U().C("enable_unified_action_endcap_on_web")&& !this.api.U().X&&(f.push("ytp-ad-action-interstitial-action-button-unified"),this.W1.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.B.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.uQ.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.gx.classList.add("ytp-ad-action-interstitial-card-unified"),this.Yb.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.L.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.sL.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.D.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.CX.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.v1.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new dp(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,f);g.U(this,this.actionButton);this.actionButton.JU(this.W1); this.actionButton.init(yN("button"),g.k(l.actionButton,g.lD),y);SC(this.actionButton.element);f=DF(this.actionButton.element);kA(this.actionButton.element,f+" This link opens in new tab");this.navigationEndpoint=l.navigationEndpoint;this.Y.N(this.CX,"click",this.yy,this);this.Y.N(this.Yb,"click",this.yy,this);!this.api.U().C("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.U().X||this.Y.N(this.sL,"click",this.yy,this);this.Z=this.M9?new OX(this.api,R):new PR(R);g.U(this,this.Z);if(l.skipButton){(R= g.k(l.skipButton,foK))&&this.Z&&(this.skipButton=new ol(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,this.Z,this.iI),g.U(this,this.skipButton),this.skipButton.JU(this.element),this.skipButton.init(yN("skip-button"),R,y));if(y=l.adBadgeRenderer)if(y=g.k(y,yMU))R=new WR(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,!0,!0),R.JU(this.v1),R.init(yN("simple-ad-badge"),y,this.macros),g.U(this,R);if(y=l.adInfoRenderer)if(y=g.k(y,MY))R=new gp(this.api,this.layoutId,this.interactionLoggingClientData, this.d7,this.element,void 0,!0),R.JU(this.v1),R.init(yN("ad-info-hover-text-button"),y,this.macros),g.U(this,R)}else l.nonskippableOverlayRenderer&&(R=g.k(l.nonskippableOverlayRenderer,RU))&&this.Z&&(this.X=new lt(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,this.Z,!1),g.U(this,this.X),this.X.JU(this.element),this.X.init(yN("ad-preview"),R,y));l.countdownRenderer&&(l=l.countdownRenderer,g.k(l,AMA)&&this.Z&&(y=new qKY(this.api,this.layoutId,this.interactionLoggingClientData,this.d7, this.Z),g.U(this,y),y.JU(this.element),y.init(yN("timed-pie-countdown"),g.k(l,AMA),this.macros)));this.show();this.element.focus()}else g.Tw(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.Tw(Error("AdActionInterstitialRenderer has no button."));else g.Tw(Error("AdActionInterstitialRenderer has no background AdImage."));else g.Tw(Error("AdActionInterstitialRenderer has no description AdText."));else g.Tw(Error("AdActionInterstitialRenderer has no headline AdText."));else g.Tw(Error("AdActionInterstitialRenderer has no image."))}; g.L.clear=function(){g.Xr(this.Y);this.hide()}; g.L.show=function(){YK9(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.X&&this.X.show();HB.prototype.show.call(this)}; g.L.hide=function(){YK9(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.X&&this.X.hide();HB.prototype.hide.call(this)}; g.L.yy=function(){this.navigationEndpoint&&(this.layoutId?this.d7.executeCommand(this.navigationEndpoint,this.layoutId):g.Tw(Error("Missing layoutId for ad action interstitial.")))};var fKZ={iconType:"CLOSE"},XW=new g.JM(320,63);g.O(ycU,HB);g.L=ycU.prototype; g.L.init=function(R,l,y){HB.prototype.init.call(this,R,l,y);this.Y=l;this.B=g.wO(this.Y.onClickCommands||[]);this.v1=this.Y.onErrorCommand||null;if(R=this.Y.contentSupportedRenderer)R=this.Y.contentSupportedRenderer,l=this.Y.adInfoRenderer||null,g.k(R,MnS)?(this.D=g.aA("ytp-ad-overlay-ad-info-button-container",this.L.element),Ac8(this,l),R=GTU(this,g.k(R,MnS))):g.k(R,Rpd)?(this.D=g.aA("ytp-ad-overlay-ad-info-button-container",this.X.element),Ac8(this,l),R=aKd(this,g.k(R,Rpd))):g.k(R,lor)?(this.D= g.aA("ytp-ad-overlay-ad-info-button-container",this.Z.element),Ac8(this,l),R=srU(this,g.k(R,lor))):(g.Tw(Error("InvideoOverlayAdRenderer content could not be initialized.")),R=!1);R&&(this.show(),BqO(this,!0))}; g.L.clear=function(){BqO(this,!1);this.CX.reset();this.Yb=0;this.L.hide();this.logVisibility(this.L.element,!1);this.X.hide();this.logVisibility(this.X.element,!1);this.Z.hide();this.logVisibility(this.Z.element,!1);this.hide();this.dispose()}; g.L.Iz4=function(){this.W1&&(this.layoutId?this.d7.executeCommand(this.W1,this.layoutId):g.Tw(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.L.Hb=function(){a:{if(this.Y&&this.Y.closeButton&&this.Y.closeButton.buttonRenderer){var R=this.Y.closeButton.buttonRenderer;if(R.serviceEndpoint){R=[R.serviceEndpoint];break a}}R=[]}R=g.u(R);for(var l=R.next();!l.done;l=R.next())l=l.value,this.layoutId?this.d7.executeCommand(l,this.layoutId):g.Tw(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.L.e9X=function(){this.jS||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.L.Jq=function(){this.jS||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.Jq("invideo-overlay")}; g.L.F$Q=function(R){R.target===this.D&&g.aA("ytp-ad-button",this.uQ.element).click()};g.O(Hkt,qF);g.L=Hkt.prototype;g.L.init=function(R,l,y){qF.prototype.init.call(this,R,l,y);R=l.durationMs;this.L=R==null||R===0?0:R+this.Z.getProgressState().current*1E3;if(l.text)var f=l.text.templatedAdText;else l.staticMessage&&(f=l.staticMessage);this.messageText.init(yN("ad-text"),f,y);this.messageText.JU(this.X.element);this.Y.show(100);this.show()}; g.L.clear=function(){this.hide()}; g.L.hide=function(){n7U(this,!1);qF.prototype.hide.call(this);this.X.hide();this.messageText.hide();YD(this)}; g.L.show=function(){n7U(this,!0);qF.prototype.show.call(this);te(this);this.X.show();this.messageText.show()}; g.L.NA=function(){this.hide()}; g.L.t2=function(){if(this.Z!=null){var R=this.Z.getProgressState();R!=null&&R.current!=null&&(R=1E3*R.current,!this.Yb&&R>=this.L?(this.Y.hide(),this.Yb=!0):this.messageText&&this.messageText.isTemplated()&&(R=Math.max(0,Math.ceil((this.L-R)/1E3)),R!==this.D&&(Ci(this.messageText,{TIME_REMAINING:String(R)}),this.D=R)))}};g.O(mot,HB);g.L=mot.prototype; g.L.init=function(R,l,y){HB.prototype.init.call(this,R,l,{});l.image&&l.image.thumbnail?l.headline?l.description?l.actionButton&&g.k(l.actionButton,g.lD)?(this.L.init(yN("ad-image"),l.image,y),this.X.init(yN("ad-text"),l.headline,y),this.Y.init(yN("ad-text"),l.description,y),R=["ytp-ad-underlay-action-button"],this.api.U().C("use_blue_buttons_for_desktop_player_underlay")&&R.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new dp(this.api,this.layoutId,this.interactionLoggingClientData,this.d7, R),l.backgroundColor&&g.Df(this.element,"background-color",g.Il(l.backgroundColor)),g.U(this,this.actionButton),this.actionButton.JU(this.D),this.actionButton.init(yN("button"),g.k(l.actionButton,g.lD),y),l=g.yx(this.api.U().experiments,"player_underlay_video_width_fraction"),this.api.U().C("place_shrunken_video_on_left_of_player")?(y=this.Z,g.G8(y,"ytp-ad-underlay-left-container"),g.AU(y,"ytp-ad-underlay-right-container"),g.Df(this.Z,"margin-left",Math.round((l+.02)*100)+"%")):(y=this.Z,g.G8(y,"ytp-ad-underlay-right-container"), g.AU(y,"ytp-ad-underlay-left-container")),g.Df(this.Z,"width",Math.round((1-l-.04)*100)+"%"),this.api.XL()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.pO.bind(this)),this.api.addEventListener("resize",this.xS.bind(this))):g.Tw(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.Tw(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.Tw(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.Tw(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.L.show=function(){o7S(!0);this.actionButton&&this.actionButton.show();HB.prototype.show.call(this)}; g.L.hide=function(){o7S(!1);this.actionButton&&this.actionButton.hide();HB.prototype.hide.call(this)}; g.L.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.pO.bind(this));this.api.removeEventListener("resize",this.xS.bind(this));this.hide()}; g.L.onClick=function(R){HB.prototype.onClick.call(this,R);this.actionButton&&g.io(this.actionButton.element,R.target)&&this.api.pauseVideo()}; g.L.pO=function(R){R==="transitioning"?(this.Z.classList.remove("ytp-ad-underlay-clickable"),this.show()):R==="visible"?this.Z.classList.add("ytp-ad-underlay-clickable"):R==="hidden"&&(this.hide(),this.Z.classList.remove("ytp-ad-underlay-clickable"))}; g.L.xS=function(R){R.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):R.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.Df(this.X.element,"font-size",R.width/40+"px")};g.O(Tr,HB); Tr.prototype.init=function(R,l,y){HB.prototype.init.call(this,R,l,y);l.toggledLoggingParams&&(this.toggledLoggingParams=l.toggledLoggingParams);l.answer&&g.k(l.answer,g.lD)?(R=new dp(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),R.JU(this.answer),R.init(yN("ytp-ad-survey-answer-button"),g.k(l.answer,g.lD),y),R.show()):l.answer&&g.k(l.answer,$k)&&(this.Z=new U_(this.api,this.layoutId,this.interactionLoggingClientData,this.d7, ["ytp-ad-survey-answer-toggle-button"]),this.Z.JU(this.answer),g.U(this,this.Z),this.Z.init(yN("survey-answer-button"),g.k(l.answer,$k),y));this.show()}; Tr.prototype.dW=function(R){this.layoutId?ww(this.d7,R,this.layoutId,this.macros):(R=new g.JD("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.Tw(R))}; Tr.prototype.onClick=function(R){HB.prototype.onClick.call(this,R);if(this.api.U().C("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; Tr.prototype.clear=function(){this.hide()};g.O(hQA,HB);hQA.prototype.init=function(R,l,y){HB.prototype.init.call(this,R,l,y);l.answer&&g.k(l.answer,$k)&&(this.button=new U_(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.JU(this.Z),this.button.init(yN("survey-none-of-the-above-button"),g.k(l.answer,$k),y));this.show()};g.O(dR,dp);dR.prototype.init=function(R,l,y){dp.prototype.init.call(this,R,l,y);R=!1;l.text&&(l=g.mF(l.text),R=!g.d9(l));R||g.dP(Error("No submit text was present in the renderer."))}; dR.prototype.onClick=function(R){this.publish("l");dp.prototype.onClick.call(this,R)};g.O(rR,HB); rR.prototype.init=function(R,l,y){HB.prototype.init.call(this,R,l,y);if(R=l.skipOrPreviewRenderer)g.k(R,$P)?(R=g.k(R,$P),y=new cR(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,this.Y,!0),y.JU(this.skipOrPreview),y.init(yN("skip-button"),R,this.macros),g.U(this,y),this.Z=y):g.k(R,RU)&&(R=g.k(R,RU),y=new lt(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,this.Y,!1),y.JU(this.skipOrPreview),y.init(yN("ad-preview"),R,this.macros),y.Yb.show(100),y.show(),g.U(this,y), this.Z=y);this.Z==null&&(R=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(l)),g.Tw(R));l.submitButton&&(R=l.submitButton,g.k(R,g.lD)&&(R=g.k(R,g.lD),y=new dR(this.api,this.layoutId,this.interactionLoggingClientData,this.d7),y.JU(this.submitButton),y.init(yN("survey-submit"),R,this.macros),g.U(this,y),this.X=y));if(R=l.adBadgeRenderer)R=g.k(R,yMU),y=new WR(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,!0,!0,!0),y.JU(this.L),y.init(yN("simple-ad-badge"), R,this.macros),this.adBadge=y.element,g.U(this,y);if(R=l.adDurationRemaining)R=g.k(R,qhU),y=new Qc(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,this.Y,void 0,!0),y.JU(this.L),y.init(yN("ad-duration-remaining"),R,this.macros),g.U(this,y);(l=l.adInfoRenderer)&&g.k(l,MY)&&(R=new gp(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,this.element,void 0,!0),g.U(this,R),this.adBadge!==void 0?this.L.insertBefore(R.element,this.adBadge.nextSibling):R.JU(this.L),R.init(yN("ad-info-hover-text-button"), g.k(l,MY),this.macros));this.show()}; rR.prototype.clear=function(){this.hide()};g.O(vD,HB);vD.prototype.init=function(R,l,y){HB.prototype.init.call(this,R,l,y);Okd(this)}; vD.prototype.show=function(){this.L=Date.now();HB.prototype.show.call(this)}; vD.prototype.KU=function(){};g.O(ik8,vD);g.L=ik8.prototype;g.L.init=function(R,l,y){var f=this;vD.prototype.init.call(this,R,l,y);l.questionText&&cc8(this,l.questionText);l.answers&&l.answers.forEach(function(A,K){g.k(A,FJ)&&E7t(f,g.k(A,FJ),y,K)}); this.D=new Set(this.X.map(function(A){return A.Z.Z})); (R=l.noneOfTheAbove)&&(R=g.k(R,YhZ))&&Pjd(this,R,y);l.surveyAdQuestionCommon&&LsS(this,l.surveyAdQuestionCommon);l.submitEndpoints&&(this.submitEndpoints=l.submitEndpoints);this.N(this.element,"change",this.onChange);this.show()}; g.L.KU=function(){uZK(this,!1);this.Y.X.subscribe("l",this.YS4,this)}; g.L.onChange=function(R){R.target===this.noneOfTheAbove.button.Z?FsS(this):this.D.has(R.target)&&(this.noneOfTheAbove.button.toggleButton(!1),uZK(this,!0))}; g.L.YS4=function(){var R=[],l=this.X.reduce(function(A,K,G){var B=K.toggledLoggingParams;K.Z&&K.Z.isToggled()&&B&&(A.push(B),R.push(G));return A},[]).join("&"),y=this.submitEndpoints.map(function(A){if(!A.loggingUrls)return A; A=g.Wr(A);A.loggingUrls=A.loggingUrls.map(function(K){K.baseUrl&&(K.baseUrl=OQ(K.baseUrl,l));return K}); return A}); if(y){y=g.u(y);for(var f=y.next();!f.done;f=y.next())f=f.value,this.layoutId?ww(this.d7,f,this.layoutId,this.macros):g.Tw(Error("Missing layoutId for multi_select_question."))}this.api.U().C("supports_multi_step_on_desktop")&&this.Yb(R)}; g.L.clear=function(){this.api.U().C("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.O(zr,vD);zr.prototype.init=function(R,l,y){var f=this;vD.prototype.init.call(this,R,l,y);l.questionText&&cc8(this,l.questionText);l.answers&&l.answers.forEach(function(A,K){g.k(A,FJ)&&E7t(f,g.k(A,FJ),y,K)}); l.surveyAdQuestionCommon?LsS(this,l.surveyAdQuestionCommon):aq(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(l)));this.show()}; zr.prototype.clear=function(){this.api.U().C("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.O(wR,HB);wR.prototype.init=function(R,l,y){var f=this;HB.prototype.init.call(this,R,l,y);if(this.api.U().C("supports_multi_step_on_desktop")){var A;this.conditioningRules=(A=l.conditioningRules)!=null?A:[];var K;this.X=(K=l.questions)!=null?K:[];var G;((G=l.questions)==null?0:G.length)&&bkK(this,0)}else(l.questions||[]).forEach(function(B){g.k(B,tG)?$oX(f,g.k(B,tG),y):g.k(B,qY)&&eQr(f,g.k(B,qY),y)}); this.show()}; wR.prototype.clear=function(){this.api.U().C("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; wR.prototype.Y=function(R){var l=this;if(this.api.U().C("supports_multi_step_on_desktop")){var y;if((y=this.conditioningRules)==null?0:y.length){var f;if(R.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(A){return A.questionIndex===l.Z})==null)g.Tw(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(A){if(A.questionIndex===l.Z)switch(A.condition){case "CONDITION_ALL_OF":var K;if((K=A.answerIndices)==null?0:K.every(function(B){return R.includes(B)}))f=A.nextQuestionIndex; break;case "CONDITION_ANY_OF":var G;if((G=A.answerIndices)==null?0:G.some(function(B){return R.includes(B)}))f=A.nextQuestionIndex; break;default:g.Tw(Error("Expected specified condition in survey conditioning rules."))}}),f!=null)bkK(this,f); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.Tw(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.O(x4,HB); x4.prototype.init=function(R,l,y){var f=this;HB.prototype.init.call(this,R,l,y);R=l.timeoutSeconds||0;if(typeof R!=="number"||R<0)g.Tw(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+R));else if(l.timeoutCommands)if(l.text)if(l.ctaButton&&g.k(l.ctaButton,g.lD))if(l.brandImage)if(l.backgroundImage&&g.k(l.backgroundImage,yk)&&g.k(l.backgroundImage,yk).landscape){this.layoutId||g.Tw(Error("Missing layoutId for survey interstitial."));XiK(this.interstitial,g.k(l.backgroundImage, yk).landscape);XiK(this.logoImage,l.brandImage);g.Qa(this.text,g.mF(l.text));var A=["ytp-ad-survey-interstitial-action-button"];A.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new dp(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,A);g.U(this,this.actionButton);this.actionButton.JU(this.X);this.actionButton.init(yN("button"),g.k(l.ctaButton,g.lD),y);this.actionButton.show();this.Z=new OX(this.api,R*1E3);this.Z.subscribe("g",function(){f.transition.hide()}); g.U(this,this.Z);this.N(this.element,"click",function(K){var G=K.target===f.interstitial;K=f.actionButton.element.contains(K.target);if(G||K)if(f.transition.hide(),G)f.api.onAdUxClicked(f.componentType,f.layoutId)}); this.transition.show(100)}else g.Tw(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.Tw(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.Tw(Error("SurveyTextInterstitialRenderer has no button."));else g.Tw(Error("SurveyTextInterstitialRenderer has no text."));else g.Tw(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; x4.prototype.clear=function(){this.hide()}; x4.prototype.show=function(){Tq8(!0);HB.prototype.show.call(this)}; x4.prototype.hide=function(){Tq8(!1);HB.prototype.hide.call(this)};g.O(I4,qF);g.L=I4.prototype; g.L.init=function(R,l){qF.prototype.init.call(this,R,l,{});if(l.durationMilliseconds){if(l.durationMilliseconds<0){g.Tw(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+l.durationMilliseconds));return}this.X=l.durationMilliseconds}else this.X=this.Z.di();var y;if((y=l.previewText)==null||!y.text||g.d9(l.previewText.text))g.Tw(Error("No text is returned for AdPreview."));else{this.D=l.previewText;l.previewText.isTemplated||g.Qa(this.L,l.previewText.text);var f; if(((f=this.api.getVideoData(1))==null?0:f.qL)&&l.previewImage){var A,K;(R=((K=cz(((A=l.previewImage)==null?void 0:A.sources)||[],52,!1))==null?void 0:K.url)||"")&&R.length?(this.previewImage=new g.BB({T:"img",j:"ytp-preview-ad__image",K:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",R),g.U(this,this.previewImage),this.previewImage.JU(this.element)):g.Tw(Error("Failed to get imageUrl in AdPreview."))}else this.L.classList.add("ytp-preview-ad__text--padding--wide")}}; g.L.clear=function(){this.hide()}; g.L.hide=function(){YD(this);qF.prototype.hide.call(this)}; g.L.show=function(){te(this);qF.prototype.show.call(this)}; g.L.NA=function(){this.hide()}; g.L.t2=function(){if(this.Z){var R=this.Z.getProgressState();if(R!=null&&R.current)if(R=1E3*R.current,R>=this.X)this.transition.hide();else{var l;if((l=this.D)==null?0:l.isTemplated)if(l=Math.max(0,Math.ceil((this.X-R)/1E3)),l!==this.Y){var y,f;(R=(y=this.D)==null?void 0:(f=y.text)==null?void 0:f.replace("{TIME_REMAINING}",String(l)))&&g.Qa(this.L,R);this.Y=l}}}};g.O(NC,HB); NC.prototype.init=function(R,l){HB.prototype.init.call(this,R,l,{});var y,f;if((R=((f=cz(((y=l.image)==null?void 0:y.sources)||[],doK(l),!0))==null?void 0:f.url)||"")&&R.length){y=this.pX("ytp-ad-avatar");y.src=R;var A,K;if(f=(A=l.interaction)==null?void 0:(K=A.accessibility)==null?void 0:K.label)y.alt=f;switch(l.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(l.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.Tw(Error("Failed to get imageUrl in AdAvatar."))}; NC.prototype.clear=function(){this.hide()}; NC.prototype.onClick=function(R){HB.prototype.onClick.call(this,R)};g.O(ph,HB); ph.prototype.init=function(R,l){HB.prototype.init.call(this,R,l,{});var y;R=(y=l.label)==null?void 0:y.content;if((y=R!=null&&!g.d9(R))||l.iconImage){y&&(this.buttonText=new g.BB({T:"span",j:"ytp-ad-button-vm__text",IE:R}),g.U(this,this.buttonText),this.buttonText.JU(this.element));var f,A,K=((f=l.interaction)==null?0:(A=f.accessibility)==null?0:A.label)||y?R:"";K&&kA(this.element,K+" This link opens in new tab");SC(this.element);if(l.iconImage){f=void 0;if(l.iconImage){a:{A=l.iconImage;if(A.sources)for(A= g.u(A.sources),R=A.next();!R.done;R=A.next())if(R=R.value,K=void 0,(K=R.clientResource)==null?0:K.imageName){A=R;break a}A=void 0}if(A){var G;f={iconType:(G=A.clientResource)==null?void 0:G.imageName}}}G=TG(f,!1,this.X);G!=null&&(this.buttonIcon=new g.BB({T:"span",j:"ytp-ad-button-vm__icon",S:[G]}),g.U(this,this.buttonIcon),l.iconLeading?(LS(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):y?(this.buttonIcon.JU(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.JU(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(l.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.C("delhi_modern_web_player")?this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.Z?"ytp-ad-button-vm--style-filled-dark": "ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(l.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.dP(Error("AdButton does not have label or an icon."))}; ph.prototype.clear=function(){this.hide()}; ph.prototype.onClick=function(R){HB.prototype.onClick.call(this,R)};g.O(rcU,qF);g.L=rcU.prototype; g.L.init=function(R,l){qF.prototype.init.call(this,R,l,{});this.api.U().C("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.pX("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"),LS(this.pX("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(R=g.k(l.avatar,VO)){var y=l.headline;if(y){var f=l.description;if(f){var A=g.k(l.button,qC);A?(this.adAvatar.init(yN("ad-avatar"),R),this.headline.init(yN("ad-simple-attributed-string"),new eE(y)),this.description.init(yN("ad-simple-attributed-string"),new eE(f)),y.content&&y.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(yN("ad-button"),A),this.startMilliseconds=l.startMs||0,this.api.XL()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.yH.bind(this)),te(this)):g.Tw(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Tw(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Tw(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Tw(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.L.t2=function(){if(this.Z){var R=this.Z.getProgressState();R&&R.current&&1E3*R.current>=this.startMilliseconds&&(YD(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.L.NA=function(){this.clear()}; g.L.onClick=function(R){this.api.pauseVideo();qF.prototype.onClick.call(this,R)}; g.L.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.yH.bind(this))}; g.L.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();qF.prototype.show.call(this)}; g.L.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();qF.prototype.hide.call(this)}; g.L.yH=function(R){R==="hidden"?this.show():this.hide()};g.O(Uw,HB);g.L=Uw.prototype; g.L.init=function(R,l){HB.prototype.init.call(this,R,l,{});if(!l.label||g.d9(l.label))g.Tw(Error("No label is returned for SkipAdButton."));else if(g.Qa(this.Y,l.label),R=TG({iconType:"SKIP_NEXT_NEW"}),R==null)g.Tw(Error("Unable to retrieve icon for SkipAdButton"));else if(this.L=new g.BB({T:"span",j:"ytp-skip-ad-button__icon",S:[R]}),g.U(this,this.L),this.L.JU(this.element),this.api.U().experiments.EL("enable_skip_to_next_messaging")&&(l=g.rF(l.targetId)))this.X=!0,this.element.setAttribute("data-tooltip-target-id",l), this.element.setAttribute("data-tooltip-target-fixed","")}; g.L.onClick=function(R){R&&R.preventDefault();var l,y;fgi(R,{contentCpn:(y=(l=this.api.getVideoData(1))==null?void 0:l.clientPlaybackNonce)!=null?y:""})===0?this.api.KX("onAbnormalityDetected"):(HB.prototype.onClick.call(this,R),this.api.KX("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.L.clear=function(){this.Z.reset();this.hide()}; g.L.hide=function(){HB.prototype.hide.call(this)}; g.L.show=function(){this.Z.start();HB.prototype.show.call(this);this.X&&this.api.U().experiments.EL("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.O(v7d,qF);g.L=v7d.prototype; g.L.init=function(R,l){qF.prototype.init.call(this,R,l,{});R=g.k(l.preskipState,nJK);var y;if((y=this.api.getVideoData())==null?0:y.isDaiEnabled()){if(!R){g.Tw(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.X=new I4(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,this.Z);g.U(this,this.X);this.X.JU(this.element);var f;(f=this.X)==null||f.init(yN("preview-ad"),R);(y=this.X)!=null&&(y.transition.show(100),y.show())}(y=g.k(l.skippableState,oJd))?(l.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=l.skipOffsetMilliseconds:(g.dP(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.L.init(yN("skip-button"),y),this.show()):g.Tw(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.L.show=function(){te(this);qF.prototype.show.call(this)}; g.L.hide=function(){!this.isSkippable&&this.X?this.X.hide():this.L&&this.L.hide();YD(this);qF.prototype.hide.call(this)}; g.L.clear=function(){var R;(R=this.X)==null||R.clear();this.L&&this.L.clear();YD(this);qF.prototype.hide.call(this)}; g.L.NA=function(){this.hide()}; g.L.t2=function(){if(1E3*this.Z.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var R;(R=this.X)!=null&&R.transition.hide();(R=this.L)!=null&&(R.transition.show(),R.show())}};g.O(SQ,HB); SQ.prototype.init=function(R,l){HB.prototype.init.call(this,R,l,{});if(l.label){var y;((y=l.label)==null?0:y.content)&&!g.d9(l.label.content)&&(this.linkText=new g.BB({T:"span",j:"ytp-visit-advertiser-link__text",IE:l.label.content}),g.U(this,this.linkText),this.linkText.JU(this.element));var f,A;if((f=l.interaction)==null?0:(A=f.accessibility)==null?0:A.label)kA(this.element,l.interaction.accessibility.label+" This link opens in new tab");else{var K;((K=l.label)==null?0:K.content)&&!g.d9(l.label.content)&&kA(this.element, l.label.content+" This link opens in new tab")}SC(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.Tw(Error("No label found in VisitAdvertiserLink."))}; SQ.prototype.onClick=function(R){HB.prototype.onClick.call(this,R);this.api.onAdUxClicked(this.componentType,this.layoutId)}; SQ.prototype.clear=function(){this.hide()};g.O(jQ,HB); jQ.prototype.init=function(R,l,y,f){HB.prototype.init.call(this,R,l,{});if(l.skipOrPreview){y=l.skipOrPreview;R=g.k(y,hpU);y=g.k(y,nJK);if(R)this.tv=new v7d(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,this.X),g.U(this,this.tv),this.tv.JU(this.B),this.tv.init(yN("skip-ad"),R);else{var A;y&&((A=this.api.getVideoData())==null?0:A.isDaiEnabled())&&(this.Y=new I4(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,this.X,1),g.U(this,this.Y),this.Y.JU(this.B),this.Y.init(yN("ad-preview"), y),A=this.Y,A.transition.show(100),A.show())}if(A=g.k(l.skipOrPreview,hpU))var K=A.skipOffsetMilliseconds}l.playerAdCard&&(A=g.k(l.playerAdCard,ms8))&&(this.playerAdCard=new rcU(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,this.X),g.U(this,this.playerAdCard),this.playerAdCard.JU(this.sL),this.playerAdCard.init(yN("ad-avatar-lockup-card"),A));l.adBadgeRenderer&&((A=g.k(l.adBadgeRenderer,Ch))?(this.L=new Xs(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,!0),g.U(this, this.L),this.L.JU(this.Z),this.L.init(yN("ad-badge"),A)):g.Tw(Error("AdBadgeViewModel is not found in player overlay layout.")));l.adPodIndex&&(A=g.k(l.adPodIndex,aod))&&(this.adPodIndex=new Te(this.api,this.layoutId,this.interactionLoggingClientData,this.d7),g.U(this,this.adPodIndex),this.adPodIndex.JU(this.Z),this.adPodIndex.init(yN("ad-pod-index"),A));l.adInfoRenderer&&((A=g.k(l.adInfoRenderer,MY))?(this.adInfoButton=new gp(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,this.element, void 0,!0),g.U(this,this.adInfoButton),this.L!==void 0?this.Z.insertBefore(this.adInfoButton.element,this.L.element.nextSibling):this.adInfoButton.JU(this.Z),this.adInfoButton.init(yN("ad-info-hover-text-button"),A,this.macros)):g.dP(Error("AdInfoRenderer is not found in player overlay layout.")));var G;A=(G=this.api.getVideoData())==null?void 0:G.isDaiEnabled();l.adDurationRemaining&&A&&(G=g.k(l.adDurationRemaining,qhU))&&(this.adDurationRemaining=new Qc(this.api,this.layoutId,this.interactionLoggingClientData, this.d7,this.X,f.videoAdDurationSeconds,!0),g.U(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.Z.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.JU(this.Z),this.adDurationRemaining.init(yN("ad-duration-remaining"),G,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));l.visitAdvertiserLink&&(f=g.k(l.visitAdvertiserLink,EJD))&&(this.visitAdvertiserLink=new SQ(this.api,this.layoutId, this.interactionLoggingClientData,this.d7),g.U(this,this.visitAdvertiserLink),this.visitAdvertiserLink.JU(this.Z),this.visitAdvertiserLink.init(yN("visit-advertiser-link"),f));l.adDisclosureBanner&&(l=g.k(l.adDisclosureBanner,Gsd))&&(this.adDisclosureBanner=new di(this.api,this.layoutId,this.interactionLoggingClientData,this.d7),g.U(this,this.adDisclosureBanner),this.adDisclosureBanner.JU(this.Yb),this.adDisclosureBanner.init(yN("ad-disclosure-banner"),l));this.D=new ze(this.api,this.X,K,!0);g.U(this, this.D);g.kT(this.api,this.D.element,4);this.show()}; jQ.prototype.clear=function(){this.hide()};g.O(zQU,HB);g.L=zQU.prototype; g.L.init=function(R,l){HB.prototype.init.call(this,R,l,{});if(l!=null&&l.title)if(R=l.title)if(this.headline.init(yN("ad-simple-attributed-string"),new eE(R)),R=g.k(l.moreInfoButton,qC)){if(this.moreInfoButton.init(yN("ad-button"),R),l.descriptions)l.descriptions.length>0&&(R=l.descriptions[0])&&(this.Z=new bt(this.api,this.layoutId,this.interactionLoggingClientData,this.d7),g.U(this,this.Z),this.Z.JU(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.Z.init(yN("ad-simple-attributed-string"), new eE(R))),l.descriptions.length>1&&(l=l.descriptions[1])&&(this.X=new bt(this.api,this.layoutId,this.interactionLoggingClientData,this.d7),g.U(this,this.X),this.X.JU(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.X.init(yN("ad-simple-attributed-string"),new eE(l)))}else g.Tw(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.Tw(Error("No headline found in AdGridCardText."));else g.Tw(Error("No headline found in AdGridCardText."))}; g.L.onClick=function(R){HB.prototype.onClick.call(this,R);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.L.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var R;(R=this.Z)==null||R.clear();var l;(l=this.X)==null||l.clear()}; g.L.hide=function(){this.headline.hide();this.moreInfoButton.hide();var R;(R=this.Z)==null||R.hide();var l;(l=this.X)==null||l.hide();HB.prototype.hide.call(this)}; g.L.show=function(){HB.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var R;(R=this.Z)==null||R.show();var l;(l=this.X)==null||l.show()};g.O(k4,HB);k4.prototype.init=function(R,l){HB.prototype.init.call(this,R,l,{});if(l!=null&&l.gridCards)if(l.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.Tw(Error("Only single column style is currently supported in AdGridCardCollection."));else for(R=g.u(l.gridCards),l=R.next();!l.done;l=R.next()){if(l=g.k(l.value,HGX)){var y=new zQU(this.api,this.layoutId,this.interactionLoggingClientData,this.d7);g.U(this,y);y.JU(this.element);y.init(yN("ad-grid-card-text"),l);this.Z.push(y)}}else g.Tw(Error("No grid cards found in AdGridCardCollection."))}; k4.prototype.show=function(){for(var R=g.u(this.Z),l=R.next();!l.done;l=R.next())l.value.show();HB.prototype.show.call(this)}; k4.prototype.clear=function(){this.hide();for(var R=g.u(this.Z),l=R.next();!l.done;l=R.next())l.value.clear()}; k4.prototype.hide=function(){for(var R=g.u(this.Z),l=R.next();!l.done;l=R.next())l.value.hide();HB.prototype.hide.call(this)};g.O(DS,qF);g.L=DS.prototype;g.L.init=function(R,l,y,f,A){A=A===void 0?0:A;qF.prototype.init.call(this,R,l,y,f);this.playerProgressOffsetMs=A;te(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Wr.bind(this));this.api.addEventListener("resize",this.Dn.bind(this));this.api.XL()?(this.X=!0,this.api.UO(!0),this.show()):this.hide()}; g.L.t2=function(){if(this.Z){var R=this.Z.getProgressState();R&&R.current&&!this.X&&1E3*R.current>=this.playerProgressOffsetMs&&(this.X=!0,this.api.UO(!0),this.show())}}; g.L.NA=function(){this.X&&this.api.UO(!1);this.hide()}; g.L.clear=function(){this.api.UO(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Wr.bind(this));this.api.removeEventListener("resize",this.Dn.bind(this));YD(this);this.hide()}; g.L.hide=function(){wiU(!1);qF.prototype.hide.call(this)}; g.L.show=function(){wiU(!0);qF.prototype.show.call(this)};g.O(xoU,DS);g.L=xoU.prototype; g.L.init=function(R,l,y,f){if(l!=null&&l.adGridCardCollection)if(l!=null&&l.adButton){var A=Number(l.playerProgressOffsetMs||"0");isNaN(A)?DS.prototype.init.call(this,R,l,y,f):DS.prototype.init.call(this,R,l,y,f,A);R=l.headline;y=g.k(l.adAvatar,VO);R&&y?(this.headline=new bt(this.api,this.layoutId,this.interactionLoggingClientData,this.d7),g.U(this,this.headline),this.headline.JU(this.pX("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(yN("ad-simple-attributed-string"),new eE(R)), this.adAvatar=new NC(this.api,this.layoutId,this.interactionLoggingClientData,this.d7),g.U(this,this.adAvatar),this.adAvatar.JU(this.pX("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(yN("ad-avatar"),y)):this.Y.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");R=g.k(l.adGridCardCollection,BFX);this.adGridCardCollection.init(yN("ad-grid-card-collection"),R);l=g.k(l.adButton,qC);this.adButton.init(yN("ad-button"),l); this.hide()}else g.Tw(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.Tw(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.L.onClick=function(R){(this.adButton&&g.io(this.adButton.element,R.target)||this.adAvatar&&g.io(this.adAvatar.element,R.target))&&this.api.pauseVideo();DS.prototype.onClick.call(this,R);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.L.Dn=function(){}; g.L.clear=function(){this.hide();var R;(R=this.headline)==null||R.clear();var l;(l=this.adAvatar)==null||l.clear();this.adGridCardCollection.clear();this.adButton.clear();DS.prototype.clear.call(this)}; g.L.show=function(){var R;(R=this.headline)==null||R.show();var l;(l=this.adAvatar)==null||l.show();this.adGridCardCollection.show();this.adButton.show();DS.prototype.show.call(this)}; g.L.hide=function(){var R;(R=this.headline)==null||R.hide();var l;(l=this.adAvatar)==null||l.hide();this.adGridCardCollection.hide();this.adButton.hide();DS.prototype.hide.call(this)}; g.L.Wr=function(R){R==="transitioning"?(this.L.classList.remove("ytp-ad-underlay-clickable"),this.show()):R==="visible"?this.L.classList.add("ytp-ad-underlay-clickable"):R==="hidden"&&(this.hide(),this.L.classList.remove("ytp-ad-underlay-clickable"))};g.O(ZS,HB); ZS.prototype.init=function(R,l){HB.prototype.init.call(this,R,l,{});if(l.attributes===void 0)g.Tw(Error("No attributes found in AdDetailsLineViewModel."));else if(l.style===void 0)g.Tw(Error("No style found in AdDetailsLineViewModel."));else{R=g.u(l.attributes);for(var y=R.next();!y.done;y=R.next())if(y=y.value,y.text!==void 0){y=y.text;var f=l.style,A=new bt(this.api,this.layoutId,this.interactionLoggingClientData,this.d7);g.U(this,A);A.JU(this.element);a:switch(f){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":f="ytp-ad-details-line__text--style-responsive"; break a;default:f="ytp-ad-details-line__text--style-standard"}A.element.classList.add(f);A.init(yN("ad-simple-attributed-string"),new eE(y));this.Z.push(A)}this.show()}}; ZS.prototype.show=function(){this.Z.forEach(function(R){R.show()}); HB.prototype.show.call(this)}; ZS.prototype.clear=function(){this.hide()}; ZS.prototype.hide=function(){this.Z.forEach(function(R){R.hide()}); HB.prototype.hide.call(this)};g.O(JB,HB);JB.prototype.init=function(R,l){HB.prototype.init.call(this,R,l,{});var y,f;(R=((f=cz(((y=l.image)==null?void 0:y.sources)||[]))==null?void 0:f.url)||"")&&R.length?(y=this.pX("ytp-image-background-image"),g.Df(y,"backgroundImage","url("+R+")"),l.blurLevel!==void 0&&g.Df(y,"filter","blur("+l.blurLevel+"px)"),l.gradient!==void 0&&(l=new g.Z({T:"div",QL:["ytp-image-background--gradient-vertical"]}),g.U(this,l),l.JU(this.element)),this.show()):g.Tw(Error("Failed to get imageUrl in ImageBackground."))}; JB.prototype.clear=function(){this.hide()};g.O(IKU,qF);g.L=IKU.prototype;g.L.init=function(R,l){qF.prototype.init.call(this,R,l,{});g.Df(this.L,"stroke-dasharray","0 "+this.X);this.show()}; g.L.clear=function(){this.hide()}; g.L.hide=function(){YD(this);qF.prototype.hide.call(this)}; g.L.show=function(){te(this);qF.prototype.show.call(this)}; g.L.NA=function(){this.hide()}; g.L.t2=function(){if(this.Z){var R=this.Z.getProgressState();R!=null&&R.current!=null&&g.Df(this.L,"stroke-dasharray",R.current/R.seekableEnd*this.X+" "+this.X)}};g.O(gR,HB); gR.prototype.init=function(R,l){HB.prototype.init.call(this,R,l,{});if(pi8(l)){this.adAvatar=new NC(this.api,this.layoutId,this.interactionLoggingClientData,this.d7);g.U(this,this.adAvatar);this.adAvatar.JU(this.pX("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(yN("ad-avatar"),g.k(l.adAvatar,VO));this.headline=new bt(this.api,this.layoutId,this.interactionLoggingClientData,this.d7);g.U(this,this.headline);this.headline.JU(this.pX("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(yN("ad-simple-attributed-string"),new eE(l.headline));if(R=g.k(l.adDetailsLine,KHU))this.detailsLine=new ZS(this.api,this.layoutId,this.interactionLoggingClientData,this.d7),g.U(this,this.detailsLine),this.detailsLine.JU(this.pX("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(yN("ad-details-line"),R);this.adButton=new ph(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,!0);g.U(this,this.adButton); this.adButton.JU(this.pX("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(yN("ad-button"),g.k(l.adButton,qC));this.adBadge=new Xs(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,!0);g.U(this,this.adBadge);this.adBadge.JU(this.Y);this.adBadge.init(yN("ad-badge"),g.k(l.adBadge,Ch));this.adInfoButton=new gp(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,this.element,void 0,!0);g.U(this,this.adInfoButton);this.adInfoButton.JU(this.Y); this.adInfoButton.init(yN("ad-info-hover-text-button"),g.k(l.adInfoRenderer,MY),this.macros);if(R=g.k(l.skipAdButton,oJd))this.skipAdButton=new Uw(this.api,this.layoutId,this.interactionLoggingClientData,this.d7),g.U(this,this.skipAdButton),this.skipAdButton.JU(this.element),this.skipAdButton.init(yN("skip-button"),R);this.X=new PR(l.durationMilliseconds);g.U(this,this.X);if(R=g.k(l.countdownViewModel,cMU))this.Z=new IKU(this.api,this.layoutId,this.interactionLoggingClientData,this.d7,this.X),g.U(this, this.Z),this.Z.JU(this.pX("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.Z.init(yN("timed-pie-countdown"),R);if(l=g.k(l.imageBackground,sMU))this.imageBackground=new JB(this.api,this.layoutId,this.interactionLoggingClientData,this.d7),g.U(this,this.imageBackground),this.imageBackground.JU(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(yN("image-background"), l);this.show();this.element.focus()}}; gR.prototype.clear=function(){g.Xr(this.L);this.hide()}; gR.prototype.show=function(){Nqt(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();HB.prototype.show.call(this)}; gR.prototype.hide=function(){Nqt(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&&this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.Z&&this.Z.hide();this.imageBackground&&this.imageBackground.hide();HB.prototype.hide.call(this)};g.O(tB,g.Ae);g.L=tB.prototype;g.L.di=function(){return 1E3*this.api.getDuration(this.RA,!1)}; g.L.stop=function(){this.Z&&this.SZ.p_(this.Z)}; g.L.J1=function(){var R=this.api.getProgressState(this.RA);this.X={seekableStart:R.seekableStart,seekableEnd:R.seekableEnd,current:this.api.getCurrentTime(this.RA,!1)};this.publish("h")}; g.L.getProgressState=function(){return this.X}; g.L.Ko=function(R){g.m2(R,2)&&this.publish("g")};var SJ8="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.O(Y4,jW); Y4.prototype.Y=function(R){var l=R.id,y=R.content,f=y.componentType;if(!SJ8.includes(f))switch(R.actionType){case 1:R=this.api;var A=this.d7,K=y.layoutId,G=y.interactionLoggingClientData,B=y instanceof Ii?y.M9:!1,H=y instanceof Ii||y instanceof LR?y.iI:!1;G=G===void 0?{}:G;B=B===void 0?!1:B;H=H===void 0?!1:H;switch(f){case "invideo-overlay":R=new ycU(R,K,G,A);break;case "player-overlay":R=new wi(R,K,G,A,new tB(R),H);break;case "player-overlay-layout":R=new jQ(R,K,G,A,new tB(R));break;case "survey":R= new wR(R,K,G,A);break;case "ad-action-interstitial":R=new tzk(R,K,G,A,B,H);break;case "video-interstitial-buttoned-centered":R=new gR(R,K,G,A);break;case "survey-interstitial":R=new x4(R,K,G,A);break;case "ad-message":R=new Hkt(R,K,G,A,new tB(R,1));break;case "player-underlay":R=new mot(R,K,G,A);break;case "display-underlay-text-grid-cards":R=new xoU(R,K,G,A,new tB(R));break;default:R=null}if(!R){g.dP(Error("No UI component returned from ComponentFactory for type: "+f));break}g.Hr(this.X,l)?g.dP(Error("Ad UI component already registered: "+ l)):this.X[l]=R;R.bind(y);y instanceof ws?this.L?this.L.append(R.eX):g.dP(Error("Underlay view was not created but UnderlayRenderer was created")):this.J.append(R.eX);break;case 2:l=UoZ(this,R);if(l==null)break;l.bind(y);break;case 3:y=UoZ(this,R),y!=null&&(g.f_(y),g.Hr(this.X,l)?(y=this.X,l in y&&delete y[l]):g.dP(Error("Ad UI component does not exist: "+l)))}}; Y4.prototype.G4=function(){g.A4(Object.values(this.X));this.X={};jW.prototype.G4.call(this)};g.O(SY5,g.Fc);g.L=SY5.prototype;g.L.create=function(){try{jrU(this),this.load(),this.created=!0,jrU(this)}catch(R){BR(R instanceof Error?R:String(R))}}; g.L.load=function(){try{ZkK(this)}finally{lm(eQ(this.Z).sN)&&this.player.SI("ad",1)}}; g.L.destroy=function(){var R=this.player.getVideoData(1);this.Z.Z.QB.fm(R&&R.clientPlaybackNonce||"");this.unload();this.created=!1}; g.L.unload=function(){g.Fc.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(l){BR(l instanceof Error?l:String(l))}if(this.X!=null){var R=this.X;this.X=null;R.dispose()}this.L.reset()}; g.L.Km=function(){return!1}; g.L.getAdState=function(){return-1}; g.L.getOptions=function(){return Object.values(Udt)}; g.L.MD=function(R,l){l=l===void 0?{}:l;switch(R){case "replaceUrlMacros":return R=l,R.url?(l=sVi(this.player),Object.assign(l,R.Cp9),R=g.TS(R.url,l)):R=null,R;case "onAboutThisAdPopupClosed":this.D7(l);break;case "executeCommand":R=l;R.command&&R.layoutId&&this.executeCommand(R);break;default:return null}}; g.L.CE=function(R){var l;return!((l=this.Z.Z.j_)==null||!l.get().CE(R))}; g.L.D7=function(R){R.isMuted&&$eJ(eQ(this.Z).NC,eQ(this.Z).ma,R.layoutId);this.mH&&this.mH.D7()}; g.L.executeCommand=function(R){eQ(this.Z).d7.executeCommand(R.command,R.layoutId)};g.lA("yt.player.Application.create",g.i_.create);g.lA("yt.player.Application.createAlternate",g.i_.create);Ibk($$(),pIU);var jmS=g.yr("ytcsi.tick");jmS&&jmS("pe");g.uR("ad",SY5);g.O(g.lU,g.p);g.lU.prototype.start=function(R,l,y){this.config={from:R,to:l,duration:y,startTime:(0,g.eY)()};this.next()}; g.lU.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.lU.prototype.next=function(){if(this.config){var R=this.config,l=R.from,y=R.to,f=R.duration;R=R.startTime;var A=(0,g.eY)()-R;R=this.Z;f=Dgr(R,A/f);if(f==0)R=R.V;else if(f==1)R=R.W;else{A=kJ(R.V,R.J,f);var K=kJ(R.J,R.D,f);R=kJ(R.D,R.W,f);A=kJ(A,K,f);K=kJ(K,R,f);R=kJ(A,K,f)}R=g.Sq(R,0,1);this.callback(l+(y-l)*R);R<1&&this.delay.start()}};g.O(g.yn,g.Z);g.L=g.yn.prototype;g.L.hasSuggestions=function(){return this.suggestionData.length>0}; g.L.El=function(){this.X&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.L.show=function(){g.Z.prototype.show.call(this);tJU(this)}; g.L.cW=function(){this.X&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.L.CR=function(){this.ub(this.api.lQ().getPlayerSize())}; g.L.ub=function(R){var l=this.api.isEmbedsShortsMode()?.5625:16/9,y=this.api.x0();R=R.width-(y?112:58);y=Math.ceil(R/(y?320:192));var f=(R-y*8)/y;l=Math.floor(f/l);for(var A=g.u(this.Z),K=A.next();!K.done;K=A.next())K=K.value.pX("ytp-suggestion-image"),K.style.width=f+"px",K.style.height=l+"px";this.suggestions.element.style.height=l+"px";this.Y=f;this.W=l;this.containerWidth=R;this.columns=y;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.fc(this)}; g.L.onVideoDataChange=function(){var R=this.api.U(),l=this.api.getVideoData();this.D=l.nJ?!1:R.Y;this.suggestionData=l.suggestions?g.bs(l.suggestions,function(y){return y&&!y.playlistId}):[]; MJZ(this);l.nJ?this.title.update({title:g.KV("M\u00e1s videos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:l.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s videos"})}; g.L.scrollTo=function(R){R=g.Sq(R,this.containerWidth-this.suggestionData.length*(this.Y+8),0);this.V.start(this.scrollPosition,R,1E3);this.scrollPosition=R;g.fc(this);tJU(this)};})(_yt_player);