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 R="G;slice;prototype;indexOf;X;youtube.player.web_20250722_00_RC00;split;path;sp;Y;W;startsWith;scheme;;file;splice;iR;url;length;push;1969-12-31T12:46:10.000-11:15;toString;1970-01-01T10:30:29.000+10:30;/;replace;}[\u2234,;fC;1;playerfallback;%3D;set;n;assign;join;mn;PB;cmo;local;forEach;http://local;fromCharCode;1970-01-01T01:15:19.000+01:15;clone;\\.a1\\.googlevideo\\.com$;signatureCipher;unshift;reverse;---;&;s;/videoplayback;fallback_count;rr;1970-01-01T01:00:11.000+01:00;/api/manifest;get;Ly;a1.googlevideo.com;cmo=;/file/index.m3u8;\\.googlevideo\\.com$;A5;/initplayback;1969-12-31T13:00:28.000-11:00;//;match;sz;1969-12-31T15:00:06.000-09:00;cmo=td;index.m3u8;pop;?;:;r;undefined;Untrusted URL;pow;TD;redirector.googlevideo.com;cmo=pf;=;,;://;https://local;rr?[1-9].*\\.c\\.youtube\\.com$;9R7Wxv;fvip;omRwXf_bZz8xJ4Bu-H-_w8_;www.youtube.com".split(";"), hN,W7D,cNQ,dN,VD4,skv,x5,HUN,lT,BNQ,nU,jD,ak,eD,E5D,R4L,TQ,NL,JNT,Xl,ulk,vd,m7,dLN,pU,Ik,Y5,SD,Dh,GQQ,wN,$6,ZUN,qvk,xLU,Z2,lhN,n5p,qu,jkl,ah5,n$,z4v,QkQ,bK,L7N,of,iUU,K7L,tS,ANk,UL5,CTv,MDp,wX,WG,F7L,yND,sO,dj,PTT,nr,jK,aJ,eK,zF,QW,TNk,Lr,iN,Kr,NNv,tD4,UO,v5L,yW,fr,oJ,pr,IJ,YF,mL5,o5v,OO,gj,SK,pdv,Ih7,YvU,OUl,g5l,wj,kF,Wr,cr,V6,Hr,Br,hcQ,Jk,dF,GA,ZQ,rF,xu,l4,WUd,n6,j8,zA,VlD,$ul,sf5,Q6,i4,K6,C6,Mo,y6,Pr,GtL,Z$N,rSl,qIv,f6,xuL,b4,TA,No,l2p,Xk,n6l,a25,o0,I0,S8,DQ,wF,Qfh,zc4,Uul,KUk,Mll,W3,$S,RY,PK5, b$k,f2p,ui,GC,TX4,db,li,hs,X2N,NXl,zC,ek,ku,tlh,Kk,UH,As,v67,MJ,muk,y_,P3,fk,bi,TC,NJ,XW,v3,m_,YS,OH,Dr,p2p,YIh,I2d,O$L,SId,VI,$w,sN,Dul,HW,w25,BW,J3,u6,hRp,Weh,$xl,cBL,sJl,RRN,d9,EFQ,Hrp,GX,ZY,JBU,r9,uaD,qP,GFk,dxL,Zr7,rBN,jI,aX,qOL,xxp,la7,eI,zX,nF7,zR5,QI,QJv,LeD,CNT,A3,Uxp,irD,FeT,faN,Cs,Fj,PW,yI,br4,fs,b6,TX,t3,vW,mx,ps,mxp,IX,oFd,ON,w9,OrT,WX,VH,sp,SO5,$3,gFh,Dx7,HX,cX,BX,Ep,wGh,RK,uA,hg7,d_,Gm,ZO,V87,aK,$oU,s0N,H6U,BFU,jF,nZ,r_,WqT,ckp,EuU,Jkk,ukl,doQ,QH,LZ,iA,GA7,Up,MT,Fx,yH,Z6p,qup,fZ,xo7, tI,Xx,egh,mB,vX,Q07,i6l,IK,oK,KqN,Y3,Op,SF,pZ,DO,g_,k3,w_,$L,Ak4,hq,co,sW,UoL,Ho,C4v,Bo,EW,di,G0,Z4,RV,ur,Jq,q3,M8v,xL,Fq4,lr,P44,n7,fQl,Q7,V7,L7,ir,K7,TFN,Aq,UW,M3,FM,y7,Po,f7,NFD,br,Xrk,T0,N3,XM,vo,tq,mu,oV,p7,IV,YL,t8l,mok,Sp,ou5,prD,IQh,D4,wi,JU,O6T,ua,guk,dg,wr7,Go,ZC,rg,kAN,qn,hyN,xz,W_k,csN,la,Vkv,nD,jB,aR,$JN,zo,QX,Hkk,KD,RyN,sYD,AU,CD,Mn,dJD,Jsp,fD,vO,GC5,rsv,qHh,mA,oR,IR,Yz,OQ,SB,gg,nSN,jYh,arT,zyh,QY4,L_L,wg,kz,ikd,hM,K_5,AsD,CiQ,Pih,WA,frk,bkN,TbL,NbQ,X37,$R,tkh,HA,mJQ,Rg,JM,p34,uv,d0, GL,IrQ,YHL,qG,xR,j3,ag,SHL,gSv,DJv,KJ,iv,LJ,w3L,kCT,hGv,AM,U6,CJ,c3l,fJ,bv,$PN,sXv,Hsl,TL,NG,B9Q,EwQ,X$,RGD,J3N,ujT,dPT,og,vA,pJ,Ig,YR,GXD,ZsN,r3d,O6,S3,qNd,g0,xP5,lYl,nwN,DB,jXk,w0,kR,aYT,eGT,aOh,eYL,zYN,QKT,ca,V9,$p,Ha,KB4,Ba,EK,AI4,iZT,sK,UTv,R5,JA,u0,G4,df,CAQ,MFT,FBD,l0,PA4,nf,bZv,T_k,N_l,XXl,tFT,v3N,mTk,o3Q,eX,z4,Q9,IOv,pXN,Ypv,OZp,i0,Spp,Kf,g3D,DT5,AA,UK,Cf,wX4,Fw,y9,kmp,Pa,ff,b0,T4,NF,Xw,tA,va,hr5,Wud,cqT,Vpk,mg,$3T,H7p,sVd,pf,I5,ELl,BiN,uMd,Z7D,G0p,Yp,rqd,qWD,x3Q,nLN,l4p,jVh,OK,a4p,erh,gf, zrl,QVl,Luh,i7k,DU,Kup,wf,Aqh,kp,WU,CrQ,cU,Mpk,Vd,$f,Fu4,yqh,sT,BU,f45,ET,PrN,b7L,Ti5,Ni7,tpQ,R8,vL7,dx,Gu,oLk,poL,O7h,SWl,Zk,rx,qY,xf,lO,nR,je,a8,ee,zu,Qd,LR,iO,k0p,woN,h95,cUQ,WAQ,$nQ,D3h,VBp,gLd,KR,Ab,HDl,BgN,EzN,bO,Tu,NY,UT,JU4,XP,sRD,dn7,Go4,uL5,tb,vU,mL,o8,ZD4,R9U,rUT,pR,qQp,xnp,lCD,nzQ,jRd,z9l,QR4,LAd,iD7,I8,Yf,KAL,AU5,MBv,FAv,OT,gx,PaT,Dk,Se,bDk,fCv,TgN,Ngv,XOQ,kf,hH,vzT,mnl,oz4,pOL,ICl,YQp,ODT,SQ4,gz4,Dn4,ce,Vz,$7,s$,He,Be,wOd,WDk,cMh,V3p,sgv,$Gh,HJd,JH,uH,B0p,ER7,REN,d5,Gd,ZP,r5,q$,x7,lH, n2,JM5,aH,dGU,zd,GLU,ZJL,Qz,L2,iH,AH,K2,rMh,xGp,U$,DC,eyp,Pe,lBN,nRU,f2,jgl,yz,eEL,aB7,F7,bH,Td,zEQ,QgL,LDd,iJk,N$,KDh,X7,hE7,koN,tH,ve,oH,p2,CvT,IH,Y7,Sx,M3T,FDQ,g5,T0D,WK,Pv4,bJp,k7,w5,JF,uZ,N07,Z9,XA4,rm,qd,t3k,mGd,pAU,KW,UL,S6D,gRQ,DG7,CW,Wg5,an,Y65,VX5,h75,wAL,kLk,$F5,cAD,Fv,fW,HfT,Bf5,Ep4,R7D,JAv,Ts,uw4,Xv,dFp,rAQ,qKv,tF,lUN,j5L,np5,aU4,m3,In,gm,wm,kv,hE,W9,c9,Q5N,Lgv,ifk,Vr,$Q,D9,sE,H9,B9,KgT,wx,EE,AA7,JE,MX7,ud,dl,yAh,FgQ,P0U,fUQ,bfT,GT,Tfk,NfN,Xa7,ZD,rl,vpp,pa4,IUv,qV,gpv,SKk,DFT,wa7,k45, xQ,hql,YKp,ld,WLN,cbd,ne,$Yp,s8N,HRN,BxD,Efv,a_,Rq5,JbT,uPN,dY4,rbL,Gud,ec,zT,Qr,Le,id,Ke,AE,UE,xYQ,MV,Ce,lk5,yr,akN,FH,eqh,zqv,Ab7,Q8T,LL5,iRd,KLd,P9,fe,bd,UYl,TT,NV,XH,tE,v9,mV,POU,COp,YQ,ybv,OE,FLD,I_,o_,MeD,pe,gl,bRv,wl,DD,TxU,NxT,XU7,V8,$$,Hy,mYv,s5,RD,of7,Jj,ted,YTD,ORD,STN,Gi,Zy,rH,gfd,qf,x$,le,nO,DYN,jE,aD,eE,wU4,kuT,zi,hhQ,opD,cHp,VxQ,$$5,sHl,B57,Wm7,E7k,u7U,LO,KO,Gdd,Z2v,rHN,q$5,lPk,CO,U5,n77,x$d,zhN,ehL,Mf,y8,Lm4,Fd,i2l,fO,Kmh,be,Nf,Xd,AH7,U$D,SE,CHl,Dy,Mx7,Fm7,HD,yHN,fP4,BD,b2N,T5p,m$7, N5k,u2,dS,G$,rS,qM,O2U,l2,nc,jQ,g7T,z$,D$N,weD,Q$,hXv,i2,Kc,Ae,Ub,W3d,Cc,FS,y$,PD,fc,cFd,VaT,$d5,T$,NM,XS,te,vD,mW,snk,HWU,Bmp,Evk,RXN,JFd,or,uv4,D_,dd7,GsD,ZW7,wS,ht,WE,cE,s_,HE,BE,qLv,Jt,u$,dO,xdl,l9L,G7,nv5,jnN,rO,AFd,Udk,CZl,qU,Mav,F3Q,f9N,l$,TmN,bWd,NmU,tak,vvN,aW,en,mdv,z7,Qm,Lu,i$,Ku,At,U_,Cu,MU,F_,ym,PE,fu,b$,ovU,pKN,I95,NU,mP,YLp,YZ,O_,Sn,gO,D3,kZ,hc,Dd7,Wf,cf,Vn,ksL,wKp,OWU,Hf,sB,Vch,Bf,qC,GN,x2,lW,s_5,jO,RuU,Blh,EQ4,uH4,qET,dV7,Zev,rE7,$V4,eO,ax,lDT,Qn,Lb,iW,nQv,FA,j_D,yn,Pf,fb,TN,aDD, XA,tc,eu5,vf,mf,Q_h,Ix,OB,SO,gJ,DX,wJ,k2,hP,Wt,ct,ieL,VY,Ht,sh,AEL,FVD,Cdp,Mck,yE5,Pdd,beN,TlN,fDv,X9D,RI,JP,GR,tcN,vQk,dQ,ZL,oQ5,p9T,SEv,OeL,lL,nS,jt,aI,et,DVL,w9p,CS,Mz,kTQ,h5p,Ws7,bL,TR,Nz,cjT,VE5,sDN,BHl,oI,E$4,Yk,pS,gQ,DL,kk,R5p,Hp,Bp,EG,RC,uC,dw,Zu,ZOh,rjp,qv,q5h,xf7,lC,ly5,n$4,ng,jP,jD5,ayd,z55,Q5,Lsl,iOh,eP,KsQ,Aj4,CeD,Ufd,AZ,QD7,Fsl,yjp,Pp,FJ,Pe4,fyD,fg,bC,bOk,THh,XJ,NHk,XyD,tET,v$l,pg,mf7,o$D,pyU,Iyv,Y5d,OOU,S55,g$7,Y4,Df7,SP,kiv,hp7,WWN,ceQ,VQd,gw,cY,sr5,Ey5,V2,RpD,uSU,$MQ,dMU,G$p,ZcN, HcU,BSh,Du,ww,WY,Jeh,hL,k4,re7,qbk,xMD,l_d,nyv,jr5,LW5,a_p,Er,RS,uq,AeU,MQv,C2h,JL,Z8,FWd,xs,yeN,f_T,e5,P2U,pDp,bc7,oyl,iq,I_v,Sbh,Kj,Lj,Yb5,OcQ,gyh,Ur,wDL,k$Q,hH7,WPk,ctd,VnL,$U4,DMN,HuQ,BON,EZp,Jtp,RHN,dUN,y2,G7D,PY,fj,bq,ZuU,rtD,XX,tL,xUp,q_5,vY,l35,jW7,eHl,a3v,zHN,iuQ,QW4,Vj,HB,sc,KPv,$A,BB,Ec,Rl,Jn,At4,dY,C$v,rY,Zl,xA,lx,nq,j9,Mnl,al,ze,FPd,Lq,Kq,An,ytl,P$k,f3v,bup,Uc,MA,TOv,FI,yj,PB,XEQ,fq,bx,tnN,NA,vB,tn,XI,m5,ol,oZl,gZN,wE4,S_d,OuN,DUN,YA,gY,ccd,k7N,hIT,Wf7,mUv,uAU,Hz,JcQ,Zbl,RI4,Il,Bz,h5, $N,dCk,wY,I3N,pEk,Y_N,S9,E2D,uD,jx7,dc,eIU,zIL,Qx4,ZT,LfT,ibD,Kf4,UCU,CWN,xN,Ffk,lD,yc5,PWh,bbd,TJQ,NJN,j2,Xf7,v2k,a3,mCL,e2,zE,cp,SB5,hOU,U9,cPQ,sI4,M_,BQv,EkU,ROh,o3,mt,JP4,t5,UMv,N_,vz,Xe,Fe,kN,wc,Wn,VP,dzN,$B,Hn,Bn,GRk,ZSQ,J1,qh7,xzN,lLl,Zb,nkN,jIp,aL7,eON,zOv,QI7,L1Q,r7,iSN,qq,lw,K1D,AP5,UzT,CLL,Mth,n4,jL,F1v,yPp,PLN,fL4,bS7,TQ4,NQN,XtD,QP,L4,iw,ttv,K4,vkv,UJ,ok5,mzQ,Mq,FO,yP,Pn,pt5,f4,bw,ILL,YhL,Tp,Nq,Dzh,OSv,gk4,ShD,XO,t1,vn,wtQ,kR7,hB7,mQ,cZ7,sCl,$vh,oe,p4,Ie,YB,OJ,g7,Db,w7,kB,hW,W8,Hgd,Bwk, E4Q,c8,Vh,$x,sA,B8,Rt,uJN,JZN,u7,dvL,dT,G3,Zw,rT,qa,nV,jR,at,eR,z3,Qh,LV,i7,rZl,KV,AW,UA,qGD,luh,yh,n4U,P8,fV,eBU,zBU,QCL,igU,AZd,v8,Uv5,ot,mk,F6l,yZl,PC5,It,Yx,bgL,SR,gT,Dw,wT,Nwp,kx,hm,W5,Xpl,c5,TwL,Vy,$9,v4T,tPD,s0,H5,B5,E0,Jm,o47,pp7,dn,GO,rn,qE,Iuk,Zj,SGh,g4p,DvN,wph,k1N,hjU,Wav,lh,x9,Og5,$0Q,nE,HjN,BIp,Qy,Esd,a2,eq,RjD,LE,uXQ,GZT,ih,KE,Zjl,Am,qrv,U0,ejv,jSd,x0k,nsQ,l8U,ME,F9,yy,P5,fE,bh,TO,X9,QST,Ka5,mC,yUQ,o2,ALk,Cql,I2,gn,Y9,Sq,O0,yLh,Fa4,M5L,Pql,Dj,f8k,XYl,wn,hQ,vsp,W7,c7,Vl,$W,m04,osN,sk, H7,B7,pYd,I8p,Rb,G6,ZI,rr,ql,xW,lQ,YrN,nP,jU,ab,eU,z6,Ql,LP,OjN,Sr7,iQ,KP,Nl,Xc,tQ,v7,gs7,D0N,m2,YW,htN,W5h,Ok,SU,Wk,V9N,$E,sM,$AU,EM,sl5,BYL,Hql,EAk,Rtl,Jn7,uIl,dAl,Ge5,rnv,Zq7,qcD,nAT,alT,llN,et5,ztT,L57,JC,uG,K5D,iqU,dZ,Gy,Zd,UAl,rZ,qk,xE,M9Q,F5N,lG,Cx4,n9,flp,ju,a4,eu,zy,Qi,L9,iG,K9,AC,UM,C9,Mk,FZ,yi,Pk,f9,bG,Ty,Nk,XZ,tC,vk,mX,o4,p9,I4,YE,OM,Su,gZ,Dd,wZ,kE,hX,Wq,cq,Vb,$1,sz,Hq,Bq,Ez,Rv,JX,u8,dy,GH,ZF,ry,qO,x1,l8,nA,jm,av,em,zH,Qb,LA,i8,KA,AX,Uz,CA,MO,Fp,yb,Pq,fA,b8,TH,Xp,tX,TYN,vq,S,mJ,NO,ov, pA,Iv,XBv,Oz,vAp,Y1,mA7,gy,oAU,wy,Sm,k1,h$,WH,Vx,Ilp,Ych,OqT,ScU,dL,Gk,EX,ZG,DAh,wBT,keT,h_T,pBT,WtN,cH,c5d,V2T,q6,am,xe,sX,$_4,$e,rL,lJ,eH,HxN,HH,BH,jH,nm,Bch,zk,Qx,Lm,iJ,ENT,Km,A$,UX,Cm,M6,R_4,J5Q,d_4,GE5,PH,fm,r5T,bJ,nN5,aT5,z_U,Q3h,N6,ixN,KtT,pm,A5T,Im,Ye,OX,SH,gL,DG,U_T,M27,Ftl,CDN,y5U,PDL,Wh,ch,$n,Hh,Bh,Ee,fTU,R1,bx7,Jl,uB,VJ,Zc,rz,qb,xn,TcN,Gq,Xzl,lB,t2l,vNU,n5,m_N,j1,a1,oNL,pzl,e1,ITU,Y97,zq,OxQ,S9Q,gNN,D_v,QJ,L5,wzN,kEN,iB,K5,Al,h$7,Ue,C5,Mb,Fu,WQh,yJ,Ph,c1k,f5,VL4,bB,$qD,seh,H4U,B7Q,EBk, R$k,Tq,J1d,uO5,dqU,Nb,GpQ,Xu,Z4T,tl,r1N,vh,qJ5,xqN,mr,Oe,lb7,S1,gz,Dc,wz,nBk,kn,hp,W_,jeT,ab7,VT,$T,z$7,sn,QeL,LQ5,e$T,i4D,KQ5,A1h,B_,UqN,En,Jp,uX,CwD,dA,GW,rA,MLQ,qQ,xT,FQQ,nF,ed,jd,iX,KF,y1l,Ap,PwT,CF,MQ,FK,fbv,P_,b4U,bX,TW,XK,QT,tp,v_,my,T7Q,oG,pF,IG,N77,On,Sd,gA,Dx,wA,kT,Wc,cc,V3,$h,Xnk,tLT,vB5,Ri,Hc,JY,u1,mq5,oBN,pnT,d4,Gn,ZS,IbU,YJQ,Es,O4k,SJd,r4,gBN,q7,xh,nI,j$,ai,e$,zn,LI,i1,AY,Us,CI,M7,KI,kpL,h27,y3,Pc,fI,WkU,Tn,VRp,N7,Xm,$aN,tY,mR,pI,stT,oi,Ii,Yh,Os,HVT,DS,ExN,R2v,JWL,kh,w4,uyL,daU,G3k, ho,rW7,b1,ZVN,qAU,WS,xaN,cS,lwd,Vw,nxL,jtL,aw7,e2T,z24,$c,Lkk,QtQ,sR,ER,iV5,RO,KkN,Jo,AWl,Ual,ub,C74,MRU,Fkp,yW4,dk,P7v,G5,bVL,rk,qX,NTU,TTN,X85,tRQ,vxT,lb,n8,jJ,maD,oxl,p8v,IwT,YAh,OVT,SAh,gxU,DaN,w8k,eJ,z5,k3N,hWQ,Qw,L8,WCh,ib,K8,UR,cmQ,C8,MX,Fq,Vq4,yw,$EU,PS,s2v,f8,HEp,Bn5,bb,E9Q,RWN,JmT,T5,NX,Xq,to,vS,u9D,dE5,m0,oO,p8,GOQ,IO,Yc,OR,SJ,gk,ZEh,rm4,DN,wk,q0Q,kc,h9,Ws,cs,uek,xEv,ljl,VA,n9v,j2d,aj4,$t,si,Hs,Bs,Ei,Rc,J9,uz,dV,jT,ac,eWv,zWh,A9,Ui,LCv,Ca,TG,FU,t9,Mq4,bEh,FCL,TnL,X5l,tqU,NnN,v95,mEv,o9p, kt,Y0D,g9N,S0v,w57,kOL,hNU,VD,$C,cQl,VU7,Brl,s2,EWd,$lp,Hl,Bl,E2,Rp,JQh,G65,uck,qkN,zNQ,eNU,xl4,Qbv,uI,nW5,lIQ,K2D,CQk,Ulk,PQN,MUL,d2,G2,X77,qD,tUl,OP5,Yk7,IIQ,p75,mlL,DlD,gWU,oW5,cC7,WXl,VuQ,ap,H9k,$kQ,s4U,vWh,BZl,EEd,xC,nY,k6v,w7N,hKN,RKv,lI,SkU,uZQ,GyU,rC7,xkU,j4d,adh,zKQ,Q4N,i9T,LXN,Muk,ACD,KXd,FX5,fdQ,b95,TZp,NZN,F0,Wl,vEl,XkQ,fY,ND,X0,pkl,Id5,oEN,tO,YMT,vl,mz,wL,op,IjN,pY,Ip,YC,O9p,SM7,O2,gEv,Dkd,wkU,S0,g2,Dt,w2,kC,hx,WL,cL,Vg,kyD,hek,$l,WJ7,sf,BS,HL,BL,$Od,cXk,Ef,sv5,HAU,ByN,Rq,VmU,Jx,E1p, um,Rel,JX7,DET,up5,dU,ke,yx,e0,dOp,GHU,Zq,Nrl,Zt,ZAl,yD,Pl,QD,z2,JO,iI,ldQ,eK4,LY,fIU,yCl,rXk,L24,jb5,rU,mkl,cl,xON,qzl,RNQ,nEv,lFp,PGT,CY,bP7,Trv,AQN,qM4,Z97,rQD,dld,HPQ,sbN,W2v,JCl,aId,UkN,F2d,yQh,AO,U2,KY,CGQ,dkU,jv4,n1d,q1,xl,lm,n0,jo,aq,aFQ,Qg,L0,im,Ax,Uf,eek,K0,C0,M1,zeT,FG,yg,PL,bm,LJ4,iAv,Ta,N1,XG,tx,vL,mH,oq,p0,C8Q,Yl,Mmk,Iq,FJv,AXT,UON,yX4,Of,So,P8v,fFL,gU,bAk,Wp,Nyh,Tyv,tm4,mOU,o1p,v17,YzL,OAp,DOL,kHN,hML,wqT,$g,Hb,s1,WZ4,c$U,$6l,VHT,cb,smT,Hm7,BLd,EeN,VQ,d6N,GkL,Zml,uod,J$D,RMQ,r$T,Bb, Sz4,qX7,g1h,x6v,lGv,aGh,ne7,E1,jml,Qm4,eMN,zM5,imN,LZQ,KZv,A$L,Ju,MHd,U6k,FZh,CJN,y$p,PJ4,fG7,bml,TLv,NLU,XHv,tHl,veL,m6v,oeU,pHN,uy,YX4,Om5,SXv,IGv,gel,wHk,dE,GV,kkv,h6T,ZH,rE,Wrl,clp,V1D,$bd,xg,s1N,H5T,nB,jG,En5,R6T,Jlk,Gq4,eG,LB,KB,Z5k,Au,U1,CB,lcN,j1N,nnh,e6L,M1Q,Q1v,Np,Fs,ack,xbp,qeL,rl5,TV,yQ,by,o7,pB,PB7,I7,Yg,md,NzN,fcU,b5U,Xh7,O1,SG,vn4,DH,wE,kg,hR,W0,c0,V4,mb4,onN,$0,H0,Ew,IcN,YeN,B0,O5U,Dbp,whD,RQ,kq4,dP,hvN,GY,rP,Wyp,Z$,qh,cpU,l_,$QT,sGN,jr,aQ,i_,BAD,zY,KT,Uw,ETp,Mh,LT,AR,Rvd,Fh,JpD,y4, uKN,er,Q4,HFd,CT,P0,dQd,GWQ,fT,ZFU,b_,TY,Nh,Xh,rpU,v0,tR,mN,oQ,qnN,xQv,pT,IQ,Y0,Ow,Sr,lxp,gP,D$,nTv,jGd,wP,k0,hw,evU,axp,WJ,zv5,QGd,LyN,cJ,iFD,KyN,App,UQL,CXl,VK,$P,sj,HJ,Mdp,Fyl,Ej,ypQ,Ru,Jw,PXv,fxl,uS,bFp,TAh,vTd,mQ7,NA5,X_7,tdp,Gw,Zs,rW,qj,oTp,p_N,Ix5,Yn4,lS,gTk,nv,w_4,hm7,kWh,QK,zw,cYL,V$p,$7L,siN,Lv,HI7,Kv,Aw,B4D,Rmp,JYQ,Cv,PJ,ZId,Ub7,Pb,qsD,x7U,lSN,nhD,jiD,Mp,Mj,Tw,Nj,zmN,Qi5,LR5,Xg,U77,iIU,KRk,M$d,FRL,tw,yYh,C1d,P1T,vJ,mM,ou,fSh,bID,pv,Iu,T45,YP,N4l,Oj,fv,wW,Xc4,CB7,z6v,kP,hg,cx,Vs,$a,sd,Hx, Wx,R9,vhQ,uf,ohQ,dh,IS5,pcN,m7k,Ys4,OIp,Ssd,q8,ghd,D7L,knN,xa,ylN,lf,W0h,VJL,Xs,$Xh,sO4,fB,Lrh,KrQ,Ald,hlN,jN,a9,zc,H8N,Bkv,Ec4,RlN,Joh,uqU,dX4,roN,qRN,Z8h,xXk,lNT,ncp,jON,Qs,aNd,Ag,elp,zlN,QOT,Ud,L0N,M8,F8,ys,Px,fl,i8D,bf,Tc,K0N,AoU,N8,X8,tg,vx,mI,o9,CbU,UXd,pl,MJL,yoU,I9,PbD,F04,uo,Ra,du,Zv,ru,ZE,fN5,ocD,J$,J0,ny,O84,gcU,ka,Qf,wh,Ly,A0,wSD,Ea,Ua,c94,Cy,Mc,VTk,$Z4,scp,HaT,FY,BVD,Etp,yf,RJk,ZaN,GGT,J9Q,dZh,uUL,PF,r97,fy,qiT,xZp,nt5,jcN,aJv,eJl,KEl,t0,vF,Czd,m$,oa,MTT,Pz7,fJD,ba7,TVl,py,Ia,YX,Oa,NVh, tTv,vtk,Vk,DZk,IJD,Yip,kGl,$q,hnD,cOv,WzQ,V0D,HT,Rs,$Dh,sP,JT,uU,spD,B2p,rM,lU,z8,iU,atU,enN,MN,CC,yk,PT,znU,iYd,LzL,Kzk,bU,fC,AO4,CId,M0h,yOd,XE,FzN,PIk,ftd,vT,mS,T2N,Ze,NN,G2h,HYT,xDd,Sy,FE,UD5,cN,Qk,sV,HN,gCN,wl4,DDd,LC,KC,k2v,EV,Ro,WH7,J7,uc,cx4,AT,de,QpD,Zf,mDl,re,u0U,JOv,ECT,qe,$1k,lc,GaD,d15,rx5,qf7,ao,zr,QC,eb,ic,KQ,x1D,A7,nlh,UV,aq5,F1,jqd,yC,PN,LHN,fQ,AxD,U1L,Ne,CmL,yxl,we,hK,WV,$K,PmD,sg,HV,JK,ul,da,Gv,fqv,ZW,ra,XL7,qS,xK,tod,vlN,ll,nz,m1D,olv,pLp,Iqp,jY,aB,YfN,O0N,Sfp,Lz,il,Ug,Cz,gll, D1U,MS,F5,yv,PV,wLD,kaN,fz,hdh,WdN,bl,VGl,cuT,$pT,Tv,HBv,s7N,BEQ,NS,X5,EgQ,JuT,us7,tK,vV,m9,dpp,ZBp,oB,ruL,IB,q1D,xpv,pz,YK,Og,SY,j7p,ed7,lHl,aHD,zdD,ngl,Q75,LdT,DW,iB7,Au7,MG7,yuN,Fdd,HP,sx,RL,fHQ,JD,uu,d6,TE5,Gf,NEN,bBT,Zp,vgv,r6,q2,mpp,xj,og5,psN,gtp,IHN,pb4,OB4,Y1D,S14,lu,nM,j4,aL,ggh,kVl,QN,LM,iu,WND,h0d,e4,cRQ,Vr7,$hl,HTd,KM,rRN,a$L,FN,e0k,kK,QQN,LNk,iTT,KNU,AR4,PP,Uhp,fM,bu,Tf,C_h,tD,MrL,FNT,vP,mj,yRh,P_N,f$N,bTv,TPD,oL,XN,NP5,X0U,pM,v0h,mhv,o0N,IL,p0Q,I$v,YwL,OTQ,Swl,g0l,DhT,w0Q,kYp,h84,Yj, cwd,Ox,$jd,VgL,Hvh,suk,EPk,w6,WMd,S4,kj,R8k,JwL,hz,ug4,Ww,cw,VL,$G,sC,djN,Hw,GwD,EC,lsU,asd,e8v,z85,Qup,uM,LMv,ju7,xjp,ivh,Rj,KMv,Ujv,Bw,Jz,rwk,qjl,dR,CSp,Mg4,nPD,Zvl,FMv,Z7,yw7,rR,qW,PS5,xG,TW5,fsv,bvp,lM,NWl,np,jv,aj,ev,XJN,tgl,vPp,zj,oPp,pJQ,QL,IsN,Lp,iM,Yjd,Ovp,SjD,gPT,Dj5,wJT,VNd,hfk,Upd,Az,s9k,Hlk,WI4,cgl,kwv,MW,u8Q,Cp,UC,$8T,Gck,Jgv,Rfk,EaU,Bhl,yL,ZlN,wa,Pw,fp,bM,rgD,Tj,qdk,NW,x8p,Ex,lEQ,XT,WP,VN,Kd5,mh,pp,aEv,efN,Ij,OC,oj,vw,Sv,tz,nap,j9k,gR,zfN,Q9Q,Dp,BWp,hD,D7,LIk,YG,ilN,KIh,Agk,U8d,wR, kG,Cfh,MNL,FIh,ygv,Pf5,AwD,M2,WM,cM,hJ,bld,Xbl,tGU,VM,ThN,Nhh,XxU,tNp,$8,va5,sZ,m8U,pxL,HM,IE4,Ydv,RE,Ol4,EZ,Zo,ga5,SdN,kcl,wxd,hCT,W$p,D85,Fn,c0Q,yM,Vz7,saN,$cT,PM,trk,HyD,Bup,EXl,RCD,J0k,dcU,GJL,Zy7,r05,qaD,uYT,fN,wb7,bs,nXk,TM,lvv,jah,avd,DpQ,zf,eCD,zCv,Xn,CoN,UcN,pN,MzN,A0p,fvN,byd,Tuh,Nuk,XFU,tzU,vXp,mcN,oXl,pFN,Ivl,YaD,Oyd,Sa4,OZ,N9,Dch,wFd,IE,h3p,gXD,Y8,WSk,cT5,ssk,Eql,HC5,gv,R3Q,Do,VyD,SA,wv,$Np,ha,dNl,ZCv,G8l,rTp,uEv,qPL,xNU,le7,nq4,jsd,e3N,z3U,ael,LSh,KSh,iCN,MyT,UNl,Qs7,ATd,FS5,CU5,yT5, PUN,feQ,NMD,TMk,bCL,Wu,XT5,ty5,vqU,mNN,oqh,Iev,OC4,SP4,gqd,DNh,wTT,cu,k8L,hZN,c7N,Vbl,Hu,soQ,ES,Be7,EM4,RZl,J7L,deT,u1N,r7l,qVd,xeN,RM,lf5,Grh,ZQU,joN,afU,eZU,zZp,Qo4,Lbv,g6,iQ5,Kbv,A7T,Ccl,Uep,MbD,y7N,PcN,FbQ,k8,JJ,bQL,TeQ,Ne5,IfD,vM7,meD,oMl,YV7,SVh,d8N,up,tbd,XNN,OQk,BP,pNU,Kp,cP,BMd,hsv,krd,W9d,cK4,$Sk,sBT,nMv,GM,us,DeQ,HzN,wN5,RSk,BM,JJh,oaU,JTT,gMT,dv,Z6,rK,d9U,qs,GMU,ZND,rJQ,qZU,x9p,n85,jEU,QEv,aoD,zS5,LKD,lp,U97,KKU,AJN,FKk,yJ7,Ps4,n_,foN,xJ,bND,MA4,iNT,j6,TvT,eSp,Nvh,aM,tAk,XMN,m9T,o8T,pMT, v8d,e6,OND,YZh,D9v,g8D,SZv,wM7,kM4,zS,hbp,WF7,V6N,$sk,caU,sM5,JaN,BKk,EJ4,RbT,u2d,dsp,GSv,raD,Z_k,qSv,xsl,Qo,l6k,nJN,a6v,jMl,ebN,zbN,LFL,i_Q,Aa5,Cp4,KFN,M6D,FFL,yap,QMD,Pph,Us7,ip,f6l,b_k,TKv,NKT,Aa,t6k,Xup,vJk,msd,oJD,YSQ,pup,gJh,US,I6d,Dsp,C_,c_d,wuT,F2,yo,VZN,Ms,$HU,Pu,B$T,H1k,hFp,WGN,EDp,RF4,J_5,kSp,ut5,f_,dHp,sNd,HQv,K_,Z1p,r_p,qmp,xH4,lMD,nDp,jNp,aMD,eFD,zFN,LGh,i1N,KGU,QNk,A_N,UH4,CYN,MZh,FGT,y_N,b1Q,fMh,PYD,T$Q,Ns,wn5,N$v,XR7,X2,tZ4,vDh,vu,pRU,IM5,mF,O1N,Sm4,Ymk,oDQ,oM,ta,mHh,YJ,p_,gDT,OS, IM,hLd,VC5,swL,H3k,EHl,wR4,$mh,RLU,kbU,JGT,uVN,dml,kJ,S6,rG5,qqd,GP4,D6,lVv,nHT,cG4,WO4,xm5,jwp,BsU,Z3N,DHU,h_,WR,cR,aV4,Ve,KOd,QwL,AGl,LOD,zLd,UmT,eLl,FOU,C3N,$D,yGk,fV4,TsU,NsQ,vHQ,Em,mmD,Xv4,wK,IVv,Yqp,Gb,kJL,sm,O34,Sq4,Dmk,gHU,wvl,pvL,J_,kPN,hPp,Wwh,V77,c4D,ffD,RN,$BN,HHQ,s$5,Eb5,BDp,b34,J4N,RPN,uY,HR,uC7,r$,dBl,G_N,ZHQ,r45,q4N,ZM,tCl,unD,gK,xBl,qH,lnU,nbT,j$T,anL,ePL,zPD,xD,lY,iHN,Kwv,A4T,Q$5,Lwd,n1,FwD,Cj5,M7U,y45,jZ,PjD,fnp,bHN,aN,TDh,XmU,t77,vbN,eZ,ND7,zb,Qe,mBQ,obT,pml,Y4k,OHv,S4k,gbD,K1, L1,iY,DBL,A_,wmN,k_N,hoQ,c6d,WvN,PR,$wp,sU7,VVl,HwQ,f1,B3T,bY,EYh,Tb,Ro7,J6N,G9v,q7Q,uF5,ZwQ,NH,dwU,r6v,xw5,lKN,nYk,jUD,t_,aKD,oN,vR,eoh,p1,IN,QUd,Lv4,Om,SZ,iw7,YD,KvT,g$,UwQ,A6p,w$,kD,hG,FvT,CRN,MVl,Wv,y6d,T3l,fKL,PRQ,bwk,cv,XId,oY4,pI5,VB,IK5,tV4,Y7L,$H,vYp,gYd,sq,Hv,DwD,wIh,k9N,h1T,W4D,Rw,$gk,sTQ,HLv,JG,Vw4,R1d,Eq,u3,ds,c2D,dgv,uzT,xH,GKU,r2T,xgd,ZLN,l3,rs,jC,qm,qtQ,n3,lAU,aw,n_p,jT7,aAv,eC,zP,e1k,z1U,QTl,L4d,iLT,K4N,A2N,Mwl,Ug5,F4Q,y2Q,bL7,ToN,pgk,Pv,OLU,Dgk,g_l,St4,mgl,o_l,Nok,tw4,IAl,f3,b3, kKT,pQ,eQp,hiN,Nm,tG,WlU,c87,Xgl,YtN,$K5,sP5,HnN,vv,SC,EVQ,RiD,J8p,gs,uDT,Gzl,dKQ,ZnL,DV,ws,r8U,lzQ,nVN,Wm,xKh,jPk,azk,qFL,$b,eiU,zik,V1,QP7,Ll5,inv,KlN,UKT,A8D,FlT,y8v,CnL,fzk,bn5,MS4,Bm,E4,T8l,tS5,R$,X64,N8d,vV5,oV5,mK4,p64,J4,IzQ,YFD,OnU,SFh,gVl,DKp,w6U,hVk,kzN,WYl,cvl,V_5,$t4,sAh,B15,dD,uj,G_,EOl,RV7,Ho7,Zol,rvl,qo5,nO4,lZN,xt4,jA7,aZT,Zn,rD,eVD,zVL,QAD,LY5,KYT,Avp,xb,Ut4,qB,nH,io4,j7,C5N,M_v,FYk,yv7,P5T,a$,fZQ,bol,XC7,e7,t_l,N1Q,z_,Q1,LH,mtT,oOT,pCQ,vO5,Yok,IZQ,Ook,ij,So7,gOk,wCN,Wid,Dtk,kxl, KH,cVN,$y7,s65,BG4,EoL,A4,U4,Rkd,Vsk,dyL,uBN,JVv,CH,MB,Ztd,GDQ,FC,y1,Pm,rVv,fH,qyp,xyk,l0l,noN,bj,j6T,T_,a0v,NB,ekU,XC,t4,zkD,vm,Q67,mw,o$,itT,UyQ,CE4,LiD,Msk,PEU,f04,bt7,yVU,Fip,NGv,TGl,X$5,my4,Yb,p$D,ooT,ts4,vop,I0D,YyL,O4,S7,OtL,SyN,gol,DyN,w$Q,kDL,WcN,cyd,JyL,sz7,HGU,VMT,d4l,WI,Va,x4p,l15,HI,nrk,BI,jzd,GhL,h6,J6,RU,$Y,eaD,zaN,uR,LcU,Kcl,iGp,d3,s7,kb,Qzh,E7,ZGd,a1D,U4T,gD,G9,CPv,MMN,cI,ryk,ZK,r3,FcQ,qw,xY,lR,yyT,PPh,bGk,TpQ,f17,nw,Npp,jV,aU,XjT,tMl,vr7,m4d,orN,pjd,Y85,I1N,z9,eV,OGT,grk,S8L,Qa, Lw,D4N,kh7,hUL,iR,wj4,WpT,cdT,$5N,Kw,ViQ,shd,Hhv,BqN,U7,Cw,RUN,Eid,JdQ,Mw,FF,d5v,u3T,GlU,rdN,ZhU,q3d,PI,x5N,lid,bR,niU,ai4,jh4,Nw,eUD,zUl,Qhv,ihk,KpN,AdD,Lpp,U5d,Ctp,MiL,Fpl,ydQ,Pt7,fiT,bhh,Tqd,vI,Nqk,XiN,ti7,m5p,Y3k,pid,viN,pw,oiT,oU,IiQ,IU,S3h,OhN,YY,D5D,wi5,klQ,H_D,DK,FHv,SV,w3,g3,h2,hzp,Wg,sF4,HdT,BBU,Rzv,EmT,JfQ,uf4,dRp,ZdN,rfT,qUT,Gg4,zzN,QFv,ezv,LTQ,KTL,URd,CkT,Mhk,Bg,Af7,idU,xR7,Et,yfU,Pkk,FTU,TBT,bdp,NBl,XZT,th4,vmN,RT,mRN,jF4,$_,om4,pZv,ImL,YUp,lmD,nml,Hg,gm5,DRd,wZk,kgQ,Odh,J2,SUk,Wnv, sZT,GK,HX5,BCh,VjU,ro,EIv,RA7,hAL,Jid,$r4,uQl,qg,ZA,dr4,ZXl,GUh,uF,qll,x_,oHd,xrU,jZp,nID,eAd,zA5,aR7,nL,lF,LnL,iX7,KnU,AiN,TCN,yiU,PgT,Mjd,CgU,ew,vIQ,X4d,mrp,oIT,aT,QV,LL,OX5,Ylv,IRh,KL,bXU,Mg,gI5,CL,iF,w4N,kUN,hxv,NCU,Pg,bF,W8N,fR5,Sl4,A2,crl,zK,VWT,$iT,syN,Xz,Drd,Hiv,BdU,t2,vg,EU7,Ut,tjD,Rxp,Jrv,fL,ubN,Fz,diD,yV,Me,GIk,rrd,m4,oT,qD7,xi4,lgQ,Ng,TK,nUv,lRk,jyQ,Fnd,ag5,exT,zx7,QyD,pL,IT,K8v,C9T,F8D,iiT,tWv,vUh,mih,oUp,p1L,Igh,YDd,SD7,OiT,Y_,Ot,Sw,gUN,DiT,w17,HS,kIU,go,hT7,DA,Wol,wo,k_,chN,H_,h8,Fo, VfN,bI,tuh,$I4,r2,sdN,S$,g4,HKN,Ga,BtL,EdN,T2,OEN,RTl,JhN,urp,W6,GBQ,ZKd,c6,$V,sF,rh4,l5D,nd4,H6,jdT,qY7,eTl,xId,a5N,zTp,Qd7,Lo7,iKD,B6,Ahp,Nc4,se,ZN,UId,CVd,xc,KoD,dz,MfL,FoT,yhN,EF,Fm,f5T,bKd,RP,J8,TtN,un,d8,Vt,Nt4,XQT,BTU,Gz,Zz,tfL,r8,qK,vdQ,xV,mIQ,ln,nn,odd,pQp,fwp,jS,I55,OKU,YYN,aP,eS,SYv,zz,gdU,DIh,wQN,kBl,h4U,W7l,VDc,Ln,cNt,$Lf,skI,HUS,BNt,ulf,E5l,R4u,JNK,GQt,rNK,qvf,xL$,ZUX,Kn,lhX,n5U,jk6,ah6,e4I,UF,z4I,Cn,MK,FD,Qkt,L7S,K7u,ANf,UL6,CTI,F7u,MDU,yNl,P6,fn,bUl,PTK,fh2,bn,TNf,NNI,Tz,NK,Xd6,XD, tDc,t8,v5u,v6,ml,mL6,oP,pn,o5I,pdI,IP,YV,IhU,OF,Yv$,OU6,w8,kV,Sv2,g56,DLt,hct,kQI,hv,WU2,cS6,Vll,p5v,wd2,sf6,H$6,E6S,h4p,uT;hN=function(h){return function(){return h4p[h].apply(this,arguments)}}; g.$5=function(h,W){return h4p[h]=W}; W7D=function(h){var W=0;return function(){return W=this.length))return this[h]}; Dh=function(h){return h?h:SD}; GQQ=function(h,W,c){h instanceof String&&(h=String(h));for(var V=h.length-1;V>=0;V--){var H=h[V];if(W.call(c,H,V,h))return{s7:V,gT:H}}return{s7:-1,gT:void 0}}; wN=function(h){return h?h:function(W,c){return GQQ(this,W,c).s7}}; g.hS=function(h,W,c){h=h.split(".");c=c||g.k5;for(var V;h.length&&(V=h.shift());)h.length||W===void 0?c[V]&&c[V]!==Object.prototype[V]?c=c[V]:c=c[V]={}:c[V]=W}; $6=function(h,W){var c=g.c2("CLOSURE_FLAGS");h=c&&c[h];return h!=null?h:W}; g.c2=function(h,W){h=h.split(".");W=W||g.k5;for(var c=0;c2){var V=Array.prototype.slice.call(arguments,2);return function(){var H=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(H,V);return h.apply(W,H)}}return function(){return h.apply(W,arguments)}}; g.JS=function(h,W,c){g.JS=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?qvk:xLU;return g.JS.apply(null,arguments)}; g.uK=function(h,W){var c=Array.prototype.slice.call(arguments,1);return function(){var V=c.slice();V.push.apply(V,arguments);return h.apply(this,V)}}; g.Gt=function(){return Date.now()}; Z2=function(h){return h}; g.rX=function(h,W){function c(){} c.prototype=W.prototype;h.Ms=W.prototype;h.prototype=new c;h.prototype.constructor=h;h.ys=function(V,H,B){for(var E=Array(arguments.length-2),J=2;J=0;--c)c in V&&W.call(void 0,V[c],c,h)}; g.jl=function(h,W,c){W=n$(h,W,c);return W<0?null:typeof h==="string"?h.charAt(W):h[W]}; n$=function(h,W,c){for(var V=h.length,H=typeof h==="string"?h.split(""):h,B=0;B=0;V--)if(V in H&&W.call(c,H[V],V,h))return V;return-1}; g.el=function(h,W){return e4v(h,W)>=0}; z4v=function(h){if(!Array.isArray(h))for(var W=h.length-1;W>=0;W--)delete h[W];h.length=0}; g.QU=function(h,W){W=e4v(h,W);var c;(c=W>=0)&&g.zt(h,W);return c}; g.zt=function(h,W){return Array.prototype.splice.call(h,W,1).length==1}; g.UI=function(h,W){W=n$(h,W);W>=0&&g.zt(h,W)}; QkQ=function(h,W){var c=0;ah5(h,function(V,H){W.call(void 0,V,H,h)&&g.zt(h,H)&&c++})}; g.C$=function(h){return Array.prototype.concat.apply([],arguments)}; g.Mu=function(h){var W=h.length;if(W>0){for(var c=Array(W),V=0;V>>1),u=void 0;c?u=W.call(void 0,h[J],J,h):u=W(V,h[J]);u>0?H=J+1:(B=J,E=!u)}return E?H:-H-1}; g.Y6=function(h,W){h.sort(W||tS)}; K7L=function(h,W){var c=tS;g.Y6(h,function(V,H){return c(W(V),W(H))})}; g.OI=function(h,W,c){if(!g.sI(h)||!g.sI(W)||h.length!=W.length)return!1;var V=h.length;c=c||ANk;for(var H=0;HW?1:h0&&(W[H]=V)},h); return W}; NNv=function(h){h=Kr(h);var W=[];g.k6(h,function(c,V){V in Object.prototype||typeof c!="undefined"&&W.push([V,":",c].join(""))}); return W}; tD4=function(h){QW(h,"od",Xd5);QW(h,"opac",AB).X=!0;QW(h,"sbeos",AB).X=!0;QW(h,"prf",AB).X=!0;QW(h,"mwt",AB).X=!0;QW(h,"iogeo",AB)}; UO=function(h,W){return h.lastIndexOf(W,0)==0}; v5L=function(h,W){var c=h.length-W.length;return c>=0&&h.indexOf(W,c)==c}; g.Cr=function(h){return/^[\s\xa0]*$/.test(h)}; g.Mx=function(h,W){return h.indexOf(W)!=-1}; yW=function(h,W){return g.Mx(h.toLowerCase(),W.toLowerCase())}; g.bN=function(h,W){var c=0;h=PG(String(h)).split(".");W=PG(String(W)).split(".");for(var V=Math.max(h.length,W.length),H=0;c==0&&HW?1:0}; g.TF=function(){var h=g.k5.navigator;return h&&(h=h.userAgent)?h:""}; oJ=function(h){if(!Nx&&!Xa||!me)return!1;for(var W=0;W0:!1}; YF=function(){return IJ()?!1:pr("Opera")}; mL5=function(){return IJ()?!1:pr("Trident")||pr("MSIE")}; o5v=function(){return IJ()?oJ("Microsoft Edge"):pr("Edg/")}; OO=function(){return pr("Firefox")||pr("FxiOS")}; gj=function(){return pr("Safari")&&!(SK()||(IJ()?0:pr("Coast"))||YF()||(IJ()?0:pr("Edge"))||o5v()||(IJ()?oJ("Opera"):pr("OPR"))||OO()||pr("Silk")||pr("Android"))}; SK=function(){return IJ()?oJ("Chromium"):(pr("Chrome")||pr("CriOS"))&&!(IJ()?0:pr("Edge"))||pr("Silk")}; pdv=function(){return pr("Android")&&!(SK()||OO()||YF()||pr("Silk"))}; Ih7=function(h){var W={};h.forEach(function(c){W[c[0]]=c[1]}); return function(c){return W[c.find(function(V){return V in W})]||""}}; YvU=function(h){var W=g.TF();if(h==="Internet Explorer"){if(mL5())if((h=/rv: *([\d\.]*)/.exec(W))&&h[1])W=h[1];else{h="";var c=/MSIE +([\d\.]+)/.exec(W);if(c&&c[1])if(W=/Trident\/(\d.\d)/.exec(W),c[1]=="7.0")if(W&&W[1])switch(W[1]){case "4.0":h="8.0";break;case "5.0":h="9.0";break;case "6.0":h="10.0";break;case "7.0":h="11.0"}else h="7.0";else h=c[1];W=h}else W="";return W}var V=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");c=[];for(var H;H=V.exec(W);)c.push([H[1],H[2],H[3]||void 0]); W=Ih7(c);switch(h){case "Opera":if(YF())return W(["Version","Opera"]);if(IJ()?oJ("Opera"):pr("OPR"))return W(["OPR"]);break;case "Microsoft Edge":if(IJ()?0:pr("Edge"))return W(["Edge"]);if(o5v())return W(["Edg"]);break;case "Chromium":if(SK())return W(["Chrome","CriOS","HeadlessChrome"])}return h==="Firefox"&&OO()||h==="Safari"&&gj()||h==="Android Browser"&&pdv()||h==="Silk"&&pr("Silk")?(W=c[2])&&W[1]||"":""}; OUl=function(h){if(IJ()&&h!=="Silk"){var W=me.brands.find(function(c){return c.brand===h}); if(!W||!W.version)return NaN;W=W.version.split(".")}else{W=YvU(h);if(W==="")return NaN;W=W.split(".")}return W.length===0?NaN:Number(W[0])}; g5l=function(){var h=null;if(!Svd)return h;try{var W=function(c){return c}; h=Svd.createPolicy("goog#html",{createHTML:W,createScript:W,createScriptURL:W})}catch(c){}return h}; wj=function(){Da===void 0&&(Da=g5l());return Da}; kF=function(h){this.X=h}; Wr=function(h){var W=wj();h=W?W.createScriptURL(h):h;return new kF(h)}; cr=function(h){if(h instanceof kF)return h.X;throw Error("");}; V6=function(h){this.X=h}; g.$u=function(h){if(h instanceof V6)return h.X;throw Error("");}; Hr=function(h){this.oT=h}; Br=function(h){return new Hr(function(W){return W.substr(0,h.length+1).toLowerCase()===h+":"})}; g.Eu=function(h,W){W=W===void 0?DLQ:W;a:if(W=W===void 0?DLQ:W,!(h instanceof V6)){for(var c=0;c4);H++)W[i4(h[H])]||(c+="\nInner error "+V++ +": ",h[H].stack&&h[H].stack.indexOf(h[H].toString())==0||(c+=typeof h[H]==="string"?h[H]:h[H].message+"\n"),c+=Q6(h[H],W));H")!=-1&&(h=h.replace(RcN,">")),h.indexOf('"')!=-1&&(h=h.replace(JSN,""")),h.indexOf("'")!=-1&&(h=h.replace(u67,"'")),h.indexOf("\x00")!=-1&&(h=h.replace(duT,"�")));return h}; g.Fk=function(h){return h==null?"":String(h)}; y6=function(h){for(var W=0,c=0;c>>0;return W}; Pr=function(h){var W=Number(h);return W==0&&g.Cr(h)?NaN:W}; GtL=function(h){return String(h).replace(/\-([a-z])/g,function(W,c){return c.toUpperCase()})}; Z$N=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; rSl=function(h){return h.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(W,c,V){return c+V.toUpperCase()})}; qIv=function(h){var W=1;h=h.split(":");for(var c=[];W>0&&h.length;)c.push(h.shift()),W--;h.length&&c.push(h.join(":"));return c}; f6=function(){return Nx||Xa?!!me&&!!me.platform:!1}; xuL=function(){return f6()?me.platform==="Android":pr("Android")}; b4=function(){return pr("iPhone")&&!pr("iPod")&&!pr("iPad")}; TA=function(){return b4()||pr("iPad")||pr("iPod")}; No=function(){return f6()?me.platform==="macOS":pr("Macintosh")}; l2p=function(){return f6()?me.platform==="Windows":pr("Windows")}; Xk=function(h){Xk[" "](h);return h}; n6l=function(h,W){try{return Xk(h[W]),!0}catch(c){}return!1}; a25=function(h,W){var c=jfv;return Object.prototype.hasOwnProperty.call(c,h)?c[h]:c[h]=W(h)}; g.tk=function(h){return a25(h,function(){return g.bN(ecp,h)>=0})}; g.vr=function(h,W,c){return Math.min(Math.max(h,W),c)}; g.mq=function(h,W){h%=W;return h*W<0?h+W:h}; o0=function(h,W,c){return h+c*(W-h)}; g.p6=function(h,W){this.x=h!==void 0?h:0;this.y=W!==void 0?W:0}; I0=function(h,W){return h==W?!0:h&&W?h.x==W.x&&h.y==W.y:!1}; g.Yu=function(h,W){this.width=h;this.height=W}; g.Ou=function(h,W){return h==W?!0:h&&W?h.width==W.width&&h.height==W.height:!1}; S8=function(h){return h.width*h.height}; DQ=function(h,W){this.X=h===gF&&W||""}; wF=function(h){if(h instanceof GA)return h;h=String(h).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return ZQ(h)}; Qfh=function(h){return zc4(h)}; zc4=function(h){var W=wF("");return ZQ(h.map(function(c){return rF(wF(c))}).join(rF(W).toString()))}; Uul=function(h){var W;if(!LUN.test("div"))throw Error("");if(i$7.indexOf("DIV")!==-1)throw Error("");var c="":(h=Qfh(W.map(function(V){return V instanceof GA?V:wF(String(V))})),c+=">"+h.toString()+""); return ZQ(c)}; KUk=function(h){for(var W="",c=Object.keys(h),V=0;V2&&TX4(H,E,V,2);return E}; TX4=function(h,W,c,V){function H(J){J&&W.appendChild(typeof J==="string"?h.createTextNode(J):J)} for(;V0)H(B);else{a:{if(B&&typeof B.length=="number"){if(g.H2(B)){var E=typeof B.item=="function"||typeof B.item=="string";break a}if(typeof B==="function"){E=typeof B.item=="function";break a}}E=!1}g.gX(E?g.Mu(B):B,H)}}}; g.Zr=function(h){return db(document,h)}; db=function(h,W){W=String(W);h.contentType==="application/xhtml+xml"&&(W=W.toLowerCase());return h.createElement(W)}; g.rb=function(h){return document.createTextNode(String(h))}; g.qJ=function(h,W){h.appendChild(W)}; g.xS=function(h){for(var W;W=h.firstChild;)h.removeChild(W)}; li=function(h,W,c){h.insertBefore(W,h.childNodes[c]||null)}; g.nk=function(h){return h&&h.parentNode?h.parentNode.removeChild(h):null}; g.jk=function(h,W){if(!h||!W)return!1;if(h.contains&&W.nodeType==1)return h==W||h.contains(W);if(typeof h.compareDocumentPosition!="undefined")return h==W||!!(h.compareDocumentPosition(W)&16);for(;W&&h!=W;)W=W.parentNode;return W==h}; hs=function(h){return h.nodeType==9?h:h.ownerDocument||h.document}; g.aY=function(h,W){if("textContent"in h)h.textContent=W;else if(h.nodeType==3)h.data=String(W);else if(h.firstChild&&h.firstChild.nodeType==3){for(;h.lastChild!=h.firstChild;)h.removeChild(h.lastChild);h.firstChild.data=String(W)}else g.xS(h),h.appendChild(hs(h).createTextNode(String(W)))}; X2N=function(h){return h.tagName=="A"&&h.hasAttribute("href")||h.tagName=="INPUT"||h.tagName=="TEXTAREA"||h.tagName=="SELECT"||h.tagName=="BUTTON"?!h.disabled&&(!h.hasAttribute("tabindex")||NXl(h)):h.hasAttribute("tabindex")&&NXl(h)}; NXl=function(h){h=h.tabIndex;return typeof h==="number"&&h>=0&&h<32768}; zC=function(h,W,c){if(!W&&!c)return null;var V=W?String(W).toUpperCase():null;return ek(h,function(H){return(!V||H.nodeName==V)&&(!c||typeof H.className==="string"&&g.el(H.className.split(/\s+/),c))},!0)}; ek=function(h,W,c){h&&!c&&(h=h.parentNode);for(c=0;h;){if(W(h))return h;h=h.parentNode;c++}return null}; ku=function(h){this.X=h||g.k5.document||document}; tlh=function(){this.X=this.Zi=null}; Kk=function(){}; UH=function(){if(!As())throw Error();}; As=function(){return!(!Ck||!Ck.performance)}; v67=function(h){return g.Js?"webkit"+h:h.toLowerCase()}; MJ=function(h){return function(){return h}}; g.FW=function(){}; muk=function(h){var W=W||0;return function(){return h.apply(this,Array.prototype.slice.call(arguments,0,W))}}; y_=function(h){var W=!1,c;return function(){W||(c=h(),W=!0);return c}}; P3=function(h){var W=h;return function(){if(W){var c=W;W=null;c()}}}; fk=function(h,W,c){var V=0;return function(H){g.k5.clearTimeout(V);var B=arguments;V=g.k5.setTimeout(function(){h.apply(c,B)},W)}}; bi=function(h,W,c,V){this.top=h;this.right=W;this.bottom=c;this.left=V}; TC=function(h){return h.right-h.left}; NJ=function(h,W){return h==W?!0:h&&W?h.top==W.top&&h.right==W.right&&h.bottom==W.bottom&&h.left==W.left:!1}; XW=function(h,W,c){W instanceof g.p6?(h.left+=W.x,h.right+=W.x,h.top+=W.y,h.bottom+=W.y):(h.left+=W,h.right+=W,typeof c==="number"&&(h.top+=c,h.bottom+=c));return h}; g.ts=function(h,W,c,V){this.left=h;this.top=W;this.width=c;this.height=V}; v3=function(h,W){return h==W?!0:h&&W?h.left==W.left&&h.width==W.width&&h.top==W.top&&h.height==W.height:!1}; g.oY=function(h,W,c){if(typeof W==="string")(W=m_(h,W))&&(h.style[W]=c);else for(var V in W){c=h;var H=W[V],B=m_(c,V);B&&(c.style[B]=H)}}; m_=function(h,W){var c=o6v[W];if(!c){var V=GtL(W);c=V;h.style[V]===void 0&&(V=(g.Js?"Webkit":pk?"Moz":null)+rSl(V),h.style[V]!==void 0&&(c=V));o6v[W]=c}return c}; g.IY=function(h,W){var c=h.style[GtL(W)];return typeof c!=="undefined"?c:h.style[m_(h,W)]||""}; YS=function(h,W){var c=hs(h);return c.defaultView&&c.defaultView.getComputedStyle&&(h=c.defaultView.getComputedStyle(h,null))?h[W]||h.getPropertyValue(W)||"":""}; OH=function(h,W){return YS(h,W)||(h.currentStyle?h.currentStyle[W]:null)||h.style&&h.style[W]}; g.gb=function(h,W,c){if(W instanceof g.p6){var V=W.x;W=W.y}else V=W,W=c;h.style.left=g.Sk(V,!1);h.style.top=g.Sk(W,!1)}; Dr=function(h){try{return h.getBoundingClientRect()}catch(W){return{left:0,top:0,right:0,bottom:0}}}; p2p=function(h){var W=hs(h),c=OH(h,"position"),V=c=="fixed"||c=="absolute";for(h=h.parentNode;h&&h!=W;h=h.parentNode)if(h.nodeType==11&&h.host&&(h=h.host),c=OH(h,"position"),V=V&&c=="static"&&h!=W.documentElement&&h!=W.body,!V&&(h.scrollWidth>h.clientWidth||h.scrollHeight>h.clientHeight||c=="fixed"||c=="absolute"||c=="relative"))return h;return null}; g.wb=function(h){var W=hs(h),c=new g.p6(0,0);if(h==(W?hs(W):document).documentElement)return c;h=Dr(h);W=W3(W);W=b$k(W.X);c.x=h.left+W.x;c.y=h.top+W.y;return c}; YIh=function(h,W){var c=new g.p6(0,0),V=ui(hs(h));if(!n6l(V,"parent"))return c;do{var H=V==W?g.wb(h):I2d(h);c.x+=H.x;c.y+=H.y}while(V&&V!=W&&V!=V.parent&&(h=V.frameElement)&&(V=V.parent));return c}; g.kS=function(h,W){h=O$L(h);W=O$L(W);return new g.p6(h.x-W.x,h.y-W.y)}; I2d=function(h){h=Dr(h);return new g.p6(h.left,h.top)}; O$L=function(h){if(h.nodeType==1)return I2d(h);h=h.changedTouches?h.changedTouches[0]:h;return new g.p6(h.clientX,h.clientY)}; g.h3=function(h,W,c){if(W instanceof g.Yu)c=W.height,W=W.width;else if(c==void 0)throw Error("missing height argument");h.style.width=g.Sk(W,!0);h.style.height=g.Sk(c,!0)}; g.Sk=function(h,W){typeof h=="number"&&(h=(W?Math.round(h):h)+"px");return h}; g.WW=function(h){var W=SId;if(OH(h,"display")!="none")return W(h);var c=h.style,V=c.display,H=c.visibility,B=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";h=W(h);c.display=V;c.position=B;c.visibility=H;return h}; SId=function(h){var W=h.offsetWidth,c=h.offsetHeight,V=g.Js&&!W&&!c;return(W===void 0||V)&&h.getBoundingClientRect?(h=Dr(h),new g.Yu(h.right-h.left,h.bottom-h.top)):new g.Yu(W,c)}; g.cW=function(h,W){h.style.display=W?"":"none"}; VI=function(h){return h?h.passive&&g6D()?h:h.capture||!1:!1}; $w=function(h,W,c,V){return typeof h.addEventListener==="function"?(h.addEventListener(W,c,VI(V)),!0):!1}; sN=function(h){if(h.prerendering)return 3;var W;return(W={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[h.visibilityState||h.webkitVisibilityState||h.mozVisibilityState||""])!=null?W:0}; Dul=function(){}; HW=function(h){h.ekM=!0;return h}; w25=function(){return(Nx||Xa)&&me?me.mobile:!BW()&&(pr("iPod")||pr("iPhone")||pr("Android")||pr("IEMobile"))}; BW=function(){return(Nx||Xa)&&me?!me.mobile&&(pr("iPad")||pr("Android")||pr("Silk")):pr("iPad")||pr("Android")&&!pr("Mobile")||pr("Silk")}; J3=function(h){try{return!!h&&h.location.href!=null&&n6l(h,"foo")}catch(W){return!1}}; u6=function(h,W){if(h)for(var c in h)Object.prototype.hasOwnProperty.call(h,c)&&W(h[c],c,h)}; hRp=function(){var h=[];u6(ktD,function(W){h.push(W)}); return h}; Weh=function(h){var W,c;return(c=(W=/https?:\/\/[^\/]+/.exec(h))==null?void 0:W[0])!=null?c:""}; $xl=function(){var h=cBL("IFRAME"),W={};g.gX(VKN(),function(c){h.sandbox&&h.sandbox.supports&&h.sandbox.supports(c)&&(W[c]=!0)}); return W}; cBL=function(h,W){W=W===void 0?document:W;return W.createElement(String(h).toLowerCase())}; sJl=function(h){for(var W=h;h&&h!=h.parent;)h=h.parent,J3(h)&&(W=h);return W}; RRN=function(h){h=h||d9();for(var W=new Hrp(g.k5.location.href,!1),c=null,V=h.length-1,H=V;H>=0;--H){var B=h[H];!c&&BjD.test(B.url)&&(c=B);if(B.url&&!B.X){W=B;break}}H=null;B=h.length&&h[V].url;W.depth!==0&&B&&(H=h[V]);return new EFQ(W,H,c)}; d9=function(){var h=g.k5,W=[],c=null;do{var V=h;if(J3(V)){var H=V.location.href;c=V.document&&V.document.referrer||null}else H=c,c=null;W.push(new Hrp(H||""));try{h=V.parent}catch(B){h=null}}while(h&&V!==h);V=0;for(h=W.length-1;V<=h;++V)W[V].depth=h-V;V=g.k5;if(V.location&&V.location.ancestorOrigins&&V.location.ancestorOrigins.length===W.length-1)for(h=1;hW&&(W=c.length);return 3997-W-h.G.length-1}; qP=function(h,W){this.X=h;this.depth=W}; GFk=function(){function h(J,u){return J==null?u:J} var W=d9(),c=Math.max(W.length-1,0),V=RRN(W);W=V.X;var H=V.W,B=V.G,E=[];B&&E.push(new qP([B.url,B.X?2:0],h(B.depth,1)));H&&H!=B&&E.push(new qP([H.url,2],0));W.url&&W!=B&&E.push(new qP([W.url,0],h(W.depth,c)));V=g.xw(E,function(J,u){return E.slice(0,E.length-u)}); !W.url||(B||H)&&W!=B||(H=Weh(W.url))&&V.push([new qP([H,1],h(W.depth,c))]);V.push([]);return g.xw(V,function(J){return dxL(c,J)})}; dxL=function(h,W){g.l6(W,function(H){return H.depth>=0}); var c=ns(W,function(H,B){return Math.max(H,B.depth)},-1),V=UL5(c+2); V[0]=h;g.gX(W,function(H){return V[H.depth+1]=H.X}); return V}; Zr7=function(){var h=h===void 0?GFk():h;return h.map(function(W){return r9(W)})}; rBN=function(h){var W=!1;W=W===void 0?!1:W;Ck.google_image_requests||(Ck.google_image_requests=[]);var c=cBL("IMG",Ck.document);W&&(c.attributionSrc="");c.src=h;Ck.google_image_requests.push(c)}; jI=function(h){var W="hh";if(h.hh&&h.hasOwnProperty(W))return h.hh;var c=new h;h.hh=c;h.hasOwnProperty(W);return c}; aX=function(){this.W=new Dul;this.X=As()?new UH:new Kk}; qOL=function(){eI();var h=Ck.document;return!!(h&&h.body&&h.body.getBoundingClientRect&&typeof Ck.setInterval==="function"&&typeof Ck.clearInterval==="function"&&typeof Ck.setTimeout==="function"&&typeof Ck.clearTimeout==="function")}; xxp=function(){eI();return Zr7()}; la7=function(){}; eI=function(){var h=jI(la7);if(!h.X){if(!Ck)throw Error("Context has not been set and window is undefined.");h.X=jI(aX)}return h.X}; zX=function(){throw Error("Invalid UTF8");}; nF7=function(h,W){W=String.fromCharCode.apply(null,W);return h==null?W:h+W}; zR5=function(h){var W=!1;W=W===void 0?!1:W;if(jJd){if(W&&(aaT?!h.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(h)))throw Error("Found an unpaired surrogate");h=(eRd||(eRd=new TextEncoder)).encode(h)}else{for(var c=0,V=new Uint8Array(3*h.length),H=0;H>6|192;else{if(B>=55296&&B<=57343){if(B<=56319&&H=56320&&E<=57343){B=(B-55296)*1024+ E-56320+65536;V[c++]=B>>18|240;V[c++]=B>>12&63|128;V[c++]=B>>6&63|128;V[c++]=B&63|128;continue}else H--}if(W)throw Error("Found an unpaired surrogate");B=65533}V[c++]=B>>12|224;V[c++]=B>>6&63|128}V[c++]=B&63|128}}h=c===V.length?V:V.subarray(0,c)}return h}; QI=function(h){g.k5.setTimeout(function(){throw h;},0)}; QJv=function(h){return Array.prototype.map.call(h,function(W){W=W.toString(16);return W.length>1?W:"0"+W}).join("")}; LeD=function(h){for(var W=[],c=0;c>6|192:((H&64512)==55296&&V+1>18|240,W[c++]=H>>12&63|128):W[c++]=H>>12|224,W[c++]=H>>6&63|128),W[c++]=H&63|128)}return W}; g.i6=function(h,W){W===void 0&&(W=0);irD();W=Kek[W];for(var c=Array(Math.floor(h.length/3)),V=W[64]||"",H=0,B=0;H>2];E=W[(E&3)<<4|J>>4];J=W[(J&15)<<2|u>>6];u=W[u&63];c[B++]=""+d+E+J+u}d=0;u=V;switch(h.length-H){case 2:d=h[H+1],u=W[(d&15)<<2]||V;case 1:h=h[H],c[B]=""+W[h>>2]+W[(h&3)<<4|d>>4]+u+V}return c.join("")}; g.Ks=function(h,W){if(ABQ&&!W)h=g.k5.btoa(h);else{for(var c=[],V=0,H=0;H255&&(c[V++]=B&255,B>>=8);c[V++]=B}h=g.i6(c,W)}return h}; CNT=function(h){var W=[];Uxp(h,function(c){W.push(c)}); return W}; A3=function(h){var W=h.length,c=W*3/4;c%3?c=Math.floor(c):g.Mx("=.",h[W-1])&&(c=g.Mx("=.",h[W-2])?c-2:c-1);var V=new Uint8Array(c),H=0;Uxp(h,function(B){V[H++]=B}); return H!==c?V.subarray(0,H):V}; Uxp=function(h,W){function c(u){for(;V>4);E!=64&&(W(B<<4&240|E>>2),J!=64&&W(E<<6&192|J))}}; irD=function(){if(!UN){UN={};for(var h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),W=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var V=h.concat(W[c].split(""));Kek[c]=V;for(var H=0;H=W||(V[h]=c+1,h=Error(),$ul(h,"incident"),QI(h))}}; TX=function(h,W,c){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(c===void 0?0:c)&&Symbol.for&&h?Symbol.for(h):h!=null?Symbol(h):Symbol():W}; t3=function(h,W){NP||Xj in h||tK4(h,vF4);h[Xj]|=W}; vW=function(h,W){NP||Xj in h||tK4(h,vF4);h[Xj]=W}; mx=function(){return typeof BigInt==="function"}; ps=function(h,W){return W===void 0?h.X!==oX&&!!(2&(h.TV[Xj]|0)):!!(2&W)&&h.X!==oX}; mxp=function(h,W){if(h!=null)if(typeof h==="string")h=h?new Cs(h,MP):Fj();else if(h.constructor!==Cs)if(NjU&&h!=null&&h instanceof Uint8Array)h=h.length?new Cs(new Uint8Array(h),MP):Fj();else{if(!W)throw Error();h=void 0}return h}; IX=function(h,W){if(typeof W!=="number"||W<0||W>=h.length)throw Error();}; oFd=function(h,W,c){var V=W&128?0:-1,H=h.length,B;if(B=!!H)B=h[H-1],B=B!=null&&typeof B==="object"&&B.constructor===Object;var E=H+(B?-1:0);for(W=W&128?1:0;WW.length)return!1;if(h.lengthH)return!1;if(V>>0;kw=W;hI=(h-W)/4294967296>>>0}; VH=function(h){if(h<0){WX(0-h);var W=g.e(cX(kw,hI));h=W.next().value;W=W.next().value;kw=h>>>0;hI=W>>>0}else WX(h)}; sp=function(h,W){var c=W*4294967296+(h>>>0);return Number.isSafeInteger(c)?c:$3(h,W)}; SO5=function(h,W){var c=W&2147483648;c&&(h=~h+1>>>0,W=~W>>>0,h==0&&(W=W+1>>>0));h=sp(h,W);return typeof h==="number"?c?-h:h:c?"-"+h:h}; $3=function(h,W){W>>>=0;h>>>=0;if(W<=2097151)var c=""+(4294967296*W+h);else mx()?c=""+(BigInt(W)<>>24|W<<8)&16777215,W=W>>16&65535,h=(h&16777215)+c*6777216+W*6710656,c+=W*8147497,W*=2,h>=1E7&&(c+=h/1E7>>>0,h%=1E7),c>=1E7&&(W+=c/1E7>>>0,c%=1E7),c=W+gFh(c)+gFh(h));return c}; gFh=function(h){h=String(h);return"0000000".slice(h.length)+h}; Dx7=function(){var h=kw,W=hI;W&2147483648?mx()?h=""+(BigInt(W|0)<>>0)):(W=g.e(cX(h,W)),h=W.next().value,W=W.next().value,h="-"+$3(h,W)):h=$3(h,W);return h}; HX=function(h){if(h.length<16)VH(Number(h));else if(mx())h=BigInt(h),kw=Number(h&BigInt(4294967295))>>>0,hI=Number(h>>BigInt(32)&BigInt(4294967295));else{var W=+(h[0]==="-");hI=kw=0;for(var c=h.length,V=0+W,H=(c-W)%6+W;H<=c;V=H,H+=6)V=Number(h.slice(V,H)),hI*=1E6,kw=kw*1E6+V,kw>=4294967296&&(hI+=Math.trunc(kw/4294967296),hI>>>=0,kw>>>=0);W&&(W=g.e(cX(kw,hI)),h=W.next().value,W=W.next().value,kw=h,hI=W)}}; cX=function(h,W){W=~W;h?h=~h+1:W+=1;return[h,W]}; BX=function(h){return Array.prototype.slice.call(h)}; Ep=function(h){if(h!=null&&typeof h!=="number")throw Error("Value of float/double field must be a number, found "+typeof h+": "+h);return h}; wGh=function(h){return h.displayName||h.name||"unknown type name"}; RK=function(h){if(h!=null&&typeof h!=="boolean")throw Error("Expected boolean but got "+ZUN(h)+": "+h);return h}; uA=function(h){switch(typeof h){case "bigint":return!0;case "number":return JI(h);case "string":return kFv.test(h);default:return!1}}; hg7=function(h){if(typeof h!=="number")throw fs("int32");if(!JI(h))throw fs("int32");return h|0}; d_=function(h){return h==null?h:hg7(h)}; Gm=function(h){if(h==null)return h;if(typeof h==="string"&&h)h=+h;else if(typeof h!=="number")return;return JI(h)?h|0:void 0}; ZO=function(h){if(h==null)return h;if(typeof h==="string"&&h)h=+h;else if(typeof h!=="number")return;return JI(h)?h>>>0:void 0}; V87=function(h){var W=0;W=W===void 0?0:W;if(!uA(h))throw fs("int64");var c=typeof h;switch(W){case 512:switch(c){case "string":return r_(h);case "bigint":return String(qT(64,h));default:return nZ(h)}case 1024:switch(c){case "string":return WqT(h);case "bigint":return w9(qT(64,h));default:return ckp(h)}case 0:switch(c){case "string":return r_(h);case "bigint":return w9(qT(64,h));default:return jF(h)}default:return dF(W,"Unknown format requested type for int64")}}; aK=function(h){return h==null?h:V87(h)}; $oU=function(h){if(h[0]==="-")return!1;var W=h.length;return W<20?!0:W===20&&Number(h.substring(0,6))<184467}; s0N=function(h){var W=h.length;return h[0]==="-"?W<20?!0:W===20&&Number(h.substring(0,7))>-922337:W<19?!0:W===19&&Number(h.substring(0,6))<922337}; H6U=function(h){if(h<0){VH(h);var W=$3(kw,hI);h=Number(W);return eF(h)?h:W}W=String(h);if($oU(W))return W;VH(h);return sp(kw,hI)}; BFU=function(h){if(s0N(h))return h;HX(h);return Dx7()}; jF=function(h){uA(h);h=zm(h);eF(h)||(VH(h),h=SO5(kw,hI));return h}; nZ=function(h){uA(h);h=zm(h);if(eF(h))h=String(h);else{var W=String(h);s0N(W)?h=W:(VH(h),h=Dx7())}return h}; r_=function(h){uA(h);var W=zm(Number(h));if(eF(W))return String(W);W=h.indexOf(".");W!==-1&&(h=h.substring(0,W));return BFU(h)}; WqT=function(h){var W=zm(Number(h));if(eF(W))return w9(W);W=h.indexOf(".");W!==-1&&(h=h.substring(0,W));return mx()?w9(qT(64,BigInt(h))):w9(BFU(h))}; ckp=function(h){return eF(h)?w9(jF(h)):w9(nZ(h))}; EuU=function(h){if(h==null)return h;var W=typeof h;if(W==="bigint")return String(qT(64,h));if(uA(h)){if(W==="string")return r_(h);if(W==="number")return jF(h)}}; Jkk=function(h){if(h==null)return h;var W=typeof h;if(W==="bigint")return String(RgD(64,h));if(uA(h)){if(W==="string")return uA(h),W=zm(Number(h)),eF(W)&&W>=0?h=String(W):(W=h.indexOf("."),W!==-1&&(h=h.substring(0,W)),$oU(h)||(HX(h),h=$3(kw,hI))),h;if(W==="number")return uA(h),h=zm(h),h>=0&&eF(h)?h:H6U(h)}}; ukl=function(h){if(h==null||typeof h=="string"||h instanceof Cs)return h}; doQ=function(h){if(typeof h!=="string")throw Error();return h}; QH=function(h){if(h!=null&&typeof h!=="string")throw Error();return h}; LZ=function(h){return h==null||typeof h==="string"?h:void 0}; iA=function(h,W){if(!(h instanceof W))throw Error("Expected instanceof "+wGh(W)+" but got "+(h&&wGh(h.constructor)));return h}; GA7=function(h,W,c){if(h!=null&&h[KZ]===AI)return h;if(Array.isArray(h)){var V=h[Xj]|0;c=V|c&32|c&2;c!==V&&vW(h,c);return new W(h)}}; Up=function(h){return h}; MT=function(h){var W=Z2(CZ);return W?h[W]:void 0}; Fx=function(){}; yH=function(h,W){for(var c in h)!isNaN(c)&&W(h,+c,h[c])}; Z6p=function(h){var W=new Fx;yH(h,function(c,V,H){W[V]=BX(H)}); W.ao=h.ao;return W}; qup=function(h,W){W<100||b6(rkp,1)}; fZ=function(h,W,c,V){var H=V!==void 0;V=!!V;var B=Z2(CZ),E;!H&&NP&&B&&(E=h[B])&&yH(E,qup);B=[];var J=h.length;E=4294967295;var u=!1,d=!!(W&64),G=d?W&128?0:-1:void 0;if(!(W&1)){var Z=J&&h[J-1];Z!=null&&typeof Z==="object"&&Z.constructor===Object?(J--,E=J):Z=void 0;if(d&&!(W&128)&&!H){u=!0;var r;E=((r=PX)!=null?r:Up)(E-G,G,h,Z,void 0)+G}}W=void 0;for(r=0;r=E){var x=r-G,z=void 0;((z=W)!=null?z:W={})[x]=q}else B[r]=q}if(Z)for(var L in Z)J=Z[L],J!= null&&(J=c(J,V))!=null&&(r=+L,q=void 0,d&&!Number.isNaN(r)&&(q=r+G)0?void 0:h===0?aQ7||(aQ7=[0,void 0]):[-h,void 0];case "string":return[0,h];case "object":return h}}; mB=function(h,W,c){return h=vX(h,W[0],W[1],c?1:2)}; vX=function(h,W,c,V){V=V===void 0?0:V;if(h==null){var H=32;c?(h=[c],H|=128):h=[];W&&(H=H&-8380417|(W&1023)<<13)}else{if(!Array.isArray(h))throw Error("narr");H=h[Xj]|0;if(zg5&&1&H)throw Error("rfarr");2048&H&&!(2&H)&&Q07();if(H&256)throw Error("farr");if(H&64)return V!==0||H&2048||vW(h,H|2048),h;if(c&&(H|=128,c!==h[0]))throw Error("mid");a:{c=h;H|=64;var B=c.length;if(B){var E=B-1,J=c[E];if(J!=null&&typeof J==="object"&&J.constructor===Object){W=H&128?0:-1;E-=W;if(E>=1024)throw Error("pvtlmt");for(var u in J)B= +u,B1024)throw Error("spvt");H=H&-8380417|(u&1023)<<13}}}H|=64;V===0&&(H|=2048);vW(h,H);return h}; Q07=function(){if(zg5)throw Error("carr");b6(Lqk,5)}; i6l=function(h,W){if(typeof h!=="object")return h;if(Array.isArray(h)){var c=h[Xj]|0;h.length===0&&c&1?h=void 0:c&2||(!W||4096&c||16&c?h=oK(h,c,!1,W&&!(c&16)):(t3(h,34),c&4&&Object.freeze(h)));return h}if(h!=null&&h[KZ]===AI)return W=h.TV,c=W[Xj]|0,ps(h,c)?h:pZ(h,W,c)?IK(h,W):oK(W,c);if(h instanceof Cs)return h}; IK=function(h,W,c){h=new h.constructor(W);c&&(h.X=oX);h.W=oX;return h}; oK=function(h,W,c,V){V!=null||(V=!!(34&W));h=fZ(h,W,i6l,V);V=32;c&&(V|=2);W=W&8380609|V;vW(h,W);return h}; KqN=function(h){var W=h.TV,c=W[Xj]|0;return ps(h,c)?pZ(h,W,c)?IK(h,W,!0):new h.constructor(oK(W,c,!1)):h}; Y3=function(h){if(h.X!==oX)return!1;var W=h.TV;W=oK(W,W[Xj]|0);t3(W,2048);h.TV=W;h.X=void 0;h.W=void 0;return!0}; Op=function(h){if(!Y3(h)&&ps(h,h.TV[Xj]|0))throw Error();}; SF=function(h,W){W===void 0&&(W=h[Xj]|0);W&32&&!(W&4096)&&vW(h,W|4096)}; pZ=function(h,W,c){return c&2?!0:c&32&&!(c&4096)?(vW(W,c|2),h.X=oX,!0):!1}; DO=function(h,W,c,V,H){Object.isExtensible(h);W=g_(h.TV,W,c,H);if(W!==null||V&&h.W!==oX)return W}; g_=function(h,W,c,V){if(W===-1)return null;var H=W+(c?0:-1),B=h.length-1;if(!(B<1+(c?0:-1))){if(H>=B){var E=h[B];if(E!=null&&typeof E==="object"&&E.constructor===Object){c=E[W];var J=!0}else if(H===B)c=E;else return}else c=h[H];if(V&&c!=null){V=V(c);if(V==null)return V;if(!Object.is(V,c))return J?E[W]=V:h[H]=V,V}return c}}; k3=function(h,W,c,V){Op(h);var H=h.TV;w_(H,H[Xj]|0,W,c,V);return h}; w_=function(h,W,c,V,H){var B=c+(H?0:-1),E=h.length-1;if(E>=1+(H?0:-1)&&B>=E){var J=h[E];if(J!=null&&typeof J==="object"&&J.constructor===Object)return J[c]=V,W}if(B<=E)return h[B]=V,W;if(V!==void 0){var u;E=((u=W)!=null?u:W=h[Xj]|0)>>13&1023||536870912;c>=E?V!=null&&(B={},h[E+(H?0:-1)]=(B[c]=V,B)):h[B]=V}return W}; $L=function(h,W,c,V,H){var B=h.TV,E=B[Xj]|0;V=ps(h,E)?1:V;H=!!H||V===3;V===2&&Y3(h)&&(B=h.TV,E=B[Xj]|0);h=hq(B,W);var J=h===Wo?7:h[Xj]|0,u=co(J,E);var d=4&u?!1:!0;if(d){4&u&&(h=BX(h),J=0,u=V7(u,E),E=w_(B,E,W,h));for(var G=0,Z=0;G "+h)}; T0=function(h,W,c){this.buffer=h;if(c&&!W)throw Error();this.X=W}; N3=function(h,W){if(typeof h==="string")return new T0(faN(h),W);if(Array.isArray(h))return new T0(new Uint8Array(h),W);if(h.constructor===Uint8Array)return new T0(h,!1);if(h.constructor===ArrayBuffer)return h=new Uint8Array(h),new T0(h,!1);if(h.constructor===Cs)return W=yI(h)||new Uint8Array(0),new T0(W,!0,h);if(h instanceof Uint8Array)return h=h.constructor===Uint8Array?h:new Uint8Array(h.buffer,h.byteOffset,h.byteLength),new T0(h,!1);throw Error();}; XM=function(h,W,c,V){this.W=null;this.C=!1;this.X=this.G=this.Y=0;this.init(h,W,c,V)}; vo=function(h){var W=0,c=0,V=0,H=h.W,B=h.X;do{var E=H[B++];W|=(E&127)<32&&(c|=(E&127)>>4);for(V=3;V<32&&E&128;V+=7)E=H[B++],c|=(E&127)<>>0,c>>>0);throw br();}; tq=function(h,W){h.X=W;if(W>h.G)throw Xrk(h.G,W);}; mu=function(h){var W=h.W,c=h.X,V=W[c++],H=V&127;if(V&128&&(V=W[c++],H|=(V&127)<<7,V&128&&(V=W[c++],H|=(V&127)<<14,V&128&&(V=W[c++],H|=(V&127)<<21,V&128&&(V=W[c++],H|=V<<28,V&128&&W[c++]&128&&W[c++]&128&&W[c++]&128&&W[c++]&128&&W[c++]&128)))))throw br();tq(h,c);return H}; oV=function(h){var W=h.W,c=h.X,V=W[c+0],H=W[c+1],B=W[c+2];W=W[c+3];tq(h,h.X+4);return(V<<0|H<<8|B<<16|W<<24)>>>0}; p7=function(h){var W=oV(h);h=oV(h);return sp(W,h)}; IV=function(h){var W=oV(h),c=oV(h);h=(c>>31)*2+1;var V=c>>>20&2047;W=4294967296*(c&1048575)+W;return V==2047?W?NaN:h*Infinity:V==0?h*4.9E-324*W:h*Math.pow(2,V-1075)*(W+4503599627370496)}; YL=function(h){for(var W=0,c=h.X,V=c+10,H=h.W;ch.G)throw Xrk(W,h.G-c);h.X=V;return c}; mok=function(h,W){if(W==0)return Fj();var c=t8l(h,W);h.jm&&h.C?c=h.W.subarray(c,c+W):(h=h.W,W=c+W,c=c===W?new Uint8Array(0):vu4?h.slice(c,W):new Uint8Array(h.subarray(c,W)));return c.length==0?Fj():new Cs(c,MP)}; Sp=function(h,W,c,V){if(OW.length){var H=OW.pop();H.init(h,W,c,V);h=H}else h=new XM(h,W,c,V);this.X=h;this.G=this.X.X;this.W=this.Y=-1;ou5(this,V)}; ou5=function(h,W){W=W===void 0?{}:W;h.JH=W.JH===void 0?!1:W.JH}; prD=function(h,W,c,V){if(gi.length){var H=gi.pop();ou5(H,V);H.X.init(h,W,c,V);return H}return new Sp(h,W,c,V)}; IQh=function(h){var W=h.X;if(W.X==W.G)return!1;h.G=h.X.X;var c=mu(h.X)>>>0;W=c>>>3;c&=7;if(!(c>=0&&c<=5))throw NFD(c,h.G);if(W<1)throw Error("Invalid field number: "+W+" (at position "+h.G+")");h.Y=W;h.W=c;return!0}; D4=function(h){switch(h.W){case 0:h.W!=0?D4(h):YL(h.X);break;case 1:h=h.X;tq(h,h.X+8);break;case 2:if(h.W!=2)D4(h);else{var W=mu(h.X)>>>0;h=h.X;tq(h,h.X+W)}break;case 5:h=h.X;tq(h,h.X+4);break;case 3:W=h.Y;do{if(!IQh(h))throw Error("Unmatched start-group tag: stream EOF");if(h.W==4){if(h.Y!=W)throw Error("Unmatched end-group tag");break}D4(h)}while(1);break;default:throw NFD(h.W,h.G);}}; wi=function(h,W,c){var V=h.X.G,H=mu(h.X)>>>0,B=h.X.X+H,E=B-V;E<=0&&(h.X.G=B,c(W,h,void 0,void 0,void 0),E=B-h.X.X);if(E)throw Error("Message parsing ended unexpectedly. Expected to read "+(H+" bytes, instead read "+(H-E)+" bytes, either the data ended unexpectedly or the message misreported its own length"));h.X.X=B;h.X.G=V}; JU=function(h){var W=mu(h.X)>>>0;h=h.X;var c=t8l(h,W);h=h.W;if(Yul){var V=h,H;(H=EQ)||(H=EQ=new TextDecoder("utf-8",{fatal:!0}));W=c+W;V=c===0&&W===V.length?V:V.subarray(c,W);try{var B=H.decode(V)}catch(d){if(RR===void 0){try{H.decode(new Uint8Array([128]))}catch(G){}try{H.decode(new Uint8Array([97])),RR=!0}catch(G){RR=!1}}!RR&&(EQ=void 0);throw d;}}else{B=c;W=B+W;c=[];for(var E=null,J,u;B=W?zX():(u=h[B++],J<194||(u&192)!==128?(B--,zX()):c.push((J&31)<<6|u&63)): J<240?B>=W-1?zX():(u=h[B++],(u&192)!==128||J===224&&u<160||J===237&&u>=160||((H=h[B++])&192)!==128?(B--,zX()):c.push((J&15)<<12|(u&63)<<6|H&63)):J<=244?B>=W-2?zX():(u=h[B++],(u&192)!==128||(J<<28)+(u-144)>>30!==0||((H=h[B++])&192)!==128||((V=h[B++])&192)!==128?(B--,zX()):(J=(J&7)<<18|(u&63)<<12|(H&63)<<6|V&63,J-=65536,c.push((J>>10&1023)+55296,(J&1023)+56320))):zX(),c.length>=8192&&(E=nF7(E,c),c.length=0);B=nF7(E,c)}return B}; O6T=function(h){var W=mu(h.X)>>>0;return mok(h.X,W)}; ua=function(h,W){this.W=h>>>0;this.X=W>>>0}; guk=function(h){if(!h)return SuT||(SuT=new ua(0,0));if(!/^\d+$/.test(h))return null;HX(h);return new ua(kw,hI)}; dg=function(h,W){this.W=h>>>0;this.X=W>>>0}; wr7=function(h){if(!h)return Do5||(Do5=new dg(0,0));if(!/^-?\d+$/.test(h))return null;HX(h);return new dg(kw,hI)}; Go=function(){this.X=[]}; ZC=function(h,W,c){for(;c>0||W>127;)h.X.push(W&127|128),W=(W>>>7|c<<25)>>>0,c>>>=7;h.X.push(W)}; rg=function(h,W){for(;W>127;)h.X.push(W&127|128),W>>>=7;h.X.push(W)}; kAN=function(h,W){if(W>=0)rg(h,W);else{for(var c=0;c<9;c++)h.X.push(W&127|128),W>>=7;h.X.push(1)}}; qn=function(h,W){h.X.push(W>>>0&255);h.X.push(W>>>8&255);h.X.push(W>>>16&255);h.X.push(W>>>24&255)}; hyN=function(){this.G=[];this.W=0;this.X=new Go}; xz=function(h,W){W.length!==0&&(h.G.push(W),h.W+=W.length)}; W_k=function(h,W){la(h,W,2);W=h.X.end();xz(h,W);W.push(h.W);return W}; csN=function(h,W){var c=W.pop();for(c=h.W+h.X.length()-c;c>127;)W.push(c&127|128),c>>>=7,h.W++;W.push(c);h.W++}; la=function(h,W,c){rg(h.X,W*8+c)}; Vkv=function(h,W,c){if(c!=null){switch(typeof c){case "string":guk(c)}la(h,W,1);switch(typeof c){case "number":h=h.X;WX(c);qn(h,kw);qn(h,hI);break;case "bigint":c=BigInt.asUintN(64,c);c=new ua(Number(c&BigInt(4294967295)),Number(c>>BigInt(32)));h=h.X;W=c.X;qn(h,c.W);qn(h,W);break;default:c=guk(c),h=h.X,W=c.X,qn(h,c.W),qn(h,W)}}}; nD=function(h,W,c){la(h,W,2);rg(h.X,c.length);xz(h,h.X.end());xz(h,c)}; jB=function(){function h(){throw Error();} Object.setPrototypeOf(h,h.prototype);return h}; aR=function(h,W,c){this.TV=vX(h,W,c)}; $JN=function(h,W){if(W==null||W=="")return new h;W=JSON.parse(W);if(!Array.isArray(W))throw Error("dnarr");t3(W,32);return new h(W)}; zo=function(h,W,c){this.FW=h;this.K3=W;h=Z2(eB);this.X=!!h&&c===h||!1}; QX=function(h,W){var c=c===void 0?eB:c;return new zo(h,W,c)}; Hkk=function(h,W,c,V,H){W=sYD(W,V);W!=null&&(c=W_k(h,c),H(W,h),csN(h,c))}; KD=function(h,W,c,V){var H=V[h];if(H)return H;H={};H.O0=V;H.Lb=egh(V[0]);var B=V[1],E=1;B&&B.constructor===Object&&(H.extensions=B,B=V[++E],typeof B==="function"&&(H.Pn=!0,LD!=null||(LD=B),ia!=null||(ia=V[E+1]),B=V[E+=2]));for(var J={};B&&Array.isArray(B)&&B.length&&typeof B[0]==="number"&&B[0]>0;){for(var u=0;u>BigInt(32)));ZC(h.X,c.W,c.X);break;default:c=wr7(W),ZC(h.X,c.W,c.X)}}}; gg=function(h,W,c){W=Gm(W);W!=null&&W!=null&&(la(h,c,0),kAN(h.X,W))}; nSN=function(h,W,c){W=W==null||typeof W==="boolean"?W:typeof W==="number"?!!W:void 0;W!=null&&(la(h,c,0),h.X.X.push(W?1:0))}; jYh=function(h,W,c){W=LZ(W);W!=null&&nD(h,c,zR5(W))}; arT=function(h,W,c,V,H){W=sYD(W,V);W!=null&&(c=W_k(h,c),H(W,h),csN(h,c))}; zyh=function(){var h=DC;this.X=eyp;this.isRepeated=0;this.W=xL;this.defaultValue=void 0;this.G=h.messageId!=null?Yw:void 0}; QY4=function(h,W){return function(c,V){var H={f3:!0};V&&Object.assign(H,V);c=prD(c,void 0,void 0,H);try{var B=new h,E=B.TV;Mn(W)(E,c);var J=B}finally{c.free()}return J}}; L_L=function(h){return function(){var W=new hyN;rsv(this.TV,W,KD(tU,fD,vO,h));xz(W,W.X.end());for(var c=new Uint8Array(W.W),V=W.G,H=V.length,B=0,E=0;E-1)return W.apply(null,g.rN(c));try{return h.X=h.G.X.now(),W.apply(null,g.rN(c))}finally{h.Y+=h.G.X.now()-h.X,h.X=-1,h.W+=1}}}; K_5=function(h,W){this.W=h;this.G=W;this.X=new ikd(h)}; AsD=function(){this.X={}}; CiQ=function(){var h=WA().flags,W=UJL;h=h.X[W.key];if(W.valueType==="proto"){try{var c=JSON.parse(h);if(Array.isArray(c))return c}catch(V){}return W.defaultValue}return typeof h===typeof W.defaultValue?h:W.defaultValue}; Pih=function(){this.G=void 0;this.W=this.N=0;this.C=-1;this.hw=new zF;QW(this.hw,"mv",Mk4).X=!0;QW(this.hw,"omid",AB);QW(this.hw,"epoh",AB).X=!0;QW(this.hw,"epph",AB).X=!0;QW(this.hw,"umt",AB).X=!0;QW(this.hw,"phel",AB).X=!0;QW(this.hw,"phell",AB).X=!0;QW(this.hw,"oseid",F_D).X=!0;var h=this.hw;h.X.sloi||(h.X.sloi=new aJ);h.X.sloi.X=!0;QW(this.hw,"mm",cA);QW(this.hw,"ovms",ysT).X=!0;QW(this.hw,"xdi",AB).X=!0;QW(this.hw,"amp",AB).X=!0;QW(this.hw,"prf",AB).X=!0;QW(this.hw,"gtx",AB).X=!0;QW(this.hw, "mvp_lv",AB).X=!0;QW(this.hw,"ssmol",AB).X=!0;QW(this.hw,"fmd",AB).X=!0;QW(this.hw,"gen204simple",AB);this.X=new K_5(eI(),this.hw);this.Y=!1;this.flags=new AsD}; WA=function(){return jI(Pih)}; frk=function(h,W,c,V){if(Math.random()<(V||h.X))try{if(c instanceof GX)var H=c;else H=new GX,u6(c,function(E,J){var u=H,d=u.Y++;E=ZY(J,E);u.X.push(d);u.W[d]=E}); var B=H.Ly(h.W,"pagead2.googlesyndication.com","/pagead/gen_204?id="+W+"&");B&&(eI(),rBN(B))}catch(E){}}; bkN=function(h,W,c){c=c===void 0?{}:c;this.error=h;this.meta=c;this.context=W.context;this.msg=W.message||"";this.id=W.id||"jserror"}; TbL=function(){var h=h===void 0?g.k5:h;return(h=h.performance)&&h.now&&h.timing?Math.floor(h.now()+h.timing.navigationStart):g.Gt()}; NbQ=function(){var h=h===void 0?g.k5:h;return(h=h.performance)&&h.now?h.now():null}; X37=function(h,W,c){this.label=h;this.type=W;this.value=c;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; $R=function(){var h=window;this.events=[];this.W=h||g.k5;var W=null;h&&(h.google_js_reporting_queue=h.google_js_reporting_queue||[],this.events=h.google_js_reporting_queue,W=h.google_measure_js_timing);this.X=Vu()||(W!=null?W:Math.random()<1)}; tkh=function(h){h&&s6&&Vu()&&(s6.clearMarks("goog_"+h.label+"_"+h.uniqueId+"_start"),s6.clearMarks("goog_"+h.label+"_"+h.uniqueId+"_end"))}; HA=function(h,W,c,V,H,B,E){var J="";h&&(J+=h+":");c&&(J+="//",W&&(J+=W+"@"),J+=c,V&&(J+=":"+V));H&&(J+=H);B&&(J+="?"+B);E&&(J+="#"+E);return J}; g.BA=function(h){return h.match(vSU)}; mJQ=function(h){return h?decodeURI(h):h}; g.E6=function(h){return mJQ(g.BA(h)[3]||null)}; Rg=function(h){return mJQ(g.BA(h)[5]||null)}; g.oSl=function(h){h=g.BA(h);return HA(h[1],h[2],h[3],h[4])}; JM=function(h){h=g.BA(h);return HA(null,null,null,null,h[5],h[6],h[7])}; p34=function(h){var W=h.indexOf("#");return W<0?h:h.slice(0,W)}; uv=function(h,W){if(h){h=h.split("&");for(var c=0;c=0){var B=h[c].substring(0,V);H=h[c].substring(V+1)}else B=h[c];W(B,H?C6(H):"")}}}; d0=function(h,W){if(!W)return h;var c=h.indexOf("#");c<0&&(c=h.length);var V=h.indexOf("?");if(V<0||V>c){V=c;var H=""}else H=h.substring(V+1,c);h=[h.slice(0,V),H,h.slice(c)];c=h[1];h[1]=W?c?c+"&"+W:W:c;return h[0]+(h[1]?"?"+h[1]:"")+h[2]}; GL=function(h,W,c){if(Array.isArray(W))for(var V=0;V=0&&Wc)H=c;V+=W.length+1;return C6(h.slice(V,H!==-1?H:0))}; ag=function(h,W){for(var c=h.search(lv),V=0,H,B=[];(H=xR(h,V,W,c))>=0;)B.push(h.substring(V,H)),V=Math.min(h.indexOf("&",H)+1||c,c);B.push(h.slice(V));return B.join("").replace(OkD,"$1")}; SHL=function(h,W,c){return qG(ag(h,W),W,c)}; gSv=function(){var h=e3;this.X=zL;this.Se="jserror";this.y0=!0;this.US=null;this.W=this.XZ;this.Fl=h===void 0?null:h}; DJv=function(h,W,c){var V=Qu;return hM(WA().X.X,function(){try{if(V.Fl&&V.Fl.X){var H=V.Fl.start(h.toString(),3);var B=W();V.Fl.end(H)}else B=W()}catch(J){var E=V.y0;try{tkh(H),E=V.W(h,new LJ(iv(J)),void 0,c)}catch(u){V.XZ(217,u)}if(!E)throw J;}return B})()}; KJ=function(h,W,c,V){return hM(WA().X.X,function(){var H=g.tN.apply(0,arguments);return DJv(h,function(){return W.apply(c,H)},V)})}; iv=function(h){var W=h.toString();h.name&&W.indexOf(h.name)==-1&&(W+=": "+h.name);h.message&&W.indexOf(h.message)==-1&&(W+=": "+h.message);if(h.stack)a:{h=h.stack;var c=W;try{h.indexOf(c)==-1&&(h=c+"\n"+h);for(var V;h!=V;)V=h,h=h.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");W=h.replace(/\n */g,"\n");break a}catch(H){W=c;break a}W=void 0}return W}; LJ=function(h){bkN.call(this,Error(h),{message:h})}; w3L=function(){Ck&&typeof Ck.google_measure_js_timing!="undefined"&&(Ck.google_measure_js_timing||e3.disable())}; kCT=function(h){Qu.US=function(W){g.gX(h,function(c){c(W)})}}; hGv=function(h,W){return DJv(h,W)}; AM=function(h,W){return KJ(h,W)}; U6=function(h,W,c,V){Qu.XZ(h,W,c,V)}; CJ=function(){return Date.now()-Wxl}; c3l=function(){var h=WA().G,W=MG>=0?CJ()-MG:-1,c=F$?CJ()-yu:-1,V=PA>=0?CJ()-PA:-1;if(h==947190542)return 100;if(h==79463069)return 200;h=[2E3,4E3];var H=[250,500,1E3];U6(637,Error(),.001);var B=W;c!=-1&&c1500&&V<4E3?500:E}; fJ=function(h,W,c){var V=new bi(0,0,0,0);this.time=h;this.volume=null;this.G=W;this.X=V;this.W=c}; bv=function(h,W,c,V,H,B,E,J){this.Y=h;this.S=W;this.G=c;this.N=V;this.X=H;this.C=B;this.W=E;this.Z=J}; $PN=function(h){var W=h!==h.top,c=h.top===sJl(h),V=-1,H=0;if(W&&c&&h.top.mraid){V=3;var B=h.top.mraid}else V=(B=h.mraid)?W?c?2:1:0:-1;B&&(B.IS_GMA_SDK||(H=2),F7L(VIp,function(E){return typeof B[E]==="function"})||(H=1)); return{MN:B,compatibility:H,WeH:V}}; sXv=function(){var h=window.document;return h&&typeof h.elementFromPoint==="function"}; Hsl=function(h,W,c){if(h&&W!==null&&W!=W.top){if(!W.top)return new g.Yu(-12245933,-12245933);W=W.top}try{return(c===void 0?0:c)?(new g.Yu(W.innerWidth,W.innerHeight)).round():PK5(W||window).round()}catch(V){return new g.Yu(-12245933,-12245933)}}; TL=function(h,W,c){try{if(h){if(!W.top)return new bi(-12245933,-12245933,-12245933,-12245933);W=W.top}var V=Hsl(h,W,c),H=V.height,B=V.width;if(B===-12245933)return new bi(B,B,B,B);var E=W3(W.document);var J=b$k(E.X);var u=J.x,d=J.y;return new bi(d,u+B,d+H,u)}catch(G){return new bi(-12245933,-12245933,-12245933,-12245933)}}; NG=function(h,W){W=Math.pow(10,W);return Math.floor(h*W)/W}; B9Q=function(h){return new bi(h.top,h.right,h.bottom,h.left)}; EwQ=function(h){var W=h.top||0,c=h.left||0;return new bi(W,c+(h.width||0),W+(h.height||0),c)}; X$=function(h){return h!=null&&h>=0&&h<=1}; RGD=function(){var h=g.TF();return h?tM("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(W){return yW(h,W)})||yW(h,"OMI/")&&!yW(h,"XiaoMi/")?!0:yW(h,"Presto")&&yW(h,"Linux")&&!yW(h,"X11")&&!yW(h,"Android")&&!yW(h,"Mobi"):!1}; J3N=function(){this.G=!J3(Ck.top);this.isMobileDevice=BW()||w25();var h=d9();this.domain=h.length>0&&h[h.length-1]!=null&&h[h.length-1].url!=null?g.E6(h[h.length-1].url)||"":"";this.X=new bi(0,0,0,0);this.Y=new g.Yu(0,0);this.C=new g.Yu(0,0);this.S=new bi(0,0,0,0);this.frameOffset=new g.p6(0,0);this.N=0;this.Z=!1;this.W=!(!Ck||!$PN(Ck).MN);this.update(Ck)}; ujT=function(h,W){W&&W.screen&&(h.Y=new g.Yu(W.screen.width,W.screen.height))}; dPT=function(h,W){a:{var c=h.X?new g.Yu(TC(h.X),h.X.getHeight()):new g.Yu(0,0);W=W===void 0?Ck:W;W!==null&&W!=W.top&&(W=W.top);var V=0,H=0;try{var B=W.document,E=B.body,J=B.documentElement;if(B.compatMode=="CSS1Compat"&&J.scrollHeight)V=J.scrollHeight!=c.height?J.scrollHeight:J.offsetHeight,H=J.scrollWidth!=c.width?J.scrollWidth:J.offsetWidth;else{var u=J.scrollHeight,d=J.scrollWidth,G=J.offsetHeight,Z=J.offsetWidth;J.clientHeight!=G&&(u=E.scrollHeight,d=E.scrollWidth,G=E.offsetHeight,Z=E.offsetWidth); u>c.height?u>G?(V=u,H=d):(V=G,H=Z):u0||h.Z)return!0;h=eI().W.isVisible();var W=sN(mD)===0;return h||W}; vA=function(){return jI(J3N)}; pJ=function(h){this.G=h;this.W=0;this.X=null}; Ig=function(h,W,c){this.G=h;this.CM=c===void 0?"na":c;this.C=[];this.isInitialized=!1;this.Y=new fJ(-1,!0,this);this.X=this;this.Z=W;this.XI=this.T=!1;this.zV="uk";this.DH=!1;this.N=!0}; YR=function(h,W){g.el(h.C,W)||(h.C.push(W),W.S4(h.X),W.fv(h.Y),W.nQ()&&(h.T=!0))}; GXD=function(h){h=h.X;h.Vc();h.EM();var W=vA();W.S=TL(!1,h.G,W.isMobileDevice);dPT(vA(),h.G);h.Y.X=h.Db()}; ZsN=function(h){h.T=h.C.length?tM(h.C,function(W){return W.nQ()}):!1}; r3d=function(h){var W=g.Mu(h.C);g.gX(W,function(c){c.fv(h.Y)})}; O6=function(h){var W=g.Mu(h.C);g.gX(W,function(c){c.S4(h.X)}); h.X!=h||r3d(h)}; S3=function(h,W,c,V){this.element=h;this.X=new bi(0,0,0,0);this.G=null;this.N=new bi(0,0,0,0);this.W=W;this.hw=c;this.DH=V;this.Pk=!1;this.timestamp=-1;this.T=new bv(W.Y,this.element,this.X,new bi(0,0,0,0),0,0,CJ(),0);this.C=void 0}; qNd=function(h,W){return h.C?new bi(Math.max(W.top+h.C.top,W.top),Math.min(W.left+h.C.right,W.right),Math.min(W.top+h.C.bottom,W.bottom),Math.max(W.left+h.C.left,W.left)):W.clone()}; g0=function(h){this.C=!1;this.X=h;this.Y=function(){}}; xP5=function(h,W,c){this.G=c===void 0?0:c;this.W=h;this.X=W==null?"":W}; lYl=function(h){switch(Math.trunc(h.G)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; nwN=function(h,W){return h.GW.G?!1:h.WW.W?!1:typeof h.Xtypeof W.X?!1:h.X0?V[c]-V[c-1]:V[c]})}; R5=function(){this.W=new V9;this.CM=this.Nn=0;this.yg=new ca;this.Wk=this.S=-1;this.Mn=1E3;this.Ef=new V9([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.zV=this.Pk=-1}; JA=function(h,W){return KB4(h.W,W===void 0?!0:W)}; u0=function(h,W,c,V){var H=H===void 0?!1:H;c=KJ(V,c);$w(h,W,c,{capture:H})}; G4=function(h,W){W=df(W);return W===0?0:df(h)/W}; df=function(h){return Math.max(h.bottom-h.top,0)*Math.max(h.right-h.left,0)}; CAQ=function(h,W){if(!h||!W)return!1;for(var c=0;h!==null&&c++<100;){if(h===W)return!0;try{if(h=h.parentElement||h){var V=hs(h),H=V&&ui(V),B=H&&H.frameElement;B&&(h=B)}}catch(E){break}}return!1}; MFT=function(h,W,c){if(!h||!W)return!1;W=XW(h.clone(),-W.left,-W.top);h=(W.left+W.right)/2;W=(W.top+W.bottom)/2;J3(window.top)&&window.top&&window.top.document&&(window=window.top);if(!sXv())return!1;h=window.document.elementFromPoint(h,W);if(!h)return!1;W=(W=(W=hs(c))&&W.defaultView&&W.defaultView.frameElement)&&CAQ(W,h);var V=h===c;h=!V&&h&&ek(h,function(H){return H===c}); return!(W||V||h)}; FBD=function(h,W,c,V){return vA().G?!1:TC(h)<=0||h.getHeight()<=0?!0:c&&V?hGv(208,function(){return MFT(h,W,c)}):!1}; l0=function(h,W,c){g.N.call(this);this.position=yIN.clone();this.Vn=this.Ew();this.V4=-2;this.timeCreated=Date.now();this.vP=-1;this.OU=W;this.rM=null;this.UF=!1;this.LW=null;this.opacity=-1;this.requestSource=c;this.rtO=!1;this.We=function(){}; this.yf=function(){}; this.aD=new tlh;this.aD.Zi=h;this.aD.X=h;this.HQ=!1;this.yw={QY:null,Dq:null};this.jU=!0;this.wR=null;this.cJ=this.Cm=!1;WA().N++;this.P5=this.KO();this.XR=-1;this.Cy=null;this.hasCompleted=this.nm=!1;this.hw=new zF;tD4(this.hw);PA4(this);this.requestSource==1?Lr(this.hw,"od",1):Lr(this.hw,"od",0)}; PA4=function(h){h=h.aD.Zi;var W;if(W=h&&h.getAttribute)W=/-[a-z]/.test("googleAvInapp")?!1:fO5&&h.dataset?"googleAvInapp"in h.dataset:h.hasAttribute?h.hasAttribute("data-"+Z$N()):!!h.getAttribute("data-"+Z$N());W&&(vA().W=!0)}; nf=function(h,W){W!=h.cJ&&(h.cJ=W,h=vA(),W?h.N++:h.N>0&&h.N--)}; bZv=function(h,W){if(h.Cy){if(W.getName()===h.Cy.getName())return;h.Cy.dispose();h.Cy=null}W=W.create(h.aD.X,h.hw,h.nQ());if(W=W!=null&&W.observe()?W:null)h.Cy=W}; T_k=function(h,W,c){if(!h.rM||h.OU==-1||W.W===-1||h.rM.W===-1)return 0;h=W.W-h.rM.W;return h>c?0:h}; N_l=function(h,W,c){if(h.Cy){h.Cy.Z5();var V=h.Cy.T,H=V.Y,B=H.X;if(V.N!=null){var E=V.G;h.LW=new g.p6(E.left-B.left,E.top-B.top)}B=h.Ty()?Math.max(V.X,V.C):V.X;E={};H.volume!==null&&(E.volume=H.volume);H=h.lI(V);h.rM=V;h.FI(B,W,c,!1,E,H,V.Z)}}; XXl=function(h){if(h.UF&&h.wR){var W=iN(h.hw,"od")==1,c=vA().X,V=h.wR,H=h.Cy?h.Cy.getName():"ns",B=h.LW,E=new g.Yu(TC(c),c.getHeight());c=h.Ty();h={DYE:H,LW:B,hVz:E,Ty:c,mD:h.P5.mD,W4O:W};if(W=V.W){W.Z5();H=W.T;B=H.Y.X;var J=E=null;H.N!=null&&B&&(E=H.G,E=new g.p6(E.left-B.left,E.top-B.top),J=new g.Yu(B.right-B.left,B.bottom-B.top));H=c?Math.max(H.X,H.C):H.X;c={DYE:W.getName(),LW:E,hVz:J,Ty:c,W4O:!1,mD:H}}else c=null;c&&QKT(V,h,c)}}; tFT=function(h,W,c){W&&(h.We=W);c&&(h.yf=c)}; g.jX=function(){}; g.a5=function(h){return{value:h,done:!1}}; v3N=function(){this.Y=this.X=this.G=this.W=this.C=0}; mTk=function(h){var W={};var c=g.Gt()-h.C;W=(W.ptlt=c,W);(c=h.W)&&(W.pnk=c);(c=h.G)&&(W.pnc=c);(c=h.Y)&&(W.pnmm=c);(h=h.X)&&(W.pns=h);return W}; o3Q=function(){wX.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; eX=function(h){return X$(h.volume)&&h.volume>0}; z4=function(h,W,c,V){c=c===void 0?!0:c;V=V===void 0?function(){return!0}:V; return function(H){var B=H[h];if(Array.isArray(B)&&V(H))return pXN(B,W,c)}}; Q9=function(h,W){return function(c){return W(c)?c[h]:void 0}}; IOv=function(h){return function(W){for(var c=0;c0?B[H-1]+1:0,V+1).reduce(function(E,J){return E+J},0)})}; Ypv=function(){this.W=this.X=""}; OZp=function(){}; i0=function(h,W){var c={};if(h!==void 0)if(W!=null)for(var V in W){var H=W[V];V in Object.prototype||H!=null&&(c[V]=typeof H==="function"?H(h):h[H])}else g.lN(c,h);return kR(w0(new DB,c))}; Spp=function(){var h={};this.W=(h.vs=[1,0],h.vw=[0,1],h.am=[2,2],h.a=[4,4],h.f=[8,8],h.bm=[16,16],h.b=[32,32],h.avw=[0,64],h.avs=[64,0],h.pv=[256,256],h.gdr=[0,512],h.p=[0,1024],h.r=[0,2048],h.m=[0,4096],h.um=[0,8192],h.ef=[0,16384],h.s=[0,32768],h.pmx=[0,16777216],h.mut=[33554432,33554432],h.umutb=[67108864,67108864],h.tvoff=[134217728,134217728],h);this.X={};for(var W in this.W)this.W[W][1]>0&&(this.X[W]=0);this.G=0}; Kf=function(h,W){var c=h.W[W],V=c[1];h.G+=c[0];V>0&&h.X[W]==0&&(h.X[W]=1)}; g3D=function(h){var W=g.HG(h.W),c=0,V;for(V in h.X)g.el(W,V)&&h.X[V]==1&&(c+=h.W[V][1],h.X[V]=2);return c}; DT5=function(h){var W=0,c;for(c in h.X){var V=h.X[c];if(V==1||V==2)W+=h.W[c][1]}return W}; AA=function(){this.X=this.W=0}; UK=function(){R5.call(this);this.G=new ca;this.Rz=this.T=this.DH=0;this.Z=-1;this.Ak=new ca;this.C=new ca;this.X=new V9;this.N=this.Y=-1;this.XI=new ca;this.Mn=2E3;this.mW=new AA;this.rE=new AA;this.Jk=new AA}; Cf=function(h,W,c){var V=h.Rz;F$||c||h.Z==-1||(V+=W-h.Z);return V}; wX4=function(){this.G=!1}; Fw=function(h,W){this.G=!1;this.Y=h;this.T=W;this.C=0}; y9=function(h,W){Fw.call(this,h,W);this.S=[]}; kmp=function(){}; Pa=function(){}; ff=function(h,W,c,V){S3.call(this,h,W,c,V)}; b0=function(h,W,c){S3.call(this,null,h,W,c);this.Z=h.isActive();this.S=0}; T4=function(h){return[h.top,h.left,h.bottom,h.right]}; NF=function(h,W,c,V,H,B){B=B===void 0?new Pa:B;l0.call(this,W,c,V);this.CY=H;this.rF=0;this.NB={};this.ZT=new Spp;this.wv={};this.OJ="";this.Jk=null;this.lW=!1;this.X=[];this.UH=B.W();this.N=B.G();this.Y=null;this.G=-1;this.CM=this.T=void 0;this.Wk=this.XI=0;this.zV=-1;this.Mn=this.rE=!1;this.DH=this.Z=this.W=this.qG=this.uW=0;new V9;this.mW=this.Rz=0;this.yg=-1;this.Cg=0;this.S=g.FW;this.Pk=[this.Ew()];this.qU=2;this.WE={};this.WE.pause="p";this.WE.resume="r";this.WE.skip="s";this.WE.mute="m";this.WE.unmute= "um";this.WE.exitfullscreen="ef";this.C=null;this.Ef=this.Ak=!1;this.hI=Math.floor(Date.now()/1E3-1704067200);this.Nn=0}; Xw=function(h){h.hasCompleted=!0;h.Cg!=0&&(h.Cg=3)}; tA=function(h){return h===void 0?h:Number(h)?NG(h,3):0}; va=function(h,W){return h.Pk[W!=null&&WMath.max(1E4,h.G/3)?0:W);var c=h.S(h)||{};c=c.currentTime!==void 0?c.currentTime:h.XI;var V=c-h.XI,H=0;V>=0?(h.Wk+=W,h.mW+=Math.max(W-V,0),H=Math.min(V,h.Wk)):h.Rz+=Math.abs(V);V!=0&&(h.Wk=0);h.yg==-1&&V>0&&(h.yg=PA>=0?CJ()-PA:-1);h.XI=c;return H}; cqT=function(h,W){tM(h.N,function(c){return c.Y==W.Y})||h.N.push(W)}; Vpk=function(h){var W=Ha(h.nU().X,1);return mg(h,W)}; mg=function(h,W,c){return W>=15E3?!0:h.rE?(c===void 0?0:c)?!0:h.G>0?W>=h.G/2:h.zV>0?W>=h.zV:!1:!1}; $3T=function(h){var W=NG(h.P5.mD,2),c=h.ZT.G,V=h.P5,H=va(h),B=tA(H.Y),E=tA(H.N),J=tA(V.volume),u=NG(H.S,2),d=NG(H.Wk,2),G=NG(V.mD,2),Z=NG(H.Pk,2),r=NG(H.zV,2);V=NG(V.Ja,2);var q=h.lR().clone().round();h=h.Cy&&h.Cy.G?(h.Cy?h.Cy.G:null).clone().round():null;H=JA(H,!1);return{dhk:W,yT:c,wM:B,pu:E,X9:J,uw:u,BS:d,mD:G,Xc:Z,e_:r,Ja:V,position:q,Nu:h,aA:H}}; H7p=function(h,W){sVd(h.X,W,function(){return{dhk:0,yT:void 0,wM:-1,pu:-1,X9:-1,uw:-1,BS:-1,mD:-1,Xc:-1,e_:-1,Ja:-1,position:void 0,Nu:void 0,aA:[]}}); h.X[W]=$3T(h)}; sVd=function(h,W,c){for(var V=h.length;V0?1:0;Z.atos= $p(d.X);Z.ssb=$p(d.Ef,!1);Z.amtos=KB4(d.X,!1);Z.uac=h.uW;Z.vpt=d.G.X;G=="nio"&&(Z.nio=1,Z.avms="nio");Z.gmm="4";Z.gdr=mg(h,d.G.X,!0)?1:0;Z.efpf=h.qU;if(G=="gsv"||G=="nis")G=h.Cy,G.S>0&&(Z.nnut=G.S);Z.tcm=hr5(h);Z.nmt=h.Rz;Z.bt=h.mW;Z.pst=h.yg;Z.vpaid=h.T;Z.dur=h.G;Z.vmtime=h.XI;Z.is=h.ZT.G;h.X.length>=1&&(Z.i0=h.X[0].yT,Z.a0=[h.X[0].X9],Z.c0=[h.X[0].mD],Z.ss0=[h.X[0].Ja],G=h.X[0].position,B=h.X[0].Nu,Z.p0=G?T4(G):void 0,G&&B&&!NJ(B,G)&&(Z.cp0=T4(B)));h.X.length>=2&&(Z.i1=h.X[1].yT,Z.a1=I5(h.X[1].wM, h.X[1].X9,h.X[1].pu),Z.c1=I5(h.X[1].uw,h.X[1].mD,h.X[1].BS),Z.ss1=I5(h.X[1].Xc,h.X[1].Ja,h.X[1].e_),G=h.X[1].position,B=h.X[1].Nu,Z.p1=G?T4(G):void 0,G&&B&&!NJ(B,G)&&(Z.cp1=T4(B)),Z.mtos1=h.X[1].aA);h.X.length>=3&&(Z.i2=h.X[2].yT,Z.a2=I5(h.X[2].wM,h.X[2].X9,h.X[2].pu),Z.c2=I5(h.X[2].uw,h.X[2].mD,h.X[2].BS),Z.ss2=I5(h.X[2].Xc,h.X[2].Ja,h.X[2].e_),G=h.X[2].position,B=h.X[2].Nu,Z.p2=G?T4(G):void 0,G&&B&&!NJ(B,G)&&(Z.cp2=T4(B)),Z.mtos2=h.X[2].aA);h.X.length>=4&&(Z.i3=h.X[3].yT,Z.a3=I5(h.X[3].wM,h.X[3].X9, h.X[3].pu),Z.c3=I5(h.X[3].uw,h.X[3].mD,h.X[3].BS),Z.ss3=I5(h.X[3].Xc,h.X[3].Ja,h.X[3].e_),G=h.X[3].position,B=h.X[3].Nu,Z.p3=G?T4(G):void 0,G&&B&&!NJ(B,G)&&(Z.cp3=T4(B)),Z.mtos3=h.X[3].aA);Z.cs=DT5(h.ZT);W&&(Z.ic=g3D(h.ZT),Z.dvpt=d.G.W,Z.dvs=EK(d.W,.5),Z.dfvs=EK(d.W,1),Z.davs=EK(d.X,.5),Z.dafvs=EK(d.X,1),c&&(d.G.W=0,AI4(d.W),AI4(d.X)),h.Fd()&&(Z.dtos=d.DH,Z.dav=d.T,Z.dtoss=h.rF+1,c&&(d.DH=0,d.T=0,h.rF++)),Z.dat=d.C.W,Z.dft=d.XI.W,c&&(d.C.W=0,d.XI.W=0));Z.ps=[J.C.width,J.C.height];Z.bs=[TC(J.X),J.X.getHeight()]; Z.scs=[J.Y.width,J.Y.height];Z.dom=J.domain;h.qG&&(Z.vds=h.qG);if(h.N.length>0||h.UH)W=g.Mu(h.N),h.UH&&W.push(h.UH),Z.pings=g.xw(W,function(r){return r.toString()}); W=g.xw(g.Lf(h.N,function(r){return r.N()}),function(r){return r.getId()}); L7N(W);Z.ces=W;h.W&&(Z.vmer=h.W);h.Z&&(Z.vmmk=h.Z);h.DH&&(Z.vmiec=h.DH);Z.avms=h.Cy?h.Cy.getName():"ns";h.Cy&&g.lN(Z,h.Cy.uR());V?(Z.c=NG(h.P5.mD,2),Z.ss=NG(h.P5.Ja,2)):Z.tth=CJ()-Jqd;Z.mc=NG(d.Wk,2);Z.nc=NG(d.S,2);Z.mv=tA(d.N);Z.nv=tA(d.Y);Z.lte=NG(h.V4,2);V=va(h,H);JA(d);Z.qmtos=JA(V);Z.qnc=NG(V.S,2);Z.qmv=tA(V.N);Z.qnv=tA(V.Y);Z.qas=V.Y>0?1:0;Z.qi=h.OJ;Z.avms||(Z.avms="geo");Z.psm=d.mW.X;Z.psv=d.mW.getValue();Z.psfv=d.rE.getValue();Z.psa=d.Jk.getValue();u=NNv(u.hw);u.length&&(Z.veid=u);h.C&&g.lN(Z, mTk(h.C));Z.avas=h.Kc();Z.vs=h.L_();Z.co=uMd(h);Z.tm=d.Nn;Z.tu=d.CM;return Z}; BiN=function(h,W){if(g.el(d3p,W))return!0;var c=h.NB[W];return c!==void 0?(h.NB[W]=!0,!c):!1}; uMd=function(h){var W=h.Nn.toString(10).padStart(2,"0");W=""+h.hI+W;h.Nn<99&&h.Nn++;return W}; Z7D=function(){this.X={};var h=ui();Yp(this,h,document);var W=G0p();try{if("1"==W){for(var c=h.parent;c!=h.top;c=c.parent)Yp(this,c,c.document);Yp(this,h.top,h.top.document)}}catch(V){}}; G0p=function(){var h=document.documentElement;try{if(!J3(ui().top))return"2";var W=[],c=ui(h.ownerDocument);for(h=c;h!=c.top;h=h.parent)if(h.frameElement)W.push(h.frameElement);else break;return W&&W.length!=0?"1":"0"}catch(V){return"2"}}; Yp=function(h,W,c){u0(c,"mousedown",function(){return rqd(h)},301); u0(W,"scroll",function(){return qWD(h)},302); u0(c,"touchmove",function(){return x3Q(h)},303); u0(c,"mousemove",function(){return l4p(h)},304); u0(c,"keydown",function(){return nLN(h)},305)}; rqd=function(h){g.k6(h.X,function(W){W.G>1E5||++W.G})}; qWD=function(h){g.k6(h.X,function(W){W.X>1E5||++W.X})}; x3Q=function(h){g.k6(h.X,function(W){W.X>1E5||++W.X})}; nLN=function(h){g.k6(h.X,function(W){W.W>1E5||++W.W})}; l4p=function(h){g.k6(h.X,function(W){W.Y>1E5||++W.Y})}; jVh=function(){this.X=[];this.W=[]}; OK=function(h,W){return g.jl(h.X,function(c){return c.OJ==W})}; a4p=function(h,W){return W?g.jl(h.X,function(c){return c.aD.Zi==W}):null}; erh=function(h,W){return g.jl(h.W,function(c){return c.i$()==2&&c.OJ==W})}; gf=function(){var h=SX;return h.X.length==0?h.W:h.W.length==0?h.X:g.C$(h.W,h.X)}; zrl=function(h,W){h=W.i$()==1?h.X:h.W;var c=n$(h,function(V){return V==W}); return c!=-1?(h.splice(c,1),W.Cy&&W.Cy.unobserve(),W.dispose(),!0):!1}; QVl=function(h){var W=SX;if(zrl(W,h)){switch(h.i$()){case 0:var c=function(){return null}; case 2:c=function(){return erh(W,h.OJ)}; break;case 1:c=function(){return OK(W,h.OJ)}}for(var V=c();V;V=c())zrl(W,V)}}; Luh=function(h){var W=SX;h=g.Lf(h,function(c){return!a4p(W,c.aD.Zi)}); W.X.push.apply(W.X,g.rN(h))}; i7k=function(h){var W=[];g.gX(h,function(c){tM(SX.X,function(V){return V.aD.Zi===c.aD.Zi&&V.OJ===c.OJ})||(SX.X.push(c),W.push(c))})}; DU=function(){this.X=this.W=null}; Kup=function(h,W){function c(V,H){W(V,H)} if(h.W==null)return!1;h.X=g.jl(h.W,function(V){return V!=null&&V.T4()}); h.X&&(h.X.init(c)?GXD(h.X.X):W(h.X.X.zg(),h.X));return h.X!=null}; wf=function(h){h=Aqh(h);g0.call(this,h.length?h[h.length-1]:new Ig(Ck,0));this.G=h;this.W=null}; Aqh=function(h){if(!h.length)return[];h=(0,g.Lf)(h,function(c){return c!=null&&c.z_()}); for(var W=1;Wc.time?W:c},h[0])}; Vd=function(h){h=h===void 0?Ck:h;g0.call(this,new Ig(h,2))}; $f=function(){var h=Fu4();Ig.call(this,Ck.top,h,"geo")}; Fu4=function(){WA();var h=vA();return h.G||h.W?0:2}; yqh=function(){}; sT=function(){this.done=!1;this.X={ZP:0,GH:0,t0W:0,NA:0,Q4:-1,jS:0,Ca:0,SS:0,bp9:0};this.C=null;this.N=!1;this.G=null;this.S=0;this.W=new pJ(this)}; BU=function(){var h=HU;h.N||(h.N=!0,PrN(h,function(){return h.Y.apply(h,g.rN(g.tN.apply(0,arguments)))}),h.Y())}; f45=function(){jI(yqh);var h=jI(DU);h.X!=null&&h.X.X?GXD(h.X.X):vA().update(Ck)}; ET=function(h,W,c){if(!h.done&&(h.W.cancel(),W.length!=0)){h.G=null;try{f45();var V=CJ();WA().C=V;if(jI(DU).X!=null)for(var H=0;H=0?CJ()-MG:-1,J=CJ();H.X.Q4==-1&&(E=J);var u=vA(),d=WA(),G=Kr(d.hw),Z=gf();try{if(Z.length>0){var r=u.X;r&&(G.bs=[TC(r),r.getHeight()]);var q=u.C;q&&(G.ps=[q.width,q.height]);Ck.screen&&(G.scs=[Ck.screen.width,Ck.screen.height])}else G.url=encodeURIComponent(Ck.location.href.substring(0,512)),B.referrer&&(G.referrer=encodeURIComponent(B.referrer.substring(0,512))); G.tt=E;G.pt=MG;G.bin=d.W;Ck.google_osd_load_pub_page_exp!==void 0&&(G.olpp=Ck.google_osd_load_pub_page_exp);G.deb=[1,H.X.ZP,H.X.GH,H.X.NA,H.X.Q4,0,H.W.W,H.X.jS,H.X.Ca,H.X.SS,H.X.bp9,-1].join(";");G.tvt=Ti5(H,J);u.W&&(G.inapp=1);if(Ck!==null&&Ck!=Ck.top){Z.length>0&&(G.iframe_loc=encodeURIComponent(Ck.location.href.substring(0,512)));var x=u.S;G.is=[TC(x),x.getHeight()]}}catch(z){G.error=1}HU.G=G}r=g.qx(HU.G);q=WA().X;iN(q.G,"prf")==1?(x=new kz,H=q.X,B=0,H.X>-1&&(B=H.G.X.now()-H.X),x=Bo(x,1,Ep(H.Y+ B),0),H=q.X,x=Bo(x,5,d_(H.X>-1?H.W+1:H.W),0),x=Bo(x,2,aK(q.W.X.G()),"0"),x=Bo(x,3,aK(q.W.X.W()),"0"),q=Bo(x,4,aK(q.W.X.X()),"0"),x={},q=(x.pf=g.i6(q.G()),x)):q={};g.lN(r,q);g.lN(W,V,c,r,h())}])}; tpQ=function(){var h=XoQ||Ck;if(!h)return"";var W=[];if(!h.location||!h.location.href)return"";W.push("url="+encodeURIComponent(h.location.href.substring(0,512)));h.document&&h.document.referrer&&W.push("referrer="+encodeURIComponent(h.document.referrer.substring(0,512)));return W.join("&")}; R8=function(){var h="youtube.player.web_20250722_00_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250722_00_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250722_00_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250722_00_RC00".match(/_(\d{8})_\d+_RC\d+$/),W;if(((W=h)==null?void 0:W.length)==2)return h[1];h="youtube.player.web_20250722_00_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return((c=h)==null?void 0:c.length)==3?"20"+h[1]+h[2]:null}; vL7=function(){return"av.default_js".includes("ima_html5_sdk")?{Hj:"ima",gJ:null}:"av.default_js".includes("ima_native_sdk")?{Hj:"nima",gJ:null}:"av.default_js".includes("admob-native-video-javascript")?{Hj:"an",gJ:null}:"youtube.player.web_20250722_00_RC00".includes("cast_js_sdk")?{Hj:"cast",gJ:R8()}:"youtube.player.web_20250722_00_RC00".includes("youtube.player.web")?{Hj:"yw",gJ:R8()}:"youtube.player.web_20250722_00_RC00".includes("outstream_web_client")?{Hj:"out",gJ:R8()}:"youtube.player.web_20250722_00_RC00".includes("drx_rewarded_web")? {Hj:"r",gJ:R8()}:"youtube.player.web_20250722_00_RC00".includes("gam_native_web_video")?{Hj:"n",gJ:R8()}:"youtube.player.web_20250722_00_RC00".includes("admob_interstitial_video")?{Hj:"int",gJ:R8()}:{Hj:"j",gJ:null}}; dx=function(h,W){var c={sv:"967"};Jb!==null&&(c.v=Jb);c.cb=m3v;c.nas=SX.X.length;c.msg=h;W!==void 0&&(h=oLk(W))&&(c.e=uO[h]);return c}; Gu=function(h){return UO(h,"custom_metric_viewable")}; oLk=function(h){var W=Gu(h)?"custom_metric_viewable":h.toLowerCase();return dj(o5,function(c){return c==W})}; poL=function(){this.X=void 0;this.W=!1;this.G=0;this.Y=-1;this.C="tos"}; O7h=function(h){try{var W=h.split(",");return W.length>g.HG(I47).length?null:ns(W,function(c,V){V=V.toLowerCase().split("=");if(V.length!=2||YWk[V[0]]===void 0||!YWk[V[0]](V[1]))throw Error("Entry ("+V[0]+", "+V[1]+") is invalid.");c[V[0]]=V[1];return c},{})}catch(c){return null}}; SWl=function(h,W){if(h.X==void 0)return 0;switch(h.C){case "mtos":return h.W?Ba(W.X,h.X):Ba(W.W,h.X);case "tos":return h.W?Ha(W.X,h.X):Ha(W.W,h.X)}return 0}; Zk=function(h,W,c,V){Fw.call(this,W,V);this.S=h;this.Z=c}; rx=function(){}; qY=function(h){Fw.call(this,"fully_viewable_audible_half_duration_impression",h)}; xf=function(h){this.X=h}; lO=function(h,W){Fw.call(this,h,W)}; nR=function(h){y9.call(this,"measurable_impression",h)}; je=function(){xf.apply(this,arguments)}; a8=function(h,W,c){b0.call(this,h,W,c)}; ee=function(h){h=h===void 0?Ck:h;g0.call(this,new Ig(h,2))}; zu=function(h,W,c){b0.call(this,h,W,c)}; Qd=function(h){h=h===void 0?Ck:h;g0.call(this,new Ig(h,2))}; LR=function(){Ig.call(this,Ck,2,"mraid");this.mW=0;this.Wk=this.Pk=!1;this.S=null;this.W=$PN(this.G);this.Y.X=new bi(0,0,0,0);this.Nn=!1}; iO=function(h,W,c){h.zl("addEventListener",W,c)}; k0p=function(h){WA().Y=!!h.zl("isViewable");iO(h,"viewableChange",gLd);h.zl("getState")==="loading"?iO(h,"ready",D3h):woN(h)}; woN=function(h){typeof h.W.MN.AFMA_LIDAR==="string"?(h.Pk=!0,h95(h)):(h.W.compatibility=3,h.S="nc",h.fail("w"))}; h95=function(h){h.Wk=!1;var W=iN(WA().hw,"rmmt")==1,c=!!h.zl("isViewable");(W?!c:1)&&eI().setTimeout(AM(524,function(){h.Wk||(WAQ(h),U6(540,Error()),h.S="mt",h.fail("w"))}),500); cUQ(h);iO(h,h.W.MN.AFMA_LIDAR,VBp)}; cUQ=function(h){var W=iN(WA().hw,"sneio")==1,c=h.W.MN.AFMA_LIDAR_EXP_1!==void 0,V=h.W.MN.AFMA_LIDAR_EXP_2!==void 0;(W=W&&V)&&(h.W.MN.AFMA_LIDAR_EXP_2=!0);c&&(h.W.MN.AFMA_LIDAR_EXP_1=!W)}; WAQ=function(h){h.zl("removeEventListener",h.W.MN.AFMA_LIDAR,VBp);h.Pk=!1}; $nQ=function(h,W){if(h.zl("getState")==="loading")return new g.Yu(-1,-1);W=h.zl(W);if(!W)return new g.Yu(-1,-1);h=parseInt(W.width,10);W=parseInt(W.height,10);return isNaN(h)||isNaN(W)?new g.Yu(-1,-1):new g.Yu(h,W)}; D3h=function(){try{var h=jI(LR);h.zl("removeEventListener","ready",D3h);woN(h)}catch(W){U6(541,W)}}; VBp=function(h,W){try{var c=jI(LR);c.Wk=!0;var V=h?new bi(h.y,h.x+h.width,h.y+h.height,h.x):new bi(0,0,0,0);var H=CJ(),B=og();var E=new fJ(H,B,c);E.X=V;E.volume=W;c.fv(E)}catch(J){U6(542,J)}}; gLd=function(h){var W=WA(),c=jI(LR);h&&!W.Y&&(W.Y=!0,c.Nn=!0,c.S&&c.fail("w",!0))}; KR=function(){this.isInitialized=!1;this.X=this.W=null;var h={};this.S=(h.start=this.uf,h.firstquartile=this.VI,h.midpoint=this.An,h.thirdquartile=this.lf,h.complete=this.B6,h.error=this.eY,h.pause=this.gs,h.resume=this.T9,h.skip=this.wH,h.viewable_impression=this.cj,h.mute=this.Sp,h.unmute=this.Sp,h.fullscreen=this.TO,h.exitfullscreen=this.Eo,h.fully_viewable_audible_half_duration_impression=this.cj,h.measurable_impression=this.cj,h.abandon=this.gs,h.engagedview=this.cj,h.impression=this.cj,h.creativeview= this.cj,h.progress=this.Sp,h.custom_metric_viewable=this.cj,h.bufferstart=this.gs,h.bufferfinish=this.T9,h.audio_measurable=this.cj,h.audio_audible=this.cj,h);h={};this.Z=(h.overlay_resize=this.Oo,h.abandon=this.Xq,h.close=this.Xq,h.collapse=this.Xq,h.overlay_unmeasurable_impression=function(W){return pf(W,"overlay_unmeasurable_impression",og())},h.overlay_viewable_immediate_impression=function(W){return pf(W,"overlay_viewable_immediate_impression",og())},h.overlay_unviewable_impression=function(W){return pf(W, "overlay_unviewable_impression",og())},h.overlay_viewable_end_of_session_impression=function(W){return pf(W,"overlay_viewable_end_of_session_impression",og())},h); WA().W=3;sRD(this);this.G=null}; Ab=function(h,W,c,V){h=h.LA(null,V,!0,W);h.Y=c;Luh([h]);return h}; HDl=function(h,W,c){MDp(W);var V=h.X;g.gX(W,function(H){var B=g.xw(H.criteria,function(E){var J=O7h(E);if(J==null)E=null;else if(E=new poL,J.visible!=null&&(E.X=J.visible/100),J.audible!=null&&(E.W=J.audible==1),J.time!=null){var u=J.timetype=="mtos"?"mtos":"tos",d=v5L(J.time,"%")?"%":"ms";J=parseInt(J.time,10);d=="%"&&(J/=100);E.setTime(J,d,u)}return E}); tM(B,function(E){return E==null})||cqT(c,new Zk(H.id,H.event,B,V))})}; BgN=function(){var h=[],W=WA();h.push(jI($f));iN(W.hw,"mvp_lv")&&h.push(jI(LR));W=[new ee,new Qd];W.push(new wf(h));W.push(new Vd(Ck));return W}; EzN=function(h){if(!h.isInitialized){h.isInitialized=!0;try{var W=CJ(),c=WA(),V=vA();MG=W;c.G=79463069;h.W!=="o"&&(XoQ=sJl(Ck));if(qOL()){HU.X.GH=0;HU.X.Q4=CJ()-W;var H=BgN(),B=jI(DU);B.W=H;Kup(B,function(){UT()})?HU.done||(b7L(),YR(B.X.X,h),BU()):V.G?UT():BU()}else CR=!0}catch(E){throw SX.reset(),E; }}}; bO=function(h){HU.W.cancel();fR=h;HU.done=!0}; Tu=function(h){if(h.W)return h.W;var W=jI(DU).X;if(W)switch(W.getName()){case "nis":h.W="n";break;case "gsv":h.W="m"}h.W||(h.W="h");return h.W}; NY=function(h,W,c){if(h.X==null)return W.qG|=4,!1;h=R9U(h.X,c,W);W.qG|=h;return h==0}; UT=function(){var h=[new Vd(Ck)],W=jI(DU);W.W=h;Kup(W,function(){bO("i")})?HU.done||(b7L(),BU()):bO("i")}; JU4=function(h,W){if(!h.lW){var c=pf(h,"start",og());c=h.CY.X(c).X;var V={id:"lidarv"};V.r=W;V.sv="967";Jb!==null&&(V.v=Jb);uv(c,function(H,B){return V[H]=H=="mtos"||H=="tos"?B:encodeURIComponent(B)}); W=tpQ();uv(W,function(H,B){return V[H]=encodeURIComponent(B)}); W="//pagead2.googlesyndication.com/pagead/gen_204?"+kR(w0(new DB,V));eYL(W);h.lW=!0}}; XP=function(h,W,c){ET(HU,[h],!og());H7p(h,c);c!=4&&sVd(h.Pk,c,h.Ew);return pf(h,W,og())}; sRD=function(h){Ni7(function(){var W=uL5();h.W!=null&&(W.sdk=h.W);var c=jI(DU);c.X!=null&&(W.avms=c.X.getName());return W})}; dn7=function(h,W,c,V){var H=a4p(SX,c);H!==null&&H.OJ!==W&&(h.dj(H),H=null);H||(W=h.LA(c,CJ(),!1,W),SX.W.length==0&&(WA().G=79463069),i7k([W]),H=W,H.Y=Tu(h),V&&(H.Jk=V));return H}; Go4=function(h,W){var c=h[W];c!==void 0&&c>0&&(h[W]=Math.floor(c*1E3))}; uL5=function(){var h=vA(),W={},c={},V={};return Object.assign({},(W.sv="967",W),Jb!==null&&(c.v=Jb,c),(V["if"]=h.G?"1":"0",V.nas=String(SX.X.length),V))}; tb=function(h){Fw.call(this,"audio_audible",h)}; vU=function(h){y9.call(this,"audio_measurable",h)}; mL=function(){xf.apply(this,arguments)}; o8=function(){}; ZD4=function(h){this.X=h}; R9U=function(h,W,c){h=h.W();if(typeof h==="function"){var V={};var H={};V=Object.assign({},Jb!==null&&(V.v=Jb,V),(H.sv="967",H.cb=m3v,H.e=rUT(W),H));H=pf(c,W,og());g.lN(V,H);c.wv[W]=H;V=c.i$()==2?aOh(V).join("&"):c.CY.X(V).X;try{return h(c.OJ,V,W),0}catch(B){return 2}}else return 1}; rUT=function(h){var W=Gu(h)?"custom_metric_viewable":h;h=dj(o5,function(c){return c==W}); return uO[h]}; pR=function(){KR.call(this);this.N=null;this.C=!1;this.Y="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; qQp=function(h,W,c){c=c.opt_configurable_tracking_events;h.X!=null&&Array.isArray(c)&&HDl(h,c,W)}; xnp=function(h,W,c){var V=OK(SX,W);V||(V=c.opt_nativeTime||-1,V=Ab(h,W,Tu(h),V),c.opt_osdId&&(V.Jk=c.opt_osdId));return V}; lCD=function(h,W,c){var V=OK(SX,W);V||(V=Ab(h,W,"n",c.opt_nativeTime||-1));return V}; nzQ=function(h,W){var c=OK(SX,W);c||(c=Ab(h,W,"h",-1));return c}; jRd=function(h){WA();switch(Tu(h)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; z9l=function(h,W,c,V){c=c===void 0?{}:c;var H={};g.lN(H,{opt_adElement:void 0,opt_fullscreen:void 0},c);var B=h.WS(W,c);c=B?B.CY:h.j8();if(H.opt_bounds)return c.X(dx("ol",V));if(V!==void 0)if(oLk(V)!==void 0)if(CR)h=dx("ue",V);else if(EzN(h),fR=="i")h=dx("i",V),h["if"]=0;else if(W=h.WS(W,H)){b:{fR=="i"&&(W.HQ=!0);B=H.opt_fullscreen;B!==void 0&&nf(W,!!B);var E;if(B=!vA().W)(B=yW(g.TF(),"CrKey")&&!(yW(g.TF(),"CrKey")&&yW(g.TF(),"SmartSpeaker"))||yW(g.TF(),"PlayStation")||yW(g.TF(),"Roku")||RGD()||yW(g.TF(), "Xbox"))||(B=g.TF(),B=yW(B,"AppleTV")||yW(B,"Apple TV")||yW(B,"CFNetwork")||yW(B,"tvOS")),B||(B=g.TF(),B=yW(B,"sdk_google_atv_x86")||yW(B,"Android TV")),B=!B;B&&(eI(),B=sN(mD)===0);if(E=B){switch(W.i$()){case 1:JU4(W,"pv");break;case 2:h.pY(W)}bO("pv")}B=V.toLowerCase();if(E=!E)E=iN(WA().hw,"ssmol")&&B==="loaded"?!1:g.el(aCp,B);if(E&&W.Cg==0){fR!="i"&&(HU.done=!1);E=H!==void 0?H.opt_nativeTime:void 0;PA=E=typeof E==="number"?E:CJ();W.UF=!0;var J=og();W.Cg=1;W.NB={};W.NB.start=!1;W.NB.firstquartile= !1;W.NB.midpoint=!1;W.NB.thirdquartile=!1;W.NB.complete=!1;W.NB.resume=!1;W.NB.pause=!1;W.NB.skip=!1;W.NB.mute=!1;W.NB.unmute=!1;W.NB.viewable_impression=!1;W.NB.measurable_impression=!1;W.NB.fully_viewable_audible_half_duration_impression=!1;W.NB.fullscreen=!1;W.NB.exitfullscreen=!1;W.rF=0;J||(W.nU().Z=E);ET(HU,[W],!J)}(E=W.WE[B])&&Kf(W.ZT,E);iN(WA().hw,"fmd")||g.el(e9U,B)&&W.UH&&W.UH.W(W,null);switch(W.i$()){case 1:var u=Gu(B)?h.S.custom_metric_viewable:h.S[B];break;case 2:u=h.Z[B]}if(u&&(V=u.call(h, W,H,V),iN(WA().hw,"fmd")&&g.el(e9U,B)&&W.UH&&W.UH.W(W,null),V!==void 0)){H=dx(void 0,B);g.lN(H,V);V=H;break b}V=void 0}W.Cg==3&&h.dj(W);h=V}else h=dx("nf",V);else h=void 0;else CR?h=dx("ue"):B?(h=dx(),g.lN(h,ELl(B,!0,!1,!1))):h=dx("nf");return typeof h==="string"?c.X():c.X(h)}; QR4=function(h,W){W&&(h.Y=W)}; LAd=function(h){var W={};return W.viewability=h.X,W.googleViewability=h.W,W}; iD7=function(h,W,c){c=c===void 0?{}:c;h=z9l(jI(pR),W,c,h);return LAd(h)}; I8=function(h){var W=g.tN.apply(1,arguments).filter(Boolean).join("&");if(!W)return h;var c=h.match(/[?&]adurl=/);return c?h.slice(0,c.index+1)+W+"&"+h.slice(c.index+1):h+(h.indexOf("?")<0?"?":"&")+W}; Yf=function(h,W){return W?"&"+h+"="+encodeURIComponent(W):""}; KAL=function(h){var W=h.url;h=h.niM;this.W=W;this.Y=h;this.G=(new Date).getTime()-17040672E5;this.X={};for(var c=/[?&]([^&=]+)=([^&]*)/g;h=c.exec(W);)this.X[h[1]]=h[2]}; AU5=function(h){h=h.Y;if(!h)return"";var W=Yf("uap",h.platform)+Yf("uapv",h.platformVersion)+Yf("uafv",h.uaFullVersion)+Yf("uaa",h.architecture)+Yf("uam",h.model)+Yf("uab",h.bitness);h.fullVersionList&&(W+="&uafvl="+encodeURIComponent(h.fullVersionList.map(function(c){return encodeURIComponent(c.brand)+";"+encodeURIComponent(c.version)}).join("|"))); h.wow64!=null&&(W+="&uaw="+Number(h.wow64));return W.slice(1)}; MBv=function(h,W,c,V,H){var B=window;var E=E===void 0?!1:E;var J;c?J=(E===void 0?0:E)?"//ep1.adtrafficquality.google/bg/"+Mo(c)+".js":"//pagead2.googlesyndication.com/bg/"+Mo(c)+".js":J="";E=E===void 0?!1:E;c=B.document;var u={};W&&(u._scs_=W);u._bgu_=J;u._bgp_=V;u._li_="v_h.3.0.0.0";H&&(u._upb_=H);(W=B.GoogleTyFxhY)&&typeof W.push=="function"||(W=B.GoogleTyFxhY=[]);W.push(u);W=W3(c).createElement("SCRIPT");W.type="text/javascript";W.async=!0;h=(E===void 0?0:E)?Mll(Unl,Mo(h)+".js"):Mll(CaD,Mo(h)+ ".js");g.a0(W,h);(B=(B.GoogleTyFxhYEET||{})[W.src])?B():c.getElementsByTagName("head")[0].appendChild(W)}; FAv=function(){try{var h,W;return!!((h=window)==null?0:(W=h.top)==null?0:W.location.href)&&!1}catch(c){return!0}}; OT=function(h,W,c){c=c===void 0?Error():c;var V=Error.call(this);this.message=V.message;"stack"in V&&(this.stack=V.stack);this.code=h;W+=":";c instanceof Error?(this.message=W+c.message,this.stack=c.stack||""):(this.message=W+String(c),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; gx=function(){var h=yUQ();h=h===void 0?"bevasrsg":h;return new Promise(function(W){var c=window===window.top?window:FAv()?window:window.top,V=c[h],H;((H=V)==null?0:H.bevasrs)?W(new Se(V.bevasrs)):(V||(V={},V=(V.nqfbel=[],V),c[h]=V),V.nqfbel.push(function(B){W(new Se(B))}))})}; PaT=function(h){var W={c:h.ma,e:h.Me,mc:h.hj,me:h.P_};h.oS&&(W.co={c:h.oS.ES,a:h.oS.kJ,s:h.oS.xM});return W}; Dk=function(h){g.N.call(this);this.wpc=h}; Se=function(h){g.N.call(this);var W=this;this.py=h;this.G="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.W=void 0;this.pA=this.py.p;this.Y=this.EV.bind(this);this.addOnDisposeCallback(function(){return void fCv(W)})}; bDk=function(h){var W;return g.P(function(c){if(c.W==1){if(!h.py.wpc)throw new OT(30,"NWA");return h.X?c.return(h.X):g.F(c,h.py.wpc(),2)}W=c.X;h.X=new Dk(W);return c.return(h.X)})}; fCv=function(h){h.W!==void 0&&(h.G.forEach(function(W){var c;(c=h.W)==null||c.removeEventListener(W,h.Y)}),h.W=void 0)}; TgN=function(h){var W=W===void 0?50:W;var c=[];lr(h,wx,6).forEach(function(V){ir(V,2)<=W&&c.push(ir(V,1))}); return c}; Ngv=function(h){var W=W===void 0?50:W;var c=[];lr(h,wx,6).forEach(function(V){ir(V,2)>W&&c.push(ir(V,1))}); return c}; XOQ=function(h){h.then(function(){},function(){})}; kf=function(){g.N.apply(this,arguments);this.W=1;this[tBN]=this.dispose}; hH=function(h){return{fieldType:2,fieldName:h}}; g.We=function(h){return{fieldType:3,fieldName:h}}; vzT=function(h){this.X=h;h.sS("/client_streamz/bg/frs",g.We("mk"))}; mnl=function(h){this.X=h;h.sS("/client_streamz/bg/wrl",g.We("mn"),hH("ac"),hH("sc"),g.We("rk"),g.We("mk"))}; oz4=function(h){this.X=h;h.Ye("/client_streamz/bg/ec",g.We("en"),g.We("mk"))}; pOL=function(h){this.X=h;h.sS("/client_streamz/bg/el",g.We("en"),g.We("mk"))}; ICl=function(h){this.X=h;h.Ye("/client_streamz/bg/cec",hH("ec"),g.We("mk"))}; YQp=function(h){this.X=h;h.Ye("/client_streamz/bg/po/csc",hH("cs"),g.We("mk"))}; ODT=function(h){this.X=h;h.Ye("/client_streamz/bg/po/ctav",g.We("av"),g.We("mk"))}; SQ4=function(h){this.X=h;h.Ye("/client_streamz/bg/po/cwsc",g.We("su"),g.We("mk"))}; gz4=function(h){this.TV=vX(h)}; Dn4=function(h,W){return C4v(h,W,hg7)}; ce=function(h){this.TV=vX(h)}; Vz=function(h){this.TV=vX(h)}; $7=function(h){this.TV=vX(h)}; s$=function(h){this.TV=vX(h)}; He=function(h){this.TV=vX(h)}; Be=function(h){this.TV=vX(h)}; wOd=function(h){this.TV=vX(h)}; WDk=function(h){var W=new Be;W=y7(W,1,h.W);var c=koN(h);W=C4v(W,c,doQ);c=[];for(var V=[],H=g.e(h.X.keys()),B=H.next();!B.done;B=H.next())V.push(B.value.split(","));for(H=0;H>>31)&4294967295;Z=H[0];var x=H[1],z=H[2],L=H[3],M=H[4];for(q=0;q<80;q++){if(q<40)if(q<20){var U=L^x&(z^L);var y=1518500249}else U=x^z^L,y=1859775393;else q<60?(U=x&z|L&(x|z),y=2400959708):(U=x^z^L,y=3395469782);U=((Z<<5|Z>>>27)&4294967295)+U+M+y+r[q]&4294967295;M=L;L=z;z=(x<<30|x>>>2)&4294967295;x=Z;Z=U}H[0]=H[0]+Z&4294967295;H[1]=H[1]+x&4294967295;H[2]= H[2]+z&4294967295;H[3]=H[3]+L&4294967295;H[4]=H[4]+M&4294967295} function c(Z,r){if(typeof Z==="string"){Z=unescape(encodeURIComponent(Z));for(var q=[],x=0,z=Z.length;x=56;q--)B[q]=r&255,r>>>=8;W(B);for(q=r=0;q<5;q++)for(var x=24;x>=0;x-=8)Z[r++]=H[q]>>x&255;return Z} for(var H=[],B=[],E=[],J=[128],u=1;u<64;++u)J[u]=0;var d,G;h();return{reset:h,update:c,digest:V,eS:function(){for(var Z=V(),r="",q=0;q1)));E=E.next)H||(B=E);H&&(c.X==0&&V==1?DG7(c,W):(B?(V=B,V.next==c.Y&&(c.Y=V),V.next=V.next.next):wAL(c),kLk(c,H,3,W)))}h.G=null}else an(h,3,W)}; CW=function(h,W){h.W||h.X!=2&&h.X!=3||h75(h);h.Y?h.Y.next=W:h.W=W;h.Y=W}; Wg5=function(h,W,c,V){var H=KW(null,null,null);H.X=new g.iZ(function(B,E){H.G=W?function(J){try{var u=W.call(V,J);B(u)}catch(d){E(d)}}:B; H.W=c?function(J){try{var u=c.call(V,J);u===void 0&&J instanceof Fv?E(J):B(u)}catch(d){E(d)}}:E}); H.X.G=h;CW(h,H);return H.X}; an=function(h,W,c){h.X==0&&(h===c&&(W=3,c=new TypeError("Promise cannot resolve to itself")),h.X=1,Y65(c,h.xYV,h.MLV,h)||(h.S=c,h.X=W,h.G=null,h75(h),W!=3||c instanceof Fv||cAD(h,c)))}; Y65=function(h,W,c,V){if(h instanceof g.iZ)return gRQ(h,W,c,V),!0;if(h)try{var H=!!h.$goog_Thenable}catch(E){H=!1}else H=!1;if(H)return h.then(W,c,V),!0;if(g.H2(h))try{var B=h.then;if(typeof B==="function")return VX5(h,B,W,c,V),!0}catch(E){return c.call(V,E),!0}return!1}; VX5=function(h,W,c,V,H){function B(u){J||(J=!0,V.call(H,u))} function E(u){J||(J=!0,c.call(H,u))} var J=!1;try{W.call(h,E,B)}catch(u){B(u)}}; h75=function(h){h.N||(h.N=!0,g.nW(h.H1,h))}; wAL=function(h){var W=null;h.W&&(W=h.W,h.W=W.next,W.next=null);h.W||(h.Y=null);return W}; kLk=function(h,W,c,V){if(c==3&&W.W&&!W.Y)for(;h&&h.C;h=h.G)h.C=!1;if(W.X)W.X.G=null,$F5(W,c,V);else try{W.Y?W.G.call(W.context):$F5(W,c,V)}catch(H){s5D.call(null,H)}N07(IBL,W)}; $F5=function(h,W,c){W==2?h.G.call(h.context,c):h.W&&h.W.call(h.context,c)}; cAD=function(h,W){h.C=!0;g.nW(function(){h.C&&s5D.call(null,W)})}; Fv=function(h){qu.call(this,h)}; g.yR=function(h,W){g.Rn.call(this);this.pw=h||1;this.bU=W||g.k5;this.F0=(0,g.JS)(this.SyE,this);this.nL=g.Gt()}; g.PK=function(h,W,c){if(typeof h==="function")c&&(h=(0,g.JS)(h,c));else if(h&&typeof h.handleEvent=="function")h=(0,g.JS)(h.handleEvent,h);else throw Error("Invalid listener argument");return Number(W)>2147483647?-1:g.k5.setTimeout(h,W||0)}; fW=function(h,W){var c=null;return(new g.iZ(function(V,H){c=g.PK(function(){V(W)},h); c==-1&&H(Error("Failed to schedule timer."))})).Mv(function(V){g.k5.clearTimeout(c); throw V;})}; g.bZ=function(h){g.N.call(this);this.S=h;this.Y=0;this.G=100;this.C=!1;this.W=new Map;this.N=new Set;this.flushInterval=3E4;this.X=new g.yR(this.flushInterval);this.X.listen("tick",this.lH,!1,this);g.X(this,this.X)}; HfT=function(h){h.X.enabled||h.X.start();h.Y++;h.Y>=h.G&&h.lH()}; Bf5=function(h,W){return h.N.has(W)?void 0:h.W.get(W)}; Ep4=function(h){for(var W=0;W2?h.X.statusText:""}catch(c){W=""}h.Y=W+" ["+h.getStatus()+"]";np5(h)}}finally{m3(h)}}}; m3=function(h,W){if(h.X){h.N&&(clearTimeout(h.N),h.N=null);var c=h.X;h.X=null;W||h.dispatchEvent("ready");try{c.onreadystatechange=null}catch(V){}}}; In=function(h){var W=h.getStatus();a:switch(W){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(W=W===0)h=g.BA(String(h.Z))[1]||null,!h&&g.k5.self&&g.k5.self.location&&(h=g.k5.self.location.protocol.slice(0,-1)),W=!e7Q.test(h?h.toLowerCase():"");c=W}return c}; g.pW=function(h){return h.X?h.X.readyState:0}; g.Yv=function(h){try{return h.X?h.X.responseText:""}catch(W){return""}}; g.OL=function(h){try{if(!h.X)return null;if("response"in h.X)return h.X.response;switch(h.DH){case "":case "text":return h.X.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in h.X)return h.X.mozResponseArrayBuffer}return null}catch(W){return null}}; g.z7D=function(h){var W={};h=(h.X&&g.pW(h)>=2?h.X.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c0&&u>=W};c=c===void 0?[]:c;return new $Q(V,c)}; JE=function(h){function W(x,z,L,M){Promise.resolve().then(function(){u.done();J.A7();J.dispose();E.resolve({ea:x,lTg:z,KDH:L,xLM:M})})} function c(x,z,L,M){if(!V.logger.gE()){var U="k";z?U="h":L&&(U="u");U!=="k"?M!==0&&(V.logger.l0(U),V.logger.Bd(U,x)):V.W<=0?(V.logger.l0(U),V.logger.Bd(U,x),V.W=Math.floor(Math.random()*200)):V.W--}} g.N.call(this);var V=this;this.W=Math.floor(Math.random()*200);this.X=new EE;if("challenge"in h&&UFl(h.challenge)){var H=Aq(h.challenge,4,void 0,Yw);var B=Aq(h.challenge,5,void 0,Yw);Aq(h.challenge,7,void 0,Yw)&&(this.X=C0T(Aq(h.challenge,7,void 0,Yw)))}else H=h.program,B=h.globalName;this.addOnDisposeCallback(function(){var x,z,L;return g.P(function(M){if(M.W==1)return g.F(M,V.G,2);x=M.X;z=x.lTg;(L=z)==null||L();g.zQ(M)})}); this.logger=AA7(h.DF||{},this.X);g.X(this,this.logger);var E=new g.R_;this.G=E.promise;this.logger.l0("t");var J=this.logger.share(),u=new wm(J,"t");if(!g.k5[B])throw this.logger.gi(25),Error("EGOU");if(!g.k5[B].a)throw this.logger.gi(26),Error("ELIU");try{var d=g.k5[B].a;B=[];for(var G=[],Z=TgN(this.X),r=0;r>1,W),ne(h,h.length>>1)]}; s8N=function(h){var W=g.e($Yp(h,jc));h=W.next().value;W=W.next().value;return h.toString(16)+W.toString(16)}; HRN=function(h,W){var c=$Yp(W);h=new Uint32Array(h.buffer);W=h[0];var V=g.e(c);c=V.next().value;V=V.next().value;for(var H=1;H>>8|E<<24,E+=B|0,E^=J+38293,B=B<<3|B>>>29,B^=E,u=u>>>8|u<<24,u+=J|0,u^=d+38293,J=J<<3|J>>>29,J^=u;B=[B,E];h[H]^=B[0];H+1=c?(globalThis.sessionStorage.removeItem(h),["e"]):["a",new Uint8Array(V.buffer,W+4)]}; a_=function(h,W,c){c=c===void 0?[]:c;this.maxItems=h;this.X=W===void 0?0:W;this.W=c}; Rq5=function(h){var W=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!W)return new a_(h);var c=W.split(",");if(c.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new a_(h);W=c.slice(1);W.length===1&&W[0]===""&&(W=[]);c=Number(c[0]);return isNaN(c)||c<0||c>W.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new a_(h)):new a_(h,c,W)}; JbT=function(h,W){this.logger=W;try{var c=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(V){c=!1}c&&(this.index=Rq5(h))}; uPN=function(h,W,c,V,H){var B=h.index?hE(h.logger,function(){return BxD(h.index,s8N(W),c,V,H)},"W"):"u"; h.logger.x$(B)}; dY4=function(h,W,c){var V=g.e(h.index?hE(h.logger,function(){return Efv(s8N(W),c)},"R"):["u"]),H=V.next().value; V=V.next().value;h.logger.JL(H);return V}; rbL=function(h){function W(){c-=V;c-=H;c^=H>>>13;V-=H;V-=c;V^=c<<8;H-=c;H-=V;H^=V>>>13;c-=V;c-=H;c^=H>>>12;V-=H;V-=c;V^=c<<16;H-=c;H-=V;H^=V>>>5;c-=V;c-=H;c^=H>>>3;V-=H;V-=c;V^=c<<10;H-=c;H-=V;H^=V>>>15} h=Gud(h);for(var c=2654435769,V=2654435769,H=314159265,B=h.length,E=B,J=0;E>=12;E-=12,J+=12)c+=ec(h,J),V+=ec(h,J+4),H+=ec(h,J+8),W();H+=B;switch(E){case 11:H+=h[J+10]<<24;case 10:H+=h[J+9]<<16;case 9:H+=h[J+8]<<8;case 8:V+=h[J+7]<<24;case 7:V+=h[J+6]<<16;case 6:V+=h[J+5]<<8;case 5:V+=h[J+4];case 4:c+=h[J+3]<<24;case 3:c+=h[J+2]<<16;case 2:c+=h[J+1]<<8;case 1:c+=h[J+0]}W();return ZRT.toString(H)}; Gud=function(h){for(var W=[],c=0;c>7,h.error.code]);V.set(c,4);return V}; MV=function(h,W,c){zT.call(this,h);this.Y=W;this.clientState=c;this.X="S";this.W="q"}; Ce=function(h){return globalThis.TextEncoder?(new TextEncoder).encode(h):g.Ls(h)}; lk5=function(h,W,c){return h instanceof rl?pa4(h,c,W,1):h.XG(c)}; yr=function(h){g.N.call(this);var W=this;this.G=new g.R_;this.Y=0;this.W=void 0;this.state=2;this.py=h.py;this.Ai=h.Ai;this.z1=Object.assign({},nfT,h.z1||{});this.logger=h.py.e$();var c;this.onError=(c=h.onError)!=null?c:function(){}; this.vg=h.vg||!1;if(j85(h)){var V=this.py;this.C=function(){return gpv(V).catch(function(E){E=W.reportError(new OT(W.X?20:32,"TRG:Disposed",E));W.W=E;var J;(J=W.X)==null||J.dispose();W.X=void 0;W.G.reject(E)})}; DFT(V,function(){return void FH(W)}); V.Z===2&&FH(this)}else this.C=h.CjN,FH(this);var H=this.logger.share();H.l0("o");var B=new wm(H,"o");this.G.promise.then(function(){B.done();H.A7();H.dispose()},function(){return void H.dispose()}); this.addOnDisposeCallback(function(){W.X?(W.X.dispose(),W.X=void 0):W.W?W.logger.A7():(W.W=W.reportError(new OT(32,"TNP:Disposed")),W.logger.A7(),W.G.reject(W.W))}); g.X(this,this.logger)}; akN=function(h,W){if(!(W instanceof OT))if(W instanceof Ts){var c=Error(W.toString());c.stack=W.stack;W=new OT(11,"EBH:Error",c)}else W=new OT(12,"BSO:Unknown",W);return h.reportError(W)}; FH=function(h){var W,c,V,H,B,E,J,u,d,G,Z,r,q,x,z;return g.P(function(L){switch(L.W){case 1:W=void 0;h.Y++;c=new g.R_;h.py instanceof qV&&h.py.Y.push(c.promise);if(!h.vg){L.bB(2);break}V=new g.R_;setTimeout(function(){return void V.resolve()}); return g.F(L,V.promise,2);case 2:return H=h.logger.share(),g.Qp(L,4,5),h.state=5,B={},E=[],g.F(L,ld(h.py.snapshot({ma:B,Xe:E}),h.z1.Yyn,function(){return Promise.reject(new OT(15,"MDA:Timeout"))}),7); case 7:J=L.X;if(h.gE())throw new OT(h.X?20:32,"MDA:Disposed");u=E[0];h.state=6;return g.F(L,ld(lk5(h.Ai,H,J),h.z1.FQ,function(){return Promise.reject(new OT(10,"BWB:Timeout"))}),8); case 8:d=L.X;if(h.gE())throw new OT(h.X?20:32,"BWB:Disposed");h.state=7;W=hE(H,function(){var U=eqh(h,d,c,u);U.G.promise.then(function(){return void h.C()}); return U},"i"); case 5:g.Pd(L);H.dispose();g.bT(L,6);break;case 4:G=g.CU(L);(Z=W)==null||Z.dispose();if(!h.W){r=akN(h,G);c.resolve();var M;if(M=h.py instanceof qV&&h.Y<2)a:if(G instanceof OT)M=G.code!==32&&G.code!==20&&G.code!==10;else{if(G instanceof Ts)switch(G.code){case 2:case 13:case 14:case 4:break;default:M=!1;break a}M=!0}if(M)return q=(1+Math.random()*.25)*(h.X?6E4:1E3),x=setTimeout(function(){return void h.C()},q),h.addOnDisposeCallback(function(){return void clearTimeout(x)}),L.return(); h.W=r}H.gi(h.X?13:14);h.G.reject(h.W);return L.return();case 6:h.state=8,h.Y=0,(z=h.X)==null||z.dispose(),h.X=W,h.G.resolve(),g.zQ(L)}})}; eqh=function(h,W,c,V){var H=K7(W,2)*1E3;if(H<=0)throw new OT(31,"TTM:Invalid");if(Aq(W,4))return new AE(h.logger,Aq(W,4),H);if(!K7(W,3))return new Ke(h.logger,PW(Ho(W,1)),H);if(!V)throw new OT(4,"PMD:Undefined");V=V(PW(Ho(W,1)));if(!(V instanceof Function))throw new OT(16,"APF:Failed");h.N=Math.floor((Date.now()+H)/1E3);h=new id(h.logger,V,K7(W,3),H);h.addOnDisposeCallback(function(){return void c.resolve()}); return h}; zqv=function(h,W){W=W instanceof OT?W:new OT(5,"TVD:error",W);return h.reportError(W)}; Ab7=function(h,W,c){try{if(h.gE())throw new OT(21,"BNT:disposed");if(!h.X&&h.W)throw h.W;var V,H;return(H=(V=Q8T(h,W,c))!=null?V:LL5(h,W,c))!=null?H:iRd(h,W,c)}catch(B){if(!W.P_)throw zqv(h,B);return KLd(h,c,B)}}; Q8T=function(h,W,c){var V;return(V=h.X)==null?void 0:Le(V,function(){return P9(h,W)},c,function(H){var B; if(h.X instanceof id&&((B=W.oS)==null?0:B.xM))try{var E;(E=h.cache)==null||uPN(E,P9(h,W),H,W.oS.ES,h.N-120)}catch(J){h.reportError(new OT(24,"ELX:write",J))}})}; LL5=function(h,W,c){var V;if((V=W.oS)!=null&&V.kJ)try{var H,B=(H=h.cache)==null?void 0:dY4(H,P9(h,W),W.oS.ES);return B?c?hE(h.logger,function(){return g.i6(B,2)},"a"):B:void 0}catch(E){h.reportError(new OT(23,"RXO:read",E))}}; iRd=function(h,W,c){var V={stack:[],error:void 0,hasError:!1};try{if(!W.hj)throw new OT(29,"SDF:notready");return Le(lhN(V,new MV(h.logger,0,h.state)),function(){return P9(h,W)},c)}catch(H){V.error=H,V.hasError=!0}finally{n5p(V)}}; KLd=function(h,W,c){var V={stack:[],error:void 0,hasError:!1};try{var H=zqv(h,c);return Le(lhN(V,new UE(h.logger,H)),function(){return[]},W)}catch(B){V.error=B,V.hasError=!0}finally{n5p(V)}}; P9=function(h,W){return W.Me?W.Me:W.ma?hE(h.logger,function(){return W.Me=Ce(W.ma)},"c"):[]}; fe=function(){var h=0,W;return function(c){W||(W=new W9);var V=new MV(W,h,1),H=Le(V,function(){return Ce(c)},!0); V.dispose();h++;return H}}; bd=function(h){this.TV=vX(h)}; UYl=function(h,W,c){this.pP=h;this.au=W;this.metadata=c}; TT=function(h,W){W=W===void 0?{}:W;this.n4M=h;this.metadata=W;this.status=null}; NV=function(h,W,c,V,H){this.name=h;this.methodType="unary";this.requestType=W;this.responseType=c;this.X=V;this.W=H}; XH=function(h){this.TV=vX(h)}; tE=function(h){this.TV=vX(h)}; v9=function(h){this.TV=vX(h)}; mV=function(h,W){this.S=h.LWN;this.Z=W;this.X=h.xhr;this.G=[];this.C=[];this.N=[];this.Y=[];this.W=[];this.S&&COp(this)}; POU=function(h,W){var c=new MeD;g.DP(h.X,"complete",function(){if(In(h.X)){var V=g.Yv(h.X);if(W&&h.X.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");V=atob(V)}try{var H=h.Z(V)}catch(J){o_(h,pe(new Ts(13,"Error when deserializing response data; error: "+J+(", response: "+V)),c));return}V=R7D(h.X.getStatus());I_(h,YQ(h));V==0?FLD(h,H):o_(h,pe(new Ts(V,"Xhr succeeded but the status code is not 200"),c))}else{V=g.Yv(h.X);H=YQ(h);if(V){var B=ybv(h, V);V=B.code;var E=B.details;B=B.metadata}else V=2,E="Rpc failed due to xhr error. uri: "+String(h.X.Z)+", error code: "+h.X.W+", error: "+h.X.getLastError(),B=H;I_(h,H);o_(h,pe(new Ts(V,E,B),c))}})}; COp=function(h){h.S.cG("data",function(W){if("1"in W){var c=W["1"];try{var V=h.Z(c)}catch(H){o_(h,new Ts(13,"Error when deserializing response data; error: "+H+(", response: "+c)))}V&&FLD(h,V)}if("2"in W)for(W=ybv(h,W["2"]),c=0;c-1&&h.splice(W,1)}; FLD=function(h,W){for(var c=0;c>4&15).toString(16)+(h&15).toString(16)}; s5=function(h,W){this.W=this.X=null;this.G=h||null;this.Y=!!W}; RD=function(h){h.X||(h.X=new Map,h.W=0,h.G&&uv(h.G,function(W,c){h.add(C6(W),c)}))}; of7=function(h,W){RD(h);W=Jj(h,W);return h.X.has(W)}; g.pUp=function(h,W,c){h.remove(W);c.length>0&&(h.G=null,h.X.set(Jj(h,W),g.Mu(c)),h.W=h.W+c.length)}; Jj=function(h,W){W=String(W);h.Y&&(W=W.toLowerCase());return W}; ted=function(h,W){W&&!h.Y&&(RD(h),h.G=null,h.X.forEach(function(c,V){var H=V.toLowerCase();V!=H&&(this.remove(V),g.pUp(this,H,c))},h)); h.Y=W}; g.Ik5=function(h){var W="";g.k6(h,function(c,V){W+=V;W+=":";W+=c;W+="\r\n"}); return W}; g.ue=function(h,W,c){if(g.GF(c))return h;c=g.Ik5(c);if(typeof h==="string")return qG(h,g.Ak(W),c);g.By(h,W,c);return h}; g.dH=function(h){g.N.call(this);this.W=h;this.X={}}; YTD=function(h,W,c,V,H,B){if(Array.isArray(c))for(var E=0;E=0)return!0;try{var W=new g.kQ(h)}catch(c){return g.jl(Rh4,function(V){return h.search(V)>0})!=null}return W.N.match(JHN)?!0:g.jl(Rh4,function(c){return h.match(c)!=null})!=null}; g.Q8=function(h,W){return h.replace(d$7,function(c,V){try{var H=g.Za(W,V);if(H==null||H.toString()==null)return c;H=H.toString();if(H==""||!g.Cr(g.Fk(H)))return encodeURIComponent(H).replace(/%2C/g,",")}catch(B){}return c})}; LO=function(h,W){return Object.is(h,W)}; KO=function(h){var W=ie;ie=h;return W}; Gdd=function(h){if(h.mL!==void 0){var W=Aj;Aj=!0;try{for(var c=g.e(h.mL),V=c.next();!V.done;V=c.next()){var H=V.value;H.aU||(h=void 0,H.aU=!0,Gdd(H),(h=H.wg)==null||h.call(H,H))}}finally{Aj=W}}}; Z2v=function(){var h;return((h=ie)==null?void 0:h.AJ)!==!1}; rHN=function(h){h&&(h.d9=0);return KO(h)}; q$5=function(h,W){KO(W);if(h&&h.Qs!==void 0&&h.Dt!==void 0&&h.X3!==void 0){if(U5(h))for(W=h.d9;Wh.d9;)h.Qs.pop(),h.X3.pop(),h.Dt.pop()}}; lPk=function(h,W,c){x$d(h);if(h.mL.length===0&&h.Qs!==void 0)for(var V=0;V0}; n77=function(h){h.Qs!=null||(h.Qs=[]);h.Dt!=null||(h.Dt=[]);h.X3!=null||(h.X3=[])}; x$d=function(h){h.mL!=null||(h.mL=[]);h.Js!=null||(h.Js=[])}; zhN=function(h){function W(){if(Aj)throw Error("");if(ie!==null){var V=ie.d9++;n77(ie);V0?" "+W:W))}}; g.WD=function(h,W){if(h.classList)Array.prototype.forEach.call(W,function(H){g.he(h,H)}); else{var c={};Array.prototype.forEach.call(Dy(h),function(H){c[H]=!0}); Array.prototype.forEach.call(W,function(H){c[H]=!0}); W="";for(var V in c)W+=W.length>0?" "+V:V;g.wH(h,W)}}; g.cD=function(h,W){h.classList?h.classList.remove(W):g.k$(h,W)&&g.wH(h,Array.prototype.filter.call(Dy(h),function(c){return c!=W}).join(" "))}; g.V$=function(h,W){h.classList?Array.prototype.forEach.call(W,function(c){g.cD(h,c)}):g.wH(h,Array.prototype.filter.call(Dy(h),function(c){return!g.el(W,c)}).join(" "))}; g.$y=function(h,W,c){c?g.he(h,W):g.cD(h,W)}; Mx7=function(h,W){var c=!g.k$(h,W);g.$y(h,W,c)}; g.sb=function(){g.Rn.call(this);this.X=0;this.endTime=this.startTime=null}; Fm7=function(h,W){Array.isArray(W)||(W=[W]);W=W.map(function(c){return typeof c==="string"?c:c.property+" "+c.duration+"s "+c.timing+" "+c.delay+"s"}); g.oY(h,"transition",W.join(","))}; HD=function(h,W,c,V,H){g.sb.call(this);this.W=h;this.C=W;this.N=c;this.Y=V;this.S=Array.isArray(H)?H:[H]}; yHN=function(h,W,c,V){return new HD(h,W,{opacity:c},{opacity:V},{property:"opacity",duration:W,timing:"ease-in",delay:0})}; fP4=function(h){h=PG(h);if(h=="")return null;var W=String(h.slice(0,4)).toLowerCase();if(("url("1||h&&h.split(")"),null;if(h.indexOf("(")>0){if(/"|'/.test(h))return null;W=/([\-\w]+)\(/g;for(var c;c=W.exec(h);)if(!(c[1].toLowerCase()in PHp))return null}return h}; BD=function(h,W){h=g.k5[h];return h&&h.prototype?(W=Object.getOwnPropertyDescriptor(h.prototype,W))&&W.get||null:null}; b2N=function(h){var W=g.k5.CSSStyleDeclaration;return W&&W.prototype&&W.prototype[h]||null}; T5p=function(h,W,c,V){if(h)return h.apply(W,V);if(g.Eb&&document.documentMode<10){if(!W[c].call)throw Error("IE Clobbering detected");}else if(typeof W[c]!="function")throw Error("Clobbering detected");return W[c].apply(W,V)}; m$7=function(h){if(!h)return"";var W=document.createElement("div").style;N5k(h).forEach(function(c){var V=g.Js&&c in Xep?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");UO(V,"--")||UO(V,"var")||(c=T5p(txp,h,h.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=fP4(c),c!=null&&T5p(v7D,W,W.setProperty?"setProperty":"setAttribute",[V,c]))}); return W.cssText||""}; N5k=function(h){g.sI(h)?h=g.Mu(h):(h=g.HG(h),g.QU(h,"cssText"));return h}; g.Je=function(h){var W,c=W=0,V=!1;h=h.split(o7l);for(var H=0;H.4?-1:1;return(W==0?null:W)==-1?"rtl":"ltr"}; g.Z_=function(h){if(h instanceof u2||h instanceof dS||h instanceof G$)return h;if(typeof h.next=="function")return new u2(function(){return h}); if(typeof h[Symbol.iterator]=="function")return new u2(function(){return h[Symbol.iterator]()}); if(typeof h.WY=="function")return new u2(function(){return h.WY()}); throw Error("Not an iterator or iterable.");}; u2=function(h){this.W=h}; dS=function(h){this.W=h}; G$=function(h){u2.call(this,function(){return h}); this.G=h}; rS=function(h,W,c,V,H,B,E,J){this.X=h;this.S=W;this.G=c;this.C=V;this.Y=H;this.N=B;this.W=E;this.Z=J}; qM=function(h,W){if(W==0)return h.X;if(W==1)return h.W;var c=o0(h.X,h.G,W),V=o0(h.G,h.Y,W);h=o0(h.Y,h.W,W);c=o0(c,V,W);V=o0(V,h,W);return o0(c,V,W)}; O2U=function(h,W){var c=(W-h.X)/(h.W-h.X);if(c<=0)return 0;if(c>=1)return 1;for(var V=0,H=1,B=0,E=0;E<8;E++){B=qM(h,c);var J=(qM(h,c+1E-6)-B)/1E-6;if(Math.abs(B-W)<1E-6)return c;if(Math.abs(J)<1E-6)break;else B1E-6&&E<8;E++)B=0}; g.ar=function(h){g.N.call(this);this.N=1;this.G=[];this.Y=0;this.X=[];this.W={};this.S=!!h}; g7T=function(h,W,c){g.nW(function(){h.apply(W,c)})}; g.eQ=function(h){this.X=h}; z$=function(h){this.X=h}; D$N=function(h){this.data=h}; weD=function(h){return h===void 0||h instanceof D$N?h:new D$N(h)}; Q$=function(h){this.X=h}; g.kdD=function(h){var W=h.creation;h=h.expiration;return!!h&&hg.Gt()}; g.Lc=function(h){this.X=h}; hXv=function(){}; i2=function(){}; Kc=function(h){this.X=h;this.W=null}; Ae=function(h){if(h.X==null)throw Error("Storage mechanism: Storage unavailable");h.isAvailable()||QI(Error("Storage mechanism: Storage unavailable"))}; Ub=function(){var h=null;try{h=g.k5.localStorage||null}catch(W){}Kc.call(this,h)}; W3d=function(){var h=null;try{h=g.k5.sessionStorage||null}catch(W){}Kc.call(this,h)}; Cc=function(h,W){this.W=h;this.X=W+"::"}; g.MM=function(h){var W=new Ub;return W.isAvailable()?h?new Cc(W,h):W:null}; FS=function(h,W){this.X=h;this.W=W}; y$=function(h){this.X=[];if(h)a:{if(h instanceof y$){var W=h.UU();h=h.No();if(this.X.length<=0){for(var c=this.X,V=0;V>>6:(B<65536?J[c++]=224|B>>>12:(J[c++]=240|B>>>18,J[c++]=128|B>>>12&63),J[c++]=128|B>>> 6&63),J[c++]=128|B&63);return J}; T$=function(h){for(var W=h.length;--W>=0;)h[W]=0}; NM=function(h,W,c,V,H){this.yh=h;this.jn=W;this.Cd=c;this.W1=V;this.lHI=H;this.If=h&&h.length}; XS=function(h,W){this.nh=h;this.f1=0;this.mj=W}; te=function(h,W){h.PH[h.pending++]=W&255;h.PH[h.pending++]=W>>>8&255}; vD=function(h,W,c){h.Sv>16-c?(h.Dr|=W<>16-h.Sv,h.Sv+=c-16):(h.Dr|=W<>>=1,c<<=1;while(--W>0);return c>>>1}; HWU=function(h,W,c){var V=Array(16),H=0,B;for(B=1;B<=15;B++)V[B]=H=H+c[B-1]<<1;for(c=0;c<=W;c++)H=h[c*2+1],H!==0&&(h[c*2]=snk(V[H]++,H))}; Bmp=function(h){var W;for(W=0;W<286;W++)h.YO[W*2]=0;for(W=0;W<30;W++)h.ET[W*2]=0;for(W=0;W<19;W++)h.JG[W*2]=0;h.YO[512]=1;h.t7=h.NG=0;h.R3=h.matches=0}; Evk=function(h){h.Sv>8?te(h,h.Dr):h.Sv>0&&(h.PH[h.pending++]=h.Dr);h.Dr=0;h.Sv=0}; RXN=function(h,W,c){Evk(h);te(h,c);te(h,~c);b2.qM(h.PH,h.window,W,c,h.pending);h.pending+=c}; JFd=function(h,W,c,V){var H=W*2,B=c*2;return h[H]>>7)];mW(h,E,c);J=SQ[E];J!==0&&(H-=gS[E],vD(h,H,J))}}while(V>1;E>=1;E--)or(h,c,E);u=B;do E=h.kx[1],h.kx[1]=h.kx[h.HG--],or(h,c,1),V=h.kx[1],h.kx[--h.FS]=E,h.kx[--h.FS]=V,c[u*2]=c[E*2]+c[V*2],h.depth[u]=(h.depth[E]>=h.depth[V]?h.depth[E]:h.depth[V])+1,c[E*2+1]=c[V*2+1]=u,h.kx[1]=u++,or(h,c,1);while(h.HG>= 2);h.kx[--h.FS]=h.kx[1];E=W.nh;u=W.f1;V=W.mj.yh;H=W.mj.If;B=W.mj.jn;var d=W.mj.Cd,G=W.mj.lHI,Z,r=0;for(Z=0;Z<=15;Z++)h.Xd[Z]=0;E[h.kx[h.FS]*2+1]=0;for(W=h.FS+1;W<573;W++){var q=h.kx[W];Z=E[E[q*2+1]*2+1]+1;Z>G&&(Z=G,r++);E[q*2+1]=Z;if(!(q>u)){h.Xd[Z]++;var x=0;q>=d&&(x=B[q-d]);var z=E[q*2];h.t7+=z*(Z+x);H&&(h.NG+=z*(V[q*2+1]+x))}}if(r!==0){do{for(Z=G-1;h.Xd[Z]===0;)Z--;h.Xd[Z]--;h.Xd[Z+1]+=2;h.Xd[G]--;r-=2}while(r>0);for(Z=G;Z!==0;Z--)for(q=h.Xd[Z];q!==0;)V=h.kx[--W],V>u||(E[V*2+1]!==Z&&(h.t7+=(Z- E[V*2+1])*E[V*2],E[V*2+1]=Z),q--)}HWU(c,J,h.Xd)}; dd7=function(h,W,c){var V,H=-1,B=W[1],E=0,J=7,u=4;B===0&&(J=138,u=3);W[(c+1)*2+1]=65535;for(V=0;V<=c;V++){var d=B;B=W[(V+1)*2+1];++E>>=1)if(W&1&&h.YO[c*2]!==0)return 0;if(h.YO[18]!==0||h.YO[20]!==0||h.YO[26]!==0)return 1;for(c=32;c<256;c++)if(h.YO[c*2]!==0)return 1;return 0}; wS=function(h,W,c){h.PH[h.CC+h.R3*2]=W>>>8&255;h.PH[h.CC+h.R3*2+1]=W&255;h.PH[h.c7+h.R3]=c&255;h.R3++;W===0?h.YO[c*2]++:(h.matches++,W--,h.YO[(pc[c]+256+1)*2]++,h.ET[(W<256?Ob[W]:Ob[256+(W>>>7)])*2]++);return h.R3===h.dL-1}; ht=function(h,W){h.msg=ky[W];return W}; WE=function(h){for(var W=h.length;--W>=0;)h[W]=0}; cE=function(h){var W=h.state,c=W.pending;c>h.IT&&(c=h.IT);c!==0&&(b2.qM(h.output,W.PH,W.Ol,c,h.NR),h.NR+=c,W.Ol+=c,h.Px+=c,h.IT-=c,W.pending-=c,W.pending===0&&(W.Ol=0))}; s_=function(h,W){var c=h.vv>=0?h.vv:-1,V=h.zz-h.vv,H=0;if(h.level>0){h.SK.Uc===2&&(h.SK.Uc=ZW7(h));D_(h,h.oi);D_(h,h.Gn);dd7(h,h.YO,h.oi.f1);dd7(h,h.ET,h.Gn.f1);D_(h,h.qa);for(H=18;H>=3&&h.JG[rFU[H]*2+1]===0;H--);h.t7+=3*(H+1)+5+5+4;var B=h.t7+3+7>>>3;var E=h.NG+3+7>>>3;E<=B&&(B=E)}else B=E=V+5;if(V+4<=B&&c!==-1)vD(h,W?1:0,3),RXN(h,c,V);else if(h.strategy===4||E===B)vD(h,2+(W?1:0),3),uv4(h,Vm,$Z);else{vD(h,4+(W?1:0),3);c=h.oi.f1+1;V=h.Gn.f1+1;H+=1;vD(h,c-257,5);vD(h,V-1,5);vD(h,H-4,4);for(B=0;B>>8&255;h.PH[h.pending++]=W&255}; qLv=function(h,W){var c=h.EN,V=h.zz,H=h.o2,B=h.LD,E=h.zz>h.P3-262?h.zz-(h.P3-262):0,J=h.window,u=h.iN,d=h.z0,G=h.zz+258,Z=J[V+H-1],r=J[V+H];h.o2>=h.NZ&&(c>>=2);B>h.yA&&(B=h.yA);do{var q=W;if(J[q+H]===r&&J[q+H-1]===Z&&J[q]===J[V]&&J[++q]===J[V+1]){V+=2;for(q++;J[++V]===J[++q]&&J[++V]===J[++q]&&J[++V]===J[++q]&&J[++V]===J[++q]&&J[++V]===J[++q]&&J[++V]===J[++q]&&J[++V]===J[++q]&&J[++V]===J[++q]&&VH){h.hT=W;H=q;if(q>=B)break;Z=J[V+H-1];r=J[V+H]}}}while((W=d[W&u])>E&&--c!== 0);return H<=h.yA?H:h.yA}; Jt=function(h){var W=h.P3,c;do{var V=h.Y7-h.yA-h.zz;if(h.zz>=W+(W-262)){b2.qM(h.window,h.window,W,W,0);h.hT-=W;h.zz-=W;h.vv-=W;var H=c=h.bY;do{var B=h.head[--H];h.head[H]=B>=W?B-W:0}while(--c);H=c=W;do B=h.z0[--H],h.z0[H]=B>=W?B-W:0;while(--c);V+=W}if(h.SK.zr===0)break;H=h.SK;c=h.window;B=h.zz+h.yA;var E=H.zr;E>V&&(E=V);E===0?c=0:(H.zr-=E,b2.qM(c,H.input,H.Ws,E,B),H.state.wrap===1?H.vV=E_(H.vV,c,E,B):H.state.wrap===2&&(H.vV=RW(H.vV,c,E,B)),H.Ws+=E,H.A$+=E,c=E);h.yA+=c;if(h.yA+h.Ut>=3)for(V=h.zz-h.Ut, h.UX=h.window[V],h.UX=(h.UX<=3&&(h.UX=(h.UX<=3)if(c=wS(h,h.zz-h.hT,h.OX-3),h.yA-=h.OX,h.OX<=h.O3&&h.yA>=3){h.OX--;do h.zz++,h.UX=(h.UX<=3&&(h.UX=(h.UX<4096)&&(h.OX=2));if(h.o2>=3&&h.OX<=h.o2){V=h.zz+h.yA-3;c=wS(h,h.zz-1-h.qt,h.o2-3);h.yA-=h.o2-1;h.o2-=2;do++h.zz<=V&&(h.UX=(h.UX<=3&&h.zz>0&&(V=h.zz-1,c=B[V],c===B[++V]&&c===B[++V]&&c===B[++V])){for(H=h.zz+258;c===B[++V]&&c===B[++V]&&c===B[++V]&&c===B[++V]&&c===B[++V]&&c===B[++V]&&c===B[++V]&&c===B[++V]&&Vh.yA&&(h.OX=h.yA)}h.OX>=3?(c=wS(h,1,h.OX-3),h.yA-=h.OX,h.zz+=h.OX,h.OX=0):(c=wS(h,0,h.window[h.zz]),h.yA--,h.zz++);if(c&&(s_(h,!1),h.SK.IT===0))return 1}h.Ut=0;return W=== 4?(s_(h,!0),h.SK.IT===0?3:4):h.R3&&(s_(h,!1),h.SK.IT===0)?1:2}; l9L=function(h,W){for(var c;;){if(h.yA===0&&(Jt(h),h.yA===0)){if(W===0)return 1;break}h.OX=0;c=wS(h,0,h.window[h.zz]);h.yA--;h.zz++;if(c&&(s_(h,!1),h.SK.IT===0))return 1}h.Ut=0;return W===4?(s_(h,!0),h.SK.IT===0?3:4):h.R3&&(s_(h,!1),h.SK.IT===0)?1:2}; G7=function(h,W,c,V,H){this.mf=h;this.uII=W;this.QzH=c;this.wr=V;this.func=H}; nv5=function(){this.SK=null;this.status=0;this.PH=null;this.wrap=this.pending=this.Ol=this.o3=0;this.aT=null;this.K9=0;this.method=8;this.us=-1;this.iN=this.ZZ=this.P3=0;this.window=null;this.Y7=0;this.head=this.z0=null;this.LD=this.NZ=this.strategy=this.level=this.O3=this.EN=this.o2=this.yA=this.hT=this.zz=this.eW=this.qt=this.OX=this.vv=this.N9=this.L5=this.GZ=this.bY=this.UX=0;this.YO=new b2.pQ(1146);this.ET=new b2.pQ(122);this.JG=new b2.pQ(78);WE(this.YO);WE(this.ET);WE(this.JG);this.qa=this.Gn= this.oi=null;this.Xd=new b2.pQ(16);this.kx=new b2.pQ(573);WE(this.kx);this.FS=this.HG=0;this.depth=new b2.pQ(573);WE(this.depth);this.Sv=this.Dr=this.Ut=this.matches=this.NG=this.t7=this.CC=this.R3=this.dL=this.c7=0}; jnN=function(h,W){if(!h||!h.state||W>5||W<0)return h?ht(h,-2):-2;var c=h.state;if(!h.output||!h.input&&h.zr!==0||c.status===666&&W!==4)return ht(h,h.IT===0?-5:-2);c.SK=h;var V=c.us;c.us=W;if(c.status===42)if(c.wrap===2)h.vV=0,HE(c,31),HE(c,139),HE(c,8),c.aT?(HE(c,(c.aT.text?1:0)+(c.aT.Qx?2:0)+(c.aT.extra?4:0)+(c.aT.name?8:0)+(c.aT.comment?16:0)),HE(c,c.aT.time&255),HE(c,c.aT.time>>8&255),HE(c,c.aT.time>>16&255),HE(c,c.aT.time>>24&255),HE(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),HE(c,c.aT.os& 255),c.aT.extra&&c.aT.extra.length&&(HE(c,c.aT.extra.length&255),HE(c,c.aT.extra.length>>8&255)),c.aT.Qx&&(h.vV=RW(h.vV,c.PH,c.pending,0)),c.K9=0,c.status=69):(HE(c,0),HE(c,0),HE(c,0),HE(c,0),HE(c,0),HE(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),HE(c,3),c.status=113);else{var H=8+(c.ZZ-8<<4)<<8;H|=(c.strategy>=2||c.level<2?0:c.level<6?1:c.level===6?2:3)<<6;c.zz!==0&&(H|=32);c.status=113;BE(c,H+(31-H%31));c.zz!==0&&(BE(c,h.vV>>>16),BE(c,h.vV&65535));h.vV=1}if(c.status===69)if(c.aT.extra){for(H= c.pending;c.K9<(c.aT.extra.length&65535)&&(c.pending!==c.o3||(c.aT.Qx&&c.pending>H&&(h.vV=RW(h.vV,c.PH,c.pending-H,H)),cE(h),H=c.pending,c.pending!==c.o3));)HE(c,c.aT.extra[c.K9]&255),c.K9++;c.aT.Qx&&c.pending>H&&(h.vV=RW(h.vV,c.PH,c.pending-H,H));c.K9===c.aT.extra.length&&(c.K9=0,c.status=73)}else c.status=73;if(c.status===73)if(c.aT.name){H=c.pending;do{if(c.pending===c.o3&&(c.aT.Qx&&c.pending>H&&(h.vV=RW(h.vV,c.PH,c.pending-H,H)),cE(h),H=c.pending,c.pending===c.o3)){var B=1;break}B=c.K9H&&(h.vV=RW(h.vV,c.PH,c.pending-H,H));B===0&&(c.K9=0,c.status=91)}else c.status=91;if(c.status===91)if(c.aT.comment){H=c.pending;do{if(c.pending===c.o3&&(c.aT.Qx&&c.pending>H&&(h.vV=RW(h.vV,c.PH,c.pending-H,H)),cE(h),H=c.pending,c.pending===c.o3)){B=1;break}B=c.K9H&&(h.vV=RW(h.vV,c.PH,c.pending-H,H));B===0&&(c.status=103)}else c.status= 103;c.status===103&&(c.aT.Qx?(c.pending+2>c.o3&&cE(h),c.pending+2<=c.o3&&(HE(c,h.vV&255),HE(c,h.vV>>8&255),h.vV=0,c.status=113)):c.status=113);if(c.pending!==0){if(cE(h),h.IT===0)return c.us=-1,0}else if(h.zr===0&&(W<<1)-(W>4?9:0)<=(V<<1)-(V>4?9:0)&&W!==4)return ht(h,-5);if(c.status===666&&h.zr!==0)return ht(h,-5);if(h.zr!==0||c.yA!==0||W!==0&&c.status!==666){V=c.strategy===2?l9L(c,W):c.strategy===3?xdl(c,W):Z3[c.level].func(c,W);if(V===3||V===4)c.status=666;if(V===1||V===3)return h.IT===0&&(c.us= -1),0;if(V===2&&(W===1?(vD(c,2,3),mW(c,256,Vm),c.Sv===16?(te(c,c.Dr),c.Dr=0,c.Sv=0):c.Sv>=8&&(c.PH[c.pending++]=c.Dr&255,c.Dr>>=8,c.Sv-=8)):W!==5&&(vD(c,0,3),RXN(c,0,0),W===3&&(WE(c.head),c.yA===0&&(c.zz=0,c.vv=0,c.Ut=0))),cE(h),h.IT===0))return c.us=-1,0}if(W!==4)return 0;if(c.wrap<=0)return 1;c.wrap===2?(HE(c,h.vV&255),HE(c,h.vV>>8&255),HE(c,h.vV>>16&255),HE(c,h.vV>>24&255),HE(c,h.A$&255),HE(c,h.A$>>8&255),HE(c,h.A$>>16&255),HE(c,h.A$>>24&255)):(BE(c,h.vV>>>16),BE(c,h.vV&65535));cE(h);c.wrap>0&& (c.wrap=-c.wrap);return c.pending!==0?0:1}; rO=function(h){if(!(this instanceof rO))return new rO(h);h=this.options=b2.assign({level:-1,method:8,chunkSize:16384,cX:15,Yfk:8,strategy:0,to:""},h||{});h.raw&&h.cX>0?h.cX=-h.cX:h.gH&&h.cX>0&&h.cX<16&&(h.cX+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.SK=new a9N;this.SK.IT=0;var W=this.SK;var c=h.level,V=h.method,H=h.cX,B=h.Yfk,E=h.strategy;if(W){var J=1;c===-1&&(c=6);H<0?(J=0,H=-H):H>15&&(J=2,H-=16);if(B<1||B>9||V!==8||H<8||H>15||c<0||c>9||E<0||E>4)W=ht(W,-2);else{H===8&&(H=9); var u=new nv5;W.state=u;u.SK=W;u.wrap=J;u.aT=null;u.ZZ=H;u.P3=1<>=7;B<30;B++)for(gS[B]=E<<7,H=0;H<1<=d.P3&&(W===0&&(WE(d.head),d.zz=0,d.vv=0,d.Ut=0),c=new b2.PE(d.P3),b2.qM(c,B,E-d.P3,d.P3,0),B=c,E=d.P3);c=h.zr;V=h.Ws;H=h.input;h.zr=E;h.Ws=0;h.input=B;for(Jt(d);d.yA>=3;){B=d.zz;E=d.yA-2;do d.UX=(d.UX<-9?(((0,c[9])(c[18],(0,c[42])(c[14],c[8],(0,c[12])()),c[17],(0,c[28])(c[6]),(0,c[26])(c[3],c[52]),(0,c[42])(c[14],c[6],(0,c[20])()),(0,c[17])(c[8],c[29]),c[6],c[59]),c[4])((((0,c[31])(c[40],c[8]),(0,c[53])(c[8],c[34]),c[17])(c[8],c[65]),c[53])(c[44],c[68]),c[17],c[33],c[60]),(0,c[4])((0,c[56])(c[8]),c[42],c[14],c[52],(0,c[58])()),c[4])(((0,c[17])(c[6],c[30]),c[0])(c[67],c[61]),c[17],c[6],c[43]):((((0,c[4])((0,c[41])(c[56], (0,c[56])(c[67]),(0,c[18])(c[27],c[5]),(0,c[71])(c[27],c[50])|(0,c[45])(c[52],c[65]),c[65]),c[66],c[4]),((0,c[0])(c[44],c[64]),c[new Date(R[63])/1E3])(c[6]),c[0])((0,c[0])((0,c[4])(c[52],c[7]),c[31],c[69],c[67]),c[48],c[0]),((0,c[37])(c[0],c[33]),c[4])(c[26]),c[1])(c[26],c[30]),c[62])(c[34],c[28],(0,c[32])())!==(0,c[46])(c[59],c[15])),c[25]<=7&&(c[5]!==1&&(((0,c[33])(c[58],c[17]),c[33])(c[24],c[43]),1)||((0,c[56])(c[13],c[7]),c[22])(c[66],c[58],(0,c[64])())),c[12]!==-10&&(0,c[8])(c[13])%(0,c[60])(c[45], c[58])}catch(V){(0,c[35])(c[19]),(0,c[21])(c[49],c[11],(0,c[51])()),(0,c[46])(c[11],c[6])}try{c[31]>=4&&(c[50]===4?(0,c[63])((0,c[10])(c[68],c[12])+((0,c[46])(c[57],c[47]),c[35])(c[55]),c[46],c[30],c[9]):((0,c[37])(c[14],c[30]),c[9])((0,c[5])(c[38]),c[66],(0,c[20])(c[34],c[56]),c[26])),(0,c[6])((0,c[36])(c[48],c[11],(0,c[8])()),c[61],c[11],c[42])}catch(V){c[38]>=-4&&(c[28]<-1||((0,c[52])(c[46],c[0]),R[13]))&&(0,c[22])(c[26])}finally{(c[29]>=-8||((0,c[Math[R[76]](new Date(R[67])/1E3,2)+810-841])((0,c[36])(c[64], c[70],(0,c[7])()),c[36],(0,c[36])(c[64],c[26],(0,c[7])()),c[64],c[0],(0,c[66])()),0))&&(0,c[43])((0,c[1])(c[26]),c[6],(0,c[25])(c[new Date(R[53])/1E3],c[53]),c[50],c[45]),(c[57]>-1||(((0,c[new Date(R[41])/1E3])(c[4],c[45]),(0,c[49])(c[26]),(0,c[6])((0,c[52])(c[28],c[24]),c[2],c[11],c[40]),c[22])(c[new Date(R[20])/1E3]),(0,c[1])(c[24]),((0,c[25])(c[45],c[4]),c[25])(c[24],c[31]),((0,c[61])(c[24],c[23]),c[25])(c[45],c[30]),0))&&((((0,c[43])((0,c[36])(c[64],c[70],(0,c[8])()),c[5],(0,c[1])(c[26]),c[1], (0,c[36])(c[64],c[26],(0,c[8])()),c[24]),c[36])(c[64],c[24],(0,c[7])()),c[19])(c[16],c[45]),c[36])(c[64],c[70],(0,c[20])())%(((0,c[36])(c[64],c[24],(0,c[8])()),c[36])(c[64],c[26],(0,c[66])()),c[61])(c[24],c[56]),c[28]<1&&(c[new Date(R[22])/1E3]==-6||((0,c[22])(c[24]),0))&&(0,c[36])(c[64],c[26],(0,c[8])())}}catch(V){return R[87]+h}return W[R[33]](R[13])}; g.jn=function(h){this.name=h}; vvN=function(h){this.TV=vX(h)}; aW=function(h){this.TV=vX(h)}; en=function(h){this.TV=vX(h)}; mdv=function(h){this.TV=vX(h)}; z7=function(h){this.TV=vX(h)}; Qm=function(h){this.TV=vX(h)}; Lu=function(h){this.TV=vX(h)}; i$=function(h){this.TV=vX(h)}; Ku=function(h){this.TV=vX(h)}; At=function(h){this.TV=vX(h)}; U_=function(h){this.TV=vX(h)}; Cu=function(h){this.TV=vX(h)}; MU=function(h){this.TV=vX(h)}; F_=function(h){this.TV=vX(h)}; ym=function(h){this.TV=vX(h)}; PE=function(h){this.TV=vX(h,500)}; fu=function(h){this.TV=vX(h)}; b$=function(h){this.TV=vX(h)}; ovU=function(h){this.TV=vX(h)}; pKN=function(){return g.c2("yt.ads.biscotti.lastId_")||""}; I95=function(h){g.hS("yt.ads.biscotti.lastId_",h)}; NU=function(){var h=arguments,W=T7;h.length>1?W[h[0]]=h[1]:h.length===1&&Object.assign(W,h[0])}; g.X_=function(h,W){return h in T7?T7[h]:W}; mP=function(h){var W=T7.EXPERIMENT_FLAGS;return W?W[h]:void 0}; YLp=function(h){oW.forEach(function(W){return W(h)})}; g.IW=function(h){return h&&window.yterr?function(){try{return h.apply(this,arguments)}catch(W){g.pu(W)}}:h}; g.pu=function(h){var W=g.c2("yt.logging.errors.log");W?W(h,"ERROR",void 0,void 0,void 0,void 0,void 0):(W=g.X_("ERRORS",[]),W.push([h,"ERROR",void 0,void 0,void 0,void 0,void 0]),NU("ERRORS",W));YLp(h)}; YZ=function(h,W,c,V,H){var B=g.c2("yt.logging.errors.log");B?B(h,"WARNING",W,c,V,void 0,H):(B=g.X_("ERRORS",[]),B.push([h,"WARNING",W,c,V,void 0,H]),NU("ERRORS",B))}; O_=function(h,W){W=h.split(W);for(var c={},V=0,H=W.length;V1?h[1]:h[0])):{}}; kZ=function(h,W){return Dd7(h,W||{},!0)}; hc=function(h,W){return Dd7(h,W||{},!1)}; Dd7=function(h,W,c){var V=h.split("#",2);h=V[0];V=V.length>1?"#"+V[1]:"";var H=h.split("?",2);h=H[0];H=gO(H[1]||"");for(var B in W)if(c||!g.JB(H,B))H[B]=W[B];return g.r0(h,H)+V}; Wf=function(h){if(!W)var W=window.location.href;var c=g.BA(h)[1]||null,V=g.E6(h);c&&V?(h=g.BA(h),W=g.BA(W),h=h[3]==W[3]&&h[1]==W[1]&&h[4]==W[4]):h=V?g.E6(W)===V&&(Number(g.BA(W)[4]||null)||null)===(Number(g.BA(h)[4]||null)||null):!0;return h}; cf=function(h){h||(h=document.location.href);h=g.BA(h)[1]||null;return h!==null&&h==="https"}; Vn=function(h){h=wKp(h);return h===null?!1:h[0]==="com"&&h[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; ksL=function(h){h=wKp(h);return h===null?!1:h[1]==="google"?!0:h[2]==="google"?h[0]==="au"&&h[1]==="com"?!0:h[0]==="uk"&&h[1]==="co"?!0:!1:!1}; wKp=function(h){h=g.E6(h);return h!==null?h.split(".").reverse():null}; OWU=function(h){return h&&h.match(huv)?h:C6(h)}; Hf=function(h){var W=$2;h=h===void 0?pKN():h;var c=Object,V=c.assign,H=sB(W);var B=W.X;try{var E=B.screenX;var J=B.screenY}catch(M){}try{var u=B.outerWidth;var d=B.outerHeight}catch(M){}try{var G=B.innerWidth;var Z=B.innerHeight}catch(M){}try{var r=B.screenLeft;var q=B.screenTop}catch(M){}try{G=B.innerWidth,Z=B.innerHeight}catch(M){}try{var x=B.screen.availWidth;var z=B.screen.availTop}catch(M){}B=[r,q,E,J,x,z,u,d,G,Z];E=Hsl(!1,W.X.top);J={};var L=L===void 0?g.k5:L;u=new fO;"SVGElement"in L&&"createElementNS"in L.document&&u.set(0);d=$xl();d["allow-top-navigation-by-user-activation"]&&u.set(1);d["allow-popups-to-escape-sandbox"]&&u.set(2);L.crypto&&L.crypto.subtle&&u.set(3);"TextDecoder"in L&&"TextEncoder"in L&&u.set(4);L=Kmh(u);W=(J.bc=L,J.bih=E.height,J.biw=E.width,J.brdim=B.join(),J.vis=sN(W.W),J.wgl=!!Ck.WebGLRenderingContext,J);c=V.call(c,H,W);c.ca_type="image";h&&(c.bid=h);return c}; sB=function(h){var W={};W.dt=WVN;W.flash="0";a:{try{var c=h.X.top.location.href}catch(d){h=2;break a}h=c?c===h.W.location.href?0:1:2}W=(W.frm=h,W);try{W.u_tz=-(new Date).getTimezoneOffset();try{var V=Ck.history.length}catch(d){V=0}W.u_his=V;var H;W.u_h=(H=Ck.screen)==null?void 0:H.height;var B;W.u_w=(B=Ck.screen)==null?void 0:B.width;var E;W.u_ah=(E=Ck.screen)==null?void 0:E.availHeight;var J;W.u_aw=(J=Ck.screen)==null?void 0:J.availWidth;var u;W.u_cd=(u=Ck.screen)==null?void 0:u.colorDepth}catch(d){}return W}; Vch=function(){if(!cEN)return null;var h=cEN();return"open"in h?h:null}; g.EB=function(h){switch(Bf(h)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; Bf=function(h){return h&&"status"in h?h.status:-1}; g.Rx=function(h,W){typeof h==="function"&&(h=g.IW(h));return window.setTimeout(h,W)}; g.Jc=function(h,W){typeof h==="function"&&(h=g.IW(h));return window.setInterval(h,W)}; g.uW=function(h){window.clearTimeout(h)}; g.dJ=function(h){window.clearInterval(h)}; g.ZX=function(h){h=GN(h);return typeof h==="string"&&h==="false"?!1:!!h}; g.rJ=function(h,W){h=GN(h);return h===void 0&&W!==void 0?W:Number(h||0)}; qC=function(){return g.X_("EXPERIMENTS_TOKEN","")}; GN=function(h){return g.X_("EXPERIMENT_FLAGS",{})[h]}; x2=function(){for(var h=[],W=g.X_("EXPERIMENTS_FORCED_FLAGS",{}),c=g.e(Object.keys(W)),V=c.next();!V.done;V=c.next())V=V.value,h.push({key:V,value:String(W[V])});c=g.X_("EXPERIMENT_FLAGS",{});V=g.e(Object.keys(c));for(var H=V.next();!H.done;H=V.next())H=H.value,H.startsWith("force_")&&W[H]===void 0&&h.push({key:H,value:String(c[H])});return h}; lW=function(h,W,c,V,H,B,E,J){function u(){(d&&"readyState"in d?d.readyState:0)===4&&W&&g.IW(W)(d)} c=c===void 0?"GET":c;V=V===void 0?"":V;J=J===void 0?!1:J;var d=Vch();if(!d)return null;"onloadend"in d?d.addEventListener("loadend",u,!1):d.onreadystatechange=u;g.ZX("debug_forward_web_query_parameters")&&(h=$V4(h));d.open(c,h,!0);B&&(d.responseType=B);E&&(d.withCredentials=!0);c=c==="POST"&&(window.FormData===void 0||!(V instanceof FormData));if(H=s_5(h,H))for(var G in H)d.setRequestHeader(G,H[G]),"content-type"===G.toLowerCase()&&(c=!1);c&&d.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(J&&"setAttributionReporting"in XMLHttpRequest.prototype){h={eventSourceEligible:!0,triggerEligible:!1};try{d.setAttributionReporting(h)}catch(Z){YZ(Z)}}d.send(V);return d}; s_5=function(h,W){W=W===void 0?{}:W;var c=Wf(h),V=g.X_("INNERTUBE_CLIENT_NAME"),H=g.ZX("web_ajax_ignore_global_headers_if_set"),B;for(B in HeD){var E=g.X_(HeD[B]),J=B==="X-Goog-AuthUser"||B==="X-Goog-PageId";B!=="X-Goog-Visitor-Id"||E||(E=g.X_("VISITOR_DATA"));var u;if(!(u=!E)){if(!(u=c||(g.E6(h)?!1:!0))){u=h;var d;if(d=g.ZX("add_auth_headers_to_remarketing_google_dot_com_ping")&&B==="Authorization"&&(V==="TVHTML5"||V==="TVHTML5_UNPLUGGED"||V==="TVHTML5_SIMPLY")&&ksL(u))u=Rg(u)||"",u=u.split("/"), u="/"+(u.length>1?u[1]:""),d=u==="/pagead";u=d?!0:!1}u=!u}u||H&&W[B]!==void 0||V==="TVHTML5_UNPLUGGED"&&J||(W[B]=E)}"X-Goog-EOM-Visitor-Id"in W&&"X-Goog-Visitor-Id"in W&&delete W["X-Goog-Visitor-Id"];if(c||!g.E6(h))W["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!g.E6(h)){try{var G=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(Z){}G&&(W["X-YouTube-Time-Zone"]=G)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&g.E6(h)||(W["X-YouTube-Ad-Signals"]= Sn(Hf()));return W}; jO=function(h,W){W.method="POST";W.postParams||(W.postParams={});return g.nb(h,W)}; RuU=function(h,W){if(window.fetch&&W.format!=="XML"){var c={method:W.method||"GET",credentials:"same-origin"};W.headers&&(c.headers=W.headers);W.priority&&(c.priority=W.priority);h=Blh(h,W);var V=EQ4(h,W);V&&(c.body=V);W.withCredentials&&(c.credentials="include");var H=W.context||g.k5,B=!1,E;fetch(h,c).then(function(J){if(!B){B=!0;E&&g.uW(E);var u=J.ok,d=function(G){G=G||{};u?W.onSuccess&&W.onSuccess.call(H,G,J):W.onError&&W.onError.call(H,G,J);W.onFinish&&W.onFinish.call(H,G,J)}; (W.format||"JSON")==="JSON"&&(u||J.status>=400&&J.status<500)?J.json().then(d,function(){d(null)}):d(null)}}).catch(function(){W.onError&&W.onError.call(H,{},{})}); h=W.timeout||0;W.onFetchTimeout&&h>0&&(E=g.Rx(function(){B||(B=!0,g.uW(E),W.onFetchTimeout.call(W.context||g.k5))},h))}else g.nb(h,W)}; g.nb=function(h,W){var c=W.format||"JSON";h=Blh(h,W);var V=EQ4(h,W),H=!1,B=JEQ(h,function(u){if(!H){H=!0;J&&g.uW(J);var d=g.EB(u),G=null,Z=400<=u.status&&u.status<500,r=500<=u.status&&u.status<600;if(d||Z||r)G=uH4(h,c,u,W.convertToSafeHtml);d&&(d=dV7(c,u,G));G=G||{};Z=W.context||g.k5;d?W.onSuccess&&W.onSuccess.call(Z,u,G):W.onError&&W.onError.call(Z,u,G);W.onFinish&&W.onFinish.call(Z,u,G)}},W.method,V,W.headers,W.responseType,W.withCredentials); V=W.timeout||0;if(W.onTimeout&&V>0){var E=W.onTimeout;var J=g.Rx(function(){H||(H=!0,B.abort(),g.uW(J),E.call(W.context||g.k5,B))},V)}return B}; Blh=function(h,W){W.includeDomain&&(h=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+h);var c=g.X_("XSRF_FIELD_NAME");if(W=W.urlParams)W[c]&&delete W[c],h=kZ(h,W);return h}; EQ4=function(h,W){var c=g.X_("XSRF_FIELD_NAME"),V=g.X_("XSRF_TOKEN"),H=W.postBody||"",B=W.postParams,E=g.X_("XSRF_FIELD_NAME"),J;W.headers&&(J=W.headers["Content-Type"]);W.excludeXsrf||g.E6(h)&&!W.withCredentials&&g.E6(h)!==document.location.hostname||W.method!=="POST"||J&&J!=="application/x-www-form-urlencoded"||W.postParams&&W.postParams[E]||(B||(B={}),B[c]=V);(g.ZX("ajax_parse_query_data_only_when_filled")&&B&&Object.keys(B).length>0||B)&&typeof H==="string"&&(H=gO(H),g.lN(H,B),H=W.postBodyFormat&& W.postBodyFormat==="JSON"?JSON.stringify(H):g.ZB(H));B=H||B&&!g.GF(B);!GT7&&B&&W.method!=="POST"&&(GT7=!0,g.pu(Error("AJAX request with postData should use POST")));return H}; uH4=function(h,W,c,V){var H=null;switch(W){case "JSON":try{var B=c.responseText}catch(E){throw V=Error("Error reading responseText"),V.params=h,YZ(V),E;}h=c.getResponseHeader("Content-Type")||"";B&&h.indexOf("json")>=0&&(B.substring(0,5)===")]}'\n"&&(B=B.substring(5)),H=JSON.parse(B));break;case "XML":if(h=(h=c.responseXML)?Zev(h):null)H={},g.gX(h.getElementsByTagName("*"),function(E){H[E.tagName]=rE7(E)})}V&&qET(H); return H}; qET=function(h){if(g.H2(h))for(var W in h)W==="html_content"||v5L(W,"_html")?h[W]=ZQ(h[W]):qET(h[W])}; dV7=function(h,W,c){if(W&&W.status===204)return!0;switch(h){case "JSON":return!!c;case "XML":return Number(c&&c.return_code)===0;case "RAW":return!0;default:return!!c}}; Zev=function(h){return h?(h=("responseXML"in h?h.responseXML:h).getElementsByTagName("root"))&&h.length>0?h[0]:null:null}; rE7=function(h){var W="";g.gX(h.childNodes,function(c){W+=c.nodeValue}); return W}; $V4=function(h){var W=window.location.search,c=g.E6(h);g.ZX("debug_handle_relative_url_for_query_forward_killswitch")||!c&&Wf(h)&&(c=document.location.hostname);var V=Rg(h);V=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&V&&V.startsWith("/api/");if(!c||V)return h;var H=gO(W),B={};g.gX(xVN,function(E){H[E]&&(B[E]=H[E])}); return hc(h,B)}; eO=function(h,W){var c=g.qx(W),V;return(new g.iZ(function(H,B){c.onSuccess=function(E){g.EB(E)?H(new lDT(E)):B(new ax("Request failed, status="+Bf(E),"net.badstatus",E))}; c.onError=function(E){B(new ax("Unknown request error","net.unknown",E))}; c.onTimeout=function(E){B(new ax("Request timed out","net.timeout",E))}; V=g.nb(h,c)})).Mv(function(H){if(H instanceof Fv){var B; (B=V)==null||B.abort()}return UL(H)})}; g.zN=function(h,W,c,V,H,B){function E(u,d,G){return u.Mv(function(Z){if(d<=0||Bf(Z.xhr)===403)return UL(new ax("Request retried too many times","net.retryexhausted",Z.xhr,Z));var r=Math.pow(2,c-d+1)*G,q=H>0?Math.min(H,r):r;return J(G).then(function(){B&&B(Z,d-1);return E(eO(h,W),d-1,q)})})} function J(u){return new g.iZ(function(d){setTimeout(d,u)})} H=H===void 0?-1:H;return E(eO(h,W),c-1,V)}; ax=function(h,W,c){qu.call(this,h+", errorCode="+W);this.errorCode=W;this.xhr=c;this.name="PromiseAjaxError"}; lDT=function(h){this.xhr=h}; Qn=function(h){this.X=h===void 0?null:h;this.G=0;this.W=null}; Lb=function(h){var W=new Qn;h=h===void 0?null:h;W.G=2;W.W=h===void 0?null:h;return W}; iW=function(h){var W=new Qn;h=h===void 0?null:h;W.G=1;W.W=h===void 0?null:h;return W}; g.UB=function(h,W,c,V,H){Kb||Ac.set(""+h,W,{b_:c,path:"/",domain:V===void 0?"youtube.com":V,secure:H===void 0?!1:H})}; g.Cb=function(h,W){if(!Kb)return Ac.get(""+h,W)}; g.MC=function(h,W,c){Kb||Ac.remove(""+h,W===void 0?"/":W,c===void 0?"youtube.com":c)}; nQv=function(){if(g.ZX("embeds_web_enable_cookie_detection_fix")){if(!g.k5.navigator.cookieEnabled)return!1}else if(!Ac.isEnabled())return!1;if(!Ac.isEmpty())return!0;g.ZX("embeds_web_enable_cookie_detection_fix")?Ac.set("TESTCOOKIESENABLED","1",{b_:60,FFn:"none",secure:!0}):Ac.set("TESTCOOKIESENABLED","1",{b_:60});if(Ac.get("TESTCOOKIESENABLED")!=="1")return!1;Ac.remove("TESTCOOKIESENABLED");return!0}; g.v=function(h,W){if(h)return h[W.name]}; FA=function(h){var W=g.X_("INNERTUBE_HOST_OVERRIDE");W&&(h=String(W)+String(JM(h)));return h}; j_D=function(h){var W={};g.ZX("json_condensed_response")&&(W.prettyPrint="false");return h=hc(h,W)}; yn=function(h,W){var c=c===void 0?{}:c;h={method:W===void 0?"POST":W,mode:Wf(h)?"same-origin":"cors",credentials:Wf(h)?"same-origin":"include"};W={};for(var V=g.e(Object.keys(c)),H=V.next();!H.done;H=V.next())H=H.value,c[H]&&(W[H]=c[H]);Object.keys(W).length>0&&(h.headers=W);return h}; Pf=function(){var h=/Chrome\/(\d+)/.exec(g.TF());return h?parseFloat(h[1]):NaN}; fb=function(){var h=/\sCobalt\/(\S+)\s/.exec(g.TF());if(!h)return NaN;var W=[];h=g.e(h[1].split("."));for(var c=h.next();!c.done;c=h.next())c=parseInt(c.value,10),c>=0&&W.push(c);return parseFloat(W.join("."))}; TN=function(){return g.bW("android")&&g.bW("chrome")&&!(g.bW("trident/")||g.bW("edge/"))&&!g.bW("cobalt")}; aDD=function(){return g.bW("armv7")||g.bW("aarch64")||g.bW("android")}; g.NC=function(){return g.bW("cobalt")}; XA=function(){return g.bW("cobalt")&&g.bW("appletv")}; tc=function(){return g.bW("(ps3; leanback shell)")||g.bW("ps3")&&g.NC()}; eu5=function(){return g.bW("(ps4; leanback shell)")||g.bW("ps4")&&g.NC()}; g.zuT=function(){return g.NC()&&(g.bW("ps4 vr")||g.bW("ps4 pro vr"))}; vf=function(){var h=/WebKit\/([0-9]+)/.exec(g.TF());return!!(h&&parseInt(h[1],10)>=600)}; mf=function(){var h=/WebKit\/([0-9]+)/.exec(g.TF());return!!(h&&parseInt(h[1],10)>=602)}; Q_h=function(){return g.bW("iemobile")||g.bW("windows phone")&&g.bW("edge")}; Ix=function(){return(ox||pb)&&g.bW("applewebkit")&&!g.bW("version")&&(!g.bW("safari")||g.bW("gsa/"))}; OB=function(){return g.Y2&&g.bW("version/")}; SO=function(){return g.bW("smart-tv")&&g.bW("samsung")}; g.bW=function(h){var W=g.TF();return W?W.toLowerCase().indexOf(h)>=0:!1}; gJ=function(){return B0p()||Ix()||OB()?!0:g.X_("EOM_VISITOR_DATA")?!1:!0}; DX=function(h,W){return W===void 0||W===null?h:W==="1"||W===!0||W===1||W==="True"?!0:!1}; wJ=function(h,W,c){for(var V in c)if(c[V]==W)return c[V];return h}; k2=function(h,W){return W===void 0||W===null?h:Number(W)}; hP=function(h,W){return W===void 0||W===null?h:W.toString()}; Wt=function(h,W){if(W){if(h==="fullwidth")return Infinity;if(h==="fullheight")return 0}return h&&(W=h.match(LVl))&&(h=Number(W[2]),W=Number(W[1]),!isNaN(h)&&!isNaN(W)&&h>0)?W/h:NaN}; ct=function(h){var W=h.docid||h.video_id||h.videoId||h.id;if(W)return W;W=h.raw_player_response;W||(h=h.player_response)&&(W=JSON.parse(h));return W&&W.videoDetails&&W.videoDetails.videoId||null}; ieL=function(h){return VY(h,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.$k=function(h){return h==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||h==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; VY=function(h,W){W=(W===void 0?0:W)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(W="EMBEDDED_PLAYER_MODE_PFL");var c=h.raw_embedded_player_response;if(!c&&(h=h.embedded_player_response))try{c=JSON.parse(h)}catch(V){return W}return c?wJ(W,c.embeddedPlayerMode,KVp):W}; Ht=function(h){qu.call(this,h.message||h.description||h.name);this.isMissing=h instanceof sh;this.isTimeout=h instanceof ax&&h.errorCode=="net.timeout";this.isCanceled=h instanceof Fv}; sh=function(){qu.call(this,"Biscotti ID is missing from server")}; AEL=function(){if(g.ZX("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!gJ())return Error("User has not consented - not fetching biscotti id.");var h=g.X_("PLAYER_VARS",{});if(g.Za(h,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(ieL(h))return Error("Biscotti id fetching has been disabled for pfl.")}; FVD=function(){var h=AEL();if(h!==void 0)return UL(h);Bt||(Bt=eO("//googleads.g.doubleclick.net/pagead/id",UVk).then(Cdp).Mv(function(W){return Mck(2,W)})); return Bt}; Cdp=function(h){h=h.xhr.responseText;if(!UO(h,")]}'"))throw new sh;h=JSON.parse(h.substr(4));if((h.type||1)>1)throw new sh;h=h.id;I95(h);Bt=iW(h);yE5(18E5,2);return h}; Mck=function(h,W){W=new Ht(W);I95("");Bt=Lb(W);h>0&&yE5(12E4,h-1);throw W;}; yE5=function(h,W){g.Rx(function(){eO("//googleads.g.doubleclick.net/pagead/id",UVk).then(Cdp,function(c){return Mck(W,c)}).Mv(g.FW)},h)}; Pdd=function(){try{var h=g.c2("yt.ads.biscotti.getId_");return h?h():FVD()}catch(W){return UL(W)}}; beN=function(h){h&&(h.dataset?h.dataset[fDv()]="true":VlD(h))}; TlN=function(h){return h?h.dataset?h.dataset[fDv()]:h.getAttribute("data-loaded"):null}; fDv=function(){return Nll.loaded||(Nll.loaded="loaded".replace(/\-([a-z])/g,function(h,W){return W.toUpperCase()}))}; X9D=function(){var h=document;if("visibilityState"in h)return h.visibilityState;var W=Eh+"VisibilityState";if(W in h)return h[W]}; RI=function(h,W){var c;tM(h,function(V){c=W[V];return!!c}); return c}; JP=function(h){if(h.requestFullscreen)h=h.requestFullscreen(void 0);else if(h.webkitRequestFullscreen)h=h.webkitRequestFullscreen();else if(h.mozRequestFullScreen)h=h.mozRequestFullScreen();else if(h.msRequestFullscreen)h=h.msRequestFullscreen();else if(h.webkitEnterFullscreen)h=h.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return h instanceof Promise?h:Promise.resolve()}; GR=function(h){var W;g.uL()?dQ()==h&&(W=document):W=h;return W&&(h=RI(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],W))?(W=h.call(W),W instanceof Promise?W:Promise.resolve()):Promise.resolve()}; tcN=function(h){return g.jl(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(W){return"on"+W.toLowerCase()in h})}; vQk=function(){var h=document;return g.jl(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(W){return"on"+W.toLowerCase()in h})}; g.uL=function(){return!!RI(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; dQ=function(h){h=h===void 0?!1:h;var W=RI(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(h)for(;W&&W.shadowRoot;)W=W.shadowRoot.fullscreenElement;return W?W:null}; ZL=function(h){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(h=h||window.event){this.event=h;for(var W in h)W in mV7||(this[W]=h[W]);this.scale=h.scale;this.rotation=h.rotation;var c=h.target||h.srcElement;c&&c.nodeType==3&&(c=c.parentNode);this.target=c;var V=h.relatedTarget; if(V)try{V=V.nodeName?V:null}catch(H){V=null}else this.type=="mouseover"?V=h.fromElement:this.type=="mouseout"&&(V=h.toElement);this.relatedTarget=V;this.clientX=h.clientX!=void 0?h.clientX:h.pageX;this.clientY=h.clientY!=void 0?h.clientY:h.pageY;this.keyCode=h.keyCode?h.keyCode:h.which;this.charCode=h.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=h.altKey;this.ctrlKey=h.ctrlKey;this.shiftKey=h.shiftKey;this.metaKey=h.metaKey;this.X=h.pageX;this.W=h.pageY}}catch(H){}}; oQ5=function(h){if(document.body&&document.documentElement){var W=document.body.scrollTop+document.documentElement.scrollTop;h.X=h.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);h.W=h.clientY+W}}; p9T=function(h,W,c,V){V=V===void 0?{}:V;h.addEventListener&&(W!="mouseenter"||"onmouseenter"in document?W!="mouseleave"||"onmouseenter"in document?W=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(W="MozMousePixelScroll"):W="mouseout":W="mouseover");return dj(rQ,function(H){var B=typeof H[4]==="boolean"&&H[4]==!!V,E=g.H2(H[4])&&g.H2(V)&&g.rj(H[4],V);return!!H.length&&H[0]==h&&H[1]==W&&H[2]==c&&(B||E)})}; g.qz=function(h,W,c,V){V=V===void 0?{}:V;if(!h||!h.addEventListener&&!h.attachEvent)return"";var H=p9T(h,W,c,V);if(H)return H;H=++IDl.count+"";var B=!(W!="mouseenter"&&W!="mouseleave"||!h.addEventListener||"onmouseenter"in document);var E=B?function(J){J=new ZL(J);if(!ek(J.relatedTarget,function(u){return u==h},!0))return J.currentTarget=h,J.type=W,c.call(h,J)}:function(J){J=new ZL(J); J.currentTarget=h;return c.call(h,J)}; E=g.IW(E);h.addEventListener?(W=="mouseenter"&&B?W="mouseover":W=="mouseleave"&&B?W="mouseout":W=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(W="MozMousePixelScroll"),YEp()||typeof V==="boolean"?h.addEventListener(W,E,V):h.addEventListener(W,E,!!V.capture)):h.attachEvent("on"+W,E);rQ[H]=[h,W,c,E,V];return H}; SEv=function(h){return OeL(h,function(W){return g.k$(W,"ytp-ad-has-logging-urls")})}; OeL=function(h,W){var c=document.body||document;return g.qz(c,"click",function(V){var H=ek(V.target,function(B){return B===c||W(B)},!0); H&&H!==c&&!H.disabled&&(V.currentTarget=H,h.call(H,V))})}; g.xk=function(h){h&&(typeof h=="string"&&(h=[h]),g.gX(h,function(W){if(W in rQ){var c=rQ[W],V=c[0],H=c[1],B=c[3];c=c[4];V.removeEventListener?YEp()||typeof c==="boolean"?V.removeEventListener(H,B,c):V.removeEventListener(H,B,!!c.capture):V.detachEvent&&V.detachEvent("on"+H,B);delete rQ[W]}}))}; lL=function(h){for(var W in rQ)rQ[W][0]==h&&g.xk(W)}; nS=function(h){h=h||window.event;var W;h.composedPath&&typeof h.composedPath==="function"?W=h.composedPath():W=h.path;W&&W.length?h=W[0]:(h=h||window.event,h=h.target||h.srcElement,h.nodeType==3&&(h=h.parentNode));return h}; jt=function(h){this.S=h;this.X=null;this.Y=0;this.N=null;this.C=0;this.W=[];for(h=0;h<4;h++)this.W.push(0);this.G=0;this.Wk=g.qz(window,"mousemove",(0,g.JS)(this.T,this));this.Z=g.Jc((0,g.JS)(this.XI,this),25)}; aI=function(h){g.N.call(this);this.S=[];this.hI=h||this}; et=function(h,W,c,V){for(var H=0;H0?c:0;c=V?Date.now()+V*1E3:0;if((V=V?(0,g.QY)():LS())&&window.JSON){typeof W!=="string"&&(W=JSON.stringify(W,void 0));try{V.set(h,W,c)}catch(H){V.remove(h)}}}; g.KS=function(h){var W=LS(),c=(0,g.QY)();if(!W&&!c||!window.JSON)return null;try{var V=W.get(h)}catch(H){}if(typeof V!=="string")try{V=c.get(h)}catch(H){}if(typeof V!=="string")return null;try{V=JSON.parse(V,void 0)}catch(H){}return V}; DVL=function(){var h=(0,g.QY)();if(h&&(h=h.W("yt-player-quality")))return h.creation}; g.AP=function(h){try{var W=LS(),c=(0,g.QY)();W&&W.remove(h);c&&c.remove(h)}catch(V){}}; g.Uh=function(){return g.KS("yt-remote-session-screen-id")}; w9p=function(h){var W=this;this.W=void 0;this.X=!1;h.addEventListener("beforeinstallprompt",function(c){c.preventDefault();W.W=c}); h.addEventListener("appinstalled",function(){W.X=!0},{once:!0})}; CS=function(){if(!g.k5.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.k5.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.k5.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.k5.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.k5.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(h){return"WEB_DISPLAY_MODE_UNKNOWN"}}; Mz=function(){this.ER=!0}; kTQ=function(){Mz.instance||(Mz.instance=new Mz);return Mz.instance}; h5p=function(h){switch(h){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}}; Ws7=function(){this.X=g.X_("ALT_PREF_COOKIE_NAME","PREF");this.W=g.X_("ALT_PREF_COOKIE_DOMAIN","youtube.com");var h=g.Cb(this.X);h&&this.parse(h)}; g.yY=function(){FR||(FR=new Ws7);return FR}; g.Pt=function(h,W){return!!((cjT("f"+(Math.floor(W/31)+1))||0)&1<0;)switch(h=$4.shift(),h.type){case "ERROR":hZ.gi(h.payload);break;case "EVENT":hZ.logEvent(h.eventType,h.payload)}}; Hp=function(h){sG||(hZ?hZ.gi(h):($4.push({type:"ERROR",payload:h}),$4.length>10&&$4.shift()))}; Bp=function(h,W){sG||(hZ?hZ.logEvent(h,W):($4.push({type:"EVENT",eventType:h,payload:W}),$4.length>10&&$4.shift()))}; EG=function(h){if(h.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; RC=function(h){return h.substr(0,h.indexOf(":"))||h}; g.JZ=function(h,W,c,V,H){W=W===void 0?{}:W;c=c===void 0?Jj5[h]:c;V=V===void 0?udd[h]:V;H=H===void 0?df5[h]:H;g.tP.call(this,c,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:h},W));this.type=h;this.message=c;this.level=V;this.X=H;Object.setPrototypeOf(this,g.JZ.prototype)}; uC=function(h,W){g.JZ.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:W,foundObjectStores:h},Jj5.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,uC.prototype)}; dw=function(h,W){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.index=h;this.objectStore=W;Object.setPrototypeOf(this,dw.prototype)}; Zu=function(h,W,c,V){W=RC(W);var H=h instanceof Error?h:Error("Unexpected error: "+h);if(H instanceof g.JZ)return H;h={objectStoreNames:c,dbName:W,dbVersion:V};if(H.name==="QuotaExceededError")return new g.JZ("QUOTA_EXCEEDED",h);if(g.G1&&H.name==="UnknownError")return new g.JZ("QUOTA_MAYBE_EXCEEDED",h);if(H instanceof dw)return new g.JZ("MISSING_INDEX",Object.assign({},h,{objectStore:H.objectStore,index:H.index}));if(H.name==="InvalidStateError"&&Gi4.some(function(B){return H.message.includes(B)}))return new g.JZ("EXECUTE_TRANSACTION_ON_CLOSED_DB", h); if(H.name==="AbortError")return new g.JZ("UNKNOWN_ABORT",h,H.message);H.args=[Object.assign({},h,{name:"IdbError",Mw:H.name})];H.level="WARNING";return H}; g.rw=function(h,W,c){var V=kk();return new g.JZ("IDB_NOT_SUPPORTED",{context:{caller:h,publicName:W,version:c,hasSucceededOnce:V==null?void 0:V.hasSucceededOnce}})}; ZOh=function(h){if(!h)throw Error();throw h;}; rjp=function(h){return h}; qv=function(h){this.X=h}; g.x4=function(h){function W(H){if(V.state.status==="PENDING"){V.state={status:"REJECTED",reason:H};H=g.e(V.W);for(var B=H.next();!B.done;B=H.next())B=B.value,B()}} function c(H){if(V.state.status==="PENDING"){V.state={status:"FULFILLED",value:H};H=g.e(V.X);for(var B=H.next();!B.done;B=H.next())B=B.value,B()}} var V=this;this.state={status:"PENDING"};this.X=[];this.W=[];h=h.X;try{h(c,W)}catch(H){W(H)}}; q5h=function(h,W,c,V,H){try{if(h.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var B=c(h.state.value);B instanceof g.x4?lC(h,W,B,V,H):V(B)}catch(E){H(E)}}; xf7=function(h,W,c,V,H){try{if(h.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var B=c(h.state.reason);B instanceof g.x4?lC(h,W,B,V,H):V(B)}catch(E){H(E)}}; lC=function(h,W,c,V,H){W===c?H(new TypeError("Circular promise chain detected.")):c.then(function(B){B instanceof g.x4?lC(h,W,B,V,H):V(B)},function(B){H(B)})}; ly5=function(h,W,c){function V(){c(h.error);B()} function H(){W(h.result);B()} function B(){try{h.removeEventListener("success",H),h.removeEventListener("error",V)}catch(E){}} h.addEventListener("success",H);h.addEventListener("error",V)}; n$4=function(h){return new Promise(function(W,c){ly5(h,W,c)})}; ng=function(h){return new g.x4(new qv(function(W,c){ly5(h,W,c)}))}; jP=function(h,W){return new g.x4(new qv(function(c,V){function H(){var B=h?W(h):null;B?B.then(function(E){h=E;H()},V):c()} H()}))}; jD5=function(h,W){this.request=h;this.cursor=W}; ayd=function(h){return ng(h).then(function(W){return W?new jD5(h,W):null})}; g.e5k=function(h){h.cursor.continue(void 0);return ayd(h.request)}; z55=function(h,W){this.X=h;this.options=W;this.transactionCount=0;this.G=Math.round((0,g.aC)());this.W=!1}; g.z1=function(h,W,c){h=h.X.createObjectStore(W,c);return new eP(h)}; Q5=function(h,W){h.X.objectStoreNames.contains(W)&&h.X.deleteObjectStore(W)}; g.Kg=function(h,W,c){return g.Lg(h,[W],{mode:"readwrite",nJ:!0},function(V){return g.iC(V.objectStore(W),c)})}; g.Lg=function(h,W,c,V){var H,B,E,J,u,d,G,Z,r,q,x,z;return g.P(function(L){switch(L.W){case 1:var M={mode:"readonly",nJ:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof c==="string"?M.mode=c:Object.assign(M,c);H=M;h.transactionCount++;B=H.nJ?3:1;E=0;case 2:if(J){L.bB(4);break}E++;u=Math.round((0,g.aC)());g.Qp(L,5);d=h.X.transaction(W,H.mode);M=new AZ(d);M=QD7(M,V);return g.F(L,M,7);case 7:return G=L.X,Z=Math.round((0,g.aC)()),Lsl(h,u,Z,E,void 0,W.join(),H),L.return(G);case 5:r=g.CU(L);q=Math.round((0,g.aC)()); x=Zu(r,h.X.name,W.join(),h.X.version);if((z=x instanceof g.JZ&&!x.X)||E>=B)Lsl(h,u,q,E,x,W.join(),H),J=x;L.bB(2);break;case 4:return L.return(Promise.reject(J))}})}; Lsl=function(h,W,c,V,H,B,E){W=c-W;H?(H instanceof g.JZ&&(H.type==="QUOTA_EXCEEDED"||H.type==="QUOTA_MAYBE_EXCEEDED")&&Bp("QUOTA_EXCEEDED",{dbName:RC(h.X.name),objectStoreNames:B,transactionCount:h.transactionCount,transactionMode:E.mode}),H instanceof g.JZ&&H.type==="UNKNOWN_ABORT"&&(c-=h.G,c<0&&c>=2147483648&&(c=0),Bp("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:B,transactionDuration:W,transactionCount:h.transactionCount,dbDuration:c}),h.W=!0),iOh(h,!1,V,B,W,E.tag),Hp(H)):iOh(h,!0,V,B,W, E.tag)}; iOh=function(h,W,c,V,H,B){Bp("TRANSACTION_ENDED",{objectStoreNames:V,connectionHasUnknownAbortedTransaction:h.W,duration:H,isSuccessful:W,tryCount:c,tag:B===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":B})}; eP=function(h){this.X=h}; g.UG=function(h,W,c){h.X.createIndex(W,c,{unique:!1})}; KsQ=function(h,W){return g.Cg(h,{query:W},function(c){return c.delete().then(function(){return g.Mv(c)})}).then(function(){})}; Aj4=function(h,W,c){var V=[];return g.Cg(h,{query:W},function(H){if(!(c!==void 0&&V.length>=c))return V.push(H.getValue()),g.Mv(H)}).then(function(){return V})}; CeD=function(h){return"getAllKeys"in IDBObjectStore.prototype?ng(h.X.getAllKeys(void 0,void 0)):Ufd(h)}; Ufd=function(h){var W=[];return g.MEv(h,{query:void 0},function(c){W.push(c.cursor.primaryKey);return g.e5k(c)}).then(function(){return W})}; g.iC=function(h,W,c){return ng(h.X.put(W,c))}; g.Cg=function(h,W,c){h=h.X.openCursor(W.query,W.direction);return FJ(h).then(function(V){return jP(V,c)})}; g.MEv=function(h,W,c){var V=W.query;W=W.direction;h="openKeyCursor"in IDBObjectStore.prototype?h.X.openKeyCursor(V,W):h.X.openCursor(V,W);return ayd(h).then(function(H){return jP(H,c)})}; AZ=function(h){var W=this;this.X=h;this.G=new Map;this.W=!1;this.done=new Promise(function(c,V){W.X.addEventListener("complete",function(){c()}); W.X.addEventListener("error",function(H){H.currentTarget===H.target&&V(W.X.error)}); W.X.addEventListener("abort",function(){var H=W.X.error;if(H)V(H);else if(!W.W){H=g.JZ;for(var B=W.X.objectStoreNames,E=[],J=0;J=c))return V.push(H.getValue()),g.Mv(H)}).then(function(){return V})}; g.y5=function(h,W,c){h=h.X.openCursor(W.query===void 0?null:W.query,W.direction===void 0?"next":W.direction);return FJ(h).then(function(V){return jP(V,c)})}; Pp=function(h,W){this.request=h;this.cursor=W}; FJ=function(h){return ng(h).then(function(W){return W?new Pp(h,W):null})}; g.Mv=function(h){h.cursor.continue(void 0);return FJ(h.request)}; Pe4=function(h,W,c){return new Promise(function(V,H){function B(){r||(r=new z55(E.result,{closed:Z}));return r} var E=W!==void 0?self.indexedDB.open(h,W):self.indexedDB.open(h);var J=c.blocked,u=c.blocking,d=c.gxM,G=c.upgrade,Z=c.closed,r;E.addEventListener("upgradeneeded",function(q){try{if(q.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(E.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");q.dataLoss&&q.dataLoss!=="none"&&Bp("IDB_DATA_CORRUPTED",{reason:q.dataLossMessage||"unknown reason",dbName:RC(h)});var x=B(),z=new AZ(E.transaction); G&&G(x,function(L){return q.oldVersion=L},z); z.done.catch(function(L){H(L)})}catch(L){H(L)}}); E.addEventListener("success",function(){var q=E.result;u&&q.addEventListener("versionchange",function(){u(B())}); q.addEventListener("close",function(){Bp("IDB_UNEXPECTEDLY_CLOSED",{dbName:RC(h),dbVersion:q.version});d&&d()}); V(B())}); E.addEventListener("error",function(){H(E.error)}); J&&E.addEventListener("blocked",function(){J()})})}; fyD=function(h,W,c){c=c===void 0?{}:c;return Pe4(h,W,c)}; fg=function(h,W){W=W===void 0?{}:W;var c,V,H,B;return g.P(function(E){if(E.W==1)return g.Qp(E,2),c=self.indexedDB.deleteDatabase(h),V=W,(H=V.blocked)&&c.addEventListener("blocked",function(){H()}),g.F(E,n$4(c),4); if(E.W!=2)return g.AN(E,0);B=g.CU(E);throw Zu(B,h,"",-1);})}; bC=function(h,W){this.name=h;this.options=W;this.G=!0;this.C=this.Y=0}; bOk=function(h,W){return new g.JZ("INCOMPATIBLE_DB_VERSION",{dbName:h.name,oldVersion:h.options.version,newVersion:W})}; g.T1=function(h,W){if(!W)throw g.rw("openWithToken",RC(h.name));return h.open()}; THh=function(h,W){var c;return g.P(function(V){if(V.W==1)return g.F(V,g.T1(Nv,W),2);c=V.X;return V.return(g.Lg(c,["databases"],{nJ:!0,mode:"readwrite"},function(H){var B=H.objectStore("databases");return B.get(h.actualName).then(function(E){if(E?h.actualName!==E.actualName||h.publicName!==E.publicName||h.userIdentifier!==E.userIdentifier:1)return g.iC(B,h).then(function(){})})}))})}; XJ=function(h,W){var c;return g.P(function(V){if(V.W==1)return h?g.F(V,g.T1(Nv,W),2):V.return();c=V.X;return V.return(c.delete("databases",h))})}; NHk=function(h,W){var c,V;return g.P(function(H){return H.W==1?(c=[],g.F(H,g.T1(Nv,W),2)):H.W!=3?(V=H.X,g.F(H,g.Lg(V,["databases"],{nJ:!0,mode:"readonly"},function(B){c.length=0;return g.Cg(B.objectStore("databases"),{},function(E){h(E.getValue())&&c.push(E.getValue());return g.Mv(E)})}),3)):H.return(c)})}; XyD=function(h,W){return NHk(function(c){return c.publicName===h&&c.userIdentifier!==void 0},W)}; tET=function(){var h,W,c,V;return g.P(function(H){switch(H.W){case 1:h=kk();if((W=h)==null?0:W.hasSucceededOnce)return H.return(!0);if(tZ&&vf()&&!mf()||g.vp)return H.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return H.return(!1)}catch(B){return H.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return H.return(!1);g.Qp(H,2);V={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.F(H,THh(V,m6),4);case 4:return g.F(H,XJ("yt-idb-test-do-not-use",m6),5);case 5:return H.return(!0);case 2:return g.CU(H),H.return(!1)}})}; v$l=function(){if(oC!==void 0)return oC;sG=!0;return oC=tET().then(function(h){sG=!1;var W;if((W=wQ())!=null&&W.X){var c;W={hasSucceededOnce:((c=kk())==null?void 0:c.hasSucceededOnce)||h};var V;(V=wQ())==null||V.set("LAST_RESULT_ENTRY_KEY",W,2592E3,!0)}return h})}; pg=function(){return g.c2("ytglobal.idbToken_")||void 0}; g.IC=function(){var h=pg();return h?Promise.resolve(h):v$l().then(function(W){(W=W?m6:void 0)&&g.hS("ytglobal.idbToken_",W);return W})}; mf7=function(h){if(!g.m1())throw h=new g.JZ("AUTH_INVALID",{dbName:h}),Hp(h),h;var W=g.vt();return{actualName:h+":"+W,publicName:h,userIdentifier:W}}; o$D=function(h,W,c,V){var H,B,E,J,u,d;return g.P(function(G){switch(G.W){case 1:return B=(H=Error().stack)!=null?H:"",g.F(G,g.IC(),2);case 2:E=G.X;if(!E)throw J=g.rw("openDbImpl",h,W),g.ZX("ytidb_async_stack_killswitch")||(J.stack=J.stack+"\n"+B.substring(B.indexOf("\n")+1)),Hp(J),J;EG(h);u=c?{actualName:h,publicName:h,userIdentifier:void 0}:mf7(h);g.Qp(G,3);return g.F(G,THh(u,E),5);case 5:return g.F(G,fyD(u.actualName,W,V),6);case 6:return G.return(G.X);case 3:return d=g.CU(G),g.Qp(G,7),g.F(G,XJ(u.actualName, E),9);case 9:g.AN(G,8);break;case 7:g.CU(G);case 8:throw d;}})}; pyU=function(h,W,c){c=c===void 0?{}:c;return o$D(h,W,!1,c)}; Iyv=function(h,W,c){c=c===void 0?{}:c;return o$D(h,W,!0,c)}; Y5d=function(h,W){W=W===void 0?{}:W;var c,V;return g.P(function(H){if(H.W==1)return g.F(H,g.IC(),2);if(H.W!=3){c=H.X;if(!c)return H.return();EG(h);V=mf7(h);return g.F(H,fg(V.actualName,W),3)}return g.F(H,XJ(V.actualName,c),0)})}; OOU=function(h,W,c){h=h.map(function(V){return g.P(function(H){return H.W==1?g.F(H,fg(V.actualName,W),2):g.F(H,XJ(V.actualName,c),0)})}); return Promise.all(h).then(function(){})}; S55=function(h){var W=W===void 0?{}:W;var c,V;return g.P(function(H){if(H.W==1)return g.F(H,g.IC(),2);if(H.W!=3){c=H.X;if(!c)return H.return();EG(h);return g.F(H,XyD(h,c),3)}V=H.X;return g.F(H,OOU(V,W,c),0)})}; g$7=function(h,W){W=W===void 0?{}:W;var c;return g.P(function(V){if(V.W==1)return g.F(V,g.IC(),2);if(V.W!=3){c=V.X;if(!c)return V.return();EG(h);return g.F(V,fg(h,W),3)}return g.F(V,XJ(h,c),0)})}; Y4=function(h,W){bC.call(this,h,W);this.options=W;EG(h)}; Df7=function(h,W){var c;return function(){c||(c=new Y4(h,W));return c}}; g.OG=function(h,W){return Df7(h,W)}; SP=function(h){return g.T1(wyl(),h)}; kiv=function(h,W,c,V){var H,B,E;return g.P(function(J){switch(J.W){case 1:return H={config:h,hashData:W,timestamp:V!==void 0?V:(0,g.aC)()},g.F(J,SP(c),2);case 2:return B=J.X,g.F(J,B.clear("hotConfigStore"),3);case 3:return g.F(J,g.Kg(B,"hotConfigStore",H),4);case 4:return E=J.X,J.return(E)}})}; hp7=function(h,W,c,V,H){var B,E,J;return g.P(function(u){switch(u.W){case 1:return B={config:h,hashData:W,configData:c,timestamp:H!==void 0?H:(0,g.aC)()},g.F(u,SP(V),2);case 2:return E=u.X,g.F(u,E.clear("coldConfigStore"),3);case 3:return g.F(u,g.Kg(E,"coldConfigStore",B),4);case 4:return J=u.X,u.return(J)}})}; WWN=function(h){var W,c;return g.P(function(V){return V.W==1?g.F(V,SP(h),2):V.W!=3?(W=V.X,c=void 0,g.F(V,g.Lg(W,["coldConfigStore"],{mode:"readwrite",nJ:!0},function(H){return g.y5(H.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(B){c=B.getValue()})}),3)):V.return(c)})}; ceQ=function(h){var W,c;return g.P(function(V){return V.W==1?g.F(V,SP(h),2):V.W!=3?(W=V.X,c=void 0,g.F(V,g.Lg(W,["hotConfigStore"],{mode:"readwrite",nJ:!0},function(H){return g.y5(H.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(B){c=B.getValue()})}),3)):V.return(c)})}; VQd=function(){return g.P(function(h){return g.F(h,S55("ytGcfConfig"),0)})}; gw=function(){g.N.call(this);this.W=[];this.X=[];var h=g.c2("yt.gcf.config.hotUpdateCallbacks");h?(this.W=[].concat(g.rN(h)),this.X=h):(this.X=[],g.hS("yt.gcf.config.hotUpdateCallbacks",this.X))}; cY=function(){var h=this;this.C=!1;this.G=this.Y=0;this.N=new gw;this.uX={Mg9:function(){h.C=!0}, Itn:function(){return h.X}, lik:function(W){Du(h,W)}, WU:function(W){h.WU(W)}, V0O:function(W){ww(h,W)}, B1:function(){return h.coldHashData}, uS:function(){return h.hotHashData}, XGO:function(){return h.W}, EgV:function(){return k4()}, TZg:function(){return hL()}, VbI:function(){return g.c2("yt.gcf.config.coldHashData")}, AoM:function(){return g.c2("yt.gcf.config.hotHashData")}, Nfk:function(){$MQ(h)}, I5N:function(){h.WU(void 0);WY(h);delete cY.instance}, Otn:function(W){h.G=W}, phM:function(){return h.G}}}; sr5=function(){if(!cY.instance){var h=new cY;cY.instance=h}return cY.instance}; Ey5=function(h){var W;g.P(function(c){if(c.W==1)return g.ZX("start_client_gcf")||g.ZX("delete_gcf_config_db")?g.ZX("start_client_gcf")?g.F(c,g.IC(),3):c.bB(2):c.return();c.W!=2&&((W=c.X)&&g.m1()&&!g.ZX("delete_gcf_config_db")?(h.C=!0,$MQ(h)):(HcU(h),BSh(h)));return g.ZX("delete_gcf_config_db")?g.F(c,VQd(),0):c.bB(0)})}; V2=function(){var h;return(h=hL())!=null?h:g.X_("RAW_HOT_CONFIG_GROUP")}; RpD=function(h){var W,c,V,H,B,E;return g.P(function(J){switch(J.W){case 1:if(h.W)return J.return(hL());if(!h.C)return W=g.rw("getHotConfig IDB not initialized"),YZ(W),J.return(Promise.reject(W));c=pg();V=g.X_("TIME_CREATED_MS");if(!c){H=g.rw("getHotConfig token error");YZ(H);J.bB(2);break}return g.F(J,ceQ(c),3);case 3:if((B=J.X)&&B.timestamp>V)return Du(h,B.config),h.WU(B.hashData),J.return(hL());case 2:BSh(h);if(!(c&&h.W&&h.hotHashData)){J.bB(4);break}return g.F(J,kiv(h.W,h.hotHashData,c,V),4);case 4:return h.W? J.return(hL()):(E=new g.tP("Config not available in ytConfig"),YZ(E),J.return(Promise.reject(E)))}})}; uSU=function(h){var W,c,V,H,B,E;return g.P(function(J){switch(J.W){case 1:if(h.X)return J.return(k4());if(!h.C)return W=g.rw("getColdConfig IDB not initialized"),YZ(W),J.return(Promise.reject(W));c=pg();V=g.X_("TIME_CREATED_MS");if(!c){H=g.rw("getColdConfig");YZ(H);J.bB(2);break}return g.F(J,WWN(c),3);case 3:if((B=J.X)&&B.timestamp>V)return ww(h,B.config),Jeh(h,B.configData),WY(h,B.hashData),J.return(k4());case 2:HcU(h);if(!(c&&h.X&&h.coldHashData&&h.configData)){J.bB(4);break}return g.F(J,hp7(h.X, h.coldHashData,h.configData,c,V),4);case 4:return h.X?J.return(k4()):(E=new g.tP("Config not available in ytConfig"),YZ(E),J.return(Promise.reject(E)))}})}; $MQ=function(h){if(!h.W||!h.X){if(!pg()){var W=g.rw("scheduleGetConfigs");YZ(W)}h.Y||(h.Y=g.Py.rp(function(){return g.P(function(c){switch(c.W){case 1:return g.Qp(c,2),g.F(c,RpD(h),4);case 4:g.AN(c,3);break;case 2:g.CU(c);case 3:return g.Qp(c,5),g.F(c,uSU(h),7);case 7:g.AN(c,6);break;case 5:g.CU(c);case 6:h.Y&&(h.Y=0),g.zQ(c)}})},100))}}; dMU=function(h,W,c){var V,H,B;return g.P(function(E){switch(E.W){case 1:if(!g.ZX("start_client_gcf")){E.bB(0);break}c&&Du(h,c);h.WU(W);V=pg();if(!V){E.bB(3);break}if(c){E.bB(4);break}return g.F(E,ceQ(V),5);case 5:H=E.X,c=(B=H)==null?void 0:B.config;case 4:return g.F(E,kiv(c,W,V),3);case 3:if(c)for(var J=c,u=g.e(h.N.X),d=u.next();!d.done;d=u.next())d=d.value,d(J);g.zQ(E)}})}; G$p=function(h,W,c){var V,H,B,E;return g.P(function(J){if(J.W==1){if(!g.ZX("start_client_gcf"))return J.bB(0);WY(h,W);return(V=pg())?c?J.bB(4):g.F(J,WWN(V),5):J.bB(0)}J.W!=4&&(H=J.X,c=(B=H)==null?void 0:B.config);if(!c)return J.bB(0);E=c.configData;return g.F(J,hp7(c,W,E,V),0)})}; ZcN=function(){var h=sr5(),W=(0,g.aC)()-h.G;if(!(h.G!==0&&W0&&(W.request={internalExperimentFlags:c});qbk(h,void 0,W);xMD(void 0,W);l_d(void 0,W);nyv(h,void 0,W);jr5(void 0,W);g.ZX("start_client_gcf")&&a_p(void 0,W);g.X_("DELEGATED_SESSION_ID")&& !g.ZX("pageid_as_header_web")&&(W.user={onBehalfOfUser:g.X_("DELEGATED_SESSION_ID")});!g.ZX("fill_delegate_context_in_gel_killswitch")&&(h=g.X_("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(W.user=Object.assign({},W.user,{serializedDelegationContext:h}));h=g.X_("INNERTUBE_CONTEXT");var V;if(g.ZX("enable_persistent_device_token")&&(h==null?0:(V=h.client)==null?0:V.rolloutToken)){var H;W.client.rolloutToken=h==null?void 0:(H=h.client)==null?void 0:H.rolloutToken}V=Object;H=V.assign;h=W.client; c={};for(var B=g.e(Object.entries(gO(g.X_("DEVICE","")))),E=B.next();!E.done;E=B.next()){var J=g.e(E.value);E=J.next().value;J=J.next().value;E==="cbrand"?c.deviceMake=J:E==="cmodel"?c.deviceModel=J:E==="cbr"?c.browserName=J:E==="cbrver"?c.browserVersion=J:E==="cos"?c.osName=J:E==="cosver"?c.osVersion=J:E==="cplatform"&&(c.platform=J)}W.client=H.call(V,h,c);return W}; qbk=function(h,W,c){h=h.LV;if(h==="WEB"||h==="MWEB"||h===1||h===2)if(W){c=xL(W,en,96)||new en;var V=CS();V=Object.keys(epd).indexOf(V);V=V===-1?null:V;V!==null&&f7(c,3,V);n7(W,en,96,c)}else c&&(c.client.mainAppWebInfo=(V=c.client.mainAppWebInfo)!=null?V:{},c.client.mainAppWebInfo.webDisplayMode=CS())}; xMD=function(h,W){var c=g.c2("yt.embedded_player.embed_url");c&&(h?(W=xL(h,Ku,7)||new Ku,y7(W,4,c),n7(h,Ku,7,W)):W&&(W.thirdParty={embedUrl:c}))}; l_d=function(h,W){var c;if(g.ZX("web_log_memory_total_kbytes")&&((c=g.k5.navigator)==null?0:c.deviceMemory)){var V;c=(V=g.k5.navigator)==null?void 0:V.deviceMemory;h?k3(h,95,aK(c*1E6)):W&&(W.client.memoryTotalKbytes=""+c*1E6)}}; nyv=function(h,W,c){if(h.appInstallData)if(W){var V;c=(V=xL(W,aW,62))!=null?V:new aW;y7(c,6,h.appInstallData);n7(W,aW,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=h.appInstallData)}; jr5=function(h,W){var c=sDN();c&&(h?f7(h,61,zpN[c]):W&&(W.client.connectionType=c));g.ZX("web_log_effective_connection_type")&&(c=BHl())&&(h?f7(h,94,Qrl[c]):W&&(W.client.effectiveConnectionType=c))}; LW5=function(h,W,c){c=c===void 0?{}:c;var V={};g.X_("EOM_VISITOR_DATA")?V={"X-Goog-EOM-Visitor-Id":g.X_("EOM_VISITOR_DATA")}:V={"X-Goog-Visitor-Id":c.visitorData||g.X_("VISITOR_DATA","")};if(W&&W.includes("www.youtube-nocookie.com"))return V;W=c.LB||g.X_("AUTHORIZATION");W||(h?W="Bearer "+g.c2("gapi.auth.getToken")().access_token:(h=kTQ().VQ(BY),g.ZX("pageid_as_header_web")||delete h["X-Goog-PageId"],V=Object.assign({},V,h)));W&&(V.Authorization=W);return V}; a_p=function(h,W){var c=ZcN();if(c){var V=c.coldConfigData,H=c.coldHashData;c=c.hotHashData;if(h){var B;W=(B=xL(h,aW,62))!=null?B:new aW;V=y7(W,1,V);y7(V,3,H).WU(c);n7(h,aW,62,W)}else W&&(W.client.configInfo=W.client.configInfo||{},V&&(W.client.configInfo.coldConfigData=V),H&&(W.client.configInfo.coldHashData=H),c&&(W.client.configInfo.hotHashData=c))}}; Er=function(h,W){this.version=h;this.args=W}; RS=function(h,W){this.topic=h;this.X=W}; uq=function(h,W){var c=JL();c&&c.publish.call(c,h.toString(),h,W)}; AeU=function(h){var W=icN,c=JL();if(!c)return 0;var V=c.subscribe(W.toString(),function(H,B){var E=g.c2("ytPubsub2Pubsub2SkipSubKey");E&&E==V||(E=function(){if(dI[V])try{if(B&&W instanceof RS&&W!=H)try{var J=W.X,u=B;if(!u.args||!u.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!J.Zo){var d=new J;J.Zo=d.version}var G=J.Zo}catch(Z){}if(!G||u.version!=G)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{B=Reflect.construct(J, g.Mu(u.args))}catch(Z){throw Z.message="yt.pubsub2.Data.deserialize(): "+Z.message,Z;}}catch(Z){throw Z.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+W.toString()+": "+Z.message,Z;}h.call(window,B)}catch(Z){g.pu(Z)}},KWD[W.toString()]?g.St()?g.Py.rp(E):g.Rx(E,0):E())}); dI[V]=!0;GZ[W.toString()]||(GZ[W.toString()]=[]);GZ[W.toString()].push(V);return V}; MQv=function(){var h=UMv,W=AeU(function(c){h.apply(void 0,arguments);C2h(W)}); return W}; C2h=function(h){var W=JL();W&&(typeof h==="number"&&(h=[h]),g.gX(h,function(c){W.unsubscribeByKey(c);delete dI[c]}))}; JL=function(){return g.c2("ytPubsub2Pubsub2Instance")}; Z8=function(h,W,c){c=c===void 0?{sampleRate:.1}:c;Math.random()TSv||E=vy4&&(Q2++,g.ZX("abandon_compression_after_N_slow_zips")?zZ===g.rJ("compression_disable_point")&&Q2>mMN&&(j5=!1):j5=!1);oyl(W);V.headers||(V.headers={});V.headers["Content-Encoding"]="gzip";V.postBody=h;V.postParams=void 0;H(c,V)}; pDp=function(h){var W=W===void 0?!1:W;var c=c===void 0?!1:c;var V=(0,g.aC)(),H={startTime:V,ticks:{},infos:{}},B=W?g.c2("yt.logging.gzipForFetch",!1):!0;if(j5&&B){if(!h.body)return h;try{var E=c?h.body:typeof h.body==="string"?h.body:JSON.stringify(h.body);B=E;if(!c&&typeof E==="string"){var J=bc7(E);if(J!=null&&(J>TSv||J=vy4)if(Q2++,g.ZX("abandon_compression_after_N_slow_zips")||g.ZX("abandon_compression_after_N_slow_zips_lr")){W=Q2/zZ;var d=mMN/g.rJ("compression_disable_point");zZ>0&&zZ%g.rJ("compression_disable_point")===0&&W>=d&&(j5=!1)}else j5=!1;oyl(H)}}h.headers=Object.assign({},{"Content-Encoding":"gzip"},h.headers||{});h.body=B;return h}catch(G){return YZ(G),h}}else return h}; bc7=function(h){try{return(new Blob(h.split(""))).size}catch(W){return YZ(W),null}}; oyl=function(h){g.ZX("gel_compression_csi_killswitch")||!g.ZX("log_gel_compression_latency")&&!g.ZX("log_gel_compression_latency_lr")||Z8("gel_compression",h,{sampleRate:.1})}; iq=function(h){var W=this;this.ib=this.X=!1;this.potentialEsfErrorCounter=this.W=0;this.handleError=function(){}; this.RC=function(){}; this.now=Date.now;this.Rk=!1;this.uX={AZk:function(G){W.r3=G}, HvH:function(){W.mw()}, WL:function(){W.wd()}, oh:function(G){return g.P(function(Z){return g.F(Z,W.oh(G),0)})}, CK:function(G,Z){return W.CK(G,Z)}, q0:function(){W.q0()}}; var c;this.OR=(c=h.OR)!=null?c:100;var V;this.wz=(V=h.wz)!=null?V:1;var H;this.xp=(H=h.xp)!=null?H:2592E6;var B;this.oM=(B=h.oM)!=null?B:12E4;var E;this.O$=(E=h.O$)!=null?E:5E3;var J;this.r3=(J=h.r3)!=null?J:void 0;this.Dj=!!h.Dj;var u;this.Vv=(u=h.Vv)!=null?u:.1;var d;this.W4=(d=h.W4)!=null?d:10;h.handleError&&(this.handleError=h.handleError);h.RC&&(this.RC=h.RC);h.Rk&&(this.Rk=h.Rk);h.ib&&(this.ib=h.ib);this.xN=h.xN;this.yN=h.yN;this.oF=h.oF;this.D1=h.D1;this.sendFn=h.sendFn;this.QW=h.QW;this.n6= h.n6;Lj(this)&&(!this.xN||this.xN("networkless_logging"))&&I_v(this)}; I_v=function(h){Lj(h)&&!h.Rk&&(h.X=!0,h.Dj&&Math.random()<=h.Vv&&h.oF.PL(h.r3),h.q0(),h.D1.zj()&&h.mw(),h.D1.listen(h.QW,h.mw.bind(h)),h.D1.listen(h.n6,h.wd.bind(h)))}; Sbh=function(h,W){if(!Lj(h))throw Error("IndexedDB is not supported: updateRequestHandlers");var c=W.options.onError?W.options.onError:function(){}; W.options.onError=function(H,B){var E,J,u,d;return g.P(function(G){switch(G.W){case 1:E=Yb5(B);(J=OcQ(B))&&h.xN&&h.xN("web_enable_error_204")&&h.handleError(Error("Request failed due to compression"),W.url,B);if(!(h.xN&&h.xN("nwl_consider_error_code")&&E||h.xN&&!h.xN("nwl_consider_error_code")&&h.potentialEsfErrorCounter<=h.W4)){G.bB(2);break}if(!h.D1.iy){G.bB(3);break}return g.F(G,h.D1.iy(),3);case 3:if(h.D1.zj()){G.bB(2);break}c(H,B);if(!h.xN||!h.xN("nwl_consider_error_code")||((u=W)==null?void 0: u.id)===void 0){G.bB(6);break}return g.F(G,h.oF.ws(W.id,h.r3,!1),6);case 6:return G.return();case 2:if(h.xN&&h.xN("nwl_consider_error_code")&&!E&&h.potentialEsfErrorCounter>h.W4)return G.return();h.potentialEsfErrorCounter++;if(((d=W)==null?void 0:d.id)===void 0){G.bB(8);break}return W.sendCount=400&&h<=599?!1:!0}; OcQ=function(h){var W;h=h==null?void 0:(W=h.error)==null?void 0:W.code;return!(h!==400&&h!==415)}; gyh=function(){if(AL)return AL();var h={};AL=g.OG("LogsDatabaseV2",{iP:(h.LogsRequestsStore={vp:2},h),shared:!1,upgrade:function(W,c,V){c(2)&&g.z1(W,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(V=V.objectStore("LogsRequestsStore"),V.X.indexNames.contains("newRequest")&&V.X.deleteIndex("newRequest"),g.UG(V,"newRequestV2",["status","interface","timestamp"]));c(7)&&Q5(W,"sapisid");c(9)&&Q5(W,"SWHealthLog")}, version:9});return AL()}; Ur=function(h){return g.T1(gyh(),h)}; wDL=function(h,W){var c,V,H,B;return g.P(function(E){if(E.W==1)return c={startTime:(0,g.aC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.F(E,Ur(W),2);if(E.W!=3)return V=E.X,H=Object.assign({},h,{options:JSON.parse(JSON.stringify(h.options)),interface:g.X_("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.F(E,g.Kg(V,"LogsRequestsStore",H),3);B=E.X;c.ticks.tc=(0,g.aC)();DMN(c);return E.return(B)})}; k$Q=function(h,W){var c,V,H,B,E,J,u,d;return g.P(function(G){if(G.W==1)return c={startTime:(0,g.aC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.F(G,Ur(W),2);if(G.W!=3)return V=G.X,H=g.X_("INNERTUBE_CONTEXT_CLIENT_NAME",0),B=[h,H,0],E=[h,H,(0,g.aC)()],J=IDBKeyRange.bound(B,E),u="prev",g.ZX("use_fifo_for_networkless")&&(u="next"),d=void 0,g.F(G,g.Lg(V,["LogsRequestsStore"],{mode:"readwrite",nJ:!0},function(Z){return g.y5(Z.objectStore("LogsRequestsStore").index("newRequestV2"), {query:J,direction:u},function(r){r.getValue()&&(d=r.getValue(),h==="NEW"&&(d.status="QUEUED",r.update(d)))})}),3); c.ticks.tc=(0,g.aC)();DMN(c);return G.return(d)})}; hH7=function(h,W){var c;return g.P(function(V){if(V.W==1)return g.F(V,Ur(W),2);c=V.X;return V.return(g.Lg(c,["LogsRequestsStore"],{mode:"readwrite",nJ:!0},function(H){var B=H.objectStore("LogsRequestsStore");return B.get(h).then(function(E){if(E)return E.status="QUEUED",g.iC(B,E).then(function(){return E})})}))})}; WPk=function(h,W,c,V){c=c===void 0?!0:c;var H;return g.P(function(B){if(B.W==1)return g.F(B,Ur(W),2);H=B.X;return B.return(g.Lg(H,["LogsRequestsStore"],{mode:"readwrite",nJ:!0},function(E){var J=E.objectStore("LogsRequestsStore");return J.get(h).then(function(u){return u?(u.status="NEW",c&&(u.sendCount+=1),V!==void 0&&(u.options.compress=V),g.iC(J,u).then(function(){return u})):g.x4.resolve(void 0)})}))})}; ctd=function(h,W){var c;return g.P(function(V){if(V.W==1)return g.F(V,Ur(W),2);c=V.X;return V.return(c.delete("LogsRequestsStore",h))})}; VnL=function(h){var W,c;return g.P(function(V){if(V.W==1)return g.F(V,Ur(h),2);W=V.X;c=(0,g.aC)()-2592E6;return g.F(V,g.Lg(W,["LogsRequestsStore"],{mode:"readwrite",nJ:!0},function(H){return g.Cg(H.objectStore("LogsRequestsStore"),{},function(B){if(B.getValue().timestamp<=c)return B.delete().then(function(){return g.Mv(B)})})}),0)})}; $U4=function(){g.P(function(h){return g.F(h,S55("LogsDatabaseV2"),0)})}; DMN=function(h){g.ZX("nwl_csi_killswitch")||Z8("networkless_performance",h,{sampleRate:1})}; HuQ=function(h){return g.T1(sWQ(),h)}; BON=function(h){var W,c;g.P(function(V){if(V.W==1)return g.F(V,HuQ(h),2);W=V.X;c=(0,g.aC)()-2592E6;return g.F(V,g.Lg(W,["SWHealthLog"],{mode:"readwrite",nJ:!0},function(H){return g.Cg(H.objectStore("SWHealthLog"),{},function(B){if(B.getValue().timestamp<=c)return B.delete().then(function(){return g.Mv(B)})})}),0)})}; EZp=function(h){var W;return g.P(function(c){if(c.W==1)return g.F(c,HuQ(h),2);W=c.X;return g.F(c,W.clear("SWHealthLog"),0)})}; g.Cj=function(h,W,c,V,H,B,E){H=H===void 0?"":H;B=B===void 0?!1:B;E=E===void 0?!1:E;if(h)if(c&&!g.NC())YZ(new g.tP("Legacy referrer-scrubbed ping detected")),h&&RHN(h,void 0,{scrubReferrer:!0});else if(H)lW(h,W,"POST",H,V);else if(g.X_("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||V||E)lW(h,W,"GET","",V,void 0,B,E);else{b:{try{c:{var J=new KAL({url:h});if(J.X.dsh==="1")var u=null;else{var d=J.X.ae;if(d==="1"){var G=J.X.adurl;if(G)try{u={version:3,Eu:decodeURIComponent(G),E0:I8(J.W,"act=1","ri=1",AU5(J))}; break c}catch(q){}}u=d==="2"?{version:4,Eu:I8(J.W,"dct=1","suid="+J.G,""),E0:I8(J.W,"act=1","ri=1","suid="+J.G)}:null}}if(u){var Z=Rg(h);var r=!(!Z||!Z.endsWith("/aclk")||j3(h,"ri")!=="1");break b}}catch(q){}r=!1}r?Jtp(h)?(W&&W(),c=!0):c=!1:c=!1;c||RHN(h,W)}}; Jtp=function(h,W){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(h,W===void 0?"":W))return!0}catch(c){}return!1}; RHN=function(h,W,c){c=c===void 0?{}:c;var V=new Image,H=""+u_U++;M0[H]=V;V.onload=V.onerror=function(){W&&M0[H]&&W();delete M0[H]}; c.scrubReferrer&&(V.referrerPolicy="no-referrer");V.src=h}; dUN=function(h){var W;return((W=document.featurePolicy)==null?0:W.allowedFeatures().includes("attribution-reporting"))?h+"&nis=6":h+"&nis=5"}; y2=function(){FX||(FX=new DL("yt.offline"));return FX}; G7D=function(h){if(g.ZX("offline_error_handling")){var W=y2().get("errors",!0)||{};W[h.message]={name:h.name,stack:h.stack};h.level&&(W[h.message].level=h.level);y2().set("errors",W,2592E3,!0)}}; PY=function(){this.X=new Map;this.W=!1}; fj=function(){if(!PY.instance){var h=g.c2("yt.networkRequestMonitor.instance")||new PY;g.hS("yt.networkRequestMonitor.instance",h);PY.instance=h}return PY.instance}; bq=function(){g.Rn.call(this);var h=this;this.W=!1;this.X=Lm4();this.X.listen("networkstatus-online",function(){if(h.W&&g.ZX("offline_error_handling")){var W=y2().get("errors",!0);if(W){for(var c in W)if(W[c]){var V=new g.tP(c,"sent via offline_errors");V.name=W[c].name;V.stack=W[c].stack;V.level=W[c].level;g.pu(V)}y2().set("errors",{},2592E3,!0)}}})}; ZuU=function(){if(!bq.instance){var h=g.c2("yt.networkStatusManager.instance")||new bq;g.hS("yt.networkStatusManager.instance",h);bq.instance=h}return bq.instance}; g.TZ=function(h){h=h===void 0?{}:h;g.Rn.call(this);var W=this;this.X=this.Y=0;this.W=ZuU();var c=g.c2("yt.networkStatusManager.instance.listen").bind(this.W);c&&(h.rateLimit?(this.rateLimit=h.rateLimit,c("networkstatus-online",function(){rtD(W,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){rtD(W,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){W.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){W.dispatchEvent("publicytnetworkstatus-offline")})))}; rtD=function(h,W){h.rateLimit?h.X?(g.Py.XV(h.Y),h.Y=g.Py.rp(function(){h.G!==W&&(h.dispatchEvent(W),h.G=W,h.X=(0,g.aC)())},h.rateLimit-((0,g.aC)()-h.X))):(h.dispatchEvent(W),h.G=W,h.X=(0,g.aC)()):h.dispatchEvent(W)}; XX=function(){var h=iq.call;N0||(N0=new g.TZ({dfN:!0,dSM:!0}));h.call(iq,this,{oF:{PL:VnL,BE:ctd,XP:k$Q,Ts:hH7,ws:WPk,set:wDL},D1:N0,handleError:function(W,c,V){var H,B=V==null?void 0:(H=V.error)==null?void 0:H.code;if(B===400||B===415){var E;W=new g.tP(W.message,c,V==null?void 0:(E=V.error)==null?void 0:E.code);YZ(W,void 0,void 0,void 0,!0)}else g.pu(W)}, RC:YZ,sendFn:q_5,now:g.aC,dn:G7D,yN:g.Oh(),QW:"publicytnetworkstatus-online",n6:"publicytnetworkstatus-offline",Dj:!0,Vv:.1,W4:g.rJ("potential_esf_error_limit",10),xN:g.ZX,Rk:!(g.m1()&&g.E6(document.location.toString())!=="www.youtube-nocookie.com")});this.G=new g.R_;g.ZX("networkless_immediately_drop_all_requests")&&$U4();g$7("LogsDatabaseV2")}; tL=function(){var h=g.c2("yt.networklessRequestController.instance");h||(h=new XX,g.hS("yt.networklessRequestController.instance",h),g.ZX("networkless_logging")&&g.IC().then(function(W){h.r3=W;I_v(h);h.G.resolve();h.Dj&&Math.random()<=h.Vv&&h.r3&&BON(h.r3);g.ZX("networkless_immediately_drop_sw_health_store")&&xUp(h)})); return h}; xUp=function(h){var W;g.P(function(c){if(!h.r3)throw W=g.rw("clearSWHealthLogsDb"),W;return c.return(EZp(h.r3).catch(function(V){h.handleError(V)}))})}; q_5=function(h,W,c,V){V=V===void 0?!1:V;W=g.ZX("web_fp_via_jspb")?Object.assign({},W):W;g.ZX("use_cfr_monitor")&&l35(h,W);if(g.ZX("use_request_time_ms_header"))W.headers&&Wf(h)&&(W.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.aC)())));else{var H;if((H=W.postParams)==null?0:H.requestTimeMs)W.postParams.requestTimeMs=Math.round((0,g.aC)())}c&&Object.keys(W).length===0?g.Cj(h):W.compress?W.postBody?(typeof W.postBody!=="string"&&(W.postBody=JSON.stringify(W.postBody)),e5(h,W.postBody, W,g.nb,V)):e5(h,JSON.stringify(W.postParams),W,jO,V):g.nb(h,W)}; vY=function(h,W){g.ZX("use_event_time_ms_header")&&Wf(h)&&(W.headers||(W.headers={}),W.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.aC)())));return W}; l35=function(h,W){var c=W.onError?W.onError:function(){}; W.onError=function(H,B){fj().requestComplete(h,!1);c(H,B)}; var V=W.onSuccess?W.onSuccess:function(){}; W.onSuccess=function(H,B){fj().requestComplete(h,!0);V(H,B)}}; g.ma=function(h){this.config_=null;h?this.config_=h:re7()&&(this.config_=g.sr())}; g.oS=function(h,W,c,V){function H(d){try{if((d===void 0?0:d)&&V.retry&&!V.networklessOptions.bypassNetworkless)B.method="POST",V.networklessOptions.writeThenSend?tL().writeThenSend(u,B):tL().sendAndWrite(u,B);else if(V.compress){var G=!V.networklessOptions.writeThenSend;if(B.postBody){var Z=B.postBody;typeof Z!=="string"&&(Z=JSON.stringify(B.postBody));e5(u,Z,B,g.nb,G)}else e5(u,JSON.stringify(B.postParams),B,jO,G)}else g.ZX("web_all_payloads_via_jspb")?g.nb(u,B):jO(u,B)}catch(r){if(r.name==="InvalidAccessError")YZ(Error("An extension is blocking network request.")); else throw r;}} !g.X_("VISITOR_DATA")&&W!=="visitor_id"&&Math.random()<.01&&YZ(new g.tP("Missing VISITOR_DATA when sending innertube request.",W,c,V));if(!h.isReady())throw h=new g.tP("innertube xhrclient not ready",W,c,V),g.pu(h),h;var B={headers:V.headers||{},method:"POST",postParams:c,postBody:V.postBody,postBodyFormat:V.postBodyFormat||"JSON",onTimeout:function(){V.onTimeout()}, onFetchTimeout:V.onTimeout,onSuccess:function(d,G){if(V.onSuccess)V.onSuccess(G)}, onFetchSuccess:function(d){if(V.onSuccess)V.onSuccess(d)}, onError:function(d,G){if(V.onError)V.onError(G)}, onFetchError:function(d){if(V.onError)V.onError(d)}, timeout:V.timeout,withCredentials:!0,compress:V.compress};B.headers["Content-Type"]||(B.headers["Content-Type"]="application/json");c="";var E=h.config_.uc;E&&(c=E);E=h.config_.lc||!1;var J=LW5(E,c,V);Object.assign(B.headers,J);B.headers.Authorization&&!c&&E&&(B.headers["x-origin"]=window.location.origin);var u=kZ(""+c+("/youtubei/"+h.config_.innertubeApiVersion+"/"+W),{alt:"json"});g.c2("ytNetworklessLoggingInitializationOptions")&&nZl.isNwlInitialized?v$l().then(function(d){H(d)}):H(!1)}; g.S5=function(h,W,c){var V=g.pj();if(V&&W){var H=V.subscribe(h,function(){function B(){IS[H]&&W.apply&&typeof W.apply=="function"&&W.apply(c||window,E)} var E=arguments;try{g.Ys[h]?B():g.Rx(B,0)}catch(J){g.pu(J)}},c); IS[H]=!0;Or[h]||(Or[h]=[]);Or[h].push(H);return H}return 0}; jW7=function(h){var W=g.S5("LOGGED_IN",function(c){h.apply(void 0,arguments);g.gI(W)})}; g.gI=function(h){var W=g.pj();W&&(typeof h==="number"?h=[h]:typeof h==="string"&&(h=[parseInt(h,10)]),g.gX(h,function(c){W.unsubscribeByKey(c);delete IS[c]}))}; g.D8=function(h,W){var c=g.pj();return c?c.publish.apply(c,arguments):!1}; eHl=function(h){var W=g.pj();if(W)if(W.clear(h),h)a3v(h);else for(var c in Or)a3v(c)}; g.pj=function(){return g.k5.ytPubsubPubsubInstance}; a3v=function(h){Or[h]&&(h=Or[h],g.gX(h,function(W){IS[W]&&delete IS[W]}),h.length=0)}; g.cB=function(h,W,c){zHN(h,W,c===void 0?null:c)}; zHN=function(h,W,c){c=c===void 0?null:c;var V=QW4(h),H=document.getElementById(V),B=H&&TlN(H),E=H&&!B;B?W&&W():(W&&(B=g.S5(V,W),W=""+g.EI(W),LPd[W]=B),E||(H=iuQ(h,V,function(){TlN(H)||(beN(H),g.D8(V),g.Rx(function(){eHl(V)},0))},c)))}; iuQ=function(h,W,c,V){V=V===void 0?null:V;var H=g.Zr("SCRIPT");H.id=W;H.onload=function(){c&&setTimeout(c,0)}; H.onreadystatechange=function(){switch(H.readyState){case "loaded":case "complete":H.onload()}}; V&&H.setAttribute("nonce",V);g.a0(H,g.nu(h));h=document.getElementsByTagName("head")[0]||document.body;h.insertBefore(H,h.firstChild);return H}; QW4=function(h){var W=document.createElement("a");g.u4(W,h);h=W.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+y6(h)}; Vj=function(h,W){if(h===W)h=!0;else if(Array.isArray(h)&&Array.isArray(W))h=g.OI(h,W,Vj);else if(g.H2(h)&&g.H2(W))a:if(g.HG(h).length!=g.HG(W).length)h=!1;else{for(var c in h)if(!Vj(h[c],W[c])){h=!1;break a}h=!0}else h=!1;return h}; HB=function(h){var W=g.tN.apply(1,arguments);if(!$A(h)||W.some(function(V){return!$A(V)}))throw Error("Only objects may be merged."); W=g.e(W);for(var c=W.next();!c.done;c=W.next())sc(h,c.value)}; sc=function(h,W){for(var c in W)if($A(W[c])){if(c in h&&!$A(h[c]))throw Error("Cannot merge an object into a non-object.");c in h||(h[c]={});sc(h[c],W[c])}else if(BB(W[c])){if(c in h&&!BB(h[c]))throw Error("Cannot merge an array into a non-array.");c in h||(h[c]=[]);KPv(h[c],W[c])}else h[c]=W[c];return h}; KPv=function(h,W){W=g.e(W);for(var c=W.next();!c.done;c=W.next())c=c.value,$A(c)?h.push(sc({},c)):BB(c)?h.push(KPv([],c)):h.push(c);return h}; $A=function(h){return typeof h==="object"&&!Array.isArray(h)}; BB=function(h){return typeof h==="object"&&Array.isArray(h)}; Ec=function(h){g.N.call(this);this.W=h}; Rl=function(h){Ec.call(this,!0);this.X=h}; Jn=function(h,W){g.N.call(this);var c=this;this.G=[];this.S=!1;this.W=0;this.C=this.N=this.Y=!1;this.XI=null;var V=(0,g.JS)(h,W);this.X=new g.oD(function(){return V(c.XI)},300); g.X(this,this.X);this.T=this.Z=Infinity}; At4=function(h,W){if(!W)return!1;for(var c=0;c-1)throw Error("Deps cycle for: "+W);if(h.W.has(W))return h.W.get(W);if(!h.X.has(W)){if(V)return;throw Error("No provider for: "+W);}V=h.X.get(W);c.push(W);if(V.F7!==void 0)var H=V.F7;else if(V.l1N)H=V[e9]?FPd(h,V[e9],c):[],H=V.l1N.apply(V,g.rN(H));else if(V.q8){H=V.q8;var B=H[e9]?FPd(h,H[e9],c):[];H=new (Function.prototype.bind.apply(H,[null].concat(g.rN(B))))}else throw Error("Could not resolve providers for: "+W);c.pop();V.zLk||h.W.set(W,H); return H}; FPd=function(h,W,c){return W?W.map(function(V){return V instanceof nq?ze(h,V.key,c,!0):ze(h,V,c)}):[]}; Lq=function(){Qj||(Qj=new Mnl);return Qj}; Kq=function(){var h,W;return"h5vcc"in ix&&((h=ix.h5vcc.traceEvent)==null?0:h.traceBegin)&&((W=ix.h5vcc.traceEvent)==null?0:W.traceEnd)?1:"performance"in ix&&ix.performance.mark&&ix.performance.measure?2:0}; An=function(h){var W=Kq();switch(W){case 1:ix.h5vcc.traceEvent.traceBegin("YTLR",h);break;case 2:ix.performance.mark(h+"-start");break;case 0:break;default:dF(W,"unknown trace type")}}; ytl=function(h){var W=Kq();switch(W){case 1:ix.h5vcc.traceEvent.traceEnd("YTLR",h);break;case 2:W=h+"-start";var c=h+"-end";ix.performance.mark(c);ix.performance.measure(h,W,c);break;case 0:break;default:dF(W,"unknown trace type")}}; P$k=function(h){var W,c;(c=(W=window).onerror)==null||c.call(W,h.message,"",0,0,h)}; f3v=function(h){var W=this;var c=c===void 0?0:c;var V=V===void 0?g.Oh():V;this.G=c;this.scheduler=V;this.W=new g.R_;this.X=h;for(h={fq:0};h.fq=1E3?H():V>=h?kA||(kA=h5(function(){H();kA=void 0},0)):B-J>=10&&(k7N(W,c.tier),E.Y=B)}; OuN=function(h,W){if(h.endpoint==="log_event"){g.ZX("more_accurate_gel_parser")&&ol().storePayload({isJspb:!1},h.payload);Il(h);var c=YA(h),V=new Map;V.set(c,[h.payload]);var H=pEk(h.payload)||"";W&&(Dl=new W);return new g.iZ(function(B,E){Dl&&Dl.isReady()?hIT(V,Dl,B,E,{bypassNetworkless:!0},!0,S9(H)):B()})}}; DUN=function(h,W,c){if(W.endpoint==="log_event"){Il(void 0,W);var V=YA(W,!0),H=new Map;H.set(V,[tI(W.payload)]);c&&(Dl=new c);return new g.iZ(function(B){Dl&&Dl.isReady()?Wf7(H,Dl,B,{bypassNetworkless:!0},!0,S9(h)):B()})}}; YA=function(h,W){var c="";if(h.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(h.cttAuthInfo){if(W===void 0?0:W){W=h.cttAuthInfo.token;c=h.cttAuthInfo;var V=new b$;c.videoId?V.setVideoId(c.videoId):c.playlistId&&di(V,2,Wz,QH(c.playlistId));cz[W]=V}else W=h.cttAuthInfo,c={},W.videoId?c.videoId=W.videoId:W.playlistId&&(c.playlistId=W.playlistId),Vq[h.cttAuthInfo.token]=c;c=h.cttAuthInfo.token}return c}; gY=function(h,W,c){h=h===void 0?{}:h;W=W===void 0?!1:W;new g.iZ(function(V,H){var B=wY(W,c),E=B.G;B.G=!1;$N(B.W);$N(B.X);B.X=0;Dl&&Dl.isReady()?c===void 0&&g.ZX("enable_web_tiered_gel")?ccd(V,H,h,W,300,E):ccd(V,H,h,W,c,E):(k7N(W,c),V())})}; ccd=function(h,W,c,V,H,B){var E=Dl;c=c===void 0?{}:c;V=V===void 0?!1:V;H=H===void 0?200:H;B=B===void 0?!1:B;var J=new Map,u=new Map,d={isJspb:V,cttAuthInfo:void 0,tier:H},G={isJspb:V,cttAuthInfo:void 0};if(V){W=g.e(Object.keys(Oc));for(H=W.next();!H.done;H=W.next())H=H.value,u=g.ZX("enable_web_tiered_gel")?ol().smartExtractMatchingEntries({keys:[d,G],sizeLimit:1E3}):ol().extractMatchingEntries({isJspb:!0,cttAuthInfo:H}),u.length>0&&J.set(H,u),(g.ZX("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.ZX("web_fp_via_jspb_and_json"))&& delete Oc[H];Wf7(J,E,h,c,!1,B)}else{J=g.e(Object.keys(Oc));for(d=J.next();!d.done;d=J.next())d=d.value,G=g.ZX("enable_web_tiered_gel")?ol().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:d,tier:H},{isJspb:!1,cttAuthInfo:d}],sizeLimit:1E3}):ol().extractMatchingEntries({isJspb:!1,cttAuthInfo:d}),G.length>0&&u.set(d,G),(g.ZX("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.ZX("web_fp_via_jspb_and_json"))&&delete Oc[d];hIT(u,E,h,W,c,!1,B)}}; k7N=function(h,W){function c(){gY({writeThenSend:!0},h,W)} h=h===void 0?!1:h;W=W===void 0?200:W;var V=wY(h,W),H=V===VON||V===$CN?5E3:sxN;g.ZX("web_gel_timeout_cap")&&!V.X&&(H=h5(function(){c()},H),V.X=H); $N(V.W);H=g.X_("LOGGING_BATCH_TIMEOUT",g.rJ("web_gel_debounce_ms",1E4));g.ZX("shorten_initial_gel_batch_timeout")&&s9&&(H=Hb7);H=h5(function(){g.rJ("gel_min_batch_size")>0?ol().getSequenceCount({cttAuthInfo:void 0,isJspb:h,tier:W})>=BJU&&c():c()},H); V.W=H}; hIT=function(h,W,c,V,H,B,E){H=H===void 0?{}:H;var J=Math.round((0,g.aC)()),u=h.size,d=E2D(E);h=g.e(h);var G=h.next();for(E={};!G.done;E={Nr:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,b4:void 0,oQ:void 0},G=h.next()){var Z=g.e(G.value);G=Z.next().value;Z=Z.next().value;E.batchRequest=g.xF({context:g.HY(W.config_||g.sr())});if(!g.sI(Z)&&!g.ZX("throw_err_when_logevent_malformed_killswitch")){V();break}E.batchRequest.events=Z;(Z=Vq[G])&&RI4(E.batchRequest,G,Z);delete Vq[G];E.dangerousLogToVisitorSession= G==="visitorOnlyApprovedKey";JcQ(E.batchRequest,J,E.dangerousLogToVisitorSession);uAU(H);E.b4=function(r){g.ZX("start_client_gcf")&&g.Py.rp(function(){return g.P(function(q){return g.F(q,dCk(r),0)})}); u--;u||c()}; E.Nr=0;E.oQ=function(r){return function(){r.Nr++;if(H.bypassNetworkless&&r.Nr===1)try{g.oS(W,d,r.batchRequest,Hz({writeThenSend:!0},r.dangerousLogToVisitorSession,r.b4,r.oQ,B)),s9=!1}catch(q){g.pu(q),V()}u--;u||c()}}(E); try{g.oS(W,d,E.batchRequest,Hz(H,E.dangerousLogToVisitorSession,E.b4,E.oQ,B)),s9=!1}catch(r){g.pu(r),V()}}}; Wf7=function(h,W,c,V,H,B){V=V===void 0?{}:V;var E=Math.round((0,g.aC)()),J={value:h.size},u=new Map([].concat(g.rN(h)));u=g.e(u);for(var d=u.next();!d.done;d=u.next()){var G=g.e(d.value).next().value,Z=h.get(G);d=new ovU;var r=W.config_||g.sr(),q=new Cu,x=new z7;y7(x,1,r.H7);y7(x,2,r.NC);f7(x,16,r.wC);y7(x,17,r.innertubeContextClientVersion);if(r.m5){var z=r.m5,L=new aW;z.coldConfigData&&y7(L,1,z.coldConfigData);z.appInstallData&&y7(L,6,z.appInstallData);z.coldHashData&&y7(L,3,z.coldHashData);z.hotHashData&& L.WU(z.hotHashData);n7(x,aW,62,L)}(z=g.k5.devicePixelRatio)&&z!=1&&k3(x,65,Ep(z));z=qC();z!==""&&y7(x,54,z);z=x2();if(z.length>0){L=new i$;for(var M=0;M65535&&(h=1);NU("BATCH_CLIENT_COUNTER",h);return h}; RI4=function(h,W,c){if(c.videoId)var V="VIDEO";else if(c.playlistId)V="PLAYLIST";else return;h.credentialTransferTokenTargetId=c;h.context=h.context||{};h.context.user=h.context.user||{};h.context.user.credentialTransferTokens=[{token:W,scope:V}]}; Il=function(h,W){var c=g.c2("yt.logging.transport.enableScrapingForTest"),V=GN("il_payload_scraping");V=(V!==void 0?String(V):"")==="enable_il_payload_scraping";if(!c)if(V)R3=[],g.hS("yt.logging.transport.enableScrapingForTest",!0),g.hS("yt.logging.transport.scrapedPayloadsForTesting",R3),g.hS("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.hS("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.hS("yt.logging.transport.scrapeClientEvent",!0);else return;c=g.c2("yt.logging.transport.scrapedPayloadsForTesting");V=g.c2("yt.logging.transport.payloadToScrape");W&&(W=W.payload,(W=g.c2("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(W)())&&c.push(W));W=g.c2("yt.logging.transport.scrapeClientEvent");if(V&&V.length>=1)for(var H=0;H0&&yc5(h,W,B)}else yc5(h,W)}; yc5=function(h,W,c){h=PWh(h);W=W?g.ZB(W):"";c=c||5;gJ()&&g.UB(h,W,c)}; PWh=function(h){for(var W=g.e(fX5),c=W.next();!c.done;c=W.next())h=ag(h,c.value);return"ST-"+y6(h).toString(36)}; bbd=function(h){if(h.name==="JavaException")return!0;h=h.stack;return h.includes("chrome://")||h.includes("-extension://")||h.includes("webkit-masked-url://")}; TJQ=function(h){if(!h.stack)return!0;var W=!h.stack.includes("\n");return W&&h.stack.includes("ErrorType: ")||W&&h.stack.includes("Anonymous function (Unknown script")||h.stack.toLowerCase()==="not available"||h.fileName==="user-script"||h.fileName.startsWith("user-script:")?!0:!1}; NJN=function(){this.WG=[];this.ZO=[]}; j2=function(){if(!nx){var h=nx=new NJN;h.ZO.length=0;h.WG.length=0;Xf7(h,tOd)}return nx}; Xf7=function(h,W){W.ZO&&h.ZO.push.apply(h.ZO,W.ZO);W.WG&&h.WG.push.apply(h.WG,W.WG)}; v2k=function(h){function W(){return h.charCodeAt(V++)} var c=h.length,V=0;do{var H=a3(W);if(H===Infinity)break;var B=H>>3;switch(H&7){case 0:H=a3(W);if(B===2)return H;break;case 1:if(B===2)return;V+=8;break;case 2:H=a3(W);if(B===2)return h.substr(V,H);V+=H;break;case 5:if(B===2)return;V+=4;break;default:return}}while(V500));V++);V=H}else if(typeof h==="object")for(H in h){if(h[H]){var B=H;var E=h[H],J=W,u=c;B=typeof E!=="string"||B!=="clickTrackingParams"&&B!=="trackingParams"?0:(E=v2k(atob(E.replace(/-/g,"+").replace(/_/g,"/"))))?e2(B+".ve",E,J,u):0;V+=B;V+=e2(H,h[H],W,c);if(V>500)break}}else c[W]=zE(h),V+=c[W].length;else c[W]=zE(h),V+=c[W].length;return V}; e2=function(h,W,c,V){c+="."+h;h=zE(W);V[c]=h;return c.length+h.length}; zE=function(h){try{return(typeof h==="string"?h:String(JSON.stringify(h))).substr(0,500)}catch(W){return"unable to serialize "+typeof h+" ("+W.message+")"}}; cp=function(h){g.Qq(h)}; g.Lx=function(h){g.Qq(h,"WARNING")}; g.Qq=function(h,W){var c=c===void 0?{}:c;c.name=g.X_("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.X_("INNERTUBE_CONTEXT_CLIENT_VERSION");W=W===void 0?"ERROR":W;var V=!1;W=W===void 0?"ERROR":W;V=V===void 0?!1:V;if(h){h.hasOwnProperty("level")&&h.level&&(W=h.level);if(g.ZX("console_log_js_exceptions")){var H=[];H.push("Name: "+h.name);H.push("Message: "+h.message);h.hasOwnProperty("params")&&H.push("Error Params: "+JSON.stringify(h.params));h.hasOwnProperty("args")&&H.push("Error args: "+JSON.stringify(h.args)); H.push("File name: "+h.fileName);H.push("Stacktrace: "+h.stack);window.console.log(H.join("\n"),h)}if(!(o2p>=5)){H=[];for(var B=g.e(pfk),E=B.next();!E.done;E=B.next()){E=E.value;try{E()&&H.push(E())}catch(z){}}H=[].concat(g.rN(IXh),g.rN(H));var J=sf5(h);B=J.message||"Unknown Error";E=J.name||"UnknownError";var u=J.stack||h.W||"Not available";if(u.startsWith(E+": "+B)){var d=u.split("\n");d.shift();u=d.join("\n")}d=J.lineNumber||"Not available";J=J.fileName||"Not available";var G=0;if(h.hasOwnProperty("args")&& h.args&&h.args.length)for(var Z=0;Z=500);Z++);else if(h.hasOwnProperty("params")&&h.params){var r=h.params;if(typeof h.params==="object")for(Z in r){if(r[Z]){var q="params."+Z,x=zE(r[Z]);c[q]=x;G+=q.length+x.length;if(G>500)break}}else c.params=zE(r)}if(H.length)for(Z=0;Z=500);Z++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);c={message:B,name:E,lineNumber:d, fileName:J,stack:u,params:c,sampleWeight:1};Z=Number(h.columnNumber);isNaN(Z)||(c.lineNumber=c.lineNumber+":"+Z);if(h.level==="IGNORED")h=0;else a:{h=j2();Z=g.e(h.ZO);for(H=Z.next();!H.done;H=Z.next())if(H=H.value,c.message&&c.message.match(H.oU)){h=H.weight;break a}h=g.e(h.WG);for(Z=h.next();!Z.done;Z=h.next())if(Z=Z.value,Z.callback(c)){h=Z.weight;break a}h=1}c.sampleWeight=h;h=g.e(YBL);for(Z=h.next();!Z.done;Z=h.next())if(Z=Z.value,Z.Vu[c.name])for(B=g.e(Z.Vu[c.name]),H=B.next();!H.done;H=B.next())if(E= H.value,H=c.message.match(E.il)){c.params["params.error.original"]=H[0];B=E.groups;E={};for(d=0;d1E3&&g.Lx(new g.tP("IL Attach cache exceeded limit"))}J= N_(c,W);yq.has(J)?Xe(c,W):fx.set(J,!0)}}V=V.filter(function(G){G.csn!==W?(G.csn=W,G=!0):G=!1;return G}); c={csn:W,parentVe:c.getAsJson(),childVes:g.xw(V,function(G){return G.getAsJson()})}; W==="UNDEFINED_CSN"?t5("visualElementAttached",B,c):h?uD("visualElementAttached",c,h,B):g.V5("visualElementAttached",c,B)}; EkU=function(h,W,c,V,H){vz(c,W);V=Fe({cttAuthInfo:xN(W)||void 0},W);c={csn:W,ve:c.getAsJson(),eventType:1};H&&(c.clientData=H);W==="UNDEFINED_CSN"?t5("visualElementShown",V,c):h?uD("visualElementShown",c,h,V):g.V5("visualElementShown",c,V)}; ROh=function(h,W,c,V){var H=(V=V===void 0?!1:V)?16:8;V=Fe({cttAuthInfo:xN(W)||void 0,endOfSequence:V},W);c={csn:W,ve:c.getAsJson(),eventType:H};W==="UNDEFINED_CSN"?t5("visualElementHidden",V,c):h?uD("visualElementHidden",c,h,V):g.V5("visualElementHidden",c,V)}; o3=function(h,W,c,V,H){mt(h,W,c,void 0,V,H)}; mt=function(h,W,c,V,H){vz(c,W);V=V||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var B=Fe({cttAuthInfo:xN(W)||void 0},W);c={csn:W,ve:c.getAsJson(),gestureType:V};H&&(c.clientData=H);W==="UNDEFINED_CSN"?t5("visualElementGestured",B,c):h?uD("visualElementGestured",c,h,B):g.V5("visualElementGestured",c,B)}; JP4=function(){var h=dY(16);for(var W=[],c=0;c0&&c.push(g.Zr("BR"));c.push(g.rb(B))}):c.push(g.rb(V))}return c}; $B=function(h,W,c,V){if(c==="child"){g.xS(W);var H;V===void 0?H=void 0:H=!Array.isArray(V)||V&&typeof V.D==="string"?[V]:V;c=dzN(h,H);c=g.e(c);for(h=c.next();!h.done;h=c.next())W.appendChild(h.value)}else c==="style"?g.oY(W,"cssText",V?V:""):V===null||V===void 0?W.removeAttribute(c):(h=V.toString(),c==="href"&&(h=g.$u(g.Eu(h))),W.setAttribute(c,h))}; g.p=function(h){g.cn.call(this,h);this.Of=!0;this.C=!1;this.listeners=[]}; g.sJ=function(h){g.p.call(this,h);this.Jk=new g.h1;g.X(this,this.Jk)}; Hn=function(h,W,c,V,H,B,E){E=E===void 0?null:E;g.sJ.call(this,W);this.api=h;this.macros={};this.componentType=c;this.S=this.Z=null;this.Ak=E;this.layoutId=V;this.interactionLoggingClientData=H;this.oz=B;this.yg=null;this.Gk=new Rl(this.element);g.X(this,this.Gk);this.Ef=this.U(this.element,"click",this.onClick);this.DH=[];this.Pk=new Jn(this.onClick,this);g.X(this,this.Pk);this.uW=!1;this.mW=this.XI=null}; Bn=function(h,W){h=h===void 0?null:h;W=W===void 0?null:W;if(h==null)return g.Lx(Error("Got null or undefined adText object")),"";var c=g.Fk(h.text);if(!h.isTemplated)return c;if(W==null)return g.Lx(Error("Missing required parameters for a templated message")),c;h=g.e(Object.entries(W));for(W=h.next();!W.done;W=h.next()){var V=g.e(W.value);W=V.next().value;V=V.next().value;c=c.replace("{"+W+"}",V)}return c}; GRk=function(h){h=h===void 0?null:h;return h!=null&&(h=h.thumbnail,h!=null&&h.thumbnails!=null&&h.thumbnails.length!=0&&h.thumbnails[0].url!=null)?g.Fk(h.thumbnails[0].url):""}; ZSQ=function(h){h=h===void 0?null:h;return h!=null&&(h=h.thumbnail,h!=null&&h.thumbnails!=null&&h.thumbnails.length!=0&&h.thumbnails[0].width!=null&&h.thumbnails[0].height!=null)?new g.Yu(h.thumbnails[0].width||0,h.thumbnails[0].height||0):new g.Yu(0,0)}; g.EJ=function(h){if(h.simpleText)return h.simpleText;if(h.runs){var W=[];h=g.e(h.runs);for(var c=h.next();!c.done;c=h.next())c=c.value,c.text&&W.push(c.text);return W.join("")}return""}; g.Re=function(h){if(h.simpleText)return h=document.createTextNode(h.simpleText),h;var W=[];if(h.runs)for(var c=0;c1){for(var W=[h[0]],c=1;c0&&(this.X=new g.oD(this.HC,W,this),g.X(this,this.X));this.C=new g.oD(this.HC,c,this);g.X(this,this.C);this.Z=yHN(this.W,H,1,V);g.X(this,this.Z);this.S=yHN(this.W,0,V,1);g.X(this,this.S);this.Y=new aI;g.X(this,this.Y)}; W8=function(h,W,c){this.W=h;this.isAsync=W;this.X=c}; Hgd=function(h){switch(h){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:dF(h,"unknown result type")}}; Bwk=function(h,W){var c=1;h.isTrusted===!1&&(c=0);NU("ISDSTAT",c);c8(c,"i.s_",{triggerContext:"sk",metadata:W});return c}; E4Q=function(h,W){var c=[];W?W.isTrusted===!0?c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):W.isTrusted===!1?c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");c8(0,"a.s_",{metadata:h,states:c});NU("ASDSTAT",0)}; c8=function(h,W,c){W=RBQ[W];var V,H,B={detected:h===0,source:""+W.W+((V=c.triggerContext)!=null?V:"")+((H=c.ya)!=null?H:""),detectionStates:c.states,durationMs:c.c8};c.metadata&&(B.contentCpn=c.metadata.contentCpn,B.adCpn=c.metadata.adCpn);g.V5("biscottiBasedDetection",B);W.X!==void 0&&(c=Number(g.X_("CATSTAT",0)),W.X!==void 0?(W=W.X,h=Hgd(h),h=c&~(3<0}; Rt=function(h,W,c,V,H,B){Ie.call(this,h,{D:"div",K:"ytp-ad-skip-button-slot"},"skip-button",W,c,V,H);var E=this;this.Wk=null;this.zV=!1;this.Rz=B;this.N=this.api.B().experiments.xN("enable_modern_skip_button_on_web");this.rE=!1;this.Y=new g.sJ({D:"span",LM:["ytp-ad-skip-button-container"]});this.N&&this.Y.element.classList.add("ytp-ad-skip-button-container-detached");g.X(this,this.Y);this.Y.kN(this.element);this.W=this.G=null;this.Mn=new g.SL(this.Y,500,!1,100,function(){return E.hide()}); g.X(this,this.Mn);this.Nn=new hW(this.Y.element,15E3,5E3,.5,.5,this.N);g.X(this,this.Nn);this.hide()}; uJN=function(h){h=h.Wk&&h.Wk.adRendererCommands;return(h&&h.clickCommand&&g.v(h.clickCommand,g.JW)&&g.v(h.clickCommand,g.JW).commands||[]).some(function(W){return W.adLifecycleCommand?JZN(W.adLifecycleCommand):!1})}; JZN=function(h){return h.action==="END_LINEAR_AD"||h.action==="END_LINEAR_AD_PLACEMENT"}; u7=function(h,W,c,V,H,B){Ie.call(this,h,{D:"div",K:"ytp-ad-skip-ad-slot"},"skip-ad",W,c,V,H);this.Wk=B;this.Y=!1;this.N=0;this.G=this.W=null;this.hide()}; dvL=function(h,W){h.Y||(h.Y=!0,h.W&&(W?h.W.Wk.hide():h.W.hide()),W?(h=h.G,h.Mn.show(),h.show()):h.G.show())}; dT=function(h,W,c,V){iw.call(this,h,W,c,V,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; G3=function(h,W,c,V,H,B,E){B=B===void 0?!1:B;E=E===void 0?!1:E;Hn.call(this,h,{D:"span",K:"ytp-ad-simple-ad-badge"},"simple-ad-badge",W,c,V);this.G=H;this.X=this.vk("ytp-ad-simple-ad-badge");(this.W=B)&&this.X.classList.add("ytp-ad-simple-ad-badge--clean-player");E&&this.X.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; Zw=function(h,W,c,V,H){H=H===void 0?!1:H;kN.call(this,"player-overlay",h,{},W,V);this.videoAdDurationSeconds=c;this.interactionLoggingClientData=V;this.En=H}; rT=function(h,W){g.h1.call(this);this.api=h;this.durationMs=W;this.X=null;this.pR=new aI(this);g.X(this,this.pR);this.W=G17;this.pR.U(this.api,"presentingplayerstatechange",this.Gh);this.X=this.pR.U(this.api,"onAdPlaybackProgress",this.kd)}; qa=function(h){g.h1.call(this);this.X=!1;this.W3=0;this.pR=new aI(this);g.X(this,this.pR);this.durationMs=h;this.timer=new g.yR(100);g.X(this,this.timer);this.pR.U(this.timer,"tick",this.kd);this.W={seekableStart:0,seekableEnd:h/1E3,current:0};this.start()}; g.xx=function(h,W){var c=Math.abs(Math.floor(h)),V=Math.floor(c/86400),H=Math.floor(c%86400/3600),B=Math.floor(c%3600/60);c=Math.floor(c%60);if(W){W="";V>0&&(W+=" "+V+" d\u00edas");if(V>0||H>0)W+=" "+H+" horas";W+=" "+B+" minutos";W+=" "+c+" segundos";V=W.trim()}else{W="";V>0&&(W+=V+":",H<10&&(W+="0"));if(V>0||H>0)W+=H+":",B<10&&(W+="0");W+=B+":";c<10&&(W+="0");V=W+c}return h>=0?V:"-"+V}; g.l7=function(h){return(!("button"in h)||typeof h.button!=="number"||h.button===0)&&!("shiftKey"in h&&h.shiftKey)&&!("altKey"in h&&h.altKey)&&!("metaKey"in h&&h.metaKey)&&!("ctrlKey"in h&&h.ctrlKey)}; nV=function(h,W,c,V,H,B,E){Ie.call(this,h,{D:"span",K:E?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",W,c,V,H);this.videoAdDurationSeconds=B;this.W=null;E&&this.api.B().W&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),tZ&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; jR=function(h,W,c,V){oe.call(this,h,W,c,V,"ytp-video-ad-top-bar-title","ad-title")}; at=function(h){this.content=h.content;if(h.commandRuns){h=g.e(h.commandRuns);for(var W=h.next();!W.done;W=h.next())W=W.value,this.loggingDirectives=g.v(W,Zg4),W.onTap&&(this.interaction={onTap:W.onTap})}}; eR=function(h,W,c,V){Hn.call(this,h,{D:"div",K:"ad-simple-attributed-string"},"ad-simple-attributed-string",W,c,V);this.hide()}; z3=function(h,W,c,V,H){Hn.call(this,h,{D:"span",K:H?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",W,c,V);this.W=H;this.adBadgeText=new eR(this.api,this.layoutId,this.interactionLoggingClientData,this.oz);this.adBadgeText.kN(this.element);g.X(this,this.adBadgeText);H?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),tZ&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; Qh=function(h,W,c,V){Hn.call(this,h,{D:"span",K:"ytp-ad-pod-index"},"ad-pod-index",W,c,V);this.api.B().W&&(this.element.classList.add("ytp-ad-pod-index--mweb"),tZ&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; LV=function(h,W,c,V){Hn.call(this,h,{D:"div",K:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",W,c,V);this.hide()}; i7=function(h,W){this.W=h;this.X=W}; rZl=function(h,W){return h.W+W*(h.X-h.W)}; KV=function(h,W,c){return h.X-h.W?g.vr((W-h.W)/(h.X-h.W),0,1):c!=null?c:Infinity}; AW=function(h,W,c,V){V=V===void 0?!1:V;g.sJ.call(this,{D:"div",K:"ytp-ad-persistent-progress-bar-container",V:[{D:"div",K:"ytp-ad-persistent-progress-bar"}]});this.api=h;this.W=W;this.G=c;V&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.X(this,this.W);this.progressBar=this.vk("ytp-ad-persistent-progress-bar");this.X=-1;this.U(h,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; UA=function(h,W,c,V,H,B){Hn.call(this,h,{D:"div",K:"ytp-ad-player-overlay",V:[{D:"div",K:"ytp-ad-player-overlay-flyout-cta"},{D:"div",K:"ytp-ad-player-overlay-instream-info"},{D:"div",K:"ytp-ad-player-overlay-skip-or-preview"},{D:"div",K:"ytp-ad-player-overlay-progress-bar"},{D:"div",K:"ytp-ad-player-overlay-instream-user-sentiment"},{D:"div",K:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",W,c,V);this.T=B;this.N=this.vk("ytp-ad-player-overlay-flyout-cta");this.N.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.X=this.vk("ytp-ad-player-overlay-instream-info");this.Y=null;qGD(this)&&(h=GC("div"),g.he(h,"ytp-ad-player-overlay-top-bar-gradients"),W=this.X,W.parentNode&&W.parentNode.insertBefore(h,W),(W=this.api.getVideoData(2))&&W.isListed&&W.title&&(c=new jR(this.api,this.layoutId,this.interactionLoggingClientData,this.oz),c.kN(h),c.init(wc("ad-title"),{text:W.title},this.macros),g.X(this,c)),this.Y=h);this.G=null;this.CM=this.vk("ytp-ad-player-overlay-skip-or-preview");this.Nn=this.vk("ytp-ad-player-overlay-progress-bar"); this.zV=this.vk("ytp-ad-player-overlay-instream-user-sentiment");this.Wk=this.vk("ytp-ad-player-overlay-ad-disclosure-banner");this.W=H;g.X(this,this.W);this.hide()}; qGD=function(h){h=h.api.B();return g.CV(h)&&h.W}; g.Ma=function(h){h&=16777215;var W=[(h&16711680)>>16,(h&65280)>>8,h&255];h=W[0];var c=W[1];W=W[2];h=Number(h);c=Number(c);W=Number(W);if(h!=(h&255)||c!=(c&255)||W!=(W&255))throw Error('"('+h+","+c+","+W+'") is not a valid RGB color');c=h<<16|c<<8|W;return h<16?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)}; g.Fy=function(){}; luh=function(h){var W=new He;var c=new s$;c=y7(c,1,"botguard");h=y7(c,2,h);this.X=fQl(W,s$,1,xvD,h)}; yh=function(h){this.X=new Q$(h)}; n4U=function(){var h=!1;try{h=!!window.sessionStorage.getItem("session_logininfo")}catch(W){h=!0}return(g.X_("INNERTUBE_CLIENT_NAME")==="WEB"||g.X_("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&h}; P8=function(){var h=h===void 0?!0:h;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");NU("LOGIN_INFO","");h&&window.sessionStorage.setItem("from_switch_account","1");h=!0;h=h===void 0?!1:h;var W,c=jCl;c||(c=document.querySelector("#persist_identity"));if(W=c){var V=W.src?(new URL(W.src)).origin:"*";if(h){var H;(H=W.contentWindow)==null||H.postMessage({action:"clear"},V)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var B=window.sessionStorage.getItem("session_logininfo");if(B){var E;(E=W.contentWindow)==null||E.postMessage({loginInfo:B},V)}}}}catch(J){}}; fV=function(h){h&&(h.startsWith("https://accounts.google.com/AddSession")?P8():h.startsWith("https://accounts.google.com/ServiceLogin")?P8():h.startsWith("https://myaccount.google.com")&&g.E5(h).W.endsWith("/youtubeoptions")&&P8());if(g.X_("LOGGED_IN",!0)&&n4U()){var W=g.X_("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=g.E6(window.location.href);c&&W.push(c);c=g.E6(h);g.el(W,c)||!c&&UO(h,"/")?(W=JM(h),(W=p34(W))?(W=PWh(W),W=(W=g.Cb(W)||null)?gO(W):{}):W=null):W=null;W==null&&(W={});c=W;var V=void 0; n4U()?(V||(V=g.X_("LOGIN_INFO")),V?(c.session_logininfo=V,c=!0):c=!1):c=!1;c&&lD(h,W)}}; g.auD=function(h){var W=W===void 0?{}:W;var c=c===void 0?"":c;var V=V===void 0?window:V;h=g.r0(h,W);fV(h);c=g.Eu(h+c);V=V.location;c=Jk(c);c!==void 0&&(V.href=c)}; g.b7=function(h,W,c){W=W===void 0?{}:W;c=c===void 0?!1:c;var V=g.X_("EVENT_ID");V&&(W.ei||(W.ei=V));W&&lD(h,W);c||(fV(h),g.auD(h))}; g.T3=function(h,W,c,V,H){H=H===void 0?!1:H;c&&lD(h,c);c=g.Eu(h);var B=g.$u(c);h!=B&&YZ(Error("Unsafe window.open URL: "+h));h=B;W=W||y6(h).toString(36);try{if(H)return H=h,H=dUN(H),fV(H),g.qo(window,H,W,"attributionsrc")}catch(E){g.pu(E)}fV(h);return g.qo(window,c,W,V)}; eBU=function(h){Na=h}; zBU=function(h){Xy=h}; QCL=function(h){tW=h}; igU=function(){L64=tW=Xy=Na=null}; AZd=function(){var h=h===void 0?window.location.href:h;if(g.ZX("kevlar_disable_theme_param"))return null;var W=Rg(h);if(g.ZX("enable_dark_theme_only_on_shorts")&&W!=null&&W.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var c=g.wO(h).theme;return K6l.get(c)||null}catch(V){}return null}; v8=function(){this.X={};if(this.W=nQv()){var h=g.Cb("CONSISTENCY");h&&Uv5(this,{encryptedTokenJarContents:h})}}; Uv5=function(h,W){if(W.encryptedTokenJarContents&&(h.X[W.encryptedTokenJarContents]=W,typeof W.expirationSeconds==="string")){var c=Number(W.expirationSeconds);setTimeout(function(){delete h.X[W.encryptedTokenJarContents]},c*1E3); h.W&&g.UB("CONSISTENCY",W.encryptedTokenJarContents,c,void 0,!0)}}; ot=function(){this.W=-1;var h=g.X_("LOCATION_PLAYABILITY_TOKEN");g.X_("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=mk(this))&&(h=this.localStorage.get("yt-location-playability-token"));h&&(this.locationPlayabilityToken=h,this.X=void 0)}; mk=function(h){return h.localStorage===void 0?new DL("yt-client-location"):h.localStorage}; g.pV=function(h,W,c){W=W===void 0?!1:W;c=c===void 0?!1:c;var V=g.X_("INNERTUBE_CONTEXT");if(!V)return g.Qq(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};V=g.xF(V);g.ZX("web_no_tracking_params_in_shell_killswitch")||delete V.clickTracking;V.client||(V.client={});var H=V.client;H.clientName==="MWEB"&&H.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(H.clientFormFactor=g.X_("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");H.screenWidthPoints=window.innerWidth;H.screenHeightPoints= window.innerHeight;H.screenPixelDensity=Math.round(window.devicePixelRatio||1);H.screenDensityFloat=window.devicePixelRatio||1;H.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var B=B===void 0?!1:B;g.yY();var E="USER_INTERFACE_THEME_LIGHT";g.Pt(0,165)?E="USER_INTERFACE_THEME_DARK":g.Pt(0,174)?E="USER_INTERFACE_THEME_LIGHT":!g.ZX("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (E="USER_INTERFACE_THEME_DARK");B=B?E:AZd()||E;H.userInterfaceTheme=B;if(!W){if(B=sDN())H.connectionType=B;g.ZX("web_log_effective_connection_type")&&(B=BHl())&&(V.client.effectiveConnectionType=B)}var J;if(g.ZX("web_log_memory_total_kbytes")&&((J=g.k5.navigator)==null?0:J.deviceMemory)){var u;J=(u=g.k5.navigator)==null?void 0:u.deviceMemory;V.client.memoryTotalKbytes=""+J*1E6}g.ZX("web_gcf_hashes_innertube")&&(B=ZcN())&&(u=B.coldConfigData,J=B.coldHashData,B=B.hotHashData,V.client.configInfo=V.client.configInfo|| {},u&&(V.client.configInfo.coldConfigData=u),J&&(V.client.configInfo.coldHashData=J),B&&(V.client.configInfo.hotHashData=B));u=g.wO(g.k5.location.href);!g.ZX("web_populate_internal_geo_killswitch")&&u.internalcountrycode&&(H.internalGeo=u.internalcountrycode);H.clientName==="MWEB"||H.clientName==="WEB"?(H.mainAppWebInfo||(H.mainAppWebInfo={}),H.mainAppWebInfo.graftUrl=g.k5.location.href,g.ZX("kevlar_woffle")&&w9p.instance&&(u=w9p.instance,H.mainAppWebInfo.pwaInstallabilityStatus=!u.X&&u.W?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),H.mainAppWebInfo.webDisplayMode=CS(),H.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):H.clientName==="TVHTML5"&&(!g.ZX("web_lr_app_quality_killswitch")&&(u=g.X_("LIVING_ROOM_APP_QUALITY"))&&(H.tvAppInfo=Object.assign(H.tvAppInfo||{},{appQuality:u})),u=g.X_("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(H.tvAppInfo=Object.assign(H.tvAppInfo||{},{certificationScope:u}));if(!g.ZX("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var d=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(T){}d=void 0}d&&(H.timeZone=d)}(d=qC())?H.experimentsToken=d:delete H.experimentsToken;d=x2();v8.instance||(v8.instance=new v8);V.request=Object.assign({},V.request,{internalExperimentFlags:d,consistencyTokenJars:sO(v8.instance.X)});!g.ZX("web_prequest_context_killswitch")&&(d=g.X_("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(V.request.externalPrequestContext=d);H=g.yY();d=g.Pt(0,58);H=H.get("gsml","");V.user=Object.assign({}, V.user);d&&(V.user.enableSafetyMode=d);H&&(V.user.lockedSafetyMode=!0);g.ZX("warm_op_csn_cleanup")?c&&(W=g.q_())&&(V.clientScreenNonce=W):!W&&(W=g.q_())&&(V.clientScreenNonce=W);h&&(V.clickTracking={clickTrackingParams:h});if(h=g.c2("yt.mdx.remote.remoteClient_"))V.remoteClient=h;ot.getInstance().setLocationOnInnerTubeContext(V);try{var G=Hf(),Z=G.bid;delete G.bid;V.adSignalsInfo={params:[],bid:Z};for(var r=g.e(Object.entries(G)),q=r.next();!q.done;q=r.next()){var x=g.e(q.value),z=x.next().value, L=x.next().value;G=z;Z=L;h=void 0;(h=V.adSignalsInfo.params)==null||h.push({key:G,value:""+Z})}var M,U;if(((M=V.client)==null?void 0:M.clientName)==="TVHTML5"||((U=V.client)==null?void 0:U.clientName)==="TVHTML5_UNPLUGGED"){var y=g.X_("INNERTUBE_CONTEXT");y.adSignalsInfo&&(V.adSignalsInfo.advertisingId=y.adSignalsInfo.advertisingId,V.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",V.adSignalsInfo.limitAdTracking=y.adSignalsInfo.limitAdTracking)}}catch(T){g.Qq(T)}return V}; F6l=function(h,W){if(!h)return!1;var c,V=(c=g.v(h,CC4))==null?void 0:c.signal;if(V&&W.t$)return!!W.t$[V];var H;if((c=(H=g.v(h,MPv))==null?void 0:H.request)&&W.Ne)return!!W.Ne[c];for(var B in h)if(W.b5[B])return!0;return!1}; yZl=function(h){var W={"Content-Type":"application/json"};g.X_("EOM_VISITOR_DATA")?W["X-Goog-EOM-Visitor-Id"]=g.X_("EOM_VISITOR_DATA"):g.X_("VISITOR_DATA")&&(W["X-Goog-Visitor-Id"]=g.X_("VISITOR_DATA"));W["X-Youtube-Bootstrap-Logged-In"]=g.X_("LOGGED_IN",!1);g.X_("DEBUG_SETTINGS_METADATA")&&(W["X-Debug-Settings-Metadata"]=g.X_("DEBUG_SETTINGS_METADATA"));h!=="cors"&&((h=g.X_("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(W["X-Youtube-Client-Name"]=h),(h=g.X_("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(W["X-Youtube-Client-Version"]= h),(h=g.X_("CHROME_CONNECTED_HEADER"))&&(W["X-Youtube-Chrome-Connected"]=h),(h=g.X_("DOMAIN_ADMIN_STATE"))&&(W["X-Youtube-Domain-Admin-State"]=h),g.X_("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(h=g.X_("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(W["X-YouTube-Lava-Device-Context"]=h));return W}; PC5=function(){this.X={}}; It=function(){this.mappings=new PC5}; Yx=function(h){return function(){return new h}}; bgL=function(h){var W=W===void 0?"UNKNOWN_INTERFACE":W;if(h.length===1)return h[0];var c=fu5[W];if(c){c=new RegExp(c);for(var V=g.e(h),H=V.next();!H.done;H=V.next())if(H=H.value,c.exec(H))return H}var B=[];Object.entries(fu5).forEach(function(E){var J=g.e(E);E=J.next().value;J=J.next().value;W!==E&&B.push(J)}); c=new RegExp(B.join("|"));h.sort(function(E,J){return E.length-J.length}); V=g.e(h);for(H=V.next();!H.done;H=V.next())if(H=H.value,!c.exec(H))return H;return h[0]}; g.OA=function(h){return"/youtubei/v1/"+bgL(h)}; SR=function(){}; gT=function(){}; Dw=function(){}; wT=function(h){return g.c2("ytcsi."+(h||"")+"data_")||TwL(h)}; Nwp=function(){var h=wT();h.info||(h.info={});return h.info}; kx=function(h){h=wT(h);h.metadata||(h.metadata={});return h.metadata}; hm=function(h){h=wT(h);h.tick||(h.tick={});return h.tick}; W5=function(h){h=wT(h);if(h.gel){var W=h.gel;W.gelInfos||(W.gelInfos={});W.gelTicks||(W.gelTicks={})}else h.gel={gelTicks:{},gelInfos:{}};return h.gel}; Xpl=function(h){h=W5(h);h.gelInfos||(h.gelInfos={});return h.gelInfos}; c5=function(h){var W=wT(h).nonce;W||(W=g.Ge(16),wT(h).nonce=W);return W}; TwL=function(h){var W={tick:{},info:{}};g.hS("ytcsi."+(h||"")+"data_",W);return W}; Vy=function(){var h=g.c2("ytcsi.debug");h||(h=[],g.hS("ytcsi.debug",h),g.hS("ytcsi.reference",{}));return h}; $9=function(h){h=h||"";var W=tPD();if(W[h])return W[h];var c=Vy(),V={timerName:h,info:{},tick:{},span:{},jspbInfo:[]};c.push(V);return W[h]=V}; v4T=function(h){h=h||"";var W=tPD();W[h]&&delete W[h];var c=Vy(),V={timerName:h,info:{},tick:{},span:{},jspbInfo:[]};c.push(V);W[h]=V}; tPD=function(){var h=g.c2("ytcsi.reference");if(h)return h;Vy();return g.c2("ytcsi.reference")}; s0=function(h){return mvp[h]||"LATENCY_ACTION_UNKNOWN"}; H5=function(h,W){Er.call(this,1,arguments);this.timer=W}; B5=function(){this.X=0}; E0=function(){B5.instance||(B5.instance=new B5);return B5.instance}; Jm=function(h,W){R2[W]=R2[W]||{count:0};var c=R2[W];c.count++;c.time=(0,g.aC)();h.X||(h.X=g.II(0,function(){var V=(0,g.aC)(),H;for(H in R2)R2[H]&&V-R2[H].time>6E4&&delete R2[H];h&&(h.X=0)},5E3)); return c.count>5?(c.count===6&&Math.random()*1E5<1&&(c=new g.tP("CSI data exceeded logging limit with key",W.split("_")),W.indexOf("plev")>=0||g.Lx(c)),!0):!1}; o47=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; pp7=function(){var h;if(g.ZX("csi_use_performance_navigation_timing")){var W,c,V,H=uh==null?void 0:(h=uh.getEntriesByType)==null?void 0:(W=h.call(uh,"navigation"))==null?void 0:(c=W[0])==null?void 0:(V=c.toJSON)==null?void 0:V.call(c);H?(H.requestStart=dn(H.requestStart),H.responseEnd=dn(H.responseEnd),H.redirectStart=dn(H.redirectStart),H.redirectEnd=dn(H.redirectEnd),H.domainLookupEnd=dn(H.domainLookupEnd),H.connectStart=dn(H.connectStart),H.connectEnd=dn(H.connectEnd),H.responseStart=dn(H.responseStart), H.secureConnectionStart=dn(H.secureConnectionStart),H.domainLookupStart=dn(H.domainLookupStart),H.isPerformanceNavigationTiming=!0,h=H):h=uh.timing}else h=g.ZX("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(uh.timing)):uh.timing;return h}; dn=function(h){return Math.round(GO()+h)}; GO=function(){return(g.ZX("csi_use_time_origin")||g.ZX("csi_use_time_origin_tvhtml5"))&&uh.timeOrigin?Math.floor(uh.timeOrigin):uh.timing.navigationStart}; rn=function(h,W){Zj("_start",h,W)}; qE=function(h,W){if(!g.ZX("web_csi_action_sampling_enabled")||!wT(W).actionDisabled){var c=$9(W||"");HB(c.info,h);h.loadType&&(c=h.loadType,kx(W).loadType=c);HB(Xpl(W),h);c=c5(W);W=wT(W).cttAuthInfo;E0().info(h,c,W)}}; Iuk=function(){var h,W,c,V;return((V=Lq().resolve(j9(cY))==null?void 0:(h=V2())==null?void 0:(W=h.loggingHotConfig)==null?void 0:(c=W.csiConfig)==null?void 0:c.debugTicks)!=null?V:[]).map(function(H){return Object.values(H)[0]})}; Zj=function(h,W,c){if(!g.ZX("web_csi_action_sampling_enabled")||!wT(c).actionDisabled){var V=c5(c),H;if(H=g.ZX("web_csi_debug_sample_enabled")&&V){(Lq().resolve(j9(cY))==null?0:V2())&&!YG5&&(YG5=!0,Zj("gcfl",(0,g.aC)(),c));var B,E,J;H=(Lq().resolve(j9(cY))==null?void 0:(B=V2())==null?void 0:(E=B.loggingHotConfig)==null?void 0:(J=E.csiConfig)==null?void 0:J.debugSampleWeight)||0;if(B=H!==0)b:{B=Iuk();if(B.length>0)for(E=0;Ec.duration?V:c},{duration:0}))&&W.startTime>0&&W.responseEnd>0&&(Zj("wffs",dn(W.startTime)),Zj("wffe",dn(W.responseEnd)))}; hjU=function(h,W,c){uh&&uh.measure&&(h.startsWith("measure_")||(h="measure_"+h),c?uh.measure(h,W,c):W?uh.measure(h,W):uh.measure(h))}; Wav=function(h){var W=x9("aft",h);if(W)return W;W=g.X_((h||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=W.length,V=0;V0&&qE(W);W={isNavigation:!0,actionType:s0(g.X_("TIMING_ACTION"))};var c=g.X_("PREVIOUS_ACTION");c&&(W.previousAction=s0(c));if(c=g.X_("CLIENT_PROTOCOL"))W.httpProtocol=c;if(c=g.X_("CLIENT_TRANSPORT"))W.transportProtocol=c;(c=g.q_())&&c!=="UNDEFINED_CSN"&&(W.clientScreenNonce=c);c=g4p();if(c===1||c===-1)W.isVisible= !0;c=kx().loadType==="cold";var V=Nwp();c||(c=V.yt_lt==="cold");if(c){W.loadType="cold";c=Nwp();V=pp7();var H=GO(),B=g.X_("CSI_START_TIMESTAMP_MILLIS",0);B>0&&!g.ZX("embeds_web_enable_csi_start_override_killswitch")&&(H=B);H&&(Zj("srt",V.responseStart),c.prerender!==1&&rn(H));c=$0Q();c>0&&Zj("fpt",c);c=pp7();c.isPerformanceNavigationTiming&&qE({performanceNavigationTiming:!0},void 0);Zj("nreqs",c.requestStart,void 0);Zj("nress",c.responseStart,void 0);Zj("nrese",c.responseEnd,void 0);c.redirectEnd- c.redirectStart>0&&(Zj("nrs",c.redirectStart,void 0),Zj("nre",c.redirectEnd,void 0));c.domainLookupEnd-c.domainLookupStart>0&&(Zj("ndnss",c.domainLookupStart,void 0),Zj("ndnse",c.domainLookupEnd,void 0));c.connectEnd-c.connectStart>0&&(Zj("ntcps",c.connectStart,void 0),Zj("ntcpe",c.connectEnd,void 0));c.secureConnectionStart>=GO()&&c.connectEnd-c.secureConnectionStart>0&&(Zj("nstcps",c.secureConnectionStart,void 0),Zj("ntcpe",c.connectEnd,void 0));uh&&"getEntriesByType"in uh&&k1N();c=[];if(document.querySelector&& uh&&uh.getEntriesByName)for(var E in jq)jq.hasOwnProperty(E)&&(V=jq[E],wph(E,V)&&c.push(V));if(c.length>0)for(W.resourceInfo=[],E=g.e(c),c=E.next();!c.done;c=E.next())W.resourceInfo.push({resourceCache:c.value})}qE(W);W=W5();W.preLoggedGelInfos||(W.preLoggedGelInfos=[]);E=W.preLoggedGelInfos;W=Xpl();c=void 0;for(V=0;V-1&&(delete Uv["@type"],O=Uv);z&&h.W.has(z)&&h.W.delete(z);((W2=W.config)==null?0:W2.msk)&&eq(W.config.msk);if(O||(lK=h.G)==null||!lK.ISN(W.input,W.Bj)){Fl.bB(15);break}return g.F(Fl,h.G.W1k(W.input,W.Bj),16);case 16:O=Fl.X;case 15:return ejv(h, O,W),((Rf=W.config)==null?0:Rf.uDB)&&eq(W.config.uDB),V(),Fl.return(O||void 0)}})}; x0k=function(h,W){a:{h=h.pE;var c,V=(c=g.v(W,CC4))==null?void 0:c.signal;if(V&&h.t$&&(c=h.t$[V])){var H=c();break a}var B;if((c=(B=g.v(W,MPv))==null?void 0:B.request)&&h.Ne&&(B=h.Ne[c])){H=B();break a}for(H in W)if(h.b5[H]&&(W=h.b5[H])){H=W();break a}H=void 0}if(H!==void 0)return Promise.resolve(H)}; nsQ=function(h,W,c){var V,H,B,E,J,u,d;return g.P(function(G){if(G.W==1){B=((V=W)==null?void 0:(H=V.nf)==null?void 0:H.identity)||BY;u=(E=W)==null?void 0:(J=E.nf)==null?void 0:J.sessionIndex;var Z=g.AF(h.X.VQ(B,{sessionIndex:u}));return g.F(G,Z,2)}d=G.X;return G.return(Promise.resolve(Object.assign({},yZl(c),d)))})}; l8U=function(h,W,c){var V,H=(W==null?void 0:(V=W.nf)==null?void 0:V.identity)||BY,B;W=W==null?void 0:(B=W.nf)==null?void 0:B.sessionIndex;h=h.X.VQ(H,{sessionIndex:W});return Object.assign({},yZl(c),h)}; ME=function(){}; F9=function(){}; yy=function(h){this.N=h}; P5=function(){}; fE=function(){}; bh=function(){}; TO=function(){}; g.NE=function(h,W){var c=g.tN.apply(2,arguments);h=h===void 0?0:h;g.tP.call(this,W,c);this.errorType=h;Object.setPrototypeOf(this,this.constructor.prototype)}; X9=function(h,W,c,V){this.X=h;this.W=W;this.G=c;this.Y=V}; QST=function(h,W,c){if(h.X){var V=Rg(ag(W,"key"))||"/UNKNOWN_PATH";h.X.start(V)}V=c;g.ZX("wug_networking_gzip_request")&&(V=pDp(c));var H;return new ((H=h.Y)!=null?H:window.Request)(W,V)}; g.v5=function(h,W){if(!tm){var c=Lq();al(c,{MR:LaT,q8:X9});var V={b5:{feedbackEndpoint:Yx(P5),modifyChannelNotificationPreferenceEndpoint:Yx(fE),playlistEditEndpoint:Yx(bh),shareEntityEndpoint:Yx(yy),subscribeEndpoint:Yx(ME),unsubscribeEndpoint:Yx(F9),webPlayerShareEntityServiceEndpoint:Yx(TO)}},H=ot.getInstance(),B={};H&&(B.client_location=H);h===void 0&&(h=kTQ());W===void 0&&(W=c.resolve(LaT));qrv(V,W,h,B);al(c,{MR:ijk,F7:Am.instance});tm=c.resolve(ijk)}return tm}; Ka5=function(h){var W=new B9;if(h.interpreterJavascript){var c=f9N(h.interpreterJavascript);c=n6(c).toString();var V=new sE;y7(V,6,c);n7(W,sE,1,V,Yw)}else h.interpreterUrl&&(c=l$(h.interpreterUrl),c=cr(c).toString(),V=new H9,y7(V,4,c),n7(W,H9,2,V,Yw));h.interpreterHash&&Po(W,3,h.interpreterHash,Yw);h.program&&Po(W,4,h.program,Yw);h.globalName&&Po(W,5,h.globalName,Yw);h.clientExperimentsStateBlob&&Po(W,7,h.clientExperimentsStateBlob,Yw);return W}; mC=function(h){var W={};h=h.split("&");h=g.e(h);for(var c=h.next();!c.done;c=h.next())c=c.value.split("="),c.length===2&&(W[c[0]]=c[1]);return W}; yUQ=function(){if(g.ZX("bg_st_hr"))return"havuokmhhs-0";var h,W=((h=performance)==null?void 0:h.timeOrigin)||0;return"havuokmhhs-"+Math.floor(W)}; o2=function(h){this.X=h}; ALk=function(){return new Promise(function(h){var W=window.top;W.ntpevasrs!==void 0?h(new o2(W.ntpevasrs)):(W.ntpqfbel===void 0&&(W.ntpqfbel=[]),W.ntpqfbel.push(function(c){h(new o2(c))}))})}; Cql=function(){if(gJ()){var h=g.X_("PLAYER_VARS",{});if(g.Za(h,"privembed",!1)!="1"&&!ieL(h)){var W=function(){pE=!0;"google_ad_status"in window?NU("DCLKSTAT",1):NU("DCLKSTAT",2)}; try{g.cB("//static.doubleclick.net/instream/ad_status.js",W)}catch(c){}U0d.push(g.Py.rp(function(){if(!(pE||"google_ad_status"in window)){try{if(W){var c=""+g.EI(W),V=LPd[c];V&&g.gI(V)}}catch(H){}pE=!0;NU("DCLKSTAT",3)}},5E3))}}}; I2=function(){var h=Number(g.X_("DCLKSTAT",0));return isNaN(h)?0:h}; gn=function(h,W,c){var V=this;this.network=h;this.options=W;this.W=c;this.X=null;if(W.mEf){var H=new g.R_;this.X=H.promise;g.k5.ytAtRC&&pS(function(){var B,E;return g.P(function(J){if(J.W==1){if(!g.k5.ytAtRC)return J.return();B=Y9(null);return g.F(J,O0(V,B),2)}E=J.X;g.k5.ytAtRC&&g.k5.ytAtRC(JSON.stringify(E));g.zQ(J)})},2); ALk().then(function(B){var E,J,u,d;return g.P(function(G){if(G.W==1)return B.bindInnertubeChallengeFetcher(function(Z){return O0(V,Y9(Z))}),g.F(G,gx(),2); E=G.X;J=B.getLatestChallengeResponse();u=J.challenge;if(!u)throw Error("BGE_MACIL");d={challenge:u,vY:mC(u),py:E,bgChallenge:new B9};H.resolve(d);B.registerChallengeFetchedCallback(function(Z){Z=Z.challenge;if(!Z)throw Error("BGE_MACR");Z={challenge:Z,vY:mC(Z),py:E,bgChallenge:new B9};V.X=Promise.resolve(Z)}); g.zQ(G)})})}else W.preload&&M5L(this,new Promise(function(B){g.II(0,function(){B(Sq(V))},0)}))}; Y9=function(h){var W={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};h&&(W.interpreterHash=h);return W}; Sq=function(h,W){W=W===void 0?0:W;var c,V,H,B,E,J,u,d,G,Z,r,q;return g.P(function(x){switch(x.W){case 1:c=Y9(dl().X);if(g.ZX("att_fet_ks"))return g.Qp(x,7),g.F(x,O0(h,c),9);g.Qp(x,4);return g.F(x,Fa4(h,c),6);case 6:E=x.X;H=E.RsB;B=E.qXW;V=E;g.AN(x,3);break;case 4:return g.CU(x),g.Lx(Error("Failed to fetch attestation challenge after "+(W+" attempts; not retrying for 24h."))),Dj(h,864E5),x.return({challenge:"",vY:{},py:void 0,bgChallenge:void 0});case 9:V=x.X;if(!V)throw Error("Fetching Attestation challenge returned falsy"); if(!V.challenge)throw Error("Missing Attestation challenge");H=V.challenge;B=mC(H);if("c1a"in B&&(!V.bgChallenge||!V.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.AN(x,3);break;case 7:J=g.CU(x);g.Lx(J);W++;if(W>=5)return g.Lx(Error("Failed to fetch attestation challenge after "+(W+" attempts; not retrying for 24h."))),Dj(h,864E5),x.return({challenge:"",vY:{},py:void 0,bgChallenge:void 0});u=1E3*Math.pow(2,W-1)+Math.random()*1E3;return x.return(new Promise(function(z){g.II(0, function(){z(Sq(h,W))},u)})); case 3:d=Number(B.t)||7200;Dj(h,d*1E3);G=void 0;if(!("c1a"in B&&V.bgChallenge)){x.bB(10);break}Z=Ka5(V.bgChallenge);g.Qp(x,11);return g.F(x,yAh(dl(),Z),13);case 13:g.AN(x,12);break;case 11:return r=g.CU(x),g.Lx(r),x.return({challenge:H,vY:B,py:G,bgChallenge:Z});case 12:return g.Qp(x,14),G=new JE({challenge:Z,DF:{ev:"aGIf"}}),g.F(x,G.pA,16);case 16:g.AN(x,10);break;case 14:q=g.CU(x),g.Lx(q),G=void 0;case 10:return x.return({challenge:H,vY:B,py:G,bgChallenge:Z})}})}; O0=function(h,W){var c;return g.P(function(V){c=h.W;if(!c||c.zj())return V.return(O0(h.network,W));KE("att_pna",void 0,"attestation_challenge_fetch");return V.return(new Promise(function(H){c.Ya("publicytnetworkstatus-online",function(){O0(h.network,W).then(H)})}))})}; yLh=function(h){if(!h)throw Error("Fetching Attestation challenge returned falsy");if(!h.challenge)throw Error("Missing Attestation challenge");var W=h.challenge,c=mC(W);if("c1a"in c&&(!h.bgChallenge||!h.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},h,{RsB:W,qXW:c})}; Fa4=function(h,W){var c,V,H,B,E;return g.P(function(J){switch(J.W){case 1:c=void 0,V=0,H={};case 2:if(!(V<5)){J.bB(4);break}if(!(V>0)){J.bB(5);break}H.Sd=1E3*Math.pow(2,V-1)+Math.random()*1E3;return g.F(J,new Promise(function(u){return function(d){g.II(0,function(){d(void 0)},u.Sd)}}(H)),5); case 5:return g.Qp(J,7),g.F(J,O0(h,W),9);case 9:return B=J.X,J.return(yLh(B));case 7:c=E=g.CU(J),E instanceof Error&&g.Lx(E);case 8:V++;H={Sd:void 0};J.bB(2);break;case 4:throw c;}})}; M5L=function(h,W){h.X=W}; Pql=function(h){var W,c,V;return g.P(function(H){if(H.W==1)return g.F(H,Promise.race([h.X,null]),2);W=H.X;var B=Sq(h);h.X=B;(c=W)==null||(V=c.py)==null||V.dispose();g.zQ(H)})}; Dj=function(h,W){function c(){var H;return g.P(function(B){H=V-Date.now();return H<1E3?g.F(B,Pql(h),0):(pS(c,0,Math.min(H,6E4)),B.bB(0))})} var V=Date.now()+W;c()}; f8k=function(h,W){return new Promise(function(c){g.II(0,function(){c(W())},h)})}; g.bjN=function(h,W){var c;return g.P(function(V){var H=g.c2("yt.aba.att");return(c=H?H:gn.instance!==void 0?gn.instance.G.bind(gn.instance):null)?V.return(c("ENGAGEMENT_TYPE_PLAYBACK",h,W)):V.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.TIl=function(){var h;return(h=(h=g.c2("yt.aba.att2"))?h:gn.instance!==void 0?gn.instance.Y.bind(gn.instance):null)?h():Promise.resolve(!1)}; XYl=function(h,W){var c=g.c2("ytDebugData.callbacks");c||(c={},g.hS("ytDebugData.callbacks",c));if(g.ZX("web_dd_iu")||NIp.includes(h))c[h]=W}; wn=function(){var h=t5L;var W=W===void 0?[]:W;var c=c===void 0?[]:c;W=Udk.apply(null,[CZl.apply(null,g.rN(W))].concat(g.rN(c)));this.store=F3Q(h,void 0,W)}; g.k9=function(h,W,c){for(var V=Object.assign({},h),H=g.e(Object.keys(W)),B=H.next();!B.done;B=H.next()){B=B.value;var E=h[B],J=W[B];if(J===void 0)delete V[B];else if(E===void 0)V[B]=J;else if(Array.isArray(J)&&Array.isArray(E))V[B]=c?[].concat(g.rN(E),g.rN(J)):J;else if(!Array.isArray(J)&&g.H2(J)&&!Array.isArray(E)&&g.H2(E))V[B]=g.k9(E,J,c);else if(typeof J===typeof E)V[B]=J;else return W=new g.tP("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:B,S4z:E,updateValue:J}),g.Qq(W), h}return V}; hQ=function(h){var W=this;h=h===void 0?[]:h;this.X=[];this.G=this.W=0;this.Y=void 0;this.totalLength=0;h.forEach(function(c){W.append(c)})}; vsp=function(h,W){return h.X.length===0?!1:(h=h.X[h.X.length-1])&&h.buffer===W.buffer&&h.byteOffset+h.length===W.byteOffset}; W7=function(h,W){W=g.e(W.X);for(var c=W.next();!c.done;c=W.next())h.append(c.value)}; c7=function(h,W,c){return h.split(W).t2.split(c).zF}; Vl=function(h){h.Y=void 0;h.W=0;h.G=0}; $W=function(h,W,c){h.isFocused(W);return W-h.G+c<=h.X[h.W].length}; m04=function(h){if(!h.Y){var W=h.X[h.W];h.Y=new DataView(W.buffer,W.byteOffset,W.length)}return h.Y}; osN=function(h,W,c){W=W===void 0?0:W;c=c===void 0?-1:c;if(!h.totalLength||!c)return new DataView(new ArrayBuffer(0));c<0&&(c=h.totalLength-W);h.focus(W);if(!$W(h,W,c)){var V=h.W,H=h.G;h.focus(W+c-1);H=new Uint8Array(h.G+h.X[h.W].length-H);for(var B=0,E=V;E<=h.W;E++)H.set(h.X[E],B),B+=h.X[E].length;h.X.splice(V,h.W-V+1,H);Vl(h);h.focus(W)}V=h.X[h.W];return new DataView(V.buffer,V.byteOffset+W-h.G,c)}; sk=function(h,W,c){h=osN(h,W===void 0?0:W,c===void 0?-1:c);return new Uint8Array(h.buffer,h.byteOffset,h.byteLength)}; H7=function(h,W,c){h=sk(h,W===void 0?0:W,c===void 0?-1:c);W=new Uint8Array(h.length);try{W.set(h)}catch(V){for(c=0;c>10;B=56320|B&1023}JQ[H++]=B}}B=String.fromCharCode.apply(String,JQ); H<1024&&(B=B.substring(0,H));c.push(B)}return c.join("")}; G6=function(h,W){var c;if((c=dr)==null?0:c.encodeInto)return W=dr.encodeInto(h,W),W.read>6|192:((H&64512)===55296&&V+1>18|240,W[c++]=H>>12&63|128):W[c++]=H>>12|224,W[c++]=H>>6&63|128),W[c++]=H&63|128)}return c}; ZI=function(h){if(dr)return dr.encode(h);var W=new Uint8Array(Math.ceil(h.length*1.2)),c=G6(h,W);W.lengthc&&(W=W.subarray(0,c));return W}; rr=function(h){this.X=h;this.pos=0;this.W=-1}; ql=function(h){var W=B7(h.X,h.pos);++h.pos;if(W<128)return W;for(var c=W&127,V=1;W>=128;)W=B7(h.X,h.pos),++h.pos,V*=128,c+=(W&127)*V;return c}; xW=function(h,W){var c=h.W;for(h.W=-1;h.pos+1<=h.X.totalLength;){c<0&&(c=ql(h));var V=c>>3,H=c&7;if(V===W)return!0;if(V>W){h.W=c;break}c=-1;switch(H){case 0:ql(h);break;case 1:h.pos+=8;break;case 2:V=ql(h);h.pos+=V;break;case 5:h.pos+=4}}return!1}; lQ=function(h,W){if(xW(h,W))return ql(h)}; YrN=function(h,W){if(xW(h,W))return W=sk(h.X,h.pos,8),h.pos+=8,(new DataView(W.buffer,W.byteOffset,W.byteLength)).getFloat64(0,!0)}; nP=function(h,W){if(xW(h,W))return!!ql(h)}; jU=function(h,W){if(xW(h,W)){W=ql(h);var c=sk(h.X,h.pos,W);h.pos+=W;return c}}; ab=function(h,W){if(h=jU(h,W))return g.uQ(h)}; eU=function(h,W,c){if(h=jU(h,W))return c(new rr(new hQ([h])))}; z6=function(h,W){for(var c=[];xW(h,W);)c.push(ql(h));return c.length?c:void 0}; Ql=function(h,W,c){for(var V=[],H;H=jU(h,W);)V.push(c(new rr(new hQ([H]))));return V.length?V:void 0}; LP=function(h,W){h=h instanceof Uint8Array?new hQ([h]):h;return W(new rr(h))}; OjN=function(h,W){h=new Uint8Array(h);W&&h.set(W);return h}; Sr7=function(h){this.pos=0;this.W=[];this.X=OjN(h===void 0?4096:h);this.view=new DataView(this.X.buffer,this.X.byteOffset,this.X.byteLength)}; iQ=function(h,W){W=h.pos+W;if(!(h.X.length>=W)){for(var c=h.X.length*2;c268435455){iQ(h,4);for(var c=W&1073741823,V=0;V<4;V++)h.view.setUint8(h.pos,c&127|128),c>>=7,h.pos+=1;W=Math.floor(W/268435456)}for(iQ(h,4);W>127;)h.view.setUint8(h.pos,W&127|128),W>>=7,h.pos+=1;h.view.setUint8(h.pos,W);h.pos+=1}; Nl=function(h,W,c){c!==void 0&&(KP(h,W*8),KP(h,c))}; Xc=function(h,W,c){c!==void 0&&Nl(h,W,c?1:0)}; tQ=function(h,W,c){c!==void 0&&(KP(h,W*8+2),W=c.length,KP(h,W),iQ(h,W),h.X.set(c,h.pos),h.pos+=W)}; v7=function(h,W,c){c!==void 0&&(gs7(h,W,Math.ceil(Math.log2(c.length*4+2)/7)),iQ(h,c.length*1.2),W=G6(c,h.X.subarray(h.pos)),h.pos+W>h.X.length&&(iQ(h,W),W=G6(c,h.X.subarray(h.pos))),h.pos+=W,D0N(h))}; gs7=function(h,W,c){c=c===void 0?2:c;KP(h,W*8+2);h.W.push(h.pos);h.W.push(c);h.pos+=c}; D0N=function(h){for(var W=h.W.pop(),c=h.W.pop(),V=h.pos-c-W;W--;){var H=W?128:0;h.view.setUint8(c++,V&127|H);V>>=7}}; m2=function(h,W,c,V,H){c&&(gs7(h,W,H===void 0?3:H),V(h,c),D0N(h))}; g.ob=function(h,W){var c=new Sr7(4096);W(c,h);return new Uint8Array(c.X.buffer,c.X.byteOffset,c.pos)}; g.pP=function(h){var W=new rr(new hQ([A3(decodeURIComponent(h))]));h=ab(W,2);W=lQ(W,4);var c=wYd[W];if(typeof c==="undefined")throw h=new g.tP("Failed to recognize field number",{name:"EntityKeyHelperError",mSn:W}),g.Qq(h),h;return{bv:W,entityType:c,entityId:h}}; g.Ib=function(h,W){var c=c===void 0?0:c;var V=new Sr7;tQ(V,2,ZI(h));h=kZp[W];if(typeof h==="undefined")throw c=new g.tP("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:W}),g.Qq(c),c;Nl(V,4,h);Nl(V,5,1);W=new Uint8Array(V.X.buffer,V.X.byteOffset,V.pos);return encodeURIComponent(g.i6(W,c))}; YW=function(h,W,c,V){if(V===void 0)return V=Object.assign({},h[W]||{}),c=(delete V[c],V),V={},Object.assign({},h,(V[W]=c,V));var H={},B={};return Object.assign({},h,(B[W]=Object.assign({},h[W],(H[c]=V,H)),B))}; htN=function(h,W,c,V,H){var B=h[W];if(B==null||!B[c])return h;V=g.k9(B[c],V,H==="REPEATED_FIELDS_MERGE_OPTION_APPEND");H={};B={};return Object.assign({},h,(B[W]=Object.assign({},h[W],(H[c]=V,H)),B))}; W5h=function(h,W){h=h===void 0?{}:h;switch(W.type){case "ENTITY_LOADED":return W.payload.reduce(function(V,H){var B,E=(B=H.options)==null?void 0:B.persistenceOption;if(E&&E!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&E!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return V;if(!H.entityKey)return g.Qq(Error("Missing entity key")),V;if(H.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!H.payload)return H=new g.tP("REPLACE entity mutation is missing a payload",{entityKey:H.entityKey}),g.Qq(H),V;var J=g.VW(H.payload); return YW(V,J,H.entityKey,H.payload[J])}if(H.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{H=H.entityKey;try{var u=g.pP(H).entityType;J=YW(V,u,H);break a}catch(Z){if(Z instanceof Error){H=new g.tP("Failed to deserialize entity key",{entityKey:H,originalMessage:Z.message});g.Qq(H);J=V;break a}throw Z;}J=void 0}return J}if(H.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!H.payload)return H=new g.tP("UPDATE entity mutation is missing a payload",{entityKey:H.entityKey}),g.Qq(H),V;J=g.VW(H.payload);var d,G;return htN(V, J,H.entityKey,H.payload[J],(d=H.fieldMask)==null?void 0:(G=d.mergeOptions)==null?void 0:G.repeatedFieldsMergeOption)}return V},h); case "REPLACE_ENTITY":var c=W.payload;return YW(h,c.entityType,c.key,c.fd);case "REPLACE_ENTITIES":return Object.keys(W.payload).reduce(function(V,H){var B=W.payload[H];return Object.keys(B).reduce(function(E,J){return YW(E,H,J,B[J])},V)},h); case "UPDATE_ENTITY":return c=W.payload,htN(h,c.entityType,c.key,c.fd,c.f5B);default:return h}}; Ok=function(h,W,c){return h[W]?h[W][c]||null:null}; SU=function(h){return window.Int32Array?new Int32Array(h):Array(h)}; Wk=function(h){g.N.call(this);this.counter=[0,0,0,0];this.W=new Uint8Array(16);this.X=16;if(!cn5){var W,c=new Uint8Array(256),V=new Uint8Array(256);var H=1;for(W=0;W<256;W++)c[H]=W,V[W]=H,H^=H<<1^(H>>7&&283);gr=new Uint8Array(256);DI=SU(256);wr=SU(256);kW=SU(256);hC=SU(256);for(var B=0;B<256;B++){H=B?V[255^c[B]]:0;H^=H<<1^H<<2^H<<3^H<<4;H=H&255^H>>>8^99;gr[B]=H;W=H<<1^(H>>7&&283);var E=W^H;DI[B]=W<<24|H<<16|H<<8|E;wr[B]=E<<24|DI[B]>>>8;kW[B]=H<<24|wr[B]>>>8;hC[B]=H<<24|kW[B]>>>8}cn5=!0}H=SU(44);for(c= 0;c<4;c++)H[c]=h[4*c]<<24|h[4*c+1]<<16|h[4*c+2]<<8|h[4*c+3];for(V=1;c<44;c++)h=H[c-1],c%4||(h=(gr[h>>16&255]^V)<<24|gr[h>>8&255]<<16|gr[h&255]<<8|gr[h>>>24],V=V<<1^(V>>7&&283)),H[c]=H[c-4]^h;this.key=H}; V9N=function(h){for(var W=h.key,c=h.counter[0]^W[0],V=h.counter[1]^W[1],H=h.counter[2]^W[2],B=h.counter[3]^W[3],E=3;E>=0&&!(h.counter[E]=-~h.counter[E]);E--);for(var J,u,d=4;d<40;)E=DI[c>>>24]^wr[V>>16&255]^kW[H>>8&255]^hC[B&255]^W[d++],J=DI[V>>>24]^wr[H>>16&255]^kW[B>>8&255]^hC[c&255]^W[d++],u=DI[H>>>24]^wr[B>>16&255]^kW[c>>8&255]^hC[V&255]^W[d++],B=DI[B>>>24]^wr[c>>16&255]^kW[V>>8&255]^hC[H&255]^W[d++],c=E,V=J,H=u;h=h.W;E=W[40];h[0]=gr[c>>>24]^E>>>24;h[1]=gr[V>>16&255]^E>>16&255;h[2]=gr[H>>8&255]^ E>>8&255;h[3]=gr[B&255]^E&255;E=W[41];h[4]=gr[V>>>24]^E>>>24;h[5]=gr[H>>16&255]^E>>16&255;h[6]=gr[B>>8&255]^E>>8&255;h[7]=gr[c&255]^E&255;E=W[42];h[8]=gr[H>>>24]^E>>>24;h[9]=gr[B>>16&255]^E>>16&255;h[10]=gr[c>>8&255]^E>>8&255;h[11]=gr[V&255]^E&255;E=W[43];h[12]=gr[B>>>24]^E>>>24;h[13]=gr[c>>16&255]^E>>16&255;h[14]=gr[V>>8&255]^E>>8&255;h[15]=gr[H&255]^E&255}; $E=function(){if(!ck&&!g.vp){if(Vi)return Vi;var h;Vi=(h=window.crypto)==null?void 0:h.subtle;var W,c,V;if(((W=Vi)==null?0:W.importKey)&&((c=Vi)==null?0:c.sign)&&((V=Vi)==null?0:V.encrypt))return Vi;Vi=void 0}}; g.Bk=function(h){var W=$E();W&&(this.X=new sM(h,W));this.W=new g.Hk(h)}; sM=function(h,W){this.W=h;this.subtleCrypto=W}; $AU=function(h,W,c){var V,H;return g.P(function(B){switch(B.W){case 1:if(h.X){B.bB(2);break}return g.F(B,h.subtleCrypto.importKey("raw",h.W,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:h.X=B.X;case 2:return V={name:"AES-CTR",counter:c,length:128},g.F(B,h.subtleCrypto.encrypt(V,h.X,W),4);case 4:return H=B.X,B.return(new Uint8Array(H))}})}; g.Hk=function(h){this.W=h}; EM=function(h){this.C=new Uint8Array(64);this.G=new Uint8Array(64);this.Y=0;this.N=new Uint8Array(64);this.W=0;this.C.set(h);this.G.set(h);for(h=0;h<64;h++)this.C[h]^=92,this.G[h]^=54;this.reset()}; sl5=function(h,W,c){for(var V=h.S,H=h.X[0],B=h.X[1],E=h.X[2],J=h.X[3],u=h.X[4],d=h.X[5],G=h.X[6],Z=h.X[7],r,q,x,z=0;z<64;)z<16?(V[z]=x=W[c]<<24|W[c+1]<<16|W[c+2]<<8|W[c+3],c+=4):(r=V[z-2],q=V[z-15],x=V[z-7]+V[z-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((q>>>7|q<<25)^(q>>>18|q<<14)^q>>>3),V[z]=x),r=Z+R4[z]+x+((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&d^~u&G),q=((H>>>2|H<<30)^(H>>>13|H<<19)^(H>>>22|H<<10))+(H&B^H&E^B&E),Z=r+q,J+=r,z++,z<16?(V[z]=x=W[c]<<24|W[c+1]<<16|W[c+2]<<8|W[c+3],c+=4):(r= V[z-2],q=V[z-15],x=V[z-7]+V[z-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((q>>>7|q<<25)^(q>>>18|q<<14)^q>>>3),V[z]=x),r=G+R4[z]+x+((J>>>6|J<<26)^(J>>>11|J<<21)^(J>>>25|J<<7))+(J&u^~J&d),q=((Z>>>2|Z<<30)^(Z>>>13|Z<<19)^(Z>>>22|Z<<10))+(Z&H^Z&B^H&B),G=r+q,E+=r,z++,z<16?(V[z]=x=W[c]<<24|W[c+1]<<16|W[c+2]<<8|W[c+3],c+=4):(r=V[z-2],q=V[z-15],x=V[z-7]+V[z-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((q>>>7|q<<25)^(q>>>18|q<<14)^q>>>3),V[z]=x),r=d+R4[z]+x+((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&J^ ~E&u),q=((G>>>2|G<<30)^(G>>>13|G<<19)^(G>>>22|G<<10))+(G&Z^G&H^Z&H),d=r+q,B+=r,z++,z<16?(V[z]=x=W[c]<<24|W[c+1]<<16|W[c+2]<<8|W[c+3],c+=4):(r=V[z-2],q=V[z-15],x=V[z-7]+V[z-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((q>>>7|q<<25)^(q>>>18|q<<14)^q>>>3),V[z]=x),r=u+R4[z]+x+((B>>>6|B<<26)^(B>>>11|B<<21)^(B>>>25|B<<7))+(B&E^~B&J),q=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&G^d&Z^G&Z),x=Z,Z=J,J=x,x=G,G=E,E=x,x=d,d=B,B=x,u=H+r,H=r+q,z++;h.X[0]=H+h.X[0]|0;h.X[1]=B+h.X[1]|0;h.X[2]=E+h.X[2]|0;h.X[3]= J+h.X[3]|0;h.X[4]=u+h.X[4]|0;h.X[5]=d+h.X[5]|0;h.X[6]=G+h.X[6]|0;h.X[7]=Z+h.X[7]|0}; BYL=function(h){var W=new Uint8Array(32),c=64-h.W;h.W>55&&(c+=64);var V=new Uint8Array(c);V[0]=128;for(var H=h.Y*8,B=1;B<9;B++){var E=H%256;V[c-B]=E;H=(H-E)/256}h.update(V);for(c=0;c<8;c++)W[c*4]=h.X[c]>>>24,W[c*4+1]=h.X[c]>>>16&255,W[c*4+2]=h.X[c]>>>8&255,W[c*4+3]=h.X[c]&255;Hql(h);return W}; Hql=function(h){h.X=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];h.S=[];h.S.length=64;h.Y=0;h.W=0}; EAk=function(h){this.X=h}; Rtl=function(h,W,c){h=new EM(h.X);h.update(W);h.update(c);W=BYL(h);h.update(h.C);h.update(W);W=BYL(h);h.reset();return W}; Jn7=function(h){this.W=h}; uIl=function(h,W,c,V){var H,B,E;return g.P(function(J){switch(J.W){case 1:if(h.X){J.bB(2);break}return g.F(J,V.importKey("raw",h.W,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:h.X=J.X;case 2:return H=new Uint8Array(W.length+c.length),H.set(W),H.set(c,W.length),B={name:"HMAC",hash:"SHA-256"},g.F(J,V.sign(B,h.X,H),4);case 4:return E=J.X,J.return(new Uint8Array(E))}})}; dAl=function(h,W,c){h.G||(h.G=new EAk(h.W));return Rtl(h.G,W,c)}; Ge5=function(h,W,c){var V,H;return g.P(function(B){if(B.W==1){V=$E();if(!V)return B.return(dAl(h,W,c));g.Qp(B,3);return g.F(B,uIl(h,W,c,V),5)}if(B.W!=3)return B.return(B.X);H=g.CU(B);g.Lx(H);ck=!0;return B.return(dAl(h,W,c))})}; rnv=function(h){for(var W="",c=0;c=0||xR(h,0,"gad_source",h.search(lv))>=0}; ztT=function(){this.X=new Map}; L57=function(h,W){var c=Lq().resolve(Qlv);if(et5(W)){var V=j3(W,"gclid");W={handleEvent:function(J){h&&!h.closed&&typeof h.postMessage==="function"&&J&&J.origin&&J.source===h&&J.data&&J.data.action==="gcl_setup"&&h.postMessage(Object.assign({},{action:"gcl_transfer"},V&&{gclid:V},{gadSource:2}),J.origin)}}; for(var H=g.e(c.X),B=H.next();!B.done;B=H.next()){var E=g.e(B.value);B=E.next().value;E=E.next().value;if(B.closed)try{window.removeEventListener("message",E),c.X.delete(B)}catch(J){g.Qq(J)}}h&&c.X.size<15&&(c.X.set(h,W),window.addEventListener("message",W))}}; JC=function(h,W,c){if(!W)return h.length>=1?h[h.length-1]:null;for(var V=g.e(h),H=V.next();!H.done;H=V.next())if(H=H.value,H.width&&H.height&&(c&&H.width>=W||!c&&H.height>=W))return H;for(W=h.length-1;W>=0;W--)if(c&&h[W].width||!c&&h[W].height)return h[W];return h[0]}; uG=function(){this.state=1;this.py=null;this.Cw=void 0}; K5D=function(h,W,c,V,H,B){var E=E===void 0?"trayride":E;c?(h.So(2),g.cB(c,function(){if(window[E])iqU(h,V,E,H);else{h.So(3);var J=QW4(c),u=document.getElementById(J);u&&(eHl(J),u.parentNode.removeChild(u));g.Lx(new g.tP("BL:ULB",""+c))}},B)):W?(B=g.Zr("SCRIPT"),W instanceof l4?(B.textContent=n6(W),j8(B)):B.textContent=W,B.nonce=xu(document),document.head.appendChild(B),document.head.removeChild(B),window[E]?iqU(h,V,E,H):(h.So(4),g.Lx(new g.tP("BL:ULBJ")))):g.Lx(new g.tP("BL:ULV"))}; iqU=function(h,W,c,V){h.So(5);var H=!!h.Cw&&Anp.includes(g.E6(h.Cw)||"");try{var B=new JE({program:W,globalName:c,DF:{disable:!g.ZX("att_web_record_metrics")||!g.ZX("att_skip_metrics_for_cookieless_domains_ks")&&H,ev:"aGIf"}});B.pA.then(function(){h.So(6);V&&V(W)}); h.Ro(B)}catch(E){h.So(7),E instanceof Error&&g.Lx(E)}}; dZ=function(){var h=g.c2("yt.abuse.playerAttLoader");return h&&["bgvma","bgvmb","bgvmc"].every(function(W){return W in h})?h:null}; Gy=function(){uG.apply(this,arguments)}; Zd=function(){}; UAl=function(h,W,c){for(var V=!1,H=g.e(h.ll.entries()),B=H.next();!B.done;B=H.next())B=g.e(B.value).next().value,B.slotType==="SLOT_TYPE_PLAYER_BYTES"&&B.Uf==="core"&&(V=!0);if(V){a:if(!c){h=g.e(h.ll.entries());for(c=h.next();!c.done;c=h.next())if(V=g.e(c.value),c=V.next().value,V=V.next().value,c.slotType==="SLOT_TYPE_IN_PLAYER"&&c.Uf==="core"){c=V.layoutId;break a}c=void 0}c?W.OA(c):sA("No triggering layout ID available when attempting to mute.")}}; rZ=function(h,W){this.S5=h;this.tp=W}; qk=function(){}; xE=function(){}; M9Q=function(h){g.N.call(this);var W=this;this.oR=h;this.X=new Map;lG(this,"commandExecutorCommand",function(c,V,H){Cx4(W,c.commands,V,H)}); lG(this,"clickTrackingParams",function(){})}; F5N=function(h,W){lG(h,W.vG(),function(c,V,H){W.PQ(c,V,H)})}; lG=function(h,W,c){h.gE();h.X.get(W)&&g.Qq(Error("Extension name "+W+" already registered"));h.X.set(W,c)}; Cx4=function(h,W,c,V){W=W===void 0?[]:W;h.gE();var H=[],B=[];W=g.e(W);for(var E=W.next();!E.done;E=W.next())E=E.value,g.v(E,ynN)||g.v(E,Px7)?H.push(E):B.push(E);H=g.e(H);for(W=H.next();!W.done;W=H.next())n9(h,W.value,c,V);B=g.e(B);for(H=B.next();!H.done;H=B.next())n9(h,H.value,c,V)}; n9=function(h,W,c,V){h.gE();W.loggingUrls&&flp(h,"loggingUrls",W.loggingUrls,c,V);W=g.e(Object.entries(W));for(var H=W.next();!H.done;H=W.next()){var B=g.e(H.value);H=B.next().value;B=B.next().value;H==="openPopupAction"?h.oR.get().WX("innertubeCommand",{openPopupAction:B}):H==="confirmDialogEndpoint"?h.oR.get().WX("innertubeCommand",{confirmDialogEndpoint:B}):bqD.hasOwnProperty(H)||flp(h,H,B,c,V)}}; flp=function(h,W,c,V,H){if((h=h.X.get(W))&&typeof h==="function")try{h(c,V,H)}catch(B){g.Qq(B)}else W=new g.tP("Unhandled field",W),g.Lx(W)}; ju=function(h,W,c){this.x4=h;this.X=W;this.nM=c;al(Lq(),{MR:Qlv,q8:ztT})}; a4=function(h){this.value=h}; eu=function(h){this.value=h}; zy=function(h){this.value=h}; Qi=function(h){this.value=h}; L9=function(h){this.value=h}; iG=function(h){this.value=h}; K9=function(h){this.value=h}; AC=function(){a4.apply(this,arguments)}; UM=function(h){this.value=h}; C9=function(h){this.value=h}; Mk=function(h){this.value=h}; FZ=function(h){this.value=h}; yi=function(h){this.value=h}; Pk=function(h){this.value=h}; f9=function(h){this.value=h}; bG=function(h){this.value=h}; Ty=function(h){this.value=h}; Nk=function(h){this.value=h}; XZ=function(){a4.apply(this,arguments)}; tC=function(h){this.value=h}; vk=function(h){this.value=h}; mX=function(h){this.value=h}; o4=function(h){this.value=h}; p9=function(h){this.value=h}; I4=function(h){this.value=h}; YE=function(h){this.value=h}; OM=function(h){this.value=h}; Su=function(h){this.value=h}; gZ=function(h){this.value=h}; Dd=function(h){this.value=h}; wZ=function(h){this.value=h}; kE=function(h){this.value=h}; hX=function(h){this.value=h}; Wq=function(h){this.value=h}; cq=function(h){this.value=h}; Vb=function(h){this.value=h}; $1=function(h){this.value=h}; sz=function(h){this.value=h}; Hq=function(h){this.value=h}; Bq=function(h){this.value=h}; Ez=function(h){this.value=h}; Rv=function(h){this.value=h}; JX=function(h){this.value=h}; u8=function(h){this.value=h}; dy=function(h){this.value=h}; GH=function(h){this.value=h}; ZF=function(h){this.value=h}; ry=function(h){this.value=h}; qO=function(h){this.value=h}; x1=function(h){this.value=h}; l8=function(h){this.value=h}; nA=function(h){this.value=h}; jm=function(h){this.value=h}; av=function(h){this.value=h}; em=function(h){this.value=h}; zH=function(h){this.value=h}; Qb=function(h){this.value=h}; LA=function(h){this.value=h}; i8=function(){a4.apply(this,arguments)}; KA=function(h){this.value=h}; AX=function(){a4.apply(this,arguments)}; Uz=function(){a4.apply(this,arguments)}; CA=function(){a4.apply(this,arguments)}; MO=function(){a4.apply(this,arguments)}; Fp=function(){a4.apply(this,arguments)}; yb=function(h){this.value=h}; Pq=function(h){this.value=h}; fA=function(h){this.value=h}; b8=function(h){this.value=h}; TH=function(h){this.value=h}; Xp=function(h,W,c){if(c&&!c.includes(h.layoutType))return!1;W=g.e(W);for(c=W.next();!c.done;c=W.next())if(!NO(h.clientMetadata,c.value))return!1;return!0}; tX=function(){return""}; TYN=function(h,W){switch(h){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 W(h),8}}; vq=function(h,W,c,V){V=V===void 0?!1:V;qu.call(this,h);this.Pv=c;this.HO=V;this.args=[];W&&this.args.push(W)}; S=function(h,W,c,V){V=V===void 0?!1:V;qu.call(this,h);this.Pv=c;this.HO=V;this.args=[];W&&this.args.push(W)}; mJ=function(h){var W=new Map;h.forEach(function(c){W.set(c.X(),c)}); this.X=W}; NO=function(h,W){return h.X.has(W)}; ov=function(h,W){h=h.X.get(W);if(h!==void 0)return h.get()}; pA=function(h){return Array.from(h.X.keys())}; Iv=function(h,W,c){if(c&&c!==h.slotType)return!1;W=g.e(W);for(c=W.next();!c.done;c=W.next())if(!NO(h.clientMetadata,c.value))return!1;return!0}; XBv=function(h){var W;return((W=NY5.get(h))==null?void 0:W.eQ)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; Oz=function(h,W){var c={type:W.slotType,controlFlowManagerLayer:t9l.get(W.Uf)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};W.slotEntryTrigger&&(c.entryTriggerType=W.slotEntryTrigger.triggerType);W.slotPhysicalPosition!==1&&(c.slotPhysicalPosition=W.slotPhysicalPosition);if(h){c.debugData={slotId:W.slotId};if(h=W.slotEntryTrigger)c.debugData.slotEntryTriggerData=Y1(h);h=W.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];h=g.e(h);for(var V=h.next();!V.done;V=h.next())c.debugData.fulfillmentTriggerData.push(Y1(V.value)); W=W.slotExpirationTriggers;c.debugData.expirationTriggerData=[];W=g.e(W);for(h=W.next();!h.done;h=W.next())c.debugData.expirationTriggerData.push(Y1(h.value))}return c}; vAp=function(h,W){var c={type:W.layoutType,controlFlowManagerLayer:t9l.get(W.Uf)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};h&&(c.debugData={layoutId:W.layoutId});return c}; Y1=function(h,W){var c={type:h.triggerType};W!=null&&(c.category=W);h.triggeringSlotId!=null&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=h.triggeringSlotId);h.triggeringLayoutId!=null&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=h.triggeringLayoutId);return c}; mA7=function(h,W,c,V){W={opportunityType:W};h&&(V||c)&&(V=g.xw(V||[],function(H){return Oz(h,H)}),W.debugData=Object.assign({},c&&c.length>0?{associatedSlotId:c}:{},V.length>0?{slots:V}:{})); return W}; gy=function(h,W){return function(c){return oAU(Sm(h),W.slotId,W.slotType,W.slotPhysicalPosition,W.Uf,W.slotEntryTrigger,W.slotFulfillmentTriggers,W.slotExpirationTriggers,c.layoutId,c.layoutType,c.Uf)}}; oAU=function(h,W,c,V,H,B,E,J,u,d,G){return{adClientDataEntry:{slotData:Oz(h,{slotId:W,slotType:c,slotPhysicalPosition:V,Uf:H,slotEntryTrigger:B,slotFulfillmentTriggers:E,slotExpirationTriggers:J,clientMetadata:new mJ([])}),layoutData:vAp(h,{layoutId:u,layoutType:d,Uf:G,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gW:[],wE:new Map,clientMetadata:new mJ([]),m8:{}})}}}; wy=function(h){this.hk=h;h=Math.random();var W=this.hk.get();W=g.DF(W.L.B().experiments,"html5_debug_data_log_probability");W=Number.isFinite(W)&&W>=0&&W<=1?W:0;this.X=h1){g.Lx(new g.tP("Exit already started",{current:h.currentState}));var c=!1}else c=!0;if(!c)return!1;h.currentState=2;h.X=W;return!0}; W_=function(h){if(h.currentState!==2)return!1;h.currentState=3;return!0}; jeT=function(h,W){var c=new Map;h=g.e(h);for(var V=h.next();!V.done;V=h.next()){V=V.value;if(V.layoutType==="LAYOUT_TYPE_MEDIA")var H="v";else V.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(H=ov(V.clientMetadata,"metadata_type_linked_in_player_layout_type"),H=H==="LAYOUT_TYPE_ENDCAP"||H==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":H==="LAYOUT_TYPE_SURVEY"?"s":H==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):H="u";c.set(V.layoutId,H);if(H==="u"){var B={};H=W;V=(B.c=V.layoutId,B);H.L.GV("uct",V)}}h= W.D$();c_={contentCpn:h,Du:c};V={};c=(V.ct=c.size,V.c=h,V);W.L.GV("acc",c)}; ab7=function(){c_={contentCpn:"",Du:new Map}}; VT=function(h){var W;return(W=c_.Du.get(h))!=null?W:"u"}; $T=function(h,W,c){h.L.GV(W,c);e$T(h)}; z$7=function(h){var W=h.layoutId,c=h.q9;if(h.r6){var V={};$T(h.x4,"slso",(V.ec=W,V.is=c,V.ctp=VT(W),V))}}; sn=function(h){var W=h.layoutId,c=h.q9;if(h.r6){var V={};$T(h.x4,"slse",(V.ec=W,V.is=c,V.ctp=VT(W),V))}}; QeL=function(h){var W=h.layoutId,c=h.q9,V=h.x4;h.r6&&(h={},$T(V,"sleo",(h.xc=W,h.is=c,h.ctp=VT(W),h)),e$T(V))}; LQ5=function(h){var W=h.cpn,c=h.x4;h=h.q9;var V=c.D$(),H={};$T(c,"ce",(H.ec=W,H.ia=W!==V,H.r=c_.Du.has(W),H.is=h,H.ctp=VT(W),H))}; e$T=function(h){if(h.D$()!==c_.contentCpn){var W={};W=(W.c=c_.contentCpn,W);h.L.GV("ccm",W)}}; i4D=function(h){var W=h.cpn,c=h.x4;h=h.q9;var V=c.D$(),H={};$T(c,"cx",(H.xc=W,H.ia=W!==V,H.r=c_.Du.has(W),H.is=h,H.ctp=VT(W),H))}; KQ5=function(h){this.params=h;this.X=new Set}; A1h=function(h,W,c){if(!h.X.has(W)){h.X.add(W);var V={};h.params.MB.Wi(W,Object.assign({},c,(V.p_ac=h.params.adCpn,V.p_isv=h.params.jh&&h.params.Sz,V)))}}; B_=function(h,W,c){if(H_(h.params.MB.hk.get(),!0)){var V=c.flush,H={};A1h(h,W,(H.cts=c.currentTimeSec,H.f=V,H))}}; UqN=function(h,W){this.x4=h;this.hk=W}; En=function(h){var W=[];if(h){h=g.e(Object.entries(h));for(var c=h.next();!c.done;c=h.next()){var V=g.e(c.value);c=V.next().value;V=V.next().value;V!==void 0&&(V=typeof V==="boolean"?""+ +V:(""+V).replace(/[:,=]/g,"_"),W.push(c+"."+V))}}return W.join(";")}; g.RG=function(h,W,c){W=W===void 0?{}:W;this.errorCode=h;this.details=W;this.severity=c===void 0?0:c}; Jp=function(h){return h===1||h===2}; uX=function(h,W){W=W===void 0?0:W;if(h instanceof g.RG)return h;h=h&&h instanceof Error?h:Error(""+h);Jp(W)?g.Qq(h):g.Lx(h);return new g.RG(W===1?"player.fatalexception":"player.exception",{name:""+h.name,message:""+h.message},W)}; CwD=function(h,W){function c(){var V=g.tN.apply(0,arguments);h.removeEventListener("playing",c);W.apply(null,g.rN(V))} h.addEventListener("playing",c)}; dA=function(){var h=g.c2("yt.player.utils.videoElement_");h||(h=g.Zr("VIDEO"),g.hS("yt.player.utils.videoElement_",h));return h}; GW=function(h){var W=dA();return!!(W&&W.canPlayType&&W.canPlayType(h))}; rA=function(h){if(/opus/.test(h)&&g.Zx&&!jQ("38")&&!g.NC())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(h);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(h);if(/webm/.test(h)&&!eu5())return!1;h==='audio/mp4; codecs="mp4a.40.2"'&&(h='video/mp4; codecs="avc1.4d401f"');return!!GW(h)}; MLQ=function(h){try{var W=rA('video/mp4; codecs="avc1.42001E"')||rA('video/webm; codecs="vp9"');return(rA('audio/mp4; codecs="mp4a.40.2"')||rA('audio/webm; codecs="opus"'))&&(W||!h)||GW('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}}; qQ=function(){var h=dA();return!(!h.webkitSupportsPresentationMode||typeof h.webkitSetPresentationMode!=="function")}; xT=function(){var h=dA();try{var W=h.muted;h.muted=!W;return h.muted!==W}catch(c){}return!1}; FQQ=function(){var h;return((h=navigator.connection)==null?void 0:h.type)||""}; g.lX=function(){aI.apply(this,arguments)}; nF=function(h,W,c,V,H,B,E,J){this.sampleRate=h===void 0?0:h;this.numChannels=W===void 0?0:W;this.spatialAudioType=c===void 0?"SPATIAL_AUDIO_TYPE_NONE":c;this.X=V===void 0?!1:V;this.G=H;this.Y=B;this.audioQuality=E===void 0?"AUDIO_QUALITY_UNKNOWN":E;this.W=J===void 0?!1:J}; ed=function(h,W,c,V,H,B,E,J,u){this.width=h;this.height=W;this.quality=B||jd(h,W);this.qualityOrdinal=g.aG[this.quality];this.fps=c||0;this.stereoLayout=!H||V!=null&&V!=="UNKNOWN"&&V!=="RECTANGULAR"?0:H;this.projectionType=V?V==="EQUIRECTANGULAR"&&H===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":V:"UNKNOWN";(h=E)||(h=g.aG[this.quality],h===0?h="Autom\u00e1tica":(W=this.fps,c=this.projectionType,h=h.toString()+(c==="EQUIRECTANGULAR"||c==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||c==="MESH"?"s":"p")+(W>55?"60": W>49?"50":W>39?"48":"")));this.qualityLabel=h;this.X=J||"";this.primaries=u||""}; jd=function(h,W){var c=Math.max(h,W);h=Math.min(h,W);W=zW[0];for(var V=0;V=Math.floor(B*16/9)*1.3||h>=B*1.3)return W;W=H}return"tiny"}; iX=function(h,W,c){c=c===void 0?{}:c;this.id=h;this.mimeType=W;c.Vg>0||(c.Vg=16E3);Object.assign(this,c);h=g.e(this.id.split(";"));this.itag=h.next().value;this.X=h.next().value;this.containerType=QT(W);this.eO=LF[this.itag]||""}; KF=function(h){return h.eO==="9"||h.eO==="("||h.eO==="9h"||h.eO==="(h"}; y1l=function(h){return h.eO==="H"||h.eO==="h"}; Ap=function(h){return h.eO==="9h"||h.eO==="(h"}; PwT=function(h){return!!h.k9&&!!h.k9.fairplay&&(h.eO==="("||h.eO==="(h"||h.eO==="A"||h.eO==="MEAC3")||Un&&!!h.k9&&h.eO==="1e"}; CF=function(h){return h.eO==="1"||h.eO==="1h"||Un&&h.eO==="1e"}; MQ=function(h){return h.eO==="mac3"||h.eO==="meac3"||h.eO==="m"||h.eO==="i"}; FK=function(h){return h.eO==="MAC3"||h.eO==="MEAC3"||h.eO==="M"||h.eO==="I"}; g.yT=function(h){return h.containerType===1}; fbv=function(h){return h.eO==="("||h.eO==="(h"||h.eO==="H"||Un&&h.eO==="1e"}; P_=function(h){return h.mimeType==="application/x-mpegURL"}; g.fF=function(h,W){return{itag:+h.itag,lmt:W?0:h.lastModified,xtags:h.X||""}}; b4U=function(h){var W=navigator.mediaCapabilities;if(W==null||!W.decodingInfo||h.eO==="f")return Promise.resolve();var c={type:h.audio&&h.video?"file":"media-source"};h.video&&(c.video={contentType:h.mimeType,width:h.video.width||640,height:h.video.height||360,bitrate:h.Vg*8||1E6,framerate:h.video.fps||30});h.audio&&(c.audio={contentType:h.mimeType,channels:""+(h.audio.numChannels||2),bitrate:h.Vg*8||128E3,samplerate:h.audio.sampleRate||44100});return W.decodingInfo(c).then(function(V){h.W=V})}; bX=function(h){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(h)}; TW=function(h){return/(vp9|vp09|vp8|avc1|av01)/.test(h)}; XK=function(h){return h.includes("vtt")||h.includes("text/mp4")}; QT=function(h){return h.indexOf("/mp4")>=0?1:h.indexOf("/webm")>=0?2:h.indexOf("/x-flv")>=0?3:h.indexOf("/vtt")>=0?4:0}; tp=function(h,W,c,V,H,B){var E=new nF;W in g.aG||(W="small");W==="light"&&(W="tiny");V&&H?(H=Number(H),V=Number(V)):(H=g.aG[W],V=Math.round(H*16/9));B=new ed(V,H,0,null,void 0,W,B);h=unescape(h.replace(/"/g,'"'));return new iX(c,h,{audio:E,video:B})}; v_=function(h){var W="id="+h.id;h.video&&(W+=", res="+h.video.qualityLabel);var c,V;return W+", byterate=("+((c=h.Cf)==null?void 0:c.toFixed(0))+", "+((V=h.Vg)==null?void 0:V.toFixed(0))+")"}; my=function(h,W){return{start:function(c){return h[c]}, end:function(c){return W[c]}, length:h.length}}; T7Q=function(h,W,c){for(var V=[],H=[],B=0;B=W)return c}catch(V){}return-1}; IG=function(h,W){return pF(h,W)>=0}; N77=function(h,W){if(!h)return NaN;W=pF(h,W);return W>=0?h.start(W):NaN}; On=function(h,W){if(!h)return NaN;W=pF(h,W);return W>=0?h.end(W):NaN}; Sd=function(h){return h&&h.length?h.end(h.length-1):NaN}; gA=function(h){return Sd(h)>0}; Dx=function(h,W){h=On(h,W);return h>=0?h-W:0}; wA=function(h,W,c){for(var V=[],H=[],B=0;Bc||(V.push(Math.max(W,h.start(B))-W),H.push(Math.min(c,h.end(B))-W));return my(V,H)}; kT=function(h,W,c,V){g.h1.call(this);var H=this;this.Vl=h;this.start=W;this.end=c;this.isActive=V;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.FP={error:function(){!H.gE()&&H.isActive&&H.publish("error",H)}, updateend:function(){!H.gE()&&H.isActive&&H.publish("updateend",H)}}; this.Vl.BY(this.FP);this.Fx=this.isActive}; Wc=function(h,W,c,V,H,B){g.h1.call(this);var E=this;this.jx=h;this.nG=W;this.id=c;this.containerType=V;this.eO=H;this.Sz=B;this.IH=this.wx=this.yj=null;this.A8=!1;this.appendWindowStart=this.timestampOffset=0;this.V$=my([],[]);this.Pr=!1;this.AM=[];this.TQ=hY?[]:void 0;this.pR=function(u){return E.publish(u.type,E)}; var J;if((J=this.jx)==null?0:J.addEventListener)this.jx.addEventListener("updateend",this.pR),this.jx.addEventListener("error",this.pR)}; cc=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; V3=function(h,W){this.bW=h;this.X=W===void 0?!1:W;this.W=!1}; $h=function(h,W,c){c=c===void 0?!1:c;g.N.call(this);this.mediaElement=h;this.KM=W;this.isView=c;this.N=0;this.Y=!1;this.C=!0;this.T=0;this.callback=null;this.Z=!1;this.KM||(this.nG=this.mediaElement.fJ());this.events=new g.lX(this);g.X(this,this.events);this.G=new V3(this.KM?window.URL.createObjectURL(this.KM):this.nG.webkitMediaSourceURL,!0);h=this.KM||this.nG;et(this.events,h,["sourceopen","webkitsourceopen"],this.ahN);et(this.events,h,["sourceclose","webkitsourceclose"],this.WDz);this.S={updateend:this.Yr}}; Xnk=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; tLT=function(h,W){Hc(h)?g.nW(function(){W(h)}):h.callback=W}; vB5=function(h,W,c){if(Bc){var V;Es(h.mediaElement,{l:"mswssb",sr:(V=h.mediaElement.lB)==null?void 0:V.ul()},!1);W.BY(h.S,h);c.BY(h.S,h)}h.X=W;h.W=c;g.X(h,W);g.X(h,c)}; Ri=function(h){return!!h.X||!!h.W}; Hc=function(h){try{return JY(h)==="open"}catch(W){return!1}}; JY=function(h){if(h.KM)return h.KM.readyState;switch(h.nG.webkitSourceState){case h.nG.SOURCE_OPEN:return"open";case h.nG.SOURCE_ENDED:return"ended";default:return"closed"}}; u1=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; mq5=function(h){Hc(h)&&(h.KM?h.KM.endOfStream():h.nG.webkitSourceEndOfStream(h.nG.EOS_NO_ERROR))}; oBN=function(h,W,c,V){if(!h.X||!h.W)return null;var H=h.X.isView()?h.X.Vl:h.X,B=h.W.isView()?h.W.Vl:h.W,E=new $h(h.mediaElement,h.KM,!0);E.G=h.G;vB5(E,new kT(H,W,c,V),new kT(B,W,c,V));Hc(h)||h.X.OO(h.X.FA());return E}; pnT=function(h){var W;(W=h.X)==null||W.rq();var c;(c=h.W)==null||c.rq();h.C=!1}; d4=function(){var h=this;this.t4=this.r_=jkl;this.promise=new g.iZ(function(W,c){h.r_=W;h.t4=c})}; Gn=function(){g.N.call(this);this.Lu=!1;this.bW=null;this.S=this.N=!1;this.Y=new g.Rn;this.lB=null;g.X(this,this.Y)}; ZS=function(h){h=h.nZ();return h.length<1?NaN:h.end(h.length-1)}; IbU=function(h){!h.W&&Xnk()&&(h.G?h.G.then(function(){return IbU(h)}):h.lO()||(h.W=h.ke()))}; YJQ=function(h){h.W&&(h.W.dispose(),h.W=void 0)}; Es=function(h,W,c){var V;((V=h.lB)==null?0:V.gI())&&h.lB.GV("rms",W,c===void 0?!1:c)}; O4k=function(h,W,c){h.isPaused()||h.getCurrentTime()>W||c>10||(h.play(),g.Rx(function(){O4k(h,h.getCurrentTime(),c+1)},500))}; SJd=function(h,W){h.bW&&h.bW.equals(W)||(h.bW&&h.bW.dispose(),h.bW=W)}; r4=function(h){return Dx(h.yr(),h.getCurrentTime())}; gBN=function(h,W){if(h.Wv()===0||h.hasError())return!1;var c=h.getCurrentTime()>0;return W>=0&&(h=h.nZ(),h.length||!c)?IG(h,W):c}; q7=function(h){h.lO()&&(h.lB&&h.lB.j3("rs_s"),tZ&&h.getCurrentTime()>0&&h.seekTo(0),h.nK(),h.load(),SJd(h,null));delete h.G}; xh=function(h){switch(h.KG()){case 2:return"progressive.net.retryexhausted";case 3:return h=h.B9(),(h==null?0:h.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||Dqk&&(h==null?0:h.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.l1=function(h,W,c){this.FK=W===void 0?null:W;this.seekSource=c===void 0?null:c;this.state=h||64}; nI=function(h,W,c){c=c===void 0?!1:c;return wn5(h,W.getCurrentTime(),(0,g.aC)(),r4(W),c)}; j$=function(h,W,c,V){if(!(W===h.state&&c===h.FK&&V===h.seekSource||W!==void 0&&(W&128&&!c||W&2&&W&16))){var H;if(H=W)H=W||h.state,H=!!(H&16||H&32);h=new g.l1(W,c,H?V?V:h.seekSource:null)}return h}; ai=function(h,W,c){return j$(h,h.state|W,null,c===void 0?null:c)}; e$=function(h,W){return j$(h,h.state&~W,null,null)}; zn=function(h,W,c,V){return j$(h,(h.state|W)&~c,null,V===void 0?null:V)}; g.Y=function(h,W){return!!(h.state&W)}; g.Q3=function(h,W){return W.state===h.state&&W.FK===h.FK}; LI=function(h){return h.isPlaying()&&!g.Y(h,16)&&!g.Y(h,32)}; i1=function(h){return g.Y(h,128)?-1:g.Y(h,2)?0:g.Y(h,2048)?3:g.Y(h,64)?-1:g.Y(h,1)&&!g.Y(h,32)?3:g.Y(h,8)?1:g.Y(h,4)?2:-1}; AY=function(h,W,c,V,H,B,E,J,u,d,G,Z,r,q,x,z,L){g.N.call(this);var M=this;this.Xy=h;this.slot=W;this.layout=c;this.nM=V;this.Gz=H;this.SO=B;this.Qg=E;this.dW=J;this.LJ=u;this.iG=d;this.position=Z;this.N=r;this.hk=q;this.SM=x;this.Z1=z;this.context=L;this.Id=!0;this.C=!1;this.xZ="not_rendering";this.W=!1;this.G=new kn;h=ov(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.iB=new Jl(c.wE,this.nM,h,c.layoutId);var U;h=((U=KI(this))==null?void 0:U.progressCommands)||[];this.Y=new D_v(u, h,c.layoutId,function(){return M.Qt()}); this.X=new KQ5({adCpn:this.layout.layoutId,MB:L.MB,jh:this.SM,Sz:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; Us=function(h){return{layoutId:h.LZ(),q9:h.SM,x4:h.SO.get(),r6:h.Y4()}}; CI=function(h,W){return W.layoutId!==h.layout.layoutId?(h.Xy.IV(h.slot,W,new vq("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+h.layout.layoutId+("and LayoutType: "+h.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; M7=function(h){h.xZ="rendering_start_requested";h.iG(-1)}; KI=function(h){return ov(h.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; kpL=function(h){sA("Received layout exit signal when not in layout exit flow.",h.slot,h.layout)}; h27=function(h){var W;return((W=Fm(h.SO.get(),2))==null?void 0:W.clientPlaybackNonce)||""}; y3=function(h,W){switch(W){case "normal":h.s5("complete");break;case "skipped":h.s5("skip");break;case "abandoned":qb(h.iB,"impression")&&h.s5("abandon")}}; Pc=function(h,W){h.C||(W=new g.H8(W.state,new g.l1),h.C=!0);return W}; fI=function(h,W){S1(W)?h.iG(1):g.EA(W,4)&&!g.EA(W,2)&&h.Cl();B8(W,4)<0&&!(B8(W,2)<0)&&h.j2()}; WkU=function(h){h.position===0&&(h.dW.get(),h=ov(h.layout.clientMetadata,"metadata_type_ad_placement_config").kind,h={adBreakType:b1(h)},eq("ad_bl"),g.zO(h))}; Tn=function(h,W){Zc(h.iB,W,!h.W)}; VRp=function(h){var W;return(((W=KI(h))==null?void 0:W.progressCommands)||[]).findIndex(function(c){return!!g.v(c==null?void 0:c.command,cWp)})!==-1}; N7=function(h,W){var c=ov(h.clientMetadata,"metadata_type_eligible_for_ssap");return c===void 0?(sA("Expected SSAP eligibility in PlayerBytes factory",h),!1):W.Y4(c)}; Xm=function(h,W){if(!Fo(W.get(),"html5_ssap_pass_transition_reason"))return 3;switch(h){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return sA("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return sA("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:h}),3;default:dF(h,"unknown layoutExitReason")}}; $aN=function(h){sA("getExitReason: unexpected reason",void 0,void 0,{reason:h})}; tY=function(h,W){if(Fo(W.get(),"html5_ssap_pass_transition_reason"))switch(h){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return $aN(h),"abandoned";case 3:case 1:return $aN(h),"error";default:dF(h,"unexpected transition reason")}else switch(h){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return sA("getExitReason: unexpected reason",void 0,void 0,{reason:h}),"error";default:dF(h,"unexpected transition reason")}}; g.vc=function(h,W,c){LE(h,c)||KE(h,W,c);LE(h,"video_to_ad")||KE(h,W,"video_to_ad");LE(h,"ad_to_video")||KE(h,W,"ad_to_video");LE(h,"ad_to_ad")||KE(h,W,"ad_to_ad")}; mR=function(h,W,c,V,H,B,E,J,u,d,G,Z,r,q,x,z,L,M){AY.call(this,h,W,c,V,H,B,E,J,d,G,Z,r,q,x,z,L,M);var U=this;this.oR=u;this.pn=Z;this.Ri=!0;this.B7=this.W3=0;this.uZ=P3(function(){z$7(Us(U));U.Xy.JI(U.slot,U.layout)}); this.LC=P3(function(){QeL(Us(U));U.xZ!=="rendering_stop_requested"&&U.pn(U);U.layoutExitReason?U.Xy.Gx(U.slot,U.layout,U.layoutExitReason):kpL(U)}); this.timer=new g.yR(200);this.timer.listen("tick",function(){U.kd()}); g.X(this,this.timer)}; pI=function(h){h.B7=Date.now();oi(h,h.W3);h.timer.start()}; stT=function(h){h.W3=h.Qt();h.O2(h.W3/1E3,!0);oi(h,h.W3)}; oi=function(h,W){W={current:W/1E3,duration:h.Qt()/1E3};h.oR.get().WX("onAdPlaybackProgress",W)}; Ii=function(h){mR.call(this,h.Xy,h.slot,h.vH,h.nM,h.Gz,h.SO,h.Qg,h.dW,h.oR,h.LJ,h.iG,h.pn,h.tv,h.k6,h.hk,h.SM,h.Z1,h.context)}; Yh=function(h){mR.call(this,h.Xy,h.slot,h.vH,h.nM,h.Gz,h.SO,h.Qg,h.dW,h.oR,h.LJ,h.iG,h.pn,h.tv,h.k6,h.hk,h.SM,h.Z1,h.context)}; Os=function(){Yh.apply(this,arguments)}; HVT=function(h){return N7(h.slot,h.hk.get())?new Os(h):new Ii(h)}; DS=function(h){AY.call(this,h.callback,h.slot,h.vH,h.nM,h.Gz,h.SO,h.Qg,h.dW,h.LJ,h.iG,h.pn,h.tv,h.k6,h.hk,h.SM,h.Z1,h.context);var W=this;this.adCpn="";this.kX=this.dg=0;this.uZ=P3(function(){z$7(Us(W));W.Xy.JI(W.slot,W.layout)}); this.LC=P3(function(){QeL(Us(W));W.xZ!=="rendering_stop_requested"&&W.pn(W);W.layoutExitReason?W.Xy.Gx(W.slot,W.layout,W.layoutExitReason):kpL(W)}); this.Uh=h.Uh;this.Xl=h.Xl;this.lX=h.lX;this.oR=h.oR;this.ge=h.ge;this.pn=h.pn;if(!this.Y4()){Fo(this.hk.get(),"html5_disable_media_load_timeout")||(this.AL=new g.oD(function(){W.zK("load_timeout",new vq("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); h=S$(this.hk.get());var c=g4(this.hk.get());h&&c&&(this.zQ=new g.oD(function(){var V=ov(W.layout.clientMetadata,"metadata_type_preload_player_vars");V&&W.Xl.get().L.preloadVideoByPlayerVars(V,2,300)}))}}; ExN=function(h,W){var c=ov(W.clientMetadata,"metadata_type_ad_video_id"),V=ov(W.clientMetadata,"metadata_type_legacy_info_card_vast_extension");c&&V&&h.ge.get().L.B().Nn.add(c,{Bz:V});(W=ov(W.clientMetadata,"metadata_type_sodar_extension_data"))&&R_4(h.Uh.get(),W);BTU(h.Qg.get(),!1)}; R2v=function(h){BTU(h.Qg.get(),!0);var W;((W=h.shrunkenPlayerBytesConfig)==null?0:W.shouldRequestShrunkenPlayerBytes)&&h.Qg.get().CQ(!1)}; JWL=function(h){return new w4(h)}; kh=function(){DS.apply(this,arguments)}; w4=function(){kh.apply(this,arguments)}; uyL=function(h){return HVT(Object.assign({},h,{Xy:h.callback,iG:function(){}}))}; daU=function(h){return new DS(Object.assign({},h,{iG:function(W){h.oR.get().WX("onAdIntroStateChange",W)}}))}; G3k=function(h){function W(c){h.oR.get().dR(c)} return N7(h.slot,h.hk.get())?JWL(Object.assign({},h,{iG:W})):new DS(Object.assign({},h,{iG:W}))}; ho=function(h){for(var W=h.vH,c=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],V=g.e(uB()),H=V.next();!H.done;H=V.next())c.push(H.value);if(yJ(W,{Aw:c,iV:["LAYOUT_TYPE_MEDIA_BREAK"]}))return uyL(h);W=h.vH;c=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];V=g.e(uB());for(H=V.next();!H.done;H=V.next())c.push(H.value);if(yJ(W,{Aw:c,iV:["LAYOUT_TYPE_MEDIA"]}))return NO(h.vH.clientMetadata,"metadata_type_ad_intro")?daU(h):G3k(h)}; rW7=function(h){var W=ov(h.clientMetadata,"metadata_type_ad_placement_config").kind,c=ov(h.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:h.layoutId,adType:ZVN(c),adBreakType:b1(W)}}; b1=function(h){switch(h){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"}}; ZVN=function(h){switch(h){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; qAU=function(h){try{return new WS(h.zc,h.slot,h.layout,h.Dh,h.aV,h.SO,h.wI,h.Xl,h.Bi,h.Qg,h.k2f,h)}catch(W){}}; WS=function(h,W,c,V,H,B,E,J,u,d,G,Z){g.N.call(this);this.zc=h;this.slot=W;this.layout=c;this.Dh=V;this.aV=H;this.SO=B;this.wI=E;this.Xl=J;this.Bi=u;this.Qg=d;this.params=Z;this.Id=!0;h=ho(G);if(!h)throw Error("Invalid params for sublayout");this.s8=h}; xaN=function(){this.X=1;this.W=new kn}; cS=function(h,W,c,V,H,B,E,J,u,d,G,Z,r,q){g.N.call(this);this.callback=h;this.SO=W;this.wI=c;this.Xl=V;this.Qg=H;this.AE=B;this.dW=E;this.l$=J;this.slot=u;this.layout=d;this.Dh=G;this.sJ=Z;this.Bi=r;this.hk=q;this.Id=!0;this.Qb=!1;this.cB=[];this.Ac=-1;this.mC=!1;this.cU=new xaN}; lwd=function(h){var W;return(W=h.layout.pN)!=null?W:ov(h.layout.clientMetadata,"metadata_type_sub_layouts")}; Vw=function(h){return{x4:h.SO.get(),q9:!1,r6:h.Y4()}}; nxL=function(h,W,c){if(h.vR()===h.cB.length-1){var V,H;sA("Unexpected skip requested during the last sublayout",(V=h.iT())==null?void 0:V.KJ(),(H=h.iT())==null?void 0:H.sf(),{requestingSlot:W,requestingLayout:c})}}; jtL=function(h,W,c){return c.layoutId!==$c(h,W,c)?(sA("onSkipRequested for a PlayerBytes layout that is not currently active",h.KJ(),h.sf()),!1):!0}; aw7=function(h){h.vR()===h.cB.length-1&&sA("Unexpected skip with target requested during the last sublayout")}; e2T=function(h,W,c){return c.renderingContent===void 0&&c.layoutId!==$c(h,W,c)?(sA("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",h.KJ(),h.sf(),{requestingSlot:W,requestingLayout:c}),!1):!0}; z24=function(h,W,c,V){var H=ov(W.sf().clientMetadata,"metadata_type_ad_pod_skip_target");if(H&&H>0&&H0)){sA("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",h.slot,h.layout,{indexToPlay:W,layoutId:h.layout.layoutId});break a}h.Ac=W;W=h.iT();if(h.vR()>0&&!h.Y4()){var c=h.dW.get();c.W=!1;var V={};c.X&&c.videoId&&(V.cttAuthInfo={token:c.X,videoId:c.videoId});Qy("ad_to_ad",V)}c=g.v(W.sf().renderingContent,I1);if(c==null?0: c.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var H;c=!((H=h.AE.get().Jqk.get(c.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&H)}else c=!1;c?sR(h,h.vR()+1):h.V0(W)}}; ER=function(h){cS.call(this,h.zc,h.SO,h.wI,h.Xl,h.Qg,h.AE,h.dW,h.l$,h.slot,h.layout,h.Dh,h.sJ,h.Bi,h.hk)}; iV5=function(h){(h=h.iT())&&h.CZ()}; RO=function(h){cS.call(this,h.zc,h.SO,h.wI,h.Xl,h.Qg,h.AE,h.dW,h.l$,h.slot,h.layout,h.Dh,h.sJ,h.Bi,h.hk);this.hE=void 0}; KkN=function(h,W){h.L7()&&!W_(h.cU.W)||h.callback.Gx(h.slot,h.layout,W)}; Jo=function(h){return Fo(h.hk.get(),"html5_ssap_pass_transition_reason")}; AWl=function(h,W,c){W.C9().currentState<2&&(c=tY(c,h.hk),W.xd(W.sf(),c));c=W.C9().X;h.kU(h.slot,W.sf(),c)}; Ual=function(h,W){if(h.cU.W.currentState<2){var c=tY(W,h.hk);c==="error"?h.callback.IV(h.slot,h.layout,new vq("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:W},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):BS(h.sJ,h.layout,c)}}; ub=function(h,W,c){W.C9().currentState>=2||(W.xd(W.sf(),c),W_(W.C9())&&(Gk(h.l$,h.slot,W.sf(),c),h.hE=void 0))}; C74=function(h,W){h.cU.X===2&&W!==h.D$()&&sA("onClipEntered: unknown cpn",h.slot,h.layout,{cpn:W})}; MRU=function(h,W){var c=h.iT();if(c){var V=c.sf().layoutId,H=h.vR()+1;h.L7()?ub(h,c,W):c.xd(c.sf(),W);H>=0&&HH&&E.NT(G,H-V);return G}; tRQ=function(h,W,c){var V=ov(W.clientMetadata,"metadata_type_sodar_extension_data");if(V)try{R_4(c,V)}catch(H){sA("Unexpected error when loading Sodar",h,W,{error:H})}}; vxT=function(h,W,c,V,H,B,E){lb(h,W,new g.H8(c,new g.l1),V,H,E,!1,B)}; lb=function(h,W,c,V,H,B,E,J){E=E===void 0?!0:E;S1(c)&&gz(H,0,null)&&(!qb(h,"impression")&&J&&J(),h.s5("impression"));qb(h,"impression")&&(g.EA(c,4)&&!g.EA(c,2)&&h.Jh("pause"),B8(c,4)<0&&!(B8(c,2)<0)&&h.Jh("resume"),g.EA(c,16)&&H>=.5&&h.Jh("seek"),E&&g.EA(c,2)&&n8(h,c.state,W,V,H,B))}; n8=function(h,W,c,V,H,B,E,J,u){qb(h,"impression")&&(B?(B=H-V,B=B>=-1&&B<=2):B=Math.abs(V-H)<=1,jJ(h,W,B?V:H,c,V,E,J&&B),B&&!u&&h.s5("complete"))}; jJ=function(h,W,c,V,H,B,E){rz(h,c*1E3,E);H<=0||c<=0||(W==null?0:g.Y(W,16))||(W==null?0:g.Y(W,32))||(gz(c,H*.25,V)&&(B&&!qb(h,"first_quartile")&&B("first"),h.s5("first_quartile")),gz(c,H*.5,V)&&(B&&!qb(h,"midpoint")&&B("second"),h.s5("midpoint")),gz(c,H*.75,V)&&(B&&!qb(h,"third_quartile")&&B("third"),h.s5("third_quartile")))}; maD=function(h,W){qb(h,"impression")&&h.Jh(W?"fullscreen":"end_fullscreen")}; oxl=function(h){qb(h,"impression")&&h.Jh("clickthrough")}; p8v=function(h){h.Jh("active_view_measurable")}; IwT=function(h){qb(h,"impression")&&!qb(h,"seek")&&h.Jh("active_view_fully_viewable_audible_half_duration")}; YAh=function(h){qb(h,"impression")&&!qb(h,"seek")&&h.Jh("active_view_viewable")}; OVT=function(h){qb(h,"impression")&&!qb(h,"seek")&&h.Jh("audio_audible")}; SAh=function(h){qb(h,"impression")&&!qb(h,"seek")&&h.Jh("audio_measurable")}; gxU=function(h,W,c,V,H,B,E,J,u,d,G,Z,r){this.callback=h;this.slot=W;this.layout=c;this.wI=V;this.iB=H;this.Qg=B;this.KQ=E;this.Gz=J;this.Uh=u;this.hk=d;this.nM=G;this.SO=Z;this.lX=r;this.Ri=!0;this.H0=this.xZ=null;this.adCpn=void 0;this.X=!1}; DaN=function(h,W,c){var V;xc(h.nM.get(),"ads_qua","cpn."+ov(h.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((V=Fm(h.SO.get(),2))==null?void 0:V.clientPlaybackNonce)+";qt."+W+";clr."+c)}; w8k=function(h,W){var c,V;xc(h.nM.get(),"ads_imp","cpn."+ov(h.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((c=Fm(h.SO.get(),2))==null?void 0:c.clientPlaybackNonce)+";clr."+W+";skp."+!!g.v((V=ov(h.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:V.skipOrPreviewRenderer,aO))}; eJ=function(h){return{enterMs:ov(h.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:ov(h.clientMetadata,"metadata_type_layout_exit_ms")}}; z5=function(h,W,c,V,H,B,E,J,u,d,G,Z,r,q){G5.call(this,h,W,c,V,H,E,J,u,d,Z);this.KQ=B;this.Uh=G;this.Gz=r;this.hk=q;this.H0=this.xZ=null}; k3N=function(h,W){var c;xc(h.nM.get(),"ads_imp","acpn."+((c=Fm(h.SO.get(),2))==null?void 0:c.clientPlaybackNonce)+";clr."+W)}; hWQ=function(h,W,c){var V;xc(h.nM.get(),"ads_qua","cpn."+ov(h.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((V=Fm(h.SO.get(),2))==null?void 0:V.clientPlaybackNonce)+";qt."+W+";clr."+c)}; Qw=function(h,W,c,V,H,B,E,J,u,d,G,Z,r,q,x,z,L,M,U,y,T,m){this.Bi=h;this.Dh=W;this.sJ=c;this.SO=V;this.wI=H;this.Qg=B;this.AE=E;this.nM=J;this.KQ=u;this.Ky=d;this.Gz=G;this.Uh=Z;this.Xl=r;this.lX=q;this.dW=x;this.oR=z;this.LJ=L;this.ge=M;this.hk=U;this.X=y;this.context=T;this.Z1=m}; L8=function(h,W,c,V,H,B,E,J,u,d,G,Z,r,q,x,z,L,M,U){this.Bi=h;this.Dh=W;this.sJ=c;this.nM=V;this.Gz=H;this.Uh=B;this.Xl=E;this.SO=J;this.Qg=u;this.AE=d;this.lX=G;this.dW=Z;this.oR=r;this.LJ=q;this.ge=x;this.hk=z;this.wI=L;this.context=M;this.Z1=U}; WCh=function(h,W,c,V){kN.call(this,"survey-interstitial",h,W,c,V)}; ib=function(h,W,c,V,H){ch.call(this,c,h,W,V);this.nM=H;h=ov(W.clientMetadata,"metadata_type_ad_placement_config");this.iB=new Jl(W.wE,H,h,W.layoutId)}; K8=function(h){return Math.round(h.width)+"x"+Math.round(h.height)}; UR=function(h,W,c){c=c===void 0?Ao:c;c.widthh.width*h.height*.2)return{qc:3,CH:501,errorMessage:"ad("+K8(c)+") to container("+K8(h)+") ratio exceeds limit."};if(c.height>h.height/3-W)return{qc:3,CH:501,errorMessage:"ad("+K8(c)+") covers container("+K8(h)+") center."}}; cmQ=function(h,W){var c=ov(h.clientMetadata,"metadata_type_ad_placement_config");return new Jl(h.wE,W,c,h.layoutId)}; C8=function(h){return ov(h.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; MX=function(h,W,c,V){kN.call(this,"invideo-overlay",h,W,c,V);this.interactionLoggingClientData=V}; Fq=function(h,W,c,V,H,B,E,J,u,d,G,Z){ch.call(this,B,h,W,H);this.nM=c;this.Y=E;this.Qg=J;this.LJ=u;this.hk=d;this.N=G;this.C=Z;this.iB=cmQ(W,c)}; Vq4=function(){var h=["metadata_type_invideo_overlay_ad_renderer"];uB().forEach(function(W){h.push(W)}); return{Aw:h,iV:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; yw=function(h,W,c,V,H,B,E,J,u,d,G,Z,r){ch.call(this,B,h,W,H);this.nM=c;this.Y=E;this.Z=J;this.Qg=u;this.LJ=d;this.hk=G;this.N=Z;this.C=r;this.iB=cmQ(W,c)}; $EU=function(){for(var h=["metadata_type_invideo_overlay_ad_renderer"],W=g.e(uB()),c=W.next();!c.done;c=W.next())h.push(c.value);return{Aw:h,iV:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; PS=function(h){this.Qg=h;this.X=!1}; s2v=function(h,W,c){kN.call(this,"survey",h,{},W,c)}; f8=function(h,W,c,V,H,B,E){ch.call(this,c,h,W,V);this.Y=H;this.Qg=B;this.hk=E}; HEp=function(h,W,c,V,H,B,E,J,u,d){this.VA=h;this.Qg=W;this.nM=c;this.Y=V;this.Gz=H;this.W=B;this.G=E;this.LJ=J;this.hk=u;this.X=d}; Bn5=function(h,W,c,V,H,B,E,J,u,d){this.VA=h;this.Qg=W;this.nM=c;this.Y=V;this.Gz=H;this.W=B;this.G=E;this.LJ=J;this.hk=u;this.X=d}; bb=function(h,W,c,V,H,B,E,J,u,d){Xu.call(this,h,W,c,V,H,B,E,u);this.hp=J;this.SO=d}; E9Q=function(){var h=Z4T();h.Aw.push("metadata_type_ad_info_ad_metadata");return h}; RWN=function(h,W,c,V,H,B,E){this.VA=h;this.Qg=W;this.nM=c;this.W=V;this.hp=H;this.X=B;this.SO=E}; JmT=function(h,W,c,V,H,B,E,J){this.VA=h;this.Qg=W;this.nM=c;this.W=V;this.hp=H;this.X=B;this.hk=E;this.SO=J}; T5=function(h,W){this.slotId=W;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=h(this.triggerType)}; NX=function(h,W){this.adPodIndex=h;this.X=W.length;this.adBreakLengthSeconds=W.reduce(function(V,H){return V+H},0); var c=0;for(h+=1;h0}; A9=function(h){return!!(h.Q6&&h.slot&&h.layout)}; Ui=function(h){var W,c=(W=h.config)==null?void 0:W.adPlacementConfig;h=h.renderer;return!(!c||c.kind==null||!h)}; LCv=function(h){if(!ac(h.adLayoutMetadata))return!1;h=h.renderingContent;return g.v(h,I1)||g.v(h,Yn)||g.v(h,Q2N)||g.v(h,o1)||g.v(h,p5)?!0:!1}; Ca=function(h){return h.playerVars!==void 0&&h.pings!==void 0&&h.externalVideoId!==void 0}; TG=function(h){if(!ac(h.adLayoutMetadata))return!1;h=h.renderingContent;var W=g.v(h,MZ);return W?FU(W):(W=g.v(h,yA))?Ca(W):(W=g.v(h,Ps))?W.playerVars!==void 0:(W=g.v(h,I1))?W.durationMilliseconds!==void 0:g.v(h,fa)||g.v(h,bz)?!0:!1}; FU=function(h){h=(h.sequentialLayouts||[]).map(function(W){return g.v(W,NZ)}); return h.length>0&&h.every(TG)}; t9=function(h){return ac(h.adLayoutMetadata)?(h=g.v(h.renderingContent,XU))&&h.pings?!0:!1:!1}; Mq4=function(h){if(!ac(h.adLayoutMetadata))return!1;if(g.v(h.renderingContent,iEk)||g.v(h.renderingContent,KCh))return!0;var W=g.v(h.renderingContent,vs);return g.v(h.renderingContent,mE)||g.v(W==null?void 0:W.sidePanel,AmU)||g.v(W==null?void 0:W.sidePanel,UEv)||g.v(W==null?void 0:W.sidePanel,Chh)?!0:!1}; bEh=function(h){var W;(W=!h)||(W=h.adSlotMetadata,W=!((W==null?void 0:W.slotId)!==void 0&&(W==null?void 0:W.slotType)!==void 0));if(W||!(FCL(h)||h.slotEntryTrigger&&h.slotFulfillmentTriggers&&h.slotExpirationTriggers))return!1;var c;h=(c=h.fulfillmentContent)==null?void 0:c.fulfilledLayout;return(c=g.v(h,NZ))?TG(c):(c=g.v(h,oc))?Mq4(c):(c=g.v(h,ymL))?LCv(c):(c=g.v(h,Php))?eWv(c):(c=g.v(h,fjl))?ac(c.adLayoutMetadata)?g.v(c.renderingContent,eT)?!0:!1:!1:(h=g.v(h,pa))?t9(h):!1}; FCL=function(h){var W;h=g.v((W=h.fulfillmentContent)==null?void 0:W.fulfilledLayout,oc);var c;return h&&((c=h.adLayoutMetadata)==null?void 0:c.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&h.layoutExitNormalTriggers===void 0}; TnL=function(h){var W;return(h==null?void 0:(W=h.adSlotMetadata)==null?void 0:W.slotType)==="SLOT_TYPE_IN_PLAYER"}; X5l=function(h,W){var c;if((c=h.questions)==null||!c.length||!h.playbackCommands||(W===void 0||!W)&&h.questions.length!==1)return!1;h=g.e(h.questions);for(W=h.next();!W.done;W=h.next()){W=W.value;var V=c=void 0,H=((c=g.v(W,Ic))==null?void 0:c.surveyAdQuestionCommon)||((V=g.v(W,Yt))==null?void 0:V.surveyAdQuestionCommon);if(!NnN(H))return!1}return!0}; tqU=function(h){h=((h==null?void 0:h.playerOverlay)||{}).instreamSurveyAdRenderer;var W;if(h)if(h.playbackCommands&&h.questions&&h.questions.length===1){var c,V=((W=g.v(h.questions[0],Ic))==null?void 0:W.surveyAdQuestionCommon)||((c=g.v(h.questions[0],Yt))==null?void 0:c.surveyAdQuestionCommon);W=NnN(V)}else W=!1;else W=!1;return W}; NnN=function(h){if(!h)return!1;h=g.v(h.instreamAdPlayerOverlay,Oi);var W=g.v(h==null?void 0:h.skipOrPreviewRenderer,aO),c=g.v(h==null?void 0:h.adInfoRenderer,ST);return(g.v(h==null?void 0:h.skipOrPreviewRenderer,gV)||W)&&c?!0:!1}; v95=function(h){return h.linearAds!=null&&ac(h.adLayoutMetadata)}; mEv=function(h){return h.linearAd!=null&&h.adVideoStart!=null}; o9p=function(h){if(isNaN(Number(h.timeoutSeconds))||!h.text||!h.ctaButton||!g.v(h.ctaButton,g.DJ)||!h.brandImage)return!1;var W;return h.backgroundImage&&g.v(h.backgroundImage,wV)&&((W=g.v(h.backgroundImage,wV))==null?0:W.landscape)?!0:!1}; kt=function(h,W,c,V,H,B,E,J){g.N.call(this);this.hk=h;this.X=W;this.W=V;this.SO=H;this.Y=B;this.G=E;this.Xl=J}; Y0D=function(h,W,c){var V,H=((V=c.adSlots)!=null?V:[]).map(function(J){return g.v(J,hO)}); if(c.nz)if(ov(W.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))wL(h.X.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},W.slotId); else{if(h.hk.get().L.B().j("h5_check_forecasting_renderer_for_throttled_midroll")){var B=c.ND.filter(function(J){var u;return((u=J.renderer)==null?void 0:u.clientForecastingAdRenderer)!=null}); B.length!==0?p5v(h.G,B,H,W.slotId,c.ssdaiAdsConfig):wL(h.X.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},W.slotId)}else wL(h.X.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},W.slotId); IjN(h.Y,W)}else{var E;V={VF:Math.round(((B=ov(W.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:B.VF)||0),EH:(E=ov(W.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:E.EH};B=ov(W.clientMetadata,"metadata_type_cue_point");p5v(h.G,c.ND,H,W.slotId,c.ssdaiAdsConfig,V,B)}}; g9N=function(h,W,c,V,H,B,E,J){var u=Fm(h.SO.get(),1);if(OEN(h.hk.get())){var d=Wl(h.W.get(),c,V,H,u.clientPlaybackNonce,u.xQ,u.daiEnabled,u,B,E);S0v(h,d);wL(h.X.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return d},W)}else wL(h.X.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Wl(h.W.get(),c,V,H,u.clientPlaybackNonce,u.xQ,u.daiEnabled,u,B,E,J)},W)}; S0v=function(h,W){W=g.e(W);for(var c=W.next();!c.done;c=W.next()){var V=c.value;if(V.slotType==="SLOT_TYPE_PLAYER_BYTES"&&V.fulfilledLayout)if(c=void 0,V.fulfilledLayout.renderingContent)c=ov(V.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(V.fulfilledLayout.pN){V=g.e(V.fulfilledLayout.pN);for(var H=V.next();!H.done&&(H=H.value,!H.renderingContent||!(c=ov(H.clientMetadata,"metadata_type_player_vars")));H=V.next());}}else c=void 0;if(c){h.Xl.get().L.preloadVideoByPlayerVars(c, 2,300);break}}}; w57=function(h,W,c,V,H,B,E){W=DET(W,B,Number(V.prefetchMilliseconds)||0,E);h=W instanceof S?W:cl(h,V,H,W,c);return h instanceof S?h:[h]}; kOL=function(h,W,c,V,H){var B=ke(h.W.get(),"SLOT_TYPE_AD_BREAK_REQUEST");V=[new av({getAdBreakUrl:V.getAdBreakUrl,VF:0,EH:0}),new fA(!0)];h=W.pauseDurationMs?W.lactThresholdMs?{slotId:B,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new Rc(h.X,B),slotFulfillmentTriggers:[new dE5(h.X)],slotExpirationTriggers:[new cs(h.X,H),new Hs(h.X,B)],Uf:"core",clientMetadata:new mJ(V),adSlotLoggingData:c}:new S("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new S("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return h instanceof S?h:[h]}; hNU=function(h){var W,c;return((W=h.renderer)==null?void 0:(c=W.adBreakServiceRenderer)==null?void 0:c.getAdBreakUrl)!==void 0}; VD=function(h,W,c){if(h.beforeContentVideoIdStartedTrigger)h=h.beforeContentVideoIdStartedTrigger?new Xq(tX,W,h.id):new S("Not able to create BeforeContentVideoIdStartedTrigger");else{if(h.layoutIdExitedTrigger){var V;W=(V=h.layoutIdExitedTrigger)!=null&&V.triggeringLayoutId?new IO(tX,h.layoutIdExitedTrigger.triggeringLayoutId,h.id):new S("Not able to create LayoutIdExitedTrigger")}else{if(h.layoutExitedForReasonTrigger){var H,B;((H=h.layoutExitedForReasonTrigger)==null?0:H.triggeringLayoutId)&&((B= h.layoutExitedForReasonTrigger)==null?0:B.layoutExitReason)?(W=GOQ(h.layoutExitedForReasonTrigger.layoutExitReason),h=W instanceof S?W:new p8(tX,h.layoutExitedForReasonTrigger.triggeringLayoutId,[W],h.id)):h=new S("Not able to create LayoutIdExitedForReasonTrigger")}else{if(h.onLayoutSelfExitRequestedTrigger){var E;W=(E=h.onLayoutSelfExitRequestedTrigger)!=null&&E.triggeringLayoutId?new Ws(tX,h.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,h.id):new S("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(h.onNewPlaybackAfterContentVideoIdTrigger)h= h.onNewPlaybackAfterContentVideoIdTrigger?new cs(tX,W,h.id):new S("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(h.skipRequestedTrigger){var J;W=(J=h.skipRequestedTrigger)!=null&&J.triggeringLayoutId?new $t(tX,h.skipRequestedTrigger.triggeringLayoutId,h.id):new S("Not able to create SkipRequestedTrigger")}else if(h.slotIdEnteredTrigger){var u;W=(u=h.slotIdEnteredTrigger)!=null&&u.triggeringSlotId?new si(tX,h.slotIdEnteredTrigger.triggeringSlotId,h.id):new S("Not able to create SlotIdEnteredTrigger")}else if(h.slotIdExitedTrigger){var d; W=(d=h.slotIdExitedTrigger)!=null&&d.triggeringSlotId?new Hs(tX,h.slotIdExitedTrigger.triggeringSlotId,h.id):new S("Not able to create SkipRequestedTrigger")}else if(h.surveySubmittedTrigger){var G;W=(G=h.surveySubmittedTrigger)!=null&&G.triggeringLayoutId?new uz(tX,h.surveySubmittedTrigger.triggeringLayoutId,h.id):new S("Not able to create SurveySubmittedTrigger")}else{if(h.mediaResumedTrigger)h=h.mediaResumedTrigger&&h.id?new ZEh(h.id):new S("Not able to create MediaResumedTrigger");else{if(h.closeRequestedTrigger){var Z; W=(Z=h.closeRequestedTrigger)!=null&&Z.triggeringLayoutId?new to(tX,h.closeRequestedTrigger.triggeringLayoutId,h.id):new S("Not able to create CloseRequestedTrigger")}else if(h.slotIdScheduledTrigger){var r;W=(r=h.slotIdScheduledTrigger)!=null&&r.triggeringSlotId?new Rc(tX,h.slotIdScheduledTrigger.triggeringSlotId,h.id):new S("Not able to create SlotIdScheduledTrigger")}else{if(h.mediaTimeRangeTrigger){var q;V=Number((q=h.mediaTimeRangeTrigger)==null?void 0:q.offsetStartMilliseconds);var x;E=Number((x= h.mediaTimeRangeTrigger)==null?void 0:x.offsetEndMilliseconds);isFinite(V)&&isFinite(E)?(x=E,x===-1&&(x=c),c=V>x?new S("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:V,offsetEndMs:x},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",x===c&&V-500<=x):new l2(V,x),h=c instanceof S?c:new DN(tX,W,c,!1,h.id)):h=new S("Not able to create MediaTimeRangeTrigger")}else if(h.contentVideoIdEndedTrigger)h=h.contentVideoIdEndedTrigger?new vS(tX,W,!1,h.id):new S("Not able to create ContentVideoIdEndedTrigger"); else{if(h.layoutIdEnteredTrigger){var z;W=(z=h.layoutIdEnteredTrigger)!=null&&z.triggeringLayoutId?new oO(tX,h.layoutIdEnteredTrigger.triggeringLayoutId,h.id):new S("Not able to create LayoutIdEnteredTrigger")}else if(h.timeRelativeToLayoutEnterTrigger){var L;W=(L=h.timeRelativeToLayoutEnterTrigger)!=null&&L.triggeringLayoutId?new dV(tX,Number(h.timeRelativeToLayoutEnterTrigger.durationMs),h.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,h.id):new S("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(h.onDifferentLayoutIdEnteredTrigger){var M; W=(M=h.onDifferentLayoutIdEnteredTrigger)!=null&&M.triggeringLayoutId&&h.onDifferentLayoutIdEnteredTrigger.slotType&&h.onDifferentLayoutIdEnteredTrigger.layoutType?new kc(tX,h.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,h.onDifferentLayoutIdEnteredTrigger.slotType,h.onDifferentLayoutIdEnteredTrigger.layoutType,h.id):new S("Not able to create CloseRequestedTrigger")}else{if(h.liveStreamBreakStartedTrigger)h=h.liveStreamBreakStartedTrigger&&h.id?new gk(tX,h.id):new S("Not able to create LiveStreamBreakStartedTrigger"); else if(h.liveStreamBreakEndedTrigger)h=h.liveStreamBreakEndedTrigger&&h.id?new Yc(tX,h.id):new S("Not able to create LiveStreamBreakEndedTrigger");else{if(h.liveStreamBreakScheduledDurationMatchedTrigger){var U;W=(U=h.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&U.breakDurationMs?new OR(Number(h.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,h.id):new S("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(h.liveStreamBreakScheduledDurationNotMatchedTrigger){var y; W=(y=h.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&y.breakDurationMs?new SJ(Number(h.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,h.id):new S("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(h.newSlotScheduledWithBreakDurationTrigger){var T;W=(T=h.newSlotScheduledWithBreakDurationTrigger)!=null&&T.breakDurationMs?new wk(Number(h.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,h.id):new S("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else W= h.prefetchCacheExpiredTrigger?new VA(tX,h.id):new S("Not able to convert an AdsControlflowTrigger.");h=W}W=h}h=W}W=h}h=W}W=h}h=W}W=h}h=W}W=h}h=W}return h}; $C=function(h,W){W.X>=2&&(h.slot_pos=W.adPodIndex);h.autoplay="1"}; cQl=function(h,W,c,V,H,B,E,J){return W===null?new S("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:W,ActionCompanionAdRenderer:V}):[W2v(h,W,E,B,function(u){var d=u.slotId;u=J(u);var G=V.adLayoutLoggingData,Z=new mJ([new eu(V),new Pk(H)]);d=yx(c.W.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",d);var r={layoutId:d,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Uf:"core"};return{layoutId:d,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",wE:new Map, layoutExitNormalTriggers:[new cs(c.X,E)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gW:[],Uf:"core",clientMetadata:Z,m8:u(r),adLayoutLoggingData:G}})]}; VU7=function(h,W,c,V,H,B,E,J){return W===null?new S("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:W,TopBannerImageTextIconButtonedLayoutViewModel:V}):[W2v(h,W,E,B,function(u){var d=u.slotId;u=J(u);var G=V.adLayoutLoggingData,Z=new mJ([new zy(V),new Pk(H)]);d=yx(c.W.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",d);var r={layoutId:d,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Uf:"core"};return{layoutId:d,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", wE:new Map,layoutExitNormalTriggers:[new cs(c.X,E)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gW:[],Uf:"core",clientMetadata:Z,m8:u(r),adLayoutLoggingData:G}})]}; Brl=function(h,W,c,V,H,B){if(!B)for(W=g.e(W),B=W.next();!B.done;B=W.next())B=B.value,s2(h,B.renderer,B.config.adPlacementConfig.kind);h=Array.from(h.values()).filter(function(G){return $lp(G)}); W=[];B=g.e(h);for(var E=B.next(),J={};!E.done;J={UT:void 0},E=B.next()){J.UT=E.value;E=g.e(J.UT.qP);for(var u=E.next(),d={};!u.done;d={Pp:void 0},u=E.next())d.Pp=u.value,u=function(G,Z){return function(r){return G.Pp.CE(r,Z.UT.instreamVideoAdRenderer.elementId,G.Pp.RB)}}(d,J),d.Pp.isContentVideoCompanion?W.push(sbN(c,V,H,J.UT.instreamVideoAdRenderer.elementId,d.Pp.associatedCompositePlayerBytesLayoutId,d.Pp.adSlotLoggingData,u)):h.length>1?W.push(HPQ(c,V,H,J.UT.instreamVideoAdRenderer.elementId,d.Pp.adSlotLoggingData, function(G,Z){return function(r){return G.Pp.CE(r,Z.UT.instreamVideoAdRenderer.elementId,G.Pp.RB,G.Pp.associatedCompositePlayerBytesLayoutId)}}(d,J))):W.push(HPQ(c,V,H,J.UT.instreamVideoAdRenderer.elementId,d.Pp.adSlotLoggingData,u))}return W}; s2=function(h,W,c){if(W=EWd(W)){W=g.e(W);for(var V=W.next();!V.done;V=W.next())if((V=V.value)&&V.externalVideoId){var H=Hl(h,V.externalVideoId);H.instreamVideoAdRenderer||(H.instreamVideoAdRenderer=V,H.JM=c)}else sA("InstreamVideoAdRenderer without externalVideoId")}}; EWd=function(h){var W=[],c=h.sandwichedLinearAdRenderer&&h.sandwichedLinearAdRenderer.linearAd&&g.v(h.sandwichedLinearAdRenderer.linearAd,yA);if(c)return W.push(c),W;if(h.instreamVideoAdRenderer)return W.push(h.instreamVideoAdRenderer),W;if(h.linearAdSequenceRenderer&&h.linearAdSequenceRenderer.linearAds){h=g.e(h.linearAdSequenceRenderer.linearAds);for(c=h.next();!c.done;c=h.next())c=c.value,g.v(c,yA)&&W.push(g.v(c,yA));return W}return null}; $lp=function(h){if(h.instreamVideoAdRenderer===void 0)return sA("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var W=g.e(h.qP),c=W.next();!c.done;c=W.next()){c=c.value;if(c.CE===void 0)return!1;if(c.RB===void 0)return sA("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(h.JM===void 0||c.Ls===void 0||h.JM!==c.Ls&&c.Ls!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(h.instreamVideoAdRenderer.elementId===void 0)return sA("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:h.JM,"matching APSR kind":c.Ls}),!1}return!0}; Hl=function(h,W){h.has(W)||h.set(W,{instreamVideoAdRenderer:void 0,JM:void 0,adVideoId:W,qP:[]});return h.get(W)}; Bl=function(h,W,c,V,H,B,E,J,u){H?Hl(h,H).qP.push({ULN:W,Ls:c,isContentVideoCompanion:V,RB:E,associatedCompositePlayerBytesLayoutId:B,adSlotLoggingData:J,CE:u}):sA("Companion AdPlacementSupportedRenderer without adVideoId")}; E2=function(h){var W=0;h=g.e(h.questions);for(var c=h.next();!c.done;c=h.next())if(c=c.value,c=g.v(c,Ic)||g.v(c,Yt)){var V=void 0;W+=((V=c.surveyAdQuestionCommon)==null?void 0:V.durationMilliseconds)||0}return W}; Rp=function(h){var W,c,V,H,B=((c=g.v((W=h.questions)==null?void 0:W[0],Ic))==null?void 0:c.surveyAdQuestionCommon)||((H=g.v((V=h.questions)==null?void 0:V[0],Yt))==null?void 0:H.surveyAdQuestionCommon),E;W=[].concat(g.rN(((E=h.playbackCommands)==null?void 0:E.instreamAdCompleteCommands)||[]),g.rN((B==null?void 0:B.timeoutCommands)||[]));var J,u,d,G,Z,r,q,x,z,L,M,U,y,T,m,D,O,Bd,qL,Rk;return{impressionCommands:(J=h.playbackCommands)==null?void 0:J.impressionCommands,errorCommands:(u=h.playbackCommands)== null?void 0:u.errorCommands,muteCommands:(d=h.playbackCommands)==null?void 0:d.muteCommands,unmuteCommands:(G=h.playbackCommands)==null?void 0:G.unmuteCommands,pauseCommands:(Z=h.playbackCommands)==null?void 0:Z.pauseCommands,rewindCommands:(r=h.playbackCommands)==null?void 0:r.rewindCommands,resumeCommands:(q=h.playbackCommands)==null?void 0:q.resumeCommands,skipCommands:(x=h.playbackCommands)==null?void 0:x.skipCommands,progressCommands:(z=h.playbackCommands)==null?void 0:z.progressCommands,pjk:(L= h.playbackCommands)==null?void 0:L.clickthroughCommands,fullscreenCommands:(M=h.playbackCommands)==null?void 0:M.fullscreenCommands,activeViewViewableCommands:(U=h.playbackCommands)==null?void 0:U.activeViewViewableCommands,activeViewMeasurableCommands:(y=h.playbackCommands)==null?void 0:y.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(T=h.playbackCommands)==null?void 0:T.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(m=h.playbackCommands)== null?void 0:(D=m.activeViewTracking)==null?void 0:D.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(O=h.playbackCommands)==null?void 0:(Bd=O.activeViewTracking)==null?void 0:Bd.activeViewAudioMeasurableCommands,endFullscreenCommands:(qL=h.playbackCommands)==null?void 0:qL.endFullscreenCommands,abandonCommands:(Rk=h.playbackCommands)==null?void 0:Rk.abandonCommands,completeCommands:W}}; JQh=function(h,W,c,V,H,B,E){return function(J,u){return RNQ(h,u.slotId,J,B,function(d,G){var Z=u.layoutId;d=E(d);return JO(W,Z,G,H,d,"LAYOUT_TYPE_SURVEY",[new Dd(c),V],c.adLayoutLoggingData)})}}; G65=function(h,W,c,V,H,B,E){if(!uck(h))return new S("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:h});var J=h.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[dld(B,W,c,V,function(u){var d=u.slotId;u=E(u);d=yx(H.W.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",d);var G={layoutId:d,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Uf:"core"},Z=new IO(H.X,V);return{layoutId:d,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",wE:new Map,layoutExitNormalTriggers:[Z], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gW:[],Uf:"core",clientMetadata:new mJ([new wZ(J)]),m8:u(G)}})]}; uck=function(h){h=g.v(h==null?void 0:h.additionalPlayerOverlay,ZPp);if(!h)return!1;var W=h.slidingMessages;return h.title&&W&&W.length!==0?!0:!1}; qkN=function(h,W,c,V,H){var B;if((B=h.playerOverlay)==null||!B.instreamSurveyAdRenderer)return function(){return[]}; if(!tqU(h))return function(){return new S("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:h})}; var E=h.playerOverlay.instreamSurveyAdRenderer,J=E2(E);return J<=0?function(){return new S("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:E})}:function(u,d){var G=rQD(u,c,V,function(Z){var r=Z.slotId; Z=d(Z);var q=Rp(E);r=yx(H.W.get(),"LAYOUT_TYPE_SURVEY",r);var x={layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Uf:"core"},z=new IO(H.X,V),L=new $t(H.X,r),M=new uz(H.X,r),U=new ljl(H.X);return{layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",wE:new Map,layoutExitNormalTriggers:[z,U],layoutExitSkipTriggers:[L],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[M],gW:[],Uf:"core",clientMetadata:new mJ([new gZ(E),new Pk(W),new Qb(J/1E3),new AX(q)]),m8:Z(x),adLayoutLoggingData:E.adLayoutLoggingData}}); u=G65(h,c,G.slotId,V,H,u,d);return u instanceof S?u:[G].concat(g.rN(u))}}; zNQ=function(h,W,c,V,H,B,E){E=E===void 0?!1:E;var J=[];try{var u=[];if(c.renderer.linearAdSequenceRenderer)var d=function(z){z=xl4(z.slotId,c,W,H(z),V,B,E);u=z.Hpk;return z.I8}; else if(c.renderer.instreamVideoAdRenderer)d=function(z){var L=z.slotId;z=H(z);var M=E,U=c.config.adPlacementConfig,y=lIQ(U),T=y.je,m=y.FT;y=c.renderer.instreamVideoAdRenderer;var D;if(y==null?0:(D=y.playerOverlay)==null?0:D.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var O=uI(y,M);D=Math.min(T+O.videoLengthSeconds*1E3,m);M=new NX(0,[O.videoLengthSeconds]);m=O.videoLengthSeconds;var Bd=O.playerVars,qL=O.instreamAdPlayerOverlayRenderer,Rk=O.playerOverlayLayoutRenderer, JN=O.adVideoId,Wd=nW5(c),Uv=O.wE;O=O.qf;var gN=y==null?void 0:y.adLayoutLoggingData;y=y==null?void 0:y.sodarExtensionData;L=yx(W.W.get(),"LAYOUT_TYPE_MEDIA",L);var W2={layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA",Uf:"core"};return{layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA",wE:Uv,layoutExitNormalTriggers:[new Yc(W.X)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gW:[],Uf:"core",clientMetadata:new mJ([new tC(V),new Rv(m),new JX(Bd),new GH(T),new ZF(D),qL&& new vk(qL),Rk&&new mX(Rk),new Pk(U),new XZ(JN),new f9(M),new nA(Wd),y&&new dy(y),new $1({current:null}),new qO({}),new MO(O)].filter(jb5)),m8:z(W2),adLayoutLoggingData:gN}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var G=aId(h,V,c.adSlotLoggingData,d);J.push(G);for(var Z=g.e(u),r=Z.next();!r.done;r=Z.next()){var q=r.value,x=q(h,H);if(x instanceof S)return x;J.push.apply(J,g.rN(x))}}catch(z){return new S(z,{errorMessage:z.message,AdPlacementRenderer:c,numberOfSurveyRenderers:eNU(c)})}return J}; eNU=function(h){h=(h.renderer.linearAdSequenceRenderer||{}).linearAds;return h!=null&&h.length?h.filter(function(W){var c,V;return((c=g.v(W,yA))==null?void 0:(V=c.playerOverlay)==null?void 0:V.instreamSurveyAdRenderer)!=null}).length:0}; xl4=function(h,W,c,V,H,B,E){var J=W.config.adPlacementConfig,u=lIQ(J),d=u.je,G=u.FT;u=(W.renderer.linearAdSequenceRenderer||{}).linearAds;if(u==null||!u.length)throw new TypeError("Expected linear ads");var Z=[],r={Xx:d,tv:0,QdW:Z};u=u.map(function(x){return Qbv(h,x,r,c,V,J,H,G,E)}).map(function(x,z){z=new NX(z,Z); return x(z)}); var q=u.map(function(x){return x.MO}); return{I8:L24(c,h,d,q,J,nW5(W),V,G,B),Hpk:u.map(function(x){return x.NeN})}}; Qbv=function(h,W,c,V,H,B,E,J,u){var d=uI(g.v(W,yA),u),G=c.Xx,Z=c.tv,r=Math.min(G+d.videoLengthSeconds*1E3,J);c.Xx=r;c.tv++;c.QdW.push(d.videoLengthSeconds);var q,x,z=(q=g.v(W,yA))==null?void 0:(x=q.playerOverlay)==null?void 0:x.instreamSurveyAdRenderer;if(d.adVideoId==="nPpU29QrbiU"&&z==null)throw new TypeError("Survey slate media has no survey overlay");return function(L){$C(d.playerVars,L);var M,U,y=d.videoLengthSeconds,T=d.playerVars,m=d.wE,D=d.qf,O=d.instreamAdPlayerOverlayRenderer,Bd=d.playerOverlayLayoutRenderer, qL=d.adVideoId,Rk=(M=g.v(W,yA))==null?void 0:M.adLayoutLoggingData;M=(U=g.v(W,yA))==null?void 0:U.sodarExtensionData;U=yx(V.W.get(),"LAYOUT_TYPE_MEDIA",h);var JN={layoutId:U,layoutType:"LAYOUT_TYPE_MEDIA",Uf:"adapter"};L={layoutId:U,layoutType:"LAYOUT_TYPE_MEDIA",wE:m,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gW:[],Uf:"adapter",clientMetadata:new mJ([new tC(E),new Rv(y),new JX(T),new GH(G),new ZF(r),new ry(Z),new $1({current:null}), O&&new vk(O),Bd&&new mX(Bd),new Pk(B),new XZ(qL),new f9(L),M&&new dy(M),z&&new CA(z),new qO({}),new MO(D)].filter(jb5)),m8:H(JN),adLayoutLoggingData:Rk};y=qkN(g.v(W,yA),B,E,L.layoutId,V);return{MO:L,NeN:y}}}; uI=function(h,W){if(!h)throw new TypeError("Expected instream video ad renderer");if(!h.playerVars)throw new TypeError("Expected player vars in url encoded string");var c=gO(h.playerVars),V=Number(c.length_seconds);if(isNaN(V))throw new TypeError("Expected valid length seconds in player vars");var H=Number(h.trimmedMaxNonSkippableAdDurationMs);V=isNaN(H)?V:Math.min(V,H/1E3);H=h.playerOverlay||{};H=H.instreamAdPlayerOverlayRenderer===void 0?null:H.instreamAdPlayerOverlayRenderer;var B=h.playerOverlay|| {};B=B.playerOverlayLayoutRenderer===void 0?null:B.playerOverlayLayoutRenderer;var E=c.video_id;E||(E=(E=h.externalVideoId)?E:void 0);if(!E)throw new TypeError("Expected valid video id in IVAR");if(W&&V===0){var J;W=(J=iP7[E])!=null?J:V}else W=V;return{playerVars:c,videoLengthSeconds:W,instreamAdPlayerOverlayRenderer:H,playerOverlayLayoutRenderer:B,adVideoId:E,wE:h.pings?R1(h.pings):new Map,qf:Ee(h.pings)}}; nW5=function(h){h=Number(h.driftRecoveryMs);return isNaN(h)||h<=0?null:h}; lIQ=function(h){var W=h.adTimeOffset||{};h=W.offsetEndMilliseconds;W=Number(W.offsetStartMilliseconds);if(isNaN(W))throw new TypeError("Expected valid start offset");h=Number(h);if(isNaN(h))throw new TypeError("Expected valid end offset");return{je:W,FT:h}}; K2D=function(h){var W,c=(W=ov(h.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:W.current;if(!c)return null;W=ov(h.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var V=h.layoutId,H=ov(h.clientMetadata,"metadata_type_content_cpn"),B=ov(h.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),E=ov(h.clientMetadata,"metadata_type_player_underlay_renderer"),J=ov(h.clientMetadata,"metadata_type_ad_placement_config"),u=ov(h.clientMetadata,"metadata_type_video_length_seconds"); var d=NO(h.clientMetadata,"metadata_type_layout_enter_ms")&&NO(h.clientMetadata,"metadata_type_layout_exit_ms")?(ov(h.clientMetadata,"metadata_type_layout_exit_ms")-ov(h.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{UG:V,contentCpn:H,q_:c,Fp:W,instreamAdPlayerOverlayRenderer:B,instreamAdPlayerUnderlayRenderer:E,adPlacementConfig:J,videoLengthSeconds:u,TF:d,inPlayerLayoutId:ov(h.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:ov(h.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; CQk=function(h,W,c,V,H,B,E,J,u,d,G,Z,r,q,x){V=ke(V,"SLOT_TYPE_PLAYER_BYTES");h=AQN(H,h,E,c,V,u,d);if(h instanceof S)return h;var z;d=(z=ov(h.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:z.layoutId;if(!d)return new S("Invalid adNotify layout");W=Ulk(d,H,B,c,J,W,u,G,Z,r,q,x,E);return W instanceof S?W:[h].concat(g.rN(W))}; Ulk=function(h,W,c,V,H,B,E,J,u,d,G,Z,r){c=MUL(W,c,V,B,E,J,u,d,G,Z,r);if(c instanceof S)return c;h=F2d(W,h,E,H,c);return h instanceof S?h:[].concat(g.rN(h.ze),[h.Hs])}; PQN=function(h,W,c,V,H,B,E,J,u,d,G,Z,r,q){W=MUL(h,W,c,H,B,J,u,d,G,Z,r,q);if(W instanceof S)return W;h=yQh(h,c,B,E,V,J.Hi,W);return h instanceof S?h:h.ze.concat(h.Hs)}; MUL=function(h,W,c,V,H,B,E,J,u,d,G,Z){var r=d2(V,c,d);return r instanceof vq?new S(r):d.L.B().experiments.xN("html5_refactor_in_player_slot_generation")?function(q){var x=new NX(0,[r.kh]);q=fIU(W,r.layoutId,r.Yh,c,G2(r.playerVars,r.tT,B,u,x),r.kh,H,x,E(q),J.get(r.Yh.externalVideoId),Z);x=[];if(r.Yh.playerOverlay.instreamAdPlayerOverlayRenderer){var z=K2D(q);if(!z)return sA("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,q),{layout:q,ze:[]}; x=[bP7(h,z.contentCpn,z.UG,function(M){return Zt(W,M.slotId,"core",z,gy(G,M))},z.inPlayerSlotId)].concat(g.rN(x)); if(z.instreamAdPlayerUnderlayRenderer&&r2(d)){var L=z.instreamAdPlayerUnderlayRenderer;x=[Trv(h,z.contentCpn,z.UG,function(M){return Nrl(W,M.slotId,L,z.adPlacementConfig,z.UG,gy(G,M))})].concat(g.rN(x))}}return{layout:q, ze:x}}:function(q){var x=new NX(0,[r.kh]); return{layout:fIU(W,r.layoutId,r.Yh,c,G2(r.playerVars,r.tT,B,u,x),r.kh,H,x,E(q),J.get(r.Yh.externalVideoId),Z),ze:[]}}}; d2=function(h,W,c){if(!h.playerVars)return new vq("No playerVars available in InstreamVideoAdRenderer.");var V,H;if(h.elementId==null||h.playerVars==null||h.playerOverlay==null||((V=h.playerOverlay)==null?void 0:V.instreamAdPlayerOverlayRenderer)==null&&((H=h.playerOverlay)==null?void 0:H.playerOverlayLayoutRenderer)==null||h.pings==null||h.externalVideoId==null)return new vq("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:h});V=gO(h.playerVars);H=Number(V.length_seconds); isNaN(H)&&(H=0,sA("Expected valid length seconds in player vars but got NaN"));if(c.Y4(W.kind==="AD_PLACEMENT_KIND_START")){if(h.layoutId===void 0)return new vq("Expected server generated layout ID in instreamVideoAdRenderer");W=h.layoutId}else W=h.elementId;return{layoutId:W,Yh:h,playerVars:V,tT:h.playerVars,kh:H}}; G2=function(h,W,c,V,H){h.iv_load_policy=V;W=gO(W);if(W.cta_conversion_urls)try{h.cta_conversion_urls=JSON.parse(W.cta_conversion_urls)}catch(B){sA(B)}c.wp&&(h.ctrl=c.wp);c.cR&&(h.ytr=c.cR);c.QQ&&(h.ytrcc=c.QQ);c.isMdxPlayback&&(h.mdx="1");h.vvt&&(h.vss_credentials_token=h.vvt,c.TL&&(h.vss_credentials_token_type=c.TL),c.mdxEnvironment&&(h.mdx_environment=c.mdxEnvironment));$C(h,H);return h}; X77=function(h){var W=new Map;h=g.e(h);for(var c=h.next();!c.done;c=h.next())(c=c.value.renderer.remoteSlotsRenderer)&&c.hostElementId&&W.set(c.hostElementId,c);return W}; qD=function(h){return h.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; tUl=function(h){return h!=null}; OP5=function(h,W,c,V,H,B,E,J,u,d,G,Z,r,q,x){for(var z=[],L=g.e(h),M=L.next();!M.done;M=L.next())if(M=M.value,!FCL(M)&&!TnL(M)){var U=qD(M)&&!!M.slotEntryTrigger.beforeContentVideoIdStartedTrigger,y=u.Y4(U),T=vWh(M,d,V,c.xQ,y);if(T instanceof S)return T;var m=void 0,D={slotId:M.adSlotMetadata.slotId,slotType:M.adSlotMetadata.slotType,slotPhysicalPosition:(m=M.adSlotMetadata.slotPhysicalPosition)!=null?m:1,Uf:"core",slotEntryTrigger:T.slotEntryTrigger,slotFulfillmentTriggers:T.slotFulfillmentTriggers, slotExpirationTriggers:T.slotExpirationTriggers},O=g.v(M.fulfillmentContent.fulfilledLayout,NZ);if(O){if(!TG(O))return new S("Invalid PlayerBytesAdLayoutRenderer");m=Z&&!(qD(M)&&M.slotEntryTrigger.beforeContentVideoIdStartedTrigger);T=T.slotFulfillmentTriggers.some(function(Bd){return Bd instanceof OR}); y=m?mlL(D,M.adSlotMetadata.triggerEvent,O,c,V,B,d,h,y,r,T,q):oW5(D,M.adSlotMetadata.triggerEvent,O,W,c,V,H,B,E,J,u,d,h,G,y,M.adSlotMetadata.triggeringSourceLayoutId);if(y instanceof S)return y;T=[];x?T.push(new Ez({current:x})):T.push(new Ez({current:null}));qD(M)&&T.push(new b8({Cv:qD(M)&&!!M.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));m&&T.push(new qO({}));c.Hi&&T.push(new Uz({}));T.push(new Pq(U));M=Object.assign({},D,{clientMetadata:new mJ(T),fulfilledLayout:y.layout,adSlotLoggingData:M.adSlotMetadata.adSlotLoggingData}); z.push.apply(z,g.rN(y.ze));z.push(M)}else if(U=g.v(M.fulfillmentContent.fulfilledLayout,oc)){if(!Mq4(U))return new S("Invalid PlayerUnderlayAdLayoutRenderer");U=p75(U,V,c.xQ,B,D,M.adSlotMetadata.triggerEvent,M.adSlotMetadata.triggeringSourceLayoutId);if(U instanceof S)return U;M=Object.assign({},D,{clientMetadata:new mJ([]),fulfilledLayout:U,adSlotLoggingData:M.adSlotMetadata.adSlotLoggingData});z.push(M)}else if(U=g.v(M.fulfillmentContent.fulfilledLayout,Php)){if(!eWv(U))return new S("Invalid AboveFeedAdLayoutRenderer"); U=IIQ(U,V,c.xQ,B,D,M.adSlotMetadata.triggerEvent,M.adSlotMetadata.triggeringSourceLayoutId);if(U instanceof S)return U;M=Object.assign({},D,{clientMetadata:new mJ([]),fulfilledLayout:U,adSlotLoggingData:M.adSlotMetadata.adSlotLoggingData});z.push(M)}else if(U=g.v(M.fulfillmentContent.fulfilledLayout,fjl)){if(!ac(U.adLayoutMetadata)||!g.v(U.renderingContent,eT))return new S("Invalid BelowPlayerAdLayoutRenderer");U=IIQ(U,V,c.xQ,B,D,M.adSlotMetadata.triggerEvent,M.adSlotMetadata.triggeringSourceLayoutId); if(U instanceof S)return U;M=Object.assign({},D,{clientMetadata:new mJ([]),fulfilledLayout:U,adSlotLoggingData:M.adSlotMetadata.adSlotLoggingData});z.push(M)}else if(U=g.v(M.fulfillmentContent.fulfilledLayout,pa)){if(!t9(U))return new S("Invalid PlayerBytesSequenceItemAdLayoutRenderer");U=Yk7(U,V,c.xQ,B,D,M.adSlotMetadata.triggerEvent);if(U instanceof S)return U;M=Object.assign({},D,{clientMetadata:new mJ([]),fulfilledLayout:U,adSlotLoggingData:M.adSlotMetadata.adSlotLoggingData});z.push(M)}else return new S("Unable to retrieve a client slot ["+ D.slotType+"] from a given AdSlotRenderer")}return z}; Yk7=function(h,W,c,V,H,B){var E={layoutId:h.adLayoutMetadata.layoutId,layoutType:h.adLayoutMetadata.layoutType,Uf:"core"};W=xC(h,W,c);return W instanceof S?W:(c=g.v(h.renderingContent,XU))&&c.pings?Object.assign({},E,{renderingContent:h.renderingContent,wE:R1(c.pings)},W,{m8:gy(V,H)(E),clientMetadata:new mJ([new Pk(lI(B))]),adLayoutLoggingData:h.adLayoutMetadata.adLayoutLoggingData}):new S("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; IIQ=function(h,W,c,V,H,B,E){var J={layoutId:h.adLayoutMetadata.layoutId,layoutType:h.adLayoutMetadata.layoutType,Uf:"core"};W=xC(h,W,c);if(W instanceof S)return W;c=[];c.push(new Pk(lI(B)));B==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&E!==void 0&&c.push(new kE(E));return Object.assign({},J,{renderingContent:h.renderingContent,wE:new Map([["impression",SkU(h)]])},W,{m8:gy(V,H)(J),clientMetadata:new mJ(c),adLayoutLoggingData:h.adLayoutMetadata.adLayoutLoggingData})}; p75=function(h,W,c,V,H,B,E){if(h.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(E=g.v(h.renderingContent,vs))if(E=g.v(E.sidePanel,UEv)){var J={layoutId:h.adLayoutMetadata.layoutId,layoutType:h.adLayoutMetadata.layoutType,Uf:"core"};W=xC(h,W,c);h=W instanceof S?W:Object.assign({},J,{renderingContent:h.renderingContent,wE:new Map([["impression",E.impressionPings||[]],["resume",E.resumePings||[]]])},W,{m8:gy(V,H)(J),clientMetadata:new mJ([new Pk(lI(B))]),adLayoutLoggingData:h.adLayoutMetadata.adLayoutLoggingData})}else h= new S("DismissablePanelTextPortraitImageRenderer is missing");else h=new S("SqueezebackPlayerSidePanelRenderer is missing");else h.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.v(h.renderingContent,iEk)?(E={layoutId:h.adLayoutMetadata.layoutId,layoutType:h.adLayoutMetadata.layoutType,Uf:"core"},W=xC(h,W,c),h=W instanceof S?W:Object.assign({},E,{renderingContent:h.renderingContent,wE:new Map},W,{m8:gy(V,H)(E),clientMetadata:new mJ([new Pk(lI(B))]),adLayoutLoggingData:h.adLayoutMetadata.adLayoutLoggingData})): h=new S("CounterfactualRenderer is missing"):h.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?h=new S("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):h.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?h=new S("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):h.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.v(h.renderingContent,mE)?(B={layoutId:h.adLayoutMetadata.layoutId,layoutType:h.adLayoutMetadata.layoutType, Uf:"core"},W=xC(h,W,c),h=W instanceof S?W:E?Object.assign({},B,{renderingContent:h.renderingContent,wE:new Map},W,{m8:gy(V,H)(B),clientMetadata:new mJ([new kE(E)]),adLayoutLoggingData:h.adLayoutMetadata.adLayoutLoggingData}):new S("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):h=new S("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):h.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.v(h.renderingContent,KCh)? (B={layoutId:h.adLayoutMetadata.layoutId,layoutType:h.adLayoutMetadata.layoutType,Uf:"core"},W=xC(h,W,c),h=W instanceof S?W:Object.assign({},B,{renderingContent:h.renderingContent,wE:new Map([])},W,{m8:gy(V,H)(B),adLayoutLoggingData:h.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new mJ([])})):h=new S("AdsEngagementPanelSectionListViewModel is missing"):h=new S("LayoutType ["+h.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return h}; mlL=function(h,W,c,V,H,B,E,J,u,d,G,Z){if((Z==null?void 0:Z.VF)===void 0||(Z==null?void 0:Z.EH)===void 0)return new S("Cached ad break range from cue point is missing");var r=xC(c,H,V.xQ);if(r instanceof S)return r;r={layoutExitMuteTriggers:[],layoutExitNormalTriggers:r.layoutExitNormalTriggers,layoutExitSkipTriggers:[],gW:[],layoutExitUserInputSubmittedTriggers:[]};if(g.v(c.renderingContent,yA))return h=gWU(h,W,c,r,H,B,J,u,V.xQ,E,Z.VF,Z.EH),h instanceof S?h:h.jK===void 0?new S("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:h.layout,ze:[h.jK]};var q=g.v(c.renderingContent,MZ);if(q){if(!ac(c.adLayoutMetadata))return new S("Invalid ad layout metadata");if(!FU(q))return new S("Invalid sequential layout");q=q.sequentialLayouts.map(function(x){return x.playerBytesAdLayoutRenderer}); h=DlD(h,W,c,r,q,H,V,B,E,u,J,d,Z.VF,Z.EH,G);return h instanceof S?h:{layout:h.zq,ze:h.ze}}return new S("Not able to convert a sequential layout")}; DlD=function(h,W,c,V,H,B,E,J,u,d,G,Z,r,q,x){var z=w7N(H,r,q);if(z instanceof S)return z;var L=[],M=[];z=g.e(z);for(var U=z.next();!U.done;U=z.next()){var y=U.value;U=h;var T=H[y.tv],m=y,D=W;y=B;var O=E,Bd=J,qL=u,Rk=d,JN=G,Wd=nY(T);if(Wd instanceof S)U=Wd;else{var Uv={layoutId:T.adLayoutMetadata.layoutId,layoutType:T.adLayoutMetadata.layoutType,Uf:"adapter"};m=k6v(D,T,m,y);m instanceof S?U=m:(U=Object.assign({},Uv,j0,{wE:Wd,renderingContent:T.renderingContent,clientMetadata:new mJ(m),m8:gy(Bd,U)(Uv), adLayoutLoggingData:T.adLayoutMetadata.adLayoutLoggingData}),U=(T=ap(JN,U,y,O.xQ,Bd,qL,Rk,void 0,!0))?T instanceof S?T:{layout:U,jK:T}:new S("Expecting associatedInPlayerSlot"))}if(U instanceof S)return U;L.push(U.layout);M.push(U.jK)}H={layoutId:c.adLayoutMetadata.layoutId,layoutType:c.adLayoutMetadata.layoutType,Uf:"core"};W=[new nA(Number(c.driftRecoveryMs)),new GH(r),new ZF(q),new Pk(lI(W)),new yb(Z),new qO({})];x&&W.push(new TH({}));return{zq:Object.assign({},H,V,{pN:L,wE:new Map,clientMetadata:new mJ(W), m8:gy(J,h)(H)}),ze:M}}; gWU=function(h,W,c,V,H,B,E,J,u,d,G,Z){if(!TG(c))return new S("Invalid PlayerBytesAdLayoutRenderer");var r=nY(c);if(r instanceof S)return r;var q={layoutId:c.adLayoutMetadata.layoutId,layoutType:c.adLayoutMetadata.layoutType,Uf:"core"},x=g.v(c.renderingContent,yA);if(!x)return new S("Invalid rendering content for DAI media layout");x=uI(x,!1);G={YB:x,tv:0,Xx:G,BZ:Math.min(G+x.videoLengthSeconds*1E3,Z),DS:new NX(0,[x.videoLengthSeconds])};var z;Z=(z=Number(c.driftRecoveryMs))!=null?z:void 0;W=k6v(W, c,G,H,Z);if(W instanceof S)return W;h=Object.assign({},q,V,{wE:r,renderingContent:c.renderingContent,clientMetadata:new mJ(W),m8:gy(B,h)(q),adLayoutLoggingData:c.adLayoutMetadata.adLayoutLoggingData});return(H=ap(E,h,H,u,B,d,J,void 0,!0))?H instanceof S?H:{layout:h,jK:H}:new S("Expecting associatedInPlayerSlot")}; oW5=function(h,W,c,V,H,B,E,J,u,d,G,Z,r,q,x,z){var L=xC(c,B,H.xQ);if(L instanceof S)return L;if(g.v(c.renderingContent,yA)){u=hKN([c],H,u);if(u instanceof S)return u;if(u.length!==1)return new S("Only expected one media layout.");h=WXl(h,W,c,L,u[0],void 0,"core",V,B,E,J,d,r,q,x,H.xQ,Z,void 0,z);return h instanceof S?h:{layout:h.layout,ze:h.jK?[h.jK]:[]}}var M=g.v(c.renderingContent,MZ);if(M){if(!ac(c.adLayoutMetadata))return new S("Invalid ad layout metadata");if(!FU(M))return new S("Invalid sequential layout"); M=M.sequentialLayouts.map(function(U){return U.playerBytesAdLayoutRenderer}); h=cC7(h,W,c.adLayoutMetadata,L,M,V,B,H,u,E,J,d,G,Z,x,r,q,z);return h instanceof S?h:{layout:h.zq,ze:h.ze}}return new S("Not able to convert a sequential layout")}; cC7=function(h,W,c,V,H,B,E,J,u,d,G,Z,r,q,x,z,L,M){var U=new Nk({current:null}),y=hKN(H,J,u);if(y instanceof S)return y;u=[];for(var T=[],m=void 0,D=0;D0&&(D.push(M),D.push(new Ty(m.adPodSkipTarget)));(B=d.get(m.externalVideoId))&&D.push(new zH(B));B=D}else B=new S("Invalid vod media renderer")}if(B instanceof S)return B;h=Object.assign({},E,V,{wE:y,renderingContent:c.renderingContent,clientMetadata:new mJ(B),m8:gy(G,h)(E),adLayoutLoggingData:c.adLayoutMetadata.adLayoutLoggingData});c=g.v(c.renderingContent,yA);if(!c||!Ca(c))return new S("Invalid meida renderer");Z=Hl(Z,c.externalVideoId);Z.instreamVideoAdRenderer=c;Z.JM="AD_PLACEMENT_KIND_START";return q?(u=ap(r,h,u,z,G,L,x,M,!1),u instanceof S?u:s4U(h.layoutId,r)&&u?{layout:Object.assign({},h,{clientMetadata:new mJ(B.concat(new I4(u)))})}:{layout:h,jK:u}): {layout:h}}; VuQ=function(h,W,c,V,H){if(!TG(W))return new S("Invalid PlayerBytesAdLayoutRenderer");var B=g.v(W.renderingContent,I1);if(!B||B.durationMilliseconds===void 0)return new S("Invalid endcap renderer");var E={layoutId:W.adLayoutMetadata.layoutId,layoutType:W.adLayoutMetadata.layoutType,Uf:"adapter"};V=[new LA(B.durationMilliseconds),new AX({impressionCommands:void 0,abandonCommands:B.abandonCommands?[{commandExecutorCommand:B.abandonCommands}]:void 0,completeCommands:B.completionCommands}),new Pk(V), new Wq("LAYOUT_TYPE_ENDCAP")];if(H){V.push(new bG(H.DS.adPodIndex-1));V.push(new ry(H.DS.adPodIndex));var J;V.push(new Ty((J=H.adPodSkipTarget)!=null?J:-1))}return Object.assign({},E,j0,{renderingContent:W.renderingContent,clientMetadata:new mJ(V),wE:B.skipPings?new Map([["skip",B.skipPings]]):new Map,m8:gy(c,h)(E),adLayoutLoggingData:W.adLayoutMetadata.adLayoutLoggingData})}; ap=function(h,W,c,V,H,B,E,J,u){h=h.filter(function(Z){return Z.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&Z.adSlotMetadata.triggeringSourceLayoutId===W.layoutId}); if(h.length!==0){if(h.length!==1)return new S("Invalid InPlayer slot association for the given PlayerBytes layout");h=h[0];E=vWh(h,B,c,V,E);if(E instanceof S)return E;var d;B={slotId:h.adSlotMetadata.slotId,slotType:h.adSlotMetadata.slotType,slotPhysicalPosition:(d=h.adSlotMetadata.slotPhysicalPosition)!=null?d:1,Uf:"core",slotEntryTrigger:E.slotEntryTrigger,slotFulfillmentTriggers:E.slotFulfillmentTriggers,slotExpirationTriggers:E.slotExpirationTriggers};d=g.v(h.fulfillmentContent.fulfilledLayout, ymL);if(!d||!LCv(d))return new S("Invalid InPlayerAdLayoutRenderer");E={layoutId:d.adLayoutMetadata.layoutId,layoutType:d.adLayoutMetadata.layoutType,Uf:"core"};c=xC(d,c,V);if(c instanceof S)return c;V=[];var G=d.adLayoutMetadata.layoutType;u&&V.push(new qO({}));if(G==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")V.push.apply(V,g.rN(H9k(h.adSlotMetadata.triggerEvent,W)));else if(G==="LAYOUT_TYPE_ENDCAP"||G==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){V.push(new Pk(lI(h.adSlotMetadata.triggerEvent))); if(G==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new S("Cannot parse endcap layout since AdUxReadyApi is not provided");J&&V.push(J)}else return new S("Not able to parse an SDF InPlayer layout");H=Object.assign({},E,c,{renderingContent:d.renderingContent,wE:new Map,m8:gy(H,B)(E),clientMetadata:new mJ(V),adLayoutLoggingData:d.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},B,{fulfilledLayout:H,clientMetadata:new mJ([])})}}; H9k=function(h,W){var c=[];c.push(new Pk(lI(h)));c.push(new kE(W.layoutId));(h=ov(W.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&c.push(new $1(h));(h=ov(W.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&c.push(new Nk(h));(h=ov(W.clientMetadata,"metadata_type_remote_slots_data"))&&c.push(new zH(h));(h=ov(W.clientMetadata,"metadata_type_ad_next_params"))&&c.push(new iG(h));(h=ov(W.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&c.push(new K9(h));(h= ov(W.clientMetadata,"metadata_type_ad_pod_info"))&&c.push(new f9(h));(W=ov(W.clientMetadata,"metadata_type_ad_video_id"))&&c.push(new XZ(W));return c}; $kQ=function(h,W,c,V,H,B){function E(d){return e0(W,d)} var J=V.Lc.inPlayerSlotId,u={layoutId:V.Lc.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Uf:"core"};c={slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Uf:"core",slotEntryTrigger:new oO(E,h),slotFulfillmentTriggers:[new si(E,J)],slotExpirationTriggers:[new Hs(E,J),new cs(E,c)]};h=Object.assign({},u,{layoutExitNormalTriggers:[new IO(E,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gW:[],wE:new Map,clientMetadata:new mJ([new OM(V.Lc), new Pk(V.adPlacementConfig),H]),m8:gy(B,c)(u),adLayoutLoggingData:V.Lc.adLayoutLoggingData});return Object.assign({},c,{clientMetadata:new mJ([new jm(h)])})}; s4U=function(h,W){W=g.e(W);for(var c=W.next();!c.done;c=W.next())if(c=c.value,c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var V=g.v(c.fulfillmentContent.fulfilledLayout,oc);if(V&&(V=g.v(V.renderingContent,vs))&&V.associatedPlayerBytesLayoutId===h)return c}}; vWh=function(h,W,c,V,H){var B=BZl(VD(h.slotEntryTrigger,c,V),H,h,W);if(B instanceof S)return B;for(var E=[],J=g.e(h.slotFulfillmentTriggers),u=J.next();!u.done;u=J.next()){u=VD(u.value,c,V);if(u instanceof S)return u;E.push(u)}E=EEd(E,H,h,W);W=[];h=g.e(h.slotExpirationTriggers);for(H=h.next();!H.done;H=h.next()){H=VD(H.value,c,V);if(H instanceof S)return H;W.push(H)}return{slotEntryTrigger:B,slotFulfillmentTriggers:E,slotExpirationTriggers:W}}; BZl=function(h,W,c,V){return W&&c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&h instanceof Xq?new T5(function(H){return e0(V,H)},c.adSlotMetadata.slotId):h}; EEd=function(h,W,c,V){return W&&c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?h.map(function(H){return H instanceof si?new Rc(function(B){return e0(V,B)},c.adSlotMetadata.slotId):H}):h}; xC=function(h,W,c){for(var V=[],H=g.e(h.layoutExitNormalTriggers||[]),B=H.next();!B.done;B=H.next()){B=VD(B.value,W,c);if(B instanceof S)return B;V.push(B)}H=[];B=g.e(h.layoutExitSkipTriggers||[]);for(var E=B.next();!E.done;E=B.next()){E=VD(E.value,W,c);if(E instanceof S)return E;H.push(E)}B=[];E=g.e(h.layoutExitMuteTriggers||[]);for(var J=E.next();!J.done;J=E.next()){J=VD(J.value,W,c);if(J instanceof S)return J;B.push(J)}E=[];h=g.e(h.layoutExitUserInputSubmittedTriggers||[]);for(J=h.next();!J.done;J= h.next()){J=VD(J.value,W,c);if(J instanceof S)return J;E.push(J)}return{layoutExitNormalTriggers:V,layoutExitSkipTriggers:H,layoutExitMuteTriggers:B,layoutExitUserInputSubmittedTriggers:E,gW:[]}}; nY=function(h){var W=g.v(h.renderingContent,yA);if(W==null?0:W.pings)return R1(W.pings);h=g.v(h.renderingContent,I1);return(h==null?0:h.skipPings)?new Map([["skip",h.skipPings]]):new Map}; k6v=function(h,W,c,V,H){W=g.v(W.renderingContent,yA);if(!W)return new S("Invalid rendering content for DAI media layout");h=[new tC(V),new Rv(c.YB.videoLengthSeconds),new JX(c.YB.playerVars),new GH(c.Xx),new ZF(c.BZ),new ry(c.tv),new Pk(lI(h)),new XZ(c.YB.adVideoId),new f9(c.DS),W.sodarExtensionData&&new dy(W.sodarExtensionData),new $1({current:null}),new qO({}),new MO(Ee(W.pings))].filter(tUl);H!==void 0&&h.push(new nA(H));return h}; w7N=function(h,W,c){h=h.map(function(u){return uI(g.v(u.renderingContent,yA),!1)}); var V=h.map(function(u){return u.videoLengthSeconds}),H=V.map(function(u,d){return new NX(d,V)}),B=W,E=c,J=[]; h.forEach(function(u,d){E=Math.min(B+u.videoLengthSeconds*1E3,c);$C(u.playerVars,H[d]);J.push({YB:u,Xx:B,BZ:E,tv:d,DS:H[d]});B=E}); return J}; hKN=function(h,W,c){for(var V=[],H=g.e(h),B=H.next();!B.done;B=H.next())if(B=g.v(B.value.renderingContent,yA)){if(!Ca(B))return new S("Invalid vod media renderer");V.push(RKv(B))}H=V.map(function(Z){return Z.kh}); B=[];for(var E=0,J=0;J0?Rk:-1;else if(Uv= g.v(Wd,I1)){Wd=j4d(h,W,c,Uv,B,z,J,O,Rk);if(Wd instanceof S){q=Wd;break a}Wd=Wd(r);L.push(Wd.vH);M=[].concat(g.rN(Wd.bG),g.rN(M));U=[].concat(g.rN(Wd.WR),g.rN(U));Wd.jK&&(qL=[Wd.jK].concat(g.rN(qL)))}else if(Uv=g.v(Wd,fa)){if(q===void 0){q=new S("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:Uv});break a}Wd=zKQ(h,W,c,B,Uv,D,J,q,z,Fo(G,"supports_multi_step_on_desktop"));if(Wd instanceof S){q=Wd;break a}Wd=Wd(r);L.push(Wd.vH);Wd.jK&&qL.push(Wd.jK); M=[].concat(g.rN(Wd.bG),g.rN(M));U=[].concat(g.rN(Wd.WR),g.rN(U));y=[].concat(g.rN(Wd.xG),g.rN(y));T=[].concat(g.rN(Wd.IX),g.rN(T));m=[D].concat(g.rN(m))}else if(Wd=g.v(Wd,bz)){Wd=Q4N(h,W,c,B,Wd,D,J,z);if(Wd instanceof S){q=Wd;break a}Wd=Wd(r);L.push(Wd.vH);Wd.jK&&qL.push(Wd.jK);U=[].concat(g.rN(Wd.WR),g.rN(U))}else{q=new S("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}q={pN:L,layoutExitSkipTriggers:M,layoutExitUserInputSubmittedTriggers:y,gW:T,layoutExitMuteTriggers:U,ye:m,ze:qL}}}else a:if(z= FX5(V,c,G),z instanceof S)q=z;else{L=0;M=[];U=[];y=[];T=[];m=[];D=[];O=new sz({current:null});Bd=new Nk({current:null});qL=!1;JN=[];Rk=-1;x=g.e(V);for(Wd=x.next();!Wd.done;Wd=x.next())if(Wd=Wd.value,g.v(Wd,Ps)){Wd=adh(W,c,g.v(Wd,Ps),J);if(Wd instanceof S){q=Wd;break a}Wd=Wd(r);M.push(Wd.vH);U=[].concat(g.rN(Wd.bG),g.rN(U));y=[].concat(g.rN(Wd.WR),g.rN(y));Wd.jK&&(JN=[Wd.jK].concat(g.rN(JN)))}else if(g.v(Wd,yA)){Rk=d2(g.v(Wd,yA),c,G);if(Rk instanceof vq){q=new S(Rk);break a}Wd=new NX(L,z);Wd=yCl(W, Rk.layoutId,Rk.Yh,c,G2(Rk.playerVars,Rk.tT,E,d,Wd),Rk.kh,B,Wd,J(r),Bd,u.get(Rk.Yh.externalVideoId),void 0,Z);L++;M.push(Wd.vH);U=[].concat(g.rN(Wd.bG),g.rN(U));y=[].concat(g.rN(Wd.WR),g.rN(y));qL||(D.push(Bd),qL=!0);Rk=(Rk=Rk.Yh.adPodSkipTarget)&&Rk>0?Rk:-1}else if(g.v(Wd,I1)){Wd=j4d(h,W,c,g.v(Wd,I1),B,L,J,Bd,Rk);if(Wd instanceof S){q=Wd;break a}Wd=Wd(r);M.push(Wd.vH);U=[].concat(g.rN(Wd.bG),g.rN(U));y=[].concat(g.rN(Wd.WR),g.rN(y));Wd.jK&&(JN=[Wd.jK].concat(g.rN(JN)))}else if(g.v(Wd,fa)){if(q=== void 0){q=new S("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.v(Wd,fa)});break a}Wd=zKQ(h,W,c,B,g.v(Wd,fa),O,J,q,L,Fo(G,"supports_multi_step_on_desktop"));if(Wd instanceof S){q=Wd;break a}Wd=Wd(r);M.push(Wd.vH);Wd.jK&&JN.push(Wd.jK);U=[].concat(g.rN(Wd.bG),g.rN(U));y=[].concat(g.rN(Wd.WR),g.rN(y));T=[].concat(g.rN(Wd.xG),g.rN(T));m=[].concat(g.rN(Wd.IX),g.rN(m));D=[O].concat(g.rN(D))}else if(g.v(Wd,bz)){Wd=Q4N(h,W,c,B,g.v(Wd,bz),O,J,L);if(Wd instanceof S){q=Wd;break a}Wd=Wd(r);M.push(Wd.vH);Wd.jK&&JN.push(Wd.jK);y=[].concat(g.rN(Wd.WR),g.rN(y))}else{q=new S("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}q={pN:M,layoutExitSkipTriggers:U,layoutExitUserInputSubmittedTriggers:T,gW:m,layoutExitMuteTriggers:y,ye:D,ze:JN}}q instanceof S?r=q:(m=r.slotId,z=q.pN,L=q.layoutExitSkipTriggers,M=q.layoutExitMuteTriggers,U=q.layoutExitUserInputSubmittedTriggers,y=q.ye,r=J(r),T=H?H.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",m=H?H.layoutId: yx(W.W.get(),T,m),D={layoutId:m,layoutType:T,Uf:"core"},r={layout:{layoutId:m,layoutType:T,wE:new Map,layoutExitNormalTriggers:[new Ws(W.X,m)],layoutExitSkipTriggers:L,layoutExitMuteTriggers:M,layoutExitUserInputSubmittedTriggers:U,gW:[],Uf:"core",clientMetadata:new mJ([new Hq(z)].concat(g.rN(y))),m8:r(D)},ze:q.ze});return r}}; FX5=function(h,W,c){var V=[];h=g.e(h);for(var H=h.next();!H.done;H=h.next())if(H=H.value,g.v(H,yA)){H=d2(g.v(H,yA),W,c);if(H instanceof vq)return new S(H);V.push(H.kh)}return V}; fdQ=function(h,W,c,V,H,B,E,J){if(!X5l(c,J===void 0?!1:J))return new S("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var u=E2(c);if(u<=0)return new S("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var d=new sz({current:null}),G=JQh(h,W,c,d,V,B,E);return PGT(h,V,B,u,H,function(Z,r){var q=Z.slotId,x=Rp(c);Z=E(Z);var z,L=(z=iI(W,V,c.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?z: yx(W.W.get(),"LAYOUT_TYPE_MEDIA_BREAK",q);q={layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Uf:"core"};z=G(L,r);var M=ov(z.clientMetadata,"metadata_type_fulfilled_layout");M||sA("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");x=[new Pk(V),new LA(u),new AX(x),d];M&&x.push(new Wq(M.layoutType));return{aHO:{layoutId:L,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",wE:new Map,layoutExitNormalTriggers:[new Ws(W.X,L)],layoutExitSkipTriggers:[new $t(W.X, r.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new uz(W.X,r.layoutId)],gW:[],Uf:"core",clientMetadata:new mJ(x),m8:Z(q)},P$:z}})}; b95=function(h){if(!mEv(h))return!1;var W=g.v(h.adVideoStart,MD);return W?g.v(h.linearAd,yA)&&A9(W)?!0:(sA("Invalid Sandwich with notify"),!1):!1}; TZp=function(h){if(h.linearAds==null)return!1;h=g.v(h.adStart,MD);return h?A9(h)?!0:(sA("Invalid LASR with notify"),!1):!1}; NZN=function(h){if(!v95(h))return!1;h=g.v(h.adStart,MD);return h?A9(h)?!0:(sA("Invalid LASR with notify"),!1):!1}; F0=function(h,W,c,V,H,B,E,J,u,d){this.Y=h;this.W=W;this.X=c;this.hk=V;this.eK=H;this.G=B;this.Qg=E;this.RF=J;this.qs=u;this.loadPolicy=d===void 0?1:d}; Wl=function(h,W,c,V,H,B,E,J,u,d,G){var Z=[];if(W.length===0&&V.length===0&&c.length===0)return Z;W=W.filter(Ui);var r=c.filter(bEh),q=V.filter(Ui),x=new Map,z=X77(W),L=c.some(function(W2){var lK;return(W2==null?void 0:(lK=W2.adSlotMetadata)==null?void 0:lK.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),M=c.some(function(W2){var lK; return(W2==null?void 0:(lK=W2.adSlotMetadata)==null?void 0:lK.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),U=c.some(function(W2){var lK; return(W2==null?void 0:(lK=W2.adSlotMetadata)==null?void 0:lK.slotType)==="SLOT_TYPE_IN_PLAYER"}),y=c.some(function(W2){var lK,Rf; return(W2==null?void 0:(lK=W2.adSlotMetadata)==null?void 0:lK.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(W2==null?void 0:(Rf=W2.adSlotMetadata)==null?void 0:Rf.slotType)==="SLOT_TYPE_ABOVE_FEED"}); c=c.some(function(W2){var lK;return(W2==null?void 0:(lK=W2.adSlotMetadata)==null?void 0:lK.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(L||M||U||y||c)d=OP5(r,W,J,H,z,h.eK.get(),h.loadPolicy,x,h.hk.get(),h.Y.get(),U,E,u,d,G),d instanceof S?sA(d,void 0,void 0,{contentCpn:H}):Z.push.apply(Z,g.rN(d));d=g.e(W);for(G=d.next();!G.done;G=d.next())G=G.value,c=XkQ(h,x,G,H,B,E,L,J,z,u,r),c instanceof S?sA(c,void 0,void 0,{renderer:G.renderer,config:G.config.adPlacementConfig,kind:G.config.adPlacementConfig.kind,contentCpn:H,daiEnabled:E}):Z.push.apply(Z,g.rN(c));tuh(h.hk.get())||(B=vEl(h,q,H,J,z,x),Z.push.apply(Z,g.rN(B)));if(h.G===null|| E&&!J.zf){var T,m,D;h=J.Hi&&W.length===1&&((T=W[0].config)==null?void 0:(m=T.adPlacementConfig)==null?void 0:m.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((D=W[0].renderer)==null?void 0:D.adBreakServiceRenderer);if(!Z.length&&!h){var O,Bd,qL,Rk;sA("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":W.length,contentCpn:H,"first APR kind":(O=W[0])==null?void 0:(Bd=O.config)==null?void 0:(qL=Bd.adPlacementConfig)==null?void 0:qL.kind,renderer:(Rk= W[0])==null?void 0:Rk.renderer})}return Z}T=V.filter(Ui);Z.push.apply(Z,g.rN(Brl(x,T,h.W.get(),h.G,H,L)));if(!Z.length){var JN,Wd,Uv,gN;sA("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":W.length,contentCpn:H,daiEnabled:E.toString(),"first APR kind":(JN=W[0])==null?void 0:(Wd=JN.config)==null?void 0:(Uv=Wd.adPlacementConfig)==null?void 0:Uv.kind,renderer:(gN=W[0])==null?void 0:gN.renderer})}return Z}; vEl=function(h,W,c,V,H,B){function E(r){return gy(h.eK.get(),r)} var J=[];W=g.e(W);for(var u=W.next();!u.done;u=W.next()){u=u.value;var d=u.renderer,G=d.sandwichedLinearAdRenderer,Z=d.linearAdSequenceRenderer;G&&b95(G)?(sA("Found AdNotify with SandwichedLinearAdRenderer"),Z=g.v(G.adVideoStart,MD),G=g.v(G.linearAd,yA),s2(B,d,u.config.adPlacementConfig.kind),d=void 0,Z=Ulk((d=Z)==null?void 0:d.layout.layoutId,h.W.get(),h.X.get(),u.config.adPlacementConfig,u.adSlotLoggingData,G,c,V,E,H,h.loadPolicy,h.hk.get(),h.eK.get()),Z instanceof S?sA(Z):J.push.apply(J,g.rN(Z))): Z&&(!Z.adLayoutMetadata&&TZp(Z)||Z.adLayoutMetadata&&NZN(Z))&&(sA("Found AdNotify with LinearAdSequenceRenderer"),s2(B,d,u.config.adPlacementConfig.kind),d=void 0,G=LXN((d=g.v(Z.adStart,MD))==null?void 0:d.layout.layoutId,h.W.get(),h.X.get(),u.config.adPlacementConfig,u.adSlotLoggingData,Z.linearAds,ac(Z.adLayoutMetadata)?Z.adLayoutMetadata:void 0,c,V,E,H,h.loadPolicy,h.hk.get()),G instanceof S?sA(G):J.push.apply(J,g.rN(G)))}return J}; XkQ=function(h,W,c,V,H,B,E,J,u,d,G){function Z(M){return gy(h.eK.get(),M)} var r=c.renderer,q=c.config.adPlacementConfig,x=q.kind,z=c.adSlotLoggingData,L=J.zf&&x==="AD_PLACEMENT_KIND_START";L=B&&!L;if(r.adsEngagementPanelRenderer!=null)return Bl(W,c.elementId,x,r.adsEngagementPanelRenderer.isContentVideoEngagementPanel,r.adsEngagementPanelRenderer.adVideoId,r.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,q,z,function(M,U,y,T){var m=h.X.get(),D=M.slotId,O=r.adsEngagementPanelRenderer;M=gy(h.eK.get(),M);return yD(m,D,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new Qi(O),U,y,O.impressionPings,M,r.adsEngagementPanelRenderer.adLayoutLoggingData,T)}),[]; if(r.adsEngagementPanelLayoutViewModel)return Bl(W,c.elementId,x,r.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,r.adsEngagementPanelLayoutViewModel.adVideoId,r.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,q,z,function(M,U,y,T){var m=h.X.get(),D=M.slotId,O=r.adsEngagementPanelLayoutViewModel;M=gy(h.eK.get(),M);return Pl(m,D,"LAYOUT_TYPE_PANEL",new L9(O),U,y,M,r.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,T)}),[]; if(r.actionCompanionAdRenderer!=null){if(r.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return cQl(h.W.get(),h.G,h.X.get(),r.actionCompanionAdRenderer,q,z,V,Z);Bl(W,c.elementId,x,r.actionCompanionAdRenderer.isContentVideoCompanion,r.actionCompanionAdRenderer.adVideoId,r.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,q,z,function(M,U,y,T){var m=h.X.get(),D=M.slotId,O=r.actionCompanionAdRenderer;M=gy(h.eK.get(),M);return yD(m,D,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new eu(O),U,y,O.impressionPings,M,r.actionCompanionAdRenderer.adLayoutLoggingData,T)})}else if(r.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(r.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return VU7(h.W.get(),h.G,h.X.get(),r.topBannerImageTextIconButtonedLayoutViewModel,q,z,V,Z); Bl(W,c.elementId,x,r.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,r.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,r.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,q,z,function(M,U,y,T){var m=h.X.get(),D=M.slotId,O=r.topBannerImageTextIconButtonedLayoutViewModel;M=gy(h.eK.get(),M);return Pl(m,D,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new zy(O),U,y,M,r.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,T)})}else if(r.imageCompanionAdRenderer)Bl(W, c.elementId,x,r.imageCompanionAdRenderer.isContentVideoCompanion,r.imageCompanionAdRenderer.adVideoId,r.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,q,z,function(M,U,y,T){var m=h.X.get(),D=M.slotId,O=r.imageCompanionAdRenderer; M=gy(h.eK.get(),M);return yD(m,D,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new UM(O),U,y,O.impressionPings,M,r.imageCompanionAdRenderer.adLayoutLoggingData,T)}); else if(r.bannerImageLayoutViewModel)Bl(W,c.elementId,x,r.bannerImageLayoutViewModel.isContentVideoCompanion,r.bannerImageLayoutViewModel.adVideoId,r.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,q,z,function(M,U,y,T){var m=h.X.get(),D=M.slotId,O=r.bannerImageLayoutViewModel;M=gy(h.eK.get(),M);return Pl(m,D,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new C9(O),U,y,M,r.bannerImageLayoutViewModel.adLayoutLoggingData,T)}); else if(r.shoppingCompanionCarouselRenderer)Bl(W,c.elementId,x,r.shoppingCompanionCarouselRenderer.isContentVideoCompanion,r.shoppingCompanionCarouselRenderer.adVideoId,r.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,q,z,function(M,U,y,T){var m=h.X.get(),D=M.slotId,O=r.shoppingCompanionCarouselRenderer;M=gy(h.eK.get(),M);return yD(m,D,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new Mk(O),U,y,O.impressionPings,M,r.shoppingCompanionCarouselRenderer.adLayoutLoggingData,T)}); else if(r.adBreakServiceRenderer){if(!hNU(c))return[];if(x==="AD_PLACEMENT_KIND_PAUSE")return kOL(h.W.get(),q,z,c.renderer.adBreakServiceRenderer,V);if(x!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&x!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return w57(h.W.get(),q,z,c.renderer.adBreakServiceRenderer,V,H,B);J.Hi||sA("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:x,adPlacementConfig:q,daiEnabledForContentVideo:String(B),isServedFromLiveInfra:String(J.Hi),clientPlaybackNonce:J.clientPlaybackNonce}); if(x==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!h.Qg)return new S("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!h.qs)return new S("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");h.qs.yY({adPlacementRenderer:c,contentCpn:V,xQ:H});H=h.Qg.get().getCurrentTimeSec(1,!1);return mkl(h.W.get(),c.renderer.adBreakServiceRenderer,q,H,V,z,B)}if(!h.RF)return new S("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); h.RF.yY({adPlacementRenderer:c,contentCpn:V,xQ:H})}else{if(r.clientForecastingAdRenderer)return GyU(h.W.get(),h.X.get(),q,z,r.clientForecastingAdRenderer,V,H,Z);if(r.invideoOverlayAdRenderer)return xkU(h.W.get(),h.X.get(),q,z,r.invideoOverlayAdRenderer,V,H,Z);if(r.instreamAdPlayerOverlayRenderer)return rC7(h.W.get(),h.X.get(),q,z,r.instreamAdPlayerOverlayRenderer,V,Z);if((r.linearAdSequenceRenderer||r.instreamVideoAdRenderer)&&L)return zNQ(h.W.get(),h.X.get(),c,V,Z,d,!h.hk.get().L.B().j("html5_override_ad_video_length_killswitch")); if(r.linearAdSequenceRenderer&&!L){if(E)return[];s2(W,r,x);if(r.linearAdSequenceRenderer.adLayoutMetadata){if(!v95(r.linearAdSequenceRenderer))return new S("Received invalid LinearAdSequenceRenderer.")}else if(r.linearAdSequenceRenderer.linearAds==null)return new S("Received invalid LinearAdSequenceRenderer.");if(g.v(r.linearAdSequenceRenderer.adStart,MD)){sA("Found AdNotify in LinearAdSequenceRenderer");c=g.v(r.linearAdSequenceRenderer.adStart,MD);if(!zWh(c))return new S("Invalid AdMessageRenderer."); B=r.linearAdSequenceRenderer.linearAds;return i9T(h.Y.get(),h.W.get(),h.X.get(),h.eK.get(),q,z,c,ac(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,B,V,H,J,Z,u,h.loadPolicy,h.hk.get())}return Muk(h.W.get(),h.X.get(),q,z,r.linearAdSequenceRenderer.linearAds,ac(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,V,H,J,Z,u,h.loadPolicy,h.hk.get(),G)}if(!r.remoteSlotsRenderer||B){if(r.instreamVideoAdRenderer&& !L){if(E)return[];s2(W,r,x);return PQN(h.W.get(),h.X.get(),q,z,r.instreamVideoAdRenderer,V,H,J,Z,u,h.loadPolicy,h.hk.get(),h.eK.get(),G)}if(r.instreamSurveyAdRenderer)return fdQ(h.W.get(),h.X.get(),r.instreamSurveyAdRenderer,q,z,V,Z,Fo(h.hk.get(),"supports_multi_step_on_desktop"));if(r.sandwichedLinearAdRenderer!=null)return mEv(r.sandwichedLinearAdRenderer)?g.v(r.sandwichedLinearAdRenderer.adVideoStart,MD)?(sA("Found AdNotify in SandwichedLinearAdRenderer"),c=g.v(r.sandwichedLinearAdRenderer.adVideoStart, MD),zWh(c)?(B=g.v(r.sandwichedLinearAdRenderer.linearAd,yA))?CQk(c,B,q,h.Y.get(),h.W.get(),h.X.get(),h.eK.get(),z,V,H,J,Z,u,h.loadPolicy,h.hk.get()):new S("Missing IVAR from Sandwich"):new S("Invalid AdMessageRenderer.")):Muk(h.W.get(),h.X.get(),q,z,[r.sandwichedLinearAdRenderer.adVideoStart,r.sandwichedLinearAdRenderer.linearAd],void 0,V,H,J,Z,u,h.loadPolicy,h.hk.get()):new S("Received invalid SandwichedLinearAdRenderer.");if(r.videoAdTrackingRenderer!=null)return uZQ(h.W.get(),h.X.get(),r.videoAdTrackingRenderer, q,z,V,H,J.jX,Z)}}return[]}; fY=function(h,W,c,V,H,B,E,J){g.N.call(this);var u=this;this.W=h;this.G=W;this.Ky=V;this.Qg=H;this.hk=B;this.nM=E;this.wI=J;this.X=null;c.get().addListener(this);this.addOnDisposeCallback(function(){c.gE()||c.get().removeListener(u)}); V.get().addListener(this);this.addOnDisposeCallback(function(){V.gE()||V.get().removeListener(u)})}; ND=function(h,W,c){var V=h.Qg.get().getCurrentTimeSec(1,!1);h.hk.get().L.B().gI()&&xc(h.nM.get(),"sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.QM.toFixed(3));wL(h.W.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var H=h.G.get(),B=W.adPlacementRenderer.renderer.adBreakServiceRenderer,E=W.contentCpn,J=W.adPlacementRenderer.adSlotLoggingData;bI(h.hk.get());var u=h.nM;var d=H.hk.get();d=g.DF(d.L.B().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var G=H.hk.get();var Z=g.DF(G.L.B().experiments,"min_prefetch_offset_sec_for_livestream_optimization");G=c.startSecs*1E3;G={VN:new l2(G,G+c.QM*1E3),fA:!1,cueProcessedMs:V*1E3};var r=c.startSecs+c.QM;if(V===0)G.RL=new l2(0,r*1E3);else{Z=c.startSecs-Z;var q=Z-V;G.RL=q<=0?new l2(Z*1E3,r*1E3):new l2(Math.floor(V+Math.random()*Math.min(q,d))*1E3,r*1E3)}B=cl(H,B,E,G,J,[new Bq(c)]);T2(H.hk.get())&&xc(u.get(),"abrsm","cpi."+c.identifier+";cps."+c.startSecs+";cpd."+c.QM+";cts."+V+";rbf."+G.RL.start);u.get().L.Y_(c.startSecs- V,G.RL.start/1E3-V);return[B]})}; X0=function(h){var W,c=(W=ov(h.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:W.current;if(!c)return null;W=ov(h.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var V=h.layoutId,H=ov(h.clientMetadata,"metadata_type_content_cpn"),B=ov(h.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),E=ov(h.clientMetadata,"metadata_type_player_overlay_layout_renderer"),J=ov(h.clientMetadata,"metadata_type_player_underlay_renderer"),u=ov(h.clientMetadata, "metadata_type_ad_placement_config"),d=ov(h.clientMetadata,"metadata_type_video_length_seconds");var G=NO(h.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?ov(h.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):NO(h.clientMetadata,"metadata_type_layout_enter_ms")&&NO(h.clientMetadata,"metadata_type_layout_exit_ms")?(ov(h.clientMetadata,"metadata_type_layout_exit_ms")-ov(h.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{UG:V,contentCpn:H,q_:c,Fp:W,instreamAdPlayerOverlayRenderer:B, playerOverlayLayoutRenderer:E,instreamAdPlayerUnderlayRenderer:J,adPlacementConfig:u,videoLengthSeconds:d,TF:G,inPlayerLayoutId:ov(h.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:ov(h.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; pkl=function(h,W){return oEN(h,W)}; Id5=function(h,W){W=oEN(h,W);if(!W)return null;var c;W.TF=(c=ov(h.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:c.adBreakRemainingLengthSeconds;return W}; oEN=function(h,W){var c,V=(c=ov(h.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:c.current;if(!V)return null;c=uO5(h,W);return{iQ:J1d(h,W),adPlacementConfig:ov(h.clientMetadata,"metadata_type_ad_placement_config"),JK:c,contentCpn:ov(h.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:ov(h.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:ov(h.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:ov(h.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,TF:void 0,q_:V,UG:h.layoutId,videoLengthSeconds:ov(h.clientMetadata,"metadata_type_video_length_seconds")}}; tO=function(h,W,c,V,H,B,E,J,u){g.N.call(this);this.Y=h;this.N=W;this.C=c;this.G=V;this.X=H;this.W=B;this.eK=E;this.hk=J;this.SO=u;this.Id=!0}; YMT=function(h,W,c){return Trv(h.X.get(),W.contentCpn,W.UG,function(V){return Nrl(h.W.get(),V.slotId,c,W.adPlacementConfig,W.UG,gy(h.eK.get(),V))})}; vl=function(h,W,c,V,H,B,E,J){g.N.call(this);this.W=h;this.X=W;this.G=c;this.hk=V;this.Y=H;this.SO=B;this.Qg=E;this.dW=J}; mz=function(h){g.N.call(this);this.X=h}; wL=function(h,W,c,V){h.X().Cp(W,V);c=c();h=h.X();h.CJ.VS("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",W,V,c);W=g.e(c);for(c=W.next();!c.done;c=W.next())a:{V=h;c=c.value;V.CJ.Tr("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);V.CJ.Tr("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var H=V.X;if(g.Cr(c.slotId))throw new S("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(sX(H,c))throw new S("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!H.m4.Tc.has(c.slotType))throw new S("No fulfillment adapter factory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!H.m4.HX.has(c.slotType))throw new S("No SlotAdapterFactory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");eH(H,"TRIGGER_CATEGORY_SLOT_ENTRY",c.slotEntryTrigger?[c.slotEntryTrigger]:[]);eH(H,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", c.slotFulfillmentTriggers);eH(H,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.slotExpirationTriggers);var B=V.X,E=c.slotType+"_"+c.slotPhysicalPosition,J=xe(B,E);if(sX(B,c))throw new S("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");J.set(c.slotId,new V2T(c));B.X.set(E,J)}catch(Bd){Bd instanceof S&&Bd.Pv?(V.CJ.uG("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",Bd.Pv,c),sA(Bd,c,void 0,void 0,Bd.HO)):(V.CJ.uG("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", c),sA(Bd,c));break a}sX(V.X,c).N=!0;try{var u=V.X,d=sX(u,c),G=c.slotEntryTrigger,Z=u.m4.VV.get(G.triggerType);Z&&(Z.Z8("TRIGGER_CATEGORY_SLOT_ENTRY",G,c,null),d.Pk.set(G.triggerId,Z));for(var r=g.e(c.slotFulfillmentTriggers),q=r.next();!q.done;q=r.next()){var x=q.value,z=u.m4.VV.get(x.triggerType);z&&(z.Z8("TRIGGER_CATEGORY_SLOT_FULFILLMENT",x,c,null),d.XI.set(x.triggerId,z))}for(var L=g.e(c.slotExpirationTriggers),M=L.next();!M.done;M=L.next()){var U=M.value,y=u.m4.VV.get(U.triggerType);y&&(y.Z8("TRIGGER_CATEGORY_SLOT_EXPIRATION", U,c,null),d.T.set(U.triggerId,y))}var T=u.m4.Tc.get(c.slotType).get().build(u.G,c);d.S=T;var m=u.m4.HX.get(c.slotType).get().build(u.C,c);m.init();d.W=m}catch(Bd){Bd instanceof S&&Bd.Pv?(V.CJ.uG("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",Bd.Pv,c),sA(Bd,c,void 0,void 0,Bd.HO)):(V.CJ.uG("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),sA(Bd,c));cH(V,c,!0);break a}V.CJ.Tr("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);V.X.Rd(c);for(var D=g.e(V.W),O=D.next();!O.done;O= D.next())O.value.Rd(c);EX(V,c)}}; op=function(h,W,c,V,H){g.N.call(this);var B=this;this.W=h;this.G=W;this.lX=c;this.context=H;this.X=new Map;V.get().addListener(this);this.addOnDisposeCallback(function(){V.gE()||V.get().removeListener(B)})}; IjN=function(h,W){var c=0x8000000000000,V=0,H=0x8000000000000;var B=g.e(W.slotFulfillmentTriggers);for(var E=B.next();!E.done;E=B.next())if(E=E.value,E instanceof DN){var J=E.X.start;c=Math.min(c,J);V=Math.max(V,E.X.end);E.visible&&(H=Math.min(H,J))}else sA("Found unexpected fulfillment trigger for throttled slot.",W,null,{fulfillmentTrigger:E});B=c;H=H<0x8000000000000&&c0&&ZG(h.N(),c)}; Ef=function(h,W,c,V,H){for(var B=[],E=g.e(h.QA.values()),J=E.next();!J.done;J=E.next()){var u=J=J.value,d=u.trigger;u=u.slot;if(d.triggerType===W){if(d instanceof OR||d instanceof SJ||d instanceof wk){if(H&&d.breakDurationMs!==c)continue;if(!H&&d.breakDurationMs===c)continue;if(V.has(u.slotId))continue}B.push(J)}}B.length>0&&ZG(h.N(),B)}; sv5=function(h,W){W=(W.QM+1)*1E3;var c=void 0;h=g.e(h.QA.values());for(var V=h.next();!V.done;V=h.next()){var H=V.value;V=H.trigger;H=H.slot;V instanceof OR&&V.breakDurationMs<=W&&(!c||V.breakDurationMs>c.trigger.breakDurationMs)&&(c={slot:H,trigger:V})}return c}; HAU=function(h){h=h.adPlacementRenderer.config.adPlacementConfig;if(!h.prefetchModeConfig||!h.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;h=Number(h.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(h)||h<=0?0:Math.floor(Math.random()*h)}; ByN=function(h){h=h.adPlacementRenderer.config.adPlacementConfig;if(h.prefetchModeConfig&&h.prefetchModeConfig.cacheFetchRefreshDurationMs&&(h=Number(h.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(h)||h<=0)))return h}; Rq=function(h){h.X=null;h.QA.clear();h.W&&h.W.stop();h.C&&h.C.stop();var W;(W=h.G)==null||W.stop();delete h.G}; VmU=function(h){var W=[];h=g.e(h.QA.values());for(var c=h.next();!c.done;c=h.next())c=c.value.trigger,c instanceof OR&&W.push(c.breakDurationMs);return W}; Jx=function(h){g.N.call(this);this.G=h;this.Id=!0;this.QA=new Map;this.X=new Map;this.W=new Map}; E1p=function(h,W){var c=[];if(W=h.X.get(W.layoutId)){W=g.e(W);for(var V=W.next();!V.done;V=W.next())(V=h.W.get(V.value.triggerId))&&c.push(V)}return c}; um=function(h){g.N.call(this);this.X=h;this.QA=new Map}; Rel=function(h,W){for(var c=[],V=g.e(h.QA.values()),H=V.next();!H.done;H=V.next())H=H.value,H.trigger instanceof T5&&H.trigger.slotId===W&&c.push(H);c.length>=1&&ZG(h.X(),c)}; JX7=function(h,W){var c={slotId:ke(W,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Uf:"surface",clientMetadata:new mJ([])},V=Object,H=V.assign;W=yx(W,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);W={layoutId:W,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",wE:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gW:[],Uf:"surface", clientMetadata:new mJ([]),m8:oAU(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.Uf,c.slotEntryTrigger,c.slotFulfillmentTriggers,c.slotExpirationTriggers,W,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return H.call(V,{},h,{Q6:!0,slot:c,layout:W})}; DET=function(h,W,c,V){var H=h.kind;V=V?!1:!h.hideCueRangeMarker;switch(H){case "AD_PLACEMENT_KIND_START":return V={VN:new l2(-0x8000000000000,-0x8000000000000),fA:V},c!=null&&(V.RL=new l2(-0x8000000000000,-0x8000000000000)),V;case "AD_PLACEMENT_KIND_END":return V={VN:new l2(0x7ffffffffffff,0x8000000000000),fA:V},c!=null&&(V.RL=new l2(Math.max(0,W-c),0x8000000000000)),V;case "AD_PLACEMENT_KIND_MILLISECONDS":H=h.adTimeOffset;H.offsetStartMilliseconds||sA("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); H.offsetEndMilliseconds||sA("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");h=Number(H.offsetStartMilliseconds);H=Number(H.offsetEndMilliseconds);H===-1&&(H=W);if(Number.isNaN(h)||Number.isNaN(H)||h>H)return new S("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:h,offsetEndMs:H},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",H===W&&h-500<=H);V={VN:new l2(h,H),fA:V};if(c!=null){h=Math.max(0,h-c);if(h===H)return V;V.RL=new l2(h,H)}return V; default:return new S("AdPlacementKind not supported in convertToRange.",{kind:H,adPlacementConfig:h})}}; up5=function(h){if(!h||!h.adPlacements&&!h.adSlots)return!1;for(var W=g.e(h.adPlacements||[]),c=W.next();!c.done;c=W.next())if(c=c.value)if(c=c.adPlacementRenderer,c!=null&&(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;h=g.e(h.adSlots||[]);for(W=h.next();!W.done;W=h.next()){var V=c=void 0;if(((c=g.v(W.value,hO))==null?void 0:(V=c.adSlotMetadata)==null?void 0:V.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; dU=function(h){this.hk=h;this.W=new Map;this.X=new Map;this.G=new Map}; ke=function(h,W){if(Ga(h.hk.get())){var c=h.W.get(W)||0;c++;h.W.set(W,c);return W+"_"+c}return g.Ge(16)}; yx=function(h,W,c){if(Ga(h.hk.get())){var V=h.X.get(W)||0;V++;h.X.set(W,V);return c+"_"+W+"_"+V}return g.Ge(16)}; e0=function(h,W){if(Ga(h.hk.get())){var c=h.G.get(W)||0;c++;h.G.set(W,c);return W+"_"+c}return g.Ge(16)}; dOp=function(h){var W=[new kE(h.UG),new Vb(h.q_),new Pk(h.adPlacementConfig),new Rv(h.videoLengthSeconds),new Qb(h.TF)];h.instreamAdPlayerOverlayRenderer&&W.push(new vk(h.instreamAdPlayerOverlayRenderer));h.playerOverlayLayoutRenderer&&W.push(new mX(h.playerOverlayLayoutRenderer));h.Fp&&W.push(new Nk(h.Fp));return W}; GHU=function(h,W,c,V,H,B){h=c.inPlayerLayoutId?c.inPlayerLayoutId:yx(B,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",h);var E,J,u=c.instreamAdPlayerOverlayRenderer?(E=c.instreamAdPlayerOverlayRenderer)==null?void 0:E.adLayoutLoggingData:(J=c.playerOverlayLayoutRenderer)==null?void 0:J.adLayoutLoggingData;E={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Uf:W};return{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",wE:new Map,layoutExitNormalTriggers:[new IO(function(d){return e0(B, d)},c.UG)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gW:[],Uf:W,clientMetadata:V,m8:H(E),adLayoutLoggingData:u}}; Zq=function(h,W){var c=this;this.W=h;this.hk=W;this.X=function(V){return e0(c.W.get(),V)}}; Nrl=function(h,W,c,V,H,B){c=new mJ([new o4(c),new Pk(V)]);W=yx(h.W.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",W);V={layoutId:W,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Uf:"core"};return{layoutId:W,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",wE:new Map,layoutExitNormalTriggers:[new IO(function(E){return e0(h.W.get(),E)},H)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gW:[],Uf:"core",clientMetadata:c,m8:B(V),adLayoutLoggingData:void 0}}; Zt=function(h,W,c,V,H){var B=dOp(V);return GHU(W,c,V,new mJ(B),H,h.W.get())}; ZAl=function(h,W,c,V,H){var B=dOp(V);B.push(new FZ(V.iQ));B.push(new yi(V.JK));return GHU(W,c,V,new mJ(B),H,h.W.get())}; yD=function(h,W,c,V,H,B,E,J,u,d){W=yx(h.W.get(),c,W);var G={layoutId:W,layoutType:c,Uf:"core"},Z=new Map;E&&Z.set("impression",E);E=[new kc(h.X,H,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];d&&E.push(new p8(h.X,d,["normal"]));return{layoutId:W,layoutType:c,wE:Z,layoutExitNormalTriggers:E,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gW:[],Uf:"core",clientMetadata:new mJ([V,new Pk(B),new kE(H)]),m8:J(G),adLayoutLoggingData:u}}; Pl=function(h,W,c,V,H,B,E,J,u){W=yx(h.W.get(),c,W);var d={layoutId:W,layoutType:c,Uf:"core"},G=[new kc(h.X,H,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];u&&G.push(new p8(h.X,u,["normal"]));return{layoutId:W,layoutType:c,wE:new Map,layoutExitNormalTriggers:G,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gW:[],Uf:"core",clientMetadata:new mJ([V,new Pk(B),new kE(H)]),m8:E(d),adLayoutLoggingData:J}}; QD=function(h,W,c){var V=[];V.push(new h9(h.X,c));W&&V.push(W);return V}; z2=function(h,W,c,V,H,B,E){var J={layoutId:W,layoutType:c,Uf:"core"};return{layoutId:W,layoutType:c,wE:new Map,layoutExitNormalTriggers:E,layoutExitSkipTriggers:[new to(h.X,W)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gW:[],Uf:"core",clientMetadata:new mJ([new AC(V),new Pk(H)]),m8:B(J),adLayoutLoggingData:V.adLayoutLoggingData}}; JO=function(h,W,c,V,H,B,E,J){var u={layoutId:W,layoutType:B,Uf:"core"};return{layoutId:W,layoutType:B,wE:new Map,layoutExitNormalTriggers:[new IO(h.X,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gW:[],Uf:"core",clientMetadata:new mJ([new Pk(V)].concat(g.rN(E))),m8:H(u),adLayoutLoggingData:J}}; iI=function(h,W,c,V){if(h.hk.get().Y4(W.kind==="AD_PLACEMENT_KIND_START"))if(c===void 0)sA("Expected SSAP layout ID in renderer",void 0,void 0,{caller:V});else return c}; ldQ=function(h,W,c,V,H,B,E,J,u,d,G,Z,r){h=LY(h,W,c,H,B,E,J,u,Z,iI(h,c,V.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),r);W=h.ye;c=new hX(h.tC);V=h.layoutExitSkipTriggers;d>0&&(W.push(c),W.push(new Ty(d)),V=[]);W.push(new bG(G));return{vH:{layoutId:h.layoutId,layoutType:h.layoutType,wE:h.wE,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gW:[],Uf:h.Uf,clientMetadata:new mJ(W),m8:h.m8,adLayoutLoggingData:h.adLayoutLoggingData}, bG:V,WR:h.layoutExitMuteTriggers,xG:h.layoutExitUserInputSubmittedTriggers,IX:h.gW,jK:h.jK}}; eK4=function(h,W,c,V,H,B,E,J,u,d){W=LY(h,W,c,V,B,new Map,E,function(G){return J(G,u)},void 0,iI(h,c,H.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); h=new uz(h.X,W.tC);c=new hX(W.tC);d=new bG(d);return{vH:{layoutId:W.layoutId,layoutType:W.layoutType,wE:W.wE,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gW:[],Uf:W.Uf,clientMetadata:new mJ([].concat(g.rN(W.ye),[c,d])),m8:W.m8,adLayoutLoggingData:W.adLayoutLoggingData},bG:W.layoutExitSkipTriggers,WR:W.layoutExitMuteTriggers,xG:[].concat(g.rN(W.layoutExitUserInputSubmittedTriggers),[h]),IX:W.gW,jK:W.jK}}; LY=function(h,W,c,V,H,B,E,J,u,d,G){W=d!=null?d:yx(h.W.get(),"LAYOUT_TYPE_MEDIA_BREAK",W);d={layoutId:W,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Uf:"adapter"};J=J(W);var Z=ov(J.clientMetadata,"metadata_type_fulfilled_layout");Z||sA("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var r=Z?Z.layoutId:"";c=[new Pk(c),new LA(V),new AX(H)];Z&&c.push(new Wq(Z.layoutType));G&&c.push(new ry(G));return{layoutId:W,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", wE:B,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new $t(h.X,r)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gW:[],Uf:"adapter",ye:c,m8:E(d),adLayoutLoggingData:u,jK:J,tC:r}}; fIU=function(h,W,c,V,H,B,E,J,u,d,G){h=rXk(h,W,"core",c,V,H,B,E,J,u,d,void 0,G);return{layoutId:h.layoutId,layoutType:h.layoutType,wE:h.wE,layoutExitNormalTriggers:h.layoutExitNormalTriggers,layoutExitSkipTriggers:h.layoutExitSkipTriggers,layoutExitMuteTriggers:h.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:h.layoutExitUserInputSubmittedTriggers,gW:h.gW,Uf:h.Uf,clientMetadata:new mJ(h.Ma),m8:h.m8,adLayoutLoggingData:h.adLayoutLoggingData}}; yCl=function(h,W,c,V,H,B,E,J,u,d,G,Z,r){W=rXk(h,W,"adapter",c,V,H,B,E,J,u,G,Z,r);V=W.layoutExitSkipTriggers;H=W.Ma;c.adPodSkipTarget&&c.adPodSkipTarget>0&&(H.push(d),H.push(new Ty(c.adPodSkipTarget)),V=[]);H.push(new bG(J.adPodIndex));c.isCritical&&(V=[new p8(h.X,W.layoutId,["error"])].concat(g.rN(V)));return{vH:{layoutId:W.layoutId,layoutType:W.layoutType,wE:W.wE,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gW:[],Uf:W.Uf, clientMetadata:new mJ(H),m8:W.m8,adLayoutLoggingData:W.adLayoutLoggingData},bG:V,WR:W.layoutExitMuteTriggers,xG:W.layoutExitUserInputSubmittedTriggers,IX:W.gW}}; rXk=function(h,W,c,V,H,B,E,J,u,d,G,Z,r){var q={layoutId:W,layoutType:"LAYOUT_TYPE_MEDIA",Uf:c};H=[new Pk(H),new f9(u),new XZ(V.externalVideoId),new tC(J),new AX({impressionCommands:V.impressionCommands,abandonCommands:V.onAbandonCommands,completeCommands:V.completeCommands,progressCommands:V.adVideoProgressCommands}),new JX(B),new $1({current:null}),new Rv(E)];(B=V.playerOverlay.instreamAdPlayerOverlayRenderer)&&H.push(new vk(B));(E=V.playerOverlay.playerOverlayLayoutRenderer)&&H.push(new mX(E)); Z&&H.push(new u8(Z));(Z=V.playerUnderlay)&&H.push(new o4(Z));J=ke(h.W.get(),"SLOT_TYPE_IN_PLAYER");Z=(Z=B?B.elementId:E==null?void 0:E.layoutId)?Z:yx(h.W.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",J);H.push(new hX(Z));H.push(new cq(J));H.push(new ry(u.adPodIndex));V.adNextParams&&H.push(new iG(V.adNextParams));V.shrunkenPlayerBytesConfig&&H.push(new YE(V.shrunkenPlayerBytesConfig));V.clickthroughEndpoint&&H.push(new K9(V.clickthroughEndpoint));V.legacyInfoCardVastExtension&&H.push(new i8(V.legacyInfoCardVastExtension)); V.sodarExtensionData&&H.push(new dy(V.sodarExtensionData));G&&H.push(new zH(G));H.push(new MO(Ee(V.pings)));u=R1(V.pings);if(r){a:{r=g.e(r);for(G=r.next();!G.done;G=r.next())if(G=G.value,G.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(B=g.v(G.fulfillmentContent.fulfilledLayout,oc))&&(B=g.v(B.renderingContent,vs))&&B.associatedPlayerBytesLayoutId===W){r=G;break a}r=void 0}r&&H.push(new p9(r))}return{layoutId:W,layoutType:"LAYOUT_TYPE_MEDIA",wE:u,layoutExitNormalTriggers:[new Ws(h.X,W)],layoutExitSkipTriggers:V.skipOffsetMilliseconds? [new $t(h.X,Z)]:[],layoutExitMuteTriggers:[new $t(h.X,Z)],layoutExitUserInputSubmittedTriggers:[],gW:[],Uf:c,Ma:H,m8:d(q),adLayoutLoggingData:V.adLayoutLoggingData}}; L24=function(h,W,c,V,H,B,E,J,u){V.every(function(G){return Xp(G,[],["LAYOUT_TYPE_MEDIA"])})||sA("Unexpect subLayout type for DAI composite layout"); W=yx(h.W.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",W);var d={layoutId:W,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Uf:"core"};return{layoutId:W,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",wE:new Map,layoutExitNormalTriggers:[new Yc(h.X)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gW:[],Uf:"core",clientMetadata:new mJ([new GH(c),new ZF(J),new Hq(V),new Pk(H),new nA(B),new qO({}),new yb(u)]),m8:E(d)}}; jb5=function(h){return h!=null}; rU=function(h,W,c){var V=this;this.W=h;this.G=W;this.hk=c;this.X=function(H){return e0(V.W.get(),H)}}; mkl=function(h,W,c,V,H,B,E){if(!c.prefetchModeConfig)return new S("AdPlacementConfig for Live Prefetch is missing prefetch_config");c=c.prefetchModeConfig;V*=1E3;var J=[];if(!c.breakLengthMs)return new S("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var u=g.e(c.breakLengthMs),d=u.next();!d.done;d=u.next())if(d=d.value,Number(d)>0){var G=V+Number(c.startTimeOffsetMs),Z=G+Number(c.cacheFetchSmearingDurationMs);d={VN:new l2(Z,Z+Number(d)),fA:!1,RL:new l2(Math.floor(G+Math.random()* Number(c.cacheFetchSmearingDurationMs)),Z),cueProcessedMs:V?V:G};G=[];G.push(new TH({}));Z=[];Z.push(new VA(h.X));Z.push(new u9D(h.X));E&&G.push(new qO({}));J.push(cl(h,W,H,d,B,G,Z))}return J}; cl=function(h,W,c,V,H,B,E){B=B===void 0?[]:B;var J=ke(h.W.get(),"SLOT_TYPE_AD_BREAK_REQUEST");E||(E=[],V.RL&&V.RL.start!==V.VN.start&&E.push(new DN(h.X,c,new l2(V.RL.start,V.VN.start),!1)),E.push(new DN(h.X,c,new l2(V.VN.start,V.VN.end),V.fA)));V={getAdBreakUrl:W.getAdBreakUrl,VF:V.VN.start,EH:V.VN.end,cueProcessedMs:V.cueProcessedMs};W=new Ei(h.X,J);B=[new av(V)].concat(g.rN(B));return{slotId:J,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:W,slotFulfillmentTriggers:E, slotExpirationTriggers:[new cs(h.X,c),new Hs(h.X,J),new Bs(h.X,J)],Uf:"core",clientMetadata:new mJ(B),adSlotLoggingData:H}}; xON=function(h,W,c){var V=[];c=g.e(c);for(var H=c.next();!H.done;H=c.next())V.push(qzl(h,W,H.value));return V}; qzl=function(h,W,c){return c.triggeringSlotId!=null&&c.triggeringSlotId===h?c.clone(W):c}; RNQ=function(h,W,c,V,H){return lFp(h,W,c,V,H)}; nEv=function(h,W,c,V){var H=ke(h.W.get(),"SLOT_TYPE_IN_PLAYER");return lFp(h,H,W,c,V)}; lFp=function(h,W,c,V,H){var B=new oO(h.X,c),E=[new si(h.X,W)];h=[new Hs(h.X,W),new cs(h.X,V)];return{slotId:W,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:B,slotFulfillmentTriggers:E,slotExpirationTriggers:h,Uf:"core",clientMetadata:new mJ([new jm(H({slotId:W,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Uf:"core",slotEntryTrigger:B,slotFulfillmentTriggers:E,slotExpirationTriggers:h},c))]),adSlotLoggingData:void 0}}; PGT=function(h,W,c,V,H,B){var E=ke(h.W.get(),"SLOT_TYPE_PLAYER_BYTES"),J=ke(h.W.get(),"SLOT_TYPE_IN_PLAYER"),u=yx(h.W.get(),"LAYOUT_TYPE_SURVEY",J);V=q1(h,W,c,V);var d=[new si(h.X,E)];c=[new Hs(h.X,E),new cs(h.X,c),new to(h.X,u)];if(V instanceof S)return V;J=B({slotId:E,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Uf:"core",slotEntryTrigger:V,slotFulfillmentTriggers:d,slotExpirationTriggers:c},{slotId:J,layoutId:u});B=J.aHO;J=J.P$;return[{slotId:E,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:AO(h,W,E,V),slotFulfillmentTriggers:U2(h,W,E,d),slotExpirationTriggers:c,Uf:"core",clientMetadata:new mJ([new jm(B),new Pq(CY(W)),new b8({Cv:h.Cv(W)})]),adSlotLoggingData:H},J]}; CY=function(h){return h.kind==="AD_PLACEMENT_KIND_START"}; bP7=function(h,W,c,V,H){H=H?H:ke(h.W.get(),"SLOT_TYPE_IN_PLAYER");c=new oO(h.X,c);var B=[new si(h.X,H)];h=[new cs(h.X,W),new Hs(h.X,H)];return{slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:B,slotExpirationTriggers:h,Uf:"core",clientMetadata:new mJ([new jm(V({slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Uf:"core",slotEntryTrigger:c,slotFulfillmentTriggers:B,slotExpirationTriggers:h}))])}}; Trv=function(h,W,c,V){var H=ke(h.W.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new oO(h.X,c);var B=[new si(h.X,H)];h=[new cs(h.X,W),new Hs(h.X,H)];return{slotId:H,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:B,slotExpirationTriggers:h,Uf:"core",clientMetadata:new mJ([new jm(V({slotId:H,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Uf:"core",slotEntryTrigger:c,slotFulfillmentTriggers:B,slotExpirationTriggers:h}))])}}; AQN=function(h,W,c,V,H,B,E){var J=ke(h.W.get(),"SLOT_TYPE_IN_PLAYER"),u=yx(h.W.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",J);V=n1d(h,V,B,E,u);if(V instanceof S)return V;E=[new si(h.X,J)];H=[new cs(h.X,B),new si(h.X,H),new J9(h.X,H)];c=gy(c,{slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Uf:"core",slotEntryTrigger:V,slotFulfillmentTriggers:E,slotExpirationTriggers:H});h=h.G.get();B={layoutId:u,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Uf:"core"};W={layoutId:u,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", wE:new Map,layoutExitNormalTriggers:[new n9v(h.X,u,W.durationMs)],layoutExitSkipTriggers:[new aj4(h.X,u,W.durationMs)],gW:[new j2d(h.X,u)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Uf:"core",clientMetadata:new mJ([new KA(W)]),m8:c(B)};return{slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Uf:"core",slotEntryTrigger:V,slotFulfillmentTriggers:E,slotExpirationTriggers:H,clientMetadata:new mJ([new jm(W)])}}; qM4=function(h,W,c,V,H,B){W=q1(h,W,c,V);if(W instanceof S)return W;var E=W instanceof DN?new q0Q(h.X,c,W.X):null;V=ke(h.W.get(),"SLOT_TYPE_IN_PLAYER");var J=[new si(h.X,V)];h=[new cs(h.X,c),new Hs(h.X,V)];B=B({slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Uf:"core",slotEntryTrigger:W,slotFulfillmentTriggers:J,slotExpirationTriggers:h},E);return B instanceof vq?new S(B):{slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:W,slotFulfillmentTriggers:J,slotExpirationTriggers:h, Uf:"core",clientMetadata:new mJ([new jm(B)]),adSlotLoggingData:H}}; Z97=function(h,W,c,V){var H=ke(h.W.get(),"SLOT_TYPE_IN_PLAYER"),B=new Xq(h.X,W),E=[new Rc(h.X,H)];h=[new cs(h.X,W),new Hs(h.X,H)];return{slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:B,slotFulfillmentTriggers:E,slotExpirationTriggers:h,Uf:"core",clientMetadata:new mJ([new jm(V({slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Uf:"core",slotEntryTrigger:B,slotFulfillmentTriggers:E,slotExpirationTriggers:h}))]),adSlotLoggingData:c}}; rQD=function(h,W,c,V){var H=ke(h.W.get(),"SLOT_TYPE_IN_PLAYER");c=new oO(h.X,c);var B=[new si(h.X,H)],E=[new Hs(h.X,H),new cs(h.X,W)];B={slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Uf:"core",slotEntryTrigger:c,slotFulfillmentTriggers:B,slotExpirationTriggers:E};return{slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:[new si(h.X,H)],slotExpirationTriggers:[new cs(h.X,W),new Hs(h.X,H)],Uf:"core",clientMetadata:new mJ([new jm(V(B))])}}; dld=function(h,W,c,V,H){var B=ke(h.W.get(),"SLOT_TYPE_IN_PLAYER");c=new m0(h.X,V,c);V=[new si(h.X,B)];h=[new cs(h.X,W)];return{slotId:B,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:V,slotExpirationTriggers:h,Uf:"core",clientMetadata:new mJ([new jm(H({slotId:B,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Uf:"core",slotEntryTrigger:c,slotFulfillmentTriggers:V,slotExpirationTriggers:h}))])}}; HPQ=function(h,W,c,V,H,B){var E=ke(h.W.get(),W);return xl(h,E,W,new oO(h.X,V),[new cs(h.X,c),new Hs(h.X,E),new p8(h.X,V,["error"])],H,B)}; sbN=function(h,W,c,V,H,B,E){var J=ke(h.W.get(),W);return xl(h,J,W,new p8(h.X,H,["normal"]),[new cs(h.X,c),new Hs(h.X,J),new p8(h.X,V,["error"])],B,E)}; W2v=function(h,W,c,V,H){var B=ke(h.W.get(),W);return xl(h,B,W,new Xq(h.X,c),[new cs(h.X,c),new Hs(h.X,B)],V,H)}; JCl=function(h,W,c,V,H){c=c?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var B=ke(h.W.get(),c);W=new Xq(h.X,W);var E=[new si(h.X,B)];h=[new Hs(h.X,B)];return{slotId:B,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:W,slotFulfillmentTriggers:E,slotExpirationTriggers:h,Uf:"core",clientMetadata:new mJ([new jm(H({slotId:B,slotType:c,slotPhysicalPosition:1,Uf:"core",slotEntryTrigger:W,slotFulfillmentTriggers:E,slotExpirationTriggers:h}))]),adSlotLoggingData:V}}; aId=function(h,W,c,V){var H=ke(h.W.get(),"SLOT_TYPE_PLAYER_BYTES"),B=new gk(h.X),E=[new Rc(h.X,H)];h=[new cs(h.X,W)];return{slotId:H,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:B,slotFulfillmentTriggers:E,slotExpirationTriggers:h,Uf:"core",clientMetadata:new mJ([new jm(V({slotId:H,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Uf:"core",slotEntryTrigger:B,slotFulfillmentTriggers:E,slotExpirationTriggers:h})),new qO({})]),adSlotLoggingData:c}}; UkN=function(h,W){return tuh(h.hk.get())?new p8(h.X,W,["normal","error","skipped"]):new p8(h.X,W,["normal"])}; F2d=function(h,W,c,V,H){W=UkN(h,W);h=KY(h,W,c);H=H({slotId:h.slotId,slotType:h.slotType,slotPhysicalPosition:h.slotPhysicalPosition,slotEntryTrigger:h.slotEntryTrigger,slotFulfillmentTriggers:h.slotFulfillmentTriggers,slotExpirationTriggers:h.slotExpirationTriggers,Uf:h.Uf});return H instanceof S?H:{Hs:Object.assign({},h,{clientMetadata:new mJ([new jm(H.layout)]),adSlotLoggingData:V}),ze:H.ze}}; yQh=function(h,W,c,V,H,B,E){c=CGQ(h,W,c,V);if(c instanceof S)return c;E=E({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:c.slotEntryTrigger,slotFulfillmentTriggers:c.slotFulfillmentTriggers,slotExpirationTriggers:c.slotExpirationTriggers,Uf:c.Uf});if(E instanceof S)return E;V=[new Pq(CY(W)),new jm(E.layout),new b8({Cv:h.Cv(W)})];B&&V.push(new Uz({}));return{Hs:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:AO(h, W,c.slotId,c.slotEntryTrigger),slotFulfillmentTriggers:U2(h,W,c.slotId,c.slotFulfillmentTriggers),slotExpirationTriggers:c.slotExpirationTriggers,Uf:c.Uf,clientMetadata:new mJ(V),adSlotLoggingData:H},ze:E.ze}}; AO=function(h,W,c,V){return h.hk.get().Y4(CY(W))?new T5(h.X,c):V}; U2=function(h,W,c,V){return h.hk.get().Y4(CY(W))?[new Rc(h.X,c)]:V}; KY=function(h,W,c){var V=ke(h.W.get(),"SLOT_TYPE_PLAYER_BYTES"),H=[new si(h.X,V)];h=[new Hs(h.X,V),new cs(h.X,c)];return{slotId:V,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:W,slotFulfillmentTriggers:H,slotExpirationTriggers:h,Uf:"core"}}; CGQ=function(h,W,c,V){W=q1(h,W,c,V);return W instanceof S?W:KY(h,W,c)}; dkU=function(h,W,c,V,H,B){var E=ke(h.W.get(),"SLOT_TYPE_FORECASTING");W=q1(h,W,c,V);if(W instanceof S)return W;V=[new si(h.X,E)];h=[new Hs(h.X,E),new cs(h.X,c)];return{slotId:E,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:W,slotFulfillmentTriggers:V,slotExpirationTriggers:h,Uf:"core",clientMetadata:new mJ([new jm(B({slotId:E,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Uf:"core",slotEntryTrigger:W,slotFulfillmentTriggers:V,slotExpirationTriggers:h}))]),adSlotLoggingData:H}}; jv4=function(h,W,c,V,H){var B=!W.hideCueRangeMarker;switch(W.kind){case "AD_PLACEMENT_KIND_START":return new Xq(h.X,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return h=DET(W,V),h instanceof S?h:H(h.VN,B);case "AD_PLACEMENT_KIND_END":return new vS(h.X,c,B);default:return new S("Cannot construct entry trigger",{kind:W.kind})}}; n1d=function(h,W,c,V,H){return jv4(h,W,c,V,function(B,E){return new rm4(h.X,c,B,E,H)})}; q1=function(h,W,c,V){return jv4(h,W,c,V,function(H,B){return new DN(h.X,c,H,B)})}; xl=function(h,W,c,V,H,B,E){h=[new Rc(h.X,W)];return{slotId:W,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:h,slotExpirationTriggers:H,Uf:"core",clientMetadata:new mJ([new jm(E({slotId:W,slotType:c,slotPhysicalPosition:1,Uf:"core",slotEntryTrigger:V,slotFulfillmentTriggers:h,slotExpirationTriggers:H}))]),adSlotLoggingData:B}}; lm=function(h,W){g.N.call(this);this.hk=h;this.X=W;this.eventCount=0}; n0=function(h,W,c,V){lm.call(this,h,W);this.hk=h;this.SO=c;this.context=V}; jo=function(){this.X=new Map}; aq=function(h){this.X="pending";this.W=[];this.G=[];try{h(this.Y.bind(this),this.reject.bind(this))}catch(W){this.reject(W)}}; aFQ=function(){var h,W;return{qy:new aq(function(c,V){h=c;W=V}), resolve:h,reject:W}}; Qg=function(h){return eo(h)?h:za(h)?new aq(function(W,c){h.then(W,c)}):new aq(function(W){W(h)})}; L0=function(h){return new aq(function(W,c){c(h)})}; im=function(h){try{return Qg(h())}catch(W){return L0(W)}}; Ax=function(h,W,c){var V=aFQ(),H=V.qy,B=V.resolve,E=V.reject;h.W.push(function(J){if(W)try{var u=W(J);B(u)}catch(d){E(d)}else B(J)}); h.G.push(function(J){if(c)try{var u=c(J);B(u)}catch(d){E(d)}else E(J)}); K0(h);return H}; Uf=function(h,W){return Ax(h,void 0,W)}; eek=function(h,W){Ax(h,function(c){return Ax(Qg(W()),function(){return c})},function(c){return Ax(Qg(W()),function(){return L0(c)})})}; K0=function(h){if(h.X==="fulfilled"){var W=h.W;h.W=[];h.G=[];W=g.e(W);for(var c=W.next();!c.done;c=W.next())c=c.value,c(h.result)}else if(h.X==="rejected")for(W=h.G,h.W=[],h.G=[],W=g.e(W),c=W.next();!c.done;c=W.next())c=c.value,c(h.error)}; C0=function(h,W){return zeT(W.call(h))}; M1=function(h){return function c(){return Xl(c,function(V){if(V.W==1)return g.LU(V,2),g.F(V,{qy:Qg(h)},4);if(V.W!=2)return V.return(V.X);g.Pd(V);return g.bT(V,0)})}()}; zeT=function(h){return im(function(){return FG(h,h.next())})}; FG=function(h,W){return W.done?Qg(W.value):Uf(Ax(W.value.qy,function(c){return FG(h,h.next(c))}),function(c){return FG(h,h.throw(c))})}; yg=function(h,W){if(h.length===0)return Qg(NaN);var c=aFQ(),V=c.qy,H=c.resolve,B=h.length;h=g.e(h.entries());var E=h.next();for(c={};!E.done;c={zZ:void 0},E=h.next()){var J=g.e(E.value);E=J.next().value;J=J.next().value;c.zZ=E;eek(J,function(u){return function(){V.X==="pending"&&(QvN(W)&&W(u.zZ)&&V.X==="pending"?H(u.zZ):(--B,B===0&&H(NaN)))}}(c))}return V}; PL=function(h){return h.map(function(W){return Qg(W)})}; bm=function(h){var W=h.hours||0;var c=h.minutes||0,V=h.seconds||0;W=V+c*60+W*3600+(h.days||0)*86400+(h.weeks||0)*604800+(h.months||0)*2629800+(h.years||0)*31557600;W<=0?W={hours:0,minutes:0,seconds:0}:(h=W,W=Math.floor(h/3600),h%=3600,c=Math.floor(h/60),V=Math.floor(h%60),W={hours:W,minutes:c,seconds:V});var H=W.hours===void 0?0:W.hours;c=W.minutes===void 0?0:W.minutes;h=W.seconds===void 0?0:W.seconds;V=H>0;W=[];if(V){H=(new Intl.NumberFormat("en-u-nu-latn")).format(H);var B=["fr"],E="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(" "); H="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(f0)?H.replace(",","\u00a0"):B.includes(f0)?H.replace(",","\u202f"):E.includes(f0)?H.replace(",","."):H;W.push(H)}V=V===void 0?!1:V;c=(["af","be","lt"].includes(f0)||V)&&c<10?LJ4().format(c):(new Intl.NumberFormat("en-u-nu-latn")).format(c);W.push(c);c=LJ4().format(h);W.push(c);c=":";"da fi id si sr sr-Latn".split(" ").includes(f0)&&(c=".");return W.join(c)}; LJ4=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; iAv=function(h,W){var c,V;h=((c=h.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(V=c.videoAuthorizationToken)==null?void 0:V.credentialTransferTokens)||[];for(c=0;cW;h=c}else h=!1;return h}; g.kl=function(h,W){return h.Cw+"timedtext_video?ref=player&v="+W.videoId}; g.pqU=function(h){var W=this;this.videoData=h;h={};this.X=(h.c1a=function(){var c=[];if(g.Dq.isInitialized()){var V="";W.videoData&&W.videoData.uP&&(V=W.videoData.uP+("&r1b="+W.videoData.clientPlaybackNonce));var H={};V=(H.atr_challenge=V,H);KE("bg_v",void 0,"player_att");(V=o1p(V))?(KE("bg_s",void 0,"player_att"),c.push("r1a="+V)):(KE("bg_e",void 0,"player_att"),c.push("r1c=2"))}else KE("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.Dq.getState()); return c.join("&")},h.c6a=function(c){return"r6a="+(Number(c.c)^I2())},h.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.X_("CATSTAT",0)))},h); this.videoData&&this.videoData.uP?this.vY=gO(this.videoData.uP):this.vY={}}; g.IFv=function(h){if(h.videoData&&h.videoData.uP){for(var W=[h.videoData.uP],c=g.e(Object.keys(h.X)),V=c.next();!V.done;V=c.next())V=V.value,h.vY[V]&&h.X[V]&&(V=h.X[V](h.vY))&&W.push(V);return W.join("&")}return null}; g.hu=function(h,W){mOU(h,{dsg:g.DF(W.experiments,"bg_vm_reinit_threshold"),cspNonce:W.cspNonce,Cw:W.Cw||""})}; YzL=function(){var h=XMLHttpRequest.prototype.fetch;return!!h&&h.length===3}; OAp=function(h){h=h[R[6]](R[13]);Wb[R[16]](h,3);Wb[R[35]](h,54);Wb[R[77]](h,39);Wb[R[16]](h,2);Wb[R[35]](h,30);Wb[R[35]](h,55);return h[R[33]](R[13])}; DOL=function(h,W){m2(h,2,W.r7,cb,3);m2(h,3,W.innertubeRequest,Sz4,3);tQ(h,4,W.onesieUstreamerConfig);tQ(h,9,W.dJ);m2(h,10,W.uU,VQ,3);m2(h,15,W.reloadPlaybackParams,g1h,3)}; kHN=function(h,W){m2(h,1,W.formatId,$g,3);Nl(h,2,W.startTimeMs);Nl(h,3,W.durationMs);Nl(h,4,W.Xb);Nl(h,5,W.pj);m2(h,9,W.r0N,wqT,3);m2(h,11,W.K1O,s1,1);m2(h,12,W.nY,s1,1)}; hML=function(h,W){v7(h,1,W.videoId);Nl(h,2,W.lmt)}; wqT=function(h,W){if(W.YJ)for(var c=0;c>31));Nl(h,16,W.U1);Nl(h,17,W.detailedNetworkType);Nl(h,18,W.Es);Nl(h,19,W.BC);Nl(h,21,W.vxB);Nl(h,23,W.AK);Nl(h,28,W.KY);Nl(h,29,W.qyg);Nl(h,34,W.visibility);c=W.playbackRate;if(c!==void 0){var V=new ArrayBuffer(4);(new Float32Array(V))[0]=c;c=(new Uint32Array(V))[0];if(c!==void 0)for(KP(h,285),iQ(h,4),V=0;V<4;)h.view.setUint8(h.pos,c&255),c>>=8,h.pos+=1,V+=1}Nl(h,36,W.XQ); m2(h,38,W.mediaCapabilities,smT,3);Nl(h,39,W.Rrk);Nl(h,40,W.yQ);Nl(h,44,W.playerState);Xc(h,46,W.A6);Nl(h,48,W.yP);Nl(h,50,W.qD);Nl(h,51,W.VP);Nl(h,54,W.Hh);if(W.Na)for(c=0;c>31));v7(h,2,W.message)}; Zml=function(h,W){Nl(h,1,W.clientState);m2(h,2,W.kcI,d6N,1)}; uod=function(h,W){tQ(h,1,W.rqk);m2(h,2,W.ZyW,GkL,3);m2(h,3,W.coldStartInfo,Zml,3)}; J$D=function(h,W){Nl(h,1,W.type);tQ(h,2,W.value)}; RMQ=function(h,W){v7(h,1,W.hl);v7(h,12,W.deviceMake);v7(h,13,W.deviceModel);Nl(h,16,W.clientName);v7(h,17,W.clientVersion);v7(h,18,W.osName);v7(h,19,W.osVersion)}; r$T=function(h,W){v7(h,1,W.name);v7(h,2,W.value)}; Bb=function(h,W){v7(h,1,W.url);if(W.fV)for(var c=0;c0&&!(DVL()>(0,g.aC)()-h*1E3))return 0;h=g.KS("yt-player-quality");if(typeof h==="string"){if(h=g.aG[h],h>0)return h}else if(h instanceof Object)return h.quality;return 0}; GV=function(){var h=g.KS("yt-player-proxima-pref");return h==null?null:h}; kkv=function(){var h=g.KS("yt-player-quality");if(h instanceof Object&&h.quality&&h.previousQuality){if(h.quality>h.previousQuality)return 1;if(h.quality0&&W[0]?h.getAutoplayPolicy(W[0]):h.getAutoplayPolicy("mediaelement");if(BzN[c])return BzN[c]}}catch(V){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; jG=function(h){return h.lJ||h.eL||h.mutedAutoplay}; En5=function(h,W){return jG(h)?W!==1&&W!==2&&W!==0?"AUTOPLAY_STATUS_UNAVAILABLE":h.Yb?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; R6T=function(h,W,c){var V=W.B();h.thirdParty||(h.thirdParty={});V.ancestorOrigins&&(h.thirdParty.embeddedPlayerContext=Object.assign({},h.thirdParty.embeddedPlayerContext,{ancestorOrigins:V.ancestorOrigins}));V.j("embeds_enable_autoplay_and_visibility_signals")&&(V.Om!=null&&(h.thirdParty.embeddedPlayerContext=Object.assign({},h.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(V.Om)})),V.wi&&(h.thirdParty.embeddedPlayerContext=Object.assign({},h.thirdParty.embeddedPlayerContext,{visibilityFractionSource:V.wi})), h.thirdParty.embeddedPlayerContext=Object.assign({},h.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:nB(),autoplayIntended:jG(W),autoplayStatus:En5(W,c)}))}; Jlk=function(h){var W=[];h=g.e(h.split(","));for(var c=h.next();!c.done;c=h.next()){var V=c.value;V&&((c=V.startsWith("!"))&&(V=V.substring(1)),V=V.split("-"),V.length<3||W.push({Ki:V[0],platform:V[1],deviceVersion:V[2],BI:c}))}return W}; Gq4=function(h){return Jlk(h).map(function(W){return{deviceInterface:uuQ[db7[W.Ki]]||0,deviceVersion:W.deviceVersion||"",isSleeping:W.BI}})}; g.a7=function(h,W){this.id=h;this.iW=W;this.captionTracks=[];this.G=this.Y=null;this.xtags="";this.C=!1;this.X=null;this.W="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";h=this.iW.id.split(".");h.length>1&&(this.C=h[1]==="2")}; eG=function(h,W,c,V,H){this.W=h;this.X=W;this.G=c;this.reason=V;this.Vg=H===void 0?0:H}; g.zV=function(h,W,c,V){return new eG(g.aG[h]||0,g.aG[W]||0,c,V)}; LB=function(h){if(QQ&&h.Vg)return!1;var W=g.aG.auto;return h.W===W&&h.X===W}; KB=function(h){return iy[h.X||h.W]||"auto"}; Z5k=function(h,W){W=g.aG[W];return h.W<=W&&(!h.X||h.X>=W)}; Au=function(h){return"["+h.W+"-"+h.X+", override: "+(h.G+", reason: "+h.reason+"]")}; U1=function(h,W,c){this.videoInfos=h;this.X=W;this.audioTracks=[];if(this.X){h=new Set;c==null||c({ainfolen:this.X.length});W=g.e(this.X);for(var V=W.next();!V.done;V=W.next())if(V=V.value,!V.iW||h.has(V.iW.id)){var H=void 0,B=void 0,E=void 0;(E=c)==null||E({atkerr:!!V.iW,itag:V.itag,xtag:V.X,lang:((H=V.iW)==null?void 0:H.name)||"",langid:((B=V.iW)==null?void 0:B.id)||""})}else H=new g.a7(V.id,V.iW),h.add(V.iW.id),this.audioTracks.push(H);c==null||c({atklen:this.audioTracks.length})}}; CB=function(){g.N.apply(this,arguments);this.X=null}; lcN=function(h,W,c,V,H,B,E){if(h.X)return h.X;var J={},u=new Set,d={};if(Mp(V)){for(var G in V.X)V.X.hasOwnProperty(G)&&(h=V.X[G],d[h.info.eO]=[h.info]);return d}G=rl5(W,V,J);B&&H({aftsrt:Fs(G)});for(var Z={},r=g.e(Object.keys(G)),q=r.next();!q.done;q=r.next()){q=q.value;for(var x=g.e(G[q]),z=x.next();!z.done;z=x.next()){z=z.value;var L=z.itag,M=void 0,U=q+"_"+(((M=z.video)==null?void 0:M.fps)||0);Z.hasOwnProperty(U)?Z[U]===!0?d[q].push(z):J[L]=Z[U]:(M=yQ(W,z,c,V.isLive,u),M!==!0?(E.add(q),J[L]=M, M==="disablevp9hfr"&&(Z[U]="disablevp9hfr")):(d[q]=d[q]||[],d[q].push(z),Z[U]=!0))}}B&&H({bfflt:Fs(d)});for(var y in d)d.hasOwnProperty(y)&&(V=y,d[V]&&d[V][0].Sz()&&(d[V]=d[V],d[V]=qeL(W,d[V],J),d[V]=xbp(d[V],J)));B&&Object.keys(J).length>0&&H({rjr:En(J)});W=g.e(u.values());for(V=W.next();!V.done;V=W.next())(V=c.Y.get(V.value))&&--V.A_;B&&H({aftflt:Fs(d)});h.X=g.hB(d,function(T){return!!T.length}); return h.X}; j1N=function(h,W,c,V,H,B,E,J){J=J===void 0?!1:J;if(W.U8&&E&&E.length>1&&!(W.bl>0||W.Z)){for(var u=W.W||!!H,d=u&&W.Sx?B:void 0,G=rl5(W,V),Z=[],r=[],q={},x=0;x0&&r&&H&&(G=[E,c],y=H.concat(r).filter(function(T){return T})); if(y.length&&!W.EO){by(y,G);if(u){u=[];W=g.e(y);for(V=W.next();!V.done;V=W.next())u.push(V.value.itag);B({hbdfmt:u.join(".")})}return iW(new U1(y,h,d))}y=CB7(W);y=g.jl(y,J);if(!y){if(Z[E])return B=Z[E],by(B),iW(new U1(B,h,d));u&&B({novideo:1});return Lb()}W.bX&&(y==="1"||y==="1h")&&Z[c]&&(E=TV(Z[y]),G=TV(Z[c]),G>E?y=c:G===E&&M1Q(Z[c])&&(y=c));y==="9"&&Z.h&&TV(Z.h)>TV(Z["9"])&&(y="h");W.Ak&&V.isLive&&y==="("&&Z.H&&TV(Z["("])<1440&&(y="H");u&&B({vfmly:Np(y)});W=Z[y];if(!W.length)return u&&B({novfmly:Np(y)}), Lb();by(W);return iW(new U1(W,h,d))}; e6L=function(h,W){var c=!(!h.m&&!h.M),V=!(!h.mac3&&!h.MAC3),H=!(!h.meac3&&!h.MEAC3);h=!(!h.i&&!h.I);W.Tx=h;return c||V||H||h}; M1Q=function(h){h=g.e(h);for(var W=h.next();!W.done;W=h.next())if(W=W.value,W.itag&&Fr4.has(W.itag))return!0;return!1}; Q1v=function(h){h=g.e(h);for(var W=h.next();!W.done;W=h.next())if(W.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; Np=function(h){switch(h){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return h}}; Fs=function(h){var W=[],c;for(c in h)if(h.hasOwnProperty(c)){var V=c;W.push(Np(V));V=g.e(h[V]);for(var H=V.next();!H.done;H=V.next())W.push(H.value.itag)}return W.join(".")}; ack=function(h,W,c,V,H,B){var E={},J={};g.k6(W,function(u,d){u=u.filter(function(G){var Z=G.itag;if(!G.k9)return J[Z]="noenc",!1;if(B.hI&&G.eO==="(h"&&B.Ef)return J[Z]="lichdr",!1;if(!h.C&&G.eO==="1e")return J[Z]="noav1enc",!1;if(G.eO==="("||G.eO==="(h"){if(h.G&&c&&c.flavor==="widevine"){var r=G.mimeType+"; experimental=allowed";(r=!!G.k9[c.flavor]&&!!c.X[r])||(J[Z]=G.k9[c.flavor]?"unspt":"noflv");return r}if(!Xs(h,tu.CRYPTOBLOCKFORMAT)&&!h.zV||h.Pk)return J[Z]=h.Pk?"disvp":"vpsub",!1}return c&&G.k9[c.flavor]&& c.X[G.mimeType]?!0:(J[Z]=c?G.k9[c.flavor]?"unspt":"noflv":"nosys",!1)}); u.length&&(E[d]=u)}); V&&Object.entries(J).length&&H({rjr:En(J)});return E}; xbp=function(h,W){var c=ns(h,function(V,H){return H.video.fps>32?Math.min(V,H.video.width):V},Infinity); c32||V.video.widthh.N)return"max"+h.N;if(h.rE&&W.eO==="h"&&W.video&&W.video.qualityOrdinal>1080)return"blkhigh264";if(W.eO==="(h"&&!c.S)return"enchdr";if((V===void 0?0:V)&&FK(W)&&!h.mW)return"blk51live";if((W.eO==="MAC3"||W.eO==="mac3")&&!h.Y)return"blkac3";if((W.eO==="MEAC3"||W.eO==="meac3")&&!h.C)return"blkeac3";if(W.eO==="M"||W.eO==="m")return"blkaac51"; if((W.eO==="so"||W.eO==="sa")&&!h.XI)return"blkamb";if(!h.hI&&PwT(W)&&(!c.C||W.eO!=="1e"))return"cbc";if(!c.C&&PwT(W)&&W.eO==="1e")return"cbcav1";if((W.eO==="i"||W.eO==="I")&&!h.qU)return"blkiamf";var B;if(h.lW&&((B=W.audio)==null?void 0:B.W)===!0)return"blkvbcabr";var E,J;if(h.Rz&&(W.eO==="1"||W.eO==="1h"||c.C&&W.eO==="1e")&&((E=W.video)==null?0:E.qualityOrdinal)&&((J=W.video)==null?void 0:J.qualityOrdinal)>h.Rz)return"av1cap";V=c.Y.get(W.eO);if(!h.uW&&V&&V.A_>0)return H.add(W.eO),"byerr";var u; if((u=W.video)==null?0:u.fps>32){if(!c.DH&&!Xs(c,tu.FRAMERATE))return"capHfr";if(h.Jk&&W.video.qualityOrdinal>=4320)return"blk8khfr";if(KF(W)&&h.q$&&W.k9&&W.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(h.Vg&&W.Vg>h.Vg)return"ratecap";h=ylN(c,W);return h!==!0?h:!0}; by=function(h,W){W=W===void 0?[]:W;g.Y6(h,function(c,V){var H=V.Vg-c.Vg;if(!c.Sz()||!V.Sz())return H;var B=V.video.height*V.video.width-c.video.height*c.video.width;!B&&W&&W.length>0&&(c=W.indexOf(c.eO)+1,V=W.indexOf(V.eO)+1,B=c===0||V===0?V||-1:c-V);B||(B=H);return B})}; g.vb=function(h,W){this[R[10]]=h;this[R[9]]=W===void 0?!1:W;this[R[0]]=this[R[7]]=this[R[12]]=R[13];this[R[4]]={};this[R[17]]=R[13]}; o7=function(h){md(h);return h[R[0]]}; pB=function(h){return h[R[10]]?h[R[10]][R[11]](R[37]):h[R[12]]===R[37]}; PB7=function(h){md(h);return g.cG(h[R[4]],function(W){return W!==null})}; I7=function(h){md(h);var W=decodeURIComponent(h[R[55]](R[34])||R[13])[R[6]](R[81]);return h[R[7]]===R[50]&&W[R[18]]>1&&!!W[1]}; Yg=function(h,W){W=W===void 0?!1:W;md(h);if(h[R[7]]!==R[50]){var c=h[R[42]]();c[R[30]](R[28],R[27]);return c}var V=h[R[56]]();c=new g.kQ(V);var H=h[R[55]](R[86]),B=decodeURIComponent(h[R[55]](R[34])||R[13])[R[6]](R[81]);if(H&&B&&B[R[18]]>1&&B[1])return V=c.X,h=V[R[24]](/^[^.]*/,R[13]),g.Wy(c,(V[R[3]](R[52])===0?R[52]:R[73])+H+R[47]+B[1]+h),c=new g.vb(c[R[21]]()),c[R[30]](R[51],R[27]),c;if(W)return c=h[R[42]](),c[R[30]](R[51],R[27]),c;H=c.X[R[65]](R[43]);c.X[R[65]](R[60])?(g.Wy(c,R[78]),V=c[R[21]]()): c.X[R[65]](R[84])?(g.Wy(c,R[88]),V=c[R[21]]()):(c=Q3h(V),bJ(c)&&(V=c));c=new g.vb(V);c[R[30]](R[79],R[27]);H&&c[R[30]](R[68],R[57]);return c}; md=function(h){if(h[R[10]]){if(!(bJ(h[R[10]])||h[R[10]][R[11]](R[37])||h[R[10]][R[11]](R[83])||h[R[10]][R[11]](R[39])))throw new g.tP(R[75],h[R[10]]);var W=g.E5(h[R[10]]);h[R[12]]=W.C;h[R[0]]=W.X+(W.G!=null?R[72]+W.G:R[13]);var c=W.W;if(c[R[11]](R[50]))h[R[7]]=R[50],c=c[R[1]](14);else if(c[R[11]](R[62]))h[R[7]]=R[62],c=c[R[1]](13);else if(c[R[11]](R[54])){var V=c[R[3]](R[23],12),H=c[R[3]](R[23],V+1);V>0&&H>0?(h[R[7]]=c[R[1]](0,H),c=c[R[1]](H+1)):(h[R[7]]=c,c=R[13])}else h[R[7]]=c,c=R[13];V=h[R[4]]; h[R[4]]=fcU(c);Object[R[32]](h[R[4]],b5U(W.Y.toString()));Object[R[32]](h[R[4]],V);h[R[4]][R[14]]===R[69]&&(delete h[R[4]][R[14]],h[R[7]]+=R[59]);h[R[10]]=R[13];h[R[17]]=R[13];h[R[9]]&&(md(h),W=h[R[4]][R[31]]||null)&&(W=TzN[0](W),h[R[30]](R[31],W))}}; NzN=function(h){md(h);var W=h[R[12]]+(h[R[12]]?R[82]:R[64])+h[R[0]]+h[R[7]];if(PB7(h)){var c=[];g.k6(h[R[4]],function(V,H){V!==null&&c[R[19]](H+R[80]+V)}); W+=R[71]+c[R[33]](R[48])}return W}; fcU=function(h){h=h[R[6]](R[23]);var W=0;h[0]||W++;for(var c={};W0?Xh7(W,V[R[1]](0,H),V[R[1]](H+1)):V&&(W[V]=R[13])}return W}; Xh7=function(h,W,c){if(W===R[36]){var V;(V=c[R[3]](R[80]))>=0?(W=R[58]+c[R[1]](0,V),c=c[R[1]](V+1)):(V=c[R[3]](R[29]))>=0&&(W=R[58]+c[R[1]](0,V),c=c[R[1]](V+3))}h[W]=c}; O1=function(h){var W=g.v(h,t1D)||h[R[44]];h={sz:!1,fC:R[13],A5:R[13],s:R[13]};if(!W)return h;W=gO(W);h[R[66]]=!0;h[R[26]]=W[R[17]];h[R[61]]=W[R[8]];h[R[49]]=W[R[49]];return h}; SG=function(h,W,c,V,H,B,E,J,u){this.Hk=h;this.startTime=W;this.duration=c;this.ingestionTime=V;this.sourceURL=H;this.WV=u;this.endTime=W+c;this.X=E||0;this.range=B||null;this.pending=J||!1;this.WV=u||null}; g.gE=function(){this.segments=[];this.X=null;this.W=!0;this.G=""}; vn4=function(h,W){if(W>h.KR())h.segments=[];else{var c=n$(h.segments,function(V){return V.Hk>=W},h); c>0&&h.segments.splice(0,c)}}; DH=function(h,W,c,V,H){H=H===void 0?!1:H;this.data=h;this.offset=W;this.size=c;this.type=V;this.X=(this.W=H)?0:8;this.dataOffset=this.offset+this.X}; wE=function(h){var W=h.data.getUint8(h.offset+h.X);h.X+=1;return W}; kg=function(h){var W=h.data.getUint16(h.offset+h.X);h.X+=2;return W}; hR=function(h){var W=h.data.getInt32(h.offset+h.X);h.X+=4;return W}; W0=function(h){var W=h.data.getUint32(h.offset+h.X);h.X+=4;return W}; c0=function(h){var W=h.data;var c=h.offset+h.X;W=W.getUint32(c)*4294967296+W.getUint32(c+4);h.X+=8;return W}; V4=function(h,W){W=W===void 0?NaN:W;if(isNaN(W))var c=h.size;else for(c=h.X;c1?Math.ceil(H*W):Math.floor(H*W))}h.skip(1);c=wE(h)<<16|kg(h);if(c&256){V=c&1;H=c&4;var B=c&512,E=c&1024,J=c&2048;c=W0(h);V&&h.skip(4);H&&h.skip(4);V=(B?4:0)+(E?4:0)+(J?4:0);for(H=0;H1?Math.ceil(E*W):Math.floor(E*W)),h.skip(V)}}}; dP=function(h){h=new DataView(h.buffer,h.byteOffset,h.byteLength);return(h=g.JR(h,0,1836476516))?g.u_(h):NaN}; hvN=function(h){var W=g.JR(h,0,1937011556);if(!W)return null;W=GY(h,W.dataOffset+8,1635148593)||GY(h,W.dataOffset+8,1635135537);if(!W)return null;var c=GY(h,W.dataOffset+78,1936995172),V=GY(h,W.dataOffset+78,1937126244);if(!V)return null;W=null;if(c)switch(c.skip(4),wE(c)){default:W=0;break;case 1:W=2;break;case 2:W=1;break;case 3:W=255}var H=c=null,B=null;if(V=GY(h,V.dataOffset,1886547818)){var E=GY(h,V.dataOffset,1886546020),J=GY(h,V.dataOffset,2037673328);if(!J&&(J=GY(h,V.dataOffset,1836279920), !J))return null;E&&(E.skip(4),c=hR(E)/65536,B=hR(E)/65536,H=hR(E)/65536);h=mb4(J);h=new DataView(h.buffer,h.byteOffset+8,h.byteLength-8);return new whD(W,c,B,H,h)}return null}; GY=function(h,W,c){for(;Z$(h,W);){var V=rP(h,W);if(V.type===c)return V;W+=V.size}return null}; g.JR=function(h,W,c){for(;Z$(h,W);){var V=rP(h,W);if(V.type===c)return V;W=qh(V.type)?W+8:W+V.size}return null}; g.x0=function(h){if(h.data.getUint8(h.dataOffset)){var W=h.data;h=h.dataOffset+4;W=W.getUint32(h)*4294967296+W.getUint32(h+4)}else W=h.data.getUint32(h.dataOffset+4);return W}; rP=function(h,W){var c=h.getUint32(W),V=h.getUint32(W+4);return new DH(h,W,c,V)}; g.u_=function(h){var W=h.data.getUint8(h.dataOffset)?20:12;return h.data.getUint32(h.dataOffset+W)}; Wyp=function(h){h=new DH(h.data,h.offset,h.size,h.type,h.W);var W=wE(h);h.skip(7);var c=W0(h);if(W===0){W=W0(h);var V=W0(h)}else W=c0(h),V=c0(h);h.skip(2);for(var H=kg(h),B=[],E=[],J=0;J122)return!1}return!0}; qh=function(h){return h===1701082227||h===1836019558||h===1836019574||h===1835297121||h===1835626086||h===1937007212||h===1953653094||h===1953653099||h===1836475768}; cpU=function(h){h.skip(4);return{KFE:V4(h,0),value:V4(h,0),timescale:W0(h),cZW:W0(h),eventDuration:W0(h),id:W0(h),Xz:V4(h),offset:h.offset}}; g.VdU=function(h){var W=GY(h,0,1701671783);if(!W)return null;var c=cpU(W),V=c.KFE;c=RQ(c.Xz);if(h=GY(h,W.offset+W.size,1701671783))if(h=cpU(h),h=RQ(h.Xz),c&&h){W=g.e(Object.keys(h));for(var H=W.next();!H.done;H=W.next())H=H.value,c[H]=h[H]}return c?new Ew(c,V):null}; l_=function(h,W){for(var c=GY(h,0,W);c;){var V=c;V.type=1936419184;V.data.setUint32(V.offset+4,1936419184);c=GY(h,c.offset+c.size,W)}}; g.nT=function(h,W){for(var c=0,V=[];Z$(h,c);){var H=rP(h,c);H.type===W&&V.push(H);c=qh(H.type)?c+8:c+H.size}return V}; $QT=function(h,W){var c=g.JR(h,0,1937011556),V=g.JR(h,0,1953654136);if(!c||!V||h.getUint32(c.offset+12)>=2)return null;var H=new DataView(W.buffer,W.byteOffset,W.length),B=g.JR(H,0,1937011556);if(!B)return null;W=H.getUint32(B.dataOffset+8);V=H.getUint32(B.dataOffset+12);if(V!==1701733217&&V!==1701733238)return null;V=new onN(h.byteLength+W);$0(V,h,0,c.offset+12);V.data.setInt32(V.offset,2);V.offset+=4;$0(V,h,c.offset+16,c.size-16);$0(V,H,H.byteOffset+B.dataOffset+8,W);$0(V,h,c.offset+c.size,h.byteLength- (c.offset+c.size));c=g.e([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(H=c.next();!H.done;H=c.next())H=g.JR(h,0,H.value),V.data.setUint32(H.offset,H.size+W);h=g.JR(V.data,0,1953654136);V.data.setUint32(h.offset+16,2);return V.data}; sGN=function(h){var W=g.JR(h,0,1937011556);if(!W)return null;var c=h.getUint32(W.dataOffset+12);if(c!==1701733217&&c!==1701733238)return null;W=GY(h,W.offset+24+(c===1701733217?28:78),1936289382);if(!W)return null;c=GY(h,W.offset+8,1935894637);if(!c||h.getUint32(c.offset+12)!==1667392371)return null;W=GY(h,W.offset+8,1935894633);if(!W)return null;W=GY(h,W.offset+8,1952804451);if(!W)return null;c=new Uint8Array(16);for(var V=0;V<16;V++)c[V]=h.getInt8(W.offset+16+V);return c}; jr=function(h,W){this.X=h;this.pos=0;this.start=W||0}; aQ=function(h){return h.pos>=h.X.byteLength}; i_=function(h,W,c){var V=new jr(c);if(!er(V,h))return!1;V=zY(V);if(!Q4(V,W))return!1;for(h=0;W;)W>>>=8,h++;W=V.start+V.pos;var H=LT(V,!0);V=h+(V.start+V.pos-W)+H;V=V>9?HFd(V-9,8):HFd(V-2,1);h=W-h;c.setUint8(h++,236);for(W=0;Wc;H++)c=c*256+Mh(h),V*=128;return W?c-V:c}; AR=function(h){var W=LT(h,!0);h.pos+=W}; Rvd=function(h){if(!Q4(h,440786851,!0))return null;var W=h.pos;LT(h,!1);var c=LT(h,!0)+h.pos-W;h.pos=W+c;if(!Q4(h,408125543,!1))return null;LT(h,!0);if(!Q4(h,357149030,!0))return null;var V=h.pos;LT(h,!1);var H=LT(h,!0)+h.pos-V;h.pos=V+H;if(!Q4(h,374648427,!0))return null;var B=h.pos;LT(h,!1);var E=LT(h,!0)+h.pos-B,J=new Uint8Array(c+12+H+E),u=new DataView(J.buffer);J.set(new Uint8Array(h.X.buffer,h.X.byteOffset+W,c));u.setUint32(c,408125543);u.setUint32(c+4,33554431);u.setUint32(c+8,4294967295); J.set(new Uint8Array(h.X.buffer,h.X.byteOffset+V,H),c+12);J.set(new Uint8Array(h.X.buffer,h.X.byteOffset+B,E),c+12+H);return J}; Fh=function(h){var W=h.pos;h.pos=0;var c=1E6;er(h,[408125543,357149030,2807729])&&(c=KT(h));h.pos=W;return c}; JpD=function(h,W){var c=h.pos;h.pos=0;if(h.X.getUint8(h.pos)!==160&&!y4(h)||!Q4(h,160))return h.pos=c,NaN;LT(h,!0);var V=h.pos;if(!Q4(h,161))return h.pos=c,NaN;LT(h,!0);Mh(h);var H=Mh(h)<<8|Mh(h);h.pos=V;if(!Q4(h,155))return h.pos=c,NaN;V=KT(h);h.pos=c;return(H+V)*W/1E9}; y4=function(h){if(!uKN(h)||!Q4(h,524531317))return!1;LT(h,!0);return!0}; uKN=function(h){if(h.Zw()){if(!Q4(h,408125543))return!1;LT(h,!0)}return!0}; er=function(h,W){for(var c=0;c0){var V=b5U(W.substring(c+1));g.k6(V,function(H,B){this.set(B,H)},h); W=W.substring(0,c)}W=fcU(W);g.k6(W,function(H,B){this.set(B,H)},h)}; GWQ=function(h){var W=h.ys.Ly(),c=[];g.k6(h.X,function(H,B){c.push(B+"="+H)}); if(!c.length)return W;var V=c.join("&");h=PB7(h.ys)?"&":"?";return W+h+V}; fT=function(h,W){var c=new g.vb(W);(W=c.get("req_id"))&&h.set("req_id",W);g.k6(h.X,function(V,H){c["set"](H,null)}); return c}; ZFU=function(){this.Y=this.G=this.X=this.timedOut=this.started=this.C=this.W=0}; b_=function(h){h.C=(0,g.aC)();h.started=0;h.timedOut=0;h.X=0}; TY=function(h,W){var c=h.started+h.X*4;W&&(c+=h.G);c=Math.max(0,c-3);return Math.pow(1.6,c)}; Nh=function(h,W){h[W]||(h[W]=new ZFU);return h[W]}; Xh=function(h){this.T=this.S=this.C=this.G=0;this.Z=this.N=!1;this.X=h;this.W=h.clone()}; rpU=function(h,W,c){if(pB(h.X))return!1;var V=Nh(c,o7(h.X));if(V.timedOut<1&&V.X<1)return!1;V=V.timedOut+V.X;h=tR(h,W);c=Nh(c,o7(h));return c.timedOut+c.X+01?W=W.E6:(c=Nh(c,mN(h,h.B3(W,c),W)),W=Math.max(h.C,c.timedOut)+W.dc*(h.G-h.C)+.25*h.S,W=W>3?1E3*Math.pow(1.6,W-3):0);return W===0?!0:h.T+W<(0,g.aC)()}; qnN=function(h,W,c){h.X.set(W,c);h.W.set(W,c);h.Y&&h.Y.set(W,c)}; xQv=function(h,W,c,V,H){++h.G;W&&++h.C;o7(c.ys).startsWith("redirector.")&&(h.X=h.W.clone(),delete h.Y,V.Yb&&delete H[o7(h.X)])}; pT=function(h){return h?(h.itag||"")+";"+(h.lmt||0)+";"+(h.xtags||""):""}; IQ=function(h,W,c,V){this.initRange=c;this.indexRange=V;this.X=null;this.G=!1;this.N=0;this.Y=this.KC=this.W=null;this.info=W;this.bW=new Xh(h)}; Y0=function(h,W){this.start=h;this.end=W;this.length=W-h+1}; Ow=function(h){h=h.split("-");var W=Number(h[0]),c=Number(h[1]);if(!isNaN(W)&&!isNaN(c)&&h.length===2&&(h=new Y0(W,c),!isNaN(h.start)&&!isNaN(h.end)&&!isNaN(h.length)&&h.length>0))return h}; Sr=function(h,W){return new Y0(h,h+W-1)}; lxp=function(h){return h.end==null?{start:String(h.start)}:{start:String(h.start),end:String(h.end)}}; gP=function(h){if(!h)return new Y0(0,0);var W=Number(h.start);h=Number(h.end);if(!isNaN(W)&&!isNaN(h)&&(W=new Y0(W,h),W.length>0))return W}; D$=function(h,W,c,V,H,B,E,J,u,d,G,Z){V=V===void 0?"":V;this.type=h;this.X=W;this.range=c;this.source=V;this.Jl=G;this.clipId=Z===void 0?"":Z;this.T=[];this.S="";this.Hk=-1;this.XI=this.Wk=0;this.S=V;this.Hk=H>=0?H:-1;this.startTime=B||0;this.duration=E||0;this.W=J||0;this.G=u>=0?u:this.range?this.range.length:NaN;this.C=this.range?this.W+this.G===this.range.length:d===void 0?!!this.G:d;this.range?(this.Y=this.startTime+this.duration*this.W/this.range.length,this.Z=this.duration*this.G/this.range.length, this.N=this.Y+this.Z):nTv(this)}; nTv=function(h){h.Y=h.startTime;h.Z=h.duration;h.N=h.Y+h.Z}; jGd=function(h,W,c){var V=!(!W||W.X!==h.X||W.type!==h.type||W.Hk!==h.Hk);return c?V&&!!W&&(h.range&&W.range?W.range.end===h.range.end:W.range===h.range)&&W.W+W.G===h.W+h.G:V}; wP=function(h){return h.type===1||h.type===2}; k0=function(h){return h.type===3||h.type===6}; hw=function(h,W){return h.X===W.X?h.range&&W.range?h.range.start+h.W+h.G===W.range.start+W.W:h.Hk===W.Hk?h.W+h.G===W.W:h.Hk+1===W.Hk&&W.W===0&&h.C:!1}; evU=function(h,W){return h.Hk!==W.Hk&&W.Hk!==h.Hk+1||h.type!==W.type?!1:hw(h,W)?!0:Math.abs(h.Y-W.Y)<=1E-6&&h.Hk===W.Hk?!1:axp(h,W)}; axp=function(h,W){return hw(h,W)||Math.abs(h.N-W.Y)<=1E-6||h.Hk+1===W.Hk&&W.W===0&&h.C?!0:!1}; WJ=function(h){return h.Hk+(h.C?1:0)}; zv5=function(h){h.length===1||g.l6(h,function(c){return!!c.range}); for(var W=1;W=W.range.start+W.W&&h.range.start+h.W+h.G<=W.range.start+W.W+W.G:h.Hk===W.Hk&&h.W>=W.W&&(h.W+h.G<=W.W+W.G||W.C)}; CXl=function(h,W){return h.X!==W.X?!1:h.type===4&&W.type===3&&h.X.Yx()?(h=h.X.V5(h),tM(h,function(c){return CXl(c,W)})):h.Hk===W.Hk&&!!W.G&&W.W+W.G>h.W&&W.W+W.G<=h.W+h.G}; VK=function(h,W){var c=W.Hk;h.S="updateWithSegmentInfo";h.Hk=c;if(h.startTime!==W.startTime||h.duration!==W.duration)h.startTime=W.startTime+h.Wk,h.duration=W.duration,nTv(h)}; $P=function(h,W){var c=this;this.pM=h;this.Y=this.X=null;this.C=this.dS=NaN;this.B3=this.requestId=null;this.uX={N8k:function(){return c.range}}; this.bW=h[0].X.bW;this.W=W||"";this.pM[0].range&&this.pM[0].G>0&&(QGd(h)?(this.range=zv5(h),this.G=this.range.length):(this.range=this.pM[this.pM.length-1].range,this.G=LyN(h)))}; sj=function(h){return!wP(h.pM[h.pM.length-1])}; HJ=function(h){return h.pM[h.pM.length-1].type===4}; g.BJ=function(h,W,c){c=h.B3===null?h.bW.B3(W,c,h.pM[0].type):h.B3;if(h.X){W=c?Yg(h.X,W.GP):h.X;var V=new P0(W);V.get("alr")||V.set("alr","yes");h.W&&dQd(V,h.W)}else/http[s]?:\/\//.test(h.W)?V=new P0(new g.vb(h.W)):(V=v0(h.bW,c,W),h.W&&dQd(V,h.W));(W=h.range)?V.set("range",W.toString()):h.pM[0].X.Cq()&&h.pM.length===1&&h.pM[0].W&&V.set("range",h.pM[0].W+"-");h.requestId&&V.set("req_id",h.requestId);isNaN(h.dS)||V.set("headm",h.dS.toString());isNaN(h.C)||V.set("mffa",h.C+"ms");h.urlParams&&g.k6(h.urlParams, function(H,B){V.set(B,H)}); return V}; Mdp=function(h){if(h.range)return h.G;h=h.pM[0];return Math.round(h.Z*h.X.info.Vg)}; Fyl=function(h,W){return Math.max(0,h.pM[0].Y-W)}; Ej=function(h,W,c,V,H,B){B=B===void 0?0:B;IQ.call(this,h,W,V,void 0);this.C=c;this.Ix=B;this.index=H||new g.gE}; ypQ=function(h,W,c,V,H){this.Hk=h;this.startSecs=W;this.QM=c;this.X=V||NaN;this.W=H||NaN}; Ru=function(h,W,c){for(;h;h=h.parentNode)if(h.attributes&&(!c||h.nodeName===c)){var V=h.getAttribute(W);if(V)return V}return""}; Jw=function(h,W){for(;h;h=h.parentNode){var c=h.getElementsByTagName(W);if(c.length>0)return c[0]}return null}; PXv=function(h){if(!h)return 0;var W=h.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return W?(Number(W[2])|0)*3600+(Number(W[4])|0)*60+(Number(W[6])|0):Number(h)|0}; fxl=function(h){return h.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?h+"Z":h}; uS=function(){this.X=[];this.W=null;this.N=0;this.G=[];this.C=!1;this.S="";this.Y=-1}; bFp=function(h){var W=h.G;h.G=[];return W}; TAh=function(){this.Y=[];this.X=null;this.W={};this.G={}}; vTd=function(h,W){var c=[];W=Array.from(W.getElementsByTagName("SegmentTimeline"));W=g.e(W);for(var V=W.next();!V.done;V=W.next()){V=V.value;var H=V.parentNode.parentNode,B=null;H.nodeName==="Period"?B=NA5(h):H.nodeName==="AdaptationSet"?(H=H.getAttribute("id")||H.getAttribute("mimetype")||"",B=X_7(h,H)):H.nodeName==="Representation"&&(H=H.getAttribute("id")||"",B=tdp(h,H));if(B==null)return;B.update(V);g.F6(c,bFp(B))}g.F6(h.Y,c);K7L(h.Y,function(E){return E.startSecs*1E3+E.X})}; mQ7=function(h){h.X&&(h.X.X=[]);g.k6(h.W,function(W){W.X=[]}); g.k6(h.G,function(W){W.X=[]})}; NA5=function(h){h.X||(h.X=new uS);return h.X}; X_7=function(h,W){h.W[W]||(h.W[W]=new uS);return h.W[W]}; tdp=function(h,W){h.G[W]||(h.G[W]=new uS);return h.G[W]}; Gw=function(h){var W=h===void 0?{}:h;h=W.Ix===void 0?0:W.Ix;var c=W.f9===void 0?!1:W.f9;var V=W.G7===void 0?0:W.G7;var H=W.W9===void 0?0:W.W9;var B=W.v5===void 0?Infinity:W.v5;var E=W.Po===void 0?0:W.Po;var J=W.N$===void 0?!1:W.N$;W=W.mu===void 0?!1:W.mu;g.gE.call(this);this.gK=this.ML=-1;this.fp=h;this.G7=V;this.f9=c;this.W9=H;this.v5=B;this.Po=E;((this.N$=J)||isFinite(B)&&this.v5>0)&&c&&dW&&(this.W=!1,this.G="postLive");this.mu=W}; Zs=function(h,W){return of(h.segments,function(c){return W-c.Hk})}; rW=function(h,W,c){c=c===void 0?{}:c;Ej.call(this,h,W,"",void 0,void 0,c.Ix||0);this.index=new Gw(c)}; qj=function(h,W,c){IQ.call(this,h,W);this.C=c;h=this.index=new g.gE;h.W=!1;h.G="d"}; oTp=function(h,W,c){var V=h.index.Ow(W),H=h.index.getStartTime(W),B=h.index.getDuration(W);c?B=c=0:c=h.info.Vg*B;return new $P([new D$(3,h,void 0,"otfCreateRequestInfoForSegment",W,H,B,0,c)],V)}; p_N=function(h,W){if(!h.index.isLoaded()){var c=[],V=W.Y;W=W.C.split(",").filter(function(G){return G.length>0}); for(var H=0,B=0,E=0,J=/^(\d+)/,u=/r=(\d+)/,d=0;d0&&(H.X=Math.min(H.X+E,10),H.W=B);H.X>0?(H.X--,H=!0):H=!1;if(H)typeof V==="function"&&(V=V()),console.log("plyr."+W,V);else{var J;V=((J=DQ4.get(W))!=null?J:0)+1;DQ4.set(W,V);V%100===1&&console.warn("plyr","plyr."+W+" is chatty, dropping logs.")}}}; gTk=function(){this.X=10;this.W=Date.now()}; nv=function(h,W){this.info=h;this.W=W;this.X=null;this.Y=this.G=-1;this.timestampOffset=0;this.isLocked=this.N=!1;this.C=this.info.X.Ar()&&!this.info.W}; g.jg=function(h){return osN(h.W)}; w_4=function(h,W){W=Math.min(W,h.info.G);var c=h.W.split(W),V=c.t2;c=new nv(new D$(h.info.type,h.info.X,h.info.range,h.info.S,h.info.Hk,h.info.startTime,h.info.duration,h.info.W,W,!1,h.info.Jl,h.info.clipId),c.zF);c.Y=h.Y;c.G=h.G;W=new nv(new D$(h.info.type,h.info.X,h.info.range,h.info.S,h.info.Hk,h.info.startTime,h.info.duration,h.info.W+W,h.info.G-W,h.info.C,h.info.Jl,h.info.clipId),V);W.Y=h.Y;W.G=h.G;return[c,W]}; g.au=function(h,W,c,V){c=c===void 0?!1:c;V=V===void 0?0:V;if(h.isLocked||W.isLocked||!hw(h.info,W.info)||h.info.C)return null;if(V){if(h.W.totalLength+W.W.totalLength>V)return null}else if(c&&(c=h.W,V=W.W,c=!(V.X.length?vsp(c,V.X[0]):1)),c)return null;c=new D$(h.info.type,h.info.X,h.info.range,h.info.S,h.info.Hk,h.info.startTime,h.info.duration,h.info.W,h.info.G,h.info.C,h.info.Jl,h.info.clipId);V=W.info;c.G+=V.G;c.range&&(c.Z+=V.Z);c.N=V.N;c.C=V.C;V=new hQ;W7(V,h.W);W7(V,W.W);c=new nv(c,V);c.X!= null&&W.X!=null&&(new g.xP("dash")).X(414627957,"merged slice emsg overridden; prev: "+c.X.Di()+" next: "+W.X.Di());c.X=W.X||h.X;c.G=h.G!==-1?h.G:W.G;c.Y=h.Y!==-1?h.Y:W.Y;return c}; g.eg=function(h){g.yT(h.info.X.info)||h.info.X.info.Aq();if(h.G!==-1)return h.G;if(h.X&&YeN(h.X))return h.G=YeN(h.X),h.G;if(g.yT(h.info.X.info)){var W=g.jg(h);for(var c=h.info.X.X,V=NaN,H=NaN,B=0;Z$(W,B);){var E=rP(W,B);E.type===1936286840?H=E.data.getUint32(E.dataOffset+8):E.type===1836476516?H=g.u_(E):E.type===1952867444&&isNaN(V)&&(V=g.x0(E));B=qh(E.type)?B+8:B+E.size}!H&&c&&(H=dP(c));W=V/H}else W=new jr(g.jg(h)),c=h.C?W:new jr(new DataView(h.info.X.X.buffer)),V=Fh(c),c=W.pos,W.pos=0,y4(W)?Q4(W, 231)?(V=KT(W)*V/1E9,W.pos=c,W=V):(W.pos=c,W=NaN):(W.pos=c,W=NaN);h.G=W||h.info.Y;return h.G}; hm7=function(h,W){h.timestampOffset>0&&(W-=h.timestampOffset);var c=g.eg(h)+W;kWh(h,c);h.timestampOffset=W}; kWh=function(h,W){g.yT(h.info.X.info)||h.info.X.info.Aq();h.G=W;if(g.yT(h.info.X.info)){var c=g.jg(h);h=h.info.X.X;for(var V=NaN,H=NaN,B=0;Z$(c,B);){var E=rP(c,B);isNaN(V)&&(E.type===1936286840?V=E.data.getUint32(E.dataOffset+8):E.type===1836476516&&(V=g.u_(E)));if(E.type===1952867444){!V&&h&&(V=dP(h));var J=g.x0(E);isNaN(H)&&(H=Math.round(W*V)-J);var u=E;J+=H;if(u.data.getUint8(u.dataOffset)){var d=u.data;u=u.dataOffset+4;d.setUint32(u,Math.floor(J/4294967296));d.setUint32(u+4,J&4294967295)}else u.data.setUint32(u.dataOffset+ 4,J)}B=qh(E.type)?B+8:B+E.size}return!0}c=new jr(g.jg(h));h=h.C?c:new jr(new DataView(h.info.X.X.buffer));V=Fh(h);h=c.pos;c.pos=0;if(y4(c)&&Q4(c,231))if(H=LT(c,!0),W=Math.floor(W*1E9/V),Math.ceil(Math.log(W)/Math.log(2)/8)>H)W=!1;else{for(V=H-1;V>=0;V--)c.X.setUint8(c.pos+V,W&255),W>>>=8;c.pos=h;W=!0}else W=!1;return W}; QK=function(h,W){W=W===void 0?!1:W;var c=zw(h);h=W?0:h.info.Z;return c||h}; zw=function(h){g.yT(h.info.X.info)||h.info.X.info.Aq();if(h.X&&h.info.type===6)return h.X.Ix;if(g.yT(h.info.X.info)){var W=g.jg(h);var c=0;W=g.nT(W,1936286840);W=g.e(W);for(var V=W.next();!V.done;V=W.next())V=Wyp(V.value),c+=V.OI[0]/V.timescale;c=c||NaN;if(!(c>=0))a:{c=g.jg(h);W=h.info.X.X;for(var H=V=0,B=0;Z$(c,V);){var E=rP(c,V);if(E.type===1836476516)H=g.u_(E);else if(E.type===1836019558){!H&&W&&(H=dP(W));if(!H){c=NaN;break a}var J=GY(E.data,E.dataOffset,1953653094),u=J;J=H;var d=GY(u.data,u.dataOffset, 1952868452);u=GY(u.data,u.dataOffset,1953658222);var G=hR(d);hR(d);G&2&&hR(d);d=G&8?hR(d):0;var Z=hR(u),r=Z&1;G=Z&4;var q=Z&256,x=Z&512,z=Z&1024;Z&=2048;var L=W0(u);r&&hR(u);G&&hR(u);for(var M=r=0;M2048?"":W.indexOf("https://")===0?W:""}; Cv=function(h,W,c){W.match(d7T);return h(W,c).then(function(V){var H=g.umU(V.xhr);return H?Cv(h,H,c):V.xhr})}; PJ=function(h,W,c){h=h===void 0?"":h;W=W===void 0?null:W;c=c===void 0?!1:c;g.h1.call(this);var V=this;this.sourceUrl=h;this.isLivePlayback=c;this.Rz=this.duration=0;this.isPremiere=this.N$=this.Y=this.isLiveHeadPlayable=this.isLive=this.W=!1;this.v5=this.W9=0;this.isOtf=this.Hi=!1;this.Nn=(0,g.aC)();this.XI=Infinity;this.X={};this.G=new Map;this.state=this.HH=0;this.timeline=null;this.isManifestless=!1;this.Pk=[];this.N=null;this.zV=0;this.C="";this.mW=NaN;this.DH=this.hI=this.timestampOffset=this.S= 0;this.Vz=this.vj=NaN;this.Sx=0;this.CM=this.T=!1;this.yg=[];this.Jk={};this.Wk=NaN;this.uX={ohV:function(J){Mj(V,J)}}; var H;this.rE=(H=W)==null?void 0:H.xN("html5_use_network_error_code_enums");Gnv=!!W&&W.xN("html5_modern_vp9_mime_type");var B;Fg=!((B=W)==null||!B.xN("html5_enable_flush_during_seek"))&&g.NC();var E;yK=!((E=W)==null||!E.xN("html5_enable_reset_audio_decoder"))&&g.NC()}; ZId=function(h){return g.cG(h.X,function(W){return!!W.info.video&&W.info.video.qualityOrdinal>=2160})}; Ub7=function(h){return g.cG(h.X,function(W){return!!W.info.video&&W.info.video.isHdr()})}; Pb=function(h){return g.cG(h.X,function(W){return!!W.info.k9})}; g.rYN=function(h){return g.cG(h.X,function(W){return XK(W.info.mimeType)})}; qsD=function(h){return g.cG(h.X,function(W){return W.info.video?W.info.video.projectionType==="EQUIRECTANGULAR":!1})}; x7U=function(h){return g.cG(h.X,function(W){return W.info.video?W.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; lSN=function(h){return g.cG(h.X,function(W){return W.info.video?W.info.video.projectionType==="MESH":!1})}; nhD=function(h){return g.cG(h.X,function(W){return W.info.video?W.info.video.stereoLayout===1:!1})}; jiD=function(h){return F7L(h.X,function(W){return W.info.video?W.jV():!0})}; Mp=function(h){return g.cG(h.X,function(W){return pB(W.bW.X)})}; Mj=function(h,W){h.X[W.info.id]=W;h.G.set(pT(g.fF(W.info,h.Hi)),W)}; Tw=function(h,W,c){c=c===void 0?0:c;var V=h.mimeType||"",H=h.itag;var B=h.xtags;H=H?H.toString():"";B&&(H+=";"+B);B=H;if(TW(V)){var E=h.width||640;H=h.height||360;var J=h.fps,u=h.qualityLabel,d=h.colorInfo,G=h.projectionType,Z;h.stereoLayout&&(Z=aS4[h.stereoLayout]);var r=Rmp(h)||void 0;if(d==null?0:d.primaries)var q=em7[d.primaries]||void 0;E=new ed(E,H,J,G,Z,void 0,u,r,q);V=fv(V,E,LF[h.itag||""]);Fg&&(V+="; enableflushduringseek=true");yK&&(V+="; enableresetaudiodecoder=true")}var x;if(bX(V)){var z= h.audioSampleRate;Z=h.audioTrack;z=new nF(z?+z:void 0,h.audioChannels,h.spatialAudioType,h.isDrc,h.loudnessDb,h.trackAbsoluteLoudnessLkfs,h.audioQuality||"AUDIO_QUALITY_UNKNOWN",h.isVb);Z&&(q=Z.displayName,H=Z.id,Z=Z.audioIsDefault,q&&(x=new g.Uj(q,H||"",!!Z)))}var L;h.captionTrack&&(u=h.captionTrack,Z=u.displayName,q=u.vssId,H=u.languageCode,J=u.kind,u=u.id,Z&&q&&H&&(L=new B4D(Z,q,H,J,h.xtags,u)));Z=Number(h.bitrate)/8;q=Number(h.contentLength);H=Number(h.lastModified);u=h.drmFamilies;J=h.type;c= c&&q?q/c:0;h=Number(h.approxDurationMs);if(W&&u){var M={};u=g.e(u);for(d=u.next();!d.done;d=u.next())(d=bS[d.value])&&(M[d]=W[d])}return new iX(B,V,{audio:z,video:E,iW:x,k9:M,Vg:Z,Cf:c,contentLength:q,lastModified:H,captionTrack:L,streamType:J,approxDurationMs:h})}; Nj=function(h,W,c){c=c===void 0?0:c;var V=h.type;var H=h.itag;var B=h.xtags;B&&(H=h.itag+";"+B);if(TW(V)){var E=(h.size||"640x360").split("x");E=new ed(+E[0],+E[1],+h.fps,h.projection_type,+h.stereo_layout,void 0,h.quality_label,h.eotf,h.primaries);V=fv(V,E,LF[h.itag]);Fg&&(V+="; enableflushduringseek=true");yK&&(V+="; enableresetaudiodecoder=true")}var J;if(bX(V)){var u=new nF(+h.audio_sample_rate||void 0,+h.audio_channels||0,h.spatial_audio_type,!!h.drc);h.name&&(J=new g.Uj(h.name,h.audio_track_id, h.isDefault==="1"))}var d;h.caption_display_name&&h.caption_vss_id&&h.caption_language_code&&(d=new B4D(h.caption_display_name,h.caption_vss_id,h.caption_language_code,h.caption_kind,h.xtags,h.caption_id));B=Number(h.bitrate)/8;var G=Number(h.clen),Z=Number(h.lmt);c=c&&G?G/c:0;if(W&&h.drm_families){var r={};for(var q=g.e(h.drm_families.split(",")),x=q.next();!x.done;x=q.next())x=x.value,r[x]=W[x]}return new iX(H,V,{audio:u,video:E,iW:J,k9:r,Vg:B,Cf:c,contentLength:G,lastModified:Z,captionTrack:d, streamType:h.stream_type,approxDurationMs:Number(h.approx_duration_ms)})}; zmN=function(h){return tM(h,function(W){return"FORMAT_STREAM_TYPE_OTF"===W.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; Qi5=function(h){return tM(h,function(W){return"FORMAT_STREAM_TYPE_OTF"===W.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; LR5=function(h,W){return h.timeline?bK(h.timeline.Y,W):h.Pk.length?bK(h.Pk,W):[]}; Xg=function(h,W,c){W=W===void 0?"":W;c=c===void 0?"":c;h=new g.vb(h,!0);h.set("alr","yes");c&&(c=OAp(decodeURIComponent(c)),h[R[30]](W,encodeURIComponent(c)));return h}; U77=function(h,W){var c=Ru(W,"id");c=c.replace(":",";");var V=Ru(W,"mimeType"),H=Ru(W,"codecs");V=H?V+'; codecs="'+H+'"':V;H=Number(Ru(W,"bandwidth"))/8;var B=Number(Jw(W,"BaseURL").getAttribute(h.C+":contentLength")),E=h.duration&&B?B/h.duration:0;if(TW(V)){var J=Number(Ru(W,"width"));var u=Number(Ru(W,"height")),d=Number(Ru(W,"frameRate")),G=iIU(Ru(W,h.C+":projectionType"));a:switch(Ru(W,h.C+":stereoLayout")){case "layout_left_right":var Z=1;break a;case "layout_top_bottom":Z=2;break a;default:Z= 0}J=new ed(J,u,d,G,Z)}if(bX(V)){var r=Number(Ru(W,"audioSamplingRate"));var q=Number(Ru(W.getElementsByTagName("AudioChannelConfiguration")[0],"value"));u=KRk(Ru(W,h.C+":spatialAudioType"));r=new nF(r,q,u);a:{q=Ru(W,"lang")||"und";if(u=Jw(W,"Role"))if(G=Ru(u,"value")||"",g.JB(AYT,G)){u=q+"."+AYT[G];d=G==="main";h=Ru(W,h.C+":langName")||q+" - "+G;q=new g.Uj(h,u,d);break a}q=void 0}}if(W=Jw(W,"ContentProtection"))if(W.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var x={};for(W= W.firstChild;W!=null;W=W.nextSibling)W instanceof Element&&/SystemURL/.test(W.nodeName)&&(h=W.getAttribute("type"),u=W.textContent,h&&u&&(x[h]=u.trim()))}else x=void 0;return new iX(c,V,{audio:r,video:J,iW:q,k9:x,Vg:H,Cf:E,contentLength:B})}; iIU=function(h){switch(h){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"}}; KRk=function(h){switch(h){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"}}; M$d=function(h,W){W=W===void 0?"":W;h.state=1;h.Nn=(0,g.aC)();return JYQ(W||h.sourceUrl).then(function(c){if(!h.gE()){h.HH=c.status;c=c.responseText;var V=new DOMParser;c=K6(V,TmN(c),"text/xml").getElementsByTagName("MPD")[0];h.XI=PXv(Ru(c,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(c.attributes){V=g.e(c.attributes);for(var H=V.next();!H.done;H=V.next())if(H=H.value,H.value==="http://youtube.com/yt/2012/10/10"){V=H.name.split(":")[1];break b}}V=""}h.C=V;h.isLive=h.XI=h.XI}; yYh=function(h){h.N&&h.N.stop()}; C1d=function(h){var W=h.XI;isFinite(W)&&(tw(h)?h.refresh():(W=Math.max(0,h.Nn+W-(0,g.aC)()),h.N||(h.N=new g.oD(h.refresh,W,h),g.X(h,h.N)),h.N.start(W)))}; P1T=function(h){h=h.X;for(var W in h){var c=h[W].index;if(c.isLoaded())return c.KR()+1}return 0}; vJ=function(h){return h.hI?h.hI-(h.S||h.timestampOffset):0}; mM=function(h){return h.DH?h.DH-(h.S||h.timestampOffset):0}; ou=function(h){if(!isNaN(h.mW))return h.mW;var W=h.X,c;for(c in W){var V=W[c].index;if(V.isLoaded()&&!XK(W[c].info.mimeType)){W=0;for(c=V.jf();c<=V.KR();c++)W+=V.getDuration(c);W/=V.NV();W=Math.round(W/.5)*.5;V.NV()>10&&(h.mW=W);return W}if(h.isLive&&(V=W[c],V.Ix))return V.Ix}return NaN}; fSh=function(h,W){h=PTT(h.X,function(V){return V.index.isLoaded()}); if(!h)return NaN;h=h.index;var c=h.Gj(W);return h.getStartTime(c)===W?W:c=0&&H.segments.splice(B,1)}}}; T45=function(h){for(var W in h.X)XK(h.X[W].info.mimeType)||vn4(h.X[W].index,Infinity)}; YP=function(h,W,c){for(var V in h.X){var H=h.X[V].index,B=W,E=c;H.f9&&(B&&(H.ML=Math.max(H.ML,B)),E&&(H.gK=Math.max(H.gK||0,E)))}c&&(h.Wk=c/1E3)}; N4l=function(h){h.DH=0;h.hI=0;h.Sx=0}; Oj=function(h){return h.CM&&h.isManifestless?h.isLiveHeadPlayable:h.isLive}; fv=function(h,W,c){Sg===null&&(Sg=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(Gnv&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return Sg||c!=="9"&&c!=="("?Sg||c!=="9h"&&c!=="(h"||(h='video/webm; codecs="vp9.2"'):h='video/webm; codecs="vp9"',h;if(!Sg&&!gW||h!=='video/webm; codecs="vp9"'&&h!=='video/webm; codecs="vp9.2"')return h; c="00";var V="08",H="01",B="01",E="01";h==='video/webm; codecs="vp9.2"'&&(c="02",V="10",W.primaries==="bt2020"&&(E=H="09"),W.X==="smpte2084"&&(B="16"),W.X==="arib-std-b67"&&(B="18"));return'video/webm; codecs="'+["vp09",c,"51",V,"01",H,B,E,"00"].join(".")+'"'}; wW=function(h,W,c){h=""+h+(W>49?"p60":W>32?"p48":"");W=ZH()[h];if(W!=null&&W>0)return W;W=Ds.get(h);if(W!=null&&W>0)return W;c=c==null?void 0:c.get(h);return c!=null&&c>0?c:8192}; Xc4=function(h){this.fM=h;this.fR=this.EO=this.zV=this.C=this.Y=this.yg=this.CM=this.XI=!1;this.S=this.N=0;this.rE=!1;this.Wk=!0;this.Jk=!1;this.bl=0;this.Sm=this.Pk=!1;this.bX=!0;this.Nn=this.mW=!1;this.X={};this.uW=this.lW=this.Zn=this.disableAv1=this.Ef=this.Tx=this.Mn=this.Ak=this.W=this.Z=!1;this.hq=this.fM.j("html5_disable_aac_preference");this.U5=Infinity;this.DH=0;this.Sx=this.fM.gI();this.hI=this.fM.experiments.xN("html5_enable_vp9_fairplay");this.BV=this.fM.j("html5_force_av1_for_testing"); this.Rz=g.DF(this.fM.experiments,"html5_av1_ordinal_cap");this.q$=this.fM.j("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.U8=this.fM.j("html5_account_onesie_format_selection_during_format_filter");this.Vg=g.DF(this.fM.experiments,"html5_max_byterate");this.qU=this.fM.j("html5_enable_iamf_audio");this.iX=this.fM.experiments.xN("html5_allow_capability_merge");this.RR=this.fM.j("html5_enable_encrypted_av1")}; CB7=function(h){if(h.CM)return["f"];if(g.bW("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var W=["9h","9","h","8"];h.RR&&W.push("1e");W=W.concat(["(h","(","H","*"]);h.Pk&&(W.unshift("1"),W.unshift("1h"));h.EO&&W.unshift("h");h.T&&(W=(t$Q[h.T]||[h.T]).concat(W));return W}; z6v=function(h){var W=["o","a","A"];h.DH===1&&(h.Y&&(W=["mac3","MAC3"].concat(W)),h.C&&(W=["meac3","MEAC3"].concat(W)),h.qU&&(W=["i","I"].concat(W)));h.XI&&(W=["so","sa"].concat(W));!h.fR||h.zV||h.G||h.hq||W.unshift("a");h.G&&(W=(t$Q[h.G]||[h.G]).concat(W));return W}; kP=function(h,W,c,V){W=W===void 0?{}:W;if(V===void 0?0:V)return W.disabled=1,0;if(Xs(h.C,tu.AV1_CODECS)&&Xs(h.C,tu.HEIGHT)&&Xs(h.C,tu.BITRATE))return W.isCapabilityUsable=1,8192;try{var H=$bd();if(H&&!h.j("disable_av1_setting"))return W.localPref=H}catch(J){}V=1080;H=navigator.hardwareConcurrency;H<=2&&(V=480);W.coreCount=H;if(H=g.DF(h.experiments,"html5_default_av1_threshold"))V=W["default"]=H;!h.j("html5_disable_av1_arm_check")&&aDD()&&(W.isArm=1,V=240);if(h=h.C.Wk)W.mcap=h,V=Math.max(V,h);if(c){var B, E;if(h=(B=c.videoInfos.find(function(J){return CF(J)}))==null?void 0:(E=B.W)==null?void 0:E.powerEfficient)V=8192,W.isEfficient=1; c=c.videoInfos[0].video;B=Math.min(wW("1",c.fps),wW("1",30));W.perfCap=B;V=Math.min(V,B);c.isHdr()&&!h&&(W.hdr=1,V*=.75)}else c=wW("1",30),W.perfCap30=c,V=Math.min(V,c),c=wW("1",60),W.perfCap60=c,V=Math.min(V,c);return W.av1Threshold=V}; hg=function(h,W,c,V){this.flavor=h;this.keySystem=W;this.W=c;this.experiments=V;this.X={};this.Rz=this.keySystemAccess=null;this.WO=this.GB=-1;this.ut=null;this.G=!!V&&V.xN("edge_nonprefixed_eme");V&&V.xN("html5_enable_vp9_fairplay")}; cx=function(h){return h.G?!1:!h.keySystemAccess&&!!Wx()&&h.keySystem==="com.microsoft.playready"}; Vs=function(h){return h.keySystem==="com.microsoft.playready"}; $a=function(h){return!h.keySystemAccess&&!!Wx()&&h.keySystem==="com.apple.fps.1_0"}; sd=function(h){return h.keySystem==="com.youtube.fairplay"}; Hx=function(h){return h.keySystem==="com.youtube.fairplay.sbdl"}; g.Bx=function(h){return h.flavor==="fairplay"}; Wx=function(){var h=window,W=h.MSMediaKeys;vf()&&!W&&(W=h.WebKitMediaKeys);return W&&W.isTypeSupported?W:null}; R9=function(h){return navigator.requestMediaKeySystemAccess?g.Zx&&!g.NC()?jQ("45"):g.vp||g.Eb?h.xN("edge_nonprefixed_eme"):g.Ed?jQ("47"):g.G1&&h.xN("html5_enable_safari_fairplay")?!1:!0:!1}; vhQ=function(h,W,c,V){var H=XA(),B=(c=H||c&&vf())?["com.youtube.fairplay"]:["com.widevine.alpha"];W&&B.unshift("com.youtube.widevine.l3");H&&V&&B.unshift("com.youtube.fairplay.sbdl");return c?B:h?[].concat(g.rN(B),g.rN(Jg.playready)):[].concat(g.rN(Jg.playready),g.rN(B))}; uf=function(h,W,c,V,H){V=V===void 0?!1:V;g.N.call(this);this.fM=W;this.useCobaltWidevine=V;this.GV=H;this.W=[];this.G={};this.X={};this.callback=null;this.C=!1;this.Y=[];this.initialize(h,!c)}; ohQ=function(h,W){h.callback=W;h.Y=[];R9(h.fM.experiments)?dh(h):m7k(h)}; dh=function(h){if(!h.gE())if(h.W.length===0)h.callback(h.Y);else{var W=h.W[0],c=h.G[W],V=pcN(h,c);if(Gc&&Gc.keySystem===W&&Gc.N3z===JSON.stringify(V))h.GV("remksa",{re:!0}),IS5(h,c,Gc.keySystemAccess);else{var H,B;h.GV("remksa",{re:!1,ok:(B=(H=Gc)==null?void 0:H.keySystem)!=null?B:""});Gc=void 0;navigator.requestMediaKeySystemAccess(W,V).then(N1(function(E){IS5(h,c,E,V)}),N1(function(){h.C=!h.C&&h.G[h.W[0]].flavor==="widevine"; h.C||h.W.shift();dh(h)}))}}}; IS5=function(h,W,c,V){if(!h.gE()){V&&(Gc={keySystem:W.keySystem,keySystemAccess:c,N3z:JSON.stringify(V)});W.keySystemAccess=c;if(Vs(W)){c=dA();V=g.e(Object.keys(h.X[W.flavor]));for(var H=V.next();!H.done;H=V.next())H=H.value,W.X[H]=!!c.canPlayType(H)}else{c=W.keySystemAccess.getConfiguration();if(c.audioCapabilities)for(V=g.e(c.audioCapabilities),H=V.next();!H.done;H=V.next())W.X[H.value.contentType]=!0;if(c.videoCapabilities)for(c=g.e(c.videoCapabilities),V=c.next();!V.done;V=c.next())W.X[V.value.contentType]= !0}h.Y.push(W);h.useCobaltWidevine||h.j("html5_enable_vp9_fairplay")&&Hx(W)?(h.W.shift(),dh(h)):h.callback(h.Y)}}; pcN=function(h,W){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(h.j("html5_enable_vp9_fairplay")&&sd(W))return c.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),c.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[c];Vs(W)&&(c.initDataTypes=["keyids","cenc"]);for(var V=g.e(Object.keys(h.X[W.flavor])),H=V.next();!H.done;H=V.next()){H=H.value;var B=H.indexOf("audio/")===0,E=B?c.audioCapabilities:c.videoCapabilities;W.flavor!== "widevine"||h.C?E.push({contentType:H}):B?E.push({contentType:H,robustness:"SW_SECURE_CRYPTO"}):(g.Zx&&g.bW("windows nt")&&!h.j("html5_drm_enable_moho")||E.push({contentType:H,robustness:"HW_SECURE_ALL"}),B=H,h.fM.C.G&&H.includes("vp09")&&(B=H+"; experimental=allowed"),E.push({contentType:B,robustness:"SW_SECURE_DECODE"}),ZE(h.fM)==="MWEB"&&(OB()||TN())&&(h.GV("swcrypto",{}),E.push({contentType:H,robustness:"SW_SECURE_CRYPTO"})))}return[c]}; m7k=function(h){if(Wx()&&(g.G1||ox))h.Y.push(new hg("fairplay","com.apple.fps.1_0","",h.fM.experiments));else{var W=Ys4(),c=g.jl(h.W,function(V){var H=h.G[V],B=!1,E=!1,J;for(J in h.X[H.flavor])W(J,V)&&(H.X[J]=!0,B=B||J.indexOf("audio/")===0,E=E||J.indexOf("video/")===0);return B&&E}); c&&h.Y.push(h.G[c]);h.W=[]}h.callback(h.Y)}; Ys4=function(){var h=Wx();if(h){var W=h.isTypeSupported;return function(V,H){return W(H,V)}}var c=dA(); return c&&(c.addKey||c.webkitAddKey)?function(V,H){return!!c.canPlayType(V,H)}:function(){return!1}}; OIp=function(h){this.experiments=h;this.X=2048;this.Y=0;this.XI=(this.S=this.j("html5_streaming_resilience"))?.5:.25;var W=W===void 0?0:W;this.G=g.DF(this.experiments,"html5_media_time_weight_prop")||W;this.T=(this.C=this.experiments.xN("html5_consider_end_stall"))&&rh;this.W=this.experiments.xN("html5_measure_max_progress_handling");this.Z=this.j("html5_treat_requests_pre_elbow_as_metadata");this.N=this.j("html5_media_time_weight")||!!this.G;this.j("html5_sabr_live_audio_early_return_fix")&&rh&& (this.X=65536)}; Ssd=function(h,W){this.X=void 0;this.experimentIds=h?h.split(","):[];this.flags=O_(W||"","&");h={};W=g.e(this.experimentIds);for(var c=W.next();!c.done;c=W.next())h[c.value]=!0;this.experiments=h}; g.DF=function(h,W){h=h.flags[W];JSON.stringify(h);return Number(h)||0}; q8=function(h,W){return(h=h.flags[W])?h.toString():""}; ghd=function(h){if(h=h.flags.html5_web_po_experiment_ids)if(h=h.replace(/\[ *(.*?) *\]/,"$1"))return h.split(",").map(Number);return[]}; D7L=function(h){if(h.X)return h.X;if(h.experimentIds.length<=1)return h.X=h.experimentIds,h.X;var W=[].concat(g.rN(h.experimentIds)).map(function(V){return Number(V)}); W.sort();for(var c=W.length-1;c>0;--c)W[c]-=W[c-1];h.X=W.map(function(V){return V.toString()}); h.X.unshift("v1");return h.X}; knN=function(h){return wck.then(h)}; xa=function(h,W,c){this.experiments=h;this.DH=W;this.zV=c===void 0?!1:c;this.T=!!g.c2("cast.receiver.platform.canDisplayType");this.Z={};this.XI=!1;this.Y=new Map;this.S=!0;this.W=this.G=!1;this.X=new Map;this.Wk=0;this.Pk=this.experiments.xN("html5_disable_vp9_encrypted");this.C=this.experiments.xN("html5_enable_encrypted_av1");h=g.c2("cast.receiver.platform.getValue");this.N=!this.T&&h&&h("max-video-resolution-vpx")||null;hlN(this);this.G=!!(XA()&&fb()>=21)}; ylN=function(h,W,c){c=c===void 0?1:c;var V=W.itag;if(V==="0")return!0;var H=W.mimeType;if(W.eO==="1e"&&!h.C)return"dav1enc";if(CF(W)&&h.XI)return"dav1";if(W.video&&(W.video.isHdr()||W.video.primaries==="bt2020")&&!(Xs(h,tu.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(V==="338"&&!(g.Zx?jQ(53):g.Ed&&jQ(64)))return"dopus";var B=c;B=B===void 0?1: B;c={};W.video&&(W.video.width&&(c[tu.WIDTH.name]=W.video.width),W.video.height&&(c[tu.HEIGHT.name]=W.video.height),W.video.fps&&(c[tu.FRAMERATE.name]=W.video.fps*B),W.video.X&&(c[tu.EOTF.name]=W.video.X),W.Vg&&(c[tu.BITRATE.name]=W.Vg*8*B),W.eO==="("&&(c[tu.CRYPTOBLOCKFORMAT.name]="subsample"),W.video.projectionType==="EQUIRECTANGULAR"||W.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||W.video.projectionType==="MESH")&&(c[tu.DECODETOTEXTURE.name]="true");W.audio&&W.audio.numChannels&& (c[tu.CHANNELS.name]=W.audio.numChannels);h.G&&KF(W)&&(c[tu.EXPERIMENTAL.name]="allowed");B=g.e(Object.keys(tu));for(var E=B.next();!E.done;E=B.next()){E=tu[E.value];var J;if(J=c[E.name])if(J=!(E===tu.EOTF&&W.mimeType.indexOf("vp09.02")>0)){J=E;var u=W;J=!(h.experiments.xN("html5_ignore_h264_framerate_cap")&&J===tu.FRAMERATE&&y1l(u))}if(J)if(Xs(h,E))if(h.N){if(h.N[E.name] 1080&&W.k9&&(H+="; hdcp=2.2");return V==="227"?"hqcenc":V!=="585"&&V!=="588"&&V!=="583"&&V!=="586"&&V!=="584"&&V!=="587"&&V!=="591"&&V!=="592"||h.experiments.xN("html5_enable_new_hvc_enc")?XA()&&fb()>=21&&g.bW("appletv5")&&(V==="410"||V==="845")?!0:h.isTypeSupported(H)?!0:"tpus":"newhvc"}; lf=function(){var h=TN()&&!jQ(29),W=g.bW("google tv")&&g.bW("chrome")&&!jQ(30);return h||W?!1:Xnk()}; W0h=function(h,W,c){var V=480;W=g.e(W);for(var H=W.next();!H.done;H=W.next()){H=H.value;var B=H.video.qualityOrdinal;B<=1080&&B>V&&ylN(h,H,c)===!0&&(V=B)}return V}; g.nl=function(h,W){W=W===void 0?!1:W;return lf()&&h.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!W&&h.canPlayType(dA(),"application/x-mpegURL")?!0:!1}; VJL=function(h){cod(function(){for(var W=g.e(Object.keys(tu)),c=W.next();!c.done;c=W.next())Xs(h,tu[c.value])})}; Xs=function(h,W){W.name in h.Z||(h.Z[W.name]=$Xh(h,W));return h.Z[W.name]}; $Xh=function(h,W){if(h.N)return!!h.N[W.name];if(W===tu.BITRATE&&h.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!h.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(W===tu.AV1_CODECS)return h.isTypeSupported("video/mp4; codecs="+W.valid)&&!h.isTypeSupported("video/mp4; codecs="+W.CN);if(W.video){var c='video/webm; codecs="vp9"';h.isTypeSupported(c)||(c='video/mp4; codecs="avc1.4d401e"')}else c='audio/webm; codecs="opus"', h.isTypeSupported(c)||(c='audio/mp4; codecs="mp4a.40.2"');return h.isTypeSupported(c+"; "+W.name+"="+W.valid)&&!h.isTypeSupported(c+"; "+W.name+"="+W.CN)}; sO4=function(h,W){var c=0;h.Y.has(W)&&(c=h.Y.get(W).Sn);h.Y.set(W,{Sn:c+1,A_:Math.pow(2,c+1)});h.W=!0}; fB=function(h){for(var W=[],c=g.e(h.X.keys()),V=c.next();!V.done;V=c.next()){V=V.value;var H=h.X.get(V);W.push(V+"_"+H.maxWidth+"_"+H.maxHeight)}return W.join(".")}; Lrh=function(h,W){for(var c=new Map,V=g.e(h.X.keys()),H=V.next();!H.done;H=V.next()){H=H.value;var B=H.split("_")[0];W.has(B)||c.set(H,h.X.get(H))}h.X=c}; KrQ=function(h,W,c){var V,H=((V=c.video)==null?void 0:V.fps)||0;V=W+"_"+H;var B=!!c.audio,E={itag:c.itag,eO:W,Qr:B};if(B)E.numChannels=c.audio.numChannels;else{var J=c.video;E.maxWidth=J==null?void 0:J.width;E.maxHeight=J==null?void 0:J.height;E.maxFramerate=H;Xs(h,tu.BITRATE)&&(E.maxBitrateBps=c.Vg*8);E.xW=J==null?void 0:J.isHdr()}J=h.X.get(V);J?B||(c=Math.max(J.maxWidth||0,J.maxHeight||0)>Math.max(E.maxWidth||0,E.maxHeight||0)?J:E,W={itag:c.itag,eO:W,Qr:B,maxWidth:Math.max(J.maxWidth||0,E.maxWidth|| 0),maxHeight:Math.max(J.maxHeight||0,E.maxHeight||0),maxFramerate:H,xW:c.xW},Xs(h,tu.BITRATE)&&(W.maxBitrateBps=c.maxBitrateBps),h.X.set(V,W)):h.X.set(V,E)}; Ald=function(h,W,c){var V,H=((V=c.video)==null?void 0:V.fps)||0;V=W+"_"+H;var B=!!c.audio,E=h.X.get(V);a:{var J=h.X.get(V),u=!!c.audio;if(J){if(u){var d=!1;break a}var G;if(!u&&((d=c.video)==null?0:d.height)&&J.maxHeight&&J.maxHeight>=((G=c.video)==null?void 0:G.height)){d=!1;break a}}d=!0}d&&(d=c.itag,W=E?E:{itag:d,eO:W,Qr:B},B?W.numChannels=c.audio.numChannels:(B=c.video,W.maxWidth=B==null?void 0:B.width,W.maxHeight=B==null?void 0:B.height,W.maxFramerate=H,Xs(h,tu.BITRATE)&&(W.maxBitrateBps=c.Vg* 8),W.xW=B==null?void 0:B.isHdr()),h.X.set(V,W))}; hlN=function(h){var W;(W=navigator.mediaCapabilities)!=null&&W.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(c){c.smooth&&c.powerEfficient&&(h.Wk=2160)})}; jN=function(){g.h1.call(this);this.items={}}; a9=function(h,W){this.X=h;this.cipher=this.X.exports.AES128CTRCipher_create(W.byteOffset)}; zc=function(){this.W=this.Kf=0;this.X=Array.from({length:eN.length}).fill(0)}; H8N=function(){}; Bkv=function(){this.startTimeMs=(0,g.aC)();this.X=!1}; Ec4=function(){this.X=new H8N}; RlN=function(h,W,c,V){V=V===void 0?1:V;c>=0&&(W in h.X||(h.X[W]=new zc),h.X[W].rA(c,V))}; Joh=function(h,W,c,V,H){var B=(0,g.aC)(),E=H?H(W):void 0,J;H=(J=E==null?void 0:E.Kf)!=null?J:1;if(H!==0){var u;J=(u=E==null?void 0:E.profile)!=null?u:c;RlN(h,J,B-V,H)}return W}; uqU=function(h,W,c,V,H){if(W&&typeof W==="object"){var B=function(E){return Joh(h,E,c,V,H)}; if(za(W))return W.then(B);if(eo(W))return Ax(W,B)}return Joh(h,W,c,V,H)}; dX4=function(){}; roN=function(h,W){return C0(G5l,function(){var c=this;return function H(){var B,E,J;return Xl(H,function(u){switch(u.W){case 1:g.LU(u,2);if(!c.Y)throw"wasm.ps.ns";B=h;E=vd;return eD(u,M1(Z8h(c,W)),4);case 4:J=E(u.X);if(!J)throw"wasm.ps.um";try{return u.return(new WebAssembly.Instance(J,B))}catch(d){}return eD(u,M1(WebAssembly.instantiate(J,B)),5);case 5:return u.return(u.X);case 2:g.Pd(u),g.bT(u,0)}})}()})}; qRN=function(h,W){h.X||(h.X=Ax(im(function(){return fetch(W)}),function(c){return c.arrayBuffer()}),Uf(h.X,function(c){h.X=void 0; throw"wasm.ps.f: "+c;}))}; Z8h=function(h,W){if(h.W)return h.W;h.W=xXk(h,W);Uf(h.W,function(c){h.W=void 0;throw"wasm.ps.c: "+c;}); return h.W}; xXk=function(h,W){return C0(h,function(){var c=this;return function H(){var B,E,J,u,d,G,Z,r,q,x,z,L,M,U;return Xl(H,function(y){switch(y.W){case 1:g.LU(y,2);B=[];E=window.ywc;if(!E){y.bB(4);break}J=E[W];if(!J){y.bB(4);break}if(J.mod)return y.return(J.mod);if(!J.modP){y.bB(6);break}g.Qp(y,7);u=vd;return eD(y,M1(J.modP),9);case 9:return y.return(u(y.X));case 7:g.CU(y),B.unshift("pcm");case 6:if(J.bin){c.X=Qg(J.bin);y.bB(4);break}if(!J.binP){y.bB(4);break}g.Qp(y,12);d=aq;G=Qg;Z=vd;return eD(y,M1(J.binP), 14);case 14:c.X=G.call(d,Z(y.X));g.AN(y,4);break;case 12:g.CU(y),c.X=void 0,B.unshift("pfb");case 4:if(!c.X){y.bB(15);break}g.Qp(y,16);r=vd;return eD(y,M1(c.X),18);case 18:q=r(y.X);if(c.G)try{return y.return(new WebAssembly.Module(q))}catch(T){c.G=!1,B.unshift("f0cs")}x=vd;return eD(y,M1(WebAssembly.compile(q)),19);case 19:return y.return(x(y.X));case 16:g.CU(y),c.X=void 0,B.unshift("f0ca");case 15:return g.Qp(y,20),qRN(c,W),z=vd,eD(y,M1(c.X),22);case 22:L=z(y.X);if(c.G)try{return y.return(new WebAssembly.Module(L))}catch(T){c.G= !1,B.unshift("f1cs")}M=vd;return eD(y,M1(WebAssembly.compile(L)),23);case 23:return y.return(M(y.X));case 20:U=g.CU(y),c.X=void 0,c.Y=!1,B.unshift("f1ca: "+U);case 21:throw"["+B.map(function(T){return'"'+T+'"'}).join(", ")+"]"; case 2:g.Pd(y),g.bT(y,0)}})}()})}; lNT=function(){}; ncp=function(){var h=this;this.proc_exit=function(){}; this.fd_write=function(W,c,V){if(!h.exports)return 1;W=new Uint32Array(h.exports.memory.buffer,c,V*2);c=[];for(var H=0;H0)W=h.byterate,this.XI=!0;else{var V; c=(((V=navigator.connection)==null?void 0:V.downlink)||0)*64*1024;c>0&&(W=c,this.XI=!0)}this.G.c5(this.policy.N,W);h.delay>0&&this.Z.c5(1,Math.min(h.delay,2));h.stall>0&&this.S.c5(1,h.stall);h.init>0&&(this.Nn=Math.min(h.init,this.Nn));h.interruptions&&(this.Y=this.Y.concat(h.interruptions),this.Y.length>16&&this.Y.pop());this.Wk=(0,g.aC)();this.policy.S>0&&(this.CM=new g.oD(this.yg,this.policy.S,this),g.X(this,this.CM),this.CM.start())}; Tc=function(h,W,c,V){h.G.c5(V===void 0?W:V,c/W);h.N=(0,g.aC)()}; K0N=function(h){h.C||(h.C=(0,g.aC)());h.policy.T&&(h.N=(0,g.aC)())}; AoU=function(h,W){if(h.C){var c=W-h.C;if(c<6E4){if(c>1E3){var V=h.interruptions;V.push(Math.ceil(c));V.sort(function(H,B){return B-H}); V.length>16&&V.pop()}h.DH+=c}}h.C=W}; N8=function(h,W,c,V,H,B){B=B===void 0?!1:B;h.mW.c5(W,c/W);h.N=(0,g.aC)();H||h.T.c5(1,W-V);B||(h.C=0);h.Wk>-1&&(0,g.aC)()-h.Wk>3E4&&UXd(h)}; X8=function(h,W,c){W=Math.max(W,h.W.X);h.S.c5(1,c/W)}; tg=function(h){h=h.Z.Jt()+h.zV.Jt()||0;h=isNaN(h)?.5:h;return h=Math.min(h,5)}; vx=function(h,W,c){isNaN(c)||(h.Pk+=c);isNaN(W)||(h.Rz+=W)}; mI=function(h){h=h.G.Jt();return h>0?h:1}; o9=function(h,W,c){W=W===void 0?!1:W;c=c===void 0?1048576:c;var V=mI(h);V=1/((h.S.Jt()||0)*h.policy.XI+1/V);var H=h.mW.Jt();H=H>0?H:1;var B=Math.max(V,H);h.policy.C>0&&H=4E3}; MJL=function(h){this.experiments=h;this.X=17;this.G=13E4;this.N=.5;this.Y=this.W=!1;this.Wk=this.j("html5_use_histogram_for_bandwidth");this.C=g.DF(this.experiments,"html5_auxiliary_estimate_weight");this.XI=g.DF(this.experiments,"html5_stall_factor")||1;this.S=g.DF(this.experiments,"html5_check_for_idle_network_interval_ms");this.Z=this.experiments.xN("html5_trigger_loader_when_idle_network");this.T=this.experiments.xN("html5_sabr_fetch_on_idle_network_preloaded_players")}; yoU=function(h,W){h=h===void 0?{}:h;W=W===void 0?{}:W;g.N.call(this);var c=this;this.values=h;this.QF=W;this.W={};this.G=this.X=0;this.Y=new g.oD(function(){F04(c)},1E4); g.X(this,this.Y)}; I9=function(h,W){PbD(h,W);return h.values[W]&&h.QF[W]?h.values[W]/Math.pow(2,h.X/h.QF[W]):0}; PbD=function(h,W){h.values[W]||(W=h6T(),h.values=W.values||{},h.QF=W.halfLives||{},h.W=W.values?Object.assign({},W.values):{})}; F04=function(h){var W=h6T();if(W.values){W=W.values;for(var c={},V=g.e(Object.keys(h.values)),H=V.next();!H.done;H=V.next())H=H.value,W[H]&&h.W[H]&&(h.values[H]+=W[H]-h.W[H]),c[H]=I9(h,H);h.W=c}W=h.QF;c={};c.values=h.W;c.halfLives=W;g.iL("yt-player-memory",c,2592E3)}; uo=function(h,W,c,V,H){g.N.call(this);this.webPlayerContextConfig=W;this.dA=V;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.hG=this.uW=this.q$=this.Tj=this.userDisplayName=this.userDisplayImage=this.CG="";this.X={};this.hI={};this.controlsType="0";this.fR=NaN;this.Mn=!1;this.H9=(0,g.aC)();this.lW=0;this.h2=this.vj=!1;this.Er=!0;this.preferGapless=this.ut=this.Ns=this.G=this.Lj=!1;this.St=[];this.nj=!1;this.d6=0;h=h?g.qx(h):{};W&&W.csiPageType&&(this.csiPageType=W.csiPageType);W&&W.csiServiceName&& (this.csiServiceName=W.csiServiceName);W&&W.preferGapless&&(this.preferGapless=W.preferGapless);this.experiments=new Ssd(W?W.serializedExperimentIds:h.fexp,W?W.serializedExperimentFlags:h.fflags);this.forcedExperiments=W?W.serializedForcedExperimentIds:hP("",h.forced_experiments)||void 0;this.cspNonce=(W==null?0:W.cspNonce)?W.cspNonce:hP("",h.csp_nonce);this.j("web_player_deprecated_uvr_killswitch");try{var B=document.location.toString()}catch(Bd){B=""}this.d3=B;this.ancestorOrigins=(V=window.location.ancestorOrigins)? Array.from(V):[];this.Y=DX(!1,W?W.isEmbed:h.is_embed);if(W&&W.device){if(V=W.device,V.androidOsExperience&&(this.X.caoe=""+V.androidOsExperience),V.androidPlayServicesVersion&&(this.X.capsv=""+V.androidPlayServicesVersion),V.brand&&(this.X.cbrand=V.brand),V.browser&&(this.X.cbr=V.browser),V.browserVersion&&(this.X.cbrver=V.browserVersion),V.cobaltReleaseVehicle&&(this.X.ccrv=""+V.cobaltReleaseVehicle),this.X.c=V.interfaceName||"WEB",this.X.cver=V.interfaceVersion||"html5",V.interfaceTheme&&(this.X.ctheme= V.interfaceTheme),this.X.cplayer=V.interfacePlayerType||"UNIPLAYER",V.model&&(this.X.cmodel=V.model),V.network&&(this.X.cnetwork=V.network),V.os&&(this.X.cos=V.os),V.osVersion&&(this.X.cosver=V.osVersion),V.platform&&(this.X.cplatform=V.platform),B=q8(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),B==="all"||B==="once")V.chipset&&(this.hI.cchip=V.chipset),V.cobaltAppVersion&&(this.hI.ccappver=V.cobaltAppVersion),V.firmwareVersion&&(this.hI.cfrmver=V.firmwareVersion),V.deviceYear&&(this.hI.crqyear= V.deviceYear)}else this.X.c=h.c||"web",this.X.cver=h.cver||"html5",this.X.cplayer="UNIPLAYER";this.loaderUrl=W?this.Y||fN5(this)&&W.loaderUrl?W.loaderUrl||"":this.d3:this.Y||fN5(this)&&h.loaderUrl?hP("",h.loaderUrl):this.d3;this.Y&&g.hS("yt.embedded_player.embed_url",this.loaderUrl);this.Z=fm(this.loaderUrl,b8Q);V=this.loaderUrl;var E=E===void 0?!1:E;this.wJ=PH(fm(V,Tkv),V,E,"Trusted Ad Domain URL");this.U5=DX(!1,h.privembed);this.protocol=this.d3.indexOf("http:")===0?"http":"https";this.Cw=r5T((W? W.customBaseYoutubeUrl:h.BASE_YT_URL)||"")||r5T(this.d3)||this.protocol+"://www.youtube.com/";E=W?W.eventLabel:h.el;V="detailpage";E==="adunit"?V=this.Y?"embedded":"detailpage":E==="embedded"||this.Z?V=wJ(V,E,Nk7):E&&(V="embedded");this.zV=V;C$v();E=null;V=W?W.playerStyle:h.ps;B=g.el(XSl,V);!V||B&&!this.Z||(E=V);this.playerStyle=E;this.N=g.el(XSl,this.playerStyle);this.houseBrandUserStatus=W==null?void 0:W.houseBrandUserStatus;this.Wk=this.N&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.A0=!this.Wk;this.CM=DX(!1,h.disableplaybackui);this.disablePaidContentOverlay=DX(!1,W==null?void 0:W.disablePaidContentOverlay);this.disableSeek=DX(!1,W==null?void 0:W.disableSeek);this.enableSpeedOptions=(W==null?void 0:W.enableSpeedOptions)||(dA().defaultPlaybackRate?Ya||g.Y2||Od?g.Ed&&jQ("20")||g.Zx&&jQ("4")||g.SN&&jQ("11")||mf():!(g.SN&&!g.bW("chrome")||Ya||g.bW("android")||g.bW("silk")):!1);this.b$=DX(!1,h.enable_faster_speeds);var J;this.supportsVarispeedExtendedFeatures=(J=W==null?void 0: W.supportsVarispeedExtendedFeatures)!=null?J:!1;this.W=DX(this.playerStyle==="blazer",h.is_html5_mobile_device||W&&W.isMobileDevice);this.Rz=Ix()||OB();this.T3=this.j("mweb_allow_background_playback")?!1:this.W&&!this.N;this.mW=xT();this.xg=g.gh;var u;this.lG=!!(W==null?0:(u=W.embedsHostFlags)==null?0:u.optOutApiDeprecation);var d;W?W.hideInfo!==void 0&&(d=!W.hideInfo):d=h.showinfo;this.X6=g.DE(this)&&!this.lG||DX(!wh(this)&&!ka(this)&&!this.N,d);this.u8=W?!!W.mobileIphoneSupportsInlinePlayback:DX(!1, h.playsinline);J=this.W&&h0&&WF!=null&&WF>0&&WF<=2.3;u=W?W.useNativeControls:h.use_native_controls;this.S=g.DE(this)&&this.W;d=this.W&&!this.S;u=g.cF(this)||!J&&DX(d,u)?"3":"1";this.disableOrganicUi=!(W==null||!W.disableOrganicUi);d=W?W.controlsType:h.controls;this.controlsType=this.disableOrganicUi||d==="0"||d===0?"0":u;this.VX=this.W;this.color=wJ("red",W?W.progressBarColor:h.color,tJ7);this.o4=this.controlsType==="3";this.Sx=!this.Y;this.Wp=(u=!this.Sx&&!ka(this)&&!this.Wk&&!this.N&&!wh(this))&& !this.o4&&this.controlsType==="1";this.iX=g.Vf(this)&&u&&this.controlsType==="0"&&!this.Wp&&!(W==null?0:W.embedsEnableEmc3ds);this.EG=this.nt=J;this.RR=(this.controlsType==="3"||this.W||DX(!1,h.use_media_volume))&&!this.S;this.aO=ox&&!g.tk(601)?!1:!0;this.IL=this.Y||!1;this.Zn=ka(this)?"":(this.loaderUrl||h.post_message_origin||"").substring(0,128);this.widgetReferrer=hP("",W?W.widgetReferrer:h.widget_referrer);var G;W?W.disableCastApi&&(G=!1):G=h.enablecastapi;G=!this.Z||DX(!0,G);J=!0;W&&W.disableMdxCast&& (J=!1);this.rV=this.j("enable_cast_for_web_unplugged")&&g.$X(this)&&J||g.CV(this)&&J||G&&J&&this.controlsType==="1"&&!this.W&&(ka(this)||g.Vf(this)||g.sa(this));this.eb=!!window.document.pictureInPictureEnabled||qQ();G=W?!!W.supportsAutoplayOverride:DX(!1,h.autoplayoverride);this.lJ=!(this.W&&!g.DE(this))&&!g.bW("nintendo wiiu")||G;this.uC=(W?!!W.enableMutedAutoplay:DX(!1,h.mutedautoplay))&&!1;G=(ka(this)||wh(this))&&this.playerStyle==="blazer";this.yX=W?!!W.disableFullscreen:!DX(!0,h.fs);J=g.$k(g.HF(this))&& g.DE(this);this.Ak=!this.yX&&(G||g.uL())&&!J;this.Nf=this.j("html5_picture_in_picture_logging_onresize");var Z;this.HU=(Z=g.DF(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?Z:.33;this.Xt=this.j("html5_picture_in_picture_blocking_onresize");this.Oq=this.j("html5_picture_in_picture_blocking_ontimeupdate");this.QK=this.j("html5_picture_in_picture_blocking_document_fullscreen");this.wK=this.j("html5_picture_in_picture_blocking_standard_api");Z=TN()&&jQ(58)&&!OB();G=tZ||typeof MediaSource=== "undefined";this.TA=this.j("uniplayer_block_pip")&&(Z||G)||this.Xt||this.Oq||this.wK;Z=g.DE(this)&&!this.lG;var r;W?W.disableRelatedVideos!==void 0&&(r=!W.disableRelatedVideos):r=h.rel;this.U8=Z||DX(!this.N,r);this.Bh=DX(!1,W?W.enableContentOwnerRelatedVideos:h.co_rel);this.T=OB()&&WF>0&&WF<=4.4?"_top":"_blank";this.tE=g.sa(this);this.eX=DX(this.playerStyle==="blazer",W?W.enableCsiLogging:h.enablecsi);switch(this.playerStyle){case "blogger":r="bl";break;case "gmail":r="gm";break;case "gac":r="ga"; break;case "ads-preview":r="ap";break;case "books":r="gb";break;case "docs":case "flix":r="gd";break;case "duo":r="gu";break;case "google-live":r="gl";break;case "google-one":r="go";break;case "play":case "play-ads":r="gp";break;case "chat":r="hc";break;case "hangouts-meet":r="hm";break;case "photos-edu":case "picasaweb":r="pw";break;default:r="yt"}this.XI=r;this.Pk=hP("",W?W.authorizedUserIndex:h.authuser);this.qU=g.DE(this)&&(this.U5||!nQv()||this.Rz);var q;W?W.disableWatchLater!==void 0&&(q=!W.disableWatchLater): q=h.showwatchlater;this.Uy=((r=!this.qU)||!!this.Pk&&r)&&DX(!this.Wk,this.Z?q:void 0);this.BV=W?W.isMobileDevice||!!W.disableKeyboardControls:DX(!1,h.disablekb);this.loop=DX(!1,h.loop);this.pageId=hP("",W?W.initialDelegatedSessionId:h.pageid);this.MS=DX(!0,h.canplaylive);q=g.DF(this.experiments,"html5_default_audio_quality_setting_lr");var x;this.lP=(x=vc7[vc7[q]])!=null?x:0;this.Ef=DX(!1,h.livemonitor);this.disableSharing=DX(this.N,W?W.disableSharing:h.ss);(x=W&&this.j("fill_video_container_size_override_from_wpcc")? W.videoContainerOverride:h.video_container_override)?(q=x.split("x"),q.length!==2?x=null:(x=Number(q[0]),q=Number(q[1]),x=isNaN(x)||isNaN(q)||x*q<=0?null:new g.Yu(x,q))):x=null;this.GP=x;this.mute=W?!!W.startMuted:DX(!1,h.mute);this.storeUserVolume=!this.mute&&DX(this.controlsType!=="0",W?W.storeUserVolume:h.store_user_volume);x=W?W.annotationsLoadPolicy:h.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:wJ(void 0,x,BF);this.captionsLanguagePreference=W?W.captionsLanguagePreference|| "":hP("",h.cc_lang_pref);x=wJ(2,W?W.captionsLanguageLoadPolicy:h.cc_load_policy,BF);this.controlsType==="3"&&x===2&&(x=3);this.Vz=x;this.Tx=W?W.hl||"en_US":hP("en_US",h.hl);this.region=W?W.contentRegion||"US":hP("US",h.cr);this.hostLanguage=W?W.hostLanguage||"en":hP("en",h.host_language);this.fn=!this.U5&&Math.random()=480;this.schedule=new bf(Z,new OIp(this.experiments),H);g.X(this,this.schedule);var z;this.enableSafetyMode=(z=W==null?void 0:W.initialEnableSafetyMode)!=null?z:DX(!1,h.enable_safety_mode);H=this.CM?!1:ka(this)&&this.playerStyle!== "blazer";var L;W?W.disableAutonav!=null&&(L=!W.disableAutonav):L=h.allow_autonav;this.hq=DX(H,!this.Wk&&L);this.sendVisitorIdHeader=W?!!W.sendVisitorIdHeader:DX(!1,h.send_visitor_id_header);var M;this.playerStyle==="docs"&&(W?M=W.disableNativeContextMenu:M=h.disable_native_context_menu);this.disableNativeContextMenu=DX(!1,M);this.Cn=J$(this)&&this.j("enable_skip_intro_button");this.embedConfig=hP("",W?W.serializedEmbedConfig:h.embed_config);this.DH=VY(h,g.DE(this));this.G=this.DH==="EMBEDDED_PLAYER_MODE_PFL"; this.embedsErrorLinks=!(W==null||!W.embedsErrorLinks);this.ID=DX(!1,h.full_window);var U;this.Jk=!((U=this.webPlayerContextConfig)==null?0:U.chromeless);var y;this.livingRoomAppMode=wJ("LIVING_ROOM_APP_MODE_UNSPECIFIED",h.living_room_app_mode||(W==null?void 0:(y=W.device)==null?void 0:y.livingRoomAppMode),pS7);var T;L=k2(NaN,W==null?void 0:(T=W.device)==null?void 0:T.deviceYear);isNaN(L)||(this.deviceYear=L);this.transparentBackground=W?!!W.transparentBackground:DX(!1,h.transparent_background);this.showMiniplayerButton= W?!!W.showMiniplayerButton:DX(!1,h.show_miniplayer_button);var m;g.DE(this)&&!(W==null?0:(m=W.embedsHostFlags)==null?0:m.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=W?!!W.externalFullscreen:DX(!1,h.external_fullscreen);this.showMiniplayerUiWhenMinimized=W?!!W.showMiniplayerUiWhenMinimized:DX(!1,h.use_miniplayer_ui);var D;this.Er=(D=h.show_loop_video_toggle)!=null?D:!0;this.Qm=Math.random()<1E-4;if(h.onesie_hot_config||(W==null?0:W.onesieHotConfig))this.bX=new L0N(h.onesie_hot_config, W==null?void 0:W.onesieHotConfig),g.X(this,this.bX);this.isTectonic=W?!!W.isTectonic:!!h.isTectonic;this.playerCanaryState=c;this.playerCanaryStage=W==null?void 0:W.canaryStage;this.Qj=new yoU;g.X(this,this.Qj);this.datasyncId=(W==null?void 0:W.datasyncId)||g.X_("DATASYNC_ID");this.pg=g.X_("LOGGED_IN",!1);this.Gu=(W==null?void 0:W.allowWoffleManagement)||!1;this.BR=Infinity;this.Em=NaN;this.livingRoomPoTokenId=W==null?void 0:W.livingRoomPoTokenId;this.j("html5_high_res_logging_always")?this.Ns=!0: this.Ns=Math.random()*100=0&&h0&&h.Qm&&(V.sort(),g.Lx(new g.tP("Player client parameters changed after startup",V)));h.userAge=k2(h.userAge,W.user_age);h.CG=hP(h.CG,W.user_display_email);h.userDisplayImage=hP(h.userDisplayImage,W.user_display_image);g.Tk(h.userDisplayImage)||(h.userDisplayImage= "");h.userDisplayName=hP(h.userDisplayName,W.user_display_name);h.Tj=hP(h.Tj,W.user_gender);h.csiPageType=hP(h.csiPageType,W.csi_page_type);h.csiServiceName=hP(h.csiServiceName,W.csi_service_name);h.eX=DX(h.eX,W.enablecsi);h.pageId=hP(h.pageId,W.pageid);if(c=W.enabled_engage_types)h.enabledEngageTypes=new Set(c.split(","));W.living_room_session_po_token&&(h.mF=W.living_room_session_po_token.toString())}; du=function(h,W){return!h.N&&TN()&&jQ(55)&&h.controlsType==="3"&&!W}; g.GJ=function(h){h=Ea(h.Cw);return h==="www.youtube-nocookie.com"?"www.youtube.com":h}; Zv=function(h,W,c){return h.protocol+"://i1.ytimg.com/vi/"+W+"/"+(c||"hqdefault.jpg")}; ru=function(h){return ka(h)&&!g.$X(h)}; g.cF=function(h){return h.j("html5_local_playsinline")?ox&&!g.tk(602)&&!("playsInline"in dA()):ox&&!h.u8||g.bW("nintendo wiiu")?!0:!1}; ZE=function(h){return h.X.c}; g.uJ=function(h){return/^TVHTML5/.test(ZE(h))}; g.qc=function(h){return ZE(h)==="TVHTML5"}; fN5=function(h){return ZE(h)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; ocD=function(h){return h.X.cmodel==="CHROMECAST ULTRA/STEAK"||h.X.cmodel==="CHROMECAST/STEAK"}; g.xX=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; J$=function(h){return/web/i.test(ZE(h))}; g.lo=function(h){return ZE(h).toUpperCase()==="WEB"}; J0=function(h){return ZE(h)==="WEB_KIDS"}; g.$X=function(h){return ZE(h)==="WEB_UNPLUGGED"}; ny=function(h){return ZE(h)==="TVHTML5_UNPLUGGED"}; g.Rm=function(h){return g.$X(h)||ZE(h)==="TV_UNPLUGGED_CAST"||ny(h)}; g.CV=function(h){return ZE(h)==="WEB_REMIX"}; g.jz=function(h){return ZE(h)==="WEB_MUSIC_INTEGRATIONS"}; g.aa=function(h){return ZE(h)==="WEB_EMBEDDED_PLAYER"}; g.zJ=function(h){return(h.deviceIsAudioOnly||!g.Zx||tZ||h.controlsType==="3"?!1:g.Y2?h.Y&&g.tk(51):!0)||(h.deviceIsAudioOnly||!g.Ed||tZ||h.controlsType==="3"?!1:g.Y2?h.Y&&g.tk(48):g.tk(38))||(h.deviceIsAudioOnly||!g.SN||tZ||h.controlsType==="3"?!1:g.Y2?h.Y&&g.tk(37):g.tk(27))||!h.deviceIsAudioOnly&&g.ez&&!Q_h()&&g.tk(11)||!h.deviceIsAudioOnly&&g.G1&&g.tk("604.4")}; O84=function(h){if(g.Vf(h)&&h0)return!1;if(g.Ed){if(!g.tk(47)||!g.tk(52)&&g.tk(51))return!1}else if(g.G1)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; gcU=function(h,W){return h.enabledEngageTypes.has(W.toString())||SRU.includes(W)}; ka=function(h){return h.zV==="detailpage"}; g.Vf=function(h){return h.zV==="embedded"}; Qf=function(h){return h.zV==="leanback"}; wh=function(h){return h.zV==="adunit"||h.playerStyle==="gvn"}; g.sa=function(h){return h.zV==="profilepage"}; g.DE=function(h){return h.Y&&g.Vf(h)&&!wh(h)&&!h.N}; Ly=function(h){if(!h.userDisplayImage)return"";var W=h.userDisplayImage.split("/");if(W.length===5)return h=W[W.length-1].split("="),h[1]="s20-c",W[W.length-1]=h.join("="),W.join("/");if(W.length===8)return W.splice(7,0,"s20-c"),W.join("/");if(W.length===9)return W[7]+="-s20-c",W.join("/");g.Lx(new g.tP("Profile image not a FIFE URL.",h.userDisplayImage));return h.userDisplayImage}; g.io=function(h){var W=g.GJ(h);DX5.includes(W)&&(W="www.youtube.com");return h.protocol+"://"+W}; g.Ky=function(h,W){W=W===void 0?"":W;if(h.dA){var c=new d4,V,H=h.dA();H.signedOut?V="":H.token?V=H.token:H.pendingResult.then(function(B){H.signedOut?c.resolve(""):c.resolve(B.token)},function(B){g.Lx(new g.tP("b189348328_oauth_callback_failed",{error:B})); c.resolve(W)}); return V!==void 0?iW(V):new Qn(c)}return iW(W)}; A0=function(h,W){W=W===void 0?"":W;return h.pg?Qg(!0):Uf(Ax(Qg(g.Ky(h,W)),function(c){return Qg(!!c)}),function(){return Qg(!1)})}; wSD=function(h,W){W==null||Ax(W,function(c){h.Ah=c;var V,H;(V=h.bX)!=null&&(H=V.X)!=null&&(H.X=new Ag(c,H.W,H.G),g.X(H,H.X))})}; Ea=function(h){var W=g.E6(h);return(h=Number(g.BA(h)[4]||null)||null)?W+":"+h:W}; Ua=function(h,W){W=W===void 0?!1:W;var c=LF[h],V=k5d[c],H=hJU[h];if(!H||!V)return null;W=new ed(W?H.height:H.width,W?H.width:H.height,H.fps);V=fv(V,W,c);return new iX(h,V,{video:W,Vg:H.bitrate/8})}; c94=function(h){var W=k5d[LF[h]],c=WEL[h];return c&&W?new iX(h,W,{audio:new nF(c.audioSampleRate,c.numChannels)}):null}; Cy=function(h){this.X=h}; Mc=function(h,W,c,V){if(c)return Lb();c={};var H=dA();W=g.e(W);for(var B=W.next();!B.done;B=W.next())if(B=B.value,h.canPlayType(H,B.getInfo().mimeType)||V){var E=B.X.video.quality;if(!c[E]||c[E].getInfo().Aq())c[E]=B}h=[];c.auto&&h.push(c.auto);V=g.e(zW);for(H=V.next();!H.done;H=V.next())(H=c[H.value])&&h.push(H);return h.length?iW(h):Lb()}; VTk=function(h){this.itag=h.itag;this.url=h.url;this.codecs=h.codecs;this.width=h.width;this.height=h.height;this.fps=h.fps;this.bitrate=h.bitrate;var W;this.W=((W=h.audioItag)==null?void 0:W.split(","))||[];this.FL=h.FL;this.k9=h.k9||"";this.iW=h.iW;this.audioChannels=h.audioChannels;this.X=""}; $Z4=function(h,W,c,V){W=W===void 0?!1:W;c=c===void 0?!0:c;V=V===void 0?{}:V;var H={};h=g.e(h);for(var B=h.next();!B.done;B=h.next()){B=B.value;if(W&&MediaSource&&MediaSource.isTypeSupported){var E=B.type;B.audio_channels&&(E=E+"; channels="+B.audio_channels);if(!MediaSource.isTypeSupported(E)){V[B.itag]="tpus";continue}}if(c||!B.drm_families||B.eotf!=="smpte2084"&&B.eotf!=="arib-std-b67"){E=void 0;var J={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},u=B.type.match(/codecs="([^"]*)"/); u=u?u[1]:"";B.audio_track_id&&(E=new g.Uj(B.name,B.audio_track_id,!!B.is_default));var d=B.eotf;B=new VTk({itag:B.itag,url:B.url,codecs:u,width:Number(B.width),height:Number(B.height),fps:Number(B.fps),bitrate:Number(B.bitrate),audioItag:B.audio_itag,FL:d?J[d]:void 0,k9:B.drm_families,iW:E,audioChannels:Number(B.audio_channels)});H[B.itag]=H[B.itag]||[];H[B.itag].push(B)}else V[B.itag]="enchdr"}return H}; scp=function(h,W,c,V,H){this.G=h;this.W=W;this.C=c;this.cpn=V;this.N=H;this.Y=0;this.X=""}; HaT=function(h,W){h.G.some(function(c){var V;return((V=c.iW)==null?void 0:V.getId())===W}); h.X=W}; FY=function(h,W,c){h.cpn&&(W=g.r0(W,{cpn:h.cpn}));c&&(W=g.r0(W,{paired:c}));return W}; BVD=function(h,W){h=h.itag.toString();W!==null&&(h+=W.itag.toString());return h}; Etp=function(h){for(var W=[],c=[],V=g.e(h.W),H=V.next();!H.done;H=V.next())H=H.value,H.bitrate<=h.Y?W.push(H):c.push(H);W.sort(function(B,E){return E.bitrate-B.bitrate}); c.sort(function(B,E){return B.bitrate-E.bitrate}); h.W=W.concat(c)}; yf=function(h,W,c){this.X=h;this.W=W;this.expiration=c;this.bW=null}; RJk=function(h,W){if(!(tZ||vf()||XA()))return null;h=$Z4(W,h.j("html5_filter_fmp4_in_hls"));if(!h)return null;W=[];for(var c={},V=g.e(Object.keys(h)),H=V.next();!H.done;H=V.next()){H=g.e(h[H.value]);for(var B=H.next();!B.done;B=H.next()){var E=B.value;E.iW&&(B=E.iW.getId(),c[B]||(E=new g.a7(B,E.iW),c[B]=E,W.push(E)))}}return W.length>0?W:null}; ZaN=function(h,W,c,V,H,B,E){if(!(tZ||vf()||XA()))return Lb();var J={},u=J9Q(c),d=$Z4(c,h.j("html5_filter_fmp4_in_hls"),h.C.S,J);if(!d)return E({noplst:1}),Lb();uUL(d);c={};var G=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),Z;c=[];var r=[],q=[],x=null,z="";V=V&&V.match(/hls_timedtext_playlist/)?new VTk({itag:"0",url:V,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,iW:new g.Uj("English","en",!1)}):null;for(var L=g.e(Object.keys(d)),M=L.next();!M.done;M=L.next())if(M=M.value,!h.j("html5_disable_drm_hfr_1080")|| M!=="383"&&M!=="373"){M=g.e(d[M]);for(var U=M.next();!U.done;U=M.next())if(U=U.value,U.width){for(var y=g.e(U.W),T=y.next();!T.done;T=y.next())if(T=T.value,d[T]){U.X=T;break}U.X||(U.X=dZh(d,U));if(y=d[U.X])if(c.push(U),U.k9==="fairplay"&&(Z=G),T="",U.FL==="PQ"?T="smpte2084":U.FL==="HLG"&&(T="arib-std-b67"),T&&(z=T),q.push(GGT(y,[U],V,B,U.itag,U.width,U.height,U.fps,u,void 0,void 0,Z,T)),!x||U.width*U.height*U.fps>x.width*x.height*x.fps)x=U}else r.push(U)}else J[M]="disdrmhfr";q.reduce(function(m, D){return D.getInfo().isEncrypted()&&m},!0)&&(Z=G); H=Math.max(H,0);G=x||{};d=G.fps===void 0?0:G.fps;x=G.width===void 0?0:G.width;G=G.height===void 0?0:G.height;L=h.j("html5_native_audio_track_switching");q.push(GGT(r,c,V,B,"93",x,G,d,u,"auto",H,Z,z,L));Object.entries(J).length&&E(J);return Mc(h.C,q,du(h,W),!1)}; GGT=function(h,W,c,V,H,B,E,J,u,d,G,Z,r,q){for(var x=0,z="",L=g.e(h),M=L.next();!M.done;M=L.next())M=M.value,z||(z=M.itag),M.audioChannels&&M.audioChannels>x&&(x=M.audioChannels,z=M.itag);H=new iX(H,"application/x-mpegURL",{audio:new nF(0,x),video:new ed(B,E,J,null,void 0,d,void 0,r),k9:Z,Yo:z});h=new scp(h,W,c?[c]:[],V,!!q);h.Y=G?G:1369843;return new yf(H,h,u)}; J9Q=function(h){h=g.e(h);for(var W=h.next();!W.done;W=h.next())if(W=W.value,W.url&&(W=W.url.split("expire/"),!(W.length<=1)))return+W[1].split("/")[0];return NaN}; dZh=function(h,W){for(var c=g.e(Object.keys(h)),V=c.next();!V.done;V=c.next()){V=V.value;var H=h[V][0];if(!H.width&&H.k9===W.k9&&!H.audioChannels)return V}return""}; uUL=function(h){for(var W=new Set,c=g.e(Object.values(h)),V=c.next();!V.done;V=c.next())V=V.value,V.length&&(V=V[0],V.height&&V.codecs.startsWith("vp09")&&W.add(V.height));c=[];if(W.size){V=g.e(Object.keys(h));for(var H=V.next();!H.done;H=V.next())if(H=H.value,h[H].length){var B=h[H][0];B.height&&W.has(B.height)&&!B.codecs.startsWith("vp09")&&c.push(H)}}W=g.e(c);for(c=W.next();!c.done;c=W.next())delete h[c.value]}; PF=function(h,W){this.X=h;this.W=W}; r97=function(h,W,c,V){var H=[];c=g.e(c);for(var B=c.next();!B.done;B=c.next()){var E=B.value;if(E.url){B=new g.vb(E.url,!0);if(E.s){var J=B,u=E.sp,d=OAp(decodeURIComponent(E.s));J[R[30]](u,encodeURIComponent(d))}J=g.e(Object.keys(V));for(u=J.next();!u.done;u=J.next())u=u.value,B.set(u,V[u]);E=tp(E.type,E.quality,E.itag,E.width,E.height);H.push(new PF(E,B))}}return Mc(h.C,H,du(h,W),!1)}; fy=function(h,W){this.X=h;this.W=W}; qiT=function(h,W,c){var V=[];c=g.e(c);for(var H=c.next();!H.done;H=c.next())if((H=H.value)&&H.url){var B=tp(H.type,"medium","0");V.push(new fy(B,H.url))}return Mc(h.C,V,du(h,W),!1)}; xZp=function(h,W){var c=[],V=tp(W.type,"auto",W.itag);c.push(new fy(V,W.url));return Mc(h.C,c,!1,!0)}; nt5=function(h){return h&&lJ5[h]?lJ5[h]:null}; jcN=function(h){switch(h){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 h;default:return"sabr.config"}}; aJv=function(h){if(h=h.commonConfig)this.url=h.url,this.urlQueryOverride=h.urlQueryOverride,h.ustreamerConfig&&(this.dJ=Ud(h.ustreamerConfig)||void 0)}; eJl=function(h,W){var c;if(W=W==null?void 0:(c=W.watchEndpointSupportedOnesieConfig)==null?void 0:c.html5PlaybackOnesieConfig)h.xo=new aJv(W)}; g.bo=function(h){h=h===void 0?{}:h;this.languageCode=h.languageCode||"";this.languageName=h.languageName||null;this.kind=h.kind||"";this.name=h.name===void 0?null:h.name;this.displayName=h.displayName||null;this.id=h.id||null;this.X=h.is_servable||!1;this.isTranslateable=h.is_translateable||!1;this.url=h.url||null;this.vssId=h.vss_id||"";this.isDefault=h.is_default||!1;this.translationLanguage=h.translationLanguage||null;this.xtags=h.xtags||"";this.captionId=h.captionId||""}; g.Nc=function(h){var W={languageCode:h.languageCode,languageName:h.languageName,displayName:g.TJ(h),kind:h.kind,name:h.name,id:h.id,is_servable:h.X,is_default:h.isDefault,is_translateable:h.isTranslateable,vss_id:h.vssId};h.xtags&&(W.xtags=h.xtags);h.captionId&&(W.captionId=h.captionId);h.translationLanguage&&(W.translationLanguage=h.translationLanguage);return W}; g.XY=function(h){return h.translationLanguage?h.translationLanguage.languageCode:h.languageCode}; g.zJQ=function(h){var W=h.vssId;h.translationLanguage&&W&&(W="t"+W+"."+g.XY(h));return W}; g.TJ=function(h){var W=[];if(h.displayName)W.push(h.displayName);else{var c=h.languageName||"";W.push(c);h.kind==="asr"&&c.indexOf("(")===-1&&W.push(" (Subt\u00edtulos autom\u00e1ticos)");h.name&&W.push(" - "+h.name)}h.translationLanguage&&W.push(" >> "+h.translationLanguage.languageName);return W.join("")}; KEl=function(h,W,c,V){h||(h=W&&QcQ.hasOwnProperty(W)&&LEN.hasOwnProperty(W)?LEN[W]+"_"+QcQ[W]:void 0);W=h;if(!W)return null;h=W.match(iaN);if(!h||h.length!==5)return null;if(h=W.match(iaN)){var H=Number(h[3]),B=[7,8,10,5,6];h=!(Number(h[1])===1&&H===8)&&B.indexOf(H)>=0}else h=!1;return c||V||h?W:null}; t0=function(h,W){for(var c={},V=g.e(Object.keys(A97)),H=V.next();!H.done;H=V.next()){H=H.value;var B=W?W+H:H;B=h[B+"_webp"]||h[B];g.Tk(B)&&(c[A97[H]]=B)}return c}; vF=function(h){var W={};if(!h||!h.thumbnails)return W;h=h.thumbnails.filter(function(J){return!!J.url}); h.sort(function(J,u){return J.width-u.width||J.height-u.height}); for(var c=g.e(Object.keys(UZk)),V=c.next();!V.done;V=c.next()){var H=Number(V.value);V=UZk[H];for(var B=g.e(h),E=B.next();!E.done;E=B.next())if(E=E.value,E.width>=H){H=Czd(E.url);g.Tk(H)&&(W[V]=H);break}}(h=h.pop())&&h.width>=1280&&(h=Czd(h.url),g.Tk(h)&&(W["maxresdefault.jpg"]=h));return W}; Czd=function(h){return h.startsWith("//")?"https:"+h:h}; m$=function(h){return h&&h.baseUrl||""}; oa=function(h){h=g.wO(h);for(var W=g.e(Object.keys(h)),c=W.next();!c.done;c=W.next()){c=c.value;var V=h[c];h[c]=Array.isArray(V)?V[0]:V}return h}; MTT=function(h,W){h.botguardData=W.playerAttestationRenderer.botguardData;W=W.playerAttestationRenderer.challenge;W!=null&&(h.uP=W)}; Pz7=function(h,W){W=g.e(W);for(var c=W.next();!c.done;c=W.next()){c=c.value;var V=c.interstitials.map(function(E){var J=g.v(E,FEd);if(J)return{is_yto_interstitial:!0,raw_player_response:J};if(E=g.v(E,y9U))return Object.assign({is_yto_interstitial:!0},gO(E))}); V=g.e(V);for(var H=V.next();!H.done;H=V.next())switch(H=H.value,c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":h.interstitials=h.interstitials.concat({time:0,playerVars:H,Ep:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":h.interstitials=h.interstitials.concat({time:0x7ffffffffffff,playerVars:H,Ep:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var B=Number(c.podConfig.timeToInsertAtMillis);h.interstitials=h.interstitials.concat({time:B,playerVars:H, Ep:B===0?5:7})}}}; fJD=function(h,W){if(W=W.find(function(c){return!(!c||!c.tooltipRenderer)}))h.tooltipRenderer=W.tooltipRenderer}; ba7=function(h,W){W.subscribeCommand&&(h.subscribeCommand=W.subscribeCommand);W.unsubscribeCommand&&(h.unsubscribeCommand=W.unsubscribeCommand);W.addToWatchLaterCommand&&(h.addToWatchLaterCommand=W.addToWatchLaterCommand);W.removeFromWatchLaterCommand&&(h.removeFromWatchLaterCommand=W.removeFromWatchLaterCommand);W.getSharePanelCommand&&(h.getSharePanelCommand=W.getSharePanelCommand)}; TVl=function(h,W){W!=null?(h.Sc=W,h.B0=!0):(h.Sc="",h.B0=!1)}; py=function(h,W){this.type=h||"";this.id=W||""}; Ia=function(h){return new py(h.substring(0,2),h.substring(2))}; YX=function(h,W){this.fM=h;this.author="";this.JY=null;this.playlistLength=0;this.X=this.sessionData=null;this.Z={};this.title="";if(W){this.author=W.author||W.playlist_author||"";this.title=W.playlist_title||"";if(h=W.session_data)this.sessionData=O_(h,"&");var c;this.X=((c=W.thumbnail_ids)==null?void 0:c.split(",")[0])||null;this.Z=t0(W,"playlist_");this.videoId=W.video_id||void 0;if(c=W.list)switch(W.listType){case "user_uploads":this.playlistId=(new py("UU","PLAYER_"+c)).toString();break;default:if(h= W.playlist_length)this.playlistLength=Number(h)||0;this.playlistId=Ia(c).toString();if(W=W.video)this.videoId=(W[0]||null).video_id||void 0}else W.playlist&&(this.playlistLength=W.playlist.toString().split(",").length)}}; Oa=function(h,W){this.fM=h;this.s4=this.author="";this.JY=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.r0=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(W){this.ariaLabel=W.aria_label||void 0;this.author=W.author||"";this.s4=W.s4||"";if(h=W.endscreen_autoplay_session_data)this.JY=O_(h,"&");this.Oe=W.Oe;this.isLivePlayback=W.live_playback==="1";this.isUpcoming=!!W.isUpcoming;if(h=W.length_seconds)this.lengthSeconds=typeof h==="string"?Number(h):h;this.lengthText= W.lengthText||"";this.r0=W.r0||"";this.publishedTimeText=W.publishedTimeText||void 0;if(h=W.session_data)this.sessionData=O_(h,"&");this.shortViewCount=W.short_view_count_text||void 0;this.Z=t0(W);this.title=W.title||"";this.videoId=W.docid||W.video_id||W.videoId||W.id||void 0;this.watchUrl=W.watchUrl||void 0}}; NVh=function(h){var W,c,V=(W=h.getWatchNextResponse())==null?void 0:(c=W.contents)==null?void 0:c.twoColumnWatchNextResults,H,B,E,J,u;h=(H=h.getWatchNextResponse())==null?void 0:(B=H.playerOverlays)==null?void 0:(E=B.playerOverlayRenderer)==null?void 0:(J=E.endScreen)==null?void 0:(u=J.watchNextEndScreenRenderer)==null?void 0:u.results;if(!h){var d,G;h=V==null?void 0:(d=V.endScreen)==null?void 0:(G=d.endScreen)==null?void 0:G.results}return h}; g.gu=function(h){var W,c,V;h=g.v((W=h.getWatchNextResponse())==null?void 0:(c=W.playerOverlays)==null?void 0:(V=c.playerOverlayRenderer)==null?void 0:V.decoratedPlayerBarRenderer,Sz);return g.v(h==null?void 0:h.playerBar,XsL)}; tTv=function(h){this.X=h.playback_progress_0s_url;this.G=h.playback_progress_2s_url;this.W=h.playback_progress_10s_url}; vtk=function(){if(Dv===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(W){}a:{try{var h=!!self.localStorage}catch(W){h=!1}if(h&&(h=g.MM(g.vt()+"::yt-player"))){Dv=new yh(h);break a}Dv=void 0}}return Dv}; g.wu=function(){var h=vtk();if(!h)return{};try{var W=h.get("yt-player-lv");return JSON.parse(W||"{}")}catch(c){return{}}}; g.mZQ=function(h){var W=vtk();W&&(h=JSON.stringify(h),W.set("yt-player-lv",h))}; g.kX=function(h){return g.wu()[h]||0}; g.hT=function(h,W){var c=g.wu();W!==c[h]&&(W!==0?c[h]=W:delete c[h],g.mZQ(c))}; g.WT=function(h){return g.P(function(W){return W.return(g.T1(otU(),h))})}; Vk=function(h,W,c,V,H,B,E,J){var u,d,G,Z,r,q;return g.P(function(x){switch(x.W){case 1:return u=g.kX(h),u===4?x.return(4):g.F(x,g.IC(),2);case 2:d=x.X;if(!d)throw g.rw("wiac");if(!J||E===void 0){x.bB(3);break}return g.F(x,psN(J,E),4);case 4:E=x.X;case 3:return G=c.lastModified||"0",g.F(x,g.WT(d),5);case 5:return Z=x.X,g.Qp(x,6),cT++,g.F(x,g.Lg(Z,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",nJ:!0},function(z){if(B!==void 0&&E!==void 0){var L=""+h+"|"+W.id+"|"+G+"|"+String(B).padStart(10, "0");L=g.iC(z.objectStore("media"),E,L)}else L=g.x4.resolve(void 0);var M=IJD(h,W.Sz()),U=IJD(h,!W.Sz()),y={fmts:Yip(V),format:c||{}};M=g.iC(z.objectStore("index"),y,M);var T=V.downloadedEndTime===-1;y=T?z.objectStore("index").get(U):g.x4.resolve(void 0);var m={fmts:"music",format:{}};z=T&&H&&!W.Sz()?g.iC(z.objectStore("index"),m,U):g.x4.resolve(void 0);return g.x4.all([z,y,L,M]).then(function(D){D=g.e(D);D.next();D=D.next().value;cT--;var O=g.kX(h);if(O!==4&&T&&H||D!==void 0&&g.OaU(D.fmts))O=1,g.hT(h, O);return O})}),8); case 8:return x.return(x.X);case 6:r=g.CU(x);cT--;q=g.kX(h);if(q===4)return x.return(q);g.hT(h,4);throw r;}})}; g.Sil=function(h){var W,c;return g.P(function(V){if(V.W==1)return g.F(V,g.IC(),2);if(V.W!=3){W=V.X;if(!W)throw g.rw("ri");return g.F(V,g.WT(W),3)}c=V.X;return V.return(g.Lg(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(H){var B=IDBKeyRange.bound(h+"|",h+"~");return H.objectStore("index").getAll(B).then(function(E){return E.map(function(J){return J?J.format:{}})})}))})}; DZk=function(h,W,c,V,H){var B,E,J;return g.P(function(u){if(u.W==1)return g.F(u,g.IC(),2);if(u.W!=3){B=u.X;if(!B)throw g.rw("rc");return g.F(u,g.WT(B),3)}E=u.X;J=g.Lg(E,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(d){var G=""+h+"|"+W+"|"+c+"|"+String(V).padStart(10,"0");return d.objectStore("media").get(G)}); return H?u.return(J.then(function(d){if(d===void 0)throw Error("No data from indexDb");return gtp(H,d)}).catch(function(d){throw new g.tP("Error while reading chunk: "+d.name+", "+d.message); })):u.return(J)})}; g.OaU=function(h){return h?h==="music"?!0:h.includes("dlt=-1")||!h.includes("dlt="):!1}; IJD=function(h,W){return""+h+"|"+(W?"v":"a")}; Yip=function(h){var W={};return Sn((W.dlt=h.downloadedEndTime.toString(),W.mket=h.maxKnownEndTime.toString(),W.avbr=h.averageByteRate.toString(),W))}; kGl=function(h){var W={},c={};h=g.e(h);for(var V=h.next();!V.done;V=h.next()){var H=V.value,B=H.split("|");H.match(g.wsN)?(V=Number(B.pop()),isNaN(V)?c[H]="?":(B=B.join("|"),(H=W[B])?(B=H[H.length-1],V===B.end+1?B.end=V:H.push({start:V,end:V})):W[B]=[{start:V,end:V}])):c[H]="?"}h=g.e(Object.keys(W));for(V=h.next();!V.done;V=h.next())V=V.value,c[V]=W[V].map(function(E){return E.start+"-"+E.end}).join(","); return c}; $q=function(h){g.h1.call(this);this.X=null;this.G=new PD;this.X=null;this.N=new Set;this.crossOrigin=h||""}; hnD=function(h,W,c){for(c=sP(h,c);c>=0;){var V=h.levels[c];if(V.isLoaded(HT(V,W))&&(V=g.BT(V,W)))return V;c--}return g.BT(h.levels[0],W)}; cOv=function(h,W,c){c=sP(h,c);for(var V,H;c>=0;c--)if(V=h.levels[c],H=HT(V,W),!V.isLoaded(H)){V=h;var B=c,E=B+"-"+H;V.N.has(E)||(V.N.add(E),V.G.enqueue(B,{qx:B,v_:H}))}WzQ(h)}; WzQ=function(h){if(!h.X&&!h.G.isEmpty()){var W=h.G.remove();h.X=V0D(h,W)}}; V0D=function(h,W){var c=document.createElement("img");h.crossOrigin&&(c.crossOrigin=h.crossOrigin);c.src=h.levels[W.qx].Ly(W.v_);c.onload=function(){var V=W.qx,H=W.v_;h.X!==null&&(h.X.onload=null,h.X=null);V=h.levels[V];V.loaded.add(H);WzQ(h);var B=V.columns*V.rows;H*=B;V=Math.min(H+B-1,V.cq()-1);H=[H,V];h.publish("l",H[0],H[1])}; return c}; g.EP=function(h,W,c,V){this.level=h;this.Y=W;this.loaded=new Set;this.level=h;this.Y=W;h=c.split("#");this.width=Math.floor(Number(h[0]));this.height=Math.floor(Number(h[1]));this.frameCount=Math.floor(Number(h[2]));this.columns=Math.floor(Number(h[3]));this.rows=Math.floor(Number(h[4]));this.X=Math.floor(Number(h[5]));this.G=h[6];this.signature=h[7];this.videoLength=V}; HT=function(h,W){return Math.floor(W/(h.columns*h.rows))}; g.BT=function(h,W){W>=h.Wa()&&h.HE();var c=HT(h,W),V=h.columns*h.rows,H=W%V;W=H%h.columns;H=Math.floor(H/h.columns);var B=h.HE()+1-V*c;if(B1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; $Dh=function(h,W,c){return(h=h.levels[W])?h.AA(c):-1}; sP=function(h,W){var c=h.Y.get(W);if(c)return c;c=h.levels.length;for(var V=0;V=W)return h.Y.set(W,V),V;h.Y.set(W,c-1);return c-1}; JT=function(h,W,c,V){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.EP.call(this,h,W,c,0);this.W=null;this.C=V?2:0}; uU=function(h,W,c,V){Rs.call(this,h,0,void 0,W,!(V===void 0||!V));for(h=0;h=0?JN.countDownSecsForFullscreen*1E3:-1);h.j("web_autonav_color_transition")&&JN.watchToWatchTransitionRenderer&&(h.watchToWatchTransitionRenderer=g.v(JN.watchToWatchTransitionRenderer, nCv))}var ep=NVh(h);if(ep){var RX,BO,ZU,rf=ep==null?void 0:(RX=ep[0])==null?void 0:(BO=RX.endScreenVideoRenderer)==null?void 0:(ZU=BO.navigationEndpoint)==null?void 0:ZU.clickTrackingParams,MY=g.jy(h);rf&&MY&&(MY.sessionData={itct:rf})}h.mW.currentVideoThumbnail&&(h.Z=vF(h.mW.currentVideoThumbnail));var ba,To,Nn,VR,FP,nJ=(ba=h.mW)==null?void 0:(To=ba.contents)==null?void 0:(Nn=To.twoColumnWatchNextResults)==null?void 0:(VR=Nn.results)==null?void 0:(FP=VR.results)==null?void 0:FP.contents;if(nJ&&nJ[1]){var yd, $v,XL,ii,z0=(yd=nJ[1].videoSecondaryInfoRenderer)==null?void 0:($v=yd.owner)==null?void 0:(XL=$v.videoOwnerRenderer)==null?void 0:(ii=XL.thumbnail)==null?void 0:ii.thumbnails;z0&&z0.length&&(h.profilePicture=z0[z0.length-1].url)}var tt=ct(W),sL,qF=(sL=h.getWatchNextResponse())==null?void 0:sL.onResponseReceivedEndpoints;if(qF)for(var HK=g.e(qF),PU=HK.next();!PU.done;PU=HK.next()){var xp=PU.value;g.v(xp,as)&&(h.Pg=g.v(xp,as));var $s=g.v(xp,jpN),NQ=void 0;if((NQ=$s)==null?0:NQ.entityKeys)h.b9=$s.entityKeys|| [],$s.visibleOnLoadKeys&&(h.visibleOnLoadKeys=$s.visibleOnLoadKeys)}if(h.j("web_key_moments_markers")){var VC=g.ey.getState().entities,EL=g.Ib("visibility_override","markersVisibilityOverrideEntity");var vE=Ok(VC,"markersVisibilityOverrideEntity",EL);h.rE=(vE==null?void 0:vE.videoId)===(h.videoId||tt)&&(vE==null?0:vE.visibilityOverrideMarkersKey)?vE.visibilityOverrideMarkersKey:h.visibleOnLoadKeys;h.visibleOnLoadKeys=[].concat(g.rN(h.rE))}}}; lU=function(h){var W;return((W=h.autoplaySwitchButtonRenderer)==null?void 0:W.enabled)!==void 0}; z8=function(h){return!!(h.G&&h.G.videoInfos&&h.G.videoInfos.length)}; g.UP=function(h){var W=h.S;h.j("html5_gapless_unlimit_format_selection")&&Qk(h)&&(W=!1);var c=!!h.X&&h.X.Hi,V=h.fM,H=h.SA(),B=LC(h),E=h.yg,J=W,u=h.isOtf();W=h.Sm();var d=h.Ef,G=h.getUserAudio51Preference(),Z=iU(h),r=KC(h),q=new Xc4(V);if(V.gI()||V.j("html5_logging_format_selection"))q.W=!0;q.CM=B;q.yg=E&&V.Z;q.DH=G;g.bW("windows nt 5.1")&&!g.Ed&&(q.EO=!0);if(B=H)B=g.zJ(V)?O84(V):!1;B&&(q.XI=!0);J&&(q.EO=!0,q.fR=!0);u&&!V.j("html5_otf_prefer_vp9")&&(q.EO=!0);V.playerStyle==="picasaweb"&&(u&&(q.EO= !1),q.Wk=!1);d&&(q.EO=!0);Xs(V.C,tu.CHANNELS)&&(V.j("html5_enable_ac3")&&(q.Y=!0),V.j("html5_enable_eac3")&&(q.C=!0),V.j("html5_enable_ac3_gapless")&&(q.zV=!0));V.j("html5_block_8k_hfr")&&(q.Jk=!0);q.N=g.DF(V.experiments,"html5_max_selectable_quality_ordinal");q.S=g.DF(V.experiments,"html5_min_selectable_quality_ordinal");Od&&(q.U5=480);if(c||H)q.Wk=!1;q.rE=!1;q.disableAv1=Z;c=kP(V,q.X,void 0,q.disableAv1);c>0&&c<2160&&(cc()||V.j("html5_format_hybridization"))&&(q.X.supportsChangeType=+cc(),q.bl= c);c>=2160&&(q.Pk=!0);$bd()&&!V.j("disable_av1_setting")&&(q.X.serveVp9OverAv1IfHigherRes=0,q.bX=!1);q.Sm=W;q.Nn=g.vp||SO()&&!W?!1:!0;q.Z=V.j("html5_format_hybridization");q.Ak=V.j("html5_disable_encrypted_vp9_live_non_2k_4k");q.uW=r;AT(h)&&(q.Zn=h.j("html5_prefer_language_over_codec"));XA()&&h.playerResponse&&h.playerResponse.playerConfig&&h.playerResponse.playerConfig.webPlayerConfig&&h.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(q.Y=!0,q.C=!0);h.S&&h.isAd()&&(h.nt&& (q.T=h.nt),h.HU&&(q.G=h.HU));q.mW=h.isLivePlayback&&h.bC()&&h.fM.j("html5_drm_live_audio_51");q.Ef=h.K8;q.lW=!AT(h);return h.d3=q}; iU=function(h){return h.fM.j("html5_disable_av1")||h.j("html5_gapless_shorts_disable_av1")&&Qk(h)?!0:!1}; atU=function(h){eq("drm_pb_s",void 0,h.XI);h.Rz||h.X&&Pb(h.X);var W={};h.X&&(W=lcN(h.Oj,g.UP(h),h.fM.C,h.X,function(c){return h.publish("ctmp","fmtflt",c)},!0,new Set)); W=new uf(W,h.fM,h.Au,h.useCobaltWidevine?XA()?CC(h):!1:!1,function(c,V){h.GV(c,V)}); g.X(h,W);h.u8=!1;h.loading=!0;ohQ(W,function(c){eq("drm_pb_f",void 0,h.XI);for(var V=g.e(c),H=V.next();!H.done;H=V.next())switch(H=H.value,H.flavor){case "fairplay":H.Rz=h.Rz;H.GB=h.GB;H.WO=h.WO;break;case "widevine":H.ut=h.ut}h.aO=c;if(h.aO.length>0&&(h.C=h.aO[0],h.fM.gI())){c={};V=g.e(Object.entries(h.C.X));for(H=V.next();!H.done;H=V.next()){var B=g.e(H.value);H=B.next().value;B=B.next().value;var E="unk";(H=H.match(/(.*)codecs="(.*)"/))&&(E=H[2]);c[E]=B}h.GV("drmProbe",c)}h.C1()})}; enN=function(h,W){if(W.length===0||MN(h))return null;h.fM.C.G&&(gW=!0);var c=h.k9;var V=h.lengthSeconds,H=h.isLivePlayback,B=h.N$,E=h.fM,J=Qi5(W);if(H||B){E=E.experiments;V=new PJ("",E,!0);V.W=!B;V.Hi=!0;V.isManifestless=!0;V.isLive=!B;V.N$=B;W=g.e(W);for(H=W.next();!H.done;H=W.next()){var u=H.value;H=Tw(u,c);J=O1(u);J=Xg(J.fC||u.url||"",J.A5,J.s);var d=J.get("id");d&&d.includes("%7E")&&(V.T=!0);var G=void 0;d=(G=E)==null?void 0:G.xN("html5_max_known_end_time_rebase");G=Number(u.targetDurationSec|| 5);u=Number(u.maxDvrDurationSec||14400);var Z=Number(J.get("mindsq")||J.get("min_sq")||"0"),r=Number(J.get("maxdsq")||J.get("max_sq")||"0")||Infinity;V.W9=V.W9||Z;V.v5=V.v5||r;var q=!XK(H.mimeType);J&&Mj(V,new rW(J,H,{Ix:G,f9:q,G7:u,W9:Z,v5:r,Po:300,N$:B,mu:d}))}c=V}else if(J==="FORMAT_STREAM_TYPE_OTF"){V=V===void 0?0:V;B=new PJ("",E.experiments,!1);B.duration=V||0;E=g.e(W);for(V=E.next();!V.done;V=E.next())V=V.value,W=Tw(V,c,B.duration),H=O1(V),(H=Xg(H.fC||V.url||"",H.A5,H.s))&&(W.streamType==="FORMAT_STREAM_TYPE_OTF"? Mj(B,new qj(H,W,"sq/0")):Mj(B,new Aw(H,W,gP(V.initRange),gP(V.indexRange))));B.isOtf=!0;c=B}else{V=V===void 0?0:V;B=new PJ("",E.experiments,!1);B.duration=V||0;E=g.e(W);for(V=E.next();!V.done;V=E.next())J=V.value,V=Tw(J,c,B.duration),W=gP(J.initRange),H=gP(J.indexRange),d=O1(J),(J=Xg(d.fC||J.url||"",d.A5,d.s))&&Mj(B,new Aw(J,V,W,H));c=B}B=h.isLivePlayback&&!h.N$&&!h.Pk&&!h.isPremiere;h.j("html5_live_head_playable")&&(!FE(h)&&B&&h.GV("missingLiveHeadPlayable",{}),h.fM.XI==="yt"&&(c.CM=!0));return c}; MN=function(h){return XA()?!CC(h):vf()?!(!h.Rz||!h.j("html5_enable_safari_fairplay")&&lf()):!1}; CC=function(h){return h.j("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.xq=function(h,W){W=g.e(W);for(var c=W.next();!c.done;c=W.next())if(c=c.value,c.cueRangeSetIdentifier){var V=void 0;h.yU.set(c.cueRangeSetIdentifier,(V=c.playerCueRanges)!=null?V:[])}}; yk=function(h){return!(!h.X||!h.X.isManifestless)}; PT=function(h){return h.U5?h.isLowLatencyLiveStream&&h.X!=null&&ou(h.X)>=5:h.isLowLatencyLiveStream&&h.X!=void 0&&ou(h.X)>=5}; znU=function(h){return XA()&&CC(h)?!1:MN(h)&&(g.Rm(h.fM)?!h.isLivePlayback:h.hlsvp)||!lf()||h.qX?!0:!1}; iYd=function(h){h.loading=!0;h.CG=!1;if(QpD(h))g.Sil(h.videoId).then(function(V){LzL(h,V)}).then(function(){h.C1()}); else{bJ(h.Zn)||g.Lx(new g.tP("DASH MPD Origin invalid: ",h.Zn));var W=h.Zn,c=g.DF(h.fM.experiments,"dash_manifest_version")||4;W=g.r0(W,{mpd_version:c});h.isLowLatencyLiveStream&&h.latencyClass!=="NORMAL"||(W=g.r0(W,{pacing:0}));FRL(W,h.fM.experiments,h.isLivePlayback).then(function(V){h.gE()||(fC(h,V,!0),eq("mrc",void 0,h.XI),h.C1())},function(V){h.gE()||(h.loading=!1,h.publish("dataloaderror",new g.RG("manifest.net.retryexhausted",{backend:"manifest", rc:V.status},1)))}); eq("mrs",void 0,h.XI)}}; LzL=function(h,W){var c=W.map(function(u){return u.itag}),V; if((V=h.playerResponse)!=null&&V.streamingData){V=[];if(h.j("html5_offline_always_use_local_formats")){c=0;for(var H=g.e(W),B=H.next();!B.done;B=H.next()){B=B.value;var E=Object.assign({},B);E.signatureCipher="";V.push(E);E=g.e(h.playerResponse.streamingData.adaptiveFormats);for(var J=E.next();!J.done;J=E.next())if(J=J.value,B.itag===J.itag&&B.xtags===J.xtags){c+=1;break}}cG&&(G=q.getInfo().audio.numChannels)}G>2&&h.GV("hlschl",{mn:G});var L;((L=h.d3)==null?0:L.W)&&h.GV("hlsfmtaf",{itags:Z.join(".")});var M;if(h.j("html5_enable_vp9_fairplay")&&((M=h.C)==null?0:Hx(M)))for(h.GV("drm",{sbdlfbk:1}),G=g.e(h.aO),Z=G.next();!Z.done;Z=G.next())if(Z=Z.value,sd(Z)){h.C=Z;break}XE(h,d)})}return Lb()}; M0h=function(h){if(h.isExternallyHostedPodcast&&h.H9){var W=NN(h.H9);if(!W[0])return Lb();h.zVn=W[0];return xZp(h.fM,W[0]).then(function(c){XE(h,c)})}return h.wi&&h.Go?qiT(h.fM,h.isAd(),h.wi).then(function(c){XE(h,c)}):Lb()}; yOd=function(h){if(h.isExternallyHostedPodcast)return Lb();var W=NN(h.H9,h.iz);if(h.hlsvp){var c=spD(h.hlsvp,h.clientPlaybackNonce,h.fR);W.push(c)}return r97(h.fM,h.isAd(),W,FzN(h)).then(function(V){XE(h,V)})}; XE=function(h,W){h.RR=W;h.xw(new U1(g.xw(h.RR,function(c){return c.getInfo()})))}; FzN=function(h){var W={cpn:h.clientPlaybackNonce,c:h.fM.X.c,cver:h.fM.X.cver};h.zB&&(W.ptk=h.zB,W.oid=h.I7,W.ptchn=h.JR,W.pltype=h.xE,h.Xn&&(W.m=h.Xn));return W}; g.tT=function(h){return MN(h)&&h.Rz?(h={},h.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",h):h.W&&h.W.k9||null}; PIk=function(h){var W=vT(h);return W&&W.text?g.EJ(W.text):h.paidContentOverlayText}; ftd=function(h){var W=vT(h);return W&&W.durationMs?Pr(W.durationMs):h.paidContentOverlayDurationMs}; vT=function(h){var W,c,V;return h.playerResponse&&h.playerResponse.paidContentOverlay&&h.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.v((W=h.mW)==null?void 0:(c=W.playerOverlays)==null?void 0:(V=c.playerOverlayRenderer)==null?void 0:V.playerDisclosure,bYN)||null}; mS=function(h){var W="";if(h.eI)return h.eI;h.isLivePlayback&&(W=h.allowLiveDvr?"dvr":h.isPremiere?"lp":h.Pk?"window":"live");h.N$&&(W="post");return W}; g.os=function(h,W){return typeof h.keywords[W]!=="string"?null:h.keywords[W]}; T2N=function(h){return!!h.SR||!!h.h5||!!h.kS||!!h.Qw||h.UE}; g.pC=function(h){return!!(h.Zn||h.H9||h.wi||h.hlsvp||h.hs())}; Ze=function(h){if(h.j("html5_onesie")&&h.errorCode)return!1;var W=g.el(h.T,"ypc");h.ypcPreview&&(W=!1);return h.oT()&&!h.loading&&(g.pC(h)||g.el(h.T,"heartbeat")||W)}; NN=function(h,W){h=D3(h);var c={};if(W){W=g.e(W.split(","));for(var V=W.next();!V.done;V=W.next())(V=V.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(c[V[1]]={width:V[2],height:V[3]})}W=g.e(h);for(V=W.next();!V.done;V=W.next()){V=V.value;var H=c[V.itag];H&&(V.width=H.width,V.height=H.height)}return h}; G2h=function(h,W){h.showShareButton=!!W;var c,V,H=((c=g.v(W,g.DJ))==null?void 0:c.navigationEndpoint)||((V=g.v(W,g.DJ))==null?void 0:V.command);H&&(h.z3=!!g.v(H,N27))}; HYT=function(h,W){var c=W.raw_embedded_player_response;if(!c){var V=W.embedded_player_response;V&&(c=JSON.parse(V))}c&&(h.Rl=c);if(h.Rl){h.embeddedPlayerConfig=h.Rl.embeddedPlayerConfig||null;if(c=h.Rl.videoFlags)c.playableInEmbed&&(h.allowEmbed=!0),c.isPrivate&&(h.isPrivate=!0),c.userDisplayName&&(W.user_display_name=c.userDisplayName),c.userDisplayImage&&(W.user_display_image=c.userDisplayImage);if(c=h.Rl.embedPreview){c=c.thumbnailPreviewRenderer;TVl(h,c.controlBgHtml);if(V=c.defaultThumbnail)h.Z= vF(V);h.j("embeds_web_enable_search_button")&&c.searchButton&&(V=g.v(c.searchButton,g.DJ))&&(h.CTf=g.v(V.navigationEndpoint,g.Is));(V=g.v(c==null?void 0:c.videoDetails,Xlv))&&xDd(h,W,V);V=g.v(c==null?void 0:c.videoDetails,t07);h.Uy=!!c.addToWatchLaterButton;G2h(h,c.shareButton);if(V==null?0:V.musicVideoType)h.musicVideoType=V.musicVideoType;var H,B,E,J,u;if(V=g.v((H=h.getEmbeddedPlayerResponse())==null?void 0:(B=H.embedPreview)==null?void 0:(E=B.thumbnailPreviewRenderer)==null?void 0:(J=E.playButton)== null?void 0:(u=J.buttonRenderer)==null?void 0:u.navigationEndpoint,g.nC))eJl(h,V),h.videoId=V.videoId||h.videoId;c.videoDurationSeconds&&(h.lengthSeconds=Pr(c.videoDurationSeconds));c.webPlayerActionsPorting&&ba7(h,c.webPlayerActionsPorting);if(H=g.v(c==null?void 0:c.playlist,vC7)){h.lG=!0;B=[];E=Number(H.currentIndex);if(H.contents)for(J=0,u=H.contents.length;J0:h.mF?!1:h.fM.lJ||h.fM.uC||!g.DE(h.fM)?!0:!1:(h.mF?0:h.lJ)&&g.DE(h.fM)?!0:!1;h.j("html5_log_detailpage_autoplay")&&cN(h)==="detailpage"&&h.GV("autoplay_info",{autoplay:h.eL,autonav:h.isAutonav,wasDompaused:h.mF,result:W});return W}; g.BN=function(h){return h.oauthToken||h.fM.hG}; wl4=function(h){if(h.j("html5_stateful_audio_normalization")){var W=1,c=g.DF(h.fM.experiments,"html5_default_ad_gain");c&&h.isAd()&&(W=c);var V,H;c=(H=(V=h.Y)==null?void 0:V.audio.Y)!=null?H:h.Dl;if(c==null||isNaN(c))h=DDd(h);else{V=(0,g.aC)();h.l8=2;H=V-h.fM.Em<=h.maxStatefulTimeThresholdSec*1E3;h.applyStatefulNormalization&&H?h.l8=4:H||(h.fM.BR=Infinity,h.fM.Em=NaN);H=(h.l8===4?g.vr(h.fM.BR,h.minimumLoudnessTargetLkfs,h.loudnessTargetLkfs):h.loudnessTargetLkfs)-c;if(h.l8!==4){var B,E,J,u,d=((B= h.playerResponse)==null?void 0:(E=B.playerConfig)==null?void 0:(J=E.audioConfig)==null?void 0:(u=J.loudnessNormalizationConfig)==null?void 0:u.statelessLoudnessAdjustmentGain)||0;H+=d}H=Math.min(H,0);h.preserveStatefulLoudnessTarget&&(h.fM.BR=c+H,h.fM.Em=V);h=Math.min(1,Math.pow(10,H/20))||W}}else h=DDd(h);return h}; DDd=function(h){var W=1,c=g.DF(h.fM.experiments,"html5_default_ad_gain");c&&h.isAd()&&(W=c);if(h.fM.experiments.xN("html5_audio_gain_null_coalescing")){var V,H;c=(H=(V=h.Y)==null?void 0:V.audio.G)!=null?H:h.U8;c==0&&h.GV("db0fix",{rldb:h.U8},!0)}else{var B;c=((B=h.Y)==null?void 0:B.audio.G)||h.U8}isNaN(c)||(h.l8=1);return Math.min(1,Math.pow(10,-c/20))||W}; LC=function(h){var W=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c=ZE(h.fM)==="TVHTML5_SIMPLY"&&h.fM.X.ctheme==="MUSIC";!h.nj&&(g.CV(h.fM)||g.jz(h.fM)||c)&&(W.includes(h.musicVideoType)||h.isExternallyHostedPodcast)&&(h.nj=!0);if(W=g.NC())W=/Starboard\/([0-9]+)/.exec(g.TF()),W=(W?parseInt(W[1],10):NaN)<10;c=h.fM;c=(ZE(c)==="TVHTML5_CAST"||ZE(c)==="TVHTML5"&&(c.X.cver.startsWith("6.20130725")||c.X.cver.startsWith("6.20130726")))&&h.fM.X.ctheme==="MUSIC";var V;if(V=!h.nj)c||(c= h.fM,c=ZE(c)==="TVHTML5"&&c.X.cver.startsWith("7")),V=c;V&&!W&&(W=h.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",c=(h.j("cast_prefer_audio_only_for_atv_and_uploads")||h.j("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&h.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",W||c||h.isExternallyHostedPodcast)&&(h.nj=!0);return h.fM.deviceIsAudioOnly||h.nj&&h.fM.Z}; KC=function(h){var W,c,V;return((W=h.playerResponse)==null?void 0:(c=W.playerConfig)==null?void 0:(V=c.compositeVideoConfig)==null?void 0:V.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; k2v=function(h){var W,c,V,H=(W=h.playerResponse)==null?void 0:(c=W.playerConfig)==null?void 0:(V=c.compositeVideoConfig)==null?void 0:V.sourceConfigs,B,E,J;h=(B=h.playerResponse)==null?void 0:(E=B.playerConfig)==null?void 0:(J=E.compositeVideoConfig)==null?void 0:J.defaultActiveSourceVideoId;if(!H||!h)return"";H=g.e(H);for(B=H.next();!B.done;B=H.next())if(B=B.value,B.videoId===h&&B.audioTracks)for(B=g.e(B.audioTracks),E=B.next();!E.done;E=B.next())if(E=E.value,E.isDefaultForSource)return E.id||""; return""}; g.hQT=function(h){return h.j("html5_enable_sabr_live_captions")&&h.Hi()&&AT(h)||KC(h)}; EV=function(h){var W,c,V;return!!((W=h.playerResponse)==null?0:(c=W.playerConfig)==null?0:(V=c.mediaCommonConfig)==null?0:V.splitScreenEligible)}; Ro=function(h){var W;return!((W=h.playerResponse)==null||!W.compositePlayabilityStatus)}; WH7=function(h){return isNaN(h)?0:Math.max((Date.now()-h)/1E3-30,0)}; J7=function(h){return!(!h.wy||!h.fM.Z)&&h.hs()}; uc=function(h){return h.l9&&h.enableServerStitchedDai}; cx4=function(h){return h.rV&&!h.Zr}; AT=function(h){var W=h.j("html5_enable_sabr_on_drive")&&h.fM.XI==="gd";if(h.Ku)return h.rV&&h.GV("fds",{fds:!0},!0),!1;if(h.fM.XI!=="yt"&&!W)return h.rV&&h.GV("dsvn",{ns:h.fM.XI},!0),!1;if(h.cotn||!h.X||h.X.isOtf&&!h.j("html5_enable_sabr_otf_in_client")||h.G&&!h.G.X||h.mp&&!h.j("html5_enable_sabr_csdai"))return!1;if(h.j("html5_use_sabr_requests_for_debugging"))return!0;h.rV&&h.GV("esfw",{usbc:h.rV,hsu:!!h.Zr},!0);if(h.rV&&h.Zr)return!0;if(h.j("html5_remove_client_sabr_determination"))return!1;var c= !h.X.Hi&&!h.bC();W=c&&rh&&h.j("html5_enable_sabr_vod_streaming_xhr");c=c&&!rh&&h.j("html5_enable_sabr_vod_non_streaming_xhr");var V=de(h),H=h.j("html5_enable_sabr_drm_vod_streaming_xhr")&&rh&&h.bC()&&!h.X.Hi&&(h.drmProduct==="1"?!1:!0);(W=W||c||V||H)&&!h.Zr&&h.GV("sabr",{loc:"m"},!0);return W&&!!h.Zr}; de=function(h){var W;if(!(W=rh&&h.Hi()&&h.bC()&&(h.drmProduct==="1"?!1:!0)&&h.j("html5_sabr_live_drm_streaming_xhr"))){W=h.Hi()&&!h.bC()&&rh;var c=h.Hi()&&h.latencyClass!=="ULTRALOW"&&!h.isLowLatencyLiveStream&&h.j("html5_sabr_live_normal_latency_streaming_xhr"),V=h.isLowLatencyLiveStream&&h.j("html5_sabr_live_low_latency_streaming_xhr"),H=h.latencyClass==="ULTRALOW"&&h.j("html5_sabr_live_ultra_low_latency_streaming_xhr");W=W&&(c||V||H)}c=W;W=h.enableServerStitchedDai&&c&&h.j("html5_enable_sabr_ssdai_streaming_xhr"); c=!h.enableServerStitchedDai&&c;V=h.Hi()&&!rh&&h.j("html5_enable_sabr_live_non_streaming_xhr");h=rh&&(h.Gw()||EV(h)&&h.j("html5_enable_sabr_for_lifa_eligible_streams"));return W||c||V||h}; QpD=function(h){var W;if(W=!!h.cotn)W=h.videoId,W=!!W&&g.kX(W)===1;return W&&!h.wy}; g.Gr=function(h){if(!h.X||!h.W||!h.Y)return!1;var W=h.X.X,c=!!W[h.W.id]&&pB(W[h.W.id].bW.X);W=!!W[h.Y.id]&&pB(W[h.Y.id].bW.X);return(h.W.itag==="0"||c)&&W}; Zf=function(h){return h.DQ?["OK","LIVE_STREAM_OFFLINE"].includes(h.DQ.status):!0}; mDl=function(h){return(h=h.Oq)&&h.showError?h.showError:!1}; re=function(h,W){return h.j(W)?!0:(h.fflags||"").includes(W+"=true")}; u0U=function(h,W){W.inlineMetricEnabled&&(h.inlineMetricEnabled=!0);W.playback_progress_0s_url&&(h.Qw=new tTv(W));if(W=W.video_masthead_ad_quartile_urls)h.h5=W.quartile_0_url,h.OW=W.quartile_25_url,h.wX=W.quartile_50_url,h.Rt=W.quartile_75_url,h.AR=W.quartile_100_url,h.kS=W.quartile_0_urls,h.KH=W.quartile_25_urls,h.sL=W.quartile_50_urls,h.UL=W.quartile_75_urls,h.QS=W.quartile_100_urls}; JOv=function(h){var W={};h=g.e(h);for(var c=h.next();!c.done;c=h.next()){c=c.value;var V=c.split("=");V.length===2?W[V[0]]=V[1]:W[c]=!0}return W}; ECT=function(h){if(h){if(z_U(h))return h;h=Q3h(h);if(z_U(h,!0))return h}return""}; g.Vo7=function(h){return h.captionsLanguagePreference||h.fM.captionsLanguagePreference||g.os(h,"yt:cc_default_lang")||h.fM.Tx}; qe=function(h){return!(!h.isLivePlayback||!h.hasProgressBarBoundaries())}; g.jy=function(h){var W;return h.EG||((W=h.suggestions)==null?void 0:W[0])||null}; g.xM=function(h){var W,c;return!!((W=h.embeddedPlayerConfig)==null?0:(c=W.embeddedPlayerFlags)==null?0:c.enableMusicUx)}; $1k=function(h){return h.S||h.j("web_player_media_session_infinity")&&h.isLivePlayback}; lc=function(h){return h.fM.Y&&h.isPrivate}; g.jb=function(h){var W=h.B(),c=g.nQ(W),V=W.Zn;(W.j("embeds_web_enable_iframe_api_send_full_embed_url")||W.j("embeds_web_enable_rcat_validation_in_havs")||W.j("embeds_enable_autoplay_and_visibility_signals"))&&g.Vf(W)&&(V&&(c.thirdParty=Object.assign({},c.thirdParty,{embedUrl:V})),R6T(c,h));if(V=h.Nn)c.clickTracking={clickTrackingParams:V};else if(g.Vf(h.B())&&g.X_("EVENT_ID"))c.clickTracking={clickTrackingParams:g.X_("EVENT_ID")};else if(W.j("html5_log_missing_itct")){var H;V=new g.tP("Missing ITCT in InnerTubeContext", {isAd:h.isAd(),VcH:(H=W.getWebPlayerContextConfig())==null?void 0:H.contextId});g.Qq(V)}H=c.client||{};V="EMBED";var B=cN(h);B==="leanback"?V="WATCH":W.j("gvi_channel_client_screen")&&B==="profilepage"?V="CHANNEL":h.Ef?V="LIVE_MONITOR":B==="detailpage"?V="WATCH_FULL_SCREEN":B==="adunit"?V="ADUNIT":B==="sponsorshipsoffer"&&(V="UNKNOWN");H.clientScreen=V;if(W=h.kidsAppInfo)H.kidsAppInfo=JSON.parse(W);(V=h.eC)&&!W&&(H.kidsAppInfo={contentSettings:{ageUpMode:sqD[V]}});if(W=h.jC)H.unpluggedAppInfo={enableFilterMode:!0}; (V=h.unpluggedFilterModeType)&&!W&&(H.unpluggedAppInfo={filterModeType:H0N[V]});if(W=h.hq)H.unpluggedLocationInfo=W;c.client=H;H=c.request||{};h.Gu&&(H.isPrefetch=!0);if(W=h.mdxEnvironment)H.mdxEnvironment=W;if(W=h.mdxControlMode)H.mdxControlMode=BUN[W];c.request=H;H=c.user||{};if(W=h.zV)H.credentialTransferTokens=[{token:W,scope:"VIDEO"}];if(W=h.bX)H.delegatePurchases={oauthToken:W},H.kidsParent={oauthToken:W};c.user=H;if(H=h.contextParams)c.activePlayers=[{playerContextParams:H}];if(h=h.clientScreenNonce)c.clientScreenNonce= h;return c}; g.nQ=function(h){var W=g.pV(),c=W.client||{};if(h.forcedExperiments){var V=h.forcedExperiments.split(","),H=[];V=g.e(V);for(var B=V.next();!B.done;B=V.next())H.push(Number(B.value));c.experimentIds=H}if(H=h.homeGroupInfo)c.homeGroupInfo=JSON.parse(H);if(H=h.getPlayerType())c.playerType=H;if(H=h.X.ctheme)c.theme=H;if(H=h.livingRoomAppMode)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomAppMode:H});H=h.deviceYear;h.j("html5_propagate_device_year")&&H&&(c.tvAppInfo=Object.assign({},c.tvAppInfo,{deviceYear:H})); if(H=h.livingRoomPoTokenId)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomPoTokenId:H});W.client=c;c=W.user||{};h.enableSafetyMode&&(c=Object.assign({},c,{enableSafetyMode:!0}));h.pageId&&(c=Object.assign({},c,{onBehalfOfUser:h.pageId}));W.user=c;c=h.Zn;h.j("embeds_web_enable_iframe_api_send_full_embed_url")||h.j("embeds_web_enable_rcat_validation_in_havs")||h.j("embeds_enable_autoplay_and_visibility_signals")||!c||(W.thirdParty={embedUrl:c});return W}; GaD=function(h,W,c){var V=h.videoId,H=g.jb(h),B=h.B(),E={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(xA()),referer:document.location.toString(),signatureTimestamp:20292};g.yY();h.isAutonav&&(E.autonav=!0);g.Pt(0,141)&&(E.autonavState=g.Pt(0,140)?"STATE_OFF":"STATE_ON");E.autoCaptionsDefaultOn=g.Pt(0,66);gCN(h)&&(E.autoplay=!0);B.Z&&h.cycToken&&(E.cycToken=h.cycToken);B.enablePrivacyFilter&&(E.enablePrivacyFilter=!0);h.isFling&&(E.fling=!0);var J=h.forceAdsUrl;if(J){var u={},d=[];J= J.split(",");J=g.e(J);for(var G=J.next();!G.done;G=J.next()){G=G.value;var Z=G.split("|");Z.length!==3||G.includes("=")||(Z[0]="breaktype="+Z[0],Z[1]="offset="+Z[1],Z[2]="url="+Z[2]);G={adtype:"video_ad"};Z=g.e(Z);for(var r=Z.next();!r.done;r=Z.next()){var q=g.e(r.value.split("="));r=q.next().value;q=skv(q);G[r]=q.join("=")}Z=G.url;r=G.presetad;q=G.viralresponseurl;var x=Number(G.campaignid);if(G.adtype==="in_display_ad")Z&&(u.url=Z),r&&(u.presetAd=r),q&&(u.viralAdResponseUrl=q),x&&(u.viralCampaignId= String(x));else if(G.adtype==="video_ad"){var z={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(G.offset)||0)}};if(G=ElN[G.breaktype])z.breakType=G;Z&&(z.url=Z);r&&(z.presetAd=r);q&&(z.viralAdResponseUrl=q);x&&(z.viralCampaignId=String(x));d.push(z)}}E.forceAdParameters={videoAds:d,inDisplayAd:u}}h.isInlinePlaybackNoAd&&(E.isInlinePlaybackNoAd=!0);h.isLivingRoomDeeplink&&(E.isLivingRoomDeeplink=!0);u=h.XB;if(u!=null){u={startWalltime:String(u)};if(d=h.PO)u.manifestDuration=String(d||14400); E.liveContext=u}if(h.mutedAutoplay){E.mutedAutoplay=!0;u=B.getWebPlayerContextConfig();var L,M;(u==null?0:(L=u.embedsHostFlags)==null?0:L.allowMutedAutoplayDurationMode)&&(u==null?0:(M=u.embedsHostFlags)==null?0:M.allowMutedAutoplayDurationMode.includes(RQD[h.mutedAutoplayDurationMode]))&&(E.mutedAutoplayDurationMode=RQD[h.mutedAutoplayDurationMode])}if(h.mF?0:h.lJ)E.splay=!0;L=h.vnd;L===5&&(E.vnd=L);L={};if(M=h.isMdxPlayback)L.triggeredByMdx=M;if(M=h.QQ)L.skippableAdsSupported=M.split(",").includes("ska"); if(d=h.cR){M=h.ZC;u=[];d=g.e(Jlk(d));for(J=d.next();!J.done;J=d.next()){J=J.value;G=J.platform;J={applicationState:J.BI?"INACTIVE":"ACTIVE",clientFormFactor:JxQ[G]||"UNKNOWN_FORM_FACTOR",clientName:db7[J.Ki]||"UNKNOWN_INTERFACE",clientVersion:J.deviceVersion||"",platform:uGQ[G]||"UNKNOWN_PLATFORM"};G={};if(M){Z=void 0;try{Z=JSON.parse(M)}catch(y){g.Lx(y)}Z&&(G={params:[{key:"ms",value:Z.ms}]},Z.advertising_id&&(G.advertisingId=Z.advertising_id),Z.limit_ad_tracking!==void 0&&Z.limit_ad_tracking!== null&&(G.limitAdTracking=Z.limit_ad_tracking),J.osName=Z.os_name,J.userAgent=Z.user_agent,J.windowHeightPoints=Z.window_height_points,J.windowWidthPoints=Z.window_width_points)}u.push({adSignalsInfo:G,remoteClient:J})}L.remoteContexts=u}M=h.sourceContainerPlaylistId;u=h.serializedMdxMetadata;if(M||u)d={},M&&(d.mdxPlaybackContainerInfo={sourceContainerPlaylistId:M}),u&&(d.serializedMdxMetadata=u),L.mdxPlaybackSourceContext=d;E.mdxContext=L;L=W.width;L>0&&(E.playerWidthPixels=Math.round(L));if(W=W.height)E.playerHeightPixels= Math.round(W);c!==0&&(E.vis=c);if(c=B.widgetReferrer)E.widgetReferrer=c.substring(0,128);g.DE(B)&&E&&(E.ancestorOrigins=B.ancestorOrigins);h.defaultActiveSourceVideoId&&(E.compositeVideoContext={defaultActiveSourceVideoId:h.defaultActiveSourceVideoId});if(B=B.getWebPlayerContextConfig())E.encryptedHostFlags=B.encryptedHostFlags;V={videoId:V,context:H,playbackContext:{contentPlaybackContext:E}};if(h.d6){var U;V.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(U=h.d6)==null?void 0:U.reloadPlaybackParams}}h.contentCheckOk&& (V.contentCheckOk=!0);if(U=h.clientPlaybackNonce)V.cpn=U;if(U=h.playerParams)V.params=U;if(U=h.playlistId)V.playlistId=U;h.racyCheckOk&&(V.racyCheckOk=!0);U=h.B();H=U.embedConfig;h.u9&&U.j("embeds_enable_per_video_embed_config")?V.serializedThirdPartyEmbedConfig=h.u9:H&&(V.serializedThirdPartyEmbedConfig=H);V.captionParams={};H=g.Pt(g.yY(),65);h.deviceCaptionsOn!=null?V.captionParams.deviceCaptionsOn=h.deviceCaptionsOn:g.lo(U)&&(V.captionParams.deviceCaptionsOn=H!=null?!H:!1);h.s6&&(V.captionParams.deviceCaptionsLangPref= h.s6);h.RP.length?V.captionParams.viewerSelectedCaptionLangs=h.RP:g.lo(U)&&(H=g.qp(),H==null?0:H.length)&&(V.captionParams.viewerSelectedCaptionLangs=H);H=h.fetchType==="onesie"&&h.j("html5_onesie_attach_po_token");E=h.fetchType!=="onesie"&&h.j("html5_non_onesie_attach_po_token");if(H||E)H=h.B(),H.mF&&(V.serviceIntegrityDimensions={},V.serviceIntegrityDimensions.poToken=H.mF);U.j("fetch_att_independently")&&(V.attestationRequest={omitBotguardData:!0});V.playbackContext||(V.playbackContext={});V.playbackContext.devicePlaybackCapabilities= d15(h);V.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&h.GV("noVp9",{});return V}; d15=function(h){var W=!(h==null?0:h.Sm())&&(h==null?void 0:h.Hi())&&SO(),c;if(!(c=h==null)){c=g.UP(h);h=h.B().C;var V=Ua("243");c=!(V&&yQ(c,V,h,!0)===!0)}return{supportsVp9Encoding:!(c||W),supportXhr:rh}}; rx5=function(h,W){var c,V,H;return g.P(function(B){if(B.W==1)return c={context:g.nQ(h.B()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:h.videoId,cpn:h.clientPlaybackNonce}}]},V=g.OA(Z0v),g.F(B,g.CE(W,c,V),2);H=B.X;return B.return(H)})}; qf7=function(h,W,c){var V=g.DF(W.experiments,"bg_vm_reinit_threshold");(!wU||(0,g.aC)()-wU>V)&&rx5(h,c).then(function(H){H&&(H=H.botguardData)&&g.hu(H,W)},function(H){h.gE()||(H=uX(H),h.GV("attf",H.details))})}; ao=function(h,W){g.N.call(this);this.app=h;this.state=W}; zr=function(h,W,c){h.state.X.hasOwnProperty(W)||eb(h,W,c);h.state.S[W]=function(){return c.apply(h,g.tN.apply(0,arguments))}; h.state.N.add(W)}; QC=function(h,W,c){h.state.X.hasOwnProperty(W)||eb(h,W,c);h.app.B().Z&&(h.state.Z[W]=function(){return c.apply(h,g.tN.apply(0,arguments))},h.state.N.add(W))}; eb=function(h,W,c){h.state.X[W]=function(){return c.apply(h,g.tN.apply(0,arguments))}}; g.LQ=function(h,W,c){return h.state.X[W].apply(h.state.X,g.rN(c))}; ic=function(){g.ar.call(this);this.C=new Map}; KQ=function(){g.N.apply(this,arguments);this.element=null;this.N=new Set;this.S={};this.Z={};this.X={};this.T=new Set;this.G=new ic;this.W=new ic;this.Y=new ic;this.C=new ic}; x1D=function(h,W,c){typeof h==="string"&&(h={mediaContentUrl:h,startSeconds:W,suggestedQuality:c});a:{if((W=h.mediaContentUrl)&&(W=/\/([ve]|embed)\/([^#?]+)/.exec(W))&&W[2]){W=W[2];break a}W=null}h.videoId=W;return A7(h)}; A7=function(h,W,c){if(typeof h==="string")return{videoId:h,startSeconds:W,suggestedQuality:c};W={};c=g.e(lqU);for(var V=c.next();!V.done;V=c.next())V=V.value,h[V]&&(W[V]=h[V]);if(h=h.embedConfig||h.embed_config)if(typeof h==="string")W.embed_config=h;else if(g.H2(h))try{var H=JSON.stringify(h);W.embed_config=H}catch(B){console.error("Invalid embedConfig JSON",B)}return W}; nlh=function(h,W,c,V){if(g.H2(h)&&!Array.isArray(h)){W="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(V=0;V32&&V.push("hfr");W.isHdr()&&V.push("hdr");W.primaries==="bt2020"&&V.push("wcg");c.video_quality_features=V}}if(h=h.getPlaylistId())c.list=h;return c}; yC=function(){UV.apply(this,arguments)}; PN=function(h,W){var c={};if(h.app.B().Wk){h=g.e(zQ7);for(var V=h.next();!V.done;V=h.next())V=V.value,W.hasOwnProperty(V)&&(c[V]=W[V]);if(W=c.qoe_cat)h="",typeof W==="string"&&W.length>0&&(h=W.split(",").filter(function(H){return Qq4.includes(H)}).join(",")),c.qoe_cat=h; LHN(c)}else for(h=g.e(i0Q),V=h.next();!V.done;V=h.next())V=V.value,W.hasOwnProperty(V)&&(c[V]=W[V]);return c}; LHN=function(h){var W=h.raw_player_response;if(!W){var c=h.player_response;c&&(W=JSON.parse(c))}delete h.player_response;delete h.raw_player_response;if(W){h.raw_player_response={streamingData:W.streamingData,playerConfig:W.playerConfig};var V;if((V=W.playbackTracking)==null?0:V.qoeUrl)h.raw_player_response=Object.assign({},h.raw_player_response,{playbackTracking:{qoeUrl:W.playbackTracking.qoeUrl}});W.videoDetails&&(W.videoDetails.videoId||W.videoDetails.lengthSeconds)&&(c={},W.videoDetails.videoId&& (c.videoId=W.videoDetails.videoId),W.videoDetails.lengthSeconds&&(c.lengthSeconds=W.videoDetails.lengthSeconds),h.raw_player_response=Object.assign({},h.raw_player_response,{videoDetails:c}))}}; fQ=function(h,W,c){var V=h.app.wW(c);if(!V)return 0;h=V-h.app.getCurrentTime(c);return W-h}; AxD=function(h){var W=W===void 0?5:W;return h?KH7[h]||W:W}; g.bc=function(){yC.apply(this,arguments)}; U1L=function(h){eb(h,"getInternalApiInterface",h.getInternalApiInterface);eb(h,"addEventListener",h.MW);eb(h,"removeEventListener",h.v4B);eb(h,"cueVideoByPlayerVars",h.r$);eb(h,"loadVideoByPlayerVars",h.Mi);eb(h,"preloadVideoByPlayerVars",h.esg);eb(h,"getAdState",h.getAdState);eb(h,"sendAbandonmentPing",h.sendAbandonmentPing);eb(h,"setLoopRange",h.setLoopRange);eb(h,"getLoopRange",h.getLoopRange);eb(h,"setAutonavState",h.setAutonavState);eb(h,"seekTo",h.o4W);eb(h,"seekBy",h.sVk);eb(h,"seekToLiveHead", h.seekToLiveHead);eb(h,"requestSeekToWallTimeSeconds",h.requestSeekToWallTimeSeconds);eb(h,"seekToStreamTime",h.seekToStreamTime);eb(h,"prefetchKeyPlay",h.prefetchKeyPlay);eb(h,"startSeekCsiAction",h.startSeekCsiAction);eb(h,"getStreamTimeOffset",h.getStreamTimeOffset);eb(h,"getVideoData",h.zO);eb(h,"setInlinePreview",h.setInlinePreview);eb(h,"getAppState",h.getAppState);eb(h,"updateLastActiveTime",h.updateLastActiveTime);eb(h,"setBlackout",h.setBlackout);eb(h,"setUserEngagement",h.setUserEngagement); eb(h,"updateSubtitlesUserSettings",h.updateSubtitlesUserSettings);eb(h,"getPresentingPlayerType",h.vI);eb(h,"canPlayType",h.canPlayType);eb(h,"updatePlaylist",h.updatePlaylist);eb(h,"updateVideoData",h.updateVideoData);eb(h,"updateEnvironmentData",h.updateEnvironmentData);eb(h,"sendVideoStatsEngageEvent",h.cEE);eb(h,"productsInVideoVisibilityUpdated",h.productsInVideoVisibilityUpdated);eb(h,"setSafetyMode",h.setSafetyMode);eb(h,"isAtLiveHead",function(W){return h.isAtLiveHead(void 0,W)}); eb(h,"getVideoAspectRatio",h.getVideoAspectRatio);eb(h,"getPreferredQuality",h.getPreferredQuality);eb(h,"getPlaybackQualityLabel",h.getPlaybackQualityLabel);eb(h,"setPlaybackQualityRange",h.eqH);eb(h,"onAdUxClicked",h.onAdUxClicked);eb(h,"getFeedbackProductData",h.getFeedbackProductData);eb(h,"getStoryboardFrame",h.getStoryboardFrame);eb(h,"getStoryboardFrameIndex",h.getStoryboardFrameIndex);eb(h,"getStoryboardLevel",h.getStoryboardLevel);eb(h,"getNumberOfStoryboardLevels",h.getNumberOfStoryboardLevels); eb(h,"getCaptionWindowContainerId",h.getCaptionWindowContainerId);eb(h,"getAvailableQualityLabels",h.getAvailableQualityLabels);eb(h,"addCueRange",h.addCueRange);eb(h,"addUtcCueRange",h.addUtcCueRange);eb(h,"showAirplayPicker",h.showAirplayPicker);eb(h,"dispatchReduxAction",h.dispatchReduxAction);eb(h,"getPlayerResponse",h.aY);eb(h,"getWatchNextResponse",h.Nz);eb(h,"getHeartbeatResponse",h.w4);eb(h,"getCurrentTime",h.EP);eb(h,"getDuration",h.ph);eb(h,"getPlayerState",h.getPlayerState);eb(h,"getPlayerStateObject", h.GO);eb(h,"getVideoLoadedFraction",h.getVideoLoadedFraction);eb(h,"getProgressState",h.getProgressState);eb(h,"getVolume",h.getVolume);eb(h,"setVolume",h.B4);eb(h,"isMuted",h.isMuted);eb(h,"mute",h.GK);eb(h,"unMute",h.kA);eb(h,"loadModule",h.loadModule);eb(h,"unloadModule",h.unloadModule);eb(h,"getOption",h.G5);eb(h,"getOptions",h.getOptions);eb(h,"setOption",h.setOption);eb(h,"loadVideoById",h.r5);eb(h,"loadVideoByUrl",h.cn);eb(h,"playVideo",h.SV);eb(h,"loadPlaylist",h.loadPlaylist);eb(h,"nextVideo", h.nextVideo);eb(h,"previousVideo",h.previousVideo);eb(h,"playVideoAt",h.playVideoAt);eb(h,"getDebugText",h.getDebugText);eb(h,"getWebPlayerContextConfig",h.getWebPlayerContextConfig);eb(h,"notifyShortsAdSwipeEvent",h.notifyShortsAdSwipeEvent);eb(h,"getVideoContentRect",h.getVideoContentRect);eb(h,"setSqueezeback",h.setSqueezeback);eb(h,"toggleSubtitlesOn",h.toggleSubtitlesOn);eb(h,"isSubtitlesOn",h.isSubtitlesOn);eb(h,"reportPlaybackIssue",h.reportPlaybackIssue);eb(h,"setAutonav",h.setAutonav);eb(h, "isNotServable",h.isNotServable);eb(h,"channelSubscribed",h.channelSubscribed);eb(h,"channelUnsubscribed",h.channelUnsubscribed);eb(h,"togglePictureInPicture",h.togglePictureInPicture);eb(h,"supportsGaplessAudio",h.supportsGaplessAudio);eb(h,"supportsGaplessShorts",h.supportsGaplessShorts);eb(h,"enqueueVideoByPlayerVars",function(W){return void h.enqueueVideoByPlayerVars(W)}); eb(h,"clearQueue",h.clearQueue);eb(h,"getAudioTrack",h.yB);eb(h,"setAudioTrack",h.JEV);eb(h,"getAvailableAudioTracks",h.x5);eb(h,"getMaxPlaybackQuality",h.getMaxPlaybackQuality);eb(h,"getUserPlaybackQualityPreference",h.getUserPlaybackQualityPreference);eb(h,"getSubtitlesUserSettings",h.getSubtitlesUserSettings);eb(h,"resetSubtitlesUserSettings",h.resetSubtitlesUserSettings);eb(h,"setMinimized",h.setMinimized);eb(h,"setOverlayVisibility",h.setOverlayVisibility);eb(h,"confirmYpcRental",h.confirmYpcRental); eb(h,"queueNextVideo",h.queueNextVideo);eb(h,"handleExternalCall",h.handleExternalCall);eb(h,"logApiCall",h.logApiCall);eb(h,"isExternalMethodAvailable",h.isExternalMethodAvailable);eb(h,"setScreenLayer",h.setScreenLayer);eb(h,"getCurrentPlaylistSequence",h.getCurrentPlaylistSequence);eb(h,"getPlaylistSequenceForTime",h.getPlaylistSequenceForTime);eb(h,"shouldSendVisibilityState",h.shouldSendVisibilityState);eb(h,"syncVolume",h.syncVolume);eb(h,"highlightSettingsMenuItem",h.highlightSettingsMenuItem); eb(h,"openSettingsMenuItem",h.openSettingsMenuItem);eb(h,"getEmbeddedPlayerResponse",h.getEmbeddedPlayerResponse);eb(h,"getVisibilityState",h.getVisibilityState);eb(h,"isMutedByMutedAutoplay",h.isMutedByMutedAutoplay);eb(h,"isMutedByEmbedsMutedAutoplay",h.isMutedByEmbedsMutedAutoplay);eb(h,"setGlobalCrop",h.setGlobalCrop);eb(h,"setInternalSize",h.setInternalSize);eb(h,"setFauxFullscreen",h.setFauxFullscreen);eb(h,"setAppFullscreen",h.setAppFullscreen)}; Ne=function(h,W,c){h=g.Tr(h.sX(),W);return c?(c.addOnDisposeCallback(h),null):h}; g.X1=function(h,W,c){return h.app.B().BV?W:g.hl("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:W,SHORTCUT:c})}; CmL=function(h){h.sX().element.setAttribute("aria-live","polite")}; g.t7=function(h,W){g.bc.call(this,h,W);U1L(this);QC(this,"addEventListener",this.pk);QC(this,"removeEventListener",this.bjE);QC(this,"cueVideoByPlayerVars",this.cL);QC(this,"loadVideoByPlayerVars",this.t1);QC(this,"preloadVideoByPlayerVars",this.E9V);QC(this,"loadVideoById",this.r5);QC(this,"loadVideoByUrl",this.cn);QC(this,"playVideo",this.SV);QC(this,"loadPlaylist",this.loadPlaylist);QC(this,"nextVideo",this.nextVideo);QC(this,"previousVideo",this.previousVideo);QC(this,"playVideoAt",this.playVideoAt); QC(this,"getVideoData",this.kR);QC(this,"seekBy",this.UsW);QC(this,"seekTo",this.rEW);QC(this,"showControls",this.showControls);QC(this,"hideControls",this.hideControls);QC(this,"cancelPlayback",this.cancelPlayback);QC(this,"getProgressState",this.getProgressState);QC(this,"isInline",this.isInline);QC(this,"setInline",this.setInline);QC(this,"setLoopVideo",this.setLoopVideo);QC(this,"getLoopVideo",this.getLoopVideo);QC(this,"getVideoContentRect",this.getVideoContentRect);QC(this,"getVideoStats",this.QI); QC(this,"getCurrentTime",this.TM);QC(this,"getDuration",this.ph);QC(this,"getPlayerState",this.dH);QC(this,"getVideoLoadedFraction",this.DY);QC(this,"mute",this.GK);QC(this,"unMute",this.kA);QC(this,"setVolume",this.B4);QC(this,"loadModule",this.loadModule);QC(this,"unloadModule",this.unloadModule);QC(this,"getOption",this.G5);QC(this,"getOptions",this.getOptions);QC(this,"setOption",this.setOption);QC(this,"addCueRange",this.addCueRange);QC(this,"getDebugText",this.getDebugText);QC(this,"getStoryboardFormat", this.getStoryboardFormat);QC(this,"toggleFullscreen",this.toggleFullscreen);QC(this,"isFullscreen",this.isFullscreen);QC(this,"getPlayerSize",this.getPlayerSize);QC(this,"toggleSubtitles",this.toggleSubtitles);QC(this,"setCenterCrop",this.setCenterCrop);QC(this,"setFauxFullscreen",this.setFauxFullscreen);QC(this,"setSizeStyle",this.setSizeStyle);QC(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);QC(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);aq5(this)}; g.vN=function(h){h=h.Pi();var W=h.tq.get("endscreen");return W&&W.Sb()?!0:h.eH()}; g.oo=function(h,W){h.getPresentingPlayerType()===3?h.publish("mdxautoplaycancel"):h.Iz("onAutonavCancelled",W)}; g.Io=function(h){var W=pQ(h.Pi());return h.app.kC&&!h.isFullscreen()||h.getPresentingPlayerType()===3&&W&&W.mA()&&W.J0()||!!h.getPlaylist()}; g.YM=function(h,W){g.LQ(h,"addEmbedsConversionTrackingParams",[W])}; g.Sb=function(h){return(h=g.OV(h.Pi()))?h.wj():{}}; g.Mo4=function(h){h=(h=h.getVideoData())&&h.W;return!!h&&!(!h.audio||!h.video)&&h.mimeType!=="application/x-mpegURL"}; g.ge=function(h,W,c){h=h.Bk().element;var V=of(h.children,function(H){H=Number(H.getAttribute("data-layer"));return c-H||1}); V<0&&(V=-(V+1));li(h,W,V);W.setAttribute("data-layer",String(c))}; g.Df=function(h){var W=h.B();if(!W.hq)return!1;var c=h.getVideoData();if(!c||h.getPresentingPlayerType()===3)return!1;var V=(!c.isLiveDefaultBroadcast||W.j("allow_poltergust_autoplay"))&&!qe(c);V=c.isLivePlayback&&(!W.j("allow_live_autoplay")||!V);var H=c.isLivePlayback&&W.j("allow_live_autoplay_on_mweb");h=h.getPlaylist();h=!!h&&h.mA();var B=c.mW&&c.mW.playerOverlays||null;B=!!(B&&B.playerOverlayRenderer&&B.playerOverlayRenderer.autoplay);B=c.B0&&B;return!c.ypcPreview&&(!V||H)&&!g.el(c.T,"ypc")&& !h&&(!g.DE(W)||B)}; yxl=function(h,W){h=FHv(h.app.mR().C);h=g.e(h);for(var c=h.next();!c.done;c=h.next()){c=c.value;var V=c.getAvailableAudioTracks(),H=null;V=g.e(V);for(var B=V.next();!B.done;B=V.next())if(B=B.value,B.getLanguageInfo().getId()===W){H=B;break}H&&c.u1(H,!0)}}; we=function(){Mz.apply(this,arguments);this.requestHeaders={}}; hK=function(){kM||(kM=new we);return kM}; WV=function(h,W){W?h.requestHeaders.Authorization="Bearer "+W:delete h.requestHeaders.Authorization}; g.cV=function(h){g.N.call(this);var W=this;this.lB=h;this.uX={pO:function(){return W.lB}}}; g.Vv=function(h,W,c,V){V=V===void 0?!1:V;g.sJ.call(this,W);var H=this;this.L=h;this.Pk=V;this.Z=new g.lX(this);this.fade=new g.SL(this,c,!0,void 0,void 0,function(){H.Z7()}); g.X(this,this.Z);g.X(this,this.fade)}; $K=function(h){var W=h.L.getRootNode();return h.L.j("web_watch_pip")||h.L.j("web_shorts_pip")?hs(W):document}; PmD=function(h){h.W&&(document.activeElement&&g.jk(h.element,document.activeElement)&&h.W.focus(),h.W.setAttribute("aria-expanded","false"),h.W=void 0);g.zR(h.Z);h.T=void 0}; sg=function(h,W,c){h.Qz()?h.NU():h.qd(W,c)}; HV=function(h,W,c,V){V=new g.p({D:"div",LM:["ytp-linked-account-popup-button"],YN:V,J:{role:"button",tabindex:"0"}});W=new g.p({D:"div",K:"ytp-linked-account-popup",J:{role:"dialog","aria-modal":"true",tabindex:"-1"},V:[{D:"div",K:"ytp-linked-account-popup-title",YN:W},{D:"div",K:"ytp-linked-account-popup-description",YN:c},{D:"div",K:"ytp-linked-account-popup-buttons",V:[V]}]});g.Vv.call(this,h,{D:"div",K:"ytp-linked-account-popup-container",V:[W]},100);var H=this;this.dialog=W;g.X(this,this.dialog); V.listen("click",function(){H.NU()}); g.X(this,V);g.ge(this.L,this.element,4);this.hide()}; g.Eg=function(h,W,c,V){g.sJ.call(this,h);this.priority=W;c&&g.BV(this,c);V&&this.rW(V)}; g.RB=function(h,W,c,V){h=h===void 0?{}:h;W=W===void 0?[]:W;c=c===void 0?!1:c;V=V===void 0?!1:V;W.push("ytp-menuitem");var H=h;"role"in H||(H.role="menuitem");c||(H=h,"tabindex"in H||(H.tabindex="0"));h={D:c?"a":"div",LM:W,J:h,V:[{D:"div",K:"ytp-menuitem-icon",YN:"{{icon}}"},{D:"div",K:"ytp-menuitem-label",YN:"{{label}}"},{D:"div",K:"ytp-menuitem-content",YN:"{{content}}"}]};V&&h.V.push({D:"div",K:"ytp-menuitem-secondary-icon",YN:"{{secondaryIcon}}"});return h}; g.BV=function(h,W){h.updateValue("label",W)}; JK=function(h){g.Eg.call(this,g.RB({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var W=this;this.L=h;this.W=this.X=!1;this.YZ=h.zA();h.createServerVe(this.element,this,!0);this.U(this.L,"settingsMenuVisibilityChanged",function(c){W.o1(c)}); this.U(this.L,"videodatachange",this.Y);this.listen("click",this.onClick);this.Y()}; ul=function(h){return h?g.EJ(h):""}; da=function(h){g.N.call(this);this.api=h}; Gv=function(h){da.call(this,h);var W=this;eb(h,"setAccountLinkState",function(c){W.setAccountLinkState(c)}); eb(h,"updateAccountLinkingConfig",function(c){W.updateAccountLinkingConfig(c)}); h.addEventListener("videodatachange",function(c,V){W.onVideoDataChange(V)}); h.addEventListener("settingsMenuInitialized",function(){W.menuItem=new JK(W.api);g.X(W,W.menuItem)})}; fqv=function(h){this.api=h;this.X={}}; ZW=function(h,W,c,V){W in h.X||(c=new g.t$(c,V,{id:W,priority:2,namespace:"appad"}),h.api.Fi([c],1),h.X[W]=c)}; ra=function(h){da.call(this,h);var W=this;this.events=new g.lX(this);g.X(this,this.events);this.X=new fqv(this.api);this.events.U(this.api,"legacyadtrackingpingreset",function(){W.X.X={}}); this.events.U(this.api,"legacyadtrackingpingchange",function(c){var V=W.X;ZW(V,"part2viewed",1,0x8000000000000);ZW(V,"engagedview",Math.max(1,c.uW*1E3),0x8000000000000);if(!c.isLivePlayback){var H=c.lengthSeconds*1E3;Qk(c)&&V.api.j("html5_shorts_gapless_ads_duration_fix")&&(H=V.api.getProgressState().seekableEnd*1E3-c.VH);ZW(V,"videoplaytime25",H*.25,H);ZW(V,"videoplaytime50",H*.5,H);ZW(V,"videoplaytime75",H*.75,H);ZW(V,"videoplaytime100",H,0x8000000000000);ZW(V,"conversionview",H,0x8000000000000); ZW(V,"videoplaybackstart",1,H);ZW(V,"videoplayback2s",2E3,H);ZW(V,"videoplayback10s",1E4,H)}}); this.events.U(this.api,g.mZ("appad"),this.W);this.events.U(this.api,g.om("appad"),this.W)}; XL7=function(h,W,c){if(!(c in W))return!1;W=W[c];Array.isArray(W)||(W=[W]);W=g.e(W);for(c=W.next();!c.done;c=W.next()){c=c.value;var V={CPN:h.api.getVideoData().clientPlaybackNonce};c=g.Q8(c,V);V=void 0;V=V===void 0?!1:V;(V=PH(fm(c,b0T),c,V,"Active View 3rd Party Integration URL"))||(V=void 0,V=V===void 0?!1:V,V=PH(fm(c,TUD),c,V,"Google/YouTube Brand Lift URL"));V||(V=void 0,V=V===void 0?!1:V,V=PH(fm(c,NUD),c,V,"Nielsen OCR URL"));g.Cj(c,void 0,V)}return!0}; qS=function(h,W){tod(h,W).then(function(c){g.Cj(W,void 0,void 0,c)})}; xK=function(h,W){W.forEach(function(c){qS(h,c)})}; tod=function(h,W){return g.uJ(h.api.B())&&Vn(W)&&cf(W)?g.Ky(h.api.B(),g.BN(h.api.getVideoData())).then(function(c){var V;c&&(V={Authorization:"Bearer "+c});return V},void 0):iW()}; vlN=function(h){da.call(this,h);this.events=new g.lX(h);g.X(this,this.events);this.events.U(h,"videoready",function(W){if(h.getPresentingPlayerType()===1){var c,V,H={playerDebugData:{pmlSignal:!!((c=W.getPlayerResponse())==null?0:(V=c.adPlacements)==null?0:V.some(function(B){var E;return B==null?void 0:(E=B.adPlacementRenderer)==null?void 0:E.renderer})), contentCpn:W.clientPlaybackNonce}};g.V5("adsClientStateChange",H)}})}; ll=function(h){da.call(this,h);var W=this;this.events=new g.lX(h);g.X(this,this.events);eb(this.api,"getUserAudioQualitySetting",function(){return W.getUserAudioQualitySetting()}); eb(this.api,"setUserAudioQualitySetting",function(c){W.setUserAudioQualitySetting(c)}); eb(this.api,"hasHqaAudioTrack",function(){return W.hasHqaAudioTrack()}); this.lP=H5T();this.updateEnvironmentData()}; nz=function(h){g.p.call(this,{D:"button",LM:["ytp-button","ytp-autonav-toggle"],J:{title:h.j("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},V:[{D:"div",K:"ytp-autonav-toggle-button-container",V:[{D:"div",K:"ytp-autonav-toggle-button",J:{"aria-checked":"true"}}]}]});this.L=h;this.W=[];this.X=!1;this.isChecked=!0;h.createClientVe(this.element,this, 113681);this.U(h,"presentingplayerstatechange",this.n8);this.listen("click",this.onClick);this.L.B().j("web_player_autonav_toggle_always_listen")&&m1D(this);Ne(h,this.element,this);this.n8()}; m1D=function(h){h.W.push(h.U(h.L,"videodatachange",h.n8));h.W.push(h.U(h.L,"videoplayerreset",h.n8));h.W.push(h.U(h.L,"onPlaylistUpdate",h.n8));h.W.push(h.U(h.L,"autonavchange",h.v2))}; olv=function(h){h.isChecked=h.isChecked;h.vk("ytp-autonav-toggle-button").setAttribute("aria-checked",String(h.isChecked));var W=h.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";h.L.B().j("player_tooltip_data_title_killswitch")?h.update({title:W,label:W}):h.update({"data-tooltip-title":W,label:W});h.L.XK()}; pLp=function(h){return h.L.B().j("web_player_autonav_use_server_provided_state")&&lU(h.O8())}; Iqp=function(h){da.call(this,h);var W=this;this.events=new g.lX(h);g.X(this,this.events);this.events.U(h,"standardControlsInitialized",function(){var c=new nz(h);g.X(W,c);h.RX(c,"RIGHT_CONTROLS_LEFT")})}; jY=function(h,W){g.Eg.call(this,g.RB({role:"menuitemcheckbox","aria-checked":"false"}),W,h,{D:"div",K:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; aB=function(h,W){h.checked=W;h.element.setAttribute("aria-checked",String(h.checked))}; YfN=function(h){var W=!h.B().yX&&h.getPresentingPlayerType()!==3;return h.isFullscreen()||W}; g.eY=function(h,W,c,V){var H=h.currentTarget;if((c===void 0||!c)&&g.l7(h))return h.preventDefault(),!0;W.pauseVideo();h=H.getAttribute("href");g.b7(h,V,!0);return!1}; g.zv=function(h,W,c){if(ru(W.B())&&W.getPresentingPlayerType()!==2){if(g.l7(c))return W.isFullscreen()&&!W.B().externalFullscreen&&W.toggleFullscreen(),c.preventDefault(),!0}else{var V=g.l7(c);V&&W.pauseVideo();g.b7(h,void 0,!0);V&&(g.T3(h),c.preventDefault())}return!1}; O0N=function(h){h=Qv.includes("es-419")?h.j("delhi_modern_web_player_icons")?Zb():{D:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{D:"path",AI:!0,J:{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"}}]}:h.j("delhi_modern_web_player_icons")?XtD():{D:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{D:"path",AI:!0,J:{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"}}]};h.K="ytp-subtitles-button-icon"; return h}; Sfp=function(h){return Qv.includes("es-419")?h?Zb():{D:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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"}}]}:h?{D:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},V:[{D:"path",J:{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"}}]}:{D:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; Lz=function(){return{D:"div",K:"ytp-spinner-container",V:[{D:"div",K:"ytp-spinner-rotator",V:[{D:"div",K:"ytp-spinner-left",V:[{D:"div",K:"ytp-spinner-circle"}]},{D:"div",K:"ytp-spinner-right",V:[{D:"div",K:"ytp-spinner-circle"}]}]}]}}; il=function(h){if(document.createRange){var W=document.createRange();W&&(W.selectNodeContents(h),h=window.getSelection())&&(h.removeAllRanges(),h.addRange(W))}}; Ug=function(h){var W=h.j("web_player_use_cinematic_label_2")?"Modo ambiente":"Iluminaci\u00f3n cinematogr\u00e1fica";jY.call(this,W,g.Kz.R0);var c=this;this.L=h;this.X=!1;this.W=new g.oD(function(){g.cD(c.element,"ytp-menuitem-highlighted")},0); this.YZ=h.zA();h=h.j("delhi_modern_web_player_icons")?{D:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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"}}]}:{D:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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(h);this.subscribe("select",this.G,this);this.listen(AK,this.Y);g.X(this,this.W)}; Cz=function(h){da.call(this,h);var W=this;this.X=!1;h.addEventListener("settingsMenuInitialized",function(){gll(W)}); h.addEventListener("highlightSettingsMenu",function(c){gll(W);var V=W.menuItem;c==="menu_item_cinematic_lighting"&&(g.he(V.element,"ytp-menuitem-highlighted"),g.he(V.element,"ytp-menuitem-highlight-transition-enabled"),V.W.start())}); eb(h,"updateCinematicSettings",function(c){W.updateCinematicSettings(c)})}; gll=function(h){h.menuItem||(h.menuItem=new Ug(h.api),g.X(h,h.menuItem),h.menuItem.FI(h.X))}; D1U=function(h){da.call(this,h);var W=this;this.events=new g.lX(h);g.X(this,this.events);this.events.U(h,"applicationvideodatachange",function(c,V){V=V.clipConfig;c==="dataloaded"&&V&&V.startTimeMs!=null&&V.endTimeMs!=null&&W.api.setLoopRange({startTimeMs:Math.floor(Number(V.startTimeMs)),endTimeMs:Math.floor(Number(V.endTimeMs)),postId:V.postId,type:"clips"})})}; MS=function(h){da.call(this,h);this.events=new g.lX(h);g.X(this,this.events);eb(h,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));eb(h,"setCreatorEndscreenHideButton",this.X.bind(this))}; F5=function(h,W,c,V){jY.call(this,"Volumen estable",g.Kz.H8);g.he(this.element,"ytp-drc-menu-item");this.YZ=h.zA();this.G=W;this.X=c;this.hasDrcAudioTrack=V;h.addEventListener("videodatachange",this.W.bind(this));h.j("mta_drc_mutual_exclusion_removal")&&this.U(h,"onPlaybackAudioChange",this.W);W=this.X()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());h=h.j("delhi_modern_web_player_icons")?{D:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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"}}]}:{D:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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(h);this.subscribe("select",this.Y,this);aB(this,W);this.YZ.zx(this)}; yv=function(h){da.call(this,h);var W=this;this.events=new g.lX(h);g.X(this,this.events);h.j("html5_show_drc_toggle")&&h.addEventListener("settingsMenuInitialized",function(){W.menuItem||(W.menuItem=new F5(W.api,W.setDrcUserPreference.bind(W),W.getDrcUserPreference.bind(W),W.W.bind(W)),g.X(W,W.menuItem))}); eb(this.api,"setDrcUserPreference",function(V){W.setDrcUserPreference(V)}); eb(this.api,"getDrcUserPreference",function(){return W.getDrcUserPreference()}); eb(this.api,"hasDrcAudioTrack",function(){return W.W()}); var c;this.X=(c=g.KS("yt-player-drc-pref"))!=null?c:1;this.updateEnvironmentData()}; PV=function(h){da.call(this,h);var W=this;this.X={};this.events=new g.lX(h);g.X(this,this.events);this.events.U(h,"videodatachange",function(){W.onVideoDataChange()}); this.events.U(h,g.mZ("embargo"),function(c){W.api.oD(!0);var V,H=(V=W.X[c.id])!=null?V:[];V=g.e(H);for(H=V.next();!H.done;H=V.next()){var B=H.value;W.api.hideControls();W.api.wu("auth",2,"This video isn't available in your current playback area",En({embargoed:1,id:c.id,idx:c.W,start:c.start}));H=void 0;(B=(H=B.embargo)==null?void 0:H.onTrigger)&&W.api.Iz("innertubeCommand",B)}})}; wLD=function(h,W){var c;return(c=W.onEnter)==null?void 0:c.some(h.W)}; kaN=function(h,W){W=g.e(W);for(var c=W.next();!c.done;c=W.next()){c=c.value;var V=void 0,H=Number((V=c.playbackPosition)==null?void 0:V.utcTimeMillis)/1E3,B=void 0;V=H+Number((B=c.duration)==null?void 0:B.seconds);B="embargo_"+H;h.api.addUtcCueRange(B,H,V,"embargo",!1);c.onEnter&&(h.X[B]=c.onEnter.filter(h.W))}}; fz=function(h){da.call(this,h);var W=this;this.X=[];this.events=new g.lX(h);g.X(this,this.events);eb(h,"addEmbedsConversionTrackingParams",function(c){W.addEmbedsConversionTrackingParams(c)}); this.events.U(h,"veClickLogged",function(c){W.api.hasVe(c)&&(c=c.visualElement.getAsJspb(),c=ir(c,2),W.X.push(c))})}; hdh=function(h){da.call(this,h);eb(h,"isEmbedsShortsMode",function(){return h.isEmbedsShortsMode()})}; WdN=function(h){da.call(this,h);var W=this;this.events=new g.lX(h);g.X(this,this.events);this.events.U(h,"initialvideodatacreated",function(c){p0(oq(),16623);W.X=g.q_();var V=h.B().lJ&&!c.mF;if(HN(c)&&V){p0(oq(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(c.getWatchNextResponse()){var H,B=(H=c.getWatchNextResponse())==null?void 0:H.trackingParams;B&&Yl(B)}if(c.getPlayerResponse()){var E;(c=(E=c.getPlayerResponse())==null?void 0:E.trackingParams)&&Yl(c)}}else p0(oq(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),c.getEmbeddedPlayerResponse()&&(E=(B=c.getEmbeddedPlayerResponse())==null?void 0:B.trackingParams)&&Yl(E)}); this.events.U(h,"loadvideo",function(){p0(oq(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:W.X})}); this.events.U(h,"cuevideo",function(){p0(oq(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:W.X})}); this.events.U(h,"largeplaybuttonclicked",function(c){p0(oq(),27240,c.visualElement)}); this.events.U(h,"playlistnextbuttonclicked",function(c){p0(oq(),27240,c.visualElement)}); this.events.U(h,"playlistprevbuttonclicked",function(c){p0(oq(),27240,c.visualElement)}); this.events.U(h,"playlistautonextvideo",function(){p0(oq(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; bl=function(h,W){g.N.call(this);var c=this;this.X=null;this.G=W;W=[];for(var V=0;V<=100;V++)W.push(V/100);W={threshold:W,trackVisibility:!0,delay:1E3};(this.W=window.IntersectionObserver?new IntersectionObserver(function(H){H=H[H.length-1];var B=null;typeof H.isVisible==="undefined"?document.visibilityState==="visible"&&H.isIntersecting&&H.intersectionRatio>0?B=H.intersectionRatio:document.visibilityState==="hidden"?B=0:B=null:B=H.isVisible?H.intersectionRatio:0;B!=null&&(B=Math.max(B,0),B=Math.min(B, 1));c.X=B;typeof c.G==="function"&&c.G(c.X)},W):null)&&this.W.observe(h)}; VGl=function(h){da.call(this,h);var W=this;this.events=new g.lX(h);g.X(this,this.events);this.events.U(h,"applicationInitialized",function(){cuT(W)})}; cuT=function(h){var W=h.api.getRootNode(),c,V=h.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((c=W.parentElement)==null?void 0:c.parentElement)||W:W;h.X=new bl(V,function(H){H!=null&&(h.api.B().Om=H,h.api.B().wi="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.X(h,h.X);h.events.U(h.api,"videoStatsPingCreated",function(H){var B=h.X;B=B.X==null?null:Math.round(B.X*100)/100;H.inview=B!=null?B:void 0;B=h.api.getPlayerSize();if(B.height>0&&B.width>0){B=[Math.round(B.width),Math.round(B.height)];var E=g.xX();E>1&&B.push(E);B=B.join(":")}else B=void 0;H.size=B})}; $pT=function(h){var W;return((W=((h==null?void 0:h.messageRenderers)||[]).find(function(c){return!!c.timeCounterRenderer}))==null?void 0:W.timeCounterRenderer)||null}; Tv=function(h){g.p.call(this,{D:"div",LM:["ytp-player-content","ytp-iv-player-content"],V:[{D:"div",K:"ytp-free-preview-countdown-timer",V:[{D:"span",YN:"{{label}}"},{D:"span",K:"ytp-free-preview-countdown-timer-separator",YN:"\u2022"},{D:"span",YN:"{{duration}}"}]}]});this.api=h;this.X=null;this.G=this.W=0;this.U(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; HBv=function(h,W){h.X||(h.W=W,h.G=(0,g.aC)(),h.X=new g.tj(function(){s7N(h)},null),s7N(h))}; s7N=function(h){var W=Math,c=W.round,V=Math.min((0,g.aC)()-h.G,h.W);W=c.call(W,(h.W-V)/1E3);h.updateValue("duration",bm({seconds:W}));W<=0&&h.X?h.stopTimer():h.X&&h.X.start()}; BEQ=function(h){da.call(this,h);var W=this;this.events=new g.lX(h);g.X(this,this.events);this.events.U(h,"basechromeinitialized",function(){W.X=new Tv(h);g.X(W,W.X);g.ge(h,W.X.element,4);W.X.hide()})}; NS=function(h){g.p.call(this,{D:"button",LM:["ytp-fullerscreen-edu-button","ytp-button"],V:[{D:"div",LM:["ytp-fullerscreen-edu-text"],YN:"Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"},{D:"div",LM:["ytp-fullerscreen-edu-chevron"],V:[{D:"svg",J:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{D:"path",J:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],J:{"data-priority":"2"}});this.qn=h;this.fade=new g.SL(this,250,void 0,100);this.W=this.X= !1;h.createClientVe(this.element,this,61214);g.X(this,this.fade);this.U(h,"fullscreentoggled",this.FI);this.U(h,"presentingplayerstatechange",this.FI);this.listen("click",this.onClick);this.FI()}; X5=function(h){da.call(this,h);var W=this;this.events=new g.lX(h);g.X(this,this.events);eb(this.api,"updateFullerscreenEduButtonSubtleModeState",function(V){W.updateFullerscreenEduButtonSubtleModeState(V)}); eb(this.api,"updateFullerscreenEduButtonVisibility",function(V){W.updateFullerscreenEduButtonVisibility(V)}); var c=h.B();h.j("external_fullscreen_with_edu")&&c.externalFullscreen&&ru(c)&&c.controlsType==="1"&&this.events.U(h,"standardControlsInitialized",function(){W.X=new NS(h);g.X(W,W.X);h.RX(W.X)})}; EgQ=function(h){g.p.call(this,{D:"div",K:"ytp-gated-actions-overlay",V:[{D:"div",K:"ytp-gated-actions-overlay-background",V:[{D:"div",K:"ytp-gated-actions-overlay-background-overlay"}]},{D:"button",LM:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],J:{"aria-label":"Cerrar"},V:[g.Gp()]},{D:"div",K:"ytp-gated-actions-overlay-bar",V:[{D:"div",K:"ytp-gated-actions-overlay-text-container",V:[{D:"div",K:"ytp-gated-actions-overlay-title",YN:"{{title}}"},{D:"div",K:"ytp-gated-actions-overlay-subtitle", YN:"{{subtitle}}"}]},{D:"div",K:"ytp-gated-actions-overlay-button-container"}]}]});var W=this;this.api=h;this.background=this.vk("ytp-gated-actions-overlay-background");this.W=this.vk("ytp-gated-actions-overlay-button-container");this.X=[];this.U(this.vk("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){W.api.Iz("onCloseMiniplayer")}); this.hide()}; JuT=function(h,W){var c=0;c=0;for(var V={};c H&&(H=J.width,B="url("+J.url+")")}c.background.style.backgroundImage=B;JuT(c,V.actionButtons||[]);c.show()}else c.hide()}); g.ge(this.api,this.X.element,4)}; tK=function(h){da.call(this,h);var W=this;QC(this.api,"getSphericalProperties",function(){return W.getSphericalProperties()}); QC(this.api,"setSphericalProperties",function(){W.setSphericalProperties.apply(W,g.rN(g.tN.apply(0,arguments)))}); zr(this.api,"getSphericalProperties",function(){return W.api.getPresentingPlayerType()===2?{}:W.getSphericalProperties()}); zr(this.api,"setSphericalProperties",function(){var c=g.tN.apply(0,arguments);W.api.getPresentingPlayerType()!==2&&W.setSphericalProperties.apply(W,g.rN(c))})}; vV=function(h){da.call(this,h);eb(h,"createClientVe",this.createClientVe.bind(this));eb(h,"createServerVe",this.createServerVe.bind(this));eb(h,"destroyVe",this.destroyVe.bind(this));eb(h,"hasVe",this.hasVe.bind(this));eb(h,"logClick",this.logClick.bind(this));eb(h,"logVisibility",this.logVisibility.bind(this));eb(h,"setTrackingParams",this.setTrackingParams.bind(this))}; m9=function(h,W,c,V){function H(E){var J=!(E.status!==204&&E.status!==200&&!E.response),u;E={succ:""+ +J,rc:E.status,lb:((u=E.response)==null?void 0:u.byteLength)||0,rt:((0,g.aC)()-B).toFixed(),shost:g.E6(h),trigger:W};dpp(E,h);c&&c(E);V&&!J&&V(new g.RG("pathprobe.net",E))} var B=(0,g.aC)();g.nb(h,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:H,onTimeout:H})}; dpp=function(h,W){var c;((c=window.performance)==null?0:c.getEntriesByName)&&(W=performance.getEntriesByName(W))&&W.length&&(W=W[0],h.pedns=(W.domainLookupEnd-W.startTime).toFixed(),h.pecon=(W.connectEnd-W.domainLookupEnd).toFixed(),h.perqs=(W.requestStart-W.connectEnd).toFixed(),GVL&&(h.perqsa=W.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; ZBp=function(h){GVL=h}; oB=function(h,W){this.Yd=h;this.policy=W;this.playbackRate=1}; ruL=function(h,W){var c=Math.min(2.5,tg(h.Yd));h=pz(h);return W-c*h}; IB=function(h,W,c,V,H){H=H===void 0?!1:H;if(h.policy.HU)return Math.ceil(h.policy.HU*W);h.policy.wK&&(V=Math.abs(V));V/=h.playbackRate;var B=1/o9(h.Yd);c=Math.max(.9*(V-3),tg(h.Yd)+h.Yd.W.X*B)/B*.8/(W+c);c=Math.min(c,V);h.policy.Mq>0&&H&&(c=Math.max(c,h.policy.Mq));return q1D(h,c,W)}; q1D=function(h,W,c){return Math.ceil(Math.max(Math.max(h.policy.Vz,h.policy.Qw*c),Math.min(Math.min(h.policy.CM,31*c),Math.ceil(W*c))))||h.policy.Vz}; xpv=function(h,W,c){c=IB(h,W.X.info.Vg,c.X.info.Vg,0);var V=tg(h.Yd)+c/o9(h.Yd);return Math.max(V,V+h.policy.Bl-c/W.X.info.Vg)}; pz=function(h){return o9(h.Yd,!h.policy.pg,h.policy.kS)}; YK=function(h){return pz(h)/h.playbackRate}; Og=function(h,W,c){var V=h.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],H=h.policy.playbackStartPolicy.startMinReadaheadPolicy||[];h=Infinity;W=g.e(W&&V.length>0?V:H);for(V=W.next();!V.done;V=W.next())V=V.value,H=V.minReadaheadMs||0,c<(V.minBandwidthBytesPerSec||0)||h>H&&(h=H);return h0&&(this.W=c.wy)}; j7p=function(h,W,c,V,H){if(!V.info.C){if(c.length===0)c.push(V);else{var B;(h=(B=c.pop())==null?void 0:g.au(B,V))?c.push(h):c.push(V)}return H}var E;(c=(E=c.pop())==null?void 0:g.au(E,V))||(c=V);if(c.info.W)return h.logger&&h.logger({incompleteSegment:c.info.aR()}),H;V=h.vt(c);H=V.Hk;V={clipId:V.clipId,formatId:V.formatId,startTimeMs:V.startTimeMs,durationMs:V.Ou,Xb:H,pj:H};H=lHl(W,V.startTimeMs);if(B=c=H>=0?W[H]:null){B=V;var J=H;E=c.startTimeMs+c.durationMs;var u=B.startTimeMs+B.durationMs;if(B.startTimeMs- E>h.W)B=!1;else if(ngl(h,c.formatId,B.formatId))c.durationMs=Math.max(E,u)-c.startTimeMs,c.pj=Math.max(c.pj,B.pj),B=!0;else if(Math.abs(c.startTimeMs-B.startTimeMs)<=h.W)if(c.durationMs>B.durationMs+h.W){var d=c.formatId,G=c.Xb;J=c.pj;c.formatId=B.formatId;c.durationMs=B.durationMs;c.Xb=B.Xb;c.pj=B.pj;B.formatId=d;B.startTimeMs=u;B.durationMs=E-u;B.Xb=G;B.pj=J;B=!1}else c.formatId=B.formatId,B=!0;else E>B.startTimeMs&&(E>u&&(W.splice(J+1,0,{formatId:c.formatId,startTimeMs:u,durationMs:E-u,Xb:B.pj+ 1,pj:c.pj}),h.logger&&h.logger({splitOldStart:(d=c.startTimeMs)==null?void 0:d.toFixed(3),splitOldEnd:E==null?void 0:E.toFixed(3),splitNewStart:(G=B.startTimeMs)==null?void 0:G.toFixed(3),splitNewEnd:u==null?void 0:u.toFixed(3)})),c.durationMs=B.startTimeMs-c.startTimeMs,c.pj=B.Xb-1),B=!1}B?V=c:(H+=1,W.splice(H,0,V));d=0;for(G=H+1;G=u+c.W?c=!0:J+c.W=0?h:-h-2}; aHD=function(h,W){if(h.jx){var c=h.jx.M$();if(c.length!==0){if(h.G&&W){var V=h.G,H=V.info.Y;!IG(c,H)&&V.info.Z>0&&(0,g.aC)()-h.N<5E3&&(h.logger&&h.logger({dend:V.info.aR()}),c=T7Q(c,H,H+.01))}h.policy.lG&&h.logger&&h.logger({cbri:""+h.X});V=[];for(var B=H=0;H=E){var G=Object.assign({},h.O5[B]),Z=h.jO.G.get(pT(h.O5[B].formatId)),r=Math.max(u,E);E=Z.index.Gj(r+h.W/ 1E3);u=Z.index.getStartTime(E);var q=E+ +(Math.abs(u-r)>h.W/1E3);r=q+h.Y;q=Z.index.getStartTime(q)*1E3;B!==h.X||W?(G.Xb=r,G.startTimeMs=q):(h.logger&&h.logger({pEvict:"1",og:G.startTimeMs,adj:u*1E3}),G.Xb=E+h.Y,G.startTimeMs=u*1E3);E=void 0;u=((E=h.G)==null?void 0:E.info.duration)||11;B===h.X&&Jh.W/1E3);E=u+h.Y;Z=Z.index.gh(u)*1E3;G.pj=E;G.durationMs=Z-G.startTimeMs;G.Xb<=G.pj&&V.push(G)}d=0&&WP(h.audioTrack,h.targetTime)>=0&&B?((h.videoTrack.C||h.audioTrack.C)&&h.loader.GV("iterativeSeeking",{status:"done",count:h.seekCount}),h.videoTrack.C=!1,h.audioTrack.C=!1):V&&g.nW(function(){if(h.X||!h.policy.uW)sx(h);else{var E=W.startTime,J=W.duration;if(!h.policy.C){var u=c?h.videoTrack.C:h.audioTrack.C,d=h.videoTrack.N!==-1&&h.audioTrack.N!==-1,G=h.targetTime>=E&&h.targetTime432E3&&N4l(h.jO);h.W&&(H=h.W,h.W=0);g.nW(function(){h.policy.C||HP(h,H,102)}); h.loader.GV("initManifestlessSync",{st:H,ost:H+h.loader.FA(),a:h.audioTrack.N,v:h.videoTrack.N});h.G&&(h.G.resolve(H+.1),h.G=null);h.policy.C&&HP(h,H,102)}}}; RL=function(h,W){var c=this;this.dI=h;this.requestNumber=++Pyk;this.X=this.now();this.Z=this.T=NaN;this.S=this.X;this.G=this.Sx=this.C=0;this.N=this.X;this.Mn=this.Wk=this.mW=this.fR=this.Zn=this.DH=this.W=this.Y=0;this.XI=this.isActive=!1;this.hI=this.Ef=0;this.uX={A7B:function(){return c.Dw}}; this.Yd=W.Yd;this.snapshot=CbU(this.Yd);this.policy=this.Yd.W;this.jc=!!W.jc;this.vX=W.vX;this.Fm=W.Fm||0;this.fp=W.fp||0;W.kB&&(this.zV=new M8);var V;this.Dw=(V=W.Dw)!=null?V:!1;this.jc||K0N(this.Yd)}; fHQ=function(h){h.mW=Math.max(h.mW,h.C-h.Zn);h.Wk=Math.max(h.Wk,h.S-h.fR);h.DH=0}; JD=function(h,W,c){AoU(h.Yd,W);h.zV&&(h.zV.add(Math.ceil(W)-Math.ceil(h.S)),h.zV.add(Math.max(0,Math.ceil(c/1024)-Math.ceil(h.C/1024))));var V=W-h.S,H=c-h.C;h.Sx=H;h.Mn=Math.max(h.Mn,H/(V+.01)*1E3);h.S=W;h.C=c;h.DH&&c>h.DH&&fHQ(h)}; uu=function(h,W){h.url=W;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; d6=function(h,W){RL.call(this,h,W);this.uW=this.qU=!1;this.Nn=this.Pk=Infinity;this.CM=NaN;this.lW=!1;this.rE=NaN;this.U5=this.Rz=this.yg=0;this.wq=W.wq||1;this.LY=W.LY||this.wq;this.q5=W.q5;this.Hk=W.Hk;this.dS=W.dS;bBT(this);this.BM(this.X);this.Ak=(this.rE-this.X)/1E3}; TE5=function(h){var W=h.Rz||h.yg;return W?h.snapshot.delay+Math.min(h.fp,(h.Z-h.T)/1E3)+W:h.Ak}; Gf=function(h,W,c){if(!h.jc){W=Math.max(W,.01);var V=h.Fm?Math.max(W,c/h.Fm):W,H=h.Yd.W.G;H&&(V=W,h.Fm&&(V=Math.max(W,c/h.Fm*H)));Tc(h.Yd,W,c,V)}}; NEN=function(h){return(h.N-h.X)/1E3}; bBT=function(h){h.CM=h.X+h.snapshot.delay*1E3;h.lW=!1}; Zp=function(h,W){if(h.q5&&h.Hk!==void 0&&h.dS!==void 0){var c=Math,V=c.min,H=h.Pk;var B=h.q5;var E=h.X;if(Xbl(B,h.Hk))B=W;else{var J=0;B.YC&&(J=.2);B=E+(B.fp+J)*1E3}h.Pk=V.call(c,H,B);c=Math;V=c.min;H=h.Nn;B=h.q5;E=h.X;J=tGU(B,h.Hk,h.dS);J!==2&&(W=J?W:E+B.fp*1E3,B.YC&&(W+=B.fp*1E3));h.Nn=V.call(c,H,W);h.Pk<=h.X?bBT(h):(h.CM=h.Pk,h.lW=!0)}}; vgv=function(h,W){if(W+1<=h.totalLength){var c=B7(h,W);c=c<128?1:c<192?2:c<224?3:c<240?4:5}else c=0;if(c<1||!(W+c<=h.totalLength))return[-1,W];if(c===1)h=B7(h,W++);else if(c===2)c=B7(h,W++),h=B7(h,W++),h=(c&63)+64*h;else if(c===3){c=B7(h,W++);var V=B7(h,W++);h=B7(h,W++);h=(c&31)+32*(V+256*h)}else if(c===4){c=B7(h,W++);V=B7(h,W++);var H=B7(h,W++);h=B7(h,W++);h=(c&15)+16*(V+256*(H+256*h))}else c=W+1,h.focus(c),$W(h,c,4)?h=m04(h).getUint32(c-h.G,!0):(V=B7(h,c+2)+256*B7(h,c+3),h=B7(h,c)+256*(B7(h,c+1)+ 256*V)),W+=5;return[h,W]}; r6=function(h){this.dI=h;this.X=new hQ}; q2=function(h,W){this.info=h;this.callback=W;this.state=1;this.K1=this.aH=!1;this.Oh=null}; mpp=function(h){return g.l6(h.info.pM,function(W){return W.type===3})}; xj=function(h,W,c,V){var H=this;V=V===void 0?{}:V;this.policy=W;this.dI=c;this.status=0;this.X=new hQ;this.W=0;this.gE=this.Y=this.G=!1;this.xhr=new XMLHttpRequest;this.xhr.open(V.method||"GET",h);if(V.headers)for(h=V.headers,W=g.e(Object.keys(h)),c=W.next();!c.done;c=W.next())c=c.value,this.xhr.setRequestHeader(c,h[c]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return H.jN()}; this.xhr.onload=function(){return H.onDone()}; this.xhr.onerror=function(){return H.onError()}; this.xhr.fetch(function(B){H.X.append(B);H.W+=B.length;B=(0,g.aC)();H.dI.M9(B,H.W)},function(){},V.body||null)}; og5=function(h,W){this.W=(new TextEncoder).encode(h);this.X=(new TextEncoder).encode(W)}; psN=function(h,W){var c;return g.P(function(V){if(!W)return V.return(W);c=new g.Bk(h.W);return V.return(c.encrypt(W,h.X))})}; gtp=function(h,W){var c;return g.P(function(V){if(V.W==1){if(!W)return V.return(W);c=new g.Bk(h.W);return g.F(V,c.decrypt(W,h.X),2)}return V.return(V.X)})}; IHN=function(h,W){var c=this;this.X=h;this.dI=W;this.loaded=this.status=0;this.error="";h=Ow(this.X.get("range")||"");if(!h)throw Error("bad range");this.range=h;this.W=new hQ;pb4(this).then(function(){c.dI.Bp()},function(V){c.error=""+V||"unknown_err"; c.dI.Bp()})}; pb4=function(h){var W,c,V,H,B,E,J,u,d,G,Z,r,q,x,z;return g.P(function(L){if(L.W==1){h.status=200;W=h.X.get("docid");c=C6(h.X.get("fmtid")||"");V=h.X.get("lmt")||"0";H=+(h.X.get("csz")||0);if(!W||!c||!H)throw Error("Invalid local URL");h.X.get("ck")&&h.X.get("civ")&&(B=new og5(h.X.get("ck"),h.X.get("civ")));E=h.range;J=Math.floor(E.start/H);u=Math.floor(E.end/H);d=J}if(L.W!=5)return d<=u?g.F(L,DZk(W,c,V,d,B),5):L.bB(0);G=L.X;if(G===void 0)throw Error("invariant: data is undefined");Z=d*H;r=(d+1)*H; q=Math.max(0,E.start-Z);x=Math.min(E.end+1,r)-(q+Z);z=new Uint8Array(G.buffer,q,x);h.W.append(z);h.loaded+=x;h.loaded=400?(h.lastError="net.badstatus",!0):(H===void 0?0:H)?(h.lastError="ump.spsrejectfailure",!0):c||V!==void 0&&V?!1:(h.lastError=W===204?"net.nocontent":"net.connect",!0)}; iu=function(h,W){if(h.policy.C8)return!1;var c=W.getResponseHeader("content-type"),V=W.AY();h=!V||V<=h.policy.JX;return(!W.gy()||!c||c.indexOf("text/plain")!==-1)&&h}; WND=function(h,W){var c="";W=W.AC();W.totalLength<=h.policy.JX&&(c=h0d(h,sk(W)));return c}; h0d=function(h,W){var c=Rb(W);return bJ(c)?(h.logger.debug(function(){return"Redirecting to "+c}),c):""}; e4=function(h){return Nh(h.G,o7(h.du.ys))}; cRQ=function(h){var W=h.timing.wZ();W.shost=o7(h.du.ys);return W}; Vr7=function(h,W){return(h==null?void 0:h.maxWidth)>(W==null?void 0:W.maxWidth)||(h==null?void 0:h.maxHeight)>(W==null?void 0:W.maxHeight)}; $hl=function(h,W){for(var c=g.e(W.keys()),V=c.next();!V.done;V=c.next())if(V=W.get(V.value),V.length!==0){g.Y6(V,function(J,u){return u.maxFramerate-J.maxFramerate}); for(var H=[V[0]],B=0,E=1;Eh.X||c.push(V)}return c}; KM=function(h,W,c){var V=BP7[h]||[];c.j("html5_shorts_onesie_mismatched_fix")&&(V=E0l[h]||[]);W.push.apply(W,g.rN(V));c.j("html5_early_media_for_drm")&&W.push.apply(W,g.rN(R0L[h]||[]))}; rRN=function(h,W){var c=g.UP(h),V=h.B(),H=V.C;V=V.j("html5_shorts_onesie_mismatched_fix");var B=h.jX();if(V){if(!H.W){if(B&&AD)return AD;if(Ux)return Ux}}else if(Ux&&!H.W)return Ux;var E=[],J=[],u={},d=CM.concat(JRh);V&&(d=CM.concat(uhl));h.j("html5_early_media_for_drm")&&(d=d.concat(dhd),h.j("allow_vp9_1080p_mq_enc")&&d.push(GYh));var G=[].concat(g.rN(ZTD));h.j("html5_iamf_audio_onesie_fmt")&&G.push(["773"]);d=g.e(d);for(var Z=d.next();!Z.done;Z=d.next()){var r=!1;Z=g.e(Z.value);for(var q=Z.next();!q.done;q= Z.next()){q=q.value;var x=Ua(q,B&&V);if(x&&x.video&&!(CF(x)&&!c.Pk&&x.video.qualityOrdinal>c.bl)){var z=g.DF(h.B().experiments,"html5_drm_byterate_soft_cap");z>0&&fbv(x)&&x.Vg>z||(r?(E.push(q),KM(q,E,h)):(x=yQ(c,x,H),x===!0?(r=!0,E.push(q),KM(q,E,h)):u[q]=x))}}}G=g.e(G);for(d=G.next();!d.done;d=G.next())for(d=g.e(d.value),r=d.next();!r.done;r=d.next())if(r=r.value,(Z=c94(r))&&Z.audio&&(h.j("html5_onesie_51_audio")||!MQ(Z)&&!FK(Z)))if(Z=yQ(c,Z,H),Z===!0){J.push(r);KM(r,J,h);break}else u[r]=Z;if(!h.j("html5_enable_audio_quality_setting"))for(h= g.e(["141","774"]),G=h.next();!G.done;G=h.next())G=G.value,J.includes(G)&&(g.QU(J,G),u[G]="blkhqa");c.W&&W("orfmts",u);if(V)return H.W&&(H.W=!1,AD=Ux=void 0),B?AD={video:E,audio:J}:Ux={video:E,audio:J};Ux={video:E,audio:J};H.W=!1;return Ux}; g.l$D=function(h,W,c){var V=c.C,H=[],B=[],E=c.j("html5_shorts_onesie_mismatched_fix");h=h.jX();var J=CM.concat(JRh);E&&(J=CM.concat(uhl));c.j("html5_early_media_for_drm")&&(J=J.concat(dhd),c.j("allow_vp9_1080p_mq_enc")&&J.push(GYh));var u=[].concat(g.rN(ZTD));c.j("html5_iamf_audio_onesie_fmt")&&u.push(["773"]);J=g.e(J);for(var d=J.next();!d.done;d=J.next()){d=g.e(d.value);for(var G=d.next();!G.done;G=d.next()){G=G.value;var Z=Ua(G,h&&E);if(Z&&Z.video){var r=g.DF(c.experiments,"html5_drm_byterate_soft_cap"); if(!(r>0&&fbv(Z)&&Z.Vg>r)&&yQ(W,Z,V)===!0){H.push({videoCodec:qwU[LF[G]],maxWidth:Z.video.width,maxHeight:Z.video.height,maxFramerate:Z.video.fps});break}}}}E=g.e(u);for(h=E.next();!h.done;h=E.next())for(h=g.e(h.value),u=h.next();!u.done;u=h.next())if(u=u.value,(J=c94(u))&&J.audio&&(c.j("html5_onesie_51_audio")||!MQ(J)&&!FK(J))&&yQ(W,J,V)===!0){B.push({audioCodec:xhQ[LF[u]],numChannels:J.audio.numChannels});break}return{videoFormatCapabilities:H,audioFormatCapabilities:B}}; a$L=function(h){var W,c={},V=h.lB,H=h.fM,B=V.getVideoData(),E=dE(0),J=V.getVisibilityState(),u;if((u=h.cV)==null?0:u.St)c.lP=H.lP;E&&(c.U1=E,c.lastManualDirection=kkv(),E=DVL()||0,E>0&&(E=(H.j("html5_use_date_now_for_local_storage")?Date.now():(0,g.aC)())-E,H.j("html5_use_date_now_for_local_storage")?E>0&&(c.timeSinceLastManualFormatSelectionMs=E):c.timeSinceLastManualFormatSelectionMs=E));E=H.j("html5_use_streamer_bandwidth_for_low_latency_live")&&B.isLowLatencyLiveStream;if(H.schedule.XI&&!E){var d; E=H.j("html5_disable_bandwidth_cofactors_for_sabr_live")?!((d=h.cV)==null||!d.pg):!1;c.AK=o9(H.schedule,!E)}E=g.aG.medium;u=Math.floor(E*16/9);(d=B.jX())||(B.X&&B.G&&B.G.videoInfos.length!==0?(d=B.G.videoInfos[0],d=!!d.video&&d.video.width0?{authorizedFormats:h.authorizedFormats}:{authorizedFormats:W};h.sabrLicenseConstraint&&(c.Ff.sabrLicenseConstraint=h.sabrLicenseConstraint);if(H.j("html5_onesie_media_capabilities")||H.j("html5_enable_server_format_filter"))c.yQ= 3;H.j("html5_onesie_audio_only_playback")&&LC(B)&&(c.yQ=1);var M;((M=h.cV)==null?0:M.Tx)&&h.Ni&&(c.yQ=c.yQ===void 0?7:c.yQ|4);M=B.d3?B.d3:g.UP(B);H.j("html5_onesie_media_capabilities")&&(c.mediaCapabilities=g.l$D(B,M,H));var U;if((U=h.cV)==null?0:M2(U)){Z=H.C;U=[];W=[];r=new Map;q=Array.from(Z.X.values());q=g.e(q);for(x=q.next();!x.done;x=q.next())z=x.value,z.Qr?W.push({audioCodec:xhQ[z.eO],numChannels:z.numChannels,spatialCapabilityBitmask:n0T[z.eO]}):(L=qwU[z.eO],x={videoCodec:L,maxWidth:z.maxWidth|| 0,maxHeight:z.maxHeight||0,maxFramerate:z.maxFramerate||0,is10BitSupported:z.xW||!1},z.maxBitrateBps&&(x.maxBitrateBps=z.maxBitrateBps,J=Ua(z.itag),d=void 0,((d=J)==null?0:d.video)&&yQ(M,J,Z)===!0&&(J=J.Vg*8,J>x.maxBitrateBps&&(x.maxBitrateBps=J))),z=L+"_"+z.xW,L=r.get(z)||[],L.push(x),r.set(z,L));U=$hl(U,r);Z={};H.j("html5_ssff_denylist_opus_low")&&(Z={itagDenylist:[249,350]});c.mediaCapabilities={videoFormatCapabilities:U,audioFormatCapabilities:W,hdrModeBitmask:3,perPlaybackAttributes:Z}}var y; if((y=h.cV)==null?0:y.X){c.EO=M.EO;var T;c.bl=(T=h.cV)==null?void 0:T.bl}H.nj&&(c.A6=H.nj);c.KY=h.ac;c.zI=h.zI;c.Dy=h.Dy;c.yP=h.yP;h.iY&&(c.qyg=(0,g.aC)()-h.iY);h.isPrefetch&&H.j("html5_report_prefetch_requests")&&(c.isPrefetch=!0);rh||(c.vNM=!0);y=tg(H.schedule)*1E3;y>0&&(c.md=y);var m;((m=h.cV)==null?0:m.DQ)&&h.Xv&&h.Xv0?D:H.schedule.interruptions[0]||0;var O;if((O=h.cV)==null?0:O.hI)c.sT=h.sT;H.rE&&(c.audioTrackId=H.rE);Ro(B)&&!c.audioTrackId&&(H.j("html5_fill_default_mosaic_audio_track_id")||(h=k2v(B),c.audioTrackId=h),B==null||B.GV("misstrkchg",{"default":c.audioTrackId}));if(B=FQQ())c.detailedNetworkType=jQQ[B]||jQQ.other;H.j("html5_enable_voice_boost")&&(c.PCN=H.d6);return c}; FN=function(h,W,c,V,H,B,E){var J={};W&&(J.UQ=W);if(!h)return J;J.playbackCookie=c==null?void 0:c.playbackCookie;H&&(J.Yc=H);J.jp=[];J.iE=[];if(E==null?0:E.size)for(W=g.e(E.values()),c=W.next();!c.done;c=W.next())J.iE.push(c.value);if(h.sabrContextUpdates.size>0)for(W=g.e(h.sabrContextUpdates.values()),c=W.next();!c.done;c=W.next())e0k(J,c.value,V);AT(h)&&B&&e0k(J,B,V);h.MG&&(J.XHf=h.MG);V=h.B().X;J.clientInfo={clientName:z0L[V.c.toUpperCase()]||0};V.cbrand&&(J.clientInfo.deviceMake=V.cbrand);V.cmodel&& (J.clientInfo.deviceModel=V.cmodel);V.cver&&(J.clientInfo.clientVersion=V.cver);V.cos&&(J.clientInfo.osName=V.cos);V.cosver&&(J.clientInfo.osVersion=V.cosver);V=h.B();V.j("html5_sabr_enable_server_xtag_selection")&&V.Tx&&(J.clientInfo.hl=V.Tx);h.dJ&&(J.dJ=h.dJ);return J}; e0k=function(h,W,c){var V=W.type||0;(c==null?0:c.has(V))?h.iE.push(W):h.jp.push(V)}; kK=function(h,W,c,V,H,B){var E=B===void 0?{}:B;var J=E.wL===void 0?[]:E.wL;var u=E.lU===void 0?!1:E.lU;var d=E.Rw===void 0?0:E.Rw;var G=E.poToken===void 0?"":E.poToken;var Z=E.NF===void 0?void 0:E.NF;var r=E.vF===void 0?"":E.vF;var q=E.gS===void 0?0:E.gS;var x=E.gp===void 0?new Uint8Array(0):E.gp;var z=E.Wf===void 0?!1:E.Wf;B=E.XJ===void 0?0:E.XJ;E=E.UQ===void 0?void 0:E.UQ;q2.call(this,W,H);var L=this;this.policy=h;this.logger=new g.xP("dash/request");this.JQ=this.HH=0;this.hO=!1;this.gK=this.ML= null;this.cI=!1;this.gp=this.gS=null;this.DA=this.sB=!1;this.yv=null;this.XJ=this.BU=0;this.R6=!1;this.uX={So:function(U){L.So(U)}, m9B:function(){return L.Oh}, ai9:function(U){L.Oh=U}, WJW:function(U){L.HH=U}, XQB:function(U){L.D3.lastError=U}, BA:function(){return L.xhr}}; this.timing=new d6(this,c);this.lU=u;this.gS=q;this.gp=x;this.du=g.BJ(this.info,this.policy,V);this.du.set("rn",this.bd().toString());this.du.set("rbuf",(d*1E3).toFixed().toString());this.lU&&this.du.set("smb","1");this.policy.l8&&G&&this.du.set("pot",G);r&&this.du.set("bbs",r);this.policy.useUmp&&!pB(this.du.ys)&&(this.Bv=new r6(this),this.du.set("ump","1"),this.du.set("srfvp","1"));if(h=this.policy.Jo?this.policy.h8&&!isNaN(this.info.dS)&&this.info.dS>this.policy.UL?!1:!0:!1)W=null,this.policy.VT&& this.policy.GA?W=[1]:z&&(W=[]),W!=null&&(this.policy.Wz&&W.push(2),this.du.set("defsel",W.join(",")));this.D3=new aL(this,this.policy,this.du,this.info.bW,this.timing,this.logger,V,Z);this.wL=J||null;this.K1=QQN(this);ggh(this.D3);V=void 0;if(this.policy.Pu||this.Bv||this.policy.mW)V={method:"POST"},J=(0,g.yN)([120,0]),Z={},this.policy.rY&&E&&(E=FN(void 0,E),Z.uU=E),this.policy.Kq&&this.gp&&(Z.videoPlaybackUstreamerConfig=this.gp),this.policy.mW&&(E=this.info.Y)&&Object.assign(Z,E),Object.keys(Z).length> 0?V.body=g.ob(Z,g.R7):V.body=J;if(this.gS&&this.gp){this.du.set("iwts","1");V={method:"POST"};E={yP:this.gS*1E3};var M;J=(M=this.info.Y)==null?void 0:M.yV;M=g.ob({r7:E,yV:J||void 0,videoPlaybackUstreamerConfig:this.gp},g.R7);V.body=M}try{this.xhr=lu(this.du,this.policy.S,this.timing,h,V),this.D3.W.start(),B&&(this.xi=new g.oD(this.Td,B,this),this.xi.start(B+(this.timing.Yd.Z.Jt()||0)*1E3)),this.policy.d1&&uu(this.timing,this.Ly()),this.logger.debug(function(){return"Sent, itag="+L.du.get("itag")+ " seg="+L.info.pM[0].Hk+" range="+L.du.get("range")+" time="+Math.round(L.info.pM[0].Y)+"-"+Math.round(g.x6(L.info.pM).N)+" rtp="+(L.timing.Ag()-Date.now()).toFixed(0)}),g.nW(function(){})}catch(U){LNk(this,U,!0)}}; QQN=function(h){if(!(HJ(h.info)&&h.info.Dw()&&h.policy.H9&&h.wL)||h.info.bW.G>=2||dE()>0||!V1D())return!1;var W=h.du.get("aitags");if(!W)return!1;W=C6(W).split(",");for(var c=[],V=g.e(h.wL),H=V.next();!H.done;H=V.next())H=H.value,g.el(W,H)&&c.push(H);if(!c.length)return!1;h.du.set("altitags",g.Ak(c.join(",")));return!0}; LNk=function(h,W,c){c=c===void 0?!1:c;g.Qq(W);h.D3.lastError="player.exception";h.errorMessage=W.name+"_"+W.message;c?g.nW(function(){QN(h.D3)}):QN(h.D3)}; iTT=function(h,W){h.timing.XI=!0;h.xhr.gy()&&h.timing.Gl();if(h.policy.U8){var c;(c=h.xi)==null||c.stop()}j4(h.Oh,W,!1)}; KNU=function(h,W){h.info=W;if(h.Oh){var c=h.Oh;W=W.pM;(W.length!==c.pM.length||W.length0){W=g.e(W.pM);for(var c=W.next();!c.done;c=W.next()){var V=void 0;h+=((V=c.value.range)==null?void 0:V.length)||0}return h}if(W.Q3.length>0)for(c=g.e(W.Q3),V=c.next();!V.done;V=c.next())h+=V.value.X$||0;return h+W.VL}; vP=function(h,W){if(N2){var c=0;h=h.jo.get(W);if(h==null||!h.SX)return 0;h=g.e(h.SX.values());for(W=h.next();!W.done;W=h.next())c+=W.value.data.totalLength;return c}return((c=h.jo.get(W))==null?void 0:c.Kj.totalLength)||0}; mj=function(h,W){h=h.jo.get(W);if(N2){if(h==null||!h.T_)return!1;W=h.SX.size>0;return h.Ok.length>0||W}return!(h==null||!h.T_)&&!(h==null||!h.Kj.totalLength)}; yRh=function(h,W){var c=h.jo.get(W),V=FNT(h,W),H=!V&&!!c.bytesReceived;if(N2){var B;if((B=h.jO)==null?0:B.Hi){h=g.e(c.SX.values());for(W=h.next();!W.done;W=h.next())if(!W.value.g0)return!1;return H}}else if(B=h.Lq(W),H&&h.X&&B!==void 0)return B;return(H||c.bytesReceived===V)&&c.oX+vP(h,W)===c.bytesReceived}; P_N=function(h,W,c){h.jo.set(W,{Kj:new hQ,oX:0,bytesReceived:0,VL:0,i4:!1,xx:!1,Lq:!1,Qr:c,f4:[],pM:[],Q3:[],T_:!1,SX:new Map,Tt:new Map,Ok:[]});h.logger.debug(function(){return"[initStream] formatId: "+W})}; f$N=function(h,W,c,V){c.pM.push.apply(c.pM,g.rN(V));if(N2){c.Tt.has(W)||c.Tt.set(W,[]);var H;(H=c.Tt.get(W)).push.apply(H,g.rN(V))}else if(c.Oh)for(h=g.e(V),W=h.next();!W.done;W=h.next())c.Oh.pM.push(W.value);else{c.Oh=new nM(h.cV,[].concat(g.rN(c.pM)));var B;((B=h.cV)==null?0:B.Aa)&&g.X(h,c.Oh)}}; bTv=function(h,W,c){var V,H=(V=h.jO)==null?void 0:V.G.get(W);if(!H)return[];if(c.Zw){var B;return((B=H.Wd(0,c.clipId))==null?void 0:B.pM)||[]}if(H.Sl()){var E=c.startMs,J=c.durationMs;V=1E3;var u;if(((u=h.cV)==null?0:u.X)&&c.timeRange){var d;E=(d=c.timeRange.startTicks)!=null?d:-1;var G;J=(G=c.timeRange.sF)!=null?G:-1;var Z;V=(Z=c.timeRange.timescale)!=null?Z:-1}if(c.wk<0||c.cY<0||J<0||E<0||c.X$<0||V<0)return tD(h,W),[];h=Sr(c.wk,c.X$);W=c.Qu||0;return[new D$(3,H,h,"makeSliceInfosMediaBytes",c.cY- 1,E/V,J/V,W,h.length-W,void 0,c.Jl,c.clipId)]}if(c.cY<0)return tD(h,W),[];var r;return((r=h.jO)==null?0:r.Hi)?(W=H.Ix,u=W*H.info.Vg,d=c.Qu,((J=h.cV)==null?0:J.YG)&&c.timeRange&&!d&&(E=c.timeRange.startTicks/c.timeRange.timescale),[new D$(3,H,void 0,"makeSliceInfosMediaBytes",c.cY,E,W,d,u,!0,c.Jl,c.clipId)]):[]}; TPD=function(h,W,c){h.jO=W;h.cV=c;W=g.e(h.jo);for(c=W.next();!c.done;c=W.next()){var V=g.e(c.value);c=V.next().value;V=V.next().value;for(var H=g.e(V.f4),B=H.next();!B.done;B=H.next()){B=B.value;var E=bTv(h,c,B);f$N(h,B.t0,V,E)}}}; oL=function(h,W,c,V){h.logger.debug(function(){return"[addStreamData] formatId: "+c+",headerId: "+W+" bytes: "+V.totalLength}); (h=h.jo.get(c))&&!h.xx&&(N2?(h.SX.has(W)||h.SX.set(W,{data:new hQ,cz:0,g0:!1}),W7(h.SX.get(W).data,V)):W7(h.Kj,V),h.bytesReceived+=V.totalLength,h.i4=!0)}; XN=function(h,W){h.logger.debug(function(){return"[closeStream] formatId: "+W}); var c=h.jo.get(W);c&&!c.xx&&(c.xx=!0,c.SL&&c.SL(),NP5(h)&&h.Y.H_())}; NP5=function(h){h=g.e(h.jo.values());for(var W=h.next();!W.done;W=h.next())if(!W.value.xx)return!1;return!0}; X0U=function(h){N2=h}; pM=function(h,W,c,V,H,B,E){g.N.call(this);this.policy=h;this.info=W;this.jO=c;this.dI=H;this.logger=new g.xP("sabr");this.Bv=new r6(this);this.a9=new bu(this);this.JE=new Tf(this);this.state=1;this.WZ=!1;this.Ea=0;this.clipId="";this.yZ=-1;this.Mt=0;this.KE=-1;this.R6=this.bq=!1;this.rl=0;this.gU=!1;this.policy.cD?this.E8=new PP(this,B):this.E8=new d6(this,B);this.du=this.policy.hI?W.Un:trk(W,this.policy,V);this.du.set("rn",""+this.bd());this.du.set("alr","yes");TPD(this.JE,c,h);this.D3=new aL(this, this.policy,this.du,W.bW,this.E8,this.logger,V,E,this.policy.enableServerDrivenRequestCancellation);ggh(this.D3);var J;if((J=this.policy)==null?0:J.Aa)g.X(this,this.JE),g.X(this,this.D3);h=W.W;W={method:"POST",body:h};h&&(this.Mt=h.length);try{this.xhr=lu(this.du,this.policy.S,this.E8,rh,W),this.policy.d1&&uu(this.E8,this.Ly()),this.D3.W.start()}catch(u){g.Lx(u)}}; v0h=function(h){h.policy.Pd&&h.Fg&&!h.gU?h.gU=!0:h.E8.Gl()}; mhv=function(h,W){var c=-1,V=-1,H=-1,B;if((B=h.eV)==null?0:B.items)for(h=g.e(h.eV.items),B=h.next();!B.done;B=h.next())B=B.value,W=J,u=h.jO.isManifestless,E){var d;if(((d=h.X)==null?void 0:d.WV.event)==="predictStart"&&h.X.Hkh.N&&(h.N=NaN,h.S=NaN);h.X&&h.X.Hk===W?suk(h,W,c,h.X,H):h.W===1&&S4(h,5,"noad")}; Hvh=function(h,W,c,V,H){V.Di?S4(h,4,"cue"):(h.N=W,h.S=c,h.GV("sdai",{joinad:h.W,sg:h.N,st:h.S.toFixed(3)}),h.T=Date.now(),S4(h,2,h.W===3?"staftpred":"join"),H.dM(V.WV))}; suk=function(h,W,c,V,H){if(H&&V){var B=V.WV,E=H.EZ(B);B.event==="predictStart"&&(h.Wk=W);h.GV("sdai",{onqevt:B.event,sq:W,mt:c,gab:E,cst:B.startSecs,cueid:h.policy.lz&&(E||B.event==="start")?B.identifier:void 0},!0);if(E)B.event!=="predictStart"?(B.event==="start"&&h.Wk===W-1&&h.GV("sdai",{gabonstart:W}),Hvh(h,W,c,V,H)):h.policy.tE?S4(h,3,"predict"):(W+=Math.max(Math.ceil(-B.X/5E3),1),B=Math.floor(c-B.X/1E3),h.policy.W?h.C=B:h.Y=W,h.GV("sdai",{onpred:c,estsq:W,estmt:B.toFixed(3)}),g6(h.loader,B,B, W),h.T=Date.now(),S4(h,3,"predict"),H.dM(V.WV));else if(h.W===1){var J;((J=h.G)==null?0:J.Im(c))?(g6(h.loader,c,c,W),S4(h,4,"sk2head")):S4(h,5,"nogab")}else B.event==="predictStart"?h.policy.W&&h.C>0?(c=Math.floor(c-B.X/1E3),h.C!==c&&h.GV("sdai",{updateSt:c,old:h.C}),h.C=c):h.Y>0&&(c=W+Math.max(Math.ceil(-B.X/5E3),1),h.Y!==c&&(h.GV("sdai",{updateSt:c,old:h.Y}),h.Y=c)):h.policy.tE&&h.W===3&&Hvh(h,W,c,V,H)}else h.GV("sdai",{nulldec:1,sq:W,mt:c.toFixed(3),evt:(V==null?void 0:(B=V.WV)==null?void 0:B.event)|| "none"})}; EPk=function(h,W,c){if(h.policy.T3&&h.policy.W)return!(h.W===1||h.W===2||!h.policy.tE&&h.W===3&&c>=h.Y);if(h.W===1||h.W===2)return!1;if(h.W!==0&&W===h.audioTrack){if(h.policy.W)return BWp(h.videoTrack,c)||BWp(h.videoTrack,c+1);h=Dp(h.videoTrack);if(c>(h?h.Hk:-1))return!1}return!0}; w6=function(h,W,c){return(c<0||c===h.N)&&!isNaN(h.S)?h.S:W}; WMd=function(h,W){if(h.X){var c=h.X.WV.QM-(W.startTime+h.Z-h.X.WV.startSecs);c<=0||(c=new H0(h.X.WV.startSecs-(isNaN(h.Z)?0:h.Z),c,h.X.WV.context,h.X.WV.identifier,"stop",h.X.WV.X+W.duration*1E3),h.GV("cuepointdiscontinuity",{segNum:W.Hk}),Ox(h,c,W.Hk))}}; S4=function(h,W,c){h.W!==W&&(h.GV("sdai",{setsst:W,old:h.W,r:c}),h.W=W)}; kj=function(h,W,c,V){(V===void 0?0:V)?S4(h,1,"seek"):W>0&&Math.abs(W-c)>=5&&h.W===4&&S4(h,5,"sk2t")}; R8k=function(h){this.GV=h;this.X="";this.W=new Map}; JwL=function(h,W,c){if(h.W.has(W.identifier)){var V=h.W.get(W.identifier);var H=hz(V.event||"unknown");hz(W.event)>H&&(V.startTimeSecs=W.startSecs,V.QM=W.QM,V.event=W.event,H===hz("predictStart")&&(V.NO=Date.now()))}else V={event:W.event,startTimeSecs:W.startSecs,QM:W.QM,Cs:[]},h.W.set(W.identifier,V);h.G&&c>-1&&c0}; Hw=function(h,W){h.X!==W&&(h.X=W,h.W=!0)}; GwD=function(h,W){var c;W&&(c=g.jl(h.Y.X,function(H){return H.id===W})); if(!c&&(c=g.jl(h.Y.X,function(H){var B;return!((B=H.iW)==null||!B.isDefault)}),W)){var V; h.GV("iaf",{id:W,sid:(V=c)==null?void 0:V.id})}return c}; EC=function(h,W,c,V,H,B){var E=this;B=B===void 0?[]:B;this.loader=h;this.Pk=W;this.policy=c;this.jO=V;this.N=H;this.Mn=B;this.logger=new g.xP("dash/abr");this.X=dM;this.G=this.S=null;this.T=-1;this.Nn=!1;this.nextVideo=this.W=null;this.Y=[];this.Rz=new Set;this.mW={};this.rE=new ys(1);this.Z=0;this.yg=this.Wk=this.XI=!1;this.DH=0;this.Jk=!1;this.zV=new Set;this.CM=!1;this.uX={YM:function(){Bw(E)}}; this.C=new VL(this.policy,H,function(J,u){E.loader.GV(J,u)})}; lsU=function(h,W,c){Rj(h,W);W=GwD(h.C,c);c||W||(W=Zvl(h));W=W||h.N.X[0];h.W=h.jO.X[W.id];Bw(h);h.S=h.W;rwk(h);qjl(h);h.G=h.nextVideo;h.S=h.W;return xjp(h)}; asd=function(h,W){if(nPD(h,W))return null;if(W.reason==="m"&&W.isLocked())return h.logger.debug(function(){return"User sets constraint to: "+Au(W)}),Rj(h,W),h.Z=h.Y.length-1,Bw(h),Jz(h),h.Wk=h.Wk||h.G!==h.nextVideo,h.G=h.nextVideo,new Ww(h.W,h.G,W.reason); W.reason==="r"&&(h.T=-1);Rj(h,W);Jz(h);if(W.reason==="r"&&h.nextVideo===h.G)return new Ww(h.W,h.nextVideo,W.reason);ju7(h);return null}; e8v=function(h,W,c){h.W=h.jO.X[W];h.S=h.W;return new Ww(h.S,h.G,c?"t":"m")}; z85=function(h,W){if(W.info.video){if(h.G!==W)return h.G=W,xjp(h)}else h.yg=h.S!==W,h.S=W;return null}; Qup=function(h,W){if(W.X.info.video&&W.C){var c=(W.W+W.G)/W.duration,V=W.X.info.Vg;c&&V&&(h.rE.c5(1,c/V),h.policy.G&&c/V>1.5&&h.loader.GV("overshoot",{sq:W.Hk,br:c,max:V}))}}; uM=function(h,W,c){$G(h.C,W,c===void 0?!1:c);h.T=-1;Rj(h,h.X)}; LMv=function(h,W){return new Ww(h.S,h.G,W||h.X.reason)}; ju7=function(h){if(h.G&&h.nextVideo&&dR(h,h.G.info)h.policy.bl,J=H<=h.policy.bl?CF(V):KF(V);if(!B||E||J)c[H]=V}return c}; Rj=function(h,W){h.X=W;var c=h.N.videoInfos;if(!h.X.isLocked()){var V=(0,g.aC)();c=g.Lf(c,function(J){if(J.Vg>this.policy.Vg)return!1;var u=this.jO.X[J.id];return sC(this.C).get(J.id)>V?!1:u.bW.G>4||u.N>4?(this.logger.debug(function(){return"Remove "+v_(J)+"; 4 load failures"}),!1):this.zV.has(+J.itag)?!1:!0},h); djN(h.C)&&(c=g.Lf(c,function(J){return J.video.width<=854&&J.video.height<=480}))}c.length||(c=h.N.videoInfos); var H=c;h.policy.nt&&(H=KMv(h,H,W));H=g.Lf(H,W.Y,W);if(h.X.isLocked()&&h.C.X){var B=g.jl(c,function(J){return J.id===h.C.X}); B?H=[B]:Hw(h.C,"")}h.policy.nt||(H=KMv(h,H,W));H.length||(H=[c[0]]);H.sort(function(J,u){return dR(h,J)-dR(h,u)}); W={};for(c=1;cW.tD.video.width?(g.zt(H,c),c--):dR(h,W.NP)*h.policy.Z>dR(h,W.tD)&&(g.zt(H,c-1),c--);var E=H[H.length-1];h.Jk=!!h.G&&!!h.G.info&&h.G.info.eO!==E.eO;h.logger.debug(function(){return"Constraint: "+Au(h.X)+", "+H.length+" fmts selectable, max selectable fmt: "+v_(E)}); h.Y=H;h.Rz.clear();W=!1;for(c=0;c=1080&&(W=!0);AwD(h.policy,E,h.jO.Hi)}; KMv=function(h,W,c){var V=c.reason==="m"||c.reason==="s";h.policy.MX&&Gj&&g.G1&&(!V||c.X<1080)&&(W=W.filter(function(d){return d.video&&(!d.W||d.W.powerEfficient)})); if(W.length>0)if(cc()){var H=ivh(h,W);W=W.filter(function(d){return!!d&&!!d.video&&d.eO===H[d.video.qualityOrdinal].eO})}else{var B,E,J=(B=W[0])==null?void 0:(E=B.video)==null?void 0:E.qualityOrdinal; if(J){c=W.filter(function(d){return!!d&&!!d.video&&d.video.qualityOrdinal===J}); var u=ivh(h,c)[J].eO;W=W.filter(function(d){return!!d&&!!d.video&&d.eO===u})}}return W}; Ujv=function(h,W){for(var c=0;c+1V}; Bw=function(h){if(!h.W||!h.policy.Y&&!h.W.info.iW){var W=h.N.X;h.W&&(W=W.filter(function(V){return V.audio.X===h.W.info.audio.X}),W.length||(W=h.N.X)); h.W=h.jO.X[W[0].id];if(W.length>1&&!h.policy.yg){if(!h.policy.St){var c=g.jl(W,function(V){return V.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); c&&(h.W=h.jO.X[c.id])}c=!1;if(c=h.policy.iX?!0:h.X.isLocked()?h.X.X<240:Ujv(h,h.W))h.W=h.jO.X[g.x6(W).id]}}}; Jz=function(h){if(!h.nextVideo||!h.policy.Y)if(h.X.isLocked())h.nextVideo=h.X.X<=360?h.jO.X[h.Y[0].id]:h.jO.X[g.x6(h.Y).id],h.logger.debug(function(){return"Select max fmt: "+v_(h.nextVideo.info)}); else{for(var W=Math.min(h.Z,h.Y.length-1),c=YK(h.Pk),V=dR(h,h.W.info),H=c/h.policy.XI-V;W>0&&!(dR(h,h.Y[W])<=H);W--);for(var B=c/h.policy.Z-V;W=B);W++);h.nextVideo=h.jO.X[h.Y[W].id];h.Z!==W&&h.logger.info(function(){return"Adapt to: "+v_(h.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+H.toFixed(0)+", bandwidth to upgrade: "+B.toFixed(0)+", constraint: "+Au(h.X)}); h.Z=W}}; rwk=function(h){var W=h.policy.XI,c=YK(h.Pk),V=c/W-dR(h,h.W.info);W=g.af(h.Y,function(H){return dR(this,H)B?H=0:V[E]>h.buffered[E]&&(E===B-1?H=2:E===B-2&&V[E+1]>h.buffered[E+1]&&(H=3))}h.X.add(W<<3|(c&&4)|H);W=Math.ceil(h.track.L$()*1E3);h.X.add(W-h.C);h.C=W;if(H===1)for(h.X.add(B),E=W=0;E=2&&h.X.add(V[B- 1]-h.buffered[B-1]);c&&h.X.add(c);h.buffered=V}; qW=function(h,W,c){var V=this;this.policy=h;this.X=W;this.DH=c;this.Y=this.W=0;this.yj=null;this.XI=new Set;this.T=[];this.indexRange=this.initRange=null;this.Z=new d4;this.Wk=this.Pk=!1;this.uX={k7E:function(){return V.G}, JoH:function(){return V.chunkSize}, USI:function(){return V.S}, s4M:function(){return V.N}}; (W=PS5(this))?(this.chunkSize=W.csz,this.G=Math.floor(W.clen/W.csz),this.S=W.ck,this.N=W.civ):(this.chunkSize=h.U_,this.G=0,this.S=g.Ge(16),this.N=g.Ge(16));this.C=new Uint8Array(this.chunkSize);this.S&&this.N&&(this.crypto=new og5(this.S,this.N))}; PS5=function(h){if(h.policy.CG&&h.policy.oP)for(var W=g.e(h.policy.CG),c=W.next(),V={};!c.done;V={vN:void 0,Rm:void 0},c=W.next())if(c=g.wO(c.value),V.vN=+c.clen,V.Rm=+c.csz,V.vN>0&&V.Rm>0&&h.policy.Y===c.docid&&h.X.info.id===c.fmtid&&h.X.info.lastModified===+c.lmt)return h={},h.clen=V.vN,h.csz=V.Rm,h.ck=c.ck,h.civ=c.civ,h}; xG=function(h){return!!h.yj&&h.yj.CU()}; TW5=function(h,W){if(!xG(h)&&!h.gE()){if(!(h.Pk||(h.Pk=!0,h.G>0))){var c=lM(h);c=Vk(h.policy.Y,h.X.info,np(h),c,h.policy.rE);jv(h,c)}if(W.info.type===1){if(h.yj){aj(h,Error("Woffle: Expect INIT slices to always start us off"));return}h.initRange=Sr(0,W.W.totalLength)}else if(W.info.type===2)h.yj&&h.yj.type===1||aj(h,Error("Woffle: Index before init")),h.indexRange=Sr(h.initRange.end+1,W.W.totalLength);else if(W.info.type===3){if(!h.yj){aj(h,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(h.yj.type===3&&!hw(h.yj,W.info)&&(h.T=[],W.info.Hk!==WJ(h.yj)||W.info.W!==0))return;if(W.info.C){c=g.e(h.T);for(var V=c.next();!V.done;V=c.next())fsv(h,V.value);h.T=[]}else{h.T.push(W);h.yj=W.info;return}}else{aj(h,Error("Woffle: Unexpected slice type"));return}h.yj=W.info;fsv(h,W);bvp(h)}}; fsv=function(h,W){var c=0,V=sk(W.W);if(h.Y=V.length)return;if(c<0)throw Error("Missing data");h.Y=h.G;h.W=0}for(H={};c0){var E=V.getUint32(c+28);B+=E*16+4}var J=V.getUint32(c+B-4);try{var u=mjU(W.subarray(c+B,c+B+J));if(u!==null){var d=u;break a}}catch(G){}}c+=H}d=null;break a}catch(G){d=null;break a}d=void 0}if(d!=null)for(W=ZO(DO(d,7,void 0,C7)),W==null||h.Aq||(h.cryptoPeriodIndex=W),W=ZO(DO(d,10,void 0,C7)),W!=null&&W>0&& !h.Aq&&(h.X=W),d=$L(d,2,UoL,void 0===ykN?2:4),d=g.e(d),V=d.next();!V.done;V=d.next())W=h.G,c=W.push,V=PW(V.value),V=g.i6(V,4),c.call(W,V)}; pJQ=function(h){return isNaN(h.cryptoPeriodIndex)?g.i6(h.initData):""+h.cryptoPeriodIndex}; QL=function(h,W,c){var V=c===void 0?{}:c;c=V.videoDuration===void 0?0:V.videoDuration;var H=V.WF===void 0?void 0:V.WF;V=V.Qn===void 0?!1:V.Qn;this.videoId=h;this.status=W;this.videoDuration=c;this.WF=H;this.Qn=V}; IsN=function(h,W,c,V,H){this.videoId=h;this.hU=W;this.W=c;this.bytesDownloaded=V;this.X=H}; Lp=function(h){this.X=h;this.offset=0}; iM=function(h){if(h.offset>=h.X.totalLength)throw Error();return B7(h.X,h.offset++)}; Yjd=function(h,W){W=W===void 0?!1:W;var c=iM(h);if(c===1){W=-1;for(c=0;c<7;c++){var V=iM(h);W===-1&&V!==255&&(W=0);W>-1&&(W=W*256+V)}return W}V=128;for(var H=0;H<6&&V>c;H++)c=c*256+iM(h),V*=128;return W?c:c-V}; Ovp=function(h){try{var W=Yjd(h,!0),c=Yjd(h,!1);return{id:W,size:c}}catch(V){return{id:-1,size:-1}}}; SjD=function(h){for(var W=new Lp(h),c=-1,V=0,H=0;!V||!H;){var B=Ovp(W),E=B.id;B=B.size;if(E<0)return;if(E===176){if(B!==2)return;V=W.LN()}else if(E===186){if(B!==2)return;H=W.LN()}E===374648427?c=W.LN()+B:E!==408125543&&E!==174&&E!==224&&W.skip(B)}W=H7(h,0,c);c=new DataView(W.buffer);c.setUint16(V,3840);c.setUint16(H,2160);V=new hQ([W]);W7(V,h);return V}; gPT=function(h,W,c){var V=this;this.loader=h;this.policy=W;this.C=c;this.logger=new g.xP("dash");this.W=[];this.X=null;this.Pk=-1;this.T=0;this.zV=NaN;this.XI=0;this.G=NaN;this.Z=this.Nn=0;this.Jk=-1;this.mW=this.Y=this.N=this.DH=null;this.rE=this.yg=NaN;this.S=this.Wk=this.Rz=this.Mn=null;this.Ef=!1;this.CM=this.timestampOffset=0;this.uX={dC:function(){return V.W}}; if(this.policy.Y){var H=this.C,B=this.policy.Y;this.policy.rE&&h.GV("atv",{ap:this.policy.rE});this.S=new qW(this.policy,H,function(E,J,u){Kp(h,new QL(V.policy.Y,2,{WF:new IsN(B,E,H.info,J,u)}))}); this.S.Z.promise.then(function(E){V.S=null;E===1?Kp(h,new QL(V.policy.Y,E)):V.loader.GV("offlineerr",{status:E.toString()})},function(E){var J=(E.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); E instanceof ev&&!E.X?(V.logger.info(function(){return"Assertion failed: "+J}),V.loader.GV("offlinenwerr",{em:J}),Az(V),Kp(h,new QL(V.policy.Y,4))):(V.logger.info(function(){return"Failed to write to disk: "+J}),V.loader.GV("dldbwerr",{em:J}),Az(V),Kp(h,new QL(V.policy.Y,4,{Qn:!0})))})}}; Dj5=function(h){return h.W.length?h.W[0]:null}; wJT=function(h,W){return h.W.some(function(c){return c.info.Hk===W})}; VNd=function(h,W,c,V){V=V===void 0?0:V;if(h.Y){var H=h.Y.W+h.Y.G;if(c.info.W>0)if(c.info.Hk===h.Y.Hk&&c.info.W=0&&h.Y.Hk>=0&&!hw(h.Y,c.info))throw new g.tP("improper_continuation",h.Y.aR(),c.info.aR());evU(h.Y,c.info)||UC(h,"d")}else if(c.info.W>0)throw new g.tP("continuation_of_null",c.info.aR());h.Y=c.info;h.C=c.info.X;if(c.info.W===0){if(h.X)if(!h.loader.isOffline()||h.policy.Er)h.loader.GV("slice_not_fully_processed", {buffered:h.X.info.aR(),push:c.info.aR()});else throw new g.tP("slice_not_fully_processed",h.X.info.aR(),c.info.aR());Cp(h);h.Nn=V}else{if(h.Nn&&V&&h.Nn!==V)throw h=new g.tP("lmt_mismatch",c.info.Hk,h.Nn,V),h.level="WARNING",h;!c.info.X.Sl()&&h.N&&(V=c.info,H=h.N.yZ,V.S="updateWithEmsg",V.Hk=H)}if(h.X){V=g.au(h.X,c);if(!V)throw new g.tP("failed_to_merge",h.X.info.aR(),c.info.aR());h.X=V}else h.X=c;a:{c=g.yT(h.X.info.X.info);if(h.X.info.type!==3){if(!h.X.info.C)break a;h.X.info.type===6?kwv(h,W,h.X): hfk(h,h.X);h.X=null}for(;h.X;){V=h.X.W.totalLength;if(h.Pk<=0&&h.T===0){var B=h.X.W,E=-1;H=-1;if(c){for(var J=0;J+80))break;if(Z!==408125543)if(Z===524531317)J=!0,G>=0&&(H=B.LN()+G,u=!0);else{if(J&&(Z===160||Z===163)&&(E<0&&(E=d),u))break;Z===163&&(E=Math.max(0,E),H=B.LN()+G);if(Z===160){E<0&&(H=E=B.LN()+ G);break}B.skip(G)}}E<0&&(H=-1)}if(E<0)break;h.Pk=E;h.T=H-E}if(h.Pk>V)break;h.Pk?(V=WI4(h,h.Pk),V.C&&cgl(h,V),kwv(h,W,V),MW(h,V),h.Pk=0):h.T&&(V=WI4(h,h.T<0?Infinity:h.T),h.T-=V.W.totalLength,MW(h,V))}}h.X&&h.X.info.C&&(MW(h,h.X),h.X=null)}; hfk=function(h,W){!W.info.X.Sl()&&W.info.W===0&&(g.yT(W.info.X.info)||W.info.X.info.Aq())&&$7L(W);if(W.info.type===1)try{cgl(h,W),$8T(h,W)}catch(H){g.Qq(H);var c=cJ(W.info);c.hms="1";h.loader.handleError("fmt.unparseable",c||{},1)}c=W.info.X;c.AU(W);h.S&&TW5(h.S,W);if(c.Yx()&&h.policy.X)a:{h=h.loader.jO;W=W.info.clipId;c=g.fF(c.info,h.Hi);if(W){var V=pT({itag:c.itag,lmt:h.Hi?0:c.lmt||0,xtags:c.xtags});if(h.Jk[V])break a;h.Jk[V]=W}h.yg.push(c)}}; Upd=function(h,W,c){if(h.W.length!==0&&(c||h.W.some(function(B){return B.info.Y=yL(E)+J):W=h.getDuration()>=E.getDuration(),W=!W;W&&Bhl(c)&&(W=h.DH,FT?(J=cYL(c),E=1/J,J=yL(h,J),W=yL(W)+E-J):W=W.getDuration()- h.getDuration(),W=1+W/c.info.duration,kq4(g.jg(c),W))}else{E=!1;h.N||($7L(c),c.X&&(h.N=c.X,E=!0,H=c.info,B=c.X.yZ,H.S="updateWithEmsg",H.Hk=B,H=c.X,H.CU&&(B=h.C.index,B.W=!H.CU,B.G="emsg"),H=c.info.X.info,B=g.jg(c),g.yT(H)?l_(B,1701671783):H.Aq()&&i_([408125543],307544935,B)));a:if((H=QK(c,h.policy.U5))&&V$p(c))J=EaU(h,c),h.Z+=J,H-=J,h.XI+=H,h.G=h.policy.TA?h.G+H:NaN;else{if(h.policy.As){if(B=u=h.loader.zP(g.eg(c),1),h.G>=0&&c.info.type!==6){if(h.policy.TA&&isNaN(h.yg)){g.Lx(new g.tP("Missing duration while processing previous chunk", c.info.aR()));h.loader.isOffline()&&!h.policy.Er||Rfk(h,c,B);UC(h,"m");break a}V=u-h.G;var d=V-h.Z,G=c.info.Hk,Z=h.mW?h.mW.Hk:-1,r=h.rE,q=h.yg,x=h.policy.EG&&V>h.policy.EG,z=Math.abs(d)>10,L=Math.abs(h.G-B)<1E-7;if(Math.abs(d)>1E-4){h.CM+=1;var M=(J=h.N)==null?void 0:O5U(J);J={audio:""+ +h.Qr(),sq:G.toFixed(),sliceStart:u,lastSq:Z.toFixed(),lastSliceStart:r,lastSliceDuration:q,totalDrift:(V*1E3).toFixed(),segDrift:(d*1E3).toFixed(),skipRewrite:""+ +(x||z)};if(M==null?0:M.length)J.adCpn=M[0];h.loader.handleError("qoe.avsync", J);h.Jk=G}x||z||L||(B=h.G);J=EaU(h,c,u);H-=J;h.Z=V+J}}else B=isNaN(h.G)?c.info.startTime:h.G;Rfk(h,c,B)&&(h.XI+=H,h.G=B+H,h.policy.eb&&h.CM>=h.policy.eb&&(h.CM=0,h.loader.TP({resetForRewrites:"count"})))}h.mW=c.info;h.yg=zw(c);c.G>=0&&(h.rE=c.G);if(E&&h.N){E=Jgv(h,!0);VK(c.info,E);h.X&&VK(h.X.info,E);W=g.e(W);for(J=W.next();!J.done;J=W.next())J=J.value,H=void 0,h.policy.C&&J.Hk!==((H=h.N)==null?void 0:H.yZ)||VK(J,E);(c.info.C||h.X&&h.X.info.C)&&c.info.type!==6||(h.Wk=E,h.policy.W?(W=u8Q(h.N),h.loader.KW(h.C, E,W)):(W=h.loader,W.jO.isManifestless&&d8N(W,E,null,!!h.C.info.video)),h.policy.uC||Gck(h))}}$8T(h,c);h.timestampOffset&&hm7(c,h.timestampOffset)}; MW=function(h,W){if(W.info.C){h.Mn=W.info;if(h.N){var c=h.N,V=Jgv(h,!1);c=u8Q(c);h.loader.KW(h.C,V,c);h.Wk||h.policy.uC||Gck(h);h.Wk=null}Cp(h)}h.S&&TW5(h.S,W);if(V=h.fQ())if(V=g.au(V,W,h.policy.xm,h.policy.Uy)){h.W.pop();h.W.push(V);return}h.W.push(W)}; u8Q=function(h){if(h.Di()){var W=h.data["Stitched-Video-Id"]?h.data["Stitched-Video-Id"].split(",").slice(0,-1):[],c=O5U(h),V=[];if(h.data["Stitched-Video-Duration-Us"])for(var H=g.e(h.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),B=H.next();!B.done;B=H.next())V.push((Number(B.value)||0)/1E6);H=[];if(h.data["Stitched-Video-Start-Frame-Index"]){B=g.e(h.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var E=B.next();!E.done;E=B.next())H.push(Number(E.value)||0)}H=[]; if(h.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(B=g.e(h.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),E=B.next();!E.done;E=B.next())H.push((Number(E.value)||0)/1E6);h=new vPp(W,c,V,H,g.Seh(h),g.gnd(h))}else h=null;return h}; Cp=function(h){h.X=null;h.Pk=-1;h.T=0;h.N=null;h.zV=NaN;h.XI=0;h.Wk=null}; UC=function(h,W){W={rst4disc:W,cd:h.Z.toFixed(3),sq:h.mW?h.mW.Hk:-1};h.G=NaN;h.Z=0;h.Jk=-1;h.mW=null;h.rE=NaN;h.yg=NaN;h.Rz=null;h.loader.GV("mdstm",W)}; $8T=function(h,W){if(h.isDrm()){if(W.info.X.info.Aq()){var c=new jr(g.jg(W));if(er(c,[408125543,374648427,174,28032,25152,20533,18402])){var V=LT(c,!0);c=V!==16?null:CT(c,V)}else c=null;V="webm"}else W.info.T=XJN(g.jg(W)),c=tgl(W.info.T),V="cenc";c&&c.length&&(c=new zj(c,V),h.policy.XO&&g.yT(W.info.X.info)&&(V=sGN(g.jg(W)))&&(c.W=V),c.Aq=W.info.X.info.Aq(),W.X&&W.X.cryptoPeriodIndex&&(c.cryptoPeriodIndex=W.X.cryptoPeriodIndex),W.X&&W.X.W&&(c.X=W.X.W),h.loader.DE(c))}}; Gck=function(h){var W=h.N,c=IcN(W);c&&(c.startSecs+=h.zV,h.loader.Og(h.C,c,W.yZ,W.Di()))}; Jgv=function(h,W){var c,V=h.N;if(c=IcN(V))c.startSecs+=h.zV;return new SG(V.yZ,h.zV,W?V.Ix:h.XI,V.ingestionTime,"sq/"+V.yZ,void 0,void 0,W,c)}; Rfk=function(h,W,c){if(!kWh(W,c))return W=cJ(W.info),W.smst="1",h.loader.handleError("fmt.unparseable",W||{},1),!1;isNaN(h.zV)&&(h.zV=c);return!0}; EaU=function(h,W,c){var V=0;if(W.info.X.info.Aq()&&!V$p(W))return 0;if(h.DH&&!h.Qr()){var H=0;c&&g.yT(W.info.X.info)?H=c-h.G:W.info.X.info.Aq()&&(H=h.Z);var B=W.info.Hk;c=QK(W,h.policy.U5);var E=h.DH;var J=E.Jk;E=E.Z;var u=Math.abs(E-H)>.02;if((B===J||B>J&&B>h.Jk)&&u){V=Math.max(.95,Math.min(1.05,(c-(E-H))/c));if(g.yT(W.info.X.info))kq4(g.jg(W),V);else if(W.info.X.info.Aq()&&(B=H-E,!g.yT(W.info.X.info)&&(W.info.X.info.Aq(),V=new jr(g.jg(W)),J=W.C?V:new jr(new DataView(W.info.X.X.buffer)),QK(W,!0)))){var d= B*1E3,G=Fh(J);J=V.pos;V.pos=0;if(V.X.getUint8(V.pos)===160||y4(V))if(Q4(V,160))if(LT(V,!0),Q4(V,155)){if(B=V.pos,u=LT(V,!0),V.pos=B,d=d*1E9/G,G=KT(V),d=G+Math.max(-G*.7,Math.min(G,d)),d=Math.sign(d)*Math.floor(Math.abs(d)),!(Math.ceil(Math.log(d)/Math.log(2)/8)>u)){V.pos=B+1;for(B=u-1;B>=0;B--)V.X.setUint8(V.pos+B,d&255),d>>>=8;V.pos=J}}else V.pos=J;else V.pos=J;else V.pos=J}V=QK(W,h.policy.U5);V=c-V}V&&W.info.X.info.Aq()&&h.loader.GV("webmDurationAdjustment",{durationAdjustment:V,videoDrift:H+V, audioDrift:E})}return V}; Bhl=function(h){return h.info.X.Sl()&&h.info.Hk===h.info.X.index.KR()}; yL=function(h,W){W=(W=W===void 0?0:W)?Math.round(h.timestampOffset*W)/W:h.timestampOffset;h.C.Y&&W&&(W+=h.C.Y.X);return W+h.getDuration()}; ZlN=function(h,W){W<0||(h.W.forEach(function(c){hm7(c,W)}),h.timestampOffset=W)}; wa=function(h,W,c,V,H){q2.call(this,c,H);var B=this;this.policy=h;this.formatId=W;this.JE=V;this.lastError=null;this.SL=function(){B.gE()||(B.JE.jo.has(B.formatId)?(B.isComplete()||B.X.start(),mj(B.JE,B.formatId)&&B.Ho(2),B.JE.xx(B.formatId)&&(yRh(B.JE,B.formatId)?B.So(4):(B.lastError="net.closed",B.So(5)))):(B.lastError="player.exception",B.So(5)))}; this.X=new g.oD(function(){B.isComplete()||(B.lastError="net.timeout",B.So(5))},1E3); this.X.start();C_h(this.JE,this.formatId,this.SL);g.nW(this.SL)}; Pw=function(h,W,c,V){g.N.call(this);var H=this;this.loader=h;this.policy=W;this.X=c;this.timing=V;this.logger=new g.xP("dash");this.G=[];this.DH=[];this.W=this.jx=null;this.Rz=!1;this.Nn=this.CM=0;this.N=-1;this.Pk=!1;this.zV=-1;this.mW=null;this.Wk=NaN;this.XI=[];this.uX={q7:function(){return H.Y}, zkO:function(){return H.G}, iQN:function(){return H.Z}}; this.Y=new gPT(h,W,c);this.policy.X&&(this.Z=new SY(this.Y,this.loader.getManifest(),this.policy,function(B){H.policy.MS&&H.GV("buftl",B)})); this.policy.Sx&&(this.T=new Z7(this));this.Vg=c.info.Vg;this.S=this.policy.Wk?!1:c.BJ();this.isManifestless=c.BJ();this.C=this.S;g.X(this,this.mW)}; fp=function(h,W,c){c=c===void 0?!1:c;W&&FT&&ZlN(h.Y,W.M7());if(!c){var V;(V=h.Z)==null||LdT(V)}h.jx=W;(W=h.Z)!=null&&(W.jx=h.jx)}; bM=function(h){var W=h.jx&&h.jx.xB();if(h.policy.Xt){if((h=h.Z)==null)h=void 0;else{var c;h=(c=h.G)==null?void 0:c.info}return h||null}return W}; rgD=function(h){for(var W={},c=0;c4&&h.DH.shift()}; qdk=function(h,W){if(W.Zk()){var c=W.I2();c=g.e(c);for(var V=c.next();!V.done;V=c.next())V=V.value,h.policy.G&&W instanceof wa&&h.GV("omblss",{s:V.info.aR()}),NW(h,W.info.pM,V,W.yR())}}; NW=function(h,W,c,V){V=V===void 0?0:V;isNaN(h.Wk)||(h.GV("aswm",{sq:W[0].Hk,id:W[0].X.info.itag,xtag:W[0].X.info.X,ep:Date.now()-h.Wk}),h.Wk=NaN);switch(c.info.type){case 1:case 2:x8p(h,c);break;case 4:var H=c.info.X,B=H.dN(c),E;((E=h.W)==null?0:E.type===4)&&UQL(c.info,h.W)&&(h.W=H.V5(h.W).pop());c=g.e(B);for(H=c.next();!H.done;H=c.next())NW(h,W,H.value,V);break;case 3:c.info.X.info.video?(H=h.timing,H.zV||(H.zV=(0,g.aC)(),g.vc("fvb_r",H.zV,H.X))):(H=h.timing,H.N||(H.N=(0,g.aC)(),g.vc("fab_r",H.N, H.X)));VNd(h.Y,W,c,V);h.policy.X&&lEQ(h);break;case 6:VNd(h.Y,W,c,V),h.W=c.info}}; x8p=function(h,W){if(W.info.type===1)if(W.info.X.info.video){var c=h.timing;c.Nn||(c.Nn=(0,g.aC)(),g.vc("vis_r",c.Nn,c.X))}else c=h.timing,c.Z||(c.Z=(0,g.aC)(),g.vc("ais_r",c.Z,c.X));hfk(h.Y,W);h=h.loader;h.videoTrack.X.Yx()&&h.audioTrack.X.Yx()&&h.policy.X&&!h.jO.Hi&&(W=h.audioTrack.getDuration(),c=h.videoTrack.getDuration(),Math.abs(W-c)>1&&h.GV("trBug",{af:""+g.fF(h.audioTrack.X.info,!1),vf:""+g.fF(h.videoTrack.X.info,!1),a:""+W,v:""+c}))}; Ex=function(h){return Dj5(h.Y)}; lEQ=function(h){h.G.length?h.W=g.x6(g.x6(h.G).info.pM):h.Y.W.length?h.W=h.Y.fQ().info:h.W=bM(h)}; XT=function(h,W){var c={O5:[],Up:[]},V;if((h=h.Z)==null)h=void 0;else{Q75(h,h.O5,"og");aHD(h,W);Q75(h,h.O5,"trim");var H=zdD(h);W=H.O5;H=H.Uq;for(var B=[],E=0;E0){var r=pF(Z,u);r>=0&&(G=(Z.end(r)-u+.1)*1E3)}B.push({formatId:g.fF(J.info.X.info,h.jO.Hi), Jl:J.info.Jl,sequenceNumber:J.info.Hk+h.Y,Rc:d,Rr:J.info.G,RE:G})}h={O5:W,Up:B}}return(V=h)!=null?V:c}; WP=function(h,W,c){c=c===void 0?!1:c;if(h.jx){var V=h.jx.M$(),H=On(V,W),B=NaN,E=bM(h);E&&(B=On(V,E.X.index.getStartTime(E.Hk)));if(H===B&&h.W&&h.W.G&&nap(tz(h),0))return W}h=j9k(h,W,c);return h>=0?h:NaN}; VN=function(h,W,c){h.X.Yx();var V=j9k(h,W);if(V>=0)return V;var H;(H=h.Z)==null||ed7(H,W,c);V=Math;H=V.min;var B=h.Y;if(B.S)if(B=B.S,B.yj&&B.yj.type===3)B=B.yj.startTime;else if(B.G>0){var E=B.X.index;E=g.mU(E.offsets.subarray(0,E.count),B.G*B.chunkSize);B=B.X.index.getStartTime(E>=0?E:Math.max(0,-E-2))}else B=0;else B=Infinity;W=H.call(V,W,B);h.W=h.policy.Wk?null:h.X.aG(W).pM[0];vw(h)&&(h.policy.jQ&&(c==null?void 0:c.seekSource)===60||h.jx&&h.jx.abort(),h.policy.TB&&(c=h.Z)!=null&&(c.G=void 0)); h.Nn=0;return h.W?h.W.startTime:W}; Kd5=function(h){h.S=!0;h.C=!0;h.N=-1;VN(h,Infinity)}; mh=function(h){for(var W=0,c=g.e(h.G),V=c.next();!V.done;V=c.next())W+=Mdp(V.value.info);return W+=s9k(h.Y)}; pp=function(h,W){W=W===void 0?!1:W;var c=h.loader.getCurrentTime(),V=h.Y.fQ(),H=(V==null?void 0:V.info.N)||0;if((V==null?0:V.info.X.BJ())&&!V.info.C)if(h.policy.BR)H=V.info.Y;else if(h.policy.QK){var B=V.info;H=B.range?B.N:Math.min(B.startTime+Math.min(B.duration*B.W/B.X.info.Vg,B.duration)+(B.range?B.Z:Math.min(B.duration,B.duration*B.G/B.X.info.Vg)),B.startTime+B.duration)}if(!h.jx)return h.policy.X&&W&&!isNaN(c)&&V?H-c:0;if((B=bM(h))&&oj(B))return B.N;var E=h.jx.M$(!0);if(W&&V)return B=0,h.policy.X&& (B=Dx(E,H+.02)),B+H-c;W=Dx(E,c);h.policy.OC&&B&&(V=pF(E,c),E=pF(E,B.Y-.02),V===E&&(c=B.N-c,h.policy.G&&c>W+.02&&h.GV("abh",{bh:W,bhtls:c}),W=Math.max(W,c)));return W}; aEv=function(h){var W=bM(h);return W?W.N-h.loader.getCurrentTime():0}; efN=function(h,W){if(h.G.length){if(h.G[0].info.pM[0].startTime<=W)return;hD(h)}for(var c=h.Y,V=c.W.length-1;V>=0;V--)c.W[V].info.startTime>W&&c.W.pop();lEQ(h);h.W&&W=0;E--){var J=H.W[E];J.info.Hk>=W&&(H.W.pop(),H.G-=QK(J,H.policy.U5),B=J.info)}B&&(H.Y=H.W.length>0?H.W[H.W.length-1].info:H.Rz,H.W.length!==0||H.Y||UC(H,"r"));H.loader.GV("mdstm",{rollbk:1,itag:B?B.X.info.itag:"",popped:B?B.Hk:-1,sq:W,lastslc:H.Y?H.Y.Hk:-1,lastfraget:H.G.toFixed(3)});if(h.policy.X)return h.W=null,!0;V>c?VN(h,V):h.W=h.X.S0(W-1,!1).pM[0]}catch(u){return W=uX(u),W.details.reason="rollbkerr", h.loader.handleError(W.errorCode,W.details,W.severity),!1}return!0}; OC=function(h,W){var c;for(c=0;c0?c||W.Hk>=h.zV:c}; Sv=function(h){var W;return vw(h)||oj((W=h.Y.fQ())==null?void 0:W.info)}; tz=function(h){var W=[],c=bM(h);c&&W.push(c);W=g.C$(W,h.Y.ZS());c=g.e(h.G);for(var V=c.next();!V.done;V=c.next()){V=V.value;for(var H=g.e(V.info.pM),B=H.next(),E={};!B.done;E={jH:void 0},B=H.next())E.jH=B.value,V.aH&&(W=g.Lf(W,function(J){return function(u){return!UQL(u,J.jH)}}(E))),(k0(E.jH)||E.jH.type===4)&&W.push(E.jH)}h.W&&!jGd(h.W,g.x6(W),h.W.X.Sl())&&W.push(h.W); return W}; nap=function(h,W){if(!h.length)return!1;for(W+=1;W=W){W=B;break a}}W=H}return W<0?NaN:nap(h,c?W:0)?h[W].startTime:NaN}; gR=function(h){return!(!h.W||h.W.X===h.X)}; zfN=function(h){return gR(h)&&h.X.Yx()&&h.W.X.info.VgW&&h.N1080&&!h.l9&&(h.Nn=36700160,h.Mn=5242880,h.CM=Math.max(4194304,h.CM),h.l9=!0);W.video.qualityOrdinal>2160&&!h.Xn&&(h.Nn=104857600,h.Vg=13107200,h.Xn=!0);g.DF(h.fM.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?W.isEncrypted()&&g.NC()&&g.bW("samsung")&&(g.bW("kant")||g.bW("muse"))&&(h.Vg=g.DF(h.fM.experiments,"html5_samsung_kant_limit_max_bitrate")):W.isEncrypted()&&g.NC()&&g.bW("kant")&&(h.Vg=1310720);h.z3!==0&&W.isEncrypted()&& (h.Vg=h.z3);h.Cn!==0&&W.isEncrypted()&&c&&(h.Vg=h.Cn);W.Vg&&(h.kS=Math.max(h.Vz,Math.min(h.CM,5*W.Vg)))}; M2=function(h){return h.X&&h.Qm}; WM=function(h){return h.X&&h.Zr&&h.playbackStartPolicy}; cM=function(h,W,c,V){h.Zr&&(h.playbackStartPolicy=W,h.s_=c,h.FO=V)}; hJ=function(h,W,c){c=c===void 0?0:c;return g.DF(h.fM.experiments,W)||c}; bld=function(h){var W=h===void 0?{}:h;h=W.GA;var c=W.YC;var V=W.fp;var H=W.KR;W=W.u3;this.GA=h;this.YC=c;this.fp=V;this.KR=H;this.u3=W}; Xbl=function(h,W){if(W<0)return!0;var c=h.KR();return W0)return 2;if(W<0)return 1;c=h.KR();return W(0,g.aC)()?0:1}; $8=function(h,W,c,V,H,B,E,J,u,d,G,Z,r,q){q=q===void 0?null:q;g.N.call(this);var x=this;this.loader=h;this.policy=W;this.videoTrack=c;this.audioTrack=V;this.Y=H;this.X=B;this.timing=E;this.C=J;this.schedule=u;this.jO=d;this.G=G;this.XI=Z;this.Wf=r;this.gp=q;this.Wk=!1;this.vF="";this.q5=null;this.dS=NaN;this.Pk=!1;this.W=null;this.gS=this.T=NaN;this.XJ=this.N=0;this.logger=new g.xP("dash");this.uX={KV:function(z,L){return x.KV(z,L)}}; this.policy.Oj>0&&(this.vF=g.Ge(this.policy.Oj));this.policy.Gu&&(this.Z=new VM(this.loader,this.policy,this.schedule),g.X(this,this.Z))}; va5=function(h,W,c){var V=W.W?W.W.X.bW:W.X.bW;var H=h.Y,B;(B=!h.policy.ub)||(B=o7(V.X)===o7(V.W));B?V=!1:(H=Nh(H,o7(V.W)),B=6E4*Math.pow(H.Y,1.6),(0,g.aC)()=H.Y?(H.GV("sdai",{haltrq:B+1,est:H.Y}),V=!1):V=H.W!==2;if(!V||!oQ(W.W?W.W.X.bW:W.X.bW,h.policy,h.Y,h.loader.Ga())||h.loader.isSuspended&&(!pl(h.schedule)||h.loader.Pq))return!1;if(h.policy.Y&&cT>=5)return g.pO(h.loader.Y8),!1;if(h.jO.isManifestless){if(W.G.length>0&&W.W&&W.W.Hk===-1||W.G.length>=h.policy.Bh||!h.policy.jC&&W.G.length>0&&!h.policy.S.YC)return!1;if(W.S)return!h.jO.isLive|| !isNaN(h.dS)}if(Agk(W))return h.logger.debug("Pending request with server-selectable format found"),!1;if(!W.W){if(!W.X.Yx())return!1;VN(W,h.loader.getCurrentTime())}if(Ex(W)&&(W.fQ()!==Ex(W)||h.loader.isSuspended))return!1;H=(V=h.policy.pz)&&!W.G.length&&pp(W,!0)=h.policy.yp)return!1;V=W.W;if(!V)return!0;V.type===4&&V.X.Yx()&&(W.W=g.x6(V.X.V5(V)),V= W.W);if(!V.CU()&&!V.X.j0(V))return!1;B=h.jO.N$||h.jO.Y;if(h.jO.isManifestless&&B){B=W.X.index.KR();var E=c.X.index.KR();B=Math.min(B,E);if(W.X.index.GJ()>0&&B>0&&V.Hk>=B)return W.zV=B,c.zV=B,!1}if(V.X.info.audio&&V.type===4||V.CU())return!1;B=!W.C&&!c.C;if(H=!H)H=V.N,H=!!(c.W&&!oj(c.W)&&c.W.Nm8U(h,W)?(m8U(h,W),!1):(h=W.jx)&&h.isLocked()?!1:!0}; m8U=function(h,W){var c=h.X;c=c.X?c.X.WV:null;if(h.policy.DH&&c)return c.startSecs+c.QM+15;W=cP(h.loader,W);h.policy.lW>0&&(c=((0,g.aC)()-h.loader.MC)/1E3,W=Math.min(W,h.policy.lW+h.policy.hG*c));W=h.loader.getCurrentTime()+W;return h.policy.WO&&(c=oaU(h.loader)+h.policy.WO,c=0||W.bW.V8("defrag")==="1"||W.bW.V8("otf")==="1"){W=null;break a}H=Sr(0,4096)}H=new $P([new D$(5,V.X,H,"createProbeRequestInfo"+V.S,V.Hk)],W.W);H.B3=c;H.X=W.X;W=H}W&&HM(h,W)}}; HM=function(h,W){h.loader.n_(W);var c=Mdp(W),V=h.loader.Tn();c={Yd:h.schedule,wq:c,LY:ruL(h.C,c),Dw:wP(W.pM[0]),jc:pB(W.bW.X),kB:h.policy.G,vX:function(E,J){h.loader.kc(E,J)}}; if(h.schedule.W.N){var H,B;c.Fm=(((H=h.videoTrack.X)==null?void 0:H.info.Vg)||0)+(((B=h.audioTrack.X)==null?void 0:B.info.Vg)||0)}h.q5&&(c.Hk=W.pM[0].Hk,c.dS=W.dS,c.q5=h.q5);V={Rw:Fyl(W,h.loader.getCurrentTime()),wL:h.policy.H9&&HJ(W)&&W.pM[0].X.info.video?Mg4(h.G):void 0,lU:h.policy.DH,poToken:h.loader.qN(),NF:h.loader.HJ(),vF:h.vF,gS:isNaN(h.gS)?null:h.gS,gp:h.gp,Wf:h.Wf,XJ:h.XJ,UQ:V};return new kK(h.policy,W,c,h.Y,function(E,J){try{a:{var u=E.info.pM[0].X,d=u.info.video?h.videoTrack:h.audioTrack; if(!(E.state>=2)||E.isComplete()||E.z7()||!(!h.loader.KM||h.loader.isSuspended||pp(d)>3)){var G=XxU(E,h.policy,h.Y);G===1&&(h.Pk=!0);pxL(h,E,G);if(E.isComplete()||E.gE()&&J<3){if(h.policy.G){var Z=E.timing.wZ();Z.rst=E.state;Z.strm=E.xhr.gy();Z.cncl=E.xhr&&E.D3.Y?1:0;h.loader.GV("rqs",Z)}E.hO&&h.loader.GV("sbwe3",{},!0)}if(!h.gE()&&E.state>=2){kYp(h.timing,E,u);var r=h.loader;h.gS&&E.yv&&r&&(h.gS=NaN,h.loader.SF(E.yv),h.loader.zX(),h.loader.GV("cabrUtcSeek",{mediaTimeSeconds:E.yv}));E.OQ&&h.gS&&E.OQ&& !E.OQ.action&&(h.loader.rf(h.gS),h.gS=NaN,h.loader.GV("cabrUtcSeekFallback",{targetUtcTimeSeconds:h.gS}));E.R4&&h.loader.OZ(E.R4);h.policy.U8&&(h.XJ=E.XJ);if(E.state===3){OC(d,E);HJ(E.info)&&EZ(h,d,u,!0);if(h.W){var q=E.info.fZ();q&&h.W.kO(E.info.pM[0].Hk,u.info.id,q)}h.loader.bV()}else if(E.isComplete()&&E.info.pM[0].type===5){if(E.state!==4)E.C$()&&h.loader.handleError(E.KG(),E.Kn());else{var x=(E.info.pM[0].X.info.video?h.videoTrack:h.audioTrack).G[0]||null;x&&x instanceof kK&&x.z7()&&x.qK()}E.dispose()}else{E.C$()|| IE4(h,E);var z;((z=E.Wo)==null?0:z.itagDenylist)&&h.loader.RA(E.Wo.itagDenylist);if(E.state===4)RE(h,E),h.X&&$jd(h.X,E.info,h.W);else if(h.policy.Jo&&E.Zk()&&!E.isComplete()&&!RE(h,E)&&!E.C$())break a;E.C$()&&(Ydv(h,E),isNaN(h.gS)||(h.loader.rf(h.gS),h.gS=NaN));h.policy.Zn&&!E.isComplete()?JJ(h.loader):h.loader.bV();var L=tNp(E,h.policy,h.Y);pxL(h,E,L)}}}}}catch(M){J=h.Wk?1:0,h.Wk=!0,E=Jp(J),J=uX(M,J),h.loader.handleError(J.errorCode,J.details,J.severity),E||h.loader.Il()}},V)}; IE4=function(h,W){if(W.K1&&W.state>=2&&W.state!==3){var c=W.xhr.getResponseHeader("X-Response-Itag");if(c){h.logger.debug(function(){return"Applying streamer-selected format "+c}); var V=CSp(h.G,c),H=W.info.G;H&&(H-=V.FG(),V.G=!0,W.info.pM[0].X.G=!1,KNU(W,V.Wd(H)),us(h.loader,h.videoTrack,V),U8d(h.videoTrack,V),h.loader.D_(V.info.video.quality),(H=W.yR())&&V.info.lastModified&&V.info.lastModified!==+H&&OC(h.videoTrack,W))}else W.K1=!1}}; Ydv=function(h,W){var c=W.info.pM[0].X,V=W.KG();if(pB(c.bW.X)){var H=g.Ks(W.B9(),3);h.loader.GV("dldbrerr",{em:H||"none"})}H=W.info.pM[0].Hk;var B=w6(h.X,W.info.pM[0].Y,H);V==="net.badstatus"&&(h.N+=1);if(W.canRetry()&&dv(h.loader)){if(!(W.info.bW.G>=h.policy.E2&&h.W&&W.info.isDecorated()&&V==="net.badstatus"&&h.W.Ve(B,H))){H=(c.info.video&&c.bW.G>1||W.HH===410||W.HH===500||W.HH===503)&&!(sC(h.G.C).size>0)&&!pB(c.bW.X);B=W.Kn();var E=c.info.video?h.videoTrack:h.audioTrack;H&&(B.stun="1");h.loader.handleError(V, B);h.gE()||(H&&(h.logger.debug(function(){return"Stunning format "+c.info.id}),uM(h.G,c)),OC(E,W),h.loader.bV())}}else E=1,h.W&&W.info.isDecorated()&&V==="net.badstatus"&&h.W.Ve(B,H)&&(E=0),h.jO.isLive&&W.KG()==="net.badstatus"&&h.N<=h.policy.FJ*2?(T45(h.jO),h.jO.N$||h.jO.isPremiere?BP(h.loader,0,{LR:"badStatusWorkaround"}):h.jO.Y?BP(h.loader,h.jO.DH,{LR:"badStatusWorkaround", zP:!0}):GM(h.loader)):h.loader.handleError(V,W.Kn(),E)}; RE=function(h,W){if(h.policy.useUmp&&W.gE())return!1;try{var c=W.info.pM[0].X,V=c.info.video?h.videoTrack:h.audioTrack;if(h.jO.isManifestless&&V){h.N=0;V.S&&(W.gE(),W.isComplete()||W.Zk(),V.S=!1);W.QR()&&h.loader.kt.c5(1,W.QR());var H=W.GJ(),B=W.Tf();YP(h.jO,H,B)}if(W.info.Dw()&&!sj(W.info))for(var E=g.e(W.I2()),J=E.next();!J.done;J=E.next())x8p(V,J.value);for(h.loader.getCurrentTime();V.G.length&&V.G[0].state===4;){var u=V.G.shift();qdk(V,u);V.CM=u.xT()}V.G.length&&qdk(V,V.G[0]);var d=!!Ex(V);d&& W instanceof wa&&(c.info.Qr()?I$v(h.timing):p0Q(h.timing));return d}catch(G){W=W.Kn();W.origin="hrhs";a:{h=h.loader;c=G;if(c instanceof Error){W.msg||(W.msg=""+c.message);W.name||(W.name=""+c.name);if(c instanceof g.tP&&c.args)for(V=g.e(Object.entries(c.args)),H=V.next();!H.done;H=V.next())B=g.e(H.value),H=B.next().value,B=B.next().value,W["arg"+H]=""+B;g.Lx(c);if(c.level==="WARNING"){h.lB.TP(W);break a}}h.handleError("fmt.unplayable",W,1)}return!1}}; Ol4=function(h){var W=h.videoTrack.X.index;h.q5=new bld({GA:h.policy.GA,YC:h.policy.S.YC,fp:W.Ht(),KR:function(){return W.KR()}, u3:function(){return W.u3()}})}; EZ=function(h,W,c,V){if(!(c.Yx()||c.Ar()||c.G||!oQ(c.bW,h.policy,h.Y,h.loader.Ga())||c.info.eO==="f"||h.policy.X)){if(V){V=h.C;var H=c.info;V=q1D(V,H.video?V.policy.hQ:V.policy.X6,H.Vg)}else V=0;V=c.Wd(V);h=HM(h,V);sj(V)&&Tj(W,h);c.G=!0}}; Zo=function(h,W,c,V,H,B,E,J){g.N.call(this);var u=this;this.loader=h;this.cV=W;this.videoTrack=c;this.audioTrack=V;this.jO=H;this.T=B;this.isAudioOnly=E;this.Z=J;this.W=dM;this.Pk=!1;this.logger=new g.xP("sabr");this.S=this.Wk=this.XI=!1;this.videoInfos=this.N=this.T.videoInfos;this.G=this.DH=this.T.X;this.X=new VL(W,B,function(d,G){u.loader.GV(d,G)}); this.isAudioOnly&&SdN(this,this.jO.X["0"])}; ga5=function(h,W){var c=[];W=g.e(W);for(var V=W.next();!V.done;V=W.next())c.push(g.fF(V.value,h.jO.Hi));return c}; SdN=function(h,W,c){W!==h.Y&&(h.Y&&(h.Pk=!0),h.Y=W,h.SG(W,h.videoTrack,c))}; kcl=function(h,W){h.logger.debug("setConstraint: "+Au(W));M2(h.cV)&&(h.Wk=W.reason==="m"||W.reason==="l"?!0:!1);W.reason==="m"?W.isLocked()&&D85(h,W.X):wxd(h,W)?Fn(h,W.W,W.X):h.videoInfos=h.N;h.W=W}; wxd=function(h,W){return h.cV.iz&&W.reason==="b"||h.cV.s6&&W.reason==="l"||h.cV.Xu?!1:h.cV.JB?!0:W.reason==="l"||W.reason==="b"||W.reason==="o"}; hCT=function(h,W){return W.isLocked()&&h.X.W||h.W===void 0?!1:W.equals(h.W)}; W$p=function(h,W){var c,V=(c=h.Y)==null?void 0:c.info.video.qualityOrdinal;return h.Pk?!0:h.Y?W!==V?!0:!h.X.W||h.cV.ID&&h.X.X===h.Y.info.itag?!1:!0:!1}; D85=function(h,W){var c=h.X.X;if(c){h.videoInfos=h.N;var V=g.jl(h.videoInfos,function(H){return H.id===c}); V&&V.video.qualityOrdinal===W?h.videoInfos=[V]:(V=h.videoInfos.map(function(H){return H.id}),h.loader.GV("sabrpf",{pfid:""+c, vfids:""+V.join(".")}),Fn(h,W,W),Hw(h.X,""))}else Fn(h,W,W)}; Fn=function(h,W,c){h.videoInfos=h.N;h.videoInfos=g.Lf(h.videoInfos,function(V){return V.video.qualityOrdinal>=W&&V.video.qualityOrdinal<=c})}; c0Q=function(h,W,c){if(h.Z){var V=g.Lf(h.G,function(H){return H.id===h.Z}); return yM(V,c).includes(W)}V=g.Lf(h.G,function(H){var B;return!((B=H.iW)==null||!B.isDefault)}); return V.length>0?yM(V,c).includes(W):yM(h.G,c).includes(W)}; yM=function(h,W){return h.map(function(c){return pT(g.fF(c,W))})}; Vz7=function(h){var W;if((W=h.W)==null?0:W.isLocked())return h.videoInfos;var c=sC(h.X);W=g.Lf(h.videoInfos,function(V){return V.Vg>h.cV.Vg?!1:!c.has(V.id)}); djN(h.X)&&(W=g.Lf(W,function(V){return V.video.width<=854&&V.video.height<=480})); return W}; saN=function(h,W,c){var V=h.jO,H=h.lB.getVideoData(),B=h.rR,E=a$L({fM:H.B(),lB:h.lB,ac:h.ac,cV:h.cV,iY:h.iY,Xv:h.Xv,qD:h.qD,VP:h.VP,Hh:h.Hh,isPrefetch:h.isPrefetch,tJ:h.tJ,sabrLicenseConstraint:H.sabrLicenseConstraint,yP:h.yP,sT:h.sT,zI:h.zI,Dy:h.Dy,Ni:!!B,authorizedFormats:H.authorizedFormats}),J=FN(H,h.UQ,h.nextRequestPolicy,h.D2,h.Yc,h.VW,h.qO);c&&W&&(c=J.iE?J.iE.map(function(Z){return Z.type}):[],W("sabr",{stmctxt:c.join("_"), unsntctxt:J.jp?J.jp.join("_"):""}));W=h.ZG;c=h.i7;if(c===void 0&&W===void 0){var u;c=$cT(V.Hi,(u=h.ue)==null?void 0:u.video);var d;W=$cT(V.Hi,(d=h.ue)==null?void 0:d.audio)}if(H.gp)var G=H.gp;H={r7:E,Up:h.Up,ZG:W,i7:c,rR:B,videoPlaybackUstreamerConfig:G,uU:J};h.yV&&(H.yV=h.yV);H.O5=h.O5;H.xl=V.yg;return H}; $cT=function(h,W){return W?[g.fF(W.info,h)]:[]}; PM=function(h,W,c){var V=this;this.requestType=h;this.bW=W;this.dI=c;this.W=null;this.uX={T8I:function(){var H;return(H=V.data)==null?void 0:H.isPrefetch}, Yc:function(){var H;return(H=V.data)==null?void 0:H.Yc}}}; trk=function(h,W,c){W=v0(h.bW,HyD(h,W,c),W);h.jg()&&W.set("probe","1");return W}; HyD=function(h,W,c){h.B3===void 0&&(h.B3=h.bW.B3(W,c));return h.B3}; Bup=function(h){var W,c;return((W=h.X)==null?void 0:(c=W.r7)==null?void 0:c.KY)||0}; EXl=function(h){var W,c;return!!((W=h.X)==null?0:(c=W.r7)==null?0:c.yP)}; RCD=function(h){var W={},c=[],V=[];if(!h.data)return W;for(var H=0;H0;u--)c.push(J)}c.length!==E?W.error=!0:(B=c.slice(-B),c.length=H,CoN(W,c,B));break;case 1:CoN(W,tJ,QaT);break;case 0:MzN(W, W.X&7);c=pN(W,16);H=pN(W,16);(c^H)!==65535&&(W.error=!0);W.output.set(W.data.subarray(W.W,W.W+c),W.G);W.W+=c;W.G+=c;break;default:W.error=!0}h.G>h.output.length&&(h.output=new Uint8Array(h.G*2),h.G=0,h.W=0,h.Y=!1,h.X=0,h.register=0)}h.output.length!==h.G&&(h.output=h.output.subarray(0,h.G));return h.error?new Uint8Array(0):h.output}; CoN=function(h,W,c){W=A0p(W);c=A0p(c);for(var V=h.data,H=h.output,B=h.G,E=h.register,J=h.X,u=h.W;;){if(J<15){if(u>V.length){h.error=!0;break}E|=(V[u+1]<<8)+V[u]<>=7;d<0;)d=W[(E&1)-d],E>>=1;else E>>=d&15;J-=d&15;d>>=4;if(d<256)H[B++]=d;else if(h.register=E,h.X=J,h.W=u,d>256){E=mK[d];E+=pN(h,vM[d]);u=UcN(h,c);J=oE[u];J+=pN(h,L$5[u]);if(y0l&&Ec.length&&(h.error=!0);h.register|=(c[V+1]<<8)+c[V]<=0)return MzN(h,c&15),c>>4;for(MzN(h,7);c<0;)c=W[pN(h,1)-c];return c>>4}; pN=function(h,W){for(;h.X=h.data.length)return h.error=!0,0;h.register|=h.data[h.W++]<>=W;h.X-=W;return c}; MzN=function(h,W){h.X-=W;h.register>>=W}; A0p=function(h){for(var W=[],c=g.e(h),V=c.next();!V.done;V=c.next())V=V.value,W[V]||(W[V]=0),W[V]++;var H=W[0]=0;c=[];var B=0;V=0;for(var E=1;E7&&(B+=W[E]);for(H=1;H>u&1;J=B<<4|E;if(E<=7)for(u=1<<7-E;u--;)V[u<>=7;E--;){V[u]||(V[u]=-W,W+=2);var d=H&1;H>>=1;u=d-V[u]}V[u]=J}}return V}; fvN=function(h){var W,c,V,H,B,E,J,u,d;return g.P(function(G){switch(G.W){case 1:if(!Pol)throw Error("DecompressionStream is not supported");W=Ll.Ox();c=new DecompressionStream("gzip");V=c.writable.getWriter();V.write(h);V.close();H=c.readable.getReader();B=new hQ([]);case 2:return g.F(G,H.read(),5);case 5:E=G.X;J=E.value;if(u=E.done){G.bB(4);break}B.append(J);G.bB(2);break;case 4:return d=sk(B),Ll.XS("gznb",W,Math.ceil(d.byteLength/16)),G.return(d)}})}; byd=function(h){fM.call(this,"onesie");this.nR=h;this.X={};this.Y=!0;this.G=null;this.queue=new zCv(this);this.C={}}; Tuh=function(h){var W=h.queue;W.X.length&&W.X[0].isEncrypted&&!W.W&&(W.X.length=0);W=g.e(Object.keys(h.X));for(var c=W.next();!c.done;c=W.next()){c=c.value;var V=h.X[c];if(!V.Uz){var H=h.queue;H.X.push({videoId:V.videoId,formatId:c,isEncrypted:!1});H.W||Xn(H)}}}; Nuk=function(h,W){var c=W.totalLength,V=!1;switch(h.G){case 0:h.aN(W,h.Y).then(function(H){var B=h.nR;B.Z3("oprr");B.playerResponse=H;B.aQ||(B.Rn=!1);IE(B)},function(H){h.nR.fail(H)}); break;case 2:h.Z3("ormk");W=sk(W);h.queue.decrypt(W);break;default:V=!0}h.nR.nN&&h.nR.GV("ombup","id.11;pt."+h.G+";len."+c+(V?";ignored.1":""));h.G=null}; XFU=function(h,W){var c,V,H,B,E;return g.P(function(J){switch(J.W){case 1:h.nR.Z3("oprgz_s");if(!Pol){J.bB(2);break}g.Qp(J,3);return g.F(J,fvN(W),5);case 5:return c=J.X,h.nR.Z3("oprgz_n"),J.return(c);case 3:V=g.CU(J),h.nR.GV("gzerr",{impl:"native",err:""+V});case 2:if(H=h.nR.B().Ah)try{var u=Ll.Ox(),d=H.Ji(W),G=H,Z=d!=null?d:W,r=Z.byteOffset,q=Z.byteLength,x=G.exports.getInflatedSize(r,q);if(x===0)throw Error("wasm_gz: bad input");var z=G.malloc(x),L=G.exports.inflateGzip(r,q,z);if(L)throw G.free(z), Error("wasm_gz: fail"+L);var M=new Uint8Array(G.exports.memory.buffer,z,x);d&&H.free(d.byteOffset);var U=H.mP(M);Ll.XS("gzwb",u,Math.ceil(U.byteLength/16));B=U;h.nR.Z3("oprgz_w");return J.return(B)}catch(y){h.nR.GV("gzerr",{impl:"wasm",err:""+y})}u=Ll.Ox();d=g.F$T(new g.iyL(W));Ll.XS("gzjb",u,Math.ceil(d.byteLength/16));E=d;h.nR.Z3("oprgz_p");return J.return(E)}})}; tzU=function(h){return new Promise(function(W){setTimeout(W,h)})}; vXp=function(h,W){var c=h.B();c=h.Gu&&c.j("html5_onesie_preload_use_content_owner");var V=h.xo,H=q8(W.uB.experiments,"debug_bandaid_hostname");if(H)W=bs(W,H);else if((c===void 0?0:c)&&(V==null?0:V.url)&&!W.W){var B=o7(new g.vb(V.url));W=bs(W,B)}else W=(B=W.X.get(0))==null?void 0:B.location.clone();if(W&&h.videoId){B=Ud(h.videoId);h=[];if(B)for(B=g.e(B),c=B.next();!c.done;c=B.next())h.push(c.value.toString(16).padStart(2,"0"));W.set("id",h.join(""));return W}}; mcN=function(h,W,c){c=c===void 0?0:c;var V,H;return g.P(function(B){if(B.W==1)return V=[],V.push(W.load()),c>0&&V.push(tzU(c)),g.F(B,Promise.race(V),2);H=vXp(h,W);return B.return(H)})}; oXl=function(h,W,c,V){V=V===void 0?!1:V;h.set("cpn",W.clientPlaybackNonce);h.set("opr","1");var H=W.B();h.set("por","1");$E()||h.set("onem","1");W.startSeconds>0&&h.set("osts",""+W.startSeconds);V||(H.j("html5_onesie_disable_partial_segments")&&h.set("oses","1"),W=H.j("html5_gapless_onesie_no_media_bytes")&&Qk(W)&&W.Gu,c&&!W?(W=c.audio,h.set("pvi",c.video.join(",")),H.j("html5_onesie_disable_audio_bytes")||h.set("pai",W.join(",")),rh||h.set("osh","1")):(h.set("oad","0"),h.set("ovd","0"),h.set("oaad", "0"),h.set("oavd","0")))}; pFN=function(h,W,c,V,H){H=H===void 0?!1:H;var B="https://youtubei.googleapis.com/youtubei/"+W.Mq.innertubeApiVersion+"/player",E=[{name:"Content-Type",value:"application/json"}];V&&E.push({name:"Authorization",value:"Bearer "+V});E.push({name:"User-Agent",value:g.TF()});g.X_("EOM_VISITOR_DATA")?E.push({name:"X-Goog-EOM-Visitor-Id",value:g.X_("EOM_VISITOR_DATA")}):(c=c.visitorData||g.X_("VISITOR_DATA"))&&E.push({name:"X-Goog-Visitor-Id",value:c});(c=g.X_("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&E.push({name:"X-YouTube-Lava-Device-Context", value:c});(W=q8(W.experiments,"debug_sherlog_username"))&&E.push({name:"X-Youtube-Sherlog-Username",value:W});h=ZI(JSON.stringify(h));return{url:B,fV:E,postBody:h,lgV:H,pX:H}}; Ivl=function(h,W,c,V,H,B,E){var J=h.tH,u=h.sK;h=h.pHE;var d=J!==void 0&&u!==void 0,G=V.getVideoData(),Z,r=W.X.encryptedClientKey;W=d?W.iv:void 0;d=o9(c.schedule,!0);H=H||!!$E()&&d>1572864;return{innertubeRequest:{tLB:h,h9:J,sK:u,encryptedClientKey:r,iv:W,yEN:!0,a_:!0,m$:"DecompressionStream"in window||!H,XBf:c.experiments.xN("html5_use_jsonformatter_to_parse_player_response")},r7:a$L({fM:c,lB:V,ac:G.startSeconds*1E3}),onesieUstreamerConfig:B,dJ:E,uU:FN(G),reloadPlaybackParams:(Z=G.d6)==null?void 0: Z.reloadPlaybackParams}}; YaD=function(h,W,c,V,H,B){var E=g.ob(h,Bb),J;if(!h.pX)if(J=GJL(W,E)){var u=J.xJ;J=J.signature}else J=u=W.encrypt(E),(0,g.aC)(),J=Rtl(new EAk(W.X.G),J,W.iv);return Ivl(u&&J?{tH:u,sK:J}:{pHE:E},W,c,V,!!h.pX,H,B)}; Oyd=function(h,W,c,V,H,B){var E,J,u;return g.P(function(d){if(d.W==1)return E=g.ob(h,Bb),g.F(d,dcU(W,E),2);if(d.W!=3)return J=d.X,g.F(d,Zy7(W,J),3);u=d.X;return d.return(Ivl({tH:J,sK:u},W,c,V,!!h.pX,H,B))})}; Sa4=function(h,W,c,V,H,B){var E=g.ob(h,Bb);if(E=GJL(W,E))return Ivl({tH:E.xJ,sK:E.signature},W,c,V,!!h.pX,H,B)}; OZ=function(h,W){g.N.call(this);var c=this;this.lB=h;this.playerRequest=W;this.logger=new g.xP("onesie");this.xhr=null;this.state=1;this.qS=new d4;this.iI=!1;this.playerResponse="";this.Bv=new r6(this);this.KN=new byd(this);this.X_="";this.S_=this.Wn=!1;this.kP="";this.enableCompression=this.aQ=this.MV=!1;this.Ww=[];this.yZ=-1;this.Bb=0;this.uB=this.lB.B();this.videoData=this.lB.getVideoData();this.nN=this.uB.gI();this.Wq=this.uB.bX;this.er=new J0k(this.Wq.X);this.nH=this.uB.j("html5_onesie_check_timeout"); this.WN=new g.oD(this.h6,500,this);this.El=new g.oD(this.lM,1E4,this);this.IA=new g.oD(function(){if(!c.isComplete()){var V=Y8(c);c.fail(new g.RG("net.timeout",V))}},1E3); this.h_=new g.oD(this.XkV,2E3,this);this.KZ=this.lB.HJ();this.Rn=this.j("html5_onesie_wait_for_media_availability");g.X(this.videoData,this);g.X(this,this.WN);g.X(this,this.El);g.X(this,this.h_);h=lf();rh&&h&&(this.Vj=new Map);this.yk=new Map;this.DI=new Map;this.t_=new Map;this.dh=new Map}; N9=function(h,W){var c;return(c=h.Vj)==null?void 0:c.get(W)}; Dch=function(h,W,c){var V;return g.P(function(H){if(H.W==1)return h.Z3("oprd_s"),gXD(h)?g.F(H,r05(h.er,W,c),3):(V=h.er.decrypt(W,c),H.bB(2));H.W!=2&&(V=H.X);h.Z3("oprd_c");return H.return(V)})}; wFd=function(h){return h.j("html5_onesie_host_probing")||h.nN?rh:!1}; IE=function(h){if(!h.playerResponse)return!1;if(h.MV)return!0;var W=h.videoData.j("html5_onesie_audio_only_playback")&&LC(h.videoData);if(h.Vj&&h.Rn){if(!h.Vj.has(h.X_))return!1;var c=h.Vj.get(h.X_),V;if(V=c){V=!1;for(var H=g.e(c.jo.keys()),B=H.next();!B.done;B=H.next())if(B=c.jo.get(B.value))for(var E=g.e(B.Q3),J=E.next();!J.done;J=E.next())J.value.X$>0&&(B.Qr?V=!0:W=!0);V=!(W&&V)}if(V)return!1}h.Z3("ofr");h.qS.resolve(h.playerResponse);if(!h.nH){var u;(u=h.IA)==null||u.start();h.El.start()}return h.MV= !0}; h3p=function(h){if(h.Vj&&!h.j("html5_onesie_media_capabilities")){h.Z3("ogsf_s");var W=rRN(h.lB.getVideoData(),function(V,H){h.GV(V,H)}),c=kJL(h.lB); W.video=HTd(c,W.video);h.Z3("ogsf_c");if(W.video.length)return W;h.GV("ombspf","l."+c.W+";u."+c.X+";o."+c.G+";r."+c.reason)}}; gXD=function(h,W){return h.j("html5_onesie_sync_request_encryption")||(W==null?0:W.pX)||g.aa(h.uB)&&h.j("html5_embed_onesie_use_sync_encryption")?!1:!!$E()}; Y8=function(h){if(!h.E8)return{};var W=h.E8.wZ(),c;W.d=(c=h.E8.zV)==null?void 0:c.Ey();W.shost=h.Un;W.ty="o";return W}; WSk=function(h,W){var c,V;(V=(h=(c=h.Vj)==null?void 0:c.get(W))==null)||(W=h.G?!1:h.G=!0,V=!W);return!V}; cT5=function(h,W,c,V,H,B,E,J,u,d,G){g.N.call(this);var Z=this;this.lB=h;this.loader=W;this.policy=c;this.audioTrack=V;this.videoTrack=H;this.jO=B;this.Yd=E;this.rE=J;this.G=u;this.timing=d;this.T=G;this.X=[];this.C={};this.Rz=this.Jk=!1;this.Y=this.CM=this.XI=this.yg=this.Hh=0;this.Z=null;this.Pk={O5:[],Up:[]};this.DH={O5:[],Up:[]};this.S=null;this.N=[];this.uX={nq9:function(){return Z.X}, MbO:function(){return Z.C}, tck:function(){Z.X.length=0}, WHW:function(){return Z.videoData.Mn}, whO:function(){return Z.XI}, uYB:function(r){Z.XI=r}, GaO:function(r){Z.Y=r}, Li:function(r){Z.S=r}, L4:function(r){Z.N=r}}; this.videoData=this.lB.getVideoData();this.policy.Gu&&(this.mW=new VM(this.loader,this.policy,this.Yd),g.X(this,this.mW))}; ssk=function(h,W){W=W===void 0?!1:W;if(VyD(h)){h.policy.N&&h.loader.GV("sabrcrq",{create:1});var c=new PM(0,h.jO.Z,h);h.policy.mF>0&&h.Y++;W=$Np(h,c,W);h.X.push(W);var V;(V=h.mW)==null||ThN(V,h.jO.Z)}}; Eql=function(h,W){var c=HC5(h);if(h.policy.lJ){var V=h.Pk;var H=h.DH}else V=SA(h,h.audioTrack),H=SA(h,h.videoTrack);var B=[].concat(g.rN(V.O5),g.rN(H.O5));gv(h)&&B.push.apply(B,g.rN(h.N));var E=[].concat(g.rN(V.Up),g.rN(H.Up)),J=h.loader.Tn();if(h.policy.wJ&&!h.videoData.isLivePlayback){var u=h.videoData.lengthSeconds*1E3;c>=u&&h.loader.GV("invalidSabrCmt",{cmt:c,vd:u})}var d,G;u=h.lB;var Z=h.jO,r=h.W,q=h.videoData.Mn,x=h.policy,z=h.loader.MC,L=oaU(h.loader)*1E3,M=(d=h.zV)==null?void 0:d.qD;d=(G= h.zV)==null?void 0:G.VP;var U;G=Number((U=h.G.Y)==null?void 0:U.info.itag)||0;var y;U=Number((y=h.G.C)==null?void 0:y.info.itag)||0;W={lB:u,jO:Z,O5:B,Up:E,ac:c,nextRequestPolicy:r,D2:q,cV:x,iY:z,Xv:L,qD:M,VP:d,Hh:h.Hh,isPrefetch:W||h.loader.isSuspended,Z9:G,s1:U,UQ:J,qO:h.lB.LO()};c=h.loader.qN();B=Ud(c);c&&(W.Yc=B);if(c=h.lB.a6())W.yP=c*1E3;var T;c=h.G;B=c.XI;if(((T=c.cV)==null?0:M2(T))&&!B)for(T=g.e(c.G),E=T.next();!E.done;E=T.next())if(E.value.iW){B=!0;break}T=M2(c.cV)&&!B?[]:ga5(c,c.G);W.ZG=T; T=h.G;M2(T.cV)&&!T.Wk?T=[]:(c=Vz7(T),c.length===0&&(c=T.N),T=ga5(T,c));W.i7=T;W.rR=gv(h)?[h.S]:void 0;h.policy.G6&&(W.zI=BMd(h.loader,h.audioTrack),W.Dy=BMd(h.loader,h.videoTrack));if(h.policy.W){T=h.loader.getCurrentTime();V=Do(h,V.O5,T);H=Do(h,H.O5,T);H=Math.min(V,H);gv(h)&&(V=Do(h,h.N,T),h.lB.gI()&&V0&&h.X[0].AD()&&(W.VW=h.X[0].iD());return W}; HC5=function(h){var W,c=h.policy.C&&((W=h.loader)==null?void 0:W.Bt());W=h.loader.getCurrentTime()||0;W=R3Q(h,W);var V=h.loader.FA()||0;W+=V;V=Sy(h.videoData)||g.OP(h.videoData);var H=0;c?(V&&(H=Number.MAX_SAFE_INTEGER),h.videoData.Pk&&(H=Math.ceil(h.videoData.DH*1E3))):H=Math.ceil(W*1E3);return Math.min(Number.MAX_SAFE_INTEGER,H)}; gv=function(h){return h.policy.Tx&&!!h.S}; R3Q=function(h,W){if(h.loader.isSeeking())return W;var c=h.lB.yl();if(!c)return W;c=c.yr();if(c.length===0||IG(c,W))return W;if(!wR(h.videoTrack,W)&&!wR(h.audioTrack,W))return h.loader.GV("sundrn",{b:0,lt:W}),W;for(var V=W,H=Infinity,B=0;BW)){var E=W-c.end(B);E=20)?(h.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),W):V}; Do=function(h,W,c){h=h.loader.FA()||0;return wv(W,(c+h)*1E3)/1E3+c}; VyD=function(h){if(h.policy.mF>0){var W=Math.floor((0,g.aC)()/1E4);if(W===h.CM){if(h.Y>=h.policy.mF){if(h.Y===h.policy.mF){var c={reason:"toomanyrequests"};c.limit=h.Y;h.loader.handleError("player.exception",c);h.Y+=1}return!1}}else h.CM=W,h.Y=0}if(h.loader.isSuspended&&h.loader.Pq)return!1;if(h.Wk&&(0,g.aC)()0&&(!h.policy.T||h.X.length!==1||!h.X[0].AD()))return!1;var V;if(!(W=(V=h.jO.Z)==null||!oQ(V,h.policy,h.C,h.loader.Ga())||Sv(h.audioTrack)&&Sv(h.videoTrack))){if(V= h.policy.W){V=!1;if(h.T.W===2)V=!0;else if(h.T.W===3){HC5(h);h.loader.FA();var H=XT(h.audioTrack,h.loader.isSeeking()).O5;W=XT(h.videoTrack,h.loader.isSeeking()).O5;var B=h.loader.getCurrentTime()||0;H=Do(h,H,B);W=Do(h,W,B);W=Math.min(H,W);B=h.T;W>=B.C?(B.GV("sdai",{haltrq:W,est:B.C}),W=!0):W=!1;W&&(V=!0)}V&&h.policy.N&&h.loader.GV("sabrcrq",{waitad:1})}W=V}if(W)return!1;h.policy.lJ&&(h.Pk=SA(h,h.audioTrack),h.DH=SA(h,h.videoTrack));if(!h.W)return h.policy.N&&h.loader.GV("sabrcrq",{nopolicy:1}),!0; if(h.lB.a6())return h.policy.N&&h.loader.GV("sabrcrq",{utc:1}),!0;if(h.G.S)return h.policy.N&&h.loader.GV("sabrcrq",{audio:1}),!0;if(!h.W.targetAudioReadaheadMs||!h.W.targetVideoReadaheadMs)return h.policy.N&&h.loader.GV("sabrcrq",{noreadahead:1}),!0;if(h.policy.C&&h.loader.Bt())return h.policy.N&&h.loader.GV("sabrcrq",{seekToHead:1}),!0;V=Math.min(cP(h.loader,h.audioTrack)*1E3,h.W.targetAudioReadaheadMs);W=Math.min(cP(h.loader,h.videoTrack)*1E3,h.W.targetVideoReadaheadMs);var E=Math.min(V,W);B=pp(h.audioTrack, !0)*1E3;H=pp(h.videoTrack,!0)*1E3;var J=h.lB.getCurrentTime()*1E3;if(h.policy.lJ){var u=wv(h.Pk.O5,J);var d=wv(h.DH.O5,J)}else u=B,d=H;var G=uW||V>=0&&H.Xb>V+1)break;c=Math.max(c,H.startTimeMs+H.durationMs);V=Math.max(V,H.pj)}return Math.max(0,c-W)}; $Np=function(h,W,c){var V={Yd:h.Yd,vX:function(u,d){h.lB.kc(u,d)}, Dw:h.policy.b$,kB:h.policy.G};h.Yd.W.N&&(V.Fm=(h.videoTrack.X.info.Vg||0)+(h.audioTrack.X.info.Vg||0));h.policy.Om&&(V.fp=h.audioTrack.X.index.Ht(),V.Dw=!1);var H=HyD(W,h.policy,h.C)?2:1;H!==h.XI&&(h.XI=H,uEv(h));c=Eql(h,c);if(h.policy.T&&h.policy.G&&c.D2){for(var B=H="",E=g.e(c.D2),J=E.next();!J.done;J=E.next())J=J.value,h.videoData.sabrContextUpdates.has(J)||h.policy.T&&c.VW&&c.VW.type===J?H+="_"+J:B+="_"+J;h.loader.GV("sabrbldrqs",{ctxts:H,misctxts:B})}!W.setData(c,h.policy,h.C)&&h.policy.T&&h.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);V=new pM(h.policy,W,h.jO,h.C,h,V,h.loader.HJ());IL(h.timing);h.policy.N&&h.loader.GV("sabrcrq",{rn:V.bd(),probe:W.jg()});return V}; ha=function(h,W){if(W.gE()||h.gE())h.policy.vj||(h.policy.C?k8(h.loader):h.loader.bV());else{if(h.policy.G&&W.isComplete()&&W instanceof pM){var c=h.loader,V=c.GV,H,B,E=Object.assign(W.E8.wZ(),{rst:W.state,strm:W.xhr.gy(),d:(H=W.E8.zV)==null?void 0:H.Ey(),cncl:W.xhr&&W.D3.Y?1:0,rqb:W.Mt,cwt:W.rl,swt:(B=W.Fg)==null?void 0:B.rX});H=Object.assign(RCD(W.info),E);V.call(c,"rqs",H)}if(W.isComplete()&&W.jg()&&W instanceof pM)h.policy.fR?W.zd()?(W.dispose(),h.X.length===0?h.loader.bV():(h=h.X[0],h instanceof pM&&h.z7()&&h.qK())):W.C$()&&h.loader.handleError(W.KG(),W.Kn()):(W.dispose(),h.loader.bV());else{if(W.vn())W instanceof pM&&kYp(h.timing,W),uEv(h),dNl(h);else if(W.C$())c=h.lB.a6(),W instanceof pM&&EXl(W.info)&&c&&h.loader.rf(c),W instanceof OZ?h.X.pop():(c=1,W.canRetry()&&dv(h.loader)&&(G8l(h,W),c=0),h.loader.handleError(W.KG(),W.Kn(),c));else{if(h.loader.isSuspended&&!W.isComplete())return;dNl(h)}W.gE()||W instanceof OZ||(W.isComplete()?c=tNp(W,h.policy,h.C):(c=XxU(W,h.policy,h.C),c===1&&(h.Jk= !0)),c!==0&&(V=new PM(1,W.info.bW),V.B3=c===2,$Np(h,V)));h.policy.Zn&&!W.isComplete()?JJ(h.loader):h.loader.bV()}}}; dNl=function(h){for(;h.X.length&&h.X[0].JW(h.Cj());){var W=h.X.shift();ZCv(h,W)}h.X.length&&ZCv(h,h.X[0])}; ZCv=function(h,W){W instanceof pM&&(h.Nn=W);var c=new Set(W.O4(h.Cj()));c=g.e(c);for(var V=c.next();!V.done;V=c.next()){var H=V.value;if(!(V=!(W instanceof OZ))){V=h.G;var B=V.jO.Hi,E=yM(V.videoInfos,B);B=c0Q(V,H,B);var J=E.includes(H);!V.cV.h5||B||J||V.loader.GV("sabrcpf",{fid:""+H,vfids:""+E.join("."),said:V.Z||""});V=B||E.includes(H)}if(V&&(V=W.ZS(H,h.Cj()),E=h.policy.Tx&&XK(V[0].X.info.mimeType),W.Zk(H,h.Cj())))for(H=W.I2(H,h.Cj()),H=g.e(H),B=H.next();!B.done;B=H.next())if(B=B.value,h.policy.G&& W instanceof OZ&&h.loader.GV("omblss",{s:B.info.aR()}),E)J=h.timing,J.XI||(J.XI=(0,g.aC)(),g.vc("fcb_r",J.XI,J.X)),J=h,J.videoData.Hi()&&J.S&&pT(J.S)===pT(g.fF(B.info.X.info,J.jO.Hi))&&J.lB.publish("sabrCaptionsDataLoaded",B,J.L4.bind(J));else{J=B.info.X.info.Qr();var u=B.info.X;if(J){var d=void 0;var G=h.G,Z=(d=W.ZB(h.Cj()))==null?void 0:d.token;G.S&&u!==G.C?d=!0:(G.S=!1,u!==G.C&&(G.C=u,G.SG(u,G.audioTrack,Z)),d=!1);if(d)continue}else d=void 0,SdN(h.G,u,(d=W.ZB(h.Cj()))==null?void 0:d.token);d=J? h.audioTrack:h.videoTrack;W instanceof OZ&&(d.S=!1,W instanceof OZ&&(J?I$v(h.timing):p0Q(h.timing)));try{NW(d,V,B)}catch(r){B=uX(r),h.loader.handleError(B.errorCode,B.details,B.severity),d.Il(),h.w8(!1,"pushSlice"),k8(h.loader)}}}}; G8l=function(h,W){h.policy.T?h.X.splice(h.X.indexOf(W)).forEach(function(c){c.dispose()}):(h.X.pop(),W==null||W.dispose())}; rTp=function(h,W,c){for(var V=[],H=0;H0)for(var W=g.e(h.videoData.sabrContextUpdates.keys()),c=W.next();!c.done;c=W.next()){c=c.value;var V=void 0;((V=h.videoData.sabrContextUpdates.get(c))==null?0:V.sendByDefault)&&h.videoData.Mn.add(c)}if(h.policy.T&&h.X.length)for(W=g.e(h.X),c=W.next();!c.done;c=W.next())(c=c.value.iD())&&c.type&&c.sendByDefault&&h.videoData.Mn.add(c.type)}; qPL=function(h){h.policy.bX&&(h.zV=void 0,h.Hh=0)}; xNU=function(h,W){if(W.C$()||W.gE()){var c=h.loader,V=c.GV,H=W.state;h=h.Cj();var B,E;if((W=(B=W.Vj)==null?void 0:B.get(h))==null)W=void 0;else{B=0;h=W.O4();for(var J=0;J=W.mediaTime&&g.Y(h.lB.getPlayerState(),8)?(W.resolve([W.mediaTime,W.id]),h.X.delete(W.id)):(W.delay.dispose(),W.delay=new g.oD(function(){ael(h,W)},(W.mediaTime-c)*1E3/h.lB.getPlaybackRate()),W.delay.start())}; LSh=function(h,W,c,V){var H=this;this.G=h;this.cpn=W;this.lB=c;this.X=V;this.W=new Map;this.C=new Map;this.S=this.Z=NaN;this.N=!1;this.Vi="";this.isSeeking=!1;this.T=0;this.Y=new nq4(c);this.WH=c.WH;this.lB.subscribe("SEEK_TO",function(){H.xa()}); this.lB.subscribe("SEEK_COMPLETE",function(){Qs7(H)})}; KSh=function(h,W){if(!h.isSeeking&&h.T!==W&&!isNaN(h.Z)){h.T=W;var c=h.N?h.S:h.G.Gj(W);(c!==h.S||h.N)&&iCN(h,c,W)}}; iCN=function(h,W,c){var V=h.W.get(W),H=h.G.getStartTime(W),B=h.G.getDuration(W);h.N=!1;h.S=W;var E=H,J;((J=V==null?void 0:V.X)!=null?J:[h.cpn]).forEach(function(u,d){var G;d=(G=V==null?void 0:V.W[d])!=null?G:B;c>=E&&cH?MyT(h,B,h.W.get(B)):B===H&&MyT(h,B,h.W.get(B),V-h.G.getStartTime(B))})}; ATd=function(h,W,c,V){W!==h.Vi&&(h.lB.GV("ssevt",{tag:h.X===0?"sstd-cr":h.X===1?"sstd-tm":h.X===2?"sstd-poll":h.X===3?"sstd-poll100":"sstd-unknown",ad:h.cpn!==W,cpn:W,st:c.toFixed(3),late:Math.round(h.isSeeking?0:(V-c)*1E3)}),h.Vi=W)}; FS5=function(h){var W=g.e(h.split("."));h=W.next().value;W=W.next().value;return[Number(h),W]}; CU5=function(h,W,c,V){c=W+"."+c;h.C.has(W)?h.C.get(W).push(c):h.C.set(W,[c]);h.X===1&&e3N(h.Y,V,c).then(function(H){var B=g.e(H);H=B.next().value;B=B.next().value;B=g.e(FS5(B));B.next();B=B.next().value;ATd(h,B,H,jsd(h.Y))}); h.X===0&&(h.WH.H4("transitiondetector",c),W=(V+h.lB.FA())*1E3,h.WH.Fi([new g.t$(W,W+5E3,{id:c,namespace:"transitiondetector",priority:9})]))}; yT5=function(h,W,c,V,H){this.loader=h;this.policy=W;this.schedule=c;this.JQ=V;this.T=H;this.XI=NaN;this.W=this.S=this.Y=null;this.X=this.C=this.N=this.startTimeSecs=NaN;this.G=!1;this.Z=NaN}; PUN=function(h,W,c,V,H,B){return W.rV&&W.q$&&c===3?new yT5(h,W,V,H,B):null}; feQ=function(h,W){if(h.policy.Y$){var c=W.info.Vg,V=o9(h.schedule);W=W.index.Ht();c=Math.max(1,V/c);h.Z=Math.round(Math.max(((c-1)*W+h.policy.RR)/c,W-h.policy.h2)*1E3)}}; NMD=function(h,W){var c=Date.now()/1E3,V=c-h.startTimeSecs,H=c-h.N,B=H>=h.policy.aX,E=!1;if(B){var J=0;!isNaN(W)&&W>h.C&&(J=W-h.C,h.C=W);J/H=h.policy.h2&&!h.G;if(!B&&!c&&bCL(h,W))return NaN;c&&(h.G=!0);a:{V=E;c=(0,g.aC)()/1E3-(h.JQ.Jt()||0)-h.S.X-h.policy.RR;B=h.W.startTime;c=B+c;if(V){if(isNaN(W)){Wu(h,NaN,"n",W);B=NaN;break a}V=W-h.policy.dA;V0&&(J.headers=u);B&&(J.onFinish=B);return Object.keys(J).length>1? J:null}; SP4=function(h,W,c,V,H,B,E,J){cf()&&c.token&&(h=kZ(h,{ctt:c.token,cttype:c.YE,mdx_environment:c.mdxEnvironment}));V.j("net_pings_low_priority")&&(W||(W={}),W.priority="low");B||J&&V.j("nwl_skip_retry")?(W==null?W={}:Iev(h,V.j("html5_assert_cpn_with_regex")),E?tL().sendAndWrite(h,W):tL().sendThenWrite(h,W,J)):W?(Iev(h,V.j("html5_assert_cpn_with_regex")),RuU(h,W)):g.Cj(h,H)}; gqd=function(h){for(var W=[],c=0;c0&&c>0&&!h.W&&h.G<1E7)try{h.Y=h.C({sampleInterval:W,maxBufferSize:c});var V;(V=h.Y)==null||V.addEventListener("samplebufferfull",function(){return g.P(function(H){if(H.W==1)return g.F(H,h.stop(),2);k8L(h);g.zQ(H)})})}catch(H){h.W=wTT(H.message)}}; hZN=function(h,W){var c,V;return!!((c=window.h5vcc)==null?0:(V=c.settings)==null?0:V.set(h,W))}; c7N=function(){var h,W,c,V=(h=window.h5vcc)==null?void 0:(W=h.settings)==null?void 0:(c=W.getPersistentSettingAsString)==null?void 0:c.call(W,"cpu_usage_tracker_intervals");if(V!=null){var H;h=(H=JSON.parse(V))!=null?H:[];H=h.filter(function(d){return d.type==="total"}).map(function(d){return d.seconds}); W=g.e(Wb4);for(c=W.next();!c.done;c=W.next())c=c.value,H.indexOf(c)===-1&&h.push({type:"total",seconds:c});var B,E;(B=window.h5vcc)==null||(E=B.settings)==null||E.set("cpu_usage_tracker_intervals_enabled",1);var J,u;(J=window.h5vcc)==null||(u=J.settings)==null||u.set("cpu_usage_tracker_intervals",JSON.stringify(h))}}; Vbl=function(){var h=window.H5vccPlatformService,W="";if(h&&h.has("dev.cobalt.coat.clientloginfo")&&(h=h.open("dev.cobalt.coat.clientloginfo",function(){}))){var c=h.send(new ArrayBuffer(0)); c&&(W=String.fromCharCode.apply(String,g.rN(new Uint8Array(c))));h.close()}return W}; g.sS=function(h){g.N.call(this);var W=this;this.provider=h;this.logger=new g.xP("qoe");this.X=new Map;this.sequenceNumber=1;this.Wk=NaN;this.Zh="N";this.Z=this.Ig=this.JT=this.XI=this.W=0;this.U5=this.Nn=this.N=this.Rz="";this.fR=this.CM=NaN;this.Zn=0;this.RR=-1;this.bX=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.uW=this.isEmbargoed=this.zV=this.isOffline=this.isBuffering=!1;this.iX=[];this.T=null;this.Ak=this.Y=this.Ef=this.S=!1;this.G=-1;this.Jk=!1;this.U8=new g.oD(this.c6,750,this);this.ji= this.adCpn=this.DH=this.contentCpn="";this.adFormat=void 0;this.q$=0;this.Mn=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.hq=new Set(["gd","pw","gp"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.lW=!1;this.Sx=NaN;this.mW=0;this.hI=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.qU=!1;this.Tx=new Set;this.uX={zt:function(V){W.zt(V)}, G7O:function(){return W.C}, D$:function(){return W.contentCpn}, xSO:function(){return W.DH}, reportStats:function(){W.reportStats()}, cok:function(){return W.X.get("cat")||[]}, V8:function(V){return W.X.get(V)||[]}, sUW:function(){return W.X}, r7I:function(){return 0}, Rxg:function(){return{adCpn:W.adCpn,ji:W.ji,adFormat:W.adFormat}}}; this.Pk=this.provider.uB.j("html5_qoe_relaxed_reporting");var c=g.DF(this.provider.uB.experiments,"html5_qoe_proto_mock_length");c&&!Vo.length&&(Vo=gqd(c));g.X(this,this.U8);try{navigator.getBattery().then(function(V){W.T=V})}catch(V){}g.$J(this,0,"vps",["N"]); h.uB.gI()&&(this.mW=(0,g.aC)(),this.Sx=g.Jc(function(){var V=(0,g.aC)(),H=V-W.mW;H>500&&W.GV("vmlock",{diff:H.toFixed()});W.mW=V},250)); this.provider.videoData.wp&&(this.remoteControlMode=$eD[this.provider.videoData.wp]||0);this.provider.videoData.cR&&(c=Gq4(this.provider.videoData.cR),c==null?0:c.length)&&(this.remoteConnectedDevices=c);h.uB.gI()&&(this.rE=new vqU,g.X(this,this.rE));c=g.DF(h.uB.experiments,"html5_js_self_profiler_sample_interval_ms");h=g.DF(h.uB.experiments,"html5_js_self_profiler_max_samples");c>0&&h>0&&(this.yg=new cu(c,h),g.X(this,this.yg))}; Hu=function(h,W,c){var V=h.X.get(W);V?V.push(c):h.X.set(W,[c])}; g.$J=function(h,W,c,V){Hu(h,c,W.toFixed(3)+":"+V.join(":"))}; soQ=function(h,W){var c=h.adCpn||h.provider.videoData.clientPlaybackNonce,V=h.provider.getCurrentTime(c);g.$J(h,W,"cmt",[V.toFixed(3)]);c=V=h.provider.G2(c);if((!h.C||h.provider.uB.j("html5_shorts_gapless_no_gllat")&&Qk(h.provider.videoData)?0:c*1E3>h.C.QO+100)&&h.C){var H=h.C;c=H.isAd;V=V*1E3-H.QO;h.wb=W*1E3-H.RqN-V-H.PTB;H=(0,g.aC)()-V;W=h.wb;V=h.provider.videoData;var B=V.isAd();if(c||B){B=(c?"ad":"video")+"_to_"+(B?"ad":"video");var E={};V.N&&(E.cttAuthInfo={token:V.N,videoId:V.videoId});E.startTime= H-W;Qy(B,E);g.zO({targetVideoId:V.videoId,targetCpn:V.clientPlaybackNonce},B);eq("pbs",H,B)}else H=h.provider.lB.Ot(),H.N!==V.clientPlaybackNonce?(H.C=V.clientPlaybackNonce,H.W=W):V.jX()||g.Lx(new g.tP("CSI timing logged before gllat",{cpn:V.clientPlaybackNonce}));h.GV("gllat",{l:h.wb.toFixed(),prev_ad:+c});delete h.C}}; ES=function(h,W){W=W===void 0?NaN:W;W=W>=0?W:g.Bu(h.provider);var c=h.provider.lB.Lo(),V=c.k0-(h.CM||0);V>0&&g.$J(h,W,"bwm",[V,(c.S3-(h.fR||0)).toFixed(3)]);isNaN(h.CM)&&c.k0&&h.isOffline&&h.zt(!1);h.CM=c.k0;h.fR=c.S3;isNaN(c.bandwidthEstimate)||g.$J(h,W,"bwe",[c.bandwidthEstimate.toFixed(0)]);h.provider.uB.gI()&&Object.keys(c.X).length!==0&&h.GV("bwinfo",c.X);if(h.provider.uB.gI()||h.provider.uB.j("html5_log_meminfo"))V=XT5(),Object.values(V).some(function(B){return B!==void 0})&&h.GV("meminfo", V); if(h.provider.uB.gI()){var H;(V=(H=h.rE)==null?void 0:mNN(H))&&Object.values(V).some(function(B){return B!=null})&&h.GV("cpuinfo",V)}h.yg&&h.GV("jsprof",h.yg.flush()); h.T&&g.$J(h,W,"bat",[h.T.level,h.T.charging?"1":"0"]);H=h.provider.lB.getVisibilityState();h.RR!==H&&(g.$J(h,W,"vis",[H]),h.RR=H);soQ(h,W);(H=HQv(h.provider))&&H!==h.Zn&&(g.$J(h,W,"conn",[H]),h.Zn=H);Be7(h,W,c)}; Be7=function(h,W,c){if(!isNaN(c.Rw)){var V=c.Rw;c.W96E3&&(new g.oD(h.reportStats,0,h)).start()}}; J7L=function(h){h.provider.videoData.Gu&&RM(h,"prefetch");h.provider.videoData.qU&&h.GV("reload",{r:h.provider.videoData.reloadReason,ct:h.provider.videoData.qU});h.provider.videoData.Ef&&RM(h,"monitor");h.provider.videoData.isLivePlayback&&RM(h,"live");rh&&RM(h,"streaming");h.provider.videoData.wp&&h.GV("ctrl",{mode:h.provider.videoData.wp},!0);if(h.provider.videoData.cR){var W=h.provider.videoData.cR.replace(/,/g,"_");h.GV("ytp",{type:W},!0)}h.provider.videoData.Mk&&(W=h.provider.videoData.Mk.replace(/,/g, "."),h.GV("ytrexp",{ids:W},!0));W=h.provider.videoData;var c=h.provider.uB.j("enable_white_noise")||h.provider.uB.j("enable_webgl_noop"),V=g.T8(W)||g.gM(W)||g.De(W)||g.wM(W);(c||V)&&(c=(0,g.Ja)())&&h.X.set("gpu",[c]);J7(h.provider.videoData)&&g.$J(h,g.Bu(h.provider),"dt",["1"]);h.provider.j("html5_record_is_offline_on_playback_attempt_start")&&W.cotn&&!J7(W)&&h.zt(!0);h.provider.uB.gI()&&(W=(0,g.aC)()-h.provider.uB.H9,h.GV("playerage",{secs:Math.pow(1.6,Math.round(Math.log(W/1E3)/Math.log(1.6))).toFixed()})); h.Y=!0;h.Wk=g.Jc(function(){h.reportStats()},1E4)}; deT=function(h,W,c){var V=g.Bu(h.provider);u1N(h,V,W,0,c);ES(h,V);RZl(h)}; u1N=function(h,W,c,V,H){var B=h.provider.uB.X.cbrver;h.provider.uB.X.cbr==="Chrome"&&/^96[.]/.test(B)&&c==="net.badstatus"&&/rc\.500/.test(H)&&Grh(h,3);h.provider.uB.j("html5_use_ump")&&/b248180278/.test(H)&&Grh(h,4);B=h.provider.getCurrentTime(h.adCpn||h.provider.videoData.clientPlaybackNonce);V=V===1?"fatal":"";c=[c,V,B.toFixed(3)];V&&(H+=";a6s."+I2());H&&c.push(ZQU(H));g.$J(h,W,"error",c);h.Y=!0}; r7l=function(h,W){var c=g.Bu(h.provider);if(!h.provider.uB.experiments.xN("html5_refactor_sabr_video_format_selection_logging")||W.X.id!==h.Rz){var V=[W.X.id,W.W,h.Rz,W.reason];W.token&&V.push(W.token);g.$J(h,c,"vfs",V);h.Rz=W.X.id;V=h.provider.lB.getPlayerSize();if(V.width>0&&V.height>0){V=[Math.round(V.width),Math.round(V.height)];var H=g.xX();H>1&&V.push(H);g.$J(h,c,"view",V)}h.Ef||(h.provider.uB.gI()&&RM(h,"rqs2"),h.provider.videoData.X&&Mp(h.provider.videoData.X)&&h.X.set("preload",["1"]));h.Ef= !0;h.Y=!0}W.reason==="m"&&++h.q$===100&&Grh(h,2);g.$J(h,c,"vps",[h.Zh]);h.Pk||h.reportStats(c)}; qVd=function(h){h.G>=0||(h.provider.uB.Lj||h.provider.lB.getVisibilityState()!==3?h.G=g.Bu(h.provider):h.Jk=!0)}; xeN=function(h,W,c){if(h.provider.uB.experiments.xN("html5_refactor_sabr_audio_format_selection_logging")){W=c.X;var V=[W.audio&&W.video?W.Yo?W.Yo:"":W.id];W.iW&&W.iW.id&&V.push(W.iW.id);W=V.join(";");W!==h.N&&(V=[W,h.N,c.reason],c.token&&V.push(c.token),g.$J(h,g.Bu(h.provider),"afs",V),h.N=W)}else c.X.id!==h.N&&(V=[c.X.id,h.N,c.reason],c.token&&V.push(c.token),g.$J(h,W,"afs",V),h.N=c.X.id)}; RM=function(h,W){Hu(h,"cat",W)}; lf5=function(h,W,c,V,H){var B=g.Bu(h.provider);W!==1&&W!==3&&W!==5||g.$J(h,B,"vps",[h.Zh]);Hu(h,"xvt","t."+B.toFixed(3)+";m."+H.toFixed(3)+";g.2;tt."+W+";np.0;c."+c+";d."+V)}; Grh=function(h,W){h.Ak||(Hu(h,"fcnz",""+W),h.Ak=!0)}; ZQU=function(h){/[^a-zA-Z0-9;.!_-]/.test(h)&&(h=h.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return h}; g.dK=function(h,W,c,V,H,B,E,J,u,d){J=J===void 0?!1:J;g.N.call(this);var G=this;this.lB=h;this.schedule=W;this.policy=c;this.jO=V;this.Pk=u;this.Tx=d;this.KM=null;this.CM=this.Rz=this.Nn=this.Wk=0;this.Sg=this.Pq=this.isSuspended=!1;this.Mn="";this.hq={};this.hI=NaN;this.lW=0;this.XI=null;this.Sx=this.yg=!1;this.MC=0;this.Ef=!1;this.mW=this.Ak=0;this.fR=null;this.L$=function(){return G.lB.L$()}; this.timing=new o0N(this.Tx);this.Z=new oB(this.schedule,this.policy);this.Zn=new g.oD(this.bV,0,this);this.U5=new g.oD(this.bV,this.policy.Zn,this);this.Y8=new g.oD(this.bV,1E3,this);this.iX=new g.oD(this.bV,void 0,this);this.rE=new g.oD(function(){G.isSuspended||G.bV()},1E4,this); this.RR=new g.oD(this.MKg,250,this);this.N=this.currentTime=NaN;this.kt=new ys(5);this.zV=this.timestampOffset=NaN;this.logger=new g.xP("dash");this.U8=Infinity;this.uX={getAudioTrack:function(){return G.audioTrack}, oqH:function(){return G.videoTrack}, getManifest:function(){return G.jO}, jUO:function(){return G.W}, bV:function(){G.bV()}, rk:function(){G.Wk=0;G.rk()}, itB:function(r){return up(G,G.videoTrack,G.KM.W,r)}}; h=u&&u.O4();u&&(TPD(u,this.jO,this.policy),this.zV=Date.now());this.X=new EC(this,this.Z,c,this.jO,H,h);c=lsU(this.X,B,E&&E.id);this.audioTrack=new Pw(this,this.policy,c.audio,this.timing);this.videoTrack=new Pw(this,this.policy,c.video,this.timing);this.videoTrack.Y.DH=this.audioTrack.q7();this.Jk={updateend:this.PT,error:this.qfW};g.X(this,this.Zn);g.X(this,this.U5);g.X(this,this.Y8);g.X(this,this.iX);g.X(this,this.rE);c=this.policy.Wy&&this.policy.GA?!y1l(this.videoTrack.X.info):!1;this.bX=FMv({YC:this.policy.S.YC|| c,GA:this.policy.GA&&!c,Jo:this.policy.Jo});this.S=PUN(this,this.policy,this.bX,this.schedule,this.kt,function(r,q){return nMv(G,r,q)}); this.G=new Yj(this,this.jO,this.policy,this.videoTrack,this.audioTrack,J);this.policy.Ak&&this.policy.W&&(this.DH=new R8k(function(r,q){G.GV(r,q)})); this.cH=new DW(this,this.jO,this.videoTrack,this.audioTrack,this.policy);J=this.policy.Kq?this.lB.getVideoData().gp:null;this.C=new $8(this,this.policy,this.videoTrack,this.audioTrack,this.hq,this.G,this.timing,this.Z,this.schedule,this.jO,this.X,this.S,c,J);g.X(this,this.C);this.Y=new Zo(this,this.policy,this.videoTrack,this.audioTrack,this.jO,H,LC(this.lB.getVideoData()),E==null?void 0:E.id);g.X(this,this.Y);kcl(this.Y,B);this.W=new cT5(this.lB,this,this.policy,this.audioTrack,this.videoTrack,this.jO, this.schedule,this.X,this.Y,this.timing,this.G);g.X(this,this.W);this.T=this.lB.Ql.yx.Ai;this.policy.C||joN(this);if(this.policy.Ns){var Z;this.uW=new LSh(this.videoTrack.X.index,(Z=this.lB.getVideoData().clientPlaybackNonce)!=null?Z:"",this.lB,this.policy.Ef);this.policy.Ef===3&&(this.qU=new g.oD(this.Y2,200,this),this.qU.start(),g.X(this,this.qU))}this.logger.debug("Created")}; joN=function(h){var W,c;if((W=h.T)==null?0:(c=W.Wo)==null?0:c.itagDenylist){var V;h.RA((V=h.T)==null?void 0:V.Wo.itagDenylist)}var H;if((H=h.T)==null?0:H.playbackStartPolicy){var B,E;cM(h.policy,(B=h.T)==null?void 0:B.playbackStartPolicy,3,(E=h.T)==null?void 0:E.bd())}if(h.policy.d6){W=h.Cj();var J;(c=W?(J=h.T)==null?void 0:J.DI.get(W):void 0)&&h.W.Yg(c)}if(!h.jO.T){var u;J=(u=h.T)==null?void 0:u.sN;(J==null?0:J.Ko)&&(J==null?0:J.qV)&&h.jO.Hi&&YP(h.jO,J.Ko,J.qV)}var d;((d=h.T)==null?0:d.dh)&&(u=h.T.dh.get(h.Cj()|| ""))&&h.jO&&u.formatId&&(h=h.jO.G.get(pT(u.formatId)))&&(h.info.debugInfo=u.debugInfo)}; afU=function(h,W){var c=pT(g.fF(W.X.info,h.jO.Hi)),V,H=((V=h.Pk)==null?void 0:V.ZS(c))||[];if(H.length===0)return h.GV("ombmsi",{}),!1;H=new $P(H);if(V=!h.policy.Wk||isFinite(h.getCurrentTime())||h.lB.a6()){a:{V=h.getCurrentTime();H=g.e(H.pM);for(var B=H.next();!B.done;B=H.next())if(B=B.value,B.type===3&&V>=B.Y&&V<=B.N){V=!0;break a}V=!1}V=!V}if(V)return h.GV("ostmf",{ct:h.getCurrentTime(),a:W.X.info.Qr()}),!1;(h=h.Pk)!=null&&(h.jo.get(c).T_=!0);return!0}; eZU=function(h){if(!h.jO.Hi)return!0;var W=h.lB.getVideoData();if(h.lB.oO())return h.GV("ombpa",{}),!1;var c,V;if(!!((c=h.T)==null?0:(V=c.sN)==null?0:V.tK9)!==h.jO.N$)return h.GV("ombplmm",{}),!1;c=W.lW||W.liveUtcStartSeconds||W.Tx;if(h.jO.N$&&c)return h.GV("ombplst",{}),!1;if(h.jO.T)return h.GV("ombab",{}),!1;c=Date.now();return Oj(h.jO)&&!isNaN(h.zV)&&c-h.zV>h.policy.AB*1E3?(h.GV("ombttl",{}),!1):h.jO.W9&&h.jO.Y||!h.policy.cS&&h.jO.isPremiere||bU(W)!==0&&!h.policy.X||W.j("html5_disable_onesie_media_for_mosaic")&& Ro(W)||W.Gw()&&!W.j("html5_enable_onesie_media_for_lifa")&&W.isDaiEnabled()&&W.enableServerStitchedDai||W.j("html5_disable_onesie_media_for_lifa_eligible")&&EV(W)?!1:!0}; zZp=function(h,W){var c=W.X,V=h.jO.Hi;if(eZU(h))if(h.Pk&&h.Pk.jo.has(pT(g.fF(c.info,V)))){if(V=pT(g.fF(c.info,V)),afU(h,W)){var H=new $P(h.Pk.ZS(V)),B=function(E){try{if(E.C$())h.handleError(E.KG(),E.Kn()),OC(W,E),HJ(E.info)&&EZ(h.C,W,c,!0),h.bV();else if(RE(h.C,E)){var J;(J=h.G)==null||$jd(J,E.info,h.XI);h.bV()}}catch(u){E=uX(u),h.handleError(E.errorCode,E.details,E.severity),h.Il()}}; c.G=!0;sj(H)&&(Tj(W,new wa(h.policy,V,H,h.Pk,B)),IL(h.timing))}}else h.GV("ombfmt",{})}; Qo4=function(h,W){W=W||h.videoTrack&&h.videoTrack.W&&h.videoTrack.W.startTime||h.getCurrentTime();var c=us,V=h.videoTrack,H=h.X;W=H.nextVideo&&H.nextVideo.index.Gj(W)||0;H.DH!==W&&(H.mW={},H.DH=W,Rj(H,H.X));W=!H.X.isLocked()&&H.T>-1&&(0,g.aC)()-H.TW.X&&W.reason==="b";V||H||c?(h.lB.TP({reattachOnConstraint:V?"u":H?"drm":"perf",lo:W.W,up:W.X}),h.policy.ID||(h.Y.X.W=!1)):(h.policy.ID&&(h.Y.X.W=!1),k8(h))}}else if(!nPD(h.X,W)&&h.videoTrack){h.logger.debug(function(){return"Setting constraint: r="+W.reason+" u="+W.X}); c=h.X.X;FbQ(h,asd(h.X,W));Qo4(h);V=W.isLocked()&&W.reason==="m"&&h.X.Wk;H=h.policy.Ah&&W.reason==="l"&&gR(h.videoTrack);c=c.X>W.X&&W.reason==="b";var B=h.X.Jk&&!cc();V||H||c||B?h.lB.TP({reattachOnConstraint:V?"u":H?"drm":B?"codec":"perf"}):k8(h)}}; PcN=function(h,W,c){if((!h.KM||Hc(h.KM)&&!h.policy.Yk)&&!h.cH.isSeeking()&&(h.policy.X||gR(W)&&W.X.Yx()&&h.X.XI)){var V=h.getCurrentTime()+xpv(h.Z,W,c);h.logger.debug(function(){return"Clearing back to "+V.toFixed(3)}); efN(W,V)}}; FbQ=function(h,W){W&&(h.logger.debug(function(){return"Logging new format: "+v_(W.video.info)}),ffD(h.lB,new cw(W.video,W.reason))); if(h.X.yg){var c=LMv(h.X,"a");h.lB.zG(new cw(c.audio,c.reason))}}; k8=function(h){g.pO(h.Zn)}; JJ=function(h){h.policy.Zn&&h.policy.Jo&&Math.min(aEv(h.videoTrack),aEv(h.audioTrack))*1E3>h.policy.wQ?g.pO(h.U5):h.bV()}; bQL=function(h,W){var c=(0,g.aC)()-W,V=pp(h.audioTrack,!0)*1E3,H=pp(h.videoTrack,!0)*1E3;h.logger.debug(function(){return"Appends paused for "+c}); if(h.policy.G&&(h.GV("apdpe",{dur:c.toFixed(),abuf:V.toFixed(),vbuf:H.toFixed()}),WM(h.policy))){var B=YK(h.Z);h.GV("sdps",{ct:W,ah:V.toFixed(),vh:H.toFixed(),mr:Og(h.Z,h.Sg,B),bw:B.toFixed(),js:h.isSeeking(),re:+h.Sg,ps:(h.policy.s_||"").toString(),rn:(h.policy.FO||"").toString()})}}; TeQ=function(h){if(Agk(h.videoTrack))return h.logger.debug("Pausing appends for server-selectable format"),"ssf";if(h.policy.Rz&&kG(h.videoTrack)&&kG(h.audioTrack))return"updateEnd";if(Sv(h.audioTrack)||Sv(h.videoTrack)&&h.videoTrack.X.info.eO!=="f")return"";if(h.cH.isSeeking()){var W=h.Z;var c=h.videoTrack;var V=h.audioTrack;if(W.policy.X){var H=W.policy.eX;WM(W.policy)&&(H=Og(W,!1,YK(W)));W=H;c=pp(V,!0)>=W&&pp(c,!0)>=W}else c.G.length||V.G.length?(H=c.X.info.Vg+V.X.info.Vg,H=10*(1-YK(W)/H),W=Math.max(H, W.policy.eX),c=pp(V,!0)>=W&&pp(c,!0)>=W):c=!0;if(!c)return"abr";c=h.videoTrack;if(c.G.length>0&&c.Y.W.length===1&&Dj5(c.Y).info.Z360);V=WM(h.policy)&&h.policy.fn;if(!h.Sg||!V&&c)return"";c=h.policy.Em;WM(h.policy)&&(c=Og(h.Z,h.Sg,YK(h.Z)));c=Q9Q(h.videoTrack,h.getCurrentTime(),c)||Q9Q(h.audioTrack,h.getCurrentTime(), c);return WM(h.policy)?c?"mbnm":"":(h.videoTrack.G.length>0||h.audioTrack.G.length>0||sZ(h.C,h.videoTrack,h.audioTrack)||sZ(h.C,h.audioTrack,h.videoTrack))&&c?"nord":""}; Ne5=function(h){if(h.S){var W=h.S.bV(h.audioTrack,Sd(h.KM.W.M$()));W&&h.lB.seekTo(W,{Dv:!0,LR:"pollSubsegmentReadahead",zP:!0})}}; IfD=function(h,W,c){if(h.policy.Rz&&kG(W))return!1;if(c.CV())return!0;if(!c.MI())return!1;var V=Ex(W);if(!V||V.info.type===6)return!1;var H;if(h.policy.PO||((H=h.G)==null?0:EPk(H,W,V.info.Hk)))h.CM=0;else return h.cH.isSeeking()&&k8(h),h.CM=h.CM||(0,g.aC)(),!1;if(!up(h,W,c,V.info))return!1;if(h.jO.W&&V.info.W===0){if(H=XNN(W,c,V)){var B=bM(W);h.GV("initchg",{it:V.info.X.info.id,sr:!!B&&B.X===V.info.X,ty:V.info.type,seg:V.info.Hk})}B=g.yT(V.info.X.info);h.policy.BV&&B&&!H&&siN(V)}B=h.S&&!!h.S.Y&&W.X.info.audio; H=h.jO.isManifestless||V.C;if(!(h.jO.W&&V.info.W!==0||H&&!B)&&tbd(h,W,c,V))return!0;if(B)return!1;B=cP(h,W);B=h.getCurrentTime()+B;if(V.info.Y>B)return h.policy.X&&vM7(h,W),h.policy.b9&&Upd(W.Y,B,!1),!1;meD(h,W);var E;h.policy.Lj&&c===((E=h.KM)==null?void 0:E.X)&&h.Ef&&(c.GF()===0?(h.Ef=!1,h.policy.Lj=!1):h.Ak=c.GF());if(!oMl(h,c,V,W))return!1;h.policy.Rz&&V.info.CU()?(h.lB.B().gI()&&h.GV("eosl",{ls:V.info.aR()}),V.isLocked=!0):(W.d7(V),Qup(h.X,V.info),h.logger.debug(function(){return"Appended "+ V.info.aR()+", buffered: "+oG(c.M$())})); H&&pNU(h,V.info.X.KC);return!0}; vM7=function(h,W){W===h.videoTrack?h.Rz=h.Rz||(0,g.aC)():h.Nn=h.Nn||(0,g.aC)()}; meD=function(h,W){W===h.videoTrack?h.Rz=0:h.Nn=0}; oMl=function(h,W,c,V){var H=h.policy.Sx?(0,g.aC)():0,B=c.C&&c.info.X.X||void 0,E=c.W;c.C&&(E=YV7(h,c,E)||E);var J=sk(E);E=h.policy.Sx?(0,g.aC)():0;W=OQk(h,W,J,c.info,B);(V=V.T)!=null&&(B=c.info,H=E-H,E=(0,g.aC)()-E,!V.W||evU(V.W,B)&&V.W.Hk===B.Hk||V.flush(),V.Y+=H,V.G+=E,H=1,!V.W&&B.W&&(H=2),rR(V,H,W),E=Math.ceil(B.W/1024),H===2&&V.X.add(E),V.X.add(Math.ceil((B.W+B.G)/1024)-E),V.W=B);h.mW=0;if(W===0)return h.yg&&(h.logger.debug("Retry succeed, back to normal append logic."),h.yg=!1,h.Sx=!1),h.lW= 0,!0;if(W===2||W===5)return SVh(h,"checked",W,c.info),!1;if(W===1){if(!h.yg)return h.logger.debug("QuotaExceeded, retrying."),h.yg=!0,!1;if(!h.Sx)return h.Sx=!0,h.lB.seekTo(h.getCurrentTime(),{LR:"quotaExceeded",zP:!0}),!1;c.info.Sz()?(H=h.policy,H.Nn=Math.floor(H.Nn*.8),H.Pk=Math.floor(H.Pk*.8)):(H=h.policy,H.Mn=Math.floor(H.Mn*.8),H.Pk=Math.floor(H.Pk*.8));h.policy.X?$G(h.Y.X,c.info.X,!1):uM(h.X,c.info.X)}h.lB.TP({reattachOnAppend:W});return!1}; YV7=function(h,W,c){var V;if(V=h.policy.SQ&&h.KM&&!h.KM.Z&&!h.lB.Q8())W=W.info.X.info,V=W.Aq()&&KF(W)&&W.video&&W.video.width<3840&&W.video.width>W.video.height;if(V&&(h.KM.Z=!0,rA('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return c=SjD(c),h.policy.G&&h.GV("sp4k",{s:!!c}),c}; SVh=function(h,W,c,V){var H="fmt.unplayable",B=1;c===5||c===3?(H="fmt.unparseable",h.policy.X?!V.X.info.video||sC(h.Y.X).size>0||$G(h.Y.X,V.X,!1):!V.X.info.video||sC(h.X.C).size>0||uM(h.X,V.X)):c===2&&(h.lW<15?(h.lW++,H="html5.invalidstate",B=0):H="fmt.unplayable");V=cJ(V);var E;V.mrs=(E=h.KM)==null?void 0:JY(E);V.origin=W;V.reason=c;V.trg="appenderr";h.handleError(H,V,B)}; d8N=function(h,W,c,V,H){var B=h.jO;var E=h.policy.X,J=!1,u=-1,d;for(d in B.X){var G=XK(B.X[d].info.mimeType)||B.X[d].info.Sz();if(V===G)if(G=B.X[d].index,G.sO(W.Hk)){J=G;var Z=W,r=J.Hp(Z.Hk);r&&r.startTime!==Z.startTime?(J.segments=[],J.T1(Z),J=!0):J=!1;J?u=W.Hk:!W.pending&&E&&(Z=G.getDuration(W.Hk),Z!==W.duration&&(B.publish("clienttemp","mfldurUpdate",{itag:B.X[d].info.itag,seg:W.Hk,od:Z,nd:W.duration},!1),G.T1(W),J=!0))}else G.T1(W),J=!0}u>=0&&(E={},B.publish("clienttemp","resetMflIndex",(E[V? "v":"a"]=u,E),!1));B=J;yuN(h.cH,W,V,B);if(h.policy.Ak&&h.policy.W&&(u=W.WV||null)){var q;E=(q=h.W)==null?void 0:le7(q).requestNumber;var x;(x=h.DH)==null||JwL(x,u,E)}h.G.KW(W,c,V,H);W.Hk===h.jO.W9&&B&&mM(h.jO)&&W.startTime>mM(h.jO)&&(h.jO.DH=W.startTime+(isNaN(h.timestampOffset)?0:h.timestampOffset),h.cH.isSeeking()&&h.cH.targetTime5)return h.mW= 0,h.lB.TP({initSegStuck:1,as:V.info.aR()}),!0}else h.mW=0,h.fR=V;h.policy.rQ&&(c.abort(),(E=W.T)!=null&&(rR(E,4),E.flush()));H=OQk(h,c,B,u,H);var d;(d=W.T)==null||yw7(d,H,u);if(H!==0)return gMT(h,H,V),!0;V.info.Sz()?Swl(h.timing):g0l(h.timing);h.logger.debug(function(){return"Appended init for "+V.info.X.info.id}); pNU(h,V.info.X.KC);return c.j5()}; XNN=function(h,W,c){if(W.w1()==null){h=bM(h);if(!(W=!h||h.X!==c.info.X)){a:if(h=h.T,c=c.info.T,h.length!==c.length)c=!1;else{for(W=0;W1)return 6;E.mW=new g.oD(function(){var J=Ex(E);h.gE()||J==null||!J.isLocked?h.lB.B().gI()&&h.GV("eosl",{delayA:J==null?void 0:J.info.aR()}):DeQ(E)?(h.lB.B().gI()&&h.GV("eosl",{dunlock:J==null?void 0:J.info.aR()}),wN5(h,E===h.audioTrack)):(h.GV("nue",{ls:J.info.aR()}),J.info.XI+=1,h.KM&&h.rk())},1E4,h); h.lB.B().gI()&&h.GV("eosl",{delayS:V.aR()});E.mW.start()}h.policy.sC&&(V==null?void 0:V.X)instanceof Ej&&V.CU()&&h.GV("poseos",{itag:V.X.info.itag,seg:V.Hk,lseg:V.X.index.KR(),es:V.X.index.G});W.appendBuffer(c,V,H)}catch(J){if(J instanceof DOMException){if(J.code===11)return 2;if(J.code===12)return 5;if(J.code===22||J.message.indexOf("Not enough storage")===0)return W=Object.assign({name:"QuotaExceededError",buffered:oG(W.M$()).replace(/,/g,"_"),vheap:mh(h.videoTrack),aheap:mh(h.audioTrack),message:g.Ks(J.message, 3),track:h.KM?W===h.KM.W?"v":"a":"u"},XT5()),h.handleError("player.exception",W),1;g.Qq(J)}return 4}return h.KM.xx()?3:0}; BP=function(h,W,c){iQ5(h,c.LR||"unknown");h.lB.seekTo(W,c)}; pNU=function(h,W){W&&h.lB.DE(new zj(W.key,W.type))}; Kp=function(h,W){h.lB.Fc(W)}; cP=function(h,W){if(h.yg&&!h.Sg)return 3;if(h.isSuspended)return 1;var c;if((c=h.KM)==null?0:c.KM&&c.KM.streaming===!1)return 4;c=(W.X.info.audio?h.policy.Mn:h.policy.Nn)/(W.Vg*h.policy.Wp);if(h.policy.x_>0&&h.KM&&Hc(h.KM)&&(W=W.X.info.video?h.KM.W:h.KM.X)&&!W.j5()){W=W.M$();var V=pF(W,h.getCurrentTime());V>=0&&(W=h.getCurrentTime()-W.start(V),c+=Math.max(0,Math.min(W-h.policy.x_,h.policy.Ie)))}h.policy.Pk>0&&(c=Math.min(c,h.policy.Pk));return c}; BMd=function(h,W){return(cP(h,W)+h.policy.RP)*W.Vg}; hsv=function(h){h.Mn&&!h.isSuspended&&pl(h.schedule)&&(krd(h,h.Mn),h.Mn="")}; krd=function(h,W){m9(W,"cms",function(c){h.policy.G&&h.GV("pathprobe",c)},function(c){h.lB.handleError(c)})}; W9d=function(h,W){if(h.KM&&h.KM.Y&&!h.KM.xx()&&(W.Rw=pp(h.videoTrack),W.W=pp(h.audioTrack),h.policy.G)){var c=mh(h.videoTrack),V=mh(h.audioTrack),H=oG(h.KM.W.M$(),"_",5),B=oG(h.KM.X.M$(),"_",5);Object.assign(W.X,{lvq:c,laq:V,lvb:H,lab:B})}W.bandwidthEstimate=pz(h.Z);var E;(E=h.audioTrack.T)==null||E.flush();var J;(J=h.videoTrack.T)==null||J.flush();h.logger.debug(function(){return En(W.X)})}; cK4=function(h,W){h.XI=W;h.G&&(h.G.G=W);h.XI.qg(h.videoTrack.X.info.Aq());h.C.W=h.XI;h.policy.W&&(h.W.Z=h.XI)}; $Sk=function(h,W){if(h.KM&&h.KM.W){if(h.policy.BD){var c=MNL(h.audioTrack);if(c&&c.Qr()){var V=h.lB;if(V.Ks&&(V.Ks.X=c,c=V.R1,c.qoe)){c=c.qoe;V=V.Ks;var H=g.Bu(c.provider);xeN(c,H,V)}}}h.policy.eC&&(c=MNL(h.videoTrack))&&c.Sz()&&(V=h.lB,V.jZ&&(V.jZ.X=c,c=V.R1,c.qoe&&r7l(c.qoe,V.jZ)));W-=isNaN(h.timestampOffset)?0:h.timestampOffset;h.getCurrentTime()!==W&&h.resume();h.cH.isSeeking()&&h.KM&&!h.KM.xx()&&(V=h.getCurrentTime()<=W&&W=W&&nMv(h,V.startTime,!1)}); return c&&c.startTimeh.getCurrentTime())return c.start/1E3;return Infinity}; JTT=function(h){if(h.lB.getVideoData().isLivePlayback)return!1;var W=h.lB.yl();if(!W)return!1;W=W.getDuration();if(h.KM&&h.KM.X&&h.KM.W){var c=h.getCurrentTime(),V=h.KM.X.M$();h=h.KM.W.M$();V=V?On(V,c):c;c=h?On(h,c):c;c=Math.min(V,c);W=isNaN(c)?!1:c>=W-.01}else W=!1;return W}; gMT=function(h,W,c){h.policy.p8&&Qk(h.lB.getVideoData())?(h.lB.Fq()||SVh(h,"sepInit",W,c.info),unD(h.lB,"sie")):SVh(h,"sepInit",W,c.info)}; dv=function(h){return h.lB.Ga()0){var V=c.X.shift();GMU(c,V.info)}c.X.length>0&&(V=c.X[0].time-(0,g.aC)(),c.W.start(Math.max(0,V)))}},0); g.X(this,this.W);W.subscribe("widevine_set_need_key_info",this.Y,this)}; GMU=function(h,W){a:{var c=W.cryptoPeriodIndex;if(isNaN(c)&&h.G.size>0)c=!0;else{for(var V=g.e(h.G.values()),H=V.next();!H.done;H=V.next())if(H.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}h.publish("log_qoe",{wvagt:"reqnews",canskip:c});c||h.publish("rotated_need_key_info_ready",W)}; ZND=function(){var h={};var W=h.url;var c=h.interval;h=h.retries;this.url=W;this.interval=c;this.retries=h}; rJQ=function(h,W){this.statusCode=h;this.message=W;this.W=this.heartbeatParams=this.errorMessage=null;this.X={};this.nextFairplayKeyId=null}; qZU=function(h,W,c){c=c===void 0?"":c;g.N.call(this);this.message=h;this.requestNumber=W;this.timer=c;this.onError=this.onSuccess=null;this.X=new g.C2(5E3,2E4,.2)}; x9p=function(h,W,c){h.onSuccess=W;h.onError=c}; n85=function(h,W,c,V){var H={timeout:3E4,onSuccess:function(B){if(!h.gE()){eq("drm_net_r",void 0,h.timer);var E=B.status==="LICENSE_STATUS_OK"?0:9999,J=null;if(B.license)try{J=A3(B.license)}catch(x){g.Qq(x)}if(E!==0||J){J=new rJQ(E,J);E!==0&&B.reason&&(J.errorMessage=B.reason);if(B.authorizedFormats){E={};for(var u=[],d={},G=g.e(B.authorizedFormats),Z=G.next();!Z.done;Z=G.next())if(Z=Z.value,Z.trackType&&Z.keyId){var r=lop[Z.trackType];if(r){r==="HD"&&B.isHd720&&(r="HD720");Z.isHdr&&(r+="HDR");E[r]|| (u.push(r),E[r]=!0);var q=null;try{q=A3(Z.keyId)}catch(x){g.Qq(x)}q&&(d[g.i6(q,4)]=r)}}J.W=u;J.X=d}B.nextFairplayKeyId&&(J.nextFairplayKeyId=B.nextFairplayKeyId);B.sabrLicenseConstraint&&(J.sabrLicenseConstraint=A3(B.sabrLicenseConstraint));B=J}else B=null;if(B)h.onSuccess(B,h.requestNumber);else h.onError(h,"drm.net","t.p;p.i")}}, onError:function(B){if(!h.gE())if(B&&B.error)B=B.error,h.onError(h,"drm.net.badstatus","t.r;p.i;c."+B.code+";s."+B.status,B.code);else h.onError(h,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){h.onError(h,"drm.net","rt.req."+h.requestNumber)}}; V&&(H.LB="Bearer "+V);g.oS(c,"player/get_drm_license",W,H)}; jEU=function(h,W,c,V){g.h1.call(this);this.videoData=h;this.uB=W;this.Z=c;this.sessionId=V;this.C={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.XI=this.Wk=!1;this.G=null;this.Pk=[];this.Y=[];this.authorizedFormats=[];this.S=!1;this.X={};this.status="";this.N=NaN;this.W=h.C;this.cryptoPeriodIndex=c.cryptoPeriodIndex;h={};Object.assign(h,this.uB.X);h.cpn=this.videoData.clientPlaybackNonce;this.videoData.zV&&(h.vvt=this.videoData.zV,this.videoData.mdxEnvironment&&(h.mdx_environment= this.videoData.mdxEnvironment));this.uB.Pk&&(h.authuser=this.uB.Pk);this.uB.pageId&&(h.pageid=this.uB.pageId);isNaN(this.cryptoPeriodIndex)||(h.cpi=this.cryptoPeriodIndex.toString());var H=(H=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.TF()))?H[1]:"";H==="ATV"&&(h.cdt=H);this.C=h;this.C.session_id=V;this.T=!0;this.W.flavor==="widevine"&&(this.C.hdr="1");this.W.flavor==="playready"&&(W=Number(q8(W.experiments,"playready_first_play_expiration")),!isNaN(W)&&W>=0&&(this.C.mfpe=""+W),this.T=!1);W="";g.Bx(this.W)? Hx(this.W)?(V=c.W)&&(W="https://www.youtube.com/api/drm/fps?ek="+QJv(V)):(W=c.initData.subarray(4),W=new Uint16Array(W.buffer,W.byteOffset,W.byteLength/2),W=String.fromCharCode.apply(null,W).replace("skd://","https://")):W=this.W.W;this.baseUrl=W;this.fairplayKeyId=j3(this.baseUrl,"ek")||"";if(W=j3(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(W);this.Pk=c.Aq?[g.i6(c.initData,4)]:c.G;xJ(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"}; QEv=function(h,W){xJ(h,{createkeysession:1});h.status="gr";eq("drm_gk_s",void 0,h.videoData.XI);h.url=aoD(h);try{h.G=W.createSession(h.Z,function(c){xJ(h,{m:c})})}catch(c){W="t.g"; c instanceof DOMException&&(W+=";c."+c.code);h.publish("licenseerror","drm.unavailable",1,W,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}h.G&&(eSp(h.G,function(c,V){zS5(h,c,V)},function(c,V,H){if(!h.gE()){V=void 0; var B=1;g.Bx(h.W)&&g.$X(h.uB)&&h.uB.j("html5_enable_safari_fairplay")&&H===1212433232&&(V="ERROR_HDCP",B=h.uB.j("html5_safari_fairplay_ignore_hdcp")?0:B);h.error("drm.keyerror",B,c,V)}},function(){h.gE()||(xJ(h,{onkyadd:1}),h.XI||(h.publish("sessionready"),h.XI=!0))},function(c){h.a4(c)}),g.X(h,h.G))}; aoD=function(h){var W=h.baseUrl;aT5(W)||h.error("drm.net",2,"t.x");if(!j3(W,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(H){return h.uB.experiments.experiments[H]}); c.length>0&&(h.C.fexp=c.join())}c=g.e(Object.keys(h.C));for(var V=c.next();!V.done;V=c.next())V=V.value,W=SHL(W,V,h.C[V]);return W}; zS5=function(h,W,c){if(!h.gE())if(W){xJ(h,{onkmtyp:c});h.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":LKD(h,W);return;default:h.publish("ctmp","message_type",{t:c,l:W.byteLength})}h.Wk||(eq("drm_gk_f",void 0,h.videoData.XI),h.Wk=!0,h.publish("newsession",h));if(Vs(h.W)&&(W=iNT(W),!W))return;W=new qZU(W,++h.requestNumber,h.videoData.XI);x9p(W,function(V){KKU(h,V)},function(V,H,B){if(!h.gE()){var E=0; V.X.W>=3&&(E=1,H="drm.net.retryexhausted");xJ(h,{onlcsrqerr:H,info:B});h.error(H,E,B);h.shouldRetry(Jp(E),V)&&AJN(h,V)}}); g.X(h,W);U97(h,W)}else h.error("drm.unavailable",1,"km.empty")}; LKD=function(h,W){xJ(h,{sdpvrq:1});h.N=Date.now();if(h.W.flavor!=="widevine")h.error("drm.provision",1,"e.flavor;f."+h.W.flavor+";l."+W.byteLength);else{var c={cpn:h.videoData.clientPlaybackNonce};Object.assign(c,h.uB.X);c=g.r0("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",c);W={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, W)}),responseType:"arraybuffer"};g.zN(c,W,3,500).then(N1(function(V){V=V.xhr;if(!h.gE()){V=new Uint8Array(V.response);var H=String.fromCharCode.apply(null,V);try{var B=JSON.parse(H)}catch(E){}B&&B.signedResponse?(h.publish("ctmp","drminfo",{provisioning:1}),B=(Date.now()-h.N)/1E3,h.N=NaN,h.publish("ctmp","provs",{et:B.toFixed(3)}),h.G&&h.G.update(V)):(B=B&&B.error&&B.error.message,V="e.parse",B&&(V+=";m."+B),h.error("drm.provision",1,V))}}),N1(function(V){h.gE()||h.error("drm.provision",1,"e."+V.errorCode+ ";c."+(V.xhr&&V.xhr.status))}))}}; lp=function(h){var W;if(W=h.T&&h.G!=null)h=h.G,W=!(!h.X||!h.X.keyStatuses);return W}; U97=function(h,W){h.status="km";eq("drm_net_s",void 0,h.videoData.XI);var c=new g.ma(h.uB.Mq),V={context:g.HY(c.config_||g.sr())};V.drmSystem=Csk[h.W.flavor];V.videoId=h.videoData.videoId;V.cpn=h.videoData.clientPlaybackNonce;V.sessionId=h.sessionId;V.licenseRequest=g.i6(W.message);V.drmParams=h.videoData.drmParams;isNaN(h.cryptoPeriodIndex)||(V.isKeyRotated=!0,V.cryptoPeriodIndex=h.cryptoPeriodIndex);var H,B,E=!!((H=h.videoData.W)==null?0:(B=H.video)==null?0:B.isHdr());V.drmVideoFeature=E?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(V.context&&V.context.client){if(H=h.uB.X)V.context.client.deviceMake=H.cbrand,V.context.client.deviceModel=H.cmodel,V.context.client.browserName=H.cbr,V.context.client.browserVersion=H.cbrver,V.context.client.osName=H.cos,V.context.client.osVersion=H.cosver;V.context.user=V.context.user||{};V.context.request=V.context.request||{};h.videoData.zV&&(V.context.user.credentialTransferTokens=[{token:h.videoData.zV,scope:"VIDEO"}]);V.context.request.mdxEnvironment=h.videoData.mdxEnvironment|| V.context.request.mdxEnvironment;h.videoData.bX&&(V.context.user.kidsParent={oauthToken:h.videoData.bX});g.Bx(h.W)&&(V.fairplayKeyId=g.i6(LeD(h.fairplayKeyId)));g.Ky(h.uB,g.BN(h.videoData)).then(function(J){n85(W,V,c,J);h.status="rs"})}else h.error("drm.net",2,"t.r;ic.0")}; KKU=function(h,W){if(!h.gE())if(xJ(h,{onlcsrsp:1}),h.status="rr",W.statusCode!==0)h.error("drm.auth",1,"t.f;c."+W.statusCode,W.errorMessage||void 0);else{eq("drm_kr_s",void 0,h.videoData.XI);if(W.heartbeatParams&&W.heartbeatParams.url&&h.videoData.j("outertube_streaming_data_always_use_staging_license_service")){var c=h.W.W.match(/(.*)youtube.com/g);c&&(W.heartbeatParams.url=c[0]+W.heartbeatParams.url)}W.heartbeatParams&&h.publish("newlicense",W.heartbeatParams);W.W&&(h.Y=W.W,h.videoData.rY||h.publish("newlicense", new ZND),h.videoData.rY=!0,h.S=tM(h.Y,function(V){return V.includes("HDR")})); W.X&&(h.uB.j("html5_enable_vp9_fairplay")&&Hx(h.W)?(c=g.i6(LeD(h.fairplayKeyId),4),h.X[c]={type:W.X[c],status:"unknown"}):h.X=WG(W.X,function(V){return{type:V,status:"unknown"}})); sd(h.W)&&(W.message=I8p(g.i6(W.message)));h.G&&(xJ(h,{updtks:1}),h.status="ku",h.G.update(W.message).then(function(){eq("drm_kr_f",void 0,h.videoData.XI);lp(h)||(xJ(h,{ksApiUnsup:1}),h.publish("keystatuseschange",h))},function(V){V="msuf.req."+h.requestNumber+";msg."+g.Ks(V.message,3); h.error("drm.keyerror",1,V)})); g.Bx(h.W)&&h.publish("fairplay_next_need_key_info",h.baseUrl,W.nextFairplayKeyId);h.uB.j("html5_enable_vp9_fairplay")&&Hx(h.W)&&h.publish("qualitychange",MA4(h.Y));W.sabrLicenseConstraint&&h.publish("sabrlicenseconstraint",W.sabrLicenseConstraint)}}; AJN=function(h,W){var c=W.X.getValue();c=new g.oD(function(){U97(h,W)},c); g.X(h,c);c.start();g.M$(W.X);xJ(h,{rtyrq:1})}; FKk=function(h,W){for(var c=[],V=g.e(Object.keys(h.X)),H=V.next();!H.done;H=V.next())H=H.value,c.push(H+"_"+h.X[H].type+"_"+h.X[H].status);return c.join(W)}; yJ7=function(h){var W={};W[h.status]=lp(h)?FKk(h,"."):h.Y.join(".");return W}; Ps4=function(h,W,c){var V={};V.isHdr=W.includes("HDR");switch(W.replace("HDR","").replace("720","")){case "AUDIO":V.trackType=1;break;case "SD":V.trackType=2;break;case "HD":V.trackType=3;break;case "UHD1":V.trackType=4;break;case "UHD2":V.trackType=5;break;default:V.trackType=0}!V.trackType||c[W]||lp(h)&&!n_(h,W)||(h.authorizedFormats.push(V),c[W]=!0)}; n_=function(h,W){for(var c in h.X)if(h.X[c].status==="usable"&&h.X[c].type===W)return!0;return!1}; foN=function(h,W){for(var c in h.X)if(h.X[c].type===W)return h.X[c].status}; xJ=function(h,W){var c=c===void 0?!1:c;En(W);(c||h.uB.gI())&&h.publish("ctmp","drmlog",W)}; bND=function(h){var W=h[0];h[0]=h[3];h[3]=W;W=h[1];h[1]=h[2];h[2]=W;W=h[4];h[4]=h[5];h[5]=W;W=h[6];h[6]=h[7];h[7]=W}; MA4=function(h){return g.el(h,"UHD2")||g.el(h,"UHD2HDR")?"highres":g.el(h,"UHD1")||g.el(h,"UHD1HDR")?"hd2160":g.el(h,"HD")||g.el(h,"HDHDR")?"hd1080":g.el(h,"HD720")||g.el(h,"HD720HDR")?"hd720":"large"}; iNT=function(h){for(var W="",c=0;c'.charCodeAt(V);h=h.G.createSession("video/mp4",W,c);return new j6(null,null,null,null,h)}; pMT=function(h,W){var c=h.N[W.sessionId];!c&&h.Y&&(c=h.Y,h.Y=null,c.sessionId=W.sessionId,h.N[W.sessionId]=c);return c}; v8d=function(h,W){var c=h.subarray(4);c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2);c=String.fromCharCode.apply(null,c).match(/ek=([0-9a-f]+)/)[1];for(var V="",H=0;H19.2999?(h=c.GB,c=c.WO,c>=h&&(c=h* .75),W=(h-c)*.5,c=new rK(W,h,h-W-c,this)):c=null;break a;case "widevine":c=new qs(W,this,h);break a;default:c=null}if(this.C=c)g.X(this,this.C),this.C.subscribe("rotated_need_key_info_ready",this.PC,this),this.C.subscribe("log_qoe",this.fU,this);R9(this.uB.experiments);this.fU({cks:this.X.getInfo()})}; YZh=function(h){var W=tAk(h.Y);W?W.then(N1(function(){SZv(h)}),N1(function(c){if(!h.gE()){g.Qq(c); var V="t.a";c instanceof DOMException&&(V+=";n."+c.name+";m."+c.message);h.publish("licenseerror","drm.unavailable",1,V,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(h.fU({mdkrdy:1}),h.T=!0); h.XI&&(W=tAk(h.XI))}; D9v=function(h,W,c){h.CM=!0;c=new zj(W,c);h.uB.j("html5_eme_loader_sync")&&(h.N.get(W)||h.N.set(W,c));g8D(h,c)}; g8D=function(h,W){if(!h.gE()){h.fU({onInitData:1});if(h.uB.j("html5_eme_loader_sync")&&h.videoData.G&&h.videoData.G.X){var c=h.S.get(W.initData);W=h.N.get(W.initData);if(!c||!W)return;W=c;c=W.initData;h.N.remove(c);h.S.remove(c)}h.fU({initd:W.initData.length,ct:W.contentType});if(h.X.flavor==="widevine")if(h.zV&&!h.videoData.isLivePlayback)zS(h);else{if(!(h.uB.j("vp9_drm_live")&&h.videoData.isLivePlayback&&W.Aq)){h.zV=!0;c=W.cryptoPeriodIndex;var V=W.X;oPp(W);W.Aq||(V&&W.X!==V?h.publish("ctmp","cpsmm", {emsg:V,pssh:W.X}):c&&W.cryptoPeriodIndex!==c&&h.publish("ctmp","cpimm",{emsg:c,pssh:W.cryptoPeriodIndex}));h.publish("widevine_set_need_key_info",W)}}else h.PC(W)}}; SZv=function(h){if(!h.gE())if(h.uB.j("html5_drm_set_server_cert")||Hx(h.X)){var W=h.Y.setServerCertificate();W?W.then(N1(function(c){h.uB.gI()&&h.publish("ctmp","ssc",{success:c})}),N1(function(c){h.publish("ctmp","ssce",{n:c.name, m:c.message})})).then(N1(function(){wM7(h)})):wM7(h)}else wM7(h)}; wM7=function(h){h.gE()||(h.T=!0,h.fU({onmdkrdy:1}),zS(h))}; kM4=function(h){return h.X.flavor==="widevine"&&h.videoData.j("html5_drm_cpi_license_key")}; zS=function(h){if(h.CM&&h.T&&!h.DH){for(;h.G.length;){var W=h.G[0],c=kM4(h)?pJQ(W):g.i6(W.initData);if(Hx(h.X)&&!W.W)h.G.shift();else{if(h.W.get(c))if(h.X.flavor!=="fairplay"||Hx(h.X)){h.G.shift();continue}else h.W.delete(c);oPp(W);break}}h.G.length&&h.createSession(h.G[0])}}; hbp=function(h){var W;if(W=g.NC()){var c;W=!((c=h.Y.W)==null||!c.getMetrics)}W&&(W=h.Y.getMetrics())&&(W=g.uQ(W),h.publish("ctmp","drm",{metrics:W}))}; WF7=function(){var h=X9D();return!(!h||h==="visible")}; V6N=function(h){var W=caU();W&&document.addEventListener(W,h,!1)}; $sk=function(h){var W=caU();W&&document.removeEventListener(W,h,!1)}; caU=function(){if(document.visibilityState)var h="visibilitychange";else{if(!document[Eh+"VisibilityState"])return"";h=Eh+"visibilitychange"}return h}; sM5=function(h){g.N.call(this);var W=this;this.lB=h;this.l_=0;this.N=this.W=this.C=!1;this.Y=0;this.fM=this.lB.B();this.videoData=this.lB.getVideoData();this.G=g.DF(this.fM.experiments,"html5_delayed_retry_count");this.X=new g.oD(function(){W.lB.uO()},g.DF(this.fM.experiments,"html5_delayed_retry_delay_ms")); g.X(this,this.X)}; JaN=function(h,W,c){var V=h.videoData.W,H=h.videoData.Y,B=h.fM.j("html5_disable_codec_fallback_for_drm")&&h.videoData.bC();Qk(h.lB.getVideoData())&&h.fM.j("html5_gapless_fallback_on_qoe_restart")&&unD(h.lB,"pe");if((W==="progressive.net.retryexhausted"||W==="fmt.unplayable"||W==="fmt.decode")&&!h.lB.Tu.C&&V&&V.itag==="22")return h.lB.Tu.C=!0,h.Xi("qoe.restart",{reason:"fmt.unplayable.22"}),h.lB.Zt(),!0;var E=!1;if(h.videoData.isExternallyHostedPodcast){if(E=h.videoData.zVn)c.mimeType=E.type,h.GV("3pp", {url:E.url});c.ns="3pp";h.lB.wu(W,1,"VIDEO_UNAVAILABLE",En((new g.RG(W,c,1)).details));return!0}var J=h.l_+3E4<(0,g.aC)()||h.X.isActive();if(h.fM.j("html5_empty_src")&&h.videoData.isAd()&&W==="fmt.unplayable"&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",h.Xi("auth",c),!0;J||H_D(h.lB.D8())||(c.nonfg="paused",J=!0,h.lB.pauseVideo());(W==="fmt.decode"||W==="fmt.unplayable")&&(H==null?0:MQ(H)||FK(H))&&(sO4(h.fM.C,H.eO),c.acfallexp=H.eO,E=J=!0);!J&&h.G>0&&(h.X.start(),J=!0,c.delayed="1",--h.G); H=h.lB.loader;J||!((V==null?0:CF(V))||(V==null?0:KF(V)))||B||(sO4(h.fM.C,V.eO),E=J=!0,c.cfallexp=V.eO);if(!J)return BKk(h,c);B=!1;h.C?h.l_=(0,g.aC)():B=h.C=!0;J=h.videoData;if(J.Jk){J=J.Jk.Bm();var u=Date.now()/1E3+1800;J=J6048E5&&Z_k(h,"signature");return!1}; Z_k=function(h,W){try{W={detail:"pr."+W},g.qc(h.fM)&&h.fM.j("html5_reload_by_kabuki_app")?h.lB.wu("qoe.restart",1,void 0,En(W),"7"):(h.Xi("qoe.restart",W),window.location.reload())}catch(c){}}; qSv=function(h,W){var c=h.fM.C;c.S=!1;c.W=!0;h.Xi("qoe.restart",{e:W===void 0?"fmt.noneavailable":W,detail:"hdr"});h.lB.uO(!0)}; xsl=function(h,W,c,V,H,B){this.videoData=h;this.X=W;this.reason=c;this.W=V;this.token=H;this.videoId=B}; Qo=function(h,W,c){this.uB=h;this.DC=W;this.lB=c;this.Z=this.N=this.X=this.Y=this.S=this.W=0;this.C=!1;this.T=g.DF(this.uB.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.G=new Map}; l6k=function(h,W,c){!h.uB.j("html5_tv_ignore_capable_constraint")&&g.uJ(h.uB)&&(c=c.compose(h.S9(W)));return c}; nJN=function(h){if(h.lB.D8().isInline())return dM;var W;h.j("html5_exponential_memory_for_sticky")?W=I9(h.uB.Qj,"sticky-lifetime")<.5?"auto":iy[dE()]:W=iy[dE()];return g.zV("auto",W,!1,"s")}; a6v=function(h,W){var c,V=jMl(h,(c=W.X)==null?void 0:c.videoInfos);c=h.lB.getPlaybackRate();return c>1&&V?(h=W0h(h.uB.C,W.X.videoInfos,c),new eG(0,h,!0,"o")):new eG(0,0,!1,"o")}; jMl=function(h,W){return W&&g.uJ(h.uB)?W.some(function(c){return c.video.fps>32}):!1}; ebN=function(h,W){if(h.j("html5_disable_ustreamer_constraint_for_sabr")&&AT(W.videoData))return dM;var c=h.lB.iZ();h.j("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&c.UW>0&&LB(W.videoData.As)&&(h=c.UW,W.videoData.As=new eG(0,h,!1,"u"));return W.videoData.As}; zbN=function(h,W){var c;a:if((c=W.X)&&c.videoInfos.length){for(var V=g.e(c.videoInfos),H=V.next();!H.done;H=V.next()){H=H.value;var B=void 0;if((B=H.W)==null?0:B.smooth){c=H.video.qualityOrdinal;break a}}c=c.videoInfos[0].video.qualityOrdinal}else c=0;aDD()&&!g.uJ(h.uB)&&KF(W.X.videoInfos[0])&&(c=Math.min(c,g.aG.large));V=g.DF(h.uB.experiments,"html5_chipset_soft_cap");V>0&&(c=Math.min(c,V));if(V=g.DF(h.uB.experiments,"html5_max_vertical_resolution")){H=4320;for(B=0;BV&&(H=Math.min(H,E.video.qualityOrdinal))}if(H<4320){for(E=B=0;E32){H=!0;break a}}H=!1}H&&(c=Math.min(c,V));(V=g.DF(h.uB.experiments,"html5_live_quality_cap"))&&W.videoData.isLivePlayback&&(c=Math.min(c,V));c=QMD(h,W,c);h=g.DF(h.uB.experiments,"html5_byterate_soft_cap");return new eG(0,c===4320?0:c,!1,"d",h)}; i_Q=function(h){var W,c,V,H;return g.P(function(B){switch(B.W){case 1:return h.X.X&&typeof((W=navigator.mediaCapabilities)==null?void 0:W.decodingInfo)==="function"?g.F(B,Promise.resolve(),2):B.return(Promise.resolve());case 2:c=g.e(h.X.videoInfos),V=c.next();case 3:if(V.done){B.bB(0);break}H=V.value;return g.F(B,b4U(H),4);case 4:V=c.next(),B.bB(3)}})}; Aa5=function(h,W){if(!W.videoData.W||h.j("html5_disable_performance_downgrade"))return!1;Date.now()-h.S>6E4&&(h.W=0);h.W++;h.S=Date.now();if(h.W!==4)return!1;KFN(h,W.videoData.W);return!0}; Cp4=function(h,W,c,V){if(!W||!c||!W.videoData.W)return!1;var H=g.DF(h.uB.experiments,"html5_df_downgrade_thresh"),B=h.j("html5_log_media_perf_info");if(!((0,g.aC)()-h.Y<5E3?0:B||H>0))return!1;var E=((0,g.aC)()-h.Y)/1E3;h.Y=(0,g.aC)();c=c.getVideoPlaybackQuality();if(!c)return!1;var J=c.droppedVideoFrames-h.N,u=c.totalVideoFrames-h.Z;h.N=c.droppedVideoFrames;h.Z=c.totalVideoFrames;var d=c.displayCompositedVideoFrames===0?0:c.displayCompositedVideoFrames||-1;B&&h.uB.gI()&&h.lB.GV("ddf",{dr:c.droppedVideoFrames, de:c.totalVideoFrames,comp:d});if(V)return h.X=0,!1;if((u-J)/E>h.T||!H||g.uJ(h.uB))return!1;h.X=(u>60?J/u:0)>H?h.X+1:0;if(h.X!==3)return!1;KFN(h,W.videoData.W);h.lB.GV("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},Us7()));return!0}; KFN=function(h,W){var c=W.eO,V=W.video.fps,H=W.video.qualityOrdinal-1,B=h.G;W=""+c+(V>49?"p60":V>32?"p48":"");c=wW(c,V,B);H>0&&(c=Math.min(c,H));if(!L_.has(W)&&rE().includes(W)){var E=c;c=ZH();+c[W]>0&&(E=Math.min(+c[W],E));c[W]!==E&&(c[W]=E,g.iL("yt-player-performance-cap",c,2592E3))}else if(L_.has(W)||B==null){a:{E=E===void 0?!0:E;V=rE().slice();if(E){if(V.includes(W))break a;V.push(W)}else{if(!V.includes(W))break a;V.splice(V.indexOf(W),1)}g.iL("yt-player-performance-cap-active-set",V,2592E3)}Ds.set(W, c)}else L_.add(W),B==null||B.set(W,c);h.lB.G3()}; M6D=function(h,W){if(!W.X.X)return h.C?new eG(0,360,!1,"b"):dM;for(var c=!1,V=!1,H=g.e(W.X.videoInfos),B=H.next();!B.done;B=H.next())CF(B.value)?c=!0:V=!0;c=c&&V;V=0;H=g.DF(h.uB.experiments,"html5_performance_cap_floor");H=h.uB.W?240:H;W=g.e(W.X.videoInfos);for(B=W.next();!B.done;B=W.next()){var E=B.value;if(!c||!CF(E))if(B=wW(E.eO,E.video.fps,h.G),E=E.video.qualityOrdinal,Math.max(B,H)>=E){V=E;break}}return new eG(0,V,!1,"b")}; FFL=function(h,W){var c=h.lB.D8();return c.isInline()&&!W.XO?new eG(0,480,!1,"v"):AT(W)?dM:c.isBackground()&&xA()/1E3>60&&!g.uJ(h.uB)?new eG(0,360,!1,"v"):dM}; yap=function(h,W,c){if(h.uB.experiments.xN("html5_disable_client_autonav_cap_for_onesie")&&W.fetchType==="onesie"||g.uJ(h.uB)&&(dE(-1)>=1080||W.osid))return dM;var V=g.DF(h.uB.experiments,"html5_autonav_quality_cap"),H=g.DF(h.uB.experiments,"html5_autonav_cap_idle_secs");return V&&W.isAutonav&&xA()/1E3>H?(c&&(V=QMD(h,c,V)),new eG(0,V,!1,"e")):dM}; QMD=function(h,W,c){if(h.j("html5_optimality_defaults_chooses_next_higher")&&c)for(h=W.X.videoInfos,W=1;W=0||(h.provider.lB.getVisibilityState()===3?h.C=!0:(h.X=g.Bu(h.provider),h.delay.start()))}; b_k=function(h){if(!(h.W<0)){var W=g.Bu(h.provider),c=W-h.Y;h.Y=W;h.playerState.state===8?h.playTimeSecs+=c:h.playerState.isBuffering()&&!g.Y(h.playerState,16)&&(h.rebufferTimeSecs+=c)}}; TKv=function(h){var W;switch((W=h.uB.playerCanaryStage)==null?void 0:W.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"}}; NKT=function(h){this.provider=h;this.S=!1;this.X=0;this.Y=-1;this.OU=NaN;this.G=0;this.segments=[];this.N=this.C=0;this.previouslyEnded=!1;this.T=this.provider.lB.getVolume();this.Z=this.provider.lB.isMuted()?1:0;this.W=K_(this.provider)}; Aa=function(h){h.W.startTime=h.G;h.W.endTime=h.X;var W=!1;h.segments.length&&g.x6(h.segments).isEmpty()?(h.segments[h.segments.length-1].previouslyEnded&&(h.W.previouslyEnded=!0),h.segments[h.segments.length-1]=h.W,W=!0):h.segments.length&&h.W.isEmpty()||(h.segments.push(h.W),W=!0);W?h.W.endTime===0&&(h.previouslyEnded=!1):h.W.previouslyEnded&&(h.previouslyEnded=!0);h.C+=h.X-h.G;h.W=K_(h.provider);h.W.previouslyEnded=h.previouslyEnded;h.previouslyEnded=!1;h.G=h.X}; t6k=function(h){Xup(h);h.N=g.Jc(function(){h.update()},100); h.OU=g.Bu(h.provider);h.W=K_(h.provider)}; Xup=function(h){g.dJ(h.N);h.N=NaN}; vJk=function(h,W,c){c-=h.OU;return W===h.X&&c>.5}; msd=function(h,W,c,V){this.uB=W;this.U5=c;this.segments=[];this.experimentIds=[];this.Jk=this.Sx=this.isFinal=this.delayThresholdMet=this.hI=this.RR=this.autoplay=this.autonav=!1;this.Zn="yt";this.N=[];this.S=this.T=null;this.sendVisitorIdHeader=this.rE=!1;this.Z=this.pageId="";this.C=c==="watchtime";this.G=c==="playback";this.DH=c==="atr";this.Uy=c==="engage";this.sendVisitorIdHeader=!1;this.uri=this.DH?"/api/stats/"+c:"//"+W.Yk+"/api/stats/"+c;V&&(this.Sx=V.fs,V.rtn&&(this.S=V.rtn),this.C?(this.playerState= V.state,V.rti>0&&(this.T=V.rti)):(this.H9=V.mos,this.lJ=V.volume,V.at&&(this.adType=V.at)),V.autonav&&(this.autonav=V.autonav),V.inview!=null&&(this.bX=V.inview),V.size&&(this.fR=V.size),V.playerwidth&&(this.Qj=V.playerwidth),V.playerheight&&(this.d3=V.playerheight));this.hq=g.qx(W.X);this.Z=q8(W.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.Z==="all"||this.Z==="once")this.qU=g.qx(W.hI);this.Ns=W.Zn;this.experimentIds=D7L(W.experiments);this.yg=W.Tx;this.Zn=W.XI;this.region=W.region; this.userAge=W.userAge;this.Ef=W.Tj;this.iX=xA();this.sendVisitorIdHeader=W.sendVisitorIdHeader;this.zV=W.j("vss_pings_using_networkless")||W.j("kevlar_woffle");this.nj=W.j("vss_final_ping_send_and_write");this.mW=W.j("vss_use_send_and_write");this.pageId=W.pageId;this.mF=W.j("vss_playback_use_send_and_write");W.livingRoomAppMode&&(this.livingRoomAppMode=W.livingRoomAppMode);this.Lj=W.Y&&W.j("embeds_append_synth_ch_headers");g.DE(W)&&(this.CM=W.DH);g.$k(g.HF(W))&&this.N.push(1);this.accessToken=g.BN(h); h.X6[this.U5]?this.Y=h.X6[this.U5]:h.X6.playback&&(this.Y=h.X6.playback);this.adFormat=h.adFormat;this.adQueryId=h.adQueryId;this.autoplay=gCN(h);this.G&&(this.RR=h.m7&&cN(h)==="adunit"?!0:!1);this.autonav=h.isAutonav||this.autonav;this.contentVideoId=sV(h);this.clientPlaybackNonce=h.clientPlaybackNonce;this.hI=h.B0;h.N&&(this.Wk=h.N,this.lW=h.TL);h.mdxEnvironment&&(this.mdxEnvironment=h.mdxEnvironment);this.X=h.q$;this.uW=h.uW;h.W&&(this.Tx=h.W.itag,h.Y&&h.Y.itag!==this.Tx&&(this.Ak=h.Y.itag));h.X&& Mp(h.X)&&(this.offlineDownloadUserChoice="1");this.eventLabel=cN(h);this.Jk=h.mF?!1:h.lJ;this.q$=h.hQ;if(W=mS(h))this.tE=W;this.BV=h.rQ;this.partnerId=h.partnerId;this.eventId=h.eventId;this.playlistId=h.uq||h.playlistId;this.TB=h.TB;this.wp=h.wp;this.cR=h.cR;this.b$=h.b$;this.subscribed=h.subscribed;this.videoId=h.videoId;this.videoMetadata=h.videoMetadata;this.visitorData=h.visitorData;this.osid=h.osid;this.RZ=h.RZ;this.referrer=h.referrer;this.Yk=h.xD||h.Yk;this.Mn=h.xm;this.Kq=h.Kq;this.userGenderAge= h.userGenderAge;this.xg=h.xg;this.embedsRct=h.embedsRct;this.embedsRctn=h.embedsRctn;g.DE(this.uB)&&h.mutedAutoplay&&(h.mutedAutoplayDurationMode===2&&h.limitedPlaybackDurationInSeconds===0&&h.endSeconds===0?this.N.push(7):this.N.push(2));h.isEmbedsShortsMode(new g.Yu(this.Qj,this.d3),!!this.playlistId)&&this.N.push(3);g.xM(h)&&this.N.push(4);this.Rz=h.wG;h.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=h.compositeLiveIngestionOffsetToken)}; oJD=function(h,W){var c=h.sendVisitorIdHeader?h.visitorData:void 0;return g.Ky(h.uB,h.accessToken).then(function(V){return OC4(h.uri,h.uB,h.pageId,c,V,W,h.Lj)})}; YSQ=function(h,W){return function(){h.uB.j("html5_simplify_pings")?(h.X=h.Nn,h.U8=W(),h.iX=0,h.send()):oJD(h).then(function(c){var V=pup(h);V.cmt=V.len;V.lact="0";var H=W().toFixed(3);V.rt=Number(H).toString();V=g.r0(h.uri,V);h.uB.j("vss_through_gel_double")&&I6d(V);h.zV?(c==null&&(c={}),h.mW?tL().sendAndWrite(V,c):tL().sendThenWrite(V,c)):c?g.nb(V,c):g.Cj(V)})}}; pup=function(h){var W={ns:h.Zn,el:h.eventLabel,cpn:h.clientPlaybackNonce,ver:2,cmt:h.W(h.X),fmt:h.Tx,fs:h.Sx?"1":"0",rt:h.W(h.U8),adformat:h.adFormat,content_v:h.contentVideoId,euri:h.Ns,lact:h.iX,live:h.tE,cl:(786081487).toString(),mos:h.H9,state:h.playerState,volume:h.lJ};h.subscribed&&(W.subscribed="1");Object.assign(W,h.hq);h.Z==="all"?Object.assign(W,h.qU):h.Z==="once"&&h.G&&Object.assign(W,h.qU);h.autoplay&&(W.autoplay="1");h.RR&&(W.sautoplay="1");h.hI&&(W.dni="1");!h.C&&h.CM&&(W.epm=O_N[h.CM]); h.isFinal&&(W["final"]="1");h.Jk&&(W.splay="1");h.uW&&(W.delay=h.uW);h.yg&&(W.hl=h.yg);h.region&&(W.cr=h.region);h.userGenderAge&&(W.uga=h.userGenderAge);h.userAge!==void 0&&h.Ef&&(W.uga=h.Ef+h.userAge);h.Nn!==void 0&&(W.len=h.W(h.Nn));!h.C&&h.experimentIds.length>0&&(W.fexp=h.experimentIds.toString());h.S!==null&&(W.rtn=h.W(h.S));h.Yk&&(W.feature=h.Yk);h.wp&&(W.ctrl=h.wp);h.cR&&(W.ytr=h.cR);h.Ak&&(W.afmt=h.Ak);h.offlineDownloadUserChoice&&(W.ODUC=h.offlineDownloadUserChoice);h.XI&&(W.lio=h.W(h.XI)); h.C?(W.idpj=h.q$,W.ldpj=h.BV,h.delayThresholdMet&&(W.dtm="1"),h.T!=null&&(W.rti=h.W(h.T)),h.xg&&(W.ald=h.xg),h.compositeLiveIngestionOffsetToken&&(W.clio=h.compositeLiveIngestionOffsetToken)):h.adType!==void 0&&(W.at=h.adType);h.fR&&(h.G||h.C)&&(W.size=h.fR);h.G&&h.N.length&&(W.pbstyle=h.N.join(","));h.bX!=null&&(h.G||h.C)&&(W.inview=h.W(h.bX));h.C&&(W.volume=US(h,g.xw(h.segments,function(V){return V.volume})),W.st=US(h,g.xw(h.segments,function(V){return V.startTime})),W.et=US(h,g.xw(h.segments,function(V){return V.endTime})), tM(h.segments,function(V){return V.playbackRate!==1})&&(W.rate=US(h,g.xw(h.segments,function(V){return V.playbackRate}))),tM(h.segments,function(V){return V.X!=="-"})&&(W.als=g.xw(h.segments,function(V){return V.X}).join(",")),tM(h.segments,function(V){return V.previouslyEnded})&&(W.pe=g.xw(h.segments,function(V){return""+ +V.previouslyEnded}).join(","))); W.muted=US(h,g.xw(h.segments,function(V){return V.muted?1:0})); tM(h.segments,function(V){return V.visibilityState!==0})&&(W.vis=US(h,g.xw(h.segments,function(V){return V.visibilityState}))); tM(h.segments,function(V){return V.connectionType!==0})&&(W.conn=US(h,g.xw(h.segments,function(V){return V.connectionType}))); tM(h.segments,function(V){return V.W!==0})&&(W.blo=US(h,g.xw(h.segments,function(V){return V.W}))); tM(h.segments,function(V){return!!V.G})&&(W.blo=g.xw(h.segments,function(V){return V.G}).join(",")); tM(h.segments,function(V){return!!V.compositeLiveStatusToken})&&(W.cbs=g.xw(h.segments,function(V){return V.compositeLiveStatusToken}).join(",")); tM(h.segments,function(V){return V.Y!=="-"})&&(W.cc=g.xw(h.segments,function(V){return V.Y}).join(",")); tM(h.segments,function(V){return V.clipId!=="-"})&&(W.clipid=g.xw(h.segments,function(V){return V.clipId}).join(",")); if(tM(h.segments,function(V){return!!V.audioId})){var c="au"; h.G&&(c="au_d");W[c]=g.xw(h.segments,function(V){return V.audioId}).join(",")}cf()&&h.Wk&&(W.ctt=h.Wk,W.cttype=h.lW,W.mdx_environment=h.mdxEnvironment); h.Uy&&(W.etype=h.Pk!==void 0?h.Pk:0);h.Mn&&(W.uoo=h.Mn);h.livingRoomAppMode&&h.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(W.clram=SSl[h.livingRoomAppMode]||h.livingRoomAppMode);h.Y?gJh(h,W):(W.docid=h.videoId,W.referrer=h.referrer,W.ei=h.eventId,W.of=h.RZ,W.osid=h.osid,W.vm=h.videoMetadata,h.adQueryId&&(W.aqi=h.adQueryId),h.autonav&&(W.autonav="1"),h.playlistId&&(W.list=h.playlistId),h.b$&&(W.ssrt="1"),h.Kq&&(W.upt=h.Kq));h.G&&(h.embedsRct&&(W.rct=h.embedsRct),h.embedsRctn&&(W.rctn= h.embedsRctn),h.compositeLiveIngestionOffsetToken&&(W.clio=h.compositeLiveIngestionOffsetToken));h.Rz&&(W.host_cpn=h.Rz);return W}; gJh=function(h,W){if(W&&h.Y){var c=new Set(["q","feature","mos"]),V=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),H=new Set(["aqi","autonav","list","ssrt","upt"]);h.Y.ns==="3pp"&&(W.ns="3pp");for(var B=g.e(Object.keys(h.Y)),E=B.next();!E.done;E=B.next())E=E.value,V.has(E)||c.has(E)||H.has(E)&&!h.Y[E]||(W[E]=h.Y[E])}}; US=function(h,W){return g.xw(W,h.W).join(",")}; I6d=function(h){h.indexOf("watchtime")!==-1&&g.V5("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:h}})}; Dsp=function(h,W){h.attestationResponse&&oJD(h).then(function(c){c=c||{};c.method="POST";c.postParams={atr:h.attestationResponse};h.zV?h.mW?tL().sendAndWrite(W,c):tL().sendThenWrite(W,c):g.nb(W,c)})}; C_=function(h){g.N.call(this);this.provider=h;this.N="paused";this.C=NaN;this.S=[10,10,10,40];this.T=this.Z=0;this.Wk=this.DH=this.Pk=this.XI=this.G=!1;this.W=this.Y=NaN;this.logger=new g.xP("vss");this.X=new NKT(h)}; c_d=function(h){if(!h.G){h.provider.videoData.KA===16623&&g.Lx(Error("Playback for EmbedPage"));var W=Ms(h,"playback");h.S=wuT(h);t6k(h.X);W.S=F2(h);h.W>0&&(W.X-=h.W);W.send();if(h.provider.videoData.zB){W=h.provider.uB;var c=h.provider.videoData,V={html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,ei:c.eventId,ptk:c.zB,oid:c.I7,ptchn:c.JR,pltype:c.xE,content_v:sV(c)};c.Xn&&Object.assign(V,{m:c.Xn});W=g.r0(W.Cw+"ptracking",V);kSp(h,W)}h.provider.videoData.uW||(hFp(h),WGN(h));h.G=!0;h=h.X;h.X= h.G2();h.OU=g.Bu(h.provider);!(h.G===0&&h.X<5)&&h.X-h.G>2&&(h.G=h.X);h.S=!0}}; wuT=function(h){var W=h.provider.videoData.hQ,c=h.provider.videoData.rQ,V=[10+W,10,10,40+c-W,40],H,B=(H=h.provider.videoData.getPlayerResponse())==null?void 0:H.playbackTracking,E=B==null?void 0:B.videostatsScheduledFlushWalltimeSeconds;H=B==null?void 0:B.videostatsDefaultFlushIntervalSeconds;if(!(E&&E.length>0&&H))return h.logger.info("Missing valid scheduled pings config "+E+" "+H),V;W=[E[0]+W].concat(g.rN(E.slice(1).map(function(J,u){return J-E[u]})),[H+c-W, H]);return W.some(function(J){return J<0})?(h.logger.X(347111855,"Neg vss scheduled pings "+E+" "+H),V):W}; F2=function(h,W){W=W===void 0?NaN:W;var c=g.Bu(h.provider);W=isNaN(W)?c:W;W=Math.ceil(W);var V=h.S[h.Z];h.Z+11E3;!(B.length>1)&&B[0].isEmpty()||J||(E.S=F2(h,H));E.send();h.T++}},(H-c)*1E3); return h.Y=H}; yo=function(h){g.uW(h.C);h.C=NaN}; VZN=function(h){h.X.update();h=h.X;h.segments.length&&h.X===h.G||Aa(h);var W=h.segments;h.segments=[];return W}; Ms=function(h,W){var c=sNd(h.provider);Object.assign(c,{state:h.N});W=new msd(h.provider.videoData,h.provider.uB,W,c);W.X=h.provider.lB.G2();c=h.provider.videoData.clientPlaybackNonce;W.X=h.provider.lB.HA(c);h.provider.videoData.isLivePlayback||(W.Nn=h.provider.lB.getDuration(c));h.provider.videoData.X&&(c=h.provider.videoData.X.wW(W.X))&&(W.XI=c-W.X,h.provider.uB.j("html5_disable_live_dvr_shrink_for_cdm_vss")&&KC(h.provider.videoData)&&(W.X+=h.provider.lB.FA(),W.XI-=h.provider.lB.FA()));W.U8=g.Bu(h.provider); W.segments=[K_(h.provider)];return W}; $HU=function(h,W){var c=Ms(h,"watchtime");H1k(h)&&(c.delayThresholdMet=!0,h.Pk=!0);if(h.W>0){for(var V=g.e(W),H=V.next();!H.done;H=V.next())H=H.value,H.startTime-=h.W,H.endTime-=h.W;c.X-=h.W}else c.X=h.X.X;c.segments=W;return c}; Pu=function(h,W){var c=B$T(h,!isNaN(h.Y));W&&(h.Y=NaN);return c}; B$T=function(h,W){var c=$HU(h,VZN(h));!isNaN(h.Y)&&W&&(c.T=h.Y);return c}; H1k=function(h){var W;if(W=h.provider.videoData.isLoaded()&&h.provider.videoData.uW&&h.G&&!h.Pk)W=h.X,W=W.C+W.G2()-W.G>=h.provider.videoData.uW;return!!W}; hFp=function(h){h.provider.videoData.youtubeRemarketingUrl&&!h.DH&&(kSp(h,h.provider.videoData.youtubeRemarketingUrl),h.DH=!0)}; WGN=function(h){h.provider.videoData.googleRemarketingUrl&&!h.Wk&&(kSp(h,h.provider.videoData.googleRemarketingUrl),h.Wk=!0)}; EDp=function(h){if(!h.gE()&&h.G){h.N="paused";var W=Pu(h);W.isFinal=!0;W.send();h.dispose()}}; RF4=function(h,W){if(!h.gE())if(g.Y(W.state,2)||g.Y(W.state,512)){if(h.N="paused",g.EA(W,2)||g.EA(W,512))g.EA(W,2)&&(h.X.previouslyEnded=!0),h.G&&(yo(h),Pu(h).send(),h.Y=NaN)}else if(g.Y(W.state,8)){h.N="playing";var c=h.G&&isNaN(h.C)?F2(h):NaN;if(!isNaN(c)&&(B8(W,64)<0||B8(W,512)<0)){var V=B$T(h,!1);V.S=c;V.send()}g.EA(W,16)&&W.state.seekSource===58&&(h.X.previouslyEnded=!0)}else h.N="paused"}; J_5=function(h,W,c){if(!h.XI){c||(c=Ms(h,"atr"));c.attestationResponse=W;try{c.send()}catch(V){if(V.message!=="Unknown Error")throw V;}h.XI=!0}}; kSp=function(h,W){var c=h.provider.uB;g.Ky(h.provider.uB,g.BN(h.provider.videoData)).then(function(V){var H=h.provider.uB.pageId,B=h.provider.uB.sendVisitorIdHeader?h.provider.videoData.visitorData:void 0,E=h.provider.uB.j("vss_pings_using_networkless")||h.provider.uB.j("kevlar_woffle"),J=h.provider.uB.j("allow_skip_networkless");V=OC4(W,c,H,B,V);SP4(W,V,{token:h.provider.videoData.N,YE:h.provider.videoData.TL,mdxEnvironment:h.provider.videoData.mdxEnvironment},c,void 0,E&&!J,!1,!0)})}; ut5=function(){this.endTime=this.startTime=-1;this.Y="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.W=0;this.compositeLiveStatusToken=this.G=void 0;this.volume=this.connectionType=0;this.muted=!1;this.X=this.clipId="-";this.previouslyEnded=!1}; f_=function(h,W,c){this.videoData=h;this.uB=W;this.lB=c;this.X=void 0}; g.Bu=function(h){return dHp(h)()}; dHp=function(h){if(!h.X){var W=g.uK(function(V){var H=(0,g.aC)();V&&H<=631152E6&&(h.lB.GV("ytnerror",{issue:28799967,value:""+H}),H=(new Date).getTime()+2);return H},h.uB.j("html5_validate_yt_now")),c=W(); h.X=function(){return Math.round(W()-c)/1E3}; h.lB.h4()}return h.X}; sNd=function(h){var W=h.lB.DO()||{};W.fs=h.lB.EU();W.volume=h.lB.getVolume();W.muted=h.lB.isMuted()?1:0;W.mos=W.muted;W.clipid=h.lB.Yl();var c;W.playerheight=((c=h.lB.getPlayerSize())==null?void 0:c.height)||0;var V;W.playerwidth=((V=h.lB.getPlayerSize())==null?void 0:V.width)||0;h=h.videoData;c={};h.W&&(c.fmt=h.W.itag,h.Y&&(h.U5?h.Y.itag!==h.W.itag:h.Y.itag!=h.W.itag)&&(c.afmt=h.Y.itag));c.ei=h.eventId;c.list=h.playlistId;c.cpn=h.clientPlaybackNonce;h.videoId&&(c.v=h.videoId);h.pg&&(c.infringe=1); (h.mF?0:h.lJ)&&(c.splay=1);(V=mS(h))&&(c.live=V);h.m7&&(c.sautoplay=1);h.eL&&(c.autoplay=1);h.TB&&(c.sdetail=h.TB);h.partnerId&&(c.partnerid=h.partnerId);h.osid&&(c.osid=h.osid);h.SC&&(c.cc=g.zJQ(h.SC));return Object.assign(W,c)}; HQv=function(h){var W=FQQ();if(W)return GbN[W]||GbN.other;if(g.uJ(h.uB)){h=navigator.userAgent;if(/[Ww]ireless[)]/.test(h))return 3;if(/[Ww]ired[)]/.test(h))return 30}return 0}; K_=function(h){var W=new ut5,c;W.Y=((c=sNd(h).cc)==null?void 0:c.toString())||"-";W.playbackRate=h.lB.getPlaybackRate();c=h.lB.getVisibilityState();c!==0&&(W.visibilityState=c);h.uB.Mn&&(W.W=1);W.G=h.videoData.QK;W.compositeLiveStatusToken=h.videoData.compositeLiveStatusToken;c=h.lB.getAudioTrack();c.iW&&c.iW.id&&c.iW.id!=="und"&&(W.audioId=c.iW.id);W.connectionType=HQv(h);W.volume=h.lB.getVolume();W.muted=h.lB.isMuted();W.clipId=h.lB.Yl()||"-";W.X=h.videoData.OL||"-";return W}; g.bp=function(h,W){g.N.call(this);var c=this;this.provider=h;this.G=new Map;this.Zh=new g.l1;this.uX={QUk:function(){return c.qoe}, Z5z:function(){return c.X}, OQz:function(){return c.W}}; this.provider.videoData.oT()&&!this.provider.videoData.wi&&(this.X=new C_(this.provider),this.X.W=0,g.X(this,this.X),this.qoe=new g.sS(this.provider,W),g.X(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Vi=this.provider.videoData.clientPlaybackNonce)&&this.G.set(this.Vi,this.X));if(h.uB.playerCanaryState==="canary"||h.uB.playerCanaryState==="holdback")this.W=new ip(this.provider),g.X(this,this.W)}; Z1p=function(h){h.W&&f6l(h.W);h.qoe&&qVd(h.qoe)}; r_p=function(h){if(h.qoe){h=h.qoe;for(var W=h.provider.videoData,c=h.provider.uB,V=g.e(c.St),H=V.next();!H.done;H=V.next())RM(h,H.value);if(h.provider.j("html5_enable_qoe_cat_list"))for(V=g.e(W.GP),H=V.next();!H.done;H=V.next())RM(h,H.value);else W.St&&RM(h,h.provider.videoData.St);W.Hi()&&(V=W.X,yk(W)&&RM(h,"manifestless"),V&&ou(V)&&RM(h,"live-segment-"+ou(V).toFixed(1)));AT(W)?RM(h,"sabr"):h.Fv(bU(W));if(EV(W)||W.Gw())W.Gw()&&RM(h,"ssa"),RM(h,"lifa");KC(W)&&RM(h,"cdm");W.gatewayExperimentGroup&& (V=W.gatewayExperimentGroup,V==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?V="spkadtrt":V==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(V="spkadctrl"),RM(h,V));c.XI!=="yt"&&h.X.set("len",[W.lengthSeconds.toFixed(2)]);W.cotn&&!J7(W)&&h.zt(!0);c.gI()&&(W=Vbl())&&h.GV("cblt",{m:W});if(c.j("html5_log_screen_diagonal")){c=h.GV;var B;W=((B=window.H5vccScreen)==null?0:B.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;c.call(h,"cbltdiag",{v:W})}}}; qmp=function(h,W){h.X&&(h=h.X,W===58?h.X.update():h.G&&(yo(h),Pu(h).send(),h.Y=NaN))}; xH4=function(h,W){if(g.EA(W,1024)||g.EA(W,512)||g.EA(W,4)){if(h.W){var c=h.W;c.W>=0||(c.X=-1,c.delay.stop())}h.qoe&&(c=h.qoe,c.S||(c.G=-1))}if(h.provider.videoData.enableServerStitchedDai&&h.Vi){var V;(V=h.G.get(h.Vi))==null||RF4(V,W)}else h.X&&RF4(h.X,W);if(h.qoe){V=h.qoe;c=W.state;var H=g.Bu(V.provider),B=V.getPlayerState(c),E=c.seekSource||void 0;if(B!==V.Zh){V.Pk||H= 10&&V.playTimeSecs<=180&&(V.X.set("qoealert",["1"]),V.uW=!0)),B!=="B"||V.Zh!=="PL"&&V.Zh!=="PB"||(V.isBuffering=!0),V.W=H);V.Zh==="PL"&&(B==="B"||B==="S")||V.provider.uB.gI()?ES(V,H):(V.lW||B!=="PL"||(V.lW=!0,Be7(V,H,V.provider.lB.Lo())),soQ(V,H));B==="PL"&&g.pO(V.U8);var J=[B];B==="S"&&E&&J.push("ss."+E);g.$J(V,H,"vps",J);V.Zh=B;V.XI=H;V.W=H;V.Y=!0}B=c.FK;g.Y(c,128)&&B&&(B.v4=B.v4||"",u1N(V,H,B.errorCode,B.mz,B.v4));(g.Y(c,2)||g.Y(c,128))&&V.reportStats(H);c.isPlaying()&&!V.S&&(V.G>=0&&V.X.set("user_intent", [V.G.toString()]),V.S=!0);RZl(V)}h.W&&(h=h.W,b_k(h),h.playerState=W.state,h.W>=0&&g.EA(W,16)&&h.seekCount++,W.state.isError()&&h.send())}; lMD=function(h){h.W&&h.W.send();if(h.qoe){var W=h.qoe;if(W.Y){W.Zh==="PL"&&(W.Zh="N");var c=g.Bu(W.provider);g.$J(W,c,"vps",[W.Zh]);W.S||(W.G>=0&&W.X.set("user_intent",[W.G.toString()]),W.S=!0);W.provider.uB.gI()&&W.GV("finalized",{});W.zV=!0;W.reportStats(c)}}if(h.provider.videoData.enableServerStitchedDai)for(W=g.e(h.G.values()),c=W.next();!c.done;c=W.next())EDp(c.value);else h.X&&EDp(h.X);h.dispose()}; nDp=function(h,W){h.X&&J_5(h.X,W)}; jNp=function(h){if(!h.X)return null;var W=Ms(h.X,"atr");return function(c){h.X&&J_5(h.X,c,W)}}; aMD=function(h,W,c,V){c.adFormat=c.Ns;var H=W.lB;W=new C_(new f_(c,W.uB,{getDuration:function(){return c.lengthSeconds}, getCurrentTime:function(){return H.getCurrentTime()}, G2:function(){return H.G2()}, HA:function(){return H.HA()}, Lo:function(){return H.Lo()}, getPlayerSize:function(){return H.getPlayerSize()}, getAudioTrack:function(){return c.getAudioTrack()}, getPlaybackRate:function(){return H.getPlaybackRate()}, j9:function(){return H.j9()}, getVisibilityState:function(){return H.getVisibilityState()}, Ot:function(){return H.Ot()}, DO:function(){return H.DO()}, getVolume:function(){return H.getVolume()}, isMuted:function(){return H.isMuted()}, EU:function(){return H.EU()}, Yl:function(){return H.Yl()}, getProximaLatencyPreference:function(){return H.getProximaLatencyPreference()}, h4:function(){H.h4()}, GV:function(B,E){H.GV(B,E)}, zT:function(){return H.zT()}, FA:function(){return H.FA()}})); W.W=V;g.X(h,W);return W}; eFD=function(){this.Rw=0;this.G=this.S3=this.k0=this.W=NaN;this.X={};this.bandwidthEstimate=NaN}; zFN=function(){this.X=g.vH;this.array=[]}; LGh=function(h,W,c){var V=[];for(W=QNk(h,W);Wc)break}return V}; i1N=function(h,W){var c=[];h=g.e(h.array);for(var V=h.next();!V.done&&!(V=V.value,V.contains(W)&&c.push(V),V.start>W);V=h.next());return c}; KGU=function(h){return h.array.slice(QNk(h,0x7ffffffffffff),h.array.length)}; QNk=function(h,W){h=of(h.array,function(c){return W-c.start||1}); return h<0?-(h+1):h}; A_N=function(h,W){var c=NaN;h=g.e(h.array);for(var V=h.next();!V.done;V=h.next())if(V=V.value,V.contains(W)&&(isNaN(c)||V.endW&&(isNaN(c)||V.starth.mediaTime+h.C&&W1)h.Y=!0;if((H===void 0?0:H)||isNaN(h.W))h.W=W;if(h.X)W!==h.mediaTime&&(h.X=!1);else if(W>0&&h.mediaTime===W){H=1500;if(h.uB.j("html5_buffer_underrun_transition_fix")){H=g.DF(h.uB.experiments,"html5_min_playback_advance_for_steady_state_secs");var B=g.DF(h.uB.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");H=H>0&&B>0&&Math.abs(W-h.W)(V||!h.Y?H:400)}h.mediaTime=W;h.G=c;return!1}; N$v=function(h,W){this.videoData=h;this.X=W}; XR7=function(h,W,c){return W.o$(c).then(function(){return iW(new N$v(W,W.G))},function(V){V instanceof Error&&g.Lx(V); var H=GW('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),B=rA('audio/mp4; codecs="mp4a.40.2"'),E=H||B,J=W.isLivePlayback&&!g.nl(h.C,!0);V="fmt.noneavailable";J?V="html5.unsupportedlive":E||(V="html5.missingapi");E=J||!E?2:1;H={buildRej:"1",a:W.hs(),d:!!W.Zn,drm:W.bC(),f18:W.H9.indexOf("itag=18")>=0,c18:H};W.X&&(W.bC()?(H.f142=!!W.X.X["142"],H.f149=!!W.X.X["149"],H.f279=!!W.X.X["279"]):(H.f133=!!W.X.X["133"],H.f140=!!W.X.X["140"],H.f242=!!W.X.X["242"]),H.cAAC=B,H.cAVC=rA('video/mp4; codecs="avc1.42001E"'), H.cVP9=rA('video/webm; codecs="vp9"'));W.C&&(H.drmsys=W.C.keySystem,B=0,W.C.X&&(B=Object.keys(W.C.X).length),H.drmst=B);return new g.RG(V,H,E)})}; X2=function(h){this.data=window.Float32Array?new Float32Array(h):Array(h);this.W=this.X=h-1}; tZ4=function(h){return h.data[h.X]||0}; vDh=function(h){this.C=h;this.G=this.W=0;this.Y=new X2(50)}; vu=function(h,W,c){g.h1.call(this);this.videoData=h;this.experiments=W;this.C=c;this.W=[];this.KT=0;this.G=!0;this.Y=!1;this.N=0;c=new mHh;h.latencyClass==="ULTRALOW"&&(c.N=!1);h.Ef?c.G=3:g.OP(h)&&(c.G=2);h.latencyClass==="NORMAL"&&(c.C=!0);c.XI=AT(h)&&W.xN("html5_refactor_decouple_liveness");g.DF(W,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.DF(W,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||h.latencyClass!=="LOW"&&h.latencyClass!=="ULTRALOW"||(c.C=!0);var V= g.DF(W,"html5_liveness_drift_proxima_override");if(bU(h)!==0&&V){c.X=V;var H;((H=h.X)==null?0:ZId(H))&&c.X--}AT(h)&&W.xN("html5_sabr_parse_live_metadata_playback_boundaries")&&(c.Wk=!0);if(g.bW("trident/")||g.bW("edge/"))H=g.DF(W,"html5_platform_minimum_readahead_seconds")||3,c.Y=Math.max(c.Y,H);g.DF(W,"html5_minimum_readahead_seconds")&&(c.Y=g.DF(W,"html5_minimum_readahead_seconds"));g.DF(W,"html5_maximum_readahead_seconds")&&(c.T=g.DF(W,"html5_maximum_readahead_seconds"));W.xN("html5_force_adaptive_readahead")&& (c.N=!0);if(H=g.DF(W,"html5_liveness_drift_chunk_override"))c.X=H;PT(h)&&(c.X=(c.X+1)/5,h.latencyClass==="LOW"&&(c.X*=2));!AT(h)||h.latencyClass!=="ULTRALOW"&&h.latencyClass!=="LOW"||(c.Z=g.DF(W,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,c.S=g.DF(W,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=c;this.S=this.policy.G!==1;this.X=ta(this,oDQ(this,isNaN(h.liveChunkReadahead)?3:h.liveChunkReadahead,h))}; pRU=function(h,W){if(W)return W=h.videoData,W=oDQ(h,isNaN(W.liveChunkReadahead)?3:W.liveChunkReadahead,W),ta(h,W);if(h.W.length){if(Math.min.apply(null,h.W)>1)return ta(h,h.X-1);if(h.policy.N)return ta(h,h.X+1)}return h.X}; IM5=function(h,W){if(!h.W.length)return!1;var c=h.X;h.X=pRU(h,W===void 0?!1:W);if(W=c!==h.X)h.W=[],h.KT=0;return W}; mF=function(h,W){return W>=h.Nv()-Ymk(h)}; O1N=function(h,W,c){W=mF(h,W);c||W?W&&(h.G=!0):h.G=!1;h.S=h.policy.G===2||h.policy.G===3&&h.G}; Sm4=function(h,W){W=mF(h,W);h.Y!==W&&h.publish("livestatusshift",W);h.Y=W}; Ymk=function(h){var W=h.policy.X;h.Y||(W=Math.max(W-1,0));return W*oM(h)}; oDQ=function(h,W,c){c.Ef&&W--;PT(c)&&(W=1);if(bU(c)!==0&&(h=g.DF(h.experiments,"html5_live_chunk_readahead_proxima_override"))){W=h;var V;((V=c.X)==null?0:ZId(V))&&W++}return W}; oM=function(h){return h.videoData.X?ou(h.videoData.X)||5:5}; ta=function(h,W){W=Math.max(Math.max(1,Math.ceil(h.policy.Y/oM(h))),W);return Math.min(Math.min(8,Math.floor(h.policy.T/oM(h))),W)}; mHh=function(){this.Y=0;this.T=Infinity;this.N=!0;this.W=this.X=2;this.G=1;this.C=!1;this.S=10;this.Wk=!1;this.Z=1;this.XI=!1}; YJ=function(h){g.N.call(this);this.lB=h;this.X=0;this.W=null;this.N=this.Y=0;this.G={};this.uB=this.lB.B();this.C=new g.oD(this.bV,1E3,this);this.Jk=p_(this,"html5_seek_timeout_delay_ms");this.Pk=p_(this,"html5_long_rebuffer_threshold_ms");this.rE=p_(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.mW=p_(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.CM=p_(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.hI=p_(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.XI=p_(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.Wk=new IM(2E4);this.Nn=p_(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.yg=p_(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.Rz=p_(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.zV=p_(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.Z=p_(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.T=p_(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.Mn=p_(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.Ef=p_(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.S=p_(this,"html5_ads_preroll_lock_timeout_delay_ms", "html5_ads_preroll_lock_timeout_cfl");this.Ak=new IM(g.DF(this.uB.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.uB.j("html5_report_slow_ads_as_error"));this.uW=new IM(g.DF(this.uB.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.uB.j("html5_skip_slow_buffering_ad"));this.lW=p_(this,"html5_slow_start_timeout_delay_ms");this.DH=p_(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.X(this,this.C)}; p_=function(h,W,c){c=c===void 0?null:c;var V=V===void 0?0:V;return new IM(g.DF(h.uB.experiments,W)||V,c?h.uB.j(c):!1)}; gDT=function(h,W){h.X=W}; OS=function(h,W,c,V,H,B,E,J){W?W.test(c)?(h.Xi(H,W,E),W.N||B()):(!W.W||W.Y?c=!1:(c=(0,g.aC)(),V?W.X||(W.X=c):W.X=0,B=!V&&c-W.W>3E4,c=W.X&&c-W.X>1E3||B?W.Y=!0:!1),c&&(J=Object.assign({},h.MU(W),J),J.wn=E,J.we=H,J.wsuc=V,h.lB.GV("workaroundReport",J),V&&(W.reset(),h.G[H]=!1))):h.lB.wu("auth",2,"BROWSER_OR_EXTENSION_ERROR",En({source:"watchdog",name:E}))}; IM=function(h,W){this.N=W===void 0?!1:W;this.X=this.W=this.G=this.startTimestamp=0;this.Y=!1;this.C=Math.ceil(h/1E3)}; hLd=function(h){g.N.call(this);var W=this;this.lB=h;this.Z=this.X=this.loader=this.mediaElement=this.playbackData=null;this.G=0;this.C=this.Pk=this.Y=null;this.zV=!1;this.lW=0;this.Wk=!1;this.timestampOffset=0;this.T=!0;this.yg=0;this.rE=this.qU=!1;this.S=0;this.Ef=!1;this.DH=0;this.uB=this.lB.B();this.videoData=this.lB.getVideoData();this.policy=new DHU;this.XI=new YJ(this.lB);this.Ak=this.Rz=this.CM=this.N=this.W=NaN;this.Nn=new g.oD(function(){wR4(W,!1)},2E3); this.hI=new g.oD(function(){S6(W)}); this.Jk=new g.oD(function(){kbU(W,{})}); this.uW=NaN;this.mW=new g.oD(function(){var c=W.uB.Qj;c.X+=1E4/36E5;c.X-c.G>1/6&&(F04(c),c.G=c.X);W.mW.start()},1E4); g.X(this,this.XI);g.X(this,this.Nn);g.X(this,this.Jk);g.X(this,this.hI);g.X(this,this.mW)}; VC5=function(h,W){h.playbackData=W;h.videoData.isLivePlayback&&(h.Z=new vDh(function(){a:{if(h.playbackData&&h.playbackData.X.X){if(yk(h.videoData)&&h.loader){var V=h.loader.kt.Jt()||0;break a}if(h.videoData.X){V=h.videoData.X.zV;break a}}V=0}return V}),h.X=new vu(h.videoData,h.uB.experiments,function(){return h.Md(!0)})); if(gK(h.lB)){var c;(c=h.videoData.d6)!=null&&c.Tm||(W=WO4(h),W.n3?(AT(h.videoData)&&h.OH(W.n3,W.startSeconds),h.G=W.startSeconds):W.startSeconds>0&&h.seekTo(W.startSeconds,{LR:"seektimeline_startPlayback",seekSource:15}));h.T=!1}else cG4(h)||(h.G=h.G||h.videoData.startSeconds||0,h.videoData.isLivePlayback||(W=h.lB.videoData.Md(),h.G>W&&(h.j("html5_sabr_log_invalid_sabr_current_time")&&h.lB.GV("invalidSabrCmtStart",{rt:h.G,mst:W}),h.j("html5_sabr_vod_invalid_start_time_fallback")&&(h.G=0))))}; swL=function(h,W){(h.loader=W)?$mh(h,!0):D6(h)}; H3k=function(h,W){g.pO(h.XI.C);h.j("html5_exponential_memory_for_sticky")&&(W.state.isPlaying()?g.pO(h.mW):h.mW.stop());if(h.mediaElement)if(W.oldState.state===8&&LI(W.state)&&W.state.isBuffering()){W=h.mediaElement.getCurrentTime();var c=h.mediaElement.yr();var V=h.j("manifestless_post_live_ufph")||h.j("manifestless_post_live")?pF(c,Math.max(W-3.5,0)):pF(c,W-3.5);V>=0&&W>c.end(V)-1.1&&V+10?(wK(h.lB,h.getCurrentTime()+h.videoData.limitedPlaybackDurationInSeconds),h.rE=!0):h.videoData.isLivePlayback&&h.videoData.endSeconds>0&&(wK(h.lB,h.getCurrentTime()+h.videoData.endSeconds),h.rE=!0))}; EHl=function(h,W){var c=h.getCurrentTime(),V=h.isAtLiveHead(c);if(h.Z&&V){var H=h.Z;if(H.X&&!(c>=H.W&&c50&&H.W.shift())),H=h.X,O1N(H,c,W===void 0?!0:W),Sm4(H,c),W&&wR4(h,!0));V!==h.qU&&(W=h.getCurrentTime()-h.Ak<=500,c=h.lW>=1E3,W||c||(W=h.lB.R1,W.qoe&&(W=W.qoe,c=g.Bu(W.provider), g.$J(W,c,"lh",[V?"1":"0"])),h.qU=V,h.lW++,h.Ak=h.getCurrentTime()))}; wR4=function(h,W){if(h.X){var c=h.X;var V=h.getCurrentTime(),H=c.Nv();var B=c.policy.W;c.Y||(B=Math.max(B-1,0));B*=oM(c);V>=H-B||!c.V7()?c=Vc+1&&W0&&ZS(h.mediaElement)>0&&(h.W=kJ(h,h.W,!1)),W=h.j("html5_pseudogapless_shorts_seek_to_next_start")&&(W==null?void 0:W.seekSource)===60,!h.mediaElement||!rG5(h,W))h.hI.start(750);else if(!isNaN(h.W)&&isFinite(h.W)&&(W=h.Rz-(h.W-h.timestampOffset),!(W===0||Math.abs(W)<.005)))if(W=h.mediaElement.getCurrentTime()-h.W,Math.abs(W)<=h.yg||Math.abs(W)<.005)qqd(h);else{if(h.videoData.U_)h.videoData.U_= !1;else if(!FE(h.videoData)&&h.W>=h.Md()-.1){h.W=h.Md();h.Y.resolve(h.Md());h.uB.gI()&&h.lB.GV("setEndedInSeek",{tgt:""+h.W,maxst:""+h.Md()});h.lB.Do();return}try{var c=h.W-h.timestampOffset;h.mediaElement.seekTo(c);h.XI.X=c;h.Rz=c;h.G=h.W;h.Wk=!1}catch(V){}}}; rG5=function(h,W){W=W===void 0?!1:W;if(!h.mediaElement||h.mediaElement.Wv()===0||h.mediaElement.hasError())return!1;var c=h.mediaElement.getCurrentTime()>0;return h.videoData.G&&h.videoData.G.X||h.videoData.isLivePlayback||!h.videoData.bC()?h.W>=0&&!W&&(W=h.mediaElement.nZ(),W.length||!c)?IG(W,h.W-h.timestampOffset):c:c}; qqd=function(h){h.Y&&(h.Y.resolve(h.mediaElement.getCurrentTime()),h.XI.W=null)}; GP4=function(h,W){h.C&&(h.C.resolve(W),h.lB.vM(),h.uB.gI()||Z3N(h))&&(W=h.MU(),W["native"]=""+ +h.Wk,W.otgt=""+(h.W+h.timestampOffset),h.lB.GV("seekEnd",W));D6(h)}; D6=function(h){h.W=NaN;h.N=NaN;h.Rz=NaN;h.Y=null;h.Pk=null;h.C=null;h.zV=!1;h.Wk=!1;h.yg=0;h.Nn.stop();h.Jk.stop()}; lVv=function(h,W){var c=h.mediaElement,V=W.type;switch(V){case "seeking":var H=c.getCurrentTime()+h.timestampOffset;if(!h.Y||h.Wk&&H!==h.W){h.Y=new d4;h.Y.then(function(E){GP4(h,E)},function(){D6(h)}); if(h.videoData.isAd()){var B;E4Q({adCpn:h.videoData.clientPlaybackNonce,contentCpn:(B=h.videoData.wG)!=null?B:""},W.X)}h.Rz=H;gDT(h.XI,c.getCurrentTime());h.seekTo(H,{seekSource:104,LR:"seektimeline_mediaElementEvent"});h.Wk=!0}break;case "seeked":qqd(h);break;case "loadedmetadata":gK(h.lB)||xm5(h);S6(h);break;case "progress":S6(h);break;case "pause":h.S=h.getCurrentTime()}h.S&&((V==="play"||V==="playing"||V==="timeupdate"||V==="progress")&&h.getCurrentTime()-h.S>10&&(h.j("html5_sky_skip_pause_jump")? h.lB.GV("skipPauseJump",{evt:V,cmt:h.getCurrentTime(),lpt:h.S}):h.seekTo(h.S,{LR:"pauseJump"})),V!=="pause"&&V!=="play"&&V!=="playing"&&V!=="progress"&&(h.S=0))}; nHT=function(h){return(Sy(h.videoData)||!!h.videoData.liveUtcStartSeconds)&&(!!h.videoData.liveUtcStartSeconds||cG4(h))&&!!h.videoData.X}; cG4=function(h){return!!h.videoData.startSeconds&&isFinite(h.videoData.startSeconds)&&h.videoData.startSeconds>1E9}; WO4=function(h){var W=0,c=NaN,V="";if(!h.T)return{startSeconds:W,n3:c,source:V};h.videoData.Pk?W=h.videoData.DH:FE(h.videoData)&&(W=Infinity);if(g.OP(h.videoData))return{startSeconds:W,n3:c,source:V};h.videoData.startSeconds?(V="ss",W=h.videoData.startSeconds):h.videoData.Tx&&(V="stss",W=h.videoData.Tx);h.videoData.liveUtcStartSeconds&&(c=h.videoData.liveUtcStartSeconds);if(isFinite(W)&&(W>h.Md()||Wh.Md()||c 0?(V.onesie="0",h.handleError(new g.RG("html5.missingapi",V)),!1):!0}; AGl=function(h){var W=hK();WV(W,h);return g.v5(W,P8v())}; LOD=function(h,W){var c,V,H,B,E,J,u,d,G,Z,r,q,x,z,L,M,U,y,T,m,D,O,Bd,qL,Rk,JN;return g.P(function(Wd){if(Wd.W==1)return W.fetchType="onesie",c=GaD(W,h.getPlayerSize(),h.getVisibilityState()),V=new OZ(h,c),g.F(Wd,V.fetch(),2);H=Wd.X;B={player_response:H};W.loading=!1;E=h.Ql.yx;if(V.Vj){J=g.e(V.Vj.entries());for(u=J.next();!u.done;u=J.next())d=u.value,G=g.e(d),Z=G.next().value,r=G.next().value,q=Z,x=r,E.X.set(q,x,180),q===W.videoId&&(z=x.O4(),W.VT=z);E.Ai=V}L=g.e(V.yk.entries());for(M=L.next();!M.done;M= L.next())U=M.value,y=g.e(U),T=y.next().value,m=y.next().value,D=T,O=m,E.W.set(D,O,180);g.qN(W,B,!0);if(W.loading||Ze(W))return Wd.return(Promise.resolve());E.X.removeAll();E.W.removeAll();W.VT=[];Bd={};qL="onesie.response";Rk=0;W.errorCode?(qL="auth",Bd.ec=W.errorCode,Bd.ed=W.errorDetail,Bd.es=W.NN||"",Rk=2):(Bd.successButUnplayable="1",Bd.disposed=""+ +W.gE(),Bd.afmts=""+ +/adaptiveFormats/.test(H),Bd.cpn=W.clientPlaybackNonce);JN=new g.RG(qL,Bd,Rk);return Wd.return(Promise.reject(JN))})}; zLd=function(h,W){var c,V,H,B,E,J,u,d,G,Z,r;return g.P(function(q){switch(q.W){case 1:c=W.isAd(),V=!c,H=c?1:3,B=0;case 2:if(!(B0)){q.bB(5);break}return g.F(q,fW(5E3),6);case 6:E=new g.tP("Retrying OnePlatform request",{attempt:B}),g.Lx(E);case 5:return g.Qp(q,7),g.F(q,UmT(h,W),9);case 9:return q.return();case 7:J=g.CU(q);u=uX(J);d=u.errorCode;G=h.B();Z=G.j("html5_use_network_error_code_enums")?401:"401";V&&d==="manifest.net.badstatus"&&u.details.rc===Z&&(V=!1,B===H-1&&(H+= 1));if(B===H-1)return r=C3N(c,u.details),r.details.backend="op",r.details.originec=d,q.return(Promise.reject(r));if(d==="auth"||d==="manifest.net.retryexhausted")return q.return(Promise.reject(u));h.handleError(u);if(Jp(u.severity)){q.bB(4);break}case 3:B++;q.bB(2);break;case 4:return q.return(Promise.reject(C3N(c,{backend:"op"})))}})}; UmT=function(h,W){function c(qL){qL.readyState===2&&h.Z3("ps_c")} var V,H,B,E,J,u,d,G,Z,r,q,x,z,L,M,U,y,T,m,D,O,Bd;return g.P(function(qL){switch(qL.W){case 1:W.fetchType="gp";V=h.B();H=g.Ky(V,g.BN(W));if(!H.X){B=H.getValue();qL.bB(2);break}return g.F(qL,H.X,3);case 3:B=qL.X;case 2:return E=B,J=AGl(E),u=GaD(W,h.getPlayerSize(),h.getVisibilityState()),d=g.OA(MCQ),G=g.BN(W),Z=(0,g.aC)(),r=!1,q="empty",x=0,h.Z3("psns"),z={jN:c},g.F(qL,g.CE(J,u,d,void 0,z),4);case 4:L=qL.X;h.Z3("psnr");if(W.gE())return qL.return();L?"error"in L&&L.error?(r=!0,q="esf:"+L.error.message, x=L.error.code):L.errorMetadata&&(r=!0,q="its",x=L.errorMetadata.status):r=!0;if(r)return M=0,U=((0,g.aC)()-Z).toFixed(),y={},y=V.j("html5_use_network_error_code_enums")?{backend:"op",rc:x,rt:U,reason:q,has_kpt:W.bX?"1":"0",has_mdx_env:W.mdxEnvironment?"1":"0",has_omit_key_flag:g.X_("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:V.pageId?"1":"0",has_token:G?"1":"0",has_vvt:W.zV?"1":"0",is_mdx:W.isMdxPlayback?"1":"0",mdx_ctrl:W.wp||"",token_eq:G===g.BN(W)?"1":"0"}:{backend:"op", rc:""+x,rt:U,reason:q,has_kpt:W.bX?"1":"0",has_mdx_env:W.mdxEnvironment?"1":"0",has_omit_key_flag:g.X_("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:V.pageId?"1":"0",has_token:G?"1":"0",has_vvt:W.zV?"1":"0",is_mdx:W.isMdxPlayback?"1":"0",mdx_ctrl:W.wp||"",token_eq:G===g.BN(W)?"1":"0"},T="manifest.net.connect",x===429?(T="auth",M=2):x>200&&(T="manifest.net.badstatus",x===400&&(M=2)),qL.return(Promise.reject(new g.RG(T,y,M)));W.loading=!1;g.qN(W,{raw_player_response:L},!0); m=L;g.Vf(W.B())&&m&&m.trackingParams&&Yl(m.trackingParams);if(W.errorCode)return D={ec:W.errorCode,ed:W.errorDetail,es:W.NN||""},qL.return(Promise.reject(new g.RG("auth",D,2)));if(!W.loading&&!Ze(W))return O=W.isAd()?"auth":"manifest.net.retryexhausted",Bd=W.isAd()?2:1,qL.return(Promise.reject(new g.RG(O,{successButUnplayable:"1",hasMedia:g.pC(W)?"1":"0"},Bd)));g.zQ(qL)}})}; eLl=function(h,W,c){function V(x){x=uX(x);if(Jp(x.severity))return Promise.reject(x);h.handleError(x);return!1} function H(){return!0} var B,E,J,u,d,G,Z,r,q;return g.P(function(x){switch(x.W){case 1:var z=h.B();h.getPlayerSize();h.getVisibilityState();h.isFullscreen();if(W.partnerId===38&&z.playerStyle==="books")z=W.videoId.indexOf(":"),z=g.r0("//play.google.com/books/volumes/"+W.videoId.slice(0,z)+"/content/media",{aid:W.videoId.slice(z+1),sig:W.Sh});else if(W.partnerId===30&&z.playerStyle==="docs")z=g.r0("https://docs.google.com/get_video_info",{docid:W.videoId,authuser:W.a8,authkey:W.n2,eurl:z.Zn});else if(W.partnerId===33&&z.playerStyle=== "google-live")z=g.r0("//google-liveplayer.appspot.com/get_video_info",{key:W.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+z.XI);B=z;J=(E=W.isAd())?1:3;u=0;case 2:if(!(u0)){x.bB(5);break}return g.F(x,fW(5E3),6);case 6:G={playerretry:u,playerretrysrc:c},E||(G.recover="embedded"),d=hc(B,G);case 5:return g.F(x,FOU(W,d).then(H,V),7);case 7:if(Z=x.X)return x.return();u++;x.bB(2);break;case 4:r=E?"auth":"manifest.net.retryexhausted";q=E?2:1;if(!E&&Math.random()< 1E-4)try{g.Lx(new g.tP("b/152131571",btoa(B)))}catch(L){}return x.return(Promise.reject(new g.RG(r,{backend:"gvi"},q)))}})}; FOU=function(h,W){function c(L){return V(L.xhr)} function V(L){if(!h.gE()){L=L?L.status:-1;var M=0,U=((0,g.aC)()-G).toFixed();U=H.j("html5_use_network_error_code_enums")?{backend:"gvi",rc:L,rt:U}:{backend:"gvi",rc:""+L,rt:U};var y="manifest.net.connect";L===429?(y="auth",M=2):L>200&&(y="manifest.net.badstatus",L===400&&(M=2));return Promise.reject(new g.RG(y,U,M))}} var H,B,E,J,u,d,G,Z,r,q,x,z;return g.P(function(L){if(L.W==1){h.fetchType="gvi";H=h.B();var M={};h.ZC&&(M.ytrext=h.ZC);(J=g.GF(M)?void 0:M)?(B={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:J},E=hc(W,{action_display_post:1})):(B={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},E=W);u={};H.sendVisitorIdHeader&&h.visitorData&&(u["X-Goog-Visitor-Id"]=h.visitorData);(d=q8(H.experiments,"debug_sherlog_username"))&&(u["X-Youtube-Sherlog-Username"]=d);Object.keys(u).length> 0&&(B.headers=u);G=(0,g.aC)();return g.F(L,Cv(eO,E,B).then(void 0,c),2)}Z=L.X;if(!Z||!Z.responseText)return L.return(V(Z));h.loading=!1;r=gO(Z.responseText);g.qN(h,r,!0);if(h.errorCode)return q={ec:h.errorCode,ed:h.errorDetail,es:h.NN||""},L.return(Promise.reject(new g.RG("auth",q,2)));if(!h.loading&&!Ze(h))return x=h.isAd()?"auth":"manifest.net.retryexhausted",z=h.isAd()?2:1,L.return(Promise.reject(new g.RG(x,{successButUnplayable:"1"},z)));g.zQ(L)})}; C3N=function(h,W){return new g.RG(h?"auth":"manifest.net.retryexhausted",W,h?2:1)}; $D=function(h,W,c){c=c===void 0?!1:c;var V,H,B,E;g.P(function(J){if(J.W==1){V=h.B();if(c&&(!g.aa(V)||cN(W)!=="embedded")||W.oP||cN(W)!=="adunit"&&(g.uJ(V)||J0(V)||g.CV(V)||g.jz(V)||g.$X(V)||ZE(V)==="WEB_CREATOR"))return J.return();H=g.Ky(V,g.BN(W));return H.X?g.F(J,H.X,3):(B=H.getValue(),J.bB(2))}J.W!=2&&(B=J.X);E=B;return J.return(yGk(h,W,E))})}; yGk=function(h,W,c){var V,H,B,E,J;return g.P(function(u){if(u.W==1){g.Qp(u,2);V=AGl(c);var d=W.B();g.yY();var G={context:g.jb(W),videoId:W.videoId,racyCheckOk:W.racyCheckOk,contentCheckOk:W.contentCheckOk,autonavState:"STATE_NONE"};cN(W)==="adunit"&&(G.isAdPlayback=!0);d.embedConfig&&(G.serializedThirdPartyEmbedConfig=d.embedConfig);d.Bh&&(G.showContentOwnerOnly=!0);W.Ti&&(G.showShortsOnly=!0);g.Pt(0,141)&&(G.autonavState=g.Pt(0,140)?"STATE_OFF":"STATE_ON");if(g.lo(d)){var Z=g.Pt(0,65);Z=Z!=null? !Z:!1;var r=!!g.KS("yt-player-sticky-caption");G.captionsRequested=Z&&r}var q;if(d=(q=d.getWebPlayerContextConfig())==null?void 0:q.encryptedHostFlags)G.playbackContext={encryptedHostFlags:d};H=G;B=g.OA(P3h);h.Z3("wn_s");return g.F(u,g.CE(V,H,B),4)}if(u.W!=2)return E=u.X,h.Z3("wn_r"),!E||"error"in E&&E.error||(J=E,g.Vf(W.B())&&J.trackingParams&&Yl(J.trackingParams),g.qN(W,{raw_watch_next_response:E},!1)),g.AN(u,0);g.CU(u);g.zQ(u)})}; fV4=function(h){h.Z3("vir");h.Z3("ps_s");KE("vir",void 0,"video_to_ad");var W=KOd(h);W.then(function(){h.Z3("virc");KE("virc",void 0,"video_to_ad");h.Z3("ps_r");KE("ps_r",void 0,"video_to_ad")},function(){h.Z3("virc"); KE("virc",void 0,"video_to_ad")}); return W}; g.BR=function(h,W,c,V,H,B,E,J,u,d){u=u===void 0?new g.G8(h):u;d=d===void 0?!0:d;g.h1.call(this);var G=this;this.uB=h;this.playerType=W;this.Dn=c;this.DC=V;this.getVisibilityState=B;this.visibility=E;this.Ql=J;this.videoData=u;this.X1=d;this.logger=new g.xP("VideoPlayer");this.x9=null;this.sQ=new e6;this.Yq=null;this.K_=!0;this.KM=this.loader=null;this.b0=[];this.BG=new Ve;this.Ge=this.TI=null;this.eg=new Ve;this.OV=null;this.yL=this.gf=!1;this.w9=NaN;this.LP=!1;this.playerState=new g.l1;this.ly=[]; this.jk=new g.lX;this.f$=new sM5(this);this.mediaElement=null;this.xs=new g.oD(this.DUk,15E3,this);this.vc=this.vu=!1;this.CX=NaN;this.Fu=!1;this.y$=0;this.Cu=!1;this.Zl=NaN;this.Tk=new h_(new Map([["bufferhealth",function(){return BsU(G.Nd)}], ["bandwidth",function(){return G.DB()}], ["networkactivity",function(){return G.uB.schedule.Pk}], ["livelatency",function(){return G.isAtLiveHead()&&G.isPlaying()?b34(G):NaN}], ["rawlivelatency",function(){return b34(G)}]])); this.l_=0;this.loop=!1;this.playbackRate=1;this.Q2=0;this.Nd=new hLd(this);this.gg=!1;this.uy=[];this.Jz=this.Nt=0;this.Wc=this.tF=!1;this.S3=this.k0=0;this.Cx=new g.oD(this.C2,0,this);this.cZ=!1;this.CR=null;this.NEE=[this.jk,this.Cx,this.xs,this.Tk];this.jZ=this.Ks=null;this.RV=function(){var Z=G.R1;Z.provider.uB.Lj||Z.provider.lB.getVisibilityState()===3||(Z.provider.uB.Lj=!0);Z.BO();if(Z.W){var r=Z.W;r.C&&r.X<0&&r.provider.lB.getVisibilityState()!==3&&f6l(r)}Z.qoe&&(Z=Z.qoe,Z.Jk&&Z.G<0&&Z.provider.uB.Lj&& qVd(Z),Z.Y&&ES(Z));G.loader&&sm(G);G.uB.T3&&!G.videoData.backgroundable&&G.mediaElement&&!G.vB()&&(G.isBackground()&&G.mediaElement.ek()?(G.GV("bgmobile",{suspend:1}),G.ri(!0,!0)):G.isBackground()||HR(G)&&G.GV("bgmobile",{resume:1}))}; this.uX={a4:function(Z){G.a4(Z)}, wU9:function(Z){G.x9=Z}, d9M:function(){return G.R1}, ke:function(){return G.KM}, ogN:function(){return G.JD}, ZQM:function(){return G.IB}, mfW:function(){}, B:function(){return G.uB}, yl:function(){return G.mediaElement}, g0I:function(Z){G.Yp(Z)}, qHH:function(){return G.DC}}; this.logger.debug(function(){return"creating, type "+W}); this.Yt=new T$Q(this.uB);this.Tu=new Qo(this.uB,this.DC,this);this.WH=new g.TS(this,function(Z,r){Z!==g.mZ("endcr")||g.Y(G.playerState,32)||G.Do();H(Z,r,G.playerType);if(Z===g.mZ("transitiondetector")&&(Z=G.loader)!=null&&(Z=Z.uW)!=null){var q=g.e(FS5(r.id));q.next();q=q.next().value;ATd(Z,q,r.start/1E3-Z.lB.FA(),jsd(Z.Y))}}); g.X(this,this.WH);g.X(this,this.Nd);TsU(this,u);this.videoData.subscribe("dataupdated",this.LDk,this);this.videoData.subscribe("dataloaded",this.Gq,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.GV,this);this.videoData.subscribe("ctmpstr",this.IN,this);!this.R1||this.R1.gE();this.R1=new g.bp(new f_(this.videoData,this.uB,this));V6N(this.RV);this.visibility.subscribe("visibilitystatechange",this.RV);this.JD=new g.oD(this.Zm,g.DF(this.uB.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.IB=new g.oD(this.Zm,g.DF(this.uB.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.eP=new g.O5(this.NWI,350,this);g.X(this,this.eP)}; TsU=function(h,W){if(h.playerType===2||h.uB.wJ)W.Go=!0;var c=KEl(W.Ns,W.jQ,h.uB.Y,h.uB.Z);c&&(W.adFormat=c);h.playerType===2&&(W.eL=!0);if(h.isFullscreen()||h.uB.Y)c=g.KS("yt-player-autonavstate"),W.autonavState=c||(h.uB.Y?2:h.videoData.autonavState);W.endSeconds&&W.endSeconds>W.startSeconds&&wK(h,W.endSeconds)}; NsQ=function(h){var W=h.videoData;fV4(h).then(void 0,function(c){h.videoData!==W||W.gE()||(c=uX(c),c.errorCode==="auth"&&h.videoData.errorDetail?h.wu(c.errorCode,2,unescape(h.videoData.errorReason),En(c.details),h.videoData.errorDetail,h.videoData.NN||void 0):h.handleError(c))})}; vHQ=function(h){if(!g.Y(h.playerState,128))if(h.videoData.isLoaded(),h.logger.debug("finished loading playback data"),h.b0=g.Mu(h.videoData.T),g.pC(h.videoData)){h.Dn.tick("bpd_s");Em(h).then(function(){h.Dn.tick("bpd_c");if(!h.gE()){h.gf&&(h.Tz(ai(ai(h.playerState,512),1)),HR(h));var V=h.videoData;V.endSeconds&&V.endSeconds>V.startSeconds&&wK(h,V.endSeconds);h.BG.finished=!0;RN(h,"dataloaded");h.eg.jM()&&Xv4(h);Pph(h.Tu,h.Ge)}}); h.j("html5_log_media_perf_info")&&h.GV("loudness",{v:h.videoData.U8.toFixed(3)},!0);var W,c=(W=h.mediaElement)==null?void 0:W.fJ();if(c&&"disablePictureInPicture"in c&&h.uB.wK)try{c.disablePictureInPicture=h.uB.TA&&!h.videoData.backgroundable}catch(V){g.Lx(V)}tCl(h)}else RN(h,"dataloaded")}; Em=function(h){J_(h);h.Ge=null;var W=XR7(h.uB,h.videoData,h.vB());h.TI=W;h.TI.then(function(c){mmD(h,c)},function(c){h.gE()||(c=uX(c),h.visibility.isBackground()?(uY(h,"vp_none_avail"),h.TI=null,h.BG.reset()):(h.BG.finished=!0,h.wu(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",En(c.details))))}); return W}; mmD=function(h,W){if(!h.gE()&&!W.videoData.gE()){h.logger.debug("finished building playback data");h.Ge=W;VC5(h.Nd,h.Ge);if(h.videoData.isLivePlayback){var c=oHd(h.Ql.yx,h.videoData.videoId)||h.loader&&!isNaN(h.loader.zV);c=h.j("html5_onesie_live")&&c;gK(h)||h.videoData.lW>0&&!yk(h.videoData)||c||h.seekTo(h.Md(),{LR:"videoplayer_playbackData",seekSource:18})}if(h.videoData.G.X){if(cx4(h.videoData)){h.wu("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",En({missabrurl:1}));return}h.loader?g.Lx(Error("Duplicated Loader")): (c=g.DF(h.uB.experiments,"html5_onesie_defer_content_loader_ms"))&&h.oO()&&oHd(h.Ql.yx,h.videoData.o9g)?g.Rx(function(){h.gE()||h.loader||pvL(h)},c):pvL(h)}else!h.videoData.G.X&&J7(h.videoData)&&h.Fc(new QL(h.videoData.videoId||"",4)); h.rZ();i_Q(W).then(function(){var V={};h.G3(V);h.uB.gI()&&h.j("html5_log_media_perf_info")&&h.GV("av1Info",V);sm(h)})}}; Xv4=function(h){h.gE();h.logger.debug("try finish readying playback");if(h.eg.finished)h.logger.debug("already finished readying");else if(h.BG.finished)if(g.Y(h.playerState,128))h.logger.debug("cannot finish readying because of error");else if(h.b0.length)h.logger.debug(function(){return"cannot finish readying because of pending preroll: "+h.b0}); else if(h.WH.started||CYN(h.WH),h.gA())h.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{h.loader&&(h.yL=h84(h.loader.timing));h.eg.finished||(h.eg.finished=!0);var W=h.j("html5_onesie_live")&&h.loader&&!isNaN(h.loader.zV);!h.videoData.isLivePlayback||h.videoData.lW>0&&!yk(h.videoData)||W||gK(h)||(h.logger.debug("seek to head for live"),h.seekTo(Infinity,{LR:"videoplayer_readying",seekSource:18}),h.isBackground()&&(h.vc=!0));r_p(h.R1);h.logger.debug("finished readying playback"); h.publish("playbackready");LE("pl_c",h.Dn.timerName)||(h.Dn.tick("pl_c"),KE("pl_c",void 0,"video_to_ad"));LE("pbr",h.Dn.timerName)||(h.Dn.tick("pbr"),KE("pbr",void 0,"video_to_ad"))}else h.logger.debug("playback data not loaded")}; wK=function(h,W){h.Yq&&IVv(h);h.Yq=new g.t$(W*1E3,0x7ffffffffffff);h.Yq.namespace="endcr";h.addCueRange(h.Yq)}; IVv=function(h){h.removeCueRange(h.Yq);h.Yq=null}; Yqp=function(h,W,c,V,H){var B=h.R1,E=h.videoData;E.W=c;var J=g.d$(h);c=new xsl(E,c,W,J?J.itag:"",V);h.uB.experiments.xN("html5_refactor_sabr_video_format_selection_logging")?(c.videoId=H,h.jZ=c):B.qoe&&r7l(B.qoe,c);H=h.Tu;H.W=0;H.X=0;h.publish("internalvideoformatchange",E,W==="m")}; g.d$=function(h){var W=Gb(h);return LB(W)||!h.Ge?null:g.jl(h.Ge.X.videoInfos,function(c){return W.Y(c)})}; Gb=function(h){if(h.Ge){var W=h.Tu;var c=h.Ge;h=h.l3();var V=nJN(W);if(LB(V)){if(V=W.S9(c).compose(zbN(W,c)).compose(LFL(W,c)).compose(FFL(W,c.videoData)).compose(yap(W,c.videoData,c)).compose(M6D(W,c)).compose(a6v(W,c)),LB(h)||W.j("html5_apply_pbr_cap_for_drm"))V=V.compose(ebN(W,c))}else W.j("html5_perf_cap_override_sticky")&&(V=V.compose(M6D(W,c))),W.j("html5_ustreamer_cap_override_sticky")&&(V=V.compose(ebN(W,c)));V=V.compose(a6v(W,c));W=c.videoData.Uk.compose(V).compose(c.videoData.Pz).compose(h)}else W= dM;return W}; kJL=function(h){var W=h.Tu;h=h.videoData;var c=FFL(W,h);W.j("html5_disable_client_autonav_cap_for_onesie")||c.compose(yap(W,h));return c}; sm=function(h){if(h.videoData.G&&h.videoData.G.X){var W=Gb(h);h.loader&&y7N(h.loader,W)}}; O34=function(h){var W;return!!(h.j("html5_native_audio_track_switching")&&g.G1&&((W=h.videoData.W)==null?0:P_(W)))}; Sq4=function(h){if(!O34(h))return!1;var W;h=(W=h.mediaElement)==null?void 0:W.audioTracks();return!!(h&&h.length>1)}; Dmk=function(h){var W=gHU(h);if(W)return h.videoData.getAvailableAudioTracks().find(function(c){return c.iW.getName()===W})}; gHU=function(h){var W;if(h=(W=h.mediaElement)==null?void 0:W.audioTracks())for(W=0;W0&&(W.CG=c.Nf));W.Ah=c.Tj;W.bl=kP(V,{},c.G||void 0,iU(c));W.rE=LC(c)&&(g.CV(V)||g.jz(V));AT(c)&&(W.C=!0,W.QK=V.j("html5_estimate_live_partial_slice_duration"),W.q$=!0,V.j("html5_sabr_report_partial_segment_estimated_duration")&&(W.zB=!0),W.X=!0,W.A0=V.j("html5_sabr_enable_live_clock_offset"),W.fn= V.j("html5_disable_client_resume_policy_for_sabr"),W.w_=V.j("html5_trigger_loader_when_idle_network"),W.u9=V.j("html5_sabr_parse_live_metadata_playback_boundaries"),W.d6=V.j("html5_consume_onesie_next_request_policy_for_sabr"),W.DQ=V.j("html5_sabr_report_next_ad_break_time"),W.MS=V.j("html5_log_high_res_buffer_timeline")&&V.gI(),W.b9=V.j("html5_remove_stuck_slices_beyond_max_buffer_limits"),W.Xt=V.j("html5_gapless_sabr_btl_last_slice")&&Qk(c),W.TB=V.j("html5_reset_last_appended_slice_on_seek")&&Qk(c), yk(c)?(W.vO=!0,W.b$=V.j("html5_disable_variability_tracker_for_live"),W.Jk=!0,V.j("html5_simplified_backup_timeout_sabr_live")&&(W.ut=!0,W.nj=W.xg)):W.fR=V.j("html5_probe_request_on_sabr_request_progress"),W.GB=V.j("html5_serve_start_seconds_seek_for_post_live_sabr"),W.Qj=V.j("html5_flush_index_on_updated_timestamp_offset"),W.T=AT(c),W.BR=V.j("html5_ignore_partial_segment_from_live_readahead"),V.j("html5_include_partial_segment_for_jumbo_ll")&&PT(c)&&(W.BR=!1),W.sC=V.j("html5_use_non_active_broadcast_for_post_live"), W.zV=V.j("html5_use_centralized_player_time"),W.qU=V.j("html5_log_centralized_player_time"),W.n9=V.j("html5_consume_onesie_sabr_seek"),W.Wk=V.j("html5_enable_sabr_seek_loader_refactor"),W.YG=V.j("html5_update_segment_start_time_from_media_header"),c.enableServerStitchedDai&&(W.W=!0,W.Uk=V.j("html5_reset_server_stitch_state_for_non_sabr_seek"),W.PO=V.j("html5_remove_ssdai_append_pause")&&!c.Gw(),W.Ns=V.j("html5_ssdai_log_ssevt_in_loader")||V.j("html5_ssdai_log_ssevt_in_loader_200ms")||V.j("html5_ssdai_log_ssevt_in_loader_timers")|| V.j("html5_ssdai_log_ssevt_in_loader_cuerange"),V.j("html5_ssdai_log_ssevt_in_loader_timers")?W.Ef=1:V.j("html5_ssdai_log_ssevt_in_loader_200ms")?W.Ef=3:V.j("html5_ssdai_log_ssevt_in_loader_cuerange")&&(W.Ef=0)),W.o4=V.gI()||c.Gw());W.Tx=g.hQT(c);Xs(V.C,tu.BITRATE)&&(W.Vg=NaN);if(J=g.DF(V.experiments,"html5_request_size_max_kb"))W.CM=J*1024;V.C.G?W.yX="; "+tu.EXPERIMENTAL.name+"=allowed":V.j("html5_enable_cobalt_tunnel_mode")&&g.NC()&&(J=tu.TUNNELMODE,W.yX="; "+J.name+"="+J.valid);c=c.serverPlaybackStartConfig; (c==null?0:c.enable)&&(c==null?0:c.playbackStartPolicy)&&(W.Zr=!0,cM(W,c.playbackStartPolicy,2));c=wvl(h);h.sQ.removeAll();a:{J=h.Ql.yx;if(V=h.videoData.videoId)if(H=J.X.get(V)){J.X.remove(V);J=H;break a}J=void 0}h.loader=new g.dK(h,h.uB.schedule,W,h.videoData.X,h.videoData.G,Gb(h),c,h.videoData.enableServerStitchedDai,J,h.videoData.XI);W=h.videoData.j("html5_disable_preload_for_ssdai_with_preroll")&&h.videoData.isLivePlayback&&h.oO()?!0:h.gf&&g.uJ(h.uB)&&h.videoData.isLivePlayback;h.loader.initialize(h.getCurrentTime(), Gb(h),W);h.videoData.probeUrl&&(h.loader.Mn=h.videoData.probeUrl);if(h.b0.length||h.gf)h.videoData.cotn||ZM(h,!1);swL(h.Nd,h.loader);h.CR&&(cK4(h.loader,new g.GS(h.CR)),h.GV("sdai",{sdl:1}));g.Gr(h.videoData)&&(h=h.loader,h.policy.FJ=h.policy.VU)}; J_=function(h){h.loader&&(h.loader.dispose(),h.loader=null,swL(h.Nd,null));h.ul()?kPN(h):h.LQ()}; kPN=function(h){if(h.KM)if(h.logger.debug("release media source"),h.Ee(),h.KM.C)try{h.uB.gI()&&h.GV("rms",{l:"vprms",sr:h.ul(),rs:JY(h.KM)});h.KM.clear();var W;(W=h.mediaElement)!=null&&(W.W=h.KM);h.KM=null}catch(c){W=new g.tP("Error while clearing Media Source in VideoPlayer: "+c.name+", "+c.message),W=uX(W),h.handleError(W),h.LQ()}else h.LQ()}; hPp=function(h,W){W=W===void 0?!1:W;if(h.KM)return h.KM.G;h.logger.debug("update media source");a:{W=W===void 0?!1:W;try{g.NC()&&h.videoData.SA()&&YJQ(h.mediaElement);var c=h.mediaElement.ke(h.Fy(),h.N7())}catch(H){if(JaN(h.f$,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",H);h.wu("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}h.Wl(c,!1,!1,W)}var V;return((V=h.ke())==null?void 0:V.G)||null}; Wwh=function(h,W){W=W===void 0?!1:W;if(h.loader){h.videoData.enableServerStitchedDai&&JJh(h.loader);var c=h.getCurrentTime()-h.FA();h.loader.seek(c,{qE:W}).Mv(function(){})}else pvL(h)}; V77=function(h,W,c,V){c=c===void 0?!1:c;V=V===void 0?!1:V;if(h.KM&&(!W||h.KM===W)){h.logger.debug("media source opened");var H=h.getDuration();!H&&yk(h.videoData)&&(H=25200);if(h.KM.isView){var B=H;h.logger.debug(function(){return"Set media source duration to "+B+", video duration "+H}); B>h.KM.getDuration()&&c4D(h,B)}else c4D(h,H);Ccl(h.loader,h.KM,c,V);h.publish("mediasourceattached")}}; c4D=function(h,W){if(h.KM){h.KM.I3(W);var c;(c=h.loader)!=null&&c.policy.zV&&(c.N=W)}}; ffD=function(h,W){Yqp(h,W.reason,W.X.info,W.token,W.videoId)}; RN=function(h,W){h.publish("internalvideodatachange",W===void 0?"dataupdated":W,h.videoData)}; $BN=function(h){for(var W=g.e("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),c=W.next();!c.done;c=W.next())h.jk.U(h.mediaElement,c.value,h.Yp,h);h.uB.l8&&h.mediaElement.Vp()&&(h.jk.U(h.mediaElement,"webkitplaybacktargetavailabilitychanged",h.CBW,h),h.jk.U(h.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",h.jzk,h))}; HHQ=function(h){g.dJ(h.w9);s$5(h)||(h.w9=g.Jc(function(){return s$5(h)},100))}; s$5=function(h){var W=h.mediaElement;W&&h.vu&&!h.videoData.Wk&&!LE("vfp",h.Dn.timerName)&&W.Wv()>=2&&!W.isEnded()&&gA(W.yr())&&h.Dn.tick("vfp");return(W=h.mediaElement)&&!h.videoData.Wk&&W.getDuration()>0&&(W.isPaused()&&W.Wv()>=2&&gA(W.yr())&&(LE("pbp",h.Dn.timerName)||h.Dn.tick("pbp"),!h.videoData.Er||h.LP||W.isSeeking()||(h.LP=!0,h.publish("onPlaybackPauseAtStart"))),W=W.getCurrentTime(),Ns(h.Yt,W))?(h.jr(),!0):!1}; Eb5=function(h){h.R1.SL();if(FE(h.videoData)&&Date.now()>h.Q2+6283){if(!(!h.isAtLiveHead()||h.videoData.X&&tw(h.videoData.X))){var W=h.R1;if(W.qoe){W=W.qoe;var c=W.provider.lB.Lo(),V=g.Bu(W.provider);Be7(W,V,c);c=c.G;isNaN(c)||g.$J(W,V,"e2el",[c.toFixed(3)])}}h.j("html5_alc_live_log_rawlat")?(W=h.videoData,W=g.Rm(W.B())?!0:g.qc(W.B())?W.drmProduct==="6":!1):W=g.Rm(h.uB);V=h.j("html5_always_log_rawlat");(W||V)&&h.GV("rawlat",{l:cR(h.Tk,"rawlivelatency").toFixed(3)});h.Q2=Date.now()}h.videoData.W&& P_(h.videoData.W)&&(W=h.df())&&W.videoHeight!==h.Jz&&(h.Jz=W.videoHeight,Yqp(h,"a",BDp(h,h.videoData.Jk)))}; BDp=function(h,W){if(W.X.video.quality==="auto"&&P_(W.getInfo())&&h.videoData.RR)for(var c=g.e(h.videoData.RR),V=c.next();!V.done;V=c.next())if(V=V.value,V.getHeight()===h.Jz&&V.X.video.quality!=="auto")return V.getInfo();return W.getInfo()}; b34=function(h){if(!FE(h.videoData))return NaN;var W=0;h.loader&&h.videoData.X&&(W=yk(h.videoData)?h.loader.kt.Jt()||0:h.videoData.X.zV);return(0,g.aC)()/1E3-h.wW()-W}; J4N=function(h){h.mediaElement&&h.mediaElement.vB()&&(h.Zl=(0,g.aC)());h.uB.xg?g.Rx(function(){RPN(h)},0):RPN(h)}; RPN=function(h){var W;if((W=h.KM)==null||!W.jl()){if(h.mediaElement)try{h.OV=h.mediaElement.playVideo()}catch(V){uY(h,"err."+V)}if(h.OV){var c=h.OV;c.then(void 0,function(V){h.logger.debug(function(){return"playMediaElement failed: "+V}); if(!g.Y(h.playerState,4)&&!g.Y(h.playerState,256)&&h.OV===c)if(V&&V.name==="AbortError"&&V.message&&V.message.includes("load"))h.logger.debug(function(){return"ignore play media element failure: "+V.message}); else{var H="promise";V&&V.name&&(H+=";m."+V.name);uY(h,H);h.gg=!0;h.videoData.mF=!0}})}}}; uY=function(h,W){g.Y(h.playerState,128)||(h.Tz(zn(h.playerState,1028,9)),h.GV("dompaused",{r:W}),h.publish("onAutoplayBlocked"))}; HR=function(h,W){W=W===void 0?!1:W;if(!h.mediaElement||!h.videoData.G)return!1;var c=W;c=c===void 0?!1:c;var V=null;var H;if((H=h.videoData.G)==null?0:H.X){V=hPp(h,c);var B;(B=h.loader)==null||B.resume()}else J_(h),h.videoData.Jk&&(V=h.videoData.Jk.HD());H=h.mediaElement.ek();c=!1;H&&H.equals(V)||(uC7(h,V),c=!0);g.Y(h.playerState,2)||(V=h.Nd,W=W===void 0?!1:W,V.C||!(V.G>0)||V.mediaElement&&V.mediaElement.getCurrentTime()>0||(W={LR:"seektimeline_resumeTime",qE:W},V.videoData.Wk||(W.seekSource=15), V.seekTo(V.G,W)));a:{W=c;if(AT(h.videoData)){if(!h.videoData.bC())break a}else if(!g.tT(h.videoData))break a;if(h.mediaElement)if((V=h.videoData.C)&&h.mediaElement.Vp()){H=h.mediaElement.fJ();if(h.x9)if(H!==h.x9.element)r$(h);else if(W&&V.flavor==="fairplay"&&!XA())r$(h);else break a;if(h.j("html5_report_error_for_unsupported_tvos_widevine")&&XA()&&V.flavor==="widevine")h.wu("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{h.x9=new OND(H,h.videoData,h.uB);h.x9.subscribe("licenseerror", h.qw,h);h.x9.subscribe("qualitychange",h.zzk,h);h.x9.subscribe("heartbeatparams",h.tf,h);h.x9.subscribe("keystatuseschange",h.a4,h);h.x9.subscribe("ctmp",h.GV,h);W=g.e(h.sQ.keys);for(V=W.next();!V.done;V=W.next())V=h.sQ.get(V.value),h.x9.DE(V);h.j("html5_eme_loader_sync")||h.sQ.removeAll()}}else h.wu("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return c}; uC7=function(h,W){h.Dn.tick("vta");KE("vta",void 0,"video_to_ad");h.getCurrentTime()>0&&RLU(h.Nd,h.getCurrentTime());h.mediaElement.activate(W);h.KM&&gQ(4);!h.videoData.Wk&&h.playerState.isOrWillBePlaying()&&h.xs.start();if(O34(h)){var c;if(W=(c=h.mediaElement)==null?void 0:c.audioTracks())W.onchange=function(){h.publish("internalaudioformatchange",h.videoData,!0)}}}; r$=function(h){h.x9&&(h.x9.dispose(),h.x9=null)}; dBl=function(h){var W=W===void 0?!1:W;h.logger.debug("reattachVideoSource");h.mediaElement&&(h.KM?(r$(h),h.LQ(),hPp(h,W)):(h.videoData.Jk&&h.videoData.Jk.De(),h.mediaElement.stopVideo()),h.playVideo())}; G_N=function(h,W){h.uB.j("html5_log_rebuffer_reason")&&(W={r:W,lact:xA()},h.mediaElement&&(W.bh=r4(h.mediaElement)),h.GV("bufreason",W))}; ZHQ=function(h,W){if(h.uB.gI()&&h.mediaElement){var c=h.mediaElement.MU();c.omt=(h.mediaElement.getCurrentTime()+h.FA()).toFixed(3);c.ps=h.playerState.state.toString(16);c.rt=(g.Bu(h.R1.provider)*1E3).toFixed();c.e=W;h.uy[h.Nt++%5]=c}try{if(W==="timeupdate"||W==="progress")return}catch(V){}h.logger.debug(function(){return"video element event "+W})}; r45=function(h){if(h.uB.gI()){h.uy.sort(function(V,H){return+V.rt-+H.rt}); for(var W=g.e(h.uy),c=W.next();!c.done;c=W.next())c=c.value,h.GV("vpe",Object.assign({t:c.rt},c));h.uy=[];h.Nt=0}}; q4N=function(h){if(g.bW("cobalt")&&g.bW("nintendo switch")){var W=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;h.GV("nxdock",{d:W})}}; ZM=function(h,W){var c;(c=h.loader)==null||Lbv(c,W)}; tCl=function(h){re(h.videoData,"html5_set_debugging_opt_in")&&(h=g.yY(),g.Pt(0,183)||(bL(183,!0),h.save()))}; unD=function(h,W){h.Ql.YQ()||(h.GV("sgap",{f:W}),h.Ql.clearQueue(!1,W==="pe"))}; gK=function(h){return h.j("html5_disable_video_player_initiated_seeks")&&AT(h.videoData)}; xBl=function(h){da.call(this,h);var W=this;this.events=new g.lX(h);g.X(this,this.events);eb(this.api,"isLifaAdPlaying",function(){return W.api.isLifaAdPlaying()}); this.events.U(h,"serverstitchedvideochange",function(){var c;(c=W.api.getVideoData())!=null&&c.Gw()&&(W.api.isLifaAdPlaying()?(W.playbackRate=W.api.getPlaybackRate(),W.api.setPlaybackRate(1)):W.api.setPlaybackRate(W.playbackRate))}); this.playbackRate=1}; qH=function(h){jY.call(this,"En bucle",g.Kz.Xj);this.L=h;var W=h.j("delhi_modern_web_player_icons")?{D:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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"}}]}:fL4();this.setIcon(W);this.subscribe("select",this.W,this);h.createClientVe(this.element,this,28661);this.U(h,"settingsMenuVisibilityChanged",this.X);this.listen("click",this.logClick);this.U(h,"onLoopChange",this.onLoopChange);aB(this,h.getLoopVideo());h.zA().zx(this)}; lnU=function(h){da.call(this,h);var W=this;h.addEventListener("settingsMenuInitialized",function(){W.menuItem||(W.menuItem=new qH(W.api),g.X(W,W.menuItem))}); h.addEventListener("videodatachange",function(c,V){c=W.api.getPresentingPlayerType()===2;var H;(H=W.menuItem)==null||H.pJ(!V.isLivePlayback&&!c)})}; nbT=function(h){da.call(this,h);var W=this;this.events=new g.lX(h);g.X(this,this.events);eb(this.api,"seekToChapterWithAnimation",function(c){W.seekToChapterWithAnimation(c)}); eb(this.api,"seekToTimeWithAnimation",function(c,V){W.seekToTimeWithAnimation(c,V)}); eb(this.api,"renderChapterSeekingAnimation",function(c,V,H){W.api.renderChapterSeekingAnimation(c,V,H)}); eb(this.api,"setMacroMarkers",function(c){W.setMacroMarkers(h,c)}); eb(this.api,"changeMarkerVisibility",function(c,V,H){W.changeMarkerVisibility(c,V,H)}); eb(this.api,"isSameMarkerTypeVisible",function(c){return W.isSameMarkerTypeVisible(c)})}; j$T=function(h,W,c){var V=h.api.getCurrentTime()*1E30&&H>0&&(c.width+=H,g.oY(W.element,"width",c.width+"px")));h.size=c}}; g.Ft=function(h,W){var c=h.X[h.X.length-1];c!==W&&(h.X.push(W),hoQ(h,c,W))}; g.ye=function(h){if(!(h.X.length<=1)){var W=h.X.pop(),c=h.X[0];h.X=[c];hoQ(h,W,c,!0)}}; hoQ=function(h,W,c,V){WvN(h);W&&(W.unsubscribe("size-change",h.Re,h),W.unsubscribe("back",h.AG,h));c.subscribe("size-change",h.Re,h);c.subscribe("back",h.AG,h);if(h.Of){g.he(c.element,V?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.kN(h.element);c.focus();h.element.scrollLeft=0;h.element.scrollTop=0;var H=h.size;k_N(h);g.h3(h.element,H);h.N=new g.oD(function(){c6d(h,W,c,V)},20,h); h.N.start()}else c.kN(h.element),W&&W.detach()}; c6d=function(h,W,c,V){h.N.dispose();h.N=null;g.he(h.element,"ytp-popup-animating");V?(g.he(W.element,"ytp-panel-animate-forward"),g.cD(c.element,"ytp-panel-animate-back")):(g.he(W.element,"ytp-panel-animate-back"),g.cD(c.element,"ytp-panel-animate-forward"));g.h3(h.element,h.size);h.S=new g.oD(function(){g.cD(h.element,"ytp-popup-animating");W.detach();g.V$(W.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);h.S.dispose();h.S=null},250,h); h.S.start()}; WvN=function(h){h.N&&g.ID(h.N);h.S&&g.ID(h.S)}; PR=function(h){g.MH.call(this,h,"ytp-shopping-product-menu");this.EX=new g.Um(this.L);g.X(this,this.EX);this.hide();g.Ft(this,this.EX);g.ge(this.L,this.element,4)}; $wp=function(h,W,c){var V,H=W==null?void 0:(V=W.text)==null?void 0:V.simpleText;H&&(c=VVl(h,c,H,W==null?void 0:W.icon,W==null?void 0:W.secondaryIcon),W.navigationEndpoint&&c.listen("click",function(){h.L.Iz("innertubeCommand",W.navigationEndpoint);h.hide()},h))}; sU7=function(h,W,c){var V,H=W==null?void 0:(V=W.text)==null?void 0:V.simpleText;H&&VVl(h,c,H,W==null?void 0:W.icon).listen("click",function(){var B;(W==null?void 0:(B=W.icon)==null?void 0:B.iconType)==="HIDE"?h.L.publish("featuredproductdismissed"):W.serviceEndpoint&&h.L.Iz("innertubeCommand",W.serviceEndpoint);h.hide()},h)}; VVl=function(h,W,c,V,H){W=new g.Eg(g.RB({},[],!1,!!H),W,c);H&&W.updateValue("secondaryIcon",HwQ(H));W.setIcon(HwQ(V));g.X(h,W);h.EX.zx(W,!0);return W}; HwQ=function(h){if(!h)return null;switch(h.iconType){case "ACCOUNT_CIRCLE":return{D:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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{D:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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 eON();case "HIDE":return{D:"svg",J:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"g",V:[{D:"path",J:{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 lw()}}; f1=function(h){K1.call(this,h,!1,!0);this.isCounterfactual=this.W=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Z=!0;this.overflowButton=new g.p({D:"button",LM:["ytp-featured-product-overflow-icon","ytp-button"],J:{"aria-haspopup":"true"}});this.overflowButton.hide();g.X(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.p({D:"img",K:"ytp-suggested-action-badge-img",J:{src:"{{url}}"}}); this.thumbnailImage.hide();g.X(this,this.thumbnailImage);this.thumbnailIcon=new g.p({D:"div",K:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.X(this,this.thumbnailIcon);this.banner=new g.p({D:"a",K:"ytp-suggested-action-container",V:[this.thumbnailImage,this.thumbnailIcon,{D:"div",K:"ytp-suggested-action-details",V:[{D:"text",K:"ytp-suggested-action-title",YN:"{{title}}"},{D:"text",K:"ytp-suggested-action-subtitle",YN:"{{subtitle}}"},{D:"text",K:"ytp-suggested-action-metadata-text", YN:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.X(this,this.banner);this.banner.kN(this.G.element);this.U(this.L,"videodatachange",this.onVideoDataChange);this.U(this.L,g.mZ("suggested_action_view_model"),this.W8E);this.U(this.L,g.om("suggested_action_view_model"),this.GzI);this.U(this.overflowButton.element,"click",this.L0);this.U(h,"featuredproductdismissed",this.eM);this.L.createServerVe(this.banner.element,this.banner,!0)}; B3T=function(h){h.isInitialized&&(h.enabled=h.isVisible,h.Wk=h.isVisible,iY(h),h.pU(),h.thumbnailImage.pJ(h.isVisible),h.shouldHideDismissButton||h.dismissButton.pJ(h.isVisible),h.shouldShowOverflowButton&&h.overflowButton.pJ(h.isVisible))}; bY=function(){f1.apply(this,arguments)}; EYh=function(h){da.call(this,h);this.X=new bY(this.api);g.X(this,this.X);g.ge(this.api,this.X.element,4)}; Tb=function(h){da.call(this,h);var W=this;this.X=!0;var c=new g.lX(h);g.X(this,c);c.U(h,"internalaudioformatchange",function(V,H){Ro7(W,V,H)}); c.U(h,"videoplayerreset",function(){J6N(W)}); c.U(h,"videodatachange",function(V,H){W.onVideoDataChange(V,H)})}; Ro7=function(h,W,c){if(c){var V="";uF5(h,W)&&(V=W,h.api.B().rE=W);if(V&&dwU(h,V)){yxl(h.api,V);var H;Ax(A0(h.api.B(),(H=h.api.getVideoData())==null?void 0:g.BN(H)),function(B){G9v(h,V,B)})}}}; J6N=function(h){var W;if((W=xg())==null?0:W.size){var c;Ax(A0(h.api.B(),(c=h.api.getVideoData())==null?void 0:g.BN(c)),function(V){(V=ZwQ(V))&&dwU(h,V)&&(h.api.B().rE=V)})}}; G9v=function(h,W,c){ZwQ(c)!==W&&(r6v([{settingItemId:NH(c),settingOptionValue:{stringValue:W}}]),Ax(h.qB(),function(V){alT(V,NH(c),{stringValue:W})}))}; q7Q=function(h,W){Uf(Ax(Ax(h.qB(),function(c){return nAT(c,[NH(W)])}),function(c){if(c){c=g.e(c); for(var V=c.next();!V.done;V=c.next()){var H=V.value;V=H.key;H=H.value;V&&H&&(r6v([{settingItemId:V,settingOptionValue:H}]),J6N(h))}}}),function(){h.X=!0})}; uF5=function(h,W){h=h.api.getAvailableAudioTracks();h=g.e(h);for(var c=h.next();!c.done;c=h.next())if(c=c.value,c.getLanguageInfo().getId()===W)return c;return null}; ZwQ=function(h){h=NH(h);var W=xg();h=W?W.get(h):void 0;return h&&h.stringValue?h.stringValue:""}; NH=function(h){var W=(484).toString();h&&(W=(483).toString());return W}; dwU=function(h,W){var c;return W.split(".")[0]!==""&&((c=h.api.getVideoData())==null?void 0:!Ro(c))}; r6v=function(h){var W=xg();W||(W=new Map);h=g.e(h);for(var c=h.next();!c.done;c=h.next())c=c.value,W.set(c.settingItemId,c.settingOptionValue);W=JSON.stringify(Object.fromEntries(W));g.iL("yt-player-user-settings",W,2592E3)}; g.Xt=function(h,W,c,V,H,B,E){g.Eg.call(this,g.RB({"aria-haspopup":"true"}),W,h);this.YZ=V;this.Z=!1;this.G=null;this.options={};this.W=new g.Um(c,void 0,h,H,B,E);g.X(this,this.W);this.listen("keydown",this.N3);this.listen("click",this.open)}; xw5=function(h){if(h.G){var W=h.options[h.G];W.element.getAttribute("aria-checked");W.element.setAttribute("aria-checked","false");h.G=null}}; lKN=function(h,W){g.Xt.call(this,"Temporizador de apagado",g.Kz.SLEEP_TIMER,h,W);this.L=h;this.T={};this.N=this.DJ("Off");this.S=this.X="";h.j("web_settings_menu_icons")&&(W=h.j("delhi_modern_web_player_icons")?{D:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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"}}]}:{D:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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(W)); this.Y=new g.p({D:"div",LM:["ytp-menuitem-label-wrapper"],V:[{D:"div",YN:"Fin del video"},{D:"div",LM:["ytp-menuitem-sublabel"],YN:"{{content}}"}]});g.X(this,this.Y);this.listen("click",this.onClick);this.U(h,"videodatachange",this.onVideoDataChange);this.U(h,"presentingplayerstatechange",this.FI);this.U(h,"settingsMenuVisibilityChanged",this.HT);h.createClientVe(this.element,this,218889);this.FI();this.L.Iz("onSleepTimerFeatureAvailable")}; nYk=function(h){var W="Off 10 15 20 30 45 60".split(" "),c;((c=h.L.getVideoData())==null?0:c.isLivePlayback)||W.push("End of video");c=h.L.getPlaylist();var V;c&&((V=c.listId)==null?void 0:V.type)!=="RD"&&W.push("End of playlist");h.Yy(g.xw(W,h.DJ));h.T=g.D2(W,h.DJ,h);W=h.DJ("End of video");h.options[W]&&g.BV(h.options[W],h.Y)}; jUD=function(h,W){var c=h.T[W],V=c==="End of video"||c==="End of playlist";c==="Off"&&(h.X="");h.L.getPlayerState()!==0&&h.L.getPlayerState()!==5||!V?(h.N=W,g.Xt.prototype.Oy.call(h,W),h.BB(W),h.L.Iz("onSleepTimerSettingsChanged",c)):h.L.Iz("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"El video ya finaliz\u00f3"}}}}})}; t_=function(h){da.call(this,h);var W=this;h.addEventListener("settingsMenuInitialized",function(){W.menuItem||(W.menuItem=new lKN(W.api,W.api.zA()),g.X(W,W.menuItem))}); h.addEventListener("openSettingsMenuItem",function(c){if(c==="menu_item_sleep_timer"){if(!W.menuItem){var V;(V=W.api.zA())==null||V.qd()}W.menuItem.open()}}); eb(h,"resetSleepTimerMenuSettings",function(){W.resetSleepTimerMenuSettings()}); eb(h,"setSleepTimerTimeLeft",function(c){W.setSleepTimerTimeLeft(c)}); eb(h,"setVideoTimeLeft",function(c){W.setVideoTimeLeft(c)})}; aKD=function(h){da.call(this,h);var W=this;this.events=new g.lX(h);g.X(this,this.events);this.events.U(h,"onSnackbarMessage",function(c){switch(c){case 1:c=W.api.getPlayerStateObject(),c.isBuffering()&&(W.api.j("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.Y(c,8)&&g.Y(c,16))&&W.api.Iz("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.mG=function(h,W,c,V,H){W=W===void 0?!1:W;V=V===void 0?!1:V;H=H===void 0?!1:H;g.h1.call(this);this.T=H;this.S=!1;this.Y=new aI(this);this.C=this.N=null;this.G=this.W=!1;g.X(this,this.Y);this.target=h;this.X=W;this.Z=c||h;this.S=V;W&&(g.Js&&this.target.setAttribute("draggable","true"),H||(this.target.style.touchAction="none"));vR(this)}; oN=function(h){g.zR(h.Y,!h.X)}; vR=function(h){h.C=null;h.N=null;h.U(p1("over"),h.uE);h.U("touchstart",h.Y1);h.X&&h.U(p1("down"),h.bME)}; eoh=function(h,W){for(var c=0;cG.start&&c>=5;z+=M}H=z.substr(0,4)+" "+z.substr(4,4)+" "+z.substr(8,4)+" "+(z.substr(12,4)+" "+z.substr(16,4))}else H="";E={video_id_and_cpn:String(W.videoId)+" / "+H,codecs:"",dims_and_frames:"",bandwidth_kbps:E.toFixed(0)+" Kbps",buffer_health_seconds:u.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:d?"":"display:none",drm:d,debug_info:c,extra_debug_info:"",bandwidth_style:r,network_activity_style:r,network_activity_bytes:J.toFixed(0)+" KB",shader_info:Z,shader_info_style:Z?"":"display:none",playback_categories:""};J=V.clientWidth+"x"+V.clientHeight+(G>1?"*"+G.toFixed(2):"");u="-";B.totalVideoFrames&&(u=(B.droppedVideoFrames||0)+" dropped of "+B.totalVideoFrames);E.dims_and_frames=J+" / "+u;h=h.getVolume();J=wl4(W);var y;if((y=W.Y)==null?0:y.audio.W)y= "VB";else{var T;y=((T=W.Y)==null?0:T.audio.X)?"DRC":Math.round(h*J)+"%"}T=Math.round(h)+"% / "+y;y=W.U8.toFixed(1);isFinite(Number(y))&&(T+=" (content loudness "+y+"dB)");E.volume=T;E.resolution=V.videoWidth+"x"+V.videoHeight;if(V=W.W){if(T=V.video)y=T.fps,y>1&&(E.resolution+="@"+y),(y=B.bK)&&y.video&&(E.resolution+=" / "+y.video.width+"x"+y.video.height,y.video.fps>1&&(E.resolution+="@"+y.video.fps)),E.codecs=A6p(V),!W.Y||V.audio&&V.video?V.Yo&&(E.codecs+=" / "+V.Yo+"A"):E.codecs+=" / "+A6p(W.Y), T.X||T.primaries?(y=T.X||"unknown",y==="smpte2084"?y+=" (PQ)":y==="arib-std-b67"&&(y+=" (HLG)"),E.color=y+" / "+(T.primaries||"unknown"),E.color_style=""):E.color_style="display:none";if(V.debugInfo)for(E.fmt_debug_info="",V=g.e(V.debugInfo),T=V.next();!T.done;T=V.next())T=T.value,E.fmt_debug_info+=T.label+":"+T.text+" ";E.fmt_debug_info_style=E.fmt_debug_info&&E.fmt_debug_info.length>0?"":"display:none"}V=W.isLivePlayback;T=W.N$;E.live_mode_style=V||T?"":"display:none";E.live_latency_style=V?"": "display:none";if(T)E.live_mode="Post-Live"+(yk(W)?" Manifestless":"");else if(V){T=B.jy;E.live_latency_secs=T.toFixed(2)+"s";V=yk(W)?"Manifestless, ":"";W.Pk&&(V+="Windowed, ");y="Uncertain";if(T>=0&&T<120)if(W.latencyClass&&W.latencyClass!=="UNKNOWN")switch(W.latencyClass){case "NORMAL":y="Optimized for Normal Latency";break;case "LOW":y="Optimized for Low Latency";break;case "ULTRALOW":y="Optimized for Ultra Low Latency";break;default:y="Unknown Latency Setting"}else y=W.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";V+=y;(T=B.mO)&&(V+=", seq "+T.sequence);E.live_mode=V}!B.isGapless||Qk(W)&&B.YQ||(E.playback_categories+="Gapless ");E.playback_categories_style=E.playback_categories?"":"display:none";E.bandwidth_samples=B.RI;E.network_activity_samples=B.fD;E.live_latency_samples=B.KL;E.buffer_health_samples=B.KT;B=g.Gr(W);if(W.cotn||B)E.cotn_and_local_media=(W.cotn?W.cotn:"null")+" / "+B;E.cotn_and_local_media_style=E.cotn_and_local_media?"":"display:none"; re(W,"web_player_release_debug")?(E.release_name=R[5],E.release_style=""):E.release_style="display:none";E.debug_info&&q.length>0&&E.debug_info.length+q.length<=60?E.debug_info+=" "+q:E.extra_debug_info=q;E.extra_debug_info_style=E.extra_debug_info&&E.extra_debug_info.length>0?"":"display:none";return E}; A6p=function(h){var W=/codecs="([^"]*)"/.exec(h.mimeType);return W&&W[1]?W[1]+" ("+h.itag+")":h.itag}; w$=function(h,W,c,V,H){g.p.call(this,{D:"div",K:"ytp-horizonchart"});this.S=W;this.sampleCount=c;this.Y=V;this.N=H;this.index=0;this.heightPx=-1;this.G=this.W=null;this.X=Math.round(h/c);this.element.style.width=this.X*this.sampleCount+"px";this.element.style.height=this.S+"em"}; kD=function(h,W){if(h.heightPx===-1){var c=null;try{c=g.Zr("CANVAS"),h.W=c.getContext("2d")}catch(J){}if(h.W){var V=h.X*h.sampleCount;h.G=c;h.G.width=V;h.G.style.width=V+"px";h.element.appendChild(h.G)}else for(h.sampleCount=Math.floor(h.sampleCount/4),h.X*=4,c=0;c1?2:1,h.G.height=h.heightPx*c,h.G.style.height= h.heightPx+"px",h.W.scale(1,c)));W=g.e(W);for(V=W.next();!V.done;V=W.next()){c=h;var H=h.index,B=V.value;for(V=0;V+20&&g.xS(W.W.element);V.classList.add("ytp-timely-actions-overlay");W.W.element.appendChild(V)}); g.X(this,this.W);this.j("web_player_overlay_positioned_layout")?this.events.U(h,"basechromeinitialized",function(){W.api.iO(W.W.element,4,!0);W.W.element.setAttribute("data-overlay-order","10")}):g.ge(this.api,this.W.element,4)}; pI5=function(h){h.timelyActions&&(h.Y=h.timelyActions.reduce(function(W,c){if(c.cueRangeId===void 0)return W;W[c.cueRangeId]=0;return W},{}))}; VB=function(h,W){if(h.timelyActions){h=g.e(h.timelyActions);for(var c=h.next();!c.done;c=h.next())if(c=c.value,c.cueRangeId===W)return c}}; IK5=function(h,W){if((h=VB(h,W))&&h.onCueRangeExit)return U9(h.onCueRangeExit)}; tV4=function(h,W){return h.G===void 0?!1:W.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(W.seekLengthMilliseconds)===5E3?h.G===72:W.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(W.seekLengthMilliseconds)===1E4?h.G===74:W.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(W.seekLengthMilliseconds)===5E3?h.G===71:W.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(W.seekLengthMilliseconds)===1E4?h.G===73:!1}; Y7L=function(h,W){var c=Number(W==null?void 0:W.maxVisibleDurationMilliseconds);c&&($H(h),h.Wk=setTimeout(function(){if(h.X!==void 0&&(W==null?void 0:W.cueRangeId)===h.X){h.T=!1;var V=IK5(h,h.X);V&&h.api.Iz("innertubeCommand",V)}},c))}; $H=function(h){h.Wk&&clearTimeout(h.Wk);h.Wk=void 0;h.T=!1}; vYp=function(h){if(h=h.getWatchNextResponse()){var W,c;h=(W=h.playerOverlays)==null?void 0:(c=W.playerOverlayRenderer)==null?void 0:c.timelyActionsOverlayViewModel;W=g.v(h,OwN);if(W!=null&&W.timelyActions)return W==null?void 0:W.timelyActions.map(function(V){return g.v(V,S7p)}).filter(function(V){return!!V})}}; gYd=function(h){da.call(this,h);var W=this;zr(this.api,"getPlaybackRate",function(){return W.api.getPlaybackRate()}); zr(this.api,"setPlaybackRate",function(c){typeof c==="number"&&W.api.setPlaybackRate(c)})}; sq=function(h,W,c,V){jY.call(this,"VOICE_BOOST",g.Kz.Fj);this.X=!1;this.L=h;this.YZ=h.zA();this.Y=W;this.G=c;this.hasVoiceBoostAudioTrack=V;this.U(h,"videodatachange",this.W);this.setIcon(CLL());this.subscribe("select",this.N,this);this.W()}; Hv=function(h){da.call(this,h);var W=this;this.events=new g.lX(h);g.X(this,this.events);this.events.U(h,"settingsMenuInitialized",function(){DwD(W)}); eb(this.api,"getVoiceBoostUserPreference",function(){return W.getVoiceBoostUserPreference()}); eb(this.api,"setVoiceBoostUserPreference",function(V){W.setVoiceBoostUserPreference(V)}); eb(this.api,"hasVoiceBoostAudioTrack",function(){return W.hasVoiceBoostAudioTrack()}); var c;this.X=(c=s1N())!=null?c:0;this.updateEnvironmentData()}; DwD=function(h){h.menuItem||(h.menuItem=new sq(h.api,function(W){h.setVoiceBoostUserPreference(W)},function(){return h.getVoiceBoostUserPreference()},function(){return h.hasVoiceBoostAudioTrack()}),g.X(h,h.menuItem))}; wIh=function(h){h=h.Ly();if(!h)return!1;h=g.wO(h).exp||"";return h.includes("xpv")||h.includes("xpe")}; k9N=function(h){h=g.e(g.Bv(h,!0));for(var W=h.next();!W.done;W=h.next())if(wIh(W.value))return!0;return!1}; h1T=function(h,W){h=g.e(g.Bv(h,!0));for(var c=h.next();!c.done;c=h.next())if(c=c.value,wIh(c)){var V={potc:"1",pot:W};c.url&&(c.url=kZ(c.url,V))}}; W4D=function(h){return g.P(function(W){if(W.W==1)return g.Qp(W,2),g.F(W,h,4);if(W.W!=2)return g.AN(W,0);g.CU(W);g.zQ(W)})}; Rw=function(h){da.call(this,h);var W=this;this.useLivingRoomPoToken=!1;this.C=new g.R_;this.X=!1;this.Dn=null;this.Z=!1;this.Y=null;this.N=!1;var c=h.B().getWebPlayerContextConfig();this.events=new g.lX(h);g.X(this,this.events);this.events.U(h,"spsumpreject",function(V,H,B){W.N=H;V&&W.Z&&!W.Y&&(W.j("html5_generate_content_po_token")&&B?W.l1(B):W.j("html5_generate_session_po_token")&&c2D(W));W.Y||W.api.GV("stp",{s:+W.Z,b:+W.N})}); this.events.U(h,"poTokenVideoBindingChange",function(V){W.l1(V)}); this.useLivingRoomPoToken=!(c==null||!c.useLivingRoomPoToken);h.addEventListener("csiinitialized",function(){W.Dn=h.Ot();var V=(W.j("html5_generate_session_po_token")||W.j("html5_generate_content_po_token"))&&!W.useLivingRoomPoToken;try{if(W.j("html5_use_shared_owl_instance"))Vw4(W);else if(V){W.Dn.T2("pot_isc");var H=g.DF(W.api.B().experiments,"html5_webpo_kaios_defer_timeout_ms");H?(W.G=fe(),g.Rx(function(){Eq(W)},H)):W.j("html5_webpo_idle_priority_job")?(W.G=fe(),g.II(g.Oh(),function(){Eq(W)})): Eq(W)}}catch(B){B instanceof Error&&g.Lx(B)}}); h.addEventListener("trackListLoaded",this.UJ.bind(this));h.C4(this)}; $gk=function(h){var W=q8(h.experiments,"html5_web_po_request_key");return W?W:g.uJ(h)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; sTQ=function(h){var W=new E7k,c={},V=(c["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",c);return new rl(W,h,function(){return V})}; HLv=function(h){return new qV(h)}; JG=function(h,W){h.j("html5_webpo_bge_ctmp")&&h.api.GV(W,{hwpo:!!h.W,hwpor:h.X})}; Vw4=function(h){var W,c;g.P(function(V){if(V.W==1)return JG(h,"swpo_i"),h.G=fe(),u3(h),g.F(V,gx(),2);if(V.W!=3)return W=V.X,JG(h,"swpo_co"),g.F(V,bDk(W),3);c=V.X;h.j("html5_web_po_token_disable_caching")||c.gF(150);h.W=c;JG(h,"swpo_cc");W4D(c.GT()).then(function(){h.X=!0;h.C.resolve();JG(h,"swpo_re")}); g.Rx(function(){Eq(h);JG(h,"swpo_si")},0); g.zQ(V)})}; R1d=function(h){var W=h.api.B(),c=sTQ($gk(W)),V=c.XG.bind(c);c.XG=function(J){var u;return g.P(function(d){if(d.W==1)return g.F(d,V(J),2);u=d.X;h.api.GV("itr",{});return d.return(u)})}; try{var H=HLv({Ai:c,z1:{maxAttempts:5},DF:{ev:"CLEn",disable:W.experiments.xN("html5_web_po_disable_remote_logging")||BoU.includes(g.E6(W.Cw)||""),g4:ghd(W.experiments),Hl:W.experiments.xN("wpo_gel_strz")?function(J){var u=E_D.get(J);u||(u=new luh(J),u=new g.bZ(u),E_D.set(J,u));return u}:void 0, PBW:h.j("wpo_dis_lfdms")?0:1E3},ann:g.Lx});var B=new yr({py:H,Ai:c,onError:g.Lx});W4D(B.GT()).then(function(){h.X=!0;h.C.resolve()}); h.j("html5_web_po_token_disable_caching")||B.gF(150);g.X(h,H);g.X(h,B);h.W=B}catch(J){g.Lx(J);var E;(E=H)==null||E.dispose()}}; Eq=function(h){var W=h.api.B();h.Dn.T2("pot_ist");h.W||R1d(h);h.j("html5_bandaid_attach_content_po_token")||(h.j("html5_generate_session_po_token")&&(u3(h),c2D(h)),W=g.DF(W.experiments,"html5_session_po_token_interval_time_ms")||0,W>0&&(h.S=g.Jc(function(){u3(h)},W)),h.Z=!0)}; u3=function(h){var W,c,V,H;g.P(function(B){if(!h.j("html5_generate_session_po_token")||h.useLivingRoomPoToken)return B.return();W=h.api.B();c=g.X_("EOM_VISITOR_DATA")||g.X_("VISITOR_DATA");V=W.pg?W.datasyncId:c;H=q8(W.experiments,"html5_mock_content_binding_for_session_token")||W.livingRoomPoTokenId||V;W.mF=ds(h,H);g.zQ(B)})}; ds=function(h,W){if(!h.W){if(h.G)try{return h.G(W)}catch(B){g.Lx(B)}return""}try{h.Dn.T2(h.X?"pot_cms":"pot_csms");var c={hj:!0,P_:!0,ma:W};h.j("html5_web_po_token_disable_caching")||(c.oS={ES:W,kJ:!0,xM:!0});var V=h.W.N6(c);h.Dn.T2(h.X?"pot_cmf":"pot_csmf");if(h.X){var H;(H=h.Y)==null||H.resolve();h.Y=null;h.N&&(h.N=!1,h.api.app.ZH().Ek(!1))}return V}catch(B){return g.Lx(B),""}}; c2D=function(h){h.W&&(h.Y=new d4,h.C.promise.then(function(){h.Dn.T2("pot_if");u3(h)}))}; g.GP=function(h,W,c){g.$y(h.element,"ytp-suggestion-set",!!W.videoId);var V=W.playlistId;c=W.YL(c?c:"mqdefault.jpg");var H=null,B=null;W instanceof Oa&&(W.lengthText?(H=W.lengthText||null,B=W.r0||null):W.lengthSeconds&&(H=g.xx(W.lengthSeconds),B=g.xx(W.lengthSeconds,!0)));var E=!!V;V=E&&Ia(V).type==="RD";var J=W instanceof Oa?W.isLivePlayback:null,u=W instanceof Oa?W.isUpcoming:null,d=W.author,G=W.shortViewCount,Z=W.publishedTimeText,r=[],q=[];d&&r.push(d);G&&(r.push(G),q.push(G));Z&&q.push(Z);c= {title:W.title,author:d,author_and_views:r.join(" \u2022 "),aria_label:W.ariaLabel||g.hl("Ver $TITLE",{TITLE:W.title}),duration:H,timestamp:B,url:W.gV(),is_live:J,is_upcoming:u,is_list:E,is_mix:V,background:c?"background-image: url("+c+")":"",views_and_publish_time:q.join(" \u2022 "),autoplayAlternativeHeader:W.s4};W instanceof YX&&(c.playlist_length=W.playlistLength);h.update(c)}; g.ZV=function(h){var W=h.B(),c=g.Zx||g.SN?{style:"will-change: opacity"}:void 0,V=W.Y,H=["ytp-modern-videowall-still"];W.W&&H.push("ytp-videowall-show-text");g.p.call(this,{D:"a",LM:H,J:{href:"{{url}}",target:V?W.T:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},V:[{D:"div",K:"ytp-modern-videowall-still-image",J:{style:"{{background}}"},V:[{D:"span",K:"ytp-modern-videowall-still-info-duration",YN:"{{duration}}"}]},{D:"span",K:"ytp-modern-videowall-still-info", J:{"aria-hidden":"true"},V:[{D:"span",K:"ytp-modern-videowall-still-info-bg",V:[{D:"span",K:"ytp-modern-videowall-still-info-content",J:c,V:[{D:"span",K:"ytp-modern-videowall-still-info-title",YN:"{{title}}"},{D:"span",K:"ytp-modern-videowall-still-info-author",YN:"{{author_and_views}}"},{D:"span",K:"ytp-modern-videowall-still-info-live",YN:"En vivo"}]}]}]},{D:"span",LM:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],J:{"aria-hidden":"true"},V:[{D:"span",K:"ytp-modern-videowall-still-listlabel-icon"}, "Playlist",{D:"span",K:"ytp-modern-videowall-still-listlabel-length",V:[" (",{D:"span",YN:"{{playlist_length}}"},")"]}]},{D:"span",LM:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],J:{"aria-hidden":"true"},V:[{D:"span",K:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{D:"span",K:"ytp-modern-videowall-still-listlabel-length",YN:" (50+)"}]}]});this.suggestion=null;this.W=V;this.api=h;this.X=new g.lX(this);g.X(this,this.X);this.listen("click",this.onClick); this.listen("keypress",this.onKeyPress);this.X.U(h,"videodatachange",this.onVideoDataChange);h.createServerVe(this.element,this);this.onVideoDataChange()}; g.J2v=function(h,W){if(h.suggestion!==W){h.suggestion=W;var c=h.api.B();g.GP(h,W,"hqdefault.jpg");if(g.DE(c)&&!h.api.j("web_player_log_click_before_generating_ve_conversion_params")){c=W.gV();var V={};g.LQ(h.api,"addEmbedsConversionTrackingParams",[V]);c=g.r0(c,V);h.updateValue("url",c)}(W=(W=W.sessionData)&&W.itct)&&h.api.setTrackingParams(h.element,W)}}; dgv=function(h,W){g.p.call(this,{D:"div",LM:["ytp-fullscreen-grid"],V:[{D:"div",K:"ytp-fullscreen-grid-hover-overlay",J:{title:"{{title}}","aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid","data-tooltip-offset-y":"-20"},V:[{D:"div",K:"ytp-fullscreen-grid-hover-overlay-chevron",V:[{D:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"g",J:{filter:"url(#filter0_d_3104_799356)"},V:[{D:"path",J:{d:"M5.29 15.20C4.92 14.84 4.90 14.26 5.22 13.86L5.29 13.79L11.99 7.08L18.70 13.79C19.09 14.18 19.09 14.81 18.70 15.20C18.31 15.59 17.68 15.59 17.29 15.20L11.99 9.91L6.70 15.20L6.63 15.27C6.23 15.59 5.65 15.57 5.29 15.20Z", fill:"white"}}]},{D:"defs",V:[{D:"filter",J:{"color-interpolation-filters":"sRGB",filterUnits:"userSpaceOnUse",height:"26",width:"26",x:"-1",y:"-1"},V:[{D:"feFlood",J:{"flood-opacity":"0",result:"BackgroundImageFix"}},{D:"feColorMatrix",J:{"in":"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}},{D:"feOffset"},{D:"feGaussianBlur",J:{stdDeviation:"0.5"}},{D:"feComposite",J:{in2:"hardAlpha",operator:"out"}},{D:"feColorMatrix",J:{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0"}}, {D:"feBlend",J:{in2:"BackgroundImageFix",mode:"normal",result:"effect1_dropShadow_3104_799356"}},{D:"feBlend",J:{"in":"SourceGraphic",in2:"effect1_dropShadow_3104_799356",mode:"normal",result:"shape"}}]}]}]}]}]},{D:"div",K:"ytp-fullscreen-grid-main-content",V:[{D:"div",K:"ytp-fullscreen-grid-header",V:[{D:"div",K:"ytp-fullscreen-grid-header-buttons",V:[{D:"button",LM:["ytp-grid-replay-button","ytp-button"],J:{title:"Volver a reproducir","aria-keyshortcuts":"r","aria-label":"Volver a reproducir","data-title-no-tooltip":"Volver a reproducir"}, V:[bS7()]},{D:"button",K:"ytp-fullscreen-grid-header-button",J:{"aria-label":"{{ariaLabel}}"}}]},{D:"button",LM:["ytp-grid-menu-close","ytp-button"],J:{"aria-label":"Cerrar"},V:[g.Gp()]}]},{D:"div",K:"ytp-fullscreen-grid-stills-container"}]}]});var c=this;this.player=h;this.stills=[];this.videoData=null;this.currentState=0;this.S=this.vk("ytp-fullscreen-grid-main-content");this.N=this.vk("ytp-fullscreen-grid-header");h=this.vk("ytp-fullscreen-grid-header-buttons");this.G=this.vk("ytp-grid-menu-close"); this.W=this.vk("ytp-grid-replay-button");this.X=this.vk("ytp-fullscreen-grid-header-button");this.T=this.vk("ytp-fullscreen-grid-stills-container");this.Y=new g.lX(this);g.X(this,this.Y);this.Z=W;if(this.N&&this.S&&h&&this.T&&this.X&&this.G){if(W=this.vk("ytp-fullscreen-grid-hover-overlay"))this.U(W,"click",this.j4),Ne(this.player,W,this);this.W&&(this.U(this.W,"click",function(V){c.J_(V)}),Ne(this.player,this.W,this)); this.X&&this.U(this.X,"click",this.j4);this.G&&this.U(this.G,"click",this.j4);if(W=this.player.getVideoData(1))this.videoData=W,uzT(this);this.player.createClientVe(this.N,this,223051);this.Y.U(this.player,"videodatachange",this.onVideoDataChange);this.Y.U(this.player,"presentingplayerstatechange",this.Dc)}}; uzT=function(h){var W=h.player.getPlayerStateObject();g.$y(h.player.getRootNode(),"ytp-grid-ended-state",g.Y(W,2))}; xH=function(h){da.call(this,h);var W=this;this.S=this.X=this.W=0;this.N=null;this.Y=0;this.isEnded=!1;this.Z=null;var c=new g.lX(h);g.X(this,c);this.Wk=this.api.j("web_player_imax_theater_mode");this.G=this.api.j("web_player_enable_fullscreen_grid_components");c.U(h,"fullscreentoggled",function(){rs(W)}); c.U(h,"autohideupdate",function(V){V&&W.W===2&&qm(W,1)}); c.U(h,"videodatachange",function(){if(W.G){var V=W.api.getVideoData(1);W.videoData!==V&&W.W===2&&qm(W,1);W.videoData=V}},this); c.U(h,"sizestylechange",function(){W.G&&rs(W)}); eb(this.api,"setFullscreenQuickActions",function(V){W.setFullscreenQuickActions(V)}); eb(this.api,"setPlayerOverlayVideoDetailsRenderer",function(V){W.setPlayerOverlayVideoDetailsRenderer(V)}); this.G&&GKU(this,c,h)}; GKU=function(h,W,c){W.U(c,"keyboardserviceglobalkeydown",function(V,H){h.G&&V.keyCode===86&&!V.repeat&&h.W!==0&&(H&&(H.hR=!0),ZLN(h))}); W.U(h.api.getRootNode(),"wheel",function(V){if(!h.Z){var H;if(h.G&&(H=h.C)!=null&&H.element&&h.W!==0&&l3(h))if(g.he(h.api.getRootNode(),"ytp-grid-scrolling"),h.Y===0&&(h.Y=window.innerHeight),h.W===1)h.Y!==0&&(h.X+=V.deltaY/h.Y,h.X=Math.min(Math.max(h.X,0),.85),n3(h),r2T(h,Math.abs(h.X)>=.85));else if(h.W===2){H=V.deltaY<0;var B,E=((B=h.C)==null?void 0:B.element.scrollTop)===0;H&&E?h.Y!==0&&(h.X+=V.deltaY/h.Y,n3(h),r2T(h,Math.abs(h.X)>=.85)):h.X!==0&&(h.X=0,n3(h))}}},{passive:!0}); W.U(c,"standardControlsInitialized",function(){if(!h.C){h.C=new dgv(h.api,h.XI.bind(h));g.X(h,h.C);var V=h.api.getRootNode().querySelector(".ytp-chrome-bottom");V&&V.parentNode&&V.parentNode.insertBefore(h.C.element,V.nextSibling)}}); W.U(c,"presentingplayerstatechange",function(){jC(h)}); W.U(c,"autonavvisibility",function(){jC(h)}); h.api.D8().subscribe("visibilitystatechange",function(){jC(h)}); qtQ(h,h.W)}; r2T=function(h,W){h.N&&clearTimeout(h.N);W?xgd(h):h.N=window.setTimeout(function(){xgd(h)},150)}; xgd=function(h){h.N&&(clearTimeout(h.N),h.N=null);h.Y=0;h.G&&h.W!==0&&(Math.abs(h.X)>=.15&&ZLN(h,!0),h.X=0,n3(h),g.cD(h.api.getRootNode(),"ytp-grid-scrolling"))}; ZLN=function(h,W){h.G&&(W!==void 0&&W||(h.Z&&clearTimeout(h.Z),h.Z=window.setTimeout(function(){h.Z=null},1E3)),h.W===1?qm(h,2):qm(h,1))}; l3=function(h){return h.api.isFullscreen()||h.Wk&&h.api.F2()}; rs=function(h){var W=l3(h);g.$y(h.api.getRootNode(),"ytp-full-bleed-player",W);h.T&&g.cW(h.T,W);h.playerOverlayVideoDetailsRenderer&&g.cW(h.playerOverlayVideoDetailsRenderer,W);h.G&&jC(h)}; jC=function(h){if(h.G){var W;if(h.api.getPresentingPlayerType()===2||h.api.XD()||((W=g.CQ(h.api))==null?0:W.Lp())||h.api.isMinimized())qm(h,0);else{if(W=g.Y(h.api.getPlayerStateObject(),2))qm(h,2);else if(h.isEnded&&!W){var c=l3(h)?1:0;h.isEnded=W;qm(h,c)}else l3(h)?h.W!==2&&qm(h,1):qm(h,0);h.isEnded=W}}}; qm=function(h,W){h.W=W;var c;(c=h.C)==null||c.So(W);h.X=0;n3(h);qtQ(h,W)}; qtQ=function(h,W){h=h.api.getRootNode();g.$y(h,"ytp-fullscreen-grid-peaking",W===1);g.$y(h,"ytp-fullscreen-grid-active",W===2)}; n3=function(h){requestAnimationFrame(function(){var W=h.X-h.S,c=W;h.X!==0&&(c=Math.max(-.01,Math.min(W,.01)));h.S+=c;h.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+h.S.toString());h.S!==h.X&&n3(h)})}; lAU=function(h){da.call(this,h);var W=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.lX(h);g.X(this,this.events);this.events.U(h,"heartbeatRequest",function(c){if(W.freePreviewUsageDetails.length||W.freePreviewWatchedDuration!==null)c.heartbeatRequestParams||(c.heartbeatRequestParams={}),c.heartbeatRequestParams.unpluggedParams||(c.heartbeatRequestParams.unpluggedParams={}),W.freePreviewUsageDetails.length>0?c.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= W.freePreviewUsageDetails:c.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+W.freePreviewWatchedDuration}}); eb(h,"setFreePreviewWatchedDuration",function(c){W.freePreviewWatchedDuration=c}); eb(h,"setFreePreviewUsageDetails",function(c){W.freePreviewUsageDetails=c})}; aw=function(h){g.N.call(this);this.features=[];var W=this.X,c=new vV(h),V=new Gv(h),H=new jZ(h),B=new Rw(h);var E=g.Rm(h.B())?void 0:new PV(h);var J=new n1(h),u=new FvT(h),d=new gYd(h),G=new tK(h);var Z=g.Rm(h.B())?new lAU(h):void 0;var r=h.j("html5_enable_ssap")?new KvT(h):void 0;var q;var x=(q=h.B().getWebPlayerContextConfig())!=null&&q.cinematicSettingsAvailable?new Cz(h):void 0;q=new X5(h);var z=h.j("enable_courses_player_overlay_purchase")?new us7(h):void 0;var L=g.lo(h.B())?new BEQ(h):void 0; var M=new fz(h);var U=h.B().Y?new WdN(h):void 0;var y=g.DE(h.B())?new hdh(h):void 0;var T=h.j("web_player_move_autonav_toggle")&&h.B().hq?new Iqp(h):void 0;var m=g.lo(h.B())?new nbT(h):void 0;var D=h.j("web_enable_speedmaster")&&g.lo(h.B())?new Om(h):void 0;var O=h.B().ID?void 0:new XId(h);var Bd=h.j("report_pml_debug_signal")?new vlN(h):void 0;var qL=new y45(h),Rk=new Qe(h);var JN=g.CV(h.B())?new gbD(h):void 0;var Wd=navigator.mediaSession&&window.MediaMetadata&&h.B().z3?new xD(h):void 0;var Uv= h.j("html5_enable_drc")&&!h.B().N?new yv(h):void 0;var gN=new ra(h);var W2=g.lo(h.B())?new EYh(h):void 0;var lK=h.j("html5_enable_d6de4")?new aN(h):void 0;var Rf=g.lo(h.B())&&h.j("web_sleep_timer")?new t_(h):void 0;var Fl=g.DE(h.B())?new VGl(h):void 0;var BG=new Tb(h),Tt=new D1U(h),p$=new xBl(h);var EO=h.j("enable_sabr_snackbar_message")?new aKD(h):void 0;var C=h.j("web_enable_timely_actions")?new oY4(h):void 0;var tB=new MS(h);var yU=g.lo(h.B())?new xH(h):void 0;var Vp=h.j("html5_enable_voice_boost")? new Hv(h):void 0;var iK=h.j("web_player_loop_settings_menu")&&h.B().Er?new lnU(h):void 0;var Q=h.j("html5_masthead_default_playback_rate")&&!g.Rm(h.B())?new zPD(h):void 0;var cd=h.j("web_player_playable_sequences_refactor")?new obT(h):void 0;h=h.j("html5_enable_audio_quality_setting")&&h.j("html5_enable_audio_quality_setting_feature")?new ll(h):void 0;W.call(this,c,V,H,B,E,J,u,d,G,Z,r,x,q,z,L,M,U,y,T,m,D,O,Bd,qL,Rk,JN,void 0,Wd,Uv,gN,void 0,W2,lK,Rf,Fl,void 0,BG,Tt,p$,void 0,EO,C,tB,yU,Vp,void 0, iK,void 0,Q,cd,h)}; n_p=function(){this.W=this.X=NaN}; jT7=function(h,W){this.uB=h;this.timerName="";this.G=!1;this.W=NaN;this.Y=new n_p;this.X=W||null;this.G=!1}; aAv=function(h,W,c){var V=g.Vf(W.fM)&&!W.fM.N;if(W.fM.eX&&(ka(W.fM)||W.fM.zV==="shortspage"||Qf(W.fM)||V)&&!h.G){h.G=!0;h.N=W.clientPlaybackNonce;g.X_("TIMING_ACTION")||NU("TIMING_ACTION",h.uB.csiPageType);h.uB.csiServiceName&&NU("CSI_SERVICE_NAME",h.uB.csiServiceName);if(h.X){V=h.X.Ot();for(var H=g.e(Object.keys(V)),B=H.next();!B.done;B=H.next())B=B.value,eq(B,V[B],h.timerName);V=g.IW(DvN)(h.X.XM);g.zO(V,h.timerName);V=h.X;V.X={};V.XM={}}g.zO({playerInfo:{visibilityState:g.IW(g4p)()},playerType:"LATENCY_PLAYER_HTML5"}, h.timerName);h.C!==W.clientPlaybackNonce||Number.isNaN(h.W)||(LE("_start",h.timerName)?c=g.IW(x9)("_start",h.timerName)+h.W:g.Lx(new g.tP("attempted to log gapless pbs before CSI timeline started",{cpn:W.clientPlaybackNonce})));c&&!LE("pbs",h.timerName)&&eC(h,c)}}; eC=function(h,W,c){eq("pbs",W!=null?W:(0,g.aC)(),c!=null?c:h.timerName)}; zP=function(h){BIp();HjN();h.timerName=""}; e1k=function(h){if(h.X){var W=h.X;W.X={};W.XM={}}h.G=!1;h.C=void 0;h.W=NaN}; z1U=function(h,W){g.h1.call(this);this.fM=h;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.X=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Z={};this.W=0;if(h=W.session_data)this.sessionData=O_(h,"&");this.index=Math.max(0,Number(W.index)||0);this.loop=!!W.loop;this.startSeconds=Number(W.startSeconds)||0;this.title=W.playlist_title||"";this.description=W.playlist_description||"";this.author= W.author||W.playlist_author||"";W.video_id&&(this.items[this.index]=W);if(h=W.api)typeof h==="string"&&h.length===16?W.list="PL"+h:W.playlist=h;if(h=W.list)switch(W.listType){case "user_uploads":this.listId=new py("UU","PLAYER_"+h);break;default:var c=W.playlist_length;c&&(this.length=Number(c)||0);this.listId=Ia(h);if(h=W.video)this.items=h.slice(0),this.loaded=!0}else if(W.playlist){h=W.playlist.toString().split(",");this.index>0&&(this.items=[]);h=g.e(h);for(c=h.next();!c.done;c=h.next())(c=c.value)&& this.items.push({video_id:c});this.length=this.items.length;if(h=W.video)this.items=h.slice(0),this.loaded=!0}this.setShuffle(!!W.shuffle);if(h=W.suggestedQuality)this.quality=h;this.Z=t0(W,"playlist_");this.G=(W=W.thumbnail_ids)?W.split(","):[]}; QTl=function(h){return!!(h.playlist||h.list||h.api)}; L4d=function(h){var W=h.index+1;return W>=h.length?0:W}; iLT=function(h){var W=h.index-1;return W<0?h.length-1:W}; g.QB=function(h,W,c,V){W=W!==void 0?W:h.index;W=h.items&&W in h.items?h.items[h.order[W]]:null;var H=null;W&&(c&&(W.autoplay="1"),V&&(W.autonav="1"),H=new g.G8(h.fM,W),g.X(h,H),H.lG=!0,H.startSeconds=h.startSeconds||H.clipStart||0,h.listId&&(H.playlistId=h.listId.toString()));return H}; K4N=function(h,W){h.index=g.vr(W,0,h.length-1);h.startSeconds=0}; A2N=function(h,W){if(W.video&&W.video.length){h.title=W.title||"";h.description=W.description;h.views=W.views;h.likes=W.likes;h.dislikes=W.dislikes;h.author=W.author||"";var c=W.loop;c&&(h.loop=c);c=g.QB(h);h.items=[];for(var V=g.e(W.video),H=V.next();!H.done;H=V.next())if(H=H.value)H.video_id=H.encrypted_id,h.items.push(H);h.length=h.items.length;(W=W.index)?h.index=W:h.findIndex(c);h.setShuffle(!1);h.loaded=!0;h.W++;h.X&&h.X()}}; Mwl=function(h,W){var c,V,H,B,E,J,u;return g.P(function(d){if(d.W==1){c=g.v5();var G=h.B(),Z={context:g.jb(h),playbackContext:{contentPlaybackContext:{ancestorOrigins:G.ancestorOrigins}}},r=G.getWebPlayerContextConfig();if(r==null?0:r.encryptedHostFlags)Z.playbackContext.contentPlaybackContext.encryptedHostFlags=r.encryptedHostFlags;if(r==null?0:r.hideInfo)Z.playerParams={showinfo:!1};r=G.embedConfig;var q=h.u9;var x=W.docid||W.video_id||W.videoId||W.id;if(!x){x=W.raw_embedded_player_response;if(!x){var z= W.embedded_player_response;z&&(x=JSON.parse(z))}if(x){var L,M,U,y,T,m;x=((m=g.v((L=x)==null?void 0:(M=L.embedPreview)==null?void 0:(U=M.thumbnailPreviewRenderer)==null?void 0:(y=U.playButton)==null?void 0:(T=y.buttonRenderer)==null?void 0:T.navigationEndpoint,g.nC))==null?void 0:m.videoId)||null}else x=null}L=(L=x)?L:void 0;M=h.playlistId?h.playlistId:W.list;U=W.listType;if(M){var D;U==="user_uploads"?D={username:M}:D={playlistId:M};Ug5(r,q,L,W,D,G.experiments);Z.playlistRequest=D}else W.playlist? (D={templistVideoIds:W.playlist.toString().split(",")},Ug5(r,q,L,W,D,G.experiments),Z.playlistRequest=D):L&&(D={videoId:L},q&&G.j("embeds_enable_per_video_embed_config")?D.serializedThirdPartyEmbedConfig=q:r&&(D.serializedThirdPartyEmbedConfig=r),Z.singleVideoRequest=D);V=Z;H=g.OA(CFd);g.Qp(d,2);return g.F(d,g.CE(c,V,H),4)}if(d.W!=2)return B=d.X,E=h.B(),W.raw_embedded_player_response=B,E.DH=VY(W,g.DE(E)),E.G=E.DH==="EMBEDDED_PLAYER_MODE_PFL",B&&(J=B,J.trackingParams&&Yl(J.trackingParams)),d.return(new g.G8(E, W));u=g.CU(d);u instanceof Error||(u=Error("b259802748"));g.Qq(u);return d.return(h)})}; Ug5=function(h,W,c,V,H,B){V.index&&(H.playlistIndex=String(Number(V.index)+1));H.videoId=c?c:"";W&&B.xN("embeds_enable_per_video_embed_config")?H.serializedThirdPartyEmbedConfig=W:h&&(H.serializedThirdPartyEmbedConfig=h)}; g.i3=function(h,W){L3.get(h);L3.set(h,W)}; g.K3=function(h){g.h1.call(this);this.loaded=!1;this.player=h}; F4Q=function(){this.W=[];this.X=[]}; g.Bv=function(h,W){return W?h.X.concat(h.W):h.X}; g.AG=function(h,W){switch(W.kind){case "asr":y2Q(W,h.W);break;default:y2Q(W,h.X)}}; y2Q=function(h,W){g.jl(W,function(c){return h.equals(c)})||W.push(h)}; g.Uq=function(h){g.N.call(this);this.qn=h;this.W=new F4Q;this.Y=null;this.C=[];this.Z=[]}; g.C3=function(h,W,c){g.Uq.call(this,h);this.videoData=W;this.audioTrack=c;this.X=null;this.G=!1;this.C=W.I5;this.Z=W.lz;this.G=g.$M(W)}; g.PFl=function(h,W){var c;return h.B().j("safari_live_drm_captions_fix")&&((c=h.getVideoData())==null?0:c.bC())?!1:g.Rm(h.B())&&!W.isManifestless}; g.Mm=function(h,W){return XK(h.info.mimeType)?W?h.info.itag===W:!0:!1}; g.fAU=function(h,W){if(h.X!=null&&g.PFl(W,h.X)&&h.X.X.rawcc!=null)return!0;if(!h.Hi())return!1;W=!!h.X&&h.X.isManifestless&&Object.values(h.X.X).some(function(c){return g.Mm(c,"386")}); h=!!h.X&&!h.X.isManifestless&&g.rYN(h.X);return W||h}; g.FV=function(h,W,c,V,H,B){g.Uq.call(this,h);this.videoId=c;this.eJ=H;this.eventId=B;this.N={};this.X=null;h=V||g.wO(W).hl||"";h=h.split("_").join("-");this.G=kZ(W,{hl:h})}; bL7=function(h,W){g.N.call(this);var c=this;this.L=h;this.Y=W;this.XM={};this.X={};this.W=null;this.G=new Set;this.C=new g.lX(this);this.uX={CPf:function(){return c.Y}}; this.N=this.L.j("web_player_defer_modules");this.tq=new Map;g.X(this,this.C);this.C.U(h,"videodatachange",this.onVideoDataChange)}; ToN=function(h,W){h.W=W}; g.yB=function(h){return h.tq.get("captions")}; pgk=function(h,W){switch(W){case "ad":return Nok(h);case "annotations_module":return h.L.isEmbedsShortsMode()?h=!1:(W=h.L,h=W.B(),W=W.getVideoData(),h=h.G||W.Kl||h.controlsType==="3"?!1:h.Nn.isEmpty()&&h.playerStyle!=="annotation-editor"&&h.playerStyle!=="live-dashboard"?!!W.CM||!!g.h7(W)||!!g.WN(W):!0),h;case "asmjs":return Xgl(h);case "creatorendscreen":return tw4(h);case "embed":return g.DE(h.L.B());case "endscreen":return g.v_h(h);case "heartbeat":return h.sI();case "kids":return J0(h.L.B()); case "remote":return h.L.B().rV;case "miniplayer":return h.L.B().showMiniplayerUiWhenMinimized;case "offline":return h.L.B().Gu;case "captions":return mgl(h);case "unplugged":return g.$X(h.L.B());case "ux":return h.L.B().Jk;case "webgl":return o_l(h);case "ypc":return h.eH();case "ypc_clickwrap":return h=h.L.getVideoData(),h.tE&&!h.p8;case "yto":return h.L.j("web_player_playable_sequences_refactor")?!1:!!h.L.getVideoData().T.includes("yto");default:return g.Qq(Error("Module descriptor "+W+" does not match")), !1}}; Pv=function(h,W,c,V,H){var B;c=c===void 0?!1:c;V=V===void 0?!1:V;var E=h.tq.get(W);if(!E||V)if(H||(H=function(){Pv(h,W,c,V)}),B||(B=function(){h.L.FD(W)}),E=E||IAl(h,W,pgk(h,W),H,B))h.tq.set(W,E),E.create(),h.L.publish("modulecreated",W),c&&h.L.Dg("onApiChange")}; OLU=function(h){var W=W===void 0?!1:W;var c,V,H,B,E;return g.P(function(J){if(J.W==1)return(c=h.tq.get("asmjs"))&&!W?J.return(c):(V=L3.get("asmjs"))!=null?(H=V,J.bB(2)):g.F(J,new Promise(function(u,d){YtN(h,"asmjs",function(){var G=L3.get("asmjs");G?u(G):d("cannot load module asmjs")},d)}),3); J.W!=2&&(H=J.X);B=H;if(!B)return J.return(Promise.reject("cannot load module asmjs"));E=new B(h.L);h.tq.set("asmjs",E);E.create();return J.return(E)})}; Dgk=function(h){St4(h)&&h.mT();g_l(h)&&(Pv(h,"captions",!0),Pv(h,"endscreen"),h.lZ(),Pv(h,"creatorendscreen",!0))}; g_l=function(h){var W=h.L.getVideoData(),c=h.N&&!W.isInlinePlaybackNoAd;h.L.j("html5_defer_modules_on_ads_only")&&!W.isAd()&&(c=!1);return c}; St4=function(h){h=h.L.getVideoData();var W;if(W=h.j("web_player_defer_ad")){if(g.el(h.T,"ad")||T2N(h)||h.enableServerStitchedDai)h=!1;else{W=h.playerResponse;h=h.startSeconds;var c=W==null?void 0:W.adPlacements;if(W=c){W=Number.MAX_VALUE;c=g.e(c);for(var V=c.next();!V.done;V=c.next())if(V=V.value.adPlacementRenderer){var H=void 0,B=(H=V.config)==null?void 0:H.adPlacementConfig;H=void 0;if(((H=B)==null?void 0:H.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var E=H=void 0;B=Number((H=B)==null?void 0:(E= H.adTimeOffset)==null?void 0:E.offsetStartMilliseconds)||0;E=H=void 0;V=Number(((H=V.renderer)==null?void 0:(E=H.adBreakServiceRenderer)==null?void 0:E.prefetchMilliseconds)||0);V=B-V;V=11;h=h.api.B().S&&mO;return!(!W&&!h)}; Wm=function(h,W){return!h.api.isInline()&&!lzQ(h,nS(W))&&g.l7(W)}; xKh=function(h){h.X8.sG();if(h.Pf&&h.nE)h.nE=!1;else if(!h.api.B().CM&&!h.d8()){var W=h.api.getPlayerStateObject();g.Y(W,2)&&g.vN(h.api)||h.Ex(W);!h.api.B().Ak||W.isCued()||g.Y(W,1024)?h.D5():h.YA.isActive()?(h.P7(),h.YA.stop()):h.YA.start()}}; jPk=function(h,W){var c;if((c=h.api.getVideoData())==null?0:c.mutedAutoplay){var V,H;if((V=W.target)==null?0:(H=V.className)==null?0:H.includes("ytp-info-panel"))return!1}return g.l7(W)&&h.api.isMutedByMutedAutoplay()?(h.api.unMute(),h.api.getPresentingPlayerType()===2&&h.api.playVideo(),W=h.api.getPlayerStateObject(),!g.Y(W,4)||g.Y(W,8)||g.Y(W,2)||h.D5(),!0):!1}; azk=function(h,W,c){h.api.isFullscreen()?c<1-W&&h.api.toggleFullscreen():c>1+W&&h.api.toggleFullscreen()}; qFL=function(h){var W=TN()&&Pf()>=67&&!h.api.B().S;h=h.api.B().disableOrganicUi;return!g.bW("tizen")&&!Od&&!W&&!h}; g.cm=function(h){g.p.call(this,{D:"div",V:[{D:"div",K:"ytp-bezel-text-wrapper",V:[{D:"div",K:"ytp-bezel-text",YN:"{{title}}"}]},{D:"div",K:"ytp-bezel",J:{role:"status","aria-label":"{{label}}"},V:[{D:"div",K:"ytp-bezel-icon",YN:"{{icon}}"}]}]});this.L=h;this.W=new g.oD(this.show,10,this);h=this.L.j("delhi_modern_web_player")?1E3:500;this.X=new g.oD(this.hide,h,this);g.X(this,this.W);g.X(this,this.X);this.hide()}; $b=function(h,W,c){if(W<=0){c=QP();W="silenciado";var V=0}else c=c?{D:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{D:"path",AI:!0,J:{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"}}]}:{D:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{D:"path",AI:!0,J:{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"}}]},V=Math.floor(W),W=V+"volumen";V1(h,c,W,V+"%")}; eiU=function(h,W){W=W?{D:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{D:"path",AI:!0,K:"ytp-svg-fill",J:{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"}}]}:aL7();var c=h.L.getPlaybackRate(),V=g.hl("La velocidad es de $RATE",{RATE:String(c)});V1(h,W,V,c+"x")}; zik=function(h,W){W=W?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";V1(h,O0N(h.L),W)}; V1=function(h,W,c,V){V=V===void 0?"":V;h.updateValue("label",c===void 0?"":c);h.updateValue("icon",W);g.Y$(h.X);h.W.start();h.updateValue("title",V);g.$y(h.element,"ytp-bezel-text-hide",!V)}; QP7=function(h,W){g.p.call(this,{D:"button",LM:["ytp-button","ytp-cards-button"],J:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.DE(h.B()))},V:[{D:"span",K:"ytp-cards-button-icon-default",V:[{D:"div",K:"ytp-cards-button-icon",V:[h.B().j("player_new_info_card_format")?QI7():{D:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{D:"path",AI:!0,K:"ytp-svg-fill",J:{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"}}]}]}, {D:"div",K:"ytp-cards-button-title",YN:"Informaci\u00f3n"}]},{D:"span",K:"ytp-cards-button-icon-shopping",V:[{D:"div",K:"ytp-cards-button-icon",V:[{D:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{D:"path",K:"ytp-svg-shadow",J:{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"}},{D:"path",K:"ytp-svg-fill",J:{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"}},{D:"path",K:"ytp-svg-shadow-fill",J:{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"}}]}]},{D:"div", K:"ytp-cards-button-title",YN:"Shopping"}]}]});this.L=h;this.W=W;this.X=null;this.fade=new g.SL(this,250,!0,100);g.X(this,this.fade);g.$y(this.W,"ytp-show-cards-title",g.DE(h.B()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.MH(!0)}; Ll5=function(h,W){g.p.call(this,{D:"div",K:"ytp-cards-teaser",V:[{D:"div",K:"ytp-cards-teaser-box"},{D:"div",K:"ytp-cards-teaser-text",V:h.B().j("player_new_info_card_format")?[{D:"button",K:"ytp-cards-teaser-info-icon",J:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},V:[QI7()]},{D:"img",K:"ytp-cards-teaser-channel-avatar",J:{alt:"","aria-hidden":"true"}},{D:"span",K:"ytp-cards-teaser-label",YN:"{{text}}"},{D:"button",K:"ytp-cards-teaser-close-button",J:{"aria-label":"Cerrar"},V:[g.Gp()]}]: [{D:"span",K:"ytp-cards-teaser-label",YN:"{{text}}"}]}]});var c=this;this.L=h;this.iJ=W;this.fade=new g.SL(this,250,!1,250);this.X=null;this.S=new g.oD(this.CWk,300,this);this.N=new g.oD(this.gZE,2E3,this);this.Y=[];this.W=null;this.Z=new g.oD(function(){c.element.style.margin="0"},250); this.onClickCommand=this.G=null;g.X(this,this.fade);g.X(this,this.S);g.X(this,this.N);g.X(this,this.Z);h.B().j("player_new_info_card_format")?(g.he(h.getRootNode(),"ytp-cards-teaser-dismissible"),this.U(this.vk("ytp-cards-teaser-close-button"),"click",this.Su),this.U(this.vk("ytp-cards-teaser-info-icon"),"click",this.lk),this.U(this.vk("ytp-cards-teaser-label"),"click",this.lk)):this.listen("click",this.lk);this.U(W.element,"mouseover",this.Nk);this.U(W.element,"mouseout",this.LI);this.U(h,"cardsteasershow", this.d$W);this.U(h,"cardsteaserhide",this.NU);this.U(h,"cardstatechange",this.Iv);this.U(h,"presentingplayerstatechange",this.Iv);this.U(h,"appresize",this.hD);this.U(h,"onShowControls",this.hD);this.U(h,"onHideControls",this.zE);this.listen("mouseenter",this.RK)}; inv=function(h){g.p.call(this,{D:"button",LM:[s4.BUTTON,s4.TITLE_NOTIFICATIONS],J:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},V:[{D:"div",K:s4.TITLE_NOTIFICATIONS_ON,J:{title:"Dejar de recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},V:[g.xB()]},{D:"div",K:s4.TITLE_NOTIFICATIONS_OFF,J:{title:"Recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},V:[{D:"svg",J:{fill:"#fff",height:"24px", viewBox:"0 0 24 24",width:"24px"},V:[{D:"path",J:{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=h;this.X=!1;h.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")}; KlN=function(h,W){h.X=W;h.element.classList.toggle(s4.NOTIFICATIONS_ENABLED,h.X);var c=h.api.getVideoData();c?(W=W?c.wQ:c.AB)?(h=h.api.qB())?U0(h,W):g.Qq(Error("No innertube service available when updating notification preferences.")):g.Qq(Error("No update preferences command available.")):g.Qq(Error("No video data when updating notification preferences."))}; UKT=function(h,W,c){var V=V===void 0?800:V;var H=H===void 0?600:H;var B=document.location.protocol;h=YHL(B+"//"+h+"/signin?context=popup","feature",W,"next",B+"//"+location.hostname+"/post_login");A8D(h,c,V,H)}; A8D=function(h,W,c,V){c=c===void 0?800:c;V=V===void 0?600:V;if(h=g.qo(window,h,"loginPopup","width="+c+",height="+V+",resizable=yes,scrollbars=yes"))jW7(function(){W()}),h.moveTo((screen.width-c)/2,(screen.height-V)/2)}; g.Hm=function(h,W,c,V,H,B,E,J,u,d,G,Z){h=h.charAt(0)+h.substring(1).toLowerCase();c=c.charAt(0)+c.substring(1).toLowerCase();if(W==="0"||W==="-1")W=null;if(V==="0"||V==="-1")V=null;var r=G.B(),q=r.userDisplayName&&g.Vf(r);g.p.call(this,{D:"div",LM:["ytp-button","ytp-sb"],V:[{D:"div",K:"ytp-sb-subscribe",J:q?{title:G.B().j("player_tooltip_data_title_killswitch")?g.hl("Suscribirse como $USER_NAME",{USER_NAME:r.userDisplayName}):"","data-tooltip-title":g.hl("Suscribirse como $USER_NAME",{USER_NAME:r.userDisplayName}), "aria-label":"Suscribirse al canal","data-tooltip-image":Ly(r),"data-tooltip-opaque":String(g.DE(r)),tabindex:"0",role:"button"}:{"aria-label":"Suscribirse al canal"},V:[{D:"div",K:"ytp-sb-text",V:[{D:"div",K:"ytp-sb-icon"},h]},W?{D:"div",K:"ytp-sb-count",YN:W}:""]},{D:"div",K:"ytp-sb-unsubscribe",J:q?{title:G.j("player_tooltip_data_title_killswitch")?g.hl("Suscrito como $USER_NAME",{USER_NAME:r.userDisplayName}):"","data-tooltip-title":g.hl("Suscrito como $USER_NAME",{USER_NAME:r.userDisplayName}), "aria-label":"Anular la suscripci\u00f3n al canal","data-tooltip-image":Ly(r),"data-tooltip-opaque":String(g.DE(r)),tabindex:"0",role:"button"}:{"aria-label":"Anular la suscripci\u00f3n al canal"},V:[{D:"div",K:"ytp-sb-text",V:[{D:"div",K:"ytp-sb-icon"},c]},V?{D:"div",K:"ytp-sb-count",YN:V}:""]}],J:{"aria-live":"polite"}});var x=this;this.channelId=E;this.L=G;this.G=Z;var z=this.vk("ytp-sb-subscribe"),L=this.vk("ytp-sb-unsubscribe");B&&g.he(this.element,"ytp-sb-classic");if(H){J?this.X():this.W(); var M=function(){if(r.Pk){var y=x.channelId;if(u||d){var T={c:y};var m;g.Dq.isInitialized()&&(m=o1p(T));T=m||"";if(m=G.getVideoData())if(m=m.subscribeCommand){var D=G.qB();D?(U0(D,m,{botguardResponse:T,feature:u}),G.Iz("SUBSCRIBE",y)):g.Qq(Error("No innertube service available when updating subscriptions."))}else g.Qq(Error("No subscribe command in videoData."));else g.Qq(Error("No video data available when updating subscription."))}L.focus();L.removeAttribute("aria-hidden");z.setAttribute("aria-hidden", "true")}else UKT(g.GJ(x.L.B()),"sb_button",x.Y)},U=function(){var y=x.channelId; if(u||d){var T=G.getVideoData();U0(G.qB(),T.unsubscribeCommand,{feature:u});G.Iz("UNSUBSCRIBE",y)}z.focus();z.removeAttribute("aria-hidden");L.setAttribute("aria-hidden","true")}; this.U(z,"click",M);this.U(L,"click",U);this.U(z,"keypress",function(y){y.keyCode===13&&M(y)}); this.U(L,"keypress",function(y){y.keyCode===13&&U(y)}); this.U(G,"SUBSCRIBE",this.X);this.U(G,"UNSUBSCRIBE",this.W);this.G&&q&&(CmL(G),Ne(G,z,this),Ne(G,L,this))}else g.he(z,"ytp-sb-disabled"),g.he(L,"ytp-sb-disabled")}; FlT=function(h){g.p.call(this,{D:"div",K:"ytp-title-channel",V:[{D:"div",K:"ytp-title-beacon"},{D:"a",K:"ytp-title-channel-logo",J:{href:"{{channelLink}}",target:h.B().T,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{D:"div",K:"ytp-title-expanded-overlay",J:{"aria-hidden":"{{flyoutUnfocusable}}"},V:[{D:"div",K:"ytp-title-expanded-heading",V:[{D:"div",K:"ytp-title-expanded-title",V:[{D:"a",YN:"{{expandedTitle}}",J:{href:"{{channelTitleLink}}",target:h.B().T,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{D:"div",K:"ytp-title-expanded-subtitle",YN:"{{expandedSubtitle}}",J:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var W=this;this.api=h;this.channel=this.vk("ytp-title-channel");this.W=this.vk("ytp-title-channel-logo");this.channelName=this.vk("ytp-title-expanded-title");this.N=this.vk("ytp-title-expanded-overlay");this.G=this.X=this.subscribeButton=null;this.Y=!1;h.createClientVe(this.W,this,36925);h.createClientVe(this.channelName,this, 37220);g.DE(this.api.B())&&CnL(this);this.U(h,"videodatachange",this.FI);this.U(h,"videoplayerreset",this.FI);this.U(this.channelName,"click",function(c){W.api.logClick(W.channelName);g.qo(window,MS4(W));c.preventDefault()}); this.U(this.W,"click",this.IHk);this.FI()}; y8v=function(h){if(!h.api.B().qU){var W=h.api.getVideoData(),c=new g.Hm("Suscribirse",null,"Suscrito/a",null,!0,!1,W.e5,W.subscribed,"channel_avatar",null,h.api,!0);h.api.createServerVe(c.element,h);var V;h.api.setTrackingParams(c.element,((V=W.subscribeButtonRenderer)==null?void 0:V.trackingParams)||null);h.U(c.element,"click",function(){h.api.logClick(c.element)}); h.subscribeButton=c;g.X(h,h.subscribeButton);h.subscribeButton.kN(h.N);h.subscribeButton.hide();var H=new inv(h.api);h.X=H;g.X(h,H);H.kN(h.N);H.hide();h.U(h.api,"SUBSCRIBE",function(){W.Om&&(H.show(),h.api.logVisibility(H.element,!0))}); h.U(h.api,"UNSUBSCRIBE",function(){W.Om&&(H.hide(),h.api.logVisibility(H.element,!1),KlN(H,!1))})}}; CnL=function(h){var W=h.api.B();y8v(h);h.updateValue("flyoutUnfocusable","true");h.updateValue("channelTitleFocusable","-1");h.updateValue("shouldHideExpandedTitleForA11y","true");h.updateValue("shouldHideExpandedSubtitleForA11y","true");W.W||W.Rz||(h.U(h.channel,"mouseenter",h.wF),h.U(h.channel,"mouseleave",h.fE),h.U(h.channel,"focusin",h.wF),h.U(h.channel,"focusout",function(c){h.channel.contains(c.relatedTarget)||h.fE()})); h.G=new g.oD(function(){h.isExpanded()&&(h.api.logVisibility(h.channelName,!1),h.subscribeButton&&(h.subscribeButton.hide(),h.api.logVisibility(h.subscribeButton.element,!1)),h.X&&(h.X.hide(),h.api.logVisibility(h.X.element,!1)),h.channel.classList.remove("ytp-title-expanded"),h.channel.classList.add("ytp-title-show-collapsed"))},500); g.X(h,h.G);h.U(h.channel,Pnh,function(){fzk(h)}); h.U(h.api,"onHideControls",h.Oa);h.U(h.api,"appresize",h.Oa);h.U(h.api,"fullscreentoggled",h.Oa)}; fzk=function(h){h.channel.classList.remove("ytp-title-show-collapsed");h.channel.classList.remove("ytp-title-show-expanded")}; bn5=function(h){var W=h.api.getPlayerSize();return g.DE(h.api.B())&&W.width>=524}; MS4=function(h){var W=h.api.B(),c=h.api.getVideoData(),V=g.io(W)+c.Ak;g.xM(c)&&(V="https://music.youtube.com"+c.Ak);if(!g.DE(W))return V;W={};g.LQ(h.api,"addEmbedsConversionTrackingParams",[W]);return g.r0(V,W)}; Bm=function(h){var W=g.RB({"aria-haspopup":"true"});g.Eg.call(this,W,h);this.listen("keydown",this.X)}; E4=function(h,W){h.element.setAttribute("aria-haspopup",String(W))}; T8l=function(h,W){g.p.call(this,{D:"div",K:"ytp-user-info-panel",J:{"aria-label":"Informaci\u00f3n del usuario"},V:h.B().Pk&&!h.j("embeds_web_always_enable_signed_out_state")?[{D:"div",K:"ytp-user-info-panel-icon",YN:"{{icon}}"},{D:"div",K:"ytp-user-info-panel-content",V:[{D:"div",K:"ytp-user-info-panel-info",J:{tabIndex:"{{userInfoFocusable}}",role:"text"},YN:"{{watchingAsUsername}}"},{D:"div",K:"ytp-user-info-panel-info",J:{tabIndex:"{{userInfoFocusable2}}",role:"text"},YN:"{{watchingAsEmail}}"}]}]: [{D:"div",K:"ytp-user-info-panel-icon",YN:"{{icon}}"},{D:"div",K:"ytp-user-info-panel-content",V:[{D:"div",V:[{D:"text",J:{tabIndex:"{{userInfoFocusable}}"},YN:"Saliste de la cuenta"}]},{D:"div",K:"ytp-user-info-panel-login",V:[{D:"a",J:{tabIndex:"{{userInfoFocusable2}}",role:"button"},YN:h.B().qU?"":"Acceder a YouTube"}]}]}]});this.qn=h;this.X=W;h.B().Pk||h.B().qU||this.U(this.vk("ytp-user-info-panel-login"),"click",this.Fh);this.closeButton=new g.p({D:"button",LM:["ytp-collapse","ytp-button"],J:{title:"Cerrar"}, V:[g.zp()]});this.closeButton.kN(this.element);g.X(this,this.closeButton);this.U(window,"blur",this.hide);this.U(document,"click",this.q3);this.FI()}; tS5=function(h,W,c){g.Um.call(this,h);this.YZ=W;this.HV=c;this.getVideoUrl=new Bm(6);this.F6=new Bm(5);this.g6=new Bm(4);this.MU=new Bm(3);this.m3=new g.Eg(g.RB({href:"{{href}}",target:this.L.B().T},void 0,!0),2,"Solucionar problema de reproducci\u00f3n");this.showVideoInfo=new g.Eg(g.RB(),1,"Estad\u00edsticas");this.tQ=new g.sJ({D:"div",LM:["ytp-copytext","ytp-no-contextmenu"],J:{draggable:"false",tabindex:"1"},YN:"{{text}}"});this.XT=new A_(this.L,this.tQ);this.gG=this.Lv=null;g.DE(this.L.B())&& (this.closeButton=new g.p({D:"button",LM:["ytp-collapse","ytp-button"],J:{title:"Cerrar"},V:[g.zp()]}),g.X(this,this.closeButton),this.closeButton.kN(this.element),this.closeButton.listen("click",this.Dz,this));g.DE(this.L.B())&&(this.M5=new g.Eg(g.RB(),8,"Cuenta"),g.X(this,this.M5),this.zx(this.M5,!0),this.M5.listen("click",this.w0V,this),h.createClientVe(this.M5.element,this.M5,137682));this.L.B().Er&&(this.R2=new jY("En bucle",7),g.X(this,this.R2),this.zx(this.R2,!0),this.R2.listen("click",this.Q1f, this),h.createClientVe(this.R2.element,this.R2,28661));g.X(this,this.getVideoUrl);this.zx(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.PWH,this);h.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.X(this,this.F6);this.zx(this.F6,!0);this.F6.listen("click",this.vZ9,this);h.createClientVe(this.F6.element,this.F6,28660);g.X(this,this.g6);this.zx(this.g6,!0);this.g6.listen("click",this.hzg,this);h.createClientVe(this.g6.element,this.g6,28658);g.X(this,this.MU);this.zx(this.MU, !0);this.MU.listen("click",this.dUE,this);g.X(this,this.m3);this.zx(this.m3,!0);this.m3.listen("click",this.sRO,this);g.X(this,this.showVideoInfo);this.zx(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.uig,this);g.X(this,this.tQ);this.tQ.listen("click",this.BEV,this);g.X(this,this.XT);W=document.queryCommandSupported&&document.queryCommandSupported("copy");OUl("Chromium")>=43&&(W=!0);OUl("Firefox")<=40&&(W=!1);W&&(this.Lv=new g.p({D:"textarea",K:"ytp-html5-clipboard",J:{readonly:"", tabindex:"-1"}}),g.X(this,this.Lv),this.Lv.kN(this.element));var V;(V=this.M5)==null||V.setIcon(UzT());var H;(H=this.R2)==null||H.setIcon(fL4());this.MU.setIcon({D:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{"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.m3.setIcon(eON());this.showVideoInfo.setIcon(zOv());this.U(h,"onLoopChange",this.onLoopChange);this.U(h,"videodatachange",this.onVideoDataChange);N8d(this);X64(this,this.L.getVideoData())}; R$=function(h,W){var c=!1;if(h.Lv){var V=h.Lv.element;V.value=W;V.select();try{c=document.execCommand("copy")}catch(H){}}c?h.YZ.NU():(h.tQ.rW(W,"text"),g.Ft(h.YZ,h.XT),il(h.tQ.element),h.Lv&&(h.Lv=null,N8d(h)));return c}; X64=function(h,W){var c=h.L.B(),V=h.L.getPresentingPlayerType()===2,H=!V||W.isListed;H=!c.Wk&&!!W.videoId&&H;c.playerStyle!=="play"?c="https://support.google.com/youtube/?p=report_playback":(c={contact_type:"playbackissue",html5:1,ei:W.eventId,v:W.videoId,p:"movies_playback"},W.W&&(c.fmt=W.W.itag),W.clientPlaybackNonce&&(c.cpn=W.clientPlaybackNonce),W.partnerId&&(c.partnerid=W.partnerId),c=g.r0("//support.google.com/googleplay/",c));h.g6.pJ(H&&W.allowEmbed);h.getVideoUrl.pJ(H);h.F6.pJ(H&&!W.isLivePlayback); h.m3.rW(c,"href");var B;(B=h.R2)==null||B.pJ(!W.isLivePlayback&&!V);var E;(E=h.M5)==null||E.pJ(!V)}; N8d=function(h){var W=!!h.Lv;g.BV(h.MU,W?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener la informaci\u00f3n de depuraci\u00f3n");E4(h.MU,!W);g.BV(h.g6,W?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener el c\u00f3digo de inserci\u00f3n");E4(h.g6,!W);g.BV(h.getVideoUrl,W?"Copiar URL del video":"Obtener la URL del video");E4(h.getVideoUrl,!W);g.BV(h.F6,W?"Copiar URL del video en el momento actual":"Obtener la URL del video en el momento actual");E4(h.F6,!W);h.g6.setIcon(W?nkN():null);h.getVideoUrl.setIcon(W? r7():null);h.F6.setIcon(W?r7():null)}; vV5=function(h){return g.DE(h.L.B())?h.M5:h.R2}; oV5=function(h,W){g.MH.call(this,h);this.HV=W;this.Y=new g.lX(this);this.XI=new g.oD(this.zsH,1E3,this);this.Wk=this.G=null;g.X(this,this.Y);g.X(this,this.XI);W=this.L.B();h.createClientVe(this.element,this,28656);g.he(this.element,"ytp-contextmenu");this.L.B().experiments.xN("delhi_modern_web_player")&&g.lo(W)&&g.he(this.element,"ytp-delhi-modern-contextmenu");mK4(this);this.hide()}; mK4=function(h){g.zR(h.Y);var W=h.L.B();W.playerStyle==="gvn"||W.W||W.Rz||(W=h.L.Bk(),h.Y.U(W,"contextmenu",h.tOk),h.Y.U(W,"touchstart",h.onTouchStart,null,!0),h.Y.U(W,"touchmove",h.aM,null,!0),h.Y.U(W,"touchend",h.aM,null,!0))}; p64=function(h){h.L.isFullscreen()?g.ge(h.L,h.element,10):h.kN($K(h).body)}; J4=function(h,W,c){c=c===void 0?240:c;g.p.call(this,{D:"button",LM:["ytp-button","ytp-copylink-button"],J:{title:h.j("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.DE(h.B()))},V:[{D:"div",K:"ytp-copylink-icon",YN:"{{icon}}"},{D:"div",K:"ytp-copylink-title",YN:"Copiar v\u00ednculo",J:{"aria-hidden":"true"}}]});this.api=h;this.X=W;this.W=c;this.visible=!1;this.tooltip=this.X.sX();W=h.B();this.tooltip.element.setAttribute("aria-live", "polite");g.$y(this.element,"ytp-show-copylink-title",g.DE(W));h.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.U(h,"videodatachange",this.FI);this.U(h,"videoplayerreset",this.FI);this.U(h,"appresize",this.FI);this.FI();this.addOnDisposeCallback(g.Tr(this.tooltip,this.element))}; IzQ=function(h){var W=h.api.B(),c=h.api.getVideoData(),V=h.api.Bk().getPlayerSize().width;W=W.G;return!!c.videoId&&V>=h.W&&c.z3&&!c.B0&&!h.api.isEmbedsShortsMode()&&!W}; YFD=function(h){h.updateValue("icon",J1());if(h.api.B().W)h.tooltip.V9(h.element,"Se copi\u00f3 el v\u00ednculo en el portapapeles");else{h.updateValue("title-attr","Se copi\u00f3 el v\u00ednculo en el portapapeles");h.updateValue("tooltip-title","Se copi\u00f3 el v\u00ednculo en el portapapeles");h.tooltip.XK();h.tooltip.V9(h.element);var W=h.listen("mouseleave",function(){h.v0(W);h.FI();h.tooltip.PY()})}}; OnU=function(h,W){return g.P(function(c){if(c.W==1)return g.Qp(c,2),g.F(c,navigator.clipboard.writeText(W),4);if(c.W!=2)return c.return(!0);g.CU(c);var V=c.return,H=!1,B=g.Zr("TEXTAREA");B.value=W;B.setAttribute("readonly","");var E=h.api.getRootNode();E.appendChild(B);if(tZ){var J=window.getSelection();J.removeAllRanges();var u=document.createRange();u.selectNodeContents(B);J.addRange(u);B.setSelectionRange(0,W.length)}else B.select();try{H=document.execCommand("copy")}catch(d){}E.removeChild(B); return V.call(c,H)})}; SFh=function(h){g.p.call(this,{D:"div",K:"ytp-doubletap-ui-legacy",V:[{D:"div",K:"ytp-doubletap-fast-forward-ve"},{D:"div",K:"ytp-doubletap-rewind-ve"},{D:"div",K:"ytp-doubletap-static-circle",V:[{D:"div",K:"ytp-doubletap-ripple"}]},{D:"div",K:"ytp-doubletap-overlay-a11y"},{D:"div",K:"ytp-doubletap-seek-info-container",V:[{D:"div",K:"ytp-doubletap-arrows-container",V:[{D:"span",K:"ytp-doubletap-base-arrow"},{D:"span",K:"ytp-doubletap-base-arrow"},{D:"span",K:"ytp-doubletap-base-arrow"}]},{D:"div", K:"ytp-doubletap-tooltip",V:[{D:"div",K:"ytp-seek-icon-text-container",V:[{D:"div",K:"ytp-seek-icon",YN:"{{seekIcon}}"},{D:"div",K:"ytp-chapter-seek-text-legacy",YN:"{{seekText}}"}]},{D:"div",K:"ytp-doubletap-tooltip-label",YN:"{{seekTime}}"}]}]}]});this.L=h;this.Y=new g.oD(this.show,10,this);this.W=new g.oD(this.hide,700,this);this.S=this.G=0;this.XI=this.N=!1;this.X=this.vk("ytp-doubletap-static-circle");g.X(this,this.Y);g.X(this,this.W);this.hide();this.Z=this.vk("ytp-doubletap-fast-forward-ve"); this.T=this.vk("ytp-doubletap-rewind-ve");this.L.createClientVe(this.Z,this,28240);this.L.createClientVe(this.T,this,28239);this.L.logVisibility(this.Z,!0);this.L.logVisibility(this.T,!0);this.N=h.j("web_show_cumulative_seek_time");this.XI=h.j("web_center_static_circles")}; gVl=function(h,W){W=g.hl("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:W.toString()});h.updateValue("seekTime",W)}; DKp=function(h){K1.call(this,h,!1,!0);this.DH=[];this.Sx=[];this.element.setAttribute("data-overlay-order","9");this.Z=!0;this.badge.element.classList.add("ytp-featured-product");this.zV=new g.p({D:"div",K:"ytp-featured-product-open-in-new"});g.X(this,this.zV);this.countdownTimer=new g.p({D:"text",K:"ytp-featured-product-countdown",YN:"{{content}}"});this.countdownTimer.hide();g.X(this,this.countdownTimer);this.W=new g.p({D:"div",K:"ytp-featured-product-trending",V:[{D:"div",K:"ytp-featured-product-trending-icon"}, {D:"text",K:"ytp-featured-product-trending-text",YN:"{{trendingOffer}}"}]});this.W.hide();g.X(this,this.W);this.overflowButton=new g.p({D:"button",LM:["ytp-featured-product-overflow-icon","ytp-button"],J:{"aria-haspopup":"true"}});this.overflowButton.hide();g.X(this,this.overflowButton);this.S=new g.p({D:"text",K:"ytp-featured-product-exclusive-countdown",YN:"{{content}}",J:{id:"exclusiveCountdown","aria-hidden":"true"}});this.S.hide();g.X(this,this.S);this.N=new g.p({D:"div",K:"ytp-featured-product-exclusive-container", J:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},V:[{D:"div",K:"ytp-featured-product-exclusive-badge-container",V:[{D:"div",K:"ytp-featured-product-exclusive-badge",V:[{D:"text",K:"ytp-featured-product-exclusive-badge-text",YN:"{{exclusive}}",J:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.S]});this.N.hide();g.X(this,this.N);this.banner=new g.p({D:"a",K:"ytp-featured-product-container",V:[{D:"div",K:"ytp-featured-product-thumbnail",V:[{D:"img",J:{src:"{{thumbnail}}"}},this.zV]},{D:"div", K:"ytp-featured-product-details",V:[{D:"text",K:"ytp-featured-product-title",YN:"{{title}}"},this.L.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{D:"div",K:"ytp-featured-product-price-container",J:{"aria-label":"{{priceA11yText}}"},V:[{D:"text",K:"ytp-featured-product-price-when-promotion-text-enabled",YN:"{{price}}",J:{"aria-hidden":"true"}},{D:"text",K:"ytp-featured-product-promotion-text",YN:"{{promotionText}}",J:{"aria-hidden":"true"}}]}:{D:"div",J:{"aria-label":"{{priceA11yText}}"}, V:[{D:"text",K:"ytp-featured-product-price",YN:"{{price}}",J:{"aria-hidden":"true"}},{D:"text",K:"ytp-featured-product-sales-original-price",YN:"{{salesOriginalPrice}}",J:{"aria-hidden":"true"}},{D:"text",K:"ytp-featured-product-price-drop-reference-price",YN:"{{priceDropReferencePrice}}",J:{"aria-hidden":"true"}}]},this.L.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{D:"div",K:"ytp-featured-product-when-promotion-text-enabled",V:[{D:"text",K:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", YN:"{{affiliateDisclaimer}}"},this.W,{D:"text",K:"ytp-featured-product-vendor-when-promotion-text-enabled",YN:"{{vendor}}"}]}:{D:"div",V:[{D:"text",K:"ytp-featured-product-affiliate-disclaimer",YN:"{{affiliateDisclaimer}}"},this.L.j("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.N:null,this.W,{D:"text",K:"ytp-featured-product-vendor",YN:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.X(this,this.banner);this.banner.kN(this.G.element);this.U(this.L,g.mZ("featured_product"), this.Mzk);this.U(this.L,g.om("featured_product"),this.NH);this.U(this.L,"videodatachange",this.onVideoDataChange);this.U(this.overflowButton.element,"click",this.sY);this.U(h,"featuredproductdismissed",this.eM)}; w6U=function(h){var W,c;h=(W=h.X)==null?void 0:(c=W.bannerData)==null?void 0:c.itemData;var V,H,B;return(h==null||!h.affiliateDisclaimer)&&(h==null?0:(V=h.exclusivesData)==null?0:V.exclusiveOfferLabelText)&&(h==null?0:(H=h.exclusivesData)==null?0:H.expirationTimestampMs)&&(h==null?0:(B=h.exclusivesData)==null?0:B.exclusiveOfferCountdownText)?!0:!1}; hVk=function(h){var W,c,V,H,B=(W=h.X)==null?void 0:(c=W.bannerData)==null?void 0:(V=c.itemData)==null?void 0:(H=V.exclusivesData)==null?void 0:H.expirationTimestampMs;W=(Number(B)-Date.now())/1E3;if(W>0){if(W<604800){var E,J,u,d;c=(E=h.X)==null?void 0:(J=E.bannerData)==null?void 0:(u=J.itemData)==null?void 0:(d=u.exclusivesData)==null?void 0:d.exclusiveOfferCountdownText;if(c!==void 0)for(E=Date.now(),J=g.e(c),u=J.next();!u.done;u=J.next())if(u=u.value,u!==void 0&&u.text!==void 0&&(d=Number(u.textDisplayStartTimestampMs), !isNaN(d)&&E>=d)){u.insertCountdown?(W=u.text.replace(/\$0/,String(bm({seconds:W}))),h.S.rW(W)):h.S.rW(u.text);h.S.show();break}}var G,Z,r,q;h.N.update({exclusive:(G=h.X)==null?void 0:(Z=G.bannerData)==null?void 0:(r=Z.itemData)==null?void 0:(q=r.exclusivesData)==null?void 0:q.exclusiveOfferLabelText});h.N.show();uj(h);var x;(x=h.U5)==null||x.start()}else kzN(h)}; kzN=function(h){var W;(W=h.U5)==null||W.stop();h.S.hide();h.N.hide();dD(h)}; WYl=function(h){var W,c,V=(W=h.X)==null?void 0:(c=W.bannerData)==null?void 0:c.itemData;return h.L.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(V==null||!V.priceReplacementText)&&(V==null?0:V.promotionText)?V==null?void 0:V.promotionText.content:null}; cvl=function(h){var W,c,V=(W=h.X)==null?void 0:(c=W.bannerData)==null?void 0:c.itemData,H,B;if(!(V!=null&&V.priceReplacementText||h.L.j("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(V==null?0:(H=V.dealsData)==null?0:(B=H.sales)==null?0:B.originalPrice)){var E,J;return V==null?void 0:(E=V.dealsData)==null?void 0:(J=E.sales)==null?void 0:J.originalPrice}return null}; V_5=function(h){var W,c,V=(W=h.X)==null?void 0:(c=W.bannerData)==null?void 0:c.itemData,H,B,E,J;if(!((V==null?0:V.priceReplacementText)||h.L.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(V==null?0:(H=V.dealsData)==null?0:(B=H.sales)==null?0:B.originalPrice))&&(V==null?0:(E=V.dealsData)==null?0:(J=E.priceDrop)==null?0:J.referencePrice)){var u,d;return V==null?void 0:(u=V.dealsData)==null?void 0:(d=u.priceDrop)==null?void 0:d.referencePrice}return null}; $t4=function(h){var W,c,V=(W=h.X)==null?void 0:(c=W.bannerData)==null?void 0:c.itemData;if(V==null?0:V.priceReplacementText)return V==null?void 0:V.priceReplacementText;if((V==null?0:V.promotionText)&&h.L.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var H;return(V==null?void 0:V.price)+" "+(V==null?void 0:(H=V.promotionText)==null?void 0:H.content)}var B,E;if(V==null?0:(B=V.dealsData)==null?0:(E=B.sales)==null?0:E.originalPrice){var J,u;return V==null?void 0:(J=V.dealsData)== null?void 0:(u=J.sales)==null?void 0:u.salesPriceAccessibilityLabel}var d,G;if(V==null?0:(d=V.dealsData)==null?0:(G=d.priceDrop)==null?0:G.referencePrice){var Z,r;return(V==null?void 0:V.price)+" "+(V==null?void 0:(Z=V.dealsData)==null?void 0:(r=Z.priceDrop)==null?void 0:r.referencePrice)}return V==null?void 0:V.price}; sAh=function(h){if(h.L.j("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var W,c,V;return h.W.Of?null:(W=h.X)==null?void 0:(c=W.bannerData)==null?void 0:(V=c.itemData)==null?void 0:V.vendorName}var H,B,E,J,u,d;return h.W.Of||h.N.Of||((H=h.X)==null?0:(B=H.bannerData)==null?0:(E=B.itemData)==null?0:E.affiliateDisclaimer)?null:(J=h.X)==null?void 0:(u=J.bannerData)==null?void 0:(d=u.itemData)==null?void 0:d.vendorName}; B15=function(h,W){G_(h);if(W){var c=g.ey.getState().entities;c=Ok(c,"featuredProductsEntity",W);if(c!=null&&c.productsData){W=[];c=g.e(c.productsData);for(var V=c.next();!V.done;V=c.next()){V=V.value;var H=void 0;if((H=V)!=null&&H.identifier&&V.featuredSegments){h.DH.push(V);var B=void 0;H=g.e((B=V)==null?void 0:B.featuredSegments);for(B=H.next();!B.done;B=H.next()){var E=B.value;B=Ho7(E.startTimeSec);B!==void 0&&(E=Ho7(E.endTimeSec),W.push(new g.t$(B*1E3,E===void 0?0x7ffffffffffff:E*1E3,{id:V.identifier, namespace:"featured_product"})))}}}h.L.Fi(W)}}}; dD=function(h){if(h.trendingOfferEntityKey){var W=g.ey.getState().entities;if(W=Ok(W,"trendingOfferEntity",h.trendingOfferEntityKey)){var c,V,H;W.encodedSkuId!==((c=h.X)==null?void 0:(V=c.bannerData)==null?void 0:(H=V.itemData)==null?void 0:H.encodedOfferSkuId)?uj(h):(h.W.update({trendingOffer:W.shortLabel+" \u2022 "+W.countLabel}),h.W.show(),h.banner.update({vendor:sAh(h)}))}else uj(h)}else uj(h)}; uj=function(h){h.W.hide();h.banner.update({vendor:sAh(h)})}; G_=function(h){h.DH=[];h.NH();h.L.zw("featured_product")}; EOl=function(h){var W,c,V,H,B=(W=h.X)==null?void 0:(c=W.bannerData)==null?void 0:(V=c.itemData)==null?void 0:(H=V.hiddenProductOptions)==null?void 0:H.dropTimestampMs;W=(Number(B)-Date.now())/1E3;h.countdownTimer.rW(bm({seconds:W}));if(W>0){var E;(E=h.hI)==null||E.start()}}; RV7=function(h){var W;(W=h.hI)==null||W.stop();h.countdownTimer.hide()}; Ho7=function(h){if(h!==void 0&&h.trim()!==""&&(h=Math.trunc(Number(h.trim())),!(isNaN(h)||h<0)))return h}; Zol=function(h,W,c){g.p.call(this,{D:"div",LM:["ytp-info-panel-action-item"],V:[{D:"div",K:"ytp-info-panel-action-item-disclaimer",YN:"{{disclaimer}}"},{D:"a",LM:["ytp-info-panel-action-item-button","ytp-button"],J:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},V:[{D:"div",K:"ytp-info-panel-action-item-icon",YN:"{{icon}}"},{D:"div",K:"ytp-info-panel-action-item-label",YN:"{{label}}"}]}]});this.L=h;this.X=c;this.disclaimer=this.vk("ytp-info-panel-action-item-disclaimer");this.button= this.vk("ytp-info-panel-action-item-button");this.oT=!1;this.L.createServerVe(this.element,this,!0);this.listen("click",this.onClick);h="";c=g.v(W==null?void 0:W.onTap,Kx);var V=g.v(c,g.C4);this.oT=!1;V?(h=V.url||"",h.startsWith("//")&&(h="https:"+h),this.oT=!0,g.u4(this.button,g.Eu(h))):(V=g.v(c,Jvd))&&!this.X?((h=V.phoneNumbers)&&h.length>0?(h="sms:"+h[0],V.messageText&&(h+="?&body="+encodeURI(V.messageText))):h="",this.oT=!0,g.u4(this.button,g.Eu(h,[u4Q]))):(c=g.v(c,dth))&&!this.X&&(h=c.phoneNumber? "tel:"+c.phoneNumber:"",this.oT=!0,g.u4(this.button,g.Eu(h,[GxU])));var H;if(c=(H=W.disclaimerText)==null?void 0:H.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var B;this.update({label:(B=W.bodyText)==null?void 0:B.content,icon:lw(),disclaimer:c})}else{this.disclaimer.style.display="none";var E;this.update({label:(E=W.bodyText)==null?void 0:E.content,icon:lw()})}this.L.setTrackingParams(this.element,W.trackingParams||null);this.oT&&(this.W={externalLinkData:{url:h}})}; rvl=function(h,W){var c=Wn();g.Vv.call(this,h,{D:"div",K:"ytp-info-panel-detail-skrim",V:[{D:"div",K:"ytp-info-panel-detail",J:{role:"dialog",id:c},V:[{D:"div",K:"ytp-info-panel-detail-header",V:[{D:"div",K:"ytp-info-panel-detail-title",YN:"{{title}}"},{D:"button",LM:["ytp-info-panel-detail-close","ytp-button"],J:{"aria-label":"Cerrar"},V:[g.Gp()]}]},{D:"div",K:"ytp-info-panel-detail-body",YN:"{{body}}"},{D:"div",K:"ytp-info-panel-detail-items"}]}]},250);this.X=W;this.items=this.vk("ytp-info-panel-detail-items"); this.G=new g.lX(this);this.itemData=[];this.Y=c;this.U(this.vk("ytp-info-panel-detail-close"),"click",this.NU);this.U(this.vk("ytp-info-panel-detail-skrim"),"click",this.NU);this.U(this.vk("ytp-info-panel-detail"),"click",function(V){V.stopPropagation()}); g.X(this,this.G);this.L.createServerVe(this.element,this,!0);this.U(h,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",h.getVideoData());this.hide()}; qo5=function(h,W){h=g.e(h.itemData);for(var c=h.next();!c.done;c=h.next())c=c.value,c.L.logVisibility(c.element,W)}; nO4=function(h,W){g.p.call(this,{D:"div",K:"ytp-info-panel-preview",J:{"aria-live":"assertive","aria-atomic":"true","aria-owns":W.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.DE(h.B()))},V:[{D:"div",K:"ytp-info-panel-preview-text",YN:"{{text}}"},{D:"div",K:"ytp-info-panel-preview-chevron",YN:"{{chevron}}"}]});var c=this;this.L=h;this.Zh=this.X=this.videoId=null;this.G=this.showControls=this.W=!1;this.U(this.element,"click",function(){h.logClick(c.element);h.d8();sg(W)}); this.fade=new g.SL(this,250,!1,100);g.X(this,this.fade);this.L.createServerVe(this.element,this,!0);this.U(h,"videodatachange",this.onVideoDataChange);this.U(h,"presentingplayerstatechange",this.ZD);this.U(this.L,"paidcontentoverlayvisibilitychange",this.KD);this.U(this.L,"infopaneldetailvisibilitychange",this.KD);var V=h.getVideoData()||{};xt4(V)&&lZN(this,V);this.U(h,"onShowControls",this.oK);this.U(h,"onHideControls",this.UY)}; lZN=function(h,W){if(!W.tE||!h.L.gA()){var c=W.Jc||1E4,V=xt4(W);h.X?W.videoId&&W.videoId!==h.videoId&&(g.Y$(h.X),h.videoId=W.videoId,V?(jA7(h,c,W),h.qd()):(h.NU(),h.X.dispose(),h.X=null)):V&&(W.videoId&&(h.videoId=W.videoId),jA7(h,c,W),h.qd())}}; xt4=function(h){var W,c,V,H;return!!((W=h.Qj)==null?0:(c=W.title)==null?0:c.content)||!!((V=h.Qj)==null?0:(H=V.bodyText)==null?0:H.content)}; jA7=function(h,W,c){h.X&&h.X.dispose();h.X=new g.oD(h.VzW,W,h);g.X(h,h.X);var V;W=((V=c.Qj)==null?void 0:V.trackingParams)||null;h.L.setTrackingParams(h.element,W);var H;var B,E;if(c==null?0:(B=c.Qj)==null?0:(E=B.title)==null?0:E.content){var J;V=(H=c.Qj)==null?void 0:(J=H.title)==null?void 0:J.content;var u,d;if((u=c.Qj)==null?0:(d=u.bodyText)==null?0:d.content)V+=" \u2022 ";H=V}else H="";var G,Z;c=((G=c.Qj)==null?void 0:(Z=G.bodyText)==null?void 0:Z.content)||"";h.update({text:H+c,chevron:g.d7()})}; aZT=function(h,W){h.X&&(g.Y(W,8)?(h.W=!0,h.qd(),h.X.start()):(g.Y(W,2)||g.Y(W,64))&&h.videoId&&(h.videoId=null))}; Zn=function(h){var W=null;try{W=h.toLocaleString("es-419",{style:"percent"})}catch(c){W=h.toLocaleString(void 0,{style:"percent"})}return W}; rD=function(h,W){var c=0;h=g.e(h);for(var V=h.next();!(V.done||V.value.startTime>W);V=h.next())c++;return c===0?c:c-1}; eVD=function(h,W){for(var c=0,V=g.e(h),H=V.next();!H.done;H=V.next()){H=H.value;if(W=H.timeRangeStartMillis&&W2147483647?"0":String(h)}; xb=function(h,W,c){var V=h.api.getCurrentTime(),H=Avp(h,V);h=Avp(h,V+W);return{startMediaTimeMs:H,endMediaTimeMs:h,seekSource:c}}; Ut4=function(h){var W,c=(W=h.api.getVideoData())==null?void 0:W.Gw();return h.api.getPresentingPlayerType(c)!==2}; qB=function(h,W){h.G.sE=W;g.$y(h.api.getRootNode(),"ytp-probably-keyboard-focus",W);g.$y(h.contextMenu.element,"ytp-probably-keyboard-focus",W)}; nH=function(h,W,c,V){var H=g.yB(h.api.Pi());if(H&&H.loaded){var B=h.api.getSubtitlesUserSettings();H=void 0;for(var E=0;E0?W[0]:null;var c=g.EH("ytp-chrome-bottom"),V=g.EH("ytp-ad-module");h.Y=!(c==null||!c.contains(W));h.Z=!(V==null||!V.contains(W));h.T=!(W==null||!W.hasAttribute("data-tooltip-target-fixed"));return W}; XC7=function(h,W,c){if(!h.N){if(W){h.tooltipRenderer=W;W=h.tooltipRenderer.text;var V=!1,H;(W==null?0:(H=W.runs)==null?0:H.length)&&W.runs[0].text&&(h.update({title:W.runs[0].text.toString()}),V=!0);g.cW(h.title,V);W=h.tooltipRenderer.detailsText;H=!1;var B;if((W==null?0:(B=W.runs)==null?0:B.length)&&W.runs[0].text){V=W.runs[0].text.toString();B=V.indexOf("$TARGET_ICON");if(B>-1)if(h.tooltipRenderer.targetId){W=[];V=V.split("$TARGET_ICON");var E=new g.cn({D:"span",K:"ytp-promotooltip-details-icon", V:[T1d[h.tooltipRenderer.targetId]]});g.X(h,E);for(var J=[],u=g.e(V),d=u.next();!d.done;d=u.next())d=new g.cn({D:"span",K:"ytp-promotooltip-details-component",YN:d.value}),g.X(h,d),J.push(d);V.length===2?(W.push(J[0].element),W.push(E.element),W.push(J[1].element)):V.length===1&&(B===0?(W.push(E.element),W.push(J[0].element)):(W.push(J[0].element),W.push(E.element)));B=W.length?W:null}else B=null;else B=V;if(B){if(typeof B!=="string")for(g.xS(h.details),H=g.e(B),B=H.next();!B.done;B=H.next())h.details.appendChild(B.value); else h.update({details:B});H=!0}}g.cW(h.details,H);H=h.tooltipRenderer.acceptButton;B=!1;var G,Z,r;((G=g.v(H,g.DJ))==null?0:(Z=G.text)==null?0:(r=Z.runs)==null?0:r.length)&&g.v(H,g.DJ).text.runs[0].text&&(h.update({acceptButtonText:g.v(H,g.DJ).text.runs[0].text.toString()}),B=!0);g.cW(h.acceptButton,B);G=h.tooltipRenderer.dismissButton;Z=!1;var q,x,z;((q=g.v(G,g.DJ))==null?0:(x=q.text)==null?0:(z=x.runs)==null?0:z.length)&&g.v(G,g.DJ).text.runs[0].text&&(h.update({dismissButtonText:g.v(G,g.DJ).text.runs[0].text.toString()}), Z=!0);g.cW(h.dismissButton,Z)}c&&(h.G=c);h.X=bol(h);h.S=!1;h.L.B().j("web_player_hide_nitrate_promo_tooltip")||h.pJ(!0);N1Q(h);h.Of&&!h.XI&&(h.XI=!0,h.uX.cF(0));h.W&&h.L.logVisibility(h.element,h.Of)}}; e7=function(h){h.pJ(!1);h.W&&h.L.logVisibility(h.element,h.Of)}; t_l=function(h){var W,c,V,H=((W=g.v(h.acceptButton,g.DJ))==null?void 0:(c=W.text)==null?void 0:(V=c.runs)==null?void 0:V.length)&&!!g.v(h.acceptButton,g.DJ).text.runs[0].text,B,E,J;W=((B=g.v(h.dismissButton,g.DJ))==null?void 0:(E=B.text)==null?void 0:(J=E.runs)==null?void 0:J.length)&&!!g.v(h.dismissButton,g.DJ).text.runs[0].text;return H||W}; N1Q=function(h){var W;if(!(W=!h.X)){W=h.X;var c=window.getComputedStyle(W);W=c.display==="none"||c.visibility==="hidden"||W.getAttribute("aria-hidden")==="true"}if(W||h.L.isMinimized())h.pJ(!1);else if(W=g.WW(h.X),W.width&&W.height){h.L.mZ(h.element,h.X);var V=h.L.Bk().getPlayerSize().height;c=g.WW(h.vk("ytp-promotooltip-container")).height;h.Y?h.element.style.top=V-c-W.height-12+"px":h.T||(V=h.L.Hv().height-c-W.height-12,h.element.style.top=V+"px");V=h.vk("ytp-promotooltip-pointer");var H=g.kS(h.X, h.L.getRootNode()),B=Number(h.element.style.left.replace(/[^\d\.]/g,""));h=h.L.isFullscreen()?18:12;V.style.left=H.x-B+W.width/2-h+"px";V.style.top=c+"px"}else h.pJ(!1)}; z_=function(h){g.p.call(this,{D:"button",LM:["ytp-replay-button","ytp-button"],J:{title:h.j("player_tooltip_data_title_killswitch")?"Volver a reproducir":"","data-tooltip-title":"Volver a reproducir"},V:[g.ae()]});this.L=h;this.U(h,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.So(h.getPlayerStateObject());Ne(this.L,this.element,this)}; Q1=function(h,W){W=W===void 0?240:W;g.p.call(this,{D:"button",LM:["ytp-button","ytp-search-button"],J:{title:h.j("player_tooltip_data_title_killswitch")?"Buscar":"","data-tooltip-title":"Buscar","data-tooltip-opaque":String(g.DE(h.B()))},V:[{D:"div",K:"ytp-search-icon",YN:"{{icon}}"},{D:"div",K:"ytp-search-title",YN:"Buscar"}]});this.api=h;this.W=W;this.visible=!1;this.updateValue("icon",{D:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{D:"path",K:"ytp-svg-fill",J:{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"}}]}); h.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.X();this.U(h,"appresize",this.X);this.U(h,"videodatachange",this.X);Ne(h,this.element,this)}; LH=function(h){g.p.call(this,{D:"div",K:"ytp-seek-overlay",V:[{D:"div",LM:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],V:[{D:"div",LM:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],V:[{D:"svg",J:{viewBox:"0 0 22 32",width:"22",height:"24"},V:[{D:"path",J:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{D:"div",K:"ytp-seek-overlay-duration",YN:"{{durationBack}}"}]},{D:"div",LM:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],V:[{D:"div",K:"ytp-seek-overlay-duration",YN:"{{durationForward}}"},{D:"div",LM:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],V:[{D:"svg",J:{viewBox:"0 0 22 32",width:"22",height:"24"},V:[{D:"path",J:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{D:"div",K:"ytp-seek-overlay-message",V:[{D:"div",K:"ytp-seek-overlay-message-icon",YN:"{{icon}}"},{D:"div",K:"ytp-seek-overlay-message-text", YN:"{{text}}"}]}]});var W=this;this.L=h;this.S=0;this.X="hidden";this.Z=this.vk("ytp-seek-overlay-animation-back");this.T=this.vk("ytp-seek-overlay-animation-forward");this.XI=this.vk("ytp-seek-overlay-message");this.N=new g.oD(function(){vO5(W)},g.DF(this.L.B().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.X(this,this.N);this.L.createClientVe(this.T,this,28240);this.L.createClientVe(this.Z,this,28239);this.L.logVisibility(this.T,!0);this.L.logVisibility(this.Z,!0);this.hide()}; mtT=function(h,W){h.G=h.Y.animate([{offset:0,opacity:W,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:1}],{duration:200,fill:"forwards"});h.G.addEventListener("finish",function(){h.G=void 0;h.N.start();h.X="lingering"})}; oOT=function(h,W,c,V){c=c===void 0?!1:c;V=V===void 0?!1:V;var H=[];H.push({offset:0,transform:"translateX("+(h.W===-1?20:-20)+"px)",opacity:c?"0":"1"});c&&H.push({offset:.5,opacity:"1"});H.push({offset:1,transform:"translateX(0)"});c=W.animate(H,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});W=W.querySelector("path");H=[];H.push({offset:0,d:h.W===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'});V&&H.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"}); h={offset:1,d:h.W===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};V&&(h.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");H.push(h);W.animate(H,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return c}; pCQ=function(h){var W=h.Y.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);W.classList.add("ytp-seek-overlay-arrow-additional");W.classList.remove("ytp-seek-overlay-arrow-persistent");h.Y.appendChild(W);oOT(h,W,!0,!0).addEventListener("finish",function(){W.remove()})}; vO5=function(h,W,c){c=c===void 0?!0:c;h.G=h.Y.animate([{offset:0,opacity:W===void 0?1:W},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});c&&(h.G.addEventListener("finish",function(){h.G=void 0;IZQ(h);h.hide()}),h.X="fading-out")}; Yok=function(h){var W=Number(getComputedStyle(h.Y).opacity),c;(c=h.G)==null||c.cancel();h.G=void 0;return W}; IZQ=function(h){h.S=0;h.X="hidden";h.W=void 0;h.Y=void 0;h.N.stop();h.G=void 0}; Ook=function(h,W,c){h.updateValue("text",W);if(c){a:{switch(c){case "PREMIUM_STANDALONE":W=F1v();break a;case "PREMIUM_STANDALONE_CAIRO":W=yPp();break a}W=void 0}h.updateValue("icon",W)}W=g.e(h.XI.getAnimations());for(c=W.next();!c.done;c=W.next())c.value.cancel();h.XI.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){h.updateValue("text","");h.updateValue("icon","")})}; ij=function(h,W,c,V){V=V===void 0?240:V;g.p.call(this,{D:"button",LM:["ytp-button","ytp-share-button"],J:{title:h.j("player_tooltip_data_title_killswitch")?"Compartir":"","data-tooltip-title":"Compartir","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.DE(h.B()))},V:[{D:"div",K:"ytp-share-icon",YN:"{{icon}}"},{D:"div",K:"ytp-share-title",YN:"Compartir"}]});this.api=h;this.X=W;this.W=c;this.G=V;this.visible=!1;this.tooltip=this.X.sX();h.createClientVe(this.element,this, 28664);this.listen("click",this.onClick);this.U(h,"videodatachange",this.FI);this.U(h,"videoplayerreset",this.FI);this.U(h,"appresize",this.FI);this.U(h,"presentingplayerstatechange",this.FI);this.FI();this.addOnDisposeCallback(g.Tr(this.tooltip,this.element))}; So7=function(h){var W=h.api.B(),c=h.api.getVideoData(),V=g.DE(W)&&g.Io(h.api)&&g.Y(h.api.getPlayerStateObject(),128);W=W.G||W.disableSharing&&h.api.getPresentingPlayerType()!==2||!c.showShareButton||c.z3||V||c.B0||!1;V=h.api.Bk().getPlayerSize().width;return!!c.videoId&&V>=h.G&&!W}; gOk=function(h,W){W.name!=="InvalidStateError"&&W.name!=="AbortError"&&(W.name==="NotAllowedError"?(h.X.d8(),sg(h.W,h.element,!1)):g.Qq(W))}; wCN=function(h,W){var c=Wn(),V=h.B();c={D:"div",K:"ytp-share-panel",J:{id:Wn(),role:"dialog","aria-labelledby":c},V:[{D:"div",K:"ytp-share-panel-inner-content",V:[{D:"div",K:"ytp-share-panel-title",J:{id:c},YN:"Compartir"},{D:"a",LM:["ytp-share-panel-link","ytp-no-contextmenu"],J:{href:"{{link}}",target:V.T,title:"Compartir v\u00ednculo","aria-label":"{{shareLinkWithUrl}}"},YN:"{{linkText}}"},{D:"label",K:"ytp-share-panel-include-playlist",V:[{D:"input",K:"ytp-share-panel-include-playlist-checkbox", J:{type:"checkbox",checked:"true"}},"Incluir playlist"]},{D:"div",K:"ytp-share-panel-loading-spinner",V:[Lz()]},{D:"div",K:"ytp-share-panel-service-buttons",YN:"{{buttons}}"},{D:"div",K:"ytp-share-panel-error",YN:"Error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{D:"button",LM:["ytp-share-panel-close","ytp-button"],J:{title:"Cerrar"},V:[g.Gp()]}]};g.Vv.call(this,h,c,250);var H=this;this.moreButton=null;this.api=h;this.tooltip=W.sX();this.G=[];this.N= this.vk("ytp-share-panel-inner-content");this.closeButton=this.vk("ytp-share-panel-close");this.U(this.closeButton,"click",this.NU);this.addOnDisposeCallback(g.Tr(this.tooltip,this.closeButton));this.Y=this.vk("ytp-share-panel-include-playlist-checkbox");this.U(this.Y,"click",this.FI);this.X=this.vk("ytp-share-panel-link");this.addOnDisposeCallback(g.Tr(this.tooltip,this.X));this.api.createClientVe(this.X,this,164503);this.U(this.X,"click",function(B){B.preventDefault();H.api.logClick(H.X);var E= H.api.getVideoUrl(!0,!0,!1,!1);E=Dtk(H,E);g.zv(E,H.api,B)&&H.api.Iz("SHARE_CLICKED")}); this.listen("click",this.Jb);this.U(h,"videoplayerreset",this.hide);this.U(h,"fullscreentoggled",this.onFullscreenToggled);this.U(h,"onLoopRangeChange",this.V6);this.hide()}; Wid=function(h,W){kxl(h);for(var c=W.links||W.shareTargets,V=0,H={},B=0;B0&&!D&&!T?(y.length===2&&(y=["noreferrer"]),g.qo(q,z,r,y[0]),q=VaT()):(L=U.join(","),TA()&&q.navigator&&q.navigator.standalone&&r&&r!="_self"?(L=g.Zr("A"),g.u4(L,z),L.target=r,M&&(L.rel="noreferrer"),((x=x.attributionsrc)||x==="")&&L.setAttribute("attributionsrc",x),x=document.createEvent("MouseEvent"), x.initMouseEvent("click",!0,!0,q,1),L.dispatchEvent(x),q=VaT()):M?(q=g.qo(q,"",r,L),x=g.$u(z),q&&(q.opener=null,x===""&&(x="javascript:''"),x='',x=ZQ(x),(z=q.document)&&z.write&&(z.write(rF(x)),z.close()))):((q=g.qo(q,z,r,L))&&x.noopener&&(q.opener=null),q&&x.noreferrer&&(q.opener=null)));q&&(q.opener||(q.opener=window),q.focus());Z.preventDefault()}}}(H)); H.Jv.addOnDisposeCallback(g.Tr(h.tooltip,H.Jv.element));J==="Facebook"?h.api.createClientVe(H.Jv.element,H.Jv,164504):J==="Twitter"&&h.api.createClientVe(H.Jv.element,H.Jv,164505);h.U(H.Jv.element,"click",function(G){return function(){h.api.logClick(G.Jv.element)}}(H)); h.api.logVisibility(H.Jv.element,!0);h.G.push(H.Jv);V++}}var u=W.more||W.moreLink,d=new g.p({D:"a",LM:["ytp-share-panel-service-button","ytp-button"],V:[{D:"span",K:"ytp-share-panel-service-button-more",V:[{D:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{D:"rect",J:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",J:{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"}}]}]}],J:{href:u,target:"_blank",title:"M\u00e1s"}});d.listen("click",function(G){var Z=u;h.api.logClick(h.moreButton.element);Z=Dtk(h,Z);g.zv(Z,h.api,G)&&h.api.Iz("SHARE_CLICKED")}); d.addOnDisposeCallback(g.Tr(h.tooltip,d.element));h.api.createClientVe(d.element,d,164506);h.U(d.element,"click",function(){h.api.logClick(d.element)}); h.api.logVisibility(d.element,!0);h.G.push(d);h.moreButton=d;h.updateValue("buttons",h.G)}; Dtk=function(h,W){var c={};g.DE(h.api.B())&&(g.LQ(h.api,"addEmbedsConversionTrackingParams",[c]),W=g.r0(W,c));return W}; kxl=function(h){for(var W=g.e(h.G),c=W.next();!c.done;c=W.next())c=c.value,c.detach(),g.hA(c);h.G=[]}; KH=function(h){return h===void 0||h.startSec===void 0||h.endSec===void 0?!1:!0}; cVN=function(h,W){h.startSec+=W;h.endSec+=W}; $y7=function(h){K1.call(this,h);this.W=this.X=this.isContentForward=this.S=!1;this.element.setAttribute("data-overlay-order","8");Vsk(this);this.U(this.L,"changeProductsInVideoVisibility",this.vdV);this.U(this.L,"videodatachange",this.onVideoDataChange)}; s65=function(h){h.N&&h.mW.element.removeChild(h.N.element);h.N=void 0}; BG4=function(h,W){return W.map(function(c){var V,H;if((c=(V=g.v(c,HtD))==null?void 0:(H=V.thumbnail)==null?void 0:H.thumbnails)&&c.length!==0)return c[0].url}).filter(function(c){return c!==void 0}).map(function(c){c=new g.p({D:"img", K:"ytp-suggested-action-product-thumbnail",J:{alt:"",src:c}});g.X(h,c);return c})}; EoL=function(h,W){h.isContentForward=W;g.$y(h.badge.element,"ytp-suggested-action-badge-content-forward",W)}; A4=function(h){var W=h.isContentForward&&!h.Vy();g.$y(h.badge.element,"ytp-suggested-action-badge-preview-collapsed",W&&h.X);g.$y(h.badge.element,"ytp-suggested-action-badge-preview-expanded",W&&h.W)}; U4=function(h,W,c){return new g.t$(h*1E3,W*1E3,{priority:9,namespace:c})}; Rkd=function(h){h.L.zw("shopping_overlay_visible");h.L.zw("shopping_overlay_preview_collapsed");h.L.zw("shopping_overlay_preview_expanded");h.L.zw("shopping_overlay_expanded")}; Vsk=function(h){h.U(h.L,g.mZ("shopping_overlay_visible"),function(){h.RV(!0)}); h.U(h.L,g.om("shopping_overlay_visible"),function(){h.RV(!1)}); h.U(h.L,g.mZ("shopping_overlay_expanded"),function(){h.Wk=!0;iY(h)}); h.U(h.L,g.om("shopping_overlay_expanded"),function(){h.Wk=!1;iY(h)}); h.U(h.L,g.mZ("shopping_overlay_preview_collapsed"),function(){h.X=!0;A4(h)}); h.U(h.L,g.om("shopping_overlay_preview_collapsed"),function(){h.X=!1;A4(h)}); h.U(h.L,g.mZ("shopping_overlay_preview_expanded"),function(){h.W=!0;A4(h)}); h.U(h.L,g.om("shopping_overlay_preview_expanded"),function(){h.W=!1;A4(h)})}; dyL=function(h){g.p.call(this,{D:"div",K:"ytp-shorts-title-channel",V:[{D:"a",K:"ytp-shorts-title-channel-logo",J:{href:"{{channelLink}}",target:h.B().T,"aria-label":"{{channelLogoLabel}}"}},{D:"div",K:"ytp-shorts-title-expanded-heading",V:[{D:"div",K:"ytp-shorts-title-expanded-title",V:[{D:"a",YN:"{{expandedTitle}}",J:{href:"{{channelTitleLink}}",target:h.B().T,tabIndex:"0"}}]}]}]});var W=this;this.api=h;this.X=this.vk("ytp-shorts-title-channel-logo");this.channelName=this.vk("ytp-shorts-title-expanded-title"); this.subscribeButton=null;h.createClientVe(this.X,this,36925);this.U(this.X,"click",function(c){W.api.logClick(W.X);g.qo(window,JVv(W));c.preventDefault()}); h.createClientVe(this.channelName,this,37220);this.U(this.channelName,"click",function(c){W.api.logClick(W.channelName);g.qo(window,JVv(W));c.preventDefault()}); uBN(this);this.U(h,"videodatachange",this.FI);this.U(h,"videoplayerreset",this.FI);this.FI()}; uBN=function(h){if(!h.api.B().qU){var W=h.api.getVideoData(),c=new g.Hm("Suscribirse",null,"Suscrito/a",null,!0,!1,W.e5,W.subscribed,"channel_avatar",null,h.api,!0);h.api.createServerVe(c.element,h);var V;h.api.setTrackingParams(c.element,((V=W.subscribeButtonRenderer)==null?void 0:V.trackingParams)||null);h.U(c.element,"click",function(){h.api.logClick(c.element)}); h.subscribeButton=c;g.X(h,h.subscribeButton);h.subscribeButton.kN(h.element)}}; JVv=function(h){var W=h.api.B(),c=h.api.getVideoData();c=g.io(W)+c.Ak;if(!g.DE(W))return c;W={};g.LQ(h.api,"addEmbedsConversionTrackingParams",[W]);return g.r0(c,W)}; CH=function(h){g.Vv.call(this,h,{D:"button",LM:["ytp-skip-intro-button","ytp-popup","ytp-button"],V:[{D:"div",K:"ytp-skip-intro-button-text",YN:"Omitir introducci\u00f3n"}]},100);var W=this;this.G=!1;this.X=new g.oD(function(){W.hide()},5E3); this.Lj=this.Ah=NaN;g.X(this,this.X);this.S=function(){W.show()}; this.N=function(){W.hide()}; this.Y=function(){var c=W.L.getCurrentTime();c>W.Ah/1E3&&c0?{D:"svg",J:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{D:"path",LM:["ytp-circle-arrow","ytp-svg-fill"],J:{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"}}, {D:"text",LM:["ytp-jump-button-text","ytp-svg-fill"],J:{x:"7.05",y:"15.05"}}]}:{D:"svg",J:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{D:"path",LM:["ytp-circle-arrow","ytp-svg-fill"],J:{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"}}, {D:"text",LM:["ytp-jump-button-text","ytp-svg-fill"],J:{x:"6.5",y:"15"}}]}]});var c=this;this.L=h;this.X=W;this.W=new g.oD(function(){c.G?(c.G=!1,c.W.start()):c.element.classList.remove("ytp-jump-spin","backwards")},250); this.G=!1;(W=W>0)?this.L.createClientVe(this.element,this,36843):this.L.createClientVe(this.element,this,36844);var V=g.hl(W?"Avanzar $SECONDS segundos (\u2192)":"Retroceder $SECONDS segundos (\u2190)",{SECONDS:Math.abs(this.X).toString()});this.L.j("player_tooltip_data_title_killswitch")?this.update({title:V,"data-title-no-tooltip":V,"aria-keyshortcuts":W?"\u2192":"\u2190"}):this.update({"tooltip-title":V,"data-title-no-tooltip":V,"aria-keyshortcuts":W?"\u2192":"\u2190"});this.Y=this.element.querySelector(".ytp-jump-button-text"); this.Y.textContent=Math.abs(this.X).toString();this.listen("click",this.onClick,this);Ne(h,this.element,this)}; j6T=function(h,W){W?h.element.classList.add("ytp-jump-button-enabled"):h.element.classList.remove("ytp-jump-button-enabled");h.L.logVisibility(h.element,W);h.L.XK()}; T_=function(h,W){FC.call(this,h,W,"timedMarkerCueRange","Ver momentos clave");this.U(h,g.om("timedMarkerCueRange"),this.kd);this.U(h,"updatemarkervisibility",this.updateVideoData)}; a0v=function(h){var W,c=(W=h.L.getVideoData())==null?void 0:W.rE;if(c)for(h=h.Y.yg,c=g.e(c),W=c.next();!W.done;W=c.next())if(W=h[W.value]){var V=void 0,H=void 0,B=void 0;if(((V=W.onTap)==null?void 0:(H=V.innertubeCommand)==null?void 0:(B=H.changeEngagementPanelVisibilityAction)==null?void 0:B.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return W}}; NB=function(h){var W=h.j("web_enable_pip_on_miniplayer");g.p.call(this,{D:"button",LM:["ytp-miniplayer-button","ytp-button"],J:{title:h.j("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},V:["{{icon}}"]});this.L=h;this.visible=!1;this.listen("click",this.onClick);this.U(h,"fullscreentoggled",this.FI);this.L.j("player_tooltip_data_title_killswitch")? this.update({title:g.X1(h,"Reproductor en miniatura","i"),"data-title-no-tooltip":"Reproductor en miniatura",icon:ekU(this,W)}):this.update({"tooltip-title":g.X1(h,"Reproductor en miniatura","i"),"data-title-no-tooltip":"Reproductor en miniatura",icon:ekU(this,W)});Ne(h,this.element,this);h.createClientVe(this.element,this,62946);this.FI()}; ekU=function(h,W){return h.L.j("delhi_modern_web_player_icons")?{D:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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"}}]}:W?{D:"svg",J:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},V:[{D:"g",J:{transform:"translate(96, -96) scale(0.8)"},V:[{D:"path",AI:!0,J:{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"}}]}]}:Mth()}; XC=function(h,W,c,V,H,B){B=B===void 0?!1:B;var E={D:"div",LM:["ytp-input-slider-section"],V:[{D:"input",K:"ytp-input-slider",J:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};H&&E.V.unshift(H);B&&E.LM.push("ytp-vertical-slider");g.p.call(this,E);this.Y=h;this.N=W;this.Z=c;this.initialValue=V;this.header=H;this.W=this.vk("ytp-input-slider");this.X=V?V:h;this.init();this.U(this.W,"input",this.G);this.U(this.W,"keydown", this.S)}; t4=function(h,W){h.X=W;h.updateValue("slidervalue",h.X);h.W.valueAsNumber=h.X;zkD(h,W)}; zkD=function(h,W){h.W.style.setProperty("--yt-slider-shape-gradient-percent",(W-h.Y)/(h.N-h.Y)*100+"%")}; vm=function(h){var W=h.isMuted()?0:h.getVolume();XC.call(this,0,100,1,W,void 0,!0);this.L=h;this.XI=fk(this.Pk,10,this);this.T=!1;this.U(h,"onVolumeChange",this.onVolumeChange);this.U(this.element,"wheel",this.Wk)}; Q67=function(h,W){g.p.call(this,{D:"div",J:{tabindex:"0",title:h.j("player_tooltip_data_title_killswitch")?"Volumen":"","data-tooltip-title":"Volumen","data-tooltip-offset-y":"-120"},LM:["ytp-volume-popover"]});var c=this;this.isVisible=!1;this.tooltip=W.sX();this.W=new vm(h);g.X(this,this.W);this.W.kN(this.element);this.X=new g.oD(function(){mw(c,!1)},300); this.listen("mouseenter",function(){c.X.stop()}); this.listen("mouseleave",function(){c.X.start()}); this.listen("focus",function(){c.X.stop()}); this.U(this.W.W,"focus",function(){c.X.stop()}); this.listen("focusout",function(){c.X.start();c.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.Tr(W.sX(),this.element));g.X(this,this.X)}; mw=function(h,W){h.element.classList.toggle("ytp-volume-popover-hovering",W);h.isVisible=W;(h=h.element.closest(".ytp-chrome-bottom"))&&h.classList.toggle("ytp-volume-popover-showing",W)}; o$=function(h,W,c){c=c===void 0?!1:c;var V=h.B().mW?{"aria-keyshortcuts":"m","aria-label":"{{aria-label}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}","data-tooltip-title":"{{tooltip-title}}",title:h.j("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};V=h.j("delhi_modern_web_player")?{D:"div",K:"ytp-mute-button",V:[{D:"button",J:V,LM:["ytp-volume-icon", "ytp-button"],YN:"{{icon}}"}]}:{D:"button",LM:["ytp-mute-button","ytp-button"],J:V,V:[{D:"div",K:"ytp-volume-icon",YN:"{{icon}}"}]};g.p.call(this,V);this.L=h;this.Nn=c;this.W=null;this.S=this.Pk=this.T=this.Z=NaN;this.zV=this.XI=null;this.N=[];this.Y=[];this.visible=!1;this.G=this.X=this.Wk=null;h.j("delhi_modern_web_player")&&this.update({"data-priority":4});c=this.L.B();this.updateValue("icon",QP());this.tooltip=W.sX();this.updateValue("dataTooltipOffsetY",0);this.G=g.EH("ytp-volume-icon",this.element); V=this.L.j("delhi_modern_web_player_icons")?{D:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",LM:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],J:{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"}},{D:"path",K:"ytp-svg-volume-animation-small-ripple",J:{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"}},{D:"path",K:"ytp-svg-volume-animation-big-ripple",J:{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"}}]}:{D:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{D:"defs",V:[{D:"clipPath",J:{id:"ytp-svg-volume-animation-mask"},V:[{D:"path",J:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{D:"path",J:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{D:"path",K:"ytp-svg-volume-animation-mover",J:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{D:"clipPath",J:{id:"ytp-svg-volume-animation-slash-mask"},V:[{D:"path",K:"ytp-svg-volume-animation-mover", J:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{D:"path",AI:!0,LM:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],J:{"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"}},{D:"path",AI:!0,LM:["ytp-svg-fill","ytp-svg-volume-animation-hider"],J:{"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.W=new g.cn(V);g.X(this,this.W);this.XI=this.W.vk("ytp-svg-volume-animation-speaker");this.zV=this.XI.getAttribute("d");this.N=g.H3("ytp-svg-volume-animation-mover",this.W.element);this.L.j("delhi_modern_web_player_icons");this.Y=g.H3("ytp-svg-volume-animation-hider",this.W.element);this.L.j("delhi_modern_web_player_icons");this.mW=new Wv;g.X(this,this.mW);this.DH=new Wv;g.X(this,this.DH);this.U(h,"appresize",this.nI);this.U(h,"onVolumeChange",this.onVolumeChange);h.j("delhi_modern_web_player")? this.listen("click",this.Nuz):this.listen("click",this.XH);c.mW?(h.j("delhi_modern_web_player")&&(this.X=new Q67(h,W),this.X.kN(this.element),g.X(this,this.X),this.U(this.G,"mouseover",this.H2),this.U(this.G,"focus",this.H2),this.U(this.G,"mouseout",this.xR),this.U(this.G,"blur",this.xR)),c=h.j("delhi_modern_web_player")?this.G:this.element,this.addOnDisposeCallback(g.Tr(W.sX(),c))):LiD(this);this.message=null;h.createClientVe(this.element,this,28662);this.nI(h.Bk().getPlayerSize());this.setVolume(h.getVolume(), h.isMuted())}; itT=function(h,W){if(h.L.B().mW){var c=g.X1(h.L,"Silenciar","m"),V=g.X1(h.L,"Activar sonido","m");c=W?V:c;h.L.B().j("player_tooltip_data_title_killswitch")?h.updateValue("title",c):h.update({"tooltip-title":c,"aria-label":c});h.update({"data-title-no-tooltip":W?"Activar sonido":"Silenciar"});h.tooltip.XK()}}; UyQ=function(h,W){h.Z=W;var c=h.zV;h.L.j("delhi_modern_web_player_icons")?h.W.vk("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(W+") translate(-22,-12)")):W&&(c+=bwk(Kip,AVQ,W));h.XI.setAttribute("d",c)}; CE4=function(h,W){var c;W===1?c=h.L.j("delhi_modern_web_player_icons")?{D:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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"}}]}:QP():c=h.W;h.Pk=W;if(h.L.j("delhi_modern_web_player_icons"))h.W.vk("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-W+") translate(-18,-12)")),h.W.vk("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(h.Z-W+") translate(-22, -12)"));else{for(var V=20*W,H=0;H=3&&h.L.getPresentingPlayerType()!==2}; bt7=function(h){var W=pQ(h.L.Pi());return W?h.X?W.mA():W.J0():!1}; yVU=function(h){var W={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},c=h.playlist!=null&&h.playlist.mA();c=g.Io(h.L)&&(!h.X||c);var V=h.X&&g.Df(h.L),H=bt7(h),B=h.X&&h.L.getPresentingPlayerType()===5,E=g.X1(h.L,"Siguiente","SHIFT+n"),J=g.X1(h.L,"Anterior","SHIFT+p");if(B)W.title="Iniciar video",W["tooltip-title"]="Iniciar video";else if(h.G)W.title="Volver a reproducir",W["tooltip-title"]="Volver a reproducir";else if(c){var u= null;h.playlist&&(u=g.QB(h.playlist,h.X?L4d(h.playlist):iLT(h.playlist)));if(u){if(u.videoId){var d=h.playlist.listId;W.url=h.L.B().getVideoUrl(u.videoId,d?d.toString():void 0)}W.text=u.title;W.duration=u.lengthText?u.lengthText:u.lengthSeconds?g.xx(u.lengthSeconds):null;W.preview=u.YL("mqdefault.jpg")}h.X?(W.title=E,W["tooltip-title"]=E,W["data-title-no-tooltip"]="Siguiente",W["aria-keyshortcuts"]="SHIFT+n"):(W.title=J,W["tooltip-title"]=J,W["data-title-no-tooltip"]="Anterior",W["aria-keyshortcuts"]= "SHIFT+p")}else if(V){if(J=(u=h.videoData)==null?void 0:g.jy(u))W.url=J.gV(),W.text=J.title,W.duration=J.lengthText?J.lengthText:J.lengthSeconds?g.xx(J.lengthSeconds):null,W.preview=J.YL("mqdefault.jpg");W.title=E;W["tooltip-title"]=E;W["data-title-no-tooltip"]="Siguiente";W["aria-keyshortcuts"]="SHIFT+n"}W.disabled=!V&&!c&&!H&&!B;h.update(W);h.S=!!W.url;V||c||h.G||H||B?h.W||(h.W=g.Tr(h.tooltip,h.element),h.N=h.listen("click",h.onClick,h)):h.W&&(h.W(),h.W=null,h.v0(h.N),h.N=null);h.tooltip.XK();g.$y(h.element, "ytp-playlist-ui",h.X&&(c||h.L.j("web_hide_next_button")))}; Fip=function(h,W){return h?W?{D:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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"}}]}:qq():W?{D:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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"}}]}:PLN()}; NGv=function(h,W){g.p.call(this,{D:"div",K:"ytp-fine-scrubbing",V:[{D:"div",K:"ytp-fine-scrubbing-draggable",V:[{D:"div",K:"ytp-fine-scrubbing-thumbnails",J:{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}}"}}]},{D:"div",J:{"aria-hidden":"true"},K:"ytp-fine-scrubbing-cursor"},{D:"div", K:"ytp-fine-scrubbing-seek-time",J:{"aria-hidden":"true"},YN:"{{seekTime}}"},{D:"div",K:"ytp-fine-scrubbing-play",V:[h.j("delhi_modern_web_player_icons")?jL():n4()],J:{title:"Reproducir desde este momento",role:"button"}},{D:"div",K:"ytp-fine-scrubbing-dismiss",V:[g.Gp()],J:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});var c=this;this.api=h;this.N=this.vk("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.vk("ytp-fine-scrubbing-dismiss");this.Pk=this.vk("ytp-fine-scrubbing-draggable"); this.playButton=this.vk("ytp-fine-scrubbing-play");this.thumbnails=[];this.W=[];this.Nn=this.X=0;this.mW=void 0;this.XI=NaN;this.CM=this.T=this.G=this.Z=0;this.Y=[];this.interval=this.frameCount=0;this.S=160;this.scale=1;this.Rz=0;this.isEnabled=this.zV=!1;TGl(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.Tr(W,this.dismissButton));this.addOnDisposeCallback(g.Tr(W,this.playButton));this.DH=new g.mG(this.Pk,!0);this.DH.subscribe("dragstart",this.zb,this);this.DH.subscribe("dragmove",this.bF, this);this.DH.subscribe("dragend",this.xr,this);this.U(h,"SEEK_COMPLETE",this.tb);h.j("web_fix_fine_scrubbing_false_play")&&this.U(h,"rootnodemousedown",function(V){c.Wk=V}); this.N.addEventListener("keydown",function(){}); g.X(this,this.DH);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.N,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; TGl=function(h,W){var c=g.xx(W),V=g.hl("Saltar a: $PROGRESS",{PROGRESS:g.xx(W,!0)});h.update({ariamin:0,ariamax:Math.floor(h.api.getDuration()),arianow:Math.floor(W),arianowtext:V,seekTime:c})}; X$5=function(h){h.XI=NaN;h.T=0;h.Z=h.G}; my4=function(h){var W=h.api.X2();if(W){var c=90*h.scale,V=sP(W,160*h.scale);if(W=W.levels[V]){h.S=W.width;if(!h.Y.length){V=[];for(var H=HT(W,W.HE()),B=W.columns*W.rows,E=W.frameCount,J=0;J<=H;J++)for(var u=Eh.Y.length;)V= void 0,(V=h.thumbnails.pop())==null||V.dispose();for(;h.thumbnails.lengthc.length;)V=void 0,(V=h.W.pop())==null||V.dispose(); for(;h.W.length-c?-W/c*h.interval*.5:-(W+c/2)/c*h.interval}; ooT=function(h){return-((h.N.offsetWidth||(h.frameCount-1)*h.S*h.scale)-h.X/2)}; ts4=function(){g.p.call(this,{D:"div",K:"ytp-fine-scrubbing-thumbnail"})}; vop=function(){g.p.call(this,{D:"div",K:"ytp-fine-scrubbing-chapter-title",V:[{D:"div",K:"ytp-fine-scrubbing-chapter-title-content",YN:"{{chapterTitle}}"}]})}; I0D=function(h){g.p.call(this,{D:"div",K:"ytp-heat-map-chapter",V:[{D:"svg",K:"ytp-heat-map-svg",J:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},V:[{D:"defs",V:[{D:"clipPath",J:{id:"{{id}}"},V:[{D:"path",K:"ytp-heat-map-path",J:{d:"",fill:"white"}}]},{D:"linearGradient",J:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},V:[{D:"stop",J:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{D:"stop",J:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{D:"rect",K:"ytp-heat-map-graph",J:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{D:"rect",K:"ytp-heat-map-hover",J:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{D:"rect",K:"ytp-heat-map-play",J:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{D:"path",K:"ytp-modern-heat-map",J:{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=h;this.Z=this.vk("ytp-heat-map-svg");this.N=this.vk("ytp-heat-map-path");this.Y=this.vk("ytp-heat-map-graph");this.S=this.vk("ytp-heat-map-play");this.X=this.vk("ytp-heat-map-hover");this.G=this.vk("ytp-modern-heat-map");this.oT=!1;this.W=60;h=""+g.EI(this);this.update({id:h});h="url(#"+h+")";this.Y.setAttribute("clip-path",h);this.S.setAttribute("clip-path",h);this.X.setAttribute("clip-path", h)}; YyL=function(h,W){W>0&&(h.W=W,h.Z.style.height=h.W+"px")}; O4=function(){g.p.call(this,{D:"div",K:"ytp-chapter-hover-container",V:[{D:"div",K:"ytp-progress-bar-padding"},{D:"div",K:"ytp-progress-list",V:[{D:"div",LM:["ytp-play-progress","ytp-swatch-background-color"]},{D:"div",K:"ytp-progress-linear-live-buffer"},{D:"div",K:"ytp-load-progress"},{D:"div",K:"ytp-hover-progress"},{D:"div",K:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.W=this.vk("ytp-progress-list");this.N=this.vk("ytp-progress-linear-live-buffer"); this.Y=this.vk("ytp-ad-progress-list");this.S=this.vk("ytp-load-progress");this.Z=this.vk("ytp-play-progress");this.G=this.vk("ytp-hover-progress");this.X=this.vk("ytp-chapter-hover-container")}; S7=function(h,W){g.oY(h.X,"width",W)}; OtL=function(h,W){g.oY(h.X,"margin-right",W+"px")}; SyN=function(){this.W=this.position=this.G=this.X=this.Y=this.width=NaN}; gol=function(){g.p.call(this,{D:"div",K:"ytp-timed-marker"});this.X=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.Dn=function(h,W){g.sJ.call(this,{D:"div",K:"ytp-progress-bar-container",J:{"aria-disabled":"true"},V:[{D:"div",LM:["ytp-heat-map-container"],V:[{D:"div",K:"ytp-heat-map-edu"}]},{D:"div",LM:["ytp-progress-bar"],J:{tabindex:"0",role:"slider","aria-label":"Control deslizante de b\u00fasqueda","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},V:[{D:"div",K:"ytp-chapters-container"},{D:"div",K:"ytp-timed-markers-container"}, {D:"div",K:"ytp-clip-start-exclude"},{D:"div",K:"ytp-clip-end-exclude"},{D:"div",K:"ytp-scrubber-container",V:[{D:"div",LM:["ytp-scrubber-button","ytp-swatch-background-color"],V:[{D:"div",K:"ytp-scrubber-pull-indicator"},{D:"img",LM:["ytp-decorated-scrubber-button"]}]}]}]},{D:"div",LM:["ytp-fine-scrubbing-container"],V:[{D:"div",K:"ytp-fine-scrubbing-edu"}]},{D:"div",K:"ytp-bound-time-left",YN:"{{boundTimeLeft}}"},{D:"div",K:"ytp-bound-time-right",YN:"{{boundTimeRight}}"},{D:"div",K:"ytp-clip-start", J:{title:"{{clipstarttitle}}"},YN:"{{clipstarticon}}"},{D:"div",K:"ytp-clip-end",J:{title:"{{clipendtitle}}"},YN:"{{clipendicon}}"}]});this.api=h;this.lJ=!1;this.Ns=this.hG=this.rE=this.N=this.Gu=0;this.Uy=null;this.Lj=!1;this.Rz={};this.Zn={};this.clipEnd=Infinity;this.Sx=this.vk("ytp-clip-end");this.iX=new g.mG(this.Sx,!0);this.U8=this.vk("ytp-clip-end-exclude");this.Tx=this.vk("ytp-clip-start-exclude");this.clipStart=0;this.U5=this.vk("ytp-clip-start");this.hq=new g.mG(this.U5,!0);this.XI=this.uW= 0;this.progressBar=this.vk("ytp-progress-bar");this.hI={};this.yg={};this.Mn=this.vk("ytp-chapters-container");this.Ah=this.vk("ytp-timed-markers-container");this.X=[];this.S=[];this.mF={};this.uC=null;this.zV=-1;this.lW=this.mW=0;this.d3=this.Z=null;this.H9=this.vk("ytp-scrubber-button");this.Pk=this.vk("ytp-decorated-scrubber-button");this.St=this.vk("ytp-scrubber-container");this.Ak=new g.p6;this.RR=0;this.CG=new SyN;this.G=new i7(0,0);this.kZ=null;this.T=this.tE=!1;this.Tj=null;this.Wk=this.vk("ytp-heat-map-container"); this.BV=this.vk("ytp-heat-map-edu");this.Y=[];this.heatMarkersDecorations=[];this.Ef=this.vk("ytp-fine-scrubbing-container");this.q$=this.vk("ytp-fine-scrubbing-edu");this.W=void 0;this.Nn=this.Qj=this.CM=!1;this.tooltip=W.sX();this.addOnDisposeCallback(g.Tr(this.tooltip,this.Sx));g.X(this,this.iX);this.iX.subscribe("hoverstart",this.Ru,this);this.iX.subscribe("hoverend",this.SP,this);this.U(this.Sx,"click",this.N0);this.addOnDisposeCallback(g.Tr(this.tooltip,this.U5));g.X(this,this.hq);this.hq.subscribe("hoverstart", this.Ru,this);this.hq.subscribe("hoverend",this.SP,this);this.U(this.U5,"click",this.N0);DyN(this);this.U(h,"resize",this.I1);this.U(h,"presentingplayerstatechange",this.rH);this.U(h,"videodatachange",this.n$);this.U(h,"videoplayerreset",this.ZY);this.U(h,"cuerangesadded",this.At9);this.U(h,"cuerangesremoved",this.zqf);this.U(h,"onLoopRangeChange",this.gN);this.U(h,"innertubeCommand",this.onClickCommand);this.U(h,"onRetroModeChanged",this.ZRB);this.U(h,g.mZ("timedMarkerCueRange"),this.v9N);this.U(h, "updatemarkervisibility",this.Mm);this.U(h,"serverstitchedvideochange",this.Opn);this.updateVideoData(h.getVideoData(),!0);this.gN(h.getLoopRange());gD(this)&&!this.W&&(this.W=new NGv(this.api,this.tooltip),h=g.wb(this.element).x||0,this.W.I1(h,this.N),this.W.kN(this.Ef),g.X(this,this.W),this.U(this.W.dismissButton,"click",this.OT),this.U(this.W.playButton,"click",this.WA),this.U(this.W.element,"dblclick",this.WA));this.api.createClientVe(this.Wk,this,139609,!0);this.api.createClientVe(this.BV,this, 140127,!0);this.api.createClientVe(this.q$,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; DyN=function(h){if(h.X.length===0){var W=new O4;h.X.push(W);g.X(h,W);W.kN(h.Mn,0)}for(;h.X.length>1;)h.X.pop().dispose();S7(h.X[0],"100%");h.X[0].startTime=0;h.X[0].title=""}; w$Q=function(h){var W=W===void 0?NaN:W;var c=new I0D(h.api);h.Y.push(c);g.X(h,c);c.kN(h.Wk);W>=0&&(c.element.style.width=W+"px")}; kDL=function(h){for(;h.S.length;)h.S.pop().dispose()}; WcN=function(h){var W,c,V,H,B;return(B=g.v((H=g.v((W=h.getWatchNextResponse())==null?void 0:(c=W.playerOverlays)==null?void 0:(V=c.playerOverlayRenderer)==null?void 0:V.decoratedPlayerBarRenderer,Sz))==null?void 0:H.playerBar,hav))==null?void 0:B.chapters}; cyd=function(h){for(var W=h.X,c=[],V=0;V=E&&z<=G&&B.push(r)}u>0&&(h.Wk.style.height=u+"px");E=h.Y[V];G=B;r=H;x=u;z=V===0;z=z===void 0?!1:z;YyL(E,x);Z=G;q=E.W;z=z===void 0?!1:z;var L=1E3/Z.length,M=[];M.push({x:0,y:100});for(var U=0;U0&&(c=B[B.length-1])}g.wD(h);J=[];W=g.e(W.heatMarkersDecorations||[]);for(H=W.next();!H.done;H=W.next())if(H=g.v(H.value,Ra7))u=H.label,V=c=d=void 0,J.push({visibleTimeRangeStartMillis:(d=H.visibleTimeRangeStartMillis)!=null?d:-1,visibleTimeRangeEndMillis:(c=H.visibleTimeRangeEndMillis)!=null?c:-1,decorationTimeMillis:(V=H.decorationTimeMillis)!=null?V:NaN,label:u?g.EJ(u):""});h.heatMarkersDecorations=J}}; sz7=function(h,W){h.S.push(W);g.X(h,W);W.kN(h.Ah,h.Ah.children.length)}; HGU=function(h,W){W=g.e(W);for(var c=W.next();!c.done;c=W.next()){c=c.value;var V=kb(h,c.timeRangeStartMillis/(h.G.X*1E3),h6(h)),H=h.api.j("delhi_modern_web_player")?.667:.6;g.oY(c.element,"transform","translateX("+V+"px) scaleX("+H+")")}}; VMT=function(h,W){var c=0,V=!1;W=g.e(W);for(var H=W.next();!H.done;H=W.next()){H=H.value;if(g.v(H,uip)){H=g.v(H,uip);var B={startTime:NaN,title:null,onActiveCommand:void 0},E=H.title;B.title=E?g.EJ(E):"";E=H.timeRangeStartMillis;E!=null&&(B.startTime=E);B.onActiveCommand=H.onActiveCommand;H=B;c===0&&H.startTime!==0&&(h.X[c].startTime=0,h.X[c].title="",h.X[c].onActiveCommand=H.onActiveCommand,c++,V=!0);h.X.length<=c&&(B=new O4,h.X.push(B),g.X(h,B),B.kN(h.Mn,h.Mn.children.length));h.X[c].startTime= H.startTime;h.X[c].title=H.title?H.title:"";h.X[c].onActiveCommand=H.onActiveCommand;h.X[c].index=V?c-1:c}c++}for(;c=0;V--)if(h.X[V].width>0){OtL(h.X[V],0);var H=Math.floor(h.X[V].width);h.X[V].width=H;S7(h.X[V],H+"px");break}h.X[c].width=0;S7(h.X[c],"0")}else c===h.X.length-1?(V=Math.floor(h.X[c].width+W),h.X[c].width=V,S7(h.X[c],V+"px")):(W=h.X[c].width+W,V=Math.round(W),W-=V,h.X[c].width=V,S7(h.X[c],V+"px"));c=0;if(h.Y.length===h.X.length)for(W=0;W< h.Y.length;W++)V=h.X[W].width,h.Y[W].element.style.width=V+"px",h.Y[W].element.style.left=c+"px",c+=V+cI(h);h.api.j("delhi_modern_web_player")&&(h.X.length===1?h.X[0].W.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(h.X[0].W.classList.remove("ytp-progress-bar-end"),h.X[0].W.classList.add("ytp-progress-bar-start"),h.X[h.X.length-1].W.classList.add("ytp-progress-bar-end")))}; d4l=function(h,W){var c=0,V=!1,H=h.X.length,B=h.G.X*1E3;B===0&&(B=h.api.getProgressState().seekableEnd*1E3);if(B>0&&h.N>0){for(var E=h.N-cI(h)*h.mW,J=h.lW===0?3:E*h.lW,u=g.e(h.X),d=u.next();!d.done;d=u.next())d.value.width=0;for(;c1);d=(B===0?0:u/B*E)+h.X[c].width;if(d>J)h.X[c].width=d;else{h.X[c].width=0;var G=h,Z=c,r=G.X[Z-1];r!==void 0&&r.width>0? r.width+=d:Zh.lW&&(h.lW=u/B),V=!0)}c++}}return V}; WI=function(h){if(h.N){var W=h.api.getProgressState(),c=h.api.getVideoData();if(!(c&&c.enableServerStitchedDai&&c.l9)||isFinite(W.current)){var V;if(((V=h.api.getVideoData())==null?0:qe(V))&&W.airingStart&&W.airingEnd)var H=Va(h,W.airingStart,W.airingEnd);else if(h.api.getPresentingPlayerType()===2){var B,E,J;H=(c=(H=h.api.getVideoData())==null?void 0:(B=H.getPlayerResponse())==null?void 0:(E=B.playerConfig)==null?void 0:(J=E.webPlayerConfig)==null?void 0:J.skippableAdProgressBarDuration)?Va(h,W.seekableStart, c/1E3):Va(h,W.seekableStart,W.seekableEnd)}else H=Va(h,W.seekableStart,W.seekableEnd);B=KV(H,W.loaded,0);W=KV(H,W.current,0);E=h.G.W!==H.W||h.G.X!==H.X;h.G=H;$Y(h,W,B);E&&GhL(h);ZGd(h)}}}; Va=function(h,W,c){return ryk(h)?new i7(Math.max(W,h.kZ.startTimeMs/1E3),Math.min(c,h.kZ.endTimeMs/1E3)):new i7(W,c)}; x4p=function(h,W){var c,V,H;W=g.v((c=W.getWatchNextResponse())==null?void 0:(V=c.playerOverlays)==null?void 0:(H=V.playerOverlayRenderer)==null?void 0:H.decoratedPlayerBarRenderer,Sz);if(W==null?0:W.progressColor)for(c=0;c1){c=s7(h,W.G,!0);for(var V=0,H=0;H0&&(V+=h.X[H].width,V+=cI(h));c=(h.X[c].startTime+(W.G-V)/h.X[c].width*((c===h.X.length-1?h.G.X*1E3:h.X[c+1].startTime)-h.X[c].startTime))/1E3||0}return c}; nrk=function(h,W){if(W<0)return"0";h=Math.floor(Math.min(W,h.api.getDuration())*1E3);return h>2147483647?"0":String(h)}; BI=function(h,W,c,V,H){W=nrk(h,W);c=nrk(h,c);h=h.progressBar.visualElement;V={seekData:{startMediaTimeMs:W,endMediaTimeMs:c,seekSource:V}};(W=g.q_())&&g.IW(mt)(void 0,W,h,H,V,void 0)}; jzd=function(h,W,c){if(c>=h.X.length)return!1;var V=h.N-cI(h)*h.mW;return Math.abs(W-h.X[c].startTime/1E3)/h.G.X*V<4}; GhL=function(h){h.H9.style.removeProperty("height");for(var W=g.e(Object.keys(h.Rz)),c=W.next();!c.done;c=W.next())a1D(h,c.value);E7(h);$Y(h,h.XI,h.uW)}; h6=function(h){var W=h.Ak.x;W=g.vr(W,0,h.N);h.CG.update(W,h.N);return h.CG}; J6=function(h){return(h.T?135:90)-RU(h)}; RU=function(h){var W=48,c=h.api.B();h.api.j("delhi_modern_web_player")?W=h.api.getPlayerSize().width<=528?64:h.T?96:72:h.T?W=54:g.DE(c)&&!c.W&&(W=40);return W}; $Y=function(h,W,c){h.XI=W;h.uW=c;var V=h6(h),H=h.G.X,B=rZl(h.G,h.XI),E=g.hl("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.xx(B,!0),DURATION:g.xx(H,!0)}),J=rD(h.X,B*1E3);J=h.X[J].title;h.update({ariamin:Math.floor(h.G.W),ariamax:Math.floor(H),arianow:Math.floor(B),arianowtext:J?J+" "+E:E});H=h.clipStart;B=h.clipEnd;h.kZ&&h.api.getPresentingPlayerType()!==2&&(H=h.kZ.startTimeMs/1E3,B=h.kZ.endTimeMs/1E3);H=KV(h.G,H,0);J=KV(h.G,B,1);E=h.api.getVideoData();B=g.vr(W,H,J);c=(E==null?0:g.Gr(E))?1:g.vr(c, H,J);W=kb(h,W,V);g.oY(h.St,"transform","translateX("+W+"px)");h.api.j("delhi_modern_web_player")&&h.api.j("delhi_modern_web_player_cutout")&&eaD(h,W);uR(h,V,H,B,"PLAY_PROGRESS");(E==null?0:qe(E))?(W=h.api.getProgressState().seekableEnd)&&uR(h,V,B,KV(h.G,W),"LIVE_BUFFER"):uR(h,V,H,c,"LOAD_PROGRESS");if(h.api.j("web_player_heat_map_played_bar")){var u;(u=h.Y[0])!=null&&u.S.setAttribute("width",(B*100).toFixed(2)+"%")}}; eaD=function(h,W){h.api.getPresentingPlayerType()!==1?h.Mn.style.removeProperty("clip-path"):(W||(W=kb(h,h.XI,h6(h))),h.Mn.style.clipPath='path("'+(h.Lj?zaN(h,8,W,h.T?50:36,0,6):zaN(h,4,W,h.T?34:24,2,3))+'")')}; zaN=function(h,W,c,V,H,B){var E=c-V/2;c+=V/2;W+=H;return"M 0 "+H+" L 0 "+(W+" L ")+(E+" "+W+" C ")+(E+B+" "+W+" "+(E+B)+" "+H+" "+E+" "+H+" L 0 ")+(H+" M ")+(c+" "+H+" L ")+(h.N+" "+H+" L ")+(h.N+" "+W+" L ")+(c+" "+W+" C ")+(c-B+" "+W+" "+(c-B)+" "+H+" "+c+" "+H)}; uR=function(h,W,c,V,H){var B=h.X.length,E=W.X-h.mW*cI(h),J=c*E;c=s7(h,J);var u=V*E;E=s7(h,u);H==="HOVER_PROGRESS"&&(E=s7(h,W.X*V,!0),u=W.X*V-Qzh(h,W.X*V)*cI(h));V=Math.max(J-LcU(h,c),0);for(J=c;J=h.X.length)return h.N;for(var c=0,V=0;V0||h.U8.clientWidth>0?(B=W.clientWidth/c,h=-1*h.Tx.clientWidth/c):(B/=c,h=-1*h.X[H].element.offsetLeft/c),g.oY(W,"background-size",B+"px"),g.oY(W,"background-position-x",h+"px"))}; d3=function(h,W,c,V,H){H||h.api.B().W?W.style.width=c+"px":g.oY(W,"transform","scalex("+(V?c/V:0)+")")}; s7=function(h,W,c){var V=0;(c===void 0?0:c)&&(W-=Qzh(h,W)*cI(h));c=g.e(h.X);for(var H=c.next();!H.done;H=c.next()){H=H.value;if(W>H.width)W-=H.width;else break;V++}return V===h.X.length?V-1:V}; kb=function(h,W,c){var V=W*h.G.X*1E3;for(var H=-1,B=g.e(h.X),E=B.next();!E.done;E=B.next())E=E.value,V>E.startTime&&E.width>0&&H++;V=H<0?0:H;H=c.X-cI(h)*h.mW;return W*H+cI(h)*V+c.Y}; Qzh=function(h,W){for(var c=h.X.length,V=0,H=g.e(h.X),B=H.next();!B.done;B=H.next())if(B=B.value,B.width!==0)if(W>B.width)W-=B.width,W-=cI(h),V++;else break;return V===c?c-1:V}; g.Ayd=function(h,W,c,V){var H=h.N!==c,B=h.T!==V;h.Gu=W;h.N=c;h.T=V;gD(h)&&(W=h.W)!=null&&(W.scale=V?1.5:1);GhL(h);h.X.length===1&&(h.X[0].width=c||0);H&&g.wD(h);h.W&&B&&gD(h)&&(h.W.isEnabled&&(c=h.T?135:90,V=c-RU(h),h.Ef.style.height=c+"px",g.oY(h.Wk,"transform","translateY("+-V+"px)"),g.oY(h.progressBar,"transform","translateY("+-V+"px)")),my4(h.W))}; E7=function(h){var W=!!h.kZ&&h.api.getPresentingPlayerType()!==2,c=h.clipStart,V=h.clipEnd,H=!0,B=!0;W&&h.kZ?(c=h.kZ.startTimeMs/1E3,V=h.kZ.endTimeMs/1E3):(H=c>h.G.W,B=h.G.X>0&&Vh.XI);g.$y(h.H9,"ytp-scrubber-button-hover",c===V&&h.X.length>1);if(h.api.j("web_player_heat_map_played_bar")){var B;(B=h.Y[0])!=null&&B.X.setAttribute("width",(W.W*100).toFixed(2)+"%")}}}; a1D=function(h,W){var c=h.Rz[W];W=h.Zn[W];var V=h6(h),H=KV(h.G,c.start/1E3,0),B=KtT(c,h.T)/V.width;var E=KV(h.G,c.end/1E3,1);B!==Number.POSITIVE_INFINITY&&(H=g.vr(H,0,E-B));E=Math.min(E,H+B);c.color&&(W.style.background=c.color);c=H;W.style.left=Math.max(c*V.X+V.Y,0)+"px";d3(h,W,g.vr((E-c)*V.X+V.Y,0,V.width),V.width,!0)}; U4T=function(h,W){var c=W.getId();h.Rz[c]===W&&(g.nk(h.Zn[c]),delete h.Rz[c],delete h.Zn[c])}; gD=function(h){var W=g.lo(h.api.B())&&(h.api.j("web_shorts_pip")||h.api.j("web_watch_pip")),c;return!((c=h.api.getVideoData())==null?0:c.isLivePlayback)&&!h.api.isMinimized()&&!h.api.isInline()&&(!h.api.B5()||!W)}; G9=function(h){h.W&&(h.W.disable(),h.rE=0,h.Wk.style.removeProperty("transform"),h.progressBar.style.removeProperty("transform"),h.Ef.style.removeProperty("height"),h.element.parentElement&&h.element.parentElement.style.removeProperty("height"))}; CPv=function(h,W){var c=W/J6(h)*RU(h);g.oY(h.progressBar,"transform","translateY("+-W+"px)");g.oY(h.Wk,"transform","translateY("+-W+"px)");g.oY(h.Ef,"transform","translateY("+c+"px)");h.Ef.style.height=W+c+"px";h.element.parentElement&&(h.element.parentElement.style.height=RU(h)-c+"px")}; MMN=function(h,W){W?h.Z||(h.element.removeAttribute("aria-disabled"),h.Z=new g.mG(h.progressBar,!0),h.api.j("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&h.Z.subscribe("hoverstart",h.bRf,h),h.Z.subscribe("hovermove",h.DdW,h),h.Z.subscribe("hoverend",h.zAN,h),h.Z.subscribe("dragstart",h.f3f,h),h.Z.subscribe("dragmove",h.QR9,h),h.Z.subscribe("dragend",h.kxI,h),h.api&&h.api.j("delhi_modern_web_player")&&h.api.j("delhi_modern_web_player_cutout")&&(h.d3=new g.mG(h.progressBar, !0),h.d3.subscribe("hoverstart",function(){h.Lj=!0;eaD(h)},h),h.d3.subscribe("hoverend",function(){h.Lj=!1; eaD(h)},h)),h.Tj=h.listen("keydown",h.BT)):h.Z&&(h.element.setAttribute("aria-disabled","true"),h.v0(h.Tj),h.Z.cancel(),h.Z.dispose(),h.Z=null)}; cI=function(h){return h.api.j("delhi_modern_web_player")?4:h.T?3:2}; ryk=function(h){var W;return!((W=h.kZ)==null||!W.postId)&&h.api.getPresentingPlayerType()!==2}; ZK=function(h,W){g.p.call(this,{D:"button",LM:["ytp-remote-button","ytp-button"],J:{title:h.j("player_tooltip_data_title_killswitch")?"Reproducir en el televisor":"","data-tooltip-title":"Reproducir en el televisor","aria-haspopup":"true","data-priority":"10"},YN:"{{icon}}"});this.L=h;this.YZ=W;this.X=null;this.U(h,"onMdxReceiversChange",this.FI);this.U(h,"presentingplayerstatechange",this.FI);this.U(h,"appresize",this.FI);h.createClientVe(this.element,this,139118);this.FI();this.listen("click",this.W, this);Ne(h,this.element,this)}; r3=function(h,W){g.p.call(this,{D:"button",LM:["ytp-button","ytp-settings-button"],J:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":Wn(),title:h.j("player_tooltip_data_title_killswitch")?"Configuraci\u00f3n":"","data-tooltip-title":"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},V:[h.j("delhi_modern_web_player_icons")?{D:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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.eL()]});this.L=h;this.YZ=W;this.W=!0;this.listen("click",this.G);this.U(h,"onPlaybackQualityChange",this.updateBadge);this.U(h,"videodatachange",this.updateBadge);this.U(h,"webglsettingschanged",this.updateBadge);this.U(h,"appresize",this.X);Ne(h,this.element,this);this.L.createClientVe(this.element,this,28663);this.updateBadge();this.X(h.Bk().getPlayerSize())}; FcQ=function(h,W){h.W=!!W;h.X(h.L.Bk().getPlayerSize())}; qw=function(h,W){jY.call(this,"Anotaciones",g.Kz.Dp);this.L=h;this.YZ=W;this.X=!1;h.j("web_settings_menu_icons")&&(W=h.j("delhi_modern_web_player_icons")?{D:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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"}}]}:{D:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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(W));this.U(h,"videodatachange",this.FI);this.U(h,"onApiChange",this.FI);this.subscribe("select",this.onSelect,this);this.FI()}; xY=function(h,W){g.Xt.call(this,"Pista de audio",g.Kz.AUDIO,h,W);this.L=h;this.tracks={};g.he(this.element,"ytp-audio-menu-item");this.countLabel=new g.p({D:"div",V:[{D:"span",YN:"Pista de audio"},{D:"span",K:"ytp-menuitem-label-count",YN:"{{content}}"}]});h.j("web_settings_menu_icons")&&(W=h.j("delhi_modern_web_player_icons")?{D:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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"}}]}:CLL(),this.setIcon(W));g.X(this,this.countLabel);g.BV(this,this.countLabel);this.U(h,"videodatachange",this.FI);this.U(h,"onPlaybackAudioChange",this.FI);this.FI()}; lR=function(h,W){jY.call(this,"Reproducci\u00f3n autom\u00e1tica",g.Kz.Hg);this.L=h;this.YZ=W;this.X=!1;this.G=[];this.U(h,"presentingplayerstatechange",this.W);this.subscribe("select",this.onSelect,this);h.createClientVe(this.element,this,113682);this.W()}; yyT=function(h,W){g.Eg.call(this,g.RB({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.L=h;this.YZ=W;this.U(this.element,"click",this.onClick);this.YZ.zx(this)}; PPh=function(h,W){var c;g.lo(h.B())&&(c={D:"div",K:"ytp-panel-footer-content",V:[{D:"span",YN:"Ajusta la calidad de descarga en la "},{D:"a",K:"ytp-panel-footer-content-link",YN:"Configuraci\u00f3n",J:{href:"/account_downloads"}}]});g.Xt.call(this,"Calidad",g.Kz.kK,h,W,void 0,void 0,c);this.L=h;this.Pk={};this.T={};this.Y={};this.DH=new Set;this.X=this.N=!1;this.S="unknown";this.XI="";this.Wk=new g.TZ;g.X(this,this.Wk);this.N=this.L.j("web_player_use_new_api_for_quality_pullback");this.X=this.L.j("web_player_enable_premium_hbr_playback_cap"); h.j("web_settings_menu_icons")&&(W=h.j("delhi_modern_web_player_icons")?{D:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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"}}]}:{D:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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(W));g.he(this.W.element,"ytp-quality-menu");this.U(h,"videodatachange",this.mV);this.U(h,"videoplayerreset",this.mV);this.U(h,"onPlaybackQualityChange",this.CI);this.mV();h.createClientVe(this.element,this,137721)}; bGk=function(h,W,c){var V=h.Pk[W],H=g.aG[W];return f17(h,V?V.qualityLabel:H?H+"p":"Autom\u00e1tica",W,c)}; TpQ=function(h,W,c,V,H){var B=(W=h.X?h.Y[W]:h.T[W])&&W.quality,E=W&&W.qualityLabel;E=E?E:"Autom\u00e1tica";V&&(E="("+E);h=f17(h,E,B||"",H);V&&h.V.push(")");(V=(V=W&&W.paygatedQualityDetails)&&V.paygatedIndicatorText)&&c&&h.V.push({D:"div",K:"ytp-premium-label",YN:V});return h}; f17=function(h,W,c,V){W={D:"span",LM:V,V:[W]};var H;V="ytp-swatch-color";if(h.N||h.X)V="ytp-swatch-color-white";c==="highres"?H="8K":c==="hd2880"?H="5K":c==="hd2160"?H="4K":c.indexOf("hd")===0&&c!=="hd720"&&(H="HD");H&&(W.V.push(" "),W.V.push({D:"sup",K:V,YN:H}));return W}; nw=function(h){XC.call(this,h.getAvailablePlaybackRates()[0],h.getAvailablePlaybackRates()[h.getAvailablePlaybackRates().length-1],.05,h.getPlaybackRate(),{D:"div",K:"ytp-speedslider-indicator-container",V:[{D:"div",K:"ytp-speedslider-badge"},{D:"p",K:"ytp-speedslider-text"}]});this.L=h;this.XI=fk(this.Pk,50,this);g.he(this.W,"ytp-speedslider");this.T=this.vk("ytp-speedslider-text");this.Wk=this.vk("ytp-speedslider-badge");Npp(this);this.U(this.W,"change",this.DH)}; Npp=function(h){h.T.textContent=h.X.toFixed(2)+"x";var W=h.X>2&&h.L.j("enable_web_premium_varispeed");h.Wk.classList.toggle("ytp-speedslider-premium-badge",W);h.Wk.setAttribute("aria-label",W?"Premium":"")}; jV=function(h,W,c,V,H,B,E){g.p.call(this,{D:"div",K:"ytp-slider-section",J:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{D:"div",K:"ytp-slider",V:[{D:"div",K:"ytp-slider-handle"}]}]});this.Z=h;this.T=W;this.W=c;this.G=V;this.XI=H;this.zV=B;this.range=this.G-this.W;this.mW=this.vk("ytp-slider-section");this.Y=this.vk("ytp-slider");this.Wk=this.vk("ytp-slider-handle");this.S=new g.mG(this.Y, !0);this.X=E?E:c;g.X(this,this.S);this.S.subscribe("dragmove",this.VC,this);this.U(this.element,"keydown",this.Th);this.U(this.element,"wheel",this.EY);this.init()}; aU=function(h){jV.call(this,.05,.05,h.getAvailablePlaybackRates()[0],h.getAvailablePlaybackRates()[h.getAvailablePlaybackRates().length-1],150,20,h.getPlaybackRate());this.L=h;this.N=g.Zr("P");this.DH=fk(this.Pk,50,this);g.he(this.Y,"ytp-speedslider");g.he(this.N,"ytp-speedslider-text");h=this.N;var W=this.Y;W.parentNode&&W.parentNode.insertBefore(h,W.nextSibling);XjT(this);this.U(this.L,"onPlaybackRateChange",this.updateValues)}; XjT=function(h){h.N.textContent=tMl(h,h.X)+"x"}; tMl=function(h,W){h=Number(g.vr(W,h.W,h.G).toFixed(2));W=Math.floor((h+.001)*100%5+2E-15);var c=h;W!==0&&(c=h-W*.01);return Number(c.toFixed(2))}; vr7=function(h){g.sJ.call(this,{D:"div",K:"ytp-speedslider-component"});h.j("web_settings_use_input_slider")?this.X=new nw(h):this.X=new aU(h);g.X(this,this.X);this.element.appendChild(this.X.element)}; m4d=function(h){var W=new vr7(h);A_.call(this,h,W,"Personalizada");g.X(this,W)}; orN=function(h,W){var c=new m4d(h);g.Xt.call(this,"Velocidad de reproducci\u00f3n",g.Kz.NW,h,W,eV(h)?void 0:"Personalizada",eV(h)?void 0:function(){g.Ft(W,c)}); var V=this;this.Y=!1;g.X(this,c);this.S=new nw(h);g.X(this,this.S);if(h.j("web_settings_menu_icons")){var H=h.j("delhi_modern_web_player_icons")?{D:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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"}}]}:{D:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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(H)}this.L=h;this.Y=!1;this.XI=null;eV(h)?(this.X=g.hl("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.L.getPlaybackRate().toString()}),this.N=this.L.getPlaybackRate()):this.N=this.X=null;this.T=this.L.getAvailablePlaybackRates();this.U(h,"presentingplayerstatechange",this.FI);var B;((B=this.L.getVideoData())==null?0:B.Gw())&&this.U(h,"serverstitchedvideochange",this.FI);this.U(this.S.W,"change",function(){V.Y=!0;V.FI()}); this.FI()}; pjd=function(h,W){var c=z9(W);h.X&&(h.Y||W===h.N)?(h.BB(h.X),h.rW(W.toString())):h.BB(c)}; Y85=function(h){h.Yy(h.T.map(z9));h.X=null;h.N=null;var W=h.L.getPlaybackRate();eV(h.L)&&I1N(h,W);!h.T.includes(W)||h.Y?h.BB(h.X):h.BB(z9(W))}; I1N=function(h,W){h.N=W;h.X=g.hl("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:W.toString()});W=h.T.map(z9);W.unshift(h.X);h.Yy(W)}; z9=function(h){return h.toString()}; eV=function(h){return h.j("web_settings_menu_surface_custom_playback")}; OGT=function(h){return h.j("web_settings_menu_surface_custom_playback")&&h.j("web_settings_use_input_slider")}; grk=function(h,W,c,V){var H=new g.Um(W,void 0,"Anulaci\u00f3n de video");g.Xt.call(this,V.text||"",h,W,c,"Anulaci\u00f3n de video",function(){g.Ft(c,H)}); var B=this;g.he(this.element,"ytp-subtitles-options-menu-item");this.setting=V.option.toString();h=V.options;this.settings=g.D2(h,this.jD,this);this.N=H;g.X(this,this.N);W=new g.Eg({D:"div",K:"ytp-menuitemtitle",YN:"Permitir un estilo de subt\u00edtulos diferente si as\u00ed lo especifica el video."},0);g.X(this,W);this.N.zx(W,!0);this.Y=new g.Eg({D:"div",K:"ytp-menuitem",J:{role:"menuitemradio",tabindex:"0"},V:[{D:"div",K:"ytp-menuitem-label",YN:"S\u00ed"}]},-1);g.X(this,this.Y);this.N.zx(this.Y, !0);this.U(this.Y.element,"click",function(){S8L(B,!0)}); this.X=new g.Eg({D:"div",K:"ytp-menuitem",J:{role:"menuitemradio",tabindex:"0"},V:[{D:"div",K:"ytp-menuitem-label",YN:"No"}]},-2);g.X(this,this.X);this.N.zx(this.X,!0);this.U(this.X.element,"click",function(){S8L(B,!1)}); this.Yy(g.xw(h,this.jD))}; S8L=function(h,W){h.publish("settingChange",h.setting+"Override",!W);h.YZ.AG()}; Qa=function(h,W){g.Um.call(this,h,void 0,"Opciones");var c=this;this.J3={};for(var V=0;V=0);if(!(W<0||W===h.Y)){h.Y=W;W=243*h.scale;var c=141*h.scale,V=hnD(h.W,h.Y,W);rVv(h.bg,V,W,c,!0);h.Wk.start()}}; Qhv=function(h){var W=h.X;h.type===3&&h.Pk.stop();h.api.removeEventListener("appresize",h.XI);h.Z||(h.env.j("player_tooltip_data_title_killswitch")?W.setAttribute("title",h.G):W.setAttribute("data-tooltip-title",h.G));h.G="";h.X=null;h.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});h.wrapper.style.width=""}; ihk=function(h){g.p.call(this,{D:"button",LM:["ytp-watch-later-button","ytp-button"],J:{title:h.j("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.DE(h.B()))},V:[{D:"div",K:"ytp-watch-later-icon",YN:"{{icon}}"},{D:"div",K:"ytp-watch-later-title",YN:"Ver m\u00e1s tarde"}]});this.L=h;this.icon=null;this.visible=this.isRequestPending=this.X=!1;CmL(h);h.createClientVe(this.element,this,28665); this.listen("click",this.onClick,this);this.U(h,"videoplayerreset",this.onReset);this.U(h,"appresize",this.WD);this.U(h,"videodatachange",this.WD);this.U(h,"presentingplayerstatechange",this.WD);this.WD();h=this.L.B();var W=g.KS("yt-player-watch-later-pending");h.Y&&W?(clp(),Lpp(this)):this.FI(2);g.$y(this.element,"ytp-show-watch-later-title",g.DE(h));Ne(this.L,this.element,this)}; KpN=function(h){var W=h.L.getPlayerSize(),c=h.L.B(),V=h.L.getVideoData(),H=g.DE(c)&&g.Io(h.L)&&g.Y(h.L.getPlayerStateObject(),128),B=c.G;return c.Uy&&W.width>=240&&!V.isAd()&&V.Uy&&!H&&!V.B0&&!h.L.isEmbedsShortsMode()&&!B}; AdD=function(h,W){UKT(g.GJ(h.L.B()),"wl_button",function(){clp({videoId:W});window.location.reload()})}; Lpp=function(h){if(!h.isRequestPending){h.isRequestPending=!0;h.FI(3);var W=h.L.getVideoData();W=h.X?W.removeFromWatchLaterCommand:W.addToWatchLaterCommand;var c=h.L.qB(),V=h.X?function(){h.X=!1;h.isRequestPending=!1;h.FI(2);h.L.B().Z&&h.L.Iz("WATCH_LATER_VIDEO_REMOVED")}:function(){h.X=!0; h.isRequestPending=!1;h.FI(1);h.L.B().W&&h.L.V9(h.element);h.L.B().Z&&h.L.Iz("WATCH_LATER_VIDEO_ADDED")}; U0(c,W).then(V,function(){h.isRequestPending=!1;h.FI(4,"Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.");h.L.B().Z&&h.L.Iz("WATCH_LATER_ERROR","Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; U5d=function(h,W){if(W!==h.icon){switch(W){case 3:var c=Lz();break;case 1:c=J1();break;case 2:c={D:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{D:"path",AI:!0,K:"ytp-svg-fill",J:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:c={D:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{D:"path", AI:!0,J:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}h.updateValue("icon",c);h.icon=W}}; Ctp=function(){g.kH.apply(this,arguments);this.j_=(this.g8=g.DE(this.api.B()))&&(this.api.B().W||OB()||Ix());this.YU=48;this.dF=69;this.mE=this.Rl=null;this.ME=[];this.dT=this.nw=this.hx=this.Mf=this.HV=null;this.DN=[];this.contextMenu=this.F8=this.overflowButton=this.kQ=this.iJ=this.searchButton=this.copyLinkButton=this.shareButton=this.h0=this.bJ=this.title=this.channelAvatar=this.nX=this.tooltip=null;this.MP=!1;this.Gt=this.o6=this.pC=this.Br=null;this.jTW=this.GW=this.HN=!1}; MiL=function(h){var W=h.api.B(),c=g.Y(h.api.getPlayerStateObject(),128);return W.Y&&c&&!h.api.isFullscreen()}; Fpl=function(h){if(h.Lp()&&!h.api.isEmbedsShortsMode()&&h.kQ){var W=h.api.j("web_player_hide_overflow_button_if_empty_menu");!h.h0||W&&!KpN(h.h0)||M_v(h.kQ,h.h0);!h.shareButton||W&&!So7(h.shareButton)||M_v(h.kQ,h.shareButton);!h.copyLinkButton||W&&!IzQ(h.copyLinkButton)||M_v(h.kQ,h.copyLinkButton)}else{W=h.api.B().getWebPlayerContextConfig();if(h.kQ){for(var c=h.kQ,V=g.e(c.actionButtons),H=V.next();!H.done;H=V.next())H.value.detach();c.actionButtons=[]}h.searchButton&&!g.jk(h.bJ.element,h.searchButton.element)&& h.searchButton.kN(h.bJ.element);!h.h0||(W==null?0:W.hideTopWatchNextButton)||g.jk(h.bJ.element,h.h0.element)||h.h0.kN(h.bJ.element);!h.shareButton||(W==null?0:W.hideTopShareButton)||g.jk(h.bJ.element,h.shareButton.element)||h.shareButton.kN(h.bJ.element);h.copyLinkButton&&!g.jk(h.bJ.element,h.copyLinkButton.element)&&h.copyLinkButton.kN(h.bJ.element)}}; ydQ=function(h,W,c){W=c?W.lastElementChild:W.firstElementChild;for(var V=null;W;){if(YS(W,"display")!=="none"&&W.getAttribute("aria-hidden")!=="true"){var H=void 0;W.tabIndex>=0?H=W:H=ydQ(h,W,c);H&&(V?c?H.tabIndex>V.tabIndex&&(V=H):H.tabIndexV/1E3+1)return{msg:"in-the-past"};if(B.isLivePlayback&&!isFinite(V))return{msg:"live-infinite"};(V=W.yl())&&V.isView()&&(V=V.mediaElement);if(V&&V.GY().length>12&&g.tT(H))return{msg:"played-ranges"};if(!H.G)return null;if(!E)return{msg:"no-pvd-formats"};if(!H.G.X||!E.X)return{msg:"non-dash"};V=E.videoInfos[0];var J=H.G.videoInfos[0];h.XI&&Qk(B)&&(V=W.Fy(), J=c.Fy());if(!V||!J)return{msg:"no-video-info"};if(h.N&&(CF(V)||CF(J)))return{msg:"av1"};W=h.Y&&B.jX()&&cc();if(J.containerType!==V.containerType)if(W)B.GV("sgap",{ierr:"container"});else return{msg:"container"};if(h.C&&!W&&(J.eO!==V.eO||J.eO===""||V.eO===""))return{msg:"codec"};if(h.S&&J.video&&V.video&&Math.abs(J.video.width/J.video.height-V.video.width/V.video.height)>.01)return{msg:"ratio"};if(g.tT(B)&&g.tT(H))return{msg:"content-protection"};E=E.X[0];H=H.G.X[0];c=E.audio;var u=H.audio;if(c.sampleRate!== u.sampleRate&&!g.Zx)if(W)B.GV("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:E.itag,cr:c.sampleRate,ni:H.itag,nr:u.sampleRate};return(c.numChannels||2)!==(u.numChannels||2)?{msg:"channel-count"}:h.Z&&B.jX()&&V.video.fps!==J.video.fps?{msg:"fps"}:null}; Tqd=function(h,W,c){var V=h.getVideoData(),H=W.getVideoData();if(!V.B().supportsGaplessShorts())return{nq:"env"};if((!c.T||V.eL&&!V.isAd()||H.eL&&!H.isAd())&&(!c.W||V.eL&&!V.isAd()||H.eL)&&(!c.G||H.eL&&!H.isAd()||V.eL)&&(V.eL||H.eL))return{nq:"autoplay"};if(V.endSeconds>0)return{nq:"endcr"};if(!V.S)return{nq:"client"};if(!h.YQ())return{nq:"no-empty"};h=bhh(c,h,W,Infinity);return h!=null?{nq:h.msg}:null}; vI=function(h){g.N.call(this);this.app=h;this.C=this.Y=this.W=this.X=null;this.G=1;this.events=new g.lX(this);this.events.U(this.app.qn,g.om("gaplessshortslooprange"),this.Z);g.X(this,this.events)}; Nqk=function(){this.X=this.S=this.G=this.W=this.T=this.N=this.XI=this.Z=this.C=this.Y=!1}; XiN=function(h){var W=new Nqk;W.Y=h.j("h5_gapless_support_types_diff");W.Z=h.j("h5_gapless_error_on_fps_diff");W.XI=h.j("html5_gapless_use_format_info_fix");W.N=h.j("html5_gapless_disable_on_av1")&&!h.j("html5_gapless_enable_on_av1");W.C=h.j("html5_gapless_check_codec_diff_strictly");W.T=h.j("html5_gapless_on_ad_autoplay");W.S=h.j("html5_gapless_disable_diff_aspect_radio");W.W=h.j("html5_gapless_ad_autoplay_on_ad_to_video_only");W.X=h.j("html5_pseudogapless_shorts_seek_to_next_start");W.G=h.j("html5_gapless_ad_autoplay_on_video_to_ad_only"); return W}; g.mv=function(h,W,c,V){V=V===void 0?!1:V;Gn.call(this);this.mediaElement=h;this.start=W;this.end=c;this.X=V}; ti7=function(h,W,c,V,H,B){B=B===void 0?0:B;g.N.call(this);var E=this;this.policy=h;this.X=W;this.W=c;this.Ql=H;this.C=B;this.Y=this.G=null;this.currentVideoDuration=this.N=-1;this.S=!1;this.qS=new d4;this.Eq=V-W.FA()*1E3;this.qS.then(void 0,function(){}); this.timeout=new g.oD(function(){E.Vr("timeout")},1E4); g.X(this,this.timeout);this.Z=isFinite(V)||this.Ql.B().experiments.xN("html5_pseudogapless_shorts")&&Qk(W.getVideoData());this.status={status:0,error:null}}; m5p=function(h){var W,c,V,H,B,E,J,u,d;return g.P(function(G){if(G.W==1){if(h.gE())return G.return(Promise.reject(Error(h.status.error||"disposed")));h.timeout.start();return g.F(G,h.qS,2)}W=h.X.yl();if(W.isEnded())return h.Vr("ended_in_finishTransition"),G.return(Promise.reject(Error(h.status.error||"")));if(!h.Y||!Hc(h.Y))return h.Vr("next_mse_closed"),G.return(Promise.reject(Error(h.status.error||"")));if(h.W.ke()!==h.Y)return h.Vr("next_mse_mismatch"),G.return(Promise.reject(Error(h.status.error|| "")));c=oU(h);V=c.hC;H=c.fh;B=c.zN;h.X.Lw(!1,!0);E=viN(W,V,B,!h.W.getVideoData().isAd());h.W.setMediaElement(E);(J=h.X.XY())&&h.W.Qp(J.JT,J.Ig);h.Z&&(h.policy.X||h.W.seekTo(h.W.getCurrentTime()+.001,{Dv:!0,dX:3,LR:"gapless_pseudo"}),E.play(),iW());u=W.MU();u.cpn=h.X.getVideoData().clientPlaybackNonce;u.st=""+V;u.et=""+B;h.W.GV("gapless",u);h.X.GV("gaplessTo",{cpn:h.W.getVideoData().clientPlaybackNonce});d=h.X.getPlayerType()===h.W.getPlayerType();h.X.b7(H,!0,!1,d,h.W.getVideoData().clientPlaybackNonce); h.W.b7(h.W.getCurrentTime(),!0,!0,d,h.X.getVideoData().clientPlaybackNonce);h.W.r9();g.nW(function(){!h.W.getVideoData().Wk&&h.W.getPlayerState().isOrWillBePlaying()&&h.W.jr()}); pw(h,6);h.dispose();return G.return(Promise.resolve())})}; Y3k=function(h){if(h.W.getVideoData().G){var W=h.Ql.B().j("html5_gapless_suspend_next_loader")&&h.C===1;h.W.Wl(h.Y,W,oiT(h));pw(h,3);pid(h);var c=IiQ(h);W=c.Fr;c=c.gP;W.subscribe("updateend",h.vE,h);c.subscribe("updateend",h.vE,h);h.vE(W);h.vE(c)}}; pid=function(h){h.X.unsubscribe("internalvideodatachange",h.b8,h);h.W.unsubscribe("internalvideodatachange",h.b8,h);h.Ql.B().j("html5_gapless_use_format_info_fix")&&(h.X.unsubscribe("internalvideoformatchange",h.b8,h),h.W.unsubscribe("internalvideoformatchange",h.b8,h));h.X.unsubscribe("mediasourceattached",h.b8,h);h.W.unsubscribe("statechange",h.XF,h)}; viN=function(h,W,c,V){h=h.isView()?h.mediaElement:h;return new g.mv(h,W,c,V)}; pw=function(h,W){W<=h.status.status||(h.status={status:W,error:null},W===5&&h.qS.resolve())}; oiT=function(h){return h.Ql.B().j("html5_gapless_no_clear_buffer_timeline")&&h.C===1&&AT(h.X.getVideoData())}; oU=function(h){var W=h.X.yl();W=W.isView()?W.start:0;var c=h.X.getVideoData().isLivePlayback?Infinity:h.X.H3(!0);c=Math.min(h.Eq/1E3,c)+W;var V=h.Z?100:0;h=c-h.W.G2()+V;return{bu:W,hC:h,fh:c,zN:Infinity}}; IiQ=function(h){return{Fr:h.G.X.Vl,gP:h.G.W.Vl}}; IU=function(h){g.N.call(this);var W=this;this.app=h;this.N=this.W=this.X=null;this.Z=!1;this.G=this.Y=null;this.C=XiN(this.app.B());this.S=function(){g.nW(function(){OhN(W)})}}; S3h=function(h,W,c,V,H){V=V===void 0?0:V;H=H===void 0?0:H;h.YQ()||YY(h);h.Y=new d4;h.X=W;var B=c,E=H===0;E=E===void 0?!0:E;var J=h.app.ZH(),u=J.getVideoData().isLivePlayback?Infinity:J.H3(!0)*1E3;B>u&&(B=u-200,h.Z=!0);E&&J.getCurrentTime()>=B/1E3?h.S():(h.W=J,E&&(E=B,B=h.W,h.app.qn.addEventListener(g.mZ("vqueued"),h.S),E=isFinite(E)||E/1E3>B.getDuration()?E:0x8000000000000,h.N=new g.t$(E,0x8000000000000,{namespace:"vqueued"}),B.addCueRange(h.N)));E=V/=1E3;B=W.getVideoData().X;V&&B&&h.W&&(J=V,u=0, W.getVideoData().isLivePlayback&&(E=Math.min(c/1E3,h.W.H3(!0)),u=Math.max(0,E-h.W.getCurrentTime()),J=Math.min(V,W.H3()+u)),E=fSh(B,J)||V,E!==V&&h.X.GV("qvaln",{st:V,at:E,rm:u,ct:J}));W=E;V=h.X;V.getVideoData().Gu=!0;V.getVideoData().S=!0;V.bj(!0);B={};h.W&&(B=h.W.L$(),E=h.W.getVideoData().clientPlaybackNonce,B={crt:(B*1E3).toFixed(),cpn:E});V.GV("queued",B);W!==0&&V.seekTo(W+.01,{Dv:!0,dX:3,LR:"videoqueuer_queued"});h.G=new ti7(h.C,h.app.ZH(),h.X,c,h.app,H);c=h.G;c.status.status!==Infinity&&(pw(c, 1),c.X.subscribe("internalvideodatachange",c.b8,c),c.W.subscribe("internalvideodatachange",c.b8,c),c.Ql.B().j("html5_gapless_use_format_info_fix")&&(c.X.subscribe("internalvideoformatchange",c.b8,c),c.W.subscribe("internalvideoformatchange",c.b8,c)),c.X.subscribe("mediasourceattached",c.b8,c),c.W.subscribe("statechange",c.XF,c),c.X.subscribe("newelementrequired",c.ih,c),c.b8());return h.Y}; OhN=function(h){var W,c,V,H,B,E,J;g.P(function(u){switch(u.W){case 1:if(h.gE()||!h.Y||!h.X)return u.return();h.Z&&h.app.ZH().Do(!0,!1);W=null;if(!h.G){u.bB(2);break}g.Qp(u,3);return g.F(u,m5p(h.G),5);case 5:g.AN(u,2);break;case 3:W=c=g.CU(u);case 2:if(!h.X)return u.return();giU.J4("vqsp",function(){h.app.Gc(h.X)}); if(!h.X)return u.return();V=h.X.yl();h.app.B().j("html5_gapless_seek_on_negative_time")&&V&&V.getCurrentTime()<-.01&&h.X.seekTo(0);giU.J4("vqpv",function(){h.app.playVideo()}); W&&(h.X?(H=W?W.message:"forced",(B=h.W)==null||B.GV("gapfulfbk",{r:H}),h.X.vS(H)):(E=h.W)==null||E.GV("gapsp",{}));J=h.Y;YY(h);J&&J.resolve();return u.return(Promise.resolve())}})}; YY=function(h,W){W=W===void 0?!1:W;if(h.W){if(h.N){var c=h.W;h.app.qn.removeEventListener(g.mZ("vqueued"),h.S);c.removeCueRange(h.N)}h.W=null;h.N=null}h.G&&(h.G.status.status!==6&&(c=h.G,c.status.status!==Infinity&&c.C!==1&&c.Vr("Canceled")),h.G=null);h.Y=null;h.X&&!W&&h.X!==h.app.XA()&&h.X!==h.app.ZH()&&h.X.dispose();h.X&&W&&h.X.LQ();h.X=null;h.Z=!1}; D5D=function(h){var W;return((W=h.G)==null?void 0:W.currentVideoDuration)||-1}; wi5=function(h,W,c){if(h.YQ())return"qie";if(h.X==null||h.X.gE()||h.X.getVideoData()==null)return"qpd";if(W.videoId!==h.X.Cj())return"vinm";if(D5D(h)<=0)return"ivd";if(c!==1)return"upt";if((c=h.G)==null)h=void 0;else if(c.getStatus().status!==5)h="niss";else if(bhh(c.policy,c.X,c.W,c.Eq)!=null)h="pge";else{W=IiQ(c);h=W.Fr;var V=W.gP;W=g.DF(c.Ql.B().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var H=c.N+W;c.Ql.B().experiments.xN("html5_pseudogapless_shorts")&&(H=oU(c).hC+W);c=IG(V.M$(), H);h=IG(h.M$(),H);h=!(W>0)||c&&h?null:"neb"}return h!=null?h:null}; klQ=function(){g.h1.call(this);var h=this;this.fullscreen=0;this.Y=this.G=this.pictureInPicture=this.X=this.W=this.inline=!1;this.C=function(){h.RV()}; V6N(this.C);this.N=this.getVisibilityState(this.vB(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.B5(),this.pZ(),this.O7(),this.F2())}; H_D=function(h){return!(h.isMinimized()||h.isInline()||h.isBackground()||h.B5()||h.pZ()||h.O7()||h.F2())}; g.O7=function(h){g.N.call(this);this.uB=h;this.videoData=this.playerState=null}; DK=function(h,W){g.N.call(this);var c=this;this.data=[];this.G=h||NaN;this.W=W||null;this.X=new g.oD(function(){SV(c);g3(c)}); g.X(this,this.X)}; FHv=function(h){SV(h);return h.data.map(function(W){return W.value})}; SV=function(h){var W=(0,g.aC)();h.data.forEach(function(c){c.expire0));h.gI()&& c7N();Error.stackTraceLimit=50;var H=g.DF(W,"html5_idle_rate_limit_ms");H&&Object.defineProperty(window,"requestIdleCallback",{value:function(B){return window.setTimeout(B,H)}}); VJL(h.C);X0U(c("html5_use_ump_request_slicer"));ZBp(c("html5_record_now"));c("html5_disable_streaming_xhr")&&(rh=!1);c("html5_byterate_constraints")&&(QQ=!0);c("html5_use_non_active_broadcast_for_post_live")&&(dW=!0);c("html5_enable_encrypted_av1")&&(Un=!0);wHk(g.DF(h.experiments,"html5_sticky_duration_mos"))}; HdT=function(h,W){return h.slice(W.length).replace(/_[a-z]/g,function(c){return c.toUpperCase().replace("_","")}).replace("Dot",".")}; BBU=function(h){var W={},c=Object.keys(h.experiments.flags);c=g.e(c);for(var V=c.next();!V.done;V=c.next())if(V=V.value,V.startsWith("cobalt_h5vcc"))if(V.startsWith("cobalt_h5vcc_string")){var H=HdT(V,"cobalt_h5vcc_string");V=q8(h.experiments,V);H&&V&&(W[H]=hZN(H,V))}else V.startsWith("cobalt_h5vcc")&&(H=HdT(V,"cobalt_h5vcc"),V=g.DF(h.experiments,V),H&&V&&(W[H]=hZN(H,V)));return W}; Rzv=function(h,W,c,V){V=V===void 0?0:V;g.cV.call(this,c.pO());var H=this;this.CR=h;this.videoData=W;this.duration=V;this.X=this.startTimeSecs=0;this.W=new EmT(function(B,E){return void H.GV(B,E)})}; EmT=function(h){this.GV=h;this.X={}}; JfQ=function(h,W,c){h.X[W]||(h.GV("huli-sdai-err",c),h.X[W]=!0)}; uf4=function(h){this.end=this.start=h}; g.cg=function(){this.X=new Map;this.G=new Map;this.W=new Map}; dRp=function(){var h=this;this.X=[];this.G=new Map;this.Y=new Map;this.W=new Map;this.uX={Jm:function(){return h.G}, K7n:function(){return h.Y}}}; ZdN=function(h,W){g.Sl(h.X,W,function(c,V){return c.W0===V.W0?c.durationMs-V.durationMs:c.W0-V.W0}); h.G.set(W.cpn,W);W.H0&&h.Y.set(W.H0,W);W.Al&&Gg4(h,W.Al,W)}; rfT=function(h,W){W=g.mU(h.X,{uV:W},function(c,V){return c.uV-V.uV}); return W>=0?h.X[W]:null}; qUT=function(h,W){var c=h.X.indexOf(W);c>=0&&h.X.splice(c,1);h.G.delete(W.cpn);W.H0&&h.Y.delete(W.H0)}; Gg4=function(h,W,c){var V=h.W.get(W);V?(V.push(c),g.Y6(V,function(H,B){return H.W0-B.W0})):h.W.set(W,[c])}; g.VV=function(h,W,c,V){g.N.call(this);var H=this;this.api=h;this.uB=W;this.playback=c;this.app=V;this.Wk=new g.cg;this.W=new Map;this.X=new dRp;this.zV=new Map;this.DH=null;this.Ef=NaN;this.Jk=this.Mn=null;this.rE=new g.oD(function(){xR7(H,H.Ef,H.Mn||void 0)}); this.events=new g.lX(this);this.CM=15E3;this.S=new g.oD(function(){H.Z=!0;H.playback.zy(H.CM);lmD(H);if(H.playback.getVideoData().Gw()){var B;H.Wi({togab:(B=H.N)==null?void 0:B.identifier})}H.h3(!1)},this.CM); this.Z=!1;this.C=new Map;this.mW=[];this.N=null;this.yg=new Set;this.T=[];this.Ak=[];this.Sx=[];this.hI=[];this.lN=0;this.XI=!1;this.qU=new Set;this.Zn=new Set;this.U5=new Set;this.Rz=new Set;this.lW=this.xS=0;this.zL=this.uW=!1;this.Zg=this.G="";this.Pk=null;this.logger=new g.xP("dai");this.uX={SGH:function(){return H.W}, Jm:function(){return H.X.uX.Jm()}, KHW:function(){return H.G}, ftk:function(B){H.onCueRangeEnter(H.W.get(B))}, L7k:function(B){H.onCueRangeExit(H.W.get(B))}, E0I:function(B,E){H.W.set(B,E)}, T7V:function(B){H.Zg=B}, PG:function(){return H.PG()}, F7n:function(B){return H.X.W.get(B)}, FHf:function(){return H.Pk}, qGO:function(){return H.X.X}}; this.playback.getPlayerType();this.playback.pK(this);this.Nn=this.uB.gI();g.X(this,this.rE);g.X(this,this.events);g.X(this,this.S);this.events.U(this.api,g.mZ("serverstitchedcuerange"),this.onCueRangeEnter);this.events.U(this.api,g.om("serverstitchedcuerange"),this.onCueRangeExit);Wg(this.app.mR(),this.playback,!1)}; zzN=function(h,W,c,V,H,B,E,J,u){if(h.uB.j("html5_ignore_ads_after_noadresponse")&&u&&h.yg.has(u))$_(h,{reason:"addafternoad",cueid:u});else{u=nml(h,B,B+H);h.Z&&h.Wi({adaftto:1});c||h.Wi({missadcon:1,enter:B,len:H,aid:J});h.Y&&!h.Y.Dd&&(h.Y.Dd=J);h.zL&&h.Wi({adfbk:1,enter:B,len:H,aid:J});var d=h.playback;B===E&&!H&&h.uB.j("html5_allow_zero_duration_ads_on_timeline")&&h.Wi({attl0d:1});B>E&&$_(h,{reason:"enterTime_greater_than_return",W0:B,uV:E});var G=d.Jw()*1E3;Bd&&$_(h,{reason:"parent_return_greater_than_content_duration",uV:E,RDg:d});(d=rfT(h.X,B))&&d.uV>B&&jF4(h,W.video_id||"",B,E,d);if(u&&d)for(G=0;G=0)for(var H=W*1E3,B=V;B<=V+1&&B=E.W0-c*1E3&&H<=E.uV+c*1E3)return{fN:E,BQ:W}}return{fN:void 0,BQ:W}}; Af7=function(h,W){var c="";(W=idU(h,W))&&(c=W.getId());return c?h.X.mK({cpn:c}):void 0}; idU=function(h,W){if(h.Zg){var c=h.W.get(h.Zg);if(c&&c.start-200<=W&&c.end+200>=W)return c}h=g.e(h.W.values());for(c=h.next();!c.done;c=h.next())if(c=c.value,c.start<=W&&c.end>=W)return c}; xR7=function(h,W,c){var V=h.Jk||h.app.ZH().getPlayerState();Et(h,!0);h.playback.seekTo(W,c);h=h.app.ZH();W=h.getPlayerState();V.isOrWillBePlaying()&&!W.isOrWillBePlaying()?h.playVideo():V.isPaused()&&!W.isPaused()&&h.pauseVideo()}; Et=function(h,W){h.Ef=NaN;h.Mn=null;h.rE.stop();h.DH&&W&&h.DH.WJ();h.Jk=null;h.DH=null}; yfU=function(h){var W=W===void 0?-1:W;var c=c===void 0?Infinity:c;for(var V=[],H=g.e(h.X.X),B=H.next();!B.done;B=H.next())B=B.value,(B.W0c)&&V.push(B);h.X.X=V;V=g.e(h.W.values());for(H=V.next();!H.done;H=V.next())H=H.value,H.start>=W&&H.end<=c&&(h.playback.removeCueRange(H),h.W.delete(H.getId()),h.Wi({rmAdCR:1}));V=Bg(h,W/1E3);W=V.fN;V=V.BQ;W&&(V=V*1E3-W.W0,FTU(h,W,V,W.W0+V),V=h.W.get(W.cpn))&&(V.start=W.W0,V.end=W.W0+W.durationMs);if(W=Bg(h,c/1E3).fN){var E;V="playback_timelinePlaybackId_"+ W.H0+"_video_id_"+((E=W.videoData)==null?void 0:E.videoId)+"_durationMs_"+W.durationMs+"_enterTimeMs_"+W.W0+"_parentReturnTimeMs_"+W.uV;h.gi("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+V+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; Pkk=function(h){h.Wk.clearAll();h.W.clear();h.X.clear();h.C.clear();h.mW=[];h.N=null;h.yg.clear();h.T=[];h.Ak=[];h.Sx=[];h.hI=[];h.qU.clear();h.Zn.clear();h.U5.clear();h.Rz.clear();h.Z=!1;h.lN=0;h.XI=!1;h.xS=0;h.lW=0;h.uW=!1;h.zL=!1;h.G="";hzp(h.app.mR());Wg(h.app.mR(),h.playback,!1);h.zV.clear();h.S.isActive()&&Hg(h)}; FTU=function(h,W,c,V){W.durationMs=c;W.uV=V;(V=h.zV.get(W.cpn))?V.I3(c/1E3):h.Wi({nop_d:W.cpn})}; TBT=function(h,W,c,V,H,B){if(!h.zL)if(g.fmT(h,c))h.Wi({gdu:"undec",seg:c,itag:H});else if(W=bdp(h,W,c,V,B),!(h.playback.getVideoData().Gw()&&(W==null?0:W.fL)))return W}; bdp=function(h,W,c,V,H){var B=h.C.get(c);if(!B){if(B=NBl(h,W))return B;W=h.m6(c-1,V!=null?V:2);if(H)return h.Wi({misscue:H,sq:c,type:V,prevsstate:W==null?void 0:W.CT,prevrecord:h.C.has(c-1)}),h.C.get(c-1);if((W==null?void 0:W.CT)===2)return h.Wi({adnf:1,sq:c,type:V,prevrecord:h.C.has(c-1)}),h.C.get(c-1)}return B}; NBl=function(h,W){W+=h.rJ();if(h.playback.getVideoData().Gw())a:{var c=1;c=c===void 0?0:c;var V=W*1E3;h=g.e(h.X.X);for(var H=h.next();!H.done;H=h.next()){H=H.value;var B=H.Si?H.Si*1E3:H.W0;if(V>=H.W0-c*1E3&&V<=B+H.durationMs+c*1E3){V={fN:H,BQ:W};break a}}V={fN:void 0,BQ:W}}else V=Bg(h,W),((c=V)==null?0:c.fN)||(V=Bg(h,W,1));var E;return(E=V)==null?void 0:E.fN}; XZT=function(h,W){W=W===void 0?"":W;var c=Ud(W)||void 0;if(!W||!c){var V;h.Wi({adcfg:(V=W)==null?void 0:V.length,dcfg:c==null?void 0:c.length})}return c}; th4=function(h){for(var W=g.e(h.W.values()),c=W.next();!c.done;c=W.next())h.playback.removeCueRange(c.value);h.W.clear();h.Wk.clearAll()}; vmN=function(h,W,c,V,H,B,E){if(W&&c){h.Zg=c.cpn;h.vQ(c.cpn,c.startTimeSecs||H);LTQ(h,c);var J=QFv(h,"a2a",c);h.Wi(J);h.xS++;h.playback.Q9(W,c,V||0,H||0,!!B,!!E)}else h.Wi({misspbkonadtrans:1,enter:(c==null?void 0:c.cpn)||"",exit:(W==null?void 0:W.cpn)||"",seek:B,skip:E})}; RT=function(h,W,c){if(c===void 0||!c){c=g.e(h.mW);for(var V=c.next();!V.done;V=c.next()){V=V.value;if(W>=V.start&&W<=V.end)return;if(W===V.end+1){V.end+=1;return}}h.mW.push(new uf4(W))}}; g.fmT=function(h,W){h=g.e(h.mW);for(var c=h.next();!c.done;c=h.next())if(c=c.value,W>=c.start&&W<=c.end)return!0;return!1}; mRN=function(h,W,c){var V;if(V=h.playback.getVideoData().Gw()||h.uB.j("html5_ssdai_extent_last_unfinished_ad_cue_range"))V=(V=h.X.mK({cpn:W}))&&V.Al?(h=h.X.W.get(V==null?void 0:V.Al))&&h.slice(-1)[0].cpn===W:!1;return V&&c===2?1E3:0}; jF4=function(h,W,c,V,H){var B;W={reason:"overlapping_playbacks",HtO:W,W0:c,uV:V,k0g:H.H0,Q4E:((B=H.videoData)==null?void 0:B.videoId)||"",bQn:H.durationMs,zxW:H.W0,DSn:H.uV};$_(h,W)}; $_=function(h,W,c){h.playback.Dm(W,c)}; om4=function(h,W){var c=[];h=h.X.W.get(W);if(!h)return[];h=g.e(h);for(W=h.next();!W.done;W=h.next())W=W.value,W.cpn&&c.push(W.cpn);return c}; pZv=function(h,W,c){var V=0;h=h.X.W.get(c);if(!h)return-1;h=g.e(h);for(c=h.next();!c.done;c=h.next()){if(c.value.cpn===W)return V;V++}return-1}; ImL=function(h,W){var c=0;h=h.X.W.get(W);if(!h)return 0;h=g.e(h);for(W=h.next();!W.done;W=h.next())W=W.value,W.durationMs!==0&&W.uV!==W.W0&&c++;return c}; YUp=function(h,W,c){var V=!1;if(c=h.X.W.get(c)){c=g.e(c);for(var H=c.next();!H.done;H=c.next())H=H.value,H.durationMs!==0&&H.uV!==H.W0&&(H=H.cpn,W===H&&(V=!0),V&&!h.Zn.has(H)&&(h.Wi({decoratedAd:H}),h.Zn.add(H)))}}; lmD=function(h){h.Nn&&h.Wi({adf:"0_"+((new Date).getTime()/1E3-h.lW)+"_isTimeout_"+h.Z})}; nml=function(h,W,c){if(h.T.length)for(var V=g.e(h.T),H=V.next(),B={};!H.done;B={pT:void 0},H=V.next()){B.pT=H.value;H=B.pT.startSecs*1E3;var E=B.pT.QM*1E3+H;if(W>H&&WH&&c0?h:0}else h.PG().videoData.q$=h.playback.getCurrentTime()}; SUk=function(h){h.Rz.add(h.G);h.G="";h.XI=!1}; Wnv=function(h,W,c,V){g.N.call(this);var H=this;this.api=h;this.uB=W;this.X=c;this.app=V;this.C=new Map;this.W=[];this.G=this.S=null;this.XI=NaN;this.N=this.Y=this.T=null;this.Z=new g.oD(function(){hAL(H,H.XI,H.T||void 0)}); this.Wk=[];this.Pk=new g.oD(function(){var B=H.Wk.pop();if(B){var E=B.H0,J=B.playerVars;B=B.playerType;J&&(J.prefer_gapless=!0,H.api.preloadVideoByPlayerVars(J,B,NaN,"",E),H.Wk.length&&g.pO(H.Pk,4500))}}); this.events=new g.lX(this);this.uX={yoM:function(){return H.W}}; this.X.getPlayerType();g.X(this,this.Z);g.X(this,this.Pk);g.X(this,this.events);this.events.U(this.api,g.mZ("childplayback"),this.onCueRangeEnter);this.events.U(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.U(this.api,"presentingplayerstatechange",this.Dc)}; sZT=function(h,W,c,V,H,B){var E=W.cpn,J=W.docid||W.video_id||W.videoId||W.id,u=h.X;B=B===void 0?H+V:B;if(H>B)return uF(h,"enterAfterReturn enterTimeMs="+H+" is greater than parentReturnTimeMs="+B.toFixed(3),E,J),"";var d=u.Jw()*1E3;if(Hd)return u="returnAfterDuration parentReturnTimeMs="+B.toFixed(3)+" is greater than parentDurationMs="+d+". And timestampOffset in seconds is "+ u.FA(),uF(h,u,E,J),"";d=null;for(var G=g.e(h.W),Z=G.next();!Z.done;Z=G.next()){Z=Z.value;if(H>=Z.W0&&HZ.W0)return uF(h,"overlappingReturn",E,J),"";if(B===Z.W0)return uF(h,"outOfOrder",E,J),"";H===Z.uV&&(d=Z)}E="cs_childplayback_"+ciD++;J={qh:GK(V,!0),Eq:Infinity,target:null};var r={H0:E,playerVars:W,playerType:c,durationMs:V,W0:H,uV:B,e0:J};h.W=h.W.concat(r).sort(function(z,L){return z.W0-L.W0}); d?VjU(h,d,{qh:GK(d.durationMs,!0),Eq:d.e0.Eq,target:r}):(W={qh:GK(H,!1),Eq:H,target:r},h.C.set(W.qh,W),u.addCueRange(W.qh));W=!0;if(h.X===h.app.ZH()&&(u=u.getCurrentTime()*1E3,u>=r.W0&&uW)break;if(B>W)return{fN:V,BQ:W-H};c=B-V.uV/1E3}return{fN:null,BQ:W-c}}; hAL=function(h,W,c){c=c===void 0?{}:c;var V=h.N||h.app.ZH().getPlayerState();qg(h,!0);W=isFinite(W)?W:h.X.Nv();var H=RA7(h,W);W=H.BQ;var B=(H=H.fN)&&!ZA(h,H)||!H&&h.X!==h.app.ZH(),E=W*1E3;E=h.G&&h.G.start<=E&&E<=h.G.end;!B&&E||ro(h);H?$r4(h,H,W,c,V):Jid(h,W,c,V)}; Jid=function(h,W,c,V){var H=h.X;H!==h.app.ZH()&&h.app.f7();H.seekTo(W,Object.assign({},{LR:"application_timelinemanager"},c));uQl(h,V)}; $r4=function(h,W,c,V,H){var B=ZA(h,W);if(!B){W.playerVars.prefer_gapless=!0;var E=new g.G8(h.uB,W.playerVars);E.H0=W.H0;h.api.oG(E,W.playerType)}E=h.app.ZH();B||E.addCueRange(W.e0.qh);E.seekTo(c,Object.assign({},{LR:"application_timelinemanager"},V));uQl(h,H)}; uQl=function(h,W){h=h.app.ZH();var c=h.getPlayerState();W.isOrWillBePlaying()&&!c.isOrWillBePlaying()?h.playVideo():W.isPaused()&&!c.isPaused()&&h.pauseVideo()}; qg=function(h,W){h.XI=NaN;h.T=null;h.Z.stop();h.Y&&W&&h.Y.WJ();h.N=null;h.Y=null}; ZA=function(h,W){h=h.app.ZH();return!!h&&h.getVideoData().H0===W.H0}; dr4=function(h){var W=h.W.find(function(H){return ZA(h,H)}); if(W){var c=h.app.ZH();ro(h);var V=new g.l1(8);W=EIv(h,W)/1E3;Jid(h,W,{},V);c.GV("forceParentTransition",{childPlayback:1});h.X.GV("forceParentTransition",{parentPlayback:1})}}; ZXl=function(h,W,c){W=W===void 0?-1:W;c=c===void 0?Infinity:c;for(var V=W,H=c,B=g.e(h.C),E=B.next();!E.done;E=B.next()){var J=g.e(E.value);E=J.next().value;J=J.next().value;J.Eq>=V&&J.target&&J.target.uV<=H&&(h.X.removeCueRange(E),h.C.delete(E))}V=W;H=c;B=[];E=g.e(h.W);for(J=E.next();!J.done;J=E.next())if(J=J.value,J.W0>=V&&J.uV<=H){var u=h;u.S===J&&ro(u);ZA(u,J)&&u.app.f7()}else B.push(J);h.W=B;V=RA7(h,W/1E3);W=V.fN;V=V.BQ;W&&(V*=1E3,GUh(h,W,V,W.uV===W.W0+W.durationMs?W.W0+V:W.uV));(W=RA7(h,c/1E3).fN)&& uF(h,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(W.H0+" video_id="+W.playerVars.video_id+" durationMs="+W.durationMs+" enterTimeMs="+W.W0+" parentReturnTimeMs="+W.uV+"}.Child playbacks can only have duration updated not their start."))}; GUh=function(h,W,c,V){W.durationMs=c;W.uV=V;V={qh:GK(c,!0),Eq:c,target:null};VjU(h,W,V);ZA(h,W)&&h.app.ZH().getCurrentTime()*1E3>c&&(W=EIv(h,W)/1E3,c=h.app.ZH().getPlayerState(),Jid(h,W,{},c))}; uF=function(h,W,c,V){h.X.GV("timelineerror",{e:W,cpn:c?c:void 0,videoId:V?V:void 0})}; qll=function(h){h&&h!=="web"&&riQ.includes(h)}; x_=function(){g.N.call(this);this.X=new DK(5,null);g.X(this,this.X);this.W=new DK(15,null);g.X(this,this.W)}; oHd=function(h,W){return W?!!h.X.get(W):!1}; xrU=function(h,W){h.dataset.version=W}; jZp=function(h){g.p.call(this,{D:"div",LM:["html5-video-player"],J:{tabindex:h.B().disableOrganicUi?"":"-1",id:h.webPlayerContextConfig.rootElementId},V:[{D:"div",K:g.ly.VIDEO_CONTAINER,J:{"data-layer":"0"}}]});var W=this;this.app=h;this.cO=this.vk(g.ly.VIDEO_CONTAINER);this.y5=new g.ts(0,0,0,0);this.E5=null;this.Gy=new g.ts(0,0,0,0);this.e1=this.Pe=this.hf=NaN;this.k$=this.Xg=this.Ua=this.cC=!1;this.QG=NaN;this.ra=!1;this.fb=null;this.IQ=function(){W.element.focus({preventScroll:!0})}; this.yu=function(){W.app.qn.publish("playerUnderlayVisibilityChange","visible");W.E5.classList.remove(g.ly.VIDEO_CONTAINER_TRANSITIONING);W.E5.removeEventListener(AK,W.yu);W.E5.removeEventListener("transitioncancel",W.yu)}; this.lr=this.Ap=!1;var c=this.element.addEventListener,V=this.element.removeEventListener;this.addEventListener=function(B,E,J){c.apply(W.element,[B,E,J])}; this.removeEventListener=function(B,E,J){V.apply(W.element,[B,E,J])}; var H=h.B();H.transparentBackground&&this.F$("ytp-transparent");H.controlsType==="0"&&this.F$("ytp-hide-controls");g.he(this.element,"ytp-exp-bottom-control-flexbox");g.he(this.element,"ytp-modern-caption");H.j("enable_new_paid_product_placement")&&!g.aa(H)&&g.he(this.element,"ytp-exp-ppp-update");H.j("html5_enable_ssap")&&g.he(this.element,"ytp-ssap");g.he(this.element,"ytp-livebadge-color");if(H.j("delhi_modern_web_player"))switch(g.he(this.element,"ytp-delhi-modern"),H.j("delhi_modern_web_player_icons")&& g.he(this.element,"ytp-delhi-modern-icons"),q8(H.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.he(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.he(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.he(this.element,"ytp-delhi-modern-with-exclusion")}xrU(this.element,lRk(h));this.Ci=!1;this.tY=new g.Yu(NaN,NaN);nID(this);this.U(h.qn,"onMutedAutoplayChange",this.onMutedAutoplayChange);h=g.DF(H.experiments,"html5_android_mweb_resize_delay"); h>0&&(this.zH=new g.oD(function(){return void W.resize()},h),g.X(this,this.zH))}; nID=function(h){function W(E){h.E5&&lF(h);nL(h)!==h.ra&&h.resize();h.app.B().j("web_enable_smart_zoom")&&h.Fa&&(E.state.isPaused()?h.Fa.pause():g.EA(E,8)&&h.Fa.playState==="paused"&&h.Fa.play())} function c(E,J){h.n$(E,J)} function V(E){E.getVideoData()&&h.updateVideoData(E.getVideoData())} function H(){h.Gy=new g.ts(0,0,0,0);h.y5=new g.ts(0,0,0,0)} var B=h.app.qn;B.addEventListener("initializingmode",H);B.addEventListener("videoplayerreset",V);B.addEventListener("videodatachange",c);B.addEventListener("presentingplayerstatechange",W);h.addOnDisposeCallback(function(){B.removeEventListener("initializingmode",H);B.removeEventListener("videoplayerreset",V);B.removeEventListener("videodatachange",c);B.removeEventListener("presentingplayerstatechange",W)})}; eAd=function(h){var W=h.app.ZH();if(W=W?W.getVideoData():null){if(g.gM(W)||g.De(W)||g.wM(W))return 16/9;if(z8(W)&&W.G.X)return h=W.G.videoInfos[0].video,aR7(h.width,h.height)}return(h=h.E5)?aR7(h.videoWidth,h.videoHeight):16/9}; zA5=function(h,W,c,V){var H=c,B=aR7(W.width,W.height);h.cC?H=cB?{width:W.width,height:W.width/H,aspectRatio:H}:HH?h.width=h.height*c:cu;if(nL(h)){var d=eAd(h);var G=isNaN(d)||g.vp||Gj&&g.G1||u;tZ&&!g.tk(601)?d=H.aspectRatio:G=G||B.controlsType==="3";G?u?(G=B.j("place_shrunken_video_on_left_of_player")?16:h.getPlayerSize().width-W.width-16,d=Math.max((h.getPlayerSize().height-W.height)/2,0),G=new g.ts(G,d,W.width, W.height),h.E5.style.setProperty("border-radius","12px")):G=new g.ts(0,0,W.width,W.height):(c=H.aspectRatio/d,G=new g.ts((W.width-H.width/c)/2,(W.height-H.height)/2,H.width/c,H.height),c===1&&g.G1&&(d=G.width-W.height*d,d>0&&(G.width+=d,G.height+=d)));g.$y(h.element,"ytp-fit-cover-video",Math.max(G.width-H.width,G.height-H.height)<1);if(J||h.Ci)h.E5.style.display="";h.ra=!0}else{G=-W.height;tZ?G*=window.devicePixelRatio:g.ez&&(G-=window.screen.height);G=new g.ts(0,G,W.width,W.height);if(J||h.Ci)h.E5.style.display= "none";h.ra=!1}v3(h.Gy,G)||(h.Gy=G,g.$X(B)?(h.E5.style.setProperty("width",G.width+"px","important"),h.E5.style.setProperty("height",G.height+"px","important")):g.h3(h.E5,G.getSize()),V=new g.p6(G.left,G.top),g.gb(h.E5,Math.round(V.x),Math.round(V.y)),V=!0);W=new g.ts((W.width-H.width)/2,(W.height-H.height)/2,H.width,H.height);v3(h.y5,W)||(h.y5=W,V=!0);g.oY(h.E5,"transform",c===1?"":"scaleX("+c+")");E&&u!==h.Xg&&(u&&(h.E5.addEventListener(AK,h.yu),h.E5.addEventListener("transitioncancel",h.yu),h.E5.classList.add(g.ly.VIDEO_CONTAINER_TRANSITIONING)), h.Xg=u,h.app.qn.publish("playerUnderlayVisibilityChange",h.Xg?"transitioning":"hidden"));return V}; iX7=function(h){h.Ap=!h.Ap;h.lr=!0;h.element.classList.toggle("ytp-retro-player",h.Ap);h.resize();h.lr=!1;h.app.qn.Iz("onRetroModeChanged",h.Ap)}; KnU=function(){this.csn=g.q_();this.clientPlaybackNonce=null;this.elements=new Set;this.G=new Set;this.X=new Set;this.W=new Set}; AiN=function(h){if(h.csn!==g.q_())if(h.csn==="UNDEFINED_CSN")h.csn=g.q_();else{var W=g.q_(),c=g.rc();if(W&&c){h.csn=W;for(var V=g.e(h.elements),H=V.next();!H.done;H=V.next())(H=H.value.visualElement)&&H.isClientVe()&&W&&c&&(g.ZX("combine_ve_grafts")?Iq(oq(),H,c):g.IW(g.TE)(void 0,W,c,H))}if(W)for(h=g.e(h.X),c=h.next();!c.done;c=h.next())(c=c.value.visualElement)&&c.isClientVe()&&g.YN(W,c)}}; g.jw=function(h,W,c,V){g.N.call(this);var H=this;this.logger=new g.xP("App");this.L1=this.kC=!1;this.hN={};this.AT=[];this.Oz=!1;this.nV=null;this.intentionalPlayback=!1;this.SW=!0;this.UI=!1;this.Xw=this.Hn=this.xz=null;this.Jy=!0;this.mediaElement=this.kZ=null;this.L6=NaN;this.V3=!1;this.RT=this.Kz=this.Jq=this.screenLayer=this.playlist=null;this.kY=[];this.Az=0;this.uX={mR:function(){return H.P0}, Rkk:function(){return H.Jq}}; this.logger.debug("constructor begin");if(!c)throw Error("b/179532961");this.nu=(W==null?void 0:W.args)||{};this.webPlayerContextConfig=c;R5p();W=this.nu;this.uB=new uo(W,c,c.canaryState,V,this);g.X(this,this.uB);sF4(this.uB);c=BBU(this.uB);this.uB.gI()&&this.xP("h5vcc",c);this.uB.experiments.xN("jspb_serialize_with_worker")&&oZl();this.uB.experiments.xN("gzip_gel_with_worker")&&f_T();this.uB.W&&!Urv&&(window.addEventListener(Ya?"touchstart":"click",fiT,{capture:!0,passive:!0}),Urv=!0);this.j("html5_onesie")&& (this.NF=new fN(this.uB),g.X(this,this.NF));this.SU=DX(ka(this.uB)&&!0,W.enablesizebutton);this.oH=DX(!1,W.player_wide);this.visibility=new klQ;g.X(this,this.visibility);this.j("web_log_theater_mode_visibility")&&this.vl(DX(!1,W.player_wide));this.kC=DX(!1,W.external_list);this.events=new g.lX(this);g.X(this,this.events);this.j("start_client_gcf")&&(al(Lq(),{MR:cY,F7:sr5()}),this.HL=Lq().resolve(cY),Ey5(this.HL));this.wVk=new ic;g.X(this,this.wVk);this.n5=new KnU;c=new KQ;this.qn=new g.t7(this,c); g.X(this,this.qn);this.template=new jZp(this);g.X(this,this.template);this.appState=1;this.Zc=CgU(this);g.X(this,c);c={};this.iF=(c.internalvideodatachange=this.j7,c.playbackready=this.FWk,c.playbackstarted=this.KWO,c.statechange=this.szW,c);this.R_=new aw(this.qn);this.yM=Mjd(this);c=this.uB.N;!1!==c&&this.xP("badps",{hbp:c,hostname:window.location.hostname,ps:this.uB.playerStyle});this.Dn=new jT7(this.uB,this.yM);this.qn.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||Xgl(this.yM))&& Fnd(this);c=10;g.uJ(this.uB)&&(c=3);ny(this.uB)&&(c=g.DF(this.uB.experiments,"tvhtml5_unplugged_preload_cache_size"));this.P0=new g.kY(this.qn,c);c=yiU(this);this.P0.yy(c);PgT(this);c={};this.Sq=(c.airplayactivechange=this.rIH,c.airplayavailabilitychange=this.iJz,c.beginseeking=this.JIV,c.sabrCaptionsDataLoaded=this.ulz,c.endseeking=this.xUg,c.internalAbandon=this.txg,c.internalaudioformatchange=this.cIg,c.internalvideodatachange=this.Y8N,c.internalvideoformatchange=this.hAn,c.liveviewshift=this.pik, c.playbackstalledatstart=this.GxM,c.progresssync=this.OJN,c.onAbnormalityDetected=this.ZJn,c.onSnackbarMessage=this.a3f,c.onLoadProgress=this.BIg,c.SEEK_COMPLETE=this.l3N,c.SEEK_TO=this.X0M,c.onVideoProgress=this.PXf,c.onLoadedMetadata=this.ezf,c.onAutoplayBlocked=this.yIE,c.onPlaybackPauseAtStart=this.VxV,c.playbackready=this.TII,c.statechange=this.pD,c.newelementrequired=this.tj,c.heartbeatparams=this.MxW,c.videoelementevent=this.ddW,c.drmoutputrestricted=this.Inz,c.signatureexpired=this.WKf,c.nonfatalerror= this.EZg,c.reloadplayer=this.wiN,c);this.cQ=new g.lX(this);g.X(this,this.cQ);this.yx=new x_;g.X(this,this.yx);this.uD=this.Sw=-1;this.S$=new g.oD(this.template.resize,16,this.template);g.X(this,this.S$);this.CR=new Wnv(this.qn,this.uB,this.XA(),this);this.dV=new IU(this);g.X(this,this.dV);this.SZ=new vI(this);g.X(this,this.SZ);qll(this.uB.X.c);this.events.U(this.qn,g.mZ("appapi"),this.Sfg);this.events.U(this.qn,g.om("appapi"),this.R9M);this.events.U(this.qn,g.mZ("appprogressboundary"),this.LKO);this.events.U(this.qn, g.om("applooprange"),this.KK);this.events.U(this.qn,"presentingplayerstatechange",this.Dc);this.events.U(this.qn,"resize",this.Udz);this.template.kN($S(document,h));this.events.U(this.qn,"offlineslatestatechange",this.q5H);this.events.U(this.qn,"sabrCaptionsTrackChanged",this.p0V);this.events.U(this.qn,"sabrCaptionsBufferedRangesUpdated",this.Mo9);this.yM.L.B().Gu&&Pv(this.yM,"offline");this.uB.Jk&&g.i3("ux",g.XF);h=g.DF(this.uB.experiments,"html5_defer_fetch_att_ms");this.QJ=new g.oD(this.GeN,h, this);g.X(this,this.QJ);this.O8().oT()&&(g.Uh()&&this.O8().T.push("remote"),fR5(this));this.Dn.tick("fs");bXU(this);this.uB.Jk&&Pv(this.yM,"ux",!0);g.DE(this.yM.L.B())&&Pv(this.yM,"embed");this.j("web_player_sentinel_is_uniplayer")||g.Lx(new g.tP("Player experiment flags missing","web_player_sentinel_is_uniplayer"));h=this.j("web_player_sentinel_yt_experiments_sync");c=g.ZX("web_player_sentinel_yt_experiments_sync");h!==c&&g.Lx(new g.tP("b/195699950",{yt:h,player:c}));this.ov=TCN(this);if(h=g.DF(this.uB.experiments, "html5_block_pip_safari_delay"))this.vA=new g.oD(this.oI,h,this),g.X(this,this.vA);Kb=this.uB.U5;this.qn.publish("applicationInitialized");this.logger.debug("constructor end")}; TCN=function(h){function W(c){c.stack&&c.stack.indexOf("player")!==-1&&h.ZH().g9(c)} iD.subscribe("handleError",W);oW.push(W);return function(){iD.unsubscribe("handleError",W);var c=oW.indexOf(W);c!==-1&&oW.splice(c,1)}}; yiU=function(h){var W=new g.G8(h.uB,h.nu);h.qn.publish("initialvideodatacreated",W);return aT(h,1,W,!1)}; PgT=function(h){var W=h.XA();W.setPlaybackRate(h.uB.Y?1:NCU(h,Number(g.KS("yt-player-playback-rate"))||1));W.BY(h.iF,h);W.fz()}; Mjd=function(h){var W="",c=lRk(h);c.indexOf("//")===0&&(c=h.uB.protocol+":"+c);var V=c.lastIndexOf("/base.js");V!==-1&&(W=c.substring(0,V+1));if(c=Error().stack)if(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))c=c[1],c.includes(W)||g.Lx(Error("Player module URL mismatch: "+(c+" vs "+W+".")));W=new bL7(h.qn,W);c={};ToN(W,(c.destroyed=function(){h.onApiChange()},c)); return W}; CgU=function(h){if(h.uB.storeUserVolume){h=g.KS("yt-player-volume")||{};var W=h.volume;h={volume:isNaN(W)?100:g.vr(Math.floor(W),0,100),muted:!!h.muted}}else h={volume:100,muted:h.uB.mute};return h}; ew=function(h){h.mediaElement=h.uB.deviceIsAudioOnly?new g.DM(g.Zr("AUDIO")):t6.pop()||new g.DM(g.Zr("VIDEO"));g.X(h,h.mediaElement);h.ZH().setMediaElement(h.mediaElement);try{h.uB.RR?(h.Kz&&h.events.v0(h.Kz),h.Kz=h.events.U(h.mediaElement,"volumechange",h.mUf)):(h.mediaElement.G$(h.Zc.muted),h.mediaElement.setVolume(h.Zc.volume/100))}catch(H){h.Vr("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(H&&typeof H==="object"&&"message"in H&&typeof H.message==="string"&&H.message.replace(/[;:,]/g, "_")));return}g.zR(h.cQ);X4d(h);var W=h.template,c=h.mediaElement.fJ();W.E5=c;W.k$=!1;W.E5.parentNode||li(W.cO,W.E5,0);W.Gy=new g.ts(0,0,0,0);LnL(W);lF(W);c=W.E5;g.he(c,"video-stream");g.he(c,g.ly.MAIN_VIDEO);var V=W.app.B();V.yX&&c.setAttribute("data-no-fullscreen","true");V.j("html5_local_playsinline")?"playsInline"in dA()&&(c.playsInline=!0):V.u8&&(c.setAttribute("webkit-playsinline",""),c.setAttribute("playsinline",""));V.nt&&W.E5&&W.U(c,"click",c.play,c);try{h.mediaElement.activate()}catch(H){h.Vr("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(H&&typeof H==="object"&&"message"in H&&typeof H.message==="string"&&H.message.replace(/[;:,]/g,"_")))}}; vIQ=function(h){if(!tjD(h)){var W=h.XA().yl();W&&(W=W.xt(),W instanceof Promise&&W.catch(function(){})); zK(h,i1(h.getPlayerStateObject()))}}; X4d=function(h){var W=h.mediaElement;qQ()?h.cQ.U(W,"webkitpresentationmodechanged",h.eAk):window.document.pictureInPictureEnabled&&(h.cQ.U(W,"enterpictureinpicture",function(){h.k_(!0)}),h.cQ.U(W,"leavepictureinpicture",function(){h.k_(!1)})); ox&&(h.cQ.U(W,"webkitbeginfullscreen",function(){h.J2(3)}),h.cQ.U(W,"webkitendfullscreen",function(){h.J2(0)}))}; mrp=function(h,W){var c=W.getPlayerType(),V=h.P0.G[c]||null;W!==h.XA()&&W!==V&&(V==null||V.dispose(),h.P0.G[c]=W)}; oIT=function(h,W){W=W===void 0?!0:W;h.logger.debug("start clear presenting player");var c;if(c=h.RT){c=h.RT;var V=h.mediaElement;c=!!V&&V===c.mediaElement}c&&(h.Lw(),ew(h));c=h.ZH();c.Lw(!W);c.K7(h.Sq,h);c.getPlayerType()!==1&&c.dispose();W=h.P0;W.W=W.X;h2(W);h.logger.debug("finish clear presenting player")}; g.p4N=function(h,W,c,V){var H=h.Dn;W===2&&(H=new jT7(h.uB));return new g.BR(h.uB,W,H,h.template,function(B,E,J){h.qn.publish(B,E,J)},function(){return h.qn.getVisibilityState()},h.visibility,h,c,V)}; aT=function(h,W,c,V,H){h=g.p4N(h,W,c,H);h=new g.cV(h);V&&h.fz();return h}; QV=function(h,W){return h.Eh(W)?h.XA():W}; LL=function(h,W){var c=h.ZH();return W===h.XA()&&h.Eh(W)&&h.Eh(c)?c:W}; OX5=function(h){h.logger.debug("start application playback");if(h.XA().getPlayerState().isError())h.logger.debug("start application playback done, player in error state");else{var W=iF(h);h.O8().isLoaded();W&&h.gZ(6);IRh(h);St4(h.yM)||Ylv(h)}}; Ylv=function(h){if(!iF(h)){var W=b3(h.yM);W&&!W.created&&Nok(h.yM)&&(h.logger.debug("reload ad module"),W.create())}}; IRh=function(h){h.logger.debug("start presenter playback");var W=h.getVideoData(),c=h.yM;St4(c)||c.mT();!Kl&&c.L.j("html5_allow_asmjs")&&WlU(c);Pv(c,"embed");Pv(c,"kids");Pv(c,"remote");Pv(c,"miniplayer");Pv(c,"offline");Pv(c,"unplugged");Pv(c,"ypc",!1,!0);Pv(c,"ypc_clickwrap",!1,!0);Pv(c,"yto",!1,!0);Pv(c,"webgl",!1,!0);g_l(c)||(Pv(c,"captions",!0),Pv(c,"endscreen"),c.lZ(),Pv(c,"creatorendscreen",!0));c.Wm();c.L.publish("modulesCreated");h.qn.publish("videoready",W)}; KL=function(h){h=h.O8();h.oT();return HN(h)}; bXU=function(h){h.logger.debug("start prepare initial playback");h.Zs();var W=h.nu;ew(h);h.events.U(window,"resize",h.odk);var c=h.O8();h.qn.Dg("onVolumeChange",h.Zc);if(W&&QTl(W)){var V=ru(h.uB);V&&!h.kC&&(W.fetch=0);var H=g.DE(h.uB);H&&!h.kC&&(W.fetch=0);A2(h,W);g.DE(h.uB)&&h.Dn.tick("ep_pr_s");if(!V||h.kC)if(H&&!h.kC)Sl4(h);else if(!c.oT())h.playlist.onReady(function(){Ut(h)})}h.Gc(h.XA(),!1,!0); g.Y(h.XA().getPlayerState(),128)||(W=MLQ(!h.uB.deviceIsAudioOnly),W==="fmt.noneavailable"?h.Vr("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):W==="html5.missingapi"?h.Vr(W,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.oT()&&KL(h)&&(h.uB.lJ||h.uB.uC)?CL(h):c.Bl?h.qn.mutedAutoplay({durationMode:c.mutedAutoplayDurationMode}):g.KS("yt-player-playback-on-reload")?(g.V5("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!h.uB.Pk}),g.iL("yt-player-playback-on-reload",!1), CL(h)):Qf(h.uB)||gI5(h),g.lo(h.uB)||ZE(h.uB)==="MWEB"?(g.II(g.Oh(),function(){Mg(h)}),g.II(g.Oh(),function(){Cql()})):(Mg(h),Cql()),h.logger.debug("finish prepare initial playback"))}; Mg=function(h){if(!h.j("use_rta_for_player"))if(h.j("fetch_att_independently"))g.pO(h.QJ);else{var W=h.getVideoData().botguardData;W&&g.hu(W,h.uB,h.getVideoData().uP||"")}}; gI5=function(h){h.logger.debug("start initialize to CUED mode");h.qn.publish("initializingmode");h.gZ(2);Pv(h.yM,"remote");Pv(h.yM,"miniplayer");h.logger.debug("initialized to CUED mode")}; CL=function(h){h.logger.debug("start initialize application playback");var W=h.XA();if(g.Y(W.getPlayerState(),128))return!1;W=W.getVideoData();KL(h)&&h.uB.uC&&(t6.length&&h.L1?(Fz(h,{muted:!1,volume:h.Zc.volume},!1),yV(h,!1)):t6.length||h.Zc.muted||(Fz(h,{muted:!0,volume:h.Zc.volume},!1),yV(h,!0)));KL(h)&&g.DE(h.uB)&&W.mutedAutoplay&&(Fz(h,{muted:!0,volume:h.Zc.volume},!1),yV(h,!0));W.G6&&Fz(h,{muted:!0,volume:h.Zc.volume},!1);Drd(h,1,W,!1);var c=h.XA();h.qn.publish("initializingmode");h.Gc(c);h.gZ(3); var V;if(!(V=!h.uB.aO)){if(V=h.RT){V=h.RT;var H=h.mediaElement;V=!!H&&H===V.mediaElement}V=V&&h.Oz}V&&(h.Lw(),ew(h),c.setMediaElement(h.mediaElement));c.QU();if(g.Y(c.getPlayerState(),128))return!1;W.Er||zK(h,3);return h.Oz=!0}; iF=function(h){h=pQ(h.yM);return!!h&&h.loaded}; w4N=function(h,W){if(!h.kZ)return!1;var c=h.kZ.startTimeMs*.001-1,V=h.kZ.endTimeMs*.001;h.kZ.type==="repeatChapter"&&V--;return Math.abs(W-c)<=1E-6||Math.abs(W-V)<=1E-6||W>=c&&W<=V}; kUN=function(h){var W=h.ZH();Qk(W.getVideoData())&&!W.Hd()&&(W=Pg(h)*1E3-h.getVideoData().VH,h.j("html5_gapless_new_slr")?(h=h.SZ,fL(h.app,"gaplessshortslooprange"),W=new g.t$(0,W,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(h=h.app.ZH())&&h.addCueRange(W)):h.setLoopRange({startTimeMs:0,endTimeMs:W,type:"shortsLoop"}))}; hxv=function(h){var W=h.XA();if(!(g.Y(W.getPlayerState(),64)&&h.O8().isLivePlayback&&h.kZ.startTimeMs<5E3)){if(h.kZ.type==="repeatChapter"){var c,V=(c=eQp(h.Pi()))==null?void 0:c.QX(),H;c=(H=h.getVideoData())==null?void 0:H.uC;V instanceof g.kH&&c&&(H=c[rD(c,h.kZ.startTimeMs)],V.renderChapterSeekingAnimation(0,H.title));isNaN(Number(h.kZ.loopCount))?h.kZ.loopCount=0:h.kZ.loopCount++;h.kZ.loopCount===1&&h.qn.Iz("innertubeCommand",h.getVideoData().X9O)}V={LR:"application_loopRangeStart"};if(h.kZ.type=== "clips"||h.kZ.type==="shortsLoop")V.seekSource=58;W.seekTo(h.kZ.startTimeMs*.001,V)}}; NCU=function(h,W){var c=h.qn.getAvailablePlaybackRates();W=Number(W.toFixed(2));h=c[0];c=c[c.length-1];W<=h?W=h:W>=c?W=c:(h=Math.floor(W*100+.001)%5,W=h===0?W:Math.floor((W-h*.01)*100+.001)/100);return W}; Pg=function(h,W){W=h.mK({playerType:W});if(!W)return h.P0.X.H3();W=QV(h,W);return bF(h,W.H3(),W)}; bF=function(h,W,c){if(h.Eh(c)&&(c=c.getVideoData(),!TK(h))){h=h.CR;for(var V=g.e(h.W),H=V.next();!H.done;H=V.next())if(H=H.value,c.H0===H.H0){W+=H.W0/1E3;break}V=W;h=g.e(h.W);for(H=h.next();!H.done;H=h.next()){H=H.value;if(c.H0===H.H0)break;var B=H.W0/1E3;if(B1&&(H=!1);if(!h.V3||H!==W){c=c.lock(H?"portrait":"landscape");if(c!=null)c["catch"](function(){}); h.V3=!0}}else h.V3&&(h.V3=!1,c.unlock())}; m4=function(h,W,c){h.qn.publish(W,c);var V=g.uJ(h.uB)||g.$X(h.uB)||g.CV(h.uB);if(c&&V){switch(W){case "cuerangemarkersupdated":var H="onCueRangeMarkersUpdated";break;case "cuerangesadded":H="onCueRangesAdded";break;case "cuerangesremoved":H="onCueRangesRemoved"}H&&h.qn.Iz(H,c.map(function(B){return{getId:function(){return this.id}, end:B.end,id:B.getId(),namespace:B.namespace==="ad"?"ad":"",start:B.start,style:B.style,visible:B.visible,markerPositionMs:B.markerPositionMs}}))}}; oT=function(h,W,c,V,H,B){c=c===void 0?!0:c;var E=h.mK({playerType:H});if(!E||(E.getPlayerType()!==2||h.Eh(E))&&!g.OP(E.getVideoData())){var J=h.P0.bO;J?J.seekTo(W,{Cz:!c,kE:V,LR:"application",seekSource:B}):(E&&E===h.XA()&&h.kZ&&!w4N(h,W)&&h.setLoopRange(null),h.seekTo(W,c,V,H,B))}}; qD7=function(h,W,c,V){c&&(h.Lw(),ew(h));c=h.ZH();c.Qy(W);var H=h.getVideoData(),B={};B.video_id=H.videoId;B.adformat=H.adFormat;H.isLivePlayback||(B.start=c.getCurrentTime(),B.resume="1");H.isLivePlayback&&yk(H)&&g.Rm(h.uB)&&(B.live_utc_start=c.wW(),B.resume="1");H.zV&&(B.vvt=H.zV);H.N&&(B.vss_credentials_token=H.N,B.vss_credentials_token_type=H.TL);H.oauthToken&&(B.oauth_token=H.oauthToken);B.autoplay=1;B.reload_count=H.qU+1;B.reload_reason=W;H.xm&&(B.unplugged_partner_opt_out=H.xm);H.ID&&(B.ypc_is_premiere_trailer= H.ID);H.playerParams&&(B.player_params=H.playerParams);h.loadVideoByPlayerVars(B,void 0,!0,void 0,void 0,V);W==="signature"&&h.Jq&&Ylv(h)}; xi4=function(h,W){h.O8().autonavState=W;g.iL("yt-player-autonavstate",W);h.qn.publish("autonavchange",W)}; lgQ=function(h){var W=h.getVideoData().pg,c=h.uB.Mn,V=h.isInline()&&!h.getVideoData().hg,H=h.mediaElement;W||c||V?H.i5():(H.xU(),Fz(h,h.Zc))}; Ng=function(h){var W=b3(h.Pi());W&&W.created&&(h.logger.debug("reset ad module"),W.destroy())}; TK=function(h){return h.getVideoData().enableServerStitchedDai&&!!h.Jq}; nUv=function(h,W){W.bounds=h.getBoundingClientRect();for(var c=g.e(["display","opacity","visibility","zIndex"]),V=c.next();!V.done;V=c.next())V=V.value,W[V]=YS(h,V);W.hidden=!!h.hidden}; lRk=function(h){var W=h.webPlayerContextConfig.trustedJsUrl;return W?l$(W).toString():h.webPlayerContextConfig.jsUrl}; jyQ=function(h,W){var c=h.mK({playerType:1});if(c){if(c.getVideoData().clientPlaybackNonce===W)return c;if((h=h.dV.X)&&h.getVideoData().clientPlaybackNonce===W)return h}return null}; Fnd=function(h){function W(V){return Ax(c87(h.yM),function(H){return H.bf(V)})} h.Dn.tick("wasm_s");var c=aNd(h.webPlayerContextConfig.wasmModuleUrl,Xgl(h.yM)?W:void 0,h.xP.bind(h));c==null||Ax(c,function(V){h.Dn.tick(V.X?"wasm_fa":"wasm_fw")},function(){h.Dn.tick("wasm_ferr")}); wSD(h.uB,c)}; ag5=function(h){return h.name==="TypeError"&&h.stack.includes("/s/player/")&&Pf()<=105}; exT=function(h){return h.isTimeout?"NO_BID":"ERR_BID"}; zx7=function(){var h=null;Pdd().then(function(W){return h=W},function(W){return h=exT(W)}); return h}; QyD=function(){var h=fW(1E3,"NO_BID");return g.Md(S6D([Pdd(),h]).Mv(exT),function(){h.cancel()})}; pL=function(h){return h.hq?g.Pt(g.yY(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; IT=function(h){this.player=h;this.G=this.X=1}; K8v=function(h,W,c,V,H,B){W.client||(W.client={});h.player.B().j("h5_remove_url_for_get_ad_break")||(W.client.originalUrl=c);var E=Wf(c),J=g.E6(c)?!1:!0;(E||J)&&typeof Intl!=="undefined"&&(W.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);J=g.E6(c)?!1:!0;if(E||J||V!==""){var u={};c=Sn(Hf(V)).split("&");var d=new Map;c.forEach(function(G){G=G.split("=");G.length>1&&d.set(G[0].toString(),decodeURIComponent(G[1].toString()))}); d.has("bid")&&(u.bid=d.get("bid"));u.params=[];L85.forEach(function(G){d.has(G)&&(G={key:G,value:d.get(G)},u.params.push(G))}); iiT(h,u);W.adSignalsInfo=u}W.client.unpluggedAppInfo||(W.client.unpluggedAppInfo={});W.client.unpluggedAppInfo.enableFilterMode=!1;c=H.X.cosver;c!=null&&c!=="cosver"&&(W.client.osVersion=c);c=H.X.cplatform;c!=null&&c!=="cplatform"&&c!==""&&(W.client.platform=c);c=H.X.cmodel;c!=null&&c!=="cmodel"&&(W.client.deviceModel=c);c=H.X.cplayer;c!=null&&c!=="cplayer"&&(W.client.playerType=c);c=H.X.cbrand;c!=null&&c!=="cbrand"&&(W.client.deviceMake=c);W.user||(W.user={});W.user.lockedSafetyMode=!1;(H.j("embeds_web_enable_iframe_api_send_full_embed_url")|| H.j("embeds_enable_autoplay_and_visibility_signals"))&&g.Vf(H)&&R6T(W,B,h.player.getPlayerState(1))}; C9T=function(h,W){var c=!1;if(W==="")return c;W.split(",").forEach(function(V){var H={},B={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},E="ACTIVE";V[0]==="!"&&(V=V.substring(1),E="INACTIVE");V=V.split("-");V.length<3||(V[0]in ArQ&&(B.clientName=ArQ[V[0]]),V[1]in Uiv&&(B.platform=Uiv[V[1]]),B.applicationState=E,B.clientVersion=V.length>2?V[2]:"",H.remoteClient=B,h.remoteContexts?h.remoteContexts.push(H):h.remoteContexts=[H],c=!0)}); return c}; F8D=function(h){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in MWv))return!1;h=h.split(RegExp("[:&]"));var W=MWv.FLAG_AUTO_CAPTIONS_DEFAULT_ON,c="f"+(1+Math.floor(W/31)).toString();W=1<=2?E[1]:"";var J=P9D.test(W),u=fgd.exec(W);u=u!=null&&u.length>=2?u[1]:"";var d=biD.exec(W);d=d!=null&&d.length>=2&&!Number.isNaN(Number(d[1]))?Number(d[1]):1;var G=Tdp.exec(W);G=G!=null&&G.length>=2?G[1]:"0";var Z=Ea(h.player.B().Cw),r=h.player.getVideoData(1),q=g.pV(r.Nn,!0),x="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";K8v(h,q,W,x.toString(),h.player.B(), r);r={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:20292,autonavState:pL(h.player.B())};V&&(V={},C9T(V,c.YT_REMOTE)&&(r.mdxContext=V));if(V=Nd7.includes(Z)?void 0:g.Cb("PREF")){for(var z=V.split(RegExp("[:&]")),L=0,M=z.length;L1&&U[1].toUpperCase()==="TRUE"){q.user.lockedSafetyMode=!0;break}}r.autoCaptionsDefaultOn= F8D(V)}W=X1L.exec(W);(W=W!=null&&W.length>=2?W[1]:"")&&u&&(q.user.credentialTransferTokens=[{token:W,scope:"VIDEO"}]);W={contentPlaybackContext:r};E={adBlock:Math.trunc(c.AD_BLOCK),params:E,breakIndex:d,breakPositionMs:G,clientPlaybackNonce:c.CPN,topLevelDomain:Z,isProxyAdTagRequest:J,context:q,adSignalsInfoString:Sn(Hf(x.toString())),overridePlaybackContext:W};H!==void 0&&(E.cueProcessedMs=Math.round(H).toString());u&&(E.videoId=u);c.LIVE_TARGETING_CONTEXT&&(E.liveTargetingParams=c.LIVE_TARGETING_CONTEXT); c.AD_BREAK_LENGTH&&(E.breakLengthMs=Math.trunc(c.AD_BREAK_LENGTH*1E3).toString());B&&(E.driftFromHeadMs=B.toString());E.currentMediaTimeMs=Math.round(h.player.getCurrentTime(1)*1E3);(h=h.player.getGetAdBreakContext())&&(E.getAdBreakContext=h);return E}; vUh=function(){IT.apply(this,arguments)}; mih=function(h,W,c,V,H){var B=c.Iw;var E=c.qh;var J=h.player.B().Zr,u=0;c.cueProcessedMs&&E&&!B&&(c=E.end-E.start,c>0&&(u=Math.floor(c/1E3)));var d={AD_BLOCK:H,AD_BREAK_LENGTH:B?B.QM:u,AUTONAV_STATE:pL(h.player.B()),CA_TYPE:"image",CPN:h.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:h.player.QZ()*1E3,LACT:xA(),LIVE_INDEX:B?h.G++:1,LIVE_TARGETING_CONTEXT:B&&B.context?B.context:"",MIDROLL_POS:E?Math.round(E.start/1E3):0,MIDROLL_POS_MS:E?Math.round(E.start):0,VIS:h.player.getVisibilityState(), P_H:h.player.Bk().W5().height,P_W:h.player.Bk().W5().width,YT_REMOTE:J?J.join(","):""},G=sB($2);Object.keys(G).forEach(function(Z){G[Z]!=null&&(d[Z.toUpperCase()]=G[Z].toString())}); V!==""&&(d.BISCOTTI_ID=V);V={};Vn(W)&&(V.sts="20292",(h=h.player.B().forcedExperiments)&&(V.forced_experiments=h));return hc(g.Q8(W,d),V)}; oUp=function(h,W){var c=h.player.B(),V,H=(V=h.player.getVideoData(1))==null?void 0:V.oauthToken;return g.Ky(c,H).then(function(B){if(B&&cf()){var E=hK();WV(E,B)}return g.CE(h.player.qB(E),W,"/youtubei/v1/player/ad_break").then(function(J){return J})})}; p1L=function(h){this.nM=h}; Igh=function(h){this.L=h}; YDd=function(h){this.nM=h}; SD7=function(h){g.N.call(this);this.X=h;this.JS=OiT(this)}; OiT=function(h){var W=new M9Q(h.X.oR);g.X(h,W);h=[new p1L(h.X.nM),new Igh(h.X.L),new YDd(h.X.nM),new rZ(h.X.S5,h.X.tp),new xE,new ju(h.X.x4,h.X.zS,h.X.nM),new qk,new Zd];h=g.e(h);for(var c=h.next();!c.done;c=h.next())F5N(W,c.value);h=g.e(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=h.next();!c.done;c=h.next())lG(W,c.value,function(){}); return W}; Y_=function(h){var W=h.SO,c=h.hk;h=h.eK;var V=new O9p,H={MB:new UqN(W.get(),c),hk:c};return{CJ:new n0(c,h,W,H),context:H,Z1:V}}; Ot=function(h,W,c,V,H){g.N.call(this);this.W=W;this.Qg=c;this.SO=V;this.Ky=H;this.listeners=[];var B=new aI(this);g.X(this,B);B.U(h,"internalAbandon",this.fng);this.addOnDisposeCallback(function(){g.zR(B)})}; Sw=function(h){this.L=h;this.adVideoId=this.X=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.W=this.G=!1;this.adFormat=null;this.Y="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; gUN=function(h){h.contentCpn=null;h.adCpn=null;h.videoId=null;h.adVideoId=null;h.adFormat=null;h.Y="AD_PLACEMENT_KIND_UNKNOWN";h.actionType="unknown_type";h.G=!1;h.W=!1}; DiT=function(h,W){h=g.e(W);for(W=h.next();!W.done;W=h.next())if((W=W.value.renderer)&&(W.instreamVideoAdRenderer||W.linearAdSequenceRenderer||W.sandwichedLinearAdRenderer||W.instreamSurveyAdRenderer)){eq("ad_i");g.zO({isMonetized:!0});break}}; w17=function(h){var W;(W=h.L.getVideoData(1))!=null&&W.Wk&&(h.W=!1,W={},h.X&&h.videoId&&(W.cttAuthInfo={token:h.X,videoId:h.videoId}),Qy("video_to_ad",W))}; HS=function(h){h.W=!1;var W={};h.X&&h.videoId&&(W.cttAuthInfo={token:h.X,videoId:h.videoId});Qy("ad_to_video",W);kIU(h)}; kIU=function(h){if(h.G)if(h.Y==="AD_PLACEMENT_KIND_START"&&h.actionType==="video_to_ad")nE("video_to_ad");else{var W={adBreakType:b1(h.Y),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:h.videoStreamType};h.actionType==="ad_to_video"?(h.contentCpn&&(W.targetCpn=h.contentCpn),h.videoId&&(W.targetVideoId=h.videoId)):(h.adCpn&&(W.targetCpn=h.adCpn),h.adVideoId&&(W.targetVideoId=h.adVideoId));h.adFormat&&(W.adType=h.adFormat);h.contentCpn&& (W.clientPlaybackNonce=h.contentCpn);h.videoId&&(W.videoId=h.videoId);h.adCpn&&(W.adClientPlaybackNonce=h.adCpn);h.adVideoId&&(W.adVideoId=h.adVideoId);g.zO(W,h.actionType);h.L.B().experiments.xN("html5_ads_csi_qoes")&&(W=h.L.L$(h.actionType==="ad_to_video"?1:2),W=(0,g.aC)()-1E3*W,ih("qoes",W,h.actionType))}}; go=function(h){g.N.call(this);this.L=h;this.X=new Map;this.W=new aI(this);g.X(this,this.W);this.W.U(this.L,g.mZ("ad"),this.onCueRangeEnter,this);this.W.U(this.L,g.om("ad"),this.onCueRangeExit,this)}; hT7=function(h,W,c,V,H,B,E){g.t$.call(this,W,c,{id:h,namespace:"ad",priority:H,visible:V,associatedClipId:B,markerPositionMs:E})}; DA=function(h){this.L=h}; Wol=function(h,W){h.L.cueVideoByPlayerVars(W,2)}; wo=function(h){this.L=h}; k_=function(h){this.L=h;g.DF(this.L.B().experiments,"tv_pacf_logging_sample_rate")}; chN=function(h){return Fo(h,"html5_ssap_play_cached_preroll")}; H_=function(h,W){W=W===void 0?!1:W;return h.L.B().j("html5_ssap_force_ads_ctmp")?!0:(W||h.L.B().gI())&&h.L.B().j("html5_ssap_pacf_qoe_ctmp")}; h8=function(h){var W;return(W=h.L.getVideoData(1)==null?void 0:!1)!=null?W:!1}; Fo=function(h,W){return h.L.B().j(W)}; VfN=function(h){return h.L.B().j("substitute_ad_cpn_macro_in_ssdai")}; bI=function(h){var W,c,V;return((W=h.L.getVideoData(1).getPlayerResponse())==null?void 0:(c=W.playerConfig)==null?void 0:(V=c.daiConfig)==null?void 0:V.enableServerStitchedDai)||!1}; tuh=function(h){return h.L.B().j("html5_enable_vod_slar_with_notify_pacf")}; $I4=function(h){return h.L.B().j("html5_recognize_predict_start_cue_point")}; r2=function(h){return h.L.B().experiments.xN("enable_desktop_player_underlay")}; sdN=function(h){return h.L.B().experiments.xN("html5_load_empty_player_in_media_break_sub_lra")}; S$=function(h){return h.L.B().experiments.xN("html5_load_ads_instead_of_cue")}; g4=function(h){return h.L.B().experiments.xN("html5_preload_ads")}; HKN=function(h){return h.L.B().experiments.xN("should_ignore_cuepoints_during_lifa_preroll")}; Ga=function(h){return h.L.B().experiments.xN("enable_ads_control_flow_deterministic_id_generation")}; BtL=function(h){return h.L.B().experiments.xN("enable_desktop_discovery_video_abandon_pings")||g.qc(h.L.B())}; EdN=function(h){return h.L.B().experiments.xN("enable_progres_commands_lr_feeds")}; T2=function(h){return h.L.B().experiments.xN("html5_cuepoint_identifier_logging")}; OEN=function(h){h=h.L.getVideoData(1);return!!h&&h.j("html5_preload_first_vod_video_ad")&&!h.isDaiEnabled()&&!h.isLivePlayback}; RTl=function(h){return h.L.B().experiments.xN("html5_ssdai_enable_media_end_cue_range")}; JhN=function(h){switch(h){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}}; urp=function(){g.h1.call(this);var h=this;this.X={};this.addOnDisposeCallback(function(){for(var W=g.e(Object.keys(h.X)),c=W.next();!c.done;c=W.next())delete h.X[c.value]})}; W6=function(){if(dIT===null){dIT=new urp;jI(pR).W="b";var h=jI(pR),W=Tu(h)=="h"||Tu(h)=="b",c=!(WA(),!1);W&&c&&(h.C=!0,h.N=new Z7D)}return dIT}; GBQ=function(h,W,c){h.X[W]=c}; ZKd=function(h){switch(h){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}}; c6=function(h,W,c){this.Qg=h;this.L=W;this.hk=c;this.W=new Set;this.X=new Map;W6().subscribe("adactiveviewmeasurable",this.h$,this);W6().subscribe("adfullyviewableaudiblehalfdurationimpression",this.d_,this);W6().subscribe("adviewableimpression",this.Ps,this);W6().subscribe("adaudioaudible",this.GG,this);W6().subscribe("adaudiomeasurable",this.YH,this)}; $V=function(h,W,c){var V=c.qf,H=c.Sk,B=c.listener,E=c.U0;c=c.r6===void 0?!1:c.r6;if(h.X.has(W))sA("Unexpected registration of layout in LidarApi");else{if(E){if(h.W.has(E))return;h.W.add(E)}h.X.set(W,B);Lr(WA().hw,"fmd",1);QR4(jI(pR),V);var J=c?W:void 0;GBQ(W6(),W,{CO:function(){if(!H)return{};var u=h.L.getPresentingPlayerType(!0),d;return(d=h.L.getVideoData(u))!=null&&d.isAd()?{currentTime:h.Qg.get().getCurrentTimeSec(u,!1,J),duration:H,isPlaying:Vt(h.Qg.get(),u).isPlaying(),isVpaid:!1,isYouTube:!0, volume:h.Qg.get().isMuted()?0:h.Qg.get().getVolume()/100}:{}}})}}; sF=function(h,W){h.X.has(W)?(h.X.delete(W),delete W6().X[W]):sA("Unexpected unregistration of layout in LidarApi")}; rh4=function(h,W){if(h.L.isLifaAdPlaying()){var c=h.L.Hv(!0,!0);h.o5(W,c.width*.5*1.1,c.height*.25*1.1,c.width*.5*.9,c.height*.5*.9)}}; l5D=function(h,W,c){var V={};qY7(h,V,W,c);xId(V);V.LACT=H6(function(){return xA().toString()}); V.VIS=H6(function(){return h.getVisibilityState().toString()}); V.SDKV="h.3.0";V.VOL=H6(function(){return h.isMuted()?"0":Math.round(h.getVolume()).toString()}); V.VED="";return V}; nd4=function(h,W){var c={};if(W||!h||!h.kind)return c;if(h.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||h.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!h.adTimeOffset||!h.adTimeOffset.offsetStartMilliseconds)return g.Qq(Error("malformed AdPlacementConfig")),c;c.MIDROLL_POS=H6(MJ(Math.round(Pr(h.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else c.MIDROLL_POS=H6(MJ("0"));return c}; H6=function(h){return{toString:function(){return h()}}}; jdT=function(h,W,c){function V(J,u){(u=c[u])&&(B[J]=u)} function H(J,u){(u=c[u])&&(B[J]=E(u))} if(!c||g.GF(c))return h;var B=Object.assign({},h),E=W?encodeURIComponent:function(J){return J}; H("DV_VIEWABILITY","doubleVerifyViewability");H("IAS_VIEWABILITY","integralAdsViewability");H("MOAT_INIT","moatInit");H("MOAT_VIEWABILITY","moatViewability");V("GOOGLE_VIEWABILITY","googleViewability");V("VIEWABILITY","viewability");return B}; qY7=function(h,W,c,V){W.CPN=H6(function(){var H;(H=h.getVideoData(1))?H=H.clientPlaybackNonce:(g.Lx(Error("Video data is null.")),H=null);return H}); W.AD_MT=H6(function(){if(V!=null)var H=V;else{var B=c;h.B().j("html5_ssap_use_cpn_to_get_time")||(B=void 0);if(h.B().j("enable_h5_shorts_ad_fill_ad_mt_macro")||h.B().j("enable_desktop_discovery_pings_ad_mt_macro")||g.qc(h.B())){var E=h.getPresentingPlayerType(!0),J;H=((J=h.getVideoData(E))==null?0:J.isAd())?a5N(h,E,B):0}else H=a5N(h,2,B)}return eTl(H)}); W.MT=H6(function(){return eTl(h.getCurrentTime(1,!1))}); W.P_H=H6(function(){return h.Bk().W5().height.toString()}); W.P_W=H6(function(){return h.Bk().W5().width.toString()}); W.PV_H=H6(function(){return h.Bk().getVideoContentRect().height.toString()}); W.PV_W=H6(function(){return h.Bk().getVideoContentRect().width.toString()})}; eTl=function(h){return Math.round(Math.max(0,h*1E3)).toString()}; xId=function(h){h.CONN=H6(MJ("0"));h.WT=H6(function(){return Date.now().toString()})}; a5N=function(h,W,c){return c!==void 0?h.getCurrentTime(W,!1,c):h.getCurrentTime(W,!1)}; zTp=function(){}; Qd7=function(h,W,c,V,H){var B,E,J,u,d,G,Z,r,q,x,z,L,M;g.P(function(U){switch(U.W){case 1:B=!!W.scrubReferrer;E=g.Q8(W.baseUrl,jdT(c,B,V));J={};if(!W.headers){U.bB(2);break}u=h.Y();if(!u.X){d=u.getValue();U.bB(3);break}return g.F(U,u.X,4);case 4:d=U.X;case 3:G=d;Z=g.e(W.headers);for(r=Z.next();!r.done;r=Z.next())switch(q=r.value,q.headerType){case "VISITOR_ID":g.X_("VISITOR_DATA")&&(J["X-Goog-Visitor-Id"]=g.X_("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.X_("EOM_VISITOR_DATA")&&(J["X-Goog-EOM-Visitor-Id"]= g.X_("EOM_VISITOR_DATA"));break;case "USER_AUTH":G&&(J.Authorization="Bearer "+G);break;case "PLUS_PAGE_ID":(x=h.C())&&(J["X-Goog-PageId"]=x);break;case "AUTH_USER":z=h.X();!G&&z&&(J["X-Goog-AuthUser"]=z);break;case "DATASYNC_ID":if(L=void 0,(L=h.G())==null?0:L.xN("enable_datasync_id_header_in_web_vss_pings"))M=h.W(),Wf(E)&&g.X_("LOGGED_IN")&&M&&(J["X-YouTube-DataSync-Id"]=M)}"X-Goog-EOM-Visitor-Id"in J&&"X-Goog-Visitor-Id"in J&&delete J["X-Goog-Visitor-Id"];case 2:g.Cj(E,void 0,B,Object.keys(J).length!== 0?J:void 0,"",!0,H),g.zQ(U)}})}; Lo7=function(h,W,c,V,H){this.Y=h;this.C=W;this.X=c;this.W=V;this.G=H}; iKD=function(h,W){this.X=h;this.hk=W}; B6=function(h,W,c,V,H,B,E){var J=J===void 0?new Lo7(function(){var u=h.B(),d=h.getVideoData(1);return g.Ky(u,d?g.BN(d):"")},function(){return h.B().pageId},function(){return h.B().Pk},function(){var u; return(u=h.B().datasyncId)!=null?u:""},function(){return h.B().experiments}):J; this.L=h;this.W=W;this.Gz=c;this.SO=V;this.CJ=H;this.hk=B;this.Z1=E;this.Y=J;this.dG=null;this.X=new Map;this.G=new iKD(J,this.hk)}; Ahp=function(h,W,c,V,H){var B=YC(h.W.get(),c);B?(c=dz(h,KoD(B),B,void 0,void 0,V),W.hasOwnProperty("baseUrl")?h.Y.send(W,c):h.G.send(W,c,{},H)):sA("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})}; Nc4=function(h,W,c,V,H,B){V=V===void 0?[]:V;var E=YC(h.W.get(),W);if(E){var J=h.Gz.get().Jh(W,c),u=dz(h,KoD(E),E,H,B);V.forEach(function(d,G){d.baseUrl&&(h.G.send(d.baseUrl,u,J,d.attributionSrcMode),d.serializedAdPingMetadata&&h.CJ.sH("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,E,new xEv(d,G),void 0,void 0,E.adLayoutLoggingData))})}else sA("Trying to track from an unknown layout.",void 0,void 0,{layoutId:W, trackingType:c})}; se=function(h,W){h.L.sendVideoStatsEngageEvent(W,void 0,2)}; ZN=function(h,W){g.V5("adsClientStateChange",W)}; UId=function(h,W){h.X.has(W.LZ())?sA("Trying to register an existing AdErrorInfoSupplier."):h.X.set(W.LZ(),W)}; CVd=function(h,W){h.X.delete(W.LZ())||sA("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; xc=function(h,W,c){typeof c==="string"?h.L.getVideoData(1).IN(W,c):h.L.getVideoData(1).GV(W,c)}; KoD=function(h){var W=ov(h.clientMetadata,"metadata_type_ad_placement_config");h=ov(h.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:W,Ay:h}}; dz=function(h,W,c,V,H,B){var E=c?MfL(h):{},J=c?FoT(h,c.layoutId):{},u=yhN(h),d,G=H!=null?H:(d=Fm(h.SO.get(),2))==null?void 0:d.clientPlaybackNonce;H=void 0;if(c){var Z;if((Z=h.Z1.X.get(c.layoutId))==null?0:Z.r6)H=c.layoutId}Z={};h=Object.assign({},l5D(h.L,H,V),nd4(W.adPlacementConfig,(c==null?void 0:c.renderingContent)!==void 0),J,E,u,(Z.FINAL=H6(function(){return"1"}),Z.AD_CPN=H6(function(){return G||""}),Z)); (c==null?void 0:c.renderingContent)!==void 0||(h.SLOT_POS=H6(function(){return(W.Ay||0).toString()})); c={};B=Object.assign({},h,B);h=g.e(Object.values(PVv));for(V=h.next();!V.done;V=h.next())V=V.value,E=B[V],E!=null&&E.toString()!=null&&(c[V]=E.toString());return c}; MfL=function(h){var W={},c,V=(c=h.dG)==null?void 0:c.W3/1E3;V!=null&&(W.SURVEY_ELAPSED_MS=H6(function(){return Math.round(V*1E3).toString()})); W.SURVEY_LOCAL_TIME_EPOCH_S=H6(function(){return Math.round(Date.now()/1E3).toString()}); return W}; FoT=function(h,W){h=h.X.get(W);if(!h)return{};h=h.fO();if(!h)return{};W={};return W.YT_ERROR_CODE=h.qc.toString(),W.ERRORCODE=h.CH.toString(),W.ERROR_MSG=h.errorMessage,W}; yhN=function(h){var W={},c=h.L.getVideoData(1);W.ASR=H6(function(){var V;return(V=c==null?void 0:c.Bh)!=null?V:null}); W.EI=H6(function(){var V;return(V=c==null?void 0:c.eventId)!=null?V:null}); return W}; EF=function(h,W,c){g.N.call(this);this.L=h;this.KQ=W;this.hk=c;this.listeners=[];this.eA=null;this.Kx=new Map;W=new g.lX(this);g.X(this,W);W.U(h,"videodatachange",this.QTI);W.U(h,"serverstitchedvideochange",this.TWN);this.MD=Fm(this)}; Fm=function(h,W){var c=h.L.getVideoData(W);return c?h.o$(c,W||h.L.getPresentingPlayerType(!0)):null}; f5T=function(h,W,c){var V=h.o$(W,c);h.MD=V;h.listeners.forEach(function(H){H.sV(V)})}; bKd=function(h){switch(h){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}}; RP=function(h,W,c){g.N.call(this);this.L=h;this.SO=W;this.hk=c;this.listeners=[];this.Hr=[];this.X=function(){sA("Called 'doUnlockPreroll' before it's initialized.")}; W=new aI(this);c=new g.lX(this);g.X(this,c);g.X(this,W);W.U(h,"progresssync",this.HRE);W.U(h,"presentingplayerstatechange",this.AI9);W.U(h,"fullscreentoggled",this.onFullscreenToggled);W.U(h,"onVolumeChange",this.onVolumeChange);W.U(h,"minimized",this.kL);W.U(h,"overlayvisibilitychange",this.Fb);W.U(h,"shortsadswipe",this.Ur);W.U(h,"resize",this.I1);c.U(h,g.mZ("appad"),this.Rx)}; J8=function(h){h8(h.hk.get())||h.X()}; TtN=function(h,W){h.Hr=h.Hr.filter(function(c){return c!==W})}; un=function(h,W,c){return h.getCurrentTimeSec(W,c)}; d8=function(h,W){var c;W=(c=h.SO.get().Kx.get(W))!=null?c:null;if(W===null)return sA("Expected ad video start time on playback timeline"),0;h=h.L.getCurrentTime(2,!0);return h0){var B=W.end.toString();H.forEach(function(E){(E=E.config&&E.config.adPlacementConfig)&&E.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&E.adTimeOffset&&E.adTimeOffset.offsetEndMilliseconds==="-1"&&E.adTimeOffset.offsetEndMilliseconds!==B&&(E.adTimeOffset.offsetEndMilliseconds=B)}); V.map(function(E){return g.v(E,hO)}).forEach(function(E){var J; (E=E==null?void 0:(J=E.slotEntryTrigger)==null?void 0:J.mediaTimeRangeTrigger)&&E.offsetEndMilliseconds==="-1"&&(E.offsetEndMilliseconds=B)})}return{ND:H, adSlots:V,nz:!1,ssdaiAdsConfig:h.ssdaiAdsConfig}}; xV=function(h){g.N.call(this);this.L=h;this.listeners=[];this.X=new aI(this);g.X(this,this.X);this.X.U(this.L,"aduxclicked",this.onAdUxClicked);this.X.U(this.L,"aduxmouseover",this.C6);this.X.U(this.L,"aduxmouseout",this.mN);this.X.U(this.L,"muteadaccepted",this.gNE)}; mIQ=function(h,W,c){W=g.xw(W,function(V){return new YhL(V,c,V.id)}); h.L.Iz("onAdUxUpdate",W)}; ln=function(h,W){h=g.e(h.listeners);for(var c=h.next();!c.done;c=h.next())W(c.value)}; nn=function(h,W){this.W=h;this.G=W===void 0?!1:W;this.X={}}; odd=function(h,W){var c=h.startSecs+h.QM;c=c<=0?null:c;if(c===null)return null;switch(h.event){case "start":case "continue":case "stop":break;case "predictStart":if(W)break;return null;default:return null}W=Math.max(h.startSecs,0);return{Uu:new l2(W,c),kV:new H0(W,c-W,h.context,h.identifier,h.event,h.X)}}; pQp=function(){this.X=[]}; fwp=function(h,W,c){var V=g.mU(h.X,W);if(V>=0)return W;W=-V-1;return W>=h.X.length||h.X[W]>c?null:h.X[W]}; jS=function(h,W,c){g.N.call(this);this.L=h;this.hk=W;this.nM=c;this.listeners=[];this.Y=!1;this.gQ=[];this.X=null;this.C=new nn(this,$I4(W.get()));this.G=new pQp;this.W=null}; I55=function(h,W){h.gQ.push(W);for(var c=!1,V=g.e(h.listeners),H=V.next();!H.done;H=V.next())c=H.value.WM(W)||c;h.Y=c;T2(h.hk.get())&&xc(h.nM.get(),"onci","cpi."+W.identifier+";cpe."+W.event+";cps."+W.startSecs+";cbi."+c)}; OKU=function(h,W){ZN(h.nM.get(),{cuepointTrigger:{event:YYN(W.event),cuepointId:W.identifier,totalCueDurationMs:W.QM*1E3,playheadTimeMs:W.X,cueStartTimeMs:W.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:h.L.getVideoData(1).clientPlaybackNonce}})}; YYN=function(h){switch(h){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 dF(h,"Unexpected cuepoint event")}}; aP=function(h){this.L=h}; eS=function(h){this.L=h}; SYv=function(h){switch(h){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:dF(h,"unknown transitionReason")}}; zz=function(){g.N.apply(this,arguments);this.Jqk=new Map}; gdU=function(h){this.L=h}; DIh=function(h,W,c,V,H){g.N.call(this);var B=this,E=Lm(function(){return new dU(B.hk)}); g.X(this,E);var J=Lm(function(){return new Zq(E,B.hk)}); g.X(this,J);var u=Lm(function(){return new pY}); g.X(this,u);var d=Lm(function(){return new mz(h)}); g.X(this,d);var G=Lm(function(){return new rU(E,J,B.hk)}); g.X(this,G);var Z=Lm(function(){return new jo}); g.X(this,Z);this.VA=Lm(function(){return new xV(W)}); g.X(this,this.VA);this.LJ=Lm(function(){return new Km(H)}); g.X(this,this.LJ);this.dW=Lm(function(){return new Sw(W)}); g.X(this,this.dW);this.lX=Lm(function(){return new go(W)}); g.X(this,this.lX);this.Xl=Lm(function(){return new DA(W)}); g.X(this,this.Xl);this.oR=Lm(function(){return new wo(W)}); g.X(this,this.oR);this.hk=Lm(function(){return new k_(W)}); g.X(this,this.hk);var r=Lm(function(){return new qK(V)}); g.X(this,r);var q=Lm(function(){return new wy(B.hk)}); g.X(this,q);this.ge=Lm(function(){return new aP(W)}); g.X(this,this.ge);this.xk=Lm(function(){return new Cm}); g.X(this,this.xk);this.SO=Lm(function(){return new EF(W,Z,B.hk)}); g.X(this,this.SO);var x=Y_({SO:this.SO,hk:this.hk,eK:q}),z=x.context,L=x.Z1;this.CJ=x.CJ;this.Ky=Lm(function(){return new jS(W,B.hk,B.nM)}); g.X(this,this.Ky);this.wI=Lm(function(){return new eS(W)}); g.X(this,this.wI);this.Qg=Lm(function(){return new RP(W,B.SO,B.hk)}); g.X(this,this.Qg);this.AE=Lm(function(){return new zz}); g.X(this,this.AE);x=Lm(function(){return new F0(E,G,J,B.hk,q,"SLOT_TYPE_ABOVE_FEED",B.Qg,B.RF,B.qs)}); g.X(this,x);this.Uh=Lm(function(){return new M6(B.hk)}); this.Gz=Lm(function(){return new c6(B.Qg,W,B.hk)}); g.X(this,this.Gz);this.nM=Lm(function(){return new B6(W,u,B.Gz,B.SO,B.CJ,B.hk,L)}); g.X(this,this.nM);this.Kg=new tO(X0,Qt,function(U,y,T,m){return Zt(J.get(),U,y,T,m)},d,G,J,q,this.hk,this.SO); g.X(this,this.Kg);this.Y9=new vl(d,x,c,this.hk,h,this.SO,this.Qg,this.dW);g.X(this,this.Y9);var M=new Ot(W,this.Y9,this.Qg,this.SO,this.Ky);this.z2=Lm(function(){return M}); this.fX=M;this.RF=new fY(d,G,this.z2,this.Ky,this.Qg,this.hk,this.nM,this.wI);g.X(this,this.RF);this.Kp=new op(d,G,this.lX,this.z2,z);g.X(this,this.Kp);this.PV=new kt(this.hk,d,G,x,this.SO,this.Kp,c,this.Xl);g.X(this,this.PV);this.wV=Lm(function(){return new gL(r,J,q,B.hk,B.nM,B.Qg,B.wI)}); g.X(this,this.wV);this.uT=Lm(function(){return new DG}); g.X(this,this.uT);this.lC=new w2(h,this.VA,this.hk);g.X(this,this.lC);this.rI=new kC(h);g.X(this,this.rI);this.i9=new hx(h);g.X(this,this.i9);this.Ss=new cL(h,this.z2,z);g.X(this,this.Ss);this.oV=new Vg(h,this.lX,this.Qg,this.SO,z);g.X(this,this.oV);this.I6=new $l(h,this.SO);g.X(this,this.I6);this.qs=new BL(h,this.Ky,this.Qg,this.nM,this.z2,this.RF);g.X(this,this.qs);this.aV=new sf(h);g.X(this,this.aV);this.Dh=new um(h);g.X(this,this.Dh);this.qq=new HL(h);g.X(this,this.qq);this.TG=new Jx(h);g.X(this, this.TG);this.Dh=new um(h);g.X(this,this.Dh);this.Tw=Lm(function(){return new O2}); g.X(this,this.Tw);this.Um=Lm(function(){return new S0(B.Qg)}); g.X(this,this.Um);this.aI=Lm(function(){return new seh(B.VA,B.nM,h,u,B.Gz)}); g.X(this,this.aI);this.Or=Lm(function(){return new Ph(B.PV,d,E)}); g.X(this,this.Or);this.di=Lm(function(){return new Tq(B.hk,B.nM,B.aV,B.Gz)}); g.X(this,this.di);this.FV=Lm(function(){return new Qw(h,B.Dh,B.aV,B.SO,B.wI,B.Qg,B.AE,B.nM,Z,B.Ky,B.Gz,B.Uh,B.Xl,B.lX,B.dW,B.oR,B.LJ,B.ge,B.hk,u,z,L)}); g.X(this,this.FV);this.RN=Lm(function(){return new nBk(B.Qg,B.nM,B.LJ,B.hk,B.Gz,B.SO)}); g.X(this,this.RN);this.NE=Lm(function(){return new HEp(B.VA,B.Qg,B.nM,u,B.Gz,B.i9,B.TG,B.LJ,B.hk,c)}); g.X(this,this.NE);this.ZK=Lm(function(){return new H4U(B.VA,B.nM,u)}); g.X(this,this.ZK);this.Sj=new r8(h,this.xk,E);g.X(this,this.Sj);this.m4={FX:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.PV],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.RF],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Kg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Y9],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Kp]]),Tc:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wV],["SLOT_TYPE_ABOVE_FEED",this.uT],["SLOT_TYPE_FORECASTING",this.uT], ["SLOT_TYPE_IN_PLAYER",this.uT],["SLOT_TYPE_PLAYER_BYTES",this.uT],["SLOT_TYPE_PLAYER_UNDERLAY",this.uT],["SLOT_TYPE_PLAYBACK_TRACKING",this.uT],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.uT]]),VV:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.lC],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.lC],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.rI],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.rI],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.rI],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.rI],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.rI],["TRIGGER_TYPE_SLOT_ID_EXITED",this.rI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.rI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.rI],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.rI],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.rI],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.rI],["TRIGGER_TYPE_CLOSE_REQUESTED",this.i9],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ss],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.oV],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.oV],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.oV],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.oV],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.oV],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.oV],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.oV],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.I6],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.I6],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.aV],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Ss],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.qq],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.TG],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Dh],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.qs],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.qs],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.qs],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.qs],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.qs]]),HX:new Map([["SLOT_TYPE_ABOVE_FEED",this.Tw], ["SLOT_TYPE_AD_BREAK_REQUEST",this.Tw],["SLOT_TYPE_FORECASTING",this.Tw],["SLOT_TYPE_IN_PLAYER",this.Tw],["SLOT_TYPE_PLAYER_BYTES",this.Um],["SLOT_TYPE_PLAYER_UNDERLAY",this.Tw],["SLOT_TYPE_PLAYBACK_TRACKING",this.Tw],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Tw]]),sZ:new Map([["SLOT_TYPE_ABOVE_FEED",this.aI],["SLOT_TYPE_AD_BREAK_REQUEST",this.Or],["SLOT_TYPE_FORECASTING",this.di],["SLOT_TYPE_PLAYER_BYTES",this.FV],["SLOT_TYPE_PLAYBACK_TRACKING",this.RN],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.RN],["SLOT_TYPE_IN_PLAYER",this.NE],["SLOT_TYPE_PLAYER_UNDERLAY",this.ZK]])};this.listeners=[u.get()];this.ag={PV:this.PV,zS:this.hk.get(),oz:this.LJ.get(),ZF:this.Qg.get(),Y9:this.Y9,zY:E.get(),aZ:this.xk.get(),tp:this.lC,S5:u.get(),x4:this.SO.get()}}; wQN=function(h,W,c,V,H){g.N.call(this);var B=this,E=Lm(function(){return new dU(B.hk)}); g.X(this,E);var J=Lm(function(){return new Zq(E,B.hk)}); g.X(this,J);var u=Lm(function(){return new pY}); g.X(this,u);var d=Lm(function(){return new mz(h)}); g.X(this,d);var G=Lm(function(){return new rU(E,J,B.hk)}); g.X(this,G);var Z=Lm(function(){return new jo}); g.X(this,Z);this.VA=Lm(function(){return new xV(W)}); g.X(this,this.VA);this.LJ=Lm(function(){return new Km(H)}); g.X(this,this.LJ);this.dW=Lm(function(){return new Sw(W)}); g.X(this,this.dW);this.lX=Lm(function(){return new go(W)}); g.X(this,this.lX);this.Xl=Lm(function(){return new DA(W)}); g.X(this,this.Xl);this.oR=Lm(function(){return new wo(W)}); g.X(this,this.oR);this.hk=Lm(function(){return new k_(W)}); g.X(this,this.hk);var r=Lm(function(){return new qK(V)}); g.X(this,r);var q=Lm(function(){return new wy(B.hk)}); g.X(this,q);var x=Lm(function(){return new F0(E,G,J,B.hk,q,null,null,B.RF,B.qs)}); g.X(this,x);this.ge=Lm(function(){return new aP(W)}); g.X(this,this.ge);this.xk=Lm(function(){return new Cm}); g.X(this,this.xk);this.SO=Lm(function(){return new EF(W,Z,B.hk)}); g.X(this,this.SO);var z=Y_({SO:this.SO,hk:this.hk,eK:q}),L=z.context,M=z.Z1;this.CJ=z.CJ;this.Ky=Lm(function(){return new jS(W,B.hk,B.nM)}); this.Qg=Lm(function(){return new RP(W,B.SO,B.hk)}); g.X(this,this.Qg);this.AE=Lm(function(){return new zz}); g.X(this,this.AE);this.Gz=Lm(function(){return new c6(B.Qg,W,B.hk)}); g.X(this,this.Gz);this.nM=Lm(function(){return new B6(W,u,B.Gz,B.SO,B.CJ,B.hk,M)}); g.X(this,this.nM);this.Uh=Lm(function(){return new M6(B.hk)}); g.X(this,this.Uh);this.Kg=new tO(X0,Qt,function(y,T,m,D){return Zt(J.get(),y,T,m,D)},d,G,J,q,this.hk,this.SO); g.X(this,this.Kg);this.Y9=new vl(d,x,c,this.hk,h,this.SO,this.Qg,this.dW);g.X(this,this.Y9);var U=new Ot(W,this.Y9,this.Qg,this.SO,this.Ky);this.z2=Lm(function(){return U}); this.fX=U;this.RF=new fY(d,G,this.z2,this.Ky,this.Qg,this.hk,this.nM);g.X(this,this.RF);this.Kp=new op(d,G,this.lX,this.z2,L);g.X(this,this.Kp);this.PV=new kt(this.hk,d,G,x,this.SO,this.Kp,c,this.Xl);g.X(this,this.PV);this.wV=Lm(function(){return new gL(r,J,q,B.hk,B.nM,B.Qg)}); g.X(this,this.wV);this.uT=Lm(function(){return new DG}); g.X(this,this.uT);this.lC=new w2(h,this.VA,this.hk);g.X(this,this.lC);this.rI=new kC(h);g.X(this,this.rI);this.i9=new hx(h);g.X(this,this.i9);this.Ss=new cL(h,this.z2,L);g.X(this,this.Ss);this.oV=new Vg(h,this.lX,this.Qg,this.SO,L);g.X(this,this.oV);this.aV=new sf(h);g.X(this,this.aV);this.qq=new HL(h);g.X(this,this.qq);this.TG=new Jx(h);g.X(this,this.TG);this.wI=Lm(function(){return new eS(W)}); g.X(this,this.wI);this.Dh=new um(h);g.X(this,this.Dh);this.qs=new BL(h,this.Ky,this.Qg,this.nM,this.z2,this.RF);g.X(this,this.qs);this.Tw=Lm(function(){return new O2}); g.X(this,this.Tw);this.Um=Lm(function(){return new S0(B.Qg)}); g.X(this,this.Um);this.Or=Lm(function(){return new Ph(B.PV,d,E)}); g.X(this,this.Or);this.di=Lm(function(){return new Tq(B.hk,B.nM,B.aV,B.Gz)}); g.X(this,this.di);this.NE=Lm(function(){return new Bn5(B.VA,B.Qg,B.nM,u,B.Gz,B.i9,B.TG,B.LJ,B.hk,c)}); g.X(this,this.NE);this.FV=Lm(function(){return new L8(h,B.Dh,B.aV,B.nM,B.Gz,B.Uh,B.Xl,B.SO,B.Qg,B.AE,B.lX,B.dW,B.oR,B.LJ,B.ge,B.hk,B.wI,L,M)}); g.X(this,this.FV);this.Sj=new r8(h,this.xk,E);g.X(this,this.Sj);this.m4={FX:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.PV],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.RF],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Kg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Y9],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Kp]]),Tc:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wV],["SLOT_TYPE_FORECASTING",this.uT],["SLOT_TYPE_IN_PLAYER",this.uT], ["SLOT_TYPE_PLAYER_BYTES",this.uT]]),VV:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.lC],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.rI],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.rI],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.rI],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.rI],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.rI],["TRIGGER_TYPE_SLOT_ID_EXITED",this.rI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.rI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.rI],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.rI], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.rI],["TRIGGER_TYPE_CLOSE_REQUESTED",this.i9],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ss],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.oV],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.oV],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.oV],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.aV],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ss],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.qq],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.TG],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Dh],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.qs],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.qs],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.qs],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.qs],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.qs]]),HX:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Tw],["SLOT_TYPE_FORECASTING",this.Tw],["SLOT_TYPE_IN_PLAYER",this.Tw],["SLOT_TYPE_PLAYER_BYTES",this.Um]]), sZ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Or],["SLOT_TYPE_FORECASTING",this.di],["SLOT_TYPE_IN_PLAYER",this.NE],["SLOT_TYPE_PLAYER_BYTES",this.FV]])};this.listeners=[u.get()];this.ag={PV:this.PV,zS:this.hk.get(),oz:this.LJ.get(),ZF:this.Qg.get(),Y9:this.Y9,zY:E.get(),aZ:this.xk.get(),tp:this.lC,S5:u.get(),x4:this.SO.get()}}; kBl=function(h,W,c,V,H){g.N.call(this);var B=this,E=Lm(function(){return new dU(B.hk)}); g.X(this,E);var J=Lm(function(){return new Zq(E,B.hk)}); g.X(this,J);var u=Lm(function(){return new pY}); g.X(this,u);var d=Lm(function(){return new mz(h)}); g.X(this,d);var G=Lm(function(){return new rU(E,J,B.hk)}); g.X(this,G);var Z=Lm(function(){return new jo}); g.X(this,Z);this.VA=Lm(function(){return new xV(W)}); g.X(this,this.VA);this.LJ=Lm(function(){return new Km(H)}); g.X(this,this.LJ);this.dW=Lm(function(){return new Sw(W)}); g.X(this,this.dW);this.lX=Lm(function(){return new go(W)}); g.X(this,this.lX);this.Xl=Lm(function(){return new DA(W)}); g.X(this,this.Xl);this.oR=Lm(function(){return new wo(W)}); g.X(this,this.oR);this.hk=Lm(function(){return new k_(W)}); g.X(this,this.hk);var r=Lm(function(){return new qK(V)}); g.X(this,r);var q=Lm(function(){return new wy(B.hk)}); g.X(this,q);var x=Lm(function(){return new F0(E,G,J,B.hk,q,null,null,null,null)}); g.X(this,x);this.ge=Lm(function(){return new aP(W)}); g.X(this,this.ge);this.SO=Lm(function(){return new EF(W,Z,B.hk)}); g.X(this,this.SO);var z=Y_({SO:this.SO,hk:this.hk,eK:q}),L=z.context,M=z.Z1;this.CJ=z.CJ;this.Qg=Lm(function(){return new RP(W,B.SO,B.hk)}); g.X(this,this.Qg);this.AE=Lm(function(){return new zz}); g.X(this,this.AE);this.Gz=Lm(function(){return new c6(B.Qg,W,B.hk)}); g.X(this,this.Gz);this.nM=Lm(function(){return new B6(W,u,B.Gz,B.SO,B.CJ,B.hk,M)}); g.X(this,this.nM);this.Uh=Lm(function(){return new M6(B.hk)}); g.X(this,this.Uh);this.Kg=new tO(X0,Qt,function(y,T,m,D){return Zt(J.get(),y,T,m,D)},d,G,J,q,this.hk,this.SO); g.X(this,this.Kg);this.Y9=new vl(d,x,c,this.hk,h,this.SO,this.Qg,this.dW);g.X(this,this.Y9);var U=new Ot(W,this.Y9,this.Qg,this.SO);this.z2=Lm(function(){return U}); this.fX=U;this.Kp=new op(d,G,this.lX,this.z2,L);g.X(this,this.Kp);this.PV=new kt(this.hk,d,G,x,this.SO,this.Kp,c,this.Xl);g.X(this,this.PV);this.wV=Lm(function(){return new gL(r,J,q,B.hk,B.nM,B.Qg)}); g.X(this,this.wV);this.uT=Lm(function(){return new DG}); g.X(this,this.uT);this.lC=new w2(h,this.VA,this.hk);g.X(this,this.lC);this.rI=new kC(h);g.X(this,this.rI);this.Ss=new cL(h,this.z2,L);g.X(this,this.Ss);this.oV=new Vg(h,this.lX,this.Qg,this.SO,L);g.X(this,this.oV);this.aV=new sf(h);g.X(this,this.aV);this.qq=new HL(h);g.X(this,this.qq);this.wI=Lm(function(){return new eS(W)}); g.X(this,this.wI);this.Dh=new um(h);g.X(this,this.Dh);this.Tw=Lm(function(){return new O2}); g.X(this,this.Tw);this.Um=Lm(function(){return new S0(B.Qg)}); g.X(this,this.Um);this.Or=Lm(function(){return new Ph(B.PV,d,E)}); g.X(this,this.Or);this.di=Lm(function(){return new Tq(B.hk,B.nM,B.aV,B.Gz)}); g.X(this,this.di);this.Dx=Lm(function(){return new lb7(B.VA,B.Qg,B.nM,u,c,B.hk)}); g.X(this,this.Dx);this.FV=Lm(function(){return new L8(h,B.Dh,B.aV,B.nM,B.Gz,B.Uh,B.Xl,B.SO,B.Qg,B.AE,B.lX,B.dW,B.oR,B.LJ,B.ge,B.hk,B.wI,L,M)}); g.X(this,this.FV);this.m4={FX:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.PV],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Kg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Y9],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Kp]]),Tc:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wV],["SLOT_TYPE_FORECASTING",this.uT],["SLOT_TYPE_IN_PLAYER",this.uT],["SLOT_TYPE_PLAYER_BYTES",this.uT]]),VV:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.lC],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.rI],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.rI],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.rI],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.rI],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.rI],["TRIGGER_TYPE_SLOT_ID_EXITED",this.rI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.rI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.rI],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.rI],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ss],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.oV],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.oV],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.aV],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ss],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.qq],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Dh]]),HX:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Tw],["SLOT_TYPE_ABOVE_FEED",this.Tw],["SLOT_TYPE_FORECASTING",this.Tw],["SLOT_TYPE_IN_PLAYER",this.Tw],["SLOT_TYPE_PLAYER_BYTES",this.Um]]),sZ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Or],["SLOT_TYPE_FORECASTING",this.di],["SLOT_TYPE_IN_PLAYER", this.Dx],["SLOT_TYPE_PLAYER_BYTES",this.FV]])};this.listeners=[u.get()];this.ag={PV:this.PV,zS:this.hk.get(),oz:this.LJ.get(),ZF:this.Qg.get(),Y9:this.Y9,zY:E.get(),aZ:null,tp:this.lC,S5:u.get(),x4:this.SO.get()}}; h4U=function(h,W,c,V,H){g.N.call(this);var B=this,E=Lm(function(){return new dU(B.hk)}); g.X(this,E);var J=Lm(function(){return new Zq(E,B.hk)}); g.X(this,J);var u=Lm(function(){return new pY}); g.X(this,u);var d=Lm(function(){return new mz(h)}); g.X(this,d);var G=Lm(function(){return new rU(E,J,B.hk)}); g.X(this,G);var Z=Lm(function(){return new jo}); g.X(this,Z);this.hp=Lm(function(){return new gdU(W)}); g.X(this,this.hp);this.VA=Lm(function(){return new xV(W)}); g.X(this,this.VA);this.LJ=Lm(function(){return new Km(H)}); g.X(this,this.LJ);this.dW=Lm(function(){return new Sw(W)}); g.X(this,this.dW);this.lX=Lm(function(){return new go(W)}); g.X(this,this.lX);this.Xl=Lm(function(){return new DA(W)}); g.X(this,this.Xl);this.oR=Lm(function(){return new wo(W)}); g.X(this,this.oR);this.hk=Lm(function(){return new k_(W)}); g.X(this,this.hk);var r=Lm(function(){return new qK(V)}); g.X(this,r);var q=Lm(function(){return new wy(B.hk)}); g.X(this,q);var x=Lm(function(){return new F0(E,G,J,B.hk,q,null,null,null,null)}); g.X(this,x);this.ge=Lm(function(){return new aP(W)}); g.X(this,this.ge);this.SO=Lm(function(){return new EF(W,Z,B.hk)}); g.X(this,this.SO);var z=Y_({SO:this.SO,hk:this.hk,eK:q}),L=z.context,M=z.Z1;this.CJ=z.CJ;this.Qg=Lm(function(){return new RP(W,B.SO,B.hk)}); g.X(this,this.Qg);this.AE=Lm(function(){return new zz}); g.X(this,this.AE);this.Gz=Lm(function(){return new c6(B.Qg,W,B.hk)}); g.X(this,this.Gz);this.nM=Lm(function(){return new B6(W,u,B.Gz,B.SO,B.CJ,B.hk,M)}); g.X(this,this.nM);this.Uh=Lm(function(){return new M6(B.hk)}); g.X(this,this.Uh);this.Kg=new tO(pkl,Qt,function(y,T,m,D){return ZAl(J.get(),y,T,m,D)},d,G,J,q,this.hk,this.SO); g.X(this,this.Kg);this.Y9=new vl(d,x,c,this.hk,h,this.SO,this.Qg,this.dW);g.X(this,this.Y9);var U=new Ot(W,this.Y9,this.Qg,this.SO);this.z2=Lm(function(){return U}); this.fX=U;this.Kp=new op(d,G,this.lX,this.z2,L);g.X(this,this.Kp);this.PV=new kt(this.hk,d,G,x,this.SO,this.Kp,c,this.Xl);g.X(this,this.PV);this.wV=Lm(function(){return new gL(r,J,q,B.hk,B.nM,B.Qg)}); g.X(this,this.wV);this.uT=Lm(function(){return new DG}); g.X(this,this.uT);this.lC=new w2(h,this.VA,this.hk);g.X(this,this.lC);this.rI=new kC(h);g.X(this,this.rI);this.Ss=new cL(h,this.z2,L);g.X(this,this.Ss);this.oV=new Vg(h,this.lX,this.Qg,this.SO,L);g.X(this,this.oV);this.aV=new sf(h);g.X(this,this.aV);this.qq=new HL(h);g.X(this,this.qq);this.wI=Lm(function(){return new eS(W)}); g.X(this,this.wI);this.Dh=new um(h);g.X(this,this.Dh);this.Tw=Lm(function(){return new O2}); g.X(this,this.Tw);this.Um=Lm(function(){return new S0(B.Qg)}); g.X(this,this.Um);this.Or=Lm(function(){return new Ph(B.PV,d,E)}); g.X(this,this.Or);this.di=Lm(function(){return new Tq(B.hk,B.nM,B.aV,B.Gz)}); g.X(this,this.di);this.FV=Lm(function(){return new L8(h,B.Dh,B.aV,B.nM,B.Gz,B.Uh,B.Xl,B.SO,B.Qg,B.AE,B.lX,B.dW,B.oR,B.LJ,B.ge,B.hk,B.wI,L,M)}); g.X(this,this.FV);this.Wg=Lm(function(){return new RWN(B.VA,B.Qg,B.nM,u,B.hp,c,B.SO)}); g.X(this,this.Wg);this.m4={FX:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.PV],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Kg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Y9],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Kp]]),Tc:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wV],["SLOT_TYPE_FORECASTING",this.uT],["SLOT_TYPE_IN_PLAYER",this.uT],["SLOT_TYPE_PLAYER_BYTES",this.uT]]),VV:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.lC],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.rI],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.rI],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.rI],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.rI],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.rI],["TRIGGER_TYPE_SLOT_ID_EXITED",this.rI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.rI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.rI],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.rI],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ss],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.oV],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.oV],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.aV],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ss],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.qq],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Dh]]),HX:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Tw],["SLOT_TYPE_FORECASTING",this.Tw],["SLOT_TYPE_IN_PLAYER",this.Tw],["SLOT_TYPE_PLAYER_BYTES",this.Um]]),sZ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Or],["SLOT_TYPE_FORECASTING",this.di],["SLOT_TYPE_IN_PLAYER",this.Wg],["SLOT_TYPE_PLAYER_BYTES", this.FV]])};this.listeners=[u.get()];this.ag={PV:this.PV,zS:this.hk.get(),oz:this.LJ.get(),ZF:this.Qg.get(),Y9:this.Y9,zY:E.get(),aZ:null,tp:this.lC,S5:u.get(),x4:this.SO.get()}}; W7l=function(h,W,c,V,H){g.N.call(this);var B=this,E=Lm(function(){return new dU(B.hk)}); g.X(this,E);var J=Lm(function(){return new Zq(E,B.hk)}); g.X(this,J);var u=Lm(function(){return new pY}); g.X(this,u);var d=Lm(function(){return new mz(h)}); g.X(this,d);var G=Lm(function(){return new rU(E,J,B.hk)}); g.X(this,G);var Z=Lm(function(){return new jo}); g.X(this,Z);this.hp=Lm(function(){return new gdU(W)}); g.X(this,this.hp);this.VA=Lm(function(){return new xV(W)}); g.X(this,this.VA);this.LJ=Lm(function(){return new Km(H)}); g.X(this,this.LJ);this.dW=Lm(function(){return new Sw(W)}); g.X(this,this.dW);this.lX=Lm(function(){return new go(W)}); g.X(this,this.lX);this.Xl=Lm(function(){return new DA(W)}); g.X(this,this.Xl);this.oR=Lm(function(){return new wo(W)}); g.X(this,this.oR);this.hk=Lm(function(){return new k_(W)}); g.X(this,this.hk);var r=Lm(function(){return new qK(V)}); g.X(this,r);var q=Lm(function(){return new wy(B.hk)}); g.X(this,q);this.ge=Lm(function(){return new aP(W)}); g.X(this,this.ge);this.SO=Lm(function(){return new EF(W,Z,B.hk)}); g.X(this,this.SO);var x=Y_({SO:this.SO,hk:this.hk,eK:q}),z=x.context,L=x.Z1;this.CJ=x.CJ;this.Ky=Lm(function(){return new jS(W,B.hk,B.nM)}); g.X(this,this.Ky);this.wI=Lm(function(){return new eS(W)}); g.X(this,this.wI);this.Qg=Lm(function(){return new RP(W,B.SO,B.hk)}); g.X(this,this.Qg);this.AE=Lm(function(){return new zz}); g.X(this,this.AE);x=Lm(function(){return new F0(E,G,J,B.hk,q,null,B.Qg,B.RF,B.qs,3)}); g.X(this,x);this.Uh=Lm(function(){return new M6(B.hk)}); this.Gz=Lm(function(){return new c6(B.Qg,W,B.hk)}); g.X(this,this.Gz);this.nM=Lm(function(){return new B6(W,u,B.Gz,B.SO,B.CJ,B.hk,L)}); g.X(this,this.nM);this.Y9=new vl(d,x,c,this.hk,h,this.SO,this.Qg,this.dW);g.X(this,this.Y9);var M=new Ot(W,this.Y9,this.Qg,this.SO,this.Ky);this.z2=Lm(function(){return M}); this.fX=M;this.Kg=new tO(Id5,Qt,function(U,y,T,m){return ZAl(J.get(),U,y,T,m)},d,G,J,q,this.hk,this.SO); g.X(this,this.Kg);this.RF=new fY(d,G,this.z2,this.Ky,this.Qg,this.hk,this.nM,this.wI);g.X(this,this.RF);this.Kp=new op(d,G,this.lX,this.z2,z);g.X(this,this.Kp);this.PV=new kt(this.hk,d,G,x,this.SO,this.Kp,c,this.Xl);g.X(this,this.PV);this.wV=Lm(function(){return new gL(r,J,q,B.hk,B.nM,B.Qg,B.wI)}); g.X(this,this.wV);this.uT=Lm(function(){return new DG}); g.X(this,this.uT);this.lC=new w2(h,this.VA,this.hk);g.X(this,this.lC);this.rI=new kC(h);g.X(this,this.rI);this.Ss=new cL(h,this.z2,z);g.X(this,this.Ss);this.oV=new Vg(h,this.lX,this.Qg,this.SO,z);g.X(this,this.oV);this.I6=new $l(h,this.SO);g.X(this,this.I6);this.qs=new BL(h,this.Ky,this.Qg,this.nM,this.z2,this.RF);g.X(this,this.qs);this.aV=new sf(h);g.X(this,this.aV);this.qq=new HL(h);g.X(this,this.qq);this.Dh=new um(h);g.X(this,this.Dh);this.Tw=Lm(function(){return new O2}); g.X(this,this.Tw);this.Um=Lm(function(){return new S0(B.Qg)}); g.X(this,this.Um);this.Or=Lm(function(){return new Ph(B.PV,d,E)}); g.X(this,this.Or);this.di=Lm(function(){return new Tq(B.hk,B.nM,B.aV,B.Gz)}); g.X(this,this.di);this.FV=Lm(function(){return new Qw(h,B.Dh,B.aV,B.SO,B.wI,B.Qg,B.AE,B.nM,Z,B.Ky,B.Gz,B.Uh,B.Xl,B.lX,B.dW,B.oR,B.LJ,B.ge,B.hk,u,z,L)}); g.X(this,this.FV);this.NE=Lm(function(){return new JmT(B.VA,B.Qg,B.nM,u,B.hp,c,B.hk,B.SO)}); g.X(this,this.NE);this.m4={FX:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.PV],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.RF],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Kg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Y9],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Kp]]),Tc:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wV],["SLOT_TYPE_FORECASTING",this.uT],["SLOT_TYPE_IN_PLAYER",this.uT],["SLOT_TYPE_PLAYER_BYTES",this.uT]]),VV:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.lC],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.rI],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.rI],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.rI],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.rI],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.rI],["TRIGGER_TYPE_SLOT_ID_EXITED",this.rI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.rI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.rI],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.rI],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ss],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.oV],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.oV],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.I6],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.I6],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.aV],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ss],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.qq],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Dh],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.qs],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.qs],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.qs],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.qs],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.qs]]),HX:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Tw],["SLOT_TYPE_FORECASTING",this.Tw],["SLOT_TYPE_IN_PLAYER",this.Tw],["SLOT_TYPE_PLAYER_BYTES",this.Um]]),sZ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Or],["SLOT_TYPE_FORECASTING",this.di],["SLOT_TYPE_PLAYER_BYTES",this.FV],["SLOT_TYPE_IN_PLAYER",this.NE]])};this.listeners=[u.get()]; this.ag={PV:this.PV,zS:this.hk.get(),oz:this.LJ.get(),ZF:this.Qg.get(),Y9:this.Y9,zY:E.get(),aZ:null,tp:this.lC,S5:u.get(),x4:this.SO.get()}}; VDc=function(h,W,c,V){function H(){return B.W} g.N.call(this);var B=this;h.B().experiments.xN("html5_dispose_of_manager_before_dependency")?(this.X=cNt(H,h,W,c,V),this.W=(new iJ(this.X)).G(),g.X(this,this.W),g.X(this,this.X)):(this.X=cNt(H,h,W,c,V),g.X(this,this.X),this.W=(new iJ(this.X)).G(),g.X(this,this.W))}; Ln=function(h){return h.X.ag}; cNt=function(h,W,c,V,H){try{var B=W.B();if(g.lo(B))var E=new DIh(h,W,c,V,H);else if(g.aa(B))E=new wQN(h,W,c,V,H);else if(J0(B))E=new kBl(h,W,c,V,H);else if(g.CV(B))E=new h4U(h,W,c,V,H);else if(g.$X(B))E=new W7l(h,W,c,V,H);else throw new TypeError("Unknown web interface");return E}catch(J){return E=W.B(),sA("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:E.X.cplatform,interface:E.X.c,B8n:E.X.cver,pGH:E.X.ctheme,tgI:E.X.cplayer,Ztk:E.playerStyle}),new tfL(h,W,c,V,H)}}; $Lf=function(h){Tp.call(this,h)}; skI=function(h,W,c,V,H){Ie.call(this,h,{D:"div",K:"ytp-ad-timed-pie-countdown-container",V:[{D:"svg",K:"ytp-ad-timed-pie-countdown",J:{viewBox:"0 0 20 20"},V:[{D:"circle",K:"ytp-ad-timed-pie-countdown-background",J:{r:"10",cx:"10",cy:"10"}},{D:"circle",K:"ytp-ad-timed-pie-countdown-inner",J:{r:"5",cx:"10",cy:"10"}},{D:"circle",K:"ytp-ad-timed-pie-countdown-outer",J:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",W,c,V,H);this.Y=this.vk("ytp-ad-timed-pie-countdown-container");this.G=this.vk("ytp-ad-timed-pie-countdown-inner"); this.N=this.vk("ytp-ad-timed-pie-countdown-outer");this.W=Math.ceil(2*Math.PI*5);this.hide()}; HUS=function(h,W,c,V,H,B){Hn.call(this,h,{D:"div",K:"ytp-ad-action-interstitial",J:{tabindex:"0"},V:[{D:"div",K:"ytp-ad-action-interstitial-background-container"},{D:"div",K:"ytp-ad-action-interstitial-slot",V:[{D:"div",K:"ytp-ad-action-interstitial-instream-info"},{D:"div",K:"ytp-ad-action-interstitial-card",V:[{D:"div",K:"ytp-ad-action-interstitial-image-container"},{D:"div",K:"ytp-ad-action-interstitial-headline-container"},{D:"div",K:"ytp-ad-action-interstitial-description-container"},{D:"div", K:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",W,c,V);this.Ze=H;this.En=B;this.navigationEndpoint=this.X=this.skipButton=this.W=this.actionButton=null;this.CM=this.vk("ytp-ad-action-interstitial-instream-info");this.Nn=this.vk("ytp-ad-action-interstitial-image-container");this.T=new yP(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,"ytp-ad-action-interstitial-image");g.X(this,this.T);this.T.kN(this.Nn);this.zV=this.vk("ytp-ad-action-interstitial-headline-container"); this.N=new oe(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,"ytp-ad-action-interstitial-headline");g.X(this,this.N);this.N.kN(this.zV);this.Wk=this.vk("ytp-ad-action-interstitial-description-container");this.G=new oe(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,"ytp-ad-action-interstitial-description");g.X(this,this.G);this.G.kN(this.Wk);this.Mn=this.vk("ytp-ad-action-interstitial-background-container");this.Rz=new yP(this.api,this.layoutId,this.interactionLoggingClientData, this.oz,"ytp-ad-action-interstitial-background",!0);g.X(this,this.Rz);this.Rz.kN(this.Mn);this.rE=this.vk("ytp-ad-action-interstitial-action-button-container");this.slot=this.vk("ytp-ad-action-interstitial-slot");this.g3=this.vk("ytp-ad-action-interstitial-card");this.Y=new aI;g.X(this,this.Y);this.hide()}; BNt=function(h){var W=g.EH("html5-video-player");W&&g.$y(W,"ytp-ad-display-override",h)}; ulf=function(h,W,c,V){Hn.call(this,h,{D:"div",K:"ytp-ad-overlay-slot",V:[{D:"div",K:"ytp-ad-overlay-container"}]},"invideo-overlay",W,c,V);this.T=[];this.Mn=this.zV=this.Y=this.rE=this.CM=null;this.Rz=!1;this.N=null;this.Wk=0;h=this.vk("ytp-ad-overlay-container");this.Nn=new hW(h,45E3,6E3,.3,.4);g.X(this,this.Nn);this.G=E5l(this);g.X(this,this.G);this.G.kN(h);this.W=R4u(this);g.X(this,this.W);this.W.kN(h);this.X=JNK(this);g.X(this,this.X);this.X.kN(h);this.hide()}; E5l=function(h){var W=new g.sJ({D:"div",K:"ytp-ad-text-overlay",V:[{D:"div",K:"ytp-ad-overlay-ad-info-button-container"},{D:"div",K:"ytp-ad-overlay-close-container",V:[{D:"button",K:"ytp-ad-overlay-close-button",V:[L4(dLS)]}]},{D:"div",K:"ytp-ad-overlay-title",YN:"{{title}}"},{D:"div",K:"ytp-ad-overlay-desc",YN:"{{description}}"},{D:"div",LM:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],YN:"{{displayUrl}}"}]});h.U(W.vk("ytp-ad-overlay-title"),"click",function(c){Kn(h,W.element,c)}); h.U(W.vk("ytp-ad-overlay-link"),"click",function(c){Kn(h,W.element,c)}); h.U(W.vk("ytp-ad-overlay-close-container"),"click",h.s9);W.hide();return W}; R4u=function(h){var W=new g.sJ({D:"div",LM:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],V:[{D:"div",K:"ytp-ad-overlay-ad-info-button-container"},{D:"div",K:"ytp-ad-overlay-close-container",V:[{D:"button",K:"ytp-ad-overlay-close-button",V:[L4(dLS)]}]},{D:"div",K:"ytp-ad-overlay-text-image",V:[{D:"img",J:{src:"{{imageUrl}}"}}]},{D:"div",K:"ytp-ad-overlay-title",YN:"{{title}}"},{D:"div",K:"ytp-ad-overlay-desc",YN:"{{description}}"},{D:"div",LM:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], YN:"{{displayUrl}}"}]});h.U(W.vk("ytp-ad-overlay-title"),"click",function(c){Kn(h,W.element,c)}); h.U(W.vk("ytp-ad-overlay-link"),"click",function(c){Kn(h,W.element,c)}); h.U(W.vk("ytp-ad-overlay-close-container"),"click",h.s9);h.U(W.vk("ytp-ad-overlay-text-image"),"click",h.hsf);W.hide();return W}; JNK=function(h){var W=new g.sJ({D:"div",K:"ytp-ad-image-overlay",V:[{D:"div",K:"ytp-ad-overlay-ad-info-button-container"},{D:"div",K:"ytp-ad-overlay-close-container",V:[{D:"button",K:"ytp-ad-overlay-close-button",V:[L4(dLS)]}]},{D:"div",K:"ytp-ad-overlay-image",V:[{D:"img",J:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});h.U(W.vk("ytp-ad-overlay-image"),"click",function(c){Kn(h,W.element,c)}); h.U(W.vk("ytp-ad-overlay-close-container"),"click",h.s9);W.hide();return W}; GQt=function(h,W){if(W){var c=g.v(W,ST)||null;c==null?g.Qq(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(W=g.EH("video-ads ytp-ad-module")||null,W==null?g.Qq(Error("Could not locate the root ads container element to attach the ad info dialog.")):(h.zV=new g.sJ({D:"div",K:"ytp-ad-overlay-ad-info-dialog-container"}),g.X(h,h.zV),h.zV.kN(W),W=new mQ(h.api,h.layoutId,h.interactionLoggingClientData,h.oz,h.zV.element,!1),g.X(h,W),W.init(wc("ad-info-hover-text-button"),c,h.macros), h.N?(W.kN(h.N,0),W.subscribe("f",h.nNN,h),W.subscribe("e",h.l4,h),h.U(h.N,"click",h.mnI),h.U(g.EH("ytp-ad-button",W.element),"click",function(){var V;if(g.v((V=g.v(c.button,g.DJ))==null?void 0:V.serviceEndpoint,VPD))h.Rz=h.api.getPlayerState(1)===2,h.api.pauseVideo();else h.api.onAdUxClicked("ad-info-hover-text-button",h.layoutId)}),h.Mn=W):g.Qq(Error("Ad info button container within overlay ad was not present."))))}else g.Lx(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; rNK=function(h,W){if(ZUX(h,A8)||h.api.isMinimized())return!1;var c=Bn(W.title),V=Bn(W.description);if(g.Cr(c)||g.Cr(V))return!1;h.createServerVe(h.G.element,W.trackingParams||null);h.G.updateValue("title",Bn(W.title));h.G.updateValue("description",Bn(W.description));h.G.updateValue("displayUrl",Bn(W.displayUrl));W.navigationEndpoint&&g.F6(h.T,W.navigationEndpoint);h.G.show();h.Nn.start();h.logVisibility(h.G.element,!0);h.U(h.G.element,"mouseover",function(){h.Wk++}); return!0}; qvf=function(h,W){if(ZUX(h,A8)||h.api.isMinimized())return!1;var c=Bn(W.title),V=Bn(W.description);if(g.Cr(c)||g.Cr(V))return!1;h.createServerVe(h.W.element,W.trackingParams||null);h.W.updateValue("title",Bn(W.title));h.W.updateValue("description",Bn(W.description));h.W.updateValue("displayUrl",Bn(W.displayUrl));h.W.updateValue("imageUrl",GRk(W.image));W.navigationEndpoint&&g.F6(h.T,W.navigationEndpoint);h.rE=W.imageNavigationEndpoint||null;h.W.show();h.Nn.start();h.logVisibility(h.W.element,!0); h.U(h.W.element,"mouseover",function(){h.Wk++}); return!0}; xL$=function(h,W){if(h.api.isMinimized())return!1;var c=ZSQ(W.image),V=c;c.width0?(W=new AW(h.api,h.X), W.kN(h.playerOverlay),g.X(h,W)):(h=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(W)),g.Qq(h))}}else g.Qq(Error("addCommonComponents() needs to be called before starting countdown."))}; ANf=function(h){function W(c){return{toString:function(){return c()}}} h.macros.SURVEY_LOCAL_TIME_EPOCH_S=W(function(){var c=new Date;return(Math.round(c.valueOf()/1E3)+-1*c.getTimezoneOffset()*60).toString()}); h.macros.SURVEY_ELAPSED_MS=W(function(){return(Date.now()-h.G).toString()})}; UL6=function(h,W,c,V,H){FD.call(this,h,W,c,V,"survey-question-multi-select");this.Wk=H;this.noneOfTheAbove=null;this.submitEndpoints=[];this.N=null;this.hide()}; CTI=function(h,W,c){h.noneOfTheAbove=new z4I(h.api,h.layoutId,h.interactionLoggingClientData,h.oz);h.noneOfTheAbove.kN(h.answers);h.noneOfTheAbove.init(wc("survey-none-of-the-above"),W,c)}; F7u=function(h){h.W.forEach(function(W){W.X.toggleButton(!1)}); MDU(h,!0)}; MDU=function(h,W){var c=h.Y;h=yNl(h);W=W===void 0?!1:W;c.X&&(h?c.X.hide():c.X.show(),W&&c.X instanceof u7&&!c.X.Y&&dvL(c.X,!1));c.W&&(h?c.W.show():c.W.hide())}; yNl=function(h){return h.W.some(function(W){return W.X.isToggled()})||h.noneOfTheAbove.button.isToggled()}; P6=function(h,W,c,V,H){FD.call(this,h,W,c,V,"survey-question-single-select",function(E){B.api.B().j("supports_multi_step_on_desktop")&&H([E])}); var B=this;this.hide()}; fn=function(h,W,c,V){Hn.call(this,h,{D:"div",K:"ytp-ad-survey",V:[{D:"div",K:"ytp-ad-survey-questions"}]},"survey",W,c,V);this.questions=[];this.W=[];this.conditioningRules=[];this.X=0;this.N=this.vk("ytp-ad-survey-questions");this.api.B().j("fix_survey_color_contrast_on_destop")&&this.vk("ytp-ad-survey").classList.add("color-contrast-fix");this.api.B().j("web_enable_speedmaster")&&this.vk("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; bUl=function(h,W){var c=h.W[W],V;(V=h.G)==null||V.dispose();g.v(c,Yt)?PTK(h,g.v(c,Yt),h.macros):g.v(c,Ic)&&fh2(h,g.v(c,Ic),h.macros);h.X=W}; PTK=function(h,W,c){var V=new P6(h.api,h.layoutId,h.interactionLoggingClientData,h.oz,h.Y.bind(h));V.kN(h.N);V.init(wc("survey-question-single-select"),W,c);h.api.B().j("supports_multi_step_on_desktop")?h.G=V:h.questions.push(V);g.X(h,V)}; fh2=function(h,W,c){var V=new UL6(h.api,h.layoutId,h.interactionLoggingClientData,h.oz,h.Y.bind(h));V.kN(h.N);V.init(wc("survey-question-multi-select"),W,c);h.api.B().j("supports_multi_step_on_desktop")?h.G=V:h.questions.push(V);g.X(h,V)}; bn=function(h,W,c,V){Hn.call(this,h,{D:"div",K:"ytp-ad-survey-interstitial",V:[{D:"div",K:"ytp-ad-survey-interstitial-contents",V:[{D:"div",K:"ytp-ad-survey-interstitial-logo",V:[{D:"div",K:"ytp-ad-survey-interstitial-logo-image"}]},{D:"div",K:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",W,c,V);this.X=this.actionButton=null;this.interstitial=this.vk("ytp-ad-survey-interstitial");this.W=this.vk("ytp-ad-survey-interstitial-contents");this.text=this.vk("ytp-ad-survey-interstitial-text"); this.logoImage=this.vk("ytp-ad-survey-interstitial-logo-image");this.transition=new g.SL(this,500,!1,300);g.X(this,this.transition)}; TNf=function(h,W){W=W&&FO(W)||"";if(g.Cr(W))g.Lx(Error("Found ThumbnailDetails without valid image URL"));else{var c=h.style;h=h.style.cssText;var V=document.implementation.createHTMLDocument("").createElement("DIV");V.style.cssText=h;h=m$7(V.style);c.cssText=[h,'background-image:url("'+W+'");'].join("")}}; NNI=function(h){var W=g.EH("html5-video-player");W&&g.$y(W,"ytp-ad-display-override",h)}; Tz=function(h,W,c,V,H,B){B=B===void 0?0:B;Ie.call(this,h,{D:"div",K:"ytp-preview-ad",V:[{D:"div",K:"ytp-preview-ad__text"}]},"preview-ad",W,c,V,H);var E=this;this.Wk=B;this.W=0;this.Y=-1;this.G=this.vk("ytp-preview-ad__text");switch(this.Wk){case 1:this.G.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.SL(this,400,!1,100,function(){E.hide()}); g.X(this,this.transition);this.hide()}; NK=function(h,W,c,V){Hn.call(this,h,{D:"img",K:"ytp-ad-avatar"},"ad-avatar",W,c,V);this.hide()}; Xd6=function(h){switch(h.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}}; XD=function(h,W,c,V,H,B){H=H===void 0?!1:H;B=B===void 0?!1:B;Hn.call(this,h,{D:"button",K:"ytp-ad-button-vm"},"ad-button",W,c,V);this.buttonText=this.buttonIcon=null;this.hide();this.X=H;this.W=B}; tDc=function(h,W,c,V,H){Ie.call(this,h,{D:"div",LM:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],V:[{D:"div",K:"ytp-ad-avatar-lockup-card__avatar_and_text_container",V:[{D:"div",K:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",W,c,V,H);this.startMilliseconds=0;this.adAvatar=new NK(this.api,this.layoutId,this.interactionLoggingClientData,this.oz);g.X(this,this.adAvatar);li(this.element,this.adAvatar.element,0);this.headline=new eR(this.api,this.layoutId, this.interactionLoggingClientData,this.oz);g.X(this,this.headline);this.headline.kN(this.vk("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new eR(this.api,this.layoutId,this.interactionLoggingClientData,this.oz);g.X(this,this.description);this.description.kN(this.vk("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new XD(this.api, this.layoutId,this.interactionLoggingClientData,this.oz);g.X(this,this.adButton);this.adButton.kN(this.element);this.hide()}; t8=function(h,W,c,V){Hn.call(this,h,{D:"button",K:"ytp-skip-ad-button",V:[{D:"div",K:"ytp-skip-ad-button__text"}]},"skip-button",W,c,V);var H=this;this.W=!1;this.Y=this.vk("ytp-skip-ad-button__text");this.transition=new g.SL(this,500,!1,100,function(){H.hide()}); g.X(this,this.transition);this.X=new hW(this.element,15E3,5E3,.5,.5,!0);g.X(this,this.X);this.hide()}; v5u=function(h,W,c,V,H){Ie.call(this,h,{D:"div",K:"ytp-skip-ad"},"skip-ad",W,c,V,H);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.G=new t8(this.api,this.layoutId,this.interactionLoggingClientData,this.oz);g.X(this,this.G);this.G.kN(this.element);this.hide()}; v6=function(h,W,c,V){Hn.call(this,h,{D:"div",K:"ytp-visit-advertiser-link"},"visit-advertiser-link",W,c,V);this.hide()}; ml=function(h,W,c,V,H){Hn.call(this,h,{D:"div",K:"ytp-ad-player-overlay-layout",V:[{D:"div",K:"ytp-ad-player-overlay-layout__player-card-container"},{D:"div",K:"ytp-ad-player-overlay-layout__ad-info-container"},{D:"div",K:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{D:"div",K:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",W,c,V);this.W=H;this.zV=this.vk("ytp-ad-player-overlay-layout__player-card-container");this.X=this.vk("ytp-ad-player-overlay-layout__ad-info-container"); this.T=this.vk("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Wk=this.vk("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; mL6=function(h,W,c,V){Hn.call(this,h,{D:"div",K:"ytp-ad-grid-card-text",V:[{D:"div",K:"ytp-ad-grid-card-text__metadata",V:[{D:"div",K:"ytp-ad-grid-card-text__metadata__headline"},{D:"div",K:"ytp-ad-grid-card-text__metadata__description",V:[{D:"div",K:"ytp-ad-grid-card-text__metadata__description__line"},{D:"div",K:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{D:"div",K:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",W,c,V);this.headline=new eR(this.api,this.layoutId,this.interactionLoggingClientData, this.oz);g.X(this,this.headline);this.headline.kN(this.vk("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new XD(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,!0);g.X(this,this.moreInfoButton);this.moreInfoButton.kN(this.vk("ytp-ad-grid-card-text__button"))}; oP=function(h,W,c,V){Hn.call(this,h,{D:"div",K:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",W,c,V);this.X=[]}; pn=function(h,W,c,V,H,B,E){Ie.call(this,h,B,E,W,c,V,H);this.playerProgressOffsetMs=0;this.W=!1}; o5I=function(h){var W=g.EH("html5-video-player");W&&g.$y(W,"ytp-ad-display-override",h)}; pdI=function(h,W,c,V,H){pn.call(this,h,W,c,V,H,{D:"div",K:"ytp-display-underlay-text-grid-cards",V:[{D:"div",K:"ytp-display-underlay-text-grid-cards__content_container",V:[{D:"div",K:"ytp-display-underlay-text-grid-cards__content_container__header",V:[{D:"div",K:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{D:"div",K:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{D:"div",K:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {D:"div",K:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new oP(this.api,this.layoutId,this.interactionLoggingClientData,this.oz);g.X(this,this.adGridCardCollection);this.adGridCardCollection.kN(this.vk("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new XD(this.api,this.layoutId,this.interactionLoggingClientData,this.oz);g.X(this,this.adButton);this.adButton.kN(this.vk("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.G=this.vk("ytp-display-underlay-text-grid-cards__content_container");this.Y=this.vk("ytp-display-underlay-text-grid-cards__content_container__header")}; IP=function(h,W,c,V){Hn.call(this,h,{D:"div",K:"ytp-ad-details-line"},"ad-details-line",W,c,V);this.X=[];this.hide()}; YV=function(h,W,c,V){Hn.call(this,h,{D:"div",K:"ytp-image-background",V:[{D:"img",K:"ytp-image-background-image"}]},"image-background",W,c,V);this.hide()}; IhU=function(h,W,c,V,H){Ie.call(this,h,{D:"svg",K:"ytp-timed-pie-countdown",J:{viewBox:"0 0 20 20"},V:[{D:"circle",K:"ytp-timed-pie-countdown__background",J:{r:"10",cx:"10",cy:"10"}},{D:"circle",K:"ytp-timed-pie-countdown__inner",J:{r:"5",cx:"10",cy:"10"}},{D:"circle",K:"ytp-timed-pie-countdown__outer",J:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",W,c,V,H);this.G=this.vk("ytp-timed-pie-countdown__inner");this.W=Math.ceil(2*Math.PI*5);this.hide()}; OF=function(h,W,c,V){Hn.call(this,h,{D:"div",K:"ytp-video-interstitial-buttoned-centered-layout",J:{tabindex:"0"},V:[{D:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content",V:[{D:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{D:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",V:[{D:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{D:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {D:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{D:"div",K:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{D:"div",K:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",W,c,V);this.W=null;this.Y=this.vk("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.G=new aI;g.X(this,this.G);this.hide()}; Yv$=function(h){var W=g.EH("html5-video-player");W&&g.$y(W,"ytp-ad-display-override",h)}; OU6=function(h){if(!h.adAvatar||!g.v(h.adAvatar,SS))return g.Qq(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!h.headline)return g.Qq(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!h.adBadge||!g.v(h.adBadge,g8))return g.Qq(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!h.adButton||!g.v(h.adButton,Dz))return g.Qq(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!h.adInfoRenderer|| !g.v(h.adInfoRenderer,ST))return g.Qq(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;h=h.durationMilliseconds||0;return typeof h!=="number"||h<=0?(g.Qq(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+h)),!1):!0}; w8=function(h,W){W=W===void 0?2:W;g.h1.call(this);this.api=h;this.X=null;this.pR=new aI(this);g.X(this,this.pR);this.W=G17;this.pR.U(this.api,"presentingplayerstatechange",this.I0);this.X=this.pR.U(this.api,"progresssync",this.kd);this.Ep=W;this.Ep===1&&this.kd()}; kV=function(h,W,c){Tp.call(this,h);this.api=h;this.oz=W;this.components={};h=new g.p({D:"div",LM:["video-ads","ytp-ad-module"]});g.X(this,h);Od&&g.he(h.element,"ytp-ads-tiny-mode");this.Y=new Rl(h.element);g.X(this,this.Y);g.ge(this.api,h.element,4);r2(c)&&(c=new g.p({D:"div",LM:["ytp-ad-underlay"]}),g.X(this,c),this.W=new Rl(c.element),g.X(this,this.W),g.ge(this.api,c.element,0));g.X(this,vkv())}; Sv2=function(h,W){h=g.Za(h.components,W.id,null);h==null&&g.Lx(Error("Component not found for element id: "+W.id));return h||null}; g56=function(h){g.K3.call(this,h);var W=this;this.W=null;this.created=!1;this.G=h.B().j("h5_use_refactored_get_ad_break")?new vUh(this.player):new IT(this.player);this.Y=function(){if(W.W!=null)return W.W;var V=new SD7({tp:Ln(W.X).tp,x4:Ln(W.X).x4,L:W.player,zS:Ln(W.X).zS,nM:W.X.X.nM,S5:Ln(W.X).S5,oR:W.X.X.oR});W.W=V.JS;return W.W}; this.X=new VDc(this.player,this,this.G,this.Y);g.X(this,this.X);var c=h.B();!J$(c)||g.$X(c)||J0(c)||(g.X(this,new kV(h,Ln(this.X).oz,Ln(this.X).zS)),g.X(this,new $Lf(h)))}; DLt=function(h){h.created!==h.loaded&&sA("Created and loaded are out of sync")}; hct=function(h){g.K3.prototype.load.call(h);var W=Ln(h.X).zS;try{h.player.getRootNode().classList.add("ad-created")}catch(u){sA(u instanceof Error?u:String(u))}var c=h.player.getVideoData(1),V=c&&c.videoId||"",H=c&&c.getPlayerResponse()||{},B=(H&&H.adPlacements||[]).map(function(u){return u.adPlacementRenderer}),E=((H==null?void 0:H.adSlots)||[]).map(function(u){return g.v(u,hO)}); H=H.playerConfig&&H.playerConfig.daiConfig&&H.playerConfig.daiConfig.enableDai||!1;c&&c.Hi();B=wd2(B,E,W,Ln(h.X).zY);E=c&&c.clientPlaybackNonce||"";c=c&&c.Fn||!1;if(H_(W,!0)&&c){var J;W={};(J=h.player.getVideoData())==null||J.GV("p_cpb",(W.cc=E,W))}J=1E3*h.player.getDuration(1);kQI(h);h.X.X.fX.qv(E,J,c,B.eG,B.hJ,B.eG,H,V)}; kQI=function(h){var W,c;if(c=(W=h.player.getVideoData(1))==null||!W.Fn)W=h.player.B(),c=J$(W)&&!g.Rm(W)&&W.playerStyle==="desktop-polymer";c&&(h=h.player.getInternalApi(),h.addEventListener("updateKevlarOrC3Companion",eBU),h.addEventListener("updateEngagementPanelAction",zBU),h.addEventListener("changeEngagementPanelVisibility",QCL),window.addEventListener("yt-navigate-start",igU))}; hv=function(h,W){W===h.RS&&(h.RS=void 0)}; WU2=function(h){var W=Ln(h.X).Y9,c=W.Y().cA("SLOT_TYPE_PLAYER_BYTES",1);W=Fm(W.SO.get(),1).clientPlaybackNonce;var V=!1;c=g.e(c);for(var H=c.next();!H.done;H=c.next()){H=H.value;var B=H.slotType==="SLOT_TYPE_PLAYER_BYTES"&&H.slotEntryTrigger instanceof Xq?H.slotEntryTrigger.F_:void 0;B&&B===W&&(V&&sA("More than 1 preroll playerBytes slot detected",H),V=!0)}V||J8(Ln(h.X).ZF)}; cS6=function(h){if(h8(Ln(h.X).zS))return!0;var W="";h=g.e(Ln(h.X).S5.ll.keys());for(var c=h.next();!c.done;c=h.next()){c=c.value;if(c.slotType==="SLOT_TYPE_PLAYER_BYTES"&&c.Uf==="core")return!0;W+=c.slotType+" "}Math.random()<.01&&sA("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:W});return!1}; Vll=function(h){h=g.e(Ln(h.X).S5.ll.values());for(var W=h.next();!W.done;W=h.next())if(W.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; p5v=function(h,W,c,V,H,B,E){c=c===void 0?[]:c;V=V===void 0?"":V;H=H===void 0?"":H;var J=Ln(h.X).zS,u=h.player.getVideoData(1);u&&u.getPlayerResponse();u&&u.Hi();c=wd2(W,c,J,Ln(h.X).zY);g9N(Ln(h.X).PV,V,c.eG,c.hJ,W,H,B,E)}; wd2=function(h,W,c,V){W={eG:[],hJ:W};h=g.e(h);for(var H=h.next();!H.done;H=h.next())if((H=H.value)&&H.renderer!=null){var B=H.renderer;if(!c.L.B().j("html5_enable_vod_lasr_with_notify_pacf")){var E=void 0,J=void 0,u=void 0,d=void 0,G=V;g.v((d=B.sandwichedLinearAdRenderer)==null?void 0:d.adVideoStart,MD)?(E=g.v((u=B.sandwichedLinearAdRenderer)==null?void 0:u.adVideoStart,MD),E=JX7(E,G),g.Cx(B.sandwichedLinearAdRenderer.adVideoStart,MD,E)):g.v((J=B.linearAdSequenceRenderer)==null?void 0:J.adStart,MD)&& (u=g.v((E=B.linearAdSequenceRenderer)==null?void 0:E.adStart,MD),E=JX7(u,G),g.Cx(B.linearAdSequenceRenderer.adStart,MD,E))}W.eG.push(H)}return W}; g.WC=function(h){if(typeof DOMParser!="undefined")return K6(new DOMParser,TmN(h),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.cC=function(h){g.N.call(this);this.callback=h;this.X=new rS(0,0,.4,0,.2,1,1,1);this.delay=new g.tj(this.next,window,this);g.X(this,this.delay)}; g.$u6=function(h){var W=h.B();return W.U8&&!W.G&&g.DE(W)?h.isEmbedsShortsMode()?(h=h.Hv(),Math.min(h.width,h.height)>=315):!h.Lp():!1}; g.VO=function(h){g.p.call(this,{D:"div",K:"ytp-more-videos-view",J:{tabIndex:"-1"}});var W=this;this.api=h;this.W=!0;this.G=new g.lX(this);this.X=[];this.suggestionData=[];this.columns=this.containerWidth=this.Z=this.Y=this.scrollPosition=0;this.title=new g.p({D:"h2",K:"ytp-related-title",YN:"{{title}}"});this.previous=new g.p({D:"button",LM:["ytp-button","ytp-previous"],J:{"aria-label":"Mostrar videos sugeridos anteriores"},V:[g.uw()]});this.S=new g.cC(function(c){W.suggestions.element.scrollLeft= -c}); this.next=new g.p({D:"button",LM:["ytp-button","ytp-next"],J:{"aria-label":"Mostrar m\u00e1s videos sugeridos"},V:[g.d7()]});g.X(this,this.G);this.N=h.B().Y;g.X(this,this.title);this.title.kN(this.element);this.suggestions=new g.p({D:"div",K:"ytp-suggestions"});g.X(this,this.suggestions);this.suggestions.kN(this.element);g.X(this,this.previous);this.previous.kN(this.element);this.previous.listen("click",this.MQ,this);g.X(this,this.S);sf6(this);g.X(this,this.next);this.next.kN(this.element);this.next.listen("click", this.x7,this);this.G.U(this.api,"appresize",this.I1);this.G.U(this.api,"fullscreentoggled",this.bE);this.G.U(this.api,"videodatachange",this.onVideoDataChange);this.I1(this.api.Bk().getPlayerSize());this.onVideoDataChange()}; sf6=function(h){for(var W={oC:0};W.oC<16;W={oC:W.oC},++W.oC){var c=new g.p({D:"a",K:"ytp-suggestion-link",J:{href:"{{link}}",target:h.api.B().T,"aria-label":"{{aria_label}}"},V:[{D:"div",K:"ytp-suggestion-image"},{D:"div",K:"ytp-suggestion-overlay",J:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},V:[{D:"div",K:"ytp-suggestion-title",YN:"{{title}}"},{D:"div",K:"ytp-suggestion-author",YN:"{{author_and_views}}"},{D:"div",J:{"data-is-live":"{{is_live}}"},K:"ytp-suggestion-duration", YN:"{{duration}}"}]}]});g.X(h,c);var V=c.vk("ytp-suggestion-link");g.oY(V,"transitionDelay",W.oC/20+"s");h.G.U(V,"click",function(H){return function(B){var E=H.oC;if(h.W){var J=h.suggestionData[E],u=J.sessionData;h.N&&h.api.j("web_player_log_click_before_generating_ve_conversion_params")?(h.api.logClick(h.X[E].element),E=J.gV(),J={},g.YM(h.api,J),E=g.r0(E,J),g.zv(E,h.api,B)):g.eY(B,h.api,h.N,u||void 0)&&h.api.Av(J.videoId,u,J.playlistId)}else B.preventDefault(),document.activeElement.blur()}}(W)); c.kN(h.suggestions.element);h.X.push(c);h.api.createServerVe(c.element,c)}}; H$6=function(h){if(h.api.B().j("web_player_log_click_before_generating_ve_conversion_params"))for(var W=Math.floor(-h.scrollPosition/(h.Y+8)),c=Math.min(W+h.columns,h.suggestionData.length)-1;W<=c;W++)h.api.logVisibility(h.X[W].element,!0)}; g.$O=function(h){var W=h.api.fG()?32:16;W=h.Z/2+W;h.next.element.style.bottom=W+"px";h.previous.element.style.bottom=W+"px";W=h.scrollPosition;var c=h.containerWidth-h.suggestionData.length*(h.Y+8);g.$y(h.element,"ytp-scroll-min",W>=0);g.$y(h.element,"ytp-scroll-max",W<=c)}; E6S=function(h){for(var W=h.suggestionData.length,c=0;c>>0)+"_",H=0;return W}); dN("Symbol.iterator",function(h){if(h)return h;h=Symbol("Symbol.iterator");for(var W="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c0&&c>0;)if(V[--c]!=W[--H])return!1;return H<=0}}); dN("Array.prototype.find",function(h){return h?h:function(W,c){return dLN(this,W,c).gT}}); dN("Array.prototype.entries",function(h){return h?h:function(){return pU(this,function(W,c){return[W,c]})}}); dN("Array.prototype.keys",function(h){return h?h:function(){return pU(this,function(W){return W})}}); dN("String.prototype.startsWith",function(h){return h?h:function(W,c){var V=m7(this,W,"startsWith");W+="";var H=V.length,B=W.length;c=Math.max(0,Math.min(c|0,V.length));for(var E=0;E=B}}); dN("Number.isFinite",function(h){return h?h:function(W){return typeof W!=="number"?!1:!isNaN(W)&&W!==Infinity&&W!==-Infinity}}); dN("String.prototype.repeat",function(h){return h?h:function(W){var c=m7(this,null,"repeat");if(W<0||W>1342177279)throw new RangeError("Invalid count value");W|=0;for(var V="";W;)if(W&1&&(V+=c),W>>>=1)c+=c;return V}}); dN("Object.entries",function(h){return h?h:function(W){var c=[],V;for(V in W)lT(W,V)&&c.push([V,W[V]]);return c}}); dN("Array.from",function(h){return h?h:function(W,c,V){c=c!=null?c:function(J){return J}; var H=[],B=typeof Symbol!="undefined"&&Symbol.iterator&&W[Symbol.iterator];if(typeof B=="function"){W=B.call(W);for(var E=0;!(B=W.next()).done;)H.push(c.call(V,B.value,E++))}else for(B=W.length,E=0;E>>0;if(W===0)return 32;var c=0;(W&4294901760)===0&&(W<<=16,c+=16);(W&4278190080)===0&&(W<<=8,c+=8);(W&4026531840)===0&&(W<<=4,c+=4);(W&3221225472)===0&&(W<<=2,c+=2);(W&2147483648)===0&&c++;return c}}); dN("Number.isNaN",function(h){return h?h:function(W){return typeof W==="number"&&isNaN(W)}}); dN("Array.prototype.values",function(h){return h?h:function(){return pU(this,function(W,c){return c})}}); dN("Array.prototype.fill",function(h){return h?h:function(W,c,V){var H=this.length||0;c<0&&(c=Math.max(0,H+c));if(V==null||V>H)V=H;V=Number(V);V<0&&(V=Math.max(0,H+V));for(c=Number(c||0);c0&&c?c.repeat(Math.ceil(W/c.length)).substring(0,W):"")+V}}); dN("Array.prototype.findIndex",function(h){return h?h:function(W,c){return dLN(this,W,c).s7}}); dN("Promise.prototype.finally",function(h){return h?h:function(W){return this.then(function(c){return Promise.resolve(W()).then(function(){return c})},function(c){return Promise.resolve(W()).then(function(){throw c; })})}}); dN("Math.imul",function(h){return h?h:function(W,c){W=Number(W);c=Number(c);var V=W&65535,H=c&65535;return V*H+((W>>>16&65535)*H+V*(c>>>16&65535)<<16>>>0)|0}}); dN("Math.sign",function(h){return h?h:function(W){W=Number(W);return W===0||isNaN(W)?W:W>0?1:-1}}); dN("WeakSet",function(h){function W(c){this.X=new WeakMap;if(c){c=g.e(c);for(var V;!(V=c.next()).done;)this.add(V.value)}} if(function(){if(!h||!Object.seal)return!1;try{var c=Object.seal({}),V=Object.seal({}),H=new h([c]);if(!H.has(c)||H.has(V))return!1;H.delete(c);H.add(V);return!H.has(c)&&H.has(V)}catch(B){return!1}}())return h; W.prototype.add=function(c){this.X.set(c,!0);return this}; W.prototype.has=function(c){return this.X.has(c)}; W.prototype.delete=function(c){return this.X.delete(c)}; return W}); dN("AggregateError",function(h){function W(c,V){V=Error(V);"stack"in V&&(this.stack=V.stack);this.errors=c;this.message=V.message} if(h)return h;g.n(W,Error);W.prototype.name="AggregateError";return W}); dN("Array.prototype.copyWithin",function(h){function W(c){c=Number(c);return c===Infinity||c===-Infinity?c:c|0} return h?h:function(c,V,H){var B=this.length;c=W(c);V=W(V);H=H===void 0?B:W(H);c=c<0?Math.max(B+c,0):Math.min(c,B);V=V<0?Math.max(B+V,0):Math.min(V,B);H=H<0?Math.max(B+H,0):Math.min(H,B);if(cV;)--H in this?this[--c]=this[H]:delete this[--c];return this}}); dN("Int8Array.prototype.copyWithin",Y5);dN("Uint8Array.prototype.copyWithin",Y5);dN("Uint8ClampedArray.prototype.copyWithin",Y5);dN("Int16Array.prototype.copyWithin",Y5);dN("Uint16Array.prototype.copyWithin",Y5);dN("Int32Array.prototype.copyWithin",Y5);dN("Uint32Array.prototype.copyWithin",Y5);dN("Float32Array.prototype.copyWithin",Y5);dN("Float64Array.prototype.copyWithin",Y5);dN("Array.prototype.at",function(h){return h?h:SD}); dN("Int8Array.prototype.at",Dh);dN("Uint8Array.prototype.at",Dh);dN("Uint8ClampedArray.prototype.at",Dh);dN("Int16Array.prototype.at",Dh);dN("Uint16Array.prototype.at",Dh);dN("Int32Array.prototype.at",Dh);dN("Uint32Array.prototype.at",Dh);dN("Float32Array.prototype.at",Dh);dN("Float64Array.prototype.at",Dh);dN("String.prototype.at",function(h){return h?h:SD}); dN("Array.prototype.findLastIndex",function(h){return h?h:function(W,c){return GQQ(this,W,c).s7}}); dN("Int8Array.prototype.findLastIndex",wN);dN("Uint8Array.prototype.findLastIndex",wN);dN("Uint8ClampedArray.prototype.findLastIndex",wN);dN("Int16Array.prototype.findLastIndex",wN);dN("Uint16Array.prototype.findLastIndex",wN);dN("Int32Array.prototype.findLastIndex",wN);dN("Uint32Array.prototype.findLastIndex",wN);dN("Float32Array.prototype.findLastIndex",wN);dN("Float64Array.prototype.findLastIndex",wN);dN("Number.parseInt",function(h){return h||parseInt});var on,B2,rNT;on=on||{};g.k5=this||self;B2="closure_uid_"+(Math.random()*1E9>>>0);rNT=0;g.rX(qu,Error);qu.prototype.name="CustomError";var FUp;var e4v,ns,tM;e4v=Array.prototype.indexOf?function(h,W){return Array.prototype.indexOf.call(h,W,void 0)}:function(h,W){if(typeof h==="string")return typeof W!=="string"||W.length!=1?-1:h.indexOf(W,0); for(var c=0;c=0;c--)if(c in h&&h[c]===W)return c;return-1}; g.gX=Array.prototype.forEach?function(h,W,c){Array.prototype.forEach.call(h,W,c)}:function(h,W,c){for(var V=h.length,H=typeof h==="string"?h.split(""):h,B=0;B=.3:this.mD>=.5};var AB={w5W:0,Jlz:1},Mk4={NONE:0,RBV:1,epk:2};var bUD="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");nr.prototype.getValue=function(){return this.W}; g.n(jK,nr);jK.prototype.G=function(h){this.W===null&&g.uN(this.Y,h)&&(this.W=h)}; g.n(aJ,nr);aJ.prototype.G=function(h){this.W===null&&typeof h==="number"&&(this.W=h)}; g.n(eK,nr);eK.prototype.G=function(h){this.W===null&&typeof h==="string"&&(this.W=h)};zF.prototype.disable=function(){this.W=!1}; zF.prototype.enable=function(){this.W=!0}; zF.prototype.isEnabled=function(){return this.W}; zF.prototype.reset=function(){this.X={};this.W=!0;this.G={}};var mD=document,Ck=window;var qII=$6(1,!0),Nx=$6(610401301,!1);$6(899588437,!1);var xuu=$6(772657768,!1),l2U=$6(513659523,!1),n66=$6(568333945,!1),hk5=$6(1331761403,!1);$6(651175828,!1);$6(722764542,!1);$6(748402145,!1);$6(748402146,!1);var zg5=$6(748402147,!1);$6(333098724,!1);$6(2147483644,!1);$6(2147483645,!1);$6(2147483646,qII);$6(2147483647,!0);var Xa=!!g.c2("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var PG=String.prototype.trim?function(h){return h.trim()}:function(h){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(h)[1]},BXU=/&/g,E6N=//g,JSN=/"/g,u67=/'/g,duT=/\x00/g,H$l=/[\x00&<>"']/;var me,jfI=g.k5.navigator;me=jfI?jfI.userAgentData||null:null;var Svd=globalThis.trustedTypes,Da;kF.prototype.toString=function(){return this.X+""};V6.prototype.toString=function(){return this.X}; var wdh=new V6("about:invalid#zClosurez");var GxU=Br("tel"),u4Q=Br("sms"),DLQ=[Br("data"),Br("http"),Br("https"),Br("mailto"),Br("ftp"),new Hr(function(h){return/^[^:]*([/?#]|$)/.test(h)})],kQv=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;GA.prototype.toString=function(){return this.X+""};l4.prototype.toString=function(){return this.X+""};zA.prototype.toString=function(){return this.X};var L6={};g.a26=String.prototype.repeat?function(h,W){return h.repeat(W)}:function(h,W){return Array(W+1).join(h)};Xk[" "]=function(){};var pk,Gj,ZiT,ecU,zcc,Qf2,Ya,Od,LUX;g.SN=YF();g.Eb=mL5();g.vp=pr("Edge");g.ez=g.vp||g.Eb;pk=pr("Gecko")&&!(yW(g.TF(),"WebKit")&&!pr("Edge"))&&!(pr("Trident")||pr("MSIE"))&&!pr("Edge");g.Js=yW(g.TF(),"WebKit")&&!pr("Edge");Gj=No();ZiT=l2p();g.Y2=xuL();ecU=b4();zcc=pr("iPad");Qf2=pr("iPod");Ya=TA();Od=yW(g.TF(),"KaiOS"); a:{var i$U="",KUf=function(){var h=g.TF();if(pk)return/rv:([^\);]+)(\)|;)/.exec(h);if(g.vp)return/Edge\/([\d\.]+)/.exec(h);if(g.Eb)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(h);if(g.Js)return/WebKit\/(\S+)/.exec(h);if(g.SN)return/(?:Version)[ \/]?(\S+)/.exec(h)}(); KUf&&(i$U=KUf?KUf[1]:"");if(g.Eb){var so,ASK=g.k5.document;so=ASK?ASK.documentMode:void 0;if(so!=null&&so>parseFloat(i$U)){LUX=String(so);break a}}LUX=i$U}var ecp=LUX,jfv={};var ox,pb;g.Ed=OO();ox=b4()||pr("iPod");pb=pr("iPad");g.gh=pdv();g.Zx=SK();g.G1=gj()&&!TA();var fO5=!g.Eb&&!gj();g.l=g.p6.prototype;g.l.clone=function(){return new g.p6(this.x,this.y)}; g.l.equals=function(h){return h instanceof g.p6&&I0(this,h)}; 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(h,W){this.x*=h;this.y*=typeof W==="number"?W:h;return this};g.l=g.Yu.prototype;g.l.clone=function(){return new g.Yu(this.width,this.height)}; g.l.aspectRatio=function(){return this.width/this.height}; g.l.isEmpty=function(){return!S8(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(h,W){this.width*=h;this.height*=typeof W==="number"?W:h;return this};DQ.prototype.toString=function(){return this.X}; var gF={};new DQ(gF,"");var LUN=/^[a-z][a-z\d-]*$/i,i$7="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),AST="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),CKD=["action","formaction","href"];var ySl={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=ku.prototype;g.l.fJ=function(h){return $S(this.X,h)}; g.l.getElementsByTagName=function(h,W){return(W||this.X).getElementsByTagName(String(h))}; g.l.vk=function(h){return g.EH(h,this.X)}; g.l.setProperties=RY;g.l.createElement=function(h){return db(this.X,h)}; g.l.appendChild=g.qJ;g.l.append=function(h,W){TX4(hs(h),h,arguments,1)}; g.l.canHaveChildren=function(h){if(h.nodeType!=1)return!1;switch(h.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.nk;g.l.getChildren=function(h){return h.children!=void 0?h.children:Array.prototype.filter.call(h.childNodes,function(W){return W.nodeType==1})}; g.l.contains=g.jk;Kk.prototype.now=function(){return 0}; Kk.prototype.W=function(){return 0}; Kk.prototype.G=function(){return 0}; Kk.prototype.X=function(){return 0};g.n(UH,Kk);UH.prototype.now=function(){return As()&&Ck.performance.now?Ck.performance.now():Kk.prototype.now.call(this)}; UH.prototype.W=function(){return As()&&Ck.performance.memory?Ck.performance.memory.totalJSHeapSize||0:Kk.prototype.W.call(this)}; UH.prototype.G=function(){return As()&&Ck.performance.memory?Ck.performance.memory.usedJSHeapSize||0:Kk.prototype.G.call(this)}; UH.prototype.X=function(){return As()&&Ck.performance.memory?Ck.performance.memory.jsHeapSizeLimit||0:Kk.prototype.X.call(this)};var yM7=function(){if(!g.k5.addEventListener||!Object.defineProperty)return!1;var h=!1,W=Object.defineProperty({},"passive",{get:function(){h=!0}}); try{var c=function(){}; g.k5.addEventListener("test",c,W);g.k5.removeEventListener("test",c,W)}catch(V){}return h}();var Pnh=v67("AnimationEnd"),AK=v67("TransitionEnd");g.l=bi.prototype;g.l.getHeight=function(){return this.bottom-this.top}; g.l.clone=function(){return new bi(this.top,this.right,this.bottom,this.left)}; g.l.contains=function(h){return this&&h?h instanceof bi?h.left>=this.left&&h.right<=this.right&&h.top>=this.top&&h.bottom<=this.bottom:h.x>=this.left&&h.x<=this.right&&h.y>=this.top&&h.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(h,W){W=typeof W==="number"?W:h;this.left*=h;this.right*=h;this.top*=W;this.bottom*=W;return this};g.l=g.ts.prototype;g.l.clone=function(){return new g.ts(this.left,this.top,this.width,this.height)}; g.l.contains=function(h){return h instanceof g.p6?h.x>=this.left&&h.x<=this.left+this.width&&h.y>=this.top&&h.y<=this.top+this.height:this.left<=h.left&&this.left+this.width>=h.left+h.width&&this.top<=h.top&&this.top+this.height>=h.top+h.height}; g.l.getSize=function(){return new g.Yu(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(h,W){W=typeof W==="number"?W:h;this.left*=h;this.width*=h;this.top*=W;this.height*=W;return this};var o6v={};var g6D=y_(function(){var h=!1;try{var W=Object.defineProperty({},"passive",{get:function(){h=!0}}); g.k5.addEventListener("test",null,W)}catch(c){}return h});Dul.prototype.isVisible=function(){return sN(mD)===1};var Ia5=HW(function(h){return typeof h==="number"}),pGh=HW(function(h){return typeof h==="string"}),YOT=HW(function(h){return typeof h==="boolean"}),za=HW(function(h){return h!=null&&typeof h==="object"&&typeof h.then==="function"}),QvN=HW(function(h){return typeof h==="function"}),Uu6=HW(function(h){return!!h&&(typeof h==="object"||typeof h==="function")});var ktD={oLz:"allow-forms",ZGk:"allow-modals",rh9:"allow-orientation-lock",iGg:"allow-pointer-lock",yhk:"allow-popups",JhE:"allow-popups-to-escape-sandbox",I1k:"allow-presentation",xhV:"allow-same-origin",Msz:"allow-scripts",ts9:"allow-top-navigation",pBB:"allow-top-navigation-by-user-activation"},VKN=y_(function(){return hRp()});var BjD=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");GX.prototype.Ly=function(h,W,c){h=h+"//"+W+c;var V=uaD(this)-c.length;if(V<0)return"";this.X.sort(function(d,G){return d-G}); c=null;W="";for(var H=0;H=u.length){V-=u.length;h+=u;W=this.G;break}c=c==null?B:c}}V="";c!=null&&(V=""+W+"trn="+c);return h+V};aX.prototype.setInterval=function(h,W){return Ck.setInterval(h,W)}; aX.prototype.clearInterval=function(h){Ck.clearInterval(h)}; aX.prototype.setTimeout=function(h,W){return Ck.setTimeout(h,W)}; aX.prototype.clearTimeout=function(h){Ck.clearTimeout(h)};var RR=void 0,EQ,Yul=typeof TextDecoder!=="undefined",eRd,aaT=typeof String.prototype.isWellFormed==="function",jJd=typeof TextEncoder!=="undefined";var Kek={},UN=null,ABQ=pk||g.Js||typeof g.k5.btoa=="function";var NjU=typeof Uint8Array!=="undefined",yBp=!g.Eb&&typeof btoa==="function",PND=/[-_.]/g,MKp={"-":"+",_:"/",".":"="},MP={};Cs.prototype.isEmpty=function(){return this.X==null}; Cs.prototype.sizeBytes=function(){var h=yI(this);return h?h.length:0}; var Tjk;var XGD=void 0;var NP=typeof Symbol==="function"&&typeof Symbol()==="symbol",CKl=TX("jas",void 0,!0),ri=TX(void 0,"1oa"),CZ=TX(void 0,Symbol()),Ml6=TX(void 0,"0ub"),rkp=TX(void 0,"0ubs"),xJQ=TX(void 0,"0ubsb"),Lqk=TX(void 0,"0actk"),KZ=TX("m_m","btW",!0),lQl=TX(void 0,"vps"),FUU=TX();Math.max.apply(Math,g.rN(Object.values({EOI:1,eBM:2,BiE:4,I$f:8,okN:16,U5k:32,TpV:64,GAW:128,tXO:256,dNI:512,BVO:1024,Ymz:2048,oyI:4096})));var vF4={zs:{value:0,configurable:!0,writable:!0,enumerable:!1}},tK4=Object.defineProperties,Xj=NP?CKl:"zs",Wo,yS6=[];vW(yS6,7);Wo=Object.freeze(yS6);var AI={},oX={},ykN=Object.freeze({}),Yw={};var SI=typeof g.k5.BigInt==="function"&&typeof g.k5.BigInt(0)==="bigint";var bA=HW(function(h){return SI?h>=PK6&&h<=f2U:h[0]==="-"?OrT(h,b$f):OrT(h,TXc)}),b$f=Number.MIN_SAFE_INTEGER.toString(),PK6=SI?BigInt(Number.MIN_SAFE_INTEGER):void 0,TXc=Number.MAX_SAFE_INTEGER.toString(),f2U=SI?BigInt(Number.MAX_SAFE_INTEGER):void 0;var vu4=typeof Uint8Array.prototype.slice==="function",kw=0,hI=0,lr5;var qT=typeof BigInt==="function"?BigInt.asIntN:void 0,RgD=typeof BigInt==="function"?BigInt.asUintN:void 0,eF=Number.isSafeInteger,JI=Number.isFinite,zm=Math.trunc,kFv=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var nuh={};var NX6={g4g:!0};var PX;var j0T,aQ7;var b6d=w9(0),C7={};XM.prototype.init=function(h,W,c,V){var H=V===void 0?{}:V;V=H.jm===void 0?!1:H.jm;H=H.f3===void 0?!1:H.f3;this.jm=V;this.f3=H;h&&(h=N3(h,this.f3),this.W=h.buffer,this.C=h.X,this.Y=W||0,this.G=c!==void 0?this.Y+c:this.W.length,this.X=this.Y)}; XM.prototype.free=function(){this.clear();OW.length<100&&OW.push(this)}; XM.prototype.clear=function(){this.W=null;this.C=!1;this.X=this.G=this.Y=0;this.jm=!1}; XM.prototype.reset=function(){this.X=this.Y}; var OW=[];Sp.prototype.free=function(){this.X.clear();this.W=this.Y=-1;gi.length<100&&gi.push(this)}; Sp.prototype.reset=function(){this.X.reset();this.G=this.X.X;this.W=this.Y=-1}; var gi=[];var SuT,Do5;Go.prototype.length=function(){return this.X.length}; Go.prototype.end=function(){var h=this.X;this.X=[];return h};var eB=jB(),X2X=jB(),tl2=jB(),v6U=jB(),muf=jB(),o6I=jB(),p2U=jB(),I22=jB(),YI2=jB(),O$u=jB(),SI2=jB();aR.prototype.toJSON=function(){return tI(this)}; aR.prototype.Ey=function(h){return JSON.stringify(tI(this,h))}; aR.prototype.clone=function(){var h=this.TV,W=h[Xj]|0;return pZ(this,h,W)?IK(this,h,!0):new this.constructor(oK(h,W,!1))}; aR.prototype[KZ]=AI;aR.prototype.toString=function(){return this.TV.toString()};var Bbl=QX(function(h,W,c,V,H){if(h.W!==2)return!1;wi(h,q3(W,V,c),H);return!0},Hkk),ESp=QX(function(h,W,c,V,H){if(h.W!==2)return!1; wi(h,q3(W,V,c),H);return!0},Hkk),tU=Symbol(),UQ=Symbol(),FL=Symbol(),ZkQ=Symbol(),uWN=Symbol(),LD,ia;var g6l=oR(function(h,W,c){if(h.W!==1)return!1;Yz(W,c,IV(h.X));return!0},OQ,YI2),Du6=oR(function(h,W,c){if(h.W!==1)return!1; h=IV(h.X);Yz(W,c,h===0?void 0:h);return!0},OQ,YI2),w26=oR(function(h,W,c,V){if(h.W!==1)return!1; G0(W,c,V,IV(h.X));return!0},OQ,YI2),ktl=oR(function(h,W,c){if(h.W!==0)return!1; Yz(W,c,vo(h.X));return!0},SB,p2U),hRU=oR(function(h,W,c){if(h.W!==0)return!1; h=vo(h.X);Yz(W,c,h===0?void 0:h);return!0},SB,p2U),We2=oR(function(h,W,c,V){if(h.W!==0)return!1; G0(W,c,V,vo(h.X));return!0},SB,p2U),cBu=oR(function(h,W,c){if(h.W!==0)return!1; Yz(W,c,mu(h.X));return!0},gg,v6U),VKX=oR(function(h,W,c){if(h.W!==0)return!1; h=mu(h.X);Yz(W,c,h===0?void 0:h);return!0},gg,v6U),$x6=oR(function(h,W,c,V){if(h.W!==0)return!1; G0(W,c,V,mu(h.X));return!0},gg,v6U),sJ6=oR(function(h,W,c){if(h.W!==1)return!1; Yz(W,c,p7(h.X));return!0},function(h,W,c){Vkv(h,c,Jkk(W))},I22),HrU=IR(function(h,W,c){if(h.W!==1&&h.W!==2)return!1; W=EW(W,W[Xj]|0,c);if(h.W==2)for(c=mu(h.X)>>>0,c=h.X.X+c;h.X.X>>0);return!0},function(h,W,c){W=ZO(W); W!=null&&W!=null&&(la(h,c,0),rg(h.X,W))},muf),u5=oR(function(h,W,c){if(h.W!==0)return!1; Yz(W,c,mu(h.X));return!0},function(h,W,c){W=Gm(W); W!=null&&(W=parseInt(W,10),la(h,c,0),kAN(h.X,W))},SI2);zyh.prototype.register=function(){Xk(this)};g.n(kz,aR);kz.prototype.G=L_L([0,Du6,hRU,-2,VKX]);var F_D={doV:1,qW:2,j2k:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};Pih.prototype.Z_=function(h){if(typeof h==="string"&&h.length!=0){var W=this.hw;if(W.W){h=h.split("&");for(var c=h.length-1;c>=0;c--){var V=h[c].split("="),H=decodeURIComponent(V[0]);V.length>1?(V=decodeURIComponent(V[1]),V=/^[0-9]+$/g.exec(V)?parseInt(V,10):V):V=1;(H=W.X[H])&&H.G(V)}}}};var d1=null;var s6=g.k5.performance,ZrU=!!(s6&&s6.mark&&s6.measure&&s6.clearMarks),Vu=y_(function(){var h;if(h=ZrU){var W=W===void 0?window:W;if(d1===null){d1="";try{h="";try{h=W.top.location.hash}catch(V){h=W.location.hash}if(h){var c=h.match(/\bdeid=([\d,]+)/);d1=c?c[1]:""}}catch(V){}}W=d1;h=!!W.indexOf&&W.indexOf("1337")>=0}return h}); $R.prototype.disable=function(){this.X=!1;this.events!==this.W.google_js_reporting_queue&&(Vu()&&g.gX(this.events,tkh),this.events.length=0)}; $R.prototype.start=function(h,W){if(!this.X)return null;var c=NbQ()||TbL();h=new X37(h,W,c);W="goog_"+h.label+"_"+h.uniqueId+"_start";s6&&Vu()&&s6.mark(W);return h}; $R.prototype.end=function(h){if(this.X&&typeof h.value==="number"){var W=NbQ()||TbL();h.duration=W-h.value;W="goog_"+h.label+"_"+h.uniqueId+"_end";s6&&Vu()&&s6.mark(W);!this.X||this.events.length>2048||this.events.push(h)}};var vSU=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),lv=/#|$/,OkD=/[?&]($|#)/;gSv.prototype.XZ=function(h,W,c,V,H){H=H||this.Se;try{var B=new GX;B.X.push(1);B.W[1]=ZY("context",h);W.error&&W.meta&&W.id||(W=new LJ(iv(W)));if(W.msg){var E=W.msg.substring(0,512);B.X.push(2);B.W[2]=ZY("msg",E)}var J=W.meta||{};if(this.US)try{this.US(J)}catch(q){}if(V)try{V(J)}catch(q){}V=[J];B.X.push(3);B.W[3]=V;var u=RRN();if(u.W){var d=u.W.url||"";B.X.push(4);B.W[4]=ZY("top",d)}var G={url:u.X.url||""};if(u.X.url){var Z=g.BA(u.X.url);var r=HA(Z[1],null,Z[3],Z[4])}else r="";d=[G,{url:r}];B.X.push(5); B.W[5]=d;frk(this.X,H,B,c)}catch(q){try{frk(this.X,H,{context:"ecmserr",rctx:h,msg:iv(q),url:u&&u.X.url},c)}catch(x){}}return this.y0}; g.n(LJ,bkN);var zL,Qu,e3=new $R;zL=new function(){var h="https:";Ck&&Ck.location&&Ck.location.protocol==="http:"&&(h="http:");this.W=h;this.X=.01}; Qu=new gSv;Ck&&Ck.document&&(Ck.document.readyState=="complete"?w3L():e3.X&&$w(Ck,"load",function(){w3L()}));var Wxl=Date.now(),yu=-1,MG=-1,Jqd,PA=-1,F$=!1;fJ.prototype.equals=function(h,W){return!!h&&(!(W===void 0?0:W)||this.volume==h.volume)&&this.G==h.G&&NJ(this.X,h.X)&&!0};bv.prototype.fJ=function(){return this.S}; bv.prototype.equals=function(h,W){return this.Y.equals(h.Y,W===void 0?!1:W)&&this.S==h.S&&NJ(this.G,h.G)&&NJ(this.N,h.N)&&this.X==h.X&&this.C==h.C&&this.W==h.W&&this.Z==h.Z};var rBX={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},o5={nk:"start",o0:"firstquartile",YK:"midpoint",m9:"thirdquartile",COMPLETE:"complete",ERROR:"error",GD:"metric",PAUSE:"pause",Qa:"resume",Lk:"skip",Rb:"viewable_impression",P8:"mute",Ck:"unmute",Zp:"fullscreen",Ub:"exitfullscreen",jB:"bufferstart",CS:"bufferfinish",iL:"fully_viewable_audible_half_duration_impression",W8:"measurable_impression",bL:"abandon",sb:"engagedview",cg:"impression",qQ:"creativeview",LOADED:"loaded", bNO:"progress",CLOSE:"close",EQ9:"collapse",eJI:"overlay_resize",EyN:"overlay_unmeasurable_impression",V5I:"overlay_unviewable_impression",A2E:"overlay_viewable_immediate_impression",TAH:"overlay_viewable_end_of_session_impression",Fe:"custom_metric_viewable",Q1:"audio_audible",NQ:"audio_measurable",LS:"audio_impression"},aCp="start firstquartile midpoint thirdquartile resume loaded".split(" "),e9U=["start","firstquartile","midpoint","thirdquartile"],d3p=["abandon"],uO={UNKNOWN:-1,nk:0,o0:1,YK:2, m9:3,COMPLETE:4,GD:5,PAUSE:6,Qa:7,Lk:8,Rb:9,P8:10,Ck:11,Zp:12,Ub:13,iL:14,W8:15,bL:16,sb:17,cg:18,qQ:19,LOADED:20,Fe:21,jB:22,CS:23,LS:27,NQ:28,Q1:29};var VIp={CC9:"addEventListener",VXN:"getMaxSize",TVI:"getScreenSize",Alk:"getState",OUI:"getVersion",moz:"removeEventListener",Vtn:"isViewable"};J3N.prototype.update=function(h){h&&h.document&&(this.S=TL(!1,h,this.isMobileDevice),this.X=TL(!0,h,this.isMobileDevice),dPT(this,h),ujT(this,h))};pJ.prototype.cancel=function(){eI().clearTimeout(this.X);this.X=null}; pJ.prototype.schedule=function(){var h=this,W=eI(),c=WA().X.X;this.X=W.setTimeout(hM(c,AM(143,function(){h.W++;h.G.sample()})),c3l())};g.l=Ig.prototype;g.l.z_=function(){return!1}; g.l.initialize=function(){return this.isInitialized=!0}; g.l.zg=function(){return this.X.zV}; g.l.qb=function(){return this.X.XI}; g.l.fail=function(h,W){if(!this.XI||(W===void 0?0:W))this.XI=!0,this.zV=h,this.Z=0,this.X!=this||O6(this)}; g.l.getName=function(){return this.X.CM}; g.l.uR=function(){return this.X.Am()}; g.l.Am=function(){return{}}; g.l.kq=function(){return this.X.Z}; g.l.EM=function(){var h=vA();h.X=TL(!0,this.G,h.isMobileDevice)}; g.l.Vc=function(){ujT(vA(),this.G)}; g.l.Db=function(){return this.Y.X}; g.l.sample=function(){}; g.l.isActive=function(){return this.X.N}; g.l.S4=function(h){var W=this.X;this.X=h.kq()>=this.Z?h:this;W!==this.X?(this.N=this.X.N,O6(this)):this.N!==this.X.N&&(this.N=this.X.N,O6(this))}; g.l.fv=function(h){if(h.W===this.X){var W=!this.Y.equals(h,this.T);this.Y=h;W&&r3d(this)}}; g.l.nQ=function(){return this.T}; g.l.dispose=function(){this.DH=!0}; g.l.gE=function(){return this.DH};g.l=S3.prototype;g.l.observe=function(){return!0}; g.l.unobserve=function(){}; g.l.o5=function(h){this.C=h}; g.l.dispose=function(){if(!this.gE()){var h=this.W;g.QU(h.C,this);h.T&&this.nQ()&&ZsN(h);this.unobserve();this.Pk=!0}}; g.l.gE=function(){return this.Pk}; g.l.uR=function(){return this.W.uR()}; g.l.kq=function(){return this.W.kq()}; g.l.zg=function(){return this.W.zg()}; g.l.qb=function(){return this.W.qb()}; g.l.S4=function(){}; g.l.fv=function(){this.Z5()}; g.l.nQ=function(){return this.DH};g.l=g0.prototype;g.l.kq=function(){return this.X.kq()}; g.l.zg=function(){return this.X.zg()}; g.l.qb=function(){return this.X.qb()}; g.l.create=function(h,W,c){var V=null;this.X&&(V=this.tA(h,W,c),YR(this.X,V));return V}; g.l.T4=function(){return this.DW()}; g.l.DW=function(){return!1}; g.l.init=function(h){return this.X.initialize()?(YR(this.X,this),this.Y=h,!0):!1}; g.l.S4=function(h){h.kq()==0&&this.Y(h.zg(),this)}; g.l.fv=function(){}; g.l.nQ=function(){return!1}; g.l.dispose=function(){this.C=!0}; g.l.gE=function(){return this.C}; g.l.uR=function(){return{}};DB.prototype.add=function(h,W,c){++this.G;h=new xP5(h,W,c);this.X.push(new xP5(h.W,h.X,h.G+this.G/4096));this.W=!0;return this};eGT.prototype.toString=function(){var h="//pagead2.googlesyndication.com//pagead/gen_204",W=kR(this.X);W.length>0&&(h+="?"+W);return h};g.N.prototype.FJ=!1;g.N.prototype.gE=function(){return this.FJ}; g.N.prototype.dispose=function(){this.FJ||(this.FJ=!0,this.dE())}; g.N.prototype[Symbol.dispose]=function(){this.dispose()}; g.N.prototype.addOnDisposeCallback=function(h,W){this.FJ?W!==void 0?h.call(W):h():(this.n9||(this.n9=[]),W&&(h=h.bind(W)),this.n9.push(h))}; g.N.prototype.dE=function(){if(this.n9)for(;this.n9.length;)this.n9.shift()()};var qOu=[0,ktl,Bjl,-1];ca.prototype.update=function(h,W,c){h&&(this.X+=W,this.W+=W,this.Y+=W,this.G=Math.max(this.G,this.Y));if(c===void 0?!h:c)this.Y=0};var LBD=[1,.75,.5,.3,0];V9.prototype.update=function(h,W,c,V,H,B){B=B===void 0?!0:B;W=H?Math.min(h,W):W;for(H=0;H0&&W>=E;E=!(h>0&&h>=E)||c;this.X[H].update(B&&J,V,!B||E)}};R5.prototype.update=function(h,W,c,V){this.S=this.S!=-1?Math.min(this.S,W.mD):W.mD;this.Wk=Math.max(this.Wk,W.mD);this.Pk=this.Pk!=-1?Math.min(this.Pk,W.Ja):W.Ja;this.zV=Math.max(this.zV,W.Ja);this.Ef.update(W.Ja,c.Ja,W.X,h,V);this.Nn+=h;W.mD===0&&(this.CM+=h);this.W.update(W.mD,c.mD,W.X,h,V);c=V||c.mX!=W.mX?c.isVisible()&&W.isVisible():c.isVisible();W=!W.isVisible()||W.X;this.yg.update(c,h,W)}; R5.prototype.Fd=function(){return this.yg.G>=this.Mn};if(mD&&mD.URL){var xxU=mD.URL,laU;if(laU=!!xxU){var nFU;a:{if(xxU){var jJ2=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var Gx=jJ2.exec(decodeURIComponent(xxU));if(Gx){nFU=Gx[1]&&Gx[1].length>1?Gx[1].substring(1):"true";break a}}catch(h){}}nFU=""}laU=nFU.length>0}Qu.y0=!laU};var aaK=new bi(0,0,0,0);var yIN=new bi(0,0,0,0);g.n(l0,g.N);g.l=l0.prototype; g.l.dE=function(){if(this.aD.X){if(this.yw.QY){var h=this.aD.X;typeof h.removeEventListener==="function"&&h.removeEventListener("mouseover",this.yw.QY,VI());this.yw.QY=null}this.yw.Dq&&(h=this.aD.X,typeof h.removeEventListener==="function"&&h.removeEventListener("mouseout",this.yw.Dq,VI()),this.yw.Dq=null)}this.wR&&this.wR.dispose();this.Cy&&this.Cy.dispose();delete this.Vn;delete this.We;delete this.yf;delete this.aD.Zi;delete this.aD.X;delete this.yw;delete this.wR;delete this.Cy;delete this.hw; g.N.prototype.dE.call(this)}; g.l.lR=function(){return this.Cy?this.Cy.X:this.position}; g.l.Z_=function(h){WA().Z_(h)}; g.l.nQ=function(){return!1}; g.l.Ew=function(){return new R5}; g.l.nU=function(){return this.Vn}; g.l.lI=function(h){return T_k(this,h,1E4)}; g.l.FI=function(h,W,c,V,H,B,E){this.HQ||(this.UF&&(h=this.ej(h,c,H,E),V=V&&this.P5.mD>=(this.mX()?.3:.5),this.gX(B,h,V),this.OU=W,h.mD>0&&-1===this.XR&&(this.XR=W),this.vP==-1&&this.Fd()&&(this.vP=W),this.V4==-2&&(this.V4=df(this.lR())?h.mD:-1),this.P5=h),this.We(this))}; g.l.gX=function(h,W,c){this.nU().update(h,W,this.P5,c)}; g.l.KO=function(){return new wX}; g.l.ej=function(h,W,c,V){c=this.KO();c.X=W;W=eI().W;W=sN(mD)===0?-1:W.isVisible()?0:1;c.W=W;c.mD=this.Ds(h);c.mX=this.mX();c.Ja=V;return c}; g.l.Ds=function(h){return this.opacity===0&&iN(this.hw,"opac")===1?0:h}; g.l.mX=function(){return!1}; g.l.Ty=function(){return this.nm||this.Cm}; g.l.uE=function(){CJ()}; g.l.Q5=function(){CJ()}; g.l.i$=function(){return 0}; g.l.Fd=function(){return this.Vn.Fd()}; g.l.L_=function(){var h=this.UF;h=(this.hasCompleted||this.gE())&&!h;var W=WA().W!==2||this.rtO;return this.HQ||W&&h?2:this.Fd()?4:3}; g.l.Kc=function(){return 0};g.jX.prototype.next=function(){return g.ZZ}; g.ZZ={done:!0,value:void 0};g.jX.prototype.WY=function(){return this};g.n(o3Q,wX);var r1=IOv([void 0,1,2,3,4,8,16]),qt=IOv([void 0,4,8,16]),eR2={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Q9("p0",qt),p1:Q9("p1",qt),p2:Q9("p2",qt),p3:Q9("p3",qt),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:z4("mtos1",[0,2,4],!1,qt),mtos2:z4("mtos2",[0,2,4],!1,qt),mtos3:z4("mtos3",[0,2,4],!1,qt),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Q9("a0",qt),a1:Q9("a1",qt),a2:Q9("a2",qt),a3:Q9("a3",qt),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:Q9("c0",qt),c1:Q9("c1",qt),c2:Q9("c2",qt),c3:Q9("c3",qt),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Q9("qmtos",r1),qnc:Q9("qnc",r1),qmv:Q9("qmv",r1),qnv:Q9("qnv",r1), 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:Q9("ss0",qt),ss1:Q9("ss1",qt),ss2:Q9("ss2",qt),ss3:Q9("ss3",qt),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"},zR6=Object.assign({},eR2,{avid:MJ("audio"),avas:"avas",vs:"vs"}),QJI={atos:"atos",avt:z4("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(h,W){return function(c){return c[h]===void 0&&W!==void 0?W:c[h]}}("ss",0), t:"t"};AA.prototype.getValue=function(){return this.W}; AA.prototype.update=function(h,W){h>=32||(this.X&1<=.5;X$(W.volume)&&(this.Y=this.Y!=-1?Math.min(this.Y,W.volume):W.volume,this.N=Math.max(this.N,W.volume));B&&(this.DH+=h,this.T+=H?h:0);this.X.update(W.mD,c.mD,W.X,h,V,H);this.G.update(!0,h);this.C.update(H,h);this.XI.update(c.fullscreen,h);this.Ak.update(H&&!B,h);h=Math.floor(W.mediaTime/1E3);this.mW.update(h,W.isVisible());this.rE.update(h,W.mD>=1);this.Jk.update(h, eX(W))}};wX4.prototype.W=function(h){this.G||(this.X(h)?(h=R9U(this.T,this.Y,h),this.C|=h,h=h==0):h=!1,this.G=h)};g.n(Fw,wX4);Fw.prototype.X=function(){return!0}; Fw.prototype.N=function(){return!1}; Fw.prototype.getId=function(){var h=this,W=dj(o5,function(c){return c==h.Y}); return uO[W].toString()}; Fw.prototype.toString=function(){var h="";this.N()&&(h+="c");this.G&&(h+="s");this.C>0&&(h+=":"+this.C);return this.getId()+h};g.n(y9,Fw);y9.prototype.W=function(h,W){W=W===void 0?null:W;W!=null&&this.S.push(W);Fw.prototype.W.call(this,h)};g.n(Pa,kmp);Pa.prototype.W=function(){return null}; Pa.prototype.G=function(){return[]};g.n(ff,S3);g.l=ff.prototype;g.l.Tb=function(){if(this.element){var h=this.element,W=this.W.X.G;try{try{var c=B9Q(h.getBoundingClientRect())}catch(d){c=new bi(0,0,0,0)}var V=c.right-c.left,H=c.bottom-c.top,B=YIh(h,W),E=B.x,J=B.y;var u=new bi(Math.round(J),Math.round(E+V),Math.round(J+H),Math.round(E))}catch(d){u=aaK.clone()}this.G=u;this.X=qNd(this,this.G)}}; g.l.KB=function(){this.N=this.W.Y.X}; g.l.YX=function(h){var W=iN(this.hw,"od")==1;return FBD(h,this.N,this.element,W)}; g.l.Us=function(){this.timestamp=CJ()}; g.l.Z5=function(){this.Us();this.Tb();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var h=this.element;var W=new g.Yu(h.videoWidth,h.videoHeight);h=this.X;var c=TC(h),V=h.getHeight(),H=W.width;W=W.height;H<=0||W<=0||c<=0||V<=0||(H/=W,W=c/V,h=h.clone(),H>W?(c/=H,V=(V-c)/2,V>0&&(V=h.top+V,h.top=Math.round(V),h.bottom=Math.round(V+c))):(V*=H,c=Math.round((c-V)/2),c>0&&(c=h.left+c,h.left=Math.round(c),h.right=Math.round(c+V))));this.X=h}this.KB(); h=this.X;c=this.N;h=h.left<=c.right&&c.left<=h.right&&h.top<=c.bottom&&c.top<=h.bottom?new bi(Math.max(h.top,c.top),Math.min(h.right,c.right),Math.min(h.bottom,c.bottom),Math.max(h.left,c.left)):new bi(0,0,0,0);c=h.top>=h.bottom||h.left>=h.right?new bi(0,0,0,0):h;h=this.W.Y;W=H=V=0;if((this.X.bottom-this.X.top)*(this.X.right-this.X.left)>0)if(this.YX(c))c=new bi(0,0,0,0);else{V=vA().Y;W=new bi(0,V.height,V.width,0);var B;V=G4(c,(B=this.C)!=null?B:this.X);H=G4(c,vA().X);W=G4(c,W)}B=c.top>=c.bottom|| c.left>=c.right?new bi(0,0,0,0):XW(c,-this.X.left,-this.X.top);og()||(H=V=0);this.T=new bv(h,this.element,this.X,B,V,H,this.timestamp,W)}; g.l.getName=function(){return this.W.getName()};var Lel=new bi(0,0,0,0);g.n(b0,ff);g.l=b0.prototype;g.l.observe=function(){this.Y();return!0}; g.l.fv=function(){ff.prototype.Z5.call(this)}; g.l.Us=function(){}; g.l.Tb=function(){}; g.l.Z5=function(){this.Y();ff.prototype.Z5.call(this)}; g.l.S4=function(h){h=h.isActive();h!==this.Z&&(h?this.Y():(vA().X=new bi(0,0,0,0),this.X=new bi(0,0,0,0),this.N=new bi(0,0,0,0),this.timestamp=-1));this.Z=h};var xO={},RrN=(xO.firstquartile=0,xO.midpoint=1,xO.thirdquartile=2,xO.complete=3,xO);g.n(NF,l0);g.l=NF.prototype;g.l.nQ=function(){return!0}; g.l.i8=function(){return this.Cg==2}; g.l.lI=function(h){return T_k(this,h,Math.max(1E4,this.G/3))}; g.l.FI=function(h,W,c,V,H,B,E){var J=this,u=this.S(this)||{};g.lN(u,H);this.G=u.duration||this.G;this.T=u.isVpaid||this.T;this.CM=u.isYouTube||this.CM;eI();this.Ef=!1;H=Wud(this,W);hr5(this)===1&&(B=H);l0.prototype.FI.call(this,h,W,c,V,u,B,E);this.UH&&this.UH.G&&g.gX(this.N,function(d){d.W(J)})}; g.l.gX=function(h,W,c){l0.prototype.gX.call(this,h,W,c);va(this).update(h,W,this.P5,c);this.Mn=eX(this.P5)&&eX(W);this.zV==-1&&this.rE&&(this.zV=this.nU().G.X);this.ZT.G=0;h=this.Fd();W.isVisible()&&Kf(this.ZT,"vs");h&&Kf(this.ZT,"vw");X$(W.volume)&&Kf(this.ZT,"am");eX(W)?Kf(this.ZT,"a"):Kf(this.ZT,"mut");this.cJ&&Kf(this.ZT,"f");W.W!=-1&&(Kf(this.ZT,"bm"),W.W==1&&(Kf(this.ZT,"b"),eX(W)&&Kf(this.ZT,"umutb")));eX(W)&&W.isVisible()&&Kf(this.ZT,"avs");this.Mn&&h&&Kf(this.ZT,"avw");W.mD>0&&Kf(this.ZT, "pv");mg(this,this.nU().G.X,!0)&&Kf(this.ZT,"gdr");Ba(this.nU().W,1)>=2E3&&Kf(this.ZT,"pmx");this.Ef&&Kf(this.ZT,"tvoff")}; g.l.Ew=function(){return new UK}; g.l.nU=function(){return this.Vn}; g.l.KO=function(){return new o3Q}; g.l.ej=function(h,W,c,V){h=l0.prototype.ej.call(this,h,W,c,V===void 0?-1:V);h.fullscreen=this.cJ;h.paused=this.i8();h.volume=c.volume;X$(h.volume)||(this.uW++,W=this.P5,X$(W.volume)&&(h.volume=W.volume));c=c.currentTime;h.mediaTime=c!==void 0&&c>=0?c:-1;return h}; g.l.Ds=function(h){return vA(),this.cJ?1:l0.prototype.Ds.call(this,h)}; g.l.i$=function(){return 1}; g.l.getDuration=function(){return this.G}; g.l.L_=function(){return this.HQ?2:Vpk(this)?5:this.Fd()?4:3}; g.l.Kc=function(){return this.Ak?this.nU().C.G>=2E3?4:3:2}; g.l.o5=function(h){this.Cy&&this.Cy.o5(h)};var irl=g.Gt();jVh.prototype.reset=function(){this.X=[];this.W=[]}; var SX=jI(jVh);g.n(wf,g0);g.l=wf.prototype;g.l.getName=function(){return(this.W?this.W:this.X).getName()}; g.l.uR=function(){return(this.W?this.W:this.X).uR()}; g.l.kq=function(){return(this.W?this.W:this.X).kq()}; g.l.init=function(h){var W=!1;(0,g.gX)(this.G,function(c){c.initialize()&&(W=!0)}); W&&(this.Y=h,YR(this.X,this));return W}; g.l.dispose=function(){(0,g.gX)(this.G,function(h){h.dispose()}); g0.prototype.dispose.call(this)}; g.l.T4=function(){return tM(this.G,function(h){return h.z_()})}; g.l.DW=function(){return tM(this.G,function(h){return h.z_()})}; g.l.tA=function(h,W,c){return new ff(h,this.X,W,c)}; g.l.fv=function(h){this.W=h.W};var U3U={threshold:[0,.3,.5,.75,1]};g.n(kp,ff);g.l=kp.prototype;g.l.observe=function(){var h=this;this.Wk||(this.Wk=CJ());if(hGv(298,function(){return CrQ(h)}))return!0; this.W.fail("msf");return!1}; g.l.unobserve=function(){if(this.Y&&this.element)try{this.Y.unobserve(this.element),this.Z?(this.Z.unobserve(this.element),this.Z=null):this.S&&(this.S.disconnect(),this.S=null)}catch(h){}}; g.l.Z5=function(){var h=WU(this);h.length>0&&cU(this,h);ff.prototype.Z5.call(this)}; g.l.Tb=function(){}; g.l.YX=function(){return!1}; g.l.KB=function(){}; g.l.uR=function(){var h={};return Object.assign(this.W.uR(),(h.niot_obs=this.Wk,h.niot_cbk=this.XI,h))}; g.l.getName=function(){return"nio"};g.n(Vd,g0);Vd.prototype.getName=function(){return"nio"}; Vd.prototype.DW=function(){return!vA().W&&this.X.X.G.IntersectionObserver!=null}; Vd.prototype.tA=function(h,W,c){return new kp(h,this.X,W,c)};g.n($f,Ig);$f.prototype.Db=function(){return vA().X}; $f.prototype.z_=function(){var h=Fu4();this.Z!==h&&(this.X!=this&&h>this.X.Z&&(this.X=this,O6(this)),this.Z=h);return h==2};sT.prototype.sample=function(){ET(this,gf(),!1)}; sT.prototype.Y=function(){var h=og(),W=CJ();h?(F$||(yu=W,g.gX(SX.X,function(c){var V=c.nU();V.Rz=Cf(V,W,c.Cg!=1)})),F$=!0):(this.S=Ti5(this,W),F$=!1,Jqd=W,g.gX(SX.X,function(c){c.UF&&(c.nU().Z=W)})); ET(this,gf(),!h)}; var HU=jI(sT);var XoQ=null,fR="",CR=!1;var m3v=vL7().Hj,Jb=vL7().gJ;var I47={IrV:"visible",zbE:"audible",vkf:"time",fwg:"timetype"},YWk={visible:function(h){return/^(100|[0-9]{1,2})$/.test(h)}, audible:function(h){return h=="0"||h=="1"}, timetype:function(h){return h=="mtos"||h=="tos"}, time:function(h){return/^(100|[0-9]{1,2})%$/.test(h)||/^([0-9])+ms$/.test(h)}}; poL.prototype.setTime=function(h,W,c){W=="ms"?(this.G=h,this.Y=-1):(this.G=-1,this.Y=h);this.C=c===void 0?"tos":c;return this};g.n(Zk,Fw);Zk.prototype.getId=function(){return this.S}; Zk.prototype.N=function(){return!0}; Zk.prototype.X=function(h){var W=h.nU(),c=h.getDuration();return tM(this.Z,function(V){if(V.X!=void 0)var H=SWl(V,W);else b:{switch(V.C){case "mtos":H=V.W?W.C.G:W.G.X;break b;case "tos":H=V.W?W.C.X:W.G.X;break b}H=0}H==0?V=!1:(V=V.G!=-1?V.G:c!==void 0&&c>0?V.Y*c:-1,V=V!=-1&&H>=V);return V})};g.n(rx,OZp);rx.prototype.X=function(h){var W=new Ypv;W.X=i0(h,eR2);W.W=i0(h,QJI);return W};g.n(qY,Fw);qY.prototype.X=function(h){return Vpk(h)};g.n(xf,kmp);g.n(lO,Fw);lO.prototype.X=function(h){return h.nU().Fd()};g.n(nR,y9);nR.prototype.X=function(h){var W=g.el(this.S,iN(WA().hw,"ovms"));return!h.HQ&&(h.Cg!=0||W)};g.n(je,xf);je.prototype.W=function(){return new nR(this.X)}; je.prototype.G=function(){return[new lO("viewable_impression",this.X),new qY(this.X)]};g.n(a8,b0);a8.prototype.Y=function(){var h=g.c2("ima.admob.getViewability"),W=iN(this.hw,"queryid");typeof h==="function"&&W&&h(W)}; a8.prototype.getName=function(){return"gsv"};g.n(ee,g0);ee.prototype.getName=function(){return"gsv"}; ee.prototype.DW=function(){var h=vA();WA();return h.W&&!1}; ee.prototype.tA=function(h,W,c){return new a8(this.X,W,c)};g.n(zu,b0);zu.prototype.Y=function(){var h=this,W=g.c2("ima.bridge.getNativeViewability"),c=iN(this.hw,"queryid");typeof W==="function"&&c&&W(c,function(V){g.GF(V)&&h.S++;var H=V.opt_nativeViewVisibleBounds||{},B=V.opt_nativeViewHidden;h.X=EwQ(V.opt_nativeViewBounds||{});var E=h.W.Y;E.X=B?Lel.clone():EwQ(H);h.timestamp=V.opt_nativeTime||-1;vA().X=E.X;V=V.opt_nativeVolume;V!==void 0&&(E.volume=V)})}; zu.prototype.getName=function(){return"nis"};g.n(Qd,g0);Qd.prototype.getName=function(){return"nis"}; Qd.prototype.DW=function(){var h=vA();WA();return h.W&&!1}; Qd.prototype.tA=function(h,W,c){return new zu(this.X,W,c)};g.n(LR,Ig);g.l=LR.prototype;g.l.z_=function(){return this.W.MN!=null}; g.l.Am=function(){var h={};this.mW&&(h.mraid=this.mW);this.Pk&&(h.mlc=1);h.mtop=this.W.WeH;this.S&&(h.mse=this.S);this.Nn&&(h.msc=1);h.mcp=this.W.compatibility;return h}; g.l.zl=function(h){var W=g.tN.apply(1,arguments);try{return this.W.MN[h].apply(this.W.MN,W)}catch(c){U6(538,c,.01,function(V){V.method=h})}}; g.l.initialize=function(){var h=this;if(this.isInitialized)return!this.qb();this.isInitialized=!0;if(this.W.compatibility===2)return this.S="ng",this.fail("w"),!1;if(this.W.compatibility===1)return this.S="mm",this.fail("w"),!1;vA().Z=!0;this.G.document.readyState&&this.G.document.readyState=="complete"?k0p(this):u0(this.G,"load",function(){eI().setTimeout(AM(292,function(){return k0p(h)}),100)},292); return!0}; g.l.EM=function(){var h=vA(),W=$nQ(this,"getMaxSize");h.X=new bi(0,W.width,W.height,0)}; g.l.Vc=function(){vA().Y=$nQ(this,"getScreenSize")}; g.l.dispose=function(){WAQ(this);Ig.prototype.dispose.call(this)};var UJL=new function(h,W){this.key=h;this.defaultValue=W===void 0?!1:W;this.valueType="boolean"}("45378663");g.l=KR.prototype;g.l.dj=function(h){nf(h,!1);QVl(h)}; g.l.WS=function(){}; g.l.LA=function(h,W,c,V){var H=this;h=new NF(Ck,h,c?W:-1,7,this.j8(),this.aE());h.OJ=V;TNk(h.hw);Lr(h.hw,"queryid",h.OJ);h.Z_("");tFT(h,function(){return H.jJ.apply(H,g.rN(g.tN.apply(0,arguments)))},function(){return H.Mz.apply(H,g.rN(g.tN.apply(0,arguments)))}); (V=jI(DU).X)&&bZv(h,V);this.G&&(h.o5(this.G),this.G=null);h.aD.Zi&&jI(yqh);return h}; g.l.S4=function(h){switch(h.kq()){case 0:if(h=jI(DU).X)h=h.X,g.QU(h.C,this),h.T&&this.nQ()&&ZsN(h);UT();break;case 2:BU()}}; g.l.fv=function(){}; g.l.nQ=function(){return!1}; g.l.Mz=function(h,W){h.HQ=!0;switch(h.i$()){case 1:JU4(h,W);break;case 2:this.pY(h)}}; g.l.uf=function(h){var W=h.S(h);W&&(W=W.volume,h.Ak=X$(W)&&W>0);H7p(h,0);return pf(h,"start",og())}; g.l.Sp=function(h,W,c){ET(HU,[h],!og());return this.cj(h,W,c)}; g.l.cj=function(h,W,c){return pf(h,c,og())}; g.l.VI=function(h){return XP(h,"firstquartile",1)}; g.l.An=function(h){h.rE=!0;return XP(h,"midpoint",2)}; g.l.lf=function(h){return XP(h,"thirdquartile",3)}; g.l.B6=function(h){var W=XP(h,"complete",4);Xw(h);return W}; g.l.eY=function(h){h.Cg=3;return pf(h,"error",og())}; g.l.T9=function(h,W,c){W=og();if(h.i8()&&!W){var V=h.nU(),H=CJ();V.Z=H}ET(HU,[h],!W);h.i8()&&(h.Cg=1);return pf(h,c,W)}; g.l.wH=function(h,W){W=this.Sp(h,W||{},"skip");Xw(h);return W}; g.l.TO=function(h,W){nf(h,!0);return this.Sp(h,W||{},"fullscreen")}; g.l.Eo=function(h,W){nf(h,!1);return this.Sp(h,W||{},"exitfullscreen")}; g.l.gs=function(h,W,c){W=h.nU();var V=CJ();W.Rz=Cf(W,V,h.Cg!=1);ET(HU,[h],!og());h.Cg==1&&(h.Cg=2);return pf(h,c,og())}; g.l.Oo=function(h){ET(HU,[h],!og());return h.W()}; g.l.Xq=function(h){ET(HU,[h],!og());this.IM(h);Xw(h);return h.W()}; g.l.jJ=function(){}; g.l.pY=function(){}; g.l.IM=function(){}; g.l.Ad=function(){}; g.l.S8=function(){}; g.l.aE=function(){this.X||(this.X=this.S8());return this.X==null?new Pa:new je(this.X)}; g.l.j8=function(){return new rx};g.n(tb,Fw);tb.prototype.X=function(h){return h.Kc()==4};g.n(vU,y9);vU.prototype.X=function(h){h=h.Kc();return h==3||h==4};g.n(mL,xf);mL.prototype.W=function(){return new vU(this.X)}; mL.prototype.G=function(){return[new tb(this.X)]};g.n(o8,OZp);o8.prototype.X=function(h){h&&(h.e===28&&(h=Object.assign({},h,{avas:3})),h.vs===4||h.vs===5)&&(h=Object.assign({},h,{vs:3}));var W=new Ypv;W.X=i0(h,zR6);W.W=i0(h,QJI);return W};ZD4.prototype.W=function(){return g.c2(this.X)};g.n(pR,KR);g.l=pR.prototype;g.l.WS=function(h,W){var c=this,V=jI(DU);if(V.X!=null)switch(V.X.getName()){case "nis":var H=lCD(this,h,W);break;case "gsv":H=xnp(this,h,W);break;case "exc":H=nzQ(this,h)}H||(W.opt_overlayAdElement?H=void 0:W.opt_adElement&&(H=dn7(this,h,W.opt_adElement,W.opt_osdId)));H&&H.i$()==1&&(H.S==g.FW&&(H.S=function(B){return c.Ad(B)}),qQp(this,H,W)); return H}; g.l.Ad=function(h){h.W=0;h.DH=0;if(h.Y=="h"||h.Y=="n"){WA();h.Jk&&(WA(),Tu(this)!="h"&&Tu(this));var W=g.c2("ima.common.getVideoMetadata");if(typeof W==="function")try{var c=W(h.OJ)}catch(H){h.W|=4}else h.W|=2}else if(h.Y=="b")if(W=g.c2("ytads.bulleit.getVideoMetadata"),typeof W==="function")try{c=W(h.OJ)}catch(H){h.W|=4}else h.W|=2;else if(h.Y=="ml")if(W=g.c2("ima.common.getVideoMetadata"),typeof W==="function")try{c=W(h.OJ)}catch(H){h.W|=4}else h.W|=2;else h.W|=1;h.W||(c===void 0?h.W|=8:c===null? h.W|=16:g.GF(c)?h.W|=32:c.errorCode!=null&&(h.DH=c.errorCode,h.W|=64));c==null&&(c={});W=c;h.Z=0;for(var V in rBX)W[V]==null&&(h.Z|=rBX[V]);Go4(W,"currentTime");Go4(W,"duration");X$(c.volume)&&X$()&&(c.volume*=NaN);return c}; g.l.S8=function(){WA();Tu(this)!="h"&&Tu(this);var h=jRd(this);return h!=null?new ZD4(h):null}; g.l.pY=function(h){!h.X&&h.HQ&&NY(this,h,"overlay_unmeasurable_impression")&&(h.X=!0)}; g.l.IM=function(h){h.jU&&(h.Fd()?NY(this,h,"overlay_viewable_end_of_session_impression"):NY(this,h,"overlay_unviewable_impression"),h.jU=!1)}; g.l.jJ=function(){}; g.l.LA=function(h,W,c,V){if(CiQ()){var H=iN(WA().hw,"mm"),B={};(H=(B[cA.k7]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",B[cA.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",B)[H])&&QR4(this,H);this.Y==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&U6(1044,Error())}h=KR.prototype.LA.call(this,h,W,c,V);this.C&&(W=this.N,h.C==null&&(h.C=new v3N),W.X[h.OJ]=h.C,h.C.C=irl);return h}; g.l.dj=function(h){h&&h.i$()==1&&this.C&&delete this.N.X[h.OJ];return KR.prototype.dj.call(this,h)}; g.l.aE=function(){this.X||(this.X=this.S8());return this.X==null?new Pa:this.Y==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new mL(this.X):new je(this.X)}; g.l.j8=function(){return this.Y==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new o8:new rx}; g.l.o5=function(h,W,c,V,H){W=new bi(c,W+V,c+H,W);(h=OK(SX,h))?h.o5(W):this.G=W}; var Kef=KJ(193,iD7,void 0,uL5);g.hS("Goog_AdSense_Lidar_sendVastEvent",Kef);var ABt=AM(194,function(h,W){W=W===void 0?{}:W;h=z9l(jI(pR),h,W);return LAd(h)}); g.hS("Goog_AdSense_Lidar_getViewability",ABt);var UxU=KJ(195,function(){return xxp()}); g.hS("Goog_AdSense_Lidar_getUrlSignalsArray",UxU);var CNK=AM(196,function(){return JSON.stringify(xxp())}); g.hS("Goog_AdSense_Lidar_getUrlSignalsList",CNK);var Unl=x5(["//ep2.adtrafficquality.google/sodar/",""]),CaD=x5(["//tpc.googlesyndication.com/sodar/",""]);g.n(OT,Error);g.n(Dk,g.N);Dk.prototype.GT=function(){return this.wpc.f()}; Dk.prototype.gF=function(h){this.wpc.c(h)}; Dk.prototype.IG=function(h){return this.wpc.m(PaT(h))}; Dk.prototype.N6=function(h){return this.wpc.mws(PaT(h))}; g.n(Se,g.N);Se.prototype.snapshot=function(h){return this.py.s(Object.assign({},h.ma&&{c:h.ma},h.ir&&{s:h.ir},h.Io!==void 0&&{p:h.Io}))}; Se.prototype.EV=function(h){this.py.e(h)}; Se.prototype.e$=function(){return this.py.l()};var tBN;g.n(kf,g.N);kf.prototype.share=function(){if(this.gE())throw Error("E:AD");this.W++;return this}; kf.prototype.dispose=function(){--this.W||g.N.prototype.dispose.call(this)}; tBN=Symbol.dispose;vzT.prototype.rA=function(h,W){this.X.rA("/client_streamz/bg/frs",h,W)}; mnl.prototype.rA=function(h,W,c,V,H,B){this.X.rA("/client_streamz/bg/wrl",h,W,c,V,H,B)}; oz4.prototype.jz=function(h,W){this.X.wA("/client_streamz/bg/ec",h,W)}; pOL.prototype.rA=function(h,W,c){this.X.rA("/client_streamz/bg/el",h,W,c)}; ICl.prototype.jz=function(h,W){this.X.wA("/client_streamz/bg/cec",h,W)}; YQp.prototype.jz=function(h,W){this.X.wA("/client_streamz/bg/po/csc",h,W)}; ODT.prototype.jz=function(h,W){this.X.wA("/client_streamz/bg/po/ctav",h,W)}; SQ4.prototype.jz=function(h,W){this.X.wA("/client_streamz/bg/po/cwsc",h,W)};g.n(gz4,aR);g.n(ce,aR);var RH=[1,2,3];var MKU=[0,RH,ual,$x6,RRX];var FeK=[0,BC,[0,g6l,ktl]];g.n(Vz,aR);var E$=[1,2,3];var yBU=[0,E$,We2,w26,RA,FeK];g.n($7,aR);var PNl=[0,BC,MKU,yBU];var faS=[0,HC];g.n(s$,aR);var brc=[0,HC,-1,EFt];var Tjf=[0,HC,-1,cBu,EFt];g.n(He,aR);var xvD=[1,2,3];var Nj$=[0,xvD,RA,brc,RA,Tjf,RA,faS];g.n(Be,aR);Be.prototype.vG=function(){var h=$L(this,3,LZ,3,!0);IX(h);return h[void 0]};Be.prototype.G=L_L([0,HC,Nj$,JB$,BC,PNl,sJ6,HrU]);g.n(wOd,aR);g.l=JH.prototype;g.l.isEnabled=function(){if(!g.k5.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{b_:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.l.set=function(h,W,c){var V=!1;if(typeof c==="object"){var H=c.FFn;V=c.secure||!1;var B=c.domain||void 0;var E=c.path||void 0;var J=c.b_}if(/[;=\s]/.test(h))throw Error('Invalid cookie name "'+h+'"');if(/[;\r\n]/.test(W))throw Error('Invalid cookie value "'+W+'"');J===void 0&&(J=-1);c=B?";domain="+B:"";E=E?";path="+E:"";V=V?";secure":"";J=J<0?"":J==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+J*1E3)).toUTCString();this.X.cookie=h+"="+W+c+E+J+V+(H!=null?";samesite="+ H:"")}; g.l.get=function(h,W){for(var c=h+"=",V=(this.X.cookie||"").split(";"),H=0,B;H=0;W--)this.remove(h[W])}; var Ac=new JH(typeof document=="undefined"?null:document);d5.prototype.compress=function(h){var W,c,V,H;return g.P(function(B){switch(B.W){case 1:return W=new CompressionStream("gzip"),c=(new Response(W.readable)).arrayBuffer(),V=W.writable.getWriter(),g.F(B,V.write((new TextEncoder).encode(h)),2);case 2:return g.F(B,V.close(),3);case 3:return H=Uint8Array,g.F(B,c,4);case 4:return B.return(new H(B.X))}})}; d5.prototype.isSupported=function(h){return h<1024?!1:typeof CompressionStream!=="undefined"};g.n(Gd,aR);ZP.prototype.setInterval=function(h){this.intervalMs=h;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; ZP.prototype.start=function(){var h=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){h.tick()},this.intervalMs),this.W=this.X())}; ZP.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; ZP.prototype.tick=function(){var h=this;if(this.enabled){var W=Math.max(this.X()-this.W,0);W0?c:void 0));c=k3(c,4,d_(H>0?H:void 0));c=k3(c,5,d_(B>0?B:void 0));H=c.TV;B=H[Xj]|0;c=ps(c,B)?c:pZ(c,H,B)?IK(c,H):new c.constructor(oK(H,B,!0));n7(E,x7,10,c)}E=this.X.clone();c=Date.now().toString();E=k3(E,4,aK(c));h=Q7(E,L2,3,h.slice());V&&(E=new r5,V=k3(E,13,d_(V)),E=new q$, V=n7(E,r5,2,V),E=new Qz,V=n7(E,q$,1,V),V=f7(V,2,9),n7(h,Qz,18,V));W&&FM(h,14,W);return h};g.C2.prototype.W=0;g.C2.prototype.reset=function(){this.X=this.G=this.Y;this.W=0}; g.C2.prototype.getValue=function(){return this.G};g.n(DC,aR);var XGl=wg(DC);g.n(eyp,aR);var l5;l5=new zyh;g.n(Pe,g.N);g.l=Pe.prototype;g.l.dE=function(){yz(this);this.W.stop();this.mW.stop();g.N.prototype.dE.call(this)}; g.l.dispatch=function(h){if(h instanceof L2)this.log(h);else try{var W=new L2,c=h.Ey();var V=y7(W,8,c);this.log(V)}catch(H){f2(this,4,1)}}; g.l.log=function(h){f2(this,2,1);if(this.Nn){h=h.clone();var W=this.yg++;h=FM(h,21,W);this.componentId&&y7(h,26,this.componentId);W=h;var c=DO(W,1);var V=V===void 0?!1:V;var H=typeof c;V=c==null?c:H==="bigint"?String(qT(64,c)):uA(c)?H==="string"?r_(c):V?nZ(c):jF(c):void 0;V==null&&(V=Date.now(),V=Number.isFinite(V)?V.toString():"0",k3(W,1,aK(V)));V=DO(W,15);V!=null&&(typeof V==="bigint"?bA(V)?V=Number(V):(V=qT(64,V),V=bA(V)?Number(V):String(V)):V=uA(V)?typeof V==="number"?jF(V):r_(V):void 0);V!=null|| FM(W,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(V=this.experimentIds.clone(),n7(W,Gd,16,V));f2(this,1,1);W=this.X.length-1E3+1;W>0&&(this.X.splice(0,W),this.Y+=W,f2(this,3,W));this.X.push(h);this.SI||this.W.enabled||this.W.start()}}; g.l.flush=function(h,W){var c=this;if(this.X.length===0)h&&h();else if(this.zV&&this.XI)this.G.W=3,eEL(this);else{var V=Date.now();if(this.Rz>V&&this.DH0&&(c.DH=Date.now(),c.Rz=c.DH+r);r=Z2(CZ);var z;NP&&r&&((z=q.TV[r])==null?void 0:z[175237375])!=null&&b6(Ml6,3);a:{var L=L===void 0?!1:L;if(Z2(FUU)&&Z2(CZ)&&void 0===FUU){z=q.TV;r=z[CZ];if(!r)break a;if(r=r.ao)try{r(z,175237375,NX6);break a}catch(M){QI(M)}}L&&(L=q.TV, (z=Z2(CZ))&&z in L&&(L=L[z])&&delete L[175237375])}L=l5.X?l5.W(q,l5.X,175237375,l5.G):l5.W(q,175237375,null,l5.G);if(L=L===null?void 0:L)L=ir(L,1,-1),L!==-1&&(c.C=new g.C2(L<1?1:L,3E5,.1),c.W.setInterval(c.C.getValue()))}}h&&h();c.N=0},G=function(r,q){var x=lr(B,L2,3); var z=Number(TFN(B,14));g.M$(c.C);c.W.setInterval(c.C.getValue());r===401&&E&&(c.CM=E);z&&(c.Y+=z);q===void 0&&(q=c.isRetryable(r));q&&(c.X=x.concat(c.X),c.SI||c.W.enabled||c.W.start());f2(c,7,1);W&&W("net-send-failed",r);++c.N},Z=function(){c.network&&c.network.send(u,d,G)}; J?J.then(function(r){f2(c,5,H);u.requestHeaders["Content-Encoding"]="gzip";u.requestHeaders["Content-Type"]="application/binary";u.body=r;u.wm=2;Z()},function(){f2(c,6,H); Z()}):Z()}}}}; g.l.isRetryable=function(h){return 500<=h&&h<600||h===401||h===0};bH.prototype.send=function(h,W,c){var V=this,H,B,E,J,u,d,G,Z,r,q;return g.P(function(x){switch(x.W){case 1:return B=(H=V.Kk?new AbortController:void 0)?setTimeout(function(){H.abort()},h.timeoutMillis):void 0,g.Qp(x,2,3),E=Object.assign({},{method:h.requestType, headers:Object.assign({},h.requestHeaders)},h.body&&{body:h.body},h.withCredentials&&{credentials:"include"},{signal:h.timeoutMillis&&H?H.signal:null}),g.F(x,fetch(h.url,E),5);case 5:J=x.X;if(J.status!==200){(u=c)==null||u(J.status);x.bB(3);break}if((d=W)==null){x.bB(7);break}return g.F(x,J.text(),8);case 8:d(x.X);case 7:case 3:g.Pd(x);clearTimeout(B);g.bT(x,0);break;case 2:G=g.CU(x);switch((Z=G)==null?void 0:Z.name){case "AbortError":(r=c)==null||r(408);break;default:(q=c)==null||q(400)}x.bB(3)}})}; bH.prototype.XE=function(){return 4};g.n(Td,g.N);Td.prototype.yG=function(){this.C=!0;return this}; Td.prototype.build=function(){this.network||(this.network=new bH);var h=new Pe({logSource:this.logSource,Gg:this.Gg?this.Gg:REN,sessionIndex:this.sessionIndex,uKk:this.x0,RU:this.Y,SI:!1,yG:this.C,jd:this.jd,network:this.network});g.X(this,h);if(this.W){var W=this.W,c=U$(h.G);y7(c,7,W)}h.S=new d5;this.componentId&&(h.componentId=this.componentId);this.g_&&(h.g_=this.g_);this.pageId&&(h.pageId=this.pageId);this.X&&((c=this.X)?(h.experimentIds||(h.experimentIds=new Gd),W=h.experimentIds,c=c.Ey(),y7(W, 4,c)):h.experimentIds&&k3(h.experimentIds,4));this.G&&(h.zV=h.XI);xGp(h.G);this.network.J5&&this.network.J5(this.logSource);this.network.T3I&&this.network.T3I(h);return h};g.n(N$,g.N);N$.prototype.flush=function(h){h=h||[];if(h.length){for(var W=new wOd,c=[],V=0;V-1?(W=h[E],c||(W.I$=!1)):(W=new CvT(W,this.src,B,!!V,H),W.I$=c,h.push(W));return W}; g.l.remove=function(h,W,c,V){h=h.toString();if(!(h in this.listeners))return!1;var H=this.listeners[h];W=Sx(H,W,c,V);return W>-1?(IH(H[W]),g.zt(H,W),H.length==0&&(delete this.listeners[h],this.X--),!0):!1}; g.l.removeAll=function(h){h=h&&h.toString();var W=0,c;for(c in this.listeners)if(!h||c==h){for(var V=this.listeners[c],H=0;H-1?h[H]:null}; g.l.hasListener=function(h,W){var c=h!==void 0,V=c?h.toString():"",H=W!==void 0;return g.cG(this.listeners,function(B){for(var E=0;E>>0);g.rX(g.Rn,g.N);g.Rn.prototype[AMT]=!0;g.l=g.Rn.prototype;g.l.addEventListener=function(h,W,c,V){g.DP(this,h,W,c,V)}; g.l.removeEventListener=function(h,W,c,V){T0D(this,h,W,c,V)}; g.l.dispatchEvent=function(h){var W=this.HM;if(W){var c=[];for(var V=1;W;W=W.HM)c.push(W),++V}W=this.ob;V=h.type||h;if(typeof h==="string")h=new g.mm(h,W);else if(h instanceof g.mm)h.target=h.target||W;else{var H=h;h=new g.mm(V,W);g.lN(h,H)}H=!0;var B;if(c)for(B=c.length-1;!h.W&&B>=0;B--){var E=h.currentTarget=c[B];H=JF(E,V,!0,h)&&H}h.W||(E=h.currentTarget=W,H=JF(E,V,!0,h)&&H,h.W||(H=JF(E,V,!1,h)&&H));if(c)for(B=0;!h.W&&B0){this.W--;var h=this.X;this.X=h.next;h.next=null}else h=this.G();return h};var Gs;rm.prototype.add=function(h,W){var c=oRU.get();c.set(h,W);this.W?this.W.next=c:this.X=c;this.W=c}; rm.prototype.remove=function(){var h=null;this.X&&(h=this.X,this.X=this.X.next,this.X||(this.W=null),h.next=null);return h}; var oRU=new uZ(function(){return new qd},function(h){return h.reset()}); qd.prototype.set=function(h,W){this.X=h;this.scope=W;this.next=null}; qd.prototype.reset=function(){this.next=this.scope=this.X=null};var xv,lZ=!1,vRv=new rm;pAU.prototype.reset=function(){this.context=this.W=this.G=this.X=null;this.Y=!1}; var IBL=new uZ(function(){return new pAU},function(h){h.reset()}); g.iZ.prototype.then=function(h,W,c){return Wg5(this,dm(typeof h==="function"?h:null),dm(typeof W==="function"?W:null),c)}; g.iZ.prototype.$goog_Thenable=!0;g.l=g.iZ.prototype;g.l.finally=function(h){var W=this;h=dm(h);return new Promise(function(c,V){gRQ(W,function(H){h();c(H)},function(H){h(); V(H)})})}; g.l.Mv=function(h,W){return Wg5(this,null,dm(h),W)}; g.l.catch=g.iZ.prototype.Mv;g.l.cancel=function(h){if(this.X==0){var W=new Fv(h);g.nW(function(){DG7(this,W)},this)}}; g.l.xYV=function(h){this.X=0;an(this,2,h)}; g.l.MLV=function(h){this.X=0;an(this,3,h)}; g.l.H1=function(){for(var h;h=wAL(this);)kLk(this,h,this.X,this.S);this.N=!1}; var s5D=QI;g.rX(Fv,qu);Fv.prototype.name="cancel";g.rX(g.yR,g.Rn);g.l=g.yR.prototype;g.l.enabled=!1;g.l.Fl=null;g.l.setInterval=function(h){this.pw=h;this.Fl&&this.enabled?(this.stop(),this.start()):this.Fl&&this.stop()}; g.l.SyE=function(){if(this.enabled){var h=g.Gt()-this.nL;h>0&&h0&&(this.getStatus(),this.N=setTimeout(this.Xh.bind(this), this.XI)),this.getStatus(),this.T=!0,this.X.send(h),this.T=!1}catch(E){this.getStatus(),j5L(this,E)}}; g.l.Xh=function(){typeof on!="undefined"&&this.X&&(this.Y="Timed out after "+this.XI+"ms, aborting",this.W=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.l.abort=function(h){this.X&&this.G&&(this.getStatus(),this.G=!1,this.C=!0,this.X.abort(),this.C=!1,this.W=h||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),m3(this))}; g.l.dE=function(){this.X&&(this.G&&(this.G=!1,this.C=!0,this.X.abort(),this.C=!1),m3(this,!0));g.vK.Ms.dE.call(this)}; g.l.Ev=function(){this.gE()||(this.Pk||this.T||this.C?aU4(this):this.CXI())}; g.l.CXI=function(){aU4(this)}; g.l.isActive=function(){return!!this.X}; g.l.isComplete=function(){return g.pW(this)==4}; g.l.getStatus=function(){try{return g.pW(this)>2?this.X.status:-1}catch(h){return-1}}; g.l.getResponseHeader=function(h){if(this.X&&this.isComplete())return h=this.X.getResponseHeader(h),h===null?void 0:h}; g.l.getLastError=function(){return typeof this.Y==="string"?this.Y:String(this.Y)};gm.prototype.send=function(h,W,c){W=W===void 0?function(){}:W; c=c===void 0?function(){}:c; lUN(h.url,function(V){V=V.target;In(V)?W(g.Yv(V)):c(V.getStatus())},h.requestType,h.body,h.requestHeaders,h.timeoutMillis,h.withCredentials)}; gm.prototype.XE=function(){return 1};wm.prototype.done=function(){this.logger.Bd(this.event,D9()-this.startTime)}; g.n(kv,kf);g.n(W9,kv);g.l=W9.prototype;g.l.hP=function(){}; g.l.l0=function(){}; g.l.Bd=function(){}; g.l.gi=function(){}; g.l.A7=function(){}; g.l.Py=function(h,W,c,V){return V}; g.l.Mp=function(){}; g.l.JL=function(){}; g.l.x$=function(){}; g.n(c9,kv);g.l=c9.prototype;g.l.update=function(h){this.logger.dispose();this.logger=h}; g.l.l0=function(h){this.logger.l0(h)}; g.l.Bd=function(h,W){this.logger.Bd(h,W)}; g.l.gi=function(h){this.logger.gi(h)}; g.l.A7=function(){this.logger.A7()}; g.l.Py=function(h,W,c,V){return this.logger.Py(h,W,c,V)}; g.l.Mp=function(h){this.logger.Mp(h)}; g.l.JL=function(h){this.logger.JL(h)}; g.l.x$=function(h){this.logger.x$(h)}; g.l.hP=function(h){this.logger.hP(h)}; g.n(Lgv,g.N);g.n(Vr,kv);g.l=Vr.prototype;g.l.hP=function(h){this.metrics.G2H.rA(h,this.ev)}; g.l.l0=function(h){this.metrics.eventCount.jz(h,this.ev)}; g.l.Bd=function(h,W){this.metrics.N1.rA(W,h,this.ev)}; g.l.gi=function(h){this.metrics.errorCount.jz(h,this.ev)}; g.l.Py=function(h,W,c,V){function H(J){if(!B.gE()){var u=D9()-E;B.metrics.vLW.rA(u,h,c,J,W,B.ev)}} var B=this,E=D9();V.then(function(){return void H(0)},function(J){return void H(J instanceof Ts?J.code:-1)}); return V}; g.l.Mp=function(h){this.metrics.bGz.jz(h,this.ev)}; g.l.JL=function(h){this.metrics.le.jz(h,this.ev)}; g.l.x$=function(h){this.metrics.f1W.jz(h,this.ev)}; g.n($Q,Vr);$Q.prototype.A7=function(){ifk(this.X)};g.n(sE,aR);g.n(H9,aR);g.n(B9,aR);var tXD=wg(B9),UFl=function(h){return HW(function(W){return W instanceof h&&!ps(W)})}(B9); B9.messageId="bfkj";g.n(KgT,aR);g.n(wx,aR);g.n(EE,aR);var C0T=wg(EE);g.n(JE,g.N);JE.prototype.snapshot=function(h){if(this.gE())throw Error("Already disposed");this.logger.l0("n");var W=this.logger.share();return this.G.then(function(c){var V=c.ea;return new Promise(function(H){var B=new wm(W,"n");V(function(E){B.done();W.hP(E.length);W.A7();W.dispose();H(E)},[h.ma, h.ir,h.Xe,h.Io])})})}; JE.prototype.Fk=function(h){var W=this;if(this.gE())throw Error("Already disposed");this.logger.l0("n");var c=hE(this.logger,function(){return W.Y([h.ma,h.ir,h.Xe,h.Io])},"n"); this.logger.hP(c.length);this.logger.A7();return c}; JE.prototype.EV=function(h){this.G.then(function(W){var c;(c=W.KDH)==null||c(h)})}; JE.prototype.e$=function(){return this.logger.share()};g.n(GT,aR);g.n(ZD,aR);rl.prototype.XG=function(h){return pa4(this,h,new W9,0)};g.n(qV,g.N);qV.prototype.snapshot=function(h){var W=this;return g.P(function(c){switch(c.W){case 1:if(W.gE())throw Error("Already disposed");if(W.W||W.S){c.bB(2);break}return g.F(c,W.C.promise,2);case 2:if(!W.W){c.bB(4);break}return g.F(c,W.W.snapshot(h),5);case 5:return c.return(c.X);case 4:throw W.S;}})}; qV.prototype.EV=function(h){var W,c;(W=this.W)==null||(c=W.EV)==null||c.call(W,h)}; qV.prototype.handleError=function(h){if(!this.gE()){this.S=h;this.C.resolve();var W,c;(c=(W=this.options).ann)==null||c.call(W,h)}}; qV.prototype.e$=function(){return this.logger.share()}; var OfU={Yhn:432E5,wP:3E5,PP:10,g$:1E4,q1:3E4,Is:3E4,w9g:6E4,k5:1E3,DU:6E4,QB:6E5,Ld:.25,zM:2,maxAttempts:10};var mxU,Vev=(mxU=Math.imul)!=null?mxU:function(h,W){return h*W|0},jc=[196, 200,224,18];a_.prototype.Ey=function(){return String(this.X)+","+this.W.join()}; a_.prototype.Ut=function(h,W){var c=void 0;if(this.W[this.X]!==h){var V=this.W.indexOf(h);V!==-1?(this.W.splice(V,1),V0;)W[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(h%62),h=Math.floor(h/62);return W.join("")}};var qT7;g.n(zT,g.N);zT.prototype.N6=function(h,W){var c=this.IG(h);W==null||W(c);return hE(this.logger,function(){return g.i6(c,2)},this.W)}; qT7=Symbol.dispose;g.n(id,zT);id.prototype.IG=function(h,W){var c=this;this.logger.l0(this.X);++this.C>=this.N&&this.G.resolve();var V=h();h=hE(this.logger,function(){return c.Y(V)},"C"); if(h===void 0)throw new OT(17,"YNJ:Undefined");if(!(h instanceof Uint8Array))throw new OT(18,"ODM:Invalid");W==null||W(h);return h}; g.n(Ke,zT);Ke.prototype.IG=function(){return this.Y}; g.n(AE,zT);AE.prototype.IG=function(){var h=this;return hE(this.logger,function(){return A3(h.Y)},"d")}; AE.prototype.N6=function(){return this.Y}; g.n(UE,zT);UE.prototype.IG=function(){if(this.Y)return this.Y;this.Y=xYQ(this,function(h){return"_"+rbL(h)}); return xYQ(this,function(h){return h})}; g.n(MV,zT);MV.prototype.IG=function(){var h=Math.floor(Date.now()/1E3),W=[Math.random()*255,Math.random()*255],c=W.concat([this.Y&255,this.clientState],[h>>24&255,h>>16&255,h>>8&255,h&255]);h=new Uint8Array(2+c.length);h[0]=34;h[1]=c.length;h.set(c,2);c=h.subarray(2);for(var V=W=W.length;V150))try{this.cache=new JbT(h,this.logger)}catch(W){this.reportError(new OT(22,"GBJ:init",W))}}; g.l.reportError=function(h){this.logger.gi(h.code);this.onError(h);return h}; var j85=function(h){return HW(function(W){if(!Uu6(W))return!1;for(var c=g.e(Object.entries(h)),V=c.next();!V.done;V=c.next()){var H=g.e(V.value);V=H.next().value;H=H.next().value;if(!(V in W)){if(H.Vgn===!0)continue;return!1}if(!H(W[V]))return!1}return!0})}({py:function(h){return HW(function(W){return W instanceof h})}(qV)},"");var WVN=(new Date).getTime();g.n(bd,aR);var oF2=wg(bd);UYl.prototype.getMetadata=function(){return this.metadata};TT.prototype.getMetadata=function(){return this.metadata}; TT.prototype.getStatus=function(){return this.status};NV.prototype.S=function(h,W){W=W===void 0?{}:W;return new UYl(h,this,W)}; NV.prototype.getName=function(){return this.name};var pG2=new NV("/google.internal.waa.v1.Waa/Create",GT,bd,function(h){return h.Ey()},oF2);g.n(XH,aR);var mFN=new NV("/google.internal.waa.v1.Waa/GenerateIT",ZD,XH,function(h){return h.Ey()},wg(XH));var H2N=new Set(["SAPISIDHASH","APISIDHASH"]);g.n(tE,aR);tE.prototype.getValue=function(){var h=DO(this,2);if(Array.isArray(h)||h instanceof aR)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Ho(this,2)};g.n(v9,aR);v9.prototype.getMessage=function(){return Aq(this,2)}; var fkv=wg(v9);mV.prototype.cG=function(h,W){h=="data"?this.G.push(W):h=="metadata"?this.C.push(W):h=="status"?this.N.push(W):h=="end"?this.Y.push(W):h=="error"&&this.W.push(W);return this}; mV.prototype.removeListener=function(h,W){h=="data"?OE(this.G,W):h=="metadata"?OE(this.C,W):h=="status"?OE(this.N,W):h=="end"?OE(this.Y,W):h=="error"&&OE(this.W,W);return this}; mV.prototype.cancel=function(){this.X.abort()}; mV.prototype.cancel=mV.prototype.cancel;mV.prototype.removeListener=mV.prototype.removeListener;mV.prototype.on=mV.prototype.cG;g.n(MeD,Error);g.rX(g.Sc,qKv);g.Sc.prototype.X=function(){var h=new gl(this.Y,this.G);this.W&&h.setCredentialsMode(this.W);return h}; g.Sc.prototype.setCredentialsMode=function(h){this.W=h}; g.rX(gl,g.Rn);g.l=gl.prototype;g.l.open=function(h,W){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Wk=h;this.XI=W;this.readyState=1;DD(this)}; g.l.send=function(h){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.Z.signal.aborted)throw this.abort(),Error("Request was aborted.");this.X=!0;var W={headers:this.T,method:this.Wk,credentials:this.C,cache:void 0,signal:this.Z.signal};h&&(W.body=h);(this.Pk||g.k5).fetch(new Request(this.XI,W)).then(this.IY.bind(this),this.fu.bind(this))}; g.l.abort=function(){this.response=this.responseText="";this.T=new Headers;this.status=0;this.Z.abort();this.G&&this.G.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.X&&this.readyState!=4&&(this.X=!1,wl(this));this.readyState=0}; g.l.IY=function(h){if(this.X&&(this.Y=h,this.W||(this.status=this.Y.status,this.statusText=this.Y.statusText,this.W=h.headers,this.readyState=2,DD(this)),this.X&&(this.readyState=3,DD(this),this.X)))if(this.responseType==="arraybuffer")h.arrayBuffer().then(this.yI.bind(this),this.fu.bind(this));else if(typeof g.k5.ReadableStream!=="undefined"&&"body"in h){this.G=h.body.getReader();if(this.N){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.S=new TextDecoder;bRv(this)}else h.text().then(this.Jn.bind(this),this.fu.bind(this))}; g.l.qz=function(h){if(this.X){if(this.N&&h.value)this.response.push(h.value);else if(!this.N){var W=h.value?h.value:new Uint8Array(0);if(W=this.S.decode(W,{stream:!h.done}))this.response=this.responseText+=W}h.done?wl(this):DD(this);this.readyState==3&&bRv(this)}}; g.l.Jn=function(h){this.X&&(this.response=this.responseText=h,wl(this))}; g.l.yI=function(h){this.X&&(this.response=h,wl(this))}; g.l.fu=function(){this.X&&wl(this)}; g.l.setRequestHeader=function(h,W){this.T.append(h,W)}; g.l.getResponseHeader=function(h){return this.W?this.W.get(h.toLowerCase())||"":""}; g.l.getAllResponseHeaders=function(){if(!this.W)return"";for(var h=[],W=this.W.entries(),c=W.next();!c.done;)c=c.value,h.push(c[0]+": "+c[1]),c=W.next();return h.join("\r\n")}; g.l.setCredentialsMode=function(h){this.C=h}; Object.defineProperty(gl.prototype,"withCredentials",{get:function(){return this.C==="include"}, set:function(h){this.setCredentialsMode(h?"include":"same-origin")}});g.kQ.prototype.toString=function(){var h=[],W=this.C;W&&h.push(Hy(W,Ia6,!0),":");var c=this.X;if(c||W=="file")h.push("//"),(W=this.Z)&&h.push(Hy(W,Ia6,!0),"@"),h.push(g.Ak(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.G,c!=null&&h.push(":",String(c));if(c=this.W)this.X&&c.charAt(0)!="/"&&h.push("/"),h.push(Hy(c,c.charAt(0)=="/"?YOK:OrK,!0));(c=this.Y.toString())&&h.push("?",c);(c=this.N)&&h.push("#",Hy(c,SO6));return h.join("")}; g.kQ.prototype.resolve=function(h){var W=this.clone(),c=!!h.C;c?g.hj(W,h.C):c=!!h.Z;c?W.Z=h.Z:c=!!h.X;c?g.Wy(W,h.X):c=h.G!=null;var V=h.W;if(c)g.cy(W,h.G);else if(c=!!h.W){if(V.charAt(0)!="/")if(this.X&&!this.W)V="/"+V;else{var H=W.W.lastIndexOf("/");H!=-1&&(V=W.W.slice(0,H+1)+V)}H=V;if(H==".."||H==".")V="";else if(g.Mx(H,"./")||g.Mx(H,"/.")){V=UO(H,"/");H=H.split("/");for(var B=[],E=0;E1||B.length==1&&B[0]!="")&&B.pop(), V&&E==H.length&&B.push("")):(B.push(J),V=!0)}V=B.join("/")}else V=H}c?W.W=V:c=h.Y.toString()!=="";c?V8(W,h.Y.clone()):c=!!h.N;c&&(W.N=h.N);return W}; g.kQ.prototype.clone=function(){return new g.kQ(this)}; var Ia6=/[#\/\?@]/g,OrK=/[#\?:]/g,YOK=/[#\?]/g,vfU=/[#\?@]/g,SO6=/#/g;g.l=s5.prototype;g.l.add=function(h,W){RD(this);this.G=null;h=Jj(this,h);var c=this.X.get(h);c||this.X.set(h,c=[]);c.push(W);this.W=this.W+1;return this}; g.l.remove=function(h){RD(this);h=Jj(this,h);return this.X.has(h)?(this.G=null,this.W=this.W-this.X.get(h).length,this.X.delete(h)):!1}; g.l.clear=function(){this.X=this.G=null;this.W=0}; g.l.isEmpty=function(){RD(this);return this.W==0}; g.l.forEach=function(h,W){RD(this);this.X.forEach(function(c,V){c.forEach(function(H){h.call(W,H,V,this)},this)},this)}; g.l.UU=function(){RD(this);for(var h=Array.from(this.X.values()),W=Array.from(this.X.keys()),c=[],V=0;V0?String(h[0]):W}; g.l.toString=function(){if(this.G)return this.G;if(!this.X)return"";for(var h=[],W=Array.from(this.X.keys()),c=0;c>>3;B.G!=1&&B.G!=2&&B.G!=15&&Zy(B,E,J,"unexpected tag");B.X=1;B.W=0;B.Y=0} function c(u){B.Y++;B.Y==5&&u&240&&Zy(B,E,J,"message length too long");B.W|=(u&127)<<(B.Y-1)*7;u&128||(B.X=2,B.Z=0,typeof Uint8Array!=="undefined"?B.C=new Uint8Array(B.W):B.C=Array(B.W),B.W==0&&H())} function V(u){B.C[B.Z++]=u;B.Z==B.W&&H()} function H(){if(B.G<15){var u={};u[B.G]=B.C;B.S.push(u)}B.X=0} for(var B=this,E=h instanceof Array?h:new Uint8Array(h),J=0;J0?h:null};rH.prototype.isInputValid=function(){return this.X===null}; rH.prototype.B9=function(){return this.X}; rH.prototype.z6=function(){return!1}; rH.prototype.parse=function(h){this.X!==null&&gfd(this,h,"stream already broken");var W=null;try{var c=this.G;c.G||STN(c,h,"stream already broken");c.X+=h;var V=Math.floor(c.X.length/4);if(V==0)var H=null;else{try{var B=CNT(c.X.slice(0,V*4))}catch(E){STN(c,c.X,E.message)}c.W+=V*4;c.X=c.X.slice(V*4);H=B}W=H===null?null:this.Y.parse(H)}catch(E){gfd(this,h,E.message)}this.W+=h.length;return W};var DxU={INIT:0,xu:1,Lx:2,mx:3,oe:4,UC:5,STRING:6,D0:7,qk:8,B2:9,eD:10,Ei:11,Bx:12,e6:13,EW:14,VD:15,Z4:16,rN:17,iA:18,bQ:19,Q$:20};g.l=x$.prototype;g.l.isInputValid=function(){return this.C!=3}; g.l.B9=function(){return this.T}; g.l.done=function(){return this.C===2}; g.l.z6=function(){return!1}; g.l.parse=function(h){function W(){for(;r0;)if(x=h[r++], B.Z===4?B.Z=0:B.Z++,!x)break a;if(x==='"'&&!B.S){B.X=V();break}if(x==="\\"&&!B.S&&(B.S=!0,x=h[r++],!x))break;if(B.S)if(B.S=!1,x==="u"&&(B.Z=1),x=h[r++])continue;else break;J.lastIndex=r;x=J.exec(h);if(!x){r=h.length+1;break}r=x.index+1;x=h[x.index];if(!x)break}B.G+=r-z;continue;case u.B2:if(!x)continue;x==="r"?B.X=u.eD:le(B,h,r);continue;case u.eD:if(!x)continue;x==="u"?B.X=u.Ei:le(B,h,r);continue;case u.Ei:if(!x)continue;x==="e"?B.X=V():le(B,h,r);continue;case u.Bx:if(!x)continue;x==="a"?B.X=u.e6: le(B,h,r);continue;case u.e6:if(!x)continue;x==="l"?B.X=u.EW:le(B,h,r);continue;case u.EW:if(!x)continue;x==="s"?B.X=u.VD:le(B,h,r);continue;case u.VD:if(!x)continue;x==="e"?B.X=V():le(B,h,r);continue;case u.Z4:if(!x)continue;x==="u"?B.X=u.rN:le(B,h,r);continue;case u.rN:if(!x)continue;x==="l"?B.X=u.iA:le(B,h,r);continue;case u.iA:if(!x)continue;x==="l"?B.X=V():le(B,h,r);continue;case u.bQ:x==="."?B.X=u.Q$:le(B,h,r);continue;case u.Q$:if("0123456789.eE+-".indexOf(x)!==-1)continue;else r--,B.G--,B.X= V();continue;default:le(B,h,r)}}} function V(){var x=E.pop();return x!=null?x:u.xu} function H(x){B.W>1||(x||(x=Z===-1?B.Y+h.substring(G,r):h.substring(Z,r)),B.XI?B.N.push(x):B.N.push(JSON.parse(x)),Z=r)} for(var B=this,E=B.Wk,J=B.Pk,u=DxU,d=h.length,G=0,Z=-1,r=0;r0?(q=B.N,B.N=[],q):null}return null};nO.prototype.isInputValid=function(){return this.C===null}; nO.prototype.B9=function(){return this.C}; nO.prototype.z6=function(){return!1}; nO.prototype.parse=function(h){function W(u){B.W=6;B.C="The stream is broken @"+B.X+"/"+E+". Error: "+u+". With input:\n";throw Error(B.C);} function c(){B.G=new x$({inf:!0,t6:!0})} function V(u){if(u)for(var d=0;d1)&&W("extra status: "+u);B.N=!0;var d={};d[2]=u[0];B.Y.push(d)}} for(var B=this,E=0;E0?(h=B.Y,B.Y=[],h):null};jE.prototype.BA=function(){return this.X}; jE.prototype.getStatus=function(){return this.C}; jE.prototype.XI=function(h){h=h.target;try{if(h==this.X)a:{var W=g.pW(this.X),c=this.X.W,V=this.X.getStatus(),H=g.Yv(this.X);h=[];if(g.OL(this.X)instanceof Array){var B=g.OL(this.X);B.length>0&&B[0]instanceof Uint8Array&&(this.T=!0,h=B)}if(!(W<3||W==3&&!H&&h.length==0))if(V=V==200||V==206,W==4&&(c==8?aD(this,7):c==7?aD(this,8):V||aD(this,3)),this.W||(this.W=DYN(this.X),this.W==null&&aD(this,5)),this.C>2)eE(this);else{if(h.length>this.G){var E=h.length;c=[];try{if(this.W.z6())for(var J=0;Jthis.G){J=H.slice(this.G);this.G=H.length;try{var d=this.W.parse(J);d!=null&&this.Y&&this.Y(d)}catch(G){aD(this,5);eE(this);break a}}W==4?(H.length!= 0||this.T?aD(this,2):aD(this,4),eE(this)):aD(this,1)}}}catch(G){aD(this,6),eE(this)}};g.l=wU4.prototype;g.l.cG=function(h,W){var c=this.W[h];c||(c=[],this.W[h]=c);c.push(W);return this}; g.l.addListener=function(h,W){this.cG(h,W);return this}; g.l.removeListener=function(h,W){var c=this.W[h];c&&g.QU(c,W);(h=this.X[h])&&g.QU(h,W);return this}; g.l.once=function(h,W){var c=this.X[h];c||(c=[],this.X[h]=c);c.push(W);return this}; g.l.ENB=function(h){var W=this.W.data;W&&kuT(h,W);(W=this.X.data)&&kuT(h,W);this.X.data=[]}; g.l.GwO=function(){switch(this.G.getStatus()){case 1:zi(this,"readable");break;case 5:case 6:case 4:case 7:case 3:zi(this,"error");break;case 8:zi(this,"close");break;case 2:zi(this,"end")}};hhQ.prototype.serverStreaming=function(h,W,c,V){var H=this,B=h.substring(0,h.length-V.name.length);return B57(function(E){var J=E.au,u=E.getMetadata(),d=VxQ(H,!1);u=$$5(H,u,d,B+J.getName());var G=sHl(d,J.W,!0);E=J.X(E.pP);d.send(u,"POST",E);return G},this.tO).call(this,V.S(W,c))};E7k.prototype.create=function(h,W,c){var V=this.X,H=this.W+"/$rpc/google.internal.waa.v1.Waa/Create";W=W||{};c=c===void 0?{}:c;return opD(V,H,h,W,pG2,c)};var Rh4="://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(" "),JHN=/\bocr\b/;var d$7=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(h){throw h;}},{uJE:!0, XhW:!0,W7O:!1,atM:l2U,G0g:n66,YGN:!1,c0V:!1,ltV:!0,hxf:xuu,wj9:!1,ggH:!1,l5O:!1});var ie=null,Aj=!1,QHl=1,aPN=Symbol("SIGNAL"),no={version:0,wGH:0,aU:!1,Qs:void 0,X3:void 0,Dt:void 0,d9:0,mL:void 0,Js:void 0,AJ:!1,Os:!1,kind:"unknown",FN:function(){return!1}, KP:function(){}, wg:function(){}, Eh9:function(){}};var j_=Symbol("UNSET"),aA=Symbol("COMPUTING"),e_=Symbol("ERRORED");Object.assign({},no,{value:j_,aU:!0,error:null,Ik:LO,kind:"computed",FN:function(h){return h.value===j_||h.value===aA}, KP:function(h){if(h.value===aA)throw Error("");var W=h.value;h.value=aA;var c=rHN(h),V=!1;try{var H=h.La();KO(null);V=W!==j_&&W!==e_&&H!==e_&&h.Ik(W,H)}catch(B){H=e_,h.error=B}finally{q$5(h,c)}V?h.value=W:(h.value=H,h.version++)}});var jHN=Object.assign({},no,{Ik:LO,value:void 0,kind:"signal"});Object.assign({},no,{value:j_,aU:!0,error:null,Ik:LO,kind:"linkedSignal",FN:function(h){return h.value===j_||h.value===aA}, KP:function(h){if(h.value===aA)throw Error("");var W=h.value;h.value=aA;var c=rHN(h);try{var V=h.source();var H=h.La(V,W===j_||W===e_?void 0:{source:h.dY9,value:W});h.dY9=V}catch(B){H=e_,h.error=B}finally{q$5(h,c)}W!==j_&&H!==e_&&h.Ik(W,H)?h.value=W:(h.value=H,h.version++)}});Object.assign({},no,{Os:!0,AJ:!1,wg:function(h){h.schedule!==null&&h.schedule(h.JZE)}, c7E:!1,Mcz:function(){}});g.n(y8,g.Rn);y8.prototype.dispose=function(){window.removeEventListener("offline",this.G);window.removeEventListener("online",this.G);this.yN.XV(this.C);delete y8.instance}; y8.prototype.zj=function(){return this.X}; y8.prototype.bV=function(){var h=this;this.C=this.yN.rp(function(){var W;return g.P(function(c){if(c.W==1)return h.X?((W=window.navigator)==null?0:W.onLine)?c.bB(3):g.F(c,Fd(h),3):g.F(c,Fd(h),3);h.bV();g.zQ(c)})},3E4)};g.n(i2l,aR);var wG2=QY4(i2l,[0,u5,qOu,cBu,u5,-2,cBu,ktl]);fO.prototype.set=function(h,W){W=W===void 0?!0:W;0<=h&&h<52&&Number.isInteger(h)&&this.data[h]!==W&&(this.data[h]=W,this.X=-1)}; fO.prototype.get=function(h){return!!this.data[h]};var Ti;g.rX(g.tj,g.N);g.l=g.tj.prototype;g.l.start=function(){this.stop();this.Y=!1;var h=AH7(this),W=U$D(this);h&&!W&&this.W.mozRequestAnimationFrame?(this.X=g.DP(this.W,"MozBeforePaint",this.G),this.W.mozRequestAnimationFrame(null),this.Y=!0):this.X=h&&W?h.call(this.W,this.G):this.W.setTimeout(muk(this.G),20)}; g.l.stop=function(){if(this.isActive()){var h=AH7(this),W=U$D(this);h&&!W&&this.W.mozRequestAnimationFrame?WK(this.X):h&&W?W.call(this.W,this.X):this.W.clearTimeout(this.X)}this.X=null}; g.l.isActive=function(){return this.X!=null}; g.l.aK=function(){this.Y&&this.X&&WK(this.X);this.X=null;this.N.call(this.C,g.Gt())}; g.l.dE=function(){this.stop();g.tj.Ms.dE.call(this)};g.rX(g.oD,g.N);g.l=g.oD.prototype;g.l.Qo=0;g.l.dE=function(){g.oD.Ms.dE.call(this);this.stop();delete this.X;delete this.W}; g.l.start=function(h){this.stop();this.Qo=g.PK(this.G,h!==void 0?h:this.pw)}; g.l.stop=function(){this.isActive()&&g.k5.clearTimeout(this.Qo);this.Qo=0}; g.l.isActive=function(){return this.Qo!=0}; g.l.wB=function(){this.Qo=0;this.X&&this.X.call(this.W)};g.n(g.O5,g.N);g.l=g.O5.prototype;g.l.pH=function(h){this.G=arguments;this.Fl||this.W?this.X=!0:SE(this)}; g.l.stop=function(){this.Fl&&(g.k5.clearTimeout(this.Fl),this.Fl=null,this.X=!1,this.G=null)}; g.l.pause=function(){this.W++}; g.l.resume=function(){this.W--;this.W||!this.X||this.Fl||(this.X=!1,SE(this))}; g.l.dE=function(){g.N.prototype.dE.call(this);this.stop()};g.gH.prototype[Symbol.iterator]=function(){return this}; g.gH.prototype.next=function(){var h=this.X.next();return{value:h.done?void 0:this.W.call(void 0,h.value),done:h.done}};g.rX(g.sb,g.Rn);g.l=g.sb.prototype;g.l.isPlaying=function(){return this.X==1}; g.l.isPaused=function(){return this.X==-1}; g.l.Nw=function(){this.L9("begin")}; g.l.J7=function(){this.L9("end")}; g.l.onFinish=function(){this.L9("finish")}; g.l.onStop=function(){this.L9("stop")}; g.l.L9=function(h){this.dispatchEvent(h)};var kFI=y_(function(){var h=g.Zr("DIV"),W=g.Js?"-webkit":pk?"-moz":null,c="transition:opacity 1s linear;";W&&(c+=W+"-transition:opacity 1s linear;");W=Uul({style:c});if(h.nodeType===1&&/^(script|style)$/i.test(h.tagName))throw Error("");h.innerHTML=rF(W);return g.IY(h.firstChild,"transition")!=""});g.rX(HD,g.sb);g.l=HD.prototype;g.l.play=function(){if(this.isPlaying())return!1;this.Nw();this.L9("play");this.startTime=g.Gt();this.X=1;if(kFI())return g.oY(this.W,this.N),this.G=g.PK(this.yqH,void 0,this),!0;this.wT(!1);return!1}; g.l.yqH=function(){g.WW(this.W);Fm7(this.W,this.S);g.oY(this.W,this.Y);this.G=g.PK((0,g.JS)(this.wT,this,!1),this.C*1E3)}; g.l.stop=function(){this.isPlaying()&&this.wT(!0)}; g.l.wT=function(h){g.oY(this.W,"transition","");g.k5.clearTimeout(this.G);g.oY(this.W,this.Y);this.endTime=g.Gt();this.X=0;if(h)this.onStop();else this.onFinish();this.J7()}; g.l.dE=function(){this.stop();HD.Ms.dE.call(this)}; g.l.pause=function(){};var PHp={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0,"var":!0};BD("Element","attributes")||BD("Node","attributes");BD("Element","innerHTML")||BD("HTMLElement","innerHTML");BD("Node","nodeName");BD("Node","nodeType");BD("Node","parentNode");BD("Node","childNodes");BD("HTMLElement","style")||BD("Element","style");BD("HTMLStyleElement","sheet");var txp=b2N("getPropertyValue"),v7D=b2N("setProperty");BD("Element","namespaceURI")||BD("Node","namespaceURI");var Xep={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var IP5,BX$,peD,o7l,Y$k;IP5=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]");BX$=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.hgU=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.Rr=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]");peD=/^http:\/\/.*/;g.WqK=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");o7l=/\s+/;Y$k=/[\d\u06f0-\u06f9]/;u2.prototype.WY=function(){return new dS(this.W())}; u2.prototype[Symbol.iterator]=function(){return new G$(this.W())}; u2.prototype.X=function(){return new G$(this.W())}; g.n(dS,g.jX);dS.prototype.next=function(){return this.W.next()}; dS.prototype[Symbol.iterator]=function(){return new G$(this.W)}; dS.prototype.X=function(){return new G$(this.W)}; g.n(G$,u2);G$.prototype.next=function(){return this.G.next()};rS.prototype.clone=function(){return new rS(this.X,this.S,this.G,this.C,this.Y,this.N,this.W,this.Z)}; rS.prototype.equals=function(h){return this.X==h.X&&this.S==h.S&&this.G==h.G&&this.C==h.C&&this.Y==h.Y&&this.N==h.N&&this.W==h.W&&this.Z==h.Z};l2.prototype.clone=function(){return new l2(this.start,this.end)};(function(){if(ZiT){var h=/Windows NT ([0-9.]+)/;return(h=h.exec(g.TF()))?h[1]:"0"}return Gj?(h=/1[0|1][_.][0-9_.]+/,(h=h.exec(g.TF()))?h[0].replace(/_/g,"."):"10"):g.Y2?(h=/Android\s+([^\);]+)(\)|;)/,(h=h.exec(g.TF()))?h[1]:""):ecU||zcc||Qf2?(h=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(h=h.exec(g.TF()))?h[1].replace(/_/g,"."):""):""})();var S$l=function(){if(g.Ed)return nc(/Firefox\/([0-9.]+)/);if(g.Eb||g.vp||g.SN)return ecp;if(g.Zx){if(TA()||No()){var h=nc(/CriOS\/([0-9.]+)/);if(h)return h}return nc(/Chrome\/([0-9.]+)/)}if(g.G1&&!TA())return nc(/Version\/([0-9.]+)/);if(ox||pb){if(h=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.TF()))return h[1]+"."+h[2]}else if(g.gh)return(h=nc(/Android\s+([0-9.]+)/))?h:nc(/Version\/([0-9.]+)/);return""}();g.rX(g.ar,g.N);g.l=g.ar.prototype;g.l.subscribe=function(h,W,c){var V=this.W[h];V||(V=this.W[h]=[]);var H=this.N;this.X[H]=h;this.X[H+1]=W;this.X[H+2]=c;this.N=H+3;V.push(H);return H}; g.l.unsubscribe=function(h,W,c){if(h=this.W[h]){var V=this.X;if(h=h.find(function(H){return V[H+1]==W&&V[H+2]==c}))return this.IF(h)}return!1}; g.l.IF=function(h){var W=this.X[h];if(W){var c=this.W[W];this.Y!=0?(this.G.push(h),this.X[h+1]=function(){}):(c&&g.QU(c,h),delete this.X[h],delete this.X[h+1],delete this.X[h+2])}return!!W}; g.l.publish=function(h,W){var c=this.W[h];if(c){var V=Array(arguments.length-1),H=arguments.length,B;for(B=1;B0&&this.Y==0)for(;c=this.G.pop();)this.IF(c)}}return B!=0}return!1}; g.l.clear=function(h){if(h){var W=this.W[h];W&&(W.forEach(this.IF,this),delete this.W[h])}else this.X.length=0,this.W={}}; g.l.dE=function(){g.ar.Ms.dE.call(this);this.clear();this.G.length=0};g.eQ.prototype.set=function(h,W){W===void 0?this.X.remove(h):this.X.set(h,g.Nd(W))}; g.eQ.prototype.get=function(h){try{var W=this.X.get(h)}catch(c){return}if(W!==null)try{return JSON.parse(W)}catch(c){throw"Storage: Invalid value was encountered";}}; g.eQ.prototype.remove=function(h){this.X.remove(h)};g.rX(z$,g.eQ);z$.prototype.set=function(h,W){z$.Ms.set.call(this,h,weD(W))}; z$.prototype.W=function(h){h=z$.Ms.get.call(this,h);if(h===void 0||h instanceof Object)return h;throw"Storage: Invalid value was encountered";}; z$.prototype.get=function(h){if(h=this.W(h)){if(h=h.data,h===void 0)throw"Storage: Invalid value was encountered";}else h=void 0;return h};g.rX(Q$,z$);Q$.prototype.set=function(h,W,c){if(W=weD(W)){if(c){if(c=c.length)return g.ZZ;var H=c.key(W++);if(h)return g.a5(H);H=c.getItem(H);if(typeof H!=="string")throw"Storage mechanism: Invalid value was encountered";return g.a5(H)}; return V}; g.l.clear=function(){Ae(this);this.X.clear()}; g.l.key=function(h){Ae(this);return this.X.key(h)};g.rX(Ub,Kc);g.rX(W3d,Kc);g.rX(Cc,i2);Cc.prototype.set=function(h,W){this.W.set(this.X+h,W)}; Cc.prototype.get=function(h){return this.W.get(this.X+h)}; Cc.prototype.remove=function(h){this.W.remove(this.X+h)}; Cc.prototype.WY=function(h){var W=this.W[Symbol.iterator](),c=this,V=new g.jX;V.next=function(){var H=W.next();if(H.done)return H;for(H=H.value;H.slice(0,c.X.length)!=c.X;){H=W.next();if(H.done)return H;H=H.value}return g.a5(h?H.slice(c.X.length):c.W.get(H))}; return V};FS.prototype.getValue=function(){return this.W}; FS.prototype.clone=function(){return new FS(this.X,this.W)};g.l=y$.prototype;g.l.Ut=function(h,W){var c=this.X;c.push(new FS(h,W));h=c.length-1;W=this.X;for(c=W[h];h>0;){var V=h-1>>1;if(W[V].X>c.X)W[h]=W[V],h=V;else break}W[h]=c}; g.l.remove=function(){var h=this.X,W=h.length,c=h[0];if(!(W<=0)){if(W==1)h.length=0;else{h[0]=h.pop();h=0;W=this.X;for(var V=W.length,H=W[h];h>1;){var B=h*2+1,E=h*2+2;B=EH.X)break;W[h]=W[B];h=B}W[h]=H}return c.getValue()}}; g.l.No=function(){for(var h=this.X,W=[],c=h.length,V=0;V>>16&65535|0;for(var B;c!==0;){B=c>2E3?2E3:c;c-=B;do H=H+W[V++]|0,h=h+H|0;while(--B);H%=65521;h%=65521}return H|h<<16|0};for(var RW={},zx,H6$=[],QO=0;QO<256;QO++){zx=QO;for(var BF$=0;BF$<8;BF$++)zx=zx&1?3988292384^zx>>>1:zx>>>1;H6$[QO]=zx}RW=function(h,W,c,V){c=V+c;for(h^=-1;V>>8^H6$[(h^W[V])&255];return h^-1};var ky={};ky={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 Ir=[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],SQ=[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],iW7=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],rFU=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Vm=Array(576);T$(Vm);var $Z=Array(60);T$($Z);var Ob=Array(512);T$(Ob);var pc=Array(256);T$(pc);var Yy=Array(29);T$(Yy);var gS=Array(30);T$(gS);var zXl,Qnl,L3T,eXd=!1;var Z3;Z3=[new G7(0,0,0,0,function(h,W){var c=65535;for(c>h.o3-5&&(c=h.o3-5);;){if(h.yA<=1){Jt(h);if(h.yA===0&&W===0)return 1;if(h.yA===0)break}h.zz+=h.yA;h.yA=0;var V=h.vv+c;if(h.zz===0||h.zz>=V)if(h.yA=h.zz-V,h.zz=V,s_(h,!1),h.SK.IT===0)return 1;if(h.zz-h.vv>=h.P3-262&&(s_(h,!1),h.SK.IT===0))return 1}h.Ut=0;if(W===4)return s_(h,!0),h.SK.IT===0?3:4;h.zz>h.vv&&s_(h,!1);return 1}), new G7(4,4,8,4,u$),new G7(4,5,16,8,u$),new G7(4,6,32,32,u$),new G7(4,4,16,16,dO),new G7(8,16,32,32,dO),new G7(8,16,128,128,dO),new G7(8,32,128,256,dO),new G7(32,128,258,1024,dO),new G7(32,258,258,4096,dO)];var a9N={};a9N=function(){this.input=null;this.A$=this.zr=this.Ws=0;this.output=null;this.Px=this.IT=this.NR=0;this.msg="";this.state=null;this.Uc=2;this.vV=0};var K3D=Object.prototype.toString; rO.prototype.push=function(h,W){var c=this.SK,V=this.options.chunkSize;if(this.ended)return!1;var H=W===~~W?W:W===!0?4:0;typeof h==="string"?c.input=$d5(h):K3D.call(h)==="[object ArrayBuffer]"?c.input=new Uint8Array(h):c.input=h;c.Ws=0;c.zr=c.input.length;do{c.IT===0&&(c.output=new b2.PE(V),c.NR=0,c.IT=V);h=jnN(c,H);if(h!==1&&h!==0)return this.J7(h),this.ended=!0,!1;if(c.IT===0||c.zr===0&&(H===4||H===2))if(this.options.to==="string"){var B=b2.rD(c.output,c.NR);W=B;B=B.length;if(B<65537&&(W.subarray&& s0X||!W.subarray))W=String.fromCharCode.apply(null,b2.rD(W,B));else{for(var E="",J=0;J0||c.IT===0)&&h!==1);if(H===4)return(c=this.SK)&&c.state?(V=c.state.status,V!==42&&V!==69&&V!==73&&V!==91&&V!==103&&V!==113&&V!==666?h=ht(c,-2):(c.state=null,h=V===113?ht(c,-3):0)):h=-2,this.J7(h),this.ended=!0,h===0;H===2&&(this.J7(0),c.IT=0);return!0}; rO.prototype.J7=function(h){h===0&&(this.result=this.options.to==="string"?this.chunks.join(""):b2.UD(this.chunks));this.chunks=[];this.err=h;this.msg=this.SK.msg};var xZ="@@redux/INIT"+qU(),yFd="@@redux/REPLACE"+qU();var PZl=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Eu$=[0,dxu,-3,Jv];g.n(NmU,aR);var mjU=QY4(NmU,[0,u5,GFf,HC,dxu,HC,-1,Jv,dxu,Jv,-1,u5,Jv,GFf,BC,Eu$,HC,-1,Jv]);var XK5=-1153622207;var VPD=new g.jn("adInfoDialogEndpoint");var Px7=new g.jn("adPingingEndpoint");var cWp=new g.jn("crossDeviceProgressCommand");var eT=new g.jn("actionCompanionAdRenderer");var I1=new g.jn("adActionInterstitialRenderer");var Rgl=new g.jn("adDurationRemainingRenderer");var ST=new g.jn("adHoverTextButtonRenderer");var W6U=new g.jn("adInfoDialogRenderer");var MD=new g.jn("adMessageRenderer");var gV=new g.jn("adPreviewRenderer");var QA=new g.jn("adsEngagementPanelRenderer");var UEv=new g.jn("dismissablePanelTextPortraitImageRenderer");var KCh=new g.jn("adsEngagementPanelSectionListViewModel");var Jkf=new g.jn("flyoutCtaRenderer");var zG=new g.jn("imageCompanionAdRenderer");var o1=new g.jn("instreamAdPlayerOverlayRenderer");var iU$=new g.jn("instreamSurveyAdBackgroundImageRenderer");var Oi=new g.jn("instreamSurveyAdPlayerOverlayRenderer");var fa=new g.jn("instreamSurveyAdRenderer"),Yt=new g.jn("instreamSurveyAdSingleSelectQuestionRenderer"),Ic=new g.jn("instreamSurveyAdMultiSelectQuestionRenderer"),Lo=new g.jn("instreamSurveyAdAnswerRenderer"),uk6=new g.jn("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var yA=new g.jn("instreamVideoAdRenderer");var dot=new g.jn("textOverlayAdContentRenderer"),GAU=new g.jn("enhancedTextOverlayAdContentRenderer"),Z6U=new g.jn("imageOverlayAdContentRenderer");var p5=new g.jn("playerOverlayLayoutRenderer");var Yn=new g.jn("videoInterstitialButtonedCenteredLayoutRenderer");var Php=new g.jn("aboveFeedAdLayoutRenderer");var fjl=new g.jn("belowPlayerAdLayoutRenderer");var ymL=new g.jn("inPlayerAdLayoutRenderer");var NZ=new g.jn("playerBytesAdLayoutRenderer");var pa=new g.jn("playerBytesSequenceItemAdLayoutRenderer");var oc=new g.jn("playerUnderlayAdLayoutRenderer");var Ps=new g.jn("adIntroRenderer");var MZ=new g.jn("playerBytesSequentialLayoutRenderer");var ZPp=new g.jn("slidingTextPlayerOverlayRenderer");var bz=new g.jn("surveyTextInterstitialRenderer");var XU=new g.jn("videoAdTrackingRenderer");var Q2N=new g.jn("videoInterstitialCenteredLayoutViewModel");var rkU=new g.jn("simpleAdBadgeRenderer");var aO=new g.jn("skipAdRenderer"),quU=new g.jn("skipButtonRenderer");var hO=new g.jn("adSlotRenderer");var vs=new g.jn("squeezebackPlayerSidePanelRenderer");var xoU=new g.jn("timedPieCountdownRenderer");var SS=new g.jn("adAvatarViewModel");var g8=new g.jn("adBadgeViewModel");var Dz=new g.jn("adButtonViewModel");var lQ6=new g.jn("adDetailsLineViewModel");var nu2=new g.jn("adDisclosureBannerViewModel");var j0K=new g.jn("adPodIndexViewModel");var aQU=new g.jn("imageBackgroundViewModel");var eg2=new g.jn("adGridCardCollectionViewModel");var zg6=new g.jn("adGridCardTextViewModel");var Q0U=new g.jn("adPreviewViewModel");var Lqf=new g.jn("playerAdAvatarLockupCardButtonedViewModel");var i66=new g.jn("skipAdButtonViewModel");var KqX=new g.jn("skipAdViewModel");var Akc=new g.jn("timedPieCountdownViewModel");var Uou=new g.jn("visitAdvertiserLinkViewModel");var La=new g.jn("bannerImageLayoutViewModel");var iz=new g.jn("topBannerImageTextIconButtonedLayoutViewModel");var Ka=new g.jn("adsEngagementPanelLayoutViewModel");var mE=new g.jn("displayUnderlayTextGridCardsLayoutViewModel");g.Is=new g.jn("browseEndpoint");var C4I=new g.jn("confirmDialogEndpoint");var mwN=new g.jn("commandContext");var qBN=new g.jn("rawColdConfigGroup");var rc5=new g.jn("rawHotConfigGroup");g.JW=new g.jn("commandExecutorCommand");g.n(vvN,aR);var mXQ={Z9W:0,EkM:1,G3z:32,fSH:61,NJk:67,DLV:103,zXI:86,aS9:42,YUg:60,T6H:62,vhV:73,hXf:76,k3E:88,QLk:90,HnE:99,XjB:98,LaB:100,P$z:102,nhO:41,mLN:69,ghk:70,C$f:71,Z$k:2,r2B:27,ANDROID:3,ELI:54,Vsz:14,Guk:91,TSf:55,Ahg:24,OGB:20,wBB:18,lcE:21,X5I:104,dBI:30,vQz:29,fcM:28,Mfn:101,bwz:34,YJV:36,u2k:38,IOS:5,FLO:15,Jak:92,KLk:40,Uqk:25,oOB:17,Zg9:19,raO:64,igM:66,caM:26,xqk:22,MtH:33,ttf:68,pRM:35,yag:53,I8g:37,sDk:39,H9z:7,nkE:57,mNE:43,C8V:59,gk9:93,POM:74,jOk:75,SON:85,R5g:65,F_O:80,K_N:8,L_n:10, UNI:58,sO9:63,qOn:72,hbg:23,RXE:11,qUB:13,p5f:12,N6f:16,Waf:56,bnN:31,KAn:77,w3n:84,dLk:87,l8M:89,uVE:94,Q2k:95};g.n(aW,aR);aW.prototype.B1=function(){return Aq(this,3)}; aW.prototype.uS=function(){return Aq(this,5)}; aW.prototype.WU=function(h){return y7(this,5,h)};g.n(en,aR);g.n(mdv,aR);g.n(z7,aR);g.l=z7.prototype;g.l.getDeviceId=function(){return Aq(this,6)}; g.l.bx=function(h){var W=$L(this,9,Gm,3,!0);IX(W,h);return W[h]}; g.l.getPlayerType=function(){return UW(this,36)}; g.l.setHomeGroupInfo=function(h){return n7(this,mdv,81,h)}; g.l.clearLocationPlayabilityToken=function(){return k3(this,89)};g.n(Qm,aR);Qm.prototype.getValue=function(){return Aq(this,Z4(this,GNl,2))}; var GNl=[2,3,4,5,6];g.n(Lu,aR);Lu.prototype.setTrackingParams=function(h){return k3(this,1,mxp(h,!1))};g.n(i$,aR);g.n(Ku,aR);Ku.prototype.bx=function(h){var W=$L(this,5,ZO,3,!0);IX(W,h);return W[h]};g.n(At,aR);At.prototype.getToken=function(){return M3(this,2)}; At.prototype.setToken=function(h){return y7(this,2,h)};g.n(U_,aR);U_.prototype.setSafetyMode=function(h){return f7(this,5,h)};g.n(Cu,aR);Cu.prototype.y9=function(h){return n7(this,z7,1,h)};var wV=new g.jn("thumbnailLandscapePortraitRenderer");g.M8I=new g.jn("changeEngagementPanelVisibilityAction");var MPv=new g.jn("continuationCommand");g.Fqc=new g.jn("openPopupAction");g.i5=new g.jn("webCommandMetadata");var ltQ=new g.jn("metadataBadgeRenderer");var CC4=new g.jn("signalServiceEndpoint");var Kx=new g.jn("innertubeCommand");var Zg4=new g.jn("loggingDirectives");var KVp={RpO:"EMBEDDED_PLAYER_MODE_UNKNOWN",ClH:"EMBEDDED_PLAYER_MODE_DEFAULT",SrW:"EMBEDDED_PLAYER_MODE_PFP",jxW:"EMBEDDED_PLAYER_MODE_PFL"};var plL=new g.jn("channelThumbnailEndpoint");var oC5=new g.jn("embeddedPlayerErrorMessageRenderer");var Xlv=new g.jn("embeddedPlayerOverlayVideoDetailsRenderer"),ItL=new g.jn("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),Y27=new g.jn("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var rOl=new g.jn("embedsInfoPanelRenderer");var ykX=new g.jn("feedbackEndpoint");var P4c=new g.jn("callToActionButtonViewModel");var fQ6=new g.jn("interactionLoggingCommandMetadata");var epd={lSk:"WEB_DISPLAY_MODE_UNKNOWN",Apg:"WEB_DISPLAY_MODE_BROWSER",wpH:"WEB_DISPLAY_MODE_MINIMAL_UI",uyn:"WEB_DISPLAY_MODE_STANDALONE",O9g:"WEB_DISPLAY_MODE_FULLSCREEN"};g.n(MU,aR);MU.prototype.getPlayerType=function(){return UW(this,7)}; MU.prototype.Cj=function(){return Aq(this,19)}; MU.prototype.setVideoId=function(h){return y7(this,19,h)};g.n(F_,aR);g.n(ym,aR);g.n(PE,aR); var b62=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525];var TFX=new g.jn("loggingContext");g.n(fu,aR);g.n(b$,aR);b$.prototype.Cj=function(){return M3(this,Z4(this,Wz,1))}; b$.prototype.setVideoId=function(h){return di(this,1,Wz,QH(h))}; b$.prototype.getPlaylistId=function(){return M3(this,Z4(this,Wz,2))}; var Wz=[1,2];g.n(ovU,aR);var as=new g.jn("changeKeyedMarkersVisibilityCommand");var NFl=new g.jn("changeMarkersVisibilityCommand");var jpN=new g.jn("loadMarkersCommand");var Xrf=new g.jn("suggestedActionDataViewModel");var S7p=new g.jn("timelyActionViewModel");var OwN=new g.jn("timelyActionsOverlayViewModel");var HtD=new g.jn("productListItemRenderer");var t86=new g.jn("shoppingOverlayRenderer");var t07=new g.jn("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var vuc=new g.jn("adFeedbackEndpoint");var mof=new g.jn("menuEndpoint");var dth=new g.jn("phoneDialerEndpoint");var Jvd=new g.jn("sendSmsEndpoint");var N27=new g.jn("copyTextEndpoint");var ou6=new g.jn("shareEndpoint"),prl=new g.jn("shareEntityEndpoint"),IQ2=new g.jn("shareEntityServiceEndpoint"),Yu6=new g.jn("webPlayerShareEntityServiceEndpoint");g.C4=new g.jn("urlEndpoint");g.nC=new g.jn("watchEndpoint");var O6K=new g.jn("watchPlaylistEndpoint");g.SuK=new g.jn("offlineOrchestrationActionCommand");var UBQ=new g.jn("compositeVideoOverlayRenderer");var guf=new g.jn("miniplayerRenderer");var bYN=new g.jn("paidContentOverlayRenderer");var Do6=new g.jn("playerMutedAutoplayOverlayRenderer"),wrU=new g.jn("playerMutedAutoplayEndScreenRenderer");var FEd=new g.jn("unserializedPlayerResponse"),kAX=new g.jn("unserializedPlayerResponse");var hyS=new g.jn("playlistEditEndpoint");var Ko;g.DJ=new g.jn("buttonRenderer");Ko=new g.jn("toggleButtonRenderer");var iEk=new g.jn("counterfactualRenderer");var W_f=new g.jn("resolveUrlCommandMetadata");var csX=new g.jn("modifyChannelNotificationPreferenceEndpoint");var ynN=new g.jn("pingingEndpoint");var VkI=new g.jn("unsubscribeEndpoint");g.Yq=new g.jn("subscribeButtonRenderer");var $JS=new g.jn("subscribeEndpoint");var RdQ=new g.jn("buttonViewModel");var AmU=new g.jn("qrCodeRenderer");var pS7={d5f:"LIVING_ROOM_APP_MODE_UNSPECIFIED",a$n:"LIVING_ROOM_APP_MODE_MAIN",WAV:"LIVING_ROOM_APP_MODE_KIDS",GSf:"LIVING_ROOM_APP_MODE_MUSIC",Ypf:"LIVING_ROOM_APP_MODE_UNPLUGGED",Xv9:"LIVING_ROOM_APP_MODE_GAMING"};var dDQ=new g.jn("autoplaySwitchButtonRenderer");var Sz,hav,XsL,uip;Sz=new g.jn("decoratedPlayerBarRenderer");hav=new g.jn("chapteredPlayerBarRenderer");XsL=new g.jn("multiMarkersPlayerBarRenderer");uip=new g.jn("chapterRenderer");g.$4L=new g.jn("markerRenderer");var q8k=new g.jn("decoratedPlayheadRenderer");var q2k=new g.jn("desktopOverlayConfigRenderer");var Chh=new g.jn("engagementPanelSectionListRenderer");var ZYk=new g.jn("gatedActionsOverlayViewModel");var ErN=new g.jn("heatMarkerRenderer");var BpU=new g.jn("heatmapRenderer");var nCv=new g.jn("watchToWatchTransitionRenderer");var vC7=new g.jn("playlistPanelRenderer");var sYl=new g.jn("productUpsellSuggestedActionViewModel");var Hkf=new g.jn("suggestedActionTimeRangeTrigger"),Bb6=new g.jn("suggestedActionsRenderer"),ESU=new g.jn("suggestedActionRenderer");var Ra7=new g.jn("timedMarkerDecorationRenderer");var t1D=new g.jn("cipher");var y9U=new g.jn("playerVars");var RyS=new g.jn("playerVars");var Av=g.k5.window,JsU,uWX,T7=(Av==null?void 0:(JsU=Av.yt)==null?void 0:JsU.config_)||(Av==null?void 0:(uWX=Av.ytcfg)==null?void 0:uWX.data_)||{};g.hS("yt.config_",T7);var oW=[];var huv=/^[\w.]*$/,gvv={q:!0,search_query:!0},SLp=String(O_);var $2=new function(){var h=window.document;this.X=window;this.W=h}; g.hS("yt.ads_.signals_.getAdSignalsString",function(h){return Sn(Hf(h))});g.Gt();var cEN="XMLHttpRequest"in g.k5?function(){return new XMLHttpRequest}:null;var dJl="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.rN(dJl);var HeD={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"},xVN="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.rN(dJl)),GT7=!1,JEQ=lW;g.n(ax,qu);Qn.prototype.then=function(h,W,c){return this.X?this.X.then(h,W,c):this.G===1&&h?(h=h.call(c,this.W))&&typeof h.then==="function"?h:iW(h):this.G===2&&W?(h=W.call(c,this.W))&&typeof h.then==="function"?h:Lb(h):this}; Qn.prototype.getValue=function(){return this.W}; Qn.prototype.$goog_Thenable=!0;var Kb=!1;var tZ=ox||pb;var LVl=/^([0-9\.]+):([0-9\.]+)$/;g.n(Ht,qu);Ht.prototype.name="BiscottiError";g.n(sh,qu);sh.prototype.name="BiscottiMissingError";var UVk={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Bt=null;var cS5=x5(["data-"]),Nll={};var GC6=0,Eh=g.Js?"webkit":pk?"moz":g.Eb?"ms":g.SN?"o":"",Zkt=g.c2("ytDomDomGetNextId")||function(){return++GC6}; g.hS("ytDomDomGetNextId",Zkt);var mV7={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};ZL.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; ZL.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; ZL.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var rQ=g.k5.ytEventsEventsListeners||{};g.hS("ytEventsEventsListeners",rQ);var IDl=g.k5.ytEventsEventsCounter||{count:0};g.hS("ytEventsEventsCounter",IDl);var gQv=y_(function(){var h=!1;try{var W=Object.defineProperty({},"passive",{get:function(){h=!0}}); window.addEventListener("test",null,W)}catch(c){}return h}),YEp=y_(function(){var h=!1; try{var W=Object.defineProperty({},"capture",{get:function(){h=!0}}); window.addEventListener("test",null,W)}catch(c){}return h});var Uo;Uo=window;g.aC=Uo.ytcsi&&Uo.ytcsi.now?Uo.ytcsi.now:Uo.performance&&Uo.performance.timing&&Uo.performance.now&&Uo.performance.timing.navigationStart?function(){return Uo.performance.timing.navigationStart+Uo.performance.now()}:function(){return(new Date).getTime()};g.rX(jt,g.N);jt.prototype.T=function(h){h.X===void 0&&oQ5(h);var W=h.X;h.W===void 0&&oQ5(h);this.X=new g.p6(W,h.W)}; jt.prototype.lR=function(){return this.X||new g.p6}; jt.prototype.XI=function(){if(this.X){var h=(0,g.aC)();if(this.Y!=0){var W=this.N,c=this.X,V=W.x-c.x;W=W.y-c.y;V=Math.sqrt(V*V+W*W)/(h-this.Y);this.W[this.G]=Math.abs((V-this.C)/this.C)>.5?1:0;for(c=W=0;c<4;c++)W+=this.W[c]||0;W>=3&&this.S();this.C=V}this.Y=h;this.N=this.X;this.G=(this.G+1)%4}}; jt.prototype.dE=function(){g.dJ(this.Z);g.xk(this.Wk)};g.n(aI,g.N);aI.prototype.U=function(h,W,c,V,H){c=g.IW((0,g.JS)(c,V||this.hI));c={target:h,name:W,callback:c};var B;H&&gQv()&&(B={passive:!0});h.addEventListener(W,c.callback,B);this.S.push(c);return c}; aI.prototype.v0=function(h){for(var W=0;W=m.vp)||L.X.version>=D||L.X.objectStoreNames.contains(T)||U.push(T)}u=U;if(u.length===0){z.bB(5);break}d=Object.keys(c.options.iP); G=J.objectStoreNames();if(c.Cc.options.version+1)throw r.close(),c.G=!1,bOk(c,q);return z.return(r);case 8:throw W(), Z instanceof Error&&!g.ZX("ytidb_async_stack_killswitch")&&(Z.stack=Z.stack+"\n"+E.substring(E.indexOf("\n")+1)),Zu(Z,c.name,"",(x=c.options.version)!=null?x:-1);}})} function W(){c.X===V&&(c.X=void 0)} var c=this;if(!this.G)throw bOk(this);if(this.X)return this.X;var V,H={blocking:function(B){B.close()}, closed:W,gxM:W,upgrade:this.options.upgrade};return this.X=V=h()};var Nv=new bC("YtIdbMeta",{iP:{databases:{vp:1}},upgrade:function(h,W){W(1)&&g.z1(h,"databases",{keyPath:"actualName"})}});var oC,m6=new function(){}(new function(){});new g.R_;g.n(Y4,bC);Y4.prototype.W=function(h,W,c){c=c===void 0?{}:c;return(this.options.shared?Iyv:pyU)(h,W,Object.assign({},c))}; Y4.prototype.delete=function(h){h=h===void 0?{}:h;return(this.options.shared?g$7:Y5d)(this.name,h)};var zy2={},wyl=g.OG("ytGcfConfig",{iP:(zy2.coldConfigStore={vp:1},zy2.hotConfigStore={vp:1},zy2),shared:!1,upgrade:function(h,W){W(1)&&(g.UG(g.z1(h,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.UG(g.z1(h,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.n(gw,g.N);gw.prototype.dE=function(){for(var h=g.e(this.W),W=h.next();!W.done;W=h.next()){var c=this.X;W=c.indexOf(W.value);W>=0&&c.splice(W,1)}this.W.length=0;g.N.prototype.dE.call(this)};cY.prototype.WU=function(h){this.hotHashData=h;g.hS("yt.gcf.config.hotHashData",this.hotHashData||null)};var QYc=typeof TextEncoder!=="undefined"?new TextEncoder:null,tQN=QYc?function(h){return QYc.encode(h)}:function(h){h=g.Ls(h); for(var W=new Uint8Array(h.length),c=0;c=W?!1:!0}; g.l.q0=function(){var h=this;if(!Lj(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.oF.XP("QUEUED",this.r3).then(function(W){W&&!h.CK(W,h.oM)?h.yN.rp(function(){return g.P(function(c){if(c.W==1)return W.id===void 0?c.bB(2):g.F(c,h.oF.ws(W.id,h.r3),2);h.q0();g.zQ(c)})}):h.D1.zj()&&h.mw()})};var AL;var n2v={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,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464, startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489, keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515, adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525};var ik2={},sWQ=g.OG("ServiceWorkerLogsDatabase",{iP:(ik2.SWHealthLog={vp:1},ik2),shared:!0,upgrade:function(h,W){W(1)&&g.UG(g.z1(h,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var M0={},u_U=0;var FX;PY.prototype.requestComplete=function(h,W){W&&(this.W=!0);h=this.removeParams(h);this.X.get(h)||this.X.set(h,W)}; PY.prototype.isEndpointCFR=function(h){h=this.removeParams(h);return(h=this.X.get(h))?!1:h===!1&&this.W?!0:null}; PY.prototype.removeParams=function(h){return h.split("?")[0]}; PY.prototype.removeParams=PY.prototype.removeParams;PY.prototype.isEndpointCFR=PY.prototype.isEndpointCFR;PY.prototype.requestComplete=PY.prototype.requestComplete;PY.getInstance=fj;g.n(bq,g.Rn);g.l=bq.prototype;g.l.zj=function(){return this.X.zj()}; g.l.lE=function(h){this.X.X=h}; g.l.H6=function(){var h=window.navigator.onLine;return h===void 0?!0:h}; g.l.GM=function(){this.W=!0}; g.l.listen=function(h,W){return this.X.listen(h,W)}; g.l.iy=function(h){h=Fd(this.X,h);h.then(function(W){g.ZX("use_cfr_monitor")&&fj().requestComplete("generate_204",W)}); return h}; bq.prototype.sendNetworkCheckRequest=bq.prototype.iy;bq.prototype.listen=bq.prototype.listen;bq.prototype.enableErrorFlushing=bq.prototype.GM;bq.prototype.getWindowStatus=bq.prototype.H6;bq.prototype.networkStatusHint=bq.prototype.lE;bq.prototype.isNetworkAvailable=bq.prototype.zj;bq.getInstance=ZuU;g.n(g.TZ,g.Rn);g.TZ.prototype.zj=function(){var h=g.c2("yt.networkStatusManager.instance.isNetworkAvailable");return h?h.bind(this.W)():!0}; g.TZ.prototype.lE=function(h){var W=g.c2("yt.networkStatusManager.instance.networkStatusHint").bind(this.W);W&&W(h)}; g.TZ.prototype.iy=function(h){var W=this,c;return g.P(function(V){c=g.c2("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(W.W);return g.ZX("skip_network_check_if_cfr")&&fj().isEndpointCFR("generate_204")?V.return(new Promise(function(H){var B;W.lE(((B=window.navigator)==null?void 0:B.onLine)||!0);H(W.zj())})):c?V.return(c(h)):V.return(!0)})};var N0;g.n(XX,iq);XX.prototype.writeThenSend=function(h,W){W||(W={});W=vY(h,W);g.m1()||(this.X=!1);iq.prototype.writeThenSend.call(this,h,W)}; XX.prototype.sendThenWrite=function(h,W,c){W||(W={});W=vY(h,W);g.m1()||(this.X=!1);iq.prototype.sendThenWrite.call(this,h,W,c)}; XX.prototype.sendAndWrite=function(h,W){W||(W={});W=vY(h,W);g.m1()||(this.X=!1);iq.prototype.sendAndWrite.call(this,h,W)}; XX.prototype.awaitInitialization=function(){return this.G.promise};var nZl=g.k5.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.hS("ytNetworklessLoggingInitializationOptions",nZl);g.ma.prototype.isReady=function(){!this.config_&&re7()&&(this.config_=g.sr());return!!this.config_};var K_6,IS,Or;K_6=g.k5.ytPubsubPubsubInstance||new g.ar;IS=g.k5.ytPubsubPubsubSubscribedKeys||{};Or=g.k5.ytPubsubPubsubTopicToKeys||{};g.Ys=g.k5.ytPubsubPubsubIsSynchronous||{};g.ar.prototype.subscribe=g.ar.prototype.subscribe;g.ar.prototype.unsubscribeByKey=g.ar.prototype.IF;g.ar.prototype.publish=g.ar.prototype.publish;g.ar.prototype.clear=g.ar.prototype.clear;g.hS("ytPubsubPubsubInstance",K_6);g.hS("ytPubsubPubsubTopicToKeys",Or);g.hS("ytPubsubPubsubIsSynchronous",g.Ys); g.hS("ytPubsubPubsubSubscribedKeys",IS);var LPd={};g.n(Ec,g.N);Ec.prototype.append=function(h){if(!this.W)throw Error("This does not support the append operation");h=h.fJ();this.fJ().appendChild(h)}; g.n(Rl,Ec);Rl.prototype.fJ=function(){return this.X};g.n(Jn,g.N);Jn.prototype.onTouchStart=function(h){this.S=!0;this.W=h.touches.length;this.X.isActive()&&(this.X.stop(),this.C=!0);h=h.touches;this.N=At4(this,h)||h.length!=1;var W=h.item(0);this.N||!W?this.T=this.Z=Infinity:(this.Z=W.clientX,this.T=W.clientY);for(W=this.G.length=0;W=0)}if(W||h&&Math.pow(h.clientX-this.Z,2)+Math.pow(h.clientY-this.T,2)>25)this.Y=!0}; Jn.prototype.onTouchEnd=function(h){var W=h.changedTouches;W&&this.S&&this.W==1&&!this.Y&&!this.C&&!this.N&&At4(this,W)&&(this.XI=h,this.X.start());this.W=h.touches.length;this.W===0&&(this.Y=this.S=!1,this.G.length=0);this.C=!1};var ux=Date.now().toString();var qA={};var e9=Symbol("injectionDeps");lx.prototype.toString=function(){return"InjectionToken("+this.name+")"}; Mnl.prototype.resolve=function(h){return h instanceof nq?ze(this,h.key,[],!0):ze(this,h,[])};var Qj;var ix=window;var Cq=g.ZX("web_enable_lifecycle_monitoring")&&Kq()!==0,NO5=g.ZX("web_enable_lifecycle_monitoring");f3v.prototype.cancel=function(){for(var h=g.e(this.X),W=h.next();!W.done;W=h.next())W=W.value,W.jobId===void 0||W.Yw||this.scheduler.XV(W.jobId),W.Yw=!0;this.W.resolve()};g.l=MA.prototype;g.l.install=function(h){this.plugins.push(h);return this}; g.l.uninstall=function(){var h=this;g.tN.apply(0,arguments).forEach(function(W){W=h.plugins.indexOf(W);W>-1&&h.plugins.splice(W,1)})}; g.l.transition=function(h,W){var c=this;Cq&&ytl(this.state);var V=this.transitions.find(function(B){return Array.isArray(B.from)?B.from.find(function(E){return E===c.state&&B.to===h}):B.from===c.state&&B.to===h}); if(V){this.W&&(bup(this.W),this.W=void 0);XEQ(this,h,W);this.state=h;Cq&&An(this.state);V=V.action.bind(this);var H=this.plugins.filter(function(B){return B[h]}).map(function(B){return B[h]}); V(TOv(this,H),W)}else throw Error("no transition specified from "+this.state+" to "+h);}; g.l.ShO=function(h){var W=g.tN.apply(1,arguments);g.Oh();for(var c=g.e(h),V=c.next(),H={};!V.done;H={GI:void 0},V=c.next())H.GI=V.value,E$4(function(B){return function(){yj(B.GI.name);fq(function(){return B.GI.callback.apply(B.GI,g.rN(W))}); PB(B.GI.name)}}(H))}; g.l.jVH=function(h){var W=g.tN.apply(1,arguments),c,V,H,B;return g.P(function(E){E.W==1&&(g.Oh(),c=g.e(h),V=c.next(),H={});if(E.W!=3){if(V.done)return E.bB(0);H.UZ=V.value;H.qI=void 0;B=function(J){return function(){yj(J.UZ.name);var u=fq(function(){return J.UZ.callback.apply(J.UZ,g.rN(W))}); za(u)?J.qI=g.ZX("web_lifecycle_error_handling_killswitch")?u.then(function(){PB(J.UZ.name)}):u.then(function(){PB(J.UZ.name)},function(d){P$k(d); PB(J.UZ.name)}):PB(J.UZ.name)}}(H); E$4(B);return H.qI?g.F(E,H.qI,3):E.bB(3)}H={UZ:void 0,qI:void 0};V=c.next();return E.bB(2)})}; g.l.Qh=function(h){var W=g.tN.apply(1,arguments),c=this,V=h.map(function(H){return{iM:function(){yj(H.name);fq(function(){return H.callback.apply(H,g.rN(W))}); PB(H.name)}, priority:FI(c,H)}}); V.length&&(this.W=new f3v(V))}; g.Hd.Object.defineProperties(MA.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Te;g.n(bx,MA);bx.prototype.C=function(h,W){var c=this;this.X=g.II(0,function(){c.currentState==="application_navigating"&&c.transition("none")},5E3); h(W==null?void 0:W.event)}; bx.prototype.N=function(h,W){this.X&&(g.Py.XV(this.X),this.X=null);h(W==null?void 0:W.event)};var R3=[];g.hS("yt.logging.transport.getScrapedGelPayloads",function(){return R3});NA.prototype.storePayload=function(h,W){h=XI(h);this.store[h]?this.store[h].push(W):(this.W={},this.store[h]=[W]);this.X++;g.ZX("more_accurate_gel_parser")&&(W=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(W));return h}; NA.prototype.smartExtractMatchingEntries=function(h){if(!h.keys.length)return[];for(var W=vB(this,h.keys.splice(0,1)[0]),c=[],V=0;V=0){V=!1;break a}}V=!0}V&&(W=U9(W))&&this.sx(W)}}; g.l.s$=function(h){return h}; g.l.onTouchStart=function(h){this.Pk.onTouchStart(h)}; g.l.onTouchMove=function(h){this.Pk.onTouchMove(h)}; g.l.onTouchEnd=function(h){if(this.Pk)this.Pk.onTouchEnd(h)}; g.l.sx=function(h){this.layoutId?this.oz.executeCommand(h,this.layoutId):(h=new g.tP("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.Qq(h))}; g.l.createServerVe=function(h,W){this.api.createServerVe(h,this);this.api.setTrackingParams(h,W)}; g.l.logVisibility=function(h,W){this.api.hasVe(h)&&this.api.logVisibility(h,W,this.interactionLoggingClientData)}; g.l.dE=function(){this.clear(null);this.v0(this.Ef);for(var h=g.e(this.DH),W=h.next();!W.done;W=h.next())this.v0(W.value);g.sJ.prototype.dE.call(this)};g.n(iw,Hn); iw.prototype.init=function(h,W,c){Hn.prototype.init.call(this,h,W,c);this.X=W;if(W.text==null&&W.icon==null)g.Lx(Error("ButtonRenderer did not have text or an icon set."));else{switch(W.style||null){case "STYLE_UNKNOWN":h="ytp-ad-button-link";break;default:h=null}h!=null&&g.he(this.element,h);W.text!=null&&(h=g.EJ(W.text),g.Cr(h)||(this.element.setAttribute("aria-label",h),this.G=new g.sJ({D:"span",K:"ytp-ad-button-text",YN:h}),g.X(this,this.G),this.G.kN(this.element)));W.accessibilityData&&W.accessibilityData.accessibilityData&& W.accessibilityData.accessibilityData.label&&!g.Cr(W.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",W.accessibilityData.accessibilityData.label);W.icon!=null&&(W=L4(W.icon,this.Y),W!=null&&(this.W=new g.sJ({D:"span",K:"ytp-ad-button-icon",V:[W]}),g.X(this,this.W)),this.N?li(this.element,this.W.element,0):this.W.kN(this.element))}}; iw.prototype.clear=function(){this.hide()}; iw.prototype.onClick=function(h){Hn.prototype.onClick.call(this,h);h=g.e(ttv(this));for(var W=h.next();!W.done;W=h.next())W=W.value,this.layoutId?this.oz.executeCommand(W,this.layoutId):g.Qq(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.n(K4,g.N);K4.prototype.dE=function(){this.W&&g.xk(this.W);this.X.clear();A1=null;g.N.prototype.dE.call(this)}; K4.prototype.register=function(h,W){W&&this.X.set(h,W)}; var A1=null;g.n(Mq,Hn); Mq.prototype.init=function(h,W,c){Hn.prototype.init.call(this,h,W,c);h=W.hoverText||null;W=W.button&&g.v(W.button,g.DJ)||null;W==null?g.Qq(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new iw(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,void 0,void 0,void 0,void 0,this.G),g.X(this,this.button),this.button.init(wc("button"),W,this.macros),h&&this.button.element.setAttribute("aria-label",g.EJ(h)),this.button.kN(this.element),this.T&&!g.k$(this.button.element, "ytp-ad-clickable")&&g.he(this.button.element,"ytp-ad-clickable"),this.G&&g.he(this.button.element,"ytp-ad-hover-text-button--clean-player"),h&&(this.W=new g.sJ({D:"div",K:"ytp-ad-hover-text-container"}),this.N&&(W=new g.sJ({D:"div",K:"ytp-ad-hover-text-callout"}),W.kN(this.W.element),g.X(this,W)),g.X(this,this.W),this.W.kN(this.element),W=UJ(h),li(this.W.element,W,0)),this.show())}; Mq.prototype.hide=function(){this.button&&this.button.hide();this.W&&this.W.hide();Hn.prototype.hide.call(this)}; Mq.prototype.show=function(){this.button&&this.button.show();Hn.prototype.show.call(this)};g.n(yP,Hn); yP.prototype.init=function(h,W,c){Hn.prototype.init.call(this,h,W,c);c=(h=W.thumbnail)&&FO(h)||"";g.Cr(c)?Math.random()<.01&&g.Lx(Error("Found AdImage without valid image URL")):(this.X?g.oY(this.element,"backgroundImage","url("+c+")"):RY(this.element,{src:c}),RY(this.element,{alt:h&&h.accessibility&&h.accessibility.label||""}),W&&W.adRendererCommands&&W.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; yP.prototype.clear=function(){this.hide()};g.n(Pn,Hn);g.l=Pn.prototype;g.l.hide=function(){Hn.prototype.hide.call(this);this.G&&this.G.focus()}; g.l.show=function(){this.G=document.activeElement;Hn.prototype.show.call(this);this.Y.focus()}; g.l.init=function(h,W,c){Hn.prototype.init.call(this,h,W,c);this.W=W;W.dialogMessages||W.title!=null?W.confirmLabel==null?g.Qq(Error("ConfirmDialogRenderer.confirmLabel was not set.")):W.cancelLabel==null?g.Qq(Error("ConfirmDialogRenderer.cancelLabel was not set.")):pt5(this,W):g.Qq(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.l.clear=function(){g.zR(this.X);this.hide()}; g.l.RQ=function(){this.hide()}; g.l.uF=function(){var h=this.W.cancelEndpoint;h&&(this.layoutId?this.oz.executeCommand(h,this.layoutId):g.Qq(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.l.qr=function(){var h=this.W.confirmNavigationEndpoint||this.W.confirmEndpoint;h&&(this.layoutId?this.oz.executeCommand(h,this.layoutId):g.Qq(Error("Missing layoutId for confirm dialog.")));this.hide()};g.n(f4,Hn);g.l=f4.prototype; g.l.init=function(h,W,c){Hn.prototype.init.call(this,h,W,c);this.G=W;if(W.defaultText==null&&W.defaultIcon==null)g.Qq(Error("ToggleButtonRenderer must have either text or icon set."));else if(W.defaultIcon==null&&W.toggledIcon!=null)g.Qq(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(W.style){switch(W.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":h="ytp-ad-toggle-button-default-style";break;default:h=null}h!=null&&g.he(this.Y,h)}h={};W.defaultText? (c=g.EJ(W.defaultText),g.Cr(c)||(h.buttonText=c,this.api.B().experiments.xN("a11y_h5_associate_survey_question")||this.X.setAttribute("aria-label",c),this.api.B().experiments.xN("fix_h5_toggle_button_a11y")&&this.W.setAttribute("aria-label",c))):g.cW(this.zV,!1);W.defaultTooltip&&(h.tooltipText=W.defaultTooltip,this.X.hasAttribute("aria-label")||this.W.setAttribute("aria-label",W.defaultTooltip));W.defaultIcon?(c=L4(W.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),W.toggledIcon?(this.Wk= !0,c=L4(W.toggledIcon),this.updateValue("toggledIconTemplateSpec",c)):(g.cW(this.T,!0),g.cW(this.N,!1)),g.cW(this.X,!1)):g.cW(this.W,!1);g.GF(h)||this.update(h);W.isToggled&&(g.he(this.Y,"ytp-ad-toggle-button-toggled"),this.toggleButton(W.isToggled));bw(this);this.U(this.element,"change",this.uA);this.show()}}; g.l.onClick=function(h){this.DH.length>0&&(this.toggleButton(!this.isToggled()),this.uA());Hn.prototype.onClick.call(this,h)}; g.l.uA=function(){g.$y(this.Y,"ytp-ad-toggle-button-toggled",this.isToggled());for(var h=g.e(ILL(this,this.isToggled())),W=h.next();!W.done;W=h.next())W=W.value,this.layoutId?this.oz.executeCommand(W,this.layoutId):g.Qq(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);bw(this)}; g.l.clear=function(){this.hide()}; g.l.toggleButton=function(h){g.$y(this.Y,"ytp-ad-toggle-button-toggled",h);this.X.checked=h;bw(this)}; g.l.isToggled=function(){return this.X.checked};g.n(Tp,aI);Tp.prototype.C=function(h){if(Array.isArray(h)){h=g.e(h);for(var W=h.next();!W.done;W=h.next())W=W.value,W instanceof YhL&&this.G(W)}};g.n(Nq,Hn);g.l=Nq.prototype;g.l.init=function(h,W,c){Hn.prototype.init.call(this,h,W,c);W.reasons?W.confirmLabel==null?g.Qq(Error("AdFeedbackRenderer.confirmLabel was not set.")):(W.cancelLabel==null&&g.Lx(Error("AdFeedbackRenderer.cancelLabel was not set.")),W.title==null&&g.Lx(Error("AdFeedbackRenderer.title was not set.")),Dzh(this,W)):g.Qq(Error("AdFeedbackRenderer.reasons were not set."))}; g.l.clear=function(){lL(this.N);lL(this.T);this.Y.length=0;this.hide()}; g.l.hide=function(){this.X&&this.X.hide();this.W&&this.W.hide();Hn.prototype.hide.call(this);this.G&&this.G.focus()}; g.l.show=function(){this.X&&this.X.show();this.W&&this.W.show();this.G=document.activeElement;Hn.prototype.show.call(this);this.N.focus()}; g.l.ql=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.l.kwf=function(){this.hide()}; XO.prototype.fJ=function(){return this.X.element}; XO.prototype.getCommand=function(){return this.W}; XO.prototype.isChecked=function(){return this.G.checked};g.n(t1,Pn);t1.prototype.RQ=function(h){Pn.prototype.RQ.call(this,h);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; t1.prototype.uF=function(h){Pn.prototype.uF.call(this,h);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; t1.prototype.qr=function(h){Pn.prototype.qr.call(this,h);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.n(vn,Hn);g.l=vn.prototype; g.l.init=function(h,W,c){Hn.prototype.init.call(this,h,W,c);this.N=W;if(W.dialogMessage==null&&W.title==null)g.Qq(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{W.confirmLabel==null&&g.Lx(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(h=W.closeOverlayRenderer&&g.v(W.closeOverlayRenderer,g.DJ)||null)this.X=new iw(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.X(this,this.X),this.X.init(wc("button"),h,this.macros),this.X.kN(this.element);W.title&&(h=g.EJ(W.title),this.updateValue("title",h));if(W.adReasons)for(h=W.adReasons,c=0;c=this.Nn?(this.Wk.hide(),this.Rz=!0,this.publish("i")):this.G&&this.G.isTemplated()&&(h=Math.max(0,Math.ceil((this.Nn-h)/1E3)),h!=this.rE&&(p4(this.G,{TIME_REMAINING:String(h)}),this.rE=h)))}};g.n(w7,Ie);g.l=w7.prototype; g.l.init=function(h,W,c){Ie.prototype.init.call(this,h,W,c);if(W.image&&W.image.thumbnail)if(W.headline)if(W.description)if((h=W.actionButton&&g.v(W.actionButton,g.DJ))&&h.navigationEndpoint){var V=this.api.getVideoData(2);if(V!=null)if(W.image&&W.image.thumbnail){var H=W.image.thumbnail.thumbnails;H!=null&&H.length>0&&g.Cr(g.Fk(H[0].url))&&(H[0].url=V.profilePicture)}else g.Lx(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.G.init(wc("ad-image"),W.image,c);this.N.init(wc("ad-text"), W.headline,c);this.Y.init(wc("ad-text"),W.description,c);this.W.init(wc("button"),h,c);c=Xd(this.W.element);Nf(this.W.element,c+" This link opens in new tab");this.Wk=h.navigationEndpoint;this.api.Vt()||this.show();this.api.B().j("enable_larger_flyout_cta_on_desktop")&&(this.vk("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.vk("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.vk("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.vk("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.vk("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.vk("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.W.element.classList.add("ytp-flyout-cta-action-button-large"),this.W.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.vk("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.X4.bind(this));this.zV=W.startMs||0;YB(this)}else g.Qq(Error("FlyoutCtaRenderer has no valid action button."));else g.Qq(Error("FlyoutCtaRenderer has no description AdText."));else g.Qq(Error("FlyoutCtaRenderer has no headline AdText."));else g.Lx(Error("FlyoutCtaRenderer has no image."))}; g.l.onClick=function(h){Ie.prototype.onClick.call(this,h);this.api.pauseVideo();!g.jk(this.W.element,h.target)&&this.Wk&&(this.layoutId?this.oz.executeCommand(this.Wk,this.layoutId):g.Qq(Error("Missing layoutId for flyout cta.")))}; g.l.Z$=function(){if(this.X){var h=this.X.getProgressState();(h&&h.current||this.Nn)&&1E3*h.current>=this.zV&&(OJ(this),g.cD(this.element,"ytp-flyout-cta-inactive"),this.W.element.removeAttribute("tabIndex"))}}; g.l.rK=function(){this.clear()}; g.l.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.X4.bind(this))}; g.l.show=function(){this.W&&this.W.show();Ie.prototype.show.call(this)}; g.l.hide=function(){this.W&&this.W.hide();Ie.prototype.hide.call(this)}; g.l.X4=function(h){h=="hidden"?this.show():this.hide()};g.n(kB,Hn);g.l=kB.prototype; g.l.init=function(h,W,c){Hn.prototype.init.call(this,h,W,c);this.X=W;if(this.X.rectangle)for(h=this.X.likeButton&&g.v(this.X.likeButton,Ko),W=this.X.dislikeButton&&g.v(this.X.dislikeButton,Ko),this.G.init(wc("toggle-button"),h,c),this.W.init(wc("toggle-button"),W,c),this.U(this.element,"change",this.W2),this.Y.show(100),this.show(),c=g.e(this.X&&this.X.impressionCommands||[]),h=c.next();!h.done;h=c.next())h=h.value,this.layoutId?this.oz.executeCommand(h,this.layoutId):g.Qq(Error("Missing layoutId for instream user sentiment."))}; g.l.clear=function(){this.hide()}; g.l.hide=function(){this.G.hide();this.W.hide();Hn.prototype.hide.call(this)}; g.l.show=function(){this.G.show();this.W.show();Hn.prototype.show.call(this)}; g.l.W2=function(){Mx7(this.element,"ytp-ad-instream-user-sentiment-selected");this.X.postMessageAction&&this.api.Iz("onYtShowToast",this.X.postMessageAction);this.Y.hide()}; g.l.onClick=function(h){this.DH.length>0&&this.W2();Hn.prototype.onClick.call(this,h)};g.n(hW,g.N);g.l=hW.prototype;g.l.dE=function(){this.reset();g.N.prototype.dE.call(this)}; g.l.reset=function(){g.zR(this.Y);this.N=!1;this.X&&this.X.stop();this.C.stop();this.G&&(this.G=!1,this.S.play())}; g.l.start=function(){this.reset();this.Y.U(this.W,"mouseover",this.YD,this);this.Y.U(this.W,"mouseout",this.Gi,this);this.XI&&(this.Y.U(this.W,"focusin",this.YD,this),this.Y.U(this.W,"focusout",this.Gi,this));this.X?this.X.start():(this.N=this.G=!0,g.oY(this.W,{opacity:this.T}))}; g.l.YD=function(){this.G&&(this.G=!1,this.S.play());this.C.stop();this.X&&this.X.stop()}; g.l.Gi=function(){this.N?this.C.start():this.X&&this.X.start()}; g.l.HC=function(){this.G||(this.G=!0,this.Z.play(),this.N=!0)};var RBQ=[new W8("b.f_",!1,0),new W8("j.s_",!1,2),new W8("r.s_",!1,4),new W8("e.h_",!1,6),new W8("i.s_",!0,8),new W8("s.t_",!1,10),new W8("p.h_",!1,12),new W8("s.i_",!1,14),new W8("f.i_",!1,16),new W8("a.b_",!1,18),new W8("a.o_",!1),new W8("g.o_",!1,22),new W8("p.i_",!1,24),new W8("p.m_",!1),new W8("n.k_",!0,20),new W8("i.f_",!1),new W8("a.s_",!0),new W8("m.c_",!1),new W8("n.h_",!1,26),new W8("o.p_",!1),new W8("m.p_",!0,28),new W8("o.a_",!1),new W8("d.p_",!1),new W8("e.i_",!1)].reduce(function(h,W){h[W.W]= W;return h},{});g.n(Rt,Ie);g.l=Rt.prototype; g.l.init=function(h,W,c){Ie.prototype.init.call(this,h,W,c);this.Wk=W;(this.zV=uJN(this))&&g.Lx(Error("hasAdControlInClickCommands_ is true."));if(!W||g.GF(W))g.Qq(Error("SkipButtonRenderer was not specified or empty."));else if(!W.message||g.GF(W.message))g.Qq(Error("SkipButtonRenderer.message was not specified or empty."));else if(h=this.N?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},W=L4(h),W==null?g.Qq(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+h.iconType+".")): (this.api.B().j("disable_touch_events_on_skip_button")&&(W.J=Object.assign({},W.J,{"aria-hidden":"true",C0B:"false"})),this.G=new g.sJ({D:"button",LM:[this.N?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],V:[{D:"span",K:this.N?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",V:[W]}]}),g.X(this,this.G),this.G.kN(this.Y.element),this.W=new oe(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,"ytp-ad-skip-button-text"),this.N&&this.W.element.classList.add("ytp-ad-skip-button-text-centered"), this.W.init(wc("ad-text"),this.Wk.message,c),g.X(this,this.W),li(this.G.element,this.W.element,0)),!this.api.B().j("disable_touch_events_on_skip_button")){var V=V===void 0?null:V;c=this.api.B();!(this.DH.length>0)&&c.W&&(Od?0:"ontouchstart"in document.documentElement&&(w25()||BW()))&&(this.v0(this.Ef),V&&this.v0(V),this.DH=[this.U(this.element,"touchstart",this.onTouchStart,this),this.U(this.element,"touchmove",this.onTouchMove,this),this.U(this.element,"touchend",this.onTouchEnd,this)])}}; g.l.clear=function(){this.Nn.reset();this.hide()}; g.l.hide=function(){this.Y.hide();this.W&&this.W.hide();OJ(this);Ie.prototype.hide.call(this)}; g.l.onClick=function(h){if(this.G!=null){if(h){var W=h||window.event;W.returnValue=!1;W.preventDefault&&W.preventDefault()}var c;if(Bwk(h,{contentCpn:((c=this.api.getVideoData(1))==null?void 0:c.clientPlaybackNonce)||""})===0)this.api.Iz("onAbnormalityDetected");else if(Ie.prototype.onClick.call(this,h),this.publish("j"),this.api.Iz("onAdSkip"),this.Rz||!this.zV)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.l.s$=function(h){if(!this.Rz)return this.zV&&sA("SkipButton click commands not pruned while ALC exist"),h;var W,c=(W=g.v(h,g.JW))==null?void 0:W.commands;if(!c)return h;h=[];for(W=0;W=this.N&&dvL(this,!0)};g.n(dT,iw);dT.prototype.init=function(h,W,c){iw.prototype.init.call(this,h,W,c);h=!1;W.text!=null&&(h=g.EJ(W.text),h=!g.Cr(h));h?W.navigationEndpoint==null?g.Lx(Error("No visit advertiser clickthrough provided in renderer,")):W.style!=="STYLE_UNKNOWN"?g.Lx(Error("Button style was not a link-style type in renderer,")):this.show():g.Lx(Error("No visit advertiser text was present in the renderer."))};g.n(G3,Hn); G3.prototype.init=function(h,W,c){Hn.prototype.init.call(this,h,W,c);h=W.text;g.Cr(Bn(h))?g.Lx(Error("SimpleAdBadgeRenderer has invalid or empty text")):(h&&h.text&&(W=h.text,this.G&&!this.W&&(W=this.api.B(),W=h.text+" "+(W&&W.W?"\u2022":"\u00b7")),W={text:W,isTemplated:h.isTemplated},h.style&&(W.style=h.style),h.targetId&&(W.targetId=h.targetId),h=new oe(this.api,this.layoutId,this.interactionLoggingClientData,this.oz),h.init(wc("simple-ad-badge"),W,c),h.kN(this.element),g.X(this,h)),this.show())}; G3.prototype.clear=function(){this.hide()};g.n(Zw,kN);g.n(rT,g.h1);g.l=rT.prototype;g.l.Zj=function(){return this.durationMs}; g.l.stop=function(){this.X&&this.pR.v0(this.X)}; g.l.kd=function(h){this.W={seekableStart:0,seekableEnd:this.durationMs/1E3,current:h.current};this.publish("h")}; g.l.getProgressState=function(){return this.W}; g.l.Gh=function(h){g.EA(h,2)&&this.publish("g")};g.n(qa,g.h1);g.l=qa.prototype;g.l.Zj=function(){return this.durationMs}; g.l.start=function(){this.X||(this.X=!0,this.timer.start())}; g.l.stop=function(){this.X&&(this.X=!1,this.timer.stop())}; g.l.kd=function(){this.W3+=100;var h=!1;this.W3>this.durationMs&&(this.W3=this.durationMs,this.timer.stop(),h=!0);this.W={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.W3/1E3};this.publish("h");h&&this.publish("g")}; g.l.getProgressState=function(){return this.W};g.n(nV,Ie);g.l=nV.prototype;g.l.init=function(h,W,c){Ie.prototype.init.call(this,h,W,c);var V;if(W==null?0:(V=W.templatedCountdown)==null?0:V.templatedAdText){h=W.templatedCountdown.templatedAdText;if(!h.isTemplated){g.Lx(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.W=new oe(this.api,this.layoutId,this.interactionLoggingClientData,this.oz);this.W.init(wc("ad-text"),h,{});this.W.kN(this.element);g.X(this,this.W)}this.show()}; g.l.clear=function(){this.hide()}; g.l.hide=function(){OJ(this);Ie.prototype.hide.call(this)}; g.l.rK=function(){this.hide()}; g.l.Z$=function(){if(this.X!=null){var h=this.X.getProgressState();if(h!=null&&h.current!=null&&this.W){var W=this.X instanceof rT?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:h.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.X instanceof qa?h.seekableEnd:this.api.getDuration(2,!1);h=h.current;var c,V,H=((c=this.api.getVideoData())==null?0:(V=c.Gw)==null?0:V.call(c))?Math.max(W-h,0):W-h;p4(this.W,{FORMATTED_AD_DURATION_REMAINING:String(g.xx(H)), TIME_REMAINING:String(Math.ceil(H))})}}}; g.l.show=function(){YB(this);Ie.prototype.show.call(this)};g.n(jR,oe);jR.prototype.onClick=function(h){oe.prototype.onClick.call(this,h);this.api.onAdUxClicked(this.componentType)};g.n(eR,Hn);eR.prototype.init=function(h,W){Hn.prototype.init.call(this,h,W,{});if(h=W.content){g.aY(this.element,h);var c,V;W=((c=W.interaction)==null?void 0:(V=c.accessibility)==null?void 0:V.label)||h;this.element.setAttribute("aria-label",W)}else g.Qq(Error("AdSimpleAttributedString does not have text content"))}; eR.prototype.clear=function(){this.hide()}; eR.prototype.onClick=function(h){Hn.prototype.onClick.call(this,h)};g.n(z3,Hn); z3.prototype.init=function(h,W){Hn.prototype.init.call(this,h,W,{});(h=W.label)&&h.content&&!g.Cr(h.content)?(this.adBadgeText.init(wc("ad-simple-attributed-string"),new at(h)),(W=W.adPodIndex)&&W.content&&!g.Cr(W.content)&&(this.X=new eR(this.api,this.layoutId,this.interactionLoggingClientData,this.oz),this.X.kN(this.element),g.X(this,this.X),this.X.element.classList.add("ytp-ad-badge__pod-index"),this.X.init(wc("ad-simple-attributed-string"),new at(W))),this.element.classList.add(this.W?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.Qq(Error("No label is returned in AdBadgeViewModel."))}; z3.prototype.show=function(){this.adBadgeText.show();var h;(h=this.X)==null||h.show();Hn.prototype.show.call(this)}; z3.prototype.hide=function(){this.adBadgeText.hide();var h;(h=this.X)==null||h.hide();Hn.prototype.hide.call(this)};g.n(Qh,Hn);Qh.prototype.init=function(h,W){Hn.prototype.init.call(this,h,W,{});(h=W.adPodIndex)&&h.content&&!g.Cr(h.content)&&(this.X=new eR(this.api,this.layoutId,this.interactionLoggingClientData,this.oz),this.X.kN(this.element),g.X(this,this.X),this.X.init(wc("ad-simple-attributed-string"),new at(h)),W.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()}; Qh.prototype.show=function(){var h;(h=this.X)==null||h.show();Hn.prototype.show.call(this)}; Qh.prototype.hide=function(){var h;(h=this.X)==null||h.hide();Hn.prototype.hide.call(this)};g.n(LV,Hn); LV.prototype.init=function(h,W){Hn.prototype.init.call(this,h,W,{});if(W!=null&&W.text){var c;if(((c=W.text)==null?0:c.content)&&!g.Cr(W.text.content)){this.X=new g.sJ({D:"div",K:"ytp-ad-disclosure-banner__text",YN:W.text.content});g.X(this,this.X);this.X.kN(this.element);var V,H;h=((V=W.interaction)==null?void 0:(H=V.accessibility)==null?void 0:H.label)||W.text.content;this.element.setAttribute("aria-label",h);var B;if((B=W.interaction)==null?0:B.onTap)this.W=new g.sJ({D:"div",K:"ytp-ad-disclosure-banner__chevron",V:[g.d7()]}), g.X(this,this.W),this.W.kN(this.element);this.show()}}else g.Qq(Error("No banner text found in AdDisclosureBanner."))}; LV.prototype.clear=function(){this.hide()};g.n(AW,g.sJ);AW.prototype.kd=function(){var h=this.W.getProgressState(),W=h.seekableEnd;this.api.getPresentingPlayerType()===2&&(W=this.G?this.G/1E3:h.seekableEnd);this.progressBar.style.width=KV(new i7(h.seekableStart,W),h.current,0)*100+"%"}; AW.prototype.onStateChange=function(){g.$X(this.api.B())||(this.api.getPresentingPlayerType()===2?this.X===-1&&(this.show(),this.X=this.W.subscribe("h",this.kd,this),this.kd()):this.X!==-1&&(this.hide(),this.W.IF(this.X),this.X=-1))};g.n(UA,Hn); UA.prototype.init=function(h,W,c,V){Hn.prototype.init.call(this,h,W,c);if(W.skipOrPreviewRenderer){if(h=g.v(W.skipOrPreviewRenderer,aO))c=new u7(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,this.W,this.T),c.kN(this.CM),c.init(wc("skip-button"),h,this.macros),g.X(this,c);if(h=g.v(W.skipOrPreviewRenderer,aO))var H=h.skipOffsetMilliseconds}W.brandInteractionRenderer&&(h=W.brandInteractionRenderer.brandInteractionRenderer,c=new kB(this.api,this.layoutId,this.interactionLoggingClientData,this.oz), c.kN(this.zV),c.init(wc("instream-user-sentiment"),h,this.macros),g.X(this,c));if(h=g.v(W,Jkf))if(h=g.v(h,Jkf))c=new w7(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,this.W,!!W.showWithoutLinkedMediaLayout),g.X(this,c),c.kN(this.N),c.init(wc("flyout-cta"),h,this.macros);V=V&&V.videoAdDurationSeconds;W.adBadgeRenderer&&(c=W.adBadgeRenderer,h=g.v(c,g8),h!=null?(c=new z3(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,!1),g.X(this,c),c.kN(this.X),c.init(wc("ad-badge"), h,this.macros),this.G=c.element):(h=c.simpleAdBadgeRenderer,h==null&&(h={text:{text:"Anuncio",isTemplated:!1}}),c=new G3(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,!0),g.X(this,c),c.kN(this.X),c.init(wc("simple-ad-badge"),h,this.macros)));W.adPodIndex&&(h=g.v(W.adPodIndex,j0K),h!=null&&(c=new Qh(this.api,this.layoutId,this.interactionLoggingClientData,this.oz),g.X(this,c),c.kN(this.X),c.init(wc("ad-pod-index"),h)));W.adDurationRemaining&&!W.showWithoutLinkedMediaLayout&&(h=W.adDurationRemaining.adDurationRemainingRenderer, h==null&&(h={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),V=new nV(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,this.W,V,!1),g.X(this,V),V.kN(this.X),V.init(wc("ad-duration-remaining"),h,this.macros));W.adInfoRenderer&&(V=g.v(W.adInfoRenderer,ST))&&(h=new mQ(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,this.element,void 0,!1),g.X(this,h),this.G!==null?this.X.insertBefore(h.element,this.G.nextSibling):h.kN(this.X), h.init(wc("ad-info-hover-text-button"),V,this.macros));W.visitAdvertiserRenderer&&(h=g.v(W.visitAdvertiserRenderer,g.DJ))&&(c=qGD(this)&&this.Y?this.Y:this.X)&&(V=new dT(this.api,this.layoutId,this.interactionLoggingClientData,this.oz),g.X(this,V),V.kN(c),V.init(wc("visit-advertiser"),h,this.macros),be(V.element),h=Xd(V.element),Nf(V.element,h+" This link opens in new tab"));!(V=this.api.B())||g.cF(V)||g.DE(V)||V.controlsType!="3"&&!V.disableOrganicUi||(H=new AW(this.api,this.W,H,!1),H.kN(this.Nn), g.X(this,H));W.adDisclosureBannerRenderer&&(W=g.v(W.adDisclosureBannerRenderer,nu2))&&(H=new LV(this.api,this.layoutId,this.interactionLoggingClientData,this.oz),H.kN(this.Wk),H.init(wc("ad-disclosure-banner"),W),g.X(this,H));this.api.B().j("enable_updated_html5_player_focus_style")&&g.he(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; UA.prototype.clear=function(){this.hide()};g.Fy.prototype.flush=function(h,W){h=h===void 0?[]:h;W=W===void 0?!1:W;if(g.ZX("enable_client_streamz_web")){h=g.e(h);for(var c=h.next();!c.done;c=h.next())c=WDk(c.value),this.X&&n7(c,He,2,this.X),c={serializedIncrementBatch:g.i6(c.G())},g.V5("streamzIncremented",c,{sendIsolatedPayload:W})}}; g.n(luh,g.Fy);var E_D=new Map;yh.prototype.set=function(h,W,c){c=c!==void 0?Date.now()+c:void 0;this.X.set(h,W,c)}; yh.prototype.get=function(h){return this.X.get(h)}; yh.prototype.remove=function(h){this.X.remove(h)};var jCl=null;var Na=null,Xy=null,tW=null,L64=null;g.hS("yt.www.ads.eventcache.getLastCompanionData",function(){return Na}); g.hS("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.hS("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return Xy}); g.hS("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return tW}); g.hS("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return L64});var K6l=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);v8.prototype.handleResponse=function(h,W){if(!W)throw Error("request needs to be passed into ConsistencyService");var c,V;W=((c=W.Bj.context)==null?void 0:(V=c.request)==null?void 0:V.consistencyTokenJars)||[];var H;(h=(H=h.responseContext)==null?void 0:H.consistencyTokenJar)&&this.replace(W,h)}; v8.prototype.replace=function(h,W){h=g.e(h);for(var c=h.next();!c.done;c=h.next())delete this.X[c.value.encryptedTokenJarContents];Uv5(this,W)};var F_l=window.location.hostname.split(".").slice(-2).join("."),fo;ot.getInstance=function(){fo=g.c2("yt.clientLocationService.instance");fo||(fo=new ot,g.hS("yt.clientLocationService.instance",fo));return fo}; g.l=ot.prototype; g.l.setLocationOnInnerTubeContext=function(h){h.client||(h.client={});if(this.X)h.client.locationInfo||(h.client.locationInfo={}),h.client.locationInfo.latitudeE7=Math.floor(this.X.coords.latitude*1E7),h.client.locationInfo.longitudeE7=Math.floor(this.X.coords.longitude*1E7),h.client.locationInfo.horizontalAccuracyMeters=Math.round(this.X.coords.accuracy),h.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.G||this.locationPlayabilityToken)h.client.locationPlayabilityToken=this.G|| this.locationPlayabilityToken}; g.l.handleResponse=function(h){var W;h=(W=h.responseContext)==null?void 0:W.locationPlayabilityToken;h!==void 0&&(this.locationPlayabilityToken=h,this.X=void 0,g.X_("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=mk(this))&&this.localStorage.set("yt-location-playability-token",h,15552E3):g.UB("YT_CL",JSON.stringify({loctok:h}),15552E3,F_l,!0))}; g.l.clearLocationPlayabilityToken=function(h){h==="TVHTML5"?(this.localStorage=mk(this))&&this.localStorage.remove("yt-location-playability-token"):g.MC("YT_CL");this.G=void 0;this.W!==-1&&(clearTimeout(this.W),this.W=-1)}; g.l.getCurrentPositionFromGeolocation=function(){var h=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var W=!1,c=1E4;g.X_("INNERTUBE_CLIENT_NAME")==="MWEB"&&(W=!0,c=15E3);return new Promise(function(V,H){navigator.geolocation.getCurrentPosition(function(B){h.X=B;V(B)},function(B){H(B)},{enableHighAccuracy:W, maximumAge:0,timeout:c})})}; g.l.createUnpluggedLocationInfo=function(h){var W={};h=h.coords;if(h==null?0:h.latitude)W.latitudeE7=Math.floor(h.latitude*1E7);if(h==null?0:h.longitude)W.longitudeE7=Math.floor(h.longitude*1E7);if(h==null?0:h.accuracy)W.locationRadiusMeters=Math.round(h.accuracy);return W}; g.l.createLocationInfo=function(h){var W={};h=h.coords;if(h==null?0:h.latitude)W.latitudeE7=Math.floor(h.latitude*1E7);if(h==null?0:h.longitude)W.longitudeE7=Math.floor(h.longitude*1E7);return W};g.l=PC5.prototype;g.l.contains=function(h){return Object.prototype.hasOwnProperty.call(this.X,h)}; g.l.get=function(h){if(this.contains(h))return this.X[h]}; g.l.set=function(h,W){this.X[h]=W}; g.l.UU=function(){return Object.keys(this.X)}; g.l.remove=function(h){delete this.X[h]};It.prototype.getModuleId=function(h){return h.serviceId.getModuleId()}; It.prototype.get=function(h){a:{var W=this.mappings.get(h.toString());switch(W.type){case "mapping":h=W.value;break a;case "factory":W=W.value();this.mappings.set(h.toString(),{type:"mapping",value:W});h=W;break a;default:h=dF(W)}}return h}; It.prototype.registerService=function(h,W){this.mappings.set(h.toString(),{type:"mapping",value:W});return h}; new It;var b5={},fu5=(b5.WEB_UNPLUGGED="^unplugged/",b5.WEB_UNPLUGGED_ONBOARDING="^unplugged/",b5.WEB_UNPLUGGED_OPS="^unplugged/",b5.WEB_UNPLUGGED_PUBLIC="^unplugged/",b5.WEB_CREATOR="^creator/",b5.WEB_KIDS="^kids/",b5.WEB_EXPERIMENTS="^experiments/",b5.WEB_MUSIC="^music/",b5.WEB_REMIX="^music/",b5.WEB_MUSIC_EMBEDDED_PLAYER="^music/",b5.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",b5);SR.prototype.C=function(h,W,c){W=W===void 0?{}:W;c=c===void 0?BY:c;var V={context:g.pV(h.clickTrackingParams,!1,this.Y)};var H=this.W(h);if(H){this.X(V,H,W);var B;W=g.OA(this.G());(H=(B=g.v(h.commandMetadata,g.i5))==null?void 0:B.apiUrl)&&(W=H);B=j_D(FA(W));h=Object.assign({},{command:h},void 0);V={input:B,bN:yn(B),Bj:V,config:h};V.config.nf?V.config.nf.identity=c:V.config.nf={identity:c};return V}c=new g.tP("Error: Failed to create Request from Command.",h);g.Qq(c)}; g.Hd.Object.defineProperties(SR.prototype,{Y:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.n(gT,SR);g.n(Dw,gT);Dw.prototype.C=function(){return{input:"/getDatasyncIdsEndpoint",bN:yn("/getDatasyncIdsEndpoint","GET"),Bj:{}}}; Dw.prototype.G=function(){return[]}; Dw.prototype.W=function(){}; Dw.prototype.X=function(){};var ysK={},rLv=(ysK.GET_DATASYNC_IDS=Yx(Dw),ysK);var Tx={},Pi2=(Tx["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",Tx["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",Tx["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",Tx["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",Tx["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",Tx["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",Tx["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", Tx["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",Tx["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",Tx["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",Tx["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",Tx["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",Tx["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",Tx["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",Tx["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", Tx["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",Tx["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",Tx["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",Tx["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",Tx["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",Tx["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",Tx["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", Tx["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",Tx.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",Tx["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",Tx["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",Tx["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",Tx["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",Tx["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",Tx["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", Tx["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",Tx["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",Tx["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",Tx["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",Tx["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",Tx["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",Tx["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",Tx["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",Tx["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",Tx["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",Tx.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",Tx["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",Tx["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",Tx["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",Tx["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",Tx["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",Tx["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",Tx["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",Tx["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",Tx["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",Tx["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",Tx["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Tx["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Tx["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",Tx["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",Tx["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",Tx["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",Tx["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",Tx["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",Tx["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",Tx["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",Tx["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", Tx["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",Tx["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",Tx["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",Tx["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",Tx["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",Tx["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",Tx["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",Tx["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",Tx["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", Tx["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",Tx["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",Tx["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",Tx["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",Tx["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",Tx["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",Tx["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",Tx["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", Tx),Nt={},mvp=(Nt.auto_search="LATENCY_ACTION_AUTO_SEARCH",Nt.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Nt.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Nt.app_startup="LATENCY_ACTION_APP_STARTUP",Nt.browse="LATENCY_ACTION_BROWSE",Nt.cast_splash="LATENCY_ACTION_CAST_SPLASH",Nt.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Nt.channels="LATENCY_ACTION_CHANNELS",Nt.chips="LATENCY_ACTION_CHIPS",Nt.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Nt.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", Nt.editor="LATENCY_ACTION_EDITOR",Nt.embed="LATENCY_ACTION_EMBED",Nt.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Nt.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Nt.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Nt.explore="LATENCY_ACTION_EXPLORE",Nt.favorites="LATENCY_ACTION_FAVORITES",Nt.home="LATENCY_ACTION_HOME",Nt.inboarding="LATENCY_ACTION_INBOARDING",Nt.landing="LATENCY_ACTION_LANDING",Nt.learning="LATENCY_ACTION_LEARNING", Nt.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",Nt.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",Nt.library="LATENCY_ACTION_LIBRARY",Nt.live="LATENCY_ACTION_LIVE",Nt.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Nt.management="LATENCY_ACTION_MANAGEMENT",Nt.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Nt.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Nt.onboarding="LATENCY_ACTION_ONBOARDING",Nt.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", Nt.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Nt.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Nt.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Nt.prebuffer="LATENCY_ACTION_PREBUFFER",Nt.prefetch="LATENCY_ACTION_PREFETCH",Nt.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Nt.profile_switcher="LATENCY_ACTION_LOGIN",Nt.projects="LATENCY_ACTION_PROJECTS",Nt.reel_watch="LATENCY_ACTION_REEL_WATCH",Nt.results="LATENCY_ACTION_RESULTS",Nt.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", Nt.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Nt.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Nt.review="LATENCY_ACTION_REVIEW",Nt.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Nt.search_ui="LATENCY_ACTION_SEARCH_UI",Nt.search_suggest="LATENCY_ACTION_SUGGEST",Nt.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Nt.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Nt.seek="LATENCY_ACTION_PLAYER_SEEK",Nt.settings="LATENCY_ACTION_SETTINGS",Nt.store="LATENCY_ACTION_STORE", Nt.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Nt.tenx="LATENCY_ACTION_TENX",Nt.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Nt.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Nt.watch="LATENCY_ACTION_WATCH",Nt.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Nt["watch,watch7"]="LATENCY_ACTION_WATCH",Nt["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Nt["watch,watch7ad"]="LATENCY_ACTION_WATCH",Nt["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Nt.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", Nt.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Nt.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Nt.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Nt.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Nt.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Nt.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Nt.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Nt);Object.assign(mvp,Pi2);g.n(H5,Er);var V5l=new RS("aft-recorded",H5);var frf=g.k5.ytLoggingGelSequenceIdObj_||{};g.hS("ytLoggingGelSequenceIdObj_",frf);var R2=g.k5.ytLoggingLatencyUsageStats_||{};g.hS("ytLoggingLatencyUsageStats_",R2);B5.prototype.tick=function(h,W,c,V){Jm(this,"tick_"+h+"_"+W)||g.V5("latencyActionTicked",{tickName:h,clientActionNonce:W},{timestamp:c,cttAuthInfo:V})}; B5.prototype.info=function(h,W,c){var V=Object.keys(h).join("");Jm(this,"info_"+V+"_"+W)||(h=Object.assign({},h),h.clientActionNonce=W,g.V5("latencyActionInfo",h,{cttAuthInfo:c}))}; B5.prototype.jspbInfo=function(h,W,c){for(var V="",H=0;H=H.length?(W.append(H),h-=H.length):h?(W.append(new Uint8Array(H.buffer,H.byteOffset,h)),c.append(new Uint8Array(H.buffer,H.byteOffset+h,H.length-h)),h=0):c.append(H);return{zF:W,t2:c}}; hQ.prototype.isFocused=function(h){return h>=this.G&&h=64&&(this.N.set(h.subarray(0,64-this.W),this.W),W=64-this.W,this.W=0,sl5(this,this.N,0));for(;W+64<=c;W+=64)sl5(this,h,W);W=this.start&&(h=2&&c.ssdaiAdsConfig&&sA("Unexpected ad placement renderers length",h.slot,null,{length:V.length});var H;((H=c.adSlots)==null?0:H.some(function(B){var E,J;return((E=g.v(B,hO))==null?void 0:(J=E.adSlotMetadata)==null?void 0:J.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||V.some(function(B){var E,J,u,d; return!!((E=B.renderer)==null?0:(J=E.linearAdSequenceRenderer)==null?0:(u=J.linearAds)==null?0:u.length)||!((d=B.renderer)==null||!d.instreamVideoAdRenderer)})||A5T(h)})}; pm.prototype.OS=function(){GE5(this.X)};Im.prototype.Mu=function(){var h=this;d_4(this.W,function(){var W=ov(h.slot.clientMetadata,"metadata_type_ad_break_request_data");return W.cueProcessedMs?h.X.get().fetch({R7:W.getAdBreakUrl,qe:new g.t$(W.VF,W.EH),cueProcessedMs:W.cueProcessedMs}):h.X.get().fetch({R7:W.getAdBreakUrl,qe:new g.t$(W.VF,W.EH)})})}; Im.prototype.OS=function(){GE5(this.W)};Ye.prototype.Mu=function(){var h=this.slot.clientMetadata,W,c=(W=this.slot.fulfilledLayout)!=null?W:ov(h,"metadata_type_fulfilled_layout");Ilp(this.callback,this.slot,c)}; Ye.prototype.OS=function(){Vx(this.callback,this.slot,new S("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")};SH.prototype.build=function(h,W){return W.fulfilledLayout||OX(W,{Aw:["metadata_type_fulfilled_layout"]})?new Ye(h,W):this.G(h,W)};g.n(gL,SH); gL.prototype.G=function(h,W){if(OX(W,{Aw:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new pm(h,W,this.X,this.W,this.eK,this.hk,this.nM,this.Qg,this.wI);if(OX(W,{Aw:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Im(h,W,this.X,this.W,this.eK,this.hk);throw new S("Unsupported slot with type: "+W.slotType+" and client metadata: "+pA(W.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.n(DG,SH);DG.prototype.G=function(h,W){throw new S("Unsupported slot with type: "+W.slotType+" and client metadata: "+pA(W.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.l=U_T.prototype;g.l.KJ=function(){return this.slot}; g.l.sf=function(){return this.layout}; g.l.init=function(){}; g.l.release=function(){}; g.l.startRendering=function(h){if(h.layoutId!==this.layout.layoutId)this.callback.IV(this.slot,h,new vq("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 W=ov(h.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.JI(this.slot,h),Y0D(this.G, this.slot,W)):sA("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,h)}}; g.l.xd=function(h,W){h.layoutId!==this.layout.layoutId?this.callback.IV(this.slot,h,new vq("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.Gx(this.slot,h,W),M27(this),Ftl(this))};g.n(ch,g.h1);g.l=ch.prototype;g.l.KJ=function(){return this.W.slot}; g.l.sf=function(){return this.W.layout}; g.l.init=function(){this.G.get().addListener(this)}; g.l.release=function(){this.G.get().removeListener(this);this.dispose()}; g.l.OA=function(){}; g.l.TT=function(){}; g.l.VR=function(){}; g.l.hL=function(){}; g.l.startRendering=function(h){var W=this;Wh(this.W,h,function(){return void W.AN()})}; g.l.AN=function(){this.G.get().AN(this.X)}; g.l.xd=function(h,W){var c=this;Wh(this.W,h,function(){var V=c.G.get();mIQ(V,c.X,3);c.X=[];c.callback.Gx(c.slot,h,W)})}; g.l.dE=function(){this.G.gE()||this.G.get().removeListener(this);g.h1.prototype.dE.call(this)}; g.Hd.Object.defineProperties(ch.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.W.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.W.layout}}});Jl.prototype.Jh=function(h,W){W=W===void 0?!1:W;var c=(this.G.get(h)||[]).concat();if(W=W&&bx7(h)){var V=this.G.get(W);V&&c.push.apply(c,g.rN(V))}Gq(this,h,c);this.X.add(h);W&&this.X.add(W)}; Jl.prototype.s5=function(h,W){W=W===void 0?!1:W;if(!this.X.has(h)){var c=W&&bx7(h);c&&(W=!this.X.has(c));this.Jh(h,W)}};g.n(Xzl,kN);g.n(lB,ch);g.l=lB.prototype;g.l.ez=function(h,W){Hh("ads-engagement-panel-layout",h,this.N.get().ll,this.nM.get(),this.Y,this.C,this.KJ(),this.sf(),W)}; g.l.startRendering=function(h){$n(this.iB,this.KJ(),this.sf(),g.v(this.sf().renderingContent,Ka),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(W,c,V,H,B){return new Xzl(W,c,V,H,B)},this.X); ch.prototype.startRendering.call(this,h)}; g.l.JI=function(h,W){this.C===W.layoutId&&(this.Y===null?this.Y=this.nM.get().aF():sA("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.l.Gx=function(){}; g.l.Rd=function(){}; g.l.HB=function(){}; g.l.Qi=function(){}; g.l.v9=function(){}; g.l.bT=function(){}; g.l.LG=function(){}; g.l.Nh=function(){}; g.l.BH=function(){}; g.l.Te=function(){}; g.l.Cp=function(){}; g.l.dE=function(){WH(this.Bi(),this);ch.prototype.dE.call(this)};g.n(vNU,kN);g.n(n5,ch);g.l=n5.prototype;g.l.ez=function(h,W){Hh("banner-image",h,this.N.get().ll,this.nM.get(),this.Y,this.C,this.KJ(),this.sf(),W)}; g.l.startRendering=function(h){$n(this.iB,this.KJ(),this.sf(),g.v(this.sf().renderingContent,La),this.callback,"metadata_type_banner_image_layout_view_model",function(W,c,V,H,B){return new vNU(W,c,V,H,B)},this.X); ch.prototype.startRendering.call(this,h)}; g.l.JI=function(h,W){this.C===W.layoutId&&(this.Y===null?this.Y=this.nM.get().aF():sA("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.l.Gx=function(){}; g.l.Rd=function(){}; g.l.HB=function(){}; g.l.Qi=function(){}; g.l.v9=function(){}; g.l.bT=function(){}; g.l.LG=function(){}; g.l.Nh=function(){}; g.l.BH=function(){}; g.l.Te=function(){}; g.l.Cp=function(){}; g.l.dE=function(){WH(this.Bi(),this);ch.prototype.dE.call(this)};g.n(j1,kN);g.n(a1,ch);g.l=a1.prototype;g.l.ez=function(h,W){Hh("action-companion",h,this.N.get().ll,this.nM.get(),this.Y,this.C,this.KJ(),this.sf(),W)}; g.l.startRendering=function(h){$n(this.iB,this.KJ(),this.sf(),g.v(this.sf().renderingContent,eT),this.callback,"metadata_type_action_companion_ad_renderer",function(W,c,V,H,B){return new j1(W,c,V,H,B)},this.X); ch.prototype.startRendering.call(this,h)}; g.l.JI=function(h,W){W.layoutId===this.layout.layoutId?this.iB.s5("impression"):this.C===W.layoutId&&(this.Y===null?this.Y=this.nM.get().aF():sA("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.l.Gx=function(){}; g.l.Rd=function(){}; g.l.HB=function(){}; g.l.Qi=function(){}; g.l.v9=function(){}; g.l.bT=function(){}; g.l.LG=function(){}; g.l.Nh=function(){}; g.l.BH=function(){}; g.l.Te=function(){}; g.l.Cp=function(){}; g.l.dE=function(){WH(this.Bi(),this);ch.prototype.dE.call(this)};g.n(pzl,kN);g.n(e1,ch);g.l=e1.prototype;g.l.ez=function(h,W){Hh("image-companion",h,this.N.get().ll,this.nM.get(),this.Y,this.C,this.KJ(),this.sf(),W)}; g.l.startRendering=function(h){$n(this.iB,this.KJ(),this.sf(),g.v(this.sf().renderingContent,zG),this.callback,"metadata_type_image_companion_ad_renderer",function(W,c,V,H,B){return new pzl(W,c,V,H,B)},this.X); ch.prototype.startRendering.call(this,h)}; g.l.JI=function(h,W){W.layoutId===this.layout.layoutId?this.iB.s5("impression"):this.C===W.layoutId&&(this.Y===null?this.Y=this.nM.get().aF():sA("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.l.Gx=function(){}; g.l.Rd=function(){}; g.l.HB=function(){}; g.l.Qi=function(){}; g.l.v9=function(){}; g.l.bT=function(){}; g.l.LG=function(){}; g.l.Nh=function(){}; g.l.BH=function(){}; g.l.Te=function(){}; g.l.Cp=function(){}; g.l.dE=function(){WH(this.Bi(),this);ch.prototype.dE.call(this)};g.n(Y97,kN);g.n(zq,ch);g.l=zq.prototype;g.l.ez=function(h,W){Hh("shopping-companion",h,this.N.get().ll,this.nM.get(),this.Y,this.C,this.KJ(),this.sf(),W)}; g.l.startRendering=function(h){$n(this.iB,this.KJ(),this.sf(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(W,c,V,H,B){return new Y97(W,c,V,H,B)},this.X); ch.prototype.startRendering.call(this,h)}; g.l.JI=function(h,W){W.layoutId===this.layout.layoutId?this.iB.s5("impression"):this.C===W.layoutId&&(this.Y===null?this.Y=this.nM.get().aF():sA("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.l.Gx=function(){}; g.l.Rd=function(){}; g.l.HB=function(){}; g.l.Qi=function(){}; g.l.v9=function(){}; g.l.bT=function(){}; g.l.LG=function(){}; g.l.Nh=function(){}; g.l.BH=function(){}; g.l.Te=function(){}; g.l.Cp=function(){}; g.l.dE=function(){WH(this.Bi(),this);ch.prototype.dE.call(this)};g.n(L5,ch);g.l=L5.prototype;g.l.startRendering=function(h){$n(this.iB,this.KJ(),this.sf(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(W,c,V,H,B){return new j1(W,c,V,H,B)},this.X); ch.prototype.startRendering.call(this,h)}; g.l.JI=function(){}; g.l.Gx=function(){}; g.l.Rd=function(){}; g.l.HB=function(){}; g.l.Qi=function(){}; g.l.v9=function(){}; g.l.bT=function(){}; g.l.LG=function(){}; g.l.Nh=function(){}; g.l.BH=function(){}; g.l.Te=function(){}; g.l.Cp=function(){}; g.l.dE=function(){WH(this.Bi(),this);ch.prototype.dE.call(this)}; g.l.ez=function(){};g.l=kEN.prototype;g.l.KJ=function(){return this.slot}; g.l.sf=function(){return this.layout}; g.l.init=function(){this.Qg.get().addListener(this);this.Qg.get().Hr.push(this);var h=ov(this.layout.clientMetadata,"metadata_type_video_length_seconds"),W=ov(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Bh(this.layout.wE)&&$V(this.Gz.get(),this.layout.layoutId,{qf:W,Sk:h,listener:this})}; g.l.release=function(){this.Qg.get().removeListener(this);TtN(this.Qg.get(),this);Bh(this.layout.wE)&&sF(this.Gz.get(),this.layout.layoutId)}; g.l.startRendering=function(h){this.callback.JI(this.slot,h)}; g.l.xd=function(h,W){BtL(this.hk.get())&&!this.X&&(this.iB.s5("abandon"),this.X=!0);this.callback.Gx(this.slot,h,W)}; g.l.Rx=function(h){switch(h.id){case "part2viewed":this.iB.s5("start");this.iB.s5("impression");break;case "videoplaytime25":this.iB.s5("first_quartile");break;case "videoplaytime50":this.iB.s5("midpoint");break;case "videoplaytime75":this.iB.s5("third_quartile");break;case "videoplaytime100":BtL(this.hk.get())?this.X||(this.iB.s5("complete"),this.X=!0):this.iB.s5("complete");xn(this.iB)&&rz(this.iB,Infinity,!0);EdN(this.hk.get())&&QJ(this.W,Infinity,!0);break;case "engagedview":xn(this.iB)||this.iB.s5("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:sA("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.l.onVolumeChange=function(){}; g.l.EJ=function(){}; g.l.kL=function(){}; g.l.Fb=function(){}; g.l.onFullscreenToggled=function(){}; g.l.jL=function(){}; g.l.Kw=function(){}; g.l.FZ=function(h){EdN(this.hk.get())&&QJ(this.W,h*1E3,!1);xn(this.iB)&&rz(this.iB,h*1E3,!1)}; g.l.Ur=function(){}; g.l.h$=function(){this.iB.s5("active_view_measurable")}; g.l.Ps=function(){this.iB.s5("active_view_viewable")}; g.l.d_=function(){this.iB.s5("active_view_fully_viewable_audible_half_duration")}; g.l.YH=function(){this.iB.s5("audio_measurable")}; g.l.GG=function(){this.iB.s5("audio_audible")};g.n(iB,ch);g.l=iB.prototype;g.l.init=function(){ch.prototype.init.call(this);var h=ov(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),W={adsClientData:this.layout.m8};this.X.push(new Zw(h,this.layout.layoutId,ov(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),W,!0))}; g.l.Wh=function(){this.Y||this.Qg.get().resumeVideo(1)}; g.l.startRendering=function(h){ch.prototype.startRendering.call(this,h);Gz(this.Qg.get(),"ad-showing");this.callback.JI(this.slot,h);this.C.RS=this}; g.l.xd=function(h,W){ch.prototype.xd.call(this,h,W);Zz(this.Qg.get(),"ad-showing");hv(this.C,this)}; g.l.ez=function(h){switch(h){case "ad-info-icon-button":(this.Y=this.Qg.get().i8(1))||this.Qg.get().pauseVideo();break;case "visit-advertiser":this.Qg.get().pauseVideo()}}; g.l.dE=function(){ch.prototype.dE.call(this)};g.n(K5,kN);g.n(Al,ch);g.l=Al.prototype;g.l.startRendering=function(h){$n(this.iB,this.KJ(),this.sf(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(W,c,V,H,B){return new K5(W,c,V,H,B)},this.X); ch.prototype.startRendering.call(this,h)}; g.l.JI=function(){}; g.l.Gx=function(){}; g.l.Rd=function(){}; g.l.HB=function(){}; g.l.Qi=function(){}; g.l.v9=function(){}; g.l.bT=function(){}; g.l.LG=function(){}; g.l.Nh=function(){}; g.l.BH=function(){}; g.l.Te=function(){}; g.l.Cp=function(){}; g.l.dE=function(){WH(this.Bi(),this);ch.prototype.dE.call(this)}; g.l.ez=function(){};g.n(Ue,kN);g.n(C5,ch);C5.prototype.init=function(){ch.prototype.init.call(this);this.X.push(new Ue(g.v(this.layout.renderingContent,mE),this.layout.layoutId,{adsClientData:this.layout.m8}))}; C5.prototype.ez=function(){Ip(this.Y.get(),this.C)&&se(this.nM.get(),3)}; C5.prototype.startRendering=function(h){ch.prototype.startRendering.call(this,h);this.callback.JI(this.slot,h)}; C5.prototype.dE=function(){ch.prototype.dE.call(this)};g.n(Mb,kN);g.n(Fu,ch);Fu.prototype.init=function(){ch.prototype.init.call(this);var h=g.v(this.layout.renderingContent,I1)||ov(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),W=VJ(this.iB);this.X.push(new Mb(h,W,this.layout.layoutId,{adsClientData:this.layout.m8},!0,!0))}; Fu.prototype.startRendering=function(h){ch.prototype.startRendering.call(this,h);this.callback.JI(this.slot,h)}; Fu.prototype.ez=function(h,W){if(W===this.layout.layoutId)switch(h){case "skip-button":var c;(h=(c=ov(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:c.current)&&h.tP(this.KJ(),this.layout)}}; Fu.prototype.dE=function(){ch.prototype.dE.call(this)};Ph.prototype.build=function(h,W,c,V){if(yJ(V,{Aw:["metadata_type_ad_break_response_data"],iV:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new U_T(h,c,V,this.W,this.G,this.X);throw new vq("Unsupported layout with type: "+V.layoutType+" and client metadata: "+pA(V.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.n(c1k,kN);g.n(f5,ch);g.l=f5.prototype;g.l.ez=function(h,W){Hh("ads-engagement-panel",h,this.N.get().ll,this.nM.get(),this.Y,this.C,this.KJ(),this.sf(),W)}; g.l.startRendering=function(h){$n(this.iB,this.KJ(),this.sf(),g.v(this.sf().renderingContent,QA),this.callback,"metadata_type_ads_engagement_panel_renderer",function(W,c,V,H,B){return new c1k(W,c,V,H,B)},this.X); ch.prototype.startRendering.call(this,h)}; g.l.JI=function(h,W){W.layoutId===this.layout.layoutId?this.iB.s5("impression"):this.C===W.layoutId&&(this.Y===null?this.Y=this.nM.get().aF():sA("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.l.Gx=function(){}; g.l.Rd=function(){}; g.l.HB=function(){}; g.l.Qi=function(){}; g.l.v9=function(){}; g.l.bT=function(){}; g.l.LG=function(){}; g.l.Nh=function(){}; g.l.BH=function(){}; g.l.Te=function(){}; g.l.Cp=function(){}; g.l.dE=function(){WH(this.Bi(),this);ch.prototype.dE.call(this)};g.n(bB,ch);g.l=bB.prototype;g.l.ez=function(h,W){Hh("top-banner-image-text-icon-buttoned",h,this.N.get().ll,this.nM.get(),this.Y,this.C,this.KJ(),this.sf(),W)}; g.l.startRendering=function(h){$n(this.iB,this.KJ(),this.sf(),g.v(this.sf().renderingContent,iz),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(W,c,V,H,B){return new K5(W,c,V,H,B)},this.X); ch.prototype.startRendering.call(this,h)}; g.l.JI=function(h,W){this.C===W.layoutId&&(this.Y===null?this.Y=this.nM.get().aF():sA("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.l.Gx=function(){}; g.l.Rd=function(){}; g.l.HB=function(){}; g.l.Qi=function(){}; g.l.v9=function(){}; g.l.bT=function(){}; g.l.LG=function(){}; g.l.Nh=function(){}; g.l.BH=function(){}; g.l.Te=function(){}; g.l.Cp=function(){}; g.l.dE=function(){WH(this.Bi(),this);ch.prototype.dE.call(this)};seh.prototype.build=function(h,W,c,V){if(yJ(V,VL4())||g.v(V.renderingContent,QA)!==void 0)return new f5(h,c,V,this.VA,this.nM,this.Bi,this.Gz,this.X);if(yJ(V,oNL())||g.v(V.renderingContent,eT)!==void 0)return new a1(h,c,V,this.VA,this.nM,this.Bi,this.Gz,this.X);if(yJ(V,ITU())||g.v(V.renderingContent,zG)!==void 0)return new e1(h,c,V,this.VA,this.nM,this.Bi,this.Gz,this.X);if(yJ(V,OxQ()))return new zq(h,c,V,this.VA,this.nM,this.Bi,this.Gz,this.X);if(yJ(V,wzN()))return new L5(h,c,V,this.VA,this.nM,this.Bi, this.Gz,this.X);if(yJ(V,m_N())||g.v(V.renderingContent,La)!==void 0)return new n5(h,c,V,this.VA,this.nM,this.Bi,this.Gz,this.X);if(yJ(V,$qD())||g.v(V.renderingContent,iz)!==void 0)return new bB(h,c,V,this.VA,this.nM,this.Bi,this.Gz,this.X);if(yJ(V,h$7()))return new Al(h,c,V,this.VA,this.nM,this.Bi,this.Gz,this.X);if(yJ(V,t2l())||g.v(V.renderingContent,Ka)!==void 0)return new lB(h,c,V,this.VA,this.nM,this.Bi,this.Gz,this.X);throw new vq("Unsupported layout with type: "+V.layoutType+" and client metadata: "+ pA(V.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};H4U.prototype.build=function(h,W,c,V){if(yJ(V,{Aw:["metadata_type_linked_player_bytes_layout_id"],iV:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new C5(h,c,V,this.VA,this.nM,this.X);throw new vq("Unsupported layout with type: "+V.layoutType+" and client metadata: "+pA(V.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.l=B7Q.prototype;g.l.KJ=function(){return this.slot}; g.l.sf=function(){return this.layout}; g.l.init=function(){}; g.l.release=function(){}; g.l.startRendering=function(h){h.layoutId!==this.layout.layoutId?this.callback.IV(this.slot,h,new vq("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.JI(this.slot,h),this.iB.s5("impression"),BS(this.sJ,h,"normal"))}; g.l.xd=function(h,W){h.layoutId!==this.layout.layoutId?this.callback.IV(this.slot,h,new vq("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.Gx(this.slot,h,W)};g.l=R$k.prototype;g.l.KJ=function(){return this.slot}; g.l.sf=function(){return this.layout}; g.l.init=function(){}; g.l.release=function(){}; g.l.startRendering=function(h){h.layoutId!==this.layout.layoutId?this.callback.IV(this.slot,h,new vq("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.JI(this.slot,h),this.iB.s5("impression"),BS(this.sJ,h,"normal"))}; g.l.xd=function(h,W){h.layoutId!==this.layout.layoutId?this.callback.IV(this.slot,h,new vq("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.Gx(this.slot,h,W)};Tq.prototype.build=function(h,W,c,V){if(!this.hk.get().L.B().j("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(yJ(V,EBk()))return new B7Q(h,c,V,this.nM,this.sJ)}else if(yJ(V,{Aw:[],iV:["LAYOUT_TYPE_FORECASTING"]}))return new R$k(h,c,V,this.nM,this.sJ);throw new vq("Unsupported layout with type: "+V.layoutType+" and client metadata: "+pA(V.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.n(dqU,kN);g.n(Nb,ch);g.l=Nb.prototype;g.l.init=function(){ch.prototype.init.call(this);var h=g.v(this.layout.renderingContent,p5)||ov(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),W={adsClientData:this.layout.m8};this.X.push(new dqU(h,ov(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,W))}; g.l.Wh=function(){this.Y||this.Qg.get().resumeVideo(2)}; g.l.startRendering=function(h){ch.prototype.startRendering.call(this,h);this.callback.JI(this.slot,h);this.C.RS=this}; g.l.xd=function(h,W){ch.prototype.xd.call(this,h,W);hv(this.C,this)}; g.l.ez=function(h,W){if(!Fo(this.hk.get(),"stop_handling_click_for_non_rendering_overlay_layout")||W===this.layout.layoutId){if(Ip(this.N.get(),this.S))switch(h){case "visit-advertiser-link":se(this.nM.get(),3)}switch(h){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.Y||this.Qg.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.Y=this.Qg.get().i8(2))||this.Qg.get().pauseVideo();break; case "visit-advertiser-link":this.Qg.get().pauseVideo();GpQ(this).mY();break;case "skip-button":if(h=GpQ(this),this.layout.renderingContent&&!NO(this.layout.clientMetadata,"metadata_type_dai")||!h||!h.Ri){var c;(h=(c=ov(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:c.current)&&h.tP(this.KJ(),this.layout)}else sA("Requesting to skip by LegacyPlayerBytes when components enabled"),h.QP(this.KJ(),this.layout)}}}; g.l.dE=function(){ch.prototype.dE.call(this)};g.n(Xu,ch);g.l=Xu.prototype;g.l.init=function(){ch.prototype.init.call(this);var h=g.v(this.layout.renderingContent,o1)||ov(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),W={adsClientData:this.layout.m8},c;(c=!!this.layout.renderingContent)||(c=tl(this),c=!(c&&c.Ri));this.X.push(new Zw(h,this.layout.layoutId,ov(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),W,c))}; g.l.Wh=function(){this.Y||this.Qg.get().resumeVideo(2)}; g.l.startRendering=function(h){ch.prototype.startRendering.call(this,h);this.callback.JI(this.slot,h);this.C.RS=this}; g.l.xd=function(h,W){ch.prototype.xd.call(this,h,W);hv(this.C,this)}; g.l.ez=function(h,W){if(!this.hk||!Fo(this.hk.get(),"stop_handling_click_for_non_rendering_overlay_layout")||W===this.layout.layoutId){if(Ip(this.N.get(),this.S))switch(h){case "visit-advertiser":se(this.nM.get(),3)}switch(h){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.Y||this.Qg.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.Y=this.Qg.get().i8(2))||this.Qg.get().pauseVideo();break; case "visit-advertiser":this.Qg.get().pauseVideo();tl(this).mY();break;case "skip-button":if(h=tl(this),this.layout.renderingContent&&!NO(this.layout.clientMetadata,"metadata_type_dai")||!h||!h.Ri){var c;(h=(c=ov(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:c.current)&&h.tP(this.KJ(),this.layout)}else sA("Requesting to skip by LegacyPlayerBytes"),h.QP(this.KJ(),this.layout)}}}; g.l.dE=function(){ch.prototype.dE.call(this)};g.n(r1N,kN);g.n(vh,ch);g.l=vh.prototype;g.l.startRendering=function(h){var W=this;Wh(this.W,h,function(){W.X.push(new r1N(ov(W.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),h.layoutId,h.m8));W.AN();W.callback.JI(W.slot,h);g.Y(Vt(W.Qg.get(),1),512)&&W.callback.IV(W.KJ(),W.sf(),new vq("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.l.Kw=function(){}; g.l.jL=function(h){if(h.state.isError()){var W;this.callback.IV(this.KJ(),this.sf(),new vq("A player error happened during adNotify",{playerErrorCode:(W=h.state.FK)==null?void 0:W.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.l.onFullscreenToggled=function(){}; g.l.kL=function(){}; g.l.Fb=function(){}; g.l.EJ=function(){}; g.l.onVolumeChange=function(){}; g.l.Rx=function(){}; g.l.Ur=function(){}; g.l.ez=function(){};g.n(xqN,kN);g.n(mr,ch);mr.prototype.init=function(){ch.prototype.init.call(this);var h=g.v(this.layout.renderingContent,Yn),W=VJ(this.iB);this.X.push(new xqN(h,W,this.layout.layoutId,{adsClientData:this.layout.m8}))}; mr.prototype.startRendering=function(h){ch.prototype.startRendering.call(this,h);this.callback.JI(this.slot,h)}; mr.prototype.ez=function(h,W){if(W===this.layout.layoutId)switch(h){case "skip-button":var c;(h=(c=ov(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:c.current)&&h.tP(this.KJ(),this.layout)}}; mr.prototype.dE=function(){ch.prototype.dE.call(this)};lb7.prototype.build=function(h,W,c,V){if(h=Oe(h,c,V,this.VA,this.Qg,this.nM,this.W,this.X,this.hk))return h;throw new vq("Unsupported layout with type: "+V.layoutType+" and client metadata: "+pA(V.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.l=Dc.prototype;g.l.KJ=function(){return this.slot}; g.l.sf=function(){return this.layout}; g.l.init=function(){this.Qg.get().addListener(this);this.Qg.get().Hr.push(this);if(this.layout.renderingContent){var h=this.SO.get();h=Fm(h,1).QE/1E3}else h=ov(this.layout.clientMetadata,"metadata_type_video_length_seconds");var W=g.v(this.layout.renderingContent,XU),c=W?Ee(W.pings):ov(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");W=W?fTU(W.pings):ov(this.layout.clientMetadata,"metadata_type_active_view_identifier");Bh(this.layout.wE)&&$V(this.Gz.get(),this.layout.layoutId, {qf:c,Sk:h,listener:this,U0:W})}; g.l.release=function(){this.Qg.get().removeListener(this);TtN(this.Qg.get(),this);Bh(this.layout.wE)&&sF(this.Gz.get(),this.layout.layoutId)}; g.l.startRendering=function(h){this.callback.JI(this.slot,h)}; g.l.xd=function(h,W){wz(this,"abandon");this.callback.Gx(this.slot,h,W)}; g.l.Rx=function(h){switch(h.id){case "part2viewed":this.iB.s5("start");this.iB.s5("impression");break;case "videoplaytime25":this.iB.s5("first_quartile");break;case "videoplaytime50":this.iB.s5("midpoint");break;case "videoplaytime75":this.iB.s5("third_quartile");break;case "videoplaytime100":wz(this,"complete");xn(this.iB)&&rz(this.iB,Infinity,!0);break;case "engagedview":xn(this.iB)||this.iB.s5("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:sA("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.l.onVolumeChange=function(){}; g.l.EJ=function(){}; g.l.kL=function(){}; g.l.Fb=function(){}; g.l.onFullscreenToggled=function(){}; g.l.jL=function(h){this.X||(g.EA(h,4)&&!g.EA(h,2)?Zc(this.iB,"pause"):B8(h,4)<0&&!(B8(h,2)<0)&&Zc(this.iB,"resume"))}; g.l.Kw=function(){}; g.l.FZ=function(h){xn(this.iB)&&rz(this.iB,h*1E3,!1)}; g.l.Ur=function(){wz(this,"swipe")}; g.l.h$=function(){this.iB.s5("active_view_measurable")}; g.l.Ps=function(){this.iB.s5("active_view_viewable")}; g.l.d_=function(){this.iB.s5("active_view_fully_viewable_audible_half_duration")}; g.l.YH=function(){this.iB.s5("audio_measurable")}; g.l.GG=function(){this.iB.s5("audio_audible")};nBk.prototype.build=function(h,W,c,V){if(c.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.v(V.renderingContent,XU)!==void 0)return new Dc(h,c,V,this.Qg,this.nM,this.hk,this.Gz,this.SO);W=["metadata_type_ad_placement_config"];for(var H=g.e(uB()),B=H.next();!B.done;B=H.next())W.push(B.value);if(yJ(V,{Aw:W,iV:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return c.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new Dc(h,c,V,this.Qg,this.nM,this.hk,this.Gz,this.SO):new kEN(h,c,V,this.Qg,this.nM, this.LJ,this.hk,this.Gz);throw new vq("Unsupported layout with type: "+V.layoutType+" and client metadata: "+pA(V.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var c_={contentCpn:"",Du:new Map};UqN.prototype.Wi=function(h,W){var c={};W=Object.assign({},W,(c.cc=this.x4.D$(),c));this.x4.L.GV(h,W)};var Wx6,oA; Wx6={BSH:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",Lv9:"AUTHENTICATION_MALFORMED",Npg:"AUTHENTICATION_MISSING",mBV:"BAD_REQUEST",KvB:"CAST_SESSION_DEVICE_MISMATCHED",slN:"CAST_SESSION_VIDEO_MISMATCHED",UBV:"CAST_TOKEN_EXPIRED",oQN:"CAST_TOKEN_FAILED",ZwV:"CAST_TOKEN_MALFORMED",rGN:"CGI_PARAMS_MALFORMED",iwW:"CGI_PARAMS_MISSING",hpW:"DEVICE_FALLBACK",UvN:"GENERIC_WITH_LINK_AND_CPN",oCN:"ERROR_HDCP",ZUE:"LICENSE",iUM:"VIDEO_UNAVAILABLE",MXW:"FORMAT_UNAVAILABLE",ECB:"GEO_FAILURE", f8z:"HTML5_AUDIO_RENDERER_ERROR",zBM:"GENERIC_WITHOUT_LINK",Dqz:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",kAE:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",QDW:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",LLN:"HTML5_SPS_UMP_STATUS_REJECTED",qmg:"INVALID_DRM_MESSAGE",DoN:"PURCHASE_NOT_FOUND",kLz:"PURCHASE_REFUNDED",geI:"RENTAL_EXPIRED",Klk:"RETRYABLE_ERROR",yvW:"SERVER_ERROR",VlO:"SIGNATURE_EXPIRED",XpI:"STOPPED_BY_ANOTHER_PLAYBACK",W_z:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",awW:"STREAMING_NOT_ALLOWED", GP9:"STREAM_LICENSE_NOT_FOUND",z5N:"TOO_MANY_REQUESTS",DNH:"TOO_MANY_REQUESTS_WITH_LINK",kPE:"TOO_MANY_STREAMS_PER_ENTITLEMENT",QOB:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",JpO:"VIDEO_FORBIDDEN",IwB:"VIDEO_NOT_FOUND",RbB:"BROWSER_OR_EXTENSION_ERROR"};oA={}; g.Oq=(oA.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.",oA.DEVICE_FALLBACK="Este video no est\u00e1 disponible en este dispositivo.",oA.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", oA.LICENSE="Se produjo un error de licencia con este video.",oA.VIDEO_UNAVAILABLE="Video no disponible",oA.FORMAT_UNAVAILABLE="Este video no est\u00e1 disponible en la calidad seleccionada. Vuelve a intentarlo.",oA.GEO_FAILURE="Este video no est\u00e1 disponible en tu pa\u00eds.",oA.HTML5_AUDIO_RENDERER_ERROR="Se produjo un error en el procesador de audio. Reinicia tu computadora.",oA.GENERIC_WITHOUT_LINK="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.",oA.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de video.",oA.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",oA.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="No puedes reproducir este video en tu navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",oA.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", oA.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico para el sistema DRM no es v\u00e1lido.",oA.PURCHASE_NOT_FOUND="Este es un video pagado.",oA.PURCHASE_REFUNDED="La compra de este video se reembols\u00f3.",oA.RENTAL_EXPIRED="El per\u00edodo de alquiler de este video termin\u00f3.",oA.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo en la sesi\u00f3n de transmisi\u00f3n no coincide con el dispositivo solicitado.",oA.CAST_SESSION_VIDEO_MISMATCHED="El video en la sesi\u00f3n de transmisi\u00f3n no coincide con el video solicitado.", oA.CAST_TOKEN_FAILED="La sesi\u00f3n de transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",oA.CAST_TOKEN_EXPIRED="La sesi\u00f3n de transmisi\u00f3n termin\u00f3. Actualiza la p\u00e1gina.",oA.CAST_TOKEN_MALFORMED="Sesi\u00f3n de transmisi\u00f3n no v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",oA.SERVER_ERROR="Se produjo un error interno en el servidor. Vuelve a intentarlo m\u00e1s tarde.",oA.STOPPED_BY_ANOTHER_PLAYBACK= "Tu cuenta est\u00e1 reproduciendo este video en otra ubicaci\u00f3n. Vuelve a cargar la p\u00e1gina para continuar mirando.",oA.STREAM_LICENSE_NOT_FOUND="Se interrumpi\u00f3 la reproducci\u00f3n del video. Vuelve a intentarlo.",oA.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Utilizaste demasiadas direcciones IP o dispositivos durante las \u00faltimas 24 horas.",oA.STREAMING_NOT_ALLOWED="No se puede reproducir el video porque est\u00e1 vinculado con otro dispositivo.",oA.RETRYABLE_ERROR="Se produjo un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.", oA.TOO_MANY_REQUESTS="Accede para mirar el video.",oA.TOO_MANY_REQUESTS_WITH_LINK="Haz $BEGIN_LINKclic aqu\u00ed$END_LINK para mirar este video en YouTube.",oA.TOO_MANY_STREAMS_PER_USER="Se detuvo la reproducci\u00f3n porque se est\u00e1n reproduciendo demasiados videos que pertenecen a la misma cuenta.",oA.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se detuvo la reproducci\u00f3n porque este video se est\u00e1 reproduciendo en demasiados dispositivos.",oA.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.", oA.VIDEO_FORBIDDEN="El acceso a este video est\u00e1 prohibido.",oA.VIDEO_NOT_FOUND="No se puede encontrar este video.",oA.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",oA);var c36;var VIU=g.TF(),$PX=VIU.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!$PX||$PX.length<2)c36=void 0;else{var sXI=VIU.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);c36=sXI&&sXI.length===6?Number(sXI[5].replace("_",".")):0}var h4=c36,mO=h4>=0;g.n(g.lX,aI);g.lX.prototype.U=function(h,W,c,V,H){return aI.prototype.U.call(this,h,W,c,V,H)};var po={},bS=(po.FAIRPLAY="fairplay",po.PLAYREADY="playready",po.WIDEVINE="widevine",po.CLEARKEY=null,po.FLASHACCESS=null,po.UNKNOWN=null,po.WIDEVINE_CLASSIC=null,po);nF.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var IA={},tu=(IA.WIDTH={name:"width",video:!0,valid:640,CN:99999},IA.HEIGHT={name:"height",video:!0,valid:360,CN:99999},IA.FRAMERATE={name:"framerate",video:!0,valid:30,CN:9999},IA.BITRATE={name:"bitrate",video:!0,valid:3E5,CN:2E9},IA.EOTF={name:"eotf",video:!0,valid:"bt709",CN:"catavision"},IA.CHANNELS={name:"channels",video:!1,valid:2,CN:99},IA.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",CN:"invalidformat"},IA.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", CN:"nope"},IA.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",CN:"av99.0.05M.08"},IA.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",CN:"invalid"},IA.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",CN:"false"},IA);var Hs6=["h","H"],B9t=["9","("],Ewt=["9h","(h"],RGl=["8","*"],J3S=["a","A"],ujK=["o","O"],dPK=["m","M"],GXl=["mac3","MAC3"],ZsX=["meac3","MEAC3"],YO={},t$Q=(YO.h=Hs6,YO.H=Hs6,YO["9"]=B9t,YO["("]=B9t,YO["9h"]=Ewt,YO["(h"]=Ewt,YO["8"]=RGl,YO["*"]=RGl,YO.a=J3S,YO.A=J3S,YO.o=ujK,YO.O=ujK,YO.m=dPK,YO.M=dPK,YO.mac3=GXl,YO.MAC3=GXl,YO.meac3=ZsX,YO.MEAC3=ZsX,YO),r32=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),i5l=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var w={},LF=(w["0"]="f",w["160"]="h",w["133"]="h",w["134"]="h",w["135"]="h",w["136"]="h",w["137"]="h",w["264"]="h",w["266"]="h",w["138"]="h",w["298"]="h",w["299"]="h",w["304"]="h",w["305"]="h",w["214"]="h",w["216"]="h",w["374"]="h",w["375"]="h",w["140"]="a",w["141"]="a",w["327"]="sa",w["258"]="m",w["380"]="mac3",w["328"]="meac3",w["161"]="H",w["142"]="H",w["143"]="H",w["144"]="H",w["222"]="H",w["223"]="H",w["145"]="H",w["224"]="H",w["225"]="H",w["146"]="H",w["226"]="H",w["227"]="H",w["147"]="H",w["384"]= "H",w["376"]="H",w["385"]="H",w["377"]="H",w["149"]="A",w["261"]="M",w["381"]="MAC3",w["329"]="MEAC3",w["598"]="9",w["278"]="9",w["242"]="9",w["243"]="9",w["244"]="9",w["775"]="9",w["776"]="9",w["777"]="9",w["778"]="9",w["779"]="9",w["780"]="9",w["781"]="9",w["782"]="9",w["783"]="9",w["247"]="9",w["248"]="9",w["353"]="9",w["355"]="9",w["356"]="9",w["271"]="9",w["577"]="9",w["313"]="9",w["579"]="9",w["272"]="9",w["302"]="9",w["303"]="9",w["407"]="9",w["408"]="9",w["308"]="9",w["315"]="9",w["330"]= "9h",w["331"]="9h",w["332"]="9h",w["333"]="9h",w["334"]="9h",w["335"]="9h",w["336"]="9h",w["337"]="9h",w["338"]="so",w["600"]="o",w["250"]="o",w["251"]="o",w["774"]="o",w["194"]="*",w["195"]="*",w["220"]="*",w["221"]="*",w["196"]="*",w["197"]="*",w["279"]="(",w["280"]="(",w["317"]="(",w["318"]="(",w["273"]="(",w["274"]="(",w["357"]="(",w["358"]="(",w["275"]="(",w["359"]="(",w["360"]="(",w["276"]="(",w["583"]="(",w["584"]="(",w["314"]="(",w["585"]="(",w["561"]="(",w["277"]="(",w["361"]="(h",w["362"]= "(h",w["363"]="(h",w["364"]="(h",w["365"]="(h",w["366"]="(h",w["591"]="(h",w["592"]="(h",w["367"]="(h",w["586"]="(h",w["587"]="(h",w["368"]="(h",w["588"]="(h",w["562"]="(h",w["409"]="(",w["410"]="(",w["411"]="(",w["412"]="(",w["557"]="(",w["558"]="(",w["394"]="1",w["395"]="1",w["396"]="1",w["397"]="1",w["398"]="1",w["399"]="1",w["720"]="1",w["721"]="1",w["400"]="1",w["401"]="1",w["571"]="1",w["402"]="1",w["694"]="1h",w["695"]="1h",w["696"]="1h",w["697"]="1h",w["698"]="1h",w["699"]="1h",w["700"]="1h", w["701"]="1h",w["702"]="1h",w["703"]="1h",w["386"]="3",w["387"]="w",w["406"]="6",w["787"]="1",w["788"]="1",w["548"]="1e",w["549"]="1e",w["550"]="1e",w["551"]="1e",w["809"]="1e",w["810"]="1e",w["552"]="1e",w["811"]="1e",w["812"]="1e",w["553"]="1e",w["813"]="1e",w["814"]="1e",w["554"]="1e",w["815"]="1e",w["816"]="1e",w["555"]="1e",w["817"]="1e",w["818"]="1e",w["572"]="1e",w["556"]="1e",w["645"]="(",w["646"]="(",w["647"]="(",w["648"]="(",w["649"]="(",w["650"]="(",w["651"]="(",w["652"]="(",w["653"]="(", w["654"]="(",w["655"]="(",w["656"]="(",w["657"]="(",w["658"]="(",w["659"]="(",w["660"]="(",w["661"]="(",w["662"]="(",w["663"]="(",w["664"]="(",w["665"]="(",w["666"]="(",w["667"]="(",w["668"]="(",w["669"]="(",w["670"]="(",w["671"]="(",w["672"]="(",w["673"]="(",w["674"]="(h",w["675"]="(h",w["676"]="(h",w["677"]="(h",w["678"]="(h",w["679"]="(h",w["680"]="(h",w["681"]="(h",w["682"]="(h",w["683"]="(h",w["684"]="(h",w["685"]="(h",w["686"]="(h",w["687"]="(h",w["688"]="A",w["689"]="A",w["690"]="A",w["691"]= "MEAC3",w["773"]="i",w["806"]="I",w["805"]="I",w["829"]="9",w["830"]="9",w["831"]="9",w["832"]="9",w["833"]="9",w["834"]="9",w["835"]="9",w["836"]="9",w["892"]="9",w["893"]="9",w["837"]="9",w["838"]="9",w["839"]="9",w["840"]="9",w["841"]="(",w["842"]="(",w["843"]="(",w["844"]="(",w["845"]="(",w["846"]="(",w["847"]="(",w["848"]="(",w["894"]="(",w["895"]="(",w["849"]="(",w["850"]="(",w["851"]="(",w["852"]="(",w["865"]="9",w["866"]="9",w["867"]="9",w["868"]="9",w["869"]="9",w["870"]="9",w["871"]="9", w["872"]="9",w["896"]="9",w["897"]="9",w["873"]="9",w["874"]="9",w["875"]="9",w["876"]="9",w["877"]="(",w["878"]="(",w["879"]="(",w["880"]="(",w["881"]="(",w["882"]="(",w["883"]="(",w["884"]="(",w["898"]="(",w["899"]="(",w["885"]="(",w["886"]="(",w["887"]="(",w["888"]="(",w);var Oo={},aS4=(Oo.STEREO_LAYOUT_UNKNOWN=0,Oo.STEREO_LAYOUT_LEFT_RIGHT=1,Oo.STEREO_LAYOUT_TOP_BOTTOM=2,Oo);var S_,iy;S_={};g.aG=(S_.auto=0,S_.tiny=144,S_.light=144,S_.small=240,S_.medium=360,S_.large=480,S_.hd720=720,S_.hd1080=1080,S_.hd1440=1440,S_.hd2160=2160,S_.hd2880=2880,S_.highres=4320,S_);iy={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var zW="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");ed.prototype.isHdr=function(){return this.X==="smpte2084"||this.X==="arib-std-b67"};iX.prototype.Aq=function(){return this.containerType===2}; iX.prototype.isEncrypted=function(){return!!this.k9}; iX.prototype.Qr=function(){return!!this.audio}; iX.prototype.Sz=function(){return!!this.video}; var Un=!1;g.n(kT,g.h1);g.l=kT.prototype;g.l.appendBuffer=function(h,W,c){if(this.Vl.EF()!==this.appendWindowStart+this.start||this.Vl.FM()!==this.appendWindowEnd+this.start||this.Vl.FA()!==this.timestampOffset+this.start)this.Vl.supports(1),this.Vl.Q0(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Vl.OO(this.timestampOffset+this.start);this.Vl.appendBuffer(h,W,c)}; g.l.abort=function(){this.Vl.abort()}; g.l.remove=function(h,W){this.Vl.remove(h+this.start,W+this.start)}; g.l.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.l.clear=function(){this.Vl.clear()}; g.l.Q0=function(h,W){this.appendWindowStart=h;this.appendWindowEnd=W}; g.l.M7=function(){return this.timestampOffset+this.start}; g.l.EF=function(){return this.appendWindowStart}; g.l.FM=function(){return this.appendWindowEnd}; g.l.OO=function(h){this.timestampOffset=h}; g.l.FA=function(){return this.timestampOffset}; g.l.M$=function(h){h=this.Vl.M$(h===void 0?!1:h);return wA(h,this.start,this.end)}; g.l.j5=function(){return this.Vl.j5()}; g.l.GF=function(){return this.Vl.GF()}; g.l.jl=function(){return this.Vl.jl()}; g.l.CV=function(){return this.Vl.CV()}; g.l.rq=function(){this.Vl.rq()}; g.l.qj=function(h){return this.Vl.qj(h)}; g.l.w1=function(){return this.Vl.w1()}; g.l.Jg=function(){return this.Vl.Jg()}; g.l.Le=function(h,W,c){this.Vl.Le(h,W,c)}; g.l.N8=function(h,W,c){this.Vl.N8(h,W,c)}; g.l.SH=function(h,W){return this.Vl.SH(h,W)}; g.l.supports=function(h){return this.Vl.supports(h)}; g.l.xB=function(){return this.Vl.xB()}; g.l.isView=function(){return!0}; g.l.MI=function(){return this.Vl.MI()?this.isActive:!1}; g.l.isLocked=function(){return this.Fx&&!this.isActive}; g.l.MU=function(h){h=this.Vl.MU(h);h.vw=this.start+"-"+this.end;return h}; g.l.Ic=function(){return this.Vl.Ic()}; g.l.YW=function(){return this.Vl.YW()}; g.l.rh=function(){return this.Vl.rh()}; g.l.dE=function(){this.Vl.K7(this.FP);g.h1.prototype.dE.call(this)};var FT=!1;g.n(Wc,g.h1);g.l=Wc.prototype;g.l.appendBuffer=function(h,W,c){this.Pr=!1;c&&(this.wx=c);if(h.length){var V;((V=this.jx)==null?0:V.appendBuffer)?this.jx.appendBuffer(h):this.jx?this.jx.append(h):this.nG&&this.nG.webkitSourceAppend(this.id,h)}W&&(W.isEncrypted()&&(this.IH=this.wx),W.type===3&&(this.yj=W),this.AM.push(W.aR()),this.AM.length>4&&this.AM.shift());this.TQ&&(this.TQ.length>=2||h.length>1048576?delete this.TQ:this.TQ.push(h))}; g.l.abort=function(){try{this.jx?this.jx.abort():this.nG&&this.nG.webkitSourceAbort(this.id)}catch(W){if($RN){var h=new g.tP("Error while abort the source buffer: "+W.name+", "+W.message);g.Qq(h)}}this.wx=this.yj=null}; g.l.remove=function(h,W,c){this.Pr=!1;var V;if((V=this.jx)==null?0:V.remove)c&&c({b:oG(this.M$()),s:h,e:W}),this.jx.remove(h,W)}; g.l.removeAll=function(){this.remove(this.EF(),this.FM())}; g.l.clear=function(){this.jl()||(this.abort(),this.removeAll(),this.IH=this.wx=this.yj=null,this.appendWindowStart=this.timestampOffset=0,this.V$=my([],[]),this.Pr=!1,this.TQ=hY?[]:void 0,this.A8=!0)}; g.l.EF=function(){if(FT&&this.Sz)return this.appendWindowStart;var h;return((h=this.jx)==null?void 0:h.appendWindowStart)||0}; g.l.FM=function(){var h;return((h=this.jx)==null?void 0:h.appendWindowEnd)||0}; g.l.Q0=function(h,W){this.jx&&(FT&&this.Sz?(this.appendWindowStart=h,this.jx.appendWindowEnd=W):h>this.EF()?(this.jx.appendWindowEnd=W,this.jx.appendWindowStart=h):(this.jx.appendWindowStart=h,this.jx.appendWindowEnd=W))}; g.l.M7=function(){return this.timestampOffset}; g.l.OO=function(h){FT?this.timestampOffset=h:this.supports(1)&&(this.jx.timestampOffset=h)}; g.l.FA=function(){return FT?this.timestampOffset:this.supports(1)?this.jx.timestampOffset:0}; g.l.M$=function(h){if(h===void 0?0:h)return this.Pr||this.j5()||(this.V$=this.M$(!1),this.Pr=!0),this.V$;try{return this.jx?this.jx.buffered:this.nG?this.nG.webkitSourceBuffered(this.id):my([0],[Infinity])}catch(W){return my([],[])}}; g.l.j5=function(){var h;return((h=this.jx)==null?void 0:h.updating)||!1}; g.l.jl=function(){return this.A8}; g.l.CV=function(){return!this.A8&&this.j5()}; g.l.rq=function(){this.A8=!1}; g.l.qj=function(h){var W=h==null?void 0:h.eO;h=h==null?void 0:h.containerType;return!W&&!h||W===this.eO&&h===this.containerType}; g.l.w1=function(){return this.wx}; g.l.Jg=function(){return this.IH}; g.l.SH=function(h,W){return this.containerType!==h||this.eO!==W}; g.l.Le=function(h,W,c){if(this.containerType!==h||c&&this.SH(h,c))this.supports(4),cc()&&this.jx.changeType(W),c&&(this.eO=c);this.containerType=h}; g.l.N8=function(h,W,c){this.containerType&&this.SH(h,W)&&cc()&&this.jx.changeType(c);this.containerType=h;this.eO=W}; g.l.xB=function(){return this.yj}; g.l.isView=function(){return!1}; g.l.supports=function(h){switch(h){case 1:var W;return((W=this.jx)==null?void 0:W.timestampOffset)!==void 0;case 0:var c;return!((c=this.jx)==null||!c.appendBuffer);case 2:var V;return!((V=this.jx)==null||!V.remove);case 3:var H,B;return!!(((H=this.jx)==null?0:H.addEventListener)&&((B=this.jx)==null?0:B.removeEventListener));case 4:return!(!this.jx||!this.jx.changeType);default:return!1}}; g.l.MI=function(){return!this.j5()}; g.l.isLocked=function(){return!1}; g.l.MU=function(h){h.to=this.FA();h.up=this.j5();var W,c=((W=this.jx)==null?void 0:W.appendWindowStart)||0,V;W=((V=this.jx)==null?void 0:V.appendWindowEnd)||Infinity;h.aw=c.toFixed(3)+"-"+W.toFixed(3);return h}; g.l.GF=function(){var h;return((h=this.jx)==null?void 0:h.writeHead)||0}; g.l.Ic=function(){for(var h={},W=0;W=7&&(!W||((V=this.lB)==null?0:V.j("mweb_ios_allow_playback_workaround_when_ready")))&&CwD(this,function(){g.Rx(function(){O4k(h,h.getCurrentTime(),0)},500)})}return W}; g.l.seekTo=function(h){this.Wv()>0&&(mO&&h4<4&&(h=Math.max(.1,h)),this.setCurrentTime(h))}; g.l.ri=function(){if(!this.W&&this.KM)if(this.KM.C)try{var h;Es(this,{l:"mer",sr:(h=this.lB)==null?void 0:h.ul(),rs:JY(this.KM)});this.KM.clear();this.W=this.KM;this.KM=void 0}catch(W){h=new g.tP("Error while clearing Media Source in MediaElement: "+W.name+", "+W.message),g.Qq(h),this.stopVideo()}else this.stopVideo()}; g.l.stopVideo=function(){var h=this;if(!this.W){var W;(W=this.KM)==null||pnT(W);if(WTl){if(!this.G){var c=new d4;c.then(void 0,function(){}); this.G=c;cfk&&this.pause();g.Rx(function(){h.G===c&&(q7(h),c.resolve())},200)}}else q7(this)}}; g.l.fg=function(){var h=this.yr();return gA(h)&&this.getDuration()?On(h,this.getCurrentTime()):0}; g.l.XU=function(){var h=this.getDuration();return h===Infinity?1:h?this.fg()/h:0}; g.l.MU=function(){try{var h=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:oG(this.GY(),",",3),vbu:oG(this.yr()),vbs:oG(this.nZ()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Wv(),vns:""+this.ew(),vec:""+this.KG(),vemsg:this.B9(),vvol:""+this.getVolume(),vdom:""+ +this.jA(),vsrc:""+ +!!this.lO(),vw:""+h.width,vh:""+h.height}}catch(W){return{}}}; g.l.hasError=function(){return this.KG()>0}; g.l.addEventListener=function(h,W){this.Y.listen(h,W,!1,this);this.BN(h)}; g.l.removeEventListener=function(h,W){this.Y.v0(h,W,!1,this)}; g.l.dispatchEvent=function(h){if(this.G&&h.type==="pause")return!1;if(VhD){var W,c=((W=h.X)==null?void 0:W.timeStamp)||Infinity;W=c>performance.now()?c-Date.now()+performance.now():c;c=this.W||this.KM;if((c==null?0:c.jl())||W<=((c==null?void 0:c.N)||0)){var V;Es(this,{l:"mede",sr:(V=this.lB)==null?void 0:V.ul(),et:h.type});return!1}if(this.Lu)return Es(this,{l:"medes",et:h.type}),c&&h.type==="seeking"&&(c.N=performance.now(),this.Lu=!1),!1}return this.Y.dispatchEvent(h)}; g.l.xU=function(){this.N=!1}; g.l.i5=function(){this.N=!0;this.G$(!0)}; g.l.II=function(){this.N&&!this.Bq()&&this.G$(!0)}; g.l.equals=function(h){return!!h&&h.fJ()===this.fJ()}; g.l.dE=function(){this.S&&this.removeEventListener("volumechange",this.II);WTl&&q7(this);g.N.prototype.dE.call(this)}; var WTl=!1,cfk=!1,VhD=!1,Dqk=!1;g.l=g.l1.prototype;g.l.isPaused=function(){return g.Y(this,4)}; g.l.isPlaying=function(){return g.Y(this,8)&&!g.Y(this,512)&&!g.Y(this,64)&&!g.Y(this,2)}; g.l.isOrWillBePlaying=function(){return g.Y(this,8)&&!g.Y(this,2)&&!g.Y(this,1024)}; g.l.isCued=function(){return g.Y(this,64)&&!g.Y(this,8)&&!g.Y(this,4)}; g.l.isBuffering=function(){return g.Y(this,1)&&!g.Y(this,2)}; g.l.isError=function(){return g.Y(this,128)}; g.l.isSuspended=function(){return g.Y(this,512)}; g.l.mJ=function(){return g.Y(this,64)&&g.Y(this,4)}; g.l.toString=function(){return"PSt."+this.state.toString(16)}; var g1={},DZ=(g1.BUFFERING="buffering-mode",g1.CUED="cued-mode",g1.ENDED="ended-mode",g1.PAUSED="paused-mode",g1.PLAYING="playing-mode",g1.SEEKING="seeking-mode",g1.UNSTARTED="unstarted-mode",g1);g.n(AY,g.N);g.l=AY.prototype;g.l.C9=function(){return this.G}; g.l.KJ=function(){return this.slot}; g.l.sf=function(){return this.layout}; g.l.init=function(){var h=ov(this.layout.clientMetadata,"metadata_type_video_length_seconds"),W=ov(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Bh(this.layout.wE)&&$V(this.Gz.get(),this.layout.layoutId,{qf:W,Sk:h,listener:this,r6:this.Y4()});UId(this.nM.get(),this);h=this.Z1;W=this.layout.layoutId;var c={r6:this.Y4()};h.X.set(W,c);this.Np()}; g.l.IC=function(){}; g.l.release=function(){Bh(this.layout.wE)&&sF(this.Gz.get(),this.layout.layoutId);CVd(this.nM.get(),this);this.Z1.X.delete(this.layout.layoutId);this.KX()}; g.l.p5=function(){}; g.l.uj=function(){}; g.l.startRendering=function(h){sn(Us(this));if(CI(this,h)){var W=this.X;H_(W.params.MB.hk.get(),!0)&&A1h(W,"p_sr",{});M7(this);this.Bs(h);this.Y4()||this.U6(!1)}}; g.l.JI=function(h,W){if(W.layoutId===this.layout.layoutId){this.xZ="rendering";this.W=this.Qg.get().isMuted()||this.Qg.get().getVolume()===0;this.s5("impression");this.s5("start");if(this.Qg.get().isMuted()){Tn(this,"mute");var c;h=((c=KI(this))==null?void 0:c.muteCommands)||[];A$(this.LJ.get(),h,this.layout.layoutId)}if(this.Qg.get().isFullscreen()){this.Jh("fullscreen");var V;c=((V=KI(this))==null?void 0:V.fullscreenCommands)||[];A$(this.LJ.get(),c,this.layout.layoutId)}this.Y4()||(V=this.dW.get(), V.G&&!V.W&&(V.C=!1,V.W=!0,V.actionType!=="ad_to_video"&&(KE("pbs",void 0,V.actionType),g.ZX("finalize_all_timelines")&&Esd(V.actionType))));this.iG(1);this.e7(W);var H;W=((H=KI(this))==null?void 0:H.impressionCommands)||[];A$(this.LJ.get(),W,this.layout.layoutId)}}; g.l.zK=function(h,W,c){this.S={qc:3,CH:h==="load_timeout"?402:400,errorMessage:W.message};this.s5("error");var V;h=((V=KI(this))==null?void 0:V.errorCommands)||[];A$(this.LJ.get(),h,this.layout.layoutId);this.Y4()||this.Xy.IV(this.slot,this.layout,W,c)}; g.l.Cl=function(){if(this.xZ==="rendering"){Tn(this,"pause");var h,W=((h=KI(this))==null?void 0:h.pauseCommands)||[];A$(this.LJ.get(),W,this.layout.layoutId);this.iG(2)}}; g.l.j2=function(){if(this.xZ==="rendering"){Tn(this,"resume");var h,W=((h=KI(this))==null?void 0:h.resumeCommands)||[];A$(this.LJ.get(),W,this.layout.layoutId)}}; g.l.O2=function(h,W){W=W===void 0?!1:W;if(this.xZ==="rendering"){var c={currentTimeSec:h,flush:W};B_(this.X,"p_ip",c);rz(this.iB,h*1E3,W);this.W||rz(this.iB,h*1E3,W===void 0?!1:W);var V=this.Qt();if(V){V/=1E3;if(h>=V*.25||W)this.s5("first_quartile"),B_(this.X,"p_fq",c);if(h>=V*.5||W)this.s5("midpoint"),B_(this.X,"p_sq",c);if(h>=V*.75||W)this.s5("third_quartile"),B_(this.X,"p_tq",c);this.hk.get().L.B().experiments.xN("enable_progress_command_flush_on_kabuki")?QJ(this.Y,h*1E3,W):QJ(this.Y,h*1E3,VRp(this)? W:!1)}}}; g.l.D$=function(){var h;return((h=Fm(this.SO.get(),1))==null?void 0:h.clientPlaybackNonce)||""}; g.l.X5=function(h,W){h.layoutId!==this.layout.layoutId?this.Xy.IV(this.slot,h,new vq("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"):W()}; g.l.Gx=function(h,W,c){if(W.layoutId===this.layout.layoutId)switch(this.xZ="not_rendering",this.layoutExitReason=void 0,this.Y4()||(h=c!=="normal"||this.position+1===this.N)&&this.U6(h),this.HP(c),this.iG(0),c){case "abandoned":if(qb(this.iB,"impression")){var V,H=((V=KI(this))==null?void 0:V.abandonCommands)||[];A$(this.LJ.get(),H,this.layout.layoutId)}break;case "normal":V=((H=KI(this))==null?void 0:H.completeCommands)||[];A$(this.LJ.get(),V,this.layout.layoutId);break;case "skipped":var B;V=((B= KI(this))==null?void 0:B.skipCommands)||[];A$(this.LJ.get(),V,this.layout.layoutId)}}; g.l.LZ=function(){return this.layout.layoutId}; g.l.fO=function(){return this.S}; g.l.h$=function(){if(this.xZ==="rendering"){this.iB.s5("active_view_measurable");var h,W=((h=KI(this))==null?void 0:h.activeViewMeasurableCommands)||[];A$(this.LJ.get(),W,this.layout.layoutId)}}; g.l.d_=function(){if(this.xZ==="rendering"){this.iB.s5("active_view_fully_viewable_audible_half_duration");var h,W=((h=KI(this))==null?void 0:h.activeViewFullyViewableAudibleHalfDurationCommands)||[];A$(this.LJ.get(),W,this.layout.layoutId)}}; g.l.Ps=function(){if(this.xZ==="rendering"){this.iB.s5("active_view_viewable");var h,W=((h=KI(this))==null?void 0:h.activeViewViewableCommands)||[];A$(this.LJ.get(),W,this.layout.layoutId)}}; g.l.GG=function(){if(this.xZ==="rendering"){this.iB.s5("audio_audible");var h,W=((h=KI(this))==null?void 0:h.activeViewAudioAudibleCommands)||[];A$(this.LJ.get(),W,this.layout.layoutId)}}; g.l.YH=function(){if(this.xZ==="rendering"){this.iB.s5("audio_measurable");var h,W=((h=KI(this))==null?void 0:h.activeViewAudioMeasurableCommands)||[];A$(this.LJ.get(),W,this.layout.layoutId)}}; g.l.U6=function(h){this.dW.get().U6(ov(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,h,this.position,this.N,!1)}; g.l.onFullscreenToggled=function(h){if(this.xZ==="rendering")if(h){this.Jh("fullscreen");var W,c=((W=KI(this))==null?void 0:W.fullscreenCommands)||[];A$(this.LJ.get(),c,this.layout.layoutId)}else this.Jh("end_fullscreen"),W=((c=KI(this))==null?void 0:c.endFullscreenCommands)||[],A$(this.LJ.get(),W,this.layout.layoutId)}; g.l.onVolumeChange=function(){if(this.xZ==="rendering")if(this.Qg.get().isMuted()){Tn(this,"mute");var h,W=((h=KI(this))==null?void 0:h.muteCommands)||[];A$(this.LJ.get(),W,this.layout.layoutId)}else Tn(this,"unmute"),h=((W=KI(this))==null?void 0:W.unmuteCommands)||[],A$(this.LJ.get(),h,this.layout.layoutId)}; g.l.kL=function(){}; g.l.Fb=function(){}; g.l.EJ=function(){}; g.l.Rx=function(){}; g.l.Ur=function(){}; g.l.Jh=function(h){this.iB.Jh(h,!this.W)}; g.l.s5=function(h){this.iB.s5(h,!this.W)}; g.l.Y4=function(){var h=ov(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return h===void 0?(sA("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.hk.get().Y4(h)};g.n(mR,AY);g.l=mR.prototype;g.l.Np=function(){}; g.l.KX=function(){var h=this.nM.get();h.dG===this&&(h.dG=null);this.timer.stop()}; g.l.p5=function(){this.timer.stop();AY.prototype.Cl.call(this)}; g.l.uj=function(){pI(this);AY.prototype.j2.call(this)}; g.l.Qt=function(){return ov(this.sf().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.l.xd=function(h,W){var c=this;this.X5(h,function(){c.xZ!=="rendering_stop_requested"&&(c.xZ="rendering_stop_requested",c.layoutExitReason=W,y3(c,W),c.timer.stop())})}; g.l.kd=function(){var h=Date.now(),W=h-this.B7;this.B7=h;this.W3+=W;this.W3>=this.Qt()?this.HI():(this.O2(this.W3/1E3),oi(this,this.W3))}; g.l.HP=function(){}; g.l.Kw=function(){}; g.n(Ii,mR);g.l=Ii.prototype;g.l.jL=function(h){if(this.xZ!=="not_rendering"){h=Pc(this,h);var W=this.Qg.get().getPresentingPlayerType()===2;this.xZ==="rendering_start_requested"?W&&S1(h)&&this.uZ():W?g.EA(h,2)?sA("Receive player ended event during MediaBreak",this.KJ(),this.sf()):fI(this,h):this.CZ()}}; g.l.Bs=function(){WkU(this);XQT(this.Qg.get());this.nM.get().dG=this;LE("pbp")||LE("pbs")||KE("pbp");LE("pbp","watch")||LE("pbs","watch")||KE("pbp",void 0,"watch");this.uZ()}; g.l.e7=function(h){this.dW.get();var W=ov(h.clientMetadata,"metadata_type_ad_placement_config").kind,c=this.position===0;h=ov(h.clientMetadata,"metadata_type_linked_in_player_layout_type");h={adBreakType:b1(W),adType:ZVN(h)};var V=void 0;c?W!=="AD_PLACEMENT_KIND_START"&&(V="video_to_ad"):V="ad_to_ad";eq("ad_mbs",void 0,V);g.zO(h,V);pI(this)}; g.l.CZ=function(){this.LC()}; g.l.HI=function(){stT(this);this.LC()}; g.n(Yh,mR);g.l=Yh.prototype;g.l.jL=function(h){this.xZ!=="not_rendering"&&(h=Pc(this,h),fI(this,h))}; g.l.Bs=function(){sA("Not used in SSAP")}; g.l.e7=function(){pI(this)}; g.l.CZ=function(){sA("Not used in SSAP")}; g.l.HI=function(){stT(this);this.Xy.EQ(this.KJ(),this.sf(),"normal")}; g.n(Os,Yh);Os.prototype.xd=function(h,W){var c=this;this.X5(h,function(){hp(c.G,W)&&(c.xZ="rendering_stop_requested",c.layoutExitReason=W,y3(c,W),c.timer.stop())})}; Os.prototype.startRendering=function(h){sn(Us(this));CI(this,h)&&(M7(this),this.nM.get().dG=this)};g.n(DS,AY);g.l=DS.prototype;g.l.CZ=function(){this.LC()}; g.l.jL=function(h){if(this.xZ!=="not_rendering"){h=Pc(this,h);var W=this.Qg.get().getPresentingPlayerType()===2;this.xZ==="rendering_start_requested"?W&&S1(h)&&this.uZ():!W||g.EA(h,2)?this.LC():fI(this,h)}}; g.l.Np=function(){ov(this.sf().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=ov(this.sf().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.l.KX=function(){ov(this.sf().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.WB){var h=this.context.MB,W=this.WB,c=this.sf().layoutId;if(H_(h.hk.get(),!0)){var V={};h.Wi("mccru",(V.cid=W,V.p_ac=c,V))}this.lX.get().removeCueRange(this.WB)}this.WB=void 0;var H;(H=this.AL)==null||H.dispose();this.zQ&&this.zQ.dispose()}; g.l.Bs=function(h){var W=S$(this.hk.get()),c=g4(this.hk.get());if(W&&c&&!this.Y4()){c=ov(h.clientMetadata,"metadata_type_preload_player_vars");var V=this.hk.get();V=g.DF(V.L.B().experiments,"html5_preload_wait_time_secs");c&&this.zQ&&this.zQ.start(V*1E3)}ExN(this,h);WkU(this);W?(c=this.Xl.get(),h=ov(h.clientMetadata,"metadata_type_player_vars"),c.L.loadVideoByPlayerVars(h,!1,2)):Wol(this.Xl.get(),ov(h.clientMetadata,"metadata_type_player_vars"));var H;(H=this.AL)==null||H.start();W||this.Xl.get().L.playVideo(2)}; g.l.e7=function(){var h;(h=this.AL)==null||h.stop();this.E3();(this.adCpn=h27(this))||sA("Media layout confirmed started, but ad CPN not set.");this.oR.get().WX("onAdStart",this.adCpn);this.dg=Date.now()}; g.l.Qt=function(){var h;return(h=Fm(this.SO.get(),2))==null?void 0:h.QE}; g.l.mY=function(){this.iB.Jh("clickthrough")}; g.l.xd=function(h,W){var c=this;this.X5(h,function(){if(c.xZ!=="rendering_stop_requested"){c.xZ="rendering_stop_requested";c.layoutExitReason=W;y3(c,W);var V;(V=c.AL)==null||V.stop();c.zQ&&c.zQ.stop();R2v(c)}})}; g.l.onCueRangeEnter=function(h){if(h!==this.WB)sA("Received CueRangeEnter signal for unknown layout.",this.KJ(),this.sf(),{cueRangeId:h});else{var W=this.context.MB,c=this.sf().layoutId;if(H_(W.hk.get(),!0)){var V={};W.Wi("mccre",(V.cid=h,V.p_ac=c,V))}this.lX.get().removeCueRange(this.WB);this.WB=void 0;Fo(this.context.hk.get(),"html5_ssap_flush_at_stop_rendering")&&this.Y4()||(h=ov(this.sf().clientMetadata,"metadata_type_video_length_seconds"),this.O2(h,!0),this.s5("complete"))}}; g.l.HP=function(h){h!=="abandoned"&&this.oR.get().WX("onAdComplete");this.oR.get().WX("onAdEnd",this.adCpn)}; g.l.E3=function(){this.WB="adcompletioncuerange:"+this.sf().layoutId;this.lX.get().addCueRange(this.WB,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var h=this.context.MB,W=this.WB,c=this.sf().layoutId;if(H_(h.hk.get(),!0)){var V={};h.Wi("mccr",(V.cid=W,V.p_ac=c,V))}}; g.l.onCueRangeExit=function(){}; g.l.Kw=function(h){this.xZ==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&h>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Qg.get().CQ(!0),this.O2(h))}; g.l.O2=function(h,W){AY.prototype.O2.call(this,h,W===void 0?!1:W);W=Date.now()-this.dg;var c=h*1E3,V={contentCpn:this.D$(),adCpn:h27(this)};if(h-this.kX>=5){var H=W=2||(this.s8.xd(this.layout,W),h=Fo(this.params.context.hk.get(),"html5_ssap_pass_transition_reason")&&W==="abandoned",this.gM()&&!h&&(Fo(this.params.context.hk.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(W)||sA("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:W})),this.wI.get().finishSegmentByCpn(this.layout.layoutId, Fm(this.SO.get(),1).clientPlaybackNonce,Xm(W,this.params.context.hk))),this.Qg.get().removeListener(this),this.L7()&&W_(this.s8.C9())&&this.zc.Gx(this.slot,this.layout,this.s8.C9().X))}; g.l.Ul=function(h,W,c){i4D({cpn:h,x4:this.SO.get(),q9:!0});this.sf().layoutId!==h||Fo(this.params.context.hk.get(),"html5_ssap_pass_transition_reason")&&c===5||(this.s8.C9().currentState<2&&(h=tY(c,this.params.context.hk),h==="error"?this.zc.IV(this.slot,this.layout,new vq("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:c},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):BS(this.aV, this.layout,h)),Fo(this.params.context.hk.get(),"html5_ssap_exit_without_waiting_for_transition")||this.zc.Gx(this.slot,this.layout,this.s8.C9().X))};g.n(cS,g.N);g.l=cS.prototype;g.l.KJ=function(){return this.slot}; g.l.sf=function(){return this.layout}; g.l.sV=function(){}; g.l.iT=function(){return this.cB[this.Ac]}; g.l.vR=function(){return this.Ac}; g.l.p5=function(h,W){var c=this.iT();W.layoutId!==$c(c,h,W)?sA("pauseLayout for a PlayerBytes layout that is not currently active",h,W):c.p5()}; g.l.uj=function(h,W){var c=this.iT();W.layoutId!==$c(c,h,W)?sA("resumeLayout for a PlayerBytes layout that is not currently active",h,W):c.uj()}; g.l.QP=function(h,W){var c=this.iT();nxL(this,h,W);jtL(c,h,W)&&this.Cc(c.KJ(),c.sf(),"skipped")}; g.l.tP=function(h,W){var c=this.iT();aw7(this);e2T(c,h,W)&&(h=z24(this,c,h,W),h!==void 0&&(this.Y4()?sA("Should not happen. Should delete"):Lkk(this,c.KJ(),c.sf(),h)))}; g.l.lK=function(h,W){var c=Object.assign({},Vw(this),{layoutId:W.layoutId}),V=c.layoutId,H=c.q9;if(c.r6){var B={};$T(c.x4,"wrse",(B.ec=V,B.is=H,B.ctp=VT(V),B))}dL(this.l$,h,W)}; g.l.JI=function(h,W){var c;(c=this.iT())==null||c.JI(h,W)}; g.l.Gx=function(h,W,c){W.layoutId===this.sf().layoutId&&(this.Qb=!1,WH(this.Bi(),this));var V;(V=this.iT())==null||V.Gx(h,W,c)}; g.l.Kw=function(h){var W;(W=this.iT())==null||W.Kw(h)}; g.l.PS=function(h,W,c){this.vR()===-1&&(this.callback.JI(this.slot,this.layout),this.Ac++);var V=this.iT();V?(V.zK(h,W,c),this.Y4()&&this.callback.IV(this.slot,this.layout,W,c)):sA("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.vR()),layoutId:this.sf().layoutId})}; g.l.onFullscreenToggled=function(h){var W;(W=this.iT())==null||W.onFullscreenToggled(h)}; g.l.kL=function(h){var W;(W=this.iT())==null||W.kL(h)}; g.l.EJ=function(h){var W;(W=this.iT())==null||W.EJ(h)}; g.l.onVolumeChange=function(){var h;(h=this.iT())==null||h.onVolumeChange()}; g.l.kU=function(h,W,c){Gk(this.l$,h,W,c)}; g.l.V0=function(h){h.startRendering(h.sf())}; g.l.init=function(){var h=ov(this.sf().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");h&&(h.current=this);if(this.cB.length<1)throw new S("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.cB.length)});if(h=ov(this.sf().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))h.current=this;h=g.e(this.cB);for(var W=h.next();!W.done;W=h.next())W=W.value,W.init(),Ych(this.l$,this.slot,W.sf()),OqT(this.l$,this.slot,W.sf()); if(this.Y4())for(this.SO.get().addListener(this),jeT(lwd(this),this.SO.get()),h=lwd(this),h=g.e(h),W=h.next();!W.done;W=h.next())this.oB(W.value)}; g.l.oB=function(h){var W=ov(h.clientMetadata,"metadata_type_player_vars");W?(h.layoutType!=="LAYOUT_TYPE_MEDIA"&&sA("Non-video ad contains playerVars",this.slot,h),this.Xl.get().addPlayerResponseForAssociation({playerVars:W})):(h=rW7(h),this.Xl.get().addPlayerResponseForAssociation({dU:h}))}; g.l.release=function(){var h=ov(this.sf().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");h&&(h.current=null);if(h=ov(this.sf().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))h.current=null;h=g.e(this.cB);for(var W=h.next();!W.done;W=h.next())W=W.value,ScU(this.l$,this.slot,W.sf()),W.release();this.Y4()&&(this.SO.get().removeListener(this),ab7())}; g.l.X5=function(h){return h.layoutId!==this.sf().layoutId?(this.callback.IV(this.KJ(),h,new vq("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.sf().layoutId+("and LayoutType: "+this.sf().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.l.NI=function(){this.Qg.get().addListener(this);h$(this.Bi(),this)}; g.l.jL=function(h){if(h.state.isError()){var W,c;this.PS((W=h.state.FK)==null?void 0:W.errorCode,new vq("There was a player error during this media layout.",{playerErrorCode:(c=h.state.FK)==null?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(W=this.iT())&&W.jL(h)}; g.l.Y4=function(){var h=ov(this.KJ().clientMetadata,"metadata_type_eligible_for_ssap");return h===void 0?(sA("Expected SSAP eligibility in PlayerBytes slots",this.KJ(),this.sf()),!1):this.hk.get().Y4(h)}; g.l.Fb=function(){}; g.l.Rd=function(){}; g.l.HB=function(){}; g.l.Qi=function(){}; g.l.v9=function(){}; g.l.bT=function(){}; g.l.LG=function(){}; g.l.Nh=function(){}; g.l.BH=function(){}; g.l.Te=function(){}; g.l.Cp=function(){}; g.l.Rx=function(){}; g.l.Ur=function(){}; g.n(ER,cS);g.l=ER.prototype;g.l.Wb=function(h,W,c){this.Cc(h,W,c)}; g.l.XN=function(h,W){this.Cc(h,W,"error")}; g.l.Cc=function(h,W,c){var V=this;QtQ(this,h,W,c,function(){sR(V,V.vR()+1)})}; g.l.startRendering=function(h){this.X5(h)&&(this.NI(),w17(this.dW.get()),sdN(this.hk.get())||XQT(this.Qg.get()),this.vR()===-1&&sR(this,this.vR()+1))}; g.l.xd=function(h,W){var c=this;this.Qb=!0;this.vR()===this.cB.length?this.callback.Gx(this.slot,this.layout,W):(h=this.iT(),h.xd(h.sf(),W),this.p_=function(){c.callback.Gx(c.slot,c.layout,W)}); this.Qg.get().L.f7();Wol(this.Xl.get(),{});h=Vt(this.Qg.get(),1);h.isPaused()&&!g.Y(h,2)&&this.Qg.get().playVideo();this.Qg.get().removeListener(this);this.Qb&&iV5(this)}; g.l.Ul=function(){}; g.l.Kb=function(){}; g.l.EQ=function(){}; g.n(RO,cS);g.l=RO.prototype;g.l.Wb=function(h,W,c){h=Object.assign({},Vw(this),{layoutId:W.layoutId,layoutExitReason:c});W=h.layoutId;c=h.layoutExitReason;var V={};$T(h.x4,"prse",(V.xc=W,V.ler=c,V.ctp=VT(W),V))}; g.l.XN=function(){sA("onSubLayoutError in SSAP")}; g.l.Cc=function(){sA("exitSubLayoutAndPlayNext in SSAP")}; g.l.iT=function(){return this.hE}; g.l.vR=function(){var h=this;return this.cB.findIndex(function(W){var c;return W.sf().layoutId===((c=h.hE)==null?void 0:c.sf().layoutId)})}; g.l.V0=function(h){$x(this.hE===void 0,"replacing another adapter");this.hE=h;h.startRendering(h.sf())}; g.l.kU=function(h,W,c){Gk(this.l$,h,W,c);var V;$x(W.layoutId===((V=this.hE)==null?void 0:V.sf().layoutId),"currentAdapter does not match exiting layout",{slot:h?"slot: "+h.slotType:"",subLayout:Vh(W)})&&(this.hE=void 0)}; g.l.release=function(){cS.prototype.release.call(this);$x(this.hE===void 0,"currentAdapter is still active during release");this.hE=void 0}; g.l.gM=function(){return this.Qg.get().getPresentingPlayerType()===2}; g.l.xd=function(h,W){function c(){Jo(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(W)||sA("Composite stopRendering: Unexpected layout exit reason",this.slot,h,{layoutExitReason:W}))} function V(){this.hE&&ub(this,this.hE,W);if(this.gM()&&(!Jo(this)||W!=="abandoned")){c.call(this);var B;var E=((B=this.SO.get().L.getVideoData())==null?void 0:B.clientPlaybackNonce)||"";B=Fm(this.SO.get(),1).clientPlaybackNonce;this.wI.get().finishSegmentByCpn(E,B,Xm(W,this.hk))}KkN(this,W)} function H(){if(this.hE){var B=this.hE;B.C9().currentState<2&&B.xd(B.sf(),W);B=Jo(this)&&W==="abandoned";this.gM()&&!B&&(c.call(this),this.wI.get().finishSegmentByCpn(this.hE.sf().layoutId,Fm(this.SO.get(),1).clientPlaybackNonce,Xm(W,this.hk)))}} $x(h.layoutId===this.sf().layoutId,"StopRendering for wrong layout")&&hp(this.cU.W,W)&&(this.L7()?V.call(this):H.call(this))}; g.l.Gx=function(h,W,c){cS.prototype.Gx.call(this,h,W,c);W.layoutId===this.sf().layoutId&&this.Qg.get().removeListener(this)}; g.l.D$=function(){return Fm(this.SO.get(),1).clientPlaybackNonce}; g.l.Ul=function(h,W,c){i4D(Object.assign({},Vw(this),{cpn:h}));if(!Jo(this)||c!==5)if(this.L7()){if(this.hE&&this.hE.sf().layoutId!==W){var V=this.hE.sf().layoutId;V!==h&&sA("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:V,exitingCpn:h,enteringCpn:W});h=tY(c,this.hk);ub(this,this.hE,h)}else this.hE&&sA("onClipExited: active layout is entering again");W===this.D$()&&Ual(this,c)}else{if(this.hE&&this.hE.sf().layoutId===h)AWl(this,this.hE,c);else{var H;sA("Exiting cpn does not match active cpn", this.slot,(V=this.hE)==null?void 0:V.sf(),{exitingCpn:h,transitionReason:c,activeCpn:(H=this.hE)==null?void 0:H.sf().layoutId})}W===this.D$()&&(this.hE!==void 0&&(sA("active adapter is not properly exited",this.slot,this.layout,{activeLayout:Vh(this.hE.sf())}),AWl(this,this.hE,c)),Ual(this,c),KkN(this,this.cU.W.X))}}; g.l.L7=function(){return Fo(this.hk.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.l.startRendering=function(h){this.X5(h)&&(h=this.cU,$x(h.X===1,"tickStartRendering: state is not initial"),h.X=2,this.NI())}; g.l.Kb=function(h){LQ5(Object.assign({},Vw(this),{cpn:h}));var W=this.cB.find(function(c){return c.sf().layoutId===h}); W?(this.cU.X!==2&&(Rel(this.Dh,this.slot.slotId),$x(this.cU.X===2,"Expect started"),this.callback.JI(this.slot,this.layout)),this.V0(W),dL(this.l$,this.slot,W.sf())):C74(this,h)}; g.l.QP=function(h,W){nxL(this,h,W);var c=this.iT();c?jtL(c,h,W)&&MRU(this,"skipped"):Fkp(this,"onSkipRequested")}; g.l.tP=function(h,W){var c;a:{if(c=this.iT()){if(aw7(this),e2T(c,h,W)&&(h=z24(this,c,h,W),h!==void 0)){c={s0:c,nxn:this.cB[h]};break a}}else Fkp(this,"SkipWithAdPodSkip");c=void 0}if(h=c)c=h.s0,W=h.nxn,h=c.sf().layoutId,this.L7()?ub(this,c,"skipped"):c.xd(c.sf(),"skipped"),c=W.sf().layoutId,this.wI.get().finishSegmentByCpn(h,c,Xm("skipped",this.hk))}; g.l.lK=function(){sA("Not used in html5_ssap_fix_layout_exit")}; g.l.jL=function(h){var W;(W=this.iT())==null||W.jL(h)}; g.l.PS=function(){sA("Not used in html5_ssap_fix_layout_exit")}; g.l.EQ=function(h,W,c){var V;if(((V=this.iT())==null?void 0:V.sf().layoutId)!==W.layoutId)return void sA("requestToExitSubLayout: wrong layout");MRU(this,c)};g.n(dk,g.N);g.l=dk.prototype;g.l.KJ=function(){return this.s8.KJ()}; g.l.sf=function(){return this.s8.sf()}; g.l.init=function(){var h=ov(this.sf().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");h&&(h.current=this);this.Np()}; g.l.Np=function(){this.s8.init()}; g.l.release=function(){var h=ov(this.sf().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");h&&(h.current=null);this.KX()}; g.l.KX=function(){this.s8.release()}; g.l.p5=function(){this.s8.p5()}; g.l.uj=function(){this.s8.uj()}; g.l.QP=function(h,W){sA("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.KJ(),this.sf(),{requestingSlot:h,requestingLayout:W})}; g.l.startRendering=function(h){h.layoutId!==this.sf().layoutId?this.callback.IV(this.KJ(),h,new vq("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.sf().layoutId+("and LayoutType: "+this.sf().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Qg.get().addListener(this),h$(this.Bi(),this),w17(this.dW.get()),sdN(this.hk.get())||XQT(this.Qg.get()),this.s8.startRendering(h))}; g.l.xd=function(h,W){this.Qb=!0;this.s8.xd(h,W);this.Qg.get().L.f7();Wol(this.Xl.get(),{});h=Vt(this.Qg.get(),1);h.isPaused()&&!g.Y(h,2)&&this.Qg.get().playVideo();this.Qg.get().removeListener(this);this.Qb&&this.s8.CZ()}; g.l.JI=function(h,W){this.s8.JI(h,W)}; g.l.Gx=function(h,W,c){W.layoutId===this.sf().layoutId&&(this.Qb=!1,WH(this.Bi(),this));this.s8.Gx(h,W,c);W.layoutId===this.sf().layoutId&&HS(this.dW.get())}; g.l.Kw=function(h){this.s8.Kw(h)}; g.l.jL=function(h){if(h.state.isError()){var W,c;this.PS((W=h.state.FK)==null?void 0:W.errorCode,new vq("There was a player error during this media layout.",{playerErrorCode:(c=h.state.FK)==null?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.s8.jL(h)}; g.l.PS=function(h,W,c){this.s8.zK(h,W,c)}; g.l.onFullscreenToggled=function(h){this.s8.onFullscreenToggled(h)}; g.l.kL=function(h){this.s8.kL(h)}; g.l.EJ=function(h){this.s8.EJ(h)}; g.l.onVolumeChange=function(){this.s8.onVolumeChange()}; g.l.Fb=function(){}; g.l.Rd=function(){}; g.l.HB=function(){}; g.l.Qi=function(){}; g.l.v9=function(){}; g.l.bT=function(){}; g.l.LG=function(){}; g.l.Nh=function(){}; g.l.BH=function(){}; g.l.Te=function(){}; g.l.Cp=function(){}; g.l.Rx=function(){}; g.l.Ur=function(){};g.l=G5.prototype;g.l.KJ=function(){return this.slot}; g.l.sf=function(){return this.layout}; g.l.init=function(){this.Ky.get().addListener(this);this.Qg.get().addListener(this);var h=ov(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var W=ov(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.Y){var c=this.Ky.get().gQ.slice(-1)[0];c!==void 0&&(h=c.startSecs*1E3,W=(c.startSecs+c.QM)*1E3)}this.IC(h,W);var V;c=(V=this.SO.get().MD)==null?void 0:V.clientPlaybackNonce;V=this.layout.m8.adClientDataEntry;ZN(this.nM.get(),{daiStateTrigger:{filledAdsDurationMs:W-h,contentCpn:c, adClientData:V}});var H=this.Ky.get();H=fwp(H.G,h,W);H!==null&&(ZN(this.nM.get(),{daiStateTrigger:{filledAdsDurationMs:H-h,contentCpn:c,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:V}}),this.wI.get().ZL(H,W))}; g.l.release=function(){this.KX();this.Ky.get().removeListener(this);this.Qg.get().removeListener(this)}; g.l.startRendering=function(){this.Bs();this.callback.JI(this.slot,this.layout)}; g.l.xd=function(h,W){this.I9(W);this.driftRecoveryMs!==null&&(rk(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(bVL(this)-ov(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.Qg.get().L.QZ()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.Gx(this.slot,this.layout,W)}; g.l.WM=function(){return!1}; g.l.K6=function(h){var W=ov(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),c=ov(this.layout.clientMetadata,"metadata_type_layout_exit_ms");h*=1E3;if(W<=h&&h0&&ZG(this.X(),W)}; g.l.HB=function(h){this.C.delete(h.slotId);for(var W=[],c=g.e(this.QA.values()),V=c.next();!V.done;V=c.next()){V=V.value;var H=V.trigger;H instanceof J9&&H.triggeringSlotId===h.slotId&&W.push(V)}W.length>0&&ZG(this.X(),W)}; g.l.Qi=function(h){for(var W=[],c=g.e(this.QA.values()),V=c.next();!V.done;V=c.next()){V=V.value;var H=V.trigger;H instanceof h9&&H.slotType===h.slotType&&H.X!==h.slotId&&W.push(V)}W.length>0&&ZG(this.X(),W)}; g.l.v9=function(h){this.G.add(h.slotId);for(var W=[],c=g.e(this.QA.values()),V=c.next();!V.done;V=c.next())V=V.value,V.trigger instanceof si&&h.slotId===V.trigger.triggeringSlotId&&W.push(V);W.length>0&&ZG(this.X(),W)}; g.l.bT=function(h){this.G.delete(h.slotId);this.Y.add(h.slotId);for(var W=[],c=g.e(this.QA.values()),V=c.next();!V.done;V=c.next())if(V=V.value,V.trigger instanceof Hs)h.slotId===V.trigger.triggeringSlotId&&W.push(V);else if(V.trigger instanceof m0){var H=V.trigger;h.slotId===H.slotId&&this.W.has(H.triggeringLayoutId)&&W.push(V)}W.length>0&&ZG(this.X(),W)}; g.l.LG=function(h){for(var W=[],c=g.e(this.QA.values()),V=c.next();!V.done;V=c.next())V=V.value,V.trigger instanceof Bs&&h.slotId===V.trigger.triggeringSlotId&&W.push(V);W.length>0&&ZG(this.X(),W)}; g.l.Nh=function(h){for(var W=[],c=g.e(this.QA.values()),V=c.next();!V.done;V=c.next())V=V.value,V.trigger instanceof Ei&&h.slotId===V.trigger.triggeringSlotId&&W.push(V);W.length>0&&ZG(this.X(),W)}; g.l.BH=function(h,W){this.N.add(W.layoutId)}; g.l.Te=function(h,W){this.N.delete(W.layoutId)}; g.l.JI=function(h,W){this.W.add(W.layoutId);for(var c=[],V=g.e(this.QA.values()),H=V.next();!H.done;H=V.next())if(H=H.value,H.trigger instanceof oO)W.layoutId===H.trigger.triggeringLayoutId&&c.push(H);else if(H.trigger instanceof kc){var B=H.trigger;h.slotType===B.slotType&&W.layoutType===B.layoutType&&W.layoutId!==B.X&&c.push(H)}else H.trigger instanceof m0&&(B=H.trigger,W.layoutId===B.triggeringLayoutId&&this.Y.has(B.slotId)&&c.push(H));c.length>0&&ZG(this.X(),c)}; g.l.Gx=function(h,W,c){this.W.delete(W.layoutId);h=[];for(var V=g.e(this.QA.values()),H=V.next();!H.done;H=V.next())if(H=H.value,H.trigger instanceof IO&&W.layoutId===H.trigger.triggeringLayoutId&&h.push(H),H.trigger instanceof p8){var B=H.trigger;W.layoutId===B.triggeringLayoutId&&B.X.includes(c)&&h.push(H)}h.length>0&&ZG(this.X(),h)}; g.l.Cp=function(){}; g.l.qv=function(){this.Y.clear()}; g.l.Ft=function(){};g.n(hx,g.N);hx.prototype.Z8=function(h,W,c,V){if(this.QA.has(W.triggerId))throw new S("Tried to register duplicate trigger for slot.");if(!(W instanceof to))throw new S("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in CloseRequestedTriggerAdapter");this.QA.set(W.triggerId,new jT(h,W,c,V))}; hx.prototype.xO=function(h){this.QA.delete(h.triggerId)};g.n(cL,g.N);cL.prototype.Z8=function(h,W,c,V){if(this.QA.has(W.triggerId))throw new S("Tried to register duplicate trigger for slot.");if(!(W instanceof Xq||W instanceof cs))throw new S("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.QA.set(W.triggerId,new jT(h,W,c,V))}; cL.prototype.xO=function(h){this.QA.delete(h.triggerId)}; cL.prototype.qv=function(h){for(var W=[],c=W.push,V=c.apply,H=[],B=g.e(this.QA.values()),E=B.next();!E.done;E=B.next())E=E.value,E.trigger instanceof Xq&&E.trigger.F_===h&&H.push(E);V.call(c,W,g.rN(H));c=W.push;V=c.apply;H=[];B=g.e(this.QA.values());for(E=B.next();!E.done;E=B.next())E=E.value,E.trigger instanceof cs&&E.trigger.X!==h&&H.push(E);V.call(c,W,g.rN(H));W.length&&ZG(this.X(),W)}; cL.prototype.Ft=function(h){for(var W=[],c=W.push,V=c.apply,H=[],B=g.e(this.QA.values()),E=B.next();!E.done;E=B.next()){E=E.value;var J=E.trigger;J instanceof cs&&J.X===h&&H.push(E)}V.call(c,W,g.rN(H));W.length&&ZG(this.X(),W)};g.n(Vg,g.N);g.l=Vg.prototype;g.l.Z8=function(h,W,c,V){if(this.QA.has(W.triggerId))throw new S("Tried to register duplicate trigger for slot.");var H="adtriggercuerange:"+W.triggerId;if(W instanceof DN)kyD(this,h,W,c,V,H,W.X.start,W.X.end,W.F_,W.visible);else if(W instanceof vS)kyD(this,h,W,c,V,H,0x7ffffffffffff,0x8000000000000,W.F_,W.visible);else throw new S("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in CueRangeTriggerAdapter");}; g.l.xO=function(h){var W=this.QA.get(h.triggerId);W&&this.lX.get().removeCueRange(W.cueRangeId);this.QA.delete(h.triggerId)}; g.l.onCueRangeEnter=function(h){var W=hek(this,h);if(W&&(W=this.QA.get(W)))if(g.Y(Vt(this.Qg.get()),32))this.X.add(W.cueRangeId);else{var c=W==null?void 0:W.d2.trigger;if(c instanceof DN||c instanceof vS){if(H_(this.context.hk.get())){var V=W.d2.slot,H=W.d2.layout,B={};this.context.MB.Wi("cre",(B.ca=W.d2.category,B.tt=c.triggerType,B.st=V.slotType,B.lt=H==null?void 0:H.layoutType,B.cid=h,B))}ZG(this.W(),[W.d2])}}}; g.l.onCueRangeExit=function(h){(h=hek(this,h))&&(h=this.QA.get(h))&&this.X.delete(h.cueRangeId)}; g.l.jL=function(h){if(B8(h,16)<0){h=g.e(this.X);for(var W=h.next();!W.done;W=h.next())this.onCueRangeEnter(W.value,!0);this.X.clear()}}; g.l.Rd=function(){}; g.l.HB=function(){}; g.l.Qi=function(){}; g.l.v9=function(){}; g.l.bT=function(){}; g.l.LG=function(){}; g.l.Nh=function(){}; g.l.BH=function(){}; g.l.Te=function(){}; g.l.JI=function(){}; g.l.Gx=function(){}; g.l.Cp=function(){}; g.l.Kw=function(){}; g.l.onFullscreenToggled=function(){}; g.l.kL=function(){}; g.l.Fb=function(){}; g.l.EJ=function(){}; g.l.onVolumeChange=function(){}; g.l.Rx=function(){}; g.l.Ur=function(){};g.n($l,g.N);g.l=$l.prototype; g.l.Z8=function(h,W,c,V){if(this.W.has(W.triggerId)||this.G.has(W.triggerId))throw new S("Tried to re-register the trigger.");h=new jT(h,W,c,V);if(h.trigger instanceof gk)this.W.set(h.trigger.triggerId,h);else if(h.trigger instanceof Yc)this.G.set(h.trigger.triggerId,h);else throw new S("Incorrect TriggerType: Tried to register trigger of type "+h.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.W.has(h.trigger.triggerId)&&h.slot.slotId===this.X&&ZG(this.Y(),[h])}; g.l.xO=function(h){this.W.delete(h.triggerId);this.G.delete(h.triggerId)}; g.l.sV=function(h){h=h.slotId;if(this.X!==h){var W=[];this.X!=null&&W.push.apply(W,g.rN(WJ7(this.G,this.X)));h!=null&&W.push.apply(W,g.rN(WJ7(this.W,h)));this.X=h;W.length&&ZG(this.Y(),W)}}; g.l.Ul=function(){}; g.l.Kb=function(){};g.n(sf,g.N);g.l=sf.prototype;g.l.Z8=function(h,W,c,V){if(this.QA.has(W.triggerId))throw new S("Tried to register duplicate trigger for slot.");if(!(W instanceof Ws))throw new S("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.QA.set(W.triggerId,new jT(h,W,c,V))}; g.l.xO=function(h){this.QA.delete(h.triggerId)}; g.l.JI=function(){}; g.l.Gx=function(){}; g.l.Rd=function(){}; g.l.HB=function(){}; g.l.Qi=function(){}; g.l.v9=function(){}; g.l.bT=function(){}; g.l.LG=function(){}; g.l.Nh=function(){}; g.l.BH=function(){}; g.l.Te=function(){}; g.l.Cp=function(){};g.n(HL,g.N);g.l=HL.prototype;g.l.Cp=function(h,W){for(var c=[],V=g.e(this.QA.values()),H=V.next();!H.done;H=V.next()){H=H.value;var B=H.trigger;B.opportunityType===h&&(B.associatedSlotId&&B.associatedSlotId!==W||c.push(H))}c.length&&ZG(this.X(),c)}; g.l.Z8=function(h,W,c,V){if(this.QA.has(W.triggerId))throw new S("Tried to register duplicate trigger for slot.");if(!(W instanceof uek))throw new S("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in OpportunityEventTriggerAdapter");this.QA.set(W.triggerId,new jT(h,W,c,V))}; g.l.xO=function(h){this.QA.delete(h.triggerId)}; g.l.Rd=function(){}; g.l.HB=function(){}; g.l.Qi=function(){}; g.l.v9=function(){}; g.l.bT=function(){}; g.l.LG=function(){}; g.l.Nh=function(){}; g.l.BH=function(){}; g.l.Te=function(){}; g.l.JI=function(){}; g.l.Gx=function(){};g.n(BL,g.N);g.l=BL.prototype;g.l.Z8=function(h,W,c,V){h=new jT(h,W,c,V);if(W instanceof OR||W instanceof wk||W instanceof SJ||W instanceof VA||W instanceof u9D){if(this.QA.has(W.triggerId))throw new S("Tried to register duplicate trigger for slot.");this.QA.set(W.triggerId,h)}else throw new S("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in PrefetchTriggerAdapter");}; g.l.xO=function(h){this.QA.delete(h.triggerId)}; g.l.Rd=function(h){var W=h.slotFulfillmentTriggers.find(function(c){return c instanceof OR}); W&&(Ef(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",W.breakDurationMs,new Set([h.slotId]),!0),xc(this.nM.get(),"ads_css","sid."+h.slotId+";bd."+W.breakDurationMs))}; g.l.HB=function(){}; g.l.Qi=function(){}; g.l.v9=function(){}; g.l.bT=function(){}; g.l.LG=function(){}; g.l.Nh=function(){}; g.l.BH=function(){}; g.l.Te=function(){}; g.l.JI=function(){}; g.l.Gx=function(){}; g.l.Cp=function(){}; g.l.WM=function(h){var W=this;if(!this.X)return sA("Unexpected cue break before fetch instructions are available"),!1;this.W&&this.W.stop();this.C&&g.pO(this.C);var c=sv5(this,h);if(!c){var V=VmU(this),H=this.S!==void 0&&Date.now()<=this.S+1E4;xc(this.nM.get(),"ads_ncfs","cid."+h.identifier+";cd."+h.QM.toFixed(3)+";ccs."+H+";cfa."+this.Y+";bdc."+V.length+";"+V.slice(0,6).map(function(B){return";bd."+B}).join("")); return H?(ND(this.RF,this.X,h),!0):!1}(V=ov(c.slot.clientMetadata,"metadata_type_triggering_cue_point"))?V.current=h:sA("Expected triggering cue point ref to be available",c.slot);(new g.oD(function(){var B=c.trigger,E=c.slot;Ef(W,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",B.breakDurationMs,new Set,!0);Ef(W,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",B.breakDurationMs,new Set,!1);for(var J=0,u=g.e(W.QA.values()),d=u.next();!d.done;d=u.next()){d=d.value;var G=d.trigger; d.slot.slotId===E.slotId&&(W.QA.delete(G.triggerId),J++)}xc(W.nM.get(),"ads_csf","sid."+E.slotId+";bd."+B.breakDurationMs+";dt."+J)},10)).start(); return!0}; g.l.K6=function(){}; g.l.qv=function(h){var W=this;this.Y=!1;this.S=Date.now();if(this.X&&this.X.contentCpn!==h)sA("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:h,fetchInstructionsCpn:this.X.contentCpn}),Rq(this);else{this.G=new g.oD(function(){if(W.Y)delete W.G;else{var V=W.Qg.get().getGetAdBreakContext(),H;if(Number(V==null?void 0:(H=V.livePlaybackPosition)==null?void 0:H.utcTimeMillis)>0)delete W.G,$Od(W);else{var B;(B=W.G)==null||B.start()}}},200); var c;(c=this.G)==null||c.start()}}; g.l.Ft=function(h){this.X&&this.X.contentCpn!==h&&sA("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:h,fetchInstructionsCpn:this.X.contentCpn},!0);Rq(this)}; g.l.yY=function(h){var W=this;if(this.X)sA("Unexpected multiple fetch instructions for the current content");else{this.X=h;h=ByN(h);this.W=new g.oD(function(){$Od(W)},h?h:6E5); this.W.start();this.C=new g.oD(function(){W.X&&(W.W&&(W.W.stop(),W.W.start()),cXk(W,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},HAU(this.X)); h=this.Qg.get().getCurrentTimeSec(1,!1);for(var c=g.e(this.Ky.get().gQ),V=c.next();!V.done;V=c.next())V=V.value,xc(this.nM.get(),"nocache","ct."+Date.now()+";cmt."+h+";d."+V.QM.toFixed(3)+";tw."+(V.startSecs-h)+";cid."+V.identifier+";")}}; g.l.dE=function(){g.N.prototype.dE.call(this);Rq(this)};g.n(Jx,g.N);g.l=Jx.prototype;g.l.Z8=function(h,W,c,V){if(this.QA.has(W.triggerId))throw new S("Tried to register duplicate trigger for slot.");if(!(W instanceof dV))throw new S("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.QA.set(W.triggerId,new jT(h,W,c,V));h=this.X.has(W.triggeringLayoutId)?this.X.get(W.triggeringLayoutId):new Set;h.add(W);this.X.set(W.triggeringLayoutId,h)}; g.l.xO=function(h){this.QA.delete(h.triggerId);if(!(h instanceof dV))throw new S("Incorrect TriggerType: Tried to unregister trigger of type "+h.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var W=this.W.get(h.triggerId);W&&(W.dispose(),this.W.delete(h.triggerId));if(W=this.X.get(h.triggeringLayoutId))W.delete(h),W.size===0&&this.X.delete(h.triggeringLayoutId)}; g.l.Rd=function(){}; g.l.HB=function(){}; g.l.Qi=function(){}; g.l.v9=function(){}; g.l.bT=function(){}; g.l.LG=function(){}; g.l.Nh=function(){}; g.l.BH=function(){}; g.l.Te=function(){}; g.l.Cp=function(){}; g.l.JI=function(h,W){var c=this;if(this.X.has(W.layoutId)){h=this.X.get(W.layoutId);h=g.e(h);var V=h.next();for(W={};!V.done;W={bH:void 0},V=h.next())W.bH=V.value,V=new g.oD(function(H){return function(){var B=c.QA.get(H.bH.triggerId);ZG(c.G(),[B])}}(W),W.bH.durationMs),V.start(),this.W.set(W.bH.triggerId,V)}}; g.l.Gx=function(){};g.n(um,g.N);um.prototype.Z8=function(h,W,c,V){if(this.QA.has(W.triggerId))throw new S("Tried to register duplicate trigger for slot.");if(!(W instanceof T5))throw new S("Incorrect TriggerType: Tried to register trigger of type "+W.triggerType+" in VideoTransitionTriggerAdapter.");this.QA.set(W.triggerId,new jT(h,W,c,V))}; um.prototype.xO=function(h){this.QA.delete(h.triggerId)};rU.prototype.Cv=function(h){return h.kind==="AD_PLACEMENT_KIND_START"};g.n(lm,g.N);g.l=lm.prototype;g.l.logEvent=function(h){this.sH(h)}; g.l.Tr=function(h,W,c){this.sH(h,void 0,void 0,void 0,W,void 0,void 0,void 0,W.adSlotLoggingData,void 0,void 0,c)}; g.l.pG=function(h,W,c,V){this.sH(h,void 0,void 0,void 0,W,c?c:void 0,void 0,void 0,W.adSlotLoggingData,c?c.adLayoutLoggingData:void 0,void 0,V)}; g.l.Xp=function(h,W,c,V){Fo(this.hk.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+h,"trigger:",c,"slot:",W,"layout:",V);Sm(this.X.get())&&this.sH(h,void 0,void 0,void 0,W,V?V:void 0,void 0,c,W.adSlotLoggingData,V?V.adLayoutLoggingData:void 0)}; g.l.VS=function(h,W,c,V,H){this.sH(h,W,c,V,void 0,void 0,void 0,void 0,void 0,void 0,void 0,H)}; g.l.uG=function(h,W,c,V){this.sH("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,c,V,void 0,void 0,c.adSlotLoggingData,V?V.adLayoutLoggingData:void 0,{errorType:h,errorMessage:W})}; g.l.sH=function(h,W,c,V,H,B,E,J,u,d,G,Z){var r=this;Z=Z===void 0?0:Z;Fo(this.hk.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+h,"slot:",H,"layout:",B,"ping:",E,"Opportunity:",{opportunityType:W,associatedSlotId:c,DEB:V,LJ9:J,adSlotLoggingData:u,adLayoutLoggingData:d});try{var q=function(){if(!r.hk.get().L.B().j("html5_disable_client_tmp_logs")&&h!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){h||sA("Empty PACF event type",H,B);var x=Sm(r.X.get()),z={eventType:h,eventOrder:++r.eventCount},L={}; H&&(L.slotData=Oz(x,H));B&&(L.layoutData=vAp(x,B));E&&(L.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:E.X.serializedAdPingMetadata,pingIndex:E.index});J&&(L.triggerData=Y1(J.trigger,J.category));W&&(L.opportunityData=mA7(x,W,c,V));x={organicPlaybackContext:{contentCpn:Fm(r.SO.get(),1).clientPlaybackNonce}};x.organicPlaybackContext.isLivePlayback=Fm(r.SO.get(),1).Hi;var M;x.organicPlaybackContext.isMdxPlayback=(M=Fm(r.SO.get(),1))==null?void 0:M.isMdxPlayback; var U;if((U=Fm(r.SO.get(),1))==null?0:U.daiEnabled)x.organicPlaybackContext.isDaiContent=!0;var y;if(M=(y=Fm(r.SO.get(),2))==null?void 0:y.clientPlaybackNonce)x.adVideoPlaybackContext={adVideoCpn:M};x&&(L.externalContext=x);z.adClientData=L;u&&(z.serializedSlotAdServingData=u.serializedSlotAdServingDataEntry);d&&(z.serializedAdServingData=d.serializedAdServingDataEntry);G&&(z.errorInfo=G);g.V5("adsClientStateChange",{adsClientEvent:z})}}; Z&&Z>0?g.II(g.Oh(),function(){return q()},Z):q()}catch(x){Fo(this.hk.get(),"html5_log_pacf_logging_errors")&&g.II(g.Oh(),function(){sA(x instanceof Error?x:String(x),H,B,{pacf_message:"exception during pacf logging"})})}};var xP6=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.n(n0,lm);g.l=n0.prototype; g.l.Tr=function(h,W,c){lm.prototype.Tr.call(this,h,W,c);H_(this.hk.get())&&(c={},this.context.MB.Wi("pacf",(c.et=h,c.st=W.slotType,c.si=W.slotId,c)))}; g.l.pG=function(h,W,c,V){var H=xP6.has(h);lm.prototype.pG.call(this,h,W,c,V);H_(this.hk.get(),H)&&(V={},this.context.MB.Wi("pacf",(V.et=h,V.st=W.slotType,V.si=W.slotId,V.lt=c==null?void 0:c.layoutType,V.li=c==null?void 0:c.layoutId,V.p_ac=c==null?void 0:c.layoutId,V)))}; g.l.VS=function(h,W,c,V,H){lm.prototype.VS.call(this,h,W,c,V,H);H_(this.hk.get())&&(c={},this.context.MB.Wi("pacf",(c.et=h,c.ot=W,c.ss=V==null?void 0:V.length,c)))}; g.l.Xp=function(h,W,c,V){lm.prototype.Xp.call(this,h,W,c,V);if(H_(this.hk.get())){var H={};this.context.MB.Wi("pacf",(H.et=h,H.tt=c.trigger.triggerType,H.tc=c.category,H.st=W.slotType,H.si=W.slotId,H.lt=V==null?void 0:V.layoutType,H.li=V==null?void 0:V.layoutId,H.p_ac=V==null?void 0:V.layoutId,H))}}; g.l.uG=function(h,W,c,V){lm.prototype.uG.call(this,h,W,c,V);if(H_(this.hk.get(),!0)){var H={};this.context.MB.Wi("perror",(H.ert=h,H.erm=W,H.st=c.slotType,H.si=c.slotId,H.lt=V==null?void 0:V.layoutType,H.li=V==null?void 0:V.layoutId,H.p_ac=V==null?void 0:V.layoutId,H))}}; g.l.sH=function(h,W,c,V,H,B,E,J,u,d,G){var Z=this.hk.get();g.uJ(Z.L.B())?(Z=this.hk.get(),Z=g.DF(Z.L.B().experiments,"H5_async_logging_delay_ms")):Z=void 0;lm.prototype.sH.call(this,h,W,c,V,H,B,E,J,u,d,G,Z)};jo.prototype.clear=function(){this.X.clear()};aq.prototype.state=function(){return this.X==="fulfilled"?{state:"fulfilled",value:this.result}:this.X==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; aq.prototype.Y=function(h){za(h)||eo(h)?Ax(Qg(h),this.Y.bind(this),this.reject.bind(this)):(this.X="fulfilled",this.result=h,K0(this))}; aq.prototype.reject=function(h){this.X="rejected";this.error=h;K0(this)}; var eo=HW(function(h){return Uu6(h)?h instanceof aq:!1});Object.freeze({SZf:function(h){var W=PL(h);return Ax(yg(W,function(c){return W[c].X==="rejected"}),function(c){return Number.isNaN(c)?W.map(function(V){return V.state().value}):W[c]})}, RLM:function(h){var W=PL(h);return Ax(yg(W),function(){return W.map(function(c){return c.state()})})}, qZM:function(h){var W=PL(h);return Ax(yg(W,function(c){return W[c].X==="fulfilled"}),function(c){return Number.isNaN(c)?L0(new AggregateError(W.map(function(V){return V.state().reason}))):W[c].state().value})}, FJf:function(h){var W=PL(h);return Ax(yg(W,function(){return!0}),function(c){return W[c]})}});var f0=window.KaN||"es-419";XG.prototype.y9=function(h){this.client=h}; XG.prototype.X=function(){this.clear();this.csn=g.q_()}; XG.prototype.clear=function(){this.G.clear();this.W.clear();this.Y.clear();this.csn=null};vL.prototype.y9=function(h){g.IW(tx().y9).bind(tx())(h)}; vL.prototype.clear=function(){g.IW(tx().clear).bind(tx())()};g.l=mH.prototype;g.l.y9=function(h){this.client=h}; g.l.Gf=function(h,W){var c=this;W=W===void 0?{}:W;g.IW(function(){var V,H,B,E=((V=g.v(h==null?void 0:h.commandMetadata,g.i5))==null?void 0:V.rootVe)||((H=g.v(h==null?void 0:h.commandMetadata,fQ6))==null?void 0:(B=H.screenVisualElement)==null?void 0:B.uiType);if(E){V=g.v(h==null?void 0:h.commandMetadata,W_f);if(V==null?0:V.parentTrackingParams){var J=g.GE(V.parentTrackingParams);if(V.parentCsn)var u=V.parentCsn}else W.clickedVisualElement?J=W.clickedVisualElement:h.clickTrackingParams&&(J=g.GE(h.clickTrackingParams)); a:{V=g.v(h,g.nC);H=g.v(h,O6K);if(V){if(H=iAv(V,"VIDEO")){V={token:H,videoId:V.videoId};break a}}else if(H&&(V=iAv(H,"PLAYLIST"))){V={token:V,playlistId:H.playlistId};break a}V=void 0}W=Object.assign({},{cttAuthInfo:V,parentCsn:u},W);if(g.ZX("expectation_logging")){var d;W.loggingExpectations=((d=g.v(h==null?void 0:h.commandMetadata,fQ6))==null?void 0:d.loggingExpectations)||void 0}p0(c,E,J,W)}else g.Lx(new g.tP("Error: Trying to create a new screen without a rootVeType",h))})()}; g.l.clickCommand=function(h,W,c){h=h.clickTrackingParams;c=c===void 0?0:c;h?(c=g.q_(c===void 0?0:c))?(o3(this.client,c,g.GE(h),W),W=!0):W=!1:W=!1;return W}; g.l.stateChanged=function(h,W,c){this.visualElementStateChanged(g.GE(h),W,c===void 0?0:c)}; g.l.visualElementStateChanged=function(h,W,c){c=c===void 0?0:c;c===0&&this.W.has(c)?this.Z.push([h,W]):FJv(this,h,W,c)};So.prototype.fetch=function(h,W,c){var V=this,H=fFL(h,W,c);return new Promise(function(B,E){function J(){if(c==null?0:c.h7)try{var d=V.handleResponse(h,H.status,H.response,c);B(d)}catch(G){E(G)}else B(V.handleResponse(h,H.status,H.response,c))} H.onerror=J;H.onload=J;var u;H.send((u=W.body)!=null?u:null)})}; So.prototype.handleResponse=function(h,W,c,V){c=c.replace(")]}'","");try{var H=JSON.parse(c)}catch(B){g.Lx(new g.tP("JSON parsing failed after XHR fetch",h,W,c));if((V==null?0:V.h7)&&c)throw new g.NE(1,"JSON parsing failed after XHR fetch");H={}}W!==200&&(g.Lx(new g.tP("XHR API fetch failed",h,W,c)),H=Object.assign({},H,{errorMetadata:{status:W}}));return H};gU.getInstance=function(){var h=g.c2("ytglobal.storage_");h||(h=new gU,g.hS("ytglobal.storage_",h));return h}; gU.prototype.estimate=function(){var h,W,c;return g.P(function(V){h=navigator;return((W=h.storage)==null?0:W.estimate)?V.return(h.storage.estimate()):((c=h.webkitTemporaryStorage)==null?0:c.queryUsageAndQuota)?V.return(bAk()):V.return()})}; g.hS("ytglobal.storageClass_",gU);Wp.prototype.gi=function(h){this.handleError(h)}; Wp.prototype.logEvent=function(h,W){switch(h){case "IDB_DATA_CORRUPTED":g.ZX("idb_data_corrupted_killswitch")||this.X("idbDataCorrupted",W);break;case "IDB_UNEXPECTEDLY_CLOSED":this.X("idbUnexpectedlyClosed",W);break;case "IS_SUPPORTED_COMPLETED":g.ZX("idb_is_supported_completed_killswitch")||this.X("idbIsSupportedCompleted",W);break;case "QUOTA_EXCEEDED":Nyh(this,W);break;case "TRANSACTION_ENDED":this.G&&Math.random()<=.1&&this.X("idbTransactionEnded",W);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":h= Object.assign({},W,{hasWindowUnloaded:this.W}),this.X("idbTransactionAborted",h)}};var w1={},otU=g.OG("yt-player-local-media",{iP:(w1.index={vp:2},w1.media={vp:2},w1.captions={vp:5},w1),shared:!1,upgrade:function(h,W){W(2)&&(g.z1(h,"index"),g.z1(h,"media"));W(5)&&g.z1(h,"captions");W(6)&&(Q5(h,"metadata"),Q5(h,"playerdata"))}, version:5});var lY6={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},kO;a:{var hV=g.TF();hV=hV.toLowerCase();if(g.Mx(hV,"android")){var nwX=hV.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(nwX){var jXf=parseFloat(nwX[1]);if(jXf<100){kO=jXf;break a}}var aYK=hV.match("("+Object.keys(lY6).join("|")+")");kO=aYK?lY6[aYK[0]]:0}else kO=void 0}var WF=kO,h0=WF>=0;var YP4=window;var Xq5=y_(function(){var h,W;return(W=(h=window).matchMedia)==null?void 0:W.call(h,"(prefers-reduced-motion: reduce)").matches});var wU;g.Dq=new Gy;wU=0;var rh=YzL()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.vp?!0:!1;var Wb={iR:function(h,W){h[R[15]](0,W)}, PB:function(h,W){var c=h[0];h[0]=h[W%h[R[18]]];h[W%h[R[18]]]=c}, TD:function(h){h[R[46]]()}};var Nk7={sF9:"adunit",dvn:"detailpage",nCf:"editpage",gCk:"embedded",wR9:"leanback",huf:"previewpage",fkf:"profilepage",Sa:"unplugged",GLM:"playlistoverview",lwk:"sponsorshipsoffer",pYk:"shortspage",WLE:"handlesclaiming",Hgk:"immersivelivepage",WRB:"creatormusic",nO9:"immersivelivepreviewpage",jF9:"admintoolyurt",tlH:"shortsaudiopivot",AGI:"consumption"};var vc7={Qlf:0,DBn:1,kuB:2,0:"AUDIO_QUALITY_SETTING_UNKNOWN",1:"AUDIO_QUALITY_SETTING_HIGHER_QUALITY",2:"AUDIO_QUALITY_SETTING_NORMAL_QUALITY"};var D6T=2592E3;var W$,eGK,ya;W$={};g.ly=(W$.STOP_EVENT_PROPAGATION="html5-stop-propagation",W$.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",W$.IV_DRAWER_OPEN="ytp-iv-drawer-open",W$.MAIN_VIDEO="html5-main-video",W$.VIDEO_CONTAINER="html5-video-container",W$.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",W$.HOUSE_BRAND="house-brand",W$);eGK={};ya=(eGK.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",eGK.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",eGK);var BzN={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var uuQ={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},db7={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"},$eD={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var RnN={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.a7.prototype.getLanguageInfo=function(){return this.iW}; g.a7.prototype.getXtags=function(){if(!this.xtags){var h=this.id.split(";");h.length>1&&(this.xtags=h[1])}return this.xtags}; g.a7.prototype.toString=function(){return this.iW.name}; g.a7.prototype.getLanguageInfo=g.a7.prototype.getLanguageInfo;eG.prototype.equals=function(h){return this.W===h.W&&this.X===h.X&&this.G===h.G&&this.reason===h.reason&&(!QQ||this.Vg===h.Vg)}; eG.prototype.isLocked=function(){return this.G&&!!this.W&&this.W===this.X}; eG.prototype.compose=function(h){if(h.G&&LB(h))return dM;if(h.G||LB(this))return h;if(this.G||LB(h))return this;var W=this.W&&h.W?Math.max(this.W,h.W):this.W||h.W,c=this.X&&h.X?Math.min(this.X,h.X):this.X||h.X;W=Math.min(W,c);var V=0;QQ&&(V=this.Vg!==0&&h.Vg!==0?Math.min(this.Vg,h.Vg):this.Vg===0?h.Vg:this.Vg);return QQ&&W===this.W&&c===this.X&&V===this.Vg||!QQ&&W===this.W&&c===this.X?this:QQ?new eG(W,c,!1,c===this.X&&V===this.Vg?this.reason:h.reason,V):new eG(W,c,!1,c===this.X?this.reason:h.reason)}; eG.prototype.Y=function(h){return!h.video||QQ&&this.Vg!==0&&this.Vg=0}; g.l.f5=function(){var h=this.segments[this.segments.length-1];return h?h.endTime:NaN}; g.l.Jw=function(){return this.segments[0].startTime}; g.l.NV=function(){return this.segments.length}; g.l.LN=function(){return 0}; g.l.Gj=function(h){return(h=this.lx(h))?h.Hk:-1}; g.l.Ow=function(h){return(h=this.Hp(h))?h.sourceURL:""}; g.l.getStartTime=function(h){return(h=this.Hp(h))?h.startTime:0}; g.l.gh=function(h){return this.getStartTime(h)+this.getDuration(h)}; g.l.lY=hN(1);g.l.isLoaded=function(){return this.segments.length>0}; g.l.Hp=function(h){if(this.X&&this.X.Hk===h)return this.X;h=g.mU(this.segments,new SG(h,0,0,0,""),function(W,c){return W.Hk-c.Hk}); return this.X=h>=0?this.segments[h]:null}; g.l.lx=function(h){if(this.X&&this.X.startTime<=h&&h=0?this.segments[h]:this.segments[Math.max(0,-h-2)]}; g.l.append=function(h){if(h.length)if(h=g.Mu(h),this.segments.length){var W=this.segments.length?g.x6(this.segments).endTime:0,c=h[0].Hk-this.KR();c>1&&z4v(this.segments);for(c=c>0?0:-c+1;ch.Hk&&this.index.jf()<=h.Hk+1}; g.l.update=function(h,W,c){this.index.append(h);vn4(this.index,c);h=this.index;h.W=W;h.G="update"}; g.l.Yx=function(){return this.Ar()?!0:IQ.prototype.Yx.call(this)}; g.l.S0=function(h,W){var c=this.index.Ow(h),V=this.index.getStartTime(h),H=this.index.getDuration(h),B;W?H=B=0:B=this.info.Vg>0?this.info.Vg*H:1E3;return new $P([new D$(3,this,void 0,"liveCreateRequestInfoForSegment",h,V,H,0,B,!W)],c)}; g.l.FG=function(){return this.Ar()?0:this.initRange.length}; g.l.jV=function(){return!1};uS.prototype.update=function(h){var W=void 0;this.W&&(W=this.W);var c=new uS,V=Array.from(h.getElementsByTagName("S"));if(V.length){var H=+Ru(h,"timescale")||1,B=(+V[0].getAttribute("t")||0)/H,E=+Ru(h,"startNumber")||0;c.Y=B;var J=W?W.startSecs+W.QM:0,u=Date.parse(fxl(Ru(h,"yt:segmentIngestTime")))/1E3;c.C=h.parentElement.tagName==="SegmentTemplate";c.C&&(c.S=Ru(h,"media"));h=W?E-W.Hk:1;c.N=h>0?0:-h+1;h=g.e(V);for(V=h.next();!V.done;V=h.next()){V=V.value;for(var d=+V.getAttribute("d")/H,G=(+V.getAttribute("yt:sid")|| 0)/H,Z=+V.getAttribute("r")||0,r=0;r<=Z;r++)if(W&&E<=W.Hk)E++;else{var q=new ypQ(E,J,d,u+G,B);c.X.push(q);var x=V;var z=H,L=q.startSecs;q=x.getAttribute("yt:cuepointTimeOffset");var M=x.getAttribute("yt:cuepointDuration");if(q&&M){q=Number(q);L=-q/z+L;z=Number(M)/z;M=x.getAttribute("yt:cuepointContext")||null;var U=x.getAttribute("yt:cuepointIdentifier")||"";x=x.getAttribute("yt:cuepointEvent")||"";x=new H0(L,z,M,U,QXU[x]||"unknown",q)}else x=null;x&&c.G.push(x);E++;J+=d;B+=d;u+=d+G}}c.X.length&& (c.W=g.x6(c.X))}this.N=c.N;this.W=c.W||this.W;g.F6(this.X,c.X);g.F6(this.G,c.G);this.C=c.C;this.S=c.S;this.Y===-1&&(this.Y=c.getStreamTimeOffset())}; uS.prototype.getStreamTimeOffset=function(){return this.Y===-1?0:this.Y};g.n(Gw,g.gE);g.l=Gw.prototype;g.l.Ht=function(){return this.fp}; g.l.sO=function(h,W){h=Zs(this,h);return h>=0&&(W||!this.segments[h].pending)}; g.l.jf=function(){return this.f9?this.segments.length?this.lx(this.Jw()).Hk:-1:g.gE.prototype.jf.call(this)}; g.l.Jw=function(){if(this.N$)return 0;if(!this.f9)return g.gE.prototype.Jw.call(this);if(!this.segments.length)return 0;var h=Math.max(g.x6(this.segments).endTime-this.G7,0);return this.W9>0&&this.lx(h).Hk0)return this.gK/1E3;if(!this.segments.length)return g.gE.prototype.f5.call(this);var h=this.KR();if(!this.f9||h<=this.segments[this.segments.length-1].Hk)h=this.segments[this.segments.length-1];else{var W=this.segments[this.segments.length-1];h=new SG(h,Math.max(0,W.startTime-(W.Hk-h)*this.fp),this.fp,0,"sq/"+h,void 0,void 0,!0)}return this.N$?Math.min(this.G7,h.endTime):h.endTime}; g.l.NV=function(){return this.f9?this.segments.length?this.KR()-this.jf()+1:0:g.gE.prototype.NV.call(this)}; g.l.KR=function(){var h=Math.min(this.v5,Math.max(g.gE.prototype.KR.call(this),this.ML)),W=this.G7*1E3;W=this.gK>0&&this.gK0&&this.ML>0&&!W&&(W=this.lx(this.G7))&&(h=Math.min(W.Hk-1,h));return h}; g.l.u3=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.l.T1=function(h){var W=Zs(this,h.Hk);if(W>=0)this.segments[W]=h;else if(this.segments.splice(-(W+1),0,h),this.Po&&h.Hk%(300/this.fp)===0){var c=this.segments[0].Hk,V=Math.floor(this.Po/this.fp);h=h.Hk-V;W=-(W+1)-V;W>0&&h>c&&(this.segments=this.segments.slice(W))}}; g.l.GJ=function(){return this.ML}; g.l.e9=function(h){return dW?!this.W&&h>=0&&this.KR()<=h:g.gE.prototype.e9.call(this,h)}; g.l.lx=function(h){if(!this.f9)return g.gE.prototype.lx.call(this,h);if(!this.segments.length)return null;var W=this.segments[this.segments.length-1];if(h=W.endTime)W=W.Hk+Math.floor((h-W.endTime)/this.fp+1);else{W=of(this.segments,function(V){return h=V.endTime?1:0}); if(W>=0)return this.segments[W];var c=-(W+1);W=this.segments[c-1];c=this.segments[c];W=Math.floor((h-W.endTime)/((c.startTime-W.endTime)/(c.Hk-W.Hk-1))+1)+W.Hk}return this.Hp(W)}; g.l.Hp=function(h){if(!this.f9)return g.gE.prototype.Hp.call(this,h);if(!this.segments.length)return null;var W=Zs(this,h);if(W>=0)return this.segments[W];var c=-(W+1);W=this.fp;if(c===0)var V=Math.max(0,this.segments[0].startTime-(this.segments[0].Hk-h)*W);else c===this.segments.length?(V=this.segments[this.segments.length-1],V=V.endTime+(h-V.Hk-1)*W):(V=this.segments[c-1],W=this.segments[c],W=(W.startTime-V.endTime)/(W.Hk-V.Hk-1),V=V.endTime+(h-V.Hk-1)*W);return new SG(h,V,W,0,"sq/"+h,void 0,void 0, !0)}; var dW=!1;g.n(rW,Ej);g.l=rW.prototype;g.l.BJ=function(){return!0}; g.l.Yx=function(){return!0}; g.l.j0=function(h){return this.Cq()&&h.G&&!h.C||!h.X.index.e9(h.Hk)}; g.l.Wd=function(){}; g.l.aG=function(h,W){return typeof h!=="number"||isFinite(h)?Ej.prototype.aG.call(this,h,W===void 0?!1:W):new $P([new D$(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Ix,void 0,this.Ix*this.info.Vg)],"")}; g.l.S0=function(h,W){var c=c===void 0?!1:c;if(this.index.sO(h))return Ej.prototype.S0.call(this,h,W);var V=this.index.getStartTime(h),H=Math.round(this.Ix*this.info.Vg),B=this.Ix;W&&(B=H=0);return new $P([new D$(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",h,V,B,void 0,H,!W)],h>=0?"sq/"+h:"")};g.n(qj,IQ);g.l=qj.prototype;g.l.Sl=function(){return!1}; g.l.Cq=function(){return!1}; g.l.BJ=function(){return!1}; g.l.Wd=function(){return new $P([new D$(1,this,void 0,"otfInit")],this.C)}; g.l.LT=function(){return null}; g.l.L8=function(h){this.j0(h);return oTp(this,WJ(h),!1)}; g.l.aG=function(h,W){W=W===void 0?!1:W;h=this.index.Gj(h);W&&(h=Math.min(this.index.KR(),h+1));return oTp(this,h,!0)}; g.l.AU=function(h){h.info.type===1&&(this.X||(this.X=H7(h.W)),h.X&&h.X.uri==="http://youtube.com/streaming/otf/durations/112015"&&p_N(this,h.X))}; g.l.j0=function(h){return h.G===0?!0:this.index.KR()>h.Hk&&this.index.jf()<=h.Hk+1}; g.l.FG=function(){return 0}; g.l.jV=function(){return!1};g.xP.prototype.info=function(){}; g.xP.prototype.debug=function(){}; g.xP.prototype.X=function(h){lS.apply(null,[5,this.tag,h].concat(g.rN(g.tN.apply(1,arguments))))}; var OFk=new Map,DQ4=new Map,Snp=new function(){var h=this;this.X=new Map;this.uX={roE:function(){return h.X}}};g.l=g.iS.prototype;g.l.sO=function(h){return h<=this.KR()}; g.l.LN=function(h){return this.offsets[h]}; g.l.getStartTime=function(h){return this.startTicks[h]/this.X}; g.l.gh=function(h){return this.getStartTime(h)+this.getDuration(h)}; g.l.lY=hN(0);g.l.wW=function(){return NaN}; g.l.getDuration=function(h){h=this.MA(h);return h>=0?h/this.X:-1}; g.l.MA=function(h){return h+1=0}; g.l.f5=function(){return this.W?this.startTicks[this.count]/this.X:NaN}; g.l.Jw=function(){return 0}; g.l.NV=function(){return this.count}; g.l.Ow=function(){return""}; g.l.Gj=function(h){h=g.mU(this.startTicks.subarray(0,this.count),h*this.X);return h>=0?h:Math.max(0,-h-2)}; g.l.isLoaded=function(){return this.KR()>=0}; g.l.wU=function(h,W){if(h>=this.KR())return 0;var c=0;for(W=this.getStartTime(h)+W;hthis.getStartTime(h);h++)c=Math.max(c,HI7(this,h)/this.getDuration(h));return c}; g.l.resize=function(h){h+=2;var W=this.offsets;this.offsets=new Float64Array(h+1);var c=this.startTicks;this.startTicks=new Float64Array(h+1);for(h=0;h0&&h&&(c=c.range.end+1,h=Math.min(h,this.info.contentLength-c),h>0&&V.push(new D$(4,this,Sr(c,h),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,W)));return new $P(V)}; g.l.AU=function(h){if(h.info.type===1){if(this.X)return;this.X=H7(h.W)}else if(h.info.type===2){if(this.C||this.index.KR()>=0)return;if(g.yT(this.info)){var W=this.index,c=g.jg(h);h=h.info.range.start;var V=g.JR(c,0,1936286840);c=Wyp(V);W.X=c.timescale;var H=c.w$;W.offsets[0]=c.sP+h+V.size;W.startTicks[0]=H;W.W=!0;h=c.OI.length;for(V=0;V0&&h===B[0].wc)for(h=0;h=W+c)break}H.length||(h=new g.tP("b189619593",""+h,""+W,""+c),g.Qq(h));return new $P(H)}; g.l.dN=function(h){for(var W=this.V5(h.info),c=h.info.range.start+h.info.W,V=[],H=0;H=this.index.LN(c+1);)c++;return this.QT(c,W,h.G).pM}; g.l.j0=function(h){h.CU();return this.Yx()?!0:h.range.end+1this.info.contentLength&&(W=new Y0(W.start,this.info.contentLength-1)),new $P([new D$(4,h.X,W,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,h.clipId)]);h.type===4&&(h=this.V5(h),h=h[h.length-1]);var c=0,V=h.range.start+h.W+h.G;h.type===3&&(h.CU(),c=h.Hk,V===h.range.end+1&&(c+=1));return this.QT(c,V,W)}; g.l.L8=function(){return null}; g.l.aG=function(h,W){W=W===void 0?!1:W;h=this.index.Gj(h);W&&(h=Math.min(this.index.KR(),h+1));return this.QT(h,this.index.LN(h),0,void 0)}; g.l.Sl=function(){return!0}; g.l.Cq=function(){return!0}; g.l.BJ=function(){return!1}; g.l.FG=function(){return this.indexRange.length+this.initRange.length}; g.l.jV=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var VS={},em7=(VS.COLOR_PRIMARIES_BT709="bt709",VS.COLOR_PRIMARIES_BT2020="bt2020",VS.COLOR_PRIMARIES_UNKNOWN=null,VS.COLOR_PRIMARIES_UNSPECIFIED=null,VS),$o={},Eh4=($o.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",$o.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",$o.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",$o.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",$o.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,$o.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,$o);g.Uj.prototype.getName=function(){return this.name}; g.Uj.prototype.getId=function(){return this.id}; g.Uj.prototype.getIsDefault=function(){return this.isDefault}; g.Uj.prototype.toString=function(){return this.name}; g.Uj.prototype.getName=g.Uj.prototype.getName;g.Uj.prototype.getId=g.Uj.prototype.getId;g.Uj.prototype.getIsDefault=g.Uj.prototype.getIsDefault;var d7T=/action_display_post/;var Gnv,Fg,yK;g.n(PJ,g.h1);g.l=PJ.prototype;g.l.isLoading=function(){return this.state===1}; g.l.C$=function(){return this.state===3}; g.l.SXf=function(h){var W=h.getElementsByTagName("Representation");if(h.getElementsByTagName("SegmentList").length>0||h.getElementsByTagName("SegmentTemplate").length>0){this.Hi=this.W=!0;this.timeline||(this.timeline=new TAh);vTd(this.timeline,h);this.publish("refresh");for(h=0;h=0?G=Ow(r):Z=Z+"?range="+r}u.call(J,new SG(d.Hk,d.startSecs,d.QM,d.X,Z,G,d.W))}V=H}c.update(V,this.isLive,this.Rz)}mQ7(this.timeline);return!0}this.duration=PXv(Ru(h,"mediaPresentationDuration")); a:{for(h=0;h0))return this.Md()-h}}h=this.X;for(var W in h){var c=h[W].index;if(c.isLoaded()&&!XK(h[W].info.mimeType))return c.Jw()}return 0}; g.l.getStreamTimeOffset=function(){return this.S}; g.l.wW=function(h){for(var W in this.X){var c=this.X[W].index;if(c.isLoaded()){var V=c.Gj(h),H=c.wW(V);if(H)return H+h-c.getStartTime(V)}}return NaN}; var Sg=null,Lxu,gW=!((Lxu=navigator.mediaCapabilities)==null||!Lxu.decodingInfo),AYT={commentary:1,alternate:2,dub:3,main:4};var L_=new Set,Ds=new Map;hg.prototype.clone=function(h){return new hg(this.flavor,h,this.W,this.experiments)}; hg.prototype.MU=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; hg.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 is2={},Jg=(is2.playready=["com.youtube.playready","com.microsoft.playready"],is2.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],is2),sy={},Csk=(sy.widevine="DRM_SYSTEM_WIDEVINE",sy.fairplay="DRM_SYSTEM_FAIRPLAY",sy.playready="DRM_SYSTEM_PLAYREADY",sy),H$={},Kxl=(H$.widevine=1,H$.fairplay=2,H$.playready=3,H$);var Gc;g.n(uf,g.N); uf.prototype.initialize=function(h,W){for(var c=this,V=g.e(Object.keys(h)),H=V.next();!H.done;H=V.next()){H=g.e(h[H.value]);for(var B=H.next();!B.done;B=H.next())if(B=B.value,B.k9)for(var E=g.e(Object.keys(B.k9)),J=E.next();!J.done;J=E.next()){var u=J.value;J=u;u=Jg[u];!u&&this.j("html5_enable_vp9_fairplay")&&J==="fairplay"&&(u=["com.youtube.fairplay.sbdl"]);if(u){u=g.e(u);for(var d=u.next();!d.done;d=u.next())d=d.value,this.G[d]=this.G[d]||new hg(J,d,B.k9[J],this.fM.experiments),this.X[J]=this.X[J]|| {},this.X[J][B.mimeType]=!0}}}XA()&&(this.G["com.youtube.fairplay"]=new hg("fairplay","com.youtube.fairplay","",this.fM.experiments),this.j("html5_enable_vp9_fairplay")||(this.X.fairplay=this.X.fairplay||{},this.X.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.X.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.W=vhQ(W,this.useCobaltWidevine,this.j("html5_enable_safari_fairplay")&&!0,this.j("html5_enable_vp9_fairplay")).filter(function(G){return!!c.G[G]})}; uf.prototype.j=function(h){return this.fM.experiments.xN(h)};var A3U={"":"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"};OIp.prototype.j=function(h){return this.experiments.xN(h)};var tJ7={RED:"red",jLg:"white"};Ssd.prototype.xN=function(h){h=this.flags[h];JSON.stringify(h);return h==="true"};var wck=Promise.resolve(),cod=window.queueMicrotask?window.queueMicrotask.bind(window):knN;xa.prototype.canPlayType=function(h,W){h=h.canPlayType?h.canPlayType(W):!1;tZ?h=h||UP2[W]:WF===2.2?h=h||C6l[W]:TN()&&(h=h||MIK[W]);return!!h}; xa.prototype.isTypeSupported=function(h){return this.T?window.cast.receiver.platform.canDisplayType(h):rA(h)}; var C6l={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},MIK={"application/x-mpegURL":"maybe"},UP2={"application/x-mpegURL":"maybe"};g.n(jN,g.h1);jN.prototype.add=function(h,W){if(!this.items[h]&&(W.Bz||W.l5||W.Ll)){var c=this.items,V=W;Object.isFrozen&&!Object.isFrozen(W)&&(V=Object.create(W),Object.freeze(V));c[h]=V;this.publish("vast_info_card_add",h)}}; jN.prototype.remove=function(h){var W=this.get(h);delete this.items[h];return W}; jN.prototype.get=function(h){return this.items[h]||null}; jN.prototype.isEmpty=function(){return g.GF(this.items)};a9.prototype.encrypt=function(h){this.X.exports.AES128CTRCipher_encrypt(this.cipher,h.byteOffset,h.byteLength);return h}; a9.prototype.gE=function(){return this.cipher===0}; a9.prototype.dispose=function(){this.X.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};zc.prototype.rA=function(h,W){W=W===void 0?1:W;this.Kf+=W;this.W+=h;h/=W;for(var c=0;c0)V+="."+eN[H].toFixed(0)+"_"+c.X[H].toFixed(0);else break;c=V}c&&(h[W]=c)}this.X=new H8N;return h}; g.l.toString=function(){return""};g.l=dX4.prototype;g.l.isActive=function(){return!1}; g.l.Xf=function(){}; g.l.Ox=function(){}; g.l.XS=function(){}; g.l.J4=function(h,W){W()}; g.l.oE=function(){return{}}; g.l.toString=function(){return""};var Fx2=new dX4,y3X=!!+mP("html5_enable_profiler"),P6U=!!+mP("html5_onesie_enable_profiler"),B$=y3X||P6U?new Ec4:Fx2,giU=y3X?B$:Fx2,Ll=P6U?B$:Fx2;lNT.prototype.emscripten_notify_memory_growth=function(){};g.l=Qs.prototype;g.l.malloc=function(h){return this.exports.malloc(h)}; g.l.free=function(h){this.exports.free(h)}; g.l.realloc=function(h,W){return this.exports.realloc(h,W)}; g.l.Ji=function(h){if(h.buffer!==this.exports.memory.buffer){var W=this.malloc(h.byteLength);W=new Uint8Array(this.exports.memory.buffer,W,h.byteLength);W.set(h);return W}}; g.l.mP=function(h){if(h.buffer===this.exports.memory.buffer){var W=h.slice();this.free(h.byteOffset);return W}}; var G5l=new function(){this.G=this.Y="WebAssembly"in window},Kl="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); Ll.Xf(Qs,{Ji:function(h){return{profile:"copyj2w",Kf:h===void 0?0:Math.ceil(h.byteLength/16)}}, mP:function(h){return{profile:"copyw2j",Kf:h===void 0?0:Math.ceil(h.byteLength/16)}}});Ag.prototype.encrypt=function(h,W){try{return this.X.mP(elp(this,h,W))}catch(c){g.Lx(Error("ocwce: wasm encrypt failed: "+c))}}; Ag.prototype.gE=function(){return this.G}; Ag.prototype.dispose=function(){this.gE()||(g.hA(this.W),this.X.free(this.Y.byteOffset),this.G=!0)};g.n(zlN,g.N);g.n(L0N,g.N);var Cl;M8.prototype.add=function(h){if(this.pos+20>this.data.length){var W=new Uint8Array(this.data.length*2);W.set(this.data);this.data=W}for(;h>31;)this.data[this.pos++]=Cl[(h&31)+32],h>>=5;this.data[this.pos++]=Cl[h|0]}; M8.prototype.Ey=function(){return g.uQ(this.data.subarray(0,this.pos))}; M8.prototype.reset=function(){this.pos=0};ys.prototype.c5=function(h,W){var c=Math.pow(this.alpha,h);this.X=W*(1-c)+c*this.X;this.W+=h}; ys.prototype.Jt=function(){return this.X/(1-Math.pow(this.alpha,this.W))};Px.prototype.c5=function(h,W){for(var c=0;c<10;c++){var V=this.X[c],H=V+(c===0?h:0),B=1*Math.pow(2,c);if(H<=B)break;V=Math.min(1,(H-B*.5)/V);for(H=0;H<16;H++)B=this.values[c*16+H]*V,this.values[(c+1)*16+H]+=B,this.X[c+1]+=B,this.values[c*16+H]-=B,this.X[c]-=B}V=c=0;H=8192;W>8192&&(c=Math.ceil(Math.log(W/8192)/Math.log(2)),V=8192*Math.pow(2,c-1),H=V*2);c+2>16?this.values[15]+=h:(W=(W-V)/(H-V),this.values[c]+=h*(1-W),this.values[c+1]+=h*W);this.X[0]+=h}; Px.prototype.Jt=function(){var h=h===void 0?this.W:h;var W=W===void 0?.02:W;var c=c===void 0?.98:c;for(var V=this.G,H=0;H<16;H++)V[H]=this.values[H];H=this.X[0];for(var B=1;B<11;B++){var E=this.X[B];if(E===0)break;for(var J=Math.min(1,(h-H)/E),u=0;u<16;u++)V[u]+=this.values[B*16+u]*J;H+=E*J;if(J<1)break}for(B=h=E=0;B<16;B++){J=E+V[B]/H;h+=Math.max(0,Math.min(J,c)-Math.max(E,W))*(B>0?8192*Math.pow(2,B-1):0);if(J>c)break;E=J}return h/(c-W)};fl.prototype.c5=function(h,W){h=Math.min(this.X,Math.max(1,Math.round(h*this.resolution)));h+this.W>=this.X&&(this.G=!0);for(;h--;)this.values[this.W]=W,this.W=(this.W+1)%this.X;this.aU=!0}; fl.prototype.percentile=function(h){var W=this;if(!this.G&&this.W===0)return 0;this.aU&&(g.Y6(this.C,function(c,V){return W.values[c]-W.values[V]}),this.aU=!1); return this.values[this.C[Math.round(h*((this.G?this.X:this.W)-1))]]||0}; fl.prototype.Jt=function(){return this.N?(this.percentile(this.Y-this.N)+this.percentile(this.Y)+this.percentile(this.Y+this.N))/3:this.percentile(this.Y)};g.n(bf,g.N);bf.prototype.yg=function(){var h;(h=this.CM)==null||h.start();if(pl(this)&&this.policy.Z){var W;(W=this.Ql)==null||W.t3()}};MJL.prototype.j=function(h){return this.experiments.xN(h)};g.n(yoU,g.N);var XSl="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(" "),YRv={WvE:"caoe",acz:"capsv",jlM:"cbrand",SJk:"cbr",qJN:"cbrver",yGz:"cchip",BpM:"ccappver",ebE:"ccrv",xvO:"cfrmver",gOz:"c",Sm9:"cver",jDN:"ctheme",Cdg:"cplayer",Ctg:"cmodel",v8:"cnetwork",BAO:"cos",OS_VERSION:"cosver",utN:"cplatform",Sq9:"crqyear"};g.n(uo,g.N);g.l=uo.prototype;g.l.j=function(h){return this.experiments.xN(h)}; g.l.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.l.getVideoUrl=function(h,W,c,V,H,B,E){W={list:W};c&&(H?W.time_continue=c:W.t=c);c=E?"music.youtube.com":g.GJ(this);H=c==="www.youtube.com";!B&&V&&H?B="https://youtu.be/"+h:g.$X(this)?(B="https://"+c+"/fire",W.v=h):(B&&H?(B=this.protocol+"://"+c+"/shorts/"+h,V&&(W.feature="share")):(B=this.protocol+"://"+c+"/watch",W.v=h),tZ&&(h=pKN())&&(W.ebc=h));return g.r0(B,W)}; g.l.getVideoEmbedCode=function(h,W,c,V){W="https://"+g.GJ(this)+"/embed/"+W;V&&(W=g.r0(W,{list:V}));V=c.width;c=c.height;W=Mo(W);h=Mo(h!=null?h:"YouTube video player");return'')}; g.l.supportsGaplessAudio=function(){return g.Zx&&!tZ&&Pf()>=74||g.Ed&&g.tk(68)?!0:!1}; g.l.supportsGaplessShorts=function(){return!this.j("html5_enable_short_gapless")||this.Rz||g.G1?!1:!0}; g.l.getPlayerType=function(){return this.X.cplayer}; g.l.gI=function(){return this.Ns}; var DX5=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],IN7=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],SRU=[19];var Ey={},WEL=(Ey["140"]={numChannels:2},Ey["141"]={numChannels:2},Ey["251"]={audioSampleRate:48E3,numChannels:2},Ey["774"]={audioSampleRate:48E3,numChannels:2},Ey["380"]={numChannels:6},Ey["328"]={numChannels:6},Ey["773"]={},Ey),R6={},k5d=(R6["1"]='video/mp4; codecs="av01.0.08M.08"',R6["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',R6["1e"]='video/mp4; codecs="av01.0.08M.08"',R6["9"]='video/webm; codecs="vp9"',R6["("]='video/webm; codecs="vp9"',R6["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', R6.h='video/mp4; codecs="avc1.64001e"',R6.H='video/mp4; codecs="avc1.64001e"',R6.o='audio/webm; codecs="opus"',R6.a='audio/mp4; codecs="mp4a.40.2"',R6.ah='audio/mp4; codecs="mp4a.40.2"',R6.mac3='audio/mp4; codecs="ac-3"; channels=6',R6.meac3='audio/mp4; codecs="ec-3"; channels=6',R6.i='audio/mp4; codecs="iamf.001.001.Opus"',R6),JV={},hJU=(JV["337"]={width:3840,height:2160,bitrate:3E7,fps:30},JV["336"]={width:2560,height:1440,bitrate:15E6,fps:30},JV["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, JV["702"]={width:7680,height:4320,bitrate:4E7,fps:60},JV["701"]={width:3840,height:2160,bitrate:2E7,fps:60},JV["700"]={width:2560,height:1440,bitrate:1E7,fps:60},JV["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},JV["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},JV["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},JV["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, JV["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},JV["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},JV["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},JV["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},JV["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},JV["315"]={width:3840,height:2160,bitrate:2E7,fps:60},JV["308"]={width:2560, height:1440,bitrate:1E7,fps:60},JV["303"]={width:1920,height:1080,bitrate:5E6,fps:60},JV["302"]={width:1280,height:720,bitrate:25E5,fps:60},JV["299"]={width:1920,height:1080,bitrate:75E5,fps:60},JV["298"]={width:1280,height:720,bitrate:35E5,fps:60},JV["571"]={width:7680,height:4320,bitrate:3E7,fps:60},JV["401"]={width:3840,height:2160,bitrate:15E6,fps:60},JV["400"]={width:2560,height:1440,bitrate:75E5,fps:60},JV["399"]={width:1920,height:1080,bitrate:2E6,fps:60},JV["398"]={width:1280,height:720,bitrate:1E6, fps:60},JV["397"]={width:854,height:480,bitrate:4E5,fps:30},JV["396"]={width:640,height:360,bitrate:25E4,fps:30},JV["787"]={width:1080,height:608,bitrate:2E5,fps:30},JV["788"]={width:1080,height:608,bitrate:4E5,fps:30},JV["572"]={width:7680,height:4320,bitrate:3E7,fps:60},JV["555"]={width:3840,height:2160,bitrate:15E6,fps:60},JV["554"]={width:2560,height:1440,bitrate:75E5,fps:60},JV["553"]={width:1920,height:1080,bitrate:2E6,fps:60},JV["552"]={width:1280,height:720,bitrate:1E6,fps:60},JV["551"]={width:854, height:480,bitrate:4E5,fps:30},JV["550"]={width:640,height:360,bitrate:25E4,fps:30},JV["313"]={width:3840,height:2160,bitrate:8E6,fps:30},JV["271"]={width:2560,height:1440,bitrate:4E6,fps:30},JV["248"]={width:1920,height:1080,bitrate:2E6,fps:30},JV["247"]={width:1280,height:720,bitrate:15E5,fps:30},JV["244"]={width:854,height:480,bitrate:52E4,fps:30},JV["243"]={width:640,height:360,bitrate:28E4,fps:30},JV["137"]={width:1920,height:1080,bitrate:4E6,fps:30},JV["136"]={width:1280,height:720,bitrate:3E6, fps:30},JV["135"]={width:854,height:480,bitrate:1E6,fps:30},JV["385"]={width:1920,height:1080,bitrate:6503313,fps:60},JV["376"]={width:1280,height:720,bitrate:5706960,fps:60},JV["384"]={width:1280,height:720,bitrate:3660979,fps:60},JV["225"]={width:1280,height:720,bitrate:5805E3,fps:30},JV["224"]={width:1280,height:720,bitrate:453E4,fps:30},JV["145"]={width:1280,height:720,bitrate:2682052,fps:30},JV);g.l=Cy.prototype;g.l.getInfo=function(){return this.X}; g.l.HD=function(){return null}; g.l.Bm=function(){var h=this.HD();return h?(h=g.wO(h.bW),Number(h.expire)):NaN}; g.l.De=function(){}; g.l.getHeight=function(){return this.X.video.height};scp.prototype.build=function(){Etp(this);var h=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],W={};a:if(this.X)var c=this.X;else{c="";for(var V=g.e(this.G),H=V.next();!H.done;H=V.next())if(H=H.value,H.iW){if(H.iW.getIsDefault()){c=H.iW.getId();break a}c||(c=H.iW.getId())}}V=g.e(this.G);for(H=V.next();!H.done;H=V.next())if(H=H.value,this.N||!H.iW||H.iW.getId()===c)W[H.itag]||(W[H.itag]=[]),W[H.itag].push(H);c=g.e(this.W);for(V=c.next();!V.done;V=c.next())if(V=V.value,H=W[V.X]){H=g.e(H);for(var B=H.next();!B.done;B= H.next()){var E=h,J=E.push;B=B.value;var u="#EXT-X-MEDIA:TYPE=AUDIO,",d="YES",G="audio";if(B.iW){G=B.iW;var Z=G.getId().split(".")[0];Z&&(u+='LANGUAGE="'+Z+'",');(this.X?this.X===G.getId():G.getIsDefault())||(d="NO");G=G.getName()}Z="";V!==null&&(Z=V.itag.toString());Z=FY(this,B.url,Z);u=u+('NAME="'+G+'",DEFAULT='+(d+',AUTOSELECT=YES,GROUP-ID="'))+(BVD(B,V)+'",URI="'+(Z+'"'));J.call(E,u)}}c=g.e(this.C);for(V=c.next();!V.done;V=c.next())V=V.value,H=fY6,V=(E=V.iW)?'#EXT-X-MEDIA:URI="'+FY(this,V.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+H+'",LANGUAGE="'+E.getId()+'",NAME="'+E.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,V&&h.push(V);c=this.C.length>0?fY6:void 0;V=g.e(this.W);for(H=V.next();!H.done;H=V.next())H=H.value,J=W[H.X],E=void 0,((E=J)==null?void 0:E.length)>0&&(E=H,J=J[0],J="#EXT-X-STREAM-INF:BANDWIDTH="+(E.bitrate+J.bitrate)+',CODECS="'+(E.codecs+","+J.codecs+'",RESOLUTION=')+(E.width+"x"+E.height+',AUDIO="')+(BVD(J,E)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",E.fps>1&&(J+= ",FRAME-RATE="+E.fps),E.FL&&(J+=",VIDEO-RANGE="+E.FL),h.push(J),h.push(FY(this,H.url,"")));return h.join("\n")}; var fY6="text";g.n(yf,Cy);yf.prototype.Bm=function(){return this.expiration}; yf.prototype.HD=function(){if(!this.bW||this.bW.gE()){var h=this.W.build();h="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(h);this.bW=new V3(h)}return this.bW};g.n(PF,Cy);PF.prototype.HD=function(){return new V3(this.W.Ly())}; PF.prototype.De=function(){this.W=Yg(this.W)};g.n(fy,Cy);fy.prototype.HD=function(){return new V3(this.W)};var uE={},lJ5=(uE.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",uE.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",uE.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",uE.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",uE);g.l=g.bo.prototype;g.l.getId=function(){return this.id}; g.l.getName=function(){return this.name}; g.l.isServable=function(){return this.X}; g.l.Ly=function(){return this.url}; g.l.getXtags=function(){return this.xtags}; g.l.toString=function(){return this.languageCode+": "+g.TJ(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.l.equals=function(h){return h?this.toString()===h.toString():!1}; g.l.oT=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var QcQ={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},LEN={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},iaN=/^(\d*)_((\d*)_?(\d*))$/;var A97={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},UZk={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var dG={},bs$=(dG.ALWAYS=1,dG.BY_REQUEST=3,dG.UNKNOWN=void 0,dG),GD={},T9I=(GD.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",GD.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",GD.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",GD.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",GD);var t5L; t5L=function(h){for(var W=Object.keys(h),c={},V=0;VV-W?-1:h}; g.l.HE=function(){return this.W.KR()}; g.l.Wa=function(){return this.W.jf()}; g.l.P2=function(h){this.W=h};g.n(uU,Rs);uU.prototype.W=function(h,W){return Rs.prototype.W.call(this,"$N|"+h,W)}; uU.prototype.C=function(h,W,c){return new JT(h,W,c,this.isLive)};g.n(g.G8,g.h1);g.l=g.G8.prototype; g.l.setData=function(h){h=h||{};var W=h.errordetail;W!=null&&(this.errorDetail=W);var c=h.errorcode;c!=null?this.errorCode=c:h.status==="fail"&&(this.errorCode="auth");var V=h.reason;V!=null&&(this.errorReason=V);var H=h.subreason;H!=null&&(this.NN=H);this.clientPlaybackNonce||(this.clientPlaybackNonce=h.cpn||(this.fM.gI()?"r"+g.Ge(15):g.Ge(16)));this.Ef=DX(this.fM.Ef,h.livemonitor);HYT(this,h);var B=h.raw_player_response;if(B)this.EK=B;else{var E=h.player_response;E&&(B=JSON.parse(E))}B&&(this.playerResponse= B);if(this.playerResponse){var J=this.playerResponse.annotations;if(J)for(var u=g.e(J),d=u.next();!d.done;d=u.next()){var G=d.value.playerAnnotationsUrlsRenderer;if(G){G.adsOnly&&(this.eb=!0);var Z=G.loadPolicy;Z&&(this.annotationsLoadPolicy=bs$[Z]);var r=G.invideoUrl;r&&(this.CM=N6(r));break}}var q=this.playerResponse.attestation;q&&MTT(this,q);var x=this.playerResponse.cotn;x&&(this.cotn=x);var z=this.playerResponse.heartbeatParams;if(z){this.cS=!0;var L=z.heartbeatToken;L&&(this.drmSessionId=z.drmSessionId|| "",this.heartbeatToken=L,this.d1=Number(z.intervalMilliseconds),this.OE=Number(z.maxRetries),this.Pu=!!z.softFailOnError,this.un=!!z.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=z.heartbeatServerData;var M;this.VX=!((M=z.heartbeatAttestationConfig)==null||!M.requiresAttestation)}var U=this.playerResponse.messages;U&&fJD(this,U);var y=this.playerResponse.overlay;if(y){var T=y.playerControlsOverlayRenderer;if(T)if(TVl(this,T.controlBgHtml),T.mutedAutoplay){var m=g.v(T.mutedAutoplay,Do6);if(m&& m.endScreen){var D=g.v(m.endScreen,wrU);D&&D.text&&(this.fS=g.EJ(D.text))}}else this.mutedAutoplay=!1}var O=this.playerResponse.playabilityStatus;if(O){var Bd=O.backgroundability;Bd&&Bd.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var qL,Rk;if((qL=O.offlineability)==null?0:(Rk=qL.offlineabilityRenderer)==null?0:Rk.offlineable)this.offlineable=!0;var JN=O.contextParams;JN&&(this.contextParams=JN);var Wd=O.pictureInPicture;Wd&&Wd.pictureInPictureRenderer.playableInPip&&(this.pipable= !0);O.playableInEmbed&&(this.allowEmbed=!0);var Uv=O.ypcClickwrap;if(Uv){var gN=Uv.playerLegacyDesktopYpcClickwrapRenderer,W2=Uv.ypcRentalActivationRenderer;if(gN)this.IL=gN.durationMessage||"",this.tE=!0;else if(W2){var lK=W2.durationMessage;this.IL=lK?g.EJ(lK):"";this.tE=!0}}var Rf=O.errorScreen;if(Rf){if(Rf.playerLegacyDesktopYpcTrailerRenderer){var Fl=Rf.playerLegacyDesktopYpcTrailerRenderer;this.o4=Fl.trailerVideoId||"";var BG=Rf.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var Tt=BG&&BG.ypcTrailerRenderer}else if(Rf.playerLegacyDesktopYpcOfferRenderer)Fl= Rf.playerLegacyDesktopYpcOfferRenderer;else if(Rf.ypcTrailerRenderer){Tt=Rf.ypcTrailerRenderer;var p$=Tt.fullVideoMessage;this.T3=p$?g.EJ(p$):"";var EO,C;this.o4=((EO=g.v(Tt,kAX))==null?void 0:(C=EO.videoDetails)==null?void 0:C.videoId)||""}Fl&&(this.A0=Fl.itemTitle||"",Fl.itemUrl&&(this.aX=Fl.itemUrl),Fl.itemBuyUrl&&(this.E2=Fl.itemBuyUrl),this.w_=Fl.itemThumbnail||"",this.YG=Fl.offerHeadline||"",this.wJ=Fl.offerDescription||"",this.dA=Fl.offerId||"",this.GR=Fl.offerButtonText||"",this.FO=Fl.offerButtonFormattedText|| null,this.Qm=Fl.overlayDurationMsec||NaN,this.T3=Fl.fullVideoMessage||"",this.yX=!0);if(Tt){var tB=g.v(Tt,kAX);if(tB)this.h2={raw_player_response:tB};else{var yU=g.v(Tt,RyS);this.h2=yU?gO(yU):null}this.yX=!0}}}var Vp=this.playerResponse.playbackTracking;if(Vp){var iK=h,Q=m$(Vp.googleRemarketingUrl);Q&&(this.googleRemarketingUrl=Q);var cd=m$(Vp.youtubeRemarketingUrl);cd&&(this.youtubeRemarketingUrl=cd);var Fa={},R0=m$(Vp.ptrackingUrl);if(R0){var v2=oa(R0),Ov=v2.oid;Ov&&(this.I7=Ov);var VU=v2.pltype; VU&&(this.xE=VU);var hk=v2.ptchn;hk&&(this.JR=hk);var vG=v2.ptk;vG&&(this.zB=encodeURIComponent(vG));var K=v2.m;K&&(this.Xn=K)}var a=m$(Vp.qoeUrl);if(a){for(var A=g.wO(a),f=g.e(Object.keys(A)),t=f.next();!t.done;t=f.next()){var GQ=t.value,I=A[GQ];A[GQ]=Array.isArray(I)?I.join(","):I}this.h8=A;var k=A.cat;k&&(this.j("html5_enable_qoe_cat_list")?this.GP=this.GP.concat(k.split(",")):this.St=k);var b=A.live;b&&(this.eI=b);var fU=A.drm_product;fU&&(this.drmProduct=fU)}var ok=m$(Vp.videostatsPlaybackUrl); if(ok){var Ev=oa(ok),dX=Ev.adformat;if(dX){iK.adformat=dX;var yp=this.B(),iT=KEl(dX,this.jQ,yp.Y,yp.Z);iT&&(this.adFormat=iT)}var c3=Ev.aqi;c3&&(iK.ad_query_id=c3);var L$=Ev.autoplay;L$&&(this.eL=L$=="1",this.m7=L$=="1");var Nu=Ev.autonav;Nu&&(this.isAutonav=Nu=="1");var KU=Ev.delay;KU&&(this.uW=Pr(KU));var Q_=Ev.ei;Q_&&(this.eventId=Q_);var ML=Ud(Ev.adcontext);if(ML)try{var P2=wG2(ML);P2&&(this.uv=P2)}catch(mq6){g.Lx(Error("Malformed adContext"))}if(ML||dX)this.eL=!0;var K$=Ev.feature;K$&&(this.Yk= K$);var RJ=Ev.list;RJ&&(this.playlistId=RJ);var AS=Ev.of;AS&&(this.RZ=AS);var kL=Ev.osid;kL&&(this.osid=kL);var $F=Ev.referrer;$F&&(this.referrer=$F);var If=Ev.sdetail;If&&(this.TB=If);var f$=Ev.ssrt;f$&&(this.b$=f$=="1");var Uu=Ev.subscribed;Uu&&(this.subscribed=Uu=="1");var g9=Ev.uga;g9&&(this.userGenderAge=g9);var x3=Ev.upt;x3&&(this.Kq=x3);var Tm=Ev.vm;Tm&&(this.videoMetadata=Tm);Fa.playback=Ev}var hU=m$(Vp.videostatsWatchtimeUrl);if(hU){var WO=oa(hU),EN=WO.ald;EN&&(this.xg=EN);Fa.watchtime=WO}var Lk= m$(Vp.atrUrl);if(Lk){var yX=oa(Lk);Fa.atr=yX}var DY=m$(Vp.engageUrl);if(DY){var PO=oa(DY);Fa.engage=PO}this.X6=Fa;if(Vp.promotedPlaybackTracking){var V_=Vp.promotedPlaybackTracking;V_.startUrls&&(this.kS=V_.startUrls);V_.firstQuartileUrls&&(this.KH=V_.firstQuartileUrls);V_.secondQuartileUrls&&(this.sL=V_.secondQuartileUrls);V_.thirdQuartileUrls&&(this.UL=V_.thirdQuartileUrls);V_.completeUrls&&(this.QS=V_.completeUrls);V_.engagedViewUrls&&(V_.engagedViewUrls.length>1&&g.Lx(new g.tP("There are more than one engaged_view_urls.")), this.SR=V_.engagedViewUrls[0])}}var lA=this.playerResponse.playerCueRanges;lA&&lA.length>0&&(this.cueRanges=lA);var NT=this.playerResponse.playerCueRangeSet;NT&&g.xq(this,NT);a:{var jp=this.playerResponse.adPlacements;if(jp)for(var cO=g.e(jp),aV=cO.next();!aV.done;aV=cO.next()){var VX=void 0,$z=void 0,sQ=(VX=aV.value.adPlacementRenderer)==null?void 0:($z=VX.renderer)==null?void 0:$z.videoAdTrackingRenderer;if(sQ){var HO=sQ;break a}}HO=null}var ep=HO;Vp&&Vp.promotedPlaybackTracking&&ep&&g.Lx(new g.tP("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer")); var RX;if(!(RX=ep))a:{for(var BO=g.e(this.playerResponse.adSlots||[]),ZU=BO.next();!ZU.done;ZU=BO.next()){var rf=g.v(ZU.value,hO);if(rf===void 0||!bEh(rf))break;var MY=void 0,ba=(MY=rf.fulfillmentContent)==null?void 0:MY.fulfilledLayout,To=g.v(ba,pa);if(To&&t9(To)){RX=!0;break a}}RX=!1}RX&&(this.UE=!0);var Nn=this.playerResponse.playerAds;if(Nn)for(var VR=h,FP=g.e(Nn),nJ=FP.next();!nJ.done;nJ=FP.next()){var yd=nJ.value;if(yd){var $v=yd.playerLegacyDesktopWatchAdsRenderer;if($v){var XL=$v.playerAdParams; if(XL){XL.autoplay=="1"&&(this.m7=this.eL=!0);this.Bh=XL.encodedAdSafetyReason||null;XL.showContentThumbnail!==void 0&&(this.TA=!!XL.showContentThumbnail);VR.enabled_engage_types=XL.enabledEngageTypes;break}}}}var ii=this.playerResponse.playerConfig;if(ii){var z0=ii.manifestlessWindowedLiveConfig;if(z0){var tt=Number(z0.minDvrSequence),sL=Number(z0.maxDvrSequence),qF=Number(z0.minDvrMediaTimeMs),HK=Number(z0.maxDvrMediaTimeMs),PU=Number(z0.startWalltimeMs);tt&&(this.W9=tt);qF&&(this.DH=qF/1E3,this.j("html5_sabr_parse_live_metadata_playback_boundaries")&& AT(this)&&(this.vj=qF/1E3));sL&&(this.v5=sL);HK&&(this.hI=HK/1E3,this.j("html5_sabr_parse_live_metadata_playback_boundaries")&&AT(this)&&(this.Vz=HK/1E3));PU&&(this.Sx=PU/1E3);(tt||qF)&&(sL||HK)&&(this.allowLiveDvr=this.isLivePlayback=this.Pk=!0,this.N$=!1)}var xp=ii.daiConfig;if(xp){if(xp.enableDai){this.Eh=!0;var $s=xp.enableServerStitchedDai;$s&&(this.enableServerStitchedDai=$s);var NQ=xp.enablePreroll;NQ&&(this.l9=NQ)}var VC;if(xp.daiType==="DAI_TYPE_SS_DISABLED"||((VC=xp.debugInfo)==null?0:VC.isDisabledUnpluggedChannel))this.MX= !0;xp.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.mp=!0);xp.allowUstreamerRequestAdconfig&&(this.wN=!0)}var EL=ii.audioConfig;if(EL){var vE=EL.loudnessDb;vE!=null&&(this.U8=vE);var BaL=EL.trackAbsoluteLoudnessLkfs;BaL!=null&&(this.Dl=BaL);var EKk=EL.loudnessTargetLkfs;EKk!=null&&(this.loudnessTargetLkfs=EKk);EL.audioMuted&&(this.pg=!0);EL.muteOnStart&&(this.G6=!0);var GG=EL.loudnessNormalizationConfig;if(GG){GG.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);GG.preserveStatefulLoudnessTarget&& (this.preserveStatefulLoudnessTarget=!0);var RsT=GG.minimumLoudnessTargetLkfs;RsT!=null&&(this.minimumLoudnessTargetLkfs=RsT);var JKp=GG.maxStatefulTimeThresholdSec;JKp!=null&&(this.maxStatefulTimeThresholdSec=JKp)}EL.playAudioOnly&&(this.nj=!0)}var zGd=ii.playbackEndConfig;if(zGd){var u5U=zGd.endSeconds,dSU=zGd.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(u5U&&(this.endSeconds=u5U),dSU&&(this.limitedPlaybackDurationInSeconds=dSU))}var rv=ii.fairPlayConfig;if(rv){var GvD=rv.certificate;GvD&& (this.Rz=Ud(GvD));var ZzL=Number(rv.keyRotationPeriodMs);ZzL>0&&(this.GB=ZzL);var rKN=Number(rv.keyPrefetchMarginMs);rKN>0&&(this.WO=rKN)}var AQ=ii.playbackStartConfig;if(AQ){this.Wp=Number(AQ.startSeconds);var qgv=AQ.liveUtcStartSeconds,xSD=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;qgv&&!xSD&&(this.liveUtcStartSeconds=Number(qgv));var QX7=AQ.startPosition;if(QX7){var lWU=QX7.utcTimeMillis;lWU&&!xSD&&(this.liveUtcStartSeconds=Number(lWU)*.001);var nKL=QX7.streamTimeMillis;nKL&&(this.Tx= Number(nKL)*.001)}this.progressBarStartPosition=AQ.progressBarStartPosition;this.progressBarEndPosition=AQ.progressBarEndPosition}else{var LxL=ii.skippableSegmentsConfig;if(LxL){var jBN=LxL.introSkipDurationMs;jBN&&(this.wK=Number(jBN)/1E3);var aWN=LxL.outroSkipDurationMs;aWN&&(this.Wy=Number(aWN)/1E3)}}var isd=ii.skippableIntroConfig;if(isd){var esp=Number(isd.startMs),zsh=Number(isd.endMs);isNaN(esp)||isNaN(zsh)||(this.Ah=esp,this.Lj=zsh)}var QBN=ii.streamSelectionConfig;QBN&&(this.fR=Number(QBN.maxBitrate)); var L9T=ii.vrConfig;L9T&&(this.e4=L9T.partialSpherical=="1");var ZJ=ii.webDrmConfig;if(ZJ){ZJ.skipWidevine&&(this.Au=!0);var iz7=ZJ.widevineServiceCert;iz7&&(this.ut=Ud(iz7));ZJ.useCobaltWidevine&&(this.useCobaltWidevine=!0);ZJ.startWithNoQualityConstraint&&(this.Tj=!0)}var vy=ii.mediaCommonConfig;if(vy){var q9=vy.dynamicReadaheadConfig;if(q9){this.maxReadAheadMediaTimeMs=q9.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=q9.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=q9.readAheadGrowthRateMs|| NaN;var K9N,AKN=vy==null?void 0:(K9N=vy.mediaUstreamerRequestConfig)==null?void 0:K9N.videoPlaybackUstreamerConfig;AKN&&(this.gp=Ud(AKN));var KxD=vy==null?void 0:vy.sabrContextUpdates;if(KxD&&KxD.length>0)for(var USl=g.e(KxD),A3p=USl.next();!A3p.done;A3p=USl.next()){var wI=A3p.value;if(wI.type&&wI.value){var uA$={type:wI.type,scope:wI.scope,value:Ud(wI.value)||void 0,sendByDefault:wI.sendByDefault};this.sabrContextUpdates.set(wI.type,uA$)}}}var Clh=vy.serverPlaybackStartConfig;Clh&&(this.serverPlaybackStartConfig= Clh);vy.useServerDrivenAbr&&(this.rV=!0);var MY4=vy.requestPipeliningConfig;MY4&&(this.requestPipeliningConfig=MY4)}var F9D=ii.inlinePlaybackConfig;F9D&&(this.hg=!!F9D.showAudioControls);var x8=ii.embeddedPlayerConfig;if(x8){this.embeddedPlayerConfig=x8;var UPd=x8.embeddedPlayerMode;if(UPd){var yKk=this.B();yKk.DH=UPd;yKk.G=UPd==="EMBEDDED_PLAYER_MODE_PFL"}var PlQ=x8.permissions;PlQ&&(this.allowImaMonetization=!!PlQ.allowImaMonetization)}var ls=ii.webPlayerConfig;ls&&(ls.gatewayExperimentGroup&&(this.gatewayExperimentGroup= ls.gatewayExperimentGroup),ls.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var ms=this.playerResponse.streamingData;if(ms){var C6D=ms.formats;if(C6D){for(var rV=[],fW4=g.e(C6D),MIT=fW4.next();!MIT.done;MIT=fW4.next()){var Fxh=MIT.value;rV.push(Fxh.itag+"/"+Fxh.width+"x"+Fxh.height)}this.iz=rV.join(",");rV=[];for(var bzU=g.e(C6D),y3N=bzU.next();!y3N.done;y3N=bzU.next()){var qZ=y3N.value,xt={itag:qZ.itag,type:qZ.mimeType,quality:qZ.quality},TaT=qZ.url;TaT&&(xt.url=TaT);var nN=O1(qZ),dCf=nN.fC, GN6=nN.A5,Zb6=nN.s;nN.sz&&(xt.url=dCf,xt.sp=GN6,xt.s=Zb6);rV.push(g.ZB(xt))}this.H9=rV.join(",")}var P67=ms.hlsFormats;if(P67){var NaQ=ii||null,jA={};if(NaQ){var fYl=NaQ.audioPairingConfig;if(fYl&&fYl.pairs)for(var XVh=g.e(fYl.pairs),bsU=XVh.next();!bsU.done;bsU=XVh.next()){var tYN=bsU.value,T9v=tYN.videoItag;jA[T9v]||(jA[T9v]=[]);jA[T9v].push(tYN.audioItag)}}for(var vKQ={},mSL=g.e(P67),N9k=mSL.next();!N9k.done;N9k=mSL.next()){var oKL=N9k.value;vKQ[oKL.itag]=oKL.bitrate}for(var pV4=[],IWh=g.e(P67), XWp=IWh.next();!XWp.done;XWp=IWh.next()){var pD=XWp.value,ea={itag:pD.itag,type:pD.mimeType,url:pD.url,bitrate:pD.bitrate,width:pD.width,height:pD.height,fps:pD.fps},aE=pD.audioTrack;if(aE){var Ygp=aE.displayName;Ygp&&(ea.name=Ygp,ea.audio_track_id=aE.id,aE.audioIsDefault&&(ea.is_default="1"))}if(pD.drmFamilies){for(var OzN=[],Sg5=g.e(pD.drmFamilies),tIU=Sg5.next();!tIU.done;tIU=Sg5.next())OzN.push(bS[tIU.value]);ea.drm_families=OzN.join(",")}var eA=jA[pD.itag];if(eA&&eA.length){ea.audio_itag=eA.join(","); var gKU=vKQ[eA[0]];gKU&&(ea.bitrate+=gKU)}var DSL=Rmp(pD);DSL&&(ea.eotf=DSL);pD.audioChannels&&(ea.audio_channels=pD.audioChannels);pV4.push(g.ZB(ea))}this.hlsFormats=pV4.join(",")}var vw4=ms.licenseInfos;if(vw4&&vw4.length>0){for(var wVd={},kv4=g.e(vw4),mP5=kv4.next();!mP5.done;mP5=kv4.next()){var hDh=mP5.value,Wjd=hDh.drmFamily,cDv=hDh.url;Wjd&&cDv&&(wVd[bS[Wjd]]=cDv)}this.k9=wVd}var V4L=ms.drmParams;V4L&&(this.drmParams=V4L);var $2N=ms.dashManifestUrl;$2N&&(this.Zn=g.r0($2N,{cpn:this.clientPlaybackNonce})); var sLQ=ms.hlsManifestUrl;sLQ&&(this.hlsvp=sLQ);var HMU=ms.probeUrl;HMU&&(this.probeUrl=N6(g.r0(HMU,{cpn:this.clientPlaybackNonce})));var B6l=ms.serverAbrStreamingUrl;B6l&&(this.Zr=new g.vb(B6l,!0))}var Ejd=this.playerResponse.trackingParams;Ejd&&(this.Nn=Ejd);var e8=this.playerResponse.videoDetails;if(e8){var zs=h,owp=e8.videoId;owp&&(this.videoId=owp,zs.video_id||(zs.video_id=owp));var pW4=e8.title;pW4&&(this.title=pW4,zs.title||(zs.title=pW4));var IYN=e8.lengthSeconds;IYN&&(this.lengthSeconds= Number(IYN),zs.length_seconds||(zs.length_seconds=IYN));var RDp=e8.keywords;RDp&&(this.keywords=JOv(RDp));var YNd=e8.channelId;YNd&&(this.e5=YNd,zs.ucid||(zs.ucid=YNd));var JDD=e8.viewCount;JDD&&(this.rawViewCount=Number(JDD));var OsN=e8.author;OsN&&(this.author=OsN,zs.author||(zs.author=OsN));var uNQ=e8.shortDescription;uNQ&&(this.shortDescription=uNQ);var d2l=e8.isCrawlable;d2l&&(this.isListed=d2l);var GfD=e8.musicVideoType;GfD&&(this.musicVideoType=GfD);var SNT=e8.isLive;SNT!=null&&(this.isLivePlayback= SNT);if(SNT||e8.isUpcoming)this.isPremiere=!e8.isLiveContent;var ZMp=e8.thumbnail;ZMp&&(this.Z=vF(ZMp));var rDd=e8.isExternallyHostedPodcast;rDd&&(this.isExternallyHostedPodcast=rDd);var gwD=e8.viewerLivestreamJoinPosition;if(gwD==null?0:gwD.utcTimeMillis)this.SQ=Pr(gwD.utcTimeMillis);var qxl=ii||null,DPh=h;e8.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);e8.isUpcoming&&(this.isUpcoming=!0);if(e8.isPostLiveDvr){this.N$=!0;var x2v=e8.latencyClass;x2v&&(this.latencyClass=T9I[x2v]||"UNKNOWN"); e8.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var wWp=!1;this.Ef?(this.allowLiveDvr=lf()?!0:pb&&h4<5?!1:!0,this.isLivePlayback=!0):e8.isLive?(DPh.livestream="1",this.allowLiveDvr=e8.isLiveDvrEnabled?lf()?!0:pb&&h4<5?!1:!0:!1,this.partnerId=27,wWp=!0):e8.isUpcoming&&(wWp=!0);if(e8.isLive||this.Ef){e8.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var lp5=e8.latencyClass;lp5&&(this.latencyClass=T9I[lp5]||"UNKNOWN");var njh=e8.liveChunkReadahead;njh&&(this.liveChunkReadahead= njh);var Uk=qxl&&qxl.livePlayerConfig;if(Uk){Uk.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);Uk.hasSubfragmentedWebm&&(this.Fo=!0);Uk.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var jLp=Uk.liveExperimentalContentId;jLp&&(this.liveExperimentalContentId=Number(jLp));var apT=Uk.isLiveHeadPlayable;this.j("html5_live_head_playable")&&apT!=null&&(this.isLiveHeadPlayable=apT)}}wWp&&(this.isLivePlayback=!0,DPh.adformat&&DPh.adformat.split("_")[1]!=="8"||this.T.push("heartbeat"))}var eDQ= e8.isPrivate;eDQ!==void 0&&(this.isPrivate=DX(this.isPrivate,eDQ))}if(O){var zDd=e8||null,QLN=!1,CP=O.errorScreen;QLN=CP&&(CP.playerLegacyDesktopYpcOfferRenderer||CP.playerLegacyDesktopYpcTrailerRenderer||CP.ypcTrailerRenderer)?!0:zDd&&zDd.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(O.status);if(!QLN){this.errorCode=nt5(O.errorCode)||"auth";var zM=CP&&CP.playerErrorMessageRenderer;if(zM){this.playerErrorMessageRenderer=zM;var LjD=zM.reason;LjD&&(this.errorReason=g.EJ(LjD)); var kXd=zM.subreason;kXd&&(this.NN=g.EJ(kXd),this.YS=kXd)}else this.errorReason=O.reason||null;var hYd=O.status;if(hYd==="LOGIN_REQUIRED")this.errorDetail="1";else if(hYd==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(hYd==="AGE_CHECK_REQUIRED"){var iMT=O.errorScreen,KjL=iMT&&iMT.playerKavRenderer;this.errorDetail=KjL&&KjL.kavUrl?"4":"3"}else this.errorDetail=O.isBlockedInRestrictedMode?"5":"0"}}var ADk=this.playerResponse.interstitialPods;ADk&&Pz7(this,ADk);this.CM&&this.eventId&&(this.CM= hc(this.CM,{ei:this.eventId}));var WBp=this.playerResponse.captions;if(WBp&&WBp.playerCaptionsTracklistRenderer)a:{var QR=WBp.playerCaptionsTracklistRenderer;this.captionTracks=[];if(QR.captionTracks)for(var U2L=g.e(QR.captionTracks),cIp=U2L.next();!cIp.done;cIp=U2L.next()){var LW=cIp.value,Cuv=ECT(LW.baseUrl);if(!Cuv)break a;var VF7={is_translateable:!!LW.isTranslatable,languageCode:LW.languageCode,languageName:LW.name&&g.EJ(LW.name),url:Cuv,vss_id:LW.vssId,kind:LW.kind};VF7.name=LW.trackName;VF7.displayName= LW.name&&g.EJ(LW.name);this.captionTracks.push(new g.bo(VF7))}this.OC=QR.audioTracks||[];this.vz=QR.defaultAudioTrackIndex||0;this.I5=[];if(QR.translationLanguages)for(var M47=g.e(QR.translationLanguages),$TQ=M47.next();!$TQ.done;$TQ=M47.next()){var Ml=$TQ.value,ks={};ks.languageCode=Ml.languageCode;ks.languageName=g.EJ(Ml.languageName);if(Ml.translationSourceTrackIndices){ks.translationSourceTrackIndices=[];for(var Fjp=g.e(Ml.translationSourceTrackIndices),sKN=Fjp.next();!sKN.done;sKN=Fjp.next())ks.translationSourceTrackIndices.push(sKN.value)}if(Ml.excludeAudioTrackIndices){ks.excludeAudioTrackIndices= [];for(var yDU=g.e(Ml.excludeAudioTrackIndices),HZl=yDU.next();!HZl.done;HZl=yDU.next())ks.excludeAudioTrackIndices.push(HZl.value)}this.I5.push(ks)}this.lz=[];if(QR.defaultTranslationSourceTrackIndices)for(var Puk=g.e(QR.defaultTranslationSourceTrackIndices),B_k=Puk.next();!B_k.done;B_k=Puk.next())this.lz.push(B_k.value);this.JX=!!QR.contribute&&!!QR.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.Wp=Number(this.clipConfig.startTimeMs)* .001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&ba7(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var fpN;this.compositeLiveIngestionOffsetToken=(fpN=this.playerResponse.playbackTracking)==null?void 0:fpN.compositeLiveIngestionOffsetToken;var bMN;this.compositeLiveStatusToken=(bMN=this.playerResponse.playbackTracking)==null?void 0: bMN.compositeLiveStatusToken;this.j("html5_fill_default_mosaic_audio_track_id")&&Ro(this)&&(this.fM.rE=k2v(this))}rM(this,h);h.queue_info&&(this.queueInfo=h.queue_info);var T6h=h.hlsdvr;T6h!=null&&(this.allowLiveDvr=Number(T6h)===1?lf()?!0:pb&&h4<5?!1:!0:!1);this.adQueryId=h.ad_query_id||null;this.Bh||(this.Bh=h.encoded_ad_safety_reason||null);this.pg=DX(this.pg,h.infringe||h.muted);this.n2=h.authkey;this.a8=h.authuser;this.mutedAutoplay=DX(this.mutedAutoplay,h&&h.playmuted);this.mutedAutoplayDurationMode= k2(this.mutedAutoplayDurationMode,h&&h.muted_autoplay_duration_mode);this.Bl=DX(this.Bl,h&&h.mutedautoplay);var QM=h.length_seconds;QM&&(this.lengthSeconds=typeof QM==="string"?Pr(QM):QM);if(this.isAd()||this.lG||!g.$k(g.HF(this.fM)))this.endSeconds=k2(this.endSeconds,this.Wy||h.end||h.endSeconds);else{var rc6=g.HF(this.fM),LN=this.lengthSeconds;switch(rc6){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":LN>30?this.limitedPlaybackDurationInSeconds=30:LN<30&&LN>10&&(this.limitedPlaybackDurationInSeconds= 10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=LN*.2}}this.Nn=hP(this.Nn,h.itct);this.BD=DX(this.BD,h.is_live_destination);this.isLivePlayback=DX(this.isLivePlayback,h.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.Hi();h.isUpcoming&&(this.isUpcoming=DX(this.isUpcoming,h.isUpcoming));this.N$=DX(this.N$,h.post_live_playback);this.Pk&&(this.N$=!1);this.isMdxPlayback=DX(this.isMdxPlayback,h.mdx);var is=h.mdx_control_mode; is&&(this.mdxControlMode=typeof is==="number"?is:Pr(is));this.isInlinePlaybackNoAd=DX(this.isInlinePlaybackNoAd,h.is_inline_playback_no_ad);this.qU=k2(this.qU,h.reload_count);this.reloadReason=hP(this.reloadReason,h.reload_reason);this.TA=DX(this.TA,h.show_content_thumbnail);this.cycToken=h.cyc||null;var N6v=t0(h);Object.keys(N6v).length>0&&(this.Z=N6v);this.zV=hP(this.zV,h.vvt);this.mdxEnvironment=hP(this.mdxEnvironment,h.mdx_environment);h.source_container_playlist_id&&(this.sourceContainerPlaylistId= h.source_container_playlist_id);h.serialized_mdx_metadata&&(this.serializedMdxMetadata=h.serialized_mdx_metadata);this.Sh=h.osig;this.eventId||(this.eventId=h.eventid);this.osid||(this.osid=h.osid);this.playlistId=hP(this.playlistId,h.list);h.index&&(this.playlistIndex=this.playlistIndex===void 0?k2(0,h.index):k2(this.playlistIndex,h.index));this.F4=h.pyv_view_beacon_url;this.yH=h.pyv_quartile25_beacon_url;this.Ju=h.pyv_quartile50_beacon_url;this.It=h.pyv_quartile75_beacon_url;this.Ui=h.pyv_quartile100_beacon_url; var XPN=h.session_data;!this.xD&&XPN&&(this.xD=O_(XPN,"&").feature);this.isFling=k2(this.isFling?1:0,h.is_fling)===1;this.vnd=k2(this.vnd,h.vnd);this.forceAdsUrl=hP(this.forceAdsUrl,h.force_ads_url);this.wp=hP(this.wp,h.ctrl);this.cR=hP(this.cR,h.ytr);this.QQ=h.ytrcc;this.Mk=h.ytrexp;this.ZC=h.ytrext;this.Ns=hP(this.Ns,h.adformat);this.jQ=hP(this.jQ,h.attrib);this.slotPosition=k2(this.slotPosition,h.slot_pos);this.breakType=h.break_type;this.b$=DX(this.b$,h.ssrt);this.videoId=ct(h)||this.videoId; this.N=hP(this.N,h.vss_credentials_token);this.TL=hP(this.TL,h.vss_credentials_token_type);this.nj=DX(this.nj,h.audio_only);this.yg=DX(this.yg,h.aac_high);this.JB=DX(this.JB,h.prefer_low_quality_audio);this.XO=DX(this.XO,h.uncap_inline_quality);this.j("html5_enable_qoe_cat_list")?h.qoe_cat&&(this.GP=this.GP.concat(h.qoe_cat.split(","))):this.St=hP(this.St,h.qoe_cat);this.wy=DX(this.wy,h.download_media);var t44=h.prefer_gapless;this.S=t44!=null?DX(this.S,t44):this.S?this.S:this.fM.preferGapless&&this.fM.supportsGaplessShorts(); up5(this.playerResponse)&&this.T.push("ad");var vjv=h.adaptive_fmts;vjv&&(this.adaptiveFormats=vjv,this.GV("adpfmts",{},!0));var m2L=h.allow_embed;m2L&&(this.allowEmbed=Number(m2L)===1);var ojv=h.backgroundable;ojv&&(this.backgroundable=Number(ojv)===1);var pPp=h.autonav;pPp&&(this.isAutonav=Number(pPp)===1);var Ipk=h.autoplay;Ipk&&(this.eL=this.m7=Number(Ipk)===1);var YxN=h.iv_load_policy;YxN&&(this.annotationsLoadPolicy=wJ(this.annotationsLoadPolicy,YxN,BF));var OMp=h.cc_lang_pref;OMp&&(this.captionsLanguagePreference= hP(OMp,this.captionsLanguagePreference));var SxL=h.cc_load_policy;SxL&&(this.sC=wJ(this.sC,SxL,BF));var gjh;this.deviceCaptionsOn=(gjh=h.device_captions_on)!=null?gjh:void 0;var D2d;this.s6=(D2d=h.device_captions_lang_pref)!=null?D2d:"";var wPh;this.RP=(wPh=h.viewer_selected_caption_langs)!=null?wPh:[];var kfv=h.cached_load;kfv&&(this.Fn=DX(this.Fn,kfv));if(h.dash==="0"||h.dash===0||h.dash===!1)this.qX=!0;var hwv=h.dashmpd;hwv&&(this.Zn=g.r0(hwv,{cpn:this.clientPlaybackNonce}));var Whd=h.delay;Whd&& (this.uW=Pr(Whd));var E3U=this.Wy||h.end;if(this.U5?E3U!=null:E3U!=void 0)this.clipEnd=k2(this.clipEnd,E3U);var czT=h.fmt_list;czT&&(this.iz=czT);h.heartbeat_preroll&&this.T.push("heartbeat");this.hQ=-Math.floor(Math.random()*10);this.rQ=-Math.floor(Math.random()*40);var VvU=h.is_listed;VvU&&(this.isListed=DX(this.isListed,VvU));var $Wh=h.is_private;$Wh&&(this.isPrivate=DX(this.isPrivate,$Wh));var sj7=h.is_dni;sj7&&(this.B0=DX(this.B0,sj7));var HpN=h.dni_color;HpN&&(this.Sc=hP(this.Sc,HpN));var BRL= h.pipable;BRL&&(this.pipable=DX(this.pipable,BRL));this.Oi=(this.Wz=this.pipable&&this.fM.eb)&&!this.fM.showMiniplayerButton;var EGk=h.paid_content_overlay_duration_ms;EGk&&(this.paidContentOverlayDurationMs=Pr(EGk));var RwL=h.paid_content_overlay_text;RwL&&(this.paidContentOverlayText=RwL);var Jzk=h.url_encoded_fmt_stream_map;Jzk&&(this.H9=Jzk);var uTN=h.hls_formats;uTN&&(this.hlsFormats=uTN);var dW4=h.hlsvp;dW4&&(this.hlsvp=dW4);var KN=h.live_start_walltime;KN&&(this.XB=typeof KN==="number"?KN: Pr(KN));var AJ=h.live_manifest_duration;AJ&&(this.PO=typeof AJ==="number"?AJ:Pr(AJ));var Gjh=h.player_params;Gjh&&(this.playerParams=Gjh);var ZpU=h.partnerid;ZpU&&(this.partnerId=k2(this.partnerId,ZpU));var rzv=h.probe_url;rzv&&(this.probeUrl=N6(g.r0(rzv,{cpn:this.clientPlaybackNonce})));var RYv=h.pyv_billable_url;RYv&&nN5(RYv)&&(this.SR=RYv);var JIQ=h.pyv_conv_url;JIQ&&nN5(JIQ)&&(this.KI=JIQ);u0U(this,h);this.startSeconds>0?this.j("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.Wp|| this.wK||h.start||h.startSeconds)&&this.GV("lss",{css:this.startSeconds,pcss:this.Wp,iss:this.wK,ps:h.start||void 0,pss:h.startSeconds||void 0}):this.lW=this.startSeconds=k2(this.startSeconds,this.Wp||this.wK||h.start||h.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var qCN=h.live_utc_start;if(qCN!=null)this.liveUtcStartSeconds=Number(qCN);else{var uxk=this.startSeconds;uxk&&isFinite(uxk)&&uxk>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&& this.liveUtcStartSeconds>0)){var xWL=h.utc_start_millis;xWL&&(this.liveUtcStartSeconds=Number(xWL)*.001)}var l7N=h.stream_time_start_millis;l7N&&(this.Tx=Number(l7N)*.001);var dTT=this.wK||h.start;(this.U5?dTT==null||Number(h.resume)===1:dTT==void 0||h.resume=="1")||this.isLivePlayback||(this.clipStart=k2(this.clipStart,dTT));var nG7=h.url_encoded_third_party_media;nG7&&(this.wi=D3(nG7));var Gmp=h.ypc_offer_button_formatted_text;if(Gmp){var jjT=JSON.parse(Gmp);this.FO=jjT!=null?jjT:null;this.vC=Gmp}var a7U= h.ypc_offer_button_text;a7U&&(this.GR=a7U);var ewU=h.ypc_offer_description;ewU&&(this.wJ=ewU);var zw4=h.ypc_offer_headline;zw4&&(this.YG=zw4);var Qjd=h.ypc_full_video_message;Qjd&&(this.T3=Qjd);var LhU=h.ypc_offer_id;LhU&&(this.dA=LhU);var ipN=h.ypc_buy_url;ipN&&(this.E2=ipN);var Kh5=h.ypc_item_thumbnail;Kh5&&(this.w_=Kh5);var Az7=h.ypc_item_title;Az7&&(this.A0=Az7);var UWl=h.ypc_item_url;UWl&&(this.aX=UWl);var CMT=h.ypc_vid;CMT&&(this.o4=CMT);h.ypc_overlay_timeout&&(this.Qm=Number(h.ypc_overlay_timeout)); var Mv7=h.ypc_trailer_player_vars;Mv7&&(this.h2=gO(Mv7));var FhL=h.ypc_original_itct;FhL&&(this.L4k=FhL);this.e5=hP(this.e5,h.ucid);this.Pd=h.storyboard_spec||null;this.vO=h.live_storyboard_spec||null;this.hS=h.iv_endscreen_url||null;this.yX=DX(this.yX,h.ypc_module);this.tE=DX(this.tE,h.ypc_clickwrap_module);this.yX&&this.T.push("ypc");this.tE&&this.T.push("ypc_clickwrap");this.tR={video_id:h.video_id,eventid:h.eventid,cbrand:h.cbrand,cbr:h.cbr,cbrver:h.cbrver,c:h.c,cver:h.cver,ctheme:h.ctheme,cplayer:h.cplayer, cmodel:h.cmodel,cnetwork:h.cnetwork,cos:h.cos,cosver:h.cosver,cplatform:h.cplatform,user_age:h.user_age,user_display_image:h.user_display_image,user_display_name:h.user_display_name,user_gender:h.user_gender,csi_page_type:h.csi_page_type,csi_service_name:h.csi_service_name,enablecsi:h.enablecsi,enabled_engage_types:h.enabled_engage_types};B2p(this,h);var yzQ=h.cotn;yzQ&&(this.cotn=yzQ);if(znU(this))MN(this)&&(this.isLivePlayback&&this.Zn&&(this.CG=!0),this.Rz&&(this.u8=!0));else if(QpD(this))this.CG= !0;else{var PMp,f7T,bp4=((PMp=this.playerResponse)==null?void 0:(f7T=PMp.streamingData)==null?void 0:f7T.adaptiveFormats)||[];if(bp4.length>0)var lz=enN(this,bp4);else{var TRU=this.adaptiveFormats;if(TRU&&!MN(this)){this.fM.C.G&&(gW=!0);var Fc=NN(TRU),ZZN=this.k9,NRh=this.lengthSeconds,qBS=this.isLivePlayback,na=this.N$,yl=this.fM,xCK=zmN(Fc);if(qBS||na){var XwD=yl==null?void 0:yl.experiments,MF=new PJ("",XwD,!0);MF.Hi=!0;MF.isManifestless=!0;MF.W=!na;MF.isLive=!na;MF.N$=na;for(var tvN=g.e(Fc),rIh= tvN.next();!rIh.done;rIh=tvN.next()){var P7=rIh.value,vGD=Nj(P7,ZZN),hn=Xg(P7.url,P7.sp,P7.s),mWp=hn.get("id");mWp&&mWp.includes("%7E")&&(MF.T=!0);var oGv=void 0,lXX=(oGv=XwD)==null?void 0:oGv.xN("html5_max_known_end_time_rebase"),n2I=Number(P7.target_duration_sec)||5,jxU=Number(P7.max_dvr_duration_sec)||14400,pwk=Number(hn.get("mindsq")||hn.get("min_sq")||"0"),I75=Number(hn.get("maxdsq")||hn.get("max_sq")||"0")||Infinity;MF.W9=MF.W9||pwk;MF.v5=MF.v5||I75;var aXf=!XK(vGD.mimeType);hn&&Mj(MF,new rW(hn, vGD,{Ix:n2I,f9:aXf,G7:jxU,W9:pwk,v5:I75,Po:300,N$:na,mu:lXX}))}var YCv=MF}else{if(xCK==="FORMAT_STREAM_TYPE_OTF"){var UZ=NRh;UZ=UZ===void 0?0:UZ;var fP=new PJ("",yl==null?void 0:yl.experiments,!1);fP.duration=UZ||0;for(var OpL=g.e(Fc),qpk=OpL.next();!qpk.done;qpk=OpL.next()){var bQ=qpk.value,xTN=Nj(bQ,ZZN,fP.duration),lO4=Xg(bQ.url,bQ.sp,bQ.s);if(lO4)if(xTN.streamType==="FORMAT_STREAM_TYPE_OTF")Mj(fP,new qj(lO4,xTN,"sq/0"));else{var eI$=Ow(bQ.init),zIu=Ow(bQ.index);Mj(fP,new Aw(lO4,xTN,eI$,zIu))}}fP.isOtf= !0;var SCD=fP}else{var CN=NRh;CN=CN===void 0?0:CN;var M9=new PJ("",yl==null?void 0:yl.experiments,!1);M9.duration=CN||0;for(var gGN=g.e(Fc),n35=gGN.next();!n35.done;n35=gGN.next()){var T6=n35.value,Qxc=Nj(T6,ZZN,M9.duration),LfK=Ow(T6.init),ibl=Ow(T6.index),DWQ=Xg(T6.url,T6.sp,T6.s);DWQ&&Mj(M9,new Aw(DWQ,Qxc,LfK,ibl))}SCD=M9}YCv=SCD}var ww7=YCv;if(Fc.length>0){var kj4=Fc[0];if(this.B().playerStyle==="hangouts-meet"&&kj4.url){var Kfc=g.wO(kj4.url);this.Cn=this.Cn||Number(Kfc.expire)}}var Ac2=this.isLivePlayback&& !this.N$&&!this.Pk&&!this.isPremiere;this.j("html5_live_head_playable")&&(!FE(this)&&Ac2&&this.GV("missingLiveHeadPlayable",{}),this.fM.XI==="yt"&&(ww7.CM=!0));lz=ww7}else lz=null;this.GV("pafmts",{isManifestFilled:!!lz})}if(lz){fC(this,lz);var hSh=!0}else hSh=!1;hSh?this.enableServerStitchedDai=this.enableServerStitchedDai&&yk(this):this.Zn&&(this.fM.XI==="yt"&&this.Hi()&&this.j("drm_manifestless_unplugged")&&this.j("html5_deprecate_manifestful_fallback")?this.GV("deprecateMflFallback",{}):this.CG= !0)}var jKh=h.adpings;jKh&&(this.MS=jKh?gO(jKh):null);var WKv=h.feature;WKv&&(this.Yk=WKv);var cJd=h.referrer;cJd&&(this.referrer=cJd);this.clientScreenNonce=hP(this.clientScreenNonce,h.csn);this.KA=k2(this.KA,h.root_ve_type);this.eC=k2(this.eC,h.kids_age_up_mode);this.U5||h.kids_app_info==void 0||(this.kidsAppInfo=h.kids_app_info);this.U5&&h.kids_app_info!=null&&(this.kidsAppInfo=h.kids_app_info);this.jC=DX(this.jC,h.upg_content_filter_mode);this.unpluggedFilterModeType=k2(this.unpluggedFilterModeType, h.unplugged_filter_mode_type);var VA7=h.unplugged_location_info;VA7&&(this.hq=VA7);var $9p=h.unplugged_partner_opt_out;$9p&&(this.xm=hP("",$9p));this.oP=DX(this.oP,h.disable_watch_next);this.IP=hP(this.IP,h.internal_ip_override);this.p8=!!h.is_yto_interstitial;(this.interstitials.length||this.p8)&&this.T.push("yto");var sEd=h.qo;sEd&&(this.qo=sEd);this.XI=hP(this.XI,h.csi_timer);h.watchUrl&&(this.watchUrl=h.watchUrl);var WB=h.watch_endpoint;this.j("html5_attach_watch_endpoint_ustreamer_config")&& WB&&eJl(this,WB);if(WB==null?0:WB.ustreamerConfig)this.dJ=Ud(WB.ustreamerConfig);var HNd,BvU,E8Q=WB==null?void 0:(HNd=WB.loggingContext)==null?void 0:(BvU=HNd.qoeLoggingContext)==null?void 0:BvU.serializedContextData;E8Q&&(this.YtE=E8Q);g.DE(this.fM)&&this.fM.ut&&(this.embedsRct=hP(this.embedsRct,h.rct),this.embedsRctn=hP(this.embedsRctn,h.rctn));h.embed_config&&(this.u9=h.embed_config);this.Er=this.Er||!!h.pause_at_start;h.default_active_source_video_id&&(this.defaultActiveSourceVideoId=h.default_active_source_video_id)}; g.l.B=function(){return this.fM}; g.l.j=function(h){return this.fM.j(h)}; g.l.MY=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.l.hasSupportedAudio51Tracks=function(){var h;return!((h=this.d3)==null||!h.Mn)}; g.l.getUserAudio51Preference=function(){var h=1;ny(this.fM)&&this.j("html5_ytv_surround_toggle_default_off")?h=0:g.qc(this.fM)&&this.isLivePlayback&&this.bC()&&(h=0);var W;return(W=g.KS("yt-player-audio51"))!=null?W:h}; g.l.Uv=function(){this.gE()||(this.X.W||this.X.unsubscribe("refresh",this.Uv,this),this.yJ(-1))}; g.l.yJ=function(h){if(!this.isLivePlayback||!this.C||this.C.flavor!=="fairplay"){var W=LR5(this.X,this.E_);if(W.length>0){for(var c=g.e(W),V=c.next();!V.done;V=c.next())V=V.value,V.startSecs=Math.max(V.startSecs,this.Jw()),this.j("html5_cuepoint_identifier_logging")&&V.event==="start"&&this.GV("cuepoint",{pubCue:V.identifier,segNum:h});this.publish("cuepointupdated",W,h);this.E_+=W.length;if(yk(this)&&this.fM.gI())for(W=g.e(W),c=W.next();!c.done;c=W.next())c=c.value,this.GV("cuepoint",{segNum:h,event:c.event, startSecs:c.startSecs,id:c.identifier.slice(-16)}),c.event==="start"&&(c=c.startSecs,this.pz.start=this.q$,this.pz.end=c+3)}}}; g.l.C1=function(){this.gE()||(this.loading=!1,this.publish("dataloaded"))}; g.l.bC=function(){return this.yp!==void 0?this.yp:this.yp=!!this.k9||!!this.X&&Pb(this.X)}; g.l.o$=function(h){var W=this;if(this.gE())return Lb();this.RR=this.Jk=this.G=null;re(this,"html5_high_res_logging_always")&&(this.fM.Ns=!0);return AO4(this,h).then(void 0,function(){return CId(W,h)}).then(void 0,function(){return M0h(W)}).then(void 0,function(){return yOd(W)})}; g.l.xw=function(h){this.G=h;UD5(this,this.G.getAvailableAudioTracks());if(this.G){h=g.e(this.G.videoInfos);for(var W=h.next();!W.done;W=h.next()){W=W.value;var c=W.containerType;c!==0&&(this.x_[c]=W.id)}}h=this.getAvailableAudioTracks();h=h.concat(this.BR);for(W=0;W0?this.G.getAvailableAudioTracks():this.Em||[]:[]}; g.l.getAudioTrack=function(){var h=this;if(this.Y&&!P_(this.Y)){var W=g.jl(this.getAvailableAudioTracks(),function(H){return H.id===h.Y.id}),c; if(!W&&((c=this.Y.iW)==null?0:c.id)){var V=this.Y.iW.id;W=g.jl(this.getAvailableAudioTracks(),function(H){return H.iW.id===V}); this.GV("nat",{id:this.Y.id,track:!!W})}return W||this.BR}if(this.Em){if(!this.fn)for(W=g.e(this.Em),c=W.next();!c.done;c=W.next())if(c=c.value,c.iW.getIsDefault()){this.fn=c;break}return this.fn||this.BR}return this.BR}; g.l.getPlayerResponse=function(){return this.playerResponse}; g.l.getWatchNextResponse=function(){return this.mW}; g.l.getHeartbeatResponse=function(){return this.cD}; g.l.gV=function(){return this.watchUrl?this.watchUrl:this.fM.getVideoUrl(this.videoId)}; g.l.SA=function(){return!!this.X&&(qsD(this.X)||x7U(this.X)||lSN(this.X))}; g.l.getEmbeddedPlayerResponse=function(){return this.Rl}; g.l.jX=function(){return(this.eventLabel||this.fM.zV)==="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.Gw=function(){var h,W,c;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((h=this.playerResponse)==null?0:(W=h.playerConfig)==null?0:(c=W.daiConfig)==null?0:c.ssaEnabledPlayback)}; g.l.sI=function(){return this.cS}; g.l.eH=function(){return this.yX||this.ID}; g.l.Sm=function(){return re(this,"html5_samsung_vp9_live")}; g.l.GV=function(h,W,c){this.publish("ctmp",h,W,c)}; g.l.IN=function(h,W,c){this.publish("ctmpstr",h,W,c)}; g.l.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.l.getGetAdBreakContext=function(h,W){h=h===void 0?NaN:h;W=W===void 0?NaN:W;var c={isSabr:AT(this)},V,H=(V=this.getHeartbeatResponse())==null?void 0:V.adBreakHeartbeatParams;H&&(c.adBreakHeartbeatParams=H);if(this.j("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.X&&!isNaN(h)&&!isNaN(W)){W=h-W;for(var B in this.X.X)if(V=this.X.X[B],V.info.Sz()||V.info.Qr())if(V=V.index,V.isLoaded()){B=V.Gj(W);V=V.wW(B)+W-V.getStartTime(B);this.GV("gabc",{t:h.toFixed(3),mt:W.toFixed(3),sg:B,igt:V.toFixed(3)}); c.livePlaybackPosition={utcTimeMillis:""+(V*1E3).toFixed(0)};break}}return c}; g.l.isEmbedsShortsMode=function(h,W){if(!g.DE(this.fM)||(this.fM.DH||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||W)return!1;var c,V;return!!(((c=this.embeddedPlayerConfig)==null?0:(V=c.embeddedPlayerFlags)==null?0:V.isShortsExperienceEligible)&&h.width<=h.height)}; g.l.dE=function(){g.h1.prototype.dE.call(this);this.MS=null;delete this.Kd;delete this.accountLinkingConfig;delete this.X;this.G=this.cD=this.playerResponse=this.mW=null;this.H9=this.adaptiveFormats="";delete this.botguardData;this.rE=this.suggestions=this.EG=null;this.sabrContextUpdates.clear()};var JxQ={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},uGQ={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},ElN={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},sqD={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"},BUN={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},H0N={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"},RQD={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.n(ao,g.N);g.l=ao.prototype;g.l.handleExternalCall=function(h,W,c){var V=this.state.S[h],H=this.state.Z[h],B=V;if(H)if(c&&fm(c,hGI))B=H;else if(!V)throw Error('API call from an untrusted origin: "'+c+'"');this.logApiCall(h,c);if(B){c=!1;V=g.e(W);for(H=V.next();!H.done;H=V.next())if(String(H.value).includes("javascript:")){c=!0;break}c&&g.Lx(Error('Dangerous call to "'+h+'" with ['+W+"]."));return B.apply(this,W)}throw Error('Unknown API method: "'+h+'".');}; g.l.logApiCall=function(h,W,c){var V=this.app.B();V.fn&&!this.state.T.has(h)&&(this.state.T.add(h),g.V5("webPlayerApiCalled",{callerUrl:V.loaderUrl,methodName:h,origin:W||void 0,playerStyle:V.playerStyle||void 0,embeddedPlayerMode:V.DH,errorCode:c}))}; g.l.publish=function(h){var W=g.tN.apply(1,arguments);this.state.G.publish.apply(this.state.G,[h].concat(g.rN(W)));if(h==="videodatachange"||h==="resize"||h==="cardstatechange")this.state.W.publish.apply(this.state.W,[h].concat(g.rN(W))),this.state.Y.publish.apply(this.state.Y,[h].concat(g.rN(W)))}; g.l.Iz=function(h){var W=g.tN.apply(1,arguments);this.state.G.publish.apply(this.state.G,[h].concat(g.rN(W)));this.state.W.publish.apply(this.state.W,[h].concat(g.rN(W)))}; g.l.lV=function(h){var W=g.tN.apply(1,arguments);this.state.G.publish.apply(this.state.G,[h].concat(g.rN(W)));this.state.W.publish.apply(this.state.W,[h].concat(g.rN(W)));this.state.Y.publish.apply(this.state.Y,[h].concat(g.rN(W)))}; g.l.Dg=function(h){var W=g.tN.apply(1,arguments);this.state.G.publish.apply(this.state.G,[h].concat(g.rN(W)));this.state.W.publish.apply(this.state.W,[h].concat(g.rN(W)));this.state.Y.publish.apply(this.state.Y,[h].concat(g.rN(W)));this.state.C.publish.apply(this.state.C,[h].concat(g.rN(W)))}; g.l.j=function(h){return this.app.B().j(h)}; g.l.dE=function(){if(this.state.element){var h=this.state.element,W;for(W in this.state.X)this.state.X.hasOwnProperty(W)&&(h[W]=null);this.state.element=null}g.N.prototype.dE.call(this)};g.n(ic,g.ar);ic.prototype.publish=function(h){var W=g.tN.apply(1,arguments);if(this.C.has(h))return this.C.get(h).push(W),!0;var c=!1;try{for(W=[W],this.C.set(h,W);W.length;)c=g.ar.prototype.publish.call.apply(g.ar.prototype.publish,[this,h].concat(g.rN(W.shift())))}finally{this.C.delete(h)}return c};g.n(KQ,g.N);KQ.prototype.dE=function(){this.C.dispose();this.Y.dispose();this.W.dispose();this.G.dispose();this.T=this.X=this.Z=this.S=this.N=void 0};var lqU=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.n(UV,ao);g.l=UV.prototype;g.l.getApiInterface=function(){return Array.from(this.state.N)}; g.l.tK=function(h,W){this.state.C.subscribe(h,W)}; g.l.fgk=function(h,W){this.state.C.unsubscribe(h,W)}; g.l.getPlayerState=function(h){return W8N(this.app,h)}; g.l.YF=function(){return W8N(this.app)}; g.l.ZjI=function(h,W,c){F1(this)&&(t2(this.app,!0,1),oT(this.app,h,W,c,1))}; g.l.getCurrentTime=function(h,W,c){var V=this.getPlayerState(h);if(this.app.getAppState()===2&&V===5){var H;return((H=this.app.getVideoData())==null?void 0:H.startSeconds)||0}return this.j("web_player_max_seekable_on_ended")&&V===0?Pg(this.app,h):h?this.app.getCurrentTime(h,W,c):this.app.getCurrentTime(h)}; g.l.VB=function(){return this.app.getCurrentTime(1)}; g.l.lS=function(){var h=this.app.wW(1);return isNaN(h)?this.getCurrentTime(1):h}; g.l.OP=function(){return this.app.getDuration(1)}; g.l.B4=function(h,W){h=g.vr(Math.floor(h),0,100);isFinite(h)&&Fz(this.app,{volume:h,muted:this.isMuted()},W)}; g.l.Ojk=function(h){this.B4(h,!1)}; g.l.GK=function(h){Fz(this.app,{muted:!0,volume:this.getVolume()},h)}; g.l.Dn9=function(){this.GK(!1)}; g.l.kA=function(h){Me(this.app)&&!this.j("embeds_enable_emc3ds_muted_autoplay")||Fz(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},h)}; g.l.ITM=function(){Me(this.app)&&this.j("embeds_enable_emc3ds_muted_autoplay")||this.kA(!1)}; g.l.getPlayerMode=function(){var h={};this.app.getVideoData().B0&&(h.pfp={enableIma:this.app.O8().allowImaMonetization,autoplay:HN(this.app.O8()),mutedAutoplay:this.app.O8().mutedAutoplay});return h}; g.l.SV=function(){var h=this.app.getPresentingPlayerType();if(h===2&&!this.app.Eh()){var W=b3(this.app.Pi());if(!(cS6(W)||g.DE(this.app.B())&&g.Y(this.app.ZH().getPlayerState(),1024))||Vll(W))return}(W=this.app.mR().bO)?W.playVideo():this.app.playVideo(h)}; g.l.cqB=function(){t2(this.app,!0,1);this.SV()}; g.l.pauseVideo=function(h){var W=this.app.getPresentingPlayerType();if(W!==2||this.app.Eh()||cS6(b3(this.app.Pi()))){var c=this.app.mR().bO;c?c.pauseVideo():this.app.pauseVideo(W,h)}}; g.l.zrI=function(){var h=this.app,W=!1;h.uB.Sx&&(h.qn.publish("pageTransition"),W=!0);h.stopVideo(W)}; g.l.clearVideo=function(){}; g.l.getAvailablePlaybackRates=function(){var h=this.app.B();return h.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(h.Y?h.ancestorOrigins[0]:window.location.origin)||h.b$?Asl:h.supportsVarispeedExtendedFeatures?UJu:h.j("web_remix_allow_up_to_3x_playback_rate")&&g.CV(h)?Cit:PC:[1]}; g.l.getPlaybackQuality=function(h){return(h=this.app.P9(h))?h.getPlaybackQuality():"unknown"}; g.l.B3B=function(){}; g.l.getAvailableQualityLevels=function(h){return(h=this.app.P9(h))?(h=g.xw(h.m_(),function(W){return W.quality}),h.length&&(h[0]==="auto"&&h.shift(),h=h.concat(["auto"])),h):[]}; g.l.M1=function(){return this.getAvailableQualityLevels(1)}; g.l.f2=function(){return this.QL()}; g.l.bS=function(){return 1}; g.l.getVideoLoadedFraction=function(h){return this.app.getVideoLoadedFraction(h)}; g.l.QL=function(){return this.getVideoLoadedFraction()}; g.l.kF=function(){return 0}; g.l.getSize=function(){var h=this.app.Bk().getPlayerSize();return{width:h.width,height:h.height}}; g.l.setSize=function(){this.app.Bk().resize()}; g.l.loadVideoById=function(h,W,c,V){if(!h)return!1;h=A7(h,W,c);return this.app.loadVideoByPlayerVars(h,V)}; g.l.xV=function(h,W,c){h=this.loadVideoById(h,W,c,1);t2(this.app,h,1)}; g.l.cueVideoById=function(h,W,c,V){h=A7(h,W,c);this.app.cueVideoByPlayerVars(h,V)}; g.l.Zz=function(h,W,c){this.cueVideoById(h,W,c,1)}; g.l.loadVideoByUrl=function(h,W,c,V){h=x1D(h,W,c);return this.app.loadVideoByPlayerVars(h,V)}; g.l.pm=function(h,W,c){h=this.loadVideoByUrl(h,W,c,1);t2(this.app,h,1)}; g.l.cueVideoByUrl=function(h,W,c,V){h=x1D(h,W,c);this.app.cueVideoByPlayerVars(h,V)}; g.l.yq=function(h,W,c){this.cueVideoByUrl(h,W,c,1)}; g.l.L2=function(){var h=this.app.B();if(h.Wk)return"";var W=this.app.O8(),c=void 0;W.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return h.getVideoUrl(W.videoId,this.getPlaylistId()||void 0,c)}; g.l.A9=function(){return this.app.getDebugText()}; g.l.getVideoEmbedCode=function(){var h=this.app.B();if(h.Wk)return"";var W=this.app.O8();return h.getVideoEmbedCode(W.isPrivate?"":W.title,this.app.O8().videoId,this.app.Bk().getPlayerSize(),this.getPlaylistId()||void 0)}; g.l.xK=function(h,W,c){return Rxp(this.app,h,W,c)}; g.l.removeCueRange=function(h){return this.app.H4(h)}; g.l.loadPlaylist=function(h,W,c,V){this.app.loadPlaylist(h,W,c,V)}; g.l.J1=function(h,W,c,V){this.loadPlaylist(h,W,c,V);t2(this.app,!0,1)}; g.l.cuePlaylist=function(h,W,c,V){this.app.cuePlaylist(h,W,c,V)}; g.l.nextVideo=function(h,W){this.app.nextVideo(h,W)}; g.l.kVI=function(){this.nextVideo();t2(this.app,!0,1)}; g.l.previousVideo=function(h){this.app.previousVideo(h)}; g.l.TuH=function(){this.previousVideo();t2(this.app,!0,1)}; g.l.playVideoAt=function(h){this.app.playVideoAt(h)}; g.l.iyn=function(h){this.playVideoAt(h);t2(this.app,!0,1)}; g.l.setShuffle=function(h){var W=this.app.getPlaylist();W&&W.setShuffle(h)}; g.l.setLoop=function(h){var W=this.app.getPlaylist();W&&(W.loop=h)}; g.l.hn=function(){var h=this.app.getPlaylist();if(!h)return null;for(var W=[],c=0;c=400)if(h=this.O8(),this.L.B().j("client_respect_autoplay_switch_button_renderer"))h=!!h.autoplaySwitchButtonRenderer;else{var W,c,V,H;h=!!((W=h.getWatchNextResponse())==null?0:(c=W.contents)==null?0:(V=c.twoColumnWatchNextResults)==null?0:(H=V.autoplay)==null?0:H.autoplay)!==!1}if(h)this.X||(this.X=!0,this.pJ(this.X),this.L.B().j("web_player_autonav_toggle_always_listen")||m1D(this), W=this.O8(),this.v2(W.autonavState),this.L.logVisibility(this.element,this.X));else if(this.X=!1,this.pJ(this.X),!this.L.B().j("web_player_autonav_toggle_always_listen"))for(this.L.B().j("web_player_autonav_toggle_always_listen"),W=g.e(this.W),c=W.next();!c.done;c=W.next())this.v0(c.value)}; g.l.v2=function(h){pLp(this)?this.isChecked=h!==1:((h=h!==1)||(g.yY(),h=g.ZX("web_autonav_allow_off_by_default")&&!g.Pt(0,141)&&g.X_("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Pt(0,140)),this.isChecked=h);olv(this)}; g.l.onClick=function(){this.isChecked=!this.isChecked;this.L.gt(this.isChecked?2:1);olv(this);if(pLp(this)){var h=this.O8().autoplaySwitchButtonRenderer;this.isChecked&&(h==null?0:h.onEnabledCommand)?this.L.Iz("innertubeCommand",h.onEnabledCommand):!this.isChecked&&(h==null?0:h.onDisabledCommand)&&this.L.Iz("innertubeCommand",h.onDisabledCommand)}this.L.logClick(this.element)}; g.l.getValue=function(){return this.isChecked}; g.l.O8=function(){return this.L.getVideoData(1)};g.n(Iqp,da);g.n(jY,g.Eg);jY.prototype.onClick=function(){this.enabled&&(aB(this,!this.checked),this.publish("select",this.checked))}; jY.prototype.getValue=function(){return this.checked}; jY.prototype.setEnabled=function(h){(this.enabled=h)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var Qv=["en-CA","en","es-MX","fr-CA"];g.n(Ug,jY);Ug.prototype.FI=function(h){h?this.X||(this.YZ.zx(this),this.X=!0):this.X&&(this.YZ.qY(this),this.X=!1);this.X&&aB(this,tm4())}; Ug.prototype.Y=function(){g.cD(this.element,"ytp-menuitem-highlight-transition-enabled")}; Ug.prototype.G=function(h){var W=tm4();h!==W&&(W=g.yY(),bL(190,h),bL(192,!0),W.save(),this.L.Iz("cinematicSettingsToggleChange",h))}; Ug.prototype.dE=function(){this.X&&this.YZ.qY(this);jY.prototype.dE.call(this)};g.n(Cz,da);Cz.prototype.updateCinematicSettings=function(h){this.X=h;var W;(W=this.menuItem)==null||W.FI(h);this.api.publish("onCinematicSettingsVisibilityChange",h)};g.n(D1U,da);g.n(MS,da);MS.prototype.setCreatorEndscreenVisibility=function(h){var W;(W=tG(this.api.Pi()))==null||W.pJ(h)}; MS.prototype.X=function(h){function W(V){V==="creatorendscreen"&&(V=tG(c.api.Pi()))&&V.tzM(c.hideButton)} var c=this;this.hideButton=h;this.events.U(this.api,"modulecreated",W);W("creatorendscreen")};g.n(F5,jY);F5.prototype.Y=function(h){this.G(h?1:0)}; F5.prototype.W=function(){var h=this.hasDrcAudioTrack(),W=this.X()===1&&h;aB(this,W);this.setEnabled(h)}; F5.prototype.dE=function(){this.YZ.qY(this);jY.prototype.dE.call(this)};g.n(yv,da);yv.prototype.getDrcUserPreference=function(){return this.X}; yv.prototype.setDrcUserPreference=function(h){g.iL("yt-player-drc-pref",h,31536E3);h!==this.X&&(this.X=h,this.updateEnvironmentData(),this.W()&&this.api.Zt())}; yv.prototype.updateEnvironmentData=function(){this.api.B().nj=this.X===1}; yv.prototype.W=function(){var h,W,c=(h=this.api.getVideoData())==null?void 0:(W=h.G)==null?void 0:W.X;if(!c)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.j("mta_drc_mutual_exclusion_removal")){var V,H,B=(V=this.api.aC())==null?void 0:(H=V.iW)==null?void 0:H.id;return tM(c,function(E){var J;return E.audio.X&&((J=E.iW)==null?void 0:J.id)===B})}return tM(c,function(E){var J; return((J=E.audio)==null?void 0:J.X)===!0})};g.n(PV,da);PV.prototype.onVideoDataChange=function(){var h=this,W=this.api.getVideoData();this.api.zw("embargo",1);var c=W==null?void 0:W.yU.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(c==null?0:c.length)?kaN(this,c.filter(function(V){return wLD(h,V)})):(W==null?0:W.cueRanges)&&kaN(this,W.cueRanges.filter(function(V){return wLD(h,V)}))}; PV.prototype.W=function(h){return h.embargo!==void 0}; PV.prototype.dE=function(){da.prototype.dE.call(this);this.X={}};g.n(fz,da); fz.prototype.addEmbedsConversionTrackingParams=function(h){var W=this.api.B(),c=W.widgetReferrer,V=W.Zn,H=this.X,B="",E=W.getWebPlayerContextConfig();E&&(B=E.embedsIframeOriginParam||"");c.length>0&&(h.embeds_widget_referrer=c);V.length>0&&(h.embeds_referring_euri=V);W.Y&&B.length>0&&(h.embeds_referring_origin=B);E&&E.embedsFeature&&(h.feature=E.embedsFeature);H.length>0&&(W.j("embeds_web_enable_lite_experiment_control_arm_logging")?H.unshift(28572):g.$k(g.HF(W))&&H.unshift(159628),W=H.join(","),W= g.NC()?W:g.Ks(W,4),h.source_ve_path=W);this.X.length=0};g.n(hdh,da);g.n(WdN,da);g.n(bl,g.N);bl.prototype.dE=function(){g.N.prototype.dE.call(this);this.X=null;this.W&&this.W.disconnect()};g.n(VGl,da);g.n(Tv,g.p);Tv.prototype.show=function(){g.p.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; Tv.prototype.stopTimer=function(){this.X&&(this.X.dispose(),this.X=null)}; Tv.prototype.onVideoDataChange=function(h){var W,c,V=(W=this.api.getVideoData())==null?void 0:(c=W.getPlayerResponse())==null?void 0:c.playabilityStatus;V&&(W=$pT(V),g.Y(this.api.getPlayerStateObject(),128)||h==="dataloaderror"||!W?(this.W=0,this.stopTimer(),this.hide()):(h=(W.remainingTimeSecs||0)*1E3,h>0&&(this.show(),this.updateValue("label",Ta(W.label)),HBv(this,h))))}; Tv.prototype.dE=function(){this.stopTimer();g.p.prototype.dE.call(this)};g.n(BEQ,da);g.n(NS,g.p);NS.prototype.onClick=function(){this.qn.logClick(this.element);this.qn.Iz("onFullerscreenEduClicked")}; NS.prototype.FI=function(){this.qn.isFullscreen()?this.X?this.fade.hide():this.fade.show():this.hide();this.qn.logVisibility(this.element,this.qn.isFullscreen()&&!this.X)};g.n(X5,da);X5.prototype.updateFullerscreenEduButtonSubtleModeState=function(h){var W;(W=this.X)!=null&&(g.$y(W.element,"ytp-fullerscreen-edu-button-subtle",h),h&&!W.W&&(W.qn.j("player_tooltip_data_title_killswitch")?W.element.setAttribute("title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"):W.element.setAttribute("data-tooltip-title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"),Ne(W.qn,W.element,W),W.W=!0))}; X5.prototype.updateFullerscreenEduButtonVisibility=function(h){var W;(W=this.X)!=null&&(W.X=h,W.FI())};g.n(EgQ,g.p);g.n(us7,da);g.n(tK,da);tK.prototype.getSphericalProperties=function(){var h=g.OV(this.api.Pi());return h?h.getSphericalProperties():{}}; tK.prototype.setSphericalProperties=function(h){if(h){var W=g.OV(this.api.Pi());W&&W.setSphericalProperties(h,!0)}};g.n(vV,da);g.l=vV.prototype;g.l.createClientVe=function(h,W,c,V){this.api.createClientVe(h,W,c,V===void 0?!1:V)}; g.l.createServerVe=function(h,W,c){this.api.createServerVe(h,W,c===void 0?!1:c)}; g.l.setTrackingParams=function(h,W){this.api.setTrackingParams(h,W)}; g.l.logClick=function(h,W){this.api.logClick(h,W)}; g.l.logVisibility=function(h,W,c){this.api.logVisibility(h,W,c)}; g.l.hasVe=function(h){return this.api.hasVe(h)}; g.l.destroyVe=function(h){this.api.destroyVe(h)};var GVL=!1;oB.prototype.setPlaybackRate=function(h){this.playbackRate=Math.max(1,h)}; oB.prototype.getPlaybackRate=function(){return this.playbackRate};SY.prototype.vt=function(h){var W=g.fF(h.info.X.info,this.jO.Hi),c=h.info.Hk+this.Y,V=h.info.startTime*1E3;if(this.policy.Jk)try{V=this.policy.Jk?g.eg(h)*1E3:h.info.startTime*1E3}catch(E){Math.random()>.99&&this.logger&&(V=H7(h.W).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:h.info.aR(),encodedDataView:g.i6(V,4)})),V=h.info.startTime*1E3}var H=h.info.clipId,B=this.policy.Jk?g.WRT(h)*1E3:h.info.duration*1E3;this.policy.Jk&&(V<0||B<0)&&(this.logger&&(this.logger({missingSegInfo:h.info.aR(), startTimeMs:V,durationMs:B}),this.policy.u8||(V<0&&(V=h.info.startTime*1E3),B<0&&(B=h.info.duration*1E3))),this.policy.u8&&(V<0&&(V=h.info.startTime*1E3),B<0&&(B=h.info.duration*1E3)));return{formatId:W,Hk:c,startTimeMs:V,clipId:H,Ou:B}}; SY.prototype.OO=function(h){this.timestampOffset=h};DW.prototype.seek=function(h,W){h!==this.targetTime&&(this.seekCount=0);this.targetTime=h;var c=this.videoTrack.W,V=this.audioTrack.W,H=this.audioTrack.jx,B=MG7(this,this.videoTrack,h,this.videoTrack.jx,W);W=MG7(this,this.audioTrack,this.policy.q$?h:B,H,W);h=Math.max(h,B,W);this.Y=!0;this.jO.isManifestless&&(iB7(this,this.videoTrack,c),iB7(this,this.audioTrack,V));return h}; DW.prototype.isSeeking=function(){return this.Y}; DW.prototype.SF=function(h){this.W=h}; var Cyd=2/24;var Pyk=0;g.l=RL.prototype;g.l.uN=function(){this.T=this.now();AoU(this.Yd,this.T);this.dI.uN()}; g.l.M9=function(h,W){var c=this.policy.W?(0,g.aC)():0;JD(this,h,W);h-this.N<10&&this.W>0||this.Tl(h,W);this.dI.M9(h,W);this.policy.W&&(h=(0,g.aC)()-c,this.hI+=h,this.Ef=Math.max(h,this.Ef))}; g.l.Tl=function(h,W){var c=(h-this.N)/1E3,V=W-this.G;this.jc||(vx(this.Yd,c,V),this.vX(c,V));this.N=h;this.G=W}; g.l.Bp=function(){this.DH&&fHQ(this);this.dI.Bp()}; g.l.IU=function(h){this.DH||(this.DH=this.C-this.Sx+h,this.Zn=this.C,this.fR=this.S)}; g.l.Gl=function(h,W){h=h===void 0?this.S:h;W=W===void 0?this.C:W;this.W>0||(this.Z=h,this.W=W,this.XI=this.isActive=!0)}; g.l.My=function(){return this.fp||2}; g.l.rz=function(){}; g.l.wZ=function(){var h,W={rn:this.requestNumber,rt:(this.S-this.X).toFixed(),lb:this.C,stall:(1E3*this.Y).toFixed(),ht:(this.T-this.X).toFixed(),elt:(this.Z-this.X).toFixed(),elb:this.W,d:(h=this.zV)==null?void 0:h.Ey()};this.url&&dpp(W,this.url);this.policy.W&&(W.mph=this.Ef.toFixed(),W.tph=this.hI.toFixed());W.ulb=this.mW;W.ult=this.Wk;return W}; g.l.now=function(){return(0,g.aC)()}; g.l.deactivate=function(){this.isActive&&(this.isActive=!1)};g.n(d6,RL);g.l=d6.prototype;g.l.wZ=function(){var h=RL.prototype.wZ.call(this);h.pb=this.wq;h.pt=(1E3*this.Ak).toFixed();h.se=this.U5;return h}; g.l.qL=function(){var h=this.dI;this.Jk||(this.Jk=h.qL?h.qL():1);return this.Jk}; g.l.U3=function(){return this.q5?this.qL()!==1:!1}; g.l.He=function(h,W,c){if(!this.qU){this.qU=!0;if(!this.jc){JD(this,h,W);this.Tl(h,W);var V=this.qL();this.U5=c;if(!this.jc)if(V===2){V=h-this.Z0)||Gf(this,V,W),this.W>0&&X8(this.Yd,W,this.Y));h=(h-this.X)/ 1E3||.01;this.policy.Z&&!(this.W>0)||N8(this.Yd,h,this.G,TE5(this),this.Dw)}this.deactivate()}}; g.l.A3=function(h,W,c){c&&(this.Jk=2);h<0&&this.fp&&(h=this.fp);W?this.yg+=h:this.Rz+=h}; g.l.My=function(){return this.Rz||this.yg||RL.prototype.My.call(this)}; g.l.Tl=function(h,W){var c=(h-this.N)/1E3,V=W-this.G,H=this.qL();this.isActive?H===1&&((V>0||this.policy.C)&&(c>.2||V<1024)?(this.Y+=c,V>0&&c>.2&&Gf(this,this.Fm?c:.05,V),this.uW=!0):V>0&&(Gf(this,c,V),this.uW=!0)):W&&W>=this.policy.X&&this.Gl(h,W);RL.prototype.Tl.call(this,h,W)}; g.l.Da=function(h){if(!this.jc){JD(this,h,this.C);var W=(h-this.X)/1E3;this.qL()!==2&&this.W>0&&(this.Y+=(h-this.N)/1E3,X8(this.Yd,this.G,this.Y));N8(this.Yd,W,this.G,TE5(this),this.Dw,!0);h=(h-this.N)/1E3;vx(this.Yd,h,0);this.vX(h,0)}}; g.l.Gl=function(h,W){h=h===void 0?this.S:h;W=W===void 0?this.C:W;if(!(this.W>0)&&(RL.prototype.Gl.call(this,h,W),this.qL()===1)){W=(this.T-this.X)/1E3;var c=(h-this.T)/1E3;this.q5&&Zp(this,this.now());this.lW||this.jc||(this.fp&&(c=Math.max(0,c-this.fp)),h=this.Yd,h.Z.c5(1,W),h.zV.c5(1,c))}}; g.l.hW=function(){this.q5&&Zp(this,this.now());return this.CM}; g.l.jW=function(){var h;if(h=this.G>this.LY)h=(h=this.G)?h>=this.policy.X:!1;return h}; g.l.Ag=function(){return this.rE}; g.l.BM=function(h){h=h===void 0?this.now():h;if(this.q5){Zp(this,h);if(this.Jk?this.U3():this.Pk!==this.Nn){var W=this.Nn;if(h0?c+h:c+Math.max(h,W)}; g.l.rj=function(){return this.now()-this.Z}; g.l.UA=function(){return(this.G-this.W)*1E3/this.rj()||0}; g.l.f_=function(){return this.Z};r6.prototype.feed=function(h){W7(this.X,h);this.bV()}; r6.prototype.bV=function(){if(this.Y){if(!this.X.totalLength)return;var h=this.X.split(this.G-this.W),W=h.zF;h=h.t2;if(!this.dI.IU(this.Y,W,this.W,this.G))return;this.W+=W.totalLength;this.X=h;this.W===this.G&&(this.Y=this.G=this.W=void 0)}for(;;){var c=0;h=g.e(vgv(this.X,c));W=h.next().value;c=h.next().value;c=g.e(vgv(this.X,c));h=c.next().value;c=c.next().value;if(W<0||h<0)break;if(!(c+h<=this.X.totalLength)){if(!(this.dI.IU&&c+1<=this.X.totalLength))break;c=this.X.split(c).t2;this.dI.IU(W,c,0, h)&&(this.Y=W,this.W=c.totalLength,this.G=h,this.X=new hQ([]));break}h=this.X.split(c).t2.split(h);c=h.t2;this.dI.qR(W,h.zF);this.X=c}}; r6.prototype.dispose=function(){this.X=new hQ};g.l=q2.prototype;g.l.QR=function(){return 0}; g.l.GJ=function(){return null}; g.l.Tf=function(){return null}; g.l.jM=function(){return this.state>=1}; g.l.isComplete=function(){return this.state>=3}; g.l.C$=function(){return this.state===5}; g.l.onStateChange=function(){}; g.l.So=function(h){var W=this.state;this.state=h;this.onStateChange(W);this.callback&&this.callback(this,W)}; g.l.Ho=function(h){h&&this.state=this.xhr.HEADERS_RECEIVED}; g.l.getResponseHeader=function(h){try{return this.xhr.getResponseHeader(h)}catch(W){return""}}; g.l.AY=function(){return+this.getResponseHeader("content-length")}; g.l.QV=function(){return this.W}; g.l.Ra=function(){return this.status>=200&&this.status<300&&!!this.W}; g.l.mH=function(){return this.X.totalLength>0}; g.l.MF=function(){var h=this.X;this.X=new hQ;return h}; g.l.AC=function(){return this.X}; g.l.abort=function(){this.gE=!0;this.xhr.abort()}; g.l.gy=function(){return!0}; g.l.fK=function(){return this.G}; g.l.B9=function(){return""};g.l=IHN.prototype;g.l.getResponseHeader=function(h){return h==="content-type"?this.X.get("type"):""}; g.l.abort=function(){}; g.l.bR=function(){return!0}; g.l.AY=function(){return this.range.length}; g.l.QV=function(){return this.loaded}; g.l.Ra=function(){return!!this.loaded}; g.l.mH=function(){return!!this.W.totalLength}; g.l.MF=function(){var h=this.W;this.W=new hQ;return h}; g.l.AC=function(){return this.W}; g.l.gy=function(){return!0}; g.l.fK=function(){return!!this.error}; g.l.B9=function(){return this.error};g.l=OB4.prototype;g.l.start=function(h){var W={credentials:"include",cache:"no-store"};Object.assign(W,this.S);this.Y&&(W.signal=this.Y.signal);h=new Request(h,W);fetch(h).then(this.T,this.onError).then(void 0,cp)}; g.l.onDone=function(){this.gE()||this.dI.Bp()}; g.l.getResponseHeader=function(h){return this.responseHeaders?this.responseHeaders.get(h):null}; g.l.bR=function(){return!!this.responseHeaders}; g.l.QV=function(){return this.W}; g.l.AY=function(){return+this.getResponseHeader("content-length")}; g.l.Ra=function(){return this.status>=200&&this.status<300&&!!this.W}; g.l.mH=function(){return!!this.X.totalLength}; g.l.MF=function(){var h=this.X;this.X=new hQ;return h}; g.l.AC=function(){return this.X}; g.l.gE=function(){return this.C}; g.l.abort=function(){this.G&&this.G.cancel().catch(function(){}); this.Y&&this.Y.abort();this.C=!0}; g.l.gy=function(){return!0}; g.l.fK=function(){return this.N}; g.l.B9=function(){return this.errorMessage};g.l=S14.prototype;g.l.onDone=function(){if(!this.gE){this.status=this.xhr.status;try{this.response=this.xhr.response,this.W=this.response.byteLength}catch(h){}this.X=!0;this.dI.Bp()}}; g.l.jN=function(){this.xhr.readyState===2&&this.dI.uN()}; g.l.SL=function(h){this.gE||(this.status=this.xhr.status,this.X||(this.W=h.loaded),this.dI.M9((0,g.aC)(),h.loaded))}; g.l.bR=function(){return this.xhr.readyState>=2}; g.l.getResponseHeader=function(h){try{return this.xhr.getResponseHeader(h)}catch(W){return g.Lx(Error("Could not read XHR header "+h)),""}}; g.l.AY=function(){return+this.getResponseHeader("content-length")}; g.l.QV=function(){return this.W}; g.l.Ra=function(){return this.status>=200&&this.status<300&&this.X&&!!this.W}; g.l.mH=function(){return this.X&&!!this.response&&!!this.response.byteLength}; g.l.MF=function(){var h=this.response;this.response=void 0;return new hQ([new Uint8Array(h)])}; g.l.AC=function(){return new hQ([new Uint8Array(this.response)])}; g.l.abort=function(){this.gE=!0;this.xhr.abort()}; g.l.gy=function(){return!1}; g.l.fK=function(){return!1}; g.l.B9=function(){return""};g.n(nM,g.N);nM.prototype.I2=function(){if(!this.Kj.length)return[];var h=this.Kj;this.Kj=[];this.G=g.x6(h).info;return h}; nM.prototype.AP=function(){return this.Kj}; nM.prototype.dE=function(){g.N.prototype.dE.call(this);this.X=null;this.Kj.length=0;this.pM.length=0;this.G=null};g.n(aL,g.N);g.l=aL.prototype; g.l.QVI=function(){if(!this.gE()){var h=(0,g.aC)(),W=!1;if(this.policy.ut){h=h-(this.timing.W>0?this.timing.Z:this.timing.X)-this.timing.My()*1E3;var c=TY(e4(this),!1);h>=2E3*c?W=!0:h>=this.policy.xg*c&&(this.X=this.policy.VX)}else if(this.timing.W>0){if(this.C){this.policy.fR&&(this.X=0);return}var V=this.timing.Ag();this.timing.BM();var H=this.timing.Ag();H-V>=this.policy.nj*.8?(this.X++,this.logger.debug(function(){return"Mispredicted by "+(H-V).toFixed(0)}),W=this.X>=5):this.X=0}else{var B=h- this.timing.hW(); this.policy.VX&&B>0&&(this.X+=1);W=TY(e4(this),!1)*this.policy.sL;(W=B>W*1E3)&&this.logger.debug(function(){return"Elbow late by "+B.toFixed(3)})}this.X>0&&this.dI.wh(); W?this.qK():this.W.start()}}; g.l.qK=function(){this.Y=!0;this.dI.gq();this.lastError="net.timeout";QN(this)}; g.l.canRetry=function(h){var W=e4(this);h=h?this.policy.E2:this.policy.FJ;return W.timedOut0&&(W=B7(W.X,0),h.ubyte=W,c===1&&W===0&&(h.b248180278=!0))}this.HH&&(h.rc=this.policy.Oq?this.HH:this.HH.toString());this.policy.U8&&this.hF&&(h.tr=this.hF);h.itag=this.info.pM[0].X.info.itag;h.ml=""+ +this.info.pM[0].X.Yx();h.sq=""+this.info.pM[0].Hk;this.du&&(h.ifi=""+ +I7(this.info.bW.W));this.HH!==410&&this.HH!==500&&this.HH!==503||(h.fmt_unav="true");var V;(c=this.errorMessage||((V=this.xhr)==null?void 0: V.B9()))&&(h.msg=c);this.lU&&(h.smb="1");this.info.isDecorated()&&(h.sdai="1");return h}; g.l.xT=function(){return NEN(this.timing)}; g.l.B9=function(){return this.xhr.B9()||""}; g.l.jW=function(){return this.isComplete()||this.timing.jW()}; g.l.M9=function(){!this.gE()&&this.xhr&&(this.HH=this.xhr.status,this.policy.I5&&this.Oh&&this.HY(!1),this.Zk()?this.Ho(2):!this.cI&&this.jW()&&(this.Ho(),this.cI=!0))}; g.l.uN=function(){if(!this.gE()&&this.xhr){if(!this.JQ&&this.xhr.bR()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var h=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.JQ=((0,g.aC)()-h)/1E3}this.xhr.bR()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.hg&&!V1D()&&g.iL("yt-player-headers-readable",!0,2592E3);h=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var W=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),c;(c=this.xi)==null||c.stop();this.ML=h||this.ML; this.gK=W||this.gK}}; g.l.Bp=function(){var h=this.xhr;if(!this.gE()&&h){this.HH=h.status;h=this.W7(h);if(this.policy.U8){var W;(W=this.xi)==null||W.stop()}h===5?QN(this.D3):this.So(h);this.D3.W.stop()}}; g.l.W7=function(h){var W=this;AR4(this);if(LM(this.D3,this.xhr.status,this.BU?this.timing.XI||this.DA:this.xhr.Ra(),!1,this.R6))return 5;var c="";iu(this.D3,this.xhr)&&(c=WND(this.D3,this.xhr));if(c)return b_(e4(this.D3)),this.info.kO(this.du,c),3;c=h.QV();if(this.Bv){this.HY(!0);AR4(this);if(LM(this.D3,this.xhr.status,this.timing.XI||this.DA,!1,this.R6))return 5;if(!this.sB){if(this.DA)return b_(e4(this.D3)),3;this.D3.lastError="net.closed";return 5}}else{if(LM(this.D3,this.xhr.status,this.xhr.Ra(), !1,this.R6))return 5;var V=this.info.G;if(V&&V!==c||h.fK())return this.D3.lastError="net.closed",5;this.HY(!0)}V=mpp(this)?h.getResponseHeader("X-Bandwidth-Est"):0;if(h=mpp(this)?h.getResponseHeader("X-Bandwidth-Est3"):0)this.hO=!0,this.policy.wG&&(V=h);kVl(this.D3,c,V?Number(V):0,this.info.pM[0].type===5);this.logger.debug(function(){var H=W.timing;return"Succeeded, rtpd="+(H.Ak*1E3+H.X-Date.now()).toFixed(0)}); return 4}; g.l.canRetry=function(){this.gE();var h=this.info.isDecorated();return this.D3.canRetry(h)}; g.l.onStateChange=function(){this.isComplete()&&(this.policy.Nf?this.gq():this.timing.deactivate())}; g.l.qK=function(){this.D3.qK()}; g.l.wh=function(){this.callback&&this.callback(this,this.state)}; g.l.z7=function(){return this.D3.z7()}; g.l.dispose=function(){q2.prototype.dispose.call(this);this.D3.dispose();var h;(h=this.xi)==null||h.dispose();this.policy.Nf||this.gq()}; g.l.gq=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.l.I2=function(){if(!this.AP().length)return[];this.aH=!0;return this.Oh.I2()}; g.l.Zk=function(){if(this.state<1)return!1;if(this.Oh&&this.Oh.Kj.length)return!0;var h;return((h=this.xhr)==null?0:h.mH())?!0:!1}; g.l.AP=function(){this.HY(!1);return this.Oh?this.Oh.AP():[]}; g.l.HY=function(h){try{if(h||this.xhr.bR()&&this.xhr.mH()&&!iu(this.D3,this.xhr)&&!this.K1)this.Oh||(this.Oh=new nM(this.policy,this.info.pM)),this.xhr.mH()&&(this.Bv?this.Bv.feed(this.xhr.MF()):j4(this.Oh,this.xhr.MF(),h&&!this.xhr.mH()))}catch(W){this.Bv?LNk(this,W):g.Lx(W)}}; g.l.qR=function(h,W){switch(h){case 21:h=W.split(1).t2;iTT(this,h);break;case 22:this.sB=!0;j4(this.Oh,new hQ([]),!0);break;case 43:if(h=ab(new rr(W),1))this.info.kO(this.du,h),this.DA=!0;break;case 45:W=uy(new rr(W));h=W.hV;W=W.Pc;h&&W&&(this.yv=h/W);break;case 44:this.OQ=pHN(new rr(W));var c,V,H;!this.timing.XI&&((c=this.OQ)==null?void 0:c.action)===4&&((V=this.OQ)==null?0:(H=V.Xk)==null?0:H.BU)&&(this.BU=this.OQ.Xk.BU);break;case 53:this.policy.U8&&(h=veL(new rr(W)).XJ)&&(this.xi||(this.XJ=h,this.xi= new g.oD(this.Td,h,this)),this.xi.start());break;case 60:this.Wo=Ju(new rr(W));break;case 58:if(h=lGv(new rr(W)))this.R4=h,h.R4===3&&(this.R6=!0)}}; g.l.IU=function(h,W,c,V){c||this.timing.IU(V);if(h!==21)return!1;if(h=this.policy.I5)if(h*=this.info.pM[0].X.info.Vg,W.totalLength+c!==V&&W.totalLength0)return!1;if(!this.xhr.bR())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.Bv)var h=!this.info.G;else this.xhr.AY()?h=!1:(h=this.xhr.getResponseHeader("content-type"),h=h==="audio/mp4"||h==="video/mp4"||h==="video/webm");if(!h)return!1;if(isNaN(this.info.dS)){h=this.xhr.getResponseHeader("x-head-seqnum");var W=this.timing.policy.S?1:0;if(!h)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(h)>this.info.pM[0].Hk+W)return!1}return!0}; g.l.yR=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.l.GJ=function(){this.xhr&&(this.ML=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.ML}; g.l.Tf=function(){this.xhr&&(this.gK=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.gK}; g.l.KG=function(){return this.D3.KG()}; g.l.Td=function(){if(!this.gE()&&this.xhr){this.hF="heartbeat";var h=this.D3;h.X+=2;this.wh()}};g.n(PP,RL);g.l=PP.prototype;g.l.Tl=function(h,W){var c=(h-this.N)/1E3,V=W-this.G;this.W>0?V>0&&(this.Pk&&(c>.2||V<1024?(this.Y+=c,c>.2&&Uhp(this,.05,V)):Uhp(this,c,V)),this.Nn&&(this.CM+=V,this.Rz+=c)):W>this.policy.X&&this.Gl(h,W);RL.prototype.Tl.call(this,h,W)}; g.l.He=function(h,W){JD(this,h,W);this.Tl(h,W);this.Pk&&(W=this.G*this.snapshot.stall+this.G/this.snapshot.byterate,this.W>0&&X8(this.Yd,this.CM,this.Y),h=(h-this.X)/1E3||.01,this.policy.Z&&!(this.W>0)||N8(this.Yd,h,this.G,W,!1))}; g.l.Da=function(h){JD(this,h,this.C);var W=(h-this.N)/1E3;vx(this.Yd,W,0);this.vX(W,0);!this.Pk&&this.W>0||(W=this.G*this.snapshot.stall+this.G/this.snapshot.byterate,this.W>0&&(this.Y+=(h-this.N)/1E3,X8(this.Yd,this.CM,this.Y)),N8(this.Yd,(h-this.X)/1E3||.01,this.G,W,!1,!0))}; g.l.By=function(h){h=h.Ba||2147483647;(h&2)!==2&&(this.Nn=!1);(h&1)===1&&(this.Pk=!0)}; g.l.oZ=function(h){h=h.Ba||2147483647;(h&2)===2&&(this.Nn=!1);(h&1)===1&&(this.Pk=!1)}; g.l.f_=function(){return this.Z}; g.l.rj=function(){var h=this.Nn?this.now()-this.N:0;return Math.max(this.Rz*1E3+h,1)}; g.l.UA=function(){return this.CM*1E3/this.rj()}; g.l.Gl=function(h,W){h=h===void 0?this.S:h;W=W===void 0?this.C:W;this.W>0||(RL.prototype.Gl.call(this,h,W),W=this.Yd,h=(h-this.T)/1E3,W.Z.c5(1,(this.T-this.X)/1E3),W.zV.c5(1,h))}; g.l.rz=function(h){this.yg=h}; g.l.wZ=function(){var h=RL.prototype.wZ.call(this);h.rbw=this.UA();h.rbe=+this.Nn;h.gbe=+this.Pk;h.ackt=(this.yg-this.X).toFixed();return h}; g.l.BM=function(){}; g.l.Ag=function(){return NaN}; g.l.hW=function(){return this.X+this.snapshot.delay*1E3};fM.prototype.qR=function(h,W){switch(h){case 20:h=new rr(W);h={t0:lQ(h,1),videoId:ab(h,2),itag:lQ(h,3),lmt:lQ(h,4),xtags:ab(h,5),wk:lQ(h,6),Zw:nP(h,8),cY:lQ(h,9),A0g:lQ(h,10),startMs:lQ(h,11),durationMs:lQ(h,12),X$:lQ(h,14),timeRange:eU(h,15,WZ4),Jl:lQ(h,16),Qu:lQ(h,17),clipId:ab(h,1E3)};this.Af(h);break;case 21:this.VY(W,!1);break;case 22:this.G0(W);break;case 31:h=LP(W,y$p);this.Vx(h);break;case 52:h=LP(W,m6v);this.SN(h);break;default:this.Zq(h,W)}}; fM.prototype.Af=function(){}; fM.prototype.Zq=function(){};g.n(bu,fM);g.l=bu.prototype; g.l.Zq=function(h,W){switch(h){case 35:this.Yg(W);break;case 44:this.JP(W);break;case 43:this.PM(W);break;case 53:this.Gp(W);break;case 55:h=new rr(W);eU(h,1,YX4);eU(h,2,gel);break;case 56:this.i_();break;case 57:this.kH(W);break;case 42:this.xn(W);break;case 45:this.dZ(W);break;case 59:this.y3(W);break;case 51:this.M6(W);break;case 49:this.By(W);break;case 50:this.oZ(W);break;case 47:this.IZ(W);break;case 58:this.OZ(W);break;case 61:this.dI.E8.rz((0,g.aC)());break;case 66:this.xq(W);break;case 46:this.Zy(W); break;case 67:this.onSnackbarMessage(W);break;case 68:this.yF(W)}}; g.l.M6=function(h){h=new rr(h);h={B7V:Ql(h,1,Hb),pUg:Ql(h,2,Hb)};this.dI.M6(h)}; g.l.y3=function(h){var W=new rr(h);h=z6(W,1);var c=z6(W,2);W=z6(W,3);this.dI.y3(h,c,W)}; g.l.dZ=function(h){h=uy(new rr(h));this.dI.dZ(h)}; g.l.IZ=function(h){h=LP(h,bml);this.dI.IZ(h)}; g.l.xn=function(h){h=new rr(h);h={videoId:ab(h,1),formatId:eU(h,2,Hb),endTimeMs:lQ(h,3),vgf:lQ(h,4),mimeType:ab(h,5),T5:eU(h,6,KZv),indexRange:eU(h,7,KZv),hU:eU(h,8,A$L)};this.dI.xn(h)}; g.l.kH=function(h){h=gel(new rr(h));this.dI.kH(h)}; g.l.i_=function(){this.dI.i_()}; g.l.Yg=function(h){h=PJ4(new rr(h));this.dI.Yg(h)}; g.l.Gp=function(h){h=veL(new rr(h));this.dI.Gp(h)}; g.l.JP=function(h){h=pHN(new rr(h));this.dI.JP(h)}; g.l.PM=function(h){h={redirectUrl:ab(new rr(h),1)};this.dI.PM(h)}; g.l.VY=function(h){var W=B7(h,0);if(h.totalLength!==1){h=h.split(1).t2;var c=this.W[W]||null;c&&oL(this.dI.JE,W,c,h)}}; g.l.G0=function(h){h=B7(h,0);var W=this.W[h]||null;W&&this.dI.G0(h,W)}; g.l.SN=function(h){this.dI.SN(h)}; g.l.Af=function(h){var W=h.t0,c=h.Zw,V=h.wk,H=h.Qu,B=h.Jl,E=h.cY,J=h.startMs,u=h.durationMs,d=h.timeRange,G=h.X$,Z=h.clipId,r=pT(h);h=r32.has(LF[""+h.itag]);this.W[W]=r;this.dI.A3(r,h,{t0:W,Zw:!!c,wk:V!=null?V:-1,cY:E!=null?E:-1,startMs:J!=null?J:-1,durationMs:u!=null?u:-1,X$:G,Qu:H,Jl:B,clipId:Z,timeRange:d})}; g.l.By=function(h){h={Ba:lQ(new rr(h),1)};this.dI.By(h)}; g.l.oZ=function(h){h={Ba:lQ(new rr(h),1)};this.dI.oZ(h)}; g.l.Vx=function(h){this.dI.Vx(h)}; g.l.OZ=function(h){h=lGv(new rr(h));this.dI.OZ(h)}; g.l.xq=function(h){h={Ih:eU(new rr(h),1,XHv)};this.dI.xq(h)}; g.l.onSnackbarMessage=function(h){h=lQ(new rr(h),1);this.dI.onSnackbarMessage(h)}; g.l.yF=function(h){h={Pm:Ql(new rr(h),1,imN)};this.dI.yF(h)}; g.l.Zy=function(h){h=new rr(h);h={reloadPlaybackParams:eU(h,1,x6v),Tm:nP(h,2)};this.dI.Zy(h)};g.n(Tf,g.N);g.l=Tf.prototype;g.l.O4=function(){return Array.from(this.jo.keys())}; g.l.d7=function(h){h=this.jo.get(h);var W=h.Kj;h.oX+=W.totalLength;h.Kj=new hQ;return W}; g.l.xx=function(h){return this.jo.get(h).xx}; g.l.Lq=function(h){return this.jo.get(h).Lq}; g.l.A3=function(h,W,c,V){this.jo.get(h)||P_N(this,h,W);W=this.jo.get(h);if(this.jO){h=bTv(this,h,c);if(V)for(var H=g.e(h),B=H.next();!B.done;B=H.next()){B=B.value;var E=V;B.Wk=E;B.startTime+=E;B.Y+=E;B.N+=E}f$N(this,c.t0,W,h)}else c.Zw?W.VL=c.X$:W.Q3.push(c),W.f4.push(c)}; g.l.ZS=function(h){var W;return((W=this.jo.get(h))==null?void 0:W.pM)||[]}; g.l.Ho=function(){for(var h=g.e(this.jo.values()),W=h.next();!W.done;W=h.next())W=W.value,W.i4&&(W.SL&&W.SL(),W.i4=!1)}; g.l.G0=function(h,W){this.logger.debug(function(){return"[onMediaEnd] formatId: "+W}); var c=this.jo.get(W);N2?c&&!c.xx&&(c.SX.get(h)?c.SX.get(h).g0=!0:c.SX.set(h,{data:new hQ,cz:0,g0:!0}),c.Lq=!0):c&&!c.Lq&&(c.Lq=!0)}; g.l.I2=function(h){if(N2){var W=this.jo.get(h);if(W)for(var c=g.e(W.SX),V=c.next();!V.done;V=c.next()){var H=g.e(V.value);V=H.next().value;H=H.next().value;var B=W.Tt.get(V);if(wP(B[0])){if(!H.g0)continue;var E=H.data,J=0,u=[];B=g.e(B);for(var d=B.next();!d.done;d=B.next()){d=d.value;var G=d.G,Z=c7(E,J,G);J+=G;u.push(new nv(d,Z))}W.Ok.push.apply(W.Ok,g.rN(u))}else if(H.data.totalLength>0||!B[0].range&&H.g0)E=void 0,J=B[0],u=H.cz,B=H.data,J.range||(E=H.g0),E=new nv(App(J,J.W+u,B.totalLength,E),B), H.cz+=E.info.G,W.Ok.push(E);W.SX.get(V).data=new hQ;H.g0&&W.SX.delete(V)}h=this.jo.get(h);if(!h)return[];W=h.Ok;h.Ok=[];c=g.e(W);for(V=c.next();!V.done;V=c.next())h.oX+=V.value.info.G;return W||[]}c=(W=this.jo.get(h))==null?void 0:W.Oh;if(!c)return[];this.HY(h,c);return c.I2()}; g.l.Zk=function(h){if(N2)return mj(this,h);var W,c,V;return!!((c=(W=this.jo.get(h))==null?void 0:W.Oh)==null?0:(V=c.AP())==null?0:V.length)||mj(this,h)}; g.l.HY=function(h,W){for(;mj(this,h);){var c=this.d7(h);var V=h;V=this.jo.get(V).xx&&!vP(this,V);j4(W,c,V&&yRh(this,h))}}; g.l.dE=function(){g.N.prototype.dE.call(this);for(var h=g.e(this.jo.keys()),W=h.next();!W.done;W=h.next())XN(this,W.value);var c;if((c=this.cV)==null?0:c.Aa)for(h=g.e(this.jo.values()),W=h.next();!W.done;W=h.next())W=W.value,W.SX.clear(),W.Tt.clear(),W.Ok.length=0,W.pM.length=0,W.f4.length=0,W.Q3.length=0;this.jo.clear()}; var N2=!1;g.n(pM,g.N);g.l=pM.prototype;g.l.M9=function(){!this.gE()&&this.xhr&&(this.HY(!1),ha(this.dI,this))}; g.l.uN=function(){}; g.l.Bp=function(){if(!this.gE()&&this.xhr){var h=this.W7();h===5?QN(this.D3):this.So(h);this.D3.W.stop();var W;(W=this.gR)==null||W.stop()}}; g.l.W7=function(){var h="";iu(this.D3,this.xhr)&&(h=WND(this.D3,this.xhr));if(h)return this.info.bW.kO(this.du,h),3;this.HY(!0);if(LM(this.D3,this.xhr.status,this.xhr.Ra(),this.info.jg(),this.R6))return 5;if(this.WZ)return 3;kVl(this.D3,this.xhr.QV(),0,this.jg());this.policy.bX&&qPL(this.dI);return 4}; g.l.HY=function(h){var W=this.xhr;if((h||!iu(this.D3,this.xhr))&&W.mH()){h=W.MF();var c=h.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+c}); this.Bv.feed(h)}}; g.l.qR=function(h,W){this.xhr.gy()&&h===21&&v0h(this);this.a9.qR(h,W)}; g.l.IU=function(h,W,c,V){c||(this.E8.IU(V),this.policy.Pd&&h===21&&v0h(this));if(h!==21)return!1;this.E8.XI=!0;h=W.totalLength;c||(this.KE=B7(W,0),W=W.split(1).t2);var H=this.policy.yU,B=this.a9.W[this.KE],E=this.jO.G.get(B);if(H&&E&&(H*=E.info.Vg,h+c!==V&&h0){this.policy.ut&&this.D3.W.stop();h=this.E8.rj();W=this.E8.UA();var c=mhv(this,h);if(!(W>c.lw||c.zW>0&&this.info.nO()>c.zW)){this.Ea=(0,g.aC)();var V;(V=this.gR)==null||V.stop();this.policy.bX&&(V=this.dI,h={qD:Math.round(W*h/1E3),VP:h},V.policy.bX&&(V.zV=h,V.Hh++));this.qK()}}}}; g.l.qK=function(){this.D3.qK()}; g.l.JP=function(h){this.dI.JP(h,this.bd())}; g.l.PM=function(h){this.WZ=!0;this.info.bW.kO(this.du,h.redirectUrl)}; g.l.By=function(h){this.E8 instanceof PP&&this.E8.By(h)}; g.l.oZ=function(h){this.E8 instanceof PP&&this.E8.oZ(h)}; g.l.xn=function(h){var W=h.formatId,c=pT({itag:W.itag,lmt:W.lmt,xtags:W.xtags}),V,H,B=new Y0(((V=h.T5)==null?void 0:V.first)||0,((H=h.T5)==null?void 0:H.DM)||0),E,J;V=new Y0(((E=h.indexRange)==null?void 0:E.first)||0,((J=h.indexRange)==null?void 0:J.DM)||0);this.jO.G.get(c)||(c=h.hU||{},c.mimeType=h.mimeType,c.itag=W.itag,c.lastModified=""+(W.lmt||0),c.xtags=W.xtags,h=this.jO,W=Xg(""),c=Tw(c,null),Mj(h,new Aw(W,c,B,V)))}; g.l.dZ=function(h){this.dI.dZ(h,this.bd())}; g.l.onSnackbarMessage=function(h){if(this.policy.Jc)this.dI.onSnackbarMessage(h)}; g.l.yF=function(h){this.policy.d3&&this.dI.yF(h,this.bd())}; g.l.Vx=function(h){this.Fg=h;this.rl=(0,g.aC)();this.dI.Vx(h)}; g.l.y3=function(h,W,c){this.dI.y3(h,W,c)}; g.l.kH=function(h){h.scope===2&&(this.dD=h);this.dI.kH(h)}; g.l.i_=function(){this.bq=!0;this.dI.i_()}; g.l.M6=function(h){this.policy.Qm&&this.dI.M6(h)}; g.l.IZ=function(h){this.dI.IZ(h,this.bd())}; g.l.OZ=function(h){h.R4===3&&(this.R6=!0);this.dI.OZ(h)}; g.l.xq=function(h){this.dI.xq(h)}; g.l.Zy=function(h){this.dI.Zy(h)}; g.l.canRetry=function(){this.gE();return this.D3.canRetry(!1)}; g.l.dispose=function(){if(!this.gE()){g.N.prototype.dispose.call(this);this.D3.dispose();var h;(h=this.gR)==null||h.dispose();this.So(-1);this.gq()}}; g.l.So=function(h){this.state=h;ha(this.dI,this)}; g.l.jg=function(){return this.info.jg()}; g.l.AD=function(){return this.bq}; g.l.iD=function(){return this.dD}; g.l.A3=function(h,W,c){c.clipId&&(this.clipId=c.clipId);this.policy.W&&!W&&(this.yZ=c.cY);this.JE.A3(h,W,c,0);if(this.policy.Om&&this.Fg&&this.E8 instanceof d6){var V=this.Fg.Ko;this.E8.A3(c.durationMs/1E3,W,V>0&&c.cY+1>=V)}this.JE.jo.get(h).T_=!0}; g.l.G0=function(h,W){this.JE.G0(h,W)}; g.l.SN=function(h){this.requestIdentifier=h}; g.l.I2=function(h){return this.JE.I2(h)}; g.l.ZS=function(h){return this.JE.ZS(h)}; g.l.Zk=function(h){return this.JE.Zk(h)}; g.l.O4=function(){return this.JE.O4()}; g.l.qL=function(){return 1}; g.l.bd=function(){return this.E8.requestNumber}; g.l.ZB=function(){return this.requestIdentifier}; g.l.Ly=function(){return this.du.Ly()}; g.l.H_=function(){this.gq()}; g.l.gq=function(){this.E8.deactivate();var h;(h=this.xhr)==null||h.abort()}; g.l.isComplete=function(){return this.state>=3}; g.l.vn=function(){return this.state===3}; g.l.C$=function(){return this.state===5}; g.l.zd=function(){return this.state===4}; g.l.JW=function(){return this.isComplete()}; g.l.jM=function(){return this.state>=1}; g.l.z7=function(){return this.policy.fR?this.D3.z7():0}; g.l.wh=function(){this.policy.fR&&ha(this.dI,this)}; g.l.bI=function(){return Bup(this.info)}; g.l.KG=function(){return this.D3.KG()}; g.l.Kn=function(){var h=cRQ(this.D3);Object.assign(h,RCD(this.info));h.req="sabr";h.rn=this.bd();var W;if((W=this.xhr)==null?0:W.status)h.rc=this.policy.Oq?this.xhr.status:this.xhr.status.toString();var c;(W=(c=this.xhr)==null?void 0:c.B9())&&(h.msg=W);this.Ea&&(c=mhv(this,this.Ea-this.E8.f_()),h.letm=c.Km,h.mrbps=c.lw,h.mram=c.zW);return h};o0N.prototype.tick=function(h,W){this.ticks[h]=W?window.performance.timing.navigationStart+W:(0,g.aC)()};g.n(Yj,g.h1);g.l=Yj.prototype; g.l.KW=function(h,W,c,V){if(this.policy.T3&&this.policy.W){var H=h.WV||null;H?(suk(this,h.Hk,w6(this,h.startTime,h.Hk),{WV:H,Hk:h.Hk,Di:!!W,Sz:c},this.G),V&&this.G&&this.G.Rg(h.Hk,h.startTime,this.W,(W==null?void 0:W.X)||[],(W==null?void 0:W.W)||[],(W==null?void 0:W.Y)||[],c,(W==null?void 0:W.CT)||0,(W==null?void 0:W.G)||void 0)):this.W===1&&S4(this,5,"noad")}else{var B=!1;this.policy.W&&(B=c?this.DH===h.Hk:this.Pk===h.Hk);if(this.G&&V&&!B){V=[];B=[];var E=[],J=void 0,u=0;W&&(V=W.X,B=W.W,E=W.Y,J= W.G,u=W.CT,this.GV("sdai",{sq:h.Hk,ssvicpns:V.join("."),ssvid:B.join(".")}));this.policy.W&&(c?this.DH=h.Hk:this.Pk=h.Hk);this.G.Rg(h.Hk,h.startTime,this.W,V,B,E,c,u,J)}this.policy.W?c&&(this.W===1&&S4(this,5,"noad"),h.Hk!==((H=this.X)==null?void 0:H.Hk)&&(cwd(this,h,W,c),isNaN(h.startTime)||VgL(this,h.Hk,w6(this,h.startTime,h.Hk),!!W,this.G))):c&&cwd(this,h,W)}}; g.l.Og=function(h,W,c){var V=this.videoTrack.X.index.KR()<=W;this.X={WV:h,Hk:W,Di:c};V&&Ox(this,h,W)}; g.l.d0=function(){this.G&&this.G.d0()}; g.l.GV=function(h,W,c){(h!=="sdai"||this.policy.o4||(c===void 0?0:c))&&this.loader.GV(h,W)}; g.l.Mo=function(h,W){var c=this.videoTrack.X.index.Gj(h);if(c>=0){var V;var H=((V=W.CR.m6(c,2))==null?void 0:V.eR)||"";if(this.policy.W||H)return W.hZ(h,c),g6(this.loader,h,h,c),this.GV("sdai",{cmskpad:1,t:h.toFixed(3),sq:c}),!0}this.GV("sdai",{cmskpad:0,t:h.toFixed(3),sq:c});return!1};g.l=R8k.prototype;g.l.Y0=function(h,W,c){h=h||this.X;if(this.W.has(h)){if(h=this.W.get(h))h.jj=W,h.Cs.push(c)}else W={jj:W,Cs:[],startTimeSecs:0,QM:0,NO:Date.now()},W.Cs.push(c),this.W.set(h,W)}; g.l.yF=function(h,W){var c;if(!((((c=h.Pm)==null?void 0:c.length)||0)<=0)&&(h=h.Pm[0],h.WV)){var V,H,B,E,J,u;c=new H0(((V=h.WV)==null?void 0:V.nP)||0,((H=h.WV)==null?void 0:H.Kez)||0,((B=h.WV)==null?void 0:B.J6)||"",((E=h.WV)==null?void 0:E.identifier)||"",ug4(((J=h.WV)==null?void 0:J.event)||0),(((u=h.WV)==null?void 0:u.nP)||0)*1E3);JwL(this,c,W)}}; g.l.JU=function(h,W){h!==void 0&&this.Hw(h);if(this.X&&(h=this.W.get(this.X),h!=null&&h.jj)){var c={Lf:h.Cs,Z0:Ud(h.jj||"")||void 0,cuepointId:this.X};h.xY&&(c.uH=h.xY);W&&(c.Ke=Pr(W.split(";")[0]),c.sW=W.split(";")[1]||"");h.m0&&(c.m0=h.m0);return c}}; g.l.hZ=function(h,W){this.Hw(h);var c=this.W.get(this.X);c?(this.GV("ssskipad",{cid:this.X,sn:W,mt:h.toFixed(3)}),c.xY=W):this.GV("ssskipadfail",{cid:this.X,sn:W,mt:h.toFixed(3)})}; g.l.qH=function(){for(var h=g.e(this.W.values()),W=h.next();!W.done;W=h.next())W.value.xY=NaN}; g.l.Hw=function(h,W){W&&(this.G=W);if(this.X&&(W=this.W.get(this.X))&&W.startTimeSecs<=h&&h<=W.startTimeSecs+W.QM)return;this.X="";W=g.e(this.W.entries());for(var c=W.next();!c.done;c=W.next()){var V=g.e(c.value);c=V.next().value;V=V.next().value;var H=void 0,B=void 0,E=void 0;if(((H=V)==null?void 0:H.startTimeSecs)<=h&&h<=((B=V)==null?void 0:B.startTimeSecs)+((E=V)==null?void 0:E.QM)){this.X=c;break}}};g.n(VL,g.N);VL.prototype.G3=function(h,W,c){c=c===void 0?{}:c;this.policy.bl=kP(h,c,this.Y,W===void 0?!1:W)};EC.prototype.RA=function(h){var W=this;if(this.policy.ZW){var c=new Set(h);c.size===this.zV.size&&[].concat(g.rN(c)).every(function(V){return W.zV.has(V)})||(this.loader.GV("lwnmow",{itagDenylist:[].concat(g.rN(h)).join(",")}),this.loader.oa(!!c.size),this.T=-1,this.zV=c,Rj(this,this.X),this.CM=!0)}}; EC.prototype.G3=function(h,W,c){c=c===void 0?{}:c;var V=this.policy.bl;this.C.G3(h,W===void 0?!1:W,c);if(V!==this.policy.bl){Rj(this,this.X);Jz(this);var H,B;V>this.policy.bl&&((H=this.G)==null?0:CF(H.info))&&((B=this.nextVideo)==null||!CF(B.info))&&(this.XI=!0)}};Z7.prototype.OO=function(h){this.timestampOffset=h;this.flush()}; Z7.prototype.flush=function(){if(this.X.pos>0){var h={a:this.track.Qr(),u:this.X.Ey(),pd:Math.round(this.Y),ad:Math.round(this.G)},W=this.W;if(W){var c=W.X.info;h.itag=c.itag;c.X&&(h.xtags=c.X);h.sq=W.Hk;h.st=W.startTime;h.sd=W.duration;this.track.policy.QS&&(h.si=W.aR());W.C&&(h.esl=W.W+W.G);W.CU()&&(h.eos=1)}isNaN(this.timestampOffset)||(h.to=this.timestampOffset);var V;if(W=(V=this.track.jx)==null?void 0:V.MU({})){for(var H in W)this.N[H]!==W[H]&&(h["sb_"+H]=W[H]);this.N=W}this.track.GV("sbu", h);this.X.reset();this.buffered=[];this.C=this.G=this.Y=0;this.timestampOffset=this.W=void 0}};qW.prototype.dispose=function(){this.Wk=!0}; qW.prototype.gE=function(){return this.Wk}; g.n(ev,Error);Lp.prototype.skip=function(h){this.offset+=h}; Lp.prototype.LN=function(){return this.offset};g.l=gPT.prototype;g.l.dC=function(){return this.W}; g.l.fQ=function(){return this.W.length?this.W[this.W.length-1]:null}; g.l.Il=function(){this.W=[];Cp(this);Az(this)}; g.l.d7=function(h){this.Rz=this.W.shift().info;h.info.equals(this.Rz)}; g.l.ZS=function(){return g.xw(this.W,function(h){return h.info})}; g.l.Qr=function(){return!!this.C.info.audio}; g.l.isDrm=function(){return!!this.C.info.k9}; g.l.getDuration=function(){return this.C.index.f5()};g.n(wa,q2);g.l=wa.prototype;g.l.onStateChange=function(){this.gE()&&(tD(this.JE,this.formatId),this.X.dispose())}; g.l.Kn=function(){var h=FNT(this.JE,this.formatId),W;var c=((W=this.JE.jo.get(this.formatId))==null?void 0:W.bytesReceived)||0;var V;W=((V=this.JE.jo.get(this.formatId))==null?void 0:V.oX)||0;return{expected:h,received:c,bytesShifted:W,sliceLength:vP(this.JE,this.formatId),isAnyMediaEndReceived:this.JE.Lq(this.formatId)}}; g.l.xT=function(){return 0}; g.l.jW=function(){return!0}; g.l.I2=function(){return this.JE.I2(this.formatId)}; g.l.AP=function(){return[]}; g.l.Zk=function(){return this.JE.Zk(this.formatId)}; g.l.KG=function(){return this.lastError}; g.l.z7=function(){return 0};g.n(Pw,g.N);g.l=Pw.prototype;g.l.Qr=function(){return!!this.X.info.audio}; g.l.fQ=function(){return this.Y.fQ()}; g.l.d7=function(h){this.Y.d7(h);var W;(W=this.Z)!=null&&(W.C.add(h.info.Hk),W.X=j7p(W,W.O5,W.Uq,h,W.X),W.G=h,W.N=(0,g.aC)());this.Vg=Math.max(this.Vg,h.info.X.info.Vg||0)}; g.l.getDuration=function(){return this.X.index.f5()}; g.l.Il=function(){hD(this);this.Y.Il()}; g.l.q7=function(){return this.Y}; g.l.isRequestPending=function(h){return this.G.length?h===this.G[this.G.length-1].info.pM[0].Hk:!1}; g.l.OO=function(h){var W;(W=this.Z)==null||W.OO(h);var c;(c=this.T)==null||c.OO(h)}; g.l.GV=function(h,W){this.loader.GV(h,W)}; g.l.L$=function(){return this.loader.L$()}; g.l.dispose=function(){var h;(h=this.T)==null||h.flush();g.N.prototype.dispose.call(this)};g.n(VM,g.N);VM.prototype.G=function(){this.W++>15||(this.X=!this.X,new Nhh(this.loader,this.policy,this.Yd,this.bW,this.X),this.delay.start())}; g.l=Nhh.prototype;g.l.uN=function(){}; g.l.M9=function(){}; g.l.Bp=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.QV()===this.size)this.loader.GV("rqs",this.getInfo());else{var h="net.connect";this.xhr.status>200?h="net.badstatus":this.xhr.bR()&&(h="net.closed");this.onError(h)}}; g.l.onError=function(h){var W=this;this.loader.handleError(h,this.getInfo());m9("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(c){W.loader.GV("pathprobe",c)},function(c){W.loader.handleError(c.errorCode,c.details)})}; g.l.getInfo=function(){var h=this.timing.wZ();h.shost=o7(this.location.ys);h.pb=this.size;return h};g.n($8,g.N); $8.prototype.S=function(h,W){if(h.S){this.jO.isLive?(h=this.jO.W9&&this.jO.Y?h.X.S0(this.jO.W9,!1):h.X.aG(Infinity),h.dS=this.dS):h=h.X.S0(0,!1);if(this.XI){var c=this.XI;h.dS===0&&(h.C=c.Z)}else h.C=this.T;return h}c=h.W;if(!c.X.Yx())return c.X.Sl()?(h=IB(this.C,h.X.info.Vg,W.X.info.Vg,0),h=c.X.LT(c,h)):h=c.X.L8(c),h;var V=c.N-this.loader.getCurrentTime(),H=!c.range||c.G===0&&c.W===0?0:c.range.length-(c.W+c.G),B=c.X;this.KV(h,V)&&H===0&&(this.jO.isManifestless?B=h.X:(B=c.startTime+VYT,c.G&&(B+=c.duration), VN(h,B),c=h.W,B=c.X));B.Sl()?(H=this.G,W=IB(this.C,B.info.Vg,W.X.info.Vg,V,H.Y.length>0&&H.Z===0&&this.loader.Sg),V=gR(h),h=c.X.LT(c,W),(W=h.G)&&h.pM.length>1&&(V||h.bW.G||h.pM[0].X!==c.X?h=c.X.LT(c,h.pM[0].G):(V=h.pM[h.pM.length-1],B=V.G/W,!V.C&&B<.4&&(h=c.X.LT(c,W-V.G))))):(c.Hk<0&&(W=cJ(c),W.pr=""+h.G.length,this.loader.isSeeking()&&(W.sk="1"),W.snss=c.S,this.loader.GV("nosq",W)),h=B.L8(c));if(this.policy.DH)for(c=g.e(h.pM),W=c.next();!W.done;W=c.next())W.value.type=6;return h}; $8.prototype.KV=function(h,W){if(!gR(h)||!h.X.Yx())return!1;var c=this.G.CM||zfN(h)||W<=this.policy.KH||this.G.XI;this.logger.debug(function(){return"ready to adapt: "+c+", upgrade pending: "+zfN(h)+", health: "+W}); return c}; $8.prototype.dE=function(){g.N.prototype.dE.call(this)}; var VYT=2/24;g.n(Zo,g.N);Zo.prototype.SG=function(h,W,c){var V;var H=((V=this.W)==null?void 0:V.reason)==="m"?"m":this.W&&wxd(this,this.W)?this.W.reason:"a";this.loader.SG(new cw(h,H,c));us(this.loader,W,h,!0)}; Zo.prototype.YM=function(h,W){for(var c=g.e(this.DH),V=c.next();!V.done;V=c.next())if(V.value.id===h)return this.C=this.jO.X[h],M2(this.cV)&&(this.XI=!0),h=new cw(this.C,W?"t":"m"),W&&(this.S=!0),h;this.G=[];return null}; Zo.prototype.G3=function(h,W,c){c=c===void 0?{}:c;this.X.G3(h,W===void 0?!1:W,c)};PM.prototype.setData=function(h,W,c){var V=this;c=c===void 0?{}:c;if(W==null?0:W.hI)this.Un=trk(this,W,c),h.sT=this.bW.sT();if(this.jg())return!0;this.data=h;this.X=saN(h,function(H,B){var E;(E=V.dI)==null||E.Wi(H,B)},W==null?void 0:W.G); if(!this.X)return!1;this.W=g.ob(this.X,aGh);return!0}; PM.prototype.jg=function(){return this.requestType===1}; PM.prototype.nO=function(){var h;return((h=this.dI)==null?void 0:h.nO())||0}; PM.prototype.isDecorated=function(){var h;return!((h=this.data)==null||!h.yV)};J0k.prototype.encrypt=function(h){(0,g.aC)();return this.X.X?qaD(this,h,this.iv):(new g.Hk(this.X.W)).encrypt(h,this.iv)}; J0k.prototype.decrypt=function(h,W){(0,g.aC)();return this.X.X?qaD(this,h,W):(new g.Hk(this.X.W)).decrypt(h,W)};g.n(fN,g.N);fN.prototype.G=function(h,W){if(W){W=W instanceof g.vb?W:bs(this,W);var c;((c=this.X.get(h))==null?void 0:o7(c.location))!==o7(W)&&this.X.set(h,new eCD(W,h))}else this.X.delete(h)}; fN.prototype.load=function(){var h=this,W,c,V,H,B,E,J,u,d,G;return g.P(function(Z){switch(Z.W){case 1:W=h.X.get(0);g.Qp(Z,2);var r;if(r=W&&!h.W)r=o7(W.location),r=h.W===zf(r);if(r){Z.bB(4);break}return g.F(Z,jah(h,h.W?2:0),5);case 5:if(c=Z.X)h.G(0,c),I7(c)&&h.G(1,Yg(c));case 4:g.AN(Z,3);break;case 2:V=g.CU(Z);g.Lx(V);if(!h.W){Z.bB(3);break}h.W=!1;return g.F(Z,h.load(),7);case 7:return Z.return();case 3:if(!h.uB.experiments.xN("html5_onesie_probe_ec_hosts")){Z.bB(0);break}g.Qp(Z,9);H=h;B=H.G;E=3;return g.F(Z, jah(h,1),11);case 11:return B.call(H,E,Z.X),J=h,u=J.G,d=4,g.F(Z,jah(h,2),12);case 12:u.call(J,d,Z.X);g.AN(Z,0);break;case 9:G=g.CU(Z),g.Lx(G),g.zQ(Z)}})}; fN.prototype.S=function(){var h=this,W,c;return g.P(function(V){g.pO(h.Z);W=g.DF(h.uB.experiments,"html5_onesie_prewarm_max_lact_ms");if(xA()>=W)return V.return();(c=h.X.get(0))&&nXk(h,c);g.zQ(V)})}; var xcQ={PGB:0,iNB:1,NKB:2,cvI:3,YrE:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};zCv.prototype.decrypt=function(h){var W=this,c,V,H,B,E,J;return g.P(function(u){switch(u.W){case 1:if(W.X.length&&!W.X[0].isEncrypted)return u.return();W.W=!0;W.KN.Z3("omd_s");c=new Uint8Array(16);$E()?V=new g.Bk(h):H=new g.Hk(h);case 2:if(!W.X.length||!W.X[0].isEncrypted){u.bB(4);break}B=W.X.shift();if(!V){E=H.decrypt(sk(B.buffer),c);u.bB(5);break}return g.F(u,V.decrypt(sk(B.buffer),c),6);case 6:E=u.X;case 5:J=E;for(var d=0;d=4)){var W=Y8(this),c=this.xhr;W.rc=c.status;h&&(W.ab=!0);if(c.B9()){var V="onesie.net";W.msg=c.B9()}else c.status>=400?V="onesie.net.badstatus":c.Ra()?this.iI||(V="onesie.response.noplayerresponse"):V=c.status===204?"onesie.net.nocontent":"onesie.net.connect";V?this.fail(new g.RG(V,W)):(this.Z3("or_fs"),this.E8.He((0,g.aC)(),c.QV(),0),this.So(4),this.nN&&this.GV("rqs",W));this.nN&&this.GV("ombre", "ok."+ +!V);this.Rn=!1;IE(this);Tuh(this.KN);if(!this.nH){this.El.stop();var H;(H=this.IA)==null||H.stop()}var B;if(h=(B=this.KZ)==null?void 0:avd(B))for(B=0;B1E3){var h;(h=this.E8)==null||h.Da((0,g.aC)());h=Y8(this);if(this.uB.gI()&&this.xhr instanceof xj){var W=this.xhr;h.xrs=W.xhr.readyState;h.xpb=W.X.totalLength;h.xdc=W.Y}this.fail(new g.RG("net.timeout",h))}}else(0,g.aC)()-this.E8.X>1E4&&((W=this.E8)==null||W.Da((0,g.aC)()),this.lM());this.isComplete()||this.WN.start()}}; g.l.lM=function(){this.logger.info("Onesie request timed out");this.Rn=!1;if(!IE(this)){var h=Y8(this);h.timeout="1";this.fail(new g.RG("onesie.request",h))}}; g.l.fail=function(h){var W=this;h=uX(h);this.MV?this.lB.Xi(h):(this.qS.reject(h),this.MV=!0);Tuh(this.KN);this.nH||this.El.stop();this.Z3("or_fe");var c,V;(c=this.KZ)==null||(V=avd(c))==null||V.forEach(function(H){W.GV("pathprobe",H)}); this.So(5);this.dispose()}; g.l.isComplete=function(){return this.state>=3}; g.l.zd=function(){return this.state===4}; g.l.JW=function(h){var W,c;return this.isComplete()||!!((W=this.Vj)==null?0:(c=W.get(h))==null?0:c.X)}; g.l.vn=function(){return!1}; g.l.C$=function(){return this.state===5}; g.l.notifySubscribers=function(h){for(var W=0;W102400&&!this.Wn&&(this.Z3("or100k"),this.Wn=!0);if(h.mH()){var W=h.MF(),c=W.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+c}); this.nN&&this.GV("ombrss","len."+c);this.Bv.feed(W)}if(this.Vj)for(var V=g.e(this.Vj.keys()),H=V.next();!H.done;H=V.next()){var B=H.value;h=void 0;(h=this.Vj.get(B))==null||h.Ho();this.notifySubscribers(B)}}catch(E){this.fail(E)}}; g.l.bd=function(){return this.E8.requestNumber}; g.l.ZB=function(h){return this.t_.get(h)};g.n(cT5,g.N);g.l=cT5.prototype;g.l.w8=function(h,W){this.Wk=void 0;qPL(this);rTp(this,h,W)}; g.l.qC=function(h){if(this.X.length===0)return!1;var W=this.X[0];return W instanceof OZ?h===this.loader.getCurrentTime()*1E3:!(W instanceof pM&&EXl(W.info))&&Math.abs(W.bI()-h)<50}; g.l.Yg=function(h){this.W=h;this.Wk=(0,g.aC)()+(h.backoffTimeMs||0)}; g.l.JP=function(h,W){if(h.action===void 0){var c=this.lB.a6();c!==void 0&&this.loader.rf(c)}else if(h.action!==0||!this.Rz)if(h.action===0&&this.policy.qX&&(h.action=2),h.PF==="sabr.malformed_config"&&this.policy.wi>0&&this.yg++0&&(h.action=2),c={},c.reason=h.PF,c.action=h.action,c.rn=W,h.action){case 1:this.policy.W&&this.Z&&this.Z.Ve(void 0, void 0,c);break;case 0:this.Rz=!0;this.videoData.Gw()&&this.policy.W&&this.Z&&this.Z.Ve(void 0,void 0,c,!1);this.loader.cN(c);break;case 2:jcN(h.PF)!=="sabr.config"&&delete c.reason;this.loader.handleError(jcN(h.PF),c,1);break;case 3:this.policy.hI&&((h=this.jO.Z)!=null&&(h.Z=!0),this.loader.handleError("sabr.hostfallback",c))}}; g.l.kH=function(h){h&&(this.loader.GV("sabrctxt",{onsbrctxt:h.type,scp:h.scope,dflt:h.sendByDefault}),h.type&&h.sendByDefault&&this.videoData.Mn.add(h.type),h.scope!==2&&(h.type&&this.videoData.sabrContextUpdates.set(h.type,h),this.lB.kH(h)))}; g.l.i_=function(){}; g.l.dZ=function(h,W){if(h.hV!==void 0&&h.Pc){var c=h.hV/h.Pc;this.audioTrack.S=!1;this.videoTrack.S=!1;if(this.policy.Wk||this.policy.n9||this.policy.vj)this.loader.cH.X=!1;var V=this.loader.zP(c,1);this.policy.Ak&&this.policy.W&&this.loader.Hw(V,W);this.lB.getCurrentTime()!==c&&(W={LR:"sabr_seek",qE:!0,JV:!0},h.seekSource&&(W.seekSource=h.seekSource),BP(this.loader,c+.1,W))}}; g.l.onSnackbarMessage=function(h){this.lB.publish("onSnackbarMessage",h)}; g.l.yF=function(h,W){this.policy.d3&&this.T&&this.loader.yF(h,W)}; g.l.Vx=function(h){h.Ko&&h.qV&&YP(this.jO,h.Ko,h.qV);this.policy.u9&&(h.Y3&&h.dl&&(this.jO.vj=h.Y3/h.dl),h.Bn&&h.ey&&(this.jO.Vz=h.Bn/h.ey));Sy(this.videoData)&&!this.videoData.Pk&&h.qV&&this.loader.zP(h.qV,1E3);h.yn!=null&&this.lB.Fv(h.yn);this.policy.A0&&h.rX&&(h=((0,g.aC)()-h.rX)/1E3,this.loader.kt.c5(1,h))}; g.l.OZ=function(h){this.loader.OZ(h)}; g.l.Tg=function(h){return this.videoData.Mn.has(h)}; g.l.y3=function(h,W,c){this.policy.G&&this.loader.GV("sabrctxtplc",{start:h?h.join("_"):"",stop:W?W.join("_"):"",discard:c?c.join("_"):""});if(h){h=g.e(h);for(var V=h.next();!V.done;V=h.next())this.videoData.Mn.add(V.value)}if(W)for(W=g.e(W),h=W.next();!h.done;h=W.next())h=h.value,this.videoData.Mn.has(h)&&this.videoData.Mn.delete(h);if(c)for(c=g.e(c),W=c.next();!W.done;W=c.next())if(W=W.value,this.videoData.sabrContextUpdates.has(W)&&(this.videoData.sabrContextUpdates.delete(W),W===3&&(this.videoData.MG= "")),this.policy.T&&this.X.length)for(h=g.e(this.X),V=h.next();!V.done;V=h.next())if(V=V.value,!(V instanceof OZ)){var H=void 0;((H=V.dD)==null?void 0:H.type)===W&&(V.dD=void 0)}}; g.l.M6=function(){}; g.l.Li=function(h){this.S=h}; g.l.L4=function(h){this.N=h}; g.l.IZ=function(h,W){cM(this.policy,h,4,W)}; g.l.xq=function(h){if(h==null?0:h.Ih)if(h=h.Ih.rU){h=g.e(h);for(var W=h.next();!W.done;W=h.next())if(W=W.value,W.formatId){var c=this.jO.G.get(pT(W.formatId));c&&c.info&&(c.info.debugInfo=W.debugInfo)}}}; g.l.Zy=function(h){this.lB.publish("reloadplayer",h)}; g.l.Cj=function(){return this.lB.Cj()||""}; g.l.nO=function(){var h=pp(this.audioTrack,!0)*1E3,W=pp(this.videoTrack,!0)*1E3;return Math.min(h,W)}; g.l.Wi=function(h,W){this.loader.GV(h,W)}; g.l.n_=function(h){FbQ(this.loader,z85(this.rE,h))}; g.l.dE=function(){g.N.prototype.dE.call(this);this.W=void 0;rTp(this,!0,"i");this.X=[]};LSh.prototype.xa=function(){this.isSeeking=!0;this.X===1&&z3U(this.Y);this.X===0&&this.WH.zw("transitiondetector");this.N=!1};yT5.prototype.bV=function(h,W){if(this.Y)return NMD(this,W);if(W=Ex(h)){var c=W.X;c&&c.G&&c.X&&(h=h.G.length?h.G[0]:null)&&h.state>=2&&!h.C$()&&h.info.dS===0&&(this.Y=h,this.S=c,this.W=W.info,this.N=this.startTimeSecs=Date.now()/1E3,this.C=this.W.startTime)}return NaN}; yT5.prototype.clear=function(){this.W=this.S=this.Y=null;this.X=this.C=this.N=this.startTimeSecs=NaN;this.G=!1};g.n(vqU,g.N);vqU.prototype.dE=function(){oqh(this);g.N.prototype.dE.call(this)};var pTl=/[?&]cpn=/;g.n(cu,g.N);cu.prototype.flush=function(){var h={};this.W&&(h.pe=this.W);this.X.length>0&&(h.pt=this.X.join("."));this.X=[];return h}; cu.prototype.stop=function(){var h=this,W,c,V;return g.P(function(H){if(H.W==1)return g.Qp(H,2),g.F(H,(W=h.Y)==null?void 0:W.stop(),4);if(H.W!=2)return(c=H.X)&&h.logTrace(c),g.AN(H,0);V=g.CU(H);h.W=wTT(V.message);g.zQ(H)})}; cu.prototype.logTrace=function(h){this.encoder.reset();this.encoder.add(1);this.encoder.add(h.resources.length);for(var W=g.e(h.resources),c=W.next();!c.done;c=W.next()){c=c.value.replace("https://www.youtube.com/s/","");this.encoder.add(c.length);for(var V=0;V=0?h:g.Bu(this.provider),this.Pk?N9f.has(this.Zh)&&(this.X.size||(this.Zh==="PL"?h>=this.W+30:h<=this.XI+30||h>=this.W+1200&&h<=this.XI+86400))&&(g.$J(this,h,"vps",[this.Zh]),this.W=h):["PL","B","S"].indexOf(this.Zh)>-1&&(this.X.size||h>=this.W+30)&&(g.$J(this,h,"vps",[this.Zh]),this.W=h),this.X.size)){this.sequenceNumber===7E3&&g.Lx(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){ES(this,h);var W=this.provider.lB.zT(); W=g.e(W);for(var c=W.next();!c.done;c=W.next())c=c.value,this.GV(c.key,c.value);W=h;c=this.provider.lB.j9();var V=c.droppedVideoFrames||0,H=c.totalVideoFrames||0,B=V-this.JT,E=H&&!this.Ig;V>c.totalVideoFrames||B>5E3?deT(this,"html5.badframedropcount","df."+V+";tf."+c.totalVideoFrames):(B>0||E)&&g.$J(this,W,"df",[B]);this.JT=V;this.Ig=H;this.Z>0&&(g.$J(this,h,"glf",[this.Z]),this.Z=0);B$.isActive()&&(h=B$.oE(),Object.keys(h).length>0&&this.GV("profile",h));this.hI&&RM(this,"lwnmow");this.provider.uB.gI()&& this.provider.j("html5_record_now")&&this.GV("now",{wt:(0,g.aC)()});h={};this.provider.videoData.W&&(h.fmt=this.provider.videoData.W.itag,(W=this.provider.videoData.Y)&&W.itag!==h.fmt&&(h.afmt=W.itag));h.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(h.adcpn=this.adCpn);this.ji&&(h.addocid=this.ji);this.contentCpn&&(h.ccpn=this.contentCpn);this.DH&&(h.cdocid=this.DH);this.provider.videoData.cotn&&(h.cotn=this.provider.videoData.cotn);h.el=cN(this.provider.videoData);h.content_v=sV(this.provider.videoData); h.ns=this.provider.uB.XI;h.fexp=D7L(this.provider.uB.experiments).toString();h.cl=(786081487).toString();(W=this.provider.videoData.adFormat||this.adFormat)&&(h.adformat=W);(W=mS(this.provider.videoData))&&(h.live=W);this.provider.videoData.bC()&&(h.drm=1,this.provider.videoData.C&&(h.drm_system=Kxl[this.provider.videoData.C.flavor]||0),this.provider.videoData.drmProduct&&(h.drm_product=this.provider.videoData.drmProduct));cf()&&this.provider.videoData.N&&(h.ctt=this.provider.videoData.N,h.cttype= this.provider.videoData.TL,this.provider.videoData.mdxEnvironment&&(h.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(h.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.AO&&(h.dai_fallback="1")):this.provider.videoData.H0?h.dai="cs":this.provider.videoData.MX&&(h.dai="disabled");h.seq=this.sequenceNumber++;if(this.provider.videoData.h8){if(W=this.provider.videoData.h8,h&&W)for(W.ns==="3pp"&&(h.ns="3pp"),this.hq.has(W.ns)&& RM(this,"hbps"),W.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=W.shbpslc),this.provider.uB.experiments.xN("html5_use_server_qoe_el_value")&&this.Mn.delete("el"),c=g.e(Object.keys(W)),V=c.next();!V.done;V=c.next())V=V.value,this.Mn.has(V)||(h[V]=W[V])}else h.event="streamingstats",h.docid=this.provider.videoData.videoId,h.ei=this.provider.videoData.eventId;this.isEmbargoed&&(h.embargoed="1");Object.assign(h,this.provider.uB.X);if(W=h.seq)W={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+W,serializedWatchEndpointLoggingContext:this.provider.videoData.YtE},this.serializedHouseBrandPlayerServiceLoggingContext&&(W.serializedHouseBrandPlayerServiceLoggingContext=A3(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(W.playerResponseCpn=this.provider.videoData.playerResponseCpn),Vo.length&&(W.decoderInfo=Vo),this.remoteControlMode&&(W.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(W.remoteConnectedDevices= this.remoteConnectedDevices),W=g.ob(W,Qm4),W=g.i6(W,4),this.X.set("qclc",[W]);h=g.r0("//"+this.provider.uB.Yk+"/api/stats/qoe",h);c=W="";V=g.e(this.X.entries());for(H=V.next();!H.done;H=V.next())B=g.e(H.value),H=B.next().value,B=B.next().value,E=void 0,(E=B)!=null&&E.join&&(H="&"+H+"="+B.join(","),H.length>100?c+=H:W+=H);EM4(this,h+W,c.replace(/ /g,"%20"))}this.X.clear()}}; g.l.oa=function(h){this.hI=h}; g.l.kM=function(){if(this.provider.videoData.C){var h=this.provider.videoData.C;RM(this,"eme-"+(h.keySystemAccess?"final":cx(h)?"ms":sd(h)?"ytfp":$a(h)?"safarifp":"nonfinal"))}}; g.l.K$=hN(53);g.l.oD=function(h){this.isEmbargoed=h}; g.l.rS=hN(30);g.l.iC=hN(36);g.l.onPlaybackRateChange=function(h){var W=g.Bu(this.provider);h&&h!==this.bX&&(g.$J(this,W,"rate",[h]),this.bX=h);this.Pk||this.reportStats(W)}; g.l.Vs=hN(24);g.l.getPlayerState=function(h){if(g.Y(h,128))return"ER";if(g.Y(h,2048))return"B";if(g.Y(h,512))return"SU";if(g.Y(h,16)||g.Y(h,32))return"S";if(h.isOrWillBePlaying()&&g.Y(h,64))return"B";var W=XWU[i1(h)];g.uJ(this.provider.uB)&&W==="B"&&this.provider.lB.getVisibilityState()===3&&(W="SU");W==="B"&&g.Y(h,4)&&(W="PB");return W}; g.l.dE=function(){g.N.prototype.dE.call(this);g.dJ(this.Wk);g.dJ(this.Sx)}; g.l.zt=function(h){this.isOffline=h;g.$J(this,g.Bu(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.l.GV=function(h,W,c){var V=this.iX.indexOf(h)!==-1;V||this.iX.push(h);if(!c||!V){var H=typeof W!=="string"?En(W):W;H=ZQU(H);if(!c&&!/^t[.]/.test(H)){var B=g.Bu(this.provider)*1E3;H="t."+B.toFixed()+";"+H}Hu(this,"ctmp",h+":"+H);this.logger.debug(function(){return"ctmp "+h+" "+H}); RZl(this);return B}}; g.l.hX=function(h,W,c){this.C={RqN:Number(this.GV("glrem",{nst:h.toFixed(),rem:W.toFixed(),ca:+c})),QO:h,PTB:W,isAd:c}}; g.l.T7=function(h,W,c){g.$J(this,g.Bu(this.provider),"ad_playback",[h,W,c])}; g.l.Y_=function(h,W){var c=g.Bu(this.provider)*1E3;Hu(this,"daism","t."+c.toFixed(0)+";smw."+(h*1E3).toFixed(0)+";smo."+(W*1E3).toFixed(0))}; g.l.resume=function(){var h=this;isNaN(this.Wk)?J7L(this):this.Wk=g.Jc(function(){h.reportStats()},1E4)}; var es={},XWU=(es[5]="N",es[-1]="N",es[3]="B",es[0]="EN",es[2]="PA",es[1]="PL",es[-1E3]="ER",es[1E3]="N",es),N9f=new Set(["PL","B","S"]),Vo=[];g.n(g.dK,g.N);g.l=g.dK.prototype;g.l.initialize=function(h,W,c){this.logger.debug(function(){return"Initialized, t="+h}); h=h||0;this.policy.X||(W=LMv(this.X),ffD(this.lB,new cw(W.video,W.reason)),this.lB.zG(new cw(W.audio,W.reason)));this.policy.X&&BM(this);this.jO.isManifestless&&Ol4(this.C);this.S&&feQ(this.S,this.videoTrack.X);W=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var V=!this.jO.isManifestless;this.policy.GB&&(V=V||this.jO.N$);if(!this.policy.zV||this.policy.qU)this.currentTime=V?h:W;this.policy.Wk&&this.seek(this.getCurrentTime(),{}).Mv(function(){}); if(this.policy.X){var H;((H=this.T)==null?0:WSk(H,this.Cj()||""))&&eZU(this)&&afU(this,this.videoTrack)&&afU(this,this.audioTrack)&&(xNU(this.W,this.T),this.policy.C&&joN(this))}else this.Pk&&(zZp(this,this.videoTrack),zZp(this,this.audioTrack),MrL(this.Pk),delete this.Pk);c?(Lbv(this,!1),g.pO(this.Y8)):(c=this.getCurrentTime()===0,EZ(this.C,this.videoTrack,this.videoTrack.X,c),EZ(this.C,this.audioTrack,this.audioTrack.X,c),this.policy.X&&ssk(this.W,!0),this.policy.Wk||this.seek(this.getCurrentTime(), {}).Mv(function(){}),this.timing.tick("gv")); (this.jO.W9||this.jO.v5||this.jO.DH||this.jO.hI||this.jO.Sx)&&this.lB.DG(this.jO)}; g.l.resume=function(){if(this.isSuspended||this.Sg){this.logger.debug("Resumed.");this.Pq=this.Sg=this.isSuspended=!1;try{this.bV()}catch(h){g.Qq(h)}}}; g.l.Hd=function(){return!this.policy.hq}; g.l.Ee=function(h,W){h=h===void 0?!1:h;W=W===void 0?!1:W;this.logger.debug("detaching media source");Uep(this);this.lB.ul()&&(this.N=NaN);h?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.mW&&this.GV("loader",{setsmb:1}),this.policy.DH=!0,this.Il()):(Lbv(this,!1),W||this.Il())}; g.l.setAudioTrack=function(h,W,c){c=c===void 0?!1:c;if(!this.gE()){var V=!isNaN(W);c&&V&&(this.audioTrack.Wk=Date.now(),this.policy.Lj&&(this.Ef=!0));if(this.policy.X){var H=this.Y.YM(h.id,V);this.logger.debug(function(){return"Logging new audio format: "+H.X.info.id}); this.lB.zG(H)}else{var B=e8v(this.X,h.id,V);this.logger.debug(function(){return"Logging new audio format: "+B.audio.info.id}); this.lB.zG(new cw(B.audio,B.reason))}V?(this.hI=Date.now(),c=this.audioTrack.X.index.Gj(W),this.GV("setAudio",{id:h.id,cmt:W,sq:c}),c>=0&&(h=this.policy.IP?c+1:c,this.policy.X&&this.w8(!0,"mosaic"),Ij(this.audioTrack,h,NaN,NaN),!this.policy.Qj&&this.jO.isLive&&Iu(this.jO,h,!1))):this.lB.TP()}}; g.l.setPlaybackRate=function(h){h!==this.Z.getPlaybackRate()&&this.Z.setPlaybackRate(h)}; g.l.hB=function(h){var W=this.W.S;this.W.Li(h);this.GV("scfidc",{curr:pT(W),"new":pT(h)});h&&pT(h)!==pT(W)&&(this.w8(!0,"caption change"),this.bV())}; g.l.dQ=function(h){this.W.L4(h)}; g.l.SG=function(h){var W=h.X.info.Qr();this.logger.debug(function(){return"New "+(W?"audio":"video")+" format from SABR: "+v_(h.X.info)}); W?this.lB.zG(h):ffD(this.lB,h)}; g.l.n_=function(h){k0(h.pM[h.pM.length-1])&&FbQ(this,z85(this.X,h.pM[0].X))}; g.l.qN=function(){return this.lB.qN()}; g.l.Tn=function(){return this.lB.Tn()}; g.l.OZ=function(h){this.lB.B().gI()&&this.GV("sps",{status:h.R4||""});if(h.R4===1)this.lB.videoData.Ie=0;else if(h.R4===2||h.R4===3){var W=!1;if(h.R4===3){W=this.lB.Ga();var c;this.U8=(c=h.hqI)!=null?c:Infinity;this.lB.videoData.Ie=W+1;(W=dv(this))&&this.Ek(!0)}this.lB.fY(!0,W)}}; g.l.HJ=function(){return this.lB.HJ()}; g.l.wS=function(){return this.lB.wS()}; g.l.D_=function(h){this.lB.D_(h)}; g.l.MKg=function(){var h,W=(h=this.lB.yl())==null?void 0:h.getCurrentTime();W?this.lB.GV("rms",{cta:W}):g.pO(this.RR)}; g.l.bV=function(){MbD(this);if(this.KM&&Hc(this.KM)&&!this.KM.j5()&&(!this.policy.zV||isFinite(this.getCurrentTime()))){var h=bM(this.videoTrack);h=this.policy.EK&&h&&h.CU();this.jO.isManifestless&&this.jO.Y&&vJ(this.jO)?(this.N=vJ(this.jO),this.KM.I3(this.N)):Oj(this.jO)&&!h?isNaN(this.N)?(this.N=this.getCurrentTime()+3600,this.KM.I3(this.N)):this.N<=this.getCurrentTime()+1800&&(this.N=Math.max(this.N+1800,this.getCurrentTime()+3600),this.KM.I3(this.N)):this.KM.isView||(h=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.N)||this.N!==h)&&h>0&&(this.KM.I3(h),this.N=h))}if(!this.gE())if(tw(this.jO)&&this.jO.C$()){var W=this.jO;this.handleError("manifest.net.retryexhausted",W.rE?{rc:W.HH}:{rc:W.HH.toString()},1)}else if(this.policy.X)a:{try{dNl(this.W);this.jO.isManifestless&&this.policy.C&&sx(this.cH);var c;((c=this.KM)==null?0:Ri(c))&&this.rk();ssk(this.W)}catch(E){g.Lx(E);W=E;if(W.message.includes("changeType")){this.GV("ctype",{exp:W.name,msg:W.message,s:W.stack});break a}this.handleError("fmt.unplayable", {exp:W.name,msg:W.message,s:W.stack,trg:"sabrslicerqt"},1)}hsv(this);g.pO(this.rE)}else if(!this.jO.W||!ilN(this.videoTrack)&&!ilN(this.audioTrack)||(this.videoTrack.C||this.audioTrack.C)&&this.policy.uW?c=!1:(this.Il(),this.lB.seekTo(Infinity,{LR:"checkLoaderTracksSync",zP:!0}),c=!0),!c){MbD(this);this.jO.isManifestless&&(KIh(this.videoTrack),KIh(this.audioTrack),sx(this.cH),(c=Ex(this.videoTrack))&&c.X&&(c=c.X.G&&!this.policy.GA,this.GV(c===this.policy.S.YC?"strm":"strmbug",{strm:c,sfmp4:this.policy.S.YC, dfs:this.policy.GA},!0)));if(this.KM)this.rk();else if(this.policy.Y){var V;c=!1;if(this.policy.T$){var H;h=g.e([this.videoTrack,this.audioTrack]);for(H=h.next();!H.done;H=h.next()){var B=H.value;for(H=Ex(B);H&&B.fQ()!==bM(B);H=Ex(B))B.d7(H);c=c||!!H}}else(W=Ex(this.videoTrack))&&this.videoTrack.d7(W),(V=Ex(this.audioTrack))&&this.audioTrack.d7(V);vw(this.videoTrack)&&vw(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(W||V||c)&&k8(this)}Qo4(this);EZ(this.C,this.videoTrack, this.videoTrack.X,!1);EZ(this.C,this.audioTrack,this.audioTrack.X,!1);this.policy.K8||PcN(this,this.videoTrack,this.audioTrack);va5(this.C,this.videoTrack,this.audioTrack);va5(this.C,this.audioTrack,this.videoTrack);hsv(this);this.S&&(W=this.S,W.Y?(V=W.N+W.policy.aX,W.G||(V=Math.min(V,W.startTimeSecs+W.policy.h2)),W=Math.max(0,V*1E3-Date.now())):W=NaN,isNaN(W)||g.pO(this.iX,W));g.pO(this.rE)}}; g.l.cN=function(h){this.lB.cN(h)}; g.l.rk=function(){var h=this;if(this.KM){var W=this.KM.X,c=this.KM.W;HzN(this,this.audioTrack);HzN(this,this.videoTrack);var V=TeQ(this);if(V){if(this.policy.Jo){if(!W.w1()){var H=Ex(this.audioTrack);if(H){if(!up(this,this.audioTrack,W,H.info))return;tbd(this,this.audioTrack,W,H)}}if(!c.w1()&&(H=Ex(this.videoTrack))){if(!up(this,this.videoTrack,c,H.info))return;tbd(this,this.videoTrack,c,H)}}this.Wk||(this.Wk=(0,g.aC)(),this.logger.debug(function(){return"Appends pause start "+h.Wk+" reason "+V}), this.policy.G&&this.GV("apdps",{r:V}))}else if(this.Wk&&(bQL(this,this.Wk),this.Wk=0),Ne5(this),H=!1,IfD(this,this.videoTrack,c)&&(H=!0,YwL(this.timing),DhT(this.timing)),this.KM&&!this.KM.xx()&&(IfD(this,this.audioTrack,W)&&(H=!0,OTQ(this.timing),w0Q(this.timing)),!this.gE()&&this.KM))!this.policy.hq&&vw(this.videoTrack)&&vw(this.audioTrack)&&Hc(this.KM)&&!this.KM.j5()&&(c=!1,c=bM(this.audioTrack).X,c=c===this.jO.X[c.info.id])&&(this.logger.debug("Setting EOS"),mq5(this.KM),UXd(this.schedule),this.PX("e")), H&&!this.KM.isAsync()&&k8(this)}}; g.l.PX=function(h){if(this.policy.a$&&this.jO.isManifestless){var W=this.videoTrack.X;if(W){var c=W.index.KR(),V=-1,H=-1;W.index instanceof Gw&&(V=W.index.GJ(),H=W.index.f5());this.lB.PX(h,c,V,H)}}}; g.l.PT=function(h){var W,c=h===((W=this.KM)==null?void 0:W.X)?this.audioTrack:this.videoTrack,V;if((V=Ex(c))==null?0:V.isLocked){if(this.lB.B().gI()){var H;this.GV("eosl",{ounlock:(H=Ex(c))==null?void 0:H.info.aR()})}var B;wN5(this,h===((B=this.KM)==null?void 0:B.X))}var E;if(this.policy.Lj&&h===((E=this.KM)==null?void 0:E.X)&&this.Ak){W=this.Ak-this.getCurrentTime();var J;this.lB.GV("asl",{l:W,xtag:(J=bM(this.audioTrack))==null?void 0:J.X.info.X});this.Ef=!1;this.Ak=0}h.jl()&&h.M$().length===0&& (h.rq(),this.KM&&!this.KM.jl()&&(this.lB.B().gI()&&this.lB.GV("rms",{ld:"seek"}),this.KM.N=performance.now(),this.lB.YI(),this.lB.B().gI()&&g.pO(this.RR)));var u;(u=c.T)!=null&&rR(u,0);this.policy.Zn?JJ(this):this.bV()}; g.l.qfW=function(h){if(this.KM){var W=bM(h===this.KM.X?this.audioTrack:this.videoTrack);if(h=h.rh())for(var c=0;c 5&&h.XI.shift();W=W.Hk;var J;if((J=this.lB.getVideoData())==null?0:J.enableServerStitchedDai)J=FIh(this.audioTrack,W),c=FIh(this.videoTrack,W),J!==0&&c!==0&&J!==c&&this.handleError("ssdai.avsync",{sq:W,a:J,v:c},0)}}; g.l.Og=function(h,W,c,V){h.info.video&&this.G.Og(W,c,V)}; g.l.RA=function(h){this.X.RA(h)}; g.l.gx=hN(12);g.l.Y2=function(){if(g.Y(this.lB.getPlayerState(),8)){var h,W,c=(W=(h=this.lB.yl())==null?void 0:h.getCurrentTime())!=null?W:this.lB.getCurrentTime(),V;(V=this.uW)==null||KSh(V,c)}var H;(H=this.qU)==null||g.pO(H)}; g.l.Bt=function(){return this.videoTrack.S||this.audioTrack.S}; g.l.seek=function(h,W){if(this.gE())return UL();if(this.Bt())return UL("seeking to head");if(this.policy.Wk&&!isFinite(h))return Au7(this.cH),g.AF(Infinity);MbD(this);BM(this);this.policy.X||Qo4(this,h);this.KM&&this.KM.X&&this.KM.W&&!this.lB.getVideoData().a$&&(this.KM.X.isLocked()||this.KM.W.isLocked())&&this.lB.TP({reattachOnLockedBuffer:1,vsb:""+this.KM.W.isLocked(),asb:""+this.KM.X.isLocked()});var c=this.getCurrentTime(),V=this.cH.seek(h,W);if(!this.policy.zV||this.policy.qU)this.currentTime= V;kj(this.G,h,c,this.policy.Uk&&!W.qE);k8(this);return g.AF(V)}; g.l.qC=function(h){return this.policy.X&&this.W.qC(h)}; g.l.Tg=function(h){return this.W.Tg(h)}; g.l.w8=function(h,W){this.W.w8(h,W)}; g.l.getCurrentTime=function(){if(this.policy.zV){var h=this.FA()||0;return this.lB.getCurrentTime(!0)-h}return this.currentTime}; g.l.N7=function(){return this.audioTrack.X.info}; g.l.Fy=function(){return this.videoTrack.X.info}; g.l.PJ=function(){return this.audioTrack.X.info.eO}; g.l.vJ=function(){return this.videoTrack.X.info.eO}; g.l.dE=function(){try{this.Ee(),hD(this.audioTrack),hD(this.videoTrack),D7(this.audioTrack),D7(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.N.prototype.dE.call(this)}catch(h){g.Qq(h)}}; g.l.handleError=function(h,W,c){c=c===void 0?0:c;var V=Jp(c);h==="fmt.unplayable"&&this.jO.isLive&&(this.policy.Jo=!1,pv(this.jO));W=new g.RG(h,W,c);g.EI(this);En(W.details);this.lB.handleError(W);h!=="html5.invalidstate"&&W.errorCode!=="fmt.unplayable"&&h!=="fmt.unparseable"&&V&&this.dispose()}; g.l.MU=function(){var h=bM(this.audioTrack),W=bM(this.videoTrack);h={lct:this.getCurrentTime().toFixed(3),lsk:this.cH.isSeeking(),lmf:this.X.X.isLocked(),lbw:mI(this.schedule).toFixed(3),lhd:tg(this.schedule).toFixed(3),lst:((this.schedule.S.Jt()||0)*1E9).toFixed(3),laa:h?h.aR():"",lva:W?W.aR():"",lar:this.audioTrack.W?this.audioTrack.W.aR():"",lvr:this.videoTrack.W?this.videoTrack.W.aR():"",laq:""+mh(this.audioTrack),lvq:""+mh(this.videoTrack)};this.KM&&!this.KM.xx()&&this.KM.X&&this.KM.W&&(h.lab= oG(this.KM.X.M$()),h.lvb=oG(this.KM.W.M$()));this.Wk&&(h.lapt=((0,g.aC)()-this.Wk).toFixed(0),h.lapr=TeQ(this));this.Nn&&(h.lapmabht=((0,g.aC)()-this.Nn).toFixed(0),h.lapmabh=cP(this,this.audioTrack).toFixed(0));this.Rz&&(h.lapmvbht=((0,g.aC)()-this.Rz).toFixed(0),h.lapmvbh=cP(this,this.videoTrack).toFixed(0));this.CM&&(h.lapsdai=((0,g.aC)()-this.CM).toFixed(0));return h}; g.l.Il=function(){try{this.policy.X&&this.W.w8(!1,"pending"),this.audioTrack.Il(),this.videoTrack.Il()}catch(h){g.Qq(h)}this.policy.Y=""}; g.l.DB=function(){return pz(this.Z)}; g.l.GV=function(h,W,c){this.lB.GV(h,W,c===void 0?!1:c)}; g.l.Cj=function(){return this.lB.Cj()}; g.l.zP=function(h,W){h/=W;isNaN(this.timestampOffset)&&RSk(this,h-Math.min(h,this.policy.ZC));return(h-this.timestampOffset)*W}; g.l.FA=function(){return this.timestampOffset}; g.l.isSeeking=function(){return this.cH.isSeeking()}; g.l.d0=function(){this.G.d0()}; g.l.G3=function(h,W,c){W=W===void 0?!1:W;c=c===void 0?{}:c;this.policy.X?this.Y.G3(h,W,c):this.X.G3(h,W,c)}; g.l.Mo=function(h,W){if(this.XI&&this.G.Mo(h,this.XI)){if(this.policy.Ak&&this.policy.W){var c=this.videoTrack.X.index.Gj(h),V;(V=this.DH)==null||V.hZ(h,c)}RSk(this,this.timestampOffset-W);k8(this);this.policy.W&&(pv(this.jO),D7(this.audioTrack),D7(this.videoTrack),this.Il());return!0}W=this.videoTrack.X.index.Gj(h);this.handleError("ad.skipfailed",{dec:!!this.XI,t:h.toFixed(3),sq:W});return!1}; g.l.getManifest=function(){return this.jO}; g.l.isOffline=function(){return!!this.lB.getVideoData().cotn}; g.l.kc=function(h,W){this.lB.kc(h,W)}; g.l.OH=function(h){if(this.policy.X)this.W.w8(!0,"utc"),this.bV();else{var W=this.lB.getVideoData().gp;if(W){var c=this.C;c.gS=h;c.gp=W;GM(this)}}}; g.l.rf=function(h){this.videoTrack.S=!1;this.audioTrack.S=!1;this.cH.X=!1;this.lB.rf(h)}; g.l.SF=function(h){this.cH.SF(h-this.FA())}; g.l.zX=function(){this.lB.zX()}; g.l.Ek=function(h){h!==this.policy.Tj&&((this.policy.Tj=h)||this.bV())}; g.l.TP=function(h){this.lB.TP(h)}; g.l.oa=function(h){this.lB.oa(h)}; g.l.Y0=function(h,W,c){var V;(V=this.DH)==null||V.Y0(h,W,c)}; g.l.Hw=function(h,W){var c;(c=this.DH)==null||c.Hw(h,W)}; g.l.JU=function(h){var W;return(W=this.DH)==null?void 0:W.JU(void 0,h)}; g.l.Ga=function(){return this.lB.Ga()}; g.l.yF=function(h,W){if(this.policy.d3){var c;(c=this.DH)==null||c.yF(h,W)}};g.l=g.GS.prototype;g.l.fZ=function(h,W,c,V,H,B){return this.CR.fZ(h,W,c,V,H,B)}; g.l.ai=function(h,W,c,V,H,B){return this.CR.ai(h,W,c,V,H,B)}; g.l.Ip=function(h){return this.CR.Ip(h)}; g.l.dM=function(h){this.CR.dM(h)}; g.l.Ve=function(h,W,c,V){return this.CR.Ve(h,W,c,V)}; g.l.d0=function(){this.CR.d0()}; g.l.hZ=function(h,W){this.CR.hZ(h,W)}; g.l.qH=function(){this.CR.qH()}; g.l.OF=hN(56);g.l.kO=function(h,W,c){this.CR.kO(h,W,c)}; g.l.sj=hN(59);g.l.Rg=function(h,W,c,V,H,B,E,J,u){this.CR.Rg(h,W,c,V,H,B,E,J,u)}; g.l.qg=function(h){this.CR.qg(h)}; g.l.EZ=function(h){return this.CR.EZ(h)}; g.l.Im=function(h){return this.CR.Im(h)};g.n(Z6,g.h1);g.n(rK,Z6);rK.prototype.N=function(h,W){if(h&&W){var c=Number(j3(h,"cpi"))*1+1;isNaN(c)||c<=0||cthis.G&&(this.G=c,g.GF(this.X)||(this.X={},this.Y.stop(),this.W.stop())),this.X[W]=h,g.pO(this.W))}}; rK.prototype.C=function(){for(var h=g.e(Object.keys(this.X)),W=h.next();!W.done;W=h.next()){var c=W.value;W=this.publish;for(var V=this.G,H=g.BA(this.X[c]),B=[],E=g.e(H[6].split("&")),J=E.next();!J.done;J=E.next())J=J.value,J.indexOf("cpi=")===0?B.push("cpi="+V.toString()):J.indexOf("ek=")===0?B.push("ek="+g.Ak(c)):B.push(J);H[6]="?"+B.join("&");c="skd://"+H.slice(2).join("");H=c.length*2;V=new Uint8Array(H+4);V[0]=H%256;V[1]=(H-V[0])/256;for(H=0;H0)for(var c=g.e(this.X),V=c.next();!V.done;V=c.next())if(W===V.value.info.cryptoPeriodIndex){W=!0;break a}W=!1}if(!W){W=(0,g.aC)();a:{c=h.cryptoPeriodIndex;if(!isNaN(c)){V=g.e(this.G.values());for(var H=V.next();!H.done;H=V.next())if(Math.abs(H.value.cryptoPeriodIndex-c)<=1){c=!0;break a}}c=!1}c?(c=h.X,c=Math.max(0,Math.random()*((isNaN(c)?120:c)-30))*1E3):c=0;this.publish("log_qoe",{wvagt:"delay."+c,cpi:h.cryptoPeriodIndex,reqlen:this.X.length}); c<=0?GMU(this,h):(this.X.push({time:W+c,info:h}),g.pO(this.W,c))}}; qs.prototype.dE=function(){this.X=[];Z6.prototype.dE.call(this)};var zD={},lop=(zD.DRM_TRACK_TYPE_AUDIO="AUDIO",zD.DRM_TRACK_TYPE_SD="SD",zD.DRM_TRACK_TYPE_HD="HD",zD.DRM_TRACK_TYPE_UHD1="UHD1",zD);g.n(qZU,g.N);g.n(jEU,g.h1);g.l=jEU.prototype;g.l.a4=function(h){var W=this;if(!(this.gE()||h.size<=0)){var c={};h.forEach(function(V,H){var B=Vs(W.W)?H:V;H=new Uint8Array(Vs(W.W)?V:H);Vs(W.W)&&bND(H);V=g.i6(H,4);bND(H);H=g.i6(H,4);W.X[V]?W.X[V].status=B:W.X[H]?W.X[H].status=B:W.X[V]={type:"",status:B};Ps4(W,W.X[V].type,c)}); FKk(this,",");xJ(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.l.error=function(h,W,c,V){this.gE()||(this.publish("licenseerror",h,W,c,V),h==="drm.provision"&&(h=(Date.now()-this.N)/1E3,this.N=NaN,this.publish("ctmp","provf",{et:h.toFixed(3)})));Jp(W)&&this.dispose()}; g.l.shouldRetry=function(h,W){return!h&&this.requestNumber===W.requestNumber}; g.l.dE=function(){this.X={};g.h1.prototype.dE.call(this)}; g.l.MU=function(){var h={ctype:this.Z.contentType||"",length:this.Z.initData.length,requestedKeyIds:this.Pk,cryptoPeriodIndex:this.cryptoPeriodIndex};this.G&&(h.keyStatuses=this.X);return h}; g.l.getInfo=function(){var h=this.Y.join();if(lp(this)){var W=new Set,c;for(c in this.X)this.X[c].status!=="usable"&&W.add(this.X[c].type);h+="/UKS."+Array.from(W)}return h+="/"+this.cryptoPeriodIndex}; g.l.Ly=function(){return this.url};g.n(j6,g.N);g.l=j6.prototype;g.l.vT=function(h){if(this.C){var W=h.messageType||"license-request";this.C(new Uint8Array(h.message),W)}}; g.l.a4=function(){this.S&&this.S(this.X.keyStatuses)}; g.l.onClosed=function(){this.gE()||g.bW("xboxone")&&this.G&&this.G("closedShouldNotRetry")}; g.l.Ml=function(h){this.C&&this.C(h.message,"license-request")}; g.l.x3=function(h){if(this.G){if(this.W){var W=this.W.error.code;h=this.W.error.systemCode}else W=h.errorCode,h=h.systemCode;this.G("t.prefixedKeyError;c."+W+";sc."+h,W,h)}}; g.l.Iu=function(){this.N&&this.N()}; g.l.update=function(h){var W=this;if(this.X)return this.X.update(h).then(null,N1(function(c){Nvh(W,"t.update",c)})); this.W?this.W.update(h):this.element.addKey?this.element.addKey(this.Z.keySystem,h,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.Z.keySystem,h,this.initData,this.sessionId);return iW()}; g.l.dE=function(){this.X&&(this.T?this.X.close().catch(g.Lx):this.X.close());this.element=null;g.N.prototype.dE.call(this)};g.n(aM,g.N);g.l=aM.prototype;g.l.setServerCertificate=function(){return this.W.setServerCertificate?this.X.flavor==="widevine"&&this.X.ut?this.W.setServerCertificate(this.X.ut):Hx(this.X)&&this.X.Rz?this.W.setServerCertificate(this.X.Rz):null:null}; g.l.createSession=function(h,W){var c=h.initData;if(this.X.keySystemAccess){W&&W("createsession");var V=this.W.createSession();sd(this.X)?c=v8d(c,this.X.Rz):Hx(this.X)&&(c=d9U(c)||new Uint8Array(0));W&&W("genreq");h=V.generateRequest(h.contentType,c);var H=new j6(null,null,null,V,null,this.S);h.then(function(){W&&W("genreqsuccess")},N1(function(E){Nvh(H,"t.generateRequest",E)})); return H}if(cx(this.X))return o8T(this,c);if($a(this.X))return m9T(this,c);if((V=this.element)==null?0:V.generateKeyRequest)this.element.generateKeyRequest(this.X.keySystem,c);else{var B;(B=this.element)==null||B.webkitGenerateKeyRequest(this.X.keySystem,c)}return this.Y=new j6(this.element,this.X,c,null,null,this.S)}; g.l.DD=function(h){var W=pMT(this,h);W&&W.Ml(h)}; g.l.b6=function(h){var W=pMT(this,h);W&&W.x3(h)}; g.l.f0=function(h){var W=pMT(this,h);W&&W.Iu(h)}; g.l.getMetrics=function(){if(this.W&&this.W.getMetrics)try{var h=this.W.getMetrics()}catch(W){}return h}; g.l.dE=function(){this.G=this.W=null;var h;(h=this.Y)==null||h.dispose();h=g.e(Object.values(this.N));for(var W=h.next();!W.done;W=h.next())W.value.dispose();this.N={};g.N.prototype.dE.call(this);delete this.element};g.l=e6.prototype;g.l.get=function(h){h=this.findIndex(h);return h!==-1?this.values[h]:null}; g.l.remove=function(h){h=this.findIndex(h);h!==-1&&(this.keys.splice(h,1),this.values.splice(h,1))}; g.l.removeAll=function(){this.keys=[];this.values=[]}; g.l.set=function(h,W){var c=this.findIndex(h);c!==-1?this.values[c]=W:(this.keys.push(h),this.values.push(W))}; g.l.findIndex=function(h){return g.af(this.keys,function(W){return g.OI(h,W)})};g.n(OND,g.h1);g.l=OND.prototype;g.l.Xik=function(h){this.fU({onecpt:1});h.initData&&D9v(this,new Uint8Array(h.initData),h.initDataType)}; g.l.S5N=function(h){this.fU({onndky:1});D9v(this,h.initData,h.contentType)}; g.l.DE=function(h){this.fU({onneedkeyinfo:1});this.uB.j("html5_eme_loader_sync")&&(this.S.get(h.initData)||this.S.set(h.initData,h));g8D(this,h)}; g.l.PC=function(h){this.G.push(h);zS(this)}; g.l.createSession=function(h){var W=kM4(this)?pJQ(h):g.i6(h.initData);this.W.get(W);this.DH=!0;h=new jEU(this.videoData,this.uB,h,this.drmSessionId);this.W.set(W,h);h.subscribe("ctmp",this.jP,this);h.subscribe("keystatuseschange",this.a4,this);h.subscribe("licenseerror",this.qw,this);h.subscribe("newlicense",this.c_,this);h.subscribe("newsession",this.yO,this);h.subscribe("sessionready",this.wl,this);h.subscribe("fairplay_next_need_key_info",this.ou,this);this.uB.j("html5_enable_vp9_fairplay")&&h.subscribe("qualitychange", this.S6,this);h.subscribe("sabrlicenseconstraint",this.BWg,this);QEv(h,this.Y)}; g.l.c_=function(h){this.gE()||(this.fU({onnelcswhb:1}),h&&!this.heartbeatParams&&(this.heartbeatParams=h,this.publish("heartbeatparams",h)))}; g.l.yO=function(){this.gE()||(this.fU({newlcssn:1}),this.G.shift(),this.DH=!1,zS(this))}; g.l.wl=function(){if(cx(this.X)&&(this.fU({onsnrdy:1}),this.Nn--,this.Nn===0)){var h=this.XI,W,c;(W=h.element)==null||(c=W.msSetMediaKeys)==null||c.call(W,h.G)}}; g.l.a4=function(h){if(!this.gE()){!this.mW&&this.videoData.j("html5_log_drm_metrics_on_key_statuses")&&(hbp(this),this.mW=!0);this.fU({onksch:1});var W=this.S6;if(!lp(h)&&g.vp&&h.W.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var c="large";else{c=[];var V=!0;if(lp(h))for(var H=g.e(Object.keys(h.X)),B=H.next();!B.done;B=H.next())B=B.value,h.X[B].status==="usable"&&c.push(h.X[B].type),h.X[B].status!=="unknown"&&(V=!1);if(!lp(h)||V)c=h.Y;c=MA4(c)}W.call(this,c);if(!lp(h))for(W= {},c=g.e(h.Y),V=c.next();!V.done;V=c.next())Ps4(h,V.value,W);this.videoData.authorizedFormats=h.authorizedFormats;this.publish("keystatuseschange",h)}}; g.l.jP=function(h,W){this.gE()||this.publish("ctmp",h,W)}; g.l.ou=function(h,W){this.gE()||this.publish("fairplay_next_need_key_info",h,W)}; g.l.qw=function(h,W,c,V){this.gE()||(this.videoData.j("html5_log_drm_metrics_on_error")&&hbp(this),this.publish("licenseerror",h,W,c,V))}; g.l.l3=function(){return this.Z}; g.l.S6=function(h){var W=g.zV("auto",h,!1,"l");if(this.videoData.Tj){if(this.Z.equals(W))return}else if(Z5k(this.Z,h))return;this.Z=W;this.publish("qualitychange");this.fU({updtlq:h})}; g.l.BWg=function(h){this.videoData.sabrLicenseConstraint=h}; g.l.dE=function(){this.X.keySystemAccess&&this.element&&(this.Pk?this.element.setMediaKeys(null).catch(g.Lx):this.element.setMediaKeys(null));this.element=null;this.G=[];for(var h=g.e(this.W.values()),W=h.next();!W.done;W=h.next())W=W.value,W.unsubscribe("ctmp",this.jP,this),W.unsubscribe("keystatuseschange",this.a4,this),W.unsubscribe("licenseerror",this.qw,this),W.unsubscribe("newlicense",this.c_,this),W.unsubscribe("newsession",this.yO,this),W.unsubscribe("sessionready",this.wl,this),W.unsubscribe("fairplay_next_need_key_info", this.ou,this),this.uB.j("html5_enable_vp9_fairplay")&&W.unsubscribe("qualitychange",this.S6,this),W.dispose();this.W.clear();this.N.removeAll();this.S.removeAll();this.heartbeatParams=null;g.h1.prototype.dE.call(this)}; g.l.MU=function(){for(var h={systemInfo:this.X.MU(),sessions:[]},W=g.e(this.W.values()),c=W.next();!c.done;c=W.next())h.sessions.push(c.value.MU());return h}; g.l.getInfo=function(){return this.W.size<=0?"no session":""+this.W.values().next().value.getInfo()+(this.C?"/KR":"")}; g.l.fU=function(h,W){W=W===void 0?!1:W;this.gE()||(En(h),(this.uB.gI()||W)&&this.publish("ctmp","drmlog",h))};g.n(sM5,g.N);g.l=sM5.prototype;g.l.Q8=function(){return!!this.l_}; g.l.FU=function(){return this.W}; g.l.handleError=function(h){var W=this;u2d(this,h);if((h.errorCode!=="html5.invalidstate"&&h.errorCode!=="fmt.unplayable"&&h.errorCode!=="fmt.unparseable"||!JaN(this,h.errorCode,h.details))&&!raD(this,h)){if(this.fM.XI!=="yt"&&GSv(this,h)&&this.videoData.Cn&&(0,g.aC)()/1E3>this.videoData.Cn&&this.fM.XI==="hm"){var c=Object.assign({e:h.errorCode},h.details);c.stalesigexp="1";c.expire=this.videoData.Cn;c.init=this.videoData.M8/1E3;c.now=(0,g.aC)()/1E3;c.systelapsed=((0,g.aC)()-this.videoData.M8)/1E3; h=new g.RG(h.errorCode,c,2);this.lB.wu(h.errorCode,2,"SIGNATURE_EXPIRED",En(h.details))}if(Jp(h.severity)){var V;c=(V=this.lB.loader)==null?void 0:V.X.X;if(this.fM.j("html5_use_network_error_code_enums"))if(dsp(h)&&c&&c.isLocked())var H="FORMAT_UNAVAILABLE";else if(this.fM.N||h.errorCode!=="auth"||h.details.rc!==429)h.errorCode==="ump.spsrejectfailure"&&(H="HTML5_SPS_UMP_STATUS_REJECTED");else{H="TOO_MANY_REQUESTS";var B="6"}else dsp(h)&&c&&c.isLocked()?H="FORMAT_UNAVAILABLE":this.fM.N||h.errorCode!== "auth"||h.details.rc!=="429"?h.errorCode==="ump.spsrejectfailure"&&(H="HTML5_SPS_UMP_STATUS_REJECTED"):(H="TOO_MANY_REQUESTS",B="6");this.lB.wu(h.errorCode,h.severity,H,En(h.details),B)}else this.lB.publish("nonfatalerror",h),V=/^pp/.test(this.videoData.clientPlaybackNonce),this.Xi(h.errorCode,h.details),V&&h.errorCode==="manifest.net.connect"&&(h="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.aC)(),m9(h,"manifest",function(E){W.N=!0;W.GV("pathprobe",E)}, function(E){W.Xi(E.errorCode,E.details)}))}}; g.l.GV=function(h,W){this.lB.R1.GV(h,W)}; g.l.Xi=function(h,W){W=En(W);this.lB.R1.Xi(h,W)};Qo.prototype.bD=function(h){var W=nJN(this);if(!h)return{kp:dM,kT:dM,q2:dM,uL:dM,Ch:dM,sR:dM,JO:W};var c=dM;if(LB(W)||this.j("html5_perf_cap_override_sticky"))c=M6D(this,h);return{kp:c,kT:LFL(this,h),q2:zbN(this,h),uL:FFL(this,h.videoData),Ch:yap(this,h.videoData,h),sR:a6v(this,h),JO:W}}; Qo.prototype.S9=function(h){if(g.uJ(this.uB)&&Xs(this.uB.C,tu.HEIGHT))var W=h.X.videoInfos[0].video.qualityOrdinal;else{var c=this.Uw(!!h.X.X);LC(h.videoData)||J7(h.videoData);h=h.X.videoInfos;if(h.length){var V=g.DF(this.uB.experiments,"html5_override_oversend_fraction")||.85,H=h[0].video;H.projectionType!=="MESH"&&H.projectionType!=="EQUIRECTANGULAR"&&H.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||h0||(V=.45);H=g.DF(this.uB.experiments,"html5_viewport_undersend_maximum");for(var B=0;B< h.length;B++){W=h[B];var E=W.video;if(c===null||E.width*V=0,stateAtSend:W,joinLatencySecs:B,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:V,playerCanaryStage:H,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.tT(this.provider.videoData),isGapless:this.provider.videoData.S,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:AT(this.provider.videoData)};h||g.V5("html5PlayerHealthEvent",W);this.G=!0;this.dispose()}}; ip.prototype.dE=function(){this.G||this.send();window.removeEventListener("error",this.gk);window.removeEventListener("unhandledrejection",this.gk);g.N.prototype.dE.call(this)}; var tI$=/\bnet\b/;NKT.prototype.update=function(){if(this.S){var h=this.G2()||0,W=g.Bu(this.provider);h>=this.provider.lB.getDuration()-.1&&(this.previouslyEnded=!0);if(h!==this.X||vJk(this,h,W)){var c;if(!(c=hW-this.OU+2||vJk(this,h,W))){c=this.provider.lB.getVolume();var V=c!==this.T,H=this.provider.lB.isMuted()?1:0;H!==this.Z?(this.Z=H,c=!0):(!V||this.Y>=0||(this.T=c,this.Y=W),c=W-this.Y,this.Y>=0&&c>2?(this.Y=-1,c=!0):c=!1)}c&&(Aa(this),this.G=h);this.OU=W;this.X=h}}}; NKT.prototype.G2=function(){var h=this.provider.lB.G2();return this.provider.uB.j("html5_disable_live_dvr_shrink_for_cdm_vss")&&KC(this.provider.videoData)?h+this.provider.lB.FA():h};msd.prototype.send=function(h){var W=this;if(!this.rE){var c=pup(this),V=g.r0(this.uri,c);this.uB.j("vss_through_gel_double")&&I6d(V);this.DH&&!this.uB.j("html5_simplify_pings")?Dsp(this,V):oJD(this,h).then(function(H){W.DH&&(H=H||{},H.method="POST",H.postParams={atr:W.attestationResponse});SP4(V,H,{token:W.Wk,YE:W.lW,mdxEnvironment:W.mdxEnvironment},W.uB,h,W.zV,W.isFinal&&W.nj||W.mW||W.G&&W.mF)}); this.rE=!0}}; msd.prototype.W=function(h){h===void 0&&(h=NaN);return Number(h.toFixed(3)).toString()}; var QS={},SSl=(QS.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,QS.LIVING_ROOM_APP_MODE_MAIN=1,QS.LIVING_ROOM_APP_MODE_KIDS=2,QS.LIVING_ROOM_APP_MODE_MUSIC=3,QS.LIVING_ROOM_APP_MODE_UNPLUGGED=4,QS.LIVING_ROOM_APP_MODE_GAMING=5,QS),Lt={},O_N=(Lt.EMBEDDED_PLAYER_MODE_UNKNOWN=0,Lt.EMBEDDED_PLAYER_MODE_DEFAULT=1,Lt.EMBEDDED_PLAYER_MODE_PFP=2,Lt.EMBEDDED_PLAYER_MODE_PFL=3,Lt);g.n(C_,g.N);C_.prototype.SL=function(){this.X.update();H1k(this)&&(hFp(this),WGN(this))}; C_.prototype.dE=function(){g.N.prototype.dE.call(this);yo(this);Xup(this.X)}; C_.prototype.MU=function(){return pup(Ms(this,"playback"))}; C_.prototype.aF=function(h){var W=Ms(this,"engage");W.Pk=h;return YSQ(W,dHp(this.provider))};ut5.prototype.isEmpty=function(){return this.endTime===this.startTime};f_.prototype.j=function(h){return this.uB.j(h)}; f_.prototype.getCurrentTime=function(){return this.lB.getCurrentTime()}; f_.prototype.G2=function(){return this.lB.G2()}; var GbN={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.n(g.bp,g.N);g.l=g.bp.prototype;g.l.SL=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Vi){var h;(h=this.G.get(this.Vi))==null||h.SL()}else this.X&&this.X.SL()}; g.l.oD=function(h){this.qoe&&this.qoe.oD(h)}; g.l.rS=hN(29);g.l.iC=hN(35);g.l.Y_=function(h,W){this.qoe&&this.qoe.Y_(h,W)}; g.l.BO=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Vi){var h;(h=this.G.get(this.Vi))!=null&&Aa(h.X)}else this.X&&Aa(this.X.X)}; g.l.Xi=function(h,W){this.qoe&&deT(this.qoe,h,W);if(this.W)this.W.onError(h)}; g.l.onPlaybackRateChange=function(h){if(this.qoe)this.qoe.onPlaybackRateChange(h);this.X&&Aa(this.X.X)}; g.l.K$=hN(52);g.l.GV=function(h,W,c){this.qoe&&this.qoe.GV(h,W,c)}; g.l.hX=function(h,W,c){this.qoe&&this.qoe.hX(h,W,c)}; g.l.Fv=function(h){var W;(W=this.qoe)==null||W.Fv(h)}; g.l.DG=function(h){var W;(W=this.qoe)==null||W.DG(h)}; g.l.PX=function(h,W,c,V){var H;(H=this.qoe)==null||H.PX(h,W,c,V)}; g.l.oa=function(h){this.qoe&&this.qoe.oa(h)}; g.l.T7=function(h,W,c){this.qoe&&this.qoe.T7(h,W,c)}; g.l.Vs=hN(23);g.l.hM=function(){if(this.qoe)return this.qoe.hM()}; g.l.MU=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Vi){var h,W;return(W=(h=this.G.get(this.Vi))==null?void 0:h.MU())!=null?W:{}}return this.X?this.X.MU():{}}; g.l.XY=function(){var h;return(h=this.qoe)==null?void 0:h.XY()}; g.l.Qp=function(h,W){var c;(c=this.qoe)==null||c.Qp(h,W)}; g.l.aF=function(h){return this.X?this.X.aF(h):function(){}}; g.l.getVideoData=function(){return this.provider.videoData}; g.l.resume=function(){this.qoe&&this.qoe.resume()};g.n(g.TS,g.N);g.l=g.TS.prototype;g.l.Fi=function(h,W){this.sync();W&&this.X.array.length>=2E3&&this.Vw("captions",1E4);W=this.X;if(h.length>1&&h.length>W.array.length)W.array=W.array.concat(h),W.array.sort(W.X);else{h=g.e(h);for(var c=h.next();!c.done;c=h.next())c=c.value,!W.array.length||W.X(c,W.array[W.array.length-1])>0?W.array.push(c):g.Sl(W.array,c,W.X)}this.G=NaN;this.sync()}; g.l.yz=function(h){h.length>1E4&&g.Lx(new g.tP("Over 10k cueRanges removal occurs with a sample: ",h[0]));if(!this.gE()){var W=new Set(h);this.W=this.W.filter(function(c){return!W.has(c)}); UH4(this.X,W);this.sync()}}; g.l.H4=function(h,W){if(!this.gE()){var c=this.wS().find(function(V){return V.id===W&&V.namespace===h}); c&&this.yz([c])}}; g.l.Vw=function(h,W){var c=(isNaN(this.G)?PYD(this):this.G)-W;W=this.wS().filter(function(V){return V.namespace===h&&V.endthis.X,B=g.Y(c,8)&&g.Y(c,16),E=this.lB.D8().isBackground()||c.isSuspended();OS(this,this.Jk,B&&!E,H,"qoe.slowseek",function(){},"timeout"); var J=isFinite(this.X);J=B&&J&&gBN(W,this.X);var u=!V||Math.abs(V-this.X)>10,d=this.uB.j("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),G=V===0&&this.W&&[11,10].includes(this.W);OS(this,this.rE,J&&u&&!E&&(!d||!G),H,"qoe.slowseek",function(){W.seekTo(h.X)},"set_cmt"); u=J&&IG(W.yr(),this.X);var Z=this.lB.loader;J=!Z||Z.Hd();var r=function(){W.seekTo(h.X+.001)}; OS(this,this.mW,u&&J&&!E,H,"qoe.slowseek",r,"jiggle_cmt");J=function(){return h.lB.uO()}; OS(this,this.CM,u&&!E,H,"qoe.slowseek",J,"new_elem");var q=LI(c);G=c.isBuffering();var x=W.yr(),z=pF(x,V),L=z>=0&&x.end(z)>V+5;u=q&&G&&L;d=this.lB.getVideoData();OS(this,this.Nn,V<.002&&this.X<.002&&B&&g.uJ(this.uB)&&g.$M(d)&&!E,H,"qoe.slowseek",J,"slow_seek_shorts");OS(this,this.T,d.jX()&&B&&!E&&!d.Wk,H,"qoe.slowseek",J,"slow_seek_gapless_shorts");OS(this,this.XI,u&&!E,q&&!G,"qoe.longrebuffer",r,"jiggle_cmt");OS(this,this.Wk,u&&!E,q&&!G,"qoe.longrebuffer",J,"new_elem_nnr");if(Z){var M=Z.getCurrentTime(); B=W.GY();B=N77(B,M);B=!Z.isSeeking()&&V===B;OS(this,this.hI,q&&G&&B&&!E,q&&!G&&!B,"qoe.longrebuffer",function(){W.seekTo(M)},"seek_to_loader")}B={}; r=pF(x,Math.max(V-3.5,0));var U=r>=0&&V>x.end(r)-1.1,y=r>=0&&r+1=0&&U&&y<11;B.close2edge=U;B.gapsize=y;B.buflen=x.length;this.W&&(B.seekSour=this.W);OS(this,this.Pk,q&&G&&!E,q&&!G,"qoe.longrebuffer",function(){},"timeout",B); B=c.isSuspended();B=this.lB.oO()&&!B;OS(this,this.S,B,!B,"qoe.start15s",function(){h.lB.FD("ad")},"ads_preroll_timeout"); B=this.uB.experiments.xN("html5_use_playback_rate_in_skip_slow_ad")?this.lB.getPlaybackRate()*1E3:1E3;z=V-this.Y5;OS(this,this.yg,g.$M(d)&&Z,q&&!G,"qoe.longrebuffer",function(){h.lB.TP()},"reset_media_source"); OS(this,this.Rz,g.$M(d)&&Z,q&&!G,"qoe.longrebuffer",J,"reset_media_element");this.Y===0&&(this.N=V);Z=G&&this.X===0&&V>1&&V===this.N;OS(this,this.zV,g.$M(d)&&Z,q&&!G,"qoe.slowseek",function(){W.seekTo(0)},"reseek_after_time_jump"); E=c.isOrWillBePlaying()&&!E;L=this.lB.H3()-V<6&&!L&&this.lB.C5();OS(this,this.Z,d.jX()&&E&&G&&L,q&&!G,"qoe.longrebuffer",function(){h.lB.uO(!1,!0)},"handoff_end_long_buffer_reload"); E=this.W===104||this.lB.cZ;c=Qk(d)&&d.isAd()&&!d.Wk&&E&&(G||g.Y(c,8)&&g.Y(c,16));OS(this,this.Mn,c,H,"qoe.start15s",J,"gapless_ad_slow_start");c=Qk(d)&&!d.Wk&&E&&u;OS(this,this.Ef,c,H,"qoe.longrebuffer",J,"gapless_slow_start");this.Y=V;this.C.start()}}; YJ.prototype.Xi=function(h,W,c){W=this.MU(W);W.wn=c;W.wdup=this.G[h]?"1":"0";this.lB.Xi(new g.RG(h,W));this.G[h]=!0}; YJ.prototype.MU=function(h){h=Object.assign(this.lB.MU(!0),h.MU());this.X&&(h.stt=this.X.toFixed(3));this.lB.getVideoData().isLivePlayback&&(h.ct=this.lB.getCurrentTime().toFixed(3),h.to=this.lB.FA().toFixed(3));delete h.uga;delete h.euri;delete h.referrer;delete h.fexp;delete h.vm;return h}; IM.prototype.reset=function(){this.X=this.W=this.G=this.startTimestamp=0;this.Y=!1}; IM.prototype.test=function(h){if(!this.C||this.W)return!1;if(!h)return this.reset(),!1;h=(0,g.aC)();if(!this.startTimestamp)this.startTimestamp=h,this.G=0;else if(this.G>=this.C)return this.W=h,!0;this.G+=1;return!1}; IM.prototype.MU=function(){var h={},W=(0,g.aC)();this.startTimestamp&&(h.wsd=(W-this.startTimestamp).toFixed());this.W&&(h.wtd=(W-this.W).toFixed());this.X&&(h.wssd=(W-this.X).toFixed());return h};g.n(hLd,g.N);g.l=hLd.prototype;g.l.setMediaElement=function(h){(this.mediaElement=h)?(this.mediaElement&&(this.C||this.G||!this.mediaElement.A4()||this.seekTo(.01,{LR:"seektimeline_setupMediaElement"})),S6(this)):D6(this)}; g.l.getCurrentTime=function(h){h=h===void 0?!1:h;if(gK(this.lB)){if(this.j("html5_use_centralized_player_time")&&!h&&!isNaN(this.N))return this.N;if(!isNaN(this.W))return this.W}else{if(this.j("html5_use_centralized_player_time")&&!h&&!isNaN(this.N)&&isFinite(this.N))return this.N;if(!isNaN(this.W)&&isFinite(this.W))return this.W}return this.mediaElement&&rG5(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.G||0}; g.l.a6=function(){return this.Mn}; g.l.G2=function(){return this.getCurrentTime()-this.FA()}; g.l.Nv=function(){return this.X?this.X.Nv():Infinity}; g.l.isAtLiveHead=function(h){if(!this.X)return!1;h===void 0&&(h=this.getCurrentTime());return mF(this.X,h)}; g.l.V7=function(){return!!this.X&&this.X.V7()}; g.l.seekTo=function(h,W){var c=W===void 0?{}:W;W=c.Cz===void 0?!1:c.Cz;var V=c.kE===void 0?0:c.kE;var H=c.Dv===void 0?!1:c.Dv;var B=c.dX===void 0?0:c.dX;var E=c.LR===void 0?"":c.LR;var J=c.seekSource===void 0?void 0:c.seekSource;var u=c.zP===void 0?!1:c.zP;var d=c.qE===void 0?!1:c.qE;c=c.JV===void 0?!1:c.JV;u&&(h+=this.FA());AT(this.videoData)&&J===29&&(this.Mn=void 0);u=h=this.Md())||!g.OP(this.videoData),z||(L={st:L,mst:this.Md()},this.X&&this.j("html5_high_res_seek_logging")&&(L.ht=this.X.Nv(),L.adft=Ymk(this.X)),this.lB.GV("seeknotallowed",L)),L=z));if(!L)return this.Y&&(this.Y=null,dml(this)),g.AF(this.getCurrentTime());L=.005;d&&this.j("html5_sabr_seek_no_shift_tolerance")&&(L=0);if(Math.abs(h-this.W)<=L&&this.zV)return this.C;E&&(L=h,(this.uB.gI()||this.j("html5_log_seek_reasons"))&& this.lB.GV("seekreason",{reason:E,tgt:L}));J&&(this.XI.W=J);this.zV&&D6(this);this.C||(this.C=new d4);h&&!isFinite(h)&&$mh(this,!1);(E=c||u)||(E=h,E=!(this.videoData.isLivePlayback&&this.videoData.G&&!this.videoData.G.X&&!(this.mediaElement&&this.mediaElement.Wv()>0&&ZS(this.mediaElement)>0)||yk(this.videoData)&&this.Jw()===this.Md(!1)?0:isFinite(E)||!yk(this.videoData)));E||(h=kJ(this,h,H));h&&!isFinite(h)&&$mh(this,!1);this.j("html5_use_centralized_player_time")?this.N=h:this.W=this.G=h;this.yg= B;this.S=0;this.X&&(H=this.X,B=h,O1N(H,B,!1),Sm4(H,B));H=this.lB;B=h;E={Cz:W,seekSource:J};H.Nd.G=B;c=H.Yt;c.mediaTime=B;c.X=!0;E.Cz&&H.Lz(E);E=B>H.videoData.endSeconds&&B>H.videoData.limitedPlaybackDurationInSeconds;H.Yq&&E&&isFinite(B)&&IVv(H);BW.start&&IVv(this.lB);return this.C}; g.l.Md=function(h){if(!this.videoData.isLivePlayback)return this.lB.videoData.Md();var W;return qe(this.videoData)&&((W=this.mediaElement)==null?0:W.isPaused())&&this.videoData.X?(h=this.getCurrentTime(),WH7(this.wW(h)*1E3)+h):this.j("html5_sabr_parse_live_metadata_playback_boundaries")&&AT(this.videoData)&&this.videoData.X?h?this.videoData.X.Wk||0:this.videoData.X.Vz||0:yk(this.videoData)&&this.videoData.Pk&&this.videoData.X?this.videoData.X.Md()+this.timestampOffset:this.videoData.G&&this.videoData.G.X? !h&&this.X?this.X.Nv():this.lB.videoData.Md()+this.timestampOffset:this.mediaElement?XA()?WH7(this.mediaElement.EL().getTime()):ZS(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.l.Jw=function(){if(this.j("html5_sabr_parse_live_metadata_playback_boundaries")&&AT(this.videoData)){var h;return((h=this.videoData.X)==null?void 0:h.vj)||0}h=this.videoData?this.videoData.Jw()+this.timestampOffset:this.timestampOffset;if(qe(this.videoData)&&this.videoData.X){var W,c=Number((W=this.videoData.progressBarStartPosition)==null?void 0:W.utcTimeMillis)/1E3;W=this.getCurrentTime();W=this.wW(W)-W;if(!isNaN(c)&&!isNaN(W))return Math.max(h,c-W)}return h}; g.l.YI=function(){this.C||this.seekTo(this.G,{LR:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.l.Bt=function(){return this.zV&&!isFinite(this.W)}; g.l.dE=function(){swL(this,null);this.XI.dispose();g.N.prototype.dE.call(this)}; g.l.MU=function(){var h={};this.loader&&Object.assign(h,this.loader.MU());this.mediaElement&&Object.assign(h,this.mediaElement.MU());return h}; g.l.zp=function(h){this.timestampOffset=h}; g.l.getStreamTimeOffset=function(){return yk(this.videoData)?0:this.videoData.X?this.videoData.X.getStreamTimeOffset():0}; g.l.FA=function(){return this.timestampOffset}; g.l.wW=function(h){return this.videoData&&this.videoData.X?this.videoData.X.wW(h-this.timestampOffset):NaN}; g.l.XU=function(){if(!this.mediaElement)return 0;if(Sy(this.videoData)){var h=this.mediaElement,W=h.yr();h=(gA(W)&&h.getDuration()?W.end(W.length-1):0)+this.timestampOffset-this.Jw();W=this.Md()-this.Jw();return Math.max(0,Math.min(1,h/W))}return this.mediaElement.XU()}; g.l.zG=function(h){this.Z&&(this.Z.X=h)}; g.l.OH=function(h,W){this.lB.GV("requestUtcSeek",{time:h});AT(this.videoData)&&(this.Mn=h);var c;(c=this.loader)==null||c.OH(h);W&&(this.DH=W)}; g.l.rf=function(h){AT(this.videoData)&&(this.Mn=void 0);if(this.DH)this.lB.GV("utcSeekingFallback",{source:"streamTime",timeSeconds:this.DH}),this.lB.seekTo(this.DH,{LR:"utcSeekingFallback_streamTime"}),this.DH=0;else{var W=this.getCurrentTime();isNaN(W)||(h=this.wW(W)-h,W-=h,this.lB.GV("utcSeekingFallback",{source:"estimate",timeSeconds:W}),this.lB.seekTo(W,{LR:"utcSeekingFallback_estimate"}))}}; g.l.zX=function(){this.DH=0}; g.l.j=function(h){return this.uB&&this.uB.j(h)};g.n(h_,g.N);h_.prototype.start=function(){this.W.start()}; h_.prototype.stop=function(){this.W.stop()}; h_.prototype.clear=function(){for(var h=g.e(this.X.values()),W=h.next();!W.done;W=h.next())W.value.clear()}; h_.prototype.sample=function(){for(var h=g.e(this.G),W=h.next();!W.done;W=h.next()){var c=g.e(W.value);W=c.next().value;c=c.next().value;this.X.has(W)||this.X.set(W,new aV4(vwc.has(W)));this.X.get(W).update(c())}this.W.start()}; var vwc=new Set(["networkactivity"]);aV4.prototype.update=function(h){this.W?(this.buffer.add(h-this.X||0),this.X=h):this.buffer.add(h)}; aV4.prototype.clear=function(){this.buffer.clear();this.X=0};Ve.prototype.jM=function(){return this.started}; Ve.prototype.start=function(){this.started=!0}; Ve.prototype.reset=function(){this.finished=this.started=!1};var i3d=!1;g.n(g.BR,g.h1);g.l=g.BR.prototype;g.l.dE=function(){this.logger.debug("dispose");g.dJ(this.w9);$sk(this.RV);this.visibility.unsubscribe("visibilitystatechange",this.RV);lMD(this.R1);g.hA(this.R1);J_(this);g.Py.XV(this.CX);this.Lw();this.Ge=null;g.hA(this.videoData);g.hA(this.f$);g.hA(this.JD);g.hA(this.IB);g.Wa(this.NEE);this.Yq=null;g.h1.prototype.dE.call(this)}; g.l.T7=function(h,W,c,V,H){if(this.uB.j("html5_log_ad_playback_docid")){var B=this.R1;if(B.qoe){B=B.qoe;var E=this.uB.XI||"yt";g.$J(B,g.Bu(B.provider),"ad_playback",[h,W,c,H,E])}}else this.R1.T7(h,W,c);this.j("html5_log_media_perf_info")&&this.GV("adloudness",{ld:V.toFixed(3),cpn:h})}; g.l.PJ=function(){var h;return(h=this.loader)==null?void 0:h.PJ()}; g.l.vJ=function(){var h;return(h=this.loader)==null?void 0:h.vJ()}; g.l.Fy=function(){var h;return(h=this.loader)==null?void 0:h.Fy()}; g.l.N7=function(){var h;return(h=this.loader)==null?void 0:h.N7()}; g.l.bC=function(){return this.videoData.bC()}; g.l.ul=function(){return this.j("html5_not_reset_media_source")&&!this.bC()&&!this.videoData.isLivePlayback&&g.$M(this.videoData)&&!this.uB.supportsGaplessShorts()}; g.l.fz=function(){this.videoData.S&&(this.videoData.HU=this.videoData.HU||this.Ql.ZH().PJ(),this.videoData.nt=this.videoData.nt||this.Ql.ZH().vJ());if(mDl(this.videoData)||!Zf(this.videoData)){var h=this.videoData.errorDetail;this.wu(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),h,h,this.videoData.NN||void 0)}this.j("html5_generate_content_po_token")&&this.l1();this.j("html5_enable_d6de4")&&this.LH()}; g.l.getVideoData=function(){return this.videoData}; g.l.B=function(){return this.uB}; g.l.bD=function(){return this.Tu.bD(this.Ge)}; g.l.D8=function(){return this.visibility}; g.l.df=function(){return this.mediaElement&&this.mediaElement.Vp()?this.mediaElement.fJ():null}; g.l.yl=function(){return this.mediaElement}; g.l.ZQ=function(){if(this.videoData.errorCode)return!1;this.B().N&&this.B().houseBrandUserStatus&&this.GV("hbut",{status:this.B().houseBrandUserStatus},!0);if(this.videoData.oT())return!0;this.wu("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.l.bj=function(h){(h=h===void 0?!1:h)||Z1p(this.R1);this.gf=h;!this.ZQ()||this.BG.jM()?g.uJ(this.uB)&&this.videoData.isLivePlayback&&this.BG.jM()&&!this.BG.finished&&!this.gf&&this.Gq():(this.BG.start(),h=this.R1,g.Bu(h.provider),h.qoe&&J7L(h.qoe),this.Gq())}; g.l.Gq=function(){if(this.videoData.isLoaded()){var h=this.f$;g.DF(h.fM.experiments,"html5_player_min_build_cl")>0&&g.DF(h.fM.experiments,"html5_player_min_build_cl")>786081487&&Z_k(h,"oldplayer");vHQ(this)}else this.videoData.CG||this.videoData.u8?this.gf&&g.uJ(this.uB)&&this.videoData.isLivePlayback||(this.videoData.CG?iYd(this.videoData):(h=this.R1,h.qoe&&(h=h.qoe,RM(h,"protected"),h.provider.videoData.C?h.kM():h.provider.videoData.subscribe("dataloaded",h.kM,h)),atU(this.videoData))):!this.videoData.loading&& this.X1&&NsQ(this)}; g.l.pK=function(h){this.CR=h;this.loader&&(cK4(this.loader,new g.GS(h)),this.GV("sdai",{sdsstm:1}))}; g.l.Y0=function(h,W,c){var V;(V=this.loader)==null||V.Y0(h,W,c)}; g.l.Sf=hN(8);g.l.isFullscreen=function(){return this.visibility.isFullscreen()}; g.l.isBackground=function(){return this.visibility.isBackground()}; g.l.Zt=function(){var h=this;this.logger.debug("Updating for format change");Em(this).then(function(){return HR(h)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.l.QU=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.bj();this.ZQ()&&!g.Y(this.playerState,128)&&(this.eg.jM()||(this.eg.start(),this.videoData.Er?this.Tz(ai(this.playerState,4)):this.Tz(ai(ai(this.playerState,8),1))),Xv4(this))}; g.l.po=function(){return this.BG.finished}; g.l.sendAbandonmentPing=function(){g.Y(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.Zm(!0),lMD(this.R1),g.hA(this.R1),g.Py.XV(this.CX))}; g.l.Do=function(h,W,c){h=h===void 0?!0:h;(W===void 0||W)&&this.mediaElement&&this.mediaElement.pause();h&&c&&this.loader&&yk(this.videoData)&&this.loader.PX(c);this.Tz(h?new g.l1(14):new g.l1)}; g.l.Lt=function(){this.R1.BO()}; g.l.wu=function(h,W,c,V,H,B){this.logger.debug(function(){return"set player error: ec="+h+", detail="+H}); var E,J;g.uN(Wx6,c)?E=c:c?J=c:E="GENERIC_WITHOUT_LINK";V=(V||"")+(";a6s."+I2());if(h==="auth"||h==="drm.auth"||h==="heartbeat.stop")c&&(V+=";r."+c.replaceAll(" ","_")),B&&(V+="sr."+B.replaceAll(" ","_"));W={errorCode:h,errorDetail:H,errorMessage:J||g.Oq[E]||"",VG:E,NN:B||"",v4:V,mz:W,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=h;RN(this,"dataloaderror");this.Tz(j$(this.playerState,128,W));g.Py.XV(this.CX);J_(this);this.ri()}; g.l.FD=function(h){this.b0=this.b0.filter(function(W){return h!==W}); this.logger.debug(function(){return"set preroll ready for "+h}); this.eg.jM()&&Xv4(this)}; g.l.gA=function(){var h;(h=!!this.b0.length)||(h=this.WH.X.array[0],h=!!h&&h.start<=-0x8000000000000);return h}; g.l.V7=function(){return this.Nd.V7()}; g.l.isPlaying=function(){return this.playerState.isPlaying()}; g.l.mJ=function(){return this.playerState.mJ()&&this.videoData.Er}; g.l.getPlayerState=function(){return this.playerState}; g.l.hB=function(h){var W;(W=this.loader)==null||W.hB(h)}; g.l.dQ=function(h){var W;(W=this.loader)==null||W.dQ(h)}; g.l.getPlayerType=function(){return this.playerType}; g.l.getPreferredQuality=function(){if(this.Ge){var h=this.Ge;h=h.videoData.Uk.compose(h.videoData.Pz);h=KB(h)}else h="auto";return h}; g.l.oL=hN(16);g.l.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.l.setMediaElement=function(h){this.logger.debug("set media element");if(this.mediaElement&&h.fJ()===this.mediaElement.fJ()&&(h.isView()||this.mediaElement.isView())){if(h.isView()||!this.mediaElement.isView())this.Bo(),this.mediaElement=h,this.mediaElement.lB=this,$BN(this),this.Nd.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Lw();if(!this.playerState.isError()){var W=e$(this.playerState,512);g.Y(W,8)&&!g.Y(W,2)&&(W=ai(W,1));h.isView()&&(W=e$(W,64));this.Tz(W)}this.mediaElement= h;this.mediaElement.lB=this;!g.uJ(this.uB)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);$BN(this);this.Nd.setMediaElement(this.mediaElement);this.j("html5_prewarm_media_source")&&!this.f$.Q8()&&IbU(this.mediaElement)}}; g.l.Lw=function(h,W,c){h=h===void 0?!1:h;W=W===void 0?!1:W;c=c===void 0?!1:c;this.logger.debug("remove media element");if(this.mediaElement){var V=this.getCurrentTime();V>0&&(this.Nd.G=V);this.Nd.setMediaElement(null);!h&&this.ul()?kPN(this):this.LQ(c);this.loader&&(k8(this.loader),ZM(this,W));this.xs.stop();if(this.mediaElement&&(!this.eg.jM()&&!this.oO()||this.playerState.isError()||g.Y(this.playerState,2)||this.Tz(ai(this.playerState,512)),this.mediaElement)){this.Bo();if(h||!this.mediaElement.isView())this.Dn.j3("mesv_s"), this.mediaElement.stopVideo(),r$(this);this.mediaElement=this.mediaElement.lB=null}}}; g.l.playVideo=function(h,W){h=h===void 0?!1:h;W=W===void 0?!1:W;var c=this,V,H,B,E,J,u;return g.P(function(d){if(d.W==1){c.logger.debug("start play video");var G=window.google_image_requests;G&&G.length>10&&(window.google_image_requests=G.slice(-10));if(g.Y(c.playerState,128))return d.return();if(c.f$.FU())return c.publish("signatureexpired"),d.return();c.mediaElement&&Z1p(c.R1);c.QU();(g.Y(c.playerState,64)||h)&&c.Tz(ai(c.playerState,8));return c.eg.finished&&c.mediaElement?c.Ge||!c.TI?d.bB(2):g.F(d, c.TI,3):d.return()}if(d.W!=2&&g.Y(c.playerState,128))return d.return();if(!c.videoData.G)return c.videoData.isLivePlayback&&!g.nl(c.uB.C,!0)?(V="html5.unsupportedlive",H=2):(V=c.videoData.bC()?"fmt.unplayable":"fmt.noneavailable",H=1),g.Lx(Error("selectableFormats")),c.wu(V,H,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),d.return();if(c.vB()&&c.videoData.G.X)return c.logger.debug("rebuild playbackData for airplay"),d.return(Em(c));if(gK(c))G=c.Nd,FE(G.videoData)&&!G.isAtLiveHead(G.getCurrentTime())&& G.V7()&&G.lB.seekTo(Infinity,{LR:"seektimeline_peggedToLive",seekSource:34});else if(FE(c.videoData)&&(B=c.getCurrentTime()E;if(!J||!E){B&&J&&(V=Math.max(V,B));var u;B=jMl(W,(u=H.X)==null?void 0:u.videoInfos);u=W.lB.getPlaybackRate();u>1&&B&&(u=W0h(W.uB.C,H.X.videoInfos,u),h.X!==0&&u< h.X&&W.lB.setPlaybackRate(1));var d,G;h=((d=H.videoData.W)==null?void 0:(G=d.video)==null?void 0:G.qualityOrdinal)||0;g.iL("yt-player-quality",{quality:V,previousQuality:h},31104E3);W.uB.schedule.policy.Y=dE()>=480;if(W.j("html5_exponential_memory_for_sticky")){d=W.uB.Qj;G=1;var Z=Z===void 0?!1:Z;PbD(d,"sticky-lifetime");d.values["sticky-lifetime"]&&d.QF["sticky-lifetime"]||(d.values["sticky-lifetime"]=0,d.QF["sticky-lifetime"]=0);Z&&I9(d,"sticky-lifetime")>.0625&&(G=d.QF["sticky-lifetime"]*2);d.values["sticky-lifetime"]+= 1*Math.pow(2,d.X/G);d.QF["sticky-lifetime"]=G;d.Y.start()}if(W.j("html5_perf_cap_override_sticky")){Z=W.G;d=W.j("html5_perserve_av1_perf_cap");d=d===void 0?!1:d;if(d===void 0?0:d){G=ZH();h=g.e(Object.keys(G));for(W=h.next();!W.done;W=h.next())W=W.value,W.indexOf("1")!==0&&delete G[W];g.iL("yt-player-performance-cap",G,2592E3)}else g.AP("yt-player-performance-cap");Wrl(d);if(d){d=g.e(Ds.keys());for(G=d.next();!G.done;G=d.next())G=G.value,G.startsWith("1")||Ds.delete(G);d=g.e(L_.values());for(G=d.next();!G.done;G= d.next())G=G.value,G.startsWith("1")||L_.delete(G);d=g.e(Z.keys());for(G=d.next();!G.done;G=d.next())G=G.value,G.startsWith("1")||Z.delete(G)}else Ds.clear(),L_.clear(),Z.clear()}}}this.loader&&(Z=this.loader,c=c||"",Z.policy.X?Hw(Z.Y.X,c):Hw(Z.X.C,c));this.rZ()}; g.l.getUserPlaybackQualityPreference=function(){return this.videoData.G&&!this.videoData.G.X?KB(this.videoData.Uk):iy[dE()]}; g.l.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.l.setUserAudio51Preference=function(h,W){this.getUserAudio51Preference()!==h&&(this.GV("toggle51",{pref:h}),g.iL("yt-player-audio51",h,W?31536E3:2592E3),this.Zt())}; g.l.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.l.setProximaLatencyPreference=function(h){var W=this.getProximaLatencyPreference();this.GV("proxima",{pref:h});g.iL("yt-player-proxima-pref",h,31536E3);W!==h&&(h=this.Nd,h.Ef=!0,h.lB.seekTo(Infinity,{LR:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.l.getProximaLatencyPreference=function(){var h;return(h=GV())!=null?h:0}; g.l.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.l.l1=function(){this.videoData.videoId?this.Ql.l1(this.videoData):this.GV("povid",{})}; g.l.LH=function(){this.videoData.videoId?this.Ql.LH(this.videoData):this.GV("piavid",{})}; g.l.rZ=function(){if(!this.gE()&&!g.Y(this.playerState,128)&&this.videoData.G){if(this.videoData.G.X)sm(this);else{var h=Gb(this),W=this.videoData;a:{var c=this.videoData.RR;if(h.X){for(var V=g.e(c),H=V.next();!H.done;H=V.next()){H=H.value;var B=H.getInfo(),E=g.aG[B.video.quality];if((!h.G||B.video.quality!=="auto")&&E<=h.X){c=H;break a}}c=c[c.length-1]}else c=c[0]}W.Jk=c;Yqp(this,h.reason,BDp(this,this.videoData.Jk))}if(this.j("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.Nd.T= !1,this.playVideo()}}; g.l.u1=function(h,W){if(this.gE()||g.Y(this.playerState,128))return!1;var c,V=!((c=this.videoData.G)==null||!c.X);c=V&&W?this.getCurrentTime()-this.FA():NaN;if(this.uB.experiments.xN("html5_record_audio_format_intent")){var H=this.R1;if(H.qoe){H=H.qoe;var B=[h.iW.id,isNaN(c)?"m":"t"];g.$J(H,g.Bu(H.provider),"afi",B)}}if(V)return W&&(V=BsU(this.Nd),this.GV("aswh",{id:h.id,xtags:h.xtags,bh:V.toFixed(3)})),this.loader.setAudioTrack(h,c,W),!0;if(Sq4(this)){a:{W=this.mediaElement.audioTracks();for(V=0;V< W.length;++V)if(c=W[V],c.label===h.iW.getName()){if(c.enabled){W=!1;break a}W=c.enabled=!0;break a}W=void 0}W&&this.GV("hlsaudio",{id:h.id})}else{a:if(W=this.videoData,W.Y&&!P_(W.Y)||h===W.fn||!W.RR||W.RR.length<=0)W=!1;else{V=g.e(W.RR);for(c=V.next();!c.done;c=V.next()){c=c.value;if(!(c instanceof yf)){W=!1;break a}H=h.iW.getId();c.W&&(HaT(c.W,H),c.bW=null)}W.fn=h;W=!0}W&&HR(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.GV("hlsaudio",{id:h.id}))}return!0}; g.l.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()}; g.l.getAudioTrack=function(){if(Sq4(this)){var h=Dmk(this);if(h)return h}return this.videoData.getAudioTrack()}; g.l.aC=function(){return this.videoData.Y}; g.l.t3=function(){if(this.videoData.j("html5_trigger_loader_when_idle_network")&&!this.videoData.Hi()&&AT(this.videoData)){var h;(h=this.loader)!=null&&h.bV()}}; g.l.fW=function(){if(Qk(this.videoData)&&this.videoData.j("html5_gapless_append_early")){var h;(h=this.loader)!=null&&h.bV()}}; g.l.onPlayerRequestSent=function(h){this.Ql.onPlayerRequestSent(h)}; g.l.Ee=function(h){h=h===void 0?!1:h;if(this.loader){var W=this.loader,c=W.Ee;var V=this.videoData;V=V.j("html5_ssdai_use_post_for_media")&&V.enableServerStitchedDai?!1:yk(V)&&V.Eh&&!V.isAd();c.call(W,V,h)}}; g.l.LQ=function(h){h=h===void 0?!1:h;this.KM&&(this.logger.debug("remove media source"),pnT(this.KM),this.Ee(h),this.KM.dispose(),this.KM=null)}; g.l.ke=function(){return this.KM}; g.l.Wl=function(h,W,c,V){function H(E){try{V77(B,E,W,c)}catch(J){g.Lx(J),B.handleError(new g.RG("fmt.unplayable",{msi:"1",ename:J&&typeof J==="object"&&"name"in J?String(J.name):void 0,trg:"setmediasrc"},1))}} var B=this;W=W===void 0?!1:W;c=c===void 0?!1:c;Wwh(this,V===void 0?!1:V);this.KM=h;this.ul()&&JY(this.KM)==="open"?H(this.KM):tLT(this.KM,H)}; g.l.DE=function(h){this.logger.debug("onNeedKeyInfo");this.sQ.set(h.initData,h);this.x9&&(this.x9.DE(h),this.j("html5_eme_loader_sync")||this.sQ.remove(h.initData))}; g.l.D_=function(h){this.videoData.As=g.zV("auto",h,!1,"u");sm(this)}; g.l.zG=function(h){var W=h.reason,c=h.X.info,V=h.token,H=h.videoId,B=this.R1,E=this.videoData;if(c!==E.Y){var J=!E.Y;E.Y=c;W!=="m"&&W!=="t"&&(W=J?"i":"a");var u=W==="m"||W==="t";this.uB.experiments.xN("html5_refactor_sabr_audio_format_selection_logging")?this.Ks=new xsl(E,c,W,"",V,H):(W=new xsl(E,c,W,"",V),B.qoe&&(B=B.qoe,c=g.Bu(B.provider),xeN(B,c,W)));this.publish("internalaudioformatchange",E,!J&&u)}this.Nd.zG(h.X.index)}; g.l.Fc=function(h){this.publish("localmediachange",h)}; g.l.G3=function(h){h=h===void 0?{}:h;var W;(W=this.loader)==null||W.G3(this.uB,iU(this.videoData),h)}; g.l.FU=function(){return this.f$.FU()}; g.l.Qy=function(h){this.Xi(new g.RG("staleconfig",{reason:h}))}; g.l.handleError=function(h){this.f$.handleError(h)}; g.l.Q8=function(){return this.f$.Q8()}; g.l.rf=function(h){this.Nd.rf(h)}; g.l.uO=function(h,W){h=h===void 0?!1:h;W=W===void 0?!1:W;var c=this,V,H,B;return g.P(function(E){if(E.W==1){c.loader&&c.loader.d0();c.loader&&c.loader.gE()&&J_(c);if(c.j("html5_enable_vp9_fairplay")&&c.bC()&&(V=c.videoData.X)!=null)for(var J in V.X)V.X.hasOwnProperty(J)&&(V.X[J].X=null,V.X[J].G=!1);c.Tz(ai(c.playerState,2048));c.publish("newelementrequired");return h?g.F(E,Em(c),2):E.bB(2)}c.videoData.Hi()&&((H=c.loader)==null?0:H.zV)&&!gK(c)&&((B=c.isAtLiveHead())&&FE(c.videoData)?c.seekTo(Infinity, {LR:"videoPlayer_getNewElement"}):c.videoData.N$&&c.loader&&(J=c.loader,J.jO.Hi&&(J.jO.N$||J.jO.Y||J.jO.isPremiere?(J.seek(0,{LR:"loader_resetSqless"}),J.videoTrack.S=!0,J.audioTrack.S=!0,J.videoTrack.C=!0,J.audioTrack.C=!0):Oj(J.jO)&&GM(J))));W&&c.seekTo(0,{seekSource:105});g.Y(c.playerState,8)&&c.playVideo();g.zQ(E)})}; g.l.Ys=function(h){this.GV("hgte",{ne:+h});this.videoData.S=!1;h&&this.uO();this.loader&&A7T(this.loader)}; g.l.vS=function(h){this.GV("newelem",{r:h});this.uO()}; g.l.pauseVideo=function(h){h=h===void 0?!1:h;if((g.Y(this.playerState,64)||g.Y(this.playerState,2))&&!h)if(g.Y(this.playerState,8))this.Tz(zn(this.playerState,4,8));else if(this.mJ())HR(this);else return;g.Y(this.playerState,128)||(h?this.Tz(ai(this.playerState,256)):this.Tz(zn(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.OP(this.videoData)&&this.loader&&ZM(this,!1)}; g.l.stopVideo=function(){this.pauseVideo();this.loader&&(ZM(this,!1),this.loader.Il())}; g.l.ri=function(h,W){h=h===void 0?!1:h;W=W===void 0?!1:W;if(this.ul()&&W){var c;(c=this.mediaElement)==null||c.ri()}else{var V;(V=this.mediaElement)==null||V.stopVideo()}r$(this);J_(this);g.Y(this.playerState,128)||(h?this.Tz(e$(e$(ai(this.playerState,4),8),16)):this.Tz(j$(this.playerState)));this.videoData.videoId&&this.uB.Nn.remove(this.videoData.videoId)}; g.l.seekTo=function(h,W){W=W===void 0?{}:W;this.logger.debug(function(){return"SeekTo "+h+", "+JSON.stringify(W)}); g.Y(this.playerState,2)&&HR(this);W.PjO&&this.Tz(ai(this.playerState,2048));W.seekSource!==58&&W.seekSource!==60||!this.j("html5_update_vss_during_gapless_seeking")||qmp(this.R1,W.seekSource);this.Nd.seekTo(h,W);this.WH.sync()}; g.l.Lz=function(h){this.Dn.Y.W=(0,g.aC)();g.Y(this.playerState,32)||(this.Tz(ai(this.playerState,32,h==null?void 0:h.seekSource)),g.Y(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.kd()}; g.l.WJ=function(h){h=h==null?void 0:h.seekSource;g.Y(this.playerState,32)?(this.Tz(zn(this.playerState,16,32,h)),this.publish("endseeking")):g.Y(this.playerState,2)||this.Tz(ai(this.playerState,16,h));h=this.Dn.Y;var W=this.videoData,c=this.playerState.isPaused();if(W.clientPlaybackNonce&&!isNaN(h.X)){if(Math.random()<.01){c=c?"pbp":"pbs";var V={startTime:h.X};W.N&&(V.cttAuthInfo={token:W.N,videoId:W.videoId});Qy("seek",V);g.zO({clientPlaybackNonce:W.clientPlaybackNonce},"seek");isNaN(h.W)||eq("pl_ss", h.W,"seek");eq(c,(0,g.aC)(),"seek")}h.reset()}}; g.l.xa=function(h){this.WJ(h)}; g.l.vM=function(){this.publish("SEEK_COMPLETE")}; g.l.kH=function(h){var W=this.Ql,c=this.videoData.clientPlaybackNonce,V=this.playerType;if(h.scope===4){var H=h.type;if(H){var B=W.XA(),E=B.getVideoData().clientPlaybackNonce;V===1&&(E=c);if(V=jyQ(W,E)){if(c=V.getVideoData())h.writePolicy===2&&c.sabrContextUpdates.has(H)||(h.sendByDefault&&c.Mn.add(H),c.sabrContextUpdates.set(H,h)),W.j("html5_enable_t1_enf_on_sabr")&&(h=H===5,H=up5(c.playerResponse),h?(h=H?1:0,c8(h,"m.p_",{}),NU("MBSTAT",h)):h=1,h===0&&W.qn.Iz("onAbnormalityDetected"))}else B.GV("scuset", {ncpf:"1",ccpn:E,crcpn:c})}else g.Lx(Error("b/380308491: contextUpdateType is undefined"))}}; g.l.LO=function(){if(this.playerType===2)return this.Ql.LO("")}; g.l.getCurrentTime=function(h){return this.Nd.getCurrentTime(h===void 0?!1:h)}; g.l.a6=function(){return this.Nd.a6()}; g.l.G2=function(){return this.Nd.G2()}; g.l.HA=function(){return this.G2()}; g.l.Nv=function(){return this.Nd.Nv()}; g.l.getPlaylistSequenceForTime=function(h){return this.videoData.getPlaylistSequenceForTime(h-this.FA())}; g.l.fg=function(){var h=NaN;this.mediaElement&&(h=this.mediaElement.fg());return h>=0?h:this.getCurrentTime()}; g.l.wW=function(){var h;return((h=this.videoData.X)==null?0:h.wW)?this.videoData.X.wW(this.getCurrentTime()-this.FA()):this.mediaElement&&(h=this.mediaElement.EL())&&(h=h.getTime(),!isNaN(h))?h/1E3+this.getCurrentTime():NaN}; g.l.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.FA():this.Md()?this.Md():0}; g.l.Lo=function(){var h=new eFD;if(this.loader){var W=this.uB.schedule,c=this.uB.gI();c=c===void 0?!1:c;h.k0=W.Pk;h.S3=W.Rz;h.bandwidthEstimate=o9(W);if(c){c=(W.Z.Jt()*1E3).toFixed();var V=(W.zV.Jt()*1E3).toFixed(),H=tg(W).toFixed(2),B=((W.S.Jt()||0)*1E9).toFixed(2),E=W.G.Jt().toFixed(0),J=W.mW.Jt().toFixed(0),u=W.T.percentile(.5).toFixed(2),d=W.T.percentile(.92).toFixed(2),G=W.T.percentile(.96).toFixed(2),Z=W.T.percentile(.98).toFixed(2);W.X?W.X.reset():W.X=new M8;W.X.add(W.DH);W.X.add(W.interruptions.length); for(var r=0,q=W.interruptions.length-1;q>=0;q--){var x=W.interruptions[q];W.X.add(x-r);r=x}r=0;for(q=W.Y.length-1;q>=0;q--){x=W.Y[q];var z=x.stamp/36E5;W.X.add(z-r);r=z;W.X.add(x.net/1E3);W.X.add(x.max)}W=W.X.Ey();h.X={ttr:c,ttm:V,d:H,st:B,bw:E,abw:J,v50:u,v92:d,v96:G,v98:Z,"int":W}}W9d(this.loader,h)}else this.mediaElement&&(h.Rw=r4(this.mediaElement));h.k0=this.k0;h.S3=this.S3;h.G=this.isAtLiveHead()&&this.isPlaying()?b34(this):NaN;return h}; g.l.kc=function(h,W){this.S3+=h;this.k0+=W}; g.l.XU=function(){return this.mediaElement?g.OP(this.videoData)?1:Sy(this.videoData)?this.isAtLiveHead()||this.V7()?1:this.Nd.XU():this.mediaElement.XU():0}; g.l.gb=function(){var h=this.Tk,W=cR(h,"bandwidth"),c=cR(h,"bufferhealth"),V=cR(h,"livelatency"),H=cR(h,"networkactivity"),B=WR(h,"bandwidth"),E=WR(h,"bufferhealth"),J=WR(h,"livelatency");h=WR(h,"networkactivity");var u=this.j9(),d=u.droppedVideoFrames;u=u.totalVideoFrames;var G=this.getCurrentTime();if(this.x9){var Z="IT/"+(this.x9.X.getInfo()+"/"+KB(this.l3()));Z+="/"+this.x9.getInfo()}else Z="";var r=this.isGapless(),q=this.YQ(),x=this.hM(),z=g.d$(this),L=this.getPlayerState(),M=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var U=0;var y="";if(this.CR){if(this.CR.zL){y="D,";break a}U=this.CR.xS;y=this.CR.Zg.substring(0,4)}U>0?(U="AD"+U+", ",y&&(U+=y+", "),y=U):y=""}return{RI:B,KT:E,currentTime:G,KC:Z,droppedVideoFrames:d,isGapless:r,YQ:q,wb:x,mU:W,g5:c,jy:V,Sy:H,KL:J,fD:h,bK:z,playerState:L,mO:M,Yv:y,totalVideoFrames:u}}; g.l.MU=function(h){var W={};if(h===void 0?0:h){Object.assign(W,this.R1.MU());this.mediaElement&&(Object.assign(W,this.mediaElement.MU()),h=this.j9(),W.dvf=h.droppedVideoFrames,W.tvf=h.totalVideoFrames);this.loader&&Object.assign(W,this.loader.MU());this.x9&&(W.drm=JSON.stringify(this.x9.MU()));W.state=this.playerState.state.toString(16);g.Y(this.playerState,128)&&(W.debug_error=JSON.stringify(this.playerState.FK));this.gA()&&(W.prerolls=this.b0.join(","));this.videoData.fR&&(W.ismb=this.videoData.fR); this.videoData.latencyClass!=="UNKNOWN"&&(W.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(W.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)W.is_mosaic=1;this.videoData.cotn&&(W.is_offline=1,W.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(W.playerResponseCpn=this.videoData.playerResponseCpn);this.Ql.isOrchestrationLeader()&&(W.leader=1);this.videoData.isLivePlayback&& (this.videoData.X&&ou(this.videoData.X)&&(W.segduration=ou(this.videoData.X)),h=this.Nd,W.lat=h.Z?tZ4(h.Z.Y):0,W.liveutcstart=this.videoData.liveUtcStartSeconds);W.relative_loudness=this.videoData.U8.toFixed(3);if(h=g.d$(this))W.optimal_format=h.video.qualityLabel;W.user_qual=dE();W.release_version=R[5]}W.debug_videoId=this.videoData.videoId;return W}; g.l.addCueRange=function(h){this.Kt([h])}; g.l.removeCueRange=function(h){this.WH.yz([h])}; g.l.mI=function(){this.WH.sync()}; g.l.Vw=function(h,W){return this.WH.Vw(h,W)}; g.l.Kt=function(h,W){this.WH.Fi(h,W)}; g.l.U2=function(h){this.WH.yz(h)}; g.l.wS=function(){return this.WH.wS()||[]}; g.l.y8=function(){return this.Cu}; g.l.vB=function(){return this.visibility.vB()}; g.l.w6=function(){this.mediaElement&&this.mediaElement.w6()}; g.l.LDk=function(){RN(this)}; g.l.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.l.Bo=function(){g.zR(this.jk)}; g.l.NWI=function(){this.kd();this.publish("onLoadProgress",this.XU())}; g.l.Yp=function(h){var W=h.target.lO();if(this.mediaElement&&this.mediaElement.lO()&&this.mediaElement.lO()===W){ZHQ(this,h.type);switch(h.type){case "error":var c=xh(this.mediaElement)||"",V=this.mediaElement.B9();if(c==="capability.changed"){this.j("html5_restart_on_capability_change")?(this.GV("capchg",{msg:V}),this.uO(!0)):Em(this);return}if(this.mediaElement.hasError()&&JaN(this.f$,c,{msg:V,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.KG()===4){this.ri();uY(this,"unplayable"); return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.KM||c>0)&&c!==1&&this.I3(c);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());CYN(this.WH);this.R1.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":q4N(this);this.publish("onLoadedMetadata");HHQ(this);c=this.wW();this.videoData.SQ&&(this.videoData.SQ=c);break;case "loadstart":HHQ(this);break;case "progress":case "suspend":this.eP.pH(); break;case "playing":this.Dn.j3("plev");this.vc&&!gK(this)&&(this.vc=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{LR:"videoplayer_onPlaying"})));break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();V=this.mediaElement&&this.mediaElement.Wv()===0;if(c&&(!this.vu||V))return;this.vu=this.vu||!!this.mediaElement.getCurrentTime();s$5(this);this.kd();if(!this.mediaElement||this.mediaElement.lO()!==W)return;this.publish("onVideoProgress", this.getCurrentTime());break;case "waiting":if(this.mediaElement.GY().length>0&&this.mediaElement.yr().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.j("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.Wv()>2||!this.mediaElement.isSeeking()&&IG(this.mediaElement.yr(),this.mediaElement.getCurrentTime()))&&(c=this.mediaElement.MU(),c.bh=r4(this.mediaElement).toFixed(3),this.GV("uwe",c));break;case "resize":q4N(this); this.videoData.W&&this.videoData.W.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.gg&&g.Y(this.playerState,8)&&!g.Y(this.playerState,1024)&&this.getCurrentTime()===0&&g.G1){uY(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.lO()===W){lVv(this.Nd,h);this.publish("videoelementevent",h);W=this.playerState;V=this.Yt;var H=this.mediaElement;c=this.videoData.clientPlaybackNonce;if(!g.Y(W,128)){var B=W.state; H=H?H:h.target;var E=H.getCurrentTime();if(!g.Y(W,64)||h.type!=="ended"&&h.type!=="pause"){var J=H.getDuration();J=H.isEnded()||E>1&&Math.abs(E-J)<1.1;var u=h.type==="pause"&&H.isEnded();E=h.type==="ended"||h.type==="waiting"||h.type==="timeupdate"&&!g.Y(W,4)&&!Ns(V,E);if(u||J&&E)H.ew()>0&&H.lO()&&(B=14);else switch(h.type){case "error":xh(H)&&(B|=128);break;case "pause":g.Y(W,256)?(B^=256)||(B=64):g.Y(W,32)||g.Y(W,2)||g.Y(W,4)||(B=4,g.Y(W,1)&&g.Y(W,8)&&(B|=1));break;case "playing":E=B;B=(B|8)&-1093; E&4?(B|=1,nI(V,H,!0)):Ns(V,H.getCurrentTime())&&(B&=-2);g.Y(W,1)&&nI(V,H)&&(B|=1);break;case "seeking":B|=16;g.Y(W,8)&&(B|=1);B&=-3;break;case "seeked":B&=-17;nI(V,H,!0);break;case "waiting":g.Y(W,2)||(B|=1);nI(V,H);break;case "timeupdate":E=g.Y(W,16),J=g.Y(W,4),(g.Y(W,8)||E)&&!J&&Ns(V,H.getCurrentTime())&&(B=8),nI(V,H)&&(B|=1)}}V=B;B=null;V&128&&(B=h.target,H=xh(B),E=1,H?(H==="capability.changed"&&(E=2),J="GENERIC_WITHOUT_LINK",u=B.MU(),u.mediaElem="1",u.trg="melem",/AUDIO_RENDERER/.test(B.B9())&& (J="HTML5_AUDIO_RENDERER_ERROR"),B={errorCode:H,errorMessage:g.Oq[J]||"",VG:J,v4:En(u),mz:E,cpn:W.FK?W.FK.cpn:""}):B=null,B&&(B.cpn=c));W=j$(W,V,B)}!g.Y(this.playerState,1)&&g.Y(W,1)&&G_N(this,"evt"+h.type);this.Tz(W)}}}; g.l.CBW=function(h){h=h.X.availability==="available";h!==this.Cu&&(this.Cu=h,this.publish("airplayavailabilitychange"))}; g.l.jzk=function(){var h=(0,g.aC)(),W=this.mediaElement.vB();this.GV("airplay",{ia:W});!W&&!isNaN(this.Zl)&&h-this.Zl<2E3||(this.Zl=h,W!==this.vB()&&(h=this.visibility,h.X!==W&&(h.X=W,h.RV()),this.GV("airplay",{rbld:W}),this.Zt()),this.publish("airplayactivechange"))}; g.l.h3=function(h){if(this.loader){var W=this.loader,c=W.G,V=W.getCurrentTime(),H=Date.now()-c.T;c.T=NaN;c.GV("sdai",{adfetchdone:h,d:H});h&&!isNaN(c.S)&&c.W!==3&&g6(c.loader,V,c.S,c.N);c.policy.W?c.C=NaN:c.Y=NaN;S4(c,4,c.W===3?"adfps":"adf");k8(W)}}; g.l.jr=function(){g.dJ(this.w9);this.xs.stop();this.videoData.Wk=!0;this.uB.vj=!0;this.uB.lW=0;var h=this.f$;if(h.videoData.W){var W=h.fM.C,c=h.videoData.W.eO;W.Y.has(c)&&(W.Y.delete(c),W.W=!0)}h.X.stop();this.vr();g.Y(this.playerState,8)&&this.Tz(e$(this.playerState,65));this.gf=!1;h=this.R1;h.X&&c_d(h.X);h.W&&(h=h.W,W=g.Bu(h.provider),h.X<0&&(h.X=W,h.delay.start()),h.W=W,h.Y=W);g.pO(this.JD);this.publish("playbackstarted");(h=g.c2("yt.scheduler.instance.clearPriorityThreshold"))?h():gQ(0)}; g.l.vr=function(){var h=this.Ql.O8(),W={},c={};!LE("pbs",this.Dn.timerName)&&uh.measure&&uh.getEntriesByName&&(uh.getEntriesByName("mark_nr")[0]?RjD("mark_nr"):RjD());h.videoId&&(W.videoId=h.videoId);h.clientPlaybackNonce&&!this.j("web_player_early_cpn")&&(W.clientPlaybackNonce=h.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(c.isPausedOnLoad=!0);c.itag=h.W?Number(h.W.itag):-1;h.Gu&&(c.preloadType=String(this.yL?2:1));W.liveStreamMode=A3U[mS(h)];W.playerInfo=c;this.Dn.infoGel(W); if(this.loader){h=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(h.G&&(W=window.performance.getEntriesByName(h.G),W.length&&(W=W[0],h.tick("vri",W.fetchStart),h.tick("vdns",W.domainLookupEnd),h.tick("vreq",W.requestStart),h.tick("vrc",W.responseEnd))),h.W&&(W=window.performance.getEntriesByName(h.W),W.length&&(W=W[0],h.tick("ari",W.fetchStart),h.tick("adns",W.domainLookupEnd),h.tick("areq",W.requestStart),h.tick("arc",W.responseEnd))));h=h.ticks;for(var V in h)h.hasOwnProperty(V)&& this.Dn.tick(V,h[V])}}; g.l.kd=function(h){var W=this;h=h===void 0?!1:h;if(this.mediaElement&&this.videoData){EHl(this.Nd,this.isPlaying());var c=this.getCurrentTime();if(this.loader&&(g.Y(this.playerState,4)&&g.OP(this.videoData)||g.Y(this.playerState,32)&&AT(this.videoData)||$Sk(this.loader,c),this.j("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-this.loader.currentTime)>10)){var V;this.GV("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(V=this.loader)==null?void 0:V.currentTime},!0)}c> 5&&(this.Nd.G=c);(V=g.St())?g.Py.XV(this.CX):g.uW(this.CX);var H=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!H||qe(this.videoData))&&!g.Y(this.playerState,128)){var B=function(){if(W.mediaElement&&!g.Y(W.playerState,128)){W.uB.gI()&&ZHQ(W,"pfx");var E=W.getCurrentTime();W.j("html5_buffer_underrun_transition_fix")&&(E-=W.FA());var J=r4(W.mediaElement),u=g.Y(W.playerState,8),d=Ns(W.Yt,E),G=wn5(W.Yt,E,(0,g.aC)(),J);u&&d?W.Tz(e$(W.playerState,1)):u&&G?(u=W.getDuration(),d=FE(W.videoData), u&&Math.abs(u-E)<1.1?(W.GV("setended",{ct:E,bh:J,dur:u,live:d}),W.mediaElement.RO()?(W.logger.debug("seek to 0 because of looping"),W.seekTo(0,{LR:"videoplayer_loop",seekSource:37})):W.Do()):(W.playerState.isBuffering()||G_N(W,"progress_fix"),W.Tz(ai(W.playerState,1)))):(u&&!d&&!G&&E>0&&(u=(Date.now()-W.l_)/1E3,d=W.getDuration(),E>d-1&&W.GV("misspg",{t:E.toFixed(2),d:d.toFixed(2),r:u.toFixed(2),bh:J.toFixed(2)})),W.playerState.isPaused()&&W.playerState.isBuffering()&&r4(W.mediaElement)>5&&W.Tz(e$(W.playerState, 1)));W.kd()}}; this.mediaElement.GY().length===0?this.CX=V?g.Py.rp(B,100):g.Rx(B,100):this.CX=V?g.Py.rp(B,500):g.Rx(B,500)}this.videoData.q$=c;!h&&this.isPlaying()&&Eb5(this);Cp4(this.Tu,this.Ge,this.yl(),this.isBackground())&&sm(this);this.publish("progresssync",h);H&&qe(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.l.C2=function(){this.wu("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.l.hM=function(){return this.R1.hM()}; g.l.DB=function(){return this.loader?this.loader.DB():o9(this.uB.schedule,!0)}; g.l.Tz=function(h){if(!g.Q3(this.playerState,h)){this.logger.debug(function(){return"Setting state "+h.toString()}); var W=new g.H8(h,this.playerState);this.playerState=h;r45(this);var c=!this.ly.length;this.ly.push(W);var V=this.mediaElement&&this.mediaElement.isSeeking();g.EA(W,1)&&this.loader&&iQ5(this.loader);V=W.oldState.state===8&&!V;g.EA(W,1)&&V&&g.Y(this.playerState,8)&&!g.Y(this.playerState,64)&&this.loader&&(Kbv(this.loader),this.mediaElement&&r4(this.mediaElement)>=5&&Aa5(this.Tu,this.Ge)&&sm(this));(V=g.DF(this.uB.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.Y(h,1)&&(g.Y(h,8)||g.Y(h, 16))?this.Cx.start(V):this.Cx.stop();(B8(W,8)<0||g.EA(W,1024))&&this.xs.stop();!g.EA(W,8)||this.videoData.Wk||g.Y(W.state,1024)||this.xs.start();g.Y(W.state,8)&&B8(W,16)<0&&!g.Y(W.state,32)&&!g.Y(W.state,2)&&this.playVideo();g.Y(W.state,2)&&Sy(this.videoData)&&(this.I3(this.getCurrentTime()),this.kd(!0));g.EA(W,2)&&(this.Zm(!0),this.uB.gI()&&this.j("html5_sabr_parse_live_metadata_playback_boundaries")&&AT(this.videoData)&&this.videoData.X&&(V={minst:""+this.videoData.X.vj,cminst:""+(this.videoData.X.Jw()+ this.FA()),maxst:""+this.videoData.X.Vz,hts:""+this.videoData.X.Wk,cmaxst:""+(this.videoData.X.Md()+this.FA())},this.GV("sabrSeekableBoundaries",V)));g.EA(W,128)&&this.ri();this.videoData.X&&this.videoData.isLivePlayback&&!this.tF&&(B8(W,8)<0?yYh(this.videoData.X):g.EA(W,8)&&this.videoData.X.resume());H3k(this.Nd,W);xH4(this.R1,W);if(c&&!this.gE())try{for(var H=g.e(this.ly),B=H.next();!B.done;B=H.next()){var E=B.value;MZh(this.WH,E);this.publish("statechange",E)}}finally{this.ly.length=0}}}; g.l.h4=function(){this.Dn.tick("qoes")}; g.l.YI=function(){this.Nd.YI()}; g.l.qw=function(h,W,c,V){a:{var H=this.f$;V=V===void 0?"LICENSE":V;c=c.substring(0,256);var B=Jp(W);h==="drm.keyerror"&&this.x9&&this.x9.W.keys.length>1&&H.Y<96&&(h="drm.sessionlimitexhausted",B=!1);var E=H.fM.experiments.xN("html5_retry_on_drm_unavailable"),J=H.fM.experiments.xN("html5_retry_on_drm_key_error"),u=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(E&&h==="drm.unavailable"||J&&h==="drm.keyerror"&&!c.match(u))H.Xi("qoe.restart",{retryOnDrmError:1,e:h,detail:c}),H.lB.uO(!0);else{if(B)if(H.videoData.W&& H.videoData.W.video.isHdr())qSv(H,h);else{if(H.lB.wu(h,W,V,c),BKk(H,{detail:c}))break a}else H.Xi(h,{detail:c});h==="drm.sessionlimitexhausted"&&(H.GV("retrydrm",{sessionLimitExhausted:1}),H.Y++,dBl(H.lB))}}}; g.l.zzk=function(){var h=this,W=g.DF(this.uB.experiments,"html5_license_constraint_delay"),c=SO();W&&c?(W=new g.oD(function(){h.rZ();RN(h)},W),g.X(this,W),W.start()):(this.rZ(),RN(this))}; g.l.tf=function(h){this.publish("heartbeatparams",h)}; g.l.a4=function(h){this.GV("keystatuses",yJ7(h));var W="auto",c=!1;this.videoData.W&&(W=this.videoData.W.video.quality,c=this.videoData.W.video.isHdr());a:{switch(W){case "highres":case "hd2880":W="UHD2";break;case "hd2160":case "hd1440":W="UHD1";break;case "hd1080":case "hd720":W="HD";break;case "large":case "medium":case "small":case "light":case "tiny":W="SD";break;default:W="";break a}c&&(W+="HDR")}W=lp(h)?n_(h,W):h.Y.includes(W);if(this.j("html5_enable_vp9_fairplay")){if(c)if(h.S){var V;if((V= this.x9)==null?0:Hx(V.X))if((c=this.x9)==null)c=0;else{for(var H=V=void 0,B=g.e(c.W.values()),E=B.next();!E.done;E=B.next())E=E.value,V||(V=foN(E,"SD")),H||(H=foN(E,"AUDIO"));c.fU({sd:V,audio:H});c=V==="output-restricted"||H==="output-restricted"}else c=!W;if(c){this.GV("drm",{dshdr:1});qSv(this.f$);return}}else{this.videoData.K8||(this.videoData.K8=!0,this.GV("drm",{dphdr:1}),this.uO(!0));return}var J;if((J=this.x9)==null?0:Hx(J.X))return}else if(J=h.S&&W,c&&!J){qSv(this.f$);return}W||n_(h,"AUDIO")&& n_(h,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),h=yJ7(h),this.Wc?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.j("html5_report_fatal_drm_restricted_error_killswitch")||this.wu("drm.keyerror",2,void 0,"info."+h)):(this.Wc=!0,this.Xi(new g.RG("qoe.restart",Object.assign({},{retrydrm:1},h))),sm(this),dBl(this)))}; g.l.DUk=function(){if(!this.videoData.Wk&&this.mediaElement&&!this.isBackground()){var h="0";this.mediaElement.Wv()>0&&r4(this.mediaElement)>=5&&this.videoData.G&&this.videoData.G.X&&(this.Tz(ai(this.playerState,1)),G_N(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),h="1");r45(this);var W=this.videoData.G;h={restartmsg:h,mfmt:!z8(this.videoData),mdrm:!(!(W&&W.videoInfos&&W.videoInfos.length&&W.videoInfos[0].k9)||this.x9),mfmtinfo:!this.videoData.W,prerolls:this.gA()?this.b0.join(","): "0"};if(this.x9){W=this.x9;if(W.W.size<=0){var c="ns;";W.T||(c+="nr;");W=c+="ql."+W.G.length}else W=yJ7(W.W.values().next().value),W=En(W);h.drmp=W}var V;Object.assign(h,((V=this.loader)==null?void 0:V.MU())||{});var H;Object.assign(h,((H=this.mediaElement)==null?void 0:H.MU())||{});this.R1.Xi("qoe.start15s",En(h));this.publish("loadsofttimeout")}}; g.l.I3=function(h){this.videoData.lengthSeconds!==h&&(this.videoData.lengthSeconds=h,RN(this))}; g.l.Zm=function(h,W){var c=this;h=h===void 0?!1:h;if(!this.Fu)if(LE("att_s","player_att")||KE("att_s",void 0,"player_att"),this.j("use_rta_for_player"))(function(){var H,B,E,J;return g.P(function(u){switch(u.W){case 1:if(!(H=h)){u.bB(2);break}return g.F(u,g.TIl(),3);case 3:H=!u.X;case 2:if(H)return u.return();g.Qp(u,4);B=jNp(c.R1);if(!B)throw Error();E={};return g.F(u,g.bjN((E.cpn=c.videoData.clientPlaybackNonce,E.encryptedVideoId=c.videoData.videoId||"",E),3E4),6);case 6:J=u.X;if(c.Fu)throw Error(); if(!J.challenge)throw g.Lx(Error("Not sending attestation ping; no attestation challenge string")),Error();c.Fu=!0;var d=[J.challenge];J.error?d.push("r1c="+J.error):J.webResponse&&d.push("r1a="+J.webResponse);var G;((G=J.adblockReporting)==null?void 0:G.reportingStatus)!==void 0&&d.push("r6a="+J.adblockReporting.reportingStatus);var Z;((Z=J.adblockReporting)==null?void 0:Z.broadSpectrumDetectionResult)!==void 0&&d.push("r6b="+J.adblockReporting.broadSpectrumDetectionResult);B(d.join("&"));KE("att_f", void 0,"player_att");g.AN(u,0);break;case 4:g.CU(u),KE("att_e",void 0,"player_att"),g.zQ(u)}})})().then(function(){W==null||W()}); else{var V=new g.pqU(this.videoData);if("c1a"in V.vY&&!g.Dq.isInitialized()){KE("att_wb",void 0,"player_att");this.y$===2&&Math.random()<.01&&g.Lx(Error("Botguard not available after 2 attempts"));if(h)return;if(this.y$<5){g.pO(this.IB);this.y$++;return}}(V=g.IFv(V))?(KE("att_f",void 0,"player_att"),nDp(this.R1,V),this.Fu=!0):KE("att_e",void 0,"player_att")}}; g.l.H3=function(h){h=h===void 0?!1:h;return FE(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.V7()||g.OP(this.videoData))?this.getCurrentTime():this.Md(h)}; g.l.bP=function(){return this.Jw()}; g.l.Md=function(h){return this.Nd.Md(h===void 0?!1:h)}; g.l.Jw=function(){return this.Nd.Jw()}; g.l.FA=function(){return this.Nd?this.Nd.FA():0}; g.l.getStreamTimeOffset=function(){return this.Nd?this.Nd.getStreamTimeOffset():0}; g.l.rJ=function(){var h=0;this.uB.j("web_player_ss_media_time_offset")&&(h=this.getStreamTimeOffset()===0?this.FA():this.getStreamTimeOffset());return h}; g.l.setPlaybackRate=function(h){var W;this.playbackRate!==h&&jMl(this.Tu,(W=this.videoData.G)==null?void 0:W.videoInfos)&&(this.playbackRate=h,sm(this));this.playbackRate=h;this.mediaElement&&this.mediaElement.setPlaybackRate(h)}; g.l.getPlaybackRate=function(){return this.playbackRate}; g.l.getPlaybackQuality=function(){var h="unknown";if(this.videoData.W&&(h=this.videoData.W.video.quality,h==="auto"&&this.mediaElement)){var W=this.df();W&&W.videoHeight>0&&(h=jd(W.videoWidth,W.videoHeight))}return h}; g.l.isHdr=function(){return!!(this.videoData.W&&this.videoData.W.video&&this.videoData.W.video.isHdr())}; g.l.sendVideoStatsEngageEvent=function(h,W){var c=this.R1;c.X?(c=Ms(c.X,"engage"),c.Pk=h,c.send(W)):W&&W()}; g.l.aF=function(h){return this.R1.aF(h)}; g.l.isAtLiveHead=function(h,W){W=W===void 0?!1:W;return FE(this.videoData)&&(this.K_||W)?this.Nd.isAtLiveHead(h):!1}; g.l.QZ=function(){var h=this.Md(),W=this.getCurrentTime(),c;(c=!FE(this.videoData))||(c=this.Nd,c=!(c.X&&c.X.G));return c||this.V7()||isNaN(h)||isNaN(W)?0:Math.max(0,h-W)}; g.l.Nc=function(h){(this.K_=h)||this.xs.stop();this.videoData.X&&(h?this.videoData.X.resume():yYh(this.videoData.X));if(this.loader){var W=this.videoData.j("html5_disable_preload_for_ssdai_with_preroll")&&this.oO()&&this.videoData.isLivePlayback;h&&!W?this.loader.resume():ZM(this,!0)}g.Y(this.playerState,2)||h?g.Y(this.playerState,512)&&h&&this.Tz(e$(this.playerState,512)):this.Tz(ai(this.playerState,512));W=this.R1;W.qoe&&(W=W.qoe,g.$J(W,g.Bu(W.provider),"stream",[h?"A":"I"]))}; g.l.g9=function(h){this.R1.Xi("player.exception",En({n:h.name,m:h.message}))}; g.l.Vs=hN(22);g.l.K$=hN(51);g.l.oD=function(h){this.R1.oD(h)}; g.l.Fv=function(h){this.R1.Fv(h)}; g.l.oa=function(h){this.R1.oa(h)}; g.l.rS=hN(28);g.l.iC=hN(34);g.l.DG=function(h){this.R1.DG(h)}; g.l.PX=function(h,W,c,V){this.R1.PX(h,W,c,V)}; g.l.tL=function(){this.GV("hidden",{},!0)}; g.l.j9=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.l.Hd=function(){return this.loader?this.loader.Hd():!0}; g.l.setLoop=function(h){this.loop=h;this.mediaElement&&!g.uJ(this.uB)&&this.mediaElement.setLoop(h)}; g.l.RO=function(){return this.mediaElement&&!g.uJ(this.uB)?this.mediaElement.RO():this.loop}; g.l.zp=function(h){this.GV("timestamp",{o:h.toString()});this.Nd.zp(h)}; g.l.Z3=function(h){this.Dn.tick(h)}; g.l.T2=function(h){return this.Dn.T2(h)}; g.l.j3=function(h){this.Dn.j3(h)}; g.l.GV=function(h,W,c){this.R1.GV(h,W,c===void 0?!1:c)}; g.l.IN=function(h,W,c){this.R1.GV(h,W,c===void 0?!1:c)}; g.l.Xi=function(h){this.R1.Xi(h.errorCode,En(h.details));h=h.errorCode;if(this.videoData.isLivePlayback&&(h==="qoe.longrebuffer"||h==="qoe.slowseek")||h==="qoe.restart"){h=this.loader?rgD(this.loader.videoTrack):{};var W,c;this.GV("lasoe",Object.assign(this.loader?rgD(this.loader.audioTrack):{},(W=this.KM)==null?void 0:(c=W.X)==null?void 0:c.Ic()));var V,H;this.GV("lvsoe",Object.assign(h,(V=this.KM)==null?void 0:(H=V.W)==null?void 0:H.Ic()))}if(this.j("html5_log_centralized_player_time")){var B;this.GV("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(B=this.loader)==null?void 0:B.currentTime})}}; g.l.hX=function(h,W,c){this.R1.hX(h,W,c)}; g.l.Q9=function(h,W,c,V,H,B,E,J){var u;if((u=this.videoData.X)!=null&&u.isLive){var d=W.playerType===2?W:h,G=h.videoData.videoId,Z=W.videoData.videoId;if(G&&Z){u=this.R1;if(u.qoe){var r=u.qoe,q=h.cpn,x=W.cpn,z=d.videoData.Ns,L=r.provider.videoData.clientPlaybackNonce,M=r.provider.videoData.videoId,U=x!==L&&Z!==M;L=q!==L&&G!==M;r.reportStats();r.adCpn&&r.adCpn!==q||(r.adCpn=L?q:"",r.ji=L?G:"",r.adFormat=L?z:void 0,lf5(r,B?4:H?2:0,x,Z,V),r.reportStats(),r.adCpn=U?x:"",r.ji=U?Z:"",r.adFormat=U?z:void 0, lf5(r,B?5:H?3:1,q,G,c),r.reportStats())}c=h.cpn;if(u.G.has(c)){if(H=u.G.get(c),Pu(H,!0).send(),yo(H),c!==u.provider.videoData.clientPlaybackNonce){EDp(H);var y;(y=u.X)==null||VZN(y);u.G.delete(c)}}else u.Vi=u.provider.videoData.clientPlaybackNonce,u.Vi&&u.X&&(u.G.set(u.Vi,u.X),Pu(u.X).send(),yo(u.X));y=W.cpn;d=d.videoData;V-=this.rJ();if(u.G.has(y)){V=u.G.get(y);var T=V.G&&isNaN(V.C)?F2(V):NaN;V=B$T(V,!1);isNaN(T)||(V.S=T);V.send()}else V=aMD(u,u.provider,d,V),u.G.set(y,V),RF4(V,new g.H8(ai(new g.l1, 8),new g.l1)),c_d(V),(T=u.X)==null||yo(T);u.Vi=y;if(this.j("html5_unify_csi_server_stitched_transition_logging")){if(u=this.Dn,T=W.cpn,V=this.videoData.clientPlaybackNonce,W=W.videoData,h=(h.cpn===V?"video":"ad")+"_to_"+(T===V?"video":"ad"),h!=="video_to_ad"){V=h==="ad_to_video"?void 0:W;d=V==null?void 0:V.dU;y={};if(W==null?0:W.N)y.cttAuthInfo={token:W.N,videoId:W.videoId};E&&(y.startTime=E);Qy(h,y);var m,D,O;E={targetVideoId:(m=W==null?void 0:W.videoId)!=null?m:"empty_video",targetCpn:T,adVideoId:(D= V==null?void 0:V.videoId)!=null?D:"empty_video",adClientPlaybackNonce:(O=d==null?void 0:d.cpn)!=null?O:V==null?void 0:V.clientPlaybackNonce};d&&(E.adBreakType=d.adBreakType,E.adType=d.adType);g.zO(E,h);eC(u,J,h)}}else m=this.Dn,O=this.videoData.clientPlaybackNonce,D=W.videoData,O=(h.cpn===O?"video":"ad")+"_to_"+(W.cpn===O?"video":"ad"),h={},D.N&&(h.cttAuthInfo={token:D.N,videoId:D.videoId}),E&&(h.startTime=E),Qy(O,h),g.zO({targetVideoId:D.videoId,targetCpn:W.cpn,isSsdai:!0},O),E||eC(m,J,O)}}else this.logger.X(360717806, "SSTEvent for nonSS")}; g.l.zT=function(){var h=this.Ql,W=h.kY;h.kY=[];return W}; g.l.cN=function(h){this.videoData.Ku=!0;this.Xi(new g.RG("sabr.fallback",h));this.uO(!0)}; g.l.bZ=function(h,W){this.videoData.AO=!0;if(W===void 0||W)this.Xi(new g.RG("qoe.restart",h)),this.uO(!0);this.videoData.Gw()&&this.j("html5_reload_caption_on_ssdai_fallback")&&this.Ql.s2()}; g.l.zy=function(h){this.GV("sdai",{aftimeout:h});this.Xi(new g.RG("ad.fetchtimeout",{timeout:h}))}; g.l.Dm=function(h,W){this.GV("timelineerror",h);h=new g.RG("dai.timelineerror",h);W?this.wu("dai.timelineerror",1,"RETRYABLE_ERROR",En(h.details)):this.Xi(h)}; g.l.L$=function(){return g.Bu(this.R1.provider)}; g.l.getPlayerSize=function(){return this.DC.getPlayerSize()}; g.l.W5=function(){return this.DC.W5()}; g.l.Ot=function(){return this.Dn}; g.l.DO=function(){return this.Ql.DO()}; g.l.getVolume=function(){return this.Ql.getVolume()}; g.l.EU=function(){return this.Ql.EU()}; g.l.isMuted=function(){return this.Ql.isMuted()}; g.l.Yl=function(){return this.Ql.Yl()}; g.l.Iq=function(){this.tF=!0}; g.l.j=function(h){return this.uB.j(h)}; g.l.b7=function(h,W,c,V,H){this.GV("xvt",{m:h,g:W?1:0,tt:c?1:0,np:V?1:0,c:H})}; g.l.Rq=function(){var h;(h=this.loader)==null||h.resume()}; g.l.oO=function(){return g.el(this.b0,"ad")}; g.l.Mo=function(){var h=this.getCurrentTime(),W=h-this.FA();var c=this.mediaElement?Sd(this.mediaElement.yr()):0;c=Math.floor(Math.max(c-W,0))+100;var V;return((V=this.loader)==null?0:V.Mo(W,c))?(this.GV("sdai",{skipad:1,ct:W.toFixed(3),adj:c.toFixed(3)}),AT(this.videoData)&&this.loader.seek(W+c,{seekSource:89,LR:"videoplayer_skipServerStitchedAd"}),jwp(this.Nd,h),!0):!1}; g.l.gI=function(){return this.uB.gI()}; g.l.qN=function(){if(this.j("html5_generate_content_po_token"))return this.videoData.bb||"";this.Ql.Ce();return this.uB.mF||""}; g.l.Tn=function(){if(this.videoData.videoId)return this.videoData.C8}; g.l.Cj=function(){return this.videoData.videoId}; g.l.HJ=function(){return this.Ql.NF}; g.l.E7=function(){return this.gf}; g.l.C5=function(){return this.Ql.C5()}; g.l.OH=function(h,W,c){this.Tz(ai(this.playerState,16,c));this.Nd.OH(h,W)}; g.l.prefetchKeyPlay=function(){}; g.l.zX=function(){this.Nd.zX()}; g.l.fY=function(h,W){var c=this.j("html5_generate_content_po_token")?this.videoData:void 0;this.Ql.fY(h,W,c)}; g.l.Qp=function(h,W){this.R1.Qp(h,W)}; g.l.XY=function(){return this.R1.XY()}; g.l.Ga=function(){return this.videoData.Ie}; g.l.YQ=function(){return this.Ql.YQ()}; g.l.Fq=function(){return this.Ql.Fq(this)}; g.l.r9=function(){this.cZ=!0}; g.l.Ek=function(h){var W;(W=this.loader)==null||W.Ek(h)};g.n(xBl,da);g.n(qH,jY);qH.prototype.X=function(h){h&&aB(this,this.L.getLoopVideo());this.L.logVisibility(this.element,h)}; qH.prototype.logClick=function(){this.L.logClick(this.element)}; qH.prototype.onLoopChange=function(h){aB(this,h)}; qH.prototype.W=function(h){this.L.setLoopVideo(h)};g.n(lnU,da);g.n(nbT,da);g.l=nbT.prototype;g.l.seekToChapterWithAnimation=function(h){var W=this;if(g.CQ(this.api)&&!(h<0)){var c=this.api.getVideoData(),V=c.uC;if(V&&h=0)return;W=~W;g.X6(this.items,W,0,h);li(this.menuItems.element,h.element,W)}h.subscribe("size-change",this.u4,this);this.menuItems.publish("size-change")}; g.l.qY=function(h){h.unsubscribe("size-change",this.u4,this);this.gE()||(g.QU(this.items,h),this.menuItems.element.removeChild(h.element),this.menuItems.publish("size-change"))}; g.l.u4=function(){this.menuItems.publish("size-change")}; g.l.focus=function(){for(var h=0,W=0;W1&&g.ye(this)}; g.l.Re=function(){WvN(this);this.Of&&(k_N(this),g.h3(this.element,this.size))}; g.l.AG=function(){var h=this.X.pop();hoQ(this,h,this.X[this.X.length-1],!0)}; g.l.QC=function(h){if(!h.defaultPrevented)switch(h.keyCode){case 27:this.NU();h.preventDefault();break;case 37:this.X.length>1&&this.AG();h.preventDefault();break;case 39:h.preventDefault()}}; g.l.focus=function(){this.X.length&&this.X[this.X.length-1].focus()}; g.l.dE=function(){g.Vv.prototype.dE.call(this);this.N&&this.N.dispose();this.S&&this.S.dispose()};g.n(PR,g.MH);PR.prototype.open=function(h,W){this.initialize(h.items)&&this.qd(W,!!W)}; PR.prototype.initialize=function(h){g.C1(this.EX);if(h===void 0||h.length===0)return!1;var W=h.length;h=g.e(h);for(var c=h.next();!c.done;c=h.next())this.zx(c.value,W--);return!0}; PR.prototype.zx=function(h,W){h.menuNavigationItemRenderer?$wp(this,h.menuNavigationItemRenderer,W):h.menuServiceItemRenderer&&sU7(this,h.menuServiceItemRenderer,W)};g.n(f1,K1);g.l=f1.prototype;g.l.q6=function(h){h.target!==this.dismissButton.element&&h.target!==this.overflowButton.element&&(this.TY(),this.onClickCommand&&this.L.Iz("innertubeCommand",this.onClickCommand))}; g.l.eM=function(){this.enabled=!1;this.T.hide()}; g.l.NK=function(){return!!this.X&&this.enabled}; g.l.onVideoDataChange=function(h,W){this.vZ(W);if(this.X){this.DR();a:if(!this.isCounterfactual){var c,V,H;this.banner.update({title:(c=this.X)==null?void 0:c.title,subtitle:(V=this.X)==null?void 0:V.subtitle,metadata:(H=this.X)==null?void 0:H.metadataText});var B;this.onClickCommand=g.v((B=this.X)==null?void 0:B.onTap,Kx);var E;if(h=g.v((E=this.X)==null?void 0:E.onOverflow,Kx))this.S=g.v(h,mof);var J;if((J=this.X)==null?0:J.thumbnailImage){var u,d;E=((u=this.X)==null?void 0:(d=u.thumbnailImage)== null?void 0:d.sources)||[];if(E.length===0)break a;this.thumbnailImage.update({url:E[0].url})}else{var G;if((G=this.X)==null?0:G.thumbnailIconName){var Z;this.thumbnailIcon.update({icon:(Z=this.X)==null?void 0:Z.thumbnailIconName})}}var r;this.shouldShowOverflowButton=!((r=this.X)==null||!r.shouldShowOverflowButton);var q;this.shouldHideDismissButton=!((q=this.X)==null||!q.shouldHideDismissButton)}var x;this.banner.element.setAttribute("aria-label",((x=this.X)==null?void 0:x.a11yLabel)||"");var z; this.yg=(z=this.X)==null?void 0:z.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;B3T(this)}}; g.l.W8E=function(){this.isVisible=!0;B3T(this)}; g.l.GzI=function(){this.isVisible=!1;B3T(this)}; g.l.EE=function(){K1.prototype.EE.call(this);this.W&&this.L.logVisibility(this.banner.element,this.isVisible)}; g.l.TY=function(){K1.prototype.TY.call(this,!1);this.W&&this.L.logClick(this.banner.element)}; g.l.L0=function(h){this.N||(this.N=new PR(this.L),g.X(this,this.N));var W,c;if((W=this.S)==null?0:(c=W.menu)==null?0:c.menuRenderer)this.N.open(this.S.menu.menuRenderer,h.target),h.preventDefault()}; g.l.vZ=function(){}; g.l.DR=function(){}; g.l.dE=function(){this.L.zw("suggested_action_view_model");K1.prototype.dE.call(this)};g.n(bY,f1); bY.prototype.vZ=function(h){var W,c,V;this.productUpsellSuggestedActionViewModel=g.v((W=h.getWatchNextResponse())==null?void 0:(c=W.playerOverlays)==null?void 0:(V=c.playerOverlayRenderer)==null?void 0:V.suggestedActionViewModel,sYl);var H;if((H=this.productUpsellSuggestedActionViewModel)==null?0:H.content){var B;this.X=g.v((B=this.productUpsellSuggestedActionViewModel)==null?void 0:B.content,Xrf)}var E,J;if(this.W=!!((E=this.productUpsellSuggestedActionViewModel)==null?0:(J=E.loggingDirectives)==null? 0:J.trackingParams)){var u,d;this.L.setTrackingParams(this.banner.element,((u=this.productUpsellSuggestedActionViewModel)==null?void 0:(d=u.loggingDirectives)==null?void 0:d.trackingParams)||null)}var G;this.isCounterfactual=!((G=this.productUpsellSuggestedActionViewModel)==null||!G.isCounterfactualServing)}; bY.prototype.DR=function(){var h=[],W,c=g.e(((W=this.productUpsellSuggestedActionViewModel)==null?void 0:W.ranges)||[]);for(W=c.next();!W.done;W=c.next()){var V=W.value;V&&(W=Number(V.startTimeMilliseconds),V=Number(V.endTimeMilliseconds),isNaN(W)||isNaN(V)||h.push(new g.t$(W,V,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.L.Fi(h)};g.n(EYh,da);g.n(Tb,da);Tb.prototype.onVideoDataChange=function(h,W){var c=this;if(!Ro(W)&&(h==="newdata"&&J6N(this),this.X&&h==="dataloaded")){this.X=!1;var V;Uf(Ax(A0(this.api.B(),(V=this.api.getVideoData())==null?void 0:g.BN(V)),function(H){q7Q(c,H)}),function(){c.X=!0})}}; Tb.prototype.qB=function(){var h=this;if(g.uJ(this.api.B())){var W,c=g.Ky(this.api.B(),(W=this.api.getVideoData())==null?void 0:g.BN(W));return Ax(Qg(c),function(V){var H=hK();WV(H,V);return h.api.qB(H)})}return Qg(this.api.qB())};g.n(g.Xt,g.Eg);g.l=g.Xt.prototype;g.l.open=function(){g.Ft(this.YZ,this.W)}; g.l.BB=function(h){xw5(this);var W=this.options[h];W&&(W.element.setAttribute("aria-checked","true"),this.rW(this.GS(h)),this.G=h)}; g.l.Yy=function(h){g.C1(this.W);for(var W={},c=!1,V=0;V=0?this.X.playbackRate:1}catch(h){return 1}}; g.l.setPlaybackRate=function(h){this.getPlaybackRate()!==h&&(this.X.playbackRate=h);return h}; g.l.RO=function(){return this.X.loop}; g.l.setLoop=function(h){this.X.loop=h}; g.l.canPlayType=function(h,W){return this.X.canPlayType(h,W)}; g.l.isPaused=function(){return this.X.paused}; g.l.isSeeking=function(){return this.X.seeking}; g.l.isEnded=function(){return this.X.ended}; g.l.Bq=function(){return this.X.muted}; g.l.G$=function(h){xT();this.X.muted=h}; g.l.GY=function(){return this.X.played||my([],[])}; g.l.yr=function(){try{var h=this.X.buffered}catch(W){}return h||my([],[])}; g.l.nZ=function(){return this.X.seekable||my([],[])}; g.l.EL=function(){var h=this.X;return h.getStartDate?h.getStartDate():null}; g.l.getCurrentTime=function(){return this.X.currentTime}; g.l.setCurrentTime=function(h){this.X.currentTime=h}; g.l.getDuration=function(){return this.X.duration}; g.l.load=function(){var h=this.X.playbackRate;try{this.X.load()}catch(W){}this.X.playbackRate=h}; g.l.pause=function(){this.X.pause()}; g.l.play=function(){var h=this.X.play();if(!h||!h.then)return null;h.then(void 0,function(){}); return h}; g.l.Wv=function(){return this.X.readyState}; g.l.ew=function(){return this.X.networkState}; g.l.KG=function(){return this.X.error?this.X.error.code:null}; g.l.B9=function(){return this.X.error?this.X.error.message:""}; g.l.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.X instanceof window.HTMLVideoElement&&this.X.getVideoPlaybackQuality)return this.X.getVideoPlaybackQuality();if(this.X){var h=this.X,W=h.webkitDroppedFrameCount;if(h=h.webkitDecodedFrameCount)return{droppedVideoFrames:W||0,totalVideoFrames:h}}return{}}; g.l.vB=function(){return!!this.X.webkitCurrentPlaybackTargetIsWireless}; g.l.w6=function(){return!!this.X.webkitShowPlaybackTargetPicker()}; g.l.togglePictureInPicture=function(){var h=this.X,W=window.document;window.document.pictureInPictureEnabled?this.X!==W.pictureInPictureElement?h.requestPictureInPicture():W.exitPictureInPicture():qQ()&&h.webkitSetPresentationMode(h.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.l.lR=function(){var h=this.X;return new g.p6(h.offsetLeft,h.offsetTop)}; g.l.getSize=function(){return g.WW(this.X)}; g.l.setSize=function(h){g.h3(this.X,h)}; g.l.getVolume=function(){return this.X.volume}; g.l.setVolume=function(h){xT();this.X.volume=h}; g.l.BN=function(h){this.C[h]||(this.X.addEventListener(h,this.listener),this.C[h]=this.listener)}; g.l.setAttribute=function(h,W){this.X.setAttribute(h,W)}; g.l.removeAttribute=function(h){this.X.removeAttribute(h)}; g.l.hasAttribute=function(h){return this.X.hasAttribute(h)}; g.l.wY=hN(61);g.l.G1=hN(63);g.l.Y6=hN(65);g.l.cE=hN(67);g.l.xt=function(){return GR(this.X)}; g.l.F$=function(h){g.he(this.X,h)}; g.l.Nb=function(h){return g.IY(this.X,h)}; g.l.jA=function(){return g.jk(document.body,this.X)}; g.l.audioTracks=function(){var h=this.X;if("audioTracks"in h)return h.audioTracks}; g.l.dE=function(){for(var h=g.e(Object.keys(this.C)),W=h.next();!W.done;W=h.next())W=W.value,this.X.removeEventListener(W,this.C[W]);Gn.prototype.dE.call(this)}; g.l.Hc=function(h){this.X.disableRemotePlayback=h};g.n(w$,g.p);g.n(hG,g.p);hG.prototype.show=function(){g.p.prototype.show.call(this);this.FI();this.qn.j("html5_enable_moving_s4n_window")&&g.uJ(this.qn.B())&&this.Z()}; hG.prototype.hide=function(){g.p.prototype.hide.call(this);this.delay.stop();this.Y.stop()}; hG.prototype.FI=function(){var h=(0,g.aC)(),W=UwQ(this.qn);kD(this.X,W.bandwidth_samples);kD(this.S,W.network_activity_samples);kD(this.G,W.live_latency_samples);kD(this.W,W.buffer_health_samples);var c={};W=g.e(Object.entries(W));for(var V=W.next();!V.done;V=W.next()){var H=g.e(V.value);V=H.next().value;H=H.next().value;this.T[V]!==H&&(c[V]=" "+String(H));this.T[V]=H}this.update(c);h=(0,g.aC)()-h>25?5E3:500;this.delay.start(h)}; hG.prototype.Z=function(){this.N?(this.position+=1,this.position>15&&(this.N=!1)):(--this.position,this.position<=0&&(this.N=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.Y.start(2E4)};g.n(FvT,da);g.n(Wv,g.N);Wv.prototype.X=function(){var h=(0,g.aC)()-this.startTime;h=hthis.Y[h])&&(this.X=h,this.Vb())}; g.l.onCueRangeExit=function(h){var W=IK5(this,h);W&&this.X===h&&this.api.Iz("innertubeCommand",W);$H(this);this.X=void 0}; g.l.xa=function(h){this.G=h}; g.l.vM=function(){this.Vb();this.G=void 0}; g.l.Vb=function(){if(this.X!==void 0){var h=(h=VB(this,this.X))&&h.onCueRangeEnter?U9(h.onCueRangeEnter):void 0;var W=VB(this,this.X);a:if(W&&W.additionalTrigger){var c=g.e(W.additionalTrigger);for(var V=c.next();!V.done;V=c.next())if(V=V.value,V.type){var H=void 0,B=void 0;if((H=this.DH[V.type])==null?0:H((B=V.args)!=null?B:{})){c=!0;break a}}c=!1}else c=!0;h&&c&&(this.api.Iz("innertubeCommand",h),Y7L(this,W),this.Y[this.X]!==void 0&&this.Y[this.X]++,this.T=!0)}}; g.l.dE=function(){this.timelyActions=this.G=this.X=this.videoId=void 0;this.Y={};this.yz();$H(this);da.prototype.dE.call(this)};g.n(gYd,da);g.n(sq,jY);sq.prototype.N=function(h){this.Y(h?2:1)}; sq.prototype.W=function(){var h=this.L.getPresentingPlayerType();h===2||h===3?(this.X=!1,this.YZ.qY(this)):this.X||(h=this.hasVoiceBoostAudioTrack(),this.setEnabled(h),h=this.G()===2&&h,aB(this,h),this.YZ.zx(this),this.X=!0)}; sq.prototype.dE=function(){this.YZ.qY(this);jY.prototype.dE.call(this)};g.n(Hv,da);Hv.prototype.getVoiceBoostUserPreference=function(){return this.X}; Hv.prototype.setVoiceBoostUserPreference=function(h){this.api.GV("vb_set",{pref:h});g.iL("yt-player-voice-boost",h);h!==this.X&&(this.X=h,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.Zt())}; Hv.prototype.hasVoiceBoostAudioTrack=function(){var h,W,c=(h=this.api.getVideoData())==null?void 0:(W=h.G)==null?void 0:W.X;return c?tM(c,function(V){var H;return((H=V.audio)==null?void 0:H.W)===!0}):!1}; Hv.prototype.updateEnvironmentData=function(){this.api.B().d6=this.X};var BoU=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.n(Rw,da);Rw.prototype.dE=function(){this.S&&(g.dJ(this.S),this.S=void 0);da.prototype.dE.call(this)}; Rw.prototype.Ce=function(){(this.W?!this.X:this.G)&&u3(this)}; Rw.prototype.UJ=function(h,W,c){var V=this;if(k9N(h)){var H=c||"";if(this.X)W=ds(this,H),h1T(h,W);else{var B=new g.R_;W.push(B.promise);this.C.promise.then(function(){var E=ds(V,H);h1T(h,E);B.resolve()})}}}; Rw.prototype.l1=function(h){var W=this;if(this.W||this.G)h.bb=ds(this,h.videoId),this.X||(this.Y=new d4,this.C.promise.then(function(){W.Dn.T2("pot_if");h.bb=ds(W,h.videoId)}))};g.n(g.ZV,g.p);g.ZV.prototype.select=function(){this.api.Av(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.Oe||void 0)&&this.api.logClick(this.element)}; g.ZV.prototype.onClick=function(h){if(g.DE(this.api.B())&&this.api.j("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var W=this.suggestion.gV(),c={};g.YM(this.api,c);W=g.r0(W,c);g.zv(W,this.api,h)}else g.eY(h,this.api,this.W,this.suggestion.sessionData||void 0)&&this.select()}; g.ZV.prototype.onKeyPress=function(h){switch(h.keyCode){case 13:case 32:h.defaultPrevented||(this.select(),h.preventDefault())}}; g.ZV.prototype.onVideoDataChange=function(){var h=this.api.getVideoData(),W=this.api.B();this.W=h.B0?!1:W.Y};g.n(dgv,g.p);g.l=dgv.prototype;g.l.dE=function(){this.hide();g.zR(this.Y);g.Wa(this.stills);this.stills.length=0;this.W&&this.W.removeEventListener("click",this.J_);this.G&&this.G.removeEventListener("click",this.j4);this.X&&this.X.removeEventListener("click",this.j4);g.p.prototype.dE.call(this)}; g.l.j4=function(h){this.Z&&this.Z(h)}; g.l.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var h,W,c,V,H;var B=(((h=this.videoData)==null?0:(W=h.suggestions)==null?0:W.length)?(c=this.videoData)==null?void 0:c.suggestions:((V=this.videoData)==null?0:g.jy(V))?[(H=this.videoData)==null?void 0:g.jy(H)]:[]).slice(0,18);if((h=this.T)&&this.S&&this.N)if(g.xS(h),B.length)for(this.stills.length>B.length&&g.Wa(this.stills.splice(B.length)),this.stills.length=B.length,W=0;W=0;h--)this.features[h].dispose();this.features.length=0;g.N.prototype.dE.call(this)};n_p.prototype.reset=function(){this.X=this.W=NaN};g.l=jT7.prototype;g.l.reset=function(){nE(this.timerName)}; g.l.tick=function(h,W){eq(h,W,this.timerName)}; g.l.T2=function(h){return ih(h,void 0,this.timerName)}; g.l.j3=function(h){g.vc(h,void 0,this.timerName)}; g.l.infoGel=function(h){g.zO(h,this.timerName)};g.n(z1U,g.h1);g.l=z1U.prototype;g.l.mA=function(h){return this.loop||!!h||this.index+1=0}; g.l.setShuffle=function(h){this.shuffle=h;h=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var W=0;W0)||vv(this,1,!0)}; g.l.kD=function(){this.N=!0;this.X.v0(this.C);this.C=this.X.U(document,"mouseup",this.gO)}; g.l.gO=function(){this.N=!1;vv(this,8,!1);this.X.v0(this.C);this.C=this.X.U(this.target,"mousedown",this.kD)}; g.l.QH=function(h){if(h=(h=h.changedTouches)&&h[0])this.DH=h.identifier,this.X.v0(this.Z),this.Z=this.X.U(this.target,"touchend",this.C0,void 0,!0),vv(this,1024,!0)}; g.l.C0=function(h){if(h=h.changedTouches)for(var W=0;W1280||H>720)if(W=V.YL("maxresdefault.jpg"))break;if(B>640||H>480)if(W=V.YL("maxresdefault.jpg"))break;if(B>320||H>180)if(W=V.YL("sddefault.jpg")||V.YL("hqdefault.jpg")||V.YL("mqdefault.jpg"))break;if(W=V.YL("default.jpg"))break}g.aa(h)&&(h=new Image,h.addEventListener("load", function(){Zjl()}),h.src=W?W:"",this.api.Ot().tick("ftr")); this.Y.style.backgroundImage=W?"url("+W+")":""};g.n(g.Iw,g.p);g.Iw.prototype.resize=function(){}; g.Iw.prototype.W=function(h){var W=this;this.G=!1;RiD(this);var c=h.VG,V=this.api.B();c!=="GENERIC_WITHOUT_LINK"||V.N?c==="TOO_MANY_REQUESTS"?(V=this.api.getVideoData(),this.rW(SC(this,"TOO_MANY_REQUESTS_WITH_LINK",V.gV(),void 0,void 0,void 0,!1))):c!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||V.N?this.api.B().j("html5_enable_bandaid_error_screen")&&c==="HTML5_SPS_UMP_STATUS_REJECTED"&&!V.N?(V=V.hostLanguage,h="//support.google.com/youtube?p=videoError",V&&(h=g.r0(h,{hl:V})),this.rW(SC(this,"HTML5_SPS_UMP_STATUS_REJECTED", h))):this.api.B().j("enable_adb_handling_in_sabr")&&c==="BROWSER_OR_EXTENSION_ERROR"&&!V.N?(V=V.hostLanguage,h="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",V&&(h=g.r0(h,{hl:V})),this.rW(SC(this,"BROWSER_OR_EXTENSION_ERROR",h))):this.rW(g.YH(h.errorMessage)):this.rW(SC(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(h=V.hostLanguage,c="//support.google.com/youtube/?p=player_error1",h&&(c=g.r0(c, {hl:h})),this.rW(SC(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),V.Sx&&!V.Y&&EVQ(this,function(B){if(g.eY(B,W.api,!ru(W.api.B()))){B={as3:!1,html5:!0,player:!0,cpn:W.api.getVideoData().clientPlaybackNonce};var E=W.api;E.lV("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:B});E.isFullscreen()&&E.toggleFullscreen()}})); if(this.G){var H=this.vk("ytp-error-link");H&&(this.api.createClientVe(H,this,216104),this.api.logVisibility(H,!0),EVQ(this,function(){W.api.logClick(H)}))}}; var B8L=/([^<>]+)<\/a>/;g.n(J8p,g.p);J8p.prototype.iO=function(h,W,c){c=c===void 0?!1:c;switch(W){case 1:gs(this,h,this.G,c);break;case 2:gs(this,h,this.Y,c);break;case 3:gs(this,h,this.X,c);break;case 4:gs(this,h,this.W,c)}};g.n(uDT,g.p);g.l=uDT.prototype;g.l.onClick=function(h){this.innertubeCommand?(this.L.Iz("innertubeCommand",this.innertubeCommand),h.preventDefault()):g.eY(h,this.L,!0);this.L.logClick(this.element)}; g.l.onVideoDataChange=function(h,W){Gzl(this,W);this.Zh&&ZnL(this,this.Zh)}; g.l.ju=function(h){var W=this.L.getVideoData();this.videoId!==W.videoId&&Gzl(this,W);this.X&&ZnL(this,h.state);this.Zh=h.state}; g.l.qd=function(){this.fade.show();this.L.publish("paidcontentoverlayvisibilitychange",!0);this.L.logVisibility(this.element,!0)}; g.l.NU=function(){this.fade.hide();this.L.publish("paidcontentoverlayvisibilitychange",!1);this.L.logVisibility(this.element,!1)};g.n(DV,g.p);DV.prototype.hide=function(){this.X.stop();this.message.style.display="none";g.p.prototype.hide.call(this)}; DV.prototype.onStateChange=function(h){this.So(h.state)}; DV.prototype.So=function(h){if(g.Y(h,128)||this.api.E7())var W=!1;else{var c;W=this.api.j("web_watch_enable_multiview_manager")&&((c=this.api.getVideoData())==null?0:Ro(c))?!1:g.Y(h,16)||g.Y(h,1)?!0:!1}W?this.X.start():this.hide()}; DV.prototype.W=function(){this.message.style.display="block"};g.n(ws,g.Vv);ws.prototype.onMutedAutoplayChange=function(h){this.G&&(h?(r8U(this),this.qd()):(this.X&&this.logClick(),this.NU()))}; ws.prototype.Dc=function(h){this.api.isMutedByMutedAutoplay()&&g.EA(h,2)&&this.NU()}; ws.prototype.onClick=function(){this.api.unMute();this.logClick()}; ws.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.n(g.kH,g.lX);g.l=g.kH.prototype;g.l.init=function(){var h=this.api,W=h.getPlayerStateObject();this.HS=h.getPlayerSize();this.Tz(W);this.ym();this.I1();this.api.publish("basechromeinitialized",this);this.xI()&&this.api.publish("standardControlsInitialized")}; g.l.onVideoDataChange=function(h,W){var c=this.u_!==W.videoId;if(c||h==="newdata")h=this.api,h.isFullscreen()||(this.HS=h.getPlayerSize());c&&(this.u_=W.videoId,c=this.X8,c.zV=3E3,vv(c,512,!0),this.ym());this.api.j("web_render_jump_buttons")&&W.showSeekingControls&&(this.R9=572)}; g.l.oZI=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.l.z$=function(){var h=this.api.ud()&&this.api.Q7(),W=this.api.qp();return this.HN||h||this.Yz||W}; g.l.Uj=function(){var h=!this.z$();g.$y(this.api.getRootNode(),"ytp-menu-shown",!h)}; g.l.t8=function(h){try{if(!g.jk(this.api.getRootNode(),h))return!1}catch(W){return!1}for(;h&&!X2N(h);)h=h===this.api.getRootNode()?null:h.parentElement||null;return!!h}; g.l.n1=function(h){var W=this.api.getRootNode();g.$y(W,"ytp-autohide",h);g.$y(W,"ytp-autohide-active",!0);this.nB.start(h?250:100);h&&(this.Pf=!1,g.cD(W,"ytp-touch-mode"));this.nE=!h;this.api.JN(!h);this.api.j("delhi_modern_web_player")&&this.api.publish("autohideupdate",h)}; g.l.S7=function(){var h=this.api.getRootNode();g.$y(h,"ytp-autohide-active",!1)}; g.l.xdI=function(){this.vx=!0}; g.l.I3E=function(h){if(this.api.B().j("player_doubletap_to_seek")||this.api.B().S)this.vx=!1,this.bk&&this.v0(this.bk),this.Sr===0&&Wm(this,h)?(this.P7(),this.zn.start(),this.bk=this.U(this.api.Bk(),"touchmove",this.xdI,void 0,!0)):this.zn.stop();nVN(this)&&Wm(this,h)&&!this.api.B().S&&xKh(this);var W=this.QD.Qz();if(!g.DE(this.api.B())&&Ya&&jPk(this,h))W&&h.preventDefault();else if(this.Pf=!0,g.he(this.api.getRootNode(),"ytp-touch-mode"),this.X8.sG(),this.api.B().j("player_doubletap_to_seek")||this.api.B().S)if(W= this.api.getPlayerStateObject(),!(!this.api.MY()||g.Y(W,2)&&g.vN(this.api)||g.Y(W,64))){W=Date.now()-this.Nx;this.Sr+=1;if(W<=350){this.F9=!0;W=this.api.getPlayerSize().width/3;var c=this.api.getRootNode().getBoundingClientRect(),V=h.targetTouches[0].clientX-c.left;c=h.targetTouches[0].clientY-c.top;var H=(this.Sr-1)*10;V>0&&VW*2&&V=650,V=h.width<528;this.X8.resize();g.$y(W,"ytp-fullscreen",this.api.isFullscreen());g.$y(W,"ytp-large-width-mode",c);this.api.j("delhi_modern_web_player")?g.$y(W,"ytp-xsmall-width-mode",V):g.$y(W,"ytp-small-mode",this.Lp());g.$y(W,"ytp-tiny-mode",this.FE());g.$y(W,"ytp-big-mode",this.fG());this.DT&&this.DT.resize(h)}; g.l.Dc=function(h){this.Tz(h.state);this.ym()}; g.l.Ym=hN(3);g.l.S1=function(){var h=!!this.u_&&!this.api.XD()&&!this.N_,W=this.api.getPresentingPlayerType()===2,c=this.api.B();if(W)return c=b3(this.api.Pi()),h&&(c&&c.player?h=(h=c.player.getVideoData(2))?h.isListed&&!g.Rm(c.player.B()):!1:(sA("showInfoBarDuringAd: this is null"),h=!1)),h;W=c.j("web_player_imax_theater_mode")&&this.api.F2();return h&&(c.X6||W||this.api.isFullscreen()||c.ID)}; g.l.ym=function(){var h=this.S1();this.UO!==h&&(this.UO=h,g.$y(this.api.getRootNode(),"ytp-hide-info-bar",!h))}; g.l.Tz=function(h){var W=h.isCued()||this.api.gA()&&this.api.getPresentingPlayerType()!==3;W!==this.isCued&&(this.isCued=W,this.z8&&this.v0(this.z8),this.z8=this.U(this.api.Bk(),"touchstart",this.I3E,void 0,W));var c=this.X8,V=h.isPlaying()&&!g.Y(h,32)||this.api.tM();vv(c,128,!V);c=this.X8;V=this.api.getPresentingPlayerType()===3;vv(c,256,V);c=this.api.getRootNode();g.Y(h,2)?V=[DZ.ENDED]:(V=[],g.Y(h,8)?V.push(DZ.PLAYING):g.Y(h,4)&&V.push(DZ.PAUSED),g.Y(h,1)&&!g.Y(h,32)&&V.push(DZ.BUFFERING),g.Y(h, 32)&&V.push(DZ.SEEKING),g.Y(h,64)&&V.push(DZ.UNSTARTED));g.OI(this.nx,V)||(g.V$(c,this.nx),this.nx=V,g.WD(c,V));V=this.api.B();var H=g.Y(h,2);a:{var B=this.api.B();var E=B.controlsType;switch(E){case "2":case "0":B=!1;break a}B=E==="3"&&!g.Y(h,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:Vll(b3(this.api.Pi())))||this.api.qp()||g.DE(B)&&this.api.getPresentingPlayerType()===2?!1:!0}g.$y(c,"ytp-hide-controls",!B);g.$y(c,"ytp-native-controls",V.controlsType==="3"&&!W&&!H&&!this.Yz);g.Y(h, 128)&&!g.DE(V)?(this.DT||(this.DT=new g.Iw(this.api),g.X(this,this.DT),g.ge(this.api,this.DT.element,4)),this.DT.W(h.FK),this.DT.show()):this.DT&&(this.DT.dispose(),this.DT=null)}; g.l.d8=function(){return this.api.ud()&&this.api.Q7()?(this.api.XL(!1,!1),!0):this.api.XD()?(g.oo(this.api,!0),!0):!1}; g.l.onMutedAutoplayChange=function(h){this.Yz=h;this.Uj()}; g.l.fG=function(){return!1}; g.l.Lp=function(){return!this.fG()&&(this.api.getPlayerSize().width=0&&W.left>=0&&W.bottom>W.top&&W.right>W.left?W:null;W=this.size;h=h.clone();W=W.clone();V&&(E=W,H=5,(H&65)==65&&(h.x=V.right)&&(H&=-2),(H&132)==132&&(h.y=V.bottom)&&(H&=-5),h.xV.right&&(E.width=Math.min(V.right-h.x,B+E.width-V.left),E.width=Math.max(E.width,0))),h.x+E.width>V.right&&H&1&&(h.x=Math.max(V.right-E.width,V.left)),h.yV.bottom&&(E.height=Math.min(V.bottom-h.y,B+E.height-V.top),E.height=Math.max(E.height,0))),h.y+E.height>V.bottom&&H&4&&(h.y=Math.max(V.bottom-E.height,V.top)));V=new g.ts(0,0,0,0);V.left=h.x;V.top=h.y;V.width= W.width;V.height=W.height;g.gb(this.element,new g.p6(V.left,V.top));g.zR(this.Y);this.Y.U($K(this),"contextmenu",this.OMg);this.Y.U(this.L,"fullscreentoggled",this.onFullscreenToggled);this.Y.U(this.L,"pageTransition",this.K0)}; g.l.OMg=function(h){if(!h.defaultPrevented){var W=nS(h);g.jk(this.element,W)||this.NU();this.L.B().disableNativeContextMenu&&h.preventDefault()}}; g.l.onFullscreenToggled=function(){this.NU();p64(this)}; g.l.K0=function(){this.NU()};g.n(J4,g.p);J4.prototype.onClick=function(){var h=this,W,c,V,H;return g.P(function(B){if(B.W==1)return W=h.api.B(),c=h.api.getVideoData(),V=h.api.getPlaylistId(),H=W.getVideoUrl(c.videoId,V,void 0,!0),g.F(B,OnU(h,H),2);B.X&&YFD(h);h.api.logClick(h.element);g.zQ(B)})}; J4.prototype.FI=function(){this.updateValue("icon",{D:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{D:"path",AI:!0,K:"ytp-svg-fill",J:{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.updateValue("tooltip-title","Copiar v\u00ednculo");this.visible= IzQ(this);g.$y(this.element,"ytp-copylink-button-visible",this.visible);this.pJ(this.visible);this.tooltip.XK();this.api.logVisibility(this.element,this.visible&&this.C)}; J4.prototype.o1=function(h){g.p.prototype.o1.call(this,h);this.api.logVisibility(this.element,this.visible&&h)}; J4.prototype.dE=function(){g.p.prototype.dE.call(this);g.cD(this.element,"ytp-copylink-button-visible")};g.n(SFh,g.p);g.l=SFh.prototype;g.l.show=function(){g.p.prototype.show.call(this);g.pO(this.W)}; g.l.hide=function(){this.Y.stop();this.G=0;this.vk("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.cD(this.element,"ytp-chapter-seek");g.cD(this.element,"ytp-time-seeking");g.p.prototype.hide.call(this)}; g.l.eN=function(h,W,c,V){this.G=h===this.S?this.G+V:V;this.S=h;var H=h===-1?this.T:this.Z;H&&this.L.logClick(H);this.N?this.W.stop():g.Y$(this.W);this.Y.start();this.element.setAttribute("data-side",h===-1?"back":"forward");var B=3*this.L.Bk().getPlayerSize().height;H=this.L.Bk().getPlayerSize();H=H.width/3-3*H.height;this.X.style.width=B+"px";this.X.style.height=B+"px";h===1?(this.X.style.left="",this.X.style.right=H+"px"):h===-1&&(this.X.style.right="",this.X.style.left=H+"px");var E=B*2.5;B=E/ 2;var J=this.vk("ytp-doubletap-ripple");J.style.width=E+"px";J.style.height=E+"px";h===1?(h=this.L.Bk().getPlayerSize().width-W+Math.abs(H),J.style.left="",J.style.right=h-B+"px"):h===-1&&(h=Math.abs(H)+W,J.style.right="",J.style.left=h-B+"px");J.style.top="calc((33% + "+Math.round(c)+"px) - "+B+"px)";if(c=this.vk("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");gVl(this,this.N?this.G:V)}; g.l.NS=function(h,W,c){if(c=c===void 0?null:c){var V=h===-1?this.T.visualElement:this.Z.visualElement;c={seekData:c};var H=g.q_();H&&g.IW(mt)(void 0,H,V,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",c,void 0)}this.G=h===this.S?this.G+W:W;this.S=h;V=this.L.Bk().getPlayerSize();this.N?this.W.stop():g.Y$(this.W);this.Y.start();this.element.setAttribute("data-side",h===-1?"back":"forward");g.he(this.element,"ytp-time-seeking");this.X.style.width="110px";this.X.style.height="110px";c=V.width*.1-15;h=== 1?this.XI?(this.X.style.right=c+"px",this.X.style.left=""):(this.X.style.right="",this.X.style.left=V.width*.8-30+"px"):h===-1&&(this.XI?(this.X.style.right="",this.X.style.left=c+"px"):(this.X.style.right="",this.X.style.left=V.width*.1-15+"px"));this.X.style.top=V.height*.5+15+"px";gVl(this,this.N?this.G:W)}; g.l.nA=function(h,W,c){c=c===void 0?null:c;g.Y$(this.W);this.Y.start();switch(h){case -1:h="back";break;case 1:h="forward";break;default:h=""}this.element.setAttribute("data-side",h);this.X.style.width="0";this.X.style.height="0";g.he(this.element,"ytp-chapter-seek");this.updateValue("seekText",W);this.updateValue("seekTime","");W=this.vk("ytp-seek-icon");if(c){a:if(c){switch(c){case "PREMIUM_STANDALONE":c=F1v();break a;case "PREMIUM_STANDALONE_CAIRO":c=yPp();break a}c=void 0}else c=null;this.updateValue("seekIcon", c);W.style.display="inline-block"}else W.style.display="none"};g.n(DKp,K1);g.l=DKp.prototype;g.l.sY=function(h){this.Nn||(this.Nn=new PR(this.L),g.X(this,this.Nn));var W,c;if((W=this.uW)==null?0:(c=W.menu)==null?0:c.menuRenderer)this.Nn.open(this.uW.menu.menuRenderer,h.target),h.preventDefault()}; g.l.NK=function(){return!!this.X}; g.l.Vy=function(){return!!this.X}; g.l.q6=function(h){h.target===this.overflowButton.element?h.preventDefault():(this.fR&&this.L.Iz("innertubeCommand",this.fR),this.TY(!1))}; g.l.eM=function(){this.TY(!0);var h,W;((h=this.X)==null?0:(W=h.bannerData)==null?0:W.dismissedStatusKey)&&this.Sx.push(this.X.bannerData.dismissedStatusKey);this.NH()}; g.l.fI=function(){this.NH();G_(this)}; g.l.Mzk=function(h){var W=this,c;if(h.id!==((c=this.X)==null?void 0:c.identifier)){this.NH();c=g.e(this.DH);for(var V=c.next();!V.done;V=c.next()){var H=V.value,B=void 0,E=void 0;if((V=(B=H)==null?void 0:(E=B.bannerData)==null?void 0:E.itemData)&&H.identifier===h.id){E=B=void 0;var J=((B=H)==null?void 0:(E=B.bannerData)==null?void 0:E.dismissedStatusKey)||"";if(this.Sx.includes(J))return;this.X=H;this.banner.element.setAttribute("aria-label",V.accessibilityLabel||"");V.trackingParams&&(this.Y=!0, this.L.setTrackingParams(this.badge.element,V.trackingParams));this.show();this.T.show();iY(this);this.zV.pJ(!V.stayInApp);RV7(this);kzN(this);dD(this);this.fR=g.v(V.onTapCommand,Kx);if(H=g.v(V.menuOnTap,Kx))this.uW=g.v(H,mof);H=void 0;this.banner.update({thumbnail:(H=(V.thumbnailSources||[])[0])==null?void 0:H.url,title:V.productTitle,price:V.priceReplacementText?V.priceReplacementText:V.price,salesOriginalPrice:cvl(this),priceDropReferencePrice:V_5(this),promotionText:WYl(this),priceA11yText:$t4(this), affiliateDisclaimer:V.affiliateDisclaimer,vendor:sAh(this)});J=E=B=H=void 0;((H=V)==null?0:(B=H.hiddenProductOptions)==null?0:B.showDropCountdown)&&((E=V)==null?0:(J=E.hiddenProductOptions)==null?0:J.dropTimestampMs)&&(this.hI=new g.oD(function(){EOl(W)},1E3),this.zV.hide(),this.countdownTimer.show(),EOl(this)); this.L.j("web_player_enable_featured_product_banner_exclusives_on_desktop")&&w6U(this)&&(this.U5=new g.oD(function(){hVk(W)},1E3),hVk(this))}}this.L.getRootNode()&&g.he(this.L.getRootNode(),"ytp-featured-product-shown")}}; g.l.NH=function(){this.X&&(this.X=void 0,this.pU(),this.L.getRootNode()&&g.cD(this.L.getRootNode(),"ytp-featured-product-shown"))}; g.l.onVideoDataChange=function(h,W){var c=this;h==="dataloaded"&&G_(this);var V,H,B;h=g.v((V=W.getWatchNextResponse())==null?void 0:(H=V.playerOverlays)==null?void 0:(B=H.playerOverlayRenderer)==null?void 0:B.productsInVideoOverlayRenderer,t86);this.overflowButton.show();this.dismissButton.hide();var E=h==null?void 0:h.featuredProductsEntityKey;this.trendingOfferEntityKey=h==null?void 0:h.trendingOfferEntityKey;this.DH.length||(B15(this,E),dD(this));var J;(J=this.bX)==null||J.call(this);this.bX=g.ey.subscribe(function(){B15(c, E);dD(c)})}; g.l.dE=function(){G_(this);RV7(this);kzN(this);K1.prototype.dE.call(this)};g.n(Zol,g.p);Zol.prototype.onClick=function(){this.L.logClick(this.element,this.W)};g.n(rvl,g.Vv);g.l=rvl.prototype;g.l.show=function(){g.Vv.prototype.show.call(this);this.L.publish("infopaneldetailvisibilitychange",!0);this.L.logVisibility(this.element,!0);qo5(this,!0)}; g.l.hide=function(){g.Vv.prototype.hide.call(this);this.L.publish("infopaneldetailvisibilitychange",!1);this.L.logVisibility(this.element,!1);qo5(this,!1)}; g.l.getId=function(){return this.Y}; g.l.sU=function(){return this.itemData.length}; g.l.onVideoDataChange=function(h,W){if(W){var c,V,H,B;this.update({title:((c=W.eX)==null?void 0:(V=c.title)==null?void 0:V.content)||"",body:((H=W.eX)==null?void 0:(B=H.bodyText)==null?void 0:B.content)||""});var E;h=((E=W.eX)==null?void 0:E.trackingParams)||null;this.L.setTrackingParams(this.element,h);E=g.e(this.itemData);for(h=E.next();!h.done;h=E.next())h.value.dispose();this.itemData=[];var J;if((J=W.eX)==null?0:J.ctaButtons)for(W=g.e(W.eX.ctaButtons),J=W.next();!J.done;J=W.next())if(J=g.v(J.value, P4c))J=new Zol(this.L,J,this.X),J.oT&&(this.itemData.push(J),J.kN(this.items))}}; g.l.dE=function(){this.hide();g.Vv.prototype.dE.call(this)};g.n(nO4,g.p);g.l=nO4.prototype;g.l.onVideoDataChange=function(h,W){lZN(this,W);this.Zh&&aZT(this,this.Zh)}; g.l.ZD=function(h){var W=this.L.getVideoData();this.videoId!==W.videoId&&lZN(this,W);aZT(this,h.state);this.Zh=h.state}; g.l.KD=function(h){(this.G=h)?this.hide():this.X&&this.show()}; g.l.oK=function(){this.W||this.qd();this.showControls=!0}; g.l.UY=function(){this.W||this.NU();this.showControls=!1}; g.l.qd=function(){var h,W=(h=this.L)==null?void 0:h.getPlayerSize();h=W.width<380;var c;W=W.height<(((c=this.L)==null?0:c.isEmbedsShortsMode())?400:280);var V,H;(((V=this.L)==null?0:V.getPlayerStateObject().isCued())||((H=this.L)==null?0:g.Y(H.getPlayerStateObject(),1024)))&&h&&W||!this.X||this.G||(this.fade.show(),this.L.publish("infopanelpreviewvisibilitychange",!0),this.L.logVisibility(this.element,!0))}; g.l.NU=function(){this.X&&!this.G&&(this.fade.hide(),this.L.publish("infopanelpreviewvisibilitychange",!1),this.L.logVisibility(this.element,!1))}; g.l.VzW=function(){this.W=!1;this.showControls||this.NU()};var IYS={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(IYS).reduce(function(h,W){h[IYS[W]]=W;return h},{}); var YN2={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(YN2).reduce(function(h,W){h[YN2[W]]=W;return h},{}); var OsS={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(OsS).reduce(function(h,W){h[OsS[W]]=W;return h},{});var SNK,gwl;SNK=[{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"}];gwl=[{option:0,text:Zn(0)},{option:.25,text:Zn(.25)},{option:.5,text:Zn(.5)},{option:.75,text:Zn(.75)},{option:1,text:Zn(1)}]; g.lj=[{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:SNK},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:Zn(.5)},{option:-1,text:Zn(.75)},{option:0,text:Zn(1)},{option:1, text:Zn(1.5)},{option:2,text:Zn(2)},{option:3,text:Zn(3)},{option:4,text:Zn(4)}]},{option:"background",text:"Color de fondo",options:SNK},{option:"backgroundOpacity",text:"Opacidad de fondo",options:gwl},{option:"windowColor",text:"Color de la ventana",options:SNK},{option:"windowOpacity",text:"Opacidad de la ventana",options:gwl},{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:Zn(.25)},{option:.5,text:Zn(.5)},{option:.75,text:Zn(.75)},{option:1,text:Zn(1)}]}];var DP2=[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.n(KYT,g.lX);g.l=KYT.prototype; g.l.SJ=function(h){h.repeat||(this.G.UK=!1);var W=!1,c=h.keyCode,V=nS(h),H=!h.altKey&&!h.ctrlKey&&!h.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||DP2.includes(c)),B=!1,E=!1,J=this.api.B();h.defaultPrevented?(H=!1,E=!0):J.BV&&!this.api.isMutedByEmbedsMutedAutoplay()&&(H=!1);if(c===9)W=!0;else{if(V)switch(c){case 32:case 13:if(V.tagName==="BUTTON"||V.tagName==="A"||V.tagName==="INPUT")W=!0,H=!1;else if(H){var u=V.getAttribute("role");!u||u!=="option"&&u!=="button"&&u.indexOf("menuitem")!==0|| (W=!0,V.click(),B=!0)}break;case 37:case 39:case 36:case 35:W=V.getAttribute("role")==="slider";break;case 38:case 40:u=V.getAttribute("role"),V=c===38?V.previousSibling:V.nextSibling,u==="slider"?W=!0:H&&(u==="option"?(V&&V.getAttribute("role")==="option"&&V.focus(),B=W=!0):u&&u.indexOf("menuitem")===0&&(V&&V.hasAttribute("role")&&V.getAttribute("role").indexOf("menuitem")===0&&V.focus(),B=W=!0))}if(H&&!B)switch(c){case 38:B=Math.min(this.api.getVolume()+5,100);$b(this.HV,B,!1);this.api.setVolume(B); E=B=!0;break;case 40:B=Math.max(this.api.getVolume()-5,0);$b(this.HV,B,!0);this.api.setVolume(B);E=B=!0;break;case 36:this.api.MY()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),E=B=!0);break;case 35:this.api.MY()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),E=B=!0)}}W&&qB(this,!0);(W||E)&&this.X8.sG();(B||H&&this.handleGlobalKeyDown(c,h.shiftKey,h.ctrlKey,h.altKey,h.metaKey,h.key,h.code,h.repeat))&&h.preventDefault();J.Z&&(h={keyCode:h.keyCode, altKey:h.altKey,ctrlKey:h.ctrlKey,metaKey:h.metaKey,shiftKey:h.shiftKey,handled:h.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.Dg("onKeyPress",h))}; g.l.Rf=function(h){var W=h.keyCode;(!this.api.j("web_player_spacebar_control_bugfix")||this.api.j("web_player_spacebar_control_bugfix")&&!this.G.sE)&&this.handleGlobalKeyUp(W,h.shiftKey,h.ctrlKey,h.altKey,h.metaKey,h.key,h.code)&&h.preventDefault()}; g.l.handleGlobalKeyUp=function(h,W,c,V,H,B,E){this.api.publish("keyboardserviceglobalkeyup",{keyCode:h,shiftKey:W,ctrlKey:c,altKey:V,metaKey:H,key:B,code:E});W=!1;if(this.G.UK)return W;(B=g.OV(this.api.Pi()))&&(B=B.vU)&&B.Of&&(B.C_(h),W=!0);switch(h){case 9:qB(this,!0);W=!0;break;case 32:if(this.api.j("web_speedmaster_spacebar_control")&&(!this.api.j("web_player_spacebar_control_bugfix")&&!this.G.sE||this.api.j("web_player_spacebar_control_bugfix"))&&!this.api.B().BV){var J,u;h=(J=this.progressBar)== null?void 0:(u=J.W)==null?void 0:u.isEnabled;W=this.D5(h)}break;case 39:(Gj?V:c)&&!H&&this.api.MY()&&this.api.j("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),J=(J=this.api.getVideoData())?J.uC:[],u=zVL(J,this.api.getCurrentTime()*1E3),u!==-1&&this.X!=null&&(this.X.nA(1,J[u].title),this.api.seekTo(J[u].startTime/1E3,void 0,void 0,void 0,52),W=!0))}return W}; g.l.handleGlobalKeyDown=function(h,W,c,V,H,B,E,J){J||(this.G.UK=!1);var u=!1,d=this.api.B();if(d.BV&&!this.api.isMutedByEmbedsMutedAutoplay())return u;var G=g.OV(this.api.Pi());if(G&&(G=G.vU)&&G.Of)switch(h){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:u=G.gC(h)}d.N||u||(u=B||String.fromCharCode(h).toLowerCase(),this.W+=u,"awesome".indexOf(this.W)===0||this.api.j("web_player_rtr_ctrls")&&"bday".indexOf(this.W)===0?(u=!0,4===this.W.length&&this.W==="bday"&&this.api.j("web_player_rtr_ctrls")&& (iX7(this.C),this.X8.sG()),7===this.W.length&&this.W==="awesome"&&Mx7(this.api.getRootNode(),"ytp-color-party")):(this.W=u,u="awesome".indexOf(this.W)===0||"bday".indexOf(this.W)===0));if(!u&&(!this.api.isMutedByEmbedsMutedAutoplay()||DP2.includes(h))){var Z=this.api.getVideoData(),r,q;G=(r=this.progressBar)==null?void 0:(q=r.W)==null?void 0:q.isEnabled;r=Z?Z.uC:[];q=Gj?V:c;switch(h){case 80:W&&!d.CM&&(V1(this.HV,PLN(),"Anterior"),this.api.previousVideo(),u=!0);break;case 78:W&&!d.CM&&(V1(this.HV, qq(),"Siguiente"),this.api.nextVideo(),u=!0);break;case 74:this.api.MY()&&(this.api.startSeekCsiAction(),this.X?this.api.j("enable_key_press_seek_logging")?(u=xb(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.X.NS(-1,10,u)):this.X.NS(-1,10):V1(this.HV,{D:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{D:"path",AI:!0,K:"ytp-svg-fill",J:{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),u=!0);break;case 76:this.api.MY()&&(this.api.startSeekCsiAction(),this.X?this.api.j("enable_key_press_seek_logging")?(u=xb(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.X.NS(1,10,u)):this.X.NS(1,10):V1(this.HV,{D:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{D:"path",AI:!0,K:"ytp-svg-fill",J:{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),u=!0);break;case 37:this.api.MY()&&(this.api.startSeekCsiAction(),q?(q=QAD(r,this.api.getCurrentTime()*1E3),q!==-1&&this.X!=null&&(this.X.nA(-1,r[q].title),this.api.seekTo(r[q].startTime/1E3,void 0,void 0,void 0,53),u=!0)):(this.X?this.api.j("enable_key_press_seek_logging")?(u=xb(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.X.NS(-1,5,u)):this.X.NS(-1,5):V1(this.HV,{D:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},V:[{D:"path",AI:!0,K:"ytp-svg-fill",J:{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),u=!0));break;case 39:this.api.MY()&&(this.api.startSeekCsiAction(),q?this.api.j("web_enable_keyboard_shortcut_for_timely_actions")||(q=zVL(r,this.api.getCurrentTime()*1E3),q!==-1&&this.X!=null&&(this.X.nA(1,r[q].title),this.api.seekTo(r[q].startTime/1E3,void 0,void 0,void 0,52),u=!0)):(this.X!=null?this.api.j("enable_key_press_seek_logging")?(u=xb(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.X.NS(1,5,u)):this.X.NS(1, 5):V1(this.HV,{D:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{D:"path",AI:!0,K:"ytp-svg-fill",J:{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),u=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),$b(this.HV,this.api.getVolume(),!1)):(this.api.mute(),$b(this.HV,0,!0));u=!0;break;case 32:u=this.api.j("web_speedmaster_spacebar_control")?!this.api.B().CM:this.D5(G);break;case 75:u=this.D5(G);break;case 190:W?d.enableSpeedOptions&&Ut4(this)&&(u=this.api.getPlaybackRate(),this.api.setPlaybackRate(u+.25,!0),eiU(this.HV,!1),u=!0):this.api.MY()&&(this.step(1),u=!0);break;case 188:W? d.enableSpeedOptions&&Ut4(this)&&(u=this.api.getPlaybackRate(),this.api.setPlaybackRate(u-.25,!0),eiU(this.HV,!0),u=!0):this.api.MY()&&(this.step(-1),u=!0);break;case 70:YfN(this.api)&&(this.api.toggleFullscreen().catch(function(){}),u=!0); break;case 27:G?(this.progressBar.OT(),u=!0):this.N()&&(u=!0)}if(d.controlsType!=="3")switch(h){case 67:g.yB(this.api.Pi())&&(d=this.api.getOption("captions","track"),this.api.toggleSubtitles(),zik(this.HV,!d||d&&!d.displayName),u=!0);break;case 79:nH(this,"textOpacity");break;case 87:nH(this,"windowOpacity");break;case 187:case 61:nH(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:nH(this,"fontSizeIncrement",!0,!0)}var x;W||c||V||(h>=48&&h<=57?x=h-48:h>=96&&h<=105&&(x=h-96));x!=null&&this.api.MY()&& !this.api.j("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),d=this.api.getProgressState(),this.api.seekTo(x/10*(d.seekableEnd-d.seekableStart)+d.seekableStart,void 0,void 0,void 0,81),u=!0);u&&this.X8.sG()}this.G.hR=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:h,shiftKey:W,ctrlKey:c,altKey:V,metaKey:H,key:B,code:E,repeat:J},this.G);this.G.hR&&(u=!0,this.X8.sG());return u}; g.l.step=function(h){this.api.MY();if(this.api.getPlayerStateObject().isPaused()){var W=this.api.getVideoData().W;W&&(W=W.video)&&this.api.seekBy(h/(W.fps||30),void 0,void 0,h>0?77:78)}}; g.l.D5=function(h){if(!this.api.B().CM){var W;var c,V=(W=this.api.getVideoData())==null?void 0:(c=W.getPlayerResponse())==null?void 0:c.playabilityStatus;if(V){var H;W=((H=g.v(V.miniplayer,guf))==null?void 0:H.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else W=!1;W&&this.api.Iz("onExpandMiniplayer");h?this.progressBar.WA():(h=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.HV.Ex(h),h?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.l.dE=function(){g.Y$(this.Y);g.lX.prototype.dE.call(this)};g.n(j7,g.p);j7.prototype.FI=function(){var h=this.L.B(),W=h.G||this.L.j("web_player_hide_overflow_button_if_empty_menu")&&this.kQ.isEmpty();h=g.DE(h)&&g.Io(this.L)&&g.Y(this.L.getPlayerStateObject(),128);var c=this.L.getPlayerSize();this.visible=this.L.Lp()&&!h&&c.width>=240&&!this.L.getVideoData().B0&&!W&&!this.L.isEmbedsShortsMode();g.$y(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.L.XK();this.L.logVisibility(this.element,this.visible&&this.C)}; j7.prototype.o1=function(h){g.p.prototype.o1.call(this,h);this.L.logVisibility(this.element,this.visible&&h)}; j7.prototype.dE=function(){g.p.prototype.dE.call(this);g.cD(this.element,"ytp-overflow-button-visible")};g.n(C5N,g.Vv);g.l=C5N.prototype;g.l.rO=function(h){h=nS(h);g.jk(this.element,h)&&(g.jk(this.X,h)||g.jk(this.closeButton,h)||sg(this))}; g.l.NU=function(){g.Vv.prototype.NU.call(this);this.L.PY(this.element)}; g.l.show=function(){this.Of&&this.L.publish("OVERFLOW_PANEL_OPENED");g.Vv.prototype.show.call(this);this.element.setAttribute("aria-modal","true");FYk(this,!0)}; g.l.hide=function(){g.Vv.prototype.hide.call(this);this.element.removeAttribute("aria-modal");FYk(this,!1)}; g.l.onFullscreenToggled=function(h){!h&&this.Qz()&&sg(this)}; g.l.isEmpty=function(){return this.actionButtons.length===0}; g.l.focus=function(){for(var h=g.e(this.actionButtons),W=h.next();!W.done;W=h.next())if(W=W.value,W.Of){W.focus();break}};g.n(yv7,g.p);yv7.prototype.onClick=function(h){g.eY(h,this.api)&&this.api.playVideoAt(this.index)};g.n(P5T,g.Vv);g.l=P5T.prototype;g.l.show=function(){g.Vv.prototype.show.call(this);this.X.U(this.api,"videodatachange",this.Pa);this.X.U(this.api,"onPlaylistUpdate",this.Pa);this.Pa()}; g.l.hide=function(){g.Vv.prototype.hide.call(this);g.zR(this.X);this.updatePlaylist(null)}; g.l.Pa=function(){this.updatePlaylist(this.api.getPlaylist());this.api.B().G&&(this.vk("ytp-playlist-menu-title-name").removeAttribute("href"),this.G&&(this.v0(this.G),this.G=null))}; g.l.j$=function(){var h=this.playlist,W=h.author,c=W?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",V={CURRENT_POSITION:String(h.index+1),PLAYLIST_LENGTH:String(h.length)};W&&(V.AUTHOR=W);this.update({title:h.title,subtitle:g.hl(c,V),playlisturl:this.api.getVideoUrl(!0)});W=h.W;if(W===this.Y)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[h.index];else{c=g.e(this.playlistData);for(V=c.next();!V.done;V=c.next())V.value.dispose(); c=h.length;this.playlistData=[];for(V=0;V=this.W&&!h.G&&!W.isAd()&&!this.api.isEmbedsShortsMode()}else h=!1;this.visible=h;this.pJ(this.visible);g.$y(this.element,"ytp-search-button-visible",this.visible);g.$y(this.element,"ytp-show-search-title",!this.api.Lp());this.api.logVisibility(this.element,this.visible&&this.C)}; Q1.prototype.o1=function(h){g.p.prototype.o1.call(this,h);this.api.logVisibility(this.element,this.visible&&h)};g.n(LH,g.p); LH.prototype.trigger=function(h,W,c,V){this.show();if(this.W&&h!==this.W){var H=1;this.G&&(H=Yok(this));vO5(this,H,!1);IZQ(this)}this.W=h;this.Y=this.W===-1?this.Z:this.T;h="";W?(this.S+=W,h=(this.W===-1?"\u2212":"+")+" "+this.S):this.S=0;this.updateValue(this.W===-1?"durationBack":"durationForward",h);if(this.X==="hidden"||this.X==="fading-out")W=0,this.X==="fading-out"&&(W=Yok(this),pCQ(this)),mtT(this,W),this.X!=="fading-out"&&oOT(this,this.Y.querySelector(".ytp-seek-overlay-arrow-persistent")),this.X= "fading-in";else if(this.X==="fading-in"||this.X==="lingering")W=this.Y.querySelector(".ytp-seek-overlay-duration"),h=g.DF(this.L.B().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,W.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale(1)"},{offset:.64,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale("+h+")"},{offset:1,transform:"scale(1)"}],{duration:184}),pCQ(this),this.X==="lingering"&&(this.N.stop(),this.N.start());c&&Ook(this,c,V)}; LH.prototype.eN=function(h,W,c,V){this.trigger(h,V)}; LH.prototype.NS=function(h,W,c){this.trigger(h,W);c&&(h=h===-1?this.T.visualElement:this.Z.visualElement,c={seekData:c},(W=g.q_())&&g.IW(mt)(void 0,W,h,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",c,void 0))}; LH.prototype.nA=function(h,W,c){this.trigger(h,void 0,W,c)};g.n(ij,g.p);ij.prototype.onClick=function(){var h=this,W=this.api.B(),c=this.api.getVideoData(this.api.getPresentingPlayerType()),V=this.api.getPlaylistId();W=this.api.j("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):W.getVideoUrl(c.videoId,V,void 0,!0);if(navigator.share)try{var H=navigator.share({title:c.title,url:W});H instanceof Promise&&H.catch(function(B){gOk(h,B)})}catch(B){B instanceof Error&&gOk(this,B)}else this.X.d8(),sg(this.W,this.element,!1); this.api.logClick(this.element)}; ij.prototype.FI=function(){var h=this.api.B(),W=this.api.isEmbedsShortsMode();g.$y(this.element,"ytp-show-share-title",g.DE(h)&&!W);this.X.fG()&&W?(h=(this.api.Bk().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.oY(this.element,"right",h+"px")):W&&g.oY(this.element,"right","0px");this.updateValue("icon",{D:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{D:"path",AI:!0,K:"ytp-svg-fill",J:{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=So7(this);g.$y(this.element,"ytp-share-button-visible",this.visible);this.pJ(this.visible);this.tooltip.XK();this.api.logVisibility(this.element,So7(this)&&this.C)}; ij.prototype.o1=function(h){g.p.prototype.o1.call(this,h);this.api.logVisibility(this.element,this.visible&&h)}; ij.prototype.dE=function(){g.p.prototype.dE.call(this);g.cD(this.element,"ytp-share-button-visible")};g.n(wCN,g.Vv);g.l=wCN.prototype;g.l.Jb=function(h){h=nS(h);g.jk(this.N,h)||g.jk(this.closeButton,h)||sg(this)}; g.l.NU=function(){g.Vv.prototype.NU.call(this);this.tooltip.PY(this.element);this.api.logVisibility(this.X,!1);for(var h=g.e(this.G),W=h.next();!W.done;W=h.next())W=W.value,this.api.hasVe(W.element)&&this.api.logVisibility(W.element,!1)}; g.l.show=function(){var h=this.Of;g.Vv.prototype.show.call(this);this.FI();h||this.api.Iz("onSharePanelOpened")}; g.l.V6=function(){this.Of&&this.FI()}; g.l.FI=function(){var h=this;g.he(this.element,"ytp-share-panel-loading");g.cD(this.element,"ytp-share-panel-fail");var W=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.Y.checked;W.getSharePanelCommand&&U0(this.api.qB(),W.getSharePanelCommand,{includeListId:c}).then(function(V){h.gE()||(g.cD(h.element,"ytp-share-panel-loading"),Wid(h,V))}); W=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",W);this.updateValue("linkText",W);this.updateValue("shareLinkWithUrl",g.hl("Compartir v\u00ednculo $URL",{URL:W}));il(this.X);this.api.logVisibility(this.X,!0)}; g.l.onFullscreenToggled=function(h){!h&&this.Qz()&&sg(this)}; g.l.focus=function(){this.X.focus()}; g.l.dE=function(){g.Vv.prototype.dE.call(this);kxl(this)};g.n($y7,K1);g.l=$y7.prototype;g.l.dE=function(){Rkd(this);K1.prototype.dE.call(this)}; g.l.q6=function(h){h.target!==this.dismissButton.element&&(this.TY(!1),this.L.Iz("innertubeCommand",this.onClickCommand))}; g.l.eM=function(){this.Jk=!0;this.TY(!0);this.pU()}; g.l.vdV=function(h){this.S=h;this.pU()}; g.l.onVideoDataChange=function(h,W){if(h=!!W.videoId&&this.videoId!==W.videoId)this.videoId=W.videoId,this.Jk=!1,this.Pk=!0,this.Z=this.Wk=!1,Rkd(this),EoL(this,!1),this.W=this.X=!1,A4(this),s65(this);if(h||!W.videoId)this.XI=this.Y=!1;var c,V;if(W==null?0:(c=W.getPlayerResponse())==null?0:(V=c.videoDetails)==null?0:V.isLiveContent)this.RV(!1);else{var H,B,E;W=g.v((H=W.getWatchNextResponse())==null?void 0:(B=H.playerOverlays)==null?void 0:(E=B.playerOverlayRenderer)==null?void 0:E.productsInVideoOverlayRenderer, t86);this.S=this.enabled=!1;if(W){if(H=W==null?void 0:W.featuredProductsEntityKey){B=g.ey.getState().entities;var J;if((J=Ok(B,"featuredProductsEntity",H))==null?0:J.productsData){this.RV(!1);return}}if(!W.text||!W.onClickCommand||!W.timing){this.RV(!1);return}this.enabled=!0;if(!this.Y){var u;J=(u=W.badgeInteractionLogging)==null?void 0:u.trackingParams;(this.Y=!!J)&&this.L.setTrackingParams(this.badge.element,J||null)}if(!this.XI){var d;if(this.XI=!((d=W.dismissButton)==null||!d.trackingParams)){var G; this.L.setTrackingParams(this.dismissButton.element,((G=W.dismissButton)==null?void 0:G.trackingParams)||null)}}W.isContentForward&&(u=W.productsData,EoL(this,!0),s65(this),u=BG4(this,u),d=[],u.length>0&&d.push(u[0]),u.length>1&&(G=new g.p({D:"div",K:"ytp-suggested-action-more-products-icon"}),g.X(this,G),d.push(G),d.push.apply(d,g.rN(u.slice(1)))),this.N=new g.p({D:"div",V:d,K:"ytp-suggested-action-content-forward-container"}),g.X(this,this.N),this.mW.element.append(this.N.element));this.text=g.EJ(W.text); var Z;if(u=(Z=W.dismissButton)==null?void 0:Z.a11yLabel)this.yg=g.EJ(u);this.onClickCommand=W.onClickCommand;this.timing=W.timing;this.Fi()}DBL(this);iY(this);this.pU()}}; g.l.NK=function(){return!this.S&&this.enabled&&!this.Jk&&!this.L.Lp()&&!this.lW&&(this.Z||this.Pk)}; g.l.nW=function(h){K1.prototype.nW.call(this,h);if(this.X||this.W)this.timing&&KH(this.timing.preview)&&(this.X=!1,A4(this),this.W=!1,A4(this),this.L.zw("shopping_overlay_preview_collapsed"),this.L.zw("shopping_overlay_preview_expanded"),h=U4(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),KH(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.L.zw("shopping_overlay_expanded"),h.end=this.timing.expanded.endSec*1E3),this.L.Fi([h])), this.Wk=!0,iY(this);A4(this)}; g.l.RV=function(h){(this.Z=h)?(L1(this),iY(this,!1)):(Rkd(this),this.CM.start());this.pU()}; g.l.Fi=function(h){var W=this.timing;h=(h===void 0?0:h)+this.L.getCurrentTime();var c=[],V=W.visible,H=W.preview;W=W.expanded;KH(V)&&(cVN(V,h),c.push(U4(V.startSec,V.endSec,"shopping_overlay_visible")));KH(H)&&(cVN(H,h),V=H.startSec+1,c.push(U4(H.startSec,V,"shopping_overlay_preview_collapsed")),c.push(U4(V,H.endSec,"shopping_overlay_preview_expanded")));KH(W)&&(cVN(W,h),c.push(U4(W.startSec,W.endSec,"shopping_overlay_expanded")));this.L.Fi(c)}; g.l.pU=function(){K1.prototype.pU.call(this);this.L.getRootNode()&&g.$y(this.L.getRootNode(),"ytp-shopping-pill-shown",this.NK())};g.n(dyL,g.p); dyL.prototype.FI=function(){var h=this.api.B();this.pJ(g.DE(h)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Of);var W=this.api.getVideoData(),c=!1;this.api.getPresentingPlayerType()===2?c=!!W.videoId&&!!W.isListed&&!!W.author&&!!W.Ak&&!!W.profilePicture:g.DE(h)&&(c=!!W.videoId&&!!W.Ak&&!!W.profilePicture&&!W.B0&&!h.G&&!(h.S&&this.api.getPlayerSize().width<200));var V=W.profilePicture;h=g.DE(h)?W.expandedTitle:W.author;V=V===void 0? "":V;h=h===void 0?"":h;c?(this.W!==V&&(this.X.style.backgroundImage="url("+V+")",this.W=V),this.updateValue("channelLogoLabel",g.hl("Foto o imagen de $CHANNEL_NAME",{CHANNEL_NAME:h})),g.he(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.cD(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.X,c&&this.C);this.api.logVisibility(this.channelName,c&&this.C);this.subscribeButton&&(this.subscribeButton.channelId=W.e5);this.updateValue("expandedTitle",W.expandedTitle)};g.n(CH,g.Vv);CH.prototype.show=function(){g.Vv.prototype.show.call(this);this.X.start()}; CH.prototype.hide=function(){g.Vv.prototype.hide.call(this);this.X.stop()}; CH.prototype.n$=function(h,W){h==="dataloaded"&&((this.Ah=W.Ah,this.Lj=W.Lj,isNaN(this.Ah)||isNaN(this.Lj))?this.G&&(this.L.zw("intro"),this.L.removeEventListener(g.mZ("intro"),this.S),this.L.removeEventListener(g.om("intro"),this.N),this.L.removeEventListener("onShowControls",this.Y),this.hide(),this.G=!1):(this.L.addEventListener(g.mZ("intro"),this.S),this.L.addEventListener(g.om("intro"),this.N),this.L.addEventListener("onShowControls",this.Y),h=new g.t$(this.Ah,this.Lj,{priority:9,namespace:"intro"}), this.L.Fi([h]),this.G=!0))};g.n(MB,g.p);MB.prototype.onClick=function(){this.L.w6()}; MB.prototype.FI=function(){var h=!0;g.DE(this.L.B())&&(h=h&&this.L.Bk().getPlayerSize().width>=480);this.pJ(h);h=this.updateValue;var W=this.L.j("delhi_modern_web_player_icons"),c=W?{D:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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"}}]}:{D:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{D:"path",AI:!0,J:{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"}}]};W=W?{D:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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"}}]}:{D:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{D:"path",AI:!0,K:"ytp-svg-fill",J:{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"}}]};h.call(this,"icon",this.L.vB()?c:W)};g.n(Ztd,g.p);Ztd.prototype.dE=function(){this.X=null;g.p.prototype.dE.call(this)};g.n(FC,g.p);FC.prototype.onClick=function(){this.L.Iz("innertubeCommand",this.W)}; FC.prototype.T=function(){if(this.L.j("delhi_modern_web_player")){var h=this.L.getPlayerSize();h.width&&(this.element.style.maxWidth=h.width*.25+"px")}}; FC.prototype.Wk=function(h){h!==this.S&&(this.update({chapterTitle:h,ariaLabel:h}),this.S=h);h?this.show():this.hide()}; FC.prototype.XI=function(){this.X.disabled=this.W==null;g.$y(this.X,"ytp-chapter-container-disabled",this.X.disabled);this.kd()};g.n(y1,FC);y1.prototype.onClickCommand=function(h){g.v(h,as)&&this.kd()}; y1.prototype.updateVideoData=function(h,W){var c,V,H;h=g.v((c=W.getWatchNextResponse())==null?void 0:(V=c.playerOverlays)==null?void 0:(H=V.playerOverlayRenderer)==null?void 0:H.decoratedPlayerBarRenderer,Sz);c=g.v(h==null?void 0:h.playerBarActionButton,g.DJ);if(this.L.j("web_player_updated_entrypoint")){this.Z=Ta(c==null?void 0:c.text);var B;V=(B=c==null?void 0:c.tooltip)!=null?B:"Ver cap\u00edtulo";this.N.setAttribute("title",V)}this.W=c==null?void 0:c.command;FC.prototype.XI.call(this)}; y1.prototype.kd=function(){var h=this.Z,W=this.Y.X,c,V=((c=this.L.getLoopRange())==null?void 0:c.type)==="clips";if(W.length>1&&!V){h=this.L.getProgressState().current*1E3;c=rD(W,h);h=W[c].title||"Cap\u00edtulos";if(c!==this.currentIndex||this.G)this.L.Iz("innertubeCommand",W[c].onActiveCommand),this.currentIndex=c;this.G=!1}else this.G=!0;FC.prototype.Wk.call(this,h)};g.n(Pm,g.sJ);Pm.prototype.W=function(){var h;(h=this.element.parentElement)==null||h.classList.contains("ytp-right-controls-left");(this.X=!this.X)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; Pm.prototype.isExpanded=function(){return this.X};g.n(fH,g.p);fH.prototype.G=function(h){g.Y(h.state,32)?qyp(this,this.api.X2()):this.Of&&(g.Y(h.state,16)||g.Y(h.state,1))||this.fade.hide()}; fH.prototype.SL=function(){var h=this.api.getPlayerStateObject();(g.Y(h,32)||g.Y(h,16))&&xyk(this)}; fH.prototype.Y=function(){this.frameIndex=NaN;xyk(this)}; fH.prototype.hide=function(){this.X&&qyp(this,null);g.p.prototype.hide.call(this)};g.n(l0l,g.p);g.l=l0l.prototype;g.l.onClick=function(){var h=this;if(this.L.B().Ak||this.L.B().S){this.L.logClick(this.element);try{this.L.toggleFullscreen().catch(function(W){h.Rh(W)})}catch(W){this.Rh(W)}}else sg(this.message,this.element,!0)}; g.l.Rh=function(h){String(h).includes("fullscreen error")?g.Lx(h):g.Qq(h);this.Mr()}; g.l.Mr=function(){this.disable();this.message.qd(this.element,!0)}; g.l.bE=function(){dQ()===this.L.getRootNode()?this.G.start():(this.G.stop(),this.message&&this.message.hide())}; g.l.d$=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var h=window.screen.width*.9,W=window.screen.height*.9,c=Math.max(window.outerWidth,window.innerWidth),V=Math.max(window.outerHeight,window.innerHeight);if(c>V!==h>W){var H=c;c=V;V=H}h>c&&W>V&&this.Mr()}}; g.l.disable=function(){var h=this;if(!this.message){var W=(RI(["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.Vv(this.L,{D:"div",LM:["ytp-popup","ytp-generic-popup"], J:{role:"alert",tabindex:"0"},V:[W[0],{D:"a",J:{href:"https://support.google.com/youtube/answer/6276924",target:this.L.B().T},YN:W[2]},W[4]]},100,!0);this.message.hide();g.X(this,this.message);this.message.subscribe("show",function(c){h.W.ip(h.message,c)}); g.ge(this.L,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.X)();this.X=null}}; g.l.FI=function(){var h=YfN(this.L),W=this.L.B().S&&this.L.getPlayerSize().width<250;this.pJ(h&&!W);var c;((c=this.L.B())==null?0:c.j("embeds_use_parent_visibility_in_ve_logging"))?this.L.logVisibility(this.element,this.Of&&this.C):this.L.logVisibility(this.element,this.Of)}; g.l.J2=function(h){if(h){var W=g.X1(this.L,"Salir de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir de pantalla completa"});document.activeElement===this.element&&this.L.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(c){g.Lx(c)})}else W=g.X1(this.L,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"}); h=noN(this,h);W=this.message?null:W;this.L.B().j("player_tooltip_data_title_killswitch")?this.update({title:W,icon:h}):this.update({"tooltip-title":W,"aria-label":W,icon:h});this.W.sX().XK()}; g.l.dE=function(){this.message||((0,this.X)(),this.X=null);g.p.prototype.dE.call(this)}; g.l.o1=function(h){g.p.prototype.o1.call(this,h);var W;((W=this.L.B())==null?0:W.j("embeds_use_parent_visibility_in_ve_logging"))&&this.L.logVisibility(this.element,this.Of&&h)};g.n(bj,g.p);bj.prototype.onClick=function(){this.L.logClick(this.element);this.L.seekBy(this.X,!0);var h=this.X>0?1:-1,W=Math.abs(this.X),c=this.L.QX().Mf;c&&c.NS(h,W);this.W.isActive()?this.G=!0:(h=["ytp-jump-spin"],this.X<0&&h.push("backwards"),this.element.classList.add.apply(this.element.classList,g.rN(h)),g.pO(this.W))};g.n(T_,FC);T_.prototype.onClickCommand=function(h){g.v(h,NFl)&&this.kd()}; T_.prototype.updateVideoData=function(){var h,W;this.W=(h=a0v(this))==null?void 0:(W=h.onTap)==null?void 0:W.innertubeCommand;FC.prototype.XI.call(this)}; T_.prototype.kd=function(){var h="",W=this.Y.S,c,V=(c=a0v(this))==null?void 0:c.headerTitle;c=V?g.EJ(V):"";var H;V=((H=this.L.getLoopRange())==null?void 0:H.type)==="clips";W.length>1&&!V&&(h=this.L.getProgressState().current*1E3,H=eVD(W,h),h=H!=null?W[H].title:c,H!=null&&H!==this.currentIndex&&(this.L.Iz("innertubeCommand",W[H].onActiveCommand),this.currentIndex=H));FC.prototype.Wk.call(this,h)};g.n(NB,g.p);NB.prototype.onClick=function(){this.L.Iz("onCollapseMiniplayer");this.L.logClick(this.element)}; NB.prototype.FI=function(){this.visible=!this.L.isFullscreen();this.pJ(this.visible);this.L.logVisibility(this.element,this.visible&&this.C)}; NB.prototype.o1=function(h){g.p.prototype.o1.call(this,h);this.L.logVisibility(this.element,this.visible&&h)};g.n(XC,g.p);XC.prototype.init=function(){this.updateValue("minvalue",this.Y);this.updateValue("maxvalue",this.N);this.updateValue("stepvalue",this.Z);this.updateValue("slidervalue",this.X);zkD(this,this.X)}; XC.prototype.G=function(){t4(this,Number(this.W.value));this.W.focus()}; XC.prototype.S=function(h){if(!h.defaultPrevented){switch(h.code){case "ArrowDown":h=-this.Z;break;case "ArrowUp":h=this.Z;break;default:return}t4(this,Math.min(this.N,Math.max(Number((this.X+h).toFixed(2)),this.Y)))}};g.n(vm,XC);vm.prototype.onVolumeChange=function(h){if(this.T)this.T=!1;else{var W=h.volume;W===0||h.muted?t4(this,0):t4(this,W)}}; vm.prototype.G=function(){XC.prototype.G.call(this);this.XI(this.X)}; vm.prototype.Wk=function(h){var W=-h.deltaY;W=h.deltaMode===WheelEvent.DOM_DELTA_LINE||h.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.vr(this.X+W,0,100):g.vr(this.X+g.vr(W/10,-10,10),0,100);W===0?t4(this,0):t4(this,W);this.XI(W);h.preventDefault();h.stopPropagation()}; vm.prototype.Pk=function(h,W){this.T=!0;h===0||W?this.L.mute():(this.L.isMuted()&&this.L.unMute(),this.L.setVolume(h))};g.n(Q67,g.p);g.n(o$,g.p);g.l=o$.prototype;g.l.H2=function(){if(!this.L.Nq()){this.updateValue("dataTooltipOffsetY",-120);var h;(h=this.X)!=null&&mw(h,!0);var W;(W=this.X)!=null&&W.X.stop()}}; g.l.xR=function(){var h;(h=this.X)!=null&&h.X.start()}; g.l.nI=function(h){this.visible=h.width>=300||this.Nn;this.pJ(this.visible);this.L.logVisibility(this.element,this.visible&&this.C)}; g.l.XH=function(){this.L.B().mW?this.L.isMuted()?this.L.unMute():this.L.mute():sg(this.message,this.element,!0);this.L.logClick(this.element)}; g.l.Nuz=function(h){if(this.L.B().mW&&this.X)if(h.target===this.G){var W;if(!this.L.Nq()||((W=this.X)==null?0:W.isVisible))this.XH();else{var c;(c=this.X)!=null&&mw(c,!0)}}else{var V;(V=this.X)!=null&&mw(V,!0)}else this.XH()}; g.l.onVolumeChange=function(h){this.setVolume(h.volume,h.muted)}; g.l.setVolume=function(h,W){var c=this,V=W?0:h/100;h=V===0?1:h>50?1:0;if(this.T!==h){var H=this.Z;isNaN(H)?UyQ(this,h):fKL(this.mW,function(E){UyQ(c,H+(c.T-H)*E)},250); this.T=h}V=V===0?1:0;if(this.S!==V){var B=this.Pk;isNaN(B)?CE4(this,V):fKL(this.DH,function(E){CE4(c,B+(c.S-B)*E)},250); this.S=V}itT(this,W)}; g.l.o1=function(h){g.p.prototype.o1.call(this,h);this.L.logVisibility(this.element,this.visible&&h)}; var Kip=["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"],AVQ=["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.n(g.pH,g.p);g.l=g.pH.prototype;g.l.onStateChange=function(h){this.So(h.state);var W;((W=this.L.B())==null?0:W.j("embeds_use_parent_visibility_in_ve_logging"))&&this.L.logVisibility(this.element,this.Of&&this.C)}; g.l.So=function(h){var W=g.OP(this.L.getVideoData()),c=!1;h.isOrWillBePlaying()?h=W?4:2:g.Y(h,2)?(h=3,c=W):h=1;this.element.disabled=c;if(this.X!==h){W=null;switch(h){case 2:W=g.X1(this.L,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:W="Volver a reproducir";this.update({"data-title-no-tooltip":"Volver a reproducir"});break;case 1:W=g.X1(this.L,"Reproducir","k");this.update({"data-title-no-tooltip":"Reproducir"});break;case 4:W="Detener la reproducci\u00f3n en vivo",this.update({"data-title-no-tooltip":"Detener la reproducci\u00f3n en vivo"})}h=== 3?this.L.B().j("player_tooltip_data_title_killswitch")?this.update({title:W,icon:Msk(this,h)}):this.update({"tooltip-title":W,icon:Msk(this,h)}):(this.L.j("player_tooltip_data_title_killswitch")?this.update({title:W}):this.update({"tooltip-title":W}),(W=Msk(this,h))&&this.X&&this.X!==3?T3l(this.transition,this.element,W):this.updateValue("icon",W));this.tooltip.XK();this.X=h}}; g.l.onVideoDataChange=function(){g.$y(this.element,"ytp-play-button-playlist",g.Io(this.L))}; g.l.D5=function(h){this.L.logClick(this.element);if(this.L.getPlayerStateObject().isOrWillBePlaying())this.L.pauseVideo();else{if(this.L.isMinimized()&&this.L.getPlayerStateObject().isCued()){var W={},c;if((c=this.L.getVideoData())==null?0:c.N)W.cttAuthInfo={token:this.L.getVideoData().N,videoId:this.L.getVideoData().videoId};Qy("direct_playback",W);this.L.Ot().timerName="direct_playback"}this.L.playVideo()}this.L.isMinimized()&&(h==null?void 0:h.type)==="click"&&this.element.blur()}; g.l.o1=function(h){g.p.prototype.o1.call(this,h);var W;((W=this.L.B())==null?0:W.j("embeds_use_parent_visibility_in_ve_logging"))&&this.L.logVisibility(this.element,this.Of&&h)};g.n(g.I$,g.p);g.l=g.I$.prototype;g.l.onVideoDataChange=function(){PEU(this);this.Y&&(this.v0(this.Y),this.Y=null);this.videoData=this.L.getVideoData(1);if(this.playlist=this.L.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.Y=this.U(this.L,"progresssync",this.IK);this.G=f04(this);yVU(this);this.va(this.L.Bk().getPlayerSize())}; g.l.va=function(h){h=h===void 0?this.L.Bk().getPlayerSize():h;var W,c=((W=this.L.getLoopRange())==null?void 0:W.type)==="clips";h=(g.Io(this.L)||this.X&&g.Df(this.L)&&!this.L.j("web_hide_next_button")||bt7(this))&&!c&&(this.X||h.width>=400);this.pJ(h);this.L.logVisibility(this.element,h)}; g.l.onClick=function(h){this.L.logClick(this.element);var W=!0;this.S?W=g.eY(h,this.L):h.preventDefault();W&&(this.X&&this.L.getPresentingPlayerType()===5?this.L.publish("ytoprerollinternstitialnext"):this.X?(zP(this.L.Ot()),this.L.publish("playlistnextbuttonclicked",this.element),this.L.nextVideo(!0)):this.G?this.L.seekTo(0):(zP(this.L.Ot()),this.L.publish("playlistprevbuttonclicked",this.element),this.L.previousVideo(!0)))}; g.l.IK=function(){var h=f04(this);h!==this.G&&(this.G=h,yVU(this))}; g.l.dE=function(){this.W&&(this.W(),this.W=null);PEU(this);g.p.prototype.dE.call(this)};g.n(NGv,g.p);g.l=NGv.prototype;g.l.M3=function(h){this.zb(h.pageX);this.bF(h.pageX+h.deltaX);X$5(this)}; g.l.zb=function(h){this.XI=h-this.Nn}; g.l.bF=function(h){h-=this.Nn;!isNaN(this.XI)&&this.thumbnails.length>0&&(this.T=h-this.XI,this.thumbnails.length>0&&this.T!==0&&(this.G=this.Z+this.T,h=p$D(this,this.G),this.G<=this.X/2&&this.G>=ooT(this)?(this.api.seekTo(h,!1,void 0,void 0,25),g.oY(this.Pk,"transform","translateX("+(this.G-this.X/2)+"px)"),TGl(this,h)):this.G=this.Z))}; g.l.xr=function(){this.Wk&&(this.Wk.ix=!0);var h=(0,g.aC)()-this.Rz<300;if(Math.abs(this.T)<5&&!h){this.Rz=(0,g.aC)();h=this.XI+this.T;var W=this.X/2-h;this.zb(h);this.bF(h+W);X$5(this);this.api.logClick(this.N)}X$5(this)}; g.l.tb=function(){Yb(this,this.api.getCurrentTime())}; g.l.play=function(h){this.api.seekTo(p$D(this,this.G),void 0,void 0,void 0,26);this.api.playVideo();h&&this.api.logClick(this.playButton)}; g.l.onExit=function(h){this.api.seekTo(this.CM,void 0,void 0,void 0,63);this.api.playVideo();h&&this.api.logClick(this.dismissButton)}; g.l.I1=function(h,W){this.Nn=h;this.X=W;Yb(this,this.api.getCurrentTime())}; g.l.enable=function(){this.isEnabled||(this.isEnabled=!0,this.CM=this.api.getCurrentTime(),TGl(this,this.CM),g.$y(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.mW=this.U(this.element,"wheel",this.M3),this.logVisibility(this.isEnabled))}; g.l.disable=function(){this.isEnabled=!1;this.hide();g.$y(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.mW&&this.v0(this.mW);this.logVisibility(this.isEnabled)}; g.l.reset=function(){this.disable();this.Y=[];this.zV=!1}; g.l.logVisibility=function(h){this.api.logVisibility(this.element,h);this.api.logVisibility(this.N,h);this.api.logVisibility(this.dismissButton,h);this.api.logVisibility(this.playButton,h)}; g.l.dE=function(){for(;this.W.length;){var h=void 0;(h=this.W.pop())==null||h.dispose()}g.p.prototype.dE.call(this)}; g.n(ts4,g.p);g.n(vop,g.p);g.n(I0D,g.p);g.n(O4,g.p);O4.prototype.fJ=function(h){return h==="PLAY_PROGRESS"?this.Z:h==="LOAD_PROGRESS"?this.S:h==="LIVE_BUFFER"?this.N:this.G};SyN.prototype.update=function(h,W,c,V){c=c===void 0?0:c;this.width=W;this.Y=c;this.X=W-c-(V===void 0?0:V);this.position=g.vr(h,c,c+this.X);this.G=this.position-c;this.W=this.G/this.X};g.n(gol,g.p);g.n(g.Dn,g.sJ);g.l=g.Dn.prototype; g.l.Mm=function(){var h=!1,W=this.api.getVideoData();if(!W)return h;this.api.zw("timedMarkerCueRange");kDL(this);for(var c=g.e(W.rE),V=c.next();!V.done;V=c.next()){V=V.value;var H=void 0,B=(H=this.yg[V])==null?void 0:H.markerType,E=void 0;H=(E=this.yg[V])==null?void 0:E.markers;if(!H)break;if(B==="MARKER_TYPE_TIMESTAMPS"){h=g.e(H);for(B=h.next();!B.done;B=h.next()){E=B.value;B=new gol;var J=void 0;B.title=((J=E.title)==null?void 0:J.simpleText)||"";B.timeRangeStartMillis=Number(E.startMillis);B.X= Number(E.durationMillis);var u=J=void 0;B.onActiveCommand=(u=(J=E.onActive)==null?void 0:J.innertubeCommand)!=null?u:void 0;sz7(this,B)}HGU(this,this.S);h=this.S;B=this.mF;E=[];J=null;for(u=0;ud&&(J.end=d);d=LY5(d,d+Z);E.push(d);J=d;B[d.id]=h[u].onActiveCommand}}this.api.Fi(E);a:{h=g.e(H);for(H=h.next();!H.done;H=h.next())if(H.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){h= !1;break a}h=!0}h&&(this.uC=this.yg[V]);h=!0}else if(B==="MARKER_TYPE_HEATMAP"){V=this.yg[V];G=d=B=u=J=E=void 0;if(V&&V.markers){H=(B=(G=V.markersMetadata)==null?void 0:(d=G.heatmapMetadata)==null?void 0:d.minHeightDp)!=null?B:0;B=(E=(u=V.markersMetadata)==null?void 0:(J=u.heatmapMetadata)==null?void 0:J.maxHeightDp)!=null?E:60;E=this.X.length;J=null;for(u=0;u=G&&x<=Z&&d.push(q)}B>0&&(this.Wk.style.height=B+"px");G=this.Y[u];Z=d;q=H;var z=B,L=u===0;L=L===void 0?!1:L;YyL(G,z);r=Z;x=G.W;L=L===void 0?!1:L;var M=1E3/r.length,U=[];U.push({x:0,y:100});for(var y=0;y0&&(J=d[d.length-1])}g.wD(this)}B=void 0;H=[];if(V=(B=V.markersDecoration)==null?void 0:B.timedMarkerDecorations)for(V=g.e(V),B=V.next();!B.done;B=V.next())B=B.value,u=J=E=void 0,H.push({visibleTimeRangeStartMillis:(E=B.visibleTimeRangeStartMillis)!= null?E:-1,visibleTimeRangeEndMillis:(J=B.visibleTimeRangeEndMillis)!=null?J:-1,decorationTimeMillis:(u=B.decorationTimeMillis)!=null?u:NaN,label:B.label?g.EJ(B.label):""});V=H;this.heatMarkersDecorations=V}}W.Xu=this.S;g.$y(this.element,"ytp-timed-markers-enabled",h);return h}; g.l.I1=function(){g.wD(this);WI(this);HGU(this,this.S);if(this.W){var h=g.wb(this.element).x||0;this.W.I1(h,this.N)}}; g.l.ZRB=function(){var h=this.api.getVideoData();h&&x4p(this,h)}; g.l.onClickCommand=function(h){if(h=g.v(h,as)){var W=h.key;h.isVisible&&W&&JyL(this,W)}}; g.l.v9N=function(h){this.api.Iz("innertubeCommand",this.mF[h.id])}; g.l.kd=function(){WI(this);var h=this.api.getCurrentTime();(hthis.clipEnd)&&this.N0()}; g.l.BT=function(h){if(!h.defaultPrevented){var W=!1;switch(h.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);W=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);W=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);W=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);W=!0;break;case 38:this.api.j("enable_key_press_seek_logging")&&BI(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);W=!0;break;case 40:this.api.j("enable_key_press_seek_logging")&&BI(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),W=!0}W&&h.preventDefault()}}; g.l.n$=function(h,W){this.updateVideoData(W,h==="newdata")}; g.l.ZY=function(){this.n$("newdata",this.api.getVideoData())}; g.l.updateVideoData=function(h,W){W=W===void 0?!1:W;var c=!!h&&h.oT();c&&(qe(h)||ryk(this)?this.tE=!1:this.tE=h.allowLiveDvr,g.$y(this.api.getRootNode(),"ytp-enable-live-buffer",!(h==null||!qe(h))),x4p(this,h));MMN(this,this.api.MY());if(W){if(c){W=h.clipEnd;this.clipStart=h.clipStart;this.clipEnd=W;E7(this);for($Y(this,this.XI,this.uW);this.Y.length>0;)this.Y.pop().dispose();this.heatMarkersDecorations=[];this.hI={};var V;(V=this.W)==null||V.reset();G9(this);g.$y(this.api.getRootNode(),"ytp-fine-scrubbing-exp", gD(this))}else this.N0();this.al()}if(h){var H;V=((H=this.kZ)==null?void 0:H.type)==="clips";if(H=!h.isLivePlayback){H=this.api.getVideoData();W=g.gu(H);c=WcN(H);var B;H=W!=null||c!=null&&c.length>0||((B=H.b9)==null?void 0:B.length)>0}if(H&&!V){B=this.api.getVideoData();V=g.gu(B);H=!1;if(V==null?0:V.markersMap){H=this.api.getVideoData();var E;H.AX=((E=V.visibleOnLoad)==null?void 0:E.key)||H.AX;E=g.e(V.markersMap);for(V=E.next();!V.done;V=E.next())V=V.value,V.key&&V.value&&(this.hI[V.key]=V.value, V.value.onChapterRepeat&&(H.X9O=V.value.onChapterRepeat));H.AX!=null&&JyL(this,H.AX);H=!0}var J;if(((J=B.b9)==null?void 0:J.length)>0){J=g.ey.getState().entities;E=g.e(B.b9);for(V=E.next();!V.done;V=E.next()){V=V.value;c=void 0;W=(c=Ok(J,"macroMarkersListEntity",V))==null?void 0:c.markersList;var u=c=void 0;if(((c=W)==null?void 0:c.markerType)==="MARKER_TYPE_TIMESTAMPS"||((u=W)==null?void 0:u.markerType)==="MARKER_TYPE_HEATMAP")this.yg[V]=W}H=this.Mm()||H}!H&&(J=WcN(B))&&(VMT(this,J),B.uC=this.X, cyd(this));l15(this,null);h.Pg&&this.Y.length===0&&(h=h.Pg,J=h.key,h.isVisible&&J&&JyL(this,J))}else DyN(this),kDL(this)}WI(this)}; g.l.rH=function(h){this.Z&&!g.Y(h.state,32)&&this.api.getPresentingPlayerType()!==3&&this.Z.cancel();var W;((W=this.W)==null?0:W.isEnabled)&&g.Y(h.state,8)&&this.api.pauseVideo();h=this.api.getPresentingPlayerType()===2||!this.api.MY()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.$y(this.H9,"ytp-hide-scrubber-button",h)}; g.l.gN=function(h){var W=!!this.kZ!==!!h,c=this.kZ;this.kZ=h;l15(this,c);(h==null?void 0:h.type)!=="clips"&&h||(h?(this.updateValue("clipstarticon",iSN()),this.updateValue("clipendicon",iSN()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",lLl()),this.updateValue("clipendicon",xzN()),this.updateValue("clipstarttitle","Mirar video completo"),this.updateValue("clipendtitle","Mirar video completo")),W&&(this.updateVideoData(this.api.getVideoData(), !0),g.wD(this)),E7(this));$Y(this,this.XI,this.uW)}; g.l.bRf=function(){this.api.publish("progressBarHoverStart")}; g.l.DdW=function(h,W,c){var V=g.wb(this.element),H=h6(this).X,B=c?c.getAttribute("data-tooltip"):void 0,E=c?c.getAttribute("data-position"):void 0,J=c?c.getAttribute("data-offset-y"):void 0;J=J?Number(J):0;E&&(h=KV(this.G,Number(c.getAttribute("data-position")),0)*H+g.wb(this.progressBar).x);this.Ak.x=h-V.x;this.Ak.y=W-V.y;h=h6(this);c=HI(this,h);W=0;var u;if((u=this.api.getVideoData())==null?0:qe(u))(u=this.api.getProgressState().seekableEnd)&&c>u&&(c=u,h.position=KV(this.G,u)*h6(this).X),W=this.G.W; ryk(this)&&(W=this.G.W);u=B||g.xx(this.tE?c-this.G.X:c-W);W=h.position+this.Gu;c-=this.api.FA();var d;if((d=this.W)==null||!d.isEnabled)if(this.api.X2()){if(this.X.length>1){d=s7(this,this.Ak.x,!0);if(!this.kZ)for(V=0;V1)for(V=0;V0)for(d=this.Ak.x,V=g.e(this.S),H=V.next();!H.done;H=V.next())H=H.value,E=kb(this,H.timeRangeStartMillis/ (this.G.X*1E3),h6(this)),g.$y(H.element,"ytp-timed-marker-hover",E<=d&&E+6>=d);V=this.tooltip.scale;d=this.api.j("delhi_modern_web_player")?67:45;J=(isNaN(J)?0:J)-d*V;this.api.j("web_key_moments_markers")?this.uC?(d=eVD(this.S,c*1E3),d=d!=null?this.S[d].title:""):(d=rD(this.X,c*1E3),d=this.X[d].title):(d=rD(this.X,c*1E3),d=this.X[d].title);d||(J+=16*V);this.tooltip.scale===.6&&(g.lo(this.api.B())?(J=this.api.Bk().getPlayerSize().height-225,V=this.api.j("delhi_modern_web_player")?70:110,J=d?J+V:J+ V+16):J=d?110:126);V=rD(this.X,c*1E3);this.zV=jzd(this,c,V)?V:jzd(this,c,V+1)?V+1:-1;g.$y(this.api.getRootNode(),"ytp-progress-bar-snap",this.zV!==-1&&this.X.length>1);V=!1;H=g.e(this.heatMarkersDecorations);for(E=H.next();!E.done;E=H.next()){E=E.value;var G=c*1E3;G>=E.visibleTimeRangeStartMillis&&G<=E.visibleTimeRangeEndMillis&&(d=E.label,u=g.xx(E.decorationTimeMillis/1E3),this.api.j("web_heat_marker_use_current_time")&&(u=g.xx(HI(this,h))),V=!0)}this.Qj!==V&&(this.Qj=V,this.api.logVisibility(this.BV, this.Qj));g.$y(this.api.getRootNode(),"ytp-progress-bar-decoration",V);V=160*this.tooltip.scale*2;H=d.length*(this.T?8.55:5.7);H=H<=V?H:V;E=H<160*this.tooltip.scale;V=3;!E&&H/2>h.position&&(V=1);!E&&H/2>this.N-h.position&&(V=2);this.api.B().S&&(J-=10);this.Y.length&&this.Y[0].oT&&(J-=14*(this.T?2:1),this.CM||(this.CM=!0,this.api.logVisibility(this.Wk,this.CM)));var Z;if(gD(this)&&(((Z=this.W)==null?0:Z.isEnabled)||this.rE>0)){var r;J-=((r=this.W)==null?0:r.isEnabled)?J6(this):this.rE}Z=void 0;gD(this)&& !this.api.j("web_player_hide_fine_scrubbing_edu")&&(Z="Arrastra hacia arriba para realizar una b\u00fasqueda m\u00e1s precisa",this.Nn||(this.Nn=!0,this.api.logVisibility(this.q$,this.Nn)));this.tooltip.On(W,c,u,!!B,J,d,V,Z)}else this.tooltip.On(W,c,u,!!B,J);g.he(this.api.getRootNode(),"ytp-progress-bar-hover");ZGd(this)}; g.l.zAN=function(){this.al();g.cD(this.api.getRootNode(),"ytp-progress-bar-hover");this.CM&&(this.CM=!1,this.api.logVisibility(this.Wk,this.CM));this.Nn&&(this.Nn=!1,this.api.logVisibility(this.q$,this.Nn));this.api.j("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.l.f3f=function(h,W){var c=g.wb(this.element);this.RR=h-c.x;gD(this)&&this.W&&(this.W.zV?Yb(this.W,this.api.getCurrentTime()):my4(this.W),this.W.show(),g.$y(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.W.isEnabled));this.Uy&&(this.Uy.dispose(),this.Uy=null);this.hG=W;this.Ns=this.api.getCurrentTime();this.X.length>1&&this.zV!==-1?this.api.seekTo(this.X[this.zV].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(HI(this,h6(this)),!1,void 0,void 0,7);g.he(this.element,"ytp-drag");(this.lJ= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.l.kxI=function(){if(gD(this)&&this.W){var h=J6(this);this.rE>=h*.5?(this.W.enable(),Yb(this.W,this.api.getCurrentTime()),CPv(this,h)):G9(this)}if(g.Y(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var W;if((W=this.W)==null?0:W.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.X.length>1&&this.zV!==-1)this.api.j("html5_enable_progress_bar_slide_seek_logging")&&BI(this,this.Ns,this.X[this.zV].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.X[this.zV].startTime/1E3,void 0,void 0,void 0,7);else{h=HI(this,h6(this));this.api.j("html5_enable_progress_bar_slide_seek_logging")&&BI(this,this.Ns,h,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(h,void 0,void 0,void 0,7);W=g.e(this.heatMarkersDecorations);for(var c=W.next();!c.done;c=W.next())c=c.value,h*1E3>=c.visibleTimeRangeStartMillis&&h*1E3<=c.visibleTimeRangeEndMillis&& this.api.logClick(this.BV)}g.cD(this.element,"ytp-drag");this.DH&&(this.Pk.src=this.DH);this.lJ&&!g.Y(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.l.QR9=function(h,W){var c=this,V=h6(this),H=HI(this,V);this.api.Bk().Ap||(V.position>this.RR+2?this.fR&&(this.Pk.src=this.fR):V.position1);this.pJ(h&&this.L.Bk().getPlayerSize().width>=400);this.L.logVisibility(this.element,this.Of);var W=1;h&&this.isActive()&&(W=2);if(this.X!==W){this.X=W;h=this.L.j("delhi_modern_web_player_icons");switch(W){case 1:this.updateValue("icon",h?{D:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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"}}]}:{D:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{D:"path",AI:!0,J:{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", h?{D:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{D:"path",J:{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.rPl())}g.$y(this.element,"ytp-remote-button-active",this.isActive())}}; ZK.prototype.W=function(){if(this.L.getOption("remote","quickCast"))this.L.setOption("remote","quickCast",!0);else{var h=this.YZ,W=this.element;if(h.Qz())h.NU();else{h.initialize();a:{var c=g.e(h.EX.items);for(var V=c.next();!V.done;V=c.next())if(V=V.value,V.priority===1){c=V;break a}c=null}c&&(c.open(),h.qd(W));h.qd(W)}}this.L.logClick(this.element)};g.n(r3,g.p);r3.prototype.X=function(h){var W=this.L.B(),c=400;this.L.j("web_player_small_hbp_settings_menu")&&W.N?c=300:W.S&&(c=200);h=this.W&&h.width>=c;this.pJ(h);this.L.j("embeds_use_parent_visibility_in_ve_logging")?this.L.logVisibility(this.element,h&&this.C):this.L.logVisibility(this.element,h)}; r3.prototype.G=function(){if(this.YZ.Of)this.YZ.NU();else{var h=g.yB(this.L.Pi());h&&!h.loaded&&(h.Et("tracklist",{includeAsr:!0}).length||h.load());this.L.logClick(this.element);this.YZ.qd(this.element)}}; r3.prototype.updateBadge=function(){var h=this.L.isHdr(),W=this.L.getPresentingPlayerType(),c=W!==2&&W!==3,V=g.Sb(this.L),H=c&&!!g.OV(this.L.Pi());W=H&&V.displayMode===1;V=H&&V.displayMode===2;c=(H=W||V)||!c?null:this.L.getPlaybackQuality();g.$y(this.element,"ytp-hdr-quality-badge",h);g.$y(this.element,"ytp-hd-quality-badge",!h&&(c==="hd1080"||c==="hd1440"));g.$y(this.element,"ytp-4k-quality-badge",!h&&c==="hd2160");g.$y(this.element,"ytp-5k-quality-badge",!h&&c==="hd2880");g.$y(this.element,"ytp-8k-quality-badge", !h&&c==="highres");g.$y(this.element,"ytp-3d-badge-grey",!h&&H&&W);g.$y(this.element,"ytp-3d-badge",!h&&H&&V)};g.n(qw,jY);qw.prototype.isLoaded=function(){var h=g.XV(this.L.Pi());return h!==void 0&&h.loaded}; qw.prototype.FI=function(){g.XV(this.L.Pi())!==void 0&&this.L.getPresentingPlayerType()!==3?this.X||(this.YZ.zx(this),this.X=!0):this.X&&(this.YZ.qY(this),this.X=!1);aB(this,this.isLoaded())}; qw.prototype.onSelect=function(h){this.isLoaded();h?this.L.loadModule("annotations_module"):this.L.unloadModule("annotations_module");this.L.publish("annotationvisibility",h)}; qw.prototype.dE=function(){this.X&&this.YZ.qY(this);jY.prototype.dE.call(this)};g.n(xY,g.Xt);xY.prototype.FI=function(){var h=this.L.getAvailableAudioTracks();h.length>1?(this.Yy(g.xw(h,this.X)),this.tracks=g.D2(h,this.X,this),this.countLabel.rW(h.length?" ("+h.length+")":""),this.publish("size-change"),this.BB(this.X(this.L.getAudioTrack())),this.enable(!0)):this.enable(!1)}; xY.prototype.Oy=function(h){g.Xt.prototype.Oy.call(this,h);this.L.setAudioTrack(this.tracks[h]);this.YZ.AG()}; xY.prototype.X=function(h){return h.toString()};g.n(lR,jY); lR.prototype.W=function(){var h=this.L.getPresentingPlayerType();if(h!==2&&h!==3&&g.Df(this.L))this.X||(this.YZ.zx(this),this.X=!0,this.G.push(this.U(this.L,"videodatachange",this.W)),this.G.push(this.U(this.L,"videoplayerreset",this.W)),this.G.push(this.U(this.L,"onPlaylistUpdate",this.W)),this.G.push(this.U(this.L,"autonavchange",this.Y)),h=this.L.getVideoData(),this.Y(h.autonavState),this.L.logVisibility(this.element,this.X));else if(this.X){this.YZ.qY(this);this.X=!1;h=g.e(this.G);for(var W=h.next();!W.done;W= h.next())this.v0(W.value)}}; lR.prototype.Y=function(h){aB(this,h!==1)}; lR.prototype.onSelect=function(h){this.L.gt(h?2:1);this.X&&(this.L.logVisibility(this.element,this.X),this.L.logClick(this.element))}; lR.prototype.dE=function(){this.X&&this.YZ.qY(this);jY.prototype.dE.call(this)};g.n(yyT,g.Eg);yyT.prototype.onClick=function(h){h.preventDefault();var W,c;(W=g.CQ(this.L))==null||(c=W.zA())==null||c.NU();var V,H;(V=g.CQ(this.L))==null||(H=V.IE())==null||H.qd(h.target)};g.n(PPh,g.Xt);g.l=PPh.prototype; g.l.mV=function(){var h=this.L.getPresentingPlayerType();if(h!==2&&h!==3){this.Pk=this.L.m_();var W=this.L.getAvailableQualityLevels();if(this.X){this.Y={};h=g.LQ(this.L,"getAvailableQualityData",[]);h=g.e(h);for(var c=h.next();!c.done;c=h.next())c=c.value,this.Y[c.qualityLabel]=c;h=Object.keys(this.Y);W[W.length-1]==="auto"&&h.push("auto");this.DH=new Set(W)}else if(this.N){c=g.LQ(this.L,"getAvailableQualityData",[]);h=[];c=g.e(c);for(var V=c.next();!V.done;V=c.next())V=V.value,this.T[V.quality]= V,V.quality&&h.push(V.quality);W[W.length-1]==="auto"&&h.push("auto")}else h=W;g.Mo4(this.L)&&this.L.hs()&&h.unshift("missing-qualities");W=this.L.app.ZH();c=W.getVideoData();if(!c.W||!c.W.video||c.W.video.qualityOrdinal<1080||c.P4)W=!1;else{V=/^qsa/.test(c.clientPlaybackNonce);var H="r";c.W.id.indexOf(";")>=0&&(V=/^[a-p]/.test(c.clientPlaybackNonce),H="x");V?(W.GV("iqss",{trigger:H},!0),W=!0):W=!1}W&&h.unshift("inline-survey");this.Yy(h);W=this.L.getVideoData().cotn?!0:!1;c=this.Wk.zj();c=!g.lo(this.L.B())|| !(W===void 0?0:W)||!(c===void 0||c);W=this.W;c=c===void 0?!1:c;W.Zb&&g.$y(W.vk("ytp-panel-footer"),"ytp-panel-hide-footer",c===void 0?!1:c);if(h.length){this.CI();this.enable(!0);return}}this.enable(!1)}; g.l.CI=function(){if(this.X){var h=this.L.getPreferredQuality();this.DH.has(h)&&(this.S=this.L.getPlaybackQuality(),this.XI=this.L.getPlaybackQualityLabel(),h==="auto"?(this.BB(h),this.rW(this.GS(h))):this.BB(this.XI))}else h=this.L.getPreferredQuality(),this.options[h]&&(this.S=this.L.getPlaybackQuality(),this.BB(h),h==="auto"&&this.rW(this.GS(h)))}; g.l.Oy=function(h){if(h!=="missing-qualities"){g.Xt.prototype.Oy.call(this,h);var W=this.X?this.Y[h]:this.T[h];var c=W==null?void 0:W.quality,V=W==null?void 0:W.formatId,H=W==null?void 0:W.paygatedQualityDetails;W=H==null?void 0:H.endpoint;if(H){var B;H=(B=this.options[h])==null?void 0:B.element;this.L.logClick(H)}if(this.X){var E,J;if((E=g.v(W,g.Fqc))==null?0:(J=E.popup)==null?0:J.notificationActionRenderer)this.L.Iz("innertubeCommand",W);else if(W){this.L.Iz("innertubeCommand",W);return}V?this.L.setPlaybackQuality(c, V):this.L.setPlaybackQuality(c)}else{if(this.N){var u,d;if((u=g.v(W,g.Fqc))==null?0:(d=u.popup)==null?0:d.notificationActionRenderer)this.L.Iz("innertubeCommand",W);else if(W){this.L.Iz("innertubeCommand",W);return}}this.L.setPlaybackQuality(h)}this.YZ.NU();this.mV()}}; g.l.open=function(){for(var h=g.e(Object.values(this.options)),W=h.next();!W.done;W=h.next()){W=W.value;var c=void 0;this.L.hasVe((c=W)==null?void 0:c.element)&&(c=void 0,this.L.logVisibility((c=W)==null?void 0:c.element,!0))}g.Xt.prototype.open.call(this);this.L.logClick(this.element)}; g.l.Ue=function(h,W,c){var V=this;if(h==="missing-qualities")return new g.Eg({D:"a",LM:["ytp-menuitem"],J:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.L.B().T,tabindex:"0",role:"menuitemradio"},V:[{D:"div",LM:["ytp-menuitem-label"],YN:"{{label}}"}]},W,this.GS(h));if(h!=="inline-survey"){var H,B=(H=this.X?this.Y[h]:this.T[h])==null?void 0:H.paygatedQualityDetails;H=B==null?void 0:B.veType;B=B==null?void 0:B.trackingParams;W=g.Xt.prototype.Ue.call(this,h,W,c);B?(this.L.createServerVe(W.element, this,!0),this.L.setTrackingParams(W.element,B)):H&&this.L.createClientVe(W.element,this,H,!0);return W}h=[{D:"span",YN:"\u00bfSe ve bien?"}];c=g.e([!0,!1]);B=c.next();for(H={};!B.done;H={bM:void 0},B=c.next())H.bM=B.value,B=new g.p({D:"span",K:"ytp-menuitem-inline-survey-response",V:[H.bM?L1Q():jIp()],J:{tabindex:"0",role:"button"}}),B.listen("click",function(E){return function(){var J=V.L.app.ZH();J.GV("iqsr",{tu:E.bM});J.getVideoData().P4=!0;V.YZ.NU();V.mV()}}(H)),h.push(B); return new g.Eg({D:"div",K:"ytp-menuitem",J:{"aria-disabled":"true"},V:[{D:"div",LM:["ytp-menuitem-label"],V:h}]},W)}; g.l.GS=function(h,W){W=W===void 0?!1:W;if(h==="missing-qualities")return{D:"div",YN:"\u00bfFaltan opciones?"};if(h==="inline-survey")return"";var c=this.N||this.X?[TpQ(this,h,W,!1)]:[bGk(this,h)];var V=this.L.getPreferredQuality();W||V!=="auto"||h!=="auto"||(c.push(" "),this.X?c.push(TpQ(this,this.XI,W,!0,["ytp-menu-label-secondary"])):this.N?c.push(TpQ(this,this.S,W,!0,["ytp-menu-label-secondary"])):c.push(bGk(this,this.S,["ytp-menu-label-secondary"])));return{D:"div",V:c}};g.n(nw,XC);nw.prototype.G=function(){XC.prototype.G.call(this);this.T&&Npp(this)}; nw.prototype.DH=function(){this.XI()}; nw.prototype.Pk=function(){this.L.setPlaybackRate(this.X,!0)}; nw.prototype.S=function(h){XC.prototype.S.call(this,h);this.XI();Npp(this);h.preventDefault()};g.n(jV,g.p);g.l=jV.prototype;g.l.init=function(){this.xH(this.X);this.updateValue("minvalue",this.W);this.updateValue("maxvalue",this.G)}; g.l.Th=function(h){if(!h.defaultPrevented){switch(h.keyCode){case 37:case 40:var W=-this.Z;break;case 39:case 38:W=this.Z;break;default:return}this.xH(this.X+W);h.preventDefault()}}; g.l.EY=function(h){var W=this.X;W+=(h.deltaX||-h.deltaY)<0?-this.T:this.T;this.xH(W);h.preventDefault()}; g.l.VC=function(h){h=(h-g.wb(this.Y).x)/this.XI*this.range+this.W;this.xH(h)}; g.l.xH=function(h,W){W=W===void 0?"":W;h=g.vr(h,this.W,this.G);W===""&&(W=h.toString());this.updateValue("valuenow",h);this.updateValue("valuetext",W);this.Wk.style.left=(h-this.W)/this.range*(this.XI-this.zV)+"px";this.X=h}; g.l.focus=function(){this.mW.focus()};g.n(aU,jV);aU.prototype.Pk=function(){this.L.setPlaybackRate(this.X,!0)}; aU.prototype.xH=function(h){jV.prototype.xH.call(this,h,tMl(this,h).toString());this.N&&(XjT(this),this.DH())}; aU.prototype.updateValues=function(){var h=this.L.getPlaybackRate();tMl(this,this.X)!==h&&(this.xH(h),XjT(this))};g.n(vr7,g.sJ);vr7.prototype.focus=function(){this.X.focus()};g.n(m4d,A_);g.n(orN,g.Xt);g.l=orN.prototype;g.l.GS=function(h){return h==="1"?"Normal":h.toLocaleString()}; g.l.FI=function(){var h,W=(h=this.L.getVideoData())==null?void 0:h.Gw();h=this.L.getPresentingPlayerType(W);this.enable(h!==2&&h!==3);Y85(this)}; g.l.Yy=function(h){g.Xt.prototype.Yy.call(this,h);this.S&&this.S.W.focus()}; g.l.nT=function(h){g.Xt.prototype.nT.call(this,h);h?(this.XI=this.U(this.L,"onPlaybackRateChange",this.onPlaybackRateChange),Y85(this),pjd(this,this.L.getPlaybackRate())):(this.v0(this.XI),this.XI=null)}; g.l.onPlaybackRateChange=function(h){var W=this.L.getPlaybackRate();!this.Y&&this.T.includes(W)||I1N(this,W);pjd(this,h)}; g.l.Ue=function(h,W,c){return h===this.X&&OGT(this.L)?g.Xt.prototype.Ue.call(this,h,W,c,{D:"div",K:"ytp-speed-slider-menu-footer",V:[this.S]}):g.Xt.prototype.Ue.call(this,h,W,c)}; g.l.Oy=function(h){g.Xt.prototype.Oy.call(this,h);h===this.X?this.L.setPlaybackRate(this.N,!0):this.L.setPlaybackRate(Number(h),!0);OGT(this.L)&&h===this.X||this.YZ.AG()}; g.l.aB=function(h){var W=h===this.X;this.Y=!1;W&&eV(this.L)&&!OGT(this.L)?(h=new m4d(this.L),g.Ft(this.YZ,h)):g.Xt.prototype.aB.call(this,h)};g.n(grk,g.Xt);g.l=grk.prototype;g.l.BB=function(h){g.Xt.prototype.BB.call(this,h)}; g.l.jD=function(h){return h.option.toString()}; g.l.getOption=function(h){return this.settings[h]}; g.l.GS=function(h){return this.getOption(h).text||""}; g.l.Oy=function(h){g.Xt.prototype.Oy.call(this,h);this.publish("settingChange",this.setting,this.settings[h].option)};g.n(Qa,g.Um);Qa.prototype.H5=function(h){for(var W=g.e(Object.keys(h)),c=W.next();!c.done;c=W.next()){var V=c.value;if(c=this.J3[V]){var H=h[V].toString();V=!!h[V+"Override"];c.options[H]&&(c.BB(H),c.Y.element.setAttribute("aria-checked",String(!V)),c.X.element.setAttribute("aria-checked",String(V)))}}}; Qa.prototype.RD=function(h,W){this.publish("settingChange",h,W)};g.n(Lw,g.Xt);Lw.prototype.X=function(h){return h.languageCode}; Lw.prototype.GS=function(h){return this.languages[h].languageName||""}; Lw.prototype.Oy=function(h){this.publish("select",h);this.L.logClick(this.element);g.ye(this.YZ)};g.n(kh7,g.Xt);g.l=kh7.prototype;g.l.gY=function(h){return g.GF(h)?"__off__":h.displayName}; g.l.GS=function(h){return h==="__off__"?"Desactivados":h==="__translate__"?"Traducci\u00f3n autom\u00e1tica":h==="__contribute__"?"Agregar subt\u00edtulos":h==="__correction__"?"Sugerir correcci\u00f3n de subt\u00edtulos":(h==="__off__"?{}:this.tracks[h]).displayName}; g.l.Oy=function(h){if(h==="__translate__")this.X.open();else if(h==="__contribute__"){this.L.pauseVideo();this.L.isFullscreen()&&this.L.toggleFullscreen();var W=g.kl(this.L.B(),this.L.getVideoData());g.T3(W)}else if(h==="__correction__"){this.L.pauseVideo();this.L.isFullscreen()&&this.L.toggleFullscreen();var c=hUL(this);iR(this,c);g.Xt.prototype.Oy.call(this,this.gY(c));var V,H;c=(W=this.L.getVideoData().getPlayerResponse())==null?void 0:(V=W.captions)==null?void 0:(H=V.playerCaptionsTracklistRenderer)== null?void 0:H.openTranscriptCommand;this.L.Iz("innertubeCommand",c);this.YZ.AG();this.Y&&this.L.logClick(this.Y)}else{if(h==="__correction__"){this.L.pauseVideo();this.L.isFullscreen()&&this.L.toggleFullscreen();W=hUL(this);iR(this,W);g.Xt.prototype.Oy.call(this,this.gY(W));var B,E;W=(c=this.L.getVideoData().getPlayerResponse())==null?void 0:(B=c.captions)==null?void 0:(E=B.playerCaptionsTracklistRenderer)==null?void 0:E.openTranscriptCommand;this.L.Iz("innertubeCommand",W)}else this.L.logClick(this.element), iR(this,h==="__off__"?{}:this.tracks[h]),g.Xt.prototype.Oy.call(this,h);this.YZ.AG()}}; g.l.FI=function(){var h=this.L.getOptions();h=h&&h.indexOf("captions")!==-1;var W=this.L.getVideoData(),c=W&&W.JX,V,H=!((V=this.L.getVideoData())==null||!g.Gr(V));V={};if(h||c){var B;if(h){var E=this.L.getOption("captions","track");V=this.L.getOption("captions","tracklist",{includeAsr:!0});var J=H?[]:this.L.getOption("captions","translationLanguages");this.tracks=g.D2(V,this.gY,this);H=g.xw(V,this.gY);var u,d;hUL(this)&&((B=W.getPlayerResponse())==null?0:(u=B.captions)==null?0:(d=u.playerCaptionsTracklistRenderer)== null?0:d.openTranscriptCommand)&&H.push("__correction__");if(J.length&&!g.GF(E)){if((B=E.translationLanguage)&&B.languageName){var G=B.languageName;B=J.findIndex(function(Z){return Z.languageName===G}); CTv(J,B)}D4N(this.X,J);H.push("__translate__")}B=this.gY(E)}else this.tracks={},H=[],B="__off__";H.unshift("__off__");this.tracks.__off__={};c&&H.unshift("__contribute__");this.tracks[B]||(this.tracks[B]=E,H.push(B));this.Yy(H);this.BB(B);E&&E.translationLanguage?this.X.BB(this.X.X(E.translationLanguage)):xw5(this.X);h&&this.N.H5(this.L.getSubtitlesUserSettings());this.countLabel.rW(V&&V.length?" ("+V.length+")":"");this.publish("size-change");this.L.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.l.Ab=function(h){var W=this.L.getOption("captions","track");W=g.qx(W);W.translationLanguage=this.X.languages[h];iR(this,W)}; g.l.RD=function(h,W){if(h==="reset")this.L.resetSubtitlesUserSettings();else{var c={};c[h]=W;this.L.updateSubtitlesUserSettings(c)}wj4(this,!0);this.S.start();this.N.H5(this.L.getSubtitlesUserSettings())}; g.l.ORO=function(h){h||g.Y$(this.S)}; g.l.dE=function(){g.Y$(this.S);g.Xt.prototype.dE.call(this)}; g.l.open=function(){g.Xt.prototype.open.call(this);this.options.__correction__&&!this.Y&&(this.Y=this.options.__correction__.element,this.L.createClientVe(this.Y,this,167341),this.L.logVisibility(this.Y,!0))};g.n(WpT,g.MH);g.l=WpT.prototype; g.l.initialize=function(){if(!this.isInitialized){var h=this.L.B();this.isInitialized=!0;try{this.yW=new PPh(this.L,this)}catch(c){g.Lx(Error("QualityMenuItem creation failed"))}g.X(this,this.yW);var W=new kh7(this.L,this);g.X(this,W);h.G||(W=new qw(this.L,this),g.X(this,W));h.enableSpeedOptions&&(W=new orN(this.L,this),g.X(this,W));(g.DE(h)||h.N)&&(h.W||h.Rz)&&(W=new yyT(this.L,this),g.X(this,W));h.hq&&!h.j("web_player_move_autonav_toggle")&&(h=new lR(this.L,this),g.X(this,h));h=new xY(this.L,this); g.X(this,h);this.L.publish("settingsMenuInitialized");FcQ(this.settingsButton,this.EX.sU())}}; g.l.zx=function(h){this.initialize();this.EX.zx(h);FcQ(this.settingsButton,this.EX.sU())}; g.l.qY=function(h){this.Of&&this.EX.sU()<=1&&this.hide();this.EX.qY(h);FcQ(this.settingsButton,this.EX.sU())}; g.l.qd=function(h){this.initialize();this.EX.sU()>0&&g.MH.prototype.qd.call(this,h)}; g.l.NU=function(){this.Bu?this.Bu=!1:g.MH.prototype.NU.call(this)}; g.l.show=function(){g.MH.prototype.show.call(this);g.he(this.L.getRootNode(),"ytp-settings-shown")}; g.l.hide=function(){g.MH.prototype.hide.call(this);g.cD(this.L.getRootNode(),"ytp-settings-shown")}; g.l.RV=function(h){this.L.logVisibility(this.element,h);this.L.publish("settingsMenuVisibilityChanged",h)};g.n($5N,g.p);g.l=$5N.prototype;g.l.onClick=function(){if(Kw(this)&&(this.L.toggleSubtitles(),this.L.logClick(this.element),!this.isEnabled())){var h=!1,W=g.Pt(g.yY(),65);g.lo(this.L.B())&&W!=null&&(h=!W);h&&this.L.B().j("web_player_nitrate_promo_tooltip")&&this.L.publish("showpromotooltip",this.element)}}; g.l.byk=function(h){var W,c;(W=g.CQ(this.L))==null||(c=W.zA())==null||c.qd(h)}; g.l.isEnabled=function(){var h=this.L.getOption("captions","track");return!(!h||!h.displayName)}; g.l.FI=function(){var h=Kw(this),W=300;this.L.B().S&&(W=480);this.L.j("delhi_modern_web_player_icons")&&this.updateValue("icon",ViQ(this));if(this.L.B().N){this.updateValue("title",g.X1(this.L,"Subt\u00edtulos","c"));this.update({"tooltip-title":g.X1(this.L,"Subt\u00edtulos","c")});this.update({"data-title-no-tooltip":"Subt\u00edtulos"});var c=h}else{if(h)(c=this.vk("ytp-subtitles-button-icon"))==null||c.setAttribute("fill-opacity","1"),this.L.B().j("player_tooltip_data_title_killswitch")?this.updateValue("title", g.X1(this.L,"Subt\u00edtulos","c")):this.update({"tooltip-title":g.X1(this.L,"Subt\u00edtulos","c")}),this.update({"data-title-no-tooltip":"Subt\u00edtulos"});else{if(this.L.j("delhi_modern_web_player_icons")){var V;(V=this.vk("ytp-subtitles-button-icon"))==null||V.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var H;(H=this.vk("ytp-subtitles-button-icon"))==null||H.setAttribute("fill-opacity","0.3")}this.updateValue("title","Subt\u00edtulos no disponibles");this.update({"tooltip-title":"Subt\u00edtulos no disponibles"}); this.update({"data-title-no-tooltip":"Subt\u00edtulos no disponibles"})}c=!0}this.tooltip.XK();c=c&&this.L.Bk().getPlayerSize().width>=W;this.pJ(c);this.L.j("embeds_use_parent_visibility_in_ve_logging")?this.L.logVisibility(this.element,c&&this.C):this.L.logVisibility(this.element,c);h?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.l.o1=function(h){g.p.prototype.o1.call(this,h);this.L.B().j("embeds_use_parent_visibility_in_ve_logging")&&this.L.logVisibility(this.element,this.Of&&h)};g.n(g.A6,g.p);g.l=g.A6.prototype;g.l.canShowCountdown=function(){return!Cw(this)&&!U7(this)}; g.l.kd=function(){var h=this.api.Bk().getPlayerSize().width,W=this.T;this.api.B().S&&(W=400);W=h>=W&&(!U7(this)||!g.Y(this.api.getPlayerStateObject(),64));this.pJ(W);g.$y(this.element,"ytp-time-display-allow-autohide",W&&h<400);h=this.api.getProgressState();if(W){var c=this.api.getPresentingPlayerType();W=this.api.getCurrentTime(c,!1);this.W&&(W-=h.airingStart);Cw(this)&&(W-=this.kZ.startTimeMs/1E3);this.canShowCountdown()&&this.G&&(W-=this.api.getDuration(c,!1));var V=g.xx(W);this.Y!==V&&(this.updateValue("currenttime", V),this.Y=V);c=Cw(this)?(this.kZ.endTimeMs-this.kZ.startTimeMs)/1E3:this.api.getDuration(c,!1);V=g.xx(c);this.N!==V&&(this.updateValue("duration",V),this.N=V,W&&(W=g.hl("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.xx(W,!0),DURATION:g.xx(c,!0)}),this.updateValue("timeDisplayAriaLabel",W)))}shd(this,h.isAtLiveHead);Hhv(this,this.api.getLoopRange())}; g.l.onLoopRangeChange=function(h){var W=this.kZ!==h;this.kZ=h;W&&(this.kd(),BqN(this))}; g.l.HyO=function(){this.api.setLoopRange(null)}; g.l.e9M=function(){this.G=!this.G;this.kd()}; g.l.onVideoDataChange=function(h,W,c){this.updateVideoData((this.api.B().j("enable_topsoil_wta_for_halftime")||this.api.B().j("enable_topsoil_wta_for_halftime_live_infra"))&&c===2?this.api.getVideoData(1):W);this.kd();BqN(this)}; g.l.updateVideoData=function(h){this.Mb=h.isLivePlayback&&!h.Ef;this.W=qe(h);this.isPremiere=h.isPremiere;g.$y(this.element,"ytp-live",U7(this));this.api.j("delhi_modern_web_player")&&this.vk("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.l.onClick=function(h){h.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.l.dE=function(){this.X&&this.X();g.p.prototype.dE.call(this)};g.n(RUN,g.p);g.l=RUN.prototype;g.l.bE=function(){var h=this.api.fG();this.G!==h&&(this.G=h,Eid(this,this.api.getVolume(),this.api.isMuted()))}; g.l.SD=function(h){this.pJ(h.width>=350)}; g.l.uQ=function(h){if(!h.defaultPrevented){var W=h.keyCode,c=null;W===37?c=this.volume-5:W===39?c=this.volume+5:W===36?c=0:W===35&&(c=100);c!==null&&(c=g.vr(c,0,100),c===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),h.preventDefault())}}; g.l.OY=function(h){var W=h.deltaX||-h.deltaY;h.deltaMode?this.api.setVolume(this.volume+(W<0?-10:10)):this.api.setVolume(this.volume+g.vr(W/10,-10,10));h.preventDefault()}; g.l.XVH=function(){Mw(this,this.X,!0,this.W,this.api.Nq());this.T=this.volume;this.api.isMuted()&&this.api.unMute()}; g.l.wO=function(h){var W=this.G?78:52,c=this.G?18:12;h-=g.wb(this.Z).x;this.api.setVolume(g.vr((h-c/2)/(W-c),0,1)*100)}; g.l.lhE=function(){Mw(this,this.X,!1,this.W,this.api.Nq());this.volume===0&&(this.api.mute(),this.api.setVolume(this.T))}; g.l.onVolumeChange=function(h){Eid(this,h.volume,h.muted)}; g.l.JJ=function(){Mw(this,this.X,this.isDragging,this.W,this.api.Nq())}; g.l.dE=function(){g.p.prototype.dE.call(this);g.cD(this.S,"ytp-volume-slider-active")};g.n(FF,g.p); FF.prototype.onVideoDataChange=function(){var h=this.api.B();this.I1();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).B0;this.pJ(this.visible);this.api.logVisibility(this.element,this.visible&&this.C);if(this.visible){var W=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",W)}h.G&&(this.X&&(this.v0(this.X),this.X=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.he(this.element,"no-link")); W=this.api.B();h=this.api.getVideoData();var c="";W.G||(W=g.GJ(W),W.indexOf("www.")===0&&(W=W.substring(4)),c=g.xM(h)?"Mirar en YouTube Music":W==="youtube.com"?"Mirar en YouTube":g.hl("Mirar en $WEBSITE",{WEBSITE:W}));this.api.j("player_tooltip_data_title_killswitch")?this.updateValue("title",c):this.updateValue("tooltip-title",c)}; FF.prototype.onClick=function(h){this.api.j("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var W=this.api.B(),c=this.api.getVideoUrl(!g.l7(h),!1,!0,!0);if(g.DE(W)){var V={};g.DE(W)&&g.LQ(this.api,"addEmbedsConversionTrackingParams",[V]);c=g.r0(c,V)}g.zv(c,this.api,h);this.api.j("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; FF.prototype.I1=function(){var h={D:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},V:[{D:"path",AI:!0,K:"ytp-svg-fill",J:{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 "}}]}, W=28666,c=this.api.getVideoData();this.api.isEmbedsShortsMode()?h={D:"svg",J:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},V:[{D:"path",J:{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.xM(c)&&(h={D:"svg",J:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},V:[{D:"path",J:{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"}},{D:"path",J:{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"}},{D:"path",J:{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"}},{D:"path",J:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{D:"path",J:{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"}},{D:"path",J:{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"}},{D:"path",J:{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"}},{D:"path",J:{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"}},{D:"path",J:{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"}},{D:"path",J:{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"}},{D:"path",J:{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"}},{D:"path",J:{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"}}]},W=216163);g.xM(c)?g.he(this.element,"ytp-youtube-music-button"):g.cD(this.element,"ytp-youtube-music-button");h.J=Object.assign({},h.J,{"aria-hidden":"true"});this.updateValue("logoSvg",h);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,W,!0)}; FF.prototype.o1=function(h){g.p.prototype.o1.call(this,h);this.api.logVisibility(this.element,this.visible&&h)};g.n(d5v,g.lX);g.l=d5v.prototype;g.l.SL=function(){if(this.L.j("web_player_max_seekable_on_ended")||!g.Y(this.L.getPlayerStateObject(),2))this.progressBar.kd(),this.mW.kd()}; g.l.n1=function(){this.j6();this.X8.W?this.SL():this.progressBar.al()}; g.l.lQ=function(){this.SL();this.T.start()}; g.l.j6=function(){var h;if(h=!this.L.B().W){h=this.progressBar;var W=2*g.xX()*h.N,c=h.G;h=(c.X-c.W)*1E3/h.api.getPlaybackRate()/W<300}h=h&&this.L.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;W=!h;this.X8.W||(h=W=!1);W?this.Pk||(this.Pk=this.U(this.L,"progresssync",this.SL)):this.Pk&&(this.v0(this.Pk),this.Pk=null);h?this.T.isActive()||this.T.start():this.T.stop()}; g.l.I1=function(){var h=this.L.fG(),W=this.L.Bk().getPlayerSize(),c=this.L.Bk().Ap,V=ZhU(this),H=rdN(this),B=Math.max(W.width-V*2,100);if(this.uW!==W.width||this.Ak!==h||this.L.j("web_player_rtr_ctrls")&&this.Xw!==c)this.uW=W.width,this.Ak=h,this.Xw=c,this.W.element.style.width=H+"px",this.W.element.style.left=V+"px",g.Ayd(this.progressBar,V,H,h),this.L.sX().lm=H;c=this.Y;B=Math.min(570*(h?1.5:1),B);h=Math.min(413*(h?1.5:1),Math.round((W.height-q3d(this))*.82));c.maxWidth=B;c.maxHeight=h;c.Re();this.j6(); this.lW&&GDQ(this.Ef,W.height)}; g.l.onVideoDataChange=function(){var h=this.L.getVideoData();this.yg.style.background=h.B0?h.Sc:"";this.Wk&&j6T(this.Wk,h.showSeekingControls);this.XI&&j6T(this.XI,h.showSeekingControls)}; g.l.fJ=function(){return this.W.element};g.n(x5N,K1);g.l=x5N.prototype;g.l.q6=function(h){h.target!==this.dismissButton.element&&(this.onClickCommand&&this.L.Iz("innertubeCommand",this.onClickCommand),this.eM())}; g.l.eM=function(){this.enabled=!1;this.T.hide()}; g.l.onVideoDataChange=function(h,W){h==="dataloaded"&&lid(this);h=[];var c,V,H,B;if(W=(B=g.v((c=W.getWatchNextResponse())==null?void 0:(V=c.playerOverlays)==null?void 0:(H=V.playerOverlayRenderer)==null?void 0:H.suggestedActionsRenderer,Bb6))==null?void 0:B.suggestedActions)for(c=g.e(W),V=c.next();!V.done;V=c.next())(V=g.v(V.value,ESU))&&g.v(V.trigger,Hkf)&&h.push(V);if(h.length!==0){c=[];h=g.e(h);for(V=h.next();!V.done;V=h.next())if(V=V.value,H=g.v(V.trigger,Hkf))B=(B=V.title)?g.EJ(B):"View Chapters", W=H.timeRangeStartMillis,H=H.timeRangeEndMillis,W!=null&&H!=null&&V.tapCommand&&(c.push(new g.t$(W,H,{priority:9,namespace:"suggested_action_button_visible",id:B})),this.suggestedActions[B]=V.tapCommand);this.L.Fi(c)}}; g.l.NK=function(){return this.enabled}; g.l.RV=function(){this.enabled?this.CM.start():L1(this);this.pU()}; g.l.dE=function(){lid(this);K1.prototype.dE.call(this)};var Uy={},fw=(Uy.CHANNEL_NAME="ytp-title-channel-name",Uy.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",Uy.LINK="ytp-title-link",Uy.SESSIONLINK="yt-uix-sessionlink",Uy.SUBTEXT="ytp-title-subtext",Uy.TEXT="ytp-title-text",Uy.TITLE="ytp-title",Uy);g.n(bR,g.p);bR.prototype.onClick=function(h){this.api.logClick(this.element);var W=this.api.B(),c=this.api.getVideoUrl(!g.l7(h),!1,!0);g.DE(W)&&(W={},g.LQ(this.api,"addEmbedsConversionTrackingParams",[W]),c=g.r0(c,W));g.zv(c,this.api,h)}; bR.prototype.FI=function(){var h=this.api.getVideoData(),W=this.api.B();this.updateValue("title",h.title);var c={D:"a",K:fw.CHANNEL_NAME,J:{href:"{{channelLink}}",target:"_blank"},YN:"{{channelName}}"};this.api.B().G&&(c={D:"span",K:fw.CHANNEL_NAME,YN:"{{channelName}}",J:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);niU(this);this.api.getPresentingPlayerType()===2&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.Ak&&c.profilePicture?(this.updateValue("channelLink", c.Ak),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):niU(this));c=W.externalFullscreen||!this.api.isFullscreen()&&W.ID;g.$y(this.link,fw.FULLERSCREEN_LINK,c);W.Wk||!h.videoId||c||h.B0||W.G?this.X&&(this.updateValue("url",null),this.v0(this.X),this.X=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.X||(this.X=this.U(this.link,"click",this.onClick)));W.G&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.DE(W)?h.expandedTitle: h.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.n(g.T9,g.p);g.l=g.T9.prototype;g.l.setEnabled=function(h){if(this.type!=null)if(h)switch(this.type){case 3:case 2:Nw(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.S=h}; g.l.On=function(h,W,c,V,H,B,E,J){if(!this.DH||this.env.S){this.type===3&&this.al();this.type!==1&&(g.wH(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.S&&this.fade.show(),this.W&&this.W.dispose(),(this.W=this.api.X2())&&this.W.subscribe("l",this.ZI,this));if(J){var u=g.WW(this.bg).height||141;this.zV.style.bottom=u+2+"px"}else this.zV.style.display="none";this.env.j("delhi_modern_web_player")?(this.update({pillTimeStamp:c,pillTitle:B!=null?B:"",eduText:J!=null?J:""}),g.he(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:c,title:B!=null?B:"",eduText:J!=null?J:""}),g.$y(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!B));this.api.isInline()&&g.he(this.bottomText,"ytp-modern-tooltip-text");g.$y(this.element,"ytp-text-detail",!!V);c=-1;this.W&&(c=sP(this.W,243*this.scale),this.env.j("web_l3_storyboard")&&this.W.levels.length===4&&(c=this.W.levels.length-1),c=$Dh(this.W,c,W));zUl(this,c);if(E)switch(W=g.WW(this.element).width,E){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=W+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=W/2+"px",this.title.style.textAlign="center"}eUD(this,!!V,h,H)}}; g.l.v7=function(){this.type===1&&this.al()}; g.l.V9=function(h,W){if(this.type)if(this.type===3)this.al();else return;jh4(this,h,3,W)}; g.l.XK=function(){this.X&&!this.Z&&(this.env.j("player_tooltip_data_title_killswitch")?this.X.hasAttribute("title")&&(this.G=this.X.getAttribute("title")||"",this.X.removeAttribute("title"),this.S&&Nw(this)):this.X.hasAttribute("data-tooltip-title")&&(this.G=this.X.getAttribute("data-tooltip-title")||"",this.X.removeAttribute("data-tooltip-title"),this.S&&Nw(this)))}; g.l.ZI=function(h,W){h<=this.Y&&this.Y<=W&&(h=this.Y,this.Y=NaN,zUl(this,h))}; g.l.y6=function(){cOv(this.W,this.Y,243*this.scale)}; g.l.al=function(){switch(this.type){case 2:var h=this.X;h.removeEventListener("mouseout",this.T);h.addEventListener("mouseover",this.N);h.removeEventListener("blur",this.T);h.addEventListener("focus",this.N);Qhv(this);break;case 3:Qhv(this);break;case 1:this.W&&(this.W.unsubscribe("l",this.ZI,this),this.W=null),this.api.removeEventListener("videoready",this.XI),this.Wk.stop()}this.type=null;this.S&&this.fade.hide()}; g.l.PY=function(){if(this.X)for(var h=0;h=0;W--)if(this.ME[W]===h){this.ME.splice(W,1);break}vv(this.X8,64,this.ME.length>0)}; g.l.z$=function(){this.api.ud()&&this.api.Q7();return!!this.mE||MiL(this)||g.kH.prototype.z$.call(this)}; g.l.Uj=function(){var h=!this.z$(),W=h&&this.api.ud()&&!g.Y(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().B0&&!this.api.B().G&&!this.api.isEmbedsShortsMode(),c=this.g8&&g.Io(this.api)&&g.Y(this.api.getPlayerStateObject(),128);h||c?(this.dT.show(),this.hx.show()):(this.dT.hide(),this.hx.hide(),this.api.PY(this.nw.element));W?this.iJ.qd():this.iJ.NU();this.F8&&GlU(this.F8,this.jTW||!h);this.api.j("web_player_hide_overflow_button_if_empty_menu")&&Fpl(this);g.kH.prototype.Uj.call(this)}; g.l.mZ=function(h,W,c,V,H){h.style.left="";h.style.top="";h.style.bottom="";var B=g.WW(h),E=V||this.F8&&g.jk(this.F8.fJ(),W),J=V=null;c!=null&&E||(V=g.WW(W),J=g.kS(W,this.api.getRootNode()),c==null&&(c=J.x+V.width/2));c-=B.width/2;E?(W=this.F8,V=ZhU(W),J=rdN(W),E=this.api.Bk().getPlayerSize().height,c=g.vr(c,V,V+J-B.width),B=E-q3d(W)-B.height):g.jk(this.nw.element,W)?(W=this.api.Bk().getPlayerSize().width,c=g.vr(c,12,W-B.width-12),B=this.fG()?this.dF:this.YU,this.api.B().playerStyle==="gvn"&&(B+= 20),this.g8&&(B-=this.fG()?26:18)):(W=this.api.Bk().getPlayerSize(),c=g.vr(c,12,W.width-B.width-12),B=J.y>(W.height-V.height)/2?J.y-B.height-12:J.y+V.height+12);h.style.top=B+(H||0)+"px";h.style.left=c+"px"}; g.l.n1=function(h){h&&(this.api.PY(this.nw.element),this.F8&&this.api.PY(this.F8.fJ()));this.j_&&(g.$y(this.contextMenu.element,"ytp-autohide",h),g.$y(this.contextMenu.element,"ytp-autohide-active",!0));g.kH.prototype.n1.call(this,h)}; g.l.S7=function(){g.kH.prototype.S7.call(this);this.j_&&(g.$y(this.contextMenu.element,"ytp-autohide-active",!1),this.j_&&(this.contextMenu.hide(),this.kQ&&this.kQ.hide()))}; g.l.Hv=function(h,W){var c=this.api.Bk().getPlayerSize();c=new g.ts(0,0,c.width,c.height);if(h||this.X8.W&&!this.z$()){if(this.api.B().X6||W)h=this.fG()?this.dF:this.YU,c.top+=h,c.height-=h;this.F8&&(c.height-=q3d(this.F8))}return c}; g.l.bE=function(h){var W=this.api.getRootNode();h?W.parentElement?(W.setAttribute("aria-label","Reproductor de video de YouTube en pantalla completa"),this.api.B().externalFullscreen||(W.parentElement.insertBefore(this.Br.element,W),W.parentElement.insertBefore(this.pC.element,W.nextSibling))):g.Qq(Error("Player not in DOM.")):(W.setAttribute("aria-label","Reproductor de video de YouTube"),this.Br.detach(),this.pC.detach());this.I1();this.ym()}; g.l.fG=function(){var h=this.api.B();return this.api.isFullscreen()&&!h.S||!1}; g.l.showControls=function(h){this.HN=!h;this.Uj()}; g.l.I1=function(){var h=this.fG();this.tooltip.scale=h?1.5:1;this.contextMenu&&g.$y(this.contextMenu.element,"ytp-big-mode",h);this.Uj();this.api.j("web_player_hide_overflow_button_if_empty_menu")||Fpl(this);this.ym();var W=this.api.isEmbedsShortsMode();W&&h?(h=(this.api.Bk().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.oY(this.nw.element,"padding-left",h+"px"),g.oY(this.nw.element,"padding-right",h+"px")):W&&(g.oY(this.nw.element,"padding-left",""),g.oY(this.nw.element,"padding-right", ""));g.kH.prototype.I1.call(this)}; g.l.S1=function(){if(MiL(this)&&!g.Io(this.api))return!1;var h=this.api.getVideoData();return!g.DE(this.api.B())||this.api.getPresentingPlayerType()===2||!this.Rl||((h=this.Rl||h.Rl)?(h=h.embedPreview)?(h=h.thumbnailPreviewRenderer,h=h.videoDetails&&g.v(h.videoDetails,Xlv)||null):h=null:h=null,h&&h.collapsedRenderer&&h.expandedRenderer)?g.kH.prototype.S1.call(this):!1}; g.l.ym=function(){g.kH.prototype.ym.call(this);this.api.logVisibility(this.title.element,!!this.UO);this.nX&&this.nX.o1(!!this.UO);this.channelAvatar.o1(!!this.UO);this.overflowButton&&this.overflowButton.o1(this.Lp()&&!!this.UO);this.shareButton&&this.shareButton.o1(!this.Lp()&&!!this.UO);this.h0&&this.h0.o1(!this.Lp()&&!!this.UO);this.searchButton&&this.searchButton.o1(!this.Lp()&&!!this.UO);this.copyLinkButton&&this.copyLinkButton.o1(!this.Lp()&&!!this.UO);if(!this.UO){this.api.PY(this.nw.element); for(var h=0;h5&&W.GV("glrs",{cmt:c});W.seekTo(0,{seekSource:58});W.GV("glrre",{cmt:c})}}; vI.prototype.dE=function(){this.X=null;g.N.prototype.dE.call(this)};g.n(g.mv,Gn);g.l=g.mv.prototype;g.l.isView=function(){return!0}; g.l.A4=function(){var h=this.mediaElement.getCurrentTime();if(h1;IG(h.M$(),V-.01)&&!H&&(pw(this,4),c.isActive=!1,c.Fx=c.Fx||c.isActive,(this.C===1?this.X:this.W).GV("sbh",{}),W.isActive=!0,W.Fx=W.Fx||W.isActive,this.C!==0&&(this.X.getVideoData().a$=!0));h=this.Y.W;if(this.Y.X.isActive&&h.isActive&&(pw(this,5),this.C!==0)){h=this.W.Fy();c=this.X.Fy(); this.X.GV("sbs",{citag:c==null?void 0:c.itag,nitag:h==null?void 0:h.itag});this.W.GV("gitags",{pitag:c==null?void 0:c.itag,citag:h==null?void 0:h.itag});var B;(B=this.W)==null||B.fW()}}}; g.l.ih=function(){this.C5()&&this.Vr("player-reload-after-handoff")}; g.l.Vr=function(h,W){W=W===void 0?{}:W;if(!this.gE()&&this.status.status!==6){var c=this.status.status>=4&&h!=="player-reload-after-handoff";this.status={status:Infinity,error:h};if(this.X&&this.W){var V=this.W.getVideoData().clientPlaybackNonce;this.X.Xi(new g.RG("dai.transitionfailure",Object.assign(W,{cpn:V,transitionTimeMs:this.Eq,msg:h})));this.X.Ys(c)}this.qS.reject(h);this.dispose()}}; g.l.C5=function(){return this.status.status>=4&&this.status.status<6}; g.l.dE=function(){pid(this);this.X.unsubscribe("newelementrequired",this.ih,this);if(this.G){var h=this.G.W;this.G.X.Vl.unsubscribe("updateend",this.vE,this);h.Vl.unsubscribe("updateend",this.vE,this)}g.N.prototype.dE.call(this)}; g.l.XF=function(h){g.EA(h,128)&&this.Vr("player-error-event")};g.n(IU,g.N);IU.prototype.clearQueue=function(h,W){h=h===void 0?!1:h;W=W===void 0?!1:W;this.Y&&this.Y.reject("Queue cleared");this.app.B().j("html5_gapless_fallback_on_qoe_restart_v2")||W&&this.W&&this.W.Ys(!1);YY(this,h)}; IU.prototype.YQ=function(){return!this.X}; IU.prototype.C5=function(){var h;return((h=this.G)==null?void 0:h.C5())||!1}; IU.prototype.dE=function(){YY(this);g.N.prototype.dE.call(this)};g.n(klQ,g.h1);g.l=klQ.prototype;g.l.getVisibilityState=function(h,W,c,V,H,B,E,J){return h?4:WF7()?3:W?2:c?1:V?5:H?7:B?8:E?9:J?10:0}; g.l.J2=function(h){this.fullscreen!==h&&(this.fullscreen=h,this.RV())}; g.l.setMinimized=function(h){this.W!==h&&(this.W=h,this.RV())}; g.l.setInline=function(h){this.inline!==h&&(this.inline=h,this.RV())}; g.l.k_=function(h){this.pictureInPicture!==h&&(this.pictureInPicture=h,this.RV())}; g.l.setSqueezeback=function(h){this.G!==h&&(this.G=h,this.RV())}; g.l.vl=function(h){this.Y!==h&&(this.Y=h,this.RV())}; g.l.vB=function(){return this.X}; g.l.EU=function(){return this.fullscreen!==0}; g.l.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.l.Wt=function(){return this.fullscreen}; g.l.isMinimized=function(){return this.W}; g.l.isInline=function(){return this.inline}; g.l.isBackground=function(){return WF7()}; g.l.B5=function(){return this.pictureInPicture}; g.l.pZ=function(){return!1}; g.l.O7=function(){return this.G}; g.l.F2=function(){return this.Y}; g.l.RV=function(){this.publish("visibilitychange");var h=this.getVisibilityState(this.vB(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.B5(),this.pZ(),this.O7(),this.F2());h!==this.N&&this.publish("visibilitystatechange");this.N=h}; g.l.dE=function(){$sk(this.C);g.h1.prototype.dE.call(this)};g.n(g.O7,g.N);g.l=g.O7.prototype;g.l.dE=function(){this.videoData=this.playerState=null;g.N.prototype.dE.call(this)}; g.l.addCueRange=function(){}; g.l.Kt=function(){}; g.l.vr=function(){}; g.l.ZQ=function(){return!1}; g.l.uu=function(){return!1}; g.l.BO=function(){}; g.l.bZ=function(){}; g.l.Vw=function(){return[]}; g.l.WJ=function(){}; g.l.getAudioTrack=function(){return this.getVideoData().BR}; g.l.aC=function(){return null}; g.l.getAvailableAudioTracks=function(){return[]}; g.l.m_=function(){return[]}; g.l.w7=function(){return[]}; g.l.LU=function(){return""}; g.l.wS=function(){return[]}; g.l.PJ=function(){}; g.l.G2=function(){return 0}; g.l.getCurrentTime=function(){return 0}; g.l.vJ=function(){}; g.l.Fy=function(){}; g.l.MU=function(){return{}}; g.l.getDuration=function(){return 0}; g.l.Nv=function(){return 0}; g.l.wW=function(){return 0}; g.l.y8=function(){return!1}; g.l.QZ=function(){return 0}; g.l.fg=function(){return 0}; g.l.Sf=hN(7);g.l.L$=function(){return 0}; g.l.RO=function(){return!1}; g.l.H3=function(){return 0}; g.l.yl=function(){return null}; g.l.ke=function(){return null}; g.l.Jw=function(){return 0}; g.l.bP=function(){return 0}; g.l.uO=function(){return g.P(function(h){g.zQ(h)})}; g.l.oL=hN(15);g.l.getPlaybackQuality=function(){return"auto"}; g.l.getPlaybackRate=function(){return 1}; g.l.getPlayerState=function(){this.playerState||(this.playerState=new g.l1);return this.playerState}; g.l.getPlayerType=function(){return 0}; g.l.getPlaylistSequenceForTime=function(){return null}; g.l.aF=function(){return function(){}}; g.l.qN=function(){return""}; g.l.getPreferredQuality=function(){return"unknown"}; g.l.XY=function(){}; g.l.getProximaLatencyPreference=function(){return 0}; g.l.uY=function(){return dM}; g.l.X2=function(){return null}; g.l.getStoryboardFormat=function(){return null}; g.l.getStreamTimeOffset=function(){return 0}; g.l.rJ=function(){return 0}; g.l.FA=function(){return 0}; g.l.gb=function(){return{RI:[],KT:[],currentTime:0,KC:"",droppedVideoFrames:0,isGapless:!1,YQ:!0,wb:0,mU:0,g5:0,jy:0,Sy:0,KL:[],fD:[],bK:null,playerState:this.getPlayerState(),mO:null,Yv:"",totalVideoFrames:0}}; g.l.getUserAudio51Preference=function(){return 0}; g.l.getUserPlaybackQualityPreference=function(){return""}; g.l.getVideoData=function(){this.videoData||(this.videoData=new g.G8(this.uB),g.X(this,this.videoData));return this.videoData}; g.l.pO=function(){return null}; g.l.df=function(){return null}; g.l.Cj=function(){}; g.l.getVideoLoadedFraction=function(){return 0}; g.l.h3=function(){}; g.l.handleError=function(){}; g.l.Ys=function(){}; g.l.vS=function(){}; g.l.y7=hN(40);g.l.gA=function(){return!1}; g.l.hasSupportedAudio51Tracks=function(){return!1}; g.l.oO=function(){return!1}; g.l.vB=function(){return!1}; g.l.isAtLiveHead=function(){return!1}; g.l.Hd=function(){return!0}; g.l.isGapless=function(){return!1}; g.l.isHdr=function(){return!1}; g.l.mJ=function(){return!1}; g.l.po=function(){return!1}; g.l.E7=function(){return!1}; g.l.isProximaLatencyEligible=function(){return!1}; g.l.YQ=function(){return!0}; g.l.Tg=function(){return!1}; g.l.FU=function(){return!1}; g.l.tL=function(){}; g.l.Ek=function(){}; g.l.fW=function(){}; g.l.t3=function(){}; g.l.jr=function(){}; g.l.mI=function(){}; g.l.g9=function(){}; g.l.K$=hN(50);g.l.Vs=hN(21);g.l.r9=function(){}; g.l.pauseVideo=function(){}; g.l.prefetchKeyPlay=function(){}; g.l.playVideo=function(){return g.P(function(h){return h.return()})}; g.l.T7=function(){}; g.l.rS=hN(27);g.l.iC=hN(33);g.l.b7=function(){}; g.l.GV=function(){}; g.l.oD=function(){}; g.l.Y_=function(){}; g.l.hX=function(){}; g.l.Xi=function(){}; g.l.zy=function(){}; g.l.Dm=function(){}; g.l.Q9=function(){}; g.l.iK=function(){}; g.l.Qy=function(){}; g.l.ri=function(){}; g.l.removeCueRange=function(){}; g.l.U2=function(){}; g.l.zw=function(){return[]}; g.l.LQ=function(){}; g.l.Lw=function(){}; g.l.Bo=function(){}; g.l.eq=function(){}; g.l.Rq=function(){}; g.l.OH=function(){}; g.l.seekTo=function(){}; g.l.sendAbandonmentPing=function(){}; g.l.sendVideoStatsEngageEvent=function(){}; g.l.Do=function(){}; g.l.setLoop=function(){}; g.l.Iq=function(){}; g.l.setMediaElement=function(){}; g.l.Wl=function(){}; g.l.setPlaybackRate=function(){}; g.l.wu=function(){}; g.l.Qp=function(){}; g.l.FD=function(){}; g.l.setProximaLatencyPreference=function(){}; g.l.dQ=function(){}; g.l.hB=function(){}; g.l.Y0=function(){}; g.l.fz=function(){}; g.l.pK=function(){}; g.l.setUserAudio51Preference=function(){}; g.l.t5=function(){}; g.l.ul=function(){return!1}; g.l.w6=function(){}; g.l.Mo=function(){return!1}; g.l.bj=function(){}; g.l.QU=function(){}; g.l.Lz=function(){}; g.l.stopVideo=function(){}; g.l.subscribe=function(){return NaN}; g.l.BY=function(){}; g.l.togglePictureInPicture=function(){}; g.l.R5=function(){return 0}; g.l.unsubscribe=function(){return!1}; g.l.K7=function(){}; g.l.u1=function(){return!1}; g.l.rZ=function(){}; g.l.Nc=function(){}; g.l.Zt=function(){};g.n(DK,g.N);g.l=DK.prototype;g.l.get=function(h){SV(this);var W=this.data.find(function(c){return c.key===h}); return W?W.value:null}; g.l.set=function(h,W,c){this.remove(h,!0);SV(this);h={key:h,value:W,expire:Infinity};c&&isFinite(c)&&(c*=1E3,h.expire=(0,g.aC)()+c);for(this.data.push(h);this.data.length>this.G;)(c=this.data.shift())&&w3(this,c,!0);g3(this)}; g.l.remove=function(h,W){W=W===void 0?!1:W;var c=this.data.find(function(V){return V.key===h}); c&&(w3(this,c,W),g.UI(this.data,function(V){return V.key===h}),g3(this))}; g.l.removeAll=function(h){if(h=h===void 0?!1:h)for(var W=g.e(this.data),c=W.next();!c.done;c=W.next())w3(this,c.value,h);this.data=[];g3(this)}; g.l.dE=function(){var h=this;g.N.prototype.dE.call(this);this.data.forEach(function(W){w3(h,W,!0)}); this.data=[]};g.n(g.kY,g.N);g.l=g.kY.prototype;g.l.dE=function(){for(var h=g.e(Object.values(this.G)),W=h.next();!W.done;W=h.next())W.value.dispose();hzp(this);this.X.dispose();g.N.prototype.dE.call(this)}; g.l.P9=function(h){return h?h===1?this.Z:this.W.getVideoData().enableServerStitchedDai&&h===2?this.W.getVideoData().l9?this.G[2]||this.W:this.W:this.G[h]||null:this.W}; g.l.mK=function(h){var W=h.cpn;h=h.playerType;if(W)a:{h=g.e(Object.values(this.G));for(var c=h.next();!c.done;c=h.next())if(c=c.value,c.LU()===W){W=c;break a}W=this.N[W]||null}else W=h?this.P9(h):this.W;return W}; g.l.XA=function(){return this.Z}; g.l.yy=function(h){this.Z=h}; g.l.ZH=function(){return this.W}; g.l.Gc=function(h){this.W=h;h2(this)}; g.l.In=hN(46);g.l.HF=hN(48);g.n(Rzv,g.cV);g.l=Rzv.prototype;g.l.Hm=function(){}; g.l.LU=function(){return this.videoData.clientPlaybackNonce}; g.l.getVideoData=function(){if(g.cV.prototype.getVideoData.call(this).j("html5_huli_ssdai_use_playback_state")){var h=Mhk(this.CR,g.cV.prototype.getCurrentTime.call(this))||g.cV.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==h.clientPlaybackNonce&&JfQ(this.W,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:h.clientPlaybackNonce});return this.videoData}return Mhk(this.CR,g.cV.prototype.getCurrentTime.call(this))||g.cV.prototype.getVideoData.call(this)}; g.l.getCurrentTime=function(h){var W=g.cV.prototype.getCurrentTime.call(this);if(g.cV.prototype.getVideoData.call(this).j("html5_huli_ssdai_use_playback_state")){this.X===0?h||(W-=this.startTimeSecs):h&&(W=this.X);var c=h?this.CR.lN||g.cV.prototype.getCurrentTime.call(this):KTL(this.CR,g.cV.prototype.getCurrentTime.call(this));W!==c&&JfQ(this.W,"time"+(h!=null?h:!1),{time:W,ref:c,ct:h!=null?h:!1})}else W=h?this.CR.lN||W:KTL(this.CR,W);return W}; g.l.getDuration=function(){if(g.cV.prototype.getVideoData.call(this).j("html5_huli_ssdai_use_playback_state")){var h=URd(this.CR,g.cV.prototype.getCurrentTime.call(this));this.duration!==h&&JfQ(this.W,"duration",{dur:this.duration,ref:h});return this.duration}return URd(this.CR,g.cV.prototype.getCurrentTime.call(this))}; g.l.I3=function(h){this.duration=h};g.cg.prototype.m6=function(h,W){if(W===1)return this.X.get(h);if(W===2)return this.G.get(h);if(W===3)return this.W.get(h)}; g.cg.prototype.sj=hN(58);g.cg.prototype.Rg=function(h,W,c,V){c={eR:V,CT:c};W?this.G.set(h,c):this.X.set(h,c)}; g.cg.prototype.clearAll=function(){this.X.clear();this.G.clear();this.W.clear()}; dRp.prototype.clear=function(){this.X=[];this.G.clear();this.Y.clear();this.W.clear()}; dRp.prototype.mK=function(h){var W=h.cpn;h=h.H0;if(W&&(W=this.G.get(W))||h&&(W=this.Y.get(h)))return W}; g.n(g.VV,g.N);g.l=g.VV.prototype;g.l.onCueRangeEnter=function(h){var W=h.getId();this.Wi({oncueEnter:1,cpn:W,start:h.start,end:h.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.G2()||0).toFixed(3)});var c=this.X.mK({cpn:W});this.Wi({enterAdCueRange:1});var V=this.Zg||this.PG().cpn,H;V=(H=this.X.mK({cpn:V}))!=null?H:this.PG();c&&(H=this.playback.getCurrentTime(),c.startTimeSecs=h.start/1E3,c={Oc:V,e8:c,Ec:H},DRd(this,W,h.start/1E3,H),gm5(this,c))}; g.l.vQ=function(h,W){if(h===this.playback.LU())Wg(this.app.mR(),this.playback,!1);else{var c=this.zV.get(h);c?(c.X=0,c.startTimeSecs=W,Wg(this.app.mR(),c,!0)):this.Wi({nop_s:h})}}; g.l.onCueRangeExit=function(h){for(var W=this.playback.getCurrentTime()*1E3,c=h.getId(),V=g.e(this.W.values()),H=V.next();!H.done;H=V.next())if(H=H.value,H.getId()!==c&&W>=H.start&&W<=H.end)return;if(c=this.X.mK({cpn:c}))W=this.playback.getCurrentTime(),V=this.PG(),V.startTimeSecs=h.end/1E3,c={Oc:c,e8:V,Ec:W},DRd(this,this.playback.LU(),h.end/1E3,W),gm5(this,c)}; g.l.PG=function(){return{cpn:this.playback.LU(),durationMs:0,W0:0,playerType:1,uV:0,videoData:this.playback.getVideoData(),errorCount:0,Al:""}}; g.l.seekTo=function(h,W,c,V){h=h===void 0?0:h;W=W===void 0?{}:W;c=c===void 0?!1:c;V=V===void 0?null:V;J2(this,this.Zg);if(this.playback.getVideoData().Gw()&&h<=this.lN)this.playback.pauseVideo(),this.lN=0,wZk(this,h);else if(this.XI=!0,c)xR7(this,h,W);else{c=this.app.ZH();var H=c===this.DH?this.Jk:null;Et(this,!1);this.Ef=h;this.Mn=W;V!=null&&this.rE.start(V);c&&(this.Jk=H||c.getPlayerState(),c.Lz(W),this.DH=c)}}; g.l.dE=function(){Et(this,!1);yfU(this);Pkk(this);g.N.prototype.dE.call(this)}; g.l.qg=function(h){this.uW=h;this.Wi({swebm:h})}; g.l.kO=function(h,W,c){if(c&&W){var V=this.C.get(h);if(V){V.locations||(V.locations=new Map);var H=Number(W.split(";")[0]);c=new g.vb(c);this.Wi({hdlredir:1,itag:W,seg:h,hostport:o7(c)});V.locations.set(H,c)}}}; g.l.ai=function(h,W,c,V,H,B){var E=V===3,J=TBT(this,h,W,V,c,B);if(!J){RT(this,W,E);var u=g.fmT(this,W)?"undec":"ncp";this.Wi({gvprp:u,mt:h,seg:W,tt:V,itag:c,ce:B});return null}E||this.C.set(W,J);B=J.Al;var d;V=((d=this.m6(W-1,V,H))==null?void 0:d.eR)||"";V===""&&this.Wi({eds:1});d=XZT(this,J.ssdaiAdsConfig);H=this.playback.getVideoData();var G;E=((G=H.W)==null?void 0:G.containerType)||0;G=H.x_[E];J=J.PU&&W>=J.PU?J.PU:void 0;G={Lf:B?om4(this,B):[],Z0:d,eR:V,uH:J,Ke:Pr(G.split(";")[0]),sW:G.split(";")[1]|| ""};J={yV:G};this.Nn&&(h={gvprpro:"v",sq:W,mt:h.toFixed(3),itag:c,acpns:((u=G.Lf)==null?void 0:u.join("_"))||"none",abid:B},this.Wi(h));return J}; g.l.Ip=function(h){a:{if(!this.zL){var W=NBl(this,h);if(!(this.playback.getVideoData().Gw()&&(W==null?0:W.fL)))break a}W=void 0}var c=W;if(!c)return this.Wi({gvprp:"ncp",mt:h}),null;W=c.Al;var V=XZT(this,c.ssdaiAdsConfig);c=c.PU&&c.tV&&h>=c.tV?c.PU:void 0;var H=this.playback.getVideoData(),B,E=((B=H.W)==null?void 0:B.containerType)||0;B=H.x_[E];B={Lf:W?om4(this,W):[],Z0:V,uH:c,Ke:Pr(B.split(";")[0]),sW:B.split(";")[1]||""};var J;h={gvprpro:"v",mt:h.toFixed(3),acpns:((J=B.Lf)==null?void 0:J.join("_"))|| "none",abid:W};this.Wi(h);return B}; g.l.fZ=function(h,W,c,V,H,B){var E=Number(c.split(";")[0]),J=V===3;h=TBT(this,h,W,V,c,B);this.Wi({gdu:1,seg:W,itag:E,pb:""+!!h});if(!h)return RT(this,W,J),null;h.locations||(h.locations=new Map);if(!h.locations.has(E)){var u,d;B=(u=h.videoData.getPlayerResponse())==null?void 0:(d=u.streamingData)==null?void 0:d.adaptiveFormats;if(!B)return this.Wi({gdu:"noadpfmts",seg:W,itag:E}),RT(this,W,J),null;u=B.find(function(r){return r.itag===E}); if(!u||!u.url){var G=h.videoData.videoId;h=[];var Z=g.e(B);for(V=Z.next();!V.done;V=Z.next())h.push(V.value.itag);this.Wi({gdu:"nofmt",seg:W,vid:G,itag:E,fullitag:c,itags:h.join(",")});RT(this,W,J);return null}h.locations.set(E,new g.vb(u.url,!0))}B=h.locations.get(E);if(!B)return this.Wi({gdu:"nourl",seg:W,itag:E}),RT(this,W,J),null;B=new P0(B);this.uW&&(B.get("dvc")?this.Wi({dvc:B.get("dvc")||""}):B.set("dvc","webm"));(V=(Z=this.m6(W-1,V,H))==null?void 0:Z.eR)&&B.set("daistate",V);h.PU&&W>=h.PU&& B.set("skipsq",""+h.PU);(Z=this.playback.getVideoData().clientPlaybackNonce)&&B.set("cpn",Z);Z=[];h.Al&&(Z=om4(this,h.Al),Z.length>0&&B.set("acpns",Z.join(",")));J||this.C.set(W,h);J=null;J=B.get("aids");V=B.Ly();(V==null?void 0:V.length)>2048&&this.Wi({urltoolong:1,sq:W,itag:E,len:V.length});this.Nn&&(V&&(B=h.cpn,H=h.Al,YUp(this,B,H),H&&!this.U5.has(H)&&(B=pZv(this,B,H),u=ImL(this,H),this.Wi({iofa:B}),this.Wi({noawnzd:u-B}),this.Wi({acpns:Z.join("."),aids:(G=J)==null?void 0:G.replace(/,/g,".")}), this.U5.add(H))),this.Wi({gdu:"v",seg:W,itag:c,ast:h.W0.toFixed(3),alen:h.durationMs.toFixed(3),acpn:h.cpn,avid:h.videoData.videoId}));return V}; g.l.hZ=function(h,W,c){c=c===void 0?!1:c;var V=bdp(this,h,W);if(V){var H=void 0,B=V.Al;if(B){this.Wi({skipadonsq:W,sts:c,abid:B,acpn:V.cpn,avid:V.videoData.videoId});c=this.X.W.get(B);if(!c)return;c=g.e(c);for(B=c.next();!B.done;B=c.next())B=B.value,B.PU=W,B.tV=h,B.W0>V.W0&&(H=B)}J2(this,this.Zg);this.G=V.cpn;th4(this);h=this.playback.getCurrentTime();vmN(this,V,H,h,h,!1,!0);SUk(this)}}; g.l.qH=function(){for(var h=g.e(this.X.X),W=h.next();!W.done;W=h.next())W=W.value,W.PU=NaN,W.tV=NaN;th4(this);this.Wi({rsac:"resetSkipAd",sac:this.G});this.Rz.delete(this.G);this.G=""}; g.l.m6=function(h,W,c){return this.Wk.m6(h,W,c)}; g.l.sj=hN(57); g.l.Rg=function(h,W,c,V,H,B,E,J,u){V.length>0&&this.Wi({onssinfo:1,sq:h,start:W.toFixed(3),cpns:V.join(","),ds:H.join(","),isVideo:E?1:0});u&&this.Wk.Rg(h,E,J,u);if(E){if(V.length&&H.length)for(this.Rz.has(V[0])&&this.Wi({skipfail:1,sq:h,acpn:V[0]}),h=W+this.rJ(),c=0;c0&&(this.xS=0,this.Zg="",this.uB.j("html5_huli_ssdai_use_playback_state")&&this.vQ(this.playback.LU(),0),this.api.publish("serverstitchedvideochange"));this.playback.bZ(c,V);return!0}; g.l.d0=function(){this.Wi({rstdaist:1});this.Wk.clearAll()}; g.l.Ta=function(h){var W;if(h!==((W=this.N)==null?void 0:W.identifier))this.Wi({ignorenoad:h});else{this.yg.add(h);this.Wi({noadrcv:h});var c;((c=this.N)==null?void 0:c.identifier)===h&&Hg(this)}}; g.l.EZ=function(h){if(this.zL)return this.Wi({dai_disabled:h.event}),!1;if(this.playback.getVideoData().Gw()&&(this.uB.j("html5_lifa_no_gab_on_predict_start")&&h.event==="predictStart"||h.event==="continue"||h.event==="stop"))return!1;var W=b3(this.api.Pi());if(W=W?W.EZ(h):!1)this.Y={Ka:h.identifier,Qv:h.startSecs};else if(this.Y&&this.Y.Ka===h.identifier&&h.startSecs>this.Y.Qv+1){this.Wi({cueStChg:h.identifier,oldSt:this.Y.Qv.toFixed(3),newSt:h.startSecs.toFixed(3),abid:this.Y.Dd});if(this.Y.Dd){var c= h.startSecs-this.Y.Qv,V=this.X.W.get(this.Y.Dd);if(V){V=g.e(V);for(var H=V.next();!H.done;H=V.next())H=H.value,H.W0>=0&&(H.W0+=c*1E3,this.uB.j("html5_ssdai_update_timeline_on_start_time_change")&&(H.uV+=c*1E3),this.Wi({newApEt:H.W0,newApPrt:H.uV,acpn:H.cpn}))}}this.Y.Qv=h.startSecs}return W}; g.l.Im=function(h){return this.zL?!1:!!NBl(this,h)}; g.l.Mg=function(h){var W=this;if(this.uB.j("html5_lifa_ignore_multiple_skips")&&this.Pk)return this.Wi({ufs_ad:this.G,ufs_cur:this.Zg,ufs_cont:this.PG().cpn}),!1;J2(this,this.Zg);this.playback.pauseVideo();var c=this.playback.getCurrentTime(),V=this.X.mK({cpn:this.Zg});if(!V)return this.Wi({skipFail:c}),!1;this.G=this.Zg;this.XI=!1;Odh(this,V.Al);kgQ(this,V,this.PG(),h);wZk(this,c,{seekSource:89,LR:"lifa_skip"});this.Pk||(this.Pk=this.events.U(this.api,"progresssync",function(){eC(W.api.Ot(),(0,g.aC)(), "ad_to_video");W.Pk&&(W.events.v0(W.Pk),W.Pk=null)})); return!0}; g.l.Wi=function(h,W){((W===void 0?0:W)||this.Nn||this.playback.getVideoData().Gw())&&this.playback.GV("sdai",h)}; var amN=0;g.n(Wnv,g.N);g.l=Wnv.prototype;g.l.onCueRangeEnter=function(h){if(this.X===this.app.ZH()){var W=this.C.get(h);W?BCh(this,W.target,W.Eq,h):this.Xi("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:h.toString()})}else if(W=this.W.find(function(H){return H.e0.qh===h})){var c=W.e0,V=c.target; c=c.Eq;V?BCh(this,V,c,h):HX5(this,W.uV,c,h)}}; g.l.onQueuedVideoLoaded=function(){var h=this.S;ro(this);if(h){if(!ZA(this,h)){var W=this.app.ZH();this.Xi("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:W==null?void 0:W.getVideoData().clientPlaybackNonce,ccpn:""+h.playerVars.cpn})}this.app.ZH().addCueRange(h.e0.qh)}}; g.l.seekTo=function(h,W,c,V){h=h===void 0?0:h;W=W===void 0?{}:W;V=V===void 0?null:V;if(c===void 0?0:c)hAL(this,h,W);else{c=this.app.ZH()||null;var H=c===this.Y?this.N:null;qg(this,!1);this.XI=h;this.T=W;V!=null&&this.Z.start(V);c&&(this.N=H||c.getPlayerState(),c.Lz(),this.Y=c)}}; g.l.Dc=function(h){g.EA(h,128)&&dr4(this)}; g.l.isManifestless=function(){return yk(this.X.getVideoData())}; g.l.dE=function(){qg(this,!1);ZXl(this);g.N.prototype.dE.call(this)}; g.l.Xi=function(h,W){this.X.Xi(new g.RG(h,W))}; var ciD=0;var riQ="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.n(x_,g.N);x_.prototype.iZ=function(h){if(h)return this.W.get(h)}; x_.prototype.dE=function(){this.X.removeAll();this.W.removeAll();g.N.prototype.dE.call(this)};g.wWU=y_(function(){var h=window.AudioContext||window.webkitAudioContext;try{return new h}catch(W){return W.name}});g.n(jZp,g.p);g.l=jZp.prototype;g.l.F$=function(){g.WD(this.element,g.tN.apply(0,arguments))}; g.l.Lw=function(){this.E5&&(this.E5.removeEventListener("focus",this.IQ),g.nk(this.E5),this.E5=null)}; g.l.Zs=function(){this.gE();var h=this.app.B();h.aO||this.F$("tag-pool-enabled");h.N&&this.F$(g.ly.HOUSE_BRAND);h.playerStyle==="gvn"&&(this.F$("ytp-gvn"),this.element.style.backgroundColor="transparent");h.Sx&&(this.QG=g.S5("yt-dom-content-change",this.resize,this));this.U(window,"orientationchange",this.resize,this);this.U(window,"resize",this.resize,this)}; g.l.JN=function(h){g.cF(this.app.B());this.k$=!h;lF(this)}; g.l.resize=function(){if(this.E5){var h=this.W5();if(!h.isEmpty()){var W=g.DF(this.app.B().experiments,"html5_android_mweb_resize_delay")>0,c=this.app.qn.isFullscreen();if(W&&c&&TN()){var V;(V=this.zH)==null||V.start()}W=!g.Ou(h,this.y5.getSize());c=LnL(this);W&&(this.y5.width=h.width,this.y5.height=h.height);h=this.app.B();(c||W||this.lr||h.Sx)&&this.app.qn.publish("resize",this.getPlayerSize())}}}; g.l.n$=function(h,W){this.updateVideoData(W)}; g.l.updateVideoData=function(h){if(this.E5){var W=this.app.B();tZ&&(this.E5.setAttribute("x-webkit-airplay","allow"),h.title?this.E5.setAttribute("title",h.title):this.E5.removeAttribute("title"));this.E5.setAttribute("controlslist","nodownload");W.EG&&h.videoId&&(this.E5.poster=h.YL("default.jpg"))}W=g.os(h,"yt:bgcolor");this.cO.style.backgroundColor=W?W:"";this.hf=Wt(g.os(h,"yt:stretch"));this.Pe=Wt(g.os(h,"yt:crop"),!0);g.$y(this.element,"ytp-dni",h.B0);this.resize()}; g.l.setGlobalCrop=function(h){this.e1=Wt(h,!0);this.resize()}; g.l.setCenterCrop=function(h){this.cC=h;this.resize()}; g.l.J2=function(){}; g.l.getPlayerSize=function(){var h=this.app.B(),W=this.app.qn.isFullscreen(),c=h.externalFullscreen&&g.DE(h);if(W&&TN()&&!c)return new g.Yu(window.outerWidth,window.outerHeight);c=!isNaN(this.tY.width)&&!isNaN(this.tY.height);var V=this.app.B().j("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.B().j("web_watch_enable_fs_squeezeback_panels");if(W&&!c&&V)return new g.Yu(this.element.clientWidth,this.element.clientHeight);if(W||h.IL){if(window.matchMedia){h="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.fb&&this.fb.media===h||(this.fb=window.matchMedia(h));var H=this.fb&&this.fb.matches}if(H)return new g.Yu(window.innerWidth,window.innerHeight)}else if(c)return this.tY.clone();return new g.Yu(this.element.clientWidth,this.element.clientHeight)}; g.l.W5=function(){var h=this.app.B().j("enable_desktop_player_underlay"),W=this.getPlayerSize(),c=g.DF(this.app.B().experiments,"player_underlay_min_player_width");return h&&this.Ua&&W.width>c?(h=g.DF(this.app.B().experiments,"player_underlay_video_width_fraction"),new g.Yu(Math.min(W.height*this.getVideoAspectRatio(),W.width*h),Math.min(W.height,W.width*h/this.getVideoAspectRatio()))):W}; g.l.getVideoAspectRatio=function(){return isNaN(this.hf)?eAd(this):this.hf}; g.l.getVideoContentRect=function(h){var W=this.W5();h=zA5(this,W,this.getVideoAspectRatio(),h);return new g.ts((W.width-h.width)/2,(W.height-h.height)/2,h.width,h.height)}; g.l.CQ=function(h){this.Ua=h;this.resize()}; g.l.Vt=function(){return this.Xg}; g.l.onMutedAutoplayChange=function(){lF(this)}; g.l.setInternalSize=function(h){g.Ou(this.tY,h)||(this.tY=h,this.resize())}; g.l.dE=function(){this.QG&&g.gI(this.QG);this.Lw();g.p.prototype.dE.call(this)};g.l=KnU.prototype;g.l.click=function(h,W){this.elements.has(h);this.X.has(h);var c=g.q_();c&&h.visualElement&&g.DT(c,h.visualElement,W)}; g.l.createClientVe=function(h,W,c,V){var H=this;V=V===void 0?!1:V;this.elements.has(h);this.elements.add(h);c=eIU(c);h.visualElement=c;var B=g.q_(),E=g.rc();B&&E&&(g.ZX("combine_ve_grafts")?Iq(oq(),c,E):g.IW(g.TE)(void 0,B,E,c));W.addOnDisposeCallback(function(){H.elements.has(h)&&H.destroyVe(h)}); V&&this.W.add(h)}; g.l.createServerVe=function(h,W,c){var V=this;c=c===void 0?!1:c;this.elements.has(h);this.elements.add(h);W.addOnDisposeCallback(function(){V.destroyVe(h)}); c&&this.W.add(h)}; g.l.destroyVe=function(h){this.elements.has(h);this.elements.delete(h);this.G.delete(h);this.X.delete(h);this.W.delete(h)}; g.l.Gf=function(h,W){this.clientPlaybackNonce!==W&&(this.clientPlaybackNonce=W,p0(oq(),h),AiN(this))}; g.l.setTrackingParams=function(h,W){this.elements.has(h);W&&(h.visualElement=g.GE(W))}; g.l.pJ=function(h,W,c){this.elements.has(h);W?this.X.add(h):this.X.delete(h);var V=g.q_(),H=h.visualElement;this.W.has(h)?V&&H&&(W?g.O9(V,[H]):g.S2(V,[H])):W&&!this.G.has(h)&&(V&&H&&g.YN(V,H,void 0,c),this.G.add(h))}; g.l.hasVe=function(h){return this.elements.has(h)};g.n(g.jw,g.N);g.jw.create=function(h,W,c,V){try{var H=typeof h==="string"?h:"player"+g.EI(h),B=Ct[H];if(B){try{B.dispose()}catch(J){g.Qq(J)}Ct[H]=null}var E=new g.jw(h,W,c,V);E.addOnDisposeCallback(function(){Ct[H]=null;E.ov&&E.ov()}); return Ct[H]=E}catch(J){throw g.Qq(J),(J&&J instanceof Error?J:Error(String(J))).stack;}}; g.l=g.jw.prototype;g.l.D8=function(){return this.visibility}; g.l.yy=function(h){var W=this.XA();if(h!==W){h.getVideoData().autonavState=W.getVideoData().autonavState;W.K7(this.iF,this);var c=W.getPlaybackRate();W.dispose();this.P0.yy(h);h.setPlaybackRate(c);h.BY(this.iF,this);fR5(this)}}; g.l.qB=function(){this.nV||(this.nV=g.v5(hK(),P8v()));return this.nV}; g.l.Lw=function(h){if(this.mediaElement){this.Kz&&(this.events.v0(this.Kz),this.Kz=null);g.zR(this.cQ);this.ZH().Lw(!0,!1,h);this.template.Lw();try{this.j("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.nK()}catch(W){g.Lx(W)}this.mediaElement=null}}; g.l.Gc=function(h,W,c){c=c===void 0?!1:c;if(h!==this.ZH()){this.logger.debug(function(){return"start set presenting player, type "+h.getPlayerType()+", vid "+h.getVideoData().videoId}); var V=null;c||(c=this.ZH(),V=c.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),f3(this.yM,3),m4(this,"cuerangesremoved",c.wS()),this.dV&&!h.isGapless()&&c.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),c=h.ul()&&c.ul(),this.Dn.j3("iv_s"),oIT(this,c));h.getPlayerType()===1&&this.yy(h);mrp(this,h);this.P0.Gc(h);this.mediaElement&&h.setMediaElement(this.mediaElement);h.BY(this.Sq,this);h.FU()?qD7(this,"setPresenting",!1):(this.n$("newdata",h,h.getVideoData()), V&&!g.Q3(V,h.getPlayerState())&&this.pD(new g.H8(h.getPlayerState(),V)),W=W&&h.getPlayerType()===1,h.po()&&!W&&this.n$("dataloaded",h,h.getVideoData()),(W=(W=h.getVideoData().W)&&W.video)&&this.qn.Dg("onPlaybackQualityChange",W.quality),m4(this,"cuerangesadded",h.wS()),W=h.getPlayerState(),g.Y(W,2)?vIQ(this):g.Y(W,8)?h.playVideo():h.mJ()&&h.pauseVideo(),W=this.XA(),h.getPlayerType()===2&&(h.getVideoData().wG=W.getVideoData().clientPlaybackNonce),h.getPlayerType()!==2||this.Eh()||(V=h.getVideoData(), W.T7(V.clientPlaybackNonce,V.Ns||"",V.breakType||0,V.U8,V.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.l.f7=function(){if(this.XA()!==this.ZH()){var h=this.ZH();this.logger.debug(function(){return"release presenting player, type "+h.getPlayerType()+", vid "+h.getVideoData().videoId}); this.Gc(this.XA())}}; g.l.mR=function(){return this.P0}; g.l.mK=function(h){return this.P0.mK(h)}; g.l.P9=function(h){return this.P0.P9(h)}; g.l.XA=function(){return this.P0.XA()}; g.l.ZH=function(){return this.P0.ZH()}; g.l.nC=hN(44);g.l.FWk=function(){iF(this)||(this.logger.debug("application playback ready"),this.gZ(5))}; g.l.TII=function(){if(!iF(this)){this.logger.debug("playback ready");diD(this);var h=this.ZH(),W=h.getPlayerState();h.mJ()?this.pauseVideo():W.isOrWillBePlaying()&&this.playVideo()}}; g.l.canPlayType=function(h){return GW(h)}; g.l.B=function(){return this.uB}; g.l.getVideoData=function(){return this.ZH().getVideoData()}; g.l.gx=hN(11);g.l.O8=function(){return this.XA().getVideoData()}; g.l.getVideoLoadedFraction=function(h){return(h=this.mK({playerType:h}))?h.getVideoLoadedFraction():this.P0.X.getVideoLoadedFraction()}; g.l.Bk=function(){return this.template}; g.l.Pi=function(){return this.yM}; g.l.Ot=function(){return this.Dn}; g.l.J$=function(h,W,c){(W=this.mK({playerType:W===void 0?1:W}))&&W.Do(h,void 0,c)}; g.l.DO=function(){var h=this.yM.DO();this.qn.publish("videoStatsPingCreated",h);return h}; g.l.getVolume=function(){return Math.round(this.qn.getVolume())}; g.l.isMuted=function(){return this.qn.isMuted()}; g.l.Yl=function(){if(this.XA()===this.ZH()&&this.kZ)return this.kZ.postId}; g.l.GeN=function(){var h=this;this.j("use_rta_for_player")||(g.uJ(this.uB)?g.Ky(this.uB,g.BN(this.getVideoData())).then(function(W){WV(hK(),W);qf7(h.getVideoData(),h.uB,h.qB())}):qf7(this.getVideoData(),this.uB,this.qB()))}; g.l.l1=function(h){this.qn.publish("poTokenVideoBindingChange",h)}; g.l.LH=function(h){this.qn.publish("d6de4videobindingchange",h)}; g.l.Ce=function(){this.gz&&this.gz.Ce()}; g.l.C4=function(h){this.gz=h}; g.l.dR=function(h){if(h===1){this.Dn.tick("vr");var W=this.ZH();W.vr();aAv(this.Dn,W.getVideoData(),ubN(this));Dgk(this.yM)}W=this.uB;if(Qf(W)&&W.Z||g.$X(W)){var c;(((c=this.ZH().getVideoData())==null?0:c.enableServerStitchedDai)||!this.Eh())&&this.qn.Dg("onAdStateChange",h)}}; g.l.setLoopVideo=function(h){var W=this.ZH();W===this.XA()&&W.RO()!==h&&(W.setLoop(h),this.qn.Iz("onLoopChange",h))}; g.l.getLoopVideo=function(){return this.ZH().RO()}; g.l.setLoopRange=function(h){var W=!1;!!this.kZ!==!!h?W=!0:this.kZ&&h&&(W=this.kZ.startTimeMs!==h.startTimeMs||this.kZ.endTimeMs!==h.endTimeMs||this.kZ.postId!==h.postId||this.kZ.type!==h.type);if(W){W=this.ZH();Qk(W.getVideoData())&&W.GV("slr",{et:(h==null?void 0:h.endTimeMs)||-1});W=this.XA();W.zw("applooprange");if(h){var c=new g.t$(h.startTimeMs,h.endTimeMs,{id:"looprange",namespace:"applooprange"});W.addCueRange(c)}else{this.O8().clipConfig=void 0;var V;((c=this.kZ)==null?void 0:c.type)!=="repeatChapter"|| isNaN(Number((V=this.kZ)==null?void 0:V.loopCount))||(c={loopCount:String(this.kZ.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.V5("repeatChapterLoopEvent",c))}this.kZ=h;this.qn.Iz("onLoopRangeChange",h||void 0);this.XA()===this.ZH()&&(this.KK(),W.BO())}}; g.l.getLoopRange=function(){return this.kZ}; g.l.KK=function(){var h="",W=this.XA();this.kZ?W!==this.ZH()?h="pnea":w4N(this,W.getCurrentTime())&&(this.kZ.loopCount=0,h="ilr"):h="nlr";var c=this.ZH();if(Qk(c.getVideoData()))if(this.j("html5_gapless_log_loop_range_info")){var V,H;c.GV("slrre",{rej:h,ct:W.getCurrentTime(),lst:(V=this.kZ)==null?void 0:V.startTimeMs,let:(H=this.kZ)==null?void 0:H.endTimeMs})}else c.GV("slrre",{});h||hxv(this)}; g.l.setPlaybackRate=function(h,W){if(!isNaN(h)){h=NCU(this,h);var c=this.XA();c.getPlaybackRate()!==h&&(c.setPlaybackRate(h),W&&!this.uB.Y&&g.iL("yt-player-playback-rate",h),this.qn.Dg("onPlaybackRateChange",h))}}; g.l.getCurrentTime=function(h,W){W=W===void 0?!0:W;var c=this.P0.bO;if(c)return c.getCurrentTime();var V=h===2&&this.getVideoData().enableServerStitchedDai;c=null;V?c=this.ZH():c=this.mK({playerType:h});return c?V&&this.Jq?(h=this.P0.S)?h.getCurrentTime(W):c.getCurrentTime():W?(W=LL(this,c),bF(this,W.getCurrentTime(),W)):c.getCurrentTime():this.P0.X.getCurrentTime()}; g.l.fg=function(){var h=this.mK({playerType:void 0});if(!h)return this.P0.X.fg();h=LL(this,h);return bF(this,h.fg(),h)}; g.l.getDuration=function(h,W){W=W===void 0?!0:W;var c=this.P0.bO;if(c)return c.getDuration();c=this.getVideoData();var V=h===2&&c.enableServerStitchedDai,H=null;V?H=this.ZH():H=this.mK({playerType:h});if(!H)return this.P0.X.getDuration();if(c.hasProgressBarBoundaries()&&!V){var B,E=Number((B=c.progressBarStartPosition)==null?void 0:B.utcTimeMillis),J;B=Number((J=c.progressBarEndPosition)==null?void 0:J.utcTimeMillis);if(!isNaN(E)&&!isNaN(B))return(B-E)/1E3}if(Qk(c)&&!c.isLivePlayback)return Pg(this, h);if(W)return h=QV(this,H),bF(this,h.getDuration(),h);if(V&&this.Jq){if(this.j("html5_huli_ssdai_use_playback_state"))return h=this.P0,h=h.Y===h.S?h.Y:null,(h==null?void 0:h.getDuration())||0;var u;return((u=this.P0.S)==null?void 0:u.getDuration())||0}return H.getDuration()}; g.l.wW=function(h){var W=this.mK({playerType:h});return W?this.Eh(W)?(W=QV(this,W),W.wW()-W.getCurrentTime()+this.getCurrentTime(h)):W.wW():this.P0.X.wW()}; g.l.finishSegmentByCpn=function(){return[]}; g.l.Zs=function(){this.template.Zs();var h=this.qn;h.state.element=this.template.element;var W=h.state.element,c;for(c in h.state.X)h.state.X.hasOwnProperty(c)&&(W[c]=h.state.X[c]);(h=tcN(this.template.element))&&this.events.U(this.template,h,this.onFullscreenChange)}; g.l.getDebugText=function(h){var W=this.XA().MU(h),c=this.ZH();if(c!==this.XA()){c=c.MU(h);for(var V=g.e(Object.keys(c)),H=V.next();!H.done;H=V.next())H=H.value,W["ad"+H]=c[H];if(h){c=W;V={};if(H=$S(document,"movie_player"))V.bounds=H.getBoundingClientRect(),V["class"]=H.className;H={};var B=g.EH("video-ads");B?(nUv(B,H),H.html=B.outerHTML):H.missing=1;B={};var E=g.EH("videoAdUiSkipContainer"),J=g.EH("ytp-ad-skip-button-container"),u=g.EH("ytp-skip-ad-button"),d=E||J||u;d?(nUv(d,B),B.ima=E?1:0,B.bulleit= J?1:0,B.component=u?1:0):B.missing=1;V=JSON.stringify({player:V,videoAds:H,skipButton:B});c.ad_skipBtnDbgInfo=V}}h&&this.mediaElement&&(W["0sz"]=""+(+S8(this.mediaElement.getSize())===0),W.op=this.mediaElement.Nb("opacity"),c=this.mediaElement.lR().y+this.mediaElement.getSize().height,W.yof=""+(+c<=0),W.dis=this.mediaElement.Nb("display"));h&&((h=(0,g.Ja)())&&(W.gpu=h),(h=this.uB.playerStyle)&&(W.ps=h),this.uB.Rz&&(W.webview=1),(h=this.webPlayerContextConfig.jsUrl)&&(W.js=h));W.debug_playbackQuality= this.qn.getPlaybackQuality(1);W.debug_date=(new Date).toString();W.origin=window.origin;W.timestamp=Date.now();delete W.uga;delete W.q;return JSON.stringify(W,null,2)}; g.l.getFeedbackProductData=function(){var h={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.B().experiments.experimentIds.join(", "),player_release:R[5]},W=this.getPlayerStateObject().FK;W&&(h.player_error_code=W.errorCode,h.player_error_details=JSON.stringify(W.errorDetail));return h}; g.l.getPresentingPlayerType=function(h){if(this.appState===1)return 1;if(iF(this))return 3;var W;return h&&((W=this.Jq)==null?0:CkT(W,this.getCurrentTime()))?2:this.ZH().getPlayerType()}; g.l.qp=function(){return!1}; g.l.getPlayerStateObject=function(h){var W=this.P0.bO;return W?W.getPlayerState():this.mK({playerType:h}).getPlayerState()}; g.l.getAppState=function(){return this.appState}; g.l.ddW=function(h){switch(h.type){case "loadedmetadata":this.S$.start();h=g.e(this.AT);for(var W=h.next();!W.done;W=h.next())W=W.value,Jrv(this,W.id,W.GjH,W.a1O,void 0,!1);this.AT=[];break;case "loadstart":this.Dn.j3("gv");break;case "progress":case "timeupdate":Sd(h.target.yr())>=2&&this.Dn.j3("l2s");break;case "playing":g.ez&&this.S$.start();if(g.uJ(this.uB))h=!1;else{W=g.OV(this.Pi());h=this.mediaElement.Nb("display")==="none"||S8(this.mediaElement.getSize())===0;var c=nL(this.template),V=this.ZH().getVideoData(), H=g.CV(this.uB);V=LC(V);W=!c||W||H||V||this.uB.Mn;h=h&&!W}h&&(h=this.ZH(),h.tL(),this.getVideoData().qU||(this.getVideoData().qU=1,this.tj(),h.playVideo()))}}; g.l.BIg=function(h){this.qn.lV("onLoadProgress",h)}; g.l.GxM=function(){this.qn.publish("playbackstalledatstart")}; g.l.ulz=function(h,W){this.qn.publish("sabrCaptionsDataLoaded",h,W)}; g.l.p0V=function(h){this.ZH().hB(h)}; g.l.Mo9=function(h){this.ZH().dQ(h)}; g.l.PXf=function(h){h=LL(this,this.ZH());h=bF(this,h.getCurrentTime(),h);this.qn.Dg("onVideoProgress",h);this.uB.Oq&&Hiv(this,this.visibility.B5())&&this.pauseVideo()}; g.l.yIE=function(){this.qn.Dg("onAutoplayBlocked");var h=this.ZH().getVideoData();h&&(h.Yb=!0);this.j("embeds_enable_autoplay_and_visibility_signals")&&g.DE(this.uB)&&(h={autoplayBrowserPolicy:nB(),autoplayIntended:jG(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.V5("embedsAutoplayStatusChanged",h))}; g.l.OJN=function(){this.qn.publish("progresssync")}; g.l.VxV=function(){this.qn.lV("onPlaybackPauseAtStart")}; g.l.szW=function(h){if(this.getPresentingPlayerType()===1){g.EA(h,1)&&!g.Y(h.state,64)&&this.O8().isLivePlayback&&this.XA().isAtLiveHead()&&this.qn.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.EA(h,2)){if(this.kZ&&this.kZ.endTimeMs>=(this.getDuration()-1)*1E3){hxv(this);return}vIQ(this)}if(g.Y(h.state,128)){var W=h.state;this.cancelPlayback(5);W=W.FK;JSON.stringify({errorData:W,debugInfo:this.getDebugText(!0)});this.qn.Dg("onError",AxD(W.errorCode));this.qn.lV("onDetailedError",{errorCode:W.errorCode, errorDetail:W.errorDetail,message:W.errorMessage,messageKey:W.VG,cpn:W.cpn});(0,g.aC)()-this.uB.H9>6048E5&&this.qn.lV("onReloadRequired")}W={};if(h.state.isPlaying()&&!h.state.isBuffering()&&!LE("pbresume","ad_to_video")&&LE("_start","ad_to_video")){var c=this.getVideoData();W.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(W.videoId=c.videoId);g.zO(W,"ad_to_video");eq("pbresume",void 0,"ad_to_video");Dgk(this.yM)}this.qn.publish("applicationplayerstatechange",h)}}; g.l.pD=function(h){this.P0.bO||this.qn.publish("presentingplayerstatechange",h)}; g.l.Dc=function(h){zK(this,i1(h.state));g.Y(h.state,1024)&&this.qn.isMutedByMutedAutoplay()&&(Fz(this,{muted:!1,volume:this.Zc.volume},!1),yV(this,!1))}; g.l.onPlayerRequestSent=function(h){this.qn.Iz("onPlayerRequestSent",h)}; g.l.j7=function(h,W){h==="newdata"&&fR5(this);this.qn.publish("applicationvideodatachange",h,W)}; g.l.cIg=function(h,W){this.j("html5_afmt_change_update_volume")&&diD(this);this.qn.lV("onPlaybackAudioChange",this.qn.getAudioTrack().iW.name);this.qn.publish("internalaudioformatchange",this.qn.getAudioTrack().iW.id,W)}; g.l.hAn=function(h){var W=this.ZH().getVideoData();h===W&&this.qn.Dg("onPlaybackQualityChange",h.W.video.quality)}; g.l.T6=function(){var h=this.P0.G[2]||null;h&&(h=h.getVideoData(),this.ZH().GV("ssdai",{cleanaply:1,acpn:h==null?void 0:h.clientPlaybackNonce,avid:h.videoId,isDai:this.O8().enableServerStitchedDai?1:0}),delete this.P0.G[2])}; g.l.Y8N=function(h,W){this.n$(h,this.ZH(),W)}; g.l.n$=function(h,W,c){this.logger.debug(function(){return"on video data change "+h+", player type "+W.getPlayerType()+", vid "+c.videoId}); this.uB.gI()&&W.GV("vdc",{type:h,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""});W===this.XA()&&(this.uB.hG=c.oauthToken);W===this.XA()&&(this.getVideoData().enableServerStitchedDai&&!this.Jq?(this.XA().GV("sdai",{initSstm:1}),this.Jq=new g.VV(this.qn,this.uB,this.XA(),this)):!this.getVideoData().enableServerStitchedDai&&this.Jq&&(this.Jq.dispose(),this.Jq=null));if(h==="newdata")this.logger.debug("new video data, destroy modules"),f3(this.yM,2),this.qn.publish("videoplayerreset",W);else{if(!this.mediaElement)return; h==="dataloaded"&&(this.XA()===this.ZH()?(Ra(c.fM,c.tR),OX5(this)):IRh(this));W.getPlayerType()===1&&(this.uB.mW&&lgQ(this),this.getVideoData().isLivePlayback&&!this.uB.MS&&this.Vr("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded()&&((T2N(c)||this.getVideoData().MS)&&this.qn.publish("legacyadtrackingpingchange",this.getVideoData()),c.hasProgressBarBoundaries()&&crl(this)));this.qn.publish("videodatachange",h,c,W.getPlayerType())}this.qn.Dg("onVideoDataChange",{type:h,playertype:W.getPlayerType()}); this.KK();var V=c.KA;V?this.n5.Gf(V,c.clientPlaybackNonce):AiN(this.n5)}; g.l.PN=function(){A2(this,null);this.qn.lV("onPlaylistUpdate")}; g.l.LKO=function(h){delete this.hN[h.getId()];this.XA().removeCueRange(h);a:{h=this.getVideoData();var W,c,V,H,B,E,J,u,d,G,Z=((W=h.mW)==null?void 0:(c=W.contents)==null?void 0:(V=c.singleColumnWatchNextResults)==null?void 0:(H=V.autoplay)==null?void 0:(B=H.autoplay)==null?void 0:B.sets)||((E=h.mW)==null?void 0:(J=E.contents)==null?void 0:(u=J.twoColumnWatchNextResults)==null?void 0:(d=u.autoplay)==null?void 0:(G=d.autoplay)==null?void 0:G.sets);if(Z)for(W=g.e(Z),c=W.next();!c.done;c=W.next())if(c= c.value,H=V=void 0,c=c.autoplayVideo||((V=c.autoplayVideoRenderer)==null?void 0:(H=V.autoplayEndpointRenderer)==null?void 0:H.endpoint),V=g.v(c,g.nC),B=H=void 0,c!=null&&((H=V)==null?void 0:H.videoId)===h.videoId&&((B=V)==null?0:B.continuePlayback)){h=c;break a}h=null}(W=g.v(h,g.nC))&&this.qn.Iz("onPlayVideo",{sessionData:{autonav:"1",itct:h==null?void 0:h.clickTrackingParams},videoId:W.videoId,watchEndpoint:W})}; g.l.gZ=function(h){var W=this;h!==this.appState&&(this.logger.debug(function(){return"app state change "+W.appState+" -> "+h}),h===2&&this.getPresentingPlayerType()===1&&(zK(this,-1),zK(this,5)),this.appState=h,this.qn.publish("appstatechange",h))}; g.l.Vr=function(h,W,c,V,H){this.XA().wu(h,W,c,V,H)}; g.l.jb=hN(13);g.l.isAtLiveHead=function(h,W){W=W===void 0?!1:W;var c=this.mK({playerType:h});if(!c)return this.P0.X.isAtLiveHead();h=QV(this,c);c=LL(this,c);return h!==c?h.isAtLiveHead(bF(this,c.getCurrentTime(),c),!0):h.isAtLiveHead(void 0,W)}; g.l.QZ=function(){var h=this.mK({playerType:void 0});return h?QV(this,h).QZ():this.P0.X.QZ()}; g.l.seekTo=function(h,W,c,V,H){W=W!==!1;if(V=this.mK({playerType:V}))this.appState===2&&CL(this),this.Eh(V)?TK(this)?this.Jq.seekTo(h,{seekSource:H},W,c):this.CR.seekTo(h,{seekSource:H},W,c):V.seekTo(h,{Cz:!W,kE:c,LR:"application",seekSource:H})}; g.l.seekBy=function(h,W,c,V){this.seekTo(this.getCurrentTime()+h,W,c,V)}; g.l.l3N=function(){this.qn.Dg("SEEK_COMPLETE")}; g.l.ZJn=function(){this.qn.Iz("onAbnormalityDetected")}; g.l.a3f=function(h){this.qn.Iz("onSnackbarMessage",h)}; g.l.X0M=function(h){var W=this.ZH(),c=W.getVideoData();if(this.appState===1||this.appState===2)c.startSeconds=h;this.appState===2?g.Y(W.getPlayerState(),512)||CL(this):this.qn.Dg("SEEK_TO",h)}; g.l.rIH=function(){this.qn.publish("airplayactivechange")}; g.l.iJz=function(){this.qn.publish("airplayavailabilitychange")}; g.l.showAirplayPicker=function(){this.ZH().w6()}; g.l.JIV=function(){this.qn.publish("beginseeking")}; g.l.xUg=function(){this.qn.publish("endseeking")}; g.l.getStoryboardFormat=function(h){return(h=this.mK({playerType:h}))?QV(this,h).getStoryboardFormat():this.P0.X.getStoryboardFormat()}; g.l.X2=function(h){return(h=this.mK({playerType:h}))?QV(this,h).getVideoData().X2():this.P0.X.X2()}; g.l.Eh=function(h){h=(h||this.ZH()).getVideoData();if(TK(this))h=h===this.Jq.playback.getVideoData();else a:{var W=this.CR;if(h===W.X.getVideoData()&&W.W.length)h=!0;else{W=g.e(W.W);for(var c=W.next();!c.done;c=W.next())if(h.H0===c.value.H0){h=!0;break a}h=!1}}return h}; g.l.O_=function(h,W,c,V,H,B,E,J){this.logger.debug(function(){return"Adding video to timeline id="+h.video_id+"\n lengthMs="+V+" enterTimeMs="+H}); var u="",d=TK(this);this.ZH().GV("appattl",{sstm:this.Jq?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:d});d?(c=zzN(this.Jq,h,W,c,V,H,B,E,J),u=(c==null?void 0:c.H0)||"",this.j("html5_ssdai_new_decoration_logic")&&this.XA().Y0(J||"",W,(c==null?void 0:c.clientPlaybackNonce)||"")):u=sZT(this.CR,h,c,V,H,B);this.logger.debug(function(){return"Video added to timeline id="+h.video_id+" timelinePlaybackId="+u}); return u}; g.l.Zf=function(h,W,c,V,H,B,E,J){if(TK(this)){var u,d=(u=this.Jq)==null?void 0:zzN(u,h,W,c,V,H,B,E,J);this.logger.debug(function(){return"Remaining video added to timeline id="+h.video_id+" timelinePlaybackId="+((d==null?void 0:d.H0)||"")})}}; g.l.Ta=function(h){this.j("html5_ssdai_new_decoration_logic")&&this.XA().Y0(h,"","");var W;(W=this.Jq)==null||W.Ta(h)}; g.l.ZL=function(h,W){h=h===void 0?-1:h;W=W===void 0?Infinity:W;TK(this)||ZXl(this.CR,h,W)}; g.l.NT=function(h,W,c){if(TK(this)){var V=this.Jq,H=V.X.mK({H0:h});H?(c===void 0&&(c=H.uV),FTU(V,H,W,c)):V.gi("Invalid_timelinePlaybackId_"+h+"_specified")}else{V=this.CR;H=null;for(var B=g.e(V.W),E=B.next();!E.done;E=B.next())if(E=E.value,E.H0===h){H=E;break}H?(c===void 0&&(c=H.uV),GUh(V,H,W,c)):uF(V,"InvalidTimelinePlaybackId timelinePlaybackId="+h)}}; g.l.enqueueVideoByPlayerVars=function(h,W,c,V){c=c===void 0?Infinity:c;V=V===void 0?"":V;this.Eh();h=new g.G8(this.uB,h);V&&(h.H0=V);VWT(this,h,W,c)}; g.l.queueNextVideo=function(h,W,c,V,H){c=c===void 0?NaN:c;h=this.preloadVideoByPlayerVars(h,W===void 0?1:W,c,V===void 0?"":V,H===void 0?"":H);W=this.ZH();h&&(this.j("html5_check_queue_on_data_loaded")?this.B().supportsGaplessShorts()&&W.getVideoData().S&&(c=this.SZ,V=this.dV.C,c.Y!==h&&(c.W=W,c.Y=h,c.G=1,c.X=h.getVideoData(),c.C=V,c.X.isLoaded()?c.N():c.X.subscribe("dataloaded",c.N,c))):(c=Tqd(W,h,this.dV.C),c!=null?(W.GV("sgap",c),W.getVideoData().S&&W.Ys(!1)):(h=h.getVideoData(),W=this.SZ,W.X!== h&&(W.X=h,W.G=1,h.isLoaded()?W.S():W.X.subscribe("dataloaded",W.S,W)))))}; g.l.Ny=function(h,W,c,V){var H=this;c=c===void 0?0:c;V=V===void 0?0:V;QV(this,this.ZH()).Iq();S3h(this.dV,h,W,c,V).then(function(){H.qn.lV("onQueuedVideoLoaded")},function(){})}; g.l.YQ=function(){return this.dV.YQ()}; g.l.Fq=function(h){var W=this.dV.X;return W?W.uu(h):!1}; g.l.clearQueue=function(h,W){h=h===void 0?!1:h;W=W===void 0?!1:W;this.logger.debug("Clearing queue");this.dV.clearQueue(h,W)}; g.l.loadVideoByPlayerVars=function(h,W,c,V,H,B){W=W===void 0?1:W;var E=this.XA();if(W===2&&this.O8().enableServerStitchedDai&&E&&!E.oO())return E.GV("lvonss",{vid:(h==null?void 0:h.videoId)||"",ptype:W}),!1;var J=!1;E=new g.G8(this.uB,h);E.d6=B;g.aa(this.uB)&&!E.eL&&zP(this.Dn);var u;B=this.Dn;var d=(u=E.XI)!=null?u:"";B.timerName=d;this.Dn.T2("pl_i");this.j("web_player_early_cpn")&&E.clientPlaybackNonce&&this.Dn.infoGel({clientPlaybackNonce:E.clientPlaybackNonce});d15(E).supportsVp9Encoding===!1&& this.ZH().GV("noVp9enc",{});if(this.B().supportsGaplessShorts()){u=wi5(this.dV,E,W);if(u==null){zK(this,-1);var G;((G=this.dV.X)==null?0:G.getVideoData().isAd())||Ng(this);h=this.dV;h.app.B().j("html5_gapless_new_slr")?fL(h.app,"gaplessshortslooprange"):h.app.setLoopRange(null);h.app.getVideoData().U_=!0;var Z;(Z=h.X)==null||Z.Rq();var r;(r=h.X)==null||r.iK();c={LR:"gapless_to_next_video",seekSource:60,JV:h.C.X};V=g.DF(h.app.B().experiments,"html5_gapless_seek_offset");H=D5D(h);if(h.C.X){var q;E= ((q=h.G)==null?void 0:oU(q))||{};q=E.bu;E=E.hC;E!=null&&q!=null&&(H=E-q+.001)}var x;(x=h.app.ZH())==null||x.seekTo(H+V,c);if(!h.app.getPlayerStateObject(W).isPlaying()){var z;(z=h.app.ZH())==null||z.playVideo(!0)}var L;(L=h.app.ZH())==null||L.Bo();h.S();return!0}x=this.j("html5_shorts_gapless_preload_fallback");z=this.dV.X;x&&z&&!z.gE()&&(L=z.getVideoData(),this.P0.C.set(Xz(W,L),z,3600));this.dV.clearQueue(x);this.ZH().GV("sgap",{f:u})}if(H){for(;E.qo.length&&E.qo[0].isExpired();)E.qo.shift();x=E.qo.length- 1;J=x>0&&H.W(E.qo[x])&&H.W(E.qo[x-1]);E.qo.push(H)}c||(h&&QTl(h)?(ru(this.uB)&&!this.kC&&(h.fetch=0),A2(this,h)):this.playlist&&A2(this,null),h&&(this.kC=DX(!1,h.external_list)));this.qn.publish("loadvideo");x=this.oG(E,W,V);J&&this.Vr("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+E.qo.join()).replace(/[;:,]/g,"_"));return x}; g.l.preloadVideoByPlayerVars=function(h,W,c,V,H){W=W===void 0?1:W;c=c===void 0?NaN:c;V=V===void 0?"":V;H=H===void 0?"":H;var B=syN(W,h,H),E=this.P0.C.get(B)||null;if(E)return this.logger.debug(function(){return"already preloaded "+B}),this.j("html5_return_playback_if_already_preloaded")?E:null; h=new g.G8(this.uB,h);H&&(h.H0=H);return $iT(this,h,W,c,V)}; g.l.setMinimized=function(h){this.visibility.setMinimized(h);(h=hiN(this.yM))&&(this.isMinimized()?h.load():h.unload());this.qn.publish("minimized")}; g.l.setInline=function(h){this.visibility.setInline(h)}; g.l.setInlinePreview=function(h){this.visibility.setInline(h)}; g.l.k_=function(h){BdU(this,h)||this.visibility.k_(h)}; g.l.setSqueezeback=function(h){this.visibility.setSqueezeback(h)}; g.l.oI=function(){var h,W=(h=this.mediaElement)==null?void 0:h.fJ();W&&(this.uB.QK&&Uf(im(function(){return document.exitFullscreen()}),function(){}),Uf(im(function(){return GR(W)}),function(){}))}; g.l.eAk=function(){this.mediaElement.fJ();this.mediaElement.fJ().webkitPresentationMode==="picture-in-picture"?this.k_(!0):this.k_(!1)}; g.l.togglePictureInPicture=function(){this.ZH().togglePictureInPicture()}; g.l.oG=function(h,W,c){W=W===void 0?1:W;this.logger.debug(function(){return"start load video, id "+h.videoId+", type "+W}); LE("_start",this.Dn.timerName)||g.IW(rn)(void 0,this.Dn.timerName);var V=!1,H=Drd(this,W,h,!1);H?(V=!0,h.dispose()):(H=aT(this,W,h,!0,c),(this.j("html5_onesie")||this.j("html5_load_before_stop"))&&H.ZQ()&&H.bj(),this.S$.stop(),W===1&&W!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,W),this.Gc(H));H===this.XA()&&(this.uB.hG=h.oauthToken);if(!H.ZQ())return!1;if(H===this.XA())return this.gZ(1),c=CL(this),V&&this.j("html5_player_preload_ad_fix")&&H.getPlayerType()===1&& H.po()&&this.n$("dataloaded",H,H.getVideoData()),c;H.QU();return!0}; g.l.cueVideoByPlayerVars=function(h,W){var c=this;W=W===void 0?1:W;var V=this.XA();if(this.O8().enableServerStitchedDai&&V&&!V.oO()&&h&&Object.keys(h).length>0)V.GV("qvonss",{vid:(h==null?void 0:h.videoId)||"",ptype:W});else if(h&&QTl(h))if(this.SW=!0,A2(this,h),(h=g.QB(this.playlist))&&h.oT())vg(this,h,W);else this.playlist.onReady(function(){Ut(c)}); else{W||(W=this.getPresentingPlayerType());W===1&&this.PN();V=new g.G8(this.uB,h);var H=g.DE(this.uB)&&!this.uB.Wk&&W===1&&!V.isAd()&&!V.Ns;this.qn.publish("cuevideo");H?(this.ZH().getVideoData().loading=!0,Mwl(V,h?h:{}).then(function(B){vg(c,B,W)}),V.dispose()):vg(this,V,W)}}; g.l.Av=function(h,W,c,V,H,B,E){if(!h&&!c)throw Error("Playback source is invalid");if(ka(this.uB)||g.Rm(this.uB))return W=W||{},W.lact=xA(),W.vis=this.qn.getVisibilityState(),this.qn.Iz("onPlayVideo",{videoId:h,watchEndpoint:B,sessionData:W,listId:c}),!1;e1k(this.Dn);this.Dn.reset();h={video_id:h};V&&(h.autoplay="1");V&&(h.autonav="1");B&&(h.player_params=B.playerParams);E&&(h.oauth_token=E);c?(h.list=c,this.loadPlaylist(h)):this.loadVideoByPlayerVars(h,1);return!0}; g.l.cuePlaylist=function(h,W,c,V){this.SW=!0;EU7(this,h,W,c,V)}; g.l.loadPlaylist=function(h,W,c,V){this.SW=!1;EU7(this,h,W,c,V)}; g.l.TX=function(){return this.qn.isMutedByMutedAutoplay()?!1:this.P0.bO?!0:!(!this.playlist||!this.playlist.mA())}; g.l.AZ=hN(5); g.l.nextVideo=function(h,W){var c=g.jy(this.XA().getVideoData());g.Df(this.qn)&&c?this.Av(c.videoId,W?c.JY:c.sessionData,c.playlistId,W,void 0,c.mB||void 0):this.kC?this.qn.lV("onPlaylistNext"):this.getPresentingPlayerType()===3?pQ(this.yM).nextVideo():!this.playlist||ru(this.uB)&&!this.qn.isFullscreen()||(this.playlist.mA(h)&&K4N(this.playlist,L4d(this.playlist)),this.playlist.loaded?(h=W&&this.uB.j("html5_player_autonav_logging"),W&&this.qn.publish("playlistautonextvideo"),this.oG(g.QB(this.playlist,void 0, W,h),1)):this.SW=!1)}; g.l.previousVideo=function(h){this.kC?this.qn.lV("onPlaylistPrevious"):this.getPresentingPlayerType()===3?pQ(this.yM).aq():!this.playlist||ru(this.uB)&&!this.qn.isFullscreen()||(this.playlist.J0(h)&&K4N(this.playlist,iLT(this.playlist)),this.playlist.loaded?this.oG(g.QB(this.playlist),1):this.SW=!1)}; g.l.playVideoAt=function(h){this.kC?this.qn.lV("onPlaylistIndex",h):this.playlist&&(this.playlist.loaded?this.oG(g.QB(this.playlist,h),1):this.SW=!1,K4N(this.playlist,h))}; g.l.getPlaylist=function(){return this.playlist}; g.l.zJ=hN(19);g.l.H4=function(h){this.AT=g.Lf(this.AT,function(B){return B.id!==h}); for(var W=this.XA(),c=W.wS(),V=0;V0&&(u=Math.floor(d/1E3))}u=W?W.QM:u;var G={AD_BLOCK:this.X++,AD_BREAK_LENGTH:u,AUTONAV_STATE:pL(this.player.B()),CA_TYPE:"image",CPN:J.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.QZ()*1E3,LACT:xA(),LIVE_INDEX:W?this.G++:1,LIVE_TARGETING_CONTEXT:W&&W.context?W.context:"",MIDROLL_POS:B? Math.round(B.start/1E3):0,MIDROLL_POS_MS:B?Math.round(B.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.Bk().W5().height,P_W:this.player.Bk().W5().width,YT_REMOTE:H?H.join(","):""},Z=sB($2);Object.keys(Z).forEach(function(q){Z[q]!=null&&(G[q.toUpperCase()]=Z[q].toString())}); c!==""&&(G.BISCOTTI_ID=c);c={};Vn(h)&&(c.sts="20292",(W=this.player.B().forcedExperiments)&&(c.forced_experiments=W));var r=hc(g.Q8(h,G),c);return r.split("?").length!==2?UL(Error("Invalid AdBreakInfo URL")):g.Ky(this.player.B(),J==null?void 0:J.oauthToken).then(function(q){if(q&&cf()){var x=hK();WV(x,q)}q=V.player.qB(x);x=tWv(V,r,G,J.isMdxPlayback,E);return g.CE(q,x,"/youtubei/v1/player/ad_break").then(function(z){return z})})}; IT.prototype.reset=function(){this.G=this.X=1};g.n(vUh,IT); vUh.prototype.W=function(h,W,c){W=W===void 0?{}:W;var V=W.Iw;var H=W.qh;var B=W.cueProcessedMs;c=c===void 0?"":c;W=this.X;this.X++;var E=this.player.B().j("h5_disable_macro_substitution_in_get_ad_break")?h:mih(this,h,{Iw:V,qh:H,cueProcessedMs:B},c,W);if(E.split("?").length!==2)return Math.random()<.1&&g.Lx(Error("Invalid AdBreakInfo URL")),UL(Error("Invalid AdBreakInfo URL"));var J=this.player.getVideoData(1).isMdxPlayback,u=c;c=yrl.exec(E);c=c!=null&&c.length>=2?c[1]:"";h=P9D.test(E);var d=fgd.exec(E); d=d!=null&&d.length>=2?d[1]:"";var G=biD.exec(E);G=G!=null&&G.length>=2&&!Number.isNaN(Number(G[1]))?Number(G[1]):1;var Z=Tdp.exec(E);Z=Z!=null&&Z.length>=2?Z[1]:"0";var r=Ea(this.player.B().Cw),q=g.pV(this.player.getVideoData(1).Nn,!0);K8v(this,q,E,u===""?"":u,this.player.B(),this.player.getVideoData(1));u={splay:!1,lactMilliseconds:String(xA()),playerHeightPixels:Math.trunc(this.player.Bk().W5().height),playerWidthPixels:Math.trunc(this.player.Bk().W5().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20292,autonavState:pL(this.player.B())};if(J){J={};var x=this.player.B().Zr;C9T(J,x?x.join(","):"")&&(u.mdxContext=J)}if(J=Nd7.includes(r)?void 0:g.Cb("PREF")){x=J.split(RegExp("[:&]"));for(var z=0,L=x.length;z1&&M[1].toUpperCase()==="TRUE"){q.user.lockedSafetyMode=!0;break}}u.autoCaptionsDefaultOn=F8D(J)}E=X1L.exec(E);(E=E!=null&&E.length>=2?E[1]:"")&&d&&(q.user.credentialTransferTokens= [{token:E,scope:"VIDEO"}]);E={contentPlaybackContext:u};u=this.player.getVideoData(1).getGetAdBreakContext();J=this.player.getVideoData(1).clientPlaybackNonce;x=B!==void 0?Math.round(B).toString():void 0;z=(V==null?0:V.context)?V.context:void 0;L=0;B&&H&&!V&&(H=H.end-H.start,H>0&&(L=Math.floor(H/1E3)));V=(V=Math.trunc((V?V.QM:L)*1E3))?String(V):void 0;H=this.player.QZ()*1E3;H=Number.isNaN(H)?0:Math.trunc(H);W={adBlock:W,params:c,breakIndex:G,breakPositionMs:Z,clientPlaybackNonce:J,topLevelDomain:r, isProxyAdTagRequest:h,context:q,overridePlaybackContext:E,cueProcessedMs:x,videoId:d?d:void 0,liveTargetingParams:z,breakLengthMs:V,driftFromHeadMs:H?String(H):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:u?u:void 0};return oUp(this,W)};var hY2={CGV:"replaceUrlMacros",M5n:"onAboutThisAdPopupClosed",ylk:"executeCommand"};p1L.prototype.vG=function(){return"adPingingEndpoint"}; p1L.prototype.PQ=function(h,W,c){Ahp(this.nM.get(),h,W,c)};Igh.prototype.vG=function(){return"changeEngagementPanelVisibilityAction"}; Igh.prototype.PQ=function(h){this.L.Iz("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:h})};YDd.prototype.vG=function(){return"loggingUrls"}; YDd.prototype.PQ=function(h,W,c){h=g.e(h);for(var V=h.next();!V.done;V=h.next())V=V.value,Ahp(this.nM.get(),V.baseUrl,W,c,V.attributionSrcMode)};g.n(SD7,g.N);g.n(Ot,g.N);g.l=Ot.prototype;g.l.addListener=function(h){this.listeners.push(h)}; g.l.removeListener=function(h){this.listeners=this.listeners.filter(function(W){return W!==h})}; g.l.qv=function(h,W,c,V,H,B,E,J){if(h==="")sA("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(h!==this.X||c){this.X=h;this.Qg.get().qv(h,W,c,V,H,B,E,J);this.SO.get().qv(h,W,c,V,H,B,E,J);var u;(u=this.Ky)==null||u.get().qv(h,W,c,V,H,B,E,J);this.W.qv(h,W,c,V,H,B,E,J);u=g.e(this.listeners);for(var d=u.next();!d.done;d=u.next())d.value.qv(h,W,c,V,H,B,E,J)}else sA("Duplicate content video loaded signal")}; g.l.fng=function(){this.X&&this.Ft(this.X)}; g.l.Ft=function(h){this.X=void 0;for(var W=g.e(this.listeners),c=W.next();!c.done;c=W.next())c.value.Ft(h)};Sw.prototype.U6=function(h,W,c,V,H){gUN(this);this.C=!W&&c===0;var B=this.L.getVideoData(1),E=this.L.getVideoData(2);B&&(this.contentCpn=B.clientPlaybackNonce,this.videoId=B.videoId,this.X=B.N);E&&(this.adCpn=E.clientPlaybackNonce,this.adVideoId=E.videoId,this.adFormat=E.adFormat);this.Y=h;V<=0?(gUN(this),this.C=!W&&c===0):(this.actionType=this.C?W?"unknown_type":"video_to_ad":W?"ad_to_video":"ad_to_ad",this.videoStreamType=H?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.G=!0,LE("_start",this.actionType)&&kIU(this)))}; Sw.prototype.reset=function(){return new Sw(this.L)};g.n(go,g.N);go.prototype.addCueRange=function(h,W,c,V,H,B,E,J,u){B=B===void 0?3:B;E=E===void 0?1:E;this.X.has(h)?sA("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:h}):(h=new hT7(h,W,c,V,B,J,u),this.X.set(h.id,{qh:h,listener:H,Ep:E}),this.L.Fi([h],E))}; go.prototype.removeCueRange=function(h){var W=this.X.get(h);W?(this.L.yz([W.qh],W.Ep),this.X.delete(W.qh.id)):sA("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:h})}; go.prototype.onCueRangeEnter=function(h){if(this.X.has(h.id))this.X.get(h.id).listener.onCueRangeEnter(h.id)}; go.prototype.onCueRangeExit=function(h){if(this.X.has(h.id))this.X.get(h.id).listener.onCueRangeExit(h.id)}; g.n(hT7,g.t$);DA.prototype.addPlayerResponseForAssociation=function(h){this.L.addPlayerResponseForAssociation(h)};wo.prototype.dR=function(h){this.L.dR(h)}; wo.prototype.WX=function(h){var W=g.tN.apply(1,arguments);h==="onAdStart"||h==="onAdEnd"?this.L.Dg.apply(this.L,[h].concat(g.rN(W))):this.L.Iz.apply(this.L,[h].concat(g.rN(W)))};k_.prototype.Y4=function(h){return h&&h8(this)};var dIT=null;g.n(urp,g.h1);urp.prototype.CO=function(h){return this.X.hasOwnProperty(h)?this.X[h].CO():{}}; g.hS("ytads.bulleit.getVideoMetadata",function(h){return W6().CO(h)}); g.hS("ytads.bulleit.triggerExternalActivityEvent",function(h,W,c){var V=W6();c=JhN(c);c!==null&&V.publish(c,{queryId:h,viewabilityString:W})});g.l=c6.prototype;g.l.Jh=function(h,W){if(!this.X.has(h))return{};if(W==="seek"){W=!1;W=W===void 0?!1:W;var c=jI(pR).WS(h,{});c?Xw(c):W&&(h=jI(pR).LA(null,CJ(),!1,h),h.Cg=3,i7k([h]));return{}}W=ZKd(W);if(W===null)return{};var V=this.L.df();if(!V)return{};var H=this.L.getPresentingPlayerType(!0);if((c=this.L.getVideoData(H))==null||!c.isAd())return{};c={opt_adElement:V,opt_fullscreen:this.Qg.get().isFullscreen()};return iD7(W,h,c)}; g.l.o5=function(h,W,c,V,H){this.X.has(h)&&(V<=0||H<=0||jI(pR).o5(h,W,c,V,H))}; g.l.h$=function(h){var W;(W=this.X.get(h.queryId))==null||W.h$()}; g.l.d_=function(h){var W;(W=this.X.get(h.queryId))==null||W.d_()}; g.l.Ps=function(h){var W;(W=this.X.get(h.queryId))==null||W.Ps()}; g.l.GG=function(h){var W;(W=this.X.get(h.queryId))==null||W.GG()}; g.l.YH=function(h){var W;(W=this.X.get(h.queryId))==null||W.YH()};zTp.prototype.send=function(h,W,c,V){try{Qd7(this,h,W,c,V===void 0?!1:V)}catch(H){}};g.n(Lo7,zTp);iKD.prototype.send=function(h,W,c,V){var H=!1;try{if(V==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||V==="ATTRIBUTION_SRC_MODE_XHR_OPTION")H=!0,h=dUN(h);V=H;var B=g.BA(h);if(B[1]==="https")var E=h;else B[1]="https",E=HA("https",B[2],B[3],B[4],B[5],B[6],B[7]);var J=u7U(E);B=[];var u=ksL(E)&&this.hk.get().L.B().experiments.xN("add_auth_headers_to_remarketing_google_dot_com_ping");if(Vn(E)||u)B.push({headerType:"USER_AUTH"}),B.push({headerType:"PLUS_PAGE_ID"}),B.push({headerType:"VISITOR_ID"}),B.push({headerType:"EOM_VISITOR_ID"}), B.push({headerType:"AUTH_USER"}),B.push({headerType:"DATASYNC_ID"});this.X.send({baseUrl:E,scrubReferrer:J,headers:B},W,c,V)}catch(d){}};B6.prototype.aF=function(){return this.L.aF(1)};g.n(EF,g.N);g.l=EF.prototype;g.l.D$=function(){return this.L.getVideoData(1).clientPlaybackNonce}; g.l.addListener=function(h){this.listeners.push(h)}; g.l.removeListener=function(h){this.listeners=this.listeners.filter(function(W){return W!==h})}; g.l.qv=function(){this.Kx.clear();this.eA=null;this.KQ.get().clear()}; g.l.Ft=function(){}; g.l.QTI=function(h,W,c,V,H){W.videoId==="nPpU29QrbiU"&&this.L.GV("ads_ssm_vdc_s",{pt:c,dvt:h});bI(this.hk.get())&&h!=="dataloaded"||f5T(this,W,c);if(h8(this.hk.get())&&h==="newdata"&&H!==void 0){h=this.D$();var B=W.clientPlaybackNonce,E={};$T(this,"rte",(E.ec=B,E.xc=V==null?void 0:V.clientPlaybackNonce,E.tr=H,E.pt=c,E.ia=B!==h,E.ctp=VT(B),E));W=W.clientPlaybackNonce;V=V==null?void 0:V.clientPlaybackNonce;H=bKd(H);if(H!==1)if(V!==void 0)for(c=g.e(this.listeners),h=c.next();!h.done;h=c.next())h.value.Ul(V, W,H);else sA("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:W,transitionReason:String(H)});H=g.e(this.listeners);for(V=H.next();!V.done;V=H.next())V.value.Kb(W)}}; g.l.TWN=function(h,W){h!==void 0&&(this.eA=h,W===void 0?sA("Expected ad video start time on SS video changed"):this.Kx.set(h,W));var c=this.L.getPresentingPlayerType(!0),V=this.L.getVideoData(c),H;h===void 0?H=null:H=this.KQ.get().X.get(h)||null;this.L.getVideoData(1).GV("ads_ssvc",{pt:c,cpn:V==null?void 0:V.clientPlaybackNonce,crtt:this.L.getCurrentTime(1,!1),atlh:this.L.isAtLiveHead(),adstt:W,pid:h,slid:H==null?void 0:H.layoutId});V?f5T(this,V,c):sA("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.L.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:h})}; g.l.o$=function(h,W){var c=h.author,V=h.clientPlaybackNonce,H=h.isListed,B=h.H0,E=h.title,J=h.wp,u=h.cR,d=h.isMdxPlayback,G=h.TL,Z=h.mdxEnvironment,r=h.isAutonav,q=h.m7,x=h.eL,z=h.Fn,L=h.videoId||"",M=h.profilePicture||"",U=h.e5||"",y=h.jX()||!1,T=h.Gw()||!1;h=h.QQ||void 0;B=this.KQ.get().X.get(B)||{layoutId:null,slotId:null};var m=this.L.getVideoData(1),D=m.Hi();m=m.getPlayerResponse();W=1E3*this.L.getDuration(W);var O=1E3*this.L.getDuration(1),Bd,qL,Rk=(m==null?void 0:(Bd=m.playerConfig)==null? void 0:(qL=Bd.daiConfig)==null?void 0:qL.enableDai)||!1,JN,Wd;Bd=(m==null?void 0:(JN=m.playerConfig)==null?void 0:(Wd=JN.daiConfig)==null?void 0:Wd.enablePreroll)||!1;return Object.assign({},B,{videoId:L,author:c,clientPlaybackNonce:V,QE:W,xQ:O,daiEnabled:Rk,zf:Bd,isListed:H,Hi:D,profilePicture:M,title:E,e5:U,wp:J,cR:u,QQ:h,isMdxPlayback:d,TL:G,mdxEnvironment:Z,isAutonav:r,m7:q,eL:x,Fn:z,jX:y,Gw:T})}; g.l.dE=function(){this.listeners.length=0;this.MD=null;g.N.prototype.dE.call(this)};g.n(RP,g.N);g.l=RP.prototype;g.l.qv=function(){var h=this;h8(this.hk.get())||(this.X=P3(function(){h.L.gE()||h.L.FD("ad",1)}))}; g.l.Ft=function(){}; g.l.addListener=function(h){this.listeners.push(h)}; g.l.removeListener=function(h){this.listeners=this.listeners.filter(function(W){return W!==h})}; g.l.FZ=function(){}; g.l.playVideo=function(){this.L.playVideo()}; g.l.pauseVideo=function(){this.L.pauseVideo()}; g.l.resumeVideo=function(h){this.i8(h)&&this.L.playVideo()}; g.l.i8=function(h){return this.L.getPlayerState(h)===2}; g.l.getCurrentTimeSec=function(h,W,c){var V=this.SO.get().eA;if(h===2&&!W&&V!==null)return d8(this,V);Fo(this.hk.get(),"html5_ssap_use_cpn_to_get_time")||(c=void 0);return c!==void 0?this.L.getCurrentTime(h,W,c):this.L.getCurrentTime(h,W)}; g.l.getVolume=function(){return this.L.getVolume()}; g.l.isMuted=function(){return this.L.isMuted()}; g.l.getPresentingPlayerType=function(){return this.L.getPresentingPlayerType(!0)}; g.l.getPlayerState=function(h){return this.L.getPlayerState(h)}; g.l.getGetAdBreakContext=function(){return this.L.getGetAdBreakContext()}; g.l.isFullscreen=function(){return this.L.isFullscreen()}; g.l.isAtLiveHead=function(){return this.L.isAtLiveHead()}; g.l.CQ=function(h){this.L.CQ(h)}; g.l.HRE=function(){var h=this.L.getPresentingPlayerType(!0),W=this.getCurrentTimeSec(h,!1);if(h===2){h=g.e(this.listeners);for(var c=h.next();!c.done;c=h.next())c.value.Kw(W)}else if(h===1)for(h=g.e(this.Hr),c=h.next();!c.done;c=h.next())c.value.FZ(W)}; g.l.AI9=function(h){for(var W=g.e(this.listeners),c=W.next();!c.done;c=W.next())c.value.jL(h,this.getPresentingPlayerType())}; g.l.onFullscreenToggled=function(h){for(var W=g.e(this.listeners),c=W.next();!c.done;c=W.next())c.value.onFullscreenToggled(h)}; g.l.onVolumeChange=function(){for(var h=g.e(this.listeners),W=h.next();!W.done;W=h.next())W.value.onVolumeChange()}; g.l.kL=function(){for(var h=this.L.isMinimized(),W=g.e(this.listeners),c=W.next();!c.done;c=W.next())c.value.kL(h)}; g.l.Fb=function(h){for(var W=g.e(this.listeners),c=W.next();!c.done;c=W.next())c.value.Fb(h)}; g.l.I1=function(){for(var h=this.L.Bk().W5(),W=g.e(this.listeners),c=W.next();!c.done;c=W.next())c.value.EJ(h)}; g.l.Rx=function(h){for(var W=g.e(this.listeners),c=W.next();!c.done;c=W.next())c.value.Rx(h)}; g.l.Ur=function(){for(var h=g.e(this.listeners),W=h.next();!W.done;W=h.next())W.value.Ur()};g.n(tfL,g.N);g.n(r8,g.N);r8.prototype.dE=function(){this.xk.gE()||this.xk.get().removeListener(this);g.N.prototype.dE.call(this)};qK.prototype.fetch=function(h){var W=h.qe;return this.X.fetch(h.R7,{Iw:h.Iw===void 0?void 0:h.Iw,qh:W,cueProcessedMs:h.cueProcessedMs===void 0?0:h.cueProcessedMs}).then(function(c){return vdQ(c,W)})};g.n(xV,g.N);g.l=xV.prototype;g.l.addListener=function(h){this.listeners.push(h)}; g.l.removeListener=function(h){this.listeners=this.listeners.filter(function(W){return W!==h})}; g.l.AN=function(h){mIQ(this,h,1)}; g.l.onAdUxClicked=function(h,W){ln(this,function(c){c.ez(h,W)})}; g.l.C6=function(h){ln(this,function(W){W.TT(h)})}; g.l.mN=function(h){ln(this,function(W){W.VR(h)})}; g.l.gNE=function(h){ln(this,function(W){W.hL(h)})};nn.prototype.reduce=function(h){switch(h.event){case "unknown":return}var W=h.identifier;var c=this.X[W];c?W=c:(c={g2:null,CL:-Infinity},W=this.X[W]=c);c=h.startSecs+h.X/1E3;if(!(c=this.X.startSecs&&c.startSecs<=this.X.startSecs+this.X.QM)){var V=void 0;if(T2(this.hk.get())&&c.identifier!==((V=this.X)==null?void 0:V.identifier)){var H=V=void 0,B=void 0,E=void 0;xc(this.nM.get(),"ocud","ccpi."+c.identifier+";ccpe."+c.event+";ccps."+c.startSecs+";\n ccpd."+c.QM+";pcpi."+((V=this.X)==null?void 0:V.identifier)+ ";pcpe."+((H=this.X)==null?void 0:H.event)+";\n pcps."+((B=this.X)==null?void 0:B.startSecs)+";pcpd."+((E=this.X)==null?void 0:E.QM)+";")}V=void 0;c.identifier!==((V=this.X)==null?void 0:V.identifier)&&sA("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.X=c,I55(this,c)}}; g.l.dE=function(){this.W!=null&&(this.W.unsubscribe("cuepointupdated",this.Ug,this),this.W=null);this.listeners.length=0;this.gQ.length=0;g.N.prototype.dE.call(this)};g.l=eS.prototype;g.l.O_=function(h,W,c,V,H,B,E,J){return this.L.O_(h,W,c,V,H,B,E,J)}; g.l.ZL=function(h,W){this.L.ZL(h,W)}; g.l.NT=function(h,W,c){this.L.NT(h,W,c)}; g.l.Ta=function(h){this.L.Ta(h)}; g.l.Zf=function(h,W,c,V,H,B,E,J){this.L.Zf(h,W,c,V,H,B,E,J)}; g.l.Mo=function(h){return this.L.Mo(h)}; g.l.finishSegmentByCpn=function(h,W,c){c=SYv(c);this.L.finishSegmentByCpn(h,W,c)};g.n(zz,g.N);g.n(DIh,g.N);g.n(wQN,g.N);g.n(kBl,g.N);g.n(h4U,g.N);g.n(W7l,g.N);g.n(VDc,g.N);VDc.prototype.G=function(){return this.W};g.n($Lf,Tp); $Lf.prototype.G=function(h){var W=h.content;if(W.componentType==="shopping-companion")switch(h.actionType){case 1:case 2:h=this.X.getVideoData(1);this.X.Iz("updateKevlarOrC3Companion",{contentVideoId:h&&h.videoId,shoppingCompanionCarouselRenderer:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.X,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:this.X.Iz("updateKevlarOrC3Companion",{})}else if(W.componentType==="action-companion")switch(h.actionType){case 1:case 2:h=this.X.getVideoData(1); this.X.Iz("updateKevlarOrC3Companion",{contentVideoId:h&&h.videoId,actionCompanionAdRenderer:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.X,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:W.renderer&&(W=this.X.getVideoData(1),this.X.Iz("updateKevlarOrC3Companion",{contentVideoId:W&&W.videoId})),this.X.Iz("updateKevlarOrC3Companion",{})}else if(W.componentType==="image-companion")switch(h.actionType){case 1:case 2:h=this.X.getVideoData(1);this.X.Iz("updateKevlarOrC3Companion", {contentVideoId:h&&h.videoId,imageCompanionAdRenderer:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.X,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:W=this.X.getVideoData(1),this.X.Iz("updateKevlarOrC3Companion",{contentVideoId:W&&W.videoId}),this.X.Iz("updateKevlarOrC3Companion",{})}else if(W.componentType==="top-banner-image-text-icon-buttoned")switch(h.actionType){case 1:case 2:h=this.X.getVideoData(1);this.X.Iz("updateKevlarOrC3Companion", {contentVideoId:h&&h.videoId,topBannerImageTextIconButtonedLayoutViewModel:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.X,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:W.renderer&&(W=this.X.getVideoData(1),this.X.Iz("updateKevlarOrC3Companion",{contentVideoId:W&&W.videoId})),this.X.Iz("updateKevlarOrC3Companion",{})}else if(W.componentType==="banner-image")switch(h.actionType){case 1:case 2:h=this.X.getVideoData(1);this.X.Iz("updateKevlarOrC3Companion", {contentVideoId:h&&h.videoId,bannerImageLayoutViewModel:W.renderer,layoutId:W.layoutId,macros:W.macros,onLayoutVisibleCallback:W.X,interactionLoggingClientData:W.interactionLoggingClientData});break;case 3:W=this.X.getVideoData(1),this.X.Iz("updateKevlarOrC3Companion",{contentVideoId:W&&W.videoId}),this.X.Iz("updateKevlarOrC3Companion",{})}else if(W.componentType==="ads-engagement-panel")switch(W=W.renderer,h.actionType){case 1:case 2:this.X.Iz("updateEngagementPanelAction",W.addAction);this.X.Iz("changeEngagementPanelVisibility", W.expandAction);break;case 3:this.X.Iz("changeEngagementPanelVisibility",W.hideAction),this.X.Iz("updateEngagementPanelAction",W.removeAction)}else if(W.componentType==="ads-engagement-panel-layout"){var c=W.renderer;switch(h.actionType){case 1:case 2:this.X.Iz("updateEngagementPanelAction",{action:U9(c.addAction),layoutId:W.layoutId,onLayoutVisibleCallback:W.X,interactionLoggingClientData:W.interactionLoggingClientData});this.X.Iz("changeEngagementPanelVisibility",U9(c.expandAction));break;case 3:this.X.Iz("changeEngagementPanelVisibility", U9(c.hideAction)),this.X.Iz("updateEngagementPanelAction",{action:U9(c.removeAction)})}}};g.n(skI,Ie);g.l=skI.prototype;g.l.init=function(h,W,c){Ie.prototype.init.call(this,h,W,c);g.oY(this.G,"stroke-dasharray","0 "+this.W);this.G.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.N.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(){OJ(this);Ie.prototype.hide.call(this)}; g.l.show=function(){YB(this);Ie.prototype.show.call(this)}; g.l.rK=function(){this.hide()}; g.l.Z$=function(){if(this.X){var h=this.X.getProgressState();h!=null&&h.current!=null&&g.oY(this.G,"stroke-dasharray",h.current/h.seekableEnd*this.W+" "+this.W)}};g.n(HUS,Hn);g.l=HUS.prototype; g.l.init=function(h,W,c){Hn.prototype.init.call(this,h,W,c);if(W.image&&W.image.thumbnail)if(W.headline)if(W.description)if(W.backgroundImage&&W.backgroundImage.thumbnail)if(W.actionButton&&g.v(W.actionButton,g.DJ))if(h=W.durationMilliseconds||0,typeof h!=="number"||h<=0)g.Qq(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+h));else if(W.navigationEndpoint){var V=this.api.getVideoData(2);if(V!=null){var H=W.image.thumbnail.thumbnails;H!=null&& H.length>0&&g.Cr(g.Fk(H[0].url))&&(H[0].url=V.profilePicture,g.Cr(g.Fk(V.profilePicture))&&Ix5("VideoPlayer",239976093,"Expected non-empty profile picture."));H=W.backgroundImage.thumbnail.thumbnails;H!=null&&H.length>0&&g.Cr(g.Fk(H[0].url))&&(H[0].url=V.YL());H=W.headline;H!=null&&g.Cr(g.Fk(H.text))&&(H.text=V.author)}this.T.init(wc("ad-image"),W.image,c);this.N.init(wc("ad-text"),W.headline,c);this.G.init(wc("ad-text"),W.description,c);this.Rz.init(wc("ad-image"),W.backgroundImage,c);V=["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.N.element.classList.add("ytp-ad-action-interstitial-headline-light");this.G.element.classList.add("ytp-ad-action-interstitial-description-light");V.push("ytp-ad-action-interstitial-action-button-dark");this.api.B().W&&(V.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),V.push("ytp-ad-action-interstitial-action-button-dark"));this.api.B().j("enable_unified_action_endcap_on_web")&& !this.api.B().W&&(V.push("ytp-ad-action-interstitial-action-button-unified"),this.rE.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.T.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.Mn.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.g3.classList.add("ytp-ad-action-interstitial-card-unified"),this.Wk.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.G.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.zV.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.N.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.Nn.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.CM.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new iw(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,V);g.X(this,this.actionButton);this.actionButton.kN(this.rE); this.actionButton.init(wc("button"),g.v(W.actionButton,g.DJ),c);be(this.actionButton.element);V=Xd(this.actionButton.element);Nf(this.actionButton.element,V+" This link opens in new tab");this.navigationEndpoint=W.navigationEndpoint;this.Y.U(this.Nn,"click",this.Tq,this);this.Y.U(this.Wk,"click",this.Tq,this);!this.api.B().j("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.B().W||this.Y.U(this.zV,"click",this.Tq,this);this.X=this.Ze?new rT(this.api,h):new qa(h);g.X(this,this.X);if(W.skipButton){(h= g.v(W.skipButton,quU))&&this.X&&(this.skipButton=new Rt(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,this.X,this.En),g.X(this,this.skipButton),this.skipButton.kN(this.element),this.skipButton.init(wc("skip-button"),h,c));if(c=W.adBadgeRenderer)if(c=g.v(c,rkU))h=new G3(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,!0,!0),h.kN(this.CM),h.init(wc("simple-ad-badge"),c,this.macros),g.X(this,h);if(c=W.adInfoRenderer)if(c=g.v(c,ST))h=new mQ(this.api,this.layoutId,this.interactionLoggingClientData, this.oz,this.element,void 0,!0),h.kN(this.CM),h.init(wc("ad-info-hover-text-button"),c,this.macros),g.X(this,h)}else W.nonskippableOverlayRenderer&&(h=g.v(W.nonskippableOverlayRenderer,gV))&&this.X&&(this.W=new Db(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,this.X,!1),g.X(this,this.W),this.W.kN(this.element),this.W.init(wc("ad-preview"),h,c));W.countdownRenderer&&(W=W.countdownRenderer,g.v(W,xoU)&&this.X&&(c=new skI(this.api,this.layoutId,this.interactionLoggingClientData,this.oz, this.X),g.X(this,c),c.kN(this.element),c.init(wc("timed-pie-countdown"),g.v(W,xoU),this.macros)));this.show();this.element.focus()}else g.Qq(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.Qq(Error("AdActionInterstitialRenderer has no button."));else g.Qq(Error("AdActionInterstitialRenderer has no background AdImage."));else g.Qq(Error("AdActionInterstitialRenderer has no description AdText."));else g.Qq(Error("AdActionInterstitialRenderer has no headline AdText."));else g.Qq(Error("AdActionInterstitialRenderer has no image."))}; g.l.clear=function(){g.zR(this.Y);this.hide()}; g.l.show=function(){BNt(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.W&&this.W.show();Hn.prototype.show.call(this)}; g.l.hide=function(){BNt(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.W&&this.W.hide();Hn.prototype.hide.call(this)}; g.l.Tq=function(){this.navigationEndpoint&&(this.layoutId?this.oz.executeCommand(this.navigationEndpoint,this.layoutId):g.Qq(Error("Missing layoutId for ad action interstitial.")))};var dLS={iconType:"CLOSE"},A8=new g.Yu(320,63);g.n(ulf,Hn);g.l=ulf.prototype; g.l.init=function(h,W,c){Hn.prototype.init.call(this,h,W,c);this.Y=W;this.T=g.Mu(this.Y.onClickCommands||[]);this.CM=this.Y.onErrorCommand||null;if(h=this.Y.contentSupportedRenderer)h=this.Y.contentSupportedRenderer,W=this.Y.adInfoRenderer||null,g.v(h,dot)?(this.N=g.EH("ytp-ad-overlay-ad-info-button-container",this.G.element),GQt(this,W),h=rNK(this,g.v(h,dot))):g.v(h,GAU)?(this.N=g.EH("ytp-ad-overlay-ad-info-button-container",this.W.element),GQt(this,W),h=qvf(this,g.v(h,GAU))):g.v(h,Z6U)?(this.N= g.EH("ytp-ad-overlay-ad-info-button-container",this.X.element),GQt(this,W),h=xL$(this,g.v(h,Z6U))):(g.Qq(Error("InvideoOverlayAdRenderer content could not be initialized.")),h=!1);h&&(this.show(),lhX(this,!0))}; g.l.clear=function(){lhX(this,!1);this.Nn.reset();this.Wk=0;this.G.hide();this.logVisibility(this.G.element,!1);this.W.hide();this.logVisibility(this.W.element,!1);this.X.hide();this.logVisibility(this.X.element,!1);this.hide();this.dispose()}; g.l.hsf=function(){this.rE&&(this.layoutId?this.oz.executeCommand(this.rE,this.layoutId):g.Qq(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.l.s9=function(){a:{if(this.Y&&this.Y.closeButton&&this.Y.closeButton.buttonRenderer){var h=this.Y.closeButton.buttonRenderer;if(h.serviceEndpoint){h=[h.serviceEndpoint];break a}}h=[]}h=g.e(h);for(var W=h.next();!W.done;W=h.next())W=W.value,this.layoutId?this.oz.executeCommand(W,this.layoutId):g.Qq(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.l.nNN=function(){this.Rz||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.l.l4=function(){this.Rz||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.l4("invideo-overlay")}; g.l.mnI=function(h){h.target===this.N&&g.EH("ytp-ad-button",this.Mn.element).click()};g.n(n5U,Ie);g.l=n5U.prototype;g.l.init=function(h,W,c){Ie.prototype.init.call(this,h,W,c);h=W.durationMs;this.G=h==null||h===0?0:h+this.X.getProgressState().current*1E3;if(W.text)var V=W.text.templatedAdText;else W.staticMessage&&(V=W.staticMessage);this.messageText.init(wc("ad-text"),V,c);this.messageText.kN(this.W.element);this.Y.show(100);this.show()}; g.l.clear=function(){this.hide()}; g.l.hide=function(){jk6(this,!1);Ie.prototype.hide.call(this);this.W.hide();this.messageText.hide();OJ(this)}; g.l.show=function(){jk6(this,!0);Ie.prototype.show.call(this);YB(this);this.W.show();this.messageText.show()}; g.l.rK=function(){this.hide()}; g.l.Z$=function(){if(this.X!=null){var h=this.X.getProgressState();h!=null&&h.current!=null&&(h=1E3*h.current,!this.Wk&&h>=this.G?(this.Y.hide(),this.Wk=!0):this.messageText&&this.messageText.isTemplated()&&(h=Math.max(0,Math.ceil((this.G-h)/1E3)),h!==this.N&&(p4(this.messageText,{TIME_REMAINING:String(h)}),this.N=h)))}};g.n(ah6,Hn);g.l=ah6.prototype; g.l.init=function(h,W,c){Hn.prototype.init.call(this,h,W,{});W.image&&W.image.thumbnail?W.headline?W.description?W.actionButton&&g.v(W.actionButton,g.DJ)?(this.G.init(wc("ad-image"),W.image,c),this.W.init(wc("ad-text"),W.headline,c),this.Y.init(wc("ad-text"),W.description,c),this.actionButton=new iw(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,["ytp-ad-underlay-action-button"]),W.backgroundColor&&g.oY(this.element,"background-color",g.Ma(W.backgroundColor)),g.X(this,this.actionButton), this.actionButton.kN(this.N),this.actionButton.init(wc("button"),g.v(W.actionButton,g.DJ),c),h=g.DF(this.api.B().experiments,"player_underlay_video_width_fraction"),this.api.B().j("place_shrunken_video_on_left_of_player")?(W=this.X,g.cD(W,"ytp-ad-underlay-left-container"),g.he(W,"ytp-ad-underlay-right-container"),g.oY(this.X,"margin-left",Math.round((h+.02)*100)+"%")):(W=this.X,g.cD(W,"ytp-ad-underlay-right-container"),g.he(W,"ytp-ad-underlay-left-container")),g.oY(this.X,"width",Math.round((1-h- .04)*100)+"%"),this.api.Vt()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.aJ.bind(this)),this.api.addEventListener("resize",this.WK.bind(this))):g.Qq(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.Qq(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.Qq(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.Qq(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.l.show=function(){e4I(!0);this.actionButton&&this.actionButton.show();Hn.prototype.show.call(this)}; g.l.hide=function(){e4I(!1);this.actionButton&&this.actionButton.hide();Hn.prototype.hide.call(this)}; g.l.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.aJ.bind(this));this.api.removeEventListener("resize",this.WK.bind(this));this.hide()}; g.l.onClick=function(h){Hn.prototype.onClick.call(this,h);this.actionButton&&g.jk(this.actionButton.element,h.target)&&this.api.pauseVideo()}; g.l.aJ=function(h){h==="transitioning"?(this.X.classList.remove("ytp-ad-underlay-clickable"),this.show()):h==="visible"?this.X.classList.add("ytp-ad-underlay-clickable"):h==="hidden"&&(this.hide(),this.X.classList.remove("ytp-ad-underlay-clickable"))}; g.l.WK=function(h){h.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):h.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.oY(this.W.element,"font-size",h.width/40+"px")};g.n(UF,Hn); UF.prototype.init=function(h,W,c){Hn.prototype.init.call(this,h,W,c);W.toggledLoggingParams&&(this.toggledLoggingParams=W.toggledLoggingParams);W.answer&&g.v(W.answer,g.DJ)?(h=new iw(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),h.kN(this.answer),h.init(wc("ytp-ad-survey-answer-button"),g.v(W.answer,g.DJ),c),h.show()):W.answer&&g.v(W.answer,Ko)&&(this.X=new f4(this.api,this.layoutId,this.interactionLoggingClientData,this.oz, ["ytp-ad-survey-answer-toggle-button"]),this.X.kN(this.answer),g.X(this,this.X),this.X.init(wc("survey-answer-button"),g.v(W.answer,Ko),c));this.show()}; UF.prototype.sx=function(h){this.layoutId?UX(this.oz,h,this.layoutId,this.macros):(h=new g.tP("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.Qq(h))}; UF.prototype.onClick=function(h){Hn.prototype.onClick.call(this,h);if(this.api.B().j("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; UF.prototype.clear=function(){this.hide()};g.n(z4I,Hn);z4I.prototype.init=function(h,W,c){Hn.prototype.init.call(this,h,W,c);W.answer&&g.v(W.answer,Ko)&&(this.button=new f4(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.kN(this.X),this.button.init(wc("survey-none-of-the-above-button"),g.v(W.answer,Ko),c));this.show()};g.n(Cn,iw);Cn.prototype.init=function(h,W,c){iw.prototype.init.call(this,h,W,c);h=!1;W.text&&(W=g.EJ(W.text),h=!g.Cr(W));h||g.Lx(Error("No submit text was present in the renderer."))}; Cn.prototype.onClick=function(h){this.publish("l");iw.prototype.onClick.call(this,h)};g.n(MK,Hn); MK.prototype.init=function(h,W,c){Hn.prototype.init.call(this,h,W,c);if(h=W.skipOrPreviewRenderer)g.v(h,aO)?(h=g.v(h,aO),c=new u7(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,this.Y,!0),c.kN(this.skipOrPreview),c.init(wc("skip-button"),h,this.macros),g.X(this,c),this.X=c):g.v(h,gV)&&(h=g.v(h,gV),c=new Db(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,this.Y,!1),c.kN(this.skipOrPreview),c.init(wc("ad-preview"),h,this.macros),c.Wk.show(100),c.show(),g.X(this,c), this.X=c);this.X==null&&(h=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(W)),g.Qq(h));W.submitButton&&(h=W.submitButton,g.v(h,g.DJ)&&(h=g.v(h,g.DJ),c=new Cn(this.api,this.layoutId,this.interactionLoggingClientData,this.oz),c.kN(this.submitButton),c.init(wc("survey-submit"),h,this.macros),g.X(this,c),this.W=c));if(h=W.adBadgeRenderer)h=g.v(h,rkU),c=new G3(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,!0,!0,!0),c.kN(this.G),c.init(wc("simple-ad-badge"), h,this.macros),this.adBadge=c.element,g.X(this,c);if(h=W.adDurationRemaining)h=g.v(h,Rgl),c=new nV(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,this.Y,void 0,!0),c.kN(this.G),c.init(wc("ad-duration-remaining"),h,this.macros),g.X(this,c);(W=W.adInfoRenderer)&&g.v(W,ST)&&(h=new mQ(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,this.element,void 0,!0),g.X(this,h),this.adBadge!==void 0?this.G.insertBefore(h.element,this.adBadge.nextSibling):h.kN(this.G),h.init(wc("ad-info-hover-text-button"), g.v(W,ST),this.macros));this.show()}; MK.prototype.clear=function(){this.hide()};g.n(FD,Hn);FD.prototype.init=function(h,W,c){Hn.prototype.init.call(this,h,W,c);ANf(this)}; FD.prototype.show=function(){this.G=Date.now();Hn.prototype.show.call(this)}; FD.prototype.yE=function(){};g.n(UL6,FD);g.l=UL6.prototype;g.l.init=function(h,W,c){var V=this;FD.prototype.init.call(this,h,W,c);W.questionText&&Qkt(this,W.questionText);W.answers&&W.answers.forEach(function(H,B){g.v(H,Lo)&&L7S(V,g.v(H,Lo),c,B)}); this.N=new Set(this.W.map(function(H){return H.X.X})); (h=W.noneOfTheAbove)&&(h=g.v(h,uk6))&&CTI(this,h,c);W.surveyAdQuestionCommon&&K7u(this,W.surveyAdQuestionCommon);W.submitEndpoints&&(this.submitEndpoints=W.submitEndpoints);this.U(this.element,"change",this.onChange);this.show()}; g.l.yE=function(){MDU(this,!1);this.Y.W.subscribe("l",this.YX9,this)}; g.l.onChange=function(h){h.target===this.noneOfTheAbove.button.X?F7u(this):this.N.has(h.target)&&(this.noneOfTheAbove.button.toggleButton(!1),MDU(this,!0))}; g.l.YX9=function(){var h=[],W=this.W.reduce(function(H,B,E){var J=B.toggledLoggingParams;B.X&&B.X.isToggled()&&J&&(H.push(J),h.push(E));return H},[]).join("&"),c=this.submitEndpoints.map(function(H){if(!H.loggingUrls)return H; H=g.xF(H);H.loggingUrls=H.loggingUrls.map(function(B){B.baseUrl&&(B.baseUrl=qG(B.baseUrl,W));return B}); return H}); if(c){c=g.e(c);for(var V=c.next();!V.done;V=c.next())V=V.value,this.layoutId?UX(this.oz,V,this.layoutId,this.macros):g.Qq(Error("Missing layoutId for multi_select_question."))}this.api.B().j("supports_multi_step_on_desktop")&&this.Wk(h)}; g.l.clear=function(){this.api.B().j("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.n(P6,FD);P6.prototype.init=function(h,W,c){var V=this;FD.prototype.init.call(this,h,W,c);W.questionText&&Qkt(this,W.questionText);W.answers&&W.answers.forEach(function(H,B){g.v(H,Lo)&&L7S(V,g.v(H,Lo),c,B)}); W.surveyAdQuestionCommon?K7u(this,W.surveyAdQuestionCommon):cp(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(W)));this.show()}; P6.prototype.clear=function(){this.api.B().j("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.n(fn,Hn);fn.prototype.init=function(h,W,c){var V=this;Hn.prototype.init.call(this,h,W,c);if(this.api.B().j("supports_multi_step_on_desktop")){var H;this.conditioningRules=(H=W.conditioningRules)!=null?H:[];var B;this.W=(B=W.questions)!=null?B:[];var E;((E=W.questions)==null?0:E.length)&&bUl(this,0)}else(W.questions||[]).forEach(function(J){g.v(J,Yt)?PTK(V,g.v(J,Yt),c):g.v(J,Ic)&&fh2(V,g.v(J,Ic),c)}); this.show()}; fn.prototype.clear=function(){this.api.B().j("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; fn.prototype.Y=function(h){var W=this;if(this.api.B().j("supports_multi_step_on_desktop")){var c;if((c=this.conditioningRules)==null?0:c.length){var V;if(h.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(H){return H.questionIndex===W.X})==null)g.Qq(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(H){if(H.questionIndex===W.X)switch(H.condition){case "CONDITION_ALL_OF":var B;if((B=H.answerIndices)==null?0:B.every(function(J){return h.includes(J)}))V=H.nextQuestionIndex; break;case "CONDITION_ANY_OF":var E;if((E=H.answerIndices)==null?0:E.some(function(J){return h.includes(J)}))V=H.nextQuestionIndex; break;default:g.Qq(Error("Expected specified condition in survey conditioning rules."))}}),V!=null)bUl(this,V); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.Qq(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.n(bn,Hn); bn.prototype.init=function(h,W,c){var V=this;Hn.prototype.init.call(this,h,W,c);h=W.timeoutSeconds||0;if(typeof h!=="number"||h<0)g.Qq(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+h));else if(W.timeoutCommands)if(W.text)if(W.ctaButton&&g.v(W.ctaButton,g.DJ))if(W.brandImage)if(W.backgroundImage&&g.v(W.backgroundImage,wV)&&g.v(W.backgroundImage,wV).landscape){this.layoutId||g.Qq(Error("Missing layoutId for survey interstitial."));TNf(this.interstitial,g.v(W.backgroundImage, wV).landscape);TNf(this.logoImage,W.brandImage);g.aY(this.text,g.EJ(W.text));var H=["ytp-ad-survey-interstitial-action-button"];H.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new iw(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,H);g.X(this,this.actionButton);this.actionButton.kN(this.W);this.actionButton.init(wc("button"),g.v(W.ctaButton,g.DJ),c);this.actionButton.show();this.X=new rT(this.api,h*1E3);this.X.subscribe("g",function(){V.transition.hide()}); g.X(this,this.X);this.U(this.element,"click",function(B){var E=B.target===V.interstitial;B=V.actionButton.element.contains(B.target);if(E||B)if(V.transition.hide(),E)V.api.onAdUxClicked(V.componentType,V.layoutId)}); this.transition.show(100)}else g.Qq(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.Qq(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.Qq(Error("SurveyTextInterstitialRenderer has no button."));else g.Qq(Error("SurveyTextInterstitialRenderer has no text."));else g.Qq(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; bn.prototype.clear=function(){this.hide()}; bn.prototype.show=function(){NNI(!0);Hn.prototype.show.call(this)}; bn.prototype.hide=function(){NNI(!1);Hn.prototype.hide.call(this)};g.n(Tz,Ie);g.l=Tz.prototype; g.l.init=function(h,W){Ie.prototype.init.call(this,h,W,{});if(W.durationMilliseconds){if(W.durationMilliseconds<0){g.Qq(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+W.durationMilliseconds));return}this.W=W.durationMilliseconds}else this.W=this.X.Zj();var c;if((c=W.previewText)==null||!c.text||g.Cr(W.previewText.text))g.Qq(Error("No text is returned for AdPreview."));else{this.N=W.previewText;W.previewText.isTemplated||g.aY(this.G,W.previewText.text);var V; if(((V=this.api.getVideoData(1))==null?0:V.TA)&&W.previewImage){var H,B;(h=((B=JC(((H=W.previewImage)==null?void 0:H.sources)||[],52,!1))==null?void 0:B.url)||"")&&h.length?(this.previewImage=new g.sJ({D:"img",K:"ytp-preview-ad__image",J:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",h),g.X(this,this.previewImage),this.previewImage.kN(this.element)):g.Qq(Error("Failed to get imageUrl in AdPreview."))}else this.G.classList.add("ytp-preview-ad__text--padding--wide")}}; g.l.clear=function(){this.hide()}; g.l.hide=function(){OJ(this);Ie.prototype.hide.call(this)}; g.l.show=function(){YB(this);Ie.prototype.show.call(this)}; g.l.rK=function(){this.hide()}; g.l.Z$=function(){if(this.X){var h=this.X.getProgressState();if(h!=null&&h.current)if(h=1E3*h.current,h>=this.W)this.transition.hide();else{var W;if((W=this.N)==null?0:W.isTemplated)if(W=Math.max(0,Math.ceil((this.W-h)/1E3)),W!==this.Y){var c,V;(h=(c=this.N)==null?void 0:(V=c.text)==null?void 0:V.replace("{TIME_REMAINING}",String(W)))&&g.aY(this.G,h);this.Y=W}}}};g.n(NK,Hn); NK.prototype.init=function(h,W){Hn.prototype.init.call(this,h,W,{});var c,V;if((h=((V=JC(((c=W.image)==null?void 0:c.sources)||[],Xd6(W),!0))==null?void 0:V.url)||"")&&h.length){c=this.vk("ytp-ad-avatar");c.src=h;var H,B;if(V=(H=W.interaction)==null?void 0:(B=H.accessibility)==null?void 0:B.label)c.alt=V;switch(W.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(W.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.Qq(Error("Failed to get imageUrl in AdAvatar."))}; NK.prototype.clear=function(){this.hide()}; NK.prototype.onClick=function(h){Hn.prototype.onClick.call(this,h)};g.n(XD,Hn); XD.prototype.init=function(h,W){Hn.prototype.init.call(this,h,W,{});var c;h=(c=W.label)==null?void 0:c.content;if((c=h!=null&&!g.Cr(h))||W.iconImage){c&&(this.buttonText=new g.sJ({D:"span",K:"ytp-ad-button-vm__text",YN:h}),g.X(this,this.buttonText),this.buttonText.kN(this.element));var V,H,B=((V=W.interaction)==null?0:(H=V.accessibility)==null?0:H.label)||c?h:"";B&&Nf(this.element,B+" This link opens in new tab");be(this.element);if(W.iconImage){V=void 0;if(W.iconImage){a:{H=W.iconImage;if(H.sources)for(H= g.e(H.sources),h=H.next();!h.done;h=H.next())if(h=h.value,B=void 0,(B=h.clientResource)==null?0:B.imageName){H=h;break a}H=void 0}if(H){var E;V={iconType:(E=H.clientResource)==null?void 0:E.imageName}}}E=L4(V,!1,this.W);E!=null&&(this.buttonIcon=new g.sJ({D:"span",K:"ytp-ad-button-vm__icon",V:[E]}),g.X(this,this.buttonIcon),W.iconLeading?(li(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):c?(this.buttonIcon.kN(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.kN(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(W.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.j("delhi_modern_web_player")?this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.X?"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(W.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.Lx(Error("AdButton does not have label or an icon."))}; XD.prototype.clear=function(){this.hide()}; XD.prototype.onClick=function(h){Hn.prototype.onClick.call(this,h)};g.n(tDc,Ie);g.l=tDc.prototype; g.l.init=function(h,W){Ie.prototype.init.call(this,h,W,{});this.api.B().j("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.vk("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"),li(this.vk("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(h=g.v(W.avatar,SS)){var c=W.headline;if(c){var V=W.description;if(V){var H=g.v(W.button,Dz);H?(this.adAvatar.init(wc("ad-avatar"),h),this.headline.init(wc("ad-simple-attributed-string"),new at(c)),this.description.init(wc("ad-simple-attributed-string"),new at(V)),c.content&&c.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(wc("ad-button"),H),this.startMilliseconds=W.startMs||0,this.api.Vt()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.G4.bind(this)),YB(this)):g.Qq(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Qq(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Qq(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Qq(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.l.Z$=function(){if(this.X){var h=this.X.getProgressState();h&&h.current&&1E3*h.current>=this.startMilliseconds&&(OJ(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.l.rK=function(){this.clear()}; g.l.onClick=function(h){this.api.pauseVideo();Ie.prototype.onClick.call(this,h)}; g.l.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.G4.bind(this))}; g.l.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();Ie.prototype.show.call(this)}; g.l.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();Ie.prototype.hide.call(this)}; g.l.G4=function(h){h==="hidden"?this.show():this.hide()};g.n(t8,Hn);g.l=t8.prototype; g.l.init=function(h,W){Hn.prototype.init.call(this,h,W,{});if(!W.label||g.Cr(W.label))g.Qq(Error("No label is returned for SkipAdButton."));else if(g.aY(this.Y,W.label),h=L4({iconType:"SKIP_NEXT_NEW"}),h==null)g.Qq(Error("Unable to retrieve icon for SkipAdButton"));else if(this.G=new g.sJ({D:"span",K:"ytp-skip-ad-button__icon",V:[h]}),g.X(this,this.G),this.G.kN(this.element),this.api.B().experiments.xN("enable_skip_to_next_messaging")&&(W=g.Fk(W.targetId)))this.W=!0,this.element.setAttribute("data-tooltip-target-id",W), this.element.setAttribute("data-tooltip-target-fixed","")}; g.l.onClick=function(h){h&&h.preventDefault();var W,c;Bwk(h,{contentCpn:(c=(W=this.api.getVideoData(1))==null?void 0:W.clientPlaybackNonce)!=null?c:""})===0?this.api.Iz("onAbnormalityDetected"):(Hn.prototype.onClick.call(this,h),this.api.Iz("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.l.clear=function(){this.X.reset();this.hide()}; g.l.hide=function(){Hn.prototype.hide.call(this)}; g.l.show=function(){this.X.start();Hn.prototype.show.call(this);this.W&&this.api.B().experiments.xN("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.n(v5u,Ie);g.l=v5u.prototype; g.l.init=function(h,W){Ie.prototype.init.call(this,h,W,{});h=g.v(W.preskipState,Q0U);var c;if((c=this.api.getVideoData())==null?0:c.isDaiEnabled()){if(!h){g.Qq(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.W=new Tz(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,this.X);g.X(this,this.W);this.W.kN(this.element);var V;(V=this.W)==null||V.init(wc("preview-ad"),h);(c=this.W)!=null&&(c.transition.show(100),c.show())}(c=g.v(W.skippableState,i66))?(W.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=W.skipOffsetMilliseconds:(g.Lx(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.G.init(wc("skip-button"),c),this.show()):g.Qq(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.l.show=function(){YB(this);Ie.prototype.show.call(this)}; g.l.hide=function(){!this.isSkippable&&this.W?this.W.hide():this.G&&this.G.hide();OJ(this);Ie.prototype.hide.call(this)}; g.l.clear=function(){var h;(h=this.W)==null||h.clear();this.G&&this.G.clear();OJ(this);Ie.prototype.hide.call(this)}; g.l.rK=function(){this.hide()}; g.l.Z$=function(){if(1E3*this.X.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var h;(h=this.W)!=null&&h.transition.hide();(h=this.G)!=null&&(h.transition.show(),h.show())}};g.n(v6,Hn); v6.prototype.init=function(h,W){Hn.prototype.init.call(this,h,W,{});if(W.label){var c;((c=W.label)==null?0:c.content)&&!g.Cr(W.label.content)&&(this.linkText=new g.sJ({D:"span",K:"ytp-visit-advertiser-link__text",YN:W.label.content}),g.X(this,this.linkText),this.linkText.kN(this.element));var V,H;if((V=W.interaction)==null?0:(H=V.accessibility)==null?0:H.label)Nf(this.element,W.interaction.accessibility.label+" This link opens in new tab");else{var B;((B=W.label)==null?0:B.content)&&!g.Cr(W.label.content)&&Nf(this.element, W.label.content+" This link opens in new tab")}be(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.Qq(Error("No label found in VisitAdvertiserLink."))}; v6.prototype.onClick=function(h){Hn.prototype.onClick.call(this,h);this.api.onAdUxClicked(this.componentType,this.layoutId)}; v6.prototype.clear=function(){this.hide()};g.n(ml,Hn); ml.prototype.init=function(h,W,c,V){Hn.prototype.init.call(this,h,W,{});if(W.skipOrPreview){c=W.skipOrPreview;h=g.v(c,KqX);c=g.v(c,Q0U);if(h)this.hZ=new v5u(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,this.W),g.X(this,this.hZ),this.hZ.kN(this.T),this.hZ.init(wc("skip-ad"),h);else{var H;c&&((H=this.api.getVideoData())==null?0:H.isDaiEnabled())&&(this.Y=new Tz(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,this.W,1),g.X(this,this.Y),this.Y.kN(this.T),this.Y.init(wc("ad-preview"), c),H=this.Y,H.transition.show(100),H.show())}if(H=g.v(W.skipOrPreview,KqX))var B=H.skipOffsetMilliseconds}W.playerAdCard&&(H=g.v(W.playerAdCard,Lqf))&&(this.playerAdCard=new tDc(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,this.W),g.X(this,this.playerAdCard),this.playerAdCard.kN(this.zV),this.playerAdCard.init(wc("ad-avatar-lockup-card"),H));W.adBadgeRenderer&&((H=g.v(W.adBadgeRenderer,g8))?(this.G=new z3(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,!0),g.X(this, this.G),this.G.kN(this.X),this.G.init(wc("ad-badge"),H)):g.Qq(Error("AdBadgeViewModel is not found in player overlay layout.")));W.adPodIndex&&(H=g.v(W.adPodIndex,j0K))&&(this.adPodIndex=new Qh(this.api,this.layoutId,this.interactionLoggingClientData,this.oz),g.X(this,this.adPodIndex),this.adPodIndex.kN(this.X),this.adPodIndex.init(wc("ad-pod-index"),H));W.adInfoRenderer&&((H=g.v(W.adInfoRenderer,ST))?(this.adInfoButton=new mQ(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,this.element, void 0,!0),g.X(this,this.adInfoButton),this.G!==void 0?this.X.insertBefore(this.adInfoButton.element,this.G.element.nextSibling):this.adInfoButton.kN(this.X),this.adInfoButton.init(wc("ad-info-hover-text-button"),H,this.macros)):g.Lx(Error("AdInfoRenderer is not found in player overlay layout.")));var E;H=(E=this.api.getVideoData())==null?void 0:E.isDaiEnabled();W.adDurationRemaining&&H&&(E=g.v(W.adDurationRemaining,Rgl))&&(this.adDurationRemaining=new nV(this.api,this.layoutId,this.interactionLoggingClientData, this.oz,this.W,V.videoAdDurationSeconds,!0),g.X(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.X.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.kN(this.X),this.adDurationRemaining.init(wc("ad-duration-remaining"),E,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));W.visitAdvertiserLink&&(V=g.v(W.visitAdvertiserLink,Uou))&&(this.visitAdvertiserLink=new v6(this.api,this.layoutId, this.interactionLoggingClientData,this.oz),g.X(this,this.visitAdvertiserLink),this.visitAdvertiserLink.kN(this.X),this.visitAdvertiserLink.init(wc("visit-advertiser-link"),V));W.adDisclosureBanner&&(W=g.v(W.adDisclosureBanner,nu2))&&(this.adDisclosureBanner=new LV(this.api,this.layoutId,this.interactionLoggingClientData,this.oz),g.X(this,this.adDisclosureBanner),this.adDisclosureBanner.kN(this.Wk),this.adDisclosureBanner.init(wc("ad-disclosure-banner"),W));this.N=new AW(this.api,this.W,B,!0);g.X(this, this.N);g.ge(this.api,this.N.element,4);this.show()}; ml.prototype.clear=function(){this.hide()};g.n(mL6,Hn);g.l=mL6.prototype; g.l.init=function(h,W){Hn.prototype.init.call(this,h,W,{});if(W!=null&&W.title)if(h=W.title)if(this.headline.init(wc("ad-simple-attributed-string"),new at(h)),h=g.v(W.moreInfoButton,Dz)){if(this.moreInfoButton.init(wc("ad-button"),h),W.descriptions)W.descriptions.length>0&&(h=W.descriptions[0])&&(this.X=new eR(this.api,this.layoutId,this.interactionLoggingClientData,this.oz),g.X(this,this.X),this.X.kN(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.X.init(wc("ad-simple-attributed-string"), new at(h))),W.descriptions.length>1&&(W=W.descriptions[1])&&(this.W=new eR(this.api,this.layoutId,this.interactionLoggingClientData,this.oz),g.X(this,this.W),this.W.kN(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.W.init(wc("ad-simple-attributed-string"),new at(W)))}else g.Qq(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.Qq(Error("No headline found in AdGridCardText."));else g.Qq(Error("No headline found in AdGridCardText."))}; g.l.onClick=function(h){Hn.prototype.onClick.call(this,h);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.l.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var h;(h=this.X)==null||h.clear();var W;(W=this.W)==null||W.clear()}; g.l.hide=function(){this.headline.hide();this.moreInfoButton.hide();var h;(h=this.X)==null||h.hide();var W;(W=this.W)==null||W.hide();Hn.prototype.hide.call(this)}; g.l.show=function(){Hn.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var h;(h=this.X)==null||h.show();var W;(W=this.W)==null||W.show()};g.n(oP,Hn);oP.prototype.init=function(h,W){Hn.prototype.init.call(this,h,W,{});if(W!=null&&W.gridCards)if(W.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.Qq(Error("Only single column style is currently supported in AdGridCardCollection."));else for(h=g.e(W.gridCards),W=h.next();!W.done;W=h.next()){if(W=g.v(W.value,zg6)){var c=new mL6(this.api,this.layoutId,this.interactionLoggingClientData,this.oz);g.X(this,c);c.kN(this.element);c.init(wc("ad-grid-card-text"),W);this.X.push(c)}}else g.Qq(Error("No grid cards found in AdGridCardCollection."))}; oP.prototype.show=function(){for(var h=g.e(this.X),W=h.next();!W.done;W=h.next())W.value.show();Hn.prototype.show.call(this)}; oP.prototype.clear=function(){this.hide();for(var h=g.e(this.X),W=h.next();!W.done;W=h.next())W.value.clear()}; oP.prototype.hide=function(){for(var h=g.e(this.X),W=h.next();!W.done;W=h.next())W.value.hide();Hn.prototype.hide.call(this)};g.n(pn,Ie);g.l=pn.prototype;g.l.init=function(h,W,c,V,H){H=H===void 0?0:H;Ie.prototype.init.call(this,h,W,c,V);this.playerProgressOffsetMs=H;YB(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.qZ.bind(this));this.api.addEventListener("resize",this.Yf.bind(this));this.api.Vt()?(this.W=!0,this.api.CQ(!0),this.show()):this.hide()}; g.l.Z$=function(){if(this.X){var h=this.X.getProgressState();h&&h.current&&!this.W&&1E3*h.current>=this.playerProgressOffsetMs&&(this.W=!0,this.api.CQ(!0),this.show())}}; g.l.rK=function(){this.W&&this.api.CQ(!1);this.hide()}; g.l.clear=function(){this.api.CQ(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.qZ.bind(this));this.api.removeEventListener("resize",this.Yf.bind(this));OJ(this);this.hide()}; g.l.hide=function(){o5I(!1);Ie.prototype.hide.call(this)}; g.l.show=function(){o5I(!0);Ie.prototype.show.call(this)};g.n(pdI,pn);g.l=pdI.prototype; g.l.init=function(h,W,c,V){if(W!=null&&W.adGridCardCollection)if(W!=null&&W.adButton){var H=Number(W.playerProgressOffsetMs||"0");isNaN(H)?pn.prototype.init.call(this,h,W,c,V):pn.prototype.init.call(this,h,W,c,V,H);h=W.headline;c=g.v(W.adAvatar,SS);h&&c?(this.headline=new eR(this.api,this.layoutId,this.interactionLoggingClientData,this.oz),g.X(this,this.headline),this.headline.kN(this.vk("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(wc("ad-simple-attributed-string"),new at(h)), this.adAvatar=new NK(this.api,this.layoutId,this.interactionLoggingClientData,this.oz),g.X(this,this.adAvatar),this.adAvatar.kN(this.vk("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(wc("ad-avatar"),c)):this.Y.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");h=g.v(W.adGridCardCollection,eg2);this.adGridCardCollection.init(wc("ad-grid-card-collection"),h);W=g.v(W.adButton,Dz);this.adButton.init(wc("ad-button"),W); this.hide()}else g.Qq(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.Qq(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.l.onClick=function(h){(this.adButton&&g.jk(this.adButton.element,h.target)||this.adAvatar&&g.jk(this.adAvatar.element,h.target))&&this.api.pauseVideo();pn.prototype.onClick.call(this,h);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.l.Yf=function(){}; g.l.clear=function(){this.hide();var h;(h=this.headline)==null||h.clear();var W;(W=this.adAvatar)==null||W.clear();this.adGridCardCollection.clear();this.adButton.clear();pn.prototype.clear.call(this)}; g.l.show=function(){var h;(h=this.headline)==null||h.show();var W;(W=this.adAvatar)==null||W.show();this.adGridCardCollection.show();this.adButton.show();pn.prototype.show.call(this)}; g.l.hide=function(){var h;(h=this.headline)==null||h.hide();var W;(W=this.adAvatar)==null||W.hide();this.adGridCardCollection.hide();this.adButton.hide();pn.prototype.hide.call(this)}; g.l.qZ=function(h){h==="transitioning"?(this.G.classList.remove("ytp-ad-underlay-clickable"),this.show()):h==="visible"?this.G.classList.add("ytp-ad-underlay-clickable"):h==="hidden"&&(this.hide(),this.G.classList.remove("ytp-ad-underlay-clickable"))};g.n(IP,Hn); IP.prototype.init=function(h,W){Hn.prototype.init.call(this,h,W,{});if(W.attributes===void 0)g.Qq(Error("No attributes found in AdDetailsLineViewModel."));else if(W.style===void 0)g.Qq(Error("No style found in AdDetailsLineViewModel."));else{h=g.e(W.attributes);for(var c=h.next();!c.done;c=h.next())if(c=c.value,c.text!==void 0){c=c.text;var V=W.style,H=new eR(this.api,this.layoutId,this.interactionLoggingClientData,this.oz);g.X(this,H);H.kN(this.element);a:switch(V){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":V="ytp-ad-details-line__text--style-responsive"; break a;default:V="ytp-ad-details-line__text--style-standard"}H.element.classList.add(V);H.init(wc("ad-simple-attributed-string"),new at(c));this.X.push(H)}this.show()}}; IP.prototype.show=function(){this.X.forEach(function(h){h.show()}); Hn.prototype.show.call(this)}; IP.prototype.clear=function(){this.hide()}; IP.prototype.hide=function(){this.X.forEach(function(h){h.hide()}); Hn.prototype.hide.call(this)};g.n(YV,Hn);YV.prototype.init=function(h,W){Hn.prototype.init.call(this,h,W,{});var c,V;(h=((V=JC(((c=W.image)==null?void 0:c.sources)||[]))==null?void 0:V.url)||"")&&h.length?(c=this.vk("ytp-image-background-image"),g.oY(c,"backgroundImage","url("+h+")"),W.blurLevel!==void 0&&g.oY(c,"filter","blur("+W.blurLevel+"px)"),W.gradient!==void 0&&(W=new g.p({D:"div",LM:["ytp-image-background--gradient-vertical"]}),g.X(this,W),W.kN(this.element)),this.show()):g.Qq(Error("Failed to get imageUrl in ImageBackground."))}; YV.prototype.clear=function(){this.hide()};g.n(IhU,Ie);g.l=IhU.prototype;g.l.init=function(h,W){Ie.prototype.init.call(this,h,W,{});g.oY(this.G,"stroke-dasharray","0 "+this.W);this.show()}; g.l.clear=function(){this.hide()}; g.l.hide=function(){OJ(this);Ie.prototype.hide.call(this)}; g.l.show=function(){YB(this);Ie.prototype.show.call(this)}; g.l.rK=function(){this.hide()}; g.l.Z$=function(){if(this.X){var h=this.X.getProgressState();h!=null&&h.current!=null&&g.oY(this.G,"stroke-dasharray",h.current/h.seekableEnd*this.W+" "+this.W)}};g.n(OF,Hn); OF.prototype.init=function(h,W){Hn.prototype.init.call(this,h,W,{});if(OU6(W)){this.adAvatar=new NK(this.api,this.layoutId,this.interactionLoggingClientData,this.oz);g.X(this,this.adAvatar);this.adAvatar.kN(this.vk("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(wc("ad-avatar"),g.v(W.adAvatar,SS));this.headline=new eR(this.api,this.layoutId,this.interactionLoggingClientData,this.oz);g.X(this,this.headline);this.headline.kN(this.vk("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(wc("ad-simple-attributed-string"),new at(W.headline));if(h=g.v(W.adDetailsLine,lQ6))this.detailsLine=new IP(this.api,this.layoutId,this.interactionLoggingClientData,this.oz),g.X(this,this.detailsLine),this.detailsLine.kN(this.vk("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(wc("ad-details-line"),h);this.adButton=new XD(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,!0);g.X(this,this.adButton); this.adButton.kN(this.vk("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(wc("ad-button"),g.v(W.adButton,Dz));this.adBadge=new z3(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,!0);g.X(this,this.adBadge);this.adBadge.kN(this.Y);this.adBadge.init(wc("ad-badge"),g.v(W.adBadge,g8));this.adInfoButton=new mQ(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,this.element,void 0,!0);g.X(this,this.adInfoButton);this.adInfoButton.kN(this.Y); this.adInfoButton.init(wc("ad-info-hover-text-button"),g.v(W.adInfoRenderer,ST),this.macros);if(h=g.v(W.skipAdButton,i66))this.skipAdButton=new t8(this.api,this.layoutId,this.interactionLoggingClientData,this.oz),g.X(this,this.skipAdButton),this.skipAdButton.kN(this.element),this.skipAdButton.init(wc("skip-button"),h);this.W=new qa(W.durationMilliseconds);g.X(this,this.W);if(h=g.v(W.countdownViewModel,Akc))this.X=new IhU(this.api,this.layoutId,this.interactionLoggingClientData,this.oz,this.W),g.X(this, this.X),this.X.kN(this.vk("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.X.init(wc("timed-pie-countdown"),h);if(W=g.v(W.imageBackground,aQU))this.imageBackground=new YV(this.api,this.layoutId,this.interactionLoggingClientData,this.oz),g.X(this,this.imageBackground),this.imageBackground.kN(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(wc("image-background"), W);this.show();this.element.focus()}}; OF.prototype.clear=function(){g.zR(this.G);this.hide()}; OF.prototype.show=function(){Yv$(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();Hn.prototype.show.call(this)}; OF.prototype.hide=function(){Yv$(!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.X&&this.X.hide();this.imageBackground&&this.imageBackground.hide();Hn.prototype.hide.call(this)};g.n(w8,g.h1);g.l=w8.prototype;g.l.Zj=function(){return 1E3*this.api.getDuration(this.Ep,!1)}; g.l.stop=function(){this.X&&this.pR.v0(this.X)}; g.l.kd=function(){var h=this.api.getProgressState(this.Ep);this.W={seekableStart:h.seekableStart,seekableEnd:h.seekableEnd,current:this.api.getCurrentTime(this.Ep,!1)};this.publish("h")}; g.l.getProgressState=function(){return this.W}; g.l.I0=function(h){g.EA(h,2)&&this.publish("g")};var WBU="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.n(kV,Tp); kV.prototype.G=function(h){var W=h.id,c=h.content,V=c.componentType;if(!WBU.includes(V))switch(h.actionType){case 1:h=this.api;var H=this.oz,B=c.layoutId,E=c.interactionLoggingClientData,J=c instanceof Mb?c.Ze:!1,u=c instanceof Mb||c instanceof Zw?c.En:!1;E=E===void 0?{}:E;J=J===void 0?!1:J;u=u===void 0?!1:u;switch(V){case "invideo-overlay":h=new ulf(h,B,E,H);break;case "player-overlay":h=new UA(h,B,E,H,new w8(h),u);break;case "player-overlay-layout":h=new ml(h,B,E,H,new w8(h));break;case "survey":h= new fn(h,B,E,H);break;case "ad-action-interstitial":h=new HUS(h,B,E,H,J,u);break;case "video-interstitial-buttoned-centered":h=new OF(h,B,E,H);break;case "survey-interstitial":h=new bn(h,B,E,H);break;case "ad-message":h=new n5U(h,B,E,H,new w8(h,1));break;case "player-underlay":h=new ah6(h,B,E,H);break;case "display-underlay-text-grid-cards":h=new pdI(h,B,E,H,new w8(h));break;default:h=null}if(!h){g.Lx(Error("No UI component returned from ComponentFactory for type: "+V));break}g.JB(this.components, W)?g.Lx(Error("Ad UI component already registered: "+W)):this.components[W]=h;h.bind(c);c instanceof Ue?this.W?this.W.append(h.Gk):g.Lx(Error("Underlay view was not created but UnderlayRenderer was created")):this.Y.append(h.Gk);break;case 2:W=Sv2(this,h);if(W==null)break;W.bind(c);break;case 3:c=Sv2(this,h),c!=null&&(g.hA(c),g.JB(this.components,W)?(c=this.components,W in c&&delete c[W]):g.Lx(Error("Ad UI component does not exist: "+W)))}}; kV.prototype.dE=function(){g.Wa(Object.values(this.components));this.components={};Tp.prototype.dE.call(this)};g.n(g56,g.K3);g.l=g56.prototype;g.l.create=function(){try{DLt(this),this.load(),this.created=!0,DLt(this)}catch(h){sA(h instanceof Error?h:String(h))}}; g.l.load=function(){try{hct(this)}finally{h8(Ln(this.X).zS)&&this.player.FD("ad",1)}}; g.l.destroy=function(){var h=this.player.getVideoData(1);this.X.X.fX.Ft(h&&h.clientPlaybackNonce||"");this.unload();this.created=!1}; g.l.unload=function(){g.K3.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(W){sA(W instanceof Error?W:String(W))}if(this.W!=null){var h=this.W;this.W=null;h.dispose()}this.G.reset()}; g.l.xe=function(){return!1}; g.l.getAdState=function(){return-1}; g.l.getOptions=function(){return Object.values(hY2)}; g.l.Et=function(h,W){W=W===void 0?{}:W;switch(h){case "replaceUrlMacros":return h=W,h.url?(W=l5D(this.player),Object.assign(W,h.Znn),h=g.Q8(h.url,W)):h=null,h;case "onAboutThisAdPopupClosed":this.Wh(W);break;case "executeCommand":h=W;h.command&&h.layoutId&&this.executeCommand(h);break;default:return null}}; g.l.EZ=function(h){var W;return!((W=this.X.X.Ky)==null||!W.get().EZ(h))}; g.l.Wh=function(h){h.isMuted&&UAl(Ln(this.X).S5,Ln(this.X).tp,h.layoutId);this.RS&&this.RS.Wh()}; g.l.executeCommand=function(h){Ln(this.X).oz.executeCommand(h.command,h.layoutId)};g.hS("yt.player.Application.create",g.jw.create);g.hS("yt.player.Application.createAlternate",g.jw.create);Xf7(j2(),kX2);var cIU=g.c2("ytcsi.tick");cIU&&cIU("pe");g.i3("ad",g56);g.n(g.cC,g.N);g.cC.prototype.start=function(h,W,c){this.config={from:h,to:W,duration:c,startTime:(0,g.aC)()};this.next()}; g.cC.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.cC.prototype.next=function(){if(this.config){var h=this.config,W=h.from,c=h.to,V=h.duration;h=h.startTime;var H=(0,g.aC)()-h;h=this.X;V=O2U(h,H/V);if(V==0)h=h.S;else if(V==1)h=h.Z;else{H=o0(h.S,h.C,V);var B=o0(h.C,h.N,V);h=o0(h.N,h.Z,V);H=o0(H,B,V);B=o0(B,h,V);h=o0(H,B,V)}h=g.vr(h,0,1);this.callback(W+(c-W)*h);h<1&&this.delay.start()}};g.n(g.VO,g.p);g.l=g.VO.prototype;g.l.hasSuggestions=function(){return this.suggestionData.length>0}; g.l.x7=function(){this.W&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.l.show=function(){g.p.prototype.show.call(this);H$6(this)}; g.l.MQ=function(){this.W&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.l.bE=function(){this.I1(this.api.Bk().getPlayerSize())}; g.l.I1=function(h){var W=this.api.isEmbedsShortsMode()?.5625:16/9,c=this.api.fG();h=h.width-(c?112:58);c=Math.ceil(h/(c?320:192));var V=(h-c*8)/c;W=Math.floor(V/W);for(var H=g.e(this.X),B=H.next();!B.done;B=H.next())B=B.value.vk("ytp-suggestion-image"),B.style.width=V+"px",B.style.height=W+"px";this.suggestions.element.style.height=W+"px";this.Y=V;this.Z=W;this.containerWidth=h;this.columns=c;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.$O(this)}; g.l.onVideoDataChange=function(){var h=this.api.B(),W=this.api.getVideoData();this.N=W.B0?!1:h.Y;this.suggestionData=W.suggestions?g.Lf(W.suggestions,function(c){return c&&!c.playlistId}):[]; E6S(this);W.B0?this.title.update({title:g.hl("M\u00e1s videos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:W.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s videos"})}; g.l.scrollTo=function(h){h=g.vr(h,this.containerWidth-this.suggestionData.length*(this.Y+8),0);this.S.start(this.scrollPosition,h,1E3);this.scrollPosition=h;g.$O(this);H$6(this)};})(_yt_player);